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 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5004
SELECT + 15 + - + 36 * + COALESCE ( 54, 75 ) + 24 * + 14 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 49 * - - 77 AS col1
----
3773

query II rowsort
SELECT ALL 51, + 28 col1
----
51
28

onlyif mysql # DIV for integer division: 
query II rowsort label-5007
SELECT ALL + 5 DIV + - 15 * + 96 + + 94 AS col0, - 61 AS col1
----
94
-61

skipif mysql # not compatible
query II rowsort label-5007
SELECT ALL + 5 / + - 15 * + 96 + + 94 AS col0, - 61 AS col1
----
94
-61

query I rowsort
SELECT - 79 * - 22
----
1738

query I rowsort
SELECT + 55 * 97 * + 34
----
181390

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

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

query I rowsort
SELECT ALL 82 * + 68 AS col2
----
5576

onlyif mysql # aggregate syntax: 
query II rowsort label-5012
SELECT CASE 91 WHEN 30 - - COUNT( * ) THEN + 38 WHEN + 95 THEN NULL END, 77 AS col0
----
NULL
77

skipif mysql # not compatible
query II rowsort label-5012
SELECT CASE 91 WHEN 30 - - COUNT ( * ) THEN + 38 WHEN + 95 THEN NULL END, 77 AS col0
----
NULL
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT DISTINCT COUNT( * ) * - - 59 * 83 + - + 88 AS col2
----
4809

skipif mysql # not compatible
query I rowsort label-5013
SELECT DISTINCT COUNT ( * ) * - - 59 * 83 + - + 88 AS col2
----
4809

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5015
SELECT + - CAST( NULL AS DECIMAL ), - 39 AS col1
----
NULL
-39

skipif mysql # not compatible
query II rowsort label-5015
SELECT + - CAST ( NULL AS REAL ), - 39 AS col1
----
NULL
-39

query II rowsort
SELECT 94 * + COALESCE ( + 47, - + 68, 9 * + 90 ) AS col1, + 31
----
4418
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5017
SELECT - + 86 * + 18 - - CAST( + 59 AS SIGNED ) AS col2, + COALESCE ( + 88, + 75 - 63 ) * 85 AS col0
----
-1489
7480

skipif mysql # not compatible
query II rowsort label-5017
SELECT - + 86 * + 18 - - CAST ( + 59 AS INTEGER ) AS col2, + COALESCE ( + 88, + 75 - 63 ) * 85 AS col0
----
-1489
7480

query II rowsort
SELECT DISTINCT - + 62 col0, + 30 + + 85 AS col0
----
-62
115

query I rowsort
SELECT 74 * + ( 23 ) + + - ( - 89 ) AS col0
----
1791

query II rowsort
SELECT ALL - - 85 AS col2, + 44 AS col0
----
85
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5021
SELECT DISTINCT - COALESCE ( - - 79, - MAX( ALL 57 ) + 90 DIV + 38 + - + 84 )
----
-79

skipif mysql # not compatible
query I rowsort label-5021
SELECT DISTINCT - COALESCE ( - - 79, - MAX ( ALL 57 ) + 90 / + 38 + - + 84 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5022
SELECT DISTINCT - + 36 + + 11 * + + 62 * 22 + - 27 - 68 * + 20 * - + 72 * - COUNT( * ) * - 19 AS col2
----
1875421

skipif mysql # not compatible
query I rowsort label-5022
SELECT DISTINCT - + 36 + + 11 * + + 62 * 22 + - 27 - 68 * + 20 * - + 72 * - COUNT ( * ) * - 19 AS col2
----
1875421

query II rowsort
SELECT ALL - 94, 3 AS col1
----
-94
3

query I rowsort
SELECT DISTINCT 12 + + 31
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-5025
SELECT - 60 DIV + + 49 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5025
SELECT - 60 / + + 49 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5026
SELECT DISTINCT - 81 + + COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-5026
SELECT DISTINCT - 81 + + COUNT ( * )
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5027
SELECT 98 * + 20 + - - CASE - CAST( 60 AS SIGNED ) WHEN - 99 * - - 59 + 80 + - 61 * - 62 THEN NULL WHEN - ( + + COUNT( * ) ) THEN - 64 ELSE - + 82 * 69 END * 49
----
-275282

skipif mysql # not compatible
query I rowsort label-5027
SELECT 98 * + 20 + - - CASE - CAST ( 60 AS INTEGER ) WHEN - 99 * - - 59 + 80 + - 61 * - 62 THEN NULL WHEN - ( + + COUNT ( * ) ) THEN - 64 ELSE - + 82 * 69 END * 49
----
-275282

onlyif mysql # DIV for integer division: 
query I rowsort label-5028
SELECT 77 DIV 84
----
0

skipif mysql # not compatible
query I rowsort label-5028
SELECT 77 / 84
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT DISTINCT 51 + COUNT( * ) + + 63 AS col0
----
115

skipif mysql # not compatible
query I rowsort label-5029
SELECT DISTINCT 51 + COUNT ( * ) + + 63 AS col0
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT DISTINCT + 53 + - 44 + + 17 + - + 65 + - MAX( - 40 ) * - 48 * - 92
----
176601

skipif mysql # not compatible
query I rowsort label-5030
SELECT DISTINCT + 53 + - 44 + + 17 + - + 65 + - MAX ( - 40 ) * - 48 * - 92
----
176601

query II rowsort
SELECT DISTINCT + 80 * - 16, - 25 col2
----
-1280
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT ALL - 89 + + - MAX( + 33 ) + - 8 AS col0
----
-130

skipif mysql # not compatible
query I rowsort label-5032
SELECT ALL - 89 + + - MAX ( + 33 ) + - 8 AS col0
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-5033
SELECT 93 - - 56 * + COUNT( * ) AS col0
----
149

skipif mysql # not compatible
query I rowsort label-5033
SELECT 93 - - 56 * + COUNT ( * ) AS col0
----
149

query I rowsort
SELECT 96 * 33 AS col1
----
3168

onlyif mysql # aggregate syntax: 
query I rowsort label-5035
SELECT 2 - - COUNT( * ) * + 53
----
55

skipif mysql # not compatible
query I rowsort label-5035
SELECT 2 - - COUNT ( * ) * + 53
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5036
SELECT DISTINCT - COALESCE ( + ( - - 70 ), + 72 * 23 * + 23, 24 + - COALESCE ( - CASE 36 WHEN + 54 / + 79 + + 27 / - 3 + + 93 + + ( + 19 ) THEN - CAST( - 94 AS SIGNED ) ELSE NULL END, + + COUNT( * ) ), + 46 * - ( - + 65 ) ) * + ( 63 ) AS col2
----
-4410

skipif mysql # not compatible
query I rowsort label-5036
SELECT DISTINCT - COALESCE ( + ( - - 70 ), + 72 * 23 * + 23, 24 + - COALESCE ( - CASE 36 WHEN + 54 / + 79 + + 27 / - 3 + + 93 + + ( + 19 ) THEN - CAST ( - 94 AS INTEGER ) ELSE NULL END, + + COUNT ( * ) ), + 46 * - ( - + 65 ) ) * + ( 63 ) AS col2
----
-4410

query I rowsort
SELECT ALL 2 * - 45
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5038
SELECT DISTINCT + CASE + + 14 WHEN + 95 + + 30 THEN + 77 * - 96 WHEN - 26 * AVG ( - 20 ) THEN NULL END - - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5038
SELECT DISTINCT + CASE + + 14 WHEN + 95 + + 30 THEN + 77 * - 96 WHEN - 26 * AVG ( - 20 ) THEN NULL END - - - COUNT ( * ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5039
SELECT + 92 - - 55 DIV - 74 col2
----
92

skipif mysql # not compatible
query I rowsort label-5039
SELECT + 92 - - 55 / - 74 col2
----
92

query I rowsort
SELECT 40 * - 76 AS col1
----
-3040

query I rowsort
SELECT + 36 + - 30 AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5042
SELECT - 59 + SUM( + 85 ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-5042
SELECT - 59 + SUM ( + 85 ) AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5043
SELECT - 29 * + ( + 2 ) - - COUNT( * ) + + + 17 - - 36
----
-4

skipif mysql # not compatible
query I rowsort label-5043
SELECT - 29 * + ( + 2 ) - - COUNT ( * ) + + + 17 - - 36
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT + COUNT( * ) * - 50 + - 57 col1
----
-107

skipif mysql # not compatible
query I rowsort label-5044
SELECT + COUNT ( * ) * - 50 + - 57 col1
----
-107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5045
SELECT ALL - 37 / - NULLIF ( ( + CASE 35 WHEN - 62 THEN 5 WHEN 94 THEN - CAST( NULL AS SIGNED ) * + 6 END ), - 12 + - ( + CASE COUNT( * ) WHEN SUM( 85 ) THEN CAST( + + 60 AS DECIMAL ) / 44 + - 52 WHEN - 15 + - NULLIF ( + 6, + 3 ) THEN NULL ELSE NULL END ) * 42 ), COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5045
SELECT ALL - 37 / - NULLIF ( ( + CASE 35 WHEN - 62 THEN 5 WHEN 94 THEN - CAST ( NULL AS INTEGER ) * + 6 END ), - 12 + - ( + CASE COUNT ( * ) WHEN SUM ( 85 ) THEN CAST ( + + 60 AS REAL ) / 44 + - 52 WHEN - 15 + - NULLIF ( + 6, + 3 ) THEN NULL ELSE NULL END ) * 42 ), COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT DISTINCT - 26 + - + 71 + COUNT( * ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-5046
SELECT DISTINCT - 26 + - + 71 + COUNT ( * ) AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5047
SELECT + 95 * - + 29 + - COUNT( * ) * - COUNT( * ) * - - 27
----
-2728

skipif mysql # not compatible
query I rowsort label-5047
SELECT + 95 * - + 29 + - COUNT ( * ) * - COUNT ( * ) * - - 27
----
-2728

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

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

query I rowsort
SELECT 88 * - 98 col2
----
-8624

onlyif mysql # aggregate syntax: 
query I rowsort label-5050
SELECT + + MIN( + 15 ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-5050
SELECT + + MIN ( + 15 ) AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5051
SELECT ALL COUNT( * ) + + - 24 + + COUNT( * ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-5051
SELECT ALL COUNT ( * ) + + - 24 + + COUNT ( * ) AS col0
----
-22

query II rowsort
SELECT ( - 17 ) + 55 * - 17 + 31 AS col2, 2
----
-921
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5053
SELECT DISTINCT 51 + - ( + 98 ) + + 42 DIV 51 * - + 53
----
-47

skipif mysql # not compatible
query I rowsort label-5053
SELECT DISTINCT 51 + - ( + 98 ) + + 42 / 51 * - + 53
----
-47

query I rowsort
SELECT DISTINCT - 21 + - 97 * + - NULLIF ( - - 68, - + 11 ) AS col1
----
6575

query I rowsort
SELECT 71 - - - 28 + - 72 + - 59 AS col0
----
-88

query I rowsort
SELECT 6 * + 36
----
216

query I rowsort
SELECT 12 + 35 * 67
----
2357

query I rowsort
SELECT DISTINCT 97 - + - 84 AS col0
----
181

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT - COUNT( ALL + 39 )
----
-1

skipif mysql # not compatible
query I rowsort label-5059
SELECT - COUNT ( ALL + 39 )
----
-1

query I rowsort
SELECT 32 * + 6
----
192

query I rowsort
SELECT 6 - ( + 52 ) + 93
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5062
SELECT 12 + - CAST( - 62 AS SIGNED ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-5062
SELECT 12 + - CAST ( - 62 AS INTEGER ) AS col0
----
74

query I rowsort
SELECT 21 * - ( + 46 )
----
-966

onlyif mysql # DIV for integer division: 
query I rowsort label-5064
SELECT ALL + 59 DIV - 65 * + 95 DIV + 20
----
0

skipif mysql # not compatible
query I rowsort label-5064
SELECT ALL + 59 / - 65 * + 95 / + 20
----
0

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

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

query I rowsort
SELECT - 2 + + + 1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5067
SELECT - COUNT( - 50 ) + + + CASE - - 47 WHEN - 57 THEN + COUNT( * ) END + 8 + 76 + - 9 * - COUNT( * ) / + + 25 + + - MAX( DISTINCT + 42 ) - - CAST( 3 AS SIGNED ) * + - 97 + + + 66 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5067
SELECT - COUNT ( - 50 ) + + + CASE - - 47 WHEN - 57 THEN + COUNT ( * ) END + 8 + 76 + - 9 * - COUNT ( * ) / + + 25 + + - MAX ( DISTINCT + 42 ) - - CAST ( 3 AS INTEGER ) * + - 97 + + + 66 AS col0
----
NULL

query I rowsort
SELECT - 48 * - 34 AS col2
----
1632

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT COUNT( * ) * COALESCE ( COUNT( * ), 32, 79 ) + - COUNT( * ) * 27 col0
----
-26

skipif mysql # not compatible
query I rowsort label-5069
SELECT COUNT ( * ) * COALESCE ( COUNT ( * ), 32, 79 ) + - COUNT ( * ) * 27 col0
----
-26

query I rowsort
SELECT DISTINCT + 30 * 28 + 59 * - 78
----
-3762

query I rowsort
SELECT ALL 53 * - 94 + + 12
----
-4970

query I rowsort
SELECT - 18 * ( 36 * - ( + ( 33 ) ) )
----
21384

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5073
SELECT ALL - CAST( 12 AS SIGNED ) * - 54 + - 73
----
575

skipif mysql # not compatible
query I rowsort label-5073
SELECT ALL - CAST ( 12 AS INTEGER ) * - 54 + - 73
----
575

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5074
SELECT DISTINCT 28 * 75 + - 42 * + ( CAST( CASE + 34 WHEN - COALESCE ( CAST( NULL AS SIGNED ), + COUNT( * ) + 41 ) * + 37 THEN NULL WHEN - SUM( ALL 99 ) THEN NULL ELSE + 46 END AS SIGNED ) ) AS col2
----
168

skipif mysql # not compatible
query I rowsort label-5074
SELECT DISTINCT 28 * 75 + - 42 * + ( CAST ( CASE + 34 WHEN - COALESCE ( CAST ( NULL AS INTEGER ), + COUNT ( * ) + 41 ) * + 37 THEN NULL WHEN - SUM ( ALL 99 ) THEN NULL ELSE + 46 END AS INTEGER ) ) AS col2
----
168

query I rowsort
SELECT ALL 97 * + 82 + + 45 AS col0
----
7999

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5076
SELECT DISTINCT + CAST( - 95 AS SIGNED ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-5076
SELECT DISTINCT + CAST ( - 95 AS INTEGER ) AS col0
----
-95

query I rowsort
SELECT - 82 - 42 AS col2
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-5078
SELECT + COUNT( - COALESCE ( 69, - 85 ) ) * 28 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-5078
SELECT + COUNT ( - COALESCE ( 69, - 85 ) ) * 28 AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT COALESCE ( - 70, CASE - CASE - 64 WHEN MAX( + 20 ) THEN NULL WHEN 92 THEN NULL ELSE 9 / 16 END WHEN - 99 THEN NULL WHEN + CASE CASE 48 WHEN 26 * - 29 THEN - 54 END WHEN + 13 + + 40 THEN 8 END THEN NULL ELSE + COUNT( * ) END ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-5079
SELECT COALESCE ( - 70, CASE - CASE - 64 WHEN MAX ( + 20 ) THEN NULL WHEN 92 THEN NULL ELSE 9 / 16 END WHEN - 99 THEN NULL WHEN + CASE CASE 48 WHEN 26 * - 29 THEN - 54 END WHEN + 13 + + 40 THEN 8 END THEN NULL ELSE + COUNT ( * ) END ) AS col2
----
-70

query I rowsort
SELECT DISTINCT 65 * + 52 + 44 * - 9 AS col1
----
2984

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5081
SELECT ALL ( - 0 ) * + 73 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5081
SELECT ALL ( - 0 ) * + 73 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5082
SELECT CASE COUNT( * ) WHEN 56 THEN + 18 * 28 + - 20 WHEN ( - 9 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5082
SELECT CASE COUNT ( * ) WHEN 56 THEN + 18 * 28 + - 20 WHEN ( - 9 ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5083
SELECT SUM( DISTINCT + CAST( 43 AS SIGNED ) ) col1
----
43

skipif mysql # not compatible
query I rowsort label-5083
SELECT SUM ( DISTINCT + CAST ( 43 AS INTEGER ) ) col1
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5084
SELECT + NULLIF ( 62, COUNT( * ) * CAST( NULL AS SIGNED ) )
----
62

skipif mysql # not compatible
query I rowsort label-5084
SELECT + NULLIF ( 62, COUNT ( * ) * CAST ( NULL AS INTEGER ) )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT DISTINCT COUNT( * ) * - 60 + - 95
----
-155

skipif mysql # not compatible
query I rowsort label-5085
SELECT DISTINCT COUNT ( * ) * - 60 + - 95
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT + COALESCE ( COUNT( * ), + 17 * 15 ) - - 28 col0
----
29

skipif mysql # not compatible
query I rowsort label-5086
SELECT + COALESCE ( COUNT ( * ), + 17 * 15 ) - - 28 col0
----
29

query I rowsort
SELECT ALL 77 * - 10 + 55 * + 71 AS col2
----
3135

query I rowsort
SELECT + ( 69 ) * - 55 AS col1
----
-3795

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT DISTINCT COALESCE ( + 36, - 49, - CASE - COUNT( DISTINCT ( + 78 ) ) WHEN - 58 + 31 THEN NULL WHEN 45 * + COUNT( * ) THEN + 32 END * - 60 - 57 ) * 66
----
2376

skipif mysql # not compatible
query I rowsort label-5089
SELECT DISTINCT COALESCE ( + 36, - 49, - CASE - COUNT ( DISTINCT ( + 78 ) ) WHEN - 58 + 31 THEN NULL WHEN 45 * + COUNT ( * ) THEN + 32 END * - 60 - 57 ) * 66
----
2376

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5090
SELECT ALL + COUNT( * ) * + 19 - ( CAST( 3 AS SIGNED ) + - 31 )
----
47

skipif mysql # not compatible
query I rowsort label-5090
SELECT ALL + COUNT ( * ) * + 19 - ( CAST ( 3 AS INTEGER ) + - 31 )
----
47

query I rowsort
SELECT + COALESCE ( 61, - 65 * 52, - 78 ) AS col1
----
61

query I rowsort
SELECT - 14 * + 18 - 4
----
-256

query I rowsort
SELECT + 50 - 85
----
-35

query I rowsort
SELECT ALL 56 * 72
----
4032

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT + COUNT( 92 ) * - 31 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-5095
SELECT + COUNT ( 92 ) * - 31 AS col0
----
-31

query I rowsort
SELECT DISTINCT - 45 * 76
----
-3420

onlyif mysql # aggregate syntax: 
query I rowsort label-5097
SELECT + 15 + 18 * MIN( - 32 ) AS col0
----
-561

skipif mysql # not compatible
query I rowsort label-5097
SELECT + 15 + 18 * MIN ( - 32 ) AS col0
----
-561

query I rowsort
SELECT - NULLIF ( 46, + 33 + - 32 * + 42 )
----
-46

query I rowsort
SELECT + 91 + 49 AS col2
----
140

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5100
SELECT ALL + CAST( 5 AS SIGNED ) DIV 11 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5100
SELECT ALL + CAST ( 5 AS INTEGER ) / 11 AS col2
----
0

query I rowsort
SELECT + 84 * 31 AS col0
----
2604

query I rowsort
SELECT + 96 + 47
----
143

query I rowsort
SELECT ALL ( 60 ) * 7 AS col0
----
420

onlyif mysql # DIV for integer division: 
query I rowsort label-5104
SELECT + 48 DIV 10
----
4

skipif mysql # not compatible
query I rowsort label-5104
SELECT + 48 / 10
----
4

query I rowsort
SELECT + - 81 - - 35 AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5106
SELECT - MIN( 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-5106
SELECT - MIN ( 61 )
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5107
SELECT ALL - - 42 + - 97 * COALESCE ( - 26, + 99, COUNT( DISTINCT + 67 ) + COALESCE ( - COUNT( * ) + 70, 11, - 8 ) * CAST( NULL AS SIGNED ) ) AS col0
----
2564

skipif mysql # not compatible
query I rowsort label-5107
SELECT ALL - - 42 + - 97 * COALESCE ( - 26, + 99, COUNT ( DISTINCT + 67 ) + COALESCE ( - COUNT ( * ) + 70, 11, - 8 ) * CAST ( NULL AS INTEGER ) ) AS col0
----
2564

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT + + COUNT( * ) + - 10
----
-9

skipif mysql # not compatible
query I rowsort label-5108
SELECT + + COUNT ( * ) + - 10
----
-9

query I rowsort
SELECT ALL 11 + - CASE 58 WHEN - 61 THEN - 38 END
----
NULL

query I rowsort
SELECT + - 31 + - 84 AS col0
----
-115

query I rowsort
SELECT ALL + - 29 + + 43
----
14

query I rowsort
SELECT DISTINCT 33 * 16 AS col0
----
528

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5113
SELECT ALL - 95 DIV COUNT( 55 * 60 ) + MIN( 7 + + 11 )
----
-77

skipif mysql # not compatible
query I rowsort label-5113
SELECT ALL - 95 / COUNT ( 55 * 60 ) + MIN ( 7 + + 11 )
----
-77

query I rowsort
SELECT - 77 - 90 AS col0
----
-167

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5115
SELECT - 54 DIV - COUNT( * ) + COUNT( DISTINCT + 58 ) * - 33
----
21

skipif mysql # not compatible
query I rowsort label-5115
SELECT - 54 / - COUNT ( * ) + COUNT ( DISTINCT + 58 ) * - 33
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5116
SELECT + + COUNT( * ) * 21 - 11 col1
----
10

skipif mysql # not compatible
query I rowsort label-5116
SELECT + + COUNT ( * ) * 21 - 11 col1
----
10

query I rowsort
SELECT + 34 + - 22 * - 50
----
1134

onlyif mysql # DIV for integer division: 
query I rowsort label-5118
SELECT 90 * - 61 + 58 DIV 17 AS col2
----
-5487

skipif mysql # not compatible
query I rowsort label-5118
SELECT 90 * - 61 + 58 / 17 AS col2
----
-5487

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5119
SELECT ALL ( + 65 ) DIV + 68 + COALESCE ( + 97, + ( + 73 ) * 78, COUNT( * ) ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-5119
SELECT ALL ( + 65 ) / + 68 + COALESCE ( + 97, + ( + 73 ) * 78, COUNT ( * ) ) AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5120
SELECT + - MIN( ALL 94 ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-5120
SELECT + - MIN ( ALL 94 ) AS col0
----
-94

query I rowsort
SELECT - + 5 + 28 AS col2
----
23

query I rowsort
SELECT ALL + 35 * + 61 AS col2
----
2135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5123
SELECT + + 94 * CAST( 94 AS SIGNED ) + + 21 * 23
----
9319

skipif mysql # not compatible
query I rowsort label-5123
SELECT + + 94 * CAST ( 94 AS INTEGER ) + + 21 * 23
----
9319

onlyif mysql # DIV for integer division: 
query I rowsort label-5124
SELECT ALL 58 DIV 21 + 27
----
29

skipif mysql # not compatible
query I rowsort label-5124
SELECT ALL 58 / 21 + 27
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5125
SELECT - + CAST( - 16 AS SIGNED ) + 71
----
87

skipif mysql # not compatible
query I rowsort label-5125
SELECT - + CAST ( - 16 AS INTEGER ) + 71
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT ALL + CASE + 63 WHEN - COUNT( * ) * + 0 - COUNT( * ) THEN 4 ELSE NULL END * - MAX( 11 ) - 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5126
SELECT ALL + CASE + 63 WHEN - COUNT ( * ) * + 0 - COUNT ( * ) THEN 4 ELSE NULL END * - MAX ( 11 ) - 89 AS col1
----
NULL

query I rowsort
SELECT - 7 * + 91 col0
----
-637

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT ( + COUNT( ALL - 77 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5128
SELECT ( + COUNT ( ALL - 77 ) )
----
1

query I rowsort
SELECT + 68 * + 1
----
68

query I rowsort
SELECT + 27 + 17 * + 47
----
826

query I rowsort
SELECT + ( + - COALESCE ( 21, 64 ) ) AS col1
----
-21

query I rowsort
SELECT - 32 + - 0 AS col2
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-5133
SELECT 31 DIV - + 51
----
0

skipif mysql # not compatible
query I rowsort label-5133
SELECT 31 / - + 51
----
0

query I rowsort
SELECT 2 * - - ( + 71 ) * - 32 AS col0
----
-4544

query I rowsort
SELECT 5 - ( - ( - 80 ) ) * - 46
----
3685

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5136
SELECT 11 * + COALESCE ( - 44, 74 DIV - 13 + COUNT( * ) ) AS col1
----
-484

skipif mysql # not compatible
query I rowsort label-5136
SELECT 11 * + COALESCE ( - 44, 74 / - 13 + COUNT ( * ) ) AS col1
----
-484

query I rowsort
SELECT 27 + + 99 * 73
----
7254

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT COUNT( * ) + + 20 col0
----
21

skipif mysql # not compatible
query I rowsort label-5138
SELECT COUNT ( * ) + + 20 col0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5139
SELECT ALL + + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) + + CAST( NULL AS SIGNED ) * 33
----
NULL

skipif mysql # not compatible
query I rowsort label-5139
SELECT ALL + + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) + + CAST ( NULL AS INTEGER ) * 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT ALL COALESCE ( + ( + 51 ), + MAX( DISTINCT - 29 ) ) + COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-5140
SELECT ALL COALESCE ( + ( + 51 ), + MAX ( DISTINCT - 29 ) ) + COUNT ( * )
----
52

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

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

query I rowsort
SELECT DISTINCT 40 + - - 67
----
107

query I rowsort
SELECT + ( 52 ) + + 83 * + 96 AS col0
----
8020

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5144
SELECT DISTINCT 67 * + SUM( 0 ) * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5144
SELECT DISTINCT 67 * + SUM ( 0 ) * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5145
SELECT + 46 * + COUNT( * ) * 42 AS col2
----
1932

skipif mysql # not compatible
query I rowsort label-5145
SELECT + 46 * + COUNT ( * ) * 42 AS col2
----
1932

query I rowsort
SELECT ALL 85 * - 66 * + 27 + + 88 AS col2
----
-151382

query I rowsort
SELECT ALL 24 - - - COALESCE ( - 60, - 62 - 21 * 2, 84 ) AS col0
----
84

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5148
SELECT ALL + + 22 - - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5148
SELECT ALL + + 22 - - - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL 52 * + 99
----
5148

query I rowsort
SELECT COALESCE ( + 98, 98 ) AS col1
----
98

query I rowsort
SELECT + + ( 80 ) AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5152
SELECT DISTINCT - CASE - + SUM( + 94 ) WHEN - 43 THEN NULL WHEN 93 THEN + 32 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5152
SELECT DISTINCT - CASE - + SUM ( + 94 ) WHEN - 43 THEN NULL WHEN 93 THEN + 32 ELSE NULL END
----
NULL

query II rowsort
SELECT + 76 AS col2, 7 + + ( - 43 ) - 73 AS col1
----
76
-109

query I rowsort
SELECT + 6 * 58 - - - 97
----
251

query I rowsort
SELECT 32 * 60 col1
----
1920

query I rowsort
SELECT 6 - - 44
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5157
SELECT 15 + + 52 * CAST( + 84 AS SIGNED ) + 90
----
4473

skipif mysql # not compatible
query I rowsort label-5157
SELECT 15 + + 52 * CAST ( + 84 AS INTEGER ) + 90
----
4473

query I rowsort
SELECT ALL + 99 * + - CASE + 3 WHEN 37 THEN 0 WHEN - 0 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5159
SELECT ALL - 60 AS col2, + MAX( + 79 ) * - 48
----
-60
-3792

skipif mysql # not compatible
query II rowsort label-5159
SELECT ALL - 60 AS col2, + MAX ( + 79 ) * - 48
----
-60
-3792

onlyif mysql # DIV for integer division: 
query I rowsort label-5160
SELECT 5 + - + 83 + - NULLIF ( + COALESCE ( 61, + 49 DIV 28, - 0 * + 15, 2 ), - 94 ) * 20
----
-1298

skipif mysql # not compatible
query I rowsort label-5160
SELECT 5 + - + 83 + - NULLIF ( + COALESCE ( 61, + 49 / 28, - 0 * + 15, 2 ), - 94 ) * 20
----
-1298

query I rowsort
SELECT 9 * - 90 - + 25 * - 1 col1
----
-785

onlyif mysql # DIV for integer division: 
query I rowsort label-5162
SELECT 12 DIV - 35 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5162
SELECT 12 / - 35 AS col0
----
0

query I rowsort
SELECT 47 * - 24
----
-1128

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5165
SELECT ALL + NULLIF ( - + 26, 84 ) + ( MAX( DISTINCT 59 ) + - 18 * - NULLIF ( 36 DIV 50 - - 46 DIV ( COUNT( * ) * 92 + + 32 * - 70 ), 22 ) )
----
33

skipif mysql # not compatible
query I rowsort label-5165
SELECT ALL + NULLIF ( - + 26, 84 ) + ( MAX ( DISTINCT 59 ) + - 18 * - NULLIF ( 36 / 50 - - 46 / ( COUNT ( * ) * 92 + + 32 * - 70 ), 22 ) )
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5166
SELECT ALL - 73 * 67 * - MIN( CAST( + 12 AS SIGNED ) )
----
58692

skipif mysql # not compatible
query I rowsort label-5166
SELECT ALL - 73 * 67 * - MIN ( CAST ( + 12 AS INTEGER ) )
----
58692

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5167
SELECT 37 DIV COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-5167
SELECT 37 / COUNT ( * )
----
37

query II rowsort
SELECT DISTINCT 17 AS col2, ( + 84 ) AS col0
----
17
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT ALL ( COUNT( * ) ) * - 88 AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-5169
SELECT ALL ( COUNT ( * ) ) * - 88 AS col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT ALL - 9 + + MAX( 44 )
----
35

skipif mysql # not compatible
query I rowsort label-5170
SELECT ALL - 9 + + MAX ( 44 )
----
35

query I rowsort
SELECT DISTINCT + 51 + + ( + 56 )
----
107

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

skipif mysql # not compatible
query I rowsort label-5172
SELECT - - MIN ( 74 )
----
74

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

skipif mysql # not compatible
query I rowsort label-5173
SELECT ( - 23 ) + + 84 + ( ( COUNT ( * ) ) ) AS col2
----
62

query I rowsort
SELECT DISTINCT + - 58 + - 83 * 40
----
-3378

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5175
SELECT + 3 + CAST( NULL AS SIGNED ) * + COUNT( - 10 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5175
SELECT + 3 + CAST ( NULL AS INTEGER ) * + COUNT ( - 10 ) AS col1
----
NULL

query II rowsort
SELECT - - 40 AS col0, + 27
----
40
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5177
SELECT DISTINCT + COALESCE ( + 81, + COUNT( - 45 ) * + 68 )
----
81

skipif mysql # not compatible
query I rowsort label-5177
SELECT DISTINCT + COALESCE ( + 81, + COUNT ( - 45 ) * + 68 )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5178
SELECT ALL SUM( DISTINCT ( + - 54 ) ) * COUNT( * )
----
-54

skipif mysql # not compatible
query I rowsort label-5178
SELECT ALL SUM ( DISTINCT ( + - 54 ) ) * COUNT ( * )
----
-54

query I rowsort
SELECT 73 + + CASE + 21 WHEN 37 + 75 THEN - 87 WHEN - 2 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5180
SELECT - 27 AS col0, COUNT( * ) * - + 56
----
-27
-56

skipif mysql # not compatible
query II rowsort label-5180
SELECT - 27 AS col0, COUNT ( * ) * - + 56
----
-27
-56

query I rowsort
SELECT 19 + - 24 + 89 - - ( + 91 - 80 ) * - 28 AS col2
----
-224

onlyif mysql # aggregate syntax: 
query I rowsort label-5182
SELECT DISTINCT CASE + 8 WHEN ( ( 94 ) ) - 74 * 4 THEN SUM( - 88 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5182
SELECT DISTINCT CASE + 8 WHEN ( ( 94 ) ) - 74 * 4 THEN SUM ( - 88 ) ELSE NULL END
----
NULL

query II rowsort
SELECT ALL - 68 AS col0, + 30 * 85 col0
----
-68
2550

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT DISTINCT - MIN( ALL + 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-5184
SELECT DISTINCT - MIN ( ALL + 97 )
----
-97

query I rowsort
SELECT 57 * + 10 AS col0
----
570

query I rowsort
SELECT ALL - ( - + 57 ) AS col1
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-5187
SELECT ALL 45 DIV + 62 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5187
SELECT ALL 45 / + 62 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5188
SELECT - 39 * - COUNT( * ) + + 52
----
91

skipif mysql # not compatible
query I rowsort label-5188
SELECT - 39 * - COUNT ( * ) + + 52
----
91

query I rowsort
SELECT ALL ( 63 ) * + + 25 * + 27 col2
----
42525

query I rowsort
SELECT DISTINCT 89 * + + 85 + + - 46 + 28
----
7547

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

query I rowsort
SELECT + 97 + - - 95 col0
----
192

query I rowsort
SELECT + 56 * - 45 col1
----
-2520

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5194
SELECT DISTINCT - ( - + 18 ) * - COUNT( ALL + + 86 ) + - COALESCE ( + MIN( + 94 ), + ( + 67 ) ) DIV 11
----
-26

skipif mysql # not compatible
query I rowsort label-5194
SELECT DISTINCT - ( - + 18 ) * - COUNT ( ALL + + 86 ) + - COALESCE ( + MIN ( + 94 ), + ( + 67 ) ) / 11
----
-26

query I rowsort
SELECT + 1 * - - 22 + - + 88 AS col2
----
-66

query I rowsort
SELECT ALL - CASE WHEN NULL IS NOT NULL THEN - ( - - ( + 64 ) ) END + 25 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5197
SELECT MIN( - 34 )
----
-34

skipif mysql # not compatible
query I rowsort label-5197
SELECT MIN ( - 34 )
----
-34

query I rowsort
SELECT DISTINCT 90 + - - 71
----
161

query I rowsort
SELECT - 2 * 61 AS col2
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-5200
SELECT ALL - 42 * + MAX( 28 )
----
-1176

skipif mysql # not compatible
query I rowsort label-5200
SELECT ALL - 42 * + MAX ( 28 )
----
-1176

onlyif mysql # aggregate syntax: 
query I rowsort label-5201
SELECT DISTINCT - 24 * + 81 * + COUNT( * ) AS col1
----
-1944

skipif mysql # not compatible
query I rowsort label-5201
SELECT DISTINCT - 24 * + 81 * + COUNT ( * ) AS col1
----
-1944

query I rowsort
SELECT ALL + 69 + + 72 AS col1
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT - - 69 * - COUNT( * ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-5203
SELECT - - 69 * - COUNT ( * ) AS col0
----
-69

query I rowsort
SELECT - 43 + + 50 + 57 - + - CASE - CASE - 61 WHEN 19 + 83 THEN + 63 WHEN + 64 THEN 40 + 84 ELSE - 31 END WHEN 91 + + 6 THEN NULL ELSE + 77 END * - 5 AS col1
----
-321

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT DISTINCT - - 93 * + MIN( DISTINCT + + 1 ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-5205
SELECT DISTINCT - - 93 * + MIN ( DISTINCT + + 1 ) AS col1
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-5206
SELECT - - 20 DIV - - 39 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5206
SELECT - - 20 / - - 39 AS col0
----
0

query I rowsort
SELECT - 1 * - COALESCE ( 77, + 88 * + 92 )
----
77

query I rowsort
SELECT - + 92 + - - 40 AS col0
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-5209
SELECT DISTINCT - 70 * COALESCE ( - + 23, + + 4 ) DIV + 30 col2
----
53

skipif mysql # not compatible
query I rowsort label-5209
SELECT DISTINCT - 70 * COALESCE ( - + 23, + + 4 ) / + 30 col2
----
53

query I rowsort
SELECT - 28 - 82 * - - 12 + - 45 + - 73 AS col0
----
-1130

query II rowsort
SELECT DISTINCT 85 * - 52 AS col1, 55 AS col2
----
-4420
55

onlyif mysql # DIV for integer division: 
query I rowsort label-5212
SELECT DISTINCT + 4 DIV 25 * + + 31 * + 19 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5212
SELECT DISTINCT + 4 / 25 * + + 31 * + 19 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5213
SELECT - + 93 DIV - + 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5213
SELECT - + 93 / - + 95 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5214
SELECT - 3 * + NULLIF ( + 51, - + 21 ) * - CAST( NULL AS SIGNED ) + - MIN( DISTINCT - 38 + 5 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5214
SELECT - 3 * + NULLIF ( + 51, - + 21 ) * - CAST ( NULL AS INTEGER ) + - MIN ( DISTINCT - 38 + 5 ) AS col2
----
NULL

query I rowsort
SELECT + 73 + + 13 * ( + 36 )
----
541

query I rowsort
SELECT DISTINCT + 54 * - 73 AS col2
----
-3942

query I rowsort
SELECT ALL - + 96 * - 98 AS col0
----
9408

query II rowsort
SELECT ALL + 77, - 1 * + ( - 72 ) AS col0
----
77
72

query II rowsort
SELECT ALL + 80 AS col0, - 8 AS col2
----
80
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5220
SELECT ALL + COUNT( * ) DIV - 40 + COUNT( * ) + + + 79 * - 57 * COUNT( * )
----
-4502

skipif mysql # not compatible
query I rowsort label-5220
SELECT ALL + COUNT ( * ) / - 40 + COUNT ( * ) + + + 79 * - 57 * COUNT ( * )
----
-4502

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5221
SELECT + 68 * - CAST( NULL AS SIGNED ) * + 15 * + 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5221
SELECT + 68 * - CAST ( NULL AS INTEGER ) * + 15 * + 37 AS col1
----
NULL

query I rowsort
SELECT ALL + 97 * - 76 + - + 57 - + 51 AS col0
----
-7480

query I rowsort
SELECT - 56 + - 65 AS col1
----
-121

query I rowsort
SELECT 18 * 27 + 3 AS col1
----
489

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT + NULLIF ( - 32, 4 * + COUNT( * ) + - 82 )
----
-32

skipif mysql # not compatible
query I rowsort label-5225
SELECT + NULLIF ( - 32, 4 * + COUNT ( * ) + - 82 )
----
-32

query I rowsort
SELECT - 59 * - - 82 - + 27 - + ( - + 76 ) * ( - 51 * - 20 ) AS col2
----
72655

onlyif mysql # DIV for integer division: 
query II rowsort label-5227
SELECT DISTINCT + ( - 13 ) DIV 11, 9 AS col1
----
-1
9

skipif mysql # not compatible
query II rowsort label-5227
SELECT DISTINCT + ( - 13 ) / 11, 9 AS col1
----
-1
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5228
SELECT ALL 14 * + MIN( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5228
SELECT ALL 14 * + MIN ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( - 1, + 1 ) * 86 * - 26 * + 22 + 11
----
49203

query I rowsort
SELECT ALL + ( - CASE + 66 WHEN ( + + 24 ) * + ( + 22 * 55 + + 73 ) THEN - 44 END ) * NULLIF ( 35 + 34, - 98 * 13 + - 87 * 70 ) + 69
----
NULL

query I rowsort
SELECT + 66 + + + 27
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT + MIN( + 9 ) * + 24 * - COALESCE ( - 42, 54 ) * + 68
----
616896

skipif mysql # not compatible
query I rowsort label-5232
SELECT + MIN ( + 9 ) * + 24 * - COALESCE ( - 42, 54 ) * + 68
----
616896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5233
SELECT + CASE + 7 WHEN COUNT( ALL - 40 ) THEN NULL WHEN + MAX( DISTINCT ( - ( + 77 ) ) ) * CAST( NULL AS SIGNED ) + 54 * + 13 THEN - 74 WHEN + 17 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5233
SELECT + CASE + 7 WHEN COUNT ( ALL - 40 ) THEN NULL WHEN + MAX ( DISTINCT ( - ( + 77 ) ) ) * CAST ( NULL AS INTEGER ) + 54 * + 13 THEN - 74 WHEN + 17 THEN NULL END
----
NULL

query I rowsort
SELECT + 42 + COALESCE ( + 71, - - 80 )
----
113

query I rowsort
SELECT + 48 - + 84 AS col0
----
-36

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5236
SELECT - + MIN( - + CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5236
SELECT - + MIN ( - + CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT DISTINCT - NULLIF ( + 77, - ( + ( - + ( + 82 ) ) ) * COUNT( * ) )
----
-77

skipif mysql # not compatible
query I rowsort label-5237
SELECT DISTINCT - NULLIF ( + 77, - ( + ( - + ( + 82 ) ) ) * COUNT ( * ) )
----
-77

query I rowsort
SELECT + - 63 * + 10 * 98
----
-61740

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5240
SELECT - CAST( 82 AS SIGNED ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-5240
SELECT - CAST ( 82 AS INTEGER ) AS col2
----
-82

query I rowsort
SELECT + + 88 + 16 + - 55 - - 92 + - + 60 * - 7
----
561

onlyif mysql # aggregate syntax: 
query I rowsort label-5242
SELECT DISTINCT - COUNT( * ) * + 65
----
-65

skipif mysql # not compatible
query I rowsort label-5242
SELECT DISTINCT - COUNT ( * ) * + 65
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5243
SELECT ALL - COUNT( - - 3 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5243
SELECT ALL - COUNT ( - - 3 ) AS col2
----
-1

query I rowsort
SELECT ALL - - ( + 75 ) * ( 25 ) * + - 50 AS col0
----
-93750

query I rowsort
SELECT + 1 + - 18 + - + 78 col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT - - NULLIF ( + 72, + MIN( + 97 ) ) * 67 * + MIN( - 86 ) + 52 col0
----
-414812

skipif mysql # not compatible
query I rowsort label-5246
SELECT - - NULLIF ( + 72, + MIN ( + 97 ) ) * 67 * + MIN ( - 86 ) + 52 col0
----
-414812

query I rowsort
SELECT - + 45 + + 98
----
53

query I rowsort
SELECT - - 70 + + - 17
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT ALL + 64 + - ( - COUNT( * ) )
----
65

skipif mysql # not compatible
query I rowsort label-5249
SELECT ALL + 64 + - ( - COUNT ( * ) )
----
65

query I rowsort
SELECT 97 + + - 4 * 19 + + 29
----
50

query I rowsort
SELECT 25 + + 17 * + 34 AS col0
----
603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5252
SELECT 31 - + + 21 / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5252
SELECT 31 - + + 21 / CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5253
SELECT 50 DIV - 31 + + 16
----
15

skipif mysql # not compatible
query I rowsort label-5253
SELECT 50 / - 31 + + 16
----
15

query II rowsort
SELECT + 33, 21 AS col1
----
33
21

query II rowsort
SELECT 23 AS col2, 71 AS col1
----
23
71

onlyif mysql # aggregate syntax: 
query II rowsort label-5256
SELECT + 88 AS col2, 44 / + NULLIF ( + COUNT( * ), + COALESCE ( COUNT( ALL 79 ), 33 * - ( 95 ) ) )
----
88
NULL

skipif mysql # not compatible
query II rowsort label-5256
SELECT + 88 AS col2, 44 / + NULLIF ( + COUNT ( * ), + COALESCE ( COUNT ( ALL 79 ), 33 * - ( 95 ) ) )
----
88
NULL

query I rowsort
SELECT 60 + - 31 AS col1
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5258
SELECT 14 * - ( + COUNT( DISTINCT CASE + 57 WHEN + 55 THEN NULL WHEN - 79 THEN NULL ELSE ( - 92 ) END ) ) * NULLIF ( 34, CAST( NULL AS SIGNED ) + + 32 ) + - 90
----
-566

skipif mysql # not compatible
query I rowsort label-5258
SELECT 14 * - ( + COUNT ( DISTINCT CASE + 57 WHEN + 55 THEN NULL WHEN - 79 THEN NULL ELSE ( - 92 ) END ) ) * NULLIF ( 34, CAST ( NULL AS INTEGER ) + + 32 ) + - 90
----
-566

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5259
SELECT ALL 38 * SUM( DISTINCT - 26 ) DIV + 71 + - 41 AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-5259
SELECT ALL 38 * SUM ( DISTINCT - 26 ) / + 71 + - 41 AS col0
----
-54

query I rowsort
SELECT ALL + 14 + - 99 + + + 50 + 94 AS col2
----
59

query I rowsort
SELECT ALL + 42 * + ( + + 77 ) * - - 29 + - 67 + - 10 * 83 col2
----
92889

query II rowsort
SELECT + 7, + 34 col2
----
7
34

query I rowsort
SELECT 37 + - + 51 * - 99
----
5086

query I rowsort
SELECT 46 * + 55 col1
----
2530

onlyif mysql # aggregate syntax: 
query II rowsort label-5265
SELECT DISTINCT - 17 AS col0, + 46 * - SUM( DISTINCT - 0 ) col2
----
-17
0

skipif mysql # not compatible
query II rowsort label-5265
SELECT DISTINCT - 17 AS col0, + 46 * - SUM ( DISTINCT - 0 ) col2
----
-17
0

query I rowsort
SELECT ALL 22 * + - 82
----
-1804

onlyif mysql # DIV for integer division: 
query I rowsort label-5267
SELECT 25 + 18 DIV 10
----
26

skipif mysql # not compatible
query I rowsort label-5267
SELECT 25 + 18 / 10
----
26

query I rowsort
SELECT - NULLIF ( 96, - 69 + - 79 ) + 77 + 94 * + 70 col1
----
6561

query I rowsort
SELECT ALL 80 * + 68
----
5440

query I rowsort
SELECT - 63 - - + 78
----
15

query I rowsort
SELECT ALL + 46 * - - 50 AS col0
----
2300

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT + 55 + + 53 * + 40 * ( - - COUNT( * ) )
----
2175

skipif mysql # not compatible
query I rowsort label-5272
SELECT + 55 + + 53 * + 40 * ( - - COUNT ( * ) )
----
2175

query I rowsort
SELECT ALL + 54 + ( - COALESCE ( + 97, + 49 ) ) * + 67
----
-6445

onlyif mysql # aggregate syntax: 
query I rowsort label-5274
SELECT ALL ( 96 ) + - COUNT( * ) * + 54
----
42

skipif mysql # not compatible
query I rowsort label-5274
SELECT ALL ( 96 ) + - COUNT ( * ) * + 54
----
42

query I rowsort
SELECT ALL NULLIF ( - 49, 19 ) + 77
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5276
SELECT ALL CASE CAST( NULL AS SIGNED ) WHEN + 11 THEN NULL WHEN - + 54 * + 65 THEN + - 33 / + + 76 WHEN + 58 + 41 THEN COUNT( * ) * - 42 END * SUM( - 18 + 75 * 23 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5276
SELECT ALL CASE CAST ( NULL AS INTEGER ) WHEN + 11 THEN NULL WHEN - + 54 * + 65 THEN + - 33 / + + 76 WHEN + 58 + 41 THEN COUNT ( * ) * - 42 END * SUM ( - 18 + 75 * 23 ) AS col0
----
NULL

query I rowsort
SELECT ( + 78 ) * NULLIF ( 94, + - 21 * 23 ) * 48 + - ( + 60 )
----
351876

query I rowsort
SELECT 41 * + 51 * - 31 col0
----
-64821

onlyif mysql # aggregate syntax: 
query I rowsort label-5279
SELECT ALL - COUNT( 9 ) + - + 37
----
-38

skipif mysql # not compatible
query I rowsort label-5279
SELECT ALL - COUNT ( 9 ) + - + 37
----
-38

query I rowsort
SELECT DISTINCT + 27 * - + 76 AS col2
----
-2052

query I rowsort
SELECT DISTINCT 74 - + + 79
----
-5

query I rowsort
SELECT ALL + 83 - 84 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT ALL - SUM( ALL - NULLIF ( + + 22, - - 85 / + - 93 ) )
----
22

skipif mysql # not compatible
query I rowsort label-5283
SELECT ALL - SUM ( ALL - NULLIF ( + + 22, - - 85 / + - 93 ) )
----
22

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

skipif mysql # not compatible
query I rowsort label-5284
SELECT 66 * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5285
SELECT NULLIF ( + + 23, - 58 + COUNT( * ) * + - 23 * - - COUNT( * ) ) DIV + 84 + - 33
----
-33

skipif mysql # not compatible
query I rowsort label-5285
SELECT NULLIF ( + + 23, - 58 + COUNT ( * ) * + - 23 * - - COUNT ( * ) ) / + 84 + - 33
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT MIN( 51 ) * - + 5
----
-255

skipif mysql # not compatible
query I rowsort label-5286
SELECT MIN ( 51 ) * - + 5
----
-255

onlyif mysql # aggregate syntax: 
query II rowsort label-5287
SELECT DISTINCT - SUM( 6 ) AS col0, + COUNT( * )
----
-6
1

skipif mysql # not compatible
query II rowsort label-5287
SELECT DISTINCT - SUM ( 6 ) AS col0, + COUNT ( * )
----
-6
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5288
SELECT ALL + + 74 * + + 64 - - MIN( 64 ) AS col1
----
4800

skipif mysql # not compatible
query I rowsort label-5288
SELECT ALL + + 74 * + + 64 - - MIN ( 64 ) AS col1
----
4800

query I rowsort
SELECT - 81 + + ( + + 53 ) + + 18 AS col0
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-5290
SELECT 40 * - 22 AS col1, 98 + + 15 * MIN( ALL + - 49 ) * - 75 + 99
----
-880
55322

skipif mysql # not compatible
query II rowsort label-5290
SELECT 40 * - 22 AS col1, 98 + + 15 * MIN ( ALL + - 49 ) * - 75 + 99
----
-880
55322

query I rowsort
SELECT DISTINCT + - 7 * - 75 AS col0
----
525

query I rowsort
SELECT ALL - - 77 col2
----
77

query I rowsort
SELECT + 47 + + 59 * + + 87 AS col2
----
5180

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT COALESCE ( + + COUNT( * ), + + 34 ) * + + 18 * + 35 AS col0
----
630

skipif mysql # not compatible
query I rowsort label-5294
SELECT COALESCE ( + + COUNT ( * ), + + 34 ) * + + 18 * + 35 AS col0
----
630

query I rowsort
SELECT DISTINCT + - NULLIF ( 62, - 81 - - ( + - 78 ) * + 29 ) + 65 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5296
SELECT ALL COALESCE ( 39, + COALESCE ( + + 5, + 17 + - 76 ), ( 53 ) * + COUNT( * ) )
----
39

skipif mysql # not compatible
query I rowsort label-5296
SELECT ALL COALESCE ( 39, + COALESCE ( + + 5, + 17 + - 76 ), ( 53 ) * + COUNT ( * ) )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT DISTINCT - + COUNT( * ) + - - 50
----
49

skipif mysql # not compatible
query I rowsort label-5297
SELECT DISTINCT - + COUNT ( * ) + - - 50
----
49

query I rowsort
SELECT ALL 36 + - 89
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5299
SELECT CAST( - 56 AS SIGNED ) AS col2, ( + 84 ) AS col0
----
-56
84

skipif mysql # not compatible
query II rowsort label-5299
SELECT CAST ( - 56 AS INTEGER ) AS col2, ( + 84 ) AS col0
----
-56
84

query II rowsort
SELECT ALL - 42 + + + 73 AS col1, 71
----
31
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5301
SELECT + + 4 * - 92 * COUNT( + 37 ) AS col2
----
-368

skipif mysql # not compatible
query I rowsort label-5301
SELECT + + 4 * - 92 * COUNT ( + 37 ) AS col2
----
-368

query I rowsort
SELECT - - 93 + + 6
----
99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5303
SELECT + 63 / - - COUNT( * ) * + - MIN( + CAST( NULL AS DECIMAL ) ) * - 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5303
SELECT + 63 / - - COUNT ( * ) * + - MIN ( + CAST ( NULL AS REAL ) ) * - 69 AS col0
----
NULL

query I rowsort
SELECT ALL 69 + + ( - - 68 ) col1
----
137

query I rowsort
SELECT + 33 + + + 16
----
49

query I rowsort
SELECT + 51 + + + 99
----
150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5307
SELECT + 9 * - CAST( + 93 AS SIGNED )
----
-837

skipif mysql # not compatible
query I rowsort label-5307
SELECT + 9 * - CAST ( + 93 AS INTEGER )
----
-837

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5308
SELECT ALL 30 AS col1, ( + - 36 ) + + + 21 - - CASE 14 WHEN 21 THEN 83 + - 92 DIV MIN( ALL + 91 ) ELSE 50 END AS col0
----
30
35

skipif mysql # not compatible
query II rowsort label-5308
SELECT ALL 30 AS col1, ( + - 36 ) + + + 21 - - CASE 14 WHEN 21 THEN 83 + - 92 / MIN ( ALL + 91 ) ELSE 50 END AS col0
----
30
35

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5310
SELECT + CASE + 60 WHEN 99 THEN NULL WHEN CAST( 60 AS SIGNED ) * 77 + - 29 + - 34 + - 55 * + COUNT( * ) THEN - 16 * - 60 + - 28 ELSE 71 END + 27 AS col1
----
98

skipif mysql # not compatible
query I rowsort label-5310
SELECT + CASE + 60 WHEN 99 THEN NULL WHEN CAST ( 60 AS INTEGER ) * 77 + - 29 + - 34 + - 55 * + COUNT ( * ) THEN - 16 * - 60 + - 28 ELSE 71 END + 27 AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT + MAX( DISTINCT 44 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-5311
SELECT + MAX ( DISTINCT 44 ) AS col0
----
44

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

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

query I rowsort
SELECT DISTINCT 96 * + 42 * 12 AS col2
----
48384

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT ALL COUNT( * ) * + 2 * - 5 - - + 82 + - 91
----
-19

skipif mysql # not compatible
query I rowsort label-5314
SELECT ALL COUNT ( * ) * + 2 * - 5 - - + 82 + - 91
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5315
SELECT + CASE + 82 WHEN - ( - 34 ) * + 0 * - COUNT( * ) - 33 + + 34 * + 21 THEN - 95 + - 8 WHEN - 74 THEN 68 + + 73 * + ( - 77 * CASE + 48 WHEN - 85 THEN NULL WHEN 8 THEN + 92 * 49 ELSE - 82 * + ( ( 51 ) / 12 ) END ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5315
SELECT + CASE + 82 WHEN - ( - 34 ) * + 0 * - COUNT ( * ) - 33 + + 34 * + 21 THEN - 95 + - 8 WHEN - 74 THEN 68 + + 73 * + ( - 77 * CASE + 48 WHEN - 85 THEN NULL WHEN 8 THEN + 92 * 49 ELSE - 82 * + ( ( 51 ) / 12 ) END ) ELSE NULL END
----
NULL

query I rowsort
SELECT + 19 * + 22 AS col0
----
418

onlyif mysql # DIV for integer division: 
query I rowsort label-5317
SELECT + 37 DIV - 25
----
-1

skipif mysql # not compatible
query I rowsort label-5317
SELECT + 37 / - 25
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5318
SELECT - 43 * COUNT( ALL - - ( + 96 ) )
----
-43

skipif mysql # not compatible
query I rowsort label-5318
SELECT - 43 * COUNT ( ALL - - ( + 96 ) )
----
-43

query I rowsort
SELECT ( - + 87 ) * 93 + + 97 * 95
----
1124

query I rowsort
SELECT ALL 95 * + 0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5321
SELECT ALL + + 18 AS col2, SUM( - - 24 ) AS col1
----
18
24

skipif mysql # not compatible
query II rowsort label-5321
SELECT ALL + + 18 AS col2, SUM ( - - 24 ) AS col1
----
18
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5322
SELECT + + COUNT( ALL - 44 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5322
SELECT + + COUNT ( ALL - 44 ) AS col2
----
1

query I rowsort
SELECT + + 15 * 86 * 56 + + 93 - + 32
----
72301

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5324
SELECT CASE 3 WHEN - 72 THEN - 85 - ( - - CAST( NULL AS SIGNED ) ) WHEN - + ( + + 31 ) THEN - 95 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5324
SELECT CASE 3 WHEN - 72 THEN - 85 - ( - - CAST ( NULL AS INTEGER ) ) WHEN - + ( + + 31 ) THEN - 95 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5325
SELECT ALL + - CASE + + 43 WHEN 68 + + - 48 THEN - 43 + + CASE - COUNT( * ) WHEN - - 49 / - ( CAST( NULL AS SIGNED ) ) + 39 THEN + 8 + 93 * ( 56 + + 91 ) END / 52 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5325
SELECT ALL + - CASE + + 43 WHEN 68 + + - 48 THEN - 43 + + CASE - COUNT ( * ) WHEN - - 49 / - ( CAST ( NULL AS INTEGER ) ) + 39 THEN + 8 + 93 * ( 56 + + 91 ) END / 52 END AS col1
----
NULL

query I rowsort
SELECT - ( - ( + - 57 ) ) * + 94 * + 24
----
-128592

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5327
SELECT + 50 * + - 23 * + 31 * + CAST( + 39 AS SIGNED ) + - NULLIF ( + 67, + COUNT( * ) ) - + 13
----
-1390430

skipif mysql # not compatible
query I rowsort label-5327
SELECT + 50 * + - 23 * + 31 * + CAST ( + 39 AS INTEGER ) + - NULLIF ( + 67, + COUNT ( * ) ) - + 13
----
-1390430

onlyif mysql # aggregate syntax: 
query II rowsort label-5328
SELECT - COUNT( * ) AS col1, 1 * - COUNT( * ) * ( - COUNT( * ) ) * 52 AS col2
----
-1
52

skipif mysql # not compatible
query II rowsort label-5328
SELECT - COUNT ( * ) AS col1, 1 * - COUNT ( * ) * ( - COUNT ( * ) ) * 52 AS col2
----
-1
52

query I rowsort
SELECT DISTINCT - 35 * - 58 + + + 53 AS col0
----
2083

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5330
SELECT - + CASE - ( + ( - AVG ( - + 72 ) ) ) WHEN + + 11 THEN - 15 + + 44 ELSE NULL END + CAST( + ( ( - 72 ) ) AS SIGNED ) * - 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5330
SELECT - + CASE - ( + ( - AVG ( - + 72 ) ) ) WHEN + + 11 THEN - 15 + + 44 ELSE NULL END + CAST ( + ( ( - 72 ) ) AS INTEGER ) * - 81 AS col0
----
NULL

query II rowsort
SELECT + + 72 col1, - 48 + 79 col1
----
72
31

query I rowsort
SELECT DISTINCT + 35 * + - 29 + - 87
----
-1102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5333
SELECT ALL + + 12 * - + 23 - 88 + 7 + + 56 * + 21 * + CAST( + + ( 8 ) AS SIGNED ) * - COUNT( * ) + + 41
----
-9724

skipif mysql # not compatible
query I rowsort label-5333
SELECT ALL + + 12 * - + 23 - 88 + 7 + + 56 * + 21 * + CAST ( + + ( 8 ) AS INTEGER ) * - COUNT ( * ) + + 41
----
-9724

query I rowsort
SELECT - 56 * - 89
----
4984

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5335
SELECT 91 * - 91 - 65 + - COUNT( * ) - 57 DIV - 54 + + 46 + - + 36 * - 25 + + 36 AS col2
----
-7364

skipif mysql # not compatible
query I rowsort label-5335
SELECT 91 * - 91 - 65 + - COUNT ( * ) - 57 / - 54 + + 46 + - + 36 * - 25 + + 36 AS col2
----
-7364

query II rowsort
SELECT DISTINCT - 23 AS col1, 41 AS col0
----
-23
41

query I rowsort
SELECT + 40 + + + 98 AS col1
----
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5338
SELECT - 51 * + COALESCE ( - 27, + 38 * - - CAST( NULL AS SIGNED ) )
----
1377

skipif mysql # not compatible
query I rowsort label-5338
SELECT - 51 * + COALESCE ( - 27, + 38 * - - CAST ( NULL AS INTEGER ) )
----
1377

onlyif mysql # DIV for integer division: 
query I rowsort label-5339
SELECT DISTINCT 63 DIV 51 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5339
SELECT DISTINCT 63 / 51 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5340
SELECT ALL + 82 - + COALESCE ( - 26, - 62 ) + COUNT( * )
----
109

skipif mysql # not compatible
query I rowsort label-5340
SELECT ALL + 82 - + COALESCE ( - 26, - 62 ) + COUNT ( * )
----
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5341
SELECT DISTINCT - 10 DIV 38 * + 68 * + - COUNT( * ) col0, + 59
----
0
59

skipif mysql # not compatible
query II rowsort label-5341
SELECT DISTINCT - 10 / 38 * + 68 * + - COUNT ( * ) col0, + 59
----
0
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5342
SELECT - CASE WHEN NOT ( 49 ) IS NULL THEN - - COUNT( DISTINCT - - 85 ) END AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5342
SELECT - CASE WHEN NOT ( 49 ) IS NULL THEN - - COUNT ( DISTINCT - - 85 ) END AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5343
SELECT + 56 * MIN( - - 0 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5343
SELECT + 56 * MIN ( - - 0 ) AS col1
----
0

query I rowsort
SELECT ALL - ( 27 ) * - ( - - 71 ) AS col2
----
1917

query I rowsort
SELECT ALL 79 * - 28
----
-2212

onlyif mysql # aggregate syntax: 
query II rowsort label-5346
SELECT - MIN( + 58 ) AS col1, 65 AS col2
----
-58
65

skipif mysql # not compatible
query II rowsort label-5346
SELECT - MIN ( + 58 ) AS col1, 65 AS col2
----
-58
65

query I rowsort
SELECT - 20 * + 1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5348
SELECT + COUNT( * ) * - COALESCE ( 27, - 17, - 27 * - + 23 * + CASE - 79 WHEN 11 THEN NULL WHEN - 99 / + 64 THEN - COUNT( * ) WHEN CASE - 63 WHEN + 14 / 37 THEN NULL WHEN + SUM( ALL + 82 ) THEN 7 + 29 END THEN NULL END ) * 82
----
-2214

skipif mysql # not compatible
query I rowsort label-5348
SELECT + COUNT ( * ) * - COALESCE ( 27, - 17, - 27 * - + 23 * + CASE - 79 WHEN 11 THEN NULL WHEN - 99 / + 64 THEN - COUNT ( * ) WHEN CASE - 63 WHEN + 14 / 37 THEN NULL WHEN + SUM ( ALL + 82 ) THEN 7 + 29 END THEN NULL END ) * 82
----
-2214

query I rowsort
SELECT + 37 - 39
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5350
SELECT + COALESCE ( + + 70, + 72 + + SUM( DISTINCT + + 1 ) + + - SUM( - 88 ), - - 49 + - 65, 51 * 86 + + 42 ) DIV 25
----
2

skipif mysql # not compatible
query I rowsort label-5350
SELECT + COALESCE ( + + 70, + 72 + + SUM ( DISTINCT + + 1 ) + + - SUM ( - 88 ), - - 49 + - 65, 51 * 86 + + 42 ) / 25
----
2

query I rowsort
SELECT ALL - 20 * + + 28 * - - 32
----
-17920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5352
SELECT DISTINCT 23 / - 62 * 94 * - - 43 + + MIN( ALL CAST( NULL AS SIGNED ) ) + + COUNT( * ) * - + 67 + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-5352
SELECT DISTINCT 23 / - 62 * 94 * - - 43 + + MIN ( ALL CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) * - + 67 + 70
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5353
SELECT ALL ( + - NULLIF ( COUNT( * ), + COUNT( + 70 ) + 28 + + COALESCE ( + 16, - 58, - 14 * 61 ) ) ) DIV 72 + + 42
----
42

skipif mysql # not compatible
query I rowsort label-5353
SELECT ALL ( + - NULLIF ( COUNT ( * ), + COUNT ( + 70 ) + 28 + + COALESCE ( + 16, - 58, - 14 * 61 ) ) ) / 72 + + 42
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT DISTINCT + MAX( + 11 )
----
11

skipif mysql # not compatible
query I rowsort label-5354
SELECT DISTINCT + MAX ( + 11 )
----
11

query I rowsort
SELECT + NULLIF ( 67, 48 ) AS col2
----
67

query I rowsort
SELECT + 16 + - + 40 * 66
----
-2624

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5357
SELECT - + COUNT( * ) DIV - - 49 + + 40 - + ( - 98 ) + - 20 col1
----
118

skipif mysql # not compatible
query I rowsort label-5357
SELECT - + COUNT ( * ) / - - 49 + + 40 - + ( - 98 ) + - 20 col1
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-5358
SELECT + MIN( - 15 ) col2
----
-15

skipif mysql # not compatible
query I rowsort label-5358
SELECT + MIN ( - 15 ) col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5359
SELECT + 7 * - - CASE - 90 WHEN + - COUNT( * ) + 48 THEN + + ( - 65 ) END + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5359
SELECT + 7 * - - CASE - 90 WHEN + - COUNT ( * ) + 48 THEN + + ( - 65 ) END + + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT - 99 * + 62
----
-6138

onlyif mysql # aggregate syntax: 
query II rowsort label-5361
SELECT ALL 68 * + COUNT( * ) + - 73 + ( 65 ), 50 col0
----
60
50

skipif mysql # not compatible
query II rowsort label-5361
SELECT ALL 68 * + COUNT ( * ) + - 73 + ( 65 ), 50 col0
----
60
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT CASE 15 WHEN - ( - + 39 ) THEN + NULLIF ( MIN( DISTINCT - - 57 ), - - 66 ) - + 92 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5362
SELECT CASE 15 WHEN - ( - + 39 ) THEN + NULLIF ( MIN ( DISTINCT - - 57 ), - - 66 ) - + 92 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5363
SELECT ALL + + SUM( DISTINCT - 93 ) AS col0, 23 + + + 25 col1
----
-93
48

skipif mysql # not compatible
query II rowsort label-5363
SELECT ALL + + SUM ( DISTINCT - 93 ) AS col0, 23 + + + 25 col1
----
-93
48

query I rowsort
SELECT ALL + - 88 / + - 14 + 70 + + - 42 * + CASE - + 23 WHEN + + 99 + + 60 + + + 43 * + 2 * + 85 THEN + COALESCE ( 8, 96 ) END * + 48 col0
----
NULL

query I rowsort
SELECT + 65 + - ( - 96 ) + + 41
----
202

onlyif mysql # aggregate syntax: 
query II rowsort label-5366
SELECT ALL - 97 * - 55 AS col2, + 12 * - COUNT( DISTINCT + - 80 )
----
5335
-12

skipif mysql # not compatible
query II rowsort label-5366
SELECT ALL - 97 * - 55 AS col2, + 12 * - COUNT ( DISTINCT + - 80 )
----
5335
-12

query I rowsort
SELECT DISTINCT - COALESCE ( - + 31, - - 71 )
----
31

query I rowsort
SELECT - 1 * + ( - 67 ) * - 49 * + 61
----
-200263

query I rowsort
SELECT 20 + 7 + - - 92 - - ( + 43 )
----
162

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

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

query II rowsort
SELECT ALL + 65 * + + 15 AS col1, 36 * 53
----
975
1908

onlyif mysql # aggregate syntax: 
query I rowsort label-5372
SELECT - NULLIF ( + 73, SUM( + 41 ) ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-5372
SELECT - NULLIF ( + 73, SUM ( + 41 ) ) AS col1
----
-73

query I rowsort
SELECT ALL - - 10 * - 90 * - - 52 AS col1
----
-46800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5374
SELECT DISTINCT 33 - - + 40 + - + CAST( - 57 AS SIGNED ) * - - 69 AS col2
----
4006

skipif mysql # not compatible
query I rowsort label-5374
SELECT DISTINCT 33 - - + 40 + - + CAST ( - 57 AS INTEGER ) * - - 69 AS col2
----
4006

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5375
SELECT ALL - CAST( NULL AS SIGNED ) * - NULLIF ( + - 83, - - 5 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5375
SELECT ALL - CAST ( NULL AS INTEGER ) * - NULLIF ( + - 83, - - 5 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5376
SELECT 30 + + COUNT( * ) + - - 84 - - 77 AS col2
----
192

skipif mysql # not compatible
query I rowsort label-5376
SELECT 30 + + COUNT ( * ) + - - 84 - - 77 AS col2
----
192

query I rowsort
SELECT 69 * + 94 * + - 55
----
-356730

query II rowsort
SELECT 40 + + COALESCE ( + 72, - + 65 ) + 87, 14 AS col0
----
199
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5379
SELECT - 37 AS col1, + CAST( NULL AS SIGNED ) col2
----
-37
NULL

skipif mysql # not compatible
query II rowsort label-5379
SELECT - 37 AS col1, + CAST ( NULL AS INTEGER ) col2
----
-37
NULL

query II rowsort
SELECT DISTINCT 41, 26 * + - 84 AS col0
----
41
-2184

onlyif mysql # aggregate syntax: 
query I rowsort label-5381
SELECT 56 + 52 * - - MAX( ALL 66 ) AS col0
----
3488

skipif mysql # not compatible
query I rowsort label-5381
SELECT 56 + 52 * - - MAX ( ALL 66 ) AS col0
----
3488

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5382
SELECT 59 DIV - COUNT( - 56 ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-5382
SELECT 59 / - COUNT ( - 56 ) AS col1
----
-59

query I rowsort
SELECT ALL - 61 + - 92
----
-153

query I rowsort
SELECT 65 + - - 4 AS col2
----
69

query I rowsort
SELECT ALL 60 * + 26 AS col1
----
1560

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT 84 + - 73 + 21 * + 13 * + + ( - 11 ) + + COUNT( * )
----
-2991

skipif mysql # not compatible
query I rowsort label-5386
SELECT 84 + - 73 + 21 * + 13 * + + ( - 11 ) + + COUNT ( * )
----
-2991

query I rowsort
SELECT ALL + 61 + 10 AS col2
----
71

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5388
SELECT DISTINCT - 7 + + - ( 75 ) + + + 35 - 60 DIV 23 + 72 * 77 * + COALESCE ( - - 31, - CAST( NULL AS SIGNED ) - - ( - CAST( - 88 AS SIGNED ) ), + 15 ) col0
----
171815

skipif mysql # not compatible
query I rowsort label-5388
SELECT DISTINCT - 7 + + - ( 75 ) + + + 35 - 60 / 23 + 72 * 77 * + COALESCE ( - - 31, - CAST ( NULL AS INTEGER ) - - ( - CAST ( - 88 AS INTEGER ) ), + 15 ) col0
----
171815

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5389
SELECT - 13 AS col1, ( NULLIF ( - 0, - - CAST( COUNT( * ) AS DECIMAL ) + + 95 + 33 ) ) AS col1
----
-13
0

skipif mysql # not compatible
query II rowsort label-5389
SELECT - 13 AS col1, ( NULLIF ( - 0, - - CAST ( COUNT ( * ) AS REAL ) + + 95 + 33 ) ) AS col1
----
-13
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5390
SELECT 25 * - - ( CASE + - 54 WHEN - + SUM( - 0 ) THEN NULL WHEN 23 THEN NULL ELSE - 55 END ) + - 91 * + 16 col2
----
-2831

skipif mysql # not compatible
query I rowsort label-5390
SELECT 25 * - - ( CASE + - 54 WHEN - + SUM ( - 0 ) THEN NULL WHEN 23 THEN NULL ELSE - 55 END ) + - 91 * + 16 col2
----
-2831

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5391
SELECT - 13 DIV + SUM( + - 7 )
----
1

skipif mysql # not compatible
query I rowsort label-5391
SELECT - 13 / + SUM ( + - 7 )
----
1

query I rowsort
SELECT ALL - 1 * - 71 * - - 79 - 56 AS col2
----
5553

query I rowsort
SELECT ALL + 38 + - 50 + + 52 AS col2
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-5394
SELECT + NULLIF ( 42, - 37 ) DIV - 89
----
0

skipif mysql # not compatible
query I rowsort label-5394
SELECT + NULLIF ( 42, - 37 ) / - 89
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5395
SELECT 31, 79 + - CAST( NULL AS SIGNED ) - + - 86 * - COUNT( * ) / + 61 * 6 / - 23 AS col2
----
31
NULL

skipif mysql # not compatible
query II rowsort label-5395
SELECT 31, 79 + - CAST ( NULL AS INTEGER ) - + - 86 * - COUNT ( * ) / + 61 * 6 / - 23 AS col2
----
31
NULL

query I rowsort
SELECT DISTINCT + 10 + - - 57
----
67

query I rowsort
SELECT ALL - - ( - 44 ) AS col1
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5398
SELECT DISTINCT - - CAST( - ( + 13 ) AS SIGNED )
----
-13

skipif mysql # not compatible
query I rowsort label-5398
SELECT DISTINCT - - CAST ( - ( + 13 ) AS INTEGER )
----
-13

query I rowsort
SELECT ALL + 25 * + CASE - 54 WHEN - + 1 + + 71 THEN + AVG ( - 97 ) END / + + 52 AS col0
----
NULL

query I rowsort
SELECT - 74 + - 17 AS col0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5401
SELECT + - SUM( DISTINCT - + 99 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-5401
SELECT + - SUM ( DISTINCT - + 99 ) AS col1
----
99

onlyif mysql # DIV for integer division: 
query II rowsort label-5402
SELECT ALL - - 49 col1, - 84 DIV + - 49 + 87 * + 9 col0
----
49
784

skipif mysql # not compatible
query II rowsort label-5402
SELECT ALL - - 49 col1, - 84 / + - 49 + 87 * + 9 col0
----
49
784

onlyif mysql # aggregate syntax: 
query II rowsort label-5403
SELECT ALL - COUNT( * ) AS col0, 98 * + 72 col0
----
-1
7056

skipif mysql # not compatible
query II rowsort label-5403
SELECT ALL - COUNT ( * ) AS col0, 98 * + 72 col0
----
-1
7056

query I rowsort
SELECT ( 94 ) * 25 AS col2
----
2350

query II rowsort
SELECT ALL 21 AS col0, + 95 * + 38 AS col2
----
21
3610

onlyif mysql # aggregate syntax: 
query II rowsort label-5406
SELECT 1, 47 + - COUNT( * ) + + 85 AS col0
----
1
131

skipif mysql # not compatible
query II rowsort label-5406
SELECT 1, 47 + - COUNT ( * ) + + 85 AS col0
----
1
131

onlyif mysql # DIV for integer division: 
query I rowsort label-5407
SELECT ALL 38 DIV + 87
----
0

skipif mysql # not compatible
query I rowsort label-5407
SELECT ALL 38 / + 87
----
0

query I rowsort
SELECT ( 0 ) * - - 16
----
0

query I rowsort
SELECT 75 + - 38 - + - 81 * - + 56 + - 38
----
-4537

onlyif mysql # aggregate syntax: 
query I rowsort label-5410
SELECT COUNT( * ) * 58 * 76 AS col1
----
4408

skipif mysql # not compatible
query I rowsort label-5410
SELECT COUNT ( * ) * 58 * 76 AS col1
----
4408

query I rowsort
SELECT 85 + - 60 AS col0
----
25

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

skipif mysql # not compatible
query I rowsort label-5412
SELECT DISTINCT + 38 * - - CAST ( NULL AS INTEGER ) col2
----
NULL

query II rowsort
SELECT 96 col0, - 46 col1
----
96
-46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5414
SELECT ALL CAST( NULL AS DECIMAL ) / + - 94 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5414
SELECT ALL CAST ( NULL AS REAL ) / + - 94 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5415
SELECT DISTINCT - 74 + - - COUNT( * ) * + - ( - 3 ) AS col0, 3 DIV - 63 * - - 29
----
-71
0

skipif mysql # not compatible
query II rowsort label-5415
SELECT DISTINCT - 74 + - - COUNT ( * ) * + - ( - 3 ) AS col0, 3 / - 63 * - - 29
----
-71
0

query I rowsort
SELECT DISTINCT + 20 * - CASE + 68 WHEN 64 * + 7 + + 70 + + 27 / - 50 THEN NULL WHEN - + 13 THEN + 4 + + - 88 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5417
SELECT ALL MIN( ALL 86 )
----
86

skipif mysql # not compatible
query I rowsort label-5417
SELECT ALL MIN ( ALL 86 )
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-5418
SELECT DISTINCT + 48 + ( 6 ) DIV 2
----
51

skipif mysql # not compatible
query I rowsort label-5418
SELECT DISTINCT + 48 + ( 6 ) / 2
----
51

query I rowsort
SELECT DISTINCT + 75 + - 18 AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT CASE + 80 WHEN 69 THEN - 48 * COUNT( * ) WHEN + ( - ( - 42 ) ) THEN NULL ELSE NULL END * 77
----
NULL

skipif mysql # not compatible
query I rowsort label-5420
SELECT CASE + 80 WHEN 69 THEN - 48 * COUNT ( * ) WHEN + ( - ( - 42 ) ) THEN NULL ELSE NULL END * 77
----
NULL

query I rowsort
SELECT 0 * + - 78 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5422
SELECT ALL MAX( DISTINCT + + 26 ) col1
----
26

skipif mysql # not compatible
query I rowsort label-5422
SELECT ALL MAX ( DISTINCT + + 26 ) col1
----
26

query II rowsort
SELECT 9, 16 AS col2
----
9
16

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

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

query I rowsort
SELECT - ( 33 ) - - 91 AS col2
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-5426
SELECT ALL 93, + COUNT( ALL + 89 ) AS col0
----
93
1

skipif mysql # not compatible
query II rowsort label-5426
SELECT ALL 93, + COUNT ( ALL + 89 ) AS col0
----
93
1

query I rowsort
SELECT - 34 - - 59
----
25

query II rowsort
SELECT DISTINCT + 91, 21 - - 76 AS col1
----
91
97

query I rowsort
SELECT - - 70 * - 77 AS col0
----
-5390

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5430
SELECT - COUNT( * ) * - ( + 62 ) * + - 89 * COALESCE ( + - ( - - 7 ), - 18 ) * - + 15 + - + CAST( + + COALESCE ( 62, 31 + + 13 ) AS SIGNED ) + + 76 * - COUNT( DISTINCT 18 )
----
-579528

skipif mysql # not compatible
query I rowsort label-5430
SELECT - COUNT ( * ) * - ( + 62 ) * + - 89 * COALESCE ( + - ( - - 7 ), - 18 ) * - + 15 + - + CAST ( + + COALESCE ( 62, 31 + + 13 ) AS INTEGER ) + + 76 * - COUNT ( DISTINCT 18 )
----
-579528

query II rowsort
SELECT 82 AS col1, 9 + 7
----
82
16

onlyif mysql # aggregate syntax: 
query II rowsort label-5432
SELECT COUNT( * ) AS col1, 92 * ( + 8 ) col2
----
1
736

skipif mysql # not compatible
query II rowsort label-5432
SELECT COUNT ( * ) AS col1, 92 * ( + 8 ) col2
----
1
736

onlyif mysql # DIV for integer division: 
query II rowsort label-5433
SELECT + - 93, 35 DIV ( - + 23 ) DIV - 20 + - 55 AS col0
----
-93
-55

skipif mysql # not compatible
query II rowsort label-5433
SELECT + - 93, 35 / ( - + 23 ) / - 20 + - 55 AS col0
----
-93
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5434
SELECT DISTINCT + - 76 * + - COALESCE ( - 38, 54 * - COALESCE ( + + 20, + + 27 * - 99 ), + - 75, 78 + - + COUNT( * ) ) + - 38
----
-2926

skipif mysql # not compatible
query I rowsort label-5434
SELECT DISTINCT + - 76 * + - COALESCE ( - 38, 54 * - COALESCE ( + + 20, + + 27 * - 99 ), + - 75, 78 + - + COUNT ( * ) ) + - 38
----
-2926

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5436
SELECT ALL + CAST( + NULLIF ( + 11, - COUNT( * ) * + 31 + - + COALESCE ( - 68, COUNT( * ) * + + 84 ) * - + SUM( - 79 ) - 66 ) AS SIGNED ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-5436
SELECT ALL + CAST ( + NULLIF ( + 11, - COUNT ( * ) * + 31 + - + COALESCE ( - 68, COUNT ( * ) * + + 84 ) * - + SUM ( - 79 ) - 66 ) AS INTEGER ) AS col0
----
11

query II rowsort
SELECT - 68 * + 29 AS col0, ( - 73 ) AS col1
----
-1972
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5438
SELECT SUM( DISTINCT + 86 ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-5438
SELECT SUM ( DISTINCT + 86 ) AS col1
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5439
SELECT + COALESCE ( + 35, - CAST( + COUNT( * ) AS SIGNED ) + - - 84 ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-5439
SELECT + COALESCE ( + 35, - CAST ( + COUNT ( * ) AS INTEGER ) + - - 84 ) AS col1
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5440
SELECT DISTINCT CAST( + CASE - 39 WHEN - 39 THEN NULL WHEN 79 + 70 + + + 97 THEN + - 51 END AS SIGNED ) * + - 14 + - CAST( + 46 AS SIGNED ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5440
SELECT DISTINCT CAST ( + CASE - 39 WHEN - 39 THEN NULL WHEN 79 + 70 + + + 97 THEN + - 51 END AS INTEGER ) * + - 14 + - CAST ( + 46 AS INTEGER ) * COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 25 * 95 + + 53 - - 32 AS col1
----
2460

onlyif mysql # aggregate syntax: 
query I rowsort label-5442
SELECT ALL 32 + - ( COUNT( * ) )
----
31

skipif mysql # not compatible
query I rowsort label-5442
SELECT ALL 32 + - ( COUNT ( * ) )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5443
SELECT DISTINCT + MIN( ALL 1 ) * - 30 AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-5443
SELECT DISTINCT + MIN ( ALL 1 ) * - 30 AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5444
SELECT COUNT( DISTINCT + CASE 76 WHEN 27 + + 88 THEN NULL WHEN - + 14 THEN NULL ELSE - 47 END ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5444
SELECT COUNT ( DISTINCT + CASE 76 WHEN 27 + + 88 THEN NULL WHEN - + 14 THEN NULL ELSE - 47 END ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5445
SELECT ALL 96 + + 62 * + + SUM( 13 ) AS col2
----
902

skipif mysql # not compatible
query I rowsort label-5445
SELECT ALL 96 + + 62 * + + SUM ( 13 ) AS col2
----
902

onlyif mysql # aggregate syntax: 
query I rowsort label-5446
SELECT DISTINCT + 16 + + - MIN( DISTINCT - + 31 )
----
47

skipif mysql # not compatible
query I rowsort label-5446
SELECT DISTINCT + 16 + + - MIN ( DISTINCT - + 31 )
----
47

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5448
SELECT + 55 + - 6 DIV + 1 - + 84 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-5448
SELECT + 55 + - 6 / + 1 - + 84 AS col0
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-5449
SELECT - 60 - + 69 AS col0, CASE 90 WHEN 75 THEN + COUNT( * ) ELSE - + COUNT( ALL + - 80 ) END * COUNT( * ) AS col2
----
-129
-1

skipif mysql # not compatible
query II rowsort label-5449
SELECT - 60 - + 69 AS col0, CASE 90 WHEN 75 THEN + COUNT ( * ) ELSE - + COUNT ( ALL + - 80 ) END * COUNT ( * ) AS col2
----
-129
-1

query I rowsort
SELECT ALL 42 + + - 22
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5451
SELECT ALL - 98 - - SUM( DISTINCT 5 )
----
-93

skipif mysql # not compatible
query I rowsort label-5451
SELECT ALL - 98 - - SUM ( DISTINCT 5 )
----
-93

query II rowsort
SELECT DISTINCT - 89 * + 32 AS col0, 72
----
-2848
72

onlyif mysql # DIV for integer division: 
query I rowsort label-5453
SELECT DISTINCT + 43 DIV - 95 * 10 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5453
SELECT DISTINCT + 43 / - 95 * 10 AS col0
----
0

query I rowsort
SELECT DISTINCT COALESCE ( + 10, - 93 + - 81 )
----
10

query II rowsort
SELECT - - ( + 51 ) col0, 65 + 72 + 93 + 55 * + 87 * 90 AS col1
----
51
430880

onlyif mysql # aggregate syntax: 
query III rowsort label-5456
SELECT - + COUNT( * ) + - MIN( - 91 ), + COUNT( * ) * + - 32 col1, 83 AS col1
----
90
-32
83

skipif mysql # not compatible
query III rowsort label-5456
SELECT - + COUNT ( * ) + - MIN ( - 91 ), + COUNT ( * ) * + - 32 col1, 83 AS col1
----
90
-32
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5457
SELECT + - ( - 26 ) * - 44 - MIN( + + 94 ) AS col1
----
-1238

skipif mysql # not compatible
query I rowsort label-5457
SELECT + - ( - 26 ) * - 44 - MIN ( + + 94 ) AS col1
----
-1238

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT - - 24 * + + COUNT( * ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-5458
SELECT - - 24 * + + COUNT ( * ) AS col1
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5459
SELECT ALL + 19 * + CAST( + 54 AS SIGNED )
----
1026

skipif mysql # not compatible
query I rowsort label-5459
SELECT ALL + 19 * + CAST ( + 54 AS INTEGER )
----
1026

onlyif mysql # aggregate syntax: 
query I rowsort label-5460
SELECT + MIN( - 55 ) * - - 10 * + 50 + COUNT( * )
----
-27499

skipif mysql # not compatible
query I rowsort label-5460
SELECT + MIN ( - 55 ) * - - 10 * + 50 + COUNT ( * )
----
-27499

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5461
SELECT ALL - + 7 DIV - 77 * 33 - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5461
SELECT ALL - + 7 / - 77 * 33 - COUNT ( * )
----
-1

query II rowsort
SELECT - 20 * + 77 AS col1, 72 * 31
----
-1540
2232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5463
SELECT - CASE - 7 WHEN + - 20 THEN - COALESCE ( 63, CASE 11 WHEN - CAST( + NULLIF ( + - 47, - 36 * - 37 * 14 ) AS SIGNED ) + + COUNT( * ) THEN NULL WHEN + 24 + - 1 THEN - 33 + MIN( ALL 80 ) END + 94, - 63 + + 15 * 66 ) WHEN 13 - 38 THEN + 95 * COUNT( * ) + 9 END + 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5463
SELECT - CASE - 7 WHEN + - 20 THEN - COALESCE ( 63, CASE 11 WHEN - CAST ( + NULLIF ( + - 47, - 36 * - 37 * 14 ) AS INTEGER ) + + COUNT ( * ) THEN NULL WHEN + 24 + - 1 THEN - 33 + MIN ( ALL 80 ) END + 94, - 63 + + 15 * 66 ) WHEN 13 - 38 THEN + 95 * COUNT ( * ) + 9 END + 77 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + + 13 col1
----
13

query II rowsort
SELECT - + 97 * - - CASE + + 11 WHEN + 64 THEN NULL ELSE + 92 * - 6 END + 85 col2, 37 * 92 - - - 22 + - - 70 + - 74 * - 91
----
53629
10186

query II rowsort
SELECT DISTINCT + + ( 25 ) AS col2, + 44 AS col2
----
25
44

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

skipif mysql # not compatible
query I rowsort label-5467
SELECT DISTINCT - 17 / 23 + COUNT ( * ) * + 38
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5468
SELECT + 28 * + 51 - - - CAST( + 84 AS SIGNED ) + + + 60 + 93
----
1497

skipif mysql # not compatible
query I rowsort label-5468
SELECT + 28 * + 51 - - - CAST ( + 84 AS INTEGER ) + + + 60 + 93
----
1497

query I rowsort
SELECT ALL - + 11 * + 46 * + + 98
----
-49588

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5470
SELECT - 23 + CAST( NULL AS SIGNED ) AS col0, MAX( DISTINCT + - 44 )
----
NULL
-44

skipif mysql # not compatible
query II rowsort label-5470
SELECT - 23 + CAST ( NULL AS INTEGER ) AS col0, MAX ( DISTINCT + - 44 )
----
NULL
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-5471
SELECT + 27 DIV - 82
----
0

skipif mysql # not compatible
query I rowsort label-5471
SELECT + 27 / - 82
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5472
SELECT ALL ( 28 ) * MAX( ALL - 85 ) + - 67 * - - 64 + - ( + - COALESCE ( + 97, + 53 ) ) + - ( + CAST( MAX( DISTINCT - 63 ) AS SIGNED ) ) * 8
----
-6067

skipif mysql # not compatible
query I rowsort label-5472
SELECT ALL ( 28 ) * MAX ( ALL - 85 ) + - 67 * - - 64 + - ( + - COALESCE ( + 97, + 53 ) ) + - ( + CAST ( MAX ( DISTINCT - 63 ) AS INTEGER ) ) * 8
----
-6067

onlyif mysql # aggregate syntax: 
query I rowsort label-5473
SELECT ALL 64 * - COUNT( * ) + - - 29 col1
----
-35

skipif mysql # not compatible
query I rowsort label-5473
SELECT ALL 64 * - COUNT ( * ) + - - 29 col1
----
-35

query I rowsort
SELECT - NULLIF ( 1, + CASE + 20 WHEN - 40 THEN + 15 WHEN + - 14 * - + 71 THEN + - 79 END ) + - 61
----
-62

query I rowsort
SELECT DISTINCT 89 * - 14 + + 69 - - + NULLIF ( 94, + 64 - - - 88 ) col2
----
-1083

onlyif mysql # DIV for integer division: 
query I rowsort label-5476
SELECT ALL 85 DIV 28 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-5476
SELECT ALL 85 / 28 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT ALL MIN( DISTINCT + 65 ) * + + 51 - - 61 * ( + 37 ) + + 90 + - + 90
----
5572

skipif mysql # not compatible
query I rowsort label-5477
SELECT ALL MIN ( DISTINCT + 65 ) * + + 51 - - 61 * ( + 37 ) + + 90 + - + 90
----
5572

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5478
SELECT ALL SUM( DISTINCT - CAST( - - 99 AS SIGNED ) ) * - COUNT( + CASE CAST( - 77 AS SIGNED ) WHEN - + 88 THEN + ( + 16 ) END ) * + + 98 * + 73 * + ( + COUNT( * ) ) + + 48
----
48

skipif mysql # not compatible
query I rowsort label-5478
SELECT ALL SUM ( DISTINCT - CAST ( - - 99 AS INTEGER ) ) * - COUNT ( + CASE CAST ( - 77 AS INTEGER ) WHEN - + 88 THEN + ( + 16 ) END ) * + + 98 * + 73 * + ( + COUNT ( * ) ) + + 48
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5479
SELECT - CASE + 44 WHEN 45 * - + 58 + + 69 + - 74 * AVG ( ALL - 1 ) * - 69 * 64 * - - 64 * - CAST( + - 82 AS SIGNED ) THEN 40 + COUNT( 6 ) END * + 3 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5479
SELECT - CASE + 44 WHEN 45 * - + 58 + + 69 + - 74 * AVG ( ALL - 1 ) * - 69 * 64 * - - 64 * - CAST ( + - 82 AS INTEGER ) THEN 40 + COUNT ( 6 ) END * + 3 col2
----
NULL

query I rowsort
SELECT + 61 + - - 50 AS col0
----
111

query II rowsort
SELECT DISTINCT 49, - 74 col0
----
49
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5482
SELECT NULLIF ( CAST( NULL AS SIGNED ), - 95 ) + - 22 * + - MIN( ALL 84 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5482
SELECT NULLIF ( CAST ( NULL AS INTEGER ), - 95 ) + - 22 * + - MIN ( ALL 84 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 78 - + 29 AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5484
SELECT ALL - 39 * - MAX( DISTINCT + + 83 ) AS col2
----
3237

skipif mysql # not compatible
query I rowsort label-5484
SELECT ALL - 39 * - MAX ( DISTINCT + + 83 ) AS col2
----
3237

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5485
SELECT DISTINCT 60, ( 21 ) + COUNT( * ) DIV NULLIF ( - + 23, + + 76 ) * + + ( + CASE + + COUNT( * ) WHEN + - 97 * + 10 * - 2 + - 71 THEN NULL ELSE 45 END ) * - 16 AS col2
----
60
21

skipif mysql # not compatible
query II rowsort label-5485
SELECT DISTINCT 60, ( 21 ) + COUNT ( * ) / NULLIF ( - + 23, + + 76 ) * + + ( + CASE + + COUNT ( * ) WHEN + - 97 * + 10 * - 2 + - 71 THEN NULL ELSE 45 END ) * - 16 AS col2
----
60
21

query II rowsort
SELECT ALL 64 AS col2, 52 AS col1
----
64
52

query I rowsort
SELECT ALL 55 - - 82
----
137

onlyif mysql # DIV for integer division: 
query I rowsort label-5488
SELECT 92 DIV - 9
----
-10

skipif mysql # not compatible
query I rowsort label-5488
SELECT 92 / - 9
----
-10

query II rowsort
SELECT 93 AS col2, 27 AS col2
----
93
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5490
SELECT CASE 12 WHEN ( + 19 ) * COUNT( * ) * - 18 THEN NULL ELSE - + 40 END AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-5490
SELECT CASE 12 WHEN ( + 19 ) * COUNT ( * ) * - 18 THEN NULL ELSE - + 40 END AS col0
----
-40

query II rowsort
SELECT 41 * - 72 + + - 41, + 14 AS col0
----
-2993
14

query II rowsort
SELECT 37 col0, 81 + 86
----
37
167

onlyif mysql # DIV for integer division: 
query I rowsort label-5493
SELECT ALL 35 DIV + 90
----
0

skipif mysql # not compatible
query I rowsort label-5493
SELECT ALL 35 / + 90
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5494
SELECT 72 / CAST( NULL AS DECIMAL ) + + + 34 + + 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5494
SELECT 72 / CAST ( NULL AS REAL ) + + + 34 + + 28 AS col1
----
NULL

query I rowsort
SELECT + 74 * - 27 col0
----
-1998

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5496
SELECT + 18 - - MAX( ALL ( - + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5496
SELECT + 18 - - MAX ( ALL ( - + CAST ( NULL AS INTEGER ) ) )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5497
SELECT 64 - + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5498
SELECT ALL - 38 DIV + 49
----
0

skipif mysql # not compatible
query I rowsort label-5498
SELECT ALL - 38 / + 49
----
0

query II rowsort
SELECT 80 AS col2, - 53 AS col1
----
80
-53

query I rowsort
SELECT ALL + + CASE + + 67 WHEN + - 60 THEN + - 65 ELSE NULL END * ( - + 32 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5501
SELECT 41 * + 87 + - - COUNT( * ) + + 71 * + + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5501
SELECT 41 * + 87 + - - COUNT ( * ) + + 71 * + + CAST ( NULL AS INTEGER ) col2
----
NULL

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

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

query II rowsort
SELECT + + 87 col2, + 57 - - 54 col1
----
87
111

query II rowsort
SELECT ALL - 30, 56 col1
----
-30
56

query I rowsort
SELECT 89 + 57
----
146

onlyif mysql # DIV for integer division: 
query I rowsort label-5506
SELECT - 92 DIV + + 22 - - 76 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-5506
SELECT - 92 / + + 22 - - 76 AS col0
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-5507
SELECT + 90 * + 9 + + COALESCE ( + 5, - - 70 ) DIV 63 * + + 7
----
810

skipif mysql # not compatible
query I rowsort label-5507
SELECT + 90 * + 9 + + COALESCE ( + 5, - - 70 ) / 63 * + + 7
----
810

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT DISTINCT - 80 + MIN( ALL - 84 ) AS col0
----
-164

skipif mysql # not compatible
query I rowsort label-5508
SELECT DISTINCT - 80 + MIN ( ALL - 84 ) AS col0
----
-164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-5509
SELECT ALL + 22 + + COUNT( * ) DIV + - 9 * - - 78 * + CAST( 49 AS SIGNED ), CASE - + 62 WHEN - 58 * + CAST( - 67 AS DECIMAL ) THEN + 97 * - NULLIF ( + 57, + 68 ) * COUNT( * ) WHEN + 96 * CAST( NULL AS DECIMAL ) THEN NULL ELSE NULL END + + 81 AS col0
----
22
NULL

skipif mysql # not compatible
query II rowsort label-5509
SELECT ALL + 22 + + COUNT ( * ) / + - 9 * - - 78 * + CAST ( 49 AS INTEGER ), CASE - + 62 WHEN - 58 * + CAST ( - 67 AS REAL ) THEN + 97 * - NULLIF ( + 57, + 68 ) * COUNT ( * ) WHEN + 96 * CAST ( NULL AS REAL ) THEN NULL ELSE NULL END + + 81 AS col0
----
22
NULL

query I rowsort
SELECT ALL 86 + - + 3 AS col0
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-5511
SELECT DISTINCT - COALESCE ( - + ( - 58 ), - + 16 DIV + 41 * 65 ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-5511
SELECT DISTINCT - COALESCE ( - + ( - 58 ), - + 16 / + 41 * 65 ) AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT DISTINCT ( - NULLIF ( - - COALESCE ( - 1, + 77 + - ( + 94 ) ), - 94 ) ) + - SUM( DISTINCT - + 62 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-5512
SELECT DISTINCT ( - NULLIF ( - - COALESCE ( - 1, + 77 + - ( + 94 ) ), - 94 ) ) + - SUM ( DISTINCT - + 62 ) AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5513
SELECT ALL + 79 + 55 - + - COUNT( DISTINCT + 65 ) AS col0
----
135

skipif mysql # not compatible
query I rowsort label-5513
SELECT ALL + 79 + 55 - + - COUNT ( DISTINCT + 65 ) AS col0
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT DISTINCT - 15 + - 69 + COUNT( * ) * 11 AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-5514
SELECT DISTINCT - 15 + - 69 + COUNT ( * ) * 11 AS col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5515
SELECT 78 + - COUNT( * ) - - - 33 + + 23 * + 14 * - + MIN( ALL 42 ) + 8
----
-13472

skipif mysql # not compatible
query I rowsort label-5515
SELECT 78 + - COUNT ( * ) - - - 33 + + 23 * + 14 * - + MIN ( ALL 42 ) + 8
----
-13472

query I rowsort
SELECT ALL - 43 + - 60 + + 22 AS col1
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5517
SELECT ALL - 34 DIV ( + - ( - ( - 84 ) ) ) * + SUM( + 33 ) + + 31
----
31

skipif mysql # not compatible
query I rowsort label-5517
SELECT ALL - 34 / ( + - ( - ( - 84 ) ) ) * + SUM ( + 33 ) + + 31
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5518
SELECT + 47 * ( - + COUNT( * ) ) DIV + 92 + - 0 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5518
SELECT + 47 * ( - + COUNT ( * ) ) / + 92 + - 0 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5519
SELECT 68 DIV 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5519
SELECT 68 / 90 AS col0
----
0

query I rowsort
SELECT 4 * 32
----
128

onlyif mysql # DIV for integer division: 
query I rowsort label-5521
SELECT ALL - 98 - 30 DIV 34 * + 26 * + + 34
----
-98

skipif mysql # not compatible
query I rowsort label-5521
SELECT ALL - 98 - 30 / 34 * + 26 * + + 34
----
-98

query I rowsort
SELECT DISTINCT - 16 * 22 AS col1
----
-352

query I rowsort
SELECT 94 * - - 57
----
5358

query I rowsort
SELECT DISTINCT - 53 * - 73 AS col0
----
3869

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT ALL + 99 - + 36 + - 24 - - COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-5525
SELECT ALL + 99 - + 36 + - 24 - - COUNT ( * )
----
40

query I rowsort
SELECT ALL - 44 * - 63 AS col1
----
2772

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5527
SELECT 76 * + CAST( - 62 AS SIGNED ) AS col1
----
-4712

skipif mysql # not compatible
query I rowsort label-5527
SELECT 76 * + CAST ( - 62 AS INTEGER ) AS col1
----
-4712

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5528
SELECT - CASE - AVG ( - CASE COALESCE ( - + 74, - - CAST( NULL AS SIGNED ) * - 46, 38 ) WHEN + + 34 * 87 - - 92 THEN NULL ELSE - ( - - 55 ) + - 42 END ) WHEN 77 - CAST( NULL AS SIGNED ) THEN - 62 END + - 30 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5528
SELECT - CASE - AVG ( - CASE COALESCE ( - + 74, - - CAST ( NULL AS INTEGER ) * - 46, 38 ) WHEN + + 34 * 87 - - 92 THEN NULL ELSE - ( - - 55 ) + - 42 END ) WHEN 77 - CAST ( NULL AS INTEGER ) THEN - 62 END + - 30 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5529
SELECT NULLIF ( + - 79, - COUNT( * ) ) - - - CASE WHEN NOT 42 IN ( + 50 + + 59 - - 16 * - + 96 + + 31 + - 98 ) THEN 98 END AS col1
----
-177

skipif mysql # not compatible
query I rowsort label-5529
SELECT NULLIF ( + - 79, - COUNT ( * ) ) - - - CASE WHEN NOT 42 IN ( + 50 + + 59 - - 16 * - + 96 + + 31 + - 98 ) THEN 98 END AS col1
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT 9 + + COUNT( + 64 ) + + ( - COUNT( * ) ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-5530
SELECT 9 + + COUNT ( + 64 ) + + ( - COUNT ( * ) ) AS col0
----
9

query I rowsort
SELECT DISTINCT 24 * + - 31 * + + 12
----
-8928

query I rowsort
SELECT DISTINCT 42 * - 58 col0
----
-2436

onlyif mysql # aggregate syntax: 
query I rowsort label-5533
SELECT ALL - MIN( DISTINCT + - 26 ) + + - ( - 66 ) * 5 - + 17
----
339

skipif mysql # not compatible
query I rowsort label-5533
SELECT ALL - MIN ( DISTINCT + - 26 ) + + - ( - 66 ) * 5 - + 17
----
339

query I rowsort
SELECT - 16 + 11 col0
----
-5

query I rowsort
SELECT DISTINCT - + 69 * + 5 * 54 + - + 78 AS col1
----
-18708

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5536
SELECT 79 + + - CAST( + COUNT( * ) AS SIGNED ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-5536
SELECT 79 + + - CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
78

query I rowsort
SELECT DISTINCT + 75 + 8
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5538
SELECT ALL NULLIF ( - SUM( + ( - 58 ) ), + - ( 65 ) ) + + + NULLIF ( + + 18, - 28 ) DIV - - 94
----
58

skipif mysql # not compatible
query I rowsort label-5538
SELECT ALL NULLIF ( - SUM ( + ( - 58 ) ), + - ( 65 ) ) + + + NULLIF ( + + 18, - 28 ) / - - 94
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5539
SELECT ALL 26 + + 62 + - COALESCE ( + 17, + ( 16 ) + + 17 + COUNT( 50 ) + 47 DIV + 87 * - 80 ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-5539
SELECT ALL 26 + + 62 + - COALESCE ( + 17, + ( 16 ) + + 17 + COUNT ( 50 ) + 47 / + 87 * - 80 ) AS col0
----
71

query I rowsort
SELECT + 66 + 40 AS col2
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT ALL - COUNT( * ) * 73 * + 20 + - ( + ( + 34 ) ) * 62
----
-3568

skipif mysql # not compatible
query I rowsort label-5541
SELECT ALL - COUNT ( * ) * 73 * + 20 + - ( + ( + 34 ) ) * 62
----
-3568

query I rowsort
SELECT DISTINCT 31 * + + 90 + - - COALESCE ( 72, + 4, - - 84 )
----
2862

onlyif mysql # aggregate syntax: 
query I rowsort label-5543
SELECT DISTINCT - - 50 * + 14 + - + SUM( ALL + - 24 ) AS col2
----
724

skipif mysql # not compatible
query I rowsort label-5543
SELECT DISTINCT - - 50 * + 14 + - + SUM ( ALL + - 24 ) AS col2
----
724

onlyif mysql # aggregate syntax: 
query I rowsort label-5544
SELECT ALL 9 * + 18 * + COUNT( 57 ) AS col2
----
162

skipif mysql # not compatible
query I rowsort label-5544
SELECT ALL 9 * + 18 * + COUNT ( 57 ) AS col2
----
162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5545
SELECT DISTINCT 56 * - 20 + 57 DIV - COUNT( * )
----
-1177

skipif mysql # not compatible
query I rowsort label-5545
SELECT DISTINCT 56 * - 20 + 57 / - COUNT ( * )
----
-1177

onlyif mysql # DIV for integer division: 
query I rowsort label-5546
SELECT DISTINCT 39 DIV 18
----
2

skipif mysql # not compatible
query I rowsort label-5546
SELECT DISTINCT 39 / 18
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5547
SELECT ALL - COALESCE ( 46, 56, + 13 - + 87 ) AS col0, CAST( NULL AS SIGNED )
----
-46
NULL

skipif mysql # not compatible
query II rowsort label-5547
SELECT ALL - COALESCE ( 46, 56, + 13 - + 87 ) AS col0, CAST ( NULL AS INTEGER )
----
-46
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5548
SELECT CAST( - 70 AS SIGNED ) * - 17 + - - 98 col0
----
1288

skipif mysql # not compatible
query I rowsort label-5548
SELECT CAST ( - 70 AS INTEGER ) * - 17 + - - 98 col0
----
1288

query I rowsort
SELECT ALL 73 * + 53 AS col2
----
3869

onlyif mysql # aggregate syntax: 
query I rowsort label-5550
SELECT MAX( DISTINCT + 47 )
----
47

skipif mysql # not compatible
query I rowsort label-5550
SELECT MAX ( DISTINCT + 47 )
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5551
SELECT 0 + + - ( - - CAST( 22 AS SIGNED ) ) * + + 2 AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-5551
SELECT 0 + + - ( - - CAST ( 22 AS INTEGER ) ) * + + 2 AS col2
----
-44

query I rowsort
SELECT DISTINCT 99 * - 79 - - - 78
----
-7899

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT 10 + - MAX( DISTINCT + 13 ) col1
----
-3

skipif mysql # not compatible
query I rowsort label-5553
SELECT 10 + - MAX ( DISTINCT + 13 ) col1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5554
SELECT + COUNT( * ) * + 82 * + NULLIF ( + CAST( - 29 AS SIGNED ), - 5 ) AS col0
----
-2378

skipif mysql # not compatible
query I rowsort label-5554
SELECT + COUNT ( * ) * + 82 * + NULLIF ( + CAST ( - 29 AS INTEGER ), - 5 ) AS col0
----
-2378

query I rowsort
SELECT DISTINCT 31 - 73 AS col2
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-5556
SELECT - 2 + - 32 + - 64 * - COUNT( * ) * - 3, + 18 * 53 * - - 64 AS col0
----
-226
61056

skipif mysql # not compatible
query II rowsort label-5556
SELECT - 2 + - 32 + - 64 * - COUNT ( * ) * - 3, + 18 * 53 * - - 64 AS col0
----
-226
61056

query I rowsort
SELECT 48 * + 24 - + 97 + + + 11 AS col1
----
1066

onlyif mysql # aggregate syntax: 
query II rowsort label-5558
SELECT 89, - 50 * - - COUNT( * ) - + 6 + + - 72 * + 32 - - - 44 AS col0
----
89
-2404

skipif mysql # not compatible
query II rowsort label-5558
SELECT 89, - 50 * - - COUNT ( * ) - + 6 + + - 72 * + 32 - - - 44 AS col0
----
89
-2404

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5559
SELECT 67 * + + COALESCE ( - 75, - + 18, + 7 * - + 90 DIV - 10 - - - 29 ) + + - SUM( ALL + 17 ) AS col2, 40 * + 83 AS col2
----
-5042
3320

skipif mysql # not compatible
query II rowsort label-5559
SELECT 67 * + + COALESCE ( - 75, - + 18, + 7 * - + 90 / - 10 - - - 29 ) + + - SUM ( ALL + 17 ) AS col2, 40 * + 83 AS col2
----
-5042
3320

query I rowsort
SELECT - 30 * - 49 AS col0
----
1470

query I rowsort
SELECT + ( - ( 76 ) ) * 34 col1
----
-2584

onlyif mysql # DIV for integer division: 
query I rowsort label-5562
SELECT - - 37 + + 89 DIV - - ( + 52 ) + + + ( 98 ) AS col0
----
136

skipif mysql # not compatible
query I rowsort label-5562
SELECT - - 37 + + 89 / - - ( + 52 ) + + + ( 98 ) AS col0
----
136

query II rowsort
SELECT ALL 68, + 15 AS col2
----
68
15

onlyif mysql # DIV for integer division: 
query I rowsort label-5564
SELECT - - 93 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-5564
SELECT - - 93 / 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5565
SELECT ALL + - 97 + NULLIF ( - - COUNT( * ), 28 )
----
-96

skipif mysql # not compatible
query I rowsort label-5565
SELECT ALL + - 97 + NULLIF ( - - COUNT ( * ), 28 )
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-5566
SELECT ALL + + COUNT( DISTINCT - 61 ) * - - 94 AS col1, + 32 AS col2
----
94
32

skipif mysql # not compatible
query II rowsort label-5566
SELECT ALL + + COUNT ( DISTINCT - 61 ) * - - 94 AS col1, + 32 AS col2
----
94
32

query I rowsort
SELECT ALL - 7 + - 43
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5568
SELECT ALL + 60 AS col1, CAST( NULL AS SIGNED ) AS col2
----
60
NULL

skipif mysql # not compatible
query II rowsort label-5568
SELECT ALL + 60 AS col1, CAST ( NULL AS INTEGER ) AS col2
----
60
NULL

query I rowsort
SELECT DISTINCT - + ( - 10 ) + 84 AS col0
----
94

query I rowsort
SELECT ALL + 16 + 73
----
89

query I rowsort
SELECT - 27 * - - 64 AS col2
----
-1728

query I rowsort
SELECT - + 66 + 39
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT - SUM( DISTINCT 31 ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-5573
SELECT - SUM ( DISTINCT 31 ) AS col1
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-5574
SELECT - - ( + COUNT( * ) ) * - 49 * - 31 + + 66 AS col0, + 62
----
1585
62

skipif mysql # not compatible
query II rowsort label-5574
SELECT - - ( + COUNT ( * ) ) * - 49 * - 31 + + 66 AS col0, + 62
----
1585
62

query I rowsort
SELECT + - 86 * + 12
----
-1032

query I rowsort
SELECT ALL 47 + - 74 AS col2
----
-27

query I rowsort
SELECT - 16 - - 59
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5578
SELECT + ( + 82 ) - + COUNT( * ) - 94 + 34 DIV + 26
----
-12

skipif mysql # not compatible
query I rowsort label-5578
SELECT + ( + 82 ) - + COUNT ( * ) - 94 + 34 / + 26
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5579
SELECT ALL + - 25 + CAST( - 20 AS SIGNED ) + 13 * CAST( NULL AS SIGNED ) - + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-5579
SELECT ALL + - 25 + CAST ( - 20 AS INTEGER ) + 13 * CAST ( NULL AS INTEGER ) - + 0
----
NULL

query I rowsort
SELECT DISTINCT + 33 * - + 75 col1
----
-2475

query I rowsort
SELECT ALL 33 * + 33 AS col1
----
1089

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT - COUNT( * ) + + + 77 + 36 * + 79 * 7 + + + 23
----
20007

skipif mysql # not compatible
query I rowsort label-5582
SELECT - COUNT ( * ) + + + 77 + 36 * + 79 * 7 + + + 23
----
20007

onlyif mysql # aggregate syntax: 
query I rowsort label-5583
SELECT + ( + CASE - 49 WHEN - AVG ( 12 ) * - + 42 * - - COUNT( * ) * + + 39 THEN NULL WHEN 35 + + ( + 54 ) * + 60 - + 66 THEN NULL WHEN - + CASE - 53 WHEN 90 THEN - 8 * + 15 ELSE NULL END THEN - 67 WHEN + 27 THEN NULL END ) * - NULLIF ( + 56 * NULLIF ( 74 * + 69, + 28 + - 93 ), 27 * - SUM( ALL 29 * 96 ) + + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5583
SELECT + ( + CASE - 49 WHEN - AVG ( 12 ) * - + 42 * - - COUNT ( * ) * + + 39 THEN NULL WHEN 35 + + ( + 54 ) * + 60 - + 66 THEN NULL WHEN - + CASE - 53 WHEN 90 THEN - 8 * + 15 ELSE NULL END THEN - 67 WHEN + 27 THEN NULL END ) * - NULLIF ( + 56 * NULLIF ( 74 * + 69, + 28 + - 93 ), 27 * - SUM ( ALL 29 * 96 ) + + COUNT ( * ) )
----
NULL

query I rowsort
SELECT 16 * - 72 * + 3 * NULLIF ( 17, - 26 ) + - - 5 + + 53 + - + 41
----
-58735

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5586
SELECT + ( COUNT( * ) ) * - 65 - + - COUNT( DISTINCT - 28 ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-5586
SELECT + ( COUNT ( * ) ) * - 65 - + - COUNT ( DISTINCT - 28 ) AS col0
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5587
SELECT ALL COALESCE ( + 56, - COUNT( * ) DIV 56 ) DIV - 99 DIV 43 * - 47 - - - 55 * + 34 * 98
----
-183260

skipif mysql # not compatible
query I rowsort label-5587
SELECT ALL COALESCE ( + 56, - COUNT ( * ) / 56 ) / - 99 / 43 * - 47 - - - 55 * + 34 * 98
----
-183260

query I rowsort
SELECT + 61 + 78 + + + 27 AS col2
----
166

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5589
SELECT ALL COUNT( 88 ) DIV - 30
----
0

skipif mysql # not compatible
query I rowsort label-5589
SELECT ALL COUNT ( 88 ) / - 30
----
0

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

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

query I rowsort
SELECT + 78 * 38
----
2964

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5592
SELECT ALL - MIN( + 67 ) * - MAX( DISTINCT + + COALESCE ( - CAST( NULL AS SIGNED ), + 93 ) ) + + - 56
----
6175

skipif mysql # not compatible
query I rowsort label-5592
SELECT ALL - MIN ( + 67 ) * - MAX ( DISTINCT + + COALESCE ( - CAST ( NULL AS INTEGER ), + 93 ) ) + + - 56
----
6175

query I rowsort
SELECT + 54 * 89 * 86 AS col2
----
413316

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5594
SELECT + CAST( NULL AS SIGNED ) AS col0, 30 DIV COUNT( * ) AS col0
----
NULL
30

skipif mysql # not compatible
query II rowsort label-5594
SELECT + CAST ( NULL AS INTEGER ) AS col0, 30 / COUNT ( * ) AS col0
----
NULL
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5595
SELECT COUNT( * ) * 63 + + COUNT( * ) * 42 + + + COUNT( * )
----
106

skipif mysql # not compatible
query I rowsort label-5595
SELECT COUNT ( * ) * 63 + + COUNT ( * ) * 42 + + + COUNT ( * )
----
106

query II rowsort
SELECT + 7, 65 AS col2
----
7
65

query II rowsort
SELECT DISTINCT + 70 AS col0, 76 * 72 - - + 27 AS col0
----
70
5499

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5598
SELECT ALL COALESCE ( - 17, 15 ) * - 19 * - COUNT( - 37 ) + + 60 + - MAX( DISTINCT + 5 ) + 97 + MIN( ALL 89 ) + + 72 * - 28 * + COUNT( - + CAST( NULL AS SIGNED ) )
----
-82

skipif mysql # not compatible
query I rowsort label-5598
SELECT ALL COALESCE ( - 17, 15 ) * - 19 * - COUNT ( - 37 ) + + 60 + - MAX ( DISTINCT + 5 ) + 97 + MIN ( ALL 89 ) + + 72 * - 28 * + COUNT ( - + CAST ( NULL AS INTEGER ) )
----
-82

query I rowsort
SELECT + 18 * + 66
----
1188

query I rowsort
SELECT - 24 * + 34 AS col0
----
-816

onlyif mysql # aggregate syntax: 
query I rowsort label-5601
SELECT DISTINCT + + ( COALESCE ( 23, - - 12 * 97 - + 68 + COUNT( * ) ) ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-5601
SELECT DISTINCT + + ( COALESCE ( 23, - - 12 * 97 - + 68 + COUNT ( * ) ) ) AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT ALL - 58 * - + ( + 13 ) + COUNT( * ) + - 3
----
752

skipif mysql # not compatible
query I rowsort label-5602
SELECT ALL - 58 * - + ( + 13 ) + COUNT ( * ) + - 3
----
752

query I rowsort
SELECT + - 5 - + - 58
----
53

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5605
SELECT - + 94 * + 14 * COUNT( * ) * COALESCE ( + + 48, + + ( ( CASE - COUNT( * ) WHEN + 16 THEN CASE 89 WHEN + 54 THEN 83 + - CAST( + 52 AS SIGNED ) * 23 WHEN 62 * 50 THEN + 2 * 70 + 27 * 6 ELSE ( COUNT( - 32 ) ) END + + 23 * + ( 97 ) ELSE NULL END ) ) ) * 2 + - CAST( NULL AS SIGNED ) + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-5605
SELECT - + 94 * + 14 * COUNT ( * ) * COALESCE ( + + 48, + + ( ( CASE - COUNT ( * ) WHEN + 16 THEN CASE 89 WHEN + 54 THEN 83 + - CAST ( + 52 AS INTEGER ) * 23 WHEN 62 * 50 THEN + 2 * 70 + 27 * 6 ELSE ( COUNT ( - 32 ) ) END + + 23 * + ( 97 ) ELSE NULL END ) ) ) * 2 + - CAST ( NULL AS INTEGER ) + 74
----
NULL

query II rowsort
SELECT ALL + 72, 54 AS col2
----
72
54

query I rowsort
SELECT - 21 - - 96 + - + 65 * - 71
----
4690

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5608
SELECT DISTINCT + MIN( ALL - 52 ) DIV - - 68
----
0

skipif mysql # not compatible
query I rowsort label-5608
SELECT DISTINCT + MIN ( ALL - 52 ) / - - 68
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5609
SELECT + - ( - + 40 ) + + COUNT( * ) + + 67 DIV COUNT( * ) AS col0
----
108

skipif mysql # not compatible
query I rowsort label-5609
SELECT + - ( - + 40 ) + + COUNT ( * ) + + 67 / COUNT ( * ) AS col0
----
108

query II rowsort
SELECT 5 AS col0, + 96 + 2
----
5
98

query I rowsort
SELECT - 48 + + + 31
----
-17

query I rowsort
SELECT DISTINCT + 93 * + + 82 col1
----
7626

query I rowsort
SELECT ALL - + 89 + - 13 AS col2
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-5614
SELECT - 1 + - + MAX( DISTINCT + - 86 )
----
85

skipif mysql # not compatible
query I rowsort label-5614
SELECT - 1 + - + MAX ( DISTINCT + - 86 )
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5615
SELECT - - 54 + - 86 - - 97 * - 97 / COALESCE ( + 79, - 73 ) / 55 * - 86 + 68 * + CAST( NULL AS SIGNED ) + + ( - ( - + 4 ) ) * + 46 * - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-5615
SELECT - - 54 + - 86 - - 97 * - 97 / COALESCE ( + 79, - 73 ) / 55 * - 86 + 68 * + CAST ( NULL AS INTEGER ) + + ( - ( - + 4 ) ) * + 46 * - 56
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5616
SELECT ALL + MIN( - - 53 ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-5616
SELECT ALL + MIN ( - - 53 ) AS col2
----
53

query I rowsort
SELECT - + 38 * + - 32
----
1216

query I rowsort
SELECT - + 79 + 60 AS col0
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5619
SELECT ALL + + CAST( 16 AS SIGNED ) - + COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-5619
SELECT ALL + + CAST ( 16 AS INTEGER ) - + COUNT ( * )
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-5620
SELECT - 27 + 13 AS col0, - COUNT( * ) * + + 67 + + - 32 col0
----
-14
-99

skipif mysql # not compatible
query II rowsort label-5620
SELECT - 27 + 13 AS col0, - COUNT ( * ) * + + 67 + + - 32 col0
----
-14
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5621
SELECT ALL ( - 81 ), + 65 * + CAST( NULL AS SIGNED ) AS col2
----
-81
NULL

skipif mysql # not compatible
query II rowsort label-5621
SELECT ALL ( - 81 ), + 65 * + CAST ( NULL AS INTEGER ) AS col2
----
-81
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5622
SELECT - 39 DIV 73 * + + NULLIF ( + 52, + COALESCE ( - - ( + 94 ), + - 76, + 54 ) DIV - + 62 + 3 * + ( - 19 ) + + + CASE - CAST( + + 81 AS SIGNED ) WHEN - 23 THEN 33 DIV - ( - ( 57 ) * 53 ) ELSE MIN( ALL + 52 ) END )
----
0

skipif mysql # not compatible
query I rowsort label-5622
SELECT - 39 / 73 * + + NULLIF ( + 52, + COALESCE ( - - ( + 94 ), + - 76, + 54 ) / - + 62 + 3 * + ( - 19 ) + + + CASE - CAST ( + + 81 AS INTEGER ) WHEN - 23 THEN 33 / - ( - ( 57 ) * 53 ) ELSE MIN ( ALL + 52 ) END )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5623
SELECT ALL - 75 DIV - 33 col2, 28 AS col1
----
2
28

skipif mysql # not compatible
query II rowsort label-5623
SELECT ALL - 75 / - 33 col2, 28 AS col1
----
2
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5624
SELECT - 56 + + + COUNT( * ) - - - 69
----
-124

skipif mysql # not compatible
query I rowsort label-5624
SELECT - 56 + + + COUNT ( * ) - - - 69
----
-124

query I rowsort
SELECT 75 * 56 AS col1
----
4200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5626
SELECT 84 / 54 + - 56 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5626
SELECT 84 / 54 + - 56 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5627
SELECT ALL - MAX ( - 47 )
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5628
SELECT ALL CASE - - 18 WHEN + 43 - - 37 * + 22 + 82 THEN + - COUNT( * ) + - CAST( NULL AS SIGNED ) - 54 ELSE NULL END * - 72 * 90
----
NULL

skipif mysql # not compatible
query I rowsort label-5628
SELECT ALL CASE - - 18 WHEN + 43 - - 37 * + 22 + 82 THEN + - COUNT ( * ) + - CAST ( NULL AS INTEGER ) - 54 ELSE NULL END * - 72 * 90
----
NULL

query I rowsort
SELECT ALL - ( - - 99 ) AS col0
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5630
SELECT COUNT( * ) + + + 42 AS col1, - 70 DIV - 73 * - COALESCE ( - COUNT( ALL - - 11 ), CAST( + 4 AS SIGNED ) ) AS col2
----
43
0

skipif mysql # not compatible
query II rowsort label-5630
SELECT COUNT ( * ) + + + 42 AS col1, - 70 / - 73 * - COALESCE ( - COUNT ( ALL - - 11 ), CAST ( + 4 AS INTEGER ) ) AS col2
----
43
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5631
SELECT DISTINCT ( - - ( + CAST( NULL AS SIGNED ) ) ) * - COUNT( * ) / - ( + 79 ) + - + ( - 50 ) / - NULLIF ( + 22, + 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5631
SELECT DISTINCT ( - - ( + CAST ( NULL AS INTEGER ) ) ) * - COUNT ( * ) / - ( + 79 ) + - + ( - 50 ) / - NULLIF ( + 22, + 79 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5632
SELECT ALL + 85 * - + 46 AS col1, + 95 * + ( - COUNT( * ) ) * COUNT( * ) AS col0
----
-3910
-95

skipif mysql # not compatible
query II rowsort label-5632
SELECT ALL + 85 * - + 46 AS col1, + 95 * + ( - COUNT ( * ) ) * COUNT ( * ) AS col0
----
-3910
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT COALESCE ( - 75, - 61 * + + 3 * + 75 ) * COUNT( * ) - - + 68 - + 43 AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-5633
SELECT COALESCE ( - 75, - 61 * + + 3 * + 75 ) * COUNT ( * ) - - + 68 - + 43 AS col1
----
-50

query I rowsort
SELECT 90 * - + 37
----
-3330

onlyif mysql # aggregate syntax: 
query I rowsort label-5635
SELECT 85 * - COUNT( * ) - + ( + 96 )
----
-181

skipif mysql # not compatible
query I rowsort label-5635
SELECT 85 * - COUNT ( * ) - + ( + 96 )
----
-181

onlyif mysql # DIV for integer division: 
query I rowsort label-5636
SELECT 22 DIV + + 52 - + 95 * - 87 AS col1
----
8265

skipif mysql # not compatible
query I rowsort label-5636
SELECT 22 / + + 52 - + 95 * - 87 AS col1
----
8265

onlyif mysql # DIV for integer division: 
query I rowsort label-5637
SELECT 9 DIV 26
----
0

skipif mysql # not compatible
query I rowsort label-5637
SELECT 9 / 26
----
0

query I rowsort
SELECT 44 + 12
----
56

query II rowsort
SELECT ALL 30 + 71 col0, - 93
----
101
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-5640
SELECT DISTINCT + 12 + - - NULLIF ( + COUNT( * ), + 10 )
----
13

skipif mysql # not compatible
query I rowsort label-5640
SELECT DISTINCT + 12 + - - NULLIF ( + COUNT ( * ), + 10 )
----
13

query I rowsort
SELECT DISTINCT 8 + 83 - + 55 col0
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5642
SELECT ( + CASE 49 WHEN 72 THEN 89 * + 86 + - 80 * + COUNT( DISTINCT + 4 ) * + 76 WHEN - 94 THEN + 50 ELSE - 30 * - 68 END ) * - 49 * + 79 * + COALESCE ( - 25, 75 ) + CAST( 20 AS SIGNED ) AS col1
----
197421020

skipif mysql # not compatible
query I rowsort label-5642
SELECT ( + CASE 49 WHEN 72 THEN 89 * + 86 + - 80 * + COUNT ( DISTINCT + 4 ) * + 76 WHEN - 94 THEN + 50 ELSE - 30 * - 68 END ) * - 49 * + 79 * + COALESCE ( - 25, 75 ) + CAST ( 20 AS INTEGER ) AS col1
----
197421020

query I rowsort
SELECT + 26 * - 71 + - - 72 AS col0
----
-1774

query I rowsort
SELECT + 21 * + 11 + + ( - - 43 ) * + + ( + 12 ) * - - 88 + - 81 AS col0
----
45558

onlyif mysql # aggregate syntax: 
query I rowsort label-5645
SELECT ALL 79 * - MIN( - - 61 )
----
-4819

skipif mysql # not compatible
query I rowsort label-5645
SELECT ALL 79 * - MIN ( - - 61 )
----
-4819

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5646
SELECT DISTINCT + CAST( CAST( + 23 AS SIGNED ) AS SIGNED ) * + 98 * + 8 * + + COUNT( * ) - - 41 col2
----
18073

skipif mysql # not compatible
query I rowsort label-5646
SELECT DISTINCT + CAST ( CAST ( + 23 AS INTEGER ) AS INTEGER ) * + 98 * + 8 * + + COUNT ( * ) - - 41 col2
----
18073

query I rowsort
SELECT ALL + 38 - - 22 AS col1
----
60

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5649
SELECT + MIN( DISTINCT - 38 ) col1
----
-38

skipif mysql # not compatible
query I rowsort label-5649
SELECT + MIN ( DISTINCT - 38 ) col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-5650
SELECT + MIN( + 2 ) * + 31 * 67 + 41 * - 62 AS col2
----
1612

skipif mysql # not compatible
query I rowsort label-5650
SELECT + MIN ( + 2 ) * + 31 * 67 + 41 * - 62 AS col2
----
1612

onlyif mysql # aggregate syntax: 
query I rowsort label-5651
SELECT DISTINCT MAX( ALL + + 62 ) col2
----
62

skipif mysql # not compatible
query I rowsort label-5651
SELECT DISTINCT MAX ( ALL + + 62 ) col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5652
SELECT 12 - + ( + - COUNT( * ) )
----
13

skipif mysql # not compatible
query I rowsort label-5652
SELECT 12 - + ( + - COUNT ( * ) )
----
13

query I rowsort
SELECT ALL 9 * - - NULLIF ( - 44, - - 46 )
----
-396

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5654
SELECT 75 * 64 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5654
SELECT 75 * 64 / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 94 - + - 44
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-5656
SELECT DISTINCT 8 * - - 75 * 41 * - + COUNT( * )
----
-24600

skipif mysql # not compatible
query I rowsort label-5656
SELECT DISTINCT 8 * - - 75 * 41 * - + COUNT ( * )
----
-24600

query I rowsort
SELECT ALL - ( - NULLIF ( + 88, - - 65 ) ) AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5658
SELECT DISTINCT - MAX( 33 ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-5658
SELECT DISTINCT - MAX ( 33 ) AS col2
----
-33

query I rowsort
SELECT 89 * + - ( 40 ) + + - 63 + 80 AS col1
----
-3543

query I rowsort
SELECT 0 * + 16 * 6
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5662
SELECT ALL + 8 + - MAX( + + ( + CAST( NULL AS DECIMAL ) ) ) + + 29 * + - 42 + + 94 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5662
SELECT ALL + 8 + - MAX ( + + ( + CAST ( NULL AS REAL ) ) ) + + 29 * + - 42 + + 94 AS col2
----
NULL

query II rowsort
SELECT ALL - 54, + 70 AS col2
----
-54
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5664
SELECT DISTINCT - 63 + - 18 * 61 * CAST( - 27 AS SIGNED )
----
29583

skipif mysql # not compatible
query I rowsort label-5664
SELECT DISTINCT - 63 + - 18 * 61 * CAST ( - 27 AS INTEGER )
----
29583

query II rowsort
SELECT ALL + ( + - 5 ) + 71, + 82 - + + 64 AS col2
----
66
18

query I rowsort
SELECT ALL 97 * 22 AS col1
----
2134

query II rowsort
SELECT NULLIF ( 9, + 67 * + 92 ) AS col1, + 33 + + 13
----
9
46

query I rowsort
SELECT ALL 6 + - - 23
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5669
SELECT DISTINCT - - MIN( ALL - 65 ) * - 36 + + 59 + COALESCE ( - - 32, - ( - 5 ), 52 * - + 83 ) + + + 72 * + MIN( - + 14 ) DIV - COUNT( * )
----
3439

skipif mysql # not compatible
query I rowsort label-5669
SELECT DISTINCT - - MIN ( ALL - 65 ) * - 36 + + 59 + COALESCE ( - - 32, - ( - 5 ), 52 * - + 83 ) + + + 72 * + MIN ( - + 14 ) / - COUNT ( * )
----
3439

query I rowsort
SELECT - - 56 * + 84 - - 94 + 2 + - 65 AS col0
----
4735

query I rowsort
SELECT - 94 * - ( + 19 ) AS col1
----
1786

query I rowsort
SELECT + 33 + 76
----
109

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5674
SELECT 60, + 43 * - COUNT( * ) * - + 9 AS col1
----
60
387

skipif mysql # not compatible
query II rowsort label-5674
SELECT 60, + 43 * - COUNT ( * ) * - + 9 AS col1
----
60
387

query I rowsort
SELECT + ( - - 0 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5676
SELECT COUNT( * ) - + - CAST( NULL AS SIGNED ) + + + 64 * 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5676
SELECT COUNT ( * ) - + - CAST ( NULL AS INTEGER ) + + + 64 * 85 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5677
SELECT DISTINCT - - 25 AS col2, ( COUNT( * ) ) DIV - 39 + + 94 AS col2
----
25
94

skipif mysql # not compatible
query II rowsort label-5677
SELECT DISTINCT - - 25 AS col2, ( COUNT ( * ) ) / - 39 + + 94 AS col2
----
25
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5678
SELECT + 14 * + - 26 + COUNT( * ) AS col2
----
-363

skipif mysql # not compatible
query I rowsort label-5678
SELECT + 14 * + - 26 + COUNT ( * ) AS col2
----
-363

query II rowsort
SELECT ALL - 45 AS col2, - 50 - 93
----
-45
-143

query I rowsort
SELECT ALL 27 * - 78 AS col1
----
-2106

query I rowsort
SELECT 48 + + + 48 * + - 20 AS col2
----
-912

query I rowsort
SELECT ALL 36 * - 33
----
-1188

onlyif mysql # DIV for integer division: 
query I rowsort label-5683
SELECT 78 DIV 51 * + - 94
----
-94

skipif mysql # not compatible
query I rowsort label-5683
SELECT 78 / 51 * + - 94
----
-94

query I rowsort
SELECT DISTINCT - 16 * - 1 AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5685
SELECT ALL 93 * - + ( - COUNT( * ) ) + - ( + - COUNT( * ) )
----
94

skipif mysql # not compatible
query I rowsort label-5685
SELECT ALL 93 * - + ( - COUNT ( * ) ) + - ( + - COUNT ( * ) )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5686
SELECT + - 77 + - - COUNT( * ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-5686
SELECT + - 77 + - - COUNT ( * ) AS col1
----
-76

query I rowsort
SELECT + - 71 + - 16
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5688
SELECT + 97 + - + CAST( - + 79 AS SIGNED ) + + 90 col0
----
266

skipif mysql # not compatible
query I rowsort label-5688
SELECT + 97 + - + CAST ( - + 79 AS INTEGER ) + + 90 col0
----
266

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5689
SELECT ALL 56 + + 25 * - - 44 - 21 + 26 - - - MIN( - 89 ), - COUNT( * ) * + 54 DIV - - COUNT( * ) AS col1
----
1250
-54

skipif mysql # not compatible
query II rowsort label-5689
SELECT ALL 56 + + 25 * - - 44 - 21 + 26 - - - MIN ( - 89 ), - COUNT ( * ) * + 54 / - - COUNT ( * ) AS col1
----
1250
-54

query I rowsort
SELECT + 79 * 6 AS col1
----
474

query I rowsort
SELECT + 38 + 70 AS col2
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5692
SELECT + COUNT( * ) * - 5 * - MAX( ALL + 9 ) AS col1, CAST( NULL AS SIGNED ) AS col1
----
45
NULL

skipif mysql # not compatible
query II rowsort label-5692
SELECT + COUNT ( * ) * - 5 * - MAX ( ALL + 9 ) AS col1, CAST ( NULL AS INTEGER ) AS col1
----
45
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5693
SELECT ALL 37 DIV - CAST( NULL AS SIGNED ) AS col0, 85 DIV + COUNT( * ) AS col0
----
NULL
85

skipif mysql # not compatible
query II rowsort label-5693
SELECT ALL 37 / - CAST ( NULL AS INTEGER ) AS col0, 85 / + COUNT ( * ) AS col0
----
NULL
85

query I rowsort
SELECT + 43 + - 91 + - 73
----
-121

query I rowsort
SELECT + CASE - + 20 WHEN + - NULLIF ( - 21, - 32 ) THEN NULL ELSE + - ( 50 ) END
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5696
SELECT DISTINCT - 26 * - COUNT( * ) + - + 45 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-5696
SELECT DISTINCT - 26 * - COUNT ( * ) + - + 45 AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5697
SELECT ALL + 42 * - 11 + - - ( + - COUNT( DISTINCT - + 70 ) )
----
-463

skipif mysql # not compatible
query I rowsort label-5697
SELECT ALL + 42 * - 11 + - - ( + - COUNT ( DISTINCT - + 70 ) )
----
-463

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5698
SELECT DISTINCT + CAST( 36 AS SIGNED ) * + 60 + + 79 AS col0
----
2239

skipif mysql # not compatible
query I rowsort label-5698
SELECT DISTINCT + CAST ( 36 AS INTEGER ) * + 60 + + 79 AS col0
----
2239

onlyif mysql # aggregate syntax: 
query I rowsort label-5699
SELECT DISTINCT + MAX( 13 )
----
13

skipif mysql # not compatible
query I rowsort label-5699
SELECT DISTINCT + MAX ( 13 )
----
13

query I rowsort
SELECT ALL + 65 * + 82 + + - 37 AS col1
----
5293

onlyif mysql # aggregate syntax: 
query I rowsort label-5701
SELECT - COUNT( * ) * - - 4 + + 7
----
3

skipif mysql # not compatible
query I rowsort label-5701
SELECT - COUNT ( * ) * - - 4 + + 7
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5702
SELECT DISTINCT ( 78 ) * - 97 + - COUNT( * ) + + NULLIF ( + ( - NULLIF ( + - 27, - ( + COUNT( DISTINCT 9 ) ) * - NULLIF ( - 89, + - 72 ) ) ), ( - 33 ) )
----
-7540

skipif mysql # not compatible
query I rowsort label-5702
SELECT DISTINCT ( 78 ) * - 97 + - COUNT ( * ) + + NULLIF ( + ( - NULLIF ( + - 27, - ( + COUNT ( DISTINCT 9 ) ) * - NULLIF ( - 89, + - 72 ) ) ), ( - 33 ) )
----
-7540

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

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

query I rowsort
SELECT - + 93 * - - 9 col2
----
-837

onlyif mysql # aggregate syntax: 
query I rowsort label-5705
SELECT - - MIN( + - 65 ) + 88 * + - COUNT( * ) col1
----
-153

skipif mysql # not compatible
query I rowsort label-5705
SELECT - - MIN ( + - 65 ) + 88 * + - COUNT ( * ) col1
----
-153

onlyif mysql # aggregate syntax: 
query II rowsort label-5706
SELECT + 66 * COUNT( * ) * - 7 + + COUNT( * ), 91 * - + 33 AS col2
----
-461
-3003

skipif mysql # not compatible
query II rowsort label-5706
SELECT + 66 * COUNT ( * ) * - 7 + + COUNT ( * ), 91 * - + 33 AS col2
----
-461
-3003

query I rowsort
SELECT - + 58 * + + 27 AS col1
----
-1566

query I rowsort
SELECT DISTINCT + 14 * + 41
----
574

query I rowsort
SELECT - 24 * - + 28 AS col2
----
672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5710
SELECT - ( + - CASE - 36 WHEN - COALESCE ( + 14, - - 80 / - - 74, 54 * + CASE 39 WHEN + 65 THEN - 26 * - 77 * - COUNT( * ) ELSE + 67 * + - 82 END ) * - - CAST( - 60 AS SIGNED ) + - - COUNT( ALL + ( + 16 ) ) + - NULLIF ( + 57 + - 30 * - 63, 90 ) THEN 65 ELSE NULL END ) * + SUM( DISTINCT 75 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5710
SELECT - ( + - CASE - 36 WHEN - COALESCE ( + 14, - - 80 / - - 74, 54 * + CASE 39 WHEN + 65 THEN - 26 * - 77 * - COUNT ( * ) ELSE + 67 * + - 82 END ) * - - CAST ( - 60 AS INTEGER ) + - - COUNT ( ALL + ( + 16 ) ) + - NULLIF ( + 57 + - 30 * - 63, 90 ) THEN 65 ELSE NULL END ) * + SUM ( DISTINCT 75 )
----
NULL

query II rowsort
SELECT ALL - 86 * - + 33, 3 col1
----
2838
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5712
SELECT - ( + - 94 ) AS col1, - COUNT( * ) / + CAST( NULL AS SIGNED ) * - 15 col0
----
94
NULL

skipif mysql # not compatible
query II rowsort label-5712
SELECT - ( + - 94 ) AS col1, - COUNT ( * ) / + CAST ( NULL AS INTEGER ) * - 15 col0
----
94
NULL

query I rowsort
SELECT + + 1 + + 51 AS col1
----
52

query I rowsort
SELECT - - 31 * 83 + + - 32 AS col0
----
2541

query I rowsort
SELECT DISTINCT + NULLIF ( - + 99, - - 40 )
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-5716
SELECT + 62 * - - 33 * + 57 AS col1, 61 * MIN( DISTINCT 92 ) AS col0
----
116622
5612

skipif mysql # not compatible
query II rowsort label-5716
SELECT + 62 * - - 33 * + 57 AS col1, 61 * MIN ( DISTINCT 92 ) AS col0
----
116622
5612

query I rowsort
SELECT ALL + 53 + 32 + - ( - - 59 ) + + 22 + + + 71 * 51
----
3669

query II rowsort
SELECT 57 AS col2, 86 + + 8
----
57
94

query I rowsort
SELECT - 50 - - 16 * + + 73 col1
----
1118

onlyif mysql # aggregate syntax: 
query I rowsort label-5720
SELECT - NULLIF ( MIN( DISTINCT + 0 ), + 6 )
----
0

skipif mysql # not compatible
query I rowsort label-5720
SELECT - NULLIF ( MIN ( DISTINCT + 0 ), + 6 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5721
SELECT ALL NULLIF ( 14, 47 ) + - COUNT( * ) * + 9 * - CAST( NULL AS DECIMAL ) / + + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-5721
SELECT ALL NULLIF ( 14, 47 ) + - COUNT ( * ) * + 9 * - CAST ( NULL AS REAL ) / + + 18
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5722
SELECT - CAST( NULL AS DECIMAL ) + 32 * MIN( - 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5722
SELECT - CAST ( NULL AS REAL ) + 32 * MIN ( - 19 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5723
SELECT ALL 96 + COUNT( * ) * - COALESCE ( + 42, - + 39 ) - 70 + 87
----
71

skipif mysql # not compatible
query I rowsort label-5723
SELECT ALL 96 + COUNT ( * ) * - COALESCE ( + 42, - + 39 ) - 70 + 87
----
71

query I rowsort
SELECT ALL 14 * - 13 AS col2
----
-182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5725
SELECT DISTINCT ( - - NULLIF ( - 48, - + COALESCE ( 67, + ( 4 ), + CASE - 60 WHEN - ( + 37 ) * + 28 THEN 88 WHEN + CASE + 14 WHEN + + CAST( 0 AS SIGNED ) THEN NULL WHEN - 2 THEN NULL ELSE + + CAST( NULL AS SIGNED ) END + + + COUNT( * ) THEN - CASE WHEN NOT ( MAX( 27 ) ) IS NULL THEN + 9 / COUNT( * ) WHEN 22 IS NULL THEN 84 * 98 END END ) ) ) + COUNT( * ) * - 61
----
-109

skipif mysql # not compatible
query I rowsort label-5725
SELECT DISTINCT ( - - NULLIF ( - 48, - + COALESCE ( 67, + ( 4 ), + CASE - 60 WHEN - ( + 37 ) * + 28 THEN 88 WHEN + CASE + 14 WHEN + + CAST ( 0 AS INTEGER ) THEN NULL WHEN - 2 THEN NULL ELSE + + CAST ( NULL AS INTEGER ) END + + + COUNT ( * ) THEN - CASE WHEN NOT ( MAX ( 27 ) ) IS NULL THEN + 9 / COUNT ( * ) WHEN 22 IS NULL THEN 84 * 98 END END ) ) ) + COUNT ( * ) * - 61
----
-109

query I rowsort
SELECT DISTINCT 1 - + 70
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5727
SELECT - 40 / - 72 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5727
SELECT - 40 / - 72 + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5728
SELECT + COUNT( * ) * + + 43 * 58 * ( + - COUNT( * ) )
----
-2494

skipif mysql # not compatible
query I rowsort label-5728
SELECT + COUNT ( * ) * + + 43 * 58 * ( + - COUNT ( * ) )
----
-2494

onlyif mysql # aggregate syntax: 
query I rowsort label-5729
SELECT + 12 + 56 + + MAX( ALL - 18 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-5729
SELECT + 12 + 56 + + MAX ( ALL - 18 ) AS col2
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-5730
SELECT DISTINCT + 59 DIV + + 57 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5730
SELECT DISTINCT + 59 / + + 57 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5731
SELECT - - COUNT( * ) * - COUNT( * ) + + + 50 + - - 96
----
145

skipif mysql # not compatible
query I rowsort label-5731
SELECT - - COUNT ( * ) * - COUNT ( * ) + + + 50 + - - 96
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-5732
SELECT ALL 45 * + 12 + - MIN( DISTINCT 60 ) AS col1
----
480

skipif mysql # not compatible
query I rowsort label-5732
SELECT ALL 45 * + 12 + - MIN ( DISTINCT 60 ) AS col1
----
480

query I rowsort
SELECT + 15 * 90 AS col0
----
1350

onlyif mysql # DIV for integer division: 
query I rowsort label-5734
SELECT DISTINCT + - 93 * 96 DIV - 90 AS col0
----
99

skipif mysql # not compatible
query I rowsort label-5734
SELECT DISTINCT + - 93 * 96 / - 90 AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5735
SELECT + 42 + 24 * - MIN( ALL + 83 )
----
-1950

skipif mysql # not compatible
query I rowsort label-5735
SELECT + 42 + 24 * - MIN ( ALL + 83 )
----
-1950

query I rowsort
SELECT + + 71 * - ( + 93 ) AS col2
----
-6603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5737
SELECT ALL + MAX( CAST( 36 AS SIGNED ) ) col0
----
36

skipif mysql # not compatible
query I rowsort label-5737
SELECT ALL + MAX ( CAST ( 36 AS INTEGER ) ) col0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5738
SELECT DISTINCT 30 * CAST( - - 4 AS SIGNED )
----
120

skipif mysql # not compatible
query I rowsort label-5738
SELECT DISTINCT 30 * CAST ( - - 4 AS INTEGER )
----
120

query I rowsort
SELECT ALL + + NULLIF ( + + 86, - + 50 ) AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5740
SELECT + 43 * COUNT( * ) + COUNT( * ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-5740
SELECT + 43 * COUNT ( * ) + COUNT ( * ) AS col2
----
44

query I rowsort
SELECT - 45 + 35 * - - 85
----
2930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5742
SELECT COALESCE ( + 91, + 86 DIV 49 * - - COALESCE ( 97, + 97 * - ( - - 68 ) ) * + 6 + - CAST( NULL AS SIGNED ), - + 12 DIV + COUNT( * ) DIV + 0 ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-5742
SELECT COALESCE ( + 91, + 86 / 49 * - - COALESCE ( 97, + 97 * - ( - - 68 ) ) * + 6 + - CAST ( NULL AS INTEGER ), - + 12 / + COUNT ( * ) / + 0 ) AS col0
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5743
SELECT SUM( DISTINCT ( + - CAST( NULL AS SIGNED ) ) ) + - 10 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5743
SELECT SUM ( DISTINCT ( + - CAST ( NULL AS INTEGER ) ) ) + - 10 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5744
SELECT ALL - + 76 + + 78 DIV MAX( DISTINCT + 69 ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-5744
SELECT ALL - + 76 + + 78 / MAX ( DISTINCT + 69 ) AS col2
----
-75

query I rowsort
SELECT DISTINCT + 67 * - 91 AS col0
----
-6097

onlyif mysql # aggregate syntax: 
query I rowsort label-5746
SELECT DISTINCT - COUNT( * ) + - 35 + 73
----
37

skipif mysql # not compatible
query I rowsort label-5746
SELECT DISTINCT - COUNT ( * ) + - 35 + 73
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5747
SELECT ( - 94 ) + - COUNT( * ) + + - 20 * - 88 * + 58 + - + 8 * - COALESCE ( - 30, 68, 49 * - + 28 * - 61 + + 97 + + + 48 ) - + + ( - 42 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5747
SELECT ( - 94 ) + - COUNT ( * ) + + - 20 * - 88 * + 58 + - + 8 * - COALESCE ( - 30, 68, 49 * - + 28 * - 61 + + 97 + + + 48 ) - + + ( - 42 ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 94 + + + 9
----
-85

query I rowsort
SELECT 29 + - 27
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5750
SELECT 3 * + SUM( - 30 ) * 82 AS col1
----
-7380

skipif mysql # not compatible
query I rowsort label-5750
SELECT 3 * + SUM ( - 30 ) * 82 AS col1
----
-7380

onlyif mysql # aggregate syntax: 
query I rowsort label-5751
SELECT COUNT( * ) + - 12 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-5751
SELECT COUNT ( * ) + - 12 AS col1
----
-11

query I rowsort
SELECT 19 + - 57
----
-38

query I rowsort
SELECT 38 + 23 * 92 AS col1
----
2154

query I rowsort
SELECT NULLIF ( 6, 26 ) + 33 col1
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-5755
SELECT 18 DIV - ( + 74 )
----
0

skipif mysql # not compatible
query I rowsort label-5755
SELECT 18 / - ( + 74 )
----
0

query I rowsort
SELECT 54 * 8
----
432

query II rowsort
SELECT ALL 52 AS col2, 91
----
52
91

query I rowsort
SELECT ALL 30 * - 47 + + 59 AS col0
----
-1351

query I rowsort
SELECT + 69 * + - 3 * - + 89 col2
----
18423

query I rowsort
SELECT - 13 * - 15 + + 92
----
287

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5761
SELECT ALL - + 52 col1, - CAST( NULL AS SIGNED ) * - COUNT( * ) * - 30
----
-52
NULL

skipif mysql # not compatible
query II rowsort label-5761
SELECT ALL - + 52 col1, - CAST ( NULL AS INTEGER ) * - COUNT ( * ) * - 30
----
-52
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5762
SELECT + COUNT( * ) + ( - NULLIF ( + + 91, + 63 ) ) * - 24 col2
----
2185

skipif mysql # not compatible
query I rowsort label-5762
SELECT + COUNT ( * ) + ( - NULLIF ( + + 91, + 63 ) ) * - 24 col2
----
2185

onlyif mysql # aggregate syntax: 
query I rowsort label-5763
SELECT DISTINCT + - ( + COUNT( * ) ) * - 10
----
10

skipif mysql # not compatible
query I rowsort label-5763
SELECT DISTINCT + - ( + COUNT ( * ) ) * - 10
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5764
SELECT 0 * + COUNT( * ) DIV 21 + 79
----
79

skipif mysql # not compatible
query I rowsort label-5764
SELECT 0 * + COUNT ( * ) / 21 + 79
----
79

query I rowsort
SELECT ALL - - ( 93 )
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-5766
SELECT COUNT( * ) AS col0, 50
----
1
50

skipif mysql # not compatible
query II rowsort label-5766
SELECT COUNT ( * ) AS col0, 50
----
1
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5767
SELECT DISTINCT - 86 + - COUNT( * ) * + CAST( 97 AS SIGNED ) * 80 AS col1
----
-7846

skipif mysql # not compatible
query I rowsort label-5767
SELECT DISTINCT - 86 + - COUNT ( * ) * + CAST ( 97 AS INTEGER ) * 80 AS col1
----
-7846

query I rowsort
SELECT 33 * - 70 col1
----
-2310

onlyif mysql # aggregate syntax: 
query I rowsort label-5769
SELECT - ( 19 ) + - COUNT( * ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-5769
SELECT - ( 19 ) + - COUNT ( * ) AS col2
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5770
SELECT + - 92 AS col1, + ( + MAX( DISTINCT - - ( + - CAST( NULL AS SIGNED ) ) ) ) AS col0
----
-92
NULL

skipif mysql # not compatible
query II rowsort label-5770
SELECT + - 92 AS col1, + ( + MAX ( DISTINCT - - ( + - CAST ( NULL AS INTEGER ) ) ) ) AS col0
----
-92
NULL

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

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

query I rowsort
SELECT DISTINCT 3 + + 66 AS col1
----
69

query II rowsort
SELECT + 52 * - - 46 * COALESCE ( - - 98, + + 48, - 51 ), 88 AS col2
----
234416
88

query II rowsort
SELECT ALL - + 26, - 87 AS col2
----
-26
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5775
SELECT DISTINCT - + 73 + + MIN( ALL + + CAST( NULL AS SIGNED ) ) * ( - - 73 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5775
SELECT DISTINCT - + 73 + + MIN ( ALL + + CAST ( NULL AS INTEGER ) ) * ( - - 73 ) col1
----
NULL

query I rowsort
SELECT DISTINCT 44 * 23 * 29
----
29348

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5777
SELECT CASE MAX( - 63 ) WHEN + CAST( COUNT( * ) AS DECIMAL ) + - 70 + + COUNT( * ) THEN + 2 END * + 36 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5777
SELECT CASE MAX ( - 63 ) WHEN + CAST ( COUNT ( * ) AS REAL ) + - 70 + + COUNT ( * ) THEN + 2 END * + 36 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5778
SELECT 32 * - + 0, 81 * CAST( NULL AS SIGNED ) / + ( + + 90 ) AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-5778
SELECT 32 * - + 0, 81 * CAST ( NULL AS INTEGER ) / + ( + + 90 ) AS col1
----
0
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5779
SELECT 38 DIV NULLIF ( - 31, - 10 * + 38 - CAST( NULL AS SIGNED ) + + 62 + - - CASE - - 12 WHEN - 19 + 66 THEN NULL WHEN - 49 THEN + CASE - 27 WHEN 63 THEN - + 79 END DIV + 42 * - 18 * - + 38 + - + MIN( - 92 ) + + - MAX( ALL - NULLIF ( + 91, 98 ) ) + MIN( 98 ) ELSE NULL END ) * ( - 11 + 43 * - 22 ) AS col0
----
957

skipif mysql # not compatible
query I rowsort label-5779
SELECT 38 / NULLIF ( - 31, - 10 * + 38 - CAST ( NULL AS INTEGER ) + + 62 + - - CASE - - 12 WHEN - 19 + 66 THEN NULL WHEN - 49 THEN + CASE - 27 WHEN 63 THEN - + 79 END / + 42 * - 18 * - + 38 + - + MIN ( - 92 ) + + - MAX ( ALL - NULLIF ( + 91, 98 ) ) + MIN ( 98 ) ELSE NULL END ) * ( - 11 + 43 * - 22 ) AS col0
----
957

onlyif mysql # aggregate syntax: 
query I rowsort label-5780
SELECT 9 * COUNT( * ) * + 14
----
126

skipif mysql # not compatible
query I rowsort label-5780
SELECT 9 * COUNT ( * ) * + 14
----
126

query I rowsort
SELECT - AVG ( DISTINCT - - CASE WHEN + 48 IN ( + NULLIF ( + + 94, 55 ) - 16 - - 36, 90, ( - 96 ) / - + 98 * + 52 + + 63 ) THEN + + ( + 20 ) END )
----
NULL

query I rowsort
SELECT DISTINCT 43 - 83 AS col0
----
-40

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

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

query I rowsort
SELECT ALL + 91 * 84 AS col1
----
7644

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5785
SELECT 44 * + 26 AS col2, COUNT( ALL 41 ) + - 76 + CASE + ( + COUNT( * ) ) WHEN - MIN( + 87 ) THEN - 46 * - - 74 ELSE 91 + + 4 + 95 + + 44 * - ( - COUNT( * ) ) + ( 11 ) END DIV - - 43
----
1144
-70

skipif mysql # not compatible
query II rowsort label-5785
SELECT 44 * + 26 AS col2, COUNT ( ALL 41 ) + - 76 + CASE + ( + COUNT ( * ) ) WHEN - MIN ( + 87 ) THEN - 46 * - - 74 ELSE 91 + + 4 + 95 + + 44 * - ( - COUNT ( * ) ) + ( 11 ) END / - - 43
----
1144
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5786
SELECT ALL + 91 * + 6 * - SUM( - 54 )
----
29484

skipif mysql # not compatible
query I rowsort label-5786
SELECT ALL + 91 * + 6 * - SUM ( - 54 )
----
29484

query I rowsort
SELECT 34 * + 7 AS col2
----
238

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5788
SELECT + 11 - MAX( ALL - 30 ) - - COALESCE ( + CAST( 48 AS SIGNED ), + 33 ) * 2 * + 28 AS col0
----
2729

skipif mysql # not compatible
query I rowsort label-5788
SELECT + 11 - MAX ( ALL - 30 ) - - COALESCE ( + CAST ( 48 AS INTEGER ), + 33 ) * 2 * + 28 AS col0
----
2729

onlyif mysql # aggregate syntax: 
query I rowsort label-5789
SELECT ALL - COUNT( + + 66 )
----
-1

skipif mysql # not compatible
query I rowsort label-5789
SELECT ALL - COUNT ( + + 66 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5790
SELECT ALL 64 * + 45 * COUNT( * ) - - COUNT( * ) AS col1
----
2881

skipif mysql # not compatible
query I rowsort label-5790
SELECT ALL 64 * + 45 * COUNT ( * ) - - COUNT ( * ) AS col1
----
2881

onlyif mysql # DIV for integer division: 
query I rowsort label-5791
SELECT - 33 DIV + 20 col1
----
-1

skipif mysql # not compatible
query I rowsort label-5791
SELECT - 33 / + 20 col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5792
SELECT ALL - SUM( ALL - 54 ) * + COUNT( * ) + 64 + 79 AS col1
----
197

skipif mysql # not compatible
query I rowsort label-5792
SELECT ALL - SUM ( ALL - 54 ) * + COUNT ( * ) + 64 + 79 AS col1
----
197

onlyif mysql # aggregate syntax: 
query I rowsort label-5793
SELECT - 91 + + + COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-5793
SELECT - 91 + + + COUNT ( * )
----
-90

query I rowsort
SELECT ALL - 99 * + 40 + + 37 + - 91 + - - 25
----
-3989

onlyif mysql # aggregate syntax: 
query II rowsort label-5795
SELECT + - SUM( - 47 ) * + 60 + SUM( ALL 99 ) AS col1, 1 + + 87 AS col0
----
2919
88

skipif mysql # not compatible
query II rowsort label-5795
SELECT + - SUM ( - 47 ) * + 60 + SUM ( ALL 99 ) AS col1, 1 + + 87 AS col0
----
2919
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5796
SELECT + MAX( - 36 ) - + 7
----
-43

skipif mysql # not compatible
query I rowsort label-5796
SELECT + MAX ( - 36 ) - + 7
----
-43

query II rowsort
SELECT + - ( + NULLIF ( - 83, + + 36 - 4 ) ) AS col0, 94
----
83
94

query I rowsort
SELECT DISTINCT - + 73 * - + 71 * + 8 + - 79 AS col0
----
41385

query I rowsort
SELECT + + 69 + + - 5
----
64

query I rowsort
SELECT ALL + + 4 * 40
----
160

query I rowsort
SELECT + 49 * + 23 AS col0
----
1127

onlyif mysql # aggregate syntax: 
query I rowsort label-5802
SELECT ALL - ( + 64 ) * COUNT( * ) + + - COUNT( * ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-5802
SELECT ALL - ( + 64 ) * COUNT ( * ) + + - COUNT ( * ) AS col1
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5803
SELECT + 83 * - - 7 + - 87 AS col0, 56 * - CAST( 41 AS SIGNED ) AS col2
----
494
-2296

skipif mysql # not compatible
query II rowsort label-5803
SELECT + 83 * - - 7 + - 87 AS col0, 56 * - CAST ( 41 AS INTEGER ) AS col2
----
494
-2296

onlyif mysql # DIV for integer division: 
query I rowsort label-5804
SELECT 94 * - 96 DIV 24 + - 51 AS col1
----
-427

skipif mysql # not compatible
query I rowsort label-5804
SELECT 94 * - 96 / 24 + - 51 AS col1
----
-427

onlyif mysql # aggregate syntax: 
query I rowsort label-5805
SELECT + CASE SUM( - 76 ) WHEN 32 THEN - 61 * - 53 * - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5805
SELECT + CASE SUM ( - 76 ) WHEN 32 THEN - 61 * - 53 * - COUNT ( * ) END
----
NULL

query I rowsort
SELECT + 3 + + 69 AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5807
SELECT + CASE + 26 WHEN + 9 * + - COUNT( * ) THEN - 96 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5807
SELECT + CASE + 26 WHEN + 9 * + - COUNT ( * ) THEN - 96 END
----
NULL

query I rowsort
SELECT + 97 + + - 27
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5809
SELECT + CASE - - 59 WHEN - 35 * + CASE - + NULLIF ( + - 0, + 5 + + 75 * - 27 ) WHEN - 56 THEN NULL WHEN + CAST( NULL AS SIGNED ) / 70 + - + 68 / + 35 THEN + + 68 / + - ( + 3 ) ELSE - 76 * - 5 - + 54 + 67 END THEN NULL WHEN + + 24 THEN - 20 - + COALESCE ( - ( ( 47 ) ) + 66, - AVG ( DISTINCT + 31 ) + - 70 ) WHEN 38 + ( + 27 ) THEN + CAST( - CASE CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) WHEN 16 THEN - COUNT( * ) WHEN + 35 * + 91 THEN NULL END AS SIGNED ) ELSE 1 END AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5809
SELECT + CASE - - 59 WHEN - 35 * + CASE - + NULLIF ( + - 0, + 5 + + 75 * - 27 ) WHEN - 56 THEN NULL WHEN + CAST ( NULL AS INTEGER ) / 70 + - + 68 / + 35 THEN + + 68 / + - ( + 3 ) ELSE - 76 * - 5 - + 54 + 67 END THEN NULL WHEN + + 24 THEN - 20 - + COALESCE ( - ( ( 47 ) ) + 66, - AVG ( DISTINCT + 31 ) + - 70 ) WHEN 38 + ( + 27 ) THEN + CAST ( - CASE CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) WHEN 16 THEN - COUNT ( * ) WHEN + 35 * + 91 THEN NULL END AS INTEGER ) ELSE 1 END AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5810
SELECT ALL + SUM( - 17 ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-5810
SELECT ALL + SUM ( - 17 ) AS col2
----
-17

query I rowsort
SELECT - ( - 46 ) * 31 + 68 AS col0
----
1494

query I rowsort
SELECT ALL 37 * - 92
----
-3404

query II rowsort
SELECT DISTINCT 79 AS col1, NULLIF ( + 75, - - 13 ) * 49 + + 82 AS col1
----
79
3757

onlyif mysql # aggregate syntax: 
query I rowsort label-5814
SELECT ALL - 59 - - + COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-5814
SELECT ALL - 59 - - + COUNT ( * )
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-5815
SELECT + 67 * 99 DIV + 2
----
3316

skipif mysql # not compatible
query I rowsort label-5815
SELECT + 67 * 99 / + 2
----
3316

onlyif mysql # aggregate syntax: 
query II rowsort label-5816
SELECT + COUNT( * ) + + MIN( + 2 ) AS col1, 42
----
3
42

skipif mysql # not compatible
query II rowsort label-5816
SELECT + COUNT ( * ) + + MIN ( + 2 ) AS col1, 42
----
3
42

query II rowsort
SELECT 97 AS col1, ( - + NULLIF ( - + ( + 94 ), + ( + + 15 ) ) )
----
97
94

query I rowsort
SELECT - NULLIF ( - 31, - 50 )
----
31

query I rowsort
SELECT - 19 + 8 * - - 40 + - + 15
----
286

query I rowsort
SELECT + 31 * - 36 * 40
----
-44640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5821
SELECT + COALESCE ( - COUNT( * ), 93 - + CASE NULLIF ( 95, - 34 ) WHEN - 71 * + 89 * 71 THEN + 83 DIV 28 WHEN CAST( NULL AS SIGNED ) + + 99 THEN NULL WHEN 11 DIV - COUNT( + 88 ) + - 35 + 62 DIV COUNT( DISTINCT 35 ) THEN - 60 * + 70 END + + 15 ) * + 59
----
-59

skipif mysql # not compatible
query I rowsort label-5821
SELECT + COALESCE ( - COUNT ( * ), 93 - + CASE NULLIF ( 95, - 34 ) WHEN - 71 * + 89 * 71 THEN + 83 / 28 WHEN CAST ( NULL AS INTEGER ) + + 99 THEN NULL WHEN 11 / - COUNT ( + 88 ) + - 35 + 62 / COUNT ( DISTINCT 35 ) THEN - 60 * + 70 END + + 15 ) * + 59
----
-59

query I rowsort
SELECT + 66 * + 77
----
5082

onlyif mysql # DIV for integer division: 
query I rowsort label-5823
SELECT ALL + 33 DIV - 70
----
0

skipif mysql # not compatible
query I rowsort label-5823
SELECT ALL + 33 / - 70
----
0

query I rowsort
SELECT ALL - 64 * + 32
----
-2048

onlyif mysql # aggregate syntax: 
query II rowsort label-5825
SELECT DISTINCT - ( - 86 ) + - MIN( ALL 29 ) AS col1, 64 AS col2
----
57
64

skipif mysql # not compatible
query II rowsort label-5825
SELECT DISTINCT - ( - 86 ) + - MIN ( ALL 29 ) AS col1, 64 AS col2
----
57
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5826
SELECT ALL MIN( 72 ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-5826
SELECT ALL MIN ( 72 ) AS col0
----
72

query I rowsort
SELECT ALL - + 57 + + + 9 + + 10 AS col0
----
-38

query II rowsort
SELECT DISTINCT - 65 col1, 26 AS col0
----
-65
26

query I rowsort
SELECT + - 97 + - + 83
----
-180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5830
SELECT - + COUNT( * ) + 54 * - - MAX( + - ( + 99 ) ) / - - 36 / - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5830
SELECT - + COUNT ( * ) + 54 * - - MAX ( + - ( + 99 ) ) / - - 36 / - + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT - - 59 + + 49 * - 96 AS col0, - 95 AS col2
----
-4645
-95

query I rowsort
SELECT - 20 + + + 15 col0
----
-5

query I rowsort
SELECT - 25 * + 99
----
-2475

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5834
SELECT ALL - + CASE 94 WHEN - 10 THEN 41 - 13 * 9 + - 31 WHEN + COUNT( * ) + - 32 - - COUNT( * ) * + 78 + + SUM( DISTINCT + 20 ) / - - ( SUM( + CAST( + - 23 AS SIGNED ) ) ) THEN 43 WHEN - 44 * - - ( 59 ) * - MAX( ALL - 46 ) - + 22 * ( + 35 * 93 ) THEN NULL END / + 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5834
SELECT ALL - + CASE 94 WHEN - 10 THEN 41 - 13 * 9 + - 31 WHEN + COUNT ( * ) + - 32 - - COUNT ( * ) * + 78 + + SUM ( DISTINCT + 20 ) / - - ( SUM ( + CAST ( + - 23 AS INTEGER ) ) ) THEN 43 WHEN - 44 * - - ( 59 ) * - MAX ( ALL - 46 ) - + 22 * ( + 35 * 93 ) THEN NULL END / + 88 AS col2
----
NULL

query I rowsort
SELECT - 48 * + NULLIF ( - 55, CASE ( - - 37 ) WHEN + 49 / - 47 + - 98 THEN - 81 END + + + ( + + 13 ) ) + 15
----
2655

query I rowsort
SELECT + COALESCE ( - - 99, - ( - - 38 ) + - 88 * + 27 * + + 93 + - 67 )
----
99

query I rowsort
SELECT - + 32 * - 50
----
1600

onlyif mysql # aggregate syntax: 
query I rowsort label-5838
SELECT + - NULLIF ( 99, + 57 + - 47 ) + - COUNT( * ) AS col1
----
-100

skipif mysql # not compatible
query I rowsort label-5838
SELECT + - NULLIF ( 99, + 57 + - 47 ) + - COUNT ( * ) AS col1
----
-100

onlyif mysql # aggregate syntax: 
query II rowsort label-5839
SELECT ALL + COUNT( * ), + 18 * + COUNT( * ) col1
----
1
18

skipif mysql # not compatible
query II rowsort label-5839
SELECT ALL + COUNT ( * ), + 18 * + COUNT ( * ) col1
----
1
18

query I rowsort
SELECT - 80 * + 96
----
-7680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5841
SELECT DISTINCT + 39 * MAX( DISTINCT - ( + 14 ) ) - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5841
SELECT DISTINCT + 39 * MAX ( DISTINCT - ( + 14 ) ) - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ( - 23 ) col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5843
SELECT ALL - COUNT( * ) * - 54 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-5843
SELECT ALL - COUNT ( * ) * - 54 AS col0
----
54

query I rowsort
SELECT - 20 * - 42 AS col1
----
840

onlyif mysql # aggregate syntax: 
query II rowsort label-5845
SELECT + NULLIF ( - + 23, ( + - 47 ) ) AS col0, ( + + MIN( 32 ) )
----
-23
32

skipif mysql # not compatible
query II rowsort label-5845
SELECT + NULLIF ( - + 23, ( + - 47 ) ) AS col0, ( + + MIN ( 32 ) )
----
-23
32

onlyif mysql # aggregate syntax: 
query II rowsort label-5846
SELECT NULLIF ( - COUNT( * ), 1 + COUNT( * ) ) AS col0, COUNT( + + 82 ) + - ( + NULLIF ( - - 95, 74 ) ) + 18 AS col0
----
-1
-76

skipif mysql # not compatible
query II rowsort label-5846
SELECT NULLIF ( - COUNT ( * ), 1 + COUNT ( * ) ) AS col0, COUNT ( + + 82 ) + - ( + NULLIF ( - - 95, 74 ) ) + 18 AS col0
----
-1
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5847
SELECT + 43 * AVG ( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5847
SELECT + 43 * AVG ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5848
SELECT - 90 * - CAST( COUNT( * ) AS SIGNED )
----
90

skipif mysql # not compatible
query I rowsort label-5848
SELECT - 90 * - CAST ( COUNT ( * ) AS INTEGER )
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-5849
SELECT - NULLIF ( + ( - COALESCE ( - 67, - COUNT( * ) ) ), - + 79 * - COUNT( * ) ) AS col0, COUNT( * ) * - 74
----
-67
-74

skipif mysql # not compatible
query II rowsort label-5849
SELECT - NULLIF ( + ( - COALESCE ( - 67, - COUNT ( * ) ) ), - + 79 * - COUNT ( * ) ) AS col0, COUNT ( * ) * - 74
----
-67
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-5850
SELECT COUNT( + 8 ), - COUNT( * ) AS col0
----
1
-1

skipif mysql # not compatible
query II rowsort label-5850
SELECT COUNT ( + 8 ), - COUNT ( * ) AS col0
----
1
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5851
SELECT MIN( DISTINCT + 44 ) AS col2, + 50 - - NULLIF ( 67, - MAX( DISTINCT + 39 ) * - 17 ) + + COUNT( * ) * - - 11 AS col1
----
44
128

skipif mysql # not compatible
query II rowsort label-5851
SELECT MIN ( DISTINCT + 44 ) AS col2, + 50 - - NULLIF ( 67, - MAX ( DISTINCT + 39 ) * - 17 ) + + COUNT ( * ) * - - 11 AS col1
----
44
128

onlyif mysql # aggregate syntax: 
query I rowsort label-5852
SELECT ALL 71 * + MAX( ALL + 62 )
----
4402

skipif mysql # not compatible
query I rowsort label-5852
SELECT ALL 71 * + MAX ( ALL + 62 )
----
4402

query I rowsort
SELECT ALL 30 + + + 31 AS col0
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5854
SELECT ALL 42 + CASE - 20 WHEN - CAST( NULL AS SIGNED ) THEN COUNT( * ) * + 68 ELSE NULL END + + 76 * + 42 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5854
SELECT ALL 42 + CASE - 20 WHEN - CAST ( NULL AS INTEGER ) THEN COUNT ( * ) * + 68 ELSE NULL END + + 76 * + 42 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5855
SELECT - CASE 93 WHEN - - 20 THEN NULL WHEN + - 48 / 62 - + ( 25 ) - - - 92 / - - 88 THEN + 75 + - + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5855
SELECT - CASE 93 WHEN - - 20 THEN NULL WHEN + - 48 / 62 - + ( 25 ) - - - 92 / - - 88 THEN + 75 + - + COUNT ( * ) END AS col1
----
NULL

query II rowsort
SELECT DISTINCT + 30 * + 73 * - - 91 + + 51, - ( 91 ) col0
----
199341
-91

query I rowsort
SELECT ALL - 8 + 56
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-5858
SELECT DISTINCT + - 67 DIV 78 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5858
SELECT DISTINCT + - 67 / 78 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5859
SELECT DISTINCT - MIN( + - 42 ) * 43
----
1806

skipif mysql # not compatible
query I rowsort label-5859
SELECT DISTINCT - MIN ( + - 42 ) * 43
----
1806

query I rowsort
SELECT - 22 + - - 91
----
69

query I rowsort
SELECT ALL + 64 * - 38 AS col0
----
-2432

onlyif mysql # aggregate syntax: 
query I rowsort label-5862
SELECT DISTINCT + 53 * - COUNT( * ) * - 51 AS col1
----
2703

skipif mysql # not compatible
query I rowsort label-5862
SELECT DISTINCT + 53 * - COUNT ( * ) * - 51 AS col1
----
2703

query I rowsort
SELECT 95 * + - 29 - - 82 AS col0
----
-2673

query I rowsort
SELECT 22 * - 59 AS col1
----
-1298

onlyif mysql # aggregate syntax: 
query I rowsort label-5865
SELECT 32 + + COUNT( * ) + - 67
----
-34

skipif mysql # not compatible
query I rowsort label-5865
SELECT 32 + + COUNT ( * ) + - 67
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5866
SELECT 48 * + COUNT( * ) col2
----
48

skipif mysql # not compatible
query I rowsort label-5866
SELECT 48 * + COUNT ( * ) col2
----
48

query I rowsort
SELECT - 2 * - 88 + - 4 + - 75
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-5868
SELECT 54 - + + NULLIF ( 85, NULLIF ( COUNT( * ), - COUNT( * ) + - NULLIF ( 4, + + 58 * + AVG ( DISTINCT 43 ) + + + 56 ) ) ) * - - COUNT( * ) + 60 + - 22, 63 * + ( + 64 ) AS col0
----
7
4032

skipif mysql # not compatible
query II rowsort label-5868
SELECT 54 - + + NULLIF ( 85, NULLIF ( COUNT ( * ), - COUNT ( * ) + - NULLIF ( 4, + + 58 * + AVG ( DISTINCT 43 ) + + + 56 ) ) ) * - - COUNT ( * ) + 60 + - 22, 63 * + ( + 64 ) AS col0
----
7
4032

query I rowsort
SELECT 68 * 27 + - 78 col2
----
1758

query I rowsort
SELECT 37 + - 5 AS col1
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5871
SELECT CASE WHEN - COUNT( * ) = - 43 + + + 94 OR NOT 54 NOT BETWEEN - - CASE + COALESCE ( + 78, MIN( + - 56 ) ) WHEN + 43 / + COALESCE ( + COUNT( * ), - ( + - 43 ) / - 40 * 32 - 76 ) * - 69 + - 57 - - COUNT( * ) THEN COALESCE ( - 43, - AVG ( 0 ) + - 1 * + 28 ) WHEN + 48 THEN NULL ELSE + 7 * + 34 END AND 53 THEN NULL WHEN 22 < 22 THEN - 61 * + CAST( NULL AS SIGNED ) ELSE NULL END * + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-5871
SELECT CASE WHEN - COUNT ( * ) = - 43 + + + 94 OR NOT 54 NOT BETWEEN - - CASE + COALESCE ( + 78, MIN ( + - 56 ) ) WHEN + 43 / + COALESCE ( + COUNT ( * ), - ( + - 43 ) / - 40 * 32 - 76 ) * - 69 + - 57 - - COUNT ( * ) THEN COALESCE ( - 43, - AVG ( 0 ) + - 1 * + 28 ) WHEN + 48 THEN NULL ELSE + 7 * + 34 END AND 53 THEN NULL WHEN 22 < 22 THEN - 61 * + CAST ( NULL AS INTEGER ) ELSE NULL END * + 96
----
NULL

query I rowsort
SELECT ALL + 32 * + ( 41 ) * - 67 * 26
----
-2285504

query II rowsort
SELECT 22 AS col2, - 96 * + + 46
----
22
-4416

onlyif mysql # DIV for integer division: 
query I rowsort label-5874
SELECT DISTINCT + 60 DIV - 25 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-5874
SELECT DISTINCT + 60 / - 25 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5875
SELECT 53 + - + COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-5875
SELECT 53 + - + COUNT ( * )
----
52

query I rowsort
SELECT DISTINCT - 87 + - 51
----
-138

query I rowsort
SELECT ALL 30 + + 52 AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5878
SELECT 72 + - 56 - - COUNT( * ) * + 43 col1
----
59

skipif mysql # not compatible
query I rowsort label-5878
SELECT 72 + - 56 - - COUNT ( * ) * + 43 col1
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-5879
SELECT 16 AS col1, - COUNT( * ) col0
----
16
-1

skipif mysql # not compatible
query II rowsort label-5879
SELECT 16 AS col1, - COUNT ( * ) col0
----
16
-1

query I rowsort
SELECT 82 + + 30 + - ( - - 21 ) AS col2
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5881
SELECT - 13 + - - COALESCE ( + 81, 86 ) + 53 DIV + 64 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-5881
SELECT - 13 + - - COALESCE ( + 81, 86 ) + 53 / + 64 AS col0
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-5882
SELECT - NULLIF ( + 23, - 17 ) col0, COUNT( * ) AS col1
----
-23
1

skipif mysql # not compatible
query II rowsort label-5882
SELECT - NULLIF ( + 23, - 17 ) col0, COUNT ( * ) AS col1
----
-23
1

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

skipif mysql # not compatible
query I rowsort label-5883
SELECT ALL 96 + - CAST ( NULL AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT ALL - 20 * - + 47
----
940

query I rowsort
SELECT DISTINCT 41 - 30 AS col2
----
11

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5888
SELECT 23 * + 53 + + + 84 DIV COUNT( + - 43 ) * + COALESCE ( - + 55, - 11 ) AS col0
----
-3401

skipif mysql # not compatible
query I rowsort label-5888
SELECT 23 * + 53 + + + 84 / COUNT ( + - 43 ) * + COALESCE ( - + 55, - 11 ) AS col0
----
-3401

onlyif mysql # aggregate syntax: 
query II rowsort label-5889
SELECT - 77, COUNT( * ) AS col1
----
-77
1

skipif mysql # not compatible
query II rowsort label-5889
SELECT - 77, COUNT ( * ) AS col1
----
-77
1

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

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

query I rowsort
SELECT ALL 26 - + 65 - - + 33
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5892
SELECT ALL + COUNT( * ) DIV + ( + CAST( + + 26 AS SIGNED ) ) + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5892
SELECT ALL + COUNT ( * ) / + ( + CAST ( + + 26 AS INTEGER ) ) + - COUNT ( * )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5893
SELECT + 18 + + CAST( - + 59 AS SIGNED ) - 35 * - + 76 - + 81 + 45 + - 66 AS col2
----
2517

skipif mysql # not compatible
query I rowsort label-5893
SELECT + 18 + + CAST ( - + 59 AS INTEGER ) - 35 * - + 76 - + 81 + 45 + - 66 AS col2
----
2517

onlyif mysql # DIV for integer division: 
query I rowsort label-5894
SELECT DISTINCT 80 DIV - + 25 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-5894
SELECT DISTINCT 80 / - + 25 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5895
SELECT - 98 * MAX( ALL + ( + + 29 ) ) + + - ( + + 78 )
----
-2920

skipif mysql # not compatible
query I rowsort label-5895
SELECT - 98 * MAX ( ALL + ( + + 29 ) ) + + - ( + + 78 )
----
-2920

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5896
SELECT - CASE 69 WHEN 0 THEN NULL ELSE + - 50 END * + + 23 + - 0 * + COUNT( ALL - 68 ) DIV + 33 - + 78 + + + 63 * - + 47 + - 47 + - 85 + 6 + 17 + 3 DIV 25
----
-1998

skipif mysql # not compatible
query I rowsort label-5896
SELECT - CASE 69 WHEN 0 THEN NULL ELSE + - 50 END * + + 23 + - 0 * + COUNT ( ALL - 68 ) / + 33 - + 78 + + + 63 * - + 47 + - 47 + - 85 + 6 + 17 + 3 / 25
----
-1998

query I rowsort
SELECT 57 * - 52 AS col0
----
-2964

query I rowsort
SELECT NULLIF ( 4, + 57 ) * + + 31
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-5899
SELECT 63 + COUNT( * ) - + 46
----
18

skipif mysql # not compatible
query I rowsort label-5899
SELECT 63 + COUNT ( * ) - + 46
----
18

query I rowsort
SELECT 73 + 96 * + - 59 AS col2
----
-5591

query I rowsort
SELECT ALL 66 * - 97 + 87
----
-6315

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5902
SELECT ALL - COALESCE ( - 50, 16, - COUNT( * ) * - + 34 + - - COUNT( * ) + - ( COUNT( * ) ) + - CASE 55 WHEN + CAST( + 0 AS SIGNED ) + + COUNT( * ) - + - 96 THEN + 14 * + - 17 + + ( 27 ) * 12 + + 30 ELSE - CASE 65 WHEN - 92 * + MIN( 77 ) THEN NULL WHEN - 96 THEN NULL ELSE + 2 END END * + 38 ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-5902
SELECT ALL - COALESCE ( - 50, 16, - COUNT ( * ) * - + 34 + - - COUNT ( * ) + - ( COUNT ( * ) ) + - CASE 55 WHEN + CAST ( + 0 AS INTEGER ) + + COUNT ( * ) - + - 96 THEN + 14 * + - 17 + + ( 27 ) * 12 + + 30 ELSE - CASE 65 WHEN - 92 * + MIN ( 77 ) THEN NULL WHEN - 96 THEN NULL ELSE + 2 END END * + 38 ) AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5903
SELECT ALL ( - 48 ) + SUM( DISTINCT + 58 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-5903
SELECT ALL ( - 48 ) + SUM ( DISTINCT + 58 ) AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5904
SELECT DISTINCT - ( + - COALESCE ( + NULLIF ( 61, - SUM( ALL + 83 ) * 64 + + AVG ( 49 ) / + 97 ), - MAX( - 8 ) * 46 + + 19 ) )
----
61

skipif mysql # not compatible
query I rowsort label-5904
SELECT DISTINCT - ( + - COALESCE ( + NULLIF ( 61, - SUM ( ALL + 83 ) * 64 + + AVG ( 49 ) / + 97 ), - MAX ( - 8 ) * 46 + + 19 ) )
----
61

query I rowsort
SELECT ALL - 74 + + - 32 AS col2
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-5906
SELECT MIN( + 52 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-5906
SELECT MIN ( + 52 ) AS col2
----
52

query I rowsort
SELECT + 24 - + + 16
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5908
SELECT - - MIN( DISTINCT - 17 )
----
-17

skipif mysql # not compatible
query I rowsort label-5908
SELECT - - MIN ( DISTINCT - 17 )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5909
SELECT - + 46 * + COUNT( * ) - 70
----
-116

skipif mysql # not compatible
query I rowsort label-5909
SELECT - + 46 * + COUNT ( * ) - 70
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-5910
SELECT ALL + + COUNT( * ) + MAX( - 73 )
----
-72

skipif mysql # not compatible
query I rowsort label-5910
SELECT ALL + + COUNT ( * ) + MAX ( - 73 )
----
-72

query II rowsort
SELECT - - 22 AS col2, 41 AS col2
----
22
41

onlyif mysql # aggregate syntax: 
query II rowsort label-5912
SELECT + 27, - CASE - COUNT( * ) WHEN - 93 THEN + - 14 ELSE NULL END + + COUNT( * ) / + SUM( DISTINCT + 30 ) + 9 + - - 12 * + - COUNT( * ) + - 58 - - 26 / - - 4 AS col1
----
27
NULL

skipif mysql # not compatible
query II rowsort label-5912
SELECT + 27, - CASE - COUNT ( * ) WHEN - 93 THEN + - 14 ELSE NULL END + + COUNT ( * ) / + SUM ( DISTINCT + 30 ) + 9 + - - 12 * + - COUNT ( * ) + - 58 - - 26 / - - 4 AS col1
----
27
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5913
SELECT ALL - 71 DIV + - 7 * ( COUNT( * ) ), - 52 + - 47 AS col1
----
10
-99

skipif mysql # not compatible
query II rowsort label-5913
SELECT ALL - 71 / + - 7 * ( COUNT ( * ) ), - 52 + - 47 AS col1
----
10
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5914
SELECT + COUNT( * ) * + - 47 - - 17 AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-5914
SELECT + COUNT ( * ) * + - 47 - - 17 AS col2
----
-30

query I rowsort
SELECT DISTINCT - 38 * + ( + NULLIF ( - 30, + 83 ) )
----
1140

query I rowsort
SELECT ALL + 80 - - 10
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5917
SELECT NULLIF ( MAX( + + 95 ), 94 + 95 )
----
95

skipif mysql # not compatible
query I rowsort label-5917
SELECT NULLIF ( MAX ( + + 95 ), 94 + 95 )
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-5918
SELECT - 61 AS col2, 87 * 15 * + - 28 + 50 * COUNT( * )
----
-61
-36490

skipif mysql # not compatible
query II rowsort label-5918
SELECT - 61 AS col2, 87 * 15 * + - 28 + 50 * COUNT ( * )
----
-61
-36490

onlyif mysql # aggregate syntax: 
query I rowsort label-5919
SELECT DISTINCT + - SUM( DISTINCT + 37 ) * - - 60 AS col1
----
-2220

skipif mysql # not compatible
query I rowsort label-5919
SELECT DISTINCT + - SUM ( DISTINCT + 37 ) * - - 60 AS col1
----
-2220

query I rowsort
SELECT + 13 * 24 + 37
----
349

onlyif mysql # aggregate syntax: 
query I rowsort label-5921
SELECT - MIN( ALL + 94 ) + - - 68 AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-5921
SELECT - MIN ( ALL + 94 ) + - - 68 AS col0
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5922
SELECT + CAST( NULL AS SIGNED ) - + CASE 71 WHEN + COUNT( + 47 ) THEN NULL WHEN - - 99 THEN NULL WHEN - COUNT( * ) * + 8 * CASE + - 77 WHEN - CASE - 28 WHEN COUNT( * ) * + NULLIF ( - 39, + 34 ) + 84 - - + 43 + - CAST( NULL AS SIGNED ) THEN NULL WHEN 34 * 21 * - - CAST( ( - 89 ) AS SIGNED ) - + - 18 THEN 50 END THEN - ( - NULLIF ( + CASE CASE + NULLIF ( 89, - 27 ) WHEN 6 THEN + COUNT( + 75 ) / 88 END WHEN + 22 + 2 THEN CAST( - COUNT( * ) AS SIGNED ) WHEN 41 THEN + 62 END, NULLIF ( NULLIF ( COUNT( * ), - 77 ), 15 ) ) ) / 85 + 44 / 91 END + + 40 * + COUNT( * ) THEN NULL WHEN + 80 + + 30 THEN NULL ELSE - CASE 77 WHEN 27 THEN 16 * - 28 WHEN + 58 THEN - 49 END / 37 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5922
SELECT + CAST ( NULL AS INTEGER ) - + CASE 71 WHEN + COUNT ( + 47 ) THEN NULL WHEN - - 99 THEN NULL WHEN - COUNT ( * ) * + 8 * CASE + - 77 WHEN - CASE - 28 WHEN COUNT ( * ) * + NULLIF ( - 39, + 34 ) + 84 - - + 43 + - CAST ( NULL AS INTEGER ) THEN NULL WHEN 34 * 21 * - - CAST ( ( - 89 ) AS INTEGER ) - + - 18 THEN 50 END THEN - ( - NULLIF ( + CASE CASE + NULLIF ( 89, - 27 ) WHEN 6 THEN + COUNT ( + 75 ) / 88 END WHEN + 22 + 2 THEN CAST ( - COUNT ( * ) AS INTEGER ) WHEN 41 THEN + 62 END, NULLIF ( NULLIF ( COUNT ( * ), - 77 ), 15 ) ) ) / 85 + 44 / 91 END + + 40 * + COUNT ( * ) THEN NULL WHEN + 80 + + 30 THEN NULL ELSE - CASE 77 WHEN 27 THEN 16 * - 28 WHEN + 58 THEN - 49 END / 37 END
----
NULL

query II rowsort
SELECT 70, - 63 AS col0
----
70
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5924
SELECT - NULLIF ( + + 11, + - CAST( NULL AS SIGNED ) )
----
-11

skipif mysql # not compatible
query I rowsort label-5924
SELECT - NULLIF ( + + 11, + - CAST ( NULL AS INTEGER ) )
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5925
SELECT ALL + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5925
SELECT ALL + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT - + 59 * - 43 col2
----
2537

onlyif mysql # aggregate syntax: 
query I rowsort label-5927
SELECT - - ( + ( 20 ) ) + - COUNT( * ) - - + 52 * + 51 * + - 59 + 57 AS col0
----
-156392

skipif mysql # not compatible
query I rowsort label-5927
SELECT - - ( + ( 20 ) ) + - COUNT ( * ) - - + 52 * + 51 * + - 59 + 57 AS col0
----
-156392

query II rowsort
SELECT ALL - 50, - 30 + + 65 col0
----
-50
35

query II rowsort
SELECT + + 9 + 15 AS col2, - 3 AS col2
----
24
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5930
SELECT ALL - + 78 DIV + COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-5930
SELECT ALL - + 78 / + COUNT ( * )
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5931
SELECT + - 34 + + CAST( + ( + - 84 ) AS SIGNED ) AS col2
----
-118

skipif mysql # not compatible
query I rowsort label-5931
SELECT + - 34 + + CAST ( + ( + - 84 ) AS INTEGER ) AS col2
----
-118

query I rowsort
SELECT ( - ( 32 ) ) AS col2
----
-32

query I rowsort
SELECT - 14 * 53 AS col0
----
-742

query I rowsort
SELECT + NULLIF ( + 81, + 23 + + + 10 )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5935
SELECT ALL + COUNT( * ) * + - 6 + - COALESCE ( - 22, 15 )
----
16

skipif mysql # not compatible
query I rowsort label-5935
SELECT ALL + COUNT ( * ) * + - 6 + - COALESCE ( - 22, 15 )
----
16

query I rowsort
SELECT ALL + 20 * - 55 * + + 24 * 21 + + - 24
----
-554424

onlyif mysql # DIV for integer division: 
query I rowsort label-5937
SELECT ALL 25 DIV 47 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5937
SELECT ALL 25 / 47 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5938
SELECT + CASE - 83 WHEN 46 + + + 38 + - + COUNT( * ) + + COUNT( * ) * + ( - 45 ) / ( + - 79 ) THEN - 7 - + 51 + 93 * - 62 WHEN + ( + CASE - COUNT( * ) WHEN 92 + - COUNT( * ) THEN - - 20 WHEN + - ( - - ( - 60 ) ) + 62 + - 17 THEN + + 65 ELSE NULL END ) - + 8 + ( 40 ) THEN NULL WHEN 44 * + COUNT( * ) + 5 THEN NULL ELSE 70 + + 90 END
----
160

skipif mysql # not compatible
query I rowsort label-5938
SELECT + CASE - 83 WHEN 46 + + + 38 + - + COUNT ( * ) + + COUNT ( * ) * + ( - 45 ) / ( + - 79 ) THEN - 7 - + 51 + 93 * - 62 WHEN + ( + CASE - COUNT ( * ) WHEN 92 + - COUNT ( * ) THEN - - 20 WHEN + - ( - - ( - 60 ) ) + 62 + - 17 THEN + + 65 ELSE NULL END ) - + 8 + ( 40 ) THEN NULL WHEN 44 * + COUNT ( * ) + 5 THEN NULL ELSE 70 + + 90 END
----
160

query I rowsort
SELECT ALL 43 * - 59 * + ( - + 99 ) + - 5 AS col1
----
251158

query I rowsort
SELECT + 55 * 77 + - + 12
----
4223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5941
SELECT + CAST( NULL AS SIGNED ) - - 87 + + - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-5941
SELECT + CAST ( NULL AS INTEGER ) - - 87 + + - 4
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5942
SELECT + COUNT( * ) + - 64 AS col1, - 6
----
-63
-6

skipif mysql # not compatible
query II rowsort label-5942
SELECT + COUNT ( * ) + - 64 AS col1, - 6
----
-63
-6

query I rowsort
SELECT + 77 + 29 * 8 AS col2
----
309

onlyif mysql # aggregate syntax: 
query I rowsort label-5944
SELECT ALL 83 * - COUNT( * ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-5944
SELECT ALL 83 * - COUNT ( * ) AS col0
----
-83

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5946
SELECT DISTINCT - 96 * - 3 - + MIN( - 40 ) * - 27
----
-792

skipif mysql # not compatible
query I rowsort label-5946
SELECT DISTINCT - 96 * - 3 - + MIN ( - 40 ) * - 27
----
-792

onlyif mysql # aggregate syntax: 
query I rowsort label-5947
SELECT ALL 6 * + COUNT( * ) - + 19
----
-13

skipif mysql # not compatible
query I rowsort label-5947
SELECT ALL 6 * + COUNT ( * ) - + 19
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5948
SELECT DISTINCT CASE - 84 WHEN + + 6 * + 62 + + 59 THEN NULL WHEN - CAST( NULL AS SIGNED ) + - COUNT( * ) * COUNT( * ) * - 47 THEN 52 * - - 96 - - 15 - + 65 + - COUNT( * ) ELSE 46 + + 22 END
----
68

skipif mysql # not compatible
query I rowsort label-5948
SELECT DISTINCT CASE - 84 WHEN + + 6 * + 62 + + 59 THEN NULL WHEN - CAST ( NULL AS INTEGER ) + - COUNT ( * ) * COUNT ( * ) * - 47 THEN 52 * - - 96 - - 15 - + 65 + - COUNT ( * ) ELSE 46 + + 22 END
----
68

query I rowsort
SELECT - 75 + 94 + + 60
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5950
SELECT MIN( DISTINCT + + 47 )
----
47

skipif mysql # not compatible
query I rowsort label-5950
SELECT MIN ( DISTINCT + + 47 )
----
47

onlyif mysql # DIV for integer division: 
query II rowsort label-5951
SELECT - - 49 DIV - 71 * 25 AS col1, ( 41 ) + - + 21
----
0
20

skipif mysql # not compatible
query II rowsort label-5951
SELECT - - 49 / - 71 * 25 AS col1, ( 41 ) + - + 21
----
0
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5952
SELECT + NULLIF ( COUNT( * ), 48 + 97 * 28 + - 4 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5952
SELECT + NULLIF ( COUNT ( * ), 48 + 97 * 28 + - 4 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5953
SELECT - + COUNT( * ) * + 27 + - COALESCE ( - 36, - 59 * 16 ) + + 34
----
43

skipif mysql # not compatible
query I rowsort label-5953
SELECT - + COUNT ( * ) * + 27 + - COALESCE ( - 36, - 59 * 16 ) + + 34
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-5954
SELECT ALL - 99 DIV 8 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-5954
SELECT ALL - 99 / 8 AS col0
----
-12

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

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

query I rowsort
SELECT DISTINCT - 77 * 81 AS col1
----
-6237

query I rowsort
SELECT ALL - 33 * 27
----
-891

query I rowsort
SELECT - - 47 * + 63 AS col2
----
2961

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5959
SELECT ALL - CAST( NULL AS SIGNED ) + 61 / - + COUNT( ALL 7 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5959
SELECT ALL - CAST ( NULL AS INTEGER ) + 61 / - + COUNT ( ALL 7 ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5960
SELECT - - 36 + + - 28 col1, COUNT( * ) * - - 27 DIV + - 97
----
8
0

skipif mysql # not compatible
query II rowsort label-5960
SELECT - - 36 + + - 28 col1, COUNT ( * ) * - - 27 / + - 97
----
8
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5961
SELECT 46 AS col1, COUNT( * ) + + + 21 AS col2
----
46
22

skipif mysql # not compatible
query II rowsort label-5961
SELECT 46 AS col1, COUNT ( * ) + + + 21 AS col2
----
46
22

query I rowsort
SELECT + 97 * - - 2 * 10
----
1940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5963
SELECT ALL + COALESCE ( - + 7, - 98, + + 22 ) + + MAX( - - 1 ) - + 64 * 55 * + 33 - - CAST( + 28 AS SIGNED ) col2, + 87
----
-116138
87

skipif mysql # not compatible
query II rowsort label-5963
SELECT ALL + COALESCE ( - + 7, - 98, + + 22 ) + + MAX ( - - 1 ) - + 64 * 55 * + 33 - - CAST ( + 28 AS INTEGER ) col2, + 87
----
-116138
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5964
SELECT ALL ( - ( + - COUNT( * ) ) ) DIV 17 + - COUNT( + 15 ) + - 43 AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-5964
SELECT ALL ( - ( + - COUNT ( * ) ) ) / 17 + - COUNT ( + 15 ) + - 43 AS col0
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-5965
SELECT DISTINCT 70 DIV - 9 + + 23 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-5965
SELECT DISTINCT 70 / - 9 + + 23 AS col2
----
16

query I rowsort
SELECT DISTINCT - 28 * - - 10
----
-280

query I rowsort
SELECT 47 * + 60
----
2820

onlyif mysql # aggregate syntax: 
query II rowsort label-5968
SELECT ALL - 10 * + - 16 * - + 27, COUNT( * ) AS col1
----
-4320
1

skipif mysql # not compatible
query II rowsort label-5968
SELECT ALL - 10 * + - 16 * - + 27, COUNT ( * ) AS col1
----
-4320
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5969
SELECT 53 DIV + COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-5969
SELECT 53 / + COUNT ( * )
----
53

query I rowsort
SELECT ALL - 11 * + 68
----
-748

query II rowsort
SELECT DISTINCT - 49, + 70 * CASE + ( - ( + + 99 ) ) WHEN 82 THEN + 50 + - - 40 ELSE NULL END + - 81 AS col0
----
-49
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5972
SELECT 88 * + MAX( - 16 )
----
-1408

skipif mysql # not compatible
query I rowsort label-5972
SELECT 88 * + MAX ( - 16 )
----
-1408

query II rowsort
SELECT - 22 AS col2, + 40
----
-22
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5974
SELECT ALL - COUNT( * ) * - - 80 + + 55
----
-25

skipif mysql # not compatible
query I rowsort label-5974
SELECT ALL - COUNT ( * ) * - - 80 + + 55
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5975
SELECT DISTINCT + 22 DIV COUNT( * ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-5975
SELECT DISTINCT + 22 / COUNT ( * ) AS col2
----
22

query I rowsort
SELECT + ( - ( - - 35 ) ) * 5 - 54 AS col0
----
-229

onlyif mysql # aggregate syntax: 
query I rowsort label-5977
SELECT COUNT( * ) - - + 54 + + 87 * + 36 + COUNT( * ) * - - 11 * - - COUNT( ALL + 46 ) + + - 63 * COUNT( DISTINCT + 80 ) + + COUNT( + + 12 )
----
3136

skipif mysql # not compatible
query I rowsort label-5977
SELECT COUNT ( * ) - - + 54 + + 87 * + 36 + COUNT ( * ) * - - 11 * - - COUNT ( ALL + 46 ) + + - 63 * COUNT ( DISTINCT + 80 ) + + COUNT ( + + 12 )
----
3136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5978
SELECT CASE - 8 WHEN + 85 + ( - - COALESCE ( - + 95, CAST( - - 65 AS SIGNED ) + ( COUNT( * ) ), + + COALESCE ( + + 81, + + 22 ) ) ) + 69 THEN NULL WHEN - 15 THEN COUNT( * ) DIV 64 + - - 94 - - - CAST( + - 48 AS SIGNED ) + + - COUNT( * ) ELSE + 28 END * + + ( + + 2 ) + - 67 col1
----
-11

skipif mysql # not compatible
query I rowsort label-5978
SELECT CASE - 8 WHEN + 85 + ( - - COALESCE ( - + 95, CAST ( - - 65 AS INTEGER ) + ( COUNT ( * ) ), + + COALESCE ( + + 81, + + 22 ) ) ) + 69 THEN NULL WHEN - 15 THEN COUNT ( * ) / 64 + - - 94 - - - CAST ( + - 48 AS INTEGER ) + + - COUNT ( * ) ELSE + 28 END * + + ( + + 2 ) + - 67 col1
----
-11

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

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

query I rowsort
SELECT ALL 65 * + + 17 AS col2
----
1105

query I rowsort
SELECT 8 * + NULLIF ( + 43, - CASE + - 21 WHEN + - 5 THEN NULL ELSE 62 * + 45 END + - + 48 ) + + 81 AS col2
----
425

onlyif mysql # aggregate syntax: 
query I rowsort label-5982
SELECT - + NULLIF ( COUNT( * ), + 90 + - - 58 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5982
SELECT - + NULLIF ( COUNT ( * ), + 90 + - - 58 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5983
SELECT DISTINCT + 70 * + SUM( DISTINCT 39 ), 66 AS col0
----
2730
66

skipif mysql # not compatible
query II rowsort label-5983
SELECT DISTINCT + 70 * + SUM ( DISTINCT 39 ), 66 AS col0
----
2730
66

query I rowsort
SELECT 0 - - - 39 + - 70 - 88
----
-197

onlyif mysql # aggregate syntax: 
query II rowsort label-5985
SELECT ALL 32 * - 88 + - 96 + + - ( + + 95 ) * + 76 * - COUNT( * ) * - 43 col2, 24 * + - COUNT( * ) AS col0
----
-313372
-24

skipif mysql # not compatible
query II rowsort label-5985
SELECT ALL 32 * - 88 + - 96 + + - ( + + 95 ) * + 76 * - COUNT ( * ) * - 43 col2, 24 * + - COUNT ( * ) AS col0
----
-313372
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5986
SELECT ALL NULLIF ( - COUNT( * ), 55 * - COUNT( 6 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5986
SELECT ALL NULLIF ( - COUNT ( * ), 55 * - COUNT ( 6 ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5987
SELECT DISTINCT - 45 + - COALESCE ( + ( + 16 ), COUNT( * ) + - 91 - 61 + + + 24 + - 84 ) DIV + 1 + - - COUNT( * ) * - 27 AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-5987
SELECT DISTINCT - 45 + - COALESCE ( + ( + 16 ), COUNT ( * ) + - 91 - 61 + + + 24 + - 84 ) / + 1 + - - COUNT ( * ) * - 27 AS col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5988
SELECT MAX( ALL - 16 ) + - NULLIF ( - - 34, + COUNT( * ) )
----
-50

skipif mysql # not compatible
query I rowsort label-5988
SELECT MAX ( ALL - 16 ) + - NULLIF ( - - 34, + COUNT ( * ) )
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5989
SELECT + MAX( - 67 ) + + + COUNT( * ) DIV - COUNT( * ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-5989
SELECT + MAX ( - 67 ) + + + COUNT ( * ) / - COUNT ( * ) AS col2
----
-68

query I rowsort
SELECT + 25 - + 89
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-5991
SELECT ALL + 14 DIV 77
----
0

skipif mysql # not compatible
query I rowsort label-5991
SELECT ALL + 14 / 77
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5992
SELECT ALL CASE + + 6 WHEN COUNT( * ) THEN - 69 WHEN - - CAST( - 22 AS SIGNED ) THEN NULL END + - 60, CAST( NULL AS SIGNED ) / + 75 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5992
SELECT ALL CASE + + 6 WHEN COUNT ( * ) THEN - 69 WHEN - - CAST ( - 22 AS INTEGER ) THEN NULL END + - 60, CAST ( NULL AS INTEGER ) / + 75 AS col0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5993
SELECT ALL 56 + 92 AS col0, - CASE COUNT( * ) WHEN 30 * - 46 + - - 21 THEN + 82 WHEN + - 83 * + 92 THEN NULL WHEN + 56 THEN - 1 END col2
----
148
NULL

skipif mysql # not compatible
query II rowsort label-5993
SELECT ALL 56 + 92 AS col0, - CASE COUNT ( * ) WHEN 30 * - 46 + - - 21 THEN + 82 WHEN + - 83 * + 92 THEN NULL WHEN + 56 THEN - 1 END col2
----
148
NULL

query I rowsort
SELECT ALL - 41 + + 1
----
-40

query I rowsort
SELECT ALL + 87 + - - 32
----
119

query I rowsort
SELECT 57 + 9 - + 54
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-5997
SELECT ALL ( + - 62 ) * - 30 * - + COUNT( * ) AS col1, 45 * - 8 AS col0
----
-1860
-360

skipif mysql # not compatible
query II rowsort label-5997
SELECT ALL ( + - 62 ) * - 30 * - + COUNT ( * ) AS col1, 45 * - 8 AS col0
----
-1860
-360

query I rowsort
SELECT 66 + 56
----
122

query I rowsort
SELECT DISTINCT + 96 * - 48
----
-4608

onlyif mysql # aggregate syntax: 
query II rowsort label-6000
SELECT ALL - 42 * + + 64 AS col0, - 35 - + - 83 * ( 29 ) * 35 - COUNT( * ) AS col2
----
-2688
84209

skipif mysql # not compatible
query II rowsort label-6000
SELECT ALL - 42 * + + 64 AS col0, - 35 - + - 83 * ( 29 ) * 35 - COUNT ( * ) AS col2
----
-2688
84209

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6001
SELECT CAST( NULL AS SIGNED ) * - + ( + AVG ( 8 ) ) AS col0, 91 * - 88
----
NULL
-8008

skipif mysql # not compatible
query II rowsort label-6001
SELECT CAST ( NULL AS INTEGER ) * - + ( + AVG ( 8 ) ) AS col0, 91 * - 88
----
NULL
-8008

onlyif mysql # aggregate syntax: 
query I rowsort label-6002
SELECT 56 * + COUNT( DISTINCT + 5 ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-6002
SELECT 56 * + COUNT ( DISTINCT + 5 ) AS col1
----
56

query I rowsort
SELECT ALL - COALESCE ( - 83, - 8 * ( 35 ) + 79 ) AS col1
----
83

query I rowsort
SELECT DISTINCT - 25 - + - 25 + + 56 * - 13
----
-728

query I rowsort
SELECT DISTINCT - NULLIF ( 16, - 22 )
----
-16

query I rowsort
SELECT DISTINCT - 7 - ( + 71 ) + NULLIF ( - 49, 37 / + 50 + - 38 * + 98 ) - - - 25 + - 30
----
-182

query I rowsort
SELECT ALL - ( 28 ) AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6008
SELECT ALL COUNT( * ) * + + 44 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-6008
SELECT ALL COUNT ( * ) * + + 44 AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6009
SELECT 7 * CASE + 15 WHEN - - ( + ( COUNT( * ) ) ) * + 21 * + - 38 * + 83 + - - 28 + + + 79 / ( - - 47 ) * + - COALESCE ( 39, 19 ) THEN - 13 * + 13 * - COUNT( DISTINCT 1 ) + 28 ELSE - 83 * + - CASE - COUNT( * ) WHEN + COUNT( * ) * + 47 / ( + 9 ) * - - AVG ( DISTINCT + 24 ) - + 96 + - ( + ( 51 ) ) THEN + 26 * 36 WHEN + 12 THEN + COUNT( * ) + - 72 * + 34 END END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6009
SELECT 7 * CASE + 15 WHEN - - ( + ( COUNT ( * ) ) ) * + 21 * + - 38 * + 83 + - - 28 + + + 79 / ( - - 47 ) * + - COALESCE ( 39, 19 ) THEN - 13 * + 13 * - COUNT ( DISTINCT 1 ) + 28 ELSE - 83 * + - CASE - COUNT ( * ) WHEN + COUNT ( * ) * + 47 / ( + 9 ) * - - AVG ( DISTINCT + 24 ) - + 96 + - ( + ( 51 ) ) THEN + 26 * 36 WHEN + 12 THEN + COUNT ( * ) + - 72 * + 34 END END col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6010
SELECT ALL + 93 * - CAST( - + 3 AS SIGNED ) AS col1
----
279

skipif mysql # not compatible
query I rowsort label-6010
SELECT ALL + 93 * - CAST ( - + 3 AS INTEGER ) AS col1
----
279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6011
SELECT + + 80 * + CAST( NULL AS SIGNED ) / - - 44 + - + COALESCE ( + 31, - - 14 ) * + + CASE + - 90 WHEN + + 67 THEN + 34 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6011
SELECT + + 80 * + CAST ( NULL AS INTEGER ) / - - 44 + - + COALESCE ( + 31, - - 14 ) * + + CASE + - 90 WHEN + + 67 THEN + 34 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6012
SELECT 12 * CASE + 17 WHEN + CASE - 23 WHEN ( + CAST( NULL AS DECIMAL ) ) + - 71 THEN + NULLIF ( + 31, - + 13 ) + - 48 + - 89 * COUNT( * ) / - 97 + + NULLIF ( - - COUNT( * ), + 25 + - 87 ) ELSE COUNT( * ) END * - - 54 + - + 32 / + 90 + - 54 / - COUNT( - 77 ) THEN + 59 ELSE + 63 * + CAST( + 88 AS SIGNED ) END + + 27
----
66555

skipif mysql # not compatible
query I rowsort label-6012
SELECT 12 * CASE + 17 WHEN + CASE - 23 WHEN ( + CAST ( NULL AS REAL ) ) + - 71 THEN + NULLIF ( + 31, - + 13 ) + - 48 + - 89 * COUNT ( * ) / - 97 + + NULLIF ( - - COUNT ( * ), + 25 + - 87 ) ELSE COUNT ( * ) END * - - 54 + - + 32 / + 90 + - 54 / - COUNT ( - 77 ) THEN + 59 ELSE + 63 * + CAST ( + 88 AS INTEGER ) END + + 27
----
66555

query II rowsort
SELECT 46 + + 50, + 27 col2
----
96
27

query I rowsort
SELECT ALL - 41 * NULLIF ( + - 61, - + 43 + + 87 * ( 68 ) ) AS col0
----
2501

onlyif mysql # DIV for integer division: 
query II rowsort label-6015
SELECT + 4 DIV NULLIF ( + 83, - 19 ) AS col0, ( 53 )
----
0
53

skipif mysql # not compatible
query II rowsort label-6015
SELECT + 4 / NULLIF ( + 83, - 19 ) AS col0, ( 53 )
----
0
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6016
SELECT ALL + 16 + - + COUNT( * ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-6016
SELECT ALL + 16 + - + COUNT ( * ) AS col0
----
15

query I rowsort
SELECT - 13 * - 90
----
1170

onlyif mysql # aggregate syntax: 
query I rowsort label-6018
SELECT COUNT( * ) + + - 11 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-6018
SELECT COUNT ( * ) + + - 11 AS col0
----
-10

query I rowsort
SELECT 84 + + - 38 + - 76 AS col2
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6020
SELECT DISTINCT 84 * - 9 * + 21 / 60 + 19 - - 28 + + COUNT( + CAST( NULL AS SIGNED ) ) + - COALESCE ( - ( 49 ), 15 * - ( 66 ) * - COUNT( * ) * 46 * 70 + 60 / ( - + 88 ) * - 20 ) + - COUNT( * ) * - + 32 * + - 8 * CAST( CAST( NULL AS SIGNED ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6020
SELECT DISTINCT 84 * - 9 * + 21 / 60 + 19 - - 28 + + COUNT ( + CAST ( NULL AS INTEGER ) ) + - COALESCE ( - ( 49 ), 15 * - ( 66 ) * - COUNT ( * ) * 46 * 70 + 60 / ( - + 88 ) * - 20 ) + - COUNT ( * ) * - + 32 * + - 8 * CAST ( CAST ( NULL AS INTEGER ) AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6021
SELECT DISTINCT COUNT( * ) + + 87 - 37 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-6021
SELECT DISTINCT COUNT ( * ) + + 87 - 37 AS col1
----
51

query I rowsort
SELECT ALL 38 + 98
----
136

query I rowsort
SELECT DISTINCT ( - + 20 ) * 55 + - - 49
----
-1051

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6024
SELECT DISTINCT 67 + - 12 + - 61 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6024
SELECT DISTINCT 67 + - 12 + - 61 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6025
SELECT ALL MAX( + 94 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-6025
SELECT ALL MAX ( + 94 ) AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6026
SELECT - CASE NULLIF ( + 22, - - 2 / + MIN( ALL - 77 ) * - + ( - 76 ) + + + 41 + + 65 ) WHEN - 49 THEN + ( - 9 ) ELSE 69 END AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-6026
SELECT - CASE NULLIF ( + 22, - - 2 / + MIN ( ALL - 77 ) * - + ( - 76 ) + + + 41 + + 65 ) WHEN - 49 THEN + ( - 9 ) ELSE 69 END AS col2
----
-69

query II rowsort
SELECT 95, 38 AS col1
----
95
38

query I rowsort
SELECT ALL 2 - - 59 * - + 86
----
-5072

query I rowsort
SELECT + 25 + + + 71 AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6030
SELECT - ( COALESCE ( + 84, - - COUNT( * ) * NULLIF ( + - 36, - 12 ) ) ) * - NULLIF ( CASE 75 WHEN + + 6 - - + 77 * - 37 THEN NULL WHEN - 8 * + + 83 + - + MAX( + 38 ) * ( - - 77 ) * + 36 + + - 26 / 68 THEN 18 * + 87 * - 85 WHEN + + 64 THEN + + ( 70 ) ELSE + 33 END, - 84 * + 25 + 90 )
----
2772

skipif mysql # not compatible
query I rowsort label-6030
SELECT - ( COALESCE ( + 84, - - COUNT ( * ) * NULLIF ( + - 36, - 12 ) ) ) * - NULLIF ( CASE 75 WHEN + + 6 - - + 77 * - 37 THEN NULL WHEN - 8 * + + 83 + - + MAX ( + 38 ) * ( - - 77 ) * + 36 + + - 26 / 68 THEN 18 * + 87 * - 85 WHEN + + 64 THEN + + ( 70 ) ELSE + 33 END, - 84 * + 25 + 90 )
----
2772

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6031
SELECT - CASE COUNT( * ) WHEN 54 THEN NULL WHEN 73 / - 69 / 53 THEN - 80 + + CAST( + 78 AS SIGNED ) ELSE - + 80 END
----
80

skipif mysql # not compatible
query I rowsort label-6031
SELECT - CASE COUNT ( * ) WHEN 54 THEN NULL WHEN 73 / - 69 / 53 THEN - 80 + + CAST ( + 78 AS INTEGER ) ELSE - + 80 END
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6032
SELECT - CAST( NULL AS SIGNED ) + + 42 * + 12 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6032
SELECT - CAST ( NULL AS INTEGER ) + + 42 * + 12 AS col1
----
NULL

query I rowsort
SELECT - COALESCE ( + 76, + 84 )
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6034
SELECT + CAST( - + COUNT( + + 33 ) AS SIGNED ) * COUNT( DISTINCT - - 3 ) + + + 65
----
64

skipif mysql # not compatible
query I rowsort label-6034
SELECT + CAST ( - + COUNT ( + + 33 ) AS INTEGER ) * COUNT ( DISTINCT - - 3 ) + + + 65
----
64

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6036
SELECT + ( - COALESCE ( + 10, - 65 + + AVG ( + - 92 ) ) ) DIV 78 DIV COALESCE ( + 58, + 88 ) * + - COUNT( * ) DIV + 68 + + + COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-6036
SELECT + ( - COALESCE ( + 10, - 65 + + AVG ( + - 92 ) ) ) / 78 / COALESCE ( + 58, + 88 ) * + - COUNT ( * ) / + 68 + + + COUNT ( * ) col2
----
1

query I rowsort
SELECT - 24 * - 97 AS col0
----
2328

query I rowsort
SELECT ALL + 48 * + 95 AS col0
----
4560

onlyif mysql # aggregate syntax: 
query II rowsort label-6039
SELECT CASE - MAX( DISTINCT 15 ) WHEN MIN( DISTINCT 12 ) * + - 18 * + 49 THEN NULL WHEN + + 39 * - - 7 / + 90 THEN - + 23 WHEN - 14 THEN - 45 * 50 + + - 1 - + + COUNT( * ) END, - 42 AS col0
----
NULL
-42

skipif mysql # not compatible
query II rowsort label-6039
SELECT CASE - MAX ( DISTINCT 15 ) WHEN MIN ( DISTINCT 12 ) * + - 18 * + 49 THEN NULL WHEN + + 39 * - - 7 / + 90 THEN - + 23 WHEN - 14 THEN - 45 * 50 + + - 1 - + + COUNT ( * ) END, - 42 AS col0
----
NULL
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6040
SELECT + MIN( ALL - + 82 ) * 24
----
-1968

skipif mysql # not compatible
query I rowsort label-6040
SELECT + MIN ( ALL - + 82 ) * 24
----
-1968

query I rowsort
SELECT - 0 * 50 * 40
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6043
SELECT ALL - - 17 * ( + COUNT( - ( 16 ) ) ) - + + 38 + - + 9 + 66 * + - COUNT( * )
----
-96

skipif mysql # not compatible
query I rowsort label-6043
SELECT ALL - - 17 * ( + COUNT ( - ( 16 ) ) ) - + + 38 + - + 9 + 66 * + - COUNT ( * )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6044
SELECT MIN( ( - + ( + - 50 ) ) )
----
50

skipif mysql # not compatible
query I rowsort label-6044
SELECT MIN ( ( - + ( + - 50 ) ) )
----
50

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6046
SELECT DISTINCT + ( + 14 ) * + 6 * - + 6 + - - 95, - MIN( - 25 ) + - 95 AS col1
----
-409
-70

skipif mysql # not compatible
query II rowsort label-6046
SELECT DISTINCT + ( + 14 ) * + 6 * - + 6 + - - 95, - MIN ( - 25 ) + - 95 AS col1
----
-409
-70

query II rowsort
SELECT ALL - 61 * - ( - + 16 ) + - 93 + - - 43 col1, - 32 AS col2
----
-1026
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6048
SELECT ALL - 53 * - 77 + - 36 + - COUNT( * )
----
4044

skipif mysql # not compatible
query I rowsort label-6048
SELECT ALL - 53 * - 77 + - 36 + - COUNT ( * )
----
4044

query I rowsort
SELECT - 97 - + 82 - - 87 AS col0
----
-92

query I rowsort
SELECT + 80 * - - 18 col1
----
1440

onlyif mysql # aggregate syntax: 
query I rowsort label-6051
SELECT ALL + - COUNT( ALL + ( ( 58 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6051
SELECT ALL + - COUNT ( ALL + ( ( 58 ) ) )
----
-1

query I rowsort
SELECT - 24 + + + 29 * 75
----
2151

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6053
SELECT - - MAX( + 63 ) * - COUNT( * ) - - + MIN( ALL 2 ) DIV 89 AS col1, 57 AS col2
----
-63
57

skipif mysql # not compatible
query II rowsort label-6053
SELECT - - MAX ( + 63 ) * - COUNT ( * ) - - + MIN ( ALL 2 ) / 89 AS col1, 57 AS col2
----
-63
57

query I rowsort
SELECT ALL - - 27 * ( + - 15 ) * - - 47
----
-19035

onlyif mysql # aggregate syntax: 
query I rowsort label-6055
SELECT ALL MIN( - 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-6055
SELECT ALL MIN ( - 48 )
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-6056
SELECT - + 24 - MAX( DISTINCT + 51 ) * 95 * + + 79, + 27 + 48 AS col2
----
-382779
75

skipif mysql # not compatible
query II rowsort label-6056
SELECT - + 24 - MAX ( DISTINCT + 51 ) * 95 * + + 79, + 27 + 48 AS col2
----
-382779
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6057
SELECT DISTINCT ( COALESCE ( - 34, - - COUNT( ALL + 1 ) ) )
----
-34

skipif mysql # not compatible
query I rowsort label-6057
SELECT DISTINCT ( COALESCE ( - 34, - - COUNT ( ALL + 1 ) ) )
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6058
SELECT DISTINCT ( - COUNT( * ) ), - NULLIF ( + + 92, 55 * + CAST( NULL AS SIGNED ) ) + 9 * 96 AS col0
----
-1
772

skipif mysql # not compatible
query II rowsort label-6058
SELECT DISTINCT ( - COUNT ( * ) ), - NULLIF ( + + 92, 55 * + CAST ( NULL AS INTEGER ) ) + 9 * 96 AS col0
----
-1
772

query I rowsort
SELECT ALL - 87 - 68
----
-155

query I rowsort
SELECT - 32 * - 48 col2
----
1536

query I rowsort
SELECT ALL 2 - - 16 + + 97 AS col2
----
115

onlyif mysql # DIV for integer division: 
query I rowsort label-6062
SELECT DISTINCT 61 DIV + ( 10 )
----
6

skipif mysql # not compatible
query I rowsort label-6062
SELECT DISTINCT 61 / + ( 10 )
----
6

query I rowsort
SELECT - 84 + + 1 + 79 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6064
SELECT DISTINCT 55 * - - MAX( 47 ) AS col0
----
2585

skipif mysql # not compatible
query I rowsort label-6064
SELECT DISTINCT 55 * - - MAX ( 47 ) AS col0
----
2585

query I rowsort
SELECT + 66 - - 27 col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6066
SELECT ALL SUM( + + 55 ) * - - 10 * + 93 AS col1
----
51150

skipif mysql # not compatible
query I rowsort label-6066
SELECT ALL SUM ( + + 55 ) * - - 10 * + 93 AS col1
----
51150

query I rowsort
SELECT DISTINCT + 6 * 31
----
186

query I rowsort
SELECT DISTINCT 19 * + + 20
----
380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6069
SELECT + CAST( NULL AS SIGNED ) + - NULLIF ( - 23, + 1 ) + + 95 - 94 + COUNT( * ) * 75 + + - 16 / - - 7 * + ( COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6069
SELECT + CAST ( NULL AS INTEGER ) + - NULLIF ( - 23, + 1 ) + + 95 - 94 + COUNT ( * ) * 75 + + - 16 / - - 7 * + ( COUNT ( * ) )
----
NULL

query I rowsort
SELECT - COALESCE ( 29, + - COALESCE ( 69, + - 1 ) + - - 52 + - + 73 ) AS col0
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-6071
SELECT + 63 DIV 86 * - - ( 73 ) + - 64 AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-6071
SELECT + 63 / 86 * - - ( 73 ) + - 64 AS col1
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6072
SELECT + CASE - - MAX( - - 93 ) WHEN - - 34 THEN NULL WHEN 21 * + - NULLIF ( + - 99, - 86 + - 91 + + MAX( ALL + COALESCE ( + 11, + + 17, + 26 ) ) - - MAX( ALL 86 ) + - 22 * - 40 / + 9 * - 64 * + - 61 ) * - ( - COUNT( * ) ) / + CAST( COALESCE ( + 58, - - 8 - CAST( 10 AS SIGNED ) + + + 95 * + 18, + 43 ) AS DECIMAL ) + 89 THEN NULL ELSE + 62 - COUNT( * ) END + - 43
----
18

skipif mysql # not compatible
query I rowsort label-6072
SELECT + CASE - - MAX ( - - 93 ) WHEN - - 34 THEN NULL WHEN 21 * + - NULLIF ( + - 99, - 86 + - 91 + + MAX ( ALL + COALESCE ( + 11, + + 17, + 26 ) ) - - MAX ( ALL 86 ) + - 22 * - 40 / + 9 * - 64 * + - 61 ) * - ( - COUNT ( * ) ) / + CAST ( COALESCE ( + 58, - - 8 - CAST ( 10 AS INTEGER ) + + + 95 * + 18, + 43 ) AS REAL ) + 89 THEN NULL ELSE + 62 - COUNT ( * ) END + - 43
----
18

query I rowsort
SELECT - + 32 + + + 90
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6074
SELECT + - 21 DIV + 13 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6074
SELECT + - 21 / + 13 AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6075
SELECT ALL + 36 DIV - MAX( DISTINCT + 23 ) + - + 6 - - - 71 * + 56 + - CAST( - COUNT( * ) AS SIGNED ) DIV 68 + - 8 AS col0
----
-3991

skipif mysql # not compatible
query I rowsort label-6075
SELECT ALL + 36 / - MAX ( DISTINCT + 23 ) + - + 6 - - - 71 * + 56 + - CAST ( - COUNT ( * ) AS INTEGER ) / 68 + - 8 AS col0
----
-3991

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6076
SELECT DISTINCT 71 DIV + 11 DIV - COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-6076
SELECT DISTINCT 71 / + 11 / - COUNT ( * )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6077
SELECT DISTINCT + COALESCE ( - 38, - ( + 91 ) ) * - 67 + 25 + - MAX( + + 25 ) + + 63 + + ( + + 77 ) AS col2
----
2686

skipif mysql # not compatible
query I rowsort label-6077
SELECT DISTINCT + COALESCE ( - 38, - ( + 91 ) ) * - 67 + 25 + - MAX ( + + 25 ) + + 63 + + ( + + 77 ) AS col2
----
2686

onlyif mysql # DIV for integer division: 
query I rowsort label-6078
SELECT ALL - + 30 DIV - 97 + 68 DIV + - 84 * - 68 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6078
SELECT ALL - + 30 / - 97 + 68 / + - 84 * - 68 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6079
SELECT 55 DIV + - 91 + + + 58 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-6079
SELECT 55 / + - 91 + + + 58 AS col2
----
58

onlyif mysql # DIV for integer division: 
query II rowsort label-6080
SELECT ALL - - 8 DIV + + 82 + - + ( COALESCE ( - - 11, - - 35 ) ) AS col0, 35 * 11 AS col2
----
-11
385

skipif mysql # not compatible
query II rowsort label-6080
SELECT ALL - - 8 / + + 82 + - + ( COALESCE ( - - 11, - - 35 ) ) AS col0, 35 * 11 AS col2
----
-11
385

query I rowsort
SELECT + 86 * + 79 AS col2
----
6794

onlyif mysql # aggregate syntax: 
query I rowsort label-6082
SELECT + - 19 + - ( - 28 ) + + MIN( ALL 15 )
----
24

skipif mysql # not compatible
query I rowsort label-6082
SELECT + - 19 + - ( - 28 ) + + MIN ( ALL 15 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6083
SELECT DISTINCT COUNT( DISTINCT 75 ) * 9
----
9

skipif mysql # not compatible
query I rowsort label-6083
SELECT DISTINCT COUNT ( DISTINCT 75 ) * 9
----
9

query I rowsort
SELECT - 31 + - 94 + - - 40
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6085
SELECT DISTINCT + 20 * - MAX( ALL + 26 ) - 8
----
-528

skipif mysql # not compatible
query I rowsort label-6085
SELECT DISTINCT + 20 * - MAX ( ALL + 26 ) - 8
----
-528

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6086
SELECT ALL + + MAX( + - CAST( - + 20 AS SIGNED ) ) * + 60
----
1200

skipif mysql # not compatible
query I rowsort label-6086
SELECT ALL + + MAX ( + - CAST ( - + 20 AS INTEGER ) ) * + 60
----
1200

onlyif mysql # aggregate syntax: 
query II rowsort label-6087
SELECT ALL + 73 - + 28 AS col0, - SUM( DISTINCT + 52 ) AS col1
----
45
-52

skipif mysql # not compatible
query II rowsort label-6087
SELECT ALL + 73 - + 28 AS col0, - SUM ( DISTINCT + 52 ) AS col1
----
45
-52

query II rowsort
SELECT 48, - 47 col0
----
48
-47

query I rowsort
SELECT 76 + + 94 + + - 99 + 57 AS col2
----
128

query I rowsort
SELECT 47 * 30 * + ( + + 76 ) * - 75 AS col2
----
-8037000

query I rowsort
SELECT 82 * + 40 AS col2
----
3280

query I rowsort
SELECT 63 + + 15 AS col2
----
78

query I rowsort
SELECT 1 + 30 * + 96
----
2881

query I rowsort
SELECT ALL - 83 * 7
----
-581

query II rowsort
SELECT ALL + 20 * 11, 35 + - 53 AS col1
----
220
-18

query I rowsort
SELECT DISTINCT - 66 * + 74 * + 68
----
-332112

onlyif mysql # DIV for integer division: 
query I rowsort label-6097
SELECT ALL 42 DIV - 82
----
0

skipif mysql # not compatible
query I rowsort label-6097
SELECT ALL 42 / - 82
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6098
SELECT 98 + - ( + 50 ) + - SUM( DISTINCT + 30 ) + - 90 / + CASE - 82 WHEN SUM( ALL + 77 ) THEN + CAST( 32 AS SIGNED ) * + - 52 / + 5 / - COUNT( * ) - - COALESCE ( + + 37, - 89 ) / + 28 + + - 33 END * - + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-6098
SELECT 98 + - ( + 50 ) + - SUM ( DISTINCT + 30 ) + - 90 / + CASE - 82 WHEN SUM ( ALL + 77 ) THEN + CAST ( 32 AS INTEGER ) * + - 52 / + 5 / - COUNT ( * ) - - COALESCE ( + + 37, - 89 ) / + 28 + + - 33 END * - + 95
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6099
SELECT ALL - 21 DIV + + 43 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6099
SELECT ALL - 21 / + + 43 AS col0
----
0

query II rowsort
SELECT 88 * 11 col1, 84 + 30
----
968
114

onlyif mysql # aggregate syntax: 
query I rowsort label-6101
SELECT SUM( + 37 ) - - COUNT( * ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-6101
SELECT SUM ( + 37 ) - - COUNT ( * ) AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6102
SELECT COUNT( - 24 ) * - 52 + + + CASE + MIN( + + 68 ) WHEN 68 THEN + COALESCE ( COUNT( * ), 81 * + ( + 47 ) + - + 69 ) END AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-6102
SELECT COUNT ( - 24 ) * - 52 + + + CASE + MIN ( + + 68 ) WHEN 68 THEN + COALESCE ( COUNT ( * ), 81 * + ( + 47 ) + - + 69 ) END AS col2
----
-51

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6103
SELECT CAST( NULL AS DECIMAL ) + - - CAST( NULL AS SIGNED ), - 82 AS col2
----
NULL
-82

skipif mysql # not compatible
query II rowsort label-6103
SELECT CAST ( NULL AS REAL ) + - - CAST ( NULL AS INTEGER ), - 82 AS col2
----
NULL
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6104
SELECT DISTINCT ( COUNT( * ) ) + + 68 * + COUNT( * ) + + + 84 col0
----
153

skipif mysql # not compatible
query I rowsort label-6104
SELECT DISTINCT ( COUNT ( * ) ) + + 68 * + COUNT ( * ) + + + 84 col0
----
153

onlyif mysql # aggregate syntax: 
query II rowsort label-6105
SELECT DISTINCT - - COUNT( * ) + + 53 AS col0, 93
----
54
93

skipif mysql # not compatible
query II rowsort label-6105
SELECT DISTINCT - - COUNT ( * ) + + 53 AS col0, 93
----
54
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6106
SELECT + COUNT( 65 ) * + + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6106
SELECT + COUNT ( 65 ) * + + COUNT ( * ) AS col0
----
1

query I rowsort
SELECT + - CASE - ( + - 15 ) WHEN - 49 THEN 54 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query III rowsort label-6108
SELECT + ( - - 95 ), AVG ( ALL 72 ) * 10 + + ( - + COUNT( * ) ) - + - 33 * - CASE - - COUNT( * ) WHEN + ( + - 59 ) THEN 50 * 57 + 51 END + 60 + + CASE 16 WHEN + 62 * - SUM( 42 ) THEN NULL WHEN + 15 THEN + 32 ELSE - + CAST( NULL AS DECIMAL ) END + + + 26 AS col2, + + 38 AS col2
----
95
NULL
38

skipif mysql # not compatible
query III rowsort label-6108
SELECT + ( - - 95 ), AVG ( ALL 72 ) * 10 + + ( - + COUNT ( * ) ) - + - 33 * - CASE - - COUNT ( * ) WHEN + ( + - 59 ) THEN 50 * 57 + 51 END + 60 + + CASE 16 WHEN + 62 * - SUM ( 42 ) THEN NULL WHEN + 15 THEN + 32 ELSE - + CAST ( NULL AS REAL ) END + + + 26 AS col2, + + 38 AS col2
----
95
NULL
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6109
SELECT DISTINCT - NULLIF ( CAST( - 15 AS SIGNED ), + 53 * + + 80 + + NULLIF ( 58, 37 ) / + 52 * ( + 17 ) + + 27 * 91 - - 58 ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-6109
SELECT DISTINCT - NULLIF ( CAST ( - 15 AS INTEGER ), + 53 * + + 80 + + NULLIF ( 58, 37 ) / + 52 * ( + 17 ) + + 27 * 91 - - 58 ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6110
SELECT ALL COUNT( * ) - - 25 - + MAX( - 3 )
----
29

skipif mysql # not compatible
query I rowsort label-6110
SELECT ALL COUNT ( * ) - - 25 - + MAX ( - 3 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6111
SELECT - 1 * + 99 * - - ( + COUNT( * ) )
----
-99

skipif mysql # not compatible
query I rowsort label-6111
SELECT - 1 * + 99 * - - ( + COUNT ( * ) )
----
-99

query I rowsort
SELECT NULLIF ( - 22, - 60 ) col0
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6113
SELECT DISTINCT + NULLIF ( + - 59, + + CAST( - ( + - 32 ) AS SIGNED ) / 21 + + 90 ) * ( - - ( + 52 ) ) AS col0
----
-3068

skipif mysql # not compatible
query I rowsort label-6113
SELECT DISTINCT + NULLIF ( + - 59, + + CAST ( - ( + - 32 ) AS INTEGER ) / 21 + + 90 ) * ( - - ( + 52 ) ) AS col0
----
-3068

query I rowsort
SELECT 38 * 12 - - 6 AS col2
----
462

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6115
SELECT ALL CAST( CAST( - COALESCE ( - COUNT( * ), - COALESCE ( + COUNT( * ), + + COUNT( * ) + 55 DIV - COUNT( * ) * + 61 ), - 93 ) AS SIGNED ) AS SIGNED ) DIV + 92 * - - 2
----
0

skipif mysql # not compatible
query I rowsort label-6115
SELECT ALL CAST ( CAST ( - COALESCE ( - COUNT ( * ), - COALESCE ( + COUNT ( * ), + + COUNT ( * ) + 55 / - COUNT ( * ) * + 61 ), - 93 ) AS INTEGER ) AS INTEGER ) / + 92 * - - 2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6116
SELECT ALL - 77 - - - 16 AS col2, - COUNT( - 59 )
----
-93
-1

skipif mysql # not compatible
query II rowsort label-6116
SELECT ALL - 77 - - - 16 AS col2, - COUNT ( - 59 )
----
-93
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6117
SELECT ALL + + 89 * COUNT( * ) * + ( + 32 ) * ( + 81 ) * - - COUNT( * ), COUNT( * ) AS col2
----
230688
1

skipif mysql # not compatible
query II rowsort label-6117
SELECT ALL + + 89 * COUNT ( * ) * + ( + 32 ) * ( + 81 ) * - - COUNT ( * ), COUNT ( * ) AS col2
----
230688
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6118
SELECT ALL - CASE - - ( - NULLIF ( - 1, + 99 ) ) WHEN 11 + CASE CAST( NULL AS DECIMAL ) WHEN 6 THEN NULL ELSE - 5 + - 69 + + + 69 + COUNT( * ) * + 7 END * + 81 THEN NULL ELSE + COALESCE ( 32, NULLIF ( + 73, - + NULLIF ( + 95, - COUNT( * ) ) ) - - 59 ) * - + 38 END
----
1216

skipif mysql # not compatible
query I rowsort label-6118
SELECT ALL - CASE - - ( - NULLIF ( - 1, + 99 ) ) WHEN 11 + CASE CAST ( NULL AS REAL ) WHEN 6 THEN NULL ELSE - 5 + - 69 + + + 69 + COUNT ( * ) * + 7 END * + 81 THEN NULL ELSE + COALESCE ( 32, NULLIF ( + 73, - + NULLIF ( + 95, - COUNT ( * ) ) ) - - 59 ) * - + 38 END
----
1216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6119
SELECT + 81 * + + 20 + - MAX( DISTINCT CASE + 77 WHEN - + 59 THEN CAST( NULL AS SIGNED ) * 85 ELSE NULL END ) + + COUNT( * ) * - COALESCE ( + 86, + 56 * + - CAST( NULL AS SIGNED ) ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6119
SELECT + 81 * + + 20 + - MAX ( DISTINCT CASE + 77 WHEN - + 59 THEN CAST ( NULL AS INTEGER ) * 85 ELSE NULL END ) + + COUNT ( * ) * - COALESCE ( + 86, + 56 * + - CAST ( NULL AS INTEGER ) ) * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6120
SELECT - CASE + 43 WHEN - ( + 1 ) * - CAST( NULL AS SIGNED ) + + 82 THEN NULL WHEN - 5 * - COALESCE ( 66, - 12 * 45 + - CAST( NULL AS SIGNED ) * - 30 ) + + 27 THEN 38 DIV - ( - 81 ) * + 89 ELSE 32 END AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-6120
SELECT - CASE + 43 WHEN - ( + 1 ) * - CAST ( NULL AS INTEGER ) + + 82 THEN NULL WHEN - 5 * - COALESCE ( 66, - 12 * 45 + - CAST ( NULL AS INTEGER ) * - 30 ) + + 27 THEN 38 / - ( - 81 ) * + 89 ELSE 32 END AS col1
----
-32

query I rowsort
SELECT 49 - + + 0
----
49

onlyif mysql # DIV for integer division: 
query II rowsort label-6122
SELECT 11, + COALESCE ( + - 92, 9 + 35 + + 91 * + 67, 86 + - 48 DIV + 61 ) * + - 88 AS col0
----
11
8096

skipif mysql # not compatible
query II rowsort label-6122
SELECT 11, + COALESCE ( + - 92, 9 + 35 + + 91 * + 67, 86 + - 48 / + 61 ) * + - 88 AS col0
----
11
8096

onlyif mysql # aggregate syntax: 
query I rowsort label-6123
SELECT ALL 79 * + - SUM( DISTINCT - - ( + + ( + 95 ) ) )
----
-7505

skipif mysql # not compatible
query I rowsort label-6123
SELECT ALL 79 * + - SUM ( DISTINCT - - ( + + ( + 95 ) ) )
----
-7505

onlyif mysql # aggregate syntax: 
query I rowsort label-6124
SELECT + ( 34 ) * + - 14 * + + SUM( - 9 ) + + CASE 30 WHEN - 40 THEN NULL WHEN + CASE WHEN 31 IS NOT NULL THEN + 94 END THEN 18 END - - COUNT( DISTINCT - 87 ) + + 85 + + ( - 88 ) - + 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6124
SELECT + ( 34 ) * + - 14 * + + SUM ( - 9 ) + + CASE 30 WHEN - 40 THEN NULL WHEN + CASE WHEN 31 IS NOT NULL THEN + 94 END THEN 18 END - - COUNT ( DISTINCT - 87 ) + + 85 + + ( - 88 ) - + 28 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 26 * 98 AS col2
----
2548

onlyif mysql # aggregate syntax: 
query I rowsort label-6126
SELECT ALL 43 * - CASE + 45 WHEN + 19 + + + COUNT( * ) THEN + 92 * + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6126
SELECT ALL 43 * - CASE + 45 WHEN + 19 + + + COUNT ( * ) THEN + 92 * + COUNT ( * ) END
----
NULL

query II rowsort
SELECT DISTINCT 21, 96 AS col1
----
21
96

onlyif mysql # aggregate syntax: 
query II rowsort label-6128
SELECT - COUNT( * ) AS col2, + NULLIF ( 2, 22 * + - 78 - COUNT( * ) ) + + + 19 * - SUM( - 31 ) + 95 AS col2
----
-1
686

skipif mysql # not compatible
query II rowsort label-6128
SELECT - COUNT ( * ) AS col2, + NULLIF ( 2, 22 * + - 78 - COUNT ( * ) ) + + + 19 * - SUM ( - 31 ) + 95 AS col2
----
-1
686

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6129
SELECT 7 * - ( + 75 ) AS col0, 8 * + CAST( - MIN( ALL + 77 ) AS SIGNED ) + 29 AS col0
----
-525
-587

skipif mysql # not compatible
query II rowsort label-6129
SELECT 7 * - ( + 75 ) AS col0, 8 * + CAST ( - MIN ( ALL + 77 ) AS INTEGER ) + 29 AS col0
----
-525
-587

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6130
SELECT CAST( + 38 AS SIGNED ) + + - NULLIF ( 75, + + NULLIF ( 44, + - SUM( + 2 ) * + + 93 * - + 94 + - - 42 + - COUNT( * ) + - 39 + + - 60 + - - 76 / + 77 * + 21 * + + COUNT( - + 75 ) * - ( + 84 ) + ( 48 ) + + - 99 + - 44 + COUNT( * ) * 6 ) ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-6130
SELECT CAST ( + 38 AS INTEGER ) + + - NULLIF ( 75, + + NULLIF ( 44, + - SUM ( + 2 ) * + + 93 * - + 94 + - - 42 + - COUNT ( * ) + - 39 + + - 60 + - - 76 / + 77 * + 21 * + + COUNT ( - + 75 ) * - ( + 84 ) + ( 48 ) + + - 99 + - 44 + COUNT ( * ) * 6 ) ) AS col2
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-6131
SELECT 91 + - + 98 DIV 98 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-6131
SELECT 91 + - + 98 / 98 AS col1
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6132
SELECT 33 * + CAST( + 18 AS SIGNED )
----
594

skipif mysql # not compatible
query I rowsort label-6132
SELECT 33 * + CAST ( + 18 AS INTEGER )
----
594

onlyif mysql # aggregate syntax: 
query II rowsort label-6133
SELECT DISTINCT - 17 + 20 * 35 * - 25, + MIN( DISTINCT - 17 ) AS col2
----
-17517
-17

skipif mysql # not compatible
query II rowsort label-6133
SELECT DISTINCT - 17 + 20 * 35 * - 25, + MIN ( DISTINCT - 17 ) AS col2
----
-17517
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6134
SELECT ALL SUM( DISTINCT - 67 ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-6134
SELECT ALL SUM ( DISTINCT - 67 ) AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6135
SELECT ALL + MIN( - - 68 ) + 62
----
130

skipif mysql # not compatible
query I rowsort label-6135
SELECT ALL + MIN ( - - 68 ) + 62
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-6136
SELECT ALL - 35 + COUNT( * )
----
-34

skipif mysql # not compatible
query I rowsort label-6136
SELECT ALL - 35 + COUNT ( * )
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-6137
SELECT DISTINCT COUNT( * ) AS col2, + 66 + + ( - + 81 ) + - + 25
----
1
-40

skipif mysql # not compatible
query II rowsort label-6137
SELECT DISTINCT COUNT ( * ) AS col2, + 66 + + ( - + 81 ) + - + 25
----
1
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6138
SELECT ALL COUNT( DISTINCT 94 )
----
1

skipif mysql # not compatible
query I rowsort label-6138
SELECT ALL COUNT ( DISTINCT 94 )
----
1

query I rowsort
SELECT DISTINCT + CASE - - 80 WHEN + 87 THEN - 94 END + - - 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6140
SELECT MIN( DISTINCT 58 ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-6140
SELECT MIN ( DISTINCT 58 ) AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6141
SELECT ALL + - COUNT( * ) + - 1 * + ( - + 62 ) * - - 54
----
3347

skipif mysql # not compatible
query I rowsort label-6141
SELECT ALL + - COUNT ( * ) + - 1 * + ( - + 62 ) * - - 54
----
3347

query I rowsort
SELECT - 50 + - 14
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6143
SELECT - + CASE - COUNT( DISTINCT + 69 ) WHEN + 57 / + ( + 33 ) - - 45 / 62 * - CAST( NULL AS SIGNED ) THEN 2 * 57 + - - 84 + + MIN( ALL 54 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6143
SELECT - + CASE - COUNT ( DISTINCT + 69 ) WHEN + 57 / + ( + 33 ) - - 45 / 62 * - CAST ( NULL AS INTEGER ) THEN 2 * 57 + - - 84 + + MIN ( ALL 54 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6144
SELECT ALL - 25 AS col2, COUNT( ALL 44 ) AS col2
----
-25
1

skipif mysql # not compatible
query II rowsort label-6144
SELECT ALL - 25 AS col2, COUNT ( ALL 44 ) AS col2
----
-25
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6145
SELECT - ( + COUNT( * ) ) + - 49 + + - 62
----
-112

skipif mysql # not compatible
query I rowsort label-6145
SELECT - ( + COUNT ( * ) ) + - 49 + + - 62
----
-112

query I rowsort
SELECT - 33 * 92 * - - 58 AS col1
----
-176088

onlyif mysql # aggregate syntax: 
query I rowsort label-6147
SELECT DISTINCT - 12 * MIN( + 46 ) * 43 - 14 - + + 40 AS col1
----
-23790

skipif mysql # not compatible
query I rowsort label-6147
SELECT DISTINCT - 12 * MIN ( + 46 ) * 43 - 14 - + + 40 AS col1
----
-23790

onlyif mysql # aggregate syntax: 
query II rowsort label-6148
SELECT 15 + + MAX( 64 ) * COUNT( * ), + 94 col2
----
79
94

skipif mysql # not compatible
query II rowsort label-6148
SELECT 15 + + MAX ( 64 ) * COUNT ( * ), + 94 col2
----
79
94

query I rowsort
SELECT ALL 12 * - 50 - - 53 * + 25 AS col2
----
725

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6150
SELECT ALL 21 * CAST( - 58 AS SIGNED ) * + 74 * 76 + + 68
----
-6849964

skipif mysql # not compatible
query I rowsort label-6150
SELECT ALL 21 * CAST ( - 58 AS INTEGER ) * + 74 * 76 + + 68
----
-6849964

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6152
SELECT ALL + - 5 * 91 - + COUNT( * ) AS col1
----
-456

skipif mysql # not compatible
query I rowsort label-6152
SELECT ALL + - 5 * 91 - + COUNT ( * ) AS col1
----
-456

onlyif mysql # aggregate syntax: 
query I rowsort label-6153
SELECT ALL - + MIN( 82 ) * - SUM( + - 67 ) * + + COUNT( * ) - - 68 + - 20 AS col2
----
-5446

skipif mysql # not compatible
query I rowsort label-6153
SELECT ALL - + MIN ( 82 ) * - SUM ( + - 67 ) * + + COUNT ( * ) - - 68 + - 20 AS col2
----
-5446

query I rowsort
SELECT + - 37 + + 4 + ( 56 )
----
23

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6156
SELECT + + 62 + + COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-6156
SELECT + + 62 + + COUNT ( * )
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6157
SELECT ALL + CAST( + 16 AS SIGNED ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-6157
SELECT ALL + CAST ( + 16 AS INTEGER ) AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6158
SELECT - COUNT( * ) * 60 - - - 28 + + 58
----
-30

skipif mysql # not compatible
query I rowsort label-6158
SELECT - COUNT ( * ) * 60 - - - 28 + + 58
----
-30

query II rowsort
SELECT - 1 AS col0, 33
----
-1
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6160
SELECT + NULLIF ( - 73, - 64 ) * 51 - COUNT( * ) AS col2
----
-3724

skipif mysql # not compatible
query I rowsort label-6160
SELECT + NULLIF ( - 73, - 64 ) * 51 - COUNT ( * ) AS col2
----
-3724

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6161
SELECT + NULLIF ( + + 83, 98 * - 10 + - COUNT( * ) + + - NULLIF ( + 95, + MAX( - CAST( 11 AS SIGNED ) ) / - - 50 + 66 / - NULLIF ( - - SUM( - 48 ), - - COUNT( - 15 ) * - MAX( DISTINCT - 28 ) ) ) ) * + - 6 * - 98 + + COUNT( * ) * 65 AS col0
----
48869

skipif mysql # not compatible
query I rowsort label-6161
SELECT + NULLIF ( + + 83, 98 * - 10 + - COUNT ( * ) + + - NULLIF ( + 95, + MAX ( - CAST ( 11 AS INTEGER ) ) / - - 50 + 66 / - NULLIF ( - - SUM ( - 48 ), - - COUNT ( - 15 ) * - MAX ( DISTINCT - 28 ) ) ) ) * + - 6 * - 98 + + COUNT ( * ) * 65 AS col0
----
48869

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6162
SELECT ALL - COUNT( * ) * + 66 * - CAST( + + 23 AS SIGNED ) + - 15
----
1503

skipif mysql # not compatible
query I rowsort label-6162
SELECT ALL - COUNT ( * ) * + 66 * - CAST ( + + 23 AS INTEGER ) + - 15
----
1503

onlyif mysql # aggregate syntax: 
query I rowsort label-6163
SELECT COUNT( * ) * - 51 + + 6 AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-6163
SELECT COUNT ( * ) * - 51 + + 6 AS col1
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-6164
SELECT DISTINCT 96 DIV + 73 col1
----
1

skipif mysql # not compatible
query I rowsort label-6164
SELECT DISTINCT 96 / + 73 col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6165
SELECT + 8 + + + 3 - - + COUNT( * ) + - - ( 91 ) * + 66 * + 96 * + MIN( - 37 ) * - NULLIF ( - COALESCE ( - 15, + COUNT( * ) ), - 56 * SUM( ALL - - ( - 88 ) ) + + 12 )
----
319999692

skipif mysql # not compatible
query I rowsort label-6165
SELECT + 8 + + + 3 - - + COUNT ( * ) + - - ( 91 ) * + 66 * + 96 * + MIN ( - 37 ) * - NULLIF ( - COALESCE ( - 15, + COUNT ( * ) ), - 56 * SUM ( ALL - - ( - 88 ) ) + + 12 )
----
319999692

onlyif mysql # aggregate syntax: 
query I rowsort label-6166
SELECT SUM( ALL + 3 ) col0
----
3

skipif mysql # not compatible
query I rowsort label-6166
SELECT SUM ( ALL + 3 ) col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6167
SELECT ALL 90 + 67 + - 46 * + 62 + - - SUM( ALL - 11 ) AS col1
----
-2706

skipif mysql # not compatible
query I rowsort label-6167
SELECT ALL 90 + 67 + - 46 * + 62 + - - SUM ( ALL - 11 ) AS col1
----
-2706

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6168
SELECT + CAST( - AVG ( - 20 ) AS SIGNED ) * + ( + ( - COUNT( * ) ) ) col0
----
-20

skipif mysql # not compatible
query I rowsort label-6168
SELECT + CAST ( - AVG ( - 20 ) AS INTEGER ) * + ( + ( - COUNT ( * ) ) ) col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-6169
SELECT + 48 * CASE + COUNT( * ) WHEN + ( ( - 27 ) ) + - 30 THEN + - 22 WHEN + 9 * 71 / + ( - 43 ) + - 14 * - - 50 - + 4 - - 86 * 90 * 89 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6169
SELECT + 48 * CASE + COUNT ( * ) WHEN + ( ( - 27 ) ) + - 30 THEN + - 22 WHEN + 9 * 71 / + ( - 43 ) + - 14 * - - 50 - + 4 - - 86 * 90 * 89 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT ALL 71 * + - 72 AS col0
----
-5112

onlyif mysql # aggregate syntax: 
query II rowsort label-6171
SELECT ALL COUNT( * ) + - 6 AS col0, 42 AS col2
----
-5
42

skipif mysql # not compatible
query II rowsort label-6171
SELECT ALL COUNT ( * ) + - 6 AS col0, 42 AS col2
----
-5
42

query I rowsort
SELECT DISTINCT 89 + + 57 col0
----
146

query I rowsort
SELECT - 59 + - + 84
----
-143

query I rowsort
SELECT ALL + + 10 - - NULLIF ( - 12, + - 50 ) AS col0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6175
SELECT + 38 - CASE - ( 62 ) WHEN COUNT( * ) THEN + ( + CAST( COUNT( * ) AS SIGNED ) ) + AVG ( DISTINCT 27 ) + - COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6175
SELECT + 38 - CASE - ( 62 ) WHEN COUNT ( * ) THEN + ( + CAST ( COUNT ( * ) AS INTEGER ) ) + AVG ( DISTINCT 27 ) + - COUNT ( * ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT - - 76 + + COUNT( * ) + - 21 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-6176
SELECT - - 76 + + COUNT ( * ) + - 21 AS col1
----
56

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6177
SELECT DISTINCT + - ( + + 5 ) - + 31 * - - 64 * CAST( CAST( NULL AS SIGNED ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6177
SELECT DISTINCT + - ( + + 5 ) - + 31 * - - 64 * CAST ( CAST ( NULL AS INTEGER ) AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6178
SELECT ALL + COUNT( * ) * - - 18 * + + 35 + + 35, 37 DIV + COUNT( * ) col1
----
665
37

skipif mysql # not compatible
query II rowsort label-6178
SELECT ALL + COUNT ( * ) * - - 18 * + + 35 + + 35, 37 / + COUNT ( * ) col1
----
665
37

query I rowsort
SELECT - - ( 52 ) AS col1
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6180
SELECT DISTINCT + - 68 * NULLIF ( - NULLIF ( + CAST( CAST( - 97 AS SIGNED ) AS SIGNED ), 48 ), - 83 ) AS col0
----
-6596

skipif mysql # not compatible
query I rowsort label-6180
SELECT DISTINCT + - 68 * NULLIF ( - NULLIF ( + CAST ( CAST ( - 97 AS INTEGER ) AS INTEGER ), 48 ), - 83 ) AS col0
----
-6596

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6182
SELECT + COUNT( * ) DIV CASE + 63 WHEN - 62 THEN NULL ELSE - 43 END col1, + SUM( ALL - 48 ) + - 59
----
0
-107

skipif mysql # not compatible
query II rowsort label-6182
SELECT + COUNT ( * ) / CASE + 63 WHEN - 62 THEN NULL ELSE - 43 END col1, + SUM ( ALL - 48 ) + - 59
----
0
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT + - COUNT( * ) + - 58
----
-59

skipif mysql # not compatible
query I rowsort label-6183
SELECT + - COUNT ( * ) + - 58
----
-59

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6184
SELECT + - ( + + CAST( NULL AS DECIMAL ) ), 4 AS col0
----
NULL
4

skipif mysql # not compatible
query II rowsort label-6184
SELECT + - ( + + CAST ( NULL AS REAL ) ), 4 AS col0
----
NULL
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6185
SELECT DISTINCT 36 * SUM( 37 ) * 11 * 53 + CASE + 63 WHEN + 91 THEN - 65 + - 60 WHEN - SUM( + + 9 ) + - + 39 + COUNT( * ) + ( - COALESCE ( 1, - 65 ) ) * + 32 THEN - ( + CAST( + 77 AS SIGNED ) ) END + - 24 + 72 + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-6185
SELECT DISTINCT 36 * SUM ( 37 ) * 11 * 53 + CASE + 63 WHEN + 91 THEN - 65 + - 60 WHEN - SUM ( + + 9 ) + - + 39 + COUNT ( * ) + ( - COALESCE ( 1, - 65 ) ) * + 32 THEN - ( + CAST ( + 77 AS INTEGER ) ) END + - 24 + 72 + 82
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6186
SELECT ALL + 17 AS col1, + 46 DIV + - 31 - + ( 77 )
----
17
-78

skipif mysql # not compatible
query II rowsort label-6186
SELECT ALL + 17 AS col1, + 46 / + - 31 - + ( 77 )
----
17
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6187
SELECT ALL - MIN( DISTINCT - 89 ) * 27 + 68 * 86 * + ( + 16 ) AS col2
----
95971

skipif mysql # not compatible
query I rowsort label-6187
SELECT ALL - MIN ( DISTINCT - 89 ) * 27 + 68 * 86 * + ( + 16 ) AS col2
----
95971

query I rowsort
SELECT DISTINCT + CASE + NULLIF ( - - 21, - 66 ) WHEN + 19 THEN + 22 WHEN + - 97 * + 14 / ( - 40 ) THEN + 22 END * - NULLIF ( + 99, + 20 ) / + - 23 + 23 * - 8 col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6190
SELECT ALL COUNT( * ) * - + 98 + 8
----
-90

skipif mysql # not compatible
query I rowsort label-6190
SELECT ALL COUNT ( * ) * - + 98 + 8
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-6191
SELECT - ( - + COUNT( * ) ) - + 52, 89 + - COUNT( * ) + - - 5 AS col1
----
-51
93

skipif mysql # not compatible
query II rowsort label-6191
SELECT - ( - + COUNT ( * ) ) - + 52, 89 + - COUNT ( * ) + - - 5 AS col1
----
-51
93

query I rowsort
SELECT - 72 + - - 33
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT CASE - - COUNT( * ) WHEN 89 THEN - 92 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6193
SELECT CASE - - COUNT ( * ) WHEN 89 THEN - 92 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6194
SELECT CASE 16 WHEN CAST( NULL AS SIGNED ) THEN - 88 - + 18 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6194
SELECT CASE 16 WHEN CAST ( NULL AS INTEGER ) THEN - 88 - + 18 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6195
SELECT DISTINCT ( - + 73 ) DIV COUNT( * ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-6195
SELECT DISTINCT ( - + 73 ) / COUNT ( * ) AS col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-6196
SELECT DISTINCT 34 * + - COUNT( * ) + + 46
----
12

skipif mysql # not compatible
query I rowsort label-6196
SELECT DISTINCT 34 * + - COUNT ( * ) + + 46
----
12

query II rowsort
SELECT ALL 37 AS col0, 31
----
37
31

onlyif mysql # aggregate syntax: 
query II rowsort label-6198
SELECT ALL - ( + 92 ) * + 77 + MAX( + - 43 ) + - + 10, - 43 + + - 26 AS col1
----
-7137
-69

skipif mysql # not compatible
query II rowsort label-6198
SELECT ALL - ( + 92 ) * + 77 + MAX ( + - 43 ) + - + 10, - 43 + + - 26 AS col1
----
-7137
-69

query I rowsort
SELECT + 18 - + 66 * - 20
----
1338

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

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

query I rowsort
SELECT - NULLIF ( - 75, - 40 ) AS col1
----
75

query I rowsort
SELECT ALL 76 * - - 4 AS col2
----
304

onlyif mysql # aggregate syntax: 
query I rowsort label-6203
SELECT + 92 * + COUNT( * ) col2
----
92

skipif mysql # not compatible
query I rowsort label-6203
SELECT + 92 * + COUNT ( * ) col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6204
SELECT + 36 + - CASE + COUNT( * ) WHEN + SUM( + 72 ) - + 93 THEN - 81 + - 88 ELSE - 70 END * + + 51 AS col2
----
3606

skipif mysql # not compatible
query I rowsort label-6204
SELECT + 36 + - CASE + COUNT ( * ) WHEN + SUM ( + 72 ) - + 93 THEN - 81 + - 88 ELSE - 70 END * + + 51 AS col2
----
3606

query I rowsort
SELECT - - 47 - 80
----
-33

query I rowsort
SELECT CASE - 88 WHEN 76 THEN 60 WHEN + + 48 THEN 22 + 43 + + - 34 + 72 * + - 88 + - 65 * + 4 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 97 * - - 45
----
-4365

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6209
SELECT 54 + + - ( CASE 92 WHEN - 55 THEN - 29 * 80 + + ( + 25 ) * - 97 WHEN - - 50 + 81 + + 15 + - 74 + ( - 37 ) + - MIN( ALL 57 ) + + ( - COUNT( * ) ) * COUNT( * ) THEN NULL ELSE MAX( DISTINCT - CAST( - + 37 AS SIGNED ) ) END ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-6209
SELECT 54 + + - ( CASE 92 WHEN - 55 THEN - 29 * 80 + + ( + 25 ) * - 97 WHEN - - 50 + 81 + + 15 + - 74 + ( - 37 ) + - MIN ( ALL 57 ) + + ( - COUNT ( * ) ) * COUNT ( * ) THEN NULL ELSE MAX ( DISTINCT - CAST ( - + 37 AS INTEGER ) ) END ) AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6210
SELECT + 61 + - + 87 + + COUNT( DISTINCT - 19 ) + - + 82 AS col2
----
-107

skipif mysql # not compatible
query I rowsort label-6210
SELECT + 61 + - + 87 + + COUNT ( DISTINCT - 19 ) + - + 82 AS col2
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-6211
SELECT DISTINCT - + ( - SUM( + + 11 ) ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-6211
SELECT DISTINCT - + ( - SUM ( + + 11 ) ) AS col1
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6212
SELECT 47 + + 50 + - + 76 + - + ( - + 9 ) * + - 96 * + CAST( + - 58 AS SIGNED ) * + + 72 AS col1
----
3608085

skipif mysql # not compatible
query I rowsort label-6212
SELECT 47 + + 50 + - + 76 + - + ( - + 9 ) * + - 96 * + CAST ( + - 58 AS INTEGER ) * + + 72 AS col1
----
3608085

onlyif mysql # aggregate syntax: 
query I rowsort label-6213
SELECT + COUNT( DISTINCT + 93 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6213
SELECT + COUNT ( DISTINCT + 93 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6214
SELECT ALL - - ( + CAST( - AVG ( DISTINCT - 18 ) AS SIGNED ) )
----
18

skipif mysql # not compatible
query I rowsort label-6214
SELECT ALL - - ( + CAST ( - AVG ( DISTINCT - 18 ) AS INTEGER ) )
----
18

query I rowsort
SELECT ALL 72 + 44
----
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6216
SELECT MAX( 91 ) DIV 63 DIV - - 8 + + + 14 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-6216
SELECT MAX ( 91 ) / 63 / - - 8 + + + 14 AS col0
----
14

query I rowsort
SELECT 39 * 69 + 0
----
2691

onlyif mysql # aggregate syntax: 
query I rowsort label-6218
SELECT ALL - COUNT( * ) + 53 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-6218
SELECT ALL - COUNT ( * ) + 53 AS col2
----
52

query I rowsort
SELECT 17 * - ( - - 43 ) * + 3 + + - 5
----
-2198

onlyif mysql # aggregate syntax: 
query I rowsort label-6220
SELECT - CASE + 35 WHEN - - 70 + + + 34 * 77 + 44 * - + 9 / - 42 + - - AVG ( ALL 84 ) * + - 81 THEN + ( 78 ) * - + 78 * - - NULLIF ( + COUNT( * ), 59 / - 96 ) ELSE NULL END * 67 * + 54 + - + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-6220
SELECT - CASE + 35 WHEN - - 70 + + + 34 * 77 + 44 * - + 9 / - 42 + - - AVG ( ALL 84 ) * + - 81 THEN + ( 78 ) * - + 78 * - - NULLIF ( + COUNT ( * ), 59 / - 96 ) ELSE NULL END * 67 * + 54 + - + 78
----
NULL

query I rowsort
SELECT ALL - 75 * - 3 AS col2
----
225

query II rowsort
SELECT DISTINCT + 21 + NULLIF ( + 20, - + 15 ), + 29 AS col0
----
41
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6223
SELECT DISTINCT + 48 + - 58 * 28 * + + COUNT( * )
----
-1576

skipif mysql # not compatible
query I rowsort label-6223
SELECT DISTINCT + 48 + - 58 * 28 * + + COUNT ( * )
----
-1576

onlyif mysql # aggregate syntax: 
query I rowsort label-6224
SELECT ALL ( + - 31 ) - - COUNT( * ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-6224
SELECT ALL ( + - 31 ) - - COUNT ( * ) AS col1
----
-30

query I rowsort
SELECT ALL - ( + - 88 ) AS col2
----
88

query II rowsort
SELECT ALL - 55, + 81 col1
----
-55
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6227
SELECT DISTINCT + NULLIF ( + COUNT( * ), + - 7 * - COUNT( * ) + - ( - - 53 ) ) * + 39 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-6227
SELECT DISTINCT + NULLIF ( + COUNT ( * ), + - 7 * - COUNT ( * ) + - ( - - 53 ) ) * + 39 AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6228
SELECT DISTINCT - MIN( DISTINCT 47 ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-6228
SELECT DISTINCT - MIN ( DISTINCT 47 ) AS col1
----
-47

query I rowsort
SELECT ALL + 4 - - - 8
----
-4

query I rowsort
SELECT 6 * 60 * + 42 col2
----
15120

onlyif mysql # aggregate syntax: 
query I rowsort label-6231
SELECT NULLIF ( - COUNT( ALL 98 ), ( - 82 ) ) * - - 70 AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-6231
SELECT NULLIF ( - COUNT ( ALL 98 ), ( - 82 ) ) * - - 70 AS col0
----
-70

query I rowsort
SELECT 22 + + - 73 col1
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-6233
SELECT ( - 39 ) + 51 * 56 DIV + 15
----
151

skipif mysql # not compatible
query I rowsort label-6233
SELECT ( - 39 ) + 51 * 56 / + 15
----
151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6234
SELECT ALL + CAST( + 6 AS SIGNED ), + COALESCE ( + - 0, - COUNT( * ) * - + ( - - COALESCE ( - 49, - ( 32 ), + 75, + 54 + + 51 ) ) ) AS col2
----
6
0

skipif mysql # not compatible
query II rowsort label-6234
SELECT ALL + CAST ( + 6 AS INTEGER ), + COALESCE ( + - 0, - COUNT ( * ) * - + ( - - COALESCE ( - 49, - ( 32 ), + 75, + 54 + + 51 ) ) ) AS col2
----
6
0

query I rowsort
SELECT 21 * - 26 AS col1
----
-546

query I rowsort
SELECT ALL - ( 23 ) * 76
----
-1748

query II rowsort
SELECT DISTINCT + 95, 25 AS col2
----
95
25

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6239
SELECT DISTINCT + 88 * + + 75 AS col2, 42 + + - CAST( COUNT( * ) AS SIGNED )
----
6600
41

skipif mysql # not compatible
query II rowsort label-6239
SELECT DISTINCT + 88 * + + 75 AS col2, 42 + + - CAST ( COUNT ( * ) AS INTEGER )
----
6600
41

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

query I rowsort
SELECT ALL 53 * + - 35 * + + 75 AS col2
----
-139125

onlyif mysql # aggregate syntax: 
query I rowsort label-6242
SELECT + 32 * - COUNT( 98 )
----
-32

skipif mysql # not compatible
query I rowsort label-6242
SELECT + 32 * - COUNT ( 98 )
----
-32

query II rowsort
SELECT + 85 AS col1, + 25 - - 0 + - 55 + + 98 + - + 18 col0
----
85
50

query I rowsort
SELECT - 15 + + + 27 AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6245
SELECT ALL - CASE WHEN NOT NULL BETWEEN ( NULL ) AND MAX( ALL 30 ) THEN + - 76 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6245
SELECT ALL - CASE WHEN NOT NULL BETWEEN ( NULL ) AND MAX ( ALL 30 ) THEN + - 76 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6246
SELECT - 59 DIV - 57
----
1

skipif mysql # not compatible
query I rowsort label-6246
SELECT - 59 / - 57
----
1

query I rowsort
SELECT ALL 12 + - ( 99 ) AS col0
----
-87

query I rowsort
SELECT + COALESCE ( - 89, + 50 )
----
-89

query I rowsort
SELECT DISTINCT + 92 * - 42
----
-3864

onlyif mysql # aggregate syntax: 
query I rowsort label-6250
SELECT DISTINCT + COUNT( ( 68 ) ) + 0
----
1

skipif mysql # not compatible
query I rowsort label-6250
SELECT DISTINCT + COUNT ( ( 68 ) ) + 0
----
1

query I rowsort
SELECT 1 * - 7 * + 55 * - 10 AS col0
----
3850

onlyif mysql # DIV for integer division: 
query I rowsort label-6252
SELECT 98 DIV + 68 - - 11
----
12

skipif mysql # not compatible
query I rowsort label-6252
SELECT 98 / + 68 - - 11
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6253
SELECT MIN( DISTINCT + - 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-6253
SELECT MIN ( DISTINCT + - 26 )
----
-26

query I rowsort
SELECT ALL 67 * + 19
----
1273

query I rowsort
SELECT 91 * + 38 * + CASE - 59 WHEN - 56 THEN - 64 * 49 WHEN + - 3 THEN NULL END * - 69
----
NULL

query I rowsort
SELECT 26 * - + 54 AS col1
----
-1404

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6258
SELECT ALL + 38 * - + COUNT( * ) DIV - 43 - - 82
----
82

skipif mysql # not compatible
query I rowsort label-6258
SELECT ALL + 38 * - + COUNT ( * ) / - 43 - - 82
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6259
SELECT MAX( - 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-6259
SELECT MAX ( - 48 )
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-6260
SELECT ALL 48 * + + NULLIF ( COUNT( * ), 22 / + COUNT( * ) ) AS col1, + 43
----
48
43

skipif mysql # not compatible
query II rowsort label-6260
SELECT ALL 48 * + + NULLIF ( COUNT ( * ), 22 / + COUNT ( * ) ) AS col1, + 43
----
48
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6261
SELECT COUNT( - + ( + 60 ) ) * + - ( 79 ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-6261
SELECT COUNT ( - + ( + 60 ) ) * + - ( 79 ) AS col1
----
-79

query I rowsort
SELECT ALL - ( ( - + 71 ) ) AS col2
----
71

query I rowsort
SELECT 25 + - + 27
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-6264
SELECT 32 DIV - + 49 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6264
SELECT 32 / - + 49 AS col2
----
0

query I rowsort
SELECT - 1 * - + ( - 4 ) + 7
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6266
SELECT - CASE - MIN( DISTINCT + 41 ) WHEN + 87 THEN + 21 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6266
SELECT - CASE - MIN ( DISTINCT + 41 ) WHEN + 87 THEN + 21 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - - 59 * + 8
----
472

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6268
SELECT - - COUNT( 65 ) * + CAST( NULL AS SIGNED ) + 19 + + SUM( DISTINCT - ( - + 67 ) ) + - - 5 + - 19 * - + COUNT( * ) * + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-6268
SELECT - - COUNT ( 65 ) * + CAST ( NULL AS INTEGER ) + 19 + + SUM ( DISTINCT - ( - + 67 ) ) + - - 5 + - 19 * - + COUNT ( * ) * + 91
----
NULL

query II rowsort
SELECT ALL - NULLIF ( - ( + 53 ), + 14 * + + 77 ) AS col0, + 81 AS col0
----
53
81

query I rowsort
SELECT DISTINCT - - 49 * + + 16 * + - 43
----
-33712

query I rowsort
SELECT + ( + - 51 ) * + 88 AS col1
----
-4488

query I rowsort
SELECT ALL - ( - 7 ) + - + ( - 60 ) AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6273
SELECT DISTINCT + CASE - COUNT( + + 2 ) WHEN 42 THEN NULL ELSE COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-6273
SELECT DISTINCT + CASE - COUNT ( + + 2 ) WHEN 42 THEN NULL ELSE COUNT ( * ) END
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6274
SELECT + + COUNT( * ) * + 4 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-6274
SELECT + + COUNT ( * ) * + 4 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6275
SELECT DISTINCT - 15 * + MIN( 3 ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-6275
SELECT DISTINCT - 15 * + MIN ( 3 ) AS col0
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6276
SELECT DISTINCT - 4 + 48 * + CAST( COALESCE ( - - 43, - 23 + COUNT( * ) * + + 45 ) AS SIGNED )
----
2060

skipif mysql # not compatible
query I rowsort label-6276
SELECT DISTINCT - 4 + 48 * + CAST ( COALESCE ( - - 43, - 23 + COUNT ( * ) * + + 45 ) AS INTEGER )
----
2060

query II rowsort
SELECT - 32 + + 6 * - 67 AS col2, + 55 * + 75
----
-434
4125

onlyif mysql # aggregate syntax: 
query II rowsort label-6278
SELECT - 97 + + COUNT( * ) + - + 84 + + + 28, + 1 - + + 88 AS col2
----
-152
-87

skipif mysql # not compatible
query II rowsort label-6278
SELECT - 97 + + COUNT ( * ) + - + 84 + + + 28, + 1 - + + 88 AS col2
----
-152
-87

query I rowsort
SELECT + 3 - - 60
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-6280
SELECT DISTINCT 3 AS col1, + MAX( + + 80 ) + 82 AS col1
----
3
162

skipif mysql # not compatible
query II rowsort label-6280
SELECT DISTINCT 3 AS col1, + MAX ( + + 80 ) + 82 AS col1
----
3
162

onlyif mysql # DIV for integer division: 
query I rowsort label-6281
SELECT + 79 DIV 29
----
2

skipif mysql # not compatible
query I rowsort label-6281
SELECT + 79 / 29
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-6282
SELECT 75 * 68 + - 79 + - + COUNT( * ) col1, - 38
----
5020
-38

skipif mysql # not compatible
query II rowsort label-6282
SELECT 75 * 68 + - 79 + - + COUNT ( * ) col1, - 38
----
5020
-38

query I rowsort
SELECT ALL + 94 * - COALESCE ( 93, + 39, - + COALESCE ( - 16, + - 61 ) ) - - 7 AS col1
----
-8735

query I rowsort
SELECT DISTINCT 72 * 98
----
7056

query II rowsort
SELECT ALL + 45, 31 + - + 19 - 55 * 99 col2
----
45
-5433

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6286
SELECT - 73 * + ( - 78 ) + - + 59, 41 * + 55 DIV - COUNT( * ) AS col2
----
5635
-2255

skipif mysql # not compatible
query II rowsort label-6286
SELECT - 73 * + ( - 78 ) + - + 59, 41 * + 55 / - COUNT ( * ) AS col2
----
5635
-2255

query I rowsort
SELECT + 2 * + 76 AS col1
----
152

query II rowsort
SELECT ALL + 90, 71 AS col2
----
90
71

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

skipif mysql # not compatible
query I rowsort label-6289
SELECT 40 / - - ( - - COUNT ( * ) ) + - 39 AS col1
----
1

query I rowsort
SELECT + 95 + + 99 * + 88 AS col2
----
8807

query II rowsort
SELECT ALL + 71, - 95 - + 17 AS col1
----
71
-112

query I rowsort
SELECT + NULLIF ( - 8, + - ( - 51 ) ) AS col0
----
-8

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6294
SELECT + 34 * + + 37 + 48 DIV ( + COUNT( * ) )
----
1306

skipif mysql # not compatible
query I rowsort label-6294
SELECT + 34 * + + 37 + 48 / ( + COUNT ( * ) )
----
1306

query I rowsort
SELECT + 35 * + 28 AS col0
----
980

query I rowsort
SELECT ALL - 41 * + + 84 col1
----
-3444

onlyif mysql # aggregate syntax: 
query I rowsort label-6297
SELECT ALL SUM( DISTINCT + 85 ) * + - CASE + 69 WHEN + 85 THEN 93 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6297
SELECT ALL SUM ( DISTINCT + 85 ) * + - CASE + 69 WHEN + 85 THEN 93 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6298
SELECT DISTINCT - 10 * - 27 DIV - COUNT( * ) AS col2, - AVG ( COALESCE ( - 24, - - ( 7 ), + - 23 ) ) + - + CASE COUNT( * ) WHEN - + 0 THEN - - 8 ELSE NULL END + 91 * 94 * - - SUM( 80 ) DIV + 62 DIV - - NULLIF ( - - 42, - ( + 48 ) * + 19 + + + 7 + 12 DIV + MIN( DISTINCT - 59 ) ) + + 96 * - 48 + - CAST( NULL AS SIGNED )
----
-270
NULL

skipif mysql # not compatible
query II rowsort label-6298
SELECT DISTINCT - 10 * - 27 / - COUNT ( * ) AS col2, - AVG ( COALESCE ( - 24, - - ( 7 ), + - 23 ) ) + - + CASE COUNT ( * ) WHEN - + 0 THEN - - 8 ELSE NULL END + 91 * 94 * - - SUM ( 80 ) / + 62 / - - NULLIF ( - - 42, - ( + 48 ) * + 19 + + + 7 + 12 / + MIN ( DISTINCT - 59 ) ) + + 96 * - 48 + - CAST ( NULL AS INTEGER )
----
-270
NULL

query I rowsort
SELECT ALL + 84 * + - 20 + 61 AS col2
----
-1619

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6300
SELECT - 48 DIV - + COUNT( * ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-6300
SELECT - 48 / - + COUNT ( * ) AS col2
----
48

query II rowsort
SELECT ALL - 62 * - + 23 + - 5, ( + 91 ) + + 91 + 46 + 44 AS col1
----
1421
272

query I rowsort
SELECT + ( + - 19 ) * - 95
----
1805

onlyif mysql # DIV for integer division: 
query I rowsort label-6303
SELECT ALL + 27 DIV + - 9 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-6303
SELECT ALL + 27 / + - 9 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6304
SELECT DISTINCT + 12 * - - SUM( ALL - 82 ) + - NULLIF ( 69, - 35 * + 25 + + 71 / + COUNT( * ) * + 91 )
----
-1053

skipif mysql # not compatible
query I rowsort label-6304
SELECT DISTINCT + 12 * - - SUM ( ALL - 82 ) + - NULLIF ( 69, - 35 * + 25 + + 71 / + COUNT ( * ) * + 91 )
----
-1053

query I rowsort
SELECT DISTINCT - - 46 + + 47
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-6306
SELECT ALL - 67 DIV + 38
----
-1

skipif mysql # not compatible
query I rowsort label-6306
SELECT ALL - 67 / + 38
----
-1

query I rowsort
SELECT DISTINCT - 8 + - 44 AS col1
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6308
SELECT - CASE - 86 WHEN + 59 * 33 * - 26 + + ( 73 ) THEN NULL ELSE - COUNT( * ) + ( 15 ) DIV + - 62 END AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6308
SELECT - CASE - 86 WHEN + 59 * 33 * - 26 + + ( 73 ) THEN NULL ELSE - COUNT ( * ) + ( 15 ) / + - 62 END AS col1
----
1

query I rowsort
SELECT - 64 + - + 62 * 52 * + 56 * 87
----
-15707392

query I rowsort
SELECT DISTINCT - 75 + ( 7 ) * 81 AS col1
----
492

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6311
SELECT - 43 AS col2, CAST( NULL AS SIGNED )
----
-43
NULL

skipif mysql # not compatible
query II rowsort label-6311
SELECT - 43 AS col2, CAST ( NULL AS INTEGER )
----
-43
NULL

query I rowsort
SELECT - 77 + 57 AS col0
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6313
SELECT ALL - + 4 + - 32 + - COUNT( DISTINCT CAST( - - 32 AS SIGNED ) ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-6313
SELECT ALL - + 4 + - 32 + - COUNT ( DISTINCT CAST ( - - 32 AS INTEGER ) ) AS col1
----
-37

query I rowsort
SELECT COALESCE ( - - 90, - + 65 )
----
90

query II rowsort
SELECT ALL - 57 AS col1, 45
----
-57
45

onlyif mysql # aggregate syntax: 
query II rowsort label-6316
SELECT - - COUNT( * ), 15 AS col1
----
1
15

skipif mysql # not compatible
query II rowsort label-6316
SELECT - - COUNT ( * ), 15 AS col1
----
1
15

query I rowsort
SELECT + 79 + 49 * - 73 AS col0
----
-3498

onlyif mysql # aggregate syntax: 
query II rowsort label-6318
SELECT DISTINCT ( - 17 ), NULLIF ( - 36, 82 ) * COALESCE ( + COALESCE ( + NULLIF ( - - COUNT( 86 ), - - 10 ), - + 0, - 73 - - NULLIF ( 12, + COUNT( * ) - + + 61 * - ( - + MIN( ALL + 53 ) ) * 82 * + - 5 * + ( 64 ) / - 37 ) ), + 93 * - MIN( 29 ) ) + ( - + 12 ) * 62 + - 83 * - + 83 + + COUNT( * ) + - 94 + MIN( DISTINCT + CASE - 59 WHEN 96 THEN - 64 WHEN ( - 29 ) - + 88 THEN NULL WHEN 63 THEN 76 ELSE NULL END ) * - ( + COUNT( * ) ) AS col0
----
-17
NULL

skipif mysql # not compatible
query II rowsort label-6318
SELECT DISTINCT ( - 17 ), NULLIF ( - 36, 82 ) * COALESCE ( + COALESCE ( + NULLIF ( - - COUNT ( 86 ), - - 10 ), - + 0, - 73 - - NULLIF ( 12, + COUNT ( * ) - + + 61 * - ( - + MIN ( ALL + 53 ) ) * 82 * + - 5 * + ( 64 ) / - 37 ) ), + 93 * - MIN ( 29 ) ) + ( - + 12 ) * 62 + - 83 * - + 83 + + COUNT ( * ) + - 94 + MIN ( DISTINCT + CASE - 59 WHEN 96 THEN - 64 WHEN ( - 29 ) - + 88 THEN NULL WHEN 63 THEN 76 ELSE NULL END ) * - ( + COUNT ( * ) ) AS col0
----
-17
NULL

query I rowsort
SELECT ALL ( - - 98 ) AS col1
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-6320
SELECT DISTINCT ( + 71 ) AS col1, CASE + + 75 WHEN + COUNT( * ) * - + 42 * + - COUNT( 72 ) + - 1 + - 69 * - + 59 / ( - 72 ) - + ( + 68 ) THEN NULL WHEN - AVG ( ALL + - 93 ) * - AVG ( + - 85 ) + + COUNT( * ) THEN - - 9 WHEN - 44 THEN - 26 END * + AVG ( ALL 77 )
----
71
NULL

skipif mysql # not compatible
query II rowsort label-6320
SELECT DISTINCT ( + 71 ) AS col1, CASE + + 75 WHEN + COUNT ( * ) * - + 42 * + - COUNT ( 72 ) + - 1 + - 69 * - + 59 / ( - 72 ) - + ( + 68 ) THEN NULL WHEN - AVG ( ALL + - 93 ) * - AVG ( + - 85 ) + + COUNT ( * ) THEN - - 9 WHEN - 44 THEN - 26 END * + AVG ( ALL 77 )
----
71
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6321
SELECT ALL ( - 73 ) * CAST( NULL AS SIGNED ) / + + 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6321
SELECT ALL ( - 73 ) * CAST ( NULL AS INTEGER ) / + + 47 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6322
SELECT 72 DIV + 10 - + 88
----
-81

skipif mysql # not compatible
query I rowsort label-6322
SELECT 72 / + 10 - + 88
----
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-6323
SELECT - 66 DIV - 97, - ( - - 23 ) + - 76 AS col1
----
0
-99

skipif mysql # not compatible
query II rowsort label-6323
SELECT - 66 / - 97, - ( - - 23 ) + - 76 AS col1
----
0
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6324
SELECT + COUNT( - ( + 86 ) ) * + 62 + + + 90
----
152

skipif mysql # not compatible
query I rowsort label-6324
SELECT + COUNT ( - ( + 86 ) ) * + 62 + + + 90
----
152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6325
SELECT ALL ( - + 8 ) * + + COALESCE ( - + CAST( NULL AS SIGNED ), - COUNT( * ), 86 * - 61 * + MIN( ALL + ( - + 61 ) ) + - SUM( ALL - 81 ) )
----
8

skipif mysql # not compatible
query I rowsort label-6325
SELECT ALL ( - + 8 ) * + + COALESCE ( - + CAST ( NULL AS INTEGER ), - COUNT ( * ), 86 * - 61 * + MIN ( ALL + ( - + 61 ) ) + - SUM ( ALL - 81 ) )
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6326
SELECT + CAST( - - 90 AS SIGNED )
----
90

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6327
SELECT ALL 54 * - 36 AS col0, 33 + - + SUM( + 87 ) AS col1
----
-1944
-54

skipif mysql # not compatible
query II rowsort label-6327
SELECT ALL 54 * - 36 AS col0, 33 + - + SUM ( + 87 ) AS col1
----
-1944
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6328
SELECT DISTINCT - COUNT( - - 76 )
----
-1

skipif mysql # not compatible
query I rowsort label-6328
SELECT DISTINCT - COUNT ( - - 76 )
----
-1

query I rowsort
SELECT DISTINCT + ( + - 88 ) + 74 - 76
----
-90

query I rowsort
SELECT ( + + 33 ) + + 59
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-6331
SELECT - 36 * - 21 + - SUM( - 62 ) * - 52 * - + 63 * ( - + COUNT( * ) ) + + 25 AS col1, + 8 + + 59 AS col1
----
-202331
67

skipif mysql # not compatible
query II rowsort label-6331
SELECT - 36 * - 21 + - SUM ( - 62 ) * - 52 * - + 63 * ( - + COUNT ( * ) ) + + 25 AS col1, + 8 + + 59 AS col1
----
-202331
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6332
SELECT - + 51 * + + NULLIF ( + 56, + ( - NULLIF ( - - 28, - ( + + 32 ) + + 30 ) ) ) + - 42 + - ( - 46 ) + - 0 + + 38 + + - 88 * + COUNT( * ) AS col1
----
-2902

skipif mysql # not compatible
query I rowsort label-6332
SELECT - + 51 * + + NULLIF ( + 56, + ( - NULLIF ( - - 28, - ( + + 32 ) + + 30 ) ) ) + - 42 + - ( - 46 ) + - 0 + + 38 + + - 88 * + COUNT ( * ) AS col1
----
-2902

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6333
SELECT + - COALESCE ( - SUM( - 54 ), + 13 + + - 76 ) * + ( + 19 ) + - 20 DIV + 39
----
-1026

skipif mysql # not compatible
query I rowsort label-6333
SELECT + - COALESCE ( - SUM ( - 54 ), + 13 + + - 76 ) * + ( + 19 ) + - 20 / + 39
----
-1026

query I rowsort
SELECT + ( - + 79 ) col1
----
-79

query I rowsort
SELECT ALL + 7 + 9
----
16

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

skipif mysql # not compatible
query I rowsort label-6336
SELECT DISTINCT + - SUM ( ALL - + 45 ) * - - ( + CAST ( NULL AS INTEGER ) ) + + + COUNT ( * ) + 0
----
NULL

query I rowsort
SELECT ALL - 37 + 14 * COALESCE ( - 42, - + 30, 97 ) AS col0
----
-625

onlyif mysql # aggregate syntax: 
query I rowsort label-6338
SELECT DISTINCT ( + 63 ) + - COUNT( * ) + ( 9 ) * + ( - COUNT( * ) )
----
53

skipif mysql # not compatible
query I rowsort label-6338
SELECT DISTINCT ( + 63 ) + - COUNT ( * ) + ( 9 ) * + ( - COUNT ( * ) )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6339
SELECT DISTINCT - 88 * + + COUNT( DISTINCT + - NULLIF ( + COALESCE ( - - 14, + 97, 85 ), 20 ) ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-6339
SELECT DISTINCT - 88 * + + COUNT ( DISTINCT + - NULLIF ( + COALESCE ( - - 14, + 97, 85 ), 20 ) ) AS col0
----
-88

query I rowsort
SELECT 6 + 5 + - 49 * + + 1 + 87 + + - 56 * - 55 + - - 26 AS col2
----
3155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6341
SELECT 93 * + 99 + COALESCE ( + 20, + CAST( NULL AS SIGNED ) )
----
9227

skipif mysql # not compatible
query I rowsort label-6341
SELECT 93 * + 99 + COALESCE ( + 20, + CAST ( NULL AS INTEGER ) )
----
9227

onlyif mysql # aggregate syntax: 
query I rowsort label-6342
SELECT COUNT( * ) * + + NULLIF ( - + 68, 20 * 53 + - CASE + + MAX( DISTINCT 42 ) WHEN + - 25 THEN 77 ELSE NULL END ) col1
----
-68

skipif mysql # not compatible
query I rowsort label-6342
SELECT COUNT ( * ) * + + NULLIF ( - + 68, 20 * 53 + - CASE + + MAX ( DISTINCT 42 ) WHEN + - 25 THEN 77 ELSE NULL END ) col1
----
-68

query I rowsort
SELECT ALL + CASE - 56 WHEN 86 THEN + - 18 ELSE + 74 * - + 89 END
----
-6586

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

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

query I rowsort
SELECT - 19 + + 8 * + - 3 col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-6346
SELECT + ( - COUNT( 72 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6346
SELECT + ( - COUNT ( 72 ) ) AS col2
----
-1

query I rowsort
SELECT DISTINCT - + NULLIF ( + + 55, 65 ) - - 57 - 15 - 69
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-6348
SELECT ALL + + 64 DIV + 11 + 71 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-6348
SELECT ALL + + 64 / + 11 + 71 AS col1
----
76

query I rowsort
SELECT ( - 2 ) * + 99 AS col2
----
-198

query I rowsort
SELECT ALL + 85 - + 40 AS col0
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6351
SELECT DISTINCT - ( - - 93 ) * + + COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) * - + 46 * - + COUNT( * ) + - 82 DIV - - 44 AS col1, + 64 AS col2
----
-1
64

skipif mysql # not compatible
query II rowsort label-6351
SELECT DISTINCT - ( - - 93 ) * + + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) * - + 46 * - + COUNT ( * ) + - 82 / - - 44 AS col1, + 64 AS col2
----
-1
64

onlyif mysql # DIV for integer division: 
query I rowsort label-6352
SELECT DISTINCT 90 DIV + - 5 AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-6352
SELECT DISTINCT 90 / + - 5 AS col1
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-6353
SELECT 20 DIV + 89
----
0

skipif mysql # not compatible
query I rowsort label-6353
SELECT 20 / + 89
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6354
SELECT ALL - 12 * - COALESCE ( SUM( 1 ), - - ( + 63 ) )
----
12

skipif mysql # not compatible
query I rowsort label-6354
SELECT ALL - 12 * - COALESCE ( SUM ( 1 ), - - ( + 63 ) )
----
12

query I rowsort
SELECT ( + 72 ) * - 11 * + 10 AS col0
----
-7920

query I rowsort
SELECT ( - - 64 ) + - 48
----
16

query I rowsort
SELECT 16 + ( - + 97 ) * 94 AS col1
----
-9102

onlyif mysql # aggregate syntax: 
query I rowsort label-6358
SELECT MIN( DISTINCT - 1 ) * ( + MAX( + - 95 ) ) col2
----
95

skipif mysql # not compatible
query I rowsort label-6358
SELECT MIN ( DISTINCT - 1 ) * ( + MAX ( + - 95 ) ) col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6359
SELECT 50 * - COUNT( ALL + 38 ) + - 87 * MIN( ALL - + 24 )
----
2038

skipif mysql # not compatible
query I rowsort label-6359
SELECT 50 * - COUNT ( ALL + 38 ) + - 87 * MIN ( ALL - + 24 )
----
2038

query I rowsort
SELECT 41 + - 47 AS col2
----
-6

query I rowsort
SELECT ALL 24 + - 42 AS col0
----
-18

query I rowsort
SELECT + 26 * 32 + + 90 + 17
----
939

query I rowsort
SELECT ALL 0 + + 94
----
94

query I rowsort
SELECT 41 * + + 49 * 15
----
30135

query I rowsort
SELECT DISTINCT + + ( - 40 ) * + - ( - 7 ) * 84 + + 95
----
-23425

query I rowsort
SELECT ALL + + 5 + - 63
----
-58

query I rowsort
SELECT + - ( - 36 ) col0
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6368
SELECT + - CAST( NULL AS SIGNED ) * - + CAST( - COUNT( * ) AS DECIMAL ) * - 25 + + + COUNT( DISTINCT - + CAST( NULL AS DECIMAL ) ) + + - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-6368
SELECT + - CAST ( NULL AS INTEGER ) * - + CAST ( - COUNT ( * ) AS REAL ) * - 25 + + + COUNT ( DISTINCT - + CAST ( NULL AS REAL ) ) + + - 36
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6369
SELECT - CAST( - 49 AS SIGNED ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-6369
SELECT - CAST ( - 49 AS INTEGER ) AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6370
SELECT ALL + COUNT( * ) + - 6 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-6370
SELECT ALL + COUNT ( * ) + - 6 AS col1
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-6371
SELECT DISTINCT - + 44 AS col0, - NULLIF ( 46, + 5 - AVG ( ALL + 97 ) ) + 13 + - COUNT( * )
----
-44
-34

skipif mysql # not compatible
query II rowsort label-6371
SELECT DISTINCT - + 44 AS col0, - NULLIF ( 46, + 5 - AVG ( ALL + 97 ) ) + 13 + - COUNT ( * )
----
-44
-34

query I rowsort
SELECT ALL 54 - + 49 + - 36 * - 8 AS col2
----
293

query I rowsort
SELECT - 37 * - 94 + 73 col1
----
3551

onlyif mysql # aggregate syntax: 
query I rowsort label-6374
SELECT ALL COUNT( * ) - 81 AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-6374
SELECT ALL COUNT ( * ) - 81 AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6375
SELECT + MIN( - - ( 71 ) ) col1
----
71

skipif mysql # not compatible
query I rowsort label-6375
SELECT + MIN ( - - ( 71 ) ) col1
----
71

query I rowsort
SELECT ALL - ( 35 ) col2
----
-35

query II rowsort
SELECT + 3 * 71 * - NULLIF ( - 91, - - 51 ), + 65 AS col0
----
19383
65

query I rowsort
SELECT 31 * 65 AS col1
----
2015

query I rowsort
SELECT 61 + 4
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6380
SELECT DISTINCT CASE 35 WHEN + - COUNT( 50 ) THEN - 38 + - - 8 - 35 * 64 ELSE 17 END * + COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-6380
SELECT DISTINCT CASE 35 WHEN + - COUNT ( 50 ) THEN - 38 + - - 8 - 35 * 64 ELSE 17 END * + COUNT ( * )
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-6381
SELECT NULLIF ( - - 87, + 4 ) + + - 86 DIV 87 * + 7 DIV + + 42 + + 91 * + 8
----
815

skipif mysql # not compatible
query I rowsort label-6381
SELECT NULLIF ( - - 87, + 4 ) + + - 86 / 87 * + 7 / + + 42 + + 91 * + 8
----
815

query I rowsort
SELECT - NULLIF ( - 99, - - 80 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6383
SELECT ALL 84 * - ( ( - + COUNT( + - 12 ) ) ) * 41 + + + 66 AS col0
----
3510

skipif mysql # not compatible
query I rowsort label-6383
SELECT ALL 84 * - ( ( - + COUNT ( + - 12 ) ) ) * 41 + + + 66 AS col0
----
3510

query II rowsort
SELECT 71 AS col1, - 19 * + 69
----
71
-1311

query II rowsort
SELECT 6 AS col0, + 48 * - 73
----
6
-3504

onlyif mysql # aggregate syntax: 
query II rowsort label-6386
SELECT ALL 63 col2, MAX( ALL + 37 ) * + CASE 65 WHEN - 52 THEN + 7 + - 52 ELSE + 61 END
----
63
2257

skipif mysql # not compatible
query II rowsort label-6386
SELECT ALL 63 col2, MAX ( ALL + 37 ) * + CASE 65 WHEN - 52 THEN + 7 + - 52 ELSE + 61 END
----
63
2257

query I rowsort
SELECT DISTINCT 1 + + 42 AS col2
----
43

query I rowsort
SELECT ALL - 82 + 45
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-6389
SELECT - 30 * - 45 * - COUNT( * ) AS col2
----
-1350

skipif mysql # not compatible
query I rowsort label-6389
SELECT - 30 * - 45 * - COUNT ( * ) AS col2
----
-1350

query I rowsort
SELECT ALL 36 + - 46 AS col1
----
-10

query I rowsort
SELECT - COALESCE ( + ( + 16 ), - 21 + - ( + - 75 ) ) * + - 57 + + 61 + 79 + - 84 * + 92 * - 46 AS col0
----
356540

onlyif mysql # aggregate syntax: 
query I rowsort label-6392
SELECT + CASE - + 73 WHEN 30 THEN + COALESCE ( - + ( - 46 ), - + 53 ) WHEN - - ( + 97 ) + + CASE 74 WHEN 64 THEN - - 34 END + + COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6392
SELECT + CASE - + 73 WHEN 30 THEN + COALESCE ( - + ( - 46 ), - + 53 ) WHEN - - ( + 97 ) + + CASE 74 WHEN 64 THEN - - 34 END + + COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6393
SELECT CASE MAX( + CAST( + 62 AS SIGNED ) ) WHEN - 58 THEN NULL ELSE CASE + - 66 WHEN 8 THEN - + MIN( DISTINCT + - 44 ) / + ( 52 ) - + COUNT( * ) END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6393
SELECT CASE MAX ( + CAST ( + 62 AS INTEGER ) ) WHEN - 58 THEN NULL ELSE CASE + - 66 WHEN 8 THEN - + MIN ( DISTINCT + - 44 ) / + ( 52 ) - + COUNT ( * ) END END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6394
SELECT + 39 AS col1, + CASE WHEN ( NULL ) IS NULL THEN NULL ELSE ( + + CASE + 49 WHEN + 71 THEN NULL WHEN 81 THEN - CASE 80 WHEN 11 + - CAST( + ( + 84 ) AS SIGNED ) THEN NULL WHEN - COUNT( * ) THEN + 23 WHEN - 9 * - CAST( - 34 AS SIGNED ) * + - 27 - - + CAST( - ( - CAST( - - 97 AS DECIMAL ) ) AS SIGNED ) + + 53 * 33 * + 42 THEN NULL WHEN + 27 THEN - 89 END + - + 70 + - + 35 * + CAST( NULL AS SIGNED ) WHEN - MAX( + 45 ) * + + 70 + + + AVG ( ALL + + 98 ) THEN 29 ELSE NULL END ) END * 1 + - - 51 * 11 + 8
----
39
NULL

skipif mysql # not compatible
query II rowsort label-6394
SELECT + 39 AS col1, + CASE WHEN ( NULL ) IS NULL THEN NULL ELSE ( + + CASE + 49 WHEN + 71 THEN NULL WHEN 81 THEN - CASE 80 WHEN 11 + - CAST ( + ( + 84 ) AS INTEGER ) THEN NULL WHEN - COUNT ( * ) THEN + 23 WHEN - 9 * - CAST ( - 34 AS INTEGER ) * + - 27 - - + CAST ( - ( - CAST ( - - 97 AS REAL ) ) AS INTEGER ) + + 53 * 33 * + 42 THEN NULL WHEN + 27 THEN - 89 END + - + 70 + - + 35 * + CAST ( NULL AS INTEGER ) WHEN - MAX ( + 45 ) * + + 70 + + + AVG ( ALL + + 98 ) THEN 29 ELSE NULL END ) END * 1 + - - 51 * 11 + 8
----
39
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6395
SELECT COALESCE ( - + 14, 30 + COUNT( * ) + + COUNT( * ), 23 * + - 37 )
----
-14

skipif mysql # not compatible
query I rowsort label-6395
SELECT COALESCE ( - + 14, 30 + COUNT ( * ) + + COUNT ( * ), 23 * + - 37 )
----
-14

query I rowsort
SELECT ALL 84 * - 3 + - 74
----
-326

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6397
SELECT - CAST( - 93 AS SIGNED ) * 33 * + - 42 col0
----
-128898

skipif mysql # not compatible
query I rowsort label-6397
SELECT - CAST ( - 93 AS INTEGER ) * 33 * + - 42 col0
----
-128898

query I rowsort
SELECT ALL + 10 * 51 AS col0
----
510

onlyif mysql # aggregate syntax: 
query II rowsort label-6399
SELECT DISTINCT + + 15 col0, SUM( + 66 ) AS col2
----
15
66

skipif mysql # not compatible
query II rowsort label-6399
SELECT DISTINCT + + 15 col0, SUM ( + 66 ) AS col2
----
15
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6400
SELECT ALL + SUM( DISTINCT CAST( 79 AS SIGNED ) ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-6400
SELECT ALL + SUM ( DISTINCT CAST ( 79 AS INTEGER ) ) AS col0
----
79

query I rowsort
SELECT + 89 * + - 10 + + 88 * - 83
----
-8194

query I rowsort
SELECT - - 93 * + 31 AS col1
----
2883

onlyif mysql # DIV for integer division: 
query I rowsort label-6403
SELECT DISTINCT - 88 DIV COALESCE ( + - 74, - + 21 )
----
1

skipif mysql # not compatible
query I rowsort label-6403
SELECT DISTINCT - 88 / COALESCE ( + - 74, - + 21 )
----
1

query I rowsort
SELECT ALL - 55 * + 34 AS col2
----
-1870

query I rowsort
SELECT - 96 * - 15 AS col2
----
1440

onlyif mysql # DIV for integer division: 
query I rowsort label-6406
SELECT DISTINCT - + 56 DIV - 5
----
11

skipif mysql # not compatible
query I rowsort label-6406
SELECT DISTINCT - + 56 / - 5
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6407
SELECT ALL 40 * + 64 DIV ( - ( - 2 ) ) * ( 64 ) * - - 35 + - COUNT( * )
----
2867199

skipif mysql # not compatible
query I rowsort label-6407
SELECT ALL 40 * + 64 / ( - ( - 2 ) ) * ( 64 ) * - - 35 + - COUNT ( * )
----
2867199

onlyif mysql # aggregate syntax: 
query I rowsort label-6408
SELECT + + 8 + + COUNT( * ) + 40
----
49

skipif mysql # not compatible
query I rowsort label-6408
SELECT + + 8 + + COUNT ( * ) + 40
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6409
SELECT ALL + 3 * + - 54 * 37 * + - COUNT( * ), 33 DIV 97 + - + 82 AS col2
----
5994
-82

skipif mysql # not compatible
query II rowsort label-6409
SELECT ALL + 3 * + - 54 * 37 * + - COUNT ( * ), 33 / 97 + - + 82 AS col2
----
5994
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6410
SELECT 88, - 55 * - - CASE + 83 WHEN 53 * + + CAST( + 95 AS SIGNED ) THEN + 58 WHEN 67 / + NULLIF ( - 66, - 66 ) * - COUNT( ALL - 63 ) + + + 53 + 74 THEN + + 57 WHEN - 44 * CAST( NULL AS SIGNED ) * 91 / SUM( - NULLIF ( - 46, + + 15 ) ) THEN - + 52 ELSE NULL END AS col1
----
88
NULL

skipif mysql # not compatible
query II rowsort label-6410
SELECT 88, - 55 * - - CASE + 83 WHEN 53 * + + CAST ( + 95 AS INTEGER ) THEN + 58 WHEN 67 / + NULLIF ( - 66, - 66 ) * - COUNT ( ALL - 63 ) + + + 53 + 74 THEN + + 57 WHEN - 44 * CAST ( NULL AS INTEGER ) * 91 / SUM ( - NULLIF ( - 46, + + 15 ) ) THEN - + 52 ELSE NULL END AS col1
----
88
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT + 79 + - 57 * SUM( DISTINCT + - 73 ) + - 55 + - 66 * - 59 * + + 67 col1
----
265083

skipif mysql # not compatible
query I rowsort label-6411
SELECT + 79 + - 57 * SUM ( DISTINCT + - 73 ) + - 55 + - 66 * - 59 * + + 67 col1
----
265083

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT - NULLIF ( - COUNT( 68 ), + 95 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6412
SELECT - NULLIF ( - COUNT ( 68 ), + 95 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6413
SELECT - 84 + + - ( + - COUNT( * ) ), - 48 AS col1
----
-83
-48

skipif mysql # not compatible
query II rowsort label-6413
SELECT - 84 + + - ( + - COUNT ( * ) ), - 48 AS col1
----
-83
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6414
SELECT ALL + COUNT( * ) + - 20 + - 74 + - + 80 * COUNT( * ) AS col1
----
-173

skipif mysql # not compatible
query I rowsort label-6414
SELECT ALL + COUNT ( * ) + - 20 + - 74 + - + 80 * COUNT ( * ) AS col1
----
-173

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6415
SELECT DISTINCT CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) + + CASE 19 WHEN + + 32 * - 31 * 19 THEN - 71 WHEN + + 89 - CAST( NULL AS SIGNED ) THEN 29 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6415
SELECT DISTINCT CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) + + CASE 19 WHEN + + 32 * - 31 * 19 THEN - 71 WHEN + + 89 - CAST ( NULL AS INTEGER ) THEN 29 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6416
SELECT ALL 89 + 73 + - 82 AS col2, 46 + - CAST( 76 AS SIGNED )
----
80
-30

skipif mysql # not compatible
query II rowsort label-6416
SELECT ALL 89 + 73 + - 82 AS col2, 46 + - CAST ( 76 AS INTEGER )
----
80
-30

query I rowsort
SELECT + 71 + - 7
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-6418
SELECT ALL - 60 DIV - 69
----
0

skipif mysql # not compatible
query I rowsort label-6418
SELECT ALL - 60 / - 69
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6419
SELECT ALL 25 DIV - - 31 - - + CAST( - - 53 AS SIGNED ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-6419
SELECT ALL 25 / - - 31 - - + CAST ( - - 53 AS INTEGER ) AS col1
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6420
SELECT + + 95 * 0 + + 77 + - 44 - CASE - 49 WHEN - + CAST( + 25 AS SIGNED ) * COUNT( * ) * - + 82 + - 46 + - 29 + + 69 THEN NULL ELSE - - 50 DIV + 94 END, 57 AS col0
----
33
57

skipif mysql # not compatible
query II rowsort label-6420
SELECT + + 95 * 0 + + 77 + - 44 - CASE - 49 WHEN - + CAST ( + 25 AS INTEGER ) * COUNT ( * ) * - + 82 + - 46 + - 29 + + 69 THEN NULL ELSE - - 50 / + 94 END, 57 AS col0
----
33
57

query I rowsort
SELECT - 29 * - - CASE + - 43 WHEN 96 THEN NULL ELSE - - 49 END + + - NULLIF ( + 7, + 7 ) * - + 9 * 22
----
NULL

query I rowsort
SELECT ALL - 3 * 52 + + 50 AS col1
----
-106

query II rowsort
SELECT + - 45 * - 6 AS col0, 91 AS col0
----
270
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6424
SELECT + COUNT( * ) DIV 93 * 38
----
0

skipif mysql # not compatible
query I rowsort label-6424
SELECT + COUNT ( * ) / 93 * 38
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6425
SELECT ALL - CASE + 72 WHEN + + 68 + - CASE 72 WHEN - 91 THEN - COUNT( * ) * + 88 WHEN 11 + + + 45 + - 77 THEN NULL END THEN - + 42 WHEN 23 * 97 * 79 THEN NULL ELSE - COUNT( * ) + - 93 END * + + ( - - 42 ) AS col0
----
3948

skipif mysql # not compatible
query I rowsort label-6425
SELECT ALL - CASE + 72 WHEN + + 68 + - CASE 72 WHEN - 91 THEN - COUNT ( * ) * + 88 WHEN 11 + + + 45 + - 77 THEN NULL END THEN - + 42 WHEN 23 * 97 * 79 THEN NULL ELSE - COUNT ( * ) + - 93 END * + + ( - - 42 ) AS col0
----
3948

onlyif mysql # aggregate syntax: 
query I rowsort label-6426
SELECT - 28 * MAX( - 72 ) AS col0
----
2016

skipif mysql # not compatible
query I rowsort label-6426
SELECT - 28 * MAX ( - 72 ) AS col0
----
2016

onlyif mysql # aggregate syntax: 
query II rowsort label-6427
SELECT + ( - + COUNT( * ) ) AS col2, 98 * 67
----
-1
6566

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

query I rowsort
SELECT DISTINCT - - 95 * - 41 + - 44
----
-3939

query I rowsort
SELECT ALL + NULLIF ( - - 69, - 25 * - - 11 + - 76 * - 64 ) AS col2
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6430
SELECT ALL - 9 * - - CAST( - + 82 AS SIGNED ) - - - 29 AS col1
----
709

skipif mysql # not compatible
query I rowsort label-6430
SELECT ALL - 9 * - - CAST ( - + 82 AS INTEGER ) - - - 29 AS col1
----
709

onlyif mysql # aggregate syntax: 
query I rowsort label-6431
SELECT - + 87 * 38 + 27 + - SUM( + - 62 ) AS col2
----
-3217

skipif mysql # not compatible
query I rowsort label-6431
SELECT - + 87 * 38 + 27 + - SUM ( + - 62 ) AS col2
----
-3217

query I rowsort
SELECT + ( + + 18 ) AS col1
----
18

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

skipif mysql # not compatible
query I rowsort label-6433
SELECT ALL - - 45 / COUNT ( * ) / + + 30 AS col0
----
1

query I rowsort
SELECT ALL - 22 * - COALESCE ( + 8, + + 86 ) * 91 + 31
----
16047

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6435
SELECT ALL + ( + + CASE + 20 WHEN - - 93 + 94 THEN NULL WHEN + + COUNT( * ) THEN NULL ELSE + 53 / COUNT( * ) END ) * + COUNT( * ) * - - 87 + + 56 + NULLIF ( 62, - 2 ) * + CASE 19 WHEN - - 47 THEN NULL WHEN + 21 THEN - COUNT( * ) + + - CAST( - CAST( + + 12 AS DECIMAL ) AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6435
SELECT ALL + ( + + CASE + 20 WHEN - - 93 + 94 THEN NULL WHEN + + COUNT ( * ) THEN NULL ELSE + 53 / COUNT ( * ) END ) * + COUNT ( * ) * - - 87 + + 56 + NULLIF ( 62, - 2 ) * + CASE 19 WHEN - - 47 THEN NULL WHEN + 21 THEN - COUNT ( * ) + + - CAST ( - CAST ( + + 12 AS REAL ) AS INTEGER ) ELSE NULL END
----
NULL

query I rowsort
SELECT - 67 - + + 95 - - 65 + - 5 AS col0
----
-102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6437
SELECT NULLIF ( CAST( COUNT( * ) AS SIGNED ), - + 70 + - 10 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-6437
SELECT NULLIF ( CAST ( COUNT ( * ) AS INTEGER ), - + 70 + - 10 ) col0
----
1

query II rowsort
SELECT 26 * - 52 - + 20 AS col2, 60 AS col1
----
-1372
60

query I rowsort
SELECT DISTINCT + 99 + + 25
----
124

query I rowsort
SELECT 29 * - 37 * + - 8
----
8584

onlyif mysql # aggregate syntax: 
query I rowsort label-6441
SELECT ALL + 27 + CASE - 99 WHEN - + 97 THEN + 68 WHEN 68 * + SUM( - 42 ) THEN + CASE - + 21 WHEN - 72 + + 2 THEN - MAX( DISTINCT - + 60 ) WHEN - 79 + 86 THEN - + COUNT( * ) WHEN + 0 + + 7 THEN - 22 * + 81 * 31 END END + 55 * 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6441
SELECT ALL + 27 + CASE - 99 WHEN - + 97 THEN + 68 WHEN 68 * + SUM ( - 42 ) THEN + CASE - + 21 WHEN - 72 + + 2 THEN - MAX ( DISTINCT - + 60 ) WHEN - 79 + 86 THEN - + COUNT ( * ) WHEN + 0 + + 7 THEN - 22 * + 81 * 31 END END + 55 * 50 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6442
SELECT ALL 49 + - + ( + 76 ) DIV 31 + + 72 + + 90 * COALESCE ( + + 37, - 94 + - 36, - + SUM( + - 90 ), + + 35 + - ( + - 42 ) ) AS col0
----
3449

skipif mysql # not compatible
query I rowsort label-6442
SELECT ALL 49 + - + ( + 76 ) / 31 + + 72 + + 90 * COALESCE ( + + 37, - 94 + - 36, - + SUM ( + - 90 ), + + 35 + - ( + - 42 ) ) AS col0
----
3449

onlyif mysql # aggregate syntax: 
query I rowsort label-6443
SELECT ALL 7 + - COALESCE ( + 33, 88 + + - 53 + + + SUM( + 95 ) + + 77 * + + COUNT( * ), - 93 ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-6443
SELECT ALL 7 + - COALESCE ( + 33, 88 + + - 53 + + + SUM ( + 95 ) + + 77 * + + COUNT ( * ), - 93 ) AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-6444
SELECT 51 + - 27 - MIN( + CASE + 84 WHEN - + 63 / - 20 THEN NULL WHEN + 42 THEN NULL ELSE 91 END ) col2
----
-67

skipif mysql # not compatible
query I rowsort label-6444
SELECT 51 + - 27 - MIN ( + CASE + 84 WHEN - + 63 / - 20 THEN NULL WHEN + 42 THEN NULL ELSE 91 END ) col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT DISTINCT - COALESCE ( - 37, NULLIF ( - COUNT( * ), + - 60 ), 75 * 43 + + 73 + COUNT( * ) * 38 + + 84 + - 89 ) * 30
----
1110

skipif mysql # not compatible
query I rowsort label-6445
SELECT DISTINCT - COALESCE ( - 37, NULLIF ( - COUNT ( * ), + - 60 ), 75 * 43 + + 73 + COUNT ( * ) * 38 + + 84 + - 89 ) * 30
----
1110

query I rowsort
SELECT ALL + 82 + - - 34 AS col2
----
116

query I rowsort
SELECT 41 * + + 70
----
2870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-6448
SELECT 39 AS col0, NULLIF ( + CAST( 10 AS SIGNED ), - COALESCE ( + 33, - + 91 ) * + 57 ) + + 83 AS col0, + 20 + - 82 * - COUNT( * ) * - - COUNT( * ) * - COUNT( * ) AS col1
----
39
93
-62

skipif mysql # not compatible
query III rowsort label-6448
SELECT 39 AS col0, NULLIF ( + CAST ( 10 AS INTEGER ), - COALESCE ( + 33, - + 91 ) * + 57 ) + + 83 AS col0, + 20 + - 82 * - COUNT ( * ) * - - COUNT ( * ) * - COUNT ( * ) AS col1
----
39
93
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6449
SELECT ( + 33 ) + ( - + 13 ) - - - CAST( 29 AS SIGNED ) * 60 AS col0
----
-1720

skipif mysql # not compatible
query I rowsort label-6449
SELECT ( + 33 ) + ( - + 13 ) - - - CAST ( 29 AS INTEGER ) * 60 AS col0
----
-1720

query II rowsort
SELECT DISTINCT 84, 94 * - 66 * + 54 col2
----
84
-335016

query II rowsort
SELECT ALL 36, + 62 AS col2
----
36
62

query I rowsort
SELECT DISTINCT + 65 - - 99
----
164

query II rowsort
SELECT 55 AS col2, + 98
----
55
98

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

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

query I rowsort
SELECT DISTINCT NULLIF ( - 60, + 7 + 30 ) * - 96 + - 74 AS col2
----
5686

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6456
SELECT DISTINCT + COUNT( * ) * - SUM( 43 ) + ( 89 ) * COUNT( * ) DIV + - 3 + - - 11 + 93
----
32

skipif mysql # not compatible
query I rowsort label-6456
SELECT DISTINCT + COUNT ( * ) * - SUM ( 43 ) + ( 89 ) * COUNT ( * ) / + - 3 + - - 11 + 93
----
32

query I rowsort
SELECT 36 * 66
----
2376

onlyif mysql # aggregate syntax: 
query I rowsort label-6458
SELECT - COUNT( * ) * - - 42 * 49 AS col0
----
-2058

skipif mysql # not compatible
query I rowsort label-6458
SELECT - COUNT ( * ) * - - 42 * 49 AS col0
----
-2058

query I rowsort
SELECT DISTINCT - ( + - 43 ) AS col2
----
43

query II rowsort
SELECT DISTINCT - 18, 30 col0
----
-18
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6461
SELECT - COUNT( * ) DIV NULLIF ( + 80, + ( 96 ) ) + + + ( - 5 ) - - 87 + - 80 DIV - 83 * - - 36 * + 20 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-6461
SELECT - COUNT ( * ) / NULLIF ( + 80, + ( 96 ) ) + + + ( - 5 ) - - 87 + - 80 / - 83 * - - 36 * + 20 AS col2
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6462
SELECT ALL - - CASE 93 WHEN - 18 + 61 THEN COUNT( * ) ELSE - - 44 * 37 DIV + 90 + + + 84 + + 9 * - 17 + - 57 END
----
-108

skipif mysql # not compatible
query I rowsort label-6462
SELECT ALL - - CASE 93 WHEN - 18 + 61 THEN COUNT ( * ) ELSE - - 44 * 37 / + 90 + + + 84 + + 9 * - 17 + - 57 END
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-6463
SELECT - 6 - COUNT( 0 ) + - 69 + + + COUNT( * ) * ( + - 0 ) * + 35 * 13 + + 99 * + + COUNT( * ) + 59 * + ( 84 ) * + 28 * + - 29 AS col0
----
-4024249

skipif mysql # not compatible
query I rowsort label-6463
SELECT - 6 - COUNT ( 0 ) + - 69 + + + COUNT ( * ) * ( + - 0 ) * + 35 * 13 + + 99 * + + COUNT ( * ) + 59 * + ( 84 ) * + 28 * + - 29 AS col0
----
-4024249

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

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

query I rowsort
SELECT - 86 + + + ( - - 34 ) + + 87 AS col2
----
35

query I rowsort
SELECT ALL 26 + + + 9 * - - 95 + - - 6
----
887

onlyif mysql # aggregate syntax: 
query I rowsort label-6467
SELECT DISTINCT MIN( + 51 ) * - - 9 AS col0
----
459

skipif mysql # not compatible
query I rowsort label-6467
SELECT DISTINCT MIN ( + 51 ) * - - 9 AS col0
----
459

query II rowsort
SELECT ALL - 50 + - 55, 16 AS col1
----
-105
16

query I rowsort
SELECT ALL + 95 + + - 93 + + + 17 AS col0
----
19

query I rowsort
SELECT ALL NULLIF ( + 51, + 70 / 40 + 75 ) * + 80 * + 48 * 13 + - ( 17 ) AS col2
----
2545903

query I rowsort
SELECT 51 * 9 AS col1
----
459

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6472
SELECT 54 + - CAST( NULL AS SIGNED ) + - MIN( 10 ) * - 65 * - + ( + - 18 ) / + 59 * + 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6472
SELECT 54 + - CAST ( NULL AS INTEGER ) + - MIN ( 10 ) * - 65 * - + ( + - 18 ) / + 59 * + 85 AS col2
----
NULL

query I rowsort
SELECT ALL - 50 + - - 92 AS col0
----
42

query I rowsort
SELECT ( 58 ) * - + 3
----
-174

onlyif mysql # DIV for integer division: 
query I rowsort label-6475
SELECT DISTINCT + 78 DIV + + ( - 28 )
----
-2

skipif mysql # not compatible
query I rowsort label-6475
SELECT DISTINCT + 78 / + + ( - 28 )
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6476
SELECT 54 DIV COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-6476
SELECT 54 / COUNT ( * )
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6477
SELECT ALL + 60 * + CAST( - COUNT( * ) AS SIGNED ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-6477
SELECT ALL + 60 * + CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-6478
SELECT ALL + 51 * MIN( ALL + + ( - 59 ) )
----
-3009

skipif mysql # not compatible
query I rowsort label-6478
SELECT ALL + 51 * MIN ( ALL + + ( - 59 ) )
----
-3009

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6479
SELECT DISTINCT + 78 DIV 26, - COUNT( * ) AS col1
----
3
-1

skipif mysql # not compatible
query II rowsort label-6479
SELECT DISTINCT + 78 / 26, - COUNT ( * ) AS col1
----
3
-1

query I rowsort
SELECT 76 - CASE + 82 WHEN - 50 / + 9 THEN 75 ELSE NULL END
----
NULL

query II rowsort
SELECT ALL + 60 * + 95 AS col0, 29 AS col0
----
5700
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6482
SELECT DISTINCT - 6 * - - COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-6482
SELECT DISTINCT - 6 * - - COUNT ( * )
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6483
SELECT 89 * - CASE 95 WHEN - - 73 * + 44 + + COUNT( * ) - + - 25 * + + 45 * + - 16 + + 21 THEN NULL WHEN + 13 * - - 69 * CAST( 23 AS SIGNED ) + - 17 THEN MIN( + 74 ) + - 8 - - 64 DIV + 45 ELSE - 99 END * - SUM( DISTINCT + - 32 ) * - + 57 + - - 90 + - 64 AS col0
----
-16071238

skipif mysql # not compatible
query I rowsort label-6483
SELECT 89 * - CASE 95 WHEN - - 73 * + 44 + + COUNT ( * ) - + - 25 * + + 45 * + - 16 + + 21 THEN NULL WHEN + 13 * - - 69 * CAST ( 23 AS INTEGER ) + - 17 THEN MIN ( + 74 ) + - 8 - - 64 / + 45 ELSE - 99 END * - SUM ( DISTINCT + - 32 ) * - + 57 + - - 90 + - 64 AS col0
----
-16071238

query I rowsort
SELECT + ( + 66 ) + + 53 AS col2
----
119

onlyif mysql # DIV for integer division: 
query I rowsort label-6485
SELECT - 18 DIV + 16 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6485
SELECT - 18 / + 16 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6486
SELECT - 87 * - COUNT( * ) + - 93
----
-6

skipif mysql # not compatible
query I rowsort label-6486
SELECT - 87 * - COUNT ( * ) + - 93
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6487
SELECT DISTINCT - COALESCE ( 69, 96, - + ( + - 48 ), - MIN( DISTINCT + 43 ) + + 94 ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-6487
SELECT DISTINCT - COALESCE ( 69, 96, - + ( + - 48 ), - MIN ( DISTINCT + 43 ) + + 94 ) AS col1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6488
SELECT ALL + COALESCE ( COUNT( * ), COUNT( - 73 ) + - 69 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6488
SELECT ALL + COALESCE ( COUNT ( * ), COUNT ( - 73 ) + - 69 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6489
SELECT + ( COUNT( * ) ) * 76 * MIN( DISTINCT + ( + 38 ) ) * - + 28 - + 29 + + 23 + - 95 AS col0
----
-80965

skipif mysql # not compatible
query I rowsort label-6489
SELECT + ( COUNT ( * ) ) * 76 * MIN ( DISTINCT + ( + 38 ) ) * - + 28 - + 29 + + 23 + - 95 AS col0
----
-80965

query I rowsort
SELECT DISTINCT + - 58 * + 71 + + 36 + + 17 + 65
----
-4000

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6492
SELECT - 7 * 0 DIV + 62 + - + 90
----
-90

skipif mysql # not compatible
query I rowsort label-6492
SELECT - 7 * 0 / + 62 + - + 90
----
-90

query I rowsort
SELECT + - ( + + 16 ) AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6494
SELECT ( + COALESCE ( - 14, MAX( DISTINCT 64 ), - - 4 ) )
----
-14

skipif mysql # not compatible
query I rowsort label-6494
SELECT ( + COALESCE ( - 14, MAX ( DISTINCT 64 ), - - 4 ) )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6495
SELECT ALL - 70 * - ( + + 60 ) * CASE - + COUNT( * ) WHEN + 60 THEN - COUNT( * ) END * 16 * + + 27 + - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-6495
SELECT ALL - 70 * - ( + + 60 ) * CASE - + COUNT ( * ) WHEN + 60 THEN - COUNT ( * ) END * 16 * + + 27 + - 41
----
NULL

query I rowsort
SELECT DISTINCT + 27 * 17 + + 96 AS col2
----
555

onlyif mysql # DIV for integer division: 
query I rowsort label-6497
SELECT ALL 7 * 36 DIV ( + - 71 ) + ( + + 43 ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-6497
SELECT ALL 7 * 36 / ( + - 71 ) + ( + + 43 ) AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6498
SELECT MIN( + 32 ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-6498
SELECT MIN ( + 32 ) AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6499
SELECT ALL 13 * + - COUNT( * ) + - - 92 + - 37
----
42

skipif mysql # not compatible
query I rowsort label-6499
SELECT ALL 13 * + - COUNT ( * ) + - - 92 + - 37
----
42

query I rowsort
SELECT + 14 * - 82 AS col2
----
-1148

query I rowsort
SELECT ALL 25 * + 56 * - 84 AS col1
----
-117600

onlyif mysql # aggregate syntax: 
query I rowsort label-6502
SELECT MIN( - 1 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6502
SELECT MIN ( - 1 ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6503
SELECT + 66 DIV 56 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6503
SELECT + 66 / 56 AS col0
----
1

query I rowsort
SELECT ALL 72 - - CASE + 51 WHEN - 13 * + 11 * 77 THEN NULL ELSE - 7 END
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6505
SELECT + 78 * - 61 * COUNT( * )
----
-4758

skipif mysql # not compatible
query I rowsort label-6505
SELECT + 78 * - 61 * COUNT ( * )
----
-4758

query I rowsort
SELECT + 84 * + 92 AS col2
----
7728

query I rowsort
SELECT ALL 66 * + 63 AS col2
----
4158

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6508
SELECT + CASE 94 WHEN + - 58 THEN NULL ELSE - ( + - COUNT( * ) ) DIV 74 + 89 END AS col0
----
89

skipif mysql # not compatible
query I rowsort label-6508
SELECT + CASE 94 WHEN + - 58 THEN NULL ELSE - ( + - COUNT ( * ) ) / 74 + 89 END AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6509
SELECT 1 * + - COUNT( ALL ( + - 33 ) ) - 22
----
-23

skipif mysql # not compatible
query I rowsort label-6509
SELECT 1 * + - COUNT ( ALL ( + - 33 ) ) - 22
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6510
SELECT + NULLIF ( 63, + MAX( DISTINCT - 71 ) / - + COALESCE ( 8, + + 74 - - + 48 ) ) * ( - COUNT( * ) ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-6510
SELECT + NULLIF ( 63, + MAX ( DISTINCT - 71 ) / - + COALESCE ( 8, + + 74 - - + 48 ) ) * ( - COUNT ( * ) ) AS col2
----
-63

query I rowsort
SELECT DISTINCT CASE + 54 WHEN 82 THEN + 68 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6512
SELECT ALL COALESCE ( - COUNT( * ), - NULLIF ( 32, - 89 * - 5 + + 31 - AVG ( ALL 60 ) ) * + 75 * COALESCE ( + + SUM( + 6 ), + 42 ) + + 14 * NULLIF ( 63, - COUNT( * ) ) + 85 * - 78 - + 69 )
----
-1

skipif mysql # not compatible
query I rowsort label-6512
SELECT ALL COALESCE ( - COUNT ( * ), - NULLIF ( 32, - 89 * - 5 + + 31 - AVG ( ALL 60 ) ) * + 75 * COALESCE ( + + SUM ( + 6 ), + 42 ) + + 14 * NULLIF ( 63, - COUNT ( * ) ) + 85 * - 78 - + 69 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6513
SELECT - COUNT( * ) + COUNT( * ) * 65 DIV 85
----
-1

skipif mysql # not compatible
query I rowsort label-6513
SELECT - COUNT ( * ) + COUNT ( * ) * 65 / 85
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6514
SELECT - CAST( 33 AS SIGNED ) - - 41 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-6514
SELECT - CAST ( 33 AS INTEGER ) - - 41 AS col2
----
8

query II rowsort
SELECT - 24 * - + 31 + - 8, ( - 26 ) col1
----
736
-26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6516
SELECT - CASE + 17 WHEN - 50 + - - 22 THEN 67 WHEN + 26 THEN + 47 END + + 89, CAST( NULL AS SIGNED ) * - NULLIF ( + CAST( NULLIF ( 83, - 0 / + 73 ) AS SIGNED ), + + 98 * + 54 + - CAST( 0 AS SIGNED ) )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6516
SELECT - CASE + 17 WHEN - 50 + - - 22 THEN 67 WHEN + 26 THEN + 47 END + + 89, CAST ( NULL AS INTEGER ) * - NULLIF ( + CAST ( NULLIF ( 83, - 0 / + 73 ) AS INTEGER ), + + 98 * + 54 + - CAST ( 0 AS INTEGER ) )
----
NULL
NULL

query I rowsort
SELECT DISTINCT - + 88 + + 7 AS col2
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6518
SELECT ALL - CAST( NULL AS SIGNED ) * - CASE + MIN( ( 16 ) ) WHEN - 8 + 44 THEN + MAX( DISTINCT - 60 ) * - 55 WHEN - 78 THEN - + 68 / + ( 81 ) * + - 91 + 13 + + COUNT( * ) + + 5 ELSE - 39 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6518
SELECT ALL - CAST ( NULL AS INTEGER ) * - CASE + MIN ( ( 16 ) ) WHEN - 8 + 44 THEN + MAX ( DISTINCT - 60 ) * - 55 WHEN - 78 THEN - + 68 / + ( 81 ) * + - 91 + 13 + + COUNT ( * ) + + 5 ELSE - 39 END AS col2
----
NULL

query I rowsort
SELECT - 52 / CASE 2 WHEN + + 10 THEN - 51 * - ( - 81 ) ELSE NULL END + - 91 AS col2
----
NULL

query I rowsort
SELECT - + NULLIF ( + - 84, - 11 ) * - + 60
----
-5040

query I rowsort
SELECT ALL + 30 + 24 AS col2
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6522
SELECT ALL + 19 + - CAST( + 50 AS SIGNED )
----
-31

skipif mysql # not compatible
query I rowsort label-6522
SELECT ALL + 19 + - CAST ( + 50 AS INTEGER )
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-6523
SELECT - + 56 DIV - + 6 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-6523
SELECT - + 56 / - + 6 AS col1
----
9

query I rowsort
SELECT - + 39 - 61
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-6525
SELECT - - MIN( ALL + 34 ) - + 36 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-6525
SELECT - - MIN ( ALL + 34 ) - + 36 AS col0
----
-2

query II rowsort
SELECT 78 AS col0, NULLIF ( - 96, + 13 ) AS col1
----
78
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-6527
SELECT ALL + + 84 AS col0, - ( + COUNT( - 45 ) )
----
84
-1

skipif mysql # not compatible
query II rowsort label-6527
SELECT ALL + + 84 AS col0, - ( + COUNT ( - 45 ) )
----
84
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6528
SELECT - CASE + 82 WHEN - + SUM( - 43 ) / ( - + 42 ) * - 60 - - 48 + - ( + - 18 ) + 82 * - 99 THEN NULL WHEN - 11 THEN - + 99 * - CASE - - 47 WHEN - + AVG ( ALL - 71 ) THEN - + COUNT( ALL - CAST( NULL AS SIGNED ) ) * - + ( - 30 ) / - 6 + + 52 ELSE NULL END END * - + 80 + 67 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6528
SELECT - CASE + 82 WHEN - + SUM ( - 43 ) / ( - + 42 ) * - 60 - - 48 + - ( + - 18 ) + 82 * - 99 THEN NULL WHEN - 11 THEN - + 99 * - CASE - - 47 WHEN - + AVG ( ALL - 71 ) THEN - + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) * - + ( - 30 ) / - 6 + + 52 ELSE NULL END END * - + 80 + 67 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6529
SELECT ALL + COALESCE ( + ( 43 ), - 44 * + 97 ) / - + 41 + - CASE + + COUNT( * ) WHEN COUNT( * ) * - 0 THEN - COUNT( ALL + - 55 ) WHEN 38 / - CASE + 91 WHEN ( - 71 ) THEN 11 ELSE + NULLIF ( - + 82, - 56 ) * + COUNT( 57 ) END THEN NULL WHEN - CASE - 71 WHEN - + 43 * - 2 - 68 * 22 THEN COUNT( * ) ELSE + + 73 END * + 65 / + 24 + + 71 + + - COUNT( * ) * 66 THEN NULL ELSE NULL END / - COUNT( 0 ) * 26 * 88 + CASE + 46 WHEN + - 28 THEN NULL ELSE + 74 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6529
SELECT ALL + COALESCE ( + ( 43 ), - 44 * + 97 ) / - + 41 + - CASE + + COUNT ( * ) WHEN COUNT ( * ) * - 0 THEN - COUNT ( ALL + - 55 ) WHEN 38 / - CASE + 91 WHEN ( - 71 ) THEN 11 ELSE + NULLIF ( - + 82, - 56 ) * + COUNT ( 57 ) END THEN NULL WHEN - CASE - 71 WHEN - + 43 * - 2 - 68 * 22 THEN COUNT ( * ) ELSE + + 73 END * + 65 / + 24 + + 71 + + - COUNT ( * ) * 66 THEN NULL ELSE NULL END / - COUNT ( 0 ) * 26 * 88 + CASE + 46 WHEN + - 28 THEN NULL ELSE + 74 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6530
SELECT DISTINCT + 73 DIV + - 65 + + 51 + + NULLIF ( 57, + COUNT( * ) ) - + - 75 * + 13 * 19 + + 74 * + 88 * + 87 + - + COUNT( * ) + + - COUNT( * )
----
585174

skipif mysql # not compatible
query I rowsort label-6530
SELECT DISTINCT + 73 / + - 65 + + 51 + + NULLIF ( 57, + COUNT ( * ) ) - + - 75 * + 13 * 19 + + 74 * + 88 * + 87 + - + COUNT ( * ) + + - COUNT ( * )
----
585174

query II rowsort
SELECT ALL + - 51, - 11 AS col0
----
-51
-11

query I rowsort
SELECT - - ( + 58 ) - - - 94
----
-36

query II rowsort
SELECT + 90 - - + 10, 72 col2
----
100
72

query I rowsort
SELECT - 61 + 24 AS col1
----
-37

query II rowsort
SELECT ALL + 6 AS col2, - 81 AS col1
----
6
-81

query I rowsort
SELECT - 54 + 80 + - + 24 * - 57 + + + 22 AS col2
----
1416

query I rowsort
SELECT + 60 * - 17 * 60 AS col1
----
-61200

query I rowsort
SELECT NULLIF ( 18, + 30 ) AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6539
SELECT - COUNT( * ) + - - ( + 59 ) col1
----
58

skipif mysql # not compatible
query I rowsort label-6539
SELECT - COUNT ( * ) + - - ( + 59 ) col1
----
58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6540
SELECT 5 * - 29 * - + 39 / 96 + - CAST( NULL AS DECIMAL ) + ( + 22 ) * 72 - 80 * + MAX( - - 68 ) * 80 + 78 + - 2 / + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-6540
SELECT 5 * - 29 * - + 39 / 96 + - CAST ( NULL AS REAL ) + ( + 22 ) * 72 - 80 * + MAX ( - - 68 ) * 80 + 78 + - 2 / + 32
----
NULL

query I rowsort
SELECT + 24 * - + 61
----
-1464

onlyif mysql # DIV for integer division: 
query II rowsort label-6542
SELECT ALL + 5, - ( + 48 ) DIV - + 53 AS col0
----
5
0

skipif mysql # not compatible
query II rowsort label-6542
SELECT ALL + 5, - ( + 48 ) / - + 53 AS col0
----
5
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6543
SELECT ALL + 8 AS col1, - CAST( NULL AS SIGNED ) / 27 / 49 * - - 31 AS col2
----
8
NULL

skipif mysql # not compatible
query II rowsort label-6543
SELECT ALL + 8 AS col1, - CAST ( NULL AS INTEGER ) / 27 / 49 * - - 31 AS col2
----
8
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6544
SELECT + ( MAX( ALL + + 33 ) ) * CASE 25 WHEN + 46 THEN NULL ELSE - + 26 * + - 90 DIV + COUNT( ALL - 72 ) DIV COUNT( * ) END AS col2
----
77220

skipif mysql # not compatible
query I rowsort label-6544
SELECT + ( MAX ( ALL + + 33 ) ) * CASE 25 WHEN + 46 THEN NULL ELSE - + 26 * + - 90 / + COUNT ( ALL - 72 ) / COUNT ( * ) END AS col2
----
77220

onlyif mysql # DIV for integer division: 
query I rowsort label-6545
SELECT ALL 82 DIV + 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6545
SELECT ALL 82 / + 91 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6546
SELECT - 88 / + COALESCE ( - 72, + 58 ) * + - SUM( ALL + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6546
SELECT - 88 / + COALESCE ( - 72, + 58 ) * + - SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6547
SELECT + SUM( DISTINCT - 39 ) * COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-6547
SELECT + SUM ( DISTINCT - 39 ) * COUNT ( * )
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6548
SELECT - CASE - + 52 WHEN + - 96 / - CAST( NULL AS SIGNED ) / - MAX( - ( 99 ) ) + 0 - 75 + + - 89 THEN + + 38 ELSE + + 61 * 35 END
----
-2135

skipif mysql # not compatible
query I rowsort label-6548
SELECT - CASE - + 52 WHEN + - 96 / - CAST ( NULL AS INTEGER ) / - MAX ( - ( 99 ) ) + 0 - 75 + + - 89 THEN + + 38 ELSE + + 61 * 35 END
----
-2135

onlyif mysql # aggregate syntax: 
query I rowsort label-6549
SELECT + ( + + COUNT( * ) ) + - - COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-6549
SELECT + ( + + COUNT ( * ) ) + - - COUNT ( * ) AS col1
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6550
SELECT + 9 + + 93 DIV + MAX( DISTINCT 89 )
----
10

skipif mysql # not compatible
query I rowsort label-6550
SELECT + 9 + + 93 / + MAX ( DISTINCT 89 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6551
SELECT DISTINCT - COUNT( DISTINCT - 59 )
----
-1

skipif mysql # not compatible
query I rowsort label-6551
SELECT DISTINCT - COUNT ( DISTINCT - 59 )
----
-1

query II rowsort
SELECT ALL 80 AS col0, - 85 AS col2
----
80
-85

query I rowsort
SELECT DISTINCT - + ( + - 18 ) + 65 AS col2
----
83

query II rowsort
SELECT DISTINCT 10 + 57 + - 48 * - 10 * + 63 + + - 33 AS col0, 2 * - 3 AS col2
----
30274
-6

onlyif mysql # aggregate syntax: 
query III rowsort label-6555
SELECT ALL - - COALESCE ( + 23, + 30 ) + + 9 AS col2, NULLIF ( 58, - - COUNT( * ) ) AS col0, - + 9 + - 15
----
32
58
-24

skipif mysql # not compatible
query III rowsort label-6555
SELECT ALL - - COALESCE ( + 23, + 30 ) + + 9 AS col2, NULLIF ( 58, - - COUNT ( * ) ) AS col0, - + 9 + - 15
----
32
58
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6556
SELECT - + CASE - 51 WHEN - 38 THEN NULL WHEN + 64 + - + COUNT( * ) THEN + CAST( - 92 AS SIGNED ) WHEN - 53 * - - 88 * + 76 THEN + - 23 END + - 3 * + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-6556
SELECT - + CASE - 51 WHEN - 38 THEN NULL WHEN + 64 + - + COUNT ( * ) THEN + CAST ( - 92 AS INTEGER ) WHEN - 53 * - - 88 * + 76 THEN + - 23 END + - 3 * + 36
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6557
SELECT ALL 28 + - 6 - ( + 1 ) DIV + 60 + - - 43 + + 27 * + 59 AS col0
----
1658

skipif mysql # not compatible
query I rowsort label-6557
SELECT ALL 28 + - 6 - ( + 1 ) / + 60 + - - 43 + + 27 * + 59 AS col0
----
1658

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6558
SELECT ALL + 47, + 96 * COALESCE ( + 65, - 7 ) * + 26 * - CAST( - - 53 AS SIGNED ) AS col1
----
47
-8598720

skipif mysql # not compatible
query II rowsort label-6558
SELECT ALL + 47, + 96 * COALESCE ( + 65, - 7 ) * + 26 * - CAST ( - - 53 AS INTEGER ) AS col1
----
47
-8598720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6559
SELECT - - 79 + 65 - + + 74 * - CAST( 55 AS SIGNED ) AS col0
----
4214

skipif mysql # not compatible
query I rowsort label-6559
SELECT - - 79 + 65 - + + 74 * - CAST ( 55 AS INTEGER ) AS col0
----
4214

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6560
SELECT + 11 + CAST( + - 50 AS SIGNED ) DIV - - 3 + 93 * - 92 + - + 39 - 58
----
-8658

skipif mysql # not compatible
query I rowsort label-6560
SELECT + 11 + CAST ( + - 50 AS INTEGER ) / - - 3 + 93 * - 92 + - + 39 - 58
----
-8658

query I rowsort
SELECT - + ( - + 44 ) col2
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-6562
SELECT ALL - - COALESCE ( - 30, 9 + 66 + - 84 ) + + - COUNT( * ) AS col1, ( - COUNT( DISTINCT + + 92 ) ) * - 92 + + - COUNT( * ) AS col0
----
-31
91

skipif mysql # not compatible
query II rowsort label-6562
SELECT ALL - - COALESCE ( - 30, 9 + 66 + - 84 ) + + - COUNT ( * ) AS col1, ( - COUNT ( DISTINCT + + 92 ) ) * - 92 + + - COUNT ( * ) AS col0
----
-31
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6563
SELECT - ( CASE + - COUNT( * ) WHEN MAX( ALL + 7 ) THEN + 69 END ) + - COUNT( * ) * - MAX( DISTINCT + 2 ) - - 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6563
SELECT - ( CASE + - COUNT ( * ) WHEN MAX ( ALL + 7 ) THEN + 69 END ) + - COUNT ( * ) * - MAX ( DISTINCT + 2 ) - - 57 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6564
SELECT 11 - + COUNT( * ) + + + 62 DIV 16
----
13

skipif mysql # not compatible
query I rowsort label-6564
SELECT 11 - + COUNT ( * ) + + + 62 / 16
----
13

query II rowsort
SELECT - 26, + ( - 52 ) + - 46 AS col2
----
-26
-98

query II rowsort
SELECT - 38 + - 62 col2, 4 AS col2
----
-100
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6567
SELECT DISTINCT + CAST( - - 59 AS SIGNED ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-6567
SELECT DISTINCT + CAST ( - - 59 AS INTEGER ) AS col1
----
59

query I rowsort
SELECT 91 * - 15 * + - 83 AS col0
----
113295

query I rowsort
SELECT ALL - 72 - - 36
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6570
SELECT 35 * + - CAST( - 1 AS SIGNED ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-6570
SELECT 35 * + - CAST ( - 1 AS INTEGER ) AS col2
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-6571
SELECT 80 DIV + 70 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6571
SELECT 80 / + 70 AS col0
----
1

query II rowsort
SELECT DISTINCT - NULLIF ( - 98, 62 ) AS col2, 31 + - 68 * + + 16 AS col0
----
98
-1057

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6573
SELECT ALL 12 * - 34 col1, - CAST( NULL AS SIGNED )
----
-408
NULL

skipif mysql # not compatible
query II rowsort label-6573
SELECT ALL 12 * - 34 col1, - CAST ( NULL AS INTEGER )
----
-408
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6574
SELECT 86 + 80 + - + CAST( NULL AS DECIMAL ) + ( - 85 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6574
SELECT 86 + 80 + - + CAST ( NULL AS REAL ) + ( - 85 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6575
SELECT ALL - ( COUNT( * ) ) AS col1, - ( 46 ) AS col2
----
-1
-46

skipif mysql # not compatible
query II rowsort label-6575
SELECT ALL - ( COUNT ( * ) ) AS col1, - ( 46 ) AS col2
----
-1
-46

query I rowsort
SELECT DISTINCT - 47 * - - ( + - 25 ) * + 67
----
78725

onlyif mysql # aggregate syntax: 
query II rowsort label-6577
SELECT 5 * + 21, MIN( ALL - 66 ) AS col0
----
105
-66

skipif mysql # not compatible
query II rowsort label-6577
SELECT 5 * + 21, MIN ( ALL - 66 ) AS col0
----
105
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT ALL - COUNT( * ) + COUNT( * ) * 77
----
76

skipif mysql # not compatible
query I rowsort label-6578
SELECT ALL - COUNT ( * ) + COUNT ( * ) * 77
----
76

query I rowsort
SELECT 76 * + + 87 * - 40
----
-264480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6580
SELECT + 22 * - 37 - - AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6580
SELECT + 22 * - 37 - - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) col1
----
NULL

query I rowsort
SELECT 88 - - 37 col2
----
125

onlyif mysql # aggregate syntax: 
query II rowsort label-6582
SELECT ALL + MIN( DISTINCT - 38 ) + 77 AS col2, - 91
----
39
-91

skipif mysql # not compatible
query II rowsort label-6582
SELECT ALL + MIN ( DISTINCT - 38 ) + 77 AS col2, - 91
----
39
-91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6583
SELECT - 29 + + + CASE + 87 WHEN 63 THEN ( CAST( 68 AS DECIMAL ) ) WHEN + + ( + 32 ) + + 21 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6583
SELECT - 29 + + + CASE + 87 WHEN 63 THEN ( CAST ( 68 AS REAL ) ) WHEN + + ( + 32 ) + + 21 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6584
SELECT ALL 73 DIV + 94 + + - 37 AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-6584
SELECT ALL 73 / + 94 + + - 37 AS col1
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6585
SELECT 57 + + + 80 - - CASE 43 WHEN + CAST( NULL AS SIGNED ) + - 99 THEN CASE - ( - 6 ) WHEN + + 55 * 97 THEN NULL WHEN - 5 - + 32 + + 84 * - 61 THEN ( - + 75 ) ELSE NULL END ELSE NULL END / - 40 * + 28 + 34 + + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-6585
SELECT 57 + + + 80 - - CASE 43 WHEN + CAST ( NULL AS INTEGER ) + - 99 THEN CASE - ( - 6 ) WHEN + + 55 * 97 THEN NULL WHEN - 5 - + 32 + + 84 * - 61 THEN ( - + 75 ) ELSE NULL END ELSE NULL END / - 40 * + 28 + 34 + + 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6586
SELECT + COUNT( * ) - - 67 + 23 * + - 50
----
-1082

skipif mysql # not compatible
query I rowsort label-6586
SELECT + COUNT ( * ) - - 67 + 23 * + - 50
----
-1082

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6588
SELECT DISTINCT + 61 DIV 21 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-6588
SELECT DISTINCT + 61 / 21 AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6589
SELECT ALL COUNT( * ) * - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6589
SELECT ALL COUNT ( * ) * - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6590
SELECT + CASE - 96 WHEN + + 24 THEN - MAX( DISTINCT 48 ) * - + 58 * 82 * 99 + 14 + - - AVG ( ALL 87 ) / - 51 END + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-6590
SELECT + CASE - 96 WHEN + + 24 THEN - MAX ( DISTINCT 48 ) * - + 58 * 82 * 99 + 14 + - - AVG ( ALL 87 ) / - 51 END + 90
----
NULL

query II rowsort
SELECT ALL ( 58 ), 94 AS col0
----
58
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6592
SELECT 5 * + + 81 * - 70 * CAST( NULL AS SIGNED ) + - + 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6592
SELECT 5 * + + 81 * - 70 * CAST ( NULL AS INTEGER ) + - + 91 AS col1
----
NULL

query I rowsort
SELECT 85 - - 6 AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6594
SELECT ALL - NULLIF ( - COUNT( * ), + + 72 + - + 13 * - - 41 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6594
SELECT ALL - NULLIF ( - COUNT ( * ), + + 72 + - + 13 * - - 41 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6595
SELECT CAST( NULL AS SIGNED ) - NULLIF ( - 83, + - 55 / - - COUNT( * ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6595
SELECT CAST ( NULL AS INTEGER ) - NULLIF ( - 83, + - 55 / - - COUNT ( * ) ) col1
----
NULL

query I rowsort
SELECT ALL + 32 * + 4 * 69 * - + 92 AS col0
----
-812544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6597
SELECT CASE - - AVG ( ALL - 2 ) WHEN - 16 * + 34 THEN - + COUNT( * ) * CAST( - MIN( - CAST( - - 92 AS SIGNED ) ) AS SIGNED ) + - 67 + + 43 + 20 / - 49 * - 13 END * - - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-6597
SELECT CASE - - AVG ( ALL - 2 ) WHEN - 16 * + 34 THEN - + COUNT ( * ) * CAST ( - MIN ( - CAST ( - - 92 AS INTEGER ) ) AS INTEGER ) + - 67 + + 43 + 20 / - 49 * - 13 END * - - 73
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6598
SELECT 42 DIV - 51 + 36
----
36

skipif mysql # not compatible
query I rowsort label-6598
SELECT 42 / - 51 + 36
----
36

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

skipif mysql # not compatible
query I rowsort label-6599
SELECT ALL + COUNT ( * ) * + + 81 AS col2
----
81

query I rowsort
SELECT 79 - 77
----
2

query I rowsort
SELECT ALL 7 * 63
----
441

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6602
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) + AVG ( ALL 1 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6602
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) + AVG ( ALL 1 ) AS col2
----
NULL

query I rowsort
SELECT 89 - 81
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-6604
SELECT DISTINCT + 15 * + - COUNT( * ) * - 5 col2, + 86 AS col0
----
75
86

skipif mysql # not compatible
query II rowsort label-6604
SELECT DISTINCT + 15 * + - COUNT ( * ) * - 5 col2, + 86 AS col0
----
75
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6605
SELECT + SUM( DISTINCT + 34 ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-6605
SELECT + SUM ( DISTINCT + 34 ) AS col2
----
34

query I rowsort
SELECT 79 + NULLIF ( + + 55, - + 16 + - + 10 ) AS col2
----
134

onlyif mysql # aggregate syntax: 
query II rowsort label-6607
SELECT + 30, MIN( 74 ) AS col1
----
30
74

skipif mysql # not compatible
query II rowsort label-6607
SELECT + 30, MIN ( 74 ) AS col1
----
30
74

query I rowsort
SELECT 85 * + 33 * 22 AS col1
----
61710

onlyif mysql # aggregate syntax: 
query I rowsort label-6609
SELECT ALL - ( - + CASE + 36 WHEN + 34 + - MAX( DISTINCT - 37 ) + + - NULLIF ( - + ( - 35 ), 25 ) THEN NULL WHEN + 3 THEN 36 WHEN + 76 THEN - COUNT( * ) * + COALESCE ( + - ( - 63 ), + - 72 * + 75, + - 40 - - 19 ) * + + 60 + + 85 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6609
SELECT ALL - ( - + CASE + 36 WHEN + 34 + - MAX ( DISTINCT - 37 ) + + - NULLIF ( - + ( - 35 ), 25 ) THEN NULL WHEN + 3 THEN 36 WHEN + 76 THEN - COUNT ( * ) * + COALESCE ( + - ( - 63 ), + - 72 * + 75, + - 40 - - 19 ) * + + 60 + + 85 END )
----
NULL

query II rowsort
SELECT 17 AS col1, 17
----
17
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6611
SELECT ALL + 98 + CAST( NULL AS SIGNED ) + 50 / 59
----
NULL

skipif mysql # not compatible
query I rowsort label-6611
SELECT ALL + 98 + CAST ( NULL AS INTEGER ) + 50 / 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6612
SELECT ALL - 43 + COUNT( * ) * - ( + 36 ) col1
----
-79

skipif mysql # not compatible
query I rowsort label-6612
SELECT ALL - 43 + COUNT ( * ) * - ( + 36 ) col1
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6613
SELECT ALL - 98 + - 78 + - ( - CASE 71 WHEN - - COUNT( * ) THEN NULL WHEN - 27 THEN - + COUNT( * ) * MIN( DISTINCT CAST( NULL AS SIGNED ) ) * + 73 - + + COUNT( * ) - 98 WHEN + 54 THEN + + 10 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6613
SELECT ALL - 98 + - 78 + - ( - CASE 71 WHEN - - COUNT ( * ) THEN NULL WHEN - 27 THEN - + COUNT ( * ) * MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) * + 73 - + + COUNT ( * ) - 98 WHEN + 54 THEN + + 10 END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6614
SELECT ALL + 34 + + + 15 * - + COALESCE ( + COUNT( * ), + 95 )
----
19

skipif mysql # not compatible
query I rowsort label-6614
SELECT ALL + 34 + + + 15 * - + COALESCE ( + COUNT ( * ), + 95 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6615
SELECT + MAX( - 88 ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-6615
SELECT + MAX ( - 88 ) AS col1
----
-88

query I rowsort
SELECT 41 + + 24
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6617
SELECT DISTINCT NULLIF ( - MIN( + 66 ), - - 94 * + MIN( ALL 25 ) * COUNT( * ) * + 82 * + 9 )
----
-66

skipif mysql # not compatible
query I rowsort label-6617
SELECT DISTINCT NULLIF ( - MIN ( + 66 ), - - 94 * + MIN ( ALL 25 ) * COUNT ( * ) * + 82 * + 9 )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6618
SELECT ALL + 32 + - + 34 + + NULLIF ( + + 12, + ( + + NULLIF ( - 26, - - COUNT( - 86 ) * - + CASE 87 WHEN 2 * + 44 THEN - 50 END * - COUNT( * ) ) ) * - 31 * - 64 - - 33 + - - COUNT( * ) * + - 94 - + + 38 / 95 + 66 ) * - 56 AS col0
----
-674

skipif mysql # not compatible
query I rowsort label-6618
SELECT ALL + 32 + - + 34 + + NULLIF ( + + 12, + ( + + NULLIF ( - 26, - - COUNT ( - 86 ) * - + CASE 87 WHEN 2 * + 44 THEN - 50 END * - COUNT ( * ) ) ) * - 31 * - 64 - - 33 + - - COUNT ( * ) * + - 94 - + + 38 / 95 + 66 ) * - 56 AS col0
----
-674

onlyif mysql # aggregate syntax: 
query I rowsort label-6619
SELECT - - COUNT( DISTINCT + 53 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-6619
SELECT - - COUNT ( DISTINCT + 53 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6620
SELECT - + COALESCE ( + 16, - 72 * COUNT( * ) + + COUNT( * ), - CASE WHEN NOT NULL >= NULL THEN - 79 END * 66 + - 80 ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-6620
SELECT - + COALESCE ( + 16, - 72 * COUNT ( * ) + + COUNT ( * ), - CASE WHEN NOT NULL >= NULL THEN - 79 END * 66 + - 80 ) AS col1
----
-16

query I rowsort
SELECT - - 52 + + - 21 AS col1
----
31

query I rowsort
SELECT - 98 * + - 43 col2
----
4214

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6623
SELECT + - CASE - - 92 WHEN 33 THEN - SUM( - - 0 ) WHEN 2 THEN - 45 WHEN + - 55 / 36 + - - ( - + 15 ) THEN NULL END * - ( CAST( NULL AS SIGNED ) ) + COUNT( * ) / 30 * - - COALESCE ( + ( - + 97 ), - 63 ) + - + 54 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6623
SELECT + - CASE - - 92 WHEN 33 THEN - SUM ( - - 0 ) WHEN 2 THEN - 45 WHEN + - 55 / 36 + - - ( - + 15 ) THEN NULL END * - ( CAST ( NULL AS INTEGER ) ) + COUNT ( * ) / 30 * - - COALESCE ( + ( - + 97 ), - 63 ) + - + 54 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6624
SELECT - + 77 + + 63 * + + 53 * 94 * MIN( + 47 ) AS col2
----
14751625

skipif mysql # not compatible
query I rowsort label-6624
SELECT - + 77 + + 63 * + + 53 * 94 * MIN ( + 47 ) AS col2
----
14751625

query II rowsort
SELECT ALL 0 AS col1, - 35
----
0
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6626
SELECT - - 2 + - - 92 + 46 * 54 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6626
SELECT - - 2 + - - 92 + 46 * 54 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6627
SELECT DISTINCT + COALESCE ( + 64, + COUNT( * ) * - 59 + - 1 - - 64 * - 90 + - + 12 + - 33 * + - 91 DIV + + 36 * + COUNT( ALL 48 ) ) - - + 46 AS col2
----
110

skipif mysql # not compatible
query I rowsort label-6627
SELECT DISTINCT + COALESCE ( + 64, + COUNT ( * ) * - 59 + - 1 - - 64 * - 90 + - + 12 + - 33 * + - 91 / + + 36 * + COUNT ( ALL 48 ) ) - - + 46 AS col2
----
110

query II rowsort
SELECT ALL - 33, 78 + + + 56 AS col2
----
-33
134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6629
SELECT + 56 + + 94 + - COALESCE ( - COUNT( * ), + + 45, COALESCE ( 36, - MAX( + 99 ) ) DIV + 5, - 27 + + - 63 ) AS col0
----
151

skipif mysql # not compatible
query I rowsort label-6629
SELECT + 56 + + 94 + - COALESCE ( - COUNT ( * ), + + 45, COALESCE ( 36, - MAX ( + 99 ) ) / + 5, - 27 + + - 63 ) AS col0
----
151

query II rowsort
SELECT 66 AS col0, 61
----
66
61

query II rowsort
SELECT - 0 * + 33 * + 95 AS col0, + 37
----
0
37

onlyif mysql # DIV for integer division: 
query I rowsort label-6632
SELECT + ( 54 ) + + 28 DIV 67 AS col2
----
54

skipif mysql # not compatible
query I rowsort label-6632
SELECT + ( 54 ) + + 28 / 67 AS col2
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6633
SELECT + - CAST( NULL AS SIGNED ) / 6 * + ( - 28 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6633
SELECT + - CAST ( NULL AS INTEGER ) / 6 * + ( - 28 ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query III rowsort label-6634
SELECT + - 86 + 68 DIV + 30 AS col2, 98 AS col1, - 11 AS col2
----
-84
98
-11

skipif mysql # not compatible
query III rowsort label-6634
SELECT + - 86 + 68 / + 30 AS col2, 98 AS col1, - 11 AS col2
----
-84
98
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6635
SELECT - + 75 + - - 35 + 14 * - SUM( ALL + - 38 ) AS col1
----
492

skipif mysql # not compatible
query I rowsort label-6635
SELECT - + 75 + - - 35 + 14 * - SUM ( ALL + - 38 ) AS col1
----
492

onlyif mysql # aggregate syntax: 
query I rowsort label-6636
SELECT + + MIN( + 63 ) - + 26
----
37

skipif mysql # not compatible
query I rowsort label-6636
SELECT + + MIN ( + 63 ) - + 26
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6637
SELECT + CAST( NULL AS SIGNED ) / + + 12 / 55
----
NULL

skipif mysql # not compatible
query I rowsort label-6637
SELECT + CAST ( NULL AS INTEGER ) / + + 12 / 55
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( 16, - 90 )
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-6639
SELECT - SUM( + - 45 ), + 50 AS col1
----
45
50

skipif mysql # not compatible
query II rowsort label-6639
SELECT - SUM ( + - 45 ), + 50 AS col1
----
45
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT + COUNT( * ) * - 30 * + 27 AS col1
----
-810

skipif mysql # not compatible
query I rowsort label-6640
SELECT + COUNT ( * ) * - 30 * + 27 AS col1
----
-810

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6642
SELECT 37 * + COALESCE ( + 49, + 29, - COALESCE ( + - 49, ( - 39 ), - 74 + - - NULLIF ( - + 67, + NULLIF ( 85, + - 49 * NULLIF ( CAST( - 38 AS SIGNED ), 71 ) ) + + 65 + + 73 + - - 52 * + 48 ) + + 58 ) ) + 43 AS col1
----
1856

skipif mysql # not compatible
query I rowsort label-6642
SELECT 37 * + COALESCE ( + 49, + 29, - COALESCE ( + - 49, ( - 39 ), - 74 + - - NULLIF ( - + 67, + NULLIF ( 85, + - 49 * NULLIF ( CAST ( - 38 AS INTEGER ), 71 ) ) + + 65 + + 73 + - - 52 * + 48 ) + + 58 ) ) + 43 AS col1
----
1856

onlyif mysql # aggregate syntax: 
query I rowsort label-6643
SELECT ALL COUNT( * ) * - 36 + - MAX( DISTINCT ( + + 12 ) ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-6643
SELECT ALL COUNT ( * ) * - 36 + - MAX ( DISTINCT ( + + 12 ) ) AS col1
----
-48

query I rowsort
SELECT ( - + ( + 85 ) ) AS col1
----
-85

query I rowsort
SELECT + ( - - 6 ) * - 91 + - 96 + - 71 AS col0
----
-713

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6646
SELECT ALL CASE + 52 WHEN - 18 + + MAX( - 44 ) THEN NULL ELSE - COUNT( * ) END * - 11 * + + 20 + 38 AS col0, CAST( - 45 AS SIGNED ) AS col2
----
258
-45

skipif mysql # not compatible
query II rowsort label-6646
SELECT ALL CASE + 52 WHEN - 18 + + MAX ( - 44 ) THEN NULL ELSE - COUNT ( * ) END * - 11 * + + 20 + 38 AS col0, CAST ( - 45 AS INTEGER ) AS col2
----
258
-45

query I rowsort
SELECT - 30 * 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6648
SELECT + ( + 33 ) * - NULLIF ( - 63, - + 10 + - 39 ) - - 38 AS col2, COALESCE ( + COUNT( * ), + 45 ) + MIN( DISTINCT - 45 ) * + 25 AS col1
----
2117
-1124

skipif mysql # not compatible
query II rowsort label-6648
SELECT + ( + 33 ) * - NULLIF ( - 63, - + 10 + - 39 ) - - 38 AS col2, COALESCE ( + COUNT ( * ), + 45 ) + MIN ( DISTINCT - 45 ) * + 25 AS col1
----
2117
-1124

onlyif mysql # aggregate syntax: 
query I rowsort label-6649
SELECT DISTINCT 26 * + COUNT( * ) + + COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-6649
SELECT DISTINCT 26 * + COUNT ( * ) + + COUNT ( * )
----
27

query I rowsort
SELECT + ( - 97 ) col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6651
SELECT ALL 1 * + 49 + - 49 + + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6651
SELECT ALL 1 * + 49 + - 49 + + COUNT ( * ) AS col0
----
1

query I rowsort
SELECT ALL + 98 * - 69 + 34 AS col2
----
-6728

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6653
SELECT + COALESCE ( - 35, - + COUNT( ALL NULLIF ( + 54, - + 79 ) ), + + COUNT( * ), 36 DIV - 40 ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-6653
SELECT + COALESCE ( - 35, - + COUNT ( ALL NULLIF ( + 54, - + 79 ) ), + + COUNT ( * ), 36 / - 40 ) AS col1
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-6654
SELECT - 16 DIV - - 15 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6654
SELECT - 16 / - - 15 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6655
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) * - COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6655
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) * - COUNT ( * ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6656
SELECT ALL - - 40 * + 15 - + CAST( + + ( - 90 ) AS SIGNED ) col1
----
690

skipif mysql # not compatible
query I rowsort label-6656
SELECT ALL - - 40 * + 15 - + CAST ( + + ( - 90 ) AS INTEGER ) col1
----
690

onlyif mysql # aggregate syntax: 
query I rowsort label-6657
SELECT MAX( - - 60 ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-6657
SELECT MAX ( - - 60 ) AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6658
SELECT + 29 * 21 * 48 - + 16 + + COUNT( * ) AS col1
----
29217

skipif mysql # not compatible
query I rowsort label-6658
SELECT + 29 * 21 * 48 - + 16 + + COUNT ( * ) AS col1
----
29217

query I rowsort
SELECT - + 17 * - 63 AS col0
----
1071

query I rowsort
SELECT DISTINCT - 59 * - 57
----
3363

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6661
SELECT DISTINCT - NULLIF ( + ( - 32 ), + + CASE + + ( MAX( 58 ) ) WHEN + 63 THEN NULL ELSE - ( + CAST( - 76 AS SIGNED ) ) + + - CASE + - 4 WHEN 50 THEN NULL ELSE - COUNT( * ) END + + + 12 * + 81 END * 62 + + ( MIN( ALL + 51 ) ) )
----
32

skipif mysql # not compatible
query I rowsort label-6661
SELECT DISTINCT - NULLIF ( + ( - 32 ), + + CASE + + ( MAX ( 58 ) ) WHEN + 63 THEN NULL ELSE - ( + CAST ( - 76 AS INTEGER ) ) + + - CASE + - 4 WHEN 50 THEN NULL ELSE - COUNT ( * ) END + + + 12 * + 81 END * 62 + + ( MIN ( ALL + 51 ) ) )
----
32

query I rowsort
SELECT DISTINCT + - CASE - 97 WHEN 38 THEN 30 ELSE - + 40 END * 14 col1
----
560

onlyif mysql # aggregate syntax: 
query I rowsort label-6663
SELECT - COUNT( * ) * - COALESCE ( + - COALESCE ( ( + 36 ), + + 16 - 59 * 58 ), 35 * + 65 + + - 46 )
----
-36

skipif mysql # not compatible
query I rowsort label-6663
SELECT - COUNT ( * ) * - COALESCE ( + - COALESCE ( ( + 36 ), + + 16 - 59 * 58 ), 35 * + 65 + + - 46 )
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6664
SELECT ALL - CASE - 22 WHEN - + NULLIF ( - COUNT( * ), + CAST( NULL AS SIGNED ) - 60 ) THEN 49 * 53 / COUNT( * ) + 40 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6664
SELECT ALL - CASE - 22 WHEN - + NULLIF ( - COUNT ( * ), + CAST ( NULL AS INTEGER ) - 60 ) THEN 49 * 53 / COUNT ( * ) + 40 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6665
SELECT - + COUNT( * ) * MAX( ALL + 23 ) - CASE - AVG ( + 51 ) WHEN 64 + - 62 THEN NULL ELSE + - 74 + + 77 END * + NULLIF ( 75, 16 ) * - ( 83 )
----
18652

skipif mysql # not compatible
query I rowsort label-6665
SELECT - + COUNT ( * ) * MAX ( ALL + 23 ) - CASE - AVG ( + 51 ) WHEN 64 + - 62 THEN NULL ELSE + - 74 + + 77 END * + NULLIF ( 75, 16 ) * - ( 83 )
----
18652

query I rowsort
SELECT - ( 84 ) * - 27
----
2268

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6667
SELECT ALL COUNT( * ) + + 78 + 33 DIV + 35
----
79

skipif mysql # not compatible
query I rowsort label-6667
SELECT ALL COUNT ( * ) + + 78 + 33 / + 35
----
79

query I rowsort
SELECT DISTINCT + 33 * + - NULLIF ( 71, - 45 )
----
-2343

query I rowsort
SELECT DISTINCT 55 + CASE - - 85 WHEN 3 - 17 THEN + + 39 END
----
NULL

query I rowsort
SELECT ALL - 15 + - 94 AS col0
----
-109

query I rowsort
SELECT + 78 * 93 * - 63 * - - 25
----
-11425050

onlyif mysql # aggregate syntax: 
query I rowsort label-6672
SELECT - COUNT( * ) + + MAX( ALL - - 65 )
----
64

skipif mysql # not compatible
query I rowsort label-6672
SELECT - COUNT ( * ) + + MAX ( ALL - - 65 )
----
64

query I rowsort
SELECT - ( 78 ) col1
----
-78

query I rowsort
SELECT ALL + 42 + + 52
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6675
SELECT - ( COUNT( DISTINCT - 7 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6675
SELECT - ( COUNT ( DISTINCT - 7 ) )
----
-1

query I rowsort
SELECT - 42 + + 46 col2
----
4

query I rowsort
SELECT + 48 * 90
----
4320

query I rowsort
SELECT ALL 54 * - ( 26 ) col2
----
-1404

onlyif mysql # aggregate syntax: 
query I rowsort label-6679
SELECT ALL - 4 / + AVG ( DISTINCT - ( - + 65 ) ) * + + MAX( - CASE 21 WHEN - 73 + + 85 THEN - 53 END ) + + COALESCE ( 62, + 25 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6679
SELECT ALL - 4 / + AVG ( DISTINCT - ( - + 65 ) ) * + + MAX ( - CASE 21 WHEN - 73 + + 85 THEN - 53 END ) + + COALESCE ( 62, + 25 )
----
NULL

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6681
SELECT CAST( NULL AS DECIMAL ), 92 * - CAST( NULL AS DECIMAL ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6681
SELECT CAST ( NULL AS REAL ), 92 * - CAST ( NULL AS REAL ) AS col2
----
NULL
NULL

query I rowsort
SELECT ALL ( - 63 ) - + 92 * 51
----
-4755

onlyif mysql # aggregate syntax: 
query I rowsort label-6683
SELECT COUNT( * ) + 66 col1
----
67

skipif mysql # not compatible
query I rowsort label-6683
SELECT COUNT ( * ) + 66 col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6684
SELECT 17 * 80 + + COUNT( * )
----
1361

skipif mysql # not compatible
query I rowsort label-6684
SELECT 17 * 80 + + COUNT ( * )
----
1361

query I rowsort
SELECT ALL 10 - 71 AS col0
----
-61

query I rowsort
SELECT 29 * 23
----
667

query I rowsort
SELECT ALL - 36 * - 49 AS col2
----
1764

onlyif mysql # aggregate syntax: 
query I rowsort label-6688
SELECT ALL + 81 - MAX( - ( + 39 ) ) AS col2
----
120

skipif mysql # not compatible
query I rowsort label-6688
SELECT ALL + 81 - MAX ( - ( + 39 ) ) AS col2
----
120

query I rowsort
SELECT 19 + - 0 AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6690
SELECT 55 * + CASE 27 WHEN 4 THEN NULL WHEN - 45 THEN + COALESCE ( + COUNT( * ), - 82 * + 48 ) ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6690
SELECT 55 * + CASE 27 WHEN 4 THEN NULL WHEN - 45 THEN + COALESCE ( + COUNT ( * ), - 82 * + 48 ) ELSE NULL END col2
----
NULL

query I rowsort
SELECT ALL 98 * 1 col1
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-6692
SELECT ( + 73 ) + 80 DIV - 20 col2
----
69

skipif mysql # not compatible
query I rowsort label-6692
SELECT ( + 73 ) + 80 / - 20 col2
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-6693
SELECT 74 DIV 57 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6693
SELECT 74 / 57 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6694
SELECT 73 * MAX( DISTINCT - 43 ) + + 65
----
-3074

skipif mysql # not compatible
query I rowsort label-6694
SELECT 73 * MAX ( DISTINCT - 43 ) + + 65
----
-3074

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6695
SELECT CAST( ( - 23 ) AS SIGNED ) + COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-6695
SELECT CAST ( ( - 23 ) AS INTEGER ) + COUNT ( * )
----
-22

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

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

query I rowsort
SELECT 64 + 18 AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6698
SELECT ALL - 73 + MAX( ALL + 24 )
----
-49

skipif mysql # not compatible
query I rowsort label-6698
SELECT ALL - 73 + MAX ( ALL + 24 )
----
-49

query I rowsort
SELECT 70 + - 67 AS col0
----
3

query I rowsort
SELECT ALL 90 + 4
----
94

query I rowsort
SELECT 79 + + 93 AS col0
----
172

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6702
SELECT DISTINCT + 28 + - COALESCE ( 61, + 78 + - 14 * COALESCE ( 1 * + 73 - ( 5 + + MAX( COALESCE ( - 87, 28 + - ( 8 ) ) ) ), 1 * ( + CASE + 35 WHEN 3 THEN - 74 + + 58 WHEN 50 THEN NULL WHEN - COUNT( * ) * - 73 - + 78 THEN NULL END DIV ( 44 ) ), - 35 - + NULLIF ( 91 + - 19, - 37 ) * SUM( DISTINCT 41 DIV - 70 ) ) )
----
-33

skipif mysql # not compatible
query I rowsort label-6702
SELECT DISTINCT + 28 + - COALESCE ( 61, + 78 + - 14 * COALESCE ( 1 * + 73 - ( 5 + + MAX ( COALESCE ( - 87, 28 + - ( 8 ) ) ) ), 1 * ( + CASE + 35 WHEN 3 THEN - 74 + + 58 WHEN 50 THEN NULL WHEN - COUNT ( * ) * - 73 - + 78 THEN NULL END / ( 44 ) ), - 35 - + NULLIF ( 91 + - 19, - 37 ) * SUM ( DISTINCT 41 / - 70 ) ) )
----
-33

query I rowsort
SELECT ALL + 74 + - 8
----
66

query I rowsort
SELECT 98 + ( ( 96 ) ) AS col1
----
194

query I rowsort
SELECT 69 * + 85
----
5865

query I rowsort
SELECT 8 + 82 AS col1
----
90

query I rowsort
SELECT 79 + 21 AS col0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-6708
SELECT COUNT( * ) + + 79 * 50
----
3951

skipif mysql # not compatible
query I rowsort label-6708
SELECT COUNT ( * ) + + 79 * 50
----
3951

query I rowsort
SELECT ALL - 84 * 65 AS col1
----
-5460

onlyif mysql # DIV for integer division: 
query I rowsort label-6710
SELECT 88 DIV 87 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6710
SELECT 88 / 87 AS col0
----
1

query I rowsort
SELECT ALL - 11 + - 30 * 33
----
-1001

query I rowsort
SELECT DISTINCT - 2 * - 60 AS col0
----
120

query I rowsort
SELECT ALL + 11 - - 1 * 17
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6714
SELECT ALL - SUM( ALL 35 ) * + COALESCE ( CASE 18 WHEN - 12 / 97 THEN + 11 END, - CASE MIN( - ( - 77 ) ) WHEN - 91 THEN + COALESCE ( 36, + COUNT( * ) / + 90, 49 + COUNT( * ) * 83 ) / 86 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6714
SELECT ALL - SUM ( ALL 35 ) * + COALESCE ( CASE 18 WHEN - 12 / 97 THEN + 11 END, - CASE MIN ( - ( - 77 ) ) WHEN - 91 THEN + COALESCE ( 36, + COUNT ( * ) / + 90, 49 + COUNT ( * ) * 83 ) / 86 END )
----
NULL

query I rowsort
SELECT 12 * - 16 + + 57
----
-135

query I rowsort
SELECT 85 * 44 AS col0
----
3740

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6717
SELECT - SUM( - 61 ) DIV + COUNT( + 60 + 99 * + 55 ) + 46 AS col0
----
107

skipif mysql # not compatible
query I rowsort label-6717
SELECT - SUM ( - 61 ) / + COUNT ( + 60 + 99 * + 55 ) + 46 AS col0
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-6718
SELECT ALL + COUNT( * ) - + 78 AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-6718
SELECT ALL + COUNT ( * ) - + 78 AS col1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6719
SELECT 33 + + COUNT( * ) * + 6
----
39

skipif mysql # not compatible
query I rowsort label-6719
SELECT 33 + + COUNT ( * ) * + 6
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-6720
SELECT 4 DIV - 80
----
0

skipif mysql # not compatible
query I rowsort label-6720
SELECT 4 / - 80
----
0

query I rowsort
SELECT 39 * + 24
----
936

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6722
SELECT ALL - NULLIF ( + 15, NULLIF ( 33, 84 ) DIV - CAST( - COALESCE ( + 86, 26 DIV - 29 + - CASE - COUNT( * ) WHEN - COUNT( * ) - + 57 THEN NULL WHEN + 12 THEN 32 + - 24 WHEN 28 THEN + AVG ( + ( 69 ) ) END ) AS SIGNED ) ) DIV 52
----
0

skipif mysql # not compatible
query I rowsort label-6722
SELECT ALL - NULLIF ( + 15, NULLIF ( 33, 84 ) / - CAST ( - COALESCE ( + 86, 26 / - 29 + - CASE - COUNT ( * ) WHEN - COUNT ( * ) - + 57 THEN NULL WHEN + 12 THEN 32 + - 24 WHEN 28 THEN + AVG ( + ( 69 ) ) END ) AS INTEGER ) ) / 52
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6723
SELECT 70 * COUNT( * ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-6723
SELECT 70 * COUNT ( * ) AS col2
----
70

query I rowsort
SELECT - + 34 * 69 + - 88 AS col2
----
-2434

onlyif mysql # aggregate syntax: 
query I rowsort label-6725
SELECT DISTINCT + CASE + 74 WHEN - 10 THEN 2 + - 18 * + MAX( DISTINCT - ( + NULLIF ( 82, ( ( 30 ) ) ) ) / 65 ) END * COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6725
SELECT DISTINCT + CASE + 74 WHEN - 10 THEN 2 + - 18 * + MAX ( DISTINCT - ( + NULLIF ( 82, ( ( 30 ) ) ) ) / 65 ) END * COUNT ( * ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6726
SELECT + 73 DIV - 25 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-6726
SELECT + 73 / - 25 AS col1
----
-2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6728
SELECT ALL - 20 * + COUNT( * ) col0
----
-20

skipif mysql # not compatible
query I rowsort label-6728
SELECT ALL - 20 * + COUNT ( * ) col0
----
-20

query I rowsort
SELECT 49 * - 45
----
-2205

query I rowsort
SELECT + 37 * 12 + + 50 AS col0
----
494

query I rowsort
SELECT 29 * + COALESCE ( - 10, 72, CASE 91 WHEN + 23 THEN COALESCE ( 92, 44 ) ELSE - 98 - 23 END )
----
-290

query I rowsort
SELECT + 49 * 97 + 60 * 76 AS col2
----
9313

query I rowsort
SELECT ALL 6 + 2 * 91
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-6734
SELECT ALL - - COUNT( ALL 88 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6734
SELECT ALL - - COUNT ( ALL 88 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6735
SELECT DISTINCT - 77 + + 78 * - ( 81 * 31 + 69 DIV 54 ) AS col0
----
-196013

skipif mysql # not compatible
query I rowsort label-6735
SELECT DISTINCT - 77 + + 78 * - ( 81 * 31 + 69 / 54 ) AS col0
----
-196013

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

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

query I rowsort
SELECT ALL + 44 * - 68 AS col2
----
-2992

onlyif mysql # aggregate syntax: 
query I rowsort label-6738
SELECT + MIN( + 6 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-6738
SELECT + MIN ( + 6 ) AS col0
----
6

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

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

query I rowsort
SELECT DISTINCT - 74 + 43
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6741
SELECT - + MAX( DISTINCT + ( + 68 ) )
----
-68

skipif mysql # not compatible
query I rowsort label-6741
SELECT - + MAX ( DISTINCT + ( + 68 ) )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6742
SELECT - COUNT( DISTINCT - 61 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6742
SELECT - COUNT ( DISTINCT - 61 ) AS col2
----
-1

query I rowsort
SELECT ALL 84 + + + 5 col1
----
89

query I rowsort
SELECT ALL 43 * - - ( + 59 ) AS col0
----
2537

query I rowsort
SELECT 5 * - 49 * 81
----
-19845

query I rowsort
SELECT 79 * ( 80 ) AS col2
----
6320

query I rowsort
SELECT ALL 7 * - ( - 97 ) AS col0
----
679

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6748
SELECT - COUNT( - ( - CAST( NULL AS SIGNED ) ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6748
SELECT - COUNT ( - ( - CAST ( NULL AS INTEGER ) ) ) AS col2
----
0

query I rowsort
SELECT ALL + 43 - 18 + 64 * CASE + 29 - + 16 WHEN - 57 THEN 9 WHEN + 55 THEN NULL ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT + 59 + - 94 - - 15 AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-6752
SELECT ALL - MAX( 67 ) - 67
----
-134

skipif mysql # not compatible
query I rowsort label-6752
SELECT ALL - MAX ( 67 ) - 67
----
-134

query I rowsort
SELECT + 76 * + ( - 15 )
----
-1140

query I rowsort
SELECT + 53 + 49 - 9 * 85 AS col0
----
-663

onlyif mysql # aggregate syntax: 
query I rowsort label-6755
SELECT ALL SUM( ALL - ( ( 25 ) ) ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-6755
SELECT ALL SUM ( ALL - ( ( 25 ) ) ) AS col1
----
-25

query I rowsort
SELECT ALL - 53 * 30
----
-1590

onlyif mysql # aggregate syntax: 
query I rowsort label-6757
SELECT 17 * + + ( 32 ) + - 29 * COUNT( - 95 )
----
515

skipif mysql # not compatible
query I rowsort label-6757
SELECT 17 * + + ( 32 ) + - 29 * COUNT ( - 95 )
----
515

onlyif mysql # aggregate syntax: 
query I rowsort label-6758
SELECT DISTINCT + COUNT( 77 )
----
1

skipif mysql # not compatible
query I rowsort label-6758
SELECT DISTINCT + COUNT ( 77 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6759
SELECT - 63 DIV 51 + 0
----
-1

skipif mysql # not compatible
query I rowsort label-6759
SELECT - 63 / 51 + 0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6760
SELECT DISTINCT - 71 * + - 47 * + COUNT( * )
----
3337

skipif mysql # not compatible
query I rowsort label-6760
SELECT DISTINCT - 71 * + - 47 * + COUNT ( * )
----
3337

query I rowsort
SELECT ALL - - 26 * + + ( 21 ) + 62
----
608

query I rowsort
SELECT - NULLIF ( + + 63, - 39 + 65 ) * 25 AS col0
----
-1575

onlyif mysql # aggregate syntax: 
query I rowsort label-6763
SELECT ALL + SUM( ALL + 30 ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-6763
SELECT ALL + SUM ( ALL + 30 ) AS col2
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6764
SELECT 19 * 98 + 59 DIV - CASE 66 WHEN + 82 * - 97 THEN + 72 WHEN 66 THEN 75 + 93 ELSE ( - CASE 84 WHEN - 35 THEN NULL ELSE - COALESCE ( COUNT( * ), - 32 * 3 + + ( 48 ) * ( + 98 + + 0 ) ) * COUNT( * ) END ) END col0
----
1862

skipif mysql # not compatible
query I rowsort label-6764
SELECT 19 * 98 + 59 / - CASE 66 WHEN + 82 * - 97 THEN + 72 WHEN 66 THEN 75 + 93 ELSE ( - CASE 84 WHEN - 35 THEN NULL ELSE - COALESCE ( COUNT ( * ), - 32 * 3 + + ( 48 ) * ( + 98 + + 0 ) ) * COUNT ( * ) END ) END col0
----
1862

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6765
SELECT + - CAST( - 90 AS SIGNED )
----
90

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

query I rowsort
SELECT - - ( 52 ) + 17 * - 98
----
-1614

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6768
SELECT DISTINCT - COUNT( * ) * + - 1
----
1

skipif mysql # not compatible
query I rowsort label-6768
SELECT DISTINCT - COUNT ( * ) * + - 1
----
1

query I rowsort
SELECT ALL 25 * - 67 * - 98 + + 73 AS col1
----
164223

query I rowsort
SELECT DISTINCT + 54 * - 36 * + 98
----
-190512

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6771
SELECT - ( + 4 ) + + 77 + + COUNT( * ) DIV 31 DIV 1 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-6771
SELECT - ( + 4 ) + + 77 + + COUNT ( * ) / 31 / 1 AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6772
SELECT - COUNT( * ) * - + 4 col0
----
4

skipif mysql # not compatible
query I rowsort label-6772
SELECT - COUNT ( * ) * - + 4 col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6773
SELECT - NULLIF ( - COUNT( * ), + MAX( - 46 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6773
SELECT - NULLIF ( - COUNT ( * ), + MAX ( - 46 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6774
SELECT COUNT( * ) * - 94 + - 46 * + 40 AS col2
----
-1934

skipif mysql # not compatible
query I rowsort label-6774
SELECT COUNT ( * ) * - 94 + - 46 * + 40 AS col2
----
-1934

query I rowsort
SELECT ALL - 11 - 88 * - + 41 AS col0
----
3597

query I rowsort
SELECT ALL ( - + 31 ) AS col1
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-6777
SELECT + 19 + 53 DIV 88
----
19

skipif mysql # not compatible
query I rowsort label-6777
SELECT + 19 + 53 / 88
----
19

query I rowsort
SELECT ALL 31 - 40
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6779
SELECT ALL MIN( ALL + 90 ) * 46
----
4140

skipif mysql # not compatible
query I rowsort label-6779
SELECT ALL MIN ( ALL + 90 ) * 46
----
4140

onlyif mysql # aggregate syntax: 
query I rowsort label-6780
SELECT + CASE COUNT( * ) WHEN NULLIF ( 14, + 56 ) + - COUNT( 24 ) * 31 THEN 23 ELSE - MIN( ALL 37 ) END + 28 col1
----
-9

skipif mysql # not compatible
query I rowsort label-6780
SELECT + CASE COUNT ( * ) WHEN NULLIF ( 14, + 56 ) + - COUNT ( 24 ) * 31 THEN 23 ELSE - MIN ( ALL 37 ) END + 28 col1
----
-9

query I rowsort
SELECT DISTINCT 60 - - + 80 AS col0
----
140

query I rowsort
SELECT - NULLIF ( 2, + 28 * 54 )
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6783
SELECT DISTINCT COUNT( * ) DIV + 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6783
SELECT DISTINCT COUNT ( * ) / + 96 AS col1
----
0

query I rowsort
SELECT + ( - + COALESCE ( + 26, - ( - 43 ) ) ) * + 62 col2
----
-1612

onlyif mysql # aggregate syntax: 
query I rowsort label-6785
SELECT + 65 + - SUM( ALL + NULLIF ( 11, + 28 ) ) * 46 AS col2
----
-441

skipif mysql # not compatible
query I rowsort label-6785
SELECT + 65 + - SUM ( ALL + NULLIF ( 11, + 28 ) ) * 46 AS col2
----
-441

query I rowsort
SELECT - COALESCE ( - - 25, + 43, + 6 * 24 + + 13 )
----
-25

query I rowsort
SELECT + 41 + 11
----
52

query I rowsort
SELECT - NULLIF ( + 85, 99 ) AS col0
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6789
SELECT - ( - CASE + - COUNT( * ) WHEN CAST( NULL AS SIGNED ) / 65 THEN - 71 * + 49 WHEN + 2 / 22 + 76 THEN NULL WHEN + 94 THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6789
SELECT - ( - CASE + - COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) / 65 THEN - 71 * + 49 WHEN + 2 / 22 + 76 THEN NULL WHEN + 94 THEN NULL ELSE NULL END )
----
NULL

query I rowsort
SELECT DISTINCT CASE + 93 WHEN - 53 THEN 68 END * - 96 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6791
SELECT ALL COUNT( * ) AS col0, NULLIF ( - NULLIF ( + COALESCE ( - 73, ( - 0 ) ), - 7 - 87 ), 85 * - 16 ) + 66 AS col2
----
1
139

skipif mysql # not compatible
query II rowsort label-6791
SELECT ALL COUNT ( * ) AS col0, NULLIF ( - NULLIF ( + COALESCE ( - 73, ( - 0 ) ), - 7 - 87 ), 85 * - 16 ) + 66 AS col2
----
1
139

query I rowsort
SELECT + 23 * 90 AS col2
----
2070

query I rowsort
SELECT DISTINCT 29 * - COALESCE ( + 67, 8 * - 60 )
----
-1943

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6794
SELECT ALL ( + MIN( ALL - 43 ) ) + 89 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6794
SELECT ALL ( + MIN ( ALL - 43 ) ) + 89 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT NULLIF ( + - COUNT( * ), + 55 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-6795
SELECT NULLIF ( + - COUNT ( * ), + 55 ) col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6796
SELECT ALL + + ( + - 53 ) DIV - ( COALESCE ( 52, - ( - 48 ) * 94, + COUNT( * ), COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-6796
SELECT ALL + + ( + - 53 ) / - ( COALESCE ( 52, - ( - 48 ) * 94, + COUNT ( * ), COUNT ( * ) ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6797
SELECT ALL + 61 DIV - ( 17 ) + 28 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-6797
SELECT ALL + 61 / - ( 17 ) + 28 AS col1
----
25

query I rowsort
SELECT - - CASE - 33 WHEN + 59 THEN 7 * - 56 ELSE NULL END * 70 AS col2
----
NULL

query II rowsort
SELECT + 41 AS col2, 88 AS col2
----
41
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6800
SELECT SUM( ALL - 82 )
----
-82

skipif mysql # not compatible
query I rowsort label-6800
SELECT SUM ( ALL - 82 )
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-6801
SELECT ALL + 68 DIV + 82 + + - 52 + + 74 * + 23 AS col0
----
1650

skipif mysql # not compatible
query I rowsort label-6801
SELECT ALL + 68 / + 82 + + - 52 + + 74 * + 23 AS col0
----
1650

query I rowsort
SELECT - COALESCE ( + + 37, - ( 38 ) ) AS col2
----
-37

query II rowsort
SELECT + 64 AS col0, + 56 - 36
----
64
20

query I rowsort
SELECT DISTINCT + 99 * CASE + 55 WHEN 80 THEN ( - 63 ) + + 13 END - + 25
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6805
SELECT ALL + 77 * - + 82 + + - COUNT( * ) - 86 * + COUNT( * )
----
-6401

skipif mysql # not compatible
query I rowsort label-6805
SELECT ALL + 77 * - + 82 + + - COUNT ( * ) - 86 * + COUNT ( * )
----
-6401

query II rowsort
SELECT - 48, + 90 * 92 * 44 AS col2
----
-48
364320

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6807
SELECT DISTINCT + - 57 * + NULLIF ( - + 31, 88 + ( + 83 - - 12 ) * 43 ) * COALESCE ( COALESCE ( + 65, - 56 DIV 52, COUNT( * ) ) * 17, - 17 )
----
1952535

skipif mysql # not compatible
query I rowsort label-6807
SELECT DISTINCT + - 57 * + NULLIF ( - + 31, 88 + ( + 83 - - 12 ) * 43 ) * COALESCE ( COALESCE ( + 65, - 56 / 52, COUNT ( * ) ) * 17, - 17 )
----
1952535

query I rowsort
SELECT - - 80 + - 88 + 80 AS col2
----
72

query I rowsort
SELECT - ( - + 92 ) AS col2
----
92

query II rowsort
SELECT + 55 AS col2, + ( + + 99 ) AS col2
----
55
99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6812
SELECT - + 56 * - COALESCE ( - + 32, - NULLIF ( + ( 21 ), SUM( + 96 ) + 62 ) )
----
-1792

skipif mysql # not compatible
query I rowsort label-6812
SELECT - + 56 * - COALESCE ( - + 32, - NULLIF ( + ( 21 ), SUM ( + 96 ) + 62 ) )
----
-1792

query I rowsort
SELECT 61 * - 80 - 28 col0
----
-4908

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6814
SELECT DISTINCT + 70 DIV + COUNT( * ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-6814
SELECT DISTINCT + 70 / + COUNT ( * ) AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6815
SELECT ALL ( 30 ) * + 34 * - 70 + SUM( - 9 )
----
-71409

skipif mysql # not compatible
query I rowsort label-6815
SELECT ALL ( 30 ) * + 34 * - 70 + SUM ( - 9 )
----
-71409

query I rowsort
SELECT - 96 * - COALESCE ( + 78, + 41, 80 + 97 )
----
7488

onlyif mysql # DIV for integer division: 
query I rowsort label-6817
SELECT - 13 DIV + + 46 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6817
SELECT - 13 / + + 46 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6818
SELECT 94 - MIN( ALL 32 ) * NULLIF ( - 56, - 60 * COUNT( * ) + 49 * - 92 ) + 97 * 0 col0
----
1886

skipif mysql # not compatible
query I rowsort label-6818
SELECT 94 - MIN ( ALL 32 ) * NULLIF ( - 56, - 60 * COUNT ( * ) + 49 * - 92 ) + 97 * 0 col0
----
1886

query I rowsort
SELECT 98 * 48 * - - 42
----
197568

query I rowsort
SELECT 4 - 51 AS col1
----
-47

query I rowsort
SELECT 39 - + - 82
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-6822
SELECT COUNT( * ) + + 39 * NULLIF ( NULLIF ( + 69, - 31 ), - 10 + 44 * COUNT( * ) ) - - 14
----
2706

skipif mysql # not compatible
query I rowsort label-6822
SELECT COUNT ( * ) + + 39 * NULLIF ( NULLIF ( + 69, - 31 ), - 10 + 44 * COUNT ( * ) ) - - 14
----
2706

query I rowsort
SELECT ( ( + + 0 ) ) * + + 83 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6824
SELECT ALL CAST( 80 AS SIGNED ) DIV - 64
----
-1

skipif mysql # not compatible
query I rowsort label-6824
SELECT ALL CAST ( 80 AS INTEGER ) / - 64
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT - + ( - CASE - COUNT( * ) WHEN - ( - 40 ) THEN NULL WHEN COUNT( * ) * 96 THEN COUNT( * ) * 56 ELSE + ( + 81 ) END )
----
81

skipif mysql # not compatible
query I rowsort label-6825
SELECT - + ( - CASE - COUNT ( * ) WHEN - ( - 40 ) THEN NULL WHEN COUNT ( * ) * 96 THEN COUNT ( * ) * 56 ELSE + ( + 81 ) END )
----
81

query I rowsort
SELECT DISTINCT 45 + 16
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6827
SELECT - COALESCE ( 82, - + CAST( NULL AS SIGNED ) + - 76 ) + 95 * 92 AS col0
----
8658

skipif mysql # not compatible
query I rowsort label-6827
SELECT - COALESCE ( 82, - + CAST ( NULL AS INTEGER ) + - 76 ) + 95 * 92 AS col0
----
8658

query I rowsort
SELECT DISTINCT - 28 * - + 21
----
588

query I rowsort
SELECT 4 * - - 17 AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6830
SELECT DISTINCT COUNT( * ) + 3 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-6830
SELECT DISTINCT COUNT ( * ) + 3 AS col1
----
4

query I rowsort
SELECT ALL - CASE 40 WHEN - 29 + + + 54 THEN - 45 END AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6833
SELECT + CAST( ( - 87 ) AS SIGNED ) * - - 6 + - 82 AS col0
----
-604

skipif mysql # not compatible
query I rowsort label-6833
SELECT + CAST ( ( - 87 ) AS INTEGER ) * - - 6 + - 82 AS col0
----
-604

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6834
SELECT ALL - 96 - + - CASE - 45 WHEN + CAST( NULL AS SIGNED ) + 62 * COUNT( * ) THEN ( - 40 ) - 64 ELSE NULL END + + AVG ( ALL 92 ) * CAST( NULL AS DECIMAL ) * + CAST( + 35 - - COUNT( * ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6834
SELECT ALL - 96 - + - CASE - 45 WHEN + CAST ( NULL AS INTEGER ) + 62 * COUNT ( * ) THEN ( - 40 ) - 64 ELSE NULL END + + AVG ( ALL 92 ) * CAST ( NULL AS REAL ) * + CAST ( + 35 - - COUNT ( * ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6835
SELECT ALL 25 * + COUNT( * ) * + 23 * + 53 * COUNT( * ) AS col2
----
30475

skipif mysql # not compatible
query I rowsort label-6835
SELECT ALL 25 * + COUNT ( * ) * + 23 * + 53 * COUNT ( * ) AS col2
----
30475

onlyif mysql # aggregate syntax: 
query I rowsort label-6836
SELECT DISTINCT SUM( 37 ) * - 41 * + + 59 AS col1
----
-89503

skipif mysql # not compatible
query I rowsort label-6836
SELECT DISTINCT SUM ( 37 ) * - 41 * + + 59 AS col1
----
-89503

query I rowsort
SELECT 8 * + - 18 * + 64 * + 90
----
-829440

query I rowsort
SELECT 79 + - + 19 AS col1
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6839
SELECT 84 * - CAST( NULL AS SIGNED ) - - 82 - - 80 - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6839
SELECT 84 * - CAST ( NULL AS INTEGER ) - - 82 - - 80 - COUNT ( * )
----
NULL

query I rowsort
SELECT 17 + + - 71
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-6841
SELECT 98 DIV + 98
----
1

skipif mysql # not compatible
query I rowsort label-6841
SELECT 98 / + 98
----
1

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

skipif mysql # not compatible
query I rowsort label-6842
SELECT 33 * CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT 4 + + 42 + + NULLIF ( 2, + 89 ) + - 38 * 7 * + 50
----
-13252

query I rowsort
SELECT 39 - + 44 - + ( 37 )
----
-42

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6846
SELECT ALL - 21 + - COUNT( * ) * + + CAST( NULL AS SIGNED ) + + 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6846
SELECT ALL - 21 + - COUNT ( * ) * + + CAST ( NULL AS INTEGER ) + + 29 AS col0
----
NULL

query I rowsort
SELECT 33 * + 69
----
2277

query I rowsort
SELECT ALL + 22 + + - 1 + + - 16 + - 81 + + 51 - 26
----
-51

query I rowsort
SELECT 39 + + 98 AS col1
----
137

query I rowsort
SELECT ALL - CASE WHEN NOT ( + 50 ) NOT IN ( 18 ) THEN 13 + 99 ELSE NULL END + + 64
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6851
SELECT 13 DIV + - 79 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6851
SELECT 13 / + - 79 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6852
SELECT 48 + - - COUNT( * ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-6852
SELECT 48 + - - COUNT ( * ) AS col0
----
49

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

skipif mysql # not compatible
query I rowsort label-6853
SELECT ALL + COUNT ( * ) * - 8 AS col2
----
-8

query I rowsort
SELECT 22 * + 49 AS col2
----
1078

query I rowsort
SELECT - 64 + - ( + ( + 14 ) ) AS col2
----
-78

query I rowsort
SELECT ALL - 1 + - 86
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6857
SELECT DISTINCT + 43 + + 14 * - 45, - 0 + - CASE AVG ( + 25 ) WHEN 88 - 18 THEN - 19 * - CASE + 78 WHEN 36 + COUNT( * ) THEN NULL WHEN 59 * 58 THEN + 61 DIV 95 END ELSE + 10 * 81 END AS col1
----
-587
-810

skipif mysql # not compatible
query II rowsort label-6857
SELECT DISTINCT + 43 + + 14 * - 45, - 0 + - CASE AVG ( + 25 ) WHEN 88 - 18 THEN - 19 * - CASE + 78 WHEN 36 + COUNT ( * ) THEN NULL WHEN 59 * 58 THEN + 61 / 95 END ELSE + 10 * 81 END AS col1
----
-587
-810

query I rowsort
SELECT ALL + 41 + 12
----
53

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6860
SELECT ALL + ( ( - + 62 ) ) - - MAX( ALL + 90 )
----
28

skipif mysql # not compatible
query I rowsort label-6860
SELECT ALL + ( ( - + 62 ) ) - - MAX ( ALL + 90 )
----
28

query I rowsort
SELECT 18 * + - 30 AS col0
----
-540

onlyif mysql # aggregate syntax: 
query I rowsort label-6862
SELECT DISTINCT + 16 * + - MAX( ALL - + 21 ) AS col2
----
336

skipif mysql # not compatible
query I rowsort label-6862
SELECT DISTINCT + 16 * + - MAX ( ALL - + 21 ) AS col2
----
336

query I rowsort
SELECT ALL + 1 * + 4 * 47 - + + 88
----
100

query I rowsort
SELECT 98 * 12
----
1176

query I rowsort
SELECT - 89 * - 85 + - 77
----
7488

onlyif mysql # aggregate syntax: 
query I rowsort label-6866
SELECT ALL - COUNT( 7 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6866
SELECT ALL - COUNT ( 7 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6867
SELECT + 56 * - CASE - 9 WHEN 96 THEN + 67 * 41 WHEN NULLIF ( + COUNT( * ), 8 - - 55 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6867
SELECT + 56 * - CASE - 9 WHEN 96 THEN + 67 * 41 WHEN NULLIF ( + COUNT ( * ), 8 - - 55 ) THEN NULL END
----
NULL

query I rowsort
SELECT ALL + 22 * 69 AS col0
----
1518

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6870
SELECT DISTINCT 35 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6870
SELECT DISTINCT 35 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6871
SELECT ALL COUNT( DISTINCT + + 85 ) DIV ( - ( + 24 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6871
SELECT ALL COUNT ( DISTINCT + + 85 ) / ( - ( + 24 ) ) AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-6872
SELECT COUNT ( * ) / + + 63
----
0

query II rowsort
SELECT ALL + 43 AS col2, 34
----
43
34

query I rowsort
SELECT + 90 + - 90 + 70 * 20
----
1400

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT - ( + 54 ) * - COUNT( * ) * - ( + 25 ) * + 21 * 12 + - 72 col2
----
-340272

skipif mysql # not compatible
query I rowsort label-6875
SELECT - ( + 54 ) * - COUNT ( * ) * - ( + 25 ) * + 21 * 12 + - 72 col2
----
-340272

onlyif mysql # aggregate syntax: 
query II rowsort label-6876
SELECT ALL + 59 AS col1, - CASE + 10 WHEN + 26 THEN NULL WHEN COUNT( * ) THEN NULL WHEN + 29 THEN - 0 * + 7 END
----
59
NULL

skipif mysql # not compatible
query II rowsort label-6876
SELECT ALL + 59 AS col1, - CASE + 10 WHEN + 26 THEN NULL WHEN COUNT ( * ) THEN NULL WHEN + 29 THEN - 0 * + 7 END
----
59
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6877
SELECT MIN( ALL - NULLIF ( 12, 77 ) )
----
-12

skipif mysql # not compatible
query I rowsort label-6877
SELECT MIN ( ALL - NULLIF ( 12, 77 ) )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6878
SELECT MIN( - 59 ) col1
----
-59

skipif mysql # not compatible
query I rowsort label-6878
SELECT MIN ( - 59 ) col1
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6879
SELECT DISTINCT 77 + + COALESCE ( + 40, - ( - + COALESCE ( SUM( - 58 ), 94 * + ( 33 ) + + 56 DIV + CASE 51 * ( - 91 ) WHEN - NULLIF ( - 90, - ( + 95 ) ) THEN 4 END ) ), + CAST( NULL AS SIGNED ) * - 92 + 2 )
----
117

skipif mysql # not compatible
query I rowsort label-6879
SELECT DISTINCT 77 + + COALESCE ( + 40, - ( - + COALESCE ( SUM ( - 58 ), 94 * + ( 33 ) + + 56 / + CASE 51 * ( - 91 ) WHEN - NULLIF ( - 90, - ( + 95 ) ) THEN 4 END ) ), + CAST ( NULL AS INTEGER ) * - 92 + 2 )
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6880
SELECT ALL COUNT( * ) + - - NULLIF ( - 66, SUM( DISTINCT + 83 ) + + - 22 ) + 65 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6880
SELECT ALL COUNT ( * ) + - - NULLIF ( - 66, SUM ( DISTINCT + 83 ) + + - 22 ) + 65 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT DISTINCT 71 + + COUNT( DISTINCT 34 ) + - 69 * + 93 * 61 AS col1
----
-391365

skipif mysql # not compatible
query I rowsort label-6881
SELECT DISTINCT 71 + + COUNT ( DISTINCT 34 ) + - 69 * + 93 * 61 AS col1
----
-391365

query II rowsort
SELECT DISTINCT 69 AS col0, 70 * + 66
----
69
4620

query I rowsort
SELECT - 0 * - - 88 AS col2
----
0

query I rowsort
SELECT ALL - CASE + - 76 WHEN - ( + 64 ) THEN NULL ELSE 96 END + - + 44 * + 13 AS col0
----
-668

onlyif mysql # aggregate syntax: 
query II rowsort label-6885
SELECT - 88 AS col2, + MAX( ALL 82 ) + NULLIF ( - 31, + 17 ) * + 65 AS col1
----
-88
-1933

skipif mysql # not compatible
query II rowsort label-6885
SELECT - 88 AS col2, + MAX ( ALL 82 ) + NULLIF ( - 31, + 17 ) * + 65 AS col1
----
-88
-1933

query III rowsort
SELECT DISTINCT - 92 AS col2, 22, 54 AS col0
----
-92
22
54

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6887
SELECT ALL - 45 + 66 * + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6887
SELECT ALL - 45 + 66 * + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6888
SELECT ALL + + ( - COUNT( DISTINCT + 9 ) ) - + 69
----
-70

skipif mysql # not compatible
query I rowsort label-6888
SELECT ALL + + ( - COUNT ( DISTINCT + 9 ) ) - + 69
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-6889
SELECT DISTINCT - ( ( + 93 ) ) DIV + 43
----
-2

skipif mysql # not compatible
query I rowsort label-6889
SELECT DISTINCT - ( ( + 93 ) ) / + 43
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-6890
SELECT DISTINCT 27 col1, COUNT( * ) + - MAX( ALL + 89 ) AS col1
----
27
-88

skipif mysql # not compatible
query II rowsort label-6890
SELECT DISTINCT 27 col1, COUNT ( * ) + - MAX ( ALL + 89 ) AS col1
----
27
-88

query I rowsort
SELECT ALL + - ( 29 ) - 78
----
-107

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

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

query I rowsort
SELECT ALL + - 75 * - + 12 + + - 50 col2
----
850

onlyif mysql # aggregate syntax: 
query II rowsort label-6894
SELECT + 50 col2, MIN( ALL - 38 ) + + ( + 62 )
----
50
24

skipif mysql # not compatible
query II rowsort label-6894
SELECT + 50 col2, MIN ( ALL - 38 ) + + ( + 62 )
----
50
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6895
SELECT DISTINCT - - 62 * + - 2 AS col1, 21 * 29 + 14 + - + 37 - + CAST( 76 AS SIGNED )
----
-124
510

skipif mysql # not compatible
query II rowsort label-6895
SELECT DISTINCT - - 62 * + - 2 AS col1, 21 * 29 + 14 + - + 37 - + CAST ( 76 AS INTEGER )
----
-124
510

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6896
SELECT - + CASE COALESCE ( 75, + ( - COUNT( * ) ) * + 77 ) WHEN 85 + NULLIF ( + 87, 91 ) THEN NULL WHEN + 8 THEN + CAST( NULL AS SIGNED ) / - 36 + ( + 72 + 3 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6896
SELECT - + CASE COALESCE ( 75, + ( - COUNT ( * ) ) * + 77 ) WHEN 85 + NULLIF ( + 87, 91 ) THEN NULL WHEN + 8 THEN + CAST ( NULL AS INTEGER ) / - 36 + ( + 72 + 3 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6897
SELECT - + 10 AS col1, - 76 DIV + 38 AS col1
----
-10
-2

skipif mysql # not compatible
query II rowsort label-6897
SELECT - + 10 AS col1, - 76 / + 38 AS col1
----
-10
-2

query I rowsort
SELECT - - 48 + - 95 + + 84 AS col0
----
37

query I rowsort
SELECT ALL CASE 50 WHEN - 93 THEN NULL WHEN - 85 THEN - + ( 38 ) ELSE + 25 + 46 END
----
71

query I rowsort
SELECT DISTINCT - + 70 * - + 63 - + 12 AS col2
----
4398

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6901
SELECT ALL + - ( - 41 ) AS col1, ( + 1 ) + 49 + - CAST( - CAST( + 95 AS SIGNED ) AS SIGNED ) AS col2
----
41
145

skipif mysql # not compatible
query II rowsort label-6901
SELECT ALL + - ( - 41 ) AS col1, ( + 1 ) + 49 + - CAST ( - CAST ( + 95 AS INTEGER ) AS INTEGER ) AS col2
----
41
145

query II rowsort
SELECT 13, - 91 + - 98 AS col0
----
13
-189

query II rowsort
SELECT + 46 AS col2, 36
----
46
36

onlyif mysql # aggregate syntax: 
query II rowsort label-6904
SELECT + 63 AS col1, COUNT( * ) + - - 8 col2
----
63
9

skipif mysql # not compatible
query II rowsort label-6904
SELECT + 63 AS col1, COUNT ( * ) + - - 8 col2
----
63
9

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

skipif mysql # not compatible
query I rowsort label-6905
SELECT + 49 + - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT + 66 * + 47 AS col0, 18
----
3102
18

onlyif mysql # aggregate syntax: 
query II rowsort label-6907
SELECT + ( - COUNT( * ) ) AS col0, 63
----
-1
63

skipif mysql # not compatible
query II rowsort label-6907
SELECT + ( - COUNT ( * ) ) AS col0, 63
----
-1
63

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

skipif mysql # not compatible
query I rowsort label-6908
SELECT ALL - CAST ( NULL AS REAL ) * - - COUNT ( * ) + COUNT ( * ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6909
SELECT + 30 * + 90, CASE + - 79 WHEN + + NULLIF ( 16, 7 / - 1 ) * COUNT( * ) THEN SUM( - 34 ) WHEN 70 THEN NULL END + 17 AS col1
----
2700
NULL

skipif mysql # not compatible
query II rowsort label-6909
SELECT + 30 * + 90, CASE + - 79 WHEN + + NULLIF ( 16, 7 / - 1 ) * COUNT ( * ) THEN SUM ( - 34 ) WHEN 70 THEN NULL END + 17 AS col1
----
2700
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6910
SELECT ALL 6 * 48 + + MIN( ALL - 33 ) * + 50
----
-1362

skipif mysql # not compatible
query I rowsort label-6910
SELECT ALL 6 * 48 + + MIN ( ALL - 33 ) * + 50
----
-1362

onlyif mysql # aggregate syntax: 
query I rowsort label-6911
SELECT + 7 * - 37 * - COUNT( * ) AS col0
----
259

skipif mysql # not compatible
query I rowsort label-6911
SELECT + 7 * - 37 * - COUNT ( * ) AS col0
----
259

onlyif mysql # aggregate syntax: 
query II rowsort label-6912
SELECT ALL - 3 * - ( + COUNT( * ) ) * - - 55 + - 71, 55 AS col0
----
94
55

skipif mysql # not compatible
query II rowsort label-6912
SELECT ALL - 3 * - ( + COUNT ( * ) ) * - - 55 + - 71, 55 AS col0
----
94
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6913
SELECT DISTINCT 30 * + MAX( + 12 )
----
360

skipif mysql # not compatible
query I rowsort label-6913
SELECT DISTINCT 30 * + MAX ( + 12 )
----
360

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

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

query I rowsort
SELECT CASE - - 33 WHEN - 34 * + - 28 THEN + ( - 23 ) * - - 59 WHEN 8 THEN + 68 * 46 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6916
SELECT MIN( - + CAST( NULL AS SIGNED ) ) * + 78 * 7 / - 43 + - ( - - 29 ) + AVG ( + 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6916
SELECT MIN ( - + CAST ( NULL AS INTEGER ) ) * + 78 * 7 / - 43 + - ( - - 29 ) + AVG ( + 49 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6917
SELECT ALL + COUNT( ALL - 70 ) * + 92 + ( - COUNT( * ) ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-6917
SELECT ALL + COUNT ( ALL - 70 ) * + 92 + ( - COUNT ( * ) ) AS col2
----
91

query I rowsort
SELECT + 64 + - - 88
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-6919
SELECT - NULLIF ( + COUNT( * ), 18 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6919
SELECT - NULLIF ( + COUNT ( * ), 18 ) AS col2
----
-1

query I rowsort
SELECT - 46 - 24 AS col0
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6921
SELECT + - CAST( NULL AS SIGNED ) + 52 * + SUM( + 12 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6921
SELECT + - CAST ( NULL AS INTEGER ) + 52 * + SUM ( + 12 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6922
SELECT ALL - COUNT( * ) * + 39 - + + 87 AS col0
----
-126

skipif mysql # not compatible
query I rowsort label-6922
SELECT ALL - COUNT ( * ) * + 39 - + + 87 AS col0
----
-126

query I rowsort
SELECT + 22 + - + 2 AS col0
----
20

query I rowsort
SELECT + + ( + - 27 ) * + + 72 AS col2
----
-1944

query II rowsort
SELECT ALL ( - + 72 ) col1, 1 * - + 5 * + - NULLIF ( 88, - 79 ) * - 29 + 67
----
-72
-12693

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6926
SELECT - + ( + - 15 ) + + + CAST( NULL AS SIGNED ) + + 84 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6926
SELECT - + ( + - 15 ) + + + CAST ( NULL AS INTEGER ) + + 84 col0
----
NULL

query I rowsort
SELECT - + 28 * - + 18
----
504

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6928
SELECT - 38 DIV COUNT( DISTINCT - + ( + 47 ) ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-6928
SELECT - 38 / COUNT ( DISTINCT - + ( + 47 ) ) AS col2
----
-38

query I rowsort
SELECT ALL - + 93 + - 29
----
-122

query I rowsort
SELECT 37 * - 27 * + 83 * 30
----
-2487510

query I rowsort
SELECT - 95 * + - 75 - + 30 + + 99 AS col0
----
7194

onlyif mysql # aggregate syntax: 
query I rowsort label-6932
SELECT ALL + 56 * + + 41 - - + COUNT( * ) + - CASE + 0 WHEN + 17 + - - 21 + - 36 THEN + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6932
SELECT ALL + 56 * + + 41 - - + COUNT ( * ) + - CASE + 0 WHEN + 17 + - - 21 + - 36 THEN + COUNT ( * ) END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6933
SELECT COALESCE ( + - 41, + 10 DIV 51 + + - 46 - - 0 * 54 * + 37 ) DIV 86
----
0

skipif mysql # not compatible
query I rowsort label-6933
SELECT COALESCE ( + - 41, + 10 / 51 + + - 46 - - 0 * 54 * + 37 ) / 86
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6934
SELECT ALL - 34 + + + 95 + - + COUNT( * ) * 42 AS col1, + COUNT( * ) + + 71
----
19
72

skipif mysql # not compatible
query II rowsort label-6934
SELECT ALL - 34 + + + 95 + - + COUNT ( * ) * 42 AS col1, + COUNT ( * ) + + 71
----
19
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6935
SELECT ALL - COUNT( * ) + - 16 + + 35
----
18

skipif mysql # not compatible
query I rowsort label-6935
SELECT ALL - COUNT ( * ) + - 16 + + 35
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6936
SELECT ALL - CAST( + + 98 AS SIGNED ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-6936
SELECT ALL - CAST ( + + 98 AS INTEGER ) AS col2
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6937
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ) + 70 - + - CAST( + 1 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6937
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ) + 70 - + - CAST ( + 1 AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6938
SELECT DISTINCT + MIN( + 43 ) + ( - 20 ) AS col0, 16
----
23
16

skipif mysql # not compatible
query II rowsort label-6938
SELECT DISTINCT + MIN ( + 43 ) + ( - 20 ) AS col0, 16
----
23
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6939
SELECT DISTINCT + 90 + - 36 - + CAST( NULL AS SIGNED ) + ( COUNT( - 76 ) ) * 78 / - + 25 * + 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6939
SELECT DISTINCT + 90 + - 36 - + CAST ( NULL AS INTEGER ) + ( COUNT ( - 76 ) ) * 78 / - + 25 * + 13 AS col0
----
NULL

query II rowsort
SELECT ALL - 97 AS col2, - 84 * - - 32 + - - 3
----
-97
-2685

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

skipif mysql # not compatible
query I rowsort label-6941
SELECT DISTINCT + COUNT ( * ) + - 51 AS col0
----
-50

query II rowsort
SELECT + 63, 94 * - 26 AS col0
----
63
-2444

query I rowsort
SELECT DISTINCT + ( - 37 ) + - - 66 AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6944
SELECT ALL + 72 - + + MIN( ALL + 32 ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-6944
SELECT ALL + 72 - + + MIN ( ALL + 32 ) AS col2
----
40

query I rowsort
SELECT 32 * 76
----
2432

query II rowsort
SELECT 67 AS col0, - 7 AS col0
----
67
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-6947
SELECT 39 DIV - 85 * - 24
----
0

skipif mysql # not compatible
query I rowsort label-6947
SELECT 39 / - 85 * - 24
----
0

query I rowsort
SELECT DISTINCT 70 * + 62
----
4340

onlyif mysql # aggregate syntax: 
query I rowsort label-6949
SELECT ALL 29 - 39 - - - COUNT( * ) * - 55 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-6949
SELECT ALL 29 - 39 - - - COUNT ( * ) * - 55 AS col0
----
45

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6951
SELECT CASE - - 87 WHEN - 99 / - 17 * - 78 + + 81 + - 61 THEN - COUNT( * ) END / AVG ( - 90 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6951
SELECT CASE - - 87 WHEN - 99 / - 17 * - 78 + + 81 + - 61 THEN - COUNT ( * ) END / AVG ( - 90 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 55 * - - 60
----
3300

onlyif mysql # aggregate syntax: 
query I rowsort label-6953
SELECT ALL - - COUNT( * ) * CASE - COUNT( * ) WHEN - + COUNT( * ) THEN + NULLIF ( + 89, - + ( - COUNT( * ) ) * - 13 + 56 ) - 32 * 60 ELSE NULL END AS col2
----
-1831

skipif mysql # not compatible
query I rowsort label-6953
SELECT ALL - - COUNT ( * ) * CASE - COUNT ( * ) WHEN - + COUNT ( * ) THEN + NULLIF ( + 89, - + ( - COUNT ( * ) ) * - 13 + 56 ) - 32 * 60 ELSE NULL END AS col2
----
-1831

onlyif mysql # aggregate syntax: 
query I rowsort label-6954
SELECT 27 * + SUM( DISTINCT - 36 ) * + 47
----
-45684

skipif mysql # not compatible
query I rowsort label-6954
SELECT 27 * + SUM ( DISTINCT - 36 ) * + 47
----
-45684

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6955
SELECT + COALESCE ( 43, 2 + + - CAST( NULL AS SIGNED ) )
----
43

skipif mysql # not compatible
query I rowsort label-6955
SELECT + COALESCE ( 43, 2 + + - CAST ( NULL AS INTEGER ) )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6956
SELECT + ( 4 ) * - - CASE ( - + 67 ) WHEN SUM( DISTINCT 28 ) THEN + 77 ELSE NULL END - + 79 * 59
----
NULL

skipif mysql # not compatible
query I rowsort label-6956
SELECT + ( 4 ) * - - CASE ( - + 67 ) WHEN SUM ( DISTINCT 28 ) THEN + 77 ELSE NULL END - + 79 * 59
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6957
SELECT - 42 * - MAX( + CAST( NULL AS SIGNED ) ) * - ( 29 ) * - + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-6957
SELECT - 42 * - MAX ( + CAST ( NULL AS INTEGER ) ) * - ( 29 ) * - + 38
----
NULL

query II rowsort
SELECT DISTINCT + 91, 75 AS col2
----
91
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6959
SELECT - 86 - - ( + COALESCE ( COUNT( * ), + 16 ) ) + 60 + 3
----
-22

skipif mysql # not compatible
query I rowsort label-6959
SELECT - 86 - - ( + COALESCE ( COUNT ( * ), + 16 ) ) + 60 + 3
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6960
SELECT ALL NULLIF ( - 70, + 63 + COUNT( * ) ) * + COALESCE ( 72, - 26 + + - 38 )
----
-5040

skipif mysql # not compatible
query I rowsort label-6960
SELECT ALL NULLIF ( - 70, + 63 + COUNT ( * ) ) * + COALESCE ( 72, - 26 + + - 38 )
----
-5040

onlyif mysql # aggregate syntax: 
query I rowsort label-6961
SELECT 96 + CASE - COUNT( * ) WHEN + - COUNT( * ) / - + 95 THEN NULL WHEN - - 76 THEN NULL WHEN + 33 - + 57 * 65 THEN - 95 + - 34 ELSE 13 + + 9 END AS col1
----
118

skipif mysql # not compatible
query I rowsort label-6961
SELECT 96 + CASE - COUNT ( * ) WHEN + - COUNT ( * ) / - + 95 THEN NULL WHEN - - 76 THEN NULL WHEN + 33 - + 57 * 65 THEN - 95 + - 34 ELSE 13 + + 9 END AS col1
----
118

query II rowsort
SELECT DISTINCT - 55 AS col2, + 14 AS col1
----
-55
14

onlyif mysql # aggregate syntax: 
query II rowsort label-6963
SELECT DISTINCT COUNT( * ) AS col0, 33 * 11
----
1
363

skipif mysql # not compatible
query II rowsort label-6963
SELECT DISTINCT COUNT ( * ) AS col0, 33 * 11
----
1
363

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6964
SELECT - - CASE - + COALESCE ( + + CASE - 25 WHEN COUNT( * ) + 68 * - ( + NULLIF ( 81, 63 * - 59 ) ) - + ( + 99 ) THEN 70 * 99 - - 3 END, - 66 * + 75, + 14 * 81 ) WHEN 83 + + 78 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN COALESCE ( + COUNT( * ), 56 / + 80, + 83 - 24 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6964
SELECT - - CASE - + COALESCE ( + + CASE - 25 WHEN COUNT ( * ) + 68 * - ( + NULLIF ( 81, 63 * - 59 ) ) - + ( + 99 ) THEN 70 * 99 - - 3 END, - 66 * + 75, + 14 * 81 ) WHEN 83 + + 78 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN COALESCE ( + COUNT ( * ), 56 / + 80, + 83 - 24 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6965
SELECT ALL 96 + - 56 * - - COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-6965
SELECT ALL 96 + - 56 * - - COUNT ( * )
----
40

query I rowsort
SELECT DISTINCT 1 + + 48 AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6967
SELECT + 75 * - 61 + + - COUNT( * ) * - - 19 + - 77 AS col2
----
-4671

skipif mysql # not compatible
query I rowsort label-6967
SELECT + 75 * - 61 + + - COUNT ( * ) * - - 19 + - 77 AS col2
----
-4671

query I rowsort
SELECT COALESCE ( 51, + COALESCE ( 80, + + 66 - + 64, - 51 ) * 44 ) + - 84 col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6969
SELECT ( + MIN( DISTINCT + + 98 ) ) - - 56
----
154

skipif mysql # not compatible
query I rowsort label-6969
SELECT ( + MIN ( DISTINCT + + 98 ) ) - - 56
----
154

query I rowsort
SELECT DISTINCT - 27 * + 64 AS col2
----
-1728

query I rowsort
SELECT + 93 + + CASE - + 17 WHEN + - 6 * 58 THEN - + 40 * + 73 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6972
SELECT ALL ( + 79 ) + + + CASE - - AVG ( 27 ) WHEN 42 / 85 THEN + COUNT( DISTINCT 15 ) * 71 WHEN COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6972
SELECT ALL ( + 79 ) + + + CASE - - AVG ( 27 ) WHEN 42 / 85 THEN + COUNT ( DISTINCT 15 ) * 71 WHEN COUNT ( * ) THEN NULL END
----
NULL

query I rowsort
SELECT ALL + ( + 57 ) + 39
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-6974
SELECT - COUNT( * ) * + - COUNT( * ) + - 85 + - 88 * + 61, 99 AS col0
----
-5452
99

skipif mysql # not compatible
query II rowsort label-6974
SELECT - COUNT ( * ) * + - COUNT ( * ) + - 85 + - 88 * + 61, 99 AS col0
----
-5452
99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6975
SELECT ALL CASE + ( - 23 ) WHEN + 11 THEN NULL WHEN + + CAST( NULL AS DECIMAL ) * - 60 THEN COUNT( * ) ELSE NULL END + - 77 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6975
SELECT ALL CASE + ( - 23 ) WHEN + 11 THEN NULL WHEN + + CAST ( NULL AS REAL ) * - 60 THEN COUNT ( * ) ELSE NULL END + - 77 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6976
SELECT ALL + 67 DIV - ( + 96 )
----
0

skipif mysql # not compatible
query I rowsort label-6976
SELECT ALL + 67 / - ( + 96 )
----
0

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

skipif mysql # not compatible
query I rowsort label-6977
SELECT ALL - CAST ( NULL AS INTEGER ) + + - CAST ( + 21 AS INTEGER )
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-6979
SELECT + MAX ( 80 )
----
80

query I rowsort
SELECT 32 * 22
----
704

query I rowsort
SELECT 68 * 65
----
4420

query I rowsort
SELECT ALL NULLIF ( + 17, + 15 ) * - 60 * - - 18
----
-18360

onlyif mysql # aggregate syntax: 
query II rowsort label-6983
SELECT 48 + - 60, MAX( 63 ) - 1 col2
----
-12
62

skipif mysql # not compatible
query II rowsort label-6983
SELECT 48 + - 60, MAX ( 63 ) - 1 col2
----
-12
62

query I rowsort
SELECT DISTINCT + 59 - + 87
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-6985
SELECT DISTINCT + COUNT( + 15 ) * + 38 * 21 AS col2, 94
----
798
94

skipif mysql # not compatible
query II rowsort label-6985
SELECT DISTINCT + COUNT ( + 15 ) * + 38 * 21 AS col2, 94
----
798
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6986
SELECT + CAST( + + 71 AS SIGNED ) * SUM( ALL 4 ) - - 20 DIV 94 DIV - 97 + + - 59
----
225

skipif mysql # not compatible
query I rowsort label-6986
SELECT + CAST ( + + 71 AS INTEGER ) * SUM ( ALL 4 ) - - 20 / 94 / - 97 + + - 59
----
225

onlyif mysql # aggregate syntax: 
query II rowsort label-6987
SELECT SUM( ALL + 1 ) col0, MIN( + + 91 )
----
1
91

skipif mysql # not compatible
query II rowsort label-6987
SELECT SUM ( ALL + 1 ) col0, MIN ( + + 91 )
----
1
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6988
SELECT DISTINCT + + 56 * 24 DIV + COUNT( ALL - 57 ) + + CASE 39 WHEN - ( + + COUNT( + 70 ) ) * - ( - 56 ) THEN - COUNT( * ) ELSE + COUNT( * ) END * - 25 AS col0
----
1319

skipif mysql # not compatible
query I rowsort label-6988
SELECT DISTINCT + + 56 * 24 / + COUNT ( ALL - 57 ) + + CASE 39 WHEN - ( + + COUNT ( + 70 ) ) * - ( - 56 ) THEN - COUNT ( * ) ELSE + COUNT ( * ) END * - 25 AS col0
----
1319

onlyif mysql # aggregate syntax: 
query I rowsort label-6989
SELECT + 85 * 4 * 56 + + + 94 + + COUNT( * )
----
19135

skipif mysql # not compatible
query I rowsort label-6989
SELECT + 85 * 4 * 56 + + + 94 + + COUNT ( * )
----
19135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6990
SELECT ALL COALESCE ( + 21, - - CASE WHEN 41 IN ( MIN( 39 ) * + + 39 + 76 + 15 ) THEN NULL ELSE + COALESCE ( - COUNT( * ), CAST( - COUNT( * ) AS SIGNED ) * 6, - CAST( NULL AS SIGNED ), 4 * + COUNT( * ) ) * - 3 END, 3 * 33 )
----
21

skipif mysql # not compatible
query I rowsort label-6990
SELECT ALL COALESCE ( + 21, - - CASE WHEN 41 IN ( MIN ( 39 ) * + + 39 + 76 + 15 ) THEN NULL ELSE + COALESCE ( - COUNT ( * ), CAST ( - COUNT ( * ) AS INTEGER ) * 6, - CAST ( NULL AS INTEGER ), 4 * + COUNT ( * ) ) * - 3 END, 3 * 33 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT - SUM( ALL - + 36 ) + 2 + + + 15 * + - 2 + + 54 * 63 AS col0
----
3410

skipif mysql # not compatible
query I rowsort label-6991
SELECT - SUM ( ALL - + 36 ) + 2 + + + 15 * + - 2 + + 54 * 63 AS col0
----
3410

query II rowsort
SELECT ALL + 50 * + 62 AS col1, 65 AS col2
----
3100
65

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

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

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

skipif mysql # not compatible
query I rowsort label-6994
SELECT 10 + + CAST ( NULL AS INTEGER ) / CAST ( NULL AS INTEGER ) * - 81
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6995
SELECT - - ( 77 ) * COUNT( * ) + + + 73 col1, - MIN( DISTINCT - 4 )
----
150
4

skipif mysql # not compatible
query II rowsort label-6995
SELECT - - ( 77 ) * COUNT ( * ) + + + 73 col1, - MIN ( DISTINCT - 4 )
----
150
4

query I rowsort
SELECT + 33 + 32
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-6997
SELECT DISTINCT ( - COUNT( * ) ) AS col0, 66 * + COUNT( * ) * + + 79 + - 50 AS col0
----
-1
5164

skipif mysql # not compatible
query II rowsort label-6997
SELECT DISTINCT ( - COUNT ( * ) ) AS col0, 66 * + COUNT ( * ) * + + 79 + - 50 AS col0
----
-1
5164

onlyif mysql # DIV for integer division: 
query I rowsort label-6998
SELECT - + 51 DIV 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6998
SELECT - + 51 / 86 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6999
SELECT - 86 * 16, + 82 + 27 - - - 82 - + - 56 * - COUNT( * ) + 88 - 58 * 47 AS col0
----
-1376
-2667

skipif mysql # not compatible
query II rowsort label-6999
SELECT - 86 * 16, + 82 + 27 - - - 82 - + - 56 * - COUNT ( * ) + 88 - 58 * 47 AS col0
----
-1376
-2667

onlyif mysql # aggregate syntax: 
query I rowsort label-7000
SELECT ALL - 23 / + - 5 + + CASE 92 WHEN + - 5 * + - COUNT( * ) THEN NULL WHEN 74 * - 38 + - 9 + ( - 81 ) THEN + 82 ELSE NULL END + - 61 * + 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7000
SELECT ALL - 23 / + - 5 + + CASE 92 WHEN + - 5 * + - COUNT ( * ) THEN NULL WHEN 74 * - 38 + - 9 + ( - 81 ) THEN + 82 ELSE NULL END + - 61 * + 16 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7001
SELECT ALL COUNT( * ) + 22 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-7001
SELECT ALL COUNT ( * ) + 22 AS col1
----
23

query I rowsort
SELECT + 0 * - + 52
----
0

query I rowsort
SELECT + + 43 + - + 51 - + ( + + 27 )
----
-35

query I rowsort
SELECT DISTINCT 48 + ( 4 ) + 73 AS col1
----
125

query II rowsort
SELECT 76 AS col1, ( 84 ) AS col2
----
76
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7006
SELECT ALL 95 * - + 48 * - MAX( DISTINCT + ( - 57 ) )
----
-259920

skipif mysql # not compatible
query I rowsort label-7006
SELECT ALL 95 * - + 48 * - MAX ( DISTINCT + ( - 57 ) )
----
-259920

query I rowsort
SELECT - 54 - + 50
----
-104

query I rowsort
SELECT + 77 + - - 83
----
160

query I rowsort
SELECT ALL 42 * - 8 AS col0
----
-336

query I rowsort
SELECT + 48 * 63 AS col2
----
3024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7011
SELECT - 69 * - CASE + - SUM( ALL - 51 ) WHEN + 49 THEN - 62 WHEN AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) + + 19 * - 79 THEN 22 ELSE + 5 END + - 32
----
313

skipif mysql # not compatible
query I rowsort label-7011
SELECT - 69 * - CASE + - SUM ( ALL - 51 ) WHEN + 49 THEN - 62 WHEN AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) + + 19 * - 79 THEN 22 ELSE + 5 END + - 32
----
313

onlyif mysql # DIV for integer division: 
query I rowsort label-7012
SELECT ALL 6 * + + 6 DIV - - 69 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7012
SELECT ALL 6 * + + 6 / - - 69 AS col2
----
0

query I rowsort
SELECT + NULLIF ( + 31, + - 44 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7014
SELECT CASE + 91 WHEN + + 82 THEN + - COALESCE ( + ( + 93 ), - COUNT( * ) ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7014
SELECT CASE + 91 WHEN + + 82 THEN + - COALESCE ( + ( + 93 ), - COUNT ( * ) ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + NULLIF ( + - 92, - 7 * - 63 ) col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7016
SELECT ALL - COUNT( * ) * 28 AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-7016
SELECT ALL - COUNT ( * ) * 28 AS col2
----
-28

query I rowsort
SELECT - 88 + + 17 AS col0
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7018
SELECT DISTINCT 93 DIV - MIN( + - 13 ) col2
----
7

skipif mysql # not compatible
query I rowsort label-7018
SELECT DISTINCT 93 / - MIN ( + - 13 ) col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7019
SELECT + CASE + COALESCE ( - 17, + 11 - + + AVG ( - 46 ) ) WHEN 73 / + 66 * COUNT( * ) - + 58 + 70 THEN NULL WHEN - 25 THEN NULL ELSE - 27 + 88 * - 16 END
----
-1435

skipif mysql # not compatible
query I rowsort label-7019
SELECT + CASE + COALESCE ( - 17, + 11 - + + AVG ( - 46 ) ) WHEN 73 / + 66 * COUNT ( * ) - + 58 + 70 THEN NULL WHEN - 25 THEN NULL ELSE - 27 + 88 * - 16 END
----
-1435

query I rowsort
SELECT ALL - 10 * 21 * + 80
----
-16800

onlyif mysql # DIV for integer division: 
query I rowsort label-7021
SELECT + 34 DIV - - 52
----
0

skipif mysql # not compatible
query I rowsort label-7021
SELECT + 34 / - - 52
----
0

query I rowsort
SELECT - 15 * + + 57 AS col1
----
-855

query III rowsort
SELECT - 63 AS col1, 97 * - 32 AS col0, - 77
----
-63
-3104
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7024
SELECT - 82 * - 86 + COUNT( * ) AS col2
----
7053

skipif mysql # not compatible
query I rowsort label-7024
SELECT - 82 * - 86 + COUNT ( * ) AS col2
----
7053

query I rowsort
SELECT ALL + NULLIF ( - - 29, - + 10 ) AS col2
----
29

query I rowsort
SELECT DISTINCT - 38 * ( + 83 ) * - - 16 + - 60 * + 26
----
-52024

query II rowsort
SELECT ALL + + 7 AS col1, + 53 + - - 8
----
7
61

query I rowsort
SELECT ALL 61 * + + 8 + 75
----
563

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7029
SELECT DISTINCT - 66 * 54 + - CAST( NULL AS SIGNED ) + + 90 + - + 72 col0, 35 col1
----
NULL
35

skipif mysql # not compatible
query II rowsort label-7029
SELECT DISTINCT - 66 * 54 + - CAST ( NULL AS INTEGER ) + + 90 + - + 72 col0, 35 col1
----
NULL
35

query I rowsort
SELECT ALL + 30 * + + 92 * + - 83 + + 18 AS col1
----
-229062

query I rowsort
SELECT - 18 * - 12 * + - 31 + 70
----
-6626

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7032
SELECT DISTINCT 25 col2, MIN( DISTINCT + 63 ) DIV 1 AS col0
----
25
63

skipif mysql # not compatible
query II rowsort label-7032
SELECT DISTINCT 25 col2, MIN ( DISTINCT + 63 ) / 1 AS col0
----
25
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7033
SELECT DISTINCT + COUNT( - - 78 )
----
1

skipif mysql # not compatible
query I rowsort label-7033
SELECT DISTINCT + COUNT ( - - 78 )
----
1

query I rowsort
SELECT ALL + + 73 + - 7
----
66

query I rowsort
SELECT - + 63 - + ( 24 ) AS col0
----
-87

query I rowsort
SELECT - CASE + 9 WHEN 8 + 33 THEN - 40 WHEN - + 58 - 61 THEN + ( - 32 ) END AS col0
----
NULL

query I rowsort
SELECT - - ( + + 99 ) - + - 33
----
132

query I rowsort
SELECT ALL - 83 + + 73 * 21 AS col1
----
1450

onlyif mysql # aggregate syntax: 
query I rowsort label-7039
SELECT ALL - 78 * - - COUNT( * ) * - - 41 * - + 60
----
191880

skipif mysql # not compatible
query I rowsort label-7039
SELECT ALL - 78 * - - COUNT ( * ) * - - 41 * - + 60
----
191880

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7040
SELECT DISTINCT 15, 12 / - CAST( NULL AS SIGNED ) - 60 AS col0
----
15
NULL

skipif mysql # not compatible
query II rowsort label-7040
SELECT DISTINCT 15, 12 / - CAST ( NULL AS INTEGER ) - 60 AS col0
----
15
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7041
SELECT ALL - 33 - - - 12 + + 0 * - 81 * + - 71 * - 80 * COUNT( ALL - 56 ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-7041
SELECT ALL - 33 - - - 12 + + 0 * - 81 * + - 71 * - 80 * COUNT ( ALL - 56 ) AS col1
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-7042
SELECT DISTINCT + 21 - + MAX( DISTINCT - 67 ) + - - 3, - 66 AS col0
----
91
-66

skipif mysql # not compatible
query II rowsort label-7042
SELECT DISTINCT + 21 - + MAX ( DISTINCT - 67 ) + - - 3, - 66 AS col0
----
91
-66

query II rowsort
SELECT DISTINCT 39, 11 + 57 + - 65 AS col2
----
39
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7044
SELECT - 54 + - 62 + + - 88 + - + 8 * - CAST( NULL AS SIGNED ) * + + ( + + 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7044
SELECT - 54 + - 62 + + - 88 + - + 8 * - CAST ( NULL AS INTEGER ) * + + ( + + 30 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7045
SELECT ALL CAST ( - + 11 AS INTEGER ) AS col1
----
-11

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7046
SELECT - 31 + + 22 + - + COALESCE ( + CAST( NULL AS SIGNED ), 32 + - + 5 + - 27 * 28, - + 53 DIV + 18, - NULLIF ( 55, + 19 * 94 - 49 ) ) AS col2
----
720

skipif mysql # not compatible
query I rowsort label-7046
SELECT - 31 + + 22 + - + COALESCE ( + CAST ( NULL AS INTEGER ), 32 + - + 5 + - 27 * 28, - + 53 / + 18, - NULLIF ( 55, + 19 * 94 - 49 ) ) AS col2
----
720

query I rowsort
SELECT + 36 - + 47 + + 81
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7048
SELECT - 48 * CASE + + CAST( 90 AS SIGNED ) WHEN NULLIF ( + 89, + 60 ) * 34 - - ( + 77 ) * - 32 THEN 40 * + 25 WHEN 53 + 74 THEN NULL ELSE NULL END / - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-7048
SELECT - 48 * CASE + + CAST ( 90 AS INTEGER ) WHEN NULLIF ( + 89, + 60 ) * 34 - - ( + 77 ) * - 32 THEN 40 * + 25 WHEN 53 + 74 THEN NULL ELSE NULL END / - 67
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7049
SELECT DISTINCT CASE - 5 WHEN SUM( + 51 ) THEN NULL ELSE + + 16 END DIV 37 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7049
SELECT DISTINCT CASE - 5 WHEN SUM ( + 51 ) THEN NULL ELSE + + 16 END / 37 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7050
SELECT - 24 * + 57 AS col1, COUNT( * ) + - 5 * + + 56 * - 0 AS col2
----
-1368
1

skipif mysql # not compatible
query II rowsort label-7050
SELECT - 24 * + 57 AS col1, COUNT ( * ) + - 5 * + + 56 * - 0 AS col2
----
-1368
1

query I rowsort
SELECT - ( + 60 ) col0
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-7052
SELECT ALL 95 DIV 99 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7052
SELECT ALL 95 / 99 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7053
SELECT - 0 + + 15 * 10 * - 61 * + COUNT( * ) * - 82 AS col0, + 6 AS col1
----
750300
6

skipif mysql # not compatible
query II rowsort label-7053
SELECT - 0 + + 15 * 10 * - 61 * + COUNT ( * ) * - 82 AS col0, + 6 AS col1
----
750300
6

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7054
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col1, + 36 * + 21 * + - 15 AS col1, - 77
----
NULL
-11340
-77

skipif mysql # not compatible
query III rowsort label-7054
SELECT DISTINCT CAST ( NULL AS REAL ) AS col1, + 36 * + 21 * + - 15 AS col1, - 77
----
NULL
-11340
-77

query II rowsort
SELECT + 77 + + 64 AS col1, 16 * - 46
----
141
-736

onlyif mysql # aggregate syntax: 
query II rowsort label-7056
SELECT DISTINCT + 25, - 87 + + COUNT( * ) AS col0
----
25
-86

skipif mysql # not compatible
query II rowsort label-7056
SELECT DISTINCT + 25, - 87 + + COUNT ( * ) AS col0
----
25
-86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7057
SELECT DISTINCT + 99, 46 * + CASE - CAST( 59 AS SIGNED ) WHEN + 81 - 44 / 12 * CAST( - 35 AS SIGNED ) + 24 THEN - 91 * 3 + + 80 ELSE NULL END AS col0
----
99
NULL

skipif mysql # not compatible
query II rowsort label-7057
SELECT DISTINCT + 99, 46 * + CASE - CAST ( 59 AS INTEGER ) WHEN + 81 - 44 / 12 * CAST ( - 35 AS INTEGER ) + 24 THEN - 91 * 3 + + 80 ELSE NULL END AS col0
----
99
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7058
SELECT ALL + 38 AS col1, SUM( DISTINCT - - 70 )
----
38
70

skipif mysql # not compatible
query II rowsort label-7058
SELECT ALL + 38 AS col1, SUM ( DISTINCT - - 70 )
----
38
70

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7060
SELECT + 64 * + ( - + 21 ) * - 87 AS col2, - 65 - - - ( - 67 ) + - - 95 * - + 44 + - COUNT( * ) + - 1 DIV 24 AS col2
----
116928
-4179

skipif mysql # not compatible
query II rowsort label-7060
SELECT + 64 * + ( - + 21 ) * - 87 AS col2, - 65 - - - ( - 67 ) + - - 95 * - + 44 + - COUNT ( * ) + - 1 / 24 AS col2
----
116928
-4179

query I rowsort
SELECT + 26 * + 28 * + 78 + - 41 AS col2
----
56743

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7062
SELECT + CASE - 62 WHEN + + 22 * 56 * + CAST( 30 AS SIGNED ) THEN NULL WHEN + COUNT( * ) THEN + 24 - + - 81 WHEN COUNT( * ) * + 83 THEN NULL ELSE - 98 END
----
-98

skipif mysql # not compatible
query I rowsort label-7062
SELECT + CASE - 62 WHEN + + 22 * 56 * + CAST ( 30 AS INTEGER ) THEN NULL WHEN + COUNT ( * ) THEN + 24 - + - 81 WHEN COUNT ( * ) * + 83 THEN NULL ELSE - 98 END
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-7063
SELECT + 16 DIV 58 DIV - - NULLIF ( + 28, + AVG ( + 87 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7063
SELECT + 16 / 58 / - - NULLIF ( + 28, + AVG ( + 87 ) ) AS col2
----
0

query II rowsort
SELECT + 36 AS col1, - 64
----
36
-64

query I rowsort
SELECT + 52 + ( 12 ) AS col2
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-7066
SELECT ALL 9 DIV 36 - - 55 + - 84 + - 32 AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-7066
SELECT ALL 9 / 36 - - 55 + - 84 + - 32 AS col1
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7067
SELECT ALL - 50 / 74 * CAST( NULL AS SIGNED ) * + - ( + 59 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7067
SELECT ALL - 50 / 74 * CAST ( NULL AS INTEGER ) * + - ( + 59 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7068
SELECT 48 DIV - + 64 col1
----
0

skipif mysql # not compatible
query I rowsort label-7068
SELECT 48 / - + 64 col1
----
0

query I rowsort
SELECT ALL 36 + + 48 - 18
----
66

query I rowsort
SELECT 78 - - 54
----
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7071
SELECT 53 * NULLIF ( - CAST( NULL AS SIGNED ), 85 ) + NULLIF ( 71, + + 42 ) / - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-7071
SELECT 53 * NULLIF ( - CAST ( NULL AS INTEGER ), 85 ) + NULLIF ( 71, + + 42 ) / - 89
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7073
SELECT ( + MIN( DISTINCT - 92 ) ) * CAST( + + 41 AS SIGNED ) + - 4
----
-3776

skipif mysql # not compatible
query I rowsort label-7073
SELECT ( + MIN ( DISTINCT - 92 ) ) * CAST ( + + 41 AS INTEGER ) + - 4
----
-3776

onlyif mysql # aggregate syntax: 
query I rowsort label-7074
SELECT + SUM( + 78 ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-7074
SELECT + SUM ( + 78 ) AS col1
----
78

query I rowsort
SELECT 17 + 66 AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7076
SELECT ALL - CASE 94 WHEN SUM( + + 89 ) THEN NULL ELSE + + 88 END + - 20 + + - 7 * + COUNT( * )
----
-115

skipif mysql # not compatible
query I rowsort label-7076
SELECT ALL - CASE 94 WHEN SUM ( + + 89 ) THEN NULL ELSE + + 88 END + - 20 + + - 7 * + COUNT ( * )
----
-115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7077
SELECT + 55 + + - MAX( ALL - - CAST( NULL AS SIGNED ) ) - + 48 / + - 69 * - 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7077
SELECT + 55 + + - MAX ( ALL - - CAST ( NULL AS INTEGER ) ) - + 48 / + - 69 * - 3 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7078
SELECT - CASE - 33 WHEN + CAST( - + ( - 24 ) AS SIGNED ) / + CASE 53 WHEN 93 + + 13 + - 80 + - 90 / COUNT( - 68 * + 81 ) THEN NULL WHEN COALESCE ( + 73, - 81, 50 ) + 95 THEN NULL WHEN 7 * ( COUNT( * ) ) THEN - 80 + CAST( NULL AS SIGNED ) ELSE ( - 59 ) END * 45 THEN - 34 / 51 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7078
SELECT - CASE - 33 WHEN + CAST ( - + ( - 24 ) AS INTEGER ) / + CASE 53 WHEN 93 + + 13 + - 80 + - 90 / COUNT ( - 68 * + 81 ) THEN NULL WHEN COALESCE ( + 73, - 81, 50 ) + 95 THEN NULL WHEN 7 * ( COUNT ( * ) ) THEN - 80 + CAST ( NULL AS INTEGER ) ELSE ( - 59 ) END * 45 THEN - 34 / 51 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7079
SELECT - + 82 * + 17 - + - 42 * - + MIN( ALL - + 92 ) * + - 96 + - - 63
----
-372275

skipif mysql # not compatible
query I rowsort label-7079
SELECT - + 82 * + 17 - + - 42 * - + MIN ( ALL - + 92 ) * + - 96 + - - 63
----
-372275

query II rowsort
SELECT ALL + 53, NULLIF ( + 82, - 82 ) AS col0
----
53
82

query I rowsort
SELECT 96 + + - 16 * - 92
----
1568

onlyif mysql # aggregate syntax: 
query I rowsort label-7082
SELECT ALL 52 - + MIN( - - 43 )
----
9

skipif mysql # not compatible
query I rowsort label-7082
SELECT ALL 52 - + MIN ( - - 43 )
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-7083
SELECT ALL - ( - ( - - MIN( + 17 ) ) ) col2, + 91 AS col1
----
17
91

skipif mysql # not compatible
query II rowsort label-7083
SELECT ALL - ( - ( - - MIN ( + 17 ) ) ) col2, + 91 AS col1
----
17
91

query II rowsort
SELECT ALL - 86 AS col0, + 10 AS col1
----
-86
10

query I rowsort
SELECT ALL + - 46 - + 19
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7086
SELECT ( COALESCE ( - 8, - - MAX( 91 ) + COUNT( * ) - - - COUNT( * ) * + - 44, + 31 * - 35 * + 7 * 83 ) )
----
-8

skipif mysql # not compatible
query I rowsort label-7086
SELECT ( COALESCE ( - 8, - - MAX ( 91 ) + COUNT ( * ) - - - COUNT ( * ) * + - 44, + 31 * - 35 * + 7 * 83 ) )
----
-8

query II rowsort
SELECT - 27 AS col2, + 8 AS col0
----
-27
8

query II rowsort
SELECT 36 AS col2, 92 + + 86 * - ( + 59 )
----
36
-4982

onlyif mysql # aggregate syntax: 
query I rowsort label-7089
SELECT COUNT( * ) * - - 29 AS col2
----
29

skipif mysql # not compatible
query I rowsort label-7089
SELECT COUNT ( * ) * - - 29 AS col2
----
29

query I rowsort
SELECT 52 + - - 9
----
61

query II rowsort
SELECT 61 + + - 61 AS col0, 2 * + 63 AS col0
----
0
126

onlyif mysql # DIV for integer division: 
query II rowsort label-7092
SELECT ALL - 45 DIV + 26 AS col2, 36
----
-1
36

skipif mysql # not compatible
query II rowsort label-7092
SELECT ALL - 45 / + 26 AS col2, 36
----
-1
36

onlyif mysql # aggregate syntax: 
query II rowsort label-7093
SELECT 68 * - 86 * + - COUNT( * ) AS col0, + ( + 6 )
----
5848
6

skipif mysql # not compatible
query II rowsort label-7093
SELECT 68 * - 86 * + - COUNT ( * ) AS col0, + ( + 6 )
----
5848
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7094
SELECT 48 + - 56 + + 97 - - MAX( ALL 8 ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-7094
SELECT 48 + - 56 + + 97 - - MAX ( ALL 8 ) AS col1
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7095
SELECT ALL + CAST( NULL AS SIGNED ) * + 72 * - - 52, 23 + - 56 AS col1
----
NULL
-33

skipif mysql # not compatible
query II rowsort label-7095
SELECT ALL + CAST ( NULL AS INTEGER ) * + 72 * - - 52, 23 + - 56 AS col1
----
NULL
-33

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

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

query I rowsort
SELECT DISTINCT + 27 * + 37 AS col2
----
999

query I rowsort
SELECT 41 - + + 2 * + - 54 AS col1
----
149

onlyif mysql # DIV for integer division: 
query I rowsort label-7099
SELECT 48 DIV + + 88
----
0

skipif mysql # not compatible
query I rowsort label-7099
SELECT 48 / + + 88
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7100
SELECT SUM( + + 93 ) + 37 AS col2
----
130

skipif mysql # not compatible
query I rowsort label-7100
SELECT SUM ( + + 93 ) + 37 AS col2
----
130

query I rowsort
SELECT DISTINCT + 1 + - - 7 * - 3
----
-20

query II rowsort
SELECT ALL - 37 + 29 AS col2, 55
----
-8
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7103
SELECT ALL + 83 + - + COUNT( DISTINCT - 10 ) + + 31 - + - 75 AS col1
----
188

skipif mysql # not compatible
query I rowsort label-7103
SELECT ALL + 83 + - + COUNT ( DISTINCT - 10 ) + + 31 - + - 75 AS col1
----
188

query I rowsort
SELECT DISTINCT - 56 + - 21 * - 80 AS col0
----
1624

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7105
SELECT ( - 58 ) DIV + + ( NULLIF ( 41, - + COALESCE ( - CAST( 72 AS SIGNED ), 69 ) + + 34 ) ) - - 87 + - CAST( + 73 AS SIGNED ) * 74
----
-5316

skipif mysql # not compatible
query I rowsort label-7105
SELECT ( - 58 ) / + + ( NULLIF ( 41, - + COALESCE ( - CAST ( 72 AS INTEGER ), 69 ) + + 34 ) ) - - 87 + - CAST ( + 73 AS INTEGER ) * 74
----
-5316

onlyif mysql # aggregate syntax: 
query I rowsort label-7106
SELECT 83 * MAX( - 55 )
----
-4565

skipif mysql # not compatible
query I rowsort label-7106
SELECT 83 * MAX ( - 55 )
----
-4565

query I rowsort
SELECT ALL + - 7 + - 57 + - 11
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7108
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 98, + ( + + 55 ) col2
----
NULL
55

skipif mysql # not compatible
query II rowsort label-7108
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 98, + ( + + 55 ) col2
----
NULL
55

query I rowsort
SELECT ALL + 63 + 64
----
127

query I rowsort
SELECT ALL 94 + - 91 AS col0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7111
SELECT ALL - CASE + - 59 WHEN + 63 THEN 14 DIV - - NULLIF ( + + 16, 50 - - + COUNT( * ) * - 39 ) * 83 + - - COUNT( * ) + + + 93 ELSE - 36 + + COUNT( * ) END
----
35

skipif mysql # not compatible
query I rowsort label-7111
SELECT ALL - CASE + - 59 WHEN + 63 THEN 14 / - - NULLIF ( + + 16, 50 - - + COUNT ( * ) * - 39 ) * 83 + - - COUNT ( * ) + + + 93 ELSE - 36 + + COUNT ( * ) END
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT DISTINCT 51 * - 72 * - COUNT( * )
----
3672

skipif mysql # not compatible
query I rowsort label-7112
SELECT DISTINCT 51 * - 72 * - COUNT ( * )
----
3672

query I rowsort
SELECT DISTINCT + 0 * - + 7 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7114
SELECT ALL - + COALESCE ( + COUNT( * ), + - 27 + - 28 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7114
SELECT ALL - + COALESCE ( + COUNT ( * ), + - 27 + - 28 ) AS col0
----
-1

query I rowsort
SELECT 44 + - 63 + - 91 AS col0
----
-110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7116
SELECT CASE - + 20 WHEN - 46 THEN - 58 * + 2 + - CAST( NULL AS SIGNED ) * 0 WHEN + 93 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7116
SELECT CASE - + 20 WHEN - 46 THEN - 58 * + 2 + - CAST ( NULL AS INTEGER ) * 0 WHEN + 93 THEN NULL END
----
NULL

query I rowsort
SELECT ALL NULLIF ( + 11, - 86 ) AS col1
----
11

query I rowsort
SELECT + 31 * + 50 + - 44 AS col2
----
1506

onlyif mysql # aggregate syntax: 
query II rowsort label-7119
SELECT 21 * - - 37 AS col1, 92 * + 28 + - COUNT( * )
----
777
2575

skipif mysql # not compatible
query II rowsort label-7119
SELECT 21 * - - 37 AS col1, 92 * + 28 + - COUNT ( * )
----
777
2575

onlyif mysql # aggregate syntax: 
query I rowsort label-7120
SELECT ( - COUNT( DISTINCT - + 34 ) ) * - + 88 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-7120
SELECT ( - COUNT ( DISTINCT - + 34 ) ) * - + 88 AS col2
----
88

query I rowsort
SELECT 61 * 20 col1
----
1220

onlyif mysql # aggregate syntax: 
query I rowsort label-7122
SELECT ( + SUM( - 25 ) ) - + COUNT( * ) + 55
----
29

skipif mysql # not compatible
query I rowsort label-7122
SELECT ( + SUM ( - 25 ) ) - + COUNT ( * ) + 55
----
29

query I rowsort
SELECT DISTINCT 36 * 11
----
396

query I rowsort
SELECT ALL - 41 * 53 AS col2
----
-2173

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7125
SELECT NULLIF ( - 57, + CASE 5 WHEN + + CASE + SUM( - 24 ) WHEN + MIN( DISTINCT - CAST( - 38 AS DECIMAL ) ) THEN 62 * SUM( - - 52 ) * - 3 WHEN 5 THEN NULL ELSE NULL END THEN NULL WHEN ( + 76 ) + 77 THEN CASE COALESCE ( - 99, COUNT( * ) * - 25 ) WHEN COUNT( * ) * COUNT( * ) THEN 60 ELSE NULL END END ) * 10 AS col1
----
-570

skipif mysql # not compatible
query I rowsort label-7125
SELECT NULLIF ( - 57, + CASE 5 WHEN + + CASE + SUM ( - 24 ) WHEN + MIN ( DISTINCT - CAST ( - 38 AS REAL ) ) THEN 62 * SUM ( - - 52 ) * - 3 WHEN 5 THEN NULL ELSE NULL END THEN NULL WHEN ( + 76 ) + 77 THEN CASE COALESCE ( - 99, COUNT ( * ) * - 25 ) WHEN COUNT ( * ) * COUNT ( * ) THEN 60 ELSE NULL END END ) * 10 AS col1
----
-570

onlyif mysql # aggregate syntax: 
query I rowsort label-7126
SELECT 61 * + NULLIF ( + 8, COALESCE ( - - 4, - 59, - 73 * - - 98 - + 91 + - 48 - COUNT( * ) * - - COUNT( * ) * COUNT( * ) + - 53 * 3 ) ) AS col2
----
488

skipif mysql # not compatible
query I rowsort label-7126
SELECT 61 * + NULLIF ( + 8, COALESCE ( - - 4, - 59, - 73 * - - 98 - + 91 + - 48 - COUNT ( * ) * - - COUNT ( * ) * COUNT ( * ) + - 53 * 3 ) ) AS col2
----
488

onlyif mysql # aggregate syntax: 
query I rowsort label-7127
SELECT ALL MAX( ALL 4 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-7127
SELECT ALL MAX ( ALL 4 ) AS col0
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-7128
SELECT 41 + + - COUNT( DISTINCT - 82 ), 25 AS col0
----
40
25

skipif mysql # not compatible
query II rowsort label-7128
SELECT 41 + + - COUNT ( DISTINCT - 82 ), 25 AS col0
----
40
25

query I rowsort
SELECT 77 - + 78 AS col0
----
-1

query I rowsort
SELECT DISTINCT + 23 + 28 AS col0
----
51

query I rowsort
SELECT ( + - 19 ) + + - 6 AS col0
----
-25

query I rowsort
SELECT 86 - - - 29
----
57

query I rowsort
SELECT ALL + 14 + - COALESCE ( - 49, + - 91 ) * - - 20
----
994

query I rowsort
SELECT 93 * 38 * - 0 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7135
SELECT ALL - 51 + + + 72 DIV COALESCE ( - 82, + 88 )
----
-51

skipif mysql # not compatible
query I rowsort label-7135
SELECT ALL - 51 + + + 72 / COALESCE ( - 82, + 88 )
----
-51

query I rowsort
SELECT DISTINCT 76 + - 34 AS col0
----
42

query I rowsort
SELECT - 64 + + + ( + 18 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7138
SELECT ALL COUNT( * ) * COUNT( * ) + + 64 + - 40 col1
----
25

skipif mysql # not compatible
query I rowsort label-7138
SELECT ALL COUNT ( * ) * COUNT ( * ) + + 64 + - 40 col1
----
25

query I rowsort
SELECT DISTINCT + 97 * 51
----
4947

query I rowsort
SELECT ALL + - 66 * 47 * - 10 + 19
----
31039

query I rowsort
SELECT - + 28 * + 60 + + 78 + + - 59
----
-1661

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

skipif mysql # not compatible
query I rowsort label-7142
SELECT - - 17 + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7143
SELECT - 57 DIV 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7143
SELECT - 57 / 79 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7144
SELECT + 59 * - 64 + + 59 DIV + + 23 + - 26 - + - NULLIF ( 27, + COUNT( * ) ) * - NULLIF ( - COUNT( ALL 56 ), + + AVG ( DISTINCT + - 82 ) )
----
-3773

skipif mysql # not compatible
query I rowsort label-7144
SELECT + 59 * - 64 + + 59 / + + 23 + - 26 - + - NULLIF ( 27, + COUNT ( * ) ) * - NULLIF ( - COUNT ( ALL 56 ), + + AVG ( DISTINCT + - 82 ) )
----
-3773

query I rowsort
SELECT ALL + + ( + 62 ) AS col0
----
62

query I rowsort
SELECT - 14 * + ( + 50 )
----
-700

onlyif mysql # aggregate syntax: 
query I rowsort label-7147
SELECT 51 * + COUNT( * ) + - - 95 col0
----
146

skipif mysql # not compatible
query I rowsort label-7147
SELECT 51 * + COUNT ( * ) + - - 95 col0
----
146

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

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

query I rowsort
SELECT ALL 50 * 46 - + 59
----
2241

onlyif mysql # aggregate syntax: 
query I rowsort label-7150
SELECT ALL - 15 * - 91 - + - CASE MIN( - 21 ) WHEN - 34 THEN + 45 + - + 39 END + 39 + + 55 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7150
SELECT ALL - 15 * - 91 - + - CASE MIN ( - 21 ) WHEN - 34 THEN + 45 + - + 39 END + 39 + + 55 + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7151
SELECT + - 10 + - AVG ( + 43 ) * 74 + + 48 + 27 * - + 9 + CASE - 26 WHEN + - COUNT( * ) * - ( - ( + COUNT( * ) ) ) / CASE + 22 + + 3 * - CAST( + 75 * 9 AS SIGNED ) WHEN + 68 THEN + 94 ELSE 61 / 82 + + 27 * - ( + COALESCE ( + 76, + 54 ) * 26 + - COUNT( * ) ) END + - 22 * + 37 THEN + 82 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7151
SELECT + - 10 + - AVG ( + 43 ) * 74 + + 48 + 27 * - + 9 + CASE - 26 WHEN + - COUNT ( * ) * - ( - ( + COUNT ( * ) ) ) / CASE + 22 + + 3 * - CAST ( + 75 * 9 AS INTEGER ) WHEN + 68 THEN + 94 ELSE 61 / 82 + + 27 * - ( + COALESCE ( + 76, + 54 ) * 26 + - COUNT ( * ) ) END + - 22 * + 37 THEN + 82 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7152
SELECT + COUNT( * ), + COALESCE ( - 93, + 45 * - 48 ) AS col2
----
1
-93

skipif mysql # not compatible
query II rowsort label-7152
SELECT + COUNT ( * ), + COALESCE ( - 93, + 45 * - 48 ) AS col2
----
1
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7153
SELECT CASE + 59 WHEN 7 THEN - 86 + + - AVG ( 98 ) ELSE NULLIF ( - 26, - - COUNT( * ) ) + - 14 END AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-7153
SELECT CASE + 59 WHEN 7 THEN - 86 + + - AVG ( 98 ) ELSE NULLIF ( - 26, - - COUNT ( * ) ) + - 14 END AS col2
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7154
SELECT + COUNT( DISTINCT - 54 ) * + COALESCE ( + + 98, - ( + + COUNT( ALL + + 59 ) ) DIV - 40, - COUNT( * ) ) + + 78 col2
----
176

skipif mysql # not compatible
query I rowsort label-7154
SELECT + COUNT ( DISTINCT - 54 ) * + COALESCE ( + + 98, - ( + + COUNT ( ALL + + 59 ) ) / - 40, - COUNT ( * ) ) + + 78 col2
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-7155
SELECT + + ( 29 ) * + CASE AVG ( DISTINCT + 43 ) WHEN - 22 THEN NULL ELSE - + COUNT( * ) END * COUNT( - 15 )
----
-29

skipif mysql # not compatible
query I rowsort label-7155
SELECT + + ( 29 ) * + CASE AVG ( DISTINCT + 43 ) WHEN - 22 THEN NULL ELSE - + COUNT ( * ) END * COUNT ( - 15 )
----
-29

query I rowsort
SELECT - - 66 * - - 7 * - 31 - 12 + - + 89 AS col1
----
-14423

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7157
SELECT + COUNT( * ) + + COUNT( * ) / + 8 * 13 + - CAST( NULL AS SIGNED ) / + + 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7157
SELECT + COUNT ( * ) + + COUNT ( * ) / + 8 * 13 + - CAST ( NULL AS INTEGER ) / + + 92 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7158
SELECT DISTINCT ( 57 ) AS col0, COALESCE ( - 98, - ( + 85 ) + 84 * + 17 DIV + - ( - MIN( + 25 ) ) * - 90 - + 99 + + 5 )
----
57
-98

skipif mysql # not compatible
query II rowsort label-7158
SELECT DISTINCT ( 57 ) AS col0, COALESCE ( - 98, - ( + 85 ) + 84 * + 17 / + - ( - MIN ( + 25 ) ) * - 90 - + 99 + + 5 )
----
57
-98

query I rowsort
SELECT + ( + - 98 ) * + 30
----
-2940

onlyif mysql # aggregate syntax: 
query I rowsort label-7160
SELECT ALL COUNT( DISTINCT - 14 ) + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7160
SELECT ALL COUNT ( DISTINCT - 14 ) + - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT DISTINCT MAX( - + 58 ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-7161
SELECT DISTINCT MAX ( - + 58 ) AS col0
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-7162
SELECT + 18 DIV + 32 * 9 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7162
SELECT + 18 / + 32 * 9 AS col2
----
0

query II rowsort
SELECT + 24 + + 32 AS col1, 65 * - 62
----
56
-4030

query I rowsort
SELECT ALL 29 + - - 36 - - - 68 * + ( 97 )
----
-6531

onlyif mysql # aggregate syntax: 
query I rowsort label-7165
SELECT - ( SUM( - + 1 ) ) + + 97 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-7165
SELECT - ( SUM ( - + 1 ) ) + + 97 AS col0
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-7166
SELECT + 88 * 84 DIV 72 AS col0
----
102

skipif mysql # not compatible
query I rowsort label-7166
SELECT + 88 * 84 / 72 AS col0
----
102

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7167
SELECT ALL 94 + - 94 * + CASE + + COUNT( * ) WHEN - COUNT( * ) + + COUNT( * ) THEN + - 37 WHEN - + 7 * + + 42 + - 79 - - AVG ( DISTINCT + CAST( NULL AS DECIMAL ) ) - 75 + + 84 * 96 THEN + AVG ( DISTINCT - 12 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7167
SELECT ALL 94 + - 94 * + CASE + + COUNT ( * ) WHEN - COUNT ( * ) + + COUNT ( * ) THEN + - 37 WHEN - + 7 * + + 42 + - 79 - - AVG ( DISTINCT + CAST ( NULL AS REAL ) ) - 75 + + 84 * 96 THEN + AVG ( DISTINCT - 12 ) END AS col0
----
NULL

query I rowsort
SELECT + ( + 30 ) * 70 col0
----
2100

onlyif mysql # aggregate syntax: 
query II rowsort label-7169
SELECT ALL - COUNT( * ) + + - 39, - COUNT( * ) - - 89 AS col2
----
-40
88

skipif mysql # not compatible
query II rowsort label-7169
SELECT ALL - COUNT ( * ) + + - 39, - COUNT ( * ) - - 89 AS col2
----
-40
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7170
SELECT - COALESCE ( - 12, - COUNT( + 72 ) ) col0
----
12

skipif mysql # not compatible
query I rowsort label-7170
SELECT - COALESCE ( - 12, - COUNT ( + 72 ) ) col0
----
12

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7172
SELECT ALL - 56 DIV - 64 - - 53 DIV 97 col0, 50 * + + 23 AS col2
----
0
1150

skipif mysql # not compatible
query II rowsort label-7172
SELECT ALL - 56 / - 64 - - 53 / 97 col0, 50 * + + 23 AS col2
----
0
1150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7173
SELECT - ( - - CASE - ( 44 ) WHEN - - COUNT( * ) THEN + COUNT( * ) - 87 + ( CASE + 41 WHEN + COUNT( * ) - - - 75 THEN + 93 + - 0 * 80 WHEN - COUNT( * ) THEN NULL END ) + + 36 END ) / 7 + CAST( 2 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7173
SELECT - ( - - CASE - ( 44 ) WHEN - - COUNT ( * ) THEN + COUNT ( * ) - 87 + ( CASE + 41 WHEN + COUNT ( * ) - - - 75 THEN + 93 + - 0 * 80 WHEN - COUNT ( * ) THEN NULL END ) + + 36 END ) / 7 + CAST ( 2 AS INTEGER )
----
NULL

query I rowsort
SELECT + 12 * 21 + + + 37
----
289

query I rowsort
SELECT ALL + 11 * 60 AS col0
----
660

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7176
SELECT - - 84 DIV - 34 - + COUNT( 69 ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-7176
SELECT - - 84 / - 34 - + COUNT ( 69 ) AS col0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-7177
SELECT DISTINCT - CASE + - 60 WHEN 5 THEN NULL WHEN - 23 * - - COUNT( * ) THEN - - 25 END * + COUNT( * ), 13 col0
----
NULL
13

skipif mysql # not compatible
query II rowsort label-7177
SELECT DISTINCT - CASE + - 60 WHEN 5 THEN NULL WHEN - 23 * - - COUNT ( * ) THEN - - 25 END * + COUNT ( * ), 13 col0
----
NULL
13

onlyif mysql # aggregate syntax: 
query II rowsort label-7178
SELECT ALL - 61 * + 40, COUNT( * ) AS col0
----
-2440
1

skipif mysql # not compatible
query II rowsort label-7178
SELECT ALL - 61 * + 40, COUNT ( * ) AS col0
----
-2440
1

query II rowsort
SELECT ALL - + 35 * 98 col1, 11 AS col1
----
-3430
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7180
SELECT DISTINCT - 17 * - - COUNT( * ) * - - MAX( + + 28 ) + - 54
----
-530

skipif mysql # not compatible
query I rowsort label-7180
SELECT DISTINCT - 17 * - - COUNT ( * ) * - - MAX ( + + 28 ) + - 54
----
-530

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7181
SELECT - 15 * + - 38 * + + CAST( NULL AS SIGNED ) * - COUNT( * ) * 65 * - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-7181
SELECT - 15 * + - 38 * + + CAST ( NULL AS INTEGER ) * - COUNT ( * ) * 65 * - 4
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7182
SELECT - CASE + + 84 WHEN + 23 + + 23 THEN NULL ELSE + COALESCE ( - 98, - 21 * + ( - - 32 ) + + ( 29 ) ) + - + SUM( ALL - - 9 ) * + 6 + + 41 * - 47 END * - 66 AS col0
----
-137214

skipif mysql # not compatible
query I rowsort label-7182
SELECT - CASE + + 84 WHEN + 23 + + 23 THEN NULL ELSE + COALESCE ( - 98, - 21 * + ( - - 32 ) + + ( 29 ) ) + - + SUM ( ALL - - 9 ) * + 6 + + 41 * - 47 END * - 66 AS col0
----
-137214

query I rowsort
SELECT ALL + + 25 col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7184
SELECT + MIN( DISTINCT - 4 ) col0
----
-4

skipif mysql # not compatible
query I rowsort label-7184
SELECT + MIN ( DISTINCT - 4 ) col0
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7185
SELECT NULLIF ( + 13, 74 ) AS col2, - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1
----
13
NULL

skipif mysql # not compatible
query II rowsort label-7185
SELECT NULLIF ( + 13, 74 ) AS col2, - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1
----
13
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7186
SELECT NULLIF ( + + COUNT( * ), SUM( DISTINCT + 37 ) * ( - + 17 ) + + CASE - + ( - 73 ) WHEN - - 44 + + + 40 THEN + MIN( DISTINCT + 29 ) END * - 60 * - + 52 * + COUNT( * ) + + COALESCE ( - 39, CASE + 21 WHEN - 22 THEN COUNT( - 35 ) ELSE + 35 - + 92 END, - 27, 82 * + COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-7186
SELECT NULLIF ( + + COUNT ( * ), SUM ( DISTINCT + 37 ) * ( - + 17 ) + + CASE - + ( - 73 ) WHEN - - 44 + + + 40 THEN + MIN ( DISTINCT + 29 ) END * - 60 * - + 52 * + COUNT ( * ) + + COALESCE ( - 39, CASE + 21 WHEN - 22 THEN COUNT ( - 35 ) ELSE + 35 - + 92 END, - 27, 82 * + COUNT ( * ) ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7187
SELECT ALL 5 * - + CAST( NULL AS SIGNED ) + - 78 AS col2, 19 + - - NULLIF ( - - 1, + + 35 ) AS col0
----
NULL
20

skipif mysql # not compatible
query II rowsort label-7187
SELECT ALL 5 * - + CAST ( NULL AS INTEGER ) + - 78 AS col2, 19 + - - NULLIF ( - - 1, + + 35 ) AS col0
----
NULL
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7188
SELECT - COUNT( * ) * + 75 * COUNT( * ) + + - 40
----
-115

skipif mysql # not compatible
query I rowsort label-7188
SELECT - COUNT ( * ) * + 75 * COUNT ( * ) + + - 40
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-7189
SELECT CASE WHEN ( NULL ) NOT IN ( + COUNT( * ) ) THEN 34 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7189
SELECT CASE WHEN ( NULL ) NOT IN ( + COUNT ( * ) ) THEN 34 END AS col0
----
NULL

query I rowsort
SELECT - 18 + 14
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7191
SELECT ALL 48 * 74 + + - 59 AS col1, + 92 * CASE + MIN( + 26 ) WHEN + 69 * - + COUNT( * ) THEN NULL WHEN NULLIF ( + - 14, + COUNT( * ) / - 56 ) THEN + CAST( + + 68 AS SIGNED ) + 39 / 88 ELSE NULL END / 52 AS col1
----
3493
NULL

skipif mysql # not compatible
query II rowsort label-7191
SELECT ALL 48 * 74 + + - 59 AS col1, + 92 * CASE + MIN ( + 26 ) WHEN + 69 * - + COUNT ( * ) THEN NULL WHEN NULLIF ( + - 14, + COUNT ( * ) / - 56 ) THEN + CAST ( + + 68 AS INTEGER ) + 39 / 88 ELSE NULL END / 52 AS col1
----
3493
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7192
SELECT DISTINCT 89 * - + ( COUNT( * ) ) * - 57 + + CASE WHEN NOT - 74 IS NOT NULL THEN NULL ELSE MIN( DISTINCT CAST( NULL AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7192
SELECT DISTINCT 89 * - + ( COUNT ( * ) ) * - 57 + + CASE WHEN NOT - 74 IS NOT NULL THEN NULL ELSE MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7193
SELECT + 0 * CAST( + 52 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7193
SELECT + 0 * CAST ( + 52 AS INTEGER ) AS col1
----
0

query I rowsort
SELECT - 12 + - CASE + - 2 WHEN 90 THEN - 88 WHEN 86 THEN + + 5 WHEN + 40 * 44 THEN NULL ELSE NULL END + + 72 * - 48 + + 12 * - 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7195
SELECT ALL 60 * - 3 * MIN( - 34 ) + + + 31 AS col2
----
6151

skipif mysql # not compatible
query I rowsort label-7195
SELECT ALL 60 * - 3 * MIN ( - 34 ) + + + 31 AS col2
----
6151

onlyif mysql # aggregate syntax: 
query I rowsort label-7196
SELECT ALL + 51 + SUM( ALL 25 ) * - 84 * - ( - 81 )
----
-170049

skipif mysql # not compatible
query I rowsort label-7196
SELECT ALL + 51 + SUM ( ALL 25 ) * - 84 * - ( - 81 )
----
-170049

query I rowsort
SELECT DISTINCT - 97 * + + 93 AS col2
----
-9021

onlyif mysql # aggregate syntax: 
query I rowsort label-7198
SELECT 86 + - CASE + COUNT( DISTINCT + 56 ) WHEN - 43 - AVG ( - 86 ) THEN + 88 END - - 70 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7198
SELECT 86 + - CASE + COUNT ( DISTINCT + 56 ) WHEN - 43 - AVG ( - 86 ) THEN + 88 END - - 70 col2
----
NULL

query I rowsort
SELECT ALL 76 + 20 AS col2
----
96

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7201
SELECT ALL 40 DIV - - 50
----
0

skipif mysql # not compatible
query I rowsort label-7201
SELECT ALL 40 / - - 50
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7202
SELECT 82 * - COUNT( ALL 2 ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-7202
SELECT 82 * - COUNT ( ALL 2 ) AS col0
----
-82

query I rowsort
SELECT ALL 13 - + 32 AS col0
----
-19

query I rowsort
SELECT DISTINCT 18 * - 81 AS col2
----
-1458

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7205
SELECT + ( + 10 ) + SUM( ( - 71 ) ) DIV + 48 - - 5 + - 91 * - ( + 26 )
----
2380

skipif mysql # not compatible
query I rowsort label-7205
SELECT + ( + 10 ) + SUM ( ( - 71 ) ) / + 48 - - 5 + - 91 * - ( + 26 )
----
2380

query I rowsort
SELECT 40 + + 93 col1
----
133

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

skipif mysql # not compatible
query I rowsort label-7207
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * ( 71 ) + COUNT ( * ) + - 0 / + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7208
SELECT - 33 DIV - 74 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7208
SELECT - 33 / - 74 AS col0
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7210
SELECT 9 + NULLIF ( 1, COALESCE ( CAST( + - 55 AS SIGNED ), + 61 / + + 16 / - 3 - 40, - 20 * 97 + - 53 ) ) AS col1, 70 AS col2
----
10
70

skipif mysql # not compatible
query II rowsort label-7210
SELECT 9 + NULLIF ( 1, COALESCE ( CAST ( + - 55 AS INTEGER ), + 61 / + + 16 / - 3 - 40, - 20 * 97 + - 53 ) ) AS col1, 70 AS col2
----
10
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7211
SELECT + COUNT( * ) * CASE - CASE + 84 WHEN - + NULLIF ( - 76, 27 + - 23 ) THEN NULL ELSE - COUNT( * ) END WHEN - - 51 * + 39 THEN - CAST( AVG ( DISTINCT - + 36 ) AS SIGNED ) * + 13 DIV 19 ELSE 49 * 52 END
----
2548

skipif mysql # not compatible
query I rowsort label-7211
SELECT + COUNT ( * ) * CASE - CASE + 84 WHEN - + NULLIF ( - 76, 27 + - 23 ) THEN NULL ELSE - COUNT ( * ) END WHEN - - 51 * + 39 THEN - CAST ( AVG ( DISTINCT - + 36 ) AS INTEGER ) * + 13 / 19 ELSE 49 * 52 END
----
2548

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7212
SELECT + CAST( + MIN( + NULLIF ( - 85, - - 59 * - + 46 ) ) AS SIGNED ) * - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7212
SELECT + CAST ( + MIN ( + NULLIF ( - 85, - - 59 * - + 46 ) ) AS INTEGER ) * - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7213
SELECT ALL - - 8 + + - COUNT( * ) - + + SUM( 71 ) - COUNT( * ) * + + 59 * - - 60 * - 62 AS col0
----
219416

skipif mysql # not compatible
query I rowsort label-7213
SELECT ALL - - 8 + + - COUNT ( * ) - + + SUM ( 71 ) - COUNT ( * ) * + + 59 * - - 60 * - 62 AS col0
----
219416

query I rowsort
SELECT 19 + 95
----
114

query II rowsort
SELECT DISTINCT - 6 AS col0, 87 col1
----
-6
87

query I rowsort
SELECT DISTINCT - 36 + - - 30 AS col1
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7217
SELECT ALL - CASE 32 WHEN + SUM( - ( 30 ) ) * + 2 * - - 7 THEN - 83 * + 87 * + - ( + + 56 ) ELSE 79 DIV + 55 END + - 2 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-7217
SELECT ALL - CASE 32 WHEN + SUM ( - ( 30 ) ) * + 2 * - - 7 THEN - 83 * + 87 * + - ( + + 56 ) ELSE 79 / + 55 END + - 2 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7218
SELECT DISTINCT 19 + + MAX( - 54 )
----
-35

skipif mysql # not compatible
query I rowsort label-7218
SELECT DISTINCT 19 + + MAX ( - 54 )
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7219
SELECT COUNT( * ) DIV 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7219
SELECT COUNT ( * ) / 99 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7220
SELECT COUNT( * ) * - COALESCE ( + 4, - - ( + 74 ) ) + - 33 col2
----
-37

skipif mysql # not compatible
query I rowsort label-7220
SELECT COUNT ( * ) * - COALESCE ( + 4, - - ( + 74 ) ) + - 33 col2
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-7221
SELECT DISTINCT - COUNT( * ) AS col0, + 13 * - 57 + - 82 + + 69
----
-1
-754

skipif mysql # not compatible
query II rowsort label-7221
SELECT DISTINCT - COUNT ( * ) AS col0, + 13 * - 57 + - 82 + + 69
----
-1
-754

onlyif mysql # aggregate syntax: 
query I rowsort label-7222
SELECT ALL + 55 + - COUNT( * ) + + + ( - 43 ) * - - 78 AS col0
----
-3300

skipif mysql # not compatible
query I rowsort label-7222
SELECT ALL + 55 + - COUNT ( * ) + + + ( - 43 ) * - - 78 AS col0
----
-3300

query II rowsort
SELECT ALL 18 * - 77, + 24 AS col1
----
-1386
24

query I rowsort
SELECT 76 * + - 14 AS col2
----
-1064

query II rowsort
SELECT 13 AS col2, + 14 AS col0
----
13
14

onlyif mysql # aggregate syntax: 
query II rowsort label-7226
SELECT - 27 AS col1, COUNT( * ) * 75 + + 59 col1
----
-27
134

skipif mysql # not compatible
query II rowsort label-7226
SELECT - 27 AS col1, COUNT ( * ) * 75 + + 59 col1
----
-27
134

onlyif mysql # aggregate syntax: 
query I rowsort label-7227
SELECT 27 * COUNT( * ) * + 50
----
1350

skipif mysql # not compatible
query I rowsort label-7227
SELECT 27 * COUNT ( * ) * + 50
----
1350

query I rowsort
SELECT ALL - 48 * ( 26 ) AS col2
----
-1248

query I rowsort
SELECT ( + CASE + 53 WHEN - 42 THEN 61 WHEN + 56 / - + 18 + 12 THEN 34 + - 81 END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7230
SELECT - 3 * + - 71 AS col1, 61 + + 20 + + COALESCE ( + CAST( COUNT( * ) AS SIGNED ), + COALESCE ( + 64, + 62, - - 35 ) )
----
213
82

skipif mysql # not compatible
query II rowsort label-7230
SELECT - 3 * + - 71 AS col1, 61 + + 20 + + COALESCE ( + CAST ( COUNT ( * ) AS INTEGER ), + COALESCE ( + 64, + 62, - - 35 ) )
----
213
82

query I rowsort
SELECT ALL - ( 56 ) * + + 33
----
-1848

onlyif mysql # aggregate syntax: 
query II rowsort label-7232
SELECT 42 AS col0, MAX( ( + 40 ) ) AS col1
----
42
40

skipif mysql # not compatible
query II rowsort label-7232
SELECT 42 AS col0, MAX ( ( + 40 ) ) AS col1
----
42
40

query III rowsort
SELECT ALL - CASE COALESCE ( + + 89, 58 ) WHEN - + 27 THEN NULL ELSE - 59 END, 12 + - + 82 * 85 AS col0, 50 AS col0
----
59
-6958
50

query I rowsort
SELECT + 70 * 1 * - 98 + - CASE - ( 74 ) WHEN + 16 THEN 10 + - + 40 + - - 23 ELSE + - 99 END AS col2
----
-6761

onlyif mysql # aggregate syntax: 
query I rowsort label-7235
SELECT MAX( - - 86 ) + - COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-7235
SELECT MAX ( - - 86 ) + - COUNT ( * )
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-7236
SELECT - CASE - 52 WHEN + 60 THEN COUNT( * ) + 84 - 35 * 59 WHEN + 17 * - 17 THEN NULL END AS col0, ( - 21 ) + + - COUNT( * ) * + 6
----
NULL
-27

skipif mysql # not compatible
query II rowsort label-7236
SELECT - CASE - 52 WHEN + 60 THEN COUNT ( * ) + 84 - 35 * 59 WHEN + 17 * - 17 THEN NULL END AS col0, ( - 21 ) + + - COUNT ( * ) * + 6
----
NULL
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-7237
SELECT 79 col1, - 64 * - 88 * - - 9 * + COUNT( 50 )
----
79
50688

skipif mysql # not compatible
query II rowsort label-7237
SELECT 79 col1, - 64 * - 88 * - - 9 * + COUNT ( 50 )
----
79
50688

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7238
SELECT + 53 + 64 + + 47 + CAST( - 59 AS SIGNED )
----
105

skipif mysql # not compatible
query I rowsort label-7238
SELECT + 53 + 64 + + 47 + CAST ( - 59 AS INTEGER )
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-7239
SELECT ALL - NULLIF ( - 57, - + MAX( ALL 6 ) + + - 95 ) * - 22 + - 49 + + 60 AS col1
----
-1243

skipif mysql # not compatible
query I rowsort label-7239
SELECT ALL - NULLIF ( - 57, - + MAX ( ALL 6 ) + + - 95 ) * - 22 + - 49 + + 60 AS col1
----
-1243

query I rowsort
SELECT DISTINCT + 3 * + + 21 + - 71 + + 5 * + 39 + ( + 10 ) * + 99 * + + 84
----
83347

onlyif mysql # aggregate syntax: 
query I rowsort label-7241
SELECT COUNT( * ) - + 12
----
-11

skipif mysql # not compatible
query I rowsort label-7241
SELECT COUNT ( * ) - + 12
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-7242
SELECT 34 DIV ( - 64 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7242
SELECT 34 / ( - 64 ) AS col2
----
0

query I rowsort
SELECT ALL + 17 * 79 + + + 24
----
1367

onlyif mysql # aggregate syntax: 
query II rowsort label-7244
SELECT DISTINCT - 52 AS col2, CASE + + ( - 85 ) WHEN - COUNT( * ) + + - 47 + + 63 THEN NULL WHEN 98 - + + COUNT( - + 21 ) THEN + 50 * - - 87 END
----
-52
NULL

skipif mysql # not compatible
query II rowsort label-7244
SELECT DISTINCT - 52 AS col2, CASE + + ( - 85 ) WHEN - COUNT ( * ) + + - 47 + + 63 THEN NULL WHEN 98 - + + COUNT ( - + 21 ) THEN + 50 * - - 87 END
----
-52
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7245
SELECT + CASE + 30 WHEN + COUNT( ALL + 19 ) THEN NULL ELSE CAST( NULL AS SIGNED ) * - - 48 END AS col2, SUM( - 83 ) * - 57 AS col2
----
NULL
4731

skipif mysql # not compatible
query II rowsort label-7245
SELECT + CASE + 30 WHEN + COUNT ( ALL + 19 ) THEN NULL ELSE CAST ( NULL AS INTEGER ) * - - 48 END AS col2, SUM ( - 83 ) * - 57 AS col2
----
NULL
4731

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7246
SELECT + COALESCE ( + COUNT( * ), - 73 * - 6 - CAST( NULL AS SIGNED ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7246
SELECT + COALESCE ( + COUNT ( * ), - 73 * - 6 - CAST ( NULL AS INTEGER ) ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7247
SELECT MAX( ALL - 92 ) AS col2, 25 * COUNT( * ) * - ( ( CAST( NULL AS SIGNED ) ) )
----
-92
NULL

skipif mysql # not compatible
query II rowsort label-7247
SELECT MAX ( ALL - 92 ) AS col2, 25 * COUNT ( * ) * - ( ( CAST ( NULL AS INTEGER ) ) )
----
-92
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7248
SELECT 87 * + CAST( + 17 AS SIGNED ) AS col0, + CAST( NULL AS SIGNED ) AS col0
----
1479
NULL

skipif mysql # not compatible
query II rowsort label-7248
SELECT 87 * + CAST ( + 17 AS INTEGER ) AS col0, + CAST ( NULL AS INTEGER ) AS col0
----
1479
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7249
SELECT 50 DIV + ( + 24 ) - - 63
----
65

skipif mysql # not compatible
query I rowsort label-7249
SELECT 50 / + ( + 24 ) - - 63
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7250
SELECT COUNT( DISTINCT + 75 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7250
SELECT COUNT ( DISTINCT + 75 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7251
SELECT COUNT( ALL + + 67 )
----
1

skipif mysql # not compatible
query I rowsort label-7251
SELECT COUNT ( ALL + + 67 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7252
SELECT ALL 18 + COUNT( * ) AS col1, - 89 * - COUNT( * )
----
19
89

skipif mysql # not compatible
query II rowsort label-7252
SELECT ALL 18 + COUNT ( * ) AS col1, - 89 * - COUNT ( * )
----
19
89

query II rowsort
SELECT ALL + 51 * + 15, 34 AS col1
----
765
34

query II rowsort
SELECT + COALESCE ( - 3, - 67 ) AS col1, 11
----
-3
11

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT + MAX( DISTINCT - COALESCE ( + 73, + 96 + + 87 ) ) + + 14 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-7256
SELECT + MAX ( DISTINCT - COALESCE ( + 73, + 96 + + 87 ) ) + + 14 AS col2
----
-59

query I rowsort
SELECT ALL 64 * + - 46 AS col1
----
-2944

query I rowsort
SELECT 61 * - 71 + + - 77
----
-4408

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

skipif mysql # not compatible
query I rowsort label-7259
SELECT - COALESCE ( 72, COUNT ( * ) ) AS col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7260
SELECT + ( MAX( ALL - 44 ) ) + 69 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-7260
SELECT + ( MAX ( ALL - 44 ) ) + 69 AS col2
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-7261
SELECT + ( + 5 ) DIV - 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7261
SELECT + ( + 5 ) / - 91 AS col0
----
0

query I rowsort
SELECT - 28 * - 12 AS col0
----
336

query I rowsort
SELECT - 99 + - 12
----
-111

query I rowsort
SELECT ALL 5 * - 16 AS col2
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-7265
SELECT ALL + + 20 DIV 51 * - 66 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7265
SELECT ALL + + 20 / 51 * - 66 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7266
SELECT - + 18 DIV - 97 * + 48 + + + 80
----
80

skipif mysql # not compatible
query I rowsort label-7266
SELECT - + 18 / - 97 * + 48 + + + 80
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7267
SELECT - - 43 * - COUNT( * ) + - 64 * CASE + COUNT( - 34 ) WHEN 39 * + 71 THEN + 77 WHEN + COALESCE ( - + 97, - SUM( - 42 ) ) * + NULLIF ( + NULLIF ( + 39, + 6 ), - 76 + - 24 ) + - COUNT( * ) * + 79 + - 52 THEN NULL WHEN 64 * CAST( NULL AS SIGNED ) THEN NULL END + + AVG ( + 12 ) * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7267
SELECT - - 43 * - COUNT ( * ) + - 64 * CASE + COUNT ( - 34 ) WHEN 39 * + 71 THEN + 77 WHEN + COALESCE ( - + 97, - SUM ( - 42 ) ) * + NULLIF ( + NULLIF ( + 39, + 6 ), - 76 + - 24 ) + - COUNT ( * ) * + 79 + - 52 THEN NULL WHEN 64 * CAST ( NULL AS INTEGER ) THEN NULL END + + AVG ( + 12 ) * + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 32 + + - 77
----
-109

onlyif mysql # aggregate syntax: 
query II rowsort label-7269
SELECT + + 74 + - 43 + - + 32 * 14 * + + 32, COUNT( * ) * 54 AS col0
----
-14305
54

skipif mysql # not compatible
query II rowsort label-7269
SELECT + + 74 + - 43 + - + 32 * 14 * + + 32, COUNT ( * ) * 54 AS col0
----
-14305
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7270
SELECT ALL + ( - MIN( - - 49 ) ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-7270
SELECT ALL + ( - MIN ( - - 49 ) ) AS col2
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7271
SELECT - - 99 + + 96 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7271
SELECT - - 99 + + 96 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - - 93 + + 27
----
120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7273
SELECT - COUNT( * ) * - + 98 + - 50 * 18 DIV - 74
----
110

skipif mysql # not compatible
query I rowsort label-7273
SELECT - COUNT ( * ) * - + 98 + - 50 * 18 / - 74
----
110

query I rowsort
SELECT ALL - 96 + - + 31 + + 32
----
-95

query I rowsort
SELECT ALL + 38 + - 7 * - 50 * 55 col2
----
19288

query I rowsort
SELECT - 95 + + 91 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7277
SELECT DISTINCT - + CASE + 39 WHEN + MAX( 32 ) THEN - 84 ELSE NULL END + 90 + + ( - + 1 ) * + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-7277
SELECT DISTINCT - + CASE + 39 WHEN + MAX ( 32 ) THEN - 84 ELSE NULL END + 90 + + ( - + 1 ) * + 64
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7278
SELECT - ( - COALESCE ( 74, + COALESCE ( - - 30, - 44 ) - - COUNT( * ) ) ) + 35 AS col0, 94 * 94 col1
----
109
8836

skipif mysql # not compatible
query II rowsort label-7278
SELECT - ( - COALESCE ( 74, + COALESCE ( - - 30, - 44 ) - - COUNT ( * ) ) ) + 35 AS col0, 94 * 94 col1
----
109
8836

onlyif mysql # aggregate syntax: 
query I rowsort label-7279
SELECT ALL - COUNT( * ) + 45 - 93 + - 87
----
-136

skipif mysql # not compatible
query I rowsort label-7279
SELECT ALL - COUNT ( * ) + 45 - 93 + - 87
----
-136

query I rowsort
SELECT + - NULLIF ( - 2, + 35 ) col2
----
2

query I rowsort
SELECT + - 41 * + 78 * + - 19 - 22 AS col2
----
60740

query I rowsort
SELECT + 82 * + + 51 + 40
----
4222

onlyif mysql # aggregate syntax: 
query I rowsort label-7283
SELECT ALL 30 * - CASE - 98 WHEN + + 34 / + 63 THEN - + 70 * - 52 END * 69 + - 22 - + - COUNT( 85 ) + - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-7283
SELECT ALL 30 * - CASE - 98 WHEN + + 34 / + 63 THEN - + 70 * - 52 END * 69 + - 22 - + - COUNT ( 85 ) + - 91
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7284
SELECT + 43 * + 81 * + - 2 * - 20 + + - 17 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7284
SELECT + 43 * + 81 * + - 2 * - 20 + + - 17 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7285
SELECT 55 DIV - ( + + 25 ) + + COALESCE ( - CAST( NULL AS SIGNED ), + COUNT( * ) * + + 10 )
----
8

skipif mysql # not compatible
query I rowsort label-7285
SELECT 55 / - ( + + 25 ) + + COALESCE ( - CAST ( NULL AS INTEGER ), + COUNT ( * ) * + + 10 )
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-7286
SELECT + ( + 28 ) * + 80 * NULLIF ( + 80, + 63 * MAX( DISTINCT + 71 ) ) AS col0, 46
----
179200
46

skipif mysql # not compatible
query II rowsort label-7286
SELECT + ( + 28 ) * + 80 * NULLIF ( + 80, + 63 * MAX ( DISTINCT + 71 ) ) AS col0, 46
----
179200
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7287
SELECT ALL + 64 DIV COUNT( * ) * + + 10 * - - 39 AS col0
----
24960

skipif mysql # not compatible
query I rowsort label-7287
SELECT ALL + 64 / COUNT ( * ) * + + 10 * - - 39 AS col0
----
24960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7288
SELECT + CAST( 1 AS SIGNED ) + 73 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-7288
SELECT + CAST ( 1 AS INTEGER ) + 73 AS col2
----
74

onlyif mysql # DIV for integer division: 
query II rowsort label-7289
SELECT ALL 80 * + 51 - + 40 AS col0, 67 DIV 13
----
4040
5

skipif mysql # not compatible
query II rowsort label-7289
SELECT ALL 80 * + 51 - + 40 AS col0, 67 / 13
----
4040
5

query II rowsort
SELECT ALL 59 * - 2 * - 23 * + 58, + 2 + + 38 + - 22 * + 44 AS col1
----
157412
-928

query I rowsort
SELECT DISTINCT 42 * - 54 - - - 65
----
-2333

query I rowsort
SELECT + 41 * + 55 * - - 61
----
137555

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7293
SELECT NULLIF ( - CASE CAST( NULL AS DECIMAL ) WHEN + 95 + - - 49 THEN NULL WHEN + 65 THEN + 70 ELSE NULL END, - 89 / - - COUNT( ALL - - 84 ) * 55 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7293
SELECT NULLIF ( - CASE CAST ( NULL AS REAL ) WHEN + 95 + - - 49 THEN NULL WHEN + 65 THEN + 70 ELSE NULL END, - 89 / - - COUNT ( ALL - - 84 ) * 55 )
----
NULL

query I rowsort
SELECT ALL 23 * + - NULLIF ( 89, ( - 2 ) )
----
-2047

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7295
SELECT - COUNT( * ) * + 54 DIV 17 * + 92 * - 12 + + 46 + + - 73 DIV - 97 * - 61 * NULLIF ( + 66, - 4 DIV - CASE - - ( COUNT( * ) ) WHEN + 57 THEN - COALESCE ( - 86, 9 ) WHEN 79 DIV COALESCE ( 64, + 43 ) THEN + ( ( + 59 ) ) END + - 61 ) + MIN( ALL 84 - 89 )
----
3353

skipif mysql # not compatible
query I rowsort label-7295
SELECT - COUNT ( * ) * + 54 / 17 * + 92 * - 12 + + 46 + + - 73 / - 97 * - 61 * NULLIF ( + 66, - 4 / - CASE - - ( COUNT ( * ) ) WHEN + 57 THEN - COALESCE ( - 86, 9 ) WHEN 79 / COALESCE ( 64, + 43 ) THEN + ( ( + 59 ) ) END + - 61 ) + MIN ( ALL 84 - 89 )
----
3353

query I rowsort
SELECT + NULLIF ( + 25, - + 66 ) * - + 76
----
-1900

onlyif mysql # aggregate syntax: 
query I rowsort label-7297
SELECT + COALESCE ( COUNT( * ), - - 88 + 41 )
----
1

skipif mysql # not compatible
query I rowsort label-7297
SELECT + COALESCE ( COUNT ( * ), - - 88 + 41 )
----
1

query I rowsort
SELECT + 11 + + + CASE + + 52 WHEN 37 + - 83 THEN 96 + ( NULLIF ( + - 42, + - 78 / - 86 + + 12 ) ) END
----
NULL

query I rowsort
SELECT + COALESCE ( 10, + 32 ) AS col2
----
10

query I rowsort
SELECT - 87 + + ( - 25 ) col2
----
-112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7301
SELECT DISTINCT + 69 AS col1, + 44 - + - COUNT( * ) + - 80 * AVG ( ALL 93 ) * 44 * 93 - 69 + CAST( + 67 AS SIGNED ) + + + CASE 49 WHEN + 42 THEN + - COALESCE ( + ( + 17 ), 75 ) + + 3 END / 95 AS col2
----
69
NULL

skipif mysql # not compatible
query II rowsort label-7301
SELECT DISTINCT + 69 AS col1, + 44 - + - COUNT ( * ) + - 80 * AVG ( ALL 93 ) * 44 * 93 - 69 + CAST ( + 67 AS INTEGER ) + + + CASE 49 WHEN + 42 THEN + - COALESCE ( + ( + 17 ), 75 ) + + 3 END / 95 AS col2
----
69
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7302
SELECT ALL COALESCE ( + COALESCE ( 61, + - 42 * - 55 * - - 50 ), 18 * + 53 DIV + 0 + - - 88 + + + 60 DIV - 55 ) col2
----
61

skipif mysql # not compatible
query I rowsort label-7302
SELECT ALL COALESCE ( + COALESCE ( 61, + - 42 * - 55 * - - 50 ), 18 * + 53 / + 0 + - - 88 + + + 60 / - 55 ) col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7303
SELECT MAX( - + 84 ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-7303
SELECT MAX ( - + 84 ) AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7304
SELECT DISTINCT MIN( ALL + - 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7304
SELECT DISTINCT MIN ( ALL + - 0 ) AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-7305
SELECT + + COUNT ( * ) * 13 AS col1
----
13

query I rowsort
SELECT - 12 * - 31 col1
----
372

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7307
SELECT 34 AS col0, + 36 DIV - + CASE - 90 WHEN COUNT( * ) THEN - + 91 WHEN 70 + + 99 THEN - 50 ELSE - 34 DIV + 86 + + COUNT( * ) * - 73 * 25 DIV 15 * - 47 + + COUNT( 12 ) END AS col0
----
34
0

skipif mysql # not compatible
query II rowsort label-7307
SELECT 34 AS col0, + 36 / - + CASE - 90 WHEN COUNT ( * ) THEN - + 91 WHEN 70 + + 99 THEN - 50 ELSE - 34 / + 86 + + COUNT ( * ) * - 73 * 25 / 15 * - 47 + + COUNT ( 12 ) END AS col0
----
34
0

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

skipif mysql # not compatible
query I rowsort label-7308
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - CAST ( 8 AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - 42 + 59
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7310
SELECT ALL - + 26 + COUNT( * )
----
-25

skipif mysql # not compatible
query I rowsort label-7310
SELECT ALL - + 26 + COUNT ( * )
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7311
SELECT - - 45 + - + 86 DIV + + COUNT( + 65 ) + - COUNT( * ) * - 37 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-7311
SELECT - - 45 + - + 86 / + + COUNT ( + 65 ) + - COUNT ( * ) * - 37 AS col2
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-7312
SELECT - + ( + + SUM( 78 ) ) AS col2, 50 * - 19 AS col1
----
-78
-950

skipif mysql # not compatible
query II rowsort label-7312
SELECT - + ( + + SUM ( 78 ) ) AS col2, 50 * - 19 AS col1
----
-78
-950

query I rowsort
SELECT DISTINCT + + 88 + 80 AS col0
----
168

query I rowsort
SELECT + + 26 + - 22
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-7315
SELECT - 76 AS col0, - 90 + - COUNT( * ) AS col2
----
-76
-91

skipif mysql # not compatible
query II rowsort label-7315
SELECT - 76 AS col0, - 90 + - COUNT ( * ) AS col2
----
-76
-91

query I rowsort
SELECT - 51 + - + 56
----
-107

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

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

query I rowsort
SELECT DISTINCT - 5 - 61 + + 43 AS col2
----
-23

query I rowsort
SELECT DISTINCT + 51 * 23
----
1173

query I rowsort
SELECT 5 * - 25 AS col2
----
-125

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7321
SELECT 76 * - 3 AS col0, CAST( NULL AS SIGNED )
----
-228
NULL

skipif mysql # not compatible
query II rowsort label-7321
SELECT 76 * - 3 AS col0, CAST ( NULL AS INTEGER )
----
-228
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7323
SELECT 95 DIV + + 3
----
31

skipif mysql # not compatible
query I rowsort label-7323
SELECT 95 / + + 3
----
31

query I rowsort
SELECT 1 - - 48 * + 19 col2
----
913

query I rowsort
SELECT DISTINCT 11 * - - 70 * 98 AS col0
----
75460

query I rowsort
SELECT DISTINCT - 16 + 20 AS col2
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-7327
SELECT ALL - ( - - ( + ( - + 40 ) ) ), ( + - 36 ) * - COUNT( * ) AS col2
----
40
36

skipif mysql # not compatible
query II rowsort label-7327
SELECT ALL - ( - - ( + ( - + 40 ) ) ), ( + - 36 ) * - COUNT ( * ) AS col2
----
40
36

onlyif mysql # DIV for integer division: 
query I rowsort label-7328
SELECT 21 DIV - 83 * 57
----
0

skipif mysql # not compatible
query I rowsort label-7328
SELECT 21 / - 83 * 57
----
0

query II rowsort
SELECT ALL 63 + + 24, - 35 AS col1
----
87
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7330
SELECT DISTINCT - CASE - 40 WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN ( + 59 ) / MAX( + - 86 ) + - 25 THEN CASE + - 18 WHEN - CAST( NULL AS SIGNED ) THEN - MIN( DISTINCT + 4 ) + + COUNT( * ) + + COUNT( * ) / + 73 * - CAST( - - 16 AS DECIMAL ) - - - 81 ELSE - 56 END + + COUNT( * ) END * 19
----
NULL

skipif mysql # not compatible
query I rowsort label-7330
SELECT DISTINCT - CASE - 40 WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN ( + 59 ) / MAX ( + - 86 ) + - 25 THEN CASE + - 18 WHEN - CAST ( NULL AS INTEGER ) THEN - MIN ( DISTINCT + 4 ) + + COUNT ( * ) + + COUNT ( * ) / + 73 * - CAST ( - - 16 AS REAL ) - - - 81 ELSE - 56 END + + COUNT ( * ) END * 19
----
NULL

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

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

query I rowsort
SELECT CASE - - 81 WHEN 76 + - 49 THEN + 54 + 61 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7333
SELECT - COALESCE ( - 40, + + 39 * CASE - 95 WHEN + - NULLIF ( 22, + + 57 ) + + + 27 THEN - + 47 END * + COUNT( * ) * - ( 92 ) + + + 37 ) + 50 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-7333
SELECT - COALESCE ( - 40, + + 39 * CASE - 95 WHEN + - NULLIF ( 22, + + 57 ) + + + 27 THEN - + 47 END * + COUNT ( * ) * - ( 92 ) + + + 37 ) + 50 AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7334
SELECT COUNT( * ) * - 67 + - - NULLIF ( 55, + 48 * 15 * + + COUNT( * ) ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-7334
SELECT COUNT ( * ) * - 67 + - - NULLIF ( 55, + 48 * 15 * + + COUNT ( * ) ) AS col1
----
-12

query I rowsort
SELECT ALL + ( + + 65 ) + 99
----
164

query II rowsort
SELECT ALL - 2 + 91, 97 AS col0
----
89
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7337
SELECT + COUNT( DISTINCT + - 15 ) + + + ( 37 )
----
38

skipif mysql # not compatible
query I rowsort label-7337
SELECT + COUNT ( DISTINCT + - 15 ) + + + ( 37 )
----
38

query II rowsort
SELECT ALL - ( 32 ), 8 AS col1
----
-32
8

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

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

query I rowsort
SELECT ALL - 11 + 73 + + + 28 AS col0
----
90

query I rowsort
SELECT + 90 + - - 36 AS col1
----
126

query I rowsort
SELECT - 40 + + - 65 - + 72
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-7343
SELECT COUNT( * ) * + + COUNT( * ) - - 26
----
27

skipif mysql # not compatible
query I rowsort label-7343
SELECT COUNT ( * ) * + + COUNT ( * ) - - 26
----
27

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

skipif mysql # not compatible
query I rowsort label-7344
SELECT 86 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7345
SELECT ALL - CASE 90 WHEN - 17 + + CAST( NULL AS SIGNED ) + 20 * COUNT( * ) * + 38 * + NULLIF ( 84, - MAX( - - COALESCE ( - 60, + 93 ) ) / + + 63 + + + 39 * - - 33 + + 38 ) + + + 71 + - + 70 THEN + 27 * + 28 END / + 78 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7345
SELECT ALL - CASE 90 WHEN - 17 + + CAST ( NULL AS INTEGER ) + 20 * COUNT ( * ) * + 38 * + NULLIF ( 84, - MAX ( - - COALESCE ( - 60, + 93 ) ) / + + 63 + + + 39 * - - 33 + + 38 ) + + + 71 + - + 70 THEN + 27 * + 28 END / + 78 AS col1
----
NULL

query I rowsort
SELECT 96 * 75
----
7200

query I rowsort
SELECT ALL - NULLIF ( 61, + - 87 * + + 15 * 10 )
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7348
SELECT - CASE COUNT( * ) WHEN + 33 THEN - COUNT( * ) WHEN - COUNT( * ) THEN 34 ELSE NULL END / - 58 - 88 + - 90 * + COALESCE ( - 11, 23 * + - 87, + ( COALESCE ( - + 55, - 72 + + - 59 + - 58, - CAST( NULL AS SIGNED ) ) ) + + CASE 32 WHEN + 67 THEN NULL WHEN 19 THEN NULL WHEN + 18 THEN NULL ELSE + COUNT( * ) END ) * + 72 + 33 * + ( + 19 ) * + NULLIF ( + 24 * + COUNT( * ), 46 * 65 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7348
SELECT - CASE COUNT ( * ) WHEN + 33 THEN - COUNT ( * ) WHEN - COUNT ( * ) THEN 34 ELSE NULL END / - 58 - 88 + - 90 * + COALESCE ( - 11, 23 * + - 87, + ( COALESCE ( - + 55, - 72 + + - 59 + - 58, - CAST ( NULL AS INTEGER ) ) ) + + CASE 32 WHEN + 67 THEN NULL WHEN 19 THEN NULL WHEN + 18 THEN NULL ELSE + COUNT ( * ) END ) * + 72 + 33 * + ( + 19 ) * + NULLIF ( + 24 * + COUNT ( * ), 46 * 65 ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7349
SELECT 5 DIV 67
----
0

skipif mysql # not compatible
query I rowsort label-7349
SELECT 5 / 67
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7350
SELECT 65 * - - COUNT( * ) + + ( CAST( NULL AS SIGNED ) ) * 70 * 13
----
NULL

skipif mysql # not compatible
query I rowsort label-7350
SELECT 65 * - - COUNT ( * ) + + ( CAST ( NULL AS INTEGER ) ) * 70 * 13
----
NULL

query I rowsort
SELECT 86 * 78 * 30
----
201240

query I rowsort
SELECT 21 * + 16
----
336

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7353
SELECT 93 * + - 78 DIV COUNT( * ) + COUNT( * ) + - MAX( - 18 ) AS col0
----
-7235

skipif mysql # not compatible
query I rowsort label-7353
SELECT 93 * + - 78 / COUNT ( * ) + COUNT ( * ) + - MAX ( - 18 ) AS col0
----
-7235

query I rowsort
SELECT DISTINCT - 20 * + 78 AS col1
----
-1560

onlyif mysql # DIV for integer division: 
query I rowsort label-7355
SELECT DISTINCT 47 + - ( + 71 ) + 10 DIV 43 DIV + - 46 AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-7355
SELECT DISTINCT 47 + - ( + 71 ) + 10 / 43 / + - 46 AS col2
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-7356
SELECT ALL - COALESCE ( COALESCE ( + + 25, 88, - ( + + 30 ) ), + 34 * + + 59, - + 19 ) + - + 5 DIV + + ( - 36 ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-7356
SELECT ALL - COALESCE ( COALESCE ( + + 25, 88, - ( + + 30 ) ), + 34 * + + 59, - + 19 ) + - + 5 / + + ( - 36 ) AS col0
----
-25

query I rowsort
SELECT 11 + - + ( 54 ) * + 34
----
-1825

onlyif mysql # aggregate syntax: 
query I rowsort label-7358
SELECT DISTINCT - MIN( DISTINCT - 71 )
----
71

skipif mysql # not compatible
query I rowsort label-7358
SELECT DISTINCT - MIN ( DISTINCT - 71 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7359
SELECT - 14 * + ( - MAX( DISTINCT 12 ) ) + COUNT( 90 )
----
169

skipif mysql # not compatible
query I rowsort label-7359
SELECT - 14 * + ( - MAX ( DISTINCT 12 ) ) + COUNT ( 90 )
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-7360
SELECT ALL + ( 7 ) + NULLIF ( COUNT( * ), - 61 )
----
8

skipif mysql # not compatible
query I rowsort label-7360
SELECT ALL + ( 7 ) + NULLIF ( COUNT ( * ), - 61 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7361
SELECT DISTINCT - CASE - 46 WHEN - 50 + + 50 * - 83 + - + 80 THEN + AVG ( ALL - - 67 ) + - COUNT( * ) WHEN + + 84 - NULLIF ( + 73, + 60 * 69 + - + 27 - 56 + COUNT( * ) + + + 29 * - ( - COUNT( * ) ) * 5 * + ( 36 * 54 + + 44 ) ) + 50 * - ( - NULLIF ( - 99, 69 ) ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7361
SELECT DISTINCT - CASE - 46 WHEN - 50 + + 50 * - 83 + - + 80 THEN + AVG ( ALL - - 67 ) + - COUNT ( * ) WHEN + + 84 - NULLIF ( + 73, + 60 * 69 + - + 27 - 56 + COUNT ( * ) + + + 29 * - ( - COUNT ( * ) ) * 5 * + ( 36 * 54 + + 44 ) ) + 50 * - ( - NULLIF ( - 99, 69 ) ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 3 + + ( + 43 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT 30 * - + CASE ( + + AVG ( ALL + 45 ) ) WHEN + 7 * - 23 THEN 30 WHEN - + 94 THEN NULL END + - + 95 * + 53 * 80 + 71 + 75 + - + COUNT( * ) + + + 70 + - + 16 * - 52 + 78 + 35 / 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7363
SELECT 30 * - + CASE ( + + AVG ( ALL + 45 ) ) WHEN + 7 * - 23 THEN 30 WHEN - + 94 THEN NULL END + - + 95 * + 53 * 80 + 71 + 75 + - + COUNT ( * ) + + + 70 + - + 16 * - 52 + 78 + 35 / 89 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT ALL - MIN( DISTINCT - + 25 ) * - ( - - 18 ) col0
----
-450

skipif mysql # not compatible
query I rowsort label-7364
SELECT ALL - MIN ( DISTINCT - + 25 ) * - ( - - 18 ) col0
----
-450

query I rowsort
SELECT ALL - - 42 + - 89 - + 16 AS col1
----
-63

query I rowsort
SELECT - 70 * 53
----
-3710

query II rowsort
SELECT - 4, 58 col1
----
-4
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7368
SELECT ALL 14 - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7368
SELECT ALL 14 - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7369
SELECT ALL + MIN( 2 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7369
SELECT ALL + MIN ( 2 ) AS col1
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7370
SELECT MAX( DISTINCT + 89 ) DIV + - COUNT( * ) + + 51 DIV 32 * + + COUNT( * ) * MIN( DISTINCT - 36 )
----
-125

skipif mysql # not compatible
query I rowsort label-7370
SELECT MAX ( DISTINCT + 89 ) / + - COUNT ( * ) + + 51 / 32 * + + COUNT ( * ) * MIN ( DISTINCT - 36 )
----
-125

onlyif mysql # DIV for integer division: 
query I rowsort label-7371
SELECT + 97 DIV + + ( + 17 )
----
5

skipif mysql # not compatible
query I rowsort label-7371
SELECT + 97 / + + ( + 17 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7372
SELECT + 36 * - 70 * - COUNT( * )
----
2520

skipif mysql # not compatible
query I rowsort label-7372
SELECT + 36 * - 70 * - COUNT ( * )
----
2520

query I rowsort
SELECT 47 * + 32 AS col1
----
1504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7374
SELECT ALL + CAST( - 96 AS SIGNED ) - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7374
SELECT ALL + CAST ( - 96 AS INTEGER ) - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT - 72 AS col1, - 14
----
-72
-14

query I rowsort
SELECT + + 44 - 18 AS col0
----
26

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

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

query I rowsort
SELECT DISTINCT NULLIF ( - 25, 43 ) AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-7379
SELECT ALL 36 * + ( - + NULLIF ( - 49, + + MAX( + - 35 ) * - 39 * + + 68 ) )
----
1764

skipif mysql # not compatible
query I rowsort label-7379
SELECT ALL 36 * + ( - + NULLIF ( - 49, + + MAX ( + - 35 ) * - 39 * + + 68 ) )
----
1764

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7381
SELECT + 54 * + 65 * - - COUNT( * ) AS col1
----
3510

skipif mysql # not compatible
query I rowsort label-7381
SELECT + 54 * + 65 * - - COUNT ( * ) AS col1
----
3510

query I rowsort
SELECT + ( - 29 ) + + 81 AS col0
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7383
SELECT + COUNT( * ) DIV + + COUNT( * ) AS col0, - 76 DIV 85 * - - 42 AS col1
----
1
0

skipif mysql # not compatible
query II rowsort label-7383
SELECT + COUNT ( * ) / + + COUNT ( * ) AS col0, - 76 / 85 * - - 42 AS col1
----
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7384
SELECT - 12 + COUNT( - ( - - 5 ) ) * + 83 + 81 * + ( - - COALESCE ( + 51, MAX( - - 10 ), 81 ) ) AS col1
----
4202

skipif mysql # not compatible
query I rowsort label-7384
SELECT - 12 + COUNT ( - ( - - 5 ) ) * + 83 + 81 * + ( - - COALESCE ( + 51, MAX ( - - 10 ), 81 ) ) AS col1
----
4202

query I rowsort
SELECT ALL + 91 * - + 71 + 31
----
-6430

onlyif mysql # aggregate syntax: 
query I rowsort label-7386
SELECT ALL 42 * - 25 + + COUNT( * )
----
-1049

skipif mysql # not compatible
query I rowsort label-7386
SELECT ALL 42 * - 25 + + COUNT ( * )
----
-1049

query I rowsort
SELECT + 76 * + 66 AS col1
----
5016

onlyif mysql # DIV for integer division: 
query II rowsort label-7388
SELECT DISTINCT + 53 col2, - 34 DIV 98 + + - 48 - + 91
----
53
-139

skipif mysql # not compatible
query II rowsort label-7388
SELECT DISTINCT + 53 col2, - 34 / 98 + + - 48 - + 91
----
53
-139

query II rowsort
SELECT + 14, + 89 * - - 65 AS col0
----
14
5785

onlyif mysql # aggregate syntax: 
query I rowsort label-7390
SELECT COALESCE ( COUNT( DISTINCT - 35 ), + - 81 )
----
1

skipif mysql # not compatible
query I rowsort label-7390
SELECT COALESCE ( COUNT ( DISTINCT - 35 ), + - 81 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7391
SELECT ALL - CASE + 85 WHEN 39 / - 2 * - 94 + - COUNT( * ) * 20 THEN NULL WHEN 29 THEN NULL WHEN + + COUNT( - CAST( NULL AS SIGNED ) ) * + 6 + - - CASE - 47 WHEN - + 47 THEN - 63 / - - 47 ELSE NULL END THEN + 74 ELSE NULL END * + COUNT( ALL - 27 ) / + COUNT( * ) * CASE 48 WHEN - 83 THEN NULL WHEN COUNT( * ) THEN NULL ELSE 20 END * 13 + + 70 / - 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7391
SELECT ALL - CASE + 85 WHEN 39 / - 2 * - 94 + - COUNT ( * ) * 20 THEN NULL WHEN 29 THEN NULL WHEN + + COUNT ( - CAST ( NULL AS INTEGER ) ) * + 6 + - - CASE - 47 WHEN - + 47 THEN - 63 / - - 47 ELSE NULL END THEN + 74 ELSE NULL END * + COUNT ( ALL - 27 ) / + COUNT ( * ) * CASE 48 WHEN - 83 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE 20 END * 13 + + 70 / - 82 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7392
SELECT + 40 DIV + 9
----
4

skipif mysql # not compatible
query I rowsort label-7392
SELECT + 40 / + 9
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7393
SELECT + NULLIF ( - - CAST( NULL AS SIGNED ), COUNT( * ) * + 21 * - + COUNT( * ) / + + 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7393
SELECT + NULLIF ( - - CAST ( NULL AS INTEGER ), COUNT ( * ) * + 21 * - + COUNT ( * ) / + + 71 )
----
NULL

query I rowsort
SELECT - 22 * 90 AS col1
----
-1980

onlyif mysql # aggregate syntax: 
query II rowsort label-7395
SELECT ALL - 48 * - 42 * + - 5 + - MIN( + 63 ) + - + 4 * 16, + 0 AS col0
----
-10207
0

skipif mysql # not compatible
query II rowsort label-7395
SELECT ALL - 48 * - 42 * + - 5 + - MIN ( + 63 ) + - + 4 * 16, + 0 AS col0
----
-10207
0

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7397
SELECT + 77 col2, 50 DIV + ( - 20 ) AS col0
----
77
-2

skipif mysql # not compatible
query II rowsort label-7397
SELECT + 77 col2, 50 / + ( - 20 ) AS col0
----
77
-2

query I rowsort
SELECT + 10 - + 89 AS col0
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7399
SELECT DISTINCT + 41 AS col2, + ( CAST( + + 70 AS SIGNED ) ) + - 20 + - 79
----
41
-29

skipif mysql # not compatible
query II rowsort label-7399
SELECT DISTINCT + 41 AS col2, + ( CAST ( + + 70 AS INTEGER ) ) + - 20 + - 79
----
41
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7400
SELECT - 32 - MAX( 26 ) * - + 70 * + 19 * 79 * + + ( CAST( NULL AS SIGNED ) ) / - - 25 * + 15 * + 40 - - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-7400
SELECT - 32 - MAX ( 26 ) * - + 70 * + 19 * 79 * + + ( CAST ( NULL AS INTEGER ) ) / - - 25 * + 15 * + 40 - - 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7401
SELECT DISTINCT + NULLIF ( + - COUNT( * ), 92 )
----
-1

skipif mysql # not compatible
query I rowsort label-7401
SELECT DISTINCT + NULLIF ( + - COUNT ( * ), 92 )
----
-1

query I rowsort
SELECT ALL + 54 * + - 44 + + 34 - + 52 + - 31
----
-2425

query I rowsort
SELECT - + 83 * + + 52 AS col1
----
-4316

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7404
SELECT - - NULLIF ( - 63, + + COUNT( * ) ) - + - COALESCE ( CAST( NULL AS SIGNED ), - - 53 ) AS col0, 73 * + + 2 * - + 93 + 29 col1
----
-10
-13549

skipif mysql # not compatible
query II rowsort label-7404
SELECT - - NULLIF ( - 63, + + COUNT ( * ) ) - + - COALESCE ( CAST ( NULL AS INTEGER ), - - 53 ) AS col0, 73 * + + 2 * - + 93 + 29 col1
----
-10
-13549

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7405
SELECT - - 39 * + + 95 + ( 7 ) * 3 + - COUNT( * ) DIV + + 53 AS col2
----
3726

skipif mysql # not compatible
query I rowsort label-7405
SELECT - - 39 * + + 95 + ( 7 ) * 3 + - COUNT ( * ) / + + 53 AS col2
----
3726

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7406
SELECT - + 33 - - 74 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7406
SELECT - + 33 - - 74 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7407
SELECT ALL + 25 * 12 * + CAST( NULL AS SIGNED ) - + + 94 + + - 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7407
SELECT ALL + 25 * 12 * + CAST ( NULL AS INTEGER ) - + + 94 + + - 43 AS col2
----
NULL

query I rowsort
SELECT - 34 * 39
----
-1326

query I rowsort
SELECT - 4 * + ( - 61 )
----
244

onlyif mysql # aggregate syntax: 
query I rowsort label-7410
SELECT ALL MAX( ALL 5 ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-7410
SELECT ALL MAX ( ALL 5 ) AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7411
SELECT ALL + CASE + ( + + 13 ) WHEN + 43 * COUNT( * ) - - 53 + - + 52 THEN + NULLIF ( - 0, - 47 * - 25 ) ELSE + - 58 END * 63 col2
----
-3654

skipif mysql # not compatible
query I rowsort label-7411
SELECT ALL + CASE + ( + + 13 ) WHEN + 43 * COUNT ( * ) - - 53 + - + 52 THEN + NULLIF ( - 0, - 47 * - 25 ) ELSE + - 58 END * 63 col2
----
-3654

onlyif mysql # aggregate syntax: 
query II rowsort label-7412
SELECT - 61 + - - 15 AS col1, + COUNT( * ) * - 77 + - + 19
----
-46
-96

skipif mysql # not compatible
query II rowsort label-7412
SELECT - 61 + - - 15 AS col1, + COUNT ( * ) * - 77 + - + 19
----
-46
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7413
SELECT - + 56 * 18 * - - 22 * - COUNT( * ) * 91 - - - 7 + + - 72
----
2017937

skipif mysql # not compatible
query I rowsort label-7413
SELECT - + 56 * 18 * - - 22 * - COUNT ( * ) * 91 - - - 7 + + - 72
----
2017937

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7414
SELECT - - 72 AS col2, CAST( NULL AS SIGNED ) / - NULLIF ( - - 66, 91 + - 97 ) + NULLIF ( 83, + 69 ) + + 2 / - - 77 + + 23 col1
----
72
NULL

skipif mysql # not compatible
query II rowsort label-7414
SELECT - - 72 AS col2, CAST ( NULL AS INTEGER ) / - NULLIF ( - - 66, 91 + - 97 ) + NULLIF ( 83, + 69 ) + + 2 / - - 77 + + 23 col1
----
72
NULL

query II rowsort
SELECT ALL + 15 AS col0, - 14 AS col1
----
15
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7416
SELECT ALL COALESCE ( COUNT( * ), + + 86 * + COUNT( * ) + + MAX( 88 ) * + ( CASE 15 WHEN - 55 THEN + + 93 + + - SUM( DISTINCT - 8 ) + - 32 * ( ( - COUNT( * ) ) ) + + 19 + 61 WHEN 50 + - + 34 THEN NULL ELSE + ( - 6 ) * - 79 + + ( 56 ) END ) - - 71 * 1 )
----
1

skipif mysql # not compatible
query I rowsort label-7416
SELECT ALL COALESCE ( COUNT ( * ), + + 86 * + COUNT ( * ) + + MAX ( 88 ) * + ( CASE 15 WHEN - 55 THEN + + 93 + + - SUM ( DISTINCT - 8 ) + - 32 * ( ( - COUNT ( * ) ) ) + + 19 + 61 WHEN 50 + - + 34 THEN NULL ELSE + ( - 6 ) * - 79 + + ( 56 ) END ) - - 71 * 1 )
----
1

query I rowsort
SELECT - 37 + + 43
----
6

query I rowsort
SELECT - 30 * 72
----
-2160

onlyif mysql # aggregate syntax: 
query I rowsort label-7419
SELECT - COUNT( ( + - 27 ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-7419
SELECT - COUNT ( ( + - 27 ) ) col2
----
-1

query I rowsort
SELECT DISTINCT - 29 + 78 * + ( - 32 ) AS col0
----
-2525

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7421
SELECT ALL CAST( - 92 AS SIGNED ) col1
----
-92

skipif mysql # not compatible
query I rowsort label-7421
SELECT ALL CAST ( - 92 AS INTEGER ) col1
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-7422
SELECT ALL COALESCE ( - 83, + 73 - + 57 * 91 + - 18 * - 76 DIV - 92, 16 + 64 + - 59 * - 29 ) * 91 AS col2
----
-7553

skipif mysql # not compatible
query I rowsort label-7422
SELECT ALL COALESCE ( - 83, + 73 - + 57 * 91 + - 18 * - 76 / - 92, 16 + 64 + - 59 * - 29 ) * 91 AS col2
----
-7553

query I rowsort
SELECT - ( + 32 ) AS col0
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7424
SELECT - ( 40 ) AS col0, CAST( NULL AS SIGNED ) AS col1, + 80
----
-40
NULL
80

skipif mysql # not compatible
query III rowsort label-7424
SELECT - ( 40 ) AS col0, CAST ( NULL AS INTEGER ) AS col1, + 80
----
-40
NULL
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7425
SELECT - 41 + 0 col1, 72 DIV - MAX( DISTINCT 58 ) DIV + + COUNT( * )
----
-41
-1

skipif mysql # not compatible
query II rowsort label-7425
SELECT - 41 + 0 col1, 72 / - MAX ( DISTINCT 58 ) / + + COUNT ( * )
----
-41
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-7426
SELECT 66 DIV 55 - + 82, 2 AS col1
----
-81
2

skipif mysql # not compatible
query II rowsort label-7426
SELECT 66 / 55 - + 82, 2 AS col1
----
-81
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7427
SELECT DISTINCT + 54 / - NULLIF ( - CAST( NULL AS SIGNED ), + + 57 ) + - + 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7427
SELECT DISTINCT + 54 / - NULLIF ( - CAST ( NULL AS INTEGER ), + + 57 ) + - + 57 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7428
SELECT + COUNT( * ) + + 39, COUNT( * ) - - 44 AS col0
----
40
45

skipif mysql # not compatible
query II rowsort label-7428
SELECT + COUNT ( * ) + + 39, COUNT ( * ) - - 44 AS col0
----
40
45

query II rowsort
SELECT + NULLIF ( + + 19, + 84 ) AS col0, + 54 AS col1
----
19
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT 67 * SUM( ALL - 57 ) + 35 * + 73 col0
----
-1264

skipif mysql # not compatible
query I rowsort label-7430
SELECT 67 * SUM ( ALL - 57 ) + 35 * + 73 col0
----
-1264

query I rowsort
SELECT + 69 * + 98 AS col1
----
6762

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7432
SELECT - 55 / 91 * + ( + 69 ) + - - CASE - 7 WHEN + 96 + - CASE 41 WHEN - 45 THEN + + COUNT( * ) + - + 62 + - 71 WHEN + 51 * 80 THEN + - 16 WHEN 78 THEN + 20 * + + 89 / + + 10 ELSE NULL END + + SUM( DISTINCT ( - CAST( 64 AS SIGNED ) ) ) + - 28 THEN NULL ELSE + CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) + MAX( ALL ( 74 ) ) END * 84
----
NULL

skipif mysql # not compatible
query I rowsort label-7432
SELECT - 55 / 91 * + ( + 69 ) + - - CASE - 7 WHEN + 96 + - CASE 41 WHEN - 45 THEN + + COUNT ( * ) + - + 62 + - 71 WHEN + 51 * 80 THEN + - 16 WHEN 78 THEN + 20 * + + 89 / + + 10 ELSE NULL END + + SUM ( DISTINCT ( - CAST ( 64 AS INTEGER ) ) ) + - 28 THEN NULL ELSE + CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) + MAX ( ALL ( 74 ) ) END * 84
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7434
SELECT ALL ( + 73 ) / 95 * - - CAST( NULL AS SIGNED ) - 58 + COALESCE ( - COUNT( * ), COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7434
SELECT ALL ( + 73 ) / 95 * - - CAST ( NULL AS INTEGER ) - 58 + COALESCE ( - COUNT ( * ), COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7435
SELECT ALL + 34 DIV + 82 * - 6 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7435
SELECT ALL + 34 / + 82 * - 6 AS col2
----
0

query II rowsort
SELECT + - 14 * - 38 + 5 AS col0, 13 AS col1
----
537
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7437
SELECT + CASE COALESCE ( + 62, - + NULLIF ( + ( + 85 ), COUNT( * ) + + + ( + + 21 ) ) + + + 28 * - 45 + - 14 ) WHEN + + COUNT( ALL - 66 ) THEN + - COUNT( * ) WHEN + - 22 THEN CASE + AVG ( - 52 ) WHEN - - CAST( + - 76 AS SIGNED ) + COUNT( * ) THEN NULL ELSE 32 END + - 63 ELSE NULL END / CASE - 31 WHEN 13 + + 8 THEN 85 WHEN 11 THEN NULL ELSE + 69 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7437
SELECT + CASE COALESCE ( + 62, - + NULLIF ( + ( + 85 ), COUNT ( * ) + + + ( + + 21 ) ) + + + 28 * - 45 + - 14 ) WHEN + + COUNT ( ALL - 66 ) THEN + - COUNT ( * ) WHEN + - 22 THEN CASE + AVG ( - 52 ) WHEN - - CAST ( + - 76 AS INTEGER ) + COUNT ( * ) THEN NULL ELSE 32 END + - 63 ELSE NULL END / CASE - 31 WHEN 13 + + 8 THEN 85 WHEN 11 THEN NULL ELSE + 69 END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7438
SELECT DISTINCT + 90 DIV + 44, + 0 AS col1
----
2
0

skipif mysql # not compatible
query II rowsort label-7438
SELECT DISTINCT + 90 / + 44, + 0 AS col1
----
2
0

query I rowsort
SELECT + 9 * + 68 + + 70
----
682

onlyif mysql # aggregate syntax: 
query II rowsort label-7440
SELECT + - MIN( - 93 ), + 97 AS col0
----
93
97

skipif mysql # not compatible
query II rowsort label-7440
SELECT + - MIN ( - 93 ), + 97 AS col0
----
93
97

query I rowsort
SELECT ALL - NULLIF ( 28, 35 ) AS col2
----
-28

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7442
SELECT - NULLIF ( + + 85, - CASE + 59 WHEN - - 16 * + 47 + + 78 + + 78 + + 63 * CAST( + COUNT( * ) AS DECIMAL ) * 37 * - 51 THEN + + 62 - - - 5 * + COUNT( * ) ELSE NULL END ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-7442
SELECT - NULLIF ( + + 85, - CASE + 59 WHEN - - 16 * + 47 + + 78 + + 78 + + 63 * CAST ( + COUNT ( * ) AS REAL ) * 37 * - 51 THEN + + 62 - - - 5 * + COUNT ( * ) ELSE NULL END ) AS col2
----
-85

onlyif mysql # aggregate syntax: 
query III rowsort label-7443
SELECT ALL - COUNT( 69 ) AS col1, 4 AS col1, - 66 + + MAX( + 17 ) col0
----
-1
4
-49

skipif mysql # not compatible
query III rowsort label-7443
SELECT ALL - COUNT ( 69 ) AS col1, 4 AS col1, - 66 + + MAX ( + 17 ) col0
----
-1
4
-49

onlyif mysql # DIV for integer division: 
query II rowsort label-7444
SELECT + 68 * - 80 AS col0, 55 DIV - + 77 AS col2
----
-5440
0

skipif mysql # not compatible
query II rowsort label-7444
SELECT + 68 * - 80 AS col0, 55 / - + 77 AS col2
----
-5440
0

query I rowsort
SELECT ALL ( - 40 ) * - - 39 + - 64
----
-1624

onlyif mysql # aggregate syntax: 
query I rowsort label-7446
SELECT - 99 * - - 76 - COUNT( * ) col2
----
-7525

skipif mysql # not compatible
query I rowsort label-7446
SELECT - 99 * - - 76 - COUNT ( * ) col2
----
-7525

onlyif mysql # aggregate syntax: 
query II rowsort label-7447
SELECT + COUNT( * ) - - 6 col2, 65 AS col2
----
7
65

skipif mysql # not compatible
query II rowsort label-7447
SELECT + COUNT ( * ) - - 6 col2, 65 AS col2
----
7
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7448
SELECT - 34 DIV + CAST( COUNT( * ) AS SIGNED ) - + + 60 AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-7448
SELECT - 34 / + CAST ( COUNT ( * ) AS INTEGER ) - + + 60 AS col2
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7449
SELECT ALL - 34 + + 14 + + 26 * + SUM( ALL 84 ) * - 83, CAST( NULL AS SIGNED ) / ( + COUNT( - - 83 ) ) col2
----
-181292
NULL

skipif mysql # not compatible
query II rowsort label-7449
SELECT ALL - 34 + + 14 + + 26 * + SUM ( ALL 84 ) * - 83, CAST ( NULL AS INTEGER ) / ( + COUNT ( - - 83 ) ) col2
----
-181292
NULL

query I rowsort
SELECT DISTINCT 30 + + 91 + CASE ( - 55 ) WHEN - 34 THEN NULL WHEN + 44 * - 69 THEN - 69 - - 17 END / - 61 * - 44 - 84
----
NULL

query I rowsort
SELECT 2 + - 74
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7452
SELECT 5 - + CASE - + 43 WHEN - COUNT( DISTINCT + 26 ) THEN + COUNT( * ) * 59 + - - 97 ELSE NULL END * COUNT( * ) + 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7452
SELECT 5 - + CASE - + 43 WHEN - COUNT ( DISTINCT + 26 ) THEN + COUNT ( * ) * 59 + - - 97 ELSE NULL END * COUNT ( * ) + 17 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7453
SELECT ALL CAST( NULL AS SIGNED ) * NULLIF ( + 84, + + CAST( 3 AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7453
SELECT ALL CAST ( NULL AS INTEGER ) * NULLIF ( + 84, + + CAST ( 3 AS REAL ) ) AS col1
----
NULL

query I rowsort
SELECT ALL + 16 + - 59 - - + 65 * + 46 * + + 26 AS col1
----
77697

query I rowsort
SELECT 37 + - 20 AS col0
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-7456
SELECT DISTINCT + MIN( - 84 ) + + + ( - 66 ) AS col2, 6 - + + 34 + + 92
----
-150
64

skipif mysql # not compatible
query II rowsort label-7456
SELECT DISTINCT + MIN ( - 84 ) + + + ( - 66 ) AS col2, 6 - + + 34 + + 92
----
-150
64

query I rowsort
SELECT 46 + 37
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7458
SELECT COUNT( * ) - - 76 + 90 + + 62 col0
----
229

skipif mysql # not compatible
query I rowsort label-7458
SELECT COUNT ( * ) - - 76 + 90 + + 62 col0
----
229

query I rowsort
SELECT 27 * + 15 AS col2
----
405

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7460
SELECT DISTINCT + 99 * - CAST( NULL AS SIGNED ) / ( + MAX( + 85 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7460
SELECT DISTINCT + 99 * - CAST ( NULL AS INTEGER ) / ( + MAX ( + 85 ) )
----
NULL

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

skipif mysql # not compatible
query II rowsort label-7461
SELECT + 21, - COUNT ( * ) col2
----
21
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7462
SELECT - 51 DIV + + COUNT( * ) + - 66 + + 3 AS col2
----
-114

skipif mysql # not compatible
query I rowsort label-7462
SELECT - 51 / + + COUNT ( * ) + - 66 + + 3 AS col2
----
-114

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

query II rowsort
SELECT + 6 AS col0, 28 + 13
----
6
41

query I rowsort
SELECT - 41 * + - 79 / + 61 * - CASE - 68 WHEN 64 THEN - + 92 END
----
NULL

query I rowsort
SELECT ALL + 61 * 8
----
488

query I rowsort
SELECT ALL - - NULLIF ( - 16, - + 89 )
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-7468
SELECT + 6 col1, + COUNT( * )
----
6
1

skipif mysql # not compatible
query II rowsort label-7468
SELECT + 6 col1, + COUNT ( * )
----
6
1

query I rowsort
SELECT - 7 * 41
----
-287

onlyif mysql # aggregate syntax: 
query II rowsort label-7470
SELECT SUM( + 97 ) * + - 75 + + + 80 + - - 64 - - - 23 * 35 + - 89 + - 3 col2, 2 AS col2
----
-8028
2

skipif mysql # not compatible
query II rowsort label-7470
SELECT SUM ( + 97 ) * + - 75 + + + 80 + - - 64 - - - 23 * 35 + - 89 + - 3 col2, 2 AS col2
----
-8028
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7471
SELECT ALL + 11 * + COALESCE ( - - 31, 47 * - - CAST( NULL AS SIGNED ), + - 61 ) * - 57
----
-19437

skipif mysql # not compatible
query I rowsort label-7471
SELECT ALL + 11 * + COALESCE ( - - 31, 47 * - - CAST ( NULL AS INTEGER ), + - 61 ) * - 57
----
-19437

onlyif mysql # aggregate syntax: 
query I rowsort label-7472
SELECT + ( - COUNT( + + 47 ) ) - + 63 - + 58
----
-122

skipif mysql # not compatible
query I rowsort label-7472
SELECT + ( - COUNT ( + + 47 ) ) - + 63 - + 58
----
-122

query I rowsort
SELECT ALL + - 31 * + 25
----
-775

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT + 51 * + 47 * + - 63 - SUM( ALL - - 17 ) * - 6 AS col2
----
-150909

skipif mysql # not compatible
query I rowsort label-7474
SELECT + 51 * + 47 * + - 63 - SUM ( ALL - - 17 ) * - 6 AS col2
----
-150909

query II rowsort
SELECT ALL - 19 AS col0, + 4
----
-19
4

query I rowsort
SELECT DISTINCT 8 + + 63
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7477
SELECT DISTINCT - 81 col2, CAST( NULL AS SIGNED ) - - 78 + + 46 * + 40 * - 70 AS col1
----
-81
NULL

skipif mysql # not compatible
query II rowsort label-7477
SELECT DISTINCT - 81 col2, CAST ( NULL AS INTEGER ) - - 78 + + 46 * + 40 * - 70 AS col1
----
-81
NULL

query I rowsort
SELECT 96 * - + 24 + 57 + - - 56
----
-2191

onlyif mysql # aggregate syntax: 
query I rowsort label-7479
SELECT 1 - 26 / - CASE 10 WHEN + 88 THEN NULL WHEN + + 86 * - 90 + + COUNT( * ) THEN NULL WHEN - - 42 THEN MIN( + + ( + 9 ) ) + - - 94 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7479
SELECT 1 - 26 / - CASE 10 WHEN + 88 THEN NULL WHEN + + 86 * - 90 + + COUNT ( * ) THEN NULL WHEN - - 42 THEN MIN ( + + ( + 9 ) ) + - - 94 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 54 + + 39 AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT + 84 * 23 + 20 + + COUNT( * ) AS col2
----
1953

skipif mysql # not compatible
query I rowsort label-7481
SELECT + 84 * 23 + 20 + + COUNT ( * ) AS col2
----
1953

query I rowsort
SELECT 47 - - + 9 AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7483
SELECT - CASE + + 67 WHEN + - ( - 51 ) * - ( - COUNT( * ) ) + - 25 + + COUNT( DISTINCT - 29 ) * COALESCE ( - + 33, - + 59 + - 56 * ( - + 28 ) ) THEN NULL WHEN - 77 * - MAX( DISTINCT + + 80 ) * + - 1 + + - AVG ( DISTINCT + ( + 27 ) ) - 8 + 72 * + 91 THEN NULL WHEN 41 * + 32 - + ( - 56 ) THEN 23 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7483
SELECT - CASE + + 67 WHEN + - ( - 51 ) * - ( - COUNT ( * ) ) + - 25 + + COUNT ( DISTINCT - 29 ) * COALESCE ( - + 33, - + 59 + - 56 * ( - + 28 ) ) THEN NULL WHEN - 77 * - MAX ( DISTINCT + + 80 ) * + - 1 + + - AVG ( DISTINCT + ( + 27 ) ) - 8 + 72 * + 91 THEN NULL WHEN 41 * + 32 - + ( - 56 ) THEN 23 END
----
NULL

query II rowsort
SELECT 80 AS col2, + 80 * - 90
----
80
-7200

onlyif mysql # aggregate syntax: 
query II rowsort label-7485
SELECT DISTINCT - 93 + - 55 + + - 88, COUNT( * ) col1
----
-236
1

skipif mysql # not compatible
query II rowsort label-7485
SELECT DISTINCT - 93 + - 55 + + - 88, COUNT ( * ) col1
----
-236
1

query I rowsort
SELECT 95 + - + 96 + 64 * + - NULLIF ( + - 14, - ( - - 22 ) ) + + 24
----
919

query I rowsort
SELECT DISTINCT - ( + 33 ) + - - 61 AS col0
----
28

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7490
SELECT 27 + 98 + + - COUNT( * ) * - 53 DIV 24 AS col2
----
127

skipif mysql # not compatible
query I rowsort label-7490
SELECT 27 + 98 + + - COUNT ( * ) * - 53 / 24 AS col2
----
127

query I rowsort
SELECT DISTINCT 17 - - 99
----
116

onlyif mysql # DIV for integer division: 
query I rowsort label-7492
SELECT 39 DIV + 73 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7492
SELECT 39 / + 73 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7493
SELECT ALL - 13 * COUNT( 0 ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-7493
SELECT ALL - 13 * COUNT ( 0 ) AS col1
----
-13

query I rowsort
SELECT 46 + + 0 + 3 * + 39
----
163

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7495
SELECT DISTINCT - 95 * - CAST( + ( + CAST( NULL AS DECIMAL ) ) AS SIGNED ) AS col2, + 99 col2
----
NULL
99

skipif mysql # not compatible
query II rowsort label-7495
SELECT DISTINCT - 95 * - CAST ( + ( + CAST ( NULL AS REAL ) ) AS INTEGER ) AS col2, + 99 col2
----
NULL
99

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

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

query I rowsort
SELECT 61 - + 87 AS col1
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7498
SELECT 65 DIV COUNT( + 81 ) * + 62 AS col2, - ( - 55 ) + + 63
----
4030
118

skipif mysql # not compatible
query II rowsort label-7498
SELECT 65 / COUNT ( + 81 ) * + 62 AS col2, - ( - 55 ) + + 63
----
4030
118

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT + 64 + - - COUNT( * ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-7499
SELECT + 64 + - - COUNT ( * ) AS col1
----
65

query I rowsort
SELECT - 39 * + 48 AS col1
----
-1872

query I rowsort
SELECT ALL + 32 * 53 * + - 0 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7502
SELECT + + 21 + - CAST( - CASE WHEN NOT COUNT( * ) IS NOT NULL THEN 34 WHEN NOT - SUM( + 61 ) + - - 82 * + + 58 = - 59 THEN NULL END AS SIGNED ) + - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-7502
SELECT + + 21 + - CAST ( - CASE WHEN NOT COUNT ( * ) IS NOT NULL THEN 34 WHEN NOT - SUM ( + 61 ) + - - 82 * + + 58 = - 59 THEN NULL END AS INTEGER ) + - 86
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7503
SELECT - - 52 DIV 67
----
0

skipif mysql # not compatible
query I rowsort label-7503
SELECT - - 52 / 67
----
0

query I rowsort
SELECT 35 * + + 76 + + 71
----
2731

query I rowsort
SELECT ALL + - NULLIF ( + 57, - 83 * 71 ) * - + 13
----
741

query II rowsort
SELECT DISTINCT 66 * - + 39 + + 31 - + 54 AS col2, - 45 AS col1
----
-2597
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7507
SELECT DISTINCT + MIN( ALL - 59 ) * 77 * - 89 + + COALESCE ( - 20, - 48 * - - 90 ) * 6 + + 62 * + 80 - + 60 + - - MIN( + 38 ) * - 36
----
407739

skipif mysql # not compatible
query I rowsort label-7507
SELECT DISTINCT + MIN ( ALL - 59 ) * 77 * - 89 + + COALESCE ( - 20, - 48 * - - 90 ) * 6 + + 62 * + 80 - + 60 + - - MIN ( + 38 ) * - 36
----
407739

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

skipif mysql # not compatible
query I rowsort label-7508
SELECT + CAST ( NULL AS INTEGER ) * + + 30
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7509
SELECT ALL COUNT( * ) * + - COALESCE ( 90, - - CAST( NULL AS SIGNED ), 30 * - 48, - ( - 27 ) DIV CASE - COUNT( * ) WHEN + 47 THEN - 95 DIV 46 * + 42 + - 65 + + COUNT( * ) WHEN 56 + + 31 + 34 * + - 47 THEN 73 ELSE + 57 END ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-7509
SELECT ALL COUNT ( * ) * + - COALESCE ( 90, - - CAST ( NULL AS INTEGER ), 30 * - 48, - ( - 27 ) / CASE - COUNT ( * ) WHEN + 47 THEN - 95 / 46 * + 42 + - 65 + + COUNT ( * ) WHEN 56 + + 31 + 34 * + - 47 THEN 73 ELSE + 57 END ) AS col2
----
-90

query I rowsort
SELECT + - 44 + - - 45
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7511
SELECT ALL + + 53 * - 41 + - 2 DIV - 80 DIV - 10 + CASE - ( + 95 ) WHEN - 92 THEN + 83 DIV + 90 * - 16 WHEN + + COUNT( * ) THEN - 34 ELSE + + 79 * + 15 END + 44 * - 29 * - 56 * + + 59 * - 58 + + + 14 + 90 + 51 + 38 * 88 AS col2
----
-244519921

skipif mysql # not compatible
query I rowsort label-7511
SELECT ALL + + 53 * - 41 + - 2 / - 80 / - 10 + CASE - ( + 95 ) WHEN - 92 THEN + 83 / + 90 * - 16 WHEN + + COUNT ( * ) THEN - 34 ELSE + + 79 * + 15 END + 44 * - 29 * - 56 * + + 59 * - 58 + + + 14 + 90 + 51 + 38 * 88 AS col2
----
-244519921

query I rowsort
SELECT DISTINCT + 6 * + - 39
----
-234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7513
SELECT DISTINCT 99 * COALESCE ( - 5, 24 ) * - CAST( NULL AS SIGNED ) + - - MIN( - - 17 ) + ( + - 9 ) * + COUNT( * ) * 48 + - ( - 35 ) * - 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7513
SELECT DISTINCT 99 * COALESCE ( - 5, 24 ) * - CAST ( NULL AS INTEGER ) + - - MIN ( - - 17 ) + ( + - 9 ) * + COUNT ( * ) * 48 + - ( - 35 ) * - 71 AS col0
----
NULL

query II rowsort
SELECT ALL + 76 AS col1, - 77
----
76
-77

query I rowsort
SELECT DISTINCT 83 * + 48 col0
----
3984

onlyif mysql # aggregate syntax: 
query I rowsort label-7516
SELECT ALL COUNT( * ) + - COUNT( * ) col0
----
0

skipif mysql # not compatible
query I rowsort label-7516
SELECT ALL COUNT ( * ) + - COUNT ( * ) col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7517
SELECT 16 * - 81 - 80 DIV 70 + - ( + + 44 ) AS col2
----
-1341

skipif mysql # not compatible
query I rowsort label-7517
SELECT 16 * - 81 - 80 / 70 + - ( + + 44 ) AS col2
----
-1341

query I rowsort
SELECT + 30 * + 88
----
2640

query II rowsort
SELECT ALL 41 AS col2, 31
----
41
31

query I rowsort
SELECT + 0 - 66
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7521
SELECT - COUNT( * ) * - CAST( - CAST( + 12 AS SIGNED ) AS SIGNED ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-7521
SELECT - COUNT ( * ) * - CAST ( - CAST ( + 12 AS INTEGER ) AS INTEGER ) AS col1
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7522
SELECT DISTINCT COALESCE ( COUNT( * ), - + 29 ) * - 11 - ( + COUNT( * ) ) - 3 + + 85 - + - 75 - CASE - 68 WHEN - ( + NULLIF ( + - 79, - MAX( DISTINCT - 53 ) ) ) + + + COUNT( ALL + - 9 ) * - + 41 THEN NULL WHEN CAST( NULL AS SIGNED ) / 96 / - CAST( NULL AS SIGNED ) - COUNT( * ) * + AVG ( ALL - 21 ) + - 48 THEN NULLIF ( + MIN( ALL 20 ), + 35 ) END * - 7 * + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-7522
SELECT DISTINCT COALESCE ( COUNT ( * ), - + 29 ) * - 11 - ( + COUNT ( * ) ) - 3 + + 85 - + - 75 - CASE - 68 WHEN - ( + NULLIF ( + - 79, - MAX ( DISTINCT - 53 ) ) ) + + + COUNT ( ALL + - 9 ) * - + 41 THEN NULL WHEN CAST ( NULL AS INTEGER ) / 96 / - CAST ( NULL AS INTEGER ) - COUNT ( * ) * + AVG ( ALL - 21 ) + - 48 THEN NULLIF ( + MIN ( ALL 20 ), + 35 ) END * - 7 * + 64
----
NULL

query I rowsort
SELECT DISTINCT - 26 * + 67 AS col1
----
-1742

query I rowsort
SELECT ALL 28 * - + 27 AS col2
----
-756

query I rowsort
SELECT + 40 * - + 87 AS col0
----
-3480

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT + 10 + ( - - MIN( ALL - 35 ) )
----
-25

skipif mysql # not compatible
query I rowsort label-7526
SELECT + 10 + ( - - MIN ( ALL - 35 ) )
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-7527
SELECT DISTINCT + 15 DIV + 73 + - 47
----
-47

skipif mysql # not compatible
query I rowsort label-7527
SELECT DISTINCT + 15 / + 73 + - 47
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7528
SELECT DISTINCT - 50 DIV - 37 + + 49 * 8 + + COUNT( * ) * + COALESCE ( - + ( + + ( + - 25 ) ), - 85 + + COUNT( * ) ) + - CAST( - 26 AS SIGNED ) + - 76 * + CAST( + 60 AS SIGNED )
----
-4116

skipif mysql # not compatible
query I rowsort label-7528
SELECT DISTINCT - 50 / - 37 + + 49 * 8 + + COUNT ( * ) * + COALESCE ( - + ( + + ( + - 25 ) ), - 85 + + COUNT ( * ) ) + - CAST ( - 26 AS INTEGER ) + - 76 * + CAST ( + 60 AS INTEGER )
----
-4116

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

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

query I rowsort
SELECT DISTINCT + - 63 * + + 24 + + 7
----
-1505

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7531
SELECT + COALESCE ( + CAST( - + ( + 93 ) AS SIGNED ), - 11 * + 21 * - 56 - + 27, 91 )
----
-93

skipif mysql # not compatible
query I rowsort label-7531
SELECT + COALESCE ( + CAST ( - + ( + 93 ) AS INTEGER ), - 11 * + 21 * - 56 - + 27, 91 )
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-7532
SELECT - 14 - + 75 DIV 56
----
-15

skipif mysql # not compatible
query I rowsort label-7532
SELECT - 14 - + 75 / 56
----
-15

query I rowsort
SELECT ALL + - ( + 46 ) AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7534
SELECT DISTINCT + MAX( 53 ) * + 90 * ( + - 51 ) + 75 + - - COALESCE ( + MIN( DISTINCT + 54 ), + 31 )
----
-243141

skipif mysql # not compatible
query I rowsort label-7534
SELECT DISTINCT + MAX ( 53 ) * + 90 * ( + - 51 ) + 75 + - - COALESCE ( + MIN ( DISTINCT + 54 ), + 31 )
----
-243141

onlyif mysql # aggregate syntax: 
query I rowsort label-7535
SELECT ALL 96 * COUNT( * ) * + 74 + MIN( + - 54 ) * + ( - 78 ) * - 51
----
-207708

skipif mysql # not compatible
query I rowsort label-7535
SELECT ALL 96 * COUNT ( * ) * + 74 + MIN ( + - 54 ) * + ( - 78 ) * - 51
----
-207708

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

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

query I rowsort
SELECT ALL - 42 * - 39 - - 55
----
1693

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7538
SELECT COALESCE ( + - COUNT( DISTINCT + 7 ), - 69 * 52 * 11 DIV - - COUNT( * ) - - - 27, - ( - - 37 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7538
SELECT COALESCE ( + - COUNT ( DISTINCT + 7 ), - 69 * 52 * 11 / - - COUNT ( * ) - - - 27, - ( - - 37 ) ) AS col1
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT CASE - 64 WHEN + - 56 / - COUNT( * ) + - + 46 + + + 5 THEN NULL WHEN + - 31 / + 74 THEN - AVG ( - + ( - 91 ) ) + + 45 ELSE - MIN( 30 ) + + 8 END AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-7540
SELECT CASE - 64 WHEN + - 56 / - COUNT ( * ) + - + 46 + + + 5 THEN NULL WHEN + - 31 / + 74 THEN - AVG ( - + ( - 91 ) ) + + 45 ELSE - MIN ( 30 ) + + 8 END AS col2
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7541
SELECT ALL + CAST( COUNT( DISTINCT - - 36 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-7541
SELECT ALL + CAST ( COUNT ( DISTINCT - - 36 ) AS INTEGER )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7542
SELECT COALESCE ( - ( + + ( - - COUNT( * ) ) ), CAST( - 28 AS SIGNED ) * + 84, 31 )
----
-1

skipif mysql # not compatible
query I rowsort label-7542
SELECT COALESCE ( - ( + + ( - - COUNT ( * ) ) ), CAST ( - 28 AS INTEGER ) * + 84, 31 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7543
SELECT 21 * + - 48 + MAX( + 47 )
----
-961

skipif mysql # not compatible
query I rowsort label-7543
SELECT 21 * + - 48 + MAX ( + 47 )
----
-961

onlyif mysql # DIV for integer division: 
query I rowsort label-7544
SELECT + 6 - + - 23 DIV + 43
----
6

skipif mysql # not compatible
query I rowsort label-7544
SELECT + 6 - + - 23 / + 43
----
6

query I rowsort
SELECT - 18 * - 5
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7546
SELECT CASE + + CAST( - + CAST( 2 AS SIGNED ) AS SIGNED ) WHEN + 65 + + 60 * - 15 THEN + 44 ELSE 12 * + + 80 END
----
960

skipif mysql # not compatible
query I rowsort label-7546
SELECT CASE + + CAST ( - + CAST ( 2 AS INTEGER ) AS INTEGER ) WHEN + 65 + + 60 * - 15 THEN + 44 ELSE 12 * + + 80 END
----
960

query I rowsort
SELECT - 96 * 72 - - 35
----
-6877

onlyif mysql # aggregate syntax: 
query I rowsort label-7548
SELECT ALL + 44 * 2 - ( - COUNT( * ) ) + - - 17 AS col0
----
106

skipif mysql # not compatible
query I rowsort label-7548
SELECT ALL + 44 * 2 - ( - COUNT ( * ) ) + - - 17 AS col0
----
106

query I rowsort
SELECT - 70 + - 55 AS col1
----
-125

query I rowsort
SELECT ALL 82 * 95
----
7790

query I rowsort
SELECT + 88 * + - 46 * + 72 * - 37 col0
----
10783872

onlyif mysql # aggregate syntax: 
query I rowsort label-7552
SELECT + COUNT( * ) + - 60
----
-59

skipif mysql # not compatible
query I rowsort label-7552
SELECT + COUNT ( * ) + - 60
----
-59

query I rowsort
SELECT ALL + 22 * - 18 AS col0
----
-396

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

skipif mysql # not compatible
query I rowsort label-7554
SELECT + COUNT ( * ) / 86
----
0

query I rowsort
SELECT - 28 + + 15 col1
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-7556
SELECT COUNT( * ) * + 99 AS col2, + 7 * + 88 AS col2
----
99
616

skipif mysql # not compatible
query II rowsort label-7556
SELECT COUNT ( * ) * + 99 AS col2, + 7 * + 88 AS col2
----
99
616

onlyif mysql # aggregate syntax: 
query I rowsort label-7557
SELECT ( - COUNT( * ) ) + - 81
----
-82

skipif mysql # not compatible
query I rowsort label-7557
SELECT ( - COUNT ( * ) ) + - 81
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7558
SELECT ALL 16 + - + 83 + - 77 * + - 51 + - 78 + 13 + MAX( ALL ( - - 56 ) ) AS col1
----
3851

skipif mysql # not compatible
query I rowsort label-7558
SELECT ALL 16 + - + 83 + - 77 * + - 51 + - 78 + 13 + MAX ( ALL ( - - 56 ) ) AS col1
----
3851

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7559
SELECT ALL - CAST( 47 AS SIGNED ) + + COUNT( * ) + + 19 DIV + 46
----
-46

skipif mysql # not compatible
query I rowsort label-7559
SELECT ALL - CAST ( 47 AS INTEGER ) + + COUNT ( * ) + + 19 / + 46
----
-46

query I rowsort
SELECT ALL + 24 + 44
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7561
SELECT ALL - NULLIF ( + 96, COUNT( * ) ) + + 46
----
-50

skipif mysql # not compatible
query I rowsort label-7561
SELECT ALL - NULLIF ( + 96, COUNT ( * ) ) + + 46
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7562
SELECT ALL 25 AS col1, - CAST( NULL AS SIGNED ) col1
----
25
NULL

skipif mysql # not compatible
query II rowsort label-7562
SELECT ALL 25 AS col1, - CAST ( NULL AS INTEGER ) col1
----
25
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT + MIN( - 89 ) + - - 36 - + + 45 + + 88 * NULLIF ( 40, 41 )
----
3422

skipif mysql # not compatible
query I rowsort label-7563
SELECT + MIN ( - 89 ) + - - 36 - + + 45 + + 88 * NULLIF ( 40, 41 )
----
3422

query I rowsort
SELECT ALL - + 28 + - 29
----
-57

query I rowsort
SELECT ALL - ( + + 61 ) + 2 * + 44
----
27

query I rowsort
SELECT 17 + + 92 AS col2
----
109

query I rowsort
SELECT - 19 - - 49 AS col2
----
30

query I rowsort
SELECT ALL + 89 * - + 62 AS col0
----
-5518

onlyif mysql # DIV for integer division: 
query I rowsort label-7569
SELECT - 44 DIV - 32 + 13 + + 66
----
80

skipif mysql # not compatible
query I rowsort label-7569
SELECT - 44 / - 32 + 13 + + 66
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-7570
SELECT - 46 + - + 83 col2, COUNT( * )
----
-129
1

skipif mysql # not compatible
query II rowsort label-7570
SELECT - 46 + - + 83 col2, COUNT ( * )
----
-129
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7571
SELECT ALL COUNT( * ) + - 12 + 55 + + 41 * - - 97 * COUNT( * ) / NULLIF ( + 61, 79 ) / CAST( NULL AS SIGNED ) * - 19 * CAST( NULL AS SIGNED ) + + - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-7571
SELECT ALL COUNT ( * ) + - 12 + 55 + + 41 * - - 97 * COUNT ( * ) / NULLIF ( + 61, 79 ) / CAST ( NULL AS INTEGER ) * - 19 * CAST ( NULL AS INTEGER ) + + - 1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7572
SELECT DISTINCT - - COUNT( 31 )
----
1

skipif mysql # not compatible
query I rowsort label-7572
SELECT DISTINCT - - COUNT ( 31 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7573
SELECT ALL + ( + ( 71 ) ) - + 56 AS col1, 85 + + COUNT( * )
----
15
86

skipif mysql # not compatible
query II rowsort label-7573
SELECT ALL + ( + ( 71 ) ) - + 56 AS col1, 85 + + COUNT ( * )
----
15
86

query I rowsort
SELECT ALL - + COALESCE ( + + 20, 85 ) AS col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7575
SELECT + CASE + - 75 WHEN - 3 THEN NULL ELSE + COUNT( * ) * 15 + 81 - - + 61 END
----
157

skipif mysql # not compatible
query I rowsort label-7575
SELECT + CASE + - 75 WHEN - 3 THEN NULL ELSE + COUNT ( * ) * 15 + 81 - - + 61 END
----
157

query I rowsort
SELECT ALL + ( 33 ) * + ( - - 91 ) + 74
----
3077

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT - 18 * + MIN( DISTINCT - 3 ) + - 0 * 98 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-7577
SELECT - 18 * + MIN ( DISTINCT - 3 ) + - 0 * 98 AS col1
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-7578
SELECT 49 + + 31 DIV - 76
----
49

skipif mysql # not compatible
query I rowsort label-7578
SELECT 49 + + 31 / - 76
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7579
SELECT ALL - CAST( + + 20 AS SIGNED ) * 48, - 53 AS col1
----
-960
-53

skipif mysql # not compatible
query II rowsort label-7579
SELECT ALL - CAST ( + + 20 AS INTEGER ) * 48, - 53 AS col1
----
-960
-53

query II rowsort
SELECT 20 * - 39 AS col1, 32 AS col1
----
-780
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7581
SELECT DISTINCT - CASE - - 28 WHEN - + 82 THEN NULL ELSE - COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-7581
SELECT DISTINCT - CASE - - 28 WHEN - + 82 THEN NULL ELSE - COUNT ( * ) END
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7582
SELECT 46 * + COUNT( * ) AS col2, 71
----
46
71

skipif mysql # not compatible
query II rowsort label-7582
SELECT 46 * + COUNT ( * ) AS col2, 71
----
46
71

query I rowsort
SELECT DISTINCT - COALESCE ( 32, - + 12 ) AS col1
----
-32

query I rowsort
SELECT ALL + 27 + - + 55
----
-28

query I rowsort
SELECT - 98 * - 16 - + 29 * + 8
----
1336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7586
SELECT 36 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7586
SELECT 36 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 39 + 69 + 17
----
125

query II rowsort
SELECT 81 + - + 71 AS col1, + 23 - 15
----
10
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT SUM( 23 ) * 8 AS col0
----
184

skipif mysql # not compatible
query I rowsort label-7589
SELECT SUM ( 23 ) * 8 AS col0
----
184

query I rowsort
SELECT DISTINCT + 9 + 25
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT ALL - + 84 + - + SUM( ALL + 99 ) * 13
----
-1371

skipif mysql # not compatible
query I rowsort label-7591
SELECT ALL - + 84 + - + SUM ( ALL + 99 ) * 13
----
-1371

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

skipif mysql # not compatible
query I rowsort label-7592
SELECT ALL + + COUNT ( * ) * 87 AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7593
SELECT DISTINCT - MIN( - ( + - 55 ) )
----
-55

skipif mysql # not compatible
query I rowsort label-7593
SELECT DISTINCT - MIN ( - ( + - 55 ) )
----
-55

query I rowsort
SELECT ALL 20 + - 55 * - 44
----
2440

onlyif mysql # aggregate syntax: 
query I rowsort label-7595
SELECT DISTINCT + 51 * + + MIN( ALL + 1 )
----
51

skipif mysql # not compatible
query I rowsort label-7595
SELECT DISTINCT + 51 * + + MIN ( ALL + 1 )
----
51

query II rowsort
SELECT DISTINCT + + 47 + 26 AS col1, 26
----
73
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7597
SELECT DISTINCT - 59 + - 72 + - NULLIF ( - - 57, + 11 * 44 + + 48 ) + 63 DIV + COALESCE ( - COUNT( * ), - 64, - + 45, - ( - + 5 ) * 2 + - + CASE COUNT( * ) WHEN + CAST( NULL AS SIGNED ) + + 8 THEN NULL WHEN + 17 THEN - - CAST( - + 97 AS SIGNED ) * - 72 END + - 7 ) col0
----
-251

skipif mysql # not compatible
query I rowsort label-7597
SELECT DISTINCT - 59 + - 72 + - NULLIF ( - - 57, + 11 * 44 + + 48 ) + 63 / + COALESCE ( - COUNT ( * ), - 64, - + 45, - ( - + 5 ) * 2 + - + CASE COUNT ( * ) WHEN + CAST ( NULL AS INTEGER ) + + 8 THEN NULL WHEN + 17 THEN - - CAST ( - + 97 AS INTEGER ) * - 72 END + - 7 ) col0
----
-251

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

skipif mysql # not compatible
query I rowsort label-7598
SELECT ALL - 1 + COUNT ( * ) / - - 70 * 49 AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7599
SELECT ALL 4 DIV - 27 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7599
SELECT ALL 4 / - 27 AS col2
----
0

query I rowsort
SELECT - 74 * - - 67 + + 53 AS col0
----
-4905

query I rowsort
SELECT DISTINCT 31 * - 92 AS col2
----
-2852

onlyif mysql # aggregate syntax: 
query II rowsort label-7602
SELECT DISTINCT - - MIN( DISTINCT + 42 ), - 12 col1
----
42
-12

skipif mysql # not compatible
query II rowsort label-7602
SELECT DISTINCT - - MIN ( DISTINCT + 42 ), - 12 col1
----
42
-12

query I rowsort
SELECT ALL - 77 * + 64 - 24 AS col2
----
-4952

query II rowsort
SELECT ALL 93 * 31 AS col0, - 71 AS col1
----
2883
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT + + 69 * + 54 * + COUNT( 84 ) + 31
----
3757

skipif mysql # not compatible
query I rowsort label-7605
SELECT + + 69 * + 54 * + COUNT ( 84 ) + 31
----
3757

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7606
SELECT COALESCE ( + 49, + - 3 DIV + - 2 - - CAST( - 37 AS SIGNED ) + + - 50, + - COALESCE ( 1, - ( 90 ) + + ( - ( + CASE + - 95 WHEN - 38 THEN ( COUNT( * ) ) * COALESCE ( 24, + NULLIF ( - + 36, + 15 ) + 23 ) + + 10 DIV - - 70 END ) ) - 33 + 48 - 19, 64 - 38 ) ) + 80 col2
----
129

skipif mysql # not compatible
query I rowsort label-7606
SELECT COALESCE ( + 49, + - 3 / + - 2 - - CAST ( - 37 AS INTEGER ) + + - 50, + - COALESCE ( 1, - ( 90 ) + + ( - ( + CASE + - 95 WHEN - 38 THEN ( COUNT ( * ) ) * COALESCE ( 24, + NULLIF ( - + 36, + 15 ) + 23 ) + + 10 / - - 70 END ) ) - 33 + 48 - 19, 64 - 38 ) ) + 80 col2
----
129

query II rowsort
SELECT + 80, + 7 col0
----
80
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7608
SELECT COUNT( - 48 )
----
1

skipif mysql # not compatible
query I rowsort label-7608
SELECT COUNT ( - 48 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7609
SELECT ALL - 59 col2, + COUNT( * ) * - 57 * + 87 - CAST( NULL AS SIGNED ) AS col0
----
-59
NULL

skipif mysql # not compatible
query II rowsort label-7609
SELECT ALL - 59 col2, + COUNT ( * ) * - 57 * + 87 - CAST ( NULL AS INTEGER ) AS col0
----
-59
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7610
SELECT DISTINCT NULLIF ( 78, + - SUM( 50 ) - 69 ) * 73 + + ( + 98 ) DIV + 32 + + 12
----
5709

skipif mysql # not compatible
query I rowsort label-7610
SELECT DISTINCT NULLIF ( 78, + - SUM ( 50 ) - 69 ) * 73 + + ( + 98 ) / + 32 + + 12
----
5709

query II rowsort
SELECT ALL - 65 col0, + 69
----
-65
69

query I rowsort
SELECT ALL - NULLIF ( - 51, - 72 * - ( - 5 ) * 43 * ( - ( + 6 ) ) * - + ( - - 68 ) * 0 )
----
51

query II rowsort
SELECT ALL - 75 AS col2, 87 AS col2
----
-75
87

onlyif mysql # aggregate syntax: 
query II rowsort label-7614
SELECT DISTINCT - 78, 79 * + CASE - + ( + 32 ) WHEN COALESCE ( - MIN( ALL - - 97 ), + 10 ) THEN - ( - + 58 ) WHEN + 13 THEN NULL END AS col1
----
-78
NULL

skipif mysql # not compatible
query II rowsort label-7614
SELECT DISTINCT - 78, 79 * + CASE - + ( + 32 ) WHEN COALESCE ( - MIN ( ALL - - 97 ), + 10 ) THEN - ( - + 58 ) WHEN + 13 THEN NULL END AS col1
----
-78
NULL

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

skipif mysql # not compatible
query I rowsort label-7615
SELECT DISTINCT CAST ( - 42 AS INTEGER ) + + + 26
----
-16

query I rowsort
SELECT ALL 5 + - - 75
----
80

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7618
SELECT - COALESCE ( + 37, + COUNT( * ) * + CASE + COUNT( * ) WHEN - - 39 * - - 87 THEN - MIN( - 64 ) ELSE NULL END ) * 26
----
-962

skipif mysql # not compatible
query I rowsort label-7618
SELECT - COALESCE ( + 37, + COUNT ( * ) * + CASE + COUNT ( * ) WHEN - - 39 * - - 87 THEN - MIN ( - 64 ) ELSE NULL END ) * 26
----
-962

onlyif mysql # DIV for integer division: 
query I rowsort label-7619
SELECT ALL - 50 + - - 92 + - 59 DIV - - ( - 77 ) * - 81 + + 26 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-7619
SELECT ALL - 50 + - - 92 + - 59 / - - ( - 77 ) * - 81 + + 26 AS col2
----
68

query I rowsort
SELECT DISTINCT 4 + + + 12
----
16

query I rowsort
SELECT ALL 63 * + 97 AS col0
----
6111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7622
SELECT - CASE + - CASE AVG ( DISTINCT - 23 ) WHEN - 42 / COUNT( * ) * + + 11 THEN NULL ELSE + ( 31 ) * + 95 END WHEN - - NULLIF ( + - CAST( NULL AS SIGNED ), 14 * + 2 ) * + 15 THEN NULL WHEN + 5 THEN 45 + 80 + + 36 * + + 66 / 63 + + - AVG ( - 57 ) + - 24 + + 95 END * - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-7622
SELECT - CASE + - CASE AVG ( DISTINCT - 23 ) WHEN - 42 / COUNT ( * ) * + + 11 THEN NULL ELSE + ( 31 ) * + 95 END WHEN - - NULLIF ( + - CAST ( NULL AS INTEGER ), 14 * + 2 ) * + 15 THEN NULL WHEN + 5 THEN 45 + 80 + + 36 * + + 66 / 63 + + - AVG ( - 57 ) + - 24 + + 95 END * - 51
----
NULL

query I rowsort
SELECT DISTINCT + 5 * + 70 AS col0
----
350

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT ALL - 51 + - COUNT( * ) + + + 17 * COUNT( * ) + ( - + 24 ) * - 61
----
1429

skipif mysql # not compatible
query I rowsort label-7624
SELECT ALL - 51 + - COUNT ( * ) + + + 17 * COUNT ( * ) + ( - + 24 ) * - 61
----
1429

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7625
SELECT - 9 AS col2, + 47 + + CAST( NULL AS DECIMAL )
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-7625
SELECT - 9 AS col2, + 47 + + CAST ( NULL AS REAL )
----
-9
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7626
SELECT - - 16 + + NULLIF ( - 65, - CAST( NULL AS SIGNED ) ) - - 92 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-7626
SELECT - - 16 + + NULLIF ( - 65, - CAST ( NULL AS INTEGER ) ) - - 92 AS col1
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-7627
SELECT - 60, + COUNT( * ) + 45 + - + 19 AS col1
----
-60
27

skipif mysql # not compatible
query II rowsort label-7627
SELECT - 60, + COUNT ( * ) + 45 + - + 19 AS col1
----
-60
27

query I rowsort
SELECT - + 41 + + 88 AS col2
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-7629
SELECT 74 AS col1, COUNT( * ) + 39 + + COUNT( * ) + 37 + - + 37 + + 67 * + 51
----
74
3458

skipif mysql # not compatible
query II rowsort label-7629
SELECT 74 AS col1, COUNT ( * ) + 39 + + COUNT ( * ) + 37 + - + 37 + + 67 * + 51
----
74
3458

onlyif mysql # aggregate syntax: 
query II rowsort label-7630
SELECT DISTINCT - ( 72 ) - + COUNT( * ) AS col0, + 74
----
-73
74

skipif mysql # not compatible
query II rowsort label-7630
SELECT DISTINCT - ( 72 ) - + COUNT ( * ) AS col0, + 74
----
-73
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7631
SELECT - CASE - 67 WHEN COUNT( * ) THEN - - 42 + 74 + + - 41 - - + MAX( - 51 ) WHEN MAX( - 22 ) THEN 40 ELSE 38 + - 18 END + ( + 71 ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-7631
SELECT - CASE - 67 WHEN COUNT ( * ) THEN - - 42 + 74 + + - 41 - - + MAX ( - 51 ) WHEN MAX ( - 22 ) THEN 40 ELSE 38 + - 18 END + ( + 71 ) AS col1
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7632
SELECT DISTINCT COALESCE ( + + 34, 41 DIV COUNT( ALL 1 ) - + + 61 ) - - + 89
----
123

skipif mysql # not compatible
query I rowsort label-7632
SELECT DISTINCT COALESCE ( + + 34, 41 / COUNT ( ALL 1 ) - + + 61 ) - - + 89
----
123

query I rowsort
SELECT DISTINCT - 78 * - - 74 + - 53
----
-5825

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT ALL - - COUNT( * ) * - + NULLIF ( + COUNT( * ), 85 )
----
-1

skipif mysql # not compatible
query I rowsort label-7634
SELECT ALL - - COUNT ( * ) * - + NULLIF ( + COUNT ( * ), 85 )
----
-1

query I rowsort
SELECT + - 34 + - 82 * + 76 AS col0
----
-6266

query I rowsort
SELECT - 54 * + 45 AS col2
----
-2430

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7637
SELECT ALL + CAST( + 90 AS SIGNED )
----
90

skipif mysql # not compatible
query I rowsort label-7637
SELECT ALL + CAST ( + 90 AS INTEGER )
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-7638
SELECT ALL - 99 DIV - 13
----
7

skipif mysql # not compatible
query I rowsort label-7638
SELECT ALL - 99 / - 13
----
7

query II rowsort
SELECT + 47 + CASE - 66 WHEN + + 58 THEN - 17 END AS col1, ( - - 88 ) - - ( ( + + 96 ) ) - - + 35
----
NULL
219

query I rowsort
SELECT ALL 59 * - 87
----
-5133

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7641
SELECT + 65 DIV MIN( ALL - 51 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7641
SELECT + 65 / MIN ( ALL - 51 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7642
SELECT ( - COUNT( * ) ) col1, 89 * 60
----
-1
5340

skipif mysql # not compatible
query II rowsort label-7642
SELECT ( - COUNT ( * ) ) col1, 89 * 60
----
-1
5340

query I rowsort
SELECT NULLIF ( + 0, - + 92 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7644
SELECT 90 * + COUNT( * ) + 41
----
131

skipif mysql # not compatible
query I rowsort label-7644
SELECT 90 * + COUNT ( * ) + 41
----
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7645
SELECT CASE + + 39 WHEN CAST( + - 63 AS SIGNED ) * + CASE COALESCE ( 28, + 2, ( - + 38 ) * + 11 + + + COUNT( * ) ) WHEN ( - 28 ) THEN - CASE + CAST( NULL AS SIGNED ) WHEN - - 38 THEN NULL WHEN + 49 THEN NULL WHEN - CAST( - CAST( - AVG ( + 5 ) AS SIGNED ) AS DECIMAL ) / - ( + CASE - ( SUM( 14 ) ) WHEN - 75 * - CASE COUNT( * ) WHEN CASE 92 WHEN 55 THEN CASE + 8 WHEN COUNT( * ) THEN - 50 WHEN COUNT( * ) THEN 19 WHEN 46 * + ( ( - ( + 78 ) ) ) THEN NULL ELSE NULL END * 76 - + MAX( ALL ( 53 ) + 15 * ( - 86 ) ) ELSE NULL END * - 19 + 72 THEN NULL ELSE - MAX( + 32 ) END + + 55 THEN NULL WHEN - 2 THEN - 87 * - 74 ELSE NULL END ) THEN + CAST( NULL AS SIGNED ) ELSE NULL END WHEN 80 / 91 THEN NULL WHEN 27 THEN + 31 ELSE NULL END * - 71 - 4 * 76 THEN + 53 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7645
SELECT CASE + + 39 WHEN CAST ( + - 63 AS INTEGER ) * + CASE COALESCE ( 28, + 2, ( - + 38 ) * + 11 + + + COUNT ( * ) ) WHEN ( - 28 ) THEN - CASE + CAST ( NULL AS INTEGER ) WHEN - - 38 THEN NULL WHEN + 49 THEN NULL WHEN - CAST ( - CAST ( - AVG ( + 5 ) AS INTEGER ) AS REAL ) / - ( + CASE - ( SUM ( 14 ) ) WHEN - 75 * - CASE COUNT ( * ) WHEN CASE 92 WHEN 55 THEN CASE + 8 WHEN COUNT ( * ) THEN - 50 WHEN COUNT ( * ) THEN 19 WHEN 46 * + ( ( - ( + 78 ) ) ) THEN NULL ELSE NULL END * 76 - + MAX ( ALL ( 53 ) + 15 * ( - 86 ) ) ELSE NULL END * - 19 + 72 THEN NULL ELSE - MAX ( + 32 ) END + + 55 THEN NULL WHEN - 2 THEN - 87 * - 74 ELSE NULL END ) THEN + CAST ( NULL AS INTEGER ) ELSE NULL END WHEN 80 / 91 THEN NULL WHEN 27 THEN + 31 ELSE NULL END * - 71 - 4 * 76 THEN + 53 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7646
SELECT + 58 * COUNT( * ), + 34 col0
----
58
34

skipif mysql # not compatible
query II rowsort label-7646
SELECT + 58 * COUNT ( * ), + 34 col0
----
58
34

query I rowsort
SELECT ALL 63 * - 75 col2
----
-4725

onlyif mysql # aggregate syntax: 
query I rowsort label-7648
SELECT CASE 81 WHEN - 62 * + + COUNT( * ) THEN NULL WHEN 93 THEN NULL WHEN + - 68 THEN NULL ELSE - ( - - 95 ) END AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-7648
SELECT CASE 81 WHEN - 62 * + + COUNT ( * ) THEN NULL WHEN 93 THEN NULL WHEN + - 68 THEN NULL ELSE - ( - - 95 ) END AS col2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7649
SELECT CASE WHEN NOT - COUNT( * ) >= - 66 THEN - + 21 * + 6 ELSE + 33 * + 35 - + 7 END
----
1148

skipif mysql # not compatible
query I rowsort label-7649
SELECT CASE WHEN NOT - COUNT ( * ) >= - 66 THEN - + 21 * + 6 ELSE + 33 * + 35 - + 7 END
----
1148

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT MAX( ALL + + NULLIF ( + 19, + 9 ) )
----
19

skipif mysql # not compatible
query I rowsort label-7650
SELECT MAX ( ALL + + NULLIF ( + 19, + 9 ) )
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7651
SELECT ALL 33 * + 92 * + + 40 + 85 + CASE - 21 WHEN + 96 THEN 62 * 91 * - - 64 + - + 75 - + 47 WHEN 68 / 34 + + CAST( + 80 AS SIGNED ) + - 81 + + 40 * - 46 + - 2 THEN + 37 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7651
SELECT ALL 33 * + 92 * + + 40 + 85 + CASE - 21 WHEN + 96 THEN 62 * 91 * - - 64 + - + 75 - + 47 WHEN 68 / 34 + + CAST ( + 80 AS INTEGER ) + - 81 + + 40 * - 46 + - 2 THEN + 37 END
----
NULL

query I rowsort
SELECT + 27 * + 88 * 6
----
14256

query I rowsort
SELECT - ( - + ( 14 ) ) AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7654
SELECT - COALESCE ( + 82, + + 34 * + + 25 + - COUNT( * ) + + 69 )
----
-82

skipif mysql # not compatible
query I rowsort label-7654
SELECT - COALESCE ( + 82, + + 34 * + + 25 + - COUNT ( * ) + + 69 )
----
-82

query I rowsort
SELECT - 85 + + COALESCE ( + + 51, COALESCE ( + ( 96 ), NULLIF ( 86, 85 ) ) )
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-7656
SELECT - + 7 DIV + + 53 DIV - 5
----
0

skipif mysql # not compatible
query I rowsort label-7656
SELECT - + 7 / + + 53 / - 5
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7657
SELECT ALL - + 54 * + 31 * - 39 - - COUNT( * ) * 81
----
65367

skipif mysql # not compatible
query I rowsort label-7657
SELECT ALL - + 54 * + 31 * - 39 - - COUNT ( * ) * 81
----
65367

query I rowsort
SELECT + + 96 * 35 - - 35
----
3395

query I rowsort
SELECT - ( 86 ) + - + 75 AS col1
----
-161

onlyif mysql # aggregate syntax: 
query II rowsort label-7660
SELECT DISTINCT COUNT( * ) * - + 43 AS col2, - 10 AS col0
----
-43
-10

skipif mysql # not compatible
query II rowsort label-7660
SELECT DISTINCT COUNT ( * ) * - + 43 AS col2, - 10 AS col0
----
-43
-10

query I rowsort
SELECT DISTINCT + 99 - + 63 AS col1
----
36

query I rowsort
SELECT ALL 26 * 53
----
1378

query I rowsort
SELECT DISTINCT - 82 * - 11
----
902

query I rowsort
SELECT - 69 - + + 3 * 98 + - 26
----
-389

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7665
SELECT SUM( DISTINCT + 79 ) AS col1, ( + CAST( NULL AS SIGNED ) ) * + 98 AS col2
----
79
NULL

skipif mysql # not compatible
query II rowsort label-7665
SELECT SUM ( DISTINCT + 79 ) AS col1, ( + CAST ( NULL AS INTEGER ) ) * + 98 AS col2
----
79
NULL

query I rowsort
SELECT + + 11 + - + 20
----
-9

query II rowsort
SELECT - + 5 * + 6 * + - 23 * 59 + - + 69 + 19 * - 41 AS col1, 82
----
39862
82

onlyif mysql # aggregate syntax: 
query II rowsort label-7668
SELECT - + SUM( ALL + 61 ) * + 58 + - 36, 91 AS col1
----
-3574
91

skipif mysql # not compatible
query II rowsort label-7668
SELECT - + SUM ( ALL + 61 ) * + 58 + - 36, 91 AS col1
----
-3574
91

query I rowsort
SELECT - - 30 - + 70 * 85
----
-5920

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7670
SELECT DISTINCT COUNT( + COALESCE ( - ( + CAST( - - 53 AS DECIMAL ) ), + 58 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7670
SELECT DISTINCT COUNT ( + COALESCE ( - ( + CAST ( - - 53 AS REAL ) ), + 58 ) )
----
1

query I rowsort
SELECT ALL - 33 + - 72
----
-105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7672
SELECT - 36 + + NULLIF ( - 7, - 6 + + 12 ) + + 83 - + - ( CAST( - - COUNT( * ) AS SIGNED ) ) + + - 8 * - 66
----
569

skipif mysql # not compatible
query I rowsort label-7672
SELECT - 36 + + NULLIF ( - 7, - 6 + + 12 ) + + 83 - + - ( CAST ( - - COUNT ( * ) AS INTEGER ) ) + + - 8 * - 66
----
569

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7673
SELECT COUNT( * ) DIV + ( - 73 ) + 4 DIV 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7673
SELECT COUNT ( * ) / + ( - 73 ) + 4 / 83 AS col2
----
0

query II rowsort
SELECT 74 * + ( 8 ) col2, 21 AS col0
----
592
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7675
SELECT COUNT( * ) + - 97 + - + ( 93 ) * NULLIF ( 84, + 31 * - - 26 + - + 30 ) * - 81 DIV COUNT( DISTINCT - + 53 ) AS col0
----
632676

skipif mysql # not compatible
query I rowsort label-7675
SELECT COUNT ( * ) + - 97 + - + ( 93 ) * NULLIF ( 84, + 31 * - - 26 + - + 30 ) * - 81 / COUNT ( DISTINCT - + 53 ) AS col0
----
632676

query II rowsort
SELECT ALL - 90 AS col1, + 3 + - - 86 - 55
----
-90
34

query I rowsort
SELECT ALL 52 + - - 9 AS col0
----
61

query I rowsort
SELECT 64 + - + 51 + - 35 * + 14
----
-477

query I rowsort
SELECT ALL - COALESCE ( + 53, ( + - 24 ) )
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-7680
SELECT DISTINCT + 50 DIV - 61 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7680
SELECT DISTINCT + 50 / - 61 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7681
SELECT DISTINCT COUNT( * ) * 73
----
73

skipif mysql # not compatible
query I rowsort label-7681
SELECT DISTINCT COUNT ( * ) * 73
----
73

query I rowsort
SELECT 54 + - ( + + 70 ) + + 45
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7683
SELECT ( - 18 ) * - 95 - - CAST( NULL AS SIGNED ) - 40 + - 72 * + - 2 / + 30 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7683
SELECT ( - 18 ) * - 95 - - CAST ( NULL AS INTEGER ) - 40 + - 72 * + - 2 / + 30 AS col0
----
NULL

query I rowsort
SELECT 99 - + 86
----
13

query I rowsort
SELECT ALL 10 * - 68
----
-680

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7686
SELECT + CASE 92 WHEN + 18 + - 95 * CAST( NULL AS DECIMAL ) * 85 * 99 * + - COUNT( DISTINCT + 72 ) * CAST( - + 85 AS DECIMAL ) THEN NULL WHEN - COUNT( * ) THEN - 31 + + 13 ELSE NULL END * + + 6 * - - 42 + - - 33 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7686
SELECT + CASE 92 WHEN + 18 + - 95 * CAST ( NULL AS REAL ) * 85 * 99 * + - COUNT ( DISTINCT + 72 ) * CAST ( - + 85 AS REAL ) THEN NULL WHEN - COUNT ( * ) THEN - 31 + + 13 ELSE NULL END * + + 6 * - - 42 + - - 33 AS col2
----
NULL

query I rowsort
SELECT 97 + + 60
----
157

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7688
SELECT DISTINCT + 72 * - + 50 + - + NULLIF ( 3, - + COALESCE ( - + 33, - CAST( NULL AS DECIMAL ) * + + 97, COUNT( * ) ) * - 3 ) - - 96 AS col1
----
-3507

skipif mysql # not compatible
query I rowsort label-7688
SELECT DISTINCT + 72 * - + 50 + - + NULLIF ( 3, - + COALESCE ( - + 33, - CAST ( NULL AS REAL ) * + + 97, COUNT ( * ) ) * - 3 ) - - 96 AS col1
----
-3507

onlyif mysql # aggregate syntax: 
query I rowsort label-7689
SELECT - COUNT( * ) * - 38 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-7689
SELECT - COUNT ( * ) * - 38 AS col2
----
38

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

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

query I rowsort
SELECT 76 + 21 AS col2
----
97

query I rowsort
SELECT - 54 + - 18 AS col2
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-7693
SELECT ALL - 89 DIV - 96 - 87
----
-87

skipif mysql # not compatible
query I rowsort label-7693
SELECT ALL - 89 / - 96 - 87
----
-87

query I rowsort
SELECT + 63 * - 73 * + - 36
----
165564

query II rowsort
SELECT ALL 40 AS col0, 49 * - 59
----
40
-2891

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

query I rowsort
SELECT 86 + 77 AS col2
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-7698
SELECT - 29 + + 72 + + COUNT( * ) + + 82 AS col2
----
126

skipif mysql # not compatible
query I rowsort label-7698
SELECT - 29 + + 72 + + COUNT ( * ) + + 82 AS col2
----
126

query I rowsort
SELECT 76 * - 13 col1
----
-988

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

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

query I rowsort
SELECT ALL 82 + - + 0 AS col2
----
82

query I rowsort
SELECT + 52 + 34
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-7703
SELECT 33, - 99 + - CASE + 22 WHEN + + 36 THEN NULL WHEN - COALESCE ( 14, + 21, + - COUNT( * ) + - - 83 * + 15 + 7 ) THEN 22 END + + 78 AS col0
----
33
NULL

skipif mysql # not compatible
query II rowsort label-7703
SELECT 33, - 99 + - CASE + 22 WHEN + + 36 THEN NULL WHEN - COALESCE ( 14, + 21, + - COUNT ( * ) + - - 83 * + 15 + 7 ) THEN 22 END + + 78 AS col0
----
33
NULL

query I rowsort
SELECT DISTINCT 44 + + ( + 19 ) - - COALESCE ( + 59, + 50 )
----
122

onlyif mysql # DIV for integer division: 
query I rowsort label-7705
SELECT ALL + 35 DIV + - 74 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7705
SELECT ALL + 35 / + - 74 AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-7706
SELECT ALL ( - + 63 ) + COUNT ( * ) AS col1
----
-62

query I rowsort
SELECT ( 75 ) * + + 40 * - 87 AS col1
----
-261000

query I rowsort
SELECT 55 * 27
----
1485

query II rowsort
SELECT - 31 AS col2, 56 + + 93 * + - ( + - ( - 50 ) ) * + + 50
----
-31
-232444

onlyif mysql # aggregate syntax: 
query I rowsort label-7710
SELECT COUNT( * ) * 51 * - NULLIF ( + - COUNT( * ), + 47 )
----
51

skipif mysql # not compatible
query I rowsort label-7710
SELECT COUNT ( * ) * 51 * - NULLIF ( + - COUNT ( * ), + 47 )
----
51

query I rowsort
SELECT 65 + 19
----
84

query II rowsort
SELECT 25 col2, + 36 + - 56 * - - 87 * 98 + 71 * - 91 * - + 56
----
25
-115604

onlyif mysql # aggregate syntax: 
query II rowsort label-7713
SELECT DISTINCT - 81 + + - 32 AS col2, 54 + - MAX( + + NULLIF ( - 7, 17 * 29 ) ) + + MAX( 32 ) + - 29
----
-113
64

skipif mysql # not compatible
query II rowsort label-7713
SELECT DISTINCT - 81 + + - 32 AS col2, 54 + - MAX ( + + NULLIF ( - 7, 17 * 29 ) ) + + MAX ( 32 ) + - 29
----
-113
64

query II rowsort
SELECT DISTINCT - ( + 7 ) AS col1, + 75
----
-7
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7715
SELECT 55 * - - CAST( + MAX( + 89 ) AS SIGNED )
----
4895

skipif mysql # not compatible
query I rowsort label-7715
SELECT 55 * - - CAST ( + MAX ( + 89 ) AS INTEGER )
----
4895

query II rowsort
SELECT 24 AS col0, 48 * + 11 AS col1
----
24
528

query I rowsort
SELECT ALL + 64 - - 69
----
133

query I rowsort
SELECT 80 * + - 71
----
-5680

query I rowsort
SELECT ALL - NULLIF ( 40, 43 )
----
-40

query I rowsort
SELECT 9 + + ( - 87 ) + - 38
----
-116

query II rowsort
SELECT 24, 0 * - 38 AS col2
----
24
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7722
SELECT DISTINCT - 51, COALESCE ( - NULLIF ( 25, + 9 / - COUNT( * ) + 67 * - 32 * - + 22 ), + 68 ) AS col2
----
-51
-25

skipif mysql # not compatible
query II rowsort label-7722
SELECT DISTINCT - 51, COALESCE ( - NULLIF ( 25, + 9 / - COUNT ( * ) + 67 * - 32 * - + 22 ), + 68 ) AS col2
----
-51
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7723
SELECT DISTINCT - - CASE + - 55 WHEN CAST( NULL AS SIGNED ) + - - 15 THEN CAST( NULL AS SIGNED ) WHEN - - 57 + + ( + NULLIF ( + 46, COUNT( ALL + CAST( ( + 49 ) AS SIGNED ) ) ) ) + - - 36 THEN NULL ELSE + 34 + - SUM( - - 33 ) - - 26 + + 23 - 18 END
----
32

skipif mysql # not compatible
query I rowsort label-7723
SELECT DISTINCT - - CASE + - 55 WHEN CAST ( NULL AS INTEGER ) + - - 15 THEN CAST ( NULL AS INTEGER ) WHEN - - 57 + + ( + NULLIF ( + 46, COUNT ( ALL + CAST ( ( + 49 ) AS INTEGER ) ) ) ) + - - 36 THEN NULL ELSE + 34 + - SUM ( - - 33 ) - - 26 + + 23 - 18 END
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-7724
SELECT DISTINCT 59 DIV - 13 + NULLIF ( + 87, - 86 ) * + + 39 AS col1
----
3389

skipif mysql # not compatible
query I rowsort label-7724
SELECT DISTINCT 59 / - 13 + NULLIF ( + 87, - 86 ) * + + 39 AS col1
----
3389

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7725
SELECT DISTINCT + 40 / + CAST( NULL AS DECIMAL ) + + 54 * - - NULLIF ( - 13, + 34 + + 9 ) + - + ( + - 60 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7725
SELECT DISTINCT + 40 / + CAST ( NULL AS REAL ) + + 54 * - - NULLIF ( - 13, + 34 + + 9 ) + - + ( + - 60 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7726
SELECT ALL + - 95 DIV - COUNT( * ) col2
----
95

skipif mysql # not compatible
query I rowsort label-7726
SELECT ALL + - 95 / - COUNT ( * ) col2
----
95

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

skipif mysql # not compatible
query I rowsort label-7727
SELECT 22 / COUNT ( * ) AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7728
SELECT 44 * - - NULLIF ( - ( + ( - + COALESCE ( + COUNT( * ), + ( + NULLIF ( COUNT( * ), - 5 ) ) ) ) ), 51 + - 67 ) - - - 81 AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-7728
SELECT 44 * - - NULLIF ( - ( + ( - + COALESCE ( + COUNT ( * ), + ( + NULLIF ( COUNT ( * ), - 5 ) ) ) ) ), 51 + - 67 ) - - - 81 AS col0
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-7729
SELECT - 60 * 19 + + NULLIF ( + 8, + 46 ) DIV 39
----
-1140

skipif mysql # not compatible
query I rowsort label-7729
SELECT - 60 * 19 + + NULLIF ( + 8, + 46 ) / 39
----
-1140

query I rowsort
SELECT 70 + - 70 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT ALL + MIN( DISTINCT - + 0 )
----
0

skipif mysql # not compatible
query I rowsort label-7731
SELECT ALL + MIN ( DISTINCT - + 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7732
SELECT DISTINCT - COUNT( * ) + 86 AS col2
----
85

skipif mysql # not compatible
query I rowsort label-7732
SELECT DISTINCT - COUNT ( * ) + 86 AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7733
SELECT DISTINCT - COALESCE ( 86, + 86 ) + + - MAX( - 36 )
----
-50

skipif mysql # not compatible
query I rowsort label-7733
SELECT DISTINCT - COALESCE ( 86, + 86 ) + + - MAX ( - 36 )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7734
SELECT DISTINCT + 39 + 42 + - COUNT( * ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-7734
SELECT DISTINCT + 39 + 42 + - COUNT ( * ) AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7735
SELECT COUNT( * ) - 38 AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-7735
SELECT COUNT ( * ) - 38 AS col1
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7736
SELECT ALL ( + CASE - ( - 60 ) WHEN - COALESCE ( - 14, + - 90 * 10 ) THEN + 61 + 47 - CASE + ( + - AVG ( ALL - - 50 ) ) WHEN + + COUNT( * ) + - - CAST( - 43 AS SIGNED ) * COUNT( * ) * AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) * + 79 * - 68 * + 56 - 48 + AVG ( + - 4 ) THEN 45 WHEN + COUNT( * ) THEN - 92 ELSE NULL END WHEN - 77 THEN 70 ELSE - 60 * 94 + - 0 END ) col1
----
-5640

skipif mysql # not compatible
query I rowsort label-7736
SELECT ALL ( + CASE - ( - 60 ) WHEN - COALESCE ( - 14, + - 90 * 10 ) THEN + 61 + 47 - CASE + ( + - AVG ( ALL - - 50 ) ) WHEN + + COUNT ( * ) + - - CAST ( - 43 AS INTEGER ) * COUNT ( * ) * AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) * + 79 * - 68 * + 56 - 48 + AVG ( + - 4 ) THEN 45 WHEN + COUNT ( * ) THEN - 92 ELSE NULL END WHEN - 77 THEN 70 ELSE - 60 * 94 + - 0 END ) col1
----
-5640

query I rowsort
SELECT DISTINCT - 84 + - + 30 * + 12
----
-444

onlyif mysql # aggregate syntax: 
query II rowsort label-7738
SELECT COUNT( * ) AS col0, - ( + 22 ) - - 78 AS col2
----
1
56

skipif mysql # not compatible
query II rowsort label-7738
SELECT COUNT ( * ) AS col0, - ( + 22 ) - - 78 AS col2
----
1
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7739
SELECT - - CAST( NULL AS SIGNED ), - CASE + 4 WHEN + 24 THEN ( + 66 ) ELSE NULL END * - CAST( NULL AS DECIMAL ) + 36 * - - COALESCE ( - 74, 68 * - MIN( 59 ) * + COUNT( DISTINCT - 40 ) + NULLIF ( + 44, - + COUNT( * ) * - 12 ) + + 98 )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7739
SELECT - - CAST ( NULL AS INTEGER ), - CASE + 4 WHEN + 24 THEN ( + 66 ) ELSE NULL END * - CAST ( NULL AS REAL ) + 36 * - - COALESCE ( - 74, 68 * - MIN ( 59 ) * + COUNT ( DISTINCT - 40 ) + NULLIF ( + 44, - + COUNT ( * ) * - 12 ) + + 98 )
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7740
SELECT + 12 DIV - 30 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7740
SELECT + 12 / - 30 AS col2
----
0

query I rowsort
SELECT + COALESCE ( + + 67, 21 ) * 36 * 64 AS col2
----
154368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7742
SELECT ALL 0 + + CAST( + COUNT( * ) AS SIGNED ) * 85
----
85

skipif mysql # not compatible
query I rowsort label-7742
SELECT ALL 0 + + CAST ( + COUNT ( * ) AS INTEGER ) * 85
----
85

query I rowsort
SELECT ALL 76 - - 37 AS col0
----
113

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7744
SELECT DISTINCT CAST( + CAST( NULL AS DECIMAL ) AS DECIMAL ) / - 94 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7744
SELECT DISTINCT CAST ( + CAST ( NULL AS REAL ) AS REAL ) / - 94 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 94 * + 75 AS col0
----
7050

query I rowsort
SELECT ALL 9 * - - 33 - 35 + - 68
----
194

query I rowsort
SELECT DISTINCT 99 * + 94 * 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7748
SELECT + COUNT( * ) + + ( - 29 ) + 94
----
66

skipif mysql # not compatible
query I rowsort label-7748
SELECT + COUNT ( * ) + + ( - 29 ) + 94
----
66

query I rowsort
SELECT - COALESCE ( - 82, + 91 ) * 81 AS col1
----
6642

onlyif mysql # aggregate syntax: 
query I rowsort label-7750
SELECT ( - 80 ) * 53 + - ( + COUNT( * ) ) * + - 39 - - MAX( 36 )
----
-4165

skipif mysql # not compatible
query I rowsort label-7750
SELECT ( - 80 ) * 53 + - ( + COUNT ( * ) ) * + - 39 - - MAX ( 36 )
----
-4165

query I rowsort
SELECT + COALESCE ( + 22, + - 72 )
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7752
SELECT + 39 DIV + 1 + - 34 + + COUNT( * ) + - 32 * + 4
----
-122

skipif mysql # not compatible
query I rowsort label-7752
SELECT + 39 / + 1 + - 34 + + COUNT ( * ) + - 32 * + 4
----
-122

onlyif mysql # aggregate syntax: 
query II rowsort label-7753
SELECT + CASE WHEN 39 < + 23 THEN + 75 + + 81 + + COUNT( * ) * + 79 ELSE - 68 END * + + 97 AS col1, 21 * + COUNT( * )
----
-6596
21

skipif mysql # not compatible
query II rowsort label-7753
SELECT + CASE WHEN 39 < + 23 THEN + 75 + + 81 + + COUNT ( * ) * + 79 ELSE - 68 END * + + 97 AS col1, 21 * + COUNT ( * )
----
-6596
21

query I rowsort
SELECT - 98 * + 3 * - - 29
----
-8526

query I rowsort
SELECT ALL + - 35 * - - 58
----
-2030

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT - COUNT( * ) * - 37
----
37

skipif mysql # not compatible
query I rowsort label-7756
SELECT - COUNT ( * ) * - 37
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7757
SELECT DISTINCT + CAST( NULL AS SIGNED ) * COALESCE ( + COALESCE ( 51, 93 ), 97 + - 76 ) AS col0, - 30
----
NULL
-30

skipif mysql # not compatible
query II rowsort label-7757
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * COALESCE ( + COALESCE ( 51, 93 ), 97 + - 76 ) AS col0, - 30
----
NULL
-30

query I rowsort
SELECT - 36 + 57 * + 8
----
420

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT DISTINCT + + NULLIF ( + + COUNT( * ), + + 81 + + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-7759
SELECT DISTINCT + + NULLIF ( + + COUNT ( * ), + + 81 + + COUNT ( * ) )
----
1

query I rowsort
SELECT ALL + 62 * 11 * - - 12 AS col2
----
8184

query II rowsort
SELECT - - 56 * 39 AS col1, + 45 AS col1
----
2184
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7762
SELECT - ( + 87 ) * + COALESCE ( ( - + 16 ), - NULLIF ( - - 55, - + 55 / - MAX( DISTINCT + 21 ) * - COALESCE ( - 94, - 34 + + 45 - - 37 ) * 30 + - + 66 ) + + - 40 ) * 70 * COUNT( * ) * 18 * + 10
----
17539200

skipif mysql # not compatible
query I rowsort label-7762
SELECT - ( + 87 ) * + COALESCE ( ( - + 16 ), - NULLIF ( - - 55, - + 55 / - MAX ( DISTINCT + 21 ) * - COALESCE ( - 94, - 34 + + 45 - - 37 ) * 30 + - + 66 ) + + - 40 ) * 70 * COUNT ( * ) * 18 * + 10
----
17539200

onlyif mysql # aggregate syntax: 
query I rowsort label-7763
SELECT ALL - - 20 * - CASE + AVG ( ALL + + 89 ) WHEN - 66 THEN NULL WHEN - 15 THEN 38 * COUNT( * ) * MIN( DISTINCT - + 88 ) - MIN( ALL + 0 ) - - COUNT( * ) + - 0 + - 14 * + ( 98 ) * + 70 * 14 * + 57 * 48 - 53 + + 7 END * + 78 + - 11 * + 29 + + + 46 + + 10 + + ( - 83 ) * - - 74 / - 8 + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-7763
SELECT ALL - - 20 * - CASE + AVG ( ALL + + 89 ) WHEN - 66 THEN NULL WHEN - 15 THEN 38 * COUNT ( * ) * MIN ( DISTINCT - + 88 ) - MIN ( ALL + 0 ) - - COUNT ( * ) + - 0 + - 14 * + ( 98 ) * + 70 * 14 * + 57 * 48 - 53 + + 7 END * + 78 + - 11 * + 29 + + + 46 + + 10 + + ( - 83 ) * - - 74 / - 8 + 18
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7765
SELECT DISTINCT + 48 * - + COUNT( * ) + - 89 + - - MIN( - 5 ) * 3 * + 90
----
-1487

skipif mysql # not compatible
query I rowsort label-7765
SELECT DISTINCT + 48 * - + COUNT ( * ) + - 89 + - - MIN ( - 5 ) * 3 * + 90
----
-1487

onlyif mysql # DIV for integer division: 
query I rowsort label-7766
SELECT - 47 DIV + 81 + + - 2
----
-2

skipif mysql # not compatible
query I rowsort label-7766
SELECT - 47 / + 81 + + - 2
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-7767
SELECT DISTINCT - - 26 DIV - + 67
----
0

skipif mysql # not compatible
query I rowsort label-7767
SELECT DISTINCT - - 26 / - + 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7768
SELECT - - MIN( 49 ) * + - MIN( 28 ) + COUNT( DISTINCT + 65 ) + - + COALESCE ( - 41, NULLIF ( - 94, - 39 ) * - 15 )
----
-1330

skipif mysql # not compatible
query I rowsort label-7768
SELECT - - MIN ( 49 ) * + - MIN ( 28 ) + COUNT ( DISTINCT + 65 ) + - + COALESCE ( - 41, NULLIF ( - 94, - 39 ) * - 15 )
----
-1330

onlyif mysql # aggregate syntax: 
query I rowsort label-7769
SELECT - COUNT( * ) * + + 95 + + + 56
----
-39

skipif mysql # not compatible
query I rowsort label-7769
SELECT - COUNT ( * ) * + + 95 + + + 56
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7770
SELECT ALL - + MAX( ALL - 66 ) * - 39
----
-2574

skipif mysql # not compatible
query I rowsort label-7770
SELECT ALL - + MAX ( ALL - 66 ) * - 39
----
-2574

query I rowsort
SELECT ALL 1 - + NULLIF ( + - 26, + 61 ) * - 47 AS col2
----
-1221

query I rowsort
SELECT ALL ( + COALESCE ( + 78, - 26 + - - ( + COALESCE ( - - 56, - 47 ) ) + + 84 + - 96 * + + 22 * + - 27 + + 51, ( 80 ) ) ) AS col2
----
78

query I rowsort
SELECT - 83 + - 40 AS col1
----
-123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7774
SELECT + NULLIF ( + 38, 46 + ( 99 ) ) * + 29 * CAST( + ( + - 33 ) AS SIGNED )
----
-36366

skipif mysql # not compatible
query I rowsort label-7774
SELECT + NULLIF ( + 38, 46 + ( 99 ) ) * + 29 * CAST ( + ( + - 33 ) AS INTEGER )
----
-36366

onlyif mysql # aggregate syntax: 
query I rowsort label-7775
SELECT ALL + CASE + + 69 WHEN - MAX( + 63 ) + 8 + - 86 THEN 7 END * + + 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7775
SELECT ALL + CASE + + 69 WHEN - MAX ( + 63 ) + 8 + - 86 THEN 7 END * + + 50 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7776
SELECT + COUNT( * ) + - 45
----
-44

skipif mysql # not compatible
query I rowsort label-7776
SELECT + COUNT ( * ) + - 45
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-7777
SELECT - MIN( + - 44 ) col1
----
44

skipif mysql # not compatible
query I rowsort label-7777
SELECT - MIN ( + - 44 ) col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7778
SELECT + NULLIF ( + - 23, - - ( - COUNT( + 75 ) ) ) + - 5 col1
----
-28

skipif mysql # not compatible
query I rowsort label-7778
SELECT + NULLIF ( + - 23, - - ( - COUNT ( + 75 ) ) ) + - 5 col1
----
-28

query I rowsort
SELECT + 75 * + 72
----
5400

query I rowsort
SELECT + 81 + - 4
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7781
SELECT CAST( ( - + 41 ) AS SIGNED )
----
-41

skipif mysql # not compatible
query I rowsort label-7781
SELECT CAST ( ( - + 41 ) AS INTEGER )
----
-41

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

skipif mysql # not compatible
query I rowsort label-7782
SELECT ALL + AVG ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7783
SELECT ALL COUNT( * ) * + CASE - 79 WHEN - 42 THEN - ( + 60 ) / - + 47 / + 3 - 36 END * - 34 * 44 * ( + CASE + - 72 WHEN - COALESCE ( - 21, - COUNT( * ) ) THEN NULL ELSE - - 91 END ) + - + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-7783
SELECT ALL COUNT ( * ) * + CASE - 79 WHEN - 42 THEN - ( + 60 ) / - + 47 / + 3 - 36 END * - 34 * 44 * ( + CASE + - 72 WHEN - COALESCE ( - 21, - COUNT ( * ) ) THEN NULL ELSE - - 91 END ) + - + 6
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7784
SELECT DISTINCT - + 38 DIV + + 15 + 29
----
27

skipif mysql # not compatible
query I rowsort label-7784
SELECT DISTINCT - + 38 / + + 15 + 29
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7785
SELECT + - COUNT( * ) * 15 AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-7785
SELECT + - COUNT ( * ) * 15 AS col1
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7786
SELECT ALL + + 99 AS col1, + MIN( ALL - + 68 ) + CAST( NULL AS SIGNED ) * + 23 / 2 + - 94 * NULLIF ( - + 16, - + 3 )
----
99
NULL

skipif mysql # not compatible
query II rowsort label-7786
SELECT ALL + + 99 AS col1, + MIN ( ALL - + 68 ) + CAST ( NULL AS INTEGER ) * + 23 / 2 + - 94 * NULLIF ( - + 16, - + 3 )
----
99
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7788
SELECT ALL + 87 DIV - 32 + - + ( - + 24 ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-7788
SELECT ALL + 87 / - 32 + - + ( - + 24 ) AS col2
----
22

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7789
SELECT ALL - + 53 * 1 * 57 * - CAST( NULL AS DECIMAL ) * - 89 * 18 - SUM( + 95 ) * 18 - - - 30 + - 53 * 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7789
SELECT ALL - + 53 * 1 * 57 * - CAST ( NULL AS REAL ) * - 89 * 18 - SUM ( + 95 ) * 18 - - - 30 + - 53 * 29 AS col0
----
NULL

query I rowsort
SELECT ALL + 50 * - 59
----
-2950

onlyif mysql # aggregate syntax: 
query I rowsort label-7791
SELECT ALL - + COUNT( * ) * - + 33 + - - 38 + - 85 * - + ( + 68 )
----
5851

skipif mysql # not compatible
query I rowsort label-7791
SELECT ALL - + COUNT ( * ) * - + 33 + - - 38 + - 85 * - + ( + 68 )
----
5851

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7792
SELECT DISTINCT - COALESCE ( + + 85, CASE - 57 WHEN - - 44 * - + 30 THEN CAST( NULL AS SIGNED ) * 63 * + COUNT( * ) + + 68 + + - 26 + - COUNT( * ) + + 4 + + 8 WHEN - + 43 + - ( - - ( - 18 ) ) * + 14 + ( 28 ) * 97 THEN NULL END, - - 8 ) * - - ( - 28 ) AS col0
----
2380

skipif mysql # not compatible
query I rowsort label-7792
SELECT DISTINCT - COALESCE ( + + 85, CASE - 57 WHEN - - 44 * - + 30 THEN CAST ( NULL AS INTEGER ) * 63 * + COUNT ( * ) + + 68 + + - 26 + - COUNT ( * ) + + 4 + + 8 WHEN - + 43 + - ( - - ( - 18 ) ) * + 14 + ( 28 ) * 97 THEN NULL END, - - 8 ) * - - ( - 28 ) AS col0
----
2380

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7793
SELECT ALL - + 24 * + + 56 DIV COUNT( * ) AS col1
----
-1344

skipif mysql # not compatible
query I rowsort label-7793
SELECT ALL - + 24 * + + 56 / COUNT ( * ) AS col1
----
-1344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7794
SELECT - ( CASE CASE + COALESCE ( 49, 54 + + 75 * 23 * - 93, - 56 * - 71 ) WHEN - + MAX( DISTINCT + 78 ) THEN + + 69 END WHEN 63 THEN CAST( NULL AS SIGNED ) + 54 WHEN + 41 THEN ( + + 27 ) WHEN + 94 THEN NULL WHEN + - 18 - ( - AVG ( + 51 ) ) THEN 2 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7794
SELECT - ( CASE CASE + COALESCE ( 49, 54 + + 75 * 23 * - 93, - 56 * - 71 ) WHEN - + MAX ( DISTINCT + 78 ) THEN + + 69 END WHEN 63 THEN CAST ( NULL AS INTEGER ) + 54 WHEN + 41 THEN ( + + 27 ) WHEN + 94 THEN NULL WHEN + - 18 - ( - AVG ( + 51 ) ) THEN 2 END )
----
NULL

query I rowsort
SELECT DISTINCT + 98 - - - 43 AS col1
----
55

query I rowsort
SELECT - ( + - 68 ) + + + 85 * + 23 * - + 42 * - 57 * + 87
----
407183558

query I rowsort
SELECT 68 - + 97
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7798
SELECT DISTINCT 88 * - - COALESCE ( - 10, - - SUM( - 52 ), - - COALESCE ( + + 93, - 37, 19 * - 46 + + 20 ) ) * + 72
----
-63360

skipif mysql # not compatible
query I rowsort label-7798
SELECT DISTINCT 88 * - - COALESCE ( - 10, - - SUM ( - 52 ), - - COALESCE ( + + 93, - 37, 19 * - 46 + + 20 ) ) * + 72
----
-63360

query I rowsort
SELECT ALL - 14 - - - 7 AS col2
----
-21

query I rowsort
SELECT ALL 6 * - + 42
----
-252

query I rowsort
SELECT 84 * - 53
----
-4452

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7802
SELECT ALL - 5 DIV - COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-7802
SELECT ALL - 5 / - COUNT ( * )
----
5

query I rowsort
SELECT 55 - - - 2 AS col1
----
53

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

skipif mysql # not compatible
query I rowsort label-7804
SELECT DISTINCT - 87 * + 1 * COUNT ( * ) AS col1
----
-87

query II rowsort
SELECT ALL + 33 * 82 col0, 9 AS col1
----
2706
9

onlyif mysql # aggregate syntax: 
query II rowsort label-7806
SELECT ALL 46 * + 87 AS col1, - COUNT( * ) + + 96 + 22 * 94
----
4002
2163

skipif mysql # not compatible
query II rowsort label-7806
SELECT ALL 46 * + 87 AS col1, - COUNT ( * ) + + 96 + 22 * 94
----
4002
2163

query I rowsort
SELECT ALL - 42 * - 18 AS col0
----
756

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT 89 - + 62 + - SUM( DISTINCT - 10 ) * + + 78 * - 13 * 34
----
-344733

skipif mysql # not compatible
query I rowsort label-7808
SELECT 89 - + 62 + - SUM ( DISTINCT - 10 ) * + + 78 * - 13 * 34
----
-344733

onlyif mysql # aggregate syntax: 
query I rowsort label-7809
SELECT DISTINCT - COUNT( * ) + + 35 * - 39 AS col1
----
-1366

skipif mysql # not compatible
query I rowsort label-7809
SELECT DISTINCT - COUNT ( * ) + + 35 * - 39 AS col1
----
-1366

query II rowsort
SELECT ALL - 15 * 29 AS col0, 66
----
-435
66

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

skipif mysql # not compatible
query I rowsort label-7811
SELECT 9 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7812
SELECT NULLIF ( + 87, COUNT( * ) + - MIN( - 73 ) + - COALESCE ( 90, - MAX( - 27 ), + 8 * + 65 ) ) - 27 * SUM( DISTINCT + + 16 ) AS col2
----
-345

skipif mysql # not compatible
query I rowsort label-7812
SELECT NULLIF ( + 87, COUNT ( * ) + - MIN ( - 73 ) + - COALESCE ( 90, - MAX ( - 27 ), + 8 * + 65 ) ) - 27 * SUM ( DISTINCT + + 16 ) AS col2
----
-345

query I rowsort
SELECT + 71 + - 76 AS col1
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-7814
SELECT DISTINCT - 12 * ( 55 ) - - 48 DIV - - COALESCE ( + 95, 41 ) * - + NULLIF ( + 65, + CASE WHEN - 4 >= - - 68 THEN NULL ELSE ( + ( 32 ) ) END - - 7 + - 42 - - 30 * + + 58 - - + 26 ) * 57 + 54 AS col2
----
-606

skipif mysql # not compatible
query I rowsort label-7814
SELECT DISTINCT - 12 * ( 55 ) - - 48 / - - COALESCE ( + 95, 41 ) * - + NULLIF ( + 65, + CASE WHEN - 4 >= - - 68 THEN NULL ELSE ( + ( 32 ) ) END - - 7 + - 42 - - 30 * + + 58 - - + 26 ) * 57 + 54 AS col2
----
-606

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

skipif mysql # not compatible
query I rowsort label-7815
SELECT COUNT ( + - 9 ) + - COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7816
SELECT ALL - - 9 + - 5 * - COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-7816
SELECT ALL - - 9 + - 5 * - COUNT ( * )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7817
SELECT ALL 37 + 79 + + COUNT( * )
----
117

skipif mysql # not compatible
query I rowsort label-7817
SELECT ALL 37 + 79 + + COUNT ( * )
----
117

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

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

query I rowsort
SELECT ALL - 60 - 47
----
-107

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

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

query I rowsort
SELECT 14 + - 27 * 77 AS col1
----
-2065

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

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

query I rowsort
SELECT + 29 * - 82 + + + 88
----
-2290

query I rowsort
SELECT ALL 40 - - 67 AS col1
----
107

query I rowsort
SELECT 48 * - 61 AS col1
----
-2928

onlyif mysql # aggregate syntax: 
query I rowsort label-7826
SELECT ALL + SUM( - - 99 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-7826
SELECT ALL + SUM ( - - 99 ) AS col1
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-7827
SELECT DISTINCT 77, 33 * + COUNT( * ) * - COUNT( * ) * 6 AS col2
----
77
-198

skipif mysql # not compatible
query II rowsort label-7827
SELECT DISTINCT 77, 33 * + COUNT ( * ) * - COUNT ( * ) * 6 AS col2
----
77
-198

query I rowsort
SELECT DISTINCT - 0 * - 38 AS col0
----
0

query I rowsort
SELECT DISTINCT 59 * 31 col0
----
1829

query II rowsort
SELECT + 9 * - - 60 + - 50 * + + 34 - 21, + 73 AS col1
----
-1181
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7831
SELECT COUNT( DISTINCT - 53 ) - + 7 DIV MAX( 38 ) DIV - + 98 * 98 DIV + + 84 * - + CAST( + 77 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-7831
SELECT COUNT ( DISTINCT - 53 ) - + 7 / MAX ( 38 ) / - + 98 * 98 / + + 84 * - + CAST ( + 77 AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT 93 * - ( 63 ) * + - 93 + + MIN( ALL 76 ) - + + 17 + COUNT( DISTINCT - 35 ) * - 51
----
544895

skipif mysql # not compatible
query I rowsort label-7832
SELECT 93 * - ( 63 ) * + - 93 + + MIN ( ALL 76 ) - + + 17 + COUNT ( DISTINCT - 35 ) * - 51
----
544895

onlyif mysql # aggregate syntax: 
query II rowsort label-7833
SELECT 0 - COUNT( + + 62 ) + - 86 * + 78 + + COUNT( * ) AS col0, + MIN( + 98 ) AS col2
----
-6708
98

skipif mysql # not compatible
query II rowsort label-7833
SELECT 0 - COUNT ( + + 62 ) + - 86 * + 78 + + COUNT ( * ) AS col0, + MIN ( + 98 ) AS col2
----
-6708
98

query I rowsort
SELECT DISTINCT - 1 * 60 AS col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7835
SELECT - SUM( ALL 55 ) col0
----
-55

skipif mysql # not compatible
query I rowsort label-7835
SELECT - SUM ( ALL 55 ) col0
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-7836
SELECT 83 DIV - 57
----
-1

skipif mysql # not compatible
query I rowsort label-7836
SELECT 83 / - 57
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7837
SELECT 90 + + CASE 67 WHEN 98 THEN NULL WHEN - 75 * - ( 9 ) - + COUNT( * ) THEN NULL WHEN MIN( + 2 ) * 12 + 21 + - 72 + + 54 THEN - - 36 - 55 + - 33 * + + 60 ELSE - 27 * - 44 * + - NULLIF ( + - COUNT( + 61 ), - NULLIF ( - 15, - 94 ) / - + 63 + 67 / - 72 ) * 52 + + 31 END + + - 0 - + + 99 col2
----
61798

skipif mysql # not compatible
query I rowsort label-7837
SELECT 90 + + CASE 67 WHEN 98 THEN NULL WHEN - 75 * - ( 9 ) - + COUNT ( * ) THEN NULL WHEN MIN ( + 2 ) * 12 + 21 + - 72 + + 54 THEN - - 36 - 55 + - 33 * + + 60 ELSE - 27 * - 44 * + - NULLIF ( + - COUNT ( + 61 ), - NULLIF ( - 15, - 94 ) / - + 63 + 67 / - 72 ) * 52 + + 31 END + + - 0 - + + 99 col2
----
61798

query I rowsort
SELECT ALL - 10 + + - 51 AS col2
----
-61

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7840
SELECT DISTINCT - COUNT( * ) + - ( 65 ) - - 42 - 58 * 79
----
-4606

skipif mysql # not compatible
query I rowsort label-7840
SELECT DISTINCT - COUNT ( * ) + - ( 65 ) - - 42 - 58 * 79
----
-4606

query I rowsort
SELECT ALL + 38 + - - 84 AS col2
----
122

query I rowsort
SELECT 18 * - + 46
----
-828

query I rowsort
SELECT ALL - 11 + - 58 * - 36 * + 39 AS col1
----
81421

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7844
SELECT DISTINCT + SUM( DISTINCT - COALESCE ( + 80, + 84, - 39 ) ) + - + ( SUM( ALL + CAST( - 84 AS SIGNED ) ) ) * - COALESCE ( + 93, 49 * - + 94 DIV - - 48 )
----
-7892

skipif mysql # not compatible
query I rowsort label-7844
SELECT DISTINCT + SUM ( DISTINCT - COALESCE ( + 80, + 84, - 39 ) ) + - + ( SUM ( ALL + CAST ( - 84 AS INTEGER ) ) ) * - COALESCE ( + 93, 49 * - + 94 / - - 48 )
----
-7892

onlyif mysql # DIV for integer division: 
query I rowsort label-7845
SELECT 99 DIV - + 85 col0
----
-1

skipif mysql # not compatible
query I rowsort label-7845
SELECT 99 / - + 85 col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7846
SELECT COUNT( * ) + - - 65 + - + 82 DIV + SUM( 98 ) * + 73 + - - 1 - ( + + 98 )
----
-31

skipif mysql # not compatible
query I rowsort label-7846
SELECT COUNT ( * ) + - - 65 + - + 82 / + SUM ( 98 ) * + 73 + - - 1 - ( + + 98 )
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7847
SELECT 35 + - - CASE - 40 WHEN - 21 * - - ( COUNT( * ) ) + 28 THEN NULLIF ( - 48, - COUNT( * ) / NULLIF ( - CAST( NULL AS SIGNED ), + - 34 + 58 ) + - 8 * - + ( - CASE - COALESCE ( + 43, 53 * - - 17 - + 77 * 80 * 63 + + COUNT( * ) ) WHEN + 6 THEN + - 75 ELSE NULL END ) + + 7 ) WHEN + COUNT( * ) * ( + SUM( ALL - 36 ) ) - + - 8 THEN - CAST( NULL AS SIGNED ) WHEN + COUNT( * ) + + COUNT( * ) * - 68 THEN + 53 END + + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-7847
SELECT 35 + - - CASE - 40 WHEN - 21 * - - ( COUNT ( * ) ) + 28 THEN NULLIF ( - 48, - COUNT ( * ) / NULLIF ( - CAST ( NULL AS INTEGER ), + - 34 + 58 ) + - 8 * - + ( - CASE - COALESCE ( + 43, 53 * - - 17 - + 77 * 80 * 63 + + COUNT ( * ) ) WHEN + 6 THEN + - 75 ELSE NULL END ) + + 7 ) WHEN + COUNT ( * ) * ( + SUM ( ALL - 36 ) ) - + - 8 THEN - CAST ( NULL AS INTEGER ) WHEN + COUNT ( * ) + + COUNT ( * ) * - 68 THEN + 53 END + + 88
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7848
SELECT DISTINCT - 83 * COALESCE ( COUNT( * ), - 24 )
----
-83

skipif mysql # not compatible
query I rowsort label-7848
SELECT DISTINCT - 83 * COALESCE ( COUNT ( * ), - 24 )
----
-83

onlyif mysql # DIV for integer division: 
query II rowsort label-7849
SELECT + + 68 AS col0, - 44 DIV - - 70
----
68
0

skipif mysql # not compatible
query II rowsort label-7849
SELECT + + 68 AS col0, - 44 / - - 70
----
68
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7850
SELECT ALL - MAX( DISTINCT 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-7850
SELECT ALL - MAX ( DISTINCT 60 )
----
-60

query I rowsort
SELECT ( + + 64 ) * + + 84 * + 81 AS col1
----
435456

query I rowsort
SELECT + 27 * + 81
----
2187

onlyif mysql # aggregate syntax: 
query II rowsort label-7853
SELECT ALL + - 10 AS col1, COUNT( ALL 10 ) AS col1
----
-10
1

skipif mysql # not compatible
query II rowsort label-7853
SELECT ALL + - 10 AS col1, COUNT ( ALL 10 ) AS col1
----
-10
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7854
SELECT COUNT( DISTINCT - NULLIF ( 46, CAST( NULL AS SIGNED ) * + 70 ) ) col2, 22 * + 72 * - 55
----
1
-87120

skipif mysql # not compatible
query II rowsort label-7854
SELECT COUNT ( DISTINCT - NULLIF ( 46, CAST ( NULL AS INTEGER ) * + 70 ) ) col2, 22 * + 72 * - 55
----
1
-87120

query I rowsort
SELECT - - 18 * + - 88 AS col1
----
-1584

query I rowsort
SELECT ALL + 7 * + 90 col2
----
630

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

skipif mysql # not compatible
query I rowsort label-7857
SELECT DISTINCT + + ( 79 ) / + COUNT ( * )
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7858
SELECT 26 * - 59 + ( + - CAST( - 8 AS SIGNED ) ) * - NULLIF ( 49, + COUNT( * ) * + 61 * - + ( + 12 ) + 77 + - 25 ) + + + 23 + 17 + 98 AS col1
----
-1788

skipif mysql # not compatible
query I rowsort label-7858
SELECT 26 * - 59 + ( + - CAST ( - 8 AS INTEGER ) ) * - NULLIF ( 49, + COUNT ( * ) * + 61 * - + ( + 12 ) + 77 + - 25 ) + + + 23 + 17 + 98 AS col1
----
-1788

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7860
SELECT + COUNT( * ) * + 8 * + - 51 AS col2
----
-408

skipif mysql # not compatible
query I rowsort label-7860
SELECT + COUNT ( * ) * + 8 * + - 51 AS col2
----
-408

onlyif mysql # DIV for integer division: 
query I rowsort label-7861
SELECT ALL 42 * 98 DIV + 24
----
171

skipif mysql # not compatible
query I rowsort label-7861
SELECT ALL 42 * 98 / + 24
----
171

query I rowsort
SELECT - 6 * + 97
----
-582

onlyif mysql # aggregate syntax: 
query II rowsort label-7863
SELECT MAX( ALL + 85 ) col1, - 42
----
85
-42

skipif mysql # not compatible
query II rowsort label-7863
SELECT MAX ( ALL + 85 ) col1, - 42
----
85
-42

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

skipif mysql # not compatible
query I rowsort label-7864
SELECT ALL 18 * + COUNT ( * ) AS col2
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-7865
SELECT + COUNT( * ) AS col1, 18 + + 14 * + - 40 * - 44
----
1
24658

skipif mysql # not compatible
query II rowsort label-7865
SELECT + COUNT ( * ) AS col1, 18 + + 14 * + - 40 * - 44
----
1
24658

onlyif mysql # aggregate syntax: 
query I rowsort label-7866
SELECT + COUNT( * ) * + 58 + - 14 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-7866
SELECT + COUNT ( * ) * + 58 + - 14 AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7867
SELECT + 6 + - COUNT( * ) + + 38
----
43

skipif mysql # not compatible
query I rowsort label-7867
SELECT + 6 + - COUNT ( * ) + + 38
----
43

query I rowsort
SELECT 51 * 72 - + 76
----
3596

query I rowsort
SELECT + 76 * - + 84
----
-6384

query I rowsort
SELECT - 82 + - + 34 AS col0
----
-116

query II rowsort
SELECT 73 AS col0, - 60 * - ( + - 17 ) * 68 AS col0
----
73
-69360

query II rowsort
SELECT 79 col0, - 47 * + - 50 AS col1
----
79
2350

onlyif mysql # aggregate syntax: 
query I rowsort label-7873
SELECT + NULLIF ( + 27, + - 99 * + - 60 * COUNT( * ) / 2 * COUNT( + - CASE 47 WHEN - ( - - 63 ) * + 98 / + ( - 46 ) THEN - 27 END ) + 85 ) * - 2
----
-54

skipif mysql # not compatible
query I rowsort label-7873
SELECT + NULLIF ( + 27, + - 99 * + - 60 * COUNT ( * ) / 2 * COUNT ( + - CASE 47 WHEN - ( - - 63 ) * + 98 / + ( - 46 ) THEN - 27 END ) + 85 ) * - 2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT + 5 + + ( + + COUNT( * ) ) * 74 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-7874
SELECT + 5 + + ( + + COUNT ( * ) ) * 74 AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7875
SELECT ALL 28 + SUM( + 58 ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-7875
SELECT ALL 28 + SUM ( + 58 ) AS col2
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7876
SELECT + 34 - - + 25 + - 62 + + + MAX( ALL - + 74 ) + + 75 + - 35 DIV + 91 * - 53 + ( 1 ) DIV - 46 - 49 + + + COUNT( + 39 )
----
-50

skipif mysql # not compatible
query I rowsort label-7876
SELECT + 34 - - + 25 + - 62 + + + MAX ( ALL - + 74 ) + + 75 + - 35 / + 91 * - 53 + ( 1 ) / - 46 - 49 + + + COUNT ( + 39 )
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7877
SELECT - CASE WHEN NOT 40 IS NULL THEN 1 - - 80 + - - 74 DIV COUNT( * ) END
----
-155

skipif mysql # not compatible
query I rowsort label-7877
SELECT - CASE WHEN NOT 40 IS NULL THEN 1 - - 80 + - - 74 / COUNT ( * ) END
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT ALL COUNT( * ) + - 77 + + - 24
----
-100

skipif mysql # not compatible
query I rowsort label-7878
SELECT ALL COUNT ( * ) + - 77 + + - 24
----
-100

onlyif mysql # aggregate syntax: 
query II rowsort label-7879
SELECT + NULLIF ( 8, + 5 ) - - 33 * 28 + - COUNT( * ) AS col1, - 17 col2
----
931
-17

skipif mysql # not compatible
query II rowsort label-7879
SELECT + NULLIF ( 8, + 5 ) - - 33 * 28 + - COUNT ( * ) AS col1, - 17 col2
----
931
-17

query I rowsort
SELECT - 16 * + 27
----
-432

onlyif mysql # aggregate syntax: 
query I rowsort label-7881
SELECT DISTINCT COUNT( * ) * + COUNT( * ) * + 31 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-7881
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) * + 31 AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7882
SELECT - ( - MIN( DISTINCT - 67 ) )
----
-67

skipif mysql # not compatible
query I rowsort label-7882
SELECT - ( - MIN ( DISTINCT - 67 ) )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7883
SELECT ALL - ( ( + SUM( DISTINCT 30 ) ) ) + - 46
----
-76

skipif mysql # not compatible
query I rowsort label-7883
SELECT ALL - ( ( + SUM ( DISTINCT 30 ) ) ) + - 46
----
-76

query I rowsort
SELECT DISTINCT 27 + 71 AS col0
----
98

query I rowsort
SELECT - + 48 - - ( - 30 ) col1
----
-78

query I rowsort
SELECT - - ( + 33 ) - - 87 AS col0
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-7887
SELECT ALL + + 9 DIV + 37
----
0

skipif mysql # not compatible
query I rowsort label-7887
SELECT ALL + + 9 / + 37
----
0

query II rowsort
SELECT + 28 + - 20, + 34 AS col2
----
8
34

query II rowsort
SELECT + 22 col0, 2 AS col0
----
22
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7890
SELECT - COUNT( * ) * - 57
----
57

skipif mysql # not compatible
query I rowsort label-7890
SELECT - COUNT ( * ) * - 57
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7891
SELECT ALL + 18 DIV + 75 - - + 51 + + SUM( - 60 ) - - + 45 * 13
----
576

skipif mysql # not compatible
query I rowsort label-7891
SELECT ALL + 18 / + 75 - - + 51 + + SUM ( - 60 ) - - + 45 * 13
----
576

query I rowsort
SELECT - - 24 * - + 81 + + 60 + + 70 * - 90 AS col0
----
-8184

onlyif mysql # DIV for integer division: 
query I rowsort label-7893
SELECT ALL + - 17 DIV 46 * - + 50 * 64 * + + 49 col0
----
0

skipif mysql # not compatible
query I rowsort label-7893
SELECT ALL + - 17 / 46 * - + 50 * 64 * + + 49 col0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7894
SELECT 33 * + CAST( NULL AS DECIMAL ) * + 30 + - 20 - 67 - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-7894
SELECT 33 * + CAST ( NULL AS REAL ) * + 30 + - 20 - 67 - 77
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7895
SELECT ALL + 95 AS col0, + CAST( - - 10 AS SIGNED ) AS col2
----
95
10

skipif mysql # not compatible
query II rowsort label-7895
SELECT ALL + 95 AS col0, + CAST ( - - 10 AS INTEGER ) AS col2
----
95
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7896
SELECT ALL + 77 * + + 59 + ( - + CASE - + MAX( - - ( + + NULLIF ( + 89, 20 ) ) ) WHEN 74 * + CAST( 74 AS SIGNED ) THEN NULL ELSE + - 25 * - ( + MIN( DISTINCT - + 70 ) ) * - 46 + - 47 END ) AS col0
----
-75910

skipif mysql # not compatible
query I rowsort label-7896
SELECT ALL + 77 * + + 59 + ( - + CASE - + MAX ( - - ( + + NULLIF ( + 89, 20 ) ) ) WHEN 74 * + CAST ( 74 AS INTEGER ) THEN NULL ELSE + - 25 * - ( + MIN ( DISTINCT - + 70 ) ) * - 46 + - 47 END ) AS col0
----
-75910

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7897
SELECT - - MIN( - 79 ) + + + 89 * - ( - CASE + 61 WHEN - - 36 * - 94 * - COUNT( * ) * - COUNT( * ) * - 57 THEN + + 95 * + 29 + + 40 WHEN - COUNT( * ) THEN + + 12 END ), 59 * - ( + + SUM( - CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7897
SELECT - - MIN ( - 79 ) + + + 89 * - ( - CASE + 61 WHEN - - 36 * - 94 * - COUNT ( * ) * - COUNT ( * ) * - 57 THEN + + 95 * + 29 + + 40 WHEN - COUNT ( * ) THEN + + 12 END ), 59 * - ( + + SUM ( - CAST ( NULL AS INTEGER ) ) ) AS col0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7898
SELECT ALL + + COUNT( * ) * - - SUM( + 74 )
----
74

skipif mysql # not compatible
query I rowsort label-7898
SELECT ALL + + COUNT ( * ) * - - SUM ( + 74 )
----
74

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7900
SELECT + 58 * + 54 * + - 55 + - + 49 + + 94 * + MIN( - 91 ) AS col2
----
-180863

skipif mysql # not compatible
query I rowsort label-7900
SELECT + 58 * + 54 * + - 55 + - + 49 + + 94 * + MIN ( - 91 ) AS col2
----
-180863

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7901
SELECT ALL + + 62 * - + CASE - ( 53 ) WHEN - - COALESCE ( - - MAX( ALL 64 ), - 7 ) - - - ( - - CAST( - 40 AS SIGNED ) ) THEN - + 75 + - 76 + - 39 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7901
SELECT ALL + + 62 * - + CASE - ( 53 ) WHEN - - COALESCE ( - - MAX ( ALL 64 ), - 7 ) - - - ( - - CAST ( - 40 AS INTEGER ) ) THEN - + 75 + - 76 + - 39 END AS col1
----
NULL

query I rowsort
SELECT - NULLIF ( 14, 49 ) * + - 46 + + 12
----
656

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7903
SELECT NULLIF ( + + COUNT( * ), + - COUNT( * ) - - + 58 + - COUNT( * ) + 88 / - 4 * - + 31 * + NULLIF ( + + 14, + - CAST( NULL AS SIGNED ) * + 34 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7903
SELECT NULLIF ( + + COUNT ( * ), + - COUNT ( * ) - - + 58 + - COUNT ( * ) + 88 / - 4 * - + 31 * + NULLIF ( + + 14, + - CAST ( NULL AS INTEGER ) * + 34 ) ) AS col2
----
1

query II rowsort
SELECT + 65 + - 14, + 60 AS col1
----
51
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7905
SELECT - ( - - COUNT( * ) ) DIV + 62 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7905
SELECT - ( - - COUNT ( * ) ) / + 62 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7906
SELECT ALL ( 54 ) * 44 + + - 21 + + COUNT( * ) * - 82 * 22, - COUNT( * ) + - AVG ( + CAST( NULL AS SIGNED ) ) * + + CAST( CASE + 32 WHEN + 39 THEN + 80 - + 48 END AS SIGNED ) * + COUNT( * ) AS col2
----
551
NULL

skipif mysql # not compatible
query II rowsort label-7906
SELECT ALL ( 54 ) * 44 + + - 21 + + COUNT ( * ) * - 82 * 22, - COUNT ( * ) + - AVG ( + CAST ( NULL AS INTEGER ) ) * + + CAST ( CASE + 32 WHEN + 39 THEN + 80 - + 48 END AS INTEGER ) * + COUNT ( * ) AS col2
----
551
NULL

query II rowsort
SELECT DISTINCT + ( + 80 ) col0, + 68 AS col0
----
80
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7908
SELECT ( - + 38 ) * - 78 + - 69 - - 9 + - NULLIF ( + COUNT( + 81 ), + 28 )
----
2903

skipif mysql # not compatible
query I rowsort label-7908
SELECT ( - + 38 ) * - 78 + - 69 - - 9 + - NULLIF ( + COUNT ( + 81 ), + 28 )
----
2903

query I rowsort
SELECT DISTINCT 69 * 70 + 95
----
4925

onlyif mysql # aggregate syntax: 
query I rowsort label-7910
SELECT DISTINCT + SUM( ALL + 87 ) * + 7 + - + 84 + + 48 * + + 2 col1
----
621

skipif mysql # not compatible
query I rowsort label-7910
SELECT DISTINCT + SUM ( ALL + 87 ) * + 7 + - + 84 + + 48 * + + 2 col1
----
621

query I rowsort
SELECT DISTINCT + 92 * + 73 + - + NULLIF ( - - 73, + 41 ) AS col2
----
6643

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT - COUNT( * ) + + + 56 * - - MIN( 41 )
----
2295

skipif mysql # not compatible
query I rowsort label-7912
SELECT - COUNT ( * ) + + + 56 * - - MIN ( 41 )
----
2295

query I rowsort
SELECT - 93 * ( + - 36 ) AS col0
----
3348

query I rowsort
SELECT - 10 + - - 39 AS col0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7915
SELECT + 16 - - - 57 * - NULLIF ( 74, - CAST( NULL AS SIGNED ) )
----
4234

skipif mysql # not compatible
query I rowsort label-7915
SELECT + 16 - - - 57 * - NULLIF ( 74, - CAST ( NULL AS INTEGER ) )
----
4234

onlyif mysql # aggregate syntax: 
query I rowsort label-7916
SELECT MIN( + + ( 45 ) ) col0
----
45

skipif mysql # not compatible
query I rowsort label-7916
SELECT MIN ( + + ( 45 ) ) col0
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7917
SELECT + ( COUNT( * ) ) + - 16 + - 60 + - AVG ( ALL - + 8 ) / + CAST( NULL AS SIGNED ) / + 58 + - - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-7917
SELECT + ( COUNT ( * ) ) + - 16 + - 60 + - AVG ( ALL - + 8 ) / + CAST ( NULL AS INTEGER ) / + 58 + - - 19
----
NULL

query II rowsort
SELECT + 92 - 81 AS col1, 20 + - 38 AS col1
----
11
-18

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7920
SELECT ALL 74 - - - 40 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7920
SELECT ALL 74 - - - 40 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 80 + + 35 AS col2
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7922
SELECT - ( + 86 ) AS col2, + 73 + + MIN( DISTINCT + 15 ) + CAST( 90 AS SIGNED ) + ( + - 59 ) + 70 - + 66 * 99 * - 39
----
-86
255015

skipif mysql # not compatible
query II rowsort label-7922
SELECT - ( + 86 ) AS col2, + 73 + + MIN ( DISTINCT + 15 ) + CAST ( 90 AS INTEGER ) + ( + - 59 ) + 70 - + 66 * 99 * - 39
----
-86
255015

onlyif mysql # aggregate syntax: 
query II rowsort label-7923
SELECT ALL COUNT( ALL + + 35 ) AS col2, 81 AS col0
----
1
81

skipif mysql # not compatible
query II rowsort label-7923
SELECT ALL COUNT ( ALL + + 35 ) AS col2, 81 AS col0
----
1
81

query I rowsort
SELECT + 57 + 12 AS col1
----
69

query I rowsort
SELECT + 82 * - 40 * + 70
----
-229600

query I rowsort
SELECT 74 + + 23 * + NULLIF ( + - 9, - 62 ) - - ( - + 57 ) * 10
----
-703

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT - COUNT( * ) * - + CASE CASE - - COUNT( * ) WHEN + ( 73 ) THEN + 29 WHEN + ( 53 ) THEN NULLIF ( - NULLIF ( + COUNT( 45 ), - 61 * + COUNT( DISTINCT + 49 ) / + 82 * + 34 + + + 95 + - - 96 * + 77 + + 50 ), + 18 ) WHEN - + 91 THEN + - 46 * 60 END WHEN 34 THEN + COALESCE ( MAX( DISTINCT 20 ), - - 82 ) + - - COALESCE ( + COUNT( * ), + 55 * 44 ) * - COUNT( * ) WHEN - 72 THEN 29 * 82 END * 94
----
NULL

skipif mysql # not compatible
query I rowsort label-7927
SELECT - COUNT ( * ) * - + CASE CASE - - COUNT ( * ) WHEN + ( 73 ) THEN + 29 WHEN + ( 53 ) THEN NULLIF ( - NULLIF ( + COUNT ( 45 ), - 61 * + COUNT ( DISTINCT + 49 ) / + 82 * + 34 + + + 95 + - - 96 * + 77 + + 50 ), + 18 ) WHEN - + 91 THEN + - 46 * 60 END WHEN 34 THEN + COALESCE ( MAX ( DISTINCT 20 ), - - 82 ) + - - COALESCE ( + COUNT ( * ), + 55 * 44 ) * - COUNT ( * ) WHEN - 72 THEN 29 * 82 END * 94
----
NULL

query I rowsort
SELECT ALL + 73 * - ( 71 ) AS col0
----
-5183

query II rowsort
SELECT ( + 47 ), 86 col0
----
47
86

query I rowsort
SELECT ( + 30 ) + + 78
----
108

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

skipif mysql # not compatible
query I rowsort label-7931
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - + 36
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7932
SELECT DISTINCT - 29 * ( - COUNT( - + 5 ) )
----
29

skipif mysql # not compatible
query I rowsort label-7932
SELECT DISTINCT - 29 * ( - COUNT ( - + 5 ) )
----
29

query I rowsort
SELECT ALL - - ( - 14 ) AS col0
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7934
SELECT COUNT( * ) * NULLIF ( + 96, + 26 ) - - 8 * + COALESCE ( - 34, - 88, + COUNT( * ) ) + - + AVG ( + 34 ) / - 76 + + 1 * + COUNT( * ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7934
SELECT COUNT ( * ) * NULLIF ( + 96, + 26 ) - - 8 * + COALESCE ( - 34, - 88, + COUNT ( * ) ) + - + AVG ( + 34 ) / - 76 + + 1 * + COUNT ( * ) * - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + 56 - 94 col0, 49
----
-38
49

query I rowsort
SELECT + + ( 43 )
----
43

query I rowsort
SELECT + 65 * + 66 AS col2
----
4290

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7938
SELECT 78 * COUNT( * ) * + + 91 + - 97 DIV COUNT( * ) AS col2
----
7001

skipif mysql # not compatible
query I rowsort label-7938
SELECT 78 * COUNT ( * ) * + + 91 + - 97 / COUNT ( * ) AS col2
----
7001

onlyif mysql # aggregate syntax: 
query II rowsort label-7939
SELECT DISTINCT - COUNT( * ) + - 85 + + + 39, 42 AS col2
----
-47
42

skipif mysql # not compatible
query II rowsort label-7939
SELECT DISTINCT - COUNT ( * ) + - 85 + + + 39, 42 AS col2
----
-47
42

onlyif mysql # aggregate syntax: 
query II rowsort label-7940
SELECT ALL - COUNT( * ) AS col0, - 71 AS col0
----
-1
-71

skipif mysql # not compatible
query II rowsort label-7940
SELECT ALL - COUNT ( * ) AS col0, - 71 AS col0
----
-1
-71

query I rowsort
SELECT ALL - 24 + - 88 col2
----
-112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7942
SELECT 88 * 72 - + CAST( - 92 AS SIGNED ) col2
----
6428

skipif mysql # not compatible
query I rowsort label-7942
SELECT 88 * 72 - + CAST ( - 92 AS INTEGER ) col2
----
6428

onlyif mysql # aggregate syntax: 
query I rowsort label-7943
SELECT ALL - MIN( 50 ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-7943
SELECT ALL - MIN ( 50 ) AS col2
----
-50

query I rowsort
SELECT DISTINCT - 42 + + 93 AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7945
SELECT ALL - COUNT( * ) + 29 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-7945
SELECT ALL - COUNT ( * ) + 29 AS col0
----
28

query II rowsort
SELECT + 44 col1, - 14
----
44
-14

query I rowsort
SELECT 92 + - 51 AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7948
SELECT COALESCE ( + + 52, + ( - + COUNT( * ) ) + + + 33 ) * + 64
----
3328

skipif mysql # not compatible
query I rowsort label-7948
SELECT COALESCE ( + + 52, + ( - + COUNT ( * ) ) + + + 33 ) * + 64
----
3328

query II rowsort
SELECT - 1 AS col2, ( - 76 ) AS col1
----
-1
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7950
SELECT 34 + + + COUNT( * ) DIV - 11
----
34

skipif mysql # not compatible
query I rowsort label-7950
SELECT 34 + + + COUNT ( * ) / - 11
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-7951
SELECT - 77 * - + 30 - - - 66 DIV + 16 + + 6 col2
----
2312

skipif mysql # not compatible
query I rowsort label-7951
SELECT - 77 * - + 30 - - - 66 / + 16 + + 6 col2
----
2312

query I rowsort
SELECT 18 * 24 AS col2
----
432

query II rowsort
SELECT ALL 11 AS col0, 53 * 93 + 2
----
11
4931

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7954
SELECT DISTINCT ( + - 81 ) - - NULLIF ( + - 90, + CAST( NULL AS SIGNED ) )
----
-171

skipif mysql # not compatible
query I rowsort label-7954
SELECT DISTINCT ( + - 81 ) - - NULLIF ( + - 90, + CAST ( NULL AS INTEGER ) )
----
-171

query I rowsort
SELECT DISTINCT 68 * 62 * - + 91
----
-383656

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7956
SELECT DISTINCT - COALESCE ( + COUNT( ALL + 73 ), + 47 ) DIV - 39
----
0

skipif mysql # not compatible
query I rowsort label-7956
SELECT DISTINCT - COALESCE ( + COUNT ( ALL + 73 ), + 47 ) / - 39
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7957
SELECT ALL 69 AS col1, MAX( - 26 ) + + 0 AS col0
----
69
-26

skipif mysql # not compatible
query II rowsort label-7957
SELECT ALL 69 AS col1, MAX ( - 26 ) + + 0 AS col0
----
69
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7958
SELECT ALL MAX( DISTINCT + 74 ) col1
----
74

skipif mysql # not compatible
query I rowsort label-7958
SELECT ALL MAX ( DISTINCT + 74 ) col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7959
SELECT ( + COUNT( * ) ) + - 30 AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-7959
SELECT ( + COUNT ( * ) ) + - 30 AS col1
----
-29

query II rowsort
SELECT - 84, 86 AS col0
----
-84
86

query I rowsort
SELECT + 24 + - 21 * - - 93 AS col2
----
-1929

query I rowsort
SELECT COALESCE ( 38, - 62 + + + 35 ) col2
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7963
SELECT - 46 - - CAST( NULL AS SIGNED ) - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-7963
SELECT - 46 - - CAST ( NULL AS INTEGER ) - 9
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7964
SELECT ALL + 99 * MIN( - 50 ) + 29 - + 60
----
-4981

skipif mysql # not compatible
query I rowsort label-7964
SELECT ALL + 99 * MIN ( - 50 ) + 29 - + 60
----
-4981

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT 68 - - + ( - ( + 27 ) ) - COUNT( * ) * + - 56 * CASE - 94 WHEN - MAX( + 81 ) / - 41 + 44 THEN - 57 * - - 90 * + + 86 + + 16 * - COUNT( + 63 ) END * + + 39 + - COUNT( * ) + - + 6 + ( COUNT( * ) ) + 33 + + 80 * + + MIN( ALL + + 52 ) / - + 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7965
SELECT 68 - - + ( - ( + 27 ) ) - COUNT ( * ) * + - 56 * CASE - 94 WHEN - MAX ( + 81 ) / - 41 + 44 THEN - 57 * - - 90 * + + 86 + + 16 * - COUNT ( + 63 ) END * + + 39 + - COUNT ( * ) + - + 6 + ( COUNT ( * ) ) + 33 + + 80 * + + MIN ( ALL + + 52 ) / - + 38 AS col1
----
NULL

query I rowsort
SELECT ALL ( 40 ) + + CASE 77 WHEN + COALESCE ( + 15, + - 63, 53 ) THEN CASE WHEN NOT NULL BETWEEN NULL AND 28 THEN + + 62 END END * + - 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7967
SELECT - + COUNT( DISTINCT 88 )
----
-1

skipif mysql # not compatible
query I rowsort label-7967
SELECT - + COUNT ( DISTINCT 88 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7968
SELECT ALL - 35 AS col2, MAX( DISTINCT 54 ) + + COUNT( * )
----
-35
55

skipif mysql # not compatible
query II rowsort label-7968
SELECT ALL - 35 AS col2, MAX ( DISTINCT 54 ) + + COUNT ( * )
----
-35
55

query I rowsort
SELECT 37 - - - 79 AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7970
SELECT SUM( + ( - + 18 ) ) + - 72 AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-7970
SELECT SUM ( + ( - + 18 ) ) + - 72 AS col2
----
-90

query I rowsort
SELECT ALL 24 * + ( + + 83 ) * + + 18 + - 56
----
35800

query I rowsort
SELECT ALL 18 * + - 91 + - 70
----
-1708

query I rowsort
SELECT ( + - 33 ) + - - 42 AS col1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7974
SELECT ALL - CASE + ( 46 ) WHEN + CAST( + COUNT( * ) AS SIGNED ) THEN - 33 WHEN + - 72 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7974
SELECT ALL - CASE + ( 46 ) WHEN + CAST ( + COUNT ( * ) AS INTEGER ) THEN - 33 WHEN + - 72 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7975
SELECT COUNT( ALL 6 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7975
SELECT COUNT ( ALL 6 ) AS col2
----
1

query I rowsort
SELECT DISTINCT 53 + - 28 AS col0
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-7977
SELECT ALL 12 + + COUNT( * ) * 32 * - - 3 * 43, 16 + + 45 + + 82 AS col0
----
4140
143

skipif mysql # not compatible
query II rowsort label-7977
SELECT ALL 12 + + COUNT ( * ) * 32 * - - 3 * 43, 16 + + 45 + + 82 AS col0
----
4140
143

query II rowsort
SELECT DISTINCT - ( + 1 ), + 93 AS col0
----
-1
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7979
SELECT CAST( + 75 AS SIGNED ) + - + 26 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-7979
SELECT CAST ( + 75 AS INTEGER ) + - + 26 AS col2
----
49

onlyif mysql # DIV for integer division: 
query II rowsort label-7980
SELECT 28 * + 20 col0, + 4 DIV - 81 * - 52
----
560
0

skipif mysql # not compatible
query II rowsort label-7980
SELECT 28 * + 20 col0, + 4 / - 81 * - 52
----
560
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT 37 + + + COUNT( * ) * - 0 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-7981
SELECT 37 + + + COUNT ( * ) * - 0 AS col1
----
37

query I rowsort
SELECT ALL - ( - 2 ) * + 34
----
68

query I rowsort
SELECT ALL + 93 - - ( + 43 ) AS col1
----
136

query I rowsort
SELECT 18 * 69
----
1242

onlyif mysql # aggregate syntax: 
query I rowsort label-7985
SELECT ALL COUNT( * ) * ( - 16 ) * + + COUNT( * ) * + + 68
----
-1088

skipif mysql # not compatible
query I rowsort label-7985
SELECT ALL COUNT ( * ) * ( - 16 ) * + + COUNT ( * ) * + + 68
----
-1088

query I rowsort
SELECT 27 * 10 * - 66 AS col0
----
-17820

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

skipif mysql # not compatible
query I rowsort label-7987
SELECT - 33 + COUNT ( * ) / + 34 AS col0
----
-33

query I rowsort
SELECT - 80 * + 53
----
-4240

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT - - NULLIF ( - 42, 27 * + 95 * 83 * + 17 / + NULLIF ( - + COUNT( * ), + + 31 + + 12 + - COUNT( * ) * + 49 ) ) * 96 * + 69 AS col2
----
-278208

skipif mysql # not compatible
query I rowsort label-7989
SELECT - - NULLIF ( - 42, 27 * + 95 * 83 * + 17 / + NULLIF ( - + COUNT ( * ), + + 31 + + 12 + - COUNT ( * ) * + 49 ) ) * 96 * + 69 AS col2
----
-278208

query I rowsort
SELECT - 94 + - + 35 AS col0
----
-129

onlyif mysql # aggregate syntax: 
query II rowsort label-7991
SELECT - 64 - + 93 AS col1, - COUNT( * ) AS col2
----
-157
-1

skipif mysql # not compatible
query II rowsort label-7991
SELECT - 64 - + 93 AS col1, - COUNT ( * ) AS col2
----
-157
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7992
SELECT - 8 + + COUNT( * ) + + - 83 col2
----
-90

skipif mysql # not compatible
query I rowsort label-7992
SELECT - 8 + + COUNT ( * ) + + - 83 col2
----
-90

query I rowsort
SELECT - 22 * - + 48 * 42 * - 89 AS col2
----
-3947328

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7994
SELECT ALL - - 22 DIV - ( ( - - CAST( 3 AS SIGNED ) ) ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-7994
SELECT ALL - - 22 / - ( ( - - CAST ( 3 AS INTEGER ) ) ) AS col1
----
-7

query I rowsort
SELECT - + 34 + - 56 + - + 27
----
-117

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7996
SELECT DISTINCT - 12 + + - 89 + - 15 * + 93 AS col0, NULLIF ( CAST( 40 AS SIGNED ), - 29 * - + ( + 4 ) - 29 ) AS col0
----
-1496
40

skipif mysql # not compatible
query II rowsort label-7996
SELECT DISTINCT - 12 + + - 89 + - 15 * + 93 AS col0, NULLIF ( CAST ( 40 AS INTEGER ), - 29 * - + ( + 4 ) - 29 ) AS col0
----
-1496
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7997
SELECT ALL + MIN( 79 ) + - 29 + - - 87 + + + 62 + - 2
----
197

skipif mysql # not compatible
query I rowsort label-7997
SELECT ALL + MIN ( 79 ) + - 29 + - - 87 + + + 62 + - 2
----
197

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

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

query I rowsort
SELECT + - 10 + 76
----
66

query I rowsort
SELECT + 7 + + + 50 - - 70
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-8001
SELECT ALL CASE - 24 WHEN - COALESCE ( + - AVG ( ALL 13 ), + 3 + - + 76, - COUNT( * ) ) THEN + + COUNT( * ) WHEN 49 * + 12 + - 57 THEN NULL END + 75 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8001
SELECT ALL CASE - 24 WHEN - COALESCE ( + - AVG ( ALL 13 ), + 3 + - + 76, - COUNT ( * ) ) THEN + + COUNT ( * ) WHEN 49 * + 12 + - 57 THEN NULL END + 75 col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-8002
SELECT + MAX ( 35 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT ALL - MIN( 0 ) + + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8003
SELECT ALL - MIN ( 0 ) + + COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8004
SELECT + - CASE 83 WHEN 24 * 49 THEN 4 WHEN 59 * - + 12 * + COUNT( * ) - - ( COUNT( * ) ) - + 48 THEN NULL ELSE NULL END * + CASE - 70 WHEN - MAX( DISTINCT + 90 ) THEN + 61 + - COALESCE ( - 66, - 27 + - 59 ) END * + + ( + 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8004
SELECT + - CASE 83 WHEN 24 * 49 THEN 4 WHEN 59 * - + 12 * + COUNT ( * ) - - ( COUNT ( * ) ) - + 48 THEN NULL ELSE NULL END * + CASE - 70 WHEN - MAX ( DISTINCT + 90 ) THEN + 61 + - COALESCE ( - 66, - 27 + - 59 ) END * + + ( + 72 )
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-8006
SELECT ALL + 67, + 39 DIV - + 58 col2
----
67
0

skipif mysql # not compatible
query II rowsort label-8006
SELECT ALL + 67, + 39 / - + 58 col2
----
67
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8007
SELECT + NULLIF ( COUNT( * ), - 61 * 31 * - + ( 85 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8007
SELECT + NULLIF ( COUNT ( * ), - 61 * 31 * - + ( 85 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8008
SELECT CAST( NULL AS SIGNED ) * + 48 - + - 65 * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8008
SELECT CAST ( NULL AS INTEGER ) * + 48 - + - 65 * + - COUNT ( * )
----
NULL

query I rowsort
SELECT + 0 * - + 77
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8010
SELECT + CAST( 19 AS SIGNED ) - + 29 * - ( 48 ) - 66 + 13 * + 22 col2
----
1631

skipif mysql # not compatible
query I rowsort label-8010
SELECT + CAST ( 19 AS INTEGER ) - + 29 * - ( 48 ) - 66 + 13 * + 22 col2
----
1631

onlyif mysql # aggregate syntax: 
query I rowsort label-8011
SELECT + COUNT( DISTINCT - 92 )
----
1

skipif mysql # not compatible
query I rowsort label-8011
SELECT + COUNT ( DISTINCT - 92 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8012
SELECT + 46 - - MIN( ALL + + 57 ) + - 53
----
50

skipif mysql # not compatible
query I rowsort label-8012
SELECT + 46 - - MIN ( ALL + + 57 ) + - 53
----
50

query I rowsort
SELECT + 52 * - - 47
----
2444

query I rowsort
SELECT + 64 * + 42 * + + 65 * + 85 AS col0
----
14851200

query I rowsort
SELECT ALL 70 * + + 37
----
2590

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8016
SELECT + 57 + CAST( 27 AS SIGNED ), NULLIF ( - - 85, + + 16 ) + + 92 AS col1
----
84
177

skipif mysql # not compatible
query II rowsort label-8016
SELECT + 57 + CAST ( 27 AS INTEGER ), NULLIF ( - - 85, + + 16 ) + + 92 AS col1
----
84
177

query I rowsort
SELECT - 69 * 78 - + 91
----
-5473

onlyif mysql # DIV for integer division: 
query I rowsort label-8018
SELECT + 92 - + 32 DIV 97 * - - NULLIF ( - 98, - 25 DIV - 35 )
----
92

skipif mysql # not compatible
query I rowsort label-8018
SELECT + 92 - + 32 / 97 * - - NULLIF ( - 98, - 25 / - 35 )
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8019
SELECT CASE - 54 WHEN COALESCE ( - CASE + + ( - - CAST( NULL AS SIGNED ) ) WHEN + NULLIF ( 9, COUNT( * ) ) THEN NULL ELSE - 44 END, - ( + ( + - 58 ) ) * - + 99 * + 60 + - 83 + + 59 * - 90 / 63 ) THEN NULL ELSE - - 39 + + 44 END
----
83

skipif mysql # not compatible
query I rowsort label-8019
SELECT CASE - 54 WHEN COALESCE ( - CASE + + ( - - CAST ( NULL AS INTEGER ) ) WHEN + NULLIF ( 9, COUNT ( * ) ) THEN NULL ELSE - 44 END, - ( + ( + - 58 ) ) * - + 99 * + 60 + - 83 + + 59 * - 90 / 63 ) THEN NULL ELSE - - 39 + + 44 END
----
83

query I rowsort
SELECT + 98 * - - 99 AS col0
----
9702

query I rowsort
SELECT + 56 + 74 + - 41
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-8022
SELECT - COUNT( * ) AS col0, - 28 * - 1
----
-1
28

skipif mysql # not compatible
query II rowsort label-8022
SELECT - COUNT ( * ) AS col0, - 28 * - 1
----
-1
28

query I rowsort
SELECT ALL + 19 + + - 51
----
-32

query I rowsort
SELECT DISTINCT - 61 + + 44
----
-17

query II rowsort
SELECT - ( - 46 ) * + + 88, + 95 AS col1
----
4048
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8026
SELECT ALL + AVG ( + 49 ) + - + CAST( NULL AS SIGNED ) / - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-8026
SELECT ALL + AVG ( + 49 ) + - + CAST ( NULL AS INTEGER ) / - 83
----
NULL

query I rowsort
SELECT + 8 + - + NULLIF ( + 85, - + 7 ) + + 25
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT + SUM( ALL + 53 ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-8028
SELECT + SUM ( ALL + 53 ) AS col2
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8029
SELECT - CAST( NULL AS SIGNED ) + - COALESCE ( 23, - 23, + 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8029
SELECT - CAST ( NULL AS INTEGER ) + - COALESCE ( 23, - 23, + 14 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8030
SELECT - - 73 * - 56 * + 73 AS col2, - 74 * - 32 - MIN( ALL + - 23 ) AS col1
----
-298424
2391

skipif mysql # not compatible
query II rowsort label-8030
SELECT - - 73 * - 56 * + 73 AS col2, - 74 * - 32 - MIN ( ALL + - 23 ) AS col1
----
-298424
2391

query II rowsort
SELECT - - 8, 2 AS col1
----
8
2

query I rowsort
SELECT - + 87 - - 76
----
-11

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT - MAX( - 26 ) + - 96 AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-8034
SELECT - MAX ( - 26 ) + - 96 AS col2
----
-70

query II rowsort
SELECT ALL 20 AS col0, 35 * - 34
----
20
-1190

onlyif mysql # aggregate syntax: 
query I rowsort label-8036
SELECT - ( - 17 ) + - MAX( - 69 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-8036
SELECT - ( - 17 ) + - MAX ( - 69 ) AS col0
----
86

query II rowsort
SELECT + 0 * - - 72 * + 43 * + 17 AS col0, + 33 + + 66
----
0
99

onlyif mysql # DIV for integer division: 
query II rowsort label-8038
SELECT ALL + 57 AS col2, + 59 DIV - NULLIF ( + 64, + 50 ) AS col1
----
57
0

skipif mysql # not compatible
query II rowsort label-8038
SELECT ALL + 57 AS col2, + 59 / - NULLIF ( + 64, + 50 ) AS col1
----
57
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8039
SELECT ( - + ( - COUNT( * ) ) ) * CAST( NULL AS SIGNED ) + - NULLIF ( - 4, + 97 * - 90 + - 82 ) * - 90 + - 33 + + + 41, 5 * + 57 * + + CASE - - 89 WHEN 87 THEN - + MIN( ALL - + 34 ) * + COALESCE ( 96, + - ( - - COALESCE ( - 62, - 26 * - 0 - 2 ) ), - 27 ) + + 31 - CAST( NULL AS SIGNED ) ELSE NULL END AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8039
SELECT ( - + ( - COUNT ( * ) ) ) * CAST ( NULL AS INTEGER ) + - NULLIF ( - 4, + 97 * - 90 + - 82 ) * - 90 + - 33 + + + 41, 5 * + 57 * + + CASE - - 89 WHEN 87 THEN - + MIN ( ALL - + 34 ) * + COALESCE ( 96, + - ( - - COALESCE ( - 62, - 26 * - 0 - 2 ) ), - 27 ) + + 31 - CAST ( NULL AS INTEGER ) ELSE NULL END AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8040
SELECT + 76 - NULLIF ( + - COUNT( * ), + 10 ) * + - 11 * - 96
----
1132

skipif mysql # not compatible
query I rowsort label-8040
SELECT + 76 - NULLIF ( + - COUNT ( * ), + 10 ) * + - 11 * - 96
----
1132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8041
SELECT - COUNT( * ) DIV + + 60 + + ( + 99 )
----
99

skipif mysql # not compatible
query I rowsort label-8041
SELECT - COUNT ( * ) / + + 60 + + ( + 99 )
----
99

query I rowsort
SELECT - 59 * - 61 * - 14 - 1 AS col2
----
-50387

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8043
SELECT ALL + 73 col2, - 36 * 84 * CAST( - AVG ( DISTINCT - + 49 ) AS SIGNED )
----
73
-148176

skipif mysql # not compatible
query II rowsort label-8043
SELECT ALL + 73 col2, - 36 * 84 * CAST ( - AVG ( DISTINCT - + 49 ) AS INTEGER )
----
73
-148176

query I rowsort
SELECT - 64 * + ( + 39 ) * + - 24 AS col1
----
59904

query I rowsort
SELECT ALL - 66 * - + 96 AS col2
----
6336

onlyif mysql # aggregate syntax: 
query I rowsort label-8046
SELECT - 40 * + COUNT( ALL + 98 )
----
-40

skipif mysql # not compatible
query I rowsort label-8046
SELECT - 40 * + COUNT ( ALL + 98 )
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8047
SELECT ALL - CAST( - + COUNT( * ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8047
SELECT ALL - CAST ( - + COUNT ( * ) AS INTEGER ) AS col1
----
1

query II rowsort
SELECT DISTINCT - 1 AS col0, 56 AS col2
----
-1
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8049
SELECT - ( - + 70 ) * + 8 + + + 83 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8049
SELECT - ( - + 70 ) * + 8 + + + 83 * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT COUNT( * ) * 73 * - 78
----
-5694

skipif mysql # not compatible
query I rowsort label-8050
SELECT COUNT ( * ) * 73 * - 78
----
-5694

query I rowsort
SELECT 24 + - + 58
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8052
SELECT 82 AS col0, CAST( - COUNT( * ) AS SIGNED ) + + 8 * 36 col1
----
82
287

skipif mysql # not compatible
query II rowsort label-8052
SELECT 82 AS col0, CAST ( - COUNT ( * ) AS INTEGER ) + + 8 * 36 col1
----
82
287

onlyif mysql # aggregate syntax: 
query I rowsort label-8053
SELECT COUNT( * ) + + 31 + - MIN( ALL - 77 ) * + 52 * 60 + 60 * + 31 AS col1
----
242132

skipif mysql # not compatible
query I rowsort label-8053
SELECT COUNT ( * ) + + 31 + - MIN ( ALL - 77 ) * + 52 * 60 + 60 * + 31 AS col1
----
242132

onlyif mysql # aggregate syntax: 
query I rowsort label-8054
SELECT ( - - 56 ) * + MIN( DISTINCT + - 98 ) AS col1
----
-5488

skipif mysql # not compatible
query I rowsort label-8054
SELECT ( - - 56 ) * + MIN ( DISTINCT + - 98 ) AS col1
----
-5488

onlyif mysql # aggregate syntax: 
query II rowsort label-8055
SELECT DISTINCT + + MIN( - + 12 ) + + - 79 + 34 AS col2, ( + 93 ) * - 31 * + + COUNT( + ( - - 2 ) ) * 53 + - + COUNT( * ) AS col0
----
-57
-152800

skipif mysql # not compatible
query II rowsort label-8055
SELECT DISTINCT + + MIN ( - + 12 ) + + - 79 + 34 AS col2, ( + 93 ) * - 31 * + + COUNT ( + ( - - 2 ) ) * 53 + - + COUNT ( * ) AS col0
----
-57
-152800

query I rowsort
SELECT DISTINCT - NULLIF ( 28, 29 )
----
-28

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8058
SELECT + - 60 * - + CAST( - + COUNT( * ) AS SIGNED ) + SUM( DISTINCT + 0 ) - 98 AS col2
----
-158

skipif mysql # not compatible
query I rowsort label-8058
SELECT + - 60 * - + CAST ( - + COUNT ( * ) AS INTEGER ) + SUM ( DISTINCT + 0 ) - 98 AS col2
----
-158

query I rowsort
SELECT - 26 + + - 0 AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8060
SELECT DISTINCT - - 43 + + 14 + + COUNT( DISTINCT + - 37 )
----
58

skipif mysql # not compatible
query I rowsort label-8060
SELECT DISTINCT - - 43 + + 14 + + COUNT ( DISTINCT + - 37 )
----
58

onlyif mysql # DIV for integer division: 
query II rowsort label-8061
SELECT - - 23 col0, - 8 DIV 88 * + 45 AS col2
----
23
0

skipif mysql # not compatible
query II rowsort label-8061
SELECT - - 23 col0, - 8 / 88 * + 45 AS col2
----
23
0

query I rowsort
SELECT - 40 + 6 * - - 19 * + - ( + 63 ) AS col1
----
-7222

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8063
SELECT ALL - 62 + - COALESCE ( - 29, - 91 + SUM( DISTINCT - - 22 ) + COUNT( * ), 49 + - 48 ) * AVG ( - - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8063
SELECT ALL - 62 + - COALESCE ( - 29, - 91 + SUM ( DISTINCT - - 22 ) + COUNT ( * ), 49 + - 48 ) * AVG ( - - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8064
SELECT - + COUNT( * ) * 70 * + - 5 + - NULLIF ( + 42, + 29 * + 60 ) + 77 AS col2
----
385

skipif mysql # not compatible
query I rowsort label-8064
SELECT - + COUNT ( * ) * 70 * + - 5 + - NULLIF ( + 42, + 29 * + 60 ) + 77 AS col2
----
385

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8065
SELECT + 64 col2, + CAST( NULL AS SIGNED ) * + 8
----
64
NULL

skipif mysql # not compatible
query II rowsort label-8065
SELECT + 64 col2, + CAST ( NULL AS INTEGER ) * + 8
----
64
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8067
SELECT 43 + + CAST( COUNT( * ) AS SIGNED ) * 72 + 47 AS col0
----
162

skipif mysql # not compatible
query I rowsort label-8067
SELECT 43 + + CAST ( COUNT ( * ) AS INTEGER ) * 72 + 47 AS col0
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-8068
SELECT + CASE + 23 WHEN + - 19 - - 6 THEN + - 1 ELSE + COUNT( * ) + + - 91 END + - + MIN( ALL 14 ) AS col1
----
-104

skipif mysql # not compatible
query I rowsort label-8068
SELECT + CASE + 23 WHEN + - 19 - - 6 THEN + - 1 ELSE + COUNT ( * ) + + - 91 END + - + MIN ( ALL 14 ) AS col1
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-8069
SELECT DISTINCT + - 51 * + 91 * - + COUNT( * ) AS col1
----
4641

skipif mysql # not compatible
query I rowsort label-8069
SELECT DISTINCT + - 51 * + 91 * - + COUNT ( * ) AS col1
----
4641

onlyif mysql # aggregate syntax: 
query I rowsort label-8070
SELECT ALL - - COUNT( 51 ) * 48 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-8070
SELECT ALL - - COUNT ( 51 ) * 48 AS col0
----
48

query I rowsort
SELECT - ( + - 33 ) + + 5 AS col2
----
38

query I rowsort
SELECT ALL 12 - - 87 AS col1
----
99

query I rowsort
SELECT - 56 + + CASE 79 WHEN 36 * - 44 + ( + 57 ) THEN 69 END - 30 * + 92 + + 16
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8074
SELECT 68 AS col1, + 89 * + 59 * 91 + + 6 DIV + NULLIF ( + 12, - 58 ) AS col1
----
68
477841

skipif mysql # not compatible
query II rowsort label-8074
SELECT 68 AS col1, + 89 * + 59 * 91 + + 6 / + NULLIF ( + 12, - 58 ) AS col1
----
68
477841

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT DISTINCT + COUNT( * ) * + + 81 + - 82 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8075
SELECT DISTINCT + COUNT ( * ) * + + 81 + - 82 AS col2
----
-1

query II rowsort
SELECT - + 48, - 44 AS col1
----
-48
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8077
SELECT 28 + - COUNT( * ) * - 40 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-8077
SELECT 28 + - COUNT ( * ) * - 40 AS col0
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8078
SELECT CAST( 33 AS SIGNED ) * + - 93 * + + 29 col1
----
-89001

skipif mysql # not compatible
query I rowsort label-8078
SELECT CAST ( 33 AS INTEGER ) * + - 93 * + + 29 col1
----
-89001

query I rowsort
SELECT 37 + - 85 * ( 36 ) AS col1
----
-3023

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8080
SELECT DISTINCT + ( 50 ) * + MAX( DISTINCT - - 1 ) + 84 * 33 * COUNT( * ), + 94 DIV 63 DIV 32 - + + 68 - - 52 + - 66 * - + 40 + - 65 - + ( SUM( DISTINCT + 6 ) ) DIV + 94 * + 95 DIV 10 * 49 + + 74 AS col2
----
2822
2633

skipif mysql # not compatible
query II rowsort label-8080
SELECT DISTINCT + ( 50 ) * + MAX ( DISTINCT - - 1 ) + 84 * 33 * COUNT ( * ), + 94 / 63 / 32 - + + 68 - - 52 + - 66 * - + 40 + - 65 - + ( SUM ( DISTINCT + 6 ) ) / + 94 * + 95 / 10 * 49 + + 74 AS col2
----
2822
2633

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT DISTINCT - NULLIF ( COUNT( * ), 98 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-8081
SELECT DISTINCT - NULLIF ( COUNT ( * ), 98 ) col0
----
-1

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

skipif mysql # not compatible
query I rowsort label-8082
SELECT COUNT ( * ) / + 38 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8083
SELECT ALL - SUM( + 6 ) AS col2, + 82 AS col1
----
-6
82

skipif mysql # not compatible
query II rowsort label-8083
SELECT ALL - SUM ( + 6 ) AS col2, + 82 AS col1
----
-6
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8084
SELECT - CAST( + - 67 AS SIGNED ) DIV - COUNT( ALL + + NULLIF ( 37, CAST( NULL AS SIGNED ) ) ) - + 63 + + CAST( - - COALESCE ( COUNT( * ), - + 99 - + ( - + 0 ) ) AS SIGNED ) * + 86
----
-44

skipif mysql # not compatible
query I rowsort label-8084
SELECT - CAST ( + - 67 AS INTEGER ) / - COUNT ( ALL + + NULLIF ( 37, CAST ( NULL AS INTEGER ) ) ) - + 63 + + CAST ( - - COALESCE ( COUNT ( * ), - + 99 - + ( - + 0 ) ) AS INTEGER ) * + 86
----
-44

query I rowsort
SELECT 27 - - + 16 + 85
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-8086
SELECT ALL - ( 65 ) * COUNT( ALL + 81 ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-8086
SELECT ALL - ( 65 ) * COUNT ( ALL + 81 ) AS col2
----
-65

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

skipif mysql # not compatible
query II rowsort label-8087
SELECT 33 / - 19 AS col2, + COUNT ( * ) AS col1
----
-1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8088
SELECT CASE 81 WHEN + 20 * - 40 + + - AVG ( DISTINCT - 5 ) * - 14 / + 56 + + CAST( - COALESCE ( + 44, - 74 ) AS SIGNED ) + - 29 / + 85 THEN + - 0 END * 92 + 82 + - - 65 + - 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8088
SELECT CASE 81 WHEN + 20 * - 40 + + - AVG ( DISTINCT - 5 ) * - 14 / + 56 + + CAST ( - COALESCE ( + 44, - 74 ) AS INTEGER ) + - 29 / + 85 THEN + - 0 END * 92 + 82 + - - 65 + - 38 AS col1
----
NULL

query I rowsort
SELECT ALL + 90 + - 81 AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8090
SELECT ALL ( - 17 ) + + + COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-8090
SELECT ALL ( - 17 ) + + + COUNT ( * )
----
-16

query II rowsort
SELECT - 15 - - 27 col2, 26
----
12
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8092
SELECT + - MIN( + ( - 49 ) )
----
49

skipif mysql # not compatible
query I rowsort label-8092
SELECT + - MIN ( + ( - 49 ) )
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8093
SELECT - CAST( NULL AS SIGNED ) * - + 5 / + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-8093
SELECT - CAST ( NULL AS INTEGER ) * - + 5 / + 25
----
NULL

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

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

query I rowsort
SELECT DISTINCT 61 - + 42 + - 70 + - - 54 AS col0
----
3

query I rowsort
SELECT + 79 - - + 71 AS col2
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-8097
SELECT COALESCE ( + ( - COUNT( * ) ), + ( - 36 ) ) + 6
----
5

skipif mysql # not compatible
query I rowsort label-8097
SELECT COALESCE ( + ( - COUNT ( * ) ), + ( - 36 ) ) + 6
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8098
SELECT ALL 83 DIV - 46 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8098
SELECT ALL 83 / - 46 AS col1
----
-1

query I rowsort
SELECT COALESCE ( + 89, - 80 + ( - 32 ), 69 ) * - 66
----
-5874

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

skipif mysql # not compatible
query I rowsort label-8100
SELECT 12 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 35 * - 3 * + + 61
----
-6405

query I rowsort
SELECT + 41 - 45 + + - 56 * - + 81 AS col2
----
4532

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8103
SELECT ALL 47 DIV + + CAST( - 41 AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8103
SELECT ALL 47 / + + CAST ( - 41 AS INTEGER ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8104
SELECT ALL + 2 * 55 DIV - 21 col2
----
-5

skipif mysql # not compatible
query I rowsort label-8104
SELECT ALL + 2 * 55 / - 21 col2
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8105
SELECT ALL + SUM( + + 67 ) * - - 53 + COUNT( DISTINCT + 41 ) DIV + COUNT( * ) AS col2, COUNT( ALL + 31 ) * 69
----
3552
69

skipif mysql # not compatible
query II rowsort label-8105
SELECT ALL + SUM ( + + 67 ) * - - 53 + COUNT ( DISTINCT + 41 ) / + COUNT ( * ) AS col2, COUNT ( ALL + 31 ) * 69
----
3552
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8106
SELECT ALL CAST( + 37 AS SIGNED ) + MAX( - 81 )
----
-44

skipif mysql # not compatible
query I rowsort label-8106
SELECT ALL CAST ( + 37 AS INTEGER ) + MAX ( - 81 )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT + 81 + + COALESCE ( - 10, - 27 ) * - COUNT( * ) col2
----
91

skipif mysql # not compatible
query I rowsort label-8107
SELECT + 81 + + COALESCE ( - 10, - 27 ) * - COUNT ( * ) col2
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8108
SELECT ALL + 98 AS col2, NULLIF ( + - 31, 93 / 17 * COUNT( * ) / + CAST( NULL AS SIGNED ) + - 7 * + + 14 - - - COUNT( * ) ) + + 54 - + 69 AS col1
----
98
-46

skipif mysql # not compatible
query II rowsort label-8108
SELECT ALL + 98 AS col2, NULLIF ( + - 31, 93 / 17 * COUNT ( * ) / + CAST ( NULL AS INTEGER ) + - 7 * + + 14 - - - COUNT ( * ) ) + + 54 - + 69 AS col1
----
98
-46

query I rowsort
SELECT + CASE - 92 WHEN 23 THEN + 10 - - 90 - 63 + 99 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8110
SELECT COUNT( * ) * - 80 - - COALESCE ( - 3, + 83 - - 93, + 93 ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-8110
SELECT COUNT ( * ) * - 80 - - COALESCE ( - 3, + 83 - - 93, + 93 ) AS col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8111
SELECT + NULLIF ( + 7, 44 * MAX( 54 ) / - 99 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-8111
SELECT + NULLIF ( + 7, 44 * MAX ( 54 ) / - 99 ) AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8112
SELECT DISTINCT SUM( 99 ) * - + ( - - 43 ) + 91 + + 81 AS col1
----
-4085

skipif mysql # not compatible
query I rowsort label-8112
SELECT DISTINCT SUM ( 99 ) * - + ( - - 43 ) + 91 + + 81 AS col1
----
-4085

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

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

query I rowsort
SELECT 4 * 84 + - 77
----
259

query I rowsort
SELECT ALL - 31 * + 71 col2
----
-2201

onlyif mysql # aggregate syntax: 
query II rowsort label-8116
SELECT NULLIF ( + - COUNT( * ), 57 ) AS col1, 15 AS col0
----
-1
15

skipif mysql # not compatible
query II rowsort label-8116
SELECT NULLIF ( + - COUNT ( * ), 57 ) AS col1, 15 AS col0
----
-1
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8117
SELECT ALL ( - 72 ) * - 36 + - 26 DIV - COALESCE ( + 91, - + 40 + - 10, - COUNT( DISTINCT + 91 ) DIV + 75 + + 47 + + + 44 * + 56 DIV + 17 * + 83 ) col2
----
2592

skipif mysql # not compatible
query I rowsort label-8117
SELECT ALL ( - 72 ) * - 36 + - 26 / - COALESCE ( + 91, - + 40 + - 10, - COUNT ( DISTINCT + 91 ) / + 75 + + 47 + + + 44 * + 56 / + 17 * + 83 ) col2
----
2592

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8118
SELECT - - 22 / - CASE + COUNT( * ) WHEN + ( + + 64 ) * - 8 + + CAST( NULL AS SIGNED ) THEN - 96 END + + - AVG ( + + 36 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8118
SELECT - - 22 / - CASE + COUNT ( * ) WHEN + ( + + 64 ) * - 8 + + CAST ( NULL AS INTEGER ) THEN - 96 END + + - AVG ( + + 36 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8119
SELECT - + 51 * CASE + + CAST( AVG ( ALL + - ( 45 ) ) AS SIGNED ) WHEN - - COUNT( + 51 ) + ( + 22 ) + - + 10 + + 41 THEN - 3 * COUNT( * ) * - - 17 END / 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8119
SELECT - + 51 * CASE + + CAST ( AVG ( ALL + - ( 45 ) ) AS INTEGER ) WHEN - - COUNT ( + 51 ) + ( + 22 ) + - + 10 + + 41 THEN - 3 * COUNT ( * ) * - - 17 END / 72 AS col2
----
NULL

query I rowsort
SELECT - 61 + - ( + 49 ) * - ( - 27 ) AS col0
----
-1384

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8121
SELECT - 31 / MAX( + CAST( NULL AS SIGNED ) ) * - + COUNT( + - 64 ) + - 76 * + 47 * - + 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8121
SELECT - 31 / MAX ( + CAST ( NULL AS INTEGER ) ) * - + COUNT ( + - 64 ) + - 76 * + 47 * - + 56 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8122
SELECT ALL + - 5 AS col0, 98 * - + COUNT( * ) * - 81 * - 48 AS col1
----
-5
-381024

skipif mysql # not compatible
query II rowsort label-8122
SELECT ALL + - 5 AS col0, 98 * - + COUNT ( * ) * - 81 * - 48 AS col1
----
-5
-381024

onlyif mysql # aggregate syntax: 
query II rowsort label-8123
SELECT ALL 30 * COUNT( DISTINCT - 64 ) * + 96 + - COUNT( * ) - - 68 - + - COUNT( 44 ) AS col2, 46 AS col0
----
2948
46

skipif mysql # not compatible
query II rowsort label-8123
SELECT ALL 30 * COUNT ( DISTINCT - 64 ) * + 96 + - COUNT ( * ) - - 68 - + - COUNT ( 44 ) AS col2, 46 AS col0
----
2948
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8124
SELECT ALL + - 17 * NULLIF ( - 98, - COUNT( * ) + CAST( 99 AS SIGNED ) ) col0
----
1666

skipif mysql # not compatible
query I rowsort label-8124
SELECT ALL + - 17 * NULLIF ( - 98, - COUNT ( * ) + CAST ( 99 AS INTEGER ) ) col0
----
1666

query I rowsort
SELECT - + 99 + - + ( + 31 )
----
-130

onlyif mysql # DIV for integer division: 
query I rowsort label-8126
SELECT - 15 DIV 64 * 61
----
0

skipif mysql # not compatible
query I rowsort label-8126
SELECT - 15 / 64 * 61
----
0

query II rowsort
SELECT - + 85 AS col2, 16
----
-85
16

query I rowsort
SELECT + 47 + - 93 AS col1
----
-46

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8129
SELECT - + 28 * - CAST( + 13 AS SIGNED ) + - + 39 DIV + + 79
----
364

skipif mysql # not compatible
query I rowsort label-8129
SELECT - + 28 * - CAST ( + 13 AS INTEGER ) + - + 39 / + + 79
----
364

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT + 74 + MIN( DISTINCT - - 6 )
----
80

skipif mysql # not compatible
query I rowsort label-8130
SELECT + 74 + MIN ( DISTINCT - - 6 )
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-8131
SELECT + 41 + + 43 DIV + 92
----
41

skipif mysql # not compatible
query I rowsort label-8131
SELECT + 41 + + 43 / + 92
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-8132
SELECT ALL ( 84 ), - 21 + NULLIF ( ( 8 ), + - MAX( DISTINCT 38 ) * 14 + 89 ) AS col1
----
84
-13

skipif mysql # not compatible
query II rowsort label-8132
SELECT ALL ( 84 ), - 21 + NULLIF ( ( 8 ), + - MAX ( DISTINCT 38 ) * 14 + 89 ) AS col1
----
84
-13

query I rowsort
SELECT ALL - 7 * - 79 AS col1
----
553

query I rowsort
SELECT + 17 + - 59 AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8135
SELECT ALL 88 + - - COUNT( * ) + - 44 + 6 - + COUNT( DISTINCT - 55 ) * 5
----
46

skipif mysql # not compatible
query I rowsort label-8135
SELECT ALL 88 + - - COUNT ( * ) + - 44 + 6 - + COUNT ( DISTINCT - 55 ) * 5
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8136
SELECT ALL ( + 88 ) + + COUNT( * ) col1
----
89

skipif mysql # not compatible
query I rowsort label-8136
SELECT ALL ( + 88 ) + + COUNT ( * ) col1
----
89

query I rowsort
SELECT + 70 * - 64 * - 35 * + 78 AS col2
----
12230400

query I rowsort
SELECT - 81 * - ( - 46 ) AS col0
----
-3726

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8139
SELECT - ( - - 15 ) AS col0, - COUNT( * ) - 10 / CAST( NULL AS SIGNED ) AS col0
----
-15
NULL

skipif mysql # not compatible
query II rowsort label-8139
SELECT - ( - - 15 ) AS col0, - COUNT ( * ) - 10 / CAST ( NULL AS INTEGER ) AS col0
----
-15
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8140
SELECT ALL 28 DIV 9 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-8140
SELECT ALL 28 / 9 AS col1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8141
SELECT + 34 DIV MIN( - 36 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8141
SELECT + 34 / MIN ( - 36 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8142
SELECT ALL - MIN( ALL - 50 ) + - 5 + + 62 + + 39 * + 73 * - 10, + 8 col0
----
-28363
8

skipif mysql # not compatible
query II rowsort label-8142
SELECT ALL - MIN ( ALL - 50 ) + - 5 + + 62 + + 39 * + 73 * - 10, + 8 col0
----
-28363
8

query I rowsort
SELECT ALL 22 + - - 70 * 0 AS col2
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8144
SELECT + 14 DIV - ( - 86 ) + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8144
SELECT + 14 / - ( - 86 ) + + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT DISTINCT 27 * 21 * + + COUNT( * ) AS col2
----
567

skipif mysql # not compatible
query I rowsort label-8145
SELECT DISTINCT 27 * 21 * + + COUNT ( * ) AS col2
----
567

onlyif mysql # aggregate syntax: 
query I rowsort label-8146
SELECT + NULLIF ( 32, - 55 + - MAX( ALL - + 20 ) )
----
32

skipif mysql # not compatible
query I rowsort label-8146
SELECT + NULLIF ( 32, - 55 + - MAX ( ALL - + 20 ) )
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8147
SELECT CAST( + COALESCE ( - 78, - + COUNT( * ), - ( - - 68 ) ) AS SIGNED ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-8147
SELECT CAST ( + COALESCE ( - 78, - + COUNT ( * ), - ( - - 68 ) ) AS INTEGER ) AS col0
----
-78

query I rowsort
SELECT - ( - - 54 ) * - 83
----
4482

onlyif mysql # DIV for integer division: 
query I rowsort label-8149
SELECT ALL 90 DIV - + 28 - - - 30 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-8149
SELECT ALL 90 / - + 28 - - - 30 AS col0
----
-33

query I rowsort
SELECT DISTINCT 38 * - 83
----
-3154

onlyif mysql # aggregate syntax: 
query II rowsort label-8151
SELECT - - COUNT( * ) * - 75 AS col1, - 77
----
-75
-77

skipif mysql # not compatible
query II rowsort label-8151
SELECT - - COUNT ( * ) * - 75 AS col1, - 77
----
-75
-77

query I rowsort
SELECT + 52 * + ( + - 46 )
----
-2392

onlyif mysql # aggregate syntax: 
query I rowsort label-8153
SELECT + MIN( DISTINCT + 29 )
----
29

skipif mysql # not compatible
query I rowsort label-8153
SELECT + MIN ( DISTINCT + 29 )
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8154
SELECT DISTINCT + - 52 * COUNT( * ) DIV - 60 + - 35
----
-35

skipif mysql # not compatible
query I rowsort label-8154
SELECT DISTINCT + - 52 * COUNT ( * ) / - 60 + - 35
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT - + COUNT( * ) * - - 5 + + + 32 + + 20 + - + 58 * - + CASE + 39 WHEN + 99 + 12 + + 94 + 0 / - + COALESCE ( - 54, + - 87 ) THEN + ( - 90 ) - - 30 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8155
SELECT - + COUNT ( * ) * - - 5 + + + 32 + + 20 + - + 58 * - + CASE + 39 WHEN + 99 + 12 + + 94 + 0 / - + COALESCE ( - 54, + - 87 ) THEN + ( - 90 ) - - 30 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8156
SELECT DISTINCT 67 * + + MAX( CAST( + 21 AS SIGNED ) ) * + NULLIF ( 19, 36 ) AS col0
----
26733

skipif mysql # not compatible
query I rowsort label-8156
SELECT DISTINCT 67 * + + MAX ( CAST ( + 21 AS INTEGER ) ) * + NULLIF ( 19, 36 ) AS col0
----
26733

onlyif mysql # aggregate syntax: 
query I rowsort label-8157
SELECT DISTINCT - MIN( ALL 42 ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-8157
SELECT DISTINCT - MIN ( ALL 42 ) AS col1
----
-42

query II rowsort
SELECT ALL 68 AS col2, + 79
----
68
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8159
SELECT DISTINCT - COUNT( * ) + + 17 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-8159
SELECT DISTINCT - COUNT ( * ) + + 17 AS col2
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8160
SELECT DISTINCT + COUNT( * ) DIV - 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8160
SELECT DISTINCT + COUNT ( * ) / - 90 AS col1
----
0

query I rowsort
SELECT 37 * - - 85
----
3145

onlyif mysql # aggregate syntax: 
query I rowsort label-8162
SELECT ALL - 3 + - COUNT( * ) - 74 + - - 79 * - 15
----
-1263

skipif mysql # not compatible
query I rowsort label-8162
SELECT ALL - 3 + - COUNT ( * ) - 74 + - - 79 * - 15
----
-1263

query I rowsort
SELECT 8 + - 75
----
-67

query I rowsort
SELECT 18 + 24 AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8165
SELECT COUNT( DISTINCT - - 27 ) - - ( + - ( - 10 ) ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-8165
SELECT COUNT ( DISTINCT - - 27 ) - - ( + - ( - 10 ) ) AS col0
----
11

query I rowsort
SELECT 62 * - 9 AS col1
----
-558

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

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

query I rowsort
SELECT 46 + + - 25
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-8169
SELECT DISTINCT 98, + NULLIF ( 31, - 17 + COUNT( * ) ) - 63 AS col0
----
98
-32

skipif mysql # not compatible
query II rowsort label-8169
SELECT DISTINCT 98, + NULLIF ( 31, - 17 + COUNT ( * ) ) - 63 AS col0
----
98
-32

query I rowsort
SELECT ALL 39 * 67 AS col1
----
2613

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

skipif mysql # not compatible
query I rowsort label-8171
SELECT COUNT ( ALL - CAST ( NULL AS INTEGER ) ) + - - 84 * - 20 AS col2
----
-1680

query I rowsort
SELECT ALL + 41 - - 34
----
75

query I rowsort
SELECT 42 * - - ( + 67 )
----
2814

query I rowsort
SELECT 52 + + 70 + - 89 - 93
----
-60

query II rowsort
SELECT 75, + NULLIF ( 99, - 1 ) - 90 * 19 - + 42 AS col2
----
75
-1653

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8176
SELECT + 38 * 56 + - 37 + - - 95 + 15 * 95 * + - 86 * - 82 - + 83 + - + CAST( NULL AS SIGNED ) + - - 68 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8176
SELECT + 38 * 56 + - 37 + - - 95 + 15 * 95 * + - 86 * - 82 - + 83 + - + CAST ( NULL AS INTEGER ) + - - 68 AS col1
----
NULL

query I rowsort
SELECT + 43 * 5 * 72 AS col0
----
15480

onlyif mysql # DIV for integer division: 
query I rowsort label-8178
SELECT ( - ( - - 2 ) ) DIV + + 82 + - - 62 * - ( - 44 ) + + COALESCE ( - 96, 25 DIV + 3 ) - + 70
----
2562

skipif mysql # not compatible
query I rowsort label-8178
SELECT ( - ( - - 2 ) ) / + + 82 + - - 62 * - ( - 44 ) + + COALESCE ( - 96, 25 / + 3 ) - + 70
----
2562

query I rowsort
SELECT ALL 10 * - 42
----
-420

query I rowsort
SELECT 43 * + - 60 AS col2
----
-2580

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8181
SELECT DISTINCT 49 DIV - + 11 + - 76 * COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-8181
SELECT DISTINCT 49 / - + 11 + - 76 * COUNT ( * )
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8182
SELECT MAX( - 77 ) DIV + 32 col1
----
-2

skipif mysql # not compatible
query I rowsort label-8182
SELECT MAX ( - 77 ) / + 32 col1
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-8183
SELECT 36 DIV 8 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-8183
SELECT 36 / 8 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT MAX( + 46 ) * - 84 * 22
----
-85008

skipif mysql # not compatible
query I rowsort label-8184
SELECT MAX ( + 46 ) * - 84 * 22
----
-85008

query I rowsort
SELECT ALL + 28 * - 24 AS col1
----
-672

onlyif mysql # aggregate syntax: 
query II rowsort label-8186
SELECT + CASE - COUNT( * ) WHEN - COUNT( * ) + 67 THEN - COUNT( * ) * - + 19 + - COUNT( * ) * + - ( 8 ) END + + COUNT( * ) AS col2, + 64 AS col2
----
NULL
64

skipif mysql # not compatible
query II rowsort label-8186
SELECT + CASE - COUNT ( * ) WHEN - COUNT ( * ) + 67 THEN - COUNT ( * ) * - + 19 + - COUNT ( * ) * + - ( 8 ) END + + COUNT ( * ) AS col2, + 64 AS col2
----
NULL
64

query I rowsort
SELECT 47 * + 94 + - 97 + NULLIF ( - 52, + 70 / + ( - 27 ) )
----
4269

query I rowsort
SELECT ALL 12 + + + 8
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8189
SELECT DISTINCT - - ( COUNT( * ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8189
SELECT DISTINCT - - ( COUNT ( * ) ) col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8190
SELECT ALL 56 + 57 * 45 DIV + - COUNT( * ) - - 33 AS col2
----
-2476

skipif mysql # not compatible
query I rowsort label-8190
SELECT ALL 56 + 57 * 45 / + - COUNT ( * ) - - 33 AS col2
----
-2476

query I rowsort
SELECT - 9 + - + 19 * + - 61
----
1150

query I rowsort
SELECT NULLIF ( - 65, - - 78 ) * 29
----
-1885

onlyif mysql # aggregate syntax: 
query II rowsort label-8193
SELECT 53 + + - CASE - SUM( ALL - 0 ) WHEN + COALESCE ( - 45, + + 87 ) + + AVG ( + + 20 ) THEN 16 - + 96 END AS col1, ( + + 69 ) AS col0
----
NULL
69

skipif mysql # not compatible
query II rowsort label-8193
SELECT 53 + + - CASE - SUM ( ALL - 0 ) WHEN + COALESCE ( - 45, + + 87 ) + + AVG ( + + 20 ) THEN 16 - + 96 END AS col1, ( + + 69 ) AS col0
----
NULL
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8194
SELECT ALL + COALESCE ( - 97, - NULLIF ( - - COUNT( * ), + - 49 + - + MAX( 90 ) ) + ( - 94 ), + 3 * + + 96 DIV - + 9, - 76 ) * CAST( + 75 AS SIGNED ) AS col0
----
-7275

skipif mysql # not compatible
query I rowsort label-8194
SELECT ALL + COALESCE ( - 97, - NULLIF ( - - COUNT ( * ), + - 49 + - + MAX ( 90 ) ) + ( - 94 ), + 3 * + + 96 / - + 9, - 76 ) * CAST ( + 75 AS INTEGER ) AS col0
----
-7275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8195
SELECT CAST( NULL AS SIGNED ) / - 56 * ( - - 55 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8195
SELECT CAST ( NULL AS INTEGER ) / - 56 * ( - - 55 ) AS col0
----
NULL

query I rowsort
SELECT ALL - 72 + - + 20 + - ( - 56 ) AS col0
----
-36

query II rowsort
SELECT DISTINCT 38 col0, ( - 58 )
----
38
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8198
SELECT ALL CAST( NULL AS SIGNED ) * - 91 / COUNT( * ) / 87 AS col1, 19 - - - 90
----
NULL
-71

skipif mysql # not compatible
query II rowsort label-8198
SELECT ALL CAST ( NULL AS INTEGER ) * - 91 / COUNT ( * ) / 87 AS col1, 19 - - - 90
----
NULL
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-8199
SELECT 52 DIV + 97 * 96
----
0

skipif mysql # not compatible
query I rowsort label-8199
SELECT 52 / + 97 * 96
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8200
SELECT DISTINCT MAX( + 86 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-8200
SELECT DISTINCT MAX ( + 86 ) AS col0
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-8201
SELECT ALL COUNT( * ), + 76 + + 90 + + 10 AS col2
----
1
176

skipif mysql # not compatible
query II rowsort label-8201
SELECT ALL COUNT ( * ), + 76 + + 90 + + 10 AS col2
----
1
176

query I rowsort
SELECT ALL - 72 - - - 39 - - - 83 + 53 * + - ( - 93 ) - - 17 AS col2
----
4752

onlyif mysql # aggregate syntax: 
query I rowsort label-8203
SELECT - MAX( DISTINCT 96 ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-8203
SELECT - MAX ( DISTINCT 96 ) AS col2
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-8204
SELECT 42 - + - 9 DIV - + 55 col0
----
42

skipif mysql # not compatible
query I rowsort label-8204
SELECT 42 - + - 9 / - + 55 col0
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-8205
SELECT DISTINCT - 0 DIV - ( + ( + + 80 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8205
SELECT DISTINCT - 0 / - ( + ( + + 80 ) ) AS col0
----
0

query I rowsort
SELECT 87 * + + 89 * + + 68 AS col2
----
526524

query II rowsort
SELECT 97 + - + 41 AS col1, 20 AS col0
----
56
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT - 41 * + + COUNT( * ) * + 87 * ( + 69 ) * 15 * 56
----
-206743320

skipif mysql # not compatible
query I rowsort label-8208
SELECT - 41 * + + COUNT ( * ) * + 87 * ( + 69 ) * 15 * 56
----
-206743320

query I rowsort
SELECT ALL - - ( 67 )
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-8210
SELECT + 27 DIV - - 51 - + 43
----
-43

skipif mysql # not compatible
query I rowsort label-8210
SELECT + 27 / - - 51 - + 43
----
-43

query I rowsort
SELECT 37 * 68
----
2516

onlyif mysql # aggregate syntax: 
query I rowsort label-8212
SELECT DISTINCT + - 91 * - 87 + - 28 + + COUNT( * ) * - 45
----
7844

skipif mysql # not compatible
query I rowsort label-8212
SELECT DISTINCT + - 91 * - 87 + - 28 + + COUNT ( * ) * - 45
----
7844

query I rowsort
SELECT ALL - 51 * + 91 + - 80
----
-4721

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8214
SELECT DISTINCT + 15 * 15 * - 62 DIV - + COUNT( * ) + - 88 AS col1
----
13862

skipif mysql # not compatible
query I rowsort label-8214
SELECT DISTINCT + 15 * 15 * - 62 / - + COUNT ( * ) + - 88 AS col1
----
13862

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8215
SELECT ALL - 86 * + 63 + + 54 * 43 * + 68 + + 92 - 22 - - + CAST( + 35 AS SIGNED ) * - 41 + - SUM( ALL 71 ) AS col0
----
151042

skipif mysql # not compatible
query I rowsort label-8215
SELECT ALL - 86 * + 63 + + 54 * 43 * + 68 + + 92 - 22 - - + CAST ( + 35 AS INTEGER ) * - 41 + - SUM ( ALL 71 ) AS col0
----
151042

query I rowsort
SELECT + 98 - - - 47
----
51

query I rowsort
SELECT - + 25 - + - 60
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-8218
SELECT + - 55 AS col2, - 31 * - + ( 31 ) / + 50 + + + 40 * + 39 / CASE + 74 WHEN COUNT( * ) + + + COUNT( * ) THEN 2 WHEN - 9 THEN + COUNT( - ( - 18 ) ) END
----
-55
NULL

skipif mysql # not compatible
query II rowsort label-8218
SELECT + - 55 AS col2, - 31 * - + ( 31 ) / + 50 + + + 40 * + 39 / CASE + 74 WHEN COUNT ( * ) + + + COUNT ( * ) THEN 2 WHEN - 9 THEN + COUNT ( - ( - 18 ) ) END
----
-55
NULL

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

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

query I rowsort
SELECT + COALESCE ( + 56, + 92 ) AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8221
SELECT DISTINCT ( ( COUNT( * ) ) ) + + - 98 AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-8221
SELECT DISTINCT ( ( COUNT ( * ) ) ) + + - 98 AS col1
----
-97

query II rowsort
SELECT ALL 70 + - 27, 83 AS col1
----
43
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8223
SELECT SUM( - CAST( - 49 AS SIGNED ) ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-8223
SELECT SUM ( - CAST ( - 49 AS INTEGER ) ) AS col0
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8224
SELECT DISTINCT CAST( + - 56 AS SIGNED ) - + COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-8224
SELECT DISTINCT CAST ( + - 56 AS INTEGER ) - + COUNT ( * )
----
-57

onlyif mysql # DIV for integer division: 
query II rowsort label-8225
SELECT ALL 63 * + 73 AS col0, - 80 DIV - 7 AS col1
----
4599
11

skipif mysql # not compatible
query II rowsort label-8225
SELECT ALL 63 * + 73 AS col0, - 80 / - 7 AS col1
----
4599
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8226
SELECT + 69 + + - 55 + - CASE - 94 WHEN + + CAST( NULL AS SIGNED ) THEN + 42 * - 47 WHEN - - 55 * + ( + 37 ) THEN - + 86 + + 21 ELSE - + SUM( + 66 ) END DIV - - 58, + 15
----
15
15

skipif mysql # not compatible
query II rowsort label-8226
SELECT + 69 + + - 55 + - CASE - 94 WHEN + + CAST ( NULL AS INTEGER ) THEN + 42 * - 47 WHEN - - 55 * + ( + 37 ) THEN - + 86 + + 21 ELSE - + SUM ( + 66 ) END / - - 58, + 15
----
15
15

query I rowsort
SELECT - 75 - 33 AS col2
----
-108

onlyif mysql # aggregate syntax: 
query II rowsort label-8228
SELECT + COUNT( * ) + - COUNT( * ) AS col0, COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-8228
SELECT + COUNT ( * ) + - COUNT ( * ) AS col0, COUNT ( * )
----
0
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8229
SELECT + 21 + - MIN( 65 ), - 6 AS col2
----
-44
-6

skipif mysql # not compatible
query II rowsort label-8229
SELECT + 21 + - MIN ( 65 ), - 6 AS col2
----
-44
-6

query I rowsort
SELECT ALL 27 * ( - 60 ) AS col1
----
-1620

query I rowsort
SELECT DISTINCT + 85 * 58 AS col1
----
4930

onlyif mysql # DIV for integer division: 
query I rowsort label-8232
SELECT - + 41 DIV + 29 + 49 + - 65 DIV + - 71 + - - 89
----
137

skipif mysql # not compatible
query I rowsort label-8232
SELECT - + 41 / + 29 + 49 + - 65 / + - 71 + - - 89
----
137

query II rowsort
SELECT ALL + 61 + - 93, 47 col1
----
-32
47

query I rowsort
SELECT - + 97 * - 48 col1
----
4656

onlyif mysql # aggregate syntax: 
query I rowsort label-8235
SELECT COALESCE ( + + 81, + 57, - + MAX( - 8 ) + 90 ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-8235
SELECT COALESCE ( + + 81, + 57, - + MAX ( - 8 ) + 90 ) AS col0
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8236
SELECT DISTINCT + + 14 DIV 70 + - + MAX( + + 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-8236
SELECT DISTINCT + + 14 / 70 + - + MAX ( + + 2 )
----
-2

query I rowsort
SELECT DISTINCT + + ( - 62 ) * - - 55 AS col1
----
-3410

onlyif mysql # DIV for integer division: 
query II rowsort label-8238
SELECT DISTINCT - 25 DIV + 97 + + 6 AS col0, - 82 col2
----
6
-82

skipif mysql # not compatible
query II rowsort label-8238
SELECT DISTINCT - 25 / + 97 + + 6 AS col0, - 82 col2
----
6
-82

query I rowsort
SELECT DISTINCT - 18 * + 80 AS col1
----
-1440

query I rowsort
SELECT - + 96 * - 96
----
9216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8241
SELECT - COALESCE ( - + 78, 44 * 21 * + - 10 + - - NULLIF ( 96, - 42 ) + - 90 * - + 15 * + + 32 ) + COUNT( * ) DIV 7 * - + 83 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-8241
SELECT - COALESCE ( - + 78, 44 * 21 * + - 10 + - - NULLIF ( 96, - 42 ) + - 90 * - + 15 * + + 32 ) + COUNT ( * ) / 7 * - + 83 AS col1
----
78

query I rowsort
SELECT + COALESCE ( - + 90, 24 ) AS col2
----
-90

query I rowsort
SELECT DISTINCT - ( - - 20 ) * + ( - + 18 ) - + + 15 col2
----
345

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8244
SELECT + 5 + + CAST( NULL AS DECIMAL ) * + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-8244
SELECT + 5 + + CAST ( NULL AS REAL ) * + 42
----
NULL

query I rowsort
SELECT DISTINCT 17 * - - 23 AS col0
----
391

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

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

query I rowsort
SELECT + ( - 76 ) + - 66 * 81
----
-5422

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

skipif mysql # not compatible
query I rowsort label-8248
SELECT - MIN ( ALL 13 )
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-8249
SELECT - 52 DIV + ( + 70 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-8249
SELECT - 52 / + ( + 70 ) col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8250
SELECT COUNT( * ), 19 col2
----
1
19

skipif mysql # not compatible
query II rowsort label-8250
SELECT COUNT ( * ), 19 col2
----
1
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT COUNT( ALL - 78 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8251
SELECT COUNT ( ALL - 78 ) AS col0
----
1

query I rowsort
SELECT ALL 57 * 18 AS col1
----
1026

query I rowsort
SELECT + 63 * + 25 AS col0
----
1575

query I rowsort
SELECT DISTINCT 86 * + 95 AS col0
----
8170

query I rowsort
SELECT + 98 * - + 49 col1
----
-4802

onlyif mysql # aggregate syntax: 
query II rowsort label-8256
SELECT 85 col2, MAX( DISTINCT + 44 ) + - + 68
----
85
-24

skipif mysql # not compatible
query II rowsort label-8256
SELECT 85 col2, MAX ( DISTINCT + 44 ) + - + 68
----
85
-24

query I rowsort
SELECT DISTINCT 15 + + + 20
----
35

query I rowsort
SELECT + ( + - 21 ) - + 86 AS col0
----
-107

query I rowsort
SELECT ALL 33 + - 26 col2
----
7

query I rowsort
SELECT DISTINCT - 73 + 54 AS col2
----
-19

query I rowsort
SELECT + ( - 86 ) * - 0 * - - 81 + - - 28 + - 33 + - 60 AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-8262
SELECT - 86 * COUNT( * ) * + + 77 * + 75 AS col0
----
-496650

skipif mysql # not compatible
query I rowsort label-8262
SELECT - 86 * COUNT ( * ) * + + 77 * + 75 AS col0
----
-496650

query I rowsort
SELECT ALL - + 43 * + - NULLIF ( + - 62, + + 1 * 12 ) AS col2
----
-2666

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8264
SELECT ALL CAST( 2 AS SIGNED ) col0
----
2

skipif mysql # not compatible
query I rowsort label-8264
SELECT ALL CAST ( 2 AS INTEGER ) col0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8265
SELECT ALL - + CAST( + + 49 AS SIGNED ) + + + 45 * + + 6 AS col1
----
221

skipif mysql # not compatible
query I rowsort label-8265
SELECT ALL - + CAST ( + + 49 AS INTEGER ) + + + 45 * + + 6 AS col1
----
221

onlyif mysql # aggregate syntax: 
query I rowsort label-8266
SELECT + 53 - - - 51 * - - COUNT( + 4 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-8266
SELECT + 53 - - - 51 * - - COUNT ( + 4 ) AS col2
----
2

query I rowsort
SELECT ALL - 80 * - - 99 AS col0
----
-7920

onlyif mysql # aggregate syntax: 
query I rowsort label-8268
SELECT COALESCE ( 67, - - 11 * + 32 + 47, - ( - 6 ), + 78 + + - COUNT( * ) ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-8268
SELECT COALESCE ( 67, - - 11 * + 32 + 47, - ( - 6 ), + 78 + + - COUNT ( * ) ) AS col2
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-8269
SELECT + 80 DIV 22 * + - 77 + 19 AS col0
----
-212

skipif mysql # not compatible
query I rowsort label-8269
SELECT + 80 / 22 * + - 77 + 19 AS col0
----
-212

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8270
SELECT - 19 * + CAST( NULL AS SIGNED ) + + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-8270
SELECT - 19 * + CAST ( NULL AS INTEGER ) + + 73
----
NULL

query I rowsort
SELECT 36 * - + 4
----
-144

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8272
SELECT 39 + + - NULLIF ( + + CASE + 65 WHEN - - 48 THEN - 84 / - + COALESCE ( + - CAST( - 30 AS DECIMAL ), - - COUNT( * ) * + 96 * + CASE + 38 WHEN + 62 / + 96 + + 37 + + 7 + - 26 THEN - COUNT( * ) * + - COUNT( * ) * - - NULLIF ( + + 28, 85 ) WHEN + 0 THEN - 45 * - 72 + + 22 WHEN 9 THEN NULL END ) WHEN + MIN( DISTINCT + 90 ) THEN 36 WHEN - CASE + MAX( DISTINCT + 33 ) WHEN - 83 THEN NULL WHEN + - 32 THEN NULL WHEN + + 83 THEN + - 47 END THEN NULL END, - 88 ) AS col2, - 13 * + 9 + 96
----
NULL
-21

skipif mysql # not compatible
query II rowsort label-8272
SELECT 39 + + - NULLIF ( + + CASE + 65 WHEN - - 48 THEN - 84 / - + COALESCE ( + - CAST ( - 30 AS REAL ), - - COUNT ( * ) * + 96 * + CASE + 38 WHEN + 62 / + 96 + + 37 + + 7 + - 26 THEN - COUNT ( * ) * + - COUNT ( * ) * - - NULLIF ( + + 28, 85 ) WHEN + 0 THEN - 45 * - 72 + + 22 WHEN 9 THEN NULL END ) WHEN + MIN ( DISTINCT + 90 ) THEN 36 WHEN - CASE + MAX ( DISTINCT + 33 ) WHEN - 83 THEN NULL WHEN + - 32 THEN NULL WHEN + + 83 THEN + - 47 END THEN NULL END, - 88 ) AS col2, - 13 * + 9 + 96
----
NULL
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8273
SELECT 28 * 41 + - 85 * - + ( + - COUNT( * ) )
----
1063

skipif mysql # not compatible
query I rowsort label-8273
SELECT 28 * 41 + - 85 * - + ( + - COUNT ( * ) )
----
1063

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT ALL - MIN( - - 55 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-8274
SELECT ALL - MIN ( - - 55 ) AS col2
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8275
SELECT ALL - 13 * - - 89 * NULLIF ( + ( + + CAST( NULL AS SIGNED ) ), 61 * + ( 57 ) * + 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8275
SELECT ALL - 13 * - - 89 * NULLIF ( + ( + + CAST ( NULL AS INTEGER ) ), 61 * + ( 57 ) * + 66 )
----
NULL

query I rowsort
SELECT ALL - ( - - 76 ) AS col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8277
SELECT 36 * + COUNT( + - 98 ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-8277
SELECT 36 * + COUNT ( + - 98 ) AS col1
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-8278
SELECT 43 - - + 82 DIV 37 AS col1
----
45

skipif mysql # not compatible
query I rowsort label-8278
SELECT 43 - - + 82 / 37 AS col1
----
45

query II rowsort
SELECT 91 * 69 AS col1, 80 AS col0
----
6279
80

query I rowsort
SELECT 62 * + 69 * + 31
----
132618

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8281
SELECT ALL + 50 + + COUNT( * ) - - - CAST( NULL AS DECIMAL ) / - 11 * - 17 / - CAST( NULL AS SIGNED ) + - 50 / CASE - 17 WHEN + + 7 + COUNT( * ) THEN COUNT( * ) WHEN - - 45 THEN COUNT( * ) + - 35 - - 74 / 59 - 74 * + 88 WHEN 85 * 81 THEN - CASE - + 52 WHEN 23 THEN + + 88 WHEN + 72 * - 91 * 72 + + - ( 27 ) THEN NULL ELSE NULL END END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8281
SELECT ALL + 50 + + COUNT ( * ) - - - CAST ( NULL AS REAL ) / - 11 * - 17 / - CAST ( NULL AS INTEGER ) + - 50 / CASE - 17 WHEN + + 7 + COUNT ( * ) THEN COUNT ( * ) WHEN - - 45 THEN COUNT ( * ) + - 35 - - 74 / 59 - 74 * + 88 WHEN 85 * 81 THEN - CASE - + 52 WHEN 23 THEN + + 88 WHEN + 72 * - 91 * 72 + + - ( 27 ) THEN NULL ELSE NULL END END AS col0
----
NULL

query I rowsort
SELECT 87 - 56 - 24 AS col1
----
7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8283
SELECT 71 DIV - 45 AS col0, + 1 DIV - - CAST( NULL AS SIGNED )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-8283
SELECT 71 / - 45 AS col0, + 1 / - - CAST ( NULL AS INTEGER )
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8284
SELECT ALL + MAX( 79 ) + - - COALESCE ( 12, + 88 ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-8284
SELECT ALL + MAX ( 79 ) + - - COALESCE ( 12, + 88 ) AS col2
----
91

query I rowsort
SELECT 66 + - 51 AS col1
----
15

query I rowsort
SELECT 25 * 55 col2
----
1375

query I rowsort
SELECT - 87 + - 46 AS col2
----
-133

query II rowsort
SELECT + 1 + + 29 AS col0, + 80 col2
----
30
80

query I rowsort
SELECT + 70 - - 14
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8290
SELECT - CAST( + + 37 AS SIGNED )
----
-37

skipif mysql # not compatible
query I rowsort label-8290
SELECT - CAST ( + + 37 AS INTEGER )
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8291
SELECT NULLIF ( - ( + COALESCE ( + COUNT( * ), 80 ) ), - 43 ) + - MIN( DISTINCT 63 ) * + COUNT( * ), 91 DIV - 20 col0
----
-64
-4

skipif mysql # not compatible
query II rowsort label-8291
SELECT NULLIF ( - ( + COALESCE ( + COUNT ( * ), 80 ) ), - 43 ) + - MIN ( DISTINCT 63 ) * + COUNT ( * ), 91 / - 20 col0
----
-64
-4

query I rowsort
SELECT ALL - - 24 + - 8
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT DISTINCT + + MAX( 79 ) + - 43
----
36

skipif mysql # not compatible
query I rowsort label-8293
SELECT DISTINCT + + MAX ( 79 ) + - 43
----
36

query I rowsort
SELECT ALL - 20 + - + 71 + + - 95 AS col2
----
-186

query I rowsort
SELECT DISTINCT + 92 + + ( 38 )
----
130

query I rowsort
SELECT 15 * - 85
----
-1275

query I rowsort
SELECT ALL 34 - + - 7 + + - 0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8298
SELECT - - COALESCE ( + - 34, + - 32 - + 44 - - 66 + + COUNT( ALL - 71 ) * + + 44 )
----
-34

skipif mysql # not compatible
query I rowsort label-8298
SELECT - - COALESCE ( + - 34, + - 32 - + 44 - - 66 + + COUNT ( ALL - 71 ) * + + 44 )
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8299
SELECT - 17 * - 99 col2, - CAST( + + 52 AS SIGNED ) + 76 - - 82
----
1683
106

skipif mysql # not compatible
query II rowsort label-8299
SELECT - 17 * - 99 col2, - CAST ( + + 52 AS INTEGER ) + 76 - - 82
----
1683
106

onlyif mysql # aggregate syntax: 
query II rowsort label-8300
SELECT + 86 * - 17 AS col2, + 6 * + COUNT( * )
----
-1462
6

skipif mysql # not compatible
query II rowsort label-8300
SELECT + 86 * - 17 AS col2, + 6 * + COUNT ( * )
----
-1462
6

query I rowsort
SELECT ALL + 99 - + + 84
----
15

query I rowsort
SELECT ALL - 24 * - - 71 + 15
----
-1689

query I rowsort
SELECT + 53 * - ( - 74 )
----
3922

query I rowsort
SELECT ALL NULLIF ( - COALESCE ( + - 56, - 73 * 61 ), - + 67 ) * 6
----
336

onlyif mysql # DIV for integer division: 
query I rowsort label-8305
SELECT + 35 DIV + 41 + + - ( 91 ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-8305
SELECT + 35 / + 41 + + - ( 91 ) AS col1
----
-91

query I rowsort
SELECT ALL 11 * 93
----
1023

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8307
SELECT COALESCE ( - 20, - - 70 * + 37 * + CAST( NULL AS SIGNED ) DIV + - AVG ( ( - - 3 ) ) + 2 ) DIV - MAX( + + 83 ) * - 33 + - 79 * - 34 AS col1
----
2686

skipif mysql # not compatible
query I rowsort label-8307
SELECT COALESCE ( - 20, - - 70 * + 37 * + CAST ( NULL AS INTEGER ) / + - AVG ( ( - - 3 ) ) + 2 ) / - MAX ( + + 83 ) * - 33 + - 79 * - 34 AS col1
----
2686

query I rowsort
SELECT 81 * + + 41
----
3321

query I rowsort
SELECT 52 + - + 0 * + 12 + - 13 col0
----
39

query I rowsort
SELECT ( - 76 ) * - 14 - - 28
----
1092

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8311
SELECT CAST( + + COUNT( * ) AS SIGNED ) + 86 * + - 85 AS col2
----
-7309

skipif mysql # not compatible
query I rowsort label-8311
SELECT CAST ( + + COUNT ( * ) AS INTEGER ) + 86 * + - 85 AS col2
----
-7309

query I rowsort
SELECT 97 - - COALESCE ( - - 89, - - 63 ) * - 43 col0
----
-3730

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

skipif mysql # not compatible
query I rowsort label-8313
SELECT 71 * + CAST ( NULL AS INTEGER ) * - ( - 23 ) AS col2
----
NULL

query I rowsort
SELECT ALL - 82 + - 60 AS col2
----
-142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8315
SELECT COUNT( * ) * + 21 DIV + 58 * + 33 + - + ( - 66 ) + 5 + COUNT( * ) * 26 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-8315
SELECT COUNT ( * ) * + 21 / + 58 * + 33 + - + ( - 66 ) + 5 + COUNT ( * ) * 26 AS col1
----
97

query I rowsort
SELECT + 33 * + + 95 + + 40 + + 21 + + - 37 * + + 51
----
1309

onlyif mysql # DIV for integer division: 
query II rowsort label-8317
SELECT 18, 39 DIV - - 28 + - - 23 * + 84 + - 22 AS col0
----
18
1911

skipif mysql # not compatible
query II rowsort label-8317
SELECT 18, 39 / - - 28 + - - 23 * + 84 + - 22 AS col0
----
18
1911

onlyif mysql # DIV for integer division: 
query I rowsort label-8318
SELECT DISTINCT - 37 + - - 39 DIV ( - 8 )
----
-41

skipif mysql # not compatible
query I rowsort label-8318
SELECT DISTINCT - 37 + - - 39 / ( - 8 )
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8319
SELECT + CASE - CASE - 35 WHEN + 60 THEN NULL ELSE - 18 * + 83 END WHEN ( - + CAST( + 91 AS SIGNED ) ) * 34 + 18 THEN NULL WHEN + + 63 * + 12 THEN + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8319
SELECT + CASE - CASE - 35 WHEN + 60 THEN NULL ELSE - 18 * + 83 END WHEN ( - + CAST ( + 91 AS INTEGER ) ) * 34 + 18 THEN NULL WHEN + + 63 * + 12 THEN + COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT 6 + + ( - + 56 ) * + 78 * - 70
----
305766

onlyif mysql # aggregate syntax: 
query I rowsort label-8321
SELECT ALL - COUNT( * ) + + - COUNT( * ) * 85 AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-8321
SELECT ALL - COUNT ( * ) + + - COUNT ( * ) * 85 AS col1
----
-86

query I rowsort
SELECT DISTINCT + 65 + + 96 AS col1
----
161

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

skipif mysql # not compatible
query I rowsort label-8323
SELECT 87 * - - 18 * + COUNT ( * ) AS col0
----
1566

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8325
SELECT DISTINCT + SUM( - 67 ) * + 87
----
-5829

skipif mysql # not compatible
query I rowsort label-8325
SELECT DISTINCT + SUM ( - 67 ) * + 87
----
-5829

query I rowsort
SELECT ALL + 20 + - 49
----
-29

query I rowsort
SELECT - 26 * - 8
----
208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8328
SELECT DISTINCT CAST( - 84 AS SIGNED ) - COALESCE ( COUNT( * ) + - 51, + ( 33 ), - 61 ) DIV + 18 AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-8328
SELECT DISTINCT CAST ( - 84 AS INTEGER ) - COALESCE ( COUNT ( * ) + - 51, + ( 33 ), - 61 ) / + 18 AS col0
----
-82

query I rowsort
SELECT DISTINCT COALESCE ( 56, ( 40 ) - 63 ) AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8330
SELECT ALL + COALESCE ( 97, COUNT( * ) ) - COUNT( * ) * - 22 AS col2
----
119

skipif mysql # not compatible
query I rowsort label-8330
SELECT ALL + COALESCE ( 97, COUNT ( * ) ) - COUNT ( * ) * - 22 AS col2
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-8331
SELECT + MIN( DISTINCT + 4 ) * + 55
----
220

skipif mysql # not compatible
query I rowsort label-8331
SELECT + MIN ( DISTINCT + 4 ) * + 55
----
220

query I rowsort
SELECT - 66 - 83 AS col2
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT - 42 - 48 * + SUM( + ( 19 ) ) AS col1
----
-954

skipif mysql # not compatible
query I rowsort label-8333
SELECT - 42 - 48 * + SUM ( + ( 19 ) ) AS col1
----
-954

query I rowsort
SELECT - 60 * 7
----
-420

query I rowsort
SELECT DISTINCT - ( - 69 ) * 34 col0
----
2346

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT DISTINCT + COALESCE ( 93, - 14 ) - + COUNT( * ) col1
----
92

skipif mysql # not compatible
query I rowsort label-8336
SELECT DISTINCT + COALESCE ( 93, - 14 ) - + COUNT ( * ) col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8337
SELECT + MIN( + 95 ) - 1
----
94

skipif mysql # not compatible
query I rowsort label-8337
SELECT + MIN ( + 95 ) - 1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8338
SELECT + MIN( DISTINCT 52 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-8338
SELECT + MIN ( DISTINCT 52 ) AS col2
----
52

query I rowsort
SELECT + ( - 29 ) * 30
----
-870

onlyif mysql # aggregate syntax: 
query I rowsort label-8340
SELECT DISTINCT ( + NULLIF ( + 41, - COUNT( * ) ) ) * + 82 + ( - COUNT( * ) + - 26 ) AS col0
----
3335

skipif mysql # not compatible
query I rowsort label-8340
SELECT DISTINCT ( + NULLIF ( + 41, - COUNT ( * ) ) ) * + 82 + ( - COUNT ( * ) + - 26 ) AS col0
----
3335

onlyif mysql # DIV for integer division: 
query I rowsort label-8341
SELECT + ( - 9 ) DIV - 77 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8341
SELECT + ( - 9 ) / - 77 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8342
SELECT ALL 42 * COUNT( * ) + + 23
----
65

skipif mysql # not compatible
query I rowsort label-8342
SELECT ALL 42 * COUNT ( * ) + + 23
----
65

query I rowsort
SELECT + COALESCE ( + 10, 43 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT + ( MIN( - 25 ) ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-8344
SELECT + ( MIN ( - 25 ) ) AS col0
----
-25

query I rowsort
SELECT ALL + CASE 5 WHEN + 57 * COALESCE ( 36 * + 97, 72 ) THEN + 15 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8346
SELECT CASE 3 WHEN MIN( DISTINCT + 24 ) THEN + NULLIF ( + 48, AVG ( DISTINCT - 35 ) ) ELSE + 93 * - 43 + - ( + ( 88 ) ) END
----
-4087

skipif mysql # not compatible
query I rowsort label-8346
SELECT CASE 3 WHEN MIN ( DISTINCT + 24 ) THEN + NULLIF ( + 48, AVG ( DISTINCT - 35 ) ) ELSE + 93 * - 43 + - ( + ( 88 ) ) END
----
-4087

query I rowsort
SELECT + 39 * + 47
----
1833

query I rowsort
SELECT NULLIF ( - 38, 22 * 89 + 53 / 92 )
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8349
SELECT CASE - 4 WHEN 86 / 31 THEN CAST( NULL AS SIGNED ) ELSE NULL END * 48 + - 43 * 84
----
NULL

skipif mysql # not compatible
query I rowsort label-8349
SELECT CASE - 4 WHEN 86 / 31 THEN CAST ( NULL AS INTEGER ) ELSE NULL END * 48 + - 43 * 84
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8351
SELECT ALL COUNT( * ) * 33 + MIN( 93 )
----
126

skipif mysql # not compatible
query I rowsort label-8351
SELECT ALL COUNT ( * ) * 33 + MIN ( 93 )
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-8352
SELECT ALL - 95 * COUNT( * ) - - 69
----
-26

skipif mysql # not compatible
query I rowsort label-8352
SELECT ALL - 95 * COUNT ( * ) - - 69
----
-26

query I rowsort
SELECT - + 73 - 80
----
-153

query I rowsort
SELECT ALL + - 23 * 32 AS col0
----
-736

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8355
SELECT DISTINCT + CAST( + CASE 9 WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN + 85 THEN + 78 END AS DECIMAL ) * - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-8355
SELECT DISTINCT + CAST ( + CASE 9 WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN + 85 THEN + 78 END AS REAL ) * - 17
----
NULL

query I rowsort
SELECT ALL - 92 - 33
----
-125

query I rowsort
SELECT CASE - 1 WHEN ( + 64 ) THEN 56 / 95 END AS col2
----
NULL

query I rowsort
SELECT - 41 * 99
----
-4059

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8359
SELECT ALL + 1 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8359
SELECT ALL + 1 * CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - 85 + - ( 34 )
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-8361
SELECT - CASE MAX( 46 ) WHEN + 16 THEN + COUNT( * ) ELSE NULL END - + 82 / 56
----
NULL

skipif mysql # not compatible
query I rowsort label-8361
SELECT - CASE MAX ( 46 ) WHEN + 16 THEN + COUNT ( * ) ELSE NULL END - + 82 / 56
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8362
SELECT - CAST( + 43 AS SIGNED ) + - 29 AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-8362
SELECT - CAST ( + 43 AS INTEGER ) + - 29 AS col0
----
-72

query I rowsort
SELECT ALL 69 * + 46
----
3174

query I rowsort
SELECT - 8 * 80 col0
----
-640

onlyif mysql # DIV for integer division: 
query I rowsort label-8365
SELECT DISTINCT - - 6 DIV 14 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8365
SELECT DISTINCT - - 6 / 14 AS col2
----
0

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

query I rowsort
SELECT - + 80 * 91
----
-7280

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

skipif mysql # not compatible
query I rowsort label-8368
SELECT DISTINCT - + 39 / - COUNT ( * )
----
39

query I rowsort
SELECT ALL - ( + 98 ) col0
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-8370
SELECT DISTINCT - 58 DIV 61
----
0

skipif mysql # not compatible
query I rowsort label-8370
SELECT DISTINCT - 58 / 61
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8371
SELECT - 41 + - 32 - 97 / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8371
SELECT - 41 + - 32 - 97 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - COALESCE ( - - ( 30 ), 30, + 82 - + 61 * - ( 62 ) )
----
-30

query I rowsort
SELECT ALL - 54 * + 25
----
-1350

query I rowsort
SELECT - 70 + - 6
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8375
SELECT - COALESCE ( + + 14, - 49 - + 19 * 41, CAST( - 17 AS SIGNED ) ) * + ( 46 + + 59 ) AS col2
----
-1470

skipif mysql # not compatible
query I rowsort label-8375
SELECT - COALESCE ( + + 14, - 49 - + 19 * 41, CAST ( - 17 AS INTEGER ) ) * + ( 46 + + 59 ) AS col2
----
-1470

query I rowsort
SELECT DISTINCT + COALESCE ( + 75, 23 )
----
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8377
SELECT ALL 57 / + 11 + NULLIF ( CAST( NULL AS DECIMAL ), + 21 + 36 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8377
SELECT ALL 57 / + 11 + NULLIF ( CAST ( NULL AS REAL ), + 21 + 36 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8378
SELECT DISTINCT 32 / - - 92 + MIN( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8378
SELECT DISTINCT 32 / - - 92 + MIN ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8379
SELECT DISTINCT 1 DIV - - 84 + - 76 * - COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-8379
SELECT DISTINCT 1 / - - 84 + - 76 * - COUNT ( * )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8380
SELECT + MIN( ALL 17 ) + ( + 27 )
----
44

skipif mysql # not compatible
query I rowsort label-8380
SELECT + MIN ( ALL 17 ) + ( + 27 )
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-8381
SELECT ALL 7 DIV 58 DIV - 87 + 74 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-8381
SELECT ALL 7 / 58 / - 87 + 74 AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8382
SELECT + ( + SUM( DISTINCT - ( - 19 ) ) ) col0
----
19

skipif mysql # not compatible
query I rowsort label-8382
SELECT + ( + SUM ( DISTINCT - ( - 19 ) ) ) col0
----
19

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8384
SELECT - 44 * NULLIF ( 46, COUNT( * ) * + 22 ) - + 43 * - 68
----
900

skipif mysql # not compatible
query I rowsort label-8384
SELECT - 44 * NULLIF ( 46, COUNT ( * ) * + 22 ) - + 43 * - 68
----
900

query I rowsort
SELECT 25 * 62 * 8 AS col1
----
12400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8386
SELECT ALL + 13 * + 12 * CAST( NULL AS SIGNED ) - - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-8386
SELECT ALL + 13 * + 12 * CAST ( NULL AS INTEGER ) - - 60
----
NULL

query I rowsort
SELECT + 90 + + - 47 AS col1
----
43

query I rowsort
SELECT ALL - 96 - - 88 - + 41
----
-49

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

query I rowsort
SELECT ALL - - ( + 85 ) AS col2
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8391
SELECT DISTINCT - CAST( - 28 AS SIGNED ) * ( + 42 * + 18 ) AS col0
----
21168

skipif mysql # not compatible
query I rowsort label-8391
SELECT DISTINCT - CAST ( - 28 AS INTEGER ) * ( + 42 * + 18 ) AS col0
----
21168

query I rowsort
SELECT + 47 * - + 66
----
-3102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8393
SELECT 52 * + 59 + - 71 + + 27 DIV - NULLIF ( - 43, - 39 DIV COALESCE ( - 33, + 77, 39 - COUNT( * ) * COUNT( * ) ) ) AS col2
----
2997

skipif mysql # not compatible
query I rowsort label-8393
SELECT 52 * + 59 + - 71 + + 27 / - NULLIF ( - 43, - 39 / COALESCE ( - 33, + 77, 39 - COUNT ( * ) * COUNT ( * ) ) ) AS col2
----
2997

onlyif mysql # DIV for integer division: 
query I rowsort label-8394
SELECT 10 DIV 6
----
1

skipif mysql # not compatible
query I rowsort label-8394
SELECT 10 / 6
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT DISTINCT + COUNT( + + 50 )
----
1

skipif mysql # not compatible
query I rowsort label-8395
SELECT DISTINCT + COUNT ( + + 50 )
----
1

query I rowsort
SELECT + - 83 * + 62 * 43 + 42
----
-221236

onlyif mysql # DIV for integer division: 
query I rowsort label-8397
SELECT ALL - - 17 DIV 72
----
0

skipif mysql # not compatible
query I rowsort label-8397
SELECT ALL - - 17 / 72
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8398
SELECT ( 10 ) DIV + 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8398
SELECT ( 10 ) / + 85 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8400
SELECT ALL COUNT( * ) * - ( + 33 ) * 2
----
-66

skipif mysql # not compatible
query I rowsort label-8400
SELECT ALL COUNT ( * ) * - ( + 33 ) * 2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8401
SELECT DISTINCT COUNT( + 80 )
----
1

skipif mysql # not compatible
query I rowsort label-8401
SELECT DISTINCT COUNT ( + 80 )
----
1

query I rowsort
SELECT DISTINCT - - 12 + ( + 88 )
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8403
SELECT - 86 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8403
SELECT - 86 - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 68 + - - 33 + + 94 AS col1
----
59

query I rowsort
SELECT 55 - - 40 AS col2
----
95

query I rowsort
SELECT ALL 87 + - COALESCE ( + 58, - ( ( 14 ) ) ) * - ( 25 )
----
1537

onlyif mysql # aggregate syntax: 
query I rowsort label-8407
SELECT DISTINCT + 5 + - COUNT( * ) + - - ( 49 ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-8407
SELECT DISTINCT + 5 + - COUNT ( * ) + - - ( 49 ) AS col0
----
53

query I rowsort
SELECT DISTINCT - 50 + 68
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8409
SELECT 0 - + SUM( ALL + 56 ) + + 50 * + COUNT( * ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-8409
SELECT 0 - + SUM ( ALL + 56 ) + + 50 * + COUNT ( * ) AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8410
SELECT 71 * + + MAX( DISTINCT 55 )
----
3905

skipif mysql # not compatible
query I rowsort label-8410
SELECT 71 * + + MAX ( DISTINCT 55 )
----
3905

onlyif mysql # DIV for integer division: 
query I rowsort label-8411
SELECT 77 DIV + 3 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-8411
SELECT 77 / + 3 AS col1
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8412
SELECT + 90 AS col0, ( - 58 ) + - 53 / - CAST( NULL AS SIGNED )
----
90
NULL

skipif mysql # not compatible
query II rowsort label-8412
SELECT + 90 AS col0, ( - 58 ) + - 53 / - CAST ( NULL AS INTEGER )
----
90
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8413
SELECT ALL - CAST( + - 18 AS SIGNED )
----
18

skipif mysql # not compatible
query I rowsort label-8413
SELECT ALL - CAST ( + - 18 AS INTEGER )
----
18

query I rowsort
SELECT DISTINCT - 6 * - 72 AS col1
----
432

query I rowsort
SELECT 90 + + 2 AS col1
----
92

query I rowsort
SELECT 25 * - 27
----
-675

onlyif mysql # aggregate syntax: 
query I rowsort label-8417
SELECT ALL + COUNT( ALL - 34 ) - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8417
SELECT ALL + COUNT ( ALL - 34 ) - COUNT ( * )
----
0

query I rowsort
SELECT ALL - 33 * + - 31
----
1023

query II rowsort
SELECT ALL - 41, - 42 AS col1
----
-41
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT DISTINCT + COUNT( * ) * - 3 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-8420
SELECT DISTINCT + COUNT ( * ) * - 3 AS col1
----
-3

query I rowsort
SELECT DISTINCT - 43 * + 88
----
-3784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8422
SELECT ALL + 88 - + CAST( - 16 AS SIGNED )
----
104

skipif mysql # not compatible
query I rowsort label-8422
SELECT ALL + 88 - + CAST ( - 16 AS INTEGER )
----
104

query I rowsort
SELECT ALL - 67 * - - 87 + + 70
----
-5759

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

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

query II rowsort
SELECT + + 2 AS col0, + 83
----
2
83

query I rowsort
SELECT - NULLIF ( 79, - 16 + ( + 53 + 31 ) * - 56 ) - 21 AS col1
----
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8427
SELECT ALL - - CAST( + CASE + 52 WHEN + ( + 27 ) + - COUNT( * ) THEN COUNT( * ) ELSE 86 END AS SIGNED ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-8427
SELECT ALL - - CAST ( + CASE + 52 WHEN + ( + 27 ) + - COUNT ( * ) THEN COUNT ( * ) ELSE 86 END AS INTEGER ) AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8428
SELECT ( - - COALESCE ( + MIN( 60 ), 0 * 21 ) ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-8428
SELECT ( - - COALESCE ( + MIN ( 60 ), 0 * 21 ) ) AS col2
----
60

query I rowsort
SELECT 94 * - 87 AS col0
----
-8178

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

query I rowsort
SELECT ALL - 51 * 69 col1
----
-3519

onlyif mysql # aggregate syntax: 
query I rowsort label-8432
SELECT COUNT( - 33 ) * NULLIF ( - COUNT( * ), - 91 ) + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8432
SELECT COUNT ( - 33 ) * NULLIF ( - COUNT ( * ), - 91 ) + COUNT ( * ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8433
SELECT ALL - - 98 + + 46 + + + 26 DIV - 17
----
143

skipif mysql # not compatible
query I rowsort label-8433
SELECT ALL - - 98 + + 46 + + + 26 / - 17
----
143

query I rowsort
SELECT 5 - + 73
----
-68

query I rowsort
SELECT DISTINCT 29 * - 9 * + + CASE - 85 WHEN 97 * - 54 THEN + 18 + 89 * - 34 ELSE NULL END * - 22 + 69 AS col2
----
NULL

query I rowsort
SELECT ALL 34 + 24
----
58

query I rowsort
SELECT - 3 - 4 * + - 68 AS col2
----
269

query I rowsort
SELECT 53 + 58 + - 17 - 93 * ( + 26 * 0 )
----
94

query I rowsort
SELECT + 6 * - 66 * + 86 + - 8
----
-34064

onlyif mysql # aggregate syntax: 
query I rowsort label-8440
SELECT DISTINCT - ( - COUNT( * ) ) + 49
----
50

skipif mysql # not compatible
query I rowsort label-8440
SELECT DISTINCT - ( - COUNT ( * ) ) + 49
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8441
SELECT ALL COUNT( * ) + 43 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-8441
SELECT ALL COUNT ( * ) + 43 AS col2
----
44

query I rowsort
SELECT 76 + - 53
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8443
SELECT + 53 - + - ( - + COALESCE ( - COUNT( * ), ( - COUNT( * ) ) * 78 + - 92 ) ) + COALESCE ( 10, 50, 34 + + 23 ) * 53 AS col2
----
584

skipif mysql # not compatible
query I rowsort label-8443
SELECT + 53 - + - ( - + COALESCE ( - COUNT ( * ), ( - COUNT ( * ) ) * 78 + - 92 ) ) + COALESCE ( 10, 50, 34 + + 23 ) * 53 AS col2
----
584

onlyif mysql # DIV for integer division: 
query I rowsort label-8444
SELECT ALL - 8 DIV - 51 * - 53 * 24
----
0

skipif mysql # not compatible
query I rowsort label-8444
SELECT ALL - 8 / - 51 * - 53 * 24
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8445
SELECT ALL 17 + 32 * ( - 69 ) * COUNT( * ) AS col0
----
-2191

skipif mysql # not compatible
query I rowsort label-8445
SELECT ALL 17 + 32 * ( - 69 ) * COUNT ( * ) AS col0
----
-2191

query II rowsort
SELECT ALL 88 + - 68, + 66 AS col2
----
20
66

query I rowsort
SELECT DISTINCT 47 + - 48 * + 91
----
-4321

query I rowsort
SELECT 90 + - 42 + - NULLIF ( - 70, 46 )
----
118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8449
SELECT 0 + - NULLIF ( + 66, - CAST( NULL AS SIGNED ) * 27 ) + + 48 * ( 49 )
----
2286

skipif mysql # not compatible
query I rowsort label-8449
SELECT 0 + - NULLIF ( + 66, - CAST ( NULL AS INTEGER ) * 27 ) + + 48 * ( 49 )
----
2286

query I rowsort
SELECT + 40 * 60
----
2400

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8452
SELECT + COUNT( ALL ( + + 63 ) ) + 15 + SUM( 74 ) DIV 80 * 54 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-8452
SELECT + COUNT ( ALL ( + + 63 ) ) + 15 + SUM ( 74 ) / 80 * 54 AS col1
----
16

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

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

query I rowsort
SELECT - 10 * + 58 AS col0
----
-580

query II rowsort
SELECT ALL 15 * 19, 89 + - 55 col2
----
285
34

query I rowsort
SELECT NULLIF ( - + 92, + - 72 ) AS col0
----
-92

query I rowsort
SELECT - 3 + + 65 * - 47 col0
----
-3058

onlyif mysql # DIV for integer division: 
query II rowsort label-8458
SELECT - 62 DIV 32 AS col2, + 45
----
-1
45

skipif mysql # not compatible
query II rowsort label-8458
SELECT - 62 / 32 AS col2, + 45
----
-1
45

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8460
SELECT + CASE 68 WHEN - 3 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE + 5 END * + 69
----
345

skipif mysql # not compatible
query I rowsort label-8460
SELECT + CASE 68 WHEN - 3 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE + 5 END * + 69
----
345

query I rowsort
SELECT - 48 * + + 76 + - COALESCE ( - - 54, 5 * 75 )
----
-3702

onlyif mysql # DIV for integer division: 
query I rowsort label-8462
SELECT DISTINCT + 63 DIV 25
----
2

skipif mysql # not compatible
query I rowsort label-8462
SELECT DISTINCT + 63 / 25
----
2

query I rowsort
SELECT - - 25 + - - 20
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8464
SELECT + - 74 DIV + 35 + + 96 - + COUNT( * ) + COUNT( * ) DIV - 28 + 78
----
171

skipif mysql # not compatible
query I rowsort label-8464
SELECT + - 74 / + 35 + + 96 - + COUNT ( * ) + COUNT ( * ) / - 28 + 78
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT DISTINCT + COUNT( * ) * SUM( NULLIF ( + + 43, NULLIF ( 53, 12 + - 69 ) ) )
----
43

skipif mysql # not compatible
query I rowsort label-8465
SELECT DISTINCT + COUNT ( * ) * SUM ( NULLIF ( + + 43, NULLIF ( 53, 12 + - 69 ) ) )
----
43

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8466
SELECT ALL - 67 * + 98 * - - AVG ( + + 7 ) + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8466
SELECT ALL - 67 * + 98 * - - AVG ( + + 7 ) + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8467
SELECT - - 75 DIV - - 8 col0
----
9

skipif mysql # not compatible
query I rowsort label-8467
SELECT - - 75 / - - 8 col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8468
SELECT ALL - SUM( DISTINCT - 26 ) * + - 49 * 79 + + 16 AS col1
----
-100630

skipif mysql # not compatible
query I rowsort label-8468
SELECT ALL - SUM ( DISTINCT - 26 ) * + - 49 * 79 + + 16 AS col1
----
-100630

onlyif mysql # aggregate syntax: 
query I rowsort label-8469
SELECT DISTINCT + 24 * - MIN( + 23 ) + MAX( DISTINCT + 14 ) + - ( + 6 ) AS col2
----
-544

skipif mysql # not compatible
query I rowsort label-8469
SELECT DISTINCT + 24 * - MIN ( + 23 ) + MAX ( DISTINCT + 14 ) + - ( + 6 ) AS col2
----
-544

query I rowsort
SELECT ALL + - 33 * - - 38 + - 36 AS col2
----
-1290

query I rowsort
SELECT - 88 + - 6 * + 37 AS col2
----
-310

onlyif mysql # aggregate syntax: 
query I rowsort label-8472
SELECT ALL + + COUNT( * ) * - - 3 * COUNT( * ) + + + 28 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-8472
SELECT ALL + + COUNT ( * ) * - - 3 * COUNT ( * ) + + + 28 AS col0
----
31

query I rowsort
SELECT DISTINCT - + 7 * - + 77 + - 98 + - - 51 * - 95 AS col0
----
-4404

onlyif mysql # aggregate syntax: 
query I rowsort label-8474
SELECT + CASE + - 7 WHEN + NULLIF ( - 95, - 1 * ( + 78 ) ) + SUM( ALL 70 ) THEN AVG ( DISTINCT + ( 61 ) ) / - MAX( ALL 91 * - ( 43 ) + 42 ) WHEN - ( - COALESCE ( - 84, 93 ) ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8474
SELECT + CASE + - 7 WHEN + NULLIF ( - 95, - 1 * ( + 78 ) ) + SUM ( ALL 70 ) THEN AVG ( DISTINCT + ( 61 ) ) / - MAX ( ALL 91 * - ( 43 ) + 42 ) WHEN - ( - COALESCE ( - 84, 93 ) ) THEN NULL ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT + + 34 * - 6, ( - 85 ) + 47 AS col2
----
-204
-38

query I rowsort
SELECT - - COALESCE ( + 38, - 84, 85 * - 10 ) * - 36 AS col1
----
-1368

query I rowsort
SELECT - ( + 64 ) col0
----
-64

query I rowsort
SELECT DISTINCT + ( - + CASE + 48 WHEN + - 74 * + 35 THEN - 50 ELSE NULL END )
----
NULL

query I rowsort
SELECT ALL - 79 * + 96 AS col1
----
-7584

query I rowsort
SELECT ALL + 68 + - 35 AS col2
----
33

query I rowsort
SELECT DISTINCT + 46 * COALESCE ( + 34, 13 - 82 )
----
1564

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8482
SELECT DISTINCT + 50 + 6 DIV - + CAST( + AVG ( + 79 ) AS SIGNED )
----
50

skipif mysql # not compatible
query I rowsort label-8482
SELECT DISTINCT + 50 + 6 / - + CAST ( + AVG ( + 79 ) AS INTEGER )
----
50

query I rowsort
SELECT ALL ( + 72 ) col0
----
72

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8484
SELECT + ( + 28 ) * - 5 + - 13 + 52 + CAST( 41 AS SIGNED ) DIV 81 AS col2
----
-101

skipif mysql # not compatible
query I rowsort label-8484
SELECT + ( + 28 ) * - 5 + - 13 + 52 + CAST ( 41 AS INTEGER ) / 81 AS col2
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT ALL 82 * + COALESCE ( - 58, - MIN( DISTINCT - 94 ) * - 88 ) * ( + 64 ) AS col2
----
-304384

skipif mysql # not compatible
query I rowsort label-8485
SELECT ALL 82 * + COALESCE ( - 58, - MIN ( DISTINCT - 94 ) * - 88 ) * ( + 64 ) AS col2
----
-304384

query I rowsort
SELECT + ( + 1 ) + - 9 * + + 47
----
-422

query I rowsort
SELECT + 46 * 72 AS col1
----
3312

onlyif mysql # aggregate syntax: 
query I rowsort label-8488
SELECT + COUNT( * ) - ( - 2 ) + - - 28 + - - 15 col1
----
46

skipif mysql # not compatible
query I rowsort label-8488
SELECT + COUNT ( * ) - ( - 2 ) + - - 28 + - - 15 col1
----
46

query I rowsort
SELECT + 22 * + + 12 * - 74 AS col0
----
-19536

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8490
SELECT + 10 DIV + COALESCE ( 19, + - COUNT( * ) * - + 66 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8490
SELECT + 10 / + COALESCE ( 19, + - COUNT ( * ) * - + 66 ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8491
SELECT ALL ( + 39 ) DIV + 88 - + COUNT( + - ( 29 ) ) - 39 * COUNT( * ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-8491
SELECT ALL ( + 39 ) / + 88 - + COUNT ( + - ( 29 ) ) - 39 * COUNT ( * ) AS col0
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-8492
SELECT DISTINCT COALESCE ( + + 63, 17 * - 94 ) DIV + + 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8492
SELECT DISTINCT COALESCE ( + + 63, 17 * - 94 ) / + + 68 AS col0
----
0

query I rowsort
SELECT + 62 - + 42 AS col0
----
20

query II rowsort
SELECT 59, 79 AS col1
----
59
79

query I rowsort
SELECT - 44 * + - 32 - + 51 col0
----
1357

query I rowsort
SELECT + 50 * + 82 col0
----
4100

query I rowsort
SELECT - 56 * - 97 * - 90
----
-488880

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8498
SELECT 7 DIV - MIN( 22 ) + - 84
----
-84

skipif mysql # not compatible
query I rowsort label-8498
SELECT 7 / - MIN ( 22 ) + - 84
----
-84

query I rowsort
SELECT ALL + 84 * 48 AS col0
----
4032

query I rowsort
SELECT + 36 * - 66 col1
----
-2376

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8501
SELECT ALL - 13 DIV + - 42 + + - NULLIF ( + ( + 59 ), - COUNT( * ) ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-8501
SELECT ALL - 13 / + - 42 + + - NULLIF ( + ( + 59 ), - COUNT ( * ) ) AS col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8502
SELECT ( + MIN( ALL + 16 ) ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-8502
SELECT ( + MIN ( ALL + 16 ) ) AS col0
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8503
SELECT ALL + 48 DIV - 90 + 79 + + COUNT( * ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-8503
SELECT ALL + 48 / - 90 + 79 + + COUNT ( * ) AS col1
----
80

query I rowsort
SELECT - - ( - + 99 ) * - 77
----
7623

query I rowsort
SELECT ALL + 19 * + 1 * + - 75 + 51
----
-1374

query I rowsort
SELECT + - 27 - - 93
----
66

query I rowsort
SELECT - ( + COALESCE ( 54, 75, 24 ) ) AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8508
SELECT ALL COUNT( * ) * - 14 + + 56 + NULLIF ( + CASE ( - COUNT( * ) ) WHEN NULLIF ( 19, - 88 ) - + ( - 4 ) THEN SUM( 86 ) + - 44 ELSE NULL END, 62 + 95 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8508
SELECT ALL COUNT ( * ) * - 14 + + 56 + NULLIF ( + CASE ( - COUNT ( * ) ) WHEN NULLIF ( 19, - 88 ) - + ( - 4 ) THEN SUM ( 86 ) + - 44 ELSE NULL END, 62 + 95 )
----
NULL

query I rowsort
SELECT - - 55 * - 56 * ( - + 37 ) + + + 49
----
114009

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8510
SELECT - 8 * - COALESCE ( COUNT( * ), + MAX( + 34 ) DIV 22 )
----
8

skipif mysql # not compatible
query I rowsort label-8510
SELECT - 8 * - COALESCE ( COUNT ( * ), + MAX ( + 34 ) / 22 )
----
8

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

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

query I rowsort
SELECT 77 * + 35 + - COALESCE ( + - 44, - 61 ) AS col2
----
2739

query II rowsort
SELECT ALL + - 91 AS col0, 48 * - + 60
----
-91
-2880

onlyif mysql # aggregate syntax: 
query I rowsort label-8514
SELECT ALL COUNT( * ) * - SUM( 74 ) + - 73 * 77
----
-5695

skipif mysql # not compatible
query I rowsort label-8514
SELECT ALL COUNT ( * ) * - SUM ( 74 ) + - 73 * 77
----
-5695

query I rowsort
SELECT ALL + + 26 * + 5
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT - 76 - - COUNT( * ) col1
----
-75

skipif mysql # not compatible
query I rowsort label-8516
SELECT - 76 - - COUNT ( * ) col1
----
-75

query I rowsort
SELECT DISTINCT + 46 * 79 * + 91
----
330694

query I rowsort
SELECT COALESCE ( - - ( + 27 ), 73 ) AS col1
----
27

query I rowsort
SELECT ALL 85 * + + 73 * + 30 - - 67 AS col2
----
186217

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8520
SELECT - CASE + 55 WHEN 82 THEN + 30 WHEN + 66 THEN - - 75 END * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8520
SELECT - CASE + 55 WHEN 82 THEN + 30 WHEN + 66 THEN - - 75 END * CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

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

query I rowsort
SELECT 80 + - 88
----
-8

query II rowsort
SELECT 96 * + 74, - 71 col1
----
7104
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8524
SELECT ALL + COALESCE ( + COUNT( * ), + 76 + - - 62 ) DIV 46 col2
----
0

skipif mysql # not compatible
query I rowsort label-8524
SELECT ALL + COALESCE ( + COUNT ( * ), + 76 + - - 62 ) / 46 col2
----
0

query II rowsort
SELECT DISTINCT 40 AS col1, - 53 + - 85 - - 63 * - 37 * 24 col1
----
40
-56082

query II rowsort
SELECT - 44 AS col2, - 95 AS col2
----
-44
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-8527
SELECT ( - 95 ) + - ( + 47 ) AS col2, COUNT( * )
----
-142
1

skipif mysql # not compatible
query II rowsort label-8527
SELECT ( - 95 ) + - ( + 47 ) AS col2, COUNT ( * )
----
-142
1

query II rowsort
SELECT 37 AS col1, + 40 * + + 15 + - + ( + 77 )
----
37
523

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT ALL COUNT( * ) + - + 31
----
-30

skipif mysql # not compatible
query I rowsort label-8529
SELECT ALL COUNT ( * ) + - + 31
----
-30

query II rowsort
SELECT DISTINCT 4 AS col1, 98 AS col0
----
4
98

query I rowsort
SELECT 21 + - 40 AS col0
----
-19

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8532
SELECT 24 * 88 AS col0, - CAST( NULL AS DECIMAL ) AS col2
----
2112
NULL

skipif mysql # not compatible
query II rowsort label-8532
SELECT 24 * 88 AS col0, - CAST ( NULL AS REAL ) AS col2
----
2112
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8533
SELECT ALL 9 AS col1, - COUNT( * ) + 69 * - 76
----
9
-5245

skipif mysql # not compatible
query II rowsort label-8533
SELECT ALL 9 AS col1, - COUNT ( * ) + 69 * - 76
----
9
-5245

query I rowsort
SELECT ALL - + 66 + 80 AS col2
----
14

query I rowsort
SELECT ALL + 97 + 66
----
163

query I rowsort
SELECT ALL - COALESCE ( 16, - - 56 + - 96 + ( ( 79 ) ) * + 54, 16 + 27 ) + 72
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8537
SELECT - 62 DIV 1 - + COUNT( * ) + - 18 + 64 + - - MIN( DISTINCT 50 ) * 65 DIV + 73 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-8537
SELECT - 62 / 1 - + COUNT ( * ) + - 18 + 64 + - - MIN ( DISTINCT 50 ) * 65 / + 73 AS col0
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8538
SELECT DISTINCT CAST( NULL AS SIGNED ) + NULLIF ( + 98, - COUNT( DISTINCT + CAST( + - 3 AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8538
SELECT DISTINCT CAST ( NULL AS INTEGER ) + NULLIF ( + 98, - COUNT ( DISTINCT + CAST ( + - 3 AS INTEGER ) ) )
----
NULL

query II rowsort
SELECT + 19 col0, 4 + ( - 11 )
----
19
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8540
SELECT COUNT( + ( - 58 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8540
SELECT COUNT ( + ( - 58 ) ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8541
SELECT - 23 + 34 DIV ( - + COALESCE ( - 85, 80 ) ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-8541
SELECT - 23 + 34 / ( - + COALESCE ( - 85, 80 ) ) AS col1
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8542
SELECT CAST( CASE - AVG ( 65 ) WHEN 19 * + + 1 - + 91 THEN 47 END AS SIGNED ) * + CASE - 14 - - 31 WHEN 17 THEN NULL WHEN COUNT( * ) * + ( + 1 * 44 ) + - 72 THEN - 59 * 51 ELSE 78 END - - ( 56 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8542
SELECT CAST ( CASE - AVG ( 65 ) WHEN 19 * + + 1 - + 91 THEN 47 END AS INTEGER ) * + CASE - 14 - - 31 WHEN 17 THEN NULL WHEN COUNT ( * ) * + ( + 1 * 44 ) + - 72 THEN - 59 * 51 ELSE 78 END - - ( 56 ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT - + 62 col1, - COALESCE ( + - 49, 50 ) + + - 36 col1
----
-62
13

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

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

query II rowsort
SELECT - 76 AS col2, 36 col1
----
-76
36

query I rowsort
SELECT ALL - 21 - + 4 * - + 60
----
219

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8547
SELECT ALL - CAST( - COALESCE ( + + 26, + COUNT( * ) + COUNT( * ), + 27 * 63 ) AS SIGNED ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-8547
SELECT ALL - CAST ( - COALESCE ( + + 26, + COUNT ( * ) + COUNT ( * ), + 27 * 63 ) AS INTEGER ) AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8548
SELECT 40 * - COUNT( * ) * + COUNT( * ) / - - 30 + - 84 + - - CASE 69 WHEN + 12 THEN 16 WHEN 84 THEN CASE - COUNT( * ) WHEN 88 / 59 THEN COUNT( * ) * + COUNT( * ) ELSE 74 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-8548
SELECT 40 * - COUNT ( * ) * + COUNT ( * ) / - - 30 + - 84 + - - CASE 69 WHEN + 12 THEN 16 WHEN 84 THEN CASE - COUNT ( * ) WHEN 88 / 59 THEN COUNT ( * ) * + COUNT ( * ) ELSE 74 END END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8549
SELECT 97 + COUNT( * ) DIV 3 col1
----
97

skipif mysql # not compatible
query I rowsort label-8549
SELECT 97 + COUNT ( * ) / 3 col1
----
97

query I rowsort
SELECT 19 * 78 AS col2
----
1482

query I rowsort
SELECT ALL - 78 * 88 * 68 AS col0
----
-466752

onlyif mysql # DIV for integer division: 
query I rowsort label-8552
SELECT ALL 23 DIV 18 col1
----
1

skipif mysql # not compatible
query I rowsort label-8552
SELECT ALL 23 / 18 col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8553
SELECT 96 DIV - 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8553
SELECT 96 / - 97 AS col1
----
0

query I rowsort
SELECT 6 * - 98 AS col1
----
-588

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8555
SELECT DISTINCT + 15 * + - COUNT( * ) AS col0, - 75 + 12 + 62 + + ( 13 ) DIV 53 * + COUNT( * )
----
-15
-1

skipif mysql # not compatible
query II rowsort label-8555
SELECT DISTINCT + 15 * + - COUNT ( * ) AS col0, - 75 + 12 + 62 + + ( 13 ) / 53 * + COUNT ( * )
----
-15
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8556
SELECT 15 - COUNT( * ), + COUNT( - 33 ) * - - 24 col2
----
14
24

skipif mysql # not compatible
query II rowsort label-8556
SELECT 15 - COUNT ( * ), + COUNT ( - 33 ) * - - 24 col2
----
14
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8557
SELECT 21 * COUNT( * ) * - 51 AS col0
----
-1071

skipif mysql # not compatible
query I rowsort label-8557
SELECT 21 * COUNT ( * ) * - 51 AS col0
----
-1071

query II rowsort
SELECT ALL + 43 + - 91 AS col1, - 84
----
-48
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8559
SELECT DISTINCT - CAST( + COUNT( * ) AS SIGNED ) + 22
----
21

skipif mysql # not compatible
query I rowsort label-8559
SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ) + 22
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8560
SELECT ALL - SUM( + 30 ) + + 18 - 70
----
-82

skipif mysql # not compatible
query I rowsort label-8560
SELECT ALL - SUM ( + 30 ) + + 18 - 70
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8561
SELECT DISTINCT 66 * - 39 DIV + COUNT( * ) AS col0
----
-2574

skipif mysql # not compatible
query I rowsort label-8561
SELECT DISTINCT 66 * - 39 / + COUNT ( * ) AS col0
----
-2574

onlyif mysql # aggregate syntax: 
query I rowsort label-8562
SELECT DISTINCT - + 89 + - - 51 * + COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-8562
SELECT DISTINCT - + 89 + - - 51 * + COUNT ( * )
----
-38

query I rowsort
SELECT ALL 38 * 5 * + COALESCE ( - 32, - + 32 ) + - + 50
----
-6130

query I rowsort
SELECT ALL 76 * - + 40 + + - 81
----
-3121

query I rowsort
SELECT DISTINCT - - 13 * 76 * - 34
----
-33592

onlyif mysql # aggregate syntax: 
query I rowsort label-8566
SELECT + - NULLIF ( ( SUM( - + 34 ) ), AVG ( - 19 ) )
----
34

skipif mysql # not compatible
query I rowsort label-8566
SELECT + - NULLIF ( ( SUM ( - + 34 ) ), AVG ( - 19 ) )
----
34

query I rowsort
SELECT - 11 + - 38 * 38 AS col1
----
-1455

query I rowsort
SELECT 64 * - + ( 12 ) + - + 8
----
-776

query I rowsort
SELECT ALL + - ( + 96 ) * - - ( - 90 ) AS col1
----
8640

query I rowsort
SELECT DISTINCT - - ( ( 23 ) )
----
23

query I rowsort
SELECT ALL + 18 * - ( + - 75 ) * + + 87 + + - 61 * 16 - - + ( - 65 ) AS col0
----
116409

onlyif mysql # aggregate syntax: 
query I rowsort label-8572
SELECT 43 * - ( - COUNT( * ) ) - - 88 * 90 AS col0
----
7963

skipif mysql # not compatible
query I rowsort label-8572
SELECT 43 * - ( - COUNT ( * ) ) - - 88 * 90 AS col0
----
7963

onlyif mysql # DIV for integer division: 
query I rowsort label-8573
SELECT 74 DIV + + 52 col1
----
1

skipif mysql # not compatible
query I rowsort label-8573
SELECT 74 / + + 52 col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8574
SELECT + + ( COALESCE ( - 33, + 56 * + + CASE + - COUNT( * ) WHEN + 47 * CAST( NULL AS SIGNED ) THEN - 30 + 25 ELSE NULL END ) )
----
-33

skipif mysql # not compatible
query I rowsort label-8574
SELECT + + ( COALESCE ( - 33, + 56 * + + CASE + - COUNT ( * ) WHEN + 47 * CAST ( NULL AS INTEGER ) THEN - 30 + 25 ELSE NULL END ) )
----
-33

query I rowsort
SELECT 7 * + 79 * - - 55 + + 61 + ( + 84 ) AS col1
----
30560

onlyif mysql # aggregate syntax: 
query I rowsort label-8576
SELECT 22 + + + 27 + - + MIN( + ( - 54 ) ) - - 78 + - COUNT( * )
----
180

skipif mysql # not compatible
query I rowsort label-8576
SELECT 22 + + + 27 + - + MIN ( + ( - 54 ) ) - - 78 + - COUNT ( * )
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-8577
SELECT + 27 * - + COUNT( * ) - - 37 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-8577
SELECT + 27 * - + COUNT ( * ) - - 37 AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8578
SELECT ALL 53 * COUNT( * ) * - COUNT( * ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-8578
SELECT ALL 53 * COUNT ( * ) * - COUNT ( * ) AS col1
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-8579
SELECT + 64 * - + NULLIF ( 97, - - 91 * - 10 * 0 * 82 ) + - - 15 DIV ( 37 )
----
-6208

skipif mysql # not compatible
query I rowsort label-8579
SELECT + 64 * - + NULLIF ( 97, - - 91 * - 10 * 0 * 82 ) + - - 15 / ( 37 )
----
-6208

query I rowsort
SELECT DISTINCT 82 * - 34 AS col1
----
-2788

query I rowsort
SELECT + 93 + - 90 + - + 50
----
-47

onlyif mysql # DIV for integer division: 
query II rowsort label-8582
SELECT ALL + 71, 39 DIV - 5 col2
----
71
-7

skipif mysql # not compatible
query II rowsort label-8582
SELECT ALL + 71, 39 / - 5 col2
----
71
-7

query I rowsort
SELECT ALL 17 * + 39 AS col2
----
663

query II rowsort
SELECT ALL + 45 AS col0, + 36
----
45
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8585
SELECT + 87 - - CAST( NULL AS SIGNED ) + AVG ( ALL - + 78 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8585
SELECT + 87 - - CAST ( NULL AS INTEGER ) + AVG ( ALL - + 78 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8586
SELECT ALL - NULLIF ( - - 31, - COUNT( * ) ) + 41 * + COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-8586
SELECT ALL - NULLIF ( - - 31, - COUNT ( * ) ) + 41 * + COUNT ( * )
----
10

query I rowsort
SELECT + 63 + - 51
----
12

query II rowsort
SELECT ALL 30 col0, 4 + - - 19 * + 26
----
30
498

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8589
SELECT - 81 DIV COUNT( DISTINCT - 34 ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-8589
SELECT - 81 / COUNT ( DISTINCT - 34 ) AS col1
----
-81

query I rowsort
SELECT ALL ( - 67 ) + + + 82 AS col2
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8591
SELECT + 51 + - COUNT( * ) - 0 * + ( 57 ) DIV + - 85 + - - ( 84 )
----
134

skipif mysql # not compatible
query I rowsort label-8591
SELECT + 51 + - COUNT ( * ) - 0 * + ( 57 ) / + - 85 + - - ( 84 )
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT + 27 + + 51 + - COALESCE ( 6, + NULLIF ( - - 38, + + COUNT( * ) ) )
----
72

skipif mysql # not compatible
query I rowsort label-8592
SELECT + 27 + + 51 + - COALESCE ( 6, + NULLIF ( - - 38, + + COUNT ( * ) ) )
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-8593
SELECT + 45 DIV 70
----
0

skipif mysql # not compatible
query I rowsort label-8593
SELECT + 45 / 70
----
0

query I rowsort
SELECT + 3 + - 10 AS col2
----
-7

query I rowsort
SELECT ALL ( - 36 ) + + - 3 + 65 AS col2
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8596
SELECT DISTINCT MIN( - NULLIF ( + 21, + + 14 ) ) DIV 9
----
-2

skipif mysql # not compatible
query I rowsort label-8596
SELECT DISTINCT MIN ( - NULLIF ( + 21, + + 14 ) ) / 9
----
-2

query I rowsort
SELECT + 80 + - CASE + 58 WHEN ( + + 31 ) + - - 74 THEN NULL WHEN 3 * 77 THEN 40 * + 65 WHEN - 52 THEN - 62 END * - 8
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8598
SELECT ALL + 12 + - + ( - CAST( NULL AS SIGNED ) ) AS col0, 76 * + + 52 AS col0
----
NULL
3952

skipif mysql # not compatible
query II rowsort label-8598
SELECT ALL + 12 + - + ( - CAST ( NULL AS INTEGER ) ) AS col0, 76 * + + 52 AS col0
----
NULL
3952

query I rowsort
SELECT DISTINCT - 57 * - 56
----
3192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8600
SELECT ALL 62 + - 55 / + 87 * 71 * COUNT( * ) * + 58 + + 46 * CAST( NULL AS SIGNED ) + - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-8600
SELECT ALL 62 + - 55 / + 87 * 71 * COUNT ( * ) * + 58 + + 46 * CAST ( NULL AS INTEGER ) + - 5
----
NULL

query I rowsort
SELECT - 73 + + - 26
----
-99

query I rowsort
SELECT - 29 + + - 11 AS col0
----
-40

query I rowsort
SELECT ALL - + 36 - 75 AS col2
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-8604
SELECT - + 65 + 89 - - COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-8604
SELECT - + 65 + 89 - - COUNT ( * )
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8605
SELECT - - 6 * - 16 * - + ( + + CAST( - NULLIF ( AVG ( DISTINCT - 53 ), - 30 ) AS SIGNED ) ) + + 14 col2
----
5102

skipif mysql # not compatible
query I rowsort label-8605
SELECT - - 6 * - 16 * - + ( + + CAST ( - NULLIF ( AVG ( DISTINCT - 53 ), - 30 ) AS INTEGER ) ) + + 14 col2
----
5102

query II rowsort
SELECT DISTINCT + 94 AS col1, 96
----
94
96

onlyif mysql # aggregate syntax: 
query II rowsort label-8607
SELECT DISTINCT + 71, + 35 + - 91 + - 70 + ( + - 69 ) * COUNT( * ) * + 94 * + 74 col2
----
71
-480090

skipif mysql # not compatible
query II rowsort label-8607
SELECT DISTINCT + 71, + 35 + - 91 + - 70 + ( + - 69 ) * COUNT ( * ) * + 94 * + 74 col2
----
71
-480090

query I rowsort
SELECT - 45 * + 53 + 70
----
-2315

onlyif mysql # aggregate syntax: 
query I rowsort label-8609
SELECT ALL 85 * - COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-8609
SELECT ALL 85 * - COUNT ( * )
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8610
SELECT - ( - 74 ) + - 36 * - ( - 4 ) * 65 / - 93 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8610
SELECT - ( - 74 ) + - 36 * - ( - 4 ) * 65 / - 93 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8611
SELECT - COUNT( * ) * + 90 + - 12 AS col0, 24 * - 2 * + - 73 + + 37
----
-102
3541

skipif mysql # not compatible
query II rowsort label-8611
SELECT - COUNT ( * ) * + 90 + - 12 AS col0, 24 * - 2 * + - 73 + + 37
----
-102
3541

onlyif mysql # DIV for integer division: 
query I rowsort label-8612
SELECT - 12 DIV + 12 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8612
SELECT - 12 / + 12 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8613
SELECT ALL + - COUNT( * ) * 69 + + 60 col2, 61 AS col1
----
-9
61

skipif mysql # not compatible
query II rowsort label-8613
SELECT ALL + - COUNT ( * ) * 69 + + 60 col2, 61 AS col1
----
-9
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8614
SELECT - SUM( - 6 ) col0
----
6

skipif mysql # not compatible
query I rowsort label-8614
SELECT - SUM ( - 6 ) col0
----
6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8615
SELECT - NULLIF ( + - 61, - COUNT( CAST( NULL AS DECIMAL ) ) ) * + - 61 + 77 + + 18 AS col0
----
-3626

skipif mysql # not compatible
query I rowsort label-8615
SELECT - NULLIF ( + - 61, - COUNT ( CAST ( NULL AS REAL ) ) ) * + - 61 + 77 + + 18 AS col0
----
-3626

query I rowsort
SELECT DISTINCT + 87 * + + 46 col1
----
4002

query I rowsort
SELECT DISTINCT - 33 * 14 AS col2
----
-462

query I rowsort
SELECT DISTINCT + NULLIF ( - 5, + 0 )
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8619
SELECT DISTINCT NULLIF ( + 63, + 91 DIV - - 45 + - - ( - - CASE + 15 WHEN + - 90 * COUNT( * ) * - 42 THEN NULL WHEN + 26 + CASE CAST( NULL AS SIGNED ) WHEN - 31 THEN 41 ELSE NULL END THEN - CAST( + 83 AS SIGNED ) + CAST( NULL AS SIGNED ) END ) ) DIV - COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-8619
SELECT DISTINCT NULLIF ( + 63, + 91 / - - 45 + - - ( - - CASE + 15 WHEN + - 90 * COUNT ( * ) * - 42 THEN NULL WHEN + 26 + CASE CAST ( NULL AS INTEGER ) WHEN - 31 THEN 41 ELSE NULL END THEN - CAST ( + 83 AS INTEGER ) + CAST ( NULL AS INTEGER ) END ) ) / - COUNT ( * )
----
-63

query I rowsort
SELECT DISTINCT 85 * + 51 + - - 86 AS col0
----
4421

onlyif mysql # DIV for integer division: 
query I rowsort label-8621
SELECT - ( + 16 ) DIV 43
----
0

skipif mysql # not compatible
query I rowsort label-8621
SELECT - ( + 16 ) / 43
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8622
SELECT + 63 + - 66 + + COALESCE ( 8, + COALESCE ( - 23, + ( 87 ) ), 32 * - 39 - - COUNT( * ) ) * - COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-8622
SELECT + 63 + - 66 + + COALESCE ( 8, + COALESCE ( - 23, + ( 87 ) ), 32 * - 39 - - COUNT ( * ) ) * - COUNT ( * )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT COALESCE ( - + 89, - - 23, - COUNT( * ) + - 75 )
----
-89

skipif mysql # not compatible
query I rowsort label-8623
SELECT COALESCE ( - + 89, - - 23, - COUNT ( * ) + - 75 )
----
-89

query I rowsort
SELECT + 40 * + 61 AS col0
----
2440

onlyif mysql # aggregate syntax: 
query I rowsort label-8625
SELECT + ( MIN( DISTINCT + 10 ) )
----
10

skipif mysql # not compatible
query I rowsort label-8625
SELECT + ( MIN ( DISTINCT + 10 ) )
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8626
SELECT ALL - 41 * + 34 / + 55 * - + ( MIN( + 69 ) ) + - 86 + 51 * 80 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8626
SELECT ALL - 41 * + 34 / + 55 * - + ( MIN ( + 69 ) ) + - 86 + 51 * 80 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8627
SELECT CASE + COALESCE ( - + 87, 13 ) WHEN + + 88 + + 9 THEN + 96 * + 26 WHEN - 59 / - COALESCE ( MIN( DISTINCT + 15 ), - COUNT( * ) ) + + 14 THEN 15 * 74 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8627
SELECT CASE + COALESCE ( - + 87, 13 ) WHEN + + 88 + + 9 THEN + 96 * + 26 WHEN - 59 / - COALESCE ( MIN ( DISTINCT + 15 ), - COUNT ( * ) ) + + 14 THEN 15 * 74 END AS col1
----
NULL

query I rowsort
SELECT + 96 * - + 71 * 24 + - + 27
----
-163611

onlyif mysql # aggregate syntax: 
query I rowsort label-8629
SELECT ALL + SUM( ALL + 41 ) * 37 + - 33 + 58 + ( - 88 ) * + 65 + 94 - 51 AS col1
----
-4135

skipif mysql # not compatible
query I rowsort label-8629
SELECT ALL + SUM ( ALL + 41 ) * 37 + - 33 + 58 + ( - 88 ) * + 65 + 94 - 51 AS col1
----
-4135

query I rowsort
SELECT + 4 * 27
----
108

onlyif mysql # aggregate syntax: 
query II rowsort label-8631
SELECT MIN( + - 90 ) AS col1, 8 + - + 87 + + 42
----
-90
-37

skipif mysql # not compatible
query II rowsort label-8631
SELECT MIN ( + - 90 ) AS col1, 8 + - + 87 + + 42
----
-90
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-8632
SELECT DISTINCT COUNT( * ) * - + 2 * - - 93 * 36 AS col0, + 56 AS col1
----
-6696
56

skipif mysql # not compatible
query II rowsort label-8632
SELECT DISTINCT COUNT ( * ) * - + 2 * - - 93 * 36 AS col0, + 56 AS col1
----
-6696
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8633
SELECT ALL CAST( NULL AS SIGNED ) * SUM( ALL + 84 ) + + + ( + - 6 ) * - 90 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8633
SELECT ALL CAST ( NULL AS INTEGER ) * SUM ( ALL + 84 ) + + + ( + - 6 ) * - 90 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT - ( + - NULLIF ( - - 88, + COUNT( * ) ) )
----
88

skipif mysql # not compatible
query I rowsort label-8634
SELECT - ( + - NULLIF ( - - 88, + COUNT ( * ) ) )
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8635
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - + 49 + - + CAST( + - MAX( - - ( + 59 ) ) AS SIGNED ) - + 65 * 92 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8635
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - + 49 + - + CAST ( + - MAX ( - - ( + 59 ) ) AS INTEGER ) - + 65 * 92 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8636
SELECT ALL 56 - + 23 + + 16 + - 46 DIV COUNT( * ) * - - 46 AS col2
----
-2067

skipif mysql # not compatible
query I rowsort label-8636
SELECT ALL 56 - + 23 + + 16 + - 46 / COUNT ( * ) * - - 46 AS col2
----
-2067

query I rowsort
SELECT + + 85 * - - 4 + ( 85 ) + - ( + + 88 ) AS col0
----
337

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8638
SELECT - + 80 * + COUNT( CAST( + 88 AS DECIMAL ) )
----
-80

skipif mysql # not compatible
query I rowsort label-8638
SELECT - + 80 * + COUNT ( CAST ( + 88 AS REAL ) )
----
-80

query I rowsort
SELECT DISTINCT + 41 * 82 + - - 4
----
3366

query I rowsort
SELECT + + 36 + + ( + 24 ) col2
----
60

query II rowsort
SELECT ALL + + 96 * + + 93 AS col1, - 17 AS col0
----
8928
-17

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8643
SELECT ALL 72 DIV - 8 + 42 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-8643
SELECT ALL 72 / - 8 + 42 AS col1
----
33

query I rowsort
SELECT ALL - 50 - - 99 AS col1
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-8645
SELECT ALL - + 84 * - 75 AS col2, - CASE + - 27 WHEN + CASE + ( - COUNT( + 17 ) ) WHEN + ( - COALESCE ( + 26, - COUNT( * ) / 65 ) ) + 55 THEN - 71 ELSE + 73 END + - 96 THEN NULL WHEN - ( 73 ) THEN NULL ELSE + 91 END AS col1
----
6300
-91

skipif mysql # not compatible
query II rowsort label-8645
SELECT ALL - + 84 * - 75 AS col2, - CASE + - 27 WHEN + CASE + ( - COUNT ( + 17 ) ) WHEN + ( - COALESCE ( + 26, - COUNT ( * ) / 65 ) ) + 55 THEN - 71 ELSE + 73 END + - 96 THEN NULL WHEN - ( 73 ) THEN NULL ELSE + 91 END AS col1
----
6300
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8646
SELECT DISTINCT MIN( ALL - - ( - 59 ) ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-8646
SELECT DISTINCT MIN ( ALL - - ( - 59 ) ) AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT + - 58 * + - CASE COUNT( * ) WHEN - 7 THEN - CASE + 39 WHEN + 33 * + 15 * - ( ( - ( - 32 ) ) ) THEN NULL WHEN - 48 * 30 THEN - 72 * COUNT( * ) END + + 37 END * + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-8647
SELECT + - 58 * + - CASE COUNT ( * ) WHEN - 7 THEN - CASE + 39 WHEN + 33 * + 15 * - ( ( - ( - 32 ) ) ) THEN NULL WHEN - 48 * 30 THEN - 72 * COUNT ( * ) END + + 37 END * + 81
----
NULL

query I rowsort
SELECT - - 53 * - 29
----
-1537

query I rowsort
SELECT ALL - 47 * + - 28 AS col1
----
1316

onlyif mysql # aggregate syntax: 
query I rowsort label-8650
SELECT + COUNT( + 39 ) * 70 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-8650
SELECT + COUNT ( + 39 ) * 70 AS col0
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8651
SELECT CAST( + + COUNT( * ) AS SIGNED ) * + 54 AS col2
----
54

skipif mysql # not compatible
query I rowsort label-8651
SELECT CAST ( + + COUNT ( * ) AS INTEGER ) * + 54 AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8652
SELECT 83 * MIN( ALL 43 ) AS col1
----
3569

skipif mysql # not compatible
query I rowsort label-8652
SELECT 83 * MIN ( ALL 43 ) AS col1
----
3569

onlyif mysql # aggregate syntax: 
query I rowsort label-8653
SELECT DISTINCT - COUNT( DISTINCT - ( - 12 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8653
SELECT DISTINCT - COUNT ( DISTINCT - ( - 12 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8654
SELECT ALL NULLIF ( - NULLIF ( + COUNT( * ), - - 32 ), + ( + + COUNT( * ) ) + ( - 53 ) + + 84 ) + + CAST( + ( - COUNT( * ) ) AS SIGNED )
----
-2

skipif mysql # not compatible
query I rowsort label-8654
SELECT ALL NULLIF ( - NULLIF ( + COUNT ( * ), - - 32 ), + ( + + COUNT ( * ) ) + ( - 53 ) + + 84 ) + + CAST ( + ( - COUNT ( * ) ) AS INTEGER )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8655
SELECT + NULLIF ( - COUNT( * ), + CASE + 23 WHEN - 3 THEN NULL ELSE - 39 + - + 17 - - 67 + - + ( ( - 78 ) ) * - ( - MAX( DISTINCT 42 ) ) END + 94 * 15 ) - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8655
SELECT + NULLIF ( - COUNT ( * ), + CASE + 23 WHEN - 3 THEN NULL ELSE - 39 + - + 17 - - 67 + - + ( ( - 78 ) ) * - ( - MAX ( DISTINCT 42 ) ) END + 94 * 15 ) - CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-8656
SELECT ALL - COUNT ( DISTINCT + - 7 ) AS col0
----
-1

query I rowsort
SELECT 90 + + 64 - - 29 + + 11 * + 91
----
1184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8658
SELECT DISTINCT - ( + - CASE + + 89 WHEN - 24 THEN NULL WHEN - + 92 * + - SUM( ( 88 ) ) * - 76 THEN + 85 * - 49 + CAST( NULL AS SIGNED ) * - 17 WHEN 8 / 61 - 41 THEN 52 * - 44 + - 59 END ) + 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8658
SELECT DISTINCT - ( + - CASE + + 89 WHEN - 24 THEN NULL WHEN - + 92 * + - SUM ( ( 88 ) ) * - 76 THEN + 85 * - 49 + CAST ( NULL AS INTEGER ) * - 17 WHEN 8 / 61 - 41 THEN 52 * - 44 + - 59 END ) + 57 AS col1
----
NULL

query I rowsort
SELECT 6 + 10 + 94
----
110

query I rowsort
SELECT 50 - 46
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8661
SELECT ALL CAST( NULL AS SIGNED ) + COUNT( * ) * + 94 AS col1, - 32 * + + 82
----
NULL
-2624

skipif mysql # not compatible
query II rowsort label-8661
SELECT ALL CAST ( NULL AS INTEGER ) + COUNT ( * ) * + 94 AS col1, - 32 * + + 82
----
NULL
-2624

query II rowsort
SELECT ALL - 99 AS col2, - 9 AS col0
----
-99
-9

query I rowsort
SELECT ALL - ( - + 67 ) + 51
----
118

onlyif mysql # DIV for integer division: 
query I rowsort label-8664
SELECT DISTINCT 51 DIV - - 37
----
1

skipif mysql # not compatible
query I rowsort label-8664
SELECT DISTINCT 51 / - - 37
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT CASE 86 WHEN + CASE - 30 WHEN + + 33 / - - 23 * - MAX( - + 62 ) + - 76 THEN NULL WHEN - 37 THEN 75 END THEN - 0 WHEN 19 + - 71 * + 60 THEN NULL ELSE NULL END + + 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8665
SELECT CASE 86 WHEN + CASE - 30 WHEN + + 33 / - - 23 * - MAX ( - + 62 ) + - 76 THEN NULL WHEN - 37 THEN 75 END THEN - 0 WHEN 19 + - 71 * + 60 THEN NULL ELSE NULL END + + 80 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8666
SELECT ALL - CAST( + - 4 AS SIGNED )
----
4

skipif mysql # not compatible
query I rowsort label-8666
SELECT ALL - CAST ( + - 4 AS INTEGER )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8667
SELECT SUM( + CAST( 41 AS SIGNED ) ) * + 99 / + CASE + 58 WHEN - 85 * - + 4 + - 27 / + 98 THEN 44 * CAST( NULL AS SIGNED ) ELSE 31 + - 75 * - 68 END + CASE + AVG ( DISTINCT + 15 ) WHEN 20 + MIN( 38 ) * + 43 THEN 5 WHEN 61 THEN + 4 * 90 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8667
SELECT SUM ( + CAST ( 41 AS INTEGER ) ) * + 99 / + CASE + 58 WHEN - 85 * - + 4 + - 27 / + 98 THEN 44 * CAST ( NULL AS INTEGER ) ELSE 31 + - 75 * - 68 END + CASE + AVG ( DISTINCT + 15 ) WHEN 20 + MIN ( 38 ) * + 43 THEN 5 WHEN 61 THEN + 4 * 90 END AS col0
----
NULL

query I rowsort
SELECT 69 + + - 27
----
42

query I rowsort
SELECT - 64 + - 20
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8670
SELECT - COUNT( * ) AS col1, 98 DIV 42 - + - 85 AS col0
----
-1
87

skipif mysql # not compatible
query II rowsort label-8670
SELECT - COUNT ( * ) AS col1, 98 / 42 - + - 85 AS col0
----
-1
87

query I rowsort
SELECT 72 + NULLIF ( - 92, + - 22 ) * + + 96 AS col0
----
-8760

query I rowsort
SELECT ALL CASE - 56 WHEN - 98 THEN - - 22 * + 68 END
----
NULL

query I rowsort
SELECT DISTINCT 79 * - + 69 AS col2
----
-5451

onlyif mysql # DIV for integer division: 
query I rowsort label-8674
SELECT ALL + COALESCE ( - 83, + 22 DIV + - 2 ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-8674
SELECT ALL + COALESCE ( - 83, + 22 / + - 2 ) AS col0
----
-83

query I rowsort
SELECT 41 + - - 90 + - 74 + + + 31
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8676
SELECT + 67 * 72 * - - COUNT( * )
----
4824

skipif mysql # not compatible
query I rowsort label-8676
SELECT + 67 * 72 * - - COUNT ( * )
----
4824

query II rowsort
SELECT 72 * + ( - 98 ) AS col1, 47
----
-7056
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8678
SELECT - 89 + - 18 + + 73 * + 40 * + COUNT( * )
----
2813

skipif mysql # not compatible
query I rowsort label-8678
SELECT - 89 + - 18 + + 73 * + 40 * + COUNT ( * )
----
2813

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

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

query II rowsort
SELECT - + 97, + 7 AS col0
----
-97
7

query I rowsort
SELECT DISTINCT 91 + + 91
----
182

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

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

query I rowsort
SELECT ALL - - ( 53 ) + + ( + 37 )
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-8684
SELECT DISTINCT 9 + - - 37 * - 15 + 93 * COUNT( * ) AS col1, COUNT( * ) + + 96 * + 91 + + 31
----
-453
8768

skipif mysql # not compatible
query II rowsort label-8684
SELECT DISTINCT 9 + - - 37 * - 15 + 93 * COUNT ( * ) AS col1, COUNT ( * ) + + 96 * + 91 + + 31
----
-453
8768

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT MIN( DISTINCT - 14 ) * 7
----
-98

skipif mysql # not compatible
query I rowsort label-8685
SELECT MIN ( DISTINCT - 14 ) * 7
----
-98

query I rowsort
SELECT 25 + + 71 AS col0
----
96

query I rowsort
SELECT ALL 29 * 14 AS col2
----
406

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8688
SELECT 52 * - 57 + + CAST( + 60 AS SIGNED )
----
-2904

skipif mysql # not compatible
query I rowsort label-8688
SELECT 52 * - 57 + + CAST ( + 60 AS INTEGER )
----
-2904

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

skipif mysql # not compatible
query I rowsort label-8689
SELECT ALL 46 + + CAST ( NULL AS INTEGER )
----
NULL

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

query I rowsort
SELECT ( + 11 ) * - 61 AS col1
----
-671

query I rowsort
SELECT ALL - 80 + 33 + - 17 + - CASE - 91 WHEN + ( + 37 ) THEN - 28 * COALESCE ( - - 82, 21 ) END
----
NULL

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

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

query I rowsort
SELECT DISTINCT 45 - + - 12 AS col0
----
57

query II rowsort
SELECT 15, 68 AS col0
----
15
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8696
SELECT ALL - COUNT( * ) AS col1, + MIN( DISTINCT 72 ) + + CAST( NULL AS SIGNED ) * 30 AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-8696
SELECT ALL - COUNT ( * ) AS col1, + MIN ( DISTINCT 72 ) + + CAST ( NULL AS INTEGER ) * 30 AS col1
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT ALL - CASE + COALESCE ( - - 9, + + 34 + COUNT( * ) ) WHEN + NULLIF ( + COUNT( * ), - 30 * - 62 + - 76 * - 15 * + 40 - - COUNT( * ) ) THEN 89 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8697
SELECT ALL - CASE + COALESCE ( - - 9, + + 34 + COUNT ( * ) ) WHEN + NULLIF ( + COUNT ( * ), - 30 * - 62 + - 76 * - 15 * + 40 - - COUNT ( * ) ) THEN 89 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT + MAX( 13 ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-8698
SELECT + MAX ( 13 ) AS col1
----
13

query I rowsort
SELECT DISTINCT + 8 * - + 80
----
-640

query I rowsort
SELECT 17 * 13 - - + 30 AS col2
----
251

query I rowsort
SELECT ALL - 90 * 83 * + 90 * + 12 * + 18 AS col2
----
-145216800

query I rowsort
SELECT ALL - 81 * - - 85 AS col1
----
-6885

query I rowsort
SELECT 56 * + 91
----
5096

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT DISTINCT - COUNT( * ) * + + 4 * - 66 AS col1
----
264

skipif mysql # not compatible
query I rowsort label-8704
SELECT DISTINCT - COUNT ( * ) * + + 4 * - 66 AS col1
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-8705
SELECT ALL - 14 * + 11 * - COUNT( * )
----
154

skipif mysql # not compatible
query I rowsort label-8705
SELECT ALL - 14 * + 11 * - COUNT ( * )
----
154

query II rowsort
SELECT DISTINCT 50, 46 + + + 0 * - 58 AS col2
----
50
46

onlyif mysql # DIV for integer division: 
query I rowsort label-8707
SELECT ALL 24 DIV - 46 - 18 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-8707
SELECT ALL 24 / - 46 - 18 AS col2
----
-18

query II rowsort
SELECT - + 64 AS col0, 78 + 81 + 33
----
-64
192

onlyif mysql # aggregate syntax: 
query II rowsort label-8709
SELECT ALL - 7 AS col1, COUNT( * ) AS col0
----
-7
1

skipif mysql # not compatible
query II rowsort label-8709
SELECT ALL - 7 AS col1, COUNT ( * ) AS col0
----
-7
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8710
SELECT - 37 * - COUNT( * ) * + ( + CAST( - + NULLIF ( + - 94, COUNT( ALL + CAST( NULL AS SIGNED ) ) ) AS SIGNED ) ) AS col1
----
3478

skipif mysql # not compatible
query I rowsort label-8710
SELECT - 37 * - COUNT ( * ) * + ( + CAST ( - + NULLIF ( + - 94, COUNT ( ALL + CAST ( NULL AS INTEGER ) ) ) AS INTEGER ) ) AS col1
----
3478

query I rowsort
SELECT - - 58 + + 99 + 73 + + + 95
----
325

query I rowsort
SELECT + + 53 * 16 * - 74 - + 19 + - 70
----
-62841

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8713
SELECT ALL - CAST( NULL AS SIGNED ) + - CASE + 13 WHEN + CAST( - 92 AS SIGNED ) THEN NULL WHEN + MIN( + 12 ) THEN - 1 END - - 6 + 23 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8713
SELECT ALL - CAST ( NULL AS INTEGER ) + - CASE + 13 WHEN + CAST ( - 92 AS INTEGER ) THEN NULL WHEN + MIN ( + 12 ) THEN - 1 END - - 6 + 23 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8714
SELECT ALL 18 col1, 3 + CAST( NULL AS SIGNED ) + + + 86 / - - ( + COUNT( * ) ) * + - 35
----
18
NULL

skipif mysql # not compatible
query II rowsort label-8714
SELECT ALL 18 col1, 3 + CAST ( NULL AS INTEGER ) + + + 86 / - - ( + COUNT ( * ) ) * + - 35
----
18
NULL

query II rowsort
SELECT 42, - 73 AS col0
----
42
-73

query II rowsort
SELECT ALL 2 AS col1, - 86 AS col0
----
2
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-8717
SELECT ALL - MAX( + - 29 ) + 76 - - 92 col0, 8
----
197
8

skipif mysql # not compatible
query II rowsort label-8717
SELECT ALL - MAX ( + - 29 ) + 76 - - 92 col0, 8
----
197
8

query I rowsort
SELECT ALL + 6 * - 63
----
-378

query II rowsort
SELECT 79 AS col0, 42
----
79
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8720
SELECT ALL COALESCE ( + - 66, SUM( DISTINCT ( 60 ) ), + COUNT( * ) ) + - 51 AS col1
----
-117

skipif mysql # not compatible
query I rowsort label-8720
SELECT ALL COALESCE ( + - 66, SUM ( DISTINCT ( 60 ) ), + COUNT ( * ) ) + - 51 AS col1
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-8721
SELECT ALL 97 * CASE - COUNT( * ) WHEN - + 38 + + - 20 THEN ( ( ( - COUNT( * ) ) ) ) WHEN - ( COUNT( * ) ) THEN NULL ELSE - 52 * + 26 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8721
SELECT ALL 97 * CASE - COUNT ( * ) WHEN - + 38 + + - 20 THEN ( ( ( - COUNT ( * ) ) ) ) WHEN - ( COUNT ( * ) ) THEN NULL ELSE - 52 * + 26 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8722
SELECT - COUNT( + 8 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8722
SELECT - COUNT ( + 8 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT - 60 * - - 0 - + MIN( DISTINCT - + 48 )
----
48

skipif mysql # not compatible
query I rowsort label-8723
SELECT - 60 * - - 0 - + MIN ( DISTINCT - + 48 )
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-8724
SELECT + 28 DIV + ( + 89 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8724
SELECT + 28 / + ( + 89 ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8725
SELECT DISTINCT 40 DIV - MIN( DISTINCT + 54 ) AS col1, 14 AS col1
----
0
14

skipif mysql # not compatible
query II rowsort label-8725
SELECT DISTINCT 40 / - MIN ( DISTINCT + 54 ) AS col1, 14 AS col1
----
0
14

query II rowsort
SELECT ALL 75 * + - 33 AS col2, 67 + 43 + + + 58 + - 92 - - 97 + - + 85 * - + 60
----
-2475
5273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8727
SELECT ALL CAST( NULL AS SIGNED ) * - 78 * - 38 * 42 - - - COUNT( * ) - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-8727
SELECT ALL CAST ( NULL AS INTEGER ) * - 78 * - 38 * 42 - - - COUNT ( * ) - 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT + 98 - + - COUNT( * ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-8728
SELECT + 98 - + - COUNT ( * ) AS col2
----
99

query I rowsort
SELECT ALL + 21 * - ( + 91 )
----
-1911

onlyif mysql # aggregate syntax: 
query II rowsort label-8730
SELECT + ( + 28 ) AS col2, 3 + 39 * + + COUNT( * ) * + - 93 + 61 + + + 62 AS col1
----
28
-3501

skipif mysql # not compatible
query II rowsort label-8730
SELECT + ( + 28 ) AS col2, 3 + 39 * + + COUNT ( * ) * + - 93 + 61 + + + 62 AS col1
----
28
-3501

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

skipif mysql # not compatible
query I rowsort label-8731
SELECT ALL COUNT ( * ) * - + 63 AS col2
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8732
SELECT + 45 + + CAST( - - 63 AS SIGNED ) + - + NULLIF ( + ( + 8 ), + 96 + - 92 + - CAST( + 97 AS SIGNED ) * CAST( + CASE 87 WHEN 36 / - CAST( NULL AS SIGNED ) THEN NULL ELSE 37 END AS SIGNED ) * 27 ) + - COALESCE ( - NULLIF ( 34, 9 ), - 14 + + 38 )
----
134

skipif mysql # not compatible
query I rowsort label-8732
SELECT + 45 + + CAST ( - - 63 AS INTEGER ) + - + NULLIF ( + ( + 8 ), + 96 + - 92 + - CAST ( + 97 AS INTEGER ) * CAST ( + CASE 87 WHEN 36 / - CAST ( NULL AS INTEGER ) THEN NULL ELSE 37 END AS INTEGER ) * 27 ) + - COALESCE ( - NULLIF ( 34, 9 ), - 14 + + 38 )
----
134

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8733
SELECT + 62 DIV COUNT( * ) col2, + ( 81 ) + + 25 + - 95
----
62
11

skipif mysql # not compatible
query II rowsort label-8733
SELECT + 62 / COUNT ( * ) col2, + ( 81 ) + + 25 + - 95
----
62
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8734
SELECT + CASE + 94 WHEN 91 * - - 44 * 22 * - - CAST( 85 AS SIGNED ) + + + 59 THEN - COUNT( * ) / - COALESCE ( - SUM( ALL 13 ), 74 ) * 89 - ( + 4 + 97 ) WHEN 1 * 33 THEN 31 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8734
SELECT + CASE + 94 WHEN 91 * - - 44 * 22 * - - CAST ( 85 AS INTEGER ) + + + 59 THEN - COUNT ( * ) / - COALESCE ( - SUM ( ALL 13 ), 74 ) * 89 - ( + 4 + 97 ) WHEN 1 * 33 THEN 31 END col1
----
NULL

query I rowsort
SELECT COALESCE ( + 30, 12 * 4 )
----
30

query I rowsort
SELECT ALL 33 * 39 * 41 AS col1
----
52767

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT - COUNT( * ) * - + COUNT( - 81 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-8737
SELECT - COUNT ( * ) * - + COUNT ( - 81 ) col1
----
1

query I rowsort
SELECT + 91 + - 24 * - 86 + 14
----
2169

query I rowsort
SELECT ALL 97 * ( + 50 ) col1
----
4850

query I rowsort
SELECT + 8 * NULLIF ( - 70, + 36 * + - 27 ) col0
----
-560

onlyif mysql # aggregate syntax: 
query II rowsort label-8741
SELECT - COUNT( DISTINCT + 88 ) + - 22 AS col1, 19 * - 97 * - 70
----
-23
129010

skipif mysql # not compatible
query II rowsort label-8741
SELECT - COUNT ( DISTINCT + 88 ) + - 22 AS col1, 19 * - 97 * - 70
----
-23
129010

query I rowsort
SELECT DISTINCT 60 * 93 + 86 + 3
----
5669

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT ALL + 75 * - 35 + - COUNT( * )
----
-2626

skipif mysql # not compatible
query I rowsort label-8743
SELECT ALL + 75 * - 35 + - COUNT ( * )
----
-2626

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8744
SELECT ALL CAST( + + 49 AS SIGNED )
----
49

skipif mysql # not compatible
query I rowsort label-8744
SELECT ALL CAST ( + + 49 AS INTEGER )
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8745
SELECT DISTINCT - + 35 + + 1 + - CASE - 17 WHEN 42 THEN - 58 WHEN + ( 71 ) THEN NULL ELSE + 0 END * - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8745
SELECT DISTINCT - + 35 + + 1 + - CASE - 17 WHEN 42 THEN - 58 WHEN + ( 71 ) THEN NULL ELSE + 0 END * - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - + 47 * + 96 AS col0
----
-4512

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT ALL + - 22 + 49 * + - COUNT( * ) * 92
----
-4530

skipif mysql # not compatible
query I rowsort label-8747
SELECT ALL + - 22 + 49 * + - COUNT ( * ) * 92
----
-4530

query I rowsort
SELECT - - 39 + - + 46 * 64 * 49 AS col1
----
-144217

onlyif mysql # aggregate syntax: 
query II rowsort label-8749
SELECT - 12 + 89 + - - 96 col0, + COUNT( * ) * 36 AS col2
----
173
36

skipif mysql # not compatible
query II rowsort label-8749
SELECT - 12 + 89 + - - 96 col0, + COUNT ( * ) * 36 AS col2
----
173
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8750
SELECT - NULLIF ( - COUNT( * ), - 85 + + - 8 + - 74 * 10 + - 57 + - 70 * 77 + - 80 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8750
SELECT - NULLIF ( - COUNT ( * ), - 85 + + - 8 + - 74 * 10 + - 57 + - 70 * 77 + - 80 ) AS col0
----
1

query I rowsort
SELECT + 17 * 38 AS col0
----
646

query I rowsort
SELECT - 29 + - + 76 * - + 81 * 30
----
184651

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8753
SELECT + COUNT( * ) - + CAST( + - 27 AS SIGNED ) + - + SUM( ALL - + 73 ) * 64
----
4700

skipif mysql # not compatible
query I rowsort label-8753
SELECT + COUNT ( * ) - + CAST ( + - 27 AS INTEGER ) + - + SUM ( ALL - + 73 ) * 64
----
4700

query I rowsort
SELECT ALL 99 * 29 AS col1
----
2871

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8755
SELECT - 5 + 13 / + MIN( + 68 ) / + CAST( NULL AS SIGNED ) + - CAST( + COUNT( * ) AS SIGNED ) + + 34 + + COUNT( * ) * + AVG ( DISTINCT + 9 ) / + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-8755
SELECT - 5 + 13 / + MIN ( + 68 ) / + CAST ( NULL AS INTEGER ) + - CAST ( + COUNT ( * ) AS INTEGER ) + + 34 + + COUNT ( * ) * + AVG ( DISTINCT + 9 ) / + 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8756
SELECT - MAX( ALL + 12 ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-8756
SELECT - MAX ( ALL + 12 ) AS col0
----
-12

query II rowsort
SELECT DISTINCT + ( + ( 24 ) ) AS col1, 11 + + 71 AS col1
----
24
82

query I rowsort
SELECT ALL - NULLIF ( 21, ( 65 ) ) * 26
----
-546

query I rowsort
SELECT + 75 + - - 45 col0
----
120

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

skipif mysql # not compatible
query I rowsort label-8760
SELECT + MAX ( - + 31 )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT + MAX( ALL - 18 ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-8761
SELECT + MAX ( ALL - 18 ) AS col0
----
-18

query I rowsort
SELECT - 21 * - + 69
----
1449

onlyif mysql # DIV for integer division: 
query I rowsort label-8763
SELECT + 45 DIV - 38 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8763
SELECT + 45 / - 38 AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8764
SELECT CAST( COUNT( DISTINCT CAST( 67 AS SIGNED ) ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-8764
SELECT CAST ( COUNT ( DISTINCT CAST ( 67 AS INTEGER ) ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8765
SELECT + 91 * + CASE - 16 WHEN - 40 + - - COUNT( + 59 ) - + 5 + - 37 THEN 34 WHEN - COALESCE ( - 89, - 7 * 55 + 82 ) THEN 68 WHEN 73 * + ( CASE - 15 WHEN - COALESCE ( + 83, - 12, - 96 * 45, 60 / - COUNT( * ) + + COALESCE ( + 23, COUNT( ALL 9 ) / - 36 ) / + COUNT( ALL + 8 ) ) / + SUM( ALL 52 ) - + 0 THEN + ( 60 ) END ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8765
SELECT + 91 * + CASE - 16 WHEN - 40 + - - COUNT ( + 59 ) - + 5 + - 37 THEN 34 WHEN - COALESCE ( - 89, - 7 * 55 + 82 ) THEN 68 WHEN 73 * + ( CASE - 15 WHEN - COALESCE ( + 83, - 12, - 96 * 45, 60 / - COUNT ( * ) + + COALESCE ( + 23, COUNT ( ALL 9 ) / - 36 ) / + COUNT ( ALL + 8 ) ) / + SUM ( ALL 52 ) - + 0 THEN + ( 60 ) END ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 38 * 83
----
3154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8767
SELECT + COUNT( * ) DIV + 47 * 11
----
0

skipif mysql # not compatible
query I rowsort label-8767
SELECT + COUNT ( * ) / + 47 * 11
----
0

query I rowsort
SELECT ALL 50 + - + 74
----
-24

query I rowsort
SELECT - 67 * + 82 * ( + NULLIF ( - - 95, - 41 + 75 ) ) / + - 82 - - + 42 + - 1 - CASE - - 95 WHEN 61 + 65 THEN + ( 63 ) WHEN - 72 * 37 THEN NULL ELSE NULL END * + 57
----
NULL

query II rowsort
SELECT 91, 66 * + - ( 76 ) AS col2
----
91
-5016

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8771
SELECT + 94 DIV ( + 38 ) * COUNT( ALL - - ( - - 41 ) ) DIV 59 * + + 46 + + 34 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-8771
SELECT + 94 / ( + 38 ) * COUNT ( ALL - - ( - - 41 ) ) / 59 * + + 46 + + 34 AS col0
----
34

query II rowsort
SELECT - 25 AS col1, - 50 AS col2
----
-25
-50

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

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

query II rowsort
SELECT ALL 30 + 96 * - 61, - 4 * + 24 + + 51 AS col0
----
-5826
-45

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8775
SELECT DISTINCT + 12 * CASE + 10 WHEN COALESCE ( + COALESCE ( - 30, + 53, 96 ), CASE + 55 WHEN + - COUNT( + - 77 ) / - 28 + 69 / + CASE COALESCE ( 36, - 13 ) WHEN - 38 THEN NULL WHEN 28 * COUNT( * ) THEN 13 + + 26 * - 24 ELSE NULL END THEN MIN( ALL 6 ) WHEN + 15 THEN NULL ELSE NULL END * 39 ) + + 3 THEN - NULLIF ( CAST( 52 AS DECIMAL ), - MIN( DISTINCT + 36 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8775
SELECT DISTINCT + 12 * CASE + 10 WHEN COALESCE ( + COALESCE ( - 30, + 53, 96 ), CASE + 55 WHEN + - COUNT ( + - 77 ) / - 28 + 69 / + CASE COALESCE ( 36, - 13 ) WHEN - 38 THEN NULL WHEN 28 * COUNT ( * ) THEN 13 + + 26 * - 24 ELSE NULL END THEN MIN ( ALL 6 ) WHEN + 15 THEN NULL ELSE NULL END * 39 ) + + 3 THEN - NULLIF ( CAST ( 52 AS REAL ), - MIN ( DISTINCT + 36 ) ) END
----
NULL

query I rowsort
SELECT ALL - 90 + + 60
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8777
SELECT + COUNT( - 25 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8777
SELECT + COUNT ( - 25 ) AS col1
----
1

query II rowsort
SELECT 90 AS col0, - 56 AS col0
----
90
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8779
SELECT CAST( + + 52 AS SIGNED ) + ( + + 73 ) AS col1
----
125

skipif mysql # not compatible
query I rowsort label-8779
SELECT CAST ( + + 52 AS INTEGER ) + ( + + 73 ) AS col1
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-8780
SELECT + 76 + 56 - COUNT( ALL - 5 ) AS col1
----
131

skipif mysql # not compatible
query I rowsort label-8780
SELECT + 76 + 56 - COUNT ( ALL - 5 ) AS col1
----
131

query I rowsort
SELECT ALL + - 90 * 93
----
-8370

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8782
SELECT DISTINCT COUNT( * ) * 97 AS col0, + 6 + - + 76 + 0 + + CAST( NULL AS SIGNED ) + + 14 * + ( - - 36 ) AS col1
----
97
NULL

skipif mysql # not compatible
query II rowsort label-8782
SELECT DISTINCT COUNT ( * ) * 97 AS col0, + 6 + - + 76 + 0 + + CAST ( NULL AS INTEGER ) + + 14 * + ( - - 36 ) AS col1
----
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT ALL + 66 - - MIN( - - 59 ) AS col1
----
125

skipif mysql # not compatible
query I rowsort label-8783
SELECT ALL + 66 - - MIN ( - - 59 ) AS col1
----
125

query I rowsort
SELECT 53 + 8
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-8785
SELECT ALL + 67 DIV + - 38
----
-1

skipif mysql # not compatible
query I rowsort label-8785
SELECT ALL + 67 / + - 38
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8786
SELECT 34 DIV - 23
----
-1

skipif mysql # not compatible
query I rowsort label-8786
SELECT 34 / - 23
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT MAX( DISTINCT - + 24 ) * ( - 68 ) AS col1
----
1632

skipif mysql # not compatible
query I rowsort label-8787
SELECT MAX ( DISTINCT - + 24 ) * ( - 68 ) AS col1
----
1632

onlyif mysql # DIV for integer division: 
query I rowsort label-8788
SELECT DISTINCT + 49 DIV - ( + 64 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8788
SELECT DISTINCT + 49 / - ( + 64 ) AS col2
----
0

query I rowsort
SELECT DISTINCT - 77 + + 85 * + 26 AS col1
----
2133

onlyif mysql # aggregate syntax: 
query I rowsort label-8790
SELECT DISTINCT - MIN( + 73 ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-8790
SELECT DISTINCT - MIN ( + 73 ) AS col0
----
-73

query II rowsort
SELECT DISTINCT - ( 47 ) AS col2, 37
----
-47
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8792
SELECT ALL 79 + + + 95 * + + 27 * COUNT( * ) AS col2, CAST( + MIN( DISTINCT + 0 ) AS SIGNED ) DIV - 83 - COUNT( * ) + + NULLIF ( - 84, ( + SUM( - + 21 ) ) ) * - 31 col1
----
2644
2603

skipif mysql # not compatible
query II rowsort label-8792
SELECT ALL 79 + + + 95 * + + 27 * COUNT ( * ) AS col2, CAST ( + MIN ( DISTINCT + 0 ) AS INTEGER ) / - 83 - COUNT ( * ) + + NULLIF ( - 84, ( + SUM ( - + 21 ) ) ) * - 31 col1
----
2644
2603

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT 75 - - COUNT( DISTINCT + - 66 )
----
76

skipif mysql # not compatible
query I rowsort label-8793
SELECT 75 - - COUNT ( DISTINCT + - 66 )
----
76

query I rowsort
SELECT ALL + 32 + - 38 AS col2
----
-6

query I rowsort
SELECT DISTINCT + 77 + - 86 + + 21
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8796
SELECT 59 + - 73 - + + 11 * + - 84 * + 34 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8796
SELECT 59 + - 73 - + + 11 * + - 84 * + 34 * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8797
SELECT ALL + 35 + - - COUNT( * ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-8797
SELECT ALL + 35 + - - COUNT ( * ) AS col2
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-8798
SELECT DISTINCT - MAX( DISTINCT - + 35 ) AS col1, - 47 * COUNT( + + 60 ) AS col0
----
35
-47

skipif mysql # not compatible
query II rowsort label-8798
SELECT DISTINCT - MAX ( DISTINCT - + 35 ) AS col1, - 47 * COUNT ( + + 60 ) AS col0
----
35
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-8799
SELECT - 22 * 18 + + ( - 78 ) + + 95 * - - 67 + 58 DIV - 54
----
5890

skipif mysql # not compatible
query I rowsort label-8799
SELECT - 22 * 18 + + ( - 78 ) + + 95 * - - 67 + 58 / - 54
----
5890

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8800
SELECT + - 2 * + CAST( 13 AS SIGNED ) + - CAST( 61 AS SIGNED ) + 47 * - + 72
----
-3471

skipif mysql # not compatible
query I rowsort label-8800
SELECT + - 2 * + CAST ( 13 AS INTEGER ) + - CAST ( 61 AS INTEGER ) + 47 * - + 72
----
-3471

query I rowsort
SELECT ALL + - 26 + - 94
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-8802
SELECT + CASE - 86 WHEN - 54 * + 85 + - - 57 + - 78 + + 37 - + 20 THEN - ( 85 ) WHEN + + ( + COUNT( * ) ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8802
SELECT + CASE - 86 WHEN - 54 * + 85 + - - 57 + - 78 + + 37 - + 20 THEN - ( 85 ) WHEN + + ( + COUNT ( * ) ) THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8803
SELECT ALL 84 + - + 88 AS col2, - MAX( - + 94 ) DIV + ( - + ( COUNT( * ) ) )
----
-4
-94

skipif mysql # not compatible
query II rowsort label-8803
SELECT ALL 84 + - + 88 AS col2, - MAX ( - + 94 ) / + ( - + ( COUNT ( * ) ) )
----
-4
-94

query I rowsort
SELECT + 67 * - 99
----
-6633

query II rowsort
SELECT ALL - 3 * 36, 86 AS col0
----
-108
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8806
SELECT 20 * - SUM( DISTINCT 57 ) AS col2
----
-1140

skipif mysql # not compatible
query I rowsort label-8806
SELECT 20 * - SUM ( DISTINCT 57 ) AS col2
----
-1140

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT ALL + MIN( + 88 ) - ( + ( - + 48 ) ) + + 3
----
139

skipif mysql # not compatible
query I rowsort label-8807
SELECT ALL + MIN ( + 88 ) - ( + ( - + 48 ) ) + + 3
----
139

query I rowsort
SELECT - 33 * - 37 - - + 10 - + - 48 * ( 30 ) * - 65 * + 91 AS col0
----
-8516369

query I rowsort
SELECT 41 * 69
----
2829

onlyif mysql # aggregate syntax: 
query I rowsort label-8810
SELECT + 8 + CASE - + COUNT( * ) WHEN MIN( 65 ) + - 93 THEN 95 + 76 END * 14
----
NULL

skipif mysql # not compatible
query I rowsort label-8810
SELECT + 8 + CASE - + COUNT ( * ) WHEN MIN ( 65 ) + - 93 THEN 95 + 76 END * 14
----
NULL

query I rowsort
SELECT - 47 * + 61 * + 9 - + 41 * + 29 AS col2
----
-26992

onlyif mysql # aggregate syntax: 
query II rowsort label-8812
SELECT DISTINCT + 56 * + COUNT( * ) * + 62 * + COUNT( * ), 71 * ( - - 25 ) * + + 43 + 3 - + 30 + COUNT( * ) + - - 96 AS col1
----
3472
76395

skipif mysql # not compatible
query II rowsort label-8812
SELECT DISTINCT + 56 * + COUNT ( * ) * + 62 * + COUNT ( * ), 71 * ( - - 25 ) * + + 43 + 3 - + 30 + COUNT ( * ) + - - 96 AS col1
----
3472
76395

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8813
SELECT ALL 30 - + MIN( 90 ) * + + NULLIF ( + - 65, + - ( + 18 ) + CAST( - 79 AS SIGNED ) + CAST( NULL AS SIGNED ) )
----
5880

skipif mysql # not compatible
query I rowsort label-8813
SELECT ALL 30 - + MIN ( 90 ) * + + NULLIF ( + - 65, + - ( + 18 ) + CAST ( - 79 AS INTEGER ) + CAST ( NULL AS INTEGER ) )
----
5880

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8814
SELECT 20 * + 14 * + ( + - 94 ) * - 54 AS col0, + 1 * + 53 DIV - ( 72 ) * COUNT( * ) AS col1
----
1421280
0

skipif mysql # not compatible
query II rowsort label-8814
SELECT 20 * + 14 * + ( + - 94 ) * - 54 AS col0, + 1 * + 53 / - ( 72 ) * COUNT ( * ) AS col1
----
1421280
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT COALESCE ( + 97, - + 45 - 88, + COUNT( * ) + 97 * + 72 - 6 * - 30 )
----
97

skipif mysql # not compatible
query I rowsort label-8815
SELECT COALESCE ( + 97, - + 45 - 88, + COUNT ( * ) + 97 * + 72 - 6 * - 30 )
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8816
SELECT 50 + 37 DIV - ( + 78 ) * - 18 * 42 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-8816
SELECT 50 + 37 / - ( + 78 ) * - 18 * 42 AS col2
----
50

query II rowsort
SELECT DISTINCT 13 AS col0, 33 col0
----
13
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8818
SELECT NULLIF ( + + 13, + COUNT( * ) * - - 82 * + 9 * + MIN( ALL 15 ) + SUM( - 15 ) + - 95 ) * + + 51
----
663

skipif mysql # not compatible
query I rowsort label-8818
SELECT NULLIF ( + + 13, + COUNT ( * ) * - - 82 * + 9 * + MIN ( ALL 15 ) + SUM ( - 15 ) + - 95 ) * + + 51
----
663

query I rowsort
SELECT 60 * - 34 col1
----
-2040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8820
SELECT DISTINCT 75 * + CAST( - - 97 AS SIGNED )
----
7275

skipif mysql # not compatible
query I rowsort label-8820
SELECT DISTINCT 75 * + CAST ( - - 97 AS INTEGER )
----
7275

query I rowsort
SELECT ALL + 63 * - 95 AS col0
----
-5985

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8822
SELECT CAST( + 37 AS SIGNED ) + 35 DIV + 45 + + ( - CAST( - 68 AS SIGNED ) )
----
105

skipif mysql # not compatible
query I rowsort label-8822
SELECT CAST ( + 37 AS INTEGER ) + 35 / + 45 + + ( - CAST ( - 68 AS INTEGER ) )
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-8823
SELECT ALL MAX( ALL - 93 ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-8823
SELECT ALL MAX ( ALL - 93 ) AS col1
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8824
SELECT 69 DIV + NULLIF ( 68, - NULLIF ( - 5, + 55 - + - 23 ) * + - 99 DIV 17 DIV - ( + ( 77 ) ) + - COUNT( * ) - - ( - 66 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8824
SELECT 69 / + NULLIF ( 68, - NULLIF ( - 5, + 55 - + - 23 ) * + - 99 / 17 / - ( + ( 77 ) ) + - COUNT ( * ) - - ( - 66 ) ) AS col2
----
1

query I rowsort
SELECT ALL 74 + - 81 * 99
----
-7945

query I rowsort
SELECT - ( 49 ) + + 12 AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8827
SELECT ALL ( - - 84 ) * COUNT( * ) + - 56 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-8827
SELECT ALL ( - - 84 ) * COUNT ( * ) + - 56 AS col0
----
28

query I rowsort
SELECT + CASE + 90 WHEN + 30 THEN - 48 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8829
SELECT + 8 * + - COALESCE ( COUNT( * ), + - 53, - + COALESCE ( 42, 31, + 44, - - 61 DIV + + 96 - 16 + + 91 * COUNT( * ) ) ) DIV 72 + + - ( CASE 96 WHEN + 99 THEN NULL WHEN + 69 + 22 THEN + ( + COUNT( * ) ) ELSE 25 * - COALESCE ( 91, - 81 ) END ) + + COUNT( * ) * 98 col2
----
2373

skipif mysql # not compatible
query I rowsort label-8829
SELECT + 8 * + - COALESCE ( COUNT ( * ), + - 53, - + COALESCE ( 42, 31, + 44, - - 61 / + + 96 - 16 + + 91 * COUNT ( * ) ) ) / 72 + + - ( CASE 96 WHEN + 99 THEN NULL WHEN + 69 + 22 THEN + ( + COUNT ( * ) ) ELSE 25 * - COALESCE ( 91, - 81 ) END ) + + COUNT ( * ) * 98 col2
----
2373

query I rowsort
SELECT - 50 * - + 20 * - + 97 * 31 AS col0
----
-3007000

onlyif mysql # DIV for integer division: 
query I rowsort label-8831
SELECT - 15 DIV - 17 + 2
----
2

skipif mysql # not compatible
query I rowsort label-8831
SELECT - 15 / - 17 + 2
----
2

query II rowsort
SELECT ALL 86 * + 2 + 78, + 75 AS col0
----
250
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8833
SELECT DISTINCT - + COUNT( * ) * 86 + + CAST( 67 AS SIGNED )
----
-19

skipif mysql # not compatible
query I rowsort label-8833
SELECT DISTINCT - + COUNT ( * ) * 86 + + CAST ( 67 AS INTEGER )
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8834
SELECT ALL + - 46 * 22 + + - CAST( NULL AS SIGNED ) - 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8834
SELECT ALL + - 46 * 22 + + - CAST ( NULL AS INTEGER ) - 30 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8835
SELECT + - MIN( 50 ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-8835
SELECT + - MIN ( 50 ) AS col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8836
SELECT DISTINCT + - CASE - COUNT( * ) WHEN 85 + + + ( 49 ) THEN NULL WHEN - COUNT( * ) THEN 26 + + + 21 + + 7 END
----
-54

skipif mysql # not compatible
query I rowsort label-8836
SELECT DISTINCT + - CASE - COUNT ( * ) WHEN 85 + + + ( 49 ) THEN NULL WHEN - COUNT ( * ) THEN 26 + + + 21 + + 7 END
----
-54

query I rowsort
SELECT ALL + ( 34 ) * - 83 - - 37 AS col1
----
-2785

query II rowsort
SELECT 7, 95 AS col2
----
7
95

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

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

query I rowsort
SELECT - 31 - 37 AS col0
----
-68

query I rowsort
SELECT + - 2 * - 66
----
132

onlyif mysql # DIV for integer division: 
query I rowsort label-8842
SELECT ALL + 61 * 23 - - 60 DIV 26
----
1405

skipif mysql # not compatible
query I rowsort label-8842
SELECT ALL + 61 * 23 - - 60 / 26
----
1405

query II rowsort
SELECT ALL 55, ( + 78 ) col0
----
55
78

query I rowsort
SELECT + 76 + + 39
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-8845
SELECT ALL 40 * - - 88 * - + COUNT( * ) * 29 AS col2
----
-102080

skipif mysql # not compatible
query I rowsort label-8845
SELECT ALL 40 * - - 88 * - + COUNT ( * ) * 29 AS col2
----
-102080

onlyif mysql # aggregate syntax: 
query I rowsort label-8846
SELECT + 52 * - COUNT( ALL - + 39 )
----
-52

skipif mysql # not compatible
query I rowsort label-8846
SELECT + 52 * - COUNT ( ALL - + 39 )
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8847
SELECT + NULLIF ( CAST( NULL AS SIGNED ), + 74 - COUNT( * ) * - - 59 ) * + 2 * CAST( - COALESCE ( 51, - 68 + 36 / - COUNT( * ) * + COUNT( * ), + CASE 50 WHEN + 44 * 56 THEN ( COUNT( * ) ) WHEN + 34 THEN - AVG ( ALL - 66 ) WHEN - 8 THEN NULL ELSE NULL END + - 23 ) AS SIGNED ) * 18 - - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-8847
SELECT + NULLIF ( CAST ( NULL AS INTEGER ), + 74 - COUNT ( * ) * - - 59 ) * + 2 * CAST ( - COALESCE ( 51, - 68 + 36 / - COUNT ( * ) * + COUNT ( * ), + CASE 50 WHEN + 44 * 56 THEN ( COUNT ( * ) ) WHEN + 34 THEN - AVG ( ALL - 66 ) WHEN - 8 THEN NULL ELSE NULL END + - 23 ) AS INTEGER ) * 18 - - 62
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8848
SELECT ALL 34 + + 10 * - 19 / - CAST( + 72 AS SIGNED ) / + + 39 + CASE - 11 WHEN SUM( ALL 76 ) THEN NULL ELSE + CAST( + + 81 AS SIGNED ) * CAST( NULL AS SIGNED ) END + - 94 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8848
SELECT ALL 34 + + 10 * - 19 / - CAST ( + 72 AS INTEGER ) / + + 39 + CASE - 11 WHEN SUM ( ALL 76 ) THEN NULL ELSE + CAST ( + + 81 AS INTEGER ) * CAST ( NULL AS INTEGER ) END + - 94 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8849
SELECT - MIN( - 73 ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-8849
SELECT - MIN ( - 73 ) AS col2
----
73

query I rowsort
SELECT + 99 + - - 98
----
197

onlyif mysql # aggregate syntax: 
query I rowsort label-8851
SELECT + MIN( + + 48 ) + 77
----
125

skipif mysql # not compatible
query I rowsort label-8851
SELECT + MIN ( + + 48 ) + 77
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-8852
SELECT ALL 4 + + SUM( + - 36 )
----
-32

skipif mysql # not compatible
query I rowsort label-8852
SELECT ALL 4 + + SUM ( + - 36 )
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8853
SELECT + CAST( - + 81 AS SIGNED ) * - 3
----
243

skipif mysql # not compatible
query I rowsort label-8853
SELECT + CAST ( - + 81 AS INTEGER ) * - 3
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-8854
SELECT + MIN( DISTINCT + - 64 ) - - 66 + + 98 + - + 69 * + + COALESCE ( COUNT( * ), - 4 + - ( + 41 ) ) * 95 * + + 94 + COUNT( * ) + - + 26 * - 14 col0
----
-615705

skipif mysql # not compatible
query I rowsort label-8854
SELECT + MIN ( DISTINCT + - 64 ) - - 66 + + 98 + - + 69 * + + COALESCE ( COUNT ( * ), - 4 + - ( + 41 ) ) * 95 * + + 94 + COUNT ( * ) + - + 26 * - 14 col0
----
-615705

query I rowsort
SELECT - ( + 62 ) AS col0
----
-62

query II rowsort
SELECT 7 AS col2, 36 AS col2
----
7
36

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8857
SELECT + CAST( NULL AS DECIMAL ) - - + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-8857
SELECT + CAST ( NULL AS REAL ) - - + 59
----
NULL

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

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

query II rowsort
SELECT ALL + + 39, - 55 AS col0
----
39
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8860
SELECT + COALESCE ( + - 46, 92 * - 23 * + COUNT( * ) ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-8860
SELECT + COALESCE ( + - 46, 92 * - 23 * + COUNT ( * ) ) AS col1
----
-46

onlyif mysql # DIV for integer division: 
query II rowsort label-8861
SELECT 85 AS col2, 10 DIV COALESCE ( + + 58, + 55 )
----
85
0

skipif mysql # not compatible
query II rowsort label-8861
SELECT 85 AS col2, 10 / COALESCE ( + + 58, + 55 )
----
85
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8862
SELECT - - COUNT( * ) * + - 99 - + - 37 + - COUNT( * ) + + 84 + - + ( 24 ) * 63 * CAST( - 65 AS SIGNED ) * CAST( - - 39 AS SIGNED ) + - 29 AS col0
----
3832912

skipif mysql # not compatible
query I rowsort label-8862
SELECT - - COUNT ( * ) * + - 99 - + - 37 + - COUNT ( * ) + + 84 + - + ( 24 ) * 63 * CAST ( - 65 AS INTEGER ) * CAST ( - - 39 AS INTEGER ) + - 29 AS col0
----
3832912

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8863
SELECT ALL + NULLIF ( - COUNT( * ), + - 9 ) DIV - 64 - - + 77 - CAST( + + 62 AS SIGNED )
----
15

skipif mysql # not compatible
query I rowsort label-8863
SELECT ALL + NULLIF ( - COUNT ( * ), + - 9 ) / - 64 - - + 77 - CAST ( + + 62 AS INTEGER )
----
15

query I rowsort
SELECT + - 11 + - 97 * - 23 AS col1
----
2220

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT + COALESCE ( + + 89, - COUNT( * ) * - 73 )
----
89

skipif mysql # not compatible
query I rowsort label-8865
SELECT + COALESCE ( + + 89, - COUNT ( * ) * - 73 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8866
SELECT - MIN( DISTINCT + 68 ) * 78
----
-5304

skipif mysql # not compatible
query I rowsort label-8866
SELECT - MIN ( DISTINCT + 68 ) * 78
----
-5304

query I rowsort
SELECT + 75 * - - 53 + 48 AS col2
----
4023

query I rowsort
SELECT - 88 * - - 59 + 65
----
-5127

query II rowsort
SELECT ALL + + 68 AS col0, - 67
----
68
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8870
SELECT - COUNT( * ) * - CAST( NULL AS SIGNED ) + - + 99 + COALESCE ( - COALESCE ( 28, 44 + 15, COUNT( * ) ), - + 1 * + 20 + - - MIN( ALL - ( 77 ) ) ) + - 48 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8870
SELECT - COUNT ( * ) * - CAST ( NULL AS INTEGER ) + - + 99 + COALESCE ( - COALESCE ( 28, 44 + 15, COUNT ( * ) ), - + 1 * + 20 + - - MIN ( ALL - ( 77 ) ) ) + - 48 AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8872
SELECT - 4 * + 63 + + ( + + ( + - CAST( NULL AS SIGNED ) ) ) + - - COUNT( + + 87 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8872
SELECT - 4 * + 63 + + ( + + ( + - CAST ( NULL AS INTEGER ) ) ) + - - COUNT ( + + 87 )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8874
SELECT + + 27 AS col2, COUNT( * ) + + ( - NULLIF ( + - CAST( NULL AS SIGNED ), - 21 / - COUNT( * ) ) ) / + 63 + + 84 + 16 * + 91
----
27
NULL

skipif mysql # not compatible
query II rowsort label-8874
SELECT + + 27 AS col2, COUNT ( * ) + + ( - NULLIF ( + - CAST ( NULL AS INTEGER ), - 21 / - COUNT ( * ) ) ) / + 63 + + 84 + 16 * + 91
----
27
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8875
SELECT 8 * COUNT( * ) * + + COUNT( * ) + + 56 * + + 66 * + 64 - 59 + 67 * - 86 * + 23
----
103967

skipif mysql # not compatible
query I rowsort label-8875
SELECT 8 * COUNT ( * ) * + + COUNT ( * ) + + 56 * + + 66 * + 64 - 59 + 67 * - 86 * + 23
----
103967

onlyif mysql # aggregate syntax: 
query I rowsort label-8876
SELECT NULLIF ( + 88, + 64 * + - 50 + - - 67 + - COUNT( * ) + - - MAX( 32 ) * + 28 * + 1 ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-8876
SELECT NULLIF ( + 88, + 64 * + - 50 + - - 67 + - COUNT ( * ) + - - MAX ( 32 ) * + 28 * + 1 ) AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8877
SELECT + 28 * + + MIN( - NULLIF ( + 50, 6 ) ) AS col0
----
-1400

skipif mysql # not compatible
query I rowsort label-8877
SELECT + 28 * + + MIN ( - NULLIF ( + 50, 6 ) ) AS col0
----
-1400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8878
SELECT ALL 83 * - - COALESCE ( ( + 32 ), 42 * - COALESCE ( AVG ( ALL + + 25 ), - MIN( 95 ) ) * 97 / + 44 ) + - CASE - CAST( + - NULLIF ( + + 76, 32 ) AS SIGNED ) WHEN - CAST( - 12 AS SIGNED ) THEN NULL WHEN + 88 THEN - 36 * - 61 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8878
SELECT ALL 83 * - - COALESCE ( ( + 32 ), 42 * - COALESCE ( AVG ( ALL + + 25 ), - MIN ( 95 ) ) * 97 / + 44 ) + - CASE - CAST ( + - NULLIF ( + + 76, 32 ) AS INTEGER ) WHEN - CAST ( - 12 AS INTEGER ) THEN NULL WHEN + 88 THEN - 36 * - 61 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 51 * - 99 + 90 AS col0
----
-4959

onlyif mysql # aggregate syntax: 
query I rowsort label-8880
SELECT - COUNT( * ) + - + 45 AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-8880
SELECT - COUNT ( * ) + - + 45 AS col1
----
-46

query II rowsort
SELECT DISTINCT ( 26 ), 6 AS col1
----
26
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8882
SELECT ALL SUM( 63 ) + + + ( 90 ) AS col2
----
153

skipif mysql # not compatible
query I rowsort label-8882
SELECT ALL SUM ( 63 ) + + + ( 90 ) AS col2
----
153

query I rowsort
SELECT DISTINCT + 90 + + 24 + - - 22 + 0
----
136

query I rowsort
SELECT DISTINCT 86 * ( - + 72 ) * + - 88
----
544896

onlyif mysql # aggregate syntax: 
query II rowsort label-8885
SELECT 68 * + 43, + COUNT( + - 59 ) * - - 40 AS col0
----
2924
40

skipif mysql # not compatible
query II rowsort label-8885
SELECT 68 * + 43, + COUNT ( + - 59 ) * - - 40 AS col0
----
2924
40

onlyif mysql # aggregate syntax: 
query II rowsort label-8886
SELECT ALL 21 * 22 AS col1, - COUNT( 33 ) AS col1
----
462
-1

skipif mysql # not compatible
query II rowsort label-8886
SELECT ALL 21 * 22 AS col1, - COUNT ( 33 ) AS col1
----
462
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8887
SELECT 75 + + COALESCE ( - - 13, 48 * + 23 - + 92, - NULLIF ( 81, + 51 ) * + MIN( DISTINCT + 4 ) + - 82 ) + - - 46 AS col1
----
134

skipif mysql # not compatible
query I rowsort label-8887
SELECT 75 + + COALESCE ( - - 13, 48 * + 23 - + 92, - NULLIF ( 81, + 51 ) * + MIN ( DISTINCT + 4 ) + - 82 ) + - - 46 AS col1
----
134

query I rowsort
SELECT DISTINCT - 55 * + 41 * + 8 AS col1
----
-18040

onlyif mysql # aggregate syntax: 
query I rowsort label-8889
SELECT ALL + 1 * 72 * + MAX( 18 ) * - + 41 + + COUNT( 76 ) AS col2
----
-53135

skipif mysql # not compatible
query I rowsort label-8889
SELECT ALL + 1 * 72 * + MAX ( 18 ) * - + 41 + + COUNT ( 76 ) AS col2
----
-53135

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT ALL - COUNT( ALL + - 60 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8890
SELECT ALL - COUNT ( ALL + - 60 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8891
SELECT CASE - + CAST( ( 28 ) AS SIGNED ) WHEN + 21 THEN NULL WHEN - + CAST( NULL AS SIGNED ) + 55 THEN - + 48 * - 42 ELSE NULL END + 85 + - 85 * - ( + 89 ) / - COUNT( * ) * + 8 * + + 33 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8891
SELECT CASE - + CAST ( ( 28 ) AS INTEGER ) WHEN + 21 THEN NULL WHEN - + CAST ( NULL AS INTEGER ) + 55 THEN - + 48 * - 42 ELSE NULL END + 85 + - 85 * - ( + 89 ) / - COUNT ( * ) * + 8 * + + 33 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT - 40 * + 49 * + + 24 + 32 / + MAX( 43 ) * - CASE - + COUNT( 49 ) WHEN COALESCE ( NULLIF ( 17, - ( - + ( 28 ) ) / + - 49 ), COUNT( * ) ) THEN + 25 WHEN 11 THEN ( + 9 ) WHEN COUNT( * ) THEN NULL END + - 15 + + 21 * 6
----
NULL

skipif mysql # not compatible
query I rowsort label-8892
SELECT - 40 * + 49 * + + 24 + 32 / + MAX ( 43 ) * - CASE - + COUNT ( 49 ) WHEN COALESCE ( NULLIF ( 17, - ( - + ( 28 ) ) / + - 49 ), COUNT ( * ) ) THEN + 25 WHEN 11 THEN ( + 9 ) WHEN COUNT ( * ) THEN NULL END + - 15 + + 21 * 6
----
NULL

query II rowsort
SELECT + 86 * - 93, 7 AS col1
----
-7998
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8894
SELECT CAST( NULL AS SIGNED ) * 28 + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-8894
SELECT CAST ( NULL AS INTEGER ) * 28 + 83
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8895
SELECT + COALESCE ( + + 13, - + ( - - 40 ) DIV + - 40 )
----
13

skipif mysql # not compatible
query I rowsort label-8895
SELECT + COALESCE ( + + 13, - + ( - - 40 ) / + - 40 )
----
13

query II rowsort
SELECT DISTINCT 35 * 18 col1, + 68 - - - 67 AS col1
----
630
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8897
SELECT SUM( ALL 28 ) col2
----
28

skipif mysql # not compatible
query I rowsort label-8897
SELECT SUM ( ALL 28 ) col2
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8898
SELECT DISTINCT 92 * - 48 * 81 col2, + 34 DIV - ( - COUNT( * ) )
----
-357696
34

skipif mysql # not compatible
query II rowsort label-8898
SELECT DISTINCT 92 * - 48 * 81 col2, + 34 / - ( - COUNT ( * ) )
----
-357696
34

onlyif mysql # aggregate syntax: 
query II rowsort label-8899
SELECT 88 * COUNT( * ) * + 47 AS col2, + ( 3 ) AS col2
----
4136
3

skipif mysql # not compatible
query II rowsort label-8899
SELECT 88 * COUNT ( * ) * + 47 AS col2, + ( 3 ) AS col2
----
4136
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8900
SELECT ALL - COUNT( 71 )
----
-1

skipif mysql # not compatible
query I rowsort label-8900
SELECT ALL - COUNT ( 71 )
----
-1

query II rowsort
SELECT ALL - 19 * 96 AS col1, - 96
----
-1824
-96

onlyif mysql # DIV for integer division: 
query II rowsort label-8902
SELECT 6 DIV - - 15, + 72 + 40 AS col1
----
0
112

skipif mysql # not compatible
query II rowsort label-8902
SELECT 6 / - - 15, + 72 + 40 AS col1
----
0
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8903
SELECT CAST( 55 AS SIGNED ) + + 90 - COUNT( * ) AS col1
----
144

skipif mysql # not compatible
query I rowsort label-8903
SELECT CAST ( 55 AS INTEGER ) + + 90 - COUNT ( * ) AS col1
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-8904
SELECT ALL - 76 + + 43 * COUNT( * ) * - - COUNT( * ) * - 52 AS col1
----
-2312

skipif mysql # not compatible
query I rowsort label-8904
SELECT ALL - 76 + + 43 * COUNT ( * ) * - - COUNT ( * ) * - 52 AS col1
----
-2312

query I rowsort
SELECT 43 - 2 * 33 AS col1
----
-23

query II rowsort
SELECT + 6 AS col0, 61 AS col2
----
6
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8907
SELECT 50 * COUNT( * ) col0
----
50

skipif mysql # not compatible
query I rowsort label-8907
SELECT 50 * COUNT ( * ) col0
----
50

query I rowsort
SELECT ALL + 4 * + 52 AS col2
----
208

query I rowsort
SELECT ALL 57 + + 8
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8910
SELECT ALL + 77 + - + COUNT( * ) + - - 80 AS col2
----
156

skipif mysql # not compatible
query I rowsort label-8910
SELECT ALL + 77 + - + COUNT ( * ) + - - 80 AS col2
----
156

query II rowsort
SELECT 95 AS col2, + 35 * 63 * - 99 * + - 76 col0
----
95
16590420

query II rowsort
SELECT 85 + + - 63 + 54, 50 AS col1
----
76
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8913
SELECT 88 - - - 50 + COUNT( * ) AS col0, - CAST( NULL AS SIGNED ) - - 62 AS col1
----
39
NULL

skipif mysql # not compatible
query II rowsort label-8913
SELECT 88 - - - 50 + COUNT ( * ) AS col0, - CAST ( NULL AS INTEGER ) - - 62 AS col1
----
39
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8914
SELECT ALL - 32 * COUNT( * ) * - 75 AS col2, 2 * 62
----
2400
124

skipif mysql # not compatible
query II rowsort label-8914
SELECT ALL - 32 * COUNT ( * ) * - 75 AS col2, 2 * 62
----
2400
124

onlyif mysql # aggregate syntax: 
query II rowsort label-8915
SELECT - 83 AS col2, + 79 * 69 + MAX( DISTINCT 29 ) AS col2
----
-83
5480

skipif mysql # not compatible
query II rowsort label-8915
SELECT - 83 AS col2, + 79 * 69 + MAX ( DISTINCT 29 ) AS col2
----
-83
5480

query II rowsort
SELECT 46 AS col0, + ( + - 23 ) + 97
----
46
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8917
SELECT DISTINCT - COUNT( * ) - + - 94
----
93

skipif mysql # not compatible
query I rowsort label-8917
SELECT DISTINCT - COUNT ( * ) - + - 94
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT ALL MIN( ALL - - 20 ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-8918
SELECT ALL MIN ( ALL - - 20 ) AS col0
----
20

query II rowsort
SELECT ALL 95, 74 col0
----
95
74

query I rowsort
SELECT DISTINCT - 14 - + + 63
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT DISTINCT 26 - SUM( 12 ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-8921
SELECT DISTINCT 26 - SUM ( 12 ) AS col1
----
14

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8922
SELECT CAST( NULL AS DECIMAL ) * + 44 * + + 96 * + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-8922
SELECT CAST ( NULL AS REAL ) * + 44 * + + 96 * + 62
----
NULL

query I rowsort
SELECT ALL + 75 * - 2 AS col2
----
-150

query II rowsort
SELECT 72 - + 15 * + - 68 AS col1, 58 * 9 + - 8
----
1092
514

query I rowsort
SELECT DISTINCT 23 * + + 69
----
1587

onlyif mysql # DIV for integer division: 
query I rowsort label-8926
SELECT - 25 DIV - + 41 + - + 72 AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-8926
SELECT - 25 / - + 41 + - + 72 AS col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8927
SELECT ALL COUNT( * ) * - 78 + + 69
----
-9

skipif mysql # not compatible
query I rowsort label-8927
SELECT ALL COUNT ( * ) * - 78 + + 69
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8928
SELECT ALL - ( - SUM( ALL - 68 ) ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-8928
SELECT ALL - ( - SUM ( ALL - 68 ) ) AS col0
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8929
SELECT ALL - SUM( ALL - 33 ) * + COUNT( * ) + - - ( - - 24 ) - - 79 + - 59 + + - 46 * CAST( COUNT( * ) AS SIGNED ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-8929
SELECT ALL - SUM ( ALL - 33 ) * + COUNT ( * ) + - - ( - - 24 ) - - 79 + - 59 + + - 46 * CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
31

query I rowsort
SELECT ALL - 98 * 35 + - 4 + - 6 - - 66
----
-3374

query I rowsort
SELECT - ( ( + 71 ) ) + + 37
----
-34

query I rowsort
SELECT + 74 * 46 AS col0
----
3404

onlyif mysql # aggregate syntax: 
query I rowsort label-8933
SELECT 18 * + COUNT( * ) * ( + 93 ) + - NULLIF ( + + 14, 69 ) AS col1
----
1660

skipif mysql # not compatible
query I rowsort label-8933
SELECT 18 * + COUNT ( * ) * ( + 93 ) + - NULLIF ( + + 14, 69 ) AS col1
----
1660

query I rowsort
SELECT ALL 53 * - 29 AS col1
----
-1537

onlyif mysql # aggregate syntax: 
query I rowsort label-8935
SELECT DISTINCT 46 * + COUNT( * ) * + - 24 AS col1
----
-1104

skipif mysql # not compatible
query I rowsort label-8935
SELECT DISTINCT 46 * + COUNT ( * ) * + - 24 AS col1
----
-1104

onlyif mysql # aggregate syntax: 
query I rowsort label-8936
SELECT + COUNT( 1 ) + 72
----
73

skipif mysql # not compatible
query I rowsort label-8936
SELECT + COUNT ( 1 ) + 72
----
73

query I rowsort
SELECT ALL ( 99 ) + 84
----
183

onlyif mysql # aggregate syntax: 
query II rowsort label-8938
SELECT SUM( DISTINCT - 12 ) AS col0, - 14 AS col2
----
-12
-14

skipif mysql # not compatible
query II rowsort label-8938
SELECT SUM ( DISTINCT - 12 ) AS col0, - 14 AS col2
----
-12
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8939
SELECT ALL - 45 + 23 - + CAST( ( + 46 ) AS SIGNED )
----
-68

skipif mysql # not compatible
query I rowsort label-8939
SELECT ALL - 45 + 23 - + CAST ( ( + 46 ) AS INTEGER )
----
-68

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8942
SELECT + 80 * - 17 + - - CAST( - - 31 AS SIGNED ) AS col1, 33 + - + 48 AS col2
----
-1329
-15

skipif mysql # not compatible
query II rowsort label-8942
SELECT + 80 * - 17 + - - CAST ( - - 31 AS INTEGER ) AS col1, 33 + - + 48 AS col2
----
-1329
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8943
SELECT + COUNT( * ) * - 95 AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-8943
SELECT + COUNT ( * ) * - 95 AS col1
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8944
SELECT ALL 4 - - CAST( - - 43 AS SIGNED ) + + - SUM( + 11 ) * ( COUNT( * ) ) * - - NULLIF ( + SUM( DISTINCT 10 ), 45 ) * MAX( ALL + + 1 )
----
-63

skipif mysql # not compatible
query I rowsort label-8944
SELECT ALL 4 - - CAST ( - - 43 AS INTEGER ) + + - SUM ( + 11 ) * ( COUNT ( * ) ) * - - NULLIF ( + SUM ( DISTINCT 10 ), 45 ) * MAX ( ALL + + 1 )
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8945
SELECT + ( 41 ) DIV + + 83 * - 69 AS col1, - COUNT( * ) + 18 AS col0
----
0
17

skipif mysql # not compatible
query II rowsort label-8945
SELECT + ( 41 ) / + + 83 * - 69 AS col1, - COUNT ( * ) + 18 AS col0
----
0
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8946
SELECT ALL + CASE - 82 WHEN - + NULLIF ( SUM( ALL - 7 ), - 39 ) THEN COUNT( * ) WHEN 5 THEN - 11 ELSE NULL END / + 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8946
SELECT ALL + CASE - 82 WHEN - + NULLIF ( SUM ( ALL - 7 ), - 39 ) THEN COUNT ( * ) WHEN 5 THEN - 11 ELSE NULL END / + 53 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8947
SELECT ALL COUNT( * ) DIV - + 51 * - MIN( ALL ( + 2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8947
SELECT ALL COUNT ( * ) / - + 51 * - MIN ( ALL ( + 2 ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8948
SELECT - 56 DIV + 13
----
-4

skipif mysql # not compatible
query I rowsort label-8948
SELECT - 56 / + 13
----
-4

query I rowsort
SELECT - 73 + + 42 + - 34 AS col1
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-8950
SELECT - 32 * 4 DIV - + 28 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-8950
SELECT - 32 * 4 / - + 28 AS col2
----
4

query II rowsort
SELECT - 49 + 95 AS col1, + ( + - 97 ) + + - ( 80 ) AS col0
----
46
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-8952
SELECT - COUNT( 46 ) + COUNT( * ) + - 13 * - 56 AS col0
----
728

skipif mysql # not compatible
query I rowsort label-8952
SELECT - COUNT ( 46 ) + COUNT ( * ) + - 13 * - 56 AS col0
----
728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8953
SELECT - 59 * CAST( NULL AS SIGNED ) + - 30 * - + 18 * - ( 53 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8953
SELECT - 59 * CAST ( NULL AS INTEGER ) + - 30 * - + 18 * - ( 53 ) col0
----
NULL

query I rowsort
SELECT - 29 * + 1
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8955
SELECT - - 18 - - - 15 + CASE 54 WHEN - 41 * - 25 * CAST( NULL AS SIGNED ) THEN 64 WHEN - - COUNT( 44 ) * - - 36 - + 95 + + + COUNT( * ) THEN NULL WHEN + NULLIF ( 65, - 65 ) * 88 THEN NULL ELSE NULL END * - 19 / - - CAST( NULL AS SIGNED ) / + 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8955
SELECT - - 18 - - - 15 + CASE 54 WHEN - 41 * - 25 * CAST ( NULL AS INTEGER ) THEN 64 WHEN - - COUNT ( 44 ) * - - 36 - + 95 + + + COUNT ( * ) THEN NULL WHEN + NULLIF ( 65, - 65 ) * 88 THEN NULL ELSE NULL END * - 19 / - - CAST ( NULL AS INTEGER ) / + 56 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT DISTINCT CASE + + 28 WHEN - - 67 THEN + - 30 WHEN + 16 * - MIN( ALL + + 94 ) THEN NULL ELSE ( - 25 ) END
----
-25

skipif mysql # not compatible
query I rowsort label-8956
SELECT DISTINCT CASE + + 28 WHEN - - 67 THEN + - 30 WHEN + 16 * - MIN ( ALL + + 94 ) THEN NULL ELSE ( - 25 ) END
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8957
SELECT ALL + + 64 + + + COUNT( * ) DIV + 35 * - + 81 AS col0, + 64 - - CAST( 43 AS SIGNED ) + + 78 * + 38
----
64
3071

skipif mysql # not compatible
query II rowsort label-8957
SELECT ALL + + 64 + + + COUNT ( * ) / + 35 * - + 81 AS col0, + 64 - - CAST ( 43 AS INTEGER ) + + 78 * + 38
----
64
3071

onlyif mysql # aggregate syntax: 
query I rowsort label-8958
SELECT - + 58 + + MIN( + 47 ) - + + 97 + CASE + 98 WHEN 97 * + 99 THEN 71 END * ( 52 ) * + 23 + + 71 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8958
SELECT - + 58 + + MIN ( + 47 ) - + + 97 + CASE + 98 WHEN 97 * + 99 THEN 71 END * ( 52 ) * + 23 + + 71 AS col2
----
NULL

query I rowsort
SELECT - 31 + 52 + ( - 83 ) * - + 58 AS col1
----
4835

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8960
SELECT 33 * - ( + + CASE - 0 WHEN 55 THEN - SUM( DISTINCT + - ( - + 7 ) ) * + 70 WHEN + 66 THEN NULL WHEN + CAST( NULL AS SIGNED ) * 24 * - 2 + 45 + - + 38 + COUNT( * ) + + 44 * 33 THEN NULL WHEN - COUNT( * ) * COALESCE ( COALESCE ( 1, - 31 - 54 * 55 ), 92 ) THEN NULL END ) - - 3 + + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-8960
SELECT 33 * - ( + + CASE - 0 WHEN 55 THEN - SUM ( DISTINCT + - ( - + 7 ) ) * + 70 WHEN + 66 THEN NULL WHEN + CAST ( NULL AS INTEGER ) * 24 * - 2 + 45 + - + 38 + COUNT ( * ) + + 44 * 33 THEN NULL WHEN - COUNT ( * ) * COALESCE ( COALESCE ( 1, - 31 - 54 * 55 ), 92 ) THEN NULL END ) - - 3 + + 79
----
NULL

query I rowsort
SELECT DISTINCT + 69 * + 51 * 14
----
49266

query I rowsort
SELECT ALL - 36 * + - CASE WHEN NOT 42 IS NULL THEN + 82 END AS col1
----
2952

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8963
SELECT DISTINCT - - 17 * - ( + + 55 ) * - 56 + - + COUNT( * ) DIV 15
----
52360

skipif mysql # not compatible
query I rowsort label-8963
SELECT DISTINCT - - 17 * - ( + + 55 ) * - 56 + - + COUNT ( * ) / 15
----
52360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8964
SELECT ALL + + 51 * - + 43 * - + 19 * + 60 / - CAST( NULL AS SIGNED ) + + 82 + - 73 * + 28 * + + COUNT( * ) + ( + 78 ) + 40 / - 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8964
SELECT ALL + + 51 * - + 43 * - + 19 * + 60 / - CAST ( NULL AS INTEGER ) + + 82 + - 73 * + 28 * + + COUNT ( * ) + ( + 78 ) + 40 / - 3 AS col2
----
NULL

query I rowsort
SELECT + 70 * + 31
----
2170

query I rowsort
SELECT + COALESCE ( + 59, 75 ) * - + 38
----
-2242

query I rowsort
SELECT COALESCE ( ( + + 39 ), + 80 ) AS col0
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8968
SELECT CASE - 39 WHEN - + 4 THEN NULL WHEN + COUNT( * ) THEN ( + 21 ) ELSE + - 10 + - - COALESCE ( + 58, CAST( + 6 AS SIGNED ) - - COALESCE ( - - 96, - 6, + 65 ), + 79 ) END
----
48

skipif mysql # not compatible
query I rowsort label-8968
SELECT CASE - 39 WHEN - + 4 THEN NULL WHEN + COUNT ( * ) THEN ( + 21 ) ELSE + - 10 + - - COALESCE ( + 58, CAST ( + 6 AS INTEGER ) - - COALESCE ( - - 96, - 6, + 65 ), + 79 ) END
----
48

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8969
SELECT ALL 26 * + 73 - - - CASE - 77 WHEN + 2 * - + 97 THEN + - CAST( - 49 AS DECIMAL ) ELSE NULL END * - - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-8969
SELECT ALL 26 * + 73 - - - CASE - 77 WHEN + 2 * - + 97 THEN + - CAST ( - 49 AS REAL ) ELSE NULL END * - - 62
----
NULL

query I rowsort
SELECT + COALESCE ( - 79, - 70 + - + 2 ) * - + 90 col1
----
7110

query I rowsort
SELECT + 86 - 49
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8972
SELECT CASE - 7 WHEN - + 33 THEN NULL WHEN 66 - + + COUNT( * ) THEN - 69 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8972
SELECT CASE - 7 WHEN - + 33 THEN NULL WHEN 66 - + + COUNT ( * ) THEN - 69 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT DISTINCT COUNT( * ) * - - 45 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-8973
SELECT DISTINCT COUNT ( * ) * - - 45 AS col0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8974
SELECT + CAST( NULL AS SIGNED ) * - - NULLIF ( 75, + - 69 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8974
SELECT + CAST ( NULL AS INTEGER ) * - - NULLIF ( 75, + - 69 )
----
NULL

query I rowsort
SELECT - ( - - 82 ) AS col2
----
-82

query I rowsort
SELECT + 57 + + 82 * - 37 * + + 13 AS col2
----
-39385

onlyif mysql # aggregate syntax: 
query I rowsort label-8977
SELECT MIN( + 7 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-8977
SELECT MIN ( + 7 ) AS col0
----
7

query I rowsort
SELECT ALL + 73 + 99 AS col1
----
172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8979
SELECT ALL + CASE + + COUNT( ALL + 26 ) WHEN - CASE + 89 WHEN + - 82 THEN NULL ELSE + - 61 END THEN + + CAST( + - 9 AS SIGNED ) WHEN - ( - 92 ) + 92 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8979
SELECT ALL + CASE + + COUNT ( ALL + 26 ) WHEN - CASE + 89 WHEN + - 82 THEN NULL ELSE + - 61 END THEN + + CAST ( + - 9 AS INTEGER ) WHEN - ( - 92 ) + 92 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 92 + 10 + + 67 - + 29
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-8981
SELECT DISTINCT 58 DIV - 6 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-8981
SELECT DISTINCT 58 / - 6 AS col0
----
-9

query I rowsort
SELECT ALL 63 + - 64 col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8983
SELECT - CASE - - COUNT( * ) WHEN 33 + - 18 THEN CASE - 12 WHEN + NULLIF ( - 23, - CAST( + 55 AS SIGNED ) ) THEN NULL WHEN - 11 + 8 * + COUNT( * ) THEN - 35 END + + 20 * + 81 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8983
SELECT - CASE - - COUNT ( * ) WHEN 33 + - 18 THEN CASE - 12 WHEN + NULLIF ( - 23, - CAST ( + 55 AS INTEGER ) ) THEN NULL WHEN - 11 + 8 * + COUNT ( * ) THEN - 35 END + + 20 * + 81 END AS col1
----
NULL

query I rowsort
SELECT + 46 + - 31
----
15

query I rowsort
SELECT ALL - 32 + - - 1
----
-31

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

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

query I rowsort
SELECT - 29 * + - 84 col2
----
2436

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8988
SELECT + + 51 - + - CAST( NULL AS SIGNED ) + + 32 * 84 + - COALESCE ( + 18, ( 65 ) * + 69 - + CAST( - - 71 AS SIGNED ), - 48, + + 71 * 78 ) * + ( + 21 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8988
SELECT + + 51 - + - CAST ( NULL AS INTEGER ) + + 32 * 84 + - COALESCE ( + 18, ( 65 ) * + 69 - + CAST ( - - 71 AS INTEGER ), - 48, + + 71 * 78 ) * + ( + 21 )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT ALL + CASE - 10 WHEN - 6 - 76 THEN + + 90 ELSE NULL END + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8990
SELECT ALL + CASE - 10 WHEN - 6 - 76 THEN + + 90 ELSE NULL END + - COUNT ( * ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8992
SELECT ALL - 96 + + ( + - 99 ) + MAX( - 94 ) AS col0
----
-289

skipif mysql # not compatible
query I rowsort label-8992
SELECT ALL - 96 + + ( + - 99 ) + MAX ( - 94 ) AS col0
----
-289

onlyif mysql # aggregate syntax: 
query I rowsort label-8993
SELECT ALL - - 57 - + 90 - 64 + + COUNT( * ) + 43 * + 27 * - + ( 71 ) * - COUNT( * )
----
82335

skipif mysql # not compatible
query I rowsort label-8993
SELECT ALL - - 57 - + 90 - 64 + + COUNT ( * ) + 43 * + 27 * - + ( 71 ) * - COUNT ( * )
----
82335

onlyif mysql # aggregate syntax: 
query I rowsort label-8994
SELECT DISTINCT - + MIN( DISTINCT + 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-8994
SELECT DISTINCT - + MIN ( DISTINCT + 32 )
----
-32

query II rowsort
SELECT ALL - 32 AS col1, + 72 AS col1
----
-32
72

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

skipif mysql # not compatible
query I rowsort label-8996
SELECT COUNT ( * ) * - 23 - + COUNT ( * ) AS col2
----
-24

query II rowsort
SELECT 49 * + 32, + 99 AS col0
----
1568
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT 53 + + MAX( 56 )
----
109

skipif mysql # not compatible
query I rowsort label-8998
SELECT 53 + + MAX ( 56 )
----
109

onlyif mysql # DIV for integer division: 
query I rowsort label-8999
SELECT + 35 DIV + - 98 + - 12 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-8999
SELECT + 35 / + - 98 + - 12 AS col0
----
-12

query I rowsort
SELECT 98 + - 94 col0
----
4

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

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

query I rowsort
SELECT ALL - 73 * + - 81 * - - 69 AS col2
----
407997

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9003
SELECT DISTINCT - 0 / - ( + + NULLIF ( COUNT( * ), - 53 - + - 92 ) ) * + + 29 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9003
SELECT DISTINCT - 0 / - ( + + NULLIF ( COUNT ( * ), - 53 - + - 92 ) ) * + + 29 * - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + 71 AS col0, 65 AS col0
----
71
65

query I rowsort
SELECT 88 + + - 81
----
7

query I rowsort
SELECT ALL - 82 * + 55 AS col1
----
-4510

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

skipif mysql # not compatible
query I rowsort label-9007
SELECT ALL - 73 * + COUNT ( * ) AS col2
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-9008
SELECT COUNT( * ) * - 5 AS col0, + 60 * + 41 AS col2
----
-5
2460

skipif mysql # not compatible
query II rowsort label-9008
SELECT COUNT ( * ) * - 5 AS col0, + 60 * + 41 AS col2
----
-5
2460

query II rowsort
SELECT + 33 AS col0, + 25 col0
----
33
25

onlyif mysql # aggregate syntax: 
query II rowsort label-9010
SELECT 13 + - 85 AS col1, 83 + CASE COUNT( * ) WHEN - COUNT( * ) THEN + + 67 ELSE NULL END
----
-72
NULL

skipif mysql # not compatible
query II rowsort label-9010
SELECT 13 + - 85 AS col1, 83 + CASE COUNT ( * ) WHEN - COUNT ( * ) THEN + + 67 ELSE NULL END
----
-72
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT - 34 * - COALESCE ( + ( + 20 ), + COALESCE ( + - 45, - 12 ) ) + - - SUM( 93 ) * - + 33 + + COUNT( * ) - - - ( + 39 ) - + COUNT( * )
----
-2428

skipif mysql # not compatible
query I rowsort label-9011
SELECT - 34 * - COALESCE ( + ( + 20 ), + COALESCE ( + - 45, - 12 ) ) + - - SUM ( 93 ) * - + 33 + + COUNT ( * ) - - - ( + 39 ) - + COUNT ( * )
----
-2428

query II rowsort
SELECT ALL - 58, 89 * + 90 + 27 + 31 AS col2
----
-58
8068

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9013
SELECT MAX( + + 28 ) * 96 * - 17 * + COALESCE ( COUNT( * ), 69 * 28 ) DIV - COUNT( * ) AS col1
----
45696

skipif mysql # not compatible
query I rowsort label-9013
SELECT MAX ( + + 28 ) * 96 * - 17 * + COALESCE ( COUNT ( * ), 69 * 28 ) / - COUNT ( * ) AS col1
----
45696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9014
SELECT ( + + 78 ) * - 97 * COALESCE ( + + CAST( NULL AS SIGNED ), + COUNT( * ) + - 57 * - 31, ( - 78 ) )
----
-13376688

skipif mysql # not compatible
query I rowsort label-9014
SELECT ( + + 78 ) * - 97 * COALESCE ( + + CAST ( NULL AS INTEGER ), + COUNT ( * ) + - 57 * - 31, ( - 78 ) )
----
-13376688

onlyif mysql # aggregate syntax: 
query I rowsort label-9015
SELECT DISTINCT - 38 + - + 14 + + - 17 * - - 40 + + 15 - - 7 * + ( - 98 ) * - COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-9015
SELECT DISTINCT - 38 + - + 14 + + - 17 * - - 40 + + 15 - - 7 * + ( - 98 ) * - COUNT ( * )
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-9016
SELECT DISTINCT 90 + + 50 DIV + - 80 * - 71 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-9016
SELECT DISTINCT 90 + + 50 / + - 80 * - 71 AS col1
----
90

query I rowsort
SELECT ALL + + 93 + - - 60 AS col1
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-9018
SELECT ALL 8 + COUNT( + ( + 75 ) ) + 96
----
105

skipif mysql # not compatible
query I rowsort label-9018
SELECT ALL 8 + COUNT ( + ( + 75 ) ) + 96
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9019
SELECT ALL 47 * - + NULLIF ( + 53, - - 90 + + COUNT( * ) + - 82 * + - 66 - - ( + 33 ) + AVG ( + 93 ) / - + 20 / 12 + - - 49 * 73 * - 60 + - 46 + - 67 * + 17 ) / + + COUNT( * ) + + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9019
SELECT ALL 47 * - + NULLIF ( + 53, - - 90 + + COUNT ( * ) + - 82 * + - 66 - - ( + 33 ) + AVG ( + 93 ) / - + 20 / 12 + - - 49 * 73 * - 60 + - 46 + - 67 * + 17 ) / + + COUNT ( * ) + + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9020
SELECT DISTINCT 52 + + 78 * + 86 * + ( - COUNT( * ) ) AS col0
----
-6656

skipif mysql # not compatible
query I rowsort label-9020
SELECT DISTINCT 52 + + 78 * + 86 * + ( - COUNT ( * ) ) AS col0
----
-6656

query I rowsort
SELECT NULLIF ( + 71, - 80 * - + CASE + 61 WHEN - + 6 / 29 + + 3 THEN NULL ELSE - 72 END ) + + 66 AS col0
----
137

query I rowsort
SELECT ALL + ( - 63 ) + 93 col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT 85 + + MAX( + + 68 )
----
153

skipif mysql # not compatible
query I rowsort label-9023
SELECT 85 + + MAX ( + + 68 )
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-9024
SELECT + COUNT( DISTINCT 76 ) + - - 89 + + 19 AS col0
----
109

skipif mysql # not compatible
query I rowsort label-9024
SELECT + COUNT ( DISTINCT 76 ) + - - 89 + + 19 AS col0
----
109

query II rowsort
SELECT DISTINCT 76 col2, + 3
----
76
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT 18 + CASE + NULLIF ( - 31, - + 56 - 30 / - - 24 + 2 ) WHEN 72 THEN - 32 ELSE SUM( DISTINCT 85 ) + + 13 END AS col0
----
116

skipif mysql # not compatible
query I rowsort label-9026
SELECT 18 + CASE + NULLIF ( - 31, - + 56 - 30 / - - 24 + 2 ) WHEN 72 THEN - 32 ELSE SUM ( DISTINCT 85 ) + + 13 END AS col0
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT ALL 36 - COUNT( * ) + - + ( + + 53 )
----
-18

skipif mysql # not compatible
query I rowsort label-9027
SELECT ALL 36 - COUNT ( * ) + - + ( + + 53 )
----
-18

query I rowsort
SELECT ALL - + 5 - + - 95 * 62 * - - ( + 32 ) AS col0
----
188475

query II rowsort
SELECT ALL - 54 AS col2, 1
----
-54
1

query I rowsort
SELECT + 2 + + - 31
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-9031
SELECT 57 * - 55 + + 52 + + 82 AS col0, COUNT( * ) col1
----
-3001
1

skipif mysql # not compatible
query II rowsort label-9031
SELECT 57 * - 55 + + 52 + + 82 AS col0, COUNT ( * ) col1
----
-3001
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9032
SELECT + COALESCE ( + CAST( 65 AS SIGNED ), + 61 )
----
65

skipif mysql # not compatible
query I rowsort label-9032
SELECT + COALESCE ( + CAST ( 65 AS INTEGER ), + 61 )
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-9033
SELECT ALL 28 * NULLIF ( 49, - + COALESCE ( - 89, + 76 + 83 ) ) DIV 40 * - COALESCE ( 86, + - 74 ) AS col2
----
-2924

skipif mysql # not compatible
query I rowsort label-9033
SELECT ALL 28 * NULLIF ( 49, - + COALESCE ( - 89, + 76 + 83 ) ) / 40 * - COALESCE ( 86, + - 74 ) AS col2
----
-2924

onlyif mysql # aggregate syntax: 
query II rowsort label-9034
SELECT MIN( DISTINCT + 34 ) col1, + 39
----
34
39

skipif mysql # not compatible
query II rowsort label-9034
SELECT MIN ( DISTINCT + 34 ) col1, + 39
----
34
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9035
SELECT ALL - COUNT( DISTINCT - 64 ) * + 26 * 38 AS col1
----
-988

skipif mysql # not compatible
query I rowsort label-9035
SELECT ALL - COUNT ( DISTINCT - 64 ) * + 26 * 38 AS col1
----
-988

query I rowsort
SELECT ALL 93 * - 32 * + - 46 col2
----
136896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9037
SELECT 97 * COALESCE ( + NULLIF ( CASE - - 39 WHEN - 7 + 45 THEN COUNT( * ) + - + 39 ELSE + 51 * + 64 + + 66 END, NULLIF ( - COUNT( * ), - + CAST( - + COALESCE ( 47, + + 96 + - + 12 + - - COUNT( * ), - 58 + MAX( ALL 41 ) * - COALESCE ( AVG ( ALL - 57 ), 88 ) ) AS SIGNED ) * + ( + COUNT( * ) ) ) ), + 64 ) AS col1
----
323010

skipif mysql # not compatible
query I rowsort label-9037
SELECT 97 * COALESCE ( + NULLIF ( CASE - - 39 WHEN - 7 + 45 THEN COUNT ( * ) + - + 39 ELSE + 51 * + 64 + + 66 END, NULLIF ( - COUNT ( * ), - + CAST ( - + COALESCE ( 47, + + 96 + - + 12 + - - COUNT ( * ), - 58 + MAX ( ALL 41 ) * - COALESCE ( AVG ( ALL - 57 ), 88 ) ) AS INTEGER ) * + ( + COUNT ( * ) ) ) ), + 64 ) AS col1
----
323010

onlyif mysql # aggregate syntax: 
query I rowsort label-9038
SELECT ( SUM( DISTINCT - - 21 ) ) + + 3 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-9038
SELECT ( SUM ( DISTINCT - - 21 ) ) + + 3 AS col2
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9039
SELECT - 92 * - + ( + CAST( NULL AS SIGNED ) ) + + - 31 * 71
----
NULL

skipif mysql # not compatible
query I rowsort label-9039
SELECT - 92 * - + ( + CAST ( NULL AS INTEGER ) ) + + - 31 * 71
----
NULL

query II rowsort
SELECT 23 * - 30 AS col0, - CASE - 49 WHEN 69 THEN NULL WHEN + 5 THEN + 74 END col1
----
-690
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9041
SELECT ALL - 51 DIV - - 44 col2
----
-1

skipif mysql # not compatible
query I rowsort label-9041
SELECT ALL - 51 / - - 44 col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9042
SELECT DISTINCT - ( - CAST( 15 AS SIGNED ) ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-9042
SELECT DISTINCT - ( - CAST ( 15 AS INTEGER ) ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-9043
SELECT - CASE - - COUNT( * ) WHEN 28 THEN + 0 + COUNT( * ) WHEN - 32 THEN NULL END * + 17 + 5 - + + 82 + + 88 * - 89 / + 45, 83 AS col2
----
NULL
83

skipif mysql # not compatible
query II rowsort label-9043
SELECT - CASE - - COUNT ( * ) WHEN 28 THEN + 0 + COUNT ( * ) WHEN - 32 THEN NULL END * + 17 + 5 - + + 82 + + 88 * - 89 / + 45, 83 AS col2
----
NULL
83

query I rowsort
SELECT ALL + 79 + - ( 32 )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9045
SELECT ALL - COALESCE ( - 44, MIN( + 40 ) ) + + COUNT( ALL + - 12 )
----
45

skipif mysql # not compatible
query I rowsort label-9045
SELECT ALL - COALESCE ( - 44, MIN ( + 40 ) ) + + COUNT ( ALL + - 12 )
----
45

query I rowsort
SELECT 22 + 2 + - 55 * - 24 * 66
----
87144

query I rowsort
SELECT DISTINCT + 34 * + 2 AS col2
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9048
SELECT - + NULLIF ( - CASE - 52 WHEN + + 69 + 2 * + + 87 + - - COUNT( * ) + - + 45 THEN NULL WHEN + + 87 * + 82 + + CAST( NULL AS SIGNED ) THEN NULL WHEN 74 THEN + COUNT( * ) - 41 END, + 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9048
SELECT - + NULLIF ( - CASE - 52 WHEN + + 69 + 2 * + + 87 + - - COUNT ( * ) + - + 45 THEN NULL WHEN + + 87 * + 82 + + CAST ( NULL AS INTEGER ) THEN NULL WHEN 74 THEN + COUNT ( * ) - 41 END, + 11 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9049
SELECT COUNT( * ) - - 91 * + 5 + 71 DIV - + 82 + ( - 69 ) AS col2, 39 AS col0
----
387
39

skipif mysql # not compatible
query II rowsort label-9049
SELECT COUNT ( * ) - - 91 * + 5 + 71 / - + 82 + ( - 69 ) AS col2, 39 AS col0
----
387
39

query I rowsort
SELECT - CASE + - 67 WHEN ( - 32 ) - + 99 * 32 / - 72 THEN - 86 WHEN - 90 * 65 THEN - 89 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9051
SELECT CAST( NULL AS SIGNED ) + + - 80 + - NULLIF ( + - 87, + + 18 ) + 9 - + - 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9051
SELECT CAST ( NULL AS INTEGER ) + + - 80 + - NULLIF ( + - 87, + + 18 ) + 9 - + - 7 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9052
SELECT ALL - 49 - 39 * - + COUNT( * ) + - MAX( DISTINCT - 24 ) DIV + - 5 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-9052
SELECT ALL - 49 - 39 * - + COUNT ( * ) + - MAX ( DISTINCT - 24 ) / + - 5 AS col0
----
-14

query I rowsort
SELECT + + 69 * - 66 + + 16 AS col1
----
-4538

query I rowsort
SELECT DISTINCT 26 * + ( + 53 )
----
1378

onlyif mysql # aggregate syntax: 
query I rowsort label-9055
SELECT ALL + 88 - - 77 * - + COUNT( DISTINCT 31 ) * 50
----
-3762

skipif mysql # not compatible
query I rowsort label-9055
SELECT ALL + 88 - - 77 * - + COUNT ( DISTINCT 31 ) * 50
----
-3762

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9056
SELECT - 53 DIV - COUNT( * ) col0
----
53

skipif mysql # not compatible
query I rowsort label-9056
SELECT - 53 / - COUNT ( * ) col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9057
SELECT + 11 + - - COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-9057
SELECT + 11 + - - COUNT ( * )
----
12

query I rowsort
SELECT + 75 * - 82 AS col1
----
-6150

onlyif mysql # aggregate syntax: 
query II rowsort label-9059
SELECT DISTINCT + 20, 5 * - COUNT( * ) AS col0
----
20
-5

skipif mysql # not compatible
query II rowsort label-9059
SELECT DISTINCT + 20, 5 * - COUNT ( * ) AS col0
----
20
-5

query I rowsort
SELECT + 81 * + 23 AS col1
----
1863

onlyif mysql # aggregate syntax: 
query II rowsort label-9061
SELECT + COUNT( * ) * + 40 + + + 54 AS col1, + 92
----
94
92

skipif mysql # not compatible
query II rowsort label-9061
SELECT + COUNT ( * ) * + 40 + + + 54 AS col1, + 92
----
94
92

onlyif mysql # aggregate syntax: 
query II rowsort label-9062
SELECT ALL 51 * ( + COUNT( * ) ) + - 27 * 76 * 12, 65 AS col1
----
-24573
65

skipif mysql # not compatible
query II rowsort label-9062
SELECT ALL 51 * ( + COUNT ( * ) ) + - 27 * 76 * 12, 65 AS col1
----
-24573
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT DISTINCT + NULLIF ( - 33, + 71 ) * - + 19 + - + MAX( - 40 )
----
667

skipif mysql # not compatible
query I rowsort label-9063
SELECT DISTINCT + NULLIF ( - 33, + 71 ) * - + 19 + - + MAX ( - 40 )
----
667

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9064
SELECT 55 / + + 93 + - - CAST( NULL AS SIGNED ) AS col0, - 99 * - 67
----
NULL
6633

skipif mysql # not compatible
query II rowsort label-9064
SELECT 55 / + + 93 + - - CAST ( NULL AS INTEGER ) AS col0, - 99 * - 67
----
NULL
6633

query I rowsort
SELECT 19 * - + 94 + ( - + 78 ) AS col0
----
-1864

query I rowsort
SELECT CASE WHEN NOT NULL NOT BETWEEN + 54 AND NULL THEN - 98 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9067
SELECT DISTINCT - 96 * - COUNT( * ) + + 73
----
169

skipif mysql # not compatible
query I rowsort label-9067
SELECT DISTINCT - 96 * - COUNT ( * ) + + 73
----
169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9068
SELECT 20 * ( - 91 ) * + + 7 + + COALESCE ( + 15, - 33 + + 88, 63 ) * + CAST( NULL AS SIGNED ) + - + 20 + + NULLIF ( - ( - + 76 ), 57 + - 61 ) - + 45 + - 38 + + + 49 + - 28 * - COUNT( DISTINCT + - 99 ) * 51 * 17 * + COALESCE ( + 47, - 3 + - 86, 17 * 93 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9068
SELECT 20 * ( - 91 ) * + + 7 + + COALESCE ( + 15, - 33 + + 88, 63 ) * + CAST ( NULL AS INTEGER ) + - + 20 + + NULLIF ( - ( - + 76 ), 57 + - 61 ) - + 45 + - 38 + + + 49 + - 28 * - COUNT ( DISTINCT + - 99 ) * 51 * 17 * + COALESCE ( + 47, - 3 + - 86, 17 * 93 ) AS col0
----
NULL

query I rowsort
SELECT NULLIF ( + 35, + 3 * 35 ) AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9070
SELECT - COUNT( * ) * + ( - + 64 ) + - + SUM( DISTINCT + 79 )
----
-15

skipif mysql # not compatible
query I rowsort label-9070
SELECT - COUNT ( * ) * + ( - + 64 ) + - + SUM ( DISTINCT + 79 )
----
-15

query I rowsort
SELECT DISTINCT 38 * - + 7
----
-266

query I rowsort
SELECT DISTINCT + 19 * + 92 + + 40 * 69 + - 20
----
4488

onlyif mysql # aggregate syntax: 
query I rowsort label-9073
SELECT + 85 + + MAX( DISTINCT - 98 )
----
-13

skipif mysql # not compatible
query I rowsort label-9073
SELECT + 85 + + MAX ( DISTINCT - 98 )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT + - 47 * - - CASE + + COUNT( ALL 83 ) WHEN 87 * + 38 THEN 1 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9074
SELECT + - 47 * - - CASE + + COUNT ( ALL 83 ) WHEN 87 * + 38 THEN 1 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9075
SELECT - 47 * - CAST( - 44 AS SIGNED ) + + NULLIF ( - - CAST( NULL AS DECIMAL ), - - 57 * + 90 ) * + 46 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9075
SELECT - 47 * - CAST ( - 44 AS INTEGER ) + + NULLIF ( - - CAST ( NULL AS REAL ), - - 57 * + 90 ) * + 46 col2
----
NULL

query II rowsort
SELECT - 93 AS col0, - ( + 85 ) col2
----
-93
-85

query I rowsort
SELECT ( + 31 ) * 19 + - 5 - 91 / CASE - 83 WHEN 65 + - - 58 THEN - 75 ELSE NULL END AS col0
----
NULL

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

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

query I rowsort
SELECT - 26 * + 92
----
-2392

query I rowsort
SELECT - - 64 + - COALESCE ( - - 2, - - 40 )
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-9081
SELECT DISTINCT + - 96 DIV + 97
----
0

skipif mysql # not compatible
query I rowsort label-9081
SELECT DISTINCT + - 96 / + 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9082
SELECT - - COUNT( * ) * - - 23
----
23

skipif mysql # not compatible
query I rowsort label-9082
SELECT - - COUNT ( * ) * - - 23
----
23

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9084
SELECT DISTINCT - COUNT( * ) * + MIN( DISTINCT - - 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-9084
SELECT DISTINCT - COUNT ( * ) * + MIN ( DISTINCT - - 16 )
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9085
SELECT ALL COALESCE ( - CAST( NULL AS SIGNED ), - COUNT( * ) * + MAX( DISTINCT + 76 ) + + 1 * + + 29 ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-9085
SELECT ALL COALESCE ( - CAST ( NULL AS INTEGER ), - COUNT ( * ) * + MAX ( DISTINCT + 76 ) + + 1 * + + 29 ) AS col1
----
-47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9086
SELECT - MIN( DISTINCT - - CAST( NULL AS DECIMAL ) ) + + 50 AS col1, - 99 + + - 69
----
NULL
-168

skipif mysql # not compatible
query II rowsort label-9086
SELECT - MIN ( DISTINCT - - CAST ( NULL AS REAL ) ) + + 50 AS col1, - 99 + + - 69
----
NULL
-168

query II rowsort
SELECT - ( - - 56 ) * + 18 AS col2, + ( + 26 ) - + 40
----
-1008
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9088
SELECT + 12 + + 67 + + 8 * - CAST( NULL AS SIGNED ) * MAX( - - 37 ) * - - MIN( + 97 ) + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9088
SELECT + 12 + + 67 + + 8 * - CAST ( NULL AS INTEGER ) * MAX ( - - 37 ) * - - MIN ( + 97 ) + + COUNT ( * ) AS col1
----
NULL

query II rowsort
SELECT ALL + 63, ( 84 ) AS col0
----
63
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9090
SELECT ALL ( 36 ) AS col2, + ( + COALESCE ( 50, - 23 DIV - 89, 70 ) ) + + COUNT( * ) AS col1
----
36
51

skipif mysql # not compatible
query II rowsort label-9090
SELECT ALL ( 36 ) AS col2, + ( + COALESCE ( 50, - 23 / - 89, 70 ) ) + + COUNT ( * ) AS col1
----
36
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9091
SELECT - CASE 5 WHEN + - COUNT( * ) THEN + 38 * - CAST( NULL AS SIGNED ) + + - 90 ELSE NULL END * + 38 + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9091
SELECT - CASE 5 WHEN + - COUNT ( * ) THEN + 38 * - CAST ( NULL AS INTEGER ) + + - 90 ELSE NULL END * + 38 + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL + 87 + + 96
----
183

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9094
SELECT DISTINCT + CAST( - - SUM( - - 82 ) AS SIGNED )
----
82

skipif mysql # not compatible
query I rowsort label-9094
SELECT DISTINCT + CAST ( - - SUM ( - - 82 ) AS INTEGER )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9095
SELECT DISTINCT + COUNT( ALL - ( 92 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9095
SELECT DISTINCT + COUNT ( ALL - ( 92 ) ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-9096
SELECT + 67 * + - 48, 98 DIV + 69 AS col1
----
-3216
1

skipif mysql # not compatible
query II rowsort label-9096
SELECT + 67 * + - 48, 98 / + 69 AS col1
----
-3216
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9097
SELECT + ( + 60 ) col0, 6 * - - ( COUNT( * ) ) * + - 14 - - 76 + + 39
----
60
31

skipif mysql # not compatible
query II rowsort label-9097
SELECT + ( + 60 ) col0, 6 * - - ( COUNT ( * ) ) * + - 14 - - 76 + + 39
----
60
31

onlyif mysql # DIV for integer division: 
query I rowsort label-9098
SELECT DISTINCT + 59 DIV + 30 DIV - 1 + + 55 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-9098
SELECT DISTINCT + 59 / + 30 / - 1 + + 55 AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT - 96 * - 14 + 45 + - - ( + 82 ) + + + 86 * + - 76 * + 99 * + + COUNT( * ) * + 29
----
-18763385

skipif mysql # not compatible
query I rowsort label-9099
SELECT - 96 * - 14 + 45 + - - ( + 82 ) + + + 86 * + - 76 * + 99 * + + COUNT ( * ) * + 29
----
-18763385

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-9102
SELECT 54 DIV - + 98 - + - 3 DIV 8 + + 74 + + 39 + 54 AS col2, ( + 42 ) AS col0
----
167
42

skipif mysql # not compatible
query II rowsort label-9102
SELECT 54 / - + 98 - + - 3 / 8 + + 74 + + 39 + 54 AS col2, ( + 42 ) AS col0
----
167
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9103
SELECT + COUNT( + + 81 ) * 24 * - 55 + 76
----
-1244

skipif mysql # not compatible
query I rowsort label-9103
SELECT + COUNT ( + + 81 ) * 24 * - 55 + 76
----
-1244

onlyif mysql # aggregate syntax: 
query I rowsort label-9104
SELECT + MIN( DISTINCT - + 99 )
----
-99

skipif mysql # not compatible
query I rowsort label-9104
SELECT + MIN ( DISTINCT - + 99 )
----
-99

query I rowsort
SELECT ALL - 73 * + + 93 + + 43
----
-6746

query I rowsort
SELECT 10 * ( NULLIF ( + 93, + - 35 * + 15 ) ) - - - 46 * - 37 + - 93
----
2539

onlyif mysql # aggregate syntax: 
query II rowsort label-9107
SELECT + COUNT( * ) + - 20 AS col1, + 24
----
-19
24

skipif mysql # not compatible
query II rowsort label-9107
SELECT + COUNT ( * ) + - 20 AS col1, + 24
----
-19
24

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

query I rowsort
SELECT DISTINCT - 80 * + ( + 99 )
----
-7920

query I rowsort
SELECT 63 * + + 25
----
1575

query I rowsort
SELECT - 73 - 76 * - 2 AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9112
SELECT - COUNT( + COALESCE ( - 7, - 94 / + 4 * - 56 + 69 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9112
SELECT - COUNT ( + COALESCE ( - 7, - 94 / + 4 * - 56 + 69 ) ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9113
SELECT 42 DIV + 48 * + 7 col1
----
0

skipif mysql # not compatible
query I rowsort label-9113
SELECT 42 / + 48 * + 7 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9114
SELECT ALL + - ( + CASE - 0 WHEN COUNT( * ) * + CAST( - 16 AS SIGNED ) + - 18 THEN - COUNT( * ) END ) / 92 * 3 + + 47 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9114
SELECT ALL + - ( + CASE - 0 WHEN COUNT ( * ) * + CAST ( - 16 AS INTEGER ) + - 18 THEN - COUNT ( * ) END ) / 92 * 3 + + 47 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9115
SELECT DISTINCT 14 + + ( 49 ) * + 0 - - + COUNT( * ) * - + 75
----
-61

skipif mysql # not compatible
query I rowsort label-9115
SELECT DISTINCT 14 + + ( 49 ) * + 0 - - + COUNT ( * ) * - + 75
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT ALL + - NULLIF ( - ( - 35 ), - COUNT( * ) + - ( - COALESCE ( - 25, - COUNT( * ), + 78 ) ) + COUNT( * ) ) * + 40 * + 84
----
-117600

skipif mysql # not compatible
query I rowsort label-9116
SELECT ALL + - NULLIF ( - ( - 35 ), - COUNT ( * ) + - ( - COALESCE ( - 25, - COUNT ( * ), + 78 ) ) + COUNT ( * ) ) * + 40 * + 84
----
-117600

query I rowsort
SELECT ALL - 28 + + 30 + + 29 * + 88
----
2554

query I rowsort
SELECT 78 + 20
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9119
SELECT 13 * + COUNT( - 88 )
----
13

skipif mysql # not compatible
query I rowsort label-9119
SELECT 13 * + COUNT ( - 88 )
----
13

query I rowsort
SELECT 87 + 51 + + 38
----
176

query I rowsort
SELECT 23 * 78 AS col1
----
1794

onlyif mysql # aggregate syntax: 
query I rowsort label-9122
SELECT ALL + 56 + - + COUNT( + 29 ) * - 4 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-9122
SELECT ALL + 56 + - + COUNT ( + 29 ) * - 4 AS col2
----
60

query I rowsort
SELECT 94 + + + 53
----
147

onlyif mysql # aggregate syntax: 
query II rowsort label-9124
SELECT ALL - ( 20 ) + - + 36 AS col2, CASE MAX( - 41 ) WHEN + - 72 THEN 14 ELSE NULL END - + 83
----
-56
NULL

skipif mysql # not compatible
query II rowsort label-9124
SELECT ALL - ( 20 ) + - + 36 AS col2, CASE MAX ( - 41 ) WHEN + - 72 THEN 14 ELSE NULL END - + 83
----
-56
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9125
SELECT 3 + + 1 * + 3 + - COUNT( * ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-9125
SELECT 3 + + 1 * + 3 + - COUNT ( * ) AS col0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9126
SELECT DISTINCT - 11 + - 41 + - 84 DIV 72 + + + 19 AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-9126
SELECT DISTINCT - 11 + - 41 + - 84 / 72 + + + 19 AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT ALL - COUNT( - + 9 ) + 63 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-9127
SELECT ALL - COUNT ( - + 9 ) + 63 AS col2
----
62

query I rowsort
SELECT - 92 * - - 25 + 95
----
-2205

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT ALL 38 - + MIN( DISTINCT 82 ) + - + COUNT( + 98 )
----
-45

skipif mysql # not compatible
query I rowsort label-9129
SELECT ALL 38 - + MIN ( DISTINCT 82 ) + - + COUNT ( + 98 )
----
-45

query I rowsort
SELECT NULLIF ( + - ( + - 0 ), - + 51 ) + - 13
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9131
SELECT ALL + COUNT( * ) * 65 * - ( + 95 ) AS col2
----
-6175

skipif mysql # not compatible
query I rowsort label-9131
SELECT ALL + COUNT ( * ) * 65 * - ( + 95 ) AS col2
----
-6175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9132
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 68 * + + MIN( ALL - 64 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9132
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 68 * + + MIN ( ALL - 64 ) AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9134
SELECT - + COUNT( * ) * + 51 + ( - 3 ) * - CAST( + AVG ( + 79 ) AS SIGNED ) * + 83 + - CAST( NULL AS SIGNED ) + - 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9134
SELECT - + COUNT ( * ) * + 51 + ( - 3 ) * - CAST ( + AVG ( + 79 ) AS INTEGER ) * + 83 + - CAST ( NULL AS INTEGER ) + - 71 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 75 * 85 * + 7 col0
----
-44625

query II rowsort
SELECT DISTINCT - 36 AS col2, 19
----
-36
19

query I rowsort
SELECT ALL - - ( - 93 ) AS col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9138
SELECT ALL - - SUM( ALL - 95 ) col0
----
-95

skipif mysql # not compatible
query I rowsort label-9138
SELECT ALL - - SUM ( ALL - 95 ) col0
----
-95

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9140
SELECT + 53 * + 0 * - - 94 * 74 + - CASE - + 50 WHEN 66 THEN - COUNT( * ) WHEN - + 67 THEN + + 18 WHEN 88 THEN + + 10 + - 54 + + 14 / + CAST( NULL AS SIGNED ) END * - + ( + 19 ) / - CAST( NULL AS SIGNED ) / + 63 * MAX( ALL + + 37 ) / + 38 * 62 * + - ( + + 94 ) + - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-9140
SELECT + 53 * + 0 * - - 94 * 74 + - CASE - + 50 WHEN 66 THEN - COUNT ( * ) WHEN - + 67 THEN + + 18 WHEN 88 THEN + + 10 + - 54 + + 14 / + CAST ( NULL AS INTEGER ) END * - + ( + 19 ) / - CAST ( NULL AS INTEGER ) / + 63 * MAX ( ALL + + 37 ) / + 38 * 62 * + - ( + + 94 ) + - 66
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9141
SELECT + + 25 * 58 + - COALESCE ( 61, - COUNT( * ) ) AS col0
----
1389

skipif mysql # not compatible
query I rowsort label-9141
SELECT + + 25 * 58 + - COALESCE ( 61, - COUNT ( * ) ) AS col0
----
1389

query I rowsort
SELECT - 19 + 26 AS col0
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9143
SELECT ALL + COALESCE ( CAST( - + 53 AS SIGNED ), - MIN( ALL 49 ) + + 61 ) AS col1, - 68 - - 11
----
-53
-57

skipif mysql # not compatible
query II rowsort label-9143
SELECT ALL + COALESCE ( CAST ( - + 53 AS INTEGER ), - MIN ( ALL 49 ) + + 61 ) AS col1, - 68 - - 11
----
-53
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT DISTINCT + 99 + COUNT( * )
----
100

skipif mysql # not compatible
query I rowsort label-9144
SELECT DISTINCT + 99 + COUNT ( * )
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-9145
SELECT ALL COUNT( * ) + - 34 col0
----
-33

skipif mysql # not compatible
query I rowsort label-9145
SELECT ALL COUNT ( * ) + - 34 col0
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9146
SELECT - 46 + + 76 + - + 64 DIV - MAX( + 88 ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-9146
SELECT - 46 + + 76 + - + 64 / - MAX ( + 88 ) AS col1
----
30

query I rowsort
SELECT ALL + 7 + - 7
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9148
SELECT ALL + ( SUM( ALL + + 43 ) ) + + - 82 AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-9148
SELECT ALL + ( SUM ( ALL + + 43 ) ) + + - 82 AS col0
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9149
SELECT + 69 + + + ( - ( 44 ) ) DIV + 88 * + SUM( - 14 ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-9149
SELECT + 69 + + + ( - ( 44 ) ) / + 88 * + SUM ( - 14 ) AS col1
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-9150
SELECT DISTINCT 99, COUNT( + - 35 ) * + 46 AS col0
----
99
46

skipif mysql # not compatible
query II rowsort label-9150
SELECT DISTINCT 99, COUNT ( + - 35 ) * + 46 AS col0
----
99
46

query I rowsort
SELECT 23 + - 22 col2
----
1

query I rowsort
SELECT ALL 16 + - 55
----
-39

query II rowsort
SELECT 84 col1, 82
----
84
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9154
SELECT 32 + 7 DIV - 48 + + 47 + + + COUNT( * ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-9154
SELECT 32 + 7 / - 48 + + 47 + + + COUNT ( * ) AS col2
----
80

query I rowsort
SELECT 6 * + - 10 AS col2
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-9156
SELECT 13 DIV + - 61 * 21 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9156
SELECT 13 / + - 61 * 21 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9157
SELECT ALL COUNT( 97 ), 38 DIV NULLIF ( - 7, 71 DIV + + 48 * 11 ) * - 90 + + + COUNT( * ) * - - 92 AS col2
----
1
542

skipif mysql # not compatible
query II rowsort label-9157
SELECT ALL COUNT ( 97 ), 38 / NULLIF ( - 7, 71 / + + 48 * 11 ) * - 90 + + + COUNT ( * ) * - - 92 AS col2
----
1
542

onlyif mysql # DIV for integer division: 
query I rowsort label-9158
SELECT 38 DIV - 71
----
0

skipif mysql # not compatible
query I rowsort label-9158
SELECT 38 / - 71
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9159
SELECT - CASE - CAST( - COALESCE ( - - 17, + 85 * CAST( + 45 AS SIGNED ) + 26 + 9 / - CAST( NULL AS SIGNED ) ) AS SIGNED ) WHEN + ( - + 24 ) / - + 70 * 65 - - - COUNT( * ) + - COUNT( * ) THEN - - COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9159
SELECT - CASE - CAST ( - COALESCE ( - - 17, + 85 * CAST ( + 45 AS INTEGER ) + 26 + 9 / - CAST ( NULL AS INTEGER ) ) AS INTEGER ) WHEN + ( - + 24 ) / - + 70 * 65 - - - COUNT ( * ) + - COUNT ( * ) THEN - - COUNT ( * ) END AS col0
----
NULL

query II rowsort
SELECT 97 AS col2, NULLIF ( + 6, - ( - 61 ) ) * + 72
----
97
432

query I rowsort
SELECT NULLIF ( - ( + 25 ), - - 6 )
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-9162
SELECT ALL - 93, + ( + SUM( DISTINCT + 29 ) ) * + + 49 + + 68 AS col0
----
-93
1489

skipif mysql # not compatible
query II rowsort label-9162
SELECT ALL - 93, + ( + SUM ( DISTINCT + 29 ) ) * + + 49 + + 68 AS col0
----
-93
1489

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9163
SELECT 28 DIV MIN( ALL + 23 ) DIV + + 3
----
0

skipif mysql # not compatible
query I rowsort label-9163
SELECT 28 / MIN ( ALL + 23 ) / + + 3
----
0

query I rowsort
SELECT 63 * 22
----
1386

onlyif mysql # aggregate syntax: 
query I rowsort label-9165
SELECT COALESCE ( + 17, + COALESCE ( - COUNT( * ), 97 * MIN( - 22 ) * + 1 + + 42 ), - - 75 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-9165
SELECT COALESCE ( + 17, + COALESCE ( - COUNT ( * ), 97 * MIN ( - 22 ) * + 1 + + 42 ), - - 75 ) AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9166
SELECT DISTINCT + MIN( ALL + 50 )
----
50

skipif mysql # not compatible
query I rowsort label-9166
SELECT DISTINCT + MIN ( ALL + 50 )
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9167
SELECT DISTINCT + CAST( + CASE - 1 WHEN - CAST( NULL AS SIGNED ) * + + 31 * 73 * - - MIN( - - 68 ) + 40 THEN + + COUNT( * ) / + COUNT( * ) + + 46 + ( + COUNT( * ) ) * + 73 / + 89 + 39 END AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9167
SELECT DISTINCT + CAST ( + CASE - 1 WHEN - CAST ( NULL AS INTEGER ) * + + 31 * 73 * - - MIN ( - - 68 ) + 40 THEN + + COUNT ( * ) / + COUNT ( * ) + + 46 + ( + COUNT ( * ) ) * + 73 / + 89 + 39 END AS REAL ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9169
SELECT - MAX( + 23 ) * + 96 + 92 + 57 + - 61 + - 67 * - + 84
----
3508

skipif mysql # not compatible
query I rowsort label-9169
SELECT - MAX ( + 23 ) * + 96 + 92 + 57 + - 61 + - 67 * - + 84
----
3508

query I rowsort
SELECT - - 41 * 6 AS col0
----
246

onlyif mysql # aggregate syntax: 
query I rowsort label-9171
SELECT DISTINCT 27 * 85 * - COUNT( * ) + - COALESCE ( + + 20, + + 21 * + + 73 * + 44 ) + + 90 * - + 25
----
-4565

skipif mysql # not compatible
query I rowsort label-9171
SELECT DISTINCT 27 * 85 * - COUNT ( * ) + - COALESCE ( + + 20, + + 21 * + + 73 * + 44 ) + + 90 * - + 25
----
-4565

onlyif mysql # aggregate syntax: 
query II rowsort label-9172
SELECT ALL + + 25 AS col0, + ( + 56 ) + + + 47 * COUNT( * )
----
25
103

skipif mysql # not compatible
query II rowsort label-9172
SELECT ALL + + 25 AS col0, + ( + 56 ) + + + 47 * COUNT ( * )
----
25
103

query II rowsort
SELECT - 68, 22 - 52 AS col2
----
-68
-30

query I rowsort
SELECT - - 91 + + 72 AS col0
----
163

query I rowsort
SELECT - 17 * - 84 + - 0
----
1428

query I rowsort
SELECT DISTINCT ( - 18 ) * + 10 + 86
----
-94

query II rowsort
SELECT ALL + 15 AS col2, - ( + 80 )
----
15
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT DISTINCT - - 17 * - 45 + + ( + NULLIF ( - + 81, - - 47 * - 27 - - + COUNT( ALL - 29 ) ) ) * 23 + MAX( DISTINCT + ( 33 ) ) AS col0
----
-2595

skipif mysql # not compatible
query I rowsort label-9178
SELECT DISTINCT - - 17 * - 45 + + ( + NULLIF ( - + 81, - - 47 * - 27 - - + COUNT ( ALL - 29 ) ) ) * 23 + MAX ( DISTINCT + ( 33 ) ) AS col0
----
-2595

query I rowsort
SELECT DISTINCT + + 51 * - 7 + 57 + + CASE 76 WHEN - + 1 + - 24 THEN NULL WHEN + - 92 THEN 15 ELSE COALESCE ( 79, - - 26 ) END * - 8 AS col1
----
-932

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9180
SELECT - MIN( ALL + 73 ) + + 68 + + 19 + 43 + + + 23 DIV + NULLIF ( - CAST( - 26 AS SIGNED ), + - 57 DIV CAST( NULL AS SIGNED ) ) * 33 DIV - - 7 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-9180
SELECT - MIN ( ALL + 73 ) + + 68 + + 19 + 43 + + + 23 / + NULLIF ( - CAST ( - 26 AS INTEGER ), + - 57 / CAST ( NULL AS INTEGER ) ) * 33 / - - 7 AS col0
----
57

query II rowsort
SELECT - 92 AS col2, 65 AS col0
----
-92
65

query I rowsort
SELECT DISTINCT 32 + + 44 AS col0
----
76

query I rowsort
SELECT DISTINCT 37 + 56 col1
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-9184
SELECT ALL COUNT( * ) + - 58 AS col1, + 30
----
-57
30

skipif mysql # not compatible
query II rowsort label-9184
SELECT ALL COUNT ( * ) + - 58 AS col1, + 30
----
-57
30

onlyif mysql # DIV for integer division: 
query II rowsort label-9185
SELECT ALL 75 + + 9 AS col0, - 13 * 39 DIV 16 * + 86 * - 50
----
84
133300

skipif mysql # not compatible
query II rowsort label-9185
SELECT ALL 75 + + 9 AS col0, - 13 * 39 / 16 * + 86 * - 50
----
84
133300

query I rowsort
SELECT + 98 - 58
----
40

query II rowsort
SELECT + 57 * 57 AS col0, 59 + - 84
----
3249
-25

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9189
SELECT ALL COUNT( - 90 ) - 31 AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-9189
SELECT ALL COUNT ( - 90 ) - 31 AS col2
----
-30

query I rowsort
SELECT ALL 39 * 47 AS col1
----
1833

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT DISTINCT COUNT( - - 72 )
----
1

skipif mysql # not compatible
query I rowsort label-9191
SELECT DISTINCT COUNT ( - - 72 )
----
1

query I rowsort
SELECT ALL 62 - 0 * + ( 78 ) * - 83
----
62

query II rowsort
SELECT DISTINCT 74 * 82 AS col0, + ( 78 )
----
6068
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9194
SELECT + 3 * 99 / 79 * + COUNT( * ) * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9194
SELECT + 3 * 99 / 79 * + COUNT ( * ) * + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 15 + 96 + - - 32 * - 36 AS col0
----
-1041

query II rowsort
SELECT - ( - - 9 ) AS col0, 78
----
-9
78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9197
SELECT ALL 26 - + 97 + - 31, NULLIF ( - CAST( NULL AS SIGNED ), - 25 ) AS col2
----
-102
NULL

skipif mysql # not compatible
query II rowsort label-9197
SELECT ALL 26 - + 97 + - 31, NULLIF ( - CAST ( NULL AS INTEGER ), - 25 ) AS col2
----
-102
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9198
SELECT + 32 * - - MAX( + 60 )
----
1920

skipif mysql # not compatible
query I rowsort label-9198
SELECT + 32 * - - MAX ( + 60 )
----
1920

query I rowsort
SELECT + 91 + - 75
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-9200
SELECT + 8 + + 81 + + NULLIF ( 47, + 4 * - 85 / + 63 + 89 * 48 ) + - + COUNT( * ) * - NULLIF ( - 95, + + 35 ) AS col0, + 85 AS col1
----
41
85

skipif mysql # not compatible
query II rowsort label-9200
SELECT + 8 + + 81 + + NULLIF ( 47, + 4 * - 85 / + 63 + 89 * 48 ) + - + COUNT ( * ) * - NULLIF ( - 95, + + 35 ) AS col0, + 85 AS col1
----
41
85

query I rowsort
SELECT + 67 * - 28 * + 97
----
-181972

query I rowsort
SELECT - 73 * 97
----
-7081

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT + 85 + 80 + - NULLIF ( - - 5, - + ( 61 ) / - + 5 * + 74 ) + 57 - - 72 * - + COUNT( * )
----
145

skipif mysql # not compatible
query I rowsort label-9203
SELECT + 85 + 80 + - NULLIF ( - - 5, - + ( 61 ) / - + 5 * + 74 ) + 57 - - 72 * - + COUNT ( * )
----
145

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

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

query I rowsort
SELECT + 37 + + 61 - - 95
----
193

query I rowsort
SELECT ALL - 36 * 78 + 92 + + + 31 AS col0
----
-2685

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9207
SELECT ALL + COALESCE ( + - 50, - COUNT( * ) * 17 ) * - MAX( ALL - - CAST( + + 88 AS SIGNED ) )
----
4400

skipif mysql # not compatible
query I rowsort label-9207
SELECT ALL + COALESCE ( + - 50, - COUNT ( * ) * 17 ) * - MAX ( ALL - - CAST ( + + 88 AS INTEGER ) )
----
4400

query I rowsort
SELECT + CASE + 98 WHEN + 44 THEN + + 58 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9209
SELECT ALL CAST( NULL AS SIGNED ) / + ( + 92 ) + + + 63 + + 19 AS col2, 71 - + 81 * + + 18
----
NULL
-1387

skipif mysql # not compatible
query II rowsort label-9209
SELECT ALL CAST ( NULL AS INTEGER ) / + ( + 92 ) + + + 63 + + 19 AS col2, 71 - + 81 * + + 18
----
NULL
-1387

onlyif mysql # aggregate syntax: 
query I rowsort label-9210
SELECT + - MAX( DISTINCT + 29 ) * - 14
----
406

skipif mysql # not compatible
query I rowsort label-9210
SELECT + - MAX ( DISTINCT + 29 ) * - 14
----
406

query I rowsort
SELECT + 21 * + 28 + - 58
----
530

query I rowsort
SELECT - + 6 + COALESCE ( + 28, - + 46 + + + 34 )
----
22

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9213
SELECT ALL 0 / - + 85 / CAST( NULL AS DECIMAL ) + + ( + COUNT( * ) ) + + + 0 / + 76 + - ( + 25 ) + + 38 AS col2, + 30 + + + 93 + + 66 + - 84
----
NULL
105

skipif mysql # not compatible
query II rowsort label-9213
SELECT ALL 0 / - + 85 / CAST ( NULL AS REAL ) + + ( + COUNT ( * ) ) + + + 0 / + 76 + - ( + 25 ) + + 38 AS col2, + 30 + + + 93 + + 66 + - 84
----
NULL
105

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT + MAX( - 40 ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-9214
SELECT + MAX ( - 40 ) AS col1
----
-40

query I rowsort
SELECT - - 85 * + 39 * - 52
----
-172380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9216
SELECT - CAST( 16 AS SIGNED ) * SUM( - - 10 ) AS col0
----
-160

skipif mysql # not compatible
query I rowsort label-9216
SELECT - CAST ( 16 AS INTEGER ) * SUM ( - - 10 ) AS col0
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-9217
SELECT ALL + 22 * + - 73 - + - COUNT( * ) * 91 - - 14
----
-1501

skipif mysql # not compatible
query I rowsort label-9217
SELECT ALL + 22 * + - 73 - + - COUNT ( * ) * 91 - - 14
----
-1501

onlyif mysql # aggregate syntax: 
query I rowsort label-9218
SELECT + NULLIF ( - - COALESCE ( - 38, - - NULLIF ( + + 57, + NULLIF ( - 52, - 43 * + 59 * COALESCE ( + 92, 45 / - - 25 - - 74 * + COUNT( * ) ) * + + COUNT( * ) + + + MAX( + 35 ) ) + 30 ), COALESCE ( 24, + 87 ) + + COUNT( * ) + - - 0 ), + 0 + - + 18 / - - MAX( ALL + COALESCE ( - 70, 78, - 85 + 42 ) ) + - 99 ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-9218
SELECT + NULLIF ( - - COALESCE ( - 38, - - NULLIF ( + + 57, + NULLIF ( - 52, - 43 * + 59 * COALESCE ( + 92, 45 / - - 25 - - 74 * + COUNT ( * ) ) * + + COUNT ( * ) + + + MAX ( + 35 ) ) + 30 ), COALESCE ( 24, + 87 ) + + COUNT ( * ) + - - 0 ), + 0 + - + 18 / - - MAX ( ALL + COALESCE ( - 70, 78, - 85 + 42 ) ) + - 99 ) AS col2
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9219
SELECT ALL + ( 93 ) * - 21 * - - 67 AS col2, - NULLIF ( - + 29, - + 55 ) * - CAST( - 94 AS SIGNED )
----
-130851
2726

skipif mysql # not compatible
query II rowsort label-9219
SELECT ALL + ( 93 ) * - 21 * - - 67 AS col2, - NULLIF ( - + 29, - + 55 ) * - CAST ( - 94 AS INTEGER )
----
-130851
2726

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT DISTINCT 68 * 79 - COUNT( * ) + 58
----
5429

skipif mysql # not compatible
query I rowsort label-9220
SELECT DISTINCT 68 * 79 - COUNT ( * ) + 58
----
5429

query I rowsort
SELECT ALL + 6 * + 59
----
354

query I rowsort
SELECT - 51 + - 19
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9223
SELECT DISTINCT CAST( 22 AS SIGNED ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-9223
SELECT DISTINCT CAST ( 22 AS INTEGER ) AS col1
----
22

query I rowsort
SELECT - 15 * + 15 AS col0
----
-225

onlyif mysql # aggregate syntax: 
query II rowsort label-9225
SELECT - COUNT( * ), 35 col0
----
-1
35

skipif mysql # not compatible
query II rowsort label-9225
SELECT - COUNT ( * ), 35 col0
----
-1
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT + 97 + - CASE 29 WHEN + + 43 THEN - + NULLIF ( 65, ( MAX( DISTINCT + 3 ) ) * 88 + COUNT( * ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9226
SELECT + 97 + - CASE 29 WHEN + + 43 THEN - + NULLIF ( 65, ( MAX ( DISTINCT + 3 ) ) * 88 + COUNT ( * ) ) END AS col2
----
NULL

query I rowsort
SELECT - NULLIF ( 70, + 32 / + - 81 + 92 ) AS col0
----
-70

query I rowsort
SELECT ( - + 50 ) + + 24 col2
----
-26

query I rowsort
SELECT ALL 79 * 9 AS col2
----
711

query II rowsort
SELECT 52 AS col2, COALESCE ( 78, + 67 + - 45 ) * 73
----
52
5694

onlyif mysql # DIV for integer division: 
query I rowsort label-9231
SELECT ALL + ( 23 ) DIV + + 43 + + + 80
----
80

skipif mysql # not compatible
query I rowsort label-9231
SELECT ALL + ( 23 ) / + + 43 + + + 80
----
80

query II rowsort
SELECT ALL 93, - 68 * + 40 AS col1
----
93
-2720

onlyif mysql # aggregate syntax: 
query II rowsort label-9233
SELECT - 94 AS col0, + 98 + + + COUNT( * ) AS col0
----
-94
99

skipif mysql # not compatible
query II rowsort label-9233
SELECT - 94 AS col0, + 98 + + + COUNT ( * ) AS col0
----
-94
99

query I rowsort
SELECT ALL 19 + + 36 - 98 * + ( + 40 ) * + + 60 + - - 46
----
-235099

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT DISTINCT - COUNT( * ) + - 29
----
-30

skipif mysql # not compatible
query I rowsort label-9235
SELECT DISTINCT - COUNT ( * ) + - 29
----
-30

query I rowsort
SELECT DISTINCT + 63 + - 35 col1
----
28

query I rowsort
SELECT ALL 80 + - 49 AS col0
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-9238
SELECT + + COUNT( * ) AS col1, 37 AS col1
----
1
37

skipif mysql # not compatible
query II rowsort label-9238
SELECT + + COUNT ( * ) AS col1, 37 AS col1
----
1
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9239
SELECT - SUM( 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-9239
SELECT - SUM ( 53 )
----
-53

query I rowsort
SELECT DISTINCT - ( + ( + 76 ) ) AS col2
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-9241
SELECT ALL 7 + 83 * 10 col0, - COUNT( * ) * + 61 AS col1
----
837
-61

skipif mysql # not compatible
query II rowsort label-9241
SELECT ALL 7 + 83 * 10 col0, - COUNT ( * ) * + 61 AS col1
----
837
-61

query II rowsort
SELECT ALL - 6, 84 AS col1
----
-6
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9243
SELECT ALL COUNT( * ) + + CASE 15 WHEN - + 93 THEN + 37 + NULLIF ( - 18, + 3 ) - + + ( + 43 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9243
SELECT ALL COUNT ( * ) + + CASE 15 WHEN - + 93 THEN + 37 + NULLIF ( - 18, + 3 ) - + + ( + 43 ) END AS col2
----
NULL

query I rowsort
SELECT ALL + + 85 * + 52 AS col0
----
4420

onlyif mysql # DIV for integer division: 
query I rowsort label-9245
SELECT + ( - NULLIF ( - 20, - + 20 + 49 DIV - + 86 * - 38 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9245
SELECT + ( - NULLIF ( - 20, - + 20 + 49 / - + 86 * - 38 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9246
SELECT ALL 69 / + CAST( NULL AS SIGNED ) * - AVG ( + 87 ) * + + AVG ( DISTINCT - - 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9246
SELECT ALL 69 / + CAST ( NULL AS INTEGER ) * - AVG ( + 87 ) * + + AVG ( DISTINCT - - 93 )
----
NULL

query I rowsort
SELECT ALL - 89 + 34 AS col2
----
-55

query I rowsort
SELECT DISTINCT + + 35 * + 62
----
2170

onlyif mysql # aggregate syntax: 
query I rowsort label-9249
SELECT ALL + COUNT( * ) + - 83 + + 82 - - CASE 88 WHEN - + CASE + + 7 WHEN - 73 THEN - 29 END THEN NULL ELSE 7 + 10 END
----
17

skipif mysql # not compatible
query I rowsort label-9249
SELECT ALL + COUNT ( * ) + - 83 + + 82 - - CASE 88 WHEN - + CASE + + 7 WHEN - 73 THEN - 29 END THEN NULL ELSE 7 + 10 END
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9250
SELECT + CAST( - 75 AS SIGNED ) + - - 43 AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-9250
SELECT + CAST ( - 75 AS INTEGER ) + - - 43 AS col0
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-9251
SELECT - - ( - COUNT( * ) ) * + - 81 * - 15 * + NULLIF ( + 55, - 72 ) + - 37 AS col2, NULLIF ( 90, - 24 / - - 7 ) AS col1
----
-66862
90

skipif mysql # not compatible
query II rowsort label-9251
SELECT - - ( - COUNT ( * ) ) * + - 81 * - 15 * + NULLIF ( + 55, - 72 ) + - 37 AS col2, NULLIF ( 90, - 24 / - - 7 ) AS col1
----
-66862
90

query I rowsort
SELECT ALL 10 * 18
----
180

query I rowsort
SELECT 11 * - 2
----
-22

query I rowsort
SELECT 55 * - - 55 AS col0
----
3025

query I rowsort
SELECT ALL - + NULLIF ( 62, - 31 / - 47 + - 83 * 85 / 43 + - 35 + COALESCE ( + AVG ( - + 89 ), + 42 + + + 95 ) * 2 * + ( 39 ) ) AS col0
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9256
SELECT + - NULLIF ( 33, - CAST( NULL AS SIGNED ) * + 98 * - 51 * - - 22 * + 25 ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-9256
SELECT + - NULLIF ( 33, - CAST ( NULL AS INTEGER ) * + 98 * - 51 * - - 22 * + 25 ) AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT DISTINCT + ( - + 35 ) - - 93 - COUNT( * ) col0
----
57

skipif mysql # not compatible
query I rowsort label-9257
SELECT DISTINCT + ( - + 35 ) - - 93 - COUNT ( * ) col0
----
57

query I rowsort
SELECT 16 + - - 21
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-9259
SELECT ALL 40 - + 46 * - MIN( - 35 ) AS col2, 31
----
-1570
31

skipif mysql # not compatible
query II rowsort label-9259
SELECT ALL 40 - + 46 * - MIN ( - 35 ) AS col2, 31
----
-1570
31

query I rowsort
SELECT ALL + 74 * - + ( + 82 )
----
-6068

onlyif mysql # aggregate syntax: 
query II rowsort label-9261
SELECT 32 * 18 col2, - 62 * + COALESCE ( + - COUNT( * ), + - 72, + 68 )
----
576
62

skipif mysql # not compatible
query II rowsort label-9261
SELECT 32 * 18 col2, - 62 * + COALESCE ( + - COUNT ( * ), + - 72, + 68 )
----
576
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT DISTINCT + MIN( DISTINCT ( - 64 ) ) - - 16 col1
----
-48

skipif mysql # not compatible
query I rowsort label-9262
SELECT DISTINCT + MIN ( DISTINCT ( - 64 ) ) - - 16 col1
----
-48

query I rowsort
SELECT 51 + 63 AS col2
----
114

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

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

query I rowsort
SELECT 22 * - 52 AS col1
----
-1144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9266
SELECT COUNT( - 18 ) * - - 20 DIV 60 * ( 70 ) + - - NULLIF ( - + 66, + 18 )
----
-66

skipif mysql # not compatible
query I rowsort label-9266
SELECT COUNT ( - 18 ) * - - 20 / 60 * ( 70 ) + - - NULLIF ( - + 66, + 18 )
----
-66

query I rowsort
SELECT 28 - + 16 AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9268
SELECT DISTINCT + 57 * - COUNT( ALL 12 ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-9268
SELECT DISTINCT + 57 * - COUNT ( ALL 12 ) AS col1
----
-57

query I rowsort
SELECT DISTINCT + 84 * + COALESCE ( - 2, + 36 ) AS col2
----
-168

query I rowsort
SELECT DISTINCT + 48 * - 66 AS col2
----
-3168

query I rowsort
SELECT 47 * - 86 * + + 89 * - 30 * + + 41 AS col1
----
442477740

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT ALL - COUNT( * ) + - - 1 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9272
SELECT ALL - COUNT ( * ) + - - 1 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9273
SELECT ALL 8 DIV 35
----
0

skipif mysql # not compatible
query I rowsort label-9273
SELECT ALL 8 / 35
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9274
SELECT AVG ( ALL - 61 ) / + SUM( DISTINCT + + CAST( NULL AS SIGNED ) ) * - 86 - + 20 + 52 / 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9274
SELECT AVG ( ALL - 61 ) / + SUM ( DISTINCT + + CAST ( NULL AS INTEGER ) ) * - 86 - + 20 + 52 / 10 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9275
SELECT 37 + 94 + + 80 + - COUNT( * ) * - SUM( 46 ) * + 70 * 27 * - MIN( ALL + 29 ) - - CAST( NULL AS SIGNED ) * + + CAST( + - 97 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9275
SELECT 37 + 94 + + 80 + - COUNT ( * ) * - SUM ( 46 ) * + 70 * 27 * - MIN ( ALL + 29 ) - - CAST ( NULL AS INTEGER ) * + + CAST ( + - 97 AS INTEGER )
----
NULL

query I rowsort
SELECT CASE - 85 WHEN - - 68 THEN 44 - - 30 END - - 78 + + 19
----
NULL

query I rowsort
SELECT 47 + + 2
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-9278
SELECT ALL - + 33 + - 83 + - - 42 * - + 35, 79 * + + COUNT( - 8 ) col2
----
-1586
79

skipif mysql # not compatible
query II rowsort label-9278
SELECT ALL - + 33 + - 83 + - - 42 * - + 35, 79 * + + COUNT ( - 8 ) col2
----
-1586
79

onlyif mysql # DIV for integer division: 
query I rowsort label-9279
SELECT 98 DIV + 47 + 92 + 2 * + 78 * 84
----
13198

skipif mysql # not compatible
query I rowsort label-9279
SELECT 98 / + 47 + 92 + 2 * + 78 * 84
----
13198

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT DISTINCT MIN( + CASE WHEN - 64 IS NOT NULL THEN NULL ELSE + 70 END ) * + + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-9280
SELECT DISTINCT MIN ( + CASE WHEN - 64 IS NOT NULL THEN NULL ELSE + 70 END ) * + + 44
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9281
SELECT ALL + CAST( + 13 AS SIGNED ) + - CAST( NULL AS SIGNED ) - + + 70 * + 77 * - 63 * - + 67 * - 32 / - 35 * + + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-9281
SELECT ALL + CAST ( + 13 AS INTEGER ) + - CAST ( NULL AS INTEGER ) - + + 70 * + 77 * - 63 * - + 67 * - 32 / - 35 * + + 22
----
NULL

query I rowsort
SELECT ( + + 58 ) + 86
----
144

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

skipif mysql # not compatible
query I rowsort label-9283
SELECT ALL + CAST ( - 67 AS INTEGER ) col1
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9284
SELECT DISTINCT - COUNT( * ) DIV + 8
----
0

skipif mysql # not compatible
query I rowsort label-9284
SELECT DISTINCT - COUNT ( * ) / + 8
----
0

query I rowsort
SELECT 77 + + 81 + + - ( 27 ) + + 65
----
196

query I rowsort
SELECT DISTINCT + 35 * - 17
----
-595

query I rowsort
SELECT ALL - + 34 * - 39 - 49
----
1277

query I rowsort
SELECT + 63 * + + 52 AS col1
----
3276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9289
SELECT - COALESCE ( 31, + CASE - 64 WHEN 71 - + + 64 THEN 40 + + 11 WHEN 81 THEN NULL WHEN - 18 + + CAST( NULL AS SIGNED ) + - 30 + + + 83 * + + ( 58 ) THEN NULL END, - 29 * - - ( - MAX( ALL + NULLIF ( - + 1, - - 37 ) ) ) + - 71 ) + + + 5
----
-26

skipif mysql # not compatible
query I rowsort label-9289
SELECT - COALESCE ( 31, + CASE - 64 WHEN 71 - + + 64 THEN 40 + + 11 WHEN 81 THEN NULL WHEN - 18 + + CAST ( NULL AS INTEGER ) + - 30 + + + 83 * + + ( 58 ) THEN NULL END, - 29 * - - ( - MAX ( ALL + NULLIF ( - + 1, - - 37 ) ) ) + - 71 ) + + + 5
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9290
SELECT ALL - SUM( DISTINCT - 58 ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-9290
SELECT ALL - SUM ( DISTINCT - 58 ) AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9291
SELECT DISTINCT COUNT( * ) * - 80 + + + 0 + 59 * 26 * + + 2 * + - 6 AS col0
----
-18488

skipif mysql # not compatible
query I rowsort label-9291
SELECT DISTINCT COUNT ( * ) * - 80 + + + 0 + 59 * 26 * + + 2 * + - 6 AS col0
----
-18488

onlyif mysql # DIV for integer division: 
query I rowsort label-9292
SELECT ALL ( - 64 ) DIV + 18 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-9292
SELECT ALL ( - 64 ) / + 18 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-9293
SELECT 32 * COUNT( + + 52 ) AS col0, NULLIF ( + 30, - CASE 18 WHEN 80 THEN NULL WHEN 7 * + ( - 35 ) - 61 + 85 THEN - 44 END ) + + ( + 6 ) * + 89
----
32
564

skipif mysql # not compatible
query II rowsort label-9293
SELECT 32 * COUNT ( + + 52 ) AS col0, NULLIF ( + 30, - CASE 18 WHEN 80 THEN NULL WHEN 7 * + ( - 35 ) - 61 + 85 THEN - 44 END ) + + ( + 6 ) * + 89
----
32
564

query II rowsort
SELECT 3 + + COALESCE ( - 87, ( + - 38 ) ) AS col0, 68 AS col0
----
-84
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9295
SELECT MIN( 18 ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-9295
SELECT MIN ( 18 ) AS col1
----
18

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9296
SELECT ALL 86 * + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9296
SELECT ALL 86 * + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9297
SELECT 22 DIV - + 76
----
0

skipif mysql # not compatible
query I rowsort label-9297
SELECT 22 / - + 76
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9299
SELECT DISTINCT ( + 12 ) + + ( + 4 ) * + CAST( + 30 AS SIGNED ), + 80 AS col0
----
132
80

skipif mysql # not compatible
query II rowsort label-9299
SELECT DISTINCT ( + 12 ) + + ( + 4 ) * + CAST ( + 30 AS INTEGER ), + 80 AS col0
----
132
80

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9300
SELECT ALL - 98 DIV 92 DIV - CAST( + 94 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9300
SELECT ALL - 98 / 92 / - CAST ( + 94 AS INTEGER )
----
0

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

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

query I rowsort
SELECT - NULLIF ( 73, - - 20 * - 24 ) * 67 - - 39 * - 1 + - 28
----
-4958

onlyif mysql # aggregate syntax: 
query II rowsort label-9303
SELECT DISTINCT COUNT( * ) + COUNT( ALL + 73 ) AS col1, 47
----
2
47

skipif mysql # not compatible
query II rowsort label-9303
SELECT DISTINCT COUNT ( * ) + COUNT ( ALL + 73 ) AS col1, 47
----
2
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9304
SELECT - 32 + + SUM( ALL - 10 )
----
-42

skipif mysql # not compatible
query I rowsort label-9304
SELECT - 32 + + SUM ( ALL - 10 )
----
-42

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9305
SELECT - CAST( NULL AS DECIMAL ) + + 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9305
SELECT - CAST ( NULL AS REAL ) + + 27 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9306
SELECT - ( MIN( DISTINCT 28 ) ) AS col0, - 59
----
-28
-59

skipif mysql # not compatible
query II rowsort label-9306
SELECT - ( MIN ( DISTINCT 28 ) ) AS col0, - 59
----
-28
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9307
SELECT DISTINCT + 27 * - COALESCE ( 48, + CAST( NULL AS SIGNED ) + 73 * + 20 ) AS col1
----
-1296

skipif mysql # not compatible
query I rowsort label-9307
SELECT DISTINCT + 27 * - COALESCE ( 48, + CAST ( NULL AS INTEGER ) + 73 * + 20 ) AS col1
----
-1296

onlyif mysql # DIV for integer division: 
query II rowsort label-9308
SELECT ALL - 72 + - 94 * - 1 + + 22 DIV - + ( 28 ) AS col2, 84 AS col2
----
22
84

skipif mysql # not compatible
query II rowsort label-9308
SELECT ALL - 72 + - 94 * - 1 + + 22 / - + ( 28 ) AS col2, 84 AS col2
----
22
84

query II rowsort
SELECT - 92 AS col2, NULLIF ( 39, + - 29 )
----
-92
39

query II rowsort
SELECT ALL - 87 col0, 57
----
-87
57

query II rowsort
SELECT ALL - 33 AS col0, 20 AS col2
----
-33
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT - - 73 - + + MIN( + + 95 )
----
-22

skipif mysql # not compatible
query I rowsort label-9312
SELECT - - 73 - + + MIN ( + + 95 )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9313
SELECT - - MAX( ALL 62 ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-9313
SELECT - - MAX ( ALL 62 ) AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9314
SELECT - + 81 * - 19 * + CASE - COUNT( * ) WHEN + - 48 * 81 * - 15 * - - COALESCE ( - 23, + 42 ) THEN + - 51 + - 25 ELSE NULL END * + 42 + 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9314
SELECT - + 81 * - 19 * + CASE - COUNT ( * ) WHEN + - 48 * 81 * - 15 * - - COALESCE ( - 23, + 42 ) THEN + - 51 + - 25 ELSE NULL END * + 42 + 50 AS col1
----
NULL

query I rowsort
SELECT + COALESCE ( + + 97, - + 82 ) * + 68
----
6596

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9316
SELECT DISTINCT - CAST( - ( + + SUM( ALL 21 ) ) AS SIGNED ) DIV - 78, 78 AS col1
----
0
78

skipif mysql # not compatible
query II rowsort label-9316
SELECT DISTINCT - CAST ( - ( + + SUM ( ALL 21 ) ) AS INTEGER ) / - 78, 78 AS col1
----
0
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9317
SELECT + 30 DIV - 61 + + COUNT( ALL + 64 ) - - 39 AS col0, + COUNT( * ) * 27 AS col2
----
40
27

skipif mysql # not compatible
query II rowsort label-9317
SELECT + 30 / - 61 + + COUNT ( ALL + 64 ) - - 39 AS col0, + COUNT ( * ) * 27 AS col2
----
40
27

query I rowsort
SELECT ALL + 37 * + + 40 * ( + 28 )
----
41440

onlyif mysql # DIV for integer division: 
query I rowsort label-9319
SELECT ALL - 26 DIV - 34 col0
----
0

skipif mysql # not compatible
query I rowsort label-9319
SELECT ALL - 26 / - 34 col0
----
0

query I rowsort
SELECT ALL 14 * + 17 AS col1
----
238

query I rowsort
SELECT - 84 * CASE + 23 WHEN + 60 THEN 67 WHEN + 30 + + + 2 - 5 - - 3 * - + 92 THEN 15 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9322
SELECT + 39, - CASE + 49 WHEN - 80 / - - 8 * + - COALESCE ( 32, - + CAST( + 79 AS SIGNED ) ) THEN NULL WHEN - 24 THEN - + 78 END AS col0
----
39
NULL

skipif mysql # not compatible
query II rowsort label-9322
SELECT + 39, - CASE + 49 WHEN - 80 / - - 8 * + - COALESCE ( 32, - + CAST ( + 79 AS INTEGER ) ) THEN NULL WHEN - 24 THEN - + 78 END AS col0
----
39
NULL

query I rowsort
SELECT ALL 28 * - ( + - 63 ) AS col0
----
1764

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9324
SELECT ALL + COALESCE ( 68, + 77 * - ( + 62 ) DIV - + 23 * CAST( + - 92 AS SIGNED ) + + + 58 - - NULLIF ( + - 28, + - 78 ) )
----
68

skipif mysql # not compatible
query I rowsort label-9324
SELECT ALL + COALESCE ( 68, + 77 * - ( + 62 ) / - + 23 * CAST ( + - 92 AS INTEGER ) + + + 58 - - NULLIF ( + - 28, + - 78 ) )
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-9325
SELECT DISTINCT + COUNT( * ) * + + 92 + 77 AS col0, + 55 AS col0
----
169
55

skipif mysql # not compatible
query II rowsort label-9325
SELECT DISTINCT + COUNT ( * ) * + + 92 + 77 AS col0, + 55 AS col0
----
169
55

query I rowsort
SELECT - 99 + - 6 + - 80
----
-185

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

skipif mysql # not compatible
query I rowsort label-9327
SELECT + COUNT ( * ) - + 33 AS col1
----
-32

query I rowsort
SELECT + 81 - - 86 col0
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT + MAX( DISTINCT + - 46 )
----
-46

skipif mysql # not compatible
query I rowsort label-9329
SELECT + MAX ( DISTINCT + - 46 )
----
-46

query II rowsort
SELECT ALL + 67 AS col0, 3 AS col0
----
67
3

query I rowsort
SELECT + 86 * 66 AS col1
----
5676

query I rowsort
SELECT + 45 + - CASE - - ( + 85 ) WHEN - 75 / + ( + 65 ) THEN + 93 END AS col0
----
NULL

query I rowsort
SELECT ALL + ( - 88 ) col2
----
-88

onlyif mysql # DIV for integer division: 
query II rowsort label-9334
SELECT ALL + 12 AS col2, + 39 * + 91 + - 60 DIV + 13
----
12
3545

skipif mysql # not compatible
query II rowsort label-9334
SELECT ALL + 12 AS col2, + 39 * + 91 + - 60 / + 13
----
12
3545

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT ALL - 41 * - COUNT( * ) + 5
----
46

skipif mysql # not compatible
query I rowsort label-9336
SELECT ALL - 41 * - COUNT ( * ) + 5
----
46

query I rowsort
SELECT ALL 74 * + 41 * - 60 + + - 43 + - 66 * - 53 + 93 AS col1
----
-178492

onlyif mysql # DIV for integer division: 
query I rowsort label-9338
SELECT DISTINCT 62 DIV 25
----
2

skipif mysql # not compatible
query I rowsort label-9338
SELECT DISTINCT 62 / 25
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT - 80 * 81 * COUNT( * ) + - + COALESCE ( + + 35, - COUNT( * ), - 69 * - 76 ) AS col0
----
-6515

skipif mysql # not compatible
query I rowsort label-9339
SELECT - 80 * 81 * COUNT ( * ) + - + COALESCE ( + + 35, - COUNT ( * ), - 69 * - 76 ) AS col0
----
-6515

query I rowsort
SELECT ALL 97 * 59
----
5723

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9341
SELECT + 8 DIV COUNT( * ) * - + 11 * - - 50
----
-4400

skipif mysql # not compatible
query I rowsort label-9341
SELECT + 8 / COUNT ( * ) * - + 11 * - - 50
----
-4400

onlyif mysql # aggregate syntax: 
query II rowsort label-9342
SELECT DISTINCT COUNT( * ), + 55 col1
----
1
55

skipif mysql # not compatible
query II rowsort label-9342
SELECT DISTINCT COUNT ( * ), + 55 col1
----
1
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9343
SELECT ALL COUNT( * ) * 28 + - - 14
----
42

skipif mysql # not compatible
query I rowsort label-9343
SELECT ALL COUNT ( * ) * 28 + - - 14
----
42

query II rowsort
SELECT + 55 * + 18 AS col2, + 36 AS col1
----
990
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT + MIN( - - 43 ) - + + 87
----
-44

skipif mysql # not compatible
query I rowsort label-9345
SELECT + MIN ( - - 43 ) - + + 87
----
-44

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

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

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

skipif mysql # not compatible
query I rowsort label-9347
SELECT ALL - 57 - + 64 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9348
SELECT ALL + CASE 3 WHEN + + 84 THEN + 63 ELSE - COUNT( * ) END - - - 60 + - + 47 col2
----
-108

skipif mysql # not compatible
query I rowsort label-9348
SELECT ALL + CASE 3 WHEN + + 84 THEN + 63 ELSE - COUNT ( * ) END - - - 60 + - + 47 col2
----
-108

query II rowsort
SELECT - 21 AS col2, 10
----
-21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9350
SELECT + + 2 + - ( 3 ) + + COUNT( * ) * - 18 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-9350
SELECT + + 2 + - ( 3 ) + + COUNT ( * ) * - 18 AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9351
SELECT - + COUNT( DISTINCT - 26 ) - 76 + 96 + - COUNT( 46 )
----
18

skipif mysql # not compatible
query I rowsort label-9351
SELECT - + COUNT ( DISTINCT - 26 ) - 76 + 96 + - COUNT ( 46 )
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9352
SELECT ALL + CAST( - 67 AS SIGNED ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-9352
SELECT ALL + CAST ( - 67 AS INTEGER ) AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT + - 27 + COALESCE ( SUM( ALL - 59 ), - ( + 44 ) - MIN( ALL 75 ) )
----
-86

skipif mysql # not compatible
query I rowsort label-9353
SELECT + - 27 + COALESCE ( SUM ( ALL - 59 ), - ( + 44 ) - MIN ( ALL 75 ) )
----
-86

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9354
SELECT - - CAST( NULL AS DECIMAL ) - + - 32 * - + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9354
SELECT - - CAST ( NULL AS REAL ) - + - 32 * - + COUNT ( * ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9355
SELECT - 44 AS col2, - 5 + 68 DIV + - CASE - 13 WHEN + 99 THEN NULL ELSE + 7 END AS col1
----
-44
-14

skipif mysql # not compatible
query II rowsort label-9355
SELECT - 44 AS col2, - 5 + 68 / + - CASE - 13 WHEN + 99 THEN NULL ELSE + 7 END AS col1
----
-44
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9356
SELECT - 46 + 60 + + COUNT( * ) DIV + 53
----
14

skipif mysql # not compatible
query I rowsort label-9356
SELECT - 46 + 60 + + COUNT ( * ) / + 53
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT ALL - COUNT( DISTINCT + - 95 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9357
SELECT ALL - COUNT ( DISTINCT + - 95 ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9358
SELECT - 73 + + 61 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9358
SELECT - 73 + + 61 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - 80 * 93 + 40
----
-7400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9360
SELECT - 86 + + CAST( NULL AS SIGNED ) + - - MAX( - 38 ) + 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9360
SELECT - 86 + + CAST ( NULL AS INTEGER ) + - - MAX ( - 38 ) + 80 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9361
SELECT - - CAST( NULL AS SIGNED ) * + 25 - + + 46 + 36 + - 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9361
SELECT - - CAST ( NULL AS INTEGER ) * + 25 - + + 46 + 36 + - 40 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9362
SELECT - - COUNT( * ) * CASE - - 41 WHEN + 2 THEN NULL WHEN 56 THEN - 65 ELSE - + 44 END
----
-44

skipif mysql # not compatible
query I rowsort label-9362
SELECT - - COUNT ( * ) * CASE - - 41 WHEN + 2 THEN NULL WHEN 56 THEN - 65 ELSE - + 44 END
----
-44

query I rowsort
SELECT 20 * - 57 * - + 78 + - ( 15 )
----
88905

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9364
SELECT - 48 DIV - SUM( ALL - 76 ) + - 20 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-9364
SELECT - 48 / - SUM ( ALL - 76 ) + - 20 AS col1
----
-20

query I rowsort
SELECT - 22 * - + 41
----
902

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9366
SELECT DISTINCT - 34 + - CAST( + + 26 AS SIGNED ) - + + CASE CASE 23 WHEN CAST( NULL AS SIGNED ) * 63 + - 80 THEN 76 WHEN + COALESCE ( + 97, + 94 * + + 26 ) THEN + 59 END WHEN - COUNT( ALL - 97 ) THEN + 2 END + - 92 / - - 4 + 90 - - + 86 - 89 * 13 * 57 / 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9366
SELECT DISTINCT - 34 + - CAST ( + + 26 AS INTEGER ) - + + CASE CASE 23 WHEN CAST ( NULL AS INTEGER ) * 63 + - 80 THEN 76 WHEN + COALESCE ( + 97, + 94 * + + 26 ) THEN + 59 END WHEN - COUNT ( ALL - 97 ) THEN + 2 END + - 92 / - - 4 + 90 - - + 86 - 89 * 13 * 57 / 53 AS col2
----
NULL

query I rowsort
SELECT ALL - 70 + - + ( - 22 ) AS col2
----
-48

query I rowsort
SELECT ALL + ( - 97 ) + - 0
----
-97

query I rowsort
SELECT ALL 57 * - 76
----
-4332

query I rowsort
SELECT ALL - ( - - 40 ) + + + NULLIF ( + + 18, + + 51 ) col2
----
-22

query I rowsort
SELECT ALL + 16 + 48
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9372
SELECT ALL 50 + ( + ( - COUNT( * ) ) )
----
49

skipif mysql # not compatible
query I rowsort label-9372
SELECT ALL 50 + ( + ( - COUNT ( * ) ) )
----
49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9373
SELECT ALL 9 + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9373
SELECT ALL 9 + - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ALL - 44 * - + 2 AS col0
----
88

query I rowsort
SELECT 37 + + 45 + + 15 AS col2
----
97

query II rowsort
SELECT ALL 14 + + 56, 82 AS col0
----
70
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9377
SELECT 54 * + 29 - + 23 + - + NULLIF ( COUNT( * ), 30 + 75 )
----
1542

skipif mysql # not compatible
query I rowsort label-9377
SELECT 54 * + 29 - + 23 + - + NULLIF ( COUNT ( * ), 30 + 75 )
----
1542

onlyif mysql # DIV for integer division: 
query I rowsort label-9378
SELECT ALL 43 DIV + - 64 * 67 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9378
SELECT ALL 43 / + - 64 * 67 AS col1
----
0

query I rowsort
SELECT 82 + + 19
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT DISTINCT 76 * - COUNT( * ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-9380
SELECT DISTINCT 76 * - COUNT ( * ) AS col1
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-9381
SELECT DISTINCT + 53 - + - 82 AS col0, COUNT( * ) + + 55 * + + 15
----
135
826

skipif mysql # not compatible
query II rowsort label-9381
SELECT DISTINCT + 53 - + - 82 AS col0, COUNT ( * ) + + 55 * + + 15
----
135
826

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9382
SELECT CAST( 97 AS SIGNED ) * - 17 * - 58 + - 34, + 43 + COALESCE ( - 41, + - 59 ) + - COUNT( * ) AS col1
----
95608
1

skipif mysql # not compatible
query II rowsort label-9382
SELECT CAST ( 97 AS INTEGER ) * - 17 * - 58 + - 34, + 43 + COALESCE ( - 41, + - 59 ) + - COUNT ( * ) AS col1
----
95608
1

query II rowsort
SELECT ALL - 36 * - 30 AS col0, 54 * - 45 AS col0
----
1080
-2430

onlyif mysql # aggregate syntax: 
query I rowsort label-9384
SELECT 6 + COUNT( 72 ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-9384
SELECT 6 + COUNT ( 72 ) AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9385
SELECT 55 * 5 + 32 + - 86 * - MIN( + 30 )
----
2887

skipif mysql # not compatible
query I rowsort label-9385
SELECT 55 * 5 + 32 + - 86 * - MIN ( + 30 )
----
2887

query I rowsort
SELECT - 90 + 80 * - 8
----
-730

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9388
SELECT ALL + COUNT( * ) DIV - 39 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9388
SELECT ALL + COUNT ( * ) / - 39 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9389
SELECT ALL MAX( - ( - 23 ) ) AS col0, 92 + 14 - 40 + - CAST( NULL AS SIGNED ) / 48 AS col0
----
23
NULL

skipif mysql # not compatible
query II rowsort label-9389
SELECT ALL MAX ( - ( - 23 ) ) AS col0, 92 + 14 - 40 + - CAST ( NULL AS INTEGER ) / 48 AS col0
----
23
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT 24 * - 14 * - 85 + 40 * - COUNT( * ) AS col0
----
28520

skipif mysql # not compatible
query I rowsort label-9390
SELECT 24 * - 14 * - 85 + 40 * - COUNT ( * ) AS col0
----
28520

onlyif mysql # aggregate syntax: 
query I rowsort label-9391
SELECT - COUNT( * ) - ( - 48 ) * - - 76 - - 71 col2
----
3718

skipif mysql # not compatible
query I rowsort label-9391
SELECT - COUNT ( * ) - ( - 48 ) * - - 76 - - 71 col2
----
3718

query I rowsort
SELECT 3 * - 67 - - + 50 AS col1
----
-151

query II rowsort
SELECT - 95 AS col0, + 29 * + 69
----
-95
2001

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9394
SELECT ALL + ( + 28 ) + + 88, 19 * + CASE + + 22 WHEN + 41 * + - 13 + + - COUNT( * ) / + 45 THEN NULL WHEN + 21 + + 85 THEN + 82 END * COUNT( ALL - CAST( NULL AS SIGNED ) ) + + AVG ( - + 18 ) AS col0
----
116
NULL

skipif mysql # not compatible
query II rowsort label-9394
SELECT ALL + ( + 28 ) + + 88, 19 * + CASE + + 22 WHEN + 41 * + - 13 + + - COUNT ( * ) / + 45 THEN NULL WHEN + 21 + + 85 THEN + 82 END * COUNT ( ALL - CAST ( NULL AS INTEGER ) ) + + AVG ( - + 18 ) AS col0
----
116
NULL

query I rowsort
SELECT ALL - ( + - 63 ) col0
----
63

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

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

query I rowsort
SELECT ALL + 12 * + 18 AS col1
----
216

onlyif mysql # aggregate syntax: 
query II rowsort label-9398
SELECT 7 AS col2, - COUNT( * ) - + 63 + + 22 * + 93 * - 96 AS col0
----
7
-196480

skipif mysql # not compatible
query II rowsort label-9398
SELECT 7 AS col2, - COUNT ( * ) - + 63 + + 22 * + 93 * - 96 AS col0
----
7
-196480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9399
SELECT 21 * - - 50 - - CAST( NULLIF ( + 90, 78 ) AS SIGNED ) + + 2 DIV 24 + - + 60 + + - ( - COALESCE ( + + 29, NULLIF ( 14, - + NULLIF ( + 60, + 55 ) ) DIV - - SUM( + - 30 ) ) ) DIV - 65 + - + 53 + + 37 AS col2
----
1064

skipif mysql # not compatible
query I rowsort label-9399
SELECT 21 * - - 50 - - CAST ( NULLIF ( + 90, 78 ) AS INTEGER ) + + 2 / 24 + - + 60 + + - ( - COALESCE ( + + 29, NULLIF ( 14, - + NULLIF ( + 60, + 55 ) ) / - - SUM ( + - 30 ) ) ) / - 65 + - + 53 + + 37 AS col2
----
1064

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9400
SELECT ALL 27 + - + 49 - - - 31 + 38 * - + 13 DIV COUNT( * ) * 33 * + 0 + - + 27 DIV 55 + + + 54 AS col0, 71 + + 99
----
1
170

skipif mysql # not compatible
query II rowsort label-9400
SELECT ALL 27 + - + 49 - - - 31 + 38 * - + 13 / COUNT ( * ) * 33 * + 0 + - + 27 / 55 + + + 54 AS col0, 71 + + 99
----
1
170

onlyif mysql # aggregate syntax: 
query I rowsort label-9401
SELECT DISTINCT CASE + 77 WHEN - COUNT( * ) THEN - + 0 ELSE NULL END * + - 7 + 92 / - + 75 * + - 26 + 92 * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9401
SELECT DISTINCT CASE + 77 WHEN - COUNT ( * ) THEN - + 0 ELSE NULL END * + - 7 + 92 / - + 75 * + - 26 + 92 * - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 39 + - + 56
----
-95

query I rowsort
SELECT 66 * + 18 * 31
----
36828

onlyif mysql # aggregate syntax: 
query I rowsort label-9404
SELECT DISTINCT - COALESCE ( 38, + 61, - 22 + COUNT( * ) )
----
-38

skipif mysql # not compatible
query I rowsort label-9404
SELECT DISTINCT - COALESCE ( 38, + 61, - 22 + COUNT ( * ) )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9405
SELECT DISTINCT - 40 - + - 60 * - COUNT( + 63 ) + 24
----
-76

skipif mysql # not compatible
query I rowsort label-9405
SELECT DISTINCT - 40 - + - 60 * - COUNT ( + 63 ) + 24
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9406
SELECT ALL - COALESCE ( - 32, + 4 * + + ( + 58 ) * + 47 DIV - AVG ( ALL + + 83 ) * - 61 * + 32 + - COUNT( * ) ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-9406
SELECT ALL - COALESCE ( - 32, + 4 * + + ( + 58 ) * + 47 / - AVG ( ALL + + 83 ) * - 61 * + 32 + - COUNT ( * ) ) AS col2
----
32

query I rowsort
SELECT ALL - 22 - 62 AS col1
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9408
SELECT + 29 AS col1, MAX( + 18 ) DIV + 44 * 76 * - + 24 AS col1
----
29
0

skipif mysql # not compatible
query II rowsort label-9408
SELECT + 29 AS col1, MAX ( + 18 ) / + 44 * 76 * - + 24 AS col1
----
29
0

query I rowsort
SELECT DISTINCT - NULLIF ( - 78, - - 58 )
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9410
SELECT DISTINCT - 40 - + CAST( NULL AS SIGNED ) + + + 13 + - 52 * + + 69 * COUNT( * ) + - - 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9410
SELECT DISTINCT - 40 - + CAST ( NULL AS INTEGER ) + + + 13 + - 52 * + + 69 * COUNT ( * ) + - - 29 AS col1
----
NULL

query I rowsort
SELECT ALL + 50 * - 79
----
-3950

query II rowsort
SELECT 31 AS col0, 70 * 78
----
31
5460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9413
SELECT DISTINCT + 68 * 19 / ( - CASE - 83 WHEN - 4 THEN - NULLIF ( - 56, 13 ) END ) * - 24 + ( + 23 ) + + CAST( NULL AS SIGNED ) / - - MAX( 41 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9413
SELECT DISTINCT + 68 * 19 / ( - CASE - 83 WHEN - 4 THEN - NULLIF ( - 56, 13 ) END ) * - 24 + ( + 23 ) + + CAST ( NULL AS INTEGER ) / - - MAX ( 41 )
----
NULL

query I rowsort
SELECT ALL 37 * - - 55 AS col2
----
2035

query I rowsort
SELECT DISTINCT - 24 * - 27 AS col2
----
648

onlyif mysql # aggregate syntax: 
query I rowsort label-9416
SELECT 90 * + 72 * 9 * + MAX( DISTINCT - - 31 ) * + - 75
----
-135594000

skipif mysql # not compatible
query I rowsort label-9416
SELECT 90 * + 72 * 9 * + MAX ( DISTINCT - - 31 ) * + - 75
----
-135594000

query II rowsort
SELECT - - 21 AS col1, 20 - 46 AS col1
----
21
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-9418
SELECT ALL COALESCE ( + - COUNT( * ), COUNT( * ) * + 81 ) AS col0, + 95
----
-1
95

skipif mysql # not compatible
query II rowsort label-9418
SELECT ALL COALESCE ( + - COUNT ( * ), COUNT ( * ) * + 81 ) AS col0, + 95
----
-1
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9419
SELECT COUNT( DISTINCT 24 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-9419
SELECT COUNT ( DISTINCT 24 ) col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9420
SELECT 70 * CAST( 17 AS SIGNED ), 47 + - 45 AS col0
----
1190
2

skipif mysql # not compatible
query II rowsort label-9420
SELECT 70 * CAST ( 17 AS INTEGER ), 47 + - 45 AS col0
----
1190
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT ALL + MIN( - - 55 ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-9421
SELECT ALL + MIN ( - - 55 ) AS col2
----
55

query I rowsort
SELECT + 41 + 59 AS col2
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-9423
SELECT ALL 38 + 11 * - COUNT( - 84 ) col0
----
27

skipif mysql # not compatible
query I rowsort label-9423
SELECT ALL 38 + 11 * - COUNT ( - 84 ) col0
----
27

query II rowsort
SELECT - 8 + - - 97 * - + 16 AS col0, - 96 AS col0
----
-1560
-96

query I rowsort
SELECT 69 - + - 13 * + + 44
----
641

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT - MIN( - - 2 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9426
SELECT - MIN ( - - 2 ) AS col2
----
-2

onlyif mysql # DIV for integer division: 
query II rowsort label-9427
SELECT - ( + + ( - - 10 ) ) + + 2 - COALESCE ( ( - + 84 ), - + 3 ) AS col2, + 17 DIV - 20 AS col2
----
76
0

skipif mysql # not compatible
query II rowsort label-9427
SELECT - ( + + ( - - 10 ) ) + + 2 - COALESCE ( ( - + 84 ), - + 3 ) AS col2, + 17 / - 20 AS col2
----
76
0

query I rowsort
SELECT + + 3 + + + 0 AS col0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9429
SELECT ALL - MAX( DISTINCT - 6 ) + 55 * - + 98 - + 57 * 8 col1, COUNT( * ) * + + 0
----
-5840
0

skipif mysql # not compatible
query II rowsort label-9429
SELECT ALL - MAX ( DISTINCT - 6 ) + 55 * - + 98 - + 57 * 8 col1, COUNT ( * ) * + + 0
----
-5840
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9430
SELECT CAST( - CASE + + 38 WHEN 71 THEN + COUNT( * ) * 0 + - - ( + - 79 ) + + + ( + COALESCE ( NULLIF ( - 82, 83 * + 61 ), + 83 ) ) + - + 47 + + 79 WHEN + 79 + - - 54 + - - COUNT( * ) THEN NULL ELSE NULL END AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9430
SELECT CAST ( - CASE + + 38 WHEN 71 THEN + COUNT ( * ) * 0 + - - ( + - 79 ) + + + ( + COALESCE ( NULLIF ( - 82, 83 * + 61 ), + 83 ) ) + - + 47 + + 79 WHEN + 79 + - - 54 + - - COUNT ( * ) THEN NULL ELSE NULL END AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9431
SELECT + COALESCE ( - + COUNT( * ), + + COUNT( * ) + - ( - - 39 ) DIV + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9431
SELECT + COALESCE ( - + COUNT ( * ), + + COUNT ( * ) + - ( - - 39 ) / + COUNT ( * ) )
----
-1

query I rowsort
SELECT + + 17 + + - 3
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9433
SELECT ALL 40 + - - COUNT( * ) + + + COUNT( * ) DIV - - ( + MIN( DISTINCT + 7 ) ) col0
----
41

skipif mysql # not compatible
query I rowsort label-9433
SELECT ALL 40 + - - COUNT ( * ) + + + COUNT ( * ) / - - ( + MIN ( DISTINCT + 7 ) ) col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9434
SELECT + COUNT( * ) + - 32 * - 85 * - + 99 AS col1
----
-269279

skipif mysql # not compatible
query I rowsort label-9434
SELECT + COUNT ( * ) + - 32 * - 85 * - + 99 AS col1
----
-269279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9435
SELECT ALL CAST( - CASE - 52 WHEN - 7 THEN - + 43 ELSE NULL END AS SIGNED ) + + 4 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9435
SELECT ALL CAST ( - CASE - 52 WHEN - 7 THEN - + 43 ELSE NULL END AS INTEGER ) + + 4 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9436
SELECT - MIN( ALL 14 ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-9436
SELECT - MIN ( ALL 14 ) AS col0
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9437
SELECT + 22 + + + SUM( ALL + - 39 ) + + - 96 - + - ( + COUNT( * ) ) * + + 64 DIV 38 * - 61 DIV + 86 + - - COUNT( * ) - - 76 * + MAX( 99 ) AS col2, MIN( ALL + + 16 ) AS col2
----
7412
16

skipif mysql # not compatible
query II rowsort label-9437
SELECT + 22 + + + SUM ( ALL + - 39 ) + + - 96 - + - ( + COUNT ( * ) ) * + + 64 / 38 * - 61 / + 86 + - - COUNT ( * ) - - 76 * + MAX ( 99 ) AS col2, MIN ( ALL + + 16 ) AS col2
----
7412
16

onlyif mysql # DIV for integer division: 
query I rowsort label-9438
SELECT + 10 DIV - + 79
----
0

skipif mysql # not compatible
query I rowsort label-9438
SELECT + 10 / - + 79
----
0

query I rowsort
SELECT + 15 * + 8
----
120

query I rowsort
SELECT 44 * + 69 + - - 28 AS col2
----
3064

query I rowsort
SELECT + 86 * - + 64 AS col1
----
-5504

onlyif mysql # aggregate syntax: 
query I rowsort label-9442
SELECT ALL SUM( DISTINCT 71 ) * - + 0 - 70
----
-70

skipif mysql # not compatible
query I rowsort label-9442
SELECT ALL SUM ( DISTINCT 71 ) * - + 0 - 70
----
-70

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9443
SELECT + CASE - 10 WHEN - - 58 THEN - + 69 DIV + 50 * 77 + + CAST( 40 AS SIGNED ) + + 74 WHEN + 33 THEN + 49 * CAST( NULL AS SIGNED ) ELSE 97 END + - 82
----
15

skipif mysql # not compatible
query I rowsort label-9443
SELECT + CASE - 10 WHEN - - 58 THEN - + 69 / + 50 * 77 + + CAST ( 40 AS INTEGER ) + + 74 WHEN + 33 THEN + 49 * CAST ( NULL AS INTEGER ) ELSE 97 END + - 82
----
15

query I rowsort
SELECT DISTINCT 79 * 75
----
5925

onlyif mysql # aggregate syntax: 
query I rowsort label-9445
SELECT ALL + ( + MAX( DISTINCT 97 ) )
----
97

skipif mysql # not compatible
query I rowsort label-9445
SELECT ALL + ( + MAX ( DISTINCT 97 ) )
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9446
SELECT - CAST( NULL AS SIGNED ) * + + 83 / - 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9446
SELECT - CAST ( NULL AS INTEGER ) * + + 83 / - 29 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9447
SELECT ALL 31 * - - 88 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9447
SELECT ALL 31 * - - 88 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ( 82 ) * 11 + - 25 + - - 59 - + 81 AS col2
----
855

onlyif mysql # aggregate syntax: 
query I rowsort label-9449
SELECT NULLIF ( + 2, 60 + - + NULLIF ( + COALESCE ( - COUNT( * ), - 16 / - - ( 44 ) ), + 25 ) * 79 )
----
2

skipif mysql # not compatible
query I rowsort label-9449
SELECT NULLIF ( + 2, 60 + - + NULLIF ( + COALESCE ( - COUNT ( * ), - 16 / - - ( 44 ) ), + 25 ) * 79 )
----
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9451
SELECT - + COUNT( * ) + + - COUNT( * ) + + 71 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-9451
SELECT - + COUNT ( * ) + + - COUNT ( * ) + + 71 AS col0
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9452
SELECT DISTINCT - 87 DIV - MAX( DISTINCT 75 )
----
1

skipif mysql # not compatible
query I rowsort label-9452
SELECT DISTINCT - 87 / - MAX ( DISTINCT 75 )
----
1

query I rowsort
SELECT - 98 + - 48 col2
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-9454
SELECT ALL + NULLIF ( - 45, + 1 * - COUNT( DISTINCT 69 ) * + ( + 46 ) + - + 42 ) * 42 + - 34 + 10 AS col2
----
-1914

skipif mysql # not compatible
query I rowsort label-9454
SELECT ALL + NULLIF ( - 45, + 1 * - COUNT ( DISTINCT 69 ) * + ( + 46 ) + - + 42 ) * 42 + - 34 + 10 AS col2
----
-1914

onlyif mysql # aggregate syntax: 
query I rowsort label-9455
SELECT - 12 + MIN( + 75 ) + + 95 + + + 60 * 35 col1
----
2258

skipif mysql # not compatible
query I rowsort label-9455
SELECT - 12 + MIN ( + 75 ) + + 95 + + + 60 * 35 col1
----
2258

onlyif mysql # DIV for integer division: 
query I rowsort label-9456
SELECT ALL - 43 DIV - - 16
----
-2

skipif mysql # not compatible
query I rowsort label-9456
SELECT ALL - 43 / - - 16
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9457
SELECT DISTINCT + - MIN( + ( + ( - 89 ) ) ) * + CAST( NULL AS SIGNED ) + + MAX( + CAST( NULL AS SIGNED ) ) + + - COUNT( * ) * - 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9457
SELECT DISTINCT + - MIN ( + ( + ( - 89 ) ) ) * + CAST ( NULL AS INTEGER ) + + MAX ( + CAST ( NULL AS INTEGER ) ) + + - COUNT ( * ) * - 57 AS col2
----
NULL

query I rowsort
SELECT ALL - 4 * - 2
----
8

query I rowsort
SELECT ALL - 93 + + 78 - + 79 * - - 1 col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9460
SELECT ALL + + 12 + + COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-9460
SELECT ALL + + 12 + + COUNT ( * )
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-9461
SELECT - + 7 + - 25 DIV - - NULLIF ( + 79, 93 ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-9461
SELECT - + 7 + - 25 / - - NULLIF ( + 79, 93 ) AS col0
----
-7

query I rowsort
SELECT ALL + 2 + + 17
----
19

query I rowsort
SELECT + - ( - 89 ) + - 69
----
20

query I rowsort
SELECT ALL - - 99 + 81 + - 26
----
154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9465
SELECT + + 58 * + ( - CAST( NULL AS SIGNED ) ) * 40 AS col0, + 10 DIV + + 8 + 43 + 74 DIV - - COUNT( DISTINCT 27 ) AS col0
----
NULL
118

skipif mysql # not compatible
query II rowsort label-9465
SELECT + + 58 * + ( - CAST ( NULL AS INTEGER ) ) * 40 AS col0, + 10 / + + 8 + 43 + 74 / - - COUNT ( DISTINCT 27 ) AS col0
----
NULL
118

onlyif mysql # aggregate syntax: 
query I rowsort label-9466
SELECT DISTINCT MAX( + + ( 54 ) )
----
54

skipif mysql # not compatible
query I rowsort label-9466
SELECT DISTINCT MAX ( + + ( 54 ) )
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9467
SELECT ALL 34 + + + CAST( NULL AS SIGNED ) * 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9467
SELECT ALL 34 + + + CAST ( NULL AS INTEGER ) * 23 AS col0
----
NULL

query I rowsort
SELECT + NULLIF ( - 66, 27 ) * 10 * + 7
----
-4620

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9469
SELECT DISTINCT CAST( - - 47 AS SIGNED ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-9469
SELECT DISTINCT CAST ( - - 47 AS INTEGER ) AS col0
----
47

query I rowsort
SELECT - 10 - - - 53 AS col2
----
-63

query I rowsort
SELECT - CASE - 10 WHEN - 84 THEN NULL WHEN + 29 THEN - 3 * 69 ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9472
SELECT ALL - 94 DIV ( + 62 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9472
SELECT ALL - 94 / ( + 62 ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9473
SELECT - 86 + COUNT( * ) * - SUM( ALL 86 ) DIV - - 88 + - 5 - + 70 AS col1
----
-161

skipif mysql # not compatible
query I rowsort label-9473
SELECT - 86 + COUNT ( * ) * - SUM ( ALL 86 ) / - - 88 + - 5 - + 70 AS col1
----
-161

onlyif mysql # DIV for integer division: 
query I rowsort label-9474
SELECT + 92 DIV 61 col2
----
1

skipif mysql # not compatible
query I rowsort label-9474
SELECT + 92 / 61 col2
----
1

query I rowsort
SELECT + 9 + + ( 52 ) AS col0
----
61

query I rowsort
SELECT ALL 74 - + 16
----
58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT + COALESCE ( + MIN( 92 ), ( + 40 ) )
----
92

skipif mysql # not compatible
query I rowsort label-9478
SELECT + COALESCE ( + MIN ( 92 ), ( + 40 ) )
----
92

query I rowsort
SELECT + COALESCE ( 77, + - 57 * + 72 ) - - - 35
----
42

query I rowsort
SELECT ALL + 22 * 22 * + + ( - 81 ) * - 26 + 57
----
1019361

query I rowsort
SELECT DISTINCT 97 * + - 25 col0
----
-2425

onlyif mysql # aggregate syntax: 
query II rowsort label-9482
SELECT 95 * - 85 + - 77 AS col1, + COUNT( * ) AS col0
----
-8152
1

skipif mysql # not compatible
query II rowsort label-9482
SELECT 95 * - 85 + - 77 AS col1, + COUNT ( * ) AS col0
----
-8152
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9483
SELECT ALL 20 DIV COALESCE ( - 56, + COUNT( ALL 34 ) DIV + + 26 + + + 19 )
----
0

skipif mysql # not compatible
query I rowsort label-9483
SELECT ALL 20 / COALESCE ( - 56, + COUNT ( ALL 34 ) / + + 26 + + + 19 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9484
SELECT + 26 DIV + 42 col0
----
0

skipif mysql # not compatible
query I rowsort label-9484
SELECT + 26 / + 42 col0
----
0

query II rowsort
SELECT ALL + 30 AS col1, 60
----
30
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9486
SELECT + CASE - COUNT( * ) WHEN + 10 - - ( + + ( 36 ) ) THEN - - CAST( 76 AS SIGNED ) * - ( + 30 ) + - ( + - 74 ) - CASE CAST( NULL AS SIGNED ) WHEN CASE + - 11 WHEN + COALESCE ( + - ( 10 ), + MAX( 36 ) / + + 94, 10 * - 15 ) THEN + 61 - + - 77 * 11 END THEN 84 END + - + NULLIF ( - + 91, - - 52 + COUNT( * ) ) * - COUNT( * ) * 22 WHEN + 7 * 18 - CAST( - 2 AS SIGNED ) THEN 64 ELSE + 14 * 64 END + SUM( + 83 + - 15 )
----
964

skipif mysql # not compatible
query I rowsort label-9486
SELECT + CASE - COUNT ( * ) WHEN + 10 - - ( + + ( 36 ) ) THEN - - CAST ( 76 AS INTEGER ) * - ( + 30 ) + - ( + - 74 ) - CASE CAST ( NULL AS INTEGER ) WHEN CASE + - 11 WHEN + COALESCE ( + - ( 10 ), + MAX ( 36 ) / + + 94, 10 * - 15 ) THEN + 61 - + - 77 * 11 END THEN 84 END + - + NULLIF ( - + 91, - - 52 + COUNT ( * ) ) * - COUNT ( * ) * 22 WHEN + 7 * 18 - CAST ( - 2 AS INTEGER ) THEN 64 ELSE + 14 * 64 END + SUM ( + 83 + - 15 )
----
964

query I rowsort
SELECT + 2 * 12
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9488
SELECT CAST( + + 88 AS SIGNED )
----
88

skipif mysql # not compatible
query I rowsort label-9488
SELECT CAST ( + + 88 AS INTEGER )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT CASE 91 WHEN + + MAX( ALL + 47 ) + - 11 + - 23 / + 23 THEN - 22 END * - 36 + - - 94 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9489
SELECT CASE 91 WHEN + + MAX ( ALL + 47 ) + - 11 + - 23 / + 23 THEN - 22 END * - 36 + - - 94 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9490
SELECT + 78 - - 55 + - + 68 + + ( + - 75 ) + - COUNT( * ) + + - 95 * COUNT( * )
----
-106

skipif mysql # not compatible
query I rowsort label-9490
SELECT + 78 - - 55 + - + 68 + + ( + - 75 ) + - COUNT ( * ) + + - 95 * COUNT ( * )
----
-106

onlyif mysql # aggregate syntax: 
query II rowsort label-9491
SELECT ALL + 46 AS col0, - CASE - 43 WHEN - 96 THEN ( + 42 ) WHEN - 47 THEN - COUNT( * ) END
----
46
NULL

skipif mysql # not compatible
query II rowsort label-9491
SELECT ALL + 46 AS col0, - CASE - 43 WHEN - 96 THEN ( + 42 ) WHEN - 47 THEN - COUNT ( * ) END
----
46
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9492
SELECT CAST( CAST( NULL AS DECIMAL ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9492
SELECT CAST ( CAST ( NULL AS REAL ) AS INTEGER )
----
NULL

query I rowsort
SELECT - 43 * - 76 * - 9 + 82
----
-29330

onlyif mysql # aggregate syntax: 
query II rowsort label-9494
SELECT + - 91 AS col0, - MIN( ALL + 99 ) * + + 18
----
-91
-1782

skipif mysql # not compatible
query II rowsort label-9494
SELECT + - 91 AS col0, - MIN ( ALL + 99 ) * + + 18
----
-91
-1782

onlyif mysql # aggregate syntax: 
query II rowsort label-9495
SELECT + + COUNT( * ) AS col0, + 4 + ( - 80 ) AS col2
----
1
-76

skipif mysql # not compatible
query II rowsort label-9495
SELECT + + COUNT ( * ) AS col0, + 4 + ( - 80 ) AS col2
----
1
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9496
SELECT ALL - COUNT( * ) * 83 * - 35 * 78 + - COALESCE ( 79, - 86 * 10 + 16 + - 30, - AVG ( 27 ) DIV - 41 DIV 32 ) AS col2
----
226511

skipif mysql # not compatible
query I rowsort label-9496
SELECT ALL - COUNT ( * ) * 83 * - 35 * 78 + - COALESCE ( 79, - 86 * 10 + 16 + - 30, - AVG ( 27 ) / - 41 / 32 ) AS col2
----
226511

query I rowsort
SELECT + 52 * - - 6 + - 1 + + - 90
----
221

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9498
SELECT + 76 + - + 69 + + 54 + - CAST( ( + + NULLIF ( + + 18, - SUM( ALL + 66 ) ) ) AS SIGNED ) + ( - 95 ) + 57 - 91 * + 24 * 41 * 12 AS col2
----
-1074523

skipif mysql # not compatible
query I rowsort label-9498
SELECT + 76 + - + 69 + + 54 + - CAST ( ( + + NULLIF ( + + 18, - SUM ( ALL + 66 ) ) ) AS INTEGER ) + ( - 95 ) + 57 - 91 * + 24 * 41 * 12 AS col2
----
-1074523

query I rowsort
SELECT ALL - + 47 + - 74 col2
----
-121

query I rowsort
SELECT 40 - 22 * 88 AS col1
----
-1896

onlyif mysql # aggregate syntax: 
query I rowsort label-9501
SELECT ALL - - SUM( + 67 ) + + ( + 28 ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-9501
SELECT ALL - - SUM ( + 67 ) + + ( + 28 ) AS col2
----
95

query I rowsort
SELECT - 76 * - 87 + + 91 + - COALESCE ( - 24, + 93 ) + + 43
----
6770

query I rowsort
SELECT DISTINCT - ( - - 76 )
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9504
SELECT ALL - + 72 - - COUNT( * ) DIV - 42 * - 73
----
-72

skipif mysql # not compatible
query I rowsort label-9504
SELECT ALL - + 72 - - COUNT ( * ) / - 42 * - 73
----
-72

query I rowsort
SELECT 9 * - 81 AS col0
----
-729

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9506
SELECT DISTINCT - 96 AS col0, - COUNT( DISTINCT + + CAST( NULL AS DECIMAL ) )
----
-96
0

skipif mysql # not compatible
query II rowsort label-9506
SELECT DISTINCT - 96 AS col0, - COUNT ( DISTINCT + + CAST ( NULL AS REAL ) )
----
-96
0

query I rowsort
SELECT 41 + + + 65 AS col2
----
106

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-9510
SELECT DISTINCT - 8 * - - COUNT( * ) AS col2, - 73 + 67
----
-8
-6

skipif mysql # not compatible
query II rowsort label-9510
SELECT DISTINCT - 8 * - - COUNT ( * ) AS col2, - 73 + 67
----
-8
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-9511
SELECT ALL 61, - ( 95 ) DIV 51 AS col2, - COALESCE ( MAX( - + 42 ), ( COUNT( * ) ) * 1 + - 93 ) * - 4 + - - 6 AS col2
----
61
-1
-162

skipif mysql # not compatible
query III rowsort label-9511
SELECT ALL 61, - ( 95 ) / 51 AS col2, - COALESCE ( MAX ( - + 42 ), ( COUNT ( * ) ) * 1 + - 93 ) * - 4 + - - 6 AS col2
----
61
-1
-162

query II rowsort
SELECT DISTINCT 67, + 75 AS col1
----
67
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9513
SELECT ALL 71 AS col2, CAST( NULL AS SIGNED ) AS col0
----
71
NULL

skipif mysql # not compatible
query II rowsort label-9513
SELECT ALL 71 AS col2, CAST ( NULL AS INTEGER ) AS col0
----
71
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9514
SELECT DISTINCT - ( + + CAST( + ( + 63 ) AS SIGNED ) )
----
-63

skipif mysql # not compatible
query I rowsort label-9514
SELECT DISTINCT - ( + + CAST ( + ( + 63 ) AS INTEGER ) )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9515
SELECT 18 * + 11 + + - COUNT( * )
----
197

skipif mysql # not compatible
query I rowsort label-9515
SELECT 18 * + 11 + + - COUNT ( * )
----
197

onlyif mysql # aggregate syntax: 
query II rowsort label-9516
SELECT 28 col1, - COUNT( - - 17 )
----
28
-1

skipif mysql # not compatible
query II rowsort label-9516
SELECT 28 col1, - COUNT ( - - 17 )
----
28
-1

query I rowsort
SELECT - 96 * + 83 + 53
----
-7915

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9518
SELECT ALL - CAST( NULL AS DECIMAL ), + 28 col2
----
NULL
28

skipif mysql # not compatible
query II rowsort label-9518
SELECT ALL - CAST ( NULL AS REAL ), + 28 col2
----
NULL
28

query II rowsort
SELECT + 83 col0, + 46
----
83
46

onlyif mysql # DIV for integer division: 
query I rowsort label-9520
SELECT 64 DIV 32 + - - 79 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-9520
SELECT 64 / 32 + - - 79 AS col1
----
81

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

skipif mysql # not compatible
query I rowsort label-9521
SELECT COUNT ( * ) / + - 34
----
0

query I rowsort
SELECT ALL 78 + - 39 - + 9
----
30

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

query I rowsort
SELECT ALL + + 8 + + 1 col2
----
9

query II rowsort
SELECT DISTINCT - 96, 27 AS col1
----
-96
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9526
SELECT DISTINCT 31 - + + 4 * + - COUNT( * ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-9526
SELECT DISTINCT 31 - + + 4 * + - COUNT ( * ) AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT - COUNT( * ) * 32 col2
----
-32

skipif mysql # not compatible
query I rowsort label-9527
SELECT - COUNT ( * ) * 32 col2
----
-32

query I rowsort
SELECT DISTINCT ( + 23 ) - + 89
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9529
SELECT ALL - NULLIF ( + COUNT( DISTINCT 85 ), - 64 + - 20 * MIN( ALL + 90 ) - SUM( + 59 ) ) * 2
----
-2

skipif mysql # not compatible
query I rowsort label-9529
SELECT ALL - NULLIF ( + COUNT ( DISTINCT 85 ), - 64 + - 20 * MIN ( ALL + 90 ) - SUM ( + 59 ) ) * 2
----
-2

query I rowsort
SELECT ALL COALESCE ( + 64, 54 - - 53 ) AS col0
----
64

query I rowsort
SELECT ALL + COALESCE ( - 7, - 65 )
----
-7

query II rowsort
SELECT 6, + 88 * + + 77 * 46 col2
----
6
311696

query I rowsort
SELECT 64 * + 45 * + 61 + + 12 + + 33 AS col1
----
175725

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9534
SELECT ALL 16 * - NULLIF ( - 86, + 96 / 23 * - 13 + - NULLIF ( - 99, COUNT( * ) ) ) - + + 81 + + 45 AS col2, CAST( NULL AS SIGNED )
----
1340
NULL

skipif mysql # not compatible
query II rowsort label-9534
SELECT ALL 16 * - NULLIF ( - 86, + 96 / 23 * - 13 + - NULLIF ( - 99, COUNT ( * ) ) ) - + + 81 + + 45 AS col2, CAST ( NULL AS INTEGER )
----
1340
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9535
SELECT SUM( + 61 ) * + CAST( - 76 AS SIGNED ) AS col2
----
-4636

skipif mysql # not compatible
query I rowsort label-9535
SELECT SUM ( + 61 ) * + CAST ( - 76 AS INTEGER ) AS col2
----
-4636

query I rowsort
SELECT 86 + 21 * - - 87 + - 82
----
1831

onlyif mysql # aggregate syntax: 
query I rowsort label-9537
SELECT CASE 73 WHEN + 95 * - 16 + - 71 THEN 79 END / - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9537
SELECT CASE 73 WHEN + 95 * - 16 + - 71 THEN 79 END / - - COUNT ( * )
----
NULL

query I rowsort
SELECT 92 * + + 22 * + + 10 AS col2
----
20240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9539
SELECT DISTINCT + 40 DIV 25 * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9539
SELECT DISTINCT + 40 / 25 * + COUNT ( * )
----
1

query I rowsort
SELECT ALL + 22 * + + 28 AS col2
----
616

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9541
SELECT 82 DIV + 56 AS col1, 6 * + COUNT( * ) AS col1
----
1
6

skipif mysql # not compatible
query II rowsort label-9541
SELECT 82 / + 56 AS col1, 6 * + COUNT ( * ) AS col1
----
1
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9542
SELECT DISTINCT + COALESCE ( - + 40, - - 62 DIV + 73 * COUNT( * ) ) * - COUNT( * ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-9542
SELECT DISTINCT + COALESCE ( - + 40, - - 62 / + 73 * COUNT ( * ) ) * - COUNT ( * ) AS col1
----
40

query I rowsort
SELECT ( - 32 ) + + 76
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-9544
SELECT ( 35 ) DIV - 25
----
-1

skipif mysql # not compatible
query I rowsort label-9544
SELECT ( 35 ) / - 25
----
-1

query I rowsort
SELECT 75 + + 97 AS col0
----
172

onlyif mysql # aggregate syntax: 
query II rowsort label-9546
SELECT DISTINCT MIN( - 86 ) AS col2, 92
----
-86
92

skipif mysql # not compatible
query II rowsort label-9546
SELECT DISTINCT MIN ( - 86 ) AS col2, 92
----
-86
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9547
SELECT 85 + - SUM( - 38 ) * - COUNT( * ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-9547
SELECT 85 + - SUM ( - 38 ) * - COUNT ( * ) AS col1
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9548
SELECT ALL - 32 + CAST( + NULLIF ( 9, 10 ) AS SIGNED ) + + + 43 + - CASE - 57 WHEN - 32 THEN NULL WHEN MIN( + 47 ) * + - COUNT( * ) / + COUNT( * ) THEN NULL WHEN - 61 + - 19 * + 99 THEN 3 ELSE + - COUNT( * ) + - - 99 END AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-9548
SELECT ALL - 32 + CAST ( + NULLIF ( 9, 10 ) AS INTEGER ) + + + 43 + - CASE - 57 WHEN - 32 THEN NULL WHEN MIN ( + 47 ) * + - COUNT ( * ) / + COUNT ( * ) THEN NULL WHEN - 61 + - 19 * + 99 THEN 3 ELSE + - COUNT ( * ) + - - 99 END AS col0
----
-78

query I rowsort
SELECT - 67 * + 45 - - 3 col0
----
-3012

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9550
SELECT ALL - COUNT( - - 12 ) * 29 DIV - + 82 * 99 + - + 7 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-9550
SELECT ALL - COUNT ( - - 12 ) * 29 / - + 82 * 99 + - + 7 AS col1
----
-7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9551
SELECT ALL - + 31 * ( 16 ) + - ( + 82 ) + + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9551
SELECT ALL - + 31 * ( 16 ) + - ( + 82 ) + + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT + CASE + 33 WHEN + ( + 86 ) THEN - - MIN( 92 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9552
SELECT + CASE + 33 WHEN + ( + 86 ) THEN - - MIN ( 92 ) END
----
NULL

query I rowsort
SELECT + NULLIF ( + 38, + 77 ) - 37
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT NULLIF ( - - 97, 50 + - MAX( + + 0 ) )
----
97

skipif mysql # not compatible
query I rowsort label-9554
SELECT NULLIF ( - - 97, 50 + - MAX ( + + 0 ) )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT + + SUM( ALL ( + - 7 ) ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-9555
SELECT + + SUM ( ALL ( + - 7 ) ) AS col0
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-9556
SELECT ALL + ( - + COUNT( * ) ) AS col0, + 86
----
-1
86

skipif mysql # not compatible
query II rowsort label-9556
SELECT ALL + ( - + COUNT ( * ) ) AS col0, + 86
----
-1
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9557
SELECT - - MAX( DISTINCT 96 ) * 36 AS col1
----
3456

skipif mysql # not compatible
query I rowsort label-9557
SELECT - - MAX ( DISTINCT 96 ) * 36 AS col1
----
3456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9558
SELECT ALL + + COALESCE ( + ( 45 ), - - COUNT( * ) * + 14, - 95 * 61 DIV + - 95 DIV - 10 + + ( - 75 ) - + + ( 24 ) + CAST( - 13 AS SIGNED ) + + - 97 )
----
45

skipif mysql # not compatible
query I rowsort label-9558
SELECT ALL + + COALESCE ( + ( 45 ), - - COUNT ( * ) * + 14, - 95 * 61 / + - 95 / - 10 + + ( - 75 ) - + + ( 24 ) + CAST ( - 13 AS INTEGER ) + + - 97 )
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9559
SELECT DISTINCT + - COUNT( + + ( + 82 ) ) * 19 - 43 - + - 93 DIV - - 12
----
-55

skipif mysql # not compatible
query I rowsort label-9559
SELECT DISTINCT + - COUNT ( + + ( + 82 ) ) * 19 - 43 - + - 93 / - - 12
----
-55

query I rowsort
SELECT + 21 * - 48
----
-1008

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT + COUNT( ALL ( - 56 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9561
SELECT + COUNT ( ALL ( - 56 ) ) AS col1
----
1

query I rowsort
SELECT + 39 * - 65 col0
----
-2535

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT + MAX( ALL + 13 ) + COALESCE ( - 62, - 26 ) - - 94 + + + CASE WHEN ( NULL ) NOT BETWEEN - COUNT( * ) AND NULL THEN NULL WHEN ( NULL IS NULL ) THEN NULL ELSE - 27 + - COALESCE ( + + 42, + 32, COUNT( * ) ) END * + COUNT( * ) + + AVG ( - 46 ) * 26
----
NULL

skipif mysql # not compatible
query I rowsort label-9563
SELECT + MAX ( ALL + 13 ) + COALESCE ( - 62, - 26 ) - - 94 + + + CASE WHEN ( NULL ) NOT BETWEEN - COUNT ( * ) AND NULL THEN NULL WHEN ( NULL IS NULL ) THEN NULL ELSE - 27 + - COALESCE ( + + 42, + 32, COUNT ( * ) ) END * + COUNT ( * ) + + AVG ( - 46 ) * 26
----
NULL

query I rowsort
SELECT ALL 3 * 26 * - 72 * + 50 AS col1
----
-280800

query I rowsort
SELECT + NULLIF ( + 81, 61 ) + + - 54
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9566
SELECT ALL 15 + + SUM( 77 ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-9566
SELECT ALL 15 + + SUM ( 77 ) AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9567
SELECT + 86 + + COUNT( * ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-9567
SELECT + 86 + + COUNT ( * ) AS col1
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9568
SELECT + 3 - - 37 + + + NULLIF ( - - CAST( 67 AS SIGNED ), + 42 ) * CAST( NULLIF ( - COUNT( * ), + + COUNT( * ) ) AS SIGNED ) DIV 71 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-9568
SELECT + 3 - - 37 + + + NULLIF ( - - CAST ( 67 AS INTEGER ), + 42 ) * CAST ( NULLIF ( - COUNT ( * ), + + COUNT ( * ) ) AS INTEGER ) / 71 AS col1
----
40

query II rowsort
SELECT + CASE + 96 WHEN + 7 THEN - + NULLIF ( - ( - 7 ), - 10 ) END + + 23 AS col2, 59 * + 94
----
NULL
5546

query I rowsort
SELECT - 79 + - + 31 AS col2
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-9571
SELECT DISTINCT COUNT( * ) + 37 col1
----
38

skipif mysql # not compatible
query I rowsort label-9571
SELECT DISTINCT COUNT ( * ) + 37 col1
----
38

query II rowsort
SELECT 80, - 28 + - - 35 AS col1
----
80
7

query I rowsort
SELECT - ( - 97 ) AS col1
----
97

query I rowsort
SELECT - 96 + 18
----
-78

query I rowsort
SELECT ALL NULLIF ( + 38, + 41 * 62 * - 87 * + 14 + + - 70 * 6 ) + + - 47 + 80 * - 47
----
-3769

query I rowsort
SELECT - 13 * 32
----
-416

query I rowsort
SELECT ALL + COALESCE ( 28, + + 6 )
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9578
SELECT + 33 DIV + - 75 + - CAST( + ( + COUNT( * ) ) AS SIGNED ) * + 13 DIV 43
----
0

skipif mysql # not compatible
query I rowsort label-9578
SELECT + 33 / + - 75 + - CAST ( + ( + COUNT ( * ) ) AS INTEGER ) * + 13 / 43
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9579
SELECT 65 DIV - + COUNT( * ) + - + 86
----
-151

skipif mysql # not compatible
query I rowsort label-9579
SELECT 65 / - + COUNT ( * ) + - + 86
----
-151

query I rowsort
SELECT + + 54 * - 15 AS col1
----
-810

query I rowsort
SELECT - + 91 + 85
----
-6

query II rowsort
SELECT ALL - 74 * + - 18 * - 97 AS col2, + 9 col1
----
-129204
9

query I rowsort
SELECT - - 22 + - 14
----
8

query II rowsort
SELECT ALL + + 89 AS col2, 81 AS col1
----
89
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT - + SUM( DISTINCT + + 59 ) * COALESCE ( COUNT( * ), + 95, - - 4 + + + 93 )
----
-59

skipif mysql # not compatible
query I rowsort label-9585
SELECT - + SUM ( DISTINCT + + 59 ) * COALESCE ( COUNT ( * ), + 95, - - 4 + + + 93 )
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9586
SELECT - + 47 + - - 7 + + COUNT( * ) * 50 DIV 12 DIV - - 28 * - - COALESCE ( - + NULLIF ( - 13, COUNT( * ) ), - SUM( - 39 ) ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-9586
SELECT - + 47 + - - 7 + + COUNT ( * ) * 50 / 12 / - - 28 * - - COALESCE ( - + NULLIF ( - 13, COUNT ( * ) ), - SUM ( - 39 ) ) AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9587
SELECT + - NULLIF ( - MAX( ALL + 85 ), COUNT( * ) + 47 )
----
85

skipif mysql # not compatible
query I rowsort label-9587
SELECT + - NULLIF ( - MAX ( ALL + 85 ), COUNT ( * ) + 47 )
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9588
SELECT 72 * - SUM( + 45 ) + 45 / + CAST( NULL AS SIGNED ) * 50 - - MAX( ALL - + 7 ) + - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-9588
SELECT 72 * - SUM ( + 45 ) + 45 / + CAST ( NULL AS INTEGER ) * 50 - - MAX ( ALL - + 7 ) + - 71
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9589
SELECT ALL + + COUNT( * ) col1, - NULLIF ( + 55, - 68 ) col2
----
1
-55

skipif mysql # not compatible
query II rowsort label-9589
SELECT ALL + + COUNT ( * ) col1, - NULLIF ( + 55, - 68 ) col2
----
1
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9590
SELECT DISTINCT MAX( - + 61 ) * ( - COUNT( * ) )
----
61

skipif mysql # not compatible
query I rowsort label-9590
SELECT DISTINCT MAX ( - + 61 ) * ( - COUNT ( * ) )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9591
SELECT DISTINCT MIN( DISTINCT + + 95 ) * - NULLIF ( + MIN( + 6 ), - 17 ) + + 34 + 83
----
-453

skipif mysql # not compatible
query I rowsort label-9591
SELECT DISTINCT MIN ( DISTINCT + + 95 ) * - NULLIF ( + MIN ( + 6 ), - 17 ) + + 34 + 83
----
-453

onlyif mysql # aggregate syntax: 
query I rowsort label-9592
SELECT - 10 * - MIN( DISTINCT - + 43 ) AS col0
----
-430

skipif mysql # not compatible
query I rowsort label-9592
SELECT - 10 * - MIN ( DISTINCT - + 43 ) AS col0
----
-430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9593
SELECT - COALESCE ( - COUNT( * ), - CAST( - 92 AS SIGNED ), - 35, COALESCE ( - CASE - 8 WHEN 44 THEN + - COUNT( * ) * 12 * 63 * + + CASE - 7 WHEN - 66 THEN NULL ELSE 25 * 37 END * + + 42 - - - COUNT( * ) * - 96 ELSE NULL END, - - 88 ) DIV + 50 + MIN( ALL - 53 ) * - 9 * COUNT( * ) * - 71 * - 44 )
----
1

skipif mysql # not compatible
query I rowsort label-9593
SELECT - COALESCE ( - COUNT ( * ), - CAST ( - 92 AS INTEGER ), - 35, COALESCE ( - CASE - 8 WHEN 44 THEN + - COUNT ( * ) * 12 * 63 * + + CASE - 7 WHEN - 66 THEN NULL ELSE 25 * 37 END * + + 42 - - - COUNT ( * ) * - 96 ELSE NULL END, - - 88 ) / + 50 + MIN ( ALL - 53 ) * - 9 * COUNT ( * ) * - 71 * - 44 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9594
SELECT ALL 53 * 48 + - 2 DIV - 84 * - 62 + 82 + + 87 * COALESCE ( - + 48, 68 + 30 ) * + 3 AS col0
----
-9902

skipif mysql # not compatible
query I rowsort label-9594
SELECT ALL 53 * 48 + - 2 / - 84 * - 62 + 82 + + 87 * COALESCE ( - + 48, 68 + 30 ) * + 3 AS col0
----
-9902

query II rowsort
SELECT + 79 * - 64, - 62 AS col2
----
-5056
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT - COUNT( ALL 66 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9596
SELECT - COUNT ( ALL 66 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT ALL MAX( DISTINCT - 7 ) + + 79
----
72

skipif mysql # not compatible
query I rowsort label-9597
SELECT ALL MAX ( DISTINCT - 7 ) + + 79
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT - ( 92 ) - + 60 + - COUNT( * ) * + 21 * + 10
----
-362

skipif mysql # not compatible
query I rowsort label-9598
SELECT - ( 92 ) - + 60 + - COUNT ( * ) * + 21 * + 10
----
-362

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9599
SELECT ALL CAST( + + 88 AS SIGNED ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-9599
SELECT ALL CAST ( + + 88 AS INTEGER ) AS col2
----
88

query I rowsort
SELECT + 20 * - ( - 16 )
----
320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9601
SELECT COALESCE ( - - COALESCE ( 1, CAST( NULL AS SIGNED ) ), - - 49, - 60 ) + + 3
----
4

skipif mysql # not compatible
query I rowsort label-9601
SELECT COALESCE ( - - COALESCE ( 1, CAST ( NULL AS INTEGER ) ), - - 49, - 60 ) + + 3
----
4

query I rowsort
SELECT - 96 + 35 AS col2
----
-61

query I rowsort
SELECT ALL + ( + 49 ) - + 28 * - 93 * 66 - + ( - 8 ) + 52 AS col1
----
171973

query I rowsort
SELECT ALL NULLIF ( - 4, + 66 ) * - 6 AS col1
----
24

query I rowsort
SELECT - 54 - - ( + 96 )
----
42

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

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

query I rowsort
SELECT + 20 * + ( 94 )
----
1880

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9608
SELECT NULLIF ( + 79, - ( - + 25 ) / + - COALESCE ( - 32, + 80 ) / - NULLIF ( - + COUNT( * ), - + COUNT( * ) ) + + ( - + 42 ) + - 37 * CAST( + COUNT( * ) AS DECIMAL ) + - ( - 58 ) ) + + 40 * - + COUNT( * ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-9608
SELECT NULLIF ( + 79, - ( - + 25 ) / + - COALESCE ( - 32, + 80 ) / - NULLIF ( - + COUNT ( * ), - + COUNT ( * ) ) + + ( - + 42 ) + - 37 * CAST ( + COUNT ( * ) AS REAL ) + - ( - 58 ) ) + + 40 * - + COUNT ( * ) AS col0
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9609
SELECT + 3 / + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + + COUNT( * ) + - 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9609
SELECT + 3 / + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + + COUNT ( * ) + - 58 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT - 12 * - COUNT( * ) + + 12
----
24

skipif mysql # not compatible
query I rowsort label-9610
SELECT - 12 * - COUNT ( * ) + + 12
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9611
SELECT DISTINCT - 71 * + 11 * + COUNT( * )
----
-781

skipif mysql # not compatible
query I rowsort label-9611
SELECT DISTINCT - 71 * + 11 * + COUNT ( * )
----
-781

query I rowsort
SELECT 78 * - - 11
----
858

onlyif mysql # aggregate syntax: 
query I rowsort label-9613
SELECT DISTINCT + COUNT( + 17 ) + - - 7 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-9613
SELECT DISTINCT + COUNT ( + 17 ) + - - 7 AS col1
----
8

query I rowsort
SELECT ALL + + 58 + - + 30 AS col0
----
28

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-9616
SELECT ALL - 35 + - 14 * - 1 DIV - 80 col0
----
-35

skipif mysql # not compatible
query I rowsort label-9616
SELECT ALL - 35 + - 14 * - 1 / - 80 col0
----
-35

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

skipif mysql # not compatible
query I rowsort label-9617
SELECT DISTINCT + COUNT ( * ) + 38 AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9618
SELECT ALL - 63 + - - COUNT( * ) * COUNT( * ) * - COUNT( * ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-9618
SELECT ALL - 63 + - - COUNT ( * ) * COUNT ( * ) * - COUNT ( * ) AS col0
----
-64

query I rowsort
SELECT 92 - + - 90
----
182

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9620
SELECT ALL + 36 + - 14 - 77 DIV - COUNT( * ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-9620
SELECT ALL + 36 + - 14 - 77 / - COUNT ( * ) AS col0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9621
SELECT 75 + + COUNT( DISTINCT + - CAST( NULL AS SIGNED ) )
----
75

skipif mysql # not compatible
query I rowsort label-9621
SELECT 75 + + COUNT ( DISTINCT + - CAST ( NULL AS INTEGER ) )
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-9622
SELECT 85 + + + COUNT( * ) * + ( + 42 ) * COUNT( * ), + COUNT( * ) AS col2
----
127
1

skipif mysql # not compatible
query II rowsort label-9622
SELECT 85 + + + COUNT ( * ) * + ( + 42 ) * COUNT ( * ), + COUNT ( * ) AS col2
----
127
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9623
SELECT 20 DIV - COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-9623
SELECT 20 / - COUNT ( * )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9624
SELECT 91 + COUNT( * ) * - 50
----
41

skipif mysql # not compatible
query I rowsort label-9624
SELECT 91 + COUNT ( * ) * - 50
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9625
SELECT DISTINCT - COUNT( * ) + + + NULLIF ( - 10, + + 41 * + - 18 * 85 + - 86 - - 14 * + + COALESCE ( + - 1, - 26 / + 64 + + 36 * 86 + - - 78, - 76 ) )
----
-11

skipif mysql # not compatible
query I rowsort label-9625
SELECT DISTINCT - COUNT ( * ) + + + NULLIF ( - 10, + + 41 * + - 18 * 85 + - 86 - - 14 * + + COALESCE ( + - 1, - 26 / + 64 + + 36 * 86 + - - 78, - 76 ) )
----
-11

query I rowsort
SELECT 10 + 53 + + 23
----
86

query I rowsort
SELECT 16 * 47 AS col1
----
752

onlyif mysql # aggregate syntax: 
query I rowsort label-9628
SELECT 29 + + + COUNT( ALL 55 ) + - + 85 AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-9628
SELECT 29 + + + COUNT ( ALL 55 ) + - + 85 AS col1
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9629
SELECT 36 + + CAST( + + COUNT( * ) AS SIGNED ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-9629
SELECT 36 + + CAST ( + + COUNT ( * ) AS INTEGER ) AS col0
----
37

query I rowsort
SELECT 6 * + 56
----
336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9631
SELECT COALESCE ( - 19, - - ( - COUNT( * ) ) DIV + + 52, + - 34 * + 92 * COUNT( * ) + - - 56 + + - COUNT( * ) * + CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) ) + - + CASE + NULLIF ( 42, - 36 ) WHEN - AVG ( + 62 ) THEN NULL WHEN - 6 * 48 THEN NULL ELSE - ( + - CAST( 36 AS SIGNED ) ) END AS col2, 88 DIV 26 - - 50 + - + 97 * 8 * + 47
----
-55
-36419

skipif mysql # not compatible
query II rowsort label-9631
SELECT COALESCE ( - 19, - - ( - COUNT ( * ) ) / + + 52, + - 34 * + 92 * COUNT ( * ) + - - 56 + + - COUNT ( * ) * + CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) ) + - + CASE + NULLIF ( 42, - 36 ) WHEN - AVG ( + 62 ) THEN NULL WHEN - 6 * 48 THEN NULL ELSE - ( + - CAST ( 36 AS INTEGER ) ) END AS col2, 88 / 26 - - 50 + - + 97 * 8 * + 47
----
-55
-36419

query I rowsort
SELECT ALL + ( - 38 ) - 78 * - 50
----
3862

onlyif mysql # aggregate syntax: 
query II rowsort label-9633
SELECT - 90 AS col1, + 28 + 89 - - COUNT( * ) * + 31 AS col0
----
-90
148

skipif mysql # not compatible
query II rowsort label-9633
SELECT - 90 AS col1, + 28 + 89 - - COUNT ( * ) * + 31 AS col0
----
-90
148

query I rowsort
SELECT - 85 + + 55
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9635
SELECT 98 DIV - 78 + + MAX( ALL + - 51 )
----
-52

skipif mysql # not compatible
query I rowsort label-9635
SELECT 98 / - 78 + + MAX ( ALL + - 51 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9636
SELECT COUNT( * ) + - 28 + 38 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-9636
SELECT COUNT ( * ) + - 28 + 38 AS col1
----
11

query I rowsort
SELECT - CASE + 80 WHEN 33 THEN 73 - - 96 - - + 35 WHEN + 8 THEN NULL WHEN + + ( - + 58 ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT 68 * + - 41
----
-2788

query I rowsort
SELECT ALL 44 * + ( ( - 0 ) ) AS col2
----
0

query I rowsort
SELECT 55 + + 65 AS col0
----
120

query I rowsort
SELECT + - COALESCE ( - 7, - - 64 )
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-9642
SELECT DISTINCT - - 66, - CASE + + 35 WHEN AVG ( + 10 ) THEN - - 25 ELSE NULL END + + COUNT( * ) AS col0
----
66
NULL

skipif mysql # not compatible
query II rowsort label-9642
SELECT DISTINCT - - 66, - CASE + + 35 WHEN AVG ( + 10 ) THEN - - 25 ELSE NULL END + + COUNT ( * ) AS col0
----
66
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9643
SELECT 47 DIV + 25
----
1

skipif mysql # not compatible
query I rowsort label-9643
SELECT 47 / + 25
----
1

query II rowsort
SELECT ALL + 59 * - + 42 + - - 33 AS col2, + COALESCE ( - 10, - + 59 )
----
-2445
-10

query I rowsort
SELECT DISTINCT - + 93 + - 98 * + COALESCE ( + 51, - 9, 0 )
----
-5091

query I rowsort
SELECT ALL + 84 + - 5 - - 21 * + - 72 AS col1
----
-1433

onlyif mysql # DIV for integer division: 
query I rowsort label-9647
SELECT ALL 92 DIV 70 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9647
SELECT ALL 92 / 70 AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9648
SELECT COUNT( ALL + + 49 ) DIV + 32
----
0

skipif mysql # not compatible
query I rowsort label-9648
SELECT COUNT ( ALL + + 49 ) / + 32
----
0

query I rowsort
SELECT 1 + 45 - - 27 AS col0
----
73

query II rowsort
SELECT + 96, + 96
----
96
96

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

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

query II rowsort
SELECT ALL 86 + + 98 col0, 51 - - 74 + 6 AS col2
----
184
131

query I rowsort
SELECT ALL 45 * - - ( 13 )
----
585

onlyif mysql # aggregate syntax: 
query I rowsort label-9654
SELECT MIN( DISTINCT - - 54 ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-9654
SELECT MIN ( DISTINCT - - 54 ) AS col2
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9655
SELECT CASE - ( - 16 ) WHEN + 9 - - COALESCE ( + - CAST( COUNT( * ) AS SIGNED ), - 91 * - 23 + + 79 ) + + COUNT( * ) THEN - 63 WHEN + 4 + 23 * - 82 THEN + 87 END / - ( + - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9655
SELECT CASE - ( - 16 ) WHEN + 9 - - COALESCE ( + - CAST ( COUNT ( * ) AS INTEGER ), - 91 * - 23 + + 79 ) + + COUNT ( * ) THEN - 63 WHEN + 4 + 23 * - 82 THEN + 87 END / - ( + - COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9656
SELECT DISTINCT 91 + - - SUM( DISTINCT + 94 ) AS col0
----
185

skipif mysql # not compatible
query I rowsort label-9656
SELECT DISTINCT 91 + - - SUM ( DISTINCT + 94 ) AS col0
----
185

query I rowsort
SELECT ALL 50 - + 64 + 40 * - 93 * + 92 AS col1
----
-342254

onlyif mysql # aggregate syntax: 
query I rowsort label-9658
SELECT ALL + 33 - - MIN( DISTINCT - + 91 ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-9658
SELECT ALL + 33 - - MIN ( DISTINCT - + 91 ) AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9659
SELECT DISTINCT + MIN( ALL 18 )
----
18

skipif mysql # not compatible
query I rowsort label-9659
SELECT DISTINCT + MIN ( ALL 18 )
----
18

query I rowsort
SELECT + 8 * - 6 AS col0
----
-48

query I rowsort
SELECT - 14 * 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9662
SELECT ALL - ( - 69 ) - + + MAX( - 53 ) + + + 53 * COUNT( * ) AS col1
----
175

skipif mysql # not compatible
query I rowsort label-9662
SELECT ALL - ( - 69 ) - + + MAX ( - 53 ) + + + 53 * COUNT ( * ) AS col1
----
175

query I rowsort
SELECT - 78 * 80
----
-6240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9664
SELECT ALL - CASE + 89 WHEN 62 + + - 51 * 84 DIV + - CAST( NULL AS SIGNED ) THEN - - 28 * + 60 + 15 ELSE + 33 END DIV + - COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-9664
SELECT ALL - CASE + 89 WHEN 62 + + - 51 * 84 / + - CAST ( NULL AS INTEGER ) THEN - - 28 * + 60 + 15 ELSE + 33 END / + - COUNT ( * )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9665
SELECT - 31 * - - COUNT( * ) + - - COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-9665
SELECT - 31 * - - COUNT ( * ) + - - COUNT ( * )
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9666
SELECT DISTINCT - 54 * + 61 DIV COUNT( * ) * - + 86 * - ( 9 )
----
-2549556

skipif mysql # not compatible
query I rowsort label-9666
SELECT DISTINCT - 54 * + 61 / COUNT ( * ) * - + 86 * - ( 9 )
----
-2549556

query I rowsort
SELECT - - 43 * - - 8 AS col0
----
344

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9668
SELECT - 2 + + + 83 - + 50 - 28 DIV + 87 * - COUNT( * ) AS col1, - 24 * - 6
----
31
144

skipif mysql # not compatible
query II rowsort label-9668
SELECT - 2 + + + 83 - + 50 - 28 / + 87 * - COUNT ( * ) AS col1, - 24 * - 6
----
31
144

query I rowsort
SELECT - 72 - + 62 * 70
----
-4412

query I rowsort
SELECT - 11 * + 91
----
-1001

onlyif mysql # aggregate syntax: 
query I rowsort label-9671
SELECT + - 35 + - 19 * - + COUNT( * ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-9671
SELECT + - 35 + - 19 * - + COUNT ( * ) AS col0
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9672
SELECT - + NULLIF ( - + ( + + CAST( COUNT( * ) AS SIGNED ) ), - COALESCE ( - 66, + - 26, + 32 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9672
SELECT - + NULLIF ( - + ( + + CAST ( COUNT ( * ) AS INTEGER ) ), - COALESCE ( - 66, + - 26, + 32 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9673
SELECT + + CASE + 31 WHEN COUNT( * ) THEN NULL WHEN - 60 * - 86 THEN + - 4 ELSE NULL END / - 63 + + 4 - + + ( - ( - 71 ) ) + + - 23 + + - COUNT( * ) / - CAST( NULL AS SIGNED ) + - 99 * - 88 / + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-9673
SELECT + + CASE + 31 WHEN COUNT ( * ) THEN NULL WHEN - 60 * - 86 THEN + - 4 ELSE NULL END / - 63 + + 4 - + + ( - ( - 71 ) ) + + - 23 + + - COUNT ( * ) / - CAST ( NULL AS INTEGER ) + - 99 * - 88 / + 75
----
NULL

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

skipif mysql # not compatible
query I rowsort label-9674
SELECT ALL - CAST ( NULL AS INTEGER ) + + 71
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9675
SELECT DISTINCT - - 50 + + 14 DIV 50 + - + 77 * - 77 * + 34, + 38 DIV - 26 AS col0
----
201636
-1

skipif mysql # not compatible
query II rowsort label-9675
SELECT DISTINCT - - 50 + + 14 / 50 + - + 77 * - 77 * + 34, + 38 / - 26 AS col0
----
201636
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9676
SELECT ALL + CAST( + 48 AS SIGNED ), - MIN( ALL 86 ) AS col0
----
48
-86

skipif mysql # not compatible
query II rowsort label-9676
SELECT ALL + CAST ( + 48 AS INTEGER ), - MIN ( ALL 86 ) AS col0
----
48
-86

query II rowsort
SELECT - 19, + ( + 1 ) AS col0
----
-19
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT COUNT( * ) * + 59 + - 36 + 19 * - + 46 * + 24
----
-20953

skipif mysql # not compatible
query I rowsort label-9678
SELECT COUNT ( * ) * + 59 + - 36 + 19 * - + 46 * + 24
----
-20953

query I rowsort
SELECT ALL 74 * + + ( + - ( + + 54 ) ) + 77
----
-3919

onlyif mysql # DIV for integer division: 
query I rowsort label-9680
SELECT + 66 * 77 DIV - 70 - - 39 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-9680
SELECT + 66 * 77 / - 70 - - 39 AS col1
----
-33

query II rowsort
SELECT + 53 AS col2, 63 AS col2
----
53
63

query II rowsort
SELECT + 39 + 74 AS col0, - 20 + - - 65 AS col1
----
113
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT CASE COUNT( DISTINCT - - 51 ) WHEN - MAX( + 80 ) + MIN( ALL 58 ) THEN + 2 + 98 + 79 * - 92 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9683
SELECT CASE COUNT ( DISTINCT - - 51 ) WHEN - MAX ( + 80 ) + MIN ( ALL 58 ) THEN + 2 + 98 + 79 * - 92 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9684
SELECT + NULLIF ( 41, + - COALESCE ( - 67, - - 56, - MIN( - CAST( NULL AS SIGNED ) ) * + 16 + - 32 + - 67 - - - 42 ) ) * - + SUM( - 0 ) * ( + ( + 37 ) ) * + 50 * 88
----
0

skipif mysql # not compatible
query I rowsort label-9684
SELECT + NULLIF ( 41, + - COALESCE ( - 67, - - 56, - MIN ( - CAST ( NULL AS INTEGER ) ) * + 16 + - 32 + - 67 - - - 42 ) ) * - + SUM ( - 0 ) * ( + ( + 37 ) ) * + 50 * 88
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9685
SELECT ALL 10 * 18 DIV 91 - + 70
----
-69

skipif mysql # not compatible
query I rowsort label-9685
SELECT ALL 10 * 18 / 91 - + 70
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9686
SELECT CASE - + 79 WHEN - + 1 * - 95 THEN NULL WHEN - 16 THEN NULL WHEN + 20 * - - 83 THEN NULL ELSE - MAX( DISTINCT ( + + 41 ) ) END col0
----
-41

skipif mysql # not compatible
query I rowsort label-9686
SELECT CASE - + 79 WHEN - + 1 * - 95 THEN NULL WHEN - 16 THEN NULL WHEN + 20 * - - 83 THEN NULL ELSE - MAX ( DISTINCT ( + + 41 ) ) END col0
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9687
SELECT ALL - 99 * + 16 DIV - + COUNT( * ) - 64
----
1520

skipif mysql # not compatible
query I rowsort label-9687
SELECT ALL - 99 * + 16 / - + COUNT ( * ) - 64
----
1520

onlyif mysql # aggregate syntax: 
query I rowsort label-9688
SELECT ALL CASE + - 29 WHEN + + COUNT( * ) THEN - ( + 55 ) * 46 - - SUM( 71 ) + 6 ELSE NULL END * - + 4 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9688
SELECT ALL CASE + - 29 WHEN + + COUNT ( * ) THEN - ( + 55 ) * 46 - - SUM ( 71 ) + 6 ELSE NULL END * - + 4 AS col1
----
NULL

query I rowsort
SELECT CASE 6 WHEN + 22 THEN - 18 END
----
NULL

query I rowsort
SELECT + 34 * - 66 * - 94 + + 9
----
210945

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-9691
SELECT + 14 - - COUNT( * ) AS col1, 77 AS col0, - 96 + - 21 + + 4 DIV 46
----
15
77
-117

skipif mysql # not compatible
query III rowsort label-9691
SELECT + 14 - - COUNT ( * ) AS col1, 77 AS col0, - 96 + - 21 + + 4 / 46
----
15
77
-117

query I rowsort
SELECT 74 * 65 * 98 + + 33 AS col2
----
471413

onlyif mysql # aggregate syntax: 
query I rowsort label-9693
SELECT COUNT( * ) * - 55 - + 21 + + 46 + 76 * - ( - COALESCE ( 69, - + 92, 70 ) ) + + COUNT( * )
----
5215

skipif mysql # not compatible
query I rowsort label-9693
SELECT COUNT ( * ) * - 55 - + 21 + + 46 + 76 * - ( - COALESCE ( 69, - + 92, 70 ) ) + + COUNT ( * )
----
5215

onlyif mysql # aggregate syntax: 
query I rowsort label-9694
SELECT + 61 + + 85 + - COUNT( DISTINCT - 72 ) * 13 + + 64 + ( - SUM( 24 ) )
----
173

skipif mysql # not compatible
query I rowsort label-9694
SELECT + 61 + + 85 + - COUNT ( DISTINCT - 72 ) * 13 + + 64 + ( - SUM ( 24 ) )
----
173

onlyif mysql # DIV for integer division: 
query I rowsort label-9695
SELECT + 78 DIV 1 DIV 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9695
SELECT + 78 / 1 / 86 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9696
SELECT - 96 * + 25 + - 73 - + 30 + - 77 + ( - CAST( 53 AS SIGNED ) ) AS col2
----
-2633

skipif mysql # not compatible
query I rowsort label-9696
SELECT - 96 * + 25 + - 73 - + 30 + - 77 + ( - CAST ( 53 AS INTEGER ) ) AS col2
----
-2633

query I rowsort
SELECT DISTINCT 95 * + ( + + 61 ) * + + 27 AS col2
----
156465

query II rowsort
SELECT + 20 + - 61, - NULLIF ( - + 18, - 69 + - 89 + 80 ) AS col0
----
-41
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9699
SELECT - COUNT( * ) * NULLIF ( - + 99, + 31 + + 0 * - NULLIF ( + 90, - 58 ) * + 84 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-9699
SELECT - COUNT ( * ) * NULLIF ( - + 99, + 31 + + 0 * - NULLIF ( + 90, - 58 ) * + 84 ) AS col1
----
99

query I rowsort
SELECT DISTINCT + 24 * 1 * 52 AS col1
----
1248

query I rowsort
SELECT ALL 3 + - 85 - 16
----
-98

query I rowsort
SELECT DISTINCT - + 89 + + 34 AS col1
----
-55

query I rowsort
SELECT - - ( + ( 65 ) ) + - + 36
----
29

query I rowsort
SELECT DISTINCT + 42 * + 73 AS col0
----
3066

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT DISTINCT - + COUNT( * ) + - - 11
----
10

skipif mysql # not compatible
query I rowsort label-9705
SELECT DISTINCT - + COUNT ( * ) + - - 11
----
10

query II rowsort
SELECT ALL - 50 + + - 57 col2, 99 col1
----
-107
99

query I rowsort
SELECT DISTINCT + - 85 * + - 12
----
1020

query I rowsort
SELECT - 50 * + - 50 AS col0
----
2500

query II rowsort
SELECT ALL + 48 * + 66, + 52 AS col0
----
3168
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9710
SELECT ALL - - COUNT( + ( 62 ) ) + 87 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-9710
SELECT ALL - - COUNT ( + ( 62 ) ) + 87 AS col1
----
88

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT + COUNT( DISTINCT 57 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9712
SELECT + COUNT ( DISTINCT 57 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9713
SELECT - 16 DIV 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9713
SELECT - 16 / 88 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9714
SELECT - - COUNT( * ) * + - ( CASE 73 WHEN 19 * + + 6 THEN + 4 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9714
SELECT - - COUNT ( * ) * + - ( CASE 73 WHEN 19 * + + 6 THEN + 4 END )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9715
SELECT ALL + + COUNT( ALL - 85 ) col1, - 87 * - + 60 + 39 AS col2
----
1
5259

skipif mysql # not compatible
query II rowsort label-9715
SELECT ALL + + COUNT ( ALL - 85 ) col1, - 87 * - + 60 + 39 AS col2
----
1
5259

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

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

query I rowsort
SELECT - 45 + + - 21 AS col2
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9718
SELECT - 31 * CASE + CAST( + 43 AS SIGNED ) WHEN - 87 THEN - - 44 - - - 53 / 31 ELSE NULL END * - 15 + + 60 + 41 + + ( COUNT( * ) ) * + - 34 / + MIN( + 86 ) * ( + COUNT( * ) ) + + 18 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9718
SELECT - 31 * CASE + CAST ( + 43 AS INTEGER ) WHEN - 87 THEN - - 44 - - - 53 / 31 ELSE NULL END * - 15 + + 60 + 41 + + ( COUNT ( * ) ) * + - 34 / + MIN ( + 86 ) * ( + COUNT ( * ) ) + + 18 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9719
SELECT COUNT( * ) * - MAX( DISTINCT 28 ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-9719
SELECT COUNT ( * ) * - MAX ( DISTINCT 28 ) AS col0
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9720
SELECT + 62, - CASE + 60 WHEN + 13 * - 3 * + 72 THEN + CAST( + 39 AS SIGNED ) + + COUNT( * ) * 91 * - - 33 * + COUNT( * ) * 16 END + - + 31 AS col2
----
62
NULL

skipif mysql # not compatible
query II rowsort label-9720
SELECT + 62, - CASE + 60 WHEN + 13 * - 3 * + 72 THEN + CAST ( + 39 AS INTEGER ) + + COUNT ( * ) * 91 * - - 33 * + COUNT ( * ) * 16 END + - + 31 AS col2
----
62
NULL

query I rowsort
SELECT ALL + ( + + 62 ) * + 74 + - - 45
----
4633

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9722
SELECT ALL - 74 AS col2, COUNT( * ) + - + 13 - - + SUM( + + 58 ) DIV + CAST( 61 AS SIGNED ) + - 77 AS col1
----
-74
-89

skipif mysql # not compatible
query II rowsort label-9722
SELECT ALL - 74 AS col2, COUNT ( * ) + - + 13 - - + SUM ( + + 58 ) / + CAST ( 61 AS INTEGER ) + - 77 AS col1
----
-74
-89

query I rowsort
SELECT 45 + - - 21
----
66

query II rowsort
SELECT ALL - 6, 29 AS col2
----
-6
29

query II rowsort
SELECT ALL - 19 AS col0, 60 col2
----
-19
60

query II rowsort
SELECT - 74 AS col2, - 52
----
-74
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9727
SELECT - CAST( NULL AS SIGNED ) / - CASE - - 20 WHEN + 19 THEN NULL WHEN 48 * - 29 THEN + + ( - 95 ) END col0, - CASE + 89 WHEN + COALESCE ( - 72, + 72 * 55 / + + 29 + - 0 + + COALESCE ( + COUNT( DISTINCT 87 ), - NULLIF ( - - COUNT( * ), + 99 ) ) - + 47 * - + ( 96 ) * + 7 * + + COALESCE ( + + ( + + 90 ), - - 68 ) ) * - + CASE + - 99 WHEN + 52 + + CAST( NULL AS SIGNED ) + + AVG ( + 45 ) - 88 + + ( - + COUNT( * ) ) * - 14 + + + 20 THEN NULL WHEN 22 THEN - - 0 * + 68 + 88 END THEN SUM( - 11 ) / - 15 WHEN + 65 + - CASE WHEN 78 = ( NULL ) THEN ( 2 ) + COUNT( * ) * - 92 ELSE NULL END THEN NULL END AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9727
SELECT - CAST ( NULL AS INTEGER ) / - CASE - - 20 WHEN + 19 THEN NULL WHEN 48 * - 29 THEN + + ( - 95 ) END col0, - CASE + 89 WHEN + COALESCE ( - 72, + 72 * 55 / + + 29 + - 0 + + COALESCE ( + COUNT ( DISTINCT 87 ), - NULLIF ( - - COUNT ( * ), + 99 ) ) - + 47 * - + ( 96 ) * + 7 * + + COALESCE ( + + ( + + 90 ), - - 68 ) ) * - + CASE + - 99 WHEN + 52 + + CAST ( NULL AS INTEGER ) + + AVG ( + 45 ) - 88 + + ( - + COUNT ( * ) ) * - 14 + + + 20 THEN NULL WHEN 22 THEN - - 0 * + 68 + 88 END THEN SUM ( - 11 ) / - 15 WHEN + 65 + - CASE WHEN 78 = ( NULL ) THEN ( 2 ) + COUNT ( * ) * - 92 ELSE NULL END THEN NULL END AS col1
----
NULL
NULL

query I rowsort
SELECT 19 * + 61 * 77
----
89243

onlyif mysql # aggregate syntax: 
query II rowsort label-9729
SELECT ALL - 4 * + 78 + 58, - COUNT( * ) * - 95 + - 1 + + 87 * 82 + - 28 * + 53 AS col1
----
-254
5744

skipif mysql # not compatible
query II rowsort label-9729
SELECT ALL - 4 * + 78 + 58, - COUNT ( * ) * - 95 + - 1 + + 87 * 82 + - 28 * + 53 AS col1
----
-254
5744

onlyif mysql # aggregate syntax: 
query I rowsort label-9730
SELECT ALL SUM( - 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-9730
SELECT ALL SUM ( - 95 )
----
-95

query II rowsort
SELECT - 63, - 14 col1
----
-63
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-9732
SELECT + 8 AS col2, COALESCE ( - CASE - + 97 WHEN - + 87 THEN NULL WHEN 84 THEN NULL WHEN - - MIN( - 35 ) THEN NULL ELSE 48 END, 48, - + 60 + + 15 ) AS col2
----
8
-48

skipif mysql # not compatible
query II rowsort label-9732
SELECT + 8 AS col2, COALESCE ( - CASE - + 97 WHEN - + 87 THEN NULL WHEN 84 THEN NULL WHEN - - MIN ( - 35 ) THEN NULL ELSE 48 END, 48, - + 60 + + 15 ) AS col2
----
8
-48

query I rowsort
SELECT DISTINCT 33 + + 35 + - - 85 AS col0
----
153

query I rowsort
SELECT 99 - + 80 AS col0
----
19

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9735
SELECT ALL 77 * 5 * 41 + CAST( NULL AS DECIMAL ) + + 48 + - + 46 * + 58 + 2 * 19 * + - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-9735
SELECT ALL 77 * 5 * 41 + CAST ( NULL AS REAL ) + + 48 + - + 46 * + 58 + 2 * 19 * + - 75
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9736
SELECT ALL CASE - - 67 WHEN + SUM( + + 57 ) * - 93 * + CAST( - NULLIF ( COUNT( * ), - AVG ( DISTINCT + 93 ) + - - 33 ) AS SIGNED ) * + 28 * + COUNT( * ) + - 72 THEN 96 WHEN + - 66 THEN + - 80 WHEN - + COUNT( * ) + - CAST( CAST( - + 69 AS DECIMAL ) AS SIGNED ) + - - 95 THEN NULL ELSE 98 + - 13 END AS col2
----
85

skipif mysql # not compatible
query I rowsort label-9736
SELECT ALL CASE - - 67 WHEN + SUM ( + + 57 ) * - 93 * + CAST ( - NULLIF ( COUNT ( * ), - AVG ( DISTINCT + 93 ) + - - 33 ) AS INTEGER ) * + 28 * + COUNT ( * ) + - 72 THEN 96 WHEN + - 66 THEN + - 80 WHEN - + COUNT ( * ) + - CAST ( CAST ( - + 69 AS REAL ) AS INTEGER ) + - - 95 THEN NULL ELSE 98 + - 13 END AS col2
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-9737
SELECT ALL 20, 68 + - COUNT( * ) AS col1
----
20
67

skipif mysql # not compatible
query II rowsort label-9737
SELECT ALL 20, 68 + - COUNT ( * ) AS col1
----
20
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9738
SELECT - COALESCE ( - 17, - + 22 * + - 37 + + 63 + - COUNT( - + 64 ) ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-9738
SELECT - COALESCE ( - 17, - + 22 * + - 37 + + 63 + - COUNT ( - + 64 ) ) AS col0
----
17

query I rowsort
SELECT DISTINCT - 52 + + 58 * 82 * 48 * - 85 + + + 52
----
-19404480

query I rowsort
SELECT + 70 - 90
----
-20

query I rowsort
SELECT DISTINCT COALESCE ( 36, + ( 54 ), + - ( + + 20 ) + - 48 )
----
36

query I rowsort
SELECT 60 * + + 84 AS col1
----
5040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9743
SELECT ALL - + NULLIF ( + 78, 97 + + + 24 ) - CAST( NULL AS SIGNED ) / + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-9743
SELECT ALL - + NULLIF ( + 78, 97 + + + 24 ) - CAST ( NULL AS INTEGER ) / + 30
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9744
SELECT ALL + 46 * 64 DIV - - 87 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-9744
SELECT ALL + 46 * 64 / - - 87 AS col1
----
33

query I rowsort
SELECT ALL COALESCE ( - ( + 97 ), 49 ) * + 43
----
-4171

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9746
SELECT + 89 DIV - - 56 + + MIN( DISTINCT - + 76 ) * + 56
----
-4255

skipif mysql # not compatible
query I rowsort label-9746
SELECT + 89 / - - 56 + + MIN ( DISTINCT - + 76 ) * + 56
----
-4255

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT DISTINCT - MAX( 96 ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-9747
SELECT DISTINCT - MAX ( 96 ) AS col2
----
-96

query I rowsort
SELECT 0 * - 80
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9750
SELECT DISTINCT - COALESCE ( - 6, + 7 ) + - 50 DIV - COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-9750
SELECT DISTINCT - COALESCE ( - 6, + 7 ) + - 50 / - COUNT ( * )
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9751
SELECT 45 DIV - SUM( 59 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-9751
SELECT 45 / - SUM ( 59 ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9752
SELECT ALL - 11 + - + COUNT( * ) * 54 col1
----
-65

skipif mysql # not compatible
query I rowsort label-9752
SELECT ALL - 11 + - + COUNT ( * ) * 54 col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT COUNT( DISTINCT + 14 ) * - - 38
----
38

skipif mysql # not compatible
query I rowsort label-9753
SELECT COUNT ( DISTINCT + 14 ) * - - 38
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-9754
SELECT - 88 * - 36 + + 43 + 4 + 99 DIV + 77 col1
----
3216

skipif mysql # not compatible
query I rowsort label-9754
SELECT - 88 * - 36 + + 43 + 4 + 99 / + 77 col1
----
3216

query I rowsort
SELECT DISTINCT + 39 * 36
----
1404

query I rowsort
SELECT 35 + 89 * - + 4 * 11 col1
----
-3881

query I rowsort
SELECT ALL 21 + 71 - + 74 * - 31 AS col1
----
2386

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT DISTINCT + MAX( - ( 15 ) ) + + 93 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-9758
SELECT DISTINCT + MAX ( - ( 15 ) ) + + 93 AS col0
----
78

query I rowsort
SELECT + 18 + - 52 AS col1
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-9760
SELECT ALL + 23 - - 82 DIV + 79
----
24

skipif mysql # not compatible
query I rowsort label-9760
SELECT ALL + 23 - - 82 / + 79
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-9761
SELECT ( + 15 ) DIV - 44 * - 89 DIV 44
----
0

skipif mysql # not compatible
query I rowsort label-9761
SELECT ( + 15 ) / - 44 * - 89 / 44
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9762
SELECT - SUM( DISTINCT CAST( NULL AS SIGNED ) ) + + 40 + + - 23 * + 62 * - 13 * + 81 + 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9762
SELECT - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) + + 40 + + - 23 * + 62 * - 13 * + 81 + 23 AS col2
----
NULL

query I rowsort
SELECT 16 * + 20 + - 33
----
287

query I rowsort
SELECT ALL 51 * - 16 AS col2
----
-816

query I rowsort
SELECT + 22 * + - 66 AS col2
----
-1452

query I rowsort
SELECT ALL 27 * ( + 84 )
----
2268

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9767
SELECT + 98 * 51 * CAST( NULL AS SIGNED ) AS col2, + 43 AS col0
----
NULL
43

skipif mysql # not compatible
query II rowsort label-9767
SELECT + 98 * 51 * CAST ( NULL AS INTEGER ) AS col2, + 43 AS col0
----
NULL
43

query I rowsort
SELECT + 86 + - 74 col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT - 91 + + COUNT( * ) + + - ( - 8 ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-9769
SELECT - 91 + + COUNT ( * ) + + - ( - 8 ) AS col0
----
-82

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

query I rowsort
SELECT CASE NULLIF ( + - 69, - 74 * 37 ) WHEN COALESCE ( 47, NULLIF ( + 71, 85 ) + - - 95 ) THEN 95 * + 33 + - + 35 + - 38 + + 84 END
----
NULL

query I rowsort
SELECT + 55 + 57 AS col2
----
112

onlyif mysql # aggregate syntax: 
query II rowsort label-9773
SELECT + NULLIF ( - - 20, - 32 ) AS col2, - COUNT( * ) AS col0
----
20
-1

skipif mysql # not compatible
query II rowsort label-9773
SELECT + NULLIF ( - - 20, - 32 ) AS col2, - COUNT ( * ) AS col0
----
20
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9774
SELECT DISTINCT + 46 * 83 + 6 * 44 + + + 82 * 65 DIV COUNT( - 30 )
----
9412

skipif mysql # not compatible
query I rowsort label-9774
SELECT DISTINCT + 46 * 83 + 6 * 44 + + + 82 * 65 / COUNT ( - 30 )
----
9412

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9775
SELECT ALL + NULLIF ( + 39, + 63 + - + CAST( COUNT( * ) AS DECIMAL ) ) AS col1, + COUNT( * )
----
39
1

skipif mysql # not compatible
query II rowsort label-9775
SELECT ALL + NULLIF ( + 39, + 63 + - + CAST ( COUNT ( * ) AS REAL ) ) AS col1, + COUNT ( * )
----
39
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9776
SELECT - 84 * COUNT( * ) + + 81 * - 67 + + 73
----
-5438

skipif mysql # not compatible
query I rowsort label-9776
SELECT - 84 * COUNT ( * ) + + 81 * - 67 + + 73
----
-5438

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9777
SELECT CASE + COUNT( * ) WHEN COALESCE ( - 14, + - 29 / + - CAST( COUNT( * ) AS SIGNED ) * - COUNT( + 79 ) + - + 86 + - 87 * + 86 ) * - + 24 * - 11 THEN - 84 / 42 / - 35 * - SUM( - + 9 ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9777
SELECT CASE + COUNT ( * ) WHEN COALESCE ( - 14, + - 29 / + - CAST ( COUNT ( * ) AS INTEGER ) * - COUNT ( + 79 ) + - + 86 + - 87 * + 86 ) * - + 24 * - 11 THEN - 84 / 42 / - 35 * - SUM ( - + 9 ) END col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9778
SELECT NULLIF ( + 49, - - 18 ) col0, + COUNT( * ) * - - 46 col2
----
49
46

skipif mysql # not compatible
query II rowsort label-9778
SELECT NULLIF ( + 49, - - 18 ) col0, + COUNT ( * ) * - - 46 col2
----
49
46

onlyif mysql # DIV for integer division: 
query I rowsort label-9779
SELECT 43 DIV 40 * + 55 + - 47
----
8

skipif mysql # not compatible
query I rowsort label-9779
SELECT 43 / 40 * + 55 + - 47
----
8

query I rowsort
SELECT DISTINCT - 7 * + 33
----
-231

query I rowsort
SELECT DISTINCT 84 * - 95 + + ( 57 ) col0
----
-7923

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9782
SELECT ALL CAST( NULL AS SIGNED ) * + 38 * - 65 * CAST( NULL AS SIGNED ) + - 38 * - - MAX( + 57 ) + - 61 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9782
SELECT ALL CAST ( NULL AS INTEGER ) * + 38 * - 65 * CAST ( NULL AS INTEGER ) + - 38 * - - MAX ( + 57 ) + - 61 col1
----
NULL

query I rowsort
SELECT DISTINCT - 76 * 24 * + - 8 * - + 38 AS col1
----
-554496

query I rowsort
SELECT ALL 36 * + 42
----
1512

query I rowsort
SELECT - ( + NULLIF ( + - 82, + 74 ) ) col1
----
82

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-9787
SELECT + + NULLIF ( - - 20, + 34 + + 46 * + COUNT( * ) ), 57 AS col0
----
20
57

skipif mysql # not compatible
query II rowsort label-9787
SELECT + + NULLIF ( - - 20, + 34 + + 46 * + COUNT ( * ) ), 57 AS col0
----
20
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9788
SELECT ALL + 31 * COUNT( - 60 ) - + 9 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-9788
SELECT ALL + 31 * COUNT ( - 60 ) - + 9 AS col0
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9789
SELECT DISTINCT + + CAST( 2 AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-9789
SELECT DISTINCT + + CAST ( 2 AS INTEGER )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9790
SELECT - 55 - - COUNT( * )
----
-54

skipif mysql # not compatible
query I rowsort label-9790
SELECT - 55 - - COUNT ( * )
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-9791
SELECT ALL - 49 AS col1, MAX( + - 32 )
----
-49
-32

skipif mysql # not compatible
query II rowsort label-9791
SELECT ALL - 49 AS col1, MAX ( + - 32 )
----
-49
-32

query I rowsort
SELECT ALL - + 65 * 14
----
-910

onlyif mysql # aggregate syntax: 
query I rowsort label-9793
SELECT DISTINCT - 69 * - COUNT( * ) + + + 55 + MAX( - 81 ) * + + 39
----
-3035

skipif mysql # not compatible
query I rowsort label-9793
SELECT DISTINCT - 69 * - COUNT ( * ) + + + 55 + MAX ( - 81 ) * + + 39
----
-3035

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

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

query I rowsort
SELECT ALL - - 74 * + 73
----
5402

query I rowsort
SELECT - - 31 - - 40 * 27 col2
----
1111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9797
SELECT ALL NULLIF ( - 37, - MAX( DISTINCT - CAST( 21 AS SIGNED ) ) ), + SUM( DISTINCT NULLIF ( - 91, + 2 ) ) AS col0
----
-37
-91

skipif mysql # not compatible
query II rowsort label-9797
SELECT ALL NULLIF ( - 37, - MAX ( DISTINCT - CAST ( 21 AS INTEGER ) ) ), + SUM ( DISTINCT NULLIF ( - 91, + 2 ) ) AS col0
----
-37
-91

query I rowsort
SELECT DISTINCT - - 23 * + 83 AS col1
----
1909

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9799
SELECT DISTINCT - 79 col0, CAST( 93 AS SIGNED )
----
-79
93

skipif mysql # not compatible
query II rowsort label-9799
SELECT DISTINCT - 79 col0, CAST ( 93 AS INTEGER )
----
-79
93

query II rowsort
SELECT - + 23, - 52 AS col2
----
-23
-52

query II rowsort
SELECT - - 10 AS col1, + 47
----
10
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9802
SELECT + 41 * + MAX( - 44 ) + 18
----
-1786

skipif mysql # not compatible
query I rowsort label-9802
SELECT + 41 * + MAX ( - 44 ) + 18
----
-1786

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9803
SELECT - CASE + - 20 WHEN - NULLIF ( - 40, MIN( DISTINCT + 59 ) ) * 66 + 41 THEN - - 59 / - - CAST( - 43 AS SIGNED ) + - 92 + - 16 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9803
SELECT - CASE + - 20 WHEN - NULLIF ( - 40, MIN ( DISTINCT + 59 ) ) * 66 + 41 THEN - - 59 / - - CAST ( - 43 AS INTEGER ) + - 92 + - 16 END
----
NULL

query I rowsort
SELECT - 45 + 82
----
37

query I rowsort
SELECT + 50 - - 28
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-9806
SELECT - 62 DIV + + 72
----
0

skipif mysql # not compatible
query I rowsort label-9806
SELECT - 62 / + + 72
----
0

query I rowsort
SELECT + 68 * 2 * - 10
----
-1360

onlyif mysql # aggregate syntax: 
query I rowsort label-9808
SELECT DISTINCT + 29 + - COALESCE ( - COUNT( * ), + ( 5 ) ) + 47 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-9808
SELECT DISTINCT + 29 + - COALESCE ( - COUNT ( * ), + ( 5 ) ) + 47 AS col0
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9809
SELECT ALL 26 + - 85 DIV + 22
----
23

skipif mysql # not compatible
query I rowsort label-9809
SELECT ALL 26 + - 85 / + 22
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9810
SELECT DISTINCT NULLIF ( - 36, + COUNT( * ) ) + + ( 96 ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-9810
SELECT DISTINCT NULLIF ( - 36, + COUNT ( * ) ) + + ( 96 ) AS col1
----
60

query I rowsort
SELECT + 8 * - - 39 * + 3 * 32
----
29952

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9812
SELECT ALL 36 DIV + + ( - 89 ) + + 50 AS col2, CAST( + - 97 AS SIGNED ) AS col2
----
50
-97

skipif mysql # not compatible
query II rowsort label-9812
SELECT ALL 36 / + + ( - 89 ) + + 50 AS col2, CAST ( + - 97 AS INTEGER ) AS col2
----
50
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9813
SELECT CAST( 59 AS SIGNED ) AS col2, + 80 * - - 5
----
59
400

skipif mysql # not compatible
query II rowsort label-9813
SELECT CAST ( 59 AS INTEGER ) AS col2, + 80 * - - 5
----
59
400

onlyif mysql # aggregate syntax: 
query I rowsort label-9814
SELECT + 72 + - 38 * - COUNT( * )
----
110

skipif mysql # not compatible
query I rowsort label-9814
SELECT + 72 + - 38 * - COUNT ( * )
----
110

query I rowsort
SELECT + 78 * + COALESCE ( 42, + - 20, 13 + - 60 )
----
3276

onlyif mysql # aggregate syntax: 
query I rowsort label-9816
SELECT ALL + NULLIF ( + - 37, + MAX( DISTINCT - 74 ) ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-9816
SELECT ALL + NULLIF ( + - 37, + MAX ( DISTINCT - 74 ) ) AS col1
----
-37

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9817
SELECT ALL - CASE - CAST( + 65 AS DECIMAL ) WHEN COUNT( * ) THEN NULL WHEN - + 83 THEN - - 44 ELSE NULL END / 74 - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-9817
SELECT ALL - CASE - CAST ( + 65 AS REAL ) WHEN COUNT ( * ) THEN NULL WHEN - + 83 THEN - - 44 ELSE NULL END / 74 - 13
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9818
SELECT ALL + 98 DIV 52 + + 21
----
22

skipif mysql # not compatible
query I rowsort label-9818
SELECT ALL + 98 / 52 + + 21
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT ALL - ( + 59 ) * 12 - COUNT( * ) + + 80 * - COUNT( * )
----
-789

skipif mysql # not compatible
query I rowsort label-9819
SELECT ALL - ( + 59 ) * 12 - COUNT ( * ) + + 80 * - COUNT ( * )
----
-789

query I rowsort
SELECT - 96 * + 77 * + 13
----
-96096

onlyif mysql # aggregate syntax: 
query III rowsort label-9821
SELECT DISTINCT + CASE - 98 WHEN - 21 THEN + 49 WHEN - COUNT( ALL 63 ) THEN NULLIF ( 41, 63 + + + 14 ) * 47 ELSE NULL END * 77 * + - 47 * - - 25, - CASE WHEN NOT - 30 > NULL THEN 13 * + 22 + + 85 ELSE NULL END / 24 + 14 AS col1, + 5 - - 89 AS col0
----
NULL
NULL
94

skipif mysql # not compatible
query III rowsort label-9821
SELECT DISTINCT + CASE - 98 WHEN - 21 THEN + 49 WHEN - COUNT ( ALL 63 ) THEN NULLIF ( 41, 63 + + + 14 ) * 47 ELSE NULL END * 77 * + - 47 * - - 25, - CASE WHEN NOT - 30 > NULL THEN 13 * + 22 + + 85 ELSE NULL END / 24 + 14 AS col1, + 5 - - 89 AS col0
----
NULL
NULL
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9822
SELECT - + 95 - + - 96 + + + CASE - - 6 WHEN - AVG ( ALL 40 ) THEN - CAST( NULL AS SIGNED ) WHEN + COUNT( * ) THEN NULL END * 16 + - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-9822
SELECT - + 95 - + - 96 + + + CASE - - 6 WHEN - AVG ( ALL 40 ) THEN - CAST ( NULL AS INTEGER ) WHEN + COUNT ( * ) THEN NULL END * 16 + - 32
----
NULL

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

skipif mysql # not compatible
query I rowsort label-9823
SELECT - 14 * 77 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9824
SELECT ALL + 32 * + 33 * COUNT( * )
----
1056

skipif mysql # not compatible
query I rowsort label-9824
SELECT ALL + 32 * + 33 * COUNT ( * )
----
1056

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

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

query I rowsort
SELECT + + 51 + + 96
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-9827
SELECT - - 46 + COUNT( * ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-9827
SELECT - - 46 + COUNT ( * ) AS col0
----
47

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9830
SELECT 85 * + ( + + 68 ) + CAST( + 68 AS SIGNED )
----
5848

skipif mysql # not compatible
query I rowsort label-9830
SELECT 85 * + ( + + 68 ) + CAST ( + 68 AS INTEGER )
----
5848

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9831
SELECT ALL 34 col0, 63 / + CAST( NULL AS SIGNED ) * + ( - 15 )
----
34
NULL

skipif mysql # not compatible
query II rowsort label-9831
SELECT ALL 34 col0, 63 / + CAST ( NULL AS INTEGER ) * + ( - 15 )
----
34
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9832
SELECT DISTINCT + - 59 DIV 86 AS col0, 68
----
0
68

skipif mysql # not compatible
query II rowsort label-9832
SELECT DISTINCT + - 59 / 86 AS col0, 68
----
0
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT - ( - COUNT( * ) ) + + MIN( - 24 ) + + 83 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-9833
SELECT - ( - COUNT ( * ) ) + + MIN ( - 24 ) + + 83 AS col2
----
60

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

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

query II rowsort
SELECT ALL 18 col0, + 71 col2
----
18
71

query I rowsort
SELECT 0 + + + 14 + + 0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9837
SELECT DISTINCT - ( + - NULLIF ( + NULLIF ( - - 6, + 88 ), - 70 * + + 33 + - 5 ) ) + - + 79 * - 73 + - 11 * + + 65 + + SUM( + 87 )
----
5145

skipif mysql # not compatible
query I rowsort label-9837
SELECT DISTINCT - ( + - NULLIF ( + NULLIF ( - - 6, + 88 ), - 70 * + + 33 + - 5 ) ) + - + 79 * - 73 + - 11 * + + 65 + + SUM ( + 87 )
----
5145

query I rowsort
SELECT ALL - 24 + - - 1 * 90
----
66

query I rowsort
SELECT DISTINCT + 97 + - 45 - + ( - - 77 )
----
-25

query I rowsort
SELECT 35 + 94
----
129

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9841
SELECT DISTINCT - 79 + - CAST( COALESCE ( - + 77, 97 ) AS SIGNED ) * 66 + - NULLIF ( + - 0, + ( + + ( - 67 ) ) ) * - - 49 DIV - 86 col0
----
5003

skipif mysql # not compatible
query I rowsort label-9841
SELECT DISTINCT - 79 + - CAST ( COALESCE ( - + 77, 97 ) AS INTEGER ) * 66 + - NULLIF ( + - 0, + ( + + ( - 67 ) ) ) * - - 49 / - 86 col0
----
5003

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

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

query I rowsort
SELECT DISTINCT 20 + + + 56 * ( - - 40 ) AS col0
----
2260

query II rowsort
SELECT 25 + + + 45 AS col0, - 26 * - 33 * + - 51 + + 69 AS col0
----
70
-43689

query I rowsort
SELECT ALL 19 * + ( + + 98 ) * - + 14 col0
----
-26068

onlyif mysql # aggregate syntax: 
query I rowsort label-9846
SELECT MAX( + 59 ) * 17 * - MAX( ALL + 20 )
----
-20060

skipif mysql # not compatible
query I rowsort label-9846
SELECT MAX ( + 59 ) * 17 * - MAX ( ALL + 20 )
----
-20060

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9847
SELECT ALL + 89 DIV - 40, 41 DIV 93 DIV COALESCE ( - - MIN( DISTINCT - 11 ), CAST( - 78 AS SIGNED ) ) AS col0
----
-2
0

skipif mysql # not compatible
query II rowsort label-9847
SELECT ALL + 89 / - 40, 41 / 93 / COALESCE ( - - MIN ( DISTINCT - 11 ), CAST ( - 78 AS INTEGER ) ) AS col0
----
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9848
SELECT MIN( 41 ) + + ( - 45 ) * - - ( - 36 ) - - + 80
----
1741

skipif mysql # not compatible
query I rowsort label-9848
SELECT MIN ( 41 ) + + ( - 45 ) * - - ( - 36 ) - - + 80
----
1741

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT DISTINCT + CASE - + COUNT( * ) WHEN + 2 THEN - - 2 WHEN - + ( - 83 ) THEN COUNT( * ) ELSE NULL END - - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-9849
SELECT DISTINCT + CASE - + COUNT ( * ) WHEN + 2 THEN - - 2 WHEN - + ( - 83 ) THEN COUNT ( * ) ELSE NULL END - - 0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9850
SELECT ALL 13 * - + COUNT( * ) DIV - 74 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9850
SELECT ALL 13 * - + COUNT ( * ) / - 74 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9851
SELECT 53 * + CASE 2 WHEN + + NULLIF ( 85, 9 ) * + + 26 THEN + 60 ELSE NULL END * - 50 + COUNT( * ) + + 58 * + COUNT( - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9851
SELECT 53 * + CASE 2 WHEN + + NULLIF ( 85, 9 ) * + + 26 THEN + 60 ELSE NULL END * - 50 + COUNT ( * ) + + 58 * + COUNT ( - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT ALL - 17 - - - SUM( 56 ) + + + COUNT( * )
----
-72

skipif mysql # not compatible
query I rowsort label-9852
SELECT ALL - 17 - - - SUM ( 56 ) + + + COUNT ( * )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT ALL + 27 * + COUNT( * ) col0
----
27

skipif mysql # not compatible
query I rowsort label-9853
SELECT ALL + 27 * + COUNT ( * ) col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9854
SELECT DISTINCT + MAX( ALL - - 65 ) * + 99 * + - 93
----
-598455

skipif mysql # not compatible
query I rowsort label-9854
SELECT DISTINCT + MAX ( ALL - - 65 ) * + 99 * + - 93
----
-598455

onlyif mysql # DIV for integer division: 
query I rowsort label-9855
SELECT ( + 12 ) DIV + 34 * - ( - + 61 )
----
0

skipif mysql # not compatible
query I rowsort label-9855
SELECT ( + 12 ) / + 34 * - ( - + 61 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9856
SELECT ALL - COUNT( * ) * - 61 * + CASE + CAST( ( 41 ) AS DECIMAL ) WHEN - 56 THEN - + 61 ELSE NULL END / - 40 * + 5 - - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9856
SELECT ALL - COUNT ( * ) * - 61 * + CASE + CAST ( ( 41 ) AS REAL ) WHEN - 56 THEN - + 61 ELSE NULL END / - 40 * + 5 - - - COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-9857
SELECT - 57 DIV 74 + - - 0 DIV + 83 - CASE COALESCE ( - - 51, + 6 + - 82 ) WHEN 4 * + 63 THEN NULL WHEN + 27 * 50 + + 60 THEN + CAST( CASE + CAST( NULL AS DECIMAL ) WHEN - 3 - + 67 THEN NULL WHEN + - 61 * + CAST( NULL AS SIGNED ) + - - 25 DIV - + 79 THEN - 2 - 28 END AS SIGNED ) ELSE 46 END - - 31 * + 63 AS col1
----
1907

skipif mysql # not compatible
query I rowsort label-9857
SELECT - 57 / 74 + - - 0 / + 83 - CASE COALESCE ( - - 51, + 6 + - 82 ) WHEN 4 * + 63 THEN NULL WHEN + 27 * 50 + + 60 THEN + CAST ( CASE + CAST ( NULL AS REAL ) WHEN - 3 - + 67 THEN NULL WHEN + - 61 * + CAST ( NULL AS INTEGER ) + - - 25 / - + 79 THEN - 2 - 28 END AS INTEGER ) ELSE 46 END - - 31 * + 63 AS col1
----
1907

query I rowsort
SELECT + + ( - 24 ) AS col0
----
-24

query I rowsort
SELECT + 7 + - + ( + 11 ) * + 87 col1
----
-950

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9861
SELECT - CASE - - 42 WHEN 49 THEN - - 19 WHEN - - 24 THEN NULL WHEN + - COUNT( * ) + + 25 + 98 * + 27 / + NULLIF ( 14, - + COALESCE ( + + COUNT( * ), - 59 ) * - - COUNT( - 76 ) * - + COUNT( * ) + - 40 ) THEN + 83 + + 32 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9861
SELECT - CASE - - 42 WHEN 49 THEN - - 19 WHEN - - 24 THEN NULL WHEN + - COUNT ( * ) + + 25 + 98 * + 27 / + NULLIF ( 14, - + COALESCE ( + + COUNT ( * ), - 59 ) * - - COUNT ( - 76 ) * - + COUNT ( * ) + - 40 ) THEN + 83 + + 32 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9862
SELECT DISTINCT - ( + COUNT( * ) ) + - 57
----
-58

skipif mysql # not compatible
query I rowsort label-9862
SELECT DISTINCT - ( + COUNT ( * ) ) + - 57
----
-58

query I rowsort
SELECT + 40 - 93
----
-53

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT 45 + - COUNT( * ) * + COUNT( * ) + - 8 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-9865
SELECT 45 + - COUNT ( * ) * + COUNT ( * ) + - 8 AS col2
----
36

query II rowsort
SELECT DISTINCT 40 AS col2, 54
----
40
54

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9868
SELECT ALL CAST( COUNT( * ) AS SIGNED ) + 89 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-9868
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) + 89 AS col1
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9869
SELECT DISTINCT 51 AS col0, 5 * COUNT( * ) DIV + + COUNT( * ) AS col2
----
51
5

skipif mysql # not compatible
query II rowsort label-9869
SELECT DISTINCT 51 AS col0, 5 * COUNT ( * ) / + + COUNT ( * ) AS col2
----
51
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9870
SELECT ALL 15 DIV + + 29 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9870
SELECT ALL 15 / + + 29 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9871
SELECT - MAX( DISTINCT - + 24 )
----
24

skipif mysql # not compatible
query I rowsort label-9871
SELECT - MAX ( DISTINCT - + 24 )
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9872
SELECT 70 + + CAST( + 89 AS SIGNED ) + ( - 47 ) DIV 2 * - - COUNT( * )
----
136

skipif mysql # not compatible
query I rowsort label-9872
SELECT 70 + + CAST ( + 89 AS INTEGER ) + ( - 47 ) / 2 * - - COUNT ( * )
----
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9873
SELECT DISTINCT - 48 - COALESCE ( + + 3, CASE 89 WHEN CAST( NULL AS DECIMAL ) THEN + - 63 * 0 WHEN - ( + - MAX( DISTINCT - 78 ) ) - NULLIF ( 63, - + 7 ) + + + 38 THEN - + 50 * + 13 WHEN - - COUNT( * ) / 76 + + + 21 * CASE - 27 WHEN + 2 THEN + SUM( 93 ) WHEN - 47 + - - COUNT( * ) THEN + 12 ELSE NULL END * COUNT( * ) * + 77 THEN NULL END + + - CAST( NULL AS SIGNED ), - - COALESCE ( NULLIF ( 72, - - 46 + + + ( 89 ) * + 9 ), CASE + + 61 WHEN - - MAX( - COALESCE ( - 68, + 31 ) ) + + - 2 + + - 90 + - 77 + 58 THEN - 15 ELSE NULL END, - ( 71 ) ) )
----
-51

skipif mysql # not compatible
query I rowsort label-9873
SELECT DISTINCT - 48 - COALESCE ( + + 3, CASE 89 WHEN CAST ( NULL AS REAL ) THEN + - 63 * 0 WHEN - ( + - MAX ( DISTINCT - 78 ) ) - NULLIF ( 63, - + 7 ) + + + 38 THEN - + 50 * + 13 WHEN - - COUNT ( * ) / 76 + + + 21 * CASE - 27 WHEN + 2 THEN + SUM ( 93 ) WHEN - 47 + - - COUNT ( * ) THEN + 12 ELSE NULL END * COUNT ( * ) * + 77 THEN NULL END + + - CAST ( NULL AS INTEGER ), - - COALESCE ( NULLIF ( 72, - - 46 + + + ( 89 ) * + 9 ), CASE + + 61 WHEN - - MAX ( - COALESCE ( - 68, + 31 ) ) + + - 2 + + - 90 + - 77 + 58 THEN - 15 ELSE NULL END, - ( 71 ) ) )
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-9874
SELECT DISTINCT + 76 * + + 35 * 47 AS col0, - 27 * + COUNT( * ) AS col1
----
125020
-27

skipif mysql # not compatible
query II rowsort label-9874
SELECT DISTINCT + 76 * + + 35 * 47 AS col0, - 27 * + COUNT ( * ) AS col1
----
125020
-27

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

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

query I rowsort
SELECT DISTINCT - COALESCE ( + + 76, 74, - + 42 ) - + - CASE - 17 WHEN - 49 THEN 88 WHEN + 42 * 71 * + 57 + 26 THEN 96 + + 66 END + 28 + + 25 + - 95 + + + 47 * - 64 / - 85 * - 93 + ( - - 94 ) + + 24 + - - 76 AS col2
----
NULL

query I rowsort
SELECT ALL + 94 * 98
----
9212

query II rowsort
SELECT 29 AS col0, NULLIF ( - - 83, 86 )
----
29
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9879
SELECT 73 + 11 * MAX( ALL + + 17 ) * - NULLIF ( - 15, - - 1 ) + 34 - - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9879
SELECT 73 + 11 * MAX ( ALL + + 17 ) * - NULLIF ( - 15, - - 1 ) + 34 - - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 76 * - 96 AS col0
----
-7296

onlyif mysql # aggregate syntax: 
query I rowsort label-9881
SELECT + ( ( + 17 ) ) * 55 * + COUNT( * ) AS col0
----
935

skipif mysql # not compatible
query I rowsort label-9881
SELECT + ( ( + 17 ) ) * 55 * + COUNT ( * ) AS col0
----
935

onlyif mysql # DIV for integer division: 
query I rowsort label-9882
SELECT + - 4 DIV + - 14 + + 89 * - 63
----
-5607

skipif mysql # not compatible
query I rowsort label-9882
SELECT + - 4 / + - 14 + + 89 * - 63
----
-5607

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9883
SELECT - COALESCE ( - ( ( CAST( 84 AS SIGNED ) ) ), + 9 * + 54, - ( - 82 ) + + COUNT( * ) )
----
84

skipif mysql # not compatible
query I rowsort label-9883
SELECT - COALESCE ( - ( ( CAST ( 84 AS INTEGER ) ) ), + 9 * + 54, - ( - 82 ) + + COUNT ( * ) )
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9884
SELECT - 22 + + 1 - + + MIN( ALL + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9884
SELECT - 22 + + 1 - + + MIN ( ALL + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9885
SELECT + ( - 72 ) + + 97, 53 * + CAST( - + 43 AS SIGNED ) AS col1
----
25
-2279

skipif mysql # not compatible
query II rowsort label-9885
SELECT + ( - 72 ) + + 97, 53 * + CAST ( - + 43 AS INTEGER ) AS col1
----
25
-2279

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9886
SELECT ALL + - 59 DIV 8 * - 45 AS col2, - CAST( + SUM( ALL - - 59 ) AS SIGNED ) * + 38 AS col2
----
315
-2242

skipif mysql # not compatible
query II rowsort label-9886
SELECT ALL + - 59 / 8 * - 45 AS col2, - CAST ( + SUM ( ALL - - 59 ) AS INTEGER ) * + 38 AS col2
----
315
-2242

onlyif mysql # aggregate syntax: 
query I rowsort label-9887
SELECT - 35 * 65 * - 21 + COUNT( * )
----
47776

skipif mysql # not compatible
query I rowsort label-9887
SELECT - 35 * 65 * - 21 + COUNT ( * )
----
47776

query I rowsort
SELECT - 5 * 19
----
-95

query II rowsort
SELECT DISTINCT - 19, 23 col0
----
-19
23

query I rowsort
SELECT DISTINCT + ( 29 ) * - 22 + - 30 + + 17
----
-651

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9891
SELECT DISTINCT - + 92 DIV - 46 + + + COUNT( * ), - 44 AS col0
----
3
-44

skipif mysql # not compatible
query II rowsort label-9891
SELECT DISTINCT - + 92 / - 46 + + + COUNT ( * ), - 44 AS col0
----
3
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9892
SELECT ALL - SUM( - 81 ) DIV 89 + - 37 + + - MAX( ALL - 57 )
----
20

skipif mysql # not compatible
query I rowsort label-9892
SELECT ALL - SUM ( - 81 ) / 89 + - 37 + + - MAX ( ALL - 57 )
----
20

query II rowsort
SELECT DISTINCT + - 45 AS col2, + 55 - + 79 AS col0
----
-45
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9894
SELECT DISTINCT + 75 * + 80 + 19 + 24 + + - SUM( ALL - + NULLIF ( + + 76, - 3 ) ), CAST( + 69 AS SIGNED ) AS col1
----
6119
69

skipif mysql # not compatible
query II rowsort label-9894
SELECT DISTINCT + 75 * + 80 + 19 + 24 + + - SUM ( ALL - + NULLIF ( + + 76, - 3 ) ), CAST ( + 69 AS INTEGER ) AS col1
----
6119
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9895
SELECT ALL + COUNT( * ) * + 68 + - - 33 + - 82
----
19

skipif mysql # not compatible
query I rowsort label-9895
SELECT ALL + COUNT ( * ) * + 68 + - - 33 + - 82
----
19

query I rowsort
SELECT ALL + + 37 * - 69 + 2
----
-2551

onlyif mysql # aggregate syntax: 
query I rowsort label-9897
SELECT + SUM( NULLIF ( 69, + + 98 + - + 9 ) ) * + - COUNT( * ) + - - 92 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-9897
SELECT + SUM ( NULLIF ( 69, + + 98 + - + 9 ) ) * + - COUNT ( * ) + - - 92 AS col0
----
23

query I rowsort
SELECT - 51 + - 49 col0
----
-100

onlyif mysql # aggregate syntax: 
query II rowsort label-9899
SELECT ALL COUNT( DISTINCT + - 81 ) + + 33 * 1, + COUNT( * ) AS col2
----
34
1

skipif mysql # not compatible
query II rowsort label-9899
SELECT ALL COUNT ( DISTINCT + - 81 ) + + 33 * 1, + COUNT ( * ) AS col2
----
34
1

query I rowsort
SELECT NULLIF ( - - 89, + + 41 )
----
89

query II rowsort
SELECT ALL - + 75 + 42 + 23, + 55 AS col0
----
-10
55

query I rowsort
SELECT DISTINCT + - 12 + 49 + - + 6 + + 91 * 68 * + 40 * - 77
----
-19059009

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9903
SELECT ALL CAST( NULL AS SIGNED ) + 26 + + 21 + MAX( + 92 ) * + ( CAST( + NULLIF ( COUNT( ALL 15 ), 33 ) AS SIGNED ) ) * - COUNT( * ) + + 75 * - 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9903
SELECT ALL CAST ( NULL AS INTEGER ) + 26 + + 21 + MAX ( + 92 ) * + ( CAST ( + NULLIF ( COUNT ( ALL 15 ), 33 ) AS INTEGER ) ) * - COUNT ( * ) + + 75 * - 36 AS col1
----
NULL

query I rowsort
SELECT - 50 * + 43 + - 28 + - 8 AS col2
----
-2186

onlyif mysql # aggregate syntax: 
query I rowsort label-9905
SELECT - NULLIF ( + COUNT( * ), - 77 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9905
SELECT - NULLIF ( + COUNT ( * ), - 77 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9906
SELECT ALL CAST( + COALESCE ( + 18, NULLIF ( - 94, - 58 ) ) AS SIGNED ) + 34 + 93 * COUNT( * )
----
145

skipif mysql # not compatible
query I rowsort label-9906
SELECT ALL CAST ( + COALESCE ( + 18, NULLIF ( - 94, - 58 ) ) AS INTEGER ) + 34 + 93 * COUNT ( * )
----
145

query II rowsort
SELECT + 80 * + + 43 * - - 65 * + + 29, - 97 col2
----
6484400
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-9908
SELECT - MAX( DISTINCT - 93 ) AS col1, + 65 AS col2
----
93
65

skipif mysql # not compatible
query II rowsort label-9908
SELECT - MAX ( DISTINCT - 93 ) AS col1, + 65 AS col2
----
93
65

onlyif mysql # DIV for integer division: 
query II rowsort label-9909
SELECT + 73 + - 11 - - 28 DIV 62 AS col0, NULLIF ( - 67, - 13 ) * - 69 - - 92
----
62
4715

skipif mysql # not compatible
query II rowsort label-9909
SELECT + 73 + - 11 - - 28 / 62 AS col0, NULLIF ( - 67, - 13 ) * - 69 - - 92
----
62
4715

query I rowsort
SELECT - 38 + - + 53
----
-91

query I rowsort
SELECT ALL 44 * - - 75 AS col1
----
3300

onlyif mysql # aggregate syntax: 
query I rowsort label-9912
SELECT ALL MAX( - ( - - 35 ) ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-9912
SELECT ALL MAX ( - ( - - 35 ) ) AS col0
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-9913
SELECT + 2 DIV - 9 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9913
SELECT + 2 / - 9 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9914
SELECT DISTINCT - 17 DIV + COALESCE ( + - COUNT( * ), + + 38 * + 95 )
----
17

skipif mysql # not compatible
query I rowsort label-9914
SELECT DISTINCT - 17 / + COALESCE ( + - COUNT ( * ), + + 38 * + 95 )
----
17

query I rowsort
SELECT - ( 82 ) + - - 11
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-9916
SELECT ALL 60 DIV 40 col1
----
1

skipif mysql # not compatible
query I rowsort label-9916
SELECT ALL 60 / 40 col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9917
SELECT DISTINCT + - CAST( - + 89 AS SIGNED )
----
89

skipif mysql # not compatible
query I rowsort label-9917
SELECT DISTINCT + - CAST ( - + 89 AS INTEGER )
----
89

query II rowsort
SELECT ALL + 42 * + 86 AS col2, - 70 - + 76 AS col2
----
3612
-146

onlyif mysql # DIV for integer division: 
query I rowsort label-9919
SELECT DISTINCT - 28 DIV + 5 + 63
----
58

skipif mysql # not compatible
query I rowsort label-9919
SELECT DISTINCT - 28 / + 5 + 63
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9920
SELECT ALL COUNT( * ) * + COUNT( * ) + 30 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-9920
SELECT ALL COUNT ( * ) * + COUNT ( * ) + 30 AS col1
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9921
SELECT + 5 + - + CAST( NULL AS SIGNED ) + + COUNT( * ) + - - NULLIF ( - COALESCE ( - CAST( NULL AS SIGNED ), COUNT( * ) - COUNT( - 76 ) - + 53 ), + 58 * - ( 44 ) + - COUNT( * ) * + 42 ) + - 31 - - MIN( + 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9921
SELECT + 5 + - + CAST ( NULL AS INTEGER ) + + COUNT ( * ) + - - NULLIF ( - COALESCE ( - CAST ( NULL AS INTEGER ), COUNT ( * ) - COUNT ( - 76 ) - + 53 ), + 58 * - ( 44 ) + - COUNT ( * ) * + 42 ) + - 31 - - MIN ( + 23 )
----
NULL

query I rowsort
SELECT + + ( 39 ) AS col1
----
39

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9923
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - ( - 49 ) * - ( + - 83 ) * - 81 + - 87 + + 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9923
SELECT DISTINCT + CAST ( NULL AS REAL ) * - ( - 49 ) * - ( + - 83 ) * - 81 + - 87 + + 72 AS col0
----
NULL

query I rowsort
SELECT ALL + + ( - 11 ) AS col1
----
-11

query I rowsort
SELECT - + 71 * 75 AS col2
----
-5325

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT CASE + - 12 WHEN + - 80 * - 62 * + 70 + - COUNT( * ) / COUNT( * ) THEN NULL ELSE - 29 - 64 END
----
-93

skipif mysql # not compatible
query I rowsort label-9927
SELECT CASE + - 12 WHEN + - 80 * - 62 * + 70 + - COUNT ( * ) / COUNT ( * ) THEN NULL ELSE - 29 - 64 END
----
-93

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

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

query I rowsort
SELECT - 80 - - 52
----
-28

query I rowsort
SELECT - 56 - - 5 col2
----
-51

query I rowsort
SELECT + ( 43 ) * + 8
----
344

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT - MIN( DISTINCT - 52 ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-9932
SELECT - MIN ( DISTINCT - 52 ) AS col1
----
52

query I rowsort
SELECT ALL - 3 * - 92 * 87 AS col0
----
24012

onlyif mysql # aggregate syntax: 
query I rowsort label-9934
SELECT + COUNT( * ) - + COUNT( * ) + + - 64 * + 31 * - COUNT( * ) AS col2
----
1984

skipif mysql # not compatible
query I rowsort label-9934
SELECT + COUNT ( * ) - + COUNT ( * ) + + - 64 * + 31 * - COUNT ( * ) AS col2
----
1984

query II rowsort
SELECT DISTINCT 15, + 60 + 53 AS col1
----
15
113

onlyif mysql # aggregate syntax: 
query I rowsort label-9936
SELECT + 78 - + COALESCE ( - COUNT( DISTINCT - + 24 ), + 16 + + - NULLIF ( + COUNT( * ), + 99 ) ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-9936
SELECT + 78 - + COALESCE ( - COUNT ( DISTINCT - + 24 ), + 16 + + - NULLIF ( + COUNT ( * ), + 99 ) ) AS col2
----
79

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9938
SELECT - SUM( + 61 ) + + NULLIF ( - COUNT( * ), + - 49 / + + 68 + CAST( NULL AS SIGNED ) + + NULLIF ( + 62, + NULLIF ( - - 8, 32 ) * + 15 * + - 61 ) ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-9938
SELECT - SUM ( + 61 ) + + NULLIF ( - COUNT ( * ), + - 49 / + + 68 + CAST ( NULL AS INTEGER ) + + NULLIF ( + 62, + NULLIF ( - - 8, 32 ) * + 15 * + - 61 ) ) AS col0
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9939
SELECT - CAST( 71 AS SIGNED ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-9939
SELECT - CAST ( 71 AS INTEGER ) AS col0
----
-71

query I rowsort
SELECT + 42 + + 23
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9941
SELECT ALL 54 * COUNT( * ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-9941
SELECT ALL 54 * COUNT ( * ) AS col1
----
54

query I rowsort
SELECT + 60 * + 24 * 87 AS col2
----
125280

query I rowsort
SELECT + 66 * + - 2
----
-132

query I rowsort
SELECT ALL COALESCE ( + 17, + 40, 23, 6 ) + + ( 49 )
----
66

query I rowsort
SELECT ALL 18 * ( 30 )
----
540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9946
SELECT CAST( 67 AS SIGNED ) + 41
----
108

skipif mysql # not compatible
query I rowsort label-9946
SELECT CAST ( 67 AS INTEGER ) + 41
----
108

query I rowsort
SELECT DISTINCT 53 + 54
----
107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9948
SELECT ALL + ( COUNT( * ) ) DIV + 39 col2
----
0

skipif mysql # not compatible
query I rowsort label-9948
SELECT ALL + ( COUNT ( * ) ) / + 39 col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9949
SELECT 14 DIV - 66 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9949
SELECT 14 / - 66 AS col2
----
0

query I rowsort
SELECT ALL 88 + 21 AS col0
----
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9951
SELECT DISTINCT COUNT( * ) DIV + 32
----
0

skipif mysql # not compatible
query I rowsort label-9951
SELECT DISTINCT COUNT ( * ) / + 32
----
0

query I rowsort
SELECT 33 * 97 col0
----
3201

onlyif mysql # aggregate syntax: 
query I rowsort label-9953
SELECT DISTINCT - SUM( ALL - 45 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-9953
SELECT DISTINCT - SUM ( ALL - 45 ) AS col2
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9954
SELECT ALL - COUNT( DISTINCT CAST( 90 AS SIGNED ) ) + 96 DIV - SUM( - 34 )
----
1

skipif mysql # not compatible
query I rowsort label-9954
SELECT ALL - COUNT ( DISTINCT CAST ( 90 AS INTEGER ) ) + 96 / - SUM ( - 34 )
----
1

query I rowsort
SELECT - 5 * + 91 + NULLIF ( - NULLIF ( 89, 47 * 78 + + 42 ), COALESCE ( 12, - 2 / ( + 94 ) + + 92 * - 35 ) ) AS col2
----
-544

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT DISTINCT - ( + ( COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9956
SELECT DISTINCT - ( + ( COUNT ( * ) ) )
----
-1

query I rowsort
SELECT 39 + 69
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9958
SELECT ALL - CAST( - 10 AS SIGNED ) - - 18
----
28

skipif mysql # not compatible
query I rowsort label-9958
SELECT ALL - CAST ( - 10 AS INTEGER ) - - 18
----
28

query I rowsort
SELECT 48 + + 58 * 54
----
3180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9960
SELECT ALL - CASE 81 WHEN + ( ( CAST( + 65 AS SIGNED ) ) ) + - MAX( ALL + 95 ) THEN 73 WHEN 69 * - 37 THEN NULL ELSE - 49 END AS col1
----
49

skipif mysql # not compatible
query I rowsort label-9960
SELECT ALL - CASE 81 WHEN + ( ( CAST ( + 65 AS INTEGER ) ) ) + - MAX ( ALL + 95 ) THEN 73 WHEN 69 * - 37 THEN NULL ELSE - 49 END AS col1
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9961
SELECT DISTINCT - CASE - 85 WHEN 62 * - ( COUNT( * ) * + 81 ) THEN - 94 + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9961
SELECT DISTINCT - CASE - 85 WHEN 62 * - ( COUNT ( * ) * + 81 ) THEN - 94 + CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT 34 * 36 + 10
----
1234

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT SUM( 8 ) * 5 - 27
----
13

skipif mysql # not compatible
query I rowsort label-9963
SELECT SUM ( 8 ) * 5 - 27
----
13

query I rowsort
SELECT 35 * - NULLIF ( 63 * 13, + 68 * - 75 ) AS col1
----
-28665

query I rowsort
SELECT 38 + + 90
----
128

query I rowsort
SELECT + 66 * + 15 + 81
----
1071

query I rowsort
SELECT 48 * 27 AS col1
----
1296

query I rowsort
SELECT ALL + 35 * + 4
----
140

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

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

query I rowsort
SELECT 35 * 85 + ( + 21 + + 33 )
----
3029

onlyif mysql # DIV for integer division: 
query I rowsort label-9971
SELECT DISTINCT + 44 DIV - 60 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9971
SELECT DISTINCT + 44 / - 60 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT 73 + NULLIF ( + SUM( DISTINCT 90 ), CASE + 48 WHEN 1 THEN NULL WHEN 27 + 99 THEN 23 WHEN + 57 THEN 23 END + + 8 ) * + CASE 26 WHEN 17 THEN 36 * + CASE 14 * + 38 WHEN - 34 THEN 37 WHEN + 46 * + 67 THEN NULL ELSE - 34 - - 53 END + - 54 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9972
SELECT 73 + NULLIF ( + SUM ( DISTINCT 90 ), CASE + 48 WHEN 1 THEN NULL WHEN 27 + 99 THEN 23 WHEN + 57 THEN 23 END + + 8 ) * + CASE 26 WHEN 17 THEN 36 * + CASE 14 * + 38 WHEN - 34 THEN 37 WHEN + 46 * + 67 THEN NULL ELSE - 34 - - 53 END + - 54 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT ALL + 35 * MIN( + 28 )
----
980

skipif mysql # not compatible
query I rowsort label-9973
SELECT ALL + 35 * MIN ( + 28 )
----
980

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9974
SELECT COUNT( ALL + 21 ) DIV 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9974
SELECT COUNT ( ALL + 21 ) / 72 AS col1
----
0

query I rowsort
SELECT 83 + 13 AS col2
----
96

query I rowsort
SELECT DISTINCT + 17 * - 10 AS col1
----
-170

query I rowsort
SELECT ALL - 63 * + 52
----
-3276

query I rowsort
SELECT 60 + + NULLIF ( 11, 44 / - 26 + - 43 )
----
71

query I rowsort
SELECT 69 + NULLIF ( 33, + 61 + - 37 ) * + 44
----
1521

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9980
SELECT COALESCE ( - 82, MIN( - 57 ) ) / CASE NULLIF ( + CASE - 72 WHEN - 62 THEN - 77 WHEN COUNT( 89 ) THEN NULL END, - MIN( - 30 ) * 85 ) * - 18 WHEN + CAST( NULL AS SIGNED ) THEN + COUNT( - 88 ) / + COALESCE ( 55 * - 51, - COUNT( * ) * 37 ) WHEN - 82 + + 0 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9980
SELECT COALESCE ( - 82, MIN ( - 57 ) ) / CASE NULLIF ( + CASE - 72 WHEN - 62 THEN - 77 WHEN COUNT ( 89 ) THEN NULL END, - MIN ( - 30 ) * 85 ) * - 18 WHEN + CAST ( NULL AS INTEGER ) THEN + COUNT ( - 88 ) / + COALESCE ( 55 * - 51, - COUNT ( * ) * 37 ) WHEN - 82 + + 0 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9981
SELECT DISTINCT COUNT( 23 ) + + 76 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-9981
SELECT DISTINCT COUNT ( 23 ) + + 76 AS col0
----
77

query I rowsort
SELECT ALL 48 + + 15
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9983
SELECT ALL COALESCE ( + COUNT( * ), ( - CASE 44 WHEN + 64 + + 3 THEN 13 ELSE - 87 DIV + 71 END ) ) + 46 col1
----
47

skipif mysql # not compatible
query I rowsort label-9983
SELECT ALL COALESCE ( + COUNT ( * ), ( - CASE 44 WHEN + 64 + + 3 THEN 13 ELSE - 87 / + 71 END ) ) + 46 col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9984
SELECT DISTINCT - CASE COUNT( * ) WHEN 91 THEN - 8 WHEN - 90 THEN 7 * + COUNT( * ) END + - 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9984
SELECT DISTINCT - CASE COUNT ( * ) WHEN 91 THEN - 8 WHEN - 90 THEN 7 * + COUNT ( * ) END + - 88 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9985
SELECT DISTINCT MAX( DISTINCT 87 ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-9985
SELECT DISTINCT MAX ( DISTINCT 87 ) AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9986
SELECT ALL MAX( 91 ) * + 67 AS col0
----
6097

skipif mysql # not compatible
query I rowsort label-9986
SELECT ALL MAX ( 91 ) * + 67 AS col0
----
6097

query I rowsort
SELECT - 24 + 8 col1
----
-16

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

skipif mysql # not compatible
query I rowsort label-9988
SELECT ALL - COUNT ( * ) + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 35 + 32 AS col0
----
67

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9990
SELECT ALL CAST( NULL AS DECIMAL ) + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-9990
SELECT ALL CAST ( NULL AS REAL ) + 13
----
NULL

query I rowsort
SELECT ALL - 76 * 3
----
-228

query I rowsort
SELECT + 90 * - 71
----
-6390

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9993
SELECT - CASE - 80 WHEN ( CAST( NULL AS DECIMAL ) ) * ( 57 + 41 ) THEN 37 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9993
SELECT - CASE - 80 WHEN ( CAST ( NULL AS REAL ) ) * ( 57 + 41 ) THEN 37 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 43 + + 46 AS col2
----
89

query I rowsort
SELECT ALL 57 - + 99
----
-42

query I rowsort
SELECT 91 * 26 AS col2
----
2366

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

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

query I rowsort
SELECT DISTINCT - 82 * 50
----
-4100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9999
SELECT ALL + SUM( DISTINCT 18 ) DIV NULLIF ( - 13 + 99, 37 + - 57 )
----
0

skipif mysql # not compatible
query I rowsort label-9999
SELECT ALL + SUM ( DISTINCT 18 ) / NULLIF ( - 13 + 99, 37 + - 57 )
----
0

