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 ) FROM tab0 AS cor0
----
-1230
-7134
-7954

query I rowsort
SELECT + - 92 * + + col2 AS col1 FROM tab2 AS cor0
----
-2116
-3680
-5336

query I rowsort
SELECT DISTINCT col1 * - 79 FROM tab1 AS cor0
----
-1106
-3713
-395

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

query I rowsort
SELECT + 66 AS col2 FROM tab2 cor0
----
66
66
66

query I rowsort
SELECT DISTINCT + col2 * + 69 FROM tab1 AS cor0
----
4071
4692
6624

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

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

skipif mysql # not compatible
query I rowsort label-5682
SELECT DISTINCT - 87 * COUNT ( * ) + - SUM ( + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5683
SELECT DISTINCT col1 * col2 + 8 DIV - 89 AS col0 FROM tab1
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-5683
SELECT DISTINCT col1 * col2 + 8 / - 89 AS col0 FROM tab1
----
1344
295
3196

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5684
SELECT ALL 56 + - col1 + - CAST( NULL AS DECIMAL ), col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-5684
SELECT ALL 56 + - col1 + - CAST ( NULL AS REAL ), col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

onlyif mysql # DIV for integer division: 
query II rowsort label-5685
SELECT ALL + col1 AS col1, col2 + 17 DIV + 99 DIV col1 * - + col1 + - col1 FROM tab0 WHERE NOT + col2 IS NOT NULL OR NOT NULL IS NOT NULL
----
1
98
21
-11
81
-34

skipif mysql # not compatible
query II rowsort label-5685
SELECT ALL + col1 AS col1, col2 + 17 / + 99 / col1 * - + col1 + - col1 FROM tab0 WHERE NOT + col2 IS NOT NULL OR NOT NULL IS NOT NULL
----
1
98
21
-11
81
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5686
SELECT ALL + COUNT( * ) + - 22 - - - 75 AS col1 FROM tab0
----
-94

skipif mysql # not compatible
query I rowsort label-5686
SELECT ALL + COUNT ( * ) + - 22 - - - 75 AS col1 FROM tab0
----
-94

query I rowsort
SELECT 68 + + + col1 FROM tab1
----
115
73
82

query I rowsort
SELECT ALL + col2 * + col1 * + col0 AS col2 FROM tab2
----
197120
291450
53958

query I rowsort
SELECT col0 + + col1 + + col0 FROM tab0
----
111
195
195

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 27 * 72 IN ( col0, 67 + col0 + + - col0 * col1 )
----

query I rowsort
SELECT ALL col2 * - col0 * + col2 FROM tab2 AS cor0
----
-102400
-24334
-252300

query III rowsort
SELECT * FROM tab2 WHERE ( - 8 * - col0 = - col2 )
----

query I rowsort
SELECT ALL + + 90 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT ALL - 32 - - col2 AS col2 FROM tab0
----
-22
15
67

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

query I rowsort
SELECT - col1 - - 38 FROM tab0 AS cor0
----
-43
17
37

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5702
SELECT ALL + CAST( + MIN( ( - col2 ) ) AS SIGNED ) AS col2, - COUNT( * ) * + + COUNT( - + col1 ) FROM tab1 AS cor0
----
-96
-9

skipif mysql # not compatible
query II rowsort label-5702
SELECT ALL + CAST ( + MIN ( ( - col2 ) ) AS INTEGER ) AS col2, - COUNT ( * ) * + + COUNT ( - + col1 ) FROM tab1 AS cor0
----
-96
-9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5705
SELECT DISTINCT - COUNT( * ) * + MAX( col2 ) * - + 25 AS col1 FROM tab1
----
7200

skipif mysql # not compatible
query I rowsort label-5705
SELECT DISTINCT - COUNT ( * ) * + MAX ( col2 ) * - + 25 AS col1 FROM tab1
----
7200

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

skipif mysql # not compatible
query I rowsort label-5706
SELECT ALL - MAX ( - + ( + + col2 ) ) FROM tab1
----
59

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5708
SELECT + 93 DIV - - 1 col0 FROM tab0
----
93
93
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5708
SELECT + 93 / - - 1 col0 FROM tab0
----
93
93
93

query I rowsort
SELECT - 93 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT DISTINCT + + 21 * 7 + + col1 AS col0 FROM tab0 AS cor0
----
148
168
228

onlyif mysql # aggregate syntax: 
query II rowsort label-5711
SELECT - COUNT( ALL 27 ), - 4 AS col0 FROM tab1 AS cor0
----
-3
-4

skipif mysql # not compatible
query II rowsort label-5711
SELECT - COUNT ( ALL 27 ), - 4 AS col0 FROM tab1 AS cor0
----
-3
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col1 * - col0 col2, col2 * - 22 FROM tab0 AS cor0
----
1215
-1034
1827
-220
97
-2178

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5715
SELECT ALL + col0 AS col1, + col0 * col0 DIV - + col0 AS col0 FROM tab2
----
46
-46
64
-64
75
-75

skipif mysql # not compatible
query II rowsort label-5715
SELECT ALL + col0 AS col1, + col0 * col0 / - + col0 AS col0 FROM tab2
----
46
-46
64
-64
75
-75

query I rowsort
SELECT + 9 * + col1 FROM tab1 AS cor0
----
126
423
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5717
SELECT DISTINCT col0 * + 55 * - col1 + + CAST( - 15 AS SIGNED ) FROM tab1 AS cor0
----
-23390
-235250
-39285

skipif mysql # not compatible
query I rowsort label-5717
SELECT DISTINCT col0 * + 55 * - col1 + + CAST ( - 15 AS INTEGER ) FROM tab1 AS cor0
----
-23390
-235250
-39285

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col1 * - 11 col0 FROM tab1 AS cor0
----
-4675
-47047
-7854

query I rowsort
SELECT col2 + 41 FROM tab1 AS cor0 WHERE NULL IS NULL
----
100
109
137

query II rowsort
SELECT DISTINCT - + col2 * + col0 * col2, - ( - 13 ) AS col2 FROM tab0 AS cor0
----
-33135
13
-8700
13
-950697
13

query I rowsort
SELECT ALL - col0 - 53 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

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

query I rowsort
SELECT DISTINCT + - 76 FROM tab2 cor0
----
-76

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

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

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

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

query I rowsort
SELECT DISTINCT 71 AS col0 FROM tab1 WHERE + 55 <= NULL
----

query I rowsort
SELECT DISTINCT - 19 AS col2 FROM tab0 AS cor0 WHERE + 27 < NULL
----

query I rowsort
SELECT ALL col1 + + + 94 - - col1 + - 43 + - col2 * - col2 - + + col0 AS col0 FROM tab0
----
106
2407
9757

query I rowsort
SELECT ALL - col0 * - - 96 AS col2 FROM tab0
----
-1440
-8352
-9312

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5732
SELECT DISTINCT 83 DIV col2 AS col2 FROM tab0 AS cor0
----
0
1
8

skipif mysql # not compatible
query I rowsort label-5732
SELECT DISTINCT 83 / col2 AS col2 FROM tab0 AS cor0
----
0
1
8

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

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

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

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

query I rowsort
SELECT ( - 97 ) * - - col0 AS col1 FROM tab1 cor0
----
-4947
-8245
-8827

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 72 col1 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 81 * 33 AS col1 FROM tab1 AS cor0
----
-2673
-2673
-2673

query I rowsort
SELECT col0 * + - 45 AS col2 FROM tab2
----
-2070
-2880
-3375

onlyif mysql # aggregate syntax: 
query I rowsort label-5740
SELECT + - ( + COUNT( * ) ) AS col0 FROM tab0 WHERE NOT ( + ( - col2 ) ) NOT BETWEEN - ( + 84 ) AND + + 6
----
-2

skipif mysql # not compatible
query I rowsort label-5740
SELECT + - ( + COUNT ( * ) ) AS col0 FROM tab0 WHERE NOT ( + ( - col2 ) ) NOT BETWEEN - ( + 84 ) AND + + 6
----
-2

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 73 * - col2 - + + col0 + + + col0 = + 37 * - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5742
SELECT COUNT( * ) + - + COUNT( * ) FROM tab1 WHERE NOT + 23 NOT IN ( - - col1, - col0, 54, + + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-5742
SELECT COUNT ( * ) + - + COUNT ( * ) FROM tab1 WHERE NOT + 23 NOT IN ( - - col1, - col0, 54, + + col1 )
----
0

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

query I rowsort
SELECT DISTINCT - - col0 + col1 + col0 FROM tab1 AS cor0
----
116
175
229

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

skipif mysql # not compatible
query I rowsort label-5745
SELECT ALL + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

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

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

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

query I rowsort
SELECT ( - - 89 ) * - col0 AS col0 FROM tab2 AS cor0
----
-4094
-5696
-6675

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

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

query I rowsort
SELECT - col1 * + - col0 FROM tab0 WHERE + - col1 + + col2 * - + 54 NOT BETWEEN + col2 + + col1 * col1 AND NULL
----
1215
1827
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5753
SELECT ALL MAX( ALL - + col0 ) + - SUM( ALL + 21 ) col0 FROM tab2
----
-109

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5753
SELECT ALL MAX ( ALL - + col0 ) + - SUM ( ALL + 21 ) col0 FROM tab2
----
-109

query I rowsort
SELECT - col1 + + 52 AS col0 FROM tab1
----
38
47
5

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

query I rowsort
SELECT 71 + + col2 * col0 * col0 AS col1 FROM tab0
----
10646
75761
931562

query I rowsort
SELECT - 13 * + col1 * + + col0 AS col0 FROM tab0 AS cor0
----
-1261
-15795
-23751

query I rowsort
SELECT + 13 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 8 / - ( 95 ) IS NOT NULL
----

query I rowsort
SELECT ALL + col2 * - 84 FROM tab1 AS cor0
----
-4956
-5712
-8064

query II rowsort
SELECT - 45 * - - col0 AS col1, + col1 AS col1 FROM tab2 AS cor0
----
-2070
51
-2880
77
-3375
67

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col2 > - 45
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5763
SELECT - 55 * + COUNT( ALL - - 93 ) FROM tab0
----
-165

skipif mysql # not compatible
query I rowsort label-5763
SELECT - 55 * + COUNT ( ALL - - 93 ) FROM tab0
----
-165

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT - 52 + SUM( ALL - col0 ) col2 FROM tab1
----
-279

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5767
SELECT - 52 + SUM ( ALL - col0 ) col2 FROM tab1
----
-279

query I rowsort
SELECT ALL + + col0 + ( - col0 ) * - 94 * + - col0 AS col0 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-244443
-679065
-778323

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT + col1 + - col0 < col2 + - 55 )
----
46
51
23
64
77
40

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

skipif mysql # not compatible
query II rowsort label-5770
SELECT DISTINCT - COUNT ( * ), 51 AS col2 FROM tab0 AS cor0
----
-3
51

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT 87 IS NULL
----
23
40
58

query II rowsort
SELECT - - col1 + 52 + + col0 * - col1, - col2 + 82 AS col0 FROM tab2 AS cor0
----
-2243
59
-4799
42
-4906
24

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5773
SELECT ALL + SUM( CAST( NULL AS DECIMAL ) ) AS col0 FROM tab0 AS cor0
----
NULL

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

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

query III rowsort
SELECT * FROM tab1 WHERE + + 7 BETWEEN NULL AND - + col2
----

query I rowsort
SELECT ALL + 34 + 48 - + - col1 * + + col2 FROM tab1
----
1426
3278
377

onlyif mysql # aggregate syntax: 
query I rowsort label-5777
SELECT ALL + SUM( + 77 ) - + 99 FROM tab2 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-5777
SELECT ALL + SUM ( + 77 ) - + 99 FROM tab2 AS cor0
----
132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5778
SELECT - - 25 - - MAX( DISTINCT col2 ) DIV - 85 FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-5778
SELECT - - 25 - - MAX ( DISTINCT col2 ) / - 85 FROM tab2 AS cor0
----
25

onlyif mysql # DIV for integer division: 
query II rowsort label-5779
SELECT - - col1 - col2 AS col2, - ( - col2 ) DIV + 5 + - col0 FROM tab2 cor0
----
28
-42
37
-56
9
-64

skipif mysql # not compatible
query II rowsort label-5779
SELECT - - col1 - col2 AS col2, - ( - col2 ) / + 5 + - col0 FROM tab2 cor0
----
28
-42
37
-56
9
-64

query I rowsort
SELECT ALL col2 * + ( - ( - + col0 ) ) + + col0 - - 48 + col0 FROM tab2 cor0
----
1198
2736
4548

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5782
SELECT - + CAST( + + col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5782
SELECT - + CAST ( + + col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5783
SELECT 76 * + + COUNT( * ) AS col1 FROM tab0, tab1 AS cor0
----
684

skipif mysql # not compatible
query I rowsort label-5783
SELECT 76 * + + COUNT ( * ) AS col1 FROM tab0, tab1 AS cor0
----
684

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5784
SELECT ALL col0 * + - CAST( - col1 AS SIGNED ) AS col1, + 80 FROM tab0
----
1215
80
1827
80
97
80

skipif mysql # not compatible
query II rowsort label-5784
SELECT ALL col0 * + - CAST ( - col1 AS INTEGER ) AS col1, + 80 FROM tab0
----
1215
80
1827
80
97
80

query I rowsort
SELECT 19 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

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

query I rowsort
SELECT DISTINCT - col1 * - + 29 FROM tab1 AS cor0
----
1363
145
406

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5788
SELECT + MAX ( DISTINCT - + col0 ) col1 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT DISTINCT - 40 * - col2 AS col1 FROM tab2
----
1600
2320
920

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 49 / col1 > + + col1 * - col2 - - col1 * + col0
----
85
5
59
91
47
68

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN + col1 - - col2 + 62 * - - 7 AND 90
----

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

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

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

query I rowsort
SELECT + - col0 + + + ( + - col1 ) FROM tab0 AS cor0
----
-108
-96
-98

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

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

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

query I rowsort
SELECT col2 + col2 + col2 + - col0 FROM tab0 AS cor0
----
-57
126
200

onlyif mysql # aggregate syntax: 
query I rowsort label-5799
SELECT ALL + COUNT( * ) * 66 * - 35 FROM tab1 AS cor0
----
-6930

skipif mysql # not compatible
query I rowsort label-5799
SELECT ALL + COUNT ( * ) * 66 * - 35 FROM tab1 AS cor0
----
-6930

query I rowsort
SELECT DISTINCT + + 89 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5801
SELECT + 10 * + col0 - col1 - - CAST( + 38 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
534
883
901

skipif mysql # not compatible
query I rowsort label-5801
SELECT + 10 * + col0 - col1 - - CAST ( + 38 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
534
883
901

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 11 <= - - col1
----
51
14
96
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5805
SELECT ALL - - 13 - - + SUM( ALL - 76 ) AS col2 FROM tab0 AS cor0
----
-215

skipif mysql # not compatible
query I rowsort label-5805
SELECT ALL - - 13 - - + SUM ( ALL - 76 ) AS col2 FROM tab0 AS cor0
----
-215

query I rowsort
SELECT DISTINCT - + col2 FROM tab2 AS cor0 WHERE ( + col0 ) IS NOT NULL AND NOT ( NULL ) IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT + 12 - + 27 - - + 77 + - + col0 AS col0 FROM tab2 AS cor0
----
-13
-2
16

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 cor0 WHERE NULL IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT + col1 + - col0 - - ( + col2 ) FROM tab1
----
-21
24
59

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

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

query I rowsort
SELECT + col1 FROM tab0 WHERE col0 < + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5812
SELECT - COUNT( * ), + COUNT( * ) * COUNT( * ) AS col2 FROM tab0, tab0 AS cor0
----
-9
81

skipif mysql # not compatible
query II rowsort label-5812
SELECT - COUNT ( * ), + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0, tab0 AS cor0
----
-9
81

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5817
SELECT ALL - col1 * - col0 AS col1, + col2 DIV + col2 AS col2 FROM tab2 AS cor0
----
2346
1
4928
1
5025
1

skipif mysql # not compatible
query II rowsort label-5817
SELECT ALL - col1 * - col0 AS col1, + col2 / + col2 AS col2 FROM tab2 AS cor0
----
2346
1
4928
1
5025
1

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

query I rowsort
SELECT DISTINCT - + 30 AS col1 FROM tab2 AS cor0
----
-30

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

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT col0 >= col2
----
51

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

skipif mysql # not compatible
query I rowsort label-5822
SELECT + - col0 / - 22 FROM tab0 AS cor0
----
0
3
4

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 22 col1 FROM tab0 cor0 WHERE NOT ( NULL ) < NULL
----

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

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

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

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

query I rowsort
SELECT DISTINCT + 5 AS col2 FROM tab1 cor0
----
5

query I rowsort
SELECT ALL 1 * + 2 * - 53 - - 48 FROM tab2 cor0
----
-58
-58
-58

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

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

query I rowsort
SELECT - 13 + + col2 AS col2 FROM tab1
----
46
55
83

query III rowsort
SELECT ALL * FROM tab2 WHERE + 99 * ( - 82 ) - col0 IS NULL
----

query I rowsort
SELECT 82 + - col1 AS col0 FROM tab1
----
35
68
77

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

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

query I rowsort
SELECT DISTINCT + + 23 * + - col0 FROM tab1 AS cor0
----
-1173
-1955
-2093

onlyif mysql # DIV for integer division: 
query I rowsort label-5837
SELECT DISTINCT + 72 DIV col0 AS col2 FROM tab2 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5837
SELECT DISTINCT + 72 / col0 AS col2 FROM tab2 cor0
----
0
1

query I rowsort
SELECT ALL - - 99 * ( + ( - 46 ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1b16a4b21052568242a4b1100aa427e6

onlyif mysql # aggregate syntax: 
query I rowsort label-5839
SELECT DISTINCT - MIN( 55 ) + + - 68 FROM tab2
----
-123

skipif mysql # not compatible
query I rowsort label-5839
SELECT DISTINCT - MIN ( 55 ) + + - 68 FROM tab2
----
-123

query I rowsort
SELECT - - 76 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 > col0
----
75
67
58

onlyif mysql # DIV for integer division: 
query I rowsort label-5843
SELECT DISTINCT + 62 DIV col2 - 91 * 40 AS col2 FROM tab2 AS cor0
----
-3638
-3639

skipif mysql # not compatible
query I rowsort label-5843
SELECT DISTINCT + 62 / col2 - 91 * 40 AS col2 FROM tab2 AS cor0
----
-3638
-3639

query II rowsort
SELECT col2 * - col2, + col2 FROM tab1 AS cor0
----
-3481
59
-4624
68
-9216
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( + + 30 ) IN ( - col1, + 12, + ( - col1 ) * + 64 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5846
SELECT col1 DIV - - 79 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5846
SELECT col1 / - - 79 FROM tab0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT ALL SUM( - 64 ) AS col1 FROM tab2
----
-192

skipif mysql # not compatible
query I rowsort label-5847
SELECT ALL SUM ( - 64 ) AS col1 FROM tab2
----
-192

query I rowsort
SELECT DISTINCT 80 * - 72 AS col1 FROM tab0
----
-5760

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5850
SELECT MIN( ALL + col2 ) AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-5850
SELECT MIN ( ALL + col2 ) AS col0 FROM tab0 AS cor0
----
10

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - 1 col0 FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-5854
SELECT ALL + 1 AS col0, - COUNT( * ) + - 66 FROM tab2
----
1
-69

skipif mysql # not compatible
query II rowsort label-5854
SELECT ALL + 1 AS col0, - COUNT ( * ) + - 66 FROM tab2
----
1
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5855
SELECT ALL + 93 FROM tab0 AS cor0 WHERE NOT ( + - col1 ) + + col0 - - 11 * CAST( NULL AS SIGNED ) * ( 39 ) NOT IN ( + col0, col0, + ( CAST( col0 AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-5855
SELECT ALL + 93 FROM tab0 AS cor0 WHERE NOT ( + - col1 ) + + col0 - - 11 * CAST ( NULL AS INTEGER ) * ( 39 ) NOT IN ( + col0, col0, + ( CAST ( col0 AS INTEGER ) ) )
----

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

query I rowsort
SELECT col1 * + 47 + - col2 AS col1 FROM tab0 AS cor0
----
-52
3760
977

onlyif mysql # aggregate syntax: 
query I rowsort label-5858
SELECT + SUM( 54 ) FROM tab0 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-5858
SELECT + SUM ( 54 ) FROM tab0 AS cor0
----
162

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

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

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

query II rowsort
SELECT DISTINCT + 56 + + + col0 + 45, 20 AS col1 FROM tab1
----
152
20
186
20
192
20

query II rowsort
SELECT DISTINCT + col0 * 80 * - - col0 * col0 + col2 + - 86 + - col2 * - 14 * + col1 * + col2 AS col1, col2 FROM tab1
----
12418426
96
49373643
59
63328254
68

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 WHERE + - col2 * - 45 NOT BETWEEN NULL AND - 57
----
10
47
99

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

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

skipif mysql # not compatible
query III rowsort label-5865
SELECT * FROM tab0 WHERE + ( col2 ) * + - col2 >= CAST ( - col0 AS INTEGER )
----

query II rowsort
SELECT col0 + - 75 * + col2 AS col0, col0 * col0 AS col1 FROM tab2
----
-1679
2116
-2936
4096
-4275
5625

query I rowsort
SELECT col2 + 16 AS col0 FROM tab2 AS cor0
----
39
56
74

query I rowsort
SELECT + col0 + + col1 - 57 FROM tab2 AS cor0
----
40
84
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + 88 + + col1 col1 FROM tab2 AS cor0
----
190
222
242

query I rowsort
SELECT ALL - 3 * + 20 - + ( + col0 ) + + col1 AS col1 FROM tab1 AS cor0
----
-104
-140
-97

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

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

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

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

query II rowsort
SELECT + 2, col1 FROM tab2 WHERE NOT NULL NOT BETWEEN 73 AND - - col1
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5875
SELECT COUNT( * ) * + 74 * 56 FROM tab2
----
12432

skipif mysql # not compatible
query I rowsort label-5875
SELECT COUNT ( * ) * + 74 * 56 FROM tab2
----
12432

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 * - col2 AS col1, + 84 col2 FROM tab1
----
1344
84
295
84
3196
84

onlyif mysql # DIV for integer division: 
query I rowsort label-5878
SELECT + col0 DIV 42 * col2 AS col1 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5878
SELECT + col0 / 42 * col2 AS col1 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT + + ( + 91 ) * col2 AS col2 FROM tab2 AS cor0
----
2093
3640
5278

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5882
SELECT * FROM tab0 WHERE NOT + + col1 NOT IN ( - - CAST( NULL AS SIGNED ), ( + 93 ) + + col2, - col0 * 35 + 28 + - - 90 + - ( - + 18 ) + col0 * col1 )
----

skipif mysql # not compatible
query III rowsort label-5882
SELECT * FROM tab0 WHERE NOT + + col1 NOT IN ( - - CAST ( NULL AS INTEGER ), ( + 93 ) + + col2, - col0 * 35 + 28 + - - 90 + - ( - + 18 ) + col0 * col1 )
----

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

skipif mysql # not compatible
query I rowsort label-5883
SELECT + - CAST ( - - CAST ( NULL AS REAL ) AS INTEGER ) * + 69 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # DIV for integer division: 
query I rowsort label-5884
SELECT ALL - + col2 DIV 85 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5884
SELECT ALL - + col2 / 85 FROM tab2 AS cor0
----
0
0
0

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5886
SELECT ALL - 34, col1 + + + col0 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
-34
NULL
-34
NULL
-34
NULL

skipif mysql # not compatible
query II rowsort label-5886
SELECT ALL - 34, col1 + + + col0 * + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
-34
NULL
-34
NULL
-34
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < col0 * + 80 / col2 + - + col0
----

query I rowsort
SELECT - 97 * + col2 * col2 + + - 17 + - col0 FROM tab2
----
-155281
-326400
-51376

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5889
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN + + 38 - - 69 AND - - 73 * col2 + - 30 + + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5889
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN + + 38 - - 69 AND - - 73 * col2 + - 30 + + - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5890
SELECT DISTINCT SUM( + + 62 ) AS col1 FROM tab2
----
186

skipif mysql # not compatible
query I rowsort label-5890
SELECT DISTINCT SUM ( + + 62 ) AS col1 FROM tab2
----
186

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5893
SELECT DISTINCT COUNT( * ) + 98 FROM tab0
----
101

skipif mysql # not compatible
query I rowsort label-5893
SELECT DISTINCT COUNT ( * ) + 98 FROM tab0
----
101

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col2 FROM tab2 WHERE col2 BETWEEN + 64 * col2 AND NULL
----

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

query I rowsort
SELECT DISTINCT col2 + + col1 + - col1 AS col0 FROM tab2
----
23
40
58

query I rowsort
SELECT ALL + col2 - + 78 AS col1 FROM tab1 AS cor0
----
-10
-19
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5898
SELECT DISTINCT - - MIN( DISTINCT ( - 74 ) ) FROM tab0 cor0
----
-74

skipif mysql # not compatible
query I rowsort label-5898
SELECT DISTINCT - - MIN ( DISTINCT ( - 74 ) ) FROM tab0 cor0
----
-74

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-5903
SELECT ALL + - COUNT ( * ) FROM tab2 WHERE col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5904
SELECT + + MIN( - - ( - 55 ) ) AS col2 FROM tab0 AS cor0 WHERE NOT - 8 + + 28 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5904
SELECT + + MIN ( - - ( - 55 ) ) AS col2 FROM tab0 AS cor0 WHERE NOT - 8 + + 28 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5905
SELECT ALL - MAX( ALL - 7 ) * COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-5905
SELECT ALL - MAX ( ALL - 7 ) * COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0
----
-63

query II rowsort
SELECT + - 15, - col2 AS col2 FROM tab1 AS cor0 WHERE NOT + 2 + + col2 * - col2 IS NULL
----
-15
-59
-15
-68
-15
-96

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

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

query I rowsort
SELECT col2 * - + col1 * col2 AS col2 FROM tab0 AS cor0
----
-178929
-2100
-9801

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

query I rowsort
SELECT ALL + 68 * - col2 AS col1 FROM tab1
----
-4012
-4624
-6528

query I rowsort
SELECT - col2 * + 33 FROM tab1
----
-1947
-2244
-3168

onlyif mysql # aggregate syntax: 
query I rowsort label-5912
SELECT + COUNT( * ) * + 18 * ( 73 ) FROM tab1
----
3942

skipif mysql # not compatible
query I rowsort label-5912
SELECT + COUNT ( * ) * + 18 * ( 73 ) FROM tab1
----
3942

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5914
SELECT DISTINCT + MAX( + + 82 ) * + COUNT( * ) + MIN( 76 ) FROM tab2 AS cor0
----
322

skipif mysql # not compatible
query I rowsort label-5914
SELECT DISTINCT + MAX ( + + 82 ) * + COUNT ( * ) + MIN ( 76 ) FROM tab2 AS cor0
----
322

query I rowsort
SELECT ALL - 12 * col0 * - col2 - - col2 * + 38 FROM tab0 AS cor0 WHERE ( NULL ) < col1 - + col2
----

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

query III rowsort
SELECT * FROM tab0 WHERE - 60 / col2 <> ( + 61 + + 82 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5920
SELECT DISTINCT + 44 - COUNT( * ) AS col2 FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-5920
SELECT DISTINCT + 44 - COUNT ( * ) AS col2 FROM tab2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5921
SELECT COUNT( * ) + SUM( - 1 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5921
SELECT COUNT ( * ) + SUM ( - 1 ) FROM tab1
----
0

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

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

query I rowsort
SELECT ALL - 51 + - col2 FROM tab0 WHERE NULL NOT IN ( + col2 + + col0 )
----

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

query I rowsort
SELECT ALL col0 * + col2 + col1 * + 66 FROM tab1
----
5345
5820
9290

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5928
SELECT ALL * FROM tab1 WHERE col0 BETWEEN CAST( NULL AS SIGNED ) AND + col1
----

skipif mysql # not compatible
query III rowsort label-5928
SELECT ALL * FROM tab1 WHERE col0 BETWEEN CAST ( NULL AS INTEGER ) AND + col1
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5930
SELECT + MIN( 86 ) col1 FROM tab0
----
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5930
SELECT + MIN ( 86 ) col1 FROM tab0
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5931
SELECT - CAST( - 23 AS SIGNED ) AS col0 FROM tab0
----
23
23
23

skipif mysql # not compatible
query I rowsort label-5931
SELECT - CAST ( - 23 AS INTEGER ) AS col0 FROM tab0
----
23
23
23

query I rowsort
SELECT DISTINCT ( - 15 ) + + 47 FROM tab2 WHERE NOT + col2 * + 39 <> - 1 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5933
SELECT ALL 99 / MIN( ALL - 21 ) FROM tab2 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5933
SELECT ALL 99 / MIN ( ALL - 21 ) FROM tab2 WHERE NOT col0 IS NOT NULL
----
NULL

query I rowsort
SELECT - ( + col1 ) + + 7 FROM tab0
----
-14
-74
6

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= col0 / ( - col2 )
----

query I rowsort
SELECT col2 + 27 AS col0 FROM tab1
----
123
86
95

query I rowsort
SELECT col1 * - col0 + + col1 * ( - col2 ) AS col0 FROM tab2
----
-3519
-8008
-8911

query I rowsort
SELECT 94 + ( col0 ) * col1 FROM tab0
----
1309
191
1921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 61 * ( + ( col0 ) ) col0 FROM tab1
----
3111
5185
5551

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5940
SELECT DISTINCT * FROM tab1 WHERE CAST( NULL AS DECIMAL ) > NULL
----

skipif mysql # not compatible
query III rowsort label-5940
SELECT DISTINCT * FROM tab1 WHERE CAST ( NULL AS REAL ) > NULL
----

query I rowsort
SELECT - 61 * col0 AS col0 FROM tab0 WHERE col0 NOT IN ( - col0 )
----
-5307
-5917
-915

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5942
SELECT + col0 * - col2 FROM tab2 WHERE NOT ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-5942
SELECT + col0 * - col2 FROM tab2 WHERE NOT ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
-1058
-2560
-4350

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5944
SELECT DISTINCT - col0 * - col2 + CAST( 95 AS SIGNED ) col2 FROM tab1
----
4991
5110
6283

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5944
SELECT DISTINCT - col0 * - col2 + CAST ( 95 AS INTEGER ) col2 FROM tab1
----
4991
5110
6283

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5948
SELECT CAST( + 80 AS SIGNED ) + col0 FROM tab1 AS cor0
----
131
165
171

skipif mysql # not compatible
query I rowsort label-5948
SELECT CAST ( + 80 AS INTEGER ) + col0 FROM tab1 AS cor0
----
131
165
171

query I rowsort
SELECT ALL - col1 * col1 - - col2 * 71 FROM tab1 AS cor0
----
2619
4164
6620

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

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

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

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

query I rowsort
SELECT ALL - 55 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

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

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

query I rowsort
SELECT ALL + 16 * + col2 FROM tab0 AS cor0
----
1584
160
752

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

query I rowsort
SELECT DISTINCT col2 * + 20 FROM tab1 cor0
----
1180
1360
1920

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5957
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) * - 30 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5957
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * - 30 IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT + ( - col2 ) FROM tab0 WHERE 2 <> 52
----
-10
-47
-99

query I rowsort
SELECT + col0 * ( 43 ) FROM tab2
----
1978
2752
3225

query I rowsort
SELECT 27 * + + 25 AS col1 FROM tab0
----
675
675
675

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5962
SELECT - ( + COUNT( * ) ) DIV - MIN( - ( - col2 ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5962
SELECT - ( + COUNT ( * ) ) / - MIN ( - ( - col2 ) ) FROM tab1
----
0

query I rowsort
SELECT 17 * - col0 * 55 AS col0 FROM tab0
----
-14025
-81345
-90695

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

query I rowsort
SELECT - 36 * - 37 FROM tab0
----
1332
1332
1332

query I rowsort
SELECT DISTINCT col2 * - col1 FROM tab2 AS cor0 WHERE - 14 NOT IN ( col0 * - col2 )
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-5967
SELECT - SUM( + + 45 ) FROM tab1
----
-135

skipif mysql # not compatible
query I rowsort label-5967
SELECT - SUM ( + + 45 ) FROM tab1
----
-135

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

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

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

query I rowsort
SELECT col1 + - - col0 * + 57 + col0 * + col2 AS col0 FROM tab1
----
11422
7817
9865

query I rowsort
SELECT col2 * - + col1 + - - col2 FROM tab0
----
-200
-3760
0

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

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

query I rowsort
SELECT DISTINCT + col2 * + + col2 + - 90 * - col0 AS col1 FROM tab0 AS cor0
----
18531
3559
7930

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

query I rowsort
SELECT ALL - - 16 * - col0 + + ( + col1 ) FROM tab2 AS cor0
----
-1133
-685
-947

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5978
SELECT DISTINCT + 62 * MAX( - col1 ) FROM tab1 cor0
----
-310

skipif mysql # not compatible
query I rowsort label-5978
SELECT DISTINCT + 62 * MAX ( - col1 ) FROM tab1 cor0
----
-310

onlyif mysql # DIV for integer division: 
query I rowsort label-5979
SELECT - + 88 DIV 94 + - + col1 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-5979
SELECT - + 88 / 94 + - + col1 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT ALL + col1 * - 98 FROM tab1 AS cor0
----
-1372
-4606
-490

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5982
SELECT - + col1 + ( 17 ) DIV - 43 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-5982
SELECT - + col1 + ( 17 ) / - 43 FROM tab0 AS cor0
----
-1
-21
-81

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

query I rowsort
SELECT + 71 FROM tab0 AS cor0 WHERE NULL NOT IN ( 90 )
----

query I rowsort
SELECT DISTINCT - ( - 32 ) * + col2 + col0 FROM tab1 AS cor0
----
1973
2267
3123

onlyif mysql # aggregate syntax: 
query II rowsort label-5986
SELECT - 27 * - - 93 AS col2, - COUNT( * ) AS col0 FROM tab0
----
-2511
-3

skipif mysql # not compatible
query II rowsort label-5986
SELECT - 27 * - - 93 AS col2, - COUNT ( * ) AS col0 FROM tab0
----
-2511
-3

query I rowsort
SELECT DISTINCT + 3 * + col1 * - 62 + + + 22 * col0 FROM tab1
----
-1482
-6740
940

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5989
SELECT DISTINCT col1 DIV + - 57 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5989
SELECT DISTINCT col1 / + - 57 FROM tab1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5991
SELECT DISTINCT + 18 - - COUNT( DISTINCT - 72 ) AS col1 FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-5991
SELECT DISTINCT + 18 - - COUNT ( DISTINCT - 72 ) AS col1 FROM tab2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5992
SELECT ALL - 74 + - + COUNT( * ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-5992
SELECT ALL - 74 + - + COUNT ( * ) FROM tab2
----
-77

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

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

query I rowsort
SELECT DISTINCT + col0 - - ( - 28 ) FROM tab0 cor0
----
-13
59
69

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

query I rowsort
SELECT ALL 61 AS col0 FROM tab0 WHERE NOT + + col1 IN ( + - 22 )
----
61
61
61

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6001
SELECT - 10, - MIN( ALL + + 64 ) AS col2 FROM tab1 AS cor0
----
-10
-64

skipif mysql # not compatible
query II rowsort label-6001
SELECT - 10, - MIN ( ALL + + 64 ) AS col2 FROM tab1 AS cor0
----
-10
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-6002
SELECT ALL + + col2 * col2 DIV + col1 FROM tab0 AS cor0
----
27
4
9801

skipif mysql # not compatible
query I rowsort label-6002
SELECT ALL + + col2 * col2 / + col1 FROM tab0 AS cor0
----
27
4
9801

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6003
SELECT + MIN( DISTINCT - CAST( + + col2 AS SIGNED ) ) FROM tab1 AS cor0
----
-96

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6006
SELECT DISTINCT * FROM tab1 WHERE ( NOT - 91 NOT BETWEEN + col1 AND CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6006
SELECT DISTINCT * FROM tab1 WHERE ( NOT - 91 NOT BETWEEN + col1 AND CAST ( NULL AS INTEGER ) )
----

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

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

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

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

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

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT 72 * - 22 <> ( 29 )
----

query II rowsort
SELECT DISTINCT - col1 AS col0, - col1 FROM tab0
----
-1
-1
-21
-21
-81
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6012
SELECT - col1 * 34, - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-1598
NULL
-170
NULL
-476
NULL

skipif mysql # not compatible
query II rowsort label-6012
SELECT - col1 * 34, - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-1598
NULL
-170
NULL
-476
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6013
SELECT + MIN( 62 ) col0 FROM tab0 cor0
----
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6013
SELECT + MIN ( 62 ) col0 FROM tab0 cor0
----
62

query I rowsort
SELECT + 43 + - - col1 FROM tab2 AS cor0
----
110
120
94

query I rowsort
SELECT + + 89 + + col0 + - 28 * + col1 + - - col1 - col0 FROM tab1 AS cor0
----
-1180
-289
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - + col1 * - col0 + - col0 * col0 * + col1 col0 FROM tab1 cor0
----
-35705
-35714
-384977

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

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

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

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

query I rowsort
SELECT DISTINCT 12 * + 27 + + col1 AS col0 FROM tab2
----
375
391
401

query I rowsort
SELECT + 79 * - + col2 FROM tab1 AS cor0
----
-4661
-5372
-7584

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

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

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

query I rowsort
SELECT ALL - - col1 * - 52 + col0 FROM tab1 AS cor0
----
-175
-2353
-677

query II rowsort
SELECT + + 75 * 17 AS col1, col2 AS col2 FROM tab1 AS cor0
----
1275
59
1275
68
1275
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6027
SELECT - 64 * - MIN( ALL 99 ) FROM tab2 AS cor0
----
6336

skipif mysql # not compatible
query I rowsort label-6027
SELECT - 64 * - MIN ( ALL 99 ) FROM tab2 AS cor0
----
6336

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL >= ( ( col0 ) - + col0 + 78 * + col2 + - 54 )
----

query I rowsort
SELECT + col1 - 11 FROM tab2 AS cor0
----
40
56
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6030
SELECT DISTINCT ( 22 ) + + - COUNT( * ) FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-6030
SELECT DISTINCT ( 22 ) + + - COUNT ( * ) FROM tab0 AS cor0
----
19

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE - - ( 44 ) > NULL
----

query I rowsort
SELECT ALL + ( - col0 ) - + col2 * col0 * + col2 AS col0 FROM tab0
----
-33150
-8787
-950794

query I rowsort
SELECT col0 + - 69 * col2 AS col2 FROM tab0
----
-3228
-603
-6734

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6034
SELECT DISTINCT - SUM( + - col0 ) + + CAST( 64 AS SIGNED ) AS col0 FROM tab0
----
263

skipif mysql # not compatible
query I rowsort label-6034
SELECT DISTINCT - SUM ( + - col0 ) + + CAST ( 64 AS INTEGER ) AS col0 FROM tab0
----
263

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * + col1 + + 70, + col1 * + col1 col1 FROM tab1
----
2279
2209
266
196
95
25

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

skipif mysql # not compatible
query I rowsort label-6036
SELECT CAST ( NULL AS REAL ) + + col0 * + - col1 / + 54 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 43 + + col2 FROM tab2
----
101
66
83

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * + + col1 AS col2, ( + col2 ) col2 FROM tab2
----
1173
23
3080
40
3886
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6040
SELECT - COUNT( * ) * - COUNT( ALL ( 92 ) ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-6040
SELECT - COUNT ( * ) * - COUNT ( ALL ( 92 ) ) AS col1 FROM tab0
----
9

query I rowsort
SELECT ALL + 34 * - 96 FROM tab1
----
-3264
-3264
-3264

onlyif mysql # aggregate syntax: 
query I rowsort label-6042
SELECT + MAX( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-6042
SELECT + MAX ( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT - - 70 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND col0
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6046
SELECT DISTINCT COUNT( * ) + + - MAX( ALL 67 ) AS col0 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
-64

skipif mysql # not compatible
query I rowsort label-6046
SELECT DISTINCT COUNT ( * ) + + - MAX ( ALL 67 ) AS col0 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
-64

query I rowsort
SELECT col0 + + col0 + + col1 * - 76 FROM tab0
----
-1422
-6126
118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6048
SELECT DISTINCT - CAST( + col2 AS SIGNED ) + - + col0 * + 40 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3490
-3979
-647

skipif mysql # not compatible
query I rowsort label-6048
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) + - + col0 * + 40 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3490
-3979
-647

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6049
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 22 * + 94 + + col0 col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6049
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 22 * + 94 + + col0 col2 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE + 35 IS NULL
----

query I rowsort
SELECT + ( - - 46 ) FROM tab1 WHERE NOT + 48 NOT BETWEEN 27 AND - 51 + - 46
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6052
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( + + 71 < - 11 * col1 )
----
3

skipif mysql # not compatible
query I rowsort label-6052
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( + + 71 < - 11 * col1 )
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 45 + - 51 IN ( col2 )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6056
SELECT + 36 * - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
-108

skipif mysql # not compatible
query I rowsort label-6056
SELECT + 36 * - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
-108

query I rowsort
SELECT - col2 * - col2 FROM tab1 cor0 WHERE NULL IS NULL
----
3481
4624
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + 59 col0 FROM tab1 AS cor0 WHERE col0 * + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6059
SELECT ALL + MAX( - 96 ) - - + COUNT( ALL ( - + col0 ) ) FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-6059
SELECT ALL + MAX ( - 96 ) - - + COUNT ( ALL ( - + col0 ) ) FROM tab1 AS cor0
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6060
SELECT DISTINCT - - CAST( - - 68 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-6060
SELECT DISTINCT - - CAST ( - - 68 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
68

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6064
SELECT ALL + MAX( DISTINCT + - CAST( + 59 AS SIGNED ) ) + - COUNT( * ) FROM tab1
----
-62

skipif mysql # not compatible
query I rowsort label-6064
SELECT ALL + MAX ( DISTINCT + - CAST ( + 59 AS INTEGER ) ) + - COUNT ( * ) FROM tab1
----
-62

query I rowsort
SELECT ALL + col0 + 83 * + + col0 AS col1 FROM tab0
----
1260
7308
8148

query I rowsort
SELECT ALL col1 * - 68 AS col0 FROM tab0
----
-1428
-5508
-68

query I rowsort
SELECT - col2 + - + col1 - + + col2 + 92 + + - col0 * + 13 * + col0 FROM tab0 WHERE + 13 BETWEEN col1 AND NULL
----

query II rowsort
SELECT 15 - col2, - 7 AS col1 FROM tab0
----
-32
-7
-84
-7
5
-7

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6070
SELECT DISTINCT - col1 * CAST( NULL AS SIGNED ), - 8 AS col0 FROM tab0 AS cor0
----
NULL
-8

skipif mysql # not compatible
query II rowsort label-6070
SELECT DISTINCT - col1 * CAST ( NULL AS INTEGER ), - 8 AS col0 FROM tab0 AS cor0
----
NULL
-8

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

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

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL < ( NULL ) AND NOT + 57 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-6073
SELECT DISTINCT * FROM tab1 AS cor0 JOIN tab0 cor1 ON NULL < - - ( + + CAST( + 47 AS SIGNED ) ) - - - 47
----

skipif mysql # not compatible
query IIIIII rowsort label-6073
SELECT DISTINCT * FROM tab1 AS cor0 JOIN tab0 cor1 ON NULL < - - ( + + CAST ( + 47 AS INTEGER ) ) - - - 47
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6074
SELECT 39 - + COUNT( * ), + 5 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
30
5

skipif mysql # not compatible
query II rowsort label-6074
SELECT 39 - + COUNT ( * ), + 5 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
30
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6075
SELECT - col1 * col1 / - - 34 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6075
SELECT - col1 * col1 / - - 34 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

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

skipif mysql # not compatible
query II rowsort label-6076
SELECT - ( + CAST ( col1 AS INTEGER ) ) AS col1, - col2 FROM tab0 AS cor0
----
-1
-99
-21
-10
-81
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6077
SELECT ALL SUM( 16 ) FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-6077
SELECT ALL SUM ( 16 ) FROM tab0 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-6078
SELECT ALL + MAX( DISTINCT + ( + col2 ) ), COUNT( * ) AS col2 FROM tab2 AS cor0
----
58
3

skipif mysql # not compatible
query II rowsort label-6078
SELECT ALL + MAX ( DISTINCT + ( + col2 ) ), COUNT ( * ) AS col2 FROM tab2 AS cor0
----
58
3

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

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

query II rowsort
SELECT - 39 AS col2, + col2 + + col0 + + ( - + col2 ) FROM tab0 AS cor0
----
-39
15
-39
87
-39
97

query II rowsort
SELECT DISTINCT + 80 AS col1, - 13 AS col2 FROM tab2 AS cor0
----
80
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-6082
SELECT ALL + 40 + - 14 DIV - col0 FROM tab0 AS cor0
----
40
40
40

skipif mysql # not compatible
query I rowsort label-6082
SELECT ALL + 40 + - 14 / - col0 FROM tab0 AS cor0
----
40
40
40

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 96 * - col1 + - col0 col0 FROM tab2
----
-4942
-6507
-7456

query I rowsort
SELECT + 92 * - + 72 AS col2 FROM tab2
----
-6624
-6624
-6624

query III rowsort
SELECT * FROM tab0 WHERE - - ( + + 37 ) BETWEEN NULL AND + + col1 * + col2
----

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

query II rowsort
SELECT + col1 + + + 32 + + ( + + col2 ) - + col0, + col2 FROM tab0 WHERE NULL IS NULL
----
-24
10
145
47
35
99

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6091
SELECT + COUNT( * ) + - + COUNT( * ) * + MIN( ALL - 83 ) FROM tab2 cor0
----
252

skipif mysql # not compatible
query I rowsort label-6091
SELECT + COUNT ( * ) + - + COUNT ( * ) * + MIN ( ALL - 83 ) FROM tab2 cor0
----
252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6092
SELECT DISTINCT MAX( + 12 ), MIN( DISTINCT - CAST( NULL AS SIGNED ) ) - + 30 AS col0 FROM tab0 AS cor0
----
12
NULL

skipif mysql # not compatible
query II rowsort label-6092
SELECT DISTINCT MAX ( + 12 ), MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) - + 30 AS col0 FROM tab0 AS cor0
----
12
NULL

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE - 81 + + + col2 * - col1 / - 38 NOT IN ( - col0 * + ( + col1 ) - - col2, col2 + + + col1 )
----
14
47
5

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL = + + col0
----

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

query I rowsort
SELECT - 49 - - - col0 FROM tab1 AS cor0
----
-100
-134
-140

query I rowsort
SELECT + col1 * + + 61 + + col2 - col0 + - col0 - col1 * - ( - col2 ) FROM tab2 AS cor0
----
109
1529
1869

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * col1 - - 93 col0 FROM tab2 AS cor0
----
2694
4582
6022

query I rowsort
SELECT + 25 - col0 AS col0 FROM tab1 AS cor0
----
-26
-60
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6101
SELECT + + MAX( col2 ) FROM tab2 WHERE NULL BETWEEN - col0 AND - col1 * col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6101
SELECT + + MAX ( col2 ) FROM tab2 WHERE NULL BETWEEN - col0 AND - col1 * col2
----
NULL

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

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

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab0 WHERE col1 * col1 * 72 / - ( col1 ) + col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( - - col0, ( - col2 ) + + col2 + + ( + 1 ) )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6106
SELECT + col0 DIV - + col2 col1 FROM tab2
----
-1
-1
-2

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6107
SELECT + COUNT( * ) col0, 83 FROM tab0
----
3
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6107
SELECT + COUNT ( * ) col0, 83 FROM tab0
----
3
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6108
SELECT ALL + col0 * CAST( + col2 AS SIGNED ) AS col2 FROM tab0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-6108
SELECT ALL + col0 * CAST ( + col2 AS INTEGER ) AS col2 FROM tab0
----
705
870
9603

query II rowsort
SELECT + col0, - 52 FROM tab0
----
15
-52
87
-52
97
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-6110
SELECT DISTINCT - 68 * - - COUNT( * ) AS col1 FROM tab2
----
-204

skipif mysql # not compatible
query I rowsort label-6110
SELECT DISTINCT - 68 * - - COUNT ( * ) AS col1 FROM tab2
----
-204

onlyif mysql # aggregate syntax: 
query II rowsort label-6111
SELECT ALL 48, ( + COUNT( * ) ) AS col0 FROM tab1
----
48
3

skipif mysql # not compatible
query II rowsort label-6111
SELECT ALL 48, ( + COUNT ( * ) ) AS col0 FROM tab1
----
48
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6112
SELECT DISTINCT + 28 + + col1 * col1 - + CAST( col1 AS SIGNED ) AS col2 FROM tab1 WHERE NULL IS NULL
----
210
2190
48

skipif mysql # not compatible
query I rowsort label-6112
SELECT DISTINCT + 28 + + col1 * col1 - + CAST ( col1 AS INTEGER ) AS col2 FROM tab1 WHERE NULL IS NULL
----
210
2190
48

query II rowsort
SELECT - col2, + col2 * - col1 + - + 87 AS col0 FROM tab2
----
-23
-1260
-40
-3167
-58
-3973

onlyif mysql # aggregate syntax: 
query I rowsort label-6114
SELECT ALL - SUM( ALL - col1 ) AS col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-6114
SELECT ALL - SUM ( ALL - col1 ) AS col2 FROM tab1 AS cor0
----
66

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= 93
----

query I rowsort
SELECT ALL - - 48 * col0 + - col1 FROM tab2 AS cor0
----
2157
2995
3533

query I rowsort
SELECT DISTINCT col0 * ( - + col1 ) * col0 - + - col0 * - col0 * - col2 + 14 + - - col2 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-151498
-50553
-59211

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

query II rowsort
SELECT DISTINCT - col1 * + 94 AS col0, + col2 + + col0 FROM tab0
----
-1974
97
-7614
62
-94
196

query I rowsort
SELECT + + 52 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

onlyif mysql # aggregate syntax: 
query I rowsort label-6122
SELECT DISTINCT - - SUM( ALL 19 ) AS col2 FROM tab2 WHERE NOT + col1 * + - col1 * + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6122
SELECT DISTINCT - - SUM ( ALL 19 ) AS col2 FROM tab2 WHERE NOT + col1 * + - col1 * + col0 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6124
SELECT ALL - COUNT( * ) * - 77 FROM tab1 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-6124
SELECT ALL - COUNT ( * ) * - 77 FROM tab1 AS cor0
----
231

query II rowsort
SELECT - col0 * + col0, + col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col1 * col1 * - + col1 / + 88
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col0 * col0 + + 28 col0 FROM tab0
----
10603
75718
931519

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL = + 34
----

query I rowsort
SELECT - 82 + 75 FROM tab2
----
-7
-7
-7

query II rowsort
SELECT - ( - col1 ) + - + col0 AS col1, + ( col2 ) AS col0 FROM tab0
----
-66
10
-96
99
66
47

query II rowsort
SELECT ALL - col2 AS col1, - col0 AS col1 FROM tab0 WHERE ( NOT NULL IS NOT NULL )
----
-10
-87
-47
-15
-99
-97

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

skipif mysql # not compatible
query I rowsort label-6132
SELECT MAX ( ALL - + col2 ) FROM tab1
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6133
SELECT ALL CAST( - MIN( ALL + - col2 ) AS SIGNED ) + 13 FROM tab0
----
112

skipif mysql # not compatible
query I rowsort label-6133
SELECT ALL CAST ( - MIN ( ALL + - col2 ) AS INTEGER ) + 13 FROM tab0
----
112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, + col2 * + 7 col0 FROM tab2
----
46
161
64
280
75
406

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

query I rowsort
SELECT DISTINCT + col2 + + col0 * col2 + 34 AS col1 FROM tab2
----
1115
2634
4442

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

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

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

skipif mysql # not compatible
query I rowsort label-6138
SELECT ALL + + SUM ( 57 ) * + + COUNT ( * ) AS col2 FROM tab1 cor0
----
513

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

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

query I rowsort
SELECT DISTINCT - ( - - col2 ) * - col0 AS col0 FROM tab0 AS cor0
----
705
870
9603

query II rowsort
SELECT ALL - col2, + col0 * ( col0 ) AS col0 FROM tab2 AS cor0
----
-23
2116
-40
4096
-58
5625

query I rowsort
SELECT + col1 * + 57 + col0 AS col2 FROM tab0
----
1284
154
4632

query I rowsort
SELECT - 59 * - + col0 * + 34 + ( 35 ) FROM tab1
----
102341
170545
182581

onlyif mysql # aggregate syntax: 
query II rowsort label-6144
SELECT ALL MAX( col2 ), 72 AS col1 FROM tab2 AS cor0
----
58
72

skipif mysql # not compatible
query II rowsort label-6144
SELECT ALL MAX ( col2 ), 72 AS col1 FROM tab2 AS cor0
----
58
72

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

query I rowsort
SELECT - - col2 AS col2 FROM tab2 WHERE NOT + col2 * + 43 IS NOT NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 32 * 56 col2 FROM tab2, tab0 AS cor0
----
1792

onlyif mysql # aggregate syntax: 
query I rowsort label-6149
SELECT DISTINCT - 29 + COUNT( * ) * + + 75 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
646

skipif mysql # not compatible
query I rowsort label-6149
SELECT DISTINCT - 29 + COUNT ( * ) * + + 75 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
646

query I rowsort
SELECT 88 * - col1 AS col2 FROM tab1 AS cor0
----
-1232
-4136
-440

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

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

query I rowsort
SELECT - 86 * - col1 AS col0 FROM tab0 AS cor0
----
1806
6966
86

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6156
SELECT ALL 71 DIV - + COUNT( ALL - + 45 ) AS col2 FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-6156
SELECT ALL 71 / - + COUNT ( ALL - + 45 ) AS col2 FROM tab1 AS cor0
----
-23

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

query I rowsort
SELECT ALL + col0 * 51 + + + col0 * 30 * + col0 FROM tab0
----
231507
287217
7515

onlyif mysql # aggregate syntax: 
query I rowsort label-6159
SELECT + MAX( DISTINCT 63 ) * - + 92 + + - 64 + + 77 AS col0 FROM tab1
----
-5783

skipif mysql # not compatible
query I rowsort label-6159
SELECT + MAX ( DISTINCT 63 ) * - + 92 + + - 64 + + 77 AS col0 FROM tab1
----
-5783

query I rowsort
SELECT - col0 + + col1 * - ( - - col0 ) AS col0 FROM tab2
----
-2392
-4992
-5100

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 >= NULL AND - col2 + + col2 + col2 IS NULL
----

query I rowsort
SELECT 78 + + - 4 AS col2 FROM tab1
----
74
74
74

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * - col1 <= - 97 - - 87
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6164
SELECT ALL COUNT( - - 8 ) DIV + - 28 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6164
SELECT ALL COUNT ( - - 8 ) / + - 28 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6165
SELECT ALL + col0 + col0 DIV + - ( - col2 ) AS col1 FROM tab1 AS cor0
----
51
86
92

skipif mysql # not compatible
query I rowsort label-6165
SELECT ALL + col0 + col0 / + - ( - col2 ) AS col1 FROM tab1 AS cor0
----
51
86
92

query I rowsort
SELECT 36 FROM tab0 AS cor0 WHERE - col1 NOT IN ( - col2 )
----
36
36
36

query I rowsort
SELECT DISTINCT - + ( + 8 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-8

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

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

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

query I rowsort
SELECT 15 * col2 - col0 AS col2 FROM tab0
----
1388
63
690

onlyif mysql # aggregate syntax: 
query I rowsort label-6171
SELECT COUNT( * ) - 93 AS col2 FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-6171
SELECT COUNT ( * ) - 93 AS col2 FROM tab2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6172
SELECT - - MIN( ALL col1 ) AS col0 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-6172
SELECT - - MIN ( ALL col1 ) AS col0 FROM tab2 AS cor0
----
51

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6173
SELECT ALL + COUNT ( ( col2 ) ), - 44 col0 FROM tab0 AS cor0
----
3
-44

query II rowsort
SELECT ALL - 28, + 51 * - 59 AS col1 FROM tab1 AS cor0
----
-28
-3009
-28
-3009
-28
-3009

query I rowsort
SELECT DISTINCT ( - col2 ) AS col2 FROM tab0 cor0
----
-10
-47
-99

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6177
SELECT DISTINCT + col1, + 37 DIV - + col1 FROM tab2 cor0
----
51
0
67
0
77
0

skipif mysql # not compatible
query II rowsort label-6177
SELECT DISTINCT + col1, + 37 / - + col1 FROM tab2 cor0
----
51
0
67
0
77
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
SELECT - COUNT( * ) * + 39 FROM tab1
----
-117

skipif mysql # not compatible
query I rowsort label-6181
SELECT - COUNT ( * ) * + 39 FROM tab1
----
-117

onlyif mysql # DIV for integer division: 
query II rowsort label-6182
SELECT col2 DIV - col2, col1 FROM tab1
----
-1
14
-1
47
-1
5

skipif mysql # not compatible
query II rowsort label-6182
SELECT col2 / - col2, col1 FROM tab1
----
-1
14
-1
47
-1
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT + 90 * - - COUNT( * ) FROM tab2
----
270

skipif mysql # not compatible
query I rowsort label-6183
SELECT + 90 * - - COUNT ( * ) FROM tab2
----
270

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN col2 * - 15 + - 85 AND + - 2
----

query I rowsort
SELECT ALL - col0 + - - 32 AS col0 FROM tab2
----
-14
-32
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 18, 89 col0 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
18
89
18
89
18
89

query I rowsort
SELECT - 81 + + col0 FROM tab2 AS cor0
----
-17
-35
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 48 + - col2 col0 FROM tab1 AS cor0
----
-11
-20
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6189
SELECT ALL + SUM( ALL + 18 ) AS col2 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-6189
SELECT ALL + SUM ( ALL + 18 ) AS col2 FROM tab0
----
54

query I rowsort
SELECT DISTINCT + col0 + - col1 - col2 + ( - col1 ) FROM tab2
----
-117
-130
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6191
SELECT - 75 DIV COUNT( * ) FROM tab0
----
-25

skipif mysql # not compatible
query I rowsort label-6191
SELECT - 75 / COUNT ( * ) FROM tab0
----
-25

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

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

query I rowsort
SELECT DISTINCT col0 + + 21 FROM tab1
----
106
112
72

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

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

query I rowsort
SELECT ALL col0 + + 31 AS col2 FROM tab0
----
118
128
46

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

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

query II rowsort
SELECT DISTINCT 97, 32 AS col2 FROM tab0 AS cor0
----
97
32

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

skipif mysql # not compatible
query I rowsort label-6199
SELECT - CAST ( NULL AS INTEGER ) * 6 + - + COUNT ( * ) / + 70 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL 48 * - + ( - 56 ) FROM tab2
----
2688
2688
2688

query I rowsort
SELECT ALL - - 15 FROM tab0 AS cor0 WHERE ( col2 ) NOT IN ( 56, + 6, 53 * - 46 * 25 )
----
15
15
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col1 ) * + col1 * col0 col0 FROM tab0 AS cor0
----
-38367
-97
-98415

query II rowsort
SELECT col2 AS col2, 87 * - - col0 / - col1 - + 2 FROM tab0 AS cor0 WHERE NOT 65 IS NOT NULL
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6209
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE NOT - col1 >= col0
----
-3

skipif mysql # not compatible
query I rowsort label-6209
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE NOT - col1 >= col0
----
-3

query I rowsort
SELECT - 80 * 18 AS col0 FROM tab1
----
-1440
-1440
-1440

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6212
SELECT col1 DIV + + col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6212
SELECT col1 / + + col1 FROM tab2
----
1
1
1

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

query II rowsort
SELECT col2 AS col2, - 90 + - col1 FROM tab2 AS cor0
----
23
-141
40
-167
58
-157

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

query I rowsort
SELECT ALL - + 80 AS col0 FROM tab2 AS cor0
----
-80
-80
-80

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6218
SELECT ALL SUM( - 19 ) FROM tab2 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-6218
SELECT ALL SUM ( - 19 ) FROM tab2 AS cor0
----
-57

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 42 + + col2 col1 FROM tab0
----
141
52
89

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

query I rowsort
SELECT - col2 * + 74 FROM tab0 AS cor0
----
-3478
-7326
-740

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

query I rowsort
SELECT 29 * - - 1 FROM tab1 cor0
----
29
29
29

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

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

skipif mysql # not compatible
query I rowsort label-6227
SELECT - - col1 / col0 - - + col2 AS col1 FROM tab0 AS cor0
----
10
52
99

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6230
SELECT ALL 92 DIV col2 + - col1 FROM tab0
----
-1
-12
-80

skipif mysql # not compatible
query I rowsort label-6230
SELECT ALL 92 / col2 + - col1 FROM tab0
----
-1
-12
-80

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6231
SELECT DISTINCT + 53 * CAST( NULL AS DECIMAL ) + - MAX( DISTINCT + col0 ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6231
SELECT DISTINCT + 53 * CAST ( NULL AS REAL ) + - MAX ( DISTINCT + col0 ) AS col1 FROM tab2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6233
SELECT ALL COUNT( + 1 ) + ( 16 ) FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-6233
SELECT ALL COUNT ( + 1 ) + ( 16 ) FROM tab1
----
19

query I rowsort
SELECT DISTINCT - col1 + col2 AS col0 FROM tab1 WHERE - col1 + - 10 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT + - 25 + col1 AS col0 FROM tab1 AS cor0
----
-11
-20
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6236
SELECT DISTINCT - + COUNT( * ) - 82 FROM tab2 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-6236
SELECT DISTINCT - + COUNT ( * ) - 82 FROM tab2 AS cor0
----
-85

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6239
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6239
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6240
SELECT ALL col1 DIV - col0 AS col0 FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-6240
SELECT ALL col1 / - col0 AS col0 FROM tab0
----
-5
0
0

query II rowsort
SELECT DISTINCT - - 21, - col2 + col1 AS col1 FROM tab0 AS cor0
----
21
-98
21
11
21
34

query I rowsort
SELECT DISTINCT 31 * + + col1 AS col1 FROM tab2 AS cor0
----
1581
2077
2387

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 * - col1 = 73 / + 99
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 1 * 45 * + 81 >= NULL
----

query I rowsort
SELECT ALL - + 27 AS col2 FROM tab1 WHERE col0 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6246
SELECT col0 * - + col2 AS col2, col1 + CAST( NULL AS SIGNED ) FROM tab1
----
-4896
NULL
-5015
NULL
-6188
NULL

skipif mysql # not compatible
query II rowsort label-6246
SELECT col0 * - + col2 AS col2, col1 + CAST ( NULL AS INTEGER ) FROM tab1
----
-4896
NULL
-5015
NULL
-6188
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) * - col2 * - col1 * 4 + - 19 col1 FROM tab1
----
5881
600829
75245

query I rowsort
SELECT ALL + col0 + - ( + - col2 ) - 97 * + col1 AS col2 FROM tab2
----
-4878
-6366
-7365

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6249
SELECT - col2 DIV - + CAST( col0 AS SIGNED ) FROM tab1
----
0
0
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6250
SELECT ALL - MIN( - - 62 ) col2 FROM tab1 cor0
----
-62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6250
SELECT ALL - MIN ( - - 62 ) col2 FROM tab1 cor0
----
-62

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 / + col0 < + + 41
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6253
SELECT 66, COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
66
9

skipif mysql # not compatible
query II rowsort label-6253
SELECT 66, COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
66
9

query I rowsort
SELECT - 31 + + col1 + + + col0 FROM tab1
----
107
34
59

query II rowsort
SELECT ALL + 26 + + + 1 + col2 AS col0, + col1 + - 94 AS col0 FROM tab0
----
126
-93
37
-73
74
-13

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

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

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

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

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

query I rowsort
SELECT col1 * + - col2 AS col2 FROM tab1 AS cor0 WHERE + 5 IS NOT NULL
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6261
SELECT COUNT( * ) DIV - MAX( ALL - 30 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6261
SELECT COUNT ( * ) / - MAX ( ALL - 30 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT 52 * + col0 AS col0 FROM tab2 cor0
----
2392
3328
3900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * - col1 + + col2, + 47 * - ( - col2 ) + + 69 col1 FROM tab0 AS cor0
----
-1168
2278
-1817
539
2
4722

query I rowsort
SELECT 98 * + ( + col1 ) FROM tab0
----
2058
7938
98

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

skipif mysql # not compatible
query I rowsort label-6265
SELECT + COUNT ( * ) FROM tab0 WHERE + CAST ( NULL AS INTEGER ) NOT IN ( col0 )
----
0

query I rowsort
SELECT ALL + - col2 FROM tab1 WHERE NOT + col2 * - - 92 + + col0 = + + col2
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6267
SELECT COUNT( * ) FROM tab2 WHERE + + 87 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6267
SELECT COUNT ( * ) FROM tab2 WHERE + + 87 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6268
SELECT 47 - - + MIN( DISTINCT + col0 ) FROM tab1
----
98

skipif mysql # not compatible
query I rowsort label-6268
SELECT 47 - - + MIN ( DISTINCT + col0 ) FROM tab1
----
98

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 * - 51 col2 FROM tab1 AS cor0
----
-2193
-2193
-2193

onlyif mysql # DIV for integer division: 
query I rowsort label-6272
SELECT col1 DIV - 25 FROM tab2 AS cor0
----
-2
-2
-3

skipif mysql # not compatible
query I rowsort label-6272
SELECT col1 / - 25 FROM tab2 AS cor0
----
-2
-2
-3

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

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

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

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

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

skipif mysql # not compatible
query II rowsort label-6275
SELECT ALL + col2 / col0 / col0 AS col1, col1 AS col0 FROM tab2 AS cor0
----
0
51
0
67
0
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6276
SELECT ALL + 46 * - MAX( ALL - 4 ) AS col0 FROM tab0 AS cor0
----
184

skipif mysql # not compatible
query I rowsort label-6276
SELECT ALL + 46 * - MAX ( ALL - 4 ) AS col0 FROM tab0 AS cor0
----
184

query I rowsort
SELECT - col2 * - col1 * + col2 FROM tab2 AS cor0
----
123200
225388
26979

query II rowsort
SELECT DISTINCT + + col2 * + - ( col1 ) + ( + col0 ) AS col2, col2 FROM tab2 AS cor0
----
-1127
23
-3016
40
-3811
58

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6282
SELECT DISTINCT col2 * 13 DIV col1 FROM tab1
----
153
18
89

skipif mysql # not compatible
query I rowsort label-6282
SELECT DISTINCT col2 * 13 / col1 FROM tab1
----
153
18
89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6283
SELECT ALL + col2 + - 43 * - CAST( + 61 AS SIGNED ), col2 col2 FROM tab1
----
2682
59
2691
68
2719
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6283
SELECT ALL + col2 + - 43 * - CAST ( + 61 AS INTEGER ), col2 col2 FROM tab1
----
2682
59
2691
68
2719
96

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

query I rowsort
SELECT - 65 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 68 BETWEEN ( - 27 ) AND + + col1
----
46
51
23
75
67
58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6287
SELECT + ( + 95 ), CAST( NULL AS DECIMAL ) - - COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
95
NULL

skipif mysql # not compatible
query II rowsort label-6287
SELECT + ( + 95 ), CAST ( NULL AS REAL ) - - COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
95
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6288
SELECT DISTINCT - 73 DIV + - 11 + + + ( - - ( COUNT( * ) ) ), + COUNT( * ) AS col0 FROM tab1
----
9
3

skipif mysql # not compatible
query II rowsort label-6288
SELECT DISTINCT - 73 / + - 11 + + + ( - - ( COUNT ( * ) ) ), + COUNT ( * ) AS col0 FROM tab1
----
9
3

query I rowsort
SELECT - 47 * + - 58 AS col2 FROM tab2
----
2726
2726
2726

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 JOIN tab2 AS cor1 ON NULL IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6293
SELECT COUNT( * ) - - 53 AS col0, COUNT( * ) AS col0 FROM tab2 AS cor0
----
56
3

skipif mysql # not compatible
query II rowsort label-6293
SELECT COUNT ( * ) - - 53 AS col0, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
56
3

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 98 * col1 * - col2 - + 54 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6296
SELECT COUNT( * ) col1 FROM tab1 AS cor0 WHERE NULL IN ( col0 * + col1 + col0, col0 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6296
SELECT COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NULL IN ( col0 * + col1 + col0, col0 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6297
SELECT DISTINCT COUNT( * ) DIV 35 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6297
SELECT DISTINCT COUNT ( * ) / 35 FROM tab1
----
0

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

skipif mysql # not compatible
query I rowsort label-6298
SELECT - MIN ( ALL - 24 ) AS col1 FROM tab2 WHERE col1 IS NOT NULL
----
24

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 18 * 74 + - col0 * + - 24 col0 FROM tab2
----
2436
2868
3132

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

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 81 * - + col0 NOT BETWEEN + - 20 AND - - col0
----

query I rowsort
SELECT DISTINCT - 94 AS col1 FROM tab0 cor0
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-6306
SELECT 5 DIV col1 AS col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6306
SELECT 5 / col1 AS col1 FROM tab1
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 67 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6308
SELECT + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + col2 <= + 35
----
3

skipif mysql # not compatible
query I rowsort label-6308
SELECT + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + col2 <= + 35
----
3

query I rowsort
SELECT DISTINCT - col2 * ( 50 ) - + col1 - 57 AS col1 FROM tab2 cor0
----
-1258
-2134
-3024

query II rowsort
SELECT 36 * col0 AS col2, + col1 AS col1 FROM tab0 cor0
----
3132
21
3492
1
540
81

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6311
SELECT + 49, CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 WHERE NOT - col0 * + + col2 NOT BETWEEN + - col0 AND NULL
----

skipif mysql # not compatible
query II rowsort label-6311
SELECT + 49, CAST ( NULL AS REAL ) FROM tab1 AS cor0 WHERE NOT - col0 * + + col2 NOT BETWEEN + - col0 AND NULL
----

query I rowsort
SELECT DISTINCT - col2 * 42 + 54 FROM tab2 AS cor0
----
-1626
-2382
-912

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

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

query I rowsort
SELECT ALL col1 + 13 FROM tab0
----
14
34
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6316
SELECT DISTINCT + 30 + + COUNT( * ) AS col1 FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-6316
SELECT DISTINCT + 30 + + COUNT ( * ) AS col1 FROM tab2
----
33

query I rowsort
SELECT ALL - col1 * - - col0 AS col0 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT DISTINCT col1 + - - 80 FROM tab1
----
127
85
94

query I rowsort
SELECT col2 * col2 * col1 * - col2 FROM tab1
----
-1026895
-12386304
-14778304

query I rowsort
SELECT DISTINCT - 59 + - ( + ( + col1 ) ) FROM tab0
----
-140
-60
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( + col1 ) + - - col0 col2, + 34 FROM tab0
----
108
34
96
34
98
34

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6323
SELECT DISTINCT + CAST( + col2 AS SIGNED ) DIV + - 46 AS col2 FROM tab2 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6323
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) / + - 46 AS col2 FROM tab2 cor0
----
-1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6324
SELECT SUM( ALL + col1 ) - ( + 41 ) - COUNT( * ) DIV - 46 AS col0 FROM tab2 AS cor0
----
154

skipif mysql # not compatible
query I rowsort label-6324
SELECT SUM ( ALL + col1 ) - ( + 41 ) - COUNT ( * ) / - 46 AS col0 FROM tab2 AS cor0
----
154

query I rowsort
SELECT ALL 98 + + + col0 AS col1 FROM tab1 AS cor0
----
149
183
189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - - col1 + + - 51 col2 FROM tab2
----
-51
-51
-51

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6328
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - + CAST( NULL AS SIGNED ) AND - 82 * - col1 + - 83
----

skipif mysql # not compatible
query III rowsort label-6328
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - + CAST ( NULL AS INTEGER ) AND - 82 * - col1 + - 83
----

query I rowsort
SELECT DISTINCT 75 AS col1 FROM tab0 AS cor0
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * - 54 col0 FROM tab2 AS cor0
----
-2484
-3456
-4050

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6332
SELECT ALL + col0 DIV - col0 AS col2, + col0 FROM tab2
----
-1
46
-1
64
-1
75

skipif mysql # not compatible
query II rowsort label-6332
SELECT ALL + col0 / - col0 AS col2, + col0 FROM tab2
----
-1
46
-1
64
-1
75

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

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

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

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

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

query II rowsort
SELECT ALL ( + col0 ) * + col0 + - col1 + + col1 + - 5 * - - col1 AS col0, - col1 FROM tab2
----
1861
-51
3711
-77
5290
-67

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

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

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

query I rowsort
SELECT col1 * - 19 * - ( - col2 ) AS col2 FROM tab0
----
-1881
-3990
-72333

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <> 68
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 92, + 53 col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col0 * - + col0
----

query I rowsort
SELECT ALL + col2 * + - col2 AS col0 FROM tab2 AS cor0
----
-1600
-3364
-529

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6345
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 37 * - col0 < + col0 * col2 * - - CAST( col0 AS SIGNED ) + + col1 * - - col0
----

skipif mysql # not compatible
query III rowsort label-6345
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 37 * - col0 < + col0 * col2 * - - CAST ( col0 AS INTEGER ) + + col1 * - - col0
----

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

query I rowsort
SELECT DISTINCT + 77 + + - col1 AS col0 FROM tab1 AS cor0
----
30
63
72

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

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

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

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

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

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

query I rowsort
SELECT 56 + + 77 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8f0ca4cf97de794a4b9271d695e9d991

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6354
SELECT MIN( - 15 ) FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
-15

skipif mysql # not compatible
query I rowsort label-6354
SELECT MIN ( - 15 ) FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6355
SELECT MAX( ALL + 68 ) + - - CAST( NULL AS SIGNED ) FROM tab0, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6355
SELECT MAX ( ALL + 68 ) + - - CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT - COUNT( * ) - + + 23 * - SUM( + col0 ) FROM tab1 AS cor0
----
5218

skipif mysql # not compatible
query I rowsort label-6356
SELECT - COUNT ( * ) - + + 23 * - SUM ( + col0 ) FROM tab1 AS cor0
----
5218

query I rowsort
SELECT ALL col2 - ( - + col1 ) AS col1 FROM tab0 AS cor0
----
100
128
31

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

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

query I rowsort
SELECT ALL + - 78 - col0 AS col1 FROM tab0 AS cor0
----
-165
-175
-93

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

query I rowsort
SELECT DISTINCT + 84 AS col0 FROM tab1 AS cor0 WHERE NOT 27 <= NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6363
SELECT ALL + COUNT( * ), 32 AS col2 FROM tab1 AS cor0
----
3
32

skipif mysql # not compatible
query II rowsort label-6363
SELECT ALL + COUNT ( * ), 32 AS col2 FROM tab1 AS cor0
----
3
32

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

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

query I rowsort
SELECT 34 * col2 AS col0 FROM tab0
----
1598
3366
340

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 39 * - col0 + + col0 + + col2 - + col0 / col2 * - col1 = - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT DISTINCT col2 * - - col1 * + ( - col0 ) AS col2 FROM tab1
----
-25075
-290836
-68544

onlyif mysql # DIV for integer division: 
query I rowsort label-6369
SELECT DISTINCT col1 DIV - + 92 col1 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6369
SELECT DISTINCT col1 / - + 92 col1 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6370
SELECT + 6 DIV col0 * + - 16 col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6370
SELECT + 6 / col0 * + - 16 col0 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6371
SELECT DISTINCT CAST( + col0 AS SIGNED ) DIV - col1 - 59 FROM tab2
----
-59
-60

skipif mysql # not compatible
query I rowsort label-6371
SELECT DISTINCT CAST ( + col0 AS INTEGER ) / - col1 - 59 FROM tab2
----
-59
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6372
SELECT ALL - - col0 + - col0 AS col0 FROM tab0 WHERE NOT + CAST( - - col2 AS SIGNED ) + + 96 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6372
SELECT ALL - - col0 + - col0 AS col0 FROM tab0 WHERE NOT + CAST ( - - col2 AS INTEGER ) + + 96 IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6374
SELECT * FROM tab2 WHERE NOT col0 - - col1 + + - col2 + + col2 * CAST( col2 AS SIGNED ) * col0 = NULL
----

skipif mysql # not compatible
query III rowsort label-6374
SELECT * FROM tab2 WHERE NOT col0 - - col1 + + - col2 + + col2 * CAST ( col2 AS INTEGER ) * col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6375
SELECT DISTINCT + COUNT( DISTINCT - ( + ( + + 4 ) ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-6375
SELECT DISTINCT + COUNT ( DISTINCT - ( + ( + + 4 ) ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
1

query I rowsort
SELECT + - 25 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6377
SELECT DISTINCT - col1, + ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0 WHERE NOT 37 * col2 * + col0 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-6377
SELECT DISTINCT - col1, + ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0 WHERE NOT 37 * col2 * + col0 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6379
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL <= + col2
----
0

skipif mysql # not compatible
query I rowsort label-6379
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL <= + col2
----
0

query I rowsort
SELECT ALL + 66 + col2 AS col0 FROM tab1 WHERE ( ( - 72 * + - ( - col0 ) IS NOT NULL ) )
----
125
134
162

query I rowsort
SELECT DISTINCT - 58 + - - col2 FROM tab1
----
1
10
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6382
SELECT COUNT( * ) AS col0 FROM tab0 WHERE NULL BETWEEN ( - col0 ) AND 87
----
0

skipif mysql # not compatible
query I rowsort label-6382
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE NULL BETWEEN ( - col0 ) AND 87
----
0

query III rowsort
SELECT * FROM tab2 WHERE 93 IS NULL
----

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

query I rowsort
SELECT ALL - 59 - - 66 FROM tab2
----
7
7
7

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NULL BETWEEN - - 60 AND NULL
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6389
SELECT col1 DIV - 18 + - col2 * col2 FROM tab2
----
-1604
-3367
-531

skipif mysql # not compatible
query I rowsort label-6389
SELECT col1 / - 18 + - col2 * col2 FROM tab2
----
-1604
-3367
-531

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6392
SELECT COUNT ( * ) * 9 AS col0 FROM tab0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6393
SELECT ALL - 37 * - COUNT( * ) col1 FROM tab1
----
111

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6393
SELECT ALL - 37 * - COUNT ( * ) col1 FROM tab1
----
111

query III rowsort
SELECT * FROM tab0 WHERE NOT 27 * - col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6395
SELECT COUNT( * ) * 15 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-6395
SELECT COUNT ( * ) * 15 FROM tab0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6396
SELECT DISTINCT - SUM( + 59 ) * COUNT( * ) FROM tab0
----
-531

skipif mysql # not compatible
query I rowsort label-6396
SELECT DISTINCT - SUM ( + 59 ) * COUNT ( * ) FROM tab0
----
-531

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

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

query I rowsort
SELECT 32 + - col2 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-15
-67
22

query I rowsort
SELECT DISTINCT + 28 * col0 FROM tab0 WHERE NOT - col0 * + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 91 col1 FROM tab2
----
114
131
149

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

query I rowsort
SELECT + 97 + col0 FROM tab1
----
148
182
188

query I rowsort
SELECT DISTINCT 99 AS col2 FROM tab2 WHERE ( NULL ) BETWEEN col2 + col2 AND + 94
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col1 + col1 col0 FROM tab0
----
-1134
-1806
-96

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

query I rowsort
SELECT col2 FROM tab1 WHERE col2 / - col0 - + col1 IS NOT NULL
----
59
68
96

query I rowsort
SELECT DISTINCT 87 AS col1 FROM tab1 WHERE - ( 61 ) / 38 IS NOT NULL
----
87

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

query I rowsort
SELECT DISTINCT 43 * 64 + col0 * col0 FROM tab0 WHERE col0 <> ( col0 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT 86 + COUNT( * ) * - 57 AS col0 FROM tab0
----
-85

skipif mysql # not compatible
query I rowsort label-6411
SELECT 86 + COUNT ( * ) * - 57 AS col0 FROM tab0
----
-85

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 <> + ( + 20 )
----

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 ) >= ( - col1 - col2 * col2 )
----

query I rowsort
SELECT ALL + 3 * col1 FROM tab2
----
153
201
231

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

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

query I rowsort
SELECT 27 AS col1 FROM tab1 AS cor0 WHERE + 9 / col0 IS NOT NULL
----
27
27
27

onlyif mysql # DIV for integer division: 
query I rowsort label-6419
SELECT + + col2 DIV - 34 AS col1 FROM tab1 AS cor0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-6419
SELECT + + col2 / - 34 AS col1 FROM tab1 AS cor0
----
-1
-2
-2

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

skipif mysql # not compatible
query I rowsort label-6420
SELECT - COUNT ( * ) + 40 FROM tab1 cor0 WHERE NULL IS NOT NULL
----
40

query I rowsort
SELECT + - 82 AS col2 FROM tab1 cor0
----
-82
-82
-82

query I rowsort
SELECT 83 * - col1 AS col2 FROM tab0 AS cor0
----
-1743
-6723
-83

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6426
SELECT ALL MIN ( ALL + - col2 ) * COUNT ( * ) AS col0 FROM tab0
----
-297

query I rowsort
SELECT DISTINCT col1 * col1 + col2 AS col1 FROM tab2
----
2624
4547
5969

onlyif mysql # aggregate syntax: 
query I rowsort label-6428
SELECT ALL COUNT( * ) FROM tab1 WHERE ( NULL ) <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6428
SELECT ALL COUNT ( * ) FROM tab1 WHERE ( NULL ) <> ( NULL )
----
0

query I rowsort
SELECT col0 * - + col2 + col0 FROM tab2
----
-1012
-2496
-4275

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6430
SELECT CAST( NULL AS DECIMAL ) AS col0 FROM tab0 WHERE - 3 IN ( 19 * col0 )
----

skipif mysql # not compatible
query I rowsort label-6430
SELECT CAST ( NULL AS REAL ) AS col0 FROM tab0 WHERE - 3 IN ( 19 * col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - 81 * + 23 ) NOT BETWEEN 48 * col0 AND ( NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 * - - 1 + + 91 FROM tab1
----
105
138
96

query I rowsort
SELECT DISTINCT 42 - + - ( - 67 ) FROM tab0
----
-25

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

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

query I rowsort
SELECT - col1 * + 29 + 62 FROM tab1 AS cor0
----
-1301
-344
-83

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

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

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE ( NOT ( col0 ) < col2 )
----
87
21
10

query I rowsort
SELECT ALL + col0 * - - col1 AS col1 FROM tab0
----
1215
1827
97

query II rowsort
SELECT - col2 AS col1, col1 * 89 FROM tab2
----
-23
4539
-40
6853
-58
5963

query I rowsort
SELECT + col0 AS col2 FROM tab1 WHERE NOT + col0 / + 22 + + col0 * - 43 IS NOT NULL
----

query I rowsort
SELECT - ( - + 97 ) FROM tab1
----
97
97
97

query II rowsort
SELECT 10, col0 AS col2 FROM tab2
----
10
46
10
64
10
75

onlyif mysql # aggregate syntax: 
query II rowsort label-6445
SELECT DISTINCT - 72 AS col0, + SUM( DISTINCT + col0 ) FROM tab2 AS cor0
----
-72
185

skipif mysql # not compatible
query II rowsort label-6445
SELECT DISTINCT - 72 AS col0, + SUM ( DISTINCT + col0 ) FROM tab2 AS cor0
----
-72
185

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

skipif mysql # not compatible
query I rowsort label-6446
SELECT ALL CAST ( + ( - col0 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-15
-87
-97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6448
SELECT ALL + 78 * 94 * - ( MIN( DISTINCT 43 ) ) + 22 FROM tab1 AS cor0
----
-315254

skipif mysql # not compatible
query I rowsort label-6448
SELECT ALL + 78 * 94 * - ( MIN ( DISTINCT 43 ) ) + 22 FROM tab1 AS cor0
----
-315254

onlyif mysql # aggregate syntax: 
query I rowsort label-6449
SELECT ALL 23 * COUNT( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
69

skipif mysql # not compatible
query I rowsort label-6449
SELECT ALL 23 * COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
69

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

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

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

query I rowsort
SELECT AVG ( - 37 ) FROM tab0 WHERE NOT ( NULL ) NOT IN ( + col1 )
----
NULL

query I rowsort
SELECT DISTINCT + 92 * - - col0 * 16 AS col0 FROM tab2
----
110400
67712
94208

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6455
SELECT ALL * FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) IN ( - + 53 )
----

skipif mysql # not compatible
query III rowsort label-6455
SELECT ALL * FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) IN ( - + 53 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 41 * + col1 AS col0, - col1 + col1 * 97 col1 FROM tab0
----
3321
7776
41
96
861
2016

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6458
SELECT + 94 * col2 AS col0, + 68 + + - CAST( NULL AS SIGNED ) - + col2 col2 FROM tab1
----
5546
NULL
6392
NULL
9024
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6458
SELECT + 94 * col2 AS col0, + 68 + + - CAST ( NULL AS INTEGER ) - + col2 col2 FROM tab1
----
5546
NULL
6392
NULL
9024
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6461
SELECT - - 23 * - - 43 + + - COUNT( * ) FROM tab0 AS cor0
----
986

skipif mysql # not compatible
query I rowsort label-6461
SELECT - - 23 * - - 43 + + - COUNT ( * ) FROM tab0 AS cor0
----
986

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6463
SELECT DISTINCT + 65 * - - SUM( DISTINCT col1 ) FROM tab1 AS cor0
----
4290

skipif mysql # not compatible
query I rowsort label-6463
SELECT DISTINCT + 65 * - - SUM ( DISTINCT col1 ) FROM tab1 AS cor0
----
4290

onlyif mysql # DIV for integer division: 
query I rowsort label-6464
SELECT - - 75 DIV + + ( 9 ) AS col2 FROM tab1 AS cor0
----
8
8
8

skipif mysql # not compatible
query I rowsort label-6464
SELECT - - 75 / + + ( 9 ) AS col2 FROM tab1 AS cor0
----
8
8
8

query III rowsort
SELECT * FROM tab0 WHERE - col2 NOT BETWEEN - col1 AND NULL
----
97
1
99

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

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

query I rowsort
SELECT - col1 * - col1 / + 63 * + col0 AS col2 FROM tab1 AS cor0 WHERE col2 > NULL
----

query II rowsort
SELECT DISTINCT - 66 AS col2, + 0 AS col0 FROM tab1 AS cor0
----
-66
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 44 * col2 * 66 col2 FROM tab0 cor0
----
-136488
-287496
-29040

query I rowsort
SELECT - 70 + + - 43 AS col0 FROM tab1 AS cor0
----
-113
-113
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-6472
SELECT ALL - COUNT( * ) * - 39 AS col1 FROM tab0 AS cor0 WHERE NOT 16 NOT BETWEEN ( NULL ) AND 50
----
0

skipif mysql # not compatible
query I rowsort label-6472
SELECT ALL - COUNT ( * ) * - 39 AS col1 FROM tab0 AS cor0 WHERE NOT 16 NOT BETWEEN ( NULL ) AND 50
----
0

query I rowsort
SELECT DISTINCT - col0 * + + 86 FROM tab2 AS cor0
----
-3956
-5504
-6450

query I rowsort
SELECT - col2 AS col2 FROM tab2 AS cor0 WHERE + col0 * + 38 IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - 64 * + - col2 * 68 FROM tab2
----
100096
174080
252416

onlyif mysql # DIV for integer division: 
query I rowsort label-6476
SELECT - col1 DIV 9 col0 FROM tab1
----
-1
-5
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6476
SELECT - col1 / 9 col0 FROM tab1
----
-1
-5
0

query I rowsort
SELECT DISTINCT - + 2 AS col0 FROM tab2 WHERE - 60 + - col0 IS NULL
----

query I rowsort
SELECT + 98 - + col0 AS col2 FROM tab2
----
23
34
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 74 * - + 38 col1 FROM tab0
----
2812
2812
2812

onlyif mysql # aggregate syntax: 
query I rowsort label-6480
SELECT DISTINCT COUNT( * ) * COUNT( * ) + + + 82 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-6480
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) + + + 82 FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6481
SELECT - 4 * + + COUNT( * ) AS col1 FROM tab2, tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-6481
SELECT - 4 * + + COUNT ( * ) AS col1 FROM tab2, tab2 AS cor0
----
-36

query I rowsort
SELECT DISTINCT - + 41 - - + col0 FROM tab2 AS cor0
----
23
34
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6483
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE - 87 < ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6483
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE - 87 < ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6484
SELECT ALL + COUNT( * ) * - 77 + COUNT( * ) FROM tab0 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-6484
SELECT ALL + COUNT ( * ) * - 77 + COUNT ( * ) FROM tab0 AS cor0
----
-228

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE 45 * - col2 NOT BETWEEN + col1 AND col1
----
-10
-47
-99

query I rowsort
SELECT - 48 + - col1 AS col2 FROM tab0 AS cor0
----
-129
-49
-69

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

query IIIIII rowsort
SELECT * FROM tab2 cor0 JOIN tab0 cor1 ON ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6489
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 WHERE NOT ( + CAST( + - 36 AS SIGNED ) ) BETWEEN 85 AND - + col2
----
3

skipif mysql # not compatible
query I rowsort label-6489
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 WHERE NOT ( + CAST ( + - 36 AS INTEGER ) ) BETWEEN 85 AND - + col2
----
3

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 81 >= - col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 NOT BETWEEN 15 AND + col0 / 52 * col2
----

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6495
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) > - col1
----
0

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NOT - 10 / col0 NOT BETWEEN NULL AND NULL )
----

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

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

query II rowsort
SELECT ALL + 21 AS col2, 66 * + col0 FROM tab2
----
21
3036
21
4224
21
4950

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6501
SELECT COUNT( * ) DIV + + 67 FROM tab1 WHERE NOT NULL < ( - ( col2 ) * 91 )
----
0

skipif mysql # not compatible
query I rowsort label-6501
SELECT COUNT ( * ) / + + 67 FROM tab1 WHERE NOT NULL < ( - ( col2 ) * 91 )
----
0

query I rowsort
SELECT + 1 + + + 41 FROM tab0 AS cor0
----
42
42
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6503
SELECT ALL - MIN( + - 85 ) FROM tab1 AS cor0 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6503
SELECT ALL - MIN ( + - 85 ) FROM tab1 AS cor0 WHERE col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6504
SELECT - 11 + MIN( DISTINCT 12 ) col0 FROM tab2 cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6504
SELECT - 11 + MIN ( DISTINCT 12 ) col0 FROM tab2 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6505
SELECT MIN( + + 96 ) + - - 97 AS col2 FROM tab2 cor0
----
193

skipif mysql # not compatible
query I rowsort label-6505
SELECT MIN ( + + 96 ) + - - 97 AS col2 FROM tab2 cor0
----
193

query I rowsort
SELECT col1 * + col0 + col1 + + ( + ( + + 2 ) ) AS col1 FROM tab1 AS cor0
----
432
4326
730

query I rowsort
SELECT + - col1 * + col0 + 63 FROM tab0 AS cor0
----
-1152
-1764
-34

query I rowsort
SELECT DISTINCT 89 * - + ( - col2 ) FROM tab1
----
5251
6052
8544

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

query I rowsort
SELECT ALL - col1 + - col1 + - 70 FROM tab0 AS cor0
----
-112
-232
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-6511
SELECT DISTINCT - + col0 DIV 82 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6511
SELECT DISTINCT - + col0 / 82 AS col0 FROM tab2 AS cor0
----
0

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

query I rowsort
SELECT + col2 * + - col2 + + 1 FROM tab1 AS cor0
----
-3480
-4623
-9215

onlyif mysql # DIV for integer division: 
query I rowsort label-6514
SELECT DISTINCT - - col1 * + col2 DIV + col2 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-6514
SELECT DISTINCT - - col1 * + col2 / + col2 FROM tab2 AS cor0
----
51
67
77

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

query I rowsort
SELECT + + 83 - - + 48 AS col1 FROM tab1 AS cor0
----
131
131
131

query I rowsort
SELECT DISTINCT - - col2 * 90 + - + col2 AS col0 FROM tab0 AS cor0
----
4183
8811
890

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 IS NOT NULL AND NOT - col2 IN ( - col1, 79 )
----

query I rowsort
SELECT DISTINCT - col1 + + col1 + 25 + 97 * - + col2 * - col0 + - col0 FROM tab1
----
474886
486395
600170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6523
SELECT 43 DIV - COUNT( * ) + CAST( - + COUNT( * ) AS SIGNED ) AS col2 FROM tab1
----
-17

skipif mysql # not compatible
query I rowsort label-6523
SELECT 43 / - COUNT ( * ) + CAST ( - + COUNT ( * ) AS INTEGER ) AS col2 FROM tab1
----
-17

query I rowsort
SELECT 30 FROM tab1 WHERE + col0 * - col1 IS NOT NULL
----
30
30
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6525
SELECT DISTINCT 59 * AVG ( ALL + + CAST( NULL AS SIGNED ) ) + + SUM( - - col1 ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6525
SELECT DISTINCT 59 * AVG ( ALL + + CAST ( NULL AS INTEGER ) ) + + SUM ( - - col1 ) col0 FROM tab0
----
NULL

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE + col1 - col0 <= + col0
----
23
40
58

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6527
SELECT ALL * FROM tab0 WHERE NOT - - 87 + - - CAST( 33 AS DECIMAL ) * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6527
SELECT ALL * FROM tab0 WHERE NOT - - 87 + - - CAST ( 33 AS REAL ) * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( + + 67 ) - - 25 AS col2 FROM tab2
----
92
92
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6529
SELECT DISTINCT ( + 62 ) + SUM( + 61 ) FROM tab2
----
245

skipif mysql # not compatible
query I rowsort label-6529
SELECT DISTINCT ( + 62 ) + SUM ( + 61 ) FROM tab2
----
245

query I rowsort
SELECT ALL - + col2 FROM tab1 cor0 WHERE col0 < NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT DISTINCT - MAX( + col2 ) * + + 54 * SUM( - + col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 29 AND + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6532
SELECT DISTINCT - MAX ( + col2 ) * + + 54 * SUM ( - + col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 29 AND + col2
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 71 IS NOT NULL
----

query I rowsort
SELECT + col0 * + col1 AS col1 FROM tab1 WHERE NOT - 78 - + 82 + col2 IS NOT NULL
----

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

query II rowsort
SELECT DISTINCT col0 AS col2, + col0 + - - 36 AS col1 FROM tab1
----
51
87
85
121
91
127

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

query I rowsort
SELECT - col2 + - - col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - 86 )
----

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

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

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

query II rowsort
SELECT ALL col0 AS col0, col1 + 89 FROM tab0 AS cor0
----
15
170
87
110
97
90

query I rowsort
SELECT DISTINCT + 22 AS col2 FROM tab2, tab1 cor0
----
22

query I rowsort
SELECT DISTINCT col2 + - 64 FROM tab1
----
-5
32
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6544
SELECT DISTINCT COUNT( * ) + + 2 AS col1 FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-6544
SELECT DISTINCT COUNT ( * ) + + 2 AS col1 FROM tab0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6545
SELECT * FROM tab1 WHERE NOT NULL <= + - 52 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6545
SELECT * FROM tab1 WHERE NOT NULL <= + - 52 + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6546
SELECT - SUM( DISTINCT - col0 ) AS col2 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-6546
SELECT - SUM ( DISTINCT - col0 ) AS col2 FROM tab1
----
227

query I rowsort
SELECT DISTINCT + col2 * + + col0 + + col2 + + - col2 * + 54 FROM tab0
----
-1786
340
4356

query I rowsort
SELECT - 18 * - + 13 * + col0 * - 42 - + col2 + 73 / col1 AS col2 FROM tab1 WHERE NOT - col0 < col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6549
SELECT - 52 * - + 53 AS col1, SUM( - 80 ) + + COUNT( * ) AS col2 FROM tab1
----
2756
-237

skipif mysql # not compatible
query II rowsort label-6549
SELECT - 52 * - + 53 AS col1, SUM ( - 80 ) + + COUNT ( * ) AS col2 FROM tab1
----
2756
-237

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6551
SELECT ALL - MAX( DISTINCT col0 ) FROM tab1 AS cor0 WHERE NOT NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6551
SELECT ALL - MAX ( DISTINCT col0 ) FROM tab1 AS cor0 WHERE NOT NULL > NULL
----
NULL

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

query I rowsort
SELECT ALL - 16 AS col0 FROM tab0 cor0 WHERE - 64 IN ( - + col1, + col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6554
SELECT - col1 + col0 + + - col1 AS col2, 63 + col1 * - CAST( NULL AS DECIMAL ) FROM tab2
----
-56
NULL
-59
NULL
-90
NULL

skipif mysql # not compatible
query II rowsort label-6554
SELECT - col1 + col0 + + - col1 AS col2, 63 + col1 * - CAST ( NULL AS REAL ) FROM tab2
----
-56
NULL
-59
NULL
-90
NULL

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

skipif mysql # not compatible
query I rowsort label-6555
SELECT 69 + ( - 41 ) + col0 * CAST ( NULL AS INTEGER ) * + - col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - + col1 col1 FROM tab2
----
-13
-5
8

query I rowsort
SELECT DISTINCT - col0 - + + 27 FROM tab2
----
-102
-73
-91

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col0 ) * + col1 + + - col0 col2 FROM tab2 AS cor0
----
-2392
-4992
-5100

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

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

query I rowsort
SELECT DISTINCT col2 * 57 - + 28 AS col2 FROM tab1 cor0
----
3335
3848
5444

query I rowsort
SELECT + - 76 * - 71 AS col2 FROM tab1 AS cor0
----
5396
5396
5396

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

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

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

query II rowsort
SELECT - col0 AS col1, + col1 * + 57 FROM tab1 AS cor0
----
-51
798
-85
285
-91
2679

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6566
SELECT - col2 - + - col2 + CAST ( NULL AS REAL ) col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6567
SELECT ALL COUNT( * ) * MAX( + 44 ) AS col0 FROM tab1
----
132

skipif mysql # not compatible
query I rowsort label-6567
SELECT ALL COUNT ( * ) * MAX ( + 44 ) AS col0 FROM tab1
----
132

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( - col1 ) < 16 + - + 83
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query II rowsort
SELECT ALL col2 * + col1 AS col0, + col0 AS col2 FROM tab0
----
210
87
3807
15
99
97

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col1 * col2 col0 FROM tab1
----
-1475
-150212
-18816

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6575
SELECT MIN( 68 ) AS col0 FROM tab0
----
68

skipif mysql # not compatible
query I rowsort label-6575
SELECT MIN ( 68 ) AS col0 FROM tab0
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-6576
SELECT ALL 90 * 63 DIV + col0 AS col1 FROM tab0
----
378
58
65

skipif mysql # not compatible
query I rowsort label-6576
SELECT ALL 90 * 63 / + col0 AS col1 FROM tab0
----
378
58
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6577
SELECT ALL COUNT( * ) * 83 AS col1 FROM tab1
----
249

skipif mysql # not compatible
query I rowsort label-6577
SELECT ALL COUNT ( * ) * 83 AS col1 FROM tab1
----
249

query II rowsort
SELECT ALL 15 AS col0, 72 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to c713be5750e69e15e498aacfc97f1a1b

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6579
SELECT DISTINCT + + COUNT( * ) DIV 48 FROM tab1 AS cor0
----
0

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

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

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

query I rowsort
SELECT DISTINCT - col0 FROM tab1 cor0 WHERE NOT col2 IS NOT NULL
----

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

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

query I rowsort
SELECT + col1 - + 7 FROM tab2 AS cor0 WHERE NOT + 71 <= + col1 * + col1
----

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

query III rowsort
SELECT * FROM tab2 WHERE NOT 48 > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6586
SELECT ALL - col0 * + + CAST( col2 AS SIGNED ) + - col0 * 77 AS col0 FROM tab2
----
-10125
-4600
-7488

skipif mysql # not compatible
query I rowsort label-6586
SELECT ALL - col0 * + + CAST ( col2 AS INTEGER ) + - col0 * 77 AS col0 FROM tab2
----
-10125
-4600
-7488

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

skipif mysql # not compatible
query I rowsort label-6587
SELECT ALL COUNT ( DISTINCT col0 ) FROM tab0
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6589
SELECT DISTINCT COUNT( * ) + 17 AS col1 FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-6589
SELECT DISTINCT COUNT ( * ) + 17 AS col1 FROM tab0 AS cor0
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6590
SELECT col0 / - 63 AS col1 FROM tab1 WHERE - + CAST( col2 AS SIGNED ) >= + 24 * - col2 * - col1 * + col1 * 74
----

skipif mysql # not compatible
query I rowsort label-6590
SELECT col0 / - 63 AS col1 FROM tab1 WHERE - + CAST ( col2 AS INTEGER ) >= + 24 * - col2 * - col1 * + col1 * 74
----

query II rowsort
SELECT DISTINCT 26 * - 34 + + col0 * + - col0 + 12 AS col2, - 79 FROM tab0
----
-10281
-79
-1097
-79
-8441
-79

query I rowsort
SELECT ALL + col2 - - - col0 + - - col0 AS col1 FROM tab0
----
10
47
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6594
SELECT - COUNT( * ) - - + 87 - + + 66 FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-6594
SELECT - COUNT ( * ) - - + 87 - + + 66 FROM tab2 AS cor0
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 - - 20 col1 FROM tab0 AS cor0
----
85
85
85

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6598
SELECT ALL - + 8 + COUNT( * ) * - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6598
SELECT ALL - + 8 + COUNT ( * ) * - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6600
SELECT DISTINCT 11 * CAST( + + col2 AS SIGNED ) col1 FROM tab2 AS cor0
----
253
440
638

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6600
SELECT DISTINCT 11 * CAST ( + + col2 AS INTEGER ) col1 FROM tab2 AS cor0
----
253
440
638

query I rowsort
SELECT DISTINCT 54 * - 17 * 16 FROM tab0
----
-14688

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6603
SELECT ALL COUNT( * ) * + - 84 col0 FROM tab2
----
-252

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6603
SELECT ALL COUNT ( * ) * + - 84 col0 FROM tab2
----
-252

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6608
SELECT DISTINCT + - col2 * + col1 + - - ( col0 ) + - col1 * CAST( NULL AS SIGNED ) * + col2 / - 84 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NULL >= - col1
----

skipif mysql # not compatible
query I rowsort label-6608
SELECT DISTINCT + - col2 * + col1 + - - ( col0 ) + - col1 * CAST ( NULL AS INTEGER ) * + col2 / - 84 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NULL >= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6609
SELECT SUM( DISTINCT 31 ) FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-6609
SELECT SUM ( DISTINCT 31 ) FROM tab0
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6610
SELECT - - SUM( ALL + col1 ), 85 DIV - 41 AS col2 FROM tab2 AS cor0
----
195
-2

skipif mysql # not compatible
query II rowsort label-6610
SELECT - - SUM ( ALL + col1 ), 85 / - 41 AS col2 FROM tab2 AS cor0
----
195
-2

query I rowsort
SELECT + - 90 * - 79 + - col2 AS col0 FROM tab0 AS cor0
----
7011
7063
7100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 51 col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----

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

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

query I rowsort
SELECT - col1 + - 71 * + - col1 FROM tab0 cor0
----
1470
5670
70

query I rowsort
SELECT ALL + + col1 * + - 41 * + - col0 FROM tab1 AS cor0
----
17425
175357
29274

query I rowsort
SELECT 79 + - 36 + col2 * + + 1 AS col1 FROM tab1 AS cor0
----
102
111
139

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

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

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

query I rowsort
SELECT DISTINCT col2 + ( - col2 ) FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6621
SELECT DISTINCT 31 DIV + - col1 + - col2 AS col0 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-6621
SELECT DISTINCT 31 / + - col1 + - col2 AS col0 FROM tab2
----
-23
-40
-58

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

query I rowsort
SELECT 72 * - 10 AS col0 FROM tab2
----
-720
-720
-720

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NOT + 78 BETWEEN 74 AND NULL )
----

query II rowsort
SELECT ALL col0 - col2, + col0 FROM tab0 cor0
----
-2
97
-32
15
77
87

query I rowsort
SELECT DISTINCT + col2 - + + 3 AS col2 FROM tab2 AS cor0
----
20
37
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6628
SELECT DISTINCT CAST( 32 AS SIGNED ) FROM tab1 cor0
----
32

skipif mysql # not compatible
query I rowsort label-6628
SELECT DISTINCT CAST ( 32 AS INTEGER ) FROM tab1 cor0
----
32

query I rowsort
SELECT - col0 * + col2 + + 88 FROM tab0 AS cor0
----
-617
-782
-9515

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

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

skipif mysql # not compatible
query I rowsort label-6631
SELECT + - 31 / - col2 FROM tab1 AS cor0
----
0
0
0

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

query II rowsort
SELECT + ( col1 ) AS col0, - col2 * + col0 FROM tab1 AS cor0
----
14
-4896
47
-6188
5
-5015

onlyif mysql # DIV for integer division: 
query I rowsort label-6634
SELECT ALL + + 6 DIV - 26 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6634
SELECT ALL + + 6 / - 26 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - + 19 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col0 * + col2 - - - 34 AS col2 FROM tab0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * + 52 * + col0 * + col0 FROM tab0
----
175500
34242156
47458996

query II rowsort
SELECT ALL - col2 * + + col1 * + 20 + - 70 - 46 * col0 + + - col0 * col1 AS col0, - col2 * + col2 + + + col0 AS col0 FROM tab2 AS cor0
----
-27992
-483
-69542
-1536
-86265
-3289

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT + SUM( 65 ) FROM tab0 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-6640
SELECT + SUM ( 65 ) FROM tab0 AS cor0
----
195

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6641
SELECT 46 DIV + COUNT( * ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-6641
SELECT 46 / + COUNT ( * ) AS col2 FROM tab0
----
15

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

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 + + 47 >= - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6644
SELECT DISTINCT - MAX( ALL col0 ) + + COUNT( * ) FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-6644
SELECT DISTINCT - MAX ( ALL col0 ) + + COUNT ( * ) FROM tab2
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-6645
SELECT ( - - 40 ) DIV - + col0 + + + col0 + + col1 + col0 AS col2 FROM tab0
----
109
195
195

skipif mysql # not compatible
query I rowsort label-6645
SELECT ( - - 40 ) / - + col0 + + + col0 + + col1 + col0 AS col2 FROM tab0
----
109
195
195

query I rowsort
SELECT ALL - - col1 - 0 AS col0 FROM tab1 AS cor0
----
14
47
5

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6648
SELECT - COUNT( * ) DIV 83 * - 67 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6648
SELECT - COUNT ( * ) / 83 * - 67 FROM tab0 AS cor0
----
0

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 IN ( - col1, - col1 )
----

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 84 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 * 25 col0 FROM tab0
----
1900
1900
1900

onlyif mysql # aggregate syntax: 
query II rowsort label-6656
SELECT ALL + COUNT( * ), 64 AS col0 FROM tab2
----
3
64

skipif mysql # not compatible
query II rowsort label-6656
SELECT ALL + COUNT ( * ), 64 AS col0 FROM tab2
----
3
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6657
SELECT + SUM( - 55 ) FROM tab1
----
-165

skipif mysql # not compatible
query I rowsort label-6657
SELECT + SUM ( - 55 ) FROM tab1
----
-165

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6659
SELECT - - 72 FROM tab1 WHERE NOT - + ( - - CAST( NULL AS SIGNED ) ) = - col0
----

skipif mysql # not compatible
query I rowsort label-6659
SELECT - - 72 FROM tab1 WHERE NOT - + ( - - CAST ( NULL AS INTEGER ) ) = - col0
----

query I rowsort
SELECT 24 * - col2 AS col2 FROM tab1
----
-1416
-1632
-2304

onlyif mysql # aggregate syntax: 
query II rowsort label-6661
SELECT - COUNT( * ) AS col1, - COUNT( * ) - 15 FROM tab0
----
-3
-18

skipif mysql # not compatible
query II rowsort label-6661
SELECT - COUNT ( * ) AS col1, - COUNT ( * ) - 15 FROM tab0
----
-3
-18

query I rowsort
SELECT col2 * col2 * col1 * - 31 FROM tab0
----
-303831
-5546799
-65100

query II rowsort
SELECT DISTINCT - 15 AS col0, - ( + + col1 ) + - + 50 AS col1 FROM tab0 AS cor0
----
-15
-131
-15
-51
-15
-71

query I rowsort
SELECT ALL + col2 + + 1 + - col1 AS col1 FROM tab2 AS cor0
----
-27
-36
-8

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6666
SELECT DISTINCT COUNT( * ) AS col0, 76 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9
76

skipif mysql # not compatible
query II rowsort label-6666
SELECT DISTINCT COUNT ( * ) AS col0, 76 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9
76

query I rowsort
SELECT ALL - + 17 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

query I rowsort
SELECT DISTINCT col1 * + col2 + + 12 AS col0 FROM tab0
----
111
222
3819

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6670
SELECT 62 + - ( CAST( + col1 AS SIGNED ) ) * - col2 FROM tab1
----
1406
3258
357

skipif mysql # not compatible
query I rowsort label-6670
SELECT 62 + - ( CAST ( + col1 AS INTEGER ) ) * - col2 FROM tab1
----
1406
3258
357

query I rowsort
SELECT col1 * 23 + col1 AS col0 FROM tab1
----
1128
120
336

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

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

query I rowsort
SELECT - col2 + + ( + col2 ) * - col2 FROM tab2 cor0
----
-1640
-3422
-552

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6677
SELECT ALL 44 * - SUM ( + + col2 ) * - COUNT ( * ) FROM tab1 AS cor0
----
29436

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6679
SELECT - 67 DIV + + MAX( - col2 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6679
SELECT - 67 / + + MAX ( - col2 ) FROM tab1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6680
SELECT col0 DIV - + 68 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6680
SELECT col0 / - + 68 FROM tab1
----
-1
-1
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6683
SELECT + CAST( NULL AS SIGNED ) FROM tab1 WHERE + col1 + 73 <> - + 18
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6683
SELECT + CAST ( NULL AS INTEGER ) FROM tab1 WHERE + col1 + 73 <> - + 18
----
NULL
NULL
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - 85 NOT BETWEEN col2 * col2 AND - + 15
----

query I rowsort
SELECT - 78 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6688
SELECT ALL col1 DIV ( - col0 ) * + col2 + col2 FROM tab2 AS cor0
----
0
0
58

skipif mysql # not compatible
query I rowsort label-6688
SELECT ALL col1 / ( - col0 ) * + col2 + col2 FROM tab2 AS cor0
----
0
0
58

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6689
SELECT DISTINCT - col2 col1, - 0 * - CAST ( NULL AS INTEGER ) * - + 47 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

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

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

query I rowsort
SELECT ALL + 17 AS col1 FROM tab1 cor0 WHERE col0 * - + col0 = - col0 + - + 61
----

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

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col0 <= + + col2 - 4 + - col2 + 63 * + - col1 * - ( + - 29 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + col0 FROM tab1 WHERE NOT 3 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 * + - 53 FROM tab1
----
2491
265
742

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + 32 col0 FROM tab0
----
1504
3168
320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col2 FROM tab0 WHERE NOT - + col2 IS NULL
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-6700
SELECT - col0 DIV + 56, - ( col0 ) AS col2 FROM tab1 WHERE NOT ( NOT 37 * + col0 * col2 + col1 + + - 84 IS NOT NULL )
----
-1
-85
-1
-91
0
-51

skipif mysql # not compatible
query II rowsort label-6700
SELECT - col0 / + 56, - ( col0 ) AS col2 FROM tab1 WHERE NOT ( NOT 37 * + col0 * col2 + col1 + + - 84 IS NOT NULL )
----
-1
-85
-1
-91
0
-51

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NOT col2 / ( + col1 ) NOT BETWEEN - - col1 AND + + col2
----
5

query I rowsort
SELECT - 41 * + 92 + + 38 AS col2 FROM tab2 AS cor0
----
-3734
-3734
-3734

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6703
SELECT DISTINCT + MIN( ALL CAST( + 50 AS SIGNED ) ) col0 FROM tab2 AS cor0
----
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6703
SELECT DISTINCT + MIN ( ALL CAST ( + 50 AS INTEGER ) ) col0 FROM tab2 AS cor0
----
50

query II rowsort
SELECT - ( - - 44 ) + + + 79 AS col2, + col1 AS col2 FROM tab0 AS cor0
----
35
1
35
21
35
81

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

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

query I rowsort
SELECT - - col1 + + 56 AS col1 FROM tab2 cor0
----
107
123
133

query I rowsort
SELECT + + col0 * + - 52 + - col0 AS col2 FROM tab2 WHERE col0 NOT BETWEEN - 10 AND col1
----
-3975

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

skipif mysql # not compatible
query I rowsort label-6708
SELECT 24 + + - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
15

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-6711
SELECT + SUM( DISTINCT + + col0 ) AS col2, + ( CAST( NULL AS SIGNED ) ) AS col0, + 50 FROM tab2 cor0 WHERE ( - col2 ) NOT IN ( + col1, 30 )
----
185
NULL
50

skipif mysql # not compatible
query III rowsort label-6711
SELECT + SUM ( DISTINCT + + col0 ) AS col2, + ( CAST ( NULL AS INTEGER ) ) AS col0, + 50 FROM tab2 cor0 WHERE ( - col2 ) NOT IN ( + col1, 30 )
----
185
NULL
50

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6713
SELECT COUNT( * ) * + COUNT( * ) + + COUNT( * ) DIV - COUNT( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
8

skipif mysql # not compatible
query I rowsort label-6713
SELECT COUNT ( * ) * + COUNT ( * ) + + COUNT ( * ) / - COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
8

query I rowsort
SELECT - 34 - + col0 * 3 AS col0 FROM tab0 cor0
----
-295
-325
-79

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

query I rowsort
SELECT DISTINCT + 97 * - 28 AS col1 FROM tab2 AS cor0 WHERE NOT ( - 21 ) <> NULL
----

query I rowsort
SELECT DISTINCT - - col2 FROM tab0 WHERE + 28 IS NULL
----

query I rowsort
SELECT + 65 + col0 AS col1 FROM tab0
----
152
162
80

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

query I rowsort
SELECT col2 FROM tab1 WHERE NOT - + 61 NOT BETWEEN col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6721
SELECT - COUNT( * ), COUNT( * ) * - 21 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-9
-189

skipif mysql # not compatible
query II rowsort label-6721
SELECT - COUNT ( * ), COUNT ( * ) * - 21 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-9
-189

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

skipif mysql # not compatible
query I rowsort label-6722
SELECT 51 / 3 AS col0 FROM tab0 AS cor0
----
17
17
17

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - - col0 ) col2 FROM tab1 cor0
----
-51
-85
-91

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6727
SELECT DISTINCT 68 * - CAST( NULL AS SIGNED ) AS col2, + COUNT( * ) FROM tab2
----
NULL
3

skipif mysql # not compatible
query II rowsort label-6727
SELECT DISTINCT 68 * - CAST ( NULL AS INTEGER ) AS col2, + COUNT ( * ) FROM tab2
----
NULL
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6728
SELECT * FROM tab1 WHERE NOT ( + col0 * + col2 * + col0 + + + 46 ) NOT BETWEEN col0 * CAST( NULL AS SIGNED ) AND col0
----

skipif mysql # not compatible
query III rowsort label-6728
SELECT * FROM tab1 WHERE NOT ( + col0 * + col2 * + col0 + + + 46 ) NOT BETWEEN col0 * CAST ( NULL AS INTEGER ) AND col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6729
SELECT ALL - col2 DIV 41 FROM tab1
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-6729
SELECT ALL - col2 / 41 FROM tab1
----
-1
-1
-2

query I rowsort
SELECT DISTINCT ( - 60 ) AS col2 FROM tab0
----
-60

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL = - 13 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6734
SELECT DISTINCT 59 * - COUNT( * ) + - + SUM( DISTINCT - - col1 ) * - - MAX( + 69 ) AS col0 FROM tab0
----
-7284

skipif mysql # not compatible
query I rowsort label-6734
SELECT DISTINCT 59 * - COUNT ( * ) + - + SUM ( DISTINCT - - col1 ) * - - MAX ( + 69 ) AS col0 FROM tab0
----
-7284

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6737
SELECT - COUNT( * ) AS col1 FROM tab0 WHERE NULL IS NULL OR NOT col1 >= + col1
----
-3

skipif mysql # not compatible
query I rowsort label-6737
SELECT - COUNT ( * ) AS col1 FROM tab0 WHERE NULL IS NULL OR NOT col1 >= + col1
----
-3

query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 AS cor0 WHERE NOT + col2 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6739
SELECT ALL - col0 * CAST( col0 AS SIGNED ) * col0 * - + ( - col1 ) + - ( - + 92 ) + - col1 - + col1 FROM tab0 AS cor0
----
-13828513
-273445
-912583

skipif mysql # not compatible
query I rowsort label-6739
SELECT ALL - col0 * CAST ( col0 AS INTEGER ) * col0 * - + ( - col1 ) + - ( - + 92 ) + - col1 - + col1 FROM tab0 AS cor0
----
-13828513
-273445
-912583

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 62 * + col2 * + 19 BETWEEN + col2 AND - col2 + col2
----

query I rowsort
SELECT col2 * - - col2 FROM tab1 AS cor0
----
3481
4624
9216

query I rowsort
SELECT 32 * col1 AS col0 FROM tab2 AS cor0
----
1632
2144
2464

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6743
SELECT * FROM tab1 WHERE CAST( NULL AS SIGNED ) = - col2 / - col2
----

skipif mysql # not compatible
query III rowsort label-6743
SELECT * FROM tab1 WHERE CAST ( NULL AS INTEGER ) = - col2 / - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6744
SELECT ALL + col2 * col0 DIV col1 * - - 12 + - - col1 FROM tab1
----
12041
1619
4202

skipif mysql # not compatible
query I rowsort label-6744
SELECT ALL + col2 * col0 / col1 * - - 12 + - - col1 FROM tab1
----
12041
1619
4202

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE ( ( - - 58 ) ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6748
SELECT - 74 - ( col2 ) DIV - col1 AS col1 FROM tab1
----
-63
-68
-73

skipif mysql # not compatible
query I rowsort label-6748
SELECT - 74 - ( col2 ) / - col1 AS col1 FROM tab1
----
-63
-68
-73

query I rowsort
SELECT ( col2 ) - - col0 FROM tab2
----
104
133
69

query I rowsort
SELECT DISTINCT + col0 + - + col0 * col1 AS col2 FROM tab0
----
-1200
-1740
0

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6754
SELECT MIN ( DISTINCT - ( 60 ) ) FROM tab2 AS cor0
----
-60

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6756
SELECT - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-6756
SELECT - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-6757
SELECT + 40 DIV + 44 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6757
SELECT + 40 / + 44 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6758
SELECT - MAX( ALL - - 49 ) FROM tab1
----
-49

skipif mysql # not compatible
query I rowsort label-6758
SELECT - MAX ( ALL - - 49 ) FROM tab1
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6759
SELECT ALL + CAST( - + col0 AS SIGNED ), - col1 * CAST( + CAST( - col0 AS SIGNED ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-46
2346
-64
4928
-75
5025

skipif mysql # not compatible
query II rowsort label-6759
SELECT ALL + CAST ( - + col0 AS INTEGER ), - col1 * CAST ( + CAST ( - col0 AS INTEGER ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-46
2346
-64
4928
-75
5025

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6760
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 / - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6760
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 / - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 54 * - - col0 AS col0 FROM tab2 AS cor0
----
2484
3456
4050

query I rowsort
SELECT ALL - 54 * - col1 FROM tab1
----
2538
270
756

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6763
SELECT ALL COUNT( * ) DIV - 56 * + + SUM( DISTINCT + col2 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6763
SELECT ALL COUNT ( * ) / - 56 * + + SUM ( DISTINCT + col2 ) FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6764
SELECT DISTINCT 65 + 61 * + MIN( 11 ) FROM tab0
----
736

skipif mysql # not compatible
query I rowsort label-6764
SELECT DISTINCT 65 + 61 * + MIN ( 11 ) FROM tab0
----
736

query I rowsort
SELECT ALL - 28 + col2 FROM tab2
----
-5
12
30

onlyif mysql # DIV for integer division: 
query I rowsort label-6766
SELECT + 88 DIV - 95 * + ( + col2 ) + - col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-6766
SELECT + 88 / - 95 * + ( + col2 ) + - col0 FROM tab2
----
-46
-64
-75

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6770
SELECT + col2 - - col0 DIV + col2 AS col2 FROM tab2 AS cor0
----
25
41
59

skipif mysql # not compatible
query I rowsort label-6770
SELECT + col2 - - col0 / + col2 AS col2 FROM tab2 AS cor0
----
25
41
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6771
SELECT ALL 67 DIV - - 88 col2, COUNT( * ) FROM tab2 AS cor0
----
0
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6771
SELECT ALL 67 / - - 88 col2, COUNT ( * ) FROM tab2 AS cor0
----
0
3

query I rowsort
SELECT ALL AVG ( DISTINCT - 65 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6773
SELECT DISTINCT - MAX ( DISTINCT - - col1 ) FROM tab1
----
-47

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

query I rowsort
SELECT ALL col1 * + + col2 AS col1 FROM tab1 WHERE col1 IS NOT NULL
----
1344
295
3196

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 <> - col1 + - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 69 * col1 AS col1 FROM tab2
----
3519
4623
5313

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6779
SELECT + 17 * COUNT( * ) + + 23 FROM tab2 cor0
----
74

skipif mysql # not compatible
query I rowsort label-6779
SELECT + 17 * COUNT ( * ) + + 23 FROM tab2 cor0
----
74

query II rowsort
SELECT ALL + ( + col1 ) AS col2, - col1 * ( 53 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
-2703
67
-3551
77
-4081

onlyif mysql # DIV for integer division: 
query I rowsort label-6781
SELECT + col0 DIV + 54 AS col2 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6781
SELECT + col0 / + 54 AS col2 FROM tab2
----
0
1
1

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

query II rowsort
SELECT ALL + 43, col1 * + + 6 * + col0 + - col1 AS col1 FROM tab0 AS cor0
----
43
10941
43
581
43
7209

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

query I rowsort
SELECT DISTINCT ( - col0 ) * + col1 FROM tab0 AS cor0
----
-1215
-1827
-97

query II rowsort
SELECT DISTINCT col0 + - + col1, - 88 * - ( - - col1 ) * - ( - 68 ) + col2 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-13
460808
-5
305207
8
400986

onlyif mysql # DIV for integer division: 
query I rowsort label-6787
SELECT col2 + + col0 DIV - 35 - + col0 FROM tab2 AS cor0
----
-19
-24
-25

skipif mysql # not compatible
query I rowsort label-6787
SELECT col2 + + col0 / - 35 - + col0 FROM tab2 AS cor0
----
-19
-24
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-6788
SELECT DISTINCT - 60 AS col0, + ( + SUM( DISTINCT col0 ) ) * + ( - 34 ) AS col1 FROM tab2 AS cor0
----
-60
-6290

skipif mysql # not compatible
query II rowsort label-6788
SELECT DISTINCT - 60 AS col0, + ( + SUM ( DISTINCT col0 ) ) * + ( - 34 ) AS col1 FROM tab2 AS cor0
----
-60
-6290

onlyif mysql # aggregate syntax: 
query I rowsort label-6789
SELECT ALL - SUM( - col1 ) * - MIN( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
-1030

skipif mysql # not compatible
query I rowsort label-6789
SELECT ALL - SUM ( - col1 ) * - MIN ( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
-1030

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 29 + col1 AS col2, - col2 col2 FROM tab2
----
106
-40
80
-23
96
-58

query I rowsort
SELECT ALL 27 + + col0 + + col2 FROM tab1
----
171
174
186

query I rowsort
SELECT ALL - col0 * 65 * + 88 * col2 AS col0 FROM tab2
----
-14643200
-24882000
-6051760

onlyif mysql # DIV for integer division: 
query II rowsort label-6793
SELECT DISTINCT - col1 DIV - col1 AS col0, 8 FROM tab2 AS cor0
----
1
8

skipif mysql # not compatible
query II rowsort label-6793
SELECT DISTINCT - col1 / - col1 AS col0, 8 FROM tab2 AS cor0
----
1
8

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

query I rowsort
SELECT ALL 59 AS col2 FROM tab1 cor0
----
59
59
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 72 + - 38 col0 FROM tab1 AS cor0
----
34
34
34

query I rowsort
SELECT col1 + - 36 * col0 + 52 * + col1 * col0 AS col2 FROM tab0
----
1553
62721
91893

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6798
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6798
SELECT DISTINCT CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
NULL

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

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

query I rowsort
SELECT DISTINCT col0 + - + col2 FROM tab2 cor0
----
17
23
24

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NOT ( NULL <> - 48 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6803
SELECT ALL - 31 DIV col0 DIV - 53 - - + col1 + - + col0 DIV + col2 FROM tab1 AS cor0
----
14
4
46

skipif mysql # not compatible
query I rowsort label-6803
SELECT ALL - 31 / col0 / - 53 - - + col1 + - + col0 / + col2 FROM tab1 AS cor0
----
14
4
46

query I rowsort
SELECT DISTINCT + + 21 - + col2 AS col0 FROM tab1 cor0
----
-38
-47
-75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 + + + 0 + + col0 - 67 * col1 < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6806
SELECT DISTINCT COUNT( * ) DIV 61 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6806
SELECT DISTINCT COUNT ( * ) / 61 AS col2 FROM tab0 AS cor0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6808
SELECT SUM( + - 53 ) FROM tab1 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-6808
SELECT SUM ( + - 53 ) FROM tab1 AS cor0
----
-159

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6810
SELECT + COUNT( col0 ), COUNT( * ) FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-6810
SELECT + COUNT ( col0 ), COUNT ( * ) FROM tab2
----
3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6811
SELECT 89 DIV - col0 AS col2 FROM tab0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-6811
SELECT 89 / - col0 AS col2 FROM tab0
----
-1
-5
0

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

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE + 28 + 53 BETWEEN - 94 AND + + 65
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6814
SELECT ALL - col2 DIV + + col2 + - col2 FROM tab1 cor0
----
-60
-69
-97

skipif mysql # not compatible
query I rowsort label-6814
SELECT ALL - col2 / + + col2 + - col2 FROM tab1 cor0
----
-60
-69
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6815
SELECT + CAST( + col1 AS SIGNED ) * 32 + 4 + 15 AS col1 FROM tab0 AS cor0
----
2611
51
691

skipif mysql # not compatible
query I rowsort label-6815
SELECT + CAST ( + col1 AS INTEGER ) * 32 + 4 + 15 AS col1 FROM tab0 AS cor0
----
2611
51
691

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6816
SELECT ALL - CAST( + col2 AS SIGNED ) * - col1 + - 47 + + col1 * - ( - col2 ) AS col1 FROM tab2 AS cor0
----
2299
6113
7725

skipif mysql # not compatible
query I rowsort label-6816
SELECT ALL - CAST ( + col2 AS INTEGER ) * - col1 + - 47 + + col1 * - ( - col2 ) AS col1 FROM tab2 AS cor0
----
2299
6113
7725

query I rowsort
SELECT DISTINCT - - 91 * + col1 * col2 + - 49 + + ( + col1 ) FROM tab2 cor0
----
106745
280308
353644

onlyif mysql # aggregate syntax: 
query I rowsort label-6818
SELECT DISTINCT - 39 * - COUNT( * ) FROM tab2 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-6818
SELECT DISTINCT - 39 * - COUNT ( * ) FROM tab2 AS cor0
----
117

onlyif mysql # aggregate syntax: 
query II rowsort label-6819
SELECT DISTINCT - 0 + - 40 + - 1, - MAX( - + 61 ) * - + 49 AS col0 FROM tab1 AS cor0
----
-41
-2989

skipif mysql # not compatible
query II rowsort label-6819
SELECT DISTINCT - 0 + - 40 + - 1, - MAX ( - + 61 ) * - + 49 AS col0 FROM tab1 AS cor0
----
-41
-2989

query I rowsort
SELECT DISTINCT - col1 + 29 + + col0 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-37
125
95

query II rowsort
SELECT ALL - col1, col0 AS col0 FROM tab0 WHERE col0 * 27 * + + 49 IS NOT NULL
----
-1
97
-21
87
-81
15

query I rowsort
SELECT - 54 * 37 + + 94 AS col0 FROM tab2
----
-1904
-1904
-1904

query I rowsort
SELECT ALL col0 + + 76 FROM tab2
----
122
140
151

query I rowsort
SELECT DISTINCT 73 * + - col1 FROM tab0
----
-1533
-5913
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT ALL + 50 + - COUNT( * ) + ( - 49 ) + - COUNT( * ) FROM tab0
----
-5

skipif mysql # not compatible
query I rowsort label-6825
SELECT ALL + 50 + - COUNT ( * ) + ( - 49 ) + - COUNT ( * ) FROM tab0
----
-5

query I rowsort
SELECT + 91 + - 27 FROM tab0
----
64
64
64

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

query I rowsort
SELECT + col2 * + 75 * + ( - - col2 ) FROM tab0 cor0
----
165675
735075
7500

query II rowsort
SELECT DISTINCT - 22 + col2 + 12 + - col0 * + + 38, - col1 * - + col2 AS col0 FROM tab0
----
-3306
210
-3597
99
-533
3807

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6830
SELECT col1 + + 0 + - + col1 + + + ( - 82 ) col2 FROM tab1 WHERE + col1 + - + CAST( + 92 AS SIGNED ) <= - ( + - col2 ) - col1
----
-82
-82
-82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6830
SELECT col1 + + 0 + - + col1 + + + ( - 82 ) col2 FROM tab1 WHERE + col1 + - + CAST ( + 92 AS INTEGER ) <= - ( + - col2 ) - col1
----
-82
-82
-82

query I rowsort
SELECT ALL - 75 * + 67 - + ( + col0 ) * + 88 * - col2 AS col1 FROM tab2
----
220255
377775
88079

query I rowsort
SELECT ALL + 61 * - col2 + + col2 FROM tab2
----
-1380
-2400
-3480

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6835
SELECT DISTINCT - - 49 DIV - col0 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6835
SELECT DISTINCT - - 49 / - col0 FROM tab2 AS cor0
----
-1
0

query I rowsort
SELECT 20 AS col1 FROM tab1 AS cor0 WHERE NOT col2 + + col0 - - + col2 * + 44 / + + 86 IS NULL
----
20
20
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6837
SELECT DISTINCT - MIN( + + col1 ) AS col2 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6837
SELECT DISTINCT - MIN ( + + col1 ) AS col2 FROM tab0 cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6838
SELECT 18 DIV - col0 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6838
SELECT 18 / - col0 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6839
SELECT DISTINCT - MAX( + col2 ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6839
SELECT DISTINCT - MAX ( + col2 ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT ( 13 IS NOT NULL )
----

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

query II rowsort
SELECT - 31, ( col0 ) FROM tab1
----
-31
51
-31
85
-31
91

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6844
SELECT SUM( DISTINCT 71 ) FROM tab1 WHERE NOT col0 NOT BETWEEN + ( CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) + - col1 AND col2 - - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-6844
SELECT SUM ( DISTINCT 71 ) FROM tab1 WHERE NOT col0 NOT BETWEEN + ( CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) + - col1 AND col2 - - 76
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 94 * ( col1 * - 1 ) col2 FROM tab2
----
4794
6298
7238

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT 95 * + 8 IS NOT NULL
----

query I rowsort
SELECT ALL - 14 FROM tab2 WHERE col2 >= NULL
----

query I rowsort
SELECT DISTINCT col0 + col1 * col0 FROM tab0 WHERE + col1 IS NOT NULL
----
1230
1914
194

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 94 * 37 col2 FROM tab1
----
-3478
-3478
-3478

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT ALL ( 76 ) + COUNT( * ) AS col1 FROM tab1
----
79

skipif mysql # not compatible
query I rowsort label-6853
SELECT ALL ( 76 ) + COUNT ( * ) AS col1 FROM tab1
----
79

query I rowsort
SELECT ALL + 18 + col1 FROM tab2 WHERE NULL IS NULL
----
69
85
95

query I rowsort
SELECT + 18 + col1 FROM tab0
----
19
39
99

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

skipif mysql # not compatible
query I rowsort label-6856
SELECT - COUNT ( * ) + 90 FROM tab0
----
87

query I rowsort
SELECT ALL col1 FROM tab2 WHERE col2 <= 34 - + 40
----

query I rowsort
SELECT - ( 28 ) * - col2 FROM tab1
----
1652
1904
2688

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

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( - 45 * col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 88 NOT BETWEEN + col0 AND ( + 2 )
----

query I rowsort
SELECT 66 + + col1 FROM tab1
----
113
71
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6863
SELECT ALL AVG ( ALL 5 ) / CAST( + COUNT( * ) * ( + 35 * - CAST( NULL AS DECIMAL ) ) AS SIGNED ) AS col2 FROM tab2 WHERE NOT ( NULL ) = + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-6863
SELECT ALL AVG ( ALL 5 ) / CAST ( + COUNT ( * ) * ( + 35 * - CAST ( NULL AS REAL ) ) AS INTEGER ) AS col2 FROM tab2 WHERE NOT ( NULL ) = + 56
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 39 + col1 * 14 < NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6866
SELECT ALL + col0 DIV + col0 + col2 AS col1 FROM tab1
----
60
69
97

skipif mysql # not compatible
query I rowsort label-6866
SELECT ALL + col0 / + col0 + col2 AS col1 FROM tab1
----
60
69
97

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - 9 col0 FROM tab2
----
-207
-360
-522

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6872
SELECT ALL + SUM ( col1 ) / - COUNT ( * ) FROM tab1 AS cor0
----
-22

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 < ( NULL )
----

query I rowsort
SELECT ALL col1 * - col1 FROM tab0 cor0 WHERE + 29 IS NOT NULL
----
-1
-441
-6561

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

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

query I rowsort
SELECT - - col2 * - 40 FROM tab0 AS cor0
----
-1880
-3960
-400

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

query I rowsort
SELECT DISTINCT 85 * - col1 FROM tab0 AS cor0
----
-1785
-6885
-85

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col0 / col2 + + col1 IS NOT NULL
----

query I rowsort
SELECT ALL ( - 15 ) AS col0 FROM tab1
----
-15
-15
-15

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

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

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

query I rowsort
SELECT ALL 40 * + 47 FROM tab2
----
1880
1880
1880

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

skipif mysql # not compatible
query I rowsort label-6884
SELECT DISTINCT col1 / + 57 AS col1 FROM tab2
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6885
SELECT DISTINCT COUNT( * ) * + 22 FROM tab1 WHERE NOT - col2 * ( col0 ) NOT IN ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-6885
SELECT DISTINCT COUNT ( * ) * + 22 FROM tab1 WHERE NOT - col2 * ( col0 ) NOT IN ( col2 )
----
0

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

skipif mysql # not compatible
query I rowsort label-6886
SELECT DISTINCT COUNT ( * ) / - - 10 AS col2 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 WHERE NOT ( 67 ) <= NULL
----

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

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

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

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 INNER JOIN tab1 AS cor1 ON NULL < + 68
----

query I rowsort
SELECT 73 + + col2 * + 19 * + 73 AS col2 FROM tab0
----
137386
13943
65262

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6895
SELECT ALL COUNT( * ) col0, + MAX( DISTINCT 86 ) + MIN( - col2 ) FROM tab2 AS cor0
----
3
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6895
SELECT ALL COUNT ( * ) col0, + MAX ( DISTINCT 86 ) + MIN ( - col2 ) FROM tab2 AS cor0
----
3
28

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IS NOT NULL OR NOT ( NULL ) <= 47
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6897
SELECT + COUNT( ALL + 41 ) DIV - 5 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6897
SELECT + COUNT ( ALL + 41 ) / - 5 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - 96 * 35 AS col2 FROM tab2 AS cor0
----
-3360
-3360
-3360

query I rowsort
SELECT 62 * + col0 * + col2 * - col2 FROM tab1 AS cor0
----
-18344870
-26088608
-29140992

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 60 + - col0 * ( 87 ) col2 FROM tab0 AS cor0
----
-1245
-7509
-8379

query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE + col1 + + - col2 <> + col0
----
10
47
99

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

query I rowsort
SELECT - 92 + - col1 + - 76 AS col0 FROM tab1
----
-173
-182
-215

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 col0 FROM tab0 WHERE ( - 60 ) IN ( + 35 / col2 )
----

query I rowsort
SELECT DISTINCT 70 + - 64 * + col2 AS col2 FROM tab2 WHERE + col1 + - col2 + 64 * - col0 IS NOT NULL AND NOT - col0 IN ( + col0 )
----
-1402
-2490
-3642

onlyif mysql # aggregate syntax: 
query I rowsort label-6906
SELECT ALL + COUNT( * ) FROM tab0 WHERE + col0 * + + ( - 92 ) * + col2 BETWEEN ( - col1 ) AND col0 * col1
----
0

skipif mysql # not compatible
query I rowsort label-6906
SELECT ALL + COUNT ( * ) FROM tab0 WHERE + col0 * + + ( - 92 ) * + col2 BETWEEN ( - col1 ) AND col0 * col1
----
0

query I rowsort
SELECT col0 + + col2 * + 31 AS col1 FROM tab2
----
1304
1873
759

query I rowsort
SELECT DISTINCT - 87 + + 66 * + col0 AS col1 FROM tab0
----
5655
6315
903

query I rowsort
SELECT ALL + col1 + col0 + + + col2 FROM tab2
----
120
181
200

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

query I rowsort
SELECT DISTINCT - 36 * - col0 FROM tab2 AS cor0 WHERE NOT ( NOT - - col1 <= NULL )
----

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

query I rowsort
SELECT DISTINCT col2 + - - col2 + - 97 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
21
39
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6914
SELECT DISTINCT + + COUNT( * ) * + - COUNT( * ) + + SUM( ALL 14 ) * 38 FROM tab1 cor0
----
1587

skipif mysql # not compatible
query I rowsort label-6914
SELECT DISTINCT + + COUNT ( * ) * + - COUNT ( * ) + + SUM ( ALL 14 ) * 38 FROM tab1 cor0
----
1587

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 22 IS NULL
----

query I rowsort
SELECT DISTINCT ( + - col0 ) * 83 * - 32 FROM tab1
----
135456
225760
241696

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6917
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST( 3 AS DECIMAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6917
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST ( 3 AS REAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

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

query II rowsort
SELECT - 74, + 94 AS col0 FROM tab2 AS cor0
----
-74
94
-74
94
-74
94

query I rowsort
SELECT DISTINCT - - 60 * - 57 AS col1 FROM tab2 cor0
----
-3420

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6923
SELECT DISTINCT + COUNT( * ) DIV - COUNT( * ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-6923
SELECT DISTINCT + COUNT ( * ) / - COUNT ( * ) AS col1 FROM tab0
----
-1

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

query IIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 WHERE NULL NOT IN ( + 38 )
----

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

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

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

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

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

query I rowsort
SELECT + 96 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

onlyif mysql # aggregate syntax: 
query II rowsort label-6931
SELECT + COUNT( * ) AS col1, + 60 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NULL
----
0
60

skipif mysql # not compatible
query II rowsort label-6931
SELECT + COUNT ( * ) AS col1, + 60 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NULL
----
0
60

query I rowsort
SELECT 50 * 51 + - 12 FROM tab0
----
2538
2538
2538

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

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

query I rowsort
SELECT ALL - ( col0 ) - - - col2 FROM tab1 AS cor0
----
-144
-147
-159

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

query I rowsort
SELECT ALL col0 + - col1 * + 23 FROM tab0 AS cor0 WHERE NOT ( NOT + col1 * - + 73 * - - 35 NOT IN ( + col2 ) )
----
-1848
-396
74

query I rowsort
SELECT - 4 * + 66 FROM tab2 AS cor0 WHERE col2 + - col0 * - 59 + - - col2 * - 79 + - 41 * col2 IN ( + col2 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6938
SELECT col1 AS col0, 79 DIV - col0 FROM tab2
----
51
-1
67
-1
77
-1

skipif mysql # not compatible
query II rowsort label-6938
SELECT col1 AS col0, 79 / - col0 FROM tab2
----
51
-1
67
-1
77
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6939
SELECT ALL col2 + + + col1 DIV - ( - - col1 ) AS col2 FROM tab2
----
22
39
57

skipif mysql # not compatible
query I rowsort label-6939
SELECT ALL col2 + + + col1 / - ( - - col1 ) AS col2 FROM tab2
----
22
39
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6940
SELECT ALL ( + CAST( NULL AS SIGNED ) ) + CAST( - COUNT( * ) AS SIGNED ) * CAST( + ( - AVG ( ALL - col0 ) ) AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6940
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) + CAST ( - COUNT ( * ) AS INTEGER ) * CAST ( + ( - AVG ( ALL - col0 ) ) AS REAL ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6941
SELECT - 81 - + MAX( ALL col1 ) AS col0 FROM tab2 WHERE + - 57 + + 17 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6941
SELECT - 81 - + MAX ( ALL col1 ) AS col0 FROM tab2 WHERE + - 57 + + 17 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + 42 * - col2 + 12 FROM tab2
----
-1668
-2424
-954

query I rowsort
SELECT + col0 - - - col1 FROM tab2
----
-13
-5
8

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

query I rowsort
SELECT col0 - - 2 + col2 + + col2 * + + col1 + - col0 FROM tab1
----
1442
3266
356

onlyif mysql # aggregate syntax: 
query I rowsort label-6946
SELECT DISTINCT - 2 + COUNT( * ) AS col0 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-6946
SELECT DISTINCT - 2 + COUNT ( * ) AS col0 FROM tab0 cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + ( + 10 ) * col0 NOT IN ( col0 )
----

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col2, col0 + + + col2 FROM tab2 AS cor0
----
46
69
64
104
75
133

onlyif mysql # aggregate syntax: 
query I rowsort label-6951
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 71 < + + 81
----
0

skipif mysql # not compatible
query I rowsort label-6951
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 71 < + + 81
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6952
SELECT + COUNT( * ) * + + 3 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
27

skipif mysql # not compatible
query I rowsort label-6952
SELECT + COUNT ( * ) * + + 3 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
27

query I rowsort
SELECT col2 + + 7 FROM tab0 cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT 69 FROM tab0 AS cor0 WHERE NOT 89 + col2 * + + 5 < NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col1 + - + 75 >= ( + 87 + col2 + col1 )
----

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

query I rowsort
SELECT + col1 + + - 44 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-23
-43
37

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

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

query I rowsort
SELECT DISTINCT + + col2 * - 61 AS col2 FROM tab1 AS cor0
----
-3599
-4148
-5856

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

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

query I rowsort
SELECT DISTINCT - col2 + - col1 + + 26 + col1 + - col2 * + - 3 + + 30 * 43 FROM tab0
----
1336
1410
1514

query I rowsort
SELECT ALL col1 + + 56 FROM tab2
----
107
123
133

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

query I rowsort
SELECT - 51 - - 47 + + 48 FROM tab1 AS cor0
----
44
44
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6966
SELECT ALL - - 27 * + MIN( - col2 ) AS col1 FROM tab2 AS cor0
----
-1566

skipif mysql # not compatible
query I rowsort label-6966
SELECT ALL - - 27 * + MIN ( - col2 ) AS col1 FROM tab2 AS cor0
----
-1566

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6968
SELECT col0 - ( + + 82 ) DIV - col1 AS col2 FROM tab2 AS cor0
----
47
65
76

skipif mysql # not compatible
query I rowsort label-6968
SELECT col0 - ( + + 82 ) / - col1 AS col2 FROM tab2 AS cor0
----
47
65
76

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + col0 ) - + - 99 col1 FROM tab1 AS cor0
----
150
184
190

onlyif mysql # aggregate syntax: 
query I rowsort label-6971
SELECT DISTINCT - COUNT( * ) * - 67 AS col0 FROM tab1 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-6971
SELECT DISTINCT - COUNT ( * ) * - 67 AS col0 FROM tab1 AS cor0
----
201

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - + col1 col0 FROM tab2 AS cor0
----
0
0
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6974
SELECT ALL - col0 DIV col2 AS col2 FROM tab0 cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-6974
SELECT ALL - col0 / col2 AS col2 FROM tab0 cor0
----
-8
0
0

query I rowsort
SELECT ( + - col2 ) + + col0 + + + ( col0 ) AS col2 FROM tab0 AS cor0
----
-17
164
95

query I rowsort
SELECT - - 0 * - 2 + - + col1 + + + 41 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-40
20
40

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

query I rowsort
SELECT 76 * - col0 AS col1 FROM tab2 WHERE ( ( + col0 ) IS NOT NULL )
----
-3496
-4864
-5700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6979
SELECT ALL - 10 + - + ( CAST( + - SUM( + col0 ) AS SIGNED ) ) AS col2 FROM tab2 WHERE ( NOT ( NULL ) IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6979
SELECT ALL - 10 + - + ( CAST ( + - SUM ( + col0 ) AS INTEGER ) ) AS col2 FROM tab2 WHERE ( NOT ( NULL ) IS NULL )
----
NULL

query I rowsort
SELECT DISTINCT + col0 * col0 - col0 FROM tab1
----
2550
7140
8190

query I rowsort
SELECT DISTINCT - 49 * - - 92 AS col2 FROM tab0
----
-4508

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

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

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

skipif mysql # not compatible
query I rowsort label-6983
SELECT ALL MAX ( + 50 ) FROM tab1 AS cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6984
SELECT + 3 + 77 + MIN( col2 ) * COUNT( * ) FROM tab0 AS cor0
----
110

skipif mysql # not compatible
query I rowsort label-6984
SELECT + 3 + 77 + MIN ( col2 ) * COUNT ( * ) FROM tab0 AS cor0
----
110

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col2 / 4 ) IS NOT NULL
----

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

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

query I rowsort
SELECT ALL + - 43 FROM tab1 WHERE NOT ( col1 ) <= - ( + col0 )
----
-43
-43
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-6989
SELECT ALL 90 + - COUNT( * ) AS col0 FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-6989
SELECT ALL 90 + - COUNT ( * ) AS col0 FROM tab2
----
87

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6990
SELECT DISTINCT MAX ( col2 ) col2 FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT ALL + SUM( DISTINCT + col0 ) AS col1 FROM tab1 WHERE NOT 76 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6991
SELECT ALL + SUM ( DISTINCT + col0 ) AS col1 FROM tab1 WHERE NOT 76 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6992
SELECT ( + ( COUNT( * ) ) ) col0 FROM tab1
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6993
SELECT ALL - MAX( - col1 ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-6993
SELECT ALL - MAX ( - col1 ) AS col2 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6994
SELECT DISTINCT 45 * + COUNT( * ) AS col2 FROM tab0
----
135

skipif mysql # not compatible
query I rowsort label-6994
SELECT DISTINCT 45 * + COUNT ( * ) AS col2 FROM tab0
----
135

query I rowsort
SELECT + 49 FROM tab0 WHERE - col1 <= - col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6996
SELECT ALL COUNT( * ) AS col0 FROM tab1 WHERE - col2 BETWEEN + 74 AND 14 + + 51
----
0

skipif mysql # not compatible
query I rowsort label-6996
SELECT ALL COUNT ( * ) AS col0 FROM tab1 WHERE - col2 BETWEEN + 74 AND 14 + + 51
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( + + 27 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6998
SELECT SUM( - 0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6998
SELECT SUM ( - 0 ) FROM tab1
----
0

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

skipif mysql # not compatible
query I rowsort label-6999
SELECT ALL + CAST ( + - 94 AS INTEGER ) + + COUNT ( * ) FROM tab1
----
-91

query I rowsort
SELECT ALL 63 * + - col1 AS col0 FROM tab0
----
-1323
-5103
-63

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + 23 + 52 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7002
SELECT DISTINCT - + SUM( ALL 29 ) FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-7002
SELECT DISTINCT - + SUM ( ALL 29 ) FROM tab1 AS cor0
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-7003
SELECT + col2 DIV + - col2 + + col2 * - col2 + + col0 + col1 + + - col0 * + - col0 * + + ( + col0 ) AS col0 FROM tab0 AS cor0
----
1261
658510
902969

skipif mysql # not compatible
query I rowsort label-7003
SELECT + col2 / + - col2 + + col2 * - col2 + + col0 + col1 + + - col0 * + - col0 * + + ( + col0 ) AS col0 FROM tab0 AS cor0
----
1261
658510
902969

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

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

query I rowsort
SELECT + 14 + 16 FROM tab2 AS cor0
----
30
30
30

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE col0 * + col2 NOT IN ( - col2 + - col0 )
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7007
SELECT ALL - + MIN( ALL + - 93 ) - 72 FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-7007
SELECT ALL - + MIN ( ALL + - 93 ) - 72 FROM tab0 AS cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7008
SELECT ALL - 88 - + COUNT( * ) - - 34 + + - 91 FROM tab0 AS cor0
----
-148

skipif mysql # not compatible
query I rowsort label-7008
SELECT ALL - 88 - + COUNT ( * ) - - 34 + + - 91 FROM tab0 AS cor0
----
-148

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

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

query I rowsort
SELECT 44 * + 62 FROM tab0 AS cor0
----
2728
2728
2728

onlyif mysql # aggregate syntax: 
query I rowsort label-7011
SELECT COUNT( * ) * - MAX( DISTINCT + col0 ) - + 90 AS col2 FROM tab0
----
-381

skipif mysql # not compatible
query I rowsort label-7011
SELECT COUNT ( * ) * - MAX ( DISTINCT + col0 ) - + 90 AS col2 FROM tab0
----
-381

onlyif mysql # aggregate syntax: 
query I rowsort label-7012
SELECT COUNT( * ) * - - 75 - ( + - COUNT( * ) ) AS col1 FROM tab0
----
228

skipif mysql # not compatible
query I rowsort label-7012
SELECT COUNT ( * ) * - - 75 - ( + - COUNT ( * ) ) AS col1 FROM tab0
----
228

query II rowsort
SELECT 63 AS col1, + 32 * - col0 AS col2 FROM tab0
----
63
-2784
63
-3104
63
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-7014
SELECT DISTINCT COUNT( * ) * 31 AS col1 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-7014
SELECT DISTINCT COUNT ( * ) * 31 AS col1 FROM tab1
----
93

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7015
SELECT DISTINCT + CAST( - 58 AS SIGNED ) DIV - 16 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7015
SELECT DISTINCT + CAST ( - 58 AS INTEGER ) / - 16 FROM tab0
----
3

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

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

query I rowsort
SELECT ALL - col1 * + 52 - col2 FROM tab1 AS cor0
----
-2512
-319
-824

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL = + col1
----

query II rowsort
SELECT - + col1, + 3 AS col1 FROM tab0 AS cor0
----
-1
3
-21
3
-81
3

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

query I rowsort
SELECT + 1 * - + col2 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT + + 35 AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7025
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 + CAST( + col0 AS SIGNED ) NOT BETWEEN - col1 AND - - 24
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7025
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 + CAST ( + col0 AS INTEGER ) NOT BETWEEN - col1 AND - - 24
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7028
SELECT - + 18 - + COUNT( * ) - COUNT( * ) FROM tab2 AS cor0 WHERE NOT 34 * col2 - - - col1 NOT IN ( - col1, ( + col2 ), - col2 )
----
-18

skipif mysql # not compatible
query I rowsort label-7028
SELECT - + 18 - + COUNT ( * ) - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 34 * col2 - - - col1 NOT IN ( - col1, ( + col2 ), - col2 )
----
-18

onlyif mysql # DIV for integer division: 
query II rowsort label-7029
SELECT - col2 DIV 20 AS col2, col2 col0 FROM tab1 AS cor0
----
-2
59
-3
68
-4
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7029
SELECT - col2 / 20 AS col2, col2 col0 FROM tab1 AS cor0
----
-2
59
-3
68
-4
96

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

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

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

skipif mysql # not compatible
query I rowsort label-7031
SELECT + + MAX ( 35 ) FROM tab2 AS cor0
----
35

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

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

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

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

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

query I rowsort
SELECT ALL - col0 + + - col1 - 19 * - 76 + - col1 FROM tab1 AS cor0
----
1259
1349
1365

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7036
SELECT ALL + col0 + + CAST( col0 AS SIGNED ) FROM tab2 WHERE + col0 > col0
----

skipif mysql # not compatible
query I rowsort label-7036
SELECT ALL + col0 + + CAST ( col0 AS INTEGER ) FROM tab2 WHERE + col0 > col0
----

query II rowsort
SELECT - 43 AS col0, 45 AS col0 FROM tab2
----
-43
45
-43
45
-43
45

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN + 47 AND ( NULL )
----

query I rowsort
SELECT DISTINCT - col1 + + + 48 FROM tab0
----
-33
27
47

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7041
SELECT ALL COUNT( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND col2
----
0

skipif mysql # not compatible
query I rowsort label-7041
SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND col2
----
0

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

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

query I rowsort
SELECT col1 * - + 24 + - col1 + + - ( + col0 ) * - col1 + - col0 AS col1 FROM tab2 AS cor0
----
1025
2939
3275

onlyif mysql # aggregate syntax: 
query I rowsort label-7044
SELECT + - MAX( - col2 ) * - MAX( ALL + 52 ) AS col1 FROM tab1 AS cor0
----
-3068

skipif mysql # not compatible
query I rowsort label-7044
SELECT + - MAX ( - col2 ) * - MAX ( ALL + 52 ) AS col1 FROM tab1 AS cor0
----
-3068

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7045
SELECT * FROM tab0 WHERE CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-7045
SELECT * FROM tab0 WHERE CAST ( NULL AS INTEGER ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7046
SELECT ALL - 10 - - CAST( - 3 AS SIGNED ) FROM tab2 AS cor0
----
-13
-13
-13

skipif mysql # not compatible
query I rowsort label-7046
SELECT ALL - 10 - - CAST ( - 3 AS INTEGER ) FROM tab2 AS cor0
----
-13
-13
-13

query I rowsort
SELECT - ( + col0 ) + + 83 + + col0 * - - col1 FROM tab0 cor0
----
1283
1823
83

query I rowsort
SELECT - 97 + - ( col0 ) AS col0 FROM tab1 AS cor0
----
-148
-182
-188

query I rowsort
SELECT - - col2 + - col1 * - 50 FROM tab2 AS cor0
----
2573
3408
3890

onlyif mysql # DIV for integer division: 
query II rowsort label-7050
SELECT + 90 DIV - 35 + + - col0 * - + 48, 3 AS col1 FROM tab1 AS cor0
----
2446
3
4078
3
4366
3

skipif mysql # not compatible
query II rowsort label-7050
SELECT + 90 / - 35 + + - col0 * - + 48, 3 AS col1 FROM tab1 AS cor0
----
2446
3
4078
3
4366
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7051
SELECT * FROM tab1 WHERE NOT + + CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-7051
SELECT * FROM tab1 WHERE NOT + + CAST ( NULL AS INTEGER ) > NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7054
SELECT ALL COUNT( * ) * - - 38 AS col1 FROM tab2
----
114

skipif mysql # not compatible
query I rowsort label-7054
SELECT ALL COUNT ( * ) * - - 38 AS col1 FROM tab2
----
114

query I rowsort
SELECT 64 FROM tab0 WHERE NOT - - 58 + + col2 IS NULL
----
64
64
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col0, - col2 * - col1 AS col1 FROM tab1
----
51
1344
85
295
91
3196

onlyif mysql # DIV for integer division: 
query I rowsort label-7057
SELECT - col1 DIV + + col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7057
SELECT - col1 / + + col0 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IS NOT NULL OR col0 <= + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 83 * col2 FROM tab1
----
4897
5644
7968

onlyif mysql # aggregate syntax: 
query I rowsort label-7060
SELECT DISTINCT MAX( DISTINCT + 21 ) AS col2 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-7060
SELECT DISTINCT MAX ( DISTINCT + 21 ) AS col2 FROM tab0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7061
SELECT + MAX( DISTINCT + 23 ) * - COUNT( * ) + + COUNT( * ) AS col0 FROM tab2 WHERE NOT + col1 IS NULL
----
-66

skipif mysql # not compatible
query I rowsort label-7061
SELECT + MAX ( DISTINCT + 23 ) * - COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab2 WHERE NOT + col1 IS NULL
----
-66

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

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

query I rowsort
SELECT ALL 78 * - 35 FROM tab1 AS cor0 WHERE + 1 + + - col0 IN ( col1 )
----

query II rowsort
SELECT ALL col2, col1 + 69 FROM tab2
----
23
120
40
146
58
136

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

query I rowsort
SELECT - 79 + + col1 AS col1 FROM tab1 AS cor0
----
-32
-65
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7067
SELECT + COUNT( * ) DIV - + 24 + - ( + ( + + ( + 82 ) ) ) + - 99 FROM tab1 cor0
----
-181

skipif mysql # not compatible
query I rowsort label-7067
SELECT + COUNT ( * ) / - + 24 + - ( + ( + + ( + 82 ) ) ) + - 99 FROM tab1 cor0
----
-181

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 + + col0 > NULL
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7070
SELECT DISTINCT + col0 DIV - col2 + + + col1 + - col0 AS col2, 17 AS col0 FROM tab1 cor0
----
-37
17
-45
17
-81
17

skipif mysql # not compatible
query II rowsort label-7070
SELECT DISTINCT + col0 / - col2 + + + col1 + - col0 AS col2, 17 AS col0 FROM tab1 cor0
----
-37
17
-45
17
-81
17

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7072
SELECT ALL + COUNT( * ) * + 90 + + 25 * - - SUM( + col1 ) FROM tab0
----
2845

skipif mysql # not compatible
query I rowsort label-7072
SELECT ALL + COUNT ( * ) * + 90 + + 25 * - - SUM ( + col1 ) FROM tab0
----
2845

onlyif mysql # DIV for integer division: 
query I rowsort label-7073
SELECT DISTINCT + col1 + - - col0 DIV col2 FROM tab2
----
53
68
78

skipif mysql # not compatible
query I rowsort label-7073
SELECT DISTINCT + col1 + - - col0 / col2 FROM tab2
----
53
68
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7074
SELECT DISTINCT 40 - - ( MIN( - - 10 ) ) + - + COUNT( * ) DIV + ( - 61 ) * - COUNT( * ) FROM tab2 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-7074
SELECT DISTINCT 40 - - ( MIN ( - - 10 ) ) + - + COUNT ( * ) / + ( - 61 ) * - COUNT ( * ) FROM tab2 AS cor0
----
50

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

skipif mysql # not compatible
query I rowsort label-7075
SELECT ALL + CAST ( + + col0 AS INTEGER ) AS col0 FROM tab0 cor0
----
15
87
97

query I rowsort
SELECT + - col0 + - - 20 FROM tab0 AS cor0
----
-67
-77
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 41 col1 FROM tab2
----
108
118
92

query I rowsort
SELECT DISTINCT - col2 + - 28 + - col1 FROM tab2
----
-102
-145
-153

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

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

query II rowsort
SELECT - col1 AS col1, 53 AS col0 FROM tab0 WHERE NULL IS NULL
----
-1
53
-21
53
-81
53

query I rowsort
SELECT ALL - col2 + + 9 AS col1 FROM tab1 AS cor0
----
-50
-59
-87

query I rowsort
SELECT ALL col2 - + + col1 FROM tab0 cor0
----
-11
-34
98

query I rowsort
SELECT DISTINCT - col2 * - 76 + 12 FROM tab0 cor0
----
3584
7536
772

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7085
SELECT ALL COUNT( * ) AS col1, 68 FROM tab2 cor0
----
3
68

skipif mysql # not compatible
query II rowsort label-7085
SELECT ALL COUNT ( * ) AS col1, 68 FROM tab2 cor0
----
3
68

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 > + 57
----
87
21
10
97
1
99

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

query I rowsort
SELECT - + 25 * col0 FROM tab0 AS cor0
----
-2175
-2425
-375

query I rowsort
SELECT - col2 * + - 6 * 19 FROM tab1
----
10944
6726
7752

onlyif mysql # aggregate syntax: 
query I rowsort label-7090
SELECT DISTINCT + MAX( ALL + + col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-7090
SELECT DISTINCT + MAX ( ALL + + col2 ) FROM tab0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7091
SELECT - 64 FROM tab2 WHERE NOT - + ( + col1 ) + + 43 + CAST( 26 AS SIGNED ) + 33 * + col2 * + col0 NOT BETWEEN 25 AND ( - - 58 )
----

skipif mysql # not compatible
query I rowsort label-7091
SELECT - 64 FROM tab2 WHERE NOT - + ( + col1 ) + + 43 + CAST ( 26 AS INTEGER ) + 33 * + col2 * + col0 NOT BETWEEN 25 AND ( - - 58 )
----

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

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

query I rowsort
SELECT DISTINCT - 20 * - + 5 * - col0 AS col0 FROM tab2 AS cor0
----
-4600
-6400
-7500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7095
SELECT DISTINCT - 30 + - CAST( 22 AS SIGNED ) + + 0, 25 * ( + MAX( ALL + col1 ) ) AS col2 FROM tab1 AS cor0
----
-52
1175

skipif mysql # not compatible
query II rowsort label-7095
SELECT DISTINCT - 30 + - CAST ( 22 AS INTEGER ) + + 0, 25 * ( + MAX ( ALL + col1 ) ) AS col2 FROM tab1 AS cor0
----
-52
1175

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 BETWEEN + 38 AND - col0 * + col1 + - + col1 + - col2
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7100
SELECT + col1 * - + CAST( - col2 AS SIGNED ) AS col0 FROM tab1 cor0
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-7100
SELECT + col1 * - + CAST ( - col2 AS INTEGER ) AS col0 FROM tab1 cor0
----
1344
295
3196

query I rowsort
SELECT DISTINCT col0 + 81 - + - col0 FROM tab2 AS cor0
----
173
209
231

onlyif mysql # DIV for integer division: 
query I rowsort label-7102
SELECT - 70 DIV - + 46 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7102
SELECT - 70 / - + 46 AS col2 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7103
SELECT ALL + - COUNT( * ) * + 37 FROM tab0 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-7103
SELECT ALL + - COUNT ( * ) * + 37 FROM tab0 AS cor0
----
-111

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7105
SELECT ALL - COUNT( * ) + AVG ( col0 ) + - - CAST( NULL AS SIGNED ) / - 51 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7105
SELECT ALL - COUNT ( * ) + AVG ( col0 ) + - - CAST ( NULL AS INTEGER ) / - 51 FROM tab1 AS cor0
----
NULL

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

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

query I rowsort
SELECT col2 + + + ( - col0 ) FROM tab2
----
-17
-23
-24

query I rowsort
SELECT - 39 AS col1 FROM tab0 WHERE 80 + - + col2 IS NULL
----

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE col2 - + col2 * col2 + 47 IS NULL
----

query I rowsort
SELECT - + ( - col2 ) AS col2 FROM tab2 WHERE NULL IS NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-7111
SELECT DISTINCT + col1 DIV - + 74 + - 52 AS col0 FROM tab2
----
-52
-53

skipif mysql # not compatible
query I rowsort label-7111
SELECT DISTINCT + col1 / - + 74 + - 52 AS col0 FROM tab2
----
-52
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT DISTINCT 92 + + - COUNT( - col0 ) AS col0 FROM tab2
----
89

skipif mysql # not compatible
query I rowsort label-7112
SELECT DISTINCT 92 + + - COUNT ( - col0 ) AS col0 FROM tab2
----
89

query II rowsort
SELECT ALL + col1 * 29, - 13 AS col0 FROM tab0
----
2349
-13
29
-13
609
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-7114
SELECT + 41 DIV + 79 + - col0 AS col1 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-7114
SELECT + 41 / + 79 + - col0 AS col1 FROM tab0
----
-15
-87
-97

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

skipif mysql # not compatible
query I rowsort label-7115
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 * + col0 IS NOT NULL
----
0

query I rowsort
SELECT ALL + col1 * + 42 - 23 * col1 FROM tab0 AS cor0
----
1539
19
399

onlyif mysql # aggregate syntax: 
query I rowsort label-7117
SELECT ( - COUNT( * ) ) * + 25 FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-7117
SELECT ( - COUNT ( * ) ) * + 25 FROM tab1 AS cor0
----
-75

query I rowsort
SELECT ALL + col1 * + col0 * + col2 FROM tab1 AS cor0
----
25075
290836
68544

query I rowsort
SELECT + 88 * + + 14 AS col2 FROM tab2 AS cor0
----
1232
1232
1232

query III rowsort
SELECT * FROM tab0 WHERE - col2 * col0 + col2 * + + 87 NOT BETWEEN col2 * ( - col0 ) + - col2 + - ( col2 ) * - - col2 AND col0 * 15
----
15
81
47

query I rowsort
SELECT - col2 * 44 - + - col0 AS col0 FROM tab0
----
-2053
-353
-4259

query I rowsort
SELECT ALL + + 79 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7123
SELECT - COUNT( ALL + col1 ) col0, CAST( NULL AS DECIMAL ) FROM tab1
----
-3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7123
SELECT - COUNT ( ALL + col1 ) col0, CAST ( NULL AS REAL ) FROM tab1
----
-3
NULL

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

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

query I rowsort
SELECT - col0 * col0 + - col0 * - 93 FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - 37 * - + col2 FROM tab1 AS cor0
----
2183
2516
3552

query I rowsort
SELECT - 20 AS col1 FROM tab2 WHERE - col0 IS NULL AND - col0 + - col1 + - 29 IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT - 21 * - - 17 AS col2 FROM tab2 AS cor0
----
-357

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 IN ( 49, col2 )
----

query I rowsort
SELECT DISTINCT - + col0 * + + col1 + col0 FROM tab0 AS cor0 WHERE - 82 IS NOT NULL
----
-1200
-1740
0

query II rowsort
SELECT + - col0 * - col2, col0 * - 88 * - - col0 + + - col2 + 75 * 35 * col0 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 15 ) + + 47 col2 FROM tab0
----
62
62
62

query I rowsort
SELECT DISTINCT 25 + - col1 - - 51 FROM tab2
----
-1
25
9

query I rowsort
SELECT DISTINCT - col0 * - - col0 + - col0 FROM tab2
----
-2162
-4160
-5700

query I rowsort
SELECT DISTINCT - + 49 AS col0 FROM tab0 AS cor0
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-7137
SELECT col2 DIV 7 * - col2 + - 41 + - - col2 FROM tab1 AS cor0
----
-1193
-454
-585

skipif mysql # not compatible
query I rowsort label-7137
SELECT col2 / 7 * - col2 + - 41 + - - col2 FROM tab1 AS cor0
----
-1193
-454
-585

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7138
SELECT DISTINCT CAST( - + col1 AS SIGNED ) * - + col1 * + col0 AS col1, col1 FROM tab0 cor0
----
38367
21
97
1
98415
81

skipif mysql # not compatible
query II rowsort label-7138
SELECT DISTINCT CAST ( - + col1 AS INTEGER ) * - + col1 * + col0 AS col1, col1 FROM tab0 cor0
----
38367
21
97
1
98415
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7139
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL <= + col0
----
0

skipif mysql # not compatible
query I rowsort label-7139
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL <= + col0
----
0

query I rowsort
SELECT + col2 AS col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( + 24 / + col0, + 45 * + + 44 * col1 )
----

query I rowsort
SELECT DISTINCT + col0 * col0 + - col2 FROM tab1 WHERE NULL IS NULL
----
2505
7166
8213

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

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

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

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

query I rowsort
SELECT col0 * - 74 FROM tab0
----
-1110
-6438
-7178

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col2, + col0 AS col2 FROM tab2
----
23
46
40
64
58
75

query I rowsort
SELECT DISTINCT 89 + - - 73 AS col1 FROM tab0
----
162

query I rowsort
SELECT ALL col1 - 0 FROM tab0 cor0
----
1
21
81

query I rowsort
SELECT 22 * - col1 * - col1 * + col0 - - col1 FROM tab0 WHERE NOT + - col0 * + col1 IS NULL
----
2135
2165211
844095

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 28 + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7151
SELECT DISTINCT COUNT( * ) * COUNT( * ) col0 FROM tab0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7151
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) col0 FROM tab0
----
9

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7152
SELECT DISTINCT - SUM ( ALL - ( - col0 ) ) col1 FROM tab2 AS cor0
----
-185

query II rowsort
SELECT + - col1, + col1 + + + col1 AS col2 FROM tab0 AS cor0
----
-1
2
-21
42
-81
162

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7158
SELECT COUNT( * ) * - 14 AS col2 FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-7158
SELECT COUNT ( * ) * - 14 AS col2 FROM tab1
----
-42

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 >= - 94 + - 35
----

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

skipif mysql # not compatible
query I rowsort label-7160
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE NOT + col2 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 <= + col0 * col0 * 15 - - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7162
SELECT col0 DIV + - ( col2 ) FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-7162
SELECT col0 / + - ( col2 ) FROM tab2
----
-1
-1
-2

query I rowsort
SELECT + 28 + - + col0 AS col1 FROM tab0 cor0
----
-59
-69
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7164
SELECT DISTINCT - SUM( DISTINCT 82 ) + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-7164
SELECT DISTINCT - SUM ( DISTINCT 82 ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-85

query I rowsort
SELECT DISTINCT + 5 * - col0 * - 61 + ( - col2 ) FROM tab2
----
14007
19480
22817

query I rowsort
SELECT ALL - 2 + + 69 * + ( + + 80 ) AS col0 FROM tab1
----
5518
5518
5518

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

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

query I rowsort
SELECT DISTINCT - col2 * + col2 * + + 32 FROM tab1
----
-111392
-147968
-294912

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

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

query I rowsort
SELECT DISTINCT col1 * - + col1 + + + col0 + col2 FROM tab2 AS cor0
----
-2532
-4356
-5825

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

query II rowsort
SELECT - - 86 AS col1, col1 * + + col2 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
86
1173
86
3080
86
3886

query I rowsort
SELECT ALL + 71 * + - 41 + col0 FROM tab0 AS cor0
----
-2814
-2824
-2896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7175
SELECT - COUNT( 87 ) - - CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 + + - ( - col0 ) col2 FROM tab1 AS cor0
----
127
133
93

query I rowsort
SELECT - 7 + + col2 FROM tab2 AS cor0
----
16
33
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7178
SELECT DISTINCT + MAX( DISTINCT - col2 ) + 80 AS col0 FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-7178
SELECT DISTINCT + MAX ( DISTINCT - col2 ) + 80 AS col0 FROM tab1 AS cor0
----
21

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

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

query I rowsort
SELECT + col2 FROM tab0 WHERE - 69 = - ( col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7181
SELECT ALL MAX( - CAST( col2 AS SIGNED ) ) AS col2 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-7181
SELECT ALL MAX ( - CAST ( col2 AS INTEGER ) ) AS col2 FROM tab0
----
-10

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

skipif mysql # not compatible
query I rowsort label-7182
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE - col0 BETWEEN NULL AND col0
----
0

query II rowsort
SELECT DISTINCT 53 + + col1 + - ( col2 ) AS col2, + 86 FROM tab2
----
62
86
81
86
90
86

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

query I rowsort
SELECT DISTINCT 63 - + col1 FROM tab2 AS cor0
----
-14
-4
12

query I rowsort
SELECT ALL + col2 * - + col0 * + col2 - + - 8 FROM tab2 AS cor0
----
-102392
-24326
-252292

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

query I rowsort
SELECT ALL + col1 - - 10 AS col1 FROM tab1 AS cor0
----
15
24
57

query I rowsort
SELECT DISTINCT col1 * - + col2 AS col1 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT ALL + 50 * col1 FROM tab0
----
1050
4050
50

query I rowsort
SELECT ALL col0 * + 58 FROM tab2
----
2668
3712
4350

onlyif mysql # DIV for integer division: 
query I rowsort label-7192
SELECT - ( - - 50 ) DIV - 91 col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7192
SELECT - ( - - 50 ) / - 91 col1 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT + + col0, col0 * + - col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
15
-225
87
-7569
97
-9409

query I rowsort
SELECT 96 * + + col0 + 5 AS col1 FROM tab0 cor0
----
1445
8357
9317

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL >= - col2
----

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

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

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

query I rowsort
SELECT ALL + col1 * ( - 7 ) AS col1 FROM tab0
----
-147
-567
-7

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7203
SELECT 75 * - COUNT( * ) AS col1 FROM tab1
----
-225

skipif mysql # not compatible
query I rowsort label-7203
SELECT 75 * - COUNT ( * ) AS col1 FROM tab1
----
-225

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7204
SELECT 38 + - COUNT ( * ) col2 FROM tab0 WHERE NOT + col0 <> NULL
----
38

query I rowsort
SELECT col0 * - - col1 * col2 FROM tab1
----
25075
290836
68544

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

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

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

query I rowsort
SELECT DISTINCT - ( 62 ) AS col0 FROM tab1 AS cor0
----
-62

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

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

query I rowsort
SELECT + 64 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

onlyif mysql # aggregate syntax: 
query I rowsort label-7211
SELECT DISTINCT - 40 + - SUM( DISTINCT + col1 ) + + 81 AS col2 FROM tab1
----
-25

skipif mysql # not compatible
query I rowsort label-7211
SELECT DISTINCT - 40 + - SUM ( DISTINCT + col1 ) + + 81 AS col2 FROM tab1
----
-25

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

query I rowsort
SELECT col0 + + + col2 AS col1 FROM tab1 AS cor0 WHERE 95 IS NOT NULL
----
144
147
159

onlyif mysql # aggregate syntax: 
query II rowsort label-7214
SELECT DISTINCT 70, COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= - col2 * col1 - + col2 + 8
----
70
0

skipif mysql # not compatible
query II rowsort label-7214
SELECT DISTINCT 70, COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= - col2 * col1 - + col2 + 8
----
70
0

query I rowsort
SELECT DISTINCT ( 93 ) / + 42 FROM tab0 AS cor0 WHERE NOT + col1 - 89 * - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7216
SELECT + COUNT( * ) * SUM( DISTINCT - col1 ) * MIN( DISTINCT + 59 ) * + + COUNT( * ) + - MIN( + col1 ) AS col1 FROM tab0
----
-54694

skipif mysql # not compatible
query I rowsort label-7216
SELECT + COUNT ( * ) * SUM ( DISTINCT - col1 ) * MIN ( DISTINCT + 59 ) * + + COUNT ( * ) + - MIN ( + col1 ) AS col1 FROM tab0
----
-54694

query I rowsort
SELECT ALL - ( + - 68 ) FROM tab2
----
68
68
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7218
SELECT DISTINCT 18 + + + col2 * CAST( + col2 AS SIGNED ) + col2 FROM tab1
----
3558
4710
9330

skipif mysql # not compatible
query I rowsort label-7218
SELECT DISTINCT 18 + + + col2 * CAST ( + col2 AS INTEGER ) + col2 FROM tab1
----
3558
4710
9330

query I rowsort
SELECT + 96 - - + col0 AS col0 FROM tab1
----
147
181
187

query I rowsort
SELECT ALL col1 + - ( - + ( col2 ) ) AS col0 FROM tab0
----
100
128
31

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

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

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

query II rowsort
SELECT ALL col1 AS col1, ( - - col0 ) AS col1 FROM tab2 WHERE + col2 + + col1 BETWEEN NULL AND - col0
----

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

query I rowsort
SELECT DISTINCT + col1 * ( + + 57 ) FROM tab2
----
2907
3819
4389

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

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

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

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

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

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

query I rowsort
SELECT ALL - col1 * + 11 * 30 AS col2 FROM tab1 AS cor0
----
-15510
-1650
-4620

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7231
SELECT - + COUNT( ALL - + 23 ) AS col1, 6 DIV ( - - MAX( col0 ) ) col1 FROM tab1 AS cor0
----
-3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7231
SELECT - + COUNT ( ALL - + 23 ) AS col1, 6 / ( - - MAX ( col0 ) ) col1 FROM tab1 AS cor0
----
-3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 52 * - - col2 AS col2, 57 col1 FROM tab2 AS cor0
----
-1196
57
-2080
57
-3016
57

query II rowsort
SELECT ALL col1 * + + col1 * + + col2 AS col1, + 31 FROM tab1
----
1475
31
150212
31
18816
31

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 18 + - col1 col1 FROM tab2 AS cor0
----
-33
-49
-59

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

skipif mysql # not compatible
query I rowsort label-7237
SELECT - 21 / col1 / + col1 FROM tab0 AS cor0
----
-21
0
0

query I rowsort
SELECT + 4 * - + col1 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN col1 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7239
SELECT COUNT( * ) * + 39 - + COUNT( * ) FROM tab0
----
114

skipif mysql # not compatible
query I rowsort label-7239
SELECT COUNT ( * ) * + 39 - + COUNT ( * ) FROM tab0
----
114

query I rowsort
SELECT - 42 - col0 * - 70 AS col1 FROM tab2
----
3178
4438
5208

onlyif mysql # DIV for integer division: 
query II rowsort label-7241
SELECT ALL + col1 - - col2 AS col2, + col2 DIV + col2 col0 FROM tab1
----
110
1
115
1
64
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7241
SELECT ALL + col1 - - col2 AS col2, + col2 / + col2 col0 FROM tab1
----
110
1
115
1
64
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7242
SELECT DISTINCT COUNT( * ) * 10 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-7242
SELECT DISTINCT COUNT ( * ) * 10 FROM tab0 AS cor0
----
30

query I rowsort
SELECT + col2 + + 0 AS col1 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT - + col0 + + 81 * + col1 FROM tab0 AS cor0
----
-16
1614
6546

query I rowsort
SELECT - 73 * + + 79 + col0 FROM tab1 AS cor0
----
-5676
-5682
-5716

query II rowsort
SELECT ALL + 48 AS col2, - col1 + + + col1 AS col1 FROM tab1 cor0
----
48
0
48
0
48
0

query I rowsort
SELECT ALL + + 90 * col1 + + col1 + + col2 * + + col0 FROM tab0 AS cor0
----
2781
8076
9694

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7248
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, + 83 col2 FROM tab0 cor0
----
NULL
83
NULL
83
NULL
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7248
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, + 83 col2 FROM tab0 cor0
----
NULL
83
NULL
83
NULL
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7249
SELECT - MIN( + ( - ( - col1 ) ) ) + - 77 * ( - - MIN( - - col1 ) ) AS col0 FROM tab1
----
-390

skipif mysql # not compatible
query I rowsort label-7249
SELECT - MIN ( + ( - ( - col1 ) ) ) + - 77 * ( - - MIN ( - - col1 ) ) AS col0 FROM tab1
----
-390

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 81 * + 70 AS col2, col2 col1 FROM tab1
----
5670
59
5670
68
5670
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7251
SELECT DISTINCT 61 * - - COUNT( - 57 ) AS col1 FROM tab0, tab0 AS cor0
----
549

skipif mysql # not compatible
query I rowsort label-7251
SELECT DISTINCT 61 * - - COUNT ( - 57 ) AS col1 FROM tab0, tab0 AS cor0
----
549

query I rowsort
SELECT DISTINCT + ( + + col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT - ( ( - 6 ) ) + - col2 IS NULL
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 * - 64 AS col0, - 75 * col0 col2 FROM tab0 AS cor0
----
3008
-1125
6336
-7275
640
-6525

onlyif mysql # aggregate syntax: 
query I rowsort label-7254
SELECT - - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7254
SELECT - - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col0, - col0 AS col2 FROM tab1
----
-59
-85
-68
-91
-96
-51

query I rowsort
SELECT + + 8 + col0 - + col0 + + - 17 FROM tab0 AS cor0
----
-9
-9
-9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 >= + col2 + + - 18
----
97
1
99

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7260
SELECT ALL - MAX( CAST( NULL AS SIGNED ) ) * - 78 col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7260
SELECT ALL - MAX ( CAST ( NULL AS INTEGER ) ) * - 78 col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7261
SELECT DISTINCT 36 * - + COUNT( col2 ) AS col1 FROM tab0 cor0
----
-108

skipif mysql # not compatible
query I rowsort label-7261
SELECT DISTINCT 36 * - + COUNT ( col2 ) AS col1 FROM tab0 cor0
----
-108

query I rowsort
SELECT ALL + + 37 * col2 + - col1 AS col2 FROM tab1 cor0
----
2178
2469
3538

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * - + col1 col0 FROM tab0 AS cor0
----
1
441
6561

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 92 NOT BETWEEN + 69 AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 45 + col2 + + + ( + 85 ) AS col2 FROM tab1
----
108
136
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7266
SELECT DISTINCT 19 + + COUNT( * ) FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-7266
SELECT DISTINCT 19 + + COUNT ( * ) FROM tab1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7267
SELECT + COUNT( * ) * + COUNT( ALL + col2 ) * + COUNT( * ) + 43 AS col2 FROM tab1
----
70

skipif mysql # not compatible
query I rowsort label-7267
SELECT + COUNT ( * ) * + COUNT ( ALL + col2 ) * + COUNT ( * ) + 43 AS col2 FROM tab1
----
70

query I rowsort
SELECT ALL + 74 + + 11 FROM tab2
----
85
85
85

query I rowsort
SELECT DISTINCT - 35 * - + 36 FROM tab0
----
1260

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 99 * - 82 * + col0 col0 FROM tab1 AS cor0
----
-414018
-690030
-738738

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7271
SELECT DISTINCT - col1 * - - ( - CAST( + col2 AS SIGNED ) ) + - col0 DIV - 94 AS col2 FROM tab1 AS cor0
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-7271
SELECT DISTINCT - col1 * - - ( - CAST ( + col2 AS INTEGER ) ) + - col0 / - 94 AS col2 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT col2 + ( + 89 ) AS col0 FROM tab1 AS cor0
----
148
157
185

query I rowsort
SELECT ALL + 13 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7275
SELECT MIN( + col2 ) FROM tab1 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7275
SELECT MIN ( + col2 ) FROM tab1 WHERE col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7276
SELECT ALL COUNT( * ) * + ( + + SUM( - 48 ) ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-3888

skipif mysql # not compatible
query I rowsort label-7276
SELECT ALL COUNT ( * ) * + ( + + SUM ( - 48 ) ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-3888

query I rowsort
SELECT DISTINCT 26 - + - col0 FROM tab1 AS cor0
----
111
117
77

onlyif mysql # DIV for integer division: 
query I rowsort label-7278
SELECT DISTINCT - 75 - col1 + 88 * col1 + + col2 DIV - col0 AS col0 FROM tab0 AS cor0
----
11
1752
6969

skipif mysql # not compatible
query I rowsort label-7278
SELECT DISTINCT - 75 - col1 + 88 * col1 + + col2 / - col0 AS col0 FROM tab0 AS cor0
----
11
1752
6969

onlyif mysql # aggregate syntax: 
query II rowsort label-7279
SELECT SUM( + 4 ), - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
12
-3

skipif mysql # not compatible
query II rowsort label-7279
SELECT SUM ( + 4 ), - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
12
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7280
SELECT DISTINCT + ( - CAST( col2 AS SIGNED ) ) FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-7280
SELECT DISTINCT + ( - CAST ( col2 AS INTEGER ) ) FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-7281
SELECT - col1 DIV + + 8 AS col1 FROM tab1
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-7281
SELECT - col1 / + + 8 AS col1 FROM tab1
----
-1
-5
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7282
SELECT ALL 58 AS col2, MIN( + - col0 ) AS col2 FROM tab0
----
58
-97

skipif mysql # not compatible
query II rowsort label-7282
SELECT ALL 58 AS col2, MIN ( + - col0 ) AS col2 FROM tab0
----
58
-97

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

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

query I rowsort
SELECT 37 * col0 * col0 AS col2 FROM tab1
----
267325
306397
96237

query I rowsort
SELECT ALL + 64 FROM tab1 WHERE NULL <= + 87
----

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

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

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

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

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

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

query II rowsort
SELECT ALL - - 66 AS col2, 31 FROM tab0 AS cor0
----
66
31
66
31
66
31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7291
SELECT DISTINCT + ( - col2 ) * + CAST( NULL AS DECIMAL ) * - + col0 * - 58 + 69 AS col1 FROM tab1 WHERE - 45 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7291
SELECT DISTINCT + ( - col2 ) * + CAST ( NULL AS REAL ) * - + col0 * - 58 + 69 AS col1 FROM tab1 WHERE - 45 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7292
SELECT - 22 * + col1 + + col0 DIV + col1 + + col2 * - 66 FROM tab1 cor0
----
-3987
-5521
-6641

skipif mysql # not compatible
query I rowsort label-7292
SELECT - 22 * + col1 + + col0 / + col1 + + col2 * - 66 FROM tab1 cor0
----
-3987
-5521
-6641

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7295
SELECT DISTINCT MIN( DISTINCT 92 ) * 64 + + + 63 + - - 37 DIV - - 75 * 48 FROM tab2 AS cor0
----
5951

skipif mysql # not compatible
query I rowsort label-7295
SELECT DISTINCT MIN ( DISTINCT 92 ) * 64 + + + 63 + - - 37 / - - 75 * 48 FROM tab2 AS cor0
----
5951

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7296
SELECT - + MIN( - 59 ) * + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7296
SELECT - + MIN ( - 59 ) * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7297
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN + col2 + 25 * + CAST( NULL AS SIGNED ) * + 5 * - col1 AND - 61
----

skipif mysql # not compatible
query III rowsort label-7297
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN + col2 + 25 * + CAST ( NULL AS INTEGER ) * + 5 * - col1 AND - 61
----

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

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

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

query I rowsort
SELECT - - col1 * - + col2 + + col1 + - - col1 + + + 85 FROM tab2 AS cor0
----
-2841
-3667
-986

query I rowsort
SELECT col0 * - 29 * + + col2 + - - col2 FROM tab0
----
-20398
-25220
-278388

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

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

query III rowsort
SELECT * FROM tab1 WHERE - col2 <> 61
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 49 * 88 FROM tab2
----
4312

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

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

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

query I rowsort
SELECT + 62 * - - col0 FROM tab1 AS cor0
----
3162
5270
5642

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE NOT ( col2 * - 14 ) <> ( 12 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7310
SELECT ALL COUNT( * ) + + SUM( DISTINCT + col2 ) AS col2 FROM tab2
----
124

skipif mysql # not compatible
query I rowsort label-7310
SELECT ALL COUNT ( * ) + + SUM ( DISTINCT + col2 ) AS col2 FROM tab2
----
124

onlyif mysql # DIV for integer division: 
query I rowsort label-7311
SELECT 19 DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7311
SELECT 19 / col2 FROM tab1
----
0
0
0

query I rowsort
SELECT 14 FROM tab1 WHERE - 41 NOT BETWEEN + 30 AND col1
----
14
14
14

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN ( + 77 ) AND + 22
----

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

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

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

query I rowsort
SELECT ALL - col0 * col1 + + 23 FROM tab2
----
-2323
-4905
-5002

query I rowsort
SELECT col2 + 83 FROM tab2
----
106
123
141

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7319
SELECT ALL 31 FROM tab1 WHERE NOT ( col0 ) <> CAST( 37 AS SIGNED ) * 55
----

skipif mysql # not compatible
query I rowsort label-7319
SELECT ALL 31 FROM tab1 WHERE NOT ( col0 ) <> CAST ( 37 AS INTEGER ) * 55
----

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 97 - ( - col2 ) / 62 ) NOT IN ( - col1 * 61 )
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7327
SELECT col2 + 64 AS col0 FROM tab0 WHERE - CAST( - 65 AS SIGNED ) - + col1 / + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7327
SELECT col2 + 64 AS col0 FROM tab0 WHERE - CAST ( - 65 AS INTEGER ) - + col1 / + col2 IS NULL
----

query I rowsort
SELECT col1 * + 76 + - col2 AS col0 FROM tab2
----
3853
5034
5812

onlyif mysql # DIV for integer division: 
query I rowsort label-7329
SELECT ALL col1 + + 7 DIV - col0 AS col0 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7329
SELECT ALL col1 + + 7 / - col0 AS col0 FROM tab2
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 NOT BETWEEN + 77 AND col2
----

query I rowsort
SELECT col0 + col0 * - 50 AS col2 FROM tab2
----
-2254
-3136
-3675

query I rowsort
SELECT + 21 + col2 * col2 FROM tab1
----
3502
4645
9237

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7333
SELECT - - 68 + + CAST( 10 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
78
78
78

skipif mysql # not compatible
query I rowsort label-7333
SELECT - - 68 + + CAST ( 10 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
78
78
78

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7335
SELECT DISTINCT ( - COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND col2
----
0

skipif mysql # not compatible
query I rowsort label-7335
SELECT DISTINCT ( - COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND col2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + 24 col1 FROM tab1 AS cor0
----
1224
2040
2184

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

query I rowsort
SELECT ALL + 68 + + col2 FROM tab0
----
115
167
78

query I rowsort
SELECT 90 * + 77 FROM tab0
----
6930
6930
6930

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7340
SELECT * FROM tab1 WHERE ( + col1 ) BETWEEN + 86 AND - col0 * + CAST( NULL AS SIGNED ) + col2
----

skipif mysql # not compatible
query III rowsort label-7340
SELECT * FROM tab1 WHERE ( + col1 ) BETWEEN + 86 AND - col0 * + CAST ( NULL AS INTEGER ) + col2
----

query I rowsort
SELECT DISTINCT - 38 - col0 AS col0 FROM tab0 WHERE NOT NULL IN ( - col2 * - col2 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 * 6 IS NULL
----

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

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

query I rowsort
SELECT + 9 + - col2 AS col2 FROM tab1 WHERE - col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7345
SELECT ALL col1 + - - 92 DIV - col2 AS col0 FROM tab1
----
14
4
46

skipif mysql # not compatible
query I rowsort label-7345
SELECT ALL col1 + - - 92 / - col2 AS col0 FROM tab1
----
14
4
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7346
SELECT MAX( DISTINCT col0 ) - - AVG ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7346
SELECT MAX ( DISTINCT col0 ) - - AVG ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + 73 - col0 - col1 FROM tab0
----
-23
-25
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 22 + - 65 col2 FROM tab0 WHERE + 40 IS NOT NULL
----
-43
-43
-43

query I rowsort
SELECT - col1 - + col0 + + 40 FROM tab1 AS cor0
----
-25
-50
-98

query I rowsort
SELECT ALL 31 + + + 37 AS col0 FROM tab1 AS cor0
----
68
68
68

query I rowsort
SELECT - col2 + + col2 + 60 * col0 AS col0 FROM tab0 AS cor0
----
5220
5820
900

query I rowsort
SELECT ALL + + col1 * - col0 - - col2 FROM tab1 AS cor0
----
-366
-4209
-618

query I rowsort
SELECT ALL col2 + 92 FROM tab2 AS cor0 WHERE NOT NULL IN ( 22 + + 74 )
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7355
SELECT 24 DIV - COUNT( * ) + + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
7

skipif mysql # not compatible
query I rowsort label-7355
SELECT 24 / - COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
7

query I rowsort
SELECT 98 + + 85 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1696f391cb4289960f708d07aec8f8a0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7357
SELECT CAST( 43 AS SIGNED ) AS col1 FROM tab2
----
43
43
43

skipif mysql # not compatible
query I rowsort label-7357
SELECT CAST ( 43 AS INTEGER ) AS col1 FROM tab2
----
43
43
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7358
SELECT DISTINCT 14 DIV 47 * MIN( 37 ) AS col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7358
SELECT DISTINCT 14 / 47 * MIN ( 37 ) AS col2 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7359
SELECT 72 * - ( 6 ) + + 20 * + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-372

skipif mysql # not compatible
query I rowsort label-7359
SELECT 72 * - ( 6 ) + + 20 * + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-372

onlyif mysql # DIV for integer division: 
query I rowsort label-7360
SELECT ALL + 90 DIV col1 * + 77 * col2 + - col0 FROM tab1 AS cor0
----
44301
5145
81689

skipif mysql # not compatible
query I rowsort label-7360
SELECT ALL + 90 / col1 * + 77 * col2 + - col0 FROM tab1 AS cor0
----
44301
5145
81689

onlyif mysql # aggregate syntax: 
query II rowsort label-7361
SELECT ALL - 75 AS col1, COUNT( * ) * + 74 * + COUNT( * ) AS col1 FROM tab0 cor0
----
-75
666

skipif mysql # not compatible
query II rowsort label-7361
SELECT ALL - 75 AS col1, COUNT ( * ) * + 74 * + COUNT ( * ) AS col1 FROM tab0 cor0
----
-75
666

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < ( 65 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 78 > + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7365
SELECT ALL - col2 * + CAST ( NULL AS INTEGER ) * - col2 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT + 11 * - col1 AS col1 FROM tab0
----
-11
-231
-891

onlyif mysql # DIV for integer division: 
query I rowsort label-7368
SELECT ALL 50 * + col1 DIV + - col1 col1 FROM tab2
----
-50
-50
-50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7368
SELECT ALL 50 * + col1 / + - col1 col1 FROM tab2
----
-50
-50
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7369
SELECT DISTINCT + COUNT( * ) * 94 AS col0 FROM tab0
----
282

skipif mysql # not compatible
query I rowsort label-7369
SELECT DISTINCT + COUNT ( * ) * 94 AS col0 FROM tab0
----
282

onlyif mysql # DIV for integer division: 
query I rowsort label-7370
SELECT ALL + ( - + col1 ) DIV col2 col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7370
SELECT ALL + ( - + col1 ) / col2 col1 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + 53 < - - col0 * 98
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7373
SELECT ALL MAX( ALL + 88 ) FROM tab2
----
88

skipif mysql # not compatible
query I rowsort label-7373
SELECT ALL MAX ( ALL + 88 ) FROM tab2
----
88

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

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

query I rowsort
SELECT + col1 * ( - col0 ) + 9 AS col1 FROM tab0 AS cor0
----
-1206
-1818
-88

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

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

query I rowsort
SELECT col1 * + 46 * + col1 - - col2 AS col2 FROM tab1 AS cor0
----
101682
1209
9112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7379
SELECT - + 91 DIV + MAX( + + col1 ) - + COUNT( DISTINCT + + ( + col2 ) ) + + 34 AS col1 FROM tab1 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-7379
SELECT - + 91 / + MAX ( + + col1 ) - + COUNT ( DISTINCT + + ( + col2 ) ) + + 34 AS col1 FROM tab1 AS cor0
----
30

query I rowsort
SELECT - 59 * col0 + + ( + + 77 ) FROM tab2 AS cor0
----
-2637
-3699
-4348

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

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

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

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

query II rowsort
SELECT ( 98 ) + ( - + 15 ) AS col2, - col2 - + col0 AS col1 FROM tab2
----
83
-104
83
-133
83
-69

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7385
SELECT + MIN( ALL - 41 ) * 20 AS col0 FROM tab2 WHERE col1 + col2 IS NOT NULL
----
-820

skipif mysql # not compatible
query I rowsort label-7385
SELECT + MIN ( ALL - 41 ) * 20 AS col0 FROM tab2 WHERE col1 + col2 IS NOT NULL
----
-820

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

query III rowsort
SELECT * FROM tab2 WHERE - 47 * col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7388
SELECT ALL + col0 + - 42 + + - col1 DIV - + col0 + + col2 * col2 AS col0 FROM tab0
----
145
2187
9856

skipif mysql # not compatible
query I rowsort label-7388
SELECT ALL + col0 + - 42 + + - col1 / - + col0 + + col2 * col2 AS col0 FROM tab0
----
145
2187
9856

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

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

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

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

query I rowsort
SELECT DISTINCT - 19 - - + 20 AS col1 FROM tab1 AS cor0
----
1

query II rowsort
SELECT ALL + 2 * 26 AS col2, - col0 FROM tab1
----
52
-51
52
-85
52
-91

query I rowsort
SELECT + col2 * - - 69 * + 65 FROM tab1
----
264615
304980
430560

onlyif mysql # aggregate syntax: 
query I rowsort label-7395
SELECT ALL - ( - - COUNT( * ) ) * 41 AS col2 FROM tab1
----
-123

skipif mysql # not compatible
query I rowsort label-7395
SELECT ALL - ( - - COUNT ( * ) ) * 41 AS col2 FROM tab1
----
-123

query I rowsort
SELECT DISTINCT 38 FROM tab0 WHERE ( col2 ) IS NOT NULL
----
38

query I rowsort
SELECT DISTINCT + col0 * + 52 AS col0 FROM tab0
----
4524
5044
780

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

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 * col2 col1, + 35 * - col1 FROM tab1 AS cor0
----
4896
-490
5015
-175
6188
-1645

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7407
SELECT col2 DIV col2 * col2 AS col1 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-7407
SELECT col2 / col2 * col2 AS col1 FROM tab2
----
23
40
58

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7409
SELECT ALL 60 * + COUNT( - CAST( + - col1 AS SIGNED ) ) FROM tab0
----
180

skipif mysql # not compatible
query I rowsort label-7409
SELECT ALL 60 * + COUNT ( - CAST ( + - col1 AS INTEGER ) ) FROM tab0
----
180

query I rowsort
SELECT + col0 * - 45 * + col0 * - col0 FROM tab2
----
11796480
18984375
4380120

onlyif mysql # aggregate syntax: 
query I rowsort label-7411
SELECT DISTINCT + COUNT( * ) * - MAX( col0 ) FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-7411
SELECT DISTINCT + COUNT ( * ) * - MAX ( col0 ) FROM tab2
----
-225

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7413
SELECT ALL 52, + COUNT( * ) AS col0 FROM tab2
----
52
3

skipif mysql # not compatible
query II rowsort label-7413
SELECT ALL 52, + COUNT ( * ) AS col0 FROM tab2
----
52
3

query I rowsort
SELECT 14 * - col2 AS col1 FROM tab1
----
-1344
-826
-952

query II rowsort
SELECT ALL + col2 AS col0, 30 - - col0 FROM tab0 AS cor0
----
10
117
47
45
99
127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7416
SELECT ALL - 44 * col1 AS col0 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) * - - 46 / ( 96 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7416
SELECT ALL - 44 * col1 AS col0 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) * - - 46 / ( 96 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 col2 FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7418
SELECT + 57 + + COUNT( * ) FROM tab2, tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-7418
SELECT + 57 + + COUNT ( * ) FROM tab2, tab1 AS cor0
----
66

query I rowsort
SELECT ALL 27 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * + col2 * - + 87 IS NOT NULL
----

query I rowsort
SELECT ( 55 ) + + ( + col1 ) AS col1 FROM tab2 cor0
----
106
122
132

query I rowsort
SELECT ALL - 16 + - col2 AS col2 FROM tab0 AS cor0
----
-115
-26
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7424
SELECT - ( - 39 ) * ( - COUNT( * ) ) col1 FROM tab0 WHERE NULL IS NULL
----
-117

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7424
SELECT - ( - 39 ) * ( - COUNT ( * ) ) col1 FROM tab0 WHERE NULL IS NULL
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-7425
SELECT ALL + MIN( DISTINCT - + 94 ) + COUNT( * ) AS col0 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-7425
SELECT ALL + MIN ( DISTINCT - + 94 ) + COUNT ( * ) AS col0 FROM tab1
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-7426
SELECT ALL col2 + - 52 - - 21 + + - col1 DIV 43 DIV col1 AS col2 FROM tab1
----
28
37
65

skipif mysql # not compatible
query I rowsort label-7426
SELECT ALL col2 + - 52 - - 21 + + - col1 / 43 / col1 AS col2 FROM tab1
----
28
37
65

query I rowsort
SELECT DISTINCT + ( + col1 ) + 58 AS col1 FROM tab0
----
139
59
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 - + - 9 + - 4 + - col0 * - - col2 + + col1 AS col0, - 81 col1 FROM tab1
----
-4826
-81
-4920
-81
-6045
-81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col2 * + col2 * - col2 ) = - ( + 22 ) AND NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 + - + col1 IN ( + col0 + - + 87 + + col2 * col1 + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 + col1 IS NOT NULL
----

query I rowsort
SELECT col2 * - + col2 AS col1 FROM tab0
----
-100
-2209
-9801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 AS col2, col0 * - ( + 22 ) + col0 col0 FROM tab0 cor0
----
10
-1827
47
-315
99
-2037

onlyif mysql # aggregate syntax: 
query I rowsort label-7434
SELECT SUM( - - 2 ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7434
SELECT SUM ( - - 2 ) FROM tab1 AS cor0
----
6

query II rowsort
SELECT col1, + col1 + - col1 FROM tab0 AS cor0
----
1
0
21
0
81
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7436
SELECT DISTINCT 16 * + COUNT( * ) FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-7436
SELECT DISTINCT 16 * + COUNT ( * ) FROM tab0 AS cor0
----
48

query II rowsort
SELECT col2 AS col0, col0 AS col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

query II rowsort
SELECT - col1, 24 AS col2 FROM tab1 AS cor0
----
-14
24
-47
24
-5
24

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 24 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7440
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( + col2 * - + CAST( - col0 AS SIGNED ) * col1 )
----

skipif mysql # not compatible
query III rowsort label-7440
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( + col2 * - + CAST ( - col0 AS INTEGER ) * col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7441
SELECT DISTINCT - col0 * col1 * ( ( + col1 ) ) DIV - col1 AS col2 FROM tab0 AS cor0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-7441
SELECT DISTINCT - col0 * col1 * ( ( + col1 ) ) / - col1 AS col2 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7442
SELECT ( - COUNT( * ) ) FROM tab2 AS cor0 WHERE ( NULL ) <= 40
----
0

skipif mysql # not compatible
query I rowsort label-7442
SELECT ( - COUNT ( * ) ) FROM tab2 AS cor0 WHERE ( NULL ) <= 40
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7443
SELECT - col1 - + ( - 18 ) + - col0 DIV - col1 + - - ( 17 ) AS col0 FROM tab2 AS cor0
----
-16
-31
-42

skipif mysql # not compatible
query I rowsort label-7443
SELECT - col1 - + ( - 18 ) + - col0 / - col1 + - - ( 17 ) AS col0 FROM tab2 AS cor0
----
-16
-31
-42

query I rowsort
SELECT DISTINCT col0 * col0 * - 57 AS col1 FROM tab1 AS cor0
----
-148257
-411825
-472017

query I rowsort
SELECT col1 + col2 * - + ( + col2 ) FROM tab2 AS cor0
----
-1523
-3297
-478

query I rowsort
SELECT - - col1 FROM tab1 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT - COUNT( * ) + - 11 AS col2 FROM tab2 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-7447
SELECT - COUNT ( * ) + - 11 AS col2 FROM tab2 AS cor0
----
-14

query I rowsort
SELECT - col1 + + + col2 AS col0 FROM tab1 AS cor0
----
21
54
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT ALL + + SUM( DISTINCT + col1 ) col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7449
SELECT ALL + + SUM ( DISTINCT + col1 ) col2 FROM tab1 AS cor0
----
66

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + ( - - col0 ) * - ( 45 ) + + - 63 <= + - 57
----

query I rowsort
SELECT ALL + + col1 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7452
SELECT ALL + ( 98 ) DIV - - col0 + + col2 FROM tab2
----
25
41
59

skipif mysql # not compatible
query I rowsort label-7452
SELECT ALL + ( 98 ) / - - col0 + + col2 FROM tab2
----
25
41
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col0, 69 - 46 AS col1 FROM tab0 WHERE 84 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + ( 72 ) >= - col1 + 77
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 + - 2 FROM tab0
----
45
8
97

query III rowsort
SELECT * FROM tab1 WHERE + - 79 + col2 / + 36 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 + 71 * col1 FROM tab2
----
3570
4690
5390

onlyif mysql # aggregate syntax: 
query I rowsort label-7458
SELECT ALL ( - + 72 ) + + MAX( DISTINCT - - 77 ) * + 39 FROM tab2
----
2931

skipif mysql # not compatible
query I rowsort label-7458
SELECT ALL ( - + 72 ) + + MAX ( DISTINCT - - 77 ) * + 39 FROM tab2
----
2931

onlyif mysql # aggregate syntax: 
query I rowsort label-7459
SELECT DISTINCT - COUNT( * ) * - - COUNT( * ) AS col0 FROM tab1 WHERE + - col2 + + 28 + - - 60 * col0 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-7459
SELECT DISTINCT - COUNT ( * ) * - - COUNT ( * ) AS col0 FROM tab1 WHERE + - col2 + + 28 + - - 60 * col0 > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT DISTINCT COUNT( DISTINCT + + col1 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7460
SELECT DISTINCT COUNT ( DISTINCT + + col1 ) AS col1 FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7461
SELECT + col1 + + 71 DIV + + col0 FROM tab1 AS cor0 WHERE NOT + col0 = ( + 43 )
----
15
47
5

skipif mysql # not compatible
query I rowsort label-7461
SELECT + col1 + + 71 / + + col0 FROM tab1 AS cor0 WHERE NOT + col0 = ( + 43 )
----
15
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7462
SELECT DISTINCT + CAST( - - 9 AS SIGNED ) * - COUNT( * ) FROM tab1, tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-7462
SELECT DISTINCT + CAST ( - - 9 AS INTEGER ) * - COUNT ( * ) FROM tab1, tab1 AS cor0
----
-81

query I rowsort
SELECT + 77 * + 10 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f45d34a1cba3c01966ab2c7c538c0bc5

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT DISTINCT COUNT( DISTINCT 90 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-7464
SELECT DISTINCT COUNT ( DISTINCT 90 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col2 * - ( + - col2 ) col1 FROM tab1
----
129024
17405
217328

query III rowsort
SELECT * FROM tab1 WHERE NOT 23 >= - 11 + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT ALL + COUNT( DISTINCT col1 ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7467
SELECT ALL + COUNT ( DISTINCT col1 ) col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 NOT BETWEEN + - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7469
SELECT ( - - 78 ) AS col1, + SUM( col1 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
78
195

skipif mysql # not compatible
query II rowsort label-7469
SELECT ( - - 78 ) AS col1, + SUM ( col1 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
78
195

onlyif mysql # aggregate syntax: 
query I rowsort label-7470
SELECT DISTINCT + + COUNT( - + 42 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7470
SELECT DISTINCT + + COUNT ( - + 42 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7471
SELECT ( 75 ) * + AVG ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7471
SELECT ( 75 ) * + AVG ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

query II rowsort
SELECT col1, - 33 + + - 70 FROM tab2
----
51
-103
67
-103
77
-103

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 88 + - + col0 * - + 2 >= - + col0
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7474
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - 85 * - COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7474
SELECT DISTINCT CAST ( NULL AS REAL ) * - 85 * - COUNT ( * ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7475
SELECT - COUNT( ALL 90 ) * + - COUNT( - col0 ) * COUNT( * ) AS col1 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-7475
SELECT - COUNT ( ALL 90 ) * + - COUNT ( - col0 ) * COUNT ( * ) AS col1 FROM tab1
----
27

query II rowsort
SELECT DISTINCT - col0 AS col2, - col0 FROM tab0 cor0
----
-15
-15
-87
-87
-97
-97

query I rowsort
SELECT - + col2 * + + col0 + - col1 + + - 32 AS col0 FROM tab2 AS cor0
----
-1141
-2669
-4449

onlyif mysql # aggregate syntax: 
query I rowsort label-7478
SELECT ALL MAX( DISTINCT + 14 ) col1 FROM tab2 AS cor0
----
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7478
SELECT ALL MAX ( DISTINCT + 14 ) col1 FROM tab2 AS cor0
----
14

query III rowsort
SELECT * FROM tab1 WHERE NULL < + 49
----

query I rowsort
SELECT + + 73 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7481
SELECT DISTINCT + + 18 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7481
SELECT DISTINCT + + 18 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col0 ) IN ( 41 * - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7483
SELECT CAST( - 33 AS SIGNED ) + col1 * + 19 * 94 * - col0 * col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-192738009
-563290145
-673098783

skipif mysql # not compatible
query I rowsort label-7483
SELECT CAST ( - 33 AS INTEGER ) + col1 * + 19 * 94 * - col0 * col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-192738009
-563290145
-673098783

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7484
SELECT CAST( NULL AS DECIMAL ) * + 45 - - 27 * + MAX( col0 ) AS col2, 62 + - 51 FROM tab1 AS cor0
----
NULL
11

skipif mysql # not compatible
query II rowsort label-7484
SELECT CAST ( NULL AS REAL ) * + 45 - - 27 * + MAX ( col0 ) AS col2, 62 + - 51 FROM tab1 AS cor0
----
NULL
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7485
SELECT 48 DIV + - ( - COUNT( * ) ) col1 FROM tab2
----
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7485
SELECT 48 / + - ( - COUNT ( * ) ) col1 FROM tab2
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7486
SELECT ALL COUNT( * ) AS col1, + CAST( - MAX( ALL - - col1 ) AS SIGNED ) FROM tab2
----
3
-77

skipif mysql # not compatible
query II rowsort label-7486
SELECT ALL COUNT ( * ) AS col1, + CAST ( - MAX ( ALL - - col1 ) AS INTEGER ) FROM tab2
----
3
-77

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT ( NOT + + col0 IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7488
SELECT col0 DIV - - col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7488
SELECT col0 / - - col0 FROM tab1
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7489
SELECT DISTINCT CAST( NULL AS SIGNED ) / - - ( - col1 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7489
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - - ( - col1 ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 10 col0, col1 FROM tab0
----
10
1
10
21
10
81

query I rowsort
SELECT ALL 25 * + + 68 AS col0 FROM tab1
----
1700
1700
1700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7492
SELECT + + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT + - col2 + - col2 BETWEEN NULL AND + - 74
----

skipif mysql # not compatible
query I rowsort label-7492
SELECT + + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT + - col2 + - col2 BETWEEN NULL AND + - 74
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7493
SELECT - + SUM( ALL + 77 ) AS col0 FROM tab0 cor0
----
-231

skipif mysql # not compatible
query I rowsort label-7493
SELECT - + SUM ( ALL + 77 ) AS col0 FROM tab0 cor0
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-7494
SELECT DISTINCT - MAX( + ( 73 ) ) AS col0 FROM tab0
----
-73

skipif mysql # not compatible
query I rowsort label-7494
SELECT DISTINCT - MAX ( + ( 73 ) ) AS col0 FROM tab0
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7495
SELECT - 84 * - AVG ( DISTINCT - + CAST( NULL AS SIGNED ) ) - - 2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7495
SELECT - 84 * - AVG ( DISTINCT - + CAST ( NULL AS INTEGER ) ) - - 2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - ( 68 ) FROM tab2 AS cor0
----
-68

query II rowsort
SELECT ( - col2 ) AS col1, + col2 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT + col0 >= NULL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 46 col1 FROM tab1 cor0
----
-46
-46
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-7500
SELECT + ( - col2 ) DIV + - 20 AS col0 FROM tab2 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-7500
SELECT + ( - col2 ) / + - 20 AS col0 FROM tab2 AS cor0
----
1
2
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col0 ) + - - col0 - col1 + - col2 * + + col2 * + col0 * + 3 col1 FROM tab2 AS cor0
----
-307277
-73053
-756967

onlyif mysql # aggregate syntax: 
query II rowsort label-7502
SELECT - SUM( + col2 ) AS col1, + 69 AS col2 FROM tab0 AS cor0
----
-156
69

skipif mysql # not compatible
query II rowsort label-7502
SELECT - SUM ( + col2 ) AS col1, + 69 AS col2 FROM tab0 AS cor0
----
-156
69

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( - col1 * - col1 / 82 - - 91 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7504
SELECT + + MIN( DISTINCT + + 50 ) AS col0 FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-7504
SELECT + + MIN ( DISTINCT + + 50 ) AS col0 FROM tab1 AS cor0
----
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab0 AS cor0 WHERE ( NULL ) = NULL
----

query I rowsort
SELECT + ( + - 3 ) FROM tab0 AS cor0
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7507
SELECT ALL + ( + ( - MIN( ALL - + col2 ) ) ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-7507
SELECT ALL + ( + ( - MIN ( ALL - + col2 ) ) ) FROM tab2
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7508
SELECT ALL - CAST( - col0 AS SIGNED ) + 67 - - + col1 FROM tab0
----
163
165
175

skipif mysql # not compatible
query I rowsort label-7508
SELECT ALL - CAST ( - col0 AS INTEGER ) + 67 - - + col1 FROM tab0
----
163
165
175

query I rowsort
SELECT - ( col2 ) + - ( 33 ) * 21 FROM tab1
----
-752
-761
-789

query I rowsort
SELECT DISTINCT - 76 + + col0 AS col2 FROM tab2
----
-1
-12
-30

query I rowsort
SELECT ALL - 74 + col0 FROM tab2
----
-10
-28
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7512
SELECT ALL MAX( DISTINCT + CAST( - col2 AS SIGNED ) ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-7512
SELECT ALL MAX ( DISTINCT + CAST ( - col2 AS INTEGER ) ) FROM tab1
----
-59

query I rowsort
SELECT - ( + 17 ) FROM tab2 cor0
----
-17
-17
-17

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + col0 + + col0 < + - ( - + 27 ) + - ( - + col2 ) * + col0
----

query I rowsort
SELECT + col2 - + 35 * - - col2 FROM tab0
----
-1598
-3366
-340

query I rowsort
SELECT - col0 - - ( + + col1 ) FROM tab1
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7517
SELECT ALL - SUM( ALL - 0 ) * - - 8 - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7517
SELECT ALL - SUM ( ALL - 0 ) * - - 8 - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7518
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) >= + - col2
----

skipif mysql # not compatible
query III rowsort label-7518
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) >= + - col2
----

query I rowsort
SELECT ALL - + 96 - + 39 FROM tab1 AS cor0
----
-135
-135
-135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7520
SELECT DISTINCT + - col2 - - - CAST( NULL AS SIGNED ) - + col1 * col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7520
SELECT DISTINCT + - col2 - - - CAST ( NULL AS INTEGER ) - + col1 * col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7521
SELECT + CAST( NULL AS SIGNED ) * + - col2 + - + col2 * + 70 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7521
SELECT + CAST ( NULL AS INTEGER ) * + - col2 + - + col2 * + 70 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + 88 AS col0, - 26 + col1 / - col2 + col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT COUNT( * ) * - ( + 59 ) AS col0 FROM tab1 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-7523
SELECT COUNT ( * ) * - ( + 59 ) AS col0 FROM tab1 AS cor0
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-7524
SELECT DISTINCT - COUNT( * ) * - 16 col0 FROM tab0 AS cor0
----
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7524
SELECT DISTINCT - COUNT ( * ) * - 16 col0 FROM tab0 AS cor0
----
48

query I rowsort
SELECT ALL - col1 * 8 FROM tab0
----
-168
-648
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT DISTINCT + - COUNT( ALL + - col0 ) AS col2 FROM tab0 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-7526
SELECT DISTINCT + - COUNT ( ALL + - col0 ) AS col2 FROM tab0 WHERE NOT NULL = NULL
----
0

query II rowsort
SELECT DISTINCT col0 * col0, col0 + col2 + col1 AS col2 FROM tab0
----
225
143
7569
118
9409
197

query I rowsort
SELECT col2 * - col2 * + col2 * + col1 FROM tab1
----
-1026895
-12386304
-14778304

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7529
SELECT DISTINCT + ( col0 ), CAST( NULL AS SIGNED ) * 48 col2 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7529
SELECT DISTINCT + ( col0 ), CAST ( NULL AS INTEGER ) * 48 col2 FROM tab2
----
46
NULL
64
NULL
75
NULL

query I rowsort
SELECT DISTINCT + ( + + col1 ) * - - col1 FROM tab1
----
196
2209
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7531
SELECT DISTINCT col1 * - col0 * + - CAST( NULL AS SIGNED ) * col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7531
SELECT DISTINCT col1 * - col0 * + - CAST ( NULL AS INTEGER ) * col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7532
SELECT + COUNT( DISTINCT + - col0 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7532
SELECT + COUNT ( DISTINCT + - col0 ) col2 FROM tab0
----
3

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7534
SELECT - - MAX( DISTINCT - col1 ) col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7534
SELECT - - MAX ( DISTINCT - col1 ) col2 FROM tab2 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7535
SELECT DISTINCT + - SUM( DISTINCT - - 94 ) FROM tab0 cor0
----
-94

skipif mysql # not compatible
query I rowsort label-7535
SELECT DISTINCT + - SUM ( DISTINCT - - 94 ) FROM tab0 cor0
----
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + 89 col0 FROM tab1
----
-5251
-6052
-8544

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE NOT - 8 IS NULL
----
10
47
99

query I rowsort
SELECT DISTINCT 19 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7539
SELECT ALL - - col2 + col0 + - CAST( + + 54 AS SIGNED ) FROM tab1 AS cor0 WHERE - 13 * + + col0 NOT BETWEEN + ( col0 ) AND NULL
----
105
90
93

skipif mysql # not compatible
query I rowsort label-7539
SELECT ALL - - col2 + col0 + - CAST ( + + 54 AS INTEGER ) FROM tab1 AS cor0 WHERE - 13 * + + col0 NOT BETWEEN + ( col0 ) AND NULL
----
105
90
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 28 col2 FROM tab2 cor0
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7541
SELECT ( - + SUM( ALL + - 82 ) ) col0 FROM tab2
----
246

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7541
SELECT ( - + SUM ( ALL + - 82 ) ) col0 FROM tab2
----
246

query I rowsort
SELECT DISTINCT + col1 + - 19 FROM tab0
----
-18
2
62

onlyif mysql # DIV for integer division: 
query I rowsort label-7543
SELECT ALL + col1 DIV + col1 + + + col0 * - col0 FROM tab0
----
-224
-7568
-9408

skipif mysql # not compatible
query I rowsort label-7543
SELECT ALL + col1 / + col1 + + + col0 * - col0 FROM tab0
----
-224
-7568
-9408

query I rowsort
SELECT - 1 + - 35 AS col1 FROM tab2 AS cor0
----
-36
-36
-36

query I rowsort
SELECT DISTINCT col0 + 0 - - col2 FROM tab2
----
104
133
69

query I rowsort
SELECT ALL + 68 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT DISTINCT - - ( - + 78 ) FROM tab2 AS cor0
----
-78

query I rowsort
SELECT ALL - 31 AS col1 FROM tab1 AS cor0
----
-31
-31
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-7549
SELECT + col2 * col1 DIV col2 + + + 81 AS col2 FROM tab1 AS cor0
----
128
86
95

skipif mysql # not compatible
query I rowsort label-7549
SELECT + col2 * col1 / col2 + + + 81 AS col2 FROM tab1 AS cor0
----
128
86
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7550
SELECT col1 * + - CAST( NULL AS SIGNED ) + + + 48 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7550
SELECT col1 * + - CAST ( NULL AS INTEGER ) + + + 48 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + col0 * + 5 FROM tab1 AS cor0
----
24480
25075
30940

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7552
SELECT ALL col1 * CAST( col0 AS SIGNED ) * 52 * + col1 AS col0 FROM tab2
----
17507100
19731712
6221592

skipif mysql # not compatible
query I rowsort label-7552
SELECT ALL col1 * CAST ( col0 AS INTEGER ) * 52 * + col1 AS col0 FROM tab2
----
17507100
19731712
6221592

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 32 * - - 78 col0 FROM tab2
----
-2496

onlyif mysql # aggregate syntax: 
query I rowsort label-7554
SELECT COUNT( * ) * - - 90 FROM tab1
----
270

skipif mysql # not compatible
query I rowsort label-7554
SELECT COUNT ( * ) * - - 90 FROM tab1
----
270

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, ( + 96 ) * - col0 * - 27 AS col1 FROM tab0
----
10
225504
47
38880
99
251424

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * 55 <> NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7557
SELECT 51, + 82 DIV col2 col2 FROM tab1
----
51
0
51
1
51
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7557
SELECT 51, + 82 / col2 col2 FROM tab1
----
51
0
51
1
51
1

query I rowsort
SELECT 8 AS col1 FROM tab2 WHERE NOT + col1 * - col2 + - - 50 - + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 * - - col2 AS col2 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT DISTINCT - + 94 FROM tab2 cor0 WHERE ( NULL ) = + + 49 / + 56
----

query II rowsort
SELECT + 14, + col0 FROM tab1 cor0
----
14
51
14
85
14
91

query I rowsort
SELECT ALL + col1 * + ( + col0 ) FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT - COUNT( DISTINCT + col1 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7563
SELECT - COUNT ( DISTINCT + col1 ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7564
SELECT COUNT( ALL 54 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7564
SELECT COUNT ( ALL 54 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7565
SELECT + 83 * ( - COUNT( * ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-747

skipif mysql # not compatible
query I rowsort label-7565
SELECT + 83 * ( - COUNT ( * ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-747

onlyif mysql # aggregate syntax: 
query I rowsort label-7566
SELECT COUNT( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7566
SELECT COUNT ( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9

query II rowsort
SELECT + col2 * col1, - col1 AS col0 FROM tab2
----
1173
-51
3080
-77
3886
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-7568
SELECT - 65 * + 14 AS col1, MIN( - - ( col1 ) ) + COUNT( + col0 ) FROM tab2
----
-910
54

skipif mysql # not compatible
query II rowsort label-7568
SELECT - 65 * + 14 AS col1, MIN ( - - ( col1 ) ) + COUNT ( + col0 ) FROM tab2
----
-910
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7569
SELECT DISTINCT - COUNT( * ) * - 47 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
423

skipif mysql # not compatible
query I rowsort label-7569
SELECT DISTINCT - COUNT ( * ) * - 47 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
423

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7570
SELECT * FROM tab1 AS cor0 WHERE + col2 / - - col1 <> + + CAST( + + col1 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7570
SELECT * FROM tab1 AS cor0 WHERE + col2 / - - col1 <> + + CAST ( + + col1 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - 63 * + 10 + - + 18 + 15 FROM tab1 AS cor0 WHERE NOT - col2 - - 79 <> col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col1 AND + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7573
SELECT - + SUM( + col0 ) AS col2 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-7573
SELECT - + SUM ( + col0 ) AS col2 FROM tab0 AS cor0
----
-199

query I rowsort
SELECT + col2 * - col2 * + col1 FROM tab0 AS cor0
----
-178929
-2100
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-7575
SELECT ALL 8 + COUNT( * ) * + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-7575
SELECT ALL 8 + COUNT ( * ) * + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-7576
SELECT - col2 + - + col1 DIV 65 AS col0 FROM tab2 AS cor0
----
-23
-41
-59

skipif mysql # not compatible
query I rowsort label-7576
SELECT - col2 + - + col1 / 65 AS col0 FROM tab2 AS cor0
----
-23
-41
-59

query I rowsort
SELECT + col2 + + + col2 AS col2 FROM tab1 AS cor0
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-7578
SELECT + MIN( - col0 ) + - - 1 col0 FROM tab1 AS cor0
----
-90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7578
SELECT + MIN ( - col0 ) + - - 1 col0 FROM tab1 AS cor0
----
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col2 col0 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7580
SELECT + MIN( ALL + col0 ) + - + 91 AS col2 FROM tab0 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-7580
SELECT + MIN ( ALL + col0 ) + - + 91 AS col2 FROM tab0 AS cor0
----
-76

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 < + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 57 + 67 FROM tab0
----
124

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * + 32 * + 83 + - - col1 AS col2, col0 col1 FROM tab0
----
124913
15
262945
97
26581
87

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 87 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 50 + - 24 FROM tab2
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-7586
SELECT - col0 DIV + col2 FROM tab1 WHERE col1 + 64 * - col0 DIV + col0 + + 29 IS NOT NULL
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7586
SELECT - col0 / + col2 FROM tab1 WHERE col1 + 64 * - col0 / + col0 + + 29 IS NOT NULL
----
-1
-1
0

query I rowsort
SELECT ALL - col0 + 69 FROM tab1
----
-16
-22
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT ALL ( + + MIN( + 97 ) ) AS col0 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-7588
SELECT ALL ( + + MIN ( + 97 ) ) AS col0 FROM tab0
----
97

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7590
SELECT ALL + - 24 DIV + - col2 - + col0 + + col0 - - col1 - col0 * - + col1 AS col0 FROM tab0 AS cor0
----
1296
1850
98

skipif mysql # not compatible
query I rowsort label-7590
SELECT ALL + - 24 / + - col2 - + col0 + + col0 - - col1 - col0 * - + col1 AS col0 FROM tab0 AS cor0
----
1296
1850
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT + + MIN( + col2 ) AS col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-7591
SELECT + + MIN ( + col2 ) AS col2 FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7592
SELECT + + 84 * - COUNT( * ) col2 FROM tab2 AS cor0
----
-252

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7592
SELECT + + 84 * - COUNT ( * ) col2 FROM tab2 AS cor0
----
-252

query I rowsort
SELECT DISTINCT 26 * col1 * 64 AS col1 FROM tab1
----
23296
78208
8320

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 28 * col1 IS NULL
----

query II rowsort
SELECT - + ( col1 ) AS col1, - col2 AS col0 FROM tab2 cor0
----
-51
-23
-67
-58
-77
-40

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col2 * - + col1 < col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7597
SELECT CAST( col0 AS SIGNED ) * + + 26 FROM tab0 AS cor0
----
2262
2522
390

skipif mysql # not compatible
query I rowsort label-7597
SELECT CAST ( col0 AS INTEGER ) * + + 26 FROM tab0 AS cor0
----
2262
2522
390

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN - col1 AND + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 + 12 + col1 + - 14 - + col1 / + - 1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7600
SELECT - ( - + COUNT( * ) ) * MIN( - 56 ) FROM tab0
----
-168

skipif mysql # not compatible
query I rowsort label-7600
SELECT - ( - + COUNT ( * ) ) * MIN ( - 56 ) FROM tab0
----
-168

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE NOT - 39 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7602
SELECT + MAX( DISTINCT + col1 ) AS col1 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-7602
SELECT + MAX ( DISTINCT + col1 ) AS col1 FROM tab1
----
47

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 WHERE NOT NULL <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7604
SELECT - 76 DIV + 64 AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7604
SELECT - 76 / + 64 AS col0 FROM tab2
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 84 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7606
SELECT ALL * FROM tab0 WHERE NOT CAST( - 50 AS DECIMAL ) - - - col2 / col2 < + + col0
----

skipif mysql # not compatible
query III rowsort label-7606
SELECT ALL * FROM tab0 WHERE NOT CAST ( - 50 AS REAL ) - - - col2 / col2 < + + col0
----

query I rowsort
SELECT col2 * - - 3 * - 53 FROM tab1
----
-10812
-15264
-9381

onlyif mysql # aggregate syntax: 
query I rowsort label-7608
SELECT DISTINCT SUM( - - col0 ) AS col0 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-7608
SELECT DISTINCT SUM ( - - col0 ) AS col0 FROM tab0 AS cor0
----
199

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 NOT IN ( col2 )
----

query I rowsort
SELECT ALL ( + 47 ) AS col1 FROM tab0 AS cor0 WHERE + 80 / + - col1 IS NOT NULL
----
47
47
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 17 * - - 16 * - 54 AS col0, + col2 col0 FROM tab2 AS cor0
----
14688
23
14688
40
14688
58

query I rowsort
SELECT ALL - - ( col2 ) * - + 49 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN + col1 - + ( - col0 ) + - col2 AND NULL
----

query I rowsort
SELECT ALL + 52 * - 8 FROM tab2 AS cor0
----
-416
-416
-416

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT DISTINCT - 76 * COUNT( * ) col2 FROM tab1
----
-228

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7614
SELECT DISTINCT - 76 * COUNT ( * ) col2 FROM tab1
----
-228

query I rowsort
SELECT 78 + - 71 * 59 AS col0 FROM tab2
----
-4111
-4111
-4111

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7616
SELECT DISTINCT col2 * CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7616
SELECT DISTINCT col2 * CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7617
SELECT DISTINCT COUNT( * ) + 50 AS col0 FROM tab1
----
53

skipif mysql # not compatible
query I rowsort label-7617
SELECT DISTINCT COUNT ( * ) + 50 AS col0 FROM tab1
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7618
SELECT - ( + SUM( DISTINCT - 67 ) ) DIV 37 + 48 + + ( - COUNT( * ) ) col0 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7618
SELECT - ( + SUM ( DISTINCT - 67 ) ) / 37 + 48 + + ( - COUNT ( * ) ) col0 FROM tab2 AS cor0
----
46

query I rowsort
SELECT ALL + col0 * 99 AS col0 FROM tab2 AS cor0
----
4554
6336
7425

onlyif mysql # aggregate syntax: 
query I rowsort label-7620
SELECT ALL - 80 + - 44 + + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-7620
SELECT ALL - 80 + - 44 + + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-121

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 NOT BETWEEN + ( - col1 ) AND ( col0 )
----

query II rowsort
SELECT DISTINCT + 6 * - 5 + + 54 + - 74, col0 FROM tab0 AS cor0
----
-50
15
-50
87
-50
97

query I rowsort
SELECT DISTINCT col0 * - col1 + - 77 AS col1 FROM tab0 AS cor0
----
-1292
-174
-1904

query I rowsort
SELECT DISTINCT col2 * 74 FROM tab2
----
1702
2960
4292

onlyif mysql # aggregate syntax: 
query I rowsort label-7625
SELECT + + COUNT( * ) FROM tab0 WHERE NULL IN ( + col0 / + col2, - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-7625
SELECT + + COUNT ( * ) FROM tab0 WHERE NULL IN ( + col0 / + col2, - col0 )
----
0

query I rowsort
SELECT ALL + col2 + - 91 - - 91 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7627
SELECT DISTINCT ( - MIN( - 68 ) ) - - COUNT( * ) FROM tab2
----
71

skipif mysql # not compatible
query I rowsort label-7627
SELECT DISTINCT ( - MIN ( - 68 ) ) - - COUNT ( * ) FROM tab2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7628
SELECT ALL 35 - - COUNT( * ) + - 17 AS col0 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-7628
SELECT ALL 35 - - COUNT ( * ) + - 17 AS col0 FROM tab2
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-7629
SELECT col2 DIV + + 36 - - col2 * 80 FROM tab1
----
4721
5441
7682

skipif mysql # not compatible
query I rowsort label-7629
SELECT col2 / + + 36 - - col2 * 80 FROM tab1
----
4721
5441
7682

query I rowsort
SELECT ALL + col0 - + + col1 AS col0 FROM tab2 cor0
----
-13
-5
8

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 59 + + - 88 <> NULL
----

query I rowsort
SELECT col0 + 60 FROM tab0 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7633
SELECT DISTINCT + 28 * + ( - COUNT( * ) ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-252

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7633
SELECT DISTINCT + 28 * + ( - COUNT ( * ) ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-252

query I rowsort
SELECT DISTINCT + + 30 * + col1 AS col0 FROM tab1 AS cor0
----
1410
150
420

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7635
SELECT DISTINCT 74 DIV COUNT( * ) AS col1 FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-7635
SELECT DISTINCT 74 / COUNT ( * ) AS col1 FROM tab0 AS cor0
----
24

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 + + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7637
SELECT DISTINCT MIN( + - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7637
SELECT DISTINCT MIN ( + - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + + 84 AS col1 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
84
84
84

query II rowsort
SELECT - + 41, col2 * - + 29 AS col1 FROM tab2 AS cor0
----
-41
-1160
-41
-1682
-41
-667

onlyif mysql # aggregate syntax: 
query I rowsort label-7640
SELECT + MIN( ALL + col1 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7640
SELECT + MIN ( ALL + col1 ) AS col0 FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7641
SELECT + ( col2 ) * + - CAST( NULL AS SIGNED ) + - - col1 * + + 91 * 92 * col2, ( - + col1 ) col1 FROM tab1
----
NULL
-14
NULL
-47
NULL
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7641
SELECT + ( col2 ) * + - CAST ( NULL AS INTEGER ) + - - col1 * + + 91 * 92 * col2, ( - + col1 ) col1 FROM tab1
----
NULL
-14
NULL
-47
NULL
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7642
SELECT DISTINCT SUM( DISTINCT - + 64 ) + + COUNT( DISTINCT 0 ) - - CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-7642
SELECT DISTINCT SUM ( DISTINCT - + 64 ) + + COUNT ( DISTINCT 0 ) - - CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7643
SELECT * FROM tab0 WHERE NOT + + col2 NOT BETWEEN - col1 AND col1 + - CAST( + - 5 AS SIGNED ) * - 62 * - col2 * - + col0
----

skipif mysql # not compatible
query III rowsort label-7643
SELECT * FROM tab0 WHERE NOT + + col2 NOT BETWEEN - col1 AND col1 + - CAST ( + - 5 AS INTEGER ) * - 62 * - col2 * - + col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN + 81 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7645
SELECT + + COUNT( + 94 ), - COUNT( * ) AS col2 FROM tab1 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-7645
SELECT + + COUNT ( + 94 ), - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7646
SELECT MIN( ALL - 63 ) FROM tab2
----
-63

skipif mysql # not compatible
query I rowsort label-7646
SELECT MIN ( ALL - 63 ) FROM tab2
----
-63

query I rowsort
SELECT ALL + - ( + 2 ) * + col0 FROM tab1 cor0
----
-102
-170
-182

query I rowsort
SELECT + - col0 - - + ( - col1 ) FROM tab0 AS cor0
----
-108
-96
-98

query I rowsort
SELECT DISTINCT + 79 * - + col0 FROM tab2 AS cor0
----
-3634
-5056
-5925

query I rowsort
SELECT - 6 + - ( 80 ) * + 78 FROM tab0 AS cor0
----
-6246
-6246
-6246

query I rowsort
SELECT - 45 * - 90 * + 71 + col1 FROM tab2 AS cor0
----
287601
287617
287627

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT + - COUNT( * ) + - MAX( ALL - col2 ) FROM tab1 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-7652
SELECT + - COUNT ( * ) + - MAX ( ALL - col2 ) FROM tab1 AS cor0
----
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 96 col0 FROM tab1 AS cor0
----
96

query I rowsort
SELECT - col2 AS col2 FROM tab0 WHERE ( col1 IS NULL )
----

query I rowsort
SELECT + 24 + - col2 + - + ( col0 ) FROM tab1
----
-120
-123
-135

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 4 + + ( - - 36 ) col1 FROM tab1
----
32

query I rowsort
SELECT DISTINCT ( - - 3 ) + + + col2 AS col2 FROM tab0
----
102
13
50

query I rowsort
SELECT ALL + 36 + col2 + - col1 * col0 FROM tab0
----
-1132
-1781
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7659
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - col0 * - col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7659
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - col0 * - col1 FROM tab2
----
NULL

query II rowsort
SELECT DISTINCT 15 AS col2, 97 AS col2 FROM tab1 AS cor0
----
15
97

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 49 + + + 11 * + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - 61 AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-7663
SELECT + col2 DIV ( + 3 ) * col2 * col0 DIV + col2 AS col0 FROM tab2
----
1425
322
832

skipif mysql # not compatible
query I rowsort label-7663
SELECT + col2 / ( + 3 ) * col2 * col0 / + col2 AS col0 FROM tab2
----
1425
322
832

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7664
SELECT DISTINCT + col2 DIV - CAST( - col0 AS SIGNED ) FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-7664
SELECT DISTINCT + col2 / - CAST ( - col0 AS INTEGER ) FROM tab1
----
0
1

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col2 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7666
SELECT + COUNT( - - 23 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7666
SELECT + COUNT ( - - 23 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7667
SELECT DISTINCT 36 + COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7667
SELECT DISTINCT 36 + COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7668
SELECT col2, - col2 * + + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) * - - col0 * + col2 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-7668
SELECT col2, - col2 * + + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) * - - col0 * + col2 FROM tab1
----
59
NULL
68
NULL
96
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7669
SELECT DISTINCT + CAST( - col1 AS SIGNED ) DIV + - col1 AS col0, col1 + - 34 AS col1 FROM tab0
----
1
-13
1
-33
1
47

skipif mysql # not compatible
query II rowsort label-7669
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) / + - col1 AS col0, col1 + - 34 AS col1 FROM tab0
----
1
-13
1
-33
1
47

onlyif mysql # aggregate syntax: 
query II rowsort label-7670
SELECT + COUNT( * ) AS col0, + 55 FROM tab0
----
3
55

skipif mysql # not compatible
query II rowsort label-7670
SELECT + COUNT ( * ) AS col0, + 55 FROM tab0
----
3
55

onlyif mysql # DIV for integer division: 
query II rowsort label-7671
SELECT DISTINCT ( col0 ) DIV - col2 AS col2, + 54 FROM tab0
----
-8
54
0
54

skipif mysql # not compatible
query II rowsort label-7671
SELECT DISTINCT ( col0 ) / - col2 AS col2, + 54 FROM tab0
----
-8
54
0
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7672
SELECT ALL CAST( - 71 AS SIGNED ) AS col0 FROM tab2
----
-71
-71
-71

skipif mysql # not compatible
query I rowsort label-7672
SELECT ALL CAST ( - 71 AS INTEGER ) AS col0 FROM tab2
----
-71
-71
-71

query II rowsort
SELECT DISTINCT - col2 + - + 19 * + col0, col2 - - - col0 AS col1 FROM tab2
----
-1256
-24
-1483
-17
-897
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 97 col0 FROM tab1
----
97

query II rowsort
SELECT 19 AS col1, - 81 * - - col0 FROM tab0
----
19
-1215
19
-7047
19
-7857

query II rowsort
SELECT DISTINCT 99 AS col1, ( + + 27 ) AS col2 FROM tab0 AS cor0
----
99
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7677
SELECT DISTINCT - - COUNT( DISTINCT + - col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7677
SELECT DISTINCT - - COUNT ( DISTINCT + - col0 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7678
SELECT ALL CAST( NULL AS SIGNED ) + + + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7678
SELECT ALL CAST ( NULL AS INTEGER ) + + + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7679
SELECT - ( - COUNT( * ) ) AS col2, + COUNT( DISTINCT 27 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9
1

skipif mysql # not compatible
query II rowsort label-7679
SELECT - ( - COUNT ( * ) ) AS col2, + COUNT ( DISTINCT 27 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 63 * - - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7681
SELECT - COUNT( + - 68 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7681
SELECT - COUNT ( + - 68 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL - + 61 AS col0 FROM tab1 AS cor0
----
-61
-61
-61

query I rowsort
SELECT - col1 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 AS col2, col1 col1 FROM tab2
----
-23
51
-40
77
-58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7685
SELECT ALL + 90 - - MAX( + col1 ) FROM tab1 WHERE NOT NULL IS NULL AND NULL NOT BETWEEN - ( - + col1 ) AND + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7685
SELECT ALL + 90 - - MAX ( + col1 ) FROM tab1 WHERE NOT NULL IS NULL AND NULL NOT BETWEEN - ( - + col1 ) AND + col1
----
NULL

query I rowsort
SELECT ALL - 88 + - - col0 FROM tab0
----
-1
-73
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7687
SELECT 14 - COUNT( * ) FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-7687
SELECT 14 - COUNT ( * ) FROM tab1
----
11

query I rowsort
SELECT - col0 - + col2 + 47 FROM tab2
----
-22
-57
-86

query I rowsort
SELECT ALL - 44 * - + col0 AS col1 FROM tab0
----
3828
4268
660

query I rowsort
SELECT DISTINCT 28 * col0 FROM tab1
----
1428
2380
2548

query I rowsort
SELECT DISTINCT - col1 * + - ( + 1 ) FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7692
SELECT DISTINCT MAX( ALL 30 ) * + 64 FROM tab1 cor0
----
1920

skipif mysql # not compatible
query I rowsort label-7692
SELECT DISTINCT MAX ( ALL 30 ) * + 64 FROM tab1 cor0
----
1920

query I rowsort
SELECT - col2 * + - 65 FROM tab1 AS cor0
----
3835
4420
6240

query I rowsort
SELECT DISTINCT + col0 * - - col1 AS col2 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # DIV for integer division: 
query I rowsort label-7695
SELECT - + 93 * col0 DIV - + col2 AS col2 FROM tab0 AS cor0
----
29
809
91

skipif mysql # not compatible
query I rowsort label-7695
SELECT - + 93 * col0 / - + col2 AS col2 FROM tab0 AS cor0
----
29
809
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7696
SELECT - - COUNT( * ) * 4 * - COUNT( + col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT col0 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7696
SELECT - - COUNT ( * ) * 4 * - COUNT ( + col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT col0 BETWEEN NULL AND NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7697
SELECT CAST( NULL AS SIGNED ) * + - 23 / - COUNT( * ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7697
SELECT CAST ( NULL AS INTEGER ) * + - 23 / - COUNT ( * ) FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7698
SELECT ALL - 39 * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-7698
SELECT ALL - 39 * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-117

query I rowsort
SELECT DISTINCT col2 + + 7 FROM tab1 cor0
----
103
66
75

query II rowsort
SELECT - - col2, - ( col2 ) AS col2 FROM tab1 AS cor0
----
59
-59
68
-68
96
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7701
SELECT + CAST( + - COUNT( * ) AS SIGNED ) col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7701
SELECT + CAST ( + - COUNT ( * ) AS INTEGER ) col2 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7702
SELECT ALL - CAST( NULL AS SIGNED ) + - col1 AS col2, col2 - + col1 FROM tab2
----
NULL
-28
NULL
-37
NULL
-9

skipif mysql # not compatible
query II rowsort label-7702
SELECT ALL - CAST ( NULL AS INTEGER ) + - col1 AS col2, col2 - + col1 FROM tab2
----
NULL
-28
NULL
-37
NULL
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7703
SELECT 53 + + + CAST( COUNT( * ) AS SIGNED ) col0 FROM tab0
----
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7703
SELECT 53 + + + CAST ( COUNT ( * ) AS INTEGER ) col0 FROM tab0
----
56

query II rowsort
SELECT col2 + + - col0 AS col0, 73 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 > NULL
----

query I rowsort
SELECT ALL col0 * 74 + - - 96 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IS NULL AND NOT col1 + - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 27 + - col1 AS col2 FROM tab1 AS cor0
----
-32
-41
-74

query II rowsort
SELECT DISTINCT + col1 AS col2, col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7710
SELECT CAST( + + col2 AS SIGNED ) + - + col0 FROM tab2 cor0
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-7710
SELECT CAST ( + + col2 AS INTEGER ) + - + col0 FROM tab2 cor0
----
-17
-23
-24

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 * 25 * - col1 * - 13 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 + + col0 + + - col2 AS col0 FROM tab0 cor0
----
15
87
97

query I rowsort
SELECT 66 * ( + 60 ) + + 38 AS col0 FROM tab1 AS cor0
----
3998
3998
3998

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7714
SELECT col1 * col0 AS col0, - 82 * CAST( + col2 AS SIGNED ) + - col1 + + col2 AS col2 FROM tab2
----
2346
-1914
4928
-3317
5025
-4765

skipif mysql # not compatible
query II rowsort label-7714
SELECT col1 * col0 AS col0, - 82 * CAST ( + col2 AS INTEGER ) + - col1 + + col2 AS col2 FROM tab2
----
2346
-1914
4928
-3317
5025
-4765

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT col1 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-7715
SELECT COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT col1 <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7716
SELECT ALL + + MIN( ALL 69 ) FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-7716
SELECT ALL + + MIN ( ALL 69 ) FROM tab2 AS cor0
----
69

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 / col1 NOT BETWEEN - 29 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7718
SELECT + 91 DIV 20 AS col1 FROM tab2
----
4
4
4

skipif mysql # not compatible
query I rowsort label-7718
SELECT + 91 / 20 AS col1 FROM tab2
----
4
4
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7719
SELECT CAST( NULL AS SIGNED ) * - COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7719
SELECT CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL + 0 * - + col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col1 + col2 * col1 * - col0 FROM tab2 AS cor0
----
-197043
-291383
-53907

onlyif mysql # aggregate syntax: 
query I rowsort label-7722
SELECT ALL + 11 * + COUNT( * ) + MAX( ALL + - 82 ) AS col1 FROM tab0 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-7722
SELECT ALL + 11 * + COUNT ( * ) + MAX ( ALL + - 82 ) AS col1 FROM tab0 AS cor0
----
-49

query I rowsort
SELECT DISTINCT - col0 - col0 + + col0 * col1 * + col2 / ( col0 ) AS col1 FROM tab2 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7724
SELECT ALL + CAST( NULL AS DECIMAL ) * + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7724
SELECT ALL + CAST ( NULL AS REAL ) * + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col2, + col2 + col0 FROM tab0
----
10
97
47
62
99
196

query I rowsort
SELECT ALL 29 + + col2 - + + col1 AS col1 FROM tab1
----
111
50
83

query II rowsort
SELECT col1 AS col1, col2 AS col1 FROM tab2
----
51
23
67
58
77
40

query I rowsort
SELECT col0 * + ( - 96 ) FROM tab2
----
-4416
-6144
-7200

query III rowsort
SELECT * FROM tab1 WHERE + + ( + + 84 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - 81 AS col2, + col0 AS col2 FROM tab1
----
-81
51
-81
85
-81
91

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( - 82 * col0 * + - 0 + col0 < NULL )
----

query I rowsort
SELECT 50 + - col2 * - 23 * col1 * - col1 AS col1 FROM tab0
----
-101380
-2227
-7092391

query I rowsort
SELECT + col2 + col0 + 70 AS col0 FROM tab1
----
214
217
229

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col1 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <= col2 * - + 23
----

query I rowsort
SELECT DISTINCT + col0 + - 24 FROM tab1
----
27
61
67

query I rowsort
SELECT + col0 * - + 63 AS col2 FROM tab2
----
-2898
-4032
-4725

query I rowsort
SELECT ALL + col2 - - - 1 AS col0 FROM tab1 AS cor0
----
58
67
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7739
SELECT DISTINCT col2 - + CAST( NULL AS SIGNED ) + + col2 col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7739
SELECT DISTINCT col2 - + CAST ( NULL AS INTEGER ) + + col2 col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 * - 76 * 3 AS col2 FROM tab0 AS cor0
----
19836
22116
3420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7741
SELECT DISTINCT + + COUNT( * ) * + CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7741
SELECT DISTINCT + + COUNT ( * ) * + CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7742
SELECT ( - COUNT( * ) ) col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7742
SELECT ( - COUNT ( * ) ) col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - 94 * + 50 AS col0 FROM tab2
----
-4700
-4700
-4700

onlyif mysql # aggregate syntax: 
query II rowsort label-7744
SELECT ALL - COUNT( * ), 28 AS col1 FROM tab2
----
-3
28

skipif mysql # not compatible
query II rowsort label-7744
SELECT ALL - COUNT ( * ), 28 AS col1 FROM tab2
----
-3
28

query II rowsort
SELECT + col0 AS col2, 46 * - col1 FROM tab2
----
46
-2346
64
-3542
75
-3082

onlyif mysql # aggregate syntax: 
query I rowsort label-7746
SELECT ( COUNT( * ) ) * - + 26 FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-7746
SELECT ( COUNT ( * ) ) * - + 26 FROM tab2
----
-78

query I rowsort
SELECT DISTINCT ( ( + 82 ) ) FROM tab0
----
82

query I rowsort
SELECT + ( - + 5 ) FROM tab2 cor0
----
-5
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7749
SELECT + - COUNT( * ) * + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7749
SELECT + - COUNT ( * ) * + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
9

query II rowsort
SELECT ALL + + 32 * - 24 * 50, + col2 AS col2 FROM tab2 AS cor0
----
-38400
23
-38400
40
-38400
58

query I rowsort
SELECT ( - 0 ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7752
SELECT DISTINCT - ( - col1 ) + - 37 * - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7752
SELECT DISTINCT - ( - col1 ) + - 37 * - CAST ( NULL AS REAL ) FROM tab1
----
NULL

query I rowsort
SELECT ALL col2 + - col1 AS col0 FROM tab0 WHERE NULL NOT BETWEEN col1 * - ( - col2 / col0 ) + + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7754
SELECT ALL + 33 * - COUNT( 40 ) FROM tab1
----
-99

skipif mysql # not compatible
query I rowsort label-7754
SELECT ALL + 33 * - COUNT ( 40 ) FROM tab1
----
-99

query III rowsort
SELECT * FROM tab2 WHERE ( - 96 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT ALL COUNT( * ) AS col2 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7756
SELECT ALL COUNT ( * ) AS col2 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7757
SELECT DISTINCT + 34 FROM tab0 WHERE NOT 27 + + CAST( NULL AS SIGNED ) * - 44 > ( + 14 )
----

skipif mysql # not compatible
query I rowsort label-7757
SELECT DISTINCT + 34 FROM tab0 WHERE NOT 27 + + CAST ( NULL AS INTEGER ) * - 44 > ( + 14 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 + + 9 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * + 7 AS col1 FROM tab2 WHERE 21 IS NOT NULL
----
161
280
406

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7760
SELECT ALL * FROM tab2 WHERE NOT ( col2 ) NOT BETWEEN CAST( NULL AS SIGNED ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-7760
SELECT ALL * FROM tab2 WHERE NOT ( col2 ) NOT BETWEEN CAST ( NULL AS INTEGER ) AND ( NULL )
----

query I rowsort
SELECT - ( 70 ) * - 99 FROM tab0
----
6930
6930
6930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7762
SELECT ALL - CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7762
SELECT ALL - CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7763
SELECT - 48 + CAST( NULL AS SIGNED ) * - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7763
SELECT - 48 + CAST ( NULL AS INTEGER ) * - col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 82 + + 97 AS col1 FROM tab1
----
15
15
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7765
SELECT + COUNT( + 87 ) * 7 AS col0 FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-7765
SELECT + COUNT ( + 87 ) * 7 AS col0 FROM tab1
----
21

query I rowsort
SELECT ALL + col1 - + col1 * col1 AS col1 FROM tab2
----
-2550
-4422
-5852

query I rowsort
SELECT + ( + col0 ) * + 56 FROM tab2
----
2576
3584
4200

query III rowsort
SELECT * FROM tab1 WHERE - 15 * 69 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7769
SELECT * FROM tab1 WHERE NOT - col1 / + col0 NOT BETWEEN ( + col0 ) * 16 AND ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7769
SELECT * FROM tab1 WHERE NOT - col1 / + col0 NOT BETWEEN ( + col0 ) * 16 AND ( - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7770
SELECT CAST( NULL AS SIGNED ) - 31 AS col0 FROM tab2 WHERE col1 + ( + 18 ) / col0 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7770
SELECT CAST ( NULL AS INTEGER ) - 31 AS col0 FROM tab2 WHERE col1 + ( + 18 ) / col0 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 17 * + col0 FROM tab0
----
1479
1649
255

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 64 NOT IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 84 * col2 + - col2 FROM tab1
----
4897
5644
7968

query I rowsort
SELECT 50 * 70 FROM tab0
----
3500
3500
3500

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col2 IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7776
SELECT ALL COUNT( * ) * ( 20 ) FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-7776
SELECT ALL COUNT ( * ) * ( 20 ) FROM tab1 AS cor0
----
60

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( 0 / + 39 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7778
SELECT DISTINCT + 37 * ( + COUNT( + 75 ) * COUNT( ALL 79 ) ) AS col2 FROM tab0 AS cor0
----
333

skipif mysql # not compatible
query I rowsort label-7778
SELECT DISTINCT + 37 * ( + COUNT ( + 75 ) * COUNT ( ALL 79 ) ) AS col2 FROM tab0 AS cor0
----
333

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7779
SELECT ALL 41 DIV COUNT( * ) AS col1 FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-7779
SELECT ALL 41 / COUNT ( * ) AS col1 FROM tab2 AS cor0
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7780
SELECT DISTINCT 26 DIV COUNT( * ) FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-7780
SELECT DISTINCT 26 / COUNT ( * ) FROM tab2 AS cor0
----
8

query I rowsort
SELECT DISTINCT 91 * 25 FROM tab1 WHERE NOT ( col1 ) BETWEEN NULL AND ( + 21 ) * col1
----

query I rowsort
SELECT - 88 - + ( - col0 + - col0 ) FROM tab0
----
-58
106
86

query I rowsort
SELECT 35 + + col1 * + ( + 66 ) AS col2 FROM tab2 WHERE col0 IS NOT NULL
----
3401
4457
5117

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT DISTINCT + COUNT( * ) + + 40 * + 66 AS col0 FROM tab1
----
2643

skipif mysql # not compatible
query I rowsort label-7784
SELECT DISTINCT + COUNT ( * ) + + 40 * + 66 AS col0 FROM tab1
----
2643

query I rowsort
SELECT ALL col1 - ( - col1 ) FROM tab0
----
162
2
42

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( 42 )
----

query I rowsort
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-7788
SELECT ALL - - col1 DIV - col2 AS col2 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-7788
SELECT ALL - - col1 / - col2 AS col2 FROM tab0 AS cor0
----
-1
-2
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 33 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <= - 20 - 2
----

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
51
85
91

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 22 + + col1 ) = ( + 81 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7793
SELECT - col1 DIV - col0 + + 68 * - col1 FROM tab2 WHERE NOT ( 57 ) IS NULL
----
-3467
-4556
-5235

skipif mysql # not compatible
query I rowsort label-7793
SELECT - col1 / - col0 + + 68 * - col1 FROM tab2 WHERE NOT ( 57 ) IS NULL
----
-3467
-4556
-5235

query I rowsort
SELECT + 12 * - 12 * 33 FROM tab2
----
-4752
-4752
-4752

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= + 35
----

query I rowsort
SELECT + 79 * - 70 AS col1 FROM tab2
----
-5530
-5530
-5530

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 ) - - col0 * + col2 = NULL
----

query I rowsort
SELECT col0 * - col0 + + 84 FROM tab1 WHERE NOT col1 * ( - col2 * 63 ) NOT BETWEEN ( col2 + - col2 ) AND - 95
----

query I rowsort
SELECT - col2 * + + 30 * + 43 AS col2 FROM tab1
----
-123840
-76110
-87720

onlyif mysql # DIV for integer division: 
query I rowsort label-7800
SELECT 31 DIV - - 91 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7800
SELECT 31 / - - 91 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT 30 NOT IN ( 38 * col2 + + 20 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7802
SELECT + - COUNT( * ) * + + COUNT( col2 ) + COUNT( * ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7802
SELECT + - COUNT ( * ) * + + COUNT ( col2 ) + COUNT ( * ) FROM tab0 AS cor0
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 95 col1 FROM tab0 cor0 WHERE NOT 92 < 50
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7804
SELECT * FROM tab2 AS cor0 WHERE NOT ( CAST( - 29 AS SIGNED ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7804
SELECT * FROM tab2 AS cor0 WHERE NOT ( CAST ( - 29 AS INTEGER ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7805
SELECT DISTINCT COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7805
SELECT DISTINCT COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7806
SELECT DISTINCT - ( + CAST( col1 AS SIGNED ) ) AS col0 FROM tab0 cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-7806
SELECT DISTINCT - ( + CAST ( col1 AS INTEGER ) ) AS col0 FROM tab0 cor0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7807
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE + col2 >= ( - col2 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7807
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE + col2 >= ( - col2 )
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7808
SELECT DISTINCT 82 * - - ( CAST( ( 43 ) AS SIGNED ) ) + col1 * 73 FROM tab1 AS cor0
----
3891
4548
6957

skipif mysql # not compatible
query I rowsort label-7808
SELECT DISTINCT 82 * - - ( CAST ( ( 43 ) AS INTEGER ) ) + col1 * 73 FROM tab1 AS cor0
----
3891
4548
6957

onlyif mysql # aggregate syntax: 
query I rowsort label-7809
SELECT + COUNT( * ) * COUNT( * ) AS col2 FROM tab1 cor0 WHERE ( + col1 * 20 ) IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-7809
SELECT + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1 cor0 WHERE ( + col1 * 20 ) IS NOT NULL
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-7810
SELECT - - ( - col1 ) + col1 DIV + 5 AS col2 FROM tab2 cor0
----
-41
-54
-62

skipif mysql # not compatible
query I rowsort label-7810
SELECT - - ( - col1 ) + col1 / + 5 AS col2 FROM tab2 cor0
----
-41
-54
-62

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 17 * - - 60 / col1 IS NULL
----

query I rowsort
SELECT - col2 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL OR NOT - col0 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7813
SELECT - CAST( col1 AS SIGNED ) * + 67 + + 40 FROM tab1 AS cor0
----
-295
-3109
-898

skipif mysql # not compatible
query I rowsort label-7813
SELECT - CAST ( col1 AS INTEGER ) * + 67 + + 40 FROM tab1 AS cor0
----
-295
-3109
-898

query I rowsort
SELECT - col2 * + 65 - 37 AS col1 FROM tab0 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7815
SELECT ALL + col0 * - + col0 DIV - col0 + - col1 col1 FROM tab1 AS cor0
----
37
44
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7815
SELECT ALL + col0 * - + col0 / - col0 + - col1 col1 FROM tab1 AS cor0
----
37
44
80

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7816
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 >= col0 / CAST( 39 + - col1 * + col2 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-7816
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 >= col0 / CAST ( 39 + - col1 * + col2 AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7817
SELECT - ( 94 ) + + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
-91

skipif mysql # not compatible
query I rowsort label-7817
SELECT - ( 94 ) + + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
-91

query III rowsort
SELECT * FROM tab1 cor0 WHERE col1 + + col1 > - 70
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7819
SELECT ALL COUNT( * ) * COUNT( * ) + + 39 + MAX( DISTINCT - col2 ) * - 63 * - COUNT( * ) AS col2 FROM tab0
----
-1842

skipif mysql # not compatible
query I rowsort label-7819
SELECT ALL COUNT ( * ) * COUNT ( * ) + + 39 + MAX ( DISTINCT - col2 ) * - 63 * - COUNT ( * ) AS col2 FROM tab0
----
-1842

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7820
SELECT DISTINCT + 3 * + - CAST( + SUM( DISTINCT + 12 ) AS SIGNED ) + - 87 FROM tab0
----
-123

skipif mysql # not compatible
query I rowsort label-7820
SELECT DISTINCT + 3 * + - CAST ( + SUM ( DISTINCT + 12 ) AS INTEGER ) + - 87 FROM tab0
----
-123

onlyif mysql # DIV for integer division: 
query I rowsort label-7821
SELECT col1 DIV 33 * + col1 FROM tab2
----
134
154
51

skipif mysql # not compatible
query I rowsort label-7821
SELECT col1 / 33 * + col1 FROM tab2
----
134
154
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7822
SELECT DISTINCT ( + COUNT( - col0 ) ) + - - 63 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-7822
SELECT DISTINCT ( + COUNT ( - col0 ) ) + - - 63 FROM tab1
----
66

query I rowsort
SELECT ALL - col2 - 94 + - - col2 AS col2 FROM tab0
----
-94
-94
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7824
SELECT ALL - 11 - + COUNT( * ) + - 97 AS col1 FROM tab0 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-7824
SELECT ALL - 11 - + COUNT ( * ) + - 97 AS col1 FROM tab0 AS cor0
----
-111

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 + col0 + + + col0 > NULL
----

query I rowsort
SELECT DISTINCT + + ( + + col1 ) AS col2 FROM tab0 cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7827
SELECT - COUNT( DISTINCT + col2 ) AS col1 FROM tab2 cor0 WHERE 15 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7827
SELECT - COUNT ( DISTINCT + col2 ) AS col1 FROM tab2 cor0 WHERE 15 IS NULL
----
0

query I rowsort
SELECT ALL + col0 * + 6 AS col0 FROM tab0
----
522
582
90

query I rowsort
SELECT DISTINCT - 85 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7830
SELECT - SUM( + 60 ) FROM tab0 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-7830
SELECT - SUM ( + 60 ) FROM tab0 AS cor0
----
-180

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 * - 56 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 98 * + + col2 * + col0 - + 38 AS col2 FROM tab0 AS cor0
----
69052
85222
941056

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7833
SELECT * FROM tab2 AS cor0 WHERE + col0 + + col2 NOT IN ( 6 + CAST( NULL AS SIGNED ) ) AND - col0 <> ( NULL )
----

skipif mysql # not compatible
query III rowsort label-7833
SELECT * FROM tab2 AS cor0 WHERE + col0 + + col2 NOT IN ( 6 + CAST ( NULL AS INTEGER ) ) AND - col0 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7834
SELECT + - 25, SUM( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
-25
-223

skipif mysql # not compatible
query II rowsort label-7834
SELECT + - 25, SUM ( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
-25
-223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7835
SELECT - + col2 * + + col0 / - + 90 * CAST( NULL AS SIGNED ) / - + col2 * + 22 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7835
SELECT - + col2 * + + col0 / - + 90 * CAST ( NULL AS INTEGER ) / - + col2 * + 22 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + - col2 col1 FROM tab0 AS cor0
----
705
870
9603

query II rowsort
SELECT DISTINCT + 62 AS col2, 70 FROM tab0
----
62
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7838
SELECT + MAX( DISTINCT + col2 ) DIV - - 65 AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7838
SELECT + MAX ( DISTINCT + col2 ) / - - 65 AS col1 FROM tab1
----
1

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT ( ( NOT - col2 IS NULL ) )
----

query I rowsort
SELECT ALL ( - - 0 ) * - col0 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - 51 col1 FROM tab2 AS cor0
----
0
16
26

query I rowsort
SELECT DISTINCT - col2 + + - 78 - 24 * + - 84 + + 32 AS col1 FROM tab1 AS cor0
----
1874
1902
1911

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col0 + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( + - ( + 36 ) ) AS col2 FROM tab1
----
-36
-36
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT DISTINCT COUNT( * ) + 38 AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= 93 - + 94
----
38

skipif mysql # not compatible
query I rowsort label-7845
SELECT DISTINCT COUNT ( * ) + 38 AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= 93 - + 94
----
38

query I rowsort
SELECT DISTINCT + + ( + - ( - ( - ( - ( + col0 ) ) ) ) ) AS col2 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT + + 59 AS col1 FROM tab1 AS cor0
----
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 + + col1 col2 FROM tab0 AS cor0
----
111
195
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7849
SELECT + - col2 * - 87 * col1 * + + CAST( + col2 AS SIGNED ) + + 22 FROM tab1 cor0
----
11225110
1514257
18907558

skipif mysql # not compatible
query I rowsort label-7849
SELECT + - col2 * - 87 * col1 * + + CAST ( + col2 AS INTEGER ) + + 22 FROM tab1 cor0
----
11225110
1514257
18907558

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 54 / - + 21 ) > NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col2 + - - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7852
SELECT ALL * FROM tab0 cor0 WHERE NOT CAST( 7 AS SIGNED ) NOT IN ( col0 )
----

skipif mysql # not compatible
query III rowsort label-7852
SELECT ALL * FROM tab0 cor0 WHERE NOT CAST ( 7 AS INTEGER ) NOT IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7853
SELECT + CAST( NULL AS SIGNED ) * col2 + + col1 + - 99 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7853
SELECT + CAST ( NULL AS INTEGER ) * col2 + + col1 + - 99 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7854
SELECT ALL + COUNT( * ) + - 6 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7854
SELECT ALL + COUNT ( * ) + - 6 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT - 70 + - 48 AS col0 FROM tab0
----
-118

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7856
SELECT * FROM tab1 WHERE + CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) < CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7856
SELECT * FROM tab1 WHERE + CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) < CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, col2 + - + 23 FROM tab2
----
51
0
67
35
77
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col2, 5 FROM tab2
----
46
5
64
5
75
5

query I rowsort
SELECT DISTINCT 60 - - col0 FROM tab1
----
111
145
151

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 85 <= NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 31 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7862
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 / - CAST( NULL AS SIGNED ) NOT BETWEEN col0 AND + + col1 - + col0 * - + col2 / + col1
----

skipif mysql # not compatible
query III rowsort label-7862
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 / - CAST ( NULL AS INTEGER ) NOT BETWEEN col0 AND + + col1 - + col0 * - + col2 / + col1
----

query II rowsort
SELECT ALL - 81 AS col2, 27 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-81
27
-81
27
-81
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT + MAX( - 44 ) FROM tab0 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-7864
SELECT + MAX ( - 44 ) FROM tab0 AS cor0
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7865
SELECT ALL col1 * + col2 AS col0 FROM tab0 cor0 WHERE CAST( NULL AS SIGNED ) - + + CAST( + col1 AS SIGNED ) * + col1 * + 31 + + - ( + col2 ) + + col2 NOT BETWEEN col1 AND + 13
----

skipif mysql # not compatible
query I rowsort label-7865
SELECT ALL col1 * + col2 AS col0 FROM tab0 cor0 WHERE CAST ( NULL AS INTEGER ) - + + CAST ( + col1 AS INTEGER ) * + col1 * + 31 + + - ( + col2 ) + + col2 NOT BETWEEN col1 AND + 13
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col0 FROM tab1 WHERE - col0 * + - 60 NOT IN ( - col0 )
----
14
47
5

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < - 31
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7868
SELECT ALL - COUNT( * ) * + 91 AS col2 FROM tab2
----
-273

skipif mysql # not compatible
query I rowsort label-7868
SELECT ALL - COUNT ( * ) * + 91 AS col2 FROM tab2
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT 57 * ( + COUNT( * ) ) FROM tab2
----
171

skipif mysql # not compatible
query I rowsort label-7869
SELECT 57 * ( + COUNT ( * ) ) FROM tab2
----
171

query I rowsort
SELECT 75 * + ( + 93 ) AS col2 FROM tab0
----
6975
6975
6975

onlyif mysql # aggregate syntax: 
query I rowsort label-7871
SELECT DISTINCT - MAX( ALL - + col1 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7871
SELECT DISTINCT - MAX ( ALL - + col1 ) AS col0 FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7872
SELECT DISTINCT col0 AS col2, - col1 + CAST( NULL AS SIGNED ) + + col2 * + 42 AS col1 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-7872
SELECT DISTINCT col0 AS col2, - col1 + CAST ( NULL AS INTEGER ) + + col2 * + 42 AS col1 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7873
SELECT ALL col1 * ( CAST( + col1 AS SIGNED ) ) + - col0 AS col2 FROM tab2 AS cor0
----
2555
4414
5865

skipif mysql # not compatible
query I rowsort label-7873
SELECT ALL col1 * ( CAST ( + col1 AS INTEGER ) ) + - col0 AS col2 FROM tab2 AS cor0
----
2555
4414
5865

query II rowsort
SELECT + - col0 AS col0, - col2 FROM tab0 cor0
----
-15
-47
-87
-10
-97
-99

query II rowsort
SELECT ALL - - col0 AS col0, - 73 FROM tab0 AS cor0
----
15
-73
87
-73
97
-73

query I rowsort
SELECT + ( - + 86 ) FROM tab0 AS cor0
----
-86
-86
-86

query I rowsort
SELECT ALL + - ( + + col0 ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT ALL + - col1 * + col2 + 6 AS col2 FROM tab0 AS cor0
----
-204
-3801
-93

query I rowsort
SELECT DISTINCT - 54 * 33 + + col0 AS col2 FROM tab0 AS cor0
----
-1685
-1695
-1767

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 IN ( - 87 * + col2 - - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 43 + - 42 col1, + 46 FROM tab0
----
1
46
1
46
1
46

query I rowsort
SELECT 48 - + 41 * + col0 FROM tab2
----
-1838
-2576
-3027

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7883
SELECT MIN( - CAST( col0 AS SIGNED ) ) - + COUNT( * ) AS col1 FROM tab0
----
-100

skipif mysql # not compatible
query I rowsort label-7883
SELECT MIN ( - CAST ( col0 AS INTEGER ) ) - + COUNT ( * ) AS col1 FROM tab0
----
-100

query I rowsort
SELECT col0 * - col2 * + 86 - + col2 AS col0 FROM tab1
----
-421152
-431349
-532236

query I rowsort
SELECT col0 - col0 * - + 66 AS col2 FROM tab2
----
3082
4288
5025

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7886
SELECT * FROM tab0 WHERE NULL IN ( - col1, + col2 * CAST( - col1 AS SIGNED ) + 8 )
----

skipif mysql # not compatible
query III rowsort label-7886
SELECT * FROM tab0 WHERE NULL IN ( - col1, + col2 * CAST ( - col1 AS INTEGER ) + 8 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 26 col2 FROM tab0 WHERE NULL IS NULL
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7888
SELECT 53 + + MAX( - 23 ) AS col2 FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-7888
SELECT 53 + + MAX ( - 23 ) AS col2 FROM tab1
----
30

query I rowsort
SELECT - col2 FROM tab2 WHERE col2 + - col2 IS NOT NULL
----
-23
-40
-58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col2 ) IS NOT NULL OR 60 >= col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 < - + col2 * + - col0 * - - ( - + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7892
SELECT - 72 + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL > - col0
----
-72

skipif mysql # not compatible
query I rowsort label-7892
SELECT - 72 + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL > - col0
----
-72

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + - col1 ) + col2 * + - 78 * + - col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7894
SELECT DISTINCT - col1 AS col1, col1 DIV col0 FROM tab2 AS cor0
----
-51
1
-67
0
-77
1

skipif mysql # not compatible
query II rowsort label-7894
SELECT DISTINCT - col1 AS col1, col1 / col0 FROM tab2 AS cor0
----
-51
1
-67
0
-77
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT ALL MAX( ALL - col1 ) AS col2 FROM tab1 AS cor0 WHERE ( + col1 ) BETWEEN + col0 + + + col2 AND - + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-7895
SELECT ALL MAX ( ALL - col1 ) AS col2 FROM tab1 AS cor0 WHERE ( + col1 ) BETWEEN + col0 + + + col2 AND - + 70
----
NULL

query I rowsort
SELECT + - col2 * 60 AS col1 FROM tab1 AS cor0
----
-3540
-4080
-5760

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 25 NOT IN ( 60, col2 + col1, - col0 - col2, 59, + col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7898
SELECT + - 34, - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-34
-3

skipif mysql # not compatible
query II rowsort label-7898
SELECT + - 34, - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-34
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT - 59 NOT BETWEEN - col1 * - - col0 + - 52 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 9 IN ( - 80, + col2 + ( - 78 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + 10 col0 FROM tab0
----
11
31
91

query I rowsort
SELECT ALL + col0 * - 45 AS col2 FROM tab1
----
-2295
-3825
-4095

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7903
SELECT ALL - col1 AS col0 FROM tab1 WHERE NOT NULL BETWEEN - - 50 AND + + col1 * - col0 * + col1 + + col0 - - col2 + + - 44 - - 52 / + CAST( - ( col1 ) AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7903
SELECT ALL - col1 AS col0 FROM tab1 WHERE NOT NULL BETWEEN - - 50 AND + + col1 * - col0 * + col1 + + col0 - - col2 + + - 44 - - 52 / + CAST ( - ( col1 ) AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7904
SELECT - COUNT( * ) + SUM( + col0 ) FROM tab1 cor0
----
224

skipif mysql # not compatible
query I rowsort label-7904
SELECT - COUNT ( * ) + SUM ( + col0 ) FROM tab1 cor0
----
224

query I rowsort
SELECT ALL - + col1 * - 12 FROM tab2 AS cor0
----
612
804
924

onlyif mysql # aggregate syntax: 
query I rowsort label-7906
SELECT 50 + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-7906
SELECT 50 + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
53

query I rowsort
SELECT - + col0 * + + col2 AS col0 FROM tab0 AS cor0 WHERE 67 > 14 * - col0 + col1
----
-705
-870
-9603

query I rowsort
SELECT ALL + 40 * + 62 FROM tab2 AS cor0
----
2480
2480
2480

onlyif mysql # DIV for integer division: 
query I rowsort label-7909
SELECT ALL - col0 DIV + 51 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7909
SELECT ALL - col0 / + 51 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

query III rowsort
SELECT * FROM tab1 WHERE + + col0 / + + 53 * - col2 IS NULL
----

query I rowsort
SELECT - 41 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

onlyif mysql # DIV for integer division: 
query I rowsort label-7912
SELECT DISTINCT - col0 * - col1 - col0 DIV - - col1 AS col1 FROM tab2
----
2346
4928
5024

skipif mysql # not compatible
query I rowsort label-7912
SELECT DISTINCT - col0 * - col1 - col0 / - - col1 AS col1 FROM tab2
----
2346
4928
5024

onlyif mysql # aggregate syntax: 
query I rowsort label-7913
SELECT DISTINCT + COUNT( * ) * - - 2 AS col1 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7913
SELECT DISTINCT + COUNT ( * ) * - - 2 AS col1 FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT COUNT( * ) + + 16 FROM tab2 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-7914
SELECT COUNT ( * ) + + 16 FROM tab2 AS cor0
----
19

query I rowsort
SELECT + - col0 + + 35 - + + col2 + - col1 FROM tab0 cor0
----
-108
-162
-83

query I rowsort
SELECT - - ( col1 ) + + col0 + + col2 * col1 * - 89 + col0 FROM tab1 AS cor0
----
-119500
-26080
-284215

onlyif mysql # DIV for integer division: 
query I rowsort label-7917
SELECT - col0 + - + col2 + col1 DIV + ( + col2 ) AS col0 FROM tab1 AS cor0
----
-144
-147
-159

skipif mysql # not compatible
query I rowsort label-7917
SELECT - col0 + - + col2 + col1 / + ( + col2 ) AS col0 FROM tab1 AS cor0
----
-144
-147
-159

query I rowsort
SELECT ALL col1 + + col0 + - col0 + + - col2 AS col0 FROM tab0 AS cor0
----
-98
11
34

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 44 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - col2 * + col1 + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 col0 FROM tab2 WHERE + col0 / + col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7922
SELECT ALL SUM( + 4 ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-7922
SELECT ALL SUM ( + 4 ) FROM tab2
----
12

query II rowsort
SELECT col0 AS col0, col2 FROM tab1
----
51
96
85
59
91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT ALL ( - MIN( - + col2 ) ) FROM tab1 WHERE - 40 < + 73 * - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7924
SELECT ALL ( - MIN ( - + col2 ) ) FROM tab1 WHERE - 40 < + 73 * - col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7925
SELECT ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 WHERE NOT NULL < ( - 44 / ( col0 ) - + 68 )
----

skipif mysql # not compatible
query I rowsort label-7925
SELECT ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 WHERE NOT NULL < ( - 44 / ( col0 ) - + 68 )
----

query I rowsort
SELECT DISTINCT - 92 * 89 FROM tab1
----
-8188

onlyif mysql # DIV for integer division: 
query I rowsort label-7927
SELECT + col0 DIV - 7 col2 FROM tab2
----
-10
-6
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7927
SELECT + col0 / - 7 col2 FROM tab2
----
-10
-6
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7928
SELECT ALL 53 * + COUNT( - col2 ) AS col1 FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-7928
SELECT ALL 53 * + COUNT ( - col2 ) AS col1 FROM tab0
----
159

query I rowsort
SELECT + 34 AS col0 FROM tab1 cor0
----
34
34
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT + ( + - MAX( col1 ) ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-7930
SELECT + ( + - MAX ( col1 ) ) FROM tab1 AS cor0
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7931
SELECT DISTINCT MAX( + - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7931
SELECT DISTINCT MAX ( + - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN - + 5 AND + - col2
----

query I rowsort
SELECT - 56 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT col2 * 52 >= NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 47 >= + col0
----
15
81
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7936
SELECT + 19 + COUNT( * ) DIV - 67 AS col2 FROM tab2 cor0
----
19

skipif mysql # not compatible
query I rowsort label-7936
SELECT + 19 + COUNT ( * ) / - 67 AS col2 FROM tab2 cor0
----
19

query II rowsort
SELECT col1 + + 7 AS col0, col0 * - 42 AS col0 FROM tab2 AS cor0
----
58
-1932
74
-3150
84
-2688

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( - col1 ) col2, 59 * col2 * 69 AS col1 FROM tab2 AS cor0
----
-51
93633
-67
236118
-77
162840

onlyif mysql # DIV for integer division: 
query I rowsort label-7939
SELECT DISTINCT - col0 DIV + col2 + + 52 AS col0 FROM tab0 AS cor0
----
44
52

skipif mysql # not compatible
query I rowsort label-7939
SELECT DISTINCT - col0 / + col2 + + 52 AS col0 FROM tab0 AS cor0
----
44
52

onlyif mysql # aggregate syntax: 
query II rowsort label-7940
SELECT ALL + COUNT( * ) * + - COUNT( * ) + ( - 70 ), - COUNT( * ) AS col0 FROM tab2
----
-79
-3

skipif mysql # not compatible
query II rowsort label-7940
SELECT ALL + COUNT ( * ) * + - COUNT ( * ) + ( - 70 ), - COUNT ( * ) AS col0 FROM tab2
----
-79
-3

query I rowsort
SELECT + col2 AS col0 FROM tab1 WHERE NOT + col2 + - col1 * - col0 * + - col2 IS NOT NULL
----

query II rowsort
SELECT ALL 46 * + col2 * - col2 AS col2, + 76 + + - col2 AS col1 FROM tab0
----
-101614
29
-450846
-23
-4600
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7943
SELECT + + COUNT( * ) FROM tab1 WHERE 83 <> - col1
----
3

skipif mysql # not compatible
query I rowsort label-7943
SELECT + + COUNT ( * ) FROM tab1 WHERE 83 <> - col1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7944
SELECT CAST( NULL AS SIGNED ) * - col1 + - - col1 AS col2 FROM tab0 cor0 WHERE CAST( col2 AS SIGNED ) * + col1 + - - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7944
SELECT CAST ( NULL AS INTEGER ) * - col1 + - - col1 AS col2 FROM tab0 cor0 WHERE CAST ( col2 AS INTEGER ) * + col1 + - - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7945
SELECT ALL 28 DIV - col2 - col0 + + col1 + + + 53 + + col0 AS col2 FROM tab0 AS cor0
----
134
54
72

skipif mysql # not compatible
query I rowsort label-7945
SELECT ALL 28 / - col2 - col0 + + col1 + + + 53 + + col0 AS col2 FROM tab0 AS cor0
----
134
54
72

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 + - + 7 / 44 + col1 * - col1 + col1 - col2 + - - col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + col2 <= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 40 <> NULL
----

query I rowsort
SELECT DISTINCT + + 43 - col2 FROM tab2 AS cor0
----
-15
20
3

query I rowsort
SELECT DISTINCT - ( + col2 ) - - 26 + + - 58 FROM tab2 AS cor0
----
-55
-72
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7951
SELECT ALL + + col1 - - col0 + CAST( col1 AS SIGNED ) * col1 AS col1 FROM tab1 AS cor0
----
115
2347
261

skipif mysql # not compatible
query I rowsort label-7951
SELECT ALL + + col1 - - col0 + CAST ( col1 AS INTEGER ) * col1 AS col1 FROM tab1 AS cor0
----
115
2347
261

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7952
SELECT + + CAST( COUNT( * ) AS SIGNED ) - COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7952
SELECT + + CAST ( COUNT ( * ) AS INTEGER ) - COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7953
SELECT - MAX( - 71 ) DIV - COUNT( * ) FROM tab0
----
-23

skipif mysql # not compatible
query I rowsort label-7953
SELECT - MAX ( - 71 ) / - COUNT ( * ) FROM tab0
----
-23

query I rowsort
SELECT col2 * + - 74 FROM tab1
----
-4366
-5032
-7104

onlyif mysql # DIV for integer division: 
query I rowsort label-7955
SELECT DISTINCT + col2 DIV + ( + ( + 86 ) ) FROM tab1 WHERE NOT - 83 IS NULL
----
0
1

skipif mysql # not compatible
query I rowsort label-7955
SELECT DISTINCT + col2 / + ( + ( + 86 ) ) FROM tab1 WHERE NOT - 83 IS NULL
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 40 ) col1 FROM tab1
----
40
40
40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7957
SELECT * FROM tab2 WHERE NOT ( - 27 ) NOT BETWEEN + col0 * - CAST( NULL AS SIGNED ) AND - col0
----

skipif mysql # not compatible
query III rowsort label-7957
SELECT * FROM tab2 WHERE NOT ( - 27 ) NOT BETWEEN + col0 * - CAST ( NULL AS INTEGER ) AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7958
SELECT DISTINCT - SUM( + - col2 ) * - + 8 AS col0 FROM tab2
----
-968

skipif mysql # not compatible
query I rowsort label-7958
SELECT DISTINCT - SUM ( + - col2 ) * - + 8 AS col0 FROM tab2
----
-968

query II rowsort
SELECT 99, col1 FROM tab1
----
99
14
99
47
99
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7960
SELECT DISTINCT COUNT( * ) DIV + 97 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7960
SELECT DISTINCT COUNT ( * ) / + 97 AS col1 FROM tab1
----
0

query II rowsort
SELECT DISTINCT + col2, - col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
-23
40
-40
58
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7962
SELECT ALL - CAST( 53 AS SIGNED ) * - - 13 col0 FROM tab2
----
-689
-689
-689

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7962
SELECT ALL - CAST ( 53 AS INTEGER ) * - - 13 col0 FROM tab2
----
-689
-689
-689

query II rowsort
SELECT - col1 AS col1, col1 + + - col2 AS col0 FROM tab2 AS cor0
----
-51
28
-67
9
-77
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7964
SELECT - - AVG ( - 7 ) + - ( + COUNT( * ) ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7964
SELECT - - AVG ( - 7 ) + - ( + COUNT ( * ) ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7965
SELECT + - COUNT( * ) DIV 6 * MIN( + ( ( 69 ) ) ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7965
SELECT + - COUNT ( * ) / 6 * MIN ( + ( ( 69 ) ) ) AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - ( 40 ) FROM tab2 cor0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7967
SELECT ALL + - MAX( + + 75 ) FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-7967
SELECT ALL + - MAX ( + + 75 ) FROM tab1 AS cor0
----
-75

query I rowsort
SELECT ALL 9 * + col0 + - col1 + + 95 AS col0 FROM tab0 AS cor0
----
149
857
967

query II rowsort
SELECT + col1, + col1 + + - 17 FROM tab1 AS cor0
----
14
-3
47
30
5
-12

query I rowsort
SELECT DISTINCT - ( + 8 ) AS col1 FROM tab2 AS cor0
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-7971
SELECT ALL col1 DIV + - col1 + + col2 FROM tab0
----
46
9
98

skipif mysql # not compatible
query I rowsort label-7971
SELECT ALL col1 / + - col1 + + col2 FROM tab0
----
46
9
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + 2 col1 FROM tab0
----
-19
-79
1

query I rowsort
SELECT DISTINCT 57 + - col0 + - 51 * col1 AS col1 FROM tab1
----
-2431
-283
-708

onlyif mysql # aggregate syntax: 
query II rowsort label-7974
SELECT COUNT( * ) + + COUNT( * ) AS col0, + COUNT( * ) FROM tab1
----
6
3

skipif mysql # not compatible
query II rowsort label-7974
SELECT COUNT ( * ) + + COUNT ( * ) AS col0, + COUNT ( * ) FROM tab1
----
6
3

query I rowsort
SELECT ALL col1 + - 80 AS col0 FROM tab0 AS cor0
----
-59
-79
1

query I rowsort
SELECT DISTINCT - - 4 AS col0 FROM tab2 cor0
----
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 79 col1 FROM tab0 AS cor0
----
79
79
79

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * + ( + col2 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7979
SELECT + COUNT( * ) AS col1 FROM tab1 WHERE - col0 NOT BETWEEN NULL AND col0 OR NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7979
SELECT + COUNT ( * ) AS col1 FROM tab1 WHERE - col0 NOT BETWEEN NULL AND col0 OR NOT NULL IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab1 WHERE + col2 < - col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7981
SELECT COUNT( * ), COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
9

skipif mysql # not compatible
query II rowsort label-7981
SELECT COUNT ( * ), COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
9

query I rowsort
SELECT ALL - + col1 + + 20 FROM tab1 AS cor0
----
-27
15
6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 94 - col2 + 95 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7984
SELECT + + COUNT( * ) * - - COUNT( * ) + + 73 FROM tab2 cor0
----
82

skipif mysql # not compatible
query I rowsort label-7984
SELECT + + COUNT ( * ) * - - COUNT ( * ) + + 73 FROM tab2 cor0
----
82

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7985
SELECT ALL - ( + col0 ) * col1 - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7985
SELECT ALL - ( + col0 ) * col1 - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col1 * + ( + col1 ) * - col0 * - col1 FROM tab2 AS cor0
----
22557225
29218112
6101946

query II rowsort
SELECT DISTINCT - 1, col1 AS col0 FROM tab2 AS cor0
----
-1
51
-1
67
-1
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7988
SELECT ALL 69 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-7988
SELECT ALL 69 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
207

onlyif mysql # aggregate syntax: 
query II rowsort label-7989
SELECT DISTINCT - - COUNT( * ) col0, 15 + - ( + + 74 ) AS col1 FROM tab2 AS cor0
----
3
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7989
SELECT DISTINCT - - COUNT ( * ) col0, 15 + - ( + + 74 ) AS col1 FROM tab2 AS cor0
----
3
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7990
SELECT DISTINCT - + CAST( COUNT( * ) AS SIGNED ) col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7990
SELECT DISTINCT - + CAST ( COUNT ( * ) AS INTEGER ) col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + col0 * + 1 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query II rowsort label-7992
SELECT DISTINCT - 17 col2, - SUM( DISTINCT - col1 ) FROM tab2 AS cor0
----
-17
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7992
SELECT DISTINCT - 17 col2, - SUM ( DISTINCT - col1 ) FROM tab2 AS cor0
----
-17
195

onlyif mysql # aggregate syntax: 
query I rowsort label-7993
SELECT - - COUNT( * ) + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col1 >= + col0 + col2
----
0

skipif mysql # not compatible
query I rowsort label-7993
SELECT - - COUNT ( * ) + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col1 >= + col0 + col2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 51 * + col0 col2 FROM tab0
----
4437
4947
765

query I rowsort
SELECT DISTINCT + 30 AS col1 FROM tab0, tab0 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7996
SELECT ALL COUNT( * ) * + COUNT( DISTINCT + + 25 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7996
SELECT ALL COUNT ( * ) * + COUNT ( DISTINCT + + 25 ) AS col0 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7997
SELECT col0 + 14 AS col0 FROM tab1 WHERE NOT 69 * + + ( - + col1 ) <> - CAST( NULL AS SIGNED ) + + 78
----

skipif mysql # not compatible
query I rowsort label-7997
SELECT col0 + 14 AS col0 FROM tab1 WHERE NOT 69 * + + ( - + col1 ) <> - CAST ( NULL AS INTEGER ) + + 78
----

query I rowsort
SELECT DISTINCT ( + 14 ) * - - col0 AS col2 FROM tab1
----
1190
1274
714

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7999
SELECT ALL ( + - COUNT( * ) ) DIV + 35 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7999
SELECT ALL ( + - COUNT ( * ) ) / + 35 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8000
SELECT 88 DIV col1 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8000
SELECT 88 / col1 AS col0 FROM tab2
----
1
1
1

query I rowsort
SELECT ALL 14 * - - col2 AS col1 FROM tab0
----
1386
140
658

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col2 + + - col1 + col1 / + 11 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + ( + - ( - col0 ) ) FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8004
SELECT - + COUNT( - col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8004
SELECT - + COUNT ( - col1 ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = + 50
----

query I rowsort
SELECT DISTINCT col2 + + ( - col1 ) FROM tab0 WHERE + 18 - - 13 >= col2 * + - col2
----
-11
-34
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8007
SELECT ALL - CAST( CAST( + col1 AS SIGNED ) AS SIGNED ) FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-8007
SELECT ALL - CAST ( CAST ( + col1 AS INTEGER ) AS INTEGER ) FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-8008
SELECT ALL COUNT( * ), 20 AS col0 FROM tab0 AS cor0
----
3
20

skipif mysql # not compatible
query II rowsort label-8008
SELECT ALL COUNT ( * ), 20 AS col0 FROM tab0 AS cor0
----
3
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 67 + + + 26 - - col0 col0 FROM tab2 AS cor0
----
139
157
168

query I rowsort
SELECT - col1 + - - 60 AS col1 FROM tab2 AS cor0
----
-17
-7
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8011
SELECT ALL + - CAST( NULL AS SIGNED ) * + - col1 AS col1 FROM tab2 WHERE + - col1 = NULL
----

skipif mysql # not compatible
query I rowsort label-8011
SELECT ALL + - CAST ( NULL AS INTEGER ) * + - col1 AS col1 FROM tab2 WHERE + - col1 = NULL
----

query I rowsort
SELECT ALL 67 + - col0 AS col1 FROM tab2
----
-8
21
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8013
SELECT ALL - 28 * 7 + COUNT( ALL + col2 ) + - 45 FROM tab1
----
-238

skipif mysql # not compatible
query I rowsort label-8013
SELECT ALL - 28 * 7 + COUNT ( ALL + col2 ) + - 45 FROM tab1
----
-238

query II rowsort
SELECT col0 AS col0, col1 AS col1 FROM tab0
----
15
81
87
21
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT ALL - 5 + - + COUNT( * ) FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-8015
SELECT ALL - 5 + - + COUNT ( * ) FROM tab1
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8016
SELECT DISTINCT + CAST( - ( + COUNT( * ) ) AS SIGNED ) + + + MIN( col0 ) - 89 * + 11 FROM tab0
----
-967

skipif mysql # not compatible
query I rowsort label-8016
SELECT DISTINCT + CAST ( - ( + COUNT ( * ) ) AS INTEGER ) + + + MIN ( col0 ) - 89 * + 11 FROM tab0
----
-967

query I rowsort
SELECT + col2 - - + 74 AS col0 FROM tab2
----
114
132
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 * - - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + - col0, col2 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

query III rowsort
SELECT * FROM tab2 WHERE col1 * + + col0 + + col1 <> + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 62 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
62

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8023
SELECT - col2 * + col2 AS col0, + col0 + - - col1 * + + CAST( - 44 AS SIGNED ) FROM tab2 WHERE col2 IS NOT NULL
----
-1600
-3324
-3364
-2873
-529
-2198

skipif mysql # not compatible
query II rowsort label-8023
SELECT - col2 * + col2 AS col0, + col0 + - - col1 * + + CAST ( - 44 AS INTEGER ) FROM tab2 WHERE col2 IS NOT NULL
----
-1600
-3324
-3364
-2873
-529
-2198

query I rowsort
SELECT ALL ( - 83 ) FROM tab2 cor0
----
-83
-83
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 64 * - col2 + - col2 * + col1 + - col1 col1 FROM tab2 AS cor0
----
-241
-597
248

query I rowsort
SELECT - + col0 * - 12 FROM tab0 AS cor0
----
1044
1164
180

query I rowsort
SELECT + - 72 FROM tab0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT - + col2 FROM tab2 WHERE NOT + - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 * - - col0 AS col0 FROM tab0
----
-225
-7569
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 + + col0 - 47 + - + col0 * - + col2 * - col2 col2, - col1 * + 2 AS col1 FROM tab1 WHERE NOT - + col2 IS NULL
----
-295932
-10
-420831
-94
-470063
-28

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 95 >= NULL
----

query II rowsort
SELECT + col2, col1 AS col1 FROM tab1
----
59
5
68
47
96
14

query I rowsort
SELECT DISTINCT ( + 61 ) AS col2 FROM tab1
----
61

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 + - - col2 < col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8035
SELECT ALL MAX( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8035
SELECT ALL MAX ( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-8036
SELECT - col2 DIV 42 * - 85 AS col1 FROM tab1 cor0
----
170
85
85

skipif mysql # not compatible
query I rowsort label-8036
SELECT - col2 / 42 * - 85 AS col1 FROM tab1 cor0
----
170
85
85

query II rowsort
SELECT ALL col1 + - col0, col0 AS col0 FROM tab1
----
-37
51
-44
91
-80
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8038
SELECT DISTINCT + ( - MIN( ALL - 26 ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
26

skipif mysql # not compatible
query I rowsort label-8038
SELECT DISTINCT + ( - MIN ( ALL - 26 ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
26

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 / col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8040
SELECT - - col1 DIV - col1 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8040
SELECT - - col1 / - col1 FROM tab2 cor0
----
-1
-1
-1

query I rowsort
SELECT ALL 6 AS col1 FROM tab0 cor0
----
6
6
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8042
SELECT DISTINCT + - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8042
SELECT DISTINCT + - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col1 + + col1 * - + col1 + + col1 + - + col2 * 59 + + col0 + - - col1 * + 81 * + col2 FROM tab2 AS cor0
----
241255
306930
91101

query I rowsort
SELECT DISTINCT - - col0 * + 88 AS col2 FROM tab2 AS cor0
----
4048
5632
6600

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT ( - 85 ) + + 20 + ( - + COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-8045
SELECT ( - 85 ) + + 20 + ( - + COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-68

query I rowsort
SELECT - - 37 + col0 FROM tab1 AS cor0
----
122
128
88

query I rowsort
SELECT - 85 + + col0 + - - col2 FROM tab2 AS cor0
----
-16
19
48

query I rowsort
SELECT ALL + - col2 - - + 56 FROM tab1 WHERE NOT ( ( NULL ) IS NULL )
----

query I rowsort
SELECT DISTINCT 76 + + col0 AS col2 FROM tab2
----
122
140
151

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 WHERE + - 18 / + col1 / + col2 > + + 54
----

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE ( + col1 ) BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 7 <= col1
----
51
14
96
91
47
68

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8053
SELECT ALL - col2 DIV - CAST( + + col2 AS SIGNED ) + - - col2 AS col0 FROM tab1
----
60
69
97

skipif mysql # not compatible
query I rowsort label-8053
SELECT ALL - col2 / - CAST ( + + col2 AS INTEGER ) + - - col2 AS col0 FROM tab1
----
60
69
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8054
SELECT ALL - ( + COUNT( * ) ) * - - 65 AS col0 FROM tab0 WHERE + 96 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-8054
SELECT ALL - ( + COUNT ( * ) ) * - - 65 AS col0 FROM tab0 WHERE + 96 <> NULL
----
0

query I rowsort
SELECT DISTINCT col1 + - 94 AS col0 FROM tab1
----
-47
-80
-89

query II rowsort
SELECT DISTINCT 50 AS col1, + col2 FROM tab0
----
50
10
50
47
50
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8057
SELECT ALL + - 10 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8057
SELECT ALL + - 10 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8058
SELECT - COUNT( * ) - + MIN( + col1 ) FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-8058
SELECT - COUNT ( * ) - + MIN ( + col1 ) FROM tab0 AS cor0
----
-4

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 31 * col1 + col2 + - col1 * - - 76 / - + col2 + - col2 = col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0 AS col1, col1 col1 FROM tab0 cor0
----
-15
81
-87
21
-97
1

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE + 2 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab2 cor0 WHERE col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= - 3 + 94
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8064
SELECT ALL - SUM( DISTINCT + ( col2 ) ) FROM tab2 cor0
----
-121

skipif mysql # not compatible
query I rowsort label-8064
SELECT ALL - SUM ( DISTINCT + ( col2 ) ) FROM tab2 cor0
----
-121

onlyif mysql # aggregate syntax: 
query II rowsort label-8065
SELECT DISTINCT - COUNT( * ), 15 col0 FROM tab1 AS cor0
----
-3
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8065
SELECT DISTINCT - COUNT ( * ), 15 col0 FROM tab1 AS cor0
----
-3
15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8066
SELECT ALL - ( - ( - CAST( NULL AS DECIMAL ) ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8066
SELECT ALL - ( - ( - CAST ( NULL AS REAL ) ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8067
SELECT col1 DIV - - 15 AS col0, + col2 - + col2 + col1 FROM tab2
----
3
51
4
67
5
77

skipif mysql # not compatible
query II rowsort label-8067
SELECT col1 / - - 15 AS col0, + col2 - + col2 + col1 FROM tab2
----
3
51
4
67
5
77

query I rowsort
SELECT - - 53 * + + 22 FROM tab0 AS cor0
----
1166
1166
1166

query I rowsort
SELECT - 20 + + + col0 + 85 AS col0 FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN ( + col1 ) AND NULL
----
152
162
80

query I rowsort
SELECT DISTINCT - col0 + - 50 * + col1 FROM tab1 AS cor0
----
-2441
-335
-751

query I rowsort
SELECT ALL + + 37 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

onlyif mysql # aggregate syntax: 
query I rowsort label-8072
SELECT DISTINCT MIN( ALL - + 87 ) AS col1 FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-8072
SELECT DISTINCT MIN ( ALL - + 87 ) AS col1 FROM tab1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8073
SELECT + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8073
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL <= ( NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8074
SELECT ALL - - 97 FROM tab0 WHERE NOT NULL < col2 / - CAST( NULL AS SIGNED ) + - col2 - + col0 / + col0 * - 50
----

skipif mysql # not compatible
query I rowsort label-8074
SELECT ALL - - 97 FROM tab0 WHERE NOT NULL < col2 / - CAST ( NULL AS INTEGER ) + - col2 - + col0 / + col0 * - 50
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT ALL - - SUM( + col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-8075
SELECT ALL - - SUM ( + col0 ) FROM tab1 AS cor0
----
227

query I rowsort
SELECT DISTINCT - ( 80 ) * - col2 AS col0 FROM tab0 AS cor0
----
3760
7920
800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8077
SELECT DISTINCT - col1 AS col0 FROM tab2 AS cor0 WHERE 23 * col1 BETWEEN NULL AND ( + CAST( NULL AS SIGNED ) ) + 26
----

skipif mysql # not compatible
query I rowsort label-8077
SELECT DISTINCT - col1 AS col0 FROM tab2 AS cor0 WHERE 23 * col1 BETWEEN NULL AND ( + CAST ( NULL AS INTEGER ) ) + 26
----

query II rowsort
SELECT ALL - col1 AS col0, col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-51
23
-67
58
-77
40

query I rowsort
SELECT ALL 81 * - col1 FROM tab2 cor0
----
-4131
-5427
-6237

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( - col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8081
SELECT 31 DIV - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8081
SELECT 31 / - col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + 90 + + col0 FROM tab2 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8083
SELECT + CAST( NULL AS SIGNED ) - + - 34 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8083
SELECT + CAST ( NULL AS INTEGER ) - + - 34 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 29 + + col2 + + col2 * + + col0 * - 14 + + - col1 * - 48 AS col2 FROM tab0
----
-11133
-134266
-5906

onlyif mysql # DIV for integer division: 
query I rowsort label-8085
SELECT - col2 - 45 + col1 DIV col2 + + col2 FROM tab0
----
-43
-44
-45

skipif mysql # not compatible
query I rowsort label-8085
SELECT - col2 - 45 + col1 / col2 + + col2 FROM tab0
----
-43
-44
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8086
SELECT col0 - col0 * + ( + - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8086
SELECT col0 - col0 * + ( + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8087
SELECT + COUNT( * ) + - + 62 FROM tab0
----
-59

skipif mysql # not compatible
query I rowsort label-8087
SELECT + COUNT ( * ) + - + 62 FROM tab0
----
-59

query I rowsort
SELECT ALL - 21 * + 97 FROM tab0
----
-2037
-2037
-2037

query I rowsort
SELECT col0 + - + ( - - 1 ) - col2 * - col1 - - 45 AS col0 FROM tab2 AS cor0
----
1263
3188
4005

query II rowsort
SELECT ALL + col0 - - col1 AS col2, + col2 AS col0 FROM tab0 AS cor0
----
108
10
96
47
98
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8091
SELECT + - COUNT( * ) + + + 70 FROM tab0 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-8091
SELECT + - COUNT ( * ) + + + 70 FROM tab0 AS cor0
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8092
SELECT DISTINCT + col2 * + CAST( NULL AS SIGNED ) - + col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8092
SELECT DISTINCT + col2 * + CAST ( NULL AS INTEGER ) - + col0 FROM tab2 cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 - - - col2 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # DIV for integer division: 
query I rowsort label-8094
SELECT + col2 DIV col0 * + ( - 64 ) AS col0 FROM tab0
----
-192
-64
0

skipif mysql # not compatible
query I rowsort label-8094
SELECT + col2 / col0 * + ( - 64 ) AS col0 FROM tab0
----
-192
-64
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8095
SELECT + COUNT( * ) * CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8095
SELECT + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - 91 AS col1 FROM tab1 WHERE col2 * 5 - - ( + 51 ) NOT BETWEEN NULL AND - + 68 * + col1
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-8097
SELECT - + COUNT( * ) AS col1, 5 FROM tab1 AS cor0
----
-3
5

skipif mysql # not compatible
query II rowsort label-8097
SELECT - + COUNT ( * ) AS col1, 5 FROM tab1 AS cor0
----
-3
5

query I rowsort
SELECT - 30 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-30
-30
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-8099
SELECT ALL - 19, COUNT( * ) - 50 col0 FROM tab1
----
-19
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8099
SELECT ALL - 19, COUNT ( * ) - 50 col0 FROM tab1
----
-19
-47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8100
SELECT - 80 AS col2, + 21 * CAST( - col1 AS SIGNED ) FROM tab1
----
-80
-105
-80
-294
-80
-987

skipif mysql # not compatible
query II rowsort label-8100
SELECT - 80 AS col2, + 21 * CAST ( - col1 AS INTEGER ) FROM tab1
----
-80
-105
-80
-294
-80
-987

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8101
SELECT ALL CAST( - ( - CAST( + + 42 AS DECIMAL ) ) AS SIGNED ) AS col0 FROM tab2
----
42
42
42

skipif mysql # not compatible
query I rowsort label-8101
SELECT ALL CAST ( - ( - CAST ( + + 42 AS REAL ) ) AS INTEGER ) AS col0 FROM tab2
----
42
42
42

query III rowsort
SELECT * FROM tab0 WHERE NOT - 97 * + ( + ( col0 ) ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8103
SELECT DISTINCT + + COUNT( * ) FROM tab0 WHERE NOT - col1 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-8103
SELECT DISTINCT + + COUNT ( * ) FROM tab0 WHERE NOT - col1 = NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 51 + - col2 col2 FROM tab2
----
-109
-74
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-8105
SELECT DISTINCT - COUNT( * ), 20 AS col1 FROM tab2 AS cor0
----
-3
20

skipif mysql # not compatible
query II rowsort label-8105
SELECT DISTINCT - COUNT ( * ), 20 AS col1 FROM tab2 AS cor0
----
-3
20

query I rowsort
SELECT ALL + 86 * col2 * col1 AS col0 FROM tab1 AS cor0
----
115584
25370
274856

query I rowsort
SELECT DISTINCT - + 23 AS col1 FROM tab0 cor0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8108
SELECT DISTINCT CAST( NULL AS SIGNED ) + - col0 + + col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8108
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col0 + + col2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 74 col2 FROM tab2 AS cor0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8110
SELECT DISTINCT 88 - - SUM( - 84 ) FROM tab0 AS cor0
----
-164

skipif mysql # not compatible
query I rowsort label-8110
SELECT DISTINCT 88 - - SUM ( - 84 ) FROM tab0 AS cor0
----
-164

query I rowsort
SELECT col1 + + + ( + col0 ) FROM tab1 AS cor0
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8112
SELECT ALL SUM( + ( + - col1 ) ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8112
SELECT ALL SUM ( + ( + - col1 ) ) FROM tab1 AS cor0
----
-66

onlyif mysql # DIV for integer division: 
query II rowsort label-8113
SELECT DISTINCT col1 * + 92 AS col2, 24 DIV + - col2 FROM tab2 AS cor0
----
4692
-1
6164
0
7084
0

skipif mysql # not compatible
query II rowsort label-8113
SELECT DISTINCT col1 * + 92 AS col2, 24 / + - col2 FROM tab2 AS cor0
----
4692
-1
6164
0
7084
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8115
SELECT COUNT( * ) * + + COUNT( * ) + + SUM( - + col1 ) AS col2 FROM tab1 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-8115
SELECT COUNT ( * ) * + + COUNT ( * ) + + SUM ( - + col1 ) AS col2 FROM tab1 AS cor0
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-8116
SELECT ALL + col1 DIV - - col1 + + col1 + + + 99 * 77 AS col0 FROM tab1
----
7629
7638
7671

skipif mysql # not compatible
query I rowsort label-8116
SELECT ALL + col1 / - - col1 + + col1 + + + 99 * 77 AS col0 FROM tab1
----
7629
7638
7671

query III rowsort
SELECT * FROM tab2 WHERE - col2 * - + ( - col2 ) NOT BETWEEN - - col1 + col1 + + - 92 - col0 * + - 25 AND - ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8118
SELECT + + col0 * + + col1 + 28 FROM tab2 WHERE + CAST( NULL AS DECIMAL ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-8118
SELECT + + col0 * + + col1 + 28 FROM tab2 WHERE + CAST ( NULL AS REAL ) <> NULL
----

query I rowsort
SELECT DISTINCT 55 + col2 AS col1 FROM tab2
----
113
78
95

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col1 - + col0 / - 81 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8121
SELECT * FROM tab0 AS cor0 WHERE NOT - 69 * - col0 IN ( + col1, + ( - 99 ), col0, + col0, CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8121
SELECT * FROM tab0 AS cor0 WHERE NOT - 69 * - col0 IN ( + col1, + ( - 99 ), col0, + col0, CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8122
SELECT COUNT( * ) * 6 AS col1 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-8122
SELECT COUNT ( * ) * 6 AS col1 FROM tab0 AS cor0
----
18

query I rowsort
SELECT ALL + - 21 * - + col1 AS col1 FROM tab2 AS cor0
----
1071
1407
1617

onlyif mysql # DIV for integer division: 
query II rowsort label-8124
SELECT col2 DIV + - col1 AS col1, + col2 AS col1 FROM tab0
----
-99
99
0
10
0
47

skipif mysql # not compatible
query II rowsort label-8124
SELECT col2 / + - col1 AS col1, + col2 AS col1 FROM tab0
----
-99
99
0
10
0
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8125
SELECT 9 * - MIN( DISTINCT col1 ) + - - 28 FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-8125
SELECT 9 * - MIN ( DISTINCT col1 ) + - - 28 FROM tab0 AS cor0
----
19

query I rowsort
SELECT - + 83 FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 WHERE NOT + + col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8128
SELECT 47 * + COUNT( ALL - col2 ) FROM tab2
----
141

skipif mysql # not compatible
query I rowsort label-8128
SELECT 47 * + COUNT ( ALL - col2 ) FROM tab2
----
141

query I rowsort
SELECT ALL 28 + - ( 39 ) FROM tab2
----
-11
-11
-11

query I rowsort
SELECT ( 85 ) FROM tab0
----
85
85
85

query I rowsort
SELECT - col2 * + - 89 AS col0 FROM tab2
----
2047
3560
5162

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8132
SELECT * FROM tab2 WHERE - 47 NOT BETWEEN NULL AND CAST( - col2 AS DECIMAL )
----
75
67
58

skipif mysql # not compatible
query III rowsort label-8132
SELECT * FROM tab2 WHERE - 47 NOT BETWEEN NULL AND CAST ( - col2 AS REAL )
----
75
67
58

query I rowsort
SELECT DISTINCT 80 + + + ( ( - col2 ) ) FROM tab1 AS cor0 WHERE NOT - 31 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 * 14 IS NULL
----

query I rowsort
SELECT 85 * + col2 FROM tab2
----
1955
3400
4930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, ( 4 ) FROM tab0 AS cor0 WHERE 25 * + + 87 IN ( - + col2, col0, + 92 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8137
SELECT + - COUNT( - col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8137
SELECT + - COUNT ( - col1 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8138
SELECT ALL + MAX( DISTINCT + 45 ) col0 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8138
SELECT ALL + MAX ( DISTINCT + 45 ) col0 FROM tab0 AS cor0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8139
SELECT DISTINCT - 86 AS col2 FROM tab0 AS cor0 WHERE NOT - CAST( - - col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8139
SELECT DISTINCT - 86 AS col2 FROM tab0 AS cor0 WHERE NOT - CAST ( - - col0 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT - col2 * col2 * - - col0 AS col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col2, + col2 * - col0 AS col1 FROM tab2 AS cor0
----
23
-1058
40
-2560
58
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-8142
SELECT DISTINCT COUNT( DISTINCT - 30 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8142
SELECT DISTINCT COUNT ( DISTINCT - 30 ) FROM tab1 AS cor0
----
1

query II rowsort
SELECT ALL + + col0 AS col1, - 73 FROM tab1 AS cor0
----
51
-73
85
-73
91
-73

query I rowsort
SELECT + + col1 * + - col2 - + col2 AS col0 FROM tab1 AS cor0
----
-1440
-3264
-354

query I rowsort
SELECT col1 - + - col1 + - + col0 AS col0 FROM tab1
----
-23
-75
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8146
SELECT COUNT( * ) * 36 - + 67 AS col1 FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-8146
SELECT COUNT ( * ) * 36 - + 67 AS col1 FROM tab2
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8147
SELECT + CAST( NULL AS SIGNED ) * + + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8147
SELECT + CAST ( NULL AS INTEGER ) * + + COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col1 * 96 FROM tab1
----
1344
4512
480

query I rowsort
SELECT DISTINCT + 51 * - + col1 AS col0 FROM tab1
----
-2397
-255
-714

query I rowsort
SELECT + 98 * + 26 * ( + - ( - + col2 ) ) AS col0 FROM tab1
----
150332
173264
244608

query I rowsort
SELECT 96 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8152
SELECT DISTINCT col0 DIV + - col0 AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8152
SELECT DISTINCT col0 / + - col0 AS col2 FROM tab0
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8153
SELECT 35 AS col0, 67 * + 0 DIV CAST( col1 AS SIGNED ) + + col1 AS col2 FROM tab1
----
35
14
35
47
35
5

skipif mysql # not compatible
query II rowsort label-8153
SELECT 35 AS col0, 67 * + 0 / CAST ( col1 AS INTEGER ) + + col1 AS col2 FROM tab1
----
35
14
35
47
35
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8154
SELECT ALL SUM( ALL - 8 ) * + 73 FROM tab2
----
-1752

skipif mysql # not compatible
query I rowsort label-8154
SELECT ALL SUM ( ALL - 8 ) * + 73 FROM tab2
----
-1752

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2 col1, - col0 * + 45 AS col1 FROM tab0 AS cor0
----
-10
-3915
-47
-675
-99
-4365

onlyif mysql # aggregate syntax: 
query I rowsort label-8156
SELECT DISTINCT - MAX( ALL + col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-8156
SELECT DISTINCT - MAX ( ALL + col2 ) FROM tab2 AS cor0
----
-58

query II rowsort
SELECT ALL + 7 AS col2, - 4 AS col1 FROM tab0 AS cor0
----
7
-4
7
-4
7
-4

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 6 BETWEEN + col1 AND + 2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8159
SELECT + 24 * - COUNT( * ) * - + ( - ( - + 13 ) ) AS col1 FROM tab0 AS cor0
----
936

skipif mysql # not compatible
query I rowsort label-8159
SELECT + 24 * - COUNT ( * ) * - + ( - ( - + 13 ) ) AS col1 FROM tab0 AS cor0
----
936

query I rowsort
SELECT ALL - col2 + 28 AS col2 FROM tab2
----
-12
-30
5

query I rowsort
SELECT DISTINCT col1 * + 53 AS col2 FROM tab0
----
1113
4293
53

onlyif mysql # DIV for integer division: 
query II rowsort label-8162
SELECT DISTINCT - 44 DIV + + 93 AS col2, - col2 DIV + + 69 + col1 * + 43 FROM tab1
----
0
2021
0
215
0
601

skipif mysql # not compatible
query II rowsort label-8162
SELECT DISTINCT - 44 / + + 93 AS col2, - col2 / + + 69 + col1 * + 43 FROM tab1
----
0
2021
0
215
0
601

query I rowsort
SELECT DISTINCT 84 + col0 * col2 FROM tab1
----
4980
5099
6272

onlyif mysql # aggregate syntax: 
query I rowsort label-8164
SELECT + COUNT( * ) AS col2 FROM tab1 WHERE - col2 + 78 * + 81 * + + 18 = - 11
----
0

skipif mysql # not compatible
query I rowsort label-8164
SELECT + COUNT ( * ) AS col2 FROM tab1 WHERE - col2 + 78 * + 81 * + + 18 = - 11
----
0

query II rowsort
SELECT + col0, + col1 * - 7 AS col2 FROM tab1 WHERE 9 IS NOT NULL
----
51
-98
85
-35
91
-329

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8166
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) + + MIN( col1 ) FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-8166
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) + + MIN ( col1 ) FROM tab0
----
4

query I rowsort
SELECT - col0 + - 54 FROM tab1
----
-105
-139
-145

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 76 * + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8169
SELECT + - ( + - CAST( - MIN( - col0 ) AS SIGNED ) ) AS col1 FROM tab0 AS cor0 WHERE col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8169
SELECT + - ( + - CAST ( - MIN ( - col0 ) AS INTEGER ) ) AS col1 FROM tab0 AS cor0 WHERE col1 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 12 * col0 - col1 = - + 12
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8172
SELECT - - MAX( + 0 ) / + + SUM( DISTINCT - col1 ) + + ( + - MAX( ALL + - col1 ) ) + - - COUNT( * ) * + - COUNT( * ) * + + 91 + + - COUNT( * ) + COUNT( * ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8172
SELECT - - MAX ( + 0 ) / + + SUM ( DISTINCT - col1 ) + + ( + - MAX ( ALL + - col1 ) ) + - - COUNT ( * ) * + - COUNT ( * ) * + + 91 + + - COUNT ( * ) + COUNT ( * ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - 23 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-23

query I rowsort
SELECT + 10 + + - 80 FROM tab1
----
-70
-70
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT + + ( - - 89 ) + MIN( DISTINCT - + 68 ) AS col1 FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-8175
SELECT + + ( - - 89 ) + MIN ( DISTINCT - + 68 ) AS col1 FROM tab2 AS cor0
----
21

query I rowsort
SELECT DISTINCT - 97 - - col1 FROM tab2 AS cor0
----
-20
-30
-46

query I rowsort
SELECT ALL + - 7 - + col1 AS col1 FROM tab2 AS cor0
----
-58
-74
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8178
SELECT CAST( - COUNT( * ) AS SIGNED ) + + 56 FROM tab1 cor0
----
53

skipif mysql # not compatible
query I rowsort label-8178
SELECT CAST ( - COUNT ( * ) AS INTEGER ) + + 56 FROM tab1 cor0
----
53

query I rowsort
SELECT - ( - col2 ) FROM tab2 AS cor0 WHERE NULL <= 93
----

query I rowsort
SELECT - - col2 + - + 9 FROM tab0 AS cor0
----
1
38
90

query I rowsort
SELECT ALL + + ( - 60 ) AS col2 FROM tab2 AS cor0
----
-60
-60
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8182
SELECT ALL - + MIN( DISTINCT + col1 ) AS col2 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8182
SELECT ALL - + MIN ( DISTINCT + col1 ) AS col2 FROM tab0 cor0
----
-1

query III rowsort
SELECT * FROM tab0 WHERE NOT - 45 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 90 * - col2 col0 FROM tab0
----
-4230
-8910
-900

onlyif mysql # aggregate syntax: 
query I rowsort label-8185
SELECT - MAX( - ( + ( - 17 ) ) ) AS col2 FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-8185
SELECT - MAX ( - ( + ( - 17 ) ) ) AS col2 FROM tab2
----
-17

query II rowsort
SELECT ALL + ( + col2 ), - col0 FROM tab1
----
59
-85
68
-91
96
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8187
SELECT - 56 DIV + 63 + - MIN( ALL + - col1 ) AS col1 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-8187
SELECT - 56 / + 63 + - MIN ( ALL + - col1 ) AS col1 FROM tab0
----
81

query II rowsort
SELECT - col0 + 62 AS col0, - col1 FROM tab1 AS cor0
----
-23
-5
-29
-47
11
-14

query I rowsort
SELECT + col0 + col0 - + col2 + + col1 + - 78 FROM tab0 cor0
----
-14
107
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT + - 88 + + COUNT( * ) col2 FROM tab2 AS cor0
----
-85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8190
SELECT + - 88 + + COUNT ( * ) col2 FROM tab2 AS cor0
----
-85

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + 28 ) NOT BETWEEN - - col0 * - 73 AND - col1 + + col1 / - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8192
SELECT - CAST( NULL AS SIGNED ) AS col2, COUNT( * ) AS col0 FROM tab1
----
NULL
3

skipif mysql # not compatible
query II rowsort label-8192
SELECT - CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) AS col0 FROM tab1
----
NULL
3

query I rowsort
SELECT DISTINCT + col2 + - + ( - col1 ) * col1 FROM tab0
----
100
451
6608

query I rowsort
SELECT ALL + 57 + - 40 FROM tab2
----
17
17
17

onlyif mysql # aggregate syntax: 
query II rowsort label-8195
SELECT ALL + COUNT( * ), 65 AS col0 FROM tab1
----
3
65

skipif mysql # not compatible
query II rowsort label-8195
SELECT ALL + COUNT ( * ), 65 AS col0 FROM tab1
----
3
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8196
SELECT DISTINCT 21 + - 29 + + col0, + col2 * CAST( + + CAST( col1 AS SIGNED ) AS SIGNED ) AS col1 FROM tab1
----
43
1344
77
295
83
3196

skipif mysql # not compatible
query II rowsort label-8196
SELECT DISTINCT 21 + - 29 + + col0, + col2 * CAST ( + + CAST ( col1 AS INTEGER ) AS INTEGER ) AS col1 FROM tab1
----
43
1344
77
295
83
3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8197
SELECT DISTINCT + 88 + - col1 * - + ( + col0 ) / - col2 * + col0 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8197
SELECT DISTINCT + 88 + - col1 * - + ( + col0 ) / - col2 * + col0 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - col2 * + + col2 AS col2 FROM tab0
----
-100
-2209
-9801

query I rowsort
SELECT ALL + + 16 * col1 FROM tab2 AS cor0
----
1072
1232
816

onlyif mysql # aggregate syntax: 
query I rowsort label-8200
SELECT ALL + MAX( - col0 ) col2 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8200
SELECT ALL + MAX ( - col0 ) col2 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT 53 + + col2 + - col0 * + - col0 FROM tab2 AS cor0
----
2192
4189
5736

query I rowsort
SELECT - 23 * + col2 AS col2 FROM tab2
----
-1334
-529
-920

onlyif mysql # DIV for integer division: 
query I rowsort label-8203
SELECT ALL - col2 * + ( - 41 DIV - 65 ) AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8203
SELECT ALL - col2 * + ( - 41 / - 65 ) AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8204
SELECT DISTINCT + COUNT( * ) * 85 col0 FROM tab1
----
255

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8204
SELECT DISTINCT + COUNT ( * ) * 85 col0 FROM tab1
----
255

onlyif mysql # DIV for integer division: 
query I rowsort label-8205
SELECT - col2 + 2 DIV - col1 AS col0 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-8205
SELECT - col2 + 2 / - col1 AS col0 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8206
SELECT ALL ( + MIN( ALL col0 ) ) + MIN( col1 ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8206
SELECT ALL ( + MIN ( ALL col0 ) ) + MIN ( col1 ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8207
SELECT SUM( + col1 ) * + 57 FROM tab0 WHERE NOT NULL = 48 + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-8207
SELECT SUM ( + col1 ) * + 57 FROM tab0 WHERE NOT NULL = 48 + 11
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8208
SELECT ALL - 64 DIV + ( - col2 ) FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8208
SELECT ALL - 64 / + ( - col2 ) FROM tab1
----
0
0
1

query I rowsort
SELECT ( - 89 ) AS col2 FROM tab2
----
-89
-89
-89

query I rowsort
SELECT 71 + + 81 AS col0 FROM tab1 WHERE + 56 * 23 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8211
SELECT DISTINCT MIN( DISTINCT col2 ) DIV 79 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8211
SELECT DISTINCT MIN ( DISTINCT col2 ) / 79 AS col1 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8212
SELECT DISTINCT - 5 DIV + col1 AS col2 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-8212
SELECT DISTINCT - 5 / + col1 AS col2 FROM tab1
----
-1
0

query I rowsort
SELECT col0 FROM tab0 WHERE ( NULL ) NOT BETWEEN - ( + 20 ) AND ( - col1 - 47 * 30 )
----

query I rowsort
SELECT col1 * - col2 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + col2 - col2 * + 47 AS col0 FROM tab2
----
-1058
-1840
-2668

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8216
SELECT DISTINCT 80 * + CAST( NULL AS SIGNED ) - + 4 * - ( - 10 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8216
SELECT DISTINCT 80 * + CAST ( NULL AS INTEGER ) - + 4 * - ( - 10 ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8217
SELECT CAST( ( + col0 ) AS SIGNED ) + - 96 FROM tab2
----
-21
-32
-50

skipif mysql # not compatible
query I rowsort label-8217
SELECT CAST ( ( + col0 ) AS INTEGER ) + - 96 FROM tab2
----
-21
-32
-50

query I rowsort
SELECT DISTINCT 90 + + col0 FROM tab0
----
105
177
187

onlyif mysql # aggregate syntax: 
query I rowsort label-8219
SELECT DISTINCT + 58 + - SUM( DISTINCT col0 + - col0 ) AS col0 FROM tab1 WHERE NULL BETWEEN ( col2 + + 7 ) AND col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8219
SELECT DISTINCT + 58 + - SUM ( DISTINCT col0 + - col0 ) AS col0 FROM tab1 WHERE NULL BETWEEN ( col2 + + 7 ) AND col2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( + 10 + col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8221
SELECT + MAX( ALL col1 ) AS col0 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-8221
SELECT + MAX ( ALL col1 ) AS col0 FROM tab2
----
77

query I rowsort
SELECT ALL - 79 + + col0 AS col2 FROM tab2
----
-15
-33
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8223
SELECT DISTINCT COUNT( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8223
SELECT DISTINCT COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab2
----
0

query I rowsort
SELECT DISTINCT 11 * - 49 FROM tab0 AS cor0
----
-539

query I rowsort
SELECT - ( + 56 ) FROM tab2
----
-56
-56
-56

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NOT ( col2 * - 63 + col2 ) >= ( col2 )
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8227
SELECT - - CAST( + col1 AS SIGNED ) * col2 AS col0 FROM tab0 AS cor0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-8227
SELECT - - CAST ( + col1 AS INTEGER ) * col2 AS col0 FROM tab0 AS cor0
----
210
3807
99

query I rowsort
SELECT DISTINCT 96 FROM tab0 AS cor0 WHERE NOT + col0 + 0 NOT IN ( - ( ( 59 ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8229
SELECT CAST( NULL AS SIGNED ) - col0 * + col1 FROM tab2 AS cor0 WHERE + 86 >= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-8229
SELECT CAST ( NULL AS INTEGER ) - col0 * + col1 FROM tab2 AS cor0 WHERE + 86 >= ( NULL )
----

query I rowsort
SELECT - 94 * - 91 FROM tab1 AS cor0
----
8554
8554
8554

query I rowsort
SELECT ALL col0 / col2 FROM tab2 AS cor0 WHERE NOT - 66 * - col0 = ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 NOT BETWEEN ( NULL ) AND + col1 + + 69 * - 81
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8233
SELECT 1 * COUNT( * ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8233
SELECT 1 * COUNT ( * ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT 74 * 29 AS col1 FROM tab0 AS cor0
----
2146

query I rowsort
SELECT - - 62 + col2 * col2 FROM tab1 cor0
----
3543
4686
9278

query I rowsort
SELECT + 59 AS col1 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
59
59
59

query I rowsort
SELECT ALL - ( - 86 ) + col2 FROM tab0 AS cor0
----
133
185
96

query I rowsort
SELECT col0 * col0 + + col2 AS col2 FROM tab2 AS cor0
----
2139
4136
5683

query I rowsort
SELECT DISTINCT + 33 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( + col1 / col1 + - col1 ) IS NULL
----

query I rowsort
SELECT col0 + ( + col2 ) + + 70 FROM tab1
----
214
217
229

query I rowsort
SELECT DISTINCT col0 + + - 31 AS col1 FROM tab1
----
20
54
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8243
SELECT ALL COUNT( DISTINCT + - col1 ) + + ( CAST( NULL AS SIGNED ) ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8243
SELECT ALL COUNT ( DISTINCT + - col1 ) + + ( CAST ( NULL AS INTEGER ) ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 NOT BETWEEN 22 * - col0 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( 29 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE + 85 > col2 + 1 * 52
----
46
51
23

query I rowsort
SELECT DISTINCT + 78 - col1 AS col2 FROM tab2 WHERE NULL IS NULL
----
1
11
27

query III rowsort
SELECT * FROM tab2 WHERE ( col2 ) = NULL
----

query I rowsort
SELECT ALL col1 * + - 90 * + 85 AS col2 FROM tab1
----
-107100
-359550
-38250

query I rowsort
SELECT DISTINCT + col0 * col1 - col1 * col0 FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 59 - + col0 * + col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL col1 * ( - col0 ) AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-2346
-4928
-5025

query I rowsort
SELECT + col2 + 15 AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN ( + 99 ) AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8254
SELECT ALL - ( MIN( ALL - col1 ) ) FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
47

skipif mysql # not compatible
query I rowsort label-8254
SELECT ALL - ( MIN ( ALL - col1 ) ) FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8255
SELECT ALL MIN( + col0 ) * COUNT( * ) AS col1 FROM tab1 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-8255
SELECT ALL MIN ( + col0 ) * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
153

query I rowsort
SELECT + 11 - + col1 AS col0 FROM tab2
----
-40
-56
-66

query I rowsort
SELECT ALL + 39 * - col0 + - col1 AS col2 FROM tab2
----
-1845
-2573
-2992

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT ALL + COUNT( DISTINCT - 97 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-8258
SELECT ALL + COUNT ( DISTINCT - 97 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 + + 30 col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8260
SELECT + ( + CAST( + col2 AS SIGNED ) ) FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-8260
SELECT + ( + CAST ( + col2 AS INTEGER ) ) FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8261
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) >= - + 30 + 68
----
0

skipif mysql # not compatible
query I rowsort label-8261
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) >= - + 30 + 68
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 65 * - ( + col1 ) col2 FROM tab1 cor0
----
-3055
-325
-910

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8263
SELECT col2 AS col0, - CAST( NULL AS SIGNED ) - col1 + col0 * - col1 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-8263
SELECT col2 AS col0, - CAST ( NULL AS INTEGER ) - col1 + col0 * - col1 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE - 13 < - + col1
----
1

skipif mysql # not compatible
query I rowsort label-8264
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE - 13 < - + col1
----
1

query I rowsort
SELECT 92 AS col0 FROM tab2 AS cor0 WHERE NOT - 12 * - + col1 * - 85 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col2 * - 35 * + col0 ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col2 AS col1, col1 + col0 AS col1 FROM tab2 AS cor0
----
23
97
40
141
58
142

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8269
SELECT ALL - COUNT( * ) * 78 AS col1 FROM tab1 WHERE 14 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8269
SELECT ALL - COUNT ( * ) * 78 AS col1 FROM tab1 WHERE 14 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8270
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) > + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8270
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) > + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8271
SELECT DISTINCT MAX( + 35 ) FROM tab0
----
35

skipif mysql # not compatible
query I rowsort label-8271
SELECT DISTINCT MAX ( + 35 ) FROM tab0
----
35

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - - col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + + col2 ) IN ( + 70 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT MAX( 54 ) - 89 AS col0 FROM tab1 AS cor0 WHERE NOT - col0 NOT BETWEEN ( - + 27 ) AND ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8274
SELECT MAX ( 54 ) - 89 AS col0 FROM tab1 AS cor0 WHERE NOT - col0 NOT BETWEEN ( - + 27 ) AND ( - col1 )
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col2 ) BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * 5 * 82 NOT IN ( - col0 )
----

query I rowsort
SELECT ALL + col1 + + 13 FROM tab0 AS cor0
----
14
34
94

query I rowsort
SELECT DISTINCT - - ( - 3 ) FROM tab1 WHERE + col2 IS NOT NULL
----
-3

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - col0 >= ( col1 + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 52 + - - col1 FROM tab0 AS cor0
----
-31
-51
29

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8281
SELECT - ( - COUNT( * ) ) + + CAST( NULL AS DECIMAL ) col2 FROM tab2 cor0 WHERE col1 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8281
SELECT - ( - COUNT ( * ) ) + + CAST ( NULL AS REAL ) col2 FROM tab2 cor0 WHERE col1 IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NULL ) <= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8283
SELECT DISTINCT - COUNT( - 41 ) + 73 AS col1 FROM tab1 cor0
----
70

skipif mysql # not compatible
query I rowsort label-8283
SELECT DISTINCT - COUNT ( - 41 ) + 73 AS col1 FROM tab1 cor0
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8284
SELECT ALL - - 83 + + col1 - CAST( NULL AS SIGNED ) / col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8284
SELECT ALL - - 83 + + col1 - CAST ( NULL AS INTEGER ) / col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8285
SELECT DISTINCT - + ( - + SUM( DISTINCT - + col2 ) ) AS col1 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-8285
SELECT DISTINCT - + ( - + SUM ( DISTINCT - + col2 ) ) AS col1 FROM tab1 AS cor0
----
-223

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <> + 89 - + col2 + 23 * + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8287
SELECT DISTINCT - 83 + + - CAST( NULL AS SIGNED ), col0 + + col1 AS col2 FROM tab2
----
NULL
141
NULL
142
NULL
97

skipif mysql # not compatible
query II rowsort label-8287
SELECT DISTINCT - 83 + + - CAST ( NULL AS INTEGER ), col0 + + col1 AS col2 FROM tab2
----
NULL
141
NULL
142
NULL
97

query II rowsort
SELECT 95 AS col0, + col0 * - col0 FROM tab1
----
95
-2601
95
-7225
95
-8281

query II rowsort
SELECT DISTINCT col1 + - + col0, - col0 + - 13 + - + 90 AS col1 FROM tab2
----
-8
-178
13
-167
5
-149

query I rowsort
SELECT ALL col1 * + col1 * - col1 + - col2 FROM tab2
----
-132674
-300821
-456573

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 55 - col1 col0 FROM tab0
----
-136
-56
-76

query I rowsort
SELECT DISTINCT + 62 + ( - - col2 ) FROM tab1
----
121
130
158

query II rowsort
SELECT ALL col1 + col1 AS col1, col2 + - + col1 AS col2 FROM tab1
----
10
54
28
82
94
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - - col0 * + 32 - - 39 + + 19 * col2 col0 FROM tab1
----
-230040
-263661
-81369

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8295
SELECT CAST( + + ( + col1 ) AS SIGNED ) - + + col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8295
SELECT CAST ( + + ( + col1 ) AS INTEGER ) - + + col1 FROM tab2
----
0
0
0

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE ( - 82 ) <= ( col0 )
----
23
40
58

query I rowsort
SELECT - + col2 + + 13 AS col0 FROM tab1 AS cor0
----
-46
-55
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8298
SELECT + + col0 / - + col1 + CAST( NULL AS SIGNED ) + 8 + col2 * - - 63 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8298
SELECT + + col0 / - + col1 + CAST ( NULL AS INTEGER ) + 8 + col2 * - - 63 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8299
SELECT ALL 61 * 14 DIV + 70 AS col0 FROM tab0
----
12
12
12

skipif mysql # not compatible
query I rowsort label-8299
SELECT ALL 61 * 14 / + 70 AS col0 FROM tab0
----
12
12
12

query I rowsort
SELECT ALL + 99 AS col0 FROM tab2 cor0
----
99
99
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 0 / + col0 * col1 + 60 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL IN ( + col1 )
----

query I rowsort
SELECT col1 FROM tab1 WHERE NOT col2 * + col2 <= - - col1
----
14
47
5

onlyif mysql # DIV for integer division: 
query II rowsort label-8304
SELECT DISTINCT col2 DIV 60 * + col0 AS col0, + 11 - + 52 col1 FROM tab0
----
0
-41
97
-41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8304
SELECT DISTINCT col2 / 60 * + col0 AS col0, + 11 - + 52 col1 FROM tab0
----
0
-41
97
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-8305
SELECT 51 DIV col0 col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8305
SELECT 51 / col0 col2 FROM tab2
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8306
SELECT DISTINCT 34 DIV + col0 AS col0 FROM tab0
----
0
2

skipif mysql # not compatible
query I rowsort label-8306
SELECT DISTINCT 34 / + col0 AS col0 FROM tab0
----
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT DISTINCT COUNT( - col1 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8307
SELECT DISTINCT COUNT ( - col1 ) AS col0 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8308
SELECT col1 * - 8 + - 87 AS col2, 29 * CAST( + - col2 AS SIGNED ) FROM tab0 AS cor0
----
-255
-290
-735
-1363
-95
-2871

skipif mysql # not compatible
query II rowsort label-8308
SELECT col1 * - 8 + - 87 AS col2, 29 * CAST ( + - col2 AS INTEGER ) FROM tab0 AS cor0
----
-255
-290
-735
-1363
-95
-2871

query I rowsort
SELECT - col1 * - + 46 FROM tab1 cor0
----
2162
230
644

query II rowsort
SELECT - + col2 AS col0, 15 FROM tab1 AS cor0
----
-59
15
-68
15
-96
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8311
SELECT DISTINCT MAX( CAST( NULL AS SIGNED ) ) FROM tab0 WHERE NOT ( NULL <> + col0 / - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8311
SELECT DISTINCT MAX ( CAST ( NULL AS INTEGER ) ) FROM tab0 WHERE NOT ( NULL <> + col0 / - col2 )
----
NULL

query I rowsort
SELECT + - 97 + + + col2 * - col2 AS col1 FROM tab1 AS cor0
----
-3578
-4721
-9313

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8313
SELECT ALL + + CAST( col0 AS SIGNED ) * + col1 AS col2 FROM tab1 AS cor0
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-8313
SELECT ALL + + CAST ( col0 AS INTEGER ) * + col1 AS col2 FROM tab1 AS cor0
----
425
4277
714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + - 52 + - - col1 * + col1 col1 FROM tab2 AS cor0
----
2595
4512
5941

query I rowsort
SELECT - 40 + + 16 AS col1 FROM tab1 AS cor0
----
-24
-24
-24

query I rowsort
SELECT - 57 * col1 + + 37 FROM tab0 AS cor0
----
-1160
-20
-4580

onlyif mysql # aggregate syntax: 
query I rowsort label-8317
SELECT DISTINCT MAX( ALL + col1 ) + + ( 1 ) AS col2 FROM tab0
----
82

skipif mysql # not compatible
query I rowsort label-8317
SELECT DISTINCT MAX ( ALL + col1 ) + + ( 1 ) AS col2 FROM tab0
----
82

query III rowsort
SELECT * FROM tab2 WHERE - + col1 NOT BETWEEN - col1 AND + col0 * + col0 + 13
----

query II rowsort
SELECT DISTINCT - col1 - - - col2 + + - 61, + 54 AS col1 FROM tab1
----
-125
54
-171
54
-176
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8320
SELECT MIN( DISTINCT + + col2 ) AS col2 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-8320
SELECT MIN ( DISTINCT + + col2 ) AS col2 FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8321
SELECT ALL + MIN( ALL 49 ) FROM tab1 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-8321
SELECT ALL + MIN ( ALL 49 ) FROM tab1 AS cor0
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-8322
SELECT DISTINCT + 87 col1, - COUNT( * ) col1 FROM tab0 AS cor0
----
87
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8322
SELECT DISTINCT + 87 col1, - COUNT ( * ) col1 FROM tab0 AS cor0
----
87
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT DISTINCT - 17 * COUNT( * ) FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-8323
SELECT DISTINCT - 17 * COUNT ( * ) FROM tab0
----
-51

query II rowsort
SELECT + + col0 AS col1, col1 AS col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

query II rowsort
SELECT ALL col2 AS col1, - 90 FROM tab1 AS cor0
----
59
-90
68
-90
96
-90

query I rowsort
SELECT DISTINCT + col1 * - col1 * + + col2 * - col2 FROM tab2 AS cor0
----
1375929
15100996
9486400

query II rowsort
SELECT + + col0 AS col0, 59 + + col0 AS col2 FROM tab0 AS cor0
----
15
74
87
146
97
156

query II rowsort
SELECT DISTINCT + + col1, col0 AS col2 FROM tab0 AS cor0
----
1
97
21
87
81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8329
SELECT ALL + SUM( - - 35 ) FROM tab0 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-8329
SELECT ALL + SUM ( - - 35 ) FROM tab0 AS cor0
----
105

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + 63 <= - col2 / + col1
----

query I rowsort
SELECT DISTINCT - col2 * - - 59 AS col2 FROM tab2 AS cor0
----
-1357
-2360
-3422

onlyif mysql # aggregate syntax: 
query I rowsort label-8332
SELECT DISTINCT - ( - 30 ) * + + COUNT( * ) * 38 FROM tab0 AS cor0
----
3420

skipif mysql # not compatible
query I rowsort label-8332
SELECT DISTINCT - ( - 30 ) * + + COUNT ( * ) * 38 FROM tab0 AS cor0
----
3420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8333
SELECT DISTINCT + + 22 AS col1, + COUNT( * ) * - + CAST( MIN( + 17 ) AS SIGNED ) + ( - - COUNT( * ) ) FROM tab1 cor0
----
22
-48

skipif mysql # not compatible
query II rowsort label-8333
SELECT DISTINCT + + 22 AS col1, + COUNT ( * ) * - + CAST ( MIN ( + 17 ) AS INTEGER ) + ( - - COUNT ( * ) ) FROM tab1 cor0
----
22
-48

query I rowsort
SELECT DISTINCT 71 + + 14 AS col2 FROM tab0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8335
SELECT - COUNT( * ) * - COUNT( ALL col0 ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-8335
SELECT - COUNT ( * ) * - COUNT ( ALL col0 ) AS col2 FROM tab0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-8336
SELECT col0 DIV col2 DIV - 48 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8336
SELECT col0 / col2 / - 48 AS col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8337
SELECT + COUNT( * ) * - + 63 FROM tab1
----
-189

skipif mysql # not compatible
query I rowsort label-8337
SELECT + COUNT ( * ) * - + 63 FROM tab1
----
-189

query I rowsort
SELECT - col0 + - col1 FROM tab2 WHERE NOT - col1 NOT IN ( + col0, 48, + col2 )
----

query I rowsort
SELECT - col1 * + + ( - ( + + col0 ) ) AS col2 FROM tab1
----
425
4277
714

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 + + col0 - - 7 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8341
SELECT DISTINCT - COUNT( * ) * - 11 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-8341
SELECT DISTINCT - COUNT ( * ) * - 11 FROM tab0
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8342
SELECT CAST( + - col2 AS SIGNED ) + + 51 + - col1 FROM tab1 cor0
----
-13
-59
-64

skipif mysql # not compatible
query I rowsort label-8342
SELECT CAST ( + - col2 AS INTEGER ) + + 51 + - col1 FROM tab1 cor0
----
-13
-59
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8343
SELECT ALL - COUNT( * ) + - ( - 1 ) AS col2 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-8343
SELECT ALL - COUNT ( * ) + - ( - 1 ) AS col2 FROM tab1 AS cor0
----
-2

query I rowsort
SELECT + col1 * - 75 + + - 85 FROM tab2
----
-3910
-5110
-5860

query III rowsort
SELECT * FROM tab1 WHERE - + 69 IS NULL
----

query I rowsort
SELECT - 76 * + col1 / + col2 AS col1 FROM tab0 AS cor0 WHERE ( col0 ) = NULL
----

query I rowsort
SELECT ( 24 ) AS col1 FROM tab1 AS cor0 WHERE col2 NOT BETWEEN - + 29 AND col1 + - 81
----
24
24
24

query I rowsort
SELECT DISTINCT + ( + col1 ) FROM tab2 AS cor0 WHERE NOT + 20 + + - 63 >= NULL
----

query I rowsort
SELECT DISTINCT 62 + col0 - + + col0 FROM tab2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8350
SELECT - COUNT( * ) - + 7 AS col2 FROM tab1
----
-10

skipif mysql # not compatible
query I rowsort label-8350
SELECT - COUNT ( * ) - + 7 AS col2 FROM tab1
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8351
SELECT - col1 - - col1 + - col0 * col0 + + + CAST( + 65 AS SIGNED ) * - + col1 + + - 74 AS col2 FROM tab0
----
-5564
-9008
-9548

skipif mysql # not compatible
query I rowsort label-8351
SELECT - col1 - - col1 + - col0 * col0 + + + CAST ( + 65 AS INTEGER ) * - + col1 + + - 74 AS col2 FROM tab0
----
-5564
-9008
-9548

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8352
SELECT CAST( NULL AS SIGNED ) - ( col1 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8352
SELECT CAST ( NULL AS INTEGER ) - ( col1 ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + - ( + col2 ) FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8354
SELECT + col2 DIV + col0 + col0 FROM tab0
----
18
87
98

skipif mysql # not compatible
query I rowsort label-8354
SELECT + col2 / + col0 + col0 FROM tab0
----
18
87
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8355
SELECT DISTINCT 36 + + COUNT( * ) + + COUNT( * ) FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-8355
SELECT DISTINCT 36 + + COUNT ( * ) + + COUNT ( * ) FROM tab0
----
42

query III rowsort
SELECT ALL * FROM tab2 WHERE - + 93 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8357
SELECT ALL + - COUNT( * ) * - 35, 41 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
105
41

skipif mysql # not compatible
query II rowsort label-8357
SELECT ALL + - COUNT ( * ) * - 35, 41 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
105
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 48 col0 FROM tab0 AS cor0
----
48

query I rowsort
SELECT DISTINCT - 17 * + + col0 AS col2 FROM tab1 AS cor0
----
-1445
-1547
-867

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - + 0 col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8361
SELECT DISTINCT * FROM tab2 WHERE NOT ( + col0 <> CAST( col1 AS SIGNED ) * - 45 * + col1 - - + col2 - col2 * - - col1 )
----

skipif mysql # not compatible
query III rowsort label-8361
SELECT DISTINCT * FROM tab2 WHERE NOT ( + col0 <> CAST ( col1 AS INTEGER ) * - 45 * + col1 - - + col2 - col2 * - - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + 25 * - col2 + - 62 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8363
SELECT ALL - - 87 FROM tab2 AS cor0 WHERE NOT CAST( - + ( + + 62 ) AS DECIMAL ) IS NULL
----
87
87
87

skipif mysql # not compatible
query I rowsort label-8363
SELECT ALL - - 87 FROM tab2 AS cor0 WHERE NOT CAST ( - + ( + + 62 ) AS REAL ) IS NULL
----
87
87
87

onlyif mysql # DIV for integer division: 
query I rowsort label-8364
SELECT - - col2 DIV - - col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8364
SELECT - - col2 / - - col2 FROM tab2 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 55 col1, 50 AS col0 FROM tab0 AS cor0
----
-55
50
-55
50
-55
50

query II rowsort
SELECT col0, + 5 FROM tab2 AS cor0
----
46
5
64
5
75
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8367
SELECT DISTINCT - + COUNT( * ) DIV + COUNT( * ) + + - 86 AS col1, - 34 FROM tab2 AS cor0
----
-87
-34

skipif mysql # not compatible
query II rowsort label-8367
SELECT DISTINCT - + COUNT ( * ) / + COUNT ( * ) + + - 86 AS col1, - 34 FROM tab2 AS cor0
----
-87
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8368
SELECT ALL col2 * 18 + col1 + 84 / + + col2 * - - col0 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8368
SELECT ALL col2 * 18 + col1 + 84 / + + col2 * - - col0 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, col1 * - col2 FROM tab2
----
46
-1173
64
-3080
75
-3886

query I rowsort
SELECT col1 + col2 * + col0 FROM tab0
----
786
891
9604

query I rowsort
SELECT - 37 * - - col0 + 39 AS col0 FROM tab2
----
-1663
-2329
-2736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8372
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - COUNT( * ) + + 41 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8372
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) + + 41 AS col0 FROM tab0
----
NULL

query I rowsort
SELECT - col1 + - 22 + col0 FROM tab0
----
-88
44
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8374
SELECT ALL + MAX( ALL col0 ) AS col2 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-8374
SELECT ALL + MAX ( ALL col0 ) AS col2 FROM tab2
----
75

query I rowsort
SELECT + 17 FROM tab1 WHERE NULL IS NULL
----
17
17
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8376
SELECT + 49 DIV COUNT( * ) * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-8376
SELECT + 49 / COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-48

query I rowsort
SELECT ALL + - col1 * - 9 AS col0 FROM tab2 AS cor0
----
459
603
693

onlyif mysql # aggregate syntax: 
query I rowsort label-8378
SELECT DISTINCT - 13 * - COUNT( * ) FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-8378
SELECT DISTINCT - 13 * - COUNT ( * ) FROM tab1 AS cor0
----
39

query II rowsort
SELECT + + col1, col1 * + 71 FROM tab0 WHERE + - ( + col1 ) IS NOT NULL
----
1
71
21
1491
81
5751

query II rowsort
SELECT - col0 + - col1, + col1 AS col1 FROM tab1 AS cor0
----
-138
47
-65
14
-90
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8381
SELECT ALL 91 - 82 * ( + 96 ) * col2 + + ( - 80 ) DIV + col2 col1 FROM tab1 AS cor0
----
-464358
-535206
-755621

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8381
SELECT ALL 91 - 82 * ( + 96 ) * col2 + + ( - 80 ) / + col2 col1 FROM tab1 AS cor0
----
-464358
-535206
-755621

query I rowsort
SELECT + + col2 + + 22 FROM tab0 AS cor0
----
121
32
69

query I rowsort
SELECT ALL 99 * col2 - col0 FROM tab0 cor0
----
4638
903
9704

query I rowsort
SELECT col1 + - - col1 AS col1 FROM tab2 AS cor0
----
102
134
154

onlyif mysql # DIV for integer division: 
query I rowsort label-8385
SELECT DISTINCT + col2 DIV - + ( + - col1 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8385
SELECT DISTINCT + col2 / - + ( + - col1 ) AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8386
SELECT ALL + - 99 - - 95 * + - SUM( 74 ) AS col2 FROM tab0 AS cor0
----
-21189

skipif mysql # not compatible
query I rowsort label-8386
SELECT ALL + - 99 - - 95 * + - SUM ( 74 ) AS col2 FROM tab0 AS cor0
----
-21189

query I rowsort
SELECT - 76 + - 62 AS col0 FROM tab2 AS cor0
----
-138
-138
-138

query I rowsort
SELECT col0 AS col0 FROM tab1 cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT DISTINCT + ( - ( - col0 ) ) AS col2 FROM tab1 AS cor0
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 41 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col1 col2 FROM tab1 WHERE ( + col0 ) < col1 * + + 32
----
10
28
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8392
SELECT ALL - CAST( + - AVG ( - CAST( NULL AS SIGNED ) ) AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8392
SELECT ALL - CAST ( + - AVG ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col0 * 87 col1, ( + col1 ) * 62 AS col1 FROM tab2 AS cor0 WHERE 92 + - col2 * + 30 / - ( + col1 ) + + 61 IS NOT NULL
----
-4002
3162
-5568
4774
-6525
4154

query I rowsort
SELECT - - 74 * - 0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8395
SELECT - CAST( + - 53 AS SIGNED ) FROM tab1
----
53
53
53

skipif mysql # not compatible
query I rowsort label-8395
SELECT - CAST ( + - 53 AS INTEGER ) FROM tab1
----
53
53
53

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8396
SELECT + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0 WHERE NOT + CAST( + col1 AS DECIMAL ) NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8396
SELECT + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0 WHERE NOT + CAST ( + col1 AS REAL ) NOT BETWEEN NULL AND NULL
----
NULL

query II rowsort
SELECT + ( + 60 ), - 49 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT ALL MIN( DISTINCT - - 72 ) FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-8398
SELECT ALL MIN ( DISTINCT - - 72 ) FROM tab0 AS cor0
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8399
SELECT + 76 DIV - COUNT( * ) col2 FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8399
SELECT + 76 / - COUNT ( * ) col2 FROM tab2 AS cor0
----
-25

query I rowsort
SELECT DISTINCT 82 + - - col1 * - - col2 * + col0 AS col0 FROM tab1
----
25157
290918
68626

query I rowsort
SELECT - 49 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + col2 + col2 <= ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8403
SELECT COUNT( * ) * + MAX( DISTINCT + - 30 ) FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-8403
SELECT COUNT ( * ) * + MAX ( DISTINCT + - 30 ) FROM tab1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8404
SELECT + MIN( ALL 44 ) AS col1 FROM tab2
----
44

skipif mysql # not compatible
query I rowsort label-8404
SELECT + MIN ( ALL 44 ) AS col1 FROM tab2
----
44

query I rowsort
SELECT 4 * - col0 FROM tab1
----
-204
-340
-364

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8406
SELECT DISTINCT + CAST( - 82 AS SIGNED ) + + col2 col1 FROM tab0
----
-35
-72
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8406
SELECT DISTINCT + CAST ( - 82 AS INTEGER ) + + col2 col1 FROM tab0
----
-35
-72
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8407
SELECT - MAX( ALL 15 ) FROM tab1 WHERE + + col0 * col2 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8407
SELECT - MAX ( ALL 15 ) FROM tab1 WHERE + + col0 * col2 >= NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8408
SELECT 12 * 27 DIV + 20 AS col2 FROM tab2
----
16
16
16

skipif mysql # not compatible
query I rowsort label-8408
SELECT 12 * 27 / + 20 AS col2 FROM tab2
----
16
16
16

query I rowsort
SELECT col2 * + + 37 AS col0 FROM tab1
----
2183
2516
3552

onlyif mysql # aggregate syntax: 
query I rowsort label-8410
SELECT - COUNT( * ) + 83 AS col1 FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-8410
SELECT - COUNT ( * ) + 83 AS col1 FROM tab2 AS cor0
----
80

query I rowsort
SELECT DISTINCT - - 55 * col1 AS col1 FROM tab0 AS cor0
----
1155
4455
55

query I rowsort
SELECT ALL - col0 + - - col2 - - ( col1 ) AS col2 FROM tab1 AS cor0
----
-21
24
59

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * - + 65 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 * - 18 IS NULL
----

query I rowsort
SELECT DISTINCT - 29 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT - - 6 + + + MAX( - col1 ) AS col1 FROM tab1 WHERE + col0 * + 42 <= - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-8416
SELECT - - 6 + + + MAX ( - col1 ) AS col1 FROM tab1 WHERE + col0 * + 42 <= - 36
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8417
SELECT DISTINCT - col1 DIV + - 73 + - - 15 FROM tab2
----
15
16

skipif mysql # not compatible
query I rowsort label-8417
SELECT DISTINCT - col1 / + - 73 + - - 15 FROM tab2
----
15
16

onlyif mysql # aggregate syntax: 
query II rowsort label-8418
SELECT ALL ( - MAX( DISTINCT - 47 ) ) AS col2, 67 AS col0 FROM tab1, tab2 AS cor0
----
47
67

skipif mysql # not compatible
query II rowsort label-8418
SELECT ALL ( - MAX ( DISTINCT - 47 ) ) AS col2, 67 AS col0 FROM tab1, tab2 AS cor0
----
47
67

query I rowsort
SELECT DISTINCT + 16 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-8420
SELECT ALL col2 DIV ( col1 ) FROM tab0 cor0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-8420
SELECT ALL col2 / ( col1 ) FROM tab0 cor0
----
0
0
99

query I rowsort
SELECT DISTINCT - 92 * + col0 + + - col1 - col0 + - col2 AS col2 FROM tab1 AS cor0
----
-4853
-7969
-8578

query II rowsort
SELECT ALL col1 AS col0, - col2 AS col2 FROM tab0 cor0
----
1
-99
21
-10
81
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8423
SELECT - ( - + COUNT( * ) ) * + - COUNT( * ) - - + COUNT( * ) - 79 AS col1 FROM tab2
----
-85

skipif mysql # not compatible
query I rowsort label-8423
SELECT - ( - + COUNT ( * ) ) * + - COUNT ( * ) - - + COUNT ( * ) - 79 AS col1 FROM tab2
----
-85

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 * + ( + 54 ) / col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 * - 40 * col2 FROM tab2
----
-134560
-21160
-64000

onlyif mysql # DIV for integer division: 
query I rowsort label-8426
SELECT col0 DIV + - col0 AS col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8426
SELECT col0 / + - col0 AS col1 FROM tab2
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8427
SELECT ALL col1 * - col1 DIV col1 AS col0 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-8427
SELECT ALL col1 * - col1 / col1 AS col0 FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8428
SELECT ALL + COUNT( ALL - - col1 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8428
SELECT ALL + COUNT ( ALL - - col1 ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8429
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE - 48 IN ( + + col0, - col1, - - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-8429
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE - 48 IN ( + + col0, - col1, - - col1 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8430
SELECT ALL + col2 DIV - col0 + - col0 AS col1 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-8430
SELECT ALL + col2 / - col0 + - col0 AS col1 FROM tab2 AS cor0
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 0 col1 FROM tab0 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8432
SELECT - COUNT( + - ( - col2 ) ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8432
SELECT - COUNT ( + - ( - col2 ) ) FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-8433
SELECT ALL 69, COUNT( * ) AS col1 FROM tab1
----
69
3

skipif mysql # not compatible
query II rowsort label-8433
SELECT ALL 69, COUNT ( * ) AS col1 FROM tab1
----
69
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8434
SELECT ALL + COUNT( - 65 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8434
SELECT ALL + COUNT ( - 65 ) AS col0 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - + 25 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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 I rowsort label-8437
SELECT ALL 44 + - 48 * + CAST( NULL 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-8437
SELECT ALL 44 + - 48 * + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 5 - + col2 * - - ( + + col1 ) - 70 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8439
SELECT + COUNT( * ) + + COUNT( * ) AS col1 FROM tab2 cor0
----
6

skipif mysql # not compatible
query I rowsort label-8439
SELECT + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab2 cor0
----
6

query I rowsort
SELECT - 25 + + col0 + + col2 FROM tab1 AS cor0
----
119
122
134

query I rowsort
SELECT DISTINCT + col2 + - 31 + + 82 FROM tab0
----
150
61
98

query I rowsort
SELECT DISTINCT + ( - col0 ) + - + 27 FROM tab2
----
-102
-73
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8443
SELECT + col1 / - col2 + - + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8443
SELECT + col1 / - col2 + - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + - - 97 + + + 60 AS col1 FROM tab1
----
208
242
248

query I rowsort
SELECT 41 + - - 12 AS col1 FROM tab0 WHERE NULL IN ( + + col0 + - col2 * + 60 * + + col1 / - + col1 / + col1 + + col0 + + - col0 * 4 )
----

query I rowsort
SELECT ALL col1 - - - 52 FROM tab0
----
-31
-51
29

query II rowsort
SELECT - 91 * - + 35 AS col0, + col2 AS col1 FROM tab1 AS cor0
----
3185
59
3185
68
3185
96

onlyif mysql # DIV for integer division: 
query I rowsort label-8448
SELECT + 95 DIV + + col2 FROM tab2 AS cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-8448
SELECT + 95 / + + col2 FROM tab2 AS cor0
----
1
2
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8449
SELECT - - MAX( ALL - 41 ) FROM tab0 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-8449
SELECT - - MAX ( ALL - 41 ) FROM tab0 AS cor0
----
-41

query I rowsort
SELECT ALL ( + 22 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT DISTINCT ( - col0 ) - + - col0 * + 72 FROM tab1
----
3621
6035
6461

query I rowsort
SELECT ALL - 3 - + ( - col2 ) + - col1 + - col2 AS col2 FROM tab0 AS cor0
----
-24
-4
-84

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND - ( + + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 27 IS NOT NULL
----

query I rowsort
SELECT ALL + + 37 AS col1 FROM tab2 AS cor0
----
37
37
37

query I rowsort
SELECT + col2 * + ( - col1 ) * 80 AS col1 FROM tab2 AS cor0
----
-246400
-310880
-93840

onlyif mysql # aggregate syntax: 
query I rowsort label-8457
SELECT ALL SUM( ALL col1 ) AS col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-8457
SELECT ALL SUM ( ALL col1 ) AS col1 FROM tab1 AS cor0
----
66

query I rowsort
SELECT ALL - 84 * - col0 FROM tab2
----
3864
5376
6300

onlyif mysql # aggregate syntax: 
query I rowsort label-8459
SELECT DISTINCT MIN( - 43 ) AS col0 FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-8459
SELECT DISTINCT MIN ( - 43 ) AS col0 FROM tab2
----
-43

query II rowsort
SELECT col2 AS col1, - col0 + - 93 AS col0 FROM tab1
----
59
-178
68
-184
96
-144

onlyif mysql # DIV for integer division: 
query I rowsort label-8461
SELECT DISTINCT - 80 DIV - + col2 AS col1 FROM tab0
----
0
1
8

skipif mysql # not compatible
query I rowsort label-8461
SELECT DISTINCT - 80 / - + col2 AS col1 FROM tab0
----
0
1
8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8462
SELECT ALL + - col2 * CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8462
SELECT ALL + - col2 * CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 89 col1, - col1 FROM tab1 AS cor0
----
89
-14
89
-47
89
-5

query II rowsort
SELECT + - col0, + col0 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

query II rowsort
SELECT col2 + + 75 AS col0, col1 + 36 + + col1 * 10 FROM tab1
----
134
91
143
553
171
190

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
59
68
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 > + 76 + + + 73
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = - col2 * + - col0
----

query I rowsort
SELECT DISTINCT 70 * col1 + - 9 * + col2 FROM tab2 AS cor0
----
3363
4168
5030

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT ALL + ( COUNT( * ) ) + - - COUNT( 23 ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-8470
SELECT ALL + ( COUNT ( * ) ) + - - COUNT ( 23 ) FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8471
SELECT COUNT( * ) AS col1 FROM tab0 WHERE NULL <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8471
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE NULL <> ( NULL )
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 6 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8473
SELECT DISTINCT - ( - 4 ) DIV - 42 * - + 85 + - MAX( - col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-8473
SELECT DISTINCT - ( - 4 ) / - 42 * - + 85 + - MAX ( - col0 ) FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8474
SELECT ALL + 63 + - COUNT( * ) FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-8474
SELECT ALL + 63 + - COUNT ( * ) FROM tab1
----
60

query I rowsort
SELECT ALL col1 - 57 FROM tab0
----
-36
-56
24

query I rowsort
SELECT - 89 - + col1 - - 67 + + col1 FROM tab2
----
-22
-22
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8477
SELECT 12 + MAX( ALL 40 ) AS col1 FROM tab0
----
52

skipif mysql # not compatible
query I rowsort label-8477
SELECT 12 + MAX ( ALL 40 ) AS col1 FROM tab0
----
52

query I rowsort
SELECT col1 * col2 + + - 49 FROM tab2 cor0
----
1124
3031
3837

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8479
SELECT DISTINCT - + CAST( ( + COUNT( DISTINCT - col1 ) ) AS SIGNED ) + - 3 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8479
SELECT DISTINCT - + CAST ( ( + COUNT ( DISTINCT - col1 ) ) AS INTEGER ) + - 3 FROM tab1 AS cor0
----
-6

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( + + 41 ) + + - 33 * ( - col2 )
----

query I rowsort
SELECT + ( + - 86 ) * col0 + 34 FROM tab0 AS cor0
----
-1256
-7448
-8308

query I rowsort
SELECT DISTINCT + col2 * - col1 + - - ( col0 ) + - col1 FROM tab2
----
-1178
-3093
-3878

onlyif mysql # aggregate syntax: 
query I rowsort label-8483
SELECT 50 * - COUNT( * ) FROM tab0
----
-150

skipif mysql # not compatible
query I rowsort label-8483
SELECT 50 * - COUNT ( * ) FROM tab0
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-8484
SELECT SUM( ALL + + col2 ) AS col2 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-8484
SELECT SUM ( ALL + + col2 ) AS col2 FROM tab1
----
223

query I rowsort
SELECT 70 * + + 23 AS col2 FROM tab2 cor0
----
1610
1610
1610

onlyif mysql # DIV for integer division: 
query II rowsort label-8486
SELECT ALL + col2 * + col1 + + - col2 DIV col1 col2, + col2 DIV + - col2 AS col1 FROM tab1 cor0
----
1338
-1
284
-1
3195
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8486
SELECT ALL + col2 * + col1 + + - col2 / col1 col2, + col2 / + - col2 AS col1 FROM tab1 cor0
----
1338
-1
284
-1
3195
-1

query I rowsort
SELECT ALL + col1 * - - col1 AS col2 FROM tab1
----
196
2209
25

query I rowsort
SELECT ALL + col1 * + 33 FROM tab2
----
1683
2211
2541

query I rowsort
SELECT DISTINCT 61 * - 58 AS col0 FROM tab0
----
-3538

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8490
SELECT + + CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8490
SELECT + + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - col2 ) * + - col2 AS col0 FROM tab2 AS cor0
----
1600
3364
529

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 NOT BETWEEN + col0 * + col1 - - col2 - - col1 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8493
SELECT COUNT( * ) AS col2 FROM tab1 WHERE col2 / - col0 + + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8493
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE col2 / - col0 + + col1 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 50 BETWEEN + + 31 + - + col0 AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 68 AS col2 FROM tab2 AS cor0 WHERE NULL >= col0 - + ( - - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8496
SELECT - col0 + + - ( + col1 ) + - col2 DIV - - col0 * + col0 col0 FROM tab2 AS cor0
----
-141
-142
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8496
SELECT - col0 + + - ( + col1 ) + - col2 / - - col0 * + col0 col0 FROM tab2 AS cor0
----
-141
-142
-97

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab2 AS cor0 WHERE NOT 50 IS NULL
----
46
64
75

query I rowsort
SELECT + col1 + + col2 * - - 27 FROM tab2 AS cor0
----
1157
1633
672

query I rowsort
SELECT col0 + + - col2 * col2 + - + 8 FROM tab0
----
-21
-2202
-9712

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 = - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8501
SELECT ALL MAX( - + col2 ) AS col2 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-8501
SELECT ALL MAX ( - + col2 ) AS col2 FROM tab2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8502
SELECT DISTINCT - 20 + - + COUNT( * ) + 84 * - 13 * - COUNT( * ) FROM tab2
----
3253

skipif mysql # not compatible
query I rowsort label-8502
SELECT DISTINCT - 20 + - + COUNT ( * ) + 84 * - 13 * - COUNT ( * ) FROM tab2
----
3253

onlyif mysql # aggregate syntax: 
query I rowsort label-8503
SELECT DISTINCT - 14 - + ( - COUNT( * ) ) AS col0 FROM tab1
----
-11

skipif mysql # not compatible
query I rowsort label-8503
SELECT DISTINCT - 14 - + ( - COUNT ( * ) ) AS col0 FROM tab1
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8504
SELECT - 7 * + - CAST( NULL AS SIGNED ) AS col0, - 3 FROM tab1
----
NULL
-3
NULL
-3
NULL
-3

skipif mysql # not compatible
query II rowsort label-8504
SELECT - 7 * + - CAST ( NULL AS INTEGER ) AS col0, - 3 FROM tab1
----
NULL
-3
NULL
-3
NULL
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + ( - + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col0 + - col1 + + + col0 AS col1 FROM tab0
----
-1
-21
-81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 80 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * - col1 AS col1, + col0 col0 FROM tab0 AS cor0
----
-210
87
-3807
15
-99
97

query I rowsort
SELECT ALL 63 AS col2 FROM tab1 AS cor0 WHERE NOT col2 * + col0 + 77 BETWEEN - 61 AND - + 39
----
63
63
63

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 57 - 97 - + col1 <= + ( - + 16 ) * + col2 * col1 / - 59 * + + col1 * 41 * + 20
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 - ( + 2 ) col0 FROM tab0 AS cor0
----
51
51
51

query I rowsort
SELECT DISTINCT 9 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT 19 * col1 FROM tab0
----
1539
19
399

query I rowsort
SELECT DISTINCT + col1 * + col2 * - 80 FROM tab1
----
-107520
-23600
-255680

query I rowsort
SELECT ALL + + 30 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8516
SELECT ( + CAST( + - MAX( + 81 ) AS SIGNED ) ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8516
SELECT ( + CAST ( + - MAX ( + 81 ) AS INTEGER ) ) FROM tab0 AS cor0
----
-81

query I rowsort
SELECT ALL + col2 - + + col2 - col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8518
SELECT 88, + COUNT( * ) AS col0 FROM tab1 cor0
----
88
3

skipif mysql # not compatible
query II rowsort label-8518
SELECT 88, + COUNT ( * ) AS col0 FROM tab1 cor0
----
88
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT DISTINCT + SUM( ALL - - col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-8519
SELECT DISTINCT + SUM ( ALL - - col2 ) FROM tab1 AS cor0
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8520
SELECT DISTINCT - col2 FROM tab0 cor0 WHERE NOT col2 - col1 + + ( col2 ) * col1 NOT BETWEEN - - CAST( NULL AS SIGNED ) AND ( - + col0 )
----

skipif mysql # not compatible
query I rowsort label-8520
SELECT DISTINCT - col2 FROM tab0 cor0 WHERE NOT col2 - col1 + + ( col2 ) * col1 NOT BETWEEN - - CAST ( NULL AS INTEGER ) AND ( - + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + - col2 ) col2 FROM tab1 cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT ALL - MAX( - + 45 ) FROM tab2 WHERE NOT NULL <> + ( ( col2 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8522
SELECT ALL - MAX ( - + 45 ) FROM tab2 WHERE NOT NULL <> + ( ( col2 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8523
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) AS col1, 46 AS col2 FROM tab2
----
-9
46

skipif mysql # not compatible
query II rowsort label-8523
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) AS col1, 46 AS col2 FROM tab2
----
-9
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8524
SELECT - COUNT( * ) FROM tab1 WHERE NOT - 82 * - 31 + - - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8524
SELECT - COUNT ( * ) FROM tab1 WHERE NOT - 82 * - 31 + - - col0 IS NOT NULL
----
0

query I rowsort
SELECT - ( - 60 ) AS col0 FROM tab1
----
60
60
60

query I rowsort
SELECT - ( - col2 ) * - + col2 AS col2 FROM tab1
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-8527
SELECT ALL + COUNT( DISTINCT 87 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-8527
SELECT ALL + COUNT ( DISTINCT 87 ) FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8528
SELECT 64 * + - COUNT( ALL + 35 ) FROM tab1
----
-192

skipif mysql # not compatible
query I rowsort label-8528
SELECT 64 * + - COUNT ( ALL + 35 ) FROM tab1
----
-192

query I rowsort
SELECT ALL + + 47 AS col0 FROM tab0 AS cor0
----
47
47
47

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE 5 <> NULL
----

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE + 58 NOT BETWEEN - + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8532
SELECT 0 + - 96 + 56 * + COUNT( * ) FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-8532
SELECT 0 + - 96 + 56 * + COUNT ( * ) FROM tab0
----
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 27 + - col1 - col0 col0 FROM tab0
----
1173
162
2575

query II rowsort
SELECT col0 * 29 + + + ( - col0 ) * + - col2 * + ( col1 ) + - col0 - + 25 * - - col1 AS col1, - col0 FROM tab0
----
12294
-97
20181
-87
55500
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-8535
SELECT 23, ( + COUNT( * ) ) AS col0 FROM tab0
----
23
3

skipif mysql # not compatible
query II rowsort label-8535
SELECT 23, ( + COUNT ( * ) ) AS col0 FROM tab0
----
23
3

query II rowsort
SELECT ALL + col2 AS col0, 53 * - col0 FROM tab1 AS cor0
----
59
-4505
68
-4823
96
-2703

query I rowsort
SELECT DISTINCT 92 * col1 * col1 - - - col2 * - + 53 + col0 FROM tab1 AS cor0
----
206923
23171
5512

query I rowsort
SELECT ALL - ( col2 ) * + 86 FROM tab0 AS cor0
----
-4042
-8514
-860

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 NOT BETWEEN + col2 AND + col2 + 6
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE 20 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8541
SELECT ALL - ( - - COUNT( * ) ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8541
SELECT ALL - ( - - COUNT ( * ) ) FROM tab1 cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - 80 + + 50 col1 FROM tab0
----
-3710
-750
-7870

query I rowsort
SELECT 79 - - col2 + - col0 FROM tab2
----
55
56
62

query I rowsort
SELECT - col2 * + + 24 - - ( + + 48 ) AS col2 FROM tab1
----
-1368
-1584
-2256

query I rowsort
SELECT col2 - - - col0 FROM tab0
----
-77
2
32

query I rowsort
SELECT ALL col2 + - col2 + + - col1 * + ( 73 ) AS col2 FROM tab2
----
-3723
-4891
-5621

query I rowsort
SELECT ALL + + col1 FROM tab0 WHERE - - col0 > 45
----
1
21

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8548
SELECT DISTINCT ( - CAST( NULL AS DECIMAL ) ) + - col1 FROM tab2 cor0 WHERE NOT - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8548
SELECT DISTINCT ( - CAST ( NULL AS REAL ) ) + - col1 FROM tab2 cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8549
SELECT DISTINCT - + MIN( + col2 ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8549
SELECT DISTINCT - + MIN ( + col2 ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col0 * - col2 + - 37 * + + col1 - col1 AS col1 FROM tab2 WHERE NOT 63 IS NULL
----
-2996
-5486
-6896

query I rowsort
SELECT ALL - + 33 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT - 82 * COUNT( * ) * 24 AS col1 FROM tab0
----
-5904

skipif mysql # not compatible
query I rowsort label-8552
SELECT - 82 * COUNT ( * ) * 24 AS col1 FROM tab0
----
-5904

query I rowsort
SELECT ALL + col0 AS col2 FROM tab0 WHERE NOT NULL NOT IN ( - col1 + col1 * col0, col0, + 83, + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT + SUM( + 86 ) FROM tab0 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-8554
SELECT + SUM ( + 86 ) FROM tab0 AS cor0
----
258

onlyif mysql # aggregate syntax: 
query I rowsort label-8555
SELECT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 15 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8555
SELECT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 15 AND NULL
----
0

query I rowsort
SELECT DISTINCT 50 * + 79 + col2 * col0 FROM tab1 AS cor0
----
10138
8846
8965

query II rowsort
SELECT + 96 AS col1, - col0 FROM tab1
----
96
-51
96
-85
96
-91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col1 NOT BETWEEN - - 62 * + 0 AND + 4 * col0 / + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col0 + col1 + col0 col2 FROM tab2
----
2213
4237
5767

query I rowsort
SELECT - col0 * col2 + - 80 + + col1 FROM tab1
----
-4962
-5090
-6221

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8561
SELECT col2 + - CAST( NULL AS SIGNED ) + - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8561
SELECT col2 + - CAST ( NULL AS INTEGER ) + - col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8562
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8562
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 WHERE NOT col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT ALL + ( COUNT( - col1 ) ) * 73 + - - 29 + 7 FROM tab0
----
255

skipif mysql # not compatible
query I rowsort label-8563
SELECT ALL + ( COUNT ( - col1 ) ) * 73 + - - 29 + 7 FROM tab0
----
255

query I rowsort
SELECT ALL - 69 * + 7 FROM tab2
----
-483
-483
-483

query I rowsort
SELECT + 3 AS col0 FROM tab0 WHERE NOT NULL = - col1
----

query I rowsort
SELECT DISTINCT - - col2 FROM tab0 WHERE + col2 * col0 IS NULL
----

query I rowsort
SELECT ALL + + col0 * - + 17 FROM tab2 WHERE - + col2 IS NOT NULL
----
-1088
-1275
-782

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8568
SELECT - - CAST( NULL AS DECIMAL ) + 71 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8568
SELECT - - CAST ( NULL AS REAL ) + 71 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT - 86 + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-8569
SELECT - 86 + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-89

query I rowsort
SELECT + - 13 + + 8 FROM tab0 cor0
----
-5
-5
-5

query I rowsort
SELECT ALL 61 * - col1 FROM tab2 AS cor0
----
-3111
-4087
-4697

query I rowsort
SELECT ALL - + col0 FROM tab0 AS cor0 WHERE NULL > col1
----

query I rowsort
SELECT DISTINCT ( - - ( + col1 ) ) AS col2 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT ALL + - 31 + - + col1 * + col0 FROM tab0 AS cor0
----
-1246
-128
-1858

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 17 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8576
SELECT 45 * 24 + + COUNT( * ) - 9 AS col2 FROM tab0 AS cor0
----
1074

skipif mysql # not compatible
query I rowsort label-8576
SELECT 45 * 24 + + COUNT ( * ) - 9 AS col2 FROM tab0 AS cor0
----
1074

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8577
SELECT ALL + CAST( + 68 AS SIGNED ) AS col2 FROM tab0
----
68
68
68

skipif mysql # not compatible
query I rowsort label-8577
SELECT ALL + CAST ( + 68 AS INTEGER ) AS col2 FROM tab0
----
68
68
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8578
SELECT 99 * - CAST( - col0 AS SIGNED ) FROM tab1
----
5049
8415
9009

skipif mysql # not compatible
query I rowsort label-8578
SELECT 99 * - CAST ( - col0 AS INTEGER ) FROM tab1
----
5049
8415
9009

onlyif mysql # aggregate syntax: 
query I rowsort label-8579
SELECT DISTINCT MIN( + col2 ) col1 FROM tab2
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8579
SELECT DISTINCT MIN ( + col2 ) col1 FROM tab2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8580
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 86 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8580
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 86 AS col0 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 ) + - col2 col1 FROM tab1
----
-144
-147
-159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8582
SELECT DISTINCT + COUNT( - - col1 ) + + - CAST( NULL AS SIGNED ) * - + MAX( ALL - 31 ) col2 FROM tab0 WHERE - - col0 * + col0 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8582
SELECT DISTINCT + COUNT ( - - col1 ) + + - CAST ( NULL AS INTEGER ) * - + MAX ( ALL - 31 ) col2 FROM tab0 WHERE - - col0 * + col0 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT col0 + 67 AS col0 FROM tab0
----
154
164
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8584
SELECT ALL col1 + - CAST( - + col2 AS SIGNED ) * 55 AS col0 FROM tab0
----
2666
5446
571

skipif mysql # not compatible
query I rowsort label-8584
SELECT ALL col1 + - CAST ( - + col2 AS INTEGER ) * 55 AS col0 FROM tab0
----
2666
5446
571

query I rowsort
SELECT col2 * ( + - col2 ) * + col0 FROM tab1
----
-295885
-420784
-470016

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) > col0 + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8587
SELECT ALL col0 AS col0, CAST( + - 26 AS SIGNED ) FROM tab1
----
51
-26
85
-26
91
-26

skipif mysql # not compatible
query II rowsort label-8587
SELECT ALL col0 AS col0, CAST ( + - 26 AS INTEGER ) FROM tab1
----
51
-26
85
-26
91
-26

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col0 <= + - col2
----
15
81
47
97
1
99

query I rowsort
SELECT DISTINCT - 46 * + + 2 AS col0 FROM tab1
----
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 col1 FROM tab2 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8591
SELECT - ( + - COUNT( * ) ) * - - COUNT( * ) + - 52 FROM tab1 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-8591
SELECT - ( + - COUNT ( * ) ) * - - COUNT ( * ) + - 52 FROM tab1 AS cor0
----
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col0, + col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8593
SELECT ( - MAX( DISTINCT + 50 ) ) AS col1 FROM tab0 cor0
----
-50

skipif mysql # not compatible
query I rowsort label-8593
SELECT ( - MAX ( DISTINCT + 50 ) ) AS col1 FROM tab0 cor0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8594
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE - col2 + col0 >= 65
----
1

skipif mysql # not compatible
query I rowsort label-8594
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE - col2 + col0 >= 65
----
1

query I rowsort
SELECT - 47 * col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT NULL BETWEEN ( NULL ) AND NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE + col0 >= col0 - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT + + 28 + COUNT( * ) + - COUNT( * ) AS col2 FROM tab2 cor0
----
28

skipif mysql # not compatible
query I rowsort label-8598
SELECT + + 28 + COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab2 cor0
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-8599
SELECT ALL + col1 DIV + - col1 + - col1 FROM tab2
----
-52
-68
-78

skipif mysql # not compatible
query I rowsort label-8599
SELECT ALL + col1 / + - col1 + - col1 FROM tab2
----
-52
-68
-78

query I rowsort
SELECT ALL + col0 * + - col2 - - ( - col2 ) + - 6 * - - col2 * + 52 AS col1 FROM tab2
----
-15080
-22504
-8257

query I rowsort
SELECT + + ( 17 ) AS col1 FROM tab2 cor0
----
17
17
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8602
SELECT - CAST( + 82 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-82
-82
-82

skipif mysql # not compatible
query I rowsort label-8602
SELECT - CAST ( + 82 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-82
-82
-82

query I rowsort
SELECT DISTINCT - 37 - 21 FROM tab0 cor0
----
-58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( NOT ( NULL IS NULL ) ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8605
SELECT - col1 DIV col1 - - col1 + + + ( + + col0 ) AS col1 FROM tab0 AS cor0
----
107
95
97

skipif mysql # not compatible
query I rowsort label-8605
SELECT - col1 / col1 - - col1 + + + ( + + col0 ) AS col1 FROM tab0 AS cor0
----
107
95
97

query I rowsort
SELECT - 20 - - + col0 FROM tab2 cor0
----
26
44
55

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 41 < + col1
----
51
14
96
85
5
59

query I rowsort
SELECT - 23 - 47 - - 75 + + col1 + - - 10 + 57 * - col1 AS col1 FROM tab1 AS cor0
----
-2617
-265
-769

onlyif mysql # DIV for integer division: 
query I rowsort label-8609
SELECT ALL - + col0 DIV col2 + + col1 + ( col2 ) AS col0 FROM tab0 AS cor0
----
100
128
23

skipif mysql # not compatible
query I rowsort label-8609
SELECT ALL - + col0 / col2 + + col1 + ( col2 ) AS col0 FROM tab0 AS cor0
----
100
128
23

query I rowsort
SELECT ALL + ( - 47 ) FROM tab0
----
-47
-47
-47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8611
SELECT 68 * CAST( NULL AS SIGNED ) * ( + 45 ), - ( - col1 ) AS col2 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-8611
SELECT 68 * CAST ( NULL AS INTEGER ) * ( + 45 ), - ( - col1 ) AS col2 FROM tab1
----
NULL
14
NULL
47
NULL
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8612
SELECT DISTINCT 56 DIV col0 FROM tab0
----
0
3

skipif mysql # not compatible
query I rowsort label-8612
SELECT DISTINCT 56 / col0 FROM tab0
----
0
3

query II rowsort
SELECT + - ( - col0 ), 58 AS col1 FROM tab1 AS cor0
----
51
58
85
58
91
58

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 < + col0
----

query I rowsort
SELECT ALL col1 * ( - - col2 ) AS col1 FROM tab0
----
210
3807
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8616
SELECT 24 * + col0 * - + CAST( col2 AS SIGNED ) AS col1 FROM tab2
----
-104400
-25392
-61440

skipif mysql # not compatible
query I rowsort label-8616
SELECT 24 * + col0 * - + CAST ( col2 AS INTEGER ) AS col1 FROM tab2
----
-104400
-25392
-61440

onlyif mysql # DIV for integer division: 
query I rowsort label-8617
SELECT DISTINCT - 86 DIV - - 88 * - col1 * 53 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8617
SELECT DISTINCT - 86 / - - 88 * - col1 * 53 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8618
SELECT DISTINCT + COUNT( ALL col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8618
SELECT DISTINCT + COUNT ( ALL col2 ) FROM tab2 AS cor0
----
3

query II rowsort
SELECT - col1 * + col2 * col2 AS col2, ( + col1 ) AS col1 FROM tab2 AS cor0
----
-123200
77
-225388
67
-26979
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8620
SELECT + + CAST( - - col2 AS SIGNED ) FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-8620
SELECT + + CAST ( - - col2 AS INTEGER ) FROM tab0 AS cor0
----
10
47
99

query II rowsort
SELECT DISTINCT - 41, + col1 FROM tab1 AS cor0
----
-41
14
-41
47
-41
5

query I rowsort
SELECT ALL - + 72 * + col0 FROM tab1 AS cor0
----
-3672
-6120
-6552

query I rowsort
SELECT + col2 * + ( + + col0 ) + + col0 FROM tab1 AS cor0
----
4947
5100
6279

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 45 + + 49 + - + col2 col0 FROM tab1 AS cor0
----
-2
26
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8625
SELECT DISTINCT - CAST( + col2 AS SIGNED ) * + CAST( NULL AS SIGNED ) - col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8625
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) * + CAST ( NULL AS INTEGER ) - col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 77 + + ( + + col1 ) FROM tab2
----
128
144
154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 + col1 * - + col2 + + col2 col2, 99 AS col1 FROM tab1
----
-1152
99
-177
99
-3060
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8628
SELECT ALL + col2, + ( + 59 ) * + col2 * col0 * + col2 + + - 43 * - CAST( NULL AS SIGNED ) + + col1 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-8628
SELECT ALL + col2, + ( + 59 ) * + col2 * col0 * + col2 + + - 43 * - CAST ( NULL AS INTEGER ) + + col1 FROM tab0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8629
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) + + + col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8629
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) + + + col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8630
SELECT - col2 col2, 83 + + col2 + - + 68 * + + CAST( NULL AS DECIMAL ) * + col0 * - col0 AS col2 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8630
SELECT - col2 col2, 83 + + col2 + - + 68 * + + CAST ( NULL AS REAL ) * + col0 * - col0 AS col2 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT + COUNT( * ) col1 FROM tab2 AS cor0 WHERE col1 + - col1 * + col2 < + col1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8631
SELECT + COUNT ( * ) col1 FROM tab2 AS cor0 WHERE col1 + - col1 * + col2 < + col1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8632
SELECT + col2 AS col2, - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-8632
SELECT + col2 AS col2, - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

query I rowsort
SELECT col1 - col0 + col2 AS col1 FROM tab2
----
28
50
53

query I rowsort
SELECT DISTINCT col1 + 34 AS col0 FROM tab2
----
101
111
85

query I rowsort
SELECT ALL 67 + - + col1 FROM tab1
----
20
53
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8636
SELECT ALL + SUM( DISTINCT - col0 ) - 63 + + - 80 FROM tab2 cor0
----
-328

skipif mysql # not compatible
query I rowsort label-8636
SELECT ALL + SUM ( DISTINCT - col0 ) - 63 + + - 80 FROM tab2 cor0
----
-328

query I rowsort
SELECT col1 + - ( + 48 ) FROM tab1 AS cor0
----
-1
-34
-43

query I rowsort
SELECT - col2 + + col1 FROM tab0 AS cor0 WHERE col2 <> - + 58
----
-98
11
34

onlyif mysql # DIV for integer division: 
query I rowsort label-8639
SELECT 82 DIV - col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8639
SELECT 82 / - col1 FROM tab2 AS cor0
----
-1
-1
-1

query II rowsort
SELECT col1 AS col1, - col1 FROM tab0
----
1
-1
21
-21
81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8641
SELECT SUM( - + 71 ) * - MIN( - col1 ) AS col2 FROM tab2
----
-16401

skipif mysql # not compatible
query I rowsort label-8641
SELECT SUM ( - + 71 ) * - MIN ( - col1 ) AS col2 FROM tab2
----
-16401

query I rowsort
SELECT col1 * - ( - + col2 ) AS col1 FROM tab0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8643
SELECT MAX( ALL - + 46 ) FROM tab0, tab0 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-8643
SELECT MAX ( ALL - + 46 ) FROM tab0, tab0 AS cor0
----
-46

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL NOT BETWEEN NULL AND ( NULL ) )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8645
SELECT - MAX( ALL + CAST( NULL AS DECIMAL ) ) col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8645
SELECT - MAX ( ALL + CAST ( NULL AS REAL ) ) col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8646
SELECT DISTINCT - CAST( 43 AS SIGNED ) AS col1 FROM tab1
----
-43

skipif mysql # not compatible
query I rowsort label-8646
SELECT DISTINCT - CAST ( 43 AS INTEGER ) AS col1 FROM tab1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT - SUM( col0 ) AS col2 FROM tab1 WHERE - col1 + + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8647
SELECT - SUM ( col0 ) AS col2 FROM tab1 WHERE - col1 + + col0 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - col2 * - col0 col2 FROM tab2
----
1081
2600
4408

query I rowsort
SELECT ALL 79 + + 13 FROM tab1
----
92
92
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8650
SELECT 1 * COUNT( * ) - 77 * 51 FROM tab1
----
-3924

skipif mysql # not compatible
query I rowsort label-8650
SELECT 1 * COUNT ( * ) - 77 * 51 FROM tab1
----
-3924

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 + - col0 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 28 * + col0 col0 FROM tab1 WHERE col1 * + col0 - + col1 > NULL
----

query I rowsort
SELECT DISTINCT col0 + - ( col0 ) * col1 AS col0 FROM tab1
----
-340
-4186
-663

query I rowsort
SELECT 39 + col2 AS col1 FROM tab1
----
107
135
98

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 WHERE ( NULL ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT 76 + COUNT( * ) FROM tab2
----
79

skipif mysql # not compatible
query I rowsort label-8656
SELECT 76 + COUNT ( * ) FROM tab2
----
79

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8657
SELECT + 87 + COUNT( * ) * CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8657
SELECT + 87 + COUNT ( * ) * CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN 28 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col0 FROM tab1 WHERE NOT NULL NOT IN ( - 51 )
----

query I rowsort
SELECT DISTINCT 10 * col2 AS col1 FROM tab0
----
100
470
990

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 91 + 41 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 + col1 * - 40 FROM tab0
----
-3225
-753
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8663
SELECT + 56 + COUNT( * ) FROM tab2
----
59

skipif mysql # not compatible
query I rowsort label-8663
SELECT + 56 + COUNT ( * ) FROM tab2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8664
SELECT DISTINCT MAX( DISTINCT col2 ) FROM tab1 WHERE NOT - 97 - col0 BETWEEN - col2 AND - col1 / col1
----
96

skipif mysql # not compatible
query I rowsort label-8664
SELECT DISTINCT MAX ( DISTINCT col2 ) FROM tab1 WHERE NOT - 97 - col0 BETWEEN - col2 AND - col1 / col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT COUNT( * ) * - AVG ( col2 * col1 ) FROM tab0 WHERE NOT NULL NOT IN ( col2 + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8665
SELECT COUNT ( * ) * - AVG ( col2 * col1 ) FROM tab0 WHERE NOT NULL NOT IN ( col2 + col1 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8666
SELECT + col2 DIV + col2 + - col1 AS col1 FROM tab2 WHERE ( col2 ) NOT BETWEEN NULL AND - col0
----
-50
-66
-76

skipif mysql # not compatible
query I rowsort label-8666
SELECT + col2 / + col2 + - col1 AS col1 FROM tab2 WHERE ( col2 ) NOT BETWEEN NULL AND - col0
----
-50
-66
-76

query I rowsort
SELECT ALL col1 * + 33 FROM tab0 AS cor0
----
2673
33
693

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 74 / col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8669
SELECT ALL + ( + COUNT( * ) ) - + COUNT( 16 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8669
SELECT ALL + ( + COUNT ( * ) ) - + COUNT ( 16 ) AS col0 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8670
SELECT ALL - + 39 DIV col1 + - col1 AS col1 FROM tab1 cor0
----
-12
-16
-47

skipif mysql # not compatible
query I rowsort label-8670
SELECT ALL - + 39 / col1 + - col1 AS col1 FROM tab1 cor0
----
-12
-16
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8671
SELECT ALL col1 AS col1 FROM tab0 AS cor0 WHERE ( CAST( NULL AS SIGNED ) ) IS NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-8671
SELECT ALL col1 AS col1 FROM tab0 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) ) IS NULL
----
1
21
81

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL BETWEEN - col0 AND ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8673
SELECT - COUNT( * ) - 99 AS col2 FROM tab2 AS cor0 WHERE NOT - col2 * - col1 + col1 = NULL
----
-99

skipif mysql # not compatible
query I rowsort label-8673
SELECT - COUNT ( * ) - 99 AS col2 FROM tab2 AS cor0 WHERE NOT - col2 * - col1 + col1 = NULL
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT ALL MIN( col2 ) FROM tab1 AS cor0 WHERE NOT + ( + col2 ) / - col2 IS NULL
----
59

skipif mysql # not compatible
query I rowsort label-8674
SELECT ALL MIN ( col2 ) FROM tab1 AS cor0 WHERE NOT + ( + col2 ) / - col2 IS NULL
----
59

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col0 ) BETWEEN ( 0 ) AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col0 + + col1 ) BETWEEN + col1 AND col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8677
SELECT + - COUNT( * ) * MIN( col0 + col1 * col0 ) AS col1 FROM tab0 AS cor0
----
-582

skipif mysql # not compatible
query I rowsort label-8677
SELECT + - COUNT ( * ) * MIN ( col0 + col1 * col0 ) AS col1 FROM tab0 AS cor0
----
-582

onlyif mysql # DIV for integer division: 
query I rowsort label-8678
SELECT 27 DIV - col0 AS col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8678
SELECT 27 / - col0 AS col1 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8679
SELECT ALL + MAX( - 33 ) AS col0 FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-8679
SELECT ALL + MAX ( - 33 ) AS col0 FROM tab1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8680
SELECT SUM( - ( - col0 ) ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-8680
SELECT SUM ( - ( - col0 ) ) FROM tab0
----
199

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT ( - 91 * + 90 + 5 / + 90 ) IN ( + 15 * 38 )
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8682
SELECT ALL + MIN( 25 ) AS col2 FROM tab1 WHERE ( + col0 * + col2 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8682
SELECT ALL + MIN ( 25 ) AS col2 FROM tab1 WHERE ( + col0 * + col2 ) IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( + col2 ) AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 36 * col1 + 86 col1 FROM tab1 AS cor0
----
1778
266
590

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 43 col2 FROM tab1 AS cor0
----
43
43
43

query I rowsort
SELECT + col1 * 54 * 0 + + 20 * + col2 AS col0 FROM tab1 cor0
----
1180
1360
1920

query I rowsort
SELECT 50 + col2 * 47 FROM tab0 WHERE NOT + ( 43 ) + col1 IS NULL
----
2259
4703
520

query II rowsort
SELECT DISTINCT + 96, 60 + - col2 AS col2 FROM tab1
----
96
-36
96
-8
96
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * col0 * col0 = ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 * + col1 col1 FROM tab2 AS cor0
----
-2907
-3819
-4389

onlyif mysql # aggregate syntax: 
query I rowsort label-8691
SELECT ( + SUM( - col0 ) ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-8691
SELECT ( + SUM ( - col0 ) ) FROM tab1 AS cor0
----
-227

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8692
SELECT * FROM tab0 AS cor0 WHERE col1 + + + col0 + col1 NOT BETWEEN ( NULL ) AND ( ( + col2 ) / + CAST( + 38 - col2 * + 96 AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8692
SELECT * FROM tab0 AS cor0 WHERE col1 + + + col0 + col1 NOT BETWEEN ( NULL ) AND ( ( + col2 ) / + CAST ( + 38 - col2 * + 96 AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8693
SELECT + COUNT( * ) + + - 43 AS col0 FROM tab0 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-8693
SELECT + COUNT ( * ) + + - 43 AS col0 FROM tab0 AS cor0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT DISTINCT - COUNT( * ) + + + 57 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-8694
SELECT DISTINCT - COUNT ( * ) + + + 57 FROM tab2 AS cor0
----
54

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE ( - col2 * + + col1 ) IS NOT NULL
----
10
47
99

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE col0 + + col2 IS NULL
----

query I rowsort
SELECT - col1 + + 62 FROM tab0 AS cor0
----
-19
41
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT ALL - + 29 + - - ( + - COUNT( * ) ) FROM tab2 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-8698
SELECT ALL - + 29 + - - ( + - COUNT ( * ) ) FROM tab2 AS cor0
----
-32

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - + col1 * col0 * col0 ) > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 75 + + col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8701
SELECT DISTINCT - COUNT( DISTINCT - col1 ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8701
SELECT DISTINCT - COUNT ( DISTINCT - col1 ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT - - 78 AS col1 FROM tab1 WHERE ( NULL ) <> + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 86 col0 FROM tab0 AS cor0
----
86
86
86

query I rowsort
SELECT ( ( - - 57 ) ) FROM tab0 AS cor0
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8705
SELECT DISTINCT + - COUNT( * ) - - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8705
SELECT DISTINCT + - COUNT ( * ) - - COUNT ( * ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + - col2 * 5 - - col0 AS col0 FROM tab1 AS cor0
----
-210
-249
-429

query II rowsort
SELECT ALL - - 74 + + 40 AS col1, + col2 FROM tab1 AS cor0
----
114
59
114
68
114
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 - + col2 col0 FROM tab1 AS cor0
----
-118
-136
-192

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 28 NOT BETWEEN NULL AND - - col1 + 50
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( - col1 ) * - 23 + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8711
SELECT ALL + col1 DIV + + col1 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8711
SELECT ALL + col1 / + + col1 AS col2 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8712
SELECT DISTINCT - col0 + + col2 + - - col0 DIV - col0 FROM tab2
----
-18
-24
-25

skipif mysql # not compatible
query I rowsort label-8712
SELECT DISTINCT - col0 + + col2 + - - col0 / - col0 FROM tab2
----
-18
-24
-25

query I rowsort
SELECT ALL + col2 + + 24 + + 35 * + - col1 FROM tab1
----
-1553
-370
-92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8714
SELECT 0 FROM tab2 cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col2 + - CAST( NULL AS DECIMAL ) + - - ( col2 )
----

skipif mysql # not compatible
query I rowsort label-8714
SELECT 0 FROM tab2 cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col2 + - CAST ( NULL AS REAL ) + - - ( col2 )
----

query II rowsort
SELECT ALL + col1, col1 + col0 FROM tab2 AS cor0
----
51
97
67
142
77
141

onlyif mysql # DIV for integer division: 
query I rowsort label-8716
SELECT ALL + 27 DIV - 54 - + ( 74 ) FROM tab1 AS cor0
----
-74
-74
-74

skipif mysql # not compatible
query I rowsort label-8716
SELECT ALL + 27 / - 54 - + ( 74 ) FROM tab1 AS cor0
----
-74
-74
-74

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 90 IS NOT NULL
----

query I rowsort
SELECT - col2 * + 16 FROM tab0
----
-1584
-160
-752

query II rowsort
SELECT DISTINCT - 48, 16 AS col1 FROM tab1
----
-48
16

query II rowsort
SELECT ALL col2, - 55 * - col1 FROM tab1
----
59
275
68
2585
96
770

query I rowsort
SELECT - col1 * - 66 FROM tab0
----
1386
5346
66

query I rowsort
SELECT + ( - 99 ) * + col2 * col1 FROM tab0
----
-20790
-376893
-9801

onlyif mysql # DIV for integer division: 
query I rowsort label-8723
SELECT + 81 DIV - 86 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8723
SELECT + 81 / - 86 AS col1 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + + 5 ) col2 FROM tab0 AS cor0
----
5
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8725
SELECT ALL + + MIN( - 37 ) FROM tab1 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-8725
SELECT ALL + + MIN ( - 37 ) FROM tab1 AS cor0
----
-37

query I rowsort
SELECT DISTINCT - + 34 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-34

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-8727
SELECT ALL - col1 DIV - + CAST( + + CAST( + col1 AS DECIMAL ) AS SIGNED ) + + 49 AS col1 FROM tab1
----
50
50
50

skipif mysql # not compatible
query I rowsort label-8727
SELECT ALL - col1 / - + CAST ( + + CAST ( + col1 AS REAL ) AS INTEGER ) + + 49 AS col1 FROM tab1
----
50
50
50

onlyif mysql # DIV for integer division: 
query I rowsort label-8728
SELECT ALL + + col1 * - - 19 * - + col1 DIV - col1 FROM tab2 AS cor0
----
1273
1463
969

skipif mysql # not compatible
query I rowsort label-8728
SELECT ALL + + col1 * - - 19 * - + col1 / - col1 FROM tab2 AS cor0
----
1273
1463
969

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col1 AND - 4
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8730
SELECT - - 27 * CAST( NULL AS SIGNED ) AS col2, COUNT( * ) FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-8730
SELECT - - 27 * CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) FROM tab2 AS cor0
----
NULL
3

query I rowsort
SELECT ALL 39 * col1 FROM tab2 AS cor0
----
1989
2613
3003

query I rowsort
SELECT + 17 * col1 FROM tab1 AS cor0 WHERE ( NOT ( + 20 + 18 ) IS NOT NULL )
----

query I rowsort
SELECT + - 94 * ( col1 ) FROM tab1 cor0
----
-1316
-4418
-470

query II rowsort
SELECT ALL col1, 47 AS col2 FROM tab0
----
1
47
21
47
81
47

query I rowsort
SELECT ALL + ( - col2 ) + ( ( + + 57 ) ) AS col0 FROM tab1
----
-11
-2
-39

query I rowsort
SELECT DISTINCT col1 * - col2 + - 60 AS col1 FROM tab2
----
-1233
-3140
-3946

query III rowsort
SELECT ALL * FROM tab2 WHERE + 49 + + col1 BETWEEN ( 72 * - col1 ) AND col0
----

query III rowsort
SELECT * FROM tab2 WHERE + + col0 * - 74 + - + col2 < - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - - col1 col2 FROM tab0
----
100
128
31

query I rowsort
SELECT DISTINCT 63 * + ( - - col0 ) + + col0 FROM tab0
----
5568
6208
960

query I rowsort
SELECT + 72 AS col0 FROM tab2 WHERE col0 + 44 - 98 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8742
SELECT DISTINCT - CAST( - col2 AS SIGNED ) - + + CAST( NULL AS SIGNED ) + 18 - + col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8742
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) - + + CAST ( NULL AS INTEGER ) + 18 - + col1 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + - col1 ) col2 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT DISTINCT MIN( DISTINCT col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-8744
SELECT DISTINCT MIN ( DISTINCT col2 ) FROM tab0 AS cor0
----
10

query I rowsort
SELECT DISTINCT - col2 - - 19 FROM tab0 AS cor0
----
-28
-80
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8746
SELECT COUNT( * ) * + 77 * - COUNT( * ) AS col1 FROM tab1
----
-693

skipif mysql # not compatible
query I rowsort label-8746
SELECT COUNT ( * ) * + 77 * - COUNT ( * ) AS col1 FROM tab1
----
-693

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT MAX( DISTINCT + ( + - col2 ) ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-8747
SELECT MAX ( DISTINCT + ( + - col2 ) ) FROM tab1
----
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 97 col2 FROM tab2 cor0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8749
SELECT ALL CAST( - 9 AS SIGNED ) FROM tab2 cor0
----
-9
-9
-9

skipif mysql # not compatible
query I rowsort label-8749
SELECT ALL CAST ( - 9 AS INTEGER ) FROM tab2 cor0
----
-9
-9
-9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 1 > + col0 * 3 * - col2 + + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - - ( - - col2 ) AS col2, 84 FROM tab1 AS cor0
----
59
84
68
84
96
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8752
SELECT - ( + COUNT( * ) ) * + - 42 + COUNT( * ) + MIN( DISTINCT col2 ) DIV + COUNT( - + 31 ) FROM tab0 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-8752
SELECT - ( + COUNT ( * ) ) * + - 42 + COUNT ( * ) + MIN ( DISTINCT col2 ) / + COUNT ( - + 31 ) FROM tab0 AS cor0
----
132

query I rowsort
SELECT DISTINCT + ( col1 ) AS col1 FROM tab2 cor0 WHERE NOT NULL BETWEEN + ( - 4 ) AND - 7
----

query I rowsort
SELECT DISTINCT + col0 * + 73 + + ( - col0 ) FROM tab1 AS cor0
----
3672
6120
6552

onlyif mysql # aggregate syntax: 
query I rowsort label-8755
SELECT ALL ( + COUNT( + col2 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8755
SELECT ALL ( + COUNT ( + col2 ) ) FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8756
SELECT DISTINCT col2 DIV + - col0 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-8756
SELECT DISTINCT col2 / + - col0 FROM tab0
----
-1
-3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + - col1 col1 FROM tab0
----
1
441
6561

query I rowsort
SELECT ( + 16 ) FROM tab0
----
16
16
16

query I rowsort
SELECT ALL 42 * - col1 AS col0 FROM tab1
----
-1974
-210
-588

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8760
SELECT DISTINCT + COUNT( * ) DIV - + COUNT( * ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-8760
SELECT DISTINCT + COUNT ( * ) / - + COUNT ( * ) FROM tab1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8761
SELECT ALL + MIN( ALL - CAST( NULL AS SIGNED ) ) / - + AVG ( ALL + 14 ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8761
SELECT ALL + MIN ( ALL - CAST ( NULL AS INTEGER ) ) / - + AVG ( ALL + 14 ) AS col0 FROM tab0 cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 IN ( + 34 )
----

query I rowsort
SELECT - - ( + - col0 ) FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT DISTINCT - col2 + - - 16 FROM tab2 AS cor0
----
-24
-42
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8765
SELECT - 61 * + + COUNT( * ) + + COUNT( DISTINCT - - col0 ) FROM tab2 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-8765
SELECT - 61 * + + COUNT ( * ) + + COUNT ( DISTINCT - - col0 ) FROM tab2 AS cor0
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-8766
SELECT DISTINCT + SUM( DISTINCT + + 82 ) FROM tab0 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-8766
SELECT DISTINCT + SUM ( DISTINCT + + 82 ) FROM tab0 AS cor0
----
82

query I rowsort
SELECT - ( col2 ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col0 + - 70 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8769
SELECT col0 * col1 DIV + - col2 AS col1 FROM tab2 AS cor0
----
-102
-123
-86

skipif mysql # not compatible
query I rowsort label-8769
SELECT col0 * col1 / + - col2 AS col1 FROM tab2 AS cor0
----
-102
-123
-86

query I rowsort
SELECT DISTINCT - col2 * 38 AS col0 FROM tab2 AS cor0
----
-1520
-2204
-874

onlyif mysql # aggregate syntax: 
query I rowsort label-8771
SELECT ALL - MIN( ALL - col1 ) AS col2 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-8771
SELECT ALL - MIN ( ALL - col1 ) AS col2 FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8772
SELECT MIN( + 47 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-8772
SELECT MIN ( + 47 ) FROM tab1
----
47

query I rowsort
SELECT ALL + col1 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) = - col0
----

query II rowsort
SELECT - - col2 AS col2, col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

onlyif mysql # DIV for integer division: 
query I rowsort label-8775
SELECT + + 46 DIV - col0 FROM tab2 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8775
SELECT + + 46 / - col0 FROM tab2 cor0
----
-1
0
0

query II rowsort
SELECT - - 18 AS col1, + col2 * - 9 FROM tab0 AS cor0
----
18
-423
18
-891
18
-90

query I rowsort
SELECT DISTINCT + - col0 FROM tab2 cor0 WHERE 89 <= 6
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT DISTINCT + - MIN( ALL - 32 ) FROM tab0 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-8778
SELECT DISTINCT + - MIN ( ALL - 32 ) FROM tab0 AS cor0
----
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col0 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND - col0 * + + col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= 16
----

query I rowsort
SELECT ALL + 73 * + 14 FROM tab0 AS cor0
----
1022
1022
1022

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8782
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL NOT BETWEEN CAST( NULL AS SIGNED ) / + 73 + 28 AND NULL )
----

skipif mysql # not compatible
query III rowsort label-8782
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL NOT BETWEEN CAST ( NULL AS INTEGER ) / + 73 + 28 AND NULL )
----

query I rowsort
SELECT ALL col0 * ( 7 ) FROM tab0
----
105
609
679

query I rowsort
SELECT ( - 68 ) * 21 FROM tab0
----
-1428
-1428
-1428

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT ALL + COUNT( - + 50 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8785
SELECT ALL + COUNT ( - + 50 ) AS col1 FROM tab2
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( + col2 - 6 + - + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT DISTINCT ( - SUM( 25 ) ) FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-8787
SELECT DISTINCT ( - SUM ( 25 ) ) FROM tab1 AS cor0
----
-75

query II rowsort
SELECT DISTINCT - ( - 95 ) AS col1, col0 AS col2 FROM tab0 AS cor0
----
95
15
95
87
95
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - - col0 + - - col2 col0 FROM tab0 AS cor0
----
272
7579
9508

query I rowsort
SELECT DISTINCT col0 * + col0 + col2 FROM tab0
----
272
7579
9508

query I rowsort
SELECT DISTINCT - col2 + - - 67 FROM tab2
----
27
44
9

query I rowsort
SELECT ALL - 59 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

query I rowsort
SELECT ALL - + 97 * col1 * + + 27 * - col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
259281
549990
9970533

onlyif mysql # aggregate syntax: 
query I rowsort label-8794
SELECT - COUNT( * ) * + 62 FROM tab0
----
-186

skipif mysql # not compatible
query I rowsort label-8794
SELECT - COUNT ( * ) * + 62 FROM tab0
----
-186

query I rowsort
SELECT 8 * - - col0 AS col1 FROM tab1 AS cor0
----
408
680
728

query I rowsort
SELECT DISTINCT 90 * - col0 AS col1 FROM tab2 AS cor0
----
-4140
-5760
-6750

onlyif mysql # aggregate syntax: 
query I rowsort label-8797
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) > - 58
----
0

skipif mysql # not compatible
query I rowsort label-8797
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) > - 58
----
0

query I rowsort
SELECT + + 87 * col2 * - - col0 + - col0 FROM tab0 AS cor0
----
61320
75603
835364

query I rowsort
SELECT DISTINCT - - ( + 54 ) FROM tab2 cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8800
SELECT + MIN( ALL 42 ) * COUNT( * ) FROM tab1 cor0
----
126

skipif mysql # not compatible
query I rowsort label-8800
SELECT + MIN ( ALL 42 ) * COUNT ( * ) FROM tab1 cor0
----
126

query I rowsort
SELECT + 80 - ( + col1 ) AS col2 FROM tab1 AS cor0
----
33
66
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col1 ) >= col0
----
46
51
23
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8803
SELECT ALL + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) > 88
----
0

skipif mysql # not compatible
query I rowsort label-8803
SELECT ALL + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) > 88
----
0

query I rowsort
SELECT + + col1 FROM tab0 AS cor0 WHERE NULL < + ( + col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) > + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8806
SELECT DISTINCT + + col2 AS col1, - CAST( - + col2 AS SIGNED ) + col1 AS col0 FROM tab2 AS cor0
----
23
74
40
117
58
125

skipif mysql # not compatible
query II rowsort label-8806
SELECT DISTINCT + + col2 AS col1, - CAST ( - + col2 AS INTEGER ) + col1 AS col0 FROM tab2 AS cor0
----
23
74
40
117
58
125

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT COUNT( * ) - - 97 * COUNT( * ) FROM tab1
----
294

skipif mysql # not compatible
query I rowsort label-8807
SELECT COUNT ( * ) - - 97 * COUNT ( * ) FROM tab1
----
294

query I rowsort
SELECT + 5 + - + col1 FROM tab1
----
-42
-9
0

query I rowsort
SELECT ALL - 77 + - col0 FROM tab0
----
-164
-174
-92

query I rowsort
SELECT ALL ( + col0 ) + col1 AS col2 FROM tab0
----
108
96
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 99 * col0 + - col1 col0 FROM tab2
----
4503
6259
7358

query I rowsort
SELECT col0 + col0 + + col1 AS col1 FROM tab0
----
111
195
195

query I rowsort
SELECT ALL - AVG ( + 62 ) FROM tab1 WHERE - col0 * + - col1 + + - 54 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT ALL - COUNT( ALL 89 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8814
SELECT ALL - COUNT ( ALL 89 ) AS col1 FROM tab1
----
-3

query II rowsort
SELECT - - 65, ( - - ( + + col1 ) ) + - ( - col1 ) AS col1 FROM tab2 cor0
----
65
102
65
134
65
154

query I rowsort
SELECT - - col0 * + col1 * - col2 * - col2 AS col2 FROM tab1 AS cor0
----
1479425
19776848
6580224

onlyif mysql # DIV for integer division: 
query I rowsort label-8817
SELECT col1 DIV - + col0 AS col1 FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-8817
SELECT col1 / - + col0 AS col1 FROM tab0
----
-5
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 * + + 91 col0, - col2 FROM tab2
----
4186
-23
5824
-40
6825
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT ALL COUNT( * ) * - ( + - ( + COUNT( * ) ) ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-8819
SELECT ALL COUNT ( * ) * - ( + - ( + COUNT ( * ) ) ) FROM tab1
----
9

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NULL BETWEEN NULL AND col0
----

query I rowsort
SELECT 47 * col1 * + col1 + col1 * 78 AS col2 FROM tab1 cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8822
SELECT ALL SUM( col2 ) AS col0, 37 FROM tab1 AS cor0
----
223
37

skipif mysql # not compatible
query II rowsort label-8822
SELECT ALL SUM ( col2 ) AS col0, 37 FROM tab1 AS cor0
----
223
37

query I rowsort
SELECT DISTINCT - col2 + + 96 FROM tab1 AS cor0
----
0
28
37

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8825
SELECT + COUNT( - 83 ) col1, + COUNT( + col1 ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8825
SELECT + COUNT ( - 83 ) col1, + COUNT ( + col1 ) FROM tab0 AS cor0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8826
SELECT CAST( - + col0 AS SIGNED ) + CAST( - + 42 AS SIGNED ) FROM tab1
----
-127
-133
-93

skipif mysql # not compatible
query I rowsort label-8826
SELECT CAST ( - + col0 AS INTEGER ) + CAST ( - + 42 AS INTEGER ) FROM tab1
----
-127
-133
-93

query II rowsort
SELECT ALL col2, col0 * 46 FROM tab1
----
59
3910
68
4186
96
2346

onlyif mysql # aggregate syntax: 
query I rowsort label-8828
SELECT DISTINCT + COUNT( - + col2 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8828
SELECT DISTINCT + COUNT ( - + col2 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT ALL + col2 * - ( - + col2 ) + + col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND col2
----

query I rowsort
SELECT ALL - 21 * - + col2 FROM tab0 AS cor0
----
2079
210
987

query I rowsort
SELECT col1 * + col0 + - - col2 FROM tab2 AS cor0
----
2369
4968
5083

query I rowsort
SELECT col0 * + col1 * + col2 AS col1 FROM tab0 AS cor0
----
18270
57105
9603

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8833
SELECT DISTINCT - + col2 + + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8833
SELECT DISTINCT - + col2 + + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - + col2 AS col1 FROM tab2 AS cor0 WHERE ( col1 + + + 62 ) NOT BETWEEN col0 AND + 14
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-8835
SELECT + COUNT( * ), 32 AS col2 FROM tab0 AS cor0
----
3
32

skipif mysql # not compatible
query II rowsort label-8835
SELECT + COUNT ( * ), 32 AS col2 FROM tab0 AS cor0
----
3
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8836
SELECT ALL + CAST( NULL AS SIGNED ) + ( - col1 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8836
SELECT ALL + CAST ( NULL AS INTEGER ) + ( - col1 ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8837
SELECT 51 * + col1 - - ( + CAST( NULL AS SIGNED ) ) + + 99 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8837
SELECT 51 * + col1 - - ( + CAST ( NULL AS INTEGER ) ) + + 99 col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8838
SELECT DISTINCT + MAX( ALL 57 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
57

skipif mysql # not compatible
query I rowsort label-8838
SELECT DISTINCT + MAX ( ALL 57 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
57

onlyif mysql # DIV for integer division: 
query II rowsort label-8839
SELECT col2 - + 41 + + - ( + col0 ) DIV - - col0 AS col2, + 87 AS col1 FROM tab0
----
-32
87
5
87
57
87

skipif mysql # not compatible
query II rowsort label-8839
SELECT col2 - + 41 + + - ( + col0 ) / - - col0 AS col2, + 87 AS col1 FROM tab0
----
-32
87
5
87
57
87

query I rowsort
SELECT DISTINCT col2 * - 24 AS col2 FROM tab1
----
-1416
-1632
-2304

onlyif mysql # aggregate syntax: 
query I rowsort label-8841
SELECT DISTINCT + COUNT( * ) - - 50 FROM tab1 cor0
----
53

skipif mysql # not compatible
query I rowsort label-8841
SELECT DISTINCT + COUNT ( * ) - - 50 FROM tab1 cor0
----
53

query I rowsort
SELECT col2 + - + col0 + + + col0 AS col2 FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( ( NOT ( NULL ) IS NOT NULL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 - 23 col2, - col0 - col1 FROM tab2 AS cor0
----
23
-97
41
-141
52
-142

query I rowsort
SELECT + col1 + - 88 * - - col2 * + - ( col2 ) AS col2 FROM tab0 AS cor0
----
194473
862489
8821

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( 95 ) IS NULL
----
23
40
58

query I rowsort
SELECT ALL - + ( - + col1 ) FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT + COUNT( * ) * - 17 + - 66 AS col2 FROM tab1 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-8848
SELECT + COUNT ( * ) * - 17 + - 66 AS col2 FROM tab1 AS cor0
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-8849
SELECT - MAX( ALL - + col0 ) + - COUNT( * ) * + AVG ( DISTINCT - col1 ) col2 FROM tab1 AS cor0 WHERE ( NOT NULL IS NULL )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8849
SELECT - MAX ( ALL - + col0 ) + - COUNT ( * ) * + AVG ( DISTINCT - col1 ) col2 FROM tab1 AS cor0 WHERE ( NOT NULL IS NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT DISTINCT COUNT( * ) + + 81 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-8850
SELECT DISTINCT COUNT ( * ) + + 81 FROM tab2
----
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 41 col2 FROM tab2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8852
SELECT DISTINCT + MAX( DISTINCT - col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-8852
SELECT DISTINCT + MAX ( DISTINCT - col2 ) FROM tab1
----
-59

onlyif mysql # DIV for integer division: 
query II rowsort label-8853
SELECT + col0 DIV col0 * + + col2, + 98 DIV - col1 col0 FROM tab2
----
23
-1
40
-1
58
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8853
SELECT + col0 / col0 * + + col2, + 98 / - col1 col0 FROM tab2
----
23
-1
40
-1
58
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8854
SELECT + col0, - ( + 48 ) AS col0 FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) BETWEEN col2 AND + 41
----

skipif mysql # not compatible
query II rowsort label-8854
SELECT + col0, - ( + 48 ) AS col0 FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) BETWEEN col2 AND + 41
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 95 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8856
SELECT DISTINCT - col0 * col2 DIV 95 * col1 col0 FROM tab0
----
-101
-189
-567

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8856
SELECT DISTINCT - col0 * col2 / 95 * col1 col0 FROM tab0
----
-101
-189
-567

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8857
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8857
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query II rowsort
SELECT 78, col2 AS col0 FROM tab0 AS cor0
----
78
10
78
47
78
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8859
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8859
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 26 IN ( + + 27 + - 90, col0 )
----

query I rowsort
SELECT ( - 96 ) FROM tab2 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8862
SELECT CAST( - col1 AS SIGNED ) * - 65 FROM tab2 WHERE 47 + col1 IS NOT NULL
----
3315
4355
5005

skipif mysql # not compatible
query I rowsort label-8862
SELECT CAST ( - col1 AS INTEGER ) * - 65 FROM tab2 WHERE 47 + col1 IS NOT NULL
----
3315
4355
5005

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + ( + + col1 ) col2 FROM tab0
----
-98
11
34

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + col0 * col2 * + 36 NOT IN ( + + 20, - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8865
SELECT ALL - CAST( - col2 AS SIGNED ) + + col0 AS col1 FROM tab0
----
196
62
97

skipif mysql # not compatible
query I rowsort label-8865
SELECT ALL - CAST ( - col2 AS INTEGER ) + + col0 AS col1 FROM tab0
----
196
62
97

query I rowsort
SELECT ALL 60 + - + 33 AS col0 FROM tab2
----
27
27
27

query I rowsort
SELECT DISTINCT - 88 + col0 AS col2 FROM tab2
----
-13
-24
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-8868
SELECT DISTINCT - col1 DIV + 18 + - 58 + + + 20 + - - 4 AS col0 FROM tab0 AS cor0
----
-34
-35
-38

skipif mysql # not compatible
query I rowsort label-8868
SELECT DISTINCT - col1 / + 18 + - 58 + + + 20 + - - 4 AS col0 FROM tab0 AS cor0
----
-34
-35
-38

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 AS cor0 WHERE NOT 64 IN ( - + 70, - col2 )
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8870
SELECT + 12 + - COUNT( * ) FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-8870
SELECT + 12 + - COUNT ( * ) FROM tab2 cor0
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-8871
SELECT - - 43 + - 1 DIV + col2, col0 AS col2 FROM tab1 AS cor0
----
43
51
43
85
43
91

skipif mysql # not compatible
query II rowsort label-8871
SELECT - - 43 + - 1 / + col2, col0 AS col2 FROM tab1 AS cor0
----
43
51
43
85
43
91

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8873
SELECT DISTINCT + - col2 DIV 19 AS col1 FROM tab1 AS cor0
----
-3
-5

skipif mysql # not compatible
query I rowsort label-8873
SELECT DISTINCT + - col2 / 19 AS col1 FROM tab1 AS cor0
----
-3
-5

query I rowsort
SELECT + ( - 65 ) AS col1 FROM tab2
----
-65
-65
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-8875
SELECT DISTINCT - - SUM( 48 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
432

skipif mysql # not compatible
query I rowsort label-8875
SELECT DISTINCT - - SUM ( 48 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
432

onlyif mysql # DIV for integer division: 
query I rowsort label-8876
SELECT DISTINCT col2 - col0 DIV col2 FROM tab1 cor0
----
58
67
96

skipif mysql # not compatible
query I rowsort label-8876
SELECT DISTINCT col2 - col0 / col2 FROM tab1 cor0
----
58
67
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8877
SELECT ALL + + col2 AS col2, col2 + CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
10
0
47
0
99
0

skipif mysql # not compatible
query II rowsort label-8877
SELECT ALL + + col2 AS col2, col2 + CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
10
0
47
0
99
0

query II rowsort
SELECT 36 * col1 AS col2, 56 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - + col1 * - col2 * col0 FROM tab0 AS cor0
----
18270
57105
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8880
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 38 FROM tab0, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8880
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 38 FROM tab0, tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8881
SELECT ( COUNT( * ) ) * ( - COUNT( * ) ) * 7 AS col0 FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-8881
SELECT ( COUNT ( * ) ) * ( - COUNT ( * ) ) * 7 AS col0 FROM tab0
----
-63

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8882
SELECT * FROM tab0 WHERE NOT - CAST( - col2 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8882
SELECT * FROM tab0 WHERE NOT - CAST ( - col2 AS REAL ) IS NOT NULL
----

query II rowsort
SELECT 9, col0 - - 87 * col2 AS col1 FROM tab1 WHERE NOT + col2 * - 15 * - col1 NOT BETWEEN + 92 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8884
SELECT - - 91 AS col2 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + - ( - col2 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8884
SELECT - - 91 AS col2 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + - ( - col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8885
SELECT 48 * - - COUNT( * ) AS col0 FROM tab0
----
144

skipif mysql # not compatible
query I rowsort label-8885
SELECT 48 * - - COUNT ( * ) AS col0 FROM tab0
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-8886
SELECT ALL + COUNT( * ) FROM tab1 WHERE NOT NULL >= col0
----
0

skipif mysql # not compatible
query I rowsort label-8886
SELECT ALL + COUNT ( * ) FROM tab1 WHERE NOT NULL >= col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8887
SELECT COUNT( * ) * - ( + - MAX( + col0 ) ) col0 FROM tab1
----
273

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8887
SELECT COUNT ( * ) * - ( + - MAX ( + col0 ) ) col0 FROM tab1
----
273

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8888
SELECT - - 0 - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8888
SELECT - - 0 - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8889
SELECT DISTINCT + - MAX( + 44 ) FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-8889
SELECT DISTINCT + - MAX ( + 44 ) FROM tab1 AS cor0
----
-44

query I rowsort
SELECT DISTINCT ( - col0 ) + - 30 + - col0 AS col1 FROM tab0 AS cor0
----
-204
-224
-60

query I rowsort
SELECT - + col0 AS col2 FROM tab0 WHERE col1 >= + + 58
----
-15

query I rowsort
SELECT + col0 * 65 + 47 FROM tab0
----
1022
5702
6352

query III rowsort
SELECT * FROM tab2 WHERE - 32 * + col1 + + col0 * - - col2 <> + ( 27 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col0 + - col1 FROM tab1 WHERE ( NULL ) IS NOT NULL OR NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8895
SELECT ALL ( COUNT( * ) ) + + + 88 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-8895
SELECT ALL ( COUNT ( * ) ) + + + 88 FROM tab1
----
91

query I rowsort
SELECT - 50 + col2 + col0 AS col0 FROM tab1
----
109
94
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8897
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE - 54 * + - 22 / - + ( + col2 ) + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8897
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE - 54 * + - 22 / - + ( + col2 ) + col2 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8898
SELECT DISTINCT CAST( NULL AS DECIMAL ), - 59 AS col0 FROM tab2
----
NULL
-59

skipif mysql # not compatible
query II rowsort label-8898
SELECT DISTINCT CAST ( NULL AS REAL ), - 59 AS col0 FROM tab2
----
NULL
-59

query I rowsort
SELECT ALL col0 + - ( 55 ) FROM tab0
----
-40
32
42

query I rowsort
SELECT ALL - + 42 FROM tab2 AS cor0 WHERE NOT - 34 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT - SUM( + 48 ) * - - COUNT( DISTINCT + - col1 ) FROM tab1 AS cor0
----
-432

skipif mysql # not compatible
query I rowsort label-8901
SELECT - SUM ( + 48 ) * - - COUNT ( DISTINCT + - col1 ) FROM tab1 AS cor0
----
-432

query II rowsort
SELECT DISTINCT - + col0 AS col2, col2 * - - 92 FROM tab0 AS cor0
----
-15
4324
-87
920
-97
9108

query I rowsort
SELECT + col2 - + + col2 - 47 + col1 AS col0 FROM tab2 AS cor0
----
20
30
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8904
SELECT DISTINCT - COUNT( * ) + + 45 FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-8904
SELECT DISTINCT - COUNT ( * ) + + 45 FROM tab1 AS cor0
----
42

onlyif mysql # DIV for integer division: 
query II rowsort label-8905
SELECT + col0 DIV + col0 + + col0 - - 74 col1, 22 col1 FROM tab2 AS cor0
----
121
22
139
22
150
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8905
SELECT + col0 / + col0 + + col0 - - 74 col1, 22 col1 FROM tab2 AS cor0
----
121
22
139
22
150
22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8906
SELECT + CAST( - + col2 AS SIGNED ), + col0 AS col1 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

skipif mysql # not compatible
query II rowsort label-8906
SELECT + CAST ( - + col2 AS INTEGER ), + col0 AS col1 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

query I rowsort
SELECT + 27 * - - 72 - col2 AS col1 FROM tab1 AS cor0
----
1848
1876
1885

onlyif mysql # DIV for integer division: 
query I rowsort label-8908
SELECT ALL + - col0 DIV - - col2 AS col1 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-8908
SELECT ALL + - col0 / - - col2 AS col1 FROM tab2 AS cor0
----
-1
-1
-2

query I rowsort
SELECT + - col1 * + - 37 FROM tab2 AS cor0
----
1887
2479
2849

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( + 12 + - col1 - col1, ( col2 ), + col0 )
----

query I rowsort
SELECT - + 83 * - col0 AS col2 FROM tab0 AS cor0
----
1245
7221
8051

query I rowsort
SELECT ALL 89 * + 15 FROM tab1
----
1335
1335
1335

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN - + col2 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT ALL - COUNT( DISTINCT 52 ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8914
SELECT ALL - COUNT ( DISTINCT 52 ) AS col0 FROM tab0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8915
SELECT + + CAST( + + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8915
SELECT + + CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 + - + 2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col0 * - 53 FROM tab2 AS cor0
----
2438
3392
3975

query I rowsort
SELECT DISTINCT - + col1 + ( - + 21 ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8919
SELECT ALL - COUNT( * ) + + + ( + 75 ) + - - COUNT( * ) col1 FROM tab0 AS cor0
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8919
SELECT ALL - COUNT ( * ) + + + ( + 75 ) + - - COUNT ( * ) col1 FROM tab0 AS cor0
----
75

query I rowsort
SELECT DISTINCT col0 * - ( + + col2 ) FROM tab2
----
-1058
-2560
-4350

query II rowsort
SELECT - col0 + - 80, col1 * col2 AS col0 FROM tab0
----
-167
210
-177
99
-95
3807

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8922
SELECT DISTINCT COUNT( ALL - CAST( ( + col1 ) AS SIGNED ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8922
SELECT DISTINCT COUNT ( ALL - CAST ( ( + col1 ) AS INTEGER ) ) FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8923
SELECT 58 DIV - - col2 AS col0 FROM tab0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-8923
SELECT 58 / - - col2 AS col0 FROM tab0
----
0
1
5

query I rowsort
SELECT + col0 * - col1 - - - col2 FROM tab0 AS cor0
----
-1262
-1837
-196

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 21 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8926
SELECT DISTINCT + col0 * + CAST( NULL AS SIGNED ) + + 73 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8926
SELECT DISTINCT + col0 * + CAST ( NULL AS INTEGER ) + + 73 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8927
SELECT - 67 - + - COUNT( DISTINCT col0 ) FROM tab1
----
-64

skipif mysql # not compatible
query I rowsort label-8927
SELECT - 67 - + - COUNT ( DISTINCT col0 ) FROM tab1
----
-64

query I rowsort
SELECT + col2 - - col1 + + + 77 FROM tab0
----
108
177
205

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 35 col1 FROM tab1 WHERE NULL IS NULL
----
1785
2975
3185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - col2 ) col2 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8931
SELECT DISTINCT COUNT( DISTINCT + + col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8931
SELECT DISTINCT COUNT ( DISTINCT + + col0 ) FROM tab2
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 4 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8933
SELECT ALL - + COUNT( * ) DIV + + MIN( DISTINCT + col2 ) AS col0 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8933
SELECT ALL - + COUNT ( * ) / + + MIN ( DISTINCT + col2 ) AS col0 FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8934
SELECT ALL - MIN( DISTINCT + 43 ) AS col0 FROM tab1 cor0
----
-43

skipif mysql # not compatible
query I rowsort label-8934
SELECT ALL - MIN ( DISTINCT + 43 ) AS col0 FROM tab1 cor0
----
-43

query II rowsort
SELECT DISTINCT col0, 98 FROM tab0 AS cor0
----
15
98
87
98
97
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8936
SELECT ALL + SUM( col0 ) AS col2 FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-8936
SELECT ALL + SUM ( col0 ) AS col2 FROM tab0 cor0
----
199

query II rowsort
SELECT - - col2 * - + 72, + col1 AS col0 FROM tab0 AS cor0
----
-3384
81
-7128
1
-720
21

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 75 = col1 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8939
SELECT ALL SUM( DISTINCT - 38 ) AS col1 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-38

skipif mysql # not compatible
query I rowsort label-8939
SELECT ALL SUM ( DISTINCT - 38 ) AS col1 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-8940
SELECT + MIN( + col1 ) AS col2, 40 AS col0 FROM tab1
----
5
40

skipif mysql # not compatible
query II rowsort label-8940
SELECT + MIN ( + col1 ) AS col2, 40 AS col0 FROM tab1
----
5
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8941
SELECT ALL - COUNT( * ) DIV + - 91 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8941
SELECT ALL - COUNT ( * ) / + - 91 AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8942
SELECT ALL SUM( - col0 ) * - COUNT( DISTINCT col0 ) AS col2 FROM tab1
----
681

skipif mysql # not compatible
query I rowsort label-8942
SELECT ALL SUM ( - col0 ) * - COUNT ( DISTINCT col0 ) AS col2 FROM tab1
----
681

query I rowsort
SELECT ALL + col2 * + 36 AS col0 FROM tab1
----
2124
2448
3456

query I rowsort
SELECT col1 * - 10 AS col2 FROM tab0
----
-10
-210
-810

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT ( - + col2 <> NULL ) )
----

query II rowsort
SELECT DISTINCT + 85, + 56 * + + 84 FROM tab1 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT + 63 - + col0 FROM tab1 cor0 WHERE + col1 / 70 IS NOT NULL
----
-22
-28
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT DISTINCT + 61 + SUM( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-8948
SELECT DISTINCT + 61 + SUM ( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
-162

query I rowsort
SELECT - - col1 + - - col1 * + 44 * + col0 AS col1 FROM tab2 AS cor0
----
103275
216909
221167

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8950
SELECT ALL - CAST( + 61 AS SIGNED ) + col1 FROM tab0 AS cor0
----
-40
-60
20

skipif mysql # not compatible
query I rowsort label-8950
SELECT ALL - CAST ( + 61 AS INTEGER ) + col1 FROM tab0 AS cor0
----
-40
-60
20

query I rowsort
SELECT + 57 + - + 88 FROM tab2 AS cor0
----
-31
-31
-31

query I rowsort
SELECT + col0 + - - col1 + + 76 FROM tab1
----
141
166
214

query II rowsort
SELECT DISTINCT - col2 + col0, col1 FROM tab2
----
17
67
23
51
24
77

onlyif mysql # DIV for integer division: 
query II rowsort label-8954
SELECT DISTINCT - 76 + + 56 AS col0, + 70 DIV - 29 FROM tab0
----
-20
-2

skipif mysql # not compatible
query II rowsort label-8954
SELECT DISTINCT - 76 + + 56 AS col0, + 70 / - 29 FROM tab0
----
-20
-2

query I rowsort
SELECT + col2 - + 93 FROM tab1 AS cor0
----
-25
-34
3

query I rowsort
SELECT ALL - 25 * col0 FROM tab1 WHERE NOT 38 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 32 + 27 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - + 3 AS col0, 68 * 95 AS col1 FROM tab0 AS cor0
----
-3
6460
-3
6460
-3
6460

onlyif mysql # aggregate syntax: 
query I rowsort label-8959
SELECT + MAX( DISTINCT + ( - col1 ) ) AS col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8959
SELECT + MAX ( DISTINCT + ( - col1 ) ) AS col1 FROM tab1 AS cor0
----
-5

query II rowsort
SELECT + col2 AS col0, + 64 AS col1 FROM tab0 AS cor0
----
10
64
47
64
99
64

query II rowsort
SELECT ALL - col0 AS col2, col0 * - - col0 FROM tab1
----
-51
2601
-85
7225
-91
8281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8962
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8962
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-8963
SELECT ALL - SUM( DISTINCT 26 ) FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-8963
SELECT ALL - SUM ( DISTINCT 26 ) FROM tab2
----
-26

query II rowsort
SELECT + col0, col2 * + - 55 FROM tab1
----
51
-5280
85
-3245
91
-3740

query II rowsort
SELECT - 78, col0 + + - 35 AS col2 FROM tab0
----
-78
-20
-78
52
-78
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - - 29 * 63 * + 72 col2 FROM tab2
----
3025512
5261760
7629552

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT ALL - COUNT( * ) * + 21 AS col1 FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-8967
SELECT ALL - COUNT ( * ) * + 21 AS col1 FROM tab0
----
-63

query II rowsort
SELECT - + 59, - 40 * + 43 AS col1 FROM tab0 AS cor0
----
-59
-1720
-59
-1720
-59
-1720

onlyif mysql # DIV for integer division: 
query I rowsort label-8969
SELECT col1 DIV + 59 col1 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8969
SELECT col1 / + 59 col1 FROM tab2 AS cor0
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8970
SELECT * FROM tab2 AS cor0 WHERE - CAST( col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8970
SELECT * FROM tab2 AS cor0 WHERE - CAST ( col0 AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT + 84 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-8972
SELECT DISTINCT - 33 + + - col1 DIV col2 * col2 FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-8972
SELECT DISTINCT - 33 + + - col1 / col2 * col2 FROM tab1
----
-33

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( + 86 * col2 IS NULL )
----

query I rowsort
SELECT ALL - + ( 11 ) * + col2 FROM tab1 AS cor0
----
-1056
-649
-748

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 AS cor0 WHERE + col2 + ( - 8 ) BETWEEN - col1 AND NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( + 74 * - + col0 ) IS NULL
----

query I rowsort
SELECT - col2 - - 92 FROM tab2 AS cor0
----
34
52
69

query I rowsort
SELECT - col0 + - col2 * col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8979
SELECT DISTINCT * FROM tab0 WHERE - 35 * + 20 + - - CAST( 8 AS SIGNED ) + + col0 + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8979
SELECT DISTINCT * FROM tab0 WHERE - 35 * + 20 + - - CAST ( 8 AS INTEGER ) + + col0 + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8981
SELECT ALL SUM( + col1 ) + - 50 AS col0, COUNT( * ) col1 FROM tab0
----
53
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8981
SELECT ALL SUM ( + col1 ) + - 50 AS col0, COUNT ( * ) col1 FROM tab0
----
53
3

query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 WHERE NOT + 42 * - + col1 * - col0 * col0 IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT - COUNT( * ) + + 83 AS col1 FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-8983
SELECT - COUNT ( * ) + + 83 AS col1 FROM tab2
----
80

query II rowsort
SELECT ALL 53 - - ( 41 ), col1 * - col2 AS col1 FROM tab0
----
94
-210
94
-3807
94
-99

query I rowsort
SELECT DISTINCT + 16 + + col1 + - col1 * - col2 FROM tab0
----
116
247
3904

query I rowsort
SELECT DISTINCT + col1 / + + col2 * col2 AS col0 FROM tab0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8987
SELECT COUNT( * ) * 29 AS col0 FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-8987
SELECT COUNT ( * ) * 29 AS col0 FROM tab1
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8988
SELECT DISTINCT - + col1 + col1, - ( + col2 ) FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-8988
SELECT DISTINCT - + col1 + col1, - ( + col2 ) FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8989
SELECT SUM( + - col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8989
SELECT SUM ( + - col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8990
SELECT + - ( CAST( - COUNT( * ) AS SIGNED ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8990
SELECT + - ( CAST ( - COUNT ( * ) AS INTEGER ) ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8991
SELECT - SUM( DISTINCT + col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8991
SELECT - SUM ( DISTINCT + col1 ) FROM tab1 AS cor0
----
-66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 20 + col1 IS NOT NULL
----

query I rowsort
SELECT col2 * - + 84 FROM tab0
----
-3948
-8316
-840

query I rowsort
SELECT + 94 + - + 53 AS col2 FROM tab2
----
41
41
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8995
SELECT DISTINCT + col1 FROM tab1 WHERE NOT CAST( - - 91 AS SIGNED ) * - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8995
SELECT DISTINCT + col1 FROM tab1 WHERE NOT CAST ( - - 91 AS INTEGER ) * - col1 IS NOT NULL
----

query I rowsort
SELECT + col0 AS col0 FROM tab1 WHERE NOT NULL >= + 1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 + + - col1 + - - col1 * + col2 * - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + col2 - - + col2 FROM tab2 AS cor0
----
116
46
80

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) = + ( 75 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9000
SELECT + + col2 + - + CAST( NULL AS SIGNED ) + 11 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9000
SELECT + + col2 + - + CAST ( NULL AS INTEGER ) + 11 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 * - - 32 * + ( + + 32 ) * col0 IS NULL
----

query I rowsort
SELECT DISTINCT + 13 + + - 85 FROM tab2 AS cor0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9003
SELECT ALL + CAST( NULL AS SIGNED ) + - 69 FROM tab1 AS cor0 WHERE - col2 - + col1 * - + col1 + - 64 / - 38 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9003
SELECT ALL + CAST ( NULL AS INTEGER ) + - 69 FROM tab1 AS cor0 WHERE - col2 - + col1 * - + col1 + - 64 / - 38 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9004
SELECT ALL - + 22 AS col2, - COUNT( * ) * MIN( DISTINCT + - 1 ) AS col2 FROM tab2 AS cor0
----
-22
3

skipif mysql # not compatible
query II rowsort label-9004
SELECT ALL - + 22 AS col2, - COUNT ( * ) * MIN ( DISTINCT + - 1 ) AS col2 FROM tab2 AS cor0
----
-22
3

query II rowsort
SELECT + - col0 AS col1, 33 + - + col0 AS col2 FROM tab1 AS cor0
----
-51
-18
-85
-52
-91
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9006
SELECT ALL + COUNT( * ) * - 69 + - COUNT( * ) FROM tab0
----
-210

skipif mysql # not compatible
query I rowsort label-9006
SELECT ALL + COUNT ( * ) * - 69 + - COUNT ( * ) FROM tab0
----
-210

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + ( - col0 ) <> NULL )
----

query I rowsort
SELECT DISTINCT col0 * + col0 * - - col2 AS col2 FROM tab0
----
10575
75690
931491

onlyif mysql # DIV for integer division: 
query I rowsort label-9009
SELECT ALL - col0 DIV - col1 * + + 92 DIV + - col1 AS col1 FROM tab2 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9009
SELECT ALL - col0 / - col1 * + + 92 / + - col1 AS col1 FROM tab2 cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT - 92 * + col2 AS col2 FROM tab0 AS cor0
----
-4324
-9108
-920

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT DISTINCT - + MIN( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9011
SELECT DISTINCT - + MIN ( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT - 7 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL 70 * - 8 FROM tab1
----
-560
-560
-560

query I rowsort
SELECT 77 * + + col0 FROM tab2
----
3542
4928
5775

query I rowsort
SELECT - col2 * 70 AS col1 FROM tab0 AS cor0
----
-3290
-6930
-700

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT COUNT( ALL - col0 ) * 96 AS col2 FROM tab2 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-9016
SELECT COUNT ( ALL - col0 ) * 96 AS col2 FROM tab2 AS cor0
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-9017
SELECT - COUNT( * ) AS col1 FROM tab1 cor0 WHERE NOT ( 3 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9017
SELECT - COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NOT ( 3 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9018
SELECT COUNT( DISTINCT - 51 ) col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9018
SELECT COUNT ( DISTINCT - 51 ) col1 FROM tab1 AS cor0
----
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 / - col0 * + col2 * col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 13 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9021
SELECT ( CAST( + 60 AS SIGNED ) ) FROM tab0
----
60
60
60

skipif mysql # not compatible
query I rowsort label-9021
SELECT ( CAST ( + 60 AS INTEGER ) ) FROM tab0
----
60
60
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + + 0 + - + col1 * + col1 * + ( - + col2 ) - ( - col1 ) col1 FROM tab0 AS cor0
----
199
308495
4441

query I rowsort
SELECT ALL ( + - col1 ) * col1 + + col0 AS col2 FROM tab2 cor0
----
-2555
-4414
-5865

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9024
SELECT ALL col2 + + ( - ( - - CAST( NULL AS SIGNED ) ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9024
SELECT ALL col2 + + ( - ( - - CAST ( NULL AS INTEGER ) ) ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + - col2 * + col2 AS col1 FROM tab2
----
-1560
-3306
-506

query I rowsort
SELECT DISTINCT - 42 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9027
SELECT + - ( - 10 ) AS col1 FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) + col0 - - 77 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9027
SELECT + - ( - 10 ) AS col1 FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) + col0 - - 77 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9028
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-9028
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT DISTINCT - COUNT( + 76 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9029
SELECT DISTINCT - COUNT ( + 76 ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - 54 - - col2 AS col0 FROM tab0 AS cor0
----
-44
-7
45

query I rowsort
SELECT col0 / - col2 AS col2 FROM tab1 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9032
SELECT ALL CAST( NULL AS SIGNED ) - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9032
SELECT ALL CAST ( NULL AS INTEGER ) - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 15 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9034
SELECT ALL - MIN( DISTINCT + col1 ) AS col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9034
SELECT ALL - MIN ( DISTINCT + col1 ) AS col1 FROM tab1 AS cor0
----
-5

query I rowsort
SELECT + + 76 + 12 FROM tab0 AS cor0
----
88
88
88

query I rowsort
SELECT + col2 * + 55 * col0 AS col0 FROM tab0
----
38775
47850
528165

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT DISTINCT + 34 * COUNT( * ) col0 FROM tab1
----
102

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9037
SELECT DISTINCT + 34 * COUNT ( * ) col0 FROM tab1
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-9038
SELECT + 0 DIV - col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9038
SELECT + 0 / - col2 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9039
SELECT ALL 48 DIV col0 col0 FROM tab0
----
0
0
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9039
SELECT ALL 48 / col0 col0 FROM tab0
----
0
0
3

query III rowsort
SELECT * FROM tab2 WHERE NOT + + ( - + col1 ) NOT BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT - COUNT( - col0 ) * 37 + + + MAX( ALL - col0 ) FROM tab2
----
-157

skipif mysql # not compatible
query I rowsort label-9041
SELECT - COUNT ( - col0 ) * 37 + + + MAX ( ALL - col0 ) FROM tab2
----
-157

query I rowsort
SELECT ALL - 65 * - - 9 AS col2 FROM tab0
----
-585
-585
-585

query I rowsort
SELECT ALL - 21 * + 88 AS col1 FROM tab0
----
-1848
-1848
-1848

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9044
SELECT - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9044
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9045
SELECT 11 - col0 AS col1 FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
-4
-76
-86

skipif mysql # not compatible
query I rowsort label-9045
SELECT 11 - col0 AS col1 FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
-4
-76
-86

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 94 + 88 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9047
SELECT + + 32 DIV - col1 + - - col0 * + + 94 FROM tab2 AS cor0
----
4324
6016
7050

skipif mysql # not compatible
query I rowsort label-9047
SELECT + + 32 / - col1 + - - col0 * + + 94 FROM tab2 AS cor0
----
4324
6016
7050

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9048
SELECT + 86 + + CAST( NULL AS SIGNED ) * - - col2, + col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-9048
SELECT + 86 + + CAST ( NULL AS INTEGER ) * - - col2, + col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

query I rowsort
SELECT + col2 + + col2 + + - col0 * + + col0 FROM tab2 AS cor0
----
-2070
-4016
-5509

query I rowsort
SELECT - col0 AS col0 FROM tab0 AS cor0 WHERE + col2 < NULL
----

query I rowsort
SELECT - - col2 + - 69 AS col2 FROM tab0 AS cor0
----
-22
-59
30

onlyif mysql # DIV for integer division: 
query I rowsort label-9052
SELECT + 92 + - - 32 + col0 DIV - + col0 col1 FROM tab1 AS cor0
----
123
123
123

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9052
SELECT + 92 + - - 32 + col0 / - + col0 col1 FROM tab1 AS cor0
----
123
123
123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9053
SELECT ALL + col0 * + ( - col2 ) + + col0 + - + col2 * - CAST( + ( + col1 ) AS SIGNED ) + + ( - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9053
SELECT ALL + col0 * + ( - col2 ) + + col0 + - + col2 * - CAST ( + ( + col1 ) AS INTEGER ) + + ( - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 6 + 19 + 3 + 50 / + col0 col0 FROM tab0 WHERE NULL <= + col0 + + - 88
----

query III rowsort
SELECT * FROM tab2 WHERE ( + col0 * 56 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9056
SELECT + COUNT( * ) FROM tab0 WHERE + ( - col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9056
SELECT + COUNT ( * ) FROM tab0 WHERE + ( - col2 ) IS NULL
----
0

query II rowsort
SELECT DISTINCT + col1 * - col0 + + + 4 + - col2 AS col0, 11 FROM tab1 AS cor0
----
-4341
11
-480
11
-806
11

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col2 <= NULL
----

query I rowsort
SELECT DISTINCT - 18 + + 92 FROM tab0 AS cor0
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9060
SELECT ALL * FROM tab0 WHERE CAST( - 99 AS SIGNED ) BETWEEN NULL AND + col2
----

skipif mysql # not compatible
query III rowsort label-9060
SELECT ALL * FROM tab0 WHERE CAST ( - 99 AS INTEGER ) BETWEEN NULL AND + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9061
SELECT COUNT( DISTINCT col0 ) DIV 18 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9061
SELECT COUNT ( DISTINCT col0 ) / 18 FROM tab2
----
0

query I rowsort
SELECT 2 - - 88 AS col0 FROM tab0
----
90
90
90

query III rowsort
SELECT * FROM tab2 WHERE NULL < ( col2 * - col2 + col2 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9064
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9064
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE col2 IS NULL
----
0

query I rowsort
SELECT DISTINCT ( 16 ) * + col0 AS col2 FROM tab0
----
1392
1552
240

onlyif mysql # aggregate syntax: 
query I rowsort label-9066
SELECT + COUNT( * ) + - SUM( + col0 ) AS col2 FROM tab1
----
-224

skipif mysql # not compatible
query I rowsort label-9066
SELECT + COUNT ( * ) + - SUM ( + col0 ) AS col2 FROM tab1
----
-224

onlyif mysql # aggregate syntax: 
query I rowsort label-9067
SELECT - ( - COUNT( * ) ) * - COUNT( * ) AS col1 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-9067
SELECT - ( - COUNT ( * ) ) * - COUNT ( * ) AS col1 FROM tab2
----
-9

query III rowsort
SELECT * FROM tab2 WHERE col1 * col0 <= ( col0 - 52 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9069
SELECT - COUNT( * ) * 66 FROM tab2
----
-198

skipif mysql # not compatible
query I rowsort label-9069
SELECT - COUNT ( * ) * 66 FROM tab2
----
-198

query I rowsort
SELECT 73 + + col0 AS col1 FROM tab0 WHERE + 31 + col0 IS NULL
----

query I rowsort
SELECT - 97 + col0 FROM tab2 WHERE col0 * col2 - col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( 96 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - ( - col2 ) ) BETWEEN col1 * col1 + + col2 AND col1 * col0 + 41
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
51
67
77

query I rowsort
SELECT + col0 + 59 AS col0 FROM tab0
----
146
156
74

query I rowsort
SELECT - ( 26 ) AS col2 FROM tab1
----
-26
-26
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 29 col0 FROM tab1
----
29
29
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9078
SELECT - ( - ( col0 ) ) + - col0 * CAST( 51 AS SIGNED ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9078
SELECT - ( - ( col0 ) ) + - col0 * CAST ( 51 AS INTEGER ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT - MAX( col1 ) FROM tab2 WHERE NULL IS NULL
----
-77

skipif mysql # not compatible
query I rowsort label-9079
SELECT - MAX ( col1 ) FROM tab2 WHERE NULL IS NULL
----
-77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 + ( - col0 + col0 ) IN ( - col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9081
SELECT + COUNT( * ) DIV 45 + 67 FROM tab0
----
67

skipif mysql # not compatible
query I rowsort label-9081
SELECT + COUNT ( * ) / 45 + 67 FROM tab0
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-9082
SELECT - 57 DIV - col1 + col0 AS col2 FROM tab2
----
47
64
75

skipif mysql # not compatible
query I rowsort label-9082
SELECT - 57 / - col1 + col0 AS col2 FROM tab2
----
47
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9083
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col1 * + ( 48 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9083
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col1 * + ( 48 ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9084
SELECT ( + COUNT( * ) ) + 93 * - COUNT( * ) FROM tab0
----
-276

skipif mysql # not compatible
query I rowsort label-9084
SELECT ( + COUNT ( * ) ) + 93 * - COUNT ( * ) FROM tab0
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-9085
SELECT MIN( DISTINCT 91 ) FROM tab2
----
91

skipif mysql # not compatible
query I rowsort label-9085
SELECT MIN ( DISTINCT 91 ) FROM tab2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9086
SELECT ( COUNT( ALL 75 ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9086
SELECT ( COUNT ( ALL 75 ) ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT + MIN( 19 ) AS col2 FROM tab2 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-9087
SELECT + MIN ( 19 ) AS col2 FROM tab2 AS cor0
----
19

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9088
SELECT - 58 DIV + CAST( + 21 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-9088
SELECT - 58 / + CAST ( + 21 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT DISTINCT - MIN( col2 ) * - 62 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3658

skipif mysql # not compatible
query I rowsort label-9089
SELECT DISTINCT - MIN ( col2 ) * - 62 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3658

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT + ( COUNT( * ) ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9090
SELECT + ( COUNT ( * ) ) AS col1 FROM tab0 cor0
----
3

query I rowsort
SELECT ALL col1 * ( col2 * - col0 ) AS col1 FROM tab2 AS cor0
----
-197120
-291450
-53958

onlyif mysql # aggregate syntax: 
query I rowsort label-9092
SELECT DISTINCT - COUNT( * ) * COUNT( * ) AS col0 FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9092
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2 cor0
----
-9

query I rowsort
SELECT DISTINCT + 61 + - 11 AS col0 FROM tab2 cor0 CROSS JOIN tab1
----
50

query III rowsort
SELECT * FROM tab1 WHERE NOT - 18 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9095
SELECT DISTINCT - - MIN( DISTINCT + col2 ) AS col2 FROM tab0 cor0
----
10

skipif mysql # not compatible
query I rowsort label-9095
SELECT DISTINCT - - MIN ( DISTINCT + col2 ) AS col2 FROM tab0 cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9096
SELECT DISTINCT - + MIN( ALL + ( + col1 ) ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9096
SELECT DISTINCT - + MIN ( ALL + ( + col1 ) ) FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9097
SELECT ALL + COUNT( * ) * - 88 FROM tab2 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-9097
SELECT ALL + COUNT ( * ) * - 88 FROM tab2 AS cor0
----
-264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * + ( + col1 ) col2 FROM tab2 AS cor0
----
2601
4489
5929

query I rowsort
SELECT col0 AS col0 FROM tab0 cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 AS cor0 WHERE 9 / + 20 + 89 * + 16 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 = + ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE + ( + col1 ) > 88 * - 63
----
3

skipif mysql # not compatible
query I rowsort label-9102
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE + ( + col1 ) > 88 * - 63
----
3

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 AS cor0 WHERE NOT - col2 * col1 BETWEEN - 19 AND + 84
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9104
SELECT MIN( - col2 ) FROM tab2 AS cor0 WHERE ( + 47 ) BETWEEN - ( + col0 ) AND col0
----
-58

skipif mysql # not compatible
query I rowsort label-9104
SELECT MIN ( - col2 ) FROM tab2 AS cor0 WHERE ( + 47 ) BETWEEN - ( + col0 ) AND col0
----
-58

query I rowsort
SELECT DISTINCT + + 76 + col0 AS col2 FROM tab0 cor0
----
163
173
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 58 ) col1 FROM tab1 AS cor0
----
58
58
58

query III rowsort
SELECT * FROM tab0 WHERE ( - 33 ) NOT IN ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 + - col2 * + 88 AS col2 FROM tab2
----
-2070
-3584
-5179

onlyif mysql # aggregate syntax: 
query I rowsort label-9109
SELECT ALL - COUNT( DISTINCT - + col1 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9109
SELECT ALL - COUNT ( DISTINCT - + col1 ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9110
SELECT - MIN( DISTINCT - col1 ) + - MAX( DISTINCT - col2 + + col0 ) FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-9110
SELECT - MIN ( DISTINCT - col1 ) + - MAX ( DISTINCT - col2 + + col0 ) FROM tab2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9111
SELECT + 3 + - COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9111
SELECT + 3 + - COUNT ( * ) FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9112
SELECT DISTINCT + ( + CAST( + 74 AS SIGNED ) ) AS col2 FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-9112
SELECT DISTINCT + ( + CAST ( + 74 AS INTEGER ) ) AS col2 FROM tab2
----
74

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT - col2 * col2 < ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9114
SELECT ALL COUNT( * ) + - 3 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9114
SELECT ALL COUNT ( * ) + - 3 AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9115
SELECT ALL MAX( + - 72 ) AS col1 FROM tab1
----
-72

skipif mysql # not compatible
query I rowsort label-9115
SELECT ALL MAX ( + - 72 ) AS col1 FROM tab1
----
-72

query I rowsort
SELECT col0 * + 22 + col1 FROM tab1 AS cor0
----
1136
1875
2049

query I rowsort
SELECT + col0 + + 43 AS col0 FROM tab1 AS cor0
----
128
134
94

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 AS cor0 WHERE NOT + 98 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 45 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9120
SELECT - COUNT( * ) + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND + 22
----
0

skipif mysql # not compatible
query I rowsort label-9120
SELECT - COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND + 22
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9121
SELECT DISTINCT 61 col2 FROM tab2 AS cor0 WHERE NOT CAST( - 90 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9121
SELECT DISTINCT 61 col2 FROM tab2 AS cor0 WHERE NOT CAST ( - 90 AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 48 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
48

query I rowsort
SELECT - 35 - - 58 * + col1 AS col1 FROM tab2
----
2923
3851
4431

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 87 * - col2 * - col0 ) >= - col1 - col1 * + col1
----

query I rowsort
SELECT ALL 44 * - col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + 71 ) IS NULL
----

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL >= ( + 17 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + 63 + + col1 BETWEEN - col0 * col0 AND col1
----
-3

skipif mysql # not compatible
query I rowsort label-9128
SELECT - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + 63 + + col1 BETWEEN - col0 * col0 AND col1
----
-3

query I rowsort
SELECT ALL - col2 * - ( col0 ) + col2 * col1 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9130
SELECT 44 * - - ( - - MAX( DISTINCT + - col0 ) ) AS col2 FROM tab1
----
-2244

skipif mysql # not compatible
query I rowsort label-9130
SELECT 44 * - - ( - - MAX ( DISTINCT + - col0 ) ) AS col2 FROM tab1
----
-2244

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col1 * col1 + col2 * + col0 BETWEEN ( NULL ) AND ( 50 - 95 * - col2 )
----
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9132
SELECT CAST( NULL AS SIGNED ) * 4 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9132
SELECT CAST ( NULL AS INTEGER ) * 4 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 11 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 13 * 34 * - col2 FROM tab0
----
-20774
-43758
-4420

onlyif mysql # aggregate syntax: 
query I rowsort label-9135
SELECT DISTINCT + COUNT( * ) + + - COUNT( ALL + col2 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9135
SELECT DISTINCT + COUNT ( * ) + + - COUNT ( ALL + col2 ) AS col0 FROM tab1
----
0

query II rowsort
SELECT DISTINCT - - 39 AS col1, 76 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
39
76

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9137
SELECT * FROM tab1 AS cor0 WHERE NULL > col2 + 80 * - col1 + + CAST( + CAST( NULL AS DECIMAL ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9137
SELECT * FROM tab1 AS cor0 WHERE NULL > col2 + 80 * - col1 + + CAST ( + CAST ( NULL AS REAL ) AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9138
SELECT DISTINCT - COUNT( DISTINCT + col1 ) * - 53 + + 73 FROM tab0 AS cor0
----
232

skipif mysql # not compatible
query I rowsort label-9138
SELECT DISTINCT - COUNT ( DISTINCT + col1 ) * - 53 + + 73 FROM tab0 AS cor0
----
232

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 22 * + + col2 ) NOT IN ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 12 ) IS NOT NULL
----

query I rowsort
SELECT ALL col2 * - + col0 + col1 AS col1 FROM tab2 AS cor0
----
-1007
-2483
-4283

onlyif mysql # aggregate syntax: 
query I rowsort label-9142
SELECT ALL - + COUNT( * ) + - COUNT( - - 65 ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9142
SELECT ALL - + COUNT ( * ) + - COUNT ( - - 65 ) FROM tab1 AS cor0
----
-6

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT COUNT( * ) + - 0 col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9144
SELECT COUNT ( * ) + - 0 col2 FROM tab1
----
3

query I rowsort
SELECT ALL - ( 68 ) + - - col2 * - col2 AS col2 FROM tab1
----
-3549
-4692
-9284

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9146
SELECT col2 + + CAST( 67 AS SIGNED ) FROM tab0
----
114
166
77

skipif mysql # not compatible
query I rowsort label-9146
SELECT col2 + + CAST ( 67 AS INTEGER ) FROM tab0
----
114
166
77

query I rowsort
SELECT DISTINCT + col0 * - col1 AS col1 FROM tab1 WHERE NOT 19 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col0 NOT BETWEEN - 20 + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9149
SELECT 97 AS col1, COUNT( * ) AS col1 FROM tab2
----
97
3

skipif mysql # not compatible
query II rowsort label-9149
SELECT 97 AS col1, COUNT ( * ) AS col1 FROM tab2
----
97
3

query I rowsort
SELECT - + 22 - 37 AS col0 FROM tab0 AS cor0
----
-59
-59
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9151
SELECT DISTINCT 41 - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( col0 )
----
41

skipif mysql # not compatible
query I rowsort label-9151
SELECT DISTINCT 41 - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( col0 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9152
SELECT + + MIN( + col1 ) - + 62 FROM tab1 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-9152
SELECT + + MIN ( + col1 ) - + 62 FROM tab1 AS cor0
----
-57

query I rowsort
SELECT - + col2 - - 37 AS col0 FROM tab1 AS cor0
----
-22
-31
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9154
SELECT ALL - + 46 + + CAST( 70 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

skipif mysql # not compatible
query I rowsort label-9154
SELECT ALL - + 46 + + CAST ( 70 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9155
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( col2 / - col1 + CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9155
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( col2 / - col1 + CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col2 * - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT + MAX( DISTINCT - col0 ) AS col1 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9157
SELECT + MAX ( DISTINCT - col0 ) AS col1 FROM tab2 AS cor0
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9158
SELECT - + col0 * - - 56 + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9158
SELECT - + col0 * - - 56 + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 + - col1 AS col2 FROM tab0 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
-66
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9160
SELECT COUNT( - - col0 ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9160
SELECT COUNT ( - - col0 ) col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT + col2 + col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + ( col2 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9162
SELECT DISTINCT - + 4 DIV + - col0 + col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-9162
SELECT DISTINCT - + 4 / + - col0 + col0 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT - col0 IS NOT NULL )
----

query II rowsort
SELECT + + ( - col1 ), col0 + 34 AS col2 FROM tab0 AS cor0
----
-1
131
-21
121
-81
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9165
SELECT - MAX( + col0 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-91

skipif mysql # not compatible
query I rowsort label-9165
SELECT - MAX ( + col0 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-91

query I rowsort
SELECT col0 FROM tab1 WHERE NOT + + col0 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9167
SELECT DISTINCT + col2 AS col2 FROM tab0 WHERE NOT 92 <> ( - ( CAST( + col0 AS SIGNED ) ) + - 83 / + + col0 )
----

skipif mysql # not compatible
query I rowsort label-9167
SELECT DISTINCT + col2 AS col2 FROM tab0 WHERE NOT 92 <> ( - ( CAST ( + col0 AS INTEGER ) ) + - 83 / + + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9168
SELECT col2 DIV col1 + - col1 AS col0 FROM tab0 WHERE NOT - ( - col1 ) * + + col0 = + col1 + + col0 + col2 + - 74
----
-21
-81
98

skipif mysql # not compatible
query I rowsort label-9168
SELECT col2 / col1 + - col1 AS col0 FROM tab0 WHERE NOT - ( - col1 ) * + + col0 = + col1 + + col0 + col2 + - 74
----
-21
-81
98

query I rowsort
SELECT - col1 * - 76 FROM tab2 AS cor0
----
3876
5092
5852

onlyif mysql # aggregate syntax: 
query I rowsort label-9170
SELECT ALL - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE + col1 NOT IN ( + - ( col1 ) * - 98 )
----
-3

skipif mysql # not compatible
query I rowsort label-9170
SELECT ALL - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE + col1 NOT IN ( + - ( col1 ) * - 98 )
----
-3

query I rowsort
SELECT DISTINCT - col2 + - col1 + + 15 + + col1 + - col1 AS col1 FROM tab1 AS cor0
----
-100
-49
-95

query I rowsort
SELECT ALL + col1 + + 53 + - 63 - + + 88 FROM tab0
----
-17
-77
-97

query I rowsort
SELECT - 60 * + col2 * + ( - 87 ) + col1 FROM tab2
----
120111
208877
302827

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + - 41 col1 FROM tab0
----
-3567
-3977
-615

query I rowsort
SELECT DISTINCT + + ( 40 ) * - col1 FROM tab2 AS cor0
----
-2040
-2680
-3080

onlyif mysql # aggregate syntax: 
query I rowsort label-9176
SELECT ALL - 49 * + 69 + + COUNT( - - col2 ) FROM tab0 AS cor0
----
-3378

skipif mysql # not compatible
query I rowsort label-9176
SELECT ALL - 49 * + 69 + + COUNT ( - - col2 ) FROM tab0 AS cor0
----
-3378

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT DISTINCT - SUM( ALL + + 90 ) AS col0 FROM tab1 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-9178
SELECT DISTINCT - SUM ( ALL + + 90 ) AS col0 FROM tab1 AS cor0
----
-270

query II rowsort
SELECT DISTINCT - + col0 * - col1, col1 FROM tab2 AS cor0
----
2346
51
4928
77
5025
67

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 64 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9181
SELECT DISTINCT MAX( - ( col0 ) ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-9181
SELECT DISTINCT MAX ( - ( col0 ) ) FROM tab0 AS cor0
----
-15

query I rowsort
SELECT + 56 - - col1 * + 48 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL ( - - 75 ) * + col2 AS col2 FROM tab1 AS cor0
----
4425
5100
7200

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 * + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9185
SELECT ALL MAX( + - 45 ) FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-9185
SELECT ALL MAX ( + - 45 ) FROM tab2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT 50 * - + 10 - - COUNT( ALL 62 ) col1 FROM tab2
----
-497

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9186
SELECT 50 * - + 10 - - COUNT ( ALL 62 ) col1 FROM tab2
----
-497

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9187
SELECT - 55 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9187
SELECT - 55 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 42 + col2 FROM tab0
----
141
52
89

onlyif mysql # DIV for integer division: 
query I rowsort label-9189
SELECT col0 DIV col2 * 62 + - 43 + 36 FROM tab1
----
-7
55
55

skipif mysql # not compatible
query I rowsort label-9189
SELECT col0 / col2 * 62 + - 43 + 36 FROM tab1
----
-7
55
55

query I rowsort
SELECT DISTINCT - ( + + col0 ) - + + ( - + 88 ) + col0 * + 52 AS col0 FROM tab1 cor0
----
2689
4423
4729

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col0 - col0, 66 + + col2 )
----

query II rowsort
SELECT ALL - 71, + col0 FROM tab1 AS cor0
----
-71
51
-71
85
-71
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9193
SELECT ALL + MIN( 34 ) * - 99 + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT col2 * col2 - 33 BETWEEN ( NULL ) AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9193
SELECT ALL + MIN ( 34 ) * - 99 + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT col2 * col2 - 33 BETWEEN ( NULL ) AND col1
----
NULL

query I rowsort
SELECT DISTINCT - + 20 AS col0 FROM tab2 AS cor0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9195
SELECT - COUNT( * ) AS col0 FROM tab0 cor0 WHERE NOT - 32 * - col2 + - 11 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9195
SELECT - COUNT ( * ) AS col0 FROM tab0 cor0 WHERE NOT - 32 * - col2 + - 11 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9196
SELECT * FROM tab1 cor0 WHERE NOT - ( + 32 ) IN ( + 79 * - col2 + CAST( + 9 AS SIGNED ) - 62 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9196
SELECT * FROM tab1 cor0 WHERE NOT - ( + 32 ) IN ( + 79 * - col2 + CAST ( + 9 AS INTEGER ) - 62 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 AS cor0 WHERE NULL = ( NULL )
----

query III rowsort
SELECT ALL 79, col2, - - col0 AS col1 FROM tab2 AS cor0
----
9 values hashing to dcfa69645bbd63c3eeb8849f6b49ab12

query I rowsort
SELECT + 1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1
1
1

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 * - + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT ALL + ( - + COUNT( 80 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9201
SELECT ALL + ( - + COUNT ( 80 ) ) FROM tab0
----
-3

query I rowsort
SELECT DISTINCT - 55 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-55

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT ( NOT + col2 >= - 62 )
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9204
SELECT ALL - MAX( - - ( - + 28 ) ) AS col1 FROM tab1 WHERE NOT + col1 IS NULL
----
28

skipif mysql # not compatible
query I rowsort label-9204
SELECT ALL - MAX ( - - ( - + 28 ) ) AS col1 FROM tab1 WHERE NOT + col1 IS NULL
----
28

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 * col1 - + 55 < - + 54
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 83 col0 FROM tab2 cor0
----
83

query I rowsort
SELECT DISTINCT - 60 * - col2 + + 0 AS col2 FROM tab1
----
3540
4080
5760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9208
SELECT ALL - + col2 col2 FROM tab0 WHERE NOT - col2 NOT BETWEEN col0 + + 3 + + CAST( - col0 AS SIGNED ) AND + col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9208
SELECT ALL - + col2 col2 FROM tab0 WHERE NOT - col2 NOT BETWEEN col0 + + 3 + + CAST ( - col0 AS INTEGER ) AND + col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 74 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9210
SELECT + col0 * - ( col1 ) + + col1 + col2 * + col1 + + col0 + - ( + - CAST( - col2 AS SIGNED ) ) + - - col0 col2 FROM tab0 AS cor0
----
-1432
2656
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9210
SELECT + col0 * - ( col1 ) + + col1 + col2 * + col1 + + col0 + - ( + - CAST ( - col2 AS INTEGER ) ) + - - col0 col2 FROM tab0 AS cor0
----
-1432
2656
98

query I rowsort
SELECT - ( - col0 ) * col0 + - col1 FROM tab1 AS cor0
----
2587
7220
8234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT - 37 col2, col0 * + ( + - 90 ) * col1 + 26 AS col1, + + col0 AS col0 FROM tab0 AS cor0
----
9 values hashing to 4084fcdbd425528f81367c5da0c5952d

onlyif mysql # DIV for integer division: 
query I rowsort label-9213
SELECT - - col0 + 12 DIV 22 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-9213
SELECT - - col0 + 12 / 22 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-9214
SELECT col2 DIV - col2 + + col0 * 47 + ( - 85 ) AS col1 FROM tab1 cor0
----
2311
3909
4191

skipif mysql # not compatible
query I rowsort label-9214
SELECT col2 / - col2 + + col0 * 47 + ( - 85 ) AS col1 FROM tab1 cor0
----
2311
3909
4191

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9215
SELECT COUNT( * ) * COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE 95 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9215
SELECT COUNT ( * ) * COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE 95 >= NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 * + 66 + - 17 FROM tab2
----
3349
4405
5065

query III rowsort
SELECT * FROM tab0 WHERE NULL > 56 * + 63 + - col1 + - col1
----

query I rowsort
SELECT + col1 * col0 + + - col0 AS col1 FROM tab1 WHERE - col2 NOT BETWEEN NULL AND - - 15
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9219
SELECT 54 / MAX( col1 ) FROM tab1 WHERE NULL NOT BETWEEN + col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9219
SELECT 54 / MAX ( col1 ) FROM tab1 WHERE NULL NOT BETWEEN + col0 AND NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9220
SELECT DISTINCT - col0 + + col2 * - col0 * - + ( col0 ) + - col0 DIV - 2 FROM tab0
----
10567
75646
931442

skipif mysql # not compatible
query I rowsort label-9220
SELECT DISTINCT - col0 + + col2 * - col0 * - + ( col0 ) + - col0 / - 2 FROM tab0
----
10567
75646
931442

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - - col0 * + col1 col1 FROM tab2
----
2369
4968
5083

query I rowsort
SELECT DISTINCT + col1 - + col0 * - 93 AS col1 FROM tab2 AS cor0
----
4329
6029
7042

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9223
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST( - col0 AS SIGNED ) <> + ( + 55 )
----

skipif mysql # not compatible
query III rowsort label-9223
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( - col0 AS INTEGER ) <> + ( + 55 )
----

query I rowsort
SELECT 5 * - - 57 + - 65 FROM tab1 AS cor0
----
220
220
220

query I rowsort
SELECT ALL 33 AS col2 FROM tab1 AS cor0 WHERE NOT + 32 * - col2 + - 21 + + 89 < col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9226
SELECT DISTINCT - col2 DIV - ( ( - 26 ) ) AS col2 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-9226
SELECT DISTINCT - col2 / - ( ( - 26 ) ) AS col2 FROM tab2
----
-1
-2
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT - col2 + + col2 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 44 AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9229
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 2 * + col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9229
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 2 * + col2 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT 35 AS col1, 57 FROM tab0 AS cor0
----
35
57

onlyif mysql # aggregate syntax: 
query II rowsort label-9231
SELECT - 24, - SUM( - + 10 ) AS col0 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----
-24
NULL

skipif mysql # not compatible
query II rowsort label-9231
SELECT - 24, - SUM ( - + 10 ) AS col0 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----
-24
NULL

query I rowsort
SELECT - col2 AS col0 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-9233
SELECT - + col1 DIV 48 col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9233
SELECT - + col1 / 48 col2 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9234
SELECT 29 / ( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9234
SELECT 29 / ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT DISTINCT MIN( - 6 ) AS col1 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9235
SELECT DISTINCT MIN ( - 6 ) AS col1 FROM tab1 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9236
SELECT ALL COUNT( * ) * + MAX( - + 38 ) AS col1 FROM tab1 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-9236
SELECT ALL COUNT ( * ) * + MAX ( - + 38 ) AS col1 FROM tab1 AS cor0
----
-114

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT + col1 + + ( - ( - col2 ) ) + + col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT + MIN( col1 ) * - - 59 AS col2 FROM tab1
----
295

skipif mysql # not compatible
query I rowsort label-9238
SELECT + MIN ( col1 ) * - - 59 AS col2 FROM tab1
----
295

onlyif mysql # aggregate syntax: 
query I rowsort label-9239
SELECT + 92 * - - COUNT( * ) FROM tab2
----
276

skipif mysql # not compatible
query I rowsort label-9239
SELECT + 92 * - - COUNT ( * ) FROM tab2
----
276

onlyif mysql # aggregate syntax: 
query I rowsort label-9240
SELECT - MIN( 84 ) FROM tab1 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-9240
SELECT - MIN ( 84 ) FROM tab1 AS cor0
----
-84

query I rowsort
SELECT 45 * + ( 24 ) + + col1 + - col2 AS col0 FROM tab2 AS cor0
----
1089
1108
1117

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT ALL ( + - MAX( + + col2 ) ) col2 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9242
SELECT ALL ( + - MAX ( + + col2 ) ) col2 FROM tab2 AS cor0
----
-58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 91 <= - - col0 * - col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 92 + ( - col1 ) - col1 >= - ( + - 35 ) + + col1 + + 71 * col0
----

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE - col0 < - - col0
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col0, - col2 + + col1 AS col2 FROM tab1 AS cor0
----
59
-54
68
-21
96
-82

query III rowsort
SELECT * FROM tab0 WHERE + - ( 34 ) <= - col0 - + 88
----

query I rowsort
SELECT ALL col1 - 61 - + 3 AS col1 FROM tab0
----
-43
-63
17

query I rowsort
SELECT DISTINCT - - col0 - 1 AS col1 FROM tab2 AS cor0
----
45
63
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9250
SELECT - + 45 * + + SUM( ALL - + col0 ) AS col0 FROM tab2 cor0
----
8325

skipif mysql # not compatible
query I rowsort label-9250
SELECT - + 45 * + + SUM ( ALL - + col0 ) AS col0 FROM tab2 cor0
----
8325

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> col0 + + + col1
----

query I rowsort
SELECT - 18 + - col2 AS col2 FROM tab2
----
-41
-58
-76

query III rowsort
SELECT * FROM tab0 WHERE - - col2 > - ( col0 ) * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9254
SELECT ALL 49 * + MAX( DISTINCT col1 ) AS col2 FROM tab1
----
2303

skipif mysql # not compatible
query I rowsort label-9254
SELECT ALL 49 * + MAX ( DISTINCT col1 ) AS col2 FROM tab1
----
2303

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 IN ( col1, col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - 93 AS col2, 90 * + col0 FROM tab0 AS cor0
----
-93
1350
-93
7830
-93
8730

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9257
SELECT col0 * + 75 + + col2 * + col1 * col1 - - - col0, - col2 + + ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
241896
NULL
265912
NULL
63227
NULL

skipif mysql # not compatible
query II rowsort label-9257
SELECT col0 * + 75 + + col2 * + col1 * col1 - - - col0, - col2 + + ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
241896
NULL
265912
NULL
63227
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 31 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 77 + - 16 BETWEEN NULL AND + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9260
SELECT - SUM( col1 ) FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9260
SELECT - SUM ( col1 ) FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
NULL

query I rowsort
SELECT + 51 * + col1 AS col0 FROM tab2 AS cor0
----
2601
3417
3927

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9262
SELECT DISTINCT - ( CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0 WHERE NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-9262
SELECT DISTINCT - ( CAST ( NULL AS REAL ) ) FROM tab1 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT 22 + + - ( + + col0 ) AS col1 FROM tab2 cor0
----
-24
-42
-53

query I rowsort
SELECT ALL - col0 + - col0 * - - 53 AS col0 FROM tab0
----
-4698
-5238
-810

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9265
SELECT * FROM tab2 WHERE - col1 + + 11 + - col1 + - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9265
SELECT * FROM tab2 WHERE - col1 + + 11 + - col1 + - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9266
SELECT COUNT( * ) + + 95 AS col1 FROM tab0
----
98

skipif mysql # not compatible
query I rowsort label-9266
SELECT COUNT ( * ) + + 95 AS col1 FROM tab0
----
98

query I rowsort
SELECT ALL + col0 + - 58 AS col1 FROM tab2
----
-12
17
6

query I rowsort
SELECT col0 * - col0 * + col0 * - col0 AS col1 FROM tab1
----
52200625
6765201
68574961

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9269
SELECT ALL - MIN( DISTINCT - + 43 ) AS col2 FROM tab2 WHERE NOT 54 NOT IN ( 70, col2, ( + ( col0 ) ), + CAST( NULL AS SIGNED ) - 55 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9269
SELECT ALL - MIN ( DISTINCT - + 43 ) AS col2 FROM tab2 WHERE NOT 54 NOT IN ( 70, col2, ( + ( col0 ) ), + CAST ( NULL AS INTEGER ) - 55 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT ALL + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 97 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9270
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 97 IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT - + col1, 86 AS col1 FROM tab2 AS cor0
----
-51
86
-67
86
-77
86

query I rowsort
SELECT DISTINCT - ( 82 ) FROM tab2 AS cor0
----
-82

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE 6 IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 48 BETWEEN - col1 AND - - 13 - 70
----

query II rowsort
SELECT - col1 AS col1, + col2 * - col2 * + ( + 18 ) FROM tab2 AS cor0
----
-51
-9522
-67
-60552
-77
-28800

query I rowsort
SELECT + col0 * + 49 AS col2 FROM tab2 cor0
----
2254
3136
3675

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT ALL MIN( - - col1 ) col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9277
SELECT ALL MIN ( - - col1 ) col1 FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT ALL - COUNT( - - col0 ) + + 38 FROM tab0 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-9278
SELECT ALL - COUNT ( - - col0 ) + + 38 FROM tab0 AS cor0
----
35

query I rowsort
SELECT ALL - + 53 - + ( 1 ) FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-54
-54
-54

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 * - 39 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9281
SELECT ALL * FROM tab1 WHERE NOT + col1 NOT BETWEEN + col2 - - col0 AND + 13 + - CAST( - 55 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9281
SELECT ALL * FROM tab1 WHERE NOT + col1 NOT BETWEEN + col2 - - col0 AND + 13 + - CAST ( - 55 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT DISTINCT COUNT( DISTINCT - 22 ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9282
SELECT DISTINCT COUNT ( DISTINCT - 22 ) AS col0 FROM tab1
----
1

query I rowsort
SELECT + ( + ( + + 51 ) ) AS col0 FROM tab2 AS cor0
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9284
SELECT DISTINCT SUM( ALL col0 ) col2 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9284
SELECT DISTINCT SUM ( ALL col0 ) col2 FROM tab1 AS cor0
----
227

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT ( NULL IS NULL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, - col2 * + + 47 col2 FROM tab2
----
51
-1081
67
-2726
77
-1880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9287
SELECT 59 AS col2, - COUNT( * ) * + - MIN( - CAST( - + CAST( - + col2 AS SIGNED ) AS SIGNED ) ) AS col1 FROM tab2 cor0
----
59
-174

skipif mysql # not compatible
query II rowsort label-9287
SELECT 59 AS col2, - COUNT ( * ) * + - MIN ( - CAST ( - + CAST ( - + col2 AS INTEGER ) AS INTEGER ) ) AS col1 FROM tab2 cor0
----
59
-174

query I rowsort
SELECT ALL + 10 * - 17 AS col1 FROM tab1 AS cor0
----
-170
-170
-170

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 73 + - - col0 + - col1 * - col2 col0 FROM tab1
----
1322
307
3214

query II rowsort
SELECT DISTINCT + col1 + - 50, col2 AS col0 FROM tab0
----
-29
10
-49
99
31
47

query I rowsort
SELECT DISTINCT col1 * - col2 * col0 AS col1 FROM tab1
----
-25075
-290836
-68544

query I rowsort
SELECT col1 + - 63 AS col2 FROM tab0
----
-42
-62
18

query I rowsort
SELECT + ( + - col0 ) * - - 75 * - - col0 * col2 + col2 AS col0 FROM tab1
----
-18727104
-31970566
-42233032

query I rowsort
SELECT + 84 + - ( + 66 ) FROM tab1 AS cor0
----
18
18
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9295
SELECT DISTINCT - MIN( DISTINCT + col1 ) * + 69 FROM tab2 AS cor0
----
-3519

skipif mysql # not compatible
query I rowsort label-9295
SELECT DISTINCT - MIN ( DISTINCT + col1 ) * + 69 FROM tab2 AS cor0
----
-3519

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9296
SELECT ALL * FROM tab1 WHERE + + col0 * 35 BETWEEN - col2 AND - + col1 / - CAST( 33 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9296
SELECT ALL * FROM tab1 WHERE + + col0 * 35 BETWEEN - col2 AND - + col1 / - CAST ( 33 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT - ( + SUM( DISTINCT - col0 ) ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-9297
SELECT - ( + SUM ( DISTINCT - col0 ) ) FROM tab0
----
199

query I rowsort
SELECT ALL + col1 - + 32 AS col1 FROM tab0
----
-11
-31
49

query I rowsort
SELECT ALL + - col2 AS col1 FROM tab1 WHERE NOT NULL BETWEEN - col1 AND NULL
----

query I rowsort
SELECT DISTINCT - 67 - + - 18 + + col1 + + + col2 + + + 5 AS col2 FROM tab2
----
30
73
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9301
SELECT + + MIN( - col0 ) - - 87, CAST( - 93 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-4
-93

skipif mysql # not compatible
query II rowsort label-9301
SELECT + + MIN ( - col0 ) - - 87, CAST ( - 93 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-4
-93

query I rowsort
SELECT ALL - 6 - - col2 + + + col2 * 0 FROM tab1 AS cor0
----
53
62
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT ALL SUM( ALL - col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-9303
SELECT ALL SUM ( ALL - col0 ) FROM tab0 AS cor0
----
-199

query I rowsort
SELECT DISTINCT - - 54 - - ( + col1 ) AS col0 FROM tab1 cor0
----
101
59
68

query I rowsort
SELECT ALL - 82 * + col2 AS col2 FROM tab2 cor0
----
-1886
-3280
-4756

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 * - 11 + 63 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - 26 * col2 FROM tab2 cor0
----
-1040
-1508
-598

query II rowsort
SELECT + 0, + col0 AS col1 FROM tab0
----
0
15
0
87
0
97

query I rowsort
SELECT ALL + - col0 AS col1 FROM tab0 WHERE NOT - col2 * + + col0 = - col2 * col0
----

query II rowsort
SELECT - col0 AS col2, - col1 FROM tab1
----
-51
-14
-85
-5
-91
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9311
SELECT 76 DIV - COUNT( * ) FROM tab0
----
-25

skipif mysql # not compatible
query I rowsort label-9311
SELECT 76 / - COUNT ( * ) FROM tab0
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-9312
SELECT ALL 2 DIV - col2 * + + col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9312
SELECT ALL 2 / - col2 * + + col1 FROM tab0
----
0
0
0

query I rowsort
SELECT - col1 * + col1 AS col0 FROM tab2 WHERE NOT - - col1 + + ( col0 ) <> - col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 20 * + col2 - + 25 NOT BETWEEN - - col0 AND NULL
----

query I rowsort
SELECT ALL + 53 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT ALL - - col0 * + col0 + + + col1 - - - col0 AS col0 FROM tab0 cor0
----
291
7503
9313

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9317
SELECT DISTINCT - CAST( + col0 AS SIGNED ) * col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

skipif mysql # not compatible
query I rowsort label-9317
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) * col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( ( NULL ) BETWEEN + col2 AND NULL ) OR NOT - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < 60 + - col1
----

query I rowsort
SELECT ALL - 29 AS col0 FROM tab2 cor0
----
-29
-29
-29

query I rowsort
SELECT ( + + col1 ) + - 23 + - - col2 FROM tab0 AS cor0
----
105
77
8

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 30 IS NULL
----

query I rowsort
SELECT - + 55 AS col0 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
-55
-55
-55

query I rowsort
SELECT - + 84 + - - col0 FROM tab1 AS cor0
----
-33
1
7

query I rowsort
SELECT + col2 * - - 40 + - - 75 AS col0 FROM tab2 AS cor0
----
1675
2395
995

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9326
SELECT - ( + + col1 ) / ( - + 73 ) * + CAST( NULL AS SIGNED ) + - + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9326
SELECT - ( + + col1 ) / ( - + 73 ) * + CAST ( NULL AS INTEGER ) + - + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + - col1 + 71 FROM tab1 cor0
----
108
115
151

onlyif mysql # aggregate syntax: 
query I rowsort label-9328
SELECT ALL + 23 + - 52 + - COUNT( * ) FROM tab2
----
-32

skipif mysql # not compatible
query I rowsort label-9328
SELECT ALL + 23 + - 52 + - COUNT ( * ) FROM tab2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT ALL + MIN( DISTINCT + 55 ) * + 48 * - SUM( ALL - - col0 ) + + ( - + 3 ) + + MIN( DISTINCT col2 ) AS col2 FROM tab1
----
-599224

skipif mysql # not compatible
query I rowsort label-9329
SELECT ALL + MIN ( DISTINCT + 55 ) * + 48 * - SUM ( ALL - - col0 ) + + ( - + 3 ) + + MIN ( DISTINCT col2 ) AS col2 FROM tab1
----
-599224

query I rowsort
SELECT DISTINCT col2 + - col2 + - col1 + - 53 FROM tab1
----
-100
-58
-67

query I rowsort
SELECT ALL 48 + - col0 AS col0 FROM tab0
----
-39
-49
33

query III rowsort
SELECT * FROM tab1 WHERE col2 NOT BETWEEN + - 96 AND + col2
----

query I rowsort
SELECT ALL - col1 - - - col0 + - col0 + + - 37 FROM tab1 AS cor0
----
-153
-212
-266

onlyif mysql # aggregate syntax: 
query I rowsort label-9334
SELECT + COUNT( * ) * + + 50 - - COUNT( * ) FROM tab0 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-9334
SELECT + COUNT ( * ) * + + 50 - - COUNT ( * ) FROM tab0 AS cor0
----
153

query I rowsort
SELECT ALL + 35 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9336
SELECT DISTINCT 53 DIV COUNT( ALL + col2 ) AS col2 FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-9336
SELECT DISTINCT 53 / COUNT ( ALL + col2 ) AS col2 FROM tab0
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-9337
SELECT ALL + MIN( - - col2 ) AS col1, 15 AS col1 FROM tab2 AS cor0
----
23
15

skipif mysql # not compatible
query II rowsort label-9337
SELECT ALL + MIN ( - - col2 ) AS col1, 15 AS col1 FROM tab2 AS cor0
----
23
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 66 col2 FROM tab2 AS cor0
----
-66
-66
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT DISTINCT + + SUM( + - 85 ) FROM tab1 AS cor0
----
-255

skipif mysql # not compatible
query I rowsort label-9339
SELECT DISTINCT + + SUM ( + - 85 ) FROM tab1 AS cor0
----
-255

query I rowsort
SELECT - col0 AS col2 FROM tab0 AS cor0 WHERE NOT - col0 + - col1 IS NOT NULL
----

query I rowsort
SELECT ALL 4 * 32 * + + 6 FROM tab1 AS cor0
----
768
768
768

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * + col2 BETWEEN NULL AND ( - 2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-9343
SELECT + col1 * + col2 AS col1, - col1 DIV + col2 + + col0 + + 5 DIV 37 + - 45 AS col0 FROM tab0 AS cor0
----
210
40
3807
-31
99
52

skipif mysql # not compatible
query II rowsort label-9343
SELECT + col1 * + col2 AS col1, - col1 / + col2 + + col0 + + 5 / 37 + - 45 AS col0 FROM tab0 AS cor0
----
210
40
3807
-31
99
52

query I rowsort
SELECT DISTINCT + col0 * + 71 AS col2 FROM tab1 AS cor0
----
3621
6035
6461

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 86 col2, - 79 FROM tab2
----
86
-79
86
-79
86
-79

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE NOT - - 66 NOT BETWEEN NULL AND + - ( + - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9347
SELECT - col1 DIV + col0 col2 FROM tab0
----
-5
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9347
SELECT - col1 / + col0 col2 FROM tab0
----
-5
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT + 20 = NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9349
SELECT + COUNT( * ) FROM tab2 WHERE NOT - + col1 NOT BETWEEN NULL AND + col0
----
0

skipif mysql # not compatible
query I rowsort label-9349
SELECT + COUNT ( * ) FROM tab2 WHERE NOT - + col1 NOT BETWEEN NULL AND + col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9350
SELECT - 20 DIV - 12 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9350
SELECT - 20 / - 12 AS col0 FROM tab0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9351
SELECT + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9351
SELECT + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9352
SELECT - 24 + + SUM( ALL col1 ) AS col1 FROM tab0
----
79

skipif mysql # not compatible
query I rowsort label-9352
SELECT - 24 + + SUM ( ALL col1 ) AS col1 FROM tab0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT ALL SUM( ALL col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-9353
SELECT ALL SUM ( ALL col2 ) FROM tab2 AS cor0
----
121

query I rowsort
SELECT col2 * + col0 + + 43 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL BETWEEN col2 / + - col1 AND NULL
----

query II rowsort
SELECT DISTINCT + col0, ( + 11 ) AS col1 FROM tab0 AS cor0
----
15
11
87
11
97
11

query II rowsort
SELECT ALL col0, col0 + + col2 AS col1 FROM tab1 AS cor0
----
51
147
85
144
91
159

query II rowsort
SELECT + - 48, - 48 FROM tab0 AS cor0
----
-48
-48
-48
-48
-48
-48

query I rowsort
SELECT + 57 AS col2 FROM tab1 cor0
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9360
SELECT + COUNT( * ) + + COUNT( ALL - col0 ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-9360
SELECT + COUNT ( * ) + + COUNT ( ALL - col0 ) FROM tab0
----
6

query III rowsort
SELECT * FROM tab0 WHERE - col0 < + col1 + + 96 OR NOT + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-9362
SELECT DISTINCT + 61 DIV - + ( - + col2 ) + - col0 + + 43, + col1 * + col1 col2 FROM tab1
----
-41
25
-48
2209
-8
196

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9362
SELECT DISTINCT + 61 / - + ( - + col2 ) + - col0 + + 43, + col1 * + col1 col2 FROM tab1
----
-41
25
-48
2209
-8
196

query III rowsort
SELECT * FROM tab2 WHERE - col0 NOT IN ( - 34 + - 92, col1, + ( + col0 ) + + ( 96 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-9364
SELECT ALL + COUNT( * ) - - - 10, - COUNT( * ) AS col0 FROM tab0
----
-7
-3

skipif mysql # not compatible
query II rowsort label-9364
SELECT ALL + COUNT ( * ) - - - 10, - COUNT ( * ) AS col0 FROM tab0
----
-7
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT ALL + - MIN( - col2 ) - - 15 AS col2 FROM tab0 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-9365
SELECT ALL + - MIN ( - col2 ) - - 15 AS col2 FROM tab0 AS cor0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT + 95 * - - 47 + + 1 + - - MAX( - col2 ) FROM tab2 AS cor0
----
4443

skipif mysql # not compatible
query I rowsort label-9366
SELECT + 95 * - - 47 + + 1 + - - MAX ( - col2 ) FROM tab2 AS cor0
----
4443

query I rowsort
SELECT ALL + - ( + 29 ) - + 68 AS col0 FROM tab1 AS cor0
----
-97
-97
-97

query I rowsort
SELECT - - col0 FROM tab2 cor0 WHERE - 99 / + + col0 IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9369
SELECT + - COUNT( DISTINCT - + col0 ) col2 FROM tab1 AS cor0 WHERE col1 + - col0 <= 54
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9369
SELECT + - COUNT ( DISTINCT - + col0 ) col2 FROM tab1 AS cor0 WHERE col1 + - col0 <= 54
----
-3

query I rowsort
SELECT DISTINCT - 41 * - col0 * - 21 AS col0 FROM tab0
----
-12915
-74907
-83517

onlyif mysql # aggregate syntax: 
query II rowsort label-9371
SELECT + 46 AS col0, + MAX( - + col0 ) AS col1 FROM tab0
----
46
-15

skipif mysql # not compatible
query II rowsort label-9371
SELECT + 46 AS col0, + MAX ( - + col0 ) AS col1 FROM tab0
----
46
-15

onlyif mysql # DIV for integer division: 
query II rowsort label-9372
SELECT + col1, + 62 DIV - - col1 FROM tab1 cor0
----
14
4
47
1
5
12

skipif mysql # not compatible
query II rowsort label-9372
SELECT + col1, + 62 / - - col1 FROM tab1 cor0
----
14
4
47
1
5
12

query I rowsort
SELECT DISTINCT - + ( 84 ) FROM tab0 AS cor0
----
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col0, - 13 FROM tab2 AS cor0
----
-46
-13
-64
-13
-75
-13

query II rowsort
SELECT ALL + col2 AS col1, col0 AS col2 FROM tab0 AS cor0
----
10
87
47
15
99
97

query I rowsort
SELECT DISTINCT col2 / col1 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT - ( + + col1 ) * 6 AS col0, - col0 FROM tab1 AS cor0
----
-282
-91
-30
-85
-84
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-9378
SELECT - ( 98 ) AS col2, - COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----
-98
0

skipif mysql # not compatible
query II rowsort label-9378
SELECT - ( 98 ) AS col2, - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----
-98
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 26 >= 3
----

query II rowsort
SELECT col1, - 96 AS col0 FROM tab1 AS cor0 WHERE NOT col2 BETWEEN + 50 AND - col0 + - 80
----
14
-96
47
-96
5
-96

query I rowsort
SELECT + 62 + + col2 FROM tab2 AS cor0 WHERE NOT NULL <= 35
----

query I rowsort
SELECT ALL + - col2 * + - col0 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT DISTINCT + col1 * 43 AS col2 FROM tab2
----
2193
2881
3311

query I rowsort
SELECT col0 * + - col2 * - ( - 49 ) FROM tab2
----
-125440
-213150
-51842

query II rowsort
SELECT col0 * - col1, col2 AS col1 FROM tab0
----
-1215
47
-1827
10
-97
99

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9386
SELECT * FROM tab2 WHERE NULL NOT BETWEEN - ( + col0 ) + - 11 * + col2 AND - CAST( NULL AS DECIMAL ) AND NOT NULL IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9386
SELECT * FROM tab2 WHERE NULL NOT BETWEEN - ( + col0 ) + - 11 * + col2 AND - CAST ( NULL AS REAL ) AND NOT NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT col1 * - col1, col2 * - - col2 AS col0 FROM tab1
----
-196
9216
-2209
4624
-25
3481

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9388
SELECT - col1 DIV 90 * ( + CAST( + 79 AS SIGNED ) ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9388
SELECT - col1 / 90 * ( + CAST ( + 79 AS INTEGER ) ) FROM tab0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 13 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT + ( + MAX( col2 ) ) AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-9390
SELECT + ( + MAX ( col2 ) ) AS col0 FROM tab2 AS cor0
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9391
SELECT + - 43 DIV col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9391
SELECT + - 43 / col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9392
SELECT ALL + - 10 * - + col1 DIV + col1 + - ( col0 ) FROM tab0 AS cor0
----
-5
-77
-87

skipif mysql # not compatible
query I rowsort label-9392
SELECT ALL + - 10 * - + col1 / + col1 + - ( col0 ) FROM tab0 AS cor0
----
-5
-77
-87

query I rowsort
SELECT ALL ( - col1 ) FROM tab0 WHERE ( NULL ) IS NULL OR NULL IS NOT NULL
----
-1
-21
-81

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 36 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 75 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9396
SELECT DISTINCT - MAX( ALL 73 ) col1 FROM tab0 AS cor0
----
-73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9396
SELECT DISTINCT - MAX ( ALL 73 ) col1 FROM tab0 AS cor0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT ALL - COUNT( col0 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9397
SELECT ALL - COUNT ( col0 ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + + 80 + 52 FROM tab2 AS cor0
----
132
132
132

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 31 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT + COUNT( ALL - col2 ) * COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-9400
SELECT + COUNT ( ALL - col2 ) * COUNT ( * ) FROM tab2
----
9

query II rowsort
SELECT 12 AS col2, - col0 * ( - col1 ) * + col1 FROM tab0
----
12
38367
12
97
12
98415

query II rowsort
SELECT - 41 AS col2, - 92 AS col0 FROM tab2
----
-41
-92
-41
-92
-41
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-9403
SELECT DISTINCT col0 * 57 DIV - 94 + + col1 FROM tab1
----
-16
-46
-8

skipif mysql # not compatible
query I rowsort label-9403
SELECT DISTINCT col0 * 57 / - 94 + + col1 FROM tab1
----
-16
-46
-8

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9405
SELECT ALL + COUNT( * ) - + 25 FROM tab1
----
-22

skipif mysql # not compatible
query I rowsort label-9405
SELECT ALL + COUNT ( * ) - + 25 FROM tab1
----
-22

query III rowsort
SELECT * FROM tab2 WHERE - - 72 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9407
SELECT DISTINCT COUNT( DISTINCT - 8 ) col0, MIN( DISTINCT + col1 ) * + COUNT( * ) FROM tab0 AS cor0
----
1
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9407
SELECT DISTINCT COUNT ( DISTINCT - 8 ) col0, MIN ( DISTINCT + col1 ) * + COUNT ( * ) FROM tab0 AS cor0
----
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE col2 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-9408
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE col2 > NULL
----
0

query I rowsort
SELECT - 24 * - col1 * + + col0 - - 91 FROM tab1 AS cor0
----
102739
10291
17227

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 14 + - 23 * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9411
SELECT DISTINCT - + MAX( DISTINCT - ( - col0 ) ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-9411
SELECT DISTINCT - + MAX ( DISTINCT - ( - col0 ) ) FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9412
SELECT DISTINCT - - SUM( DISTINCT + col1 ) * - + MIN( DISTINCT + 49 ) * 66 FROM tab0 AS cor0
----
-333102

skipif mysql # not compatible
query I rowsort label-9412
SELECT DISTINCT - - SUM ( DISTINCT + col1 ) * - + MIN ( DISTINCT + 49 ) * 66 FROM tab0 AS cor0
----
-333102

query I rowsort
SELECT 58 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + 54 col1 FROM tab0
----
-2538
-5346
-540

query I rowsort
SELECT - + 29 * + - col2 FROM tab2 AS cor0
----
1160
1682
667

onlyif mysql # aggregate syntax: 
query I rowsort label-9416
SELECT COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT 76 <> col2
----
0

skipif mysql # not compatible
query I rowsort label-9416
SELECT COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT 76 <> col2
----
0

query I rowsort
SELECT DISTINCT - col1 * + 70 FROM tab0 AS cor0
----
-1470
-5670
-70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9418
SELECT + + CAST( NULL AS DECIMAL ) * 39 * - - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9418
SELECT + + CAST ( NULL AS REAL ) * 39 * - - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9419
SELECT DISTINCT 73 * + - COUNT( * ) AS col0 FROM tab1
----
-219

skipif mysql # not compatible
query I rowsort label-9419
SELECT DISTINCT 73 * + - COUNT ( * ) AS col0 FROM tab1
----
-219

onlyif mysql # aggregate syntax: 
query I rowsort label-9420
SELECT ALL - 34 + - COUNT( * ) FROM tab0
----
-37

skipif mysql # not compatible
query I rowsort label-9420
SELECT ALL - 34 + - COUNT ( * ) FROM tab0
----
-37

query II rowsort
SELECT ALL - col2 AS col2, col1 FROM tab2
----
-23
51
-40
77
-58
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9422
SELECT CAST( - ( 83 ) AS SIGNED ) col2 FROM tab1
----
-83
-83
-83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9422
SELECT CAST ( - ( 83 ) AS INTEGER ) col2 FROM tab1
----
-83
-83
-83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9423
SELECT + CAST( NULL AS SIGNED ), + 59 col1 FROM tab1
----
NULL
59
NULL
59
NULL
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9423
SELECT + CAST ( NULL AS INTEGER ), + 59 col1 FROM tab1
----
NULL
59
NULL
59
NULL
59

onlyif mysql # DIV for integer division: 
query I rowsort label-9424
SELECT col2 DIV - + col1 AS col1 FROM tab0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-9424
SELECT col2 / - + col1 AS col1 FROM tab0
----
-99
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT 87 * - 58 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT + 4 * - COUNT( * ) FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-9426
SELECT + 4 * - COUNT ( * ) FROM tab2 AS cor0
----
-12

query I rowsort
SELECT DISTINCT 25 AS col1 FROM tab1 WHERE NULL = 79
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9428
SELECT - + CAST( NULL AS SIGNED ) / 23 AS col2, COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-9428
SELECT - + CAST ( NULL AS INTEGER ) / 23 AS col2, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL
3

query I rowsort
SELECT + col2 * + col2 FROM tab2 AS cor0 WHERE ( NULL ) <> ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT - ( SUM( DISTINCT col2 ) ) FROM tab2 cor0
----
-121

skipif mysql # not compatible
query I rowsort label-9430
SELECT - ( SUM ( DISTINCT col2 ) ) FROM tab2 cor0
----
-121

query I rowsort
SELECT + 57 * 48 FROM tab0 AS cor0 WHERE col1 + + col0 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 AND - 97 + + + col1 + col2
----

query II rowsort
SELECT DISTINCT - 93 + - col0 AS col0, col0 FROM tab0 AS cor0
----
-108
15
-180
87
-190
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9434
SELECT + + CAST( NULL AS SIGNED ) - 34 + MAX( - col0 ) * + 10 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9434
SELECT + + CAST ( NULL AS INTEGER ) - 34 + MAX ( - col0 ) * + 10 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 + + 66 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - 9 + + col2 FROM tab0 AS cor0
----
1
38
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9437
SELECT col1 * + + col0 * - - CAST( NULL AS SIGNED ) + - - 43 col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9437
SELECT col1 * + + col0 * - - CAST ( NULL AS INTEGER ) + - - 43 col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9438
SELECT + 4 * + 98 + 30, - MAX( DISTINCT + 50 ) AS col0 FROM tab0
----
422
-50

skipif mysql # not compatible
query II rowsort label-9438
SELECT + 4 * + 98 + 30, - MAX ( DISTINCT + 50 ) AS col0 FROM tab0
----
422
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-9439
SELECT DISTINCT col2 DIV - col2 + 6 FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-9439
SELECT DISTINCT col2 / - col2 + 6 FROM tab2
----
5

query I rowsort
SELECT col0 + - 48 FROM tab2
----
-2
16
27

query I rowsort
SELECT ALL 18 + + + 70 + col2 + col2 AS col1 FROM tab1
----
206
224
280

query I rowsort
SELECT DISTINCT + 18 - - col1 + + + 44 * + 76 AS col1 FROM tab1
----
3367
3376
3409

query I rowsort
SELECT DISTINCT + col2 * col0 + + 84 FROM tab1
----
4980
5099
6272

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 - + 91 * col2 IS NOT NULL
----

query I rowsort
SELECT ALL - 85 - + 46 FROM tab0
----
-131
-131
-131

query I rowsort
SELECT - col1 + + 53 FROM tab2
----
-14
-24
2

query I rowsort
SELECT ALL col1 - - 31 AS col2 FROM tab2
----
108
82
98

query I rowsort
SELECT - - 86 AS col0 FROM tab0 AS cor0 WHERE NOT col0 * + col0 NOT BETWEEN NULL AND - col1 * + col0 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9449
SELECT - MIN( 55 ) AS col1 FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-9449
SELECT - MIN ( 55 ) AS col1 FROM tab2 AS cor0
----
-55

query I rowsort
SELECT + 76 * + col1 + - - col1 AS col0 FROM tab1 AS cor0
----
1078
3619
385

onlyif mysql # aggregate syntax: 
query II rowsort label-9451
SELECT ALL - 31 col2, COUNT( * ) FROM tab0 cor0
----
-31
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9451
SELECT ALL - 31 col2, COUNT ( * ) FROM tab0 cor0
----
-31
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 23 * + + ( ( - 47 ) ) col2 FROM tab2 AS cor0
----
-1081

query I rowsort
SELECT ALL + + 0 * col0 * + col1 FROM tab1 cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 NOT IN ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 * - ( + col2 ) AS col0 FROM tab2 cor0
----
-1173
-3080
-3886

query I rowsort
SELECT - - 72 FROM tab2 cor0 WHERE NOT col0 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9457
SELECT - CAST( - col0 AS SIGNED ) * - ( col0 ) * col2 FROM tab1 AS cor0 WHERE NOT + col0 * - col0 IS NULL
----
-249696
-426275
-563108

skipif mysql # not compatible
query I rowsort label-9457
SELECT - CAST ( - col0 AS INTEGER ) * - ( col0 ) * col2 FROM tab1 AS cor0 WHERE NOT + col0 * - col0 IS NULL
----
-249696
-426275
-563108

query II rowsort
SELECT DISTINCT - 52, col0 FROM tab0 AS cor0
----
-52
15
-52
87
-52
97

query II rowsort
SELECT - col2, - 14 AS col0 FROM tab0 AS cor0
----
-10
-14
-47
-14
-99
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9460
SELECT COUNT( * ) * + COUNT( * ) + - 44 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
-44

skipif mysql # not compatible
query I rowsort label-9460
SELECT COUNT ( * ) * + COUNT ( * ) + - 44 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
-44

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9461
SELECT ALL CAST( NULL AS DECIMAL ) + + col0 / col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9461
SELECT ALL CAST ( NULL AS REAL ) + + col0 / col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( col2 ) + - col0 AS col1 FROM tab2
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9463
SELECT DISTINCT + MIN( ALL + 32 ) + + COUNT( * ) AS col2 FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-9463
SELECT DISTINCT + MIN ( ALL + 32 ) + + COUNT ( * ) AS col2 FROM tab2
----
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 46 * + col2 + - 82 col2, - col2 FROM tab0
----
2080
-47
378
-10
4472
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9465
SELECT 1 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9465
SELECT 1 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 * - - col0 AS col0 FROM tab2 WHERE NOT - ( col0 ) IS NULL
----
-2346
-4928
-5025

query II rowsort
SELECT + col0 * col2 + - col1 AS col1, + col2 AS col2 FROM tab0 AS cor0
----
624
47
849
10
9602
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 51 col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

onlyif mysql # aggregate syntax: 
query I rowsort label-9469
SELECT ALL + 99 * + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-9469
SELECT ALL + 99 * + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
297

query I rowsort
SELECT 25 + + col0 + - + 67 AS col1 FROM tab1 cor0
----
43
49
9

query I rowsort
SELECT + col0 + + ( + 97 ) AS col2 FROM tab0 AS cor0
----
112
184
194

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * + - col1 IN ( - col2 * col2 / + 31 + + col0 + - + col0, 9, + col2 / + 62 + col0, 39 + col2 )
----

query I rowsort
SELECT - + 78 + + 89 FROM tab2 AS cor0 WHERE ( NOT - 68 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT ( + COUNT( + col2 ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9474
SELECT ( + COUNT ( + col2 ) ) FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT DISTINCT + COUNT( ALL - - col2 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9475
SELECT DISTINCT + COUNT ( ALL - - col2 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - col1 * - col2 + - - col0 FROM tab0 AS cor0
----
196
297
3822

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9477
SELECT DISTINCT - ( + CAST( - + col2 AS SIGNED ) ) + - col1 AS col0, col2 DIV col2 FROM tab1 AS cor0
----
21
1
54
1
82
1

skipif mysql # not compatible
query II rowsort label-9477
SELECT DISTINCT - ( + CAST ( - + col2 AS INTEGER ) ) + - col1 AS col0, col2 / col2 FROM tab1 AS cor0
----
21
1
54
1
82
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9478
SELECT ( - col0 ) DIV CAST( - 93 AS SIGNED ) FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9478
SELECT ( - col0 ) / CAST ( - 93 AS INTEGER ) FROM tab0 AS cor0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9479
SELECT DISTINCT + col2 DIV + col1 + - 74 FROM tab2 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-9479
SELECT DISTINCT + col2 / + col1 + - 74 FROM tab2 AS cor0
----
-74

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 41 AND - col0 * + 64
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT MIN( - - col1 ) * - MAX( ALL col1 ) FROM tab1
----
-235

skipif mysql # not compatible
query I rowsort label-9481
SELECT MIN ( - - col1 ) * - MAX ( ALL col1 ) FROM tab1
----
-235

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9482
SELECT - - CAST( ( col0 ) AS SIGNED ) FROM tab0 WHERE NULL IS NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-9482
SELECT - - CAST ( ( col0 ) AS INTEGER ) FROM tab0 WHERE NULL IS NULL
----
15
87
97

query I rowsort
SELECT DISTINCT - + col1 AS col2 FROM tab0 WHERE + col1 * - 45 + - col2 + col1 >= NULL
----

query II rowsort
SELECT 79 * 47 * col2 * col2, col2 FROM tab2
----
12490532
58
1964177
23
5940800
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9485
SELECT COUNT( - - col1 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9485
SELECT COUNT ( - - col1 ) AS col1 FROM tab2 AS cor0
----
3

query II rowsort
SELECT DISTINCT + 12 AS col0, - 6 * + + col2 AS col1 FROM tab2 AS cor0 WHERE NOT col0 + col0 >= NULL
----

query I rowsort
SELECT ALL - - 32 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT 9 * col1 + - + 61 + - - col2 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * - 42 col0 FROM tab1 AS cor0
----
-2478
-2856
-4032

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9490
SELECT ALL + - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9490
SELECT ALL + - CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 26 + - col0 AS col0 FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN - 97 AND - 74 * + 86 * - col1 - - - col1
----

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT + 3 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9493
SELECT - MAX( + 93 ) col1 FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9493
SELECT - MAX ( + 93 ) col1 FROM tab1 AS cor0
----
-93

query I rowsort
SELECT - 5 * - col0 AS col1 FROM tab1 AS cor0
----
255
425
455

query I rowsort
SELECT - 25 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-25
-25
-25

query I rowsort
SELECT ALL + - col2 + - + col0 FROM tab1 AS cor0
----
-144
-147
-159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 36 col1, col2 AS col0 FROM tab0 cor0 WHERE NOT - col0 IS NULL
----
-36
10
-36
47
-36
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT ALL - COUNT( - 60 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9498
SELECT ALL - COUNT ( - 60 ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT 79 + - + col2 FROM tab0
----
-20
32
69

query II rowsort
SELECT 13 * + col2 AS col2, 14 FROM tab0 WHERE + - 47 NOT BETWEEN + - col2 AND + - 92
----
1287
14
130
14
611
14

query II rowsort
SELECT DISTINCT + col0 AS col0, col0 AS col0 FROM tab2
----
46
46
64
64
75
75

query I rowsort
SELECT col1 + - col0 + + col2 FROM tab2
----
28
50
53

query I rowsort
SELECT ALL - col0 * - col1 + - 79 FROM tab0
----
1136
1748
18

query I rowsort
SELECT - - col1 + - 2 FROM tab0 AS cor0
----
-1
19
79

query I rowsort
SELECT DISTINCT col1 * + - col0 + col1 * col1 FROM tab1 cor0
----
-2068
-400
-518

query I rowsort
SELECT ALL 22 + 77 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT ALL - 96 + + + col2 * + col0 FROM tab0
----
609
774
9507

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE - col0 IS NULL
----

query II rowsort
SELECT + col2 AS col2, + 28 AS col1 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9510
SELECT COUNT( * ) DIV - 61 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9510
SELECT COUNT ( * ) / - 61 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col2 * + 35 AS col0 FROM tab1
----
-2065
-2380
-3360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 48 ) col2 FROM tab1
----
48
48
48

query I rowsort
SELECT DISTINCT - col1 * + + 13 AS col0 FROM tab1
----
-182
-611
-65

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9514
SELECT - CAST( NULL AS DECIMAL ) AS col0, + COUNT( * ) FROM tab0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-9514
SELECT - CAST ( NULL AS REAL ) AS col0, + COUNT ( * ) FROM tab0
----
NULL
3

query I rowsort
SELECT DISTINCT 38 * + col2 AS col0 FROM tab2
----
1520
2204
874

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9516
SELECT COUNT( * ) DIV + 71 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9516
SELECT COUNT ( * ) / + 71 FROM tab1
----
0

query I rowsort
SELECT ALL + + col2 * + col1 + - 36 FROM tab2 WHERE NOT ( NOT NULL <> - col2 )
----

query I rowsort
SELECT ALL + col0 + - col2 AS col2 FROM tab1 WHERE + col2 * + + col0 * + - col1 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 * - - col2 AS col0 FROM tab2
----
1058
2560
4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9520
SELECT DISTINCT - CAST( 32 AS SIGNED ) FROM tab1
----
-32

skipif mysql # not compatible
query I rowsort label-9520
SELECT DISTINCT - CAST ( 32 AS INTEGER ) FROM tab1
----
-32

query I rowsort
SELECT DISTINCT - - 31 AS col0 FROM tab2 cor0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9522
SELECT - ( - SUM( ( 54 ) ) ) AS col0 FROM tab0
----
162

skipif mysql # not compatible
query I rowsort label-9522
SELECT - ( - SUM ( ( 54 ) ) ) AS col0 FROM tab0
----
162

query I rowsort
SELECT ALL ( - 19 ) AS col2 FROM tab1 WHERE NOT ( - col1 * col1 ) >= ( + col1 )
----
-19
-19
-19

query I rowsort
SELECT DISTINCT - 93 AS col1 FROM tab0 WHERE NOT col0 BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + 37 ) NOT BETWEEN - 83 AND col1
----
15
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9526
SELECT * FROM tab1 WHERE NOT col2 * - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9526
SELECT * FROM tab1 WHERE NOT col2 * - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT SUM( ALL ( col1 ) ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-9527
SELECT SUM ( ALL ( col1 ) ) FROM tab0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-9528
SELECT ( - COUNT( * ) ) col0 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9528
SELECT ( - COUNT ( * ) ) col0 FROM tab2
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NULL <> ( + 12 ) + col1
----

query I rowsort
SELECT - ( + ( - ( col2 ) ) ) FROM tab1 WHERE NOT ( NULL ) >= ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 + + col1 = ( col2 ) - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 = + col2 + col2 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT ALL + COUNT( * ) col1 FROM tab0 WHERE - col0 >= 2 * 62
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9533
SELECT ALL + COUNT ( * ) col1 FROM tab0 WHERE - col0 >= 2 * 62
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9534
SELECT + col0 + - 12 DIV - 88 AS col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-9534
SELECT + col0 + - 12 / - 88 AS col1 FROM tab1
----
51
85
91

query I rowsort
SELECT ALL - col1 * - ( col0 ) FROM tab2 WHERE col1 BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) = ( col2 / col0 )
----

query I rowsort
SELECT DISTINCT col0 * 68 AS col1 FROM tab2
----
3128
4352
5100

query I rowsort
SELECT - col0 + 44 AS col1 FROM tab0
----
-43
-53
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9539
SELECT + col1 + - ( CAST( col2 AS SIGNED ) + col0 ) * 89 AS col0 FROM tab1
----
-12811
-13069
-14104

skipif mysql # not compatible
query I rowsort label-9539
SELECT + col1 + - ( CAST ( col2 AS INTEGER ) + col0 ) * 89 AS col0 FROM tab1
----
-12811
-13069
-14104

query I rowsort
SELECT - 95 * 47 AS col1 FROM tab0
----
-4465
-4465
-4465

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + 49 + 52 * col0 ) NOT IN ( + col2 * + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9542
SELECT 27 AS col2 FROM tab1 WHERE NOT ( NULL ) > CAST( ( + 50 ) AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-9542
SELECT 27 AS col2 FROM tab1 WHERE NOT ( NULL ) > CAST ( ( + 50 ) AS REAL )
----

query I rowsort
SELECT DISTINCT col2 + - col2 FROM tab0 WHERE ( - col1 / - col2 ) IS NULL
----

query I rowsort
SELECT ALL - col2 - ( col1 ) * - 19 AS col1 FROM tab0 WHERE NULL <= - 66
----

query I rowsort
SELECT 84 * - col2 FROM tab2
----
-1932
-3360
-4872

query I rowsort
SELECT ALL 46 AS col1 FROM tab0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9547
SELECT DISTINCT 30 + + COUNT( * ) AS col2 FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-9547
SELECT DISTINCT 30 + + COUNT ( * ) AS col2 FROM tab2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT DISTINCT + SUM( ALL 85 ) * 61 AS col0 FROM tab2
----
15555

skipif mysql # not compatible
query I rowsort label-9548
SELECT DISTINCT + SUM ( ALL 85 ) * 61 AS col0 FROM tab2
----
15555

query I rowsort
SELECT DISTINCT - 21 * - col2 FROM tab1
----
1239
1428
2016

query I rowsort
SELECT 92 * + col2 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 62 + 43 FROM tab1 cor0
----
105

query I rowsort
SELECT ALL - col0 * 4 FROM tab0 AS cor0 WHERE NOT - 39 + + col0 NOT BETWEEN NULL AND col2 * + col1
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( 39 + + col1 ) <= ( NULL )
----

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE col0 + + col1 * ( - 61 / + col2 ) NOT IN ( - col1 - col1 )
----
51
85
91

query I rowsort
SELECT + col2 - col0 * col2 FROM tab2 cor0
----
-1035
-2520
-4292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9556
SELECT + COUNT( DISTINCT - ( col1 ) ) * - 44 FROM tab0 WHERE CAST( NULL AS SIGNED ) NOT IN ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-9556
SELECT + COUNT ( DISTINCT - ( col1 ) ) * - 44 FROM tab0 WHERE CAST ( NULL AS INTEGER ) NOT IN ( col1 )
----
0

query I rowsort
SELECT DISTINCT + col0 * - col2 + - col2 FROM tab0
----
-752
-880
-9702

query I rowsort
SELECT 37 FROM tab0 WHERE NULL IS NULL
----
37
37
37

query I rowsort
SELECT DISTINCT - col1 - - col1 AS col0 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT ALL + SUM( ALL col1 ) FROM tab0 AS cor0 WHERE NOT 36 IN ( ( - col1 ) )
----
103

skipif mysql # not compatible
query I rowsort label-9560
SELECT ALL + SUM ( ALL col1 ) FROM tab0 AS cor0 WHERE NOT 36 IN ( ( - col1 ) )
----
103

query I rowsort
SELECT + ( - 94 ) AS col1 FROM tab2 cor0 WHERE ( + col0 ) IS NOT NULL
----
-94
-94
-94

query I rowsort
SELECT DISTINCT - 74 + - col0 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT DISTINCT + ( SUM( ALL col0 ) ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-9563
SELECT DISTINCT + ( SUM ( ALL col0 ) ) FROM tab1 AS cor0
----
227

query I rowsort
SELECT col0 * + 72 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - ( - 38 ) FROM tab2 AS cor0
----
38
38
38

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - col1 + - col1 NOT BETWEEN col1 * - col1 AND 27 * - 74
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 53 * 27 FROM tab0 AS cor0
----
1431
1431
1431

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT - - COUNT( * ) * + MIN( 14 * 57 ) FROM tab0 AS cor0
----
2394

skipif mysql # not compatible
query I rowsort label-9568
SELECT - - COUNT ( * ) * + MIN ( 14 * 57 ) FROM tab0 AS cor0
----
2394

query I rowsort
SELECT + col0 * - + 97 AS col1 FROM tab0
----
-1455
-8439
-9409

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT NULL NOT BETWEEN + ( 84 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9571
SELECT ALL + COUNT( + 85 ) - COUNT( * ) FROM tab1 WHERE NULL NOT IN ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-9571
SELECT ALL + COUNT ( + 85 ) - COUNT ( * ) FROM tab1 WHERE NULL NOT IN ( col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9572
SELECT ALL + 63 * + + MIN( DISTINCT + col1 ) FROM tab2
----
3213

skipif mysql # not compatible
query I rowsort label-9572
SELECT ALL + 63 * + + MIN ( DISTINCT + col1 ) FROM tab2
----
3213

query I rowsort
SELECT ALL col1 * 20 AS col2 FROM tab2
----
1020
1340
1540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - + col1 col1 FROM tab0
----
1
441
6561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9575
SELECT CAST( + 57 AS SIGNED ) FROM tab2 WHERE NOT col0 IN ( 14 / - col1 )
----
57
57
57

skipif mysql # not compatible
query I rowsort label-9575
SELECT CAST ( + 57 AS INTEGER ) FROM tab2 WHERE NOT col0 IN ( 14 / - col1 )
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9576
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE NULL NOT BETWEEN col0 * + 4 AND ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-9576
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE NULL NOT BETWEEN col0 * + 4 AND ( col1 )
----
0

query I rowsort
SELECT ALL ( col2 ) AS col2 FROM tab1 WHERE NOT col1 IS NULL
----
59
68
96

query I rowsort
SELECT DISTINCT + 87 * - 17 AS col2 FROM tab2 AS cor0
----
-1479

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9579
SELECT ALL - col0 + - CAST( NULL AS DECIMAL ) * + 53 AS col0 FROM tab2 AS cor0 WHERE ( col0 ) NOT BETWEEN 42 AND + 2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9579
SELECT ALL - col0 + - CAST ( NULL AS REAL ) * + 53 AS col0 FROM tab2 AS cor0 WHERE ( col0 ) NOT BETWEEN 42 AND + 2
----
NULL
NULL
NULL

query I rowsort
SELECT ( col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col0 )
----

query I rowsort
SELECT col2 + 83 + 95 * 56 FROM tab1
----
5462
5471
5499

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 93 col1 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
93
93
93

query I rowsort
SELECT 25 * - + col2 * + - col0 AS col1 FROM tab1
----
122400
125375
154700

query I rowsort
SELECT ALL - + 40 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT ALL - COUNT( * ) FROM tab1, tab0 AS cor0 WHERE ( - 23 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9585
SELECT ALL - COUNT ( * ) FROM tab1, tab0 AS cor0 WHERE ( - 23 ) IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9586
SELECT col1 DIV - 48 AS col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9586
SELECT col1 / - 48 AS col1 FROM tab0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 99 col2 FROM tab2 AS cor0
----
99
99
99

query I rowsort
SELECT ALL + col2 AS col2 FROM tab2 AS cor0 WHERE NOT + col0 * col2 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 + + 34 - - - col0 * ( - col2 ) AS col0 FROM tab1 AS cor0
----
5026
5108
6290

query I rowsort
SELECT ( - ( - 89 ) ) FROM tab1 AS cor0 WHERE - col2 * + col2 = + col2 * + col1
----

query II rowsort
SELECT + - col2 AS col0, - 82 * - 90 FROM tab0 AS cor0
----
-10
7380
-47
7380
-99
7380

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 AS cor0 WHERE - col1 * - 48 * col0 NOT IN ( ( + 81 ) )
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col2 col2 FROM tab0 cor0 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT DISTINCT - 9 * - - SUM( DISTINCT - col1 ) + + - COUNT( * ) col0 FROM tab1
----
591

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9594
SELECT DISTINCT - 9 * - - SUM ( DISTINCT - col1 ) + + - COUNT ( * ) col0 FROM tab1
----
591

onlyif mysql # DIV for integer division: 
query I rowsort label-9595
SELECT ALL - col1 DIV + col0 + + 79 FROM tab1
----
79
79
79

skipif mysql # not compatible
query I rowsort label-9595
SELECT ALL - col1 / + col0 + + 79 FROM tab1
----
79
79
79

query I rowsort
SELECT + ( - + col2 ) + + ( + col0 ) + col2 AS col2 FROM tab2
----
46
64
75

query I rowsort
SELECT ALL col0 * - 8 + + + col0 * ( col1 ) AS col0 FROM tab0
----
-679
1095
1131

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT + ( + COUNT( * ) ) + + 88 + COUNT( * ) FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-9598
SELECT + ( + COUNT ( * ) ) + + 88 + COUNT ( * ) FROM tab1
----
94

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9599
SELECT CAST( NULL AS DECIMAL ) * + col0 + + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9599
SELECT CAST ( NULL AS REAL ) * + col0 + + col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9600
SELECT ALL - ( + COUNT( * ) ) * 30 - + 97 DIV COUNT( * ) AS col1 FROM tab1 AS cor0
----
-122

skipif mysql # not compatible
query I rowsort label-9600
SELECT ALL - ( + COUNT ( * ) ) * 30 - + 97 / COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-122

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + + ( - col1 ) - col1 NOT BETWEEN NULL AND ( ( + 63 ) * + col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9602
SELECT DISTINCT - - col0 * - CAST( col2 AS SIGNED ) + - - 71 + + col2 DIV + col1 FROM tab0 AS cor0
----
-634
-799
-9433

skipif mysql # not compatible
query I rowsort label-9602
SELECT DISTINCT - - col0 * - CAST ( col2 AS INTEGER ) + - - 71 + + col2 / + col1 FROM tab0 AS cor0
----
-634
-799
-9433

query I rowsort
SELECT col0 FROM tab1 WHERE + - 14 NOT BETWEEN + - col2 AND + - col0
----
51
85
91

query I rowsort
SELECT - 21 * + + 11 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2d0ad5620b1e58911832f3a0ab916617

query I rowsort
SELECT DISTINCT + 71 FROM tab0 WHERE ( - col0 ) BETWEEN NULL AND 43
----

query I rowsort
SELECT DISTINCT col2 + 45 FROM tab0 AS cor0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9607
SELECT DISTINCT SUM( + 95 ) FROM tab2 AS cor0 WHERE + col1 = ( ( col2 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9607
SELECT DISTINCT SUM ( + 95 ) FROM tab2 AS cor0 WHERE + col1 = ( ( col2 ) )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 95 AS col1, + col1 col1 FROM tab0 AS cor0
----
95
1
95
21
95
81

query I rowsort
SELECT col1 * + 48 FROM tab1 AS cor0 WHERE NOT 53 NOT BETWEEN - col2 AND ( - - col2 )
----
2256
240
672

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT ALL - + SUM( DISTINCT col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL < - col1 * - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-9610
SELECT ALL - + SUM ( DISTINCT col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL < - col1 * - 50
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 = + - 31 - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 27 * + 74 FROM tab1 AS cor0
----
1998
1998
1998

onlyif mysql # aggregate syntax: 
query I rowsort label-9613
SELECT ALL - - SUM( DISTINCT - ( col2 ) ) FROM tab1 WHERE NOT ( - col2 IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9613
SELECT ALL - - SUM ( DISTINCT - ( col2 ) ) FROM tab1 WHERE NOT ( - col2 IS NOT NULL )
----
NULL

query I rowsort
SELECT ALL col1 * - + 18 * - + 78 AS col0 FROM tab1
----
19656
65988
7020

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9615
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - - col0 col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9615
SELECT DISTINCT + CAST ( NULL AS REAL ) * - - col0 col2 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 18 NOT BETWEEN ( - - col2 ) AND + 45
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9617
SELECT - 78 * + - MIN( - col1 ) col0 FROM tab0
----
-6318

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9617
SELECT - 78 * + - MIN ( - col1 ) col0 FROM tab0
----
-6318

onlyif mysql # aggregate syntax: 
query I rowsort label-9618
SELECT - ( - COUNT( * ) ) * 67 FROM tab1
----
201

skipif mysql # not compatible
query I rowsort label-9618
SELECT - ( - COUNT ( * ) ) * 67 FROM tab1
----
201

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9619
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9619
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND - + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9620
SELECT DISTINCT MAX( ALL ( col1 ) ) AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-9620
SELECT DISTINCT MAX ( ALL ( col1 ) ) AS col2 FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9621
SELECT DISTINCT - - MIN( - ( - + col2 ) ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-9621
SELECT DISTINCT - - MIN ( - ( - + col2 ) ) FROM tab2 AS cor0
----
23

query II rowsort
SELECT DISTINCT - + col1, col1 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 72 * + + col2 col2, col1 FROM tab0 cor0
----
3384
81
7128
1
720
21

query II rowsort
SELECT + 43 AS col0, 28 * 83 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 37a3b5d955d496f6075839983a8b4c21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9625
SELECT DISTINCT * FROM tab0 WHERE - 10 * + CAST( NULL AS SIGNED ) * 53 - + + col1 + col0 = ( NULL )
----

skipif mysql # not compatible
query III rowsort label-9625
SELECT DISTINCT * FROM tab0 WHERE - 10 * + CAST ( NULL AS INTEGER ) * 53 - + + col1 + col0 = ( NULL )
----

query II rowsort
SELECT ALL 51 * + col0 AS col0, - col1 AS col1 FROM tab2
----
2346
-51
3264
-77
3825
-67

query I rowsort
SELECT - + ( col0 ) + + + col2 AS col1 FROM tab1 AS cor0
----
-23
-26
45

query I rowsort
SELECT ALL + + col0 + - 77 FROM tab1 AS cor0
----
-26
14
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - 38 col1 FROM tab2 AS cor0
----
-1938
-2546
-2926

query I rowsort
SELECT DISTINCT + + col0 + - col1 * - col1 AS col0 FROM tab0 AS cor0
----
528
6576
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - col2 * - 83 col1 FROM tab2
----
1960
3397
4881

query I rowsort
SELECT DISTINCT col1 + 76 FROM tab0
----
157
77
97

query I rowsort
SELECT ALL + col0 + - + col2 FROM tab2
----
17
23
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9634
SELECT ALL + col2 * - col0 + + col0 AS col2, CAST( NULL AS SIGNED ) * - col2 FROM tab1
----
-4845
NULL
-4930
NULL
-6097
NULL

skipif mysql # not compatible
query II rowsort label-9634
SELECT ALL + col2 * - col0 + + col0 AS col2, CAST ( NULL AS INTEGER ) * - col2 FROM tab1
----
-4845
NULL
-4930
NULL
-6097
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9635
SELECT DISTINCT - col1 DIV - CAST( + col1 AS SIGNED ) - + + col1 FROM tab1
----
-13
-4
-46

skipif mysql # not compatible
query I rowsort label-9635
SELECT DISTINCT - col1 / - CAST ( + col1 AS INTEGER ) - + + col1 FROM tab1
----
-13
-4
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9636
SELECT - + CAST( NULL AS SIGNED ) FROM tab1 WHERE - 72 <> NULL
----

skipif mysql # not compatible
query I rowsort label-9636
SELECT - + CAST ( NULL AS INTEGER ) FROM tab1 WHERE - 72 <> NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL AND NOT NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col2 * + + 33 - col2 - + col2 FROM tab2 AS cor0
----
1240
1798
713

query I rowsort
SELECT - 60 - col2 + - - col0 AS col2 FROM tab1 AS cor0
----
-105
-34
-37

query I rowsort
SELECT - col2 + 79 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - - col2 ) * + col1 + + + ( + - col1 ) + 66 col2 FROM tab1 AS cor0
----
1396
3215
356

query I rowsort
SELECT ALL - 9 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

query I rowsort
SELECT DISTINCT ( - 94 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9644
SELECT DISTINCT + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE NOT + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9644
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE NOT + col0 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9645
SELECT ALL - col0, - CAST( - - col1 AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-15
-81
-87
-21
-97
-1

skipif mysql # not compatible
query II rowsort label-9645
SELECT ALL - col0, - CAST ( - - col1 AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-15
-81
-87
-21
-97
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9646
SELECT DISTINCT - - MIN( DISTINCT + + col0 ) AS col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9646
SELECT DISTINCT - - MIN ( DISTINCT + + col0 ) AS col2 FROM tab1 AS cor0
----
51

query II rowsort
SELECT - ( + 19 ) * - col2, col1 AS col1 FROM tab0
----
1881
1
190
21
893
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9648
SELECT + COUNT( * ) FROM tab2 WHERE NOT ( 55 ) * - CAST( NULL AS SIGNED ) * + 78 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9648
SELECT + COUNT ( * ) FROM tab2 WHERE NOT ( 55 ) * - CAST ( NULL AS INTEGER ) * + 78 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT COUNT( * ) * + + 60 col2 FROM tab0
----
180

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9649
SELECT COUNT ( * ) * + + 60 col2 FROM tab0
----
180

query I rowsort
SELECT 94 * + col2 AS col2 FROM tab0
----
4418
9306
940

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 33 col0 FROM tab2 AS cor0
----
33
33
33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9652
SELECT DISTINCT + 68 AS col2, col0 * + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
68
NULL

skipif mysql # not compatible
query II rowsort label-9652
SELECT DISTINCT + 68 AS col2, col0 * + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
68
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT ALL - 52 * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-9653
SELECT ALL - 52 * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-156

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9654
SELECT + 42 + + col2 * + - col1 + CAST( 2 AS DECIMAL ) FROM tab2 AS cor0 WHERE NULL NOT IN ( ( 92 ) + col2 + - + 63, CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-9654
SELECT + 42 + + col2 * + - col1 + CAST ( 2 AS REAL ) FROM tab2 AS cor0 WHERE NULL NOT IN ( ( 92 ) + col2 + - + 63, CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT - 33 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9656
SELECT DISTINCT col1 + + 3 + + col0 * 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-9656
SELECT DISTINCT col1 + + 3 + + col0 * CAST ( NULL AS REAL ) col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9657
SELECT ALL - COUNT( * ) * COUNT( * ) DIV - 35 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
2

skipif mysql # not compatible
query I rowsort label-9657
SELECT ALL - COUNT ( * ) * COUNT ( * ) / - 35 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
2

query I rowsort
SELECT ALL + + col1 AS col2 FROM tab0 WHERE NOT - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col1 ) + - + 83 * 56 + - - col0 col0 FROM tab0 AS cor0
----
-4540
-4550
-4552

query I rowsort
SELECT ALL col0 * - 47 FROM tab1 AS cor0
----
-2397
-3995
-4277

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9661
SELECT ALL - + col0 * + + ( - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9661
SELECT ALL - + col0 * + + ( - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9662
SELECT - col1 * + col0 DIV col0 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-9662
SELECT - col1 * + col0 / col0 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE ( col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT - - col0 FROM tab0 AS cor0 WHERE NOT col2 * - col2 * + + 41 = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9665
SELECT + - 8 * CAST( NULL AS DECIMAL ) * col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9665
SELECT + - 8 * CAST ( NULL AS REAL ) * col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT ALL + 34 + + MAX( ALL - - col2 ) FROM tab1
----
130

skipif mysql # not compatible
query I rowsort label-9666
SELECT ALL + 34 + + MAX ( ALL - - col2 ) FROM tab1
----
130

query II rowsort
SELECT DISTINCT 34 + + - 1 + + - col0, + col0 FROM tab0
----
-54
87
-64
97
18
15

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 BETWEEN + + col0 AND - 48
----

query I rowsort
SELECT + 0 + + + ( col1 ) FROM tab0
----
1
21
81

query I rowsort
SELECT DISTINCT col2 - 85 FROM tab1
----
-17
-26
11

query II rowsort
SELECT ALL 19 + 43 AS col1, 77 AS col2 FROM tab2
----
62
77
62
77
62
77

query III rowsort
SELECT * FROM tab2 WHERE + col2 * + 50 * + col0 + - col1 < + col1
----

query I rowsort
SELECT DISTINCT + ( - 32 ) - - + col2 FROM tab1
----
27
36
64

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 68 BETWEEN ( - - 82 ) AND - - 26
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 INNER JOIN tab2 AS cor1 ON NOT + + 36 * - - 92 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT ALL ( + MAX( DISTINCT + + col0 ) ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-9676
SELECT ALL ( + MAX ( DISTINCT + + col0 ) ) FROM tab2
----
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( col0 - + 26 + col1, - col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 14 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9679
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) - col1 / - CAST( NULL AS SIGNED ) + + + col1 <> 27
----

skipif mysql # not compatible
query III rowsort label-9679
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS REAL ) - col1 / - CAST ( NULL AS INTEGER ) + + + col1 <> 27
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9680
SELECT DISTINCT col2 DIV col1 * col2 + ( + CAST( + 81 AS SIGNED ) ) FROM tab1 AS cor0
----
149
657
730

skipif mysql # not compatible
query I rowsort label-9680
SELECT DISTINCT col2 / col1 * col2 + ( + CAST ( + 81 AS INTEGER ) ) FROM tab1 AS cor0
----
149
657
730

onlyif mysql # aggregate syntax: 
query I rowsort label-9681
SELECT ALL + SUM( DISTINCT 37 ) FROM tab0 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-9681
SELECT ALL + SUM ( DISTINCT 37 ) FROM tab0 AS cor0
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-9682
SELECT + 63 * SUM( - ( + - 31 ) ) col0, + 50 - + + 14 FROM tab2 AS cor0
----
5859
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9682
SELECT + 63 * SUM ( - ( + - 31 ) ) col0, + 50 - + + 14 FROM tab2 AS cor0
----
5859
36

query I rowsort
SELECT - col1 * + col1 + + 59 AS col2 FROM tab1
----
-137
-2150
34

query I rowsort
SELECT + 33 + - 25 * - - ( 86 ) FROM tab0
----
-2117
-2117
-2117

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= ( + col0 * col0 - + col0 * - col2 * + + 82 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9686
SELECT col2 + col2 DIV - - 69 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-9686
SELECT col2 + col2 / - - 69 FROM tab2
----
23
40
58

query I rowsort
SELECT - col1 + - + col0 + - col2 AS col2 FROM tab0
----
-118
-143
-197

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NOT + + 64 IS NULL
----
14
47
5

query I rowsort
SELECT 92 * col0 * + col1 FROM tab0
----
111780
168084
8924

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + ( + ( 91 ) ) + - 62 NOT IN ( 16, + col2, - 48 )
----

query I rowsort
SELECT col0 * - 35 FROM tab0
----
-3045
-3395
-525

query I rowsort
SELECT ALL - 64 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-64
-64
-64

query I rowsort
SELECT ALL + col1 * - 47 + - col0 AS col0 FROM tab2 AS cor0
----
-2443
-3224
-3683

onlyif mysql # aggregate syntax: 
query I rowsort label-9694
SELECT ALL - MIN( ALL - 10 ) AS col0 FROM tab1 cor0
----
10

skipif mysql # not compatible
query I rowsort label-9694
SELECT ALL - MIN ( ALL - 10 ) AS col0 FROM tab1 cor0
----
10

query I rowsort
SELECT - - 58 AS col2 FROM tab0 AS cor0
----
58
58
58

query II rowsort
SELECT col2 * - col0 + col1, col1 AS col2 FROM tab0
----
-624
81
-849
21
-9602
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 > + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - col1 FROM tab2 WHERE NOT col0 IS NULL
----
51
67
77

query I rowsort
SELECT 17 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT - ( + 2 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query I rowsort
SELECT DISTINCT - 9 + col0 + 1 FROM tab1 cor0
----
43
77
83

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col1 + 24 / - col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 * + - 65 FROM tab0 AS cor0
----
-5655
-6305
-975

query I rowsort
SELECT 81 + - col0 FROM tab2 AS cor0
----
17
35
6

query II rowsort
SELECT DISTINCT + + col2 AS col2, + ( - - col2 ) AS col0 FROM tab2 AS cor0
----
23
23
40
40
58
58

query I rowsort
SELECT DISTINCT + col0 + 80 FROM tab1 AS cor0
----
131
165
171

onlyif mysql # aggregate syntax: 
query I rowsort label-9707
SELECT ALL MIN( 52 ) FROM tab0 AS cor0 WHERE NOT + col2 < + col2
----
52

skipif mysql # not compatible
query I rowsort label-9707
SELECT ALL MIN ( 52 ) FROM tab0 AS cor0 WHERE NOT + col2 < + col2
----
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 60 * + - col2 col0 FROM tab0 cor0
----
2820
5940
600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9709
SELECT ALL 89 + CAST( - - col1 AS SIGNED ) AS col1 FROM tab2
----
140
156
166

skipif mysql # not compatible
query I rowsort label-9709
SELECT ALL 89 + CAST ( - - col1 AS INTEGER ) AS col1 FROM tab2
----
140
156
166

query II rowsort
SELECT + col1, - col2 AS col0 FROM tab1
----
14
-96
47
-68
5
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9711
SELECT 83 DIV - COUNT( DISTINCT - + col2 ) col2 FROM tab0
----
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9711
SELECT 83 / - COUNT ( DISTINCT - + col2 ) col2 FROM tab0
----
-27

query I rowsort
SELECT ALL 21 * - col2 - col2 + + + col2 - col0 FROM tab2
----
-1293
-529
-904

onlyif mysql # DIV for integer division: 
query I rowsort label-9713
SELECT 62 - - 61 DIV + col0 AS col0 FROM tab2
----
62
62
63

skipif mysql # not compatible
query I rowsort label-9713
SELECT 62 - - 61 / + col0 AS col0 FROM tab2
----
62
62
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9714
SELECT DISTINCT 76 * + COUNT( * ) AS col1 FROM tab0
----
228

skipif mysql # not compatible
query I rowsort label-9714
SELECT DISTINCT 76 * + COUNT ( * ) AS col1 FROM tab0
----
228

query III rowsort
SELECT ALL * FROM tab1 WHERE - - 42 NOT BETWEEN + - 54 AND NULL
----

query I rowsort
SELECT - + ( + col2 ) FROM tab0 AS cor0 WHERE NOT 49 NOT IN ( ( - - col1 ), col1 * + - col2 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) <= ( - 87 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9718
SELECT - COUNT( * ), 71 AS col0 FROM tab0 AS cor0
----
-3
71

skipif mysql # not compatible
query II rowsort label-9718
SELECT - COUNT ( * ), 71 AS col0 FROM tab0 AS cor0
----
-3
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9719
SELECT ALL - SUM( ALL - + ( - col1 ) ) FROM tab1 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-9719
SELECT ALL - SUM ( ALL - + ( - col1 ) ) FROM tab1 cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9720
SELECT - 50 * COUNT( * ) AS col1 FROM tab0
----
-150

skipif mysql # not compatible
query I rowsort label-9720
SELECT - 50 * COUNT ( * ) AS col1 FROM tab0
----
-150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9721
SELECT DISTINCT + - COUNT( * ) DIV - - COUNT( * ) - - COUNT( * ) FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-9721
SELECT DISTINCT + - COUNT ( * ) / - - COUNT ( * ) - - COUNT ( * ) FROM tab0 AS cor0
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9722
SELECT 71 DIV + - ( - COUNT( col0 ) ) AS col1 FROM tab0 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-9722
SELECT 71 / + - ( - COUNT ( col0 ) ) AS col1 FROM tab0 AS cor0
----
23

query I rowsort
SELECT + - col1 * + - 72 - + col2 * - col1 FROM tab1 AS cor0
----
2352
655
6580

onlyif mysql # aggregate syntax: 
query I rowsort label-9724
SELECT - MIN( ALL - col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-9724
SELECT - MIN ( ALL - col2 ) FROM tab2 AS cor0
----
58

query I rowsort
SELECT ALL + col2 + + - col0 * - ( - 23 ) AS col1 FROM tab2 AS cor0
----
-1035
-1432
-1667

query II rowsort
SELECT DISTINCT + 84 / + 46 + + col1, + col2 + - col2 AS col2 FROM tab1 WHERE + 38 <> NULL
----

query I rowsort
SELECT + ( - - 19 ) * - 22 FROM tab0
----
-418
-418
-418

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 + - ( ( col2 ) ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + + 16 * 98 - + 98 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + ( + 5 ) + + 30, col2 + + 84 + - + col2 + + col2 + - col2 AS col1 FROM tab0 AS cor0
----
35
84
35
84
35
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col0 FROM tab2 cor0 WHERE NOT 17 BETWEEN - col1 * - col0 AND - 18
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col0 col0, col1 AS col2 FROM tab1 AS cor0
----
51
14
85
5
91
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9733
SELECT + COUNT( * ) DIV COUNT( * ) + - + 68 * + - SUM( DISTINCT 2 ) + - - COUNT( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
146

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9733
SELECT + COUNT ( * ) / COUNT ( * ) + - + 68 * + - SUM ( DISTINCT 2 ) + - - COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-9734
SELECT ALL + 90 + - COUNT( * ) FROM tab1 cor0 WHERE NOT + col0 IS NULL
----
87

skipif mysql # not compatible
query I rowsort label-9734
SELECT ALL + 90 + - COUNT ( * ) FROM tab1 cor0 WHERE NOT + col0 IS NULL
----
87

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col2 ) BETWEEN col2 / - + 66 AND - + 4
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-9736
SELECT DISTINCT 26, + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( + col1 ) AND - col0
----
26
0

skipif mysql # not compatible
query II rowsort label-9736
SELECT DISTINCT 26, + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( + col1 ) AND - col0
----
26
0

query I rowsort
SELECT - - col1 FROM tab1 AS cor0 WHERE 31 IS NOT NULL
----
14
47
5

query I rowsort
SELECT ALL col1 * col2 * + - ( col0 ) FROM tab0
----
-18270
-57105
-9603

query I rowsort
SELECT DISTINCT + 92 * - col1 AS col1 FROM tab2
----
-4692
-6164
-7084

query I rowsort
SELECT ALL - col1 * + ( - 91 ) FROM tab2
----
4641
6097
7007

query II rowsort
SELECT - 18 AS col1, - 57 AS col1 FROM tab0
----
-18
-57
-18
-57
-18
-57

query II rowsort
SELECT DISTINCT col0, col0 * 51 FROM tab0
----
15
765
87
4437
97
4947

query I rowsort
SELECT ALL - col1 * col0 + + 65 * - + col2 AS col2 FROM tab2 cor0
----
-3841
-7528
-8795

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 87 * + col0 col2 FROM tab2
----
4002
5568
6525

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9745
SELECT ALL - COUNT( * ) DIV + 93 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-9745
SELECT ALL - COUNT ( * ) / + 93 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query I rowsort
SELECT 45 * col1 / 41 FROM tab1 cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT DISTINCT + COUNT( * ) * 14 FROM tab2 cor0
----
42

skipif mysql # not compatible
query I rowsort label-9747
SELECT DISTINCT + COUNT ( * ) * 14 FROM tab2 cor0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9748
SELECT + + MIN( DISTINCT + + ( col0 ) ) AS col1 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-9748
SELECT + + MIN ( DISTINCT + + ( col0 ) ) AS col1 FROM tab2 AS cor0
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col0 col0, 98 AS col2 FROM tab2 AS cor0
----
46
98
64
98
75
98

query I rowsort
SELECT DISTINCT + col1 * ( - 0 ) + - 84 + - + 41 FROM tab1 AS cor0
----
-125

query I rowsort
SELECT DISTINCT - 86 + + - col1 AS col2 FROM tab0 AS cor0
----
-107
-167
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9752
SELECT COUNT( * ) + + ( + 85 ) AS col0 FROM tab1 cor0
----
88

skipif mysql # not compatible
query I rowsort label-9752
SELECT COUNT ( * ) + + ( + 85 ) AS col0 FROM tab1 cor0
----
88

query I rowsort
SELECT - + ( + col1 ) + - - col1 AS col0 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT ALL + col1 AS col0, 0 AS col0 FROM tab0 AS cor0 WHERE NULL IN ( + col2, col2 + col1 * + col2 * - 89, 81, - col1 * col0 / + + col2 * - col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL <> ( - col1 ) AND NOT NULL IS NOT NULL
----

query I rowsort
SELECT + ( + col1 ) + - - col0 AS col1 FROM tab2
----
141
142
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9757
SELECT ALL + CAST( + col0 AS SIGNED ) AS col0 FROM tab1 WHERE NOT col0 / 13 >= + col2 + 20
----
51
85
91

skipif mysql # not compatible
query I rowsort label-9757
SELECT ALL + CAST ( + col0 AS INTEGER ) AS col0 FROM tab1 WHERE NOT col0 / 13 >= + col2 + 20
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9758
SELECT - col1 + CAST( NULL AS SIGNED ) AS col1, col1 AS col2 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-9758
SELECT - col1 + CAST ( NULL AS INTEGER ) AS col1, col1 AS col2 FROM tab1
----
NULL
14
NULL
47
NULL
5

query I rowsort
SELECT DISTINCT - col0 + + + col1 FROM tab1
----
-37
-44
-80

query III rowsort
SELECT * FROM tab0 WHERE - col1 * - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9761
SELECT MAX( ALL col1 ), 73 + + 87 AS col0 FROM tab1
----
47
160

skipif mysql # not compatible
query II rowsort label-9761
SELECT MAX ( ALL col1 ), 73 + + 87 AS col0 FROM tab1
----
47
160

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT + COUNT( * ) * + + SUM( - 36 ) * - 26 AS col1 FROM tab0
----
8424

skipif mysql # not compatible
query I rowsort label-9762
SELECT + COUNT ( * ) * + + SUM ( - 36 ) * - 26 AS col1 FROM tab0
----
8424

query I rowsort
SELECT ALL col2 * + + col0 + - col0 FROM tab0
----
690
783
9506

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT 11 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9765
SELECT ( MIN( ALL 34 ) ) FROM tab1 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-9765
SELECT ( MIN ( ALL 34 ) ) FROM tab1 AS cor0
----
34

query I rowsort
SELECT ALL col1 * - - 89 FROM tab1
----
1246
4183
445

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN + 12 AND NULL
----

query I rowsort
SELECT - 53 FROM tab0 AS cor0 WHERE NULL <= ( - col1 )
----

query I rowsort
SELECT DISTINCT + 13 * 23 - - + col0 * + - 19 FROM tab2 cor0
----
-1126
-575
-917

onlyif mysql # DIV for integer division: 
query I rowsort label-9770
SELECT - - 98 DIV + col2 AS col1 FROM tab2 cor0 WHERE col1 * col1 DIV col2 >= 83
----
2
4

skipif mysql # not compatible
query I rowsort label-9770
SELECT - - 98 / + col2 AS col1 FROM tab2 cor0 WHERE col1 * col1 / col2 >= 83
----
2
4

query I rowsort
SELECT - col1 * - 84 * - col0 * - - col1 FROM tab0 cor0
----
-3222828
-8148
-8266860

query I rowsort
SELECT ( 68 ) * + - col0 * col2 - col1 AS col0 FROM tab2 AS cor0
----
-174157
-295867
-71995

query I rowsort
SELECT + ( + 68 ) * - col1 * - col1 AS col2 FROM tab0 AS cor0
----
29988
446148
68

query I rowsort
SELECT + + 5 FROM tab1 WHERE NOT ( ( NULL ) <= + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab0 WHERE NOT + ( - col0 ) * + 74 IS NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9776
SELECT DISTINCT - CAST( + col1 AS SIGNED ) * + col1 col1 FROM tab1 WHERE NOT ( NOT ( + col2 * - 69 > + col1 ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9776
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) * + col1 col1 FROM tab1 WHERE NOT ( NOT ( + col2 * - 69 > + col1 ) )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col0 * + 18 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9778
SELECT SUM( - 21 ) col0 FROM tab0 AS cor0
----
-63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9778
SELECT SUM ( - 21 ) col0 FROM tab0 AS cor0
----
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col2, - col2 * ( - col0 ) + - - 71 * col1 FROM tab1
----
14
5890
47
9525
5
5370

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) <> + col1 AND NULL >= 46
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - col2 * + col0 < 6
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9782
SELECT - col1 / + CAST( ( - col1 ) AS DECIMAL ) * 23 * - - 30 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9782
SELECT - col1 / + CAST ( ( - col1 ) AS REAL ) * 23 * - - 30 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col1 * + - col2 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT + MIN( - col1 ) FROM tab0 AS cor0 WHERE NOT ( - col2 / col0 ) BETWEEN NULL AND - 39
----
-81

skipif mysql # not compatible
query I rowsort label-9784
SELECT + MIN ( - col1 ) FROM tab0 AS cor0 WHERE NOT ( - col2 / col0 ) BETWEEN NULL AND - 39
----
-81

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL NOT BETWEEN - col0 + - 30 + col2 AND col0 * 63 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9786
SELECT + 6 DIV + 64 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9786
SELECT + 6 / + 64 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9787
SELECT ALL - CAST( - + 23 AS SIGNED ) + + 82 AS col0 FROM tab2 cor0
----
105
105
105

skipif mysql # not compatible
query I rowsort label-9787
SELECT ALL - CAST ( - + 23 AS INTEGER ) + + 82 AS col0 FROM tab2 cor0
----
105
105
105

onlyif mysql # aggregate syntax: 
query I rowsort label-9788
SELECT ALL MAX( + col1 ) + - + ( + COUNT( * ) ) FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-9788
SELECT ALL MAX ( + col1 ) + - + ( + COUNT ( * ) ) FROM tab1
----
44

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE - 94 * + col2 IN ( col2, ( col0 ) + + col0, - col2, - + col2, - + 62 + - 87 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + 79 + - - col2 col0 FROM tab1
----
223
226
238

query I rowsort
SELECT DISTINCT - 15 * col1 FROM tab2
----
-1005
-1155
-765

query I rowsort
SELECT ALL + - col0 AS col2 FROM tab2 AS cor0 WHERE NOT col0 * - + ( - col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 + + + col2 AS col0 FROM tab0 AS cor0
----
196
62
97

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 ) WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9796
SELECT DISTINCT - + SUM( ALL + + col2 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9796
SELECT DISTINCT - + SUM ( ALL + + col2 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT col2 - col2 - col2 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT ALL ( MAX( + 43 ) ) * + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-9798
SELECT ALL ( MAX ( + 43 ) ) * + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-129

query I rowsort
SELECT - 30 * + col2 FROM tab0 AS cor0 WHERE NOT + 25 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9800
SELECT ALL + - MIN( DISTINCT - + col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-9800
SELECT ALL + - MIN ( DISTINCT - + col2 ) FROM tab1 AS cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9801
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) / - 96 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9801
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) / - 96 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9802
SELECT DISTINCT + MIN( + - col1 ) AS col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-9802
SELECT DISTINCT + MIN ( + - col1 ) AS col2 FROM tab1 AS cor0
----
-47

query II rowsort
SELECT - + 51 * - 9 * 60, 43 AS col2 FROM tab1 AS cor0
----
27540
43
27540
43
27540
43

onlyif mysql # aggregate syntax: 
query II rowsort label-9804
SELECT DISTINCT COUNT( * ) AS col0, + ( 34 ) col0 FROM tab0
----
3
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9804
SELECT DISTINCT COUNT ( * ) AS col0, + ( 34 ) col0 FROM tab0
----
3
34

onlyif mysql # DIV for integer division: 
query I rowsort label-9805
SELECT col0 DIV - + 46 AS col2 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-9805
SELECT col0 / - + 46 AS col2 FROM tab0
----
-1
-2
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9806
SELECT ALL + 96 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9806
SELECT ALL + 96 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9807
SELECT col2 DIV - 93 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9807
SELECT col2 / - 93 FROM tab1
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9808
SELECT MIN( - ( col1 ) ) AS col2 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-9808
SELECT MIN ( - ( col1 ) ) AS col2 FROM tab2
----
-77

query II rowsort
SELECT col2, 50 FROM tab1
----
59
50
68
50
96
50

onlyif mysql # aggregate syntax: 
query II rowsort label-9810
SELECT - COUNT( * ) AS col2, 13 + SUM( DISTINCT col2 ) FROM tab1 cor0
----
-3
236

skipif mysql # not compatible
query II rowsort label-9810
SELECT - COUNT ( * ) AS col2, 13 + SUM ( DISTINCT col2 ) FROM tab1 cor0
----
-3
236

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 AS col2, - col2 + + col1 col1 FROM tab2 cor0
----
23
28
40
37
58
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9813
SELECT + MIN( ALL 4 ) FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-9813
SELECT + MIN ( ALL 4 ) FROM tab2
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-9814
SELECT DISTINCT - + MIN( - 96 ) AS col1, - 49 FROM tab0 AS cor0
----
96
-49

skipif mysql # not compatible
query II rowsort label-9814
SELECT DISTINCT - + MIN ( - 96 ) AS col1, - 49 FROM tab0 AS cor0
----
96
-49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 + - col2 > + + 72
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( + col2 - 65 ) = + col0 * - col2 * col0 AND ( NULL ) NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT + col0 * + 12 * + ( + 4 ) AS col0, + 8 * + 43 AS col1 FROM tab1 AS cor0
----
2448
344
4080
344
4368
344

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 88 + + 73 = NULL
----

query I rowsort
SELECT ALL - + 51 + - col0 FROM tab0 AS cor0
----
-138
-148
-66

query I rowsort
SELECT + - ( col2 ) + col0 FROM tab2 cor0
----
17
23
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9821
SELECT - CAST( + + 38 AS SIGNED ) * 66 * + 4 * col1 AS col0, 1 AS col1 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-10032
1
-210672
1
-812592
1

skipif mysql # not compatible
query II rowsort label-9821
SELECT - CAST ( + + 38 AS INTEGER ) * 66 * + 4 * col1 AS col0, 1 AS col1 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-10032
1
-210672
1
-812592
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9822
SELECT - col1 DIV + col0 * + + col0 + ( + 73 ) * - col1 AS col0 FROM tab1
----
-1022
-3431
-365

skipif mysql # not compatible
query I rowsort label-9822
SELECT - col1 / + col0 * + + col0 + ( + 73 ) * - col1 AS col0 FROM tab1
----
-1022
-3431
-365

query I rowsort
SELECT DISTINCT - 88 + + col1 + 38 FROM tab2
----
1
17
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9824
SELECT - ( + - MIN( + + ( - col2 ) ) ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-9824
SELECT - ( + - MIN ( + + ( - col2 ) ) ) FROM tab2
----
-58

query I rowsort
SELECT DISTINCT col2 - col0 + - ( + 82 ) FROM tab0
----
-159
-50
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9826
SELECT DISTINCT - col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9826
SELECT DISTINCT - col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE 50 >= col0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-9828
SELECT DISTINCT - + 47 * - + col2 - - col2 DIV col0 AS col1 FROM tab1 cor0
----
2773
3196
4513

skipif mysql # not compatible
query I rowsort label-9828
SELECT DISTINCT - + 47 * - + col2 - - col2 / col0 AS col1 FROM tab1 cor0
----
2773
3196
4513

query I rowsort
SELECT ( + col1 ) FROM tab0 AS cor0 WHERE 46 IS NOT NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9830
SELECT + 48 * + CAST( - 62 AS SIGNED ) - + col0 FROM tab1 AS cor0
----
-3027
-3061
-3067

skipif mysql # not compatible
query I rowsort label-9830
SELECT + 48 * + CAST ( - 62 AS INTEGER ) - + col0 FROM tab1 AS cor0
----
-3027
-3061
-3067

query I rowsort
SELECT ALL - col1 + - + col0 AS col2 FROM tab0
----
-108
-96
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9832
SELECT ALL COUNT( * ) + + + SUM( + col0 ) AS col0 FROM tab2
----
188

skipif mysql # not compatible
query I rowsort label-9832
SELECT ALL COUNT ( * ) + + + SUM ( + col0 ) AS col0 FROM tab2
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT - MAX( + 81 ) AS col1 FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-9833
SELECT - MAX ( + 81 ) AS col1 FROM tab2
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9834
SELECT DISTINCT - col1, + 91 * col2 * col0 AS col0, + CAST( NULL AS SIGNED ) + + col2 AS col1 FROM tab1 AS cor0
----
9 values hashing to e59a5b742bfb7624fd7fed93ead2812f

skipif mysql # not compatible
query III rowsort label-9834
SELECT DISTINCT - col1, + 91 * col2 * col0 AS col0, + CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab1 AS cor0
----
9 values hashing to e59a5b742bfb7624fd7fed93ead2812f

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab2 AS cor0 WHERE NULL > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 81 col0, col1 AS col0 FROM tab1 AS cor0
----
81
14
81
47
81
5

query I rowsort
SELECT - col2 * col2 * - + 45 FROM tab0
----
441045
4500
99405

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 18 + - + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col1 col0 FROM tab0
----
-210
-3807
-99

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 >= + - 85 + - + col1 + + 58
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9841
SELECT col2 DIV col2, + col2 AS col2 FROM tab1
----
1
59
1
68
1
96

skipif mysql # not compatible
query II rowsort label-9841
SELECT col2 / col2, + col2 AS col2 FROM tab1
----
1
59
1
68
1
96

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + ( - + 91 ) <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9843
SELECT DISTINCT - COUNT( * ) + + - SUM( ALL - col2 ) FROM tab1 WHERE + 57 * - - 45 + + + 82 + + + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9843
SELECT DISTINCT - COUNT ( * ) + + - SUM ( ALL - col2 ) FROM tab1 WHERE + 57 * - - 45 + + + 82 + + + col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9844
SELECT DISTINCT MAX( ALL - col2 ) AS col1 FROM tab1 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9844
SELECT DISTINCT MAX ( ALL - col2 ) AS col1 FROM tab1 WHERE NOT col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT - + COUNT( - 39 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9845
SELECT - + COUNT ( - 39 ) FROM tab0 AS cor0
----
-3

query II rowsort
SELECT DISTINCT - col1 + - 36 + ( col2 ) * - 64, col2 FROM tab1 AS cor0
----
-3817
59
-4435
68
-6194
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9847
SELECT ALL - COUNT( DISTINCT + 30 ) AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9847
SELECT ALL - COUNT ( DISTINCT + 30 ) AS col1 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9848
SELECT DISTINCT 63 + - COUNT( * ) col1 FROM tab2
----
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9848
SELECT DISTINCT 63 + - COUNT ( * ) col1 FROM tab2
----
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 77 ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

query I rowsort
SELECT 56 * - - 19 FROM tab0 AS cor0
----
1064
1064
1064

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + + 47 ) col2 FROM tab0 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT DISTINCT SUM( + - 43 ) AS col2 FROM tab1 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-9852
SELECT DISTINCT SUM ( + - 43 ) AS col2 FROM tab1 AS cor0
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT DISTINCT 61 + COUNT( * ) FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-9853
SELECT DISTINCT 61 + COUNT ( * ) FROM tab0
----
64

query I rowsort
SELECT ALL col1 + + ( - - col1 ) + + 96 + + col1 AS col1 FROM tab2
----
249
297
327

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9855
SELECT DISTINCT CAST( COUNT( DISTINCT - - col2 ) AS SIGNED ) + 1 AS col0 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-9855
SELECT DISTINCT CAST ( COUNT ( DISTINCT - - col2 ) AS INTEGER ) + 1 AS col0 FROM tab1
----
4

query I rowsort
SELECT ALL 53 AS col1 FROM tab0 WHERE col1 <> NULL AND + 36 + + 38 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9857
SELECT 32 * + 23 + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9857
SELECT 32 * + 23 + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 - + 99 + + col1 FROM tab0
----
-165
-195
-33

query I rowsort
SELECT - ( - - col2 ) + + col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - col2 - + col2 + + col2 + + col0 * 44 FROM tab0 AS cor0
----
3818
4169
613

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9861
SELECT DISTINCT + CAST( + 73 AS SIGNED ) FROM tab0 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-9861
SELECT DISTINCT + CAST ( + 73 AS INTEGER ) FROM tab0 AS cor0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9862
SELECT ALL + + 18 * - COUNT( * ) AS col2 FROM tab0 cor0
----
-54

skipif mysql # not compatible
query I rowsort label-9862
SELECT ALL + + 18 * - COUNT ( * ) AS col2 FROM tab0 cor0
----
-54

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 21 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT DISTINCT SUM( + - col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-9864
SELECT DISTINCT SUM ( + - col2 ) FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT - MIN( col2 ) AS col0 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-9865
SELECT - MIN ( col2 ) AS col0 FROM tab1 AS cor0
----
-59

query II rowsort
SELECT 92, col0 AS col0 FROM tab2
----
92
46
92
64
92
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9867
SELECT COUNT( ALL - 49 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9867
SELECT COUNT ( ALL - 49 ) FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9868
SELECT DISTINCT + 20 DIV 18 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9868
SELECT DISTINCT + 20 / 18 FROM tab1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9869
SELECT DISTINCT - col2 DIV - - col2 AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-9869
SELECT DISTINCT - col2 / - - col2 AS col2 FROM tab0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9870
SELECT - SUM( col0 ) DIV + - COUNT( ALL + - col0 ) + - COUNT( * ) AS col1 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-9870
SELECT - SUM ( col0 ) / + - COUNT ( ALL + - col0 ) + - COUNT ( * ) AS col1 FROM tab1
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9871
SELECT COUNT( * ) / CAST( NULL AS SIGNED ) * + + CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9871
SELECT COUNT ( * ) / CAST ( NULL AS INTEGER ) * + + CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT + col1 * + col0 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query II rowsort label-9873
SELECT COUNT( * ) AS col0, 50 FROM tab1
----
3
50

skipif mysql # not compatible
query II rowsort label-9873
SELECT COUNT ( * ) AS col0, 50 FROM tab1
----
3
50

query I rowsort
SELECT ALL 53 * + - col0 FROM tab2
----
-2438
-3392
-3975

query II rowsort
SELECT 56 AS col2, col2 * - col0 FROM tab0 AS cor0
----
56
-705
56
-870
56
-9603

query I rowsort
SELECT + col2 * 58 FROM tab1
----
3422
3944
5568

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9877
SELECT DISTINCT + col2 + + col0 + - 70 FROM tab2 AS cor0 WHERE NOT NULL <> - col0 * + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9877
SELECT DISTINCT + col2 + + col0 + - 70 FROM tab2 AS cor0 WHERE NOT NULL <> - col0 * + - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL - - 39 FROM tab1 cor0
----
39
39
39

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9880
SELECT ALL COUNT( * ) + + COUNT( * ) + - SUM( ALL - col2 ) FROM tab0 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-9880
SELECT ALL COUNT ( * ) + + COUNT ( * ) + - SUM ( ALL - col2 ) FROM tab0 AS cor0
----
162

query I rowsort
SELECT - + ( + col2 ) + - - 32 + + col0 FROM tab0 AS cor0
----
0
109
30

query I rowsort
SELECT - 24 * + 58 FROM tab0 AS cor0
----
-1392
-1392
-1392

query II rowsort
SELECT 33 AS col1, - col1 AS col2 FROM tab0
----
33
-1
33
-21
33
-81

query I rowsort
SELECT + + col0 + - col0 AS col1 FROM tab2 WHERE - col2 IS NOT NULL
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9885
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - SUM( ALL col1 ) - + COUNT( * ) + - + 18 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9885
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - SUM ( ALL col1 ) - + COUNT ( * ) + - + 18 AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9886
SELECT DISTINCT 99 DIV + - 2 - + COUNT( * ) AS col1 FROM tab1
----
-52

skipif mysql # not compatible
query I rowsort label-9886
SELECT DISTINCT 99 / + - 2 - + COUNT ( * ) AS col1 FROM tab1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9887
SELECT COUNT( * ) * - 63 FROM tab2 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-9887
SELECT COUNT ( * ) * - 63 FROM tab2 AS cor0
----
-189

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9888
SELECT DISTINCT COUNT( * ) * CAST( + SUM( + col2 ) AS SIGNED ) AS col1, - 21 AS col1 FROM tab2 AS cor0
----
363
-21

skipif mysql # not compatible
query II rowsort label-9888
SELECT DISTINCT COUNT ( * ) * CAST ( + SUM ( + col2 ) AS INTEGER ) AS col1, - 21 AS col1 FROM tab2 AS cor0
----
363
-21

query I rowsort
SELECT DISTINCT 75 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - + col0 * + col2 * - + col2 AS col0 FROM tab2 AS cor0
----
102400
24334
252300

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 10 < - - 22 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT + - COUNT( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9892
SELECT + - COUNT ( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9894
SELECT + MAX( - col2 ) * COUNT( * ) * - + CAST( NULL AS SIGNED ) * - - SUM( - col1 ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9894
SELECT + MAX ( - col2 ) * COUNT ( * ) * - + CAST ( NULL AS INTEGER ) * - - SUM ( - col1 ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9895
SELECT DISTINCT col0 DIV 4 FROM tab2
----
11
16
18

skipif mysql # not compatible
query I rowsort label-9895
SELECT DISTINCT col0 / 4 FROM tab2
----
11
16
18

query I rowsort
SELECT DISTINCT + 88 * - col1 + ( col2 ) AS col0 FROM tab0 WHERE NOT 83 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - + ( - 41 ) col0 FROM tab0
----
3567
3977
615

onlyif mysql # DIV for integer division: 
query I rowsort label-9898
SELECT - col2 DIV - col1 * + col1 + - + 23 * + 68 AS col1 FROM tab0 AS cor0
----
-1465
-1564
-1564

skipif mysql # not compatible
query I rowsort label-9898
SELECT - col2 / - col1 * + col1 + - + 23 * + 68 AS col1 FROM tab0 AS cor0
----
-1465
-1564
-1564

onlyif mysql # DIV for integer division: 
query III rowsort label-9899
SELECT ALL 72, - col0 DIV + - col1 col2, + col1 + + col1 AS col0 FROM tab2 AS cor0
----
9 values hashing to 84782e41ae0c55ac7e82debc84bcfa7e

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-9899
SELECT ALL 72, - col0 / + - col1 col2, + col1 + + col1 AS col0 FROM tab2 AS cor0
----
9 values hashing to 84782e41ae0c55ac7e82debc84bcfa7e

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9900
SELECT + ( 57 ) + + + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9900
SELECT + ( 57 ) + + + CAST ( NULL AS REAL ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9901
SELECT DISTINCT - + 15 + ( + 89 ) AS col0, + CAST( NULL AS SIGNED ) * 78 * col2 AS col2 FROM tab2 AS cor0
----
74
NULL

skipif mysql # not compatible
query II rowsort label-9901
SELECT DISTINCT - + 15 + ( + 89 ) AS col0, + CAST ( NULL AS INTEGER ) * 78 * col2 AS col2 FROM tab2 AS cor0
----
74
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9902
SELECT ALL CAST( NULL AS SIGNED ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9902
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT ALL 44 + + COUNT( DISTINCT - ( col2 ) ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
47

skipif mysql # not compatible
query I rowsort label-9903
SELECT ALL 44 + + COUNT ( DISTINCT - ( col2 ) ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9904
SELECT ( + MAX( ALL col2 ) ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-9904
SELECT ( + MAX ( ALL col2 ) ) FROM tab1 AS cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9905
SELECT ALL + col2 * + CAST( - col0 AS SIGNED ) * col2 col2 FROM tab2 AS cor0
----
-102400
-24334
-252300

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9905
SELECT ALL + col2 * + CAST ( - col0 AS INTEGER ) * col2 col2 FROM tab2 AS cor0
----
-102400
-24334
-252300

query I rowsort
SELECT DISTINCT + + col2 + + + ( col1 ) AS col1 FROM tab1 cor0
----
110
115
64

query I rowsort
SELECT ALL + col1 * - + 50 + - - col2 + col0 * + col1 FROM tab1 cor0
----
110
1995
234

query II rowsort
SELECT DISTINCT + - 22, col2 AS col0 FROM tab0 AS cor0
----
-22
10
-22
47
-22
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9909
SELECT - 89 + - 35 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9909
SELECT - 89 + - 35 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9910
SELECT DISTINCT - 26 + MAX( - - CAST( - - 38 AS SIGNED ) ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-9910
SELECT DISTINCT - 26 + MAX ( - - CAST ( - - 38 AS INTEGER ) ) FROM tab2
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9911
SELECT CAST( NULL AS SIGNED ) + - + ( - 84 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9911
SELECT CAST ( NULL AS INTEGER ) + - + ( - 84 ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 89 + col1 - col1 * + col2 AS col2 FROM tab2
----
-1033
-2914
-3730

query I rowsort
SELECT + col0 + - + col1 AS col1 FROM tab1
----
37
44
80

query I rowsort
SELECT DISTINCT - col0 + + col0 + + col2 AS col2 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9915
SELECT + COUNT( * ) DIV - 55 * + 77 + + - ( + - 18 ) FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-9915
SELECT + COUNT ( * ) / - 55 * + 77 + + - ( + - 18 ) FROM tab2
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9916
SELECT - ( - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9916
SELECT - ( - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 73 * - + col0 FROM tab1
----
-3723
-6205
-6643

onlyif mysql # DIV for integer division: 
query I rowsort label-9918
SELECT + 93 DIV - col1 AS col2 FROM tab0
----
-1
-4
-93

skipif mysql # not compatible
query I rowsort label-9918
SELECT + 93 / - col1 AS col2 FROM tab0
----
-1
-4
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9919
SELECT ALL + CAST( 55 AS SIGNED ) FROM tab1
----
55
55
55

skipif mysql # not compatible
query I rowsort label-9919
SELECT ALL + CAST ( 55 AS INTEGER ) FROM tab1
----
55
55
55

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 80 AS col1, 93 col2 FROM tab1 AS cor0
----
80
93

onlyif mysql # DIV for integer division: 
query I rowsort label-9922
SELECT DISTINCT + + 29 + + - ( - col2 ) DIV - col1 AS col0 FROM tab0 AS cor0
----
-70
29

skipif mysql # not compatible
query I rowsort label-9922
SELECT DISTINCT + + 29 + + - ( - col2 ) / - col1 AS col0 FROM tab0 AS cor0
----
-70
29

query I rowsort
SELECT + col1 * + col0 + + col2 AS col0 FROM tab0 AS cor0
----
1262
1837
196

query I rowsort
SELECT DISTINCT 37 AS col0 FROM tab0 AS cor0 WHERE NULL = + ( col0 ) * + 82
----

query I rowsort
SELECT - + 92 + + col1 AS col0 FROM tab1 AS cor0
----
-45
-78
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col1 + col2 col0 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT ALL COUNT( * ) + + + 66 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-9927
SELECT ALL COUNT ( * ) + + + 66 FROM tab2
----
69

query I rowsort
SELECT ( - + ( - 39 ) ) * + - col0 + - col2 + - - col0 AS col0 FROM tab0
----
-3316
-3785
-617

query I rowsort
SELECT 57 + - + ( - 42 ) + + + col0 * + col2 FROM tab1
----
4995
5114
6287

query I rowsort
SELECT ALL col1 + - + 88 - + 2 AS col0 FROM tab0
----
-69
-89
-9

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - ( + - col2 ) NOT IN ( + col0, col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL < + col0 + ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9933
SELECT ALL - COUNT( * ) * - 59 AS col1 FROM tab0 cor0
----
177

skipif mysql # not compatible
query I rowsort label-9933
SELECT ALL - COUNT ( * ) * - 59 AS col1 FROM tab0 cor0
----
177

onlyif mysql # DIV for integer division: 
query I rowsort label-9934
SELECT - col2 DIV + 14 col0 FROM tab0 AS cor0
----
-3
-7
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9934
SELECT - col2 / + 14 col0 FROM tab0 AS cor0
----
-3
-7
0

query I rowsort
SELECT DISTINCT - - col0 * 35 AS col0 FROM tab2 AS cor0
----
1610
2240
2625

query I rowsort
SELECT - col0 AS col1 FROM tab0 AS cor0 WHERE 24 * - - col2 < - - 36
----

query I rowsort
SELECT + + col0 * - 22 AS col2 FROM tab1 AS cor0
----
-1122
-1870
-2002

query I rowsort
SELECT DISTINCT 47 + - col1 FROM tab2
----
-20
-30
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9939
SELECT DISTINCT - COUNT( * ) + + + 81 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
72

skipif mysql # not compatible
query I rowsort label-9939
SELECT DISTINCT - COUNT ( * ) + + + 81 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
72

query I rowsort
SELECT ALL - + 24 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * + - col0 + - col0 col1 FROM tab1 AS cor0
----
340
4186
663

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9942
SELECT DISTINCT + + MAX( - - CAST( NULL AS SIGNED ) ) * - + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9942
SELECT DISTINCT + + MAX ( - - CAST ( NULL AS INTEGER ) ) * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col2 + - + col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 * - - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 9 AS col1 FROM tab2 AS cor0 WHERE - ( - col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9946
SELECT ALL 77, COUNT( * ) AS col2 FROM tab1 AS cor0
----
77
3

skipif mysql # not compatible
query II rowsort label-9946
SELECT ALL 77, COUNT ( * ) AS col2 FROM tab1 AS cor0
----
77
3

query I rowsort
SELECT - col2 * - col1 * col1 FROM tab0
----
308367
4410
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9948
SELECT - CAST( NULL AS SIGNED ), + col1 col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9948
SELECT - CAST ( NULL AS INTEGER ), + col1 col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT DISTINCT + 3 * + MIN( - col2 ) FROM tab1 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-9949
SELECT DISTINCT + 3 * + MIN ( - col2 ) FROM tab1 AS cor0
----
-288

query II rowsort
SELECT ALL col2 AS col1, + ( - 95 ) * - 96 FROM tab2 AS cor0
----
23
9120
40
9120
58
9120

query I rowsort
SELECT 42 * col1 FROM tab1
----
1974
210
588

onlyif mysql # aggregate syntax: 
query I rowsort label-9952
SELECT COUNT( * ) * - + COUNT( * ) col1 FROM tab2
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9952
SELECT COUNT ( * ) * - + COUNT ( * ) col1 FROM tab2
----
-9

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 47 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9954
SELECT CAST( NULL AS DECIMAL ) * - - 81 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9954
SELECT CAST ( NULL AS REAL ) * - - 81 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9955
SELECT col1 DIV + ( - 46 ) - + 51 col2 FROM tab2 AS cor0
----
-52
-52
-52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9955
SELECT col1 / + ( - 46 ) - + 51 col2 FROM tab2 AS cor0
----
-52
-52
-52

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 < col0
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 57 IS NOT NULL
----

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN - col1 AND - + col2 + + - col2
----

query I rowsort
SELECT DISTINCT - - 62 + + 73 + + 38 AS col2 FROM tab0 AS cor0
----
173

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT - SUM( DISTINCT - + col0 ) AS col2 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-9960
SELECT - SUM ( DISTINCT - + col0 ) AS col2 FROM tab2
----
185

query I rowsort
SELECT - ( + - col0 ) + + - 74 + + + col2 FROM tab0
----
-12
122
23

query I rowsort
SELECT - col0 AS col1 FROM tab1 WHERE 90 = col1
----

query I rowsort
SELECT + + col0 FROM tab0 WHERE ( + col2 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT + COUNT( * ) + COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9964
SELECT + COUNT ( * ) + COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - 34 * + col1 FROM tab1 AS cor0
----
-1598
-170
-476

query II rowsort
SELECT 89, + 98 FROM tab1 AS cor0 WHERE + 64 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9967
SELECT * FROM tab1 WHERE - col2 <= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9967
SELECT * FROM tab1 WHERE - col2 <= - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL 71 * ( col0 ) FROM tab0
----
1065
6177
6887

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) > - col1 + - ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9970
SELECT ALL COUNT( * ) FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND + 1 * - col0 + col2
----
0

skipif mysql # not compatible
query I rowsort label-9970
SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND + 1 * - col0 + col2
----
0

query I rowsort
SELECT ( ( col1 ) ) / 85 - 2 FROM tab2 WHERE ( NULL ) = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9972
SELECT + ( + col1 ) + 73 DIV col2 AS col2 FROM tab0
----
1
28
82

skipif mysql # not compatible
query I rowsort label-9972
SELECT + ( + col1 ) + 73 / col2 AS col2 FROM tab0
----
1
28
82

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9973
SELECT DISTINCT * FROM tab0 WHERE ( - CAST( - 73 AS SIGNED ) ) < - col2
----

skipif mysql # not compatible
query III rowsort label-9973
SELECT DISTINCT * FROM tab0 WHERE ( - CAST ( - 73 AS INTEGER ) ) < - col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 + 56 * 29 > - 68 * ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9975
SELECT DISTINCT COUNT( * ) DIV - COUNT( DISTINCT + col0 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-9975
SELECT DISTINCT COUNT ( * ) / - COUNT ( DISTINCT + col0 ) FROM tab0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9976
SELECT 73 DIV + col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9976
SELECT 73 / + col2 FROM tab1
----
0
1
1

query I rowsort
SELECT DISTINCT + col0 * + col1 + + col1 FROM tab2
----
2397
5005
5092

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9978
SELECT + COUNT( * ) DIV MAX( + col2 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9978
SELECT + COUNT ( * ) / MAX ( + col2 ) FROM tab0
----
0

query I rowsort
SELECT DISTINCT - 71 + + col1 AS col2 FROM tab2
----
-20
-4
6

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9981
SELECT - 54 * - col2 - col1 AS col0 FROM tab1 WHERE NOT + CAST( NULL AS DECIMAL ) NOT IN ( - 60 + col0 )
----

skipif mysql # not compatible
query I rowsort label-9981
SELECT - 54 * - col2 - col1 AS col0 FROM tab1 WHERE NOT + CAST ( NULL AS REAL ) NOT IN ( - 60 + col0 )
----

query I rowsort
SELECT col0 * 96 + + col2 AS col1 FROM tab2
----
4439
6184
7258

query I rowsort
SELECT + 81 + + col0 * col0 FROM tab0
----
306
7650
9490

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - ( col1 ) * col1 IS NOT NULL
----

query I rowsort
SELECT + col1 + 31 AS col2 FROM tab0
----
112
32
52

query I rowsort
SELECT DISTINCT ( + col1 ) AS col1 FROM tab2 WHERE NOT + 78 - ( col2 + + col1 ) IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9987
SELECT ALL - MIN( + col1 ) AS col1 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-9987
SELECT ALL - MIN ( + col1 ) AS col1 FROM tab1
----
-5

query I rowsort
SELECT DISTINCT col2 + col1 FROM tab2 WHERE NOT 44 NOT IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9989
SELECT ALL + COUNT( * ) - ( 99 ) FROM tab1 WHERE NOT 29 = 91
----
-96

skipif mysql # not compatible
query I rowsort label-9989
SELECT ALL + COUNT ( * ) - ( 99 ) FROM tab1 WHERE NOT 29 = 91
----
-96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - 79
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9991
SELECT ALL 21 DIV - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9991
SELECT ALL 21 / - col0 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( - col2 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 74 + - col0 * col0 NOT BETWEEN col2 - - 14 AND ( + col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 67 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9995
SELECT + MIN( ALL + col0 ) DIV + CAST( + 67 AS SIGNED ) + 40 FROM tab1 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-9995
SELECT + MIN ( ALL + col0 ) / + CAST ( + 67 AS INTEGER ) + 40 FROM tab1 AS cor0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9996
SELECT ALL SUM( col2 ) AS col0 FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-9996
SELECT ALL SUM ( col2 ) AS col0 FROM tab0 cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-9997
SELECT ALL + COUNT( * ) + - SUM( ( 4 ) + col1 ) col2 FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9997
SELECT ALL + COUNT ( * ) + - SUM ( ( 4 ) + col1 ) col2 FROM tab1 AS cor0
----
-75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 + + col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9999
SELECT + MAX( col2 ) FROM tab2 AS cor0 WHERE col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9999
SELECT + MAX ( col2 ) FROM tab2 AS cor0 WHERE col1 IS NULL
----
NULL

