sqllogictest
Artifact Content
Not logged in

Artifact 9615773df4ad8f3f0ae4b5bd4fb47ee9b2a4b13a:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-0
SELECT ALL - 60, NULLIF ( 93, - MIN( - - 18 ) / 27 ) * + - COUNT( * ) + NULLIF ( - + ( 38 ), + COUNT( * ) * - - 47 / ( + - 93 ) ) * - 68 col1
----
-60
2491

skipif mysql # not compatible
query II rowsort label-0
SELECT ALL - 60, NULLIF ( 93, - MIN ( - - 18 ) / 27 ) * + - COUNT ( * ) + NULLIF ( - + ( 38 ), + COUNT ( * ) * - - 47 / ( + - 93 ) ) * - 68 col1
----
-60
2491

onlyif mysql # aggregate syntax: 
query I rowsort label-1
SELECT ALL COUNT( * ) * + 38 + - 21 + - 19 * + 21 + + 82 col2
----
-300

skipif mysql # not compatible
query I rowsort label-1
SELECT ALL COUNT ( * ) * + 38 + - 21 + - 19 * + 21 + + 82 col2
----
-300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2
SELECT - CAST( 65 AS SIGNED ) * + 38, COUNT( * ) AS col2
----
-2470
1

skipif mysql # not compatible
query II rowsort label-2
SELECT - CAST ( 65 AS INTEGER ) * + 38, COUNT ( * ) AS col2
----
-2470
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3
SELECT DISTINCT - - SUM( 80 ) DIV - + 13 + CAST( + COALESCE ( + 90, ( - CAST( NULL AS SIGNED ) ) + + - COUNT( * ) ) AS SIGNED )
----
84

skipif mysql # not compatible
query I rowsort label-3
SELECT DISTINCT - - SUM ( 80 ) / - + 13 + CAST ( + COALESCE ( + 90, ( - CAST ( NULL AS INTEGER ) ) + + - COUNT ( * ) ) AS INTEGER )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4
SELECT DISTINCT - 41 + + COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-4
SELECT DISTINCT - 41 + + COUNT ( * )
----
-40

query II rowsort
SELECT ALL - 99 AS col0, 78
----
-99
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6
SELECT ALL COUNT( * ) + + 55
----
56

skipif mysql # not compatible
query I rowsort label-6
SELECT ALL COUNT ( * ) + + 55
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-7
SELECT COUNT( * ) + + 69 + + 15 + + COUNT( * ) + - - COUNT( * ) * 22 + + + 6 + COUNT( * ) AS col0, - 56
----
115
-56

skipif mysql # not compatible
query II rowsort label-7
SELECT COUNT ( * ) + + 69 + + 15 + + COUNT ( * ) + - - COUNT ( * ) * 22 + + + 6 + COUNT ( * ) AS col0, - 56
----
115
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-8
SELECT + CASE + 2 WHEN + - 43 THEN NULL WHEN 83 THEN - COALESCE ( - 44, + 1 * - COUNT( * ) ) ELSE - 63 END AS col0, - 84 * + 43 + + 48 * - - 80 * ( 31 ) - + ( + COUNT( * ) )
----
-63
115427

skipif mysql # not compatible
query II rowsort label-8
SELECT + CASE + 2 WHEN + - 43 THEN NULL WHEN 83 THEN - COALESCE ( - 44, + 1 * - COUNT ( * ) ) ELSE - 63 END AS col0, - 84 * + 43 + + 48 * - - 80 * ( 31 ) - + ( + COUNT ( * ) )
----
-63
115427

query II rowsort
SELECT - 87 AS col1, + 89
----
-87
89

onlyif mysql # aggregate syntax: 
query I rowsort label-10
SELECT ALL - MAX( ALL 13 )
----
-13

skipif mysql # not compatible
query I rowsort label-10
SELECT ALL - MAX ( ALL 13 )
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-11
SELECT ALL + MAX( 82 ) + + NULLIF ( - - CAST( + ( + NULLIF ( - SUM( - 60 ), + - COUNT( * ) * 34 ) ) AS SIGNED ), + - 49 ) AS col2
----
142

skipif mysql # not compatible
query I rowsort label-11
SELECT ALL + MAX ( 82 ) + + NULLIF ( - - CAST ( + ( + NULLIF ( - SUM ( - 60 ), + - COUNT ( * ) * 34 ) ) AS INTEGER ), + - 49 ) AS col2
----
142

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-12
SELECT DISTINCT + COALESCE ( + 7, + + 56 * - CAST( NULL AS SIGNED ) + 46 - CASE - ( 60 ) WHEN 64 THEN - NULLIF ( + - 6, - + 25 * 50 * + - 40 + + AVG ( DISTINCT 83 ) ) - - NULLIF ( + - 73, + 54 ) END * 21 ) + 12 DIV + 67 + - 63
----
-56

skipif mysql # not compatible
query I rowsort label-12
SELECT DISTINCT + COALESCE ( + 7, + + 56 * - CAST ( NULL AS INTEGER ) + 46 - CASE - ( 60 ) WHEN 64 THEN - NULLIF ( + - 6, - + 25 * 50 * + - 40 + + AVG ( DISTINCT 83 ) ) - - NULLIF ( + - 73, + 54 ) END * 21 ) + 12 / + 67 + - 63
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-13
SELECT DISTINCT - 29 col2, COUNT( + 18 ) col2
----
-29
1

skipif mysql # not compatible
query II rowsort label-13
SELECT DISTINCT - 29 col2, COUNT ( + 18 ) col2
----
-29
1

query I rowsort
SELECT ALL 57 + - 19 + 18 AS col1
----
56

query I rowsort
SELECT 88 + 72 AS col0
----
160

query I rowsort
SELECT ALL 96 + + 28
----
124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-17
SELECT - 79 * COALESCE ( 26, + 69 ) DIV + + COUNT( * ) + + - COUNT( * ) AS col0
----
-2055

skipif mysql # not compatible
query I rowsort label-17
SELECT - 79 * COALESCE ( 26, + 69 ) / + + COUNT ( * ) + + - COUNT ( * ) AS col0
----
-2055

onlyif mysql # aggregate syntax: 
query I rowsort label-18
SELECT CASE 73 WHEN - 87 THEN - + 30 * 39 WHEN + 13 * + 8 * - - COUNT( * ) - 14 + + - 98 * + 35 + + + 75 * 88 * - 92 THEN 72 * NULLIF ( 48, - 15 ) + - COUNT( * ) * + 63 + + - 85 END + + + 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-18
SELECT CASE 73 WHEN - 87 THEN - + 30 * 39 WHEN + 13 * + 8 * - - COUNT ( * ) - 14 + + - 98 * + 35 + + + 75 * 88 * - 92 THEN 72 * NULLIF ( 48, - 15 ) + - COUNT ( * ) * + 63 + + - 85 END + + + 65 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-19
SELECT ALL 63 DIV - - 73 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-19
SELECT ALL 63 / - - 73 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-20
SELECT 20 - - - COUNT( * ) + 95
----
114

skipif mysql # not compatible
query I rowsort label-20
SELECT 20 - - - COUNT ( * ) + 95
----
114

query I rowsort
SELECT 91 * - 58 col1
----
-5278

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-22
SELECT ALL + COUNT( * ) - - ( + - 83 ) DIV COUNT( * ), + 42 AS col2
----
-82
42

skipif mysql # not compatible
query II rowsort label-22
SELECT ALL + COUNT ( * ) - - ( + - 83 ) / COUNT ( * ), + 42 AS col2
----
-82
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-23
SELECT ALL 28 * + + COALESCE ( + - 69, - 20, + 57 * + 3 * CAST( NULL AS SIGNED ) * + 90 + ( - COUNT( * ) ) DIV + - 17 )
----
-1932

skipif mysql # not compatible
query I rowsort label-23
SELECT ALL 28 * + + COALESCE ( + - 69, - 20, + 57 * + 3 * CAST ( NULL AS INTEGER ) * + 90 + ( - COUNT ( * ) ) / + - 17 )
----
-1932

query I rowsort
SELECT DISTINCT 62 * + 73 AS col2
----
4526

query I rowsort
SELECT ALL NULLIF ( 76, 54 ) * 42
----
3192

query I rowsort
SELECT 45 * - + 17
----
-765

query I rowsort
SELECT 35 * + 40 * - 84 * + 25 AS col2
----
-2940000

onlyif mysql # aggregate syntax: 
query I rowsort label-28
SELECT DISTINCT + - NULLIF ( 77, + - CASE + COUNT( * ) WHEN + 2 THEN NULL WHEN SUM( ALL + + 34 ) - 24 THEN - COALESCE ( + 16, + 53 * - 5 ) END * + - COUNT( * ) ) + + + 20 + COUNT( ALL - + 82 ) + - 89 * + - 91 * + 12
----
97132

skipif mysql # not compatible
query I rowsort label-28
SELECT DISTINCT + - NULLIF ( 77, + - CASE + COUNT ( * ) WHEN + 2 THEN NULL WHEN SUM ( ALL + + 34 ) - 24 THEN - COALESCE ( + 16, + 53 * - 5 ) END * + - COUNT ( * ) ) + + + 20 + COUNT ( ALL - + 82 ) + - 89 * + - 91 * + 12
----
97132

query I rowsort
SELECT DISTINCT - ( 11 ) * 26
----
-286

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-30
SELECT - MIN( + CAST( - + 90 AS SIGNED ) ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-30
SELECT - MIN ( + CAST ( - + 90 AS INTEGER ) ) AS col2
----
90

query II rowsort
SELECT - + ( + + 52 ) col2, COALESCE ( + 61, - + 29 * - 27 ) AS col2
----
-52
61

query II rowsort
SELECT + 61 * + + 34 AS col1, 41 + - 98
----
2074
-57

query I rowsort
SELECT DISTINCT - 52 + - 30 + - 16 + + + 10 - + 32 * - 43 * CASE + 32 WHEN + - 68 + + 53 * 34 THEN NULL ELSE - - 96 END AS col0
----
132008

query I rowsort
SELECT ALL - 8 + 50 * - + 70 col0
----
-3508

query I rowsort
SELECT DISTINCT + 49 + + 9
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-36
SELECT DISTINCT - SUM( DISTINCT + - 90 )
----
90

skipif mysql # not compatible
query I rowsort label-36
SELECT DISTINCT - SUM ( DISTINCT + - 90 )
----
90

query I rowsort
SELECT + 11 + - 79 AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-38
SELECT ALL + 16 + + COUNT( * ) * - 18 * + 30 AS col0
----
-524

skipif mysql # not compatible
query I rowsort label-38
SELECT ALL + 16 + + COUNT ( * ) * - 18 * + 30 AS col0
----
-524

onlyif mysql # DIV for integer division: 
query I rowsort label-39
SELECT ALL + 58 DIV + 85 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-39
SELECT ALL + 58 / + 85 AS col2
----
0

query I rowsort
SELECT - - 61 * - + 14
----
-854

onlyif mysql # aggregate syntax: 
query I rowsort label-41
SELECT + - COUNT( ALL 23 ) * - - 67 AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-41
SELECT + - COUNT ( ALL 23 ) * - - 67 AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-42
SELECT + + MIN( ALL 74 )
----
74

skipif mysql # not compatible
query I rowsort label-42
SELECT + + MIN ( ALL 74 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-43
SELECT COALESCE ( + + COUNT( * ), 33, - 9 )
----
1

skipif mysql # not compatible
query I rowsort label-43
SELECT COALESCE ( + + COUNT ( * ), 33, - 9 )
----
1

query I rowsort
SELECT ALL - 16 * 43
----
-688

query I rowsort
SELECT + 63 * + 78 AS col2
----
4914

query I rowsort
SELECT + NULLIF ( - 89, - - 29 ) AS col0
----
-89

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-47
SELECT DISTINCT + 62, - CAST( - - 43 AS SIGNED ) DIV + + 40 + + 53 AS col2
----
62
52

skipif mysql # not compatible
query II rowsort label-47
SELECT DISTINCT + 62, - CAST ( - - 43 AS INTEGER ) / + + 40 + + 53 AS col2
----
62
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-48
SELECT CASE + + NULLIF ( 98, + - MIN( ALL + 19 ) * + 38 + AVG ( ALL CAST( NULL AS SIGNED ) ) + - COUNT( * ) * - - 89 + - 81 + + 77 + 88 * + COUNT( * ) * - 30 * - 7 * ( - 60 ) ) WHEN + - COUNT( * ) * 46 THEN - - ( 29 ) * - 12 END
----
NULL

skipif mysql # not compatible
query I rowsort label-48
SELECT CASE + + NULLIF ( 98, + - MIN ( ALL + 19 ) * + 38 + AVG ( ALL CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) * - - 89 + - 81 + + 77 + 88 * + COUNT ( * ) * - 30 * - 7 * ( - 60 ) ) WHEN + - COUNT ( * ) * 46 THEN - - ( 29 ) * - 12 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-49
SELECT COUNT( + 22 )
----
1

skipif mysql # not compatible
query I rowsort label-49
SELECT COUNT ( + 22 )
----
1

query I rowsort
SELECT + 68 * + + 0 * + 34 AS col2
----
0

query II rowsort
SELECT 17 * + + 37 - - 69 AS col2, 97 col0
----
698
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-52
SELECT ALL COUNT( * ) DIV - 3 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-52
SELECT ALL COUNT ( * ) / - 3 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-53
SELECT DISTINCT - 63 * - + CAST( NULL AS SIGNED ) * - 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-53
SELECT DISTINCT - 63 * - + CAST ( NULL AS INTEGER ) * - 99 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-54
SELECT DISTINCT 54 * - ( + 54 ) + + ( - 89 ) * + COUNT( * )
----
-3005

skipif mysql # not compatible
query I rowsort label-54
SELECT DISTINCT 54 * - ( + 54 ) + + ( - 89 ) * + COUNT ( * )
----
-3005

query I rowsort
SELECT ALL + 90 + NULLIF ( - + 74, 25 * - 78 )
----
16

query I rowsort
SELECT + 41 * - 49 - - COALESCE ( - 52, + + 48 )
----
-2061

onlyif mysql # aggregate syntax: 
query I rowsort label-57
SELECT ALL - MAX( + - 82 ) * + + 70 AS col2
----
5740

skipif mysql # not compatible
query I rowsort label-57
SELECT ALL - MAX ( + - 82 ) * + + 70 AS col2
----
5740

query I rowsort
SELECT DISTINCT 44 + + - 33 AS col2
----
11

query I rowsort
SELECT DISTINCT + 47 + - 68
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-60
SELECT ALL - MAX( - 14 ) + + 90 AS col2
----
104

skipif mysql # not compatible
query I rowsort label-60
SELECT ALL - MAX ( - 14 ) + + 90 AS col2
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-61
SELECT + + COUNT( * ) + + 73 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-61
SELECT + + COUNT ( * ) + + 73 AS col1
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-62
SELECT - + 2 AS col2, - COUNT( * )
----
-2
-1

skipif mysql # not compatible
query II rowsort label-62
SELECT - + 2 AS col2, - COUNT ( * )
----
-2
-1

query I rowsort
SELECT DISTINCT - - 0 * - - 29
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-64
SELECT - 22 col2, + MIN( + 81 ) DIV - - ( COUNT( * ) ) AS col2
----
-22
81

skipif mysql # not compatible
query II rowsort label-64
SELECT - 22 col2, + MIN ( + 81 ) / - - ( COUNT ( * ) ) AS col2
----
-22
81

onlyif mysql # aggregate syntax: 
query I rowsort label-65
SELECT - COUNT( DISTINCT + 71 ) + - - 33
----
32

skipif mysql # not compatible
query I rowsort label-65
SELECT - COUNT ( DISTINCT + 71 ) + - - 33
----
32

query I rowsort
SELECT ALL + 71 - + ( + + 98 ) + 4 AS col0
----
-23

query I rowsort
SELECT - 48 + - + ( - 36 ) AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-68
SELECT - - COUNT( * ) * - + ( + - 22 )
----
22

skipif mysql # not compatible
query I rowsort label-68
SELECT - - COUNT ( * ) * - + ( + - 22 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-69
SELECT - 75 + - - COUNT( * ) + + + SUM( DISTINCT + 64 )
----
-10

skipif mysql # not compatible
query I rowsort label-69
SELECT - 75 + - - COUNT ( * ) + + + SUM ( DISTINCT + 64 )
----
-10

query I rowsort
SELECT + + 52 * + - COALESCE ( - 6, + 70 * 61 - + ( - 74 ), - 91 ) AS col1
----
312

query I rowsort
SELECT ALL + 84 * + 99
----
8316

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-72
SELECT DISTINCT 1 DIV + 79 - + NULLIF ( + 43, + COUNT( * ) * 47 )
----
-43

skipif mysql # not compatible
query I rowsort label-72
SELECT DISTINCT 1 / + 79 - + NULLIF ( + 43, + COUNT ( * ) * 47 )
----
-43

query I rowsort
SELECT - 22 + 54 AS col2
----
32

query II rowsort
SELECT ALL + 75, 81 AS col2
----
75
81

query I rowsort
SELECT - 40 + + 82
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-76
SELECT - 99 DIV - - 39
----
-2

skipif mysql # not compatible
query I rowsort label-76
SELECT - 99 / - - 39
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-77
SELECT DISTINCT + 39 DIV 34 AS col1, COUNT( * ) + - 43 AS col1
----
1
-42

skipif mysql # not compatible
query II rowsort label-77
SELECT DISTINCT + 39 / 34 AS col1, COUNT ( * ) + - 43 AS col1
----
1
-42

query I rowsort
SELECT + 10 * + 88 * + - 33 AS col1
----
-29040

onlyif mysql # aggregate syntax: 
query I rowsort label-79
SELECT ALL + COALESCE ( + - ( - MAX( - 20 ) ), - + ( + 69 ) + 70 ) * + 54 + + COUNT( * )
----
-1079

skipif mysql # not compatible
query I rowsort label-79
SELECT ALL + COALESCE ( + - ( - MAX ( - 20 ) ), - + ( + 69 ) + 70 ) * + 54 + + COUNT ( * )
----
-1079

query I rowsort
SELECT - 80 + 60
----
-20

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

skipif mysql # not compatible
query I rowsort label-81
SELECT + ( + ( - - CAST ( NULL AS INTEGER ) ) ) col2
----
NULL

query II rowsort
SELECT ALL + 81 AS col1, 58 AS col1
----
81
58

query I rowsort
SELECT 21 * - 46 + + + 39 * + 53 + + 73 AS col2
----
1174

onlyif mysql # aggregate syntax: 
query I rowsort label-84
SELECT + 62 - + + ( + COUNT( * ) ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-84
SELECT + 62 - + + ( + COUNT ( * ) ) AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-85
SELECT ALL MIN( - 23 ) * - COUNT( * ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-85
SELECT ALL MIN ( - 23 ) * - COUNT ( * ) AS col2
----
23

query I rowsort
SELECT + CASE - 86 WHEN + - 96 THEN - - 69 WHEN 52 THEN NULL ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT + 9 * - 18
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-89
SELECT ALL 50 * + MAX( - - 72 ) + 76 - 45
----
3631

skipif mysql # not compatible
query I rowsort label-89
SELECT ALL 50 * + MAX ( - - 72 ) + 76 - 45
----
3631

query I rowsort
SELECT + 26 + ( - - 75 ) - 30 * + + 32 * - + 95 * + ( + + 29 ) + + 51 AS col0
----
2644952

query I rowsort
SELECT ALL + 49 * - - 92 * + 40
----
180320

onlyif mysql # aggregate syntax: 
query I rowsort label-92
SELECT ALL + COUNT( * ) * + 44 + + 74 * + ( - - 41 )
----
3078

skipif mysql # not compatible
query I rowsort label-92
SELECT ALL + COUNT ( * ) * + 44 + + 74 * + ( - - 41 )
----
3078

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-93
SELECT + 2 + - + 6 + - COALESCE ( 96, + CASE + 54 WHEN 18 THEN - - COUNT( * ) DIV 99 ELSE NULL END * + MAX( 93 ) * - COUNT( - 61 ), + 93 ) AS col1, 76 * + 51
----
-100
3876

skipif mysql # not compatible
query II rowsort label-93
SELECT + 2 + - + 6 + - COALESCE ( 96, + CASE + 54 WHEN 18 THEN - - COUNT ( * ) / 99 ELSE NULL END * + MAX ( 93 ) * - COUNT ( - 61 ), + 93 ) AS col1, 76 * + 51
----
-100
3876

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-94
SELECT DISTINCT - 16 * - - 25 + - + NULLIF ( + 75, - + 97 ) + - ( - 36 ) * - - 61 + + COUNT( * ) + 33 DIV + COALESCE ( - 12, - COUNT( * ) ) AS col1
----
1720

skipif mysql # not compatible
query I rowsort label-94
SELECT DISTINCT - 16 * - - 25 + - + NULLIF ( + 75, - + 97 ) + - ( - 36 ) * - - 61 + + COUNT ( * ) + 33 / + COALESCE ( - 12, - COUNT ( * ) ) AS col1
----
1720

query I rowsort
SELECT ALL + 32 * 5 + + 36 AS col2
----
196

onlyif mysql # aggregate syntax: 
query I rowsort label-96
SELECT + 29 + NULLIF ( CASE ( + 45 ) WHEN + 32 THEN + AVG ( 22 ) WHEN ( - COUNT( * ) ) - - + COUNT( * ) * + - 73 THEN - 59 * 32 ELSE NULL END, - 83 * + + 65 - - 91 + - COUNT( * ) / + 48 / - 28 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-96
SELECT + 29 + NULLIF ( CASE ( + 45 ) WHEN + 32 THEN + AVG ( 22 ) WHEN ( - COUNT ( * ) ) - - + COUNT ( * ) * + - 73 THEN - 59 * 32 ELSE NULL END, - 83 * + + 65 - - 91 + - COUNT ( * ) / + 48 / - 28 ) AS col1
----
NULL

query I rowsort
SELECT - 34 * - + 8 + - 10 + 87 * - 22
----
-1652

query I rowsort
SELECT 84 + ( - - 34 )
----
118

query I rowsort
SELECT ALL 73 * - 26 AS col0
----
-1898

onlyif mysql # DIV for integer division: 
query I rowsort label-100
SELECT DISTINCT - 24 DIV + 13 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-100
SELECT DISTINCT - 24 / + 13 AS col1
----
-1

query I rowsort
SELECT ALL + 60 * + - 81 AS col0
----
-4860

query I rowsort
SELECT ALL + - 35 - - 74
----
39

query I rowsort
SELECT ALL + 91 * - ( 43 ) + - - 67
----
-3846

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-104
SELECT 94 + + - COUNT( * ) * + + MAX( - CAST( - + 92 AS SIGNED ) ) DIV - 7 - - 68 + 69
----
244

skipif mysql # not compatible
query I rowsort label-104
SELECT 94 + + - COUNT ( * ) * + + MAX ( - CAST ( - + 92 AS INTEGER ) ) / - 7 - - 68 + 69
----
244

onlyif mysql # aggregate syntax: 
query I rowsort label-105
SELECT ALL + ( - COUNT( * ) ) - - COUNT( * ) * + + ( - 4 ) - - + 40
----
35

skipif mysql # not compatible
query I rowsort label-105
SELECT ALL + ( - COUNT ( * ) ) - - COUNT ( * ) * + + ( - 4 ) - - + 40
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-106
SELECT 43 * 11 DIV - + 23
----
-20

skipif mysql # not compatible
query I rowsort label-106
SELECT 43 * 11 / - + 23
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-107
SELECT - COUNT( * ) col1, 71
----
-1
71

skipif mysql # not compatible
query II rowsort label-107
SELECT - COUNT ( * ) col1, 71
----
-1
71

onlyif mysql # aggregate syntax: 
query I rowsort label-108
SELECT DISTINCT MAX( + + 59 ) col0
----
59

skipif mysql # not compatible
query I rowsort label-108
SELECT DISTINCT MAX ( + + 59 ) col0
----
59

query I rowsort
SELECT ALL + 52 * - - 84
----
4368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-110
SELECT ( + + CAST( NULL AS SIGNED ) ) * - + 14 * - 4 + + 37 + SUM( 80 ) / - CASE SUM( - 96 ) WHEN - + 99 + - 15 THEN NULL WHEN COUNT( * ) + + - 17 THEN - 50 * + COUNT( * ) - + COUNT( * ) WHEN + - 87 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-110
SELECT ( + + CAST ( NULL AS INTEGER ) ) * - + 14 * - 4 + + 37 + SUM ( 80 ) / - CASE SUM ( - 96 ) WHEN - + 99 + - 15 THEN NULL WHEN COUNT ( * ) + + - 17 THEN - 50 * + COUNT ( * ) - + COUNT ( * ) WHEN + - 87 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-111
SELECT 29 * + NULLIF ( + 59, + COUNT( * ) + ( + 25 ) ) AS col1
----
1711

skipif mysql # not compatible
query I rowsort label-111
SELECT 29 * + NULLIF ( + 59, + COUNT ( * ) + ( + 25 ) ) AS col1
----
1711

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-112
SELECT COUNT( * ) DIV ( 47 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-112
SELECT COUNT ( * ) / ( 47 ) AS col0
----
0

query I rowsort
SELECT 19 * + + 89
----
1691

onlyif mysql # aggregate syntax: 
query I rowsort label-114
SELECT ALL - MAX( ALL ( + 18 ) ) col2
----
-18

skipif mysql # not compatible
query I rowsort label-114
SELECT ALL - MAX ( ALL ( + 18 ) ) col2
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-115
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-115
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 26
----
NULL

query I rowsort
SELECT DISTINCT + ( 4 ) * + - 68
----
-272

onlyif mysql # DIV for integer division: 
query I rowsort label-117
SELECT 39 DIV 53
----
0

skipif mysql # not compatible
query I rowsort label-117
SELECT 39 / 53
----
0

query I rowsort
SELECT ALL + 90 + - 36 * - - 42 AS col2
----
-1422

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-119
SELECT ALL - CAST( + 43 AS SIGNED ) + + + CASE ( 31 ) WHEN - 89 THEN NULL WHEN 99 THEN 13 + - + 56 END
----
NULL

skipif mysql # not compatible
query I rowsort label-119
SELECT ALL - CAST ( + 43 AS INTEGER ) + + + CASE ( 31 ) WHEN - 89 THEN NULL WHEN 99 THEN 13 + - + 56 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-120
SELECT 63 * + 43 * 33 * 76 + COUNT( * ) AS col0
----
6794173

skipif mysql # not compatible
query I rowsort label-120
SELECT 63 * + 43 * 33 * 76 + COUNT ( * ) AS col0
----
6794173

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-121
SELECT 64 DIV - + COALESCE ( - + CAST( ( + ( 73 ) ) AS SIGNED ), 53, + - 77 ) AS col2, + 65 * + 73 AS col0
----
0
4745

skipif mysql # not compatible
query II rowsort label-121
SELECT 64 / - + COALESCE ( - + CAST ( ( + ( 73 ) ) AS INTEGER ), 53, + - 77 ) AS col2, + 65 * + 73 AS col0
----
0
4745

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-122
SELECT ALL - CAST( - + 58 AS SIGNED ) + COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-122
SELECT ALL - CAST ( - + 58 AS INTEGER ) + COUNT ( * )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-123
SELECT - ( - 20 ) * + COUNT( * ) + + 89
----
109

skipif mysql # not compatible
query I rowsort label-123
SELECT - ( - 20 ) * + COUNT ( * ) + + 89
----
109

onlyif mysql # aggregate syntax: 
query II rowsort label-124
SELECT ALL - MIN( DISTINCT - 28 ), + 24 * + 98 * - MIN( + + 89 ) AS col1
----
28
-209328

skipif mysql # not compatible
query II rowsort label-124
SELECT ALL - MIN ( DISTINCT - 28 ), + 24 * + 98 * - MIN ( + + 89 ) AS col1
----
28
-209328

onlyif mysql # aggregate syntax: 
query II rowsort label-125
SELECT + + ( 81 ), + MAX( 36 ) AS col0
----
81
36

skipif mysql # not compatible
query II rowsort label-125
SELECT + + ( 81 ), + MAX ( 36 ) AS col0
----
81
36

query I rowsort
SELECT 9 + - - 9
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-127
SELECT - 32 + CAST( NULL AS SIGNED ) + - 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-127
SELECT - 32 + CAST ( NULL AS INTEGER ) + - 71 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-128
SELECT ALL + + 92 - - 43 * - 85 DIV - 85 AS col1
----
135

skipif mysql # not compatible
query I rowsort label-128
SELECT ALL + + 92 - - 43 * - 85 / - 85 AS col1
----
135

query I rowsort
SELECT - CASE + 81 WHEN + 23 THEN + 33 * - 74 ELSE + + 57 END AS col1
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-130
SELECT ALL - CAST( NULL AS SIGNED ) - - 55 * - - 59 * - 74 / - 6 + + ( 26 ), 32 + + - MAX( - 19 ) - + - 27 AS col0
----
NULL
78

skipif mysql # not compatible
query II rowsort label-130
SELECT ALL - CAST ( NULL AS INTEGER ) - - 55 * - - 59 * - 74 / - 6 + + ( 26 ), 32 + + - MAX ( - 19 ) - + - 27 AS col0
----
NULL
78

query I rowsort
SELECT COALESCE ( ( 17 ), 61, + 72 * - 18 )
----
17

query I rowsort
SELECT + CASE - 32 WHEN - + 72 THEN - 10 ELSE NULL END
----
NULL

query I rowsort
SELECT - 4 * + - 78
----
312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-134
SELECT - - MIN( DISTINCT 57 ) AS col2, + 87 + - 52 * + CAST( + 53 AS SIGNED ) * - COUNT( * ) AS col0
----
57
2843

skipif mysql # not compatible
query II rowsort label-134
SELECT - - MIN ( DISTINCT 57 ) AS col2, + 87 + - 52 * + CAST ( + 53 AS INTEGER ) * - COUNT ( * ) AS col0
----
57
2843

onlyif mysql # DIV for integer division: 
query I rowsort label-135
SELECT ALL + 19 DIV + - 92 + + 25
----
25

skipif mysql # not compatible
query I rowsort label-135
SELECT ALL + 19 / + - 92 + + 25
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-136
SELECT CAST( NULL AS SIGNED ) * COALESCE ( COUNT( - 20 ), + COUNT( * ) * + CAST( + 2 AS SIGNED ), + - 34 )
----
NULL

skipif mysql # not compatible
query I rowsort label-136
SELECT CAST ( NULL AS INTEGER ) * COALESCE ( COUNT ( - 20 ), + COUNT ( * ) * + CAST ( + 2 AS INTEGER ), + - 34 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-137
SELECT DISTINCT - CASE COUNT( * ) WHEN ( - 43 ) THEN - 32 * 83 WHEN 81 * + 90 / + 38 + - + COUNT( * ) THEN 36 * + 44 - - 66 * - 6 / + - 50 + 81 ELSE + CASE + 39 WHEN - - 79 * + - 69 * - 7 + - 72 THEN NULL ELSE - COUNT( * ) * 52 - + 90 END END * 4 * + + MAX( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-137
SELECT DISTINCT - CASE COUNT ( * ) WHEN ( - 43 ) THEN - 32 * 83 WHEN 81 * + 90 / + 38 + - + COUNT ( * ) THEN 36 * + 44 - - 66 * - 6 / + - 50 + 81 ELSE + CASE + 39 WHEN - - 79 * + - 69 * - 7 + - 72 THEN NULL ELSE - COUNT ( * ) * 52 - + 90 END END * 4 * + + MAX ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-138
SELECT 23 + + 33 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-138
SELECT 23 + + 33 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-139
SELECT 94 DIV + - 57 col2
----
-1

skipif mysql # not compatible
query I rowsort label-139
SELECT 94 / + - 57 col2
----
-1

query I rowsort
SELECT 30 * + - 25 AS col0
----
-750

query I rowsort
SELECT 39 * + - 28 AS col2
----
-1092

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-142
SELECT 45 - - COUNT( * ) + 91 + + 98 DIV + 44 AS col2
----
139

skipif mysql # not compatible
query I rowsort label-142
SELECT 45 - - COUNT ( * ) + 91 + + 98 / + 44 AS col2
----
139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-143
SELECT - MIN( - 60 ) DIV + 99 * 57 + 74 * + + MIN( ALL - 94 ) + + 41
----
-6915

skipif mysql # not compatible
query I rowsort label-143
SELECT - MIN ( - 60 ) / + 99 * 57 + 74 * + + MIN ( ALL - 94 ) + + 41
----
-6915

onlyif mysql # aggregate syntax: 
query I rowsort label-144
SELECT + MAX( DISTINCT - 32 ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-144
SELECT + MAX ( DISTINCT - 32 ) AS col2
----
-32

query I rowsort
SELECT 45 + 77 AS col2
----
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-146
SELECT ALL - 94 * + + ( - 75 ) * SUM( - 28 ) - CAST( + 38 AS SIGNED ) * - MIN( - + 60 ) * MIN( - 59 ) - + 12 + 84 AS col1
----
-62808

skipif mysql # not compatible
query I rowsort label-146
SELECT ALL - 94 * + + ( - 75 ) * SUM ( - 28 ) - CAST ( + 38 AS INTEGER ) * - MIN ( - + 60 ) * MIN ( - 59 ) - + 12 + 84 AS col1
----
-62808

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-147
SELECT CASE COUNT( * ) WHEN CAST( NULL AS SIGNED ) THEN - + MAX( - COALESCE ( + + 69, + 51, - 42 ) ) / 65 WHEN - 64 THEN NULL END * - 54 * - 36 + - + 2 * NULLIF ( - SUM( DISTINCT + 98 ), 79 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-147
SELECT CASE COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) THEN - + MAX ( - COALESCE ( + + 69, + 51, - 42 ) ) / 65 WHEN - 64 THEN NULL END * - 54 * - 36 + - + 2 * NULLIF ( - SUM ( DISTINCT + 98 ), 79 ) col0
----
NULL

query I rowsort
SELECT ALL + 44 * + 29 + NULLIF ( - 86, - - 94 ) col1
----
1190

query I rowsort
SELECT DISTINCT + 4 * - 83 AS col2
----
-332

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

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

query I rowsort
SELECT - 73 * ( 8 ) * - 37 AS col0
----
21608

onlyif mysql # aggregate syntax: 
query II rowsort label-152
SELECT + 58 AS col2, MIN( ALL + - 61 ) + + 86 + - 99
----
58
-74

skipif mysql # not compatible
query II rowsort label-152
SELECT + 58 AS col2, MIN ( ALL + - 61 ) + + 86 + - 99
----
58
-74

query I rowsort
SELECT - COALESCE ( 70, + + 41, 55 ) + + 93 + - 69 * - 49
----
3404

onlyif mysql # aggregate syntax: 
query I rowsort label-154
SELECT ALL 44 * + + MIN( - - 96 ) - 38 * + 11
----
3806

skipif mysql # not compatible
query I rowsort label-154
SELECT ALL 44 * + + MIN ( - - 96 ) - 38 * + 11
----
3806

query I rowsort
SELECT - 25 * + 89 AS col1
----
-2225

onlyif mysql # DIV for integer division: 
query I rowsort label-156
SELECT ALL - + 27 * ( + - 88 ) DIV + 80 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-156
SELECT ALL - + 27 * ( + - 88 ) / + 80 AS col0
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-157
SELECT DISTINCT - + 93 DIV 5
----
-18

skipif mysql # not compatible
query I rowsort label-157
SELECT DISTINCT - + 93 / 5
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-158
SELECT - 52 + - COUNT( * ) * + SUM( DISTINCT - ( - COALESCE ( 67, - 45, 59 - - + 98 ) ) )
----
-119

skipif mysql # not compatible
query I rowsort label-158
SELECT - 52 + - COUNT ( * ) * + SUM ( DISTINCT - ( - COALESCE ( 67, - 45, 59 - - + 98 ) ) )
----
-119

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-159
SELECT - + CASE - 78 WHEN - - 72 + + - 58 + + + 22 THEN + + NULLIF ( 53, 79 * - 6 ) DIV + + COUNT( * ) * - 42 + - 12 - - - 3 * - ( - - 17 ) * - 25 ELSE - ( + - 91 ) END * + COALESCE ( 24, - 78 ), - 34 * + - 75 * - 8 * 8 - - COUNT( * ) * 86 * + + ( - 94 ) AS col2
----
-2184
-171284

skipif mysql # not compatible
query II rowsort label-159
SELECT - + CASE - 78 WHEN - - 72 + + - 58 + + + 22 THEN + + NULLIF ( 53, 79 * - 6 ) / + + COUNT ( * ) * - 42 + - 12 - - - 3 * - ( - - 17 ) * - 25 ELSE - ( + - 91 ) END * + COALESCE ( 24, - 78 ), - 34 * + - 75 * - 8 * 8 - - COUNT ( * ) * 86 * + + ( - 94 ) AS col2
----
-2184
-171284

query I rowsort
SELECT + + 83 * - 73 + ( 27 )
----
-6032

query I rowsort
SELECT - - 94 * + 59
----
5546

onlyif mysql # aggregate syntax: 
query II rowsort label-162
SELECT ALL - - 51 * MIN( - 38 ) AS col0, - 54 AS col1
----
-1938
-54

skipif mysql # not compatible
query II rowsort label-162
SELECT ALL - - 51 * MIN ( - 38 ) AS col0, - 54 AS col1
----
-1938
-54

query I rowsort
SELECT - 41 * - 20 + + - 65
----
755

onlyif mysql # aggregate syntax: 
query I rowsort label-164
SELECT DISTINCT ( ( - COUNT( * ) ) ) * - COALESCE ( - 92, + COUNT( * ), + COUNT( * ) ) * - 33
----
3036

skipif mysql # not compatible
query I rowsort label-164
SELECT DISTINCT ( ( - COUNT ( * ) ) ) * - COALESCE ( - 92, + COUNT ( * ), + COUNT ( * ) ) * - 33
----
3036

query I rowsort
SELECT DISTINCT + 89 * + 11
----
979

onlyif mysql # DIV for integer division: 
query II rowsort label-166
SELECT ALL 70 AS col1, - 69 DIV + 47
----
70
-1

skipif mysql # not compatible
query II rowsort label-166
SELECT ALL 70 AS col1, - 69 / + 47
----
70
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-167
SELECT + + 62 + - 98 * COUNT( - 99 )
----
-36

skipif mysql # not compatible
query I rowsort label-167
SELECT + + 62 + - 98 * COUNT ( - 99 )
----
-36

query I rowsort
SELECT ALL - + 47 * 11 + - 61 + 55 AS col2
----
-523

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-169
SELECT ALL + 85 col0, + NULLIF ( + 57, + COALESCE ( + 33, CASE CAST( NULL AS SIGNED ) WHEN - 91 THEN - 72 + - 3 * - + 86 - 89 END * - - 52 - - 18 ) + - COUNT( * ) * + + 56 * + COUNT( * ) - COUNT( * ) ) * + COUNT( ALL - - 51 ) AS col0
----
85
57

skipif mysql # not compatible
query II rowsort label-169
SELECT ALL + 85 col0, + NULLIF ( + 57, + COALESCE ( + 33, CASE CAST ( NULL AS INTEGER ) WHEN - 91 THEN - 72 + - 3 * - + 86 - 89 END * - - 52 - - 18 ) + - COUNT ( * ) * + + 56 * + COUNT ( * ) - COUNT ( * ) ) * + COUNT ( ALL - - 51 ) AS col0
----
85
57

query I rowsort
SELECT + - ( + 62 ) + - 61
----
-123

onlyif mysql # DIV for integer division: 
query I rowsort label-171
SELECT + 69 DIV + + 71
----
0

skipif mysql # not compatible
query I rowsort label-171
SELECT + 69 / + + 71
----
0

query I rowsort
SELECT ALL 75 + + + 16 AS col2
----
91

query I rowsort
SELECT + 87 + 61
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-174
SELECT DISTINCT 10 + - + 5 - + + 45 + + + 15 + + 53 + 56 - - - COUNT( + 20 ) + + - 10 * - 81 * - - ( + MIN( DISTINCT 66 ) ) * - 48 + + 91 - + MAX( ALL 49 )
----
-2565955

skipif mysql # not compatible
query I rowsort label-174
SELECT DISTINCT 10 + - + 5 - + + 45 + + + 15 + + 53 + 56 - - - COUNT ( + 20 ) + + - 10 * - 81 * - - ( + MIN ( DISTINCT 66 ) ) * - 48 + + 91 - + MAX ( ALL 49 )
----
-2565955

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-175
SELECT ALL ( - - CAST( NULL AS SIGNED ) ) + + 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-175
SELECT ALL ( - - CAST ( NULL AS INTEGER ) ) + + 97 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-176
SELECT ALL 45 + MIN( 87 )
----
132

skipif mysql # not compatible
query I rowsort label-176
SELECT ALL 45 + MIN ( 87 )
----
132

query I rowsort
SELECT + 51 * - + 92 AS col1
----
-4692

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-178
SELECT DISTINCT - COUNT( * ) DIV - 22 AS col1, 24 AS col1
----
0
24

skipif mysql # not compatible
query II rowsort label-178
SELECT DISTINCT - COUNT ( * ) / - 22 AS col1, 24 AS col1
----
0
24

query I rowsort
SELECT ALL ( + 7 ) col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-180
SELECT ALL COUNT( * ) + + + 17 * - 58
----
-985

skipif mysql # not compatible
query I rowsort label-180
SELECT ALL COUNT ( * ) + + + 17 * - 58
----
-985

query I rowsort
SELECT - 15 * + 62 * + 91 AS col1
----
-84630

onlyif mysql # aggregate syntax: 
query I rowsort label-182
SELECT - MAX( DISTINCT 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-182
SELECT - MAX ( DISTINCT 62 )
----
-62

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-183
SELECT CAST( + 15 AS SIGNED ), 28 + - + CASE - CAST( 95 AS SIGNED ) WHEN + - 81 + - ( - 36 ) THEN - 20 DIV 55 - + 24 ELSE 38 END AS col1
----
15
-10

skipif mysql # not compatible
query II rowsort label-183
SELECT CAST ( + 15 AS INTEGER ), 28 + - + CASE - CAST ( 95 AS INTEGER ) WHEN + - 81 + - ( - 36 ) THEN - 20 / 55 - + 24 ELSE 38 END AS col1
----
15
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-184
SELECT DISTINCT 3 * 68 * COUNT( * ) * - COUNT( * ) AS col0
----
-204

skipif mysql # not compatible
query I rowsort label-184
SELECT DISTINCT 3 * 68 * COUNT ( * ) * - COUNT ( * ) AS col0
----
-204

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-185
SELECT + 67 DIV COUNT( * ), + COUNT( * ) AS col2
----
67
1

skipif mysql # not compatible
query II rowsort label-185
SELECT + 67 / COUNT ( * ), + COUNT ( * ) AS col2
----
67
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-186
SELECT + COUNT( + - 61 ) DIV - 2
----
0

skipif mysql # not compatible
query I rowsort label-186
SELECT + COUNT ( + - 61 ) / - 2
----
0

query I rowsort
SELECT DISTINCT 67 * 65 AS col1
----
4355

onlyif mysql # aggregate syntax: 
query I rowsort label-188
SELECT ALL 25 * + - 99 - MIN( + + 80 )
----
-2555

skipif mysql # not compatible
query I rowsort label-188
SELECT ALL 25 * + - 99 - MIN ( + + 80 )
----
-2555

onlyif mysql # aggregate syntax: 
query I rowsort label-189
SELECT DISTINCT + COUNT( - 90 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-189
SELECT DISTINCT + COUNT ( - 90 ) AS col0
----
1

query I rowsort
SELECT + + NULLIF ( 48, - 73 + - 49 * + + 5 )
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-191
SELECT - ( 70 ) AS col1, + 5 * + 51 * 18 * + + CASE + - MIN( 15 ) WHEN - - COUNT( * ) + + 64 THEN + 30 / + 50 - - 96 + - ( - 74 ) + - + 41 WHEN 5 + ( - - ( 86 ) ) THEN NULL WHEN + ( - AVG ( ALL - 40 ) ) * 22 * ( + 66 ) + ( 65 ) * + 81 * 85 + 55 THEN + + 69 + 36 ELSE NULL END / + + COUNT( * ) - + COUNT( * ) + + - 3
----
-70
NULL

skipif mysql # not compatible
query II rowsort label-191
SELECT - ( 70 ) AS col1, + 5 * + 51 * 18 * + + CASE + - MIN ( 15 ) WHEN - - COUNT ( * ) + + 64 THEN + 30 / + 50 - - 96 + - ( - 74 ) + - + 41 WHEN 5 + ( - - ( 86 ) ) THEN NULL WHEN + ( - AVG ( ALL - 40 ) ) * 22 * ( + 66 ) + ( 65 ) * + 81 * 85 + 55 THEN + + 69 + 36 ELSE NULL END / + + COUNT ( * ) - + COUNT ( * ) + + - 3
----
-70
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-192
SELECT + NULLIF ( SUM( DISTINCT 28 ), + 47 ), 99 AS col1
----
28
99

skipif mysql # not compatible
query II rowsort label-192
SELECT + NULLIF ( SUM ( DISTINCT 28 ), + 47 ), 99 AS col1
----
28
99

query I rowsort
SELECT + + NULLIF ( 34, 11 ) * - 56
----
-1904

query I rowsort
SELECT - + NULLIF ( - - 45, 90 ) * - NULLIF ( + + 85, - ( 17 ) ) AS col0
----
3825

query I rowsort
SELECT + - 7 * + 92 + - 92 + + 43 AS col1
----
-693

onlyif mysql # aggregate syntax: 
query I rowsort label-196
SELECT DISTINCT - + COUNT( * ) * + - 64 * 13 AS col1
----
832

skipif mysql # not compatible
query I rowsort label-196
SELECT DISTINCT - + COUNT ( * ) * + - 64 * 13 AS col1
----
832

query I rowsort
SELECT + + 74 + + - 25 AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-198
SELECT - 25 * - COUNT( * ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-198
SELECT - 25 * - COUNT ( * ) AS col1
----
25

query I rowsort
SELECT ALL 95 * - 42
----
-3990

onlyif mysql # aggregate syntax: 
query II rowsort label-200
SELECT ALL + - COUNT( - 33 ) AS col0, - 30 * - 26
----
-1
780

skipif mysql # not compatible
query II rowsort label-200
SELECT ALL + - COUNT ( - 33 ) AS col0, - 30 * - 26
----
-1
780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-201
SELECT ALL - + 7 * 79 - - CAST( + - 61 AS SIGNED ) * - 4 + - + 17 * 72 * - 25 AS col1
----
30291

skipif mysql # not compatible
query I rowsort label-201
SELECT ALL - + 7 * 79 - - CAST ( + - 61 AS INTEGER ) * - 4 + - + 17 * 72 * - 25 AS col1
----
30291

query I rowsort
SELECT DISTINCT - 85 * - + 57 + - 38 AS col1
----
4807

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

skipif mysql # not compatible
query I rowsort label-203
SELECT ALL + MAX ( - - 52 ) AS col1
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-204
SELECT - + COUNT( * ) * COALESCE ( - - 97, 48 ) * 78 + + CAST( NULL AS SIGNED ) + - 34, - COUNT( * ) AS col2
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-204
SELECT - + COUNT ( * ) * COALESCE ( - - 97, 48 ) * 78 + + CAST ( NULL AS INTEGER ) + - 34, - COUNT ( * ) AS col2
----
NULL
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-205
SELECT - NULLIF ( - 73, 19 * 51 ) DIV + 99
----
0

skipif mysql # not compatible
query I rowsort label-205
SELECT - NULLIF ( - 73, 19 * 51 ) / + 99
----
0

query I rowsort
SELECT - 40 + + 3
----
-37

query I rowsort
SELECT DISTINCT + 76 + + + 68
----
144

query II rowsort
SELECT DISTINCT - ( - 64 ) + - ( 88 ) + - - 75, 42 AS col0
----
51
42

query I rowsort
SELECT ALL + 94 + + 50 AS col1
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-210
SELECT ALL - 3 * - ( + COUNT( * ) )
----
3

skipif mysql # not compatible
query I rowsort label-210
SELECT ALL - 3 * - ( + COUNT ( * ) )
----
3

query I rowsort
SELECT ALL - 31 * - ( + 17 )
----
527

onlyif mysql # aggregate syntax: 
query I rowsort label-212
SELECT ALL 22 + ( 51 ) + - 1 * - CASE 79 WHEN + 96 THEN NULL WHEN - COUNT( * ) + - 11 THEN - - ( + COUNT( * ) ) ELSE - COUNT( * ) * + 88 + - 29 END AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-212
SELECT ALL 22 + ( 51 ) + - 1 * - CASE 79 WHEN + 96 THEN NULL WHEN - COUNT ( * ) + - 11 THEN - - ( + COUNT ( * ) ) ELSE - COUNT ( * ) * + 88 + - 29 END AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-213
SELECT - 27 - + - COALESCE ( - 12, NULLIF ( - + 37, + + NULLIF ( 12, + - COALESCE ( + COUNT( * ), - 7, + + MAX( ALL - - 27 ) + 58 ) ) / 34 * 39 * + 74 ) * - 37 + + + ( - 28 ) + + SUM( + ( - + 68 ) ) + COUNT( * ) * + 89 + + COUNT( * ) ) * - 4 * - + 6 * 27 + 68 AS col1
----
-7735

skipif mysql # not compatible
query I rowsort label-213
SELECT - 27 - + - COALESCE ( - 12, NULLIF ( - + 37, + + NULLIF ( 12, + - COALESCE ( + COUNT ( * ), - 7, + + MAX ( ALL - - 27 ) + 58 ) ) / 34 * 39 * + 74 ) * - 37 + + + ( - 28 ) + + SUM ( + ( - + 68 ) ) + COUNT ( * ) * + 89 + + COUNT ( * ) ) * - 4 * - + 6 * 27 + 68 AS col1
----
-7735

query I rowsort
SELECT ALL + 58 + 64 AS col0
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-215
SELECT - COALESCE ( 96, COUNT( ALL - 75 ) * 9, - ( - 3 ), 80 * - 82 ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-215
SELECT - COALESCE ( 96, COUNT ( ALL - 75 ) * 9, - ( - 3 ), 80 * - 82 ) AS col0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-216
SELECT - 91 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-216
SELECT - 91 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-217
SELECT 63 AS col2, + CAST( NULL AS SIGNED ) + + COUNT( * ) AS col1
----
63
NULL

skipif mysql # not compatible
query II rowsort label-217
SELECT 63 AS col2, + CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col1
----
63
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-218
SELECT COUNT( * ) + + + ( - COUNT( * ) ) * - 22 + - 30 DIV + 62 AS col2, + ( + 10 )
----
23
10

skipif mysql # not compatible
query II rowsort label-218
SELECT COUNT ( * ) + + + ( - COUNT ( * ) ) * - 22 + - 30 / + 62 AS col2, + ( + 10 )
----
23
10

query I rowsort
SELECT ALL 55 - - 23 AS col1
----
78

query I rowsort
SELECT DISTINCT 90 * 44
----
3960

onlyif mysql # aggregate syntax: 
query I rowsort label-221
SELECT COUNT( + 36 ) * + - 52 + + 99 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-221
SELECT COUNT ( + 36 ) * + - 52 + + 99 AS col1
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-222
SELECT ALL + 69 DIV - 69
----
-1

skipif mysql # not compatible
query I rowsort label-222
SELECT ALL + 69 / - 69
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-223
SELECT CAST( NULL AS SIGNED ) * - AVG ( ALL 17 ) + 0 * ( 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-223
SELECT CAST ( NULL AS INTEGER ) * - AVG ( ALL 17 ) + 0 * ( 78 )
----
NULL

query I rowsort
SELECT 60 * 75 AS col1
----
4500

onlyif mysql # aggregate syntax: 
query I rowsort label-225
SELECT SUM( 34 ) * - ( + 79 * 58 )
----
-155788

skipif mysql # not compatible
query I rowsort label-225
SELECT SUM ( 34 ) * - ( + 79 * 58 )
----
-155788

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-226
SELECT ( - COUNT( * ) ) DIV - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-226
SELECT ( - COUNT ( * ) ) / - COUNT ( * ) AS col1
----
1

query I rowsort
SELECT 85 * - 94 AS col2
----
-7990

query I rowsort
SELECT ALL 12 + + 5 AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-229
SELECT DISTINCT - SUM( ALL + ( 27 ) )
----
-27

skipif mysql # not compatible
query I rowsort label-229
SELECT DISTINCT - SUM ( ALL + ( 27 ) )
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-230
SELECT ALL + CAST( 86 AS SIGNED ) + + 71 * 88 AS col1
----
6334

skipif mysql # not compatible
query I rowsort label-230
SELECT ALL + CAST ( 86 AS INTEGER ) + + 71 * 88 AS col1
----
6334

onlyif mysql # aggregate syntax: 
query I rowsort label-231
SELECT ALL - ( - 90 ) + - 29 * - COUNT( * ) AS col1
----
119

skipif mysql # not compatible
query I rowsort label-231
SELECT ALL - ( - 90 ) + - 29 * - COUNT ( * ) AS col1
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-232
SELECT DISTINCT - MIN( DISTINCT + 51 ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-232
SELECT DISTINCT - MIN ( DISTINCT + 51 ) AS col1
----
-51

query I rowsort
SELECT 26 * 12 + - 4 * + 65 AS col1
----
52

query I rowsort
SELECT NULLIF ( 34, + 78 / + 61 ) * + 34
----
1156

onlyif mysql # aggregate syntax: 
query I rowsort label-235
SELECT COALESCE ( + 3, 62 + - 97 * + COUNT( * ), COUNT( * ), + 17 ) + - 39
----
-36

skipif mysql # not compatible
query I rowsort label-235
SELECT COALESCE ( + 3, 62 + - 97 * + COUNT ( * ), COUNT ( * ), + 17 ) + - 39
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-236
SELECT DISTINCT + ( + COUNT( * ) ) + 96 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-236
SELECT DISTINCT + ( + COUNT ( * ) ) + 96 AS col0
----
97

query I rowsort
SELECT DISTINCT 75 + - 50
----
25

query I rowsort
SELECT ALL - 8 - + 86
----
-94

query I rowsort
SELECT ( - 8 ) * + 98 AS col0
----
-784

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-240
SELECT 64 + ( - 53 + + 83 ) DIV COUNT( * ) col0
----
94

skipif mysql # not compatible
query I rowsort label-240
SELECT 64 + ( - 53 + + 83 ) / COUNT ( * ) col0
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-241
SELECT ALL + 63 DIV 59 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-241
SELECT ALL + 63 / 59 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-242
SELECT CAST( NULL AS SIGNED ) / 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-242
SELECT CAST ( NULL AS INTEGER ) / 28 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-243
SELECT DISTINCT + 45 DIV + 30 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-243
SELECT DISTINCT + 45 / + 30 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-244
SELECT MAX( ALL 99 ) * 7
----
693

skipif mysql # not compatible
query I rowsort label-244
SELECT MAX ( ALL 99 ) * 7
----
693

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-245
SELECT MIN( DISTINCT - 26 ) + 78 * CAST( - 9 + ( CAST( NULL AS SIGNED ) ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-245
SELECT MIN ( DISTINCT - 26 ) + 78 * CAST ( - 9 + ( CAST ( NULL AS INTEGER ) ) AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 27 - - 98 * 94 AS col2
----
9239

query I rowsort
SELECT ALL - 73 * CASE 18 WHEN 89 + 48 THEN - 38 ELSE - 89 END AS col0
----
6497

query I rowsort
SELECT 70 * 8 AS col0
----
560

query I rowsort
SELECT DISTINCT - 55 * 17
----
-935

query I rowsort
SELECT DISTINCT + 82 * 57 AS col2
----
4674

onlyif mysql # aggregate syntax: 
query I rowsort label-251
SELECT DISTINCT MIN( ALL + 85 ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-251
SELECT DISTINCT MIN ( ALL + 85 ) AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-252
SELECT DISTINCT + - COUNT( * ) * + 87 AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-252
SELECT DISTINCT + - COUNT ( * ) * + 87 AS col0
----
-87

query I rowsort
SELECT - 32 * 26 col2
----
-832

query I rowsort
SELECT ALL + 12 + 90
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-255
SELECT DISTINCT 29 DIV + 59 col1
----
0

skipif mysql # not compatible
query I rowsort label-255
SELECT DISTINCT 29 / + 59 col1
----
0

query I rowsort
SELECT + 98 * + 26
----
2548

onlyif mysql # aggregate syntax: 
query I rowsort label-257
SELECT ALL + CASE 38 WHEN COUNT( ALL - 93 ) THEN NULL WHEN + 61 THEN 18 END + - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-257
SELECT ALL + CASE 38 WHEN COUNT ( ALL - 93 ) THEN NULL WHEN + 61 THEN 18 END + - 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-258
SELECT DISTINCT COUNT( * ) + + SUM( - 7 )
----
-6

skipif mysql # not compatible
query I rowsort label-258
SELECT DISTINCT COUNT ( * ) + + SUM ( - 7 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-259
SELECT ALL - SUM( DISTINCT 29 ) + + NULLIF ( - ( - ( + 89 ) ), 91 )
----
60

skipif mysql # not compatible
query I rowsort label-259
SELECT ALL - SUM ( DISTINCT 29 ) + + NULLIF ( - ( - ( + 89 ) ), 91 )
----
60

query I rowsort
SELECT 66 * - 82 - 91 AS col2
----
-5503

query I rowsort
SELECT DISTINCT + ( 31 ) * + 47
----
1457

query I rowsort
SELECT 47 * ( + 73 ) col0
----
3431

onlyif mysql # aggregate syntax: 
query I rowsort label-263
SELECT + - MIN( ALL + 28 ) col1
----
-28

skipif mysql # not compatible
query I rowsort label-263
SELECT + - MIN ( ALL + 28 ) col1
----
-28

query I rowsort
SELECT DISTINCT - 69 + 4
----
-65

query I rowsort
SELECT ALL 18 + 82 AS col1
----
100

query I rowsort
SELECT NULLIF ( 56, + 77 )
----
56

query I rowsort
SELECT ALL ( 98 ) + 46
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-268
SELECT - 82 * + CAST( NULL AS SIGNED ) + 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-268
SELECT - 82 * + CAST ( NULL AS INTEGER ) + 5 AS col2
----
NULL

query I rowsort
SELECT 70 * - 46
----
-3220

onlyif mysql # aggregate syntax: 
query I rowsort label-270
SELECT - COUNT( * ) + + 8 * 26
----
207

skipif mysql # not compatible
query I rowsort label-270
SELECT - COUNT ( * ) + + 8 * 26
----
207

onlyif mysql # DIV for integer division: 
query I rowsort label-271
SELECT DISTINCT ( 47 ) DIV ( 86 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-271
SELECT DISTINCT ( 47 ) / ( 86 ) AS col1
----
0

query I rowsort
SELECT ALL 81 - + 77 * 53
----
-4000

onlyif mysql # aggregate syntax: 
query I rowsort label-273
SELECT - SUM( DISTINCT - 72 ) * - 43 + - 72 AS col0
----
-3168

skipif mysql # not compatible
query I rowsort label-273
SELECT - SUM ( DISTINCT - 72 ) * - 43 + - 72 AS col0
----
-3168

query I rowsort
SELECT 58 + 20 * 51 AS col1
----
1078

onlyif mysql # DIV for integer division: 
query I rowsort label-275
SELECT - COALESCE ( + 34, 90 * 26 + 80 DIV 34 ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-275
SELECT - COALESCE ( + 34, 90 * 26 + 80 / 34 ) AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-276
SELECT + 92 - COUNT( * ) + ( 20 ) * 78 AS col1
----
1651

skipif mysql # not compatible
query I rowsort label-276
SELECT + 92 - COUNT ( * ) + ( 20 ) * 78 AS col1
----
1651

onlyif mysql # aggregate syntax: 
query I rowsort label-277
SELECT + MIN( 90 ) * 83
----
7470

skipif mysql # not compatible
query I rowsort label-277
SELECT + MIN ( 90 ) * 83
----
7470

onlyif mysql # aggregate syntax: 
query I rowsort label-278
SELECT + MAX( ALL - + 55 ) + ( - 53 + - 16 ) AS col1
----
-124

skipif mysql # not compatible
query I rowsort label-278
SELECT + MAX ( ALL - + 55 ) + ( - 53 + - 16 ) AS col1
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-279
SELECT DISTINCT 80 * + + COUNT( * ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-279
SELECT DISTINCT 80 * + + COUNT ( * ) AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-280
SELECT ALL MAX( + + 96 )
----
96

skipif mysql # not compatible
query I rowsort label-280
SELECT ALL MAX ( + + 96 )
----
96

query I rowsort
SELECT + ( - NULLIF ( - 11, 18 * 35 + 45 ) ) - - 29 AS col2
----
40

query I rowsort
SELECT DISTINCT 44 * - - 55 AS col0
----
2420

onlyif mysql # aggregate syntax: 
query I rowsort label-283
SELECT - COUNT( * ) - - 96 + COUNT( * ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-283
SELECT - COUNT ( * ) - - 96 + COUNT ( * ) AS col2
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-284
SELECT - COALESCE ( + 5, 56, 11 DIV 7 ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-284
SELECT - COALESCE ( + 5, 56, 11 / 7 ) AS col2
----
-5

query I rowsort
SELECT ALL + 69 + 40
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-286
SELECT + MAX( ALL + 24 ) + - COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-286
SELECT + MAX ( ALL + 24 ) + - COUNT ( * )
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-287
SELECT - COALESCE ( - CAST( 82 AS SIGNED ), - 82 + CAST( NULL AS SIGNED ) ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-287
SELECT - COALESCE ( - CAST ( 82 AS INTEGER ), - 82 + CAST ( NULL AS INTEGER ) ) AS col1
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-288
SELECT - 43 DIV 49 col1
----
0

skipif mysql # not compatible
query I rowsort label-288
SELECT - 43 / 49 col1
----
0

query I rowsort
SELECT + + 36 + 23
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-290
SELECT - + 30 - 26 + - ( 99 ) * ( COUNT( DISTINCT + 5 ) * + MIN( ALL + 41 + 83 ) )
----
-12332

skipif mysql # not compatible
query I rowsort label-290
SELECT - + 30 - 26 + - ( 99 ) * ( COUNT ( DISTINCT + 5 ) * + MIN ( ALL + 41 + 83 ) )
----
-12332

query I rowsort
SELECT ALL + 67 + - 80 col2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-292
SELECT - - MAX( + - ( 59 ) ) + COUNT( ALL 54 ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-292
SELECT - - MAX ( + - ( 59 ) ) + COUNT ( ALL 54 ) AS col0
----
-58

query I rowsort
SELECT ALL - - 42 * - 83 * 90 AS col0
----
-313740

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-294
SELECT - + CAST( - 61 AS SIGNED ) + 53 AS col0
----
114

skipif mysql # not compatible
query I rowsort label-294
SELECT - + CAST ( - 61 AS INTEGER ) + 53 AS col0
----
114

query I rowsort
SELECT ALL COALESCE ( + 46, 2 * 29 ) * - 44 + + 36 AS col1
----
-1988

onlyif mysql # aggregate syntax: 
query I rowsort label-296
SELECT ALL - 16 * + 57 + - MAX( ALL + 36 + 63 )
----
-1011

skipif mysql # not compatible
query I rowsort label-296
SELECT ALL - 16 * + 57 + - MAX ( ALL + 36 + 63 )
----
-1011

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-297
SELECT ALL + 8 * + 64 + + COUNT( * ) DIV - 88
----
512

skipif mysql # not compatible
query I rowsort label-297
SELECT ALL + 8 * + 64 + + COUNT ( * ) / - 88
----
512

onlyif mysql # aggregate syntax: 
query I rowsort label-298
SELECT - COALESCE ( + 55, 46, + 94 ) + - MIN( - 58 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-298
SELECT - COALESCE ( + 55, 46, + 94 ) + - MIN ( - 58 ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-299
SELECT ALL + - ( - - COUNT( * ) ) * - 84
----
84

skipif mysql # not compatible
query I rowsort label-299
SELECT ALL + - ( - - COUNT ( * ) ) * - 84
----
84

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-300
SELECT ALL + - COALESCE ( - 80, CASE - MAX( DISTINCT 50 ) WHEN CAST( + COUNT( * ) AS DECIMAL ) THEN + 48 END, + 42 + - 84 * - COUNT( * ) )
----
80

skipif mysql # not compatible
query I rowsort label-300
SELECT ALL + - COALESCE ( - 80, CASE - MAX ( DISTINCT 50 ) WHEN CAST ( + COUNT ( * ) AS REAL ) THEN + 48 END, + 42 + - 84 * - COUNT ( * ) )
----
80

query I rowsort
SELECT DISTINCT - + 55 * + 5 * 6 + + 74 AS col2
----
-1576

query I rowsort
SELECT DISTINCT + + ( + 23 ) AS col1
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-303
SELECT ALL + 79 * + + CAST( - ( CAST( 55 AS SIGNED ) ) AS SIGNED ) + 46 + 40 * - 66 AS col0
----
-6939

skipif mysql # not compatible
query I rowsort label-303
SELECT ALL + 79 * + + CAST ( - ( CAST ( 55 AS INTEGER ) ) AS INTEGER ) + 46 + 40 * - 66 AS col0
----
-6939

onlyif mysql # aggregate syntax: 
query I rowsort label-304
SELECT - + COUNT( * ) * - SUM( + 83 ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-304
SELECT - + COUNT ( * ) * - SUM ( + 83 ) AS col2
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-305
SELECT - 46 + COALESCE ( + 69, COALESCE ( - 93, 42 * 20 ) DIV 16, + CAST( ( + CASE - 85 WHEN + 50 THEN COUNT( * ) WHEN + 77 - + 12 * 81 THEN 98 ELSE NULL END ) AS SIGNED ) ) * - COALESCE ( COALESCE ( COUNT( * ), 6 DIV - COUNT( * ) ), - COUNT( * ), - 98 ) AS col0
----
-115

skipif mysql # not compatible
query I rowsort label-305
SELECT - 46 + COALESCE ( + 69, COALESCE ( - 93, 42 * 20 ) / 16, + CAST ( ( + CASE - 85 WHEN + 50 THEN COUNT ( * ) WHEN + 77 - + 12 * 81 THEN 98 ELSE NULL END ) AS INTEGER ) ) * - COALESCE ( COALESCE ( COUNT ( * ), 6 / - COUNT ( * ) ), - COUNT ( * ), - 98 ) AS col0
----
-115

query I rowsort
SELECT ALL - + 70 * 97 * 8 - - 11
----
-54309

onlyif mysql # aggregate syntax: 
query I rowsort label-307
SELECT DISTINCT COUNT( * ) * - - MIN( 38 )
----
38

skipif mysql # not compatible
query I rowsort label-307
SELECT DISTINCT COUNT ( * ) * - - MIN ( 38 )
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-308
SELECT - 35 DIV MIN( 71 ) * + 75
----
0

skipif mysql # not compatible
query I rowsort label-308
SELECT - 35 / MIN ( 71 ) * + 75
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-309
SELECT ALL - CAST( + CAST( + 26 AS SIGNED ) AS SIGNED ) / + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-309
SELECT ALL - CAST ( + CAST ( + 26 AS INTEGER ) AS INTEGER ) / + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-310
SELECT ALL 99 * 94 * + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-310
SELECT ALL 99 * 94 * + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 4 + - 32 * + 80
----
-2556

query I rowsort
SELECT DISTINCT - 63 * + - 73 AS col2
----
4599

query I rowsort
SELECT CASE - 92 WHEN - 42 THEN NULL WHEN - 37 THEN - 21 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL + ( - 48 )
----
-48

query I rowsort
SELECT ALL 45 * + 46
----
2070

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-316
SELECT - 51 DIV + COUNT( * ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-316
SELECT - 51 / + COUNT ( * ) AS col0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-317
SELECT COUNT( * ) * + 55 + - + 42 + + ( 50 ) * ( - COUNT( DISTINCT - 7 ) )
----
-37

skipif mysql # not compatible
query I rowsort label-317
SELECT COUNT ( * ) * + 55 + - + 42 + + ( 50 ) * ( - COUNT ( DISTINCT - 7 ) )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-318
SELECT - COUNT( * ) - - 29 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-318
SELECT - COUNT ( * ) - - 29 AS col1
----
28

query I rowsort
SELECT + ( + - 69 ) * + 83 * NULLIF ( 3, - 15 ) AS col1
----
-17181

query I rowsort
SELECT ALL - 45 * + 65 AS col1
----
-2925

onlyif mysql # DIV for integer division: 
query I rowsort label-321
SELECT + 21 DIV - 83 * + 58 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-321
SELECT + 21 / - 83 * + 58 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-322
SELECT + ( - 80 ) * - - 91 + COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-322
SELECT + ( - 80 ) * - - 91 + COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 38 + - 40
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-324
SELECT + ( - COUNT( * ) ) * - COALESCE ( + COUNT( * ), 28 - 78 * + 50 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-324
SELECT + ( - COUNT ( * ) ) * - COALESCE ( + COUNT ( * ), 28 - 78 * + 50 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-325
SELECT ALL MAX( DISTINCT - CAST( NULL AS SIGNED ) ) + - 40 + - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-325
SELECT ALL MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) + - 40 + - 75
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-326
SELECT - CASE + - 96 WHEN + 8 THEN ( + ( - 49 ) ) + - 33 WHEN + CAST( NULL AS SIGNED ) THEN + MIN( - 12 ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-326
SELECT - CASE + - 96 WHEN + 8 THEN ( + ( - 49 ) ) + - 33 WHEN + CAST ( NULL AS INTEGER ) THEN + MIN ( - 12 ) END col1
----
NULL

query I rowsort
SELECT - 61 + - 97 AS col0
----
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-328
SELECT DISTINCT MIN( DISTINCT + - 28 ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-328
SELECT DISTINCT MIN ( DISTINCT + - 28 ) AS col1
----
-28

query I rowsort
SELECT ALL 25 * 72 * 71 * 15
----
1917000

query I rowsort
SELECT + 31 * - + 10 * 55
----
-17050

query I rowsort
SELECT ALL 23 + 28 * - 91
----
-2525

query II rowsort
SELECT - 43 AS col2, - 64
----
-43
-64

query I rowsort
SELECT ALL + - 78 + 92
----
14

onlyif mysql # DIV for integer division: 
query II rowsort label-334
SELECT - - 8 AS col2, 6 + + 49 DIV 52 AS col2
----
8
6

skipif mysql # not compatible
query II rowsort label-334
SELECT - - 8 AS col2, 6 + + 49 / 52 AS col2
----
8
6

query I rowsort
SELECT ALL 50 * 86 col1
----
4300

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-336
SELECT DISTINCT 68 + + 62 + - + CAST( NULL AS DECIMAL ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-336
SELECT DISTINCT 68 + + 62 + - + CAST ( NULL AS REAL ) * COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 44 + 25 + - 24 AS col1
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-338
SELECT - SUM( ( + + CAST( NULL AS SIGNED ) ) ) * 90 - 18 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-338
SELECT - SUM ( ( + + CAST ( NULL AS INTEGER ) ) ) * 90 - 18 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-339
SELECT - COUNT( * ) * + + 73 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-339
SELECT - COUNT ( * ) * + + 73 AS col0
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-340
SELECT ALL - - CASE - 74 WHEN - 5 THEN - 76 WHEN - 76 + - MIN( DISTINCT 6 ) THEN NULL END / - CAST( 46 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-340
SELECT ALL - - CASE - 74 WHEN - 5 THEN - 76 WHEN - 76 + - MIN ( DISTINCT 6 ) THEN NULL END / - CAST ( 46 AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-341
SELECT - + 61 DIV + 88 - - 73
----
73

skipif mysql # not compatible
query I rowsort label-341
SELECT - + 61 / + 88 - - 73
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-342
SELECT ALL - 19 * - ( - COALESCE ( - 73, + COUNT( * ), + CAST( NULL AS SIGNED ) ) ) AS col2
----
1387

skipif mysql # not compatible
query I rowsort label-342
SELECT ALL - 19 * - ( - COALESCE ( - 73, + COUNT ( * ), + CAST ( NULL AS INTEGER ) ) ) AS col2
----
1387

onlyif mysql # aggregate syntax: 
query I rowsort label-343
SELECT DISTINCT + + COALESCE ( COUNT( * ), - 40 * 66 + NULLIF ( + 60 + 62, + MAX( ALL + 86 ) * 88 - CASE COUNT( - 33 ) WHEN + 62 / - 1 THEN ( - 41 ) * 33 - + 29 END ), COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-343
SELECT DISTINCT + + COALESCE ( COUNT ( * ), - 40 * 66 + NULLIF ( + 60 + 62, + MAX ( ALL + 86 ) * 88 - CASE COUNT ( - 33 ) WHEN + 62 / - 1 THEN ( - 41 ) * 33 - + 29 END ), COUNT ( * ) )
----
1

query I rowsort
SELECT DISTINCT + ( 74 ) AS col0
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-345
SELECT ALL 10 DIV - 97 + 64 * 33 - + 84
----
2028

skipif mysql # not compatible
query I rowsort label-345
SELECT ALL 10 / - 97 + 64 * 33 - + 84
----
2028

onlyif mysql # aggregate syntax: 
query I rowsort label-346
SELECT - COUNT( * ) * 73 * + 16 * 21 AS col0
----
-24528

skipif mysql # not compatible
query I rowsort label-346
SELECT - COUNT ( * ) * 73 * + 16 * 21 AS col0
----
-24528

query II rowsort
SELECT ALL + 20 AS col1, + 67 AS col2
----
20
67

onlyif mysql # aggregate syntax: 
query II rowsort label-348
SELECT + 35 AS col0, + 5 * + - COUNT( + 9 )
----
35
-5

skipif mysql # not compatible
query II rowsort label-348
SELECT + 35 AS col0, + 5 * + - COUNT ( + 9 )
----
35
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-349
SELECT ALL - NULLIF ( - - NULLIF ( 77, + 26 + - NULLIF ( COUNT( * ), 69 ) ), 84 / - 80 )
----
-77

skipif mysql # not compatible
query I rowsort label-349
SELECT ALL - NULLIF ( - - NULLIF ( 77, + 26 + - NULLIF ( COUNT ( * ), 69 ) ), 84 / - 80 )
----
-77

query I rowsort
SELECT ALL - COALESCE ( - + 30, - 69, 69 ) AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-351
SELECT 13 * + NULLIF ( + 52, 14 * + MIN( DISTINCT - 0 ) ) + - 65 AS col0
----
611

skipif mysql # not compatible
query I rowsort label-351
SELECT 13 * + NULLIF ( + 52, 14 * + MIN ( DISTINCT - 0 ) ) + - 65 AS col0
----
611

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-352
SELECT 54 * 98 DIV CASE WHEN + 72 NOT BETWEEN ( + 77 ) AND - 98 THEN + COUNT( * ) ELSE NULL END
----
5292

skipif mysql # not compatible
query I rowsort label-352
SELECT 54 * 98 / CASE WHEN + 72 NOT BETWEEN ( + 77 ) AND - 98 THEN + COUNT ( * ) ELSE NULL END
----
5292

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-353
SELECT 57 + - COALESCE ( 33, + 6, + COALESCE ( ( 84 ), - NULLIF ( ( 71 ), + 48 * + CAST( NULL AS SIGNED ) ) ) )
----
24

skipif mysql # not compatible
query I rowsort label-353
SELECT 57 + - COALESCE ( 33, + 6, + COALESCE ( ( 84 ), - NULLIF ( ( 71 ), + 48 * + CAST ( NULL AS INTEGER ) ) ) )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-354
SELECT ALL - COUNT( * ) * 38 * 74
----
-2812

skipif mysql # not compatible
query I rowsort label-354
SELECT ALL - COUNT ( * ) * 38 * 74
----
-2812

query I rowsort
SELECT DISTINCT + 87 + 90
----
177

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-356
SELECT + 48 * CAST( NULL AS DECIMAL ) * - - CASE + 65 WHEN - 34 / 17 + 26 THEN 13 * + COUNT( * ) END * 84 + + COUNT( * ) * + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-356
SELECT + 48 * CAST ( NULL AS REAL ) * - - CASE + 65 WHEN - 34 / 17 + 26 THEN 13 * + COUNT ( * ) END * 84 + + COUNT ( * ) * + 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-357
SELECT DISTINCT - 23 + - - COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-357
SELECT DISTINCT - 23 + - - COUNT ( * )
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-358
SELECT 99 DIV - - COALESCE ( ( - 56 ), + 45 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-358
SELECT 99 / - - COALESCE ( ( - 56 ), + 45 ) AS col2
----
-1

query I rowsort
SELECT 70 - - - 80 * - + 76 AS col1
----
6150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-360
SELECT DISTINCT - MIN( DISTINCT + + 93 ) * + - COALESCE ( + SUM( DISTINCT ( - 32 ) ), 87 * 72 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-360
SELECT DISTINCT - MIN ( DISTINCT + + 93 ) * + - COALESCE ( + SUM ( DISTINCT ( - 32 ) ), 87 * 72 ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-361
SELECT MIN( + 88 ) + + 9 + + - 27 DIV ( - 78 + + 22 )
----
97

skipif mysql # not compatible
query I rowsort label-361
SELECT MIN ( + 88 ) + + 9 + + - 27 / ( - 78 + + 22 )
----
97

query I rowsort
SELECT 82 * 1
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-363
SELECT 89 DIV 58 * + - 76
----
-76

skipif mysql # not compatible
query I rowsort label-363
SELECT 89 / 58 * + - 76
----
-76

query II rowsort
SELECT ALL - 34 + + 26 AS col2, 31 AS col2
----
-8
31

query I rowsort
SELECT DISTINCT - - 96 + 11
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-366
SELECT COUNT( DISTINCT + 24 ) + + 9 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-366
SELECT COUNT ( DISTINCT + 24 ) + + 9 AS col1
----
10

query I rowsort
SELECT - 27 * - 62 AS col1
----
1674

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-368
SELECT - + CAST( - + 66 AS SIGNED ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-368
SELECT - + CAST ( - + 66 AS INTEGER ) AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-369
SELECT 86 + - 16 * - COUNT( * )
----
102

skipif mysql # not compatible
query I rowsort label-369
SELECT 86 + - 16 * - COUNT ( * )
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-370
SELECT ALL MAX( DISTINCT - 15 ) * + + SUM( + 44 ) AS col2
----
-660

skipif mysql # not compatible
query I rowsort label-370
SELECT ALL MAX ( DISTINCT - 15 ) * + + SUM ( + 44 ) AS col2
----
-660

query I rowsort
SELECT 32 + - - 14
----
46

query I rowsort
SELECT 76 - - 45 AS col0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-373
SELECT ALL - 32 - 2 + + 88 + CASE + 39 WHEN 5 * 1 + - NULLIF ( ( 63 ) - COUNT( * ), - 73 * 5 ) THEN NULL WHEN - 81 THEN 5 END * - 49 * + 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-373
SELECT ALL - 32 - 2 + + 88 + CASE + 39 WHEN 5 * 1 + - NULLIF ( ( 63 ) - COUNT ( * ), - 73 * 5 ) THEN NULL WHEN - 81 THEN 5 END * - 49 * + 40 AS col0
----
NULL

query I rowsort
SELECT - NULLIF ( + 45, - 57 ) AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-375
SELECT ALL - NULLIF ( 24, + COUNT( * ) + + 83 ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-375
SELECT ALL - NULLIF ( 24, + COUNT ( * ) + + 83 ) AS col0
----
-24

query I rowsort
SELECT ( - 6 ) + - 25 + - + 95 * - 93
----
8804

query I rowsort
SELECT DISTINCT 68 * 80 * - - 37 AS col2
----
201280

query II rowsort
SELECT - 26 * + 66, - 97 AS col0
----
-1716
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-379
SELECT COUNT( * ) DIV + - 93 + + 48 + + 88 DIV 68
----
49

skipif mysql # not compatible
query I rowsort label-379
SELECT COUNT ( * ) / + - 93 + + 48 + + 88 / 68
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-380
SELECT ALL 22 DIV 88
----
0

skipif mysql # not compatible
query I rowsort label-380
SELECT ALL 22 / 88
----
0

query I rowsort
SELECT 83 + - 61
----
22

query I rowsort
SELECT DISTINCT + 0 * + - 38
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-383
SELECT DISTINCT ( - 74 ) DIV - COUNT( DISTINCT + + 24 )
----
74

skipif mysql # not compatible
query I rowsort label-383
SELECT DISTINCT ( - 74 ) / - COUNT ( DISTINCT + + 24 )
----
74

query II rowsort
SELECT ALL - 99, 60 + + + 1 col0
----
-99
61

query I rowsort
SELECT DISTINCT - 28 * 18 col1
----
-504

onlyif mysql # DIV for integer division: 
query I rowsort label-386
SELECT ALL + 73 + + 69 DIV - + 78 * 12 * - 95
----
73

skipif mysql # not compatible
query I rowsort label-386
SELECT ALL + 73 + + 69 / - + 78 * 12 * - 95
----
73

query I rowsort
SELECT ALL + 83 + - 16 * - - 86 - - ( + 32 ) + + 16 AS col1
----
-1245

onlyif mysql # aggregate syntax: 
query I rowsort label-388
SELECT + SUM( ALL 34 )
----
34

skipif mysql # not compatible
query I rowsort label-388
SELECT + SUM ( ALL 34 )
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-389
SELECT + 84 AS col0, - ( - MIN( ALL 40 ) )
----
84
40

skipif mysql # not compatible
query II rowsort label-389
SELECT + 84 AS col0, - ( - MIN ( ALL 40 ) )
----
84
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-390
SELECT + COUNT( * ) * 88 DIV 85 + - NULLIF ( - + 35, 76 DIV COALESCE ( - 74 DIV MAX( 11 ), 84 * 40 ) )
----
36

skipif mysql # not compatible
query I rowsort label-390
SELECT + COUNT ( * ) * 88 / 85 + - NULLIF ( - + 35, 76 / COALESCE ( - 74 / MAX ( 11 ), 84 * 40 ) )
----
36

query I rowsort
SELECT 79 + - 63 * + 89 col0
----
-5528

query I rowsort
SELECT 38 * + 27 + 45
----
1071

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-393
SELECT DISTINCT - CASE 54 WHEN + 11 + + - ( COALESCE ( 79, CAST( NULL AS SIGNED ) - - COUNT( * ), - 1 * + 61 ) ) * 0 THEN - 79 ELSE NULL END + 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-393
SELECT DISTINCT - CASE 54 WHEN + 11 + + - ( COALESCE ( 79, CAST ( NULL AS INTEGER ) - - COUNT ( * ), - 1 * + 61 ) ) * 0 THEN - 79 ELSE NULL END + 26 AS col1
----
NULL

query I rowsort
SELECT ALL + 38 + + 59
----
97

query II rowsort
SELECT - 49 AS col1, 40 * - 17 AS col1
----
-49
-680

query I rowsort
SELECT 4 + + 58
----
62

query II rowsort
SELECT - 4, + 60 AS col0
----
-4
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-398
SELECT - COUNT( + + 50 ) + - 18 * - CAST( + ( COALESCE ( MAX( DISTINCT 36 ), SUM( - 62 ), 36 + + 65, - ( 55 ) ) ) AS SIGNED ) AS col1
----
647

skipif mysql # not compatible
query I rowsort label-398
SELECT - COUNT ( + + 50 ) + - 18 * - CAST ( + ( COALESCE ( MAX ( DISTINCT 36 ), SUM ( - 62 ), 36 + + 65, - ( 55 ) ) ) AS INTEGER ) AS col1
----
647

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-399
SELECT ALL - - 94 - CAST( - COUNT( * ) AS SIGNED ) + - 61
----
34

skipif mysql # not compatible
query I rowsort label-399
SELECT ALL - - 94 - CAST ( - COUNT ( * ) AS INTEGER ) + - 61
----
34

query I rowsort
SELECT 22 + NULLIF ( ( - + 27 ), - 56 ) + - 56
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-401
SELECT DISTINCT + CASE 49 WHEN - MIN( ALL - + 47 ) * 88 + + MAX( ( 73 ) ) * + ( 50 ) THEN 94 END * 76
----
NULL

skipif mysql # not compatible
query I rowsort label-401
SELECT DISTINCT + CASE 49 WHEN - MIN ( ALL - + 47 ) * 88 + + MAX ( ( 73 ) ) * + ( 50 ) THEN 94 END * 76
----
NULL

query I rowsort
SELECT 70 * + 6
----
420

query I rowsort
SELECT - 99 * - 79 + + + 2
----
7823

query I rowsort
SELECT + 8 + - 68 + 11
----
-49

query I rowsort
SELECT DISTINCT - 50 * 72 * + + ( - - 67 ) AS col1
----
-241200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-406
SELECT + 74 DIV - MIN( ALL + 10 ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-406
SELECT + 74 / - MIN ( ALL + 10 ) AS col1
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-407
SELECT COALESCE ( CAST( NULL AS SIGNED ), - + 36 * 11 + - - 96 ) * - CASE + 44 + - 54 WHEN + COUNT( ALL - 35 ) THEN 79 * - 99 WHEN 27 + 16 THEN NULL WHEN 46 THEN 91 END
----
NULL

skipif mysql # not compatible
query I rowsort label-407
SELECT COALESCE ( CAST ( NULL AS INTEGER ), - + 36 * 11 + - - 96 ) * - CASE + 44 + - 54 WHEN + COUNT ( ALL - 35 ) THEN 79 * - 99 WHEN 27 + 16 THEN NULL WHEN 46 THEN 91 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-408
SELECT 57 * - CAST( - - 99 AS SIGNED ) * ( - MAX( DISTINCT CASE 64 WHEN + 67 THEN - 50 * - CAST( NULL AS DECIMAL ) END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-408
SELECT 57 * - CAST ( - - 99 AS INTEGER ) * ( - MAX ( DISTINCT CASE 64 WHEN + 67 THEN - 50 * - CAST ( NULL AS REAL ) END ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-409
SELECT - + MAX( + 57 )
----
-57

skipif mysql # not compatible
query I rowsort label-409
SELECT - + MAX ( + 57 )
----
-57

query I rowsort
SELECT - 45 * + - 68
----
3060

query I rowsort
SELECT + ( 60 ) * 39 * 37
----
86580

onlyif mysql # aggregate syntax: 
query II rowsort label-412
SELECT + COUNT( * ) AS col1, 80 * + ( + 85 ) + + 80 * - 94
----
1
-720

skipif mysql # not compatible
query II rowsort label-412
SELECT + COUNT ( * ) AS col1, 80 * + ( + 85 ) + + 80 * - 94
----
1
-720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-413
SELECT ALL - COUNT( * ) * 58 DIV + + COUNT( * ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-413
SELECT ALL - COUNT ( * ) * 58 / + + COUNT ( * ) AS col0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-414
SELECT ALL + CASE - 56 WHEN 28 - CAST( 92 AS SIGNED ) THEN - 56 * AVG ( 17 ) WHEN AVG ( ALL 58 ) THEN NULL END * ( - 36 ) + + 69 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-414
SELECT ALL + CASE - 56 WHEN 28 - CAST ( 92 AS INTEGER ) THEN - 56 * AVG ( 17 ) WHEN AVG ( ALL 58 ) THEN NULL END * ( - 36 ) + + 69 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-415
SELECT + ( - COALESCE ( + 12, - ( SUM( - 26 ) ) DIV - 72 ) ) - - COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-415
SELECT + ( - COALESCE ( + 12, - ( SUM ( - 26 ) ) / - 72 ) ) - - COUNT ( * )
----
-11

query I rowsort
SELECT ALL 16 * + 91 col2
----
1456

onlyif mysql # aggregate syntax: 
query I rowsort label-417
SELECT CASE + + 81 WHEN - ( + 55 ) THEN COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-417
SELECT CASE + + 81 WHEN - ( + 55 ) THEN COUNT ( * ) END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-418
SELECT ALL ( + CAST( NULL AS SIGNED ) ) * - 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-418
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) * - 79 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-419
SELECT ALL CAST( + 20 AS SIGNED ) * 53 + - ( + 65 ) + + 21 * 6 col2
----
1121

skipif mysql # not compatible
query I rowsort label-419
SELECT ALL CAST ( + 20 AS INTEGER ) * 53 + - ( + 65 ) + + 21 * 6 col2
----
1121

onlyif mysql # aggregate syntax: 
query II rowsort label-420
SELECT DISTINCT + 41 col0, COUNT( * ) * ( + + 11 ) AS col0
----
41
11

skipif mysql # not compatible
query II rowsort label-420
SELECT DISTINCT + 41 col0, COUNT ( * ) * ( + + 11 ) AS col0
----
41
11

onlyif mysql # aggregate syntax: 
query II rowsort label-421
SELECT ALL ( + 35 ) * - COUNT( * ) + + 22 AS col1, + COUNT( * )
----
-13
1

skipif mysql # not compatible
query II rowsort label-421
SELECT ALL ( + 35 ) * - COUNT ( * ) + + 22 AS col1, + COUNT ( * )
----
-13
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-422
SELECT + COUNT( * ) DIV + + ( - + 47 ) - 23 DIV COUNT( DISTINCT 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-422
SELECT + COUNT ( * ) / + + ( - + 47 ) - 23 / COUNT ( DISTINCT 23 )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-423
SELECT ALL 80 * CASE - + 59 WHEN + 77 + + COUNT( * ) * - + ( 42 ) THEN - 2 * 95 WHEN + 92 THEN - ( 48 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-423
SELECT ALL 80 * CASE - + 59 WHEN + 77 + + COUNT ( * ) * - + ( 42 ) THEN - 2 * 95 WHEN + 92 THEN - ( 48 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-424
SELECT CASE - COUNT( * ) WHEN - 66 THEN COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-424
SELECT CASE - COUNT ( * ) WHEN - 66 THEN COUNT ( * ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-425
SELECT + 40 * - - 44 + + COUNT( * ) + 24 * - - 72
----
3489

skipif mysql # not compatible
query I rowsort label-425
SELECT + 40 * - - 44 + + COUNT ( * ) + 24 * - - 72
----
3489

onlyif mysql # aggregate syntax: 
query II rowsort label-426
SELECT COUNT( * ) AS col0, 66 + - MAX( ALL - 59 ) + + - 82 + 51 * 69
----
1
3562

skipif mysql # not compatible
query II rowsort label-426
SELECT COUNT ( * ) AS col0, 66 + - MAX ( ALL - 59 ) + + - 82 + 51 * 69
----
1
3562

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-427
SELECT + ( + - 2 ) DIV + + 11 * - NULLIF ( - SUM( + 98 ), 86 ) * + SUM( DISTINCT ( - NULLIF ( - 3, 78 ) ) + 61 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-427
SELECT + ( + - 2 ) / + + 11 * - NULLIF ( - SUM ( + 98 ), 86 ) * + SUM ( DISTINCT ( - NULLIF ( - 3, 78 ) ) + 61 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-428
SELECT + COUNT( * ) + + 64 - - - 67 * - 25 col0
----
1740

skipif mysql # not compatible
query I rowsort label-428
SELECT + COUNT ( * ) + + 64 - - - 67 * - 25 col0
----
1740

onlyif mysql # aggregate syntax: 
query II rowsort label-429
SELECT DISTINCT + 21 AS col1, + 96 - 71 + 54 * - - COUNT( * ) + - + 65 AS col2
----
21
14

skipif mysql # not compatible
query II rowsort label-429
SELECT DISTINCT + 21 AS col1, + 96 - 71 + 54 * - - COUNT ( * ) + - + 65 AS col2
----
21
14

query I rowsort
SELECT DISTINCT - 83 * + 23 + + 64
----
-1845

query I rowsort
SELECT ALL + 51 * - - 9
----
459

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-432
SELECT ALL COUNT( * ) / - CAST( NULL AS SIGNED ) / + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-432
SELECT ALL COUNT ( * ) / - CAST ( NULL AS INTEGER ) / + 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-433
SELECT DISTINCT 71 * SUM( + 84 ) - 59
----
5905

skipif mysql # not compatible
query I rowsort label-433
SELECT DISTINCT 71 * SUM ( + 84 ) - 59
----
5905

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-434
SELECT DISTINCT + COUNT( * ) * + COUNT( * ), 0 + - + 25 + - CAST( - 32 AS SIGNED ) * 21 AS col1
----
1
647

skipif mysql # not compatible
query II rowsort label-434
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ), 0 + - + 25 + - CAST ( - 32 AS INTEGER ) * 21 AS col1
----
1
647

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-435
SELECT ALL - CAST( + + ( + 77 ) AS SIGNED ) * - + 12 * - 4 + + 3 + - 85
----
-3778

skipif mysql # not compatible
query I rowsort label-435
SELECT ALL - CAST ( + + ( + 77 ) AS INTEGER ) * - + 12 * - 4 + + 3 + - 85
----
-3778

query I rowsort
SELECT DISTINCT + 1 * ( - 10 ) - + 82
----
-92

query I rowsort
SELECT 88 * 26 + + 55
----
2343

onlyif mysql # aggregate syntax: 
query I rowsort label-438
SELECT DISTINCT SUM( + 42 )
----
42

skipif mysql # not compatible
query I rowsort label-438
SELECT DISTINCT SUM ( + 42 )
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-439
SELECT + - 51 + + CAST( NULL AS SIGNED ) + + 54 / - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-439
SELECT + - 51 + + CAST ( NULL AS INTEGER ) + + 54 / - 33
----
NULL

query II rowsort
SELECT ALL 57, 70 AS col2
----
57
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-441
SELECT + + 76 + - + CAST( 47 AS SIGNED ) DIV + 76 AS col0, - COALESCE ( - 13, - 77 + 46 * ( + 73 * - 4 ) ) DIV COUNT( * )
----
76
13

skipif mysql # not compatible
query II rowsort label-441
SELECT + + 76 + - + CAST ( 47 AS INTEGER ) / + 76 AS col0, - COALESCE ( - 13, - 77 + 46 * ( + 73 * - 4 ) ) / COUNT ( * )
----
76
13

query II rowsort
SELECT 89 AS col2, 48 AS col0
----
89
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-443
SELECT DISTINCT - + COUNT( - CAST( NULL AS SIGNED ) ) - + ( 26 ) + + 5 DIV + + 52 + 23 * - ( ( 51 ) * + 55 - - 60 )
----
-65921

skipif mysql # not compatible
query I rowsort label-443
SELECT DISTINCT - + COUNT ( - CAST ( NULL AS INTEGER ) ) - + ( 26 ) + + 5 / + + 52 + 23 * - ( ( 51 ) * + 55 - - 60 )
----
-65921

query I rowsort
SELECT DISTINCT + ( - + ( + 71 ) )
----
-71

query I rowsort
SELECT - - 52 * 32 + + + 13
----
1677

onlyif mysql # aggregate syntax: 
query I rowsort label-446
SELECT - 85 + - ( - - MIN( ALL - 36 ) ) - - - 36
----
-85

skipif mysql # not compatible
query I rowsort label-446
SELECT - 85 + - ( - - MIN ( ALL - 36 ) ) - - - 36
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-447
SELECT - - 49 + - 0 DIV - + 63 * + 34 - - - 99 AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-447
SELECT - - 49 + - 0 / - + 63 * + 34 - - - 99 AS col2
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-448
SELECT - COUNT( * ) DIV - + SUM( - 12 )
----
0

skipif mysql # not compatible
query I rowsort label-448
SELECT - COUNT ( * ) / - + SUM ( - 12 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-449
SELECT ALL + + NULLIF ( + 65, 0 ) + - CAST( NULL AS SIGNED ) + + 50 + 5 + 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-449
SELECT ALL + + NULLIF ( + 65, 0 ) + - CAST ( NULL AS INTEGER ) + + 50 + 5 + 31 AS col1
----
NULL

query I rowsort
SELECT - + 74 + + 8 AS col0
----
-66

query I rowsort
SELECT - - ( - 65 ) AS col0
----
-65

query I rowsort
SELECT ALL - 5 + - 35 + - 30 + + + 80
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-453
SELECT DISTINCT + COUNT( * ) + + 38 + - - 2 * - + 26
----
-13

skipif mysql # not compatible
query I rowsort label-453
SELECT DISTINCT + COUNT ( * ) + + 38 + - - 2 * - + 26
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-454
SELECT DISTINCT - - 45 * - 20 DIV - COUNT( * ) AS col2
----
900

skipif mysql # not compatible
query I rowsort label-454
SELECT DISTINCT - - 45 * - 20 / - COUNT ( * ) AS col2
----
900

query I rowsort
SELECT DISTINCT + - 82 + 42 AS col0
----
-40

query I rowsort
SELECT ALL - + 11 + + + 75 AS col1
----
64

query I rowsort
SELECT ALL + 55 + 62 * - - 5 + 79 col0
----
444

query I rowsort
SELECT ( - 77 ) * - + 73 + - + 27
----
5594

onlyif mysql # aggregate syntax: 
query I rowsort label-459
SELECT DISTINCT + ( + CASE 41 WHEN + + 98 + - - COUNT( * ) THEN NULL WHEN + 38 THEN - + MIN( ALL 0 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-459
SELECT DISTINCT + ( + CASE 41 WHEN + + 98 + - - COUNT ( * ) THEN NULL WHEN + 38 THEN - + MIN ( ALL 0 ) END )
----
NULL

query I rowsort
SELECT + 37 * + - 11 + + 67
----
-340

query I rowsort
SELECT + 27 + - 91 * 32
----
-2885

onlyif mysql # DIV for integer division: 
query I rowsort label-462
SELECT ALL 55 DIV 58 + 9 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-462
SELECT ALL 55 / 58 + 9 AS col0
----
9

query II rowsort
SELECT + ( + 7 ) col0, - 54 + + 98 AS col0
----
7
44

query I rowsort
SELECT - ( - + 61 ) * - - 4 * - 64
----
-15616

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-465
SELECT ALL COALESCE ( - COALESCE ( + - 49, - 41 * + + 48 * - 61, + 85 ), + 20 + - 9, COALESCE ( 14, + COUNT( * ), 57, + 69 DIV 67, 34 ), - 39 ) * + 66 AS col1
----
3234

skipif mysql # not compatible
query I rowsort label-465
SELECT ALL COALESCE ( - COALESCE ( + - 49, - 41 * + + 48 * - 61, + 85 ), + 20 + - 9, COALESCE ( 14, + COUNT ( * ), 57, + 69 / 67, 34 ), - 39 ) * + 66 AS col1
----
3234

onlyif mysql # aggregate syntax: 
query I rowsort label-466
SELECT + COALESCE ( - - COUNT( * ), SUM( DISTINCT - + 40 ) )
----
1

skipif mysql # not compatible
query I rowsort label-466
SELECT + COALESCE ( - - COUNT ( * ), SUM ( DISTINCT - + 40 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-467
SELECT + COALESCE ( - 33, - + COUNT( * ) ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-467
SELECT + COALESCE ( - 33, - + COUNT ( * ) ) AS col1
----
-33

query I rowsort
SELECT ALL + 93 * + + ( + - 86 ) * 29 - - + 62 AS col0
----
-231880

query I rowsort
SELECT DISTINCT 67 * 69 - + 35 AS col1
----
4588

onlyif mysql # aggregate syntax: 
query I rowsort label-470
SELECT - 60 * - 67 + 35 * + MIN( 29 )
----
5035

skipif mysql # not compatible
query I rowsort label-470
SELECT - 60 * - 67 + 35 * + MIN ( 29 )
----
5035

query II rowsort
SELECT ( - 19 ), + 33 * - 77 * - - 29 AS col0
----
-19
-73689

onlyif mysql # aggregate syntax: 
query I rowsort label-472
SELECT DISTINCT COALESCE ( + 6, COUNT( ALL + + 55 ) ) * - - 64 AS col0
----
384

skipif mysql # not compatible
query I rowsort label-472
SELECT DISTINCT COALESCE ( + 6, COUNT ( ALL + + 55 ) ) * - - 64 AS col0
----
384

query I rowsort
SELECT + 49 * 65 * + 84 AS col2
----
267540

onlyif mysql # aggregate syntax: 
query I rowsort label-474
SELECT + 55 * + 72 * + ( + + CASE 33 WHEN + COALESCE ( - + 38, - 96 ) + + SUM( ALL 16 + ( - 77 ) * - NULLIF ( 54, - 57 ) ) THEN - 34 END ) * 50
----
NULL

skipif mysql # not compatible
query I rowsort label-474
SELECT + 55 * + 72 * + ( + + CASE 33 WHEN + COALESCE ( - + 38, - 96 ) + + SUM ( ALL 16 + ( - 77 ) * - NULLIF ( 54, - 57 ) ) THEN - 34 END ) * 50
----
NULL

query I rowsort
SELECT 11 * + + 73 + - 90 AS col2
----
713

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-476
SELECT + + 22 - 65 AS col1, + COUNT( * ) DIV + + 30
----
-43
0

skipif mysql # not compatible
query II rowsort label-476
SELECT + + 22 - 65 AS col1, + COUNT ( * ) / + + 30
----
-43
0

onlyif mysql # DIV for integer division: 
query I rowsort label-477
SELECT DISTINCT - 52 DIV + + 62
----
0

skipif mysql # not compatible
query I rowsort label-477
SELECT DISTINCT - 52 / + + 62
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-478
SELECT ALL + 36 DIV + - 91 DIV - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-478
SELECT ALL + 36 / + - 91 / - + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-479
SELECT + ( - - 86 ) * 13 DIV + 89 DIV - COUNT( * ) - - - 70 AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-479
SELECT + ( - - 86 ) * 13 / + 89 / - COUNT ( * ) - - - 70 AS col0
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-480
SELECT DISTINCT + 92 DIV - 74 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-480
SELECT DISTINCT + 92 / - 74 AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-481
SELECT 64 * + 15 + COALESCE ( - ( + 93 ), - 12 ) + + COUNT( * ) DIV 99 + 62 * - 94 col0
----
-4961

skipif mysql # not compatible
query I rowsort label-481
SELECT 64 * + 15 + COALESCE ( - ( + 93 ), - 12 ) + + COUNT ( * ) / 99 + 62 * - 94 col0
----
-4961

onlyif mysql # aggregate syntax: 
query I rowsort label-482
SELECT ALL - 9 + + - 6 + + + 6 * + COUNT( * ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-482
SELECT ALL - 9 + + - 6 + + + 6 * + COUNT ( * ) AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-483
SELECT - - MAX( - 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-483
SELECT - - MAX ( - 23 )
----
-23

query I rowsort
SELECT DISTINCT - 7 + ( - 88 ) * 12 AS col2
----
-1063

query I rowsort
SELECT ALL 19 + - 71 * - 57 AS col2
----
4066

query I rowsort
SELECT DISTINCT + + 46 + - 98 - 21 AS col1
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-487
SELECT ALL - 68 + ( + 71 ) DIV + 41 AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-487
SELECT ALL - 68 + ( + 71 ) / + 41 AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-488
SELECT ALL + COUNT( * ) + - 89 - + - COUNT( * )
----
-87

skipif mysql # not compatible
query I rowsort label-488
SELECT ALL + COUNT ( * ) + - 89 - + - COUNT ( * )
----
-87

query II rowsort
SELECT 90 AS col0, 44 + + 53 AS col1
----
90
97

onlyif mysql # aggregate syntax: 
query I rowsort label-490
SELECT DISTINCT + 41 + + 81 + - COUNT( * ) + + 18 * - - COUNT( * ) * 92 + - - COUNT( * ) + + + 50 * - NULLIF ( - MAX( + 68 ) + 26, 1 + + 61 )
----
3878

skipif mysql # not compatible
query I rowsort label-490
SELECT DISTINCT + 41 + + 81 + - COUNT ( * ) + + 18 * - - COUNT ( * ) * 92 + - - COUNT ( * ) + + + 50 * - NULLIF ( - MAX ( + 68 ) + 26, 1 + + 61 )
----
3878

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-491
SELECT ALL + 24 + 73 * - 61 AS col1, - COUNT( * ) * CASE 21 WHEN - - 73 THEN - CAST( 37 AS SIGNED ) + - 59 ELSE CAST( 97 AS SIGNED ) * 37 END * 80 col2
----
-4429
-287120

skipif mysql # not compatible
query II rowsort label-491
SELECT ALL + 24 + 73 * - 61 AS col1, - COUNT ( * ) * CASE 21 WHEN - - 73 THEN - CAST ( 37 AS INTEGER ) + - 59 ELSE CAST ( 97 AS INTEGER ) * 37 END * 80 col2
----
-4429
-287120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-492
SELECT 82 + CAST( + COUNT( * ) AS SIGNED ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-492
SELECT 82 + CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-493
SELECT DISTINCT - 79 * + + COUNT( DISTINCT + ( - 59 ) ) AS col0, - MIN( DISTINCT + - 94 ) AS col2
----
-79
94

skipif mysql # not compatible
query II rowsort label-493
SELECT DISTINCT - 79 * + + COUNT ( DISTINCT + ( - 59 ) ) AS col0, - MIN ( DISTINCT + - 94 ) AS col2
----
-79
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-494
SELECT DISTINCT - CAST( 25 AS SIGNED ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-494
SELECT DISTINCT - CAST ( 25 AS INTEGER ) AS col2
----
-25

query I rowsort
SELECT ALL 79 - - - ( - + 19 ) AS col1
----
98

onlyif mysql # DIV for integer division: 
query II rowsort label-496
SELECT 8 DIV + - ( 90 ), + 87 + 51 AS col1
----
0
138

skipif mysql # not compatible
query II rowsort label-496
SELECT 8 / + - ( 90 ), + 87 + 51 AS col1
----
0
138

query II rowsort
SELECT ALL - 43 AS col2, - 24 AS col0
----
-43
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-498
SELECT - 56 DIV + 21 - + COUNT( * ) + + 7 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-498
SELECT - 56 / + 21 - + COUNT ( * ) + + 7 AS col0
----
4

query II rowsort
SELECT 14 col1, NULLIF ( + 37, 24 ) * + 61 + ( + 97 ) + + 34 * 97 AS col2
----
14
5652

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-500
SELECT 27 - + + CAST( - 6 AS SIGNED ) AS col2, - COUNT( ALL + 50 ) AS col0
----
33
-1

skipif mysql # not compatible
query II rowsort label-500
SELECT 27 - + + CAST ( - 6 AS INTEGER ) AS col2, - COUNT ( ALL + 50 ) AS col0
----
33
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-501
SELECT 22, COUNT( * ) AS col0
----
22
1

skipif mysql # not compatible
query II rowsort label-501
SELECT 22, COUNT ( * ) AS col0
----
22
1

query II rowsort
SELECT 25 * - - 27 + + 80 AS col2, + 0 - 39
----
755
-39

query I rowsort
SELECT 43 * - 38 AS col2
----
-1634

query I rowsort
SELECT 17 + 30
----
47

query II rowsort
SELECT ALL - - 35 AS col0, 7 AS col1
----
35
7

query I rowsort
SELECT DISTINCT - 7 * - 45 + ( + 30 )
----
345

query I rowsort
SELECT ALL - - 78 AS col1
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-508
SELECT - CAST( NULL AS SIGNED ) * - - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-508
SELECT - CAST ( NULL AS INTEGER ) * - - 72
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-509
SELECT + 53 * - + 85 + - COALESCE ( + 3, COALESCE ( + + NULLIF ( - COUNT( * ), - 69 ), 3 + ( - SUM( - 61 ) ), 0 * - 94 ) - - CASE - CAST( + 68 AS SIGNED ) WHEN 99 THEN NULL ELSE 60 + + COUNT( * ) END ) AS col2
----
-4508

skipif mysql # not compatible
query I rowsort label-509
SELECT + 53 * - + 85 + - COALESCE ( + 3, COALESCE ( + + NULLIF ( - COUNT ( * ), - 69 ), 3 + ( - SUM ( - 61 ) ), 0 * - 94 ) - - CASE - CAST ( + 68 AS INTEGER ) WHEN 99 THEN NULL ELSE 60 + + COUNT ( * ) END ) AS col2
----
-4508

onlyif mysql # aggregate syntax: 
query II rowsort label-510
SELECT + 54 * + COUNT( * ) * - + 20 * - 34 col0, - 75 + 98 + 75 + + - 93 * + 30
----
36720
-2692

skipif mysql # not compatible
query II rowsort label-510
SELECT + 54 * + COUNT ( * ) * - + 20 * - 34 col0, - 75 + 98 + 75 + + - 93 * + 30
----
36720
-2692

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-511
SELECT ALL 24 + NULLIF ( - 9, CAST( NULL AS SIGNED ) )
----
15

skipif mysql # not compatible
query I rowsort label-511
SELECT ALL 24 + NULLIF ( - 9, CAST ( NULL AS INTEGER ) )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-512
SELECT - 93 + + COUNT( * ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-512
SELECT - 93 + + COUNT ( * ) AS col1
----
-92

query I rowsort
SELECT 55 + + 76 + 76 AS col1
----
207

onlyif mysql # aggregate syntax: 
query I rowsort label-514
SELECT - + SUM( - 21 ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-514
SELECT - + SUM ( - 21 ) AS col1
----
21

query II rowsort
SELECT - 15, 69 + + COALESCE ( + 90, 64 + + 0 ) AS col1
----
-15
159

query I rowsort
SELECT - 20 + + ( + 8 ) - 59 AS col2
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-517
SELECT ALL + NULLIF ( + CAST( NULL AS SIGNED ), + 93 ) + + + 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-517
SELECT ALL + NULLIF ( + CAST ( NULL AS INTEGER ), + 93 ) + + + 16 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-518
SELECT + COUNT( * ) * + + CAST( + 9 AS SIGNED ) - 5 + - + 91 col0
----
-87

skipif mysql # not compatible
query I rowsort label-518
SELECT + COUNT ( * ) * + + CAST ( + 9 AS INTEGER ) - 5 + - + 91 col0
----
-87

query I rowsort
SELECT DISTINCT 8 + + 71 AS col1
----
79

query I rowsort
SELECT ALL + ( 92 ) + - + 10 AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-521
SELECT ( SUM( - 57 ) ) + - 41
----
-98

skipif mysql # not compatible
query I rowsort label-521
SELECT ( SUM ( - 57 ) ) + - 41
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-522
SELECT + 70 + - - COUNT( DISTINCT ( 59 ) ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-522
SELECT + 70 + - - COUNT ( DISTINCT ( 59 ) ) AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-523
SELECT DISTINCT 98 * - MIN( - 79 ) AS col2
----
7742

skipif mysql # not compatible
query I rowsort label-523
SELECT DISTINCT 98 * - MIN ( - 79 ) AS col2
----
7742

onlyif mysql # aggregate syntax: 
query I rowsort label-524
SELECT ALL 57 + + COUNT( ALL - 13 )
----
58

skipif mysql # not compatible
query I rowsort label-524
SELECT ALL 57 + + COUNT ( ALL - 13 )
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-525
SELECT 2 + - 13 + - SUM( 4 ) + + COALESCE ( CAST( + NULLIF ( 80, 11 ) AS SIGNED ), + 10 * 10 ) * - 5
----
-415

skipif mysql # not compatible
query I rowsort label-525
SELECT 2 + - 13 + - SUM ( 4 ) + + COALESCE ( CAST ( + NULLIF ( 80, 11 ) AS INTEGER ), + 10 * 10 ) * - 5
----
-415

query I rowsort
SELECT 73 + - 69
----
4

query I rowsort
SELECT ALL 51 * - + 57 * + 26
----
-75582

query II rowsort
SELECT ALL 97 * - + 69, 76 + - 19 AS col0
----
-6693
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-529
SELECT 98 * + NULLIF ( + - COUNT( * ), - 30 * - + CAST( NULL AS SIGNED ) + - SUM( ( + - 65 ) ) ) * + COALESCE ( - 32, - 32 )
----
3136

skipif mysql # not compatible
query I rowsort label-529
SELECT 98 * + NULLIF ( + - COUNT ( * ), - 30 * - + CAST ( NULL AS INTEGER ) + - SUM ( ( + - 65 ) ) ) * + COALESCE ( - 32, - 32 )
----
3136

onlyif mysql # aggregate syntax: 
query I rowsort label-530
SELECT ALL SUM( DISTINCT - + 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-530
SELECT ALL SUM ( DISTINCT - + 32 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-531
SELECT 24 * + SUM( ALL + 66 )
----
1584

skipif mysql # not compatible
query I rowsort label-531
SELECT 24 * + SUM ( ALL + 66 )
----
1584

onlyif mysql # aggregate syntax: 
query I rowsort label-532
SELECT ALL - COUNT( * ) * + 91
----
-91

skipif mysql # not compatible
query I rowsort label-532
SELECT ALL - COUNT ( * ) * + 91
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-533
SELECT DISTINCT 49 DIV + 74 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-533
SELECT DISTINCT 49 / + 74 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-534
SELECT DISTINCT - - SUM( + - 86 )
----
-86

skipif mysql # not compatible
query I rowsort label-534
SELECT DISTINCT - - SUM ( + - 86 )
----
-86

query I rowsort
SELECT ALL - 7 * + 21 + - - 38 AS col1
----
-109

query I rowsort
SELECT ALL - CASE - - 41 WHEN + 54 THEN - + 94 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-537
SELECT DISTINCT + + NULLIF ( - - 23, + 65 * - COUNT( * ) ) DIV COUNT( * ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-537
SELECT DISTINCT + + NULLIF ( - - 23, + 65 * - COUNT ( * ) ) / COUNT ( * ) AS col1
----
23

query I rowsort
SELECT DISTINCT - + 65 * - 97 + + 27 AS col0
----
6332

onlyif mysql # aggregate syntax: 
query II rowsort label-539
SELECT - - 64 * COUNT( * ) AS col0, 63 col0
----
64
63

skipif mysql # not compatible
query II rowsort label-539
SELECT - - 64 * COUNT ( * ) AS col0, 63 col0
----
64
63

query I rowsort
SELECT - ( + ( - 44 ) ) + 37 col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-541
SELECT ALL + - 80 + + COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-541
SELECT ALL + - 80 + + COUNT ( * )
----
-79

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-543
SELECT - - 62 * - - 41 + + 64 DIV 56 * + 66 * + + COUNT( * ) + 62
----
2670

skipif mysql # not compatible
query I rowsort label-543
SELECT - - 62 * - - 41 + + 64 / 56 * + 66 * + + COUNT ( * ) + 62
----
2670

query I rowsort
SELECT - 96 - - 4 + 60 AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-545
SELECT ALL + 82 + - 53 + + - 10 + + 89 + SUM( + 59 ) * + + 23 * + + 24
----
32676

skipif mysql # not compatible
query I rowsort label-545
SELECT ALL + 82 + - 53 + + - 10 + + 89 + SUM ( + 59 ) * + + 23 * + + 24
----
32676

onlyif mysql # DIV for integer division: 
query I rowsort label-546
SELECT ALL + 1 + 32 DIV - 10
----
-2

skipif mysql # not compatible
query I rowsort label-546
SELECT ALL + 1 + 32 / - 10
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-547
SELECT ALL - COUNT( * ) + - - 19, 37 * + NULLIF ( 48, - - CASE - 22 WHEN - - 73 THEN NULL WHEN + 6 * COUNT( * ) + + 77 THEN + 80 ELSE NULL END * + CAST( 17 - 43 AS SIGNED ) ) * - COUNT( * ) AS col0
----
18
-1776

skipif mysql # not compatible
query II rowsort label-547
SELECT ALL - COUNT ( * ) + - - 19, 37 * + NULLIF ( 48, - - CASE - 22 WHEN - - 73 THEN NULL WHEN + 6 * COUNT ( * ) + + 77 THEN + 80 ELSE NULL END * + CAST ( 17 - 43 AS INTEGER ) ) * - COUNT ( * ) AS col0
----
18
-1776

query I rowsort
SELECT + 41 + - 27 + + 46 + - 5 * - 56 AS col0
----
340

onlyif mysql # aggregate syntax: 
query I rowsort label-549
SELECT ALL - + 25 * COUNT( + 38 ) + + 18 * + COUNT( * ) * - + 96 * + 62
----
-107161

skipif mysql # not compatible
query I rowsort label-549
SELECT ALL - + 25 * COUNT ( + 38 ) + + 18 * + COUNT ( * ) * - + 96 * + 62
----
-107161

onlyif mysql # aggregate syntax: 
query I rowsort label-550
SELECT + MIN( 58 ) * + 14 * + + 33 * + - 64 AS col1
----
-1714944

skipif mysql # not compatible
query I rowsort label-550
SELECT + MIN ( 58 ) * + 14 * + + 33 * + - 64 AS col1
----
-1714944

query I rowsort
SELECT ALL 37 - - 81 AS col0
----
118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-552
SELECT + 45 + + - 89 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-552
SELECT + 45 + + - 89 * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-553
SELECT DISTINCT CASE + 44 WHEN 76 THEN - 1 + + 82 WHEN 24 * 4 THEN + MAX( ALL + 95 ) ELSE - - CASE 89 WHEN + 45 THEN - COUNT( * ) END / 67 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-553
SELECT DISTINCT CASE + 44 WHEN 76 THEN - 1 + + 82 WHEN 24 * 4 THEN + MAX ( ALL + 95 ) ELSE - - CASE 89 WHEN + 45 THEN - COUNT ( * ) END / 67 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-554
SELECT ALL MAX( - 29 ) DIV + 48 * + ( 99 ) + - 99
----
-99

skipif mysql # not compatible
query I rowsort label-554
SELECT ALL MAX ( - 29 ) / + 48 * + ( 99 ) + - 99
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-555
SELECT ALL COUNT( * ) * - ( + 46 ) DIV + 3
----
-15

skipif mysql # not compatible
query I rowsort label-555
SELECT ALL COUNT ( * ) * - ( + 46 ) / + 3
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-556
SELECT + ( - 6 ) DIV + MAX( + 99 )
----
0

skipif mysql # not compatible
query I rowsort label-556
SELECT + ( - 6 ) / + MAX ( + 99 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-557
SELECT - NULLIF ( + 93, + ( + - ( COUNT( * ) ) ) - - 62 / + - CASE 42 WHEN - 82 THEN - + ( + 62 ) * 67 + - 30 END )
----
-93

skipif mysql # not compatible
query I rowsort label-557
SELECT - NULLIF ( + 93, + ( + - ( COUNT ( * ) ) ) - - 62 / + - CASE 42 WHEN - 82 THEN - + ( + 62 ) * 67 + - 30 END )
----
-93

query I rowsort
SELECT - NULLIF ( - 66, 93 + + - 83 )
----
66

query I rowsort
SELECT ALL 97 * - ( - 49 )
----
4753

onlyif mysql # aggregate syntax: 
query I rowsort label-560
SELECT - ( + 1 ) + + + 26 + - - 37 * - COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-560
SELECT - ( + 1 ) + + + 26 + - - 37 * - COUNT ( * )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-561
SELECT ALL 44 * - 80 * + MIN( DISTINCT + + 80 ) AS col0
----
-281600

skipif mysql # not compatible
query I rowsort label-561
SELECT ALL 44 * - 80 * + MIN ( DISTINCT + + 80 ) AS col0
----
-281600

query I rowsort
SELECT + 55 * + 47 AS col1
----
2585

query I rowsort
SELECT + 26 - - + 50 AS col2
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-564
SELECT + CASE - 12 WHEN + + 19 THEN NULL WHEN - 19 + - + 60 THEN + + 51 END AS col1, COUNT( DISTINCT - - 6 ) * 29 DIV + - 45 * - 50 + 70 AS col1
----
NULL
70

skipif mysql # not compatible
query II rowsort label-564
SELECT + CASE - 12 WHEN + + 19 THEN NULL WHEN - 19 + - + 60 THEN + + 51 END AS col1, COUNT ( DISTINCT - - 6 ) * 29 / + - 45 * - 50 + 70 AS col1
----
NULL
70

query I rowsort
SELECT ALL 8 * + + COALESCE ( + 9, - 62, - 27 * + 70 * + 55 )
----
72

query I rowsort
SELECT ALL + CASE WHEN NOT NULL IS NOT NULL THEN + 71 END
----
71

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

skipif mysql # not compatible
query I rowsort label-567
SELECT ( + + CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-568
SELECT - NULLIF ( + - MAX( 63 ), - + 53 ) * - - 40 * - + 76 + + 63 + + COUNT( + 66 ) * 9 - 12
----
-191460

skipif mysql # not compatible
query I rowsort label-568
SELECT - NULLIF ( + - MAX ( 63 ), - + 53 ) * - - 40 * - + 76 + + 63 + + COUNT ( + 66 ) * 9 - 12
----
-191460

query I rowsort
SELECT DISTINCT + - 21 * + 86 + + 27 * 62
----
-132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-570
SELECT 33 * - 81 * + 61 + - COALESCE ( + ( + 74 ), - COUNT( * ) - + 17 ) DIV + COUNT( * ) + - 12
----
-163139

skipif mysql # not compatible
query I rowsort label-570
SELECT 33 * - 81 * + 61 + - COALESCE ( + ( + 74 ), - COUNT ( * ) - + 17 ) / + COUNT ( * ) + - 12
----
-163139

query I rowsort
SELECT DISTINCT 2 * + 89 + - + 37
----
141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-572
SELECT ALL - 30 * + + 18 * + COALESCE ( + 31, + - 72, - - 61 ) + + + 11 + + 55 * - - COUNT( * ) DIV - ( 64 ) AS col2
----
-16729

skipif mysql # not compatible
query I rowsort label-572
SELECT ALL - 30 * + + 18 * + COALESCE ( + 31, + - 72, - - 61 ) + + + 11 + + 55 * - - COUNT ( * ) / - ( 64 ) AS col2
----
-16729

onlyif mysql # aggregate syntax: 
query I rowsort label-573
SELECT ALL + MIN( DISTINCT - 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-573
SELECT ALL + MIN ( DISTINCT - 29 )
----
-29

query I rowsort
SELECT + ( CASE - 92 WHEN - ( + 30 ) / - 83 THEN NULL ELSE - 95 - - 38 END ) AS col0
----
-57

query I rowsort
SELECT - 29 * + 45
----
-1305

onlyif mysql # aggregate syntax: 
query I rowsort label-576
SELECT - + ( - 55 ) * + 75 + COUNT( ALL - 97 ) + 6 AS col1
----
4132

skipif mysql # not compatible
query I rowsort label-576
SELECT - + ( - 55 ) * + 75 + COUNT ( ALL - 97 ) + 6 AS col1
----
4132

onlyif mysql # aggregate syntax: 
query I rowsort label-577
SELECT - - MIN( + 0 )
----
0

skipif mysql # not compatible
query I rowsort label-577
SELECT - - MIN ( + 0 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-578
SELECT - - SUM( 81 ) + - 9, + COUNT( * ) - CAST( 92 AS SIGNED ) + - + 72 + 12 * - COUNT( * ) * - - 82 AS col2
----
72
-1147

skipif mysql # not compatible
query II rowsort label-578
SELECT - - SUM ( 81 ) + - 9, + COUNT ( * ) - CAST ( 92 AS INTEGER ) + - + 72 + 12 * - COUNT ( * ) * - - 82 AS col2
----
72
-1147

onlyif mysql # aggregate syntax: 
query II rowsort label-579
SELECT - + 15 + - MAX( + - 6 ), - 17 AS col2
----
-9
-17

skipif mysql # not compatible
query II rowsort label-579
SELECT - + 15 + - MAX ( + - 6 ), - 17 AS col2
----
-9
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-580
SELECT 89 AS col0, NULLIF ( 53, - + MAX( DISTINCT - + 59 ) * - 58 ) AS col0
----
89
53

skipif mysql # not compatible
query II rowsort label-580
SELECT 89 AS col0, NULLIF ( 53, - + MAX ( DISTINCT - + 59 ) * - 58 ) AS col0
----
89
53

onlyif mysql # aggregate syntax: 
query I rowsort label-581
SELECT ALL CASE + 21 WHEN - CASE - COUNT( * ) WHEN + - COUNT( - - 80 ) THEN 36 / + 90 END THEN - + 67 END
----
NULL

skipif mysql # not compatible
query I rowsort label-581
SELECT ALL CASE + 21 WHEN - CASE - COUNT ( * ) WHEN + - COUNT ( - - 80 ) THEN 36 / + 90 END THEN - + 67 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-582
SELECT - NULLIF ( - 20, - 75 ) + + 75 + - CAST( AVG ( CAST( + + 80 AS SIGNED ) ) AS SIGNED ) DIV 64 * + 88 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-582
SELECT - NULLIF ( - 20, - 75 ) + + 75 + - CAST ( AVG ( CAST ( + + 80 AS INTEGER ) ) AS INTEGER ) / 64 * + 88 AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-583
SELECT DISTINCT NULLIF ( + - COUNT( * ), 20 + + - 41 )
----
-1

skipif mysql # not compatible
query I rowsort label-583
SELECT DISTINCT NULLIF ( + - COUNT ( * ), 20 + + - 41 )
----
-1

query I rowsort
SELECT - 92 + 11 * + + 32 AS col1
----
260

query II rowsort
SELECT ALL 10 AS col0, - 3 AS col0
----
10
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-586
SELECT DISTINCT MAX( DISTINCT - 31 ) * - + 33 AS col0
----
1023

skipif mysql # not compatible
query I rowsort label-586
SELECT DISTINCT MAX ( DISTINCT - 31 ) * - + 33 AS col0
----
1023

onlyif mysql # aggregate syntax: 
query II rowsort label-587
SELECT - 86 + 96 AS col0, COUNT( * )
----
10
1

skipif mysql # not compatible
query II rowsort label-587
SELECT - 86 + 96 AS col0, COUNT ( * )
----
10
1

onlyif mysql # aggregate syntax: 
query II rowsort label-588
SELECT DISTINCT 67 AS col1, + ( MAX( - 37 ) )
----
67
-37

skipif mysql # not compatible
query II rowsort label-588
SELECT DISTINCT 67 AS col1, + ( MAX ( - 37 ) )
----
67
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-589
SELECT - 19 AS col0, - CASE + COUNT( * ) WHEN - 92 THEN + 12 END AS col0
----
-19
NULL

skipif mysql # not compatible
query II rowsort label-589
SELECT - 19 AS col0, - CASE + COUNT ( * ) WHEN - 92 THEN + 12 END AS col0
----
-19
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-590
SELECT ALL CAST( NULL AS SIGNED ) AS col1, 78 AS col2
----
NULL
78

skipif mysql # not compatible
query II rowsort label-590
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, 78 AS col2
----
NULL
78

query I rowsort
SELECT - ( - COALESCE ( - - 33, + 73 ) ) * - + 86 AS col2
----
-2838

query I rowsort
SELECT - 26 + - 36
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-593
SELECT ALL ( + + 52 ) + 75 + COUNT( * ) * - 43 DIV 11 AS col1, + 59 + COUNT( ALL CAST( NULL AS SIGNED ) ) AS col2, - 75 + - 14
----
124
59
-89

skipif mysql # not compatible
query III rowsort label-593
SELECT ALL ( + + 52 ) + 75 + COUNT ( * ) * - 43 / 11 AS col1, + 59 + COUNT ( ALL CAST ( NULL AS INTEGER ) ) AS col2, - 75 + - 14
----
124
59
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-594
SELECT - 2 + + CAST( NULL AS SIGNED ) * + + ( + 61 ) * - 83 + 44 + + COALESCE ( + + 71, 2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-594
SELECT - 2 + + CAST ( NULL AS INTEGER ) * + + ( + 61 ) * - 83 + 44 + + COALESCE ( + + 71, 2 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-595
SELECT ALL + 30 + - + SUM( DISTINCT + 94 ) DIV - 44 + - 63 + + 32 * - 11 + - 4
----
-387

skipif mysql # not compatible
query I rowsort label-595
SELECT ALL + 30 + - + SUM ( DISTINCT + 94 ) / - 44 + - 63 + + 32 * - 11 + - 4
----
-387

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-596
SELECT ALL MAX( + CAST( NULL AS SIGNED ) ) + 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-596
SELECT ALL MAX ( + CAST ( NULL AS INTEGER ) ) + 36 AS col1
----
NULL

query I rowsort
SELECT - ( ( 61 ) ) AS col0
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-598
SELECT ( + + 5 ) + + + 73 DIV + COUNT( * ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-598
SELECT ( + + 5 ) + + + 73 / + COUNT ( * ) AS col1
----
78

query I rowsort
SELECT 16 * 56 AS col1
----
896

onlyif mysql # aggregate syntax: 
query I rowsort label-600
SELECT + COUNT( * ) * + COUNT( * ) + + COUNT( - 30 ) * + 27 - 63 AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-600
SELECT + COUNT ( * ) * + COUNT ( * ) + + COUNT ( - 30 ) * + 27 - 63 AS col2
----
-35

query I rowsort
SELECT 31 * - - ( - 38 )
----
-1178

query I rowsort
SELECT ALL - 26 * 28 AS col2
----
-728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-603
SELECT + CASE - - 41 WHEN + ( + 79 ) + - 3 * 43 THEN + 91 + + 44 + + - 11 ELSE NULL END * - CAST( CAST( + 23 AS SIGNED ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-603
SELECT + CASE - - 41 WHEN + ( + 79 ) + - 3 * 43 THEN + 91 + + 44 + + - 11 ELSE NULL END * - CAST ( CAST ( + 23 AS INTEGER ) AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 73 + - 81 AS col0
----
-154

query I rowsort
SELECT DISTINCT 12 + - + 0 AS col0
----
12

query I rowsort
SELECT ALL NULLIF ( - 22, + 64 + 21 ) - - + 9
----
-13

query II rowsort
SELECT ALL - - 70 AS col0, + 87
----
70
87

query I rowsort
SELECT + 17 * - 2 + + + 77 * - + 29
----
-2267

onlyif mysql # aggregate syntax: 
query II rowsort label-609
SELECT DISTINCT - + 49 AS col2, 10 / CASE - 95 WHEN 81 THEN - 60 * + 49 / - COUNT( * ) - - ( - 74 ) WHEN + 11 - + 68 * - 97 THEN NULL WHEN + ( + 27 ) + + ( - 96 ) THEN NULL ELSE NULL END + - ( - 56 ) AS col2
----
-49
NULL

skipif mysql # not compatible
query II rowsort label-609
SELECT DISTINCT - + 49 AS col2, 10 / CASE - 95 WHEN 81 THEN - 60 * + 49 / - COUNT ( * ) - - ( - 74 ) WHEN + 11 - + 68 * - 97 THEN NULL WHEN + ( + 27 ) + + ( - 96 ) THEN NULL ELSE NULL END + - ( - 56 ) AS col2
----
-49
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-610
SELECT ALL - 99 - - COUNT( * ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-610
SELECT ALL - 99 - - COUNT ( * ) AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-611
SELECT 79 * - + ( + COUNT( * ) ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-611
SELECT 79 * - + ( + COUNT ( * ) ) AS col0
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-612
SELECT + 36 + - + COALESCE ( + 61, MAX( - - 24 ), ( + + ( - ( + 81 ) ) ) * + 12 DIV - - 97 + - 28 * + 13 + - 4 ) + 11 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-612
SELECT + 36 + - + COALESCE ( + 61, MAX ( - - 24 ), ( + + ( - ( + 81 ) ) ) * + 12 / - - 97 + - 28 * + 13 + - 4 ) + 11 AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-613
SELECT + - ( + + MAX( - - 29 ) )
----
-29

skipif mysql # not compatible
query I rowsort label-613
SELECT + - ( + + MAX ( - - 29 ) )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-614
SELECT - CASE - - 30 WHEN 16 THEN NULL WHEN + - ( + AVG ( - - 94 ) ) THEN NULL WHEN NULLIF ( - 24, 97 ) THEN + - 72 * + 67 * + 62 + COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-614
SELECT - CASE - - 30 WHEN 16 THEN NULL WHEN + - ( + AVG ( - - 94 ) ) THEN NULL WHEN NULLIF ( - 24, 97 ) THEN + - 72 * + 67 * + 62 + COUNT ( * ) ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT + 13 AS col1, 57 AS col2
----
13
57

onlyif mysql # aggregate syntax: 
query I rowsort label-616
SELECT + 63 * + + MAX( ALL - 91 )
----
-5733

skipif mysql # not compatible
query I rowsort label-616
SELECT + 63 * + + MAX ( ALL - 91 )
----
-5733

onlyif mysql # aggregate syntax: 
query I rowsort label-617
SELECT ALL + + 33 * + MAX( ALL 42 )
----
1386

skipif mysql # not compatible
query I rowsort label-617
SELECT ALL + + 33 * + MAX ( ALL 42 )
----
1386

query I rowsort
SELECT DISTINCT - ( 77 ) * 5 + + 33
----
-352

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-619
SELECT 2 DIV + COUNT( DISTINCT + 31 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-619
SELECT 2 / + COUNT ( DISTINCT + 31 ) AS col0
----
2

query I rowsort
SELECT DISTINCT 33 * - 60
----
-1980

onlyif mysql # aggregate syntax: 
query I rowsort label-621
SELECT 11 * COUNT( * ) col0
----
11

skipif mysql # not compatible
query I rowsort label-621
SELECT 11 * COUNT ( * ) col0
----
11

query I rowsort
SELECT 16 + + 3 col2
----
19

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-623
SELECT ALL + CASE 11 WHEN - + NULLIF ( 87, + 30 ) THEN + CAST( NULL AS DECIMAL ) END + 83 / - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-623
SELECT ALL + CASE 11 WHEN - + NULLIF ( 87, + 30 ) THEN + CAST ( NULL AS REAL ) END + 83 / - 87
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT 32 - - 22 + - COUNT( * ) * - + 51 * - + 80 AS col1
----
-4026

skipif mysql # not compatible
query I rowsort label-624
SELECT 32 - - 22 + - COUNT ( * ) * - + 51 * - + 80 AS col1
----
-4026

query I rowsort
SELECT ALL - 97 + + CASE WHEN - 60 <> NULL THEN + + 23 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-626
SELECT - COUNT( * ) * + 91 * + - COUNT( * ) + 4 - - 90 * + 58 AS col0
----
5315

skipif mysql # not compatible
query I rowsort label-626
SELECT - COUNT ( * ) * + 91 * + - COUNT ( * ) + 4 - - 90 * + 58 AS col0
----
5315

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-627
SELECT - CAST( - COUNT( * ) AS SIGNED ) + - + 11 + NULLIF ( 92, - + COALESCE ( NULLIF ( COUNT( * ), - 19 / - + 58 + AVG ( ALL - + CAST( NULL AS SIGNED ) ) * 56 ), 53 + COALESCE ( CAST( + 97 AS SIGNED ), - 62, SUM( ALL - 73 ) ), 47 ) ) - + 63
----
19

skipif mysql # not compatible
query I rowsort label-627
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) + - + 11 + NULLIF ( 92, - + COALESCE ( NULLIF ( COUNT ( * ), - 19 / - + 58 + AVG ( ALL - + CAST ( NULL AS INTEGER ) ) * 56 ), 53 + COALESCE ( CAST ( + 97 AS INTEGER ), - 62, SUM ( ALL - 73 ) ), 47 ) ) - + 63
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-628
SELECT COUNT( + ( - 41 ) ) * - - COUNT( * ) + - 82
----
-81

skipif mysql # not compatible
query I rowsort label-628
SELECT COUNT ( + ( - 41 ) ) * - - COUNT ( * ) + - 82
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-629
SELECT DISTINCT - 3 - - 39 + COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-629
SELECT DISTINCT - 3 - - 39 + COUNT ( * )
----
37

query I rowsort
SELECT CASE 53 WHEN - 53 + - - 83 + + 0 + + 97 * + 52 THEN NULL WHEN + - 60 THEN - 63 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-631
SELECT + COUNT( * ) + 97, 40 AS col2
----
98
40

skipif mysql # not compatible
query II rowsort label-631
SELECT + COUNT ( * ) + 97, 40 AS col2
----
98
40

query I rowsort
SELECT ALL + 70 * + 26
----
1820

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-633
SELECT CAST( NULL AS SIGNED ) * - 55, 70 AS col0
----
NULL
70

skipif mysql # not compatible
query II rowsort label-633
SELECT CAST ( NULL AS INTEGER ) * - 55, 70 AS col0
----
NULL
70

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-634
SELECT SUM( ALL + 89 ) * + + 73 * - 45 - + 70 - - NULLIF ( - 30, + CASE + - 47 WHEN 10 + 61 THEN NULL WHEN + - CAST( NULL AS DECIMAL ) THEN 66 ELSE 78 * 91 END ) AS col0
----
-292465

skipif mysql # not compatible
query I rowsort label-634
SELECT SUM ( ALL + 89 ) * + + 73 * - 45 - + 70 - - NULLIF ( - 30, + CASE + - 47 WHEN 10 + 61 THEN NULL WHEN + - CAST ( NULL AS REAL ) THEN 66 ELSE 78 * 91 END ) AS col0
----
-292465

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-635
SELECT ALL COALESCE ( + 40, NULLIF ( - 64, - ( - - CAST( NULL AS SIGNED ) ) ), - - 32 ) * - + 34 + + NULLIF ( - 19, - + 37 + - COUNT( * ) * 50 ) * 0 AS col0
----
-1360

skipif mysql # not compatible
query I rowsort label-635
SELECT ALL COALESCE ( + 40, NULLIF ( - 64, - ( - - CAST ( NULL AS INTEGER ) ) ), - - 32 ) * - + 34 + + NULLIF ( - 19, - + 37 + - COUNT ( * ) * 50 ) * 0 AS col0
----
-1360

onlyif mysql # DIV for integer division: 
query I rowsort label-636
SELECT - 35 DIV - ( 52 ) * + 3 + + + 30 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-636
SELECT - 35 / - ( 52 ) * + 3 + + + 30 AS col0
----
30

query I rowsort
SELECT DISTINCT - + 26 col2
----
-26

query I rowsort
SELECT ALL + NULLIF ( 78, + 68 ) * - + 69 AS col2
----
-5382

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-639
SELECT 82 AS col0, + CAST( NULL AS SIGNED ) AS col2
----
82
NULL

skipif mysql # not compatible
query II rowsort label-639
SELECT 82 AS col0, + CAST ( NULL AS INTEGER ) AS col2
----
82
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-640
SELECT COALESCE ( + - 77, - 51 ) * 6 DIV - COUNT( * ) + + - MIN( DISTINCT + + 67 ) AS col2
----
395

skipif mysql # not compatible
query I rowsort label-640
SELECT COALESCE ( + - 77, - 51 ) * 6 / - COUNT ( * ) + + - MIN ( DISTINCT + + 67 ) AS col2
----
395

query I rowsort
SELECT 18 * + - 76 AS col2
----
-1368

query II rowsort
SELECT 63 AS col1, + 83 + 27 AS col0
----
63
110

onlyif mysql # DIV for integer division: 
query I rowsort label-643
SELECT 37 DIV - 84 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-643
SELECT 37 / - 84 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-644
SELECT ALL 21 + MIN( ALL - CASE - 78 WHEN - 57 THEN ( - - 33 ) * 58 WHEN 93 THEN NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-644
SELECT ALL 21 + MIN ( ALL - CASE - 78 WHEN - 57 THEN ( - - 33 ) * 58 WHEN 93 THEN NULL END ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-645
SELECT ( - CAST( NULL AS SIGNED ) ) + - + NULLIF ( + MIN( 84 ), + MAX( - 61 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-645
SELECT ( - CAST ( NULL AS INTEGER ) ) + - + NULLIF ( + MIN ( 84 ), + MAX ( - 61 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-646
SELECT ALL + 30 + SUM( ALL + 68 ) * + 70 * + 49 + + 41 + - 89
----
233222

skipif mysql # not compatible
query I rowsort label-646
SELECT ALL + 30 + SUM ( ALL + 68 ) * + 70 * + 49 + + 41 + - 89
----
233222

query I rowsort
SELECT ALL - ( + 96 ) * + + 75 * - 59
----
424800

query I rowsort
SELECT 27 + + 63
----
90

query I rowsort
SELECT + 97 + - 48 AS col2
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-650
SELECT ALL + 3 + + CAST( NULL AS SIGNED ) / - - 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-650
SELECT ALL + 3 + + CAST ( NULL AS INTEGER ) / - - 45 AS col2
----
NULL

query I rowsort
SELECT ALL ( 9 ) * 73
----
657

onlyif mysql # aggregate syntax: 
query II rowsort label-652
SELECT DISTINCT 91 AS col2, + ( + - COUNT( * ) ) - COUNT( * ) + - 4 AS col1
----
91
-6

skipif mysql # not compatible
query II rowsort label-652
SELECT DISTINCT 91 AS col2, + ( + - COUNT ( * ) ) - COUNT ( * ) + - 4 AS col1
----
91
-6

query I rowsort
SELECT - ( - 40 ) + 73 AS col1
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-654
SELECT - COUNT( * ) + - SUM( - 64 )
----
63

skipif mysql # not compatible
query I rowsort label-654
SELECT - COUNT ( * ) + - SUM ( - 64 )
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-655
SELECT ALL - 40 DIV - 24 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-655
SELECT ALL - 40 / - 24 AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-656
SELECT - 13 DIV COUNT( * ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-656
SELECT - 13 / COUNT ( * ) AS col2
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-657
SELECT ALL COUNT( * ) - + MIN( DISTINCT + + 36 ) AS col2, NULLIF ( 82, 83 * + 62 * + + 20 ) * - + COUNT( * ) - 98 * - 76 - + 27 + + NULLIF ( + 66, 15 ) - MIN( 72 ) * COUNT( * )
----
-35
7333

skipif mysql # not compatible
query II rowsort label-657
SELECT ALL COUNT ( * ) - + MIN ( DISTINCT + + 36 ) AS col2, NULLIF ( 82, 83 * + 62 * + + 20 ) * - + COUNT ( * ) - 98 * - 76 - + 27 + + NULLIF ( + 66, 15 ) - MIN ( 72 ) * COUNT ( * )
----
-35
7333

query II rowsort
SELECT - - 60, 79 col0
----
60
79

query II rowsort
SELECT - 68 AS col1, - 10 * + 55 AS col0
----
-68
-550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-660
SELECT ALL CAST( + + 29 AS SIGNED ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-660
SELECT ALL CAST ( + + 29 AS INTEGER ) AS col2
----
29

query II rowsort
SELECT - + 37 AS col2, 7
----
-37
7

query I rowsort
SELECT ALL - - 83 * 79
----
6557

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-663
SELECT - + ( CAST( - 54 AS SIGNED ) ) * - 24
----
-1296

skipif mysql # not compatible
query I rowsort label-663
SELECT - + ( CAST ( - 54 AS INTEGER ) ) * - 24
----
-1296

query II rowsort
SELECT + 41, - 52 AS col1
----
41
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-665
SELECT - ( 0 ) DIV + + COUNT( * ) DIV - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-665
SELECT - ( 0 ) / + + COUNT ( * ) / - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-666
SELECT DISTINCT + COUNT( ALL + 97 )
----
1

skipif mysql # not compatible
query I rowsort label-666
SELECT DISTINCT + COUNT ( ALL + 97 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-667
SELECT DISTINCT - + COUNT( * ) * - 30 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-667
SELECT DISTINCT - + COUNT ( * ) * - 30 AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-668
SELECT + + SUM( ALL 14 )
----
14

skipif mysql # not compatible
query I rowsort label-668
SELECT + + SUM ( ALL 14 )
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-669
SELECT - - CAST( + CAST( - 64 AS SIGNED ) AS SIGNED ) * + CASE + - 97 WHEN + 11 THEN + + COALESCE ( + COUNT( * ), 60, - + 93, - CAST( NULL AS SIGNED ) ) ELSE NULL END, 67 AS col2
----
NULL
67

skipif mysql # not compatible
query II rowsort label-669
SELECT - - CAST ( + CAST ( - 64 AS INTEGER ) AS INTEGER ) * + CASE + - 97 WHEN + 11 THEN + + COALESCE ( + COUNT ( * ), 60, - + 93, - CAST ( NULL AS INTEGER ) ) ELSE NULL END, 67 AS col2
----
NULL
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-670
SELECT ALL + NULLIF ( - 10, + + 2 + - 71 * COUNT( * ) + - + 39 ) * - CAST( COUNT( * ) AS SIGNED ) - 67 + - 20 + - 1 * + 82
----
-159

skipif mysql # not compatible
query I rowsort label-670
SELECT ALL + NULLIF ( - 10, + + 2 + - 71 * COUNT ( * ) + - + 39 ) * - CAST ( COUNT ( * ) AS INTEGER ) - 67 + - 20 + - 1 * + 82
----
-159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-671
SELECT - - CASE 65 WHEN - 18 * - - 89 THEN 28 ELSE NULL END * + ( + + 99 ) + + + CAST( NULL AS SIGNED ), - 48 + - - COUNT( * ) col2
----
NULL
-47

skipif mysql # not compatible
query II rowsort label-671
SELECT - - CASE 65 WHEN - 18 * - - 89 THEN 28 ELSE NULL END * + ( + + 99 ) + + + CAST ( NULL AS INTEGER ), - 48 + - - COUNT ( * ) col2
----
NULL
-47

query I rowsort
SELECT + NULLIF ( - 43, - 90 ) AS col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-673
SELECT DISTINCT COUNT( ALL - - 15 ) * + - 37
----
-37

skipif mysql # not compatible
query I rowsort label-673
SELECT DISTINCT COUNT ( ALL - - 15 ) * + - 37
----
-37

query I rowsort
SELECT COALESCE ( + + 52, + 82 ) AS col0
----
52

query I rowsort
SELECT DISTINCT + ( + - 23 ) AS col0
----
-23

query I rowsort
SELECT - NULLIF ( 29, + 72 )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-677
SELECT ALL COALESCE ( - - 50, + + 6 * - - COUNT( * ) * + 30 ) * + 45 + - + 56 AS col1
----
2194

skipif mysql # not compatible
query I rowsort label-677
SELECT ALL COALESCE ( - - 50, + + 6 * - - COUNT ( * ) * + 30 ) * + 45 + - + 56 AS col1
----
2194

query I rowsort
SELECT + 73 * - 11
----
-803

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-679
SELECT ALL 79 + - COALESCE ( + CAST( + 93 AS SIGNED ), + ( 26 ), 12 DIV + - COUNT( * ) )
----
-14

skipif mysql # not compatible
query I rowsort label-679
SELECT ALL 79 + - COALESCE ( + CAST ( + 93 AS INTEGER ), + ( 26 ), 12 / + - COUNT ( * ) )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-680
SELECT - NULLIF ( - - 29, + ( NULLIF ( 70, - COUNT( 27 ) / - COALESCE ( - 18, - COUNT( ALL 78 ) ) ) ) + 40 + + ( - MIN( - 66 ) ) )
----
-29

skipif mysql # not compatible
query I rowsort label-680
SELECT - NULLIF ( - - 29, + ( NULLIF ( 70, - COUNT ( 27 ) / - COALESCE ( - 18, - COUNT ( ALL 78 ) ) ) ) + 40 + + ( - MIN ( - 66 ) ) )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-681
SELECT ALL COUNT( * ) - + 9
----
-8

skipif mysql # not compatible
query I rowsort label-681
SELECT ALL COUNT ( * ) - + 9
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-682
SELECT + 37 - - COUNT( * ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-682
SELECT + 37 - - COUNT ( * ) AS col2
----
38

query I rowsort
SELECT + 43 * + 20 AS col2
----
860

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-684
SELECT DISTINCT 66 - CAST( NULL AS SIGNED ) AS col2, 21 AS col1
----
NULL
21

skipif mysql # not compatible
query II rowsort label-684
SELECT DISTINCT 66 - CAST ( NULL AS INTEGER ) AS col2, 21 AS col1
----
NULL
21

onlyif mysql # aggregate syntax: 
query I rowsort label-685
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) - 78 * + - 50 * + 50 AS col0
----
194999

skipif mysql # not compatible
query I rowsort label-685
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) - 78 * + - 50 * + 50 AS col0
----
194999

onlyif mysql # DIV for integer division: 
query I rowsort label-686
SELECT DISTINCT + 36 - - 47 DIV - + 14 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-686
SELECT DISTINCT + 36 - - 47 / - + 14 AS col1
----
33

query I rowsort
SELECT + 6 * - 5 - + 91 AS col0
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-688
SELECT + CAST( NULL AS SIGNED ) * + 25 * - + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-688
SELECT + CAST ( NULL AS INTEGER ) * + 25 * - + 13
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-689
SELECT - 94 * + - 21 * - 70 / + + NULLIF ( + CASE + 78 WHEN - 62 + - 63 THEN - 15 * + MIN( ALL + - 26 ) * + + 21 * - 55 - + 24 ELSE NULL END, + 45 ) / 14 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-689
SELECT - 94 * + - 21 * - 70 / + + NULLIF ( + CASE + 78 WHEN - 62 + - 63 THEN - 15 * + MIN ( ALL + - 26 ) * + + 21 * - 55 - + 24 ELSE NULL END, + 45 ) / 14 col0
----
NULL

query I rowsort
SELECT + 33 + + 70
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-691
SELECT - + 42 DIV + 92 * 41 * - - 91
----
0

skipif mysql # not compatible
query I rowsort label-691
SELECT - + 42 / + 92 * 41 * - - 91
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-692
SELECT + + MIN( DISTINCT + 46 ) + COUNT( * ) DIV 71
----
46

skipif mysql # not compatible
query I rowsort label-692
SELECT + + MIN ( DISTINCT + 46 ) + COUNT ( * ) / 71
----
46

query I rowsort
SELECT + - 56 * + 86
----
-4816

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-694
SELECT DISTINCT - 48 DIV ( + + 58 ) * COUNT( * ) + + 12 + + 64
----
76

skipif mysql # not compatible
query I rowsort label-694
SELECT DISTINCT - 48 / ( + + 58 ) * COUNT ( * ) + + 12 + + 64
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-695
SELECT + MIN( DISTINCT - 37 ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-695
SELECT + MIN ( DISTINCT - 37 ) AS col1
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-696
SELECT DISTINCT - 84 DIV - 32 + - 15 AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-696
SELECT DISTINCT - 84 / - 32 + - 15 AS col0
----
-13

query I rowsort
SELECT - 92 * - - 34
----
-3128

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-699
SELECT - COUNT( * ) + 12 + ( + MIN( + + 24 ) ) * + 47 + COALESCE ( COUNT( * ), + 38 + + - 40 * + 2 )
----
1140

skipif mysql # not compatible
query I rowsort label-699
SELECT - COUNT ( * ) + 12 + ( + MIN ( + + 24 ) ) * + 47 + COALESCE ( COUNT ( * ), + 38 + + - 40 * + 2 )
----
1140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-700
SELECT - + 30 - + - 69 * CASE - - COUNT( * ) WHEN - COUNT( ALL + 21 ) * 58 THEN NULL WHEN + - COALESCE ( ( - - CAST( NULL AS SIGNED ) ), + 5 ) * + 54 * - CAST( NULL AS SIGNED ) + 99 THEN NULL WHEN + 45 / 50 THEN 9 END * - 54 - 99 / + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-700
SELECT - + 30 - + - 69 * CASE - - COUNT ( * ) WHEN - COUNT ( ALL + 21 ) * 58 THEN NULL WHEN + - COALESCE ( ( - - CAST ( NULL AS INTEGER ) ), + 5 ) * + 54 * - CAST ( NULL AS INTEGER ) + 99 THEN NULL WHEN + 45 / 50 THEN 9 END * - 54 - 99 / + 30
----
NULL

query I rowsort
SELECT - 86 + + + NULLIF ( - 52, + 20 / 28 ) - + 29
----
-167

onlyif mysql # DIV for integer division: 
query I rowsort label-702
SELECT ALL - 99 DIV - 5 + + 17
----
36

skipif mysql # not compatible
query I rowsort label-702
SELECT ALL - 99 / - 5 + + 17
----
36

query I rowsort
SELECT DISTINCT - ( - 49 ) col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-704
SELECT ALL 91 + - 52 + + + COUNT( * ) + 23
----
63

skipif mysql # not compatible
query I rowsort label-704
SELECT ALL 91 + - 52 + + + COUNT ( * ) + 23
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-705
SELECT COUNT( * ) - + ( - + 54 ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-705
SELECT COUNT ( * ) - + ( - + 54 ) AS col2
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-706
SELECT + 26 AS col1, + COUNT( * ) + + 1 + + 65
----
26
67

skipif mysql # not compatible
query II rowsort label-706
SELECT + 26 AS col1, + COUNT ( * ) + + 1 + + 65
----
26
67

query II rowsort
SELECT 67 * + + 60 + 54 AS col2, 56 * 72
----
4074
4032

onlyif mysql # aggregate syntax: 
query II rowsort label-708
SELECT 26 * + MAX( ALL + - 87 ) col0, 5 AS col0
----
-2262
5

skipif mysql # not compatible
query II rowsort label-708
SELECT 26 * + MAX ( ALL + - 87 ) col0, 5 AS col0
----
-2262
5

onlyif mysql # aggregate syntax: 
query I rowsort label-709
SELECT ALL + COUNT( * ) * - - 80 * + - COALESCE ( 38, - COALESCE ( - 14, + 7 * - + 82 * + 97 + - - 44 + - 88 * + COUNT( + 35 ) * - 57 ), ( 29 ) )
----
-3040

skipif mysql # not compatible
query I rowsort label-709
SELECT ALL + COUNT ( * ) * - - 80 * + - COALESCE ( 38, - COALESCE ( - 14, + 7 * - + 82 * + 97 + - - 44 + - 88 * + COUNT ( + 35 ) * - 57 ), ( 29 ) )
----
-3040

query I rowsort
SELECT 32 + - + 12
----
20

query I rowsort
SELECT 42 + + + 65
----
107

query I rowsort
SELECT ALL 25 * - - 95 AS col1
----
2375

onlyif mysql # aggregate syntax: 
query I rowsort label-713
SELECT + ( - - COUNT( * ) ) * - MAX( DISTINCT 31 ) + + - 55 + - + 5 * - 10
----
-36

skipif mysql # not compatible
query I rowsort label-713
SELECT + ( - - COUNT ( * ) ) * - MAX ( DISTINCT 31 ) + + - 55 + - + 5 * - 10
----
-36

query I rowsort
SELECT 61 + + 5 col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-715
SELECT COUNT( + + 87 ) + + + 99
----
100

skipif mysql # not compatible
query I rowsort label-715
SELECT COUNT ( + + 87 ) + + + 99
----
100

query I rowsort
SELECT ALL + 68 * - 26 AS col1
----
-1768

onlyif mysql # aggregate syntax: 
query I rowsort label-717
SELECT COUNT( * ) + + 90 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-717
SELECT COUNT ( * ) + + 90 AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-718
SELECT 23 * + COUNT( * ) * + + 28 AS col1
----
644

skipif mysql # not compatible
query I rowsort label-718
SELECT 23 * + COUNT ( * ) * + + 28 AS col1
----
644

query I rowsort
SELECT - 64 + - + 7 + - 33 AS col0
----
-104

query I rowsort
SELECT + ( + - 82 ) * + 5 + - 51 AS col1
----
-461

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-721
SELECT ALL CASE - 62 WHEN + - 74 * + + 17 THEN - 89 WHEN - ( - 5 ) THEN - NULLIF ( + 29, + 58 ) / - CAST( NULL AS SIGNED ) + + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-721
SELECT ALL CASE - 62 WHEN + - 74 * + + 17 THEN - 89 WHEN - ( - 5 ) THEN - NULLIF ( + 29, + 58 ) / - CAST ( NULL AS INTEGER ) + + COUNT ( * ) END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-722
SELECT DISTINCT - CAST( ( 76 ) AS SIGNED ) + - 31
----
-107

skipif mysql # not compatible
query I rowsort label-722
SELECT DISTINCT - CAST ( ( 76 ) AS INTEGER ) + - 31
----
-107

query I rowsort
SELECT ALL 70 * + + 48 AS col0
----
3360

query I rowsort
SELECT - ( + - 93 ) * + 64
----
5952

onlyif mysql # DIV for integer division: 
query I rowsort label-725
SELECT DISTINCT - 63 DIV - 93 col1
----
0

skipif mysql # not compatible
query I rowsort label-725
SELECT DISTINCT - 63 / - 93 col1
----
0

query I rowsort
SELECT DISTINCT + 0 + - - ( + 38 )
----
38

query I rowsort
SELECT ALL 97 + + 23
----
120

query I rowsort
SELECT ALL 36 * + 93 * + 1 AS col0
----
3348

query II rowsort
SELECT - 26 AS col1, 23 * ( 62 )
----
-26
1426

onlyif mysql # aggregate syntax: 
query I rowsort label-730
SELECT + MAX( - 87 ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-730
SELECT + MAX ( - 87 ) AS col0
----
-87

query I rowsort
SELECT - 56 + 25 AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-732
SELECT DISTINCT 25 + - + COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-732
SELECT DISTINCT 25 + - + COUNT ( * )
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-733
SELECT ALL - CAST( NULL AS SIGNED ) / 2
----
NULL

skipif mysql # not compatible
query I rowsort label-733
SELECT ALL - CAST ( NULL AS INTEGER ) / 2
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-735
SELECT SUM( DISTINCT - + 38 ) DIV - 50 * - 45 * + 24 + 19 + + + 6 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-735
SELECT SUM ( DISTINCT - + 38 ) / - 50 * - 45 * + 24 + 19 + + + 6 AS col2
----
25

query I rowsort
SELECT 46 - + 4 AS col2
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-737
SELECT DISTINCT - 84 AS col0, CAST( NULL AS SIGNED ) AS col2
----
-84
NULL

skipif mysql # not compatible
query II rowsort label-737
SELECT DISTINCT - 84 AS col0, CAST ( NULL AS INTEGER ) AS col2
----
-84
NULL

query II rowsort
SELECT + 24 AS col2, - 9
----
24
-9

query II rowsort
SELECT + 26, 10 + - - 57 col0
----
26
67

query I rowsort
SELECT ALL ( - + 47 ) * + - 12 + 56 + + 1 + + + ( - 71 ) * + 90 col0
----
-5769

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-741
SELECT ALL + 9 DIV + SUM( DISTINCT 72 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-741
SELECT ALL + 9 / + SUM ( DISTINCT 72 ) AS col1
----
0

query II rowsort
SELECT - 93 col1, + 48
----
-93
48

query I rowsort
SELECT + ( - 53 ) * + - 39
----
2067

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-744
SELECT ALL - + 60 / ( - AVG ( DISTINCT + + CAST( NULL AS DECIMAL ) ) ) + 85 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-744
SELECT ALL - + 60 / ( - AVG ( DISTINCT + + CAST ( NULL AS REAL ) ) ) + 85 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 37 * - + 85 + + 19
----
-3126

onlyif mysql # aggregate syntax: 
query I rowsort label-746
SELECT - ( + + MIN( - - 69 ) ) col1
----
-69

skipif mysql # not compatible
query I rowsort label-746
SELECT - ( + + MIN ( - - 69 ) ) col1
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-747
SELECT CAST( NULL AS SIGNED ) / + COALESCE ( - + 11, 67 * - - 86 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-747
SELECT CAST ( NULL AS INTEGER ) / + COALESCE ( - + 11, 67 * - - 86 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-748
SELECT DISTINCT + MAX( + 27 ) + - 13
----
14

skipif mysql # not compatible
query I rowsort label-748
SELECT DISTINCT + MAX ( + 27 ) + - 13
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-749
SELECT 45 DIV + 77 col2
----
0

skipif mysql # not compatible
query I rowsort label-749
SELECT 45 / + 77 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-750
SELECT - COUNT( * ) * + + 16 * 29
----
-464

skipif mysql # not compatible
query I rowsort label-750
SELECT - COUNT ( * ) * + + 16 * 29
----
-464

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-751
SELECT ALL + - CASE CAST( 44 AS DECIMAL ) WHEN - - 45 + + + 25 THEN + 30 END + NULLIF ( + ( - 88 ), - 89 ) + + 26 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-751
SELECT ALL + - CASE CAST ( 44 AS REAL ) WHEN - - 45 + + + 25 THEN + 30 END + NULLIF ( + ( - 88 ), - 89 ) + + 26 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-752
SELECT ALL + 34 * - MAX( 8 ) * COUNT( * ) + 13 * 18 * 96 + + 96 * 60 * 54
----
333232

skipif mysql # not compatible
query I rowsort label-752
SELECT ALL + 34 * - MAX ( 8 ) * COUNT ( * ) + 13 * 18 * 96 + + 96 * 60 * 54
----
333232

onlyif mysql # aggregate syntax: 
query I rowsort label-753
SELECT ALL SUM( ALL - + 65 ) + + 44 * 66 AS col1
----
2839

skipif mysql # not compatible
query I rowsort label-753
SELECT ALL SUM ( ALL - + 65 ) + + 44 * 66 AS col1
----
2839

query I rowsort
SELECT ALL + + 5 + + + 37 AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-755
SELECT + COUNT( ALL 23 ) + - 78 AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-755
SELECT + COUNT ( ALL 23 ) + - 78 AS col2
----
-77

query I rowsort
SELECT ( - 0 ) - 80 AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-757
SELECT DISTINCT 43 + + ( 67 ) + - ( COALESCE ( + - 14, + - COUNT( * ) - - 33 ) ) + + - 67 * + 64 AS col0
----
-4164

skipif mysql # not compatible
query I rowsort label-757
SELECT DISTINCT 43 + + ( 67 ) + - ( COALESCE ( + - 14, + - COUNT ( * ) - - 33 ) ) + + - 67 * + 64 AS col0
----
-4164

onlyif mysql # aggregate syntax: 
query I rowsort label-758
SELECT ALL + COUNT( * ) + + + 91 + - SUM( ALL 86 ) * COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-758
SELECT ALL + COUNT ( * ) + + + 91 + - SUM ( ALL 86 ) * COUNT ( * )
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-759
SELECT CAST( - + 48 AS SIGNED ) * + 24 AS col0
----
-1152

skipif mysql # not compatible
query I rowsort label-759
SELECT CAST ( - + 48 AS INTEGER ) * + 24 AS col0
----
-1152

query I rowsort
SELECT 63 + - 29 AS col0
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-761
SELECT - 50 AS col2, + 76 + 54 - 67 * + MAX( 73 ) AS col2
----
-50
-4761

skipif mysql # not compatible
query II rowsort label-761
SELECT - 50 AS col2, + 76 + 54 - 67 * + MAX ( 73 ) AS col2
----
-50
-4761

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-762
SELECT ALL - + 0 + 87 * + MAX( DISTINCT 68 ) + - NULLIF ( CAST( - 63 AS SIGNED ), + 90 ) DIV 51 + + + MAX( + + 44 ) col1
----
5961

skipif mysql # not compatible
query I rowsort label-762
SELECT ALL - + 0 + 87 * + MAX ( DISTINCT 68 ) + - NULLIF ( CAST ( - 63 AS INTEGER ), + 90 ) / 51 + + + MAX ( + + 44 ) col1
----
5961

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-763
SELECT DISTINCT 88 * - COUNT( * ) - - + 95 DIV SUM( DISTINCT CAST( - ( + + 33 ) AS SIGNED ) ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-763
SELECT DISTINCT 88 * - COUNT ( * ) - - + 95 / SUM ( DISTINCT CAST ( - ( + + 33 ) AS INTEGER ) ) AS col0
----
-90

query I rowsort
SELECT - + 32 * - + 1 + + 70 * + + 68 AS col2
----
4792

onlyif mysql # DIV for integer division: 
query I rowsort label-765
SELECT ALL 86 DIV + - 54 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-765
SELECT ALL 86 / + - 54 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-766
SELECT + MAX( ALL 20 ) AS col0, - 4 * - 21
----
20
84

skipif mysql # not compatible
query II rowsort label-766
SELECT + MAX ( ALL 20 ) AS col0, - 4 * - 21
----
20
84

onlyif mysql # aggregate syntax: 
query I rowsort label-767
SELECT DISTINCT 21 * - NULLIF ( - 35, + 64 * COUNT( + + 45 ) )
----
735

skipif mysql # not compatible
query I rowsort label-767
SELECT DISTINCT 21 * - NULLIF ( - 35, + 64 * COUNT ( + + 45 ) )
----
735

query II rowsort
SELECT + 44 * 36 AS col0, 87
----
1584
87

query II rowsort
SELECT ALL 56 * 15 * - 8 * + + ( - 66 ), - 94 * + - 16 AS col1
----
443520
1504

query I rowsort
SELECT + 38 - - 18 AS col1
----
56

query I rowsort
SELECT - 3 * 27 AS col0
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-772
SELECT DISTINCT CASE WHEN NULL NOT BETWEEN NULL AND - CAST( NULL AS SIGNED ) THEN - 87 * 73 + - 33 * 76 ELSE NULL END * + ( COUNT( + + 58 ) ) * 78 * + 54 * - 19 / + ( NULLIF ( + 33, - SUM( 62 ) * 26 ) ) * 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-772
SELECT DISTINCT CASE WHEN NULL NOT BETWEEN NULL AND - CAST ( NULL AS INTEGER ) THEN - 87 * 73 + - 33 * 76 ELSE NULL END * + ( COUNT ( + + 58 ) ) * 78 * + 54 * - 19 / + ( NULLIF ( + 33, - SUM ( 62 ) * 26 ) ) * 15 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-773
SELECT + CASE - 42 WHEN + AVG ( DISTINCT 34 ) THEN + 91 - + COUNT( * ) ELSE - - CASE 2 WHEN - COUNT( - 44 ) THEN - + 89 * + MAX( DISTINCT - 22 ) / 65 END END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-773
SELECT + CASE - 42 WHEN + AVG ( DISTINCT 34 ) THEN + 91 - + COUNT ( * ) ELSE - - CASE 2 WHEN - COUNT ( - 44 ) THEN - + 89 * + MAX ( DISTINCT - 22 ) / 65 END END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-774
SELECT ALL + NULLIF ( + COUNT( ALL + + 48 ), - COALESCE ( + 41, - - 99, - CAST( NULL AS SIGNED ) ) * + - ( - 54 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-774
SELECT ALL + NULLIF ( + COUNT ( ALL + + 48 ), - COALESCE ( + 41, - - 99, - CAST ( NULL AS INTEGER ) ) * + - ( - 54 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-775
SELECT + 84 - ( COUNT( * ) ) * - - 28
----
56

skipif mysql # not compatible
query I rowsort label-775
SELECT + 84 - ( COUNT ( * ) ) * - - 28
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-776
SELECT - ( 72 ) * - + 84 - - ( - + 19 ) * - CASE 12 WHEN - 45 * + 32 THEN - MAX( ALL + - 62 ) + + NULLIF ( 36, + + ( 4 ) * - + 21 * + 46 ) ELSE NULL END * 21
----
NULL

skipif mysql # not compatible
query I rowsort label-776
SELECT - ( 72 ) * - + 84 - - ( - + 19 ) * - CASE 12 WHEN - 45 * + 32 THEN - MAX ( ALL + - 62 ) + + NULLIF ( 36, + + ( 4 ) * - + 21 * + 46 ) ELSE NULL END * 21
----
NULL

query II rowsort
SELECT - 81 * - - 94 + - 48 AS col1, + 85 - 77 + 16 * 41 - 87 AS col1
----
-7662
577

query I rowsort
SELECT + 48 + + - 51
----
-3

query I rowsort
SELECT + ( + 28 ) * + 21 * + 65 col1
----
38220

query I rowsort
SELECT + 86 + 92 AS col0
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-781
SELECT DISTINCT - 24 * - 52 * MIN( ALL + 41 )
----
51168

skipif mysql # not compatible
query I rowsort label-781
SELECT DISTINCT - 24 * - 52 * MIN ( ALL + 41 )
----
51168

query I rowsort
SELECT ALL 69 + - + 1 AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-783
SELECT DISTINCT COUNT( ALL + - 3 ) * + - 76 AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-783
SELECT DISTINCT COUNT ( ALL + - 3 ) * + - 76 AS col0
----
-76

query I rowsort
SELECT ALL - 74 + + 64 AS col1
----
-10

query II rowsort
SELECT DISTINCT - - ( + 7 ) * + 1 AS col0, + 94
----
7
94

query I rowsort
SELECT ALL + - 53 + 9 - - 41 AS col2
----
-3

query I rowsort
SELECT - + 94 + + 28 AS col0
----
-66

query II rowsort
SELECT ALL ( + 91 ), 98 + - - ( - 0 ) AS col1
----
91
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-789
SELECT - CAST( - MIN( - 90 ) AS SIGNED )
----
-90

skipif mysql # not compatible
query I rowsort label-789
SELECT - CAST ( - MIN ( - 90 ) AS INTEGER )
----
-90

query I rowsort
SELECT - - ( - 20 ) + + 54 * + 54
----
2896

onlyif mysql # DIV for integer division: 
query II rowsort label-791
SELECT DISTINCT - 81 DIV - ( + - 70 ), + ( 18 ) * - 85 AS col0
----
-1
-1530

skipif mysql # not compatible
query II rowsort label-791
SELECT DISTINCT - 81 / - ( + - 70 ), + ( 18 ) * - 85 AS col0
----
-1
-1530

query I rowsort
SELECT - 76 + + - 84 * + 27 + - - 14 + + 69 + ( + + 93 )
----
-2168

onlyif mysql # aggregate syntax: 
query I rowsort label-793
SELECT - 15 * + + COUNT( * ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-793
SELECT - 15 * + + COUNT ( * ) AS col2
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-794
SELECT DISTINCT - 37 DIV - 89 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-794
SELECT DISTINCT - 37 / - 89 + + COUNT ( * )
----
1

query I rowsort
SELECT ALL + 78 - + - 49
----
127

query I rowsort
SELECT DISTINCT - - 98 * - - 1 * 42 * + 52 + 35
----
214067

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-797
SELECT DISTINCT + CAST( CASE - - 3 WHEN - MIN( DISTINCT - 85 ) * 49 * - 99 THEN + 75 + + 61 + + - 4 / + + 73 + - 43 + - 92 + + 44 * + + ( - 50 ) * SUM( ALL - 43 ) / - CAST( NULL AS DECIMAL ) - - 68 WHEN 3 THEN NULL END AS SIGNED ) * 24 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-797
SELECT DISTINCT + CAST ( CASE - - 3 WHEN - MIN ( DISTINCT - 85 ) * 49 * - 99 THEN + 75 + + 61 + + - 4 / + + 73 + - 43 + - 92 + + 44 * + + ( - 50 ) * SUM ( ALL - 43 ) / - CAST ( NULL AS REAL ) - - 68 WHEN 3 THEN NULL END AS INTEGER ) * 24 col1
----
NULL

query I rowsort
SELECT ALL + 29 * - + 29
----
-841

query II rowsort
SELECT - 57 * ( 94 ), - 12 AS col1
----
-5358
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-800
SELECT DISTINCT - ( - 25 ) * - 39 + 54 + + ( - - 77 ) DIV 93 - - 79 * - 56
----
-5345

skipif mysql # not compatible
query I rowsort label-800
SELECT DISTINCT - ( - 25 ) * - 39 + 54 + + ( - - 77 ) / 93 - - 79 * - 56
----
-5345

query II rowsort
SELECT + 56, + 67 AS col2
----
56
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-802
SELECT CAST( 75 AS SIGNED ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-802
SELECT CAST ( 75 AS INTEGER ) AS col1
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-803
SELECT ALL - 68 DIV + 94 - - SUM( ALL - 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-803
SELECT ALL - 68 / + 94 - - SUM ( ALL - 51 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-804
SELECT - 21 * + MAX( - + ( 84 ) ) AS col0
----
1764

skipif mysql # not compatible
query I rowsort label-804
SELECT - 21 * + MAX ( - + ( 84 ) ) AS col0
----
1764

query I rowsort
SELECT + 27 * - - 61
----
1647

query I rowsort
SELECT - 97 - + 72
----
-169

query I rowsort
SELECT + ( 46 ) col1
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-808
SELECT ALL + 7, + 72 + - + 15 - - 84 * 37 - - + 60 + - COUNT( * ) + 22 AS col0
----
7
3246

skipif mysql # not compatible
query II rowsort label-808
SELECT ALL + 7, + 72 + - + 15 - - 84 * 37 - - + 60 + - COUNT ( * ) + 22 AS col0
----
7
3246

query I rowsort
SELECT + 91 * + ( + + 99 ) * - 20 * + - 82 + - - 22 AS col0
----
14774782

query I rowsort
SELECT ALL 2 * + 10 AS col1
----
20

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-811
SELECT DISTINCT - 36 DIV NULLIF ( + + 75, - 14 ) AS col1, CAST( - ( - 3 ) AS SIGNED )
----
0
3

skipif mysql # not compatible
query II rowsort label-811
SELECT DISTINCT - 36 / NULLIF ( + + 75, - 14 ) AS col1, CAST ( - ( - 3 ) AS INTEGER )
----
0
3

onlyif mysql # aggregate syntax: 
query I rowsort label-812
SELECT DISTINCT 32 * - NULLIF ( + - COUNT( * ), - MAX( DISTINCT + 35 ) ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-812
SELECT DISTINCT 32 * - NULLIF ( + - COUNT ( * ), - MAX ( DISTINCT + 35 ) ) AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-813
SELECT ( - - NULLIF ( + COUNT( * ), + 34 ) )
----
1

skipif mysql # not compatible
query I rowsort label-813
SELECT ( - - NULLIF ( + COUNT ( * ), + 34 ) )
----
1

query I rowsort
SELECT - 55 * - + 22
----
1210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-815
SELECT + CAST( NULL AS SIGNED ) + + + MIN( - 64 ) / 97 * 0 * + 52, + COUNT( * ) * + COUNT( * ) col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-815
SELECT + CAST ( NULL AS INTEGER ) + + + MIN ( - 64 ) / 97 * 0 * + 52, + COUNT ( * ) * + COUNT ( * ) col1
----
NULL
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-816
SELECT + COUNT( * ) DIV - 92
----
0

skipif mysql # not compatible
query I rowsort label-816
SELECT + COUNT ( * ) / - 92
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-817
SELECT + COUNT( * ) * + COALESCE ( 9, CAST( NULL AS SIGNED ) ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-817
SELECT + COUNT ( * ) * + COALESCE ( 9, CAST ( NULL AS INTEGER ) ) AS col0
----
9

query I rowsort
SELECT + 31 + - + 50 AS col2
----
-19

query I rowsort
SELECT ALL 52 * ( - 91 ) + - 49
----
-4781

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-820
SELECT - COALESCE ( + CAST( NULL AS SIGNED ), + NULLIF ( COUNT( * ), + 78 + 12 ) + + - SUM( 11 ), 93 )
----
10

skipif mysql # not compatible
query I rowsort label-820
SELECT - COALESCE ( + CAST ( NULL AS INTEGER ), + NULLIF ( COUNT ( * ), + 78 + 12 ) + + - SUM ( 11 ), 93 )
----
10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-821
SELECT ALL + CAST( NULL AS DECIMAL ) * + 95 / - 29 + - COUNT( DISTINCT - 62 ) + + - 36 col1, + 66 AS col2
----
NULL
66

skipif mysql # not compatible
query II rowsort label-821
SELECT ALL + CAST ( NULL AS REAL ) * + 95 / - 29 + - COUNT ( DISTINCT - 62 ) + + - 36 col1, + 66 AS col2
----
NULL
66

query I rowsort
SELECT ALL + 39 * + - COALESCE ( - 49, - 73 * - ( - - 89 ) ) + 98 AS col0
----
2009

query I rowsort
SELECT + 6 * + - 56 + - + ( - 91 ) AS col1
----
-245

onlyif mysql # aggregate syntax: 
query I rowsort label-824
SELECT ALL + 89 * - COUNT( * ) - + 44 + 41 * - - 57 AS col0
----
2204

skipif mysql # not compatible
query I rowsort label-824
SELECT ALL + 89 * - COUNT ( * ) - + 44 + 41 * - - 57 AS col0
----
2204

onlyif mysql # aggregate syntax: 
query I rowsort label-825
SELECT DISTINCT 63 * 28 + - + 32 + CASE - 29 WHEN - 83 THEN + 83 END / + + ( + 46 ) * - 8 * + 28 * 28 + NULLIF ( 23, + 73 + - 32 * + + ( - 83 ) + COUNT( * ) ) * + 21 + + 46 * 2
----
NULL

skipif mysql # not compatible
query I rowsort label-825
SELECT DISTINCT 63 * 28 + - + 32 + CASE - 29 WHEN - 83 THEN + 83 END / + + ( + 46 ) * - 8 * + 28 * 28 + NULLIF ( 23, + 73 + - 32 * + + ( - 83 ) + COUNT ( * ) ) * + 21 + + 46 * 2
----
NULL

query II rowsort
SELECT ALL 33 AS col1, 60 AS col1
----
33
60

query II rowsort
SELECT 63 col1, 46
----
63
46

query I rowsort
SELECT ALL - - 38 * - - 45 col0
----
1710

onlyif mysql # aggregate syntax: 
query I rowsort label-829
SELECT NULLIF ( - 67, - NULLIF ( - NULLIF ( - COUNT( * ), ( - - 16 ) + + NULLIF ( - CASE - 31 WHEN - 18 THEN - + ( 45 ) WHEN + - 92 THEN NULL ELSE 86 END, + - ( - 77 ) + - + 62 - - NULLIF ( - 29, + 60 + - ( 8 - + 52 ) * + 69 ) * + 87 * - 34 ) ), - 97 - - 5 ) ) - - 69
----
2

skipif mysql # not compatible
query I rowsort label-829
SELECT NULLIF ( - 67, - NULLIF ( - NULLIF ( - COUNT ( * ), ( - - 16 ) + + NULLIF ( - CASE - 31 WHEN - 18 THEN - + ( 45 ) WHEN + - 92 THEN NULL ELSE 86 END, + - ( - 77 ) + - + 62 - - NULLIF ( - 29, + 60 + - ( 8 - + 52 ) * + 69 ) * + 87 * - 34 ) ), - 97 - - 5 ) ) - - 69
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-830
SELECT DISTINCT - 5 AS col1, COUNT( * )
----
-5
1

skipif mysql # not compatible
query II rowsort label-830
SELECT DISTINCT - 5 AS col1, COUNT ( * )
----
-5
1

query I rowsort
SELECT DISTINCT 92 * + ( 60 ) AS col0
----
5520

query II rowsort
SELECT DISTINCT 68 AS col1, NULLIF ( + + 39, + 0 ) AS col2
----
68
39

query I rowsort
SELECT DISTINCT - 0 - + + 11 AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-834
SELECT 56 * - - COUNT( * ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-834
SELECT 56 * - - COUNT ( * ) AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-835
SELECT 15 - + 92 * - 96 + + COUNT( * )
----
8848

skipif mysql # not compatible
query I rowsort label-835
SELECT 15 - + 92 * - 96 + + COUNT ( * )
----
8848

query II rowsort
SELECT ALL 74 AS col1, 7 + - ( - 71 ) + + 36 AS col0
----
74
114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-837
SELECT 26 DIV COUNT( * ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-837
SELECT 26 / COUNT ( * ) AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-838
SELECT 36 + + COUNT( * ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-838
SELECT 36 + + COUNT ( * ) AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-839
SELECT 45 + + 67 * - COALESCE ( + - ( 5 ), ( - 86 ) + - COUNT( * ) + - 7 * + 35 + + 15 * - 81 - + 81 ) AS col0
----
380

skipif mysql # not compatible
query I rowsort label-839
SELECT 45 + + 67 * - COALESCE ( + - ( 5 ), ( - 86 ) + - COUNT ( * ) + - 7 * + 35 + + 15 * - 81 - + 81 ) AS col0
----
380

onlyif mysql # DIV for integer division: 
query I rowsort label-840
SELECT ALL + ( 7 ) DIV - 53 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-840
SELECT ALL + ( 7 ) / - 53 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-841
SELECT 52 DIV - 82 * + NULLIF ( - COUNT( * ), - - ( + 39 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-841
SELECT 52 / - 82 * + NULLIF ( - COUNT ( * ), - - ( + 39 ) ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-842
SELECT ALL + CAST( NULL AS SIGNED ) * 30
----
NULL

skipif mysql # not compatible
query I rowsort label-842
SELECT ALL + CAST ( NULL AS INTEGER ) * 30
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-843
SELECT ALL - 22 * - + SUM( DISTINCT + + 0 )
----
0

skipif mysql # not compatible
query I rowsort label-843
SELECT ALL - 22 * - + SUM ( DISTINCT + + 0 )
----
0

query I rowsort
SELECT 61 * + 53 col0
----
3233

query I rowsort
SELECT DISTINCT + 95 + + 32 * - 19 - ( - + 39 ) col1
----
-474

query I rowsort
SELECT DISTINCT - 40 * + - 84 AS col0
----
3360

query I rowsort
SELECT DISTINCT + 68 + - 97 * + 66
----
-6334

onlyif mysql # aggregate syntax: 
query I rowsort label-848
SELECT MAX( 25 ) + - - CASE 61 WHEN + NULLIF ( + 69, + COALESCE ( 98, 80 - + 50, - 67 / COUNT( * ) ) * - - 3 * 49 / + + 65 ) THEN - MIN( 65 ) WHEN + 74 THEN NULL WHEN - 48 THEN NULL END * - ( + 83 / NULLIF ( 33, 97 * 78 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-848
SELECT MAX ( 25 ) + - - CASE 61 WHEN + NULLIF ( + 69, + COALESCE ( 98, 80 - + 50, - 67 / COUNT ( * ) ) * - - 3 * 49 / + + 65 ) THEN - MIN ( 65 ) WHEN + 74 THEN NULL WHEN - 48 THEN NULL END * - ( + 83 / NULLIF ( 33, 97 * 78 ) )
----
NULL

query I rowsort
SELECT 50 * + 58 + - + 79
----
2821

query I rowsort
SELECT DISTINCT 13 + - - 50
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-851
SELECT ALL + 38 + + + 41 + + - SUM( ALL + - ( - 10 ) ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-851
SELECT ALL + 38 + + + 41 + + - SUM ( ALL + - ( - 10 ) ) AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-852
SELECT DISTINCT + ( 37 ) * - + COUNT( * ) * + 31 * + COUNT( ALL + 32 )
----
-1147

skipif mysql # not compatible
query I rowsort label-852
SELECT DISTINCT + ( 37 ) * - + COUNT ( * ) * + 31 * + COUNT ( ALL + 32 )
----
-1147

onlyif mysql # aggregate syntax: 
query I rowsort label-853
SELECT - SUM( DISTINCT - + 31 ) * + COALESCE ( 88, 8 + - COUNT( * ) + - NULLIF ( - - 43, + NULLIF ( 20, + SUM( DISTINCT + 6 ) ) * + - 28 ) + - + ( COUNT( * ) ) + 51 * + 27 * + + ( - 59 ) ) * - CASE 55 WHEN + 80 THEN NULL ELSE CASE + 80 WHEN ( + COUNT( * ) ) THEN 30 * + 11 ELSE ( - 74 ) * - 77 END END + 35 + 37 * - 53
----
-15546070

skipif mysql # not compatible
query I rowsort label-853
SELECT - SUM ( DISTINCT - + 31 ) * + COALESCE ( 88, 8 + - COUNT ( * ) + - NULLIF ( - - 43, + NULLIF ( 20, + SUM ( DISTINCT + 6 ) ) * + - 28 ) + - + ( COUNT ( * ) ) + 51 * + 27 * + + ( - 59 ) ) * - CASE 55 WHEN + 80 THEN NULL ELSE CASE + 80 WHEN ( + COUNT ( * ) ) THEN 30 * + 11 ELSE ( - 74 ) * - 77 END END + 35 + 37 * - 53
----
-15546070

query I rowsort
SELECT - COALESCE ( - 79, - + 32 ) + + ( - - 16 ) col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-855
SELECT ALL + SUM( DISTINCT ( 66 ) ) - COUNT( + 68 )
----
65

skipif mysql # not compatible
query I rowsort label-855
SELECT ALL + SUM ( DISTINCT ( 66 ) ) - COUNT ( + 68 )
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-856
SELECT 23 + + 23 * - MIN( DISTINCT - 19 ) * - CAST( NULL AS SIGNED ) + 51 * - 23 * + COUNT( * ) / - - 35 + + + 37 / CAST( NULL AS SIGNED ) * + + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-856
SELECT 23 + + 23 * - MIN ( DISTINCT - 19 ) * - CAST ( NULL AS INTEGER ) + 51 * - 23 * + COUNT ( * ) / - - 35 + + + 37 / CAST ( NULL AS INTEGER ) * + + 11
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-857
SELECT + COUNT( * ) * + ( + 50 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-857
SELECT + COUNT ( * ) * + ( + 50 ) AS col2
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-858
SELECT + ( - 6 ) + - - 85 + - CAST( NULL AS SIGNED ) * 61 * + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-858
SELECT + ( - 6 ) + - - 85 + - CAST ( NULL AS INTEGER ) * 61 * + 10
----
NULL

query I rowsort
SELECT ALL + 53 * 79 - - ( - 27 )
----
4160

onlyif mysql # aggregate syntax: 
query I rowsort label-860
SELECT + 97 + - - COUNT( * ) * + 17
----
114

skipif mysql # not compatible
query I rowsort label-860
SELECT + 97 + - - COUNT ( * ) * + 17
----
114

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-861
SELECT 92 * - NULLIF ( - 39, + - NULLIF ( + 35, + 17 * - - 51 ) ) DIV + + COUNT( * ) * + - COUNT( * ) + - 3, 29 AS col0
----
-3591
29

skipif mysql # not compatible
query II rowsort label-861
SELECT 92 * - NULLIF ( - 39, + - NULLIF ( + 35, + 17 * - - 51 ) ) / + + COUNT ( * ) * + - COUNT ( * ) + - 3, 29 AS col0
----
-3591
29

query I rowsort
SELECT - 24 * - + 49 + - - 62
----
1238

onlyif mysql # DIV for integer division: 
query I rowsort label-863
SELECT ALL 94 DIV - 76 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-863
SELECT ALL 94 / - 76 AS col2
----
-1

query I rowsort
SELECT DISTINCT ( + - 41 )
----
-41

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-865
SELECT CASE + 8 WHEN + MIN( CAST( NULL AS DECIMAL ) ) * + 76 + + - 25 THEN ( - 10 ) * - CASE 89 WHEN 78 THEN + COUNT( * ) + + - 35 WHEN 71 + 49 THEN + 80 WHEN + 6 + - 21 THEN - - COUNT( * ) END / 95 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-865
SELECT CASE + 8 WHEN + MIN ( CAST ( NULL AS REAL ) ) * + 76 + + - 25 THEN ( - 10 ) * - CASE 89 WHEN 78 THEN + COUNT ( * ) + + - 35 WHEN 71 + 49 THEN + 80 WHEN + 6 + - 21 THEN - - COUNT ( * ) END / 95 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-866
SELECT COUNT( DISTINCT NULLIF ( NULLIF ( - ( 34 ), 51 + 86 ), + + 0 ) ) * - 87 * - 48 * 82
----
342432

skipif mysql # not compatible
query I rowsort label-866
SELECT COUNT ( DISTINCT NULLIF ( NULLIF ( - ( 34 ), 51 + 86 ), + + 0 ) ) * - 87 * - 48 * 82
----
342432

query I rowsort
SELECT + 56 * + + 97 * 82
----
445424

query I rowsort
SELECT DISTINCT - ( + - NULLIF ( - + 90, - 28 / - 49 ) ) col0
----
-90

query I rowsort
SELECT ALL 92 * 17 col2
----
1564

onlyif mysql # DIV for integer division: 
query I rowsort label-870
SELECT NULLIF ( + 52, + 49 * 60 ) + + ( + + COALESCE ( + + 11, 5 DIV + - 84 ) ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-870
SELECT NULLIF ( + 52, + 49 * 60 ) + + ( + + COALESCE ( + + 11, 5 / + - 84 ) ) AS col1
----
63

query I rowsort
SELECT DISTINCT NULLIF ( + + 83, - 78 ) * - ( - + 7 )
----
581

onlyif mysql # aggregate syntax: 
query I rowsort label-872
SELECT ALL CASE + 38 WHEN - - 73 THEN NULL WHEN - - COUNT( * ) THEN + + ( + ( 97 ) ) * - - COUNT( * ) ELSE + COUNT( * ) END + - 66
----
-65

skipif mysql # not compatible
query I rowsort label-872
SELECT ALL CASE + 38 WHEN - - 73 THEN NULL WHEN - - COUNT ( * ) THEN + + ( + ( 97 ) ) * - - COUNT ( * ) ELSE + COUNT ( * ) END + - 66
----
-65

query II rowsort
SELECT - 64 AS col0, + ( + 13 ) AS col1
----
-64
13

onlyif mysql # DIV for integer division: 
query I rowsort label-874
SELECT ALL + 81 + + - 37 * + 88 + 18 * 13 DIV + + 75
----
-3172

skipif mysql # not compatible
query I rowsort label-874
SELECT ALL + 81 + + - 37 * + 88 + 18 * 13 / + + 75
----
-3172

query I rowsort
SELECT DISTINCT 91 + 78 AS col2
----
169

query I rowsort
SELECT 77 + + 54 - - 2 * 46 + + 79 * + 74
----
6069

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-877
SELECT 80 * COUNT( * ) * 82 DIV 4 col2
----
1640

skipif mysql # not compatible
query I rowsort label-877
SELECT 80 * COUNT ( * ) * 82 / 4 col2
----
1640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-878
SELECT + 82 * - 91 + - CAST( 75 AS SIGNED ) AS col2
----
-7537

skipif mysql # not compatible
query I rowsort label-878
SELECT + 82 * - 91 + - CAST ( 75 AS INTEGER ) AS col2
----
-7537

onlyif mysql # aggregate syntax: 
query I rowsort label-879
SELECT ALL MAX( DISTINCT - ( + 38 ) ) * ( + 39 ) + 42 AS col0
----
-1440

skipif mysql # not compatible
query I rowsort label-879
SELECT ALL MAX ( DISTINCT - ( + 38 ) ) * ( + 39 ) + 42 AS col0
----
-1440

onlyif mysql # aggregate syntax: 
query I rowsort label-880
SELECT MAX( ALL - 1 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-880
SELECT MAX ( ALL - 1 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-881
SELECT 82 DIV 84 + 79 + 95
----
174

skipif mysql # not compatible
query I rowsort label-881
SELECT 82 / 84 + 79 + 95
----
174

onlyif mysql # DIV for integer division: 
query I rowsort label-882
SELECT 77 DIV - 26 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-882
SELECT 77 / - 26 AS col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-883
SELECT ALL - AVG ( DISTINCT ( + 79 ) ) * + 16 * + COUNT( * ) * + - 87 - - 22 - + COUNT( * ) * - 19 + - CASE COUNT( * ) WHEN 75 THEN NULL WHEN + NULLIF ( - ( 55 ), + 55 * - + 61 * - 69 * - COUNT( * ) * - 84 + 70 / 97 ) THEN NULL ELSE + ( 46 ) * + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-883
SELECT ALL - AVG ( DISTINCT ( + 79 ) ) * + 16 * + COUNT ( * ) * + - 87 - - 22 - + COUNT ( * ) * - 19 + - CASE COUNT ( * ) WHEN 75 THEN NULL WHEN + NULLIF ( - ( 55 ), + 55 * - + 61 * - 69 * - COUNT ( * ) * - 84 + 70 / 97 ) THEN NULL ELSE + ( 46 ) * + CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-884
SELECT DISTINCT 6 * + COUNT( * ) + - 71 AS col0, 46 * - 82 * + 74 * + 55 + - CAST( NULL AS SIGNED ) + 9
----
-65
NULL

skipif mysql # not compatible
query II rowsort label-884
SELECT DISTINCT 6 * + COUNT ( * ) + - 71 AS col0, 46 * - 82 * + 74 * + 55 + - CAST ( NULL AS INTEGER ) + 9
----
-65
NULL

query I rowsort
SELECT 96 * + 19 * 25 AS col2
----
45600

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-886
SELECT - CAST( NULL AS DECIMAL ) * - + 1 + - 65 AS col0, 79 DIV - 35 AS col0
----
NULL
-2

skipif mysql # not compatible
query II rowsort label-886
SELECT - CAST ( NULL AS REAL ) * - + 1 + - 65 AS col0, 79 / - 35 AS col0
----
NULL
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-887
SELECT 58 + - NULLIF ( 44, - 10 ) + + COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-887
SELECT 58 + - NULLIF ( 44, - 10 ) + + COUNT ( * )
----
15

query I rowsort
SELECT + 15 + + 49
----
64

query II rowsort
SELECT ALL - + 98 AS col2, 90
----
-98
90

onlyif mysql # aggregate syntax: 
query I rowsort label-890
SELECT ALL + - COUNT( DISTINCT 25 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-890
SELECT ALL + - COUNT ( DISTINCT 25 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-891
SELECT ALL + COUNT( - 22 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-891
SELECT ALL + COUNT ( - 22 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-892
SELECT ALL + + MIN( ALL 47 ) * - - 93
----
4371

skipif mysql # not compatible
query I rowsort label-892
SELECT ALL + + MIN ( ALL 47 ) * - - 93
----
4371

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-893
SELECT - + 36 + 53 + 94 * + CASE + 28 WHEN 87 + - + 91 THEN - - COUNT( * ) * NULLIF ( CAST( - CAST( NULL AS SIGNED ) AS SIGNED ), 54 ) END * + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-893
SELECT - + 36 + 53 + 94 * + CASE + 28 WHEN 87 + - + 91 THEN - - COUNT ( * ) * NULLIF ( CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ), 54 ) END * + 8
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-894
SELECT - + COUNT( * ) DIV + 61 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-894
SELECT - + COUNT ( * ) / + 61 AS col2
----
0

query I rowsort
SELECT DISTINCT 10 * + ( - ( + 21 ) )
----
-210

query I rowsort
SELECT ALL + 75 + + 25 * + 59 AS col2
----
1550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-897
SELECT DISTINCT - 13 + NULLIF ( + - CASE + 22 WHEN + + 50 / + ( 29 ) * - COALESCE ( + - CAST( - 17 AS SIGNED ), - MAX( ALL + - 8 ) - 37 + ( + 0 ) + 35 + ( + NULLIF ( - - 18, + + 75 * - COUNT( * ) / 27 ) ) * + CASE 11 WHEN - 81 THEN 77 * - 76 END, - 72 ) + - COALESCE ( 78, 42, + CAST( NULL AS DECIMAL ) * 14 ) THEN - 0 WHEN ( 11 ) THEN NULL END, 49 + 17 ) + ( 93 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-897
SELECT DISTINCT - 13 + NULLIF ( + - CASE + 22 WHEN + + 50 / + ( 29 ) * - COALESCE ( + - CAST ( - 17 AS INTEGER ), - MAX ( ALL + - 8 ) - 37 + ( + 0 ) + 35 + ( + NULLIF ( - - 18, + + 75 * - COUNT ( * ) / 27 ) ) * + CASE 11 WHEN - 81 THEN 77 * - 76 END, - 72 ) + - COALESCE ( 78, 42, + CAST ( NULL AS REAL ) * 14 ) THEN - 0 WHEN ( 11 ) THEN NULL END, 49 + 17 ) + ( 93 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-898
SELECT ALL 56 + - + 11 * 78 + + COUNT( * )
----
-801

skipif mysql # not compatible
query I rowsort label-898
SELECT ALL 56 + - + 11 * 78 + + COUNT ( * )
----
-801

query II rowsort
SELECT 71, - 48 AS col1
----
71
-48

query I rowsort
SELECT DISTINCT 80 + + + 13 + + ( 93 ) * - - 62 AS col1
----
5859

onlyif mysql # aggregate syntax: 
query II rowsort label-901
SELECT ALL 38 + - + 41 + + 85 * + 69 AS col2, COUNT( * ) AS col0
----
5862
1

skipif mysql # not compatible
query II rowsort label-901
SELECT ALL 38 + - + 41 + + 85 * + 69 AS col2, COUNT ( * ) AS col0
----
5862
1

onlyif mysql # aggregate syntax: 
query I rowsort label-902
SELECT - MIN( DISTINCT + 9 ) col2
----
-9

skipif mysql # not compatible
query I rowsort label-902
SELECT - MIN ( DISTINCT + 9 ) col2
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-903
SELECT + 20 - + 31 - - 99 DIV 1
----
88

skipif mysql # not compatible
query I rowsort label-903
SELECT + 20 - + 31 - - 99 / 1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-904
SELECT DISTINCT 44 + - + COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-904
SELECT DISTINCT 44 + - + COUNT ( * )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-905
SELECT - CASE + ( - - ( 27 ) ) WHEN - - ( COUNT( * ) ) THEN + 70 END
----
NULL

skipif mysql # not compatible
query I rowsort label-905
SELECT - CASE + ( - - ( 27 ) ) WHEN - - ( COUNT ( * ) ) THEN + 70 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-906
SELECT ALL 29, CAST( NULL AS SIGNED ) - + + 11 AS col2
----
29
NULL

skipif mysql # not compatible
query II rowsort label-906
SELECT ALL 29, CAST ( NULL AS INTEGER ) - + + 11 AS col2
----
29
NULL

query I rowsort
SELECT DISTINCT 49 * 4
----
196

query I rowsort
SELECT ALL 8 + 69
----
77

query I rowsort
SELECT ALL 84 * + - 54 col2
----
-4536

query I rowsort
SELECT DISTINCT 1 * - + 44 AS col0
----
-44

query I rowsort
SELECT DISTINCT 8 * - 7 - 9
----
-65

query II rowsort
SELECT + 97, 85 AS col2
----
97
85

query II rowsort
SELECT - ( - - 21 ), 11 + 16 AS col1
----
-21
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-914
SELECT - 13 * - - 84 * - ( + 21 ), - 38 DIV + COUNT( * ) AS col0
----
22932
-38

skipif mysql # not compatible
query II rowsort label-914
SELECT - 13 * - - 84 * - ( + 21 ), - 38 / + COUNT ( * ) AS col0
----
22932
-38

query I rowsort
SELECT ALL - + 31 * 54 * 55 AS col1
----
-92070

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-916
SELECT - + CAST( NULL AS SIGNED ) * 33 * - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-916
SELECT - + CAST ( NULL AS INTEGER ) * 33 * - 26
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-917
SELECT ALL - 20 * - COUNT( ALL - - 44 )
----
20

skipif mysql # not compatible
query I rowsort label-917
SELECT ALL - 20 * - COUNT ( ALL - - 44 )
----
20

query I rowsort
SELECT ALL + ( + + 37 ) col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-919
SELECT - + 34 - - - COUNT( * ) col2
----
-35

skipif mysql # not compatible
query I rowsort label-919
SELECT - + 34 - - - COUNT ( * ) col2
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-920
SELECT ALL - 70 * COALESCE ( + 28, + 12, - - 19 ) DIV + 28 + - + COUNT( * ) - + 46
----
-117

skipif mysql # not compatible
query I rowsort label-920
SELECT ALL - 70 * COALESCE ( + 28, + 12, - - 19 ) / + 28 + - + COUNT ( * ) - + 46
----
-117

query I rowsort
SELECT - + 90 * 21
----
-1890

query I rowsort
SELECT - 68 + + 35 - + 92
----
-125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-923
SELECT - 82 + - 22 + + + CAST( NULL AS SIGNED ) * - 31 + + 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-923
SELECT - 82 + - 22 + + + CAST ( NULL AS INTEGER ) * - 31 + + 22 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-924
SELECT ALL COUNT( - 37 )
----
1

skipif mysql # not compatible
query I rowsort label-924
SELECT ALL COUNT ( - 37 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-925
SELECT ALL + - 42 * + - 12 * + COUNT( DISTINCT 83 ) + - 8 AS col0
----
496

skipif mysql # not compatible
query I rowsort label-925
SELECT ALL + - 42 * + - 12 * + COUNT ( DISTINCT 83 ) + - 8 AS col0
----
496

onlyif mysql # aggregate syntax: 
query I rowsort label-926
SELECT - 51 + - COUNT( * ) * COUNT( * ) * MAX( DISTINCT - ( - ( 74 ) ) )
----
-125

skipif mysql # not compatible
query I rowsort label-926
SELECT - 51 + - COUNT ( * ) * COUNT ( * ) * MAX ( DISTINCT - ( - ( 74 ) ) )
----
-125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-927
SELECT DISTINCT - 82 * + + COUNT( * ) + + + 94 DIV + + 26
----
-79

skipif mysql # not compatible
query I rowsort label-927
SELECT DISTINCT - 82 * + + COUNT ( * ) + + + 94 / + + 26
----
-79

query I rowsort
SELECT - 39 * + 42 * + 47
----
-76986

query I rowsort
SELECT - 44 + - 43 AS col1
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-930
SELECT DISTINCT CAST( MIN( ALL + 33 ) AS SIGNED ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-930
SELECT DISTINCT CAST ( MIN ( ALL + 33 ) AS INTEGER ) AS col2
----
33

query I rowsort
SELECT DISTINCT - 81 + 46 * - NULLIF ( + 93, - 59 + - 13 ) AS col2
----
-4359

onlyif mysql # aggregate syntax: 
query I rowsort label-932
SELECT DISTINCT - 73 * 53 * + 71 * + + COUNT( * )
----
-274699

skipif mysql # not compatible
query I rowsort label-932
SELECT DISTINCT - 73 * 53 * + 71 * + + COUNT ( * )
----
-274699

query I rowsort
SELECT DISTINCT + 19 * + + 4 AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-934
SELECT + 78 * + - COUNT( * ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-934
SELECT + 78 * + - COUNT ( * ) AS col2
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-935
SELECT - ( COUNT( * ) ), 58 / CASE + - 47 WHEN - + 50 + - 70 THEN - COUNT( * ) * - + 92 WHEN + 68 THEN 89 END AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-935
SELECT - ( COUNT ( * ) ), 58 / CASE + - 47 WHEN - + 50 + - 70 THEN - COUNT ( * ) * - + 92 WHEN + 68 THEN 89 END AS col2
----
-1
NULL

query I rowsort
SELECT - 25 - - + 29 - + 34 * - + 92
----
3132

onlyif mysql # DIV for integer division: 
query I rowsort label-937
SELECT + 31 DIV + + NULLIF ( + 49, + 87 ) * 23 * 7 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-937
SELECT + 31 / + + NULLIF ( + 49, + 87 ) * 23 * 7 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-938
SELECT ALL 37 DIV + COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-938
SELECT ALL 37 / + COUNT ( * )
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-939
SELECT - COUNT( * ) * - - COALESCE ( COALESCE ( + 44, + ( - - 52 ) DIV - - 33 * - 68 + + + MIN( ALL + 37 ) ), MAX( DISTINCT - - 43 ), 93 )
----
-44

skipif mysql # not compatible
query I rowsort label-939
SELECT - COUNT ( * ) * - - COALESCE ( COALESCE ( + 44, + ( - - 52 ) / - - 33 * - 68 + + + MIN ( ALL + 37 ) ), MAX ( DISTINCT - - 43 ), 93 )
----
-44

query I rowsort
SELECT + 48 + + 3 - - 33 col2
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-941
SELECT DISTINCT 54 DIV - COUNT( * ), 76 AS col0
----
-54
76

skipif mysql # not compatible
query II rowsort label-941
SELECT DISTINCT 54 / - COUNT ( * ), 76 AS col0
----
-54
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-942
SELECT + CAST( NULL AS SIGNED ) * + + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-942
SELECT + CAST ( NULL AS INTEGER ) * + + 39
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-943
SELECT - 35 * - COUNT( * ) + - - COUNT( ALL + 44 )
----
36

skipif mysql # not compatible
query I rowsort label-943
SELECT - 35 * - COUNT ( * ) + - - COUNT ( ALL + 44 )
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-944
SELECT DISTINCT - 68 * 58 AS col0, - 95 + + SUM( - CAST( - + 10 AS SIGNED ) )
----
-3944
-85

skipif mysql # not compatible
query II rowsort label-944
SELECT DISTINCT - 68 * 58 AS col0, - 95 + + SUM ( - CAST ( - + 10 AS INTEGER ) )
----
-3944
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-945
SELECT + COUNT( * ) + + 72, - 90 AS col2
----
73
-90

skipif mysql # not compatible
query II rowsort label-945
SELECT + COUNT ( * ) + + 72, - 90 AS col2
----
73
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-946
SELECT + 95 * + - 68 - + 43 - MAX( DISTINCT ( - - 9 ) )
----
-6512

skipif mysql # not compatible
query I rowsort label-946
SELECT + 95 * + - 68 - + 43 - MAX ( DISTINCT ( - - 9 ) )
----
-6512

onlyif mysql # aggregate syntax: 
query I rowsort label-947
SELECT ALL + ( - + 18 ) * + + MAX( - 94 )
----
1692

skipif mysql # not compatible
query I rowsort label-947
SELECT ALL + ( - + 18 ) * + + MAX ( - 94 )
----
1692

query I rowsort
SELECT DISTINCT + 91 * 14 AS col0
----
1274

query I rowsort
SELECT + 77 * + 51
----
3927

onlyif mysql # aggregate syntax: 
query I rowsort label-950
SELECT ALL - 74 * - + COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-950
SELECT ALL - 74 * - + COUNT ( * )
----
74

query I rowsort
SELECT - 17 * + 87 col1
----
-1479

query I rowsort
SELECT DISTINCT + 41 + - 82 * + 15 AS col1
----
-1189

onlyif mysql # aggregate syntax: 
query I rowsort label-953
SELECT ALL - - COUNT( DISTINCT + 71 )
----
1

skipif mysql # not compatible
query I rowsort label-953
SELECT ALL - - COUNT ( DISTINCT + 71 )
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-954
SELECT - 44 DIV - 52, 92 AS col1
----
0
92

skipif mysql # not compatible
query II rowsort label-954
SELECT - 44 / - 52, 92 AS col1
----
0
92

query II rowsort
SELECT 36 * 52, - 74 AS col1
----
1872
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-956
SELECT ALL AVG ( DISTINCT + 96 ) + CAST( NULL AS SIGNED ) / 25
----
NULL

skipif mysql # not compatible
query I rowsort label-956
SELECT ALL AVG ( DISTINCT + 96 ) + CAST ( NULL AS INTEGER ) / 25
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-957
SELECT DISTINCT 31 + - COUNT( ALL + 40 ) * + 81 AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-957
SELECT DISTINCT 31 + - COUNT ( ALL + 40 ) * + 81 AS col1
----
-50

query II rowsort
SELECT ALL - 59 + + + 27 AS col1, + 32
----
-32
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-959
SELECT COALESCE ( - + 32, + - ( - NULLIF ( - 84, - 65 ) ) ) DIV - NULLIF ( 42, ( - ( + MAX( - 91 ) ) ) - - COALESCE ( + 80, - - NULLIF ( ( - 64 ), - COUNT( * ) * + 18 + + + CASE 22 WHEN COUNT( * ) * 18 THEN NULL ELSE + 83 + 88 END ), + 47, - 32 ) ) + 33
----
33

skipif mysql # not compatible
query I rowsort label-959
SELECT COALESCE ( - + 32, + - ( - NULLIF ( - 84, - 65 ) ) ) / - NULLIF ( 42, ( - ( + MAX ( - 91 ) ) ) - - COALESCE ( + 80, - - NULLIF ( ( - 64 ), - COUNT ( * ) * + 18 + + + CASE 22 WHEN COUNT ( * ) * 18 THEN NULL ELSE + 83 + 88 END ), + 47, - 32 ) ) + 33
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-960
SELECT ALL + COUNT( * ) + - - 44 + - + 5 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-960
SELECT ALL + COUNT ( * ) + - - 44 + - + 5 AS col0
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-961
SELECT DISTINCT - CASE + - 28 WHEN - + COUNT( * ) * + 94 THEN NULL WHEN + ( CAST( - CAST( + - COALESCE ( + - 83, SUM( ALL + 68 ) * COUNT( * ) * + 77 ) AS SIGNED ) AS SIGNED ) ) * CAST( + COUNT( * ) AS SIGNED ) - + MAX( DISTINCT - COALESCE ( - 13, 83 * - 12 ) ) + 15 + + 26 - 28 * - 71 THEN NULL ELSE + COUNT( * ) END AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-961
SELECT DISTINCT - CASE + - 28 WHEN - + COUNT ( * ) * + 94 THEN NULL WHEN + ( CAST ( - CAST ( + - COALESCE ( + - 83, SUM ( ALL + 68 ) * COUNT ( * ) * + 77 ) AS INTEGER ) AS INTEGER ) ) * CAST ( + COUNT ( * ) AS INTEGER ) - + MAX ( DISTINCT - COALESCE ( - 13, 83 * - 12 ) ) + 15 + + 26 - 28 * - 71 THEN NULL ELSE + COUNT ( * ) END AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-962
SELECT ALL + 67 + + COUNT( * ) * - 16 + + + 48 + + MIN( ALL 37 )
----
136

skipif mysql # not compatible
query I rowsort label-962
SELECT ALL + 67 + + COUNT ( * ) * - 16 + + + 48 + + MIN ( ALL 37 )
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-963
SELECT ALL 33 + + - 55 * - + CASE + ( - 84 ) WHEN - + 26 THEN + 23 + - 13 WHEN + COUNT( * ) THEN NULL END * - - 18 * + + 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-963
SELECT ALL 33 + + - 55 * - + CASE + ( - 84 ) WHEN - + 26 THEN + 23 + - 13 WHEN + COUNT ( * ) THEN NULL END * - - 18 * + + 69 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-964
SELECT COUNT( * ) + - COUNT( ALL - 39 ) - COUNT( * ) * - 85
----
85

skipif mysql # not compatible
query I rowsort label-964
SELECT COUNT ( * ) + - COUNT ( ALL - 39 ) - COUNT ( * ) * - 85
----
85

query I rowsort
SELECT ALL - 4 * 43
----
-172

query I rowsort
SELECT 45 + 11 col1
----
56

query I rowsort
SELECT ALL - 95 + 99 col1
----
4

query II rowsort
SELECT - 57 AS col0, + 38 AS col0
----
-57
38

onlyif mysql # aggregate syntax: 
query II rowsort label-969
SELECT ALL + 32 + - - SUM( + + 2 ) col2, - 23
----
34
-23

skipif mysql # not compatible
query II rowsort label-969
SELECT ALL + 32 + - - SUM ( + + 2 ) col2, - 23
----
34
-23

query I rowsort
SELECT 61 - - - 52
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-971
SELECT DISTINCT 32 - + + SUM( DISTINCT - + 88 ) AS col0
----
120

skipif mysql # not compatible
query I rowsort label-971
SELECT DISTINCT 32 - + + SUM ( DISTINCT - + 88 ) AS col0
----
120

query I rowsort
SELECT ALL + 32 - + - 19 AS col1
----
51

query I rowsort
SELECT 89 + + 0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-974
SELECT ALL - COUNT( * ) - - 77 + - 10
----
66

skipif mysql # not compatible
query I rowsort label-974
SELECT ALL - COUNT ( * ) - - 77 + - 10
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-975
SELECT 96 * + - CAST( NULL AS SIGNED )
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-976
SELECT ALL 28, CAST( NULL AS SIGNED ) AS col0
----
28
NULL

skipif mysql # not compatible
query II rowsort label-976
SELECT ALL 28, CAST ( NULL AS INTEGER ) AS col0
----
28
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-977
SELECT 70 + MIN( DISTINCT - + 11 ) + + - NULLIF ( - - 22, + 98 ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-977
SELECT 70 + MIN ( DISTINCT - + 11 ) + + - NULLIF ( - - 22, + 98 ) AS col2
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-978
SELECT COUNT( * ) - ( + + 26 ) AS col0, + 93
----
-25
93

skipif mysql # not compatible
query II rowsort label-978
SELECT COUNT ( * ) - ( + + 26 ) AS col0, + 93
----
-25
93

onlyif mysql # aggregate syntax: 
query I rowsort label-979
SELECT DISTINCT - COUNT( * ) * + 1
----
-1

skipif mysql # not compatible
query I rowsort label-979
SELECT DISTINCT - COUNT ( * ) * + 1
----
-1

query I rowsort
SELECT 79 + - 31
----
48

query II rowsort
SELECT 15 - ( - 97 ), 96 AS col0
----
112
96

query I rowsort
SELECT ALL - 33 * 6 AS col2
----
-198

query I rowsort
SELECT 86 * - 77 AS col0
----
-6622

query I rowsort
SELECT 21 * - 66
----
-1386

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-985
SELECT COALESCE ( + + 23, - ( 19 ) ) + CASE - + CAST( NULL AS SIGNED ) WHEN - 99 * + ( - + 78 ) THEN - 21 WHEN + - 28 + + COUNT( * ) THEN NULL END + + NULLIF ( - + 73, + 46 )
----
NULL

skipif mysql # not compatible
query I rowsort label-985
SELECT COALESCE ( + + 23, - ( 19 ) ) + CASE - + CAST ( NULL AS INTEGER ) WHEN - 99 * + ( - + 78 ) THEN - 21 WHEN + - 28 + + COUNT ( * ) THEN NULL END + + NULLIF ( - + 73, + 46 )
----
NULL

query II rowsort
SELECT ALL 91 col1, + 79 * - 68 + - 0
----
91
-5372

onlyif mysql # aggregate syntax: 
query I rowsort label-987
SELECT DISTINCT - COUNT( * ) * 20 * 27 * + - 13
----
7020

skipif mysql # not compatible
query I rowsort label-987
SELECT DISTINCT - COUNT ( * ) * 20 * 27 * + - 13
----
7020

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-988
SELECT DISTINCT - 42 * 21 DIV + COALESCE ( + - 15, - 2, - NULLIF ( - 41, + CAST( NULL AS SIGNED ) DIV + MAX( + 31 ) ) ) col2
----
58

skipif mysql # not compatible
query I rowsort label-988
SELECT DISTINCT - 42 * 21 / + COALESCE ( + - 15, - 2, - NULLIF ( - 41, + CAST ( NULL AS INTEGER ) / + MAX ( + 31 ) ) ) col2
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-989
SELECT - COALESCE ( + NULLIF ( - - 39, - - 25 * COUNT( * ) ), - 81 + + COUNT( * ), 23 DIV - COUNT( * ) ) * 69 + + 96, 36 col1
----
-2595
36

skipif mysql # not compatible
query II rowsort label-989
SELECT - COALESCE ( + NULLIF ( - - 39, - - 25 * COUNT ( * ) ), - 81 + + COUNT ( * ), 23 / - COUNT ( * ) ) * 69 + + 96, 36 col1
----
-2595
36

query I rowsort
SELECT ALL + - 22 * - 75
----
1650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-991
SELECT ALL - - 60 * + - NULLIF ( + 23, + 99 ) * + COUNT( * ) * CAST( - 41 AS SIGNED ) AS col1
----
56580

skipif mysql # not compatible
query I rowsort label-991
SELECT ALL - - 60 * + - NULLIF ( + 23, + 99 ) * + COUNT ( * ) * CAST ( - 41 AS INTEGER ) AS col1
----
56580

query II rowsort
SELECT ALL - - 31, 43 AS col2
----
31
43

query I rowsort
SELECT - 14 + - 8
----
-22

query I rowsort
SELECT 92 + - 84 + - + 76 * 42 * - - 4
----
-12760

onlyif mysql # DIV for integer division: 
query I rowsort label-995
SELECT ALL - + 42 + + 74 DIV 48 * - - 62 DIV + 52 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-995
SELECT ALL - + 42 + + 74 / 48 * - - 62 / + 52 AS col2
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-996
SELECT 30 + - + 49 + - 4 + - 82 * 6 * - CAST( - 97 AS SIGNED ) * - + COUNT( * ) AS col2, - 67 AS col0
----
47701
-67

skipif mysql # not compatible
query II rowsort label-996
SELECT 30 + - + 49 + - 4 + - 82 * 6 * - CAST ( - 97 AS INTEGER ) * - + COUNT ( * ) AS col2, - 67 AS col0
----
47701
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-997
SELECT ALL 17 + + 99 - + - 63 + + COUNT( * ) - - 78 + - 55 * + - 99 * - 31 * 69 AS col1
----
-11646597

skipif mysql # not compatible
query I rowsort label-997
SELECT ALL 17 + + 99 - + - 63 + + COUNT ( * ) - - 78 + - 55 * + - 99 * - 31 * 69 AS col1
----
-11646597

onlyif mysql # aggregate syntax: 
query I rowsort label-998
SELECT COUNT( DISTINCT + 37 ) - CASE + COUNT( * ) WHEN + 48 THEN NULL ELSE 71 * - 92 END AS col0
----
6533

skipif mysql # not compatible
query I rowsort label-998
SELECT COUNT ( DISTINCT + 37 ) - CASE + COUNT ( * ) WHEN + 48 THEN NULL ELSE 71 * - 92 END AS col0
----
6533

onlyif mysql # aggregate syntax: 
query I rowsort label-999
SELECT - - 1 * + 0 + 29 + COUNT( DISTINCT 94 ) col0
----
30

skipif mysql # not compatible
query I rowsort label-999
SELECT - - 1 * + 0 + 29 + COUNT ( DISTINCT 94 ) col0
----
30

query II rowsort
SELECT - 0 + 80 + + 34 * 45 AS col1, 13 AS col2
----
1610
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1001
SELECT ALL 79 DIV + COUNT( * ) AS col2, + 71 AS col0
----
79
71

skipif mysql # not compatible
query II rowsort label-1001
SELECT ALL 79 / + COUNT ( * ) AS col2, + 71 AS col0
----
79
71

query I rowsort
SELECT ALL 91 - + 17 + - 54
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-1003
SELECT DISTINCT 26 DIV 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1003
SELECT DISTINCT 26 / 73 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1004
SELECT 96 DIV + 19
----
5

skipif mysql # not compatible
query I rowsort label-1004
SELECT 96 / + 19
----
5

query I rowsort
SELECT DISTINCT 78 * + ( 33 )
----
2574

query I rowsort
SELECT ( 18 ) * + 77
----
1386

query I rowsort
SELECT 15 + + 51
----
66

query I rowsort
SELECT - 32 * - 8 * - 37 AS col0
----
-9472

onlyif mysql # aggregate syntax: 
query I rowsort label-1009
SELECT ALL - - 95 + + 71 - - - MIN( DISTINCT 96 )
----
70

skipif mysql # not compatible
query I rowsort label-1009
SELECT ALL - - 95 + + 71 - - - MIN ( DISTINCT 96 )
----
70

query I rowsort
SELECT DISTINCT + 85 * - - 33 AS col0
----
2805

onlyif mysql # aggregate syntax: 
query I rowsort label-1011
SELECT - SUM( - + COALESCE ( + 41, 48 ) ) - + 40 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1011
SELECT - SUM ( - + COALESCE ( + 41, 48 ) ) - + 40 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1012
SELECT - + 47 + COUNT( * ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-1012
SELECT - + 47 + COUNT ( * ) AS col0
----
-46

query I rowsort
SELECT ALL + 41 * 78 + - 23 * + 51 col0
----
2025

onlyif mysql # aggregate syntax: 
query I rowsort label-1014
SELECT COALESCE ( 46, + 4, - 22, - COUNT( * ) )
----
46

skipif mysql # not compatible
query I rowsort label-1014
SELECT COALESCE ( 46, + 4, - 22, - COUNT ( * ) )
----
46

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1015
SELECT ALL 7 * + 28 * - SUM( DISTINCT - 35 ) / CAST( NULL AS DECIMAL ) + - 76 + - 43 + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-1015
SELECT ALL 7 * + 28 * - SUM ( DISTINCT - 35 ) / CAST ( NULL AS REAL ) + - 76 + - 43 + 12
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1016
SELECT - + 20 * + COUNT( * ) - - + CASE + + 22 WHEN - CAST( NULL AS SIGNED ) + - 47 / - + ( + 76 ) THEN 87 / + ( 10 ) WHEN - 6 THEN + - COUNT( * ) * - - 51 / - 84 ELSE NULL END + + - CASE + ( + + 63 ) WHEN + COUNT( * ) / 49 / + - 13 * - 1 + 63 / - CASE 53 WHEN 61 * + 54 + NULLIF ( ( - 0 ), + 88 / - CAST( 27 AS SIGNED ) ) THEN 75 WHEN - NULLIF ( ( - 38 ), + 18 / - 89 - 43 * 77 ) / + 2 THEN - 9 ELSE NULL END THEN - 50 * 95 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1016
SELECT - + 20 * + COUNT ( * ) - - + CASE + + 22 WHEN - CAST ( NULL AS INTEGER ) + - 47 / - + ( + 76 ) THEN 87 / + ( 10 ) WHEN - 6 THEN + - COUNT ( * ) * - - 51 / - 84 ELSE NULL END + + - CASE + ( + + 63 ) WHEN + COUNT ( * ) / 49 / + - 13 * - 1 + 63 / - CASE 53 WHEN 61 * + 54 + NULLIF ( ( - 0 ), + 88 / - CAST ( 27 AS INTEGER ) ) THEN 75 WHEN - NULLIF ( ( - 38 ), + 18 / - 89 - 43 * 77 ) / + 2 THEN - 9 ELSE NULL END THEN - 50 * 95 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1017
SELECT ALL + MIN( ALL + - 37 ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-1017
SELECT ALL + MIN ( ALL + - 37 ) AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1018
SELECT - CASE - 92 WHEN - 85 * + + 22 THEN - 90 + + ( - COUNT( + 32 ) ) + + CASE 60 WHEN - 32 + + COUNT( * ) + 1 THEN - - COUNT( * ) * + 64 - COUNT( * ) END * - 88 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1018
SELECT - CASE - 92 WHEN - 85 * + + 22 THEN - 90 + + ( - COUNT ( + 32 ) ) + + CASE 60 WHEN - 32 + + COUNT ( * ) + 1 THEN - - COUNT ( * ) * + 64 - COUNT ( * ) END * - 88 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1019
SELECT ALL + 25 * - - 82 - - - MIN( - 65 ) AS col1, - 76 AS col2
----
2115
-76

skipif mysql # not compatible
query II rowsort label-1019
SELECT ALL + 25 * - - 82 - - - MIN ( - 65 ) AS col1, - 76 AS col2
----
2115
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1020
SELECT - 37 DIV - COUNT( * ) + - - COALESCE ( + 15, - - 34 ) + - SUM( 87 ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-1020
SELECT - 37 / - COUNT ( * ) + - - COALESCE ( + 15, - - 34 ) + - SUM ( 87 ) AS col0
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-1021
SELECT DISTINCT 77 DIV 79
----
0

skipif mysql # not compatible
query I rowsort label-1021
SELECT DISTINCT 77 / 79
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1022
SELECT - COUNT( * ) * - CASE 52 WHEN + 62 THEN + - 98 ELSE NULL END, + COUNT( DISTINCT - - 7 ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1022
SELECT - COUNT ( * ) * - CASE 52 WHEN + 62 THEN + - 98 ELSE NULL END, + COUNT ( DISTINCT - - 7 ) AS col0
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1023
SELECT + COALESCE ( - 64, + + 10 ) * - + COUNT( * ) + - - 58 + - + CASE AVG ( 11 ) WHEN - + 53 * + 65 THEN - 68 - - 84 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1023
SELECT + COALESCE ( - 64, + + 10 ) * - + COUNT ( * ) + - - 58 + - + CASE AVG ( 11 ) WHEN - + 53 * + 65 THEN - 68 - - 84 ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT ALL + 35 AS col2, 19 col1
----
35
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1025
SELECT ALL + COALESCE ( CASE 80 WHEN 72 THEN NULL WHEN - + 44 THEN - + 40 DIV 40 + COUNT( * ) END, + 5 )
----
5

skipif mysql # not compatible
query I rowsort label-1025
SELECT ALL + COALESCE ( CASE 80 WHEN 72 THEN NULL WHEN - + 44 THEN - + 40 / 40 + COUNT ( * ) END, + 5 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1026
SELECT MIN( DISTINCT + 20 ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-1026
SELECT MIN ( DISTINCT + 20 ) AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1027
SELECT ALL + 51 * - COUNT( * ) - + 1 * ( + + 48 )
----
-99

skipif mysql # not compatible
query I rowsort label-1027
SELECT ALL + 51 * - COUNT ( * ) - + 1 * ( + + 48 )
----
-99

query I rowsort
SELECT DISTINCT + 60 * + 16 AS col2
----
960

query I rowsort
SELECT + COALESCE ( + 43, 57 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1030
SELECT + ( + COUNT( * ) ) * + 97 AS col2
----
97

skipif mysql # not compatible
query I rowsort label-1030
SELECT + ( + COUNT ( * ) ) * + 97 AS col2
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-1031
SELECT ALL 20 * + CASE - 26 WHEN 89 THEN ( + - SUM( + 34 ) ) END * - 21, + 0 + + - 96 + + COUNT( * ) + - 35 col1
----
NULL
-130

skipif mysql # not compatible
query II rowsort label-1031
SELECT ALL 20 * + CASE - 26 WHEN 89 THEN ( + - SUM ( + 34 ) ) END * - 21, + 0 + + - 96 + + COUNT ( * ) + - 35 col1
----
NULL
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-1032
SELECT + ( + CASE + 57 WHEN + - 14 * + + 78 + - 8 + + + NULLIF ( - + 32, + - ( COUNT( * ) ) * + + 29 + + - 83 + + - 5 - - 71 - - 88 ) THEN NULL WHEN - - 84 * 57 / + 22 THEN + + 3 ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1032
SELECT + ( + CASE + 57 WHEN + - 14 * + + 78 + - 8 + + + NULLIF ( - + 32, + - ( COUNT ( * ) ) * + + 29 + + - 83 + + - 5 - - 71 - - 88 ) THEN NULL WHEN - - 84 * 57 / + 22 THEN + + 3 ELSE NULL END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1033
SELECT ALL COUNT( * ) * - 59 col0
----
-59

skipif mysql # not compatible
query I rowsort label-1033
SELECT ALL COUNT ( * ) * - 59 col0
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1034
SELECT + COALESCE ( + COUNT( * ), + CAST( + 54 AS SIGNED ) * + - 32 + - COUNT( * ) ) * + - 97 * 41 DIV + 91 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-1034
SELECT + COALESCE ( + COUNT ( * ), + CAST ( + 54 AS INTEGER ) * + - 32 + - COUNT ( * ) ) * + - 97 * 41 / + 91 AS col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1035
SELECT + 2 + 47 + + + MIN( DISTINCT 30 )
----
79

skipif mysql # not compatible
query I rowsort label-1035
SELECT + 2 + 47 + + + MIN ( DISTINCT 30 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT MAX( - 63 )
----
-63

skipif mysql # not compatible
query I rowsort label-1036
SELECT MAX ( - 63 )
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-1037
SELECT DISTINCT 27 AS col0, - MIN( - ( + 47 ) ) AS col2
----
27
47

skipif mysql # not compatible
query II rowsort label-1037
SELECT DISTINCT 27 AS col0, - MIN ( - ( + 47 ) ) AS col2
----
27
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1038
SELECT ALL SUM( - - 22 ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-1038
SELECT ALL SUM ( - - 22 ) AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1039
SELECT DISTINCT COUNT( * ) + 7 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-1039
SELECT DISTINCT COUNT ( * ) + 7 AS col0
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-1040
SELECT DISTINCT ( - 94 ) DIV 88 * + - 53 * - 2
----
-106

skipif mysql # not compatible
query I rowsort label-1040
SELECT DISTINCT ( - 94 ) / 88 * + - 53 * - 2
----
-106

query I rowsort
SELECT + 48 + - 80 AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1042
SELECT DISTINCT COALESCE ( + 27, + 54 * COUNT( * ) ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-1042
SELECT DISTINCT COALESCE ( + 27, + 54 * COUNT ( * ) ) AS col1
----
27

query I rowsort
SELECT ALL 30 + - 34 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1044
SELECT - CASE - 47 WHEN - + 5 THEN NULL WHEN MAX( + 33 ) THEN - + 42 / - - 4 WHEN + - 80 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1044
SELECT - CASE - 47 WHEN - + 5 THEN NULL WHEN MAX ( + 33 ) THEN - + 42 / - - 4 WHEN + - 80 THEN NULL END
----
NULL

query I rowsort
SELECT + + 56 * - + ( - - 29 ) + 5
----
-1619

query I rowsort
SELECT ALL - 87 * + 18 * - 12 AS col1
----
18792

onlyif mysql # aggregate syntax: 
query I rowsort label-1047
SELECT ALL + 12 + + 67 * - SUM( + - 99 )
----
6645

skipif mysql # not compatible
query I rowsort label-1047
SELECT ALL + 12 + + 67 * - SUM ( + - 99 )
----
6645

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1048
SELECT ALL + SUM( DISTINCT + + 64 ) + - CAST( 33 AS SIGNED ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-1048
SELECT ALL + SUM ( DISTINCT + + 64 ) + - CAST ( 33 AS INTEGER ) AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1049
SELECT DISTINCT + 10 + + - COUNT( * ) * + COUNT( * ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-1049
SELECT DISTINCT + 10 + + - COUNT ( * ) * + COUNT ( * ) AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1050
SELECT DISTINCT - COUNT( * ) + - 73
----
-74

skipif mysql # not compatible
query I rowsort label-1050
SELECT DISTINCT - COUNT ( * ) + - 73
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-1051
SELECT DISTINCT + - 67 + + 14 + 54 - + 24 + - + 84 + - COUNT( * ) * - 99 * - COUNT( DISTINCT - - 40 ) * + - 75 col0, 42
----
7318
42

skipif mysql # not compatible
query II rowsort label-1051
SELECT DISTINCT + - 67 + + 14 + 54 - + 24 + - + 84 + - COUNT ( * ) * - 99 * - COUNT ( DISTINCT - - 40 ) * + - 75 col0, 42
----
7318
42

onlyif mysql # DIV for integer division: 
query II rowsort label-1052
SELECT ALL 67, 15 DIV - 72 * + - 73 AS col1
----
67
0

skipif mysql # not compatible
query II rowsort label-1052
SELECT ALL 67, 15 / - 72 * + - 73 AS col1
----
67
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1053
SELECT + CASE NULLIF ( - 74, + COUNT( * ) + 88 * + CAST( NULL AS SIGNED ) ) WHEN CAST( NULL AS SIGNED ) / + - 27 + - + 93 THEN 31 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1053
SELECT + CASE NULLIF ( - 74, + COUNT ( * ) + 88 * + CAST ( NULL AS INTEGER ) ) WHEN CAST ( NULL AS INTEGER ) / + - 27 + - + 93 THEN 31 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1054
SELECT DISTINCT - 22 / + + CASE + COUNT( * ) WHEN COUNT( * ) THEN COUNT( * ) * - 66 * COUNT( * ) + - ( 97 ) + - COUNT( * ) END - + 79 / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1054
SELECT DISTINCT - 22 / + + CASE + COUNT ( * ) WHEN COUNT ( * ) THEN COUNT ( * ) * - 66 * COUNT ( * ) + - ( 97 ) + - COUNT ( * ) END - + 79 / + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - - 91 * + 20
----
1820

query I rowsort
SELECT - 69 * + - ( + 47 )
----
3243

onlyif mysql # aggregate syntax: 
query I rowsort label-1057
SELECT + - 5 + COUNT( ALL - 77 )
----
-4

skipif mysql # not compatible
query I rowsort label-1057
SELECT + - 5 + COUNT ( ALL - 77 )
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1058
SELECT ALL + + 0 * - + 84 - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1058
SELECT ALL + + 0 * - + 84 - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 35 + - 4 + 69 * + 3 AS col1
----
168

onlyif mysql # aggregate syntax: 
query II rowsort label-1060
SELECT DISTINCT + COUNT( * ), 6 * 79 col1
----
1
474

skipif mysql # not compatible
query II rowsort label-1060
SELECT DISTINCT + COUNT ( * ), 6 * 79 col1
----
1
474

query I rowsort
SELECT DISTINCT - 28 * + 6 AS col0
----
-168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1062
SELECT - 15 DIV SUM( DISTINCT 79 )
----
0

skipif mysql # not compatible
query I rowsort label-1062
SELECT - 15 / SUM ( DISTINCT 79 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1063
SELECT - 26 * + NULLIF ( - 86, + ( + + SUM( DISTINCT - 46 ) ) ) AS col2, - ( COALESCE ( - 59, - 24 DIV - 7 * - 18 ) ) AS col2
----
2236
59

skipif mysql # not compatible
query II rowsort label-1063
SELECT - 26 * + NULLIF ( - 86, + ( + + SUM ( DISTINCT - 46 ) ) ) AS col2, - ( COALESCE ( - 59, - 24 / - 7 * - 18 ) ) AS col2
----
2236
59

query I rowsort
SELECT - 7 * + + 72 + - 68 AS col1
----
-572

query II rowsort
SELECT + 68 AS col0, - ( - - ( 25 ) )
----
68
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1066
SELECT NULLIF ( 94, - + 99 * - 50 ) * + - ( + CAST( NULL AS SIGNED ) ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1066
SELECT NULLIF ( 94, - + 99 * - 50 ) * + - ( + CAST ( NULL AS INTEGER ) ) * + COUNT ( * )
----
NULL

query I rowsort
SELECT 25 + ( 80 ) AS col1
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-1068
SELECT ALL 90 + COUNT( * ) - - 40
----
131

skipif mysql # not compatible
query I rowsort label-1068
SELECT ALL 90 + COUNT ( * ) - - 40
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-1069
SELECT COUNT( * ) + + 43 * + - COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-1069
SELECT COUNT ( * ) + + 43 * + - COUNT ( * )
----
-42

query I rowsort
SELECT ALL ( - 38 ) * + 98 * - 15 AS col0
----
55860

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1071
SELECT COUNT( * ) * + - 33 DIV + COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-1071
SELECT COUNT ( * ) * + - 33 / + COUNT ( * )
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1072
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1072
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + 31 AS col0
----
NULL

query I rowsort
SELECT ALL + 11 + ( + COALESCE ( + 31, + NULLIF ( + 44, + 40 ) * + - 48 ) )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1074
SELECT COUNT( * ) + + + COUNT( * ) * - 94
----
-93

skipif mysql # not compatible
query I rowsort label-1074
SELECT COUNT ( * ) + + + COUNT ( * ) * - 94
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-1075
SELECT DISTINCT + 92, + 27 + - COUNT( * ) * - 44 col0
----
92
71

skipif mysql # not compatible
query II rowsort label-1075
SELECT DISTINCT + 92, + 27 + - COUNT ( * ) * - 44 col0
----
92
71

query I rowsort
SELECT 36 * + - NULLIF ( + 33, 39 - + + 52 ) AS col0
----
-1188

query I rowsort
SELECT 80 + + 45
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT ALL MIN( + 78 )
----
78

skipif mysql # not compatible
query I rowsort label-1078
SELECT ALL MIN ( + 78 )
----
78

query I rowsort
SELECT ( - 83 ) AS col1
----
-83

query II rowsort
SELECT ALL - 57 AS col2, + 93
----
-57
93

query I rowsort
SELECT + 3 + + - 93 AS col0
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1082
SELECT ( + + 41 ) + - 86 DIV COALESCE ( 84, + MIN( DISTINCT + + 3 ) - + CAST( + - 16 AS SIGNED ) * - 15 - - 8, 0 * - 31 ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-1082
SELECT ( + + 41 ) + - 86 / COALESCE ( 84, + MIN ( DISTINCT + + 3 ) - + CAST ( + - 16 AS INTEGER ) * - 15 - - 8, 0 * - 31 ) AS col2
----
40

query I rowsort
SELECT ALL COALESCE ( - 20, - 23 )
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1084
SELECT + ( + 15 ) * 56 * + COALESCE ( 69, - ( 44 ) * COUNT( * ) + 5 - 27 + + - 89 + + - 34 DIV - AVG ( 34 ) + + - COUNT( - - 58 ) * + 56 * - MAX( - 5 ) DIV 87 * + 95 DIV 68 * + 45 - + 74 + - 95 + + 0, 61 * + 5 + + 52 )
----
57960

skipif mysql # not compatible
query I rowsort label-1084
SELECT + ( + 15 ) * 56 * + COALESCE ( 69, - ( 44 ) * COUNT ( * ) + 5 - 27 + + - 89 + + - 34 / - AVG ( 34 ) + + - COUNT ( - - 58 ) * + 56 * - MAX ( - 5 ) / 87 * + 95 / 68 * + 45 - + 74 + - 95 + + 0, 61 * + 5 + + 52 )
----
57960

query II rowsort
SELECT 17, - 70 AS col0
----
17
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1086
SELECT - 53 + - - COUNT( * ) - - 93 + - + 37 + - + 41 * + COUNT( DISTINCT - + CAST( NULLIF ( + 35, 90 ) AS SIGNED ) ) * + - COUNT( * ) AS col0, CASE - 38 WHEN - 69 THEN NULL ELSE + 31 END col0
----
45
31

skipif mysql # not compatible
query II rowsort label-1086
SELECT - 53 + - - COUNT ( * ) - - 93 + - + 37 + - + 41 * + COUNT ( DISTINCT - + CAST ( NULLIF ( + 35, 90 ) AS INTEGER ) ) * + - COUNT ( * ) AS col0, CASE - 38 WHEN - 69 THEN NULL ELSE + 31 END col0
----
45
31

onlyif mysql # aggregate syntax: 
query II rowsort label-1087
SELECT ALL 45 AS col2, COUNT( * ) col1
----
45
1

skipif mysql # not compatible
query II rowsort label-1087
SELECT ALL 45 AS col2, COUNT ( * ) col1
----
45
1

query II rowsort
SELECT - 57, ( + 24 ) AS col2
----
-57
24

query I rowsort
SELECT 59 + + + 27 + + 68 * + 30 AS col0
----
2126

query I rowsort
SELECT - 10 * + + 31
----
-310

query I rowsort
SELECT + COALESCE ( 10, + + 14 ) AS col2
----
10

query II rowsort
SELECT DISTINCT - 26 AS col0, 59
----
-26
59

query I rowsort
SELECT ALL - ( + - 61 )
----
61

query I rowsort
SELECT 90 * - 20
----
-1800

onlyif mysql # aggregate syntax: 
query I rowsort label-1095
SELECT 80 * NULLIF ( + + CASE + 67 WHEN - - COUNT( * ) THEN NULL WHEN - NULLIF ( - 12, + 58 + - 89 + + - 74 ) THEN NULL WHEN - 62 + - AVG ( - 9 ) THEN + + 35 * + 63 * - 10 * COUNT( * ) END, + SUM( 22 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1095
SELECT 80 * NULLIF ( + + CASE + 67 WHEN - - COUNT ( * ) THEN NULL WHEN - NULLIF ( - 12, + 58 + - 89 + + - 74 ) THEN NULL WHEN - 62 + - AVG ( - 9 ) THEN + + 35 * + 63 * - 10 * COUNT ( * ) END, + SUM ( 22 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1096
SELECT 15 * + MIN( 90 )
----
1350

skipif mysql # not compatible
query I rowsort label-1096
SELECT 15 * + MIN ( 90 )
----
1350

query I rowsort
SELECT 69 * - ( - 80 ) - - - 45 AS col0
----
5475

onlyif mysql # aggregate syntax: 
query II rowsort label-1098
SELECT DISTINCT - 97 * + 43, COUNT( * ) + - + 10 AS col2
----
-4171
-9

skipif mysql # not compatible
query II rowsort label-1098
SELECT DISTINCT - 97 * + 43, COUNT ( * ) + - + 10 AS col2
----
-4171
-9

onlyif mysql # DIV for integer division: 
query II rowsort label-1099
SELECT ALL 61 DIV 91 AS col2, - 51
----
0
-51

skipif mysql # not compatible
query II rowsort label-1099
SELECT ALL 61 / 91 AS col2, - 51
----
0
-51

query I rowsort
SELECT 5 * - + 95 AS col1
----
-475

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT ALL + COUNT( * ) + 83 * + 19 + - 14
----
1564

skipif mysql # not compatible
query I rowsort label-1101
SELECT ALL + COUNT ( * ) + 83 * + 19 + - 14
----
1564

onlyif mysql # aggregate syntax: 
query III rowsort label-1102
SELECT ALL + 43 + + ( - 63 ) AS col1, 9 + - - 72 AS col1, - + COALESCE ( + ( + + MIN( - 15 ) ), - 95 + - - 22, + - 6 * + + 59 ) AS col1
----
-20
81
15

skipif mysql # not compatible
query III rowsort label-1102
SELECT ALL + 43 + + ( - 63 ) AS col1, 9 + - - 72 AS col1, - + COALESCE ( + ( + + MIN ( - 15 ) ), - 95 + - - 22, + - 6 * + + 59 ) AS col1
----
-20
81
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1103
SELECT DISTINCT + CAST( - - MAX( - 45 ) AS SIGNED ) + + - 5
----
-50

skipif mysql # not compatible
query I rowsort label-1103
SELECT DISTINCT + CAST ( - - MAX ( - 45 ) AS INTEGER ) + + - 5
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1104
SELECT 7 * - 14 - - COUNT( * ) col2
----
-97

skipif mysql # not compatible
query I rowsort label-1104
SELECT 7 * - 14 - - COUNT ( * ) col2
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1105
SELECT ALL - ( 94 ) AS col2, + CASE - + 61 WHEN - - 73 THEN + ( 88 ) END / COUNT( * ) * CAST( NULL AS SIGNED ) AS col2
----
-94
NULL

skipif mysql # not compatible
query II rowsort label-1105
SELECT ALL - ( 94 ) AS col2, + CASE - + 61 WHEN - - 73 THEN + ( 88 ) END / COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2
----
-94
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1106
SELECT DISTINCT + SUM( DISTINCT - - ( - 60 ) ) + + 78 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-1106
SELECT DISTINCT + SUM ( DISTINCT - - ( - 60 ) ) + + 78 AS col2
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-1107
SELECT DISTINCT - 54 DIV + 64 - 53
----
-53

skipif mysql # not compatible
query I rowsort label-1107
SELECT DISTINCT - 54 / + 64 - 53
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1108
SELECT ALL + 96 + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-1108
SELECT ALL + 96 + COUNT ( * )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1109
SELECT NULLIF ( + 34, - - COUNT( * ) * - ( - COUNT( * ) ) * + - 68 ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-1109
SELECT NULLIF ( + 34, - - COUNT ( * ) * - ( - COUNT ( * ) ) * + - 68 ) AS col0
----
34

query II rowsort
SELECT ALL - - 33 - + 38, 2 * - 94 AS col0
----
-5
-188

onlyif mysql # aggregate syntax: 
query I rowsort label-1111
SELECT ALL 54 * 81 * 44 * + + MAX( + + 50 ) col1
----
9622800

skipif mysql # not compatible
query I rowsort label-1111
SELECT ALL 54 * 81 * 44 * + + MAX ( + + 50 ) col1
----
9622800

onlyif mysql # aggregate syntax: 
query I rowsort label-1112
SELECT - 58 + - - SUM( 60 ) + - + 36
----
-34

skipif mysql # not compatible
query I rowsort label-1112
SELECT - 58 + - - SUM ( 60 ) + - + 36
----
-34

query I rowsort
SELECT 53 + + 96 * ( + + 98 )
----
9461

query I rowsort
SELECT ALL 11 * - 92
----
-1012

query II rowsort
SELECT 84 * + 30, ( - ( 1 ) ) AS col0
----
2520
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1116
SELECT - NULLIF ( + + 0, - MIN( DISTINCT + 79 ) * + 18 / ( + 64 ) * + + 97 + ( + - 18 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1116
SELECT - NULLIF ( + + 0, - MIN ( DISTINCT + 79 ) * + 18 / ( + 64 ) * + + 97 + ( + - 18 ) ) AS col1
----
0

query I rowsort
SELECT - 17 * - 90 + 89 col1
----
1619

query I rowsort
SELECT DISTINCT - 70 * - 36 + - ( - 93 ) * + ( + 45 ) AS col1
----
6705

onlyif mysql # DIV for integer division: 
query II rowsort label-1119
SELECT 99 DIV 68, NULLIF ( 88, 8 ) AS col0
----
1
88

skipif mysql # not compatible
query II rowsort label-1119
SELECT 99 / 68, NULLIF ( 88, 8 ) AS col0
----
1
88

query I rowsort
SELECT ALL 51 * - 56
----
-2856

onlyif mysql # DIV for integer division: 
query I rowsort label-1121
SELECT DISTINCT 62 DIV 99 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1121
SELECT DISTINCT 62 / 99 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1122
SELECT + CASE + 60 WHEN + - 6 * + 47 - - MIN( 11 ) + + MAX( 41 ) THEN NULL WHEN + COUNT( * ) * 78 THEN COUNT( * ) WHEN - CAST( - - 10 AS SIGNED ) * 30 + + COUNT( DISTINCT - 91 ) + 77 - - 66 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1122
SELECT + CASE + 60 WHEN + - 6 * + 47 - - MIN ( 11 ) + + MAX ( 41 ) THEN NULL WHEN + COUNT ( * ) * 78 THEN COUNT ( * ) WHEN - CAST ( - - 10 AS INTEGER ) * 30 + + COUNT ( DISTINCT - 91 ) + 77 - - 66 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 97 * - COALESCE ( + 32, - 64 ) * 36
----
-111744

onlyif mysql # aggregate syntax: 
query I rowsort label-1124
SELECT + COUNT( * ) + + NULLIF ( - 8, 47 )
----
-7

skipif mysql # not compatible
query I rowsort label-1124
SELECT + COUNT ( * ) + + NULLIF ( - 8, 47 )
----
-7

query I rowsort
SELECT + 9 * - 31
----
-279

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1126
SELECT ALL - CASE 24 WHEN + 28 * 32 / SUM( ALL - 77 ) + - 35 THEN + 30 + + - 59 WHEN + 45 + + 59 * - CAST( NULL AS DECIMAL ) THEN 31 - - AVG ( ALL - - 29 ) END * - + 10 * - 53 + + 92 * - 43 / + SUM( DISTINCT - - CAST( + 91 AS SIGNED ) ) + + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-1126
SELECT ALL - CASE 24 WHEN + 28 * 32 / SUM ( ALL - 77 ) + - 35 THEN + 30 + + - 59 WHEN + 45 + + 59 * - CAST ( NULL AS REAL ) THEN 31 - - AVG ( ALL - - 29 ) END * - + 10 * - 53 + + 92 * - 43 / + SUM ( DISTINCT - - CAST ( + 91 AS INTEGER ) ) + + 68
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1127
SELECT ALL + 43 * 84 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1127
SELECT ALL + 43 * 84 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1128
SELECT + 97 + + 37 + + 3 + - + ( - - 58 ) + + COUNT( * ) * + NULLIF ( + CASE + + 26 WHEN 81 THEN NULL ELSE - ( + + 95 ) END, - 68 ) DIV + 28 AS col1, CAST( + 98 AS SIGNED ) AS col1
----
76
98

skipif mysql # not compatible
query II rowsort label-1128
SELECT + 97 + + 37 + + 3 + - + ( - - 58 ) + + COUNT ( * ) * + NULLIF ( + CASE + + 26 WHEN 81 THEN NULL ELSE - ( + + 95 ) END, - 68 ) / + 28 AS col1, CAST ( + 98 AS INTEGER ) AS col1
----
76
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1129
SELECT + COUNT( ALL - - 56 )
----
1

skipif mysql # not compatible
query I rowsort label-1129
SELECT + COUNT ( ALL - - 56 )
----
1

query I rowsort
SELECT ALL 61 * + + 83
----
5063

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1131
SELECT DISTINCT 43 * - MIN( - - CAST( NULL AS SIGNED ) ) + - 98 * + - 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1131
SELECT DISTINCT 43 * - MIN ( - - CAST ( NULL AS INTEGER ) ) + - 98 * + - 84 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1132
SELECT ALL + MIN( 54 ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-1132
SELECT ALL + MIN ( 54 ) AS col0
----
54

query I rowsort
SELECT + 13 * + 19 AS col1
----
247

onlyif mysql # aggregate syntax: 
query I rowsort label-1134
SELECT + NULLIF ( CASE 74 WHEN + ( - - COUNT( + - 45 ) ) THEN NULL WHEN - 9 * - + 9 THEN COUNT( * ) / COUNT( * ) + + - 34 + ( - 48 ) + - - 49 + + COUNT( * ) + - 1 + - - 54 / + 4 - + COUNT( * ) * - + MAX( DISTINCT + 24 ) + + 65 * 3 ELSE + 48 * - 15 + - 71 * + - 89 * - ( + 92 ) END, + 69 + 86 ) col2
----
-582068

skipif mysql # not compatible
query I rowsort label-1134
SELECT + NULLIF ( CASE 74 WHEN + ( - - COUNT ( + - 45 ) ) THEN NULL WHEN - 9 * - + 9 THEN COUNT ( * ) / COUNT ( * ) + + - 34 + ( - 48 ) + - - 49 + + COUNT ( * ) + - 1 + - - 54 / + 4 - + COUNT ( * ) * - + MAX ( DISTINCT + 24 ) + + 65 * 3 ELSE + 48 * - 15 + - 71 * + - 89 * - ( + 92 ) END, + 69 + 86 ) col2
----
-582068

onlyif mysql # aggregate syntax: 
query I rowsort label-1135
SELECT COUNT( 90 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-1135
SELECT COUNT ( 90 ) col0
----
1

query I rowsort
SELECT ALL - 50 * + - 42 - - ( + ( 75 ) ) + ( 8 )
----
2183

onlyif mysql # aggregate syntax: 
query I rowsort label-1137
SELECT COUNT( 73 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1137
SELECT COUNT ( 73 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1138
SELECT + 88 AS col2, COALESCE ( 84, + - NULLIF ( - - 27, - 68 ) * + MAX( + 13 ) + + 38 + + + 39 ) + - 91
----
88
-7

skipif mysql # not compatible
query II rowsort label-1138
SELECT + 88 AS col2, COALESCE ( 84, + - NULLIF ( - - 27, - 68 ) * + MAX ( + 13 ) + + 38 + + + 39 ) + - 91
----
88
-7

query I rowsort
SELECT ALL - 8 * - + 19
----
152

query II rowsort
SELECT DISTINCT 1 AS col0, - 66 AS col2
----
1
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-1141
SELECT - MIN( DISTINCT - 48 ) * - 3 col1, - COUNT( * )
----
-144
-1

skipif mysql # not compatible
query II rowsort label-1141
SELECT - MIN ( DISTINCT - 48 ) * - 3 col1, - COUNT ( * )
----
-144
-1

query I rowsort
SELECT DISTINCT + - 44 - 2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1143
SELECT - + SUM( DISTINCT + - ( + + 82 ) ) * + 63 * - 70 * + - 52 + - + 65 + + - 24
----
18804151

skipif mysql # not compatible
query I rowsort label-1143
SELECT - + SUM ( DISTINCT + - ( + + 82 ) ) * + 63 * - 70 * + - 52 + - + 65 + + - 24
----
18804151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1144
SELECT - - CAST( NULL AS SIGNED ) * + - 97 + + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-1144
SELECT - - CAST ( NULL AS INTEGER ) * + - 97 + + 59
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1145
SELECT ALL + - 18 DIV - + CASE + 56 WHEN - 72 * 46 * - 5 THEN NULL ELSE + COUNT( * ) * - 64 * - + COALESCE ( 22, + 96 * + + 4, 16 - + CAST( NULL AS SIGNED ) * - MIN( - - 23 ) ) + SUM( + - 25 ) DIV - 45 + 94 END col2
----
0

skipif mysql # not compatible
query I rowsort label-1145
SELECT ALL + - 18 / - + CASE + 56 WHEN - 72 * 46 * - 5 THEN NULL ELSE + COUNT ( * ) * - 64 * - + COALESCE ( 22, + 96 * + + 4, 16 - + CAST ( NULL AS INTEGER ) * - MIN ( - - 23 ) ) + SUM ( + - 25 ) / - 45 + 94 END col2
----
0

query I rowsort
SELECT ALL + - 93 * + - 28 AS col2
----
2604

query I rowsort
SELECT - 1 + + 70 + - + 64 * - - 44 * + 93
----
-261819

onlyif mysql # DIV for integer division: 
query I rowsort label-1148
SELECT DISTINCT + 21 DIV + 10
----
2

skipif mysql # not compatible
query I rowsort label-1148
SELECT DISTINCT + 21 / + 10
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1149
SELECT - 15 * + 8 * + 15, ( - 75 ) / 53 + + + CAST( NULL AS SIGNED ) * - + 88 AS col0
----
-1800
NULL

skipif mysql # not compatible
query II rowsort label-1149
SELECT - 15 * + 8 * + 15, ( - 75 ) / 53 + + + CAST ( NULL AS INTEGER ) * - + 88 AS col0
----
-1800
NULL

query I rowsort
SELECT DISTINCT + 41 * - + 78
----
-3198

onlyif mysql # aggregate syntax: 
query I rowsort label-1151
SELECT ALL - + 14 * + + 30 + + 61 * + ( + ( - + COALESCE ( - MAX( DISTINCT + ( + - 95 ) ), MAX( DISTINCT - 44 ) + - 24, 26 ) ) ) * ( - COUNT( ALL 71 ) )
----
5375

skipif mysql # not compatible
query I rowsort label-1151
SELECT ALL - + 14 * + + 30 + + 61 * + ( + ( - + COALESCE ( - MAX ( DISTINCT + ( + - 95 ) ), MAX ( DISTINCT - 44 ) + - 24, 26 ) ) ) * ( - COUNT ( ALL 71 ) )
----
5375

onlyif mysql # aggregate syntax: 
query I rowsort label-1152
SELECT DISTINCT - 96 + + COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-1152
SELECT DISTINCT - 96 + + COUNT ( * )
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1153
SELECT ALL NULLIF ( 64, + CAST( 61 AS SIGNED ) / 10 + - + MIN( - ( + - 66 ) ) ) + 4 col1, + 87 - + - 70 AS col1
----
68
157

skipif mysql # not compatible
query II rowsort label-1153
SELECT ALL NULLIF ( 64, + CAST ( 61 AS INTEGER ) / 10 + - + MIN ( - ( + - 66 ) ) ) + 4 col1, + 87 - + - 70 AS col1
----
68
157

onlyif mysql # aggregate syntax: 
query I rowsort label-1154
SELECT ALL 74 + - 5 * - - COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-1154
SELECT ALL 74 + - 5 * - - COUNT ( * )
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1155
SELECT DISTINCT 70 DIV + + 38 * - COUNT( * ) DIV + COUNT( * ) + - - 21
----
20

skipif mysql # not compatible
query I rowsort label-1155
SELECT DISTINCT 70 / + + 38 * - COUNT ( * ) / + COUNT ( * ) + - - 21
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1156
SELECT ALL COALESCE ( - 61, 66, 22 ) DIV + COUNT( * ) + + ( - - 15 ) - + 58 * - + ( - COUNT( + + 41 ) ) AS col2
----
-104

skipif mysql # not compatible
query I rowsort label-1156
SELECT ALL COALESCE ( - 61, 66, 22 ) / + COUNT ( * ) + + ( - - 15 ) - + 58 * - + ( - COUNT ( + + 41 ) ) AS col2
----
-104

query I rowsort
SELECT + CASE - - 90 WHEN + 11 THEN - 55 * 29 * + 78 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1158
SELECT ALL + 33 / + CAST( NULL AS SIGNED ) + + MAX( DISTINCT 36 ) + - 77 * + - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-1158
SELECT ALL + 33 / + CAST ( NULL AS INTEGER ) + + MAX ( DISTINCT 36 ) + - 77 * + - 89
----
NULL

query I rowsort
SELECT ( + + ( - - 43 ) )
----
43

query II rowsort
SELECT + 2 * - + 90 AS col2, + 72 + - 26 AS col1
----
-180
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1161
SELECT ALL COALESCE ( - 80, - + NULLIF ( - 85, + CASE - - COUNT( * ) WHEN 96 + 6 * + - 35 THEN + 85 + - - 95 / + - COALESCE ( + - COUNT( DISTINCT 83 ), + CAST( - 28 AS SIGNED ), + - COUNT( * ), - 91 ) ELSE NULL END ) + - 39 ) * 23 + - 39 + + COUNT( * ) AS col1
----
-1878

skipif mysql # not compatible
query I rowsort label-1161
SELECT ALL COALESCE ( - 80, - + NULLIF ( - 85, + CASE - - COUNT ( * ) WHEN 96 + 6 * + - 35 THEN + 85 + - - 95 / + - COALESCE ( + - COUNT ( DISTINCT 83 ), + CAST ( - 28 AS INTEGER ), + - COUNT ( * ), - 91 ) ELSE NULL END ) + - 39 ) * 23 + - 39 + + COUNT ( * ) AS col1
----
-1878

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1162
SELECT + COUNT( * ) DIV + 65 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1162
SELECT + COUNT ( * ) / + 65 AS col0
----
0

query I rowsort
SELECT + 31 * - ( + 62 ) AS col0
----
-1922

query I rowsort
SELECT + NULLIF ( 54, - + 16 )
----
54

query I rowsort
SELECT ( + ( + 71 ) ) AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1166
SELECT ALL - 6 * - CASE + + 38 WHEN + 1 + + 26 THEN + + 67 * + MAX( - + 2 ) ELSE NULL END - NULLIF ( ( 29 ), - + 35 ) + + 19 * - 56 * + + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-1166
SELECT ALL - 6 * - CASE + + 38 WHEN + 1 + + 26 THEN + + 67 * + MAX ( - + 2 ) ELSE NULL END - NULLIF ( ( 29 ), - + 35 ) + + 19 * - 56 * + + 10
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1167
SELECT 43 * ( + + 61 ) - - ( 7 ) + 33 * + 19 * + 39 / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1167
SELECT 43 * ( + + 61 ) - - ( 7 ) + 33 * + 19 * + 39 / CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ( 72 ) col1
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1169
SELECT - ( 51 ) * + COUNT( * ) - + - 42 AS col1, CAST( NULL AS SIGNED ) AS col0
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-1169
SELECT - ( 51 ) * + COUNT ( * ) - + - 42 AS col1, CAST ( NULL AS INTEGER ) AS col0
----
-9
NULL

query I rowsort
SELECT DISTINCT ( - 82 ) * ( - 24 )
----
1968

query I rowsort
SELECT + - 13 + 2 AS col0
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1172
SELECT + + 96 * - CAST( NULL AS SIGNED )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1173
SELECT + + COUNT( * ) + - SUM( + 88 ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-1173
SELECT + + COUNT ( * ) + - SUM ( + 88 ) AS col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-1174
SELECT ALL + 52 * - SUM( DISTINCT - - 23 ) * + 57 AS col1
----
-68172

skipif mysql # not compatible
query I rowsort label-1174
SELECT ALL + 52 * - SUM ( DISTINCT - - 23 ) * + 57 AS col1
----
-68172

onlyif mysql # aggregate syntax: 
query II rowsort label-1175
SELECT 72 * + + COUNT( * ) + - 8 * + 93, - 52 - - - 40 * + 65 AS col1
----
-672
-2652

skipif mysql # not compatible
query II rowsort label-1175
SELECT 72 * + + COUNT ( * ) + - 8 * + 93, - 52 - - - 40 * + 65 AS col1
----
-672
-2652

query I rowsort
SELECT - 4 + 46 AS col1
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1177
SELECT + - COALESCE ( + + MIN( DISTINCT 76 ), 53 - + 65 ) DIV - COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-1177
SELECT + - COALESCE ( + + MIN ( DISTINCT 76 ), 53 - + 65 ) / - COUNT ( * )
----
76

query I rowsort
SELECT - 35 * + 63 + + - 7 AS col1
----
-2212

onlyif mysql # aggregate syntax: 
query I rowsort label-1179
SELECT DISTINCT + + 49 + - MIN( ALL - - 10 ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-1179
SELECT DISTINCT + + 49 + - MIN ( ALL - - 10 ) AS col2
----
39

query I rowsort
SELECT 59 * 77 * - 55
----
-249865

query II rowsort
SELECT ALL - 34 + + 73 AS col2, + 35 AS col1
----
39
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1182
SELECT DISTINCT 44 + - + COUNT( DISTINCT 87 )
----
43

skipif mysql # not compatible
query I rowsort label-1182
SELECT DISTINCT 44 + - + COUNT ( DISTINCT 87 )
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-1183
SELECT DISTINCT + 38 DIV + 99 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1183
SELECT DISTINCT + 38 / + 99 AS col0
----
0

query I rowsort
SELECT 5 * - + 30
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-1185
SELECT ALL + COUNT( * ) + + 96 + - ( - 1 )
----
98

skipif mysql # not compatible
query I rowsort label-1185
SELECT ALL + COUNT ( * ) + + 96 + - ( - 1 )
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1186
SELECT ALL - 56 DIV MIN( DISTINCT + 68 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1186
SELECT ALL - 56 / MIN ( DISTINCT + 68 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1187
SELECT DISTINCT + 65 * + COUNT( * ) * COUNT( * ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-1187
SELECT DISTINCT + 65 * + COUNT ( * ) * COUNT ( * ) AS col2
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1188
SELECT ALL 61 + + + 97 + + COUNT( * ) + - CAST( NULL AS SIGNED ) * 52 * - ( + 3 ) + CAST( COUNT( * ) AS SIGNED ) * - 98 * COUNT( * ) * - - 2 * CAST( NULL AS SIGNED ) + + 47 + COUNT( * ) * + 82 - + - 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1188
SELECT ALL 61 + + + 97 + + COUNT ( * ) + - CAST ( NULL AS INTEGER ) * 52 * - ( + 3 ) + CAST ( COUNT ( * ) AS INTEGER ) * - 98 * COUNT ( * ) * - - 2 * CAST ( NULL AS INTEGER ) + + 47 + COUNT ( * ) * + 82 - + - 72 AS col0
----
NULL

query I rowsort
SELECT 95 + - 55
----
40

query I rowsort
SELECT 31 - + 85
----
-54

query I rowsort
SELECT ALL - 11 - - 65 col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT ALL - ( - COALESCE ( - 15, + MIN( + + ( + + 23 ) ) ) )
----
-15

skipif mysql # not compatible
query I rowsort label-1192
SELECT ALL - ( - COALESCE ( - 15, + MIN ( + + ( + + 23 ) ) ) )
----
-15

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

skipif mysql # not compatible
query I rowsort label-1193
SELECT 20 + - CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT DISTINCT + 66 * - 36 AS col2
----
-2376

onlyif mysql # aggregate syntax: 
query II rowsort label-1195
SELECT ALL - 4 AS col1, + COUNT( * )
----
-4
1

skipif mysql # not compatible
query II rowsort label-1195
SELECT ALL - 4 AS col1, + COUNT ( * )
----
-4
1

query I rowsort
SELECT ALL - ( - - 26 ) col0
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-1197
SELECT DISTINCT - - COUNT( * ), 97 * - SUM( DISTINCT 95 ) * + + 96 + 59 * + 18 AS col2
----
1
-883578

skipif mysql # not compatible
query II rowsort label-1197
SELECT DISTINCT - - COUNT ( * ), 97 * - SUM ( DISTINCT 95 ) * + + 96 + 59 * + 18 AS col2
----
1
-883578

onlyif mysql # DIV for integer division: 
query I rowsort label-1198
SELECT ALL + + 27 DIV + 4 + 20 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-1198
SELECT ALL + + 27 / + 4 + 20 AS col2
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1199
SELECT 56 + + CAST( - 21 AS SIGNED ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-1199
SELECT 56 + + CAST ( - 21 AS INTEGER ) AS col1
----
35

query II rowsort
SELECT + 47 AS col0, 99
----
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-1201
SELECT + ( 33 ) * + + 88 * - + 65 + - 96 * - 52 * - 26 - + 11 DIV + - 29
----
-318552

skipif mysql # not compatible
query I rowsort label-1201
SELECT + ( 33 ) * + + 88 * - + 65 + - 96 * - 52 * - 26 - + 11 / + - 29
----
-318552

query I rowsort
SELECT 90 * 78
----
7020

query I rowsort
SELECT - 38 * - 86 * 29 + - 82 AS col2
----
94690

query I rowsort
SELECT 87 * - 38 + 81 * + 87 AS col2
----
3741

query I rowsort
SELECT DISTINCT + 65 * + 54
----
3510

query I rowsort
SELECT ALL 5 + + - 32 AS col2
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-1207
SELECT + ( - 72 ) * - 63, COALESCE ( - 11, 66 + + COUNT( * ), NULLIF ( + - 97, - MIN( ALL 92 ) ), - 41 ) * + + 86 AS col2
----
4536
-946

skipif mysql # not compatible
query II rowsort label-1207
SELECT + ( - 72 ) * - 63, COALESCE ( - 11, 66 + + COUNT ( * ), NULLIF ( + - 97, - MIN ( ALL 92 ) ), - 41 ) * + + 86 AS col2
----
4536
-946

query I rowsort
SELECT ALL - 41 + + 55 - - + 64
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-1209
SELECT - NULLIF ( - MIN( DISTINCT - 57 ), + ( 91 ) ) AS col1, 48 + SUM( + - 82 ) + + - 10 AS col2
----
-57
-44

skipif mysql # not compatible
query II rowsort label-1209
SELECT - NULLIF ( - MIN ( DISTINCT - 57 ), + ( 91 ) ) AS col1, 48 + SUM ( + - 82 ) + + - 10 AS col2
----
-57
-44

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

skipif mysql # not compatible
query I rowsort label-1210
SELECT - CAST ( NULL AS INTEGER ) + + + 86 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 38 + - 1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-1212
SELECT ALL ( + MAX( ALL 53 ) ) + 99
----
152

skipif mysql # not compatible
query I rowsort label-1212
SELECT ALL ( + MAX ( ALL 53 ) ) + 99
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-1213
SELECT + MAX( ALL - 70 ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-1213
SELECT + MAX ( ALL - 70 ) AS col1
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1214
SELECT DISTINCT 51 + - CAST( NULL AS SIGNED ) + - AVG ( + - 96 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1214
SELECT DISTINCT 51 + - CAST ( NULL AS INTEGER ) + - AVG ( + - 96 )
----
NULL

query I rowsort
SELECT DISTINCT 3 + + + 45 * 63
----
2838

query I rowsort
SELECT DISTINCT CASE - + 5 WHEN - - 88 + - 51 THEN + - 59 END * + + 83 * + ( - - 12 ) * - 16 * + 6
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1217
SELECT ALL 3 AS col2, + 97 * + MIN( ALL + + 96 ) * 21 - - 36 - ( + 44 ) AS col2
----
3
195544

skipif mysql # not compatible
query II rowsort label-1217
SELECT ALL 3 AS col2, + 97 * + MIN ( ALL + + 96 ) * 21 - - 36 - ( + 44 ) AS col2
----
3
195544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1218
SELECT ALL 32 * - + 72 * + NULLIF ( + ( - CAST( COALESCE ( + - 62, - - 16 * + 21 ) AS SIGNED ) ), - + ( + COALESCE ( - 23, + 78 * - 93 ) ) * + 6 * + + 54 / 29 - + + 31 * - 54 + + 42 * + - 84 * + 24 ) col2
----
-142848

skipif mysql # not compatible
query I rowsort label-1218
SELECT ALL 32 * - + 72 * + NULLIF ( + ( - CAST ( COALESCE ( + - 62, - - 16 * + 21 ) AS INTEGER ) ), - + ( + COALESCE ( - 23, + 78 * - 93 ) ) * + 6 * + + 54 / 29 - + + 31 * - 54 + + 42 * + - 84 * + 24 ) col2
----
-142848

query II rowsort
SELECT 77, 51 - - 62 AS col2
----
77
113

query I rowsort
SELECT 31 + 52 * + + 3
----
187

query I rowsort
SELECT 40 + 4 + ( + ( - 89 ) )
----
-45

query I rowsort
SELECT ALL + 79 - - 30 * + 32
----
1039

query II rowsort
SELECT ALL 14 AS col0, 43 * 25 AS col1
----
14
1075

onlyif mysql # DIV for integer division: 
query I rowsort label-1224
SELECT DISTINCT - 7 DIV + + ( 94 )
----
0

skipif mysql # not compatible
query I rowsort label-1224
SELECT DISTINCT - 7 / + + ( 94 )
----
0

query II rowsort
SELECT DISTINCT 22 AS col0, 38
----
22
38

query I rowsort
SELECT ALL - 89 * - 46 AS col2
----
4094

query I rowsort
SELECT 40 * + COALESCE ( + 59, - 75, - + 2 )
----
2360

query I rowsort
SELECT ALL - 80 * + 37 AS col0
----
-2960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1229
SELECT DISTINCT - ( + MAX( ALL - 35 ) ) DIV - 78 - 4 + - 62 DIV + COUNT( * ) col0
----
-66

skipif mysql # not compatible
query I rowsort label-1229
SELECT DISTINCT - ( + MAX ( ALL - 35 ) ) / - 78 - 4 + - 62 / + COUNT ( * ) col0
----
-66

query I rowsort
SELECT ALL + 17 * - 10 * - - 77
----
-13090

onlyif mysql # aggregate syntax: 
query II rowsort label-1231
SELECT ALL - COUNT( * ), 55 - + 57 col0
----
-1
-2

skipif mysql # not compatible
query II rowsort label-1231
SELECT ALL - COUNT ( * ), 55 - + 57 col0
----
-1
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1232
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1232
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 15 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1233
SELECT COUNT( DISTINCT 62 ) * - ( + NULLIF ( + ( ( + 8 ) ), 66 * - - 71 ) )
----
-8

skipif mysql # not compatible
query I rowsort label-1233
SELECT COUNT ( DISTINCT 62 ) * - ( + NULLIF ( + ( ( + 8 ) ), 66 * - - 71 ) )
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-1234
SELECT - 14 col2, COUNT( * ) AS col0
----
-14
1

skipif mysql # not compatible
query II rowsort label-1234
SELECT - 14 col2, COUNT ( * ) AS col0
----
-14
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1235
SELECT ALL + 85 * - 47 + + 3 + - - CAST( CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1235
SELECT ALL + 85 * - 47 + + 3 + - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT + 78 * + 93 - 36 AS col0
----
7218

query I rowsort
SELECT - 36 * - 44 AS col0
----
1584

query I rowsort
SELECT ALL - 25 * + ( + 32 ) + - 48
----
-848

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1239
SELECT - CAST( - - 11 AS SIGNED ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-1239
SELECT - CAST ( - - 11 AS INTEGER ) AS col2
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1240
SELECT ALL - 84 AS col0, 28 - - 52 + - 64 - + - CAST( - 50 AS SIGNED ) + + - 2
----
-84
-36

skipif mysql # not compatible
query II rowsort label-1240
SELECT ALL - 84 AS col0, 28 - - 52 + - 64 - + - CAST ( - 50 AS INTEGER ) + + - 2
----
-84
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1241
SELECT DISTINCT + 33 + + 11 + - CASE + 81 WHEN NULLIF ( - + 9, 17 + + COUNT( * ) ) * - + 41 * - - CASE - 46 WHEN - COUNT( * ) + - CASE + 81 WHEN 95 THEN - 84 END THEN 53 * + - CAST( NULL AS SIGNED ) WHEN + - 65 THEN 65 ELSE - 46 END + 40 THEN NULL WHEN + 6 * 39 * - COUNT( * ) THEN NULL ELSE + + CAST( - AVG ( DISTINCT 61 ) AS SIGNED ) + - 71 * + 72 END + - 77
----
5140

skipif mysql # not compatible
query I rowsort label-1241
SELECT DISTINCT + 33 + + 11 + - CASE + 81 WHEN NULLIF ( - + 9, 17 + + COUNT ( * ) ) * - + 41 * - - CASE - 46 WHEN - COUNT ( * ) + - CASE + 81 WHEN 95 THEN - 84 END THEN 53 * + - CAST ( NULL AS INTEGER ) WHEN + - 65 THEN 65 ELSE - 46 END + 40 THEN NULL WHEN + 6 * 39 * - COUNT ( * ) THEN NULL ELSE + + CAST ( - AVG ( DISTINCT 61 ) AS INTEGER ) + - 71 * + 72 END + - 77
----
5140

onlyif mysql # DIV for integer division: 
query I rowsort label-1242
SELECT ALL 11 + + - 91 DIV 63 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-1242
SELECT ALL 11 + + - 91 / 63 AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1243
SELECT ALL + - 20 + + + COUNT( * ) + - + 20 * 94 * - ( + 61 )
----
114661

skipif mysql # not compatible
query I rowsort label-1243
SELECT ALL + - 20 + + + COUNT ( * ) + - + 20 * 94 * - ( + 61 )
----
114661

query I rowsort
SELECT - 25 + 67 AS col1
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1245
SELECT + CAST( NULL AS SIGNED ) * - 18 - - ( + 44 ) * - - 52 + + ( - - 3 ) - + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-1245
SELECT + CAST ( NULL AS INTEGER ) * - 18 - - ( + 44 ) * - - 52 + + ( - - 3 ) - + 37
----
NULL

query I rowsort
SELECT - NULLIF ( + - 30, + 94 )
----
30

query I rowsort
SELECT + NULLIF ( - 74, + ( - 85 ) ) - - - 98 AS col2
----
-172

query I rowsort
SELECT ALL 78 + - 46 AS col2
----
32

query I rowsort
SELECT + 22 * + 66 AS col2
----
1452

onlyif mysql # aggregate syntax: 
query I rowsort label-1250
SELECT - + SUM( + 56 ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-1250
SELECT - + SUM ( + 56 ) AS col2
----
-56

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1251
SELECT ALL + 59 + COALESCE ( - 12, CAST( NULL AS SIGNED ) * - 35 DIV + CAST( - - 34 AS SIGNED ) DIV + - 69 + NULLIF ( - - 20, + - 89 ) + + 9, - + 52 ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-1251
SELECT ALL + 59 + COALESCE ( - 12, CAST ( NULL AS INTEGER ) * - 35 / + CAST ( - - 34 AS INTEGER ) / + - 69 + NULLIF ( - - 20, + - 89 ) + + 9, - + 52 ) AS col0
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1252
SELECT + - CAST( - ( 33 ) AS SIGNED ) + + COUNT( * ) * + + 6
----
39

skipif mysql # not compatible
query I rowsort label-1252
SELECT + - CAST ( - ( 33 ) AS INTEGER ) + + COUNT ( * ) * + + 6
----
39

query I rowsort
SELECT - COALESCE ( + 2, + - 41 ) + + 36 col1
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1254
SELECT - 97 * + 5 * + + 58 col1, - CAST( + 29 AS SIGNED ) - + - 18
----
-28130
-11

skipif mysql # not compatible
query II rowsort label-1254
SELECT - 97 * + 5 * + + 58 col1, - CAST ( + 29 AS INTEGER ) - + - 18
----
-28130
-11

query I rowsort
SELECT + 3 * - 98 AS col0
----
-294

query I rowsort
SELECT - NULLIF ( 32, + + 21 )
----
-32

query I rowsort
SELECT + 79 + 46 AS col2
----
125

query I rowsort
SELECT ALL 78 * 45 AS col1
----
3510

query I rowsort
SELECT + 84 + 82
----
166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1260
SELECT - CASE - + 11 WHEN 6 THEN + - NULLIF ( - CAST( NULL AS SIGNED ), - 50 + - - 61 + - CAST( - 55 AS SIGNED ) * + 62 ) * 34 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1260
SELECT - CASE - + 11 WHEN 6 THEN + - NULLIF ( - CAST ( NULL AS INTEGER ), - 50 + - - 61 + - CAST ( - 55 AS INTEGER ) * + 62 ) * 34 END
----
NULL

query I rowsort
SELECT + 37 * - 51 AS col2
----
-1887

query I rowsort
SELECT ALL 42 * - 19 * + 39 AS col1
----
-31122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1263
SELECT ALL CASE COALESCE ( - + 29, + 67 ) WHEN 56 THEN NULL WHEN COUNT( DISTINCT 72 ) THEN COALESCE ( - NULLIF ( + 88, CASE - - 40 WHEN 68 THEN - 48 * - 30 * + COUNT( * ) + + 49 WHEN - 24 * + + 48 + - 75 THEN NULL ELSE - 95 END + + 29 * + + 46 ), + COALESCE ( - + 34, 57 ) - - 1 - 86 * - COUNT( * ) * - 42, CAST( + + 10 AS SIGNED ) * + 33 + 6 / - 12 ) WHEN 49 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1263
SELECT ALL CASE COALESCE ( - + 29, + 67 ) WHEN 56 THEN NULL WHEN COUNT ( DISTINCT 72 ) THEN COALESCE ( - NULLIF ( + 88, CASE - - 40 WHEN 68 THEN - 48 * - 30 * + COUNT ( * ) + + 49 WHEN - 24 * + + 48 + - 75 THEN NULL ELSE - 95 END + + 29 * + + 46 ), + COALESCE ( - + 34, 57 ) - - 1 - 86 * - COUNT ( * ) * - 42, CAST ( + + 10 AS INTEGER ) * + 33 + 6 / - 12 ) WHEN 49 THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1264
SELECT + 1 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1264
SELECT + 1 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1265
SELECT 22 * + 13 + - MAX( ALL 52 ) AS col1
----
234

skipif mysql # not compatible
query I rowsort label-1265
SELECT 22 * + 13 + - MAX ( ALL 52 ) AS col1
----
234

onlyif mysql # aggregate syntax: 
query II rowsort label-1266
SELECT + ( - + 5 ), - COUNT( * ) - + - COUNT( * ) AS col0
----
-5
0

skipif mysql # not compatible
query II rowsort label-1266
SELECT + ( - + 5 ), - COUNT ( * ) - + - COUNT ( * ) AS col0
----
-5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1267
SELECT ( - - ( + - CASE + 45 WHEN 88 THEN COUNT( * ) - - + 3 + AVG ( ALL 0 ) ELSE NULL END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1267
SELECT ( - - ( + - CASE + 45 WHEN 88 THEN COUNT ( * ) - - + 3 + AVG ( ALL 0 ) ELSE NULL END ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT + - MAX( DISTINCT + 26 ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-1268
SELECT + - MAX ( DISTINCT + 26 ) AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-1269
SELECT - 51 * + 11 + SUM( ALL - 55 ) - + 61
----
-677

skipif mysql # not compatible
query I rowsort label-1269
SELECT - 51 * + 11 + SUM ( ALL - 55 ) - + 61
----
-677

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1270
SELECT ALL + 35 * + CAST( NULL AS SIGNED ) + + + SUM( + 53 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1270
SELECT ALL + 35 * + CAST ( NULL AS INTEGER ) + + + SUM ( + 53 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1271
SELECT ALL + - SUM( - + 53 ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-1271
SELECT ALL + - SUM ( - + 53 ) AS col1
----
53

query I rowsort
SELECT DISTINCT + NULLIF ( - ( - ( + 94 ) ), 19 ) AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1273
SELECT + COUNT( * ) * 85 * + 34 + + - 46 + + 1 + + - 94 * - COUNT( ALL - 13 ) AS col2
----
2939

skipif mysql # not compatible
query I rowsort label-1273
SELECT + COUNT ( * ) * 85 * + 34 + + - 46 + + 1 + + - 94 * - COUNT ( ALL - 13 ) AS col2
----
2939

onlyif mysql # aggregate syntax: 
query I rowsort label-1274
SELECT - + ( + 83 ) + MAX( + 30 )
----
-53

skipif mysql # not compatible
query I rowsort label-1274
SELECT - + ( + 83 ) + MAX ( + 30 )
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1275
SELECT - COUNT( ALL + ( CAST( 38 AS SIGNED ) ) ) * - 58 + - 58 * + 30 AS col2, + 76
----
-1682
76

skipif mysql # not compatible
query II rowsort label-1275
SELECT - COUNT ( ALL + ( CAST ( 38 AS INTEGER ) ) ) * - 58 + - 58 * + 30 AS col2, + 76
----
-1682
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1276
SELECT + 88 * + CASE - 35 WHEN + - ( + + 97 ) THEN + - 57 * + + 97 * - 3 WHEN - - ( + 80 ) THEN + + COUNT( * ) END + - MAX( - 94 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1276
SELECT + 88 * + CASE - 35 WHEN + - ( + + 97 ) THEN + - 57 * + + 97 * - 3 WHEN - - ( + 80 ) THEN + + COUNT ( * ) END + - MAX ( - 94 )
----
NULL

query I rowsort
SELECT DISTINCT - + 13 * + 44 AS col0
----
-572

onlyif mysql # aggregate syntax: 
query I rowsort label-1278
SELECT - COUNT( DISTINCT + + NULLIF ( - + 86, - - 46 ) ) * 66
----
-66

skipif mysql # not compatible
query I rowsort label-1278
SELECT - COUNT ( DISTINCT + + NULLIF ( - + 86, - - 46 ) ) * 66
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1279
SELECT - MAX( + 36 )
----
-36

skipif mysql # not compatible
query I rowsort label-1279
SELECT - MAX ( + 36 )
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1280
SELECT - CASE - 49 WHEN - 97 + 79 / - 81 THEN + 61 END - 38 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1280
SELECT - CASE - 49 WHEN - 97 + 79 / - 81 THEN + 61 END - 38 - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1281
SELECT + 3 DIV + + 51
----
0

skipif mysql # not compatible
query I rowsort label-1281
SELECT + 3 / + + 51
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1282
SELECT ALL - 25 / - CASE + COUNT( * ) WHEN - + 66 THEN CAST( NULL AS SIGNED ) WHEN + - 33 + - 62 - + 46 * MAX( ALL - + 60 ) THEN + 31 + + - 49 * 1 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1282
SELECT ALL - 25 / - CASE + COUNT ( * ) WHEN - + 66 THEN CAST ( NULL AS INTEGER ) WHEN + - 33 + - 62 - + 46 * MAX ( ALL - + 60 ) THEN + 31 + + - 49 * 1 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - 15 * + + 11
----
-165

query II rowsort
SELECT + 20 + - 47 * - 79 col2, + 22 col1
----
3733
22

onlyif mysql # aggregate syntax: 
query II rowsort label-1285
SELECT - NULLIF ( - NULLIF ( - NULLIF ( - 29, - - 34 + + + 13 ), CASE - 65 WHEN + 22 + + MAX( ALL 17 ) THEN NULL ELSE + 48 END ), + 35 ), 7 AS col0
----
29
7

skipif mysql # not compatible
query II rowsort label-1285
SELECT - NULLIF ( - NULLIF ( - NULLIF ( - 29, - - 34 + + + 13 ), CASE - 65 WHEN + 22 + + MAX ( ALL 17 ) THEN NULL ELSE + 48 END ), + 35 ), 7 AS col0
----
29
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1286
SELECT DISTINCT + COUNT( * ) * 49 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-1286
SELECT DISTINCT + COUNT ( * ) * 49 AS col1
----
49

query I rowsort
SELECT - ( - 14 ) col2
----
14

query I rowsort
SELECT - 85 + + - 75 + - - 5 col1
----
-155

onlyif mysql # DIV for integer division: 
query I rowsort label-1289
SELECT - 43 - - + 2 DIV + 35 + 34 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-1289
SELECT - 43 - - + 2 / + 35 + 34 AS col2
----
-9

query I rowsort
SELECT DISTINCT + 7 * - 92
----
-644

onlyif mysql # aggregate syntax: 
query I rowsort label-1291
SELECT DISTINCT - 35 * + CASE - ( - 49 ) WHEN 93 THEN COUNT( * ) + 79 WHEN - CASE + COUNT( * ) WHEN + - 32 THEN 56 END + - COUNT( * ) * + AVG ( ALL + 68 ) THEN - + 55 END * + 39 * - - AVG ( - 14 ) + - ( 55 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1291
SELECT DISTINCT - 35 * + CASE - ( - 49 ) WHEN 93 THEN COUNT ( * ) + 79 WHEN - CASE + COUNT ( * ) WHEN + - 32 THEN 56 END + - COUNT ( * ) * + AVG ( ALL + 68 ) THEN - + 55 END * + 39 * - - AVG ( - 14 ) + - ( 55 ) AS col1
----
NULL

query I rowsort
SELECT + 13 * - 33
----
-429

query I rowsort
SELECT + 31 + 73 * + + ( + 96 ) AS col0
----
7039

query II rowsort
SELECT 77 col2, 64 AS col1
----
77
64

query I rowsort
SELECT + ( 47 ) + 42
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT - NULLIF ( + + COUNT( * ), - + 33 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1296
SELECT - NULLIF ( + + COUNT ( * ), - + 33 ) AS col0
----
-1

query I rowsort
SELECT ALL 89 + + 81 AS col1
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-1298
SELECT - ( - MIN( - 18 ) )
----
-18

skipif mysql # not compatible
query I rowsort label-1298
SELECT - ( - MIN ( - 18 ) )
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1299
SELECT DISTINCT + + MAX( DISTINCT - - CAST( 14 AS SIGNED ) ) DIV 58 * - + 4 * + 29 - + 77 * 33 + - COUNT( * ) * + + COUNT( ALL - 68 ) - 51
----
-2593

skipif mysql # not compatible
query I rowsort label-1299
SELECT DISTINCT + + MAX ( DISTINCT - - CAST ( 14 AS INTEGER ) ) / 58 * - + 4 * + 29 - + 77 * 33 + - COUNT ( * ) * + + COUNT ( ALL - 68 ) - 51
----
-2593

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1300
SELECT DISTINCT 65 DIV 34 + - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1300
SELECT DISTINCT 65 / 34 + - COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1301
SELECT + 63 * MIN( DISTINCT - - 45 ) DIV ( - 60 ) + - - 45 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-1301
SELECT + 63 * MIN ( DISTINCT - - 45 ) / ( - 60 ) + - - 45 AS col1
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1302
SELECT ALL - 42 * 71 DIV - COUNT( * ) + + + MAX( 56 ) * + 78
----
7350

skipif mysql # not compatible
query I rowsort label-1302
SELECT ALL - 42 * 71 / - COUNT ( * ) + + + MAX ( 56 ) * + 78
----
7350

query II rowsort
SELECT DISTINCT - - 55 AS col1, + 25 * 5 AS col1
----
55
125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1304
SELECT ALL + CASE - 53 WHEN + - CAST( - + 68 AS SIGNED ) / + - 29 * - + 94 THEN + CAST( NULL AS SIGNED ) ELSE 28 END - - ( - 48 )
----
-20

skipif mysql # not compatible
query I rowsort label-1304
SELECT ALL + CASE - 53 WHEN + - CAST ( - + 68 AS INTEGER ) / + - 29 * - + 94 THEN + CAST ( NULL AS INTEGER ) ELSE 28 END - - ( - 48 )
----
-20

query II rowsort
SELECT + 31 * - ( + 59 ) - + 24 + + - 0 + - ( + 43 ) * - - 24 * + + 18, 24 AS col2
----
-20429
24

query I rowsort
SELECT ALL - - CASE - - 9 WHEN - + 48 THEN NULL ELSE + 49 END
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT 83 - + SUM( 11 ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-1307
SELECT 83 - + SUM ( 11 ) AS col1
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1308
SELECT ALL + - 40 * - 65 * + NULLIF ( - COUNT( * ), + ( - CASE 17 WHEN + - 28 * - 3 + + 40 THEN - SUM( 45 ) WHEN - AVG ( ALL 37 ) THEN NULL ELSE - - COUNT( * ) END ) * - ( - COUNT( * ) ) ) * + 25 * + + 55 * + + NULLIF ( - 4, + 39 ) / 98 - ( COUNT( DISTINCT + 1 ) ) - - CAST( NULL AS SIGNED ) / 47 * 87 + COUNT( * ) * 69 * 32 + - + 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1308
SELECT ALL + - 40 * - 65 * + NULLIF ( - COUNT ( * ), + ( - CASE 17 WHEN + - 28 * - 3 + + 40 THEN - SUM ( 45 ) WHEN - AVG ( ALL 37 ) THEN NULL ELSE - - COUNT ( * ) END ) * - ( - COUNT ( * ) ) ) * + 25 * + + 55 * + + NULLIF ( - 4, + 39 ) / 98 - ( COUNT ( DISTINCT + 1 ) ) - - CAST ( NULL AS INTEGER ) / 47 * 87 + COUNT ( * ) * 69 * 32 + - + 77 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1309
SELECT + CASE + 66 WHEN 22 + + SUM( + 96 ) THEN NULL ELSE - + 88 + - + 33 END * - 21
----
2541

skipif mysql # not compatible
query I rowsort label-1309
SELECT + CASE + 66 WHEN 22 + + SUM ( + 96 ) THEN NULL ELSE - + 88 + - + 33 END * - 21
----
2541

query II rowsort
SELECT + 7 AS col2, 14
----
7
14

onlyif mysql # DIV for integer division: 
query I rowsort label-1311
SELECT DISTINCT 44 - + 84 DIV 41
----
42

skipif mysql # not compatible
query I rowsort label-1311
SELECT DISTINCT 44 - + 84 / 41
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1312
SELECT - + COUNT( * ) * 70 - + 14 AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-1312
SELECT - + COUNT ( * ) * 70 - + 14 AS col2
----
-84

query I rowsort
SELECT 50 * + - 62
----
-3100

onlyif mysql # aggregate syntax: 
query I rowsort label-1314
SELECT DISTINCT COUNT( * ) * - CASE + 29 WHEN + + 60 * 82 THEN NULL WHEN - + 92 * - 14 * + - 2 * NULLIF ( + 48, SUM( + 9 ) ) THEN - MIN( - + 37 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1314
SELECT DISTINCT COUNT ( * ) * - CASE + 29 WHEN + + 60 * 82 THEN NULL WHEN - + 92 * - 14 * + - 2 * NULLIF ( + 48, SUM ( + 9 ) ) THEN - MIN ( - + 37 ) END
----
NULL

query I rowsort
SELECT 33 + 70 + 1 AS col0
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1316
SELECT ALL + COALESCE ( + 28, + 8, CAST( NULL AS SIGNED ) ) + + COUNT( * ) * 79 * - 3
----
-209

skipif mysql # not compatible
query I rowsort label-1316
SELECT ALL + COALESCE ( + 28, + 8, CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) * 79 * - 3
----
-209

query I rowsort
SELECT ALL 49 + - - 1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1318
SELECT MAX( - 42 ) * + + 22 * + 88
----
-81312

skipif mysql # not compatible
query I rowsort label-1318
SELECT MAX ( - 42 ) * + + 22 * + 88
----
-81312

query I rowsort
SELECT DISTINCT + 76 + ( + ( + 65 ) ) * + + 89 * 50 AS col2
----
289326

onlyif mysql # aggregate syntax: 
query I rowsort label-1320
SELECT SUM( - 16 ) + + 93
----
77

skipif mysql # not compatible
query I rowsort label-1320
SELECT SUM ( - 16 ) + + 93
----
77

query II rowsort
SELECT 55 - + 39 AS col0, 15 AS col2
----
16
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-1322
SELECT 65 + + - COUNT( + 57 ) * + COALESCE ( - + 78, - 72 + CASE - CAST( 92 AS DECIMAL ) WHEN - COUNT( * ) THEN NULL WHEN + NULLIF ( - 96, - - 18 ) THEN NULL WHEN 21 + + + COUNT( * ) + + 19 THEN - - 75 ELSE NULL END - + + 43 + - 10 * 40 * 9 - - - 10 * + COALESCE ( + SUM( ALL + + 12 ), - - 92, ( - + 80 ) * + 52 + - - CAST( 68 AS SIGNED ) - + + CAST( COALESCE ( - 23, - 39 + 59 * 40 ) AS SIGNED ) ) DIV CASE 89 - MAX( DISTINCT 14 ) * + 59 WHEN - COUNT( * ) * + 27 THEN - 12 ELSE CAST( NULL AS SIGNED ) * + COUNT( DISTINCT 50 ) END ) + - ( 72 + - 63 ) * + 5
----
98

skipif mysql # not compatible
query I rowsort label-1322
SELECT 65 + + - COUNT ( + 57 ) * + COALESCE ( - + 78, - 72 + CASE - CAST ( 92 AS REAL ) WHEN - COUNT ( * ) THEN NULL WHEN + NULLIF ( - 96, - - 18 ) THEN NULL WHEN 21 + + + COUNT ( * ) + + 19 THEN - - 75 ELSE NULL END - + + 43 + - 10 * 40 * 9 - - - 10 * + COALESCE ( + SUM ( ALL + + 12 ), - - 92, ( - + 80 ) * + 52 + - - CAST ( 68 AS INTEGER ) - + + CAST ( COALESCE ( - 23, - 39 + 59 * 40 ) AS INTEGER ) ) / CASE 89 - MAX ( DISTINCT 14 ) * + 59 WHEN - COUNT ( * ) * + 27 THEN - 12 ELSE CAST ( NULL AS INTEGER ) * + COUNT ( DISTINCT 50 ) END ) + - ( 72 + - 63 ) * + 5
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1323
SELECT + 11 + - NULLIF ( - + 50, - 93 + - + 86 * + COUNT( * ) / ( - CASE 16 WHEN - - 83 THEN NULL WHEN + 33 + - 87 * + + 90 THEN 21 + - 44 + - 74 / + - 24 + - + 72 END ) + 58 + + + 49 ) + + CASE WHEN 9 NOT BETWEEN - MIN( ( - - 56 ) ) AND - 76 THEN NULL ELSE + + 90 * + + 46 + 6 END * + + COUNT( * ) + - 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1323
SELECT + 11 + - NULLIF ( - + 50, - 93 + - + 86 * + COUNT ( * ) / ( - CASE 16 WHEN - - 83 THEN NULL WHEN + 33 + - 87 * + + 90 THEN 21 + - 44 + - 74 / + - 24 + - + 72 END ) + 58 + + + 49 ) + + CASE WHEN 9 NOT BETWEEN - MIN ( ( - - 56 ) ) AND - 76 THEN NULL ELSE + + 90 * + + 46 + 6 END * + + COUNT ( * ) + - 3 AS col2
----
NULL

query I rowsort
SELECT 79 - + 90
----
-11

query I rowsort
SELECT DISTINCT - - 63 * + 31 * 27 + 29 + - 61 + 58 col1
----
52757

onlyif mysql # aggregate syntax: 
query I rowsort label-1326
SELECT 59 * + 9 - - SUM( + 68 ) + 95 + - 36 AS col1
----
658

skipif mysql # not compatible
query I rowsort label-1326
SELECT 59 * + 9 - - SUM ( + 68 ) + 95 + - 36 AS col1
----
658

query I rowsort
SELECT - 14 + + + 37 AS col1
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1328
SELECT AVG ( + - 65 ) / + ( - + ( 14 ) ) + - - MIN( - CAST( + - 87 AS SIGNED ) ) + + CASE - 60 WHEN 86 * - + 15 THEN 64 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1328
SELECT AVG ( + - 65 ) / + ( - + ( 14 ) ) + - - MIN ( - CAST ( + - 87 AS INTEGER ) ) + + CASE - 60 WHEN 86 * - + 15 THEN 64 END
----
NULL

query I rowsort
SELECT + 55 + + 67 AS col2
----
122

query I rowsort
SELECT - 77 + + + 33 col0
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1331
SELECT DISTINCT + COUNT( * ) * 22 * - ( + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) ) + + - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-1331
SELECT DISTINCT + COUNT ( * ) * 22 * - ( + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) + + - 42
----
NULL

query I rowsort
SELECT - 21 * - 2 * - 84 AS col2
----
-3528

onlyif mysql # aggregate syntax: 
query I rowsort label-1333
SELECT - + 53 * - + COUNT( * ) + - 5
----
48

skipif mysql # not compatible
query I rowsort label-1333
SELECT - + 53 * - + COUNT ( * ) + - 5
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1334
SELECT ( - + 98 ) / - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1334
SELECT ( - + 98 ) / - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 50 * - 23
----
-1150

onlyif mysql # aggregate syntax: 
query II rowsort label-1336
SELECT 53 + - 89 * 60 AS col0, + 73 * + - 63 + COUNT( * )
----
-5287
-4598

skipif mysql # not compatible
query II rowsort label-1336
SELECT 53 + - 89 * 60 AS col0, + 73 * + - 63 + COUNT ( * )
----
-5287
-4598

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT + MAX( - + 98 )
----
-98

skipif mysql # not compatible
query I rowsort label-1337
SELECT + MAX ( - + 98 )
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-1338
SELECT ALL - 62 DIV - 8 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-1338
SELECT ALL - 62 / - 8 AS col0
----
7

query I rowsort
SELECT DISTINCT 67 + - + NULLIF ( 81, - 50 + + 31 + + + 14 ) col2
----
-14

query I rowsort
SELECT DISTINCT - 44 * - - 77 AS col0
----
-3388

query I rowsort
SELECT DISTINCT + 89 + - 65 AS col0
----
24

query I rowsort
SELECT 23 - - - 79 col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-1343
SELECT - MAX( - 3 ) col0
----
3

skipif mysql # not compatible
query I rowsort label-1343
SELECT - MAX ( - 3 ) col0
----
3

query I rowsort
SELECT DISTINCT + 90 + + - 68
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1345
SELECT - NULLIF ( - CAST( + - 36 AS SIGNED ), + 84 + - + 59 * - - 55 ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-1345
SELECT - NULLIF ( - CAST ( + - 36 AS INTEGER ), + 84 + - + 59 * - - 55 ) AS col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1346
SELECT 84 + - ( 67 ) * - + COUNT( * ) AS col1
----
151

skipif mysql # not compatible
query I rowsort label-1346
SELECT 84 + - ( 67 ) * - + COUNT ( * ) AS col1
----
151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1347
SELECT ALL + 72 + - 49 + 90 + + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1347
SELECT ALL + 72 + - 49 + 90 + + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1348
SELECT ALL CAST( - 86 AS SIGNED ) * 32 AS col0
----
-2752

skipif mysql # not compatible
query I rowsort label-1348
SELECT ALL CAST ( - 86 AS INTEGER ) * 32 AS col0
----
-2752

query I rowsort
SELECT 65 + + 15
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1350
SELECT DISTINCT MIN( - 14 ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-1350
SELECT DISTINCT MIN ( - 14 ) AS col2
----
-14

query I rowsort
SELECT ALL + 73 + - 73 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1352
SELECT + 49 / - - 81 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1352
SELECT + 49 / - - 81 * + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT - NULLIF ( + 61, - 64 + + 58 ) + + COALESCE ( + - 95, ( + 23 ) + - 98 ) + - - 82 AS col0, 13 + + - 35 * + ( - 51 ) AS col2
----
-74
1798

query I rowsort
SELECT - 36 * + 52 AS col2
----
-1872

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1355
SELECT DISTINCT CAST( - + COALESCE ( + + 42, - 38 * + 9 * - 73 * - 37 + + 16 ) AS SIGNED )
----
-42

skipif mysql # not compatible
query I rowsort label-1355
SELECT DISTINCT CAST ( - + COALESCE ( + + 42, - 38 * + 9 * - 73 * - 37 + + 16 ) AS INTEGER )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-1356
SELECT ALL - 26 - + 87 + - COUNT( * ) * - COUNT( * )
----
-112

skipif mysql # not compatible
query I rowsort label-1356
SELECT ALL - 26 - + 87 + - COUNT ( * ) * - COUNT ( * )
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-1357
SELECT - - 20 * - COUNT( * ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-1357
SELECT - - 20 * - COUNT ( * ) AS col1
----
-20

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1358
SELECT - CAST( NULL AS DECIMAL ) * - + 90 - + 72 + - + 75 + - 22 * + 44 + + NULLIF ( ( COUNT( * ) ), CASE - 21 WHEN 22 THEN + - 1 * + - COUNT( * ) + + + 56 + + + 66 + + - 60 * 74 END ) + + - 6 * 91, CAST( NULL AS DECIMAL ) / COUNT( * )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1358
SELECT - CAST ( NULL AS REAL ) * - + 90 - + 72 + - + 75 + - 22 * + 44 + + NULLIF ( ( COUNT ( * ) ), CASE - 21 WHEN 22 THEN + - 1 * + - COUNT ( * ) + + + 56 + + + 66 + + - 60 * 74 END ) + + - 6 * 91, CAST ( NULL AS REAL ) / COUNT ( * )
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1359
SELECT + NULLIF ( + - CAST( 85 AS SIGNED ), + 95 )
----
-85

skipif mysql # not compatible
query I rowsort label-1359
SELECT + NULLIF ( + - CAST ( 85 AS INTEGER ), + 95 )
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1360
SELECT 86 AS col2, ( + 5 ) * + CAST( NULL AS SIGNED ) + - 5 AS col2
----
86
NULL

skipif mysql # not compatible
query II rowsort label-1360
SELECT 86 AS col2, ( + 5 ) * + CAST ( NULL AS INTEGER ) + - 5 AS col2
----
86
NULL

query II rowsort
SELECT ALL + + 95 AS col2, 24 AS col0
----
95
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1362
SELECT DISTINCT - - COUNT( * ) * 76 * - 57 AS col0
----
-4332

skipif mysql # not compatible
query I rowsort label-1362
SELECT DISTINCT - - COUNT ( * ) * 76 * - 57 AS col0
----
-4332

query I rowsort
SELECT - - 21 * + 22
----
462

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-1364
SELECT CAST( NULL AS DECIMAL ) DIV - - ( - 13 ) * + 99 DIV + + SUM( DISTINCT + ( - - 7 ) ) - + - 54 * - 98 - + 96 - 40 AS col1, 48 DIV - + 55 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1364
SELECT CAST ( NULL AS REAL ) / - - ( - 13 ) * + 99 / + + SUM ( DISTINCT + ( - - 7 ) ) - + - 54 * - 98 - + 96 - 40 AS col1, 48 / - + 55 AS col0
----
NULL
0

query I rowsort
SELECT ALL + - COALESCE ( + 18, + 59 - - - 92 + 73 ) col0
----
-18

query I rowsort
SELECT - - 18 * + NULLIF ( 50, 45 ) AS col0
----
900

query II rowsort
SELECT 42 AS col1, + 65 AS col2
----
42
65

query I rowsort
SELECT ALL + + NULLIF ( - ( 15 ), + + 1 + 73 * + 7 )
----
-15

query II rowsort
SELECT 67 AS col1, + ( 53 ) + + 85
----
67
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1370
SELECT + CAST( - COALESCE ( - ( - 88 ), - - 78 * + ( - 19 ) * + 31 ) AS SIGNED )
----
-88

skipif mysql # not compatible
query I rowsort label-1370
SELECT + CAST ( - COALESCE ( - ( - 88 ), - - 78 * + ( - 19 ) * + 31 ) AS INTEGER )
----
-88

query I rowsort
SELECT + 88 * - + 81 - + + 75 col2
----
-7203

query I rowsort
SELECT - - ( - - 58 ) * 90 - - 97
----
5317

onlyif mysql # aggregate syntax: 
query II rowsort label-1373
SELECT ALL + 95 col1, ( + COUNT( * ) )
----
95
1

skipif mysql # not compatible
query II rowsort label-1373
SELECT ALL + 95 col1, ( + COUNT ( * ) )
----
95
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1374
SELECT + COUNT( * ) + - 35 * + 35 AS col2
----
-1224

skipif mysql # not compatible
query I rowsort label-1374
SELECT + COUNT ( * ) + - 35 * + 35 AS col2
----
-1224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1375
SELECT ALL - 37 * 29 + - NULLIF ( + COUNT( * ), CAST( - - MIN( 34 ) AS SIGNED ) ) * 49 / + CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1375
SELECT ALL - 37 * 29 + - NULLIF ( + COUNT ( * ), CAST ( - - MIN ( 34 ) AS INTEGER ) ) * 49 / + CAST ( NULL AS REAL ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1376
SELECT - 16 * + 82 + - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1376
SELECT - 16 * + 82 + - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1377
SELECT + MAX( + 51 ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-1377
SELECT + MAX ( + 51 ) AS col2
----
51

query I rowsort
SELECT + 84 + 54
----
138

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1379
SELECT + 8 DIV + - CAST( 83 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1379
SELECT + 8 / + - CAST ( 83 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1380
SELECT DISTINCT 84 * COUNT( * ) + - 56
----
28

skipif mysql # not compatible
query I rowsort label-1380
SELECT DISTINCT 84 * COUNT ( * ) + - 56
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1381
SELECT ALL 53 * 99 + SUM( 62 ) DIV ( - 51 ) + + 38
----
5284

skipif mysql # not compatible
query I rowsort label-1381
SELECT ALL 53 * 99 + SUM ( 62 ) / ( - 51 ) + + 38
----
5284

onlyif mysql # aggregate syntax: 
query I rowsort label-1382
SELECT SUM( 52 )
----
52

skipif mysql # not compatible
query I rowsort label-1382
SELECT SUM ( 52 )
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-1383
SELECT SUM( DISTINCT + - 86 ) AS col0, 99 * + 82
----
-86
8118

skipif mysql # not compatible
query II rowsort label-1383
SELECT SUM ( DISTINCT + - 86 ) AS col0, 99 * + 82
----
-86
8118

query I rowsort
SELECT + 54 * 15 * 90 * - - 45 AS col0
----
3280500

onlyif mysql # aggregate syntax: 
query I rowsort label-1385
SELECT - COALESCE ( + 70, - COUNT( * ) + - 68 * + - 95 + + - 21 )
----
-70

skipif mysql # not compatible
query I rowsort label-1385
SELECT - COALESCE ( + 70, - COUNT ( * ) + - 68 * + - 95 + + - 21 )
----
-70

query I rowsort
SELECT DISTINCT 78 + ( - 23 )
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1387
SELECT DISTINCT - 13 DIV + - COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-1387
SELECT DISTINCT - 13 / + - COUNT ( * )
----
13

query I rowsort
SELECT + 7 + - - 63 * + 97
----
6118

onlyif mysql # DIV for integer division: 
query I rowsort label-1389
SELECT ALL 13 - - 41 * - NULLIF ( + ( + ( + ( - 44 ) ) ), + + 79 ) + 11 DIV + 95
----
1817

skipif mysql # not compatible
query I rowsort label-1389
SELECT ALL 13 - - 41 * - NULLIF ( + ( + ( + ( - 44 ) ) ), + + 79 ) + 11 / + 95
----
1817

onlyif mysql # aggregate syntax: 
query II rowsort label-1390
SELECT DISTINCT 81, - 27 * - COUNT( * ) AS col0
----
81
27

skipif mysql # not compatible
query II rowsort label-1390
SELECT DISTINCT 81, - 27 * - COUNT ( * ) AS col0
----
81
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1391
SELECT + 36 + - COUNT( * ) * - COALESCE ( 95, 71 + + 64 ) * + 68 + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1391
SELECT + 36 + - COUNT ( * ) * - COALESCE ( 95, 71 + + 64 ) * + 68 + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1392
SELECT + CASE - COUNT( * ) WHEN - 98 * COUNT( * ) - - 64 - - + 2 THEN NULL WHEN - 98 * - COUNT( * ) THEN NULL ELSE - - 78 * + - COUNT( - 33 ) - - 72 + - - ( + + 78 ) + + + 68 DIV - + ( - 19 ) + 39 END * 10 * + ( - 50 ), - COUNT( * ) - + - 80 AS col1
----
-57000
79

skipif mysql # not compatible
query II rowsort label-1392
SELECT + CASE - COUNT ( * ) WHEN - 98 * COUNT ( * ) - - 64 - - + 2 THEN NULL WHEN - 98 * - COUNT ( * ) THEN NULL ELSE - - 78 * + - COUNT ( - 33 ) - - 72 + - - ( + + 78 ) + + + 68 / - + ( - 19 ) + 39 END * 10 * + ( - 50 ), - COUNT ( * ) - + - 80 AS col1
----
-57000
79

query I rowsort
SELECT + ( - 98 ) + - - 69 AS col0
----
-29

query I rowsort
SELECT - 21 + 46 AS col0
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-1395
SELECT ALL + + 46 * + + 78 AS col0, - COUNT( * ) AS col1
----
3588
-1

skipif mysql # not compatible
query II rowsort label-1395
SELECT ALL + + 46 * + + 78 AS col0, - COUNT ( * ) AS col1
----
3588
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1396
SELECT + + 91 * 35 * 35 * - NULLIF ( ( + 19 ), + COUNT( * ) )
----
-2118025

skipif mysql # not compatible
query I rowsort label-1396
SELECT + + 91 * 35 * 35 * - NULLIF ( ( + 19 ), + COUNT ( * ) )
----
-2118025

query I rowsort
SELECT CASE 92 WHEN 73 + - + 59 THEN + 94 + 80 * + 84 ELSE - 23 END AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1398
SELECT + 82 + - + 38 + - ( COUNT( ALL + 0 ) ) - 68 - - 4 * + + ( 22 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-1398
SELECT + 82 + - + 38 + - ( COUNT ( ALL + 0 ) ) - 68 - - 4 * + + ( 22 ) AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1399
SELECT DISTINCT - 63 * - COUNT( * ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-1399
SELECT DISTINCT - 63 * - COUNT ( * ) AS col0
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-1400
SELECT - 10 + 33 AS col1, + 37 + 27 - - + MAX( ALL + - 38 ) + + + 12 AS col0
----
23
38

skipif mysql # not compatible
query II rowsort label-1400
SELECT - 10 + 33 AS col1, + 37 + 27 - - + MAX ( ALL + - 38 ) + + + 12 AS col0
----
23
38

query I rowsort
SELECT DISTINCT - COALESCE ( - - 48, + 88 )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-1402
SELECT + ( 39 ) + - - COUNT( * ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-1402
SELECT + ( 39 ) + - - COUNT ( * ) AS col1
----
40

query I rowsort
SELECT - 37 * + 87 AS col2
----
-3219

query II rowsort
SELECT ALL - 70, - 88 AS col0
----
-70
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-1405
SELECT + - 64 + - COALESCE ( - - 40, + COUNT( * ) - + COUNT( * ) * COUNT( ALL + 69 ) * - CASE + 58 WHEN 55 + - 32 + 28 THEN - - 10 END + + 34 ) AS col0
----
-104

skipif mysql # not compatible
query I rowsort label-1405
SELECT + - 64 + - COALESCE ( - - 40, + COUNT ( * ) - + COUNT ( * ) * COUNT ( ALL + 69 ) * - CASE + 58 WHEN 55 + - 32 + 28 THEN - - 10 END + + 34 ) AS col0
----
-104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1406
SELECT - NULLIF ( - 17, - + 71 + - 53 ) DIV - 10 + + + 29 * + COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-1406
SELECT - NULLIF ( - 17, - + 71 + - 53 ) / - 10 + + + 29 * + COUNT ( * )
----
28

query I rowsort
SELECT DISTINCT - 20 * + + ( + - 64 )
----
1280

onlyif mysql # DIV for integer division: 
query I rowsort label-1408
SELECT - - 15 DIV + - 55 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1408
SELECT - - 15 / + - 55 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1409
SELECT - COUNT( * ) + 29 * + CAST( NULL AS SIGNED ) * NULLIF ( + COUNT( DISTINCT - + 57 ), - 56 * + 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1409
SELECT - COUNT ( * ) + 29 * + CAST ( NULL AS INTEGER ) * NULLIF ( + COUNT ( DISTINCT - + 57 ), - 56 * + 60 )
----
NULL

query I rowsort
SELECT DISTINCT - 87 * 80 AS col0
----
-6960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1411
SELECT - - 16 * - CAST( NULL AS SIGNED ) + COUNT( * ) * 27 * + - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-1411
SELECT - - 16 * - CAST ( NULL AS INTEGER ) + COUNT ( * ) * 27 * + - 39
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1412
SELECT 7 DIV - COUNT( * ) + - + SUM( ALL 32 ) + + - 38 + + 5
----
-72

skipif mysql # not compatible
query I rowsort label-1412
SELECT 7 / - COUNT ( * ) + - + SUM ( ALL 32 ) + + - 38 + + 5
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1413
SELECT DISTINCT - SUM( + 70 ) * + 37 * + 40 + + - 59 + + + ( + - 69 ) DIV 64 * - - 12 * 63 AS col1, ( - + 6 ) AS col2
----
-104415
-6

skipif mysql # not compatible
query II rowsort label-1413
SELECT DISTINCT - SUM ( + 70 ) * + 37 * + 40 + + - 59 + + + ( + - 69 ) / 64 * - - 12 * 63 AS col1, ( - + 6 ) AS col2
----
-104415
-6

query I rowsort
SELECT - 85 / + CASE + 80 WHEN COALESCE ( 68, - 78 ) THEN + 31 / - 10 - - 5 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1415
SELECT + SUM( ALL + 25 ) + - 94 + + ( - 4 ) DIV + + CAST( AVG ( - 89 ) AS SIGNED ) + - - COUNT( * ) DIV + 80 + + 50 * + 27
----
1281

skipif mysql # not compatible
query I rowsort label-1415
SELECT + SUM ( ALL + 25 ) + - 94 + + ( - 4 ) / + + CAST ( AVG ( - 89 ) AS INTEGER ) + - - COUNT ( * ) / + 80 + + 50 * + 27
----
1281

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1416
SELECT COALESCE ( - 79, + + 41, + 13 ) * + 48 / CASE + SUM( 9 ) WHEN + - 61 THEN + - 38 WHEN 18 THEN + - CAST( NULL AS SIGNED ) * + + 18 / 95 ELSE NULL END + 15 * 46 - 53 / + 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1416
SELECT COALESCE ( - 79, + + 41, + 13 ) * + 48 / CASE + SUM ( 9 ) WHEN + - 61 THEN + - 38 WHEN 18 THEN + - CAST ( NULL AS INTEGER ) * + + 18 / 95 ELSE NULL END + 15 * 46 - 53 / + 7 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1417
SELECT ALL CASE 89 WHEN - MAX( + 98 ) THEN NULL ELSE - + COUNT( * ) + + 76 END * - MIN( + 20 ) * 32 + + - 66 AS col1
----
-48066

skipif mysql # not compatible
query I rowsort label-1417
SELECT ALL CASE 89 WHEN - MAX ( + 98 ) THEN NULL ELSE - + COUNT ( * ) + + 76 END * - MIN ( + 20 ) * 32 + + - 66 AS col1
----
-48066

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1418
SELECT + ( 50 ) AS col1, 64 DIV - COUNT( * ) AS col0
----
50
-64

skipif mysql # not compatible
query II rowsort label-1418
SELECT + ( 50 ) AS col1, 64 / - COUNT ( * ) AS col0
----
50
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1419
SELECT DISTINCT - COUNT( * ) * - + 64 * + + 98 - + - 97
----
6369

skipif mysql # not compatible
query I rowsort label-1419
SELECT DISTINCT - COUNT ( * ) * - + 64 * + + 98 - + - 97
----
6369

query I rowsort
SELECT DISTINCT 49 * - + 34 - 75 + + 51
----
-1690

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1421
SELECT + 48 + 81 AS col2, NULLIF ( - - CAST( NULL AS SIGNED ), + + 57 / + 20 ) + + 97 * + 12 - COUNT( DISTINCT + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) * - + 14 AS col2
----
129
NULL

skipif mysql # not compatible
query II rowsort label-1421
SELECT + 48 + 81 AS col2, NULLIF ( - - CAST ( NULL AS INTEGER ), + + 57 / + 20 ) + + 97 * + 12 - COUNT ( DISTINCT + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) * - + 14 AS col2
----
129
NULL

query II rowsort
SELECT + ( - 49 ), 19 AS col0
----
-49
19

onlyif mysql # aggregate syntax: 
query II rowsort label-1423
SELECT 58 - + 21, + 50 * 2 + + CASE 25 WHEN - + 4 THEN - COUNT( * ) ELSE NULL END + + 86 AS col2
----
37
NULL

skipif mysql # not compatible
query II rowsort label-1423
SELECT 58 - + 21, + 50 * 2 + + CASE 25 WHEN - + 4 THEN - COUNT ( * ) ELSE NULL END + + 86 AS col2
----
37
NULL

query I rowsort
SELECT 93 * + 3
----
279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1425
SELECT CAST( NULL AS SIGNED ) + - + 25 - - - 1 - - 5 / - - 76 / + - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-1425
SELECT CAST ( NULL AS INTEGER ) + - + 25 - - - 1 - - 5 / - - 76 / + - 25
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1426
SELECT ALL - COUNT( * ) - + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-1426
SELECT ALL - COUNT ( * ) - + COUNT ( * )
----
-2

query II rowsort
SELECT 24 + - 5 AS col2, + 69 * - + 77 AS col2
----
19
-5313

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1428
SELECT DISTINCT ( - + CAST( - 55 AS SIGNED ) )
----
55

skipif mysql # not compatible
query I rowsort label-1428
SELECT DISTINCT ( - + CAST ( - 55 AS INTEGER ) )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1429
SELECT DISTINCT - + MIN( + 44 ) * - 39 AS col2
----
1716

skipif mysql # not compatible
query I rowsort label-1429
SELECT DISTINCT - + MIN ( + 44 ) * - 39 AS col2
----
1716

onlyif mysql # aggregate syntax: 
query I rowsort label-1430
SELECT COUNT( * ) * + + 90 - - 79 - + MAX( DISTINCT + 78 ) * - 42 AS col1
----
3445

skipif mysql # not compatible
query I rowsort label-1430
SELECT COUNT ( * ) * + + 90 - - 79 - + MAX ( DISTINCT + 78 ) * - 42 AS col1
----
3445

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1431
SELECT ALL - COUNT( * ) DIV + 82 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1431
SELECT ALL - COUNT ( * ) / + 82 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1432
SELECT - 7 * - COALESCE ( - 64, - 83 ) * + - COUNT( * ) + + 77 + + + 6 * 48
----
813

skipif mysql # not compatible
query I rowsort label-1432
SELECT - 7 * - COALESCE ( - 64, - 83 ) * + - COUNT ( * ) + + 77 + + + 6 * 48
----
813

query I rowsort
SELECT 83 * + - 54
----
-4482

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1434
SELECT ALL 0 * + CAST( - 33 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1434
SELECT ALL 0 * + CAST ( - 33 AS INTEGER ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1435
SELECT + 74 * + NULLIF ( - CAST( - 82 AS SIGNED ), - 52 * - - 86 - 56 - - COUNT( * ) - ( 76 ) + - + 51 )
----
6068

skipif mysql # not compatible
query I rowsort label-1435
SELECT + 74 * + NULLIF ( - CAST ( - 82 AS INTEGER ), - 52 * - - 86 - 56 - - COUNT ( * ) - ( 76 ) + - + 51 )
----
6068

onlyif mysql # aggregate syntax: 
query I rowsort label-1436
SELECT DISTINCT - 80 + + ( + + COUNT( * ) ) + + 68 + ( - COUNT( * ) ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-1436
SELECT DISTINCT - 80 + + ( + + COUNT ( * ) ) + + 68 + ( - COUNT ( * ) ) AS col2
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1437
SELECT ALL - - 26 + 87 - 52 col2, - COUNT( * ) DIV - 3 + - + COUNT( * ) + + - 54 * - - 85 * - - 68 + + 16 * - COALESCE ( ( - 93 ), - - 47, - - 47 ) * - 53 * - 18 AS col2
----
61
1107431

skipif mysql # not compatible
query II rowsort label-1437
SELECT ALL - - 26 + 87 - 52 col2, - COUNT ( * ) / - 3 + - + COUNT ( * ) + + - 54 * - - 85 * - - 68 + + 16 * - COALESCE ( ( - 93 ), - - 47, - - 47 ) * - 53 * - 18 AS col2
----
61
1107431

onlyif mysql # aggregate syntax: 
query I rowsort label-1438
SELECT ALL + + COUNT( * ) + 19 - + - 90 * - + 28 AS col1
----
-2500

skipif mysql # not compatible
query I rowsort label-1438
SELECT ALL + + COUNT ( * ) + 19 - + - 90 * - + 28 AS col1
----
-2500

onlyif mysql # aggregate syntax: 
query I rowsort label-1439
SELECT DISTINCT - MIN( - - 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-1439
SELECT DISTINCT - MIN ( - - 51 )
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1440
SELECT ALL COUNT( * ) + + 62 + + - COALESCE ( 36, + - MIN( ALL 59 ) ) * 57 DIV + 96 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-1440
SELECT ALL COUNT ( * ) + + 62 + + - COALESCE ( 36, + - MIN ( ALL 59 ) ) * 57 / + 96 AS col2
----
42

query I rowsort
SELECT 59 * 75 AS col2
----
4425

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1442
SELECT CAST( NULL AS DECIMAL ) + 19 * + 88 + + 10 * 95
----
NULL

skipif mysql # not compatible
query I rowsort label-1442
SELECT CAST ( NULL AS REAL ) + 19 * + 88 + + 10 * 95
----
NULL

query I rowsort
SELECT ALL - ( - + 68 ) AS col0
----
68

query I rowsort
SELECT 13 * - ( - 24 ) + - 17 + 34 AS col1
----
329

onlyif mysql # DIV for integer division: 
query I rowsort label-1445
SELECT 78 DIV + + 93 * - - 53 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1445
SELECT 78 / + + 93 * - - 53 AS col2
----
0

query I rowsort
SELECT 49 * - 54 AS col2
----
-2646

query I rowsort
SELECT DISTINCT + 31 * 3 AS col0
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1448
SELECT DISTINCT COALESCE ( - 55, + 82 DIV 39 + + CAST( NULL AS SIGNED ) ) - - + COUNT( * ) DIV + COUNT( * ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-1448
SELECT DISTINCT COALESCE ( - 55, + 82 / 39 + + CAST ( NULL AS INTEGER ) ) - - + COUNT ( * ) / + COUNT ( * ) AS col1
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-1449
SELECT ALL - 94 AS col0, MIN( ALL + 96 ) + - 60
----
-94
36

skipif mysql # not compatible
query II rowsort label-1449
SELECT ALL - 94 AS col0, MIN ( ALL + 96 ) + - 60
----
-94
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT ALL + 13 * - CASE + 12 WHEN + 74 - - 80 * + 37 THEN + 15 WHEN 58 + + ( - 75 ) THEN NULL WHEN + 19 / - 74 THEN + 31 ELSE + MAX( 97 ) + - - 74 + 15 END * ( - ( COUNT( * ) ) )
----
2418

skipif mysql # not compatible
query I rowsort label-1450
SELECT ALL + 13 * - CASE + 12 WHEN + 74 - - 80 * + 37 THEN + 15 WHEN 58 + + ( - 75 ) THEN NULL WHEN + 19 / - 74 THEN + 31 ELSE + MAX ( 97 ) + - - 74 + 15 END * ( - ( COUNT ( * ) ) )
----
2418

query I rowsort
SELECT ALL + 40 - - 89 AS col1
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-1452
SELECT ALL + 14 * + - COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-1452
SELECT ALL + 14 * + - COUNT ( * )
----
-14

query I rowsort
SELECT 58 + 6 / - - CASE + 13 WHEN - 83 THEN NULL WHEN + - 30 THEN - 22 END AS col2
----
NULL

query I rowsort
SELECT 67 + - - 58 AS col0
----
125

query II rowsort
SELECT 18, 24 AS col2
----
18
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1456
SELECT ALL MIN( DISTINCT NULLIF ( - 90, - 7 ) )
----
-90

skipif mysql # not compatible
query I rowsort label-1456
SELECT ALL MIN ( DISTINCT NULLIF ( - 90, - 7 ) )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-1457
SELECT - + COALESCE ( SUM( + 73 ), 93 + 91 ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-1457
SELECT - + COALESCE ( SUM ( + 73 ), 93 + 91 ) AS col1
----
-73

query I rowsort
SELECT 41 + - + 70
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-1459
SELECT ALL COUNT( * ) AS col2, - 4 * + 70
----
1
-280

skipif mysql # not compatible
query II rowsort label-1459
SELECT ALL COUNT ( * ) AS col2, - 4 * + 70
----
1
-280

query II rowsort
SELECT ( - + 46 ) * + 97 AS col1, ( + - 64 )
----
-4462
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1461
SELECT ALL + + 62 + + + COUNT( * ) * + + 8 + - + COALESCE ( - SUM( DISTINCT + 22 ), - - 17, - COUNT( * ) + + + 90 + + - 43 DIV + MAX( ALL + - NULLIF ( + - ( + 92 ), - + 80 ) ) ) col2
----
92

skipif mysql # not compatible
query I rowsort label-1461
SELECT ALL + + 62 + + + COUNT ( * ) * + + 8 + - + COALESCE ( - SUM ( DISTINCT + 22 ), - - 17, - COUNT ( * ) + + + 90 + + - 43 / + MAX ( ALL + - NULLIF ( + - ( + 92 ), - + 80 ) ) ) col2
----
92

query II rowsort
SELECT 51 + - - 49 + - 65, + ( - 25 ) * + - NULLIF ( 48, 84 * 91 / - 58 ) + + - 93 - + - 96 + + 60 AS col1
----
35
1263

query I rowsort
SELECT 97 + + - 36 + + + 71
----
132

query I rowsort
SELECT 41 * + CASE + 63 WHEN 70 THEN 24 ELSE NULL END
----
NULL

query II rowsort
SELECT - + 43 col2, 41 * + + 2
----
-43
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1466
SELECT ALL 11 + + COUNT( * ) * - + 76 AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-1466
SELECT ALL 11 + + COUNT ( * ) * - + 76 AS col2
----
-65

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1467
SELECT 20 + CASE COUNT( * ) WHEN + 78 * + COUNT( * ) + - - 97 + - 47 * - CAST( NULL AS DECIMAL ) * ( + 36 ) THEN NULL WHEN - MAX( - + 62 ) THEN + 19 - - 54 END / - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-1467
SELECT 20 + CASE COUNT ( * ) WHEN + 78 * + COUNT ( * ) + - - 97 + - 47 * - CAST ( NULL AS REAL ) * ( + 36 ) THEN NULL WHEN - MAX ( - + 62 ) THEN + 19 - - 54 END / - 66
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1468
SELECT DISTINCT + 95 AS col2, + 19 + - + CASE - MAX( ALL - - 72 ) WHEN 64 * + 10 + - + 78 THEN + 95 / + 63 + + ( + CAST( - 49 AS SIGNED ) ) + 29 + - 78 ELSE NULL END col1
----
95
NULL

skipif mysql # not compatible
query II rowsort label-1468
SELECT DISTINCT + 95 AS col2, + 19 + - + CASE - MAX ( ALL - - 72 ) WHEN 64 * + 10 + - + 78 THEN + 95 / + 63 + + ( + CAST ( - 49 AS INTEGER ) ) + 29 + - 78 ELSE NULL END col1
----
95
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1469
SELECT ALL - COUNT( * ) * - 96
----
96

skipif mysql # not compatible
query I rowsort label-1469
SELECT ALL - COUNT ( * ) * - 96
----
96

query I rowsort
SELECT + 21 + - + 17
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1471
SELECT ( CAST( 57 AS SIGNED ) ) + MAX( - 82 )
----
-25

skipif mysql # not compatible
query I rowsort label-1471
SELECT ( CAST ( 57 AS INTEGER ) ) + MAX ( - 82 )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1472
SELECT - COUNT( * ) + - 84 AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-1472
SELECT - COUNT ( * ) + - 84 AS col1
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1473
SELECT - - CAST( 23 AS SIGNED ) col1
----
23

skipif mysql # not compatible
query I rowsort label-1473
SELECT - - CAST ( 23 AS INTEGER ) col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1474
SELECT COUNT( - 92 ) + + 38 * - 15
----
-569

skipif mysql # not compatible
query I rowsort label-1474
SELECT COUNT ( - 92 ) + + 38 * - 15
----
-569

onlyif mysql # aggregate syntax: 
query I rowsort label-1475
SELECT ALL 97 - + ( + + MAX( ALL - 35 ) ) AS col0
----
132

skipif mysql # not compatible
query I rowsort label-1475
SELECT ALL 97 - + ( + + MAX ( ALL - 35 ) ) AS col0
----
132

query I rowsort
SELECT ALL 56 * - 77 col0
----
-4312

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1477
SELECT + COUNT( * ) DIV - - COUNT( * ) + + 60 * + 81 * 99 col2
----
481141

skipif mysql # not compatible
query I rowsort label-1477
SELECT + COUNT ( * ) / - - COUNT ( * ) + + 60 * + 81 * 99 col2
----
481141

onlyif mysql # aggregate syntax: 
query I rowsort label-1478
SELECT 45 * - + COUNT( * ) + + 70 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-1478
SELECT 45 * - + COUNT ( * ) + + 70 AS col0
----
25

query I rowsort
SELECT DISTINCT 96 * - 54 * 47
----
-243648

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1480
SELECT + CASE - - AVG ( DISTINCT 43 ) WHEN 4 + 45 * COUNT( * ) THEN 69 * - 37 WHEN - 7 THEN + SUM( - ( - 16 ) ) * - - 22 * CAST( NULL AS SIGNED ) + + 40 ELSE + 88 END
----
88

skipif mysql # not compatible
query I rowsort label-1480
SELECT + CASE - - AVG ( DISTINCT 43 ) WHEN 4 + 45 * COUNT ( * ) THEN 69 * - 37 WHEN - 7 THEN + SUM ( - ( - 16 ) ) * - - 22 * CAST ( NULL AS INTEGER ) + + 40 ELSE + 88 END
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1481
SELECT - COUNT( * ) * + + 99 + + 80 * - 14 AS col0
----
-1219

skipif mysql # not compatible
query I rowsort label-1481
SELECT - COUNT ( * ) * + + 99 + + 80 * - 14 AS col0
----
-1219

query I rowsort
SELECT - 95 * 17 AS col2
----
-1615

query I rowsort
SELECT ALL + 82 * 43
----
3526

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1484
SELECT - CAST( - + 27 AS SIGNED ) + + 68 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-1484
SELECT - CAST ( - + 27 AS INTEGER ) + + 68 AS col1
----
95

query I rowsort
SELECT DISTINCT + + ( + 23 ) * - + 45 AS col1
----
-1035

query I rowsort
SELECT ALL + ( + ( - 31 ) ) AS col0
----
-31

query I rowsort
SELECT ALL - 7 + + 78 AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1488
SELECT - 98 + + - COALESCE ( + 30, + ( - + ( 56 ) ), - MAX( DISTINCT + + ( - ( - + 41 ) ) ) ) AS col2
----
-128

skipif mysql # not compatible
query I rowsort label-1488
SELECT - 98 + + - COALESCE ( + 30, + ( - + ( 56 ) ), - MAX ( DISTINCT + + ( - ( - + 41 ) ) ) ) AS col2
----
-128

query I rowsort
SELECT DISTINCT + - 84 + - - 44 AS col2
----
-40

query II rowsort
SELECT - - 85 * 36 AS col2, + 45 + - 23 + 93 * 55 - - 54 AS col1
----
3060
5191

query I rowsort
SELECT DISTINCT + + 17 + - 83 AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1492
SELECT DISTINCT 18 + COUNT( * ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-1492
SELECT DISTINCT 18 + COUNT ( * ) AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1493
SELECT ALL - 41 * - COUNT( * ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-1493
SELECT ALL - 41 * - COUNT ( * ) AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1494
SELECT DISTINCT + COUNT( 18 ) - 25
----
-24

skipif mysql # not compatible
query I rowsort label-1494
SELECT DISTINCT + COUNT ( 18 ) - 25
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-1495
SELECT + COALESCE ( 18, - 89 ) DIV 5 * - - 65 AS col2
----
195

skipif mysql # not compatible
query I rowsort label-1495
SELECT + COALESCE ( 18, - 89 ) / 5 * - - 65 AS col2
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1496
SELECT DISTINCT COALESCE ( + 92, - + 33 ) AS col2, CAST( NULL AS SIGNED ) * - 81
----
92
NULL

skipif mysql # not compatible
query II rowsort label-1496
SELECT DISTINCT COALESCE ( + 92, - + 33 ) AS col2, CAST ( NULL AS INTEGER ) * - 81
----
92
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1497
SELECT - MIN( DISTINCT - - 37 ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-1497
SELECT - MIN ( DISTINCT - - 37 ) AS col1
----
-37

query II rowsort
SELECT ALL + ( 52 ) * 44 AS col2, 63 + + 95 AS col0
----
2288
158

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1499
SELECT DISTINCT + 31 * + NULLIF ( + - 98, + CAST( NULL AS SIGNED ) ) * + - 25 - 53 * - 95 AS col2
----
80985

skipif mysql # not compatible
query I rowsort label-1499
SELECT DISTINCT + 31 * + NULLIF ( + - 98, + CAST ( NULL AS INTEGER ) ) * + - 25 - 53 * - 95 AS col2
----
80985

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1500
SELECT ALL 2 DIV + 57 * - COUNT( * ), 86 * - + COUNT( * ) + + - 91 AS col1
----
0
-177

skipif mysql # not compatible
query II rowsort label-1500
SELECT ALL 2 / + 57 * - COUNT ( * ), 86 * - + COUNT ( * ) + + - 91 AS col1
----
0
-177

query I rowsort
SELECT + 8 * + - 47 AS col2
----
-376

onlyif mysql # DIV for integer division: 
query I rowsort label-1502
SELECT + 25 DIV 71
----
0

skipif mysql # not compatible
query I rowsort label-1502
SELECT + 25 / 71
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1503
SELECT CASE + + COUNT( * ) WHEN + 4 THEN NULL WHEN - 61 * + 59 + - 32 + - 86 + - 21 * - AVG ( DISTINCT 23 ) + - + 42 + - 70 THEN NULL ELSE COUNT( * ) END * 27 + + + 68 AS col0
----
95

skipif mysql # not compatible
query I rowsort label-1503
SELECT CASE + + COUNT ( * ) WHEN + 4 THEN NULL WHEN - 61 * + 59 + - 32 + - 86 + - 21 * - AVG ( DISTINCT 23 ) + - + 42 + - 70 THEN NULL ELSE COUNT ( * ) END * 27 + + + 68 AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1504
SELECT + COUNT( * ) * + + 76 + 93 * 36 AS col1
----
3424

skipif mysql # not compatible
query I rowsort label-1504
SELECT + COUNT ( * ) * + + 76 + 93 * 36 AS col1
----
3424

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1505
SELECT COUNT( * ) DIV + COALESCE ( - + CASE - + 31 WHEN + 47 * + 3 THEN 7 - 8 * 90 ELSE NULL END, + 35, + ( + 19 ) * + - 64 + + CASE + COUNT( * ) WHEN + 5 THEN 11 * + - 59 END ) - - + 91 * - + ( + 40 ) AS col0
----
-3640

skipif mysql # not compatible
query I rowsort label-1505
SELECT COUNT ( * ) / + COALESCE ( - + CASE - + 31 WHEN + 47 * + 3 THEN 7 - 8 * 90 ELSE NULL END, + 35, + ( + 19 ) * + - 64 + + CASE + COUNT ( * ) WHEN + 5 THEN 11 * + - 59 END ) - - + 91 * - + ( + 40 ) AS col0
----
-3640

query I rowsort
SELECT + 36 * 22 AS col2
----
792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1507
SELECT - ( - CAST( - + COUNT( * ) AS SIGNED ) ) * - COALESCE ( - - CAST( 35 AS SIGNED ), + 14, + 5 * NULLIF ( + 48, 97 * - 90 * - + 91 * + 62 + - + 66 + 26 * + - 11 ), + 93 / - AVG ( DISTINCT + 33 ) ) / - CASE - 50 WHEN + 62 / - MAX( + + 92 ) THEN 19 WHEN - 40 THEN - 71 - 88 - + CAST( NULL AS SIGNED ) END * 52 * 2 - COUNT( * ) + + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-1507
SELECT - ( - CAST ( - + COUNT ( * ) AS INTEGER ) ) * - COALESCE ( - - CAST ( 35 AS INTEGER ), + 14, + 5 * NULLIF ( + 48, 97 * - 90 * - + 91 * + 62 + - + 66 + 26 * + - 11 ), + 93 / - AVG ( DISTINCT + 33 ) ) / - CASE - 50 WHEN + 62 / - MAX ( + + 92 ) THEN 19 WHEN - 40 THEN - 71 - 88 - + CAST ( NULL AS INTEGER ) END * 52 * 2 - COUNT ( * ) + + 5
----
NULL

query I rowsort
SELECT - + 75 * - 46
----
3450

query II rowsort
SELECT DISTINCT + - 61 AS col1, - ( + 14 ) * + 6
----
-61
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1510
SELECT ALL + + ( COUNT( * ) ) * - MAX( - 53 ) + + 53
----
106

skipif mysql # not compatible
query I rowsort label-1510
SELECT ALL + + ( COUNT ( * ) ) * - MAX ( - 53 ) + + 53
----
106

onlyif mysql # DIV for integer division: 
query II rowsort label-1511
SELECT DISTINCT + 9, 22 DIV + + 54 AS col2
----
9
0

skipif mysql # not compatible
query II rowsort label-1511
SELECT DISTINCT + 9, 22 / + + 54 AS col2
----
9
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1512
SELECT + 49 * - CASE 30 WHEN - 40 THEN NULL ELSE + 45 END * - - COUNT( * )
----
-2205

skipif mysql # not compatible
query I rowsort label-1512
SELECT + 49 * - CASE 30 WHEN - 40 THEN NULL ELSE + 45 END * - - COUNT ( * )
----
-2205

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1513
SELECT - COUNT( * ) * - + 12 DIV + 68 + - + 57 DIV + SUM( - - 47 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1513
SELECT - COUNT ( * ) * - + 12 / + 68 + - + 57 / + SUM ( - - 47 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1514
SELECT DISTINCT + 92 DIV + 82 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1514
SELECT DISTINCT + 92 / + 82 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1515
SELECT ALL + COUNT( * ) * - + 96 + + 94 + + + 69 - + CASE - 65 WHEN + - 25 * - 12 THEN + - 28 + - 25 * + - 64 END / + 56 / COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1515
SELECT ALL + COUNT ( * ) * - + 96 + + 94 + + + 69 - + CASE - 65 WHEN + - 25 * - 12 THEN + - 28 + - 25 * + - 64 END / + 56 / COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT ALL 46 * - 50 AS col2
----
-2300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1517
SELECT ALL + - MAX( 55 ) * - ( + - CAST( NULL AS SIGNED ) ) * COUNT( * ) + - 55 / - - 63 * + - COUNT( * ) - ( - 91 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1517
SELECT ALL + - MAX ( 55 ) * - ( + - CAST ( NULL AS INTEGER ) ) * COUNT ( * ) + - 55 / - - 63 * + - COUNT ( * ) - ( - 91 ) AS col1
----
NULL

query II rowsort
SELECT DISTINCT - + 77 * - 7 * 98 AS col1, - ( 67 ) * - ( - - ( - 44 ) )
----
52822
-2948

onlyif mysql # aggregate syntax: 
query II rowsort label-1519
SELECT + + 79 + + + ( 93 ) col2, - 66 - - ( + + 50 ) - - COUNT( * ) AS col2
----
172
-15

skipif mysql # not compatible
query II rowsort label-1519
SELECT + + 79 + + + ( 93 ) col2, - 66 - - ( + + 50 ) - - COUNT ( * ) AS col2
----
172
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1520
SELECT - + CAST( - + MAX( ALL + + 47 ) AS SIGNED ) * - 1 AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-1520
SELECT - + CAST ( - + MAX ( ALL + + 47 ) AS INTEGER ) * - 1 AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1521
SELECT + - COUNT( * ) + + 6 col1
----
5

skipif mysql # not compatible
query I rowsort label-1521
SELECT + - COUNT ( * ) + + 6 col1
----
5

query II rowsort
SELECT DISTINCT 84, 91 AS col0
----
84
91

query I rowsort
SELECT DISTINCT 35 * 50 AS col1
----
1750

query I rowsort
SELECT - 56 + - 56
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-1525
SELECT - COALESCE ( - ( + 59 ), - + ( 2 ) * - 1 + - + 66, 19 ) * 32 + + - 27 - COUNT( * ) - - 82 * + 81 AS col1
----
8502

skipif mysql # not compatible
query I rowsort label-1525
SELECT - COALESCE ( - ( + 59 ), - + ( 2 ) * - 1 + - + 66, 19 ) * 32 + + - 27 - COUNT ( * ) - - 82 * + 81 AS col1
----
8502

query I rowsort
SELECT 68 + 11 AS col1
----
79

query I rowsort
SELECT 78 + 61 + - 31
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1528
SELECT - 50 AS col1, CASE + 46 WHEN + COUNT( * ) THEN - + CAST( - + 6 AS SIGNED ) WHEN + 65 THEN - NULLIF ( COUNT( + 88 ), + - CAST( NULL AS SIGNED ) ) ELSE 91 + ( - 20 ) END
----
-50
71

skipif mysql # not compatible
query II rowsort label-1528
SELECT - 50 AS col1, CASE + 46 WHEN + COUNT ( * ) THEN - + CAST ( - + 6 AS INTEGER ) WHEN + 65 THEN - NULLIF ( COUNT ( + 88 ), + - CAST ( NULL AS INTEGER ) ) ELSE 91 + ( - 20 ) END
----
-50
71

query II rowsort
SELECT 94 + - + 15 AS col0, - ( - 42 )
----
79
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1530
SELECT ALL - 9 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1530
SELECT ALL - 9 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1531
SELECT - 58 AS col1, + COALESCE ( 61, - 12, SUM( + + 63 ) ) AS col1
----
-58
61

skipif mysql # not compatible
query II rowsort label-1531
SELECT - 58 AS col1, + COALESCE ( 61, - 12, SUM ( + + 63 ) ) AS col1
----
-58
61

query I rowsort
SELECT 77 * + 7 AS col1
----
539

onlyif mysql # DIV for integer division: 
query I rowsort label-1533
SELECT 19 DIV - + 20 + + 63 + - + 44 - - - 95 + + 31 * + + 83 AS col1
----
2497

skipif mysql # not compatible
query I rowsort label-1533
SELECT 19 / - + 20 + + 63 + - + 44 - - - 95 + + 31 * + + 83 AS col1
----
2497

onlyif mysql # aggregate syntax: 
query I rowsort label-1534
SELECT ALL - COUNT( ALL - 31 ) * + 12 * + 80 + 59 * 53
----
2167

skipif mysql # not compatible
query I rowsort label-1534
SELECT ALL - COUNT ( ALL - 31 ) * + 12 * + 80 + 59 * 53
----
2167

query II rowsort
SELECT 34, + 23 + - 12 AS col0
----
34
11

query I rowsort
SELECT ALL - 10 * ( + - 7 ) AS col0
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-1537
SELECT ALL + 55 + + 23 + - 94 DIV + - 14
----
84

skipif mysql # not compatible
query I rowsort label-1537
SELECT ALL + 55 + + 23 + - 94 / + - 14
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1538
SELECT + COUNT( * ) * COALESCE ( + SUM( + 63 ), MIN( - - 41 ) ) + + 27 - + - COALESCE ( - - 16, - 34 + 31 * - 8, - 60 ) + - SUM( ALL - 23 ) + - - 80 * + 96 DIV - - COUNT( * ) + 34 AS col2, 83 * + 64
----
7843
5312

skipif mysql # not compatible
query II rowsort label-1538
SELECT + COUNT ( * ) * COALESCE ( + SUM ( + 63 ), MIN ( - - 41 ) ) + + 27 - + - COALESCE ( - - 16, - 34 + 31 * - 8, - 60 ) + - SUM ( ALL - 23 ) + - - 80 * + 96 / - - COUNT ( * ) + 34 AS col2, 83 * + 64
----
7843
5312

query II rowsort
SELECT ALL - 64 AS col1, - 80 AS col2
----
-64
-80

query I rowsort
SELECT ALL - 83 + + 40 + - 68 AS col0
----
-111

query I rowsort
SELECT DISTINCT 47 + 76 + - 41
----
82

query I rowsort
SELECT 92 * - 57
----
-5244

query I rowsort
SELECT + 58 + - + 73 + + 53 * + - 88 + 73 AS col0
----
-4606

query I rowsort
SELECT DISTINCT - - 32 col2
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-1545
SELECT + COUNT( * ) * + - 2 AS col1, - 79 * + 23 AS col2
----
-2
-1817

skipif mysql # not compatible
query II rowsort label-1545
SELECT + COUNT ( * ) * + - 2 AS col1, - 79 * + 23 AS col2
----
-2
-1817

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1546
SELECT - MIN( ( - + 24 ) ) * + - CASE - 22 WHEN - - 81 THEN COUNT( * ) / COUNT( ALL - 61 ) + - + CAST( + 88 AS DECIMAL ) ELSE NULL END + + 49 + + 44 / - 1 * + - MIN( DISTINCT - + 42 ) * + COUNT( * ) + 92 + - COUNT( * ) + 56 + + - ( - 28 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1546
SELECT - MIN ( ( - + 24 ) ) * + - CASE - 22 WHEN - - 81 THEN COUNT ( * ) / COUNT ( ALL - 61 ) + - + CAST ( + 88 AS REAL ) ELSE NULL END + + 49 + + 44 / - 1 * + - MIN ( DISTINCT - + 42 ) * + COUNT ( * ) + 92 + - COUNT ( * ) + 56 + + - ( - 28 ) AS col1
----
NULL

query II rowsort
SELECT 6 AS col0, 13 + + 38
----
6
51

onlyif mysql # aggregate syntax: 
query II rowsort label-1548
SELECT ALL - 66 + - ( + + 90 ) * + - 33 AS col0, COUNT( * )
----
2904
1

skipif mysql # not compatible
query II rowsort label-1548
SELECT ALL - 66 + - ( + + 90 ) * + - 33 AS col0, COUNT ( * )
----
2904
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1549
SELECT DISTINCT - + 98 AS col1, - 51 - 28 + + CAST( NULL AS SIGNED ) * - + 64 AS col0
----
-98
NULL

skipif mysql # not compatible
query II rowsort label-1549
SELECT DISTINCT - + 98 AS col1, - 51 - 28 + + CAST ( NULL AS INTEGER ) * - + 64 AS col0
----
-98
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1550
SELECT 95 * - 50 - - COUNT( * )
----
-4749

skipif mysql # not compatible
query I rowsort label-1550
SELECT 95 * - 50 - - COUNT ( * )
----
-4749

query I rowsort
SELECT ALL 77 * + + ( + 91 )
----
7007

query I rowsort
SELECT 26 + - 37 AS col0
----
-11

query I rowsort
SELECT DISTINCT - 63 - - 24 - 28 * + ( + - 44 ) - 5 * - - 59
----
898

onlyif mysql # aggregate syntax: 
query I rowsort label-1554
SELECT ALL COUNT( * ) - - 82 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-1554
SELECT ALL COUNT ( * ) - - 82 AS col0
----
83

query II rowsort
SELECT DISTINCT - + COALESCE ( 71, - 37 - - 63 ), 78 * 8 AS col0
----
-71
624

query I rowsort
SELECT 75 * - 17
----
-1275

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1557
SELECT + 74 * - NULLIF ( - CAST( + - 53 AS SIGNED ), - 23 * + 74 ) * 9 * - ( + 74 ), + 91 AS col1
----
2612052
91

skipif mysql # not compatible
query II rowsort label-1557
SELECT + 74 * - NULLIF ( - CAST ( + - 53 AS INTEGER ), - 23 * + 74 ) * 9 * - ( + 74 ), + 91 AS col1
----
2612052
91

query I rowsort
SELECT - 18 - - - 69 AS col2
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1559
SELECT ALL + COALESCE ( + ( + CASE 75 WHEN + COUNT( * ) THEN NULL WHEN - - MIN( 49 ) THEN 88 + + - COUNT( * ) / 42 * - 67 + ( - + COALESCE ( - - 17, 19, + 45 + + + MAX( + - 33 ) + CAST( - 22 AS SIGNED ) ) ) / - ( + 43 ) + + + COUNT( * ) END ), + - CAST( NULL AS SIGNED ) * - 0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1559
SELECT ALL + COALESCE ( + ( + CASE 75 WHEN + COUNT ( * ) THEN NULL WHEN - - MIN ( 49 ) THEN 88 + + - COUNT ( * ) / 42 * - 67 + ( - + COALESCE ( - - 17, 19, + 45 + + + MAX ( + - 33 ) + CAST ( - 22 AS INTEGER ) ) ) / - ( + 43 ) + + + COUNT ( * ) END ), + - CAST ( NULL AS INTEGER ) * - 0 )
----
NULL

query II rowsort
SELECT + 1 * - 10 AS col1, - 96 col2
----
-10
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1561
SELECT + COUNT( * ) * + 70 * - 5 AS col2
----
-350

skipif mysql # not compatible
query I rowsort label-1561
SELECT + COUNT ( * ) * + 70 * - 5 AS col2
----
-350

query I rowsort
SELECT 41 + - 47 AS col1
----
-6

query II rowsort
SELECT ALL 96 AS col2, 91 + - 8 - - 2 + 64 AS col2
----
96
149

query I rowsort
SELECT ALL - + 0 * + - 73 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1565
SELECT ALL 38 DIV + 57 AS col0, COUNT( * ) + - 23 * + + 25 * ( 0 )
----
0
1

skipif mysql # not compatible
query II rowsort label-1565
SELECT ALL 38 / + 57 AS col0, COUNT ( * ) + - 23 * + + 25 * ( 0 )
----
0
1

query I rowsort
SELECT DISTINCT - 68 * - 93
----
6324

query I rowsort
SELECT DISTINCT 73 * - + 10 * + ( - + 52 ) col0
----
37960

onlyif mysql # DIV for integer division: 
query I rowsort label-1568
SELECT 87 DIV - 50 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1568
SELECT 87 / - 50 AS col0
----
-1

query I rowsort
SELECT ALL 91 * + 65
----
5915

query I rowsort
SELECT ALL - 23 * - 28 AS col0
----
644

query I rowsort
SELECT DISTINCT + 68 + + 59 AS col1
----
127

query II rowsort
SELECT 13 * + - 7 AS col0, 58 + + 78 AS col1
----
-91
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-1573
SELECT 83 - - COUNT( * ), + 67 * + MAX( 70 ) AS col1, COUNT( * ) - + - CAST( + COUNT( ALL + 71 ) AS SIGNED ) AS col1
----
84
4690
2

skipif mysql # not compatible
query III rowsort label-1573
SELECT 83 - - COUNT ( * ), + 67 * + MAX ( 70 ) AS col1, COUNT ( * ) - + - CAST ( + COUNT ( ALL + 71 ) AS INTEGER ) AS col1
----
84
4690
2

query II rowsort
SELECT ALL 31 + + 75, - 99 * - 26 AS col0
----
106
2574

query I rowsort
SELECT ALL + 23 + - + 60
----
-37

query I rowsort
SELECT ALL + 51 + + 96
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT 12 * - COUNT( * ) col0
----
-12

skipif mysql # not compatible
query I rowsort label-1577
SELECT 12 * - COUNT ( * ) col0
----
-12

query I rowsort
SELECT ALL + 38 * - 45 + + 38
----
-1672

onlyif mysql # DIV for integer division: 
query II rowsort label-1579
SELECT 93 + + - 53 DIV - 3 + - + 81 + + 47 * 83 * + 72, 63 AS col2
----
280901
63

skipif mysql # not compatible
query II rowsort label-1579
SELECT 93 + + - 53 / - 3 + - + 81 + + 47 * 83 * + 72, 63 AS col2
----
280901
63

onlyif mysql # DIV for integer division: 
query I rowsort label-1580
SELECT - - 42 DIV - 45 * 31 * - 83 + + 89
----
89

skipif mysql # not compatible
query I rowsort label-1580
SELECT - - 42 / - 45 * 31 * - 83 + + 89
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1581
SELECT ALL + + COUNT( * ) - - 21
----
22

skipif mysql # not compatible
query I rowsort label-1581
SELECT ALL + + COUNT ( * ) - - 21
----
22

query I rowsort
SELECT DISTINCT - + 78 * + 83 * + 94 * + + 76 AS col0
----
-46250256

onlyif mysql # aggregate syntax: 
query I rowsort label-1583
SELECT ALL - ( + COALESCE ( - 22, - 48 ) ) * - 48 - + + SUM( + 46 ) AS col1
----
-1102

skipif mysql # not compatible
query I rowsort label-1583
SELECT ALL - ( + COALESCE ( - 22, - 48 ) ) * - 48 - + + SUM ( + 46 ) AS col1
----
-1102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1584
SELECT DISTINCT + CAST( ( + + 71 ) AS SIGNED ) - ( + + 26 ) * 59 AS col1
----
-1463

skipif mysql # not compatible
query I rowsort label-1584
SELECT DISTINCT + CAST ( ( + + 71 ) AS INTEGER ) - ( + + 26 ) * 59 AS col1
----
-1463

query I rowsort
SELECT DISTINCT - - 11 * - 89 AS col2
----
-979

onlyif mysql # aggregate syntax: 
query I rowsort label-1586
SELECT ALL - + 48 - COUNT( * ) + COUNT( * ) + - - COUNT( * ) * - COUNT( * ) * - 2 AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-1586
SELECT ALL - + 48 - COUNT ( * ) + COUNT ( * ) + - - COUNT ( * ) * - COUNT ( * ) * - 2 AS col1
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1587
SELECT + ( + COUNT( * ) ) * + CAST( + 36 AS SIGNED ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-1587
SELECT + ( + COUNT ( * ) ) * + CAST ( + 36 AS INTEGER ) AS col1
----
36

query II rowsort
SELECT 89 + - - 67, + COALESCE ( - 59, + + ( - 83 ) ) AS col0
----
156
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1589
SELECT ( 35 ) + + COALESCE ( - COUNT( * ), + 96 ) * + 15 DIV - 68 * + MAX( + 6 ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-1589
SELECT ( 35 ) + + COALESCE ( - COUNT ( * ), + 96 ) * + 15 / - 68 * + MAX ( + 6 ) AS col0
----
35

query I rowsort
SELECT - ( + 5 ) * - + 68 AS col2
----
340

onlyif mysql # aggregate syntax: 
query I rowsort label-1591
SELECT 10 * + + MAX( + ( - 6 ) ) + 14 * - COUNT( * ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-1591
SELECT 10 * + + MAX ( + ( - 6 ) ) + 14 * - COUNT ( * ) AS col1
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-1592
SELECT - 38 * + 60 col2, COUNT( * ) * - - 87
----
-2280
87

skipif mysql # not compatible
query II rowsort label-1592
SELECT - 38 * + 60 col2, COUNT ( * ) * - - 87
----
-2280
87

onlyif mysql # DIV for integer division: 
query II rowsort label-1593
SELECT DISTINCT + + 93 DIV 12, 24 AS col1
----
7
24

skipif mysql # not compatible
query II rowsort label-1593
SELECT DISTINCT + + 93 / 12, 24 AS col1
----
7
24

query II rowsort
SELECT DISTINCT 96 * + + 21 AS col2, 96 + + 52 AS col2
----
2016
148

onlyif mysql # aggregate syntax: 
query I rowsort label-1595
SELECT ALL + 58 * + SUM( DISTINCT - 98 ) + - 67
----
-5751

skipif mysql # not compatible
query I rowsort label-1595
SELECT ALL + 58 * + SUM ( DISTINCT - 98 ) + - 67
----
-5751

onlyif mysql # aggregate syntax: 
query II rowsort label-1596
SELECT - 20 + - - COALESCE ( COUNT( * ), + + 45 ) AS col1, + COUNT( * ) + + - CASE - MIN( + 65 ) WHEN - 30 THEN ( + + 96 ) ELSE NULL END - 24 + - 67
----
-19
NULL

skipif mysql # not compatible
query II rowsort label-1596
SELECT - 20 + - - COALESCE ( COUNT ( * ), + + 45 ) AS col1, + COUNT ( * ) + + - CASE - MIN ( + 65 ) WHEN - 30 THEN ( + + 96 ) ELSE NULL END - 24 + - 67
----
-19
NULL

query I rowsort
SELECT DISTINCT 32 * 28
----
896

onlyif mysql # aggregate syntax: 
query I rowsort label-1598
SELECT ALL 91 + + - MAX( ALL - - 17 ) + + - 28 * - 83 AS col1
----
2398

skipif mysql # not compatible
query I rowsort label-1598
SELECT ALL 91 + + - MAX ( ALL - - 17 ) + + - 28 * - 83 AS col1
----
2398

query I rowsort
SELECT + 79 * + 82 AS col0
----
6478

query I rowsort
SELECT ALL 85 + 9 AS col0
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-1601
SELECT + 67 + + 22 * 55 DIV 96 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-1601
SELECT + 67 + + 22 * 55 / 96 AS col1
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1602
SELECT ALL 49 + - ( + COUNT( * ) ) * - CAST( NULL AS SIGNED ) * + 93 * + - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-1602
SELECT ALL 49 + - ( + COUNT ( * ) ) * - CAST ( NULL AS INTEGER ) * + 93 * + - 80
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1603
SELECT + 19 + - - COUNT( + + 23 ) * CAST( NULL AS SIGNED ) + - 84 - - ( - 58 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1603
SELECT + 19 + - - COUNT ( + + 23 ) * CAST ( NULL AS INTEGER ) + - 84 - - ( - 58 ) AS col0
----
NULL

query I rowsort
SELECT ALL 25 + - 32 AS col0
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1605
SELECT + 95 + + 66 - - + 97 / - CAST( NULL AS SIGNED ) - + ( + + 85 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1605
SELECT + 95 + + 66 - - + 97 / - CAST ( NULL AS INTEGER ) - + ( + + 85 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1606
SELECT DISTINCT COUNT( * ) * ( + ( - CAST( NULL AS DECIMAL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1606
SELECT DISTINCT COUNT ( * ) * ( + ( - CAST ( NULL AS REAL ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1607
SELECT - COALESCE ( + 11, + COUNT( * ) * + 77, 18 ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-1607
SELECT - COALESCE ( + 11, + COUNT ( * ) * + 77, 18 ) AS col1
----
-11

query I rowsort
SELECT DISTINCT - 74 + + 76 * - 29 AS col0
----
-2278

query II rowsort
SELECT ( - ( - - 10 ) ) AS col1, - 22
----
-10
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1610
SELECT DISTINCT + CASE - SUM( ALL - 37 ) WHEN 87 THEN NULL WHEN + COUNT( * ) / - - 19 * - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) THEN + 62 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1610
SELECT DISTINCT + CASE - SUM ( ALL - 37 ) WHEN 87 THEN NULL WHEN + COUNT ( * ) / - - 19 * - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) THEN + 62 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1611
SELECT DISTINCT + COUNT( * ) AS col0, - 93 AS col1
----
1
-93

skipif mysql # not compatible
query II rowsort label-1611
SELECT DISTINCT + COUNT ( * ) AS col0, - 93 AS col1
----
1
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-1612
SELECT ALL + - COUNT( * ) col0, 68 col0
----
-1
68

skipif mysql # not compatible
query II rowsort label-1612
SELECT ALL + - COUNT ( * ) col0, 68 col0
----
-1
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1613
SELECT + 82 + COUNT( * ) * - 60 + + + 68
----
90

skipif mysql # not compatible
query I rowsort label-1613
SELECT + 82 + COUNT ( * ) * - 60 + + + 68
----
90

query II rowsort
SELECT DISTINCT + + 21 col0, - 56 + 81 + + + 72 + - - 28
----
21
125

query II rowsort
SELECT + 7, + 42 AS col1
----
7
42

query I rowsort
SELECT DISTINCT + 81 * + 78
----
6318

onlyif mysql # aggregate syntax: 
query I rowsort label-1617
SELECT - COUNT( - 98 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-1617
SELECT - COUNT ( - 98 ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1618
SELECT ALL + COUNT( * ) * + 39 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-1618
SELECT ALL + COUNT ( * ) * + 39 AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1619
SELECT - + 51 + - MAX( - 89 )
----
38

skipif mysql # not compatible
query I rowsort label-1619
SELECT - + 51 + - MAX ( - 89 )
----
38

query II rowsort
SELECT DISTINCT + 45 AS col2, 21 AS col0
----
45
21

onlyif mysql # DIV for integer division: 
query I rowsort label-1621
SELECT - 59 DIV - + 29
----
2

skipif mysql # not compatible
query I rowsort label-1621
SELECT - 59 / - + 29
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT ALL 16 * 58 + COUNT( * )
----
929

skipif mysql # not compatible
query I rowsort label-1622
SELECT ALL 16 * 58 + COUNT ( * )
----
929

query II rowsort
SELECT + 81 AS col1, 57 * - 42
----
81
-2394

onlyif mysql # aggregate syntax: 
query I rowsort label-1624
SELECT ALL - 35 * - 69 + - SUM( - 5 ) + + 56 AS col1
----
2476

skipif mysql # not compatible
query I rowsort label-1624
SELECT ALL - 35 * - 69 + - SUM ( - 5 ) + + 56 AS col1
----
2476

query I rowsort
SELECT + 79 + - + 30 * + + 97
----
-2831

onlyif mysql # aggregate syntax: 
query I rowsort label-1626
SELECT ALL 58 * MAX( ALL - - 79 ) + - 9 - + + 51
----
4522

skipif mysql # not compatible
query I rowsort label-1626
SELECT ALL 58 * MAX ( ALL - - 79 ) + - 9 - + + 51
----
4522

query I rowsort
SELECT DISTINCT + 68 + - + 51 + + - 56
----
-39

query I rowsort
SELECT ALL ( + + 13 ) + + + 34
----
47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1629
SELECT ALL - 51 + - - MIN( - - NULLIF ( - 11, CAST( NULL AS DECIMAL ) / - 37 ) ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-1629
SELECT ALL - 51 + - - MIN ( - - NULLIF ( - 11, CAST ( NULL AS REAL ) / - 37 ) ) AS col1
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1630
SELECT ALL CAST( - - 51 AS SIGNED )
----
51

skipif mysql # not compatible
query I rowsort label-1630
SELECT ALL CAST ( - - 51 AS INTEGER )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT + 19 * - 35 * - + COUNT( * ) AS col0
----
665

skipif mysql # not compatible
query I rowsort label-1631
SELECT + 19 * - 35 * - + COUNT ( * ) AS col0
----
665

query I rowsort
SELECT DISTINCT + 78 * 77
----
6006

query II rowsort
SELECT ALL 1 + 0 col0, - 69 AS col1
----
1
-69

query I rowsort
SELECT - 7 - - 88 AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1635
SELECT ALL SUM( - ( 39 ) ) * + 29
----
-1131

skipif mysql # not compatible
query I rowsort label-1635
SELECT ALL SUM ( - ( 39 ) ) * + 29
----
-1131

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1636
SELECT DISTINCT 36 - - + 25 + + - 93 * + - 87 + + SUM( ALL + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1636
SELECT DISTINCT 36 - - + 25 + + - 93 * + - 87 + + SUM ( ALL + CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT - NULLIF ( - 28, - 30 - + - 19 ) col2
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1638
SELECT ALL 71 - - + 35 * - 44 + ( - CAST( - + 95 AS SIGNED ) ) + + + 75 * - MAX( - 51 ), 16 AS col0
----
2451
16

skipif mysql # not compatible
query II rowsort label-1638
SELECT ALL 71 - - + 35 * - 44 + ( - CAST ( - + 95 AS INTEGER ) ) + + + 75 * - MAX ( - 51 ), 16 AS col0
----
2451
16

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1639
SELECT - CASE + CAST( - + COUNT( * ) AS DECIMAL ) WHEN + 15 THEN + 3 + 68 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1639
SELECT - CASE + CAST ( - + COUNT ( * ) AS REAL ) WHEN + 15 THEN + 3 + 68 END
----
NULL

query I rowsort
SELECT ALL + 61 * + 44 * - 88
----
-236192

query I rowsort
SELECT DISTINCT - 6 - - 35 AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1642
SELECT DISTINCT COUNT( ALL 72 )
----
1

skipif mysql # not compatible
query I rowsort label-1642
SELECT DISTINCT COUNT ( ALL 72 )
----
1

query I rowsort
SELECT ALL + 87 * - 63 AS col0
----
-5481

onlyif mysql # DIV for integer division: 
query I rowsort label-1644
SELECT DISTINCT 83 DIV - + ( + + 97 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1644
SELECT DISTINCT 83 / - + ( + + 97 ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1645
SELECT + 73 DIV 43 + + COUNT( * ) + + COUNT( * ) * - - 86
----
88

skipif mysql # not compatible
query I rowsort label-1645
SELECT + 73 / 43 + + COUNT ( * ) + + COUNT ( * ) * - - 86
----
88

query I rowsort
SELECT ALL 1 * 95 - - 42 AS col1
----
137

query I rowsort
SELECT + 71 + + 37 AS col2
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1648
SELECT + + COALESCE ( - - 86, + CAST( + 20 AS SIGNED ) * COUNT( * ) + 84, - + 39 * - 40 + 19 * + 83, - 55 * + - 53 ) * - + 93 * + - MAX( + 78 )
----
623844

skipif mysql # not compatible
query I rowsort label-1648
SELECT + + COALESCE ( - - 86, + CAST ( + 20 AS INTEGER ) * COUNT ( * ) + 84, - + 39 * - 40 + 19 * + 83, - 55 * + - 53 ) * - + 93 * + - MAX ( + 78 )
----
623844

onlyif mysql # aggregate syntax: 
query I rowsort label-1649
SELECT + - 46 * - SUM( - 20 )
----
-920

skipif mysql # not compatible
query I rowsort label-1649
SELECT + - 46 * - SUM ( - 20 )
----
-920

onlyif mysql # aggregate syntax: 
query I rowsort label-1650
SELECT DISTINCT MAX( + - 24 ) * + 25 AS col0
----
-600

skipif mysql # not compatible
query I rowsort label-1650
SELECT DISTINCT MAX ( + - 24 ) * + 25 AS col0
----
-600

query I rowsort
SELECT ALL + + 6 + - 79 * - + 78
----
6168

onlyif mysql # DIV for integer division: 
query II rowsort label-1652
SELECT + 20 + 62 DIV 92 - 95 AS col1, + 70 + 69
----
-75
139

skipif mysql # not compatible
query II rowsort label-1652
SELECT + 20 + 62 / 92 - 95 AS col1, + 70 + 69
----
-75
139

onlyif mysql # aggregate syntax: 
query II rowsort label-1653
SELECT ALL - COUNT( ALL - 0 ) * COUNT( 48 ) AS col0, - 70
----
-1
-70

skipif mysql # not compatible
query II rowsort label-1653
SELECT ALL - COUNT ( ALL - 0 ) * COUNT ( 48 ) AS col0, - 70
----
-1
-70

query I rowsort
SELECT - 29 * + ( - + 37 ) AS col1
----
1073

onlyif mysql # aggregate syntax: 
query I rowsort label-1655
SELECT + 34 + + COUNT( * ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-1655
SELECT + 34 + + COUNT ( * ) AS col1
----
35

query I rowsort
SELECT DISTINCT - ( + 61 ) AS col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-1657
SELECT ALL 12 + - + MIN( - 25 )
----
37

skipif mysql # not compatible
query I rowsort label-1657
SELECT ALL 12 + - + MIN ( - 25 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1658
SELECT ALL + 41 + MAX( + - 89 )
----
-48

skipif mysql # not compatible
query I rowsort label-1658
SELECT ALL + 41 + MAX ( + - 89 )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-1659
SELECT + 96 * 59 * ( - COUNT( * ) ) * - 16 * - 75 * 18
----
-122342400

skipif mysql # not compatible
query I rowsort label-1659
SELECT + 96 * 59 * ( - COUNT ( * ) ) * - 16 * - 75 * 18
----
-122342400

query I rowsort
SELECT DISTINCT + + 64 + - 63 col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT COUNT( * ) + 40 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-1661
SELECT COUNT ( * ) + 40 AS col0
----
41

query I rowsort
SELECT ALL + 64 * - - 30
----
1920

query I rowsort
SELECT DISTINCT 73 + + 33
----
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1664
SELECT 93 + + CAST( 16 AS SIGNED ) + - ( + SUM( ALL - + 40 ) ) * + 17
----
789

skipif mysql # not compatible
query I rowsort label-1664
SELECT 93 + + CAST ( 16 AS INTEGER ) + - ( + SUM ( ALL - + 40 ) ) * + 17
----
789

onlyif mysql # aggregate syntax: 
query I rowsort label-1665
SELECT ALL + 64 * + NULLIF ( + SUM( ALL - 62 ), 5 )
----
-3968

skipif mysql # not compatible
query I rowsort label-1665
SELECT ALL + 64 * + NULLIF ( + SUM ( ALL - 62 ), 5 )
----
-3968

query I rowsort
SELECT 83 + + 21 AS col1
----
104

query I rowsort
SELECT 22 * + - 93
----
-2046

query II rowsort
SELECT ALL - ( - 83 ) - - + 18, 98 AS col1
----
101
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1669
SELECT 2 + + - SUM( ALL + 22 )
----
-20

skipif mysql # not compatible
query I rowsort label-1669
SELECT 2 + + - SUM ( ALL + 22 )
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-1670
SELECT - 65, COUNT( * ) AS col1
----
-65
1

skipif mysql # not compatible
query II rowsort label-1670
SELECT - 65, COUNT ( * ) AS col1
----
-65
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1671
SELECT 12 * + MAX( ALL + + 50 )
----
600

skipif mysql # not compatible
query I rowsort label-1671
SELECT 12 * + MAX ( ALL + + 50 )
----
600

query I rowsort
SELECT 18 + 38 AS col0
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1673
SELECT ALL - COUNT( * ) DIV 5 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1673
SELECT ALL - COUNT ( * ) / 5 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1674
SELECT COUNT( * ) + 41 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-1674
SELECT COUNT ( * ) + 41 AS col2
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-1675
SELECT ALL + 57 - - 67 + 11, - MAX( ALL + 98 ) + + 12 AS col1
----
135
-86

skipif mysql # not compatible
query II rowsort label-1675
SELECT ALL + 57 - - 67 + 11, - MAX ( ALL + 98 ) + + 12 AS col1
----
135
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1676
SELECT ALL - ( + CASE - - AVG ( - 57 ) WHEN + ( - 8 ) THEN 33 / - 61 * - ( + COUNT( * ) ) WHEN - COALESCE ( 19, ( + NULLIF ( 79, - 60 ) ) ) THEN NULL END ) / + - 46 * - 27 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1676
SELECT ALL - ( + CASE - - AVG ( - 57 ) WHEN + ( - 8 ) THEN 33 / - 61 * - ( + COUNT ( * ) ) WHEN - COALESCE ( 19, ( + NULLIF ( 79, - 60 ) ) ) THEN NULL END ) / + - 46 * - 27 + COUNT ( * )
----
NULL

query I rowsort
SELECT - 2 + - - 86 AS col0
----
84

query I rowsort
SELECT ALL + 47 * 32
----
1504

onlyif mysql # aggregate syntax: 
query I rowsort label-1679
SELECT + COUNT( * ) + - MIN( ALL + 57 ) + - 77
----
-133

skipif mysql # not compatible
query I rowsort label-1679
SELECT + COUNT ( * ) + - MIN ( ALL + 57 ) + - 77
----
-133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1680
SELECT ALL + CAST( + 89 AS SIGNED )
----
89

skipif mysql # not compatible
query I rowsort label-1680
SELECT ALL + CAST ( + 89 AS INTEGER )
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1681
SELECT - - 26 AS col2, CAST( NULL AS SIGNED )
----
26
NULL

skipif mysql # not compatible
query II rowsort label-1681
SELECT - - 26 AS col2, CAST ( NULL AS INTEGER )
----
26
NULL

query I rowsort
SELECT 85 + + 70 * - 15 * 94
----
-98615

query I rowsort
SELECT ALL + 6 + - 78 - - 10 + + 52
----
-10

query I rowsort
SELECT ALL 35 + - 90
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1685
SELECT DISTINCT - COUNT( * ) + - 24 AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-1685
SELECT DISTINCT - COUNT ( * ) + - 24 AS col1
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1686
SELECT ALL + CAST( NULL AS SIGNED ) + CASE 42 WHEN - - 89 THEN NULL ELSE ( - MAX( ALL + 19 ) ) * - COUNT( DISTINCT + 22 ) END + + - ( + CASE + + 66 WHEN - ( - 35 ) THEN + 2 * + CASE - - 83 WHEN - CAST( - ( 58 ) AS SIGNED ) * + 70 / - 77 * - + 2 THEN - + 44 END + - 79 + + - 58 ELSE - 58 * + - COUNT( * ) END ) + - 77 * - + 64 - + 22 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1686
SELECT ALL + CAST ( NULL AS INTEGER ) + CASE 42 WHEN - - 89 THEN NULL ELSE ( - MAX ( ALL + 19 ) ) * - COUNT ( DISTINCT + 22 ) END + + - ( + CASE + + 66 WHEN - ( - 35 ) THEN + 2 * + CASE - - 83 WHEN - CAST ( - ( 58 ) AS INTEGER ) * + 70 / - 77 * - + 2 THEN - + 44 END + - 79 + + - 58 ELSE - 58 * + - COUNT ( * ) END ) + - 77 * - + 64 - + 22 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT ALL 1 + - 40 * - 85 + COUNT( * )
----
3402

skipif mysql # not compatible
query I rowsort label-1687
SELECT ALL 1 + - 40 * - 85 + COUNT ( * )
----
3402

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1688
SELECT - CASE 12 WHEN + 74 THEN NULL WHEN + 46 * 45 THEN - 19 + + CAST( 96 AS DECIMAL ) + - 33 * - - COUNT( * ) - + NULLIF ( 14, - - COUNT( * ) ) END * - 49 - 63 - - CAST( - 0 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1688
SELECT - CASE 12 WHEN + 74 THEN NULL WHEN + 46 * 45 THEN - 19 + + CAST ( 96 AS REAL ) + - 33 * - - COUNT ( * ) - + NULLIF ( 14, - - COUNT ( * ) ) END * - 49 - 63 - - CAST ( - 0 AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1689
SELECT 75 DIV - 3 AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-1689
SELECT 75 / - 3 AS col2
----
-25

query I rowsort
SELECT + + ( + 1 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1691
SELECT + CAST( + MIN( DISTINCT - CAST( 83 AS SIGNED ) ) AS SIGNED ) * + CAST( NULL AS SIGNED ) * - 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1691
SELECT + CAST ( + MIN ( DISTINCT - CAST ( 83 AS INTEGER ) ) AS INTEGER ) * + CAST ( NULL AS INTEGER ) * - 5 AS col0
----
NULL

query I rowsort
SELECT ALL 46 + + - 32 * - 17 AS col0
----
590

query I rowsort
SELECT ALL 32 * - + 20 AS col1
----
-640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1694
SELECT ALL - COUNT( * ), - CAST( NULL AS SIGNED ) AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1694
SELECT ALL - COUNT ( * ), - CAST ( NULL AS INTEGER ) AS col1
----
-1
NULL

query I rowsort
SELECT DISTINCT 61 - - 44
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
SELECT SUM( ALL - 32 ) + - - 68 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-1696
SELECT SUM ( ALL - 32 ) + - - 68 AS col2
----
36

query II rowsort
SELECT 13 AS col1, 41 - 62 AS col2
----
13
-21

query I rowsort
SELECT - 99 * - 8 * - + 14 + - 53 + 90 AS col0
----
-11051

query I rowsort
SELECT DISTINCT + ( + 14 ) - 76
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1700
SELECT ALL COUNT( 53 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1700
SELECT ALL COUNT ( 53 ) AS col1
----
1

query I rowsort
SELECT DISTINCT - 6 * - + 4
----
24

query I rowsort
SELECT 21 * - 74
----
-1554

query I rowsort
SELECT ALL 18 * 63 AS col1
----
1134

query II rowsort
SELECT ALL 72 col0, 29 * - 33 AS col0
----
72
-957

query I rowsort
SELECT 47 * - - 27
----
1269

onlyif mysql # aggregate syntax: 
query II rowsort label-1706
SELECT ALL COUNT( * ) col2, 81 AS col2
----
1
81

skipif mysql # not compatible
query II rowsort label-1706
SELECT ALL COUNT ( * ) col2, 81 AS col2
----
1
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1707
SELECT - 31 AS col2, AVG ( ALL - CAST( NULL AS SIGNED ) ) + - 58
----
-31
NULL

skipif mysql # not compatible
query II rowsort label-1707
SELECT - 31 AS col2, AVG ( ALL - CAST ( NULL AS INTEGER ) ) + - 58
----
-31
NULL

query I rowsort
SELECT + COALESCE ( 27, + + 95 ) AS col2
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1709
SELECT CAST( NULL AS SIGNED ) * 46 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1709
SELECT CAST ( NULL AS INTEGER ) * 46 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1710
SELECT - - 41 AS col0, 66 - CAST( NULL AS SIGNED ) + 90 * - + ( 1 ) AS col0
----
41
NULL

skipif mysql # not compatible
query II rowsort label-1710
SELECT - - 41 AS col0, 66 - CAST ( NULL AS INTEGER ) + 90 * - + ( 1 ) AS col0
----
41
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1711
SELECT + 66 * CASE - + ( ( - ( 84 ) ) ) WHEN - 81 THEN - CAST( NULL AS SIGNED ) * - - 44 + 83 + - 2 - - 82 * - + COUNT( * ) * - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1711
SELECT + 66 * CASE - + ( ( - ( 84 ) ) ) WHEN - 81 THEN - CAST ( NULL AS INTEGER ) * - - 44 + 83 + - 2 - - 82 * - + COUNT ( * ) * - COUNT ( * ) END
----
NULL

query I rowsort
SELECT - CASE 7 WHEN + AVG ( DISTINCT - 6 ) THEN ( 93 ) ELSE NULL END - - 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1713
SELECT ALL - - COUNT( * ) + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-1713
SELECT ALL - - COUNT ( * ) + COUNT ( * ) AS col1
----
2

query I rowsort
SELECT ALL - 44 * 2 AS col0
----
-88

query I rowsort
SELECT DISTINCT + - 84 + + 14 * + + 37 + + 66 + - + 95
----
405

query I rowsort
SELECT - - 94 + - + 75 AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1717
SELECT + + CASE 73 WHEN MAX( - - 46 ) THEN + + 78 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1717
SELECT + + CASE 73 WHEN MAX ( - - 46 ) THEN + + 78 END
----
NULL

query II rowsort
SELECT ALL + 0 AS col2, ( 46 ) col1
----
0
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1719
SELECT - + COUNT( * ) + - - 62
----
61

skipif mysql # not compatible
query I rowsort label-1719
SELECT - + COUNT ( * ) + - - 62
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1720
SELECT ALL 8 * + CAST( + 63 AS SIGNED )
----
504

skipif mysql # not compatible
query I rowsort label-1720
SELECT ALL 8 * + CAST ( + 63 AS INTEGER )
----
504

query II rowsort
SELECT DISTINCT + 61, - 16 + - 3 + - 99 + + 57 * + ( 33 ) AS col0
----
61
1763

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1722
SELECT + CAST( NULL AS SIGNED ) + 52 + - 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1722
SELECT + CAST ( NULL AS INTEGER ) + 52 + - 20 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1723
SELECT ALL MAX( + 42 ) * - - 86 + + - 90 - 22 AS col0
----
3500

skipif mysql # not compatible
query I rowsort label-1723
SELECT ALL MAX ( + 42 ) * - - 86 + + - 90 - 22 AS col0
----
3500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1724
SELECT COALESCE ( CAST( NULL AS SIGNED ), CAST( 77 AS SIGNED ) )
----
77

skipif mysql # not compatible
query I rowsort label-1724
SELECT COALESCE ( CAST ( NULL AS INTEGER ), CAST ( 77 AS INTEGER ) )
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-1725
SELECT + COUNT( ALL - 69 ), 19 * - 83 AS col2
----
1
-1577

skipif mysql # not compatible
query II rowsort label-1725
SELECT + COUNT ( ALL - 69 ), 19 * - 83 AS col2
----
1
-1577

onlyif mysql # aggregate syntax: 
query I rowsort label-1726
SELECT + CASE - + 99 WHEN 61 + - - 91 THEN - - 27 WHEN - + CASE - CASE + 7 WHEN + - 7 / + + 25 - + - 18 THEN - MAX( ( 21 ) ) * + + 70 * 63 END WHEN + 20 THEN + 89 ELSE NULL END * + 76 / - - 62 THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1726
SELECT + CASE - + 99 WHEN 61 + - - 91 THEN - - 27 WHEN - + CASE - CASE + 7 WHEN + - 7 / + + 25 - + - 18 THEN - MAX ( ( 21 ) ) * + + 70 * 63 END WHEN + 20 THEN + 89 ELSE NULL END * + 76 / - - 62 THEN NULL END col0
----
NULL

query I rowsort
SELECT 38 * + - 1 + - 94 * 69 col0
----
-6524

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1728
SELECT + 60 * - CAST( - 18 AS SIGNED ) AS col2
----
1080

skipif mysql # not compatible
query I rowsort label-1728
SELECT + 60 * - CAST ( - 18 AS INTEGER ) AS col2
----
1080

onlyif mysql # aggregate syntax: 
query I rowsort label-1729
SELECT ALL COUNT( + - 72 ) * - 18 AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-1729
SELECT ALL COUNT ( + - 72 ) * - 18 AS col1
----
-18

onlyif mysql # DIV for integer division: 
query II rowsort label-1730
SELECT + 13 DIV + ( - 36 ) AS col1, 91 * - + 76
----
0
-6916

skipif mysql # not compatible
query II rowsort label-1730
SELECT + 13 / + ( - 36 ) AS col1, 91 * - + 76
----
0
-6916

query I rowsort
SELECT DISTINCT 77 * 20 AS col0
----
1540

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1732
SELECT DISTINCT + COUNT( 95 ) DIV + 49 + - + SUM( + + 92 ) * 66 * + 64 - + 82 AS col1
----
-388690

skipif mysql # not compatible
query I rowsort label-1732
SELECT DISTINCT + COUNT ( 95 ) / + 49 + - + SUM ( + + 92 ) * 66 * + 64 - + 82 AS col1
----
-388690

onlyif mysql # DIV for integer division: 
query I rowsort label-1733
SELECT + 77 DIV 78
----
0

skipif mysql # not compatible
query I rowsort label-1733
SELECT + 77 / 78
----
0

query I rowsort
SELECT + 94 + - 15
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-1735
SELECT - COUNT( * ) - 93, - 97 AS col2
----
-94
-97

skipif mysql # not compatible
query II rowsort label-1735
SELECT - COUNT ( * ) - 93, - 97 AS col2
----
-94
-97

query II rowsort
SELECT + 71 + - 67 AS col2, - COALESCE ( - - 92, + - ( - + 20 ) )
----
4
-92

query I rowsort
SELECT - 76 - + 68
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT ALL + + MAX( - 14 ) + + 89 AS col0
----
75

skipif mysql # not compatible
query I rowsort label-1738
SELECT ALL + + MAX ( - 14 ) + + 89 AS col0
----
75

query I rowsort
SELECT DISTINCT - NULLIF ( - 99, 7 * ( - 75 ) + + 43 * + - 89 ) * + - 54
----
-5346

onlyif mysql # aggregate syntax: 
query I rowsort label-1740
SELECT DISTINCT 52 + COALESCE ( + + COUNT( * ), - - 29 - - + 32 )
----
53

skipif mysql # not compatible
query I rowsort label-1740
SELECT DISTINCT 52 + COALESCE ( + + COUNT ( * ), - - 29 - - + 32 )
----
53

query I rowsort
SELECT ALL - COALESCE ( 18, - 47 ) + 11 AS col1
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1742
SELECT - + 34 + - ( + COUNT( * ) ) + - COUNT( * ) DIV + 70 - - - ( - 47 ), - 52 * + COUNT( * ) AS col0
----
12
-52

skipif mysql # not compatible
query II rowsort label-1742
SELECT - + 34 + - ( + COUNT ( * ) ) + - COUNT ( * ) / + 70 - - - ( - 47 ), - 52 * + COUNT ( * ) AS col0
----
12
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1743
SELECT ALL - COUNT( ALL + + 92 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1743
SELECT ALL - COUNT ( ALL + + 92 ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-1744
SELECT - 53 DIV 5 AS col2, + ( + 54 )
----
-10
54

skipif mysql # not compatible
query II rowsort label-1744
SELECT - 53 / 5 AS col2, + ( + 54 )
----
-10
54

query I rowsort
SELECT - 36 + + + 62 AS col1
----
26

query I rowsort
SELECT ALL - 63 - - 19 AS col1
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1747
SELECT - + CASE - + 80 WHEN - - 63 + 36 THEN - COUNT( * ) * - + 92 * + - NULLIF ( - - 38, + CAST( + 36 AS SIGNED ) ) * - 56 + - - COUNT( * ) END / 36 * + ( CASE + 43 WHEN 80 THEN + + 35 END ) - - 77 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1747
SELECT - + CASE - + 80 WHEN - - 63 + 36 THEN - COUNT ( * ) * - + 92 * + - NULLIF ( - - 38, + CAST ( + 36 AS INTEGER ) ) * - 56 + - - COUNT ( * ) END / 36 * + ( CASE + 43 WHEN 80 THEN + + 35 END ) - - 77 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-1748
SELECT ALL + ( + 39 ) AS col2, + 17 AS col0, + 20 + + COUNT( * )
----
39
17
21

skipif mysql # not compatible
query III rowsort label-1748
SELECT ALL + ( + 39 ) AS col2, + 17 AS col0, + 20 + + COUNT ( * )
----
39
17
21

query I rowsort
SELECT ALL + 71 * - - 54 AS col0
----
3834

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1750
SELECT DISTINCT + NULLIF ( 95, - CAST( NULL AS SIGNED ) ) * + ( - 81 )
----
-7695

skipif mysql # not compatible
query I rowsort label-1750
SELECT DISTINCT + NULLIF ( 95, - CAST ( NULL AS INTEGER ) ) * + ( - 81 )
----
-7695

onlyif mysql # DIV for integer division: 
query II rowsort label-1751
SELECT ALL 86 DIV + + ( + 12 ) - - ( 90 ) + 13 col2, 92 + - - 71 DIV + 44 AS col2
----
110
93

skipif mysql # not compatible
query II rowsort label-1751
SELECT ALL 86 / + + ( + 12 ) - - ( 90 ) + 13 col2, 92 + - - 71 / + 44 AS col2
----
110
93

query I rowsort
SELECT - 97 * NULLIF ( 41, 42 )
----
-3977

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1753
SELECT ( + 84 ) * - CAST( NULL AS SIGNED ) * 53 - - + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-1753
SELECT ( + 84 ) * - CAST ( NULL AS INTEGER ) * 53 - - + 10
----
NULL

query I rowsort
SELECT + 73 * - 28
----
-2044

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1755
SELECT ALL - NULLIF ( - - 29, - 8 ) * COUNT( - 34 ) DIV + 60
----
0

skipif mysql # not compatible
query I rowsort label-1755
SELECT ALL - NULLIF ( - - 29, - 8 ) * COUNT ( - 34 ) / + 60
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1756
SELECT DISTINCT + CAST( - 62 AS SIGNED )
----
-62

skipif mysql # not compatible
query I rowsort label-1756
SELECT DISTINCT + CAST ( - 62 AS INTEGER )
----
-62

query I rowsort
SELECT DISTINCT + ( - 7 ) col2
----
-7

query II rowsort
SELECT ALL + 57, 11 AS col0
----
57
11

query I rowsort
SELECT + 7 * 88 AS col2
----
616

query I rowsort
SELECT NULLIF ( 16, 65 + ( 50 ) ) AS col1
----
16

query I rowsort
SELECT + ( + + 44 ) AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1762
SELECT NULLIF ( + 66, - MIN( - + ( - + 66 ) ) )
----
66

skipif mysql # not compatible
query I rowsort label-1762
SELECT NULLIF ( + 66, - MIN ( - + ( - + 66 ) ) )
----
66

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1763
SELECT ALL ( - CASE + CASE + COALESCE ( + 42, COUNT( * ), ( - CAST( NULL AS DECIMAL ) ), + 68 / - 26 ) WHEN + 96 THEN 40 WHEN + + 63 THEN - 34 END WHEN + 17 + AVG ( - 19 ) + 84 + + COUNT( * ) * + 88 THEN - 72 END ) * 39 + + CASE + 91 WHEN - 75 + + ( - 79 ) THEN NULL WHEN + 65 THEN 12 * + - 48 + - + 77 END / + 35 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1763
SELECT ALL ( - CASE + CASE + COALESCE ( + 42, COUNT ( * ), ( - CAST ( NULL AS REAL ) ), + 68 / - 26 ) WHEN + 96 THEN 40 WHEN + + 63 THEN - 34 END WHEN + 17 + AVG ( - 19 ) + 84 + + COUNT ( * ) * + 88 THEN - 72 END ) * 39 + + CASE + 91 WHEN - 75 + + ( - 79 ) THEN NULL WHEN + 65 THEN 12 * + - 48 + - + 77 END / + 35 col2
----
NULL

query I rowsort
SELECT - 71 * - 23
----
1633

query I rowsort
SELECT - NULLIF ( 15, ( - + 31 ) ) AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1766
SELECT + 53 + + 65 - + ( - - COUNT( * ) ) + - + 80 * - 94 AS col2
----
7637

skipif mysql # not compatible
query I rowsort label-1766
SELECT + 53 + + 65 - + ( - - COUNT ( * ) ) + - + 80 * - 94 AS col2
----
7637

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT + 44 * - + COUNT( * ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-1767
SELECT + 44 * - + COUNT ( * ) AS col2
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1768
SELECT ALL - 24 * - CAST( - COUNT( * ) AS SIGNED )
----
-24

skipif mysql # not compatible
query I rowsort label-1768
SELECT ALL - 24 * - CAST ( - COUNT ( * ) AS INTEGER )
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1769
SELECT ALL + 44 DIV + - 79 * - - NULLIF ( + - 75, - 80 * 31 + 46 + + COUNT( - 34 ) ) * CAST( - 80 AS SIGNED ) + + + 83 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-1769
SELECT ALL + 44 / + - 79 * - - NULLIF ( + - 75, - 80 * 31 + 46 + + COUNT ( - 34 ) ) * CAST ( - 80 AS INTEGER ) + + + 83 AS col0
----
83

query I rowsort
SELECT - 10 - - 34
----
24

query I rowsort
SELECT - 80 * + 65 AS col1
----
-5200

onlyif mysql # aggregate syntax: 
query II rowsort label-1772
SELECT DISTINCT 22 AS col0, COUNT( * ) + 93 - 39 * ( + 33 ) * - 69 + + + 44
----
22
88941

skipif mysql # not compatible
query II rowsort label-1772
SELECT DISTINCT 22 AS col0, COUNT ( * ) + 93 - 39 * ( + 33 ) * - 69 + + + 44
----
22
88941

query I rowsort
SELECT 50 - 29
----
21

query I rowsort
SELECT + NULLIF ( + 39, ( 85 ) * + 84 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1775
SELECT SUM( ALL ( + 4 ) )
----
4

skipif mysql # not compatible
query I rowsort label-1775
SELECT SUM ( ALL ( + 4 ) )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1776
SELECT ( + COUNT( * ) ) * 26
----
26

skipif mysql # not compatible
query I rowsort label-1776
SELECT ( + COUNT ( * ) ) * 26
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1777
SELECT COUNT( * ) - + 16 - + 20 - - 7 + - 36
----
-64

skipif mysql # not compatible
query I rowsort label-1777
SELECT COUNT ( * ) - + 16 - + 20 - - 7 + - 36
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1778
SELECT ALL + COUNT( * ) * + + 84 * - COUNT( * ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-1778
SELECT ALL + COUNT ( * ) * + + 84 * - COUNT ( * ) AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1779
SELECT + CASE - MAX( - 23 ) WHEN - 84 THEN NULL WHEN 37 * COUNT( * ) THEN + CASE + + COUNT( * ) WHEN + 45 THEN NULL WHEN - 61 THEN + 11 END END - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-1779
SELECT + CASE - MAX ( - 23 ) WHEN - 84 THEN NULL WHEN 37 * COUNT ( * ) THEN + CASE + + COUNT ( * ) WHEN + 45 THEN NULL WHEN - 61 THEN + 11 END END - 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT ALL 57 - ( + + 19 ) + + 30 + - 7 * - COALESCE ( + COALESCE ( COUNT( * ), - 2, + 3 ), - 48, - 3 ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-1780
SELECT ALL 57 - ( + + 19 ) + + 30 + - 7 * - COALESCE ( + COALESCE ( COUNT ( * ), - 2, + 3 ), - 48, - 3 ) AS col0
----
75

query II rowsort
SELECT - - 11, + 29 AS col1
----
11
29

onlyif mysql # aggregate syntax: 
query II rowsort label-1782
SELECT ALL + 55 AS col0, + COUNT( * )
----
55
1

skipif mysql # not compatible
query II rowsort label-1782
SELECT ALL + 55 AS col0, + COUNT ( * )
----
55
1

query I rowsort
SELECT 98 + + - 55
----
43

query II rowsort
SELECT 38 AS col1, - 12
----
38
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT ALL COUNT( ALL 15 )
----
1

skipif mysql # not compatible
query I rowsort label-1785
SELECT ALL COUNT ( ALL 15 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT - 44 * COUNT( * ) + - MAX( DISTINCT 70 ) AS col1
----
-114

skipif mysql # not compatible
query I rowsort label-1786
SELECT - 44 * COUNT ( * ) + - MAX ( DISTINCT 70 ) AS col1
----
-114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1787
SELECT ALL + 74 DIV - COALESCE ( + COUNT( * ), - 12 * + 23 * + ( 15 ), + 27 * - 71 * + 52, - ( - + ( + 18 ) ) )
----
-74

skipif mysql # not compatible
query I rowsort label-1787
SELECT ALL + 74 / - COALESCE ( + COUNT ( * ), - 12 * + 23 * + ( 15 ), + 27 * - 71 * + 52, - ( - + ( + 18 ) ) )
----
-74

onlyif mysql # DIV for integer division: 
query II rowsort label-1788
SELECT 74 DIV + - 13 + + 64 + 58 AS col0, - 80
----
117
-80

skipif mysql # not compatible
query II rowsort label-1788
SELECT 74 / + - 13 + + 64 + 58 AS col0, - 80
----
117
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-1789
SELECT ALL - MAX( - + 10 ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-1789
SELECT ALL - MAX ( - + 10 ) AS col0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1790
SELECT ALL - CAST( NULL AS SIGNED ) + - + ( ( 6 ) ) col0, COUNT( 46 ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1790
SELECT ALL - CAST ( NULL AS INTEGER ) + - + ( ( 6 ) ) col0, COUNT ( 46 ) AS col0
----
NULL
1

query I rowsort
SELECT 31 + - 9 AS col0
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-1792
SELECT ALL - ( + - 3 ) DIV 88
----
0

skipif mysql # not compatible
query I rowsort label-1792
SELECT ALL - ( + - 3 ) / 88
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1793
SELECT 37 / + 99 / - CAST( NULL AS SIGNED ) * COUNT( * ) / + 4 * + 19 * - - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-1793
SELECT 37 / + 99 / - CAST ( NULL AS INTEGER ) * COUNT ( * ) / + 4 * + 19 * - - 98
----
NULL

query I rowsort
SELECT DISTINCT - 57 * - 19 col0
----
1083

query I rowsort
SELECT 21 * - 24 AS col0
----
-504

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1796
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + - CAST( NULL AS SIGNED ) AS col2, 43 AS col0
----
NULL
43

skipif mysql # not compatible
query II rowsort label-1796
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + - CAST ( NULL AS INTEGER ) AS col2, 43 AS col0
----
NULL
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1797
SELECT MIN( + 90 ) * - - ( - COUNT( * ) ) * ( - - 16 ) + 92 + + 1 - MAX( DISTINCT - + 91 )
----
-1256

skipif mysql # not compatible
query I rowsort label-1797
SELECT MIN ( + 90 ) * - - ( - COUNT ( * ) ) * ( - - 16 ) + 92 + + 1 - MAX ( DISTINCT - + 91 )
----
-1256

query I rowsort
SELECT DISTINCT + 89 + 27 + + ( + - 31 ) * 28
----
-752

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT DISTINCT - COALESCE ( 83, - COUNT( * ) * - 93 * + 86 ) * - 4 col2
----
332

skipif mysql # not compatible
query I rowsort label-1799
SELECT DISTINCT - COALESCE ( 83, - COUNT ( * ) * - 93 * + 86 ) * - 4 col2
----
332

query I rowsort
SELECT 88 * + + 96 * - 58 * 43 * - 94
----
1980515328

onlyif mysql # DIV for integer division: 
query I rowsort label-1801
SELECT + 78 - + 62 DIV + 18 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-1801
SELECT + 78 - + 62 / + 18 AS col2
----
75

query I rowsort
SELECT - NULLIF ( + - 16, 95 ) AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1803
SELECT - 44 + CASE + CASE + - NULLIF ( - COUNT( * ), + COUNT( * ) * 22 - + 98 * 78 * - 88 + + - 30 ) WHEN + 58 * - + ( 39 ) THEN 47 END WHEN + 14 + 21 * + ( - 30 ) * 10 * - - 39 + 93 + + 32 * - 38 - 78 + - 39 THEN - 63 - - + 45 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1803
SELECT - 44 + CASE + CASE + - NULLIF ( - COUNT ( * ), + COUNT ( * ) * 22 - + 98 * 78 * - 88 + + - 30 ) WHEN + 58 * - + ( 39 ) THEN 47 END WHEN + 14 + 21 * + ( - 30 ) * 10 * - - 39 + 93 + + 32 * - 38 - 78 + - 39 THEN - 63 - - + 45 END
----
NULL

query I rowsort
SELECT DISTINCT - - 73 * + 85 * + + 93
----
577065

query I rowsort
SELECT DISTINCT - 18 * - 73 col0
----
1314

onlyif mysql # aggregate syntax: 
query I rowsort label-1806
SELECT ALL COUNT( * ) * - - ( - 10 ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-1806
SELECT ALL COUNT ( * ) * - - ( - 10 ) AS col2
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1807
SELECT + 94 * - 75 + - + COALESCE ( - 7, + + COALESCE ( 81, 27 DIV - ( + 34 ) + + COUNT( * ) + - COUNT( * ) * - 26 * + 49 ) ) + 12
----
-7031

skipif mysql # not compatible
query I rowsort label-1807
SELECT + 94 * - 75 + - + COALESCE ( - 7, + + COALESCE ( 81, 27 / - ( + 34 ) + + COUNT ( * ) + - COUNT ( * ) * - 26 * + 49 ) ) + 12
----
-7031

query I rowsort
SELECT 26 * - 93
----
-2418

query I rowsort
SELECT 3 + 47 AS col0
----
50

query II rowsort
SELECT ALL 35 AS col2, 75 * + 70 * - 83 * - + 38
----
35
16558500

query I rowsort
SELECT DISTINCT ( + 97 ) * + 36 AS col2
----
3492

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1812
SELECT ALL - 25 * - + 46 + 67 + + 92 + + + 57 + - 24 + + 19 DIV - 65 * 61 * + - COUNT( * ) + COUNT( DISTINCT - 0 ) + - 36 + 12 + 4 * + 5 * + 31 AS col1
----
1939

skipif mysql # not compatible
query I rowsort label-1812
SELECT ALL - 25 * - + 46 + 67 + + 92 + + + 57 + - 24 + + 19 / - 65 * 61 * + - COUNT ( * ) + COUNT ( DISTINCT - 0 ) + - 36 + 12 + 4 * + 5 * + 31 AS col1
----
1939

onlyif mysql # aggregate syntax: 
query I rowsort label-1813
SELECT ALL + 70 * SUM( - - 40 )
----
2800

skipif mysql # not compatible
query I rowsort label-1813
SELECT ALL + 70 * SUM ( - - 40 )
----
2800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1814
SELECT CAST( NULL AS SIGNED ) + 68 * - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-1814
SELECT CAST ( NULL AS INTEGER ) + 68 * - 21
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1815
SELECT DISTINCT - ( - - 2 ) * CAST( NULL AS SIGNED ) * + + AVG ( DISTINCT - ( + - 77 ) ) + + - ( - 51 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1815
SELECT DISTINCT - ( - - 2 ) * CAST ( NULL AS INTEGER ) * + + AVG ( DISTINCT - ( + - 77 ) ) + + - ( - 51 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1816
SELECT DISTINCT - NULLIF ( + 43, 18 ) * + 58 + + COUNT( * ) AS col0, 12
----
-2493
12

skipif mysql # not compatible
query II rowsort label-1816
SELECT DISTINCT - NULLIF ( + 43, 18 ) * + 58 + + COUNT ( * ) AS col0, 12
----
-2493
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1817
SELECT DISTINCT ( - 66 ) * + 53 + + COUNT( * ) col1
----
-3497

skipif mysql # not compatible
query I rowsort label-1817
SELECT DISTINCT ( - 66 ) * + 53 + + COUNT ( * ) col1
----
-3497

query I rowsort
SELECT 40 * - ( - 84 ) col2
----
3360

query I rowsort
SELECT 18 * - 35 * + 43
----
-27090

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1820
SELECT + MAX( DISTINCT + CAST( + 60 AS SIGNED ) ) AS col0, + CAST( - 54 AS SIGNED )
----
60
-54

skipif mysql # not compatible
query II rowsort label-1820
SELECT + MAX ( DISTINCT + CAST ( + 60 AS INTEGER ) ) AS col0, + CAST ( - 54 AS INTEGER )
----
60
-54

query I rowsort
SELECT 63 + 77 + 77
----
217

query I rowsort
SELECT DISTINCT + 77 * - ( - - NULLIF ( + 15, ( - + 26 ) ) ) + 28 AS col2
----
-1127

query I rowsort
SELECT ALL 54 * - - 35
----
1890

onlyif mysql # DIV for integer division: 
query I rowsort label-1824
SELECT DISTINCT - 26 DIV + 55
----
0

skipif mysql # not compatible
query I rowsort label-1824
SELECT DISTINCT - 26 / + 55
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1825
SELECT ALL + NULLIF ( + - ( + 68 ), + - COALESCE ( + + ( + - COUNT( * ) ), + 94 + - 39 / - 99 + + COUNT( * ) ) )
----
-68

skipif mysql # not compatible
query I rowsort label-1825
SELECT ALL + NULLIF ( + - ( + 68 ), + - COALESCE ( + + ( + - COUNT ( * ) ), + 94 + - 39 / - 99 + + COUNT ( * ) ) )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-1826
SELECT - COUNT( * ) + + + ( - ( - + COUNT( * ) ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-1826
SELECT - COUNT ( * ) + + + ( - ( - + COUNT ( * ) ) ) col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1827
SELECT DISTINCT - 26 DIV COUNT( - 42 ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-1827
SELECT DISTINCT - 26 / COUNT ( - 42 ) AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-1828
SELECT + COUNT( * ) * 41 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-1828
SELECT + COUNT ( * ) * 41 AS col2
----
41

query I rowsort
SELECT + 64 * + 83
----
5312

query I rowsort
SELECT - 70 * 0 AS col2
----
0

query I rowsort
SELECT ALL - 8 * + 16 AS col2
----
-128

query I rowsort
SELECT DISTINCT + 54 - - 92
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-1833
SELECT + 56 * - NULLIF ( 43 * 60, + ( - ( 18 ) ) + COUNT( * ) * 20 ) + 43 AS col1
----
-144437

skipif mysql # not compatible
query I rowsort label-1833
SELECT + 56 * - NULLIF ( 43 * 60, + ( - ( 18 ) ) + COUNT ( * ) * 20 ) + 43 AS col1
----
-144437

query I rowsort
SELECT ALL + 36 - 63
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1835
SELECT ALL NULLIF ( + 78, MIN( ALL CAST( 49 AS SIGNED ) ) ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-1835
SELECT ALL NULLIF ( + 78, MIN ( ALL CAST ( 49 AS INTEGER ) ) ) AS col2
----
78

query I rowsort
SELECT - 10 * - 33 AS col2
----
330

query I rowsort
SELECT ALL - 36 - 71
----
-107

query I rowsort
SELECT ALL CASE + 21 WHEN 33 + + 27 THEN NULL WHEN + 51 / 41 THEN NULL ELSE + 97 * - 44 END
----
-4268

query I rowsort
SELECT ALL NULLIF ( 77, 85 ) AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1840
SELECT DISTINCT CASE + COUNT( * ) WHEN 58 THEN 42 * - COUNT( * ) + - 50 * 46 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1840
SELECT DISTINCT CASE + COUNT ( * ) WHEN 58 THEN 42 * - COUNT ( * ) + - 50 * 46 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1841
SELECT + 98 DIV CAST( - 64 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-1841
SELECT + 98 / CAST ( - 64 AS INTEGER )
----
-1

query I rowsort
SELECT DISTINCT NULLIF ( ( 25 ), - 33 )
----
25

query I rowsort
SELECT - ( 41 ) + + 77
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1844
SELECT - MAX( DISTINCT + 88 ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-1844
SELECT - MAX ( DISTINCT + 88 ) AS col2
----
-88

query I rowsort
SELECT - 44 + 34 * 12 AS col0
----
364

query I rowsort
SELECT ALL 56 * - 75
----
-4200

query I rowsort
SELECT ALL + 47 + 16 AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT DISTINCT + COUNT( * ) + 43 / - CASE 62 WHEN NULLIF ( 67, + 48 ) THEN 82 + + 5 WHEN AVG ( + 30 ) * 30 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1848
SELECT DISTINCT + COUNT ( * ) + 43 / - CASE 62 WHEN NULLIF ( 67, + 48 ) THEN 82 + + 5 WHEN AVG ( + 30 ) * 30 THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1849
SELECT ALL CAST( COUNT( * ) AS SIGNED ) + - 58
----
-57

skipif mysql # not compatible
query I rowsort label-1849
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) + - 58
----
-57

query I rowsort
SELECT + 90 - + 24
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1851
SELECT ALL + ( 78 ) + - SUM( ALL ( 38 ) ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-1851
SELECT ALL + ( 78 ) + - SUM ( ALL ( 38 ) ) AS col1
----
40

query I rowsort
SELECT DISTINCT ( + 46 ) + - 73
----
-27

query I rowsort
SELECT - 78 + 33
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1854
SELECT ALL - ( + CAST( + 61 AS SIGNED ) ) / + NULLIF ( 49 + CASE WHEN NOT - 76 + 28 * 45 <> ( MIN( DISTINCT 89 ) ) THEN + 92 END, 94 ) + 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1854
SELECT ALL - ( + CAST ( + 61 AS INTEGER ) ) / + NULLIF ( 49 + CASE WHEN NOT - 76 + 28 * 45 <> ( MIN ( DISTINCT 89 ) ) THEN + 92 END, 94 ) + 31 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT - 54 + + 70 * - SUM( ALL 98 ) AS col1
----
-6914

skipif mysql # not compatible
query I rowsort label-1855
SELECT - 54 + + 70 * - SUM ( ALL 98 ) AS col1
----
-6914

query I rowsort
SELECT - 91 * 83 + + 23
----
-7530

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT + COUNT( * ) - 77
----
-76

skipif mysql # not compatible
query I rowsort label-1857
SELECT + COUNT ( * ) - 77
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1858
SELECT ( SUM( 44 ) ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-1858
SELECT ( SUM ( 44 ) ) AS col1
----
44

query I rowsort
SELECT ALL + ( - 75 )
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-1860
SELECT ALL - 88 DIV 49 + 59
----
58

skipif mysql # not compatible
query I rowsort label-1860
SELECT ALL - 88 / 49 + 59
----
58

query I rowsort
SELECT + NULLIF ( + 39, 11 - 56 * 29 ) AS col0
----
39

query I rowsort
SELECT ALL 36 * 86
----
3096

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1863
SELECT ALL CAST( NULL AS SIGNED ) * 75 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1863
SELECT ALL CAST ( NULL AS INTEGER ) * 75 + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1864
SELECT + 40 DIV - 44 + + 34 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-1864
SELECT + 40 / - 44 + + 34 AS col0
----
34

query I rowsort
SELECT DISTINCT - 21 * 45
----
-945

query I rowsort
SELECT ALL 82 * 35 AS col1
----
2870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1867
SELECT ALL - COUNT( * ) * - NULLIF ( - MIN( ALL - CAST( NULL AS SIGNED ) ), 44 * 85 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1867
SELECT ALL - COUNT ( * ) * - NULLIF ( - MIN ( ALL - CAST ( NULL AS INTEGER ) ), 44 * 85 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1868
SELECT + + 17 * - COUNT( * ) + 7 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-1868
SELECT + + 17 * - COUNT ( * ) + 7 AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1869
SELECT + - ( + 49 ) * MIN( + 68 ) AS col0
----
-3332

skipif mysql # not compatible
query I rowsort label-1869
SELECT + - ( + 49 ) * MIN ( + 68 ) AS col0
----
-3332

query I rowsort
SELECT - - 76 * - 12 col2
----
-912

query I rowsort
SELECT - ( + 47 ) + 5
----
-42

query I rowsort
SELECT + + 74 + - 41 AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1873
SELECT + ( 33 ) * + COUNT( * ) col0
----
33

skipif mysql # not compatible
query I rowsort label-1873
SELECT + ( 33 ) * + COUNT ( * ) col0
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-1874
SELECT ALL - + 48 DIV + 3 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-1874
SELECT ALL - + 48 / + 3 AS col0
----
-16

query I rowsort
SELECT + - 99 + - 15
----
-114

query I rowsort
SELECT - 31 * ( 52 ) AS col1
----
-1612

query I rowsort
SELECT + 52 * 18 + 79 * + 54
----
5202

onlyif mysql # DIV for integer division: 
query I rowsort label-1878
SELECT ALL + 60 DIV - 43
----
-1

skipif mysql # not compatible
query I rowsort label-1878
SELECT ALL + 60 / - 43
----
-1

query I rowsort
SELECT + + ( - 70 ) / - CASE 79 WHEN 10 * + 93 THEN - 77 + - 93 END
----
NULL

query I rowsort
SELECT - - 49 + - 64
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-1881
SELECT ALL + 44 DIV + 33
----
1

skipif mysql # not compatible
query I rowsort label-1881
SELECT ALL + 44 / + 33
----
1

query I rowsort
SELECT + 93 + - COALESCE ( - ( - 59 ), + 72, 30 )
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1883
SELECT - CAST( + 26 AS SIGNED ) - - COUNT( * ) col2
----
-25

skipif mysql # not compatible
query I rowsort label-1883
SELECT - CAST ( + 26 AS INTEGER ) - - COUNT ( * ) col2
----
-25

query I rowsort
SELECT ALL - - 43 * - 63 AS col2
----
-2709

query I rowsort
SELECT - 20 + - 17 * - 57 AS col2
----
949

query I rowsort
SELECT - 89 + 96 * 10
----
871

query I rowsort
SELECT ALL - + 93 * 89 AS col1
----
-8277

onlyif mysql # aggregate syntax: 
query I rowsort label-1888
SELECT - COUNT( * ) * ( + 65 )
----
-65

skipif mysql # not compatible
query I rowsort label-1888
SELECT - COUNT ( * ) * ( + 65 )
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1889
SELECT ALL CAST( NULL AS SIGNED ) + - COALESCE ( + 14, 44 / 89 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1889
SELECT ALL CAST ( NULL AS INTEGER ) + - COALESCE ( + 14, 44 / 89 )
----
NULL

query I rowsort
SELECT DISTINCT 7 + + 19 AS col0
----
26

query I rowsort
SELECT ALL + ( - 92 ) + - 57 AS col1
----
-149

onlyif mysql # DIV for integer division: 
query I rowsort label-1892
SELECT - + 22 + - 10 DIV - 69
----
-22

skipif mysql # not compatible
query I rowsort label-1892
SELECT - + 22 + - 10 / - 69
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1893
SELECT ALL SUM( 35 )
----
35

skipif mysql # not compatible
query I rowsort label-1893
SELECT ALL SUM ( 35 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1894
SELECT - 91 + + COUNT( 58 ) + - COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-1894
SELECT - 91 + + COUNT ( 58 ) + - COUNT ( * )
----
-91

query I rowsort
SELECT DISTINCT ( - + 86 ) AS col2
----
-86

query I rowsort
SELECT - 55 * + NULLIF ( + 33, - 86 )
----
-1815

query I rowsort
SELECT + 60 + 40 AS col0
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1898
SELECT ALL - ( + - 25 ) DIV COALESCE ( 60 DIV CASE MAX( DISTINCT COALESCE ( 83, + 1, + ( - 50 ) ) ) WHEN + COUNT( * ) THEN + NULLIF ( 7, - COUNT( * ) DIV + 18 ) * 56 ELSE NULL END, - 13 )
----
-1

skipif mysql # not compatible
query I rowsort label-1898
SELECT ALL - ( + - 25 ) / COALESCE ( 60 / CASE MAX ( DISTINCT COALESCE ( 83, + 1, + ( - 50 ) ) ) WHEN + COUNT ( * ) THEN + NULLIF ( 7, - COUNT ( * ) / + 18 ) * 56 ELSE NULL END, - 13 )
----
-1

query I rowsort
SELECT ( - 48 ) + - 0
----
-48

query I rowsort
SELECT ALL + 53 + - 23 AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1901
SELECT ALL 36 * COALESCE ( + COUNT( * ), - 47 ) col2
----
36

skipif mysql # not compatible
query I rowsort label-1901
SELECT ALL 36 * COALESCE ( + COUNT ( * ), - 47 ) col2
----
36

query I rowsort
SELECT ALL 95 - ( + 19 )
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1903
SELECT DISTINCT + ( - + 18 ) * + CAST( - 90 + 48 AS SIGNED )
----
756

skipif mysql # not compatible
query I rowsort label-1903
SELECT DISTINCT + ( - + 18 ) * + CAST ( - 90 + 48 AS INTEGER )
----
756

query I rowsort
SELECT DISTINCT 30 - - 42
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1905
SELECT COUNT( + - 4 ) * 34
----
34

skipif mysql # not compatible
query I rowsort label-1905
SELECT COUNT ( + - 4 ) * 34
----
34

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1906
SELECT COUNT( * ) * CAST( NULL AS DECIMAL ) * - 8 - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-1906
SELECT COUNT ( * ) * CAST ( NULL AS REAL ) * - 8 - 63
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1907
SELECT + 11 * - ( + CAST( NULL AS SIGNED ) ) - + MAX( - 43 ) * - ( - 50 * - 87 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1907
SELECT + 11 * - ( + CAST ( NULL AS INTEGER ) ) - + MAX ( - 43 ) * - ( - 50 * - 87 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1908
SELECT ( - - 45 ) DIV - COUNT( * ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-1908
SELECT ( - - 45 ) / - COUNT ( * ) AS col2
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-1909
SELECT ALL 53 DIV - 29
----
-1

skipif mysql # not compatible
query I rowsort label-1909
SELECT ALL 53 / - 29
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1910
SELECT MIN( COALESCE ( - 82, 10 ) ) * + 4 AS col2
----
-328

skipif mysql # not compatible
query I rowsort label-1910
SELECT MIN ( COALESCE ( - 82, 10 ) ) * + 4 AS col2
----
-328

query I rowsort
SELECT + 88 * 53
----
4664

onlyif mysql # aggregate syntax: 
query I rowsort label-1912
SELECT DISTINCT + MIN( ALL + 40 ) * + 65
----
2600

skipif mysql # not compatible
query I rowsort label-1912
SELECT DISTINCT + MIN ( ALL + 40 ) * + 65
----
2600

query I rowsort
SELECT 32 * - + 2 AS col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1914
SELECT 19 * + 30 * + COUNT( * ) col2
----
570

skipif mysql # not compatible
query I rowsort label-1914
SELECT 19 * + 30 * + COUNT ( * ) col2
----
570

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1915
SELECT + SUM( ( NULLIF ( ( - CAST( NULL AS SIGNED ) ), 51 + + 60 ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1915
SELECT + SUM ( ( NULLIF ( ( - CAST ( NULL AS INTEGER ) ), 51 + + 60 ) ) ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1916
SELECT 11 DIV - NULLIF ( 63, 15 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1916
SELECT 11 / - NULLIF ( 63, 15 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1917
SELECT ALL - MIN( ALL 27 ) + 73 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-1917
SELECT ALL - MIN ( ALL 27 ) + 73 AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1918
SELECT DISTINCT COUNT( * ) + 5 + + ( + ( 33 ) )
----
39

skipif mysql # not compatible
query I rowsort label-1918
SELECT DISTINCT COUNT ( * ) + 5 + + ( + ( 33 ) )
----
39

query I rowsort
SELECT ALL + - ( - + 75 ) * 1 AS col1
----
75

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

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

query I rowsort
SELECT ALL - 57 * + 56
----
-3192

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT COUNT( * ) + + 86
----
87

skipif mysql # not compatible
query I rowsort label-1922
SELECT COUNT ( * ) + + 86
----
87

query I rowsort
SELECT 66 * 38
----
2508

query I rowsort
SELECT DISTINCT - 39 * 54
----
-2106

query I rowsort
SELECT ALL + 85 - + - 78 + + 13 + + 51 * 66 AS col2
----
3542

query I rowsort
SELECT 56 - + 83 + - 40
----
-67

query I rowsort
SELECT 66 + - 32 AS col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT 75 + - 32 + MIN( 85 ) * 7
----
638

skipif mysql # not compatible
query I rowsort label-1928
SELECT 75 + - 32 + MIN ( 85 ) * 7
----
638

query I rowsort
SELECT 46 + - + 18 * + 45 col2
----
-764

query I rowsort
SELECT 81 * - 55
----
-4455

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1931
SELECT 55 + + CASE + 34 WHEN + 80 * 91 + AVG ( ALL - 45 ) THEN NULL WHEN - SUM( ALL + 8 ) THEN - ( 18 ) + 2 ELSE + 36 DIV 30 END AS col0
----
56

skipif mysql # not compatible
query I rowsort label-1931
SELECT 55 + + CASE + 34 WHEN + 80 * 91 + AVG ( ALL - 45 ) THEN NULL WHEN - SUM ( ALL + 8 ) THEN - ( 18 ) + 2 ELSE + 36 / 30 END AS col0
----
56

query II rowsort
SELECT ALL - 26 AS col2, 47
----
-26
47

query I rowsort
SELECT DISTINCT + 95 * - 42 * ( NULLIF ( 94, + 23 ) ) AS col0
----
-375060

query I rowsort
SELECT + 44 * + 38 * + + 39 + + 36
----
65244

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT COUNT( * ) - - 78 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-1935
SELECT COUNT ( * ) - - 78 AS col0
----
79

query I rowsort
SELECT 71 * - ( 25 ) AS col0
----
-1775

query I rowsort
SELECT ALL + 77 * + 98 AS col2
----
7546

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1938
SELECT + CAST( - 17 AS SIGNED ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-1938
SELECT + CAST ( - 17 AS INTEGER ) AS col1
----
-17

query I rowsort
SELECT ALL - - ( + - 16 ) AS col0
----
-16

query I rowsort
SELECT ALL - 4 * + 86
----
-344

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT COUNT( DISTINCT 27 ) + 80 - + 33 * SUM( ALL 77 )
----
-2460

skipif mysql # not compatible
query I rowsort label-1941
SELECT COUNT ( DISTINCT 27 ) + 80 - + 33 * SUM ( ALL 77 )
----
-2460

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT DISTINCT - COALESCE ( 78, + MIN( 10 ), 84 * - MAX( - 73 ) + + 81 * - 51 )
----
-78

skipif mysql # not compatible
query I rowsort label-1942
SELECT DISTINCT - COALESCE ( 78, + MIN ( 10 ), 84 * - MAX ( - 73 ) + + 81 * - 51 )
----
-78

query I rowsort
SELECT 96 * + 41 + 59
----
3995

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT + + 79 * - 75 * - COUNT( * ) + 29 col2
----
5954

skipif mysql # not compatible
query I rowsort label-1944
SELECT + + 79 * - 75 * - COUNT ( * ) + 29 col2
----
5954

query I rowsort
SELECT DISTINCT - 11 + + - 28 * - 56 - 30
----
1527

query II rowsort
SELECT ALL - + 18 AS col2, - 38
----
-18
-38

query I rowsort
SELECT + 88 + - 9 * + 77 col2
----
-605

query I rowsort
SELECT + ( - 80 ) + + 18
----
-62

query I rowsort
SELECT - 11 + 78 - - 9 * 0 col2
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1950
SELECT ALL - + COUNT( + + COALESCE ( + + CAST( NULL AS SIGNED ), + ( + 4 ) + - 81, - 80 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1950
SELECT ALL - + COUNT ( + + COALESCE ( + + CAST ( NULL AS INTEGER ), + ( + 4 ) + - 81, - 80 ) ) AS col1
----
-1

query I rowsort
SELECT 6 * 95 * 46 + - 1 * 31 + - 24
----
26165

query I rowsort
SELECT ALL 7 + 60 AS col2
----
67

query II rowsort
SELECT - - 5 AS col0, + ( 11 ) AS col1
----
5
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1954
SELECT - MAX( COALESCE ( + 61, - 45, - 38 * - 33 ) ) + COUNT( * ) col1
----
-60

skipif mysql # not compatible
query I rowsort label-1954
SELECT - MAX ( COALESCE ( + 61, - 45, - 38 * - 33 ) ) + COUNT ( * ) col1
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1955
SELECT ( + COUNT( * ) ) + CAST( + 15 AS SIGNED ) + 71 * 72 * + ( + 42 DIV + 57 - + 69 )
----
-352712

skipif mysql # not compatible
query I rowsort label-1955
SELECT ( + COUNT ( * ) ) + CAST ( + 15 AS INTEGER ) + 71 * 72 * + ( + 42 / + 57 - + 69 )
----
-352712

query I rowsort
SELECT + 60 * 98 - - - 3 * - 23
----
5949

query I rowsort
SELECT DISTINCT ( 88 ) * 9 col1
----
792

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT + COUNT( * ) * - 98 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-1958
SELECT + COUNT ( * ) * - 98 AS col2
----
-98

query I rowsort
SELECT + 25 + - 93 AS col2
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1960
SELECT - CASE WHEN NOT 0 > + 49 + + 5 THEN COUNT( * ) DIV 29 ELSE NULL END
----
0

skipif mysql # not compatible
query I rowsort label-1960
SELECT - CASE WHEN NOT 0 > + 49 + + 5 THEN COUNT ( * ) / 29 ELSE NULL END
----
0

query I rowsort
SELECT - 54 * 8 * + 25
----
-10800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1962
SELECT DISTINCT 18 - - 38 + + 78 + + - 9 * - 47 * - CAST( - 20 - - 68 / - COUNT( * ) AS SIGNED )
----
37358

skipif mysql # not compatible
query I rowsort label-1962
SELECT DISTINCT 18 - - 38 + + 78 + + - 9 * - 47 * - CAST ( - 20 - - 68 / - COUNT ( * ) AS INTEGER )
----
37358

query I rowsort
SELECT ALL 77 * + 83
----
6391

onlyif mysql # aggregate syntax: 
query I rowsort label-1964
SELECT - CASE - COUNT( * ) WHEN 37 THEN + 26 ELSE - 98 END
----
98

skipif mysql # not compatible
query I rowsort label-1964
SELECT - CASE - COUNT ( * ) WHEN 37 THEN + 26 ELSE - 98 END
----
98

query I rowsort
SELECT - ( 53 ) + + 74 * - 57 + 97 * 4 AS col2
----
-3883

onlyif mysql # aggregate syntax: 
query I rowsort label-1966
SELECT ALL MAX( ALL 78 )
----
78

skipif mysql # not compatible
query I rowsort label-1966
SELECT ALL MAX ( ALL 78 )
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-1967
SELECT + 18 * + 55, MIN( DISTINCT 0 ) AS col0
----
990
0

skipif mysql # not compatible
query II rowsort label-1967
SELECT + 18 * + 55, MIN ( DISTINCT 0 ) AS col0
----
990
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1968
SELECT + 35 DIV - 58
----
0

skipif mysql # not compatible
query I rowsort label-1968
SELECT + 35 / - 58
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT ALL MIN( - 43 ) col1
----
-43

skipif mysql # not compatible
query I rowsort label-1969
SELECT ALL MIN ( - 43 ) col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT DISTINCT NULLIF ( + SUM( ALL + + ( + 65 ) ), + 24 ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-1970
SELECT DISTINCT NULLIF ( + SUM ( ALL + + ( + 65 ) ), + 24 ) AS col1
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1971
SELECT CAST( NULL AS SIGNED ) * 51 * ( NULLIF ( + 85, 49 * + COUNT( * ) ) ) + - 4 + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-1971
SELECT CAST ( NULL AS INTEGER ) * 51 * ( NULLIF ( + 85, 49 * + COUNT ( * ) ) ) + - 4 + 12
----
NULL

query I rowsort
SELECT DISTINCT 24 * - - 86 + - + 66 * + 82
----
-3348

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1973
SELECT + SUM( 37 ) AS col2, - CAST( NULL AS SIGNED ) / - 26 + + 94 AS col1
----
37
NULL

skipif mysql # not compatible
query II rowsort label-1973
SELECT + SUM ( 37 ) AS col2, - CAST ( NULL AS INTEGER ) / - 26 + + 94 AS col1
----
37
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1974
SELECT - + 36 * ( + CASE 32 WHEN - 49 THEN - COUNT( * ) ELSE NULL END ) * 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1974
SELECT - + 36 * ( + CASE 32 WHEN - 49 THEN - COUNT ( * ) ELSE NULL END ) * 2 AS col2
----
NULL

query I rowsort
SELECT 67 * + + 93 - - 29 + + 58
----
6318

onlyif mysql # aggregate syntax: 
query II rowsort label-1976
SELECT MAX( ALL + - 64 ) AS col1, - COUNT( * )
----
-64
-1

skipif mysql # not compatible
query II rowsort label-1976
SELECT MAX ( ALL + - 64 ) AS col1, - COUNT ( * )
----
-64
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1977
SELECT + + CAST( 62 AS SIGNED ) * - 60 - + 37
----
-3757

skipif mysql # not compatible
query I rowsort label-1977
SELECT + + CAST ( 62 AS INTEGER ) * - 60 - + 37
----
-3757

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1978
SELECT ALL + + COALESCE ( 83, - 81, + CAST( + 28 AS SIGNED ) * + 52 )
----
83

skipif mysql # not compatible
query I rowsort label-1978
SELECT ALL + + COALESCE ( 83, - 81, + CAST ( + 28 AS INTEGER ) * + 52 )
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1979
SELECT DISTINCT + 3 * - 76 + + - CAST( - 99 AS SIGNED )
----
-129

skipif mysql # not compatible
query I rowsort label-1979
SELECT DISTINCT + 3 * - 76 + + - CAST ( - 99 AS INTEGER )
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT ALL + 60 * - 18 + CASE - ( - 13 ) WHEN NULLIF ( + 38, 88 ) THEN - 83 WHEN 37 + 32 THEN ( COUNT( * ) ) + - 17 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1980
SELECT ALL + 60 * - 18 + CASE - ( - 13 ) WHEN NULLIF ( + 38, 88 ) THEN - 83 WHEN 37 + 32 THEN ( COUNT ( * ) ) + - 17 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + + ( - 64 ) AS col2
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1982
SELECT - 90 * - ( - - 33 ) * + COUNT( * ) DIV 1 - - ( + COUNT( * ) ) * 85
----
3055

skipif mysql # not compatible
query I rowsort label-1982
SELECT - 90 * - ( - - 33 ) * + COUNT ( * ) / 1 - - ( + COUNT ( * ) ) * 85
----
3055

query I rowsort
SELECT DISTINCT - + 25 * - + 37 + + 56
----
981

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1984
SELECT - + 49 / - CASE + + 19 WHEN - + CASE 44 WHEN + COUNT( * ) THEN 21 WHEN 31 THEN NULL END THEN - CAST( NULL AS SIGNED ) WHEN - 98 THEN + 75 ELSE - 28 / CAST( NULL AS SIGNED ) END + CASE COALESCE ( - COUNT( * ), + 28 ) WHEN 73 - 84 THEN + 3 WHEN - 77 + 58 THEN 69 / - 33 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1984
SELECT - + 49 / - CASE + + 19 WHEN - + CASE 44 WHEN + COUNT ( * ) THEN 21 WHEN 31 THEN NULL END THEN - CAST ( NULL AS INTEGER ) WHEN - 98 THEN + 75 ELSE - 28 / CAST ( NULL AS INTEGER ) END + CASE COALESCE ( - COUNT ( * ), + 28 ) WHEN 73 - 84 THEN + 3 WHEN - 77 + 58 THEN 69 / - 33 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT - ( + SUM( DISTINCT + 28 ) ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-1985
SELECT - ( + SUM ( DISTINCT + 28 ) ) AS col2
----
-28

query I rowsort
SELECT + 58 * + + 70 AS col1
----
4060

query I rowsort
SELECT + - 11 * 32 col2
----
-352

query II rowsort
SELECT ALL + 95, 47 * + 36 AS col0
----
95
1692

onlyif mysql # DIV for integer division: 
query I rowsort label-1989
SELECT - 49 DIV + 76 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1989
SELECT - 49 / + 76 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT - COUNT( * ) * - - 42 AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-1990
SELECT - COUNT ( * ) * - - 42 AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-1991
SELECT MAX( DISTINCT - 34 ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-1991
SELECT MAX ( DISTINCT - 34 ) AS col2
----
-34

query II rowsort
SELECT DISTINCT ( - + ( - 40 ) ) AS col1, 2 col1
----
40
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1993
SELECT ALL COUNT( - 70 ) * - 10 - + + CASE 9 WHEN AVG ( ALL - 70 ) / - COUNT( * ) THEN NULL WHEN - 72 + 20 * + CAST( + 48 + + 26 AS SIGNED ) THEN NULLIF ( 34, COUNT( - ( + CAST( ( 95 ) AS SIGNED ) ) ) ) ELSE 26 END AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-1993
SELECT ALL COUNT ( - 70 ) * - 10 - + + CASE 9 WHEN AVG ( ALL - 70 ) / - COUNT ( * ) THEN NULL WHEN - 72 + 20 * + CAST ( + 48 + + 26 AS INTEGER ) THEN NULLIF ( 34, COUNT ( - ( + CAST ( ( 95 ) AS INTEGER ) ) ) ) ELSE 26 END AS col2
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1994
SELECT ALL CAST( 1 AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1994
SELECT ALL CAST ( 1 AS INTEGER ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1995
SELECT - COUNT( DISTINCT - 89 ) * 55 + 33 * + - 47
----
-1606

skipif mysql # not compatible
query I rowsort label-1995
SELECT - COUNT ( DISTINCT - 89 ) * 55 + 33 * + - 47
----
-1606

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1996
SELECT + CAST( 98 AS SIGNED ) * - SUM( DISTINCT 97 ) * COUNT( * ) col1
----
-9506

skipif mysql # not compatible
query I rowsort label-1996
SELECT + CAST ( 98 AS INTEGER ) * - SUM ( DISTINCT 97 ) * COUNT ( * ) col1
----
-9506

query I rowsort
SELECT - 66 + - 54 AS col2
----
-120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1998
SELECT + 30 * - CAST( NULL AS SIGNED ) * 15 * - + 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1998
SELECT + 30 * - CAST ( NULL AS INTEGER ) * 15 * - + 48 AS col1
----
NULL

query I rowsort
SELECT ALL 36 * + 62
----
2232

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2000
SELECT + 42 + 56 * + 43 DIV + - 1 + + ( COALESCE ( + 10, COUNT( * ) * 29 ) ) * 22
----
-2146

skipif mysql # not compatible
query I rowsort label-2000
SELECT + 42 + 56 * + 43 / + - 1 + + ( COALESCE ( + 10, COUNT ( * ) * 29 ) ) * 22
----
-2146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2001
SELECT + 59 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2001
SELECT + 59 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 4 * - - 11 AS col2
----
-44

query I rowsort
SELECT ALL 6 + - + 27 col0
----
-21

query I rowsort
SELECT + 12 - + - 88 AS col0
----
100

query I rowsort
SELECT ALL 76 + - 65
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-2006
SELECT DISTINCT 35 + 32 DIV + + 88
----
35

skipif mysql # not compatible
query I rowsort label-2006
SELECT DISTINCT 35 + 32 / + + 88
----
35

query II rowsort
SELECT 85 AS col1, 48 * + - 73 + - - ( ( ( 66 ) ) ) + 64
----
85
-3374

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2008
SELECT + 64 + + - 57 * + + 87 + - 3 + - COUNT( * ) + 77 DIV - ( COUNT( * ) - + 42 ) AS col0
----
-4898

skipif mysql # not compatible
query I rowsort label-2008
SELECT + 64 + + - 57 * + + 87 + - 3 + - COUNT ( * ) + 77 / - ( COUNT ( * ) - + 42 ) AS col0
----
-4898

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2009
SELECT CAST( + - 69 AS SIGNED ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-2009
SELECT CAST ( + - 69 AS INTEGER ) AS col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT + - 7 + + - COUNT( * ) + 44
----
36

skipif mysql # not compatible
query I rowsort label-2010
SELECT + - 7 + + - COUNT ( * ) + 44
----
36

query I rowsort
SELECT + 43 * - - 4 col1
----
172

query I rowsort
SELECT + - 22 + + + 37
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2013
SELECT 16 / + 82 + + CAST( NULL AS SIGNED ) - + + 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2013
SELECT 16 / + 82 + + CAST ( NULL AS INTEGER ) - + + 45 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2014
SELECT - 26 DIV - COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-2014
SELECT - 26 / - COUNT ( * )
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2015
SELECT DISTINCT + + NULLIF ( + COALESCE ( COALESCE ( 23, + + 61 * COUNT( * ) ), 34 + - NULLIF ( - COUNT( * ) + + 80, + 21 + + 28 ) * + COUNT( * ), 74 * - 76 + - CAST( + NULLIF ( 61, + 58 ) AS SIGNED ) * 56 ), 81 ) DIV 38 + 16
----
16

skipif mysql # not compatible
query I rowsort label-2015
SELECT DISTINCT + + NULLIF ( + COALESCE ( COALESCE ( 23, + + 61 * COUNT ( * ) ), 34 + - NULLIF ( - COUNT ( * ) + + 80, + 21 + + 28 ) * + COUNT ( * ), 74 * - 76 + - CAST ( + NULLIF ( 61, + 58 ) AS INTEGER ) * 56 ), 81 ) / 38 + 16
----
16

query I rowsort
SELECT DISTINCT + NULLIF ( ( + - 0 ), - - 88 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2017
SELECT DISTINCT 58 * + - COUNT( * ) * - 89 * - + 82
----
-423284

skipif mysql # not compatible
query I rowsort label-2017
SELECT DISTINCT 58 * + - COUNT ( * ) * - 89 * - + 82
----
-423284

onlyif mysql # DIV for integer division: 
query I rowsort label-2018
SELECT DISTINCT - - 91 DIV + 94 * - 85 - + 45
----
-45

skipif mysql # not compatible
query I rowsort label-2018
SELECT DISTINCT - - 91 / + 94 * - 85 - + 45
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2019
SELECT ALL + - COUNT( * ) DIV + ( - + 9 ) - MIN( + 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-2019
SELECT ALL + - COUNT ( * ) / + ( - + 9 ) - MIN ( + 77 )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2020
SELECT + + ( CASE - 47 WHEN COUNT( * ) / - - 95 + - MIN( DISTINCT + 46 ) THEN + COUNT( * ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2020
SELECT + + ( CASE - 47 WHEN COUNT ( * ) / - - 95 + - MIN ( DISTINCT + 46 ) THEN + COUNT ( * ) ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2021
SELECT - + 48 * - 25 + - + 23 + - COUNT( * ) * 47 * - 18
----
2023

skipif mysql # not compatible
query I rowsort label-2021
SELECT - + 48 * - 25 + - + 23 + - COUNT ( * ) * 47 * - 18
----
2023

query I rowsort
SELECT - - 14 * + 74
----
1036

onlyif mysql # aggregate syntax: 
query I rowsort label-2023
SELECT - 34 * 88 * - COUNT( * ) + + COUNT( * ) + + 73 * 71 + 97 AS col0
----
8273

skipif mysql # not compatible
query I rowsort label-2023
SELECT - 34 * 88 * - COUNT ( * ) + + COUNT ( * ) + + 73 * 71 + 97 AS col0
----
8273

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2024
SELECT + 67 AS col0, - CAST( 45 AS SIGNED ) * - 32
----
67
1440

skipif mysql # not compatible
query II rowsort label-2024
SELECT + 67 AS col0, - CAST ( 45 AS INTEGER ) * - 32
----
67
1440

query I rowsort
SELECT 65 + 0
----
65

query I rowsort
SELECT ALL - 59 * + + 76 * - + 82 * + + 2 - - + 86 AS col1
----
735462

query I rowsort
SELECT 47 + + + 98
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-2028
SELECT + 77 * COUNT( * ) + - + 36 * + 83 - + CASE 8 WHEN - 31 THEN 29 ELSE - 70 END + 23 * 22 AS col0
----
-2335

skipif mysql # not compatible
query I rowsort label-2028
SELECT + 77 * COUNT ( * ) + - + 36 * + 83 - + CASE 8 WHEN - 31 THEN 29 ELSE - 70 END + 23 * 22 AS col0
----
-2335

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2029
SELECT ALL - COUNT( * ) AS col2, + 52 + + 3 + - - 8 - + 42 + + + SUM( DISTINCT 62 ) - - 87 DIV + 69
----
-1
84

skipif mysql # not compatible
query II rowsort label-2029
SELECT ALL - COUNT ( * ) AS col2, + 52 + + 3 + - - 8 - + 42 + + + SUM ( DISTINCT 62 ) - - 87 / + 69
----
-1
84

query I rowsort
SELECT COALESCE ( 42, 73 * - 45 * - - 44 ) * 42 + 53
----
1817

query II rowsort
SELECT 3, 5 * - 20 AS col0
----
3
-100

query II rowsort
SELECT - 92, + 55 AS col2
----
-92
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2033
SELECT CASE - 9 WHEN + CASE COUNT( * ) WHEN - 86 THEN NULL WHEN - + 98 THEN NULL ELSE + 66 END THEN 18 END + - COUNT( * ) * 79
----
NULL

skipif mysql # not compatible
query I rowsort label-2033
SELECT CASE - 9 WHEN + CASE COUNT ( * ) WHEN - 86 THEN NULL WHEN - + 98 THEN NULL ELSE + 66 END THEN 18 END + - COUNT ( * ) * 79
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2034
SELECT 85 DIV - 57 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2034
SELECT 85 / - 57 AS col2
----
-1

query I rowsort
SELECT 56 * 10
----
560

onlyif mysql # aggregate syntax: 
query I rowsort label-2036
SELECT 91 + + + 76 * COALESCE ( - 38, - + COUNT( - 47 ) + 29 ) AS col1
----
-2797

skipif mysql # not compatible
query I rowsort label-2036
SELECT 91 + + + 76 * COALESCE ( - 38, - + COUNT ( - 47 ) + 29 ) AS col1
----
-2797

query II rowsort
SELECT 32, 64 - - 13 * - - 97 AS col1
----
32
1325

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2038
SELECT 75 DIV - + COUNT( * )
----
-75

skipif mysql # not compatible
query I rowsort label-2038
SELECT 75 / - + COUNT ( * )
----
-75

query II rowsort
SELECT DISTINCT 12, 60 AS col0
----
12
60

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2040
SELECT ALL 82 + + + COALESCE ( - ( - 12 ), + - CAST( NULL AS SIGNED ) * + 31 ) + - ( 68 + - 23 DIV - 18 ) * - 46 * 16
----
50878

skipif mysql # not compatible
query I rowsort label-2040
SELECT ALL 82 + + + COALESCE ( - ( - 12 ), + - CAST ( NULL AS INTEGER ) * + 31 ) + - ( 68 + - 23 / - 18 ) * - 46 * 16
----
50878

query III rowsort
SELECT - 16 AS col2, + 6 AS col2, NULLIF ( 11, 3 + ( 13 ) ) AS col1
----
-16
6
11

query I rowsort
SELECT ALL - 91 + + 87
----
-4

query II rowsort
SELECT - 73, 83 + + + 18 AS col2
----
-73
101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2044
SELECT 10 * 30 DIV + - 19 * - COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-2044
SELECT 10 * 30 / + - 19 * - COUNT ( * )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2045
SELECT 93 + - + 2 + + + 90 * - 9 * + CASE + - COUNT( * ) WHEN 5 * 77 - + COUNT( * ) THEN + 26 * 4 + 87 WHEN - 98 / 72 + MIN( 35 ) THEN NULL ELSE NULL END + + COUNT( DISTINCT - 0 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2045
SELECT 93 + - + 2 + + + 90 * - 9 * + CASE + - COUNT ( * ) WHEN 5 * 77 - + COUNT ( * ) THEN + 26 * 4 + 87 WHEN - 98 / 72 + MIN ( 35 ) THEN NULL ELSE NULL END + + COUNT ( DISTINCT - 0 ) col0
----
NULL

query I rowsort
SELECT DISTINCT + CASE + + 4 WHEN - 95 + - ( + - ( + + 49 ) ) THEN - 58 ELSE NULL END + 33 * 71
----
NULL

query I rowsort
SELECT 55 * - ( 57 ) * + 95
----
-297825

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT ALL - - 78 * + COUNT( ALL 67 )
----
78

skipif mysql # not compatible
query I rowsort label-2048
SELECT ALL - - 78 * + COUNT ( ALL 67 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2049
SELECT ALL + - 15 + + COUNT( * ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-2049
SELECT ALL + - 15 + + COUNT ( * ) AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2050
SELECT ALL NULLIF ( SUM( DISTINCT 12 ), - ( + - 37 ) )
----
12

skipif mysql # not compatible
query I rowsort label-2050
SELECT ALL NULLIF ( SUM ( DISTINCT 12 ), - ( + - 37 ) )
----
12

onlyif mysql # DIV for integer division: 
query II rowsort label-2051
SELECT + - 24 AS col2, 97 DIV - + 17 AS col1
----
-24
-5

skipif mysql # not compatible
query II rowsort label-2051
SELECT + - 24 AS col2, 97 / - + 17 AS col1
----
-24
-5

query II rowsort
SELECT DISTINCT - 83 AS col2, 81 AS col2
----
-83
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2053
SELECT - - 58 * ( - CAST( NULL AS DECIMAL ) ) * + - 93 * + - 91 - 26 * + 41 - - 68 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2053
SELECT - - 58 * ( - CAST ( NULL AS REAL ) ) * + - 93 * + - 91 - 26 * + 41 - - 68 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2054
SELECT DISTINCT - 60 AS col0, 32 + + NULLIF ( + + ( - 84 ), + NULLIF ( MAX( 60 ), ( + 16 ) ) ) * 83 col1
----
-60
-6940

skipif mysql # not compatible
query II rowsort label-2054
SELECT DISTINCT - 60 AS col0, 32 + + NULLIF ( + + ( - 84 ), + NULLIF ( MAX ( 60 ), ( + 16 ) ) ) * 83 col1
----
-60
-6940

onlyif mysql # DIV for integer division: 
query I rowsort label-2055
SELECT 74 DIV 76 + - 41
----
-41

skipif mysql # not compatible
query I rowsort label-2055
SELECT 74 / 76 + - 41
----
-41

query I rowsort
SELECT - 31 * - CASE + - 90 WHEN + + 4 / - - NULLIF ( + + 70, - 0 / + 65 ) THEN 35 WHEN 49 THEN NULL END / - 71 col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2057
SELECT + CASE 51 WHEN - 77 * + + 44 THEN - CAST( NULL AS DECIMAL ) WHEN - 0 THEN + 63 * 86 + + 80 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2057
SELECT + CASE 51 WHEN - 77 * + + 44 THEN - CAST ( NULL AS REAL ) WHEN - 0 THEN + 63 * 86 + + 80 END AS col0
----
NULL

query I rowsort
SELECT ALL 14 * - - 56
----
784

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT DISTINCT 19 * 39 * - + COUNT( * ) + MIN( DISTINCT - + 28 )
----
-769

skipif mysql # not compatible
query I rowsort label-2059
SELECT DISTINCT 19 * 39 * - + COUNT ( * ) + MIN ( DISTINCT - + 28 )
----
-769

onlyif mysql # aggregate syntax: 
query I rowsort label-2060
SELECT + 98 * COUNT( * ) col2
----
98

skipif mysql # not compatible
query I rowsort label-2060
SELECT + 98 * COUNT ( * ) col2
----
98

query I rowsort
SELECT + 73 * - 5 - - - 54 + + 54 + + 95
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-2062
SELECT - 35 * + + 34 - + ( - + MIN( - 79 ) ) * - + 45 + - + 5 + + COALESCE ( 71 + ( + 7 ), 31 * - 25 ) * 63 * + 72
----
356168

skipif mysql # not compatible
query I rowsort label-2062
SELECT - 35 * + + 34 - + ( - + MIN ( - 79 ) ) * - + 45 + - + 5 + + COALESCE ( 71 + ( + 7 ), 31 * - 25 ) * 63 * + 72
----
356168

query II rowsort
SELECT 40 * - 90 AS col0, 87
----
-3600
87

query II rowsort
SELECT 75 * - 79, 20 col0
----
-5925
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2065
SELECT DISTINCT - 76 + - COALESCE ( + - CAST( + 85 AS SIGNED ), - 80 - 69 - 73 + 0 * 39 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-2065
SELECT DISTINCT - 76 + - COALESCE ( + - CAST ( + 85 AS INTEGER ), - 80 - 69 - 73 + 0 * 39 ) AS col0
----
9

query I rowsort
SELECT ALL - COALESCE ( - 71, 42 ) AS col2
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2067
SELECT DISTINCT + 50 + 68 AS col2, + 76 + CAST( - 8 AS SIGNED ) + 64 * + 95 + 71
----
118
6219

skipif mysql # not compatible
query II rowsort label-2067
SELECT DISTINCT + 50 + 68 AS col2, + 76 + CAST ( - 8 AS INTEGER ) + 64 * + 95 + 71
----
118
6219

onlyif mysql # aggregate syntax: 
query I rowsort label-2068
SELECT DISTINCT 59 + - ( + + 51 ) + - 99 - 48 + - 85 * - + COUNT( * )
----
-54

skipif mysql # not compatible
query I rowsort label-2068
SELECT DISTINCT 59 + - ( + + 51 ) + - 99 - 48 + - 85 * - + COUNT ( * )
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-2069
SELECT ALL + COALESCE ( 52, + 12 * 81, + + 87 DIV - 49, - 40 * 81 ) + - 9
----
43

skipif mysql # not compatible
query I rowsort label-2069
SELECT ALL + COALESCE ( 52, + 12 * 81, + + 87 / - 49, - 40 * 81 ) + - 9
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2070
SELECT ALL + 59 + - - MIN( + 19 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-2070
SELECT ALL + 59 + - - MIN ( + 19 ) AS col0
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2071
SELECT 71 + + 86 * + + CAST( COUNT( * ) AS SIGNED )
----
157

skipif mysql # not compatible
query I rowsort label-2071
SELECT 71 + + 86 * + + CAST ( COUNT ( * ) AS INTEGER )
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-2072
SELECT COUNT( * ) * + + 78 * 21
----
1638

skipif mysql # not compatible
query I rowsort label-2072
SELECT COUNT ( * ) * + + 78 * 21
----
1638

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2073
SELECT DISTINCT + MAX( + 7 ) / ( + 86 ) + + - CAST( NULL AS SIGNED ) AS col1, 94 AS col1
----
NULL
94

skipif mysql # not compatible
query II rowsort label-2073
SELECT DISTINCT + MAX ( + 7 ) / ( + 86 ) + + - CAST ( NULL AS INTEGER ) AS col1, 94 AS col1
----
NULL
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2074
SELECT DISTINCT + - 13 - + 9 - + MAX( + ( 97 ) ) * + + NULLIF ( 2, 6 * 92 ) * 8 AS col2
----
-1574

skipif mysql # not compatible
query I rowsort label-2074
SELECT DISTINCT + - 13 - + 9 - + MAX ( + ( 97 ) ) * + + NULLIF ( 2, 6 * 92 ) * 8 AS col2
----
-1574

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2075
SELECT 46 + - 84 + 74 * + CAST( 78 AS SIGNED ) * - 44 * + 9
----
-2285750

skipif mysql # not compatible
query I rowsort label-2075
SELECT 46 + - 84 + 74 * + CAST ( 78 AS INTEGER ) * - 44 * + 9
----
-2285750

query I rowsort
SELECT - ( - + ( + - 13 ) ) + + 95
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT - ( + 79 ) * - CASE + 46 WHEN 30 * + 58 THEN + - 78 WHEN + 55 THEN 4 ELSE COUNT( * ) END * 74 AS col1
----
5846

skipif mysql # not compatible
query I rowsort label-2077
SELECT - ( + 79 ) * - CASE + 46 WHEN 30 * + 58 THEN + - 78 WHEN + 55 THEN 4 ELSE COUNT ( * ) END * 74 AS col1
----
5846

query I rowsort
SELECT - COALESCE ( + - CASE - 48 WHEN + + 37 THEN NULL WHEN 99 THEN + NULLIF ( + 0, + 74 * 29 ) END, ( + 93 ) * - 13 + + 16 ) AS col1
----
1193

query I rowsort
SELECT - - 96 * - 49 * - 23 + 38
----
108230

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2080
SELECT + + 98 + - - CAST( - 46 AS SIGNED ) + + 50 * - - 61
----
3102

skipif mysql # not compatible
query I rowsort label-2080
SELECT + + 98 + - - CAST ( - 46 AS INTEGER ) + + 50 * - - 61
----
3102

query I rowsort
SELECT - - 87 * - - ( - 4 )
----
-348

query I rowsort
SELECT ALL + 81 * + - 86 * 16
----
-111456

query I rowsort
SELECT DISTINCT + - 8 * + COALESCE ( - 10, 20 ) + - 82 + 91
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2084
SELECT CASE 76 WHEN - 66 + - COUNT( * ) THEN NULL ELSE 56 END AS col2
----
56

skipif mysql # not compatible
query I rowsort label-2084
SELECT CASE 76 WHEN - 66 + - COUNT ( * ) THEN NULL ELSE 56 END AS col2
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2085
SELECT - 90 + - 47 * 16 DIV SUM( DISTINCT + 83 ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-2085
SELECT - 90 + - 47 * 16 / SUM ( DISTINCT + 83 ) AS col0
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2086
SELECT ALL SUM( DISTINCT + 46 ) * + 94 + - CAST( + - 71 AS SIGNED ) + 81 DIV - 41 + + 24 - + 76 * - 59
----
8902

skipif mysql # not compatible
query I rowsort label-2086
SELECT ALL SUM ( DISTINCT + 46 ) * + 94 + - CAST ( + - 71 AS INTEGER ) + 81 / - 41 + + 24 - + 76 * - 59
----
8902

onlyif mysql # DIV for integer division: 
query I rowsort label-2087
SELECT - 69 * - + 72 + - + 87 + + 43 DIV + 64 AS col0
----
4881

skipif mysql # not compatible
query I rowsort label-2087
SELECT - 69 * - + 72 + - + 87 + + 43 / + 64 AS col0
----
4881

onlyif mysql # aggregate syntax: 
query I rowsort label-2088
SELECT + ( COUNT( * ) ) - + 40 + - 44 * - - 83 + - - 55 col0
----
-3636

skipif mysql # not compatible
query I rowsort label-2088
SELECT + ( COUNT ( * ) ) - + 40 + - 44 * - - 83 + - - 55 col0
----
-3636

query I rowsort
SELECT + COALESCE ( 8, 14 + + - 55 ) AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT ALL NULLIF ( - 19, - SUM( - - 12 ) + 29 + + 51 + NULLIF ( - 83, - 61 ) * 10 ) * + 22 + + 61 AS col1
----
-357

skipif mysql # not compatible
query I rowsort label-2090
SELECT ALL NULLIF ( - 19, - SUM ( - - 12 ) + 29 + + 51 + NULLIF ( - 83, - 61 ) * 10 ) * + 22 + + 61 AS col1
----
-357

query I rowsort
SELECT ALL 13 * 93
----
1209

onlyif mysql # aggregate syntax: 
query II rowsort label-2092
SELECT + ( - 27 ) + - COUNT( * ) AS col0, ( - ( + 73 ) )
----
-28
-73

skipif mysql # not compatible
query II rowsort label-2092
SELECT + ( - 27 ) + - COUNT ( * ) AS col0, ( - ( + 73 ) )
----
-28
-73

query I rowsort
SELECT ALL 93 * - ( 10 ) * + 62 + - - ( 16 ) * 87
----
-56268

query I rowsort
SELECT + ( + + 3 ) + + 48 AS col0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2095
SELECT + COALESCE ( - - CAST( NULL AS SIGNED ), + 64, - + 5 )
----
64

skipif mysql # not compatible
query I rowsort label-2095
SELECT + COALESCE ( - - CAST ( NULL AS INTEGER ), + 64, - + 5 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2096
SELECT ALL 12 * + 22 + + + COUNT( * )
----
265

skipif mysql # not compatible
query I rowsort label-2096
SELECT ALL 12 * + 22 + + + COUNT ( * )
----
265

onlyif mysql # aggregate syntax: 
query I rowsort label-2097
SELECT + COUNT( * ) + + + 79 col0
----
80

skipif mysql # not compatible
query I rowsort label-2097
SELECT + COUNT ( * ) + + + 79 col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2098
SELECT ALL + 99 * + + NULLIF ( CASE 47 WHEN - 49 THEN 19 * + 76 + - COUNT( * ) * + ( MIN( ( 51 ) ) ) + + 82 ELSE NULL END, + ( - 16 ) ) * - 9 + - NULLIF ( 74, - 53 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2098
SELECT ALL + 99 * + + NULLIF ( CASE 47 WHEN - 49 THEN 19 * + 76 + - COUNT ( * ) * + ( MIN ( ( 51 ) ) ) + + 82 ELSE NULL END, + ( - 16 ) ) * - 9 + - NULLIF ( 74, - 53 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2099
SELECT CAST( - - CASE + - ( - - CAST( NULL AS SIGNED ) ) WHEN - - 54 + - 37 THEN NULL WHEN + 97 THEN + 31 * 67 + 47 WHEN + ( 40 ) THEN 95 ELSE NULL END AS SIGNED ) * 37 + + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-2099
SELECT CAST ( - - CASE + - ( - - CAST ( NULL AS INTEGER ) ) WHEN - - 54 + - 37 THEN NULL WHEN + 97 THEN + 31 * 67 + 47 WHEN + ( 40 ) THEN 95 ELSE NULL END AS INTEGER ) * 37 + + 75
----
NULL

query I rowsort
SELECT + 65 + + + 28 AS col2
----
93

query I rowsort
SELECT - 41 + + 80
----
39

query I rowsort
SELECT ALL 47 + 61 AS col1
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT - COALESCE ( + + 69, + COUNT( * ) * + + 0 + - - COUNT( * ) )
----
-69

skipif mysql # not compatible
query I rowsort label-2103
SELECT - COALESCE ( + + 69, + COUNT ( * ) * + + 0 + - - COUNT ( * ) )
----
-69

query I rowsort
SELECT - 59 + 21 AS col2
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2105
SELECT - CASE - CASE + + 16 WHEN + + 14 + - CAST( - 6 AS SIGNED ) THEN - + 45 WHEN - COUNT( * ) / 92 THEN + 7 ELSE + AVG ( DISTINCT 99 ) * + COUNT( * ) END WHEN 87 THEN 10 WHEN 75 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2105
SELECT - CASE - CASE + + 16 WHEN + + 14 + - CAST ( - 6 AS INTEGER ) THEN - + 45 WHEN - COUNT ( * ) / 92 THEN + 7 ELSE + AVG ( DISTINCT 99 ) * + COUNT ( * ) END WHEN 87 THEN 10 WHEN 75 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT ALL + 48 * 53 AS col0
----
2544

query I rowsort
SELECT - 36 * 41 AS col0
----
-1476

query I rowsort
SELECT DISTINCT + + 77 - + + COALESCE ( + 55, 88 ) col1
----
22

query I rowsort
SELECT ALL - COALESCE ( + - 83, + - 55 * 35 ) AS col2
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-2110
SELECT 35, COALESCE ( + + 26, - COUNT( * ), + 38 * + CASE + ( + 30 ) WHEN COUNT( * ) / + 89 THEN 91 + - 66 WHEN 86 / 61 THEN NULL ELSE NULL END + - ( - 55 ) ) AS col2
----
35
26

skipif mysql # not compatible
query II rowsort label-2110
SELECT 35, COALESCE ( + + 26, - COUNT ( * ), + 38 * + CASE + ( + 30 ) WHEN COUNT ( * ) / + 89 THEN 91 + - 66 WHEN 86 / 61 THEN NULL ELSE NULL END + - ( - 55 ) ) AS col2
----
35
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2111
SELECT + - 82 DIV MAX( + - 67 ) + + - COALESCE ( + + 34, 91 - + MAX( + + 50 ), + 45 * COUNT( * ) ) + - 51 AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-2111
SELECT + - 82 / MAX ( + - 67 ) + + - COALESCE ( + + 34, 91 - + MAX ( + + 50 ), + 45 * COUNT ( * ) ) + - 51 AS col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2112
SELECT - + ( - + 52 ) * 97 * - ( 55 ) * 94 + - - 73 + 95 * COUNT( + ( 45 ) )
----
-26077312

skipif mysql # not compatible
query I rowsort label-2112
SELECT - + ( - + 52 ) * 97 * - ( 55 ) * 94 + - - 73 + 95 * COUNT ( + ( 45 ) )
----
-26077312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2113
SELECT - 91 AS col1, 96 - CASE + + CAST( NULL AS SIGNED ) WHEN - COUNT( * ) + + + 11 THEN + 35 * NULLIF ( - 18, - COALESCE ( COUNT( * ), 90 * 66 ) ) END
----
-91
NULL

skipif mysql # not compatible
query II rowsort label-2113
SELECT - 91 AS col1, 96 - CASE + + CAST ( NULL AS INTEGER ) WHEN - COUNT ( * ) + + + 11 THEN + 35 * NULLIF ( - 18, - COALESCE ( COUNT ( * ), 90 * 66 ) ) END
----
-91
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2114
SELECT - NULLIF ( - 1, - COUNT( * ) * + 94 )
----
1

skipif mysql # not compatible
query I rowsort label-2114
SELECT - NULLIF ( - 1, - COUNT ( * ) * + 94 )
----
1

query I rowsort
SELECT NULLIF ( + 16, + - COALESCE ( + - 71, - + 76 + - 88 ) ) AS col2
----
16

query II rowsort
SELECT - 52 AS col1, 88 col0
----
-52
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2117
SELECT ALL ( + COALESCE ( - NULLIF ( 23, + 57 DIV - - 58 + + + ( - 67 ) - + 78 * + 89 ), - COUNT( 37 ) * ( + COUNT( * ) DIV - AVG ( 43 * - ( 97 ) ) ) + - 73, + 57 + 74 DIV 92, 58 * 78 ) ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-2117
SELECT ALL ( + COALESCE ( - NULLIF ( 23, + 57 / - - 58 + + + ( - 67 ) - + 78 * + 89 ), - COUNT ( 37 ) * ( + COUNT ( * ) / - AVG ( 43 * - ( 97 ) ) ) + - 73, + 57 + 74 / 92, 58 * 78 ) ) AS col1
----
-23

query I rowsort
SELECT ALL 9 * + 11
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2119
SELECT - - CAST( + 40 AS SIGNED ) + - 47 - - - 24 * 92 AS col1
----
-2215

skipif mysql # not compatible
query I rowsort label-2119
SELECT - - CAST ( + 40 AS INTEGER ) + - 47 - - - 24 * 92 AS col1
----
-2215

query I rowsort
SELECT - - 81 * 76 AS col2
----
6156

onlyif mysql # aggregate syntax: 
query I rowsort label-2121
SELECT - + MAX( ALL - - 48 ) * + 28 * - 47 + 0
----
63168

skipif mysql # not compatible
query I rowsort label-2121
SELECT - + MAX ( ALL - - 48 ) * + 28 * - 47 + 0
----
63168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2122
SELECT ALL + 20 DIV - COUNT( 64 ) + 51 DIV - ( 10 ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-2122
SELECT ALL + 20 / - COUNT ( 64 ) + 51 / - ( 10 ) AS col2
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-2123
SELECT DISTINCT 52 DIV - ( - 24 ) + - 47
----
-45

skipif mysql # not compatible
query I rowsort label-2123
SELECT DISTINCT 52 / - ( - 24 ) + - 47
----
-45

query I rowsort
SELECT - 65 * 15 + - - 27 + ( 66 ) col1
----
-882

query I rowsort
SELECT - NULLIF ( 96, 66 ) * + 87 * + + 13 * ( + + 96 ) * - 7 AS col0
----
72963072

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2126
SELECT + CAST( NULL AS SIGNED ) + 16 - + 29 + + 33 / + + 56 - 12 + - 37 * - 60 / + 89 * + 91 * 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2126
SELECT + CAST ( NULL AS INTEGER ) + 16 - + 29 + + 33 / + + 56 - 12 + - 37 * - 60 / + 89 * + 91 * 31 AS col0
----
NULL

query I rowsort
SELECT + COALESCE ( 63, + NULLIF ( 61, 39 + + - 8 ) )
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-2128
SELECT DISTINCT ( - 38 ) DIV 56 + + 50 - + 30
----
20

skipif mysql # not compatible
query I rowsort label-2128
SELECT DISTINCT ( - 38 ) / 56 + + 50 - + 30
----
20

query II rowsort
SELECT ( - 61 ) AS col1, - 34
----
-61
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2130
SELECT ALL 76 * 53 * + - COUNT( * ) * + ( 44 ) + + 98
----
-177134

skipif mysql # not compatible
query I rowsort label-2130
SELECT ALL 76 * 53 * + - COUNT ( * ) * + ( 44 ) + + 98
----
-177134

query I rowsort
SELECT + ( + + 66 ) AS col2
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-2132
SELECT ( + 82 ) AS col0, - COUNT( * ) * + NULLIF ( - 92, - + COALESCE ( - 56, - 9 ) ) / - + 88 * CASE COUNT( * ) WHEN - 92 + 64 THEN - 17 WHEN 46 THEN CASE 37 WHEN 73 * - 17 THEN 38 ELSE NULL END END AS col0
----
82
NULL

skipif mysql # not compatible
query II rowsort label-2132
SELECT ( + 82 ) AS col0, - COUNT ( * ) * + NULLIF ( - 92, - + COALESCE ( - 56, - 9 ) ) / - + 88 * CASE COUNT ( * ) WHEN - 92 + 64 THEN - 17 WHEN 46 THEN CASE 37 WHEN 73 * - 17 THEN 38 ELSE NULL END END AS col0
----
82
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2133
SELECT + 18 * SUM( - + 62 ) AS col0
----
-1116

skipif mysql # not compatible
query I rowsort label-2133
SELECT + 18 * SUM ( - + 62 ) AS col0
----
-1116

onlyif mysql # aggregate syntax: 
query I rowsort label-2134
SELECT CASE - - 82 WHEN + 50 + + 96 + - - MIN( + ( + 50 ) ) - - COALESCE ( - - 99, + 76 * - 41, - 92 ) * NULLIF ( + COUNT( * ), 55 + + 34 ) THEN 67 * 68 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2134
SELECT CASE - - 82 WHEN + 50 + + 96 + - - MIN ( + ( + 50 ) ) - - COALESCE ( - - 99, + 76 * - 41, - 92 ) * NULLIF ( + COUNT ( * ), 55 + + 34 ) THEN 67 * 68 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2135
SELECT + 35 DIV COALESCE ( - 25, ( + 25 ) * - 34 * NULLIF ( 52, - 19 ) + + ( - 92 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2135
SELECT + 35 / COALESCE ( - 25, ( + 25 ) * - 34 * NULLIF ( 52, - 19 ) + + ( - 92 ) )
----
-1

query I rowsort
SELECT ALL + ( ( + 13 ) )
----
13

query I rowsort
SELECT + 82 * - 11
----
-902

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2138
SELECT ALL + CAST( - AVG ( ALL 4 ) AS SIGNED ) * + + 82
----
-328

skipif mysql # not compatible
query I rowsort label-2138
SELECT ALL + CAST ( - AVG ( ALL 4 ) AS INTEGER ) * + + 82
----
-328

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT CASE + COUNT( * ) WHEN - 45 THEN - + 73 WHEN 39 / AVG ( + 12 ) - - + 59 + - - COUNT( * ) + + SUM( ALL + 40 ) THEN - 95 - 56 ELSE ( ( 78 ) ) END col2
----
78

skipif mysql # not compatible
query I rowsort label-2139
SELECT CASE + COUNT ( * ) WHEN - 45 THEN - + 73 WHEN 39 / AVG ( + 12 ) - - + 59 + - - COUNT ( * ) + + SUM ( ALL + 40 ) THEN - 95 - 56 ELSE ( ( 78 ) ) END col2
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-2140
SELECT + 13 * - 87 * + - 72 + - 38 + + - COUNT( * ), 47 + + 81 AS col1
----
81393
128

skipif mysql # not compatible
query II rowsort label-2140
SELECT + 13 * - 87 * + - 72 + - 38 + + - COUNT ( * ), 47 + + 81 AS col1
----
81393
128

query I rowsort
SELECT - - NULLIF ( - 10, 43 ) AS col1
----
-10

query I rowsort
SELECT ALL + ( 22 )
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2143
SELECT CAST( NULL AS SIGNED ) + 32 + - COUNT( * ) + + - NULLIF ( + + 15, 24 ) + 59 * + 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2143
SELECT CAST ( NULL AS INTEGER ) + 32 + - COUNT ( * ) + + - NULLIF ( + + 15, 24 ) + 59 * + 13 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2144
SELECT + COUNT( * ) + - 90 AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-2144
SELECT + COUNT ( * ) + - 90 AS col2
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2145
SELECT - CAST( NULL AS SIGNED ) * CASE + + 95 WHEN + 40 THEN NULL WHEN + - 6 * - + 70 - - 51 * - - 20 + - 29 + - CAST( - 59 + - 79 AS SIGNED ) THEN NULL ELSE 12 * + MIN( DISTINCT - 17 ) END + + 19 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2145
SELECT - CAST ( NULL AS INTEGER ) * CASE + + 95 WHEN + 40 THEN NULL WHEN + - 6 * - + 70 - - 51 * - - 20 + - 29 + - CAST ( - 59 + - 79 AS INTEGER ) THEN NULL ELSE 12 * + MIN ( DISTINCT - 17 ) END + + 19 AS col1
----
NULL

query I rowsort
SELECT 9 + - ( - 59 )
----
68

query I rowsort
SELECT - 84 - - 58
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT 55 + SUM( DISTINCT 15 )
----
70

skipif mysql # not compatible
query I rowsort label-2148
SELECT 55 + SUM ( DISTINCT 15 )
----
70

query I rowsort
SELECT DISTINCT + ( + ( 55 ) ) AS col1
----
55

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2150
SELECT ALL + CAST( NULL AS SIGNED ) + + - 26 + - + ( CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2150
SELECT ALL + CAST ( NULL AS INTEGER ) + + - 26 + - + ( CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2151
SELECT - 50 + - ( COUNT( * ) ) + + - 64 + - 39 + + - 16 DIV + 36 AS col2
----
-154

skipif mysql # not compatible
query I rowsort label-2151
SELECT - 50 + - ( COUNT ( * ) ) + + - 64 + - 39 + + - 16 / + 36 AS col2
----
-154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2152
SELECT + 73 / 7 * CASE + 83 WHEN + - 44 THEN + - CAST( - 28 AS SIGNED ) END * - CASE + 57 WHEN 89 THEN 98 + + 77 WHEN + 18 + - COALESCE ( - COUNT( * ) + - COUNT( * ) * COUNT( * ), COUNT( * ) * 61 - - 12, - MIN( 31 ) * 45 ) * 9 THEN + 27 / - COUNT( DISTINCT + 70 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2152
SELECT + 73 / 7 * CASE + 83 WHEN + - 44 THEN + - CAST ( - 28 AS INTEGER ) END * - CASE + 57 WHEN 89 THEN 98 + + 77 WHEN + 18 + - COALESCE ( - COUNT ( * ) + - COUNT ( * ) * COUNT ( * ), COUNT ( * ) * 61 - - 12, - MIN ( 31 ) * 45 ) * 9 THEN + 27 / - COUNT ( DISTINCT + 70 ) END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2153
SELECT ALL 43 + 4 DIV ( - ( + + 55 ) ) * + 25 + - + 58 + 19 col2
----
4

skipif mysql # not compatible
query I rowsort label-2153
SELECT ALL 43 + 4 / ( - ( + + 55 ) ) * + 25 + - + 58 + 19 col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2154
SELECT ALL - COUNT( * ) + - COUNT( * ) + 55 + + MIN( ALL ( - CASE + CASE + 18 WHEN - 98 THEN CAST( - 52 AS SIGNED ) * 97 + 60 ELSE - 91 DIV 73 + - 79 END WHEN 57 - 92 THEN NULL WHEN 48 THEN + 64 * 51 ELSE 1 + - 5 * 87 END ) ) + + 44 DIV - ( ( ( 24 ) ) ) AS col2
----
486

skipif mysql # not compatible
query I rowsort label-2154
SELECT ALL - COUNT ( * ) + - COUNT ( * ) + 55 + + MIN ( ALL ( - CASE + CASE + 18 WHEN - 98 THEN CAST ( - 52 AS INTEGER ) * 97 + 60 ELSE - 91 / 73 + - 79 END WHEN 57 - 92 THEN NULL WHEN 48 THEN + 64 * 51 ELSE 1 + - 5 * 87 END ) ) + + 44 / - ( ( ( 24 ) ) ) AS col2
----
486

onlyif mysql # aggregate syntax: 
query II rowsort label-2155
SELECT + MIN( ALL + - 93 ) AS col0, 57 AS col2
----
-93
57

skipif mysql # not compatible
query II rowsort label-2155
SELECT + MIN ( ALL + - 93 ) AS col0, 57 AS col2
----
-93
57

onlyif mysql # aggregate syntax: 
query II rowsort label-2156
SELECT - COUNT( * ) + 45 AS col0, - 29 * - 28 AS col2
----
44
812

skipif mysql # not compatible
query II rowsort label-2156
SELECT - COUNT ( * ) + 45 AS col0, - 29 * - 28 AS col2
----
44
812

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2157
SELECT 58 * 72 * + 25 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2157
SELECT 58 * 72 * + 25 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2158
SELECT - COUNT( * ) / - ( - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2158
SELECT - COUNT ( * ) / - ( - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2159
SELECT 99 AS col1, + COUNT( * ) + + 2
----
99
3

skipif mysql # not compatible
query II rowsort label-2159
SELECT 99 AS col1, + COUNT ( * ) + + 2
----
99
3

query I rowsort
SELECT ALL + 63 + CASE + + ( - 47 ) WHEN + 44 * - 5 + - 64 * - + 76 THEN NULL ELSE 54 END + + 47 + + 69 * + 77 AS col1
----
5477

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2161
SELECT DISTINCT 43 * + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2161
SELECT DISTINCT 43 * + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2162
SELECT 63 * + MAX( 9 ) - - 44 - + 83 * + 64 + - + 99 * - - 67 AS col0, ( - + 1 )
----
-11334
-1

skipif mysql # not compatible
query II rowsort label-2162
SELECT 63 * + MAX ( 9 ) - - 44 - + 83 * + 64 + - + 99 * - - 67 AS col0, ( - + 1 )
----
-11334
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2163
SELECT DISTINCT - 91 DIV + NULLIF ( - 47, + + 84 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2163
SELECT DISTINCT - 91 / + NULLIF ( - 47, + + 84 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2164
SELECT 94 DIV - COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-2164
SELECT 94 / - COUNT ( * )
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2165
SELECT CASE ( NULLIF ( ( + 21 ), + 22 ) ) WHEN - 70 * + COUNT( ALL + 26 ) * + NULLIF ( + ( 23 ), + 28 * CAST( NULL AS SIGNED ) + 17 ) + - 15 * 18 THEN - 67 WHEN + 75 * - 32 THEN - ( + MAX( DISTINCT 87 ) ) * + 42 - COUNT( * ) END * - 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2165
SELECT CASE ( NULLIF ( ( + 21 ), + 22 ) ) WHEN - 70 * + COUNT ( ALL + 26 ) * + NULLIF ( + ( 23 ), + 28 * CAST ( NULL AS INTEGER ) + 17 ) + - 15 * 18 THEN - 67 WHEN + 75 * - 32 THEN - ( + MAX ( DISTINCT 87 ) ) * + 42 - COUNT ( * ) END * - 73 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2166
SELECT NULLIF ( + 4, - + COALESCE ( 23, 29 ) + 63 ) * COUNT( * ) + 72
----
76

skipif mysql # not compatible
query I rowsort label-2166
SELECT NULLIF ( + 4, - + COALESCE ( 23, 29 ) + 63 ) * COUNT ( * ) + 72
----
76

query I rowsort
SELECT 16 - - 13 * - 69 * - 38
----
34102

onlyif mysql # aggregate syntax: 
query I rowsort label-2168
SELECT ALL - CASE 95 WHEN 30 THEN - 33 ELSE - - COUNT( * ) - - 28 + + 42 END AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-2168
SELECT ALL - CASE 95 WHEN 30 THEN - 33 ELSE - - COUNT ( * ) - - 28 + + 42 END AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT - 41 * MIN( DISTINCT 95 ) - + + CASE + + 80 WHEN COUNT( ALL + 14 ) THEN NULL ELSE + 83 END AS col2
----
-3978

skipif mysql # not compatible
query I rowsort label-2169
SELECT - 41 * MIN ( DISTINCT 95 ) - + + CASE + + 80 WHEN COUNT ( ALL + 14 ) THEN NULL ELSE + 83 END AS col2
----
-3978

query I rowsort
SELECT ALL - 1 * + 3 AS col0
----
-3

query I rowsort
SELECT DISTINCT - 28 * + 63 AS col2
----
-1764

onlyif mysql # aggregate syntax: 
query I rowsort label-2172
SELECT COUNT( * ) + - - 46 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-2172
SELECT COUNT ( * ) + - - 46 AS col0
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-2173
SELECT 96 DIV + 27
----
3

skipif mysql # not compatible
query I rowsort label-2173
SELECT 96 / + 27
----
3

query I rowsort
SELECT COALESCE ( + 64, - ( + - 98 ) ) AS col1
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2175
SELECT 75 + 10 * + - CAST( NULL AS SIGNED ) - 41 * + 35, - 44 + - 39 * 97 * 53 AS col0
----
NULL
-200543

skipif mysql # not compatible
query II rowsort label-2175
SELECT 75 + 10 * + - CAST ( NULL AS INTEGER ) - 41 * + 35, - 44 + - 39 * 97 * 53 AS col0
----
NULL
-200543

query I rowsort
SELECT 21 + - 77 * 11 * - + 34 AS col0
----
28819

query I rowsort
SELECT 24 * 52
----
1248

query I rowsort
SELECT ALL - 5 * - + 60
----
300

onlyif mysql # aggregate syntax: 
query I rowsort label-2179
SELECT DISTINCT 13 + - CASE 22 WHEN - 77 THEN - + CASE - 86 WHEN SUM( ALL + 18 ) THEN - SUM( ALL + ( 62 ) ) + ( 42 + - 35 ) WHEN - 51 THEN NULL END + 47 WHEN + 47 THEN + COUNT( * ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2179
SELECT DISTINCT 13 + - CASE 22 WHEN - 77 THEN - + CASE - 86 WHEN SUM ( ALL + 18 ) THEN - SUM ( ALL + ( 62 ) ) + ( 42 + - 35 ) WHEN - 51 THEN NULL END + 47 WHEN + 47 THEN + COUNT ( * ) END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2180
SELECT CAST( + + 87 AS SIGNED ) * ( COUNT( * ) ) DIV + 27 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-2180
SELECT CAST ( + + 87 AS INTEGER ) * ( COUNT ( * ) ) / + 27 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2181
SELECT ALL COUNT( * ) + + 99 + + 79 * 20 AS col1
----
1680

skipif mysql # not compatible
query I rowsort label-2181
SELECT ALL COUNT ( * ) + + 99 + + 79 * 20 AS col1
----
1680

onlyif mysql # aggregate syntax: 
query I rowsort label-2182
SELECT 80 - - COUNT( * ) - - COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-2182
SELECT 80 - - COUNT ( * ) - - COUNT ( * )
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-2183
SELECT - 15 - + 8 DIV 4 + + - 3
----
-20

skipif mysql # not compatible
query I rowsort label-2183
SELECT - 15 - + 8 / 4 + + - 3
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2184
SELECT - MIN( - 10 )
----
10

skipif mysql # not compatible
query I rowsort label-2184
SELECT - MIN ( - 10 )
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2185
SELECT 72 * ( - 99 ) col2, + CAST( NULL AS SIGNED ) AS col2
----
-7128
NULL

skipif mysql # not compatible
query II rowsort label-2185
SELECT 72 * ( - 99 ) col2, + CAST ( NULL AS INTEGER ) AS col2
----
-7128
NULL

query I rowsort
SELECT - 98 * + 14 + - 92 AS col2
----
-1464

query II rowsort
SELECT 82 col1, 87 AS col2
----
82
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2188
SELECT SUM( DISTINCT - 49 ) - NULLIF ( - 70, - 38 DIV - 54 + COUNT( * ) ) + CAST( + 78 AS SIGNED ) + - + 90 DIV COALESCE ( - 82, 27 ) + 57 AS col0
----
157

skipif mysql # not compatible
query I rowsort label-2188
SELECT SUM ( DISTINCT - 49 ) - NULLIF ( - 70, - 38 / - 54 + COUNT ( * ) ) + CAST ( + 78 AS INTEGER ) + - + 90 / COALESCE ( - 82, 27 ) + 57 AS col0
----
157

query I rowsort
SELECT ALL - NULLIF ( + 19, 42 ) * - + COALESCE ( - - 53, 42 ) * - 71 * + 75
----
-5362275

onlyif mysql # aggregate syntax: 
query I rowsort label-2190
SELECT COUNT( ALL NULLIF ( + 49, + 19 ) ) + + 17
----
18

skipif mysql # not compatible
query I rowsort label-2190
SELECT COUNT ( ALL NULLIF ( + 49, + 19 ) ) + + 17
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2191
SELECT DISTINCT 96 - + CASE - - 12 WHEN + 3 * + + 41 + 93 THEN + 96 WHEN + 77 + 44 + - 68 * + CAST( NULL AS SIGNED ) + 74 THEN COUNT( * ) * + 53 + + CASE - 13 WHEN ( 6 ) THEN - CAST( NULL AS SIGNED ) + 64 END * - COUNT( * ) ELSE - 68 END
----
164

skipif mysql # not compatible
query I rowsort label-2191
SELECT DISTINCT 96 - + CASE - - 12 WHEN + 3 * + + 41 + 93 THEN + 96 WHEN + 77 + 44 + - 68 * + CAST ( NULL AS INTEGER ) + 74 THEN COUNT ( * ) * + 53 + + CASE - 13 WHEN ( 6 ) THEN - CAST ( NULL AS INTEGER ) + 64 END * - COUNT ( * ) ELSE - 68 END
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT COUNT( DISTINCT - 24 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2192
SELECT COUNT ( DISTINCT - 24 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2193
SELECT ALL - CASE COUNT( * ) WHEN - - 4 * + 43 * 65 + + COUNT( * ) - + + 68 + + NULLIF ( - CAST( NULL AS SIGNED ), - + 80 + - 49 * COALESCE ( 36 * - 25, 81 ) ) + MAX( 1 ) / 68 THEN - 15 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2193
SELECT ALL - CASE COUNT ( * ) WHEN - - 4 * + 43 * 65 + + COUNT ( * ) - + + 68 + + NULLIF ( - CAST ( NULL AS INTEGER ), - + 80 + - 49 * COALESCE ( 36 * - 25, 81 ) ) + MAX ( 1 ) / 68 THEN - 15 END AS col0
----
NULL

query I rowsort
SELECT ALL 37 * - 93 - + 47 AS col2
----
-3488

query I rowsort
SELECT NULLIF ( ( - - 3 ), 78 ) * - 36 AS col0
----
-108

onlyif mysql # aggregate syntax: 
query II rowsort label-2196
SELECT ALL - 45 AS col1, - 1 + + 7 * + 41 + + NULLIF ( - 84, - 78 * - ( COALESCE ( + + COUNT( + ( + 78 ) ), COUNT( * ) ) ) - 62 ) * 87
----
-45
-7022

skipif mysql # not compatible
query II rowsort label-2196
SELECT ALL - 45 AS col1, - 1 + + 7 * + 41 + + NULLIF ( - 84, - 78 * - ( COALESCE ( + + COUNT ( + ( + 78 ) ), COUNT ( * ) ) ) - 62 ) * 87
----
-45
-7022

onlyif mysql # DIV for integer division: 
query I rowsort label-2197
SELECT 19 DIV - - 99 DIV 83 * - + 46
----
0

skipif mysql # not compatible
query I rowsort label-2197
SELECT 19 / - - 99 / 83 * - + 46
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2198
SELECT ALL + ( - 28 ) DIV COUNT( DISTINCT 83 ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-2198
SELECT ALL + ( - 28 ) / COUNT ( DISTINCT 83 ) AS col2
----
-28

query I rowsort
SELECT 25 * - - 75 AS col2
----
1875

onlyif mysql # aggregate syntax: 
query I rowsort label-2200
SELECT ALL + CASE - - 90 WHEN - - 2 - 2 - + COUNT( * ) THEN NULL WHEN 51 THEN 41 * 37 * - 4 END / MIN( - - 69 ) + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-2200
SELECT ALL + CASE - - 90 WHEN - - 2 - 2 - + COUNT ( * ) THEN NULL WHEN 51 THEN 41 * 37 * - 4 END / MIN ( - - 69 ) + 94
----
NULL

query II rowsort
SELECT DISTINCT + + 95 col0, - 87 * - 24 * 48 * - 16 AS col1
----
95
-1603584

query II rowsort
SELECT - 86 AS col1, 84 * 88 AS col0
----
-86
7392

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT - - COUNT( * ) * 43 + - + 94
----
-51

skipif mysql # not compatible
query I rowsort label-2203
SELECT - - COUNT ( * ) * 43 + - + 94
----
-51

onlyif mysql # DIV for integer division: 
query II rowsort label-2204
SELECT DISTINCT + - 61 col0, + 93 DIV + + 93
----
-61
1

skipif mysql # not compatible
query II rowsort label-2204
SELECT DISTINCT + - 61 col0, + 93 / + + 93
----
-61
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT DISTINCT - + MAX( DISTINCT 13 ) * - - COUNT( * ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-2205
SELECT DISTINCT - + MAX ( DISTINCT 13 ) * - - COUNT ( * ) AS col0
----
-13

query I rowsort
SELECT ALL - ( + 12 ) + - 36 AS col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT - COUNT( * ) - - + 38 col2
----
37

skipif mysql # not compatible
query I rowsort label-2207
SELECT - COUNT ( * ) - - + 38 col2
----
37

query I rowsort
SELECT ALL + 73 + + 1 AS col0
----
74

query II rowsort
SELECT + 26, + 69 + - 58 col2
----
26
11

query I rowsort
SELECT + 46 * 83 + 78
----
3896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2211
SELECT - CAST( NULL AS SIGNED ) * - - 92 * - 80 + - 90 + - 21 + - 71 / COUNT( DISTINCT + + 31 ) * 51 + 84 - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-2211
SELECT - CAST ( NULL AS INTEGER ) * - - 92 * - 80 + - 90 + - 21 + - 71 / COUNT ( DISTINCT + + 31 ) * 51 + 84 - 60
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2212
SELECT ALL - ( - + CASE - - CAST( NULL AS SIGNED ) WHEN + + 49 * + AVG ( DISTINCT + 88 ) + - 71 + - 42 THEN - - 41 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2212
SELECT ALL - ( - + CASE - - CAST ( NULL AS INTEGER ) WHEN + + 49 * + AVG ( DISTINCT + 88 ) + - 71 + - 42 THEN - - 41 ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2213
SELECT - 99 + - ( + 98 ) - + - NULLIF ( + 29, - + 7 - + MIN( ALL + 52 ) ) * - 24 * + + COALESCE ( - + CAST( NULL AS SIGNED ), 7 DIV 4 ) AS col2
----
-893

skipif mysql # not compatible
query I rowsort label-2213
SELECT - 99 + - ( + 98 ) - + - NULLIF ( + 29, - + 7 - + MIN ( ALL + 52 ) ) * - 24 * + + COALESCE ( - + CAST ( NULL AS INTEGER ), 7 / 4 ) AS col2
----
-893

query I rowsort
SELECT + - 13 - - + 43 AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2215
SELECT ALL + + COUNT( ALL 90 ) + + + 40 * + 81 + - 56
----
3185

skipif mysql # not compatible
query I rowsort label-2215
SELECT ALL + + COUNT ( ALL 90 ) + + + 40 * + 81 + - 56
----
3185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2216
SELECT - - 69 + - 98 * - - MIN( CAST( + - 60 AS SIGNED ) )
----
5949

skipif mysql # not compatible
query I rowsort label-2216
SELECT - - 69 + - 98 * - - MIN ( CAST ( + - 60 AS INTEGER ) )
----
5949

query I rowsort
SELECT - - NULLIF ( - 74, - 76 )
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2218
SELECT ALL + + 82 DIV + - 53 + + - COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-2218
SELECT ALL + + 82 / + - 53 + + - COUNT ( * ) AS col1
----
-2

query I rowsort
SELECT DISTINCT 96 * - 61 col2
----
-5856

query I rowsort
SELECT ALL 55 - + + 61 AS col1
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2221
SELECT + CAST( + 93 AS SIGNED ) + ( + 63 )
----
156

skipif mysql # not compatible
query I rowsort label-2221
SELECT + CAST ( + 93 AS INTEGER ) + ( + 63 )
----
156

query I rowsort
SELECT + 19 * NULLIF ( + 5, - 71 ) AS col0
----
95

query I rowsort
SELECT + 83 * + 47
----
3901

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2224
SELECT 74 / + 60 / 25 * 97 + - CASE + + CAST( NULL AS SIGNED ) WHEN + COUNT( * ) THEN - - COUNT( * ) WHEN - - 21 / + + 61 - + 23 THEN NULL ELSE + 26 / - COALESCE ( 76 / - 70 + - 65, 39 ) END / - CASE 30 WHEN + ( 18 ) * - 59 THEN - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2224
SELECT 74 / + 60 / 25 * 97 + - CASE + + CAST ( NULL AS INTEGER ) WHEN + COUNT ( * ) THEN - - COUNT ( * ) WHEN - - 21 / + + 61 - + 23 THEN NULL ELSE + 26 / - COALESCE ( 76 / - 70 + - 65, 39 ) END / - CASE 30 WHEN + ( 18 ) * - 59 THEN - CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2225
SELECT ALL COUNT( * ) DIV - 22
----
0

skipif mysql # not compatible
query I rowsort label-2225
SELECT ALL COUNT ( * ) / - 22
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2226
SELECT + ( - MIN( - + ( - + 60 ) ) ) * + - 42
----
2520

skipif mysql # not compatible
query I rowsort label-2226
SELECT + ( - MIN ( - + ( - + 60 ) ) ) * + - 42
----
2520

query I rowsort
SELECT - 70 * - + 57 + - + 24 * + 91
----
1806

query II rowsort
SELECT + NULLIF ( - 27, 40 + - 42 + + ( - - 41 ) + + 79 * 34 ) AS col0, 27 * + - ( 35 )
----
-27
-945

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT - 46 - - 25 * - + COUNT( 17 ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-2229
SELECT - 46 - - 25 * - + COUNT ( 17 ) AS col1
----
-71

query I rowsort
SELECT + + 49 + + + ( - ( 45 ) )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2231
SELECT ALL - COUNT( * ) * - 13 + + - COUNT( * ) + + COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-2231
SELECT ALL - COUNT ( * ) * - 13 + + - COUNT ( * ) + + COUNT ( * )
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2232
SELECT DISTINCT 46 * 81 + - 23 + + COUNT( - + 65 ) + + + COALESCE ( - 73, + 76 ) * - - 30 * 11 * - 16 - 63 DIV - NULLIF ( - 16, - 40 )
----
389141

skipif mysql # not compatible
query I rowsort label-2232
SELECT DISTINCT 46 * 81 + - 23 + + COUNT ( - + 65 ) + + + COALESCE ( - 73, + 76 ) * - - 30 * 11 * - 16 - 63 / - NULLIF ( - 16, - 40 )
----
389141

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2233
SELECT ALL + + ( + 95 ) * - + COUNT( DISTINCT + - 71 ) + + 91 AS col0, 84 + - + 64 DIV + 11 AS col0
----
-4
79

skipif mysql # not compatible
query II rowsort label-2233
SELECT ALL + + ( + 95 ) * - + COUNT ( DISTINCT + - 71 ) + + 91 AS col0, 84 + - + 64 / + 11 AS col0
----
-4
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2234
SELECT + CASE + + CAST( + 30 AS SIGNED ) WHEN - + 77 + + + ( + COUNT( * ) ) THEN - 41 + 36 + + - 75 + - - ( - ( + + 63 ) ) END + 79 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2234
SELECT + CASE + + CAST ( + 30 AS INTEGER ) WHEN - + 77 + + + ( + COUNT ( * ) ) THEN - 41 + 36 + + - 75 + - - ( - ( + + 63 ) ) END + 79 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2235
SELECT + + ( - 1 ) AS col0, - 68 * - - CAST( - CASE - CAST( 34 AS SIGNED ) WHEN - + COALESCE ( - 85, ( 39 ) ) THEN - ( 6 ) / 95 END AS SIGNED ) / - COALESCE ( - 91 * 43 + CASE 29 WHEN 22 + - 49 THEN 60 ELSE NULL END, - 85 + 29 ) + 18 AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-2235
SELECT + + ( - 1 ) AS col0, - 68 * - - CAST ( - CASE - CAST ( 34 AS INTEGER ) WHEN - + COALESCE ( - 85, ( 39 ) ) THEN - ( 6 ) / 95 END AS INTEGER ) / - COALESCE ( - 91 * 43 + CASE 29 WHEN 22 + - 49 THEN 60 ELSE NULL END, - 85 + 29 ) + 18 AS col2
----
-1
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2236
SELECT ALL + + 67 * - - COUNT( * ) + + COUNT( * ), + 68
----
68
68

skipif mysql # not compatible
query II rowsort label-2236
SELECT ALL + + 67 * - - COUNT ( * ) + + COUNT ( * ), + 68
----
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2237
SELECT ALL 14 * + - ( - 54 ) + + 95 - - NULLIF ( + 65, - 92 + + 56 ) * NULLIF ( + ( + - 4 ), COUNT( * ) ) + - 64
----
527

skipif mysql # not compatible
query I rowsort label-2237
SELECT ALL 14 * + - ( - 54 ) + + 95 - - NULLIF ( + 65, - 92 + + 56 ) * NULLIF ( + ( + - 4 ), COUNT ( * ) ) + - 64
----
527

onlyif mysql # aggregate syntax: 
query I rowsort label-2238
SELECT - COUNT( * ) + + COUNT( DISTINCT + 87 )
----
0

skipif mysql # not compatible
query I rowsort label-2238
SELECT - COUNT ( * ) + + COUNT ( DISTINCT + 87 )
----
0

query I rowsort
SELECT - - 17 * + - 19 AS col2
----
-323

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT - + 42 + COUNT( * ) col1
----
-41

skipif mysql # not compatible
query I rowsort label-2240
SELECT - + 42 + COUNT ( * ) col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT ALL - 82 * + 54 * - COUNT( * ) - 92 AS col2
----
4336

skipif mysql # not compatible
query I rowsort label-2241
SELECT ALL - 82 * + 54 * - COUNT ( * ) - 92 AS col2
----
4336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2242
SELECT ALL - CAST( 75 AS SIGNED ) col1
----
-75

skipif mysql # not compatible
query I rowsort label-2242
SELECT ALL - CAST ( 75 AS INTEGER ) col1
----
-75

query I rowsort
SELECT - 19 * - 85 AS col1
----
1615

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2244
SELECT DISTINCT + + ( - CAST( NULL AS DECIMAL ) ) - + 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2244
SELECT DISTINCT + + ( - CAST ( NULL AS REAL ) ) - + 48 AS col1
----
NULL

query II rowsort
SELECT - + 90 + + 67 AS col2, + 14 + + 51 * - 90 + - - 89
----
-23
-4487

query I rowsort
SELECT ALL + 13 - - 25
----
38

query I rowsort
SELECT - 67 * 66 AS col1
----
-4422

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2248
SELECT - 37 - - + 69 + + + COALESCE ( - 69, + CASE + 97 WHEN - - 1 THEN COUNT( + + 74 ) WHEN + + CASE - SUM( 33 ) WHEN - 1 + + 44 THEN NULLIF ( 90, - 76 + 96 ) WHEN 65 / + 99 + 5 THEN - COALESCE ( 25, + 90 ) END THEN NULL END ) + - 69 * + CAST( NULL AS SIGNED ) * + 94 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2248
SELECT - 37 - - + 69 + + + COALESCE ( - 69, + CASE + 97 WHEN - - 1 THEN COUNT ( + + 74 ) WHEN + + CASE - SUM ( 33 ) WHEN - 1 + + 44 THEN NULLIF ( 90, - 76 + 96 ) WHEN 65 / + 99 + 5 THEN - COALESCE ( 25, + 90 ) END THEN NULL END ) + - 69 * + CAST ( NULL AS INTEGER ) * + 94 AS col2
----
NULL

query I rowsort
SELECT - ( 35 ) - 57
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-2250
SELECT + 19 DIV - 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2250
SELECT + 19 / - 83 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2251
SELECT - CAST( NULL AS SIGNED ) * + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-2251
SELECT - CAST ( NULL AS INTEGER ) * + 48
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2252
SELECT DISTINCT + 69 DIV 53 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2252
SELECT DISTINCT + 69 / 53 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2253
SELECT DISTINCT - 69 DIV - - 55
----
-1

skipif mysql # not compatible
query I rowsort label-2253
SELECT DISTINCT - 69 / - - 55
----
-1

query I rowsort
SELECT + 77 + 24 + + - 16 AS col1
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2255
SELECT 28 - - COUNT( * ) + - + 71 AS col2, + 13 + - + 13 DIV + 73
----
-42
13

skipif mysql # not compatible
query II rowsort label-2255
SELECT 28 - - COUNT ( * ) + - + 71 AS col2, + 13 + - + 13 / + 73
----
-42
13

query I rowsort
SELECT ALL - 51 * - 99 AS col1
----
5049

onlyif mysql # DIV for integer division: 
query I rowsort label-2257
SELECT 35 DIV + 18
----
1

skipif mysql # not compatible
query I rowsort label-2257
SELECT 35 / + 18
----
1

query I rowsort
SELECT 6 * - 97 AS col0
----
-582

query II rowsort
SELECT 74 AS col0, 73 + 46
----
74
119

onlyif mysql # aggregate syntax: 
query I rowsort label-2260
SELECT COUNT( * ) * 79 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-2260
SELECT COUNT ( * ) * 79 AS col0
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2261
SELECT ALL 18 + CAST( + AVG ( ALL ( + 46 ) ) AS SIGNED ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-2261
SELECT ALL 18 + CAST ( + AVG ( ALL ( + 46 ) ) AS INTEGER ) AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT ALL + COUNT( * ) + + 60 + + 14
----
75

skipif mysql # not compatible
query I rowsort label-2262
SELECT ALL + COUNT ( * ) + + 60 + + 14
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2263
SELECT ALL - - CASE - - COUNT( ALL 27 ) WHEN - 75 * + NULLIF ( + + 80, COUNT( * ) ) THEN + + 70 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2263
SELECT ALL - - CASE - - COUNT ( ALL 27 ) WHEN - 75 * + NULLIF ( + + 80, COUNT ( * ) ) THEN + + 70 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2264
SELECT + 1 * + CAST( NULL AS SIGNED ) + 15 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2264
SELECT + 1 * + CAST ( NULL AS INTEGER ) + 15 + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - 49 * - 86 - - 31
----
4245

query I rowsort
SELECT DISTINCT 80 * - 68
----
-5440

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT + 61 * - 0 * + + 94 - + + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-2267
SELECT + 61 * - 0 * + + 94 - + + COUNT ( * )
----
-1

query I rowsort
SELECT 76 * 14 + + - ( + 61 ) AS col0
----
1003

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2269
SELECT ALL 64 * + CAST( NULL AS SIGNED ) - - + 96 + + 1 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2269
SELECT ALL 64 * + CAST ( NULL AS INTEGER ) - - + 96 + + 1 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2270
SELECT DISTINCT - + COUNT( * ) AS col2, 42 + 47 col0
----
-1
89

skipif mysql # not compatible
query II rowsort label-2270
SELECT DISTINCT - + COUNT ( * ) AS col2, 42 + 47 col0
----
-1
89

query I rowsort
SELECT + 17 - - + 30 AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT COUNT( * ) - - NULLIF ( + 44, + + COUNT( * ) * - 88 ) col0
----
45

skipif mysql # not compatible
query I rowsort label-2272
SELECT COUNT ( * ) - - NULLIF ( + 44, + + COUNT ( * ) * - 88 ) col0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2273
SELECT CAST( NULL AS SIGNED ) / - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-2273
SELECT CAST ( NULL AS INTEGER ) / - 71
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2274
SELECT 78 * 35 DIV 40 * 58 AS col0
----
3944

skipif mysql # not compatible
query I rowsort label-2274
SELECT 78 * 35 / 40 * 58 AS col0
----
3944

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2275
SELECT DISTINCT 9 DIV MIN( + 28 ) AS col2, COUNT( + + 44 ) AS col0
----
0
1

skipif mysql # not compatible
query II rowsort label-2275
SELECT DISTINCT 9 / MIN ( + 28 ) AS col2, COUNT ( + + 44 ) AS col0
----
0
1

query I rowsort
SELECT 10 * + ( - 48 ) AS col0
----
-480

query II rowsort
SELECT ALL - 55 * + - 48, 58 AS col0
----
2640
58

query II rowsort
SELECT 84 + 94, - 64 col0
----
178
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2279
SELECT ALL + 82 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2279
SELECT ALL + 82 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2280
SELECT ALL - CAST( NULL AS SIGNED ) + MAX( - + 74 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2280
SELECT ALL - CAST ( NULL AS INTEGER ) + MAX ( - + 74 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2281
SELECT 19 + + 5 + - + ( - + 64 ) * - COUNT( * ) - - 75 - 52 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-2281
SELECT 19 + + 5 + - + ( - + 64 ) * - COUNT ( * ) - - 75 - 52 AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2282
SELECT ALL + SUM( ALL - + 43 ) * - 47 col1
----
2021

skipif mysql # not compatible
query I rowsort label-2282
SELECT ALL + SUM ( ALL - + 43 ) * - 47 col1
----
2021

query I rowsort
SELECT DISTINCT - 28 + - + 83 * - - 42 AS col2
----
-3514

query I rowsort
SELECT 28 + - 60 AS col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2285
SELECT ALL + COUNT( * ) + ( + 51 ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-2285
SELECT ALL + COUNT ( * ) + ( + 51 ) AS col0
----
52

query I rowsort
SELECT 15 + 53 AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2287
SELECT 25 + CASE + MIN( DISTINCT + - 74 ) WHEN - 2 THEN - 87 * - + 10 * + 88 + + 30 WHEN + COUNT( * ) * + COUNT( * ) THEN - 36 / 27 WHEN + 33 THEN NULL ELSE NULL END + - 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2287
SELECT 25 + CASE + MIN ( DISTINCT + - 74 ) WHEN - 2 THEN - 87 * - + 10 * + 88 + + 30 WHEN + COUNT ( * ) * + COUNT ( * ) THEN - 36 / 27 WHEN + 33 THEN NULL ELSE NULL END + - 12 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2288
SELECT ALL + 11 + ( ( COALESCE ( + CASE - + 65 WHEN + - NULLIF ( + NULLIF ( - 7, - 80 * - 30 ), - + 46 ) THEN + 18 WHEN + 9 THEN + 87 END, - NULLIF ( 45, + COUNT( * ) ) DIV - 97, 25 * 18 ) ) ) * + 22 col1
----
11

skipif mysql # not compatible
query I rowsort label-2288
SELECT ALL + 11 + ( ( COALESCE ( + CASE - + 65 WHEN + - NULLIF ( + NULLIF ( - 7, - 80 * - 30 ), - + 46 ) THEN + 18 WHEN + 9 THEN + 87 END, - NULLIF ( 45, + COUNT ( * ) ) / - 97, 25 * 18 ) ) ) * + 22 col1
----
11

query II rowsort
SELECT DISTINCT - ( + - 98 ), 48 * + - 55 col0
----
98
-2640

onlyif mysql # DIV for integer division: 
query II rowsort label-2290
SELECT DISTINCT - 39 DIV + + 23 AS col1, 20 + - + 16
----
-1
4

skipif mysql # not compatible
query II rowsort label-2290
SELECT DISTINCT - 39 / + + 23 AS col1, 20 + - + 16
----
-1
4

query II rowsort
SELECT + + 31 * + - 17 * + CASE - 28 WHEN - ( + 39 ) THEN - 20 ELSE - + 35 END + 28 - + + 69 - + 57 - + 59, 22 AS col0
----
18288
22

query I rowsort
SELECT ALL - 77 * 88
----
-6776

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT - COALESCE ( + 67, CASE WHEN NULL IS NOT NULL THEN COUNT( * ) WHEN NOT - 98 - 61 / + + 90 IS NULL THEN 23 ELSE - ( - 75 ) END + 75 + - 12 ) - 43
----
-110

skipif mysql # not compatible
query I rowsort label-2293
SELECT - COALESCE ( + 67, CASE WHEN NULL IS NOT NULL THEN COUNT ( * ) WHEN NOT - 98 - 61 / + + 90 IS NULL THEN 23 ELSE - ( - 75 ) END + 75 + - 12 ) - 43
----
-110

onlyif mysql # aggregate syntax: 
query II rowsort label-2294
SELECT 14 * + COUNT( * ) AS col1, 32 + 31 AS col0
----
14
63

skipif mysql # not compatible
query II rowsort label-2294
SELECT 14 * + COUNT ( * ) AS col1, 32 + 31 AS col0
----
14
63

onlyif mysql # DIV for integer division: 
query I rowsort label-2295
SELECT - 26 * 31 + 51 - + 92 DIV - 55 AS col1
----
-754

skipif mysql # not compatible
query I rowsort label-2295
SELECT - 26 * 31 + 51 - + 92 / - 55 AS col1
----
-754

onlyif mysql # aggregate syntax: 
query I rowsort label-2296
SELECT ALL + COUNT( * ) * - 38 * 69 AS col2
----
-2622

skipif mysql # not compatible
query I rowsort label-2296
SELECT ALL + COUNT ( * ) * - 38 * 69 AS col2
----
-2622

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2297
SELECT 24 + - 58 * - 33 * + 14 DIV + COUNT( * ) + - 74
----
26746

skipif mysql # not compatible
query I rowsort label-2297
SELECT 24 + - 58 * - 33 * + 14 / + COUNT ( * ) + - 74
----
26746

onlyif mysql # DIV for integer division: 
query I rowsort label-2298
SELECT - 92 * + + 93 + + + 75 * - 72 + + 63 - - - 28 + 39 DIV + 29 + - 68 * - 34 + + 32
----
-11576

skipif mysql # not compatible
query I rowsort label-2298
SELECT - 92 * + + 93 + + + 75 * - 72 + + 63 - - - 28 + 39 / + 29 + - 68 * - 34 + + 32
----
-11576

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2299
SELECT + 46 * 24 + 34 * + 13 + + COUNT( * ) * + + 81 * 46 DIV 62 AS col1
----
1606

skipif mysql # not compatible
query I rowsort label-2299
SELECT + 46 * 24 + 34 * + 13 + + COUNT ( * ) * + + 81 * 46 / 62 AS col1
----
1606

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT + 58 * - CASE + 82 WHEN - 69 * SUM( DISTINCT + + 13 ) THEN COALESCE ( - + 27, SUM( DISTINCT - 73 ) ) - COUNT( * ) WHEN - COUNT( * ) THEN + 90 END * - 30 + - 91 * 34 + - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-2300
SELECT + 58 * - CASE + 82 WHEN - 69 * SUM ( DISTINCT + + 13 ) THEN COALESCE ( - + 27, SUM ( DISTINCT - 73 ) ) - COUNT ( * ) WHEN - COUNT ( * ) THEN + 90 END * - 30 + - 91 * 34 + - 12
----
NULL

query I rowsort
SELECT + 59 * + 65 * - - 94 + - 9
----
360481

query I rowsort
SELECT ALL 98 * 95
----
9310

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2303
SELECT 93 DIV 49 + + 14 + + COUNT( * ) + 26 * 45 + - 48 AS col0
----
1138

skipif mysql # not compatible
query I rowsort label-2303
SELECT 93 / 49 + + 14 + + COUNT ( * ) + 26 * 45 + - 48 AS col0
----
1138

query I rowsort
SELECT DISTINCT - 77 * 50 + + 74
----
-3776

query II rowsort
SELECT ALL 73 AS col1, + 49 AS col2
----
73
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2306
SELECT - COUNT( 52 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2306
SELECT - COUNT ( 52 ) AS col2
----
-1

query I rowsort
SELECT ALL 96 * - - 34
----
3264

query I rowsort
SELECT DISTINCT 19 + 41 * + 52 AS col1
----
2151

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2309
SELECT ALL - COALESCE ( 23, + 66, CASE + - 41 WHEN + - 9 + + 80 THEN CASE + COUNT( * ) WHEN + 18 * - ( + 37 ) + + - MAX( - 58 ) + + + 26 THEN 65 ELSE NULL END WHEN + 38 THEN + 4 * - 80 + + 15 END DIV + 21 ) + 32
----
9

skipif mysql # not compatible
query I rowsort label-2309
SELECT ALL - COALESCE ( 23, + 66, CASE + - 41 WHEN + - 9 + + 80 THEN CASE + COUNT ( * ) WHEN + 18 * - ( + 37 ) + + - MAX ( - 58 ) + + + 26 THEN 65 ELSE NULL END WHEN + 38 THEN + 4 * - 80 + + 15 END / + 21 ) + 32
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT DISTINCT COALESCE ( - 75, - - MIN( ALL 25 ) + + 18 ) + 71
----
-4

skipif mysql # not compatible
query I rowsort label-2310
SELECT DISTINCT COALESCE ( - 75, - - MIN ( ALL 25 ) + + 18 ) + 71
----
-4

query II rowsort
SELECT 64 AS col1, 82 AS col0
----
64
82

query II rowsort
SELECT ALL ( + ( - 86 ) ) + - 18 + - 62, - ( - - 94 ) AS col1
----
-166
-94

query I rowsort
SELECT + 24 - 39 + - COALESCE ( ( + 29 ), - 28 )
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-2314
SELECT + 41 DIV + + 86
----
0

skipif mysql # not compatible
query I rowsort label-2314
SELECT + 41 / + + 86
----
0

query I rowsort
SELECT + 0 - + - COALESCE ( - 97, - - 1 )
----
-97

query II rowsort
SELECT 99 AS col1, ( - 59 ) + - 35 - + 83
----
99
-177

query I rowsort
SELECT ALL 76 * + + 72 AS col1
----
5472

onlyif mysql # aggregate syntax: 
query I rowsort label-2318
SELECT DISTINCT NULLIF ( + + COUNT( * ), + - 93 - + 35 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2318
SELECT DISTINCT NULLIF ( + + COUNT ( * ), + - 93 - + 35 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2319
SELECT ALL + 90 - CAST( + + ( 50 ) AS SIGNED ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-2319
SELECT ALL + 90 - CAST ( + + ( 50 ) AS INTEGER ) AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT ALL + MIN( - 28 ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-2320
SELECT ALL + MIN ( - 28 ) AS col2
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2321
SELECT + + 10 / - - 53 - - CAST( NULL AS SIGNED ) + + - 91 * 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2321
SELECT + + 10 / - - 53 - - CAST ( NULL AS INTEGER ) + + - 91 * 57 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2322
SELECT + 86 / + - 15 * + CAST( NULL AS SIGNED ) + - ( - 77 ) + - 59 * + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-2322
SELECT + 86 / + - 15 * + CAST ( NULL AS INTEGER ) + - ( - 77 ) + - 59 * + 41
----
NULL

query I rowsort
SELECT ALL + + ( 58 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT DISTINCT + COUNT( * ) * - 58 + - 50 - - 15
----
-93

skipif mysql # not compatible
query I rowsort label-2324
SELECT DISTINCT + COUNT ( * ) * - 58 + - 50 - - 15
----
-93

query II rowsort
SELECT + + 62 AS col0, - 10 AS col0
----
62
-10

onlyif mysql # DIV for integer division: 
query II rowsort label-2326
SELECT + 24, - 26 DIV - + 88 col0
----
24
0

skipif mysql # not compatible
query II rowsort label-2326
SELECT + 24, - 26 / - + 88 col0
----
24
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2327
SELECT - 43 DIV - 5 - - - 51 * - - NULLIF ( + 70, 27 + + + 54 - AVG ( ALL 24 ) )
----
-3562

skipif mysql # not compatible
query I rowsort label-2327
SELECT - 43 / - 5 - - - 51 * - - NULLIF ( + 70, 27 + + + 54 - AVG ( ALL 24 ) )
----
-3562

query I rowsort
SELECT + 13 * - 25 AS col0
----
-325

query I rowsort
SELECT ALL + ( - + 30 ) * - 40 + 15
----
1215

query I rowsort
SELECT - 52 - + 60
----
-112

onlyif mysql # aggregate syntax: 
query II rowsort label-2331
SELECT + ( COUNT( * ) ) * + 77 * + - 86 * 54 AS col0, 41
----
-357588
41

skipif mysql # not compatible
query II rowsort label-2331
SELECT + ( COUNT ( * ) ) * + 77 * + - 86 * 54 AS col0, 41
----
-357588
41

query I rowsort
SELECT DISTINCT - 0 * - 20 AS col2
----
0

query I rowsort
SELECT 19 * 61 - + 38 * - 20 + - + 10
----
1909

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT ALL 86 * - COUNT( * ) + 23 + + - 63 - MIN( - 83 )
----
-43

skipif mysql # not compatible
query I rowsort label-2334
SELECT ALL 86 * - COUNT ( * ) + 23 + + - 63 - MIN ( - 83 )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2335
SELECT + 60 - - COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-2335
SELECT + 60 - - COUNT ( * )
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2336
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, + 59 * 9 AS col1
----
NULL
531

skipif mysql # not compatible
query II rowsort label-2336
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, + 59 * 9 AS col1
----
NULL
531

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT COUNT( * ) * + 11 + + SUM( DISTINCT 3 ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-2337
SELECT COUNT ( * ) * + 11 + + SUM ( DISTINCT 3 ) AS col1
----
14

query I rowsort
SELECT + 36 + 41 AS col0
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-2339
SELECT - COUNT( * ) AS col1, ( - - 44 ) + + COUNT( * ) * 48 * - - 3 AS col0
----
-1
188

skipif mysql # not compatible
query II rowsort label-2339
SELECT - COUNT ( * ) AS col1, ( - - 44 ) + + COUNT ( * ) * 48 * - - 3 AS col0
----
-1
188

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT MAX( - ( + 89 ) )
----
-89

skipif mysql # not compatible
query I rowsort label-2340
SELECT MAX ( - ( + 89 ) )
----
-89

query I rowsort
SELECT ALL ( 42 ) + - 60 - 66 AS col0
----
-84

query I rowsort
SELECT - 24 + + 20
----
-4

query I rowsort
SELECT - ( ( + - 45 ) ) AS col0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2344
SELECT + 0 + + - 64 + - + 9 * + CAST( NULL AS SIGNED ) * - 46 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2344
SELECT + 0 + + - 64 + - + 9 * + CAST ( NULL AS INTEGER ) * - 46 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT 56 * + - COUNT( * ) * - MAX( + 66 ) - - - 33 col0
----
3663

skipif mysql # not compatible
query I rowsort label-2345
SELECT 56 * + - COUNT ( * ) * - MAX ( + 66 ) - - - 33 col0
----
3663

query II rowsort
SELECT DISTINCT 0 AS col1, 54 col0
----
0
54

query I rowsort
SELECT + 77 + - 25 AS col0
----
52

query II rowsort
SELECT + 70 * - + 32 AS col1, 46 * 22
----
-2240
1012

query I rowsort
SELECT - ( 22 ) col0
----
-22

query I rowsort
SELECT + 47 + + 32 AS col2
----
79

query I rowsort
SELECT + NULLIF ( + - 49, + 10 ) + + 14
----
-35

query I rowsort
SELECT ALL ( - 55 ) - 23 col2
----
-78

query I rowsort
SELECT + NULLIF ( - 39, + 34 ) * - 60 AS col1
----
2340

query I rowsort
SELECT + - 39 + + + 49 + + - 67 + 0 * + 57 * - 78 AS col2
----
-57

query I rowsort
SELECT + 11 * + 33 AS col1
----
363

onlyif mysql # aggregate syntax: 
query I rowsort label-2356
SELECT + - SUM( ALL + 69 ) + - 24 + - 88 + 70
----
-111

skipif mysql # not compatible
query I rowsort label-2356
SELECT + - SUM ( ALL + 69 ) + - 24 + - 88 + 70
----
-111

query I rowsort
SELECT ALL - NULLIF ( + 95, + - 3 ) AS col2
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2358
SELECT DISTINCT + - COALESCE ( + + CAST( NULL AS SIGNED ), + 30 ) col1
----
-30

skipif mysql # not compatible
query I rowsort label-2358
SELECT DISTINCT + - COALESCE ( + + CAST ( NULL AS INTEGER ), + 30 ) col1
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2359
SELECT ALL - 3 * + CAST( 40 AS SIGNED )
----
-120

skipif mysql # not compatible
query I rowsort label-2359
SELECT ALL - 3 * + CAST ( 40 AS INTEGER )
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT MIN( + 10 ) * - 50 - + COUNT( * ) + + - 96 AS col2
----
-597

skipif mysql # not compatible
query I rowsort label-2360
SELECT MIN ( + 10 ) * - 50 - + COUNT ( * ) + + - 96 AS col2
----
-597

query II rowsort
SELECT DISTINCT + 5, 62 AS col1
----
5
62

query I rowsort
SELECT DISTINCT + 76 * 81
----
6156

query II rowsort
SELECT - 97, 68 * 81 AS col2
----
-97
5508

query I rowsort
SELECT + 14 * + + 58 AS col2
----
812

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2365
SELECT ALL - COALESCE ( + CASE - COUNT( + + 0 ) WHEN 11 DIV + 75 THEN 30 ELSE NULL END, + COUNT( * ) * 48 + + 50 ) * ( - 17 ) DIV MIN( DISTINCT 92 ) * + - 0 + + COALESCE ( ( 76 ), 26 * - 29 + - 62 ) * - 76
----
-5776

skipif mysql # not compatible
query I rowsort label-2365
SELECT ALL - COALESCE ( + CASE - COUNT ( + + 0 ) WHEN 11 / + 75 THEN 30 ELSE NULL END, + COUNT ( * ) * 48 + + 50 ) * ( - 17 ) / MIN ( DISTINCT 92 ) * + - 0 + + COALESCE ( ( 76 ), 26 * - 29 + - 62 ) * - 76
----
-5776

query II rowsort
SELECT DISTINCT + 74 AS col1, + 53 AS col0
----
74
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2367
SELECT - - ( - CAST( - 20 AS SIGNED ) ) * + 22 + - 91 DIV + COUNT( DISTINCT 23 )
----
349

skipif mysql # not compatible
query I rowsort label-2367
SELECT - - ( - CAST ( - 20 AS INTEGER ) ) * + 22 + - 91 / + COUNT ( DISTINCT 23 )
----
349

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2368
SELECT + COALESCE ( + COALESCE ( 1, - ( - 93 ) + - 65 ), + 61, 77 * - NULLIF ( + + 33, + 90 ) + + CAST( NULL AS SIGNED ) DIV 39 )
----
1

skipif mysql # not compatible
query I rowsort label-2368
SELECT + COALESCE ( + COALESCE ( 1, - ( - 93 ) + - 65 ), + 61, 77 * - NULLIF ( + + 33, + 90 ) + + CAST ( NULL AS INTEGER ) / 39 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2369
SELECT ALL 91 DIV + + 29 + + + ( + + 29 )
----
32

skipif mysql # not compatible
query I rowsort label-2369
SELECT ALL 91 / + + 29 + + + ( + + 29 )
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2370
SELECT DISTINCT 29 DIV + - 65 + + - COUNT( * ) + + - 27 AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-2370
SELECT DISTINCT 29 / + - 65 + + - COUNT ( * ) + + - 27 AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2371
SELECT 25 * + CASE + 84 WHEN + 68 + + - 46 THEN - COUNT( * ) ELSE + COUNT( * ) END AS col0
----
25

skipif mysql # not compatible
query I rowsort label-2371
SELECT 25 * + CASE + 84 WHEN + 68 + + - 46 THEN - COUNT ( * ) ELSE + COUNT ( * ) END AS col0
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2372
SELECT 24 * + 68 * + CAST( NULL AS SIGNED ) col0, + NULLIF ( - ( - COUNT( * ) ), 27 )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2372
SELECT 24 * + 68 * + CAST ( NULL AS INTEGER ) col0, + NULLIF ( - ( - COUNT ( * ) ), 27 )
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2373
SELECT ALL 23 * + + COUNT( * ) * + 88 AS col0
----
2024

skipif mysql # not compatible
query I rowsort label-2373
SELECT ALL 23 * + + COUNT ( * ) * + 88 AS col0
----
2024

onlyif mysql # aggregate syntax: 
query I rowsort label-2374
SELECT DISTINCT - MAX( - - ( - 57 ) )
----
57

skipif mysql # not compatible
query I rowsort label-2374
SELECT DISTINCT - MAX ( - - ( - 57 ) )
----
57

query I rowsort
SELECT + 9 - + - 13 col1
----
22

query I rowsort
SELECT DISTINCT - 66 * - 62 - 18
----
4074

query I rowsort
SELECT 99 * + 91 AS col2
----
9009

query I rowsort
SELECT ALL + - 31 * - 43
----
1333

onlyif mysql # aggregate syntax: 
query I rowsort label-2379
SELECT - - NULLIF ( - CASE - AVG ( 19 ) WHEN MIN( ALL - 76 ) * + MIN( DISTINCT - + 68 ) + 99 * - 10 + - 18 * COUNT( * ) THEN - 23 + + ( + 19 ) WHEN - - NULLIF ( - 81, 29 ) + COUNT( * ) * - COUNT( * ) THEN 25 * 60 END, 59 - + 79 * 59 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2379
SELECT - - NULLIF ( - CASE - AVG ( 19 ) WHEN MIN ( ALL - 76 ) * + MIN ( DISTINCT - + 68 ) + 99 * - 10 + - 18 * COUNT ( * ) THEN - 23 + + ( + 19 ) WHEN - - NULLIF ( - 81, 29 ) + COUNT ( * ) * - COUNT ( * ) THEN 25 * 60 END, 59 - + 79 * 59 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2380
SELECT + 68 * - - ( + 57 ) * + + 68 * + SUM( DISTINCT + 65 )
----
17131920

skipif mysql # not compatible
query I rowsort label-2380
SELECT + 68 * - - ( + 57 ) * + + 68 * + SUM ( DISTINCT + 65 )
----
17131920

query I rowsort
SELECT ALL + 72 + 63
----
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2382
SELECT + CAST( NULL AS SIGNED ) / - 77 + - - COUNT( * ) + - 7 * + 95 * + + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-2382
SELECT + CAST ( NULL AS INTEGER ) / - 77 + - - COUNT ( * ) + - 7 * + 95 * + + 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2383
SELECT ALL + COUNT( * ) + + 37 * - 15 AS col1
----
-554

skipif mysql # not compatible
query I rowsort label-2383
SELECT ALL + COUNT ( * ) + + 37 * - 15 AS col1
----
-554

onlyif mysql # DIV for integer division: 
query I rowsort label-2384
SELECT - 34 DIV + 5 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-2384
SELECT - 34 / + 5 AS col1
----
-6

query I rowsort
SELECT - 4 + 57 + + - 30
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-2386
SELECT 47 * 88 DIV + - 98
----
-42

skipif mysql # not compatible
query I rowsort label-2386
SELECT 47 * 88 / + - 98
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2387
SELECT ALL MAX( + + 92 ) + 94 AS col0
----
186

skipif mysql # not compatible
query I rowsort label-2387
SELECT ALL MAX ( + + 92 ) + 94 AS col0
----
186

query I rowsort
SELECT NULLIF ( - + 30, 57 * 54 ) col1
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2389
SELECT DISTINCT + 98 + NULLIF ( 21, + NULLIF ( - CAST( NULL AS SIGNED ), AVG ( 91 ) ) ) * + 53
----
1211

skipif mysql # not compatible
query I rowsort label-2389
SELECT DISTINCT + 98 + NULLIF ( 21, + NULLIF ( - CAST ( NULL AS INTEGER ), AVG ( 91 ) ) ) * + 53
----
1211

query I rowsort
SELECT ALL - - ( + - 11 ) AS col2
----
-11

query II rowsort
SELECT ALL - 70 + + 47 col1, - 30 + - 49 AS col1
----
-23
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-2392
SELECT 56 * + + COUNT( * ) * 53 - + ( - 22 ) + + NULLIF ( 30, + 50 ) AS col2, + COUNT( * ) AS col0
----
3020
1

skipif mysql # not compatible
query II rowsort label-2392
SELECT 56 * + + COUNT ( * ) * 53 - + ( - 22 ) + + NULLIF ( 30, + 50 ) AS col2, + COUNT ( * ) AS col0
----
3020
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2393
SELECT 80 AS col0, 54 * + COUNT( * ) col1
----
80
54

skipif mysql # not compatible
query II rowsort label-2393
SELECT 80 AS col0, 54 * + COUNT ( * ) col1
----
80
54

query I rowsort
SELECT 45 * 23
----
1035

onlyif mysql # aggregate syntax: 
query I rowsort label-2395
SELECT ALL - CASE + - 21 WHEN + 63 THEN - + 48 / - 23 + + - 34 + - + 82 * - + COUNT( * ) * - 90 WHEN 18 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2395
SELECT ALL - CASE + - 21 WHEN + 63 THEN - + 48 / - 23 + + - 34 + - + 82 * - + COUNT ( * ) * - 90 WHEN 18 THEN NULL ELSE NULL END
----
NULL

query II rowsort
SELECT ALL - 83 col1, - 97
----
-83
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-2397
SELECT ALL 7 - - SUM( ALL - - 2 ) AS col2, 74 AS col2
----
9
74

skipif mysql # not compatible
query II rowsort label-2397
SELECT ALL 7 - - SUM ( ALL - - 2 ) AS col2, 74 AS col2
----
9
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT - NULLIF ( + 30, CASE 87 WHEN + 49 THEN NULL ELSE MAX( - 30 ) END ) * - 82 * - 64 + 68
----
-157372

skipif mysql # not compatible
query I rowsort label-2398
SELECT - NULLIF ( + 30, CASE 87 WHEN + 49 THEN NULL ELSE MAX ( - 30 ) END ) * - 82 * - 64 + 68
----
-157372

query II rowsort
SELECT 34 * + - 33 * + 85, 92 AS col0
----
-95370
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2400
SELECT MIN( 54 ) * 80 - - 76 * + - CAST( - CAST( - - 52 AS SIGNED ) AS SIGNED )
----
8272

skipif mysql # not compatible
query I rowsort label-2400
SELECT MIN ( 54 ) * 80 - - 76 * + - CAST ( - CAST ( - - 52 AS INTEGER ) AS INTEGER )
----
8272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2401
SELECT DISTINCT 49 AS col0, - CAST( - COUNT( * ) AS SIGNED ) * 43 AS col1
----
49
43

skipif mysql # not compatible
query II rowsort label-2401
SELECT DISTINCT 49 AS col0, - CAST ( - COUNT ( * ) AS INTEGER ) * 43 AS col1
----
49
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2402
SELECT ALL - CASE 22 WHEN - - 86 THEN - COALESCE ( + 24, + - 16, - - 79 ) + - + COUNT( * ) ELSE NULL END / + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2402
SELECT ALL - CASE 22 WHEN - - 86 THEN - COALESCE ( + 24, + - 16, - - 79 ) + - + COUNT ( * ) ELSE NULL END / + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT 24 * + + ( 21 ) AS col2
----
504

query I rowsort
SELECT 60 * - + 84 AS col1
----
-5040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2405
SELECT 63 + - - CAST( - 37 AS SIGNED ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-2405
SELECT 63 + - - CAST ( - 37 AS INTEGER ) AS col2
----
26

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2406
SELECT 3 * + - ( - MAX( ALL - + 71 ) ) + - - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2406
SELECT 3 * + - ( - MAX ( ALL - + 71 ) ) + - - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT 50 * - ( 5 ) AS col2
----
-250

onlyif mysql # aggregate syntax: 
query II rowsort label-2408
SELECT 53 + + 57 * - 16 + + 80 + - 26 + - 21 * 67 + + 37, COUNT( * ) AS col0
----
-2175
1

skipif mysql # not compatible
query II rowsort label-2408
SELECT 53 + + 57 * - 16 + + 80 + - 26 + - 21 * 67 + + 37, COUNT ( * ) AS col0
----
-2175
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2409
SELECT DISTINCT - CASE 68 WHEN + + 26 * - - 23 THEN + 11 WHEN + MAX( DISTINCT - 63 ) * 89 * + - ( 53 ) THEN - 57 ELSE NULL END * - 48 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2409
SELECT DISTINCT - CASE 68 WHEN + + 26 * - - 23 THEN + 11 WHEN + MAX ( DISTINCT - 63 ) * 89 * + - ( 53 ) THEN - 57 ELSE NULL END * - 48 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2410
SELECT DISTINCT ( - ( COUNT( * ) ) ), - COUNT( - 22 )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-2410
SELECT DISTINCT ( - ( COUNT ( * ) ) ), - COUNT ( - 22 )
----
-1
-1

query II rowsort
SELECT DISTINCT + 88, 15 AS col2
----
88
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2412
SELECT ALL CASE - 33 WHEN - CAST( + 77 AS DECIMAL ) THEN + COUNT( * ) * 37 + - 70 / - 13 WHEN + + 68 * + - 64 - + CASE 72 WHEN + 5 * - COUNT( * ) THEN + 33 * - + 57 + - 38 + + AVG ( - 31 ) + 10 / - 75 END THEN + NULLIF ( - CAST( + 89 AS SIGNED ), + 69 ) WHEN - 38 - 2 THEN 23 WHEN + COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2412
SELECT ALL CASE - 33 WHEN - CAST ( + 77 AS REAL ) THEN + COUNT ( * ) * 37 + - 70 / - 13 WHEN + + 68 * + - 64 - + CASE 72 WHEN + 5 * - COUNT ( * ) THEN + 33 * - + 57 + - 38 + + AVG ( - 31 ) + 10 / - 75 END THEN + NULLIF ( - CAST ( + 89 AS INTEGER ), + 69 ) WHEN - 38 - 2 THEN 23 WHEN + COUNT ( * ) THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT - CASE + 68 WHEN + 98 - - 76 - + + 18 * + + 16 THEN NULL WHEN + ( + 66 ) THEN 71 * + 9 * 86 + + 41 - 88 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2414
SELECT ALL + COUNT( * ) + SUM( ALL 59 )
----
60

skipif mysql # not compatible
query I rowsort label-2414
SELECT ALL + COUNT ( * ) + SUM ( ALL 59 )
----
60

query I rowsort
SELECT 24 + + 8 AS col0
----
32

query II rowsort
SELECT - 76, - 33 col2
----
-76
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2417
SELECT DISTINCT + COUNT( * ) + - - 99
----
100

skipif mysql # not compatible
query I rowsort label-2417
SELECT DISTINCT + COUNT ( * ) + - - 99
----
100

query I rowsort
SELECT - 32 + + 31
----
-1

query I rowsort
SELECT ALL - 60 + - - 86
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2420
SELECT DISTINCT - + 87 * + COALESCE ( + + COUNT( * ), 14, - + CASE + 51 WHEN + - 97 * - 46 DIV - 82 THEN NULL WHEN + + 19 * - AVG ( DISTINCT 13 ) THEN NULL WHEN ( - + 5 ) THEN 24 END + + CAST( - 48 AS SIGNED ) + ( - 28 ) * + ( 45 * 2 + COALESCE ( - 52, ( + 27 ) + - 81 ) ) ) + 26 DIV 83
----
-87

skipif mysql # not compatible
query I rowsort label-2420
SELECT DISTINCT - + 87 * + COALESCE ( + + COUNT ( * ), 14, - + CASE + 51 WHEN + - 97 * - 46 / - 82 THEN NULL WHEN + + 19 * - AVG ( DISTINCT 13 ) THEN NULL WHEN ( - + 5 ) THEN 24 END + + CAST ( - 48 AS INTEGER ) + ( - 28 ) * + ( 45 * 2 + COALESCE ( - 52, ( + 27 ) + - 81 ) ) ) + 26 / 83
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2421
SELECT ALL - + 15 AS col0, + 48 DIV + CASE 3 WHEN + 39 + - 13 * - CAST( 70 AS SIGNED ) + - - 27 - + CAST( NULL AS SIGNED ) THEN NULL WHEN 48 THEN NULL ELSE + 86 + + MIN( DISTINCT 9 ) END
----
-15
0

skipif mysql # not compatible
query II rowsort label-2421
SELECT ALL - + 15 AS col0, + 48 / + CASE 3 WHEN + 39 + - 13 * - CAST ( 70 AS INTEGER ) + - - 27 - + CAST ( NULL AS INTEGER ) THEN NULL WHEN 48 THEN NULL ELSE + 86 + + MIN ( DISTINCT 9 ) END
----
-15
0

query II rowsort
SELECT DISTINCT 61 * 72 + 40 AS col0, 63
----
4432
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2423
SELECT ALL + + CAST( NULL AS SIGNED ) AS col1, ( COUNT( * ) ) col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2423
SELECT ALL + + CAST ( NULL AS INTEGER ) AS col1, ( COUNT ( * ) ) col2
----
NULL
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2424
SELECT + - ( - 95 ) + - CAST( 73 AS SIGNED ) col2
----
22

skipif mysql # not compatible
query I rowsort label-2424
SELECT + - ( - 95 ) + - CAST ( 73 AS INTEGER ) col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2425
SELECT - 8 * + + MAX( 86 ) AS col1
----
-688

skipif mysql # not compatible
query I rowsort label-2425
SELECT - 8 * + + MAX ( 86 ) AS col1
----
-688

query I rowsort
SELECT 60 * 43 + - - 20
----
2600

query I rowsort
SELECT + 31 + + - 55 AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT + CASE + - COUNT( - 94 ) WHEN + 32 + - COUNT( * ) / - + MAX( 44 ) * + 29 * 61 THEN + 74 WHEN COUNT( * ) THEN - 85 * + 27 / - 19 ELSE + COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-2428
SELECT + CASE + - COUNT ( - 94 ) WHEN + 32 + - COUNT ( * ) / - + MAX ( 44 ) * + 29 * 61 THEN + 74 WHEN COUNT ( * ) THEN - 85 * + 27 / - 19 ELSE + COUNT ( * ) END
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2429
SELECT ALL - COUNT( * ) * - ( - 47 ) - MAX( DISTINCT + 62 ) - - - 90 AS col0
----
-199

skipif mysql # not compatible
query I rowsort label-2429
SELECT ALL - COUNT ( * ) * - ( - 47 ) - MAX ( DISTINCT + 62 ) - - - 90 AS col0
----
-199

onlyif mysql # aggregate syntax: 
query II rowsort label-2430
SELECT MAX( + 51 ), COALESCE ( 17, 49 ) AS col0
----
51
17

skipif mysql # not compatible
query II rowsort label-2430
SELECT MAX ( + 51 ), COALESCE ( 17, 49 ) AS col0
----
51
17

onlyif mysql # DIV for integer division: 
query I rowsort label-2431
SELECT + 95 DIV - 53
----
-1

skipif mysql # not compatible
query I rowsort label-2431
SELECT + 95 / - 53
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT + SUM( DISTINCT - ( - + 60 ) ) + - 26
----
34

skipif mysql # not compatible
query I rowsort label-2432
SELECT + SUM ( DISTINCT - ( - + 60 ) ) + - 26
----
34

query I rowsort
SELECT ALL + 89 * 91 AS col1
----
8099

query I rowsort
SELECT ALL + 18 * + 36 - + 11
----
637

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2435
SELECT + ( - COALESCE ( - 15, - - CAST( NULL AS SIGNED ) ) ), + MAX( DISTINCT 77 ) AS col0
----
15
77

skipif mysql # not compatible
query II rowsort label-2435
SELECT + ( - COALESCE ( - 15, - - CAST ( NULL AS INTEGER ) ) ), + MAX ( DISTINCT 77 ) AS col0
----
15
77

query I rowsort
SELECT - ( + NULLIF ( - 85, + 88 ) ) + + 99 - + + 86 * - 64
----
5688

onlyif mysql # aggregate syntax: 
query II rowsort label-2437
SELECT - 41 * 7 col0, - ( SUM( - 8 ) )
----
-287
8

skipif mysql # not compatible
query II rowsort label-2437
SELECT - 41 * 7 col0, - ( SUM ( - 8 ) )
----
-287
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2438
SELECT + CASE + 26 WHEN 65 THEN + + COALESCE ( COUNT( * ), - 11 * + 48 * - + 70 + 68 * 91, + + 35 * - ( - - CAST( NULL AS SIGNED ) ) + - SUM( + - 28 ) * - - ( + 8 ) * 1 ) WHEN + 13 / + COUNT( * ) THEN 13 WHEN 35 / CAST( NULL AS SIGNED ) THEN NULL ELSE + 41 + 75 END AS col2
----
116

skipif mysql # not compatible
query I rowsort label-2438
SELECT + CASE + 26 WHEN 65 THEN + + COALESCE ( COUNT ( * ), - 11 * + 48 * - + 70 + 68 * 91, + + 35 * - ( - - CAST ( NULL AS INTEGER ) ) + - SUM ( + - 28 ) * - - ( + 8 ) * 1 ) WHEN + 13 / + COUNT ( * ) THEN 13 WHEN 35 / CAST ( NULL AS INTEGER ) THEN NULL ELSE + 41 + 75 END AS col2
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-2439
SELECT - COALESCE ( + 73, COUNT( * ) ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-2439
SELECT - COALESCE ( + 73, COUNT ( * ) ) AS col0
----
-73

query I rowsort
SELECT ALL 94 * - 0 * + 5 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2441
SELECT + 5 * 94 DIV 23 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-2441
SELECT + 5 * 94 / 23 AS col2
----
20

query I rowsort
SELECT ALL 11 * + + 65 * + 51
----
36465

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2443
SELECT ALL CASE + 28 WHEN - NULLIF ( + 67, - - 20 ) THEN + 72 * + 90 WHEN - 86 THEN NULL ELSE + ( CAST( NULL AS SIGNED ) ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2443
SELECT ALL CASE + 28 WHEN - NULLIF ( + 67, - - 20 ) THEN + 72 * + 90 WHEN - 86 THEN NULL ELSE + ( CAST ( NULL AS INTEGER ) ) END col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2444
SELECT DISTINCT - 44 DIV 46
----
0

skipif mysql # not compatible
query I rowsort label-2444
SELECT DISTINCT - 44 / 46
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT ALL - COUNT( * ) * + + ( + + 62 ) + + 10
----
-52

skipif mysql # not compatible
query I rowsort label-2445
SELECT ALL - COUNT ( * ) * + + ( + + 62 ) + + 10
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2446
SELECT - 23 + SUM( + - 0 )
----
-23

skipif mysql # not compatible
query I rowsort label-2446
SELECT - 23 + SUM ( + - 0 )
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2447
SELECT - - COUNT( DISTINCT + 80 ) * - 91 * + - 25 * CAST( NULL AS SIGNED ) * + 6 * + 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2447
SELECT - - COUNT ( DISTINCT + 80 ) * - 91 * + - 25 * CAST ( NULL AS INTEGER ) * + 6 * + 89 AS col1
----
NULL

query I rowsort
SELECT ALL - - 64 + + - 45 AS col0
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2449
SELECT - 93 - + + 18 + + 22 DIV COUNT( DISTINCT - 76 ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-2449
SELECT - 93 - + + 18 + + 22 / COUNT ( DISTINCT - 76 ) AS col1
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2450
SELECT - - 75 * + + ( + CAST( NULL AS SIGNED ) ) * + 62 + + - COUNT( * ) + - - 48 - - ( COALESCE ( - + 67, - 16, - 76 ) ) * + - 14 * - COUNT( * ) + 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2450
SELECT - - 75 * + + ( + CAST ( NULL AS INTEGER ) ) * + 62 + + - COUNT ( * ) + - - 48 - - ( COALESCE ( - + 67, - 16, - 76 ) ) * + - 14 * - COUNT ( * ) + 88 AS col0
----
NULL

query I rowsort
SELECT - 7 - + - 89 + - 73 + - 83 * + + 90 AS col0
----
-7461

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2452
SELECT ALL - - CAST( 10 AS SIGNED ) + - 44
----
-34

skipif mysql # not compatible
query I rowsort label-2452
SELECT ALL - - CAST ( 10 AS INTEGER ) + - 44
----
-34

query I rowsort
SELECT DISTINCT - - 59 + + 5 * + + 36 AS col1
----
239

query II rowsort
SELECT ALL + 29 - - - 2 AS col2, - 1
----
27
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2455
SELECT DISTINCT + MAX( 35 ) col1, + 16 * - NULLIF ( 94, + 90 ) AS col1
----
35
-1504

skipif mysql # not compatible
query II rowsort label-2455
SELECT DISTINCT + MAX ( 35 ) col1, + 16 * - NULLIF ( 94, + 90 ) AS col1
----
35
-1504

onlyif mysql # aggregate syntax: 
query I rowsort label-2456
SELECT - 23 * COUNT( - + 51 ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-2456
SELECT - 23 * COUNT ( - + 51 ) AS col2
----
-23

query I rowsort
SELECT + 93 * + 17 AS col1
----
1581

onlyif mysql # aggregate syntax: 
query I rowsort label-2458
SELECT + MAX( ALL 36 ) col1
----
36

skipif mysql # not compatible
query I rowsort label-2458
SELECT + MAX ( ALL 36 ) col1
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2459
SELECT ALL - COALESCE ( + - CASE COUNT( * ) WHEN + - 38 THEN + 96 WHEN NULLIF ( + CAST( NULL AS SIGNED ), - + 93 ) + + COUNT( * ) THEN NULL END, + + 83 ) * 93 DIV - - NULLIF ( - 97, + 56 ) + - 75 + + 5 * + 19 * - 48 + COUNT( * ) AS col2
----
-4555

skipif mysql # not compatible
query I rowsort label-2459
SELECT ALL - COALESCE ( + - CASE COUNT ( * ) WHEN + - 38 THEN + 96 WHEN NULLIF ( + CAST ( NULL AS INTEGER ), - + 93 ) + + COUNT ( * ) THEN NULL END, + + 83 ) * 93 / - - NULLIF ( - 97, + 56 ) + - 75 + + 5 * + 19 * - 48 + COUNT ( * ) AS col2
----
-4555

query I rowsort
SELECT ALL - ( 67 ) * + 83 AS col0
----
-5561

onlyif mysql # aggregate syntax: 
query I rowsort label-2461
SELECT ( COALESCE ( COUNT( * ), 87 * - + 32 * + 47 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2461
SELECT ( COALESCE ( COUNT ( * ), 87 * - + 32 * + 47 ) ) AS col2
----
1

query I rowsort
SELECT + 24 * + 96 * - 94 AS col1
----
-216576

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2463
SELECT 30 * - COUNT( * ) + + - 50 * + - NULLIF ( CAST( NULL AS SIGNED ), + 27 * + MIN( ALL - + 23 ) + + 8 - 50 - + + 59 + + + NULLIF ( - - 76, 43 ) * + 6 * + + 87 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2463
SELECT 30 * - COUNT ( * ) + + - 50 * + - NULLIF ( CAST ( NULL AS INTEGER ), + 27 * + MIN ( ALL - + 23 ) + + 8 - 50 - + + 59 + + + NULLIF ( - - 76, 43 ) * + 6 * + + 87 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2464
SELECT + COUNT( * ) DIV + 45 col1
----
0

skipif mysql # not compatible
query I rowsort label-2464
SELECT + COUNT ( * ) / + 45 col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2465
SELECT + 68 * - 50 - 55 + + + MAX( - 71 ) + 23 DIV 98
----
-3526

skipif mysql # not compatible
query I rowsort label-2465
SELECT + 68 * - 50 - 55 + + + MAX ( - 71 ) + 23 / 98
----
-3526

onlyif mysql # DIV for integer division: 
query I rowsort label-2466
SELECT ALL 0 DIV 21
----
0

skipif mysql # not compatible
query I rowsort label-2466
SELECT ALL 0 / 21
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2467
SELECT + COUNT( * ) DIV + 87 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2467
SELECT + COUNT ( * ) / + 87 AS col0
----
0

query I rowsort
SELECT ALL + 97 * 55 + - 48 + + 34
----
5321

query I rowsort
SELECT + ( - ( + - 63 ) )
----
63

query I rowsort
SELECT DISTINCT NULLIF ( - 7, - 8 ) * + + 51 + 50
----
-307

onlyif mysql # aggregate syntax: 
query I rowsort label-2471
SELECT + CASE 85 WHEN - COUNT( * ) / - + 19 - + 71 * + COUNT( * ) * 72 * - 90 * 38 THEN + 5 ELSE NULL END + - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-2471
SELECT + CASE 85 WHEN - COUNT ( * ) / - + 19 - + 71 * + COUNT ( * ) * 72 * - 90 * 38 THEN + 5 ELSE NULL END + - 11
----
NULL

query II rowsort
SELECT ALL + 14 AS col2, 31 * - 18 * + - 16 AS col1
----
14
8928

query I rowsort
SELECT + 28 * + 31
----
868

onlyif mysql # aggregate syntax: 
query I rowsort label-2474
SELECT + 11 + - 52 + - + 24 * - NULLIF ( - - 70, - 94 * 53 * 93 + - ( + COUNT( * ) ) ) * + ( - - ( - 32 ) ) * - 13 + - - 97 * + 26 * COUNT( * ) AS col0
----
701361

skipif mysql # not compatible
query I rowsort label-2474
SELECT + 11 + - 52 + - + 24 * - NULLIF ( - - 70, - 94 * 53 * 93 + - ( + COUNT ( * ) ) ) * + ( - - ( - 32 ) ) * - 13 + - - 97 * + 26 * COUNT ( * ) AS col0
----
701361

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT - MAX( DISTINCT - 33 )
----
33

skipif mysql # not compatible
query I rowsort label-2475
SELECT - MAX ( DISTINCT - 33 )
----
33

query II rowsort
SELECT - 4 AS col0, COALESCE ( + 66, - 27 )
----
-4
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT ALL ( MIN( - ( 62 ) ) ) col2
----
-62

skipif mysql # not compatible
query I rowsort label-2477
SELECT ALL ( MIN ( - ( 62 ) ) ) col2
----
-62

query I rowsort
SELECT ALL 62 * - 79 + + 71 AS col1
----
-4827

query I rowsort
SELECT + - ( + - 90 ) + + 79
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-2480
SELECT + + 46 + - COUNT( * ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-2480
SELECT + + 46 + - COUNT ( * ) AS col2
----
45

query I rowsort
SELECT DISTINCT 65 * + + 87 AS col0
----
5655

onlyif mysql # aggregate syntax: 
query II rowsort label-2482
SELECT ALL + 66 + - 80 + - COUNT( * ) - + 34 * - 39 AS col1, 27 AS col0
----
1311
27

skipif mysql # not compatible
query II rowsort label-2482
SELECT ALL + 66 + - 80 + - COUNT ( * ) - + 34 * - 39 AS col1, 27 AS col0
----
1311
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2483
SELECT ALL - NULLIF ( 65, - + ( COALESCE ( - COUNT( * ), 94, - + CASE COUNT( * ) WHEN + 29 THEN NULL WHEN + 26 + + - COUNT( * ) + - 68 * 41 THEN NULL WHEN + CASE + 42 WHEN + 91 THEN - - 72 * 15 WHEN 73 THEN NULL ELSE 28 END + - 27 THEN 33 ELSE NULL END ) ) * - 54 ) DIV + 79
----
0

skipif mysql # not compatible
query I rowsort label-2483
SELECT ALL - NULLIF ( 65, - + ( COALESCE ( - COUNT ( * ), 94, - + CASE COUNT ( * ) WHEN + 29 THEN NULL WHEN + 26 + + - COUNT ( * ) + - 68 * 41 THEN NULL WHEN + CASE + 42 WHEN + 91 THEN - - 72 * 15 WHEN 73 THEN NULL ELSE 28 END + - 27 THEN 33 ELSE NULL END ) ) * - 54 ) / + 79
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT - + MAX( ALL + 37 ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-2484
SELECT - + MAX ( ALL + 37 ) AS col1
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2485
SELECT 92 + - COALESCE ( 29, + COUNT( * ) DIV CAST( NULL AS SIGNED ) + + 83 + + 10 + 63 * + - 31 + - SUM( ALL + COALESCE ( - 86, + 11 + + 26 + + + 16, 76 ) ), - + 51 ) + + 67 col0
----
130

skipif mysql # not compatible
query I rowsort label-2485
SELECT 92 + - COALESCE ( 29, + COUNT ( * ) / CAST ( NULL AS INTEGER ) + + 83 + + 10 + 63 * + - 31 + - SUM ( ALL + COALESCE ( - 86, + 11 + + 26 + + + 16, 76 ) ), - + 51 ) + + 67 col0
----
130

onlyif mysql # DIV for integer division: 
query I rowsort label-2486
SELECT ALL + 83 DIV + 10 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-2486
SELECT ALL + 83 / + 10 AS col1
----
8

query I rowsort
SELECT + 89 + 39 AS col1
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2488
SELECT + NULLIF ( - 72, + + 20 * 56 / - CAST( - 8 AS SIGNED ) ) + + - COUNT( * ) col0
----
-73

skipif mysql # not compatible
query I rowsort label-2488
SELECT + NULLIF ( - 72, + + 20 * 56 / - CAST ( - 8 AS INTEGER ) ) + + - COUNT ( * ) col0
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-2489
SELECT ALL + + 44 - - 54 DIV + 89
----
44

skipif mysql # not compatible
query I rowsort label-2489
SELECT ALL + + 44 - - 54 / + 89
----
44

query I rowsort
SELECT ALL - ( 37 ) AS col2
----
-37

query II rowsort
SELECT DISTINCT COALESCE ( - 3, - + 25 ) * + + 2 col1, ( - 40 ) col2
----
-6
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-2492
SELECT 38 DIV - - 92 * 42 col2
----
0

skipif mysql # not compatible
query I rowsort label-2492
SELECT 38 / - - 92 * 42 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2493
SELECT ALL - CASE + - 45 WHEN - CASE + CAST( + 84 AS SIGNED ) WHEN - + 27 THEN NULL WHEN 1 + + SUM( ALL - 66 ) THEN NULL WHEN + + 85 + 21 THEN NULL ELSE 24 * COUNT( + - NULLIF ( 4, + 18 + - 23 ) ) / - - 49 * - 56 + + + CASE + - COUNT( * ) WHEN - 44 THEN NULL WHEN 86 THEN - CASE - COUNT( * ) WHEN + 42 + - COUNT( * ) / NULLIF ( + 55 * + ( - 34 ), 52 + + 78 * - 72 ) THEN - 87 * - CAST( 83 AS SIGNED ) - 49 WHEN 93 + MIN( ALL 64 ) * - 45 THEN + 89 - 72 * + 8 END + 82 ELSE 42 + - 9 END + COUNT( * ) * - NULLIF ( - COUNT( * ), 22 ) END / - 64 THEN NULL ELSE 35 END AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-2493
SELECT ALL - CASE + - 45 WHEN - CASE + CAST ( + 84 AS INTEGER ) WHEN - + 27 THEN NULL WHEN 1 + + SUM ( ALL - 66 ) THEN NULL WHEN + + 85 + 21 THEN NULL ELSE 24 * COUNT ( + - NULLIF ( 4, + 18 + - 23 ) ) / - - 49 * - 56 + + + CASE + - COUNT ( * ) WHEN - 44 THEN NULL WHEN 86 THEN - CASE - COUNT ( * ) WHEN + 42 + - COUNT ( * ) / NULLIF ( + 55 * + ( - 34 ), 52 + + 78 * - 72 ) THEN - 87 * - CAST ( 83 AS INTEGER ) - 49 WHEN 93 + MIN ( ALL 64 ) * - 45 THEN + 89 - 72 * + 8 END + 82 ELSE 42 + - 9 END + COUNT ( * ) * - NULLIF ( - COUNT ( * ), 22 ) END / - 64 THEN NULL ELSE 35 END AS col2
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2494
SELECT ALL - ( CAST( - 63 AS SIGNED ) )
----
63

skipif mysql # not compatible
query I rowsort label-2494
SELECT ALL - ( CAST ( - 63 AS INTEGER ) )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2495
SELECT MAX( DISTINCT - 25 ) + 20 - 13 + + + COUNT( * ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-2495
SELECT MAX ( DISTINCT - 25 ) + 20 - 13 + + + COUNT ( * ) AS col1
----
-17

query II rowsort
SELECT 9 AS col2, ( - 57 ) * + 90 col0
----
9
-5130

query I rowsort
SELECT 37 * - 97 AS col2
----
-3589

query I rowsort
SELECT 7 * - 52 * + - 78 + - + 24 + + 32
----
28400

query I rowsort
SELECT 79 + + 30 AS col0
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT ALL - 62 * + MIN( DISTINCT + 4 ) AS col0
----
-248

skipif mysql # not compatible
query I rowsort label-2500
SELECT ALL - 62 * + MIN ( DISTINCT + 4 ) AS col0
----
-248

onlyif mysql # aggregate syntax: 
query I rowsort label-2501
SELECT DISTINCT - MAX( ALL + 7 ) + - - 27 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-2501
SELECT DISTINCT - MAX ( ALL + 7 ) + - - 27 AS col2
----
20

query I rowsort
SELECT ALL + 44 * - 40 AS col1
----
-1760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2503
SELECT ALL + ( + + NULLIF ( - 70, - CAST( NULL AS SIGNED ) ) ) + - 72 AS col1
----
-142

skipif mysql # not compatible
query I rowsort label-2503
SELECT ALL + ( + + NULLIF ( - 70, - CAST ( NULL AS INTEGER ) ) ) + - 72 AS col1
----
-142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2504
SELECT + 5 AS col0, - COUNT( * ) * - + 77 * + CAST( NULL AS SIGNED ) * - 25 * + 26
----
5
NULL

skipif mysql # not compatible
query II rowsort label-2504
SELECT + 5 AS col0, - COUNT ( * ) * - + 77 * + CAST ( NULL AS INTEGER ) * - 25 * + 26
----
5
NULL

query I rowsort
SELECT ALL 52 + - 11
----
41

query I rowsort
SELECT DISTINCT 11 + 11 AS col2
----
22

query I rowsort
SELECT ALL + 45 * 42 AS col2
----
1890

query I rowsort
SELECT 53 * 44
----
2332

query II rowsort
SELECT 25 AS col2, + 15 - + + 20 AS col2
----
25
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2510
SELECT DISTINCT + 27 + + COUNT( * ) + + + COUNT( - 86 ) + + 78 + + CAST( + + 0 AS SIGNED ) * + - CASE 63 WHEN ( + 65 ) THEN - - 72 + + + 66 * - 33 - + 44 * + 88 WHEN + COUNT( * ) - - 94 THEN - - 84 * - ( - - COUNT( * ) ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2510
SELECT DISTINCT + 27 + + COUNT ( * ) + + + COUNT ( - 86 ) + + 78 + + CAST ( + + 0 AS INTEGER ) * + - CASE 63 WHEN ( + 65 ) THEN - - 72 + + + 66 * - 33 - + 44 * + 88 WHEN + COUNT ( * ) - - 94 THEN - - 84 * - ( - - COUNT ( * ) ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL - 72 + + 90
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT SUM( ALL 20 )
----
20

skipif mysql # not compatible
query I rowsort label-2512
SELECT SUM ( ALL 20 )
----
20

query I rowsort
SELECT ALL + 55 + + 10
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2514
SELECT + CASE - CAST( NULL AS SIGNED ) WHEN 21 THEN 99 / + - 86 * - + 33 WHEN - COUNT( - ( + 0 ) ) THEN NULL ELSE NULL END * + 11 * - 88 * - 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2514
SELECT + CASE - CAST ( NULL AS INTEGER ) WHEN 21 THEN 99 / + - 86 * - + 33 WHEN - COUNT ( - ( + 0 ) ) THEN NULL ELSE NULL END * + 11 * - 88 * - 12 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2515
SELECT 88 * + ( COUNT( * ) ) col1
----
88

skipif mysql # not compatible
query I rowsort label-2515
SELECT 88 * + ( COUNT ( * ) ) col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT ALL 1 / 34 + + CASE + COUNT( * ) WHEN - - 36 * + + 25 + 85 * + 96 + + + 65 * - + 68 * + 33 THEN - 58 END * + ( - 70 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2516
SELECT ALL 1 / 34 + + CASE + COUNT ( * ) WHEN - - 36 * + + 25 + 85 * + 96 + + + 65 * - + 68 * + 33 THEN - 58 END * + ( - 70 )
----
NULL

query I rowsort
SELECT DISTINCT + 28 + + ( + 9 ) + 43
----
80

onlyif mysql # DIV for integer division: 
query II rowsort label-2518
SELECT DISTINCT + 6 DIV - 8 AS col0, - COALESCE ( - 89, + 58 )
----
0
89

skipif mysql # not compatible
query II rowsort label-2518
SELECT DISTINCT + 6 / - 8 AS col0, - COALESCE ( - 89, + 58 )
----
0
89

query I rowsort
SELECT - 12 * 63 AS col1
----
-756

onlyif mysql # aggregate syntax: 
query I rowsort label-2520
SELECT ALL - CASE - 95 WHEN + NULLIF ( + NULLIF ( - - 23, + CASE - 2 WHEN + COUNT( * ) * - COALESCE ( - + 89, + COUNT( * ) ) + + + 27 THEN - 6 END ), + 14 + + CASE - ( - 74 ) WHEN + + 97 * + 17 THEN NULL WHEN - + 85 THEN - 19 + 27 ELSE NULL END + 28 ) * - 11 + - NULLIF ( + 42, - 94 / 8 ) THEN - 63 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2520
SELECT ALL - CASE - 95 WHEN + NULLIF ( + NULLIF ( - - 23, + CASE - 2 WHEN + COUNT ( * ) * - COALESCE ( - + 89, + COUNT ( * ) ) + + + 27 THEN - 6 END ), + 14 + + CASE - ( - 74 ) WHEN + + 97 * + 17 THEN NULL WHEN - + 85 THEN - 19 + 27 ELSE NULL END + 28 ) * - 11 + - NULLIF ( + 42, - 94 / 8 ) THEN - 63 END
----
NULL

query II rowsort
SELECT - - 1 AS col1, + 7
----
1
7

query II rowsort
SELECT - 34 AS col1, + 27
----
-34
27

onlyif mysql # aggregate syntax: 
query II rowsort label-2523
SELECT ALL ( - 24 ) AS col2, + COUNT( * )
----
-24
1

skipif mysql # not compatible
query II rowsort label-2523
SELECT ALL ( - 24 ) AS col2, + COUNT ( * )
----
-24
1

query I rowsort
SELECT ALL + 54 - + 83 * 3
----
-195

query I rowsort
SELECT + 78 * 23 * + 31
----
55614

query I rowsort
SELECT DISTINCT + ( 70 ) * + 23
----
1610

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2527
SELECT DISTINCT 46 AS col2, CASE + + 58 WHEN 35 + + + 65 + - 41 * - - CAST( - + 45 AS DECIMAL ) + - 24 THEN NULL WHEN + 52 + - 5 * 8 THEN NULL WHEN - 1 THEN + 55 END + - 12 * - 91 AS col1
----
46
NULL

skipif mysql # not compatible
query II rowsort label-2527
SELECT DISTINCT 46 AS col2, CASE + + 58 WHEN 35 + + + 65 + - 41 * - - CAST ( - + 45 AS REAL ) + - 24 THEN NULL WHEN + 52 + - 5 * 8 THEN NULL WHEN - 1 THEN + 55 END + - 12 * - 91 AS col1
----
46
NULL

query II rowsort
SELECT DISTINCT 68 AS col1, - 66 * + 43 - + 44 AS col2
----
68
-2882

onlyif mysql # DIV for integer division: 
query I rowsort label-2529
SELECT DISTINCT + 47 DIV + 39
----
1

skipif mysql # not compatible
query I rowsort label-2529
SELECT DISTINCT + 47 / + 39
----
1

query I rowsort
SELECT 54 * - 7 AS col2
----
-378

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2531
SELECT DISTINCT CAST( - - 36 AS SIGNED ) DIV 38 + 31 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-2531
SELECT DISTINCT CAST ( - - 36 AS INTEGER ) / 38 + 31 AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT ALL COUNT( * ) + + NULLIF ( + 43, + 73 / 10 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-2532
SELECT ALL COUNT ( * ) + + NULLIF ( + 43, + 73 / 10 ) AS col0
----
44

query I rowsort
SELECT 34 - - 63 + - 48 AS col0
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-2534
SELECT 73 DIV + 9
----
8

skipif mysql # not compatible
query I rowsort label-2534
SELECT 73 / + 9
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2535
SELECT DISTINCT CASE + COUNT( DISTINCT - 44 ) WHEN + 32 THEN NULL ELSE - - 26 END * + COUNT( - + 78 ) + + 46 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-2535
SELECT DISTINCT CASE + COUNT ( DISTINCT - 44 ) WHEN + 32 THEN NULL ELSE - - 26 END * + COUNT ( - + 78 ) + + 46 AS col1
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2536
SELECT DISTINCT + 30 * 73 AS col1, 13 DIV - COUNT( * )
----
2190
-13

skipif mysql # not compatible
query II rowsort label-2536
SELECT DISTINCT + 30 * 73 AS col1, 13 / - COUNT ( * )
----
2190
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2537
SELECT ALL ( + - CAST( NULL AS SIGNED ) ) * - 46 + - 85 * CAST( - - 46 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2537
SELECT ALL ( + - CAST ( NULL AS INTEGER ) ) * - 46 + - 85 * CAST ( - - 46 AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - ( + - 82 ) col1
----
82

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2539
SELECT 63 DIV + 89, + CAST( - 49 AS SIGNED ) DIV 82 AS col1
----
0
0

skipif mysql # not compatible
query II rowsort label-2539
SELECT 63 / + 89, + CAST ( - 49 AS INTEGER ) / 82 AS col1
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2540
SELECT ALL 47 * - 55 * COUNT( * ) + - ( + 48 ) AS col2
----
-2633

skipif mysql # not compatible
query I rowsort label-2540
SELECT ALL 47 * - 55 * COUNT ( * ) + - ( + 48 ) AS col2
----
-2633

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT + CASE COUNT( ALL - 90 ) WHEN - 81 THEN 2 * - NULLIF ( + COUNT( * ), + - 99 * + ( - 69 ) + 46 - - COUNT( * ) ) + 32 END / - 46 - - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-2541
SELECT + CASE COUNT ( ALL - 90 ) WHEN - 81 THEN 2 * - NULLIF ( + COUNT ( * ), + - 99 * + ( - 69 ) + 46 - - COUNT ( * ) ) + 32 END / - 46 - - 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT DISTINCT 88 * - COUNT( * ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-2542
SELECT DISTINCT 88 * - COUNT ( * ) AS col0
----
-88

query I rowsort
SELECT ALL 53 * - 15 * + 49 + - 53
----
-39008

onlyif mysql # aggregate syntax: 
query I rowsort label-2544
SELECT 76 * - + COUNT( + - ( - 0 ) ) * + 29 * - + 45 + 77 + - + 35 + + COALESCE ( - 41, 35, - 57 ) + + 79
----
99260

skipif mysql # not compatible
query I rowsort label-2544
SELECT 76 * - + COUNT ( + - ( - 0 ) ) * + 29 * - + 45 + 77 + - + 35 + + COALESCE ( - 41, 35, - 57 ) + + 79
----
99260

query I rowsort
SELECT ( + 32 ) + + - 80 AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2546
SELECT 98 * - COUNT( * ) / + CASE - 63 WHEN 8 THEN + AVG ( + 57 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2546
SELECT 98 * - COUNT ( * ) / + CASE - 63 WHEN 8 THEN + AVG ( + 57 ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2547
SELECT ALL 90 * - 83 * + 55 + - 81 DIV + + 27
----
-410853

skipif mysql # not compatible
query I rowsort label-2547
SELECT ALL 90 * - 83 * + 55 + - 81 / + + 27
----
-410853

query I rowsort
SELECT 78 + + ( + 24 ) + - 2 * 5 + + 54 AS col0
----
146

query I rowsort
SELECT + 65 * 58 * - + 39 - + 80
----
-147110

query II rowsort
SELECT ALL + - 95 * + 32 AS col0, + 58
----
-3040
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2551
SELECT ALL + 99 - - MAX( DISTINCT + 73 ) + + 70 * - 68 + 58 + + 63 * COUNT( * ) * - 58 * - COUNT( * ) * - COUNT( * )
----
-8184

skipif mysql # not compatible
query I rowsort label-2551
SELECT ALL + 99 - - MAX ( DISTINCT + 73 ) + + 70 * - 68 + 58 + + 63 * COUNT ( * ) * - 58 * - COUNT ( * ) * - COUNT ( * )
----
-8184

query I rowsort
SELECT ALL - + 82 - - 99 + - 16 AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2553
SELECT + - COALESCE ( CASE 31 WHEN - 20 THEN - + COALESCE ( 29, - 94 DIV - 10 * - 40, + 90 ) ELSE - + 61 + 77 + + CASE + + 45 WHEN + - COUNT( * ) THEN 81 * 29 + - 23 ELSE NULL END + + 95 + 83 END, 59 + - 12, 20 )
----
-47

skipif mysql # not compatible
query I rowsort label-2553
SELECT + - COALESCE ( CASE 31 WHEN - 20 THEN - + COALESCE ( 29, - 94 / - 10 * - 40, + 90 ) ELSE - + 61 + 77 + + CASE + + 45 WHEN + - COUNT ( * ) THEN 81 * 29 + - 23 ELSE NULL END + + 95 + 83 END, 59 + - 12, 20 )
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2554
SELECT - - CAST( NULL AS SIGNED ) + - COALESCE ( - 98, - 26 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2554
SELECT - - CAST ( NULL AS INTEGER ) + - COALESCE ( - 98, - 26 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT - + 27 * + 5 + - NULLIF ( - 1, - 62 + - - 38 ) + + + COUNT( DISTINCT - 12 ) * - 58 AS col0
----
-192

skipif mysql # not compatible
query I rowsort label-2555
SELECT - + 27 * + 5 + - NULLIF ( - 1, - 62 + - - 38 ) + + + COUNT ( DISTINCT - 12 ) * - 58 AS col0
----
-192

query II rowsort
SELECT DISTINCT + + 52 * + 77, - 15 * + 21 AS col1
----
4004
-315

query I rowsort
SELECT ALL ( ( - 22 ) ) AS col0
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2558
SELECT - SUM( DISTINCT - 0 ) DIV - ( - COUNT( * ) ) + + - 27 * - + COUNT( * ) DIV + 88 * - 72 * - + COUNT( * ) * + + 94 AS col0, - ( - 66 )
----
0
66

skipif mysql # not compatible
query II rowsort label-2558
SELECT - SUM ( DISTINCT - 0 ) / - ( - COUNT ( * ) ) + + - 27 * - + COUNT ( * ) / + 88 * - 72 * - + COUNT ( * ) * + + 94 AS col0, - ( - 66 )
----
0
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT - MAX( 19 ) + + + 4
----
-15

skipif mysql # not compatible
query I rowsort label-2559
SELECT - MAX ( 19 ) + + + 4
----
-15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2560
SELECT - + CAST( NULL AS DECIMAL ) / + - 57 + + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-2560
SELECT - + CAST ( NULL AS REAL ) / + - 57 + + 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2561
SELECT ALL - COUNT( - - 49 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2561
SELECT ALL - COUNT ( - - 49 ) AS col0
----
-1

query I rowsort
SELECT + + 20 - 49 + 30
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2563
SELECT ALL 54 + - COUNT( + 62 ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-2563
SELECT ALL 54 + - COUNT ( + 62 ) AS col1
----
53

query I rowsort
SELECT - 19 * - 10
----
190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2565
SELECT ALL CAST( NULL AS SIGNED ) + - + 81 / - 80 * - + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-2565
SELECT ALL CAST ( NULL AS INTEGER ) + - + 81 / - 80 * - + 40
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT - 36 + 27 + + COUNT( * ) * + + COUNT( * ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-2566
SELECT - 36 + 27 + + COUNT ( * ) * + + COUNT ( * ) AS col0
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-2567
SELECT - COUNT( * ), COALESCE ( - 67, - ( - 70 ), 52 ) + - ( - COUNT( * ) ) col2
----
-1
-66

skipif mysql # not compatible
query II rowsort label-2567
SELECT - COUNT ( * ), COALESCE ( - 67, - ( - 70 ), 52 ) + - ( - COUNT ( * ) ) col2
----
-1
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT - COALESCE ( + CASE + 88 WHEN - 15 THEN NULL WHEN + + 27 + + ( + 72 ) + COUNT( * ) THEN COUNT( * ) * 62 + - - COUNT( * ) * - - 43 ELSE 4 END, 35 )
----
-4

skipif mysql # not compatible
query I rowsort label-2568
SELECT - COALESCE ( + CASE + 88 WHEN - 15 THEN NULL WHEN + + 27 + + ( + 72 ) + COUNT ( * ) THEN COUNT ( * ) * 62 + - - COUNT ( * ) * - - 43 ELSE 4 END, 35 )
----
-4

query I rowsort
SELECT + 13 + + 58
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2570
SELECT + 19 - - SUM( ALL 42 ) + 30 + - 35
----
56

skipif mysql # not compatible
query I rowsort label-2570
SELECT + 19 - - SUM ( ALL 42 ) + 30 + - 35
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2571
SELECT ALL + CAST( 50 AS SIGNED ) + - - 89
----
139

skipif mysql # not compatible
query I rowsort label-2571
SELECT ALL + CAST ( 50 AS INTEGER ) + - - 89
----
139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2572
SELECT + MAX( DISTINCT - + ( + - 39 ) ) + CAST( - - COALESCE ( - 16, + MAX( DISTINCT + COALESCE ( - 38, 77 + - + 77, 86, 62 * + 40 + + 40 + + 23 - - 79 ) ) ) AS SIGNED ) + 79 * - + COUNT( * ) * - - CASE 29 WHEN COUNT( ALL + 94 ) THEN + 9 WHEN 7 + 70 THEN 32 ELSE + CAST( NULL AS DECIMAL ) + - COUNT( * ) END + + ( 87 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2572
SELECT + MAX ( DISTINCT - + ( + - 39 ) ) + CAST ( - - COALESCE ( - 16, + MAX ( DISTINCT + COALESCE ( - 38, 77 + - + 77, 86, 62 * + 40 + + 40 + + 23 - - 79 ) ) ) AS INTEGER ) + 79 * - + COUNT ( * ) * - - CASE 29 WHEN COUNT ( ALL + 94 ) THEN + 9 WHEN 7 + 70 THEN 32 ELSE + CAST ( NULL AS REAL ) + - COUNT ( * ) END + + ( 87 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2573
SELECT DISTINCT 42, ( COUNT( * ) ) AS col0
----
42
1

skipif mysql # not compatible
query II rowsort label-2573
SELECT DISTINCT 42, ( COUNT ( * ) ) AS col0
----
42
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2574
SELECT + MAX( DISTINCT + 95 ) * + 20 + + 55
----
1955

skipif mysql # not compatible
query I rowsort label-2574
SELECT + MAX ( DISTINCT + 95 ) * + 20 + + 55
----
1955

query II rowsort
SELECT ( + ( + 46 ) ) AS col0, 87
----
46
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2576
SELECT + 99 DIV - - 82 + MIN( DISTINCT + - 10 ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-2576
SELECT + 99 / - - 82 + MIN ( DISTINCT + - 10 ) AS col1
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2577
SELECT + COALESCE ( + 92, - 34 * COUNT( * ) DIV + 45 + + - 52 + - ( - 50 ) )
----
92

skipif mysql # not compatible
query I rowsort label-2577
SELECT + COALESCE ( + 92, - 34 * COUNT ( * ) / + 45 + + - 52 + - ( - 50 ) )
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-2578
SELECT ALL 18 * + - 18 + - 13 AS col1, - COUNT( * ) AS col1
----
-337
-1

skipif mysql # not compatible
query II rowsort label-2578
SELECT ALL 18 * + - 18 + - 13 AS col1, - COUNT ( * ) AS col1
----
-337
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2579
SELECT + 23 * - MIN( 57 )
----
-1311

skipif mysql # not compatible
query I rowsort label-2579
SELECT + 23 * - MIN ( 57 )
----
-1311

onlyif mysql # DIV for integer division: 
query I rowsort label-2580
SELECT - 29 * 87 DIV + 3 col0
----
-841

skipif mysql # not compatible
query I rowsort label-2580
SELECT - 29 * 87 / + 3 col0
----
-841

query I rowsort
SELECT DISTINCT 34 * - 8
----
-272

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT ALL - MAX( DISTINCT 85 ) * - + 94 * - 40 - + 0 col1
----
-319600

skipif mysql # not compatible
query I rowsort label-2582
SELECT ALL - MAX ( DISTINCT 85 ) * - + 94 * - 40 - + 0 col1
----
-319600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2583
SELECT ALL + - 42 * CASE 42 WHEN - 11 - + COUNT( * ) * ( + CAST( - 48 AS SIGNED ) ) - 20 * - + 25 THEN NULL ELSE - - COUNT( * ) END + + + 25 DIV + + SUM( ALL + - 9 ) - - ( - 65 ) + - 53 * - 81 * - 50 AS col2
----
-214759

skipif mysql # not compatible
query I rowsort label-2583
SELECT ALL + - 42 * CASE 42 WHEN - 11 - + COUNT ( * ) * ( + CAST ( - 48 AS INTEGER ) ) - 20 * - + 25 THEN NULL ELSE - - COUNT ( * ) END + + + 25 / + + SUM ( ALL + - 9 ) - - ( - 65 ) + - 53 * - 81 * - 50 AS col2
----
-214759

query I rowsort
SELECT - - 42 * + 6 AS col2
----
252

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

skipif mysql # not compatible
query I rowsort label-2585
SELECT ALL + 36 * - COUNT ( * ) col1
----
-36

query I rowsort
SELECT ALL + 78 * + 29
----
2262

query I rowsort
SELECT + 19 * - 75
----
-1425

query I rowsort
SELECT + COALESCE ( + + 0, - + 98, - + 97 )
----
0

query I rowsort
SELECT + 47 - 6
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2590
SELECT NULLIF ( - CASE + 46 WHEN 4 THEN + - 90 WHEN - 80 THEN NULL ELSE NULL END, + 30 + + 92 * - ( - CAST( 47 AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2590
SELECT NULLIF ( - CASE + 46 WHEN 4 THEN + - 90 WHEN - 80 THEN NULL ELSE NULL END, + 30 + + 92 * - ( - CAST ( 47 AS INTEGER ) ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2591
SELECT - + COUNT( 50 )
----
-1

skipif mysql # not compatible
query I rowsort label-2591
SELECT - + COUNT ( 50 )
----
-1

query I rowsort
SELECT ALL - + 75 * + - 85
----
6375

onlyif mysql # aggregate syntax: 
query I rowsort label-2593
SELECT DISTINCT + - ( + + 66 ) + 96 + 6 * COUNT( * ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-2593
SELECT DISTINCT + - ( + + 66 ) + 96 + 6 * COUNT ( * ) AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT ALL - COUNT( * ) * + 25 AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-2594
SELECT ALL - COUNT ( * ) * + 25 AS col1
----
-25

query II rowsort
SELECT - 37 * - 91 AS col1, + 2 col1
----
3367
2

query I rowsort
SELECT ALL 1 + + 15 AS col1
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2597
SELECT DISTINCT ( + COALESCE ( + MIN( + 32 ), + ( - CASE - 67 WHEN + 2 * 82 THEN 67 END ) DIV + 81 ) ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-2597
SELECT DISTINCT ( + COALESCE ( + MIN ( + 32 ), + ( - CASE - 67 WHEN + 2 * 82 THEN 67 END ) / + 81 ) ) AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2598
SELECT ALL MIN( - + 73 ) + - 37 * - 39 * - - COUNT( * ) AS col1
----
1370

skipif mysql # not compatible
query I rowsort label-2598
SELECT ALL MIN ( - + 73 ) + - 37 * - 39 * - - COUNT ( * ) AS col1
----
1370

query I rowsort
SELECT - 42 * + 6
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-2600
SELECT - ( + + COALESCE ( 6, - + MAX( ALL + + 52 ) ) ) - - + 38 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-2600
SELECT - ( + + COALESCE ( 6, - + MAX ( ALL + + 52 ) ) ) - - + 38 AS col1
----
32

query I rowsort
SELECT ALL 94 * 96 AS col1
----
9024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2602
SELECT ALL MIN( ALL + + COALESCE ( - 0, 82 ) ) - + 84 + 23 * + + 89 * - 55 * - + 57, - CASE + COALESCE ( - COUNT( * ), - AVG ( 26 ) * + MIN( - 61 ) + 86 ) WHEN + + 49 THEN + - CAST( - CAST( + 82 AS SIGNED ) AS SIGNED ) * - COUNT( * ) * - 89 * - + 67 END * + 76 AS col1
----
6417261
NULL

skipif mysql # not compatible
query II rowsort label-2602
SELECT ALL MIN ( ALL + + COALESCE ( - 0, 82 ) ) - + 84 + 23 * + + 89 * - 55 * - + 57, - CASE + COALESCE ( - COUNT ( * ), - AVG ( 26 ) * + MIN ( - 61 ) + 86 ) WHEN + + 49 THEN + - CAST ( - CAST ( + 82 AS INTEGER ) AS INTEGER ) * - COUNT ( * ) * - 89 * - + 67 END * + 76 AS col1
----
6417261
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2603
SELECT 41 / + CAST( NULL AS DECIMAL ) * - - 28 - - 45 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2603
SELECT 41 / + CAST ( NULL AS REAL ) * - - 28 - - 45 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - - 90 col0
----
90

query I rowsort
SELECT - 64 - + 2 + + 81 col2
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2606
SELECT - 27 DIV + 80 * + COALESCE ( + 7, 91 ) * + MAX( + 87 ) + + + 87 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-2606
SELECT - 27 / + 80 * + COALESCE ( + 7, 91 ) * + MAX ( + 87 ) + + + 87 AS col1
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-2607
SELECT 53 DIV 20
----
2

skipif mysql # not compatible
query I rowsort label-2607
SELECT 53 / 20
----
2

query I rowsort
SELECT 97 * - + NULLIF ( + - 10, - + 64 * - 64 * + + 35 )
----
970

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2609
SELECT + CAST( NULL AS SIGNED ) + + COUNT( DISTINCT 50 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2609
SELECT + CAST ( NULL AS INTEGER ) + + COUNT ( DISTINCT 50 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2610
SELECT + MIN( 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2610
SELECT + MIN ( 0 ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2611
SELECT ALL - 55 DIV - ( - COUNT( * ) ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-2611
SELECT ALL - 55 / - ( - COUNT ( * ) ) AS col1
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-2612
SELECT 76 DIV - + 8 col0
----
-9

skipif mysql # not compatible
query I rowsort label-2612
SELECT 76 / - + 8 col0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2613
SELECT ALL + + CAST( NULL AS SIGNED ) * - CAST( NULL AS DECIMAL ) + - MIN( DISTINCT + 51 ) - + + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-2613
SELECT ALL + + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS REAL ) + - MIN ( DISTINCT + 51 ) - + + 98
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2614
SELECT DISTINCT - 73 + - - 35 * + + MAX( + 6 )
----
137

skipif mysql # not compatible
query I rowsort label-2614
SELECT DISTINCT - 73 + - - 35 * + + MAX ( + 6 )
----
137

onlyif mysql # DIV for integer division: 
query II rowsort label-2615
SELECT 45 * 58 AS col2, + 82 + + 91 - - 16 + 67 + - 98 * + + 14 + 21 DIV 45 + 61
----
2610
-1055

skipif mysql # not compatible
query II rowsort label-2615
SELECT 45 * 58 AS col2, + 82 + + 91 - - 16 + 67 + - 98 * + + 14 + 21 / 45 + 61
----
2610
-1055

query I rowsort
SELECT ALL 77 + 16 AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2617
SELECT ALL COUNT( - 8 )
----
1

skipif mysql # not compatible
query I rowsort label-2617
SELECT ALL COUNT ( - 8 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2618
SELECT 7 * + + CASE - CAST( + 18 AS SIGNED ) WHEN + 99 + - - ( + + COUNT( * ) ) THEN NULL WHEN + 4 + - - 90 - - NULLIF ( 75, - - 59 ) THEN - + COALESCE ( - 95, - + 71 + - 50 + MAX( DISTINCT - 42 ) * + 83, SUM( ALL - 24 ) + CASE - + 92 WHEN + COUNT( * ) + - 24 * - CAST( NULL AS SIGNED ) THEN 35 * 32 END + ( + 46 ) ) WHEN 12 THEN NULL END + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-2618
SELECT 7 * + + CASE - CAST ( + 18 AS INTEGER ) WHEN + 99 + - - ( + + COUNT ( * ) ) THEN NULL WHEN + 4 + - - 90 - - NULLIF ( 75, - - 59 ) THEN - + COALESCE ( - 95, - + 71 + - 50 + MAX ( DISTINCT - 42 ) * + 83, SUM ( ALL - 24 ) + CASE - + 92 WHEN + COUNT ( * ) + - 24 * - CAST ( NULL AS INTEGER ) THEN 35 * 32 END + ( + 46 ) ) WHEN 12 THEN NULL END + 49
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2619
SELECT ALL 69 AS col2, + 31 + COUNT( * ) * + 95 + - COUNT( * )
----
69
125

skipif mysql # not compatible
query II rowsort label-2619
SELECT ALL 69 AS col2, + 31 + COUNT ( * ) * + 95 + - COUNT ( * )
----
69
125

query I rowsort
SELECT DISTINCT - 26 + 67
----
41

query I rowsort
SELECT DISTINCT + 71 + - 25 AS col2
----
46

query I rowsort
SELECT ALL - 17 * + 17 * + 84 AS col0
----
-24276

query I rowsort
SELECT ALL + 53 + - 91
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT DISTINCT - SUM( 9 ) * + - MIN( 97 ) - - 78 AS col1
----
951

skipif mysql # not compatible
query I rowsort label-2624
SELECT DISTINCT - SUM ( 9 ) * + - MIN ( 97 ) - - 78 AS col1
----
951

query I rowsort
SELECT DISTINCT - 26 * - - 50 * - 97
----
126100

onlyif mysql # aggregate syntax: 
query I rowsort label-2626
SELECT DISTINCT + 72 - - COUNT( * ) * - + 56
----
16

skipif mysql # not compatible
query I rowsort label-2626
SELECT DISTINCT + 72 - - COUNT ( * ) * - + 56
----
16

query I rowsort
SELECT 7 * - + 99 AS col2
----
-693

query I rowsort
SELECT 78 + - 23 AS col2
----
55

query I rowsort
SELECT ALL - 9 - + COALESCE ( 5, 94 )
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2630
SELECT 88 + - 80 + - 66 * - + COALESCE ( + CAST( NULL AS SIGNED ), 55 ) DIV - NULLIF ( COUNT( * ), + 44 )
----
-3622

skipif mysql # not compatible
query I rowsort label-2630
SELECT 88 + - 80 + - 66 * - + COALESCE ( + CAST ( NULL AS INTEGER ), 55 ) / - NULLIF ( COUNT ( * ), + 44 )
----
-3622

onlyif mysql # aggregate syntax: 
query II rowsort label-2631
SELECT ALL 4 AS col0, + 92 * COUNT( * )
----
4
92

skipif mysql # not compatible
query II rowsort label-2631
SELECT ALL 4 AS col0, + 92 * COUNT ( * )
----
4
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2632
SELECT ALL COUNT( * ) DIV + + 64 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2632
SELECT ALL COUNT ( * ) / + + 64 AS col1
----
0

query I rowsort
SELECT 97 * - 10
----
-970

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2634
SELECT DISTINCT + COUNT( 0 ) DIV COUNT( * ) AS col2, 2 + + 92
----
1
94

skipif mysql # not compatible
query II rowsort label-2634
SELECT DISTINCT + COUNT ( 0 ) / COUNT ( * ) AS col2, 2 + + 92
----
1
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2635
SELECT 91 * + 21 - COUNT( * ) + - + 71
----
1839

skipif mysql # not compatible
query I rowsort label-2635
SELECT 91 * + 21 - COUNT ( * ) + - + 71
----
1839

query I rowsort
SELECT + 62 + + 82 + 42 * - 86 AS col1
----
-3468

query I rowsort
SELECT ALL + + 71 * + - 58
----
-4118

onlyif mysql # aggregate syntax: 
query I rowsort label-2638
SELECT - COUNT( * ) * - 94 * MIN( ALL - 18 ) - COUNT( * ) + + 60 - - 93
----
-1540

skipif mysql # not compatible
query I rowsort label-2638
SELECT - COUNT ( * ) * - 94 * MIN ( ALL - 18 ) - COUNT ( * ) + + 60 - - 93
----
-1540

onlyif mysql # aggregate syntax: 
query II rowsort label-2639
SELECT ALL MIN( ALL 28 ) * - 28, 10 col2
----
-784
10

skipif mysql # not compatible
query II rowsort label-2639
SELECT ALL MIN ( ALL 28 ) * - 28, 10 col2
----
-784
10

query I rowsort
SELECT DISTINCT - 26 * + 92 AS col1
----
-2392

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2641
SELECT DISTINCT - + CASE + 4 WHEN 84 * 33 - - ( + SUM( - 80 ) ) + + 60 * - 5 / + COALESCE ( - CAST( NULL AS SIGNED ), + + 98 * + + 58 ) * COUNT( * ) * - 95 / - 88 + 97 THEN NULL WHEN + 18 * - 19 + - ( - 19 ) + - 12 - - COALESCE ( - 16, + - 42 * 96 ) * - 28 THEN + 75 + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2641
SELECT DISTINCT - + CASE + 4 WHEN 84 * 33 - - ( + SUM ( - 80 ) ) + + 60 * - 5 / + COALESCE ( - CAST ( NULL AS INTEGER ), + + 98 * + + 58 ) * COUNT ( * ) * - 95 / - 88 + 97 THEN NULL WHEN + 18 * - 19 + - ( - 19 ) + - 12 - - COALESCE ( - 16, + - 42 * 96 ) * - 28 THEN + 75 + COUNT ( * ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT ALL - 13 + - COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-2642
SELECT ALL - 13 + - COUNT ( * )
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2643
SELECT ALL - NULLIF ( + CAST( NULL AS SIGNED ), - MIN( DISTINCT 7 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2643
SELECT ALL - NULLIF ( + CAST ( NULL AS INTEGER ), - MIN ( DISTINCT 7 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2644
SELECT DISTINCT SUM( ALL + 57 ) + 15 AS col0, - 44
----
72
-44

skipif mysql # not compatible
query II rowsort label-2644
SELECT DISTINCT SUM ( ALL + 57 ) + 15 AS col0, - 44
----
72
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-2645
SELECT DISTINCT + 50 DIV - 20 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-2645
SELECT DISTINCT + 50 / - 20 AS col0
----
-2

query II rowsort
SELECT ALL ( - + 26 ) * - + 37 - + + 68 AS col1, 14 AS col0
----
894
14

query I rowsort
SELECT ALL 31 - - 23 AS col2
----
54

query II rowsort
SELECT 88, + 16 * + 79 AS col0
----
88
1264

query I rowsort
SELECT 79 + - + 70 * 63
----
-4331

onlyif mysql # aggregate syntax: 
query I rowsort label-2650
SELECT 88 + + SUM( ALL + + 36 ) AS col0
----
124

skipif mysql # not compatible
query I rowsort label-2650
SELECT 88 + + SUM ( ALL + + 36 ) AS col0
----
124

query I rowsort
SELECT 91 * + - ( - + 98 )
----
8918

onlyif mysql # aggregate syntax: 
query I rowsort label-2652
SELECT ALL 0 - + 41 - - - COUNT( * ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-2652
SELECT ALL 0 - + 41 - - - COUNT ( * ) AS col0
----
-42

query II rowsort
SELECT DISTINCT 85, 17 - 99 AS col2
----
85
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT - SUM( ALL + 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-2654
SELECT - SUM ( ALL + 45 )
----
-45

query II rowsort
SELECT 18 AS col2, + 50 AS col0
----
18
50

query II rowsort
SELECT ALL 91, 83 col0
----
91
83

onlyif mysql # aggregate syntax: 
query II rowsort label-2657
SELECT DISTINCT 42, MAX( DISTINCT - + 18 ) col0
----
42
-18

skipif mysql # not compatible
query II rowsort label-2657
SELECT DISTINCT 42, MAX ( DISTINCT - + 18 ) col0
----
42
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT MIN( DISTINCT + + 74 ) + + 21 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-2658
SELECT MIN ( DISTINCT + + 74 ) + + 21 AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2659
SELECT - COALESCE ( - - 11, - 1, 49 * + 5 + COUNT( * ) + - - CASE COUNT( - + 16 ) WHEN - + 11 * - 39 * - 11 * - 31 THEN NULL ELSE 33 END * - COUNT( * ) + + + COALESCE ( + 73, - + 63 ) + - - 30, 54 )
----
-11

skipif mysql # not compatible
query I rowsort label-2659
SELECT - COALESCE ( - - 11, - 1, 49 * + 5 + COUNT ( * ) + - - CASE COUNT ( - + 16 ) WHEN - + 11 * - 39 * - 11 * - 31 THEN NULL ELSE 33 END * - COUNT ( * ) + + + COALESCE ( + 73, - + 63 ) + - - 30, 54 )
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-2660
SELECT ALL COUNT( * ) AS col0, + SUM( DISTINCT 2 )
----
1
2

skipif mysql # not compatible
query II rowsort label-2660
SELECT ALL COUNT ( * ) AS col0, + SUM ( DISTINCT 2 )
----
1
2

query II rowsort
SELECT ALL 1, 14 AS col0
----
1
14

query II rowsort
SELECT - 29 * + 23 AS col2, - 53 * - + 10 AS col0
----
-667
530

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2663
SELECT ALL + 78 * + CAST( + - 0 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2663
SELECT ALL + 78 * + CAST ( + - 0 AS INTEGER ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2664
SELECT - COALESCE ( + ( - COUNT( * ) ), - - 39 + + - 69 )
----
1

skipif mysql # not compatible
query I rowsort label-2664
SELECT - COALESCE ( + ( - COUNT ( * ) ), - - 39 + + - 69 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2665
SELECT + + 10 DIV - MIN( ALL - 23 )
----
0

skipif mysql # not compatible
query I rowsort label-2665
SELECT + + 10 / - MIN ( ALL - 23 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT - + COUNT( * ) * + ( + 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-2666
SELECT - + COUNT ( * ) * + ( + 89 )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2667
SELECT ALL + + COUNT( * ) + 98
----
99

skipif mysql # not compatible
query I rowsort label-2667
SELECT ALL + + COUNT ( * ) + 98
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2668
SELECT ALL + 15 * - - 24 + + 38 + - COALESCE ( 21, - 4, - 86 * - ( ( 20 ) ) + - 68 * + 77 DIV - 97 ) + + 31 + - 68 AS col0
----
340

skipif mysql # not compatible
query I rowsort label-2668
SELECT ALL + 15 * - - 24 + + 38 + - COALESCE ( 21, - 4, - 86 * - ( ( 20 ) ) + - 68 * + 77 / - 97 ) + + 31 + - 68 AS col0
----
340

query I rowsort
SELECT 19 * - ( - + 65 ) + + 9 + - 8 AS col2
----
1236

onlyif mysql # aggregate syntax: 
query I rowsort label-2670
SELECT DISTINCT - + 39 * + COUNT( DISTINCT - 69 ) + + 26 AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-2670
SELECT DISTINCT - + 39 * + COUNT ( DISTINCT - 69 ) + + 26 AS col2
----
-13

query I rowsort
SELECT - 40 * + 61 + 23
----
-2417

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2672
SELECT - CAST( - 22 AS SIGNED ) * - 91 + - ( 66 )
----
-2068

skipif mysql # not compatible
query I rowsort label-2672
SELECT - CAST ( - 22 AS INTEGER ) * - 91 + - ( 66 )
----
-2068

onlyif mysql # aggregate syntax: 
query I rowsort label-2673
SELECT ALL - COUNT( * ) * 26 * - 94 + + + 59 + + 16 + - + 46
----
2473

skipif mysql # not compatible
query I rowsort label-2673
SELECT ALL - COUNT ( * ) * 26 * - 94 + + + 59 + + 16 + - + 46
----
2473

onlyif mysql # aggregate syntax: 
query I rowsort label-2674
SELECT MIN( - COALESCE ( - 82, - 38, - 17 ) ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-2674
SELECT MIN ( - COALESCE ( - 82, - 38, - 17 ) ) AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT DISTINCT + + 1 * + MIN( ALL - 28 )
----
-28

skipif mysql # not compatible
query I rowsort label-2675
SELECT DISTINCT + + 1 * + MIN ( ALL - 28 )
----
-28

query II rowsort
SELECT + - 44 AS col1, - 3 * + + 69
----
-44
-207

onlyif mysql # aggregate syntax: 
query I rowsort label-2677
SELECT ALL + 92 * - COUNT( * ) + + 82
----
-10

skipif mysql # not compatible
query I rowsort label-2677
SELECT ALL + 92 * - COUNT ( * ) + + 82
----
-10

query I rowsort
SELECT - 29 + - 34 AS col1
----
-63

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

skipif mysql # not compatible
query I rowsort label-2679
SELECT - CAST ( NULL AS INTEGER ) + 85 AS col0
----
NULL

query II rowsort
SELECT ALL 82 * - 37, 22 AS col0
----
-3034
22

query I rowsort
SELECT DISTINCT + 21 * + 13 - - + 81
----
354

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2682
SELECT ALL CASE SUM( ALL - 33 ) WHEN - 65 * COUNT( * ) * - + 72 THEN - - 40 * + 68 WHEN 55 THEN NULL WHEN - 90 + - - MIN( + CAST( - + 63 AS SIGNED ) ) THEN - 87 END * - 2 - - - 85 * 48 * COUNT( - 61 ) - MAX( 11 ) / + 27 + - - 36 + + - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-2682
SELECT ALL CASE SUM ( ALL - 33 ) WHEN - 65 * COUNT ( * ) * - + 72 THEN - - 40 * + 68 WHEN 55 THEN NULL WHEN - 90 + - - MIN ( + CAST ( - + 63 AS INTEGER ) ) THEN - 87 END * - 2 - - - 85 * 48 * COUNT ( - 61 ) - MAX ( 11 ) / + 27 + - - 36 + + - 68
----
NULL

query I rowsort
SELECT ALL + 26 * 26 * - 62 * + + 52
----
-2179424

onlyif mysql # aggregate syntax: 
query I rowsort label-2684
SELECT + 19 + - + 3 * COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-2684
SELECT + 19 + - + 3 * COUNT ( * )
----
16

query I rowsort
SELECT - COALESCE ( - - 72, 5 ) * - 3 + ( - 79 )
----
137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2686
SELECT + CAST( NULL AS SIGNED ) * - - 40 * + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-2686
SELECT + CAST ( NULL AS INTEGER ) * - - 40 * + 5
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2687
SELECT MAX( DISTINCT 83 )
----
83

skipif mysql # not compatible
query I rowsort label-2687
SELECT MAX ( DISTINCT 83 )
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2688
SELECT - ( COUNT( * ) ) AS col0, - 79 * 49 DIV - + 90 AS col1
----
-1
43

skipif mysql # not compatible
query II rowsort label-2688
SELECT - ( COUNT ( * ) ) AS col0, - 79 * 49 / - + 90 AS col1
----
-1
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2689
SELECT ALL CASE + - 22 WHEN + CASE - + AVG ( + - 44 ) WHEN - - 67 * 97 THEN 3 WHEN 45 + + CAST( NULL AS SIGNED ) * - CASE 97 WHEN + 45 THEN NULL ELSE - - 84 + MIN( - 80 ) / + - 41 * COALESCE ( - COUNT( DISTINCT - 76 ), CASE - + 31 WHEN + 58 * + 84 / - + 15 THEN NULL WHEN + 96 THEN 96 ELSE NULL END + 90 / 87 ) END THEN NULL END * 68 THEN + 97 + - CASE 42 + + 49 * 96 WHEN + 27 THEN 24 END * 48 ELSE NULL END * 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2689
SELECT ALL CASE + - 22 WHEN + CASE - + AVG ( + - 44 ) WHEN - - 67 * 97 THEN 3 WHEN 45 + + CAST ( NULL AS INTEGER ) * - CASE 97 WHEN + 45 THEN NULL ELSE - - 84 + MIN ( - 80 ) / + - 41 * COALESCE ( - COUNT ( DISTINCT - 76 ), CASE - + 31 WHEN + 58 * + 84 / - + 15 THEN NULL WHEN + 96 THEN 96 ELSE NULL END + 90 / 87 ) END THEN NULL END * 68 THEN + 97 + - CASE 42 + + 49 * 96 WHEN + 27 THEN 24 END * 48 ELSE NULL END * 49 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2690
SELECT ALL 82 DIV + + 19
----
4

skipif mysql # not compatible
query I rowsort label-2690
SELECT ALL 82 / + + 19
----
4

query I rowsort
SELECT ALL 47 * - NULLIF ( - - 8, + + 67 ) AS col1
----
-376

query I rowsort
SELECT - COALESCE ( + + COALESCE ( + - 62, - - 29 ), - - NULLIF ( + 9, - CASE + - 59 WHEN - + 72 THEN + 6 + 12 WHEN - 88 THEN NULL ELSE NULL END ) + - - 48 * + + 16 ) AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT DISTINCT COUNT( * ) * - 67
----
-67

skipif mysql # not compatible
query I rowsort label-2693
SELECT DISTINCT COUNT ( * ) * - 67
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-2694
SELECT + 29 DIV + 2 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-2694
SELECT + 29 / + 2 AS col1
----
14

query I rowsort
SELECT + 46 + 50
----
96

query I rowsort
SELECT ALL 11 * + 73 col0
----
803

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT + COALESCE ( - 4, + 75 ) * - 8 * + MIN( ALL 92 )
----
2944

skipif mysql # not compatible
query I rowsort label-2697
SELECT + COALESCE ( - 4, + 75 ) * - 8 * + MIN ( ALL 92 )
----
2944

onlyif mysql # aggregate syntax: 
query I rowsort label-2698
SELECT ALL 5 + - MAX( ALL 17 )
----
-12

skipif mysql # not compatible
query I rowsort label-2698
SELECT ALL 5 + - MAX ( ALL 17 )
----
-12

query II rowsort
SELECT + 10 + 80 col1, 77 AS col1
----
90
77

query I rowsort
SELECT - 16 - - - 46
----
-62

query I rowsort
SELECT DISTINCT - 26 + - - 41 * - + 25 - + 32
----
-1083

query I rowsort
SELECT ALL + 88 + + NULLIF ( - 89, + + 95 + 15 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2703
SELECT - - 82 + + - MIN( - 27 )
----
109

skipif mysql # not compatible
query I rowsort label-2703
SELECT - - 82 + + - MIN ( - 27 )
----
109

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2704
SELECT - 20 / COUNT( * ) * + + COUNT( * ) + CAST( NULL AS DECIMAL ) - + 3 / + - 40 + - - COUNT( ALL - + 92 ) + + 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2704
SELECT - 20 / COUNT ( * ) * + + COUNT ( * ) + CAST ( NULL AS REAL ) - + 3 / + - 40 + - - COUNT ( ALL - + 92 ) + + 91 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + + 25 col0
----
25

query I rowsort
SELECT + 0 * - 67
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2707
SELECT DISTINCT + - 99 * - 56, COUNT( * ) * 3 * + + 59 col0
----
5544
177

skipif mysql # not compatible
query II rowsort label-2707
SELECT DISTINCT + - 99 * - 56, COUNT ( * ) * 3 * + + 59 col0
----
5544
177

onlyif mysql # DIV for integer division: 
query I rowsort label-2708
SELECT ALL - 38 DIV - ( - - 33 ) + - 72
----
-71

skipif mysql # not compatible
query I rowsort label-2708
SELECT ALL - 38 / - ( - - 33 ) + - 72
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2709
SELECT DISTINCT - ( - - 14 ) DIV + - 56 - + - ( + MIN( 29 ) ) + COUNT( * ) + + + 7 + + 71 AS col1
----
108

skipif mysql # not compatible
query I rowsort label-2709
SELECT DISTINCT - ( - - 14 ) / + - 56 - + - ( + MIN ( 29 ) ) + COUNT ( * ) + + + 7 + + 71 AS col1
----
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2710
SELECT - 27 DIV - 52 + + COUNT( * ) AS col0, - 65 + NULLIF ( - + ( 98 ), 4 + - + 60 * - 16 )
----
1
-163

skipif mysql # not compatible
query II rowsort label-2710
SELECT - 27 / - 52 + + COUNT ( * ) AS col0, - 65 + NULLIF ( - + ( 98 ), 4 + - + 60 * - 16 )
----
1
-163

query I rowsort
SELECT DISTINCT + 50 * 92 * 15
----
69000

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2712
SELECT ALL + COUNT( * ) DIV - 52 + - - 21 - 63 * + + NULLIF ( 46, 74 ) AS col2
----
-2877

skipif mysql # not compatible
query I rowsort label-2712
SELECT ALL + COUNT ( * ) / - 52 + - - 21 - 63 * + + NULLIF ( 46, 74 ) AS col2
----
-2877

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2713
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + - 87, + 37 AS col0
----
NULL
37

skipif mysql # not compatible
query II rowsort label-2713
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + - 87, + 37 AS col0
----
NULL
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT + COUNT( + 34 )
----
1

skipif mysql # not compatible
query I rowsort label-2714
SELECT + COUNT ( + 34 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2715
SELECT DISTINCT - 67 DIV + + 83 * - + COUNT( * ) * - + 99 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2715
SELECT DISTINCT - 67 / + + 83 * - + COUNT ( * ) * - + 99 AS col0
----
0

query I rowsort
SELECT DISTINCT + NULLIF ( + NULLIF ( - ( + 17 ), 78 ), + 92 + - 84 ) AS col0
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-2717
SELECT - 7 DIV 7 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2717
SELECT - 7 / 7 AS col0
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT CASE 73 WHEN + + ( 53 ) + ( - - 73 ) + - - 24 * + + 65 * - 77 * 27 + - NULLIF ( - 33, MAX( ALL + - 71 ) ) * - 97 * + 84 THEN NULL WHEN 42 THEN + 68 ELSE NULL END * + 3 - 96 + + + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-2719
SELECT CASE 73 WHEN + + ( 53 ) + ( - - 73 ) + - - 24 * + + 65 * - 77 * 27 + - NULLIF ( - 33, MAX ( ALL + - 71 ) ) * - 97 * + 84 THEN NULL WHEN 42 THEN + 68 ELSE NULL END * + 3 - 96 + + + 81
----
NULL

query I rowsort
SELECT ALL + 95 * + - 94 AS col0
----
-8930

onlyif mysql # aggregate syntax: 
query II rowsort label-2721
SELECT DISTINCT + MAX( 50 ) * 98 AS col1, 0 AS col2
----
4900
0

skipif mysql # not compatible
query II rowsort label-2721
SELECT DISTINCT + MAX ( 50 ) * 98 AS col1, 0 AS col2
----
4900
0

query I rowsort
SELECT 23 * 78
----
1794

query I rowsort
SELECT ALL - 51 + + + 51 AS col1
----
0

query I rowsort
SELECT DISTINCT 64 + + 6 AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT DISTINCT + 5 + + CASE + COUNT( * ) WHEN - - 44 THEN 59 * + 23 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2725
SELECT DISTINCT + 5 + + CASE + COUNT ( * ) WHEN - - 44 THEN 59 * + 23 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT 99 + - 9
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2727
SELECT - - CAST( - 71 AS SIGNED ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-2727
SELECT - - CAST ( - 71 AS INTEGER ) AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2728
SELECT ALL + 97 + + - COUNT( * ) + 50 * - ( - 1 ) + - COUNT( * ) AS col2
----
145

skipif mysql # not compatible
query I rowsort label-2728
SELECT ALL + 97 + + - COUNT ( * ) + 50 * - ( - 1 ) + - COUNT ( * ) AS col2
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-2729
SELECT DISTINCT - 39 + - COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-2729
SELECT DISTINCT - 39 + - COUNT ( * )
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2730
SELECT ALL CAST( NULL AS SIGNED ) + + - NULLIF ( - 23, + + MAX( - 29 ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2730
SELECT ALL CAST ( NULL AS INTEGER ) + + - NULLIF ( - 23, + + MAX ( - 29 ) ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2731
SELECT DISTINCT CAST( CASE + + 2 WHEN - + CAST( NULL AS SIGNED ) * + ( + NULLIF ( + 14, - 60 ) ) THEN NULL ELSE - 36 + + NULLIF ( + + 58, - 18 ) END AS SIGNED ) * - 89 AS col0
----
-1958

skipif mysql # not compatible
query I rowsort label-2731
SELECT DISTINCT CAST ( CASE + + 2 WHEN - + CAST ( NULL AS INTEGER ) * + ( + NULLIF ( + 14, - 60 ) ) THEN NULL ELSE - 36 + + NULLIF ( + + 58, - 18 ) END AS INTEGER ) * - 89 AS col0
----
-1958

query II rowsort
SELECT ALL 10, 14 AS col2
----
10
14

query I rowsort
SELECT 45 + - - 84 AS col2
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT - COUNT( * ) * SUM( - - 65 ) + - 82 AS col2
----
-147

skipif mysql # not compatible
query I rowsort label-2734
SELECT - COUNT ( * ) * SUM ( - - 65 ) + - 82 AS col2
----
-147

query I rowsort
SELECT DISTINCT + 14 * + 88
----
1232

onlyif mysql # aggregate syntax: 
query I rowsort label-2736
SELECT + 84 - - 73 * COUNT( * ) AS col2
----
157

skipif mysql # not compatible
query I rowsort label-2736
SELECT + 84 - - 73 * COUNT ( * ) AS col2
----
157

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2737
SELECT + SUM( ALL + 41 ) - + - 42 DIV - - 17
----
43

skipif mysql # not compatible
query I rowsort label-2737
SELECT + SUM ( ALL + 41 ) - + - 42 / - - 17
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT DISTINCT 76 * + MAX( ALL - 3 ) * 89 + MAX( ( - 63 ) ) + - + 36 * + - 71 * + 29 * 23 * 28 + 43 + + NULLIF ( - + 70, 93 ) * + 12
----
47714704

skipif mysql # not compatible
query I rowsort label-2738
SELECT DISTINCT 76 * + MAX ( ALL - 3 ) * 89 + MAX ( ( - 63 ) ) + - + 36 * + - 71 * + 29 * 23 * 28 + 43 + + NULLIF ( - + 70, 93 ) * + 12
----
47714704

query I rowsort
SELECT + CASE + 96 WHEN 99 + 44 THEN NULL ELSE - + 91 END AS col1
----
-91

query I rowsort
SELECT ALL - ( + + 43 ) AS col0
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-2741
SELECT DISTINCT + 62 - ( + - 10 ), COUNT( * ) + + ( 77 ) + + 36 col0
----
72
114

skipif mysql # not compatible
query II rowsort label-2741
SELECT DISTINCT + 62 - ( + - 10 ), COUNT ( * ) + + ( 77 ) + + 36 col0
----
72
114

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2742
SELECT - CAST( NULL AS SIGNED ) AS col2, - NULLIF ( 85, + - 33 )
----
NULL
-85

skipif mysql # not compatible
query II rowsort label-2742
SELECT - CAST ( NULL AS INTEGER ) AS col2, - NULLIF ( 85, + - 33 )
----
NULL
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2743
SELECT + 0 DIV - 46 + - 4 - + + COUNT( * ) * - + 46 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-2743
SELECT + 0 / - 46 + - 4 - + + COUNT ( * ) * - + 46 AS col0
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-2744
SELECT ALL - - COUNT( * ), + 41 * - 22 col1
----
1
-902

skipif mysql # not compatible
query II rowsort label-2744
SELECT ALL - - COUNT ( * ), + 41 * - 22 col1
----
1
-902

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2745
SELECT - ( - - 76 ) * + 35 - + + COUNT( * ) + - 34 * - AVG ( ALL + + 96 ) + + AVG ( ALL 55 ) / + 44 * + + MAX( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2745
SELECT - ( - - 76 ) * + 35 - + + COUNT ( * ) + - 34 * - AVG ( ALL + + 96 ) + + AVG ( ALL 55 ) / + 44 * + + MAX ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2746
SELECT 84 - - - SUM( + 9 ) + + COALESCE ( - 89, + 30 * 94 ) * + COUNT( * ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-2746
SELECT 84 - - - SUM ( + 9 ) + + COALESCE ( - 89, + 30 * 94 ) * + COUNT ( * ) AS col0
----
-14

query I rowsort
SELECT + 0 * 79
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2748
SELECT 14 * - COUNT( * ) * + + 42 + + 25 - + - COALESCE ( + + ( + + 20 ), - 24 * 75 - - + MAX( + 69 ) * - - 23 + + 75 ) * COUNT( * ) - - COUNT( * ) * MIN( 0 ) AS col0
----
-543

skipif mysql # not compatible
query I rowsort label-2748
SELECT 14 * - COUNT ( * ) * + + 42 + + 25 - + - COALESCE ( + + ( + + 20 ), - 24 * 75 - - + MAX ( + 69 ) * - - 23 + + 75 ) * COUNT ( * ) - - COUNT ( * ) * MIN ( 0 ) AS col0
----
-543

onlyif mysql # DIV for integer division: 
query II rowsort label-2749
SELECT 1 * + 34 DIV - 79 * 68 AS col0, - 42 + 49 AS col0
----
0
7

skipif mysql # not compatible
query II rowsort label-2749
SELECT 1 * + 34 / - 79 * 68 AS col0, - 42 + 49 AS col0
----
0
7

onlyif mysql # DIV for integer division: 
query I rowsort label-2750
SELECT 7 DIV + - 13
----
0

skipif mysql # not compatible
query I rowsort label-2750
SELECT 7 / + - 13
----
0

query I rowsort
SELECT DISTINCT 7 * - + 15 col1
----
-105

query I rowsort
SELECT ALL 42 * + 20 col1
----
840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2753
SELECT ALL - NULLIF ( + 15, + CAST( NULL AS SIGNED ) + + 79 ) + 1 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-2753
SELECT ALL - NULLIF ( + 15, + CAST ( NULL AS INTEGER ) + + 79 ) + 1 AS col0
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2754
SELECT ALL + 64 + - - COALESCE ( ( ( + + 66 ) ), - ( - MIN( - - 25 ) ) DIV + COUNT( * ), + 87 + + - 78 ) AS col1
----
130

skipif mysql # not compatible
query I rowsort label-2754
SELECT ALL + 64 + - - COALESCE ( ( ( + + 66 ) ), - ( - MIN ( - - 25 ) ) / + COUNT ( * ), + 87 + + - 78 ) AS col1
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2755
SELECT CAST( - COUNT( * ) AS SIGNED ) + - 13 DIV ( 51 )
----
-1

skipif mysql # not compatible
query I rowsort label-2755
SELECT CAST ( - COUNT ( * ) AS INTEGER ) + - 13 / ( 51 )
----
-1

query I rowsort
SELECT 16 + 3 + - - 24 AS col2
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-2757
SELECT 23 DIV + 70 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2757
SELECT 23 / + 70 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2758
SELECT ALL + CASE - - 91 WHEN 84 - - - COUNT( - 56 ) THEN - + ( 8 ) WHEN + 36 THEN NULL ELSE 28 + + ( + - 21 ) + + 55 END + + 30 AS col2
----
92

skipif mysql # not compatible
query I rowsort label-2758
SELECT ALL + CASE - - 91 WHEN 84 - - - COUNT ( - 56 ) THEN - + ( 8 ) WHEN + 36 THEN NULL ELSE 28 + + ( + - 21 ) + + 55 END + + 30 AS col2
----
92

query I rowsort
SELECT 19 * + 61 + - - 20 AS col1
----
1179

query I rowsort
SELECT 13 + + 87 * - 14 AS col1
----
-1205

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2761
SELECT ALL + NULLIF ( 63, - - 41 ) + - CAST( NULL AS SIGNED ) AS col1, - 91 * + 44 * + + 38
----
NULL
-152152

skipif mysql # not compatible
query II rowsort label-2761
SELECT ALL + NULLIF ( 63, - - 41 ) + - CAST ( NULL AS INTEGER ) AS col1, - 91 * + 44 * + + 38
----
NULL
-152152

onlyif mysql # aggregate syntax: 
query I rowsort label-2762
SELECT DISTINCT COUNT( + ( - 63 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2762
SELECT DISTINCT COUNT ( + ( - 63 ) )
----
1

query I rowsort
SELECT DISTINCT - COALESCE ( - 24, + 81, - 94 ) * 84
----
2016

onlyif mysql # aggregate syntax: 
query II rowsort label-2764
SELECT ALL 32 + - - 38 + 26 - 5 AS col0, + COUNT( * )
----
91
1

skipif mysql # not compatible
query II rowsort label-2764
SELECT ALL 32 + - - 38 + 26 - 5 AS col0, + COUNT ( * )
----
91
1

query I rowsort
SELECT 11 + 27 AS col0
----
38

query I rowsort
SELECT ALL - + ( + 44 ) * COALESCE ( 86, 64 ) AS col2
----
-3784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2767
SELECT ALL + - CAST( NULL AS SIGNED ) - - NULLIF ( 90, + 33 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2767
SELECT ALL + - CAST ( NULL AS INTEGER ) - - NULLIF ( 90, + 33 )
----
NULL

query I rowsort
SELECT + 73 * ( - 38 )
----
-2774

onlyif mysql # aggregate syntax: 
query II rowsort label-2769
SELECT + 82 + - - COUNT( + - ( 95 ) ) AS col2, 51 + - 55 + 20 * + COUNT( + 41 ) AS col0
----
83
16

skipif mysql # not compatible
query II rowsort label-2769
SELECT + 82 + - - COUNT ( + - ( 95 ) ) AS col2, 51 + - 55 + 20 * + COUNT ( + 41 ) AS col0
----
83
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT 81 - - MAX( ALL - - COALESCE ( + + 5, + 22 ) ) + 15 * - 87 AS col1
----
-1219

skipif mysql # not compatible
query I rowsort label-2770
SELECT 81 - - MAX ( ALL - - COALESCE ( + + 5, + 22 ) ) + 15 * - 87 AS col1
----
-1219

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2771
SELECT + CASE + CASE + 45 WHEN - - 89 THEN + + 52 + - 78 WHEN + + 83 * 73 + + 59 + 80 + COUNT( * ) * + 75 * + COUNT( * ) / 2 + + AVG ( ALL - 64 ) / - COUNT( * ) * 1 THEN NULL ELSE - + CASE + COUNT( * ) WHEN + 49 * - 4 + + AVG ( ALL + 80 ) THEN NULL WHEN ( 32 ) THEN - - 10 * - CAST( + + COUNT( * ) AS SIGNED ) * - 14 - 11 END * - COUNT( * ) - - COUNT( * ) END WHEN + CAST( COUNT( * ) AS DECIMAL ) THEN NULL WHEN 50 * - 21 + - 5 / + COUNT( * ) THEN COUNT( * ) END + 24 * 0 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2771
SELECT + CASE + CASE + 45 WHEN - - 89 THEN + + 52 + - 78 WHEN + + 83 * 73 + + 59 + 80 + COUNT ( * ) * + 75 * + COUNT ( * ) / 2 + + AVG ( ALL - 64 ) / - COUNT ( * ) * 1 THEN NULL ELSE - + CASE + COUNT ( * ) WHEN + 49 * - 4 + + AVG ( ALL + 80 ) THEN NULL WHEN ( 32 ) THEN - - 10 * - CAST ( + + COUNT ( * ) AS INTEGER ) * - 14 - 11 END * - COUNT ( * ) - - COUNT ( * ) END WHEN + CAST ( COUNT ( * ) AS REAL ) THEN NULL WHEN 50 * - 21 + - 5 / + COUNT ( * ) THEN COUNT ( * ) END + 24 * 0 AS col2
----
NULL

query I rowsort
SELECT ALL 48 * + 12
----
576

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2773
SELECT DISTINCT - - COUNT( * ) DIV + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-2773
SELECT DISTINCT - - COUNT ( * ) / + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2774
SELECT ALL 6 * - COUNT( * ) DIV - 36 - + 77 * + - ( - 93 )
----
-7161

skipif mysql # not compatible
query I rowsort label-2774
SELECT ALL 6 * - COUNT ( * ) / - 36 - + 77 * + - ( - 93 )
----
-7161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2775
SELECT 9 * + CAST( 85 AS SIGNED ) AS col1
----
765

skipif mysql # not compatible
query I rowsort label-2775
SELECT 9 * + CAST ( 85 AS INTEGER ) AS col1
----
765

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT + + COUNT( 7 )
----
1

skipif mysql # not compatible
query I rowsort label-2776
SELECT + + COUNT ( 7 )
----
1

query I rowsort
SELECT ( + + 46 ) + + 26 - - + 13 + - 88
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2778
SELECT + 72 * - COUNT( + ( + 33 ) ) + - 72 col2
----
-144

skipif mysql # not compatible
query I rowsort label-2778
SELECT + 72 * - COUNT ( + ( + 33 ) ) + - 72 col2
----
-144

query I rowsort
SELECT + + ( - - 50 )
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-2780
SELECT ALL 95 DIV 32 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2780
SELECT ALL 95 / 32 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT SUM( DISTINCT + 17 ) col1
----
17

skipif mysql # not compatible
query I rowsort label-2781
SELECT SUM ( DISTINCT + 17 ) col1
----
17

query I rowsort
SELECT + NULLIF ( + 9, + 66 * - 69 ) AS col0
----
9

query I rowsort
SELECT + 41 * + 72 AS col1
----
2952

onlyif mysql # aggregate syntax: 
query I rowsort label-2784
SELECT COUNT( ALL - 18 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2784
SELECT COUNT ( ALL - 18 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2785
SELECT - 89 * 80 DIV 73 + - COALESCE ( SUM( ALL + ( + 51 ) ), - + 8 ) AS col2
----
-148

skipif mysql # not compatible
query I rowsort label-2785
SELECT - 89 * 80 / 73 + - COALESCE ( SUM ( ALL + ( + 51 ) ), - + 8 ) AS col2
----
-148

query I rowsort
SELECT - 82 * + 59 * - 99 AS col0
----
478962

query I rowsort
SELECT ALL + 65 * 59 + - 6
----
3829

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2788
SELECT MIN( DISTINCT + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2788
SELECT MIN ( DISTINCT + CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT - 89 * 47 - 41 AS col2
----
-4224

query I rowsort
SELECT + CASE 11 WHEN - + 11 * - ( - 40 ) * - 1 * + - 50 + + + 30 THEN NULL ELSE ( 97 ) END AS col0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2791
SELECT DISTINCT CAST( NULL AS SIGNED ) * 56 * - ( 46 ) * 28 + + 40 * + 8 * 36 + + 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2791
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 56 * - ( 46 ) * 28 + + 40 * + 8 * 36 + + 93 AS col2
----
NULL

query II rowsort
SELECT ALL 8 AS col1, + 87 * - 15
----
8
-1305

query II rowsort
SELECT DISTINCT - 54 AS col0, - 49
----
-54
-49

query I rowsort
SELECT ALL + + ( - 68 ) - - 71
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2795
SELECT - CASE - 94 WHEN + CAST( NULL AS SIGNED ) THEN 91 * + 96 / - - CAST( - 46 AS SIGNED ) - COUNT( + 2 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2795
SELECT - CASE - 94 WHEN + CAST ( NULL AS INTEGER ) THEN 91 * + 96 / - - CAST ( - 46 AS INTEGER ) - COUNT ( + 2 ) END
----
NULL

query I rowsort
SELECT + 52 * 73 col0
----
3796

query I rowsort
SELECT - - 45 * - 15
----
-675

onlyif mysql # aggregate syntax: 
query I rowsort label-2798
SELECT - COUNT( * ) + - + 73
----
-74

skipif mysql # not compatible
query I rowsort label-2798
SELECT - COUNT ( * ) + - + 73
----
-74

query I rowsort
SELECT ALL - 65 * - 65 * - 11
----
-46475

onlyif mysql # aggregate syntax: 
query II rowsort label-2800
SELECT ALL 46, - CASE - 80 WHEN + + 2 * 1 + 92 THEN + COUNT( + 7 ) * + 99 * - 98 * + AVG ( 32 ) * - - 68 END AS col1
----
46
NULL

skipif mysql # not compatible
query II rowsort label-2800
SELECT ALL 46, - CASE - 80 WHEN + + 2 * 1 + 92 THEN + COUNT ( + 7 ) * + 99 * - 98 * + AVG ( 32 ) * - - 68 END AS col1
----
46
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2801
SELECT DISTINCT - + 79 * CAST( NULL AS SIGNED ) + - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-2801
SELECT DISTINCT - + 79 * CAST ( NULL AS INTEGER ) + - 3
----
NULL

query I rowsort
SELECT - 7 * - 22 + - 73
----
81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2803
SELECT ALL - ( - CAST( NULL AS DECIMAL ) ) * + 60 * 89 + + - 86 + + 95 / + + 89 * + 32 * + + 68 + COUNT( 66 ) + + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-2803
SELECT ALL - ( - CAST ( NULL AS REAL ) ) * + 60 * 89 + + - 86 + + 95 / + + 89 * + 32 * + + 68 + COUNT ( 66 ) + + 87
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2804
SELECT - COUNT( + 96 )
----
-1

skipif mysql # not compatible
query I rowsort label-2804
SELECT - COUNT ( + 96 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2805
SELECT - + NULLIF ( + COUNT( ALL 23 ), + 92 ) + + 24 * 50 AS col2
----
1199

skipif mysql # not compatible
query I rowsort label-2805
SELECT - + NULLIF ( + COUNT ( ALL 23 ), + 92 ) + + 24 * 50 AS col2
----
1199

query II rowsort
SELECT - NULLIF ( - + 71, + 2 ) AS col2, 36
----
71
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2807
SELECT - - 49 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2807
SELECT - - 49 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2808
SELECT + + COUNT( * ) * 9 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-2808
SELECT + + COUNT ( * ) * 9 AS col2
----
9

query I rowsort
SELECT - 96 + + 95
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2810
SELECT ALL 39 + + CAST( - 7 AS SIGNED ) * COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-2810
SELECT ALL 39 + + CAST ( - 7 AS INTEGER ) * COUNT ( * )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT - COUNT( * ) + ( 41 ) * - 54 AS col2
----
-2215

skipif mysql # not compatible
query I rowsort label-2811
SELECT - COUNT ( * ) + ( 41 ) * - 54 AS col2
----
-2215

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2812
SELECT COUNT( * ) DIV + 46 + 48 + 90 AS col1
----
138

skipif mysql # not compatible
query I rowsort label-2812
SELECT COUNT ( * ) / + 46 + 48 + 90 AS col1
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2813
SELECT DISTINCT NULLIF ( - COUNT( * ), 4 * - ( CAST( NULL AS SIGNED ) ) * + - 20 / - 17 + - - 24 + COUNT( * ) * - - 88 + SUM( + ( + + 63 ) ) * 1 ) * - - 48
----
-48

skipif mysql # not compatible
query I rowsort label-2813
SELECT DISTINCT NULLIF ( - COUNT ( * ), 4 * - ( CAST ( NULL AS INTEGER ) ) * + - 20 / - 17 + - - 24 + COUNT ( * ) * - - 88 + SUM ( + ( + + 63 ) ) * 1 ) * - - 48
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-2814
SELECT + 13 DIV - + 31 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2814
SELECT + 13 / - + 31 AS col2
----
0

query I rowsort
SELECT + 30 - 86 * - 79 AS col1
----
6824

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2816
SELECT 37 * - + 3 * + 54 + CAST( MIN( 13 ) AS SIGNED )
----
-5981

skipif mysql # not compatible
query I rowsort label-2816
SELECT 37 * - + 3 * + 54 + CAST ( MIN ( 13 ) AS INTEGER )
----
-5981

query I rowsort
SELECT + 6 - - 9 AS col0
----
15

query II rowsort
SELECT ALL + 68, 64 col0
----
68
64

query I rowsort
SELECT + 70 + + 15
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2820
SELECT DISTINCT CAST( NULL AS SIGNED ) / SUM( 23 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2820
SELECT DISTINCT CAST ( NULL AS INTEGER ) / SUM ( 23 ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2821
SELECT - 22 * - 68 + - ( - COUNT( * ) ) - 1 col1
----
1496

skipif mysql # not compatible
query I rowsort label-2821
SELECT - 22 * - 68 + - ( - COUNT ( * ) ) - 1 col1
----
1496

query I rowsort
SELECT ALL - 5 * + 3 - 87 + 50 col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2823
SELECT + ( + ( COUNT( ALL - ( + + 68 ) ) ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-2823
SELECT + ( + ( COUNT ( ALL - ( + + 68 ) ) ) ) col2
----
1

query I rowsort
SELECT + 16 + + + ( - 69 ) AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2825
SELECT + 28 + + - COUNT( ALL - 63 ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-2825
SELECT + 28 + + - COUNT ( ALL - 63 ) AS col0
----
27

query I rowsort
SELECT + 4 * - - 28
----
112

query II rowsort
SELECT + - 43, 55 AS col1
----
-43
55

onlyif mysql # aggregate syntax: 
query II rowsort label-2828
SELECT ALL - 31 col0, SUM( ALL + 36 ) AS col1
----
-31
36

skipif mysql # not compatible
query II rowsort label-2828
SELECT ALL - 31 col0, SUM ( ALL + 36 ) AS col1
----
-31
36

query I rowsort
SELECT + + 88 + - 55 + 33 * - 4 * + - 68 * + - 42
----
-376959

query I rowsort
SELECT DISTINCT 42 * - 28 AS col1
----
-1176

query II rowsort
SELECT ALL 63 AS col0, + 76
----
63
76

query I rowsort
SELECT + + 39 * 20
----
780

query I rowsort
SELECT - 0 + - ( - + NULLIF ( - 25, 89 ) ) AS col0
----
-25

query II rowsort
SELECT ALL 69, - 20 * + + 35 AS col1
----
69
-700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2835
SELECT ALL + - CAST( NULL AS SIGNED ) / 39 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2835
SELECT ALL + - CAST ( NULL AS INTEGER ) / 39 col1
----
NULL

query II rowsort
SELECT - - 38 AS col0, - 75 + - 12 col2
----
38
-87

query I rowsort
SELECT 82 * 22
----
1804

onlyif mysql # aggregate syntax: 
query I rowsort label-2838
SELECT ALL - - 10 + COUNT( * ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-2838
SELECT ALL - - 10 + COUNT ( * ) AS col2
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2839
SELECT COUNT( ALL - 51 ) + 57 + + - CAST( NULL AS DECIMAL ) * + ( - - COALESCE ( + COUNT( * ), 10 + 6 * + 8 + - CAST( NULL AS SIGNED ), - - 50 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2839
SELECT COUNT ( ALL - 51 ) + 57 + + - CAST ( NULL AS REAL ) * + ( - - COALESCE ( + COUNT ( * ), 10 + 6 * + 8 + - CAST ( NULL AS INTEGER ), - - 50 ) ) AS col2
----
NULL

query I rowsort
SELECT ALL + NULLIF ( - 11, - 50 )
----
-11

query II rowsort
SELECT DISTINCT - 89 col2, - 87 AS col1
----
-89
-87

query II rowsort
SELECT ALL - 4 + + + 76, 38 * - 10 col2
----
72
-380

onlyif mysql # DIV for integer division: 
query I rowsort label-2843
SELECT - 7 DIV ( 16 ) + - 81 DIV 39 DIV + 55
----
0

skipif mysql # not compatible
query I rowsort label-2843
SELECT - 7 / ( 16 ) + - 81 / 39 / + 55
----
0

query I rowsort
SELECT ALL + 32 + + 86
----
118

query I rowsort
SELECT 26 + 2 col1
----
28

query I rowsort
SELECT ALL + NULLIF ( + 66, - 13 + 13 + 69 - - 36 * + 95 ) + + - 68
----
-2

query I rowsort
SELECT 7 * + 51
----
357

onlyif mysql # aggregate syntax: 
query I rowsort label-2848
SELECT COUNT( * ) * 51 * - + 88 * + - 4 AS col2
----
17952

skipif mysql # not compatible
query I rowsort label-2848
SELECT COUNT ( * ) * 51 * - + 88 * + - 4 AS col2
----
17952

query I rowsort
SELECT ALL 52 * - 86
----
-4472

onlyif mysql # aggregate syntax: 
query I rowsort label-2850
SELECT COUNT( * ) + + CASE 93 WHEN - 48 * - + 51 * + 97 + AVG ( + - 16 ) THEN 22 * COALESCE ( - 44, + + 48 * 81, - COALESCE ( - - 62, - 96 ) + + + 42 * + 85 / 22 ) WHEN - 3 THEN 35 * + COUNT( 96 ) END + - + 81 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2850
SELECT COUNT ( * ) + + CASE 93 WHEN - 48 * - + 51 * + 97 + AVG ( + - 16 ) THEN 22 * COALESCE ( - 44, + + 48 * 81, - COALESCE ( - - 62, - 96 ) + + + 42 * + 85 / 22 ) WHEN - 3 THEN 35 * + COUNT ( 96 ) END + - + 81 AS col2
----
NULL

query I rowsort
SELECT 22 * 93 * - 74 AS col2
----
-151404

query I rowsort
SELECT 31 * + COALESCE ( + 94, 64 ) AS col2
----
2914

query II rowsort
SELECT ( + 56 ), - 91 col1
----
56
-91

query I rowsort
SELECT DISTINCT + + 21 * + - 41 AS col1
----
-861

onlyif mysql # aggregate syntax: 
query I rowsort label-2855
SELECT ALL - 29 * - CASE 97 WHEN - - COUNT( * ) * 30 + - COUNT( * ) + + + COUNT( * ) * + CASE + CASE 60 WHEN 50 THEN + 44 WHEN + - 55 - + 88 * 93 * - - 51 - - 5 * ( - - 63 ) THEN NULL WHEN + NULLIF ( + 69, - COUNT( * ) ) * + + 70 / - 69 THEN NULL ELSE 7 END WHEN - - CASE - - CASE WHEN NOT 73 > + - COALESCE ( - - 83, 36 * - 78 + COUNT( * ), - 47 ) * - COUNT( ALL 80 * 74 ) AND ( 29 ) NOT BETWEEN NULL AND ( + 99 - ( 98 - + 61 / 57 ) ) THEN + SUM( 28 ) + - COALESCE ( 7, + 34 / + COUNT( * ) ) * MIN( + 39 ) WHEN NOT - 55 >= + 94 THEN NULL END WHEN - ( + 31 ) - 31 THEN 66 END THEN 73 END * + COUNT( 39 * ( - 92 ) ) THEN + SUM( + 5 ) - + COALESCE ( MAX( 8 ) + 12 / 1, + 90 - + 41 / + 51 ) WHEN + COUNT( * ) * + 46 + + 68 THEN NULL ELSE NULL END + 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2855
SELECT ALL - 29 * - CASE 97 WHEN - - COUNT ( * ) * 30 + - COUNT ( * ) + + + COUNT ( * ) * + CASE + CASE 60 WHEN 50 THEN + 44 WHEN + - 55 - + 88 * 93 * - - 51 - - 5 * ( - - 63 ) THEN NULL WHEN + NULLIF ( + 69, - COUNT ( * ) ) * + + 70 / - 69 THEN NULL ELSE 7 END WHEN - - CASE - - CASE WHEN NOT 73 > + - COALESCE ( - - 83, 36 * - 78 + COUNT ( * ), - 47 ) * - COUNT ( ALL 80 * 74 ) AND ( 29 ) NOT BETWEEN NULL AND ( + 99 - ( 98 - + 61 / 57 ) ) THEN + SUM ( 28 ) + - COALESCE ( 7, + 34 / + COUNT ( * ) ) * MIN ( + 39 ) WHEN NOT - 55 >= + 94 THEN NULL END WHEN - ( + 31 ) - 31 THEN 66 END THEN 73 END * + COUNT ( 39 * ( - 92 ) ) THEN + SUM ( + 5 ) - + COALESCE ( MAX ( 8 ) + 12 / 1, + 90 - + 41 / + 51 ) WHEN + COUNT ( * ) * + 46 + + 68 THEN NULL ELSE NULL END + 55 AS col2
----
NULL

query II rowsort
SELECT + 48 * - 86, - 76 AS col1
----
-4128
-76

query I rowsort
SELECT ( - - 40 ) * + 29 * - 40 * + 87 AS col2
----
-4036800

onlyif mysql # aggregate syntax: 
query I rowsort label-2858
SELECT 15 * 45 * - COUNT( * ) + + 4 AS col0
----
-671

skipif mysql # not compatible
query I rowsort label-2858
SELECT 15 * 45 * - COUNT ( * ) + + 4 AS col0
----
-671

query I rowsort
SELECT 18 * + 59 - ( - 3 )
----
1065

onlyif mysql # aggregate syntax: 
query I rowsort label-2860
SELECT + 64 * 84 + - 81 + - - COUNT( * ) * + - COALESCE ( - 73, - 70 * + 30 + + 79 ) AS col2
----
5368

skipif mysql # not compatible
query I rowsort label-2860
SELECT + 64 * 84 + - 81 + - - COUNT ( * ) * + - COALESCE ( - 73, - 70 * + 30 + + 79 ) AS col2
----
5368

query II rowsort
SELECT ALL - 10 + - 65, + 98 * - 89 * - 80 * - - 43 AS col0
----
-75
30003680

query I rowsort
SELECT ALL 17 + - 18
----
-1

query I rowsort
SELECT - COALESCE ( + 17, 7 ) * - 91
----
1547

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2864
SELECT DISTINCT + NULLIF ( - - 42, + + 86 / - - COALESCE ( - 65, - - COUNT( - 70 ), + 83 - ( + 90 ) + + 24 * + 74 * + ( CAST( + COUNT( * ) AS SIGNED ) ) / + ( - - 81 ) * + COUNT( * ) * + - 62 - 1 * MIN( DISTINCT + 36 ) - - NULLIF ( - + 86, - 28 ), 28 ) + + 41 * - 53 * - 91 + + 31 + 65 * 37 )
----
42

skipif mysql # not compatible
query I rowsort label-2864
SELECT DISTINCT + NULLIF ( - - 42, + + 86 / - - COALESCE ( - 65, - - COUNT ( - 70 ), + 83 - ( + 90 ) + + 24 * + 74 * + ( CAST ( + COUNT ( * ) AS INTEGER ) ) / + ( - - 81 ) * + COUNT ( * ) * + - 62 - 1 * MIN ( DISTINCT + 36 ) - - NULLIF ( - + 86, - 28 ), 28 ) + + 41 * - 53 * - 91 + + 31 + 65 * 37 )
----
42

query I rowsort
SELECT 81 + - 57
----
24

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2866
SELECT 17 DIV + CAST( - - 25 AS SIGNED ) * 29 * 3 * 68 DIV 58 * + + 9, 15 AS col1
----
0
15

skipif mysql # not compatible
query II rowsort label-2866
SELECT 17 / + CAST ( - - 25 AS INTEGER ) * 29 * 3 * 68 / 58 * + + 9, 15 AS col1
----
0
15

query I rowsort
SELECT 88 * + 47 * 69 AS col1
----
285384

onlyif mysql # DIV for integer division: 
query I rowsort label-2868
SELECT DISTINCT 30 DIV + + 7
----
4

skipif mysql # not compatible
query I rowsort label-2868
SELECT DISTINCT 30 / + + 7
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2869
SELECT ( + 85 ) - + 48 * - COUNT( * )
----
133

skipif mysql # not compatible
query I rowsort label-2869
SELECT ( + 85 ) - + 48 * - COUNT ( * )
----
133

query I rowsort
SELECT 7 + + + 21 AS col0
----
28

query I rowsort
SELECT 16 + - 34 * + - 49 + + 7
----
1689

onlyif mysql # aggregate syntax: 
query I rowsort label-2872
SELECT ALL + NULLIF ( - COALESCE ( - 79, - COUNT( * ) * + 66 ), - COUNT( 30 ) ) * 62
----
4898

skipif mysql # not compatible
query I rowsort label-2872
SELECT ALL + NULLIF ( - COALESCE ( - 79, - COUNT ( * ) * + 66 ), - COUNT ( 30 ) ) * 62
----
4898

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2873
SELECT 10 DIV + 88 + - NULLIF ( + 97, - ( + - 89 ) DIV - SUM( ALL - 18 ) * - 68 - + COUNT( * ) - 30 - + 18 )
----
-97

skipif mysql # not compatible
query I rowsort label-2873
SELECT 10 / + 88 + - NULLIF ( + 97, - ( + - 89 ) / - SUM ( ALL - 18 ) * - 68 - + COUNT ( * ) - 30 - + 18 )
----
-97

query II rowsort
SELECT - 14 * + + 5 + - 76 AS col0, - 93 col1
----
-146
-93

query I rowsort
SELECT 42 - 33 col1
----
9

query I rowsort
SELECT ALL + 1 * - 94 AS col2
----
-94

query I rowsort
SELECT DISTINCT - ( - ( - 77 ) ) AS col0
----
-77

onlyif mysql # DIV for integer division: 
query II rowsort label-2878
SELECT 38 DIV - 94 + 44 + + NULLIF ( + 81, 15 ), 73 AS col1
----
125
73

skipif mysql # not compatible
query II rowsort label-2878
SELECT 38 / - 94 + 44 + + NULLIF ( + 81, 15 ), 73 AS col1
----
125
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2879
SELECT ALL - COALESCE ( - COUNT( * ), - + ( - ( + 58 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-2879
SELECT ALL - COALESCE ( - COUNT ( * ), - + ( - ( + 58 ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2880
SELECT ALL - SUM( 80 ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-2880
SELECT ALL - SUM ( 80 ) AS col1
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-2881
SELECT DISTINCT - 80, ( COUNT( ALL 41 ) ) - - - 40 + 32 AS col0
----
-80
-7

skipif mysql # not compatible
query II rowsort label-2881
SELECT DISTINCT - 80, ( COUNT ( ALL 41 ) ) - - - 40 + 32 AS col0
----
-80
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2882
SELECT 88 * - 61 * COUNT( * ) + - 66 AS col0
----
-5434

skipif mysql # not compatible
query I rowsort label-2882
SELECT 88 * - 61 * COUNT ( * ) + - 66 AS col0
----
-5434

query I rowsort
SELECT ALL 99 + - 98 AS col1
----
1

query II rowsort
SELECT + 19 col0, + 16 AS col0
----
19
16

query I rowsort
SELECT + 82 * 56 * - ( 68 ) AS col0
----
-312256

query I rowsort
SELECT DISTINCT - 84 * - 72
----
6048

query I rowsort
SELECT ALL + 25 + + 79 AS col2
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-2888
SELECT - - 20 + COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-2888
SELECT - - 20 + COUNT ( * )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2889
SELECT + + MAX( ALL - 83 ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-2889
SELECT + + MAX ( ALL - 83 ) AS col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2890
SELECT + - NULLIF ( - 7, + COALESCE ( + 21, + + COUNT( * ) ) + + + 13 )
----
7

skipif mysql # not compatible
query I rowsort label-2890
SELECT + - NULLIF ( - 7, + COALESCE ( + 21, + + COUNT ( * ) ) + + + 13 )
----
7

query I rowsort
SELECT - 22 * + 1 + + 8 AS col1
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-2892
SELECT - 9, + COUNT( * ) AS col2
----
-9
1

skipif mysql # not compatible
query II rowsort label-2892
SELECT - 9, + COUNT ( * ) AS col2
----
-9
1

query I rowsort
SELECT ALL + 81 * - + 26 * + 96 AS col1
----
-202176

query I rowsort
SELECT ALL - 90 + 51
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2895
SELECT + + CAST( NULL AS SIGNED ) + + 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2895
SELECT + + CAST ( NULL AS INTEGER ) + + 57 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT ALL + 99 + - MIN( - + 39 )
----
138

skipif mysql # not compatible
query I rowsort label-2896
SELECT ALL + 99 + - MIN ( - + 39 )
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT + 83 + + MAX( DISTINCT + + 85 ) col2
----
168

skipif mysql # not compatible
query I rowsort label-2897
SELECT + 83 + + MAX ( DISTINCT + + 85 ) col2
----
168

query II rowsort
SELECT + 95 * + 94, + 88 AS col0
----
8930
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2899
SELECT + 60 + 70 + - COUNT( DISTINCT + 93 ) * + 78 + + 27 * - + COALESCE ( + ( + 13 ), - + 8 ) AS col1
----
-299

skipif mysql # not compatible
query I rowsort label-2899
SELECT + 60 + 70 + - COUNT ( DISTINCT + 93 ) * + 78 + + 27 * - + COALESCE ( + ( + 13 ), - + 8 ) AS col1
----
-299

query I rowsort
SELECT ALL - 14 * + 33 col1
----
-462

query I rowsort
SELECT + 65 * - 4 col0
----
-260

query I rowsort
SELECT + 0 * ( - 12 ) AS col2
----
0

query I rowsort
SELECT + 17 + 54 AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT + 29 * - 84 * + + SUM( DISTINCT 20 ) * + 6 * - + 78 AS col0
----
22800960

skipif mysql # not compatible
query I rowsort label-2904
SELECT + 29 * - 84 * + + SUM ( DISTINCT 20 ) * + 6 * - + 78 AS col0
----
22800960

onlyif mysql # aggregate syntax: 
query I rowsort label-2905
SELECT + CASE + + 62 WHEN 57 * - 88 + - + 80 THEN NULL WHEN + COUNT( * ) / MAX( DISTINCT - 60 ) THEN NULL WHEN - 46 * + 7 / 87 / 72 * 50 * - NULLIF ( - - 42, - 91 - - 86 ) THEN + 37 WHEN + 13 THEN 47 * + + 18 + - - CASE + 16 WHEN 87 * - 11 * - 98 / - MIN( ALL + 5 ) THEN - 19 WHEN 54 THEN NULL END + - - 16 / - 16 + + + COUNT( * ) * + 76 ELSE NULL END + ( + 41 + + 13 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2905
SELECT + CASE + + 62 WHEN 57 * - 88 + - + 80 THEN NULL WHEN + COUNT ( * ) / MAX ( DISTINCT - 60 ) THEN NULL WHEN - 46 * + 7 / 87 / 72 * 50 * - NULLIF ( - - 42, - 91 - - 86 ) THEN + 37 WHEN + 13 THEN 47 * + + 18 + - - CASE + 16 WHEN 87 * - 11 * - 98 / - MIN ( ALL + 5 ) THEN - 19 WHEN 54 THEN NULL END + - - 16 / - 16 + + + COUNT ( * ) * + 76 ELSE NULL END + ( + 41 + + 13 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT + 64 * - COUNT( ALL - + 6 )
----
-64

skipif mysql # not compatible
query I rowsort label-2906
SELECT + 64 * - COUNT ( ALL - + 6 )
----
-64

query I rowsort
SELECT + NULLIF ( + + 10, 93 + - + 22 + - + 66 + + 53 * - 53 )
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2908
SELECT - SUM( - 45 ) DIV 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2908
SELECT - SUM ( - 45 ) / 95 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2909
SELECT + SUM( - - 66 ) DIV - - COUNT( * ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-2909
SELECT + SUM ( - - 66 ) / - - COUNT ( * ) AS col2
----
66

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2910
SELECT DISTINCT ( + - COUNT( - 4 ) ) * CAST( NULL AS DECIMAL ) + - + 33 - + COUNT( * ) - + 13 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2910
SELECT DISTINCT ( + - COUNT ( - 4 ) ) * CAST ( NULL AS REAL ) + - + 33 - + COUNT ( * ) - + 13 col0
----
NULL

query I rowsort
SELECT + + 15 * + 86 * + 39 AS col1
----
50310

query I rowsort
SELECT + 87 + ( - 74 ) AS col0
----
13

query I rowsort
SELECT + COALESCE ( 93, + 33 )
----
93

query I rowsort
SELECT + 20 * 60 - + 7 AS col2
----
1193

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2915
SELECT DISTINCT + + COALESCE ( - 88, - ( + 84 ) DIV - 86 DIV COUNT( * ) + + 64, + 44 )
----
-88

skipif mysql # not compatible
query I rowsort label-2915
SELECT DISTINCT + + COALESCE ( - 88, - ( + 84 ) / - 86 / COUNT ( * ) + + 64, + 44 )
----
-88

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2916
SELECT ALL - CAST( NULL AS DECIMAL ) * + + 36 * - - 54 + + 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2916
SELECT ALL - CAST ( NULL AS REAL ) * + + 36 * - - 54 + + 78 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2917
SELECT DISTINCT - - ( - - COUNT( * ) ) * + COUNT( * ) DIV - 48 AS col0, COALESCE ( + ( + 64 ), SUM( - 82 ) ) col0
----
0
64

skipif mysql # not compatible
query II rowsort label-2917
SELECT DISTINCT - - ( - - COUNT ( * ) ) * + COUNT ( * ) / - 48 AS col0, COALESCE ( + ( + 64 ), SUM ( - 82 ) ) col0
----
0
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT ALL - - COUNT( * ) * + + 38 + + 31 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-2918
SELECT ALL - - COUNT ( * ) * + + 38 + + 31 AS col2
----
69

query I rowsort
SELECT - NULLIF ( + + 2, + 40 )
----
-2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2920
SELECT DISTINCT + - 61 * + CAST( NULL AS DECIMAL ) * + 86 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2920
SELECT DISTINCT + - 61 * + CAST ( NULL AS REAL ) * + 86 AS col2
----
NULL

query I rowsort
SELECT ALL + ( + - 70 ) * 41 AS col1
----
-2870

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2922
SELECT - 49 DIV - - COUNT( * ) col0
----
-49

skipif mysql # not compatible
query I rowsort label-2922
SELECT - 49 / - - COUNT ( * ) col0
----
-49

query I rowsort
SELECT - + ( + - 20 ) AS col2
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-2924
SELECT DISTINCT + 91 * - 56 * - - COUNT( * ), - 2 + + COUNT( 90 ) AS col1
----
-5096
-1

skipif mysql # not compatible
query II rowsort label-2924
SELECT DISTINCT + 91 * - 56 * - - COUNT ( * ), - 2 + + COUNT ( 90 ) AS col1
----
-5096
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2925
SELECT DISTINCT - COALESCE ( 11, + COUNT( * ), 16 ) * + 26 - - + 9 + - COUNT( * )
----
-278

skipif mysql # not compatible
query I rowsort label-2925
SELECT DISTINCT - COALESCE ( 11, + COUNT ( * ), 16 ) * + 26 - - + 9 + - COUNT ( * )
----
-278

query I rowsort
SELECT - 12 + + 86
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT + 11 * - MAX( - + ( ( + - 74 ) ) )
----
-814

skipif mysql # not compatible
query I rowsort label-2927
SELECT + 11 * - MAX ( - + ( ( + - 74 ) ) )
----
-814

onlyif mysql # aggregate syntax: 
query I rowsort label-2928
SELECT - SUM( - 95 ) + 35 - + COUNT( * ) + - 0 AS col1
----
129

skipif mysql # not compatible
query I rowsort label-2928
SELECT - SUM ( - 95 ) + 35 - + COUNT ( * ) + - 0 AS col1
----
129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2929
SELECT - CAST( - 25 AS SIGNED ) col0
----
25

skipif mysql # not compatible
query I rowsort label-2929
SELECT - CAST ( - 25 AS INTEGER ) col0
----
25

query I rowsort
SELECT DISTINCT + 29 + - - 59 * COALESCE ( ( + 13 ), - 70 + + COALESCE ( - 82, 34 - + 84, + - 26 ) - - 89 - ( - - 28 ) * + 17, - 75 * - + 99, + 58 )
----
796

onlyif mysql # aggregate syntax: 
query I rowsort label-2931
SELECT ALL 70 * SUM( 26 )
----
1820

skipif mysql # not compatible
query I rowsort label-2931
SELECT ALL 70 * SUM ( 26 )
----
1820

query I rowsort
SELECT + 75 * 39
----
2925

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2933
SELECT DISTINCT SUM( + 36 ) DIV + 33 + 60 + 51 + - - CAST( 79 AS SIGNED ) - + - 6
----
197

skipif mysql # not compatible
query I rowsort label-2933
SELECT DISTINCT SUM ( + 36 ) / + 33 + 60 + 51 + - - CAST ( 79 AS INTEGER ) - + - 6
----
197

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2934
SELECT + CAST( - 71 AS SIGNED ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-2934
SELECT + CAST ( - 71 AS INTEGER ) AS col0
----
-71

query I rowsort
SELECT ALL 34 * - 13 AS col0
----
-442

onlyif mysql # DIV for integer division: 
query II rowsort label-2936
SELECT - 39 DIV 81 * + 16, 41 AS col2
----
0
41

skipif mysql # not compatible
query II rowsort label-2936
SELECT - 39 / 81 * + 16, 41 AS col2
----
0
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT + - 80 + - COUNT( * ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-2937
SELECT + - 80 + - COUNT ( * ) AS col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2938
SELECT DISTINCT + CASE + MIN( 53 ) WHEN - + NULLIF ( - + 80, - + 78 * - COALESCE ( 16, 69 * - 6 + + - 61 ) ) THEN - COUNT( * ) WHEN - ( - - 81 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2938
SELECT DISTINCT + CASE + MIN ( 53 ) WHEN - + NULLIF ( - + 80, - + 78 * - COALESCE ( 16, 69 * - 6 + + - 61 ) ) THEN - COUNT ( * ) WHEN - ( - - 81 ) THEN NULL END
----
NULL

query I rowsort
SELECT + + 11 * 80 + + 95 + - 52 + - 79 * - 96
----
8507

query II rowsort
SELECT + 32, - 5 * 78 col1
----
32
-390

onlyif mysql # DIV for integer division: 
query I rowsort label-2941
SELECT 31 DIV - + 46 + + 20 + - 9
----
11

skipif mysql # not compatible
query I rowsort label-2941
SELECT 31 / - + 46 + + 20 + - 9
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2942
SELECT ALL COUNT( * ) + - 31 col2
----
-30

skipif mysql # not compatible
query I rowsort label-2942
SELECT ALL COUNT ( * ) + - 31 col2
----
-30

query I rowsort
SELECT 13 + + 71
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2944
SELECT ALL 61 * 60 * - - 49 + + + 62 DIV - - COUNT( * ) col0
----
179402

skipif mysql # not compatible
query I rowsort label-2944
SELECT ALL 61 * 60 * - - 49 + + + 62 / - - COUNT ( * ) col0
----
179402

onlyif mysql # aggregate syntax: 
query I rowsort label-2945
SELECT ALL COUNT( * ) + - + 6 * 34 * + 1 AS col1
----
-203

skipif mysql # not compatible
query I rowsort label-2945
SELECT ALL COUNT ( * ) + - + 6 * 34 * + 1 AS col1
----
-203

onlyif mysql # DIV for integer division: 
query I rowsort label-2946
SELECT DISTINCT 9 DIV 60
----
0

skipif mysql # not compatible
query I rowsort label-2946
SELECT DISTINCT 9 / 60
----
0

query I rowsort
SELECT ALL - 43 * + + ( - 6 )
----
258

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2948
SELECT CAST( + MAX( - + 12 ) AS SIGNED ) + NULLIF ( - 60, CAST( NULL AS DECIMAL ) ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-2948
SELECT CAST ( + MAX ( - + 12 ) AS INTEGER ) + NULLIF ( - 60, CAST ( NULL AS REAL ) ) AS col0
----
-72

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2949
SELECT ALL 50 * + CAST( NULL AS DECIMAL ) / + CAST( NULL AS SIGNED ) / - 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2949
SELECT ALL 50 * + CAST ( NULL AS REAL ) / + CAST ( NULL AS INTEGER ) / - 62 AS col1
----
NULL

query I rowsort
SELECT 92 + + - 10
----
82

query I rowsort
SELECT ALL 7 * 35
----
245

query I rowsort
SELECT ALL + 21 * - 15 col2
----
-315

onlyif mysql # aggregate syntax: 
query II rowsort label-2953
SELECT DISTINCT 15 AS col0, + COUNT( * ) AS col2
----
15
1

skipif mysql # not compatible
query II rowsort label-2953
SELECT DISTINCT 15 AS col0, + COUNT ( * ) AS col2
----
15
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT ALL + COUNT( * ) * + - 53 * - - 64
----
-3392

skipif mysql # not compatible
query I rowsort label-2954
SELECT ALL + COUNT ( * ) * + - 53 * - - 64
----
-3392

onlyif mysql # aggregate syntax: 
query I rowsort label-2955
SELECT 32 + COUNT( * ) + + 23 * + 0 * + 24 * - - COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-2955
SELECT 32 + COUNT ( * ) + + 23 * + 0 * + 24 * - - COUNT ( * )
----
33

query I rowsort
SELECT 16 * - 25
----
-400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-2957
SELECT COUNT( ALL - + CAST( NULL AS SIGNED ) ) + 76 + - - COUNT( * ) + - COUNT( * ) - + - 85 * + 6 AS col2, 95 - - COALESCE ( + MIN( ALL ( - 22 ) ), + 66 + 45 ) AS col0, + - 2
----
586
73
-2

skipif mysql # not compatible
query III rowsort label-2957
SELECT COUNT ( ALL - + CAST ( NULL AS INTEGER ) ) + 76 + - - COUNT ( * ) + - COUNT ( * ) - + - 85 * + 6 AS col2, 95 - - COALESCE ( + MIN ( ALL ( - 22 ) ), + 66 + 45 ) AS col0, + - 2
----
586
73
-2

query I rowsort
SELECT ALL + 42 * - 50
----
-2100

query II rowsort
SELECT - 31, 75 AS col0
----
-31
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2960
SELECT 61 + 94 + 91 + - COALESCE ( - 49, - + 62 - - MAX( 73 ) + - 77 * MAX( - 20 ) )
----
295

skipif mysql # not compatible
query I rowsort label-2960
SELECT 61 + 94 + 91 + - COALESCE ( - 49, - + 62 - - MAX ( 73 ) + - 77 * MAX ( - 20 ) )
----
295

query II rowsort
SELECT - 34, - 34 * + 92 * + + 77 + + 39 AS col0
----
-34
-240817

query II rowsort
SELECT DISTINCT 36, + 96 AS col2
----
36
96

query I rowsort
SELECT ALL - 52 + 0
----
-52

query I rowsort
SELECT DISTINCT + 98 + - - 88
----
186

query II rowsort
SELECT DISTINCT 95 AS col1, + 83
----
95
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2966
SELECT ALL COUNT( * ) + + COUNT( * ) DIV - 69 * - + 65 + - ( + COUNT( * ) ) - - - 96 col1
----
-96

skipif mysql # not compatible
query I rowsort label-2966
SELECT ALL COUNT ( * ) + + COUNT ( * ) / - 69 * - + 65 + - ( + COUNT ( * ) ) - - - 96 col1
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-2967
SELECT ALL + 53 + 70 DIV - 89 + - + 72
----
-19

skipif mysql # not compatible
query I rowsort label-2967
SELECT ALL + 53 + 70 / - 89 + - + 72
----
-19

query I rowsort
SELECT 41 * - 76 AS col1
----
-3116

query II rowsort
SELECT 26, 64 AS col1
----
26
64

onlyif mysql # aggregate syntax: 
query II rowsort label-2970
SELECT 61, COUNT( * ) col2
----
61
1

skipif mysql # not compatible
query II rowsort label-2970
SELECT 61, COUNT ( * ) col2
----
61
1

query I rowsort
SELECT ALL - + 24 + - + 68
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2972
SELECT - 53 * - 81 + - - 23 * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2972
SELECT - 53 * - 81 + - - 23 * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 92 * 87 AS col2
----
-8004

onlyif mysql # DIV for integer division: 
query I rowsort label-2974
SELECT ALL - + COALESCE ( + - 30, - ( + 65 ), - 2 ) + - ( + 57 ) DIV + NULLIF ( + ( + + 69 ), 56 * + 19 + 37 + 94 ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-2974
SELECT ALL - + COALESCE ( + - 30, - ( + 65 ), - 2 ) + - ( + 57 ) / + NULLIF ( + ( + + 69 ), 56 * + 19 + 37 + 94 ) AS col0
----
30

query I rowsort
SELECT DISTINCT 49 * + 32 + + + 66 AS col0
----
1634

query I rowsort
SELECT DISTINCT 54 - + 91 + + 39 * 61 * + COALESCE ( 84, - 60 )
----
199799

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT ( + 58 ) * + COUNT( * ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-2977
SELECT ( + 58 ) * + COUNT ( * ) AS col0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2978
SELECT ALL + - CAST( NULL AS SIGNED ) * - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-2978
SELECT ALL + - CAST ( NULL AS INTEGER ) * - 17
----
NULL

query I rowsort
SELECT ALL - 14 - + 98 * + 37
----
-3640

query I rowsort
SELECT + 86 + - - 14 AS col0
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-2981
SELECT 96 DIV - - 43 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2981
SELECT 96 / - - 43 AS col2
----
2

query I rowsort
SELECT 84 * - 49 AS col2
----
-4116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2983
SELECT - 28 * + 73 / + 74 + - 42 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2983
SELECT - 28 * + 73 / + 74 + - 42 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2984
SELECT COUNT( * ), - 77 * - + 3 AS col1
----
1
231

skipif mysql # not compatible
query II rowsort label-2984
SELECT COUNT ( * ), - 77 * - + 3 AS col1
----
1
231

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2985
SELECT ALL - MIN( DISTINCT - + 47 ) DIV + 5
----
9

skipif mysql # not compatible
query I rowsort label-2985
SELECT ALL - MIN ( DISTINCT - + 47 ) / + 5
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2986
SELECT + MIN( + ( COALESCE ( ( - - 47 ), - + CAST( - 67 AS SIGNED ) - 83 + 8 ) ) ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-2986
SELECT + MIN ( + ( COALESCE ( ( - - 47 ), - + CAST ( - 67 AS INTEGER ) - 83 + 8 ) ) ) AS col0
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-2987
SELECT ALL + 17 DIV - 67 * + 14
----
0

skipif mysql # not compatible
query I rowsort label-2987
SELECT ALL + 17 / - 67 * + 14
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2988
SELECT 26 DIV - 67
----
0

skipif mysql # not compatible
query I rowsort label-2988
SELECT 26 / - 67
----
0

query II rowsort
SELECT ALL + 56 * + + 90 AS col2, - 34
----
5040
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT ( - COUNT( * ) ) * - MIN( - 81 ) * 24 AS col2
----
-1944

skipif mysql # not compatible
query I rowsort label-2990
SELECT ( - COUNT ( * ) ) * - MIN ( - 81 ) * 24 AS col2
----
-1944

query II rowsort
SELECT DISTINCT 65 * - 13 AS col0, 3 AS col2
----
-845
3

query I rowsort
SELECT ALL 0 + + 45 AS col0
----
45

query II rowsort
SELECT 61 * + + 54 col0, + 67
----
3294
67

query III rowsort
SELECT ALL ( + 35 ) * - 56 AS col0, + 39 * + 82, ( + - 73 ) AS col1
----
-1960
3198
-73

query I rowsort
SELECT ALL + 11 + - 63
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT ALL COUNT( * ) + - SUM( DISTINCT + 61 )
----
-60

skipif mysql # not compatible
query I rowsort label-2996
SELECT ALL COUNT ( * ) + - SUM ( DISTINCT + 61 )
----
-60

query II rowsort
SELECT 67 - - 2 AS col0, - 67 + - 58
----
69
-125

query I rowsort
SELECT 76 * - 87 * + 19
----
-125628

query I rowsort
SELECT - NULLIF ( 95, - + 4 )
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3000
SELECT ALL + 49 + + - NULLIF ( - COUNT( * ), CAST( NULL AS SIGNED ) ) + 44 AS col2
----
94

skipif mysql # not compatible
query I rowsort label-3000
SELECT ALL + 49 + + - NULLIF ( - COUNT ( * ), CAST ( NULL AS INTEGER ) ) + 44 AS col2
----
94

query I rowsort
SELECT DISTINCT - 94 * 79 AS col1
----
-7426

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT - + COUNT( DISTINCT + - 40 ) + - 24 AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-3002
SELECT - + COUNT ( DISTINCT + - 40 ) + - 24 AS col1
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3003
SELECT DISTINCT 55 * + SUM( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3003
SELECT DISTINCT 55 * + SUM ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3004
SELECT ALL + 98 - - + COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-3004
SELECT ALL + 98 - - + COUNT ( * )
----
99

query I rowsort
SELECT DISTINCT - + 30 * + 82
----
-2460

onlyif mysql # aggregate syntax: 
query II rowsort label-3006
SELECT - + 28 + + - 10 col2, - 43 + - - 18 + + COUNT( 66 ) * + + 32 + + 29 AS col1
----
-38
36

skipif mysql # not compatible
query II rowsort label-3006
SELECT - + 28 + + - 10 col2, - 43 + - - 18 + + COUNT ( 66 ) * + + 32 + + 29 AS col1
----
-38
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT ALL - 52 * - 71 + - MAX( DISTINCT - 81 ) * + - 43 - - COUNT( * )
----
210

skipif mysql # not compatible
query I rowsort label-3007
SELECT ALL - 52 * - 71 + - MAX ( DISTINCT - 81 ) * + - 43 - - COUNT ( * )
----
210

query I rowsort
SELECT - 12 * - 7 - - 20 AS col2
----
104

query I rowsort
SELECT - 40 + - + NULLIF ( 15, + 37 ) AS col0
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3010
SELECT - COALESCE ( + ( + 97 ), 94, COUNT( * ) * 35 DIV - 70, 34 ) * + + 69 * - MIN( ALL - - 17 ) + + 82
----
113863

skipif mysql # not compatible
query I rowsort label-3010
SELECT - COALESCE ( + ( + 97 ), 94, COUNT ( * ) * 35 / - 70, 34 ) * + + 69 * - MIN ( ALL - - 17 ) + + 82
----
113863

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3011
SELECT ALL + + COALESCE ( + - SUM( ALL 14 ), - - COUNT( * ) + - CAST( NULL AS SIGNED ), + + 84 + 4 ) AS col2, - COUNT( * ) * + COUNT( * ) + - 28
----
-14
-29

skipif mysql # not compatible
query II rowsort label-3011
SELECT ALL + + COALESCE ( + - SUM ( ALL 14 ), - - COUNT ( * ) + - CAST ( NULL AS INTEGER ), + + 84 + 4 ) AS col2, - COUNT ( * ) * + COUNT ( * ) + - 28
----
-14
-29

query I rowsort
SELECT + - 71 * + 30
----
-2130

onlyif mysql # aggregate syntax: 
query II rowsort label-3013
SELECT ALL + ( - COUNT( * ) ), + 84 AS col1
----
-1
84

skipif mysql # not compatible
query II rowsort label-3013
SELECT ALL + ( - COUNT ( * ) ), + 84 AS col1
----
-1
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3014
SELECT COALESCE ( - NULLIF ( - - NULLIF ( - CASE - - 46 WHEN 91 THEN + ( 29 ) WHEN + - COUNT( * ) * + CAST( NULL AS SIGNED ) THEN 67 * + 67 * + + COUNT( * ) * 3 * - ( - + 97 ) WHEN + ( + COUNT( * ) ) THEN - 81 END, 28 ), + 27 + - 68 - - 99 + + 9 + - 26 + - COUNT( * ) + - 97 * COUNT( * ) ), 65 )
----
65

skipif mysql # not compatible
query I rowsort label-3014
SELECT COALESCE ( - NULLIF ( - - NULLIF ( - CASE - - 46 WHEN 91 THEN + ( 29 ) WHEN + - COUNT ( * ) * + CAST ( NULL AS INTEGER ) THEN 67 * + 67 * + + COUNT ( * ) * 3 * - ( - + 97 ) WHEN + ( + COUNT ( * ) ) THEN - 81 END, 28 ), + 27 + - 68 - - 99 + + 9 + - 26 + - COUNT ( * ) + - 97 * COUNT ( * ) ), 65 )
----
65

query I rowsort
SELECT DISTINCT - + 75 * - 3 * - 12 + + 74 col1
----
-2626

query I rowsort
SELECT DISTINCT - 72 * + 8 * + 35 AS col2
----
-20160

query I rowsort
SELECT + 19 * + NULLIF ( + + 85, - 59 + 99 * 93 ) AS col1
----
1615

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT + 77 + + COUNT( * ) + - + 35 * 33 + + COUNT( * ) - + 80 AS col1
----
-1156

skipif mysql # not compatible
query I rowsort label-3018
SELECT + 77 + + COUNT ( * ) + - + 35 * 33 + + COUNT ( * ) - + 80 AS col1
----
-1156

query I rowsort
SELECT DISTINCT + 92 * - 16 + - 12 + + 65 + 76 * + 73 col0
----
4129

query I rowsort
SELECT ALL 94 * 2 + + - 16 + - 29 * + 76 AS col1
----
-2032

query II rowsort
SELECT ALL + 43 * 54 + 22 AS col2, + 44 AS col2
----
2344
44

onlyif mysql # aggregate syntax: 
query II rowsort label-3022
SELECT DISTINCT 80 col1, + 24 * - COUNT( - 59 )
----
80
-24

skipif mysql # not compatible
query II rowsort label-3022
SELECT DISTINCT 80 col1, + 24 * - COUNT ( - 59 )
----
80
-24

query I rowsort
SELECT ALL 47 + 77
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT ALL 5 * + COALESCE ( + MAX( - - 8 ), ( 98 ) + + 63 + - 86 + - - 26 + - 96 + - - 6 ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-3024
SELECT ALL 5 * + COALESCE ( + MAX ( - - 8 ), ( 98 ) + + 63 + - 86 + - - 26 + - 96 + - - 6 ) AS col2
----
40

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

skipif mysql # not compatible
query I rowsort label-3025
SELECT ALL CAST ( NULL AS INTEGER ) + 40
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3026
SELECT DISTINCT COUNT( 81 ) + - 66 AS col0, 13 AS col2
----
-65
13

skipif mysql # not compatible
query II rowsort label-3026
SELECT DISTINCT COUNT ( 81 ) + - 66 AS col0, 13 AS col2
----
-65
13

query I rowsort
SELECT + 87 * + 83 AS col1
----
7221

onlyif mysql # aggregate syntax: 
query I rowsort label-3028
SELECT + COUNT( * ) + + 34 + - 46 + 0 AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-3028
SELECT + COUNT ( * ) + + 34 + - 46 + 0 AS col0
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3029
SELECT ALL 11 + + 59 * CAST( NULL AS SIGNED ) + - - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-3029
SELECT ALL 11 + + 59 * CAST ( NULL AS INTEGER ) + - - 65
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3030
SELECT ALL 54, + COUNT( * ) AS col2
----
54
1

skipif mysql # not compatible
query II rowsort label-3030
SELECT ALL 54, + COUNT ( * ) AS col2
----
54
1

query I rowsort
SELECT - ( + - ( + 83 ) )
----
83

query I rowsort
SELECT ALL 44 - + - COALESCE ( 84, + + 9 * - 37 + - 24 ) AS col2
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT ALL + + 57 - - CASE + 20 WHEN 36 + + ( 72 ) + + 38 + + - 81 THEN NULL ELSE + 14 END + - CASE 44 WHEN - CASE + + COUNT( * ) WHEN + + 46 THEN + 89 ELSE NULL END THEN NULL WHEN 68 + - COUNT( * ) * 34 THEN - 81 END * - 75 * + COUNT( * ) + + NULLIF ( 51, + 52 * 88 + + 38 ) + - CASE 88 WHEN - COUNT( * ) / 78 / 57 - - 9 - - 71 * 32 * + + 31 * MAX( + 98 ) - + ( - 64 ) + SUM( ALL 84 ) * 61 THEN NULL ELSE + 61 END + - 62 * + 51 / - 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3033
SELECT ALL + + 57 - - CASE + 20 WHEN 36 + + ( 72 ) + + 38 + + - 81 THEN NULL ELSE + 14 END + - CASE 44 WHEN - CASE + + COUNT ( * ) WHEN + + 46 THEN + 89 ELSE NULL END THEN NULL WHEN 68 + - COUNT ( * ) * 34 THEN - 81 END * - 75 * + COUNT ( * ) + + NULLIF ( 51, + 52 * 88 + + 38 ) + - CASE 88 WHEN - COUNT ( * ) / 78 / 57 - - 9 - - 71 * 32 * + + 31 * MAX ( + 98 ) - + ( - 64 ) + SUM ( ALL 84 ) * 61 THEN NULL ELSE + 61 END + - 62 * + 51 / - 98 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT - MIN( ALL 99 ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-3034
SELECT - MIN ( ALL 99 ) AS col0
----
-99

query II rowsort
SELECT ALL 84 AS col1, 69 AS col0
----
84
69

query I rowsort
SELECT - - 66 * - 33 * NULLIF ( + 56, - - 79 * - - 83 )
----
-121968

onlyif mysql # aggregate syntax: 
query I rowsort label-3037
SELECT + - MIN( - ( - ( + - 6 ) ) ) * - 36 AS col1
----
-216

skipif mysql # not compatible
query I rowsort label-3037
SELECT + - MIN ( - ( - ( + - 6 ) ) ) * - 36 AS col1
----
-216

onlyif mysql # aggregate syntax: 
query II rowsort label-3038
SELECT ( - + MIN( 7 ) ) AS col1, 87
----
-7
87

skipif mysql # not compatible
query II rowsort label-3038
SELECT ( - + MIN ( 7 ) ) AS col1, 87
----
-7
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3039
SELECT + - COALESCE ( - ( 64 ), + COUNT( * ) + 49 * + ( - MAX( DISTINCT NULLIF ( - 93, + + 52 + 70 ) ) ) * - 44 + CAST( - 12 AS SIGNED ) + - - AVG ( 72 ) ) DIV + - 73
----
0

skipif mysql # not compatible
query I rowsort label-3039
SELECT + - COALESCE ( - ( 64 ), + COUNT ( * ) + 49 * + ( - MAX ( DISTINCT NULLIF ( - 93, + + 52 + 70 ) ) ) * - 44 + CAST ( - 12 AS INTEGER ) + - - AVG ( 72 ) ) / + - 73
----
0

query I rowsort
SELECT ALL - + 52 * - + 74 AS col0
----
3848

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3041
SELECT DISTINCT COUNT( + 69 ) DIV - 45 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3041
SELECT DISTINCT COUNT ( + 69 ) / - 45 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3042
SELECT - 56 * COUNT( + + 77 ) + 14 AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-3042
SELECT - 56 * COUNT ( + + 77 ) + 14 AS col1
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3043
SELECT + 47 AS col2, - 86 * + - CAST( NULL AS SIGNED ) * - - 33 col0
----
47
NULL

skipif mysql # not compatible
query II rowsort label-3043
SELECT + 47 AS col2, - 86 * + - CAST ( NULL AS INTEGER ) * - - 33 col0
----
47
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3044
SELECT ALL 73 * + - 29 * COUNT( * )
----
-2117

skipif mysql # not compatible
query I rowsort label-3044
SELECT ALL 73 * + - 29 * COUNT ( * )
----
-2117

onlyif mysql # aggregate syntax: 
query II rowsort label-3045
SELECT DISTINCT + ( + COUNT( ALL - 64 ) ), - 17 AS col2
----
1
-17

skipif mysql # not compatible
query II rowsort label-3045
SELECT DISTINCT + ( + COUNT ( ALL - 64 ) ), - 17 AS col2
----
1
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3046
SELECT ALL + - COUNT( * ) / + + 72 * + 34 - + 15 + MAX( DISTINCT + + 72 ) * - - 82 + - ( MIN( - - CAST( NULL AS SIGNED ) ) ) * - 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3046
SELECT ALL + - COUNT ( * ) / + + 72 * + 34 - + 15 + MAX ( DISTINCT + + 72 ) * - - 82 + - ( MIN ( - - CAST ( NULL AS INTEGER ) ) ) * - 87 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3047
SELECT DISTINCT - 12 DIV - 86
----
0

skipif mysql # not compatible
query I rowsort label-3047
SELECT DISTINCT - 12 / - 86
----
0

query I rowsort
SELECT - - 73 + - + 36 AS col0
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3049
SELECT CASE WHEN NOT NULL BETWEEN 26 AND NULL THEN + + 48 ELSE - + MIN( + 3 ) END * + - ( 27 ) + - 94 * + CAST( + 66 AS SIGNED )
----
-6123

skipif mysql # not compatible
query I rowsort label-3049
SELECT CASE WHEN NOT NULL BETWEEN 26 AND NULL THEN + + 48 ELSE - + MIN ( + 3 ) END * + - ( 27 ) + - 94 * + CAST ( + 66 AS INTEGER )
----
-6123

onlyif mysql # aggregate syntax: 
query II rowsort label-3050
SELECT + CASE - COUNT( * ) WHEN + + 24 THEN + 24 WHEN + 36 - + CASE - + 6 WHEN + 45 + + 64 + 62 * + 13 THEN NULL WHEN - 25 THEN 90 END + 39 THEN NULL END AS col0, - 60 + 16 - - - 89 * - 90 * 99 AS col2
----
NULL
792946

skipif mysql # not compatible
query II rowsort label-3050
SELECT + CASE - COUNT ( * ) WHEN + + 24 THEN + 24 WHEN + 36 - + CASE - + 6 WHEN + 45 + + 64 + 62 * + 13 THEN NULL WHEN - 25 THEN 90 END + 39 THEN NULL END AS col0, - 60 + 16 - - - 89 * - 90 * 99 AS col2
----
NULL
792946

query I rowsort
SELECT ALL + 26 * 55 * - ( - - 75 ) + + 80 + - 47
----
-107217

query I rowsort
SELECT DISTINCT + 48 * - 80 + 39
----
-3801

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT - 59 * - + COUNT( * ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-3053
SELECT - 59 * - + COUNT ( * ) AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT + MIN( - ( 13 ) )
----
-13

skipif mysql # not compatible
query I rowsort label-3054
SELECT + MIN ( - ( 13 ) )
----
-13

query I rowsort
SELECT NULLIF ( + ( + 36 ), + 32 + - 79 * + 25 * - 14 )
----
36

query II rowsort
SELECT ALL - 21 * + 23 AS col0, + 31 AS col1
----
-483
31

query I rowsort
SELECT DISTINCT - 12 * - 87 * + 98
----
102312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3058
SELECT ALL + 48 - - 68 - COUNT( + - 73 ) AS col1, ( 20 ) - + CAST( NULL AS SIGNED ) AS col2
----
115
NULL

skipif mysql # not compatible
query II rowsort label-3058
SELECT ALL + 48 - - 68 - COUNT ( + - 73 ) AS col1, ( 20 ) - + CAST ( NULL AS INTEGER ) AS col2
----
115
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3059
SELECT ALL + 49 - 22, 5 + - SUM( - + ( - CAST( - 51 AS SIGNED ) ) ) * - 46 col0
----
27
-2341

skipif mysql # not compatible
query II rowsort label-3059
SELECT ALL + 49 - 22, 5 + - SUM ( - + ( - CAST ( - 51 AS INTEGER ) ) ) * - 46 col0
----
27
-2341

onlyif mysql # DIV for integer division: 
query II rowsort label-3060
SELECT ALL 57 DIV - NULLIF ( + 3, 85 ) AS col0, 57 * 51 col1
----
-19
2907

skipif mysql # not compatible
query II rowsort label-3060
SELECT ALL 57 / - NULLIF ( + 3, 85 ) AS col0, 57 * 51 col1
----
-19
2907

query I rowsort
SELECT 10 * + - 71 AS col2
----
-710

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT - 85 * + SUM( + NULLIF ( 43, + 71 ) )
----
-3655

skipif mysql # not compatible
query I rowsort label-3062
SELECT - 85 * + SUM ( + NULLIF ( 43, + 71 ) )
----
-3655

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3063
SELECT NULLIF ( 66, + 8 ) + - CAST( 17 AS SIGNED ) + - 60
----
-11

skipif mysql # not compatible
query I rowsort label-3063
SELECT NULLIF ( 66, + 8 ) + - CAST ( 17 AS INTEGER ) + - 60
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3064
SELECT + CASE - + 65 WHEN - + 89 / + - 35 THEN - 60 WHEN 33 THEN NULL END - + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3064
SELECT + CASE - + 65 WHEN - + 89 / + - 35 THEN - 60 WHEN 33 THEN NULL END - + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3065
SELECT + 38 + 17 + - + 79 - + CASE - 98 WHEN + + 1 THEN 57 * + - 66 + + 13 WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END + + ( 39 ) * 81
----
NULL

skipif mysql # not compatible
query I rowsort label-3065
SELECT + 38 + 17 + - + 79 - + CASE - 98 WHEN + + 1 THEN 57 * + - 66 + + 13 WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END + + ( 39 ) * 81
----
NULL

query I rowsort
SELECT - NULLIF ( ( - 42 ), + 36 / + - CASE - 41 WHEN - + 70 * + 57 + + 36 THEN - 96 END + 46 ) * + 90
----
3780

onlyif mysql # aggregate syntax: 
query II rowsort label-3067
SELECT + 52 + COUNT( * ) + 52 - 44, 12 col0
----
61
12

skipif mysql # not compatible
query II rowsort label-3067
SELECT + 52 + COUNT ( * ) + 52 - 44, 12 col0
----
61
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3068
SELECT - COUNT( * ) * + - 86 + 28 AS col0
----
114

skipif mysql # not compatible
query I rowsort label-3068
SELECT - COUNT ( * ) * + - 86 + 28 AS col0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT 82 + + COALESCE ( + COUNT( + 95 ), - COALESCE ( + + NULLIF ( + + 0, - 78 * 65 ), + 25 * - - 14 + + - 41 + 28 + + - 44 + + 94 * - 52 ), - 25 ) * + 18 AS col2
----
100

skipif mysql # not compatible
query I rowsort label-3069
SELECT 82 + + COALESCE ( + COUNT ( + 95 ), - COALESCE ( + + NULLIF ( + + 0, - 78 * 65 ), + 25 * - - 14 + + - 41 + 28 + + - 44 + + 94 * - 52 ), - 25 ) * + 18 AS col2
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3070
SELECT ALL 44 * - + MIN( ALL + 70 ) * MAX( - + 35 ) + + - CAST( - 10 AS SIGNED ) / + AVG ( + 76 ) + - 55 - + 73 + + ( + ( 67 ) ) * + CASE 46 WHEN - 72 * - 41 THEN - 98 * ( 75 ) + - 76 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3070
SELECT ALL 44 * - + MIN ( ALL + 70 ) * MAX ( - + 35 ) + + - CAST ( - 10 AS INTEGER ) / + AVG ( + 76 ) + - 55 - + 73 + + ( + ( 67 ) ) * + CASE 46 WHEN - 72 * - 41 THEN - 98 * ( 75 ) + - 76 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3071
SELECT - 88 + - 87 - + 20 * 27 + + 31 * - - CAST( - 38 AS SIGNED ) + - 89 * - 52
----
2735

skipif mysql # not compatible
query I rowsort label-3071
SELECT - 88 + - 87 - + 20 * 27 + + 31 * - - CAST ( - 38 AS INTEGER ) + - 89 * - 52
----
2735

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3072
SELECT ALL NULLIF ( - 55, COALESCE ( + + ( 37 ), - CAST( NULL AS DECIMAL ) * - 80 ) * 17 + + - 16 - - + MIN( + 27 ) ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-3072
SELECT ALL NULLIF ( - 55, COALESCE ( + + ( 37 ), - CAST ( NULL AS REAL ) * - 80 ) * 17 + + - 16 - - + MIN ( + 27 ) ) AS col2
----
-55

query I rowsort
SELECT DISTINCT - 63 + ( - 38 ) AS col0
----
-101

query I rowsort
SELECT DISTINCT 89 + 12 + ( 87 ) + 88 * + 58 AS col0
----
5292

query I rowsort
SELECT ALL - + CASE - 63 WHEN + 84 THEN NULL ELSE 39 END
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3076
SELECT + MIN( DISTINCT 72 ) * - - 76
----
5472

skipif mysql # not compatible
query I rowsort label-3076
SELECT + MIN ( DISTINCT 72 ) * - - 76
----
5472

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3077
SELECT + CAST( NULL AS SIGNED ) + + + 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3077
SELECT + CAST ( NULL AS INTEGER ) + + + 3 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3078
SELECT ALL + 39 DIV + + 48 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3078
SELECT ALL + 39 / + + 48 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3079
SELECT - 47 DIV + 77 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3079
SELECT - 47 / + 77 AS col1
----
0

query II rowsort
SELECT DISTINCT + 22 + + + 57 AS col2, 25 AS col2
----
79
25

query I rowsort
SELECT 15 * + 27 + 90 - - 37 * - 77
----
-2354

query I rowsort
SELECT DISTINCT 89 + - - 14 * 46 col2
----
733

onlyif mysql # DIV for integer division: 
query I rowsort label-3083
SELECT ALL NULLIF ( + 22, - + ( - 35 ) ) DIV + - 51 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3083
SELECT ALL NULLIF ( + 22, - + ( - 35 ) ) / + - 51 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3084
SELECT - 98 * + + COUNT( * ) + - CAST( - 82 AS SIGNED ) * + 48 + + + 65
----
3903

skipif mysql # not compatible
query I rowsort label-3084
SELECT - 98 * + + COUNT ( * ) + - CAST ( - 82 AS INTEGER ) * + 48 + + + 65
----
3903

query I rowsort
SELECT DISTINCT + 80 - - + 57 + + 38 AS col0
----
175

query I rowsort
SELECT 41 + - NULLIF ( ( + 46 ), - 37 )
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-3087
SELECT ALL + 62 DIV + ( + - 94 ) * - 8 * - - 22 * + 94 + 13
----
13

skipif mysql # not compatible
query I rowsort label-3087
SELECT ALL + 62 / + ( + - 94 ) * - 8 * - - 22 * + 94 + 13
----
13

query I rowsort
SELECT 50 * - + ( 35 )
----
-1750

onlyif mysql # aggregate syntax: 
query I rowsort label-3089
SELECT 57 + - COUNT( * ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-3089
SELECT 57 + - COUNT ( * ) AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT ALL - 17 - + COUNT( * ) * + 0
----
-17

skipif mysql # not compatible
query I rowsort label-3090
SELECT ALL - 17 - + COUNT ( * ) * + 0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT ALL - NULLIF ( ( - + 34 ), + 67 + - COUNT( * ) ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-3091
SELECT ALL - NULLIF ( ( - + 34 ), + 67 + - COUNT ( * ) ) AS col2
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3092
SELECT ALL + 17 - + - 66 + CASE + COUNT( * ) WHEN + CAST( 88 AS SIGNED ) THEN + 25 WHEN 28 * + SUM( ALL + CAST( 60 AS SIGNED ) ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3092
SELECT ALL + 17 - + - 66 + CASE + COUNT ( * ) WHEN + CAST ( 88 AS INTEGER ) THEN + 25 WHEN 28 * + SUM ( ALL + CAST ( 60 AS INTEGER ) ) THEN NULL END AS col0
----
NULL

query I rowsort
SELECT ALL - 63 * - - 29
----
-1827

onlyif mysql # aggregate syntax: 
query II rowsort label-3094
SELECT 85 + + MAX( ALL - 82 ), - 70 AS col1
----
3
-70

skipif mysql # not compatible
query II rowsort label-3094
SELECT 85 + + MAX ( ALL - 82 ), - 70 AS col1
----
3
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-3095
SELECT DISTINCT + 72 * - MAX( 77 ) col2, - 94 * - COUNT( * ) - + 51
----
-5544
43

skipif mysql # not compatible
query II rowsort label-3095
SELECT DISTINCT + 72 * - MAX ( 77 ) col2, - 94 * - COUNT ( * ) - + 51
----
-5544
43

query II rowsort
SELECT ALL 46 AS col2, + 26
----
46
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3097
SELECT ALL + + COUNT( * ) * + 8 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-3097
SELECT ALL + + COUNT ( * ) * + 8 AS col1
----
8

query I rowsort
SELECT 17 + + COALESCE ( + - 56, 79 + - + 78 * 3 * - + 26, + - 2 + - NULLIF ( - 55, + + ( + 52 ) ) ) col0
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-3099
SELECT ALL + 61 col1, ( - + COUNT( * ) ) AS col2
----
61
-1

skipif mysql # not compatible
query II rowsort label-3099
SELECT ALL + 61 col1, ( - + COUNT ( * ) ) AS col2
----
61
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3100
SELECT 20 DIV - - 13 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3100
SELECT 20 / - - 13 AS col1
----
1

query I rowsort
SELECT - NULLIF ( 25, - - 31 ) + + 57 AS col1
----
32

query I rowsort
SELECT ALL 89 + - 70 - + 58
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3103
SELECT + 86 DIV 17 * - - MIN( ALL CAST( + 95 AS SIGNED ) ), + 32 AS col0
----
475
32

skipif mysql # not compatible
query II rowsort label-3103
SELECT + 86 / 17 * - - MIN ( ALL CAST ( + 95 AS INTEGER ) ), + 32 AS col0
----
475
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3104
SELECT ALL + NULLIF ( - - 18, + 45 + COUNT( * ) + AVG ( + CAST( + ( - 71 ) AS SIGNED ) ) ) + + - 67 AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-3104
SELECT ALL + NULLIF ( - - 18, + 45 + COUNT ( * ) + AVG ( + CAST ( + ( - 71 ) AS INTEGER ) ) ) + + - 67 AS col0
----
-49

query I rowsort
SELECT DISTINCT - ( 34 ) + + 16 AS col0
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-3106
SELECT - 52 DIV - - 74 * + 60 * + 19 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3106
SELECT - 52 / - - 74 * + 60 * + 19 AS col0
----
0

query I rowsort
SELECT 66 * + 65 * - ( 58 ) * - + 5
----
1244100

onlyif mysql # aggregate syntax: 
query I rowsort label-3108
SELECT COALESCE ( + 45, - + MAX( ALL - 11 ), + COALESCE ( 98, + + 61 ) * - CASE - 47 WHEN SUM( 14 ) THEN + 27 END + - 52 ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-3108
SELECT COALESCE ( + 45, - + MAX ( ALL - 11 ), + COALESCE ( 98, + + 61 ) * - CASE - 47 WHEN SUM ( 14 ) THEN + 27 END + - 52 ) AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT - - MAX( ALL + - 10 )
----
-10

skipif mysql # not compatible
query I rowsort label-3109
SELECT - - MAX ( ALL + - 10 )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT DISTINCT + 51 + - NULLIF ( + 41, + 69 - 99 * + 12 * - COUNT( * ) * - ( - 89 ) ) * CASE 85 WHEN 18 + 53 / - 52 * 45 THEN NULL WHEN - + ( - - 89 ) THEN - 70 / + 35 WHEN + 8 / - 48 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3110
SELECT DISTINCT + 51 + - NULLIF ( + 41, + 69 - 99 * + 12 * - COUNT ( * ) * - ( - 89 ) ) * CASE 85 WHEN 18 + 53 / - 52 * 45 THEN NULL WHEN - + ( - - 89 ) THEN - 70 / + 35 WHEN + 8 / - 48 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3111
SELECT ALL 43 * 1 * 66 + - - 27 + - - SUM( - + ( + - 27 ) ) * + ( - 15 ) AS col1
----
2460

skipif mysql # not compatible
query I rowsort label-3111
SELECT ALL 43 * 1 * 66 + - - 27 + - - SUM ( - + ( + - 27 ) ) * + ( - 15 ) AS col1
----
2460

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3112
SELECT - 35 DIV - + MIN( ALL - 66 ) - - - 22 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-3112
SELECT - 35 / - + MIN ( ALL - 66 ) - - - 22 AS col1
----
-22

query I rowsort
SELECT ALL - + ( - 49 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3114
SELECT DISTINCT + 10 * + 82 + 26 + - - CASE + 10 WHEN - - 95 * 15 + + 89 + + 48 THEN + 41 WHEN - 4 * - 45 / COUNT( * ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3114
SELECT DISTINCT + 10 * + 82 + 26 + - - CASE + 10 WHEN - - 95 * 15 + + 89 + + 48 THEN + 41 WHEN - 4 * - 45 / COUNT ( * ) THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3115
SELECT + MIN( - 92 ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-3115
SELECT + MIN ( - 92 ) AS col1
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-3116
SELECT DISTINCT - 93 AS col2, COALESCE ( SUM( DISTINCT - 86 ), 69 ) + - 31
----
-93
-117

skipif mysql # not compatible
query II rowsort label-3116
SELECT DISTINCT - 93 AS col2, COALESCE ( SUM ( DISTINCT - 86 ), 69 ) + - 31
----
-93
-117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3117
SELECT - CASE - + 25 WHEN + 85 THEN NULL ELSE - + 60 END DIV 90 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3117
SELECT - CASE - + 25 WHEN + 85 THEN NULL ELSE - + 60 END / 90 + - COUNT ( * )
----
-1

query I rowsort
SELECT + CASE - 37 WHEN + + 9 / + + ( + 44 ) THEN + 76 WHEN + + CASE - 70 WHEN + 90 * 26 * + - 46 + 47 + + 83 * + + 96 + + 70 THEN - 54 * 53 * - 38 + 64 + + + 41 END THEN NULL ELSE 36 + - 55 END * - 65 AS col1
----
1235

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3119
SELECT + MIN( - CASE + CAST( + + 94 AS SIGNED ) WHEN - - 63 THEN + + 60 / + 40 ELSE - COALESCE ( CAST( NULL AS SIGNED ), - 31 * - - 51 + + + 92, 41, 4 ) END ) AS col1
----
-1489

skipif mysql # not compatible
query I rowsort label-3119
SELECT + MIN ( - CASE + CAST ( + + 94 AS INTEGER ) WHEN - - 63 THEN + + 60 / + 40 ELSE - COALESCE ( CAST ( NULL AS INTEGER ), - 31 * - - 51 + + + 92, 41, 4 ) END ) AS col1
----
-1489

query II rowsort
SELECT + 27 AS col1, 67 col0
----
27
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3121
SELECT - CAST( 27 AS SIGNED ) * - 67 * - 66
----
-119394

skipif mysql # not compatible
query I rowsort label-3121
SELECT - CAST ( 27 AS INTEGER ) * - 67 * - 66
----
-119394

query I rowsort
SELECT 67 * - ( 43 ) + - 77 - 50
----
-3008

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3123
SELECT DISTINCT 93 * - 30 DIV + COUNT( * ) AS col2
----
-2790

skipif mysql # not compatible
query I rowsort label-3123
SELECT DISTINCT 93 * - 30 / + COUNT ( * ) AS col2
----
-2790

onlyif mysql # aggregate syntax: 
query I rowsort label-3124
SELECT DISTINCT 87 * + COALESCE ( - ( - + 92 ), + 36 + - 34, - COUNT( DISTINCT - - 14 ) ) AS col1
----
8004

skipif mysql # not compatible
query I rowsort label-3124
SELECT DISTINCT 87 * + COALESCE ( - ( - + 92 ), + 36 + - 34, - COUNT ( DISTINCT - - 14 ) ) AS col1
----
8004

query I rowsort
SELECT DISTINCT 46 * 18
----
828

onlyif mysql # aggregate syntax: 
query II rowsort label-3126
SELECT COUNT( * ) AS col0, - 29
----
1
-29

skipif mysql # not compatible
query II rowsort label-3126
SELECT COUNT ( * ) AS col0, - 29
----
1
-29

query II rowsort
SELECT DISTINCT + 37, 87 AS col2
----
37
87

query I rowsort
SELECT + 86 * - - 81
----
6966

query I rowsort
SELECT - 92 * - 39 * + 65 AS col1
----
233220

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3130
SELECT DISTINCT - - COUNT( * ) DIV - COUNT( * ) + + 41 AS col2
----
40

skipif mysql # not compatible
query I rowsort label-3130
SELECT DISTINCT - - COUNT ( * ) / - COUNT ( * ) + + 41 AS col2
----
40

query I rowsort
SELECT ALL + 99 + 10 * - 64 AS col0
----
-541

query I rowsort
SELECT - + 18 - + 69
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3133
SELECT ALL SUM( + + 33 ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-3133
SELECT ALL SUM ( + + 33 ) AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT NULLIF ( - 46, 51 - - + NULLIF ( - 33, - 14 * - + 82 * COUNT( * ) * - - ( + MAX( 47 ) ) + + 54 + + - 76 ) )
----
-46

skipif mysql # not compatible
query I rowsort label-3134
SELECT NULLIF ( - 46, 51 - - + NULLIF ( - 33, - 14 * - + 82 * COUNT ( * ) * - - ( + MAX ( 47 ) ) + + 54 + + - 76 ) )
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3135
SELECT ALL - + 79 + - SUM( - + CASE - 55 WHEN + NULLIF ( + + COALESCE ( CAST( NULL AS SIGNED ), - ( + CAST( - 2 AS SIGNED ) ) - + 21 - - + 89 ), - 97 * ( + - 92 ) ) THEN - 58 END ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3135
SELECT ALL - + 79 + - SUM ( - + CASE - 55 WHEN + NULLIF ( + + COALESCE ( CAST ( NULL AS INTEGER ), - ( + CAST ( - 2 AS INTEGER ) ) - + 21 - - + 89 ), - 97 * ( + - 92 ) ) THEN - 58 END ) col1
----
NULL

query I rowsort
SELECT DISTINCT + + 16 + - 49 AS col0
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-3137
SELECT ALL COUNT( * ) AS col1, 12
----
1
12

skipif mysql # not compatible
query II rowsort label-3137
SELECT ALL COUNT ( * ) AS col1, 12
----
1
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3138
SELECT - CAST( NULL AS SIGNED ) + + ( 72 ) / 16 AS col1, + CASE + 59 WHEN - - 24 THEN - CAST( 8 AS SIGNED ) WHEN + + 72 + + + COUNT( * ) THEN + 13 WHEN 37 * + 37 + - COUNT( * ) * + 24 + 60 + - - MIN( ALL + 77 ) THEN NULL ELSE NULL END col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3138
SELECT - CAST ( NULL AS INTEGER ) + + ( 72 ) / 16 AS col1, + CASE + 59 WHEN - - 24 THEN - CAST ( 8 AS INTEGER ) WHEN + + 72 + + + COUNT ( * ) THEN + 13 WHEN 37 * + 37 + - COUNT ( * ) * + 24 + 60 + - - MIN ( ALL + 77 ) THEN NULL ELSE NULL END col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3139
SELECT - COUNT( * ) - + 77 + + - COALESCE ( + COUNT( * ), - 80 ) * + 23 AS col0
----
-101

skipif mysql # not compatible
query I rowsort label-3139
SELECT - COUNT ( * ) - + 77 + + - COALESCE ( + COUNT ( * ), - 80 ) * + 23 AS col0
----
-101

query II rowsort
SELECT - - 21, 4 col2
----
21
4

query I rowsort
SELECT - 50 + + 31
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3142
SELECT + COUNT( * ) DIV 37 * 36
----
0

skipif mysql # not compatible
query I rowsort label-3142
SELECT + COUNT ( * ) / 37 * 36
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3143
SELECT - + COUNT( * ) + + CAST( - AVG ( DISTINCT + CAST( ( + + 62 ) AS SIGNED ) ) AS SIGNED ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-3143
SELECT - + COUNT ( * ) + + CAST ( - AVG ( DISTINCT + CAST ( ( + + 62 ) AS INTEGER ) ) AS INTEGER ) AS col1
----
-63

query II rowsort
SELECT - - ( - 43 ) AS col1, - ( - 89 ) * + 83
----
-43
7387

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3145
SELECT ALL MAX( CAST( 87 AS SIGNED ) ) col0
----
87

skipif mysql # not compatible
query I rowsort label-3145
SELECT ALL MAX ( CAST ( 87 AS INTEGER ) ) col0
----
87

query I rowsort
SELECT - - 42 + + + ( - 39 )
----
3

query I rowsort
SELECT COALESCE ( 24, + + 89 ) AS col2
----
24

query I rowsort
SELECT - + CASE + + 34 WHEN - + 93 THEN - ( - - 59 ) + 80 - - 22 END + - 61 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3149
SELECT + - 92 + + 14 + 75 + - - CAST( + 19 AS SIGNED ) col2
----
16

skipif mysql # not compatible
query I rowsort label-3149
SELECT + - 92 + + 14 + 75 + - - CAST ( + 19 AS INTEGER ) col2
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-3150
SELECT - 24 + + MIN( DISTINCT + 54 ) + + 48 * 69 col0, + ( - COUNT( * ) ) * ( 55 ) + + + 67 AS col0
----
3342
12

skipif mysql # not compatible
query II rowsort label-3150
SELECT - 24 + + MIN ( DISTINCT + 54 ) + + 48 * 69 col0, + ( - COUNT ( * ) ) * ( 55 ) + + + 67 AS col0
----
3342
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3151
SELECT + 89 + - 92 * - 84 + - + COUNT( * )
----
7816

skipif mysql # not compatible
query I rowsort label-3151
SELECT + 89 + - 92 * - 84 + - + COUNT ( * )
----
7816

query I rowsort
SELECT - 0 * - 24 * + 1 AS col2
----
0

query I rowsort
SELECT + COALESCE ( - 65, - 0 + 98, + - 61 ) col2
----
-65

query I rowsort
SELECT DISTINCT 12 * + + ( + 99 ) AS col1
----
1188

onlyif mysql # aggregate syntax: 
query I rowsort label-3155
SELECT + MIN( DISTINCT - 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-3155
SELECT + MIN ( DISTINCT - 43 )
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3156
SELECT ALL 88 * + + ( SUM( ALL + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3156
SELECT ALL 88 * + + ( SUM ( ALL + CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3157
SELECT + 59 DIV + 7
----
8

skipif mysql # not compatible
query I rowsort label-3157
SELECT + 59 / + 7
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-3158
SELECT DISTINCT + ( 80 ), COUNT( * ) * - - 46 AS col2
----
80
46

skipif mysql # not compatible
query II rowsort label-3158
SELECT DISTINCT + ( 80 ), COUNT ( * ) * - - 46 AS col2
----
80
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3159
SELECT DISTINCT + SUM( - 36 ) col1
----
-36

skipif mysql # not compatible
query I rowsort label-3159
SELECT DISTINCT + SUM ( - 36 ) col1
----
-36

query I rowsort
SELECT + ( + + 28 ) + - 43 AS col1
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-3161
SELECT - 64 * COUNT( * ) - + 62 + - 2 * + + 0 * + + 55 + + - 84 AS col1, - COUNT( * ) * + 21 + + 94
----
-210
73

skipif mysql # not compatible
query II rowsort label-3161
SELECT - 64 * COUNT ( * ) - + 62 + - 2 * + + 0 * + + 55 + + - 84 AS col1, - COUNT ( * ) * + 21 + + 94
----
-210
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3162
SELECT CASE - 73 WHEN + COALESCE ( 10, NULLIF ( COUNT( * ), COALESCE ( - 93, - MIN( 30 ) * + 32 ) / + - 78 ) ) THEN 34 + + 24 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3162
SELECT CASE - 73 WHEN + COALESCE ( 10, NULLIF ( COUNT ( * ), COALESCE ( - 93, - MIN ( 30 ) * + 32 ) / + - 78 ) ) THEN 34 + + 24 END AS col2
----
NULL

query I rowsort
SELECT CASE - - 10 WHEN + - 12 THEN - + 69 WHEN - 84 THEN NULL ELSE - 15 END AS col2
----
-15

onlyif mysql # DIV for integer division: 
query II rowsort label-3164
SELECT + 63 DIV 66 col1, 13 * - + 12 * - 65
----
0
10140

skipif mysql # not compatible
query II rowsort label-3164
SELECT + 63 / 66 col1, 13 * - + 12 * - 65
----
0
10140

query I rowsort
SELECT - 69 * + 63 AS col0
----
-4347

query I rowsort
SELECT ALL + 59 * - 79 + 27
----
-4634

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3167
SELECT ALL - + 46 * + COALESCE ( ( + 35 ), - COUNT( - 61 ), + + 90 * - CAST( + 88 AS SIGNED ) - 95 * - + 91 ) + 11 DIV - 77 + - COUNT( - - 19 ) DIV 69 + + + 60 + 31 * - - 98 + COUNT( * ) + 79 AS col2
----
1568

skipif mysql # not compatible
query I rowsort label-3167
SELECT ALL - + 46 * + COALESCE ( ( + 35 ), - COUNT ( - 61 ), + + 90 * - CAST ( + 88 AS INTEGER ) - 95 * - + 91 ) + 11 / - 77 + - COUNT ( - - 19 ) / 69 + + + 60 + 31 * - - 98 + COUNT ( * ) + 79 AS col2
----
1568

query I rowsort
SELECT + 41 + - - 10
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT ALL - 16 * COUNT( * ) + - 54 + + COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-3169
SELECT ALL - 16 * COUNT ( * ) + - 54 + + COUNT ( * )
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3170
SELECT DISTINCT + - CAST( 87 AS SIGNED ) * 44 + + 18
----
-3810

skipif mysql # not compatible
query I rowsort label-3170
SELECT DISTINCT + - CAST ( 87 AS INTEGER ) * 44 + + 18
----
-3810

onlyif mysql # aggregate syntax: 
query II rowsort label-3171
SELECT ALL - + 14 * 92 + - COUNT( * ) + + - 91 + 76, 84 AS col1
----
-1304
84

skipif mysql # not compatible
query II rowsort label-3171
SELECT ALL - + 14 * 92 + - COUNT ( * ) + + - 91 + 76, 84 AS col1
----
-1304
84

query I rowsort
SELECT ALL ( - 0 ) * + 33
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3173
SELECT + + 12 DIV 14
----
0

skipif mysql # not compatible
query I rowsort label-3173
SELECT + + 12 / 14
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3174
SELECT - - NULLIF ( - CASE 4 WHEN + NULLIF ( - 2, - CAST( NULL AS SIGNED ) ) / + 48 THEN NULL WHEN + - 64 THEN + 21 - + 52 ELSE NULL END, - 75 ) + - 59 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3174
SELECT - - NULLIF ( - CASE 4 WHEN + NULLIF ( - 2, - CAST ( NULL AS INTEGER ) ) / + 48 THEN NULL WHEN + - 64 THEN + 21 - + 52 ELSE NULL END, - 75 ) + - 59 + - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + - 39 + + - 12 + - 66
----
-117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3176
SELECT CAST( + + 14 AS SIGNED ) col2
----
14

skipif mysql # not compatible
query I rowsort label-3176
SELECT CAST ( + + 14 AS INTEGER ) col2
----
14

query I rowsort
SELECT - - 57 + 91 * - - ( - 69 ) AS col1
----
-6222

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3178
SELECT DISTINCT - - COUNT( * ) DIV - COUNT( * ) + COUNT( ALL 56 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3178
SELECT DISTINCT - - COUNT ( * ) / - COUNT ( * ) + COUNT ( ALL 56 ) AS col2
----
0

query I rowsort
SELECT DISTINCT + 24 - 62
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3180
SELECT DISTINCT + 43 * 29 * + 21 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3180
SELECT DISTINCT + 43 * 29 * + 21 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT DISTINCT - CASE + MAX( - + 84 ) WHEN - + ( + 34 ) / ( + 74 ) * AVG ( DISTINCT + - 74 ) * 55 + + AVG ( DISTINCT 28 ) + + ( - 33 ) THEN NULL ELSE 6 - + + 83 + + 7 * - 39 END
----
350

skipif mysql # not compatible
query I rowsort label-3181
SELECT DISTINCT - CASE + MAX ( - + 84 ) WHEN - + ( + 34 ) / ( + 74 ) * AVG ( DISTINCT + - 74 ) * 55 + + AVG ( DISTINCT 28 ) + + ( - 33 ) THEN NULL ELSE 6 - + + 83 + + 7 * - 39 END
----
350

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3182
SELECT ALL - MIN( 32 ) * - + 17 + - 83 DIV - 6 col0, COUNT( * ) DIV + MIN( - 8 ) - - 99 DIV + - 45 AS col1
----
557
-2

skipif mysql # not compatible
query II rowsort label-3182
SELECT ALL - MIN ( 32 ) * - + 17 + - 83 / - 6 col0, COUNT ( * ) / + MIN ( - 8 ) - - 99 / + - 45 AS col1
----
557
-2

query II rowsort
SELECT ALL - 66 - + 19 + + 77, 66 AS col1
----
-8
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3184
SELECT 50 * - 85 * + SUM( DISTINCT - - 73 ) AS col1
----
-310250

skipif mysql # not compatible
query I rowsort label-3184
SELECT 50 * - 85 * + SUM ( DISTINCT - - 73 ) AS col1
----
-310250

onlyif mysql # aggregate syntax: 
query II rowsort label-3185
SELECT 49 AS col1, 83 - + MIN( DISTINCT 66 ) * 19 + - 5
----
49
-1176

skipif mysql # not compatible
query II rowsort label-3185
SELECT 49 AS col1, 83 - + MIN ( DISTINCT 66 ) * 19 + - 5
----
49
-1176

onlyif mysql # aggregate syntax: 
query I rowsort label-3186
SELECT ALL - MIN( + 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-3186
SELECT ALL - MIN ( + 43 )
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3187
SELECT DISTINCT - COALESCE ( - 93, - - COUNT( * ) * + - CAST( - - ( 97 ) AS SIGNED ) ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-3187
SELECT DISTINCT - COALESCE ( - 93, - - COUNT ( * ) * + - CAST ( - - ( 97 ) AS INTEGER ) ) AS col1
----
93

query I rowsort
SELECT 79 - 25
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-3189
SELECT DISTINCT - 18 AS col0, COUNT( * ) * 76 AS col1
----
-18
76

skipif mysql # not compatible
query II rowsort label-3189
SELECT DISTINCT - 18 AS col0, COUNT ( * ) * 76 AS col1
----
-18
76

query II rowsort
SELECT 49, - 16 AS col0
----
49
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3191
SELECT 66 * - ( + 92 ) / - NULLIF ( + CAST( NULL AS SIGNED ), - 73 + + + 83 + + 46 / - - 70 + COUNT( * ) * + + 26 / + + 7 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3191
SELECT 66 * - ( + 92 ) / - NULLIF ( + CAST ( NULL AS INTEGER ), - 73 + + + 83 + + 46 / - - 70 + COUNT ( * ) * + + 26 / + + 7 ) AS col2
----
NULL

query I rowsort
SELECT 1 + - + 92
----
-91

query I rowsort
SELECT 75 * - 87 AS col1
----
-6525

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3194
SELECT COUNT( * ) DIV - + COUNT( * ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-3194
SELECT COUNT ( * ) / - + COUNT ( * ) col1
----
-1

query I rowsort
SELECT 91 * + + 76
----
6916

query I rowsort
SELECT ALL 51 + - + 42 + - - 32
----
41

query I rowsort
SELECT 1 * + + 80
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3198
SELECT ALL - 59 + + - CAST( + MIN( DISTINCT + - NULLIF ( 58, + 63 / - 38 * - - 5 ) ) AS SIGNED ) * + + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3198
SELECT ALL - 59 + + - CAST ( + MIN ( DISTINCT + - NULLIF ( 58, + 63 / - 38 * - - 5 ) ) AS INTEGER ) * + + COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT DISTINCT - + COALESCE ( COALESCE ( - 73, 20 ), - 99, - 98, 39 * COUNT( * ) + - - 82 ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-3199
SELECT DISTINCT - + COALESCE ( COALESCE ( - 73, 20 ), - 99, - 98, 39 * COUNT ( * ) + - - 82 ) AS col2
----
73

onlyif mysql # DIV for integer division: 
query II rowsort label-3200
SELECT ALL + 16 + + + 11 DIV + 42, 43 AS col2
----
16
43

skipif mysql # not compatible
query II rowsort label-3200
SELECT ALL + 16 + + + 11 / + 42, 43 AS col2
----
16
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3201
SELECT COUNT( 92 ) + - 89 * COUNT( * ) - 12
----
-100

skipif mysql # not compatible
query I rowsort label-3201
SELECT COUNT ( 92 ) + - 89 * COUNT ( * ) - 12
----
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3202
SELECT 71 * + + NULLIF ( 16, 14 ) AS col1, 65 + COUNT( * ) + + 29 DIV + + COUNT( * ) + + COALESCE ( + 74, 73 * - 32 + + + CAST( - COUNT( * ) AS SIGNED ) ) AS col1
----
1136
169

skipif mysql # not compatible
query II rowsort label-3202
SELECT 71 * + + NULLIF ( 16, 14 ) AS col1, 65 + COUNT ( * ) + + 29 / + + COUNT ( * ) + + COALESCE ( + 74, 73 * - 32 + + + CAST ( - COUNT ( * ) AS INTEGER ) ) AS col1
----
1136
169

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT ALL 44 - + + COUNT( * ) * + 48 * - 26 AS col2
----
1292

skipif mysql # not compatible
query I rowsort label-3203
SELECT ALL 44 - + + COUNT ( * ) * + 48 * - 26 AS col2
----
1292

onlyif mysql # aggregate syntax: 
query I rowsort label-3204
SELECT - 14 * + + SUM( - 53 )
----
742

skipif mysql # not compatible
query I rowsort label-3204
SELECT - 14 * + + SUM ( - 53 )
----
742

query I rowsort
SELECT ALL 71 * + 29
----
2059

query I rowsort
SELECT 51 - - 58
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3207
SELECT ALL COALESCE ( + 87, - 46 ) - - CAST( NULL AS SIGNED ) * 27 - - + 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3207
SELECT ALL COALESCE ( + 87, - 46 ) - - CAST ( NULL AS INTEGER ) * 27 - - + 57 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3208
SELECT - CAST( - 22 AS SIGNED ) + + 72 * + + 69 * ( + + 18 ) * + 29 AS col2
----
2593318

skipif mysql # not compatible
query I rowsort label-3208
SELECT - CAST ( - 22 AS INTEGER ) + + 72 * + + 69 * ( + + 18 ) * + 29 AS col2
----
2593318

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3209
SELECT ALL + CAST( NULL AS SIGNED ) - COALESCE ( 93, + - 99, MIN( - 86 ), 84 ) + 71 * + 50 * - + COUNT( * ) / + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-3209
SELECT ALL + CAST ( NULL AS INTEGER ) - COALESCE ( 93, + - 99, MIN ( - 86 ), 84 ) + 71 * + 50 * - + COUNT ( * ) / + 48
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3210
SELECT - NULLIF ( - COUNT( * ), - COALESCE ( - - 26, - 46 * - + 75 + - 91, - 56 + - 69 * + SUM( DISTINCT + 32 ) ) + + 11 - 40 ) AS col2, + 8
----
1
8

skipif mysql # not compatible
query II rowsort label-3210
SELECT - NULLIF ( - COUNT ( * ), - COALESCE ( - - 26, - 46 * - + 75 + - 91, - 56 + - 69 * + SUM ( DISTINCT + 32 ) ) + + 11 - 40 ) AS col2, + 8
----
1
8

onlyif mysql # aggregate syntax: 
query II rowsort label-3211
SELECT DISTINCT 29 AS col2, + COUNT( + 84 )
----
29
1

skipif mysql # not compatible
query II rowsort label-3211
SELECT DISTINCT 29 AS col2, + COUNT ( + 84 )
----
29
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3212
SELECT ALL + 28 * + 2 + + 84 AS col1, 50 DIV - COUNT( * ) * - COUNT( * ) AS col2
----
140
50

skipif mysql # not compatible
query II rowsort label-3212
SELECT ALL + 28 * + 2 + + 84 AS col1, 50 / - COUNT ( * ) * - COUNT ( * ) AS col2
----
140
50

query I rowsort
SELECT ALL - ( - 37 ) AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT + 21 + + - COUNT( - COALESCE ( 68, + 54 / - - 27 ) )
----
20

skipif mysql # not compatible
query I rowsort label-3214
SELECT + 21 + + - COUNT ( - COALESCE ( 68, + 54 / - - 27 ) )
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-3215
SELECT NULLIF ( + 97, - - 6 ) + 73 AS col1, + COUNT( * ) AS col2
----
170
1

skipif mysql # not compatible
query II rowsort label-3215
SELECT NULLIF ( + 97, - - 6 ) + 73 AS col1, + COUNT ( * ) AS col2
----
170
1

query I rowsort
SELECT 80 - - - 67 + + 6 + - 11 * - + 38 + - 76 + - + COALESCE ( 55, + 76 * + 12 ) + - 25
----
281

onlyif mysql # DIV for integer division: 
query II rowsort label-3217
SELECT 86 DIV + - 60, 3 * + + 49 + + 94 AS col0
----
-1
241

skipif mysql # not compatible
query II rowsort label-3217
SELECT 86 / + - 60, 3 * + + 49 + + 94 AS col0
----
-1
241

onlyif mysql # DIV for integer division: 
query II rowsort label-3218
SELECT ALL + 8 DIV - 16 AS col0, 35 AS col2
----
0
35

skipif mysql # not compatible
query II rowsort label-3218
SELECT ALL + 8 / - 16 AS col0, 35 AS col2
----
0
35

onlyif mysql # aggregate syntax: 
query II rowsort label-3219
SELECT 79 + - 56 + - NULLIF ( - + 55, - 18 * - 91 ) + - - 86 col0, COUNT( ALL - 19 ) AS col0
----
164
1

skipif mysql # not compatible
query II rowsort label-3219
SELECT 79 + - 56 + - NULLIF ( - + 55, - 18 * - 91 ) + - - 86 col0, COUNT ( ALL - 19 ) AS col0
----
164
1

query I rowsort
SELECT ALL 29 + - - 89 * + 41 AS col2
----
3678

query I rowsort
SELECT DISTINCT 31 * - + 57 + - COALESCE ( - + 34, - - 90 ) col2
----
-1733

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3222
SELECT ( - 72 ) * - 23 * + 19 - - - 43 + + 98 * - 3 * 52 + + 99 + + + 16 * - 89 * - + 6 + + CAST( NULL AS SIGNED ) * + + MIN( DISTINCT - 71 ) + - CAST( NULL AS SIGNED ) * + 15 + - - COUNT( * ) * - - 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3222
SELECT ( - 72 ) * - 23 * + 19 - - - 43 + + 98 * - 3 * 52 + + 99 + + + 16 * - 89 * - + 6 + + CAST ( NULL AS INTEGER ) * + + MIN ( DISTINCT - 71 ) + - CAST ( NULL AS INTEGER ) * + 15 + - - COUNT ( * ) * - - 16 AS col0
----
NULL

query I rowsort
SELECT 11 * + - 16 AS col1
----
-176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3224
SELECT DISTINCT 37 * CAST( NULL AS SIGNED ) + 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3224
SELECT DISTINCT 37 * CAST ( NULL AS INTEGER ) + 92 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3225
SELECT DISTINCT - 18 * + + 50, - COUNT( * ) col1
----
-900
-1

skipif mysql # not compatible
query II rowsort label-3225
SELECT DISTINCT - 18 * + + 50, - COUNT ( * ) col1
----
-900
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3226
SELECT DISTINCT - CAST( + 20 AS SIGNED )
----
-20

skipif mysql # not compatible
query I rowsort label-3226
SELECT DISTINCT - CAST ( + 20 AS INTEGER )
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-3227
SELECT 64 DIV - + 54 + - 71 + + 73
----
1

skipif mysql # not compatible
query I rowsort label-3227
SELECT 64 / - + 54 + - 71 + + 73
----
1

query I rowsort
SELECT DISTINCT - 27 + + 3 AS col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3229
SELECT ALL - NULLIF ( 42, + + 36 * - COUNT( * ) )
----
-42

skipif mysql # not compatible
query I rowsort label-3229
SELECT ALL - NULLIF ( 42, + + 36 * - COUNT ( * ) )
----
-42

query I rowsort
SELECT 10 + + + ( 7 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3231
SELECT DISTINCT - COUNT( * ) + - + 39
----
-40

skipif mysql # not compatible
query I rowsort label-3231
SELECT DISTINCT - COUNT ( * ) + - + 39
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3232
SELECT ALL - COUNT( DISTINCT + + CAST( - - 35 AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3232
SELECT ALL - COUNT ( DISTINCT + + CAST ( - - 35 AS INTEGER ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3233
SELECT CASE + 64 WHEN + 85 THEN NULL ELSE + CAST( NULL AS SIGNED ) * + 40 + 90 END * - - COUNT( * ) * CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + + 50 - COUNT( * ) * - COALESCE ( + 42, - + 90 ) * - ( 64 ) + 11 + - 66 * - AVG ( - 74 ) * + 47 + + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-3233
SELECT CASE + 64 WHEN + 85 THEN NULL ELSE + CAST ( NULL AS INTEGER ) * + 40 + 90 END * - - COUNT ( * ) * CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + + 50 - COUNT ( * ) * - COALESCE ( + 42, - + 90 ) * - ( 64 ) + 11 + - 66 * - AVG ( - 74 ) * + 47 + + 53
----
NULL

query I rowsort
SELECT 40 + + - 56 * - 19
----
1104

query I rowsort
SELECT DISTINCT + 68 * + 46 col1
----
3128

onlyif mysql # aggregate syntax: 
query I rowsort label-3236
SELECT 89 * ( COUNT( ALL + 49 ) )
----
89

skipif mysql # not compatible
query I rowsort label-3236
SELECT 89 * ( COUNT ( ALL + 49 ) )
----
89

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3237
SELECT - 76 * - CAST( NULL AS DECIMAL ) * + 13 * + + COUNT( * ) + - 92 * - ( - COUNT( * ) ) + - + 15 - ( - COUNT( * ) ) + 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3237
SELECT - 76 * - CAST ( NULL AS REAL ) * + 13 * + + COUNT ( * ) + - 92 * - ( - COUNT ( * ) ) + - + 15 - ( - COUNT ( * ) ) + 31 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3238
SELECT ALL + ( + SUM( + CAST( NULL AS SIGNED ) ) ) - - 0 col0, 95 DIV 20
----
NULL
4

skipif mysql # not compatible
query II rowsort label-3238
SELECT ALL + ( + SUM ( + CAST ( NULL AS INTEGER ) ) ) - - 0 col0, 95 / 20
----
NULL
4

onlyif mysql # DIV for integer division: 
query I rowsort label-3239
SELECT ALL - 65 * 87 DIV - 84
----
67

skipif mysql # not compatible
query I rowsort label-3239
SELECT ALL - 65 * 87 / - 84
----
67

query I rowsort
SELECT 66 + - + 57
----
9

query I rowsort
SELECT 96 * 51
----
4896

onlyif mysql # aggregate syntax: 
query II rowsort label-3242
SELECT DISTINCT - - 55 * COALESCE ( 86, COUNT( * ) ) - - + COALESCE ( - 74, 53 ), 39 col2
----
4656
39

skipif mysql # not compatible
query II rowsort label-3242
SELECT DISTINCT - - 55 * COALESCE ( 86, COUNT ( * ) ) - - + COALESCE ( - 74, 53 ), 39 col2
----
4656
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3243
SELECT + - COUNT( * ) * 25 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-3243
SELECT + - COUNT ( * ) * 25 AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT ALL + NULLIF ( - 78, - - COUNT( - - 6 ) )
----
-78

skipif mysql # not compatible
query I rowsort label-3244
SELECT ALL + NULLIF ( - 78, - - COUNT ( - - 6 ) )
----
-78

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3245
SELECT - CAST( NULL AS DECIMAL ) * 99 + + - 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3245
SELECT - CAST ( NULL AS REAL ) * 99 + + - 38 AS col2
----
NULL

query I rowsort
SELECT NULLIF ( 75, - - NULLIF ( - 25, + - ( - AVG ( ALL + + 67 ) ) ) ) AS col1
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-3247
SELECT - - COUNT( DISTINCT + 33 ) AS col1, COALESCE ( + 30, + 21 ) * + 71 * - 54 + - ( + + ( 35 ) ) + + - 26 + + 49 AS col2
----
1
-115032

skipif mysql # not compatible
query II rowsort label-3247
SELECT - - COUNT ( DISTINCT + 33 ) AS col1, COALESCE ( + 30, + 21 ) * + 71 * - 54 + - ( + + ( 35 ) ) + + - 26 + + 49 AS col2
----
1
-115032

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

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

query I rowsort
SELECT ALL 65 * 11 * - 30 AS col0
----
-21450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3250
SELECT ALL 24 + + CAST( 73 AS SIGNED ) * + 48 * + COUNT( * ) AS col2
----
3528

skipif mysql # not compatible
query I rowsort label-3250
SELECT ALL 24 + + CAST ( 73 AS INTEGER ) * + 48 * + COUNT ( * ) AS col2
----
3528

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3251
SELECT DISTINCT 83 * 1 / ( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3251
SELECT DISTINCT 83 * 1 / ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3252
SELECT DISTINCT 94 DIV - 47 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-3252
SELECT DISTINCT 94 / - 47 AS col0
----
-2

query I rowsort
SELECT + COALESCE ( 46, + 10 ) * - + 63 * + 99 AS col2
----
-286902

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT ALL COUNT( * ) * - ( - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3254
SELECT ALL COUNT ( * ) * - ( - COUNT ( * ) ) AS col1
----
1

query I rowsort
SELECT ALL 29 + - 45 AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT + 94 - ( + 50 ) * - COUNT( * ) + 34 + + 70 AS col1
----
248

skipif mysql # not compatible
query I rowsort label-3256
SELECT + 94 - ( + 50 ) * - COUNT ( * ) + 34 + + 70 AS col1
----
248

query I rowsort
SELECT + 76 * 54 AS col1
----
4104

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT - SUM( DISTINCT + 64 ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-3258
SELECT - SUM ( DISTINCT + 64 ) AS col2
----
-64

query I rowsort
SELECT - 93 + - ( + 1 )
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3260
SELECT ALL 58 + + ( + CAST( 98 AS SIGNED ) ) AS col0
----
156

skipif mysql # not compatible
query I rowsort label-3260
SELECT ALL 58 + + ( + CAST ( 98 AS INTEGER ) ) AS col0
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-3261
SELECT + 57 DIV 3 DIV - 44
----
0

skipif mysql # not compatible
query I rowsort label-3261
SELECT + 57 / 3 / - 44
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3262
SELECT DISTINCT ( + - 74 ) * - 88 + + 29 * + COALESCE ( + 94, + 62 + 16 * + CAST( NULL AS SIGNED ) ) + + - CAST( + NULLIF ( + 81, + + COUNT( * ) ) AS SIGNED ) + + COUNT( * ) + - 58 * + + 17 AS col2, 29 * + MIN( 20 ) + - 48 AS col1
----
8172
532

skipif mysql # not compatible
query II rowsort label-3262
SELECT DISTINCT ( + - 74 ) * - 88 + + 29 * + COALESCE ( + 94, + 62 + 16 * + CAST ( NULL AS INTEGER ) ) + + - CAST ( + NULLIF ( + 81, + + COUNT ( * ) ) AS INTEGER ) + + COUNT ( * ) + - 58 * + + 17 AS col2, 29 * + MIN ( 20 ) + - 48 AS col1
----
8172
532

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3263
SELECT DISTINCT + 10 * - + 37 + 3 + - + ( + 65 ) * + + NULLIF ( ( - - 34 ), - 52 * + + 11 ) * CAST( NULL AS SIGNED ) * + - 22 * 65
----
NULL

skipif mysql # not compatible
query I rowsort label-3263
SELECT DISTINCT + 10 * - + 37 + 3 + - + ( + 65 ) * + + NULLIF ( ( - - 34 ), - 52 * + + 11 ) * CAST ( NULL AS INTEGER ) * + - 22 * 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT + 92 - + SUM( 22 ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-3264
SELECT + 92 - + SUM ( 22 ) AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT ALL + ( COUNT( DISTINCT + ( - 56 ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3265
SELECT ALL + ( COUNT ( DISTINCT + ( - 56 ) ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3266
SELECT + + 19 AS col2, MAX( - ( + + 93 ) ) col0
----
19
-93

skipif mysql # not compatible
query II rowsort label-3266
SELECT + + 19 AS col2, MAX ( - ( + + 93 ) ) col0
----
19
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3267
SELECT - COALESCE ( + CASE + 15 WHEN - + 82 * - 44 + - 44 THEN NULL WHEN COUNT( DISTINCT 77 ) THEN + - 24 END, + + 52, 56 * + MAX( ALL CAST( NULL AS SIGNED ) ) ) + + 33 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-3267
SELECT - COALESCE ( + CASE + 15 WHEN - + 82 * - 44 + - 44 THEN NULL WHEN COUNT ( DISTINCT 77 ) THEN + - 24 END, + + 52, 56 * + MAX ( ALL CAST ( NULL AS INTEGER ) ) ) + + 33 AS col1
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3268
SELECT DISTINCT - + 62 * + 64 * + CAST( NULL AS SIGNED ) - 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3268
SELECT DISTINCT - + 62 * + 64 * + CAST ( NULL AS INTEGER ) - 84 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3269
SELECT + - 65 AS col2, - 3 DIV + 88 * + 35 AS col2
----
-65
0

skipif mysql # not compatible
query II rowsort label-3269
SELECT + - 65 AS col2, - 3 / + 88 * + 35 AS col2
----
-65
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3270
SELECT - 48 - - 45 * NULLIF ( - 28, + 92 * + 84 + + SUM( DISTINCT 57 ) ) * 64
----
-80688

skipif mysql # not compatible
query I rowsort label-3270
SELECT - 48 - - 45 * NULLIF ( - 28, + 92 * + 84 + + SUM ( DISTINCT 57 ) ) * 64
----
-80688

query I rowsort
SELECT ALL + + 57 * 44 col0
----
2508

onlyif mysql # aggregate syntax: 
query I rowsort label-3272
SELECT + - MIN( - ( - - 60 ) )
----
60

skipif mysql # not compatible
query I rowsort label-3272
SELECT + - MIN ( - ( - - 60 ) )
----
60

query I rowsort
SELECT ALL + + 32 * + - 66 col1
----
-2112

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3274
SELECT DISTINCT + - 42 * - - CAST( + 18 AS SIGNED ) - + ( - 64 ) + + 62 AS col0, + 53 + 4
----
-630
57

skipif mysql # not compatible
query II rowsort label-3274
SELECT DISTINCT + - 42 * - - CAST ( + 18 AS INTEGER ) - + ( - 64 ) + + 62 AS col0, + 53 + 4
----
-630
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3275
SELECT MIN( ALL + 31 )
----
31

skipif mysql # not compatible
query I rowsort label-3275
SELECT MIN ( ALL + 31 )
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3276
SELECT ALL + 73 DIV COUNT( * ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-3276
SELECT ALL + 73 / COUNT ( * ) AS col2
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-3277
SELECT DISTINCT + - 2 AS col0, + COUNT( * ) AS col0
----
-2
1

skipif mysql # not compatible
query II rowsort label-3277
SELECT DISTINCT + - 2 AS col0, + COUNT ( * ) AS col0
----
-2
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3278
SELECT DISTINCT + + COUNT( * ) DIV - + 21
----
0

skipif mysql # not compatible
query I rowsort label-3278
SELECT DISTINCT + + COUNT ( * ) / - + 21
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3279
SELECT + CASE + COUNT( * ) WHEN 29 THEN NULL WHEN + - 19 THEN - - 13 END + + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-3279
SELECT + CASE + COUNT ( * ) WHEN 29 THEN NULL WHEN + - 19 THEN - - 13 END + + 53
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3280
SELECT - 50 DIV + CASE - SUM( + 10 ) WHEN - + 88 THEN + ( + + 73 ) * - 1 WHEN + ( 96 ) THEN + 10 ELSE 28 END + + 53
----
52

skipif mysql # not compatible
query I rowsort label-3280
SELECT - 50 / + CASE - SUM ( + 10 ) WHEN - + 88 THEN + ( + + 73 ) * - 1 WHEN + ( 96 ) THEN + 10 ELSE 28 END + + 53
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3281
SELECT - 56 * - + 14 DIV + COALESCE ( + 14, - - 90 + COUNT( * ) ) + - - 80 + + 43 DIV + ( + 59 ) AS col1
----
136

skipif mysql # not compatible
query I rowsort label-3281
SELECT - 56 * - + 14 / + COALESCE ( + 14, - - 90 + COUNT ( * ) ) + - - 80 + + 43 / + ( + 59 ) AS col1
----
136

onlyif mysql # DIV for integer division: 
query I rowsort label-3282
SELECT ALL + 12 DIV 29 col2
----
0

skipif mysql # not compatible
query I rowsort label-3282
SELECT ALL + 12 / 29 col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3283
SELECT - 17 DIV + 57
----
0

skipif mysql # not compatible
query I rowsort label-3283
SELECT - 17 / + 57
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3284
SELECT - + 57 - - 9 * - 98 * 26 * 12 * + - 60 * - COUNT( * ) * 20 AS col0
----
-330220857

skipif mysql # not compatible
query I rowsort label-3284
SELECT - + 57 - - 9 * - 98 * 26 * 12 * + - 60 * - COUNT ( * ) * 20 AS col0
----
-330220857

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-3285
SELECT ALL - + NULLIF ( - 35, + CAST( NULL AS DECIMAL ) + 42 ) DIV - + COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-3285
SELECT ALL - + NULLIF ( - 35, + CAST ( NULL AS REAL ) + 42 ) / - + COUNT ( * )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3286
SELECT ALL ( - - COUNT( * ) ) * - MIN( DISTINCT + ( - 91 ) ) + + COUNT( * ) + - - 62
----
154

skipif mysql # not compatible
query I rowsort label-3286
SELECT ALL ( - - COUNT ( * ) ) * - MIN ( DISTINCT + ( - 91 ) ) + + COUNT ( * ) + - - 62
----
154

query I rowsort
SELECT ALL ( 57 ) col0
----
57

query I rowsort
SELECT DISTINCT - 17 * - - 44 AS col2
----
-748

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3289
SELECT DISTINCT + 62 + - CASE - MIN( DISTINCT + - 17 ) WHEN 77 THEN + MIN( - 34 ) * + 83 WHEN - + SUM( 86 ) * 64 * + - CAST( - - 94 AS SIGNED ) THEN - 54 ELSE - 68 - + - 67 END
----
63

skipif mysql # not compatible
query I rowsort label-3289
SELECT DISTINCT + 62 + - CASE - MIN ( DISTINCT + - 17 ) WHEN 77 THEN + MIN ( - 34 ) * + 83 WHEN - + SUM ( 86 ) * 64 * + - CAST ( - - 94 AS INTEGER ) THEN - 54 ELSE - 68 - + - 67 END
----
63

query I rowsort
SELECT ALL 18 + - - 14 - - 53
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-3291
SELECT - COUNT( * ) AS col0, + 68 + - ( + COUNT( ALL - 84 ) )
----
-1
67

skipif mysql # not compatible
query II rowsort label-3291
SELECT - COUNT ( * ) AS col0, + 68 + - ( + COUNT ( ALL - 84 ) )
----
-1
67

query I rowsort
SELECT DISTINCT ( - - 27 )
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3293
SELECT - AVG ( - CAST( + 85 AS SIGNED ) ) + + CASE 91 WHEN + - 40 THEN NULL WHEN - + ( - 30 ) - - 47 THEN + COALESCE ( - 8, - 89 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3293
SELECT - AVG ( - CAST ( + 85 AS INTEGER ) ) + + CASE 91 WHEN + - 40 THEN NULL WHEN - + ( - 30 ) - - 47 THEN + COALESCE ( - 8, - 89 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3294
SELECT - CASE + 15 WHEN + - NULLIF ( SUM( + 95 ), - 37 / - + 82 ) / - 17 THEN - 74 + - - 82 + - 34 - COUNT( * ) END AS col0, + 30
----
NULL
30

skipif mysql # not compatible
query II rowsort label-3294
SELECT - CASE + 15 WHEN + - NULLIF ( SUM ( + 95 ), - 37 / - + 82 ) / - 17 THEN - 74 + - - 82 + - 34 - COUNT ( * ) END AS col0, + 30
----
NULL
30

query I rowsort
SELECT - 70 + - - 54 col1
----
-16

query II rowsort
SELECT ALL 21, 76 + + 39 AS col1
----
21
115

query II rowsort
SELECT 35, + 33 AS col1
----
35
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3298
SELECT - ( 29 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3298
SELECT - ( 29 ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT + 52 + + COALESCE ( 27, - + COUNT( * ), + + 84 ) col1
----
79

skipif mysql # not compatible
query I rowsort label-3299
SELECT + 52 + + COALESCE ( 27, - + COUNT ( * ), + + 84 ) col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3300
SELECT - COUNT( DISTINCT - 36 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3300
SELECT - COUNT ( DISTINCT - 36 ) AS col2
----
-1

query II rowsort
SELECT 78 AS col1, 71 * 52 * - 17 + - + 42
----
78
-62806

query II rowsort
SELECT DISTINCT 78 AS col2, - 53 AS col1
----
78
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3303
SELECT ALL 34 + + + 80 - + - MIN( ALL - 8 ) DIV + + COALESCE ( + - COUNT( * ), - - 0 * + - 95 + - - COUNT( * ) ) AS col1
----
122

skipif mysql # not compatible
query I rowsort label-3303
SELECT ALL 34 + + + 80 - + - MIN ( ALL - 8 ) / + + COALESCE ( + - COUNT ( * ), - - 0 * + - 95 + - - COUNT ( * ) ) AS col1
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT + COUNT( * ) + 3 col2
----
4

skipif mysql # not compatible
query I rowsort label-3304
SELECT + COUNT ( * ) + 3 col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT + 16 + - - 81 * + COUNT( * ) - - 42 AS col1
----
139

skipif mysql # not compatible
query I rowsort label-3305
SELECT + 16 + - - 81 * + COUNT ( * ) - - 42 AS col1
----
139

query I rowsort
SELECT ALL ( - 82 ) * + 49 AS col0
----
-4018

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3307
SELECT DISTINCT COUNT( * ) DIV + 87
----
0

skipif mysql # not compatible
query I rowsort label-3307
SELECT DISTINCT COUNT ( * ) / + 87
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3308
SELECT DISTINCT COUNT( DISTINCT 27 )
----
1

skipif mysql # not compatible
query I rowsort label-3308
SELECT DISTINCT COUNT ( DISTINCT 27 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3309
SELECT ALL COUNT( * ) AS col1, 15 AS col2
----
1
15

skipif mysql # not compatible
query II rowsort label-3309
SELECT ALL COUNT ( * ) AS col1, 15 AS col2
----
1
15

query I rowsort
SELECT + 98 + - 75 + 95
----
118

query I rowsort
SELECT + 63 + 34 col2
----
97

query II rowsort
SELECT ALL + 74 AS col1, 40 * 68 AS col1
----
74
2720

onlyif mysql # aggregate syntax: 
query I rowsort label-3313
SELECT SUM( ALL 9 ) col2
----
9

skipif mysql # not compatible
query I rowsort label-3313
SELECT SUM ( ALL 9 ) col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3314
SELECT + COUNT( * ) * COUNT( * ) + - - 30
----
31

skipif mysql # not compatible
query I rowsort label-3314
SELECT + COUNT ( * ) * COUNT ( * ) + - - 30
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3315
SELECT + - ( - CAST( NULL AS SIGNED ) ) * - - 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3315
SELECT + - ( - CAST ( NULL AS INTEGER ) ) * - - 16 AS col1
----
NULL

query I rowsort
SELECT - - 73 * 92 + + + 58 * 31 * 30
----
60656

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3317
SELECT - + CAST( NULL AS DECIMAL ) / + 67 + - 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3317
SELECT - + CAST ( NULL AS REAL ) / + 67 + - 29 AS col2
----
NULL

query II rowsort
SELECT 84, 72 * + 41 col0
----
84
2952

onlyif mysql # aggregate syntax: 
query I rowsort label-3319
SELECT ALL - 18 * - COUNT( * ) - - - 49
----
-31

skipif mysql # not compatible
query I rowsort label-3319
SELECT ALL - 18 * - COUNT ( * ) - - - 49
----
-31

query I rowsort
SELECT + 7 + 70 + + - 67 AS col0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3321
SELECT ALL + - 29 * + NULLIF ( + 72, - 27 / CAST( NULL AS SIGNED ) )
----
-2088

skipif mysql # not compatible
query I rowsort label-3321
SELECT ALL + - 29 * + NULLIF ( + 72, - 27 / CAST ( NULL AS INTEGER ) )
----
-2088

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT + - 48 * + CASE - - AVG ( DISTINCT - 81 ) WHEN + + 36 - + - 82 THEN NULL WHEN - CASE 69 WHEN SUM( - 16 ) * - - 63 + SUM( - 15 ) THEN NULL ELSE + ( - SUM( ALL + + ( + + 40 ) ) ) END THEN 48 END * - 32 + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3322
SELECT + - 48 * + CASE - - AVG ( DISTINCT - 81 ) WHEN + + 36 - + - 82 THEN NULL WHEN - CASE 69 WHEN SUM ( - 16 ) * - - 63 + SUM ( - 15 ) THEN NULL ELSE + ( - SUM ( ALL + + ( + + 40 ) ) ) END THEN 48 END * - 32 + - COUNT ( * ) AS col1
----
NULL

query II rowsort
SELECT DISTINCT - + 0, - 95 + + - 36 * 77 + - 26 AS col2
----
0
-2893

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3324
SELECT ALL - CAST( - - 26 AS SIGNED ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-3324
SELECT ALL - CAST ( - - 26 AS INTEGER ) AS col0
----
-26

query I rowsort
SELECT 28 * + + 6
----
168

query I rowsort
SELECT 59 + + 74 * + + 68 AS col1
----
5091

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT DISTINCT + - 87 * SUM( ALL + 59 ) AS col2
----
-5133

skipif mysql # not compatible
query I rowsort label-3327
SELECT DISTINCT + - 87 * SUM ( ALL + 59 ) AS col2
----
-5133

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT ALL - + COUNT( * ) + - + 53 AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-3328
SELECT ALL - + COUNT ( * ) + - + 53 AS col2
----
-54

query I rowsort
SELECT - ( + NULLIF ( + 22, - 2 ) )
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3330
SELECT + - 4 * + NULLIF ( - 31, 6 ) / + COUNT( * ) + + 73 / 29 - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3330
SELECT + - 4 * + NULLIF ( - 31, 6 ) / + COUNT ( * ) + + 73 / 29 - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT ALL - 54 AS col1, ( + 94 ) + + 69 + 56 AS col2
----
-54
219

query I rowsort
SELECT ALL 7 + 70
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3333
SELECT DISTINCT + 31 + + COALESCE ( - ( 3 ), 6 + + + 89 + 8, - 93 DIV - 23, - MAX( + 28 ) ) * - 88 * 31 AS col0
----
8215

skipif mysql # not compatible
query I rowsort label-3333
SELECT DISTINCT + 31 + + COALESCE ( - ( 3 ), 6 + + + 89 + 8, - 93 / - 23, - MAX ( + 28 ) ) * - 88 * 31 AS col0
----
8215

query I rowsort
SELECT 60 * + - 78
----
-4680

onlyif mysql # DIV for integer division: 
query I rowsort label-3335
SELECT ALL - 86 DIV + 88
----
0

skipif mysql # not compatible
query I rowsort label-3335
SELECT ALL - 86 / + 88
----
0

query I rowsort
SELECT DISTINCT + 31 + + COALESCE ( 65, 24 * 3 ) AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3337
SELECT DISTINCT - CASE - + 68 WHEN + + COUNT( * ) + - 2 + - + MIN( + COALESCE ( - 50, - 27, + 91 ) ) THEN NULL WHEN - - 41 * - 3 * - CASE + 12 WHEN - COUNT( * ) THEN + 95 ELSE - 3 END + + - 88 THEN - 17 END * ( 13 ) * 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3337
SELECT DISTINCT - CASE - + 68 WHEN + + COUNT ( * ) + - 2 + - + MIN ( + COALESCE ( - 50, - 27, + 91 ) ) THEN NULL WHEN - - 41 * - 3 * - CASE + 12 WHEN - COUNT ( * ) THEN + 95 ELSE - 3 END + + - 88 THEN - 17 END * ( 13 ) * 25 AS col1
----
NULL

query I rowsort
SELECT ALL + 13 + + 11 * - 19 * 47 AS col0
----
-9810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3339
SELECT DISTINCT - ( + CAST( NULL AS SIGNED ) ) * + 23 - + 58 * - 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3339
SELECT DISTINCT - ( + CAST ( NULL AS INTEGER ) ) * + 23 - + 58 * - 52 AS col1
----
NULL

query I rowsort
SELECT 10 * 98 * - - 52 * + 63 * - 15 * + + 7
----
-337100400

query I rowsort
SELECT ALL + NULLIF ( + 54, - 3 ) - 19
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-3342
SELECT 94 - - 9, + COUNT( * ) AS col1
----
103
1

skipif mysql # not compatible
query II rowsort label-3342
SELECT 94 - - 9, + COUNT ( * ) AS col1
----
103
1

query I rowsort
SELECT 4 + + 95 AS col2
----
99

query II rowsort
SELECT COALESCE ( + - 17, - - 5 ) * 25 * - 37 AS col0, 58
----
15725
58

onlyif mysql # aggregate syntax: 
query II rowsort label-3345
SELECT 10 * - + 44 AS col2, + MIN( + 77 )
----
-440
77

skipif mysql # not compatible
query II rowsort label-3345
SELECT 10 * - + 44 AS col2, + MIN ( + 77 )
----
-440
77

query I rowsort
SELECT ( 74 ) + - + 89
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT ALL COALESCE ( - MAX( DISTINCT - - 75 ), + + 76 * 50 )
----
-75

skipif mysql # not compatible
query I rowsort label-3347
SELECT ALL COALESCE ( - MAX ( DISTINCT - - 75 ), + + 76 * 50 )
----
-75

query I rowsort
SELECT 95 - + 36
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3349
SELECT ALL - 78 * + - CAST( - 98 AS SIGNED ) * 94
----
-718536

skipif mysql # not compatible
query I rowsort label-3349
SELECT ALL - 78 * + - CAST ( - 98 AS INTEGER ) * 94
----
-718536

query I rowsort
SELECT + 5 * + - 84
----
-420

query I rowsort
SELECT ( + - 16 ) * - 57
----
912

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3352
SELECT - 6 * - 74 + 68 - - COUNT( ALL + 62 ) + - 59 * 4 * - 80 AS col2, 29 * 56 DIV - COUNT( * )
----
19393
-1624

skipif mysql # not compatible
query II rowsort label-3352
SELECT - 6 * - 74 + 68 - - COUNT ( ALL + 62 ) + - 59 * 4 * - 80 AS col2, 29 * 56 / - COUNT ( * )
----
19393
-1624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3353
SELECT ALL - CASE - + 89 WHEN 34 / COUNT( * ) * + COUNT( * ) - ( + 55 ) + + + 85 * - 85 * 45 THEN 93 + + COALESCE ( 97, - CAST( NULL AS SIGNED ) ) + COALESCE ( - ( - + COUNT( * ) ), - 80, + 6 ) ELSE CAST( - 23 AS SIGNED ) END AS col0
----
23

skipif mysql # not compatible
query I rowsort label-3353
SELECT ALL - CASE - + 89 WHEN 34 / COUNT ( * ) * + COUNT ( * ) - ( + 55 ) + + + 85 * - 85 * 45 THEN 93 + + COALESCE ( 97, - CAST ( NULL AS INTEGER ) ) + COALESCE ( - ( - + COUNT ( * ) ), - 80, + 6 ) ELSE CAST ( - 23 AS INTEGER ) END AS col0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-3354
SELECT ALL 11 + + 7 DIV 79 + - - 97 * + 99 - + 88 DIV 56 * - 52 AS col2
----
9666

skipif mysql # not compatible
query I rowsort label-3354
SELECT ALL 11 + + 7 / 79 + - - 97 * + 99 - + 88 / 56 * - 52 AS col2
----
9666

query I rowsort
SELECT ALL 25 + NULLIF ( + 48, + + 94 + 43 + - 55 ) AS col2
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-3356
SELECT DISTINCT - 29 DIV - - 71
----
0

skipif mysql # not compatible
query I rowsort label-3356
SELECT DISTINCT - 29 / - - 71
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3357
SELECT - COALESCE ( - 75, + + SUM( DISTINCT - CAST( - 9 AS SIGNED ) ) ) * - 25 AS col0
----
-1875

skipif mysql # not compatible
query I rowsort label-3357
SELECT - COALESCE ( - 75, + + SUM ( DISTINCT - CAST ( - 9 AS INTEGER ) ) ) * - 25 AS col0
----
-1875

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3358
SELECT ALL + 60 + + 34 + - CAST( - + 41 AS SIGNED ) * - + 14 DIV + 14
----
53

skipif mysql # not compatible
query I rowsort label-3358
SELECT ALL + 60 + + 34 + - CAST ( - + 41 AS INTEGER ) * - + 14 / + 14
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3359
SELECT DISTINCT 95 + + CASE NULLIF ( - ( CASE - 27 WHEN + COALESCE ( - - 78, - COUNT( * ) * - - ( + - 26 ) + - - 11 + 40 ) THEN 0 + 79 WHEN - 38 THEN NULL END ), - 32 ) WHEN - 58 + - - 23 * - 67 THEN + CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3359
SELECT DISTINCT 95 + + CASE NULLIF ( - ( CASE - 27 WHEN + COALESCE ( - - 78, - COUNT ( * ) * - - ( + - 26 ) + - - 11 + 40 ) THEN 0 + 79 WHEN - 38 THEN NULL END ), - 32 ) WHEN - 58 + - - 23 * - 67 THEN + CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3360
SELECT 98, - MIN( - - 90 ) + - CASE + 46 WHEN - 16 + + - CAST( - 78 AS SIGNED ) THEN + - COALESCE ( COUNT( * ), - - 2 + - AVG ( + 66 ), - - COUNT( * ) ) ELSE NULL END + - SUM( + CASE - - 41 WHEN + 26 THEN 14 END ) * + - 74 / + + 91 * + 14 / + + 4 AS col1
----
98
NULL

skipif mysql # not compatible
query II rowsort label-3360
SELECT 98, - MIN ( - - 90 ) + - CASE + 46 WHEN - 16 + + - CAST ( - 78 AS INTEGER ) THEN + - COALESCE ( COUNT ( * ), - - 2 + - AVG ( + 66 ), - - COUNT ( * ) ) ELSE NULL END + - SUM ( + CASE - - 41 WHEN + 26 THEN 14 END ) * + - 74 / + + 91 * + 14 / + + 4 AS col1
----
98
NULL

query I rowsort
SELECT 5 * - - 58 * 26 col2
----
7540

onlyif mysql # aggregate syntax: 
query I rowsort label-3362
SELECT - COUNT( ALL - 19 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3362
SELECT - COUNT ( ALL - 19 ) AS col1
----
-1

query I rowsort
SELECT ALL - 81 * 3 AS col1
----
-243

query I rowsort
SELECT 95 + 70 AS col2
----
165

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3365
SELECT DISTINCT 64 * CAST( - 25 AS SIGNED ), + 62 AS col1
----
-1600
62

skipif mysql # not compatible
query II rowsort label-3365
SELECT DISTINCT 64 * CAST ( - 25 AS INTEGER ), + 62 AS col1
----
-1600
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT ALL SUM( - 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-3366
SELECT ALL SUM ( - 79 )
----
-79

query I rowsort
SELECT 14 + 78 AS col0
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-3368
SELECT ALL 28, + MAX( + 85 ) AS col1
----
28
85

skipif mysql # not compatible
query II rowsort label-3368
SELECT ALL 28, + MAX ( + 85 ) AS col1
----
28
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT ( - 59 ) + + - COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-3369
SELECT ( - 59 ) + + - COUNT ( * )
----
-60

query I rowsort
SELECT 30 - 41 - 48 * ( 22 )
----
-1067

query II rowsort
SELECT ALL 37 AS col2, + 55 * 91 AS col2
----
37
5005

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3372
SELECT 39 + + - CAST( NULL AS SIGNED ) * COALESCE ( - CAST( + ( - + 60 ) AS SIGNED ), + 88 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3372
SELECT 39 + + - CAST ( NULL AS INTEGER ) * COALESCE ( - CAST ( + ( - + 60 ) AS INTEGER ), + 88 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT DISTINCT SUM( + 91 )
----
91

skipif mysql # not compatible
query I rowsort label-3373
SELECT DISTINCT SUM ( + 91 )
----
91

query I rowsort
SELECT 20 * - 54
----
-1080

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT ALL - 19 * + 4 * MIN( + 19 ) AS col2
----
-1444

skipif mysql # not compatible
query I rowsort label-3375
SELECT ALL - 19 * + 4 * MIN ( + 19 ) AS col2
----
-1444

onlyif mysql # aggregate syntax: 
query I rowsort label-3376
SELECT 29 + - SUM( - 26 ) + + COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-3376
SELECT 29 + - SUM ( - 26 ) + + COUNT ( * )
----
56

query I rowsort
SELECT ALL + 10 * - - 83 AS col2
----
830

query I rowsort
SELECT DISTINCT + 40 * - 44
----
-1760

query II rowsort
SELECT ALL - + 38 * - - 86 * - + 53 + 65 AS col1, + 3
----
173269
3

query I rowsort
SELECT DISTINCT - 49 * + - 38 col0
----
1862

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT - 29 + - COUNT( * ) + + 62 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-3381
SELECT - 29 + - COUNT ( * ) + + 62 AS col0
----
32

query II rowsort
SELECT 76 AS col0, 95
----
76
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3383
SELECT - + NULLIF ( - + 73, 90 * + CAST( COUNT( * ) AS SIGNED ) + - + COUNT( * ) )
----
73

skipif mysql # not compatible
query I rowsort label-3383
SELECT - + NULLIF ( - + 73, 90 * + CAST ( COUNT ( * ) AS INTEGER ) + - + COUNT ( * ) )
----
73

query I rowsort
SELECT - 42 + - 30 + + 68 - - 34
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3385
SELECT - ( 23 ) * COUNT( * ) AS col1, MIN( + CAST( NULL AS SIGNED ) ) + - 16 + COUNT( * )
----
-23
NULL

skipif mysql # not compatible
query II rowsort label-3385
SELECT - ( 23 ) * COUNT ( * ) AS col1, MIN ( + CAST ( NULL AS INTEGER ) ) + - 16 + COUNT ( * )
----
-23
NULL

query I rowsort
SELECT + - 47 + + 96 + - + 74 * + + 56 AS col2
----
-4095

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3387
SELECT ALL - NULLIF ( NULLIF ( + - 65, - ( - + COALESCE ( - 16, - - 24, - 41 + - 55 + + + 96 - + COALESCE ( 32, - 24, + 76 ) ) ) ), - + COALESCE ( 66, 74, + 90 * 8 ) ) * - + 24 * CASE + 96 WHEN 12 - - ( - ( 92 ) ) - - + 20 + + + 39 THEN 23 / COUNT( * ) + - CAST( + 23 AS DECIMAL ) + + - 86 WHEN - + 49 THEN 61 WHEN - COUNT( * ) - 55 THEN + - COUNT( * ) * 4 * - + 38 END * 1 + - 18 + 95 + - 44 / 65 * + 42 * - - 20 + - - 62 + AVG ( DISTINCT - 25 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3387
SELECT ALL - NULLIF ( NULLIF ( + - 65, - ( - + COALESCE ( - 16, - - 24, - 41 + - 55 + + + 96 - + COALESCE ( 32, - 24, + 76 ) ) ) ), - + COALESCE ( 66, 74, + 90 * 8 ) ) * - + 24 * CASE + 96 WHEN 12 - - ( - ( 92 ) ) - - + 20 + + + 39 THEN 23 / COUNT ( * ) + - CAST ( + 23 AS REAL ) + + - 86 WHEN - + 49 THEN 61 WHEN - COUNT ( * ) - 55 THEN + - COUNT ( * ) * 4 * - + 38 END * 1 + - 18 + 95 + - 44 / 65 * + 42 * - - 20 + - - 62 + AVG ( DISTINCT - 25 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3388
SELECT COUNT( * ) * 5 + 63 + - + 27 * - COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-3388
SELECT COUNT ( * ) * 5 + 63 + - + 27 * - COUNT ( * )
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3389
SELECT ALL - MIN( + 60 ) * + 0 DIV + COUNT( - 15 ) + 22 AS col2, 31
----
22
31

skipif mysql # not compatible
query II rowsort label-3389
SELECT ALL - MIN ( + 60 ) * + 0 / + COUNT ( - 15 ) + 22 AS col2, 31
----
22
31

query I rowsort
SELECT + 49 * 91 + - 59 + - 71 AS col2
----
4329

query I rowsort
SELECT + - 45 * + 84 col2
----
-3780

query I rowsort
SELECT + 53 + - 13 AS col1
----
40

query I rowsort
SELECT ALL + 17 * NULLIF ( - - 71, + 67 ) - 24
----
1183

query I rowsort
SELECT + NULLIF ( - + 19, + + 84 + - + 79 ) * + 40 AS col1
----
-760

query I rowsort
SELECT ALL + 86 * 66 * + + 69
----
391644

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3396
SELECT DISTINCT MIN( ALL - 87 ) DIV 52
----
-1

skipif mysql # not compatible
query I rowsort label-3396
SELECT DISTINCT MIN ( ALL - 87 ) / 52
----
-1

query II rowsort
SELECT ALL 80 * 13 * - 79 - - - 47 col2, 51 + 15 col1
----
-82207
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3398
SELECT ALL CASE - 55 WHEN + 50 THEN - 43 END / + 60 * CAST( - - 30 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3398
SELECT ALL CASE - 55 WHEN + 50 THEN - 43 END / + 60 * CAST ( - - 30 AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 94 * + + 45 AS col1
----
4230

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT ALL - 1 * COUNT( * ) * - 30 * - 88 - NULLIF ( + 58, - 33 )
----
-2698

skipif mysql # not compatible
query I rowsort label-3400
SELECT ALL - 1 * COUNT ( * ) * - 30 * - 88 - NULLIF ( + 58, - 33 )
----
-2698

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3401
SELECT DISTINCT COUNT( * ) DIV + 26 col1
----
0

skipif mysql # not compatible
query I rowsort label-3401
SELECT DISTINCT COUNT ( * ) / + 26 col1
----
0

query II rowsort
SELECT + 87 + - + 84 AS col2, 25 + + 86 AS col2
----
3
111

query I rowsort
SELECT + 34 * - 2 AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3404
SELECT - 40 + + - 58 + + - ( - + 29 ) + + 40 * - COUNT( * ) col1
----
-109

skipif mysql # not compatible
query I rowsort label-3404
SELECT - 40 + + - 58 + + - ( - + 29 ) + + 40 * - COUNT ( * ) col1
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT ALL COUNT( * ) * - - 94 * - ( + - 54 )
----
5076

skipif mysql # not compatible
query I rowsort label-3405
SELECT ALL COUNT ( * ) * - - 94 * - ( + - 54 )
----
5076

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3406
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 35 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3406
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 35 col2
----
NULL

query II rowsort
SELECT + 21 * - + 11, 87 AS col1
----
-231
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3408
SELECT DISTINCT + 89 + - CAST( NULL AS SIGNED ) * + - SUM( ALL - + 84 ) + - 45 AS col0, 49 + MAX( DISTINCT - 20 ) * - 25 AS col0
----
NULL
549

skipif mysql # not compatible
query II rowsort label-3408
SELECT DISTINCT + 89 + - CAST ( NULL AS INTEGER ) * + - SUM ( ALL - + 84 ) + - 45 AS col0, 49 + MAX ( DISTINCT - 20 ) * - 25 AS col0
----
NULL
549

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

skipif mysql # not compatible
query I rowsort label-3409
SELECT ALL CAST ( NULL AS INTEGER ) + - - 95
----
NULL

query I rowsort
SELECT + 18 + + 13
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3411
SELECT + COUNT( * ) DIV - 68 + + ( - 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-3411
SELECT + COUNT ( * ) / - 68 + + ( - 15 )
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3412
SELECT - + COUNT( * ) + - + 96 DIV + COUNT( * ) + - 77 + - 86 AS col1
----
-260

skipif mysql # not compatible
query I rowsort label-3412
SELECT - + COUNT ( * ) + - + 96 / + COUNT ( * ) + - 77 + - 86 AS col1
----
-260

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT DISTINCT + + 81 + - 8 + - MIN( 45 ) * 51
----
-2222

skipif mysql # not compatible
query I rowsort label-3413
SELECT DISTINCT + + 81 + - 8 + - MIN ( 45 ) * 51
----
-2222

query II rowsort
SELECT - - 59 + 36 AS col1, NULLIF ( + 18, 70 + + + 38 * + 89 ) + 25
----
95
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3415
SELECT ALL - 54 + 60 - + - 94 - CAST( NULL AS SIGNED ) * 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3415
SELECT ALL - 54 + 60 - + - 94 - CAST ( NULL AS INTEGER ) * 87 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3416
SELECT ALL + MAX( ALL - - 57 ) + - + 63 + + 39 AS col1, - 38
----
33
-38

skipif mysql # not compatible
query II rowsort label-3416
SELECT ALL + MAX ( ALL - - 57 ) + - + 63 + + 39 AS col1, - 38
----
33
-38

query I rowsort
SELECT DISTINCT 28 + + 46
----
74

query I rowsort
SELECT - + 15 - 17 - 34 col1
----
-66

query I rowsort
SELECT ALL - 4 * 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT ALL + - 39 * ( - COUNT( * ) ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-3420
SELECT ALL + - 39 * ( - COUNT ( * ) ) AS col0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3421
SELECT DISTINCT + + ( CAST( + - 67 AS SIGNED ) ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-3421
SELECT DISTINCT + + ( CAST ( + - 67 AS INTEGER ) ) AS col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT DISTINCT + COALESCE ( - - ( + ( + SUM( ALL - 59 ) ) ), 71, - ( + 26 ) * - - 61 ) * + COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-3422
SELECT DISTINCT + COALESCE ( - - ( + ( + SUM ( ALL - 59 ) ) ), 71, - ( + 26 ) * - - 61 ) * + COUNT ( * )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3423
SELECT ALL - ( - 36 ) * - 55 * CASE - MIN( ALL - 74 ) WHEN + - MAX( 24 ) + + - 54 THEN NULL ELSE + CASE - - 92 WHEN + 33 * - 47 + 77 THEN - 86 WHEN 25 + + 44 + - - 65 * + 29 + - 50 THEN 15 * + 80 + - 73 END * 87 + + COUNT( * ) END / - ( - MIN( - - 86 ) ) - + + 36 + - NULLIF ( - 92, - - 85 * - 39 ) * - 70 / 48 * 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3423
SELECT ALL - ( - 36 ) * - 55 * CASE - MIN ( ALL - 74 ) WHEN + - MAX ( 24 ) + + - 54 THEN NULL ELSE + CASE - - 92 WHEN + 33 * - 47 + 77 THEN - 86 WHEN 25 + + 44 + - - 65 * + 29 + - 50 THEN 15 * + 80 + - 73 END * 87 + + COUNT ( * ) END / - ( - MIN ( - - 86 ) ) - + + 36 + - NULLIF ( - 92, - - 85 * - 39 ) * - 70 / 48 * 38 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3424
SELECT ALL + - SUM( - 67 )
----
67

skipif mysql # not compatible
query I rowsort label-3424
SELECT ALL + - SUM ( - 67 )
----
67

onlyif mysql # DIV for integer division: 
query II rowsort label-3425
SELECT ( + 63 ) AS col2, 51 DIV 91
----
63
0

skipif mysql # not compatible
query II rowsort label-3425
SELECT ( + 63 ) AS col2, 51 / 91
----
63
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT + - MAX( ALL - 10 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-3426
SELECT + - MAX ( ALL - 10 ) AS col2
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3427
SELECT + + 27 / 27 - NULLIF ( CAST( NULL AS SIGNED ), + 59 ) + - 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3427
SELECT + + 27 / 27 - NULLIF ( CAST ( NULL AS INTEGER ), + 59 ) + - 54 AS col0
----
NULL

query I rowsort
SELECT ( - + 68 ) AS col2
----
-68

query I rowsort
SELECT ALL + NULLIF ( - ( - 6 ), + 64 )
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-3430
SELECT + COUNT( * ), 35 AS col2
----
1
35

skipif mysql # not compatible
query II rowsort label-3430
SELECT + COUNT ( * ), 35 AS col2
----
1
35

query I rowsort
SELECT + NULLIF ( 73, - 46 ) AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3432
SELECT CASE + + 7 WHEN + - MIN( 25 ) THEN 72 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3432
SELECT CASE + + 7 WHEN + - MIN ( 25 ) THEN 72 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3433
SELECT - 34 + - COUNT( * ) + + NULLIF ( - + 68, + - 63 ) + - 26 + + 22 * 45 * COUNT( * ) AS col0
----
861

skipif mysql # not compatible
query I rowsort label-3433
SELECT - 34 + - COUNT ( * ) + + NULLIF ( - + 68, + - 63 ) + - 26 + + 22 * 45 * COUNT ( * ) AS col0
----
861

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT - CASE - 94 WHEN 55 THEN - 52 - + - 98 END * - + 31 + - 14 + - 25 * + + COUNT( * ) + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-3434
SELECT - CASE - 94 WHEN 55 THEN - 52 - + - 98 END * - + 31 + - 14 + - 25 * + + COUNT ( * ) + 16
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT DISTINCT + 86 * + 62 + 15 + - - CASE + 87 WHEN + - ( COUNT( ALL - 81 ) ) * - + 38 + 30 / + 97 THEN + - 9 * - 33 WHEN + 72 THEN + 9 END + - - 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3435
SELECT DISTINCT + 86 * + 62 + 15 + - - CASE + 87 WHEN + - ( COUNT ( ALL - 81 ) ) * - + 38 + 30 / + 97 THEN + - 9 * - 33 WHEN + 72 THEN + 9 END + - - 99 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3436
SELECT ALL 98 + + 62 + - - 56 / - CAST( NULL AS SIGNED ) + 37 AS col1, COUNT( * ) * + + 40 * COUNT( ALL - + 86 )
----
NULL
40

skipif mysql # not compatible
query II rowsort label-3436
SELECT ALL 98 + + 62 + - - 56 / - CAST ( NULL AS INTEGER ) + 37 AS col1, COUNT ( * ) * + + 40 * COUNT ( ALL - + 86 )
----
NULL
40

query I rowsort
SELECT NULLIF ( 45, + 71 ) + + ( - 89 ) + + - 8 - + 59 * ( + 22 )
----
-1350

query I rowsort
SELECT ALL + 20 + - - 70
----
90

query I rowsort
SELECT 29 + 83 * + 46
----
3847

onlyif mysql # DIV for integer division: 
query I rowsort label-3440
SELECT DISTINCT 97 + + 28 DIV + 36 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-3440
SELECT DISTINCT 97 + + 28 / + 36 AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3441
SELECT 83 + + ( COALESCE ( + 90, 0, CASE 92 WHEN - COUNT( * ) THEN 19 WHEN ( - 81 ) THEN NULL ELSE + 90 END ) - + 8 )
----
165

skipif mysql # not compatible
query I rowsort label-3441
SELECT 83 + + ( COALESCE ( + 90, 0, CASE 92 WHEN - COUNT ( * ) THEN 19 WHEN ( - 81 ) THEN NULL ELSE + 90 END ) - + 8 )
----
165

query I rowsort
SELECT ALL 32 + - 63 * + 83 AS col2
----
-5197

query I rowsort
SELECT DISTINCT 91 * 21 AS col2
----
1911

query I rowsort
SELECT DISTINCT 61 + 97
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-3445
SELECT ALL 96 + COUNT( ALL - 39 )
----
97

skipif mysql # not compatible
query I rowsort label-3445
SELECT ALL 96 + COUNT ( ALL - 39 )
----
97

query I rowsort
SELECT DISTINCT 55 * 0
----
0

query I rowsort
SELECT DISTINCT - 12 - - 66
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3448
SELECT CASE 90 WHEN + 50 + SUM( - 22 + - 14 * 22 ) THEN NULL ELSE 68 END * 48
----
3264

skipif mysql # not compatible
query I rowsort label-3448
SELECT CASE 90 WHEN + 50 + SUM ( - 22 + - 14 * 22 ) THEN NULL ELSE 68 END * 48
----
3264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3449
SELECT CAST( + ( - ( - 40 ) ) AS SIGNED ) * + COUNT( * ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-3449
SELECT CAST ( + ( - ( - 40 ) ) AS INTEGER ) * + COUNT ( * ) AS col2
----
40

query I rowsort
SELECT DISTINCT 84 - - ( + 83 ) AS col0
----
167

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3451
SELECT ALL COUNT( * ) / + CASE - CAST( NULL AS SIGNED ) WHEN - AVG ( DISTINCT 7 ) + CASE + 25 WHEN + 45 - + CAST( - COUNT( * ) AS SIGNED ) * CAST( - NULLIF ( + CAST( NULL AS SIGNED ), ( + COUNT( * ) ) ) * + NULLIF ( 30, 27 ) AS SIGNED ) THEN + 71 * + ( 10 * - 87 ) WHEN 6 + - 10 THEN NULL END THEN NULL WHEN - 89 * 25 THEN 31 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3451
SELECT ALL COUNT ( * ) / + CASE - CAST ( NULL AS INTEGER ) WHEN - AVG ( DISTINCT 7 ) + CASE + 25 WHEN + 45 - + CAST ( - COUNT ( * ) AS INTEGER ) * CAST ( - NULLIF ( + CAST ( NULL AS INTEGER ), ( + COUNT ( * ) ) ) * + NULLIF ( 30, 27 ) AS INTEGER ) THEN + 71 * + ( 10 * - 87 ) WHEN 6 + - 10 THEN NULL END THEN NULL WHEN - 89 * 25 THEN 31 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3452
SELECT CAST( - 3 AS SIGNED ) * 16
----
-48

skipif mysql # not compatible
query I rowsort label-3452
SELECT CAST ( - 3 AS INTEGER ) * 16
----
-48

query I rowsort
SELECT ALL - 95 - COALESCE ( + 13, 82, 97 )
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-3454
SELECT DISTINCT + NULLIF ( - 21, MAX( - 53 ) ) * 15 AS col2
----
-315

skipif mysql # not compatible
query I rowsort label-3454
SELECT DISTINCT + NULLIF ( - 21, MAX ( - 53 ) ) * 15 AS col2
----
-315

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3455
SELECT 98 / CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3455
SELECT 98 / CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ALL - 22 * 20 AS col2
----
-440

query I rowsort
SELECT 4 + 90 AS col2
----
94

query I rowsort
SELECT DISTINCT - 14 * 29
----
-406

onlyif mysql # aggregate syntax: 
query I rowsort label-3459
SELECT DISTINCT 41 * ( NULLIF ( + 45, COUNT( * ) ) )
----
1845

skipif mysql # not compatible
query I rowsort label-3459
SELECT DISTINCT 41 * ( NULLIF ( + 45, COUNT ( * ) ) )
----
1845

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3460
SELECT ALL - CASE - 86 WHEN + 41 + 57 * + NULLIF ( CAST( ( + 7 ) AS SIGNED ), + NULLIF ( - 57, CAST( NULL AS SIGNED ) ) ) THEN - 4 WHEN 21 - 94 THEN 78 + - 75 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3460
SELECT ALL - CASE - 86 WHEN + 41 + 57 * + NULLIF ( CAST ( ( + 7 ) AS INTEGER ), + NULLIF ( - 57, CAST ( NULL AS INTEGER ) ) ) THEN - 4 WHEN 21 - 94 THEN 78 + - 75 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3461
SELECT 88 DIV + 69
----
1

skipif mysql # not compatible
query I rowsort label-3461
SELECT 88 / + 69
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3462
SELECT 23 DIV + 13
----
1

skipif mysql # not compatible
query I rowsort label-3462
SELECT 23 / + 13
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT ALL - NULLIF ( + COUNT( * ), 12 * 64 ) * 68 col2
----
-68

skipif mysql # not compatible
query I rowsort label-3463
SELECT ALL - NULLIF ( + COUNT ( * ), 12 * 64 ) * 68 col2
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3464
SELECT DISTINCT + 69 * CASE + 5 WHEN CAST( NULL AS SIGNED ) THEN - 77 - - 37 ELSE 56 END AS col0
----
3864

skipif mysql # not compatible
query I rowsort label-3464
SELECT DISTINCT + 69 * CASE + 5 WHEN CAST ( NULL AS INTEGER ) THEN - 77 - - 37 ELSE 56 END AS col0
----
3864

onlyif mysql # aggregate syntax: 
query I rowsort label-3465
SELECT 33 * MIN( + 83 ) col2
----
2739

skipif mysql # not compatible
query I rowsort label-3465
SELECT 33 * MIN ( + 83 ) col2
----
2739

query I rowsort
SELECT ALL - CASE 91 WHEN + 36 + ( - 29 ) THEN 47 * ( + 46 ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 49 + + 36
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3468
SELECT DISTINCT - ( - SUM( DISTINCT 4 ) ) col2
----
4

skipif mysql # not compatible
query I rowsort label-3468
SELECT DISTINCT - ( - SUM ( DISTINCT 4 ) ) col2
----
4

query I rowsort
SELECT ALL + 24 + 31 AS col2
----
55

query I rowsort
SELECT ALL - CASE 33 WHEN - 43 + 82 THEN 70 WHEN - 64 THEN - 91 ELSE 47 END
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT ALL - 60 + + MAX( + 44 ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-3471
SELECT ALL - 60 + + MAX ( + 44 ) AS col2
----
-16

query I rowsort
SELECT DISTINCT + 6 + + 50 AS col2
----
56

query I rowsort
SELECT DISTINCT - 79 + + 99 AS col1
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-3474
SELECT ALL 92 + + 4 * NULLIF ( 79 DIV - ( - 71 ), 40 )
----
96

skipif mysql # not compatible
query I rowsort label-3474
SELECT ALL 92 + + 4 * NULLIF ( 79 / - ( - 71 ), 40 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT ALL - ( COUNT( * ) ) + 5 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-3475
SELECT ALL - ( COUNT ( * ) ) + 5 AS col2
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3476
SELECT 38 DIV MIN( 32 )
----
1

skipif mysql # not compatible
query I rowsort label-3476
SELECT 38 / MIN ( 32 )
----
1

query I rowsort
SELECT ( + 38 ) * - 61 AS col2
----
-2318

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3478
SELECT ALL - - 39 + CAST( NULL AS SIGNED ) * CAST( 41 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3478
SELECT ALL - - 39 + CAST ( NULL AS INTEGER ) * CAST ( 41 AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - ( - 54 ) col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3480
SELECT - NULLIF ( - 16, 6 * + NULLIF ( + MAX( ALL 55 ) * COALESCE ( - COALESCE ( 13, + 33 * ( 85 ) - + 95 * 80 ), + 45 + - 4, + 77 / - 48 ), 17 ) ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-3480
SELECT - NULLIF ( - 16, 6 * + NULLIF ( + MAX ( ALL 55 ) * COALESCE ( - COALESCE ( 13, + 33 * ( 85 ) - + 95 * 80 ), + 45 + - 4, + 77 / - 48 ), 17 ) ) AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3481
SELECT DISTINCT + MIN( DISTINCT - 46 ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-3481
SELECT DISTINCT + MIN ( DISTINCT - 46 ) AS col2
----
-46

query I rowsort
SELECT ALL 66 + - 0 * 31 AS col0
----
66

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3484
SELECT ALL COUNT( DISTINCT - 68 )
----
1

skipif mysql # not compatible
query I rowsort label-3484
SELECT ALL COUNT ( DISTINCT - 68 )
----
1

query I rowsort
SELECT ( 68 ) * 58 AS col2
----
3944

query I rowsort
SELECT 63 + 42
----
105

query I rowsort
SELECT - 8 + 0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT 12 * + ( - 91 + 64 * + COUNT( * ) ) col0
----
-324

skipif mysql # not compatible
query I rowsort label-3488
SELECT 12 * + ( - 91 + 64 * + COUNT ( * ) ) col0
----
-324

query I rowsort
SELECT ALL - COALESCE ( 82, + 45, - 28 * 3 ) AS col0
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3490
SELECT - COUNT( DISTINCT 7 ) - - NULLIF ( 9, CAST( 92 AS SIGNED ) ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-3490
SELECT - COUNT ( DISTINCT 7 ) - - NULLIF ( 9, CAST ( 92 AS INTEGER ) ) AS col0
----
8

query I rowsort
SELECT 4 + 89
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3492
SELECT 14 * + CAST( 88 AS SIGNED )
----
1232

skipif mysql # not compatible
query I rowsort label-3492
SELECT 14 * + CAST ( 88 AS INTEGER )
----
1232

onlyif mysql # aggregate syntax: 
query I rowsort label-3493
SELECT ALL 0 * + - COALESCE ( COALESCE ( + 19, - 31, 85 ), COUNT( * ) + + 80 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3493
SELECT ALL 0 * + - COALESCE ( COALESCE ( + 19, - 31, 85 ), COUNT ( * ) + + 80 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT MIN( + 72 ) col1
----
72

skipif mysql # not compatible
query I rowsort label-3494
SELECT MIN ( + 72 ) col1
----
72

query I rowsort
SELECT + NULLIF ( + ( 38 ), + 77 ) col2
----
38

query I rowsort
SELECT 39 * + 66
----
2574

onlyif mysql # aggregate syntax: 
query I rowsort label-3497
SELECT DISTINCT + 25 * + COUNT( * ) * - 65 + 77 col2
----
-1548

skipif mysql # not compatible
query I rowsort label-3497
SELECT DISTINCT + 25 * + COUNT ( * ) * - 65 + 77 col2
----
-1548

onlyif mysql # aggregate syntax: 
query I rowsort label-3498
SELECT DISTINCT + COUNT( * ) * 90 + - 92
----
-2

skipif mysql # not compatible
query I rowsort label-3498
SELECT DISTINCT + COUNT ( * ) * 90 + - 92
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3499
SELECT DISTINCT - SUM( + + 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-3499
SELECT DISTINCT - SUM ( + + 88 )
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-3500
SELECT + 28 * - 93 DIV 93
----
-28

skipif mysql # not compatible
query I rowsort label-3500
SELECT + 28 * - 93 / 93
----
-28

query I rowsort
SELECT ALL 73 * + - 89 * 37 + - 17 * ( + 85 ) AS col1
----
-241834

onlyif mysql # aggregate syntax: 
query I rowsort label-3502
SELECT DISTINCT + MAX( - 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-3502
SELECT DISTINCT + MAX ( - 89 )
----
-89

query I rowsort
SELECT ALL + ( 83 ) * + 34 + 72 AS col1
----
2894

query I rowsort
SELECT + 92 + - + 36 + 50 * 91 AS col2
----
4606

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3505
SELECT + 69 + - COUNT( * ) DIV + 11 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-3505
SELECT + 69 + - COUNT ( * ) / + 11 AS col2
----
69

query I rowsort
SELECT - ( + 54 ) - 75
----
-129

query I rowsort
SELECT ALL + 20 * - 83 col2
----
-1660

query I rowsort
SELECT 29 * - 8 + - 38 AS col2
----
-270

query I rowsort
SELECT + NULLIF ( + - 91, - COALESCE ( - 70, + 21 ) )
----
-91

query I rowsort
SELECT - 20 + + + 22 AS col2
----
2

query I rowsort
SELECT - 34 + 2
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3512
SELECT - - 11 * CAST( MAX( - CAST( + 96 AS SIGNED ) ) AS SIGNED ) + - 63 AS col1
----
-1119

skipif mysql # not compatible
query I rowsort label-3512
SELECT - - 11 * CAST ( MAX ( - CAST ( + 96 AS INTEGER ) ) AS INTEGER ) + - 63 AS col1
----
-1119

query I rowsort
SELECT + 40 * 82 + + 88 AS col1
----
3368

query I rowsort
SELECT ALL - CASE + NULLIF ( 22, - 4 ) WHEN - 95 THEN 66 - 49 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3515
SELECT + CAST( - - 87 AS SIGNED ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-3515
SELECT + CAST ( - - 87 AS INTEGER ) AS col1
----
87

query I rowsort
SELECT - - 61 + - + 82
----
-21

query I rowsort
SELECT ALL - - 19 * + 90 + 6
----
1716

query I rowsort
SELECT - ( + 98 ) * 54 AS col1
----
-5292

query I rowsort
SELECT - ( + 22 ) col1
----
-22

query I rowsort
SELECT DISTINCT - NULLIF ( - 31, + 63 )
----
31

query I rowsort
SELECT - - 84 + - 10 AS col0
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3522
SELECT ALL + 21 * CAST( 75 AS SIGNED )
----
1575

skipif mysql # not compatible
query I rowsort label-3522
SELECT ALL + 21 * CAST ( 75 AS INTEGER )
----
1575

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3523
SELECT + - 35 / + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3523
SELECT + - 35 / + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 12 + 75 AS col0
----
63

query I rowsort
SELECT - - 65 - - + 49 * - 51
----
-2434

query I rowsort
SELECT - 83 + - - 78
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3527
SELECT ALL COUNT( - 31 ) DIV + - 15 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3527
SELECT ALL COUNT ( - 31 ) / + - 15 AS col1
----
0

query I rowsort
SELECT 69 * - 62 + - 18 AS col2
----
-4296

onlyif mysql # aggregate syntax: 
query I rowsort label-3529
SELECT + 41 * - CASE 95 WHEN COUNT( * ) THEN 98 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3529
SELECT + 41 * - CASE 95 WHEN COUNT ( * ) THEN 98 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3530
SELECT ALL - 98 DIV - COUNT( * ) * + COUNT( * ) + SUM( DISTINCT 69 + + 78 ) * 32
----
4802

skipif mysql # not compatible
query I rowsort label-3530
SELECT ALL - 98 / - COUNT ( * ) * + COUNT ( * ) + SUM ( DISTINCT 69 + + 78 ) * 32
----
4802

query I rowsort
SELECT 87 * - 12 + - - 53
----
-991

query I rowsort
SELECT DISTINCT + 4 * + - 56 + + - NULLIF ( + 86, + 21 + 34 )
----
-310

onlyif mysql # aggregate syntax: 
query I rowsort label-3533
SELECT ALL 0 * COUNT( * ) + + 94 + + COUNT( * ) * - 72
----
22

skipif mysql # not compatible
query I rowsort label-3533
SELECT ALL 0 * COUNT ( * ) + + 94 + + COUNT ( * ) * - 72
----
22

query I rowsort
SELECT + CASE 32 WHEN - CASE WHEN NOT NULL IS NOT NULL THEN - 25 END THEN 31 END + 82 AS col1
----
NULL

query I rowsort
SELECT + ( 53 ) AS col1
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3536
SELECT + 69 * - + 30 * + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3536
SELECT + 69 * - + 30 * + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT NULLIF ( - 39, + 24 ) * 25 + + 95 * 72 AS col1
----
5865

query I rowsort
SELECT ( + + 6 ) AS col0
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3539
SELECT + COUNT( * ) DIV - 8 + + COUNT( * ) * + COALESCE ( + 63, 87 * 89, 30 * 38 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-3539
SELECT + COUNT ( * ) / - 8 + + COUNT ( * ) * + COALESCE ( + 63, 87 * 89, 30 * 38 ) AS col1
----
63

query I rowsort
SELECT CASE + - 22 WHEN - ( - 42 ) THEN 20 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3541
SELECT + ( + ( COUNT( 39 ) ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3541
SELECT + ( + ( COUNT ( 39 ) ) ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT - COUNT( * ) + - 31 * + 6
----
-187

skipif mysql # not compatible
query I rowsort label-3542
SELECT - COUNT ( * ) + - 31 * + 6
----
-187

query I rowsort
SELECT ALL 49 * - 56 * - 61 - - 35 AS col1
----
167419

query I rowsort
SELECT + 39 * 74 * + - 95 AS col0
----
-274170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3545
SELECT ALL + NULLIF ( 16, 53 / + MIN( ( CAST( NULL AS SIGNED ) ) * - 72 ) + + 73 * 73 )
----
16

skipif mysql # not compatible
query I rowsort label-3545
SELECT ALL + NULLIF ( 16, 53 / + MIN ( ( CAST ( NULL AS INTEGER ) ) * - 72 ) + + 73 * 73 )
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-3546
SELECT DISTINCT + 75 AS col2, + COUNT( * )
----
75
1

skipif mysql # not compatible
query II rowsort label-3546
SELECT DISTINCT + 75 AS col2, + COUNT ( * )
----
75
1

query I rowsort
SELECT ALL + - 72 * - 10 AS col2
----
720

query II rowsort
SELECT ALL + + 1 AS col0, 58 + - 46 + - ( 13 ) col2
----
1
-1

query I rowsort
SELECT - 40 * + 7 AS col0
----
-280

onlyif mysql # DIV for integer division: 
query II rowsort label-3550
SELECT + 90, - ( 96 ) * + COALESCE ( 36, 88 * 96, - 48 * + 25, - 96 DIV - 36 ) AS col0
----
90
-3456

skipif mysql # not compatible
query II rowsort label-3550
SELECT + 90, - ( 96 ) * + COALESCE ( 36, 88 * 96, - 48 * + 25, - 96 / - 36 ) AS col0
----
90
-3456

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3551
SELECT - + 70 col0, 48 + + 81 - - CAST( 78 + - 0 AS SIGNED )
----
-70
207

skipif mysql # not compatible
query II rowsort label-3551
SELECT - + 70 col0, 48 + + 81 - - CAST ( 78 + - 0 AS INTEGER )
----
-70
207

query I rowsort
SELECT + + 5 * + 79
----
395

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3553
SELECT DISTINCT + CAST( - ( ( 80 ) ) AS SIGNED ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-3553
SELECT DISTINCT + CAST ( - ( ( 80 ) ) AS INTEGER ) AS col0
----
-80

query I rowsort
SELECT ALL NULLIF ( - 90, - 87 ) col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT ALL - SUM( ALL 85 ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-3555
SELECT ALL - SUM ( ALL 85 ) AS col1
----
-85

query II rowsort
SELECT - 74 AS col0, ( 40 )
----
-74
40

onlyif mysql # aggregate syntax: 
query II rowsort label-3557
SELECT DISTINCT - 54, + COUNT( * ) * 9 AS col1
----
-54
9

skipif mysql # not compatible
query II rowsort label-3557
SELECT DISTINCT - 54, + COUNT ( * ) * 9 AS col1
----
-54
9

query I rowsort
SELECT DISTINCT 13 + 57
----
70

query I rowsort
SELECT ALL + COALESCE ( + 74, + 92 ) AS col1
----
74

query I rowsort
SELECT ALL - - 25 + - 52 + - 45 * 79
----
-3582

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3561
SELECT + CAST( NULL AS SIGNED ) + + - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-3561
SELECT + CAST ( NULL AS INTEGER ) + + - 38
----
NULL

query I rowsort
SELECT - 14 + - 63 + - 82
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT DISTINCT + 10 + - COUNT( * ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-3563
SELECT DISTINCT + 10 + - COUNT ( * ) AS col2
----
9

query I rowsort
SELECT - 24 * 45 AS col2
----
-1080

onlyif mysql # DIV for integer division: 
query I rowsort label-3565
SELECT + 41 DIV 12 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-3565
SELECT + 41 / 12 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3566
SELECT ALL + SUM( DISTINCT 4 ) + + ( - - MAX( + 61 ) ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-3566
SELECT ALL + SUM ( DISTINCT 4 ) + + ( - - MAX ( + 61 ) ) AS col0
----
65

query I rowsort
SELECT ALL - 37 + - - 59 * - 20 col0
----
-1217

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3568
SELECT 32 + + COUNT( * ) * + CAST( + + 69 AS SIGNED ) * - 7 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3568
SELECT 32 + + COUNT ( * ) * + CAST ( + + 69 AS INTEGER ) * - 7 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 92 + - - NULLIF ( ( + 85 ), - 15 )
----
177

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3570
SELECT DISTINCT 34 DIV ( - CAST( - COALESCE ( - 62, NULLIF ( 7, - CAST( NULL AS SIGNED ) ) * COUNT( * ) ) AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-3570
SELECT DISTINCT 34 / ( - CAST ( - COALESCE ( - 62, NULLIF ( 7, - CAST ( NULL AS INTEGER ) ) * COUNT ( * ) ) AS INTEGER ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3571
SELECT DISTINCT 98 DIV + 85 col2
----
1

skipif mysql # not compatible
query I rowsort label-3571
SELECT DISTINCT 98 / + 85 col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3572
SELECT MAX( DISTINCT - 9 ) - + + 56 * - - 85 - + COUNT( * ) DIV 70
----
-4769

skipif mysql # not compatible
query I rowsort label-3572
SELECT MAX ( DISTINCT - 9 ) - + + 56 * - - 85 - + COUNT ( * ) / 70
----
-4769

query I rowsort
SELECT 64 - + + 98 + + 40 AS col0
----
6

query I rowsort
SELECT ALL 27 * - 96
----
-2592

query I rowsort
SELECT DISTINCT - 85 * 31 AS col2
----
-2635

onlyif mysql # aggregate syntax: 
query I rowsort label-3576
SELECT COUNT( * ) + NULLIF ( - COUNT( * ), + COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-3576
SELECT COUNT ( * ) + NULLIF ( - COUNT ( * ), + COUNT ( * ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT ALL - MAX( - 82 ) * + + COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-3577
SELECT ALL - MAX ( - 82 ) * + + COUNT ( * )
----
82

query I rowsort
SELECT ( + 96 ) * + + 0 + + - ( 66 ) - + 96 AS col2
----
-162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3579
SELECT COUNT( * ) - - 32 AS col2, 28 * + CAST( 2 AS SIGNED )
----
33
56

skipif mysql # not compatible
query II rowsort label-3579
SELECT COUNT ( * ) - - 32 AS col2, 28 * + CAST ( 2 AS INTEGER )
----
33
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT + CASE + + COUNT( * ) WHEN 60 THEN COUNT( * ) ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3580
SELECT + CASE + + COUNT ( * ) WHEN 60 THEN COUNT ( * ) ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT + COUNT( + 72 ) * + 10 + 20
----
30

skipif mysql # not compatible
query I rowsort label-3581
SELECT + COUNT ( + 72 ) * + 10 + 20
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3582
SELECT ALL - + COALESCE ( - - 74, + 36 * + CAST( NULL AS SIGNED ) + - 15, - 37 * 50 )
----
-74

skipif mysql # not compatible
query I rowsort label-3582
SELECT ALL - + COALESCE ( - - 74, + 36 * + CAST ( NULL AS INTEGER ) + - 15, - 37 * 50 )
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3583
SELECT ( - 8 ) + COUNT( * ) + - 71 DIV 42 col0
----
-8

skipif mysql # not compatible
query I rowsort label-3583
SELECT ( - 8 ) + COUNT ( * ) + - 71 / 42 col0
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3584
SELECT + 18 + 14 * AVG ( ALL - 26 ) + + NULLIF ( 9, 26 + 81 ) * + ( 40 - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3584
SELECT + 18 + 14 * AVG ( ALL - 26 ) + + NULLIF ( 9, 26 + 81 ) * + ( 40 - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT ALL 57 * + MAX( + 38 ) - + + CASE - COUNT( ALL COALESCE ( - 30, + 65 - 55 ) ) WHEN + COUNT( * ) THEN + 68 WHEN ( + 18 ) / + 2 THEN NULL ELSE NULL END + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-3585
SELECT ALL 57 * + MAX ( + 38 ) - + + CASE - COUNT ( ALL COALESCE ( - 30, + 65 - 55 ) ) WHEN + COUNT ( * ) THEN + 68 WHEN ( + 18 ) / + 2 THEN NULL ELSE NULL END + 41
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT - ( - ( + 35 ) ) / - - 21 * CASE - COUNT( * ) WHEN - 73 / - 96 + 21 THEN ( - 27 ) * - 53 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3586
SELECT - ( - ( + 35 ) ) / - - 21 * CASE - COUNT ( * ) WHEN - 73 / - 96 + 21 THEN ( - 27 ) * - 53 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT DISTINCT SUM( + 68 ) + + + 23 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-3587
SELECT DISTINCT SUM ( + 68 ) + + + 23 AS col0
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3588
SELECT ALL NULLIF ( + - 93, - COUNT( * ) ) + + 56 DIV COALESCE ( + 27, ( - 5 ) )
----
-91

skipif mysql # not compatible
query I rowsort label-3588
SELECT ALL NULLIF ( + - 93, - COUNT ( * ) ) + + 56 / COALESCE ( + 27, ( - 5 ) )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3589
SELECT DISTINCT + 40 * SUM( DISTINCT - 66 ) AS col1
----
-2640

skipif mysql # not compatible
query I rowsort label-3589
SELECT DISTINCT + 40 * SUM ( DISTINCT - 66 ) AS col1
----
-2640

query I rowsort
SELECT 56 + + ( + 38 ) col0
----
94

query I rowsort
SELECT - 85 * 51 + 78 AS col2
----
-4257

query I rowsort
SELECT ALL + 13 * + 58 * - 50 + + - 81
----
-37781

onlyif mysql # DIV for integer division: 
query I rowsort label-3593
SELECT + ( - 27 ) DIV + - 52
----
0

skipif mysql # not compatible
query I rowsort label-3593
SELECT + ( - 27 ) / + - 52
----
0

query I rowsort
SELECT - 68 + 29 + - + 90 + + 4 + + 88 * 27 AS col1
----
2251

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3595
SELECT 36 DIV CASE - + CASE - 35 WHEN 27 THEN AVG ( 44 ) END WHEN + ( 16 ) + SUM( DISTINCT + CAST( 52 AS SIGNED ) ) DIV - 46 THEN NULL WHEN 57 THEN 17 ELSE 58 + + 52 END * + 80 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3595
SELECT 36 / CASE - + CASE - 35 WHEN 27 THEN AVG ( 44 ) END WHEN + ( 16 ) + SUM ( DISTINCT + CAST ( 52 AS INTEGER ) ) / - 46 THEN NULL WHEN 57 THEN 17 ELSE 58 + + 52 END * + 80 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3596
SELECT COUNT( DISTINCT CAST( NULL AS SIGNED ) ) + CASE 40 WHEN 52 + 11 THEN 26 ELSE NULL END * + CAST( + 75 + - COUNT( * ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3596
SELECT COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) + CASE 40 WHEN 52 + 11 THEN 26 ELSE NULL END * + CAST ( + 75 + - COUNT ( * ) AS INTEGER )
----
NULL

query I rowsort
SELECT NULLIF ( + 63, + ( + ( - + 31 ) ) ) + 23 AS col0
----
86

query I rowsort
SELECT 22 - 23
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3599
SELECT 29 + - ( + 40 ) DIV 45 + ( - ( - 79 ) ) AS col1
----
108

skipif mysql # not compatible
query I rowsort label-3599
SELECT 29 + - ( + 40 ) / 45 + ( - ( - 79 ) ) AS col1
----
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3600
SELECT 64 - + 18 * 5 DIV - - 87 + - COUNT( * ) - - COUNT( * ) * 56
----
118

skipif mysql # not compatible
query I rowsort label-3600
SELECT 64 - + 18 * 5 / - - 87 + - COUNT ( * ) - - COUNT ( * ) * 56
----
118

query I rowsort
SELECT 67 * + 19 AS col0
----
1273

query II rowsort
SELECT 1 AS col1, 29 + 80 + - ( - - 5 ) col1
----
1
104

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3603
SELECT 74 + - CAST( NULL AS DECIMAL ) + 88 + 2 / - CAST( - 2 AS DECIMAL ) * + 59 * 80
----
NULL

skipif mysql # not compatible
query I rowsort label-3603
SELECT 74 + - CAST ( NULL AS REAL ) + 88 + 2 / - CAST ( - 2 AS REAL ) * + 59 * 80
----
NULL

query I rowsort
SELECT ALL + 61 * - - 11 * - - 63 * + 71
----
3001383

onlyif mysql # aggregate syntax: 
query I rowsort label-3605
SELECT 61 * - COUNT( ALL - + 59 ) * + + 2 + - - 71 AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-3605
SELECT 61 * - COUNT ( ALL - + 59 ) * + + 2 + - - 71 AS col2
----
-51

query I rowsort
SELECT 57 * - 99
----
-5643

query I rowsort
SELECT ALL + 71 * - 80
----
-5680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3608
SELECT + 22 DIV 63 DIV - + MIN( ( + 42 ) ) + 61 * 22
----
1342

skipif mysql # not compatible
query I rowsort label-3608
SELECT + 22 / 63 / - + MIN ( ( + 42 ) ) + 61 * 22
----
1342

query I rowsort
SELECT 73 + - 38 - - 37 AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3610
SELECT SUM( ALL + - NULLIF ( + 12, + + 56 ) ) * - 28 AS col2
----
336

skipif mysql # not compatible
query I rowsort label-3610
SELECT SUM ( ALL + - NULLIF ( + 12, + + 56 ) ) * - 28 AS col2
----
336

query I rowsort
SELECT DISTINCT - ( + 66 ) AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT + 9 * - 61 + - COUNT( * ) + 53
----
-497

skipif mysql # not compatible
query I rowsort label-3612
SELECT + 9 * - 61 + - COUNT ( * ) + 53
----
-497

query I rowsort
SELECT + 66 * - 28 * - + 11 col1
----
20328

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT CASE 88 WHEN + 18 * 37 THEN 79 * COALESCE ( - 12 * MAX( ALL - 18 ), 13, COUNT( * ) ) END + 65 * ( + 48 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3614
SELECT CASE 88 WHEN + 18 * 37 THEN 79 * COALESCE ( - 12 * MAX ( ALL - 18 ), 13, COUNT ( * ) ) END + 65 * ( + 48 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3615
SELECT 56 * - - COALESCE ( + 35, - 24 * - 38 + + ( 27 - 99 * + 90 ) * COUNT( * ) + - 3 ) * 94
----
184240

skipif mysql # not compatible
query I rowsort label-3615
SELECT 56 * - - COALESCE ( + 35, - 24 * - 38 + + ( 27 - 99 * + 90 ) * COUNT ( * ) + - 3 ) * 94
----
184240

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3616
SELECT DISTINCT COALESCE ( + + 16, - CASE + + ( ( - 51 ) ) WHEN 38 * COUNT( * ) + 47 THEN 69 * 47 ELSE NULL END ) * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3616
SELECT DISTINCT COALESCE ( + + 16, - CASE + + ( ( - 51 ) ) WHEN 38 * COUNT ( * ) + 47 THEN 69 * 47 ELSE NULL END ) * CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL + 33 + 16
----
49

query I rowsort
SELECT ( + CASE + 28 WHEN 55 THEN + 13 ELSE NULL END )
----
NULL

query I rowsort
SELECT ALL - 84 + + - 50 * 21
----
-1134

onlyif mysql # aggregate syntax: 
query I rowsort label-3620
SELECT + SUM( ALL - + 94 ) * 37
----
-3478

skipif mysql # not compatible
query I rowsort label-3620
SELECT + SUM ( ALL - + 94 ) * 37
----
-3478

query I rowsort
SELECT DISTINCT 31 + ( - 19 ) + + 26
----
38

query II rowsort
SELECT ALL 54 col0, 70 + + - 87
----
54
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3623
SELECT + CAST( NULL AS SIGNED ) - + + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-3623
SELECT + CAST ( NULL AS INTEGER ) - + + 77
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3624
SELECT ALL 58 DIV 29 * + 64 * + NULLIF ( - - 93, 77 - - 46 ) col1
----
11904

skipif mysql # not compatible
query I rowsort label-3624
SELECT ALL 58 / 29 * + 64 * + NULLIF ( - - 93, 77 - - 46 ) col1
----
11904

onlyif mysql # aggregate syntax: 
query I rowsort label-3625
SELECT DISTINCT ( + - 12 ) + - - COUNT( * ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-3625
SELECT DISTINCT ( + - 12 ) + - - COUNT ( * ) AS col1
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3626
SELECT + 65 DIV NULLIF ( + - MIN( ALL - 48 ), + 41 + - - 40 ) * ( 58 * 46 ) col1
----
2668

skipif mysql # not compatible
query I rowsort label-3626
SELECT + 65 / NULLIF ( + - MIN ( ALL - 48 ), + 41 + - - 40 ) * ( 58 * 46 ) col1
----
2668

query I rowsort
SELECT ALL 70 - + 9
----
61

query I rowsort
SELECT + 82 * 39 AS col0
----
3198

onlyif mysql # aggregate syntax: 
query II rowsort label-3629
SELECT ALL 63 AS col2, - 8 * + 36 + - + 62 * + 40 - + + COUNT( * ) col2
----
63
-2769

skipif mysql # not compatible
query II rowsort label-3629
SELECT ALL 63 AS col2, - 8 * + 36 + - + 62 * + 40 - + + COUNT ( * ) col2
----
63
-2769

query I rowsort
SELECT - 34 - + 71 * - 26 + - 43
----
1769

query I rowsort
SELECT + 46 * + 8 AS col0
----
368

onlyif mysql # aggregate syntax: 
query II rowsort label-3632
SELECT 9 AS col0, + COUNT( * )
----
9
1

skipif mysql # not compatible
query II rowsort label-3632
SELECT 9 AS col0, + COUNT ( * )
----
9
1

query I rowsort
SELECT - COALESCE ( 44, + 49 ) AS col1
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-3634
SELECT ALL 31 AS col1, - 47 + + + MAX( DISTINCT + 73 ) AS col0
----
31
26

skipif mysql # not compatible
query II rowsort label-3634
SELECT ALL 31 AS col1, - 47 + + + MAX ( DISTINCT + 73 ) AS col0
----
31
26

query I rowsort
SELECT ALL + ( + ( - 63 ) ) AS col0
----
-63

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3636
SELECT CASE + - CAST( + 6 AS DECIMAL ) WHEN + 78 + 34 + - + 23 + + COUNT( * ) * + 73 THEN 99 ELSE + 5 * - 6 END * COUNT( * ) + 63 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-3636
SELECT CASE + - CAST ( + 6 AS REAL ) WHEN + 78 + 34 + - + 23 + + COUNT ( * ) * + 73 THEN 99 ELSE + 5 * - 6 END * COUNT ( * ) + 63 AS col1
----
33

query I rowsort
SELECT + CASE + ( - + 43 ) WHEN - + 25 THEN + 7 + 80 + + 2 WHEN + ( - 45 ) THEN 76 WHEN - 25 * 74 THEN NULL ELSE 19 END
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT ALL + COALESCE ( + - 57, - COUNT( - - 57 ) )
----
-57

skipif mysql # not compatible
query I rowsort label-3638
SELECT ALL + COALESCE ( + - 57, - COUNT ( - - 57 ) )
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-3639
SELECT + COUNT( * ) AS col2, + ( - + COUNT( * ) ) AS col1
----
1
-1

skipif mysql # not compatible
query II rowsort label-3639
SELECT + COUNT ( * ) AS col2, + ( - + COUNT ( * ) ) AS col1
----
1
-1

query II rowsort
SELECT + - 9 col0, ( + 59 ) AS col2
----
-9
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3641
SELECT - 64 DIV 47 * 4 * + 20 AS col2, MIN( + - 74 ) DIV - 99 AS col0
----
-80
0

skipif mysql # not compatible
query II rowsort label-3641
SELECT - 64 / 47 * 4 * + 20 AS col2, MIN ( + - 74 ) / - 99 AS col0
----
-80
0

query II rowsort
SELECT + - 71 AS col2, 59
----
-71
59

query I rowsort
SELECT ALL 81 * 43 + - + 92 - + 38 + - 0 + - - 33
----
3386

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3644
SELECT ALL + CASE - + 52 WHEN + + COUNT( * ) THEN NULL WHEN + ( + CAST( 48 AS DECIMAL ) ) + - 76 THEN 10 ELSE + 23 END * 55 + + MAX( ALL 47 ) * + 47
----
3474

skipif mysql # not compatible
query I rowsort label-3644
SELECT ALL + CASE - + 52 WHEN + + COUNT ( * ) THEN NULL WHEN + ( + CAST ( 48 AS REAL ) ) + - 76 THEN 10 ELSE + 23 END * 55 + + MAX ( ALL 47 ) * + 47
----
3474

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT 7 * - 14 + COUNT( * ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-3645
SELECT 7 * - 14 + COUNT ( * ) AS col1
----
-97

query I rowsort
SELECT ALL - 47 * + 57 + + 8 + - 94 AS col0
----
-2765

onlyif mysql # aggregate syntax: 
query I rowsort label-3647
SELECT - 3 + + COALESCE ( + + 87, + + COUNT( * ) - 43 + - 14 * - COUNT( * ) ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-3647
SELECT - 3 + + COALESCE ( + + 87, + + COUNT ( * ) - 43 + - 14 * - COUNT ( * ) ) AS col0
----
84

query I rowsort
SELECT - 16 + + + 6
----
-10

query I rowsort
SELECT 78 * + + 11 + 16 AS col1
----
874

query I rowsort
SELECT - 53 * ( - 1 ) * 7 + - 7
----
364

query I rowsort
SELECT + 59 * 63
----
3717

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3652
SELECT - 70 + - + 8 - - - CAST( + - 21 AS SIGNED ) + - 84 * + 11
----
-981

skipif mysql # not compatible
query I rowsort label-3652
SELECT - 70 + - + 8 - - - CAST ( + - 21 AS INTEGER ) + - 84 * + 11
----
-981

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT - MAX( - 36 )
----
36

skipif mysql # not compatible
query I rowsort label-3653
SELECT - MAX ( - 36 )
----
36

query II rowsort
SELECT ALL 17 - 16 AS col1, 67
----
1
67

query II rowsort
SELECT ALL - 70 * 58 col1, 56 * - + 29
----
-4060
-1624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3656
SELECT DISTINCT CAST( + + 49 AS SIGNED ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-3656
SELECT DISTINCT CAST ( + + 49 AS INTEGER ) AS col2
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3657
SELECT DISTINCT 4 * - - CASE 65 WHEN + ( + - NULLIF ( - + 82, 49 ) ) THEN - 66 * - 62 - + 95 WHEN 21 THEN ( + CAST( NULL AS SIGNED ) ) END * 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3657
SELECT DISTINCT 4 * - - CASE 65 WHEN + ( + - NULLIF ( - + 82, 49 ) ) THEN - 66 * - 62 - + 95 WHEN 21 THEN ( + CAST ( NULL AS INTEGER ) ) END * 85 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT + 57 + COUNT( * ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-3658
SELECT + 57 + COUNT ( * ) AS col2
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-3659
SELECT + MAX( + 1 ) + - 16 col2, ( - 38 )
----
-15
-38

skipif mysql # not compatible
query II rowsort label-3659
SELECT + MAX ( + 1 ) + - 16 col2, ( - 38 )
----
-15
-38

query I rowsort
SELECT DISTINCT 68 * - 78 col1
----
-5304

query I rowsort
SELECT + ( 11 ) * + - 70 * + 42 + + + 21
----
-32319

query I rowsort
SELECT + 39 + + - 72 col2
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-3663
SELECT DISTINCT + - 40 DIV + 52 * NULLIF ( 65, - 88 ) + - + ( + ( ( - 65 ) ) ) + 92 AS col0
----
157

skipif mysql # not compatible
query I rowsort label-3663
SELECT DISTINCT + - 40 / + 52 * NULLIF ( 65, - 88 ) + - + ( + ( ( - 65 ) ) ) + 92 AS col0
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-3664
SELECT + MAX( DISTINCT - ( COALESCE ( - 40, - - 96, - 93 ) ) )
----
40

skipif mysql # not compatible
query I rowsort label-3664
SELECT + MAX ( DISTINCT - ( COALESCE ( - 40, - - 96, - 93 ) ) )
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3665
SELECT ALL + COALESCE ( + 98, - 44 ) DIV 52 + - COALESCE ( - + COUNT( ALL + + 17 ), CAST( NULL AS SIGNED ) ) * 44 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-3665
SELECT ALL + COALESCE ( + 98, - 44 ) / 52 + - COALESCE ( - + COUNT ( ALL + + 17 ), CAST ( NULL AS INTEGER ) ) * 44 AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT + + CASE + - 53 WHEN 55 - 42 THEN - + 97 WHEN 34 + - 50 THEN - 66 WHEN 46 THEN + 65 - COUNT( * ) ELSE - 24 + 95 END + 4 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-3666
SELECT + + CASE + - 53 WHEN 55 - 42 THEN - + 97 WHEN 34 + - 50 THEN - 66 WHEN 46 THEN + 65 - COUNT ( * ) ELSE - 24 + 95 END + 4 AS col1
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3667
SELECT + - 97 + + 35 + 98 DIV 6 * - - 55
----
818

skipif mysql # not compatible
query I rowsort label-3667
SELECT + - 97 + + 35 + 98 / 6 * - - 55
----
818

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3668
SELECT ALL + COUNT( * ) DIV 95 * 75 + - 71 AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-3668
SELECT ALL + COUNT ( * ) / 95 * 75 + - 71 AS col2
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3669
SELECT ALL + - CASE + 80 WHEN COUNT( * ) / + COALESCE ( 76, - + 12, + MAX( + 78 ) + 91 / + 87 ) * - 77 - MAX( + 17 ) + - 39 * 74 THEN 95 * - COALESCE ( 5 * + 79, CAST( NULL AS SIGNED ) ) WHEN COALESCE ( 34, 5 * + COUNT( * ) + 72 / + CASE 7 * 56 - + 11 WHEN - 61 THEN + 15 / + 88 WHEN 32 THEN 21 + - CASE 9 - 59 WHEN COALESCE ( + 12, - 81 / 50 + 31 * COUNT( * ) ) + + 38 THEN COALESCE ( 92, - 22 ) END ELSE NULL END ) THEN + 24 END / - COUNT( ALL - 38 * 62 + CASE 6 - ( 2 ) WHEN 98 * 21 THEN + 51 ELSE 54 * + 53 + CASE 60 WHEN + 91 THEN + 15 * - 44 + + 1 END END ) + + 30 / - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-3669
SELECT ALL + - CASE + 80 WHEN COUNT ( * ) / + COALESCE ( 76, - + 12, + MAX ( + 78 ) + 91 / + 87 ) * - 77 - MAX ( + 17 ) + - 39 * 74 THEN 95 * - COALESCE ( 5 * + 79, CAST ( NULL AS INTEGER ) ) WHEN COALESCE ( 34, 5 * + COUNT ( * ) + 72 / + CASE 7 * 56 - + 11 WHEN - 61 THEN + 15 / + 88 WHEN 32 THEN 21 + - CASE 9 - 59 WHEN COALESCE ( + 12, - 81 / 50 + 31 * COUNT ( * ) ) + + 38 THEN COALESCE ( 92, - 22 ) END ELSE NULL END ) THEN + 24 END / - COUNT ( ALL - 38 * 62 + CASE 6 - ( 2 ) WHEN 98 * 21 THEN + 51 ELSE 54 * + 53 + CASE 60 WHEN + 91 THEN + 15 * - 44 + + 1 END END ) + + 30 / - 45
----
NULL

query I rowsort
SELECT + 37 * 25 * - CASE 27 WHEN + 66 * + 21 THEN 39 * 45 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3671
SELECT 6 * + 54 + + + CASE WHEN + 66 IS NULL THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3671
SELECT 6 * + 54 + + + CASE WHEN + 66 IS NULL THEN - COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3672
SELECT DISTINCT + + 90 / 43 * - + 41 * - 89 + + CAST( NULL AS SIGNED ) + - 30 + - ( NULLIF ( - COUNT( * ), + ( + 38 ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3672
SELECT DISTINCT + + 90 / 43 * - + 41 * - 89 + + CAST ( NULL AS INTEGER ) + - 30 + - ( NULLIF ( - COUNT ( * ), + ( + 38 ) ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3673
SELECT ALL + - 24 DIV 64 + + - 77 AS col0, 22
----
-77
22

skipif mysql # not compatible
query II rowsort label-3673
SELECT ALL + - 24 / 64 + + - 77 AS col0, 22
----
-77
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT 85 + + NULLIF ( - 54, MAX( + 99 ) )
----
31

skipif mysql # not compatible
query I rowsort label-3674
SELECT 85 + + NULLIF ( - 54, MAX ( + 99 ) )
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3675
SELECT SUM( - ( + 6 ) ) * 57 + + + ( - CAST( - COUNT( * ) AS SIGNED ) ) + - 90
----
-431

skipif mysql # not compatible
query I rowsort label-3675
SELECT SUM ( - ( + 6 ) ) * 57 + + + ( - CAST ( - COUNT ( * ) AS INTEGER ) ) + - 90
----
-431

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT DISTINCT - + 41 * MIN( ALL - 89 ) * + 52 + + ( - 79 )
----
189669

skipif mysql # not compatible
query I rowsort label-3676
SELECT DISTINCT - + 41 * MIN ( ALL - 89 ) * + 52 + + ( - 79 )
----
189669

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT DISTINCT 52 - + 13 + 97 * 35 * - 88 * + CASE - 18 WHEN + 35 THEN - ( + 14 ) WHEN + 57 THEN + 50 * 76 - - COUNT( * ) * + CASE + 26 + + MAX( DISTINCT - 4 ) WHEN - ( 13 ) THEN 17 END ELSE NULL END * + ( - MAX( 73 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3677
SELECT DISTINCT 52 - + 13 + 97 * 35 * - 88 * + CASE - 18 WHEN + 35 THEN - ( + 14 ) WHEN + 57 THEN + 50 * 76 - - COUNT ( * ) * + CASE + 26 + + MAX ( DISTINCT - 4 ) WHEN - ( 13 ) THEN 17 END ELSE NULL END * + ( - MAX ( 73 ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + - 28 - - + 8
----
-20

query I rowsort
SELECT DISTINCT - COALESCE ( - - 73, - + 90, - + ( 89 ) * - 81, ( + 11 ) ) col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT - 53 - + + MAX( - 0 ) + - 6 * + 24 AS col2
----
-197

skipif mysql # not compatible
query I rowsort label-3680
SELECT - 53 - + + MAX ( - 0 ) + - 6 * + 24 AS col2
----
-197

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3681
SELECT + COUNT( * ) * MIN( ALL - CAST( - + 25 AS SIGNED ) ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-3681
SELECT + COUNT ( * ) * MIN ( ALL - CAST ( - + 25 AS INTEGER ) ) AS col1
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3682
SELECT ALL - MIN( - COALESCE ( - 54, 1 DIV + - 85 ) ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-3682
SELECT ALL - MIN ( - COALESCE ( - 54, 1 / + - 85 ) ) AS col0
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3683
SELECT 58 DIV + MAX( - + 66 ), 44 + + 6 AS col0
----
0
50

skipif mysql # not compatible
query II rowsort label-3683
SELECT 58 / + MAX ( - + 66 ), 44 + + 6 AS col0
----
0
50

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3684
SELECT 74 + + 84 + + ( + 39 ), + CAST( NULL AS SIGNED ) AS col1
----
197
NULL

skipif mysql # not compatible
query II rowsort label-3684
SELECT 74 + + 84 + + ( + 39 ), + CAST ( NULL AS INTEGER ) AS col1
----
197
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3685
SELECT ALL + 2 * - CAST( NULL AS SIGNED ) * + - NULLIF ( MIN( + 19 ), - - 98 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3685
SELECT ALL + 2 * - CAST ( NULL AS INTEGER ) * + - NULLIF ( MIN ( + 19 ), - - 98 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3686
SELECT DISTINCT + COUNT( * ) / 77 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3686
SELECT DISTINCT + COUNT ( * ) / 77 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3687
SELECT ALL 15 AS col2, 11 + + CASE - - 13 WHEN COUNT( 90 ) + 75 THEN NULL WHEN + - 87 / + 85 - 40 THEN COUNT( * ) ELSE NULL END - 47
----
15
NULL

skipif mysql # not compatible
query II rowsort label-3687
SELECT ALL 15 AS col2, 11 + + CASE - - 13 WHEN COUNT ( 90 ) + 75 THEN NULL WHEN + - 87 / + 85 - 40 THEN COUNT ( * ) ELSE NULL END - 47
----
15
NULL

query II rowsort
SELECT - 17 AS col0, 29
----
-17
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3689
SELECT 67 - - - COUNT( * ) * + 61 + - + COALESCE ( + COUNT( * ), COUNT( * ) ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-3689
SELECT 67 - - - COUNT ( * ) * + 61 + - + COALESCE ( + COUNT ( * ), COUNT ( * ) ) AS col2
----
5

query II rowsort
SELECT - 72 AS col0, + 24
----
-72
24

query I rowsort
SELECT 83 * + 37 AS col0
----
3071

query I rowsort
SELECT ALL - 39 + - - 73
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3693
SELECT 54 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3693
SELECT 54 * - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT - 83 AS col1, 68 - - 7 col0
----
-83
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3695
SELECT DISTINCT + 67 + 26 + - 59 / + COALESCE ( 6, 91 + CAST( NULL AS DECIMAL ), 18 * - 30 ) - + CASE CASE - 38 WHEN - CAST( 62 AS SIGNED ) + - CASE - ( + COALESCE ( 40, - 82 + + COUNT( * ), + 46 + + ( 45 ) * 54, + 44 * 84 ) ) WHEN + 16 * 3 - + 26 / + 79 THEN NULL WHEN - 54 * 33 THEN - 97 + 40 ELSE + 8 END THEN - 67 + - 33 WHEN - 67 THEN NULL ELSE - COUNT( * ) END - - COUNT( * ) WHEN - 98 THEN COUNT( * ) + ( 29 + - COUNT( * ) / + NULLIF ( 12, 71 - - 92 ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3695
SELECT DISTINCT + 67 + 26 + - 59 / + COALESCE ( 6, 91 + CAST ( NULL AS REAL ), 18 * - 30 ) - + CASE CASE - 38 WHEN - CAST ( 62 AS INTEGER ) + - CASE - ( + COALESCE ( 40, - 82 + + COUNT ( * ), + 46 + + ( 45 ) * 54, + 44 * 84 ) ) WHEN + 16 * 3 - + 26 / + 79 THEN NULL WHEN - 54 * 33 THEN - 97 + 40 ELSE + 8 END THEN - 67 + - 33 WHEN - 67 THEN NULL ELSE - COUNT ( * ) END - - COUNT ( * ) WHEN - 98 THEN COUNT ( * ) + ( 29 + - COUNT ( * ) / + NULLIF ( 12, 71 - - 92 ) ) END AS col0
----
NULL

query I rowsort
SELECT 8 * + 6 AS col1
----
48

query I rowsort
SELECT ALL NULLIF ( + 87, 17 ) + + COALESCE ( - 71, - 93 * 93 ) AS col1
----
16

query I rowsort
SELECT DISTINCT + 67 + + 93 AS col1
----
160

query I rowsort
SELECT 39 * - - 28 AS col0
----
1092

query II rowsort
SELECT 72 - 6 + - - 51 AS col0, 72
----
117
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3701
SELECT - COUNT( * ) * - + 29
----
29

skipif mysql # not compatible
query I rowsort label-3701
SELECT - COUNT ( * ) * - + 29
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT ALL CASE 51 WHEN 11 THEN NULL WHEN - 55 + + COALESCE ( - + 79, 95 + - - 9 ) THEN 52 * 7 ELSE NULL END / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3702
SELECT ALL CASE 51 WHEN 11 THEN NULL WHEN - 55 + + COALESCE ( - + 79, 95 + - - 9 ) THEN 52 * 7 ELSE NULL END / - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3703
SELECT + 18 * + ( - COALESCE ( NULLIF ( + CAST( - CASE 55 WHEN + - 88 THEN 51 + - 60 ELSE 54 END AS SIGNED ), + 82 + - 32 ), + COUNT( * ) - COALESCE ( + ( 48 ), 2, ( + 23 ) + NULLIF ( - 34 + + COUNT( * ), - 83 ) DIV - 77 ) * + COUNT( * ) ) ) * - 14 + 65
----
-13543

skipif mysql # not compatible
query I rowsort label-3703
SELECT + 18 * + ( - COALESCE ( NULLIF ( + CAST ( - CASE 55 WHEN + - 88 THEN 51 + - 60 ELSE 54 END AS INTEGER ), + 82 + - 32 ), + COUNT ( * ) - COALESCE ( + ( 48 ), 2, ( + 23 ) + NULLIF ( - 34 + + COUNT ( * ), - 83 ) / - 77 ) * + COUNT ( * ) ) ) * - 14 + 65
----
-13543

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3704
SELECT 65 / 72 + - COUNT( * ) / + COUNT( * ) + 51 + + ( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3704
SELECT 65 / 72 + - COUNT ( * ) / + COUNT ( * ) + 51 + + ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT 8 * 13 AS col1
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT ALL CASE + + NULLIF ( 88, + 9 ) WHEN + 93 + - COUNT( * ) + - - 88 THEN NULL WHEN + COUNT( * ) - 30 THEN + 71 * COUNT( * ) + COUNT( * ) * 22 ELSE + 49 END * 56
----
2744

skipif mysql # not compatible
query I rowsort label-3706
SELECT ALL CASE + + NULLIF ( 88, + 9 ) WHEN + 93 + - COUNT ( * ) + - - 88 THEN NULL WHEN + COUNT ( * ) - 30 THEN + 71 * COUNT ( * ) + COUNT ( * ) * 22 ELSE + 49 END * 56
----
2744

onlyif mysql # aggregate syntax: 
query I rowsort label-3707
SELECT DISTINCT - 27 - CASE COUNT( DISTINCT 30 ) WHEN + 38 THEN 56 END * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3707
SELECT DISTINCT - 27 - CASE COUNT ( DISTINCT 30 ) WHEN + 38 THEN 56 END * - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3708
SELECT DISTINCT 36 * + - SUM( ALL + - 80 ) * + 45 + NULLIF ( + + 1, 82 ) AS col2
----
129601

skipif mysql # not compatible
query I rowsort label-3708
SELECT DISTINCT 36 * + - SUM ( ALL + - 80 ) * + 45 + NULLIF ( + + 1, 82 ) AS col2
----
129601

query I rowsort
SELECT ALL 41 * - + ( - 86 ) * + 81
----
285606

onlyif mysql # aggregate syntax: 
query I rowsort label-3710
SELECT DISTINCT - + SUM( DISTINCT - COALESCE ( + 81, - 88 ) ) col0
----
81

skipif mysql # not compatible
query I rowsort label-3710
SELECT DISTINCT - + SUM ( DISTINCT - COALESCE ( + 81, - 88 ) ) col0
----
81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3711
SELECT DISTINCT - COUNT( * ) AS col1, 4 * - CAST( NULL AS DECIMAL ) AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-3711
SELECT DISTINCT - COUNT ( * ) AS col1, 4 * - CAST ( NULL AS REAL ) AS col2
----
-1
NULL

query I rowsort
SELECT 67 + 33 AS col2
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3713
SELECT NULLIF ( - CASE - - 97 WHEN 11 + + COUNT( * ) THEN 74 * - - 46 + 22 - 41 * 33 WHEN + 28 THEN + CAST( COALESCE ( + 87, + 14 + COUNT( * ) ) AS SIGNED ) WHEN - 81 THEN 15 ELSE NULL END, - 11 * - 4 + 58 ) * 49
----
NULL

skipif mysql # not compatible
query I rowsort label-3713
SELECT NULLIF ( - CASE - - 97 WHEN 11 + + COUNT ( * ) THEN 74 * - - 46 + 22 - 41 * 33 WHEN + 28 THEN + CAST ( COALESCE ( + 87, + 14 + COUNT ( * ) ) AS INTEGER ) WHEN - 81 THEN 15 ELSE NULL END, - 11 * - 4 + 58 ) * 49
----
NULL

query I rowsort
SELECT - 51 + 44
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3715
SELECT 15 * 23 * 22 + - - MAX( - + 44 ) AS col0
----
7546

skipif mysql # not compatible
query I rowsort label-3715
SELECT 15 * 23 * 22 + - - MAX ( - + 44 ) AS col0
----
7546

query II rowsort
SELECT 68 - + - 24 AS col1, 45
----
92
45

query I rowsort
SELECT 42 + - 36 col2
----
6

query II rowsort
SELECT ALL + 16 * - 82, + 66 AS col2
----
-1312
66

query I rowsort
SELECT ALL NULLIF ( + - 98, + 69 * - 13 - + 53 ) * CASE + 17 WHEN - - 64 THEN NULL ELSE - 52 END
----
5096

query I rowsort
SELECT 67 + - CASE - 22 WHEN - 67 THEN 90 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3721
SELECT DISTINCT 40 * 22 DIV MAX( - 31 ) * + ( - ( + CAST( CAST( + - 34 AS SIGNED ) AS SIGNED ) ) ) + 82
----
-870

skipif mysql # not compatible
query I rowsort label-3721
SELECT DISTINCT 40 * 22 / MAX ( - 31 ) * + ( - ( + CAST ( CAST ( + - 34 AS INTEGER ) AS INTEGER ) ) ) + 82
----
-870

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3722
SELECT 63 + - 64 + + + CAST( + - 51 AS SIGNED ) + + 88 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-3722
SELECT 63 + - 64 + + + CAST ( + - 51 AS INTEGER ) + + 88 AS col0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3723
SELECT CAST( - 2 AS SIGNED ) * 60
----
-120

skipif mysql # not compatible
query I rowsort label-3723
SELECT CAST ( - 2 AS INTEGER ) * 60
----
-120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3724
SELECT 2 + + - 26 + + NULLIF ( 71, - NULLIF ( + 2, - 17 ) - + - 32 / + 12 + + CAST( NULL AS SIGNED ) * - 49 )
----
47

skipif mysql # not compatible
query I rowsort label-3724
SELECT 2 + + - 26 + + NULLIF ( 71, - NULLIF ( + 2, - 17 ) - + - 32 / + 12 + + CAST ( NULL AS INTEGER ) * - 49 )
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3725
SELECT ALL + 80 DIV + + 42 AS col0, - COUNT( * ) AS col1
----
1
-1

skipif mysql # not compatible
query II rowsort label-3725
SELECT ALL + 80 / + + 42 AS col0, - COUNT ( * ) AS col1
----
1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3726
SELECT COUNT( * ) DIV + COALESCE ( + - 43, - 58 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3726
SELECT COUNT ( * ) / + COALESCE ( + - 43, - 58 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3727
SELECT ALL - 8 + 96, - 22 * - 78 * - - COUNT( * ) * - + COUNT( + + 49 ) col2
----
88
-1716

skipif mysql # not compatible
query II rowsort label-3727
SELECT ALL - 8 + 96, - 22 * - 78 * - - COUNT ( * ) * - + COUNT ( + + 49 ) col2
----
88
-1716

query I rowsort
SELECT 89 + 97 + - - 7
----
193

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT DISTINCT - 35 + COALESCE ( + 41, - - 22 * - 22 * - 26 + + - 10, - ( - 45 ) * 36 - - 16 ) - NULLIF ( + 44, 61 * COUNT( * ) ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-3729
SELECT DISTINCT - 35 + COALESCE ( + 41, - - 22 * - 22 * - 26 + + - 10, - ( - 45 ) * 36 - - 16 ) - NULLIF ( + 44, 61 * COUNT ( * ) ) AS col1
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-3730
SELECT ALL + 81 DIV + 3
----
27

skipif mysql # not compatible
query I rowsort label-3730
SELECT ALL + 81 / + 3
----
27

query II rowsort
SELECT 2 * + - 15 AS col1, - 38 AS col2
----
-30
-38

query I rowsort
SELECT ALL - 61 * + - 86
----
5246

query I rowsort
SELECT ALL - + 74 + + + 99 AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT + MIN( ALL + + 25 ) + 72 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-3734
SELECT + MIN ( ALL + + 25 ) + 72 AS col0
----
97

query I rowsort
SELECT 87 + - - 34 + 32
----
153

onlyif mysql # aggregate syntax: 
query II rowsort label-3736
SELECT - MAX( - 18 ), - 88 AS col2
----
18
-88

skipif mysql # not compatible
query II rowsort label-3736
SELECT - MAX ( - 18 ), - 88 AS col2
----
18
-88

query I rowsort
SELECT - ( + - ( + 3 ) )
----
3

query I rowsort
SELECT - + 45 * 72 - - 54
----
-3186

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3739
SELECT - + 20 DIV + 21 * + COUNT( * ) + - - 79 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-3739
SELECT - + 20 / + 21 * + COUNT ( * ) + - - 79 AS col2
----
79

query I rowsort
SELECT ALL - 63 * - + 28 - - 53 col2
----
1817

query I rowsort
SELECT - 69 + 9 + - 91
----
-151

onlyif mysql # aggregate syntax: 
query II rowsort label-3742
SELECT + 83 * - 27 AS col2, + MIN( + + 4 ) - - 93 AS col1
----
-2241
97

skipif mysql # not compatible
query II rowsort label-3742
SELECT + 83 * - 27 AS col2, + MIN ( + + 4 ) - - 93 AS col1
----
-2241
97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3743
SELECT + + CAST( 24 AS SIGNED ) DIV + 94 + 20 DIV + 37 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3743
SELECT + + CAST ( 24 AS INTEGER ) / + 94 + 20 / + 37 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3744
SELECT 87 * COUNT( * ) DIV - + 82 + + 44 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-3744
SELECT 87 * COUNT ( * ) / - + 82 + + 44 AS col0
----
43

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3745
SELECT + - 19 DIV 92 + 88 + + CAST( + 52 AS SIGNED )
----
140

skipif mysql # not compatible
query I rowsort label-3745
SELECT + - 19 / 92 + 88 + + CAST ( + 52 AS INTEGER )
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT DISTINCT CASE WHEN NOT 99 IS NOT NULL THEN COUNT( * ) + - ( - 72 ) + + 69 ELSE NULL END * + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-3746
SELECT DISTINCT CASE WHEN NOT 99 IS NOT NULL THEN COUNT ( * ) + - ( - 72 ) + + 69 ELSE NULL END * + 11
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3747
SELECT ALL CAST( NULL AS SIGNED ) * + 47 + + - 65 + 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3747
SELECT ALL CAST ( NULL AS INTEGER ) * + 47 + + - 65 + 51 AS col2
----
NULL

query I rowsort
SELECT ALL - 11 * 97
----
-1067

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3749
SELECT DISTINCT SUM( DISTINCT + 94 ) * + - CASE - - 77 WHEN - + 68 * - 73 - + - CASE WHEN NOT NULL IN ( 60 ) THEN + 28 * + 92 END + 66 + 72 * + 40 THEN NULL ELSE + 34 END + 82 DIV 93 AS col1
----
-3196

skipif mysql # not compatible
query I rowsort label-3749
SELECT DISTINCT SUM ( DISTINCT + 94 ) * + - CASE - - 77 WHEN - + 68 * - 73 - + - CASE WHEN NOT NULL IN ( 60 ) THEN + 28 * + 92 END + 66 + 72 * + 40 THEN NULL ELSE + 34 END + 82 / 93 AS col1
----
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT COUNT( * ) * + + 39 - + + 43 + + 93 + + 31 * + 42 * 45 + - + 58 AS col2
----
58621

skipif mysql # not compatible
query I rowsort label-3750
SELECT COUNT ( * ) * + + 39 - + + 43 + + 93 + + 31 * + 42 * 45 + - + 58 AS col2
----
58621

query I rowsort
SELECT + ( - - NULLIF ( - 78, - - 97 ) ) AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT - SUM( DISTINCT - ( - + 38 ) )
----
-38

skipif mysql # not compatible
query I rowsort label-3752
SELECT - SUM ( DISTINCT - ( - + 38 ) )
----
-38

query II rowsort
SELECT + 16 + - 59 + 82 AS col2, 14 AS col2
----
39
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3754
SELECT MAX( ALL - 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-3754
SELECT MAX ( ALL - 70 )
----
-70

query I rowsort
SELECT DISTINCT 45 + - 47
----
-2

query I rowsort
SELECT ALL - NULLIF ( - 84, 61 ) + + 69 AS col1
----
153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3757
SELECT + COUNT( + - ( - - CAST( NULL AS SIGNED ) ) ) - - 13 + - COALESCE ( - + 13, + 43 ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-3757
SELECT + COUNT ( + - ( - - CAST ( NULL AS INTEGER ) ) ) - - 13 + - COALESCE ( - + 13, + 43 ) AS col0
----
26

query I rowsort
SELECT DISTINCT COALESCE ( - 48, - + 49 )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3759
SELECT ALL 44 - + SUM( ALL + 38 ) col1
----
6

skipif mysql # not compatible
query I rowsort label-3759
SELECT ALL 44 - + SUM ( ALL + 38 ) col1
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3760
SELECT - + CAST( + 61 AS SIGNED ) col1
----
-61

skipif mysql # not compatible
query I rowsort label-3760
SELECT - + CAST ( + 61 AS INTEGER ) col1
----
-61

query I rowsort
SELECT - - 35 * + - 72
----
-2520

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT - COUNT( * ) * + - 21 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-3762
SELECT - COUNT ( * ) * + - 21 AS col1
----
21

query II rowsort
SELECT ALL + 83, + 37 * + + 69 AS col2
----
83
2553

onlyif mysql # DIV for integer division: 
query I rowsort label-3764
SELECT DISTINCT - 35 DIV 66
----
0

skipif mysql # not compatible
query I rowsort label-3764
SELECT DISTINCT - 35 / 66
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3765
SELECT ALL + COUNT( 92 )
----
1

skipif mysql # not compatible
query I rowsort label-3765
SELECT ALL + COUNT ( 92 )
----
1

query I rowsort
SELECT - + COALESCE ( - 84, - + 52 ) col0
----
84

query I rowsort
SELECT ALL - ( - - 28 ) AS col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-3768
SELECT - - 30 * + + 37 + - + 16 + 17 - - SUM( 28 ) * 74 * - + 15 + + SUM( ALL - + 90 ) AS col2
----
-30059

skipif mysql # not compatible
query I rowsort label-3768
SELECT - - 30 * + + 37 + - + 16 + 17 - - SUM ( 28 ) * 74 * - + 15 + + SUM ( ALL - + 90 ) AS col2
----
-30059

query I rowsort
SELECT ALL + - 54 * - 50 AS col1
----
2700

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT - 47 * + - MIN( DISTINCT + 34 ) AS col2
----
1598

skipif mysql # not compatible
query I rowsort label-3770
SELECT - 47 * + - MIN ( DISTINCT + 34 ) AS col2
----
1598

query I rowsort
SELECT ALL + - 62 * - 30 * 73
----
135780

query I rowsort
SELECT - 0 + 92
----
92

query II rowsort
SELECT ALL + 29, 37 AS col0
----
29
37

query I rowsort
SELECT + CASE 73 WHEN + 87 THEN - ( + 38 ) END / - 94 * + COALESCE ( + 46, + 39 ) + ( + 76 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT - 40 + - 57 * + - 16 * - 86 * - COUNT( * )
----
78392

skipif mysql # not compatible
query I rowsort label-3775
SELECT - 40 + - 57 * + - 16 * - 86 * - COUNT ( * )
----
78392

onlyif mysql # aggregate syntax: 
query II rowsort label-3776
SELECT + 46 - 38 col2, COUNT( * ) + + 72 + - 79 AS col2
----
8
-6

skipif mysql # not compatible
query II rowsort label-3776
SELECT + 46 - 38 col2, COUNT ( * ) + + 72 + - 79 AS col2
----
8
-6

query I rowsort
SELECT + 22 - - 47
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3778
SELECT DISTINCT 61 * ( - 78 ) + + 24 + - - 38 - + 90 DIV COUNT( * ) DIV SUM( ALL COALESCE ( - CAST( - 4 AS SIGNED ), 29, + 5 ) ) col1
----
-4718

skipif mysql # not compatible
query I rowsort label-3778
SELECT DISTINCT 61 * ( - 78 ) + + 24 + - - 38 - + 90 / COUNT ( * ) / SUM ( ALL COALESCE ( - CAST ( - 4 AS INTEGER ), 29, + 5 ) ) col1
----
-4718

onlyif mysql # aggregate syntax: 
query I rowsort label-3779
SELECT ALL 29 * + COUNT( * ) + + + 70
----
99

skipif mysql # not compatible
query I rowsort label-3779
SELECT ALL 29 * + COUNT ( * ) + + + 70
----
99

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3780
SELECT - 10 * CASE + - 12 WHEN + - 77 + - 47 + COALESCE ( + - 70, 32 ) / - 73 * + + 83 THEN - - 28 WHEN CAST( 78 AS DECIMAL ) + 96 THEN + 42 ELSE CAST( NULL AS SIGNED ) END * + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-3780
SELECT - 10 * CASE + - 12 WHEN + - 77 + - 47 + COALESCE ( + - 70, 32 ) / - 73 * + + 83 THEN - - 28 WHEN CAST ( 78 AS REAL ) + 96 THEN + 42 ELSE CAST ( NULL AS INTEGER ) END * + 66
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3781
SELECT ALL + ( COUNT( ALL + 21 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3781
SELECT ALL + ( COUNT ( ALL + 21 ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3782
SELECT + CAST( + 65 AS SIGNED ) + 27 * + ( - 91 ) + - 17 * 57 AS col0
----
-3361

skipif mysql # not compatible
query I rowsort label-3782
SELECT + CAST ( + 65 AS INTEGER ) + 27 * + ( - 91 ) + - 17 * 57 AS col0
----
-3361

query I rowsort
SELECT DISTINCT - 63 * 37 AS col0
----
-2331

onlyif mysql # aggregate syntax: 
query I rowsort label-3784
SELECT - 60 * - COUNT( * ) * + 33 * + - 83 + + - 2
----
-164342

skipif mysql # not compatible
query I rowsort label-3784
SELECT - 60 * - COUNT ( * ) * + 33 * + - 83 + + - 2
----
-164342

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3785
SELECT - CAST( + ( + 95 ) AS SIGNED ) * + 48 + + 64 + - - 34 * + + 89 * COUNT( DISTINCT - - ( - - 16 ) ) col1
----
-1470

skipif mysql # not compatible
query I rowsort label-3785
SELECT - CAST ( + ( + 95 ) AS INTEGER ) * + 48 + + 64 + - - 34 * + + 89 * COUNT ( DISTINCT - - ( - - 16 ) ) col1
----
-1470

query II rowsort
SELECT ALL 90 col0, 28
----
90
28

query II rowsort
SELECT - 12 col1, - 78 col0
----
-12
-78

query I rowsort
SELECT 16 * - ( + 92 ) * - 62 col0
----
91264

query I rowsort
SELECT ALL + 67 * - 9
----
-603

query I rowsort
SELECT DISTINCT ( + + 22 ) AS col2
----
22

query II rowsort
SELECT DISTINCT + 21 AS col2, + 22
----
21
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT ALL - + 32 * - SUM( DISTINCT ( + - 57 ) ) * - 76 * - COUNT( * ) - + 36 + - + 91 AS col0
----
-138751

skipif mysql # not compatible
query I rowsort label-3792
SELECT ALL - + 32 * - SUM ( DISTINCT ( + - 57 ) ) * - 76 * - COUNT ( * ) - + 36 + - + 91 AS col0
----
-138751

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3793
SELECT ALL + 6 * - 34 + 93 + + SUM( + CAST( NULL AS SIGNED ) ) * - 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3793
SELECT ALL + 6 * - 34 + 93 + + SUM ( + CAST ( NULL AS INTEGER ) ) * - 10 AS col0
----
NULL

query I rowsort
SELECT 85 + 89 col1
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-3795
SELECT SUM( DISTINCT 25 ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-3795
SELECT SUM ( DISTINCT 25 ) AS col0
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-3796
SELECT ALL 91 AS col1, COUNT( * ) + + - 42 * - - 82
----
91
-3443

skipif mysql # not compatible
query II rowsort label-3796
SELECT ALL 91 AS col1, COUNT ( * ) + + - 42 * - - 82
----
91
-3443

query I rowsort
SELECT - 4 * - 15 - - + 57 AS col0
----
117

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3798
SELECT 62 + - MAX( + 11 ) + 45 * - - CAST( CASE + - ( - + 96 ) WHEN + ( + - 31 ) THEN 26 END AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3798
SELECT 62 + - MAX ( + 11 ) + 45 * - - CAST ( CASE + - ( - + 96 ) WHEN + ( + - 31 ) THEN 26 END AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3799
SELECT 27 AS col2, - 79 DIV - 72 AS col0
----
27
1

skipif mysql # not compatible
query II rowsort label-3799
SELECT 27 AS col2, - 79 / - 72 AS col0
----
27
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3800
SELECT - 31 / + ( - CASE + CAST( 65 AS SIGNED ) WHEN + 73 * + 46 * + NULLIF ( 20, COUNT( * ) + - 1 + + COUNT( * ) ) - AVG ( ALL + 30 + 15 * 16 ) * + 76 THEN NULLIF ( 51, - 36 * 59 ) / 22 END ) + ( 80 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3800
SELECT - 31 / + ( - CASE + CAST ( 65 AS INTEGER ) WHEN + 73 * + 46 * + NULLIF ( 20, COUNT ( * ) + - 1 + + COUNT ( * ) ) - AVG ( ALL + 30 + 15 * 16 ) * + 76 THEN NULLIF ( 51, - 36 * 59 ) / 22 END ) + ( 80 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3801
SELECT ALL - ( + - COUNT( + 13 ) ) + SUM( DISTINCT - + ( - 92 ) ), + CASE + 94 WHEN + + ( - 19 ) + 74 - - CAST( NULL AS DECIMAL ) THEN 5 WHEN - 81 THEN NULL END AS col1
----
93
NULL

skipif mysql # not compatible
query II rowsort label-3801
SELECT ALL - ( + - COUNT ( + 13 ) ) + SUM ( DISTINCT - + ( - 92 ) ), + CASE + 94 WHEN + + ( - 19 ) + 74 - - CAST ( NULL AS REAL ) THEN 5 WHEN - 81 THEN NULL END AS col1
----
93
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3802
SELECT 85 * - CASE - - 30 WHEN - + NULLIF ( 91, + COUNT( * ) * + 98 * 19 * 87 + + 27 + + CAST( NULL AS DECIMAL ) * COUNT( * ) ) THEN - 27 END * + 94 + - ( 19 + 95 ) + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3802
SELECT 85 * - CASE - - 30 WHEN - + NULLIF ( 91, + COUNT ( * ) * + 98 * 19 * 87 + + 27 + + CAST ( NULL AS REAL ) * COUNT ( * ) ) THEN - 27 END * + 94 + - ( 19 + 95 ) + - COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3803
SELECT ALL + 21 + - 51 * + ( SUM( CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3803
SELECT ALL + 21 + - 51 * + ( SUM ( CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3804
SELECT COUNT( * ) + + - 23 + 25 DIV + CAST( 22 AS SIGNED ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-3804
SELECT COUNT ( * ) + + - 23 + 25 / + CAST ( 22 AS INTEGER ) AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT DISTINCT - NULLIF ( + COUNT( * ), - 68 / - 16 )
----
-1

skipif mysql # not compatible
query I rowsort label-3805
SELECT DISTINCT - NULLIF ( + COUNT ( * ), - 68 / - 16 )
----
-1

query I rowsort
SELECT DISTINCT - 12 * 64 AS col0
----
-768

onlyif mysql # aggregate syntax: 
query I rowsort label-3807
SELECT + COUNT( * ) * + COUNT( * ) * 25 + - 42 col1
----
-17

skipif mysql # not compatible
query I rowsort label-3807
SELECT + COUNT ( * ) * + COUNT ( * ) * 25 + - 42 col1
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3808
SELECT ALL - 94 * + MIN( DISTINCT + NULLIF ( - 44, - CAST( NULL AS SIGNED ) ) ) AS col2
----
4136

skipif mysql # not compatible
query I rowsort label-3808
SELECT ALL - 94 * + MIN ( DISTINCT + NULLIF ( - 44, - CAST ( NULL AS INTEGER ) ) ) AS col2
----
4136

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
SELECT DISTINCT + 39 + 37 + + + CASE CASE 55 WHEN + + 80 / + - 20 * 97 * + 7 THEN - + CASE COUNT( * ) WHEN - 2 THEN NULL WHEN + 44 + - COUNT( * ) * ( - SUM( ALL ( 88 ) ) * 88 ) THEN AVG ( 50 ) * COUNT( * ) END * + ( ( + 86 ) * - 87 ) END WHEN ( - 77 ) THEN - COUNT( * ) WHEN 43 THEN NULL ELSE - 76 / + 1 END + - 58 / - SUM( 38 * + CASE WHEN NOT NULL = NULL THEN + NULLIF ( 47, 35 * + 73 + + 81 ) WHEN NOT NULL IS NOT NULL THEN NULL ELSE 7 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3809
SELECT DISTINCT + 39 + 37 + + + CASE CASE 55 WHEN + + 80 / + - 20 * 97 * + 7 THEN - + CASE COUNT ( * ) WHEN - 2 THEN NULL WHEN + 44 + - COUNT ( * ) * ( - SUM ( ALL ( 88 ) ) * 88 ) THEN AVG ( 50 ) * COUNT ( * ) END * + ( ( + 86 ) * - 87 ) END WHEN ( - 77 ) THEN - COUNT ( * ) WHEN 43 THEN NULL ELSE - 76 / + 1 END + - 58 / - SUM ( 38 * + CASE WHEN NOT NULL = NULL THEN + NULLIF ( 47, 35 * + 73 + + 81 ) WHEN NOT NULL IS NOT NULL THEN NULL ELSE 7 END )
----
NULL

query II rowsort
SELECT DISTINCT 40 * - 7, 35 AS col1
----
-280
35

query I rowsort
SELECT ALL + 22 - 84 * + 1 + + ( + + 93 ) + - 93 AS col0
----
-62

query I rowsort
SELECT DISTINCT + 40 - - 87 + - 41 + + 13 * + - ( + 68 )
----
-798

query I rowsort
SELECT ALL + 22 - + 97 + + 20 AS col1
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3814
SELECT ALL - MAX( ALL 58 ) / CAST( ( 15 ) AS SIGNED ) * 87 / - CASE + 6 WHEN - COUNT( * ) THEN 69 END + COUNT( * ) - - + ( CAST( + COUNT( * ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3814
SELECT ALL - MAX ( ALL 58 ) / CAST ( ( 15 ) AS INTEGER ) * 87 / - CASE + 6 WHEN - COUNT ( * ) THEN 69 END + COUNT ( * ) - - + ( CAST ( + COUNT ( * ) AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3815
SELECT ALL - CAST( - 72 AS SIGNED ) col1
----
72

skipif mysql # not compatible
query I rowsort label-3815
SELECT ALL - CAST ( - 72 AS INTEGER ) col1
----
72

query I rowsort
SELECT DISTINCT - ( 32 ) * ( + 84 ) AS col2
----
-2688

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT 7 * - COUNT( - COALESCE ( + CASE - + 83 WHEN + - 87 THEN + 17 ELSE - - 36 END, + 43 ) ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-3817
SELECT 7 * - COUNT ( - COALESCE ( + CASE - + 83 WHEN + - 87 THEN + 17 ELSE - - 36 END, + 43 ) ) AS col0
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-3818
SELECT ALL - 2 DIV + ( + 70 ) + + + 31 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-3818
SELECT ALL - 2 / + ( + 70 ) + + + 31 AS col1
----
31

query II rowsort
SELECT ALL ( + 63 ) AS col2, + 20 AS col2
----
63
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT DISTINCT + + NULLIF ( 17, NULLIF ( + + 85, 68 + - 95 + - 55 ) * + - AVG ( - 54 ) + - ( 71 ) - - COUNT( * ) + 92 ) * 71 col2
----
1207

skipif mysql # not compatible
query I rowsort label-3820
SELECT DISTINCT + + NULLIF ( 17, NULLIF ( + + 85, 68 + - 95 + - 55 ) * + - AVG ( - 54 ) + - ( 71 ) - - COUNT ( * ) + 92 ) * 71 col2
----
1207

onlyif mysql # aggregate syntax: 
query II rowsort label-3821
SELECT + 13 - COUNT( * ) AS col0, - 13
----
12
-13

skipif mysql # not compatible
query II rowsort label-3821
SELECT + 13 - COUNT ( * ) AS col0, - 13
----
12
-13

query I rowsort
SELECT + 26 - 84
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3823
SELECT ALL - + CAST( NULL AS SIGNED ) * - 57 AS col0, 38
----
NULL
38

skipif mysql # not compatible
query II rowsort label-3823
SELECT ALL - + CAST ( NULL AS INTEGER ) * - 57 AS col0, 38
----
NULL
38

onlyif mysql # aggregate syntax: 
query II rowsort label-3824
SELECT - + COUNT( DISTINCT + - 44 ) AS col2, 17
----
-1
17

skipif mysql # not compatible
query II rowsort label-3824
SELECT - + COUNT ( DISTINCT + - 44 ) AS col2, 17
----
-1
17

query II rowsort
SELECT - 93 + - + 74, + 14 AS col0
----
-167
14

onlyif mysql # aggregate syntax: 
query II rowsort label-3826
SELECT + 2 * 51, + 38 + + + 46 * + MAX( + 36 ) - 76 AS col1
----
102
1618

skipif mysql # not compatible
query II rowsort label-3826
SELECT + 2 * 51, + 38 + + + 46 * + MAX ( + 36 ) - 76 AS col1
----
102
1618

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3827
SELECT + 71 * COUNT( * ) + + CAST( + + 29 AS SIGNED ) AS col1
----
100

skipif mysql # not compatible
query I rowsort label-3827
SELECT + 71 * COUNT ( * ) + + CAST ( + + 29 AS INTEGER ) AS col1
----
100

query I rowsort
SELECT ALL - 95 + + - 80 col0
----
-175

query I rowsort
SELECT ALL + - 8 + 8 AS col2
----
0

query I rowsort
SELECT ALL 8 + + + 86 AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3831
SELECT DISTINCT + ( + 30 ) + + 86 + 98 * + - ( - + 30 ) + NULLIF ( - - 2, SUM( + - 33 ) * COUNT( * ) )
----
3058

skipif mysql # not compatible
query I rowsort label-3831
SELECT DISTINCT + ( + 30 ) + + 86 + 98 * + - ( - + 30 ) + NULLIF ( - - 2, SUM ( + - 33 ) * COUNT ( * ) )
----
3058

query I rowsort
SELECT ALL - 1 * 69
----
-69

query I rowsort
SELECT - 4 + + 89 AS col1
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3834
SELECT SUM( 61 ) * + ( + + 74 ) * - 24 * - 44 * - + CAST( 75 AS SIGNED ) col2
----
-357508800

skipif mysql # not compatible
query I rowsort label-3834
SELECT SUM ( 61 ) * + ( + + 74 ) * - 24 * - 44 * - + CAST ( 75 AS INTEGER ) col2
----
-357508800

query I rowsort
SELECT DISTINCT 76 * + + 64
----
4864

onlyif mysql # aggregate syntax: 
query I rowsort label-3836
SELECT + COUNT( * ) * + 0 + 38
----
38

skipif mysql # not compatible
query I rowsort label-3836
SELECT + COUNT ( * ) * + 0 + 38
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3837
SELECT 96 * - CASE + MAX( DISTINCT - CASE 75 WHEN + 9 THEN - 22 WHEN + 96 * 99 THEN + + 56 / 48 * + 48 + - - 74 + COALESCE ( - ( 88 ) + 23, + ( + 33 ) ) * 1 WHEN - 84 THEN NULL END ) WHEN COUNT( * ) THEN AVG ( 80 ) + 29 * + ( 44 * COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3837
SELECT 96 * - CASE + MAX ( DISTINCT - CASE 75 WHEN + 9 THEN - 22 WHEN + 96 * 99 THEN + + 56 / 48 * + 48 + - - 74 + COALESCE ( - ( 88 ) + 23, + ( + 33 ) ) * 1 WHEN - 84 THEN NULL END ) WHEN COUNT ( * ) THEN AVG ( 80 ) + 29 * + ( 44 * COUNT ( * ) ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3838
SELECT + 53 / - - COUNT( * ) + + CASE - + 32 WHEN - + 86 THEN - + 42 / 26 * + 73 WHEN + CAST( NULL AS SIGNED ) THEN + 30 + + 4 + - + COUNT( * ) / - 48 END + MIN( ALL + 80 ) / + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-3838
SELECT + 53 / - - COUNT ( * ) + + CASE - + 32 WHEN - + 86 THEN - + 42 / 26 * + 73 WHEN + CAST ( NULL AS INTEGER ) THEN + 30 + + 4 + - + COUNT ( * ) / - 48 END + MIN ( ALL + 80 ) / + 93
----
NULL

query I rowsort
SELECT ALL 78 * - 54 - + 77
----
-4289

query I rowsort
SELECT 76 + - 85 * + + 60 + 76 + ( - 72 ) * - 89 * + 98 + + 48 col2
----
623084

query I rowsort
SELECT 83 + + 50
----
133

query I rowsort
SELECT ( + 42 ) + + 86
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT 26 * 12 / - CASE - 9 WHEN - 80 * 16 THEN NULL WHEN 82 THEN - - 88 ELSE NULL END + + 91 - COUNT( * ) + 94 * 58 * + - NULLIF ( + COUNT( * ), 92 ) - + 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3843
SELECT 26 * 12 / - CASE - 9 WHEN - 80 * 16 THEN NULL WHEN 82 THEN - - 88 ELSE NULL END + + 91 - COUNT ( * ) + 94 * 58 * + - NULLIF ( + COUNT ( * ), 92 ) - + 14 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3844
SELECT DISTINCT COUNT( * ) / CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) col0, + 96
----
NULL
96

skipif mysql # not compatible
query II rowsort label-3844
SELECT DISTINCT COUNT ( * ) / CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) col0, + 96
----
NULL
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3845
SELECT DISTINCT - 43 AS col2, + ( - 87 ) + 6 * CASE 44 WHEN - + 78 THEN NULL WHEN 84 * 6 + CAST( - 40 AS SIGNED ) THEN - SUM( 62 ) ELSE NULL END
----
-43
NULL

skipif mysql # not compatible
query II rowsort label-3845
SELECT DISTINCT - 43 AS col2, + ( - 87 ) + 6 * CASE 44 WHEN - + 78 THEN NULL WHEN 84 * 6 + CAST ( - 40 AS INTEGER ) THEN - SUM ( 62 ) ELSE NULL END
----
-43
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3846
SELECT ( CASE 64 WHEN - - 55 THEN + CASE + - ( + NULLIF ( + 3, - - 98 + + + 82 + + COUNT( * ) * - CAST( - COALESCE ( + 41, - 76 ) AS SIGNED ) / 25 ) ) WHEN + COUNT( + 5 ) THEN NULL WHEN + 24 THEN NULL WHEN + 59 - - MIN( + ( 96 ) + 15 ) THEN COUNT( + 50 ) END END ) + + 2 * - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-3846
SELECT ( CASE 64 WHEN - - 55 THEN + CASE + - ( + NULLIF ( + 3, - - 98 + + + 82 + + COUNT ( * ) * - CAST ( - COALESCE ( + 41, - 76 ) AS INTEGER ) / 25 ) ) WHEN + COUNT ( + 5 ) THEN NULL WHEN + 24 THEN NULL WHEN + 59 - - MIN ( + ( 96 ) + 15 ) THEN COUNT ( + 50 ) END END ) + + 2 * - 52
----
NULL

query I rowsort
SELECT ALL - 63 * - 21
----
1323

query I rowsort
SELECT 27 * + 51 + - - 37 + + - 17
----
1397

query I rowsort
SELECT - 33 - 49 * - + 41 - + - 90
----
2066

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT + COUNT( * ) * SUM( 92 )
----
92

skipif mysql # not compatible
query I rowsort label-3850
SELECT + COUNT ( * ) * SUM ( 92 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT - COUNT( * ) + - MAX( - 83 )
----
82

skipif mysql # not compatible
query I rowsort label-3851
SELECT - COUNT ( * ) + - MAX ( - 83 )
----
82

query I rowsort
SELECT ALL 85 * + + 51
----
4335

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3853
SELECT DISTINCT + CAST( ( + 34 ) AS SIGNED )
----
34

skipif mysql # not compatible
query I rowsort label-3853
SELECT DISTINCT + CAST ( ( + 34 ) AS INTEGER )
----
34

query I rowsort
SELECT DISTINCT - + 23 * - 53 AS col0
----
1219

query I rowsort
SELECT ALL + - ( - 96 )
----
96

query II rowsort
SELECT 39 AS col2, 25 * + - 0 * 29 * ( + 82 ) * - 98 - + 32 AS col1
----
39
-32

query I rowsort
SELECT - 11 + + + ( 6 ) - 59
----
-64

query II rowsort
SELECT ALL - 35 AS col0, - 87
----
-35
-87

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

skipif mysql # not compatible
query I rowsort label-3859
SELECT ALL + + CAST ( NULL AS INTEGER ) + 85
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3860
SELECT ALL - 15 + - 48 + + + 94 * COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-3860
SELECT ALL - 15 + - 48 + + + 94 * COUNT ( * )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3861
SELECT - - COUNT( * ) + - COUNT( * ) + - 28 + - 17 - + + 93 * - + 46 * - - 64 AS col2
----
273747

skipif mysql # not compatible
query I rowsort label-3861
SELECT - - COUNT ( * ) + - COUNT ( * ) + - 28 + - 17 - + + 93 * - + 46 * - - 64 AS col2
----
273747

query I rowsort
SELECT - 77 * + 97 AS col1
----
-7469

query I rowsort
SELECT + + 29 * - - 53
----
1537

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT DISTINCT + + 48 + + COUNT( * ) col2
----
49

skipif mysql # not compatible
query I rowsort label-3864
SELECT DISTINCT + + 48 + + COUNT ( * ) col2
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3865
SELECT DISTINCT + NULLIF ( - 54, - 58 ) DIV - 39 - + 69 * COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-3865
SELECT DISTINCT + NULLIF ( - 54, - 58 ) / - 39 - + 69 * COUNT ( * )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT DISTINCT + 96 + - + NULLIF ( + + 78, + COUNT( ALL 64 ) ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-3866
SELECT DISTINCT + 96 + - + NULLIF ( + + 78, + COUNT ( ALL 64 ) ) AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3867
SELECT DISTINCT + COUNT( * ) * - 71 + - ( 51 )
----
-122

skipif mysql # not compatible
query I rowsort label-3867
SELECT DISTINCT + COUNT ( * ) * - 71 + - ( 51 )
----
-122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3868
SELECT ALL CAST( 80 AS SIGNED ) + 84 - - 64 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3868
SELECT ALL CAST ( 80 AS INTEGER ) + 84 - - 64 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3869
SELECT ALL - CAST( NULL AS DECIMAL ) * 1 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3869
SELECT ALL - CAST ( NULL AS REAL ) * 1 col0
----
NULL

query I rowsort
SELECT - ( - + 42 ) * + 32 + - + 98
----
1246

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT + 49 + - SUM( ALL 61 ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-3871
SELECT + 49 + - SUM ( ALL 61 ) AS col0
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3872
SELECT - - 8 DIV - - 79 - 4 + COUNT( * ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-3872
SELECT - - 8 / - - 79 - 4 + COUNT ( * ) AS col2
----
-3

query II rowsort
SELECT - 38, 42 AS col0
----
-38
42

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3874
SELECT - CASE - ( + 56 ) WHEN + + 54 + 71 + 5 * - 51 * 1 + 74 - + 64 THEN - CAST( NULL AS SIGNED ) DIV - COALESCE ( + - 58, + 50 * + 85 ) DIV 19 WHEN - 36 THEN 4 ELSE + 41 END
----
-41

skipif mysql # not compatible
query I rowsort label-3874
SELECT - CASE - ( + 56 ) WHEN + + 54 + 71 + 5 * - 51 * 1 + 74 - + 64 THEN - CAST ( NULL AS INTEGER ) / - COALESCE ( + - 58, + 50 * + 85 ) / 19 WHEN - 36 THEN 4 ELSE + 41 END
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3875
SELECT + 23 + + 39 + + + COUNT( * ) * - ( + - 70 ) * + 0 * - 60 * - - 82
----
62

skipif mysql # not compatible
query I rowsort label-3875
SELECT + 23 + + 39 + + + COUNT ( * ) * - ( + - 70 ) * + 0 * - 60 * - - 82
----
62

query I rowsort
SELECT DISTINCT ( + CASE AVG ( DISTINCT 41 ) WHEN + 79 THEN - ( 5 ) END )
----
NULL

query I rowsort
SELECT ALL ( + + 10 ) AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT DISTINCT - 40 - CASE - + 66 WHEN + 29 THEN - 78 * + + COUNT( * ) + + + 28 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3878
SELECT DISTINCT - 40 - CASE - + 66 WHEN + 29 THEN - 78 * + + COUNT ( * ) + + + 28 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3879
SELECT ( - 35 ) AS col0, - CAST( - NULLIF ( - + CAST( 14 AS SIGNED ), + 46 / + 3 + + - 28 ) AS SIGNED ) + + 86 AS col0
----
-35
72

skipif mysql # not compatible
query II rowsort label-3879
SELECT ( - 35 ) AS col0, - CAST ( - NULLIF ( - + CAST ( 14 AS INTEGER ), + 46 / + 3 + + - 28 ) AS INTEGER ) + + 86 AS col0
----
-35
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3880
SELECT ALL 52 * - MIN( - + 97 )
----
5044

skipif mysql # not compatible
query I rowsort label-3880
SELECT ALL 52 * - MIN ( - + 97 )
----
5044

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3881
SELECT ALL + 29 * - 3 - + 85 + - - MIN( DISTINCT 79 ) DIV - 70 AS col1
----
-173

skipif mysql # not compatible
query I rowsort label-3881
SELECT ALL + 29 * - 3 - + 85 + - - MIN ( DISTINCT 79 ) / - 70 AS col1
----
-173

query I rowsort
SELECT + 81 * + + 1
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3883
SELECT DISTINCT MIN( DISTINCT 32 ) * + COUNT( * ) + 55 + 32 * - 90 - + - 13 + 36 + - 23 DIV + 1 col1
----
-2767

skipif mysql # not compatible
query I rowsort label-3883
SELECT DISTINCT MIN ( DISTINCT 32 ) * + COUNT ( * ) + 55 + 32 * - 90 - + - 13 + 36 + - 23 / + 1 col1
----
-2767

query I rowsort
SELECT + 16 * - - 30 * - 18 AS col1
----
-8640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3885
SELECT + CAST( - 12 AS SIGNED ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-3885
SELECT + CAST ( - 12 AS INTEGER ) AS col1
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3886
SELECT + CAST( NULL AS SIGNED ) * + 85 * - + 42 * COUNT( * ) * 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3886
SELECT + CAST ( NULL AS INTEGER ) * + 85 * - + 42 * COUNT ( * ) * 50 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3887
SELECT - 10 + COUNT( - - 14 ) DIV ( COALESCE ( 7, 96 ) ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-3887
SELECT - 10 + COUNT ( - - 14 ) / ( COALESCE ( 7, 96 ) ) AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3888
SELECT + MIN( 60 ) * + 91 AS col2
----
5460

skipif mysql # not compatible
query I rowsort label-3888
SELECT + MIN ( 60 ) * + 91 AS col2
----
5460

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT COUNT( - 18 )
----
1

skipif mysql # not compatible
query I rowsort label-3889
SELECT COUNT ( - 18 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3890
SELECT ALL + - 66 * NULLIF ( 35, - COUNT( * ) * 69 ) + + - 45
----
-2355

skipif mysql # not compatible
query I rowsort label-3890
SELECT ALL + - 66 * NULLIF ( 35, - COUNT ( * ) * 69 ) + + - 45
----
-2355

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT ALL - + 99 * + 29 - - 0 + - + COUNT( * ) + + - 28 - + 15 + + NULLIF ( + NULLIF ( - 61, + - ( + - 94 ) - - 53 + - 75 ), 2 )
----
-2976

skipif mysql # not compatible
query I rowsort label-3891
SELECT ALL - + 99 * + 29 - - 0 + - + COUNT ( * ) + + - 28 - + 15 + + NULLIF ( + NULLIF ( - 61, + - ( + - 94 ) - - 53 + - 75 ), 2 )
----
-2976

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT - - 85 * - 36 - + 63 + SUM( DISTINCT + - 39 )
----
-3162

skipif mysql # not compatible
query I rowsort label-3892
SELECT - - 85 * - 36 - + 63 + SUM ( DISTINCT + - 39 )
----
-3162

query I rowsort
SELECT - NULLIF ( - COALESCE ( 91, - - 69 + - - 47 ), + 85 + 97 )
----
91

query I rowsort
SELECT + 57 * 7
----
399

query I rowsort
SELECT - - 0 * - 6 + - - 86
----
86

query I rowsort
SELECT ALL + + 45 * + 1 AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3897
SELECT DISTINCT - CASE ( - 75 ) WHEN + 38 THEN NULL WHEN + - 55 THEN NULL WHEN - - ( - - COUNT( * ) ) THEN - 88 / + 56 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3897
SELECT DISTINCT - CASE ( - 75 ) WHEN + 38 THEN NULL WHEN + - 55 THEN NULL WHEN - - ( - - COUNT ( * ) ) THEN - 88 / + 56 END
----
NULL

query I rowsort
SELECT ALL + - 81 * - + 83 + + ( + 1 )
----
6724

query I rowsort
SELECT ALL - NULLIF ( + + ( + + 2 ), + 16 + 91 ) AS col2
----
-2

query I rowsort
SELECT ( + 40 ) AS col1
----
40

query I rowsort
SELECT - - 73 * + 62 AS col1
----
4526

onlyif mysql # DIV for integer division: 
query I rowsort label-3902
SELECT - 56 DIV - 5
----
11

skipif mysql # not compatible
query I rowsort label-3902
SELECT - 56 / - 5
----
11

query I rowsort
SELECT ALL + 26 * + 0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3904
SELECT - CAST( NULL AS SIGNED ) - CAST( NULL AS SIGNED ) + - CASE + CASE + - 47 WHEN 66 * + - 30 * - COUNT( * ) THEN + 37 + - + 41 WHEN - SUM( ALL - + 24 ) THEN + + COUNT( * ) + 52 END WHEN 35 + 22 THEN + 59 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3904
SELECT - CAST ( NULL AS INTEGER ) - CAST ( NULL AS INTEGER ) + - CASE + CASE + - 47 WHEN 66 * + - 30 * - COUNT ( * ) THEN + 37 + - + 41 WHEN - SUM ( ALL - + 24 ) THEN + + COUNT ( * ) + 52 END WHEN 35 + 22 THEN + 59 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3905
SELECT DISTINCT + 53 * + 56 * CAST( NULL AS SIGNED ) * 59
----
NULL

skipif mysql # not compatible
query I rowsort label-3905
SELECT DISTINCT + 53 * + 56 * CAST ( NULL AS INTEGER ) * 59
----
NULL

query I rowsort
SELECT DISTINCT + 81 * 52
----
4212

onlyif mysql # aggregate syntax: 
query I rowsort label-3907
SELECT - NULLIF ( - - COUNT( * ), + + COUNT( * ) * + 20 - - - 92 * - 86 ) * + 86 AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-3907
SELECT - NULLIF ( - - COUNT ( * ), + + COUNT ( * ) * + 20 - - - 92 * - 86 ) * + 86 AS col0
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3908
SELECT - CASE + ( - 25 ) WHEN 34 THEN - 92 WHEN - 10 * + CASE - COUNT( * ) WHEN - - 94 * - 77 + - + CAST( CAST( SUM( - - 33 ) AS SIGNED ) AS SIGNED ) THEN NULL WHEN - 54 THEN 7 WHEN 89 * - COUNT( * ) THEN + CASE 86 WHEN 25 THEN NULL WHEN 88 * CAST( NULL AS SIGNED ) THEN 45 * 82 + 9 ELSE - 3 END ELSE NULL END / - 1 + 37 THEN NULL WHEN NULLIF ( 60, ( 92 ) - 99 ) / - 9 + 15 * 71 THEN 86 END + + NULLIF ( 4, 14 - + 6 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3908
SELECT - CASE + ( - 25 ) WHEN 34 THEN - 92 WHEN - 10 * + CASE - COUNT ( * ) WHEN - - 94 * - 77 + - + CAST ( CAST ( SUM ( - - 33 ) AS INTEGER ) AS INTEGER ) THEN NULL WHEN - 54 THEN 7 WHEN 89 * - COUNT ( * ) THEN + CASE 86 WHEN 25 THEN NULL WHEN 88 * CAST ( NULL AS INTEGER ) THEN 45 * 82 + 9 ELSE - 3 END ELSE NULL END / - 1 + 37 THEN NULL WHEN NULLIF ( 60, ( 92 ) - 99 ) / - 9 + 15 * 71 THEN 86 END + + NULLIF ( 4, 14 - + 6 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3909
SELECT 21 DIV + ( COALESCE ( + 17, - 23 * + 41 + + - 19, - 3 ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3909
SELECT 21 / + ( COALESCE ( + 17, - 23 * + 41 + + - 19, - 3 ) ) col1
----
1

query II rowsort
SELECT 63 * + 32 + + + 95 col1, + 75 * - 44
----
2111
-3300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3911
SELECT - 6 DIV 17 + 43 DIV + COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-3911
SELECT - 6 / 17 + 43 / + COUNT ( * )
----
43

query I rowsort
SELECT 11 + 36
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT ALL - COUNT( * ) + - 25
----
-26

skipif mysql # not compatible
query I rowsort label-3913
SELECT ALL - COUNT ( * ) + - 25
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3914
SELECT ALL CAST( + + COALESCE ( ( - COUNT( DISTINCT - 46 ) ), - 72, + 17 ) AS SIGNED ) + + 55, 72 * + - 84 AS col0
----
54
-6048

skipif mysql # not compatible
query II rowsort label-3914
SELECT ALL CAST ( + + COALESCE ( ( - COUNT ( DISTINCT - 46 ) ), - 72, + 17 ) AS INTEGER ) + + 55, 72 * + - 84 AS col0
----
54
-6048

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3915
SELECT ALL - CAST( 83 AS SIGNED )
----
-83

skipif mysql # not compatible
query I rowsort label-3915
SELECT ALL - CAST ( 83 AS INTEGER )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT DISTINCT - MAX( ALL + 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-3916
SELECT DISTINCT - MAX ( ALL + 78 )
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3917
SELECT DISTINCT + ( + 48 ) + + + 99 + + CASE - 9 WHEN + - 5 * - 29 / - 7 + 72 THEN + 18 + 41 * ( 54 ) WHEN - ( + 82 ) * - AVG ( 65 ) + 47 THEN 36 * 83 + 72 END + 43 * 85 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3917
SELECT DISTINCT + ( + 48 ) + + + 99 + + CASE - 9 WHEN + - 5 * - 29 / - 7 + 72 THEN + 18 + 41 * ( 54 ) WHEN - ( + 82 ) * - AVG ( 65 ) + 47 THEN 36 * 83 + 72 END + 43 * 85 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 90 + + 14
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT + ( - - 37 ) * + 66 + COUNT( * ) + + 63 * - COUNT( DISTINCT 59 ) col0
----
2380

skipif mysql # not compatible
query I rowsort label-3919
SELECT + ( - - 37 ) * + 66 + COUNT ( * ) + + 63 * - COUNT ( DISTINCT 59 ) col0
----
2380

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT + MAX( DISTINCT 76 )
----
76

skipif mysql # not compatible
query I rowsort label-3920
SELECT + MAX ( DISTINCT 76 )
----
76

query II rowsort
SELECT - 87 AS col2, - 68
----
-87
-68

query I rowsort
SELECT ALL 42 + - - 19 + - 95
----
-34

query I rowsort
SELECT ALL ( + 8 ) + - 74 AS col1
----
-66

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3924
SELECT ALL - CASE - 47 WHEN - - 3 THEN NULL WHEN - 52 THEN 50 * + 37 / - 66 + - COALESCE ( + - 0, - - 53 * - - 10 ) WHEN + 51 THEN + CASE 20 WHEN - + 13 + + CASE - COUNT( * ) WHEN - 30 THEN - 86 END * - COUNT( + 45 + + 9 * 56 ) THEN NULL WHEN - 26 * 56 THEN 34 / NULLIF ( CAST( ( 56 ) AS DECIMAL ), - AVG ( ALL + 85 ) * - COUNT( * ) ) + 79 ELSE 68 END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3924
SELECT ALL - CASE - 47 WHEN - - 3 THEN NULL WHEN - 52 THEN 50 * + 37 / - 66 + - COALESCE ( + - 0, - - 53 * - - 10 ) WHEN + 51 THEN + CASE 20 WHEN - + 13 + + CASE - COUNT ( * ) WHEN - 30 THEN - 86 END * - COUNT ( + 45 + + 9 * 56 ) THEN NULL WHEN - 26 * 56 THEN 34 / NULLIF ( CAST ( ( 56 ) AS REAL ), - AVG ( ALL + 85 ) * - COUNT ( * ) ) + 79 ELSE 68 END ELSE NULL END
----
NULL

query I rowsort
SELECT - 31 * 97 AS col1
----
-3007

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3926
SELECT - COUNT( * ) - 22 DIV ( 84 ) + - ( - 67 ) + + COUNT( * ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-3926
SELECT - COUNT ( * ) - 22 / ( 84 ) + - ( - 67 ) + + COUNT ( * ) AS col0
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3927
SELECT - + COUNT( CAST( - - 31 AS SIGNED ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3927
SELECT - + COUNT ( CAST ( - - 31 AS INTEGER ) ) AS col0
----
-1

query I rowsort
SELECT DISTINCT 72 * + - 95 AS col1
----
-6840

onlyif mysql # aggregate syntax: 
query I rowsort label-3929
SELECT ALL 76 * + 67 * COUNT( * )
----
5092

skipif mysql # not compatible
query I rowsort label-3929
SELECT ALL 76 * + 67 * COUNT ( * )
----
5092

query I rowsort
SELECT 2 + - 91
----
-89

query II rowsort
SELECT ALL 51, + 21 AS col1
----
51
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3932
SELECT - 52 AS col0, 79 DIV 91 * - + 30 DIV - SUM( - + 95 ) * 13 DIV + 91 AS col2
----
-52
0

skipif mysql # not compatible
query II rowsort label-3932
SELECT - 52 AS col0, 79 / 91 * - + 30 / - SUM ( - + 95 ) * 13 / + 91 AS col2
----
-52
0

query II rowsort
SELECT - 6 AS col0, 68
----
-6
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3934
SELECT 27 + MIN( + 80 )
----
107

skipif mysql # not compatible
query I rowsort label-3934
SELECT 27 + MIN ( + 80 )
----
107

query III rowsort
SELECT ALL 63 AS col1, - 40 AS col2, + 35 * 45 AS col2
----
63
-40
1575

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3936
SELECT ALL - ( + ( - - 69 ) ) DIV + - 47 + SUM( 3 ) + + 32 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-3936
SELECT ALL - ( + ( - - 69 ) ) / + - 47 + SUM ( 3 ) + + 32 AS col2
----
36

query I rowsort
SELECT 1 * 92 AS col2
----
92

query I rowsort
SELECT 37 + 78
----
115

query II rowsort
SELECT DISTINCT 67, - 98 - + + 94 AS col0
----
67
-192

query I rowsort
SELECT DISTINCT - 86 + + 78 * - - 19
----
1396

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3941
SELECT ALL + CAST( NULL AS SIGNED ) + + - 15 * - CASE - 74 WHEN - 61 THEN 86 / MIN( ALL 83 ) WHEN + 71 THEN - 11 * 22 - + 25 ELSE CAST( NULL AS SIGNED ) * - 39 / + - ( + 1 ) * + ( 95 - - 26 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3941
SELECT ALL + CAST ( NULL AS INTEGER ) + + - 15 * - CASE - 74 WHEN - 61 THEN 86 / MIN ( ALL 83 ) WHEN + 71 THEN - 11 * 22 - + 25 ELSE CAST ( NULL AS INTEGER ) * - 39 / + - ( + 1 ) * + ( 95 - - 26 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3942
SELECT DISTINCT - CASE + MAX( ALL + 49 ) WHEN - + 46 + + + 31 / - 55 + + 43 THEN NULL WHEN + - 55 * - 33 THEN NULL ELSE + + 23 * + - 86 * + 75 END * 92 + + - 56
----
13648144

skipif mysql # not compatible
query I rowsort label-3942
SELECT DISTINCT - CASE + MAX ( ALL + 49 ) WHEN - + 46 + + + 31 / - 55 + + 43 THEN NULL WHEN + - 55 * - 33 THEN NULL ELSE + + 23 * + - 86 * + 75 END * 92 + + - 56
----
13648144

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT ALL - COUNT( * ) + - + 11 + + 0 + + 97
----
85

skipif mysql # not compatible
query I rowsort label-3943
SELECT ALL - COUNT ( * ) + - + 11 + + 0 + + 97
----
85

query I rowsort
SELECT 27 * - + 21 col2
----
-567

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT ALL - COUNT( ALL - 71 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3945
SELECT ALL - COUNT ( ALL - 71 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3946
SELECT 46 / - ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3946
SELECT 46 / - ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3947
SELECT 17 * 77, COUNT( * ) AS col1
----
1309
1

skipif mysql # not compatible
query II rowsort label-3947
SELECT 17 * 77, COUNT ( * ) AS col1
----
1309
1

query I rowsort
SELECT 52 * - 29 * - + 50 AS col2
----
75400

onlyif mysql # aggregate syntax: 
query I rowsort label-3949
SELECT ALL - MIN( ALL - - 19 ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-3949
SELECT ALL - MIN ( ALL - - 19 ) AS col1
----
-19

query II rowsort
SELECT + 10, - 4 AS col2
----
10
-4

query II rowsort
SELECT ALL - + 69, 25 AS col0
----
-69
25

query I rowsort
SELECT ALL - CASE + 58 WHEN + 14 THEN 5 END - - 5 / + - 91
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3953
SELECT 72 * + - 39 - + 81 * 58 + - - CAST( NULL AS SIGNED ) * - COALESCE ( + COUNT( * ), + MAX( + - 63 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3953
SELECT 72 * + - 39 - + 81 * 58 + - - CAST ( NULL AS INTEGER ) * - COALESCE ( + COUNT ( * ), + MAX ( + - 63 ) )
----
NULL

query II rowsort
SELECT ALL - + 36 AS col2, + 28
----
-36
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT DISTINCT - MIN( + 52 ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-3955
SELECT DISTINCT - MIN ( + 52 ) AS col1
----
-52

query I rowsort
SELECT + + ( + 1 )
----
1

query II rowsort
SELECT + + 77 AS col0, + 95 * - 28 AS col2
----
77
-2660

query II rowsort
SELECT DISTINCT - 20 AS col1, + 23 + + + 20
----
-20
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT ALL - 17 - + - ( + + COUNT( * ) ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-3959
SELECT ALL - 17 - + - ( + + COUNT ( * ) ) AS col0
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3960
SELECT + 91 * COUNT( * ) + + CAST( + 59 AS SIGNED )
----
150

skipif mysql # not compatible
query I rowsort label-3960
SELECT + 91 * COUNT ( * ) + + CAST ( + 59 AS INTEGER )
----
150

onlyif mysql # aggregate syntax: 
query II rowsort label-3961
SELECT - 17 AS col2, COUNT( * )
----
-17
1

skipif mysql # not compatible
query II rowsort label-3961
SELECT - 17 AS col2, COUNT ( * )
----
-17
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3962
SELECT + COUNT( * ) AS col1, 45 AS col0
----
1
45

skipif mysql # not compatible
query II rowsort label-3962
SELECT + COUNT ( * ) AS col1, 45 AS col0
----
1
45

query I rowsort
SELECT 72 + - + 7 * + + 90
----
-558

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3964
SELECT - 29 DIV + 25 + + - NULLIF ( + COUNT( * ), - 28 * + 48 + SUM( + - 43 ) + + - COUNT( * ) ) - 22 + - 29 * + + COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-3964
SELECT - 29 / + 25 + + - NULLIF ( + COUNT ( * ), - 28 * + 48 + SUM ( + - 43 ) + + - COUNT ( * ) ) - 22 + - 29 * + + COUNT ( * )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3965
SELECT ALL - COUNT( DISTINCT 96 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3965
SELECT ALL - COUNT ( DISTINCT 96 ) AS col1
----
-1

query I rowsort
SELECT + 68 * + 95 + - - 98 AS col0
----
6558

query I rowsort
SELECT + 38 + 62 + - 1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3968
SELECT DISTINCT - COUNT( * ) * - 33 * - 37
----
-1221

skipif mysql # not compatible
query I rowsort label-3968
SELECT DISTINCT - COUNT ( * ) * - 33 * - 37
----
-1221

query II rowsort
SELECT + 15 * - 43 + + 34 - + + 57, 44 AS col1
----
-668
44

onlyif mysql # DIV for integer division: 
query I rowsort label-3970
SELECT ALL 29 DIV 48
----
0

skipif mysql # not compatible
query I rowsort label-3970
SELECT ALL 29 / 48
----
0

query I rowsort
SELECT DISTINCT 58 + + - 48
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-3972
SELECT + 98 - + ( - 44 ) AS col1, + MAX( ALL 59 ) AS col1
----
142
59

skipif mysql # not compatible
query II rowsort label-3972
SELECT + 98 - + ( - 44 ) AS col1, + MAX ( ALL 59 ) AS col1
----
142
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3973
SELECT DISTINCT 22 + - - 28 + - CASE - COUNT( * ) WHEN + ( - + COUNT( * ) ) THEN NULL ELSE + CAST( NULL AS SIGNED ) * 42 * - - 76 * - + 10 * + 20 - + 27 * + - CASE - 36 WHEN ( COUNT( * ) ) * - + 92 THEN - COUNT( * ) ELSE NULL END END + - CASE 27 + 50 * ( - 43 + + 59 / - 78 ) WHEN - ( - 20 ) THEN - 41 WHEN + 78 - + 57 THEN - ( 27 ) - 74 * - MAX( + 92 ) END / + 10 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3973
SELECT DISTINCT 22 + - - 28 + - CASE - COUNT ( * ) WHEN + ( - + COUNT ( * ) ) THEN NULL ELSE + CAST ( NULL AS INTEGER ) * 42 * - - 76 * - + 10 * + 20 - + 27 * + - CASE - 36 WHEN ( COUNT ( * ) ) * - + 92 THEN - COUNT ( * ) ELSE NULL END END + - CASE 27 + 50 * ( - 43 + + 59 / - 78 ) WHEN - ( - 20 ) THEN - 41 WHEN + 78 - + 57 THEN - ( 27 ) - 74 * - MAX ( + 92 ) END / + 10 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3974
SELECT ALL COUNT( ALL - + 6 )
----
1

skipif mysql # not compatible
query I rowsort label-3974
SELECT ALL COUNT ( ALL - + 6 )
----
1

query I rowsort
SELECT - 51 * 77
----
-3927

query I rowsort
SELECT ALL 57 + + COALESCE ( + + ( + ( + + 59 ) ), - 71 * - 4 * 65 )
----
116

query II rowsort
SELECT + 62 + + - 46, + ( - - 83 ) + + COALESCE ( + 1, + 77 * - 85 + 4 * + 89 + - 88 ) AS col2
----
16
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT - CASE - - 92 WHEN + 46 THEN - - COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3978
SELECT - CASE - - 92 WHEN + 46 THEN - - COUNT ( * ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT ALL + CASE - COUNT( * ) WHEN 87 THEN - COUNT( DISTINCT 95 ) WHEN + + 97 THEN - + ( + 97 ) WHEN + COUNT( * ) * - 8 + - - 9 + 3 THEN - - 48 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3979
SELECT ALL + CASE - COUNT ( * ) WHEN 87 THEN - COUNT ( DISTINCT 95 ) WHEN + + 97 THEN - + ( + 97 ) WHEN + COUNT ( * ) * - 8 + - - 9 + 3 THEN - - 48 END col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3980
SELECT 37 DIV + 74 + + ( 20 ) * + 7 AS col0, MIN( 18 ) DIV + COUNT( * ) + - 55 * - + 87 * - + 78 AS col2
----
140
-373212

skipif mysql # not compatible
query II rowsort label-3980
SELECT 37 / + 74 + + ( 20 ) * + 7 AS col0, MIN ( 18 ) / + COUNT ( * ) + - 55 * - + 87 * - + 78 AS col2
----
140
-373212

query I rowsort
SELECT - 21 - + 91 + + 29 * - 38
----
-1214

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3982
SELECT ALL + 93 * - 66 - CASE + - 15 WHEN 58 THEN - 5 * + 26 + ( - - CASE + COUNT( * ) WHEN 75 * + 3 + + ( + CAST( NULL AS SIGNED ) ) THEN + + 14 + - ( - 49 ) END ) WHEN + 83 THEN NULL ELSE 15 * + 11 + - 91 END + + 47 * 4
----
-6024

skipif mysql # not compatible
query I rowsort label-3982
SELECT ALL + 93 * - 66 - CASE + - 15 WHEN 58 THEN - 5 * + 26 + ( - - CASE + COUNT ( * ) WHEN 75 * + 3 + + ( + CAST ( NULL AS INTEGER ) ) THEN + + 14 + - ( - 49 ) END ) WHEN + 83 THEN NULL ELSE 15 * + 11 + - 91 END + + 47 * 4
----
-6024

onlyif mysql # DIV for integer division: 
query I rowsort label-3983
SELECT ALL 20 DIV - + COALESCE ( + CASE + 67 WHEN + 33 * 51 + + 86 * 84 + + ( - + 15 ) THEN 99 ELSE NULL END, - + 12 )
----
1

skipif mysql # not compatible
query I rowsort label-3983
SELECT ALL 20 / - + COALESCE ( + CASE + 67 WHEN + 33 * 51 + + 86 * 84 + + ( - + 15 ) THEN 99 ELSE NULL END, - + 12 )
----
1

query II rowsort
SELECT DISTINCT + 80 * - + 14 AS col1, 57 + 86 col0
----
-1120
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3985
SELECT + + COUNT( * ) * - 3 * + 76 + + CAST( 73 AS SIGNED ) AS col1
----
-155

skipif mysql # not compatible
query I rowsort label-3985
SELECT + + COUNT ( * ) * - 3 * + 76 + + CAST ( 73 AS INTEGER ) AS col1
----
-155

query II rowsort
SELECT ALL + 46 * - 98, + 79 col1
----
-4508
79

onlyif mysql # DIV for integer division: 
query I rowsort label-3987
SELECT - 17 DIV + 42
----
0

skipif mysql # not compatible
query I rowsort label-3987
SELECT - 17 / + 42
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3988
SELECT - - CAST( NULL AS SIGNED ) * + + 62 * - 32 * + COUNT( * ) + - COALESCE ( + COUNT( * ), + 29 + COUNT( * ), - 50 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3988
SELECT - - CAST ( NULL AS INTEGER ) * + + 62 * - 32 * + COUNT ( * ) + - COALESCE ( + COUNT ( * ), + 29 + COUNT ( * ), - 50 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3989
SELECT - 91 + + 30 * + COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-3989
SELECT - 91 + + 30 * + COUNT ( * )
----
-61

query I rowsort
SELECT DISTINCT + 14 * - 41 - - NULLIF ( - + 11, - - 45 ) + - 67 col2
----
-652

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3991
SELECT ALL + + ( + CASE 33 WHEN 62 THEN NULL WHEN - + 35 * CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) / - 33 / + 45 + MIN( 20 ) + 34 * + CAST( NULL AS SIGNED ) * - COUNT( * ) + + 84 * COUNT( * ) THEN + 88 ELSE - 91 END )
----
-91

skipif mysql # not compatible
query I rowsort label-3991
SELECT ALL + + ( + CASE 33 WHEN 62 THEN NULL WHEN - + 35 * CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) / - 33 / + 45 + MIN ( 20 ) + 34 * + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + + 84 * COUNT ( * ) THEN + 88 ELSE - 91 END )
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-3992
SELECT + - 86 + + - 70 + + 56 AS col0, + 98 * MAX( + + 55 )
----
-100
5390

skipif mysql # not compatible
query II rowsort label-3992
SELECT + - 86 + + - 70 + + 56 AS col0, + 98 * MAX ( + + 55 )
----
-100
5390

onlyif mysql # aggregate syntax: 
query I rowsort label-3993
SELECT DISTINCT + - SUM( + + 25 )
----
-25

skipif mysql # not compatible
query I rowsort label-3993
SELECT DISTINCT + - SUM ( + + 25 )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT ALL 33 * + COUNT( * ) + + 16
----
49

skipif mysql # not compatible
query I rowsort label-3994
SELECT ALL 33 * + COUNT ( * ) + + 16
----
49

query I rowsort
SELECT + 2 * - 64
----
-128

query I rowsort
SELECT ALL + 63 * + 87 + 46
----
5527

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT - COALESCE ( + COUNT( * ), - 79 ) + + 13 * + + 69 * - + 47 - - + 23 * 22
----
-41654

skipif mysql # not compatible
query I rowsort label-3997
SELECT - COALESCE ( + COUNT ( * ), - 79 ) + + 13 * + + 69 * - + 47 - - + 23 * 22
----
-41654

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT 31 * + 68 * + + 70 - + COUNT( * )
----
147559

skipif mysql # not compatible
query I rowsort label-3998
SELECT 31 * + 68 * + + 70 - + COUNT ( * )
----
147559

query I rowsort
SELECT ALL 17 + - 86
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4000
SELECT ALL + COUNT( * ) + + 16 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-4000
SELECT ALL + COUNT ( * ) + + 16 AS col0
----
17

query I rowsort
SELECT + 99 + - + 38
----
61

query II rowsort
SELECT DISTINCT + 87 + - 58 - + - 17, 37 + - 3 AS col2
----
46
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT ALL 81 + COUNT( ALL NULLIF ( + - 82, + 25 * - - 98 * - 35 - 22 * - 89 + + 12 ) ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-4003
SELECT ALL 81 + COUNT ( ALL NULLIF ( + - 82, + 25 * - - 98 * - 35 - 22 * - 89 + + 12 ) ) AS col0
----
82

query I rowsort
SELECT ALL 45 * 4 * + 91
----
16380

query I rowsort
SELECT + 51 + - 44 AS col0
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4006
SELECT - 63 * CASE + CAST( NULL AS SIGNED ) WHEN + 53 THEN SUM( 96 ) WHEN + 98 THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4006
SELECT - 63 * CASE + CAST ( NULL AS INTEGER ) WHEN + 53 THEN SUM ( 96 ) WHEN + 98 THEN NULL END col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4007
SELECT ALL CAST( NULL AS SIGNED ) * + + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-4007
SELECT ALL CAST ( NULL AS INTEGER ) * + + 97
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT DISTINCT COUNT( - + 58 ) - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4008
SELECT DISTINCT COUNT ( - + 58 ) - COUNT ( * ) AS col2
----
0

query I rowsort
SELECT ALL 3 - - + 55
----
58

query I rowsort
SELECT + 9 * ( + 42 ) AS col2
----
378

onlyif mysql # aggregate syntax: 
query II rowsort label-4011
SELECT DISTINCT + + 74, + 17 + + SUM( DISTINCT + 87 ) AS col1
----
74
104

skipif mysql # not compatible
query II rowsort label-4011
SELECT DISTINCT + + 74, + 17 + + SUM ( DISTINCT + 87 ) AS col1
----
74
104

query II rowsort
SELECT ALL + 40 AS col0, 83
----
40
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4013
SELECT + 95 AS col0, + COUNT( * ) * + CAST( NULL AS SIGNED ) * - 49
----
95
NULL

skipif mysql # not compatible
query II rowsort label-4013
SELECT + 95 AS col0, + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * - 49
----
95
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4014
SELECT ALL + MAX( ALL 17 ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-4014
SELECT ALL + MAX ( ALL 17 ) AS col1
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-4015
SELECT - 99 * - MAX( + 63 ) * 15 * - 28 - - 87 * + 99 * - SUM( + - 46 ) AS col2, - 87
----
-2223342
-87

skipif mysql # not compatible
query II rowsort label-4015
SELECT - 99 * - MAX ( + 63 ) * 15 * - 28 - - 87 * + 99 * - SUM ( + - 46 ) AS col2, - 87
----
-2223342
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4016
SELECT - CAST( - + 61 AS SIGNED ) * - - MAX( 1 )
----
61

skipif mysql # not compatible
query I rowsort label-4016
SELECT - CAST ( - + 61 AS INTEGER ) * - - MAX ( 1 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4017
SELECT ALL + MIN( DISTINCT + + 57 )
----
57

skipif mysql # not compatible
query I rowsort label-4017
SELECT ALL + MIN ( DISTINCT + + 57 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT + - 46 * COALESCE ( + ( - 32 ), + + 4 + - - NULLIF ( MAX( DISTINCT - 9 ), - - 57 * + 57 * - 68 ), + + 67 )
----
1472

skipif mysql # not compatible
query I rowsort label-4018
SELECT + - 46 * COALESCE ( + ( - 32 ), + + 4 + - - NULLIF ( MAX ( DISTINCT - 9 ), - - 57 * + 57 * - 68 ), + + 67 )
----
1472

query I rowsort
SELECT DISTINCT 38 * + 3 AS col0
----
114

onlyif mysql # aggregate syntax: 
query II rowsort label-4020
SELECT - COUNT( - 75 ) * + - 37, - 77 AS col1
----
37
-77

skipif mysql # not compatible
query II rowsort label-4020
SELECT - COUNT ( - 75 ) * + - 37, - 77 AS col1
----
37
-77

query I rowsort
SELECT DISTINCT + COALESCE ( - 59, 45 ) * - 91 + 30
----
5399

query I rowsort
SELECT ALL - ( + 9 ) col0
----
-9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4023
SELECT 95 + - CAST( 53 AS SIGNED ) DIV 1 - 99 - - + 60 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-4023
SELECT 95 + - CAST ( 53 AS INTEGER ) / 1 - 99 - - + 60 AS col0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4024
SELECT COUNT( * ) * - 18 - CASE - AVG ( + 27 ) WHEN + 59 THEN - - ( - 91 ) + - + 17 WHEN COUNT( * ) THEN - - 2 * + 1 ELSE NULL END, - CASE + + 41 WHEN 65 THEN + - COUNT( * ) END AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4024
SELECT COUNT ( * ) * - 18 - CASE - AVG ( + 27 ) WHEN + 59 THEN - - ( - 91 ) + - + 17 WHEN COUNT ( * ) THEN - - 2 * + 1 ELSE NULL END, - CASE + + 41 WHEN 65 THEN + - COUNT ( * ) END AS col1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT ALL - 0 + ( + 74 ) * + COUNT( * ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-4025
SELECT ALL - 0 + ( + 74 ) * + COUNT ( * ) AS col0
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4026
SELECT ALL + ( + NULLIF ( + CAST( NULL AS SIGNED ), + MIN( ALL - 36 ) ) ) + - COUNT( - - NULLIF ( + 98, + 42 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4026
SELECT ALL + ( + NULLIF ( + CAST ( NULL AS INTEGER ), + MIN ( ALL - 36 ) ) ) + - COUNT ( - - NULLIF ( + 98, + 42 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4027
SELECT DISTINCT + 18 + + 7 + - 88 DIV - COUNT( * ) + - - 92 + CAST( 88 AS SIGNED ) DIV - COALESCE ( + + COUNT( * ), - 85 * 42 DIV 76 - 89, + 52 ) DIV - + COUNT( * ) AS col1
----
293

skipif mysql # not compatible
query I rowsort label-4027
SELECT DISTINCT + 18 + + 7 + - 88 / - COUNT ( * ) + - - 92 + CAST ( 88 AS INTEGER ) / - COALESCE ( + + COUNT ( * ), - 85 * 42 / 76 - 89, + 52 ) / - + COUNT ( * ) AS col1
----
293

onlyif mysql # aggregate syntax: 
query II rowsort label-4028
SELECT 27 * - - 56, 54 * - CASE - MIN( 31 ) WHEN - COALESCE ( + 68, - 16 + + SUM( DISTINCT - 24 ) ) THEN 23 END * + COUNT( * ) * 87 AS col2
----
1512
NULL

skipif mysql # not compatible
query II rowsort label-4028
SELECT 27 * - - 56, 54 * - CASE - MIN ( 31 ) WHEN - COALESCE ( + 68, - 16 + + SUM ( DISTINCT - 24 ) ) THEN 23 END * + COUNT ( * ) * 87 AS col2
----
1512
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4029
SELECT ALL + COALESCE ( - - ( + + 12 ), ( - - COUNT( DISTINCT - - 84 ) ), ( - 38 ) ) + 80 AS col1
----
92

skipif mysql # not compatible
query I rowsort label-4029
SELECT ALL + COALESCE ( - - ( + + 12 ), ( - - COUNT ( DISTINCT - - 84 ) ), ( - 38 ) ) + 80 AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4030
SELECT 10 * - COALESCE ( + + 68, SUM( ALL + 31 ) ) AS col2
----
-680

skipif mysql # not compatible
query I rowsort label-4030
SELECT 10 * - COALESCE ( + + 68, SUM ( ALL + 31 ) ) AS col2
----
-680

query I rowsort
SELECT ALL + 73 * - - 0 col0
----
0

query I rowsort
SELECT 17 - 99 AS col0
----
-82

query I rowsort
SELECT DISTINCT + ( + 92 ) * - ( - + 18 ) + 84 AS col1
----
1740

query I rowsort
SELECT ALL 27 - + - 44
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4035
SELECT DISTINCT + 56 * MIN( - 48 ) AS col1
----
-2688

skipif mysql # not compatible
query I rowsort label-4035
SELECT DISTINCT + 56 * MIN ( - 48 ) AS col1
----
-2688

query I rowsort
SELECT CASE + 84 WHEN - 53 + 49 THEN - + AVG ( ALL - 78 ) WHEN + 63 - + 8 THEN - 36 / + 91 END * + ( - 61 ) * + 78
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4037
SELECT ALL 56 DIV + ( - 39 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4037
SELECT ALL 56 / + ( - 39 ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4038
SELECT 85 + + 25 DIV + 59 AS col1
----
85

skipif mysql # not compatible
query I rowsort label-4038
SELECT 85 + + 25 / + 59 AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT 29 * + + ( - COUNT( * ) )
----
-29

skipif mysql # not compatible
query I rowsort label-4039
SELECT 29 * + + ( - COUNT ( * ) )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4040
SELECT COUNT( * ) * - + 93 - 49 col2
----
-142

skipif mysql # not compatible
query I rowsort label-4040
SELECT COUNT ( * ) * - + 93 - 49 col2
----
-142

onlyif mysql # DIV for integer division: 
query II rowsort label-4041
SELECT ALL + 30 DIV - + ( + 85 ) + 52 col2, 8
----
52
8

skipif mysql # not compatible
query II rowsort label-4041
SELECT ALL + 30 / - + ( + 85 ) + 52 col2, 8
----
52
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4042
SELECT - 99 + + CAST( 28 AS SIGNED ) col1
----
-71

skipif mysql # not compatible
query I rowsort label-4042
SELECT - 99 + + CAST ( 28 AS INTEGER ) col1
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4043
SELECT 75 - - - 48 AS col2, + ( - 99 ) * 85 * + - 12 + 42 + 82 * - - CAST( NULL AS SIGNED ) * + + 25 AS col1
----
27
NULL

skipif mysql # not compatible
query II rowsort label-4043
SELECT 75 - - - 48 AS col2, + ( - 99 ) * 85 * + - 12 + 42 + 82 * - - CAST ( NULL AS INTEGER ) * + + 25 AS col1
----
27
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4044
SELECT DISTINCT - + MAX( ALL - + 68 ) AS col1, COUNT( DISTINCT 81 ) AS col0
----
68
1

skipif mysql # not compatible
query II rowsort label-4044
SELECT DISTINCT - + MAX ( ALL - + 68 ) AS col1, COUNT ( DISTINCT 81 ) AS col0
----
68
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4045
SELECT + 48 + + 85 DIV + + 77
----
49

skipif mysql # not compatible
query I rowsort label-4045
SELECT + 48 + + 85 / + + 77
----
49

query I rowsort
SELECT ALL + 14 + + CASE - - 84 WHEN 82 + + - 37 THEN - 63 + + 55 + 2 WHEN - 9 THEN ( - ( - + 67 ) ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT COUNT( * ) * + - ( - - 10 ) + + ( + + COUNT( * ) )
----
-9

skipif mysql # not compatible
query I rowsort label-4047
SELECT COUNT ( * ) * + - ( - - 10 ) + + ( + + COUNT ( * ) )
----
-9

query I rowsort
SELECT DISTINCT 36 * + 17
----
612

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4049
SELECT - + 76 DIV 92 * 2 + - COUNT( ALL - - CAST( NULL AS SIGNED ) ) * - 73 * - 1 + - 70 + - 87 + + 76 DIV + COUNT( * ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-4049
SELECT - + 76 / 92 * 2 + - COUNT ( ALL - - CAST ( NULL AS INTEGER ) ) * - 73 * - 1 + - 70 + - 87 + + 76 / + COUNT ( * ) AS col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4050
SELECT DISTINCT - + CASE COUNT( * ) WHEN - 37 - + ( 35 ) * + 40 THEN + COUNT( * ) + + + 64 WHEN - + 39 THEN - - COUNT( * ) + 99 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4050
SELECT DISTINCT - + CASE COUNT ( * ) WHEN - 37 - + ( 35 ) * + 40 THEN + COUNT ( * ) + + + 64 WHEN - + 39 THEN - - COUNT ( * ) + 99 END
----
NULL

query I rowsort
SELECT ALL 54 + ( - 96 ) + 97
----
55

query I rowsort
SELECT DISTINCT + 79 + 81
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-4053
SELECT - ( + COUNT( * ) ) * + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4053
SELECT - ( + COUNT ( * ) ) * + COUNT ( * )
----
-1

query I rowsort
SELECT ALL - ( - 74 ) + + - 67 AS col2
----
7

query II rowsort
SELECT + 44, + 43 col2
----
44
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT ALL - COUNT( + 24 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4056
SELECT ALL - COUNT ( + 24 ) AS col1
----
-1

query I rowsort
SELECT ALL - ( + + 5 ) * + + 6
----
-30

query I rowsort
SELECT 27 + - - 97
----
124

query II rowsort
SELECT DISTINCT 81 + + + 48 + + + 89, 29 AS col2
----
218
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4060
SELECT DISTINCT 99 * - 99 * - - CASE - 10 WHEN + 33 * + 58 / + - ( - - CAST( - COUNT( + + 65 ) AS SIGNED ) ) + + ( + ( - - 95 ) ) - + 97 / + 25 THEN 48 END * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4060
SELECT DISTINCT 99 * - 99 * - - CASE - 10 WHEN + 33 * + 58 / + - ( - - CAST ( - COUNT ( + + 65 ) AS INTEGER ) ) + + ( + ( - - 95 ) ) - + 97 / + 25 THEN 48 END * - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT 10 * 32 col0
----
320

query I rowsort
SELECT 46 * 74
----
3404

query I rowsort
SELECT ALL - 42 * 10
----
-420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4064
SELECT DISTINCT + CAST( - 17 AS SIGNED ) * - MIN( DISTINCT + 32 )
----
544

skipif mysql # not compatible
query I rowsort label-4064
SELECT DISTINCT + CAST ( - 17 AS INTEGER ) * - MIN ( DISTINCT + 32 )
----
544

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT ( + COUNT( * ) ) - - 62 * + + 43 * + 26 + - - 30 + - MIN( ALL 99 )
----
69248

skipif mysql # not compatible
query I rowsort label-4065
SELECT ( + COUNT ( * ) ) - - 62 * + + 43 * + 26 + - - 30 + - MIN ( ALL 99 )
----
69248

query I rowsort
SELECT 26 + 81
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT + 48 * - MIN( ALL 30 ) + + 88
----
-1352

skipif mysql # not compatible
query I rowsort label-4067
SELECT + 48 * - MIN ( ALL 30 ) + + 88
----
-1352

query I rowsort
SELECT DISTINCT + 69 - 57
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4069
SELECT 45 * - 16 * - - 58 AS col1, + 49 DIV + - MAX( 91 ) + + 41
----
-41760
41

skipif mysql # not compatible
query II rowsort label-4069
SELECT 45 * - 16 * - - 58 AS col1, + 49 / + - MAX ( 91 ) + + 41
----
-41760
41

query I rowsort
SELECT 52 + + + 63
----
115

query I rowsort
SELECT 35 * - 9
----
-315

onlyif mysql # aggregate syntax: 
query I rowsort label-4072
SELECT MAX( DISTINCT + + 45 ) + + 29
----
74

skipif mysql # not compatible
query I rowsort label-4072
SELECT MAX ( DISTINCT + + 45 ) + + 29
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4073
SELECT + 91 AS col0, COUNT( * ) + - CAST( NULL AS SIGNED ) - ( + + 88 ) + + - 97 * 44 / - 19 AS col1
----
91
NULL

skipif mysql # not compatible
query II rowsort label-4073
SELECT + 91 AS col0, COUNT ( * ) + - CAST ( NULL AS INTEGER ) - ( + + 88 ) + + - 97 * 44 / - 19 AS col1
----
91
NULL

query II rowsort
SELECT ALL 19 AS col1, 45 * 95
----
19
4275

query I rowsort
SELECT DISTINCT + 1 * + 44 * + 49 * + 31 AS col0
----
66836

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT - COUNT( ALL + 53 ) * + 93 * - + 28
----
2604

skipif mysql # not compatible
query I rowsort label-4076
SELECT - COUNT ( ALL + 53 ) * + 93 * - + 28
----
2604

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT CASE + 27 WHEN 24 * + 92 THEN NULL WHEN + 13 + - 62 + 89 THEN NULL ELSE CASE + 10 WHEN 27 * 96 * - + 13 THEN NULL WHEN + + 28 - 73 THEN - 80 + 87 ELSE + + 55 END END + - 30 - + 60 + + + COUNT( * ) * - 67 AS col0
----
-102

skipif mysql # not compatible
query I rowsort label-4077
SELECT CASE + 27 WHEN 24 * + 92 THEN NULL WHEN + 13 + - 62 + 89 THEN NULL ELSE CASE + 10 WHEN 27 * 96 * - + 13 THEN NULL WHEN + + 28 - 73 THEN - 80 + 87 ELSE + + 55 END END + - 30 - + 60 + + + COUNT ( * ) * - 67 AS col0
----
-102

query I rowsort
SELECT ALL - 68 * - 86 * - 74
----
-432752

query I rowsort
SELECT - COALESCE ( - 37, + - 38, + 19 ) AS col1
----
37

query I rowsort
SELECT DISTINCT - 57 * + 78
----
-4446

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT ALL + MIN( DISTINCT + 58 ) + + 77
----
135

skipif mysql # not compatible
query I rowsort label-4081
SELECT ALL + MIN ( DISTINCT + 58 ) + + 77
----
135

onlyif mysql # aggregate syntax: 
query II rowsort label-4082
SELECT - - NULLIF ( - 61, + 98 * + SUM( 1 ) ) AS col0, 73 * 50 * + CASE 76 WHEN 57 THEN NULL WHEN 57 * - - COUNT( * ) + - 85 THEN 20 + + + 95 * 79 * + 19 ELSE COUNT( * ) * - 37 * - 73 * + 45 - - 9 * - ( 53 ) END AS col0
----
-61
441898200

skipif mysql # not compatible
query II rowsort label-4082
SELECT - - NULLIF ( - 61, + 98 * + SUM ( 1 ) ) AS col0, 73 * 50 * + CASE 76 WHEN 57 THEN NULL WHEN 57 * - - COUNT ( * ) + - 85 THEN 20 + + + 95 * 79 * + 19 ELSE COUNT ( * ) * - 37 * - 73 * + 45 - - 9 * - ( 53 ) END AS col0
----
-61
441898200

query I rowsort
SELECT ALL - 7 * - 39 AS col0
----
273

query I rowsort
SELECT DISTINCT + + ( 54 ) AS col1
----
54

query I rowsort
SELECT + NULLIF ( - 77, 99 * - 1 )
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4086
SELECT + - SUM( + 96 ) DIV 70 AS col0, ( - COUNT( * ) )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-4086
SELECT + - SUM ( + 96 ) / 70 AS col0, ( - COUNT ( * ) )
----
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT + NULLIF ( + + 76, - NULLIF ( + - 65, + - 86 * - 55 / - 19 + COUNT( - 10 ) + - 89 + - 55 - 44 + 61 + - 37 * - 46 * + 75 * 73 ) ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-4087
SELECT + NULLIF ( + + 76, - NULLIF ( + - 65, + - 86 * - 55 / - 19 + COUNT ( - 10 ) + - 89 + - 55 - 44 + 61 + - 37 * - 46 * + 75 * 73 ) ) AS col1
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4088
SELECT - 26 DIV + 76 * - 76 - - - COALESCE ( - 90, + - COUNT( DISTINCT + - 96 ) + 53 ) + 90 + 96 + + - 73 * - - 19 * - + 5 * - 70 + + 2 AS col2, + COUNT( * ) AS col1
----
-485172
1

skipif mysql # not compatible
query II rowsort label-4088
SELECT - 26 / + 76 * - 76 - - - COALESCE ( - 90, + - COUNT ( DISTINCT + - 96 ) + 53 ) + 90 + 96 + + - 73 * - - 19 * - + 5 * - 70 + + 2 AS col2, + COUNT ( * ) AS col1
----
-485172
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4089
SELECT + COUNT( ALL + 31 ) * + + COUNT( * ), 34 AS col2
----
1
34

skipif mysql # not compatible
query II rowsort label-4089
SELECT + COUNT ( ALL + 31 ) * + + COUNT ( * ), 34 AS col2
----
1
34

query I rowsort
SELECT ALL + 91 * + 48 AS col1
----
4368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4091
SELECT DISTINCT MAX( ALL - 1 ) * CAST( + ( - COUNT( * ) ) AS SIGNED ) + - 34 AS col0, CAST( NULL AS SIGNED ) AS col1
----
-33
NULL

skipif mysql # not compatible
query II rowsort label-4091
SELECT DISTINCT MAX ( ALL - 1 ) * CAST ( + ( - COUNT ( * ) ) AS INTEGER ) + - 34 AS col0, CAST ( NULL AS INTEGER ) AS col1
----
-33
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4092
SELECT + + MIN( - 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-4092
SELECT + + MIN ( - 72 )
----
-72

query I rowsort
SELECT 82 * + 30 - - + 79
----
2539

query I rowsort
SELECT + NULLIF ( - 69, 93 * 2 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT + COUNT( * ) - - 51 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-4095
SELECT + COUNT ( * ) - - 51 AS col0
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4096
SELECT DISTINCT + 69 AS col1, - 78 * + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
69
NULL

skipif mysql # not compatible
query II rowsort label-4096
SELECT DISTINCT + 69 AS col1, - 78 * + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
69
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4097
SELECT MIN( + - COALESCE ( + - 72, + - 21 * - - 76 ) ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-4097
SELECT MIN ( + - COALESCE ( + - 72, + - 21 * - - 76 ) ) AS col0
----
72

query II rowsort
SELECT 19 * + COALESCE ( - 50, + 61 + + + 76 ) + - ( + 22 ) AS col2, - 66 * - 55 AS col0
----
-972
3630

query I rowsort
SELECT + 4 * - - 76 AS col0
----
304

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT + NULLIF ( + MIN( + + 43 ), + 73 + - 64 ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-4100
SELECT + NULLIF ( + MIN ( + + 43 ), + 73 + - 64 ) AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT - 22 + - 54 + - 46 * + + MAX( - - 15 ) AS col1
----
-766

skipif mysql # not compatible
query I rowsort label-4101
SELECT - 22 + - 54 + - 46 * + + MAX ( - - 15 ) AS col1
----
-766

onlyif mysql # aggregate syntax: 
query II rowsort label-4102
SELECT + 68 * + + COUNT( * ) AS col0, + 54
----
68
54

skipif mysql # not compatible
query II rowsort label-4102
SELECT + 68 * + + COUNT ( * ) AS col0, + 54
----
68
54

query I rowsort
SELECT ALL - 11 * + 66 AS col1
----
-726

onlyif mysql # aggregate syntax: 
query I rowsort label-4104
SELECT DISTINCT MAX( - 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-4104
SELECT DISTINCT MAX ( - 73 )
----
-73

query I rowsort
SELECT - ( + ( 50 ) ) col1
----
-50

query I rowsort
SELECT - ( + ( + 82 ) )
----
-82

query I rowsort
SELECT ALL 27 * 7 * - - 84 AS col1
----
15876

onlyif mysql # DIV for integer division: 
query I rowsort label-4108
SELECT + 32 DIV - 70 * + 68
----
0

skipif mysql # not compatible
query I rowsort label-4108
SELECT + 32 / - 70 * + 68
----
0

query I rowsort
SELECT - 38 * + 77 AS col0
----
-2926

onlyif mysql # DIV for integer division: 
query I rowsort label-4110
SELECT ALL 44 * 97 DIV + 71 * 1 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-4110
SELECT ALL 44 * 97 / + 71 * 1 AS col0
----
60

query I rowsort
SELECT + 50 - + + ( 52 ) - + + 36 * - 79 - - ( - 50 )
----
2792

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4112
SELECT ALL + 48 * COUNT( * ) DIV + 11 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-4112
SELECT ALL + 48 * COUNT ( * ) / + 11 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT + NULLIF ( + 73, 16 * + 14 + - COUNT( * ) ) + - - 71 AS col1
----
144

skipif mysql # not compatible
query I rowsort label-4113
SELECT + NULLIF ( + 73, 16 * + 14 + - COUNT ( * ) ) + - - 71 AS col1
----
144

query I rowsort
SELECT + - 8 * - 53
----
424

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT - - COUNT( * ) * - 63 - + 30 + - ( - + 78 )
----
-15

skipif mysql # not compatible
query I rowsort label-4115
SELECT - - COUNT ( * ) * - 63 - + 30 + - ( - + 78 )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT - + ( - - 56 ) * - MAX( ALL - - 10 )
----
560

skipif mysql # not compatible
query I rowsort label-4116
SELECT - + ( - - 56 ) * - MAX ( ALL - - 10 )
----
560

query I rowsort
SELECT DISTINCT 68 + - + 5 AS col1
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-4118
SELECT DISTINCT - COUNT( * ) + - ( + 16 ) * - 34 AS col0, - MAX( DISTINCT 81 )
----
543
-81

skipif mysql # not compatible
query II rowsort label-4118
SELECT DISTINCT - COUNT ( * ) + - ( + 16 ) * - 34 AS col0, - MAX ( DISTINCT 81 )
----
543
-81

query I rowsort
SELECT - 17 - + + 90
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT ALL + + MAX( DISTINCT + 91 ) + + + COUNT( * ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-4120
SELECT ALL + + MAX ( DISTINCT + 91 ) + + + COUNT ( * ) AS col2
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-4121
SELECT ALL 98 col1, - MIN( DISTINCT - 66 ) / 84 + 29 + - CASE + 60 WHEN + 70 THEN + 81 + - - 61 END * CASE - + 15 WHEN + COUNT( * ) THEN 81 / ( - - ( - AVG ( + 9 ) ) ) + 69 END AS col2
----
98
NULL

skipif mysql # not compatible
query II rowsort label-4121
SELECT ALL 98 col1, - MIN ( DISTINCT - 66 ) / 84 + 29 + - CASE + 60 WHEN + 70 THEN + 81 + - - 61 END * CASE - + 15 WHEN + COUNT ( * ) THEN 81 / ( - - ( - AVG ( + 9 ) ) ) + 69 END AS col2
----
98
NULL

query I rowsort
SELECT - 30 + + 19 AS col0
----
-11

query II rowsort
SELECT - + 71 AS col1, - 32
----
-71
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4124
SELECT DISTINCT - CASE - CASE 72 WHEN + + COUNT( * ) - + COUNT( * ) - + - 68 THEN + 86 END WHEN + 59 THEN + 48 * 86 - CAST( NULL AS SIGNED ) - - COALESCE ( - 18, - COUNT( * ) ) + + 6 * - 43 WHEN + 66 THEN + + ( 54 ) + + 64 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4124
SELECT DISTINCT - CASE - CASE 72 WHEN + + COUNT ( * ) - + COUNT ( * ) - + - 68 THEN + 86 END WHEN + 59 THEN + 48 * 86 - CAST ( NULL AS INTEGER ) - - COALESCE ( - 18, - COUNT ( * ) ) + + 6 * - 43 WHEN + 66 THEN + + ( 54 ) + + 64 END
----
NULL

query I rowsort
SELECT ALL + + 20 + + 76 + - 5
----
91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4126
SELECT - 83 + + 28 + CASE - COALESCE ( - CAST( - 0 AS DECIMAL ), - 32, ( - COUNT( * ) ) ) WHEN - 86 THEN + 23 END * + 68 - - MAX( DISTINCT 71 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4126
SELECT - 83 + + 28 + CASE - COALESCE ( - CAST ( - 0 AS REAL ), - 32, ( - COUNT ( * ) ) ) WHEN - 86 THEN + 23 END * + 68 - - MAX ( DISTINCT 71 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT - COALESCE ( - COUNT( * ), - - NULLIF ( - + 22, + + 5 + 57 - - 91 ), + - 65 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4127
SELECT - COALESCE ( - COUNT ( * ), - - NULLIF ( - + 22, + + 5 + 57 - - 91 ), + - 65 ) AS col1
----
1

query I rowsort
SELECT - + 1 - 39 AS col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4129
SELECT ALL - + COUNT( * ) * MAX( - 51 ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-4129
SELECT ALL - + COUNT ( * ) * MAX ( - 51 ) AS col2
----
51

query I rowsort
SELECT DISTINCT - 62 * + + 34 col1
----
-2108

query II rowsort
SELECT - - 57 + + + 89 AS col2, 63 + 49 * + ( - - 51 ) * - 9
----
146
-22428

query I rowsort
SELECT - 46 + - - 13
----
-33

query I rowsort
SELECT DISTINCT + + NULLIF ( - ( + 32 ), 37 ) AS col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT 87 * 54 * - + 6 + - + 95 + - + COUNT( * ) AS col1
----
-28284

skipif mysql # not compatible
query I rowsort label-4134
SELECT 87 * 54 * - + 6 + - + 95 + - + COUNT ( * ) AS col1
----
-28284

query I rowsort
SELECT - 46 * 66 * + 34 AS col0
----
-103224

query I rowsort
SELECT + 52 * + + COALESCE ( - 88, - - ( - 16 ) * + + 45 + - 70, 47 ) * 98 col1
----
-448448

onlyif mysql # aggregate syntax: 
query II rowsort label-4137
SELECT ALL + MIN( - 26 ) AS col1, 75 AS col1
----
-26
75

skipif mysql # not compatible
query II rowsort label-4137
SELECT ALL + MIN ( - 26 ) AS col1, 75 AS col1
----
-26
75

query I rowsort
SELECT - 40 + 39 * + - 57 AS col0
----
-2263

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

skipif mysql # not compatible
query I rowsort label-4139
SELECT + MAX ( DISTINCT - 29 ) AS col2
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-4140
SELECT + COUNT( * ) DIV + COALESCE ( - COALESCE ( - 18, 7, 3 * - + 82 + - 42 ), - MAX( - 19 ), + CAST( - 79 AS SIGNED ) * + 43 * + COUNT( - - CAST( 18 AS DECIMAL ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-4140
SELECT + COUNT ( * ) / + COALESCE ( - COALESCE ( - 18, 7, 3 * - + 82 + - 42 ), - MAX ( - 19 ), + CAST ( - 79 AS INTEGER ) * + 43 * + COUNT ( - - CAST ( 18 AS REAL ) ) )
----
0

query I rowsort
SELECT ( COALESCE ( - 46, + 86 ) ) AS col0
----
-46

query II rowsort
SELECT ALL 4 * 51 AS col0, NULLIF ( 68, - 34 ) col1
----
204
68

query I rowsort
SELECT + 62 + + - 77 * + 57
----
-4327

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT + ( SUM( - 16 ) )
----
-16

skipif mysql # not compatible
query I rowsort label-4144
SELECT + ( SUM ( - 16 ) )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT - 77 * + 74 + + - COUNT( * )
----
-5699

skipif mysql # not compatible
query I rowsort label-4145
SELECT - 77 * + 74 + + - COUNT ( * )
----
-5699

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4146
SELECT NULLIF ( + 8, + COALESCE ( + 90, + CASE - 62 WHEN CASE + 88 WHEN - 56 * 34 - + - 72 THEN - CAST( 88 AS DECIMAL ) * - 2 / - - 22 WHEN + COUNT( * ) THEN NULL END THEN - 40 END ) )
----
8

skipif mysql # not compatible
query I rowsort label-4146
SELECT NULLIF ( + 8, + COALESCE ( + 90, + CASE - 62 WHEN CASE + 88 WHEN - 56 * 34 - + - 72 THEN - CAST ( 88 AS REAL ) * - 2 / - - 22 WHEN + COUNT ( * ) THEN NULL END THEN - 40 END ) )
----
8

query I rowsort
SELECT + 15 * + - 43
----
-645

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT COUNT( ALL + 61 )
----
1

skipif mysql # not compatible
query I rowsort label-4148
SELECT COUNT ( ALL + 61 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT DISTINCT 23 * + CASE + + 28 WHEN - ( - COUNT( * ) ) - + - 96 + + - 17 THEN 69 WHEN 41 + + 76 + 56 THEN NULL END + + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4149
SELECT DISTINCT 23 * + CASE + + 28 WHEN - ( - COUNT ( * ) ) - + - 96 + + - 17 THEN 69 WHEN 41 + + 76 + 56 THEN NULL END + + + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 60 * - ( ( - 10 ) ) + 41 AS col1
----
641

query I rowsort
SELECT ALL 31 + + ( - 41 ) * 2 - + 41 col0
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4152
SELECT + 1 + - ( - + CAST( - 94 AS SIGNED ) ) + 55 * + 53 * 40 * + 53
----
6179707

skipif mysql # not compatible
query I rowsort label-4152
SELECT + 1 + - ( - + CAST ( - 94 AS INTEGER ) ) + 55 * + 53 * 40 * + 53
----
6179707

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT DISTINCT - MIN( ALL ( + - 55 ) )
----
55

skipif mysql # not compatible
query I rowsort label-4153
SELECT DISTINCT - MIN ( ALL ( + - 55 ) )
----
55

query I rowsort
SELECT - ( + + 51 ) AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT COUNT( * ) * + - NULLIF ( - 15, 28 )
----
15

skipif mysql # not compatible
query I rowsort label-4155
SELECT COUNT ( * ) * + - NULLIF ( - 15, 28 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT - CASE 25 WHEN - - CASE - + ( 86 ) WHEN 26 THEN NULL WHEN + 54 * - + COUNT( * ) THEN NULL WHEN - ( 90 ) THEN - NULLIF ( - + 54, + 12 / + + 76 * + + 16 ) * - + COALESCE ( 22, ( - 60 ), - COALESCE ( + 67, 25 / + COALESCE ( + MAX( DISTINCT 17 ), ( - 46 ) * 75 + 78 ) + + 26, 74 ) ) WHEN + COUNT( * ) + + 47 THEN - 43 END * 59 THEN + ( - 41 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4156
SELECT - CASE 25 WHEN - - CASE - + ( 86 ) WHEN 26 THEN NULL WHEN + 54 * - + COUNT ( * ) THEN NULL WHEN - ( 90 ) THEN - NULLIF ( - + 54, + 12 / + + 76 * + + 16 ) * - + COALESCE ( 22, ( - 60 ), - COALESCE ( + 67, 25 / + COALESCE ( + MAX ( DISTINCT 17 ), ( - 46 ) * 75 + 78 ) + + 26, 74 ) ) WHEN + COUNT ( * ) + + 47 THEN - 43 END * 59 THEN + ( - 41 ) ELSE NULL END
----
NULL

query I rowsort
SELECT + 51 + ( - 26 ) AS col1
----
25

query I rowsort
SELECT ALL + 75 - + 83 * + + NULLIF ( + 58, 89 ) + + + 40
----
-4699

query II rowsort
SELECT ALL - 75, 10 AS col0
----
-75
10

onlyif mysql # DIV for integer division: 
query I rowsort label-4160
SELECT 19 DIV - - 10 - - + 0
----
1

skipif mysql # not compatible
query I rowsort label-4160
SELECT 19 / - - 10 - - + 0
----
1

query I rowsort
SELECT 46 * - 15 AS col2
----
-690

query I rowsort
SELECT 20 - 63 * - 29 AS col2
----
1847

onlyif mysql # aggregate syntax: 
query II rowsort label-4163
SELECT + 96 AS col2, + MIN( ALL - 87 ) col0
----
96
-87

skipif mysql # not compatible
query II rowsort label-4163
SELECT + 96 AS col2, + MIN ( ALL - 87 ) col0
----
96
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT ALL - ( CASE + COUNT( * ) WHEN 15 THEN NULL WHEN COUNT( * ) + 16 THEN 77 WHEN - + ( - COUNT( * ) ) THEN NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4164
SELECT ALL - ( CASE + COUNT ( * ) WHEN 15 THEN NULL WHEN COUNT ( * ) + 16 THEN 77 WHEN - + ( - COUNT ( * ) ) THEN NULL END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4165
SELECT DISTINCT - ( - 15 ) * - SUM( DISTINCT - 25 ) * COUNT( * ) * - 3, - COUNT( * ) AS col2
----
-1125
-1

skipif mysql # not compatible
query II rowsort label-4165
SELECT DISTINCT - ( - 15 ) * - SUM ( DISTINCT - 25 ) * COUNT ( * ) * - 3, - COUNT ( * ) AS col2
----
-1125
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4166
SELECT 30 + - 69 / - CAST( 32 AS SIGNED ) / + SUM( + ( + - 85 ) ) * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4166
SELECT 30 + - 69 / - CAST ( 32 AS INTEGER ) / + SUM ( + ( + - 85 ) ) * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4167
SELECT 36 * + - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4167
SELECT 36 * + - CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT DISTINCT + 10 * + 74 * 23
----
17020

query I rowsort
SELECT DISTINCT + 38 * + + 19 AS col0
----
722

query I rowsort
SELECT + 36 * + 22 - - 55 AS col1
----
847

query I rowsort
SELECT 61 * - 65
----
-3965

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT DISTINCT + ( + COUNT( * ) ) + 22 + 86 * 28
----
2431

skipif mysql # not compatible
query I rowsort label-4172
SELECT DISTINCT + ( + COUNT ( * ) ) + 22 + 86 * 28
----
2431

query I rowsort
SELECT ALL + 93 + - 36 + 13 - + 92 col1
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4174
SELECT 55 + + 37 + 31 + COUNT( * ) DIV ( - - COUNT( * ) ) AS col1
----
124

skipif mysql # not compatible
query I rowsort label-4174
SELECT 55 + + 37 + 31 + COUNT ( * ) / ( - - COUNT ( * ) ) AS col1
----
124

query I rowsort
SELECT 61 * 60
----
3660

query I rowsort
SELECT 96 + 83 + 95 + 80 AS col1
----
354

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4177
SELECT ALL MIN( 74 ) + + 81 * + 32 + CAST( NULL AS SIGNED ) * + + 37 * - ( + - CAST( NULL AS SIGNED ) ) - + ( 18 ) * 62
----
NULL

skipif mysql # not compatible
query I rowsort label-4177
SELECT ALL MIN ( 74 ) + + 81 * + 32 + CAST ( NULL AS INTEGER ) * + + 37 * - ( + - CAST ( NULL AS INTEGER ) ) - + ( 18 ) * 62
----
NULL

query I rowsort
SELECT ALL 50 + 19 AS col1
----
69

query II rowsort
SELECT - + 44 AS col1, + 84 * + 13 AS col1
----
-44
1092

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT + + 38 * + NULLIF ( + 46, - 68 + - 84 + - ( + - AVG ( ( + + 60 ) ) ) ) * - ( + 8 ) * + 30 * + 57 + - 96 * - 41 * 95 + - 43 + 32 + 48 * SUM( DISTINCT 72 ) + + + COALESCE ( 43, + 85 + + 5 ) AS col2
----
-23535232

skipif mysql # not compatible
query I rowsort label-4180
SELECT + + 38 * + NULLIF ( + 46, - 68 + - 84 + - ( + - AVG ( ( + + 60 ) ) ) ) * - ( + 8 ) * + 30 * + 57 + - 96 * - 41 * 95 + - 43 + 32 + 48 * SUM ( DISTINCT 72 ) + + + COALESCE ( 43, + 85 + + 5 ) AS col2
----
-23535232

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT DISTINCT - COUNT( + ( - 26 ) ) * + - ( + 21 ) * + 94 + 43
----
2017

skipif mysql # not compatible
query I rowsort label-4181
SELECT DISTINCT - COUNT ( + ( - 26 ) ) * + - ( + 21 ) * + 94 + 43
----
2017

onlyif mysql # DIV for integer division: 
query I rowsort label-4182
SELECT + 20 * + - 79 - - 37 DIV + 94 + + 58 + - + 88 - - 36 * - 58 * - 31
----
63118

skipif mysql # not compatible
query I rowsort label-4182
SELECT + 20 * + - 79 - - 37 / + 94 + + 58 + - + 88 - - 36 * - 58 * - 31
----
63118

onlyif mysql # aggregate syntax: 
query I rowsort label-4183
SELECT 54 + - 85 + - + 31 - 95 + + 32 * - COUNT( * ) * + - 72 * + COUNT( * ) col0
----
2147

skipif mysql # not compatible
query I rowsort label-4183
SELECT 54 + - 85 + - + 31 - 95 + + 32 * - COUNT ( * ) * + - 72 * + COUNT ( * ) col0
----
2147

query I rowsort
SELECT - 65 + 83
----
18

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4185
SELECT 47 + - + 55 DIV + CAST( + 70 AS SIGNED ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-4185
SELECT 47 + - + 55 / + CAST ( + 70 AS INTEGER ) AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT ALL + CASE + 55 WHEN + MIN( + - 75 ) THEN - 40 + - - 73 * ( - 18 ) / + COUNT( * ) * - COUNT( * ) * + 99 * 31 + 1 END * - + 47 * 64
----
NULL

skipif mysql # not compatible
query I rowsort label-4186
SELECT ALL + CASE + 55 WHEN + MIN ( + - 75 ) THEN - 40 + - - 73 * ( - 18 ) / + COUNT ( * ) * - COUNT ( * ) * + 99 * 31 + 1 END * - + 47 * 64
----
NULL

query I rowsort
SELECT DISTINCT - 26 - - 91
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4188
SELECT DISTINCT SUM( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4188
SELECT DISTINCT SUM ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT ALL + MAX( + 54 ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-4189
SELECT ALL + MAX ( + 54 ) AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT + 1 - 75 * - 75 + + - CASE + 80 WHEN - - COUNT( * ) THEN - 52 * 67 / - 95 * 45 WHEN + + 95 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4190
SELECT + 1 - 75 * - 75 + + - CASE + 80 WHEN - - COUNT ( * ) THEN - 52 * 67 / - 95 * 45 WHEN + + 95 THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - 6 * 96
----
-576

query II rowsort
SELECT ALL 17 AS col2, + 91 AS col2
----
17
91

query I rowsort
SELECT + 15 - ( - 37 ) AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT ALL SUM( DISTINCT - 67 )
----
-67

skipif mysql # not compatible
query I rowsort label-4194
SELECT ALL SUM ( DISTINCT - 67 )
----
-67

query I rowsort
SELECT ( + + 40 ) + - 98 + + - 97 AS col2
----
-155

query I rowsort
SELECT - NULLIF ( - + 22, + 39 )
----
22

query I rowsort
SELECT + 42 * + + ( + 10 ) * - 60
----
-25200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4198
SELECT - ( + - SUM( 89 ) ) DIV 92 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4198
SELECT - ( + - SUM ( 89 ) ) / 92 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT ALL COUNT( * ) * - 36 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-4199
SELECT ALL COUNT ( * ) * - 36 AS col1
----
-36

query I rowsort
SELECT 56 - + 47 AS col0
----
9

query I rowsort
SELECT ALL ( - 82 ) * - + 71
----
5822

onlyif mysql # aggregate syntax: 
query I rowsort label-4202
SELECT DISTINCT COUNT( * ) * + + 85 * - - 38 AS col0
----
3230

skipif mysql # not compatible
query I rowsort label-4202
SELECT DISTINCT COUNT ( * ) * + + 85 * - - 38 AS col0
----
3230

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT MIN( ( 96 ) ) col1
----
96

skipif mysql # not compatible
query I rowsort label-4203
SELECT MIN ( ( 96 ) ) col1
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4204
SELECT ALL MIN( DISTINCT 50 ) * - COUNT( * ) + + NULLIF ( - 64, - + COUNT( * ) ) * 31 - - - CAST( NULL AS SIGNED ) * - 0 + - - 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4204
SELECT ALL MIN ( DISTINCT 50 ) * - COUNT ( * ) + + NULLIF ( - 64, - + COUNT ( * ) ) * 31 - - - CAST ( NULL AS INTEGER ) * - 0 + - - 35 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT ALL - SUM( + 32 ) * + 22 + + 89 AS col2
----
-615

skipif mysql # not compatible
query I rowsort label-4205
SELECT ALL - SUM ( + 32 ) * + 22 + + 89 AS col2
----
-615

query I rowsort
SELECT 24 * + 64 * + 56 + - 28 AS col0
----
85988

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT NULLIF ( - + MIN( DISTINCT - - 10 ), + ( + 18 ) ) * - - 52 AS col0
----
-520

skipif mysql # not compatible
query I rowsort label-4207
SELECT NULLIF ( - + MIN ( DISTINCT - - 10 ), + ( + 18 ) ) * - - 52 AS col0
----
-520

query II rowsort
SELECT + 69 * 48 + ( - 26 ) col1, + 70 * 30
----
3286
2100

onlyif mysql # aggregate syntax: 
query I rowsort label-4209
SELECT + MAX( + + 79 )
----
79

skipif mysql # not compatible
query I rowsort label-4209
SELECT + MAX ( + + 79 )
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-4210
SELECT 74 + + 13 DIV - 8 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-4210
SELECT 74 + + 13 / - 8 AS col2
----
73

query I rowsort
SELECT 51 + + 18 + 18 * + - 32 + - 89 AS col1
----
-596

query I rowsort
SELECT ALL + 89 * + ( - - 80 ) AS col0
----
7120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4213
SELECT DISTINCT + 80 + 1 + - 36 + + 93 DIV - - ( - 15 ) + 71 * + + 87 * - - CAST( + + ( 78 ) AS SIGNED ) + + + COUNT( DISTINCT 75 ) * + + 30 AS col1, + COUNT( * ) col0
----
481875
1

skipif mysql # not compatible
query II rowsort label-4213
SELECT DISTINCT + 80 + 1 + - 36 + + 93 / - - ( - 15 ) + 71 * + + 87 * - - CAST ( + + ( 78 ) AS INTEGER ) + + + COUNT ( DISTINCT 75 ) * + + 30 AS col1, + COUNT ( * ) col0
----
481875
1

query II rowsort
SELECT DISTINCT 27 * + 25 AS col1, - 51
----
675
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT ALL - COUNT( * ) + + 74 - - 73 + + 21 * - + SUM( - 43 ) * + 1 AS col1
----
1049

skipif mysql # not compatible
query I rowsort label-4215
SELECT ALL - COUNT ( * ) + + 74 - - 73 + + 21 * - + SUM ( - 43 ) * + 1 AS col1
----
1049

query I rowsort
SELECT ALL + 89 * - 69 AS col0
----
-6141

query I rowsort
SELECT DISTINCT - 35 + - 94 AS col2
----
-129

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4218
SELECT DISTINCT + CAST( CAST( NULL AS DECIMAL ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4218
SELECT DISTINCT + CAST ( CAST ( NULL AS REAL ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4219
SELECT - + CAST( 33 AS SIGNED ) + COUNT( + + 0 ) - 39 AS col0, - COUNT( * ) * + + 56
----
-71
-56

skipif mysql # not compatible
query II rowsort label-4219
SELECT - + CAST ( 33 AS INTEGER ) + COUNT ( + + 0 ) - 39 AS col0, - COUNT ( * ) * + + 56
----
-71
-56

query I rowsort
SELECT ALL - - 89 + 56
----
145

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4221
SELECT - 97 + + 7, - CAST( NULL AS SIGNED ) AS col0
----
-90
NULL

skipif mysql # not compatible
query II rowsort label-4221
SELECT - 97 + + 7, - CAST ( NULL AS INTEGER ) AS col0
----
-90
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4222
SELECT - 50 + - - COALESCE ( - COUNT( * ), 74 * - 83 )
----
-51

skipif mysql # not compatible
query I rowsort label-4222
SELECT - 50 + - - COALESCE ( - COUNT ( * ), 74 * - 83 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT + 24 * ( - 15 ) * + 80 - - COUNT( 9 ) - - 5 AS col0
----
-28794

skipif mysql # not compatible
query I rowsort label-4223
SELECT + 24 * ( - 15 ) * + 80 - - COUNT ( 9 ) - - 5 AS col0
----
-28794

onlyif mysql # DIV for integer division: 
query I rowsort label-4224
SELECT ALL - + 26 DIV - 57 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4224
SELECT ALL - + 26 / - 57 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4225
SELECT DISTINCT - COUNT( 49 ) DIV + 20 * + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4225
SELECT DISTINCT - COUNT ( 49 ) / + 20 * + + COUNT ( * )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4226
SELECT - - CAST( NULL AS SIGNED ) + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-4226
SELECT - - CAST ( NULL AS INTEGER ) + 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4227
SELECT + - 78 + - 74 + + 42 * + COALESCE ( - ( - COUNT( * ) ), 45 - + 98 )
----
-110

skipif mysql # not compatible
query I rowsort label-4227
SELECT + - 78 + - 74 + + 42 * + COALESCE ( - ( - COUNT ( * ) ), 45 - + 98 )
----
-110

query I rowsort
SELECT + 49 + + - 6 AS col2
----
43

query I rowsort
SELECT DISTINCT + 37 * - 49 * + 85 * - + 61 AS col1
----
9400405

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4230
SELECT ALL 64 + MAX( - CAST( 64 AS SIGNED ) ) DIV 54
----
63

skipif mysql # not compatible
query I rowsort label-4230
SELECT ALL 64 + MAX ( - CAST ( 64 AS INTEGER ) ) / 54
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT - MIN( DISTINCT + 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-4231
SELECT - MIN ( DISTINCT + 51 )
----
-51

query I rowsort
SELECT DISTINCT 81 * - 16
----
-1296

query I rowsort
SELECT - 16 * + - 8 AS col2
----
128

query I rowsort
SELECT + 86 - 69 AS col2
----
17

query I rowsort
SELECT - 92 * - + 99 AS col0
----
9108

onlyif mysql # aggregate syntax: 
query I rowsort label-4236
SELECT + COUNT( * ) * - 39 + + + 92 * - SUM( ALL - 94 ) * - COUNT( * ) AS col1
----
-8687

skipif mysql # not compatible
query I rowsort label-4236
SELECT + COUNT ( * ) * - 39 + + + 92 * - SUM ( ALL - 94 ) * - COUNT ( * ) AS col1
----
-8687

onlyif mysql # aggregate syntax: 
query II rowsort label-4237
SELECT ALL + COUNT( * ) col2, COUNT( * ) col0
----
1
1

skipif mysql # not compatible
query II rowsort label-4237
SELECT ALL + COUNT ( * ) col2, COUNT ( * ) col0
----
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4238
SELECT ALL 71 * - COUNT( * ) * 38 + - SUM( + - 74 ), 41 * CAST( NULL AS SIGNED ) AS col2
----
-2624
NULL

skipif mysql # not compatible
query II rowsort label-4238
SELECT ALL 71 * - COUNT ( * ) * 38 + - SUM ( + - 74 ), 41 * CAST ( NULL AS INTEGER ) AS col2
----
-2624
NULL

query I rowsort
SELECT + 56 * + - 5 * 86 col2
----
-24080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4240
SELECT ALL - COUNT( * ) / + CAST( NULL AS SIGNED ) * + 88 AS col0, COUNT( * ) - 90
----
NULL
-89

skipif mysql # not compatible
query II rowsort label-4240
SELECT ALL - COUNT ( * ) / + CAST ( NULL AS INTEGER ) * + 88 AS col0, COUNT ( * ) - 90
----
NULL
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT ALL + CASE - 18 WHEN 72 THEN MIN( ALL - ( 1 ) ) * - + 7 - + - 37 + + 18 WHEN + + COUNT( * ) + 80 + - - 13 THEN 25 * - 42 WHEN - - ( + - 56 ) / - 58 + + ( - 10 ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4241
SELECT ALL + CASE - 18 WHEN 72 THEN MIN ( ALL - ( 1 ) ) * - + 7 - + - 37 + + 18 WHEN + + COUNT ( * ) + 80 + - - 13 THEN 25 * - 42 WHEN - - ( + - 56 ) / - 58 + + ( - 10 ) THEN NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 8 * - 74 * 45 - + 64 AS col2
----
-26704

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4243
SELECT + COALESCE ( + CAST( 37 AS SIGNED ), + - 55 ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-4243
SELECT + COALESCE ( + CAST ( 37 AS INTEGER ), + - 55 ) AS col2
----
37

query I rowsort
SELECT - COALESCE ( + - 17, + 10 )
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4245
SELECT + COALESCE ( CAST( - ( + CAST( NULL AS SIGNED ) ) AS SIGNED ), CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ), - SUM( 97 ) + + 79 ) + - - 13 + + 52 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-4245
SELECT + COALESCE ( CAST ( - ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ), CAST ( + CAST ( NULL AS REAL ) AS INTEGER ), - SUM ( 97 ) + + 79 ) + - - 13 + + 52 AS col0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4246
SELECT ALL - + CAST( 88 AS SIGNED ) * CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4246
SELECT ALL - + CAST ( 88 AS INTEGER ) * CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4247
SELECT - + 73 * - + 1 * - - 73 + + COUNT( * ) AS col0
----
5330

skipif mysql # not compatible
query I rowsort label-4247
SELECT - + 73 * - + 1 * - - 73 + + COUNT ( * ) AS col0
----
5330

query II rowsort
SELECT ALL + 63, - 93 AS col0
----
63
-93

query I rowsort
SELECT + 27 + - 95
----
-68

query I rowsort
SELECT - 97 * + 42 AS col2
----
-4074

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT + - 96 + - - COUNT( * ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-4251
SELECT + - 96 + - - COUNT ( * ) AS col0
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-4252
SELECT DISTINCT - COUNT( * ) AS col0, 78
----
-1
78

skipif mysql # not compatible
query II rowsort label-4252
SELECT DISTINCT - COUNT ( * ) AS col0, 78
----
-1
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4253
SELECT - + COALESCE ( + 27, + 98 * - 11, 39 ) + + + COALESCE ( - 61, COUNT( * ) - + - 54 + - 36 DIV - 69, + ( - + 14 ) ) + - ( 20 ) AS col1, + 55 col0
----
-108
55

skipif mysql # not compatible
query II rowsort label-4253
SELECT - + COALESCE ( + 27, + 98 * - 11, 39 ) + + + COALESCE ( - 61, COUNT ( * ) - + - 54 + - 36 / - 69, + ( - + 14 ) ) + - ( 20 ) AS col1, + 55 col0
----
-108
55

onlyif mysql # DIV for integer division: 
query I rowsort label-4254
SELECT - 24 DIV - + 36
----
0

skipif mysql # not compatible
query I rowsort label-4254
SELECT - 24 / - + 36
----
0

query I rowsort
SELECT - + ( - + ( + 85 ) ) + - 74 AS col2
----
11

query I rowsort
SELECT DISTINCT - 2 * 96 * 45 * + 43
----
-371520

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4257
SELECT ALL - AVG ( - 57 ) + + 95 - - - NULLIF ( 25, 40 + + 29 ) * + - ( CAST( NULL AS SIGNED ) ) * - + 25 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4257
SELECT ALL - AVG ( - 57 ) + + 95 - - - NULLIF ( 25, 40 + + 29 ) * + - ( CAST ( NULL AS INTEGER ) ) * - + 25 + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4258
SELECT - 70 - + + 64 - + COUNT( * )
----
-135

skipif mysql # not compatible
query I rowsort label-4258
SELECT - 70 - + + 64 - + COUNT ( * )
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT DISTINCT 82 * - + COUNT( * ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-4259
SELECT DISTINCT 82 * - + COUNT ( * ) AS col0
----
-82

query I rowsort
SELECT ALL 40 + + + 31
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-4261
SELECT - 16 DIV 78 col0
----
0

skipif mysql # not compatible
query I rowsort label-4261
SELECT - 16 / 78 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT - COUNT( * ) + - + 66
----
-67

skipif mysql # not compatible
query I rowsort label-4262
SELECT - COUNT ( * ) + - + 66
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT DISTINCT + 6 * - MAX( - 23 ) AS col0
----
138

skipif mysql # not compatible
query I rowsort label-4263
SELECT DISTINCT + 6 * - MAX ( - 23 ) AS col0
----
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4264
SELECT DISTINCT CAST( 85 AS SIGNED )
----
85

skipif mysql # not compatible
query I rowsort label-4264
SELECT DISTINCT CAST ( 85 AS INTEGER )
----
85

query II rowsort
SELECT - 10 + - - 47 * 41 * - 26 AS col2, - 63
----
-50112
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4266
SELECT ALL + 34 + - + 94 * + - ( - 73 ) DIV ( + ( - COUNT( * ) ) )
----
6896

skipif mysql # not compatible
query I rowsort label-4266
SELECT ALL + 34 + - + 94 * + - ( - 73 ) / ( + ( - COUNT ( * ) ) )
----
6896

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4267
SELECT + CASE - 21 WHEN - CAST( NULL AS SIGNED ) THEN - 61 END - + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-4267
SELECT + CASE - 21 WHEN - CAST ( NULL AS INTEGER ) THEN - 61 END - + 46
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4268
SELECT + COALESCE ( 95, - 47 + ( - + 82 ) + - + COUNT( ALL - 61 ), - 15 * 97, + 11 * - COUNT( * ) DIV + 62 + - - COUNT( * ) * - - COUNT( * ) * + 93 )
----
95

skipif mysql # not compatible
query I rowsort label-4268
SELECT + COALESCE ( 95, - 47 + ( - + 82 ) + - + COUNT ( ALL - 61 ), - 15 * 97, + 11 * - COUNT ( * ) / + 62 + - - COUNT ( * ) * - - COUNT ( * ) * + 93 )
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-4269
SELECT ALL + 6 AS col2, + 41 * + NULLIF ( - 73, - COUNT( * ) ) AS col1
----
6
-2993

skipif mysql # not compatible
query II rowsort label-4269
SELECT ALL + 6 AS col2, + 41 * + NULLIF ( - 73, - COUNT ( * ) ) AS col1
----
6
-2993

onlyif mysql # DIV for integer division: 
query II rowsort label-4270
SELECT ALL - 51 AS col1, 62 DIV + + 97 + 86
----
-51
86

skipif mysql # not compatible
query II rowsort label-4270
SELECT ALL - 51 AS col1, 62 / + + 97 + 86
----
-51
86

query I rowsort
SELECT ALL 27 * 75 * - 85 AS col0
----
-172125

onlyif mysql # DIV for integer division: 
query I rowsort label-4272
SELECT 61 * ( - 48 ) DIV - 79 + + - 68 AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-4272
SELECT 61 * ( - 48 ) / - 79 + + - 68 AS col2
----
-31

query II rowsort
SELECT 69, 25 AS col0
----
69
25

onlyif mysql # DIV for integer division: 
query I rowsort label-4274
SELECT + 23 DIV - 1 + + 86 col1
----
63

skipif mysql # not compatible
query I rowsort label-4274
SELECT + 23 / - 1 + + 86 col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT COUNT( * ) * + MAX( DISTINCT - - 34 )
----
34

skipif mysql # not compatible
query I rowsort label-4275
SELECT COUNT ( * ) * + MAX ( DISTINCT - - 34 )
----
34

query I rowsort
SELECT + 18 + + + 95
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-4277
SELECT + COUNT( DISTINCT 30 ) + 38 + 74 * + COALESCE ( + 25, + 12 - - 50 ) + + COUNT( * ) + + COUNT( * ) * - - 32 * - 65 + 91 AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-4277
SELECT + COUNT ( DISTINCT 30 ) + 38 + 74 * + COALESCE ( + 25, + 12 - - 50 ) + + COUNT ( * ) + + COUNT ( * ) * - - 32 * - 65 + 91 AS col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT DISTINCT - + MIN( + 30 ) * - 7 + + COUNT( * ) col2
----
211

skipif mysql # not compatible
query I rowsort label-4278
SELECT DISTINCT - + MIN ( + 30 ) * - 7 + + COUNT ( * ) col2
----
211

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4279
SELECT - 45 DIV 18 * - + COUNT( * ) * 4
----
8

skipif mysql # not compatible
query I rowsort label-4279
SELECT - 45 / 18 * - + COUNT ( * ) * 4
----
8

query II rowsort
SELECT ALL 15 * - - 47 AS col1, 63 - - + 7 col0
----
705
70

query I rowsort
SELECT DISTINCT + 39 * + - 92 + - + 19 col0
----
-3607

query I rowsort
SELECT 45 * - 99 + + 11
----
-4444

onlyif mysql # aggregate syntax: 
query II rowsort label-4283
SELECT ALL - 34, COUNT( * ) + 47 AS col0
----
-34
48

skipif mysql # not compatible
query II rowsort label-4283
SELECT ALL - 34, COUNT ( * ) + 47 AS col0
----
-34
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4284
SELECT - COUNT( * ) DIV 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4284
SELECT - COUNT ( * ) / 78 AS col1
----
0

query I rowsort
SELECT ALL - 56 + + 2 + + NULLIF ( 47, - 34 - + + 92 * - 47 ) - 15 + - 98 + - 96 + + + 26 + + 24 * 93 + 98 AS col2
----
2140

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT + COUNT( * ) + - 53 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-4286
SELECT + COUNT ( * ) + - 53 AS col0
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4287
SELECT + 50 * - + 75 + + + ( - ( CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4287
SELECT + 50 * - + 75 + + + ( - ( CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4288
SELECT ALL 3 col1, 0 + - - COALESCE ( 19, 95 + + + 5 + - 98 DIV COUNT( * ) DIV - + CAST( NULL AS SIGNED ) DIV - 3, + 31 ) + 88 * 49 * - + 42 AS col1
----
3
-181085

skipif mysql # not compatible
query II rowsort label-4288
SELECT ALL 3 col1, 0 + - - COALESCE ( 19, 95 + + + 5 + - 98 / COUNT ( * ) / - + CAST ( NULL AS INTEGER ) / - 3, + 31 ) + 88 * 49 * - + 42 AS col1
----
3
-181085

query I rowsort
SELECT + 61 * - 57 AS col2
----
-3477

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT DISTINCT - + 29 + - COUNT( DISTINCT + 61 ) * - + 40 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-4290
SELECT DISTINCT - + 29 + - COUNT ( DISTINCT + 61 ) * - + 40 AS col0
----
11

query I rowsort
SELECT DISTINCT - 62 + ( - + 49 )
----
-111

query I rowsort
SELECT ALL - - 79 + - + COALESCE ( + 40, 72 )
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-4293
SELECT COUNT( - 82 ) + + - 46 + + - COALESCE ( - 85, + 1 - - 91, + - 0 ) * + COUNT( * ) AS col1, + 50 AS col0
----
40
50

skipif mysql # not compatible
query II rowsort label-4293
SELECT COUNT ( - 82 ) + + - 46 + + - COALESCE ( - 85, + 1 - - 91, + - 0 ) * + COUNT ( * ) AS col1, + 50 AS col0
----
40
50

onlyif mysql # aggregate syntax: 
query II rowsort label-4294
SELECT ALL COUNT( DISTINCT - - 4 ) + - COALESCE ( - CASE - - 52 WHEN - + 45 + - - 54 THEN - 29 * - 90 * + 80 * - + 2 ELSE NULL END, + + 11 ) AS col0, + 69
----
-10
69

skipif mysql # not compatible
query II rowsort label-4294
SELECT ALL COUNT ( DISTINCT - - 4 ) + - COALESCE ( - CASE - - 52 WHEN - + 45 + - - 54 THEN - 29 * - 90 * + 80 * - + 2 ELSE NULL END, + + 11 ) AS col0, + 69
----
-10
69

query I rowsort
SELECT ALL - 65 + + + 78 + - 7 * 36 * ( - 31 )
----
7825

onlyif mysql # aggregate syntax: 
query II rowsort label-4296
SELECT 71 * + COUNT( * ) AS col1, - COUNT( * )
----
71
-1

skipif mysql # not compatible
query II rowsort label-4296
SELECT 71 * + COUNT ( * ) AS col1, - COUNT ( * )
----
71
-1

query I rowsort
SELECT DISTINCT + 48 - - 71 * - 44 AS col1
----
-3076

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT ALL - SUM( ALL 39 ) * + 11
----
-429

skipif mysql # not compatible
query I rowsort label-4298
SELECT ALL - SUM ( ALL 39 ) * + 11
----
-429

onlyif mysql # aggregate syntax: 
query I rowsort label-4299
SELECT ALL + 3 * - COUNT( * ) * - - 74 * - - 17 AS col2
----
-3774

skipif mysql # not compatible
query I rowsort label-4299
SELECT ALL + 3 * - COUNT ( * ) * - - 74 * - - 17 AS col2
----
-3774

onlyif mysql # DIV for integer division: 
query I rowsort label-4300
SELECT 90 DIV 22
----
4

skipif mysql # not compatible
query I rowsort label-4300
SELECT 90 / 22
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT ALL + 30 - COUNT( * ) + + 77 * + 53 + + COUNT( - NULLIF ( COALESCE ( - 66, 74, - 72 ), + 1 + 56 ) ) + 10 AS col0
----
4121

skipif mysql # not compatible
query I rowsort label-4301
SELECT ALL + 30 - COUNT ( * ) + + 77 * + 53 + + COUNT ( - NULLIF ( COALESCE ( - 66, 74, - 72 ), + 1 + 56 ) ) + 10 AS col0
----
4121

query II rowsort
SELECT 61 * - 19, + 30 AS col0
----
-1159
30

query I rowsort
SELECT 96 * + - 53 * + - 58
----
295104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4304
SELECT 70 * - 41 / - CASE - + COALESCE ( 68, - 74 - + - 54 ) WHEN - 89 THEN + - 26 WHEN - 97 + - 64 + + COUNT( * ) + CAST( NULL AS DECIMAL ) + - - 39 THEN - 77 * + + 97 + - ( - 7 ) WHEN - MAX( DISTINCT + CAST( NULL AS SIGNED ) ) + + + CAST( NULL AS SIGNED ) + - 28 / - COUNT( * ) * - + 12 * 92 THEN NULL END / + 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4304
SELECT 70 * - 41 / - CASE - + COALESCE ( 68, - 74 - + - 54 ) WHEN - 89 THEN + - 26 WHEN - 97 + - 64 + + COUNT ( * ) + CAST ( NULL AS REAL ) + - - 39 THEN - 77 * + + 97 + - ( - 7 ) WHEN - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) + + + CAST ( NULL AS INTEGER ) + - 28 / - COUNT ( * ) * - + 12 * 92 THEN NULL END / + 10 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4305
SELECT ALL - 58 * + CAST( NULL AS SIGNED ) AS col2, + 45
----
NULL
45

skipif mysql # not compatible
query II rowsort label-4305
SELECT ALL - 58 * + CAST ( NULL AS INTEGER ) AS col2, + 45
----
NULL
45

query II rowsort
SELECT 89 + + - 10 AS col1, ( 11 )
----
79
11

query I rowsort
SELECT - 16 * 29 * + 90
----
-41760

onlyif mysql # aggregate syntax: 
query I rowsort label-4308
SELECT ALL + 46 * - MIN( + 58 ) + - + 12 AS col1
----
-2680

skipif mysql # not compatible
query I rowsort label-4308
SELECT ALL + 46 * - MIN ( + 58 ) + - + 12 AS col1
----
-2680

onlyif mysql # aggregate syntax: 
query I rowsort label-4309
SELECT + 52 * - 68 * - 40 * + COUNT( * ) AS col2
----
141440

skipif mysql # not compatible
query I rowsort label-4309
SELECT + 52 * - 68 * - 40 * + COUNT ( * ) AS col2
----
141440

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT MIN( ALL + 16 ) - + 83
----
-67

skipif mysql # not compatible
query I rowsort label-4310
SELECT MIN ( ALL + 16 ) - + 83
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4311
SELECT + CASE COUNT( * ) WHEN - 30 + AVG ( - 81 ) THEN - COUNT( * ) + + 13 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4311
SELECT + CASE COUNT ( * ) WHEN - 30 + AVG ( - 81 ) THEN - COUNT ( * ) + + 13 END AS col2
----
NULL

query I rowsort
SELECT - 18 * - - 46 + + 39
----
-789

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4313
SELECT 21 * + 81 + 77 + - - 56 * - CAST( - 44 AS SIGNED )
----
4242

skipif mysql # not compatible
query I rowsort label-4313
SELECT 21 * + 81 + 77 + - - 56 * - CAST ( - 44 AS INTEGER )
----
4242

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4314
SELECT 16 DIV CAST( + 64 AS SIGNED ) * - - 65
----
0

skipif mysql # not compatible
query I rowsort label-4314
SELECT 16 / CAST ( + 64 AS INTEGER ) * - - 65
----
0

query I rowsort
SELECT ALL + + 23 + + + 49
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT ALL + NULLIF ( + 3, + 11 * + COUNT( * ) + 50 + + 19 * + 92 * + 58 * - 45 * + 71 ) + - + 34 * - 79 AS col2
----
2689

skipif mysql # not compatible
query I rowsort label-4316
SELECT ALL + NULLIF ( + 3, + 11 * + COUNT ( * ) + 50 + + 19 * + 92 * + 58 * - 45 * + 71 ) + - + 34 * - 79 AS col2
----
2689

query I rowsort
SELECT DISTINCT + 33 * 91 + - - 38 * + ( 79 ) * + + ( 78 )
----
237159

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT ALL - 69 + - 69 + + COUNT( * ) * - - COUNT( * ) col2
----
-137

skipif mysql # not compatible
query I rowsort label-4318
SELECT ALL - 69 + - 69 + + COUNT ( * ) * - - COUNT ( * ) col2
----
-137

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4319
SELECT + 82 DIV - 8, - 85 + + COUNT( * ) AS col1
----
-10
-84

skipif mysql # not compatible
query II rowsort label-4319
SELECT + 82 / - 8, - 85 + + COUNT ( * ) AS col1
----
-10
-84

query I rowsort
SELECT 36 + + ( - 0 ) - - 93 AS col0
----
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4321
SELECT COALESCE ( - 54, + CAST( - - 45 AS SIGNED ) - + ( - ( - 25 ) ) DIV 90 * - ( + + 90 ) + + COUNT( 63 ) ) * + 91
----
-4914

skipif mysql # not compatible
query I rowsort label-4321
SELECT COALESCE ( - 54, + CAST ( - - 45 AS INTEGER ) - + ( - ( - 25 ) ) / 90 * - ( + + 90 ) + + COUNT ( 63 ) ) * + 91
----
-4914

onlyif mysql # DIV for integer division: 
query II rowsort label-4322
SELECT - 43 AS col2, - 83 DIV - 73 + - 80 AS col2
----
-43
-79

skipif mysql # not compatible
query II rowsort label-4322
SELECT - 43 AS col2, - 83 / - 73 + - 80 AS col2
----
-43
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4323
SELECT COUNT( + - 7 ) + + 62 DIV COUNT( * ), COUNT( * ) col2
----
63
1

skipif mysql # not compatible
query II rowsort label-4323
SELECT COUNT ( + - 7 ) + + 62 / COUNT ( * ), COUNT ( * ) col2
----
63
1

query II rowsort
SELECT ALL 47, 0 col0
----
47
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4325
SELECT - COALESCE ( - 43, + + COUNT( DISTINCT + 93 ) * + 46 - - CAST( NULL AS SIGNED ) + + + COUNT( * ) * + 30 * 24 + - 87 * CASE + + 89 WHEN - - 26 THEN NULL ELSE - SUM( - 14 ) END * + + 88 DIV - - 53 + + 2 DIV - - 71 - MIN( ALL + 81 ) ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-4325
SELECT - COALESCE ( - 43, + + COUNT ( DISTINCT + 93 ) * + 46 - - CAST ( NULL AS INTEGER ) + + + COUNT ( * ) * + 30 * 24 + - 87 * CASE + + 89 WHEN - - 26 THEN NULL ELSE - SUM ( - 14 ) END * + + 88 / - - 53 + + 2 / - - 71 - MIN ( ALL + 81 ) ) AS col0
----
43

query II rowsort
SELECT ALL 63 * + - 58 * 43, + 8 AS col0
----
-157122
8

onlyif mysql # aggregate syntax: 
query II rowsort label-4327
SELECT ALL COUNT( * ) AS col1, + 76
----
1
76

skipif mysql # not compatible
query II rowsort label-4327
SELECT ALL COUNT ( * ) AS col1, + 76
----
1
76

query II rowsort
SELECT DISTINCT 15, 6 AS col2
----
15
6

query I rowsort
SELECT + COALESCE ( - + 62, 78 + - 48 ) + - 51
----
-113

query I rowsort
SELECT - 27 * - + 62
----
1674

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT - 85 + - + COUNT( * ) col2
----
-86

skipif mysql # not compatible
query I rowsort label-4331
SELECT - 85 + - + COUNT ( * ) col2
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-4332
SELECT ALL COUNT( * ), + CASE + AVG ( + 76 ) WHEN 69 + + 45 / 83 THEN 15 + + ( + 95 ) + - 85 / - - 62 WHEN + + 21 THEN NULL WHEN MIN( ALL NULLIF ( - + 93, + + 10 * - 80 ) ) * + 50 THEN + + NULLIF ( - - 3, 42 ) + + - 48 ELSE 45 END AS col1
----
1
45

skipif mysql # not compatible
query II rowsort label-4332
SELECT ALL COUNT ( * ), + CASE + AVG ( + 76 ) WHEN 69 + + 45 / 83 THEN 15 + + ( + 95 ) + - 85 / - - 62 WHEN + + 21 THEN NULL WHEN MIN ( ALL NULLIF ( - + 93, + + 10 * - 80 ) ) * + 50 THEN + + NULLIF ( - - 3, 42 ) + + - 48 ELSE 45 END AS col1
----
1
45

query I rowsort
SELECT + 97 + 17 AS col2
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-4334
SELECT + ( + 92 ) + MIN( DISTINCT 96 ) + + + COUNT( * ) + 98 + - COUNT( * )
----
286

skipif mysql # not compatible
query I rowsort label-4334
SELECT + ( + 92 ) + MIN ( DISTINCT 96 ) + + + COUNT ( * ) + 98 + - COUNT ( * )
----
286

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4335
SELECT - CAST( - ( - - 91 ) AS SIGNED ) * + 57 + 72 + + + 3 * ( + COUNT( * ) ) + + 56 AS col1
----
5318

skipif mysql # not compatible
query I rowsort label-4335
SELECT - CAST ( - ( - - 91 ) AS INTEGER ) * + 57 + 72 + + + 3 * ( + COUNT ( * ) ) + + 56 AS col1
----
5318

query I rowsort
SELECT - 67 * + + 77 AS col0
----
-5159

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT - + 86 + - + 84 + - + 41 + - + MAX( 72 ) * 18 * COUNT( * ) AS col0
----
-1507

skipif mysql # not compatible
query I rowsort label-4337
SELECT - + 86 + - + 84 + - + 41 + - + MAX ( 72 ) * 18 * COUNT ( * ) AS col0
----
-1507

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4338
SELECT - 36 * + + 53 + - 94 - + 87 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4338
SELECT - 36 * + + 53 + - 94 - + 87 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + + 25 * + 43 AS col0
----
1075

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT - COUNT( * ) + 87 + + ( + + 24 )
----
110

skipif mysql # not compatible
query I rowsort label-4340
SELECT - COUNT ( * ) + 87 + + ( + + 24 )
----
110

onlyif mysql # aggregate syntax: 
query II rowsort label-4341
SELECT + - ( + COUNT( * ) ) * + + 97 AS col0, + 49 + ( + 16 ) col0
----
-97
65

skipif mysql # not compatible
query II rowsort label-4341
SELECT + - ( + COUNT ( * ) ) * + + 97 AS col0, + 49 + ( + 16 ) col0
----
-97
65

query II rowsort
SELECT + - 84, 50 + - 60 AS col2
----
-84
-10

query I rowsort
SELECT ALL - 37 * + 60 * + - 92 - + 3 * 83 + + 30 col1
----
204021

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4344
SELECT ALL ( - 85 ) * - + 45 + - - ( - 29 ) + 37 AS col0, + 48 DIV - NULLIF ( - 59, COALESCE ( + + COUNT( * ), - 88 + - 37, + 79 + 47 + - - 55 * - 34 + + ( + - 16 ) ) * 31 )
----
3833
0

skipif mysql # not compatible
query II rowsort label-4344
SELECT ALL ( - 85 ) * - + 45 + - - ( - 29 ) + 37 AS col0, + 48 / - NULLIF ( - 59, COALESCE ( + + COUNT ( * ), - 88 + - 37, + 79 + 47 + - - 55 * - 34 + + ( + - 16 ) ) * 31 )
----
3833
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4345
SELECT DISTINCT + CASE COUNT( * ) WHEN ( 15 ) + - 72 THEN NULL WHEN + 73 THEN 28 END * + 97 + - - 19 AS col2, ( + - COUNT( * ) )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-4345
SELECT DISTINCT + CASE COUNT ( * ) WHEN ( 15 ) + - 72 THEN NULL WHEN + 73 THEN 28 END * + 97 + - - 19 AS col2, ( + - COUNT ( * ) )
----
NULL
-1

query I rowsort
SELECT + + 35 * + 90 AS col2
----
3150

query I rowsort
SELECT ALL - 79 * 92 + - + 81 AS col1
----
-7349

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT - 19 * + MAX( DISTINCT + + 98 )
----
-1862

skipif mysql # not compatible
query I rowsort label-4348
SELECT - 19 * + MAX ( DISTINCT + + 98 )
----
-1862

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4349
SELECT DISTINCT + COUNT( * ) * + CAST( NULL AS SIGNED ) * - CAST( COALESCE ( - + 53, COUNT( * ) - - 53, - 33 * + + COUNT( 98 ) ) AS DECIMAL ) - - + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-4349
SELECT DISTINCT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * - CAST ( COALESCE ( - + 53, COUNT ( * ) - - 53, - 33 * + + COUNT ( 98 ) ) AS REAL ) - - + 36
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4350
SELECT DISTINCT COUNT( * ) * CASE - 86 WHEN - CAST( NULL AS SIGNED ) THEN + COUNT( * ) END * + COUNT( * ) + - 0 + 4 * - - CAST( + 55 AS SIGNED ) + - - MIN( ALL + 64 ) + - + 56 * + SUM( - 14 ) - - 67 / 29
----
NULL

skipif mysql # not compatible
query I rowsort label-4350
SELECT DISTINCT COUNT ( * ) * CASE - 86 WHEN - CAST ( NULL AS INTEGER ) THEN + COUNT ( * ) END * + COUNT ( * ) + - 0 + 4 * - - CAST ( + 55 AS INTEGER ) + - - MIN ( ALL + 64 ) + - + 56 * + SUM ( - 14 ) - - 67 / 29
----
NULL

query I rowsort
SELECT DISTINCT + 48 - 2 AS col2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4352
SELECT + CAST( NULL AS SIGNED ) * - 88 * + - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-4352
SELECT + CAST ( NULL AS INTEGER ) * - 88 * + - 0
----
NULL

query I rowsort
SELECT ALL - 30 * - 21 * + - 65 AS col2
----
-40950

query I rowsort
SELECT ALL 22 * + 24
----
528

onlyif mysql # aggregate syntax: 
query II rowsort label-4355
SELECT - COUNT( * ) * 64 AS col1, - COUNT( * )
----
-64
-1

skipif mysql # not compatible
query II rowsort label-4355
SELECT - COUNT ( * ) * 64 AS col1, - COUNT ( * )
----
-64
-1

query I rowsort
SELECT - 4 * + ( + - 44 ) AS col2
----
176

query I rowsort
SELECT + 10 * 87 AS col0
----
870

query I rowsort
SELECT + 21 - + 11
----
10

onlyif mysql # DIV for integer division: 
query II rowsort label-4359
SELECT + 27 DIV 54 AS col2, - 29 * 88 AS col0
----
0
-2552

skipif mysql # not compatible
query II rowsort label-4359
SELECT + 27 / 54 AS col2, - 29 * 88 AS col0
----
0
-2552

onlyif mysql # aggregate syntax: 
query I rowsort label-4360
SELECT - ( + COUNT( + 5 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4360
SELECT - ( + COUNT ( + 5 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4361
SELECT + CAST( + 91 AS SIGNED ) * + SUM( 27 ) + 26 + 5 AS col2
----
2488

skipif mysql # not compatible
query I rowsort label-4361
SELECT + CAST ( + 91 AS INTEGER ) * + SUM ( 27 ) + 26 + 5 AS col2
----
2488

onlyif mysql # aggregate syntax: 
query II rowsort label-4362
SELECT ALL - COUNT( * ) + 22 AS col1, + 20 + + COUNT( * ) * - + 79 AS col0
----
21
-59

skipif mysql # not compatible
query II rowsort label-4362
SELECT ALL - COUNT ( * ) + 22 AS col1, + 20 + + COUNT ( * ) * - + 79 AS col0
----
21
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4363
SELECT DISTINCT + CAST( - 37 AS SIGNED ) * 0 col1
----
0

skipif mysql # not compatible
query I rowsort label-4363
SELECT DISTINCT + CAST ( - 37 AS INTEGER ) * 0 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT - 34 * CASE 5 WHEN 79 THEN - - 53 - - ( + 28 ) + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4364
SELECT - 34 * CASE 5 WHEN 79 THEN - - 53 - - ( + 28 ) + COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 4 + + - 47 + - 29 AS col2
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4366
SELECT + - 63 DIV + 66 * - COUNT( * ) - ( - ( + 43 ) ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-4366
SELECT + - 63 / + 66 * - COUNT ( * ) - ( - ( + 43 ) ) AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT + 5 + COUNT( DISTINCT + 54 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-4367
SELECT + 5 + COUNT ( DISTINCT + 54 ) AS col2
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4368
SELECT DISTINCT COUNT( * ) DIV + + 41 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4368
SELECT DISTINCT COUNT ( * ) / + + 41 + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4369
SELECT + MIN( 50 ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-4369
SELECT + MIN ( 50 ) AS col0
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-4370
SELECT DISTINCT - 75 DIV - 24
----
3

skipif mysql # not compatible
query I rowsort label-4370
SELECT DISTINCT - 75 / - 24
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4371
SELECT ALL - CAST( + - AVG ( DISTINCT + + 54 ) AS SIGNED ) / + COUNT( * ) + - CAST( NULL AS DECIMAL ) - - ( - AVG ( + - 99 ) ) * 72 - + 80 + + CASE - - 66 WHEN + 8 THEN + 31 ELSE + 30 - - + 53 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4371
SELECT ALL - CAST ( + - AVG ( DISTINCT + + 54 ) AS INTEGER ) / + COUNT ( * ) + - CAST ( NULL AS REAL ) - - ( - AVG ( + - 99 ) ) * 72 - + 80 + + CASE - - 66 WHEN + 8 THEN + 31 ELSE + 30 - - + 53 END
----
NULL

query I rowsort
SELECT + 97 * NULLIF ( + - CASE - ( - 96 ) WHEN - 65 THEN ( 34 ) ELSE NULL END, - 58 * + 88 + 94 + + 22 ) + - 35
----
NULL

query I rowsort
SELECT 61 * 45 AS col1
----
2745

query I rowsort
SELECT 70 + + ( - + 49 ) AS col2
----
21

query I rowsort
SELECT 73 * + 22 AS col2
----
1606

query I rowsort
SELECT 9 * - - 45
----
405

query I rowsort
SELECT 15 - - + 67
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4378
SELECT ALL - 99 * - COUNT( DISTINCT 61 ) * - 36
----
-3564

skipif mysql # not compatible
query I rowsort label-4378
SELECT ALL - 99 * - COUNT ( DISTINCT 61 ) * - 36
----
-3564

query I rowsort
SELECT 89 + + + 7 + + 79 AS col0
----
175

onlyif mysql # DIV for integer division: 
query I rowsort label-4380
SELECT DISTINCT - 17 DIV + 8 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4380
SELECT DISTINCT - 17 / + 8 AS col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4381
SELECT 99 + - CAST( + + COUNT( * ) AS SIGNED ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-4381
SELECT 99 + - CAST ( + + COUNT ( * ) AS INTEGER ) AS col2
----
98

query I rowsort
SELECT ALL 62 + 28 AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4383
SELECT ALL - MAX( ALL + 35 ) * - + ( - - 76 ) * - 77
----
-204820

skipif mysql # not compatible
query I rowsort label-4383
SELECT ALL - MAX ( ALL + 35 ) * - + ( - - 76 ) * - 77
----
-204820

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT NULLIF ( 0, + 2 ) + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4384
SELECT NULLIF ( 0, + 2 ) + COUNT ( * )
----
1

query I rowsort
SELECT ALL - 81 + + + 11
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT DISTINCT + COUNT( * ) + + + 98
----
99

skipif mysql # not compatible
query I rowsort label-4386
SELECT DISTINCT + COUNT ( * ) + + + 98
----
99

query I rowsort
SELECT ALL 92 + + 69
----
161

query I rowsort
SELECT - 36 + + 66 AS col1
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4389
SELECT + CAST( NULL AS SIGNED ) * + 99 / - CAST( NULL AS SIGNED ) AS col1, + 86 * + 24 AS col2
----
NULL
2064

skipif mysql # not compatible
query II rowsort label-4389
SELECT + CAST ( NULL AS INTEGER ) * + 99 / - CAST ( NULL AS INTEGER ) AS col1, + 86 * + 24 AS col2
----
NULL
2064

query II rowsort
SELECT 99, - 51 AS col0
----
99
-51

query I rowsort
SELECT DISTINCT - 87 + + - 30 * 57 col0
----
-1797

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT SUM( 97 ) col1
----
97

skipif mysql # not compatible
query I rowsort label-4392
SELECT SUM ( 97 ) col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT ALL + 48 + + 37 - COUNT( * ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-4393
SELECT ALL + 48 + + 37 - COUNT ( * ) AS col1
----
84

query I rowsort
SELECT 14 + 45 AS col2
----
59

query I rowsort
SELECT DISTINCT - 46 - - 2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4396
SELECT ALL COUNT( * ) - 82 AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-4396
SELECT ALL COUNT ( * ) - 82 AS col0
----
-81

query I rowsort
SELECT 24 + + 98
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-4398
SELECT MAX( - + 68 ) col2
----
-68

skipif mysql # not compatible
query I rowsort label-4398
SELECT MAX ( - + 68 ) col2
----
-68

query I rowsort
SELECT ALL + 52 - + 71
----
-19

query I rowsort
SELECT DISTINCT - - 93 col0
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-4401
SELECT ALL - 30 DIV + 18 col2
----
-1

skipif mysql # not compatible
query I rowsort label-4401
SELECT ALL - 30 / + 18 col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4402
SELECT ALL - 75 * 62 DIV 14
----
-332

skipif mysql # not compatible
query I rowsort label-4402
SELECT ALL - 75 * 62 / 14
----
-332

query I rowsort
SELECT 90 + - 57 AS col2
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-4404
SELECT ALL 40 DIV - 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4404
SELECT ALL 40 / - 83 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4405
SELECT CAST( - 72 AS SIGNED ) * + 84 * NULLIF ( - 19, 40 ) AS col1, 68 AS col2
----
114912
68

skipif mysql # not compatible
query II rowsort label-4405
SELECT CAST ( - 72 AS INTEGER ) * + 84 * NULLIF ( - 19, 40 ) AS col1, 68 AS col2
----
114912
68

query I rowsort
SELECT DISTINCT - 30 * + 81 * - 76
----
184680

query I rowsort
SELECT - 3 * + 70 + 74
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT ALL - COUNT( * ) * - - 40 * + 70
----
-2800

skipif mysql # not compatible
query I rowsort label-4408
SELECT ALL - COUNT ( * ) * - - 40 * + 70
----
-2800

onlyif mysql # aggregate syntax: 
query II rowsort label-4409
SELECT ALL 80 + 3, + 59 * - COUNT( * ) AS col2
----
83
-59

skipif mysql # not compatible
query II rowsort label-4409
SELECT ALL 80 + 3, + 59 * - COUNT ( * ) AS col2
----
83
-59

query I rowsort
SELECT DISTINCT 98 * 69
----
6762

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4411
SELECT ALL + NULLIF ( ( NULLIF ( - 4, - 7 * + CAST( NULL AS SIGNED ) ) ), - CASE + + 89 WHEN + 10 THEN - 2 * + 71 * - 81 END * + 24 ) + - + 81 * + 5 + 48 * + 40 DIV - 40 + - COUNT( * ) * + - 80
----
-377

skipif mysql # not compatible
query I rowsort label-4411
SELECT ALL + NULLIF ( ( NULLIF ( - 4, - 7 * + CAST ( NULL AS INTEGER ) ) ), - CASE + + 89 WHEN + 10 THEN - 2 * + 71 * - 81 END * + 24 ) + - + 81 * + 5 + 48 * + 40 / - 40 + - COUNT ( * ) * + - 80
----
-377

query II rowsort
SELECT DISTINCT 66, 79 AS col0
----
66
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4413
SELECT ALL - 13 + - 54 + + 41 DIV + 73 + + MAX( + 76 ) * - 42, SUM( ALL - + 13 ) AS col1
----
-3259
-13

skipif mysql # not compatible
query II rowsort label-4413
SELECT ALL - 13 + - 54 + + 41 / + 73 + + MAX ( + 76 ) * - 42, SUM ( ALL - + 13 ) AS col1
----
-3259
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4414
SELECT DISTINCT COUNT( * ) AS col2, - 24 + + + 11 + 55 * - 17 * - CAST( NULL AS SIGNED ) * 21 / + 92 AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4414
SELECT DISTINCT COUNT ( * ) AS col2, - 24 + + + 11 + 55 * - 17 * - CAST ( NULL AS INTEGER ) * 21 / + 92 AS col2
----
1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4415
SELECT ALL + 41 + + + MAX( - 42 ) + - 83 DIV + 56
----
-2

skipif mysql # not compatible
query I rowsort label-4415
SELECT ALL + 41 + + + MAX ( - 42 ) + - 83 / + 56
----
-2

query I rowsort
SELECT 5 - + + 35
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-4417
SELECT DISTINCT - 68 DIV - 25
----
2

skipif mysql # not compatible
query I rowsort label-4417
SELECT DISTINCT - 68 / - 25
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4418
SELECT ALL - - 6 * + CASE 57 WHEN 5 + + + 95 THEN + 4 WHEN 41 THEN + COALESCE ( - 13, + 96 * + 52 * + - 46 * - + COUNT( * ) + - + COALESCE ( + 39, 55, - 41 ) + + 72 DIV - CAST( 11 AS SIGNED ) ) ELSE + - COALESCE ( - 47, - + 83 - COUNT( * ) ) END * + - COUNT( * )
----
-282

skipif mysql # not compatible
query I rowsort label-4418
SELECT ALL - - 6 * + CASE 57 WHEN 5 + + + 95 THEN + 4 WHEN 41 THEN + COALESCE ( - 13, + 96 * + 52 * + - 46 * - + COUNT ( * ) + - + COALESCE ( + 39, 55, - 41 ) + + 72 / - CAST ( 11 AS INTEGER ) ) ELSE + - COALESCE ( - 47, - + 83 - COUNT ( * ) ) END * + - COUNT ( * )
----
-282

onlyif mysql # DIV for integer division: 
query I rowsort label-4419
SELECT ALL - 41 DIV - 52 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4419
SELECT ALL - 41 / - 52 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT ALL - SUM( DISTINCT - 84 )
----
84

skipif mysql # not compatible
query I rowsort label-4420
SELECT ALL - SUM ( DISTINCT - 84 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT ALL - + 14 * + + 9 * - MAX( DISTINCT + - 80 ) + + 56 AS col2
----
-10024

skipif mysql # not compatible
query I rowsort label-4421
SELECT ALL - + 14 * + + 9 * - MAX ( DISTINCT + - 80 ) + + 56 AS col2
----
-10024

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4422
SELECT - 10 - - 73 + + CAST( 16 AS SIGNED ) DIV + 29 + - 10
----
53

skipif mysql # not compatible
query I rowsort label-4422
SELECT - 10 - - 73 + + CAST ( 16 AS INTEGER ) / + 29 + - 10
----
53

query II rowsort
SELECT + 19 + 5 + - + 65 * - + 5 AS col2, - 19 + 8 + + 6
----
349
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4424
SELECT ALL - + 1 - + COUNT( + - 55 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-4424
SELECT ALL - + 1 - + COUNT ( + - 55 ) AS col0
----
-2

query II rowsort
SELECT 76 AS col0, 77 * - - 6 * - 72 * - 83 AS col2
----
76
2760912

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4426
SELECT + 76 DIV COUNT( * ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-4426
SELECT + 76 / COUNT ( * ) AS col1
----
76

query II rowsort
SELECT + 67 AS col2, + 16
----
67
16

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

skipif mysql # not compatible
query I rowsort label-4428
SELECT CAST ( NULL AS REAL ) + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT + - 39 AS col1, 80
----
-39
80

query I rowsort
SELECT + 3 + 64 AS col2
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4431
SELECT + 68 AS col0, COUNT( - - 96 ) + - 8 + + COALESCE ( - - COUNT( * ), - + 17 * - - 16 DIV 25 ) AS col1
----
68
-6

skipif mysql # not compatible
query II rowsort label-4431
SELECT + 68 AS col0, COUNT ( - - 96 ) + - 8 + + COALESCE ( - - COUNT ( * ), - + 17 * - - 16 / 25 ) AS col1
----
68
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-4432
SELECT ALL + COUNT( * ) col2, 35 col2
----
1
35

skipif mysql # not compatible
query II rowsort label-4432
SELECT ALL + COUNT ( * ) col2, 35 col2
----
1
35

query I rowsort
SELECT ALL 56 * 36 AS col2
----
2016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4434
SELECT + 26 * - + 26 * - - 82 * + - 41 / + CAST( NULL AS SIGNED ) * - MAX( + - 70 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4434
SELECT + 26 * - + 26 * - - 82 * + - 41 / + CAST ( NULL AS INTEGER ) * - MAX ( + - 70 )
----
NULL

query II rowsort
SELECT ALL + 74 AS col2, + 98 * 9 col2
----
74
882

query I rowsort
SELECT ALL 99 * 77 AS col2
----
7623

query I rowsort
SELECT + 5 * + 30
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4438
SELECT + COUNT( * ) * NULLIF ( 75, + + 87 + ( - + 3 ) * 63 + + MAX( ALL - CAST( NULL AS SIGNED ) ) + + ( 98 ) - + 61 + + 57 + NULLIF ( COUNT( * ), + 40 ) * 52 * + 56 * - 3 + - 44 * 73 / + 33 + - 64 ) * - + NULLIF ( 7, 20 ) * 9 + - 48 + 6 col1
----
-4767

skipif mysql # not compatible
query I rowsort label-4438
SELECT + COUNT ( * ) * NULLIF ( 75, + + 87 + ( - + 3 ) * 63 + + MAX ( ALL - CAST ( NULL AS INTEGER ) ) + + ( 98 ) - + 61 + + 57 + NULLIF ( COUNT ( * ), + 40 ) * 52 * + 56 * - 3 + - 44 * 73 / + 33 + - 64 ) * - + NULLIF ( 7, 20 ) * 9 + - 48 + 6 col1
----
-4767

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4439
SELECT + SUM( ALL - ( 97 ) ) AS col0, MIN( DISTINCT - + 14 ) DIV - - NULLIF ( - + 18, + 15 * - - 81 ) + - 39
----
-97
-39

skipif mysql # not compatible
query II rowsort label-4439
SELECT + SUM ( ALL - ( 97 ) ) AS col0, MIN ( DISTINCT - + 14 ) / - - NULLIF ( - + 18, + 15 * - - 81 ) + - 39
----
-97
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4440
SELECT ALL COUNT( * ) * - MAX( - 27 ) + 17 DIV - 39 * 1 * - 72 + + 28 * ( ( + 54 ) )
----
1539

skipif mysql # not compatible
query I rowsort label-4440
SELECT ALL COUNT ( * ) * - MAX ( - 27 ) + 17 / - 39 * 1 * - 72 + + 28 * ( ( + 54 ) )
----
1539

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT + COUNT( ALL + 18 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4441
SELECT + COUNT ( ALL + 18 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4442
SELECT ALL 42 * - 78 + + COUNT( * )
----
-3275

skipif mysql # not compatible
query I rowsort label-4442
SELECT ALL 42 * - 78 + + COUNT ( * )
----
-3275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4443
SELECT + CASE 42 WHEN + CAST( - 82 AS SIGNED ) THEN NULL ELSE - + 69 * + COUNT( * ) END AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-4443
SELECT + CASE 42 WHEN + CAST ( - 82 AS INTEGER ) THEN NULL ELSE - + 69 * + COUNT ( * ) END AS col1
----
-69

query II rowsort
SELECT DISTINCT 91 + 59 AS col0, + 48 AS col0
----
150
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4445
SELECT - COALESCE ( + 24, + NULLIF ( + 21, + - 49 + + - 6 * - - 15 ) ) AS col1, 45 - - ( - NULLIF ( - + 37, 74 / CAST( NULL AS SIGNED ) ) ) + 0 + - 56 - - 47 * - 62 * - 39 AS col0
----
-24
113672

skipif mysql # not compatible
query II rowsort label-4445
SELECT - COALESCE ( + 24, + NULLIF ( + 21, + - 49 + + - 6 * - - 15 ) ) AS col1, 45 - - ( - NULLIF ( - + 37, 74 / CAST ( NULL AS INTEGER ) ) ) + 0 + - 56 - - 47 * - 62 * - 39 AS col0
----
-24
113672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4446
SELECT + 8 + CAST( COALESCE ( + 7, + 61 / - 74 ) AS SIGNED )
----
15

skipif mysql # not compatible
query I rowsort label-4446
SELECT + 8 + CAST ( COALESCE ( + 7, + 61 / - 74 ) AS INTEGER )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT - COUNT( * ) * - COUNT( + 82 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4447
SELECT - COUNT ( * ) * - COUNT ( + 82 ) AS col0
----
1

query I rowsort
SELECT DISTINCT + 36 * NULLIF ( + 96, - - 95 ) AS col2
----
3456

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT ALL - ( + + 17 ) * - 88 + + + COUNT( * )
----
1497

skipif mysql # not compatible
query I rowsort label-4449
SELECT ALL - ( + + 17 ) * - 88 + + + COUNT ( * )
----
1497

query I rowsort
SELECT - 90 - - + ( 57 ) AS col2
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4451
SELECT + 58 + - COALESCE ( + 2, - CAST( NULL AS SIGNED ), SUM( 7 ) ) * - + 54 * ( - 85 )
----
-9122

skipif mysql # not compatible
query I rowsort label-4451
SELECT + 58 + - COALESCE ( + 2, - CAST ( NULL AS INTEGER ), SUM ( 7 ) ) * - + 54 * ( - 85 )
----
-9122

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

skipif mysql # not compatible
query I rowsort label-4452
SELECT ALL + - CAST ( NULL AS INTEGER ) - + 33
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( 64, - 59 )
----
-64

query I rowsort
SELECT - - 1 * + 94
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT DISTINCT - MAX( ALL + 59 ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-4455
SELECT DISTINCT - MAX ( ALL + 59 ) AS col0
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4456
SELECT DISTINCT - + COALESCE ( + 28, + + 39 * 7 - + - 24 DIV + 66 * 32 + + ( + COUNT( * ) ) + - 58 ) * - - 49 AS col1
----
-1372

skipif mysql # not compatible
query I rowsort label-4456
SELECT DISTINCT - + COALESCE ( + 28, + + 39 * 7 - + - 24 / + 66 * 32 + + ( + COUNT ( * ) ) + - 58 ) * - - 49 AS col1
----
-1372

query I rowsort
SELECT - - 51 + - - 15 * 40 AS col2
----
651

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

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

query I rowsort
SELECT - 16 * - 45
----
720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4460
SELECT - + 76 + + + 72 DIV - COUNT( * ) + - + 22 + + 56 - - 83 * 89 + + + ( - ( - 61 ) ) AS col1
----
7334

skipif mysql # not compatible
query I rowsort label-4460
SELECT - + 76 + + + 72 / - COUNT ( * ) + - + 22 + + 56 - - 83 * 89 + + + ( - ( - 61 ) ) AS col1
----
7334

onlyif mysql # DIV for integer division: 
query I rowsort label-4461
SELECT ALL + 96 DIV - - 98 + - ( 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-4461
SELECT ALL + 96 / - - 98 + - ( 45 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4462
SELECT - + 74 * + + MIN( - 10 )
----
740

skipif mysql # not compatible
query I rowsort label-4462
SELECT - + 74 * + + MIN ( - 10 )
----
740

query I rowsort
SELECT DISTINCT + - 84 AS col0
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4464
SELECT + 82 AS col0, 42 + COUNT( * ) DIV COUNT( ALL 66 ) + + COUNT( * ) - + - COALESCE ( - - 8, - 92 ) * - COUNT( * ) AS col0
----
82
36

skipif mysql # not compatible
query II rowsort label-4464
SELECT + 82 AS col0, 42 + COUNT ( * ) / COUNT ( ALL 66 ) + + COUNT ( * ) - + - COALESCE ( - - 8, - 92 ) * - COUNT ( * ) AS col0
----
82
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4465
SELECT + CAST( NULL AS SIGNED ) / - 12 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4465
SELECT + CAST ( NULL AS INTEGER ) / - 12 * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4466
SELECT ALL 33 DIV - - COUNT( * ) + - 98
----
-65

skipif mysql # not compatible
query I rowsort label-4466
SELECT ALL 33 / - - COUNT ( * ) + - 98
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT - SUM( + 21 ) + - 11
----
-32

skipif mysql # not compatible
query I rowsort label-4467
SELECT - SUM ( + 21 ) + - 11
----
-32

query II rowsort
SELECT ( ( - - 80 ) ) AS col2, 78 AS col0
----
80
78

onlyif mysql # aggregate syntax: 
query II rowsort label-4469
SELECT DISTINCT + COUNT( DISTINCT + 18 ) * - - MIN( - 68 ) * + - 3 + - CASE 91 WHEN - 25 THEN 58 * - COALESCE ( - 76, + 0 - + MAX( + 11 ) + - 59 * + 72 + AVG ( ALL 14 ) * NULLIF ( + COUNT( * ), + + 21 * 40 ), + 71 + - 87 ) - + COUNT( * ) / - + 15 END AS col0, + 65 AS col1
----
NULL
65

skipif mysql # not compatible
query II rowsort label-4469
SELECT DISTINCT + COUNT ( DISTINCT + 18 ) * - - MIN ( - 68 ) * + - 3 + - CASE 91 WHEN - 25 THEN 58 * - COALESCE ( - 76, + 0 - + MAX ( + 11 ) + - 59 * + 72 + AVG ( ALL 14 ) * NULLIF ( + COUNT ( * ), + + 21 * 40 ), + 71 + - 87 ) - + COUNT ( * ) / - + 15 END AS col0, + 65 AS col1
----
NULL
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT + COALESCE ( COUNT( * ), + 28 - + 83 + + - COUNT( * ) + - 63, 49 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4470
SELECT + COALESCE ( COUNT ( * ), + 28 - + 83 + + - COUNT ( * ) + - 63, 49 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4471
SELECT DISTINCT 38 * + ( + 2 ) + + 93 + COALESCE ( 41, 83 * - + CASE SUM( - - 38 ) WHEN - 63 THEN - COALESCE ( + - 85, - 70 ) * - CASE 92 WHEN + - 71 DIV - - 83 THEN NULL WHEN 10 - COUNT( * ) + + + 84 THEN - ( - COUNT( * ) ) END * - CAST( 57 AS SIGNED ) WHEN + + 0 + - 73 THEN NULL WHEN + 4 THEN 96 * - + SUM( + 57 ) + + - 99 * - 86 - 53 * COALESCE ( - 53 - 54 * COUNT( * ), + 18 + - 78 ) ELSE + COUNT( DISTINCT 19 ) END DIV 64 ) * + 0 * + 78
----
169

skipif mysql # not compatible
query I rowsort label-4471
SELECT DISTINCT 38 * + ( + 2 ) + + 93 + COALESCE ( 41, 83 * - + CASE SUM ( - - 38 ) WHEN - 63 THEN - COALESCE ( + - 85, - 70 ) * - CASE 92 WHEN + - 71 / - - 83 THEN NULL WHEN 10 - COUNT ( * ) + + + 84 THEN - ( - COUNT ( * ) ) END * - CAST ( 57 AS INTEGER ) WHEN + + 0 + - 73 THEN NULL WHEN + 4 THEN 96 * - + SUM ( + 57 ) + + - 99 * - 86 - 53 * COALESCE ( - 53 - 54 * COUNT ( * ), + 18 + - 78 ) ELSE + COUNT ( DISTINCT 19 ) END / 64 ) * + 0 * + 78
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-4472
SELECT DISTINCT SUM( - - 62 ) * - ( - 32 )
----
1984

skipif mysql # not compatible
query I rowsort label-4472
SELECT DISTINCT SUM ( - - 62 ) * - ( - 32 )
----
1984

onlyif mysql # DIV for integer division: 
query I rowsort label-4473
SELECT ALL - 54 * + + 49 + 24 - + 92 DIV + - 49
----
-2621

skipif mysql # not compatible
query I rowsort label-4473
SELECT ALL - 54 * + + 49 + 24 - + 92 / + - 49
----
-2621

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4474
SELECT 77 * + 15 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4474
SELECT 77 * + 15 + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4475
SELECT ALL + 76 * - - 98 + - 41 * COALESCE ( + 69, - - 29 - - 37 + - 19, 3 * - COUNT( * ) * + 95 ) AS col0, 84
----
4619
84

skipif mysql # not compatible
query II rowsort label-4475
SELECT ALL + 76 * - - 98 + - 41 * COALESCE ( + 69, - - 29 - - 37 + - 19, 3 * - COUNT ( * ) * + 95 ) AS col0, 84
----
4619
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT + COUNT( - + 90 )
----
1

skipif mysql # not compatible
query I rowsort label-4476
SELECT + COUNT ( - + 90 )
----
1

query II rowsort
SELECT + 21 + 42 + + 86 AS col0, + 21 + 16 - 46 AS col1
----
149
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-4478
SELECT + COUNT( * ) col0, - SUM( - 14 )
----
1
14

skipif mysql # not compatible
query II rowsort label-4478
SELECT + COUNT ( * ) col0, - SUM ( - 14 )
----
1
14

onlyif mysql # DIV for integer division: 
query I rowsort label-4479
SELECT + 97 + - - 17 + + 44 DIV 3 + 94 AS col2
----
222

skipif mysql # not compatible
query I rowsort label-4479
SELECT + 97 + - - 17 + + 44 / 3 + 94 AS col2
----
222

onlyif mysql # DIV for integer division: 
query I rowsort label-4480
SELECT + 85 DIV - 75
----
-1

skipif mysql # not compatible
query I rowsort label-4480
SELECT + 85 / - 75
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4481
SELECT + ( + - COUNT( * ) ) * - 55 + - 99 AS col2, + 53 * - COUNT( * ) * + 39 AS col2
----
-44
-2067

skipif mysql # not compatible
query II rowsort label-4481
SELECT + ( + - COUNT ( * ) ) * - 55 + - 99 AS col2, + 53 * - COUNT ( * ) * + 39 AS col2
----
-44
-2067

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT DISTINCT COALESCE ( - + 82, MIN( DISTINCT - - 82 ) ) * + 49 * + 5 AS col2
----
-20090

skipif mysql # not compatible
query I rowsort label-4482
SELECT DISTINCT COALESCE ( - + 82, MIN ( DISTINCT - - 82 ) ) * + 49 * + 5 AS col2
----
-20090

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT ALL + ( 76 ) * - + 40 + - 55 + + 85 * - - COUNT( * ) * - 94 - - 7 AS col1
----
-11078

skipif mysql # not compatible
query I rowsort label-4483
SELECT ALL + ( 76 ) * - + 40 + - 55 + + 85 * - - COUNT ( * ) * - 94 - - 7 AS col1
----
-11078

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4484
SELECT ALL COUNT( - - CAST( + 17 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-4484
SELECT ALL COUNT ( - - CAST ( + 17 AS INTEGER ) )
----
1

query II rowsort
SELECT ALL 82 AS col2, 46
----
82
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4486
SELECT DISTINCT + + 89 DIV - COUNT( * ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-4486
SELECT DISTINCT + + 89 / - COUNT ( * ) AS col0
----
-89

query I rowsort
SELECT ALL COALESCE ( 20, 66 + + 59 + + - 96 + + - ( - 98 ) )
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-4488
SELECT ALL 34 AS col0, ( - 58 ) + - 83 + - COUNT( * ) AS col0
----
34
-142

skipif mysql # not compatible
query II rowsort label-4488
SELECT ALL 34 AS col0, ( - 58 ) + - 83 + - COUNT ( * ) AS col0
----
34
-142

query I rowsort
SELECT + + 86 * - 27 - + + 77 + - 48 AS col1
----
-2447

query I rowsort
SELECT - 14 * - 65 * + ( + COALESCE ( - 18, 91 ) ) AS col2
----
-16380

query I rowsort
SELECT ALL 88 * 37 * + + 22 col0
----
71632

query I rowsort
SELECT DISTINCT + 67 * - 89 * + + 30
----
-178890

onlyif mysql # DIV for integer division: 
query I rowsort label-4493
SELECT 76 DIV - - 77 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4493
SELECT 76 / - - 77 AS col1
----
0

query I rowsort
SELECT DISTINCT - 98 * 95 AS col1
----
-9310

query I rowsort
SELECT + 81 * + 59
----
4779

query I rowsort
SELECT DISTINCT 59 * + 33
----
1947

onlyif mysql # aggregate syntax: 
query II rowsort label-4497
SELECT ALL + + SUM( - 71 ) + - 22, 71 AS col1
----
-93
71

skipif mysql # not compatible
query II rowsort label-4497
SELECT ALL + + SUM ( - 71 ) + - 22, 71 AS col1
----
-93
71

query I rowsort
SELECT + 8 - ( - + 73 ) * - CASE - + 65 WHEN 92 * 63 * - - 72 + - - 64 + + + 16 + - 37 * 90 THEN NULL ELSE - 53 END
----
3877

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4499
SELECT - 47 * - + 15 / CAST( NULL AS DECIMAL ) * - 80 * - COUNT( * ) * 12
----
NULL

skipif mysql # not compatible
query I rowsort label-4499
SELECT - 47 * - + 15 / CAST ( NULL AS REAL ) * - 80 * - COUNT ( * ) * 12
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4500
SELECT ALL - - 29 + COUNT( * ) - + 59 DIV - - COUNT( * ) col0
----
-29

skipif mysql # not compatible
query I rowsort label-4500
SELECT ALL - - 29 + COUNT ( * ) - + 59 / - - COUNT ( * ) col0
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4501
SELECT + + 86 / 9 + 45 * - + CAST( NULL AS SIGNED ) * - COUNT( * ) + COUNT( * ) + + 34 / COUNT( ALL + ( + 14 ) ) / - 23 + 69 + + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-4501
SELECT + + 86 / 9 + 45 * - + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + COUNT ( * ) + + 34 / COUNT ( ALL + ( + 14 ) ) / - 23 + 69 + + 92
----
NULL

query II rowsort
SELECT 80 * - 80 AS col0, - 91 + - 13 AS col0
----
-6400
-104

onlyif mysql # DIV for integer division: 
query I rowsort label-4503
SELECT 83 + - 8 + 5 DIV + NULLIF ( - 69, - 57 ) * - + 16 + + 21 - + - 96
----
192

skipif mysql # not compatible
query I rowsort label-4503
SELECT 83 + - 8 + 5 / + NULLIF ( - 69, - 57 ) * - + 16 + + 21 - + - 96
----
192

query I rowsort
SELECT DISTINCT - 26 + + 91 * - + 68
----
-6214

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT DISTINCT + MAX( DISTINCT + + 24 ) * + + COALESCE ( - - 74, - - 82, 66 ) AS col0
----
1776

skipif mysql # not compatible
query I rowsort label-4505
SELECT DISTINCT + MAX ( DISTINCT + + 24 ) * + + COALESCE ( - - 74, - - 82, 66 ) AS col0
----
1776

query I rowsort
SELECT DISTINCT 98 + ( + 40 ) + + 79 - + 85 + - + 85
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-4507
SELECT 90 DIV - + 88 + - 89
----
-90

skipif mysql # not compatible
query I rowsort label-4507
SELECT 90 / - + 88 + - 89
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT DISTINCT + COUNT( * ) * + - 39 AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-4508
SELECT DISTINCT + COUNT ( * ) * + - 39 AS col1
----
-39

query I rowsort
SELECT 5 - - - 0 - 39 * - - 16 + - 54 AS col0
----
-673

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4510
SELECT 8 * + CASE CAST( - COUNT( * ) AS SIGNED ) WHEN + 12 THEN + 76 + 0 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4510
SELECT 8 * + CASE CAST ( - COUNT ( * ) AS INTEGER ) WHEN + 12 THEN + 76 + 0 END AS col0
----
NULL

query I rowsort
SELECT 82 * + - 96 + - + 61 - + 49 * - - 35 AS col2
----
-9648

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4512
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + 3 * - 42 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4512
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + 3 * - 42 AS col2
----
NULL

query I rowsort
SELECT ALL 32 * + ( + - 75 ) * - 83
----
199200

query I rowsort
SELECT 40 - + 82
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT COUNT( * ) * - 35 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-4515
SELECT COUNT ( * ) * - 35 AS col0
----
-35

query I rowsort
SELECT ALL 26 * 37 * - + 66 AS col2
----
-63492

onlyif mysql # aggregate syntax: 
query I rowsort label-4517
SELECT ALL + - 70 - + 43 + - MAX( ALL - 20 ) + 86
----
-7

skipif mysql # not compatible
query I rowsort label-4517
SELECT ALL + - 70 - + 43 + - MAX ( ALL - 20 ) + 86
----
-7

query I rowsort
SELECT - 6 + - 77 AS col2
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-4519
SELECT - 20 * COUNT( * ), 87 AS col0
----
-20
87

skipif mysql # not compatible
query II rowsort label-4519
SELECT - 20 * COUNT ( * ), 87 AS col0
----
-20
87

query I rowsort
SELECT - ( - 56 ) * - 94
----
-5264

query I rowsort
SELECT + 29 + + + 38 AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT COUNT( * ) + + 57 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-4522
SELECT COUNT ( * ) + + 57 AS col0
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4523
SELECT + COUNT( * ) - - + 4 * 54 DIV 10 * + 46 * - + 17 AS col1
----
-16421

skipif mysql # not compatible
query I rowsort label-4523
SELECT + COUNT ( * ) - - + 4 * 54 / 10 * + 46 * - + 17 AS col1
----
-16421

query I rowsort
SELECT + 56 + 38 AS col2
----
94

query I rowsort
SELECT + 69 + + 63 AS col1
----
132

query I rowsort
SELECT ALL + 94 + + 15
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT ALL 22 + 78 + 13 + + 21 + - + 39 + - COUNT( * ) * ( + 95 ) * 91 * + 59 AS col1
----
-509960

skipif mysql # not compatible
query I rowsort label-4527
SELECT ALL 22 + 78 + 13 + + 21 + - + 39 + - COUNT ( * ) * ( + 95 ) * 91 * + 59 AS col1
----
-509960

onlyif mysql # DIV for integer division: 
query I rowsort label-4528
SELECT 83 + + 35 + 31 * 53 DIV 6 * + 78 col1
----
21412

skipif mysql # not compatible
query I rowsort label-4528
SELECT 83 + + 35 + 31 * 53 / 6 * + 78 col1
----
21412

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT - NULLIF ( + COUNT( * ), + 1 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4529
SELECT - NULLIF ( + COUNT ( * ), + 1 ) AS col1
----
NULL

query I rowsort
SELECT ALL - 11 + - 69 AS col0
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-4531
SELECT 93 + + - 91, COUNT( * ) AS col1
----
2
1

skipif mysql # not compatible
query II rowsort label-4531
SELECT 93 + + - 91, COUNT ( * ) AS col1
----
2
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT DISTINCT 7 + SUM( - 17 )
----
-10

skipif mysql # not compatible
query I rowsort label-4532
SELECT DISTINCT 7 + SUM ( - 17 )
----
-10

query II rowsort
SELECT ALL - 61 * 76, - 44 + - 98 AS col2
----
-4636
-142

query I rowsort
SELECT ALL 81 + + - 24
----
57

query I rowsort
SELECT ALL 40 + + + 40 * + - 70
----
-2760

onlyif mysql # aggregate syntax: 
query II rowsort label-4536
SELECT - COUNT( * ) AS col0, SUM( DISTINCT - + 0 ) AS col2
----
-1
0

skipif mysql # not compatible
query II rowsort label-4536
SELECT - COUNT ( * ) AS col0, SUM ( DISTINCT - + 0 ) AS col2
----
-1
0

query I rowsort
SELECT ALL - NULLIF ( - 26, + - 18 + - ( + 95 ) + + 71 ) + + 8 * - ( + NULLIF ( - 22, + 50 ) ) * - ( - 61 )
----
10762

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4538
SELECT ALL COUNT( * ) * - CAST( - 63 AS SIGNED ) AS col1, + 5 + + ( - 33 )
----
63
-28

skipif mysql # not compatible
query II rowsort label-4538
SELECT ALL COUNT ( * ) * - CAST ( - 63 AS INTEGER ) AS col1, + 5 + + ( - 33 )
----
63
-28

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4539
SELECT 15 + + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4539
SELECT 15 + + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 28 * + + 91 AS col1
----
2548

query I rowsort
SELECT 99 * - 86
----
-8514

query II rowsort
SELECT + 2, + ( - 82 ) AS col1
----
2
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT MIN( + NULLIF ( - + 0, - 22 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4543
SELECT MIN ( + NULLIF ( - + 0, - 22 ) )
----
0

query I rowsort
SELECT ( + 40 ) + 67 AS col0
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT DISTINCT + 73 * - + 66 - + + 60 + + 89 * - NULLIF ( + COUNT( * ), + ( - 75 ) + - COUNT( * ) ) AS col2
----
-4967

skipif mysql # not compatible
query I rowsort label-4545
SELECT DISTINCT + 73 * - + 66 - + + 60 + + 89 * - NULLIF ( + COUNT ( * ), + ( - 75 ) + - COUNT ( * ) ) AS col2
----
-4967

query I rowsort
SELECT ALL - COALESCE ( + + 5, - ( - 15 ) * 8 ) * - 8 - + 59
----
-19

query II rowsort
SELECT + 13, 97 AS col2
----
13
97

query II rowsort
SELECT ALL - 59 AS col0, + 30 AS col1
----
-59
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4549
SELECT ALL COUNT( * ) - - 88 DIV 39 * - 16 * + 60
----
-1919

skipif mysql # not compatible
query I rowsort label-4549
SELECT ALL COUNT ( * ) - - 88 / 39 * - 16 * + 60
----
-1919

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT DISTINCT - 5 * + - 99 * - MAX( - 61 )
----
30195

skipif mysql # not compatible
query I rowsort label-4550
SELECT DISTINCT - 5 * + - 99 * - MAX ( - 61 )
----
30195

query I rowsort
SELECT ALL - ( + - 86 ) AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT - 48 * - COUNT( * ) + COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-4552
SELECT - 48 * - COUNT ( * ) + COUNT ( * )
----
49

query I rowsort
SELECT 43 * 8 AS col1
----
344

query I rowsort
SELECT ALL - 23 * + 97 AS col1
----
-2231

query I rowsort
SELECT 49 + - 57 AS col0
----
-8

query I rowsort
SELECT ALL - + NULLIF ( - 85, ( 86 ) ) AS col2
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4557
SELECT 49 * + ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4557
SELECT 49 * + ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4558
SELECT ALL - + COALESCE ( + CAST( NULL AS SIGNED ), 87 * + + COUNT( * ) + + 75, - + 49 ) AS col1
----
-162

skipif mysql # not compatible
query I rowsort label-4558
SELECT ALL - + COALESCE ( + CAST ( NULL AS INTEGER ), 87 * + + COUNT ( * ) + + 75, - + 49 ) AS col1
----
-162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4559
SELECT + + NULLIF ( + + CAST( 22 AS SIGNED ), + + COUNT( * ) + 16 * - 37 )
----
22

skipif mysql # not compatible
query I rowsort label-4559
SELECT + + NULLIF ( + + CAST ( 22 AS INTEGER ), + + COUNT ( * ) + 16 * - 37 )
----
22

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4560
SELECT ALL - ( 65 ) / - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4560
SELECT ALL - ( 65 ) / - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4561
SELECT - 40 DIV - 73 * - 28 - + 67
----
-67

skipif mysql # not compatible
query I rowsort label-4561
SELECT - 40 / - 73 * - 28 - + 67
----
-67

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4562
SELECT ALL - + 63 + - CAST( 10 AS SIGNED ) - - - 96 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4562
SELECT ALL - + 63 + - CAST ( 10 AS INTEGER ) - - - 96 * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL 93 + + + COALESCE ( + 66, 37 )
----
159

query I rowsort
SELECT - 20 * + + 19 + - ( + 96 ) * - + 53
----
4708

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4565
SELECT ALL - - MIN( DISTINCT - - 34 ) + - 35 AS col0, 90 DIV - 65
----
-1
-1

skipif mysql # not compatible
query II rowsort label-4565
SELECT ALL - - MIN ( DISTINCT - - 34 ) + - 35 AS col0, 90 / - 65
----
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query III rowsort label-4566
SELECT ALL - ( + 34 ) + 85 - - - COUNT( DISTINCT - 25 ) + + 90 AS col1, - ( 76 ), + CASE + - 36 WHEN - + 21 THEN - 1 WHEN - 68 / + + 6 + - ( 63 ) THEN - 71 + - CAST( NULL AS DECIMAL ) END col0
----
140
-76
NULL

skipif mysql # not compatible
query III rowsort label-4566
SELECT ALL - ( + 34 ) + 85 - - - COUNT ( DISTINCT - 25 ) + + 90 AS col1, - ( 76 ), + CASE + - 36 WHEN - + 21 THEN - 1 WHEN - 68 / + + 6 + - ( 63 ) THEN - 71 + - CAST ( NULL AS REAL ) END col0
----
140
-76
NULL

query I rowsort
SELECT - - 76 - + + 55 * 52
----
-2784

query I rowsort
SELECT NULLIF ( 56, - + 37 ) AS col2
----
56

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4569
SELECT - + COALESCE ( NULLIF ( + - 10, - 82 ), - 8 DIV - 99 * CAST( + 45 AS SIGNED ), 91 + + 4 ) - - 43 * + + 72 AS col1
----
3106

skipif mysql # not compatible
query I rowsort label-4569
SELECT - + COALESCE ( NULLIF ( + - 10, - 82 ), - 8 / - 99 * CAST ( + 45 AS INTEGER ), 91 + + 4 ) - - 43 * + + 72 AS col1
----
3106

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4570
SELECT DISTINCT - 79 * - + MAX( DISTINCT + 51 ) AS col0, - MIN( ALL + + 21 ) * + + MIN( ALL + CAST( NULL AS DECIMAL ) ) + 44 + - 76 AS col0
----
4029
NULL

skipif mysql # not compatible
query II rowsort label-4570
SELECT DISTINCT - 79 * - + MAX ( DISTINCT + 51 ) AS col0, - MIN ( ALL + + 21 ) * + + MIN ( ALL + CAST ( NULL AS REAL ) ) + 44 + - 76 AS col0
----
4029
NULL

query I rowsort
SELECT ALL + 21 + + 66
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4572
SELECT DISTINCT - MAX( DISTINCT + CAST( - 21 AS SIGNED ) ) * - 65 + + 9 - ( - COUNT( * ) ) - - 50 * - ( + 24 ) AS col0
----
-2555

skipif mysql # not compatible
query I rowsort label-4572
SELECT DISTINCT - MAX ( DISTINCT + CAST ( - 21 AS INTEGER ) ) * - 65 + + 9 - ( - COUNT ( * ) ) - - 50 * - ( + 24 ) AS col0
----
-2555

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4573
SELECT DISTINCT 82 col1, 94 * - 85 + + + 85 DIV - + COUNT( ALL COALESCE ( + 48, 95 ) ) AS col1
----
82
-8075

skipif mysql # not compatible
query II rowsort label-4573
SELECT DISTINCT 82 col1, 94 * - 85 + + + 85 / - + COUNT ( ALL COALESCE ( + 48, 95 ) ) AS col1
----
82
-8075

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4574
SELECT + 28 * - + 96, COALESCE ( - - ( + 95 ), + COUNT( * ) * + 82 * + - 29 + - 71, - 92, - COUNT( * ) ) + 82 AS col2, + CAST( NULL AS SIGNED ) AS col2
----
-2688
177
NULL

skipif mysql # not compatible
query III rowsort label-4574
SELECT + 28 * - + 96, COALESCE ( - - ( + 95 ), + COUNT ( * ) * + 82 * + - 29 + - 71, - 92, - COUNT ( * ) ) + 82 AS col2, + CAST ( NULL AS INTEGER ) AS col2
----
-2688
177
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4575
SELECT 46 AS col1, + 63 + - + NULLIF ( + COUNT( * ), - 56 + - NULLIF ( - - COALESCE ( + 56, - - 14 + MAX( 94 ) * - + 12 ), + 78 ) )
----
46
62

skipif mysql # not compatible
query II rowsort label-4575
SELECT 46 AS col1, + 63 + - + NULLIF ( + COUNT ( * ), - 56 + - NULLIF ( - - COALESCE ( + 56, - - 14 + MAX ( 94 ) * - + 12 ), + 78 ) )
----
46
62

query I rowsort
SELECT ALL 86 - 96
----
-10

query I rowsort
SELECT + 98 * + + ( + 29 )
----
2842

onlyif mysql # aggregate syntax: 
query II rowsort label-4578
SELECT ALL 99 AS col2, + CASE - COUNT( * ) WHEN AVG ( + 60 ) THEN - 19 WHEN + MIN( DISTINCT - ( + - 53 ) ) THEN 80 END
----
99
NULL

skipif mysql # not compatible
query II rowsort label-4578
SELECT ALL 99 AS col2, + CASE - COUNT ( * ) WHEN AVG ( + 60 ) THEN - 19 WHEN + MIN ( DISTINCT - ( + - 53 ) ) THEN 80 END
----
99
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4579
SELECT 27 DIV + 12 + COUNT( * ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-4579
SELECT 27 / + 12 + COUNT ( * ) AS col0
----
3

query I rowsort
SELECT + 45 + - + ( + 72 ) * ( 79 )
----
-5643

query I rowsort
SELECT + 62 * - + 87 AS col0
----
-5394

query II rowsort
SELECT DISTINCT 62 * 36 AS col2, 30 AS col2
----
2232
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4583
SELECT CASE - - 97 WHEN + 94 THEN NULL ELSE - + CASE 47 WHEN + 31 / - 84 * - 99 THEN - 26 WHEN + - 83 + - 29 THEN COUNT( * ) WHEN 71 / + COUNT( * ) THEN NULL END + CAST( NULL AS SIGNED ) END / ( + 40 ) + + 82 + + - ( + NULLIF ( + 50, - 37 ) ) * + 95 / + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4583
SELECT CASE - - 97 WHEN + 94 THEN NULL ELSE - + CASE 47 WHEN + 31 / - 84 * - 99 THEN - 26 WHEN + - 83 + - 29 THEN COUNT ( * ) WHEN 71 / + COUNT ( * ) THEN NULL END + CAST ( NULL AS INTEGER ) END / ( + 40 ) + + 82 + + - ( + NULLIF ( + 50, - 37 ) ) * + 95 / + - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT + 2 * + + 24 * + - 75 col0
----
-3600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4585
SELECT + 20 - + - 50 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4585
SELECT + 20 - + - 50 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + ( + + ( 52 ) ) AS col2
----
52

query I rowsort
SELECT COALESCE ( - 59, + 73 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT + MAX( - - NULLIF ( + 49, 38 ) ) - - 80
----
129

skipif mysql # not compatible
query I rowsort label-4588
SELECT + MAX ( - - NULLIF ( + 49, 38 ) ) - - 80
----
129

query II rowsort
SELECT - 25, 88 AS col0
----
-25
88

query I rowsort
SELECT + 19 * + 68 + + 80
----
1372

onlyif mysql # aggregate syntax: 
query II rowsort label-4591
SELECT DISTINCT + ( + - 80 ) * + 96 + 9 * + 3 + 45 AS col0, 28 + COUNT( * ) AS col0
----
-7608
29

skipif mysql # not compatible
query II rowsort label-4591
SELECT DISTINCT + ( + - 80 ) * + 96 + 9 * + 3 + 45 AS col0, 28 + COUNT ( * ) AS col0
----
-7608
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4592
SELECT DISTINCT - + 54 * 12 + - MIN( ALL - + 12 )
----
-636

skipif mysql # not compatible
query I rowsort label-4592
SELECT DISTINCT - + 54 * 12 + - MIN ( ALL - + 12 )
----
-636

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT ALL COUNT( * ) * 59 + NULLIF ( + - 40, - - COUNT( * ) ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-4593
SELECT ALL COUNT ( * ) * 59 + NULLIF ( + - 40, - - COUNT ( * ) ) AS col1
----
19

query II rowsort
SELECT ALL + 33, + 90 col1
----
33
90

query I rowsort
SELECT DISTINCT 85 * 4 + - 87 + + 76 - - 12
----
341

query I rowsort
SELECT + 13 + - 24
----
-11

query II rowsort
SELECT - 32 col0, 9 AS col0
----
-32
9

query II rowsort
SELECT - 40 + 68 AS col0, - 3 AS col1
----
28
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4599
SELECT ALL + 25 + + CAST( + 29 AS SIGNED ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-4599
SELECT ALL + 25 + + CAST ( + 29 AS INTEGER ) AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT - + COUNT( * ) * 56 AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-4600
SELECT - + COUNT ( * ) * 56 AS col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4601
SELECT ALL - - 56 - - ( - MIN( 30 ) ) * - 49
----
1526

skipif mysql # not compatible
query I rowsort label-4601
SELECT ALL - - 56 - - ( - MIN ( 30 ) ) * - 49
----
1526

query II rowsort
SELECT 35, + 50 * + 58 * ( - 15 ) AS col1
----
35
-43500

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT ALL - 70 - - COUNT( * ) * - 63 AS col2
----
-133

skipif mysql # not compatible
query I rowsort label-4603
SELECT ALL - 70 - - COUNT ( * ) * - 63 AS col2
----
-133

query II rowsort
SELECT ALL 67, 45 col0
----
67
45

onlyif mysql # DIV for integer division: 
query III rowsort label-4605
SELECT - 5 + + + 3 DIV + + 40, + 14 + + 80 AS col1, - + 20 * 17 AS col2
----
-5
94
-340

skipif mysql # not compatible
query III rowsort label-4605
SELECT - 5 + + + 3 / + + 40, + 14 + + 80 AS col1, - + 20 * 17 AS col2
----
-5
94
-340

query I rowsort
SELECT + 81 + + - 88 col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT DISTINCT - CASE + - CASE WHEN NOT - 77 IS NULL THEN NULL ELSE + 28 * MIN( + 64 ) * + 26 / - 76 + - 36 + - - COUNT( * ) * + + 99 - + 51 - - 35 * - 2 + - 90 * 30 END WHEN 78 + COUNT( * ) THEN NULL WHEN COUNT( * ) + - + 70 THEN + MAX( DISTINCT + - 87 ) END * + AVG ( 97 ) + + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4607
SELECT DISTINCT - CASE + - CASE WHEN NOT - 77 IS NULL THEN NULL ELSE + 28 * MIN ( + 64 ) * + 26 / - 76 + - 36 + - - COUNT ( * ) * + + 99 - + 51 - - 35 * - 2 + - 90 * 30 END WHEN 78 + COUNT ( * ) THEN NULL WHEN COUNT ( * ) + - + 70 THEN + MAX ( DISTINCT + - 87 ) END * + AVG ( 97 ) + + + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 32 * 8 * - 30 col0
----
-7680

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT ALL + COUNT( * ) * + + 77 * + 20 * - CASE - COUNT( * ) WHEN - - 81 THEN NULL ELSE - - 41 END AS col0
----
-63140

skipif mysql # not compatible
query I rowsort label-4609
SELECT ALL + COUNT ( * ) * + + 77 * + 20 * - CASE - COUNT ( * ) WHEN - - 81 THEN NULL ELSE - - 41 END AS col0
----
-63140

query I rowsort
SELECT + ( - 14 ) col0
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4611
SELECT + 15 * - - 48 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4611
SELECT + 15 * - - 48 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4612
SELECT ALL - 8 DIV + 62 * + 6 + 36 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-4612
SELECT ALL - 8 / + 62 * + 6 + 36 AS col0
----
36

query I rowsort
SELECT ALL 67 + NULLIF ( - + ( - + 16 ), - 15 ) AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT ALL + ( - SUM( ALL + - 24 ) ) + + 77
----
101

skipif mysql # not compatible
query I rowsort label-4614
SELECT ALL + ( - SUM ( ALL + - 24 ) ) + + 77
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT ALL + 50 + + + SUM( ALL + 65 ) * - COUNT( * ) * - + 54
----
3560

skipif mysql # not compatible
query I rowsort label-4615
SELECT ALL + 50 + + + SUM ( ALL + 65 ) * - COUNT ( * ) * - + 54
----
3560

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

query I rowsort
SELECT + 79 * - NULLIF ( 72, - 38 + 79 ) + - 69 AS col2
----
-5757

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT DISTINCT + 48 + + COUNT( ALL - 38 ) * - 34 + - 70
----
-56

skipif mysql # not compatible
query I rowsort label-4618
SELECT DISTINCT + 48 + + COUNT ( ALL - 38 ) * - 34 + - 70
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-4619
SELECT - 58 + - COUNT( * ) + + + 86, - COUNT( * ) col2
----
27
-1

skipif mysql # not compatible
query II rowsort label-4619
SELECT - 58 + - COUNT ( * ) + + + 86, - COUNT ( * ) col2
----
27
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4620
SELECT ALL NULLIF ( - 58, - + MIN( - 9 ) + - CAST( NULL AS SIGNED ) ) + + 53 * + 22 col2, - 50
----
1108
-50

skipif mysql # not compatible
query II rowsort label-4620
SELECT ALL NULLIF ( - 58, - + MIN ( - 9 ) + - CAST ( NULL AS INTEGER ) ) + + 53 * + 22 col2, - 50
----
1108
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4621
SELECT + MAX( ALL + 70 )
----
70

skipif mysql # not compatible
query I rowsort label-4621
SELECT + MAX ( ALL + 70 )
----
70

query II rowsort
SELECT 68 * 97, + 13 AS col2
----
6596
13

query I rowsort
SELECT + 81 + - 23 - 15 * - + ( - 63 )
----
-887

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT - COALESCE ( 77, - 80 * 49 + 53, + - 25 + + COUNT( * ) ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-4624
SELECT - COALESCE ( 77, - 80 * 49 + 53, + - 25 + + COUNT ( * ) ) AS col1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT DISTINCT + 41 * + + SUM( 50 ) * + + 86 + + - ( + + CASE + 61 WHEN - + 55 THEN - 2 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4625
SELECT DISTINCT + 41 * + + SUM ( 50 ) * + + 86 + + - ( + + CASE + 61 WHEN - + 55 THEN - 2 ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4626
SELECT ALL - COUNT( * ) * 71 * CAST( NULL AS SIGNED ) - + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-4626
SELECT ALL - COUNT ( * ) * 71 * CAST ( NULL AS INTEGER ) - + 62
----
NULL

query I rowsort
SELECT + 5 + 4 + + + 55
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT ALL 44 - - 95 + + - NULLIF ( ( - COUNT( * ) ), AVG ( + 33 ) ) col2
----
140

skipif mysql # not compatible
query I rowsort label-4628
SELECT ALL 44 - - 95 + + - NULLIF ( ( - COUNT ( * ) ), AVG ( + 33 ) ) col2
----
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4629
SELECT - ( - CAST( NULL AS SIGNED ) ) * 52
----
NULL

skipif mysql # not compatible
query I rowsort label-4629
SELECT - ( - CAST ( NULL AS INTEGER ) ) * 52
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4630
SELECT - 99 * - ( - COUNT( * ) ) + - 43 + 19 * - + COUNT( * ) * - 26 + - + COUNT( DISTINCT + 76 )
----
351

skipif mysql # not compatible
query I rowsort label-4630
SELECT - 99 * - ( - COUNT ( * ) ) + - 43 + 19 * - + COUNT ( * ) * - 26 + - + COUNT ( DISTINCT + 76 )
----
351

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT DISTINCT + COUNT( * ) * - + 20 * + + 74
----
-1480

skipif mysql # not compatible
query I rowsort label-4631
SELECT DISTINCT + COUNT ( * ) * - + 20 * + + 74
----
-1480

query II rowsort
SELECT DISTINCT 94 AS col0, 88 AS col2
----
94
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4633
SELECT ALL + COUNT( - 15 ) DIV + + 58
----
0

skipif mysql # not compatible
query I rowsort label-4633
SELECT ALL + COUNT ( - 15 ) / + + 58
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4634
SELECT 34 DIV + 25 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4634
SELECT 34 / + 25 AS col2
----
1

query II rowsort
SELECT DISTINCT - 46 * + 85 * 5, - 7 AS col1
----
-19550
-7

query I rowsort
SELECT DISTINCT - ( + 83 ) + + + 74 + + + 28 * + 8 col2
----
215

query I rowsort
SELECT 17 + - - 17 AS col2
----
34

query I rowsort
SELECT 53 - - 24
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4639
SELECT SUM( - 97 ) - 1
----
-98

skipif mysql # not compatible
query I rowsort label-4639
SELECT SUM ( - 97 ) - 1
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4640
SELECT ALL + CAST( NULL AS SIGNED ) + - 16 * 24 * 39 AS col0, + 46 * - 90 AS col2
----
NULL
-4140

skipif mysql # not compatible
query II rowsort label-4640
SELECT ALL + CAST ( NULL AS INTEGER ) + - 16 * 24 * 39 AS col0, + 46 * - 90 AS col2
----
NULL
-4140

query II rowsort
SELECT - 64, 69 AS col1
----
-64
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT ALL + 92 + + - SUM( + 97 ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-4642
SELECT ALL + 92 + + - SUM ( + 97 ) AS col0
----
-5

query I rowsort
SELECT 39 * + 74
----
2886

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4644
SELECT 1 DIV 23 * COUNT( * ) + + - 91 AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-4644
SELECT 1 / 23 * COUNT ( * ) + + - 91 AS col0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT ALL - ( - CASE - 46 WHEN - - 64 THEN - MIN( + 50 ) * + SUM( ALL + + 95 ) ELSE - COUNT( * ) END ) + - 54
----
-55

skipif mysql # not compatible
query I rowsort label-4645
SELECT ALL - ( - CASE - 46 WHEN - - 64 THEN - MIN ( + 50 ) * + SUM ( ALL + + 95 ) ELSE - COUNT ( * ) END ) + - 54
----
-55

query I rowsort
SELECT DISTINCT 84 + + + 5
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-4647
SELECT DISTINCT - 91 AS col0, + COUNT( * ) * - + COUNT( ALL 71 )
----
-91
-1

skipif mysql # not compatible
query II rowsort label-4647
SELECT DISTINCT - 91 AS col0, + COUNT ( * ) * - + COUNT ( ALL 71 )
----
-91
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT ALL 61 + SUM( DISTINCT 63 ) AS col1
----
124

skipif mysql # not compatible
query I rowsort label-4648
SELECT ALL 61 + SUM ( DISTINCT 63 ) AS col1
----
124

query I rowsort
SELECT ALL - NULLIF ( - 92, - 92 + - 37 ) AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4650
SELECT DISTINCT + COUNT( 69 ) + - + ( + + 76 ) * 45
----
-3419

skipif mysql # not compatible
query I rowsort label-4650
SELECT DISTINCT + COUNT ( 69 ) + - + ( + + 76 ) * 45
----
-3419

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4651
SELECT - 60 / - 42 + - 72 + + 44 * + + MIN( + - 93 ) + - 96 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4651
SELECT - 60 / - 42 + - 72 + + 44 * + + MIN ( + - 93 ) + - 96 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4652
SELECT - COUNT( * ) DIV + 79 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4652
SELECT - COUNT ( * ) / + 79 AS col1
----
0

query I rowsort
SELECT ALL + - 43 + + 59
----
16

query II rowsort
SELECT ALL - 16, 54 AS col0
----
-16
54

query II rowsort
SELECT + 99 AS col2, 29 AS col2
----
99
29

query I rowsort
SELECT 6 * + - 22 - + - 96
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4657
SELECT + CAST( + + 25 AS SIGNED ) * - 11
----
-275

skipif mysql # not compatible
query I rowsort label-4657
SELECT + CAST ( + + 25 AS INTEGER ) * - 11
----
-275

query I rowsort
SELECT + - ( 69 ) * - + 13 * 25 + - 19 AS col1
----
22406

onlyif mysql # aggregate syntax: 
query I rowsort label-4659
SELECT ALL + 83 - + MAX( DISTINCT + 59 )
----
24

skipif mysql # not compatible
query I rowsort label-4659
SELECT ALL + 83 - + MAX ( DISTINCT + 59 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT ALL COUNT( * ) - - 44 * + - 33 + COUNT( * )
----
-1450

skipif mysql # not compatible
query I rowsort label-4660
SELECT ALL COUNT ( * ) - - 44 * + - 33 + COUNT ( * )
----
-1450

query I rowsort
SELECT ALL 62 - - + 26
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4662
SELECT - 31 DIV + - 83 DIV COUNT( * ) AS col0, + 99
----
0
99

skipif mysql # not compatible
query II rowsort label-4662
SELECT - 31 / + - 83 / COUNT ( * ) AS col0, + 99
----
0
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4663
SELECT DISTINCT 1 * + COUNT( * ) * COUNT( * ) * COUNT( * ) * 28 * 15 + + 98 + - - ( - 18 ) + - + ( - 87 ) DIV - - 80 AS col2
----
501

skipif mysql # not compatible
query I rowsort label-4663
SELECT DISTINCT 1 * + COUNT ( * ) * COUNT ( * ) * COUNT ( * ) * 28 * 15 + + 98 + - - ( - 18 ) + - + ( - 87 ) / - - 80 AS col2
----
501

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4664
SELECT 53 * + + 77 + + + 5 + COALESCE ( + 19, - SUM( + 29 ), NULLIF ( + + 46, - CAST( 12 AS SIGNED ) ) ), 29 - ( - 94 ) + 22 * CAST( NULL AS SIGNED ) + - 89 * 65 * + 49 AS col2
----
4105
NULL

skipif mysql # not compatible
query II rowsort label-4664
SELECT 53 * + + 77 + + + 5 + COALESCE ( + 19, - SUM ( + 29 ), NULLIF ( + + 46, - CAST ( 12 AS INTEGER ) ) ), 29 - ( - 94 ) + 22 * CAST ( NULL AS INTEGER ) + - 89 * 65 * + 49 AS col2
----
4105
NULL

query I rowsort
SELECT 52 + - 79 AS col1
----
-27

query II rowsort
SELECT ALL - - 28, - 22 AS col0
----
28
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4667
SELECT - + CAST( NULL AS SIGNED ) * - 28 + - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-4667
SELECT - + CAST ( NULL AS INTEGER ) * - 28 + - 19
----
NULL

query I rowsort
SELECT + 81 * + + 47
----
3807

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4669
SELECT DISTINCT + 78 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4669
SELECT DISTINCT + 78 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4670
SELECT ( - + 77 ) DIV 82 + + - 53 - - 99 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-4670
SELECT ( - + 77 ) / 82 + + - 53 - - 99 AS col1
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4671
SELECT 53 + 88 + - + COALESCE ( - + ( + + 54 ), - CAST( 69 AS SIGNED ) + + COUNT( ALL - 8 ), + 34, - + 1 ) * - - 29 - - 18 col1
----
1725

skipif mysql # not compatible
query I rowsort label-4671
SELECT 53 + 88 + - + COALESCE ( - + ( + + 54 ), - CAST ( 69 AS INTEGER ) + + COUNT ( ALL - 8 ), + 34, - + 1 ) * - - 29 - - 18 col1
----
1725

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT - MAX( - 88 ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-4672
SELECT - MAX ( - 88 ) AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4673
SELECT ALL - 60 + + - 4 * - COUNT( * ) + + - 69
----
-125

skipif mysql # not compatible
query I rowsort label-4673
SELECT ALL - 60 + + - 4 * - COUNT ( * ) + + - 69
----
-125

onlyif mysql # aggregate syntax: 
query II rowsort label-4674
SELECT ALL + 6 + 32 * + 13 + NULLIF ( 85, + 67 ) * - 94, 88 * COUNT( * ) + + 74 AS col2
----
-7568
162

skipif mysql # not compatible
query II rowsort label-4674
SELECT ALL + 6 + 32 * + 13 + NULLIF ( 85, + 67 ) * - 94, 88 * COUNT ( * ) + + 74 AS col2
----
-7568
162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4675
SELECT + SUM( + 74 ) + + CAST( + 39 AS SIGNED ) + + 39 AS col0
----
152

skipif mysql # not compatible
query I rowsort label-4675
SELECT + SUM ( + 74 ) + + CAST ( + 39 AS INTEGER ) + + 39 AS col0
----
152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4676
SELECT ALL 38 + + CAST( NULL AS SIGNED ) * - + 75 + + COUNT( * ) + - 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4676
SELECT ALL 38 + + CAST ( NULL AS INTEGER ) * - + 75 + + COUNT ( * ) + - 15 AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( + 27 ) * - 77 AS col1
----
-2079

onlyif mysql # aggregate syntax: 
query I rowsort label-4678
SELECT ALL + 70 + COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-4678
SELECT ALL + 70 + COUNT ( * )
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4679
SELECT + COALESCE ( + CASE - + 81 WHEN + 33 THEN + - 4 DIV ( + 60 ) + - COALESCE ( - 61, 1 * - - COUNT( * ), - 46, ( + 6 ) ) + + 49 * - + 49 * - 31 * - 97 * + + MIN( - 27 ) * - - CAST( NULL AS SIGNED ) WHEN + 2 + + - 29 THEN NULL WHEN 3 THEN NULL END, - COUNT( * ) * - - 51 - + ( + COUNT( * ) ), + 5, 46 ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-4679
SELECT + COALESCE ( + CASE - + 81 WHEN + 33 THEN + - 4 / ( + 60 ) + - COALESCE ( - 61, 1 * - - COUNT ( * ), - 46, ( + 6 ) ) + + 49 * - + 49 * - 31 * - 97 * + + MIN ( - 27 ) * - - CAST ( NULL AS INTEGER ) WHEN + 2 + + - 29 THEN NULL WHEN 3 THEN NULL END, - COUNT ( * ) * - - 51 - + ( + COUNT ( * ) ), + 5, 46 ) AS col1
----
-52

query I rowsort
SELECT + - 83 * - - 64 + + 60 AS col1
----
-5252

query I rowsort
SELECT + + 69 * - 27 + 32 AS col1
----
-1831

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT + COALESCE ( - + 95, COUNT( * ) ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-4682
SELECT + COALESCE ( - + 95, COUNT ( * ) ) AS col2
----
-95

query I rowsort
SELECT - - 93 + - 33 col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT + + COUNT( * ) * - 50 * 38 + + 88 AS col0
----
-1812

skipif mysql # not compatible
query I rowsort label-4684
SELECT + + COUNT ( * ) * - 50 * 38 + + 88 AS col0
----
-1812

query I rowsort
SELECT DISTINCT + + 28 col2
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-4686
SELECT DISTINCT - 96 * - 58, COUNT( * ) AS col2
----
5568
1

skipif mysql # not compatible
query II rowsort label-4686
SELECT DISTINCT - 96 * - 58, COUNT ( * ) AS col2
----
5568
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4687
SELECT - COUNT( * ) * + 60 * - ( + 46 ), COUNT( * ) AS col1
----
2760
1

skipif mysql # not compatible
query II rowsort label-4687
SELECT - COUNT ( * ) * + 60 * - ( + 46 ), COUNT ( * ) AS col1
----
2760
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4688
SELECT ALL - CAST( - 80 AS SIGNED ) * + - 47 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4688
SELECT ALL - CAST ( - 80 AS INTEGER ) * + - 47 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 52 * 15 * + COALESCE ( + ( ( + ( + - 25 ) ) ), - 44 ) + 77
----
-19423

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT + - COUNT( * ) * + - MAX( 27 )
----
27

skipif mysql # not compatible
query I rowsort label-4691
SELECT + - COUNT ( * ) * + - MAX ( 27 )
----
27

onlyif mysql # DIV for integer division: 
query II rowsort label-4692
SELECT DISTINCT 35 DIV - - 67, - 51 + + + 10 col0
----
0
-41

skipif mysql # not compatible
query II rowsort label-4692
SELECT DISTINCT 35 / - - 67, - 51 + + + 10 col0
----
0
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4693
SELECT DISTINCT - COUNT( ALL 40 ) DIV + + 88
----
0

skipif mysql # not compatible
query I rowsort label-4693
SELECT DISTINCT - COUNT ( ALL 40 ) / + + 88
----
0

query I rowsort
SELECT - 46 * 2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT ALL - 8 * - ( 29 ) * - + COUNT( + 97 ) + + - 83 + 32 AS col0
----
-283

skipif mysql # not compatible
query I rowsort label-4695
SELECT ALL - 8 * - ( 29 ) * - + COUNT ( + 97 ) + + - 83 + 32 AS col0
----
-283

onlyif mysql # DIV for integer division: 
query I rowsort label-4696
SELECT + 98 DIV + 33
----
2

skipif mysql # not compatible
query I rowsort label-4696
SELECT + 98 / + 33
----
2

query I rowsort
SELECT ALL - 73 + - + 60 - + + 8 + - 18
----
-159

query I rowsort
SELECT DISTINCT ( 52 ) + + 97 + 33 * + 79 + + 56 AS col2
----
2812

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT COUNT( DISTINCT 46 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4699
SELECT COUNT ( DISTINCT 46 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4700
SELECT ALL CAST( + 0 AS SIGNED ) + + 61 AS col0, - 6 * - COALESCE ( + + 16, + 33, CAST( NULL AS SIGNED ) * - 28, 61 ) * 34 + + COUNT( * ) - - 93 + 82 * 81 * - + COALESCE ( - 51, 54, CASE + AVG ( - 22 ) WHEN - + 69 + - - ( + + 16 ) + 21 THEN - - 22 - - 94 WHEN - - 58 THEN NULL ELSE NULL END, COUNT( * ) ) * - 80 AS col1
----
61
-27096002

skipif mysql # not compatible
query II rowsort label-4700
SELECT ALL CAST ( + 0 AS INTEGER ) + + 61 AS col0, - 6 * - COALESCE ( + + 16, + 33, CAST ( NULL AS INTEGER ) * - 28, 61 ) * 34 + + COUNT ( * ) - - 93 + 82 * 81 * - + COALESCE ( - 51, 54, CASE + AVG ( - 22 ) WHEN - + 69 + - - ( + + 16 ) + 21 THEN - - 22 - - 94 WHEN - - 58 THEN NULL ELSE NULL END, COUNT ( * ) ) * - 80 AS col1
----
61
-27096002

onlyif mysql # aggregate syntax: 
query II rowsort label-4701
SELECT 82 AS col0, MAX( + + 86 ) * 72 + - 2 col1
----
82
6190

skipif mysql # not compatible
query II rowsort label-4701
SELECT 82 AS col0, MAX ( + + 86 ) * 72 + - 2 col1
----
82
6190

onlyif mysql # aggregate syntax: 
query I rowsort label-4702
SELECT - MAX( ALL - + 71 ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-4702
SELECT - MAX ( ALL - + 71 ) AS col1
----
71

query I rowsort
SELECT + 44 * - 47 AS col1
----
-2068

query I rowsort
SELECT + 56 - 83 + + - 0 * 36
----
-27

query I rowsort
SELECT DISTINCT 85 + - - 75 * + + 0 col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT ALL MAX( + - 57 )
----
-57

skipif mysql # not compatible
query I rowsort label-4706
SELECT ALL MAX ( + - 57 )
----
-57

query I rowsort
SELECT ALL 14 + - 35
----
-21

query I rowsort
SELECT ALL - 29 * - 82 * - 12 AS col1
----
-28536

query I rowsort
SELECT DISTINCT 49 - + 82 + + 15 * - 97 col2
----
-1488

query I rowsort
SELECT - 78 - + 27 * - 53 * + 90
----
128712

query II rowsort
SELECT ALL + 30 AS col1, - 72
----
30
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-4712
SELECT DISTINCT 0, COUNT( * ) AS col0
----
0
1

skipif mysql # not compatible
query II rowsort label-4712
SELECT DISTINCT 0, COUNT ( * ) AS col0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4713
SELECT + - ( - - NULLIF ( 72, NULLIF ( - 83, - 33 + - 9 + + - 86 + + 94 + + 72 * - 62 + - MIN( ALL - 96 ) + - 77 / + - 33 ) ) ) + - + 14 AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-4713
SELECT + - ( - - NULLIF ( 72, NULLIF ( - 83, - 33 + - 9 + + - 86 + + 94 + + 72 * - 62 + - MIN ( ALL - 96 ) + - 77 / + - 33 ) ) ) + - + 14 AS col2
----
-86

query I rowsort
SELECT ALL 38 * - 88 AS col1
----
-3344

query II rowsort
SELECT DISTINCT + + 17, + 97 AS col1
----
17
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4716
SELECT ALL + + COUNT( * ) DIV + 65
----
0

skipif mysql # not compatible
query I rowsort label-4716
SELECT ALL + + COUNT ( * ) / + 65
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4717
SELECT DISTINCT + + CAST( + 65 AS SIGNED ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-4717
SELECT DISTINCT + + CAST ( + 65 AS INTEGER ) AS col1
----
65

query I rowsort
SELECT + - 12 + + 7 AS col1
----
-5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4719
SELECT ALL + - 34 DIV + 37 * + 22 AS col2, - CAST( 12 AS SIGNED ) + + 27 + - - 25
----
0
40

skipif mysql # not compatible
query II rowsort label-4719
SELECT ALL + - 34 / + 37 * + 22 AS col2, - CAST ( 12 AS INTEGER ) + + 27 + - - 25
----
0
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4720
SELECT + COUNT( ALL + 91 )
----
1

skipif mysql # not compatible
query I rowsort label-4720
SELECT + COUNT ( ALL + 91 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4721
SELECT ALL + 34 DIV - NULLIF ( 46, + - 78 + + - COUNT( * ) ) + + 16 DIV MAX( ALL 89 ) DIV - 82
----
0

skipif mysql # not compatible
query I rowsort label-4721
SELECT ALL + 34 / - NULLIF ( 46, + - 78 + + - COUNT ( * ) ) + + 16 / MAX ( ALL 89 ) / - 82
----
0

query I rowsort
SELECT DISTINCT - + 96 * - 38
----
3648

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT DISTINCT + + MIN( ALL + ( + 70 ) ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-4723
SELECT DISTINCT + + MIN ( ALL + ( + 70 ) ) AS col2
----
70

query II rowsort
SELECT DISTINCT + - ( - - 65 ) * - - 94 + + - 20 * - NULLIF ( - 0, - 82 + 11 ) + - ( + 94 ), 18 AS col1
----
-6204
18

query I rowsort
SELECT DISTINCT + 81 * + 39 * - ( - 23 ) + + + 89
----
72746

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT DISTINCT COUNT( * ) * 94 * - 48 * - - COALESCE ( + - SUM( - 69 ), - - 81 ) * + COUNT( 45 ) + - COUNT( * ) * - 6 AS col1
----
-311322

skipif mysql # not compatible
query I rowsort label-4726
SELECT DISTINCT COUNT ( * ) * 94 * - 48 * - - COALESCE ( + - SUM ( - 69 ), - - 81 ) * + COUNT ( 45 ) + - COUNT ( * ) * - 6 AS col1
----
-311322

onlyif mysql # aggregate syntax: 
query I rowsort label-4727
SELECT ALL 68 * 79 + + - COUNT( * ) * - ( - 1 )
----
5371

skipif mysql # not compatible
query I rowsort label-4727
SELECT ALL 68 * 79 + + - COUNT ( * ) * - ( - 1 )
----
5371

onlyif mysql # aggregate syntax: 
query II rowsort label-4728
SELECT - COUNT( * ) + 46 * - 36 * 10, + 33 + - 81 AS col0
----
-16561
-48

skipif mysql # not compatible
query II rowsort label-4728
SELECT - COUNT ( * ) + 46 * - 36 * 10, + 33 + - 81 AS col0
----
-16561
-48

query I rowsort
SELECT ALL + ( - - 68 )
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4730
SELECT DISTINCT + CAST( - ( 27 ) AS SIGNED )
----
-27

skipif mysql # not compatible
query I rowsort label-4730
SELECT DISTINCT + CAST ( - ( 27 ) AS INTEGER )
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4731
SELECT COALESCE ( - + 39, + + ( + 44 ) * + + COALESCE ( + 11, 18 * + - 70 + - 11 + - CASE - - 53 WHEN + 90 THEN 80 * COALESCE ( + MIN( - - 95 ), + 46 * - 62 + + 77 ) * 31 + - 54 - ( + 41 ) + + + CAST( - SUM( - 27 ) AS SIGNED ) END + + - 3 ) - 46 * - - 69 - + 54 )
----
-39

skipif mysql # not compatible
query I rowsort label-4731
SELECT COALESCE ( - + 39, + + ( + 44 ) * + + COALESCE ( + 11, 18 * + - 70 + - 11 + - CASE - - 53 WHEN + 90 THEN 80 * COALESCE ( + MIN ( - - 95 ), + 46 * - 62 + + 77 ) * 31 + - 54 - ( + 41 ) + + + CAST ( - SUM ( - 27 ) AS INTEGER ) END + + - 3 ) - 46 * - - 69 - + 54 )
----
-39

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

skipif mysql # not compatible
query I rowsort label-4732
SELECT ALL + CAST ( NULL AS INTEGER ) + - + 0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4733
SELECT 33 + + COUNT( * ) * 55
----
88

skipif mysql # not compatible
query I rowsort label-4733
SELECT 33 + + COUNT ( * ) * 55
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-4734
SELECT - 96 AS col0, + MIN( DISTINCT + 68 ) AS col1
----
-96
68

skipif mysql # not compatible
query II rowsort label-4734
SELECT - 96 AS col0, + MIN ( DISTINCT + 68 ) AS col1
----
-96
68

query I rowsort
SELECT ALL - 42 + - 96 + - 65 - + 77 AS col1
----
-280

query I rowsort
SELECT ALL 68 * - 95 AS col0
----
-6460

onlyif mysql # aggregate syntax: 
query II rowsort label-4737
SELECT 38 AS col2, COUNT( 64 ) * + + 69 * - 83
----
38
-5727

skipif mysql # not compatible
query II rowsort label-4737
SELECT 38 AS col2, COUNT ( 64 ) * + + 69 * - 83
----
38
-5727

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT 42 * + 66 * 7 + - + 59 - - + 64 * - 9 * + - COUNT( * ) * - - 57 AS col2
----
52177

skipif mysql # not compatible
query I rowsort label-4738
SELECT 42 * + 66 * 7 + - + 59 - - + 64 * - 9 * + - COUNT ( * ) * - - 57 AS col2
----
52177

query II rowsort
SELECT - 7 AS col2, COALESCE ( + 92, + 10 ) col2
----
-7
92

query I rowsort
SELECT DISTINCT 62 * + 87 * + 24
----
129456

query I rowsort
SELECT DISTINCT - 88 - 89 AS col2
----
-177

onlyif mysql # aggregate syntax: 
query II rowsort label-4742
SELECT ALL 63, 45 - - COUNT( ALL - - 27 ) AS col1
----
63
46

skipif mysql # not compatible
query II rowsort label-4742
SELECT ALL 63, 45 - - COUNT ( ALL - - 27 ) AS col1
----
63
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT ALL 97 - + - COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-4743
SELECT ALL 97 - + - COUNT ( * )
----
98

query I rowsort
SELECT ALL - 70 * - - 92 AS col2
----
-6440

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT DISTINCT 67 * + COUNT( * ) * - - 93 AS col1
----
6231

skipif mysql # not compatible
query I rowsort label-4745
SELECT DISTINCT 67 * + COUNT ( * ) * - - 93 AS col1
----
6231

onlyif mysql # aggregate syntax: 
query I rowsort label-4746
SELECT COUNT( ALL - 45 ) * 26 * 55
----
1430

skipif mysql # not compatible
query I rowsort label-4746
SELECT COUNT ( ALL - 45 ) * 26 * 55
----
1430

onlyif mysql # aggregate syntax: 
query I rowsort label-4747
SELECT 97 + MIN( - + 43 ) * + - 94
----
4139

skipif mysql # not compatible
query I rowsort label-4747
SELECT 97 + MIN ( - + 43 ) * + - 94
----
4139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4748
SELECT ALL 26, ( + - CAST( + 19 AS SIGNED ) ) + - - COUNT( * ) AS col1
----
26
-18

skipif mysql # not compatible
query II rowsort label-4748
SELECT ALL 26, ( + - CAST ( + 19 AS INTEGER ) ) + - - COUNT ( * ) AS col1
----
26
-18

query I rowsort
SELECT - 9 * + - 86
----
774

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT + 48 + + + COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-4750
SELECT + 48 + + + COUNT ( * )
----
49

query I rowsort
SELECT DISTINCT + 40 - + 16
----
24

query I rowsort
SELECT 89 + - - 26 + 67 + - 65 * + 91 AS col1
----
-5733

onlyif mysql # DIV for integer division: 
query II rowsort label-4753
SELECT ALL + 32, + 98 * 54 DIV + - 70 AS col2
----
32
-75

skipif mysql # not compatible
query II rowsort label-4753
SELECT ALL + 32, + 98 * 54 / + - 70 AS col2
----
32
-75

query I rowsort
SELECT + 75 * - 38
----
-2850

query II rowsort
SELECT ALL 62 AS col1, 2 AS col2
----
62
2

query I rowsort
SELECT ALL + 90 * 74 AS col0
----
6660

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4757
SELECT DISTINCT - 9 AS col0, NULLIF ( - 70, - - 77 DIV - - AVG ( DISTINCT + 21 ) ) * + + 63 * + 73 + 29 + + 68 + - COUNT( * ) - + - 85 DIV - + 24 + + - 57 * - 26 AS col2
----
-9
-320355

skipif mysql # not compatible
query II rowsort label-4757
SELECT DISTINCT - 9 AS col0, NULLIF ( - 70, - - 77 / - - AVG ( DISTINCT + 21 ) ) * + + 63 * + 73 + 29 + + 68 + - COUNT ( * ) - + - 85 / - + 24 + + - 57 * - 26 AS col2
----
-9
-320355

query I rowsort
SELECT - 98 + + CASE + 20 WHEN + 9 THEN + 52 * - ( 77 ) WHEN - - 19 * - - 92 * + + 82 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4759
SELECT MIN( 28 ) col2
----
28

skipif mysql # not compatible
query I rowsort label-4759
SELECT MIN ( 28 ) col2
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4760
SELECT ALL + COALESCE ( + 64, COUNT( * ) ) DIV + - 75, + MIN( + 83 ) AS col1
----
0
83

skipif mysql # not compatible
query II rowsort label-4760
SELECT ALL + COALESCE ( + 64, COUNT ( * ) ) / + - 75, + MIN ( + 83 ) AS col1
----
0
83

query I rowsort
SELECT - 42 * + 83 * + 43
----
-149898

query I rowsort
SELECT 61 * - 34 + - - 21 AS col2
----
-2053

query I rowsort
SELECT ALL 95 + + 88 * - 36 AS col0
----
-3073

onlyif mysql # DIV for integer division: 
query II rowsort label-4764
SELECT + + 91 AS col0, - 83 DIV 35 DIV + 63
----
91
0

skipif mysql # not compatible
query II rowsort label-4764
SELECT + + 91 AS col0, - 83 / 35 / + 63
----
91
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4765
SELECT 15 AS col2, MIN( - 3 ) AS col2
----
15
-3

skipif mysql # not compatible
query II rowsort label-4765
SELECT 15 AS col2, MIN ( - 3 ) AS col2
----
15
-3

query I rowsort
SELECT DISTINCT 56 + - - 52 + 0
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT ALL + 94 + + + COUNT( * ) * - 26
----
68

skipif mysql # not compatible
query I rowsort label-4767
SELECT ALL + 94 + + + COUNT ( * ) * - 26
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-4768
SELECT 29 DIV - 68
----
0

skipif mysql # not compatible
query I rowsort label-4768
SELECT 29 / - 68
----
0

query I rowsort
SELECT ALL - COALESCE ( + 85, - 54, - ( + 60 ) ) + - + 12 AS col0
----
-97

query II rowsort
SELECT DISTINCT - - 84, ( + - 52 ) * + 60 * - 74 - + + 65 AS col1
----
84
230815

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT ALL - + 94 + SUM( + 97 ) + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-4771
SELECT ALL - + 94 + SUM ( + 97 ) + COUNT ( * )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4772
SELECT 37 * - 0 + + 69 AS col2, 16 + - NULLIF ( ( + 37 ), + COUNT( * ) ) * - 71 - + 67 + - - 96 * COUNT( * ) - NULLIF ( + 95, COUNT( * ) + + 35 ) DIV + - NULLIF ( - 39, + + CAST( - + 73 AS SIGNED ) DIV + 14 + - 65 ) + + 36 + - COUNT( ALL - 50 ) AS col2
----
69
2705

skipif mysql # not compatible
query II rowsort label-4772
SELECT 37 * - 0 + + 69 AS col2, 16 + - NULLIF ( ( + 37 ), + COUNT ( * ) ) * - 71 - + 67 + - - 96 * COUNT ( * ) - NULLIF ( + 95, COUNT ( * ) + + 35 ) / + - NULLIF ( - 39, + + CAST ( - + 73 AS INTEGER ) / + 14 + - 65 ) + + 36 + - COUNT ( ALL - 50 ) AS col2
----
69
2705

onlyif mysql # DIV for integer division: 
query I rowsort label-4773
SELECT ALL ( - 12 ) DIV 39 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4773
SELECT ALL ( - 12 ) / 39 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4774
SELECT CAST( NULL AS SIGNED ) * - 6 * + CASE - 80 WHEN + 70 * + 49 + 88 THEN NULL WHEN 45 THEN + + 78 * + - 33 * - 62 + + 66 * - COUNT( * ) - - + 35 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4774
SELECT CAST ( NULL AS INTEGER ) * - 6 * + CASE - 80 WHEN + 70 * + 49 + 88 THEN NULL WHEN 45 THEN + + 78 * + - 33 * - 62 + + 66 * - COUNT ( * ) - - + 35 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4775
SELECT DISTINCT + 28 DIV + + 31
----
0

skipif mysql # not compatible
query I rowsort label-4775
SELECT DISTINCT + 28 / + + 31
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4776
SELECT ALL - CAST( - 91 AS SIGNED ) + 2 * + 96
----
283

skipif mysql # not compatible
query I rowsort label-4776
SELECT ALL - CAST ( - 91 AS INTEGER ) + 2 * + 96
----
283

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4777
SELECT COUNT( * ) * - COUNT( * ) DIV + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4777
SELECT COUNT ( * ) * - COUNT ( * ) / + COUNT ( * )
----
-1

query I rowsort
SELECT ALL - 47 * 75 col1
----
-3525

query I rowsort
SELECT ALL COALESCE ( + 10, + 32 + - - 32 + 99 * + 63 - 54, + 66 * - - 44 ) - + - 19 col1
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-4780
SELECT ALL - 74 - 98 DIV 10
----
-83

skipif mysql # not compatible
query I rowsort label-4780
SELECT ALL - 74 - 98 / 10
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4781
SELECT ALL MIN( ALL - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-4781
SELECT ALL MIN ( ALL - 0 )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4782
SELECT 78 * + 70 col1, 88 DIV 64 DIV + 79
----
5460
0

skipif mysql # not compatible
query II rowsort label-4782
SELECT 78 * + 70 col1, 88 / 64 / + 79
----
5460
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4783
SELECT 49 * MAX( DISTINCT 26 ) * + + CAST( + + COUNT( * ) AS SIGNED ) * + 49
----
62426

skipif mysql # not compatible
query I rowsort label-4783
SELECT 49 * MAX ( DISTINCT 26 ) * + + CAST ( + + COUNT ( * ) AS INTEGER ) * + 49
----
62426

query I rowsort
SELECT 52 + + 75 * 92 AS col2
----
6952

query I rowsort
SELECT 68 - - + 51 * 71
----
3689

onlyif mysql # aggregate syntax: 
query I rowsort label-4786
SELECT COUNT( * ) * - - 63
----
63

skipif mysql # not compatible
query I rowsort label-4786
SELECT COUNT ( * ) * - - 63
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4787
SELECT 77 - - + CAST( - - 89 AS SIGNED ) AS col2
----
166

skipif mysql # not compatible
query I rowsort label-4787
SELECT 77 - - + CAST ( - - 89 AS INTEGER ) AS col2
----
166

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4789
SELECT 3 DIV - - COUNT( ALL + 19 )
----
3

skipif mysql # not compatible
query I rowsort label-4789
SELECT 3 / - - COUNT ( ALL + 19 )
----
3

query I rowsort
SELECT DISTINCT 99 * + 53 * - 23 * 53 * - + 99
----
633213207

query I rowsort
SELECT ALL - 61 * + 48 col2
----
-2928

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT + MIN( - 96 ) * 87
----
-8352

skipif mysql # not compatible
query I rowsort label-4792
SELECT + MIN ( - 96 ) * 87
----
-8352

onlyif mysql # DIV for integer division: 
query I rowsort label-4793
SELECT 96 - - 62 DIV - - 67 + - 36 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-4793
SELECT 96 - - 62 / - - 67 + - 36 AS col2
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-4794
SELECT 83 DIV 35
----
2

skipif mysql # not compatible
query I rowsort label-4794
SELECT 83 / 35
----
2

query I rowsort
SELECT 26 * + 37 AS col0
----
962

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT DISTINCT + + COUNT( * ) + - + 1
----
0

skipif mysql # not compatible
query I rowsort label-4796
SELECT DISTINCT + + COUNT ( * ) + - + 1
----
0

query I rowsort
SELECT ALL - 84 + + + ( + 27 )
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4798
SELECT CASE - MAX( + COALESCE ( - - 85, + - ( + - CAST( NULL AS SIGNED ) ) * - - 29 + 2 ) ) WHEN COUNT( * ) THEN + 16 * + + 28 WHEN - 51 THEN + ( + + CAST( 54 AS SIGNED ) ) + + 56 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4798
SELECT CASE - MAX ( + COALESCE ( - - 85, + - ( + - CAST ( NULL AS INTEGER ) ) * - - 29 + 2 ) ) WHEN COUNT ( * ) THEN + 16 * + + 28 WHEN - 51 THEN + ( + + CAST ( 54 AS INTEGER ) ) + + 56 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4799
SELECT - - COALESCE ( - 20, - 10 + + - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) )
----
-20

skipif mysql # not compatible
query I rowsort label-4799
SELECT - - COALESCE ( - 20, - 10 + + - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) )
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-4800
SELECT - 67 + + 66 AS col2, COUNT( * ) AS col0
----
-1
1

skipif mysql # not compatible
query II rowsort label-4800
SELECT - 67 + + 66 AS col2, COUNT ( * ) AS col0
----
-1
1

onlyif mysql # DIV for integer division: 
query II rowsort label-4801
SELECT ALL + 4 * - 0 DIV 16 + + 76 + 34 + - ( - 47 ) AS col1, + 36
----
157
36

skipif mysql # not compatible
query II rowsort label-4801
SELECT ALL + 4 * - 0 / 16 + + 76 + 34 + - ( - 47 ) AS col1, + 36
----
157
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4802
SELECT DISTINCT + 76 * - COUNT( * ) * 88 - - + 21 + COUNT( * ) AS col1
----
-6666

skipif mysql # not compatible
query I rowsort label-4802
SELECT DISTINCT + 76 * - COUNT ( * ) * 88 - - + 21 + COUNT ( * ) AS col1
----
-6666

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT ALL - 40 * - + ( - - 88 ) + + COUNT( * ) + - 83 + + MAX( - 28 ) * - + MIN( + - 55 )
----
1898

skipif mysql # not compatible
query I rowsort label-4803
SELECT ALL - 40 * - + ( - - 88 ) + + COUNT ( * ) + - 83 + + MAX ( - 28 ) * - + MIN ( + - 55 )
----
1898

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4804
SELECT - MAX( + 43 ) - - COUNT( * ) AS col2, + 53 DIV + 13 AS col1
----
-42
4

skipif mysql # not compatible
query II rowsort label-4804
SELECT - MAX ( + 43 ) - - COUNT ( * ) AS col2, + 53 / + 13 AS col1
----
-42
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT 75 * + ( + + COUNT( * ) ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-4805
SELECT 75 * + ( + + COUNT ( * ) ) AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4806
SELECT - ( - MIN( 53 ) ) + 77 + + - 16 col2
----
114

skipif mysql # not compatible
query I rowsort label-4806
SELECT - ( - MIN ( 53 ) ) + 77 + + - 16 col2
----
114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4807
SELECT ALL + 60 * COUNT( 20 ) + - 80 DIV - + 63
----
61

skipif mysql # not compatible
query I rowsort label-4807
SELECT ALL + 60 * COUNT ( 20 ) + - 80 / - + 63
----
61

query I rowsort
SELECT + 81 + + 85
----
166

query I rowsort
SELECT + ( + 52 ) * - 25
----
-1300

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT DISTINCT 92 * - COUNT( * ) col2
----
-92

skipif mysql # not compatible
query I rowsort label-4810
SELECT DISTINCT 92 * - COUNT ( * ) col2
----
-92

query I rowsort
SELECT 42 * - 6 + + 0 + + - 45 * + - 51
----
2043

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT + 85 * - 90 + + 79 + + + MAX( - 45 ) * + 13 + - 4 AS col0
----
-8160

skipif mysql # not compatible
query I rowsort label-4812
SELECT + 85 * - 90 + + 79 + + + MAX ( - 45 ) * + 13 + - 4 AS col0
----
-8160

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4813
SELECT + CASE + 97 WHEN + 15 THEN AVG ( ALL - - 40 ) WHEN 99 THEN - 84 / - 45 - + - CAST( NULL AS DECIMAL ) * - 86 * - - 12 WHEN - 40 * + - COUNT( * ) + - - COUNT( * ) * + 68 * + + 91 THEN NULL ELSE NULL END * 65 / ( + 49 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4813
SELECT + CASE + 97 WHEN + 15 THEN AVG ( ALL - - 40 ) WHEN 99 THEN - 84 / - 45 - + - CAST ( NULL AS REAL ) * - 86 * - - 12 WHEN - 40 * + - COUNT ( * ) + - - COUNT ( * ) * + 68 * + + 91 THEN NULL ELSE NULL END * 65 / ( + 49 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4814
SELECT DISTINCT + COUNT( DISTINCT - 25 ) DIV - + 48 + 33 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-4814
SELECT DISTINCT + COUNT ( DISTINCT - 25 ) / - + 48 + 33 AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT - 3 + COUNT( - ( - 24 ) )
----
-2

skipif mysql # not compatible
query I rowsort label-4815
SELECT - 3 + COUNT ( - ( - 24 ) )
----
-2

query I rowsort
SELECT + 15 * + + 47 * - + 94 * + 72
----
-4771440

onlyif mysql # aggregate syntax: 
query I rowsort label-4817
SELECT MIN( DISTINCT 76 )
----
76

skipif mysql # not compatible
query I rowsort label-4817
SELECT MIN ( DISTINCT 76 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT + ( - 1 ) * + COUNT( * ) + - 0 + 90 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-4818
SELECT + ( - 1 ) * + COUNT ( * ) + - 0 + 90 AS col2
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-4819
SELECT + 60 col2, + 0 + NULLIF ( - COUNT( * ), 97 ) * NULLIF ( - 32, COUNT( * ) )
----
60
32

skipif mysql # not compatible
query II rowsort label-4819
SELECT + 60 col2, + 0 + NULLIF ( - COUNT ( * ), 97 ) * NULLIF ( - 32, COUNT ( * ) )
----
60
32

onlyif mysql # DIV for integer division: 
query I rowsort label-4820
SELECT ALL - 80 DIV - + 3
----
26

skipif mysql # not compatible
query I rowsort label-4820
SELECT ALL - 80 / - + 3
----
26

query I rowsort
SELECT ALL + 7 * + 28 AS col2
----
196

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT - ( + COUNT( * ) ) * 23 * 3 col1
----
-69

skipif mysql # not compatible
query I rowsort label-4822
SELECT - ( + COUNT ( * ) ) * 23 * 3 col1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT 16 * - ( COUNT( * ) ) + - - NULLIF ( - - ( 91 ), + 31 ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-4823
SELECT 16 * - ( COUNT ( * ) ) + - - NULLIF ( - - ( 91 ), + 31 ) AS col0
----
75

query I rowsort
SELECT DISTINCT 84 * 98 AS col2
----
8232

onlyif mysql # aggregate syntax: 
query I rowsort label-4825
SELECT - + COUNT( * ) * - COUNT( * ) - - 78 - 16 AS col2
----
63

skipif mysql # not compatible
query I rowsort label-4825
SELECT - + COUNT ( * ) * - COUNT ( * ) - - 78 - 16 AS col2
----
63

query II rowsort
SELECT ALL 2 col0, 26
----
2
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4827
SELECT ALL + 79 * + CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) / + 81 * - + 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4827
SELECT ALL + 79 * + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) / + 81 * - + 70 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 21 + + 82
----
61

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4829
SELECT DISTINCT + - 40 + - + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4829
SELECT DISTINCT + - 40 + - + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4830
SELECT DISTINCT - 88 + - 37 DIV 57 AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-4830
SELECT DISTINCT - 88 + - 37 / 57 AS col2
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4831
SELECT - - COUNT( * ) DIV - 73 * 23 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4831
SELECT - - COUNT ( * ) / - 73 * 23 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT ALL - - COUNT( * ) + - 3 col2
----
-2

skipif mysql # not compatible
query I rowsort label-4832
SELECT ALL - - COUNT ( * ) + - 3 col2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4833
SELECT - - CAST( + 19 AS SIGNED ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-4833
SELECT - - CAST ( + 19 AS INTEGER ) AS col2
----
19

query I rowsort
SELECT ALL - 38 + 89
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4835
SELECT ALL - + ( - 87 ) DIV COUNT( * ) + 44 * + 6 * - COUNT( * ) col2
----
-177

skipif mysql # not compatible
query I rowsort label-4835
SELECT ALL - + ( - 87 ) / COUNT ( * ) + 44 * + 6 * - COUNT ( * ) col2
----
-177

query II rowsort
SELECT - 60 + 0 + - 46 AS col0, 90
----
-106
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4837
SELECT DISTINCT - COUNT( * ) DIV + 51 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4837
SELECT DISTINCT - COUNT ( * ) / + 51 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4838
SELECT ALL - + 23 * ( 75 ) AS col2, + CAST( NULL AS SIGNED )
----
-1725
NULL

skipif mysql # not compatible
query II rowsort label-4838
SELECT ALL - + 23 * ( 75 ) AS col2, + CAST ( NULL AS INTEGER )
----
-1725
NULL

query I rowsort
SELECT DISTINCT + + 60 + 5 AS col2
----
65

query I rowsort
SELECT DISTINCT - 70 * + - 17
----
1190

onlyif mysql # DIV for integer division: 
query I rowsort label-4841
SELECT ALL + - 53 DIV 78 + 22 + - - 5 - - 75 AS col1
----
102

skipif mysql # not compatible
query I rowsort label-4841
SELECT ALL + - 53 / 78 + 22 + - - 5 - - 75 AS col1
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4842
SELECT ALL - - NULLIF ( + - CASE - ( CAST( - + 21 AS SIGNED ) ) WHEN 30 + - + 99 THEN - 11 ELSE NULL END, + 6 + 13 ) * + + 59 * ( + + ( + COUNT( * ) ) ) * 75 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4842
SELECT ALL - - NULLIF ( + - CASE - ( CAST ( - + 21 AS INTEGER ) ) WHEN 30 + - + 99 THEN - 11 ELSE NULL END, + 6 + 13 ) * + + 59 * ( + + ( + COUNT ( * ) ) ) * 75 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT 42 * + COUNT( * ) + + 5 * + + 59
----
337

skipif mysql # not compatible
query I rowsort label-4843
SELECT 42 * + COUNT ( * ) + + 5 * + + 59
----
337

onlyif mysql # aggregate syntax: 
query II rowsort label-4844
SELECT ( - + 39 ), - MIN( ALL + + 15 ) + COUNT( * ) AS col0
----
-39
-14

skipif mysql # not compatible
query II rowsort label-4844
SELECT ( - + 39 ), - MIN ( ALL + + 15 ) + COUNT ( * ) AS col0
----
-39
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT + CASE - ( 65 ) WHEN - 59 THEN - - 69 + - - AVG ( - 97 ) * + COUNT( * ) / - 31 WHEN 57 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4845
SELECT + CASE - ( 65 ) WHEN - 59 THEN - - 69 + - - AVG ( - 97 ) * + COUNT ( * ) / - 31 WHEN 57 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT ( COUNT( - 52 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4846
SELECT ( COUNT ( - 52 ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4847
SELECT ALL + 89 DIV 41 - + 80
----
-78

skipif mysql # not compatible
query I rowsort label-4847
SELECT ALL + 89 / 41 - + 80
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-4848
SELECT ( COUNT( * ) ) col0, - 5 + + - 16
----
1
-21

skipif mysql # not compatible
query II rowsort label-4848
SELECT ( COUNT ( * ) ) col0, - 5 + + - 16
----
1
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT DISTINCT + MIN( - 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-4849
SELECT DISTINCT + MIN ( - 80 )
----
-80

query I rowsort
SELECT + ( 15 ) * - 20 col2
----
-300

query I rowsort
SELECT + ( - 0 ) AS col0
----
0

query II rowsort
SELECT - 74 * + - 98 AS col2, 88 + - + 63 + - + NULLIF ( 62, - 93 )
----
7252
-37

query I rowsort
SELECT ( - - 53 ) col2
----
53

query I rowsort
SELECT ALL 85 * 5 AS col0
----
425

onlyif mysql # DIV for integer division: 
query I rowsort label-4855
SELECT - 91 DIV + ( 28 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-4855
SELECT - 91 / + ( 28 ) AS col2
----
-3

query I rowsort
SELECT + 32 * - 58 * 21
----
-38976

query I rowsort
SELECT ALL 38 * + - 28 AS col2
----
-1064

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4858
SELECT ALL - 12 * - CASE + - CASE + + 35 WHEN - + 9 * + - ( 10 ) THEN NULL WHEN 7 THEN NULL ELSE 89 END WHEN - 41 THEN + ( + + 94 ) * + 80 + - 0 - - 52 - - CAST( NULL AS SIGNED ) END * + - 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4858
SELECT ALL - 12 * - CASE + - CASE + + 35 WHEN - + 9 * + - ( 10 ) THEN NULL WHEN 7 THEN NULL ELSE 89 END WHEN - 41 THEN + ( + + 94 ) * + 80 + - 0 - - 52 - - CAST ( NULL AS INTEGER ) END * + - 45 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 84 * + 63 * + 61 AS col2
----
322812

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT + 96 * SUM( + 86 )
----
8256

skipif mysql # not compatible
query I rowsort label-4860
SELECT + 96 * SUM ( + 86 )
----
8256

onlyif mysql # aggregate syntax: 
query I rowsort label-4861
SELECT ALL - 58 * + ( + - ( - COUNT( * ) ) ) + + + 97 * ( + 96 )
----
9254

skipif mysql # not compatible
query I rowsort label-4861
SELECT ALL - 58 * + ( + - ( - COUNT ( * ) ) ) + + + 97 * ( + 96 )
----
9254

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4862
SELECT DISTINCT CASE - CAST( NULL AS SIGNED ) WHEN - + SUM( + 58 ) THEN NULL WHEN + 97 THEN + - 71 + - MAX( DISTINCT - + 18 ) ELSE - - 20 END
----
20

skipif mysql # not compatible
query I rowsort label-4862
SELECT DISTINCT CASE - CAST ( NULL AS INTEGER ) WHEN - + SUM ( + 58 ) THEN NULL WHEN + 97 THEN + - 71 + - MAX ( DISTINCT - + 18 ) ELSE - - 20 END
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-4863
SELECT ALL - - 44 * COUNT( * ) + + - 88 + + - 10 AS col0, + 27
----
-54
27

skipif mysql # not compatible
query II rowsort label-4863
SELECT ALL - - 44 * COUNT ( * ) + + - 88 + + - 10 AS col0, + 27
----
-54
27

query I rowsort
SELECT + 85 + - 39 * + 51 AS col2
----
-1904

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT + - 79 + ( - COUNT( * ) )
----
-80

skipif mysql # not compatible
query I rowsort label-4865
SELECT + - 79 + ( - COUNT ( * ) )
----
-80

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4866
SELECT + NULLIF ( + - COUNT( * ), + + 48 * + - 78 * - 50 + - MAX( + CAST( 28 AS DECIMAL ) ) ) + + COALESCE ( - 1, 61 + + - 70 + - MAX( ALL - - 71 ) ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4866
SELECT + NULLIF ( + - COUNT ( * ), + + 48 * + - 78 * - 50 + - MAX ( + CAST ( 28 AS REAL ) ) ) + + COALESCE ( - 1, 61 + + - 70 + - MAX ( ALL - - 71 ) ) AS col1
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4867
SELECT DISTINCT + NULLIF ( 91, - CAST( NULL AS SIGNED ) ) * - MAX( ALL + 87 ) AS col2
----
-7917

skipif mysql # not compatible
query I rowsort label-4867
SELECT DISTINCT + NULLIF ( 91, - CAST ( NULL AS INTEGER ) ) * - MAX ( ALL + 87 ) AS col2
----
-7917

query I rowsort
SELECT + 49 + + 19 AS col0
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4869
SELECT ALL - + 87 * - CAST( - - 80 AS SIGNED ) AS col2
----
6960

skipif mysql # not compatible
query I rowsort label-4869
SELECT ALL - + 87 * - CAST ( - - 80 AS INTEGER ) AS col2
----
6960

query I rowsort
SELECT ALL + 7 * + 36 AS col0
----
252

query I rowsort
SELECT DISTINCT 45 * - 45
----
-2025

query I rowsort
SELECT + COALESCE ( + 42, + 74 ) + - 16 * - 80 - - 8 AS col1
----
1330

query I rowsort
SELECT - + 63 - + 54
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT - + CASE + - AVG ( 56 ) WHEN COUNT( * ) THEN + 82 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4874
SELECT - + CASE + - AVG ( 56 ) WHEN COUNT ( * ) THEN + 82 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4875
SELECT 92 - - + 38 + + CAST( NULL AS SIGNED ) * + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4875
SELECT 92 - - + 38 + + CAST ( NULL AS INTEGER ) * + + COUNT ( * )
----
NULL

query II rowsort
SELECT + 51 * - 83 col0, - 4 + - ( - 12 )
----
-4233
8

query I rowsort
SELECT - 21 * - - 37 + 27 AS col1
----
-750

query I rowsort
SELECT 46 + 76 AS col2
----
122

query I rowsort
SELECT DISTINCT - 97 * + 37
----
-3589

query I rowsort
SELECT 62 * - 69 AS col2
----
-4278

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4881
SELECT ALL - 15 DIV - + COALESCE ( + 55, 28, + - 72 * - + 87 + + + 54 * COUNT( * ) + + 10 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4881
SELECT ALL - 15 / - + COALESCE ( + 55, 28, + - 72 * - + 87 + + + 54 * COUNT ( * ) + + 10 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4882
SELECT 68 - + - MIN( + 84 ) + - 24
----
128

skipif mysql # not compatible
query I rowsort label-4882
SELECT 68 - + - MIN ( + 84 ) + - 24
----
128

query II rowsort
SELECT + 87 col1, + 78 * + + 21
----
87
1638

query I rowsort
SELECT 87 * - - 92
----
8004

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT 58 + + MIN( DISTINCT - + 86 ) + - 88 * 93 * 8 * - + 46 * - 66
----
-198773020

skipif mysql # not compatible
query I rowsort label-4885
SELECT 58 + + MIN ( DISTINCT - + 86 ) + - 88 * 93 * 8 * - + 46 * - 66
----
-198773020

query I rowsort
SELECT 61 * + + 7 * + 41
----
17507

query I rowsort
SELECT 68 + + 24 * + COALESCE ( 44, + 1 ) * - 68
----
-71740

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4888
SELECT COUNT( * ) DIV - 41 col2
----
0

skipif mysql # not compatible
query I rowsort label-4888
SELECT COUNT ( * ) / - 41 col2
----
0

query I rowsort
SELECT ALL + 53 + - - 60
----
113

query I rowsort
SELECT DISTINCT - 25 * 3 AS col2
----
-75

query I rowsort
SELECT 87 + 38
----
125

query II rowsort
SELECT ALL - 58, + 95 AS col0
----
-58
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4893
SELECT COUNT( ALL - ( 7 ) ) + + - 84
----
-83

skipif mysql # not compatible
query I rowsort label-4893
SELECT COUNT ( ALL - ( 7 ) ) + + - 84
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4894
SELECT ALL + 53 + + COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-4894
SELECT ALL + 53 + + COUNT ( * )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT 77 * + - NULLIF ( + 4, - + ( 69 ) ) * SUM( ALL + 86 ) AS col0
----
-26488

skipif mysql # not compatible
query I rowsort label-4895
SELECT 77 * + - NULLIF ( + 4, - + ( 69 ) ) * SUM ( ALL + 86 ) AS col0
----
-26488

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT - NULLIF ( - 7, - 32 - + 35 * + + 75 + 4 ) * - - 0 - - - 99 + COUNT( * ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-4896
SELECT - NULLIF ( - 7, - 32 - + 35 * + + 75 + 4 ) * - - 0 - - - 99 + COUNT ( * ) AS col2
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4897
SELECT - CAST( - MIN( ALL - 93 ) AS SIGNED ) + - MIN( DISTINCT + 92 ) + 29
----
-156

skipif mysql # not compatible
query I rowsort label-4897
SELECT - CAST ( - MIN ( ALL - 93 ) AS INTEGER ) + - MIN ( DISTINCT + 92 ) + 29
----
-156

query I rowsort
SELECT 81 * 28 * + 65 * 1
----
147420

onlyif mysql # aggregate syntax: 
query II rowsort label-4899
SELECT ALL MAX( ALL 56 ) + + 96, 74 AS col0
----
152
74

skipif mysql # not compatible
query II rowsort label-4899
SELECT ALL MAX ( ALL 56 ) + + 96, 74 AS col0
----
152
74

query I rowsort
SELECT + 42 * CASE + 31 WHEN - 26 THEN NULL ELSE + 73 END + + + 32
----
3098

query I rowsort
SELECT ALL - 36 * 66
----
-2376

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT 37 + 62 * + COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-4902
SELECT 37 + 62 * + COUNT ( * )
----
99

query I rowsort
SELECT - + 53 col1
----
-53

query II rowsort
SELECT + 67, ( + 77 ) AS col0
----
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4905
SELECT ALL CAST( + 38 AS SIGNED ) - 60 AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-4905
SELECT ALL CAST ( + 38 AS INTEGER ) - 60 AS col0
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4906
SELECT DISTINCT - 53 / + CAST( NULL AS SIGNED ) * + 71 * - MIN( DISTINCT + + 10 ) + - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-4906
SELECT DISTINCT - 53 / + CAST ( NULL AS INTEGER ) * + 71 * - MIN ( DISTINCT + + 10 ) + - 55
----
NULL

query I rowsort
SELECT 19 * 88
----
1672

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT ALL CASE COUNT( * ) WHEN 58 + + 76 THEN 52 END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4908
SELECT ALL CASE COUNT ( * ) WHEN 58 + + 76 THEN 52 END * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4909
SELECT NULLIF ( - + COUNT( * ), 77 * COUNT( * ) ) + + + COUNT( * ) + 23
----
23

skipif mysql # not compatible
query I rowsort label-4909
SELECT NULLIF ( - + COUNT ( * ), 77 * COUNT ( * ) ) + + + COUNT ( * ) + 23
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4910
SELECT + 58 + + NULLIF ( 55, + 6 ) + 80 * - 74 + - + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4910
SELECT + 58 + + NULLIF ( 55, + 6 ) + 80 * - 74 + - + CAST ( NULL AS INTEGER ) col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT - SUM( + + 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-4912
SELECT - SUM ( + + 27 )
----
-27

query I rowsort
SELECT 72 * + + 4 * 85
----
24480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4914
SELECT 42 * + + COUNT( CAST( 53 AS SIGNED ) ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-4914
SELECT 42 * + + COUNT ( CAST ( 53 AS INTEGER ) ) AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4915
SELECT 78 + + 17 + + - MIN( + ( - - 55 ) ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-4915
SELECT 78 + + 17 + + - MIN ( + ( - - 55 ) ) AS col1
----
40

query I rowsort
SELECT ALL 10 * + 34 AS col1
----
340

query II rowsort
SELECT ALL 86, + 57 AS col0
----
86
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4918
SELECT + MIN( ALL + 33 )
----
33

skipif mysql # not compatible
query I rowsort label-4918
SELECT + MIN ( ALL + 33 )
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4919
SELECT MIN( ALL 26 ) * NULLIF ( 19, + COUNT( * ) * + 9 - ( - COUNT( * ) ) + - 37 * + 21 / 81 ) AS col1, - CAST( + COUNT( * ) AS SIGNED ) AS col1
----
494
-1

skipif mysql # not compatible
query II rowsort label-4919
SELECT MIN ( ALL 26 ) * NULLIF ( 19, + COUNT ( * ) * + 9 - ( - COUNT ( * ) ) + - 37 * + 21 / 81 ) AS col1, - CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
494
-1

query I rowsort
SELECT NULLIF ( + 33, - - 51 ) * - 34 + - ( - + 39 ) AS col0
----
-1083

onlyif mysql # aggregate syntax: 
query I rowsort label-4921
SELECT ALL COALESCE ( - + 19, + ( - - COUNT( * ) ) ) * - + ( 12 ) - 33 + - 75 + + COUNT( * ) col1
----
121

skipif mysql # not compatible
query I rowsort label-4921
SELECT ALL COALESCE ( - + 19, + ( - - COUNT ( * ) ) ) * - + ( 12 ) - 33 + - 75 + + COUNT ( * ) col1
----
121

onlyif mysql # aggregate syntax: 
query II rowsort label-4922
SELECT + COUNT( * ) AS col1, + 3 + ( - - MIN( ALL + 67 ) ) + 16 AS col2
----
1
86

skipif mysql # not compatible
query II rowsort label-4922
SELECT + COUNT ( * ) AS col1, + 3 + ( - - MIN ( ALL + 67 ) ) + 16 AS col2
----
1
86

query II rowsort
SELECT 11 * - - ( + - 67 ) + ( 46 ) + - 19 AS col1, + 52 AS col1
----
-710
52

query I rowsort
SELECT ALL + 21 + - - 65 + 14
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-4925
SELECT COUNT( * ) AS col2, 62
----
1
62

skipif mysql # not compatible
query II rowsort label-4925
SELECT COUNT ( * ) AS col2, 62
----
1
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4926
SELECT DISTINCT 67 + + + COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-4926
SELECT DISTINCT 67 + + + COUNT ( * )
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4927
SELECT ALL + 48 + COALESCE ( + COUNT( * ), - - 85 + + COUNT( * ) + - 28 + - + 96 * + 76 + + 22 + - - 9 * - 29 + - - 14 DIV + 80, 9 ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-4927
SELECT ALL + 48 + COALESCE ( + COUNT ( * ), - - 85 + + COUNT ( * ) + - 28 + - + 96 * + 76 + + 22 + - - 9 * - 29 + - - 14 / + 80, 9 ) AS col2
----
49

query II rowsort
SELECT + 8 col2, 62
----
8
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4929
SELECT ALL - 21 + + + MAX( DISTINCT - 21 ) * + CASE - 69 WHEN - - 78 THEN + 72 + 68 + - COALESCE ( + 16, - 75 + + 9, - 32 DIV AVG ( - 30 ) ) * - 72 + + NULLIF ( + 29, - 36 ) * + 4 * 23 WHEN - 13 THEN + 50 ELSE CAST( - 5 AS SIGNED ) END
----
84

skipif mysql # not compatible
query I rowsort label-4929
SELECT ALL - 21 + + + MAX ( DISTINCT - 21 ) * + CASE - 69 WHEN - - 78 THEN + 72 + 68 + - COALESCE ( + 16, - 75 + + 9, - 32 / AVG ( - 30 ) ) * - 72 + + NULLIF ( + 29, - 36 ) * + 4 * 23 WHEN - 13 THEN + 50 ELSE CAST ( - 5 AS INTEGER ) END
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT DISTINCT + 67 + 73 * + - COUNT( * ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-4930
SELECT DISTINCT + 67 + 73 * + - COUNT ( * ) AS col0
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-4931
SELECT COUNT( * ) AS col2, 85
----
1
85

skipif mysql # not compatible
query II rowsort label-4931
SELECT COUNT ( * ) AS col2, 85
----
1
85

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4932
SELECT ( COUNT( * ) ) / CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4932
SELECT ( COUNT ( * ) ) / CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT 12 * + + 27 AS col2
----
324

query II rowsort
SELECT ALL - 51 col1, - 45
----
-51
-45

query II rowsort
SELECT + 19 AS col0, ( - 25 )
----
19
-25

query II rowsort
SELECT 22 * - 14, - 48 col0
----
-308
-48

query I rowsort
SELECT DISTINCT + 31 * 99 AS col1
----
3069

query I rowsort
SELECT ALL + 42 + 39 col1
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4939
SELECT - COUNT( * ) * - 90 + - 41 * + ( - 79 ) * - MAX( ALL - CASE - CAST( + 82 AS SIGNED ) WHEN - + 31 THEN NULL ELSE + - 81 + - 92 * 11 END ) + 94 - 43 * - 66 * - + 74 * - CAST( NULL AS SIGNED ) - + AVG ( + 96 ) - - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-4939
SELECT - COUNT ( * ) * - 90 + - 41 * + ( - 79 ) * - MAX ( ALL - CASE - CAST ( + 82 AS INTEGER ) WHEN - + 31 THEN NULL ELSE + - 81 + - 92 * 11 END ) + 94 - 43 * - 66 * - + 74 * - CAST ( NULL AS INTEGER ) - + AVG ( + 96 ) - - 94
----
NULL

query I rowsort
SELECT ALL - - COALESCE ( + + 47, 4 * + - 23 * + 97 ) col1
----
47

query I rowsort
SELECT 96 * - 24
----
-2304

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT DISTINCT - ( COUNT( * ) ) * 1 + 61 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-4942
SELECT DISTINCT - ( COUNT ( * ) ) * 1 + 61 AS col2
----
60

query II rowsort
SELECT 1 AS col2, 92 * + 61
----
1
5612

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT DISTINCT + 49 - COUNT( * ) + + + 14 + COUNT( * ) - + - ( - COALESCE ( 12, 23, + CASE - - COUNT( * ) WHEN + - SUM( + 74 ) * - 91 THEN - 74 END + + 64 * - 31 ) ) * + COUNT( DISTINCT 73 )
----
51

skipif mysql # not compatible
query I rowsort label-4944
SELECT DISTINCT + 49 - COUNT ( * ) + + + 14 + COUNT ( * ) - + - ( - COALESCE ( 12, 23, + CASE - - COUNT ( * ) WHEN + - SUM ( + 74 ) * - 91 THEN - 74 END + + 64 * - 31 ) ) * + COUNT ( DISTINCT 73 )
----
51

query I rowsort
SELECT - 84 + + - 65 AS col0
----
-149

query I rowsort
SELECT NULLIF ( 80, - 0 * - 85 )
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4947
SELECT - ( + 66 ) * - - 20 * + ( + COUNT( 17 ) ) + + 58 DIV - 94
----
-1320

skipif mysql # not compatible
query I rowsort label-4947
SELECT - ( + 66 ) * - - 20 * + ( + COUNT ( 17 ) ) + + 58 / - 94
----
-1320

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT + + COUNT( * ) * + 18
----
18

skipif mysql # not compatible
query I rowsort label-4948
SELECT + + COUNT ( * ) * + 18
----
18

query II rowsort
SELECT ALL 1, 92 + - 15 AS col0
----
1
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4950
SELECT - - 61 + COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-4950
SELECT - - 61 + COUNT ( * )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT - - MAX( 6 )
----
6

skipif mysql # not compatible
query I rowsort label-4951
SELECT - - MAX ( 6 )
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4952
SELECT ALL + CASE + - 37 WHEN + 1 THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE + CAST( 3 AS SIGNED ) END * + - 23 + - 50 + + 13 AS col0
----
-106

skipif mysql # not compatible
query I rowsort label-4952
SELECT ALL + CASE + - 37 WHEN + 1 THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE + CAST ( 3 AS INTEGER ) END * + - 23 + - 50 + + 13 AS col0
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT + + 69 * MAX( ALL + - 73 ) col2
----
-5037

skipif mysql # not compatible
query I rowsort label-4953
SELECT + + 69 * MAX ( ALL + - 73 ) col2
----
-5037

query I rowsort
SELECT ALL + 64 * 0 col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4955
SELECT ALL 68 col0, - COUNT( * )
----
68
-1

skipif mysql # not compatible
query II rowsort label-4955
SELECT ALL 68 col0, - COUNT ( * )
----
68
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4956
SELECT + 63 + 72 + - - COUNT( * ) AS col2, + 7 * - 79 * COUNT( * )
----
136
-553

skipif mysql # not compatible
query II rowsort label-4956
SELECT + 63 + 72 + - - COUNT ( * ) AS col2, + 7 * - 79 * COUNT ( * )
----
136
-553

query I rowsort
SELECT - COALESCE ( - + 84, - 47 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4958
SELECT - SUM( ALL + + 83 ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-4958
SELECT - SUM ( ALL + + 83 ) AS col0
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4959
SELECT + CAST( - 67 AS SIGNED ) DIV COUNT( ALL - ( 92 ) ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-4959
SELECT + CAST ( - 67 AS INTEGER ) / COUNT ( ALL - ( 92 ) ) AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT ALL MIN( ALL - + COALESCE ( - - 25, 8 ) ) + + COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-4960
SELECT ALL MIN ( ALL - + COALESCE ( - - 25, 8 ) ) + + COUNT ( * )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT + ( - 40 ) - + MAX( - 75 )
----
35

skipif mysql # not compatible
query I rowsort label-4961
SELECT + ( - 40 ) - + MAX ( - 75 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4962
SELECT + COUNT( * ) * + + 26 * 50
----
1300

skipif mysql # not compatible
query I rowsort label-4962
SELECT + COUNT ( * ) * + + 26 * 50
----
1300

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT ALL + CASE - 37 WHEN + ( 13 ) THEN NULL WHEN + - MAX( - + 99 ) THEN - - NULLIF ( + - 17, - 91 * - COUNT( * ) + 87 / - 86 - - 73 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4963
SELECT ALL + CASE - 37 WHEN + ( 13 ) THEN NULL WHEN + - MAX ( - + 99 ) THEN - - NULLIF ( + - 17, - 91 * - COUNT ( * ) + 87 / - 86 - - 73 ) END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4964
SELECT ALL 5 * + + 61 + - 25 DIV - 99 AS col1
----
305

skipif mysql # not compatible
query I rowsort label-4964
SELECT ALL 5 * + + 61 + - 25 / - 99 AS col1
----
305

onlyif mysql # aggregate syntax: 
query II rowsort label-4965
SELECT ( - + 72 ) AS col1, + ( COUNT( * ) ) AS col1
----
-72
1

skipif mysql # not compatible
query II rowsort label-4965
SELECT ( - + 72 ) AS col1, + ( COUNT ( * ) ) AS col1
----
-72
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4966
SELECT ALL - 26 * 73 + + 92 DIV ( - 64 ) AS col1
----
-1899

skipif mysql # not compatible
query I rowsort label-4966
SELECT ALL - 26 * 73 + + 92 / ( - 64 ) AS col1
----
-1899

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT + 14 - ( CASE + 13 WHEN + - MAX( - + 36 ) THEN - COUNT( * ) * + - COUNT( * ) END ) - + 12 + 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4967
SELECT + 14 - ( CASE + 13 WHEN + - MAX ( - + 36 ) THEN - COUNT ( * ) * + - COUNT ( * ) END ) - + 12 + 90 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 20 * - 75 * - 35 AS col2
----
52500

onlyif mysql # DIV for integer division: 
query I rowsort label-4969
SELECT ( 28 ) DIV + - 47 + + - 26 AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-4969
SELECT ( 28 ) / + - 47 + + - 26 AS col0
----
-26

query I rowsort
SELECT 53 * + 76 - + 64
----
3964

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT ALL SUM( + 36 ) * 28 - + + ( COUNT( * ) ) + SUM( ALL + 11 ) + + 96 + - 83 * NULLIF ( + + 15, + + 13 ) * + 91 + - 9 col1
----
-112190

skipif mysql # not compatible
query I rowsort label-4971
SELECT ALL SUM ( + 36 ) * 28 - + + ( COUNT ( * ) ) + SUM ( ALL + 11 ) + + 96 + - 83 * NULLIF ( + + 15, + + 13 ) * + 91 + - 9 col1
----
-112190

query I rowsort
SELECT - 67 * - + 61 AS col2
----
4087

query I rowsort
SELECT + ( - 62 ) + + 33 AS col2
----
-29

query I rowsort
SELECT ALL - ( ( - 42 ) ) * + 68 + 98
----
2954

query II rowsort
SELECT NULLIF ( - 64, + 50 ) AS col0, 5 AS col0
----
-64
5

query I rowsort
SELECT DISTINCT + - 6 * + 22
----
-132

query I rowsort
SELECT - + 42 + + ( 69 ) * + 73 AS col0
----
4995

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4978
SELECT ALL + - 80 * - CAST( COUNT( * ) AS SIGNED ) - - + 76 AS col0
----
156

skipif mysql # not compatible
query I rowsort label-4978
SELECT ALL + - 80 * - CAST ( COUNT ( * ) AS INTEGER ) - - + 76 AS col0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4979
SELECT - CAST( NULL AS SIGNED ) + - + 32 - - 94 / + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-4979
SELECT - CAST ( NULL AS INTEGER ) + - + 32 - - 94 / + 68
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4980
SELECT ALL + COUNT( * ) / - NULLIF ( - MAX( ALL - ( - CAST( NULL AS SIGNED ) ) ), - - 34 ) / - + 35 + + AVG ( DISTINCT + - 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4980
SELECT ALL + COUNT ( * ) / - NULLIF ( - MAX ( ALL - ( - CAST ( NULL AS INTEGER ) ) ), - - 34 ) / - + 35 + + AVG ( DISTINCT + - 39 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4981
SELECT + - COALESCE ( - ( + MAX( 63 ) ), CAST( NULL AS SIGNED ) ) * + ( + - 50 ) * + 42 * + 81 * - 52, 7 * + 73 + - + 38 AS col1
----
557247600
473

skipif mysql # not compatible
query II rowsort label-4981
SELECT + - COALESCE ( - ( + MAX ( 63 ) ), CAST ( NULL AS INTEGER ) ) * + ( + - 50 ) * + 42 * + 81 * - 52, 7 * + 73 + - + 38 AS col1
----
557247600
473

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4982
SELECT 50 * + - 89 + - NULLIF ( + 74, 36 ) + - + 72 * - CAST( NULL AS DECIMAL ) + + 31 + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-4982
SELECT 50 * + - 89 + - NULLIF ( + 74, 36 ) + - + 72 * - CAST ( NULL AS REAL ) + + 31 + 50
----
NULL

query I rowsort
SELECT + - COALESCE ( - 39, 39 + + 18, + + 23 ) AS col2
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-4984
SELECT - - ( + + 93 ) DIV + 4
----
23

skipif mysql # not compatible
query I rowsort label-4984
SELECT - - ( + + 93 ) / + 4
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT - - 59 * + 34 + COUNT( * ) AS col1
----
2007

skipif mysql # not compatible
query I rowsort label-4985
SELECT - - 59 * + 34 + COUNT ( * ) AS col1
----
2007

query I rowsort
SELECT ALL + 53 * - 91 * 99
----
-477477

onlyif mysql # aggregate syntax: 
query I rowsort label-4987
SELECT ALL + + COUNT( * ) * + 71 * - 4
----
-284

skipif mysql # not compatible
query I rowsort label-4987
SELECT ALL + + COUNT ( * ) * + 71 * - 4
----
-284

onlyif mysql # aggregate syntax: 
query I rowsort label-4988
SELECT SUM( + ( - ( + 84 ) ) ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-4988
SELECT SUM ( + ( - ( + 84 ) ) ) AS col0
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4989
SELECT DISTINCT - + 22 * CAST( 21 AS SIGNED ) - - 49
----
-413

skipif mysql # not compatible
query I rowsort label-4989
SELECT DISTINCT - + 22 * CAST ( 21 AS INTEGER ) - - 49
----
-413

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4990
SELECT ALL NULLIF ( + + CAST( - + MIN( 88 ) AS SIGNED ), - AVG ( + 11 ) * - - CAST( ( - - 49 ) AS SIGNED ) ) col0
----
-88

skipif mysql # not compatible
query I rowsort label-4990
SELECT ALL NULLIF ( + + CAST ( - + MIN ( 88 ) AS INTEGER ), - AVG ( + 11 ) * - - CAST ( ( - - 49 ) AS INTEGER ) ) col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT + COUNT( ALL + 57 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4991
SELECT + COUNT ( ALL + 57 ) AS col1
----
1

query I rowsort
SELECT + ( + + 15 ) * - 1 + 16 AS col2
----
1

query I rowsort
SELECT ALL + 84 + + + 87 * + 4 * - 34
----
-11748

query I rowsort
SELECT - COALESCE ( + - CASE + + 0 WHEN + 85 THEN - + 39 ELSE + + 94 + + 82 END, - 34, 41 )
----
176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4995
SELECT ALL - 20 + + COUNT( * ) DIV + + 54
----
-20

skipif mysql # not compatible
query I rowsort label-4995
SELECT ALL - 20 + + COUNT ( * ) / + + 54
----
-20

query I rowsort
SELECT - ( - 84 ) - 52 * 83 AS col1
----
-4232

query I rowsort
SELECT DISTINCT - 39 + - 59 AS col0
----
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-4998
SELECT - COUNT( * ) AS col2, 44
----
-1
44

skipif mysql # not compatible
query II rowsort label-4998
SELECT - COUNT ( * ) AS col2, 44
----
-1
44

query II rowsort
SELECT ALL 40 AS col0, - 81
----
40
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5000
SELECT - COALESCE ( - 17, - + MAX( 42 ) + + - 55 )
----
17

skipif mysql # not compatible
query I rowsort label-5000
SELECT - COALESCE ( - 17, - + MAX ( 42 ) + + - 55 )
----
17

query I rowsort
SELECT ALL - 21 + - 25
----
-46

query I rowsort
SELECT ALL + 66 + 74
----
140

onlyif mysql # aggregate syntax: 
query II rowsort label-5003
SELECT ALL ( MAX( - 65 ) ) + + COUNT( * ) + + ( + 86 ), - 9 * + - 61 col1
----
22
549

skipif mysql # not compatible
query II rowsort label-5003
SELECT ALL ( MAX ( - 65 ) ) + + COUNT ( * ) + + ( + 86 ), - 9 * + - 61 col1
----
22
549

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5004
SELECT + 15 + - + 36 * + COALESCE ( 54, 75 ) + 24 * + 14 * CAST( NULL AS SIGNED )
-