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 # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-0
SELECT ALL + CAST( + 50 AS SIGNED ) DIV - SUM( 6 )
----
-8

skipif mysql # not compatible
query I rowsort label-0
SELECT ALL + CAST ( + 50 AS INTEGER ) / - SUM ( 6 )
----
-8

query I rowsort
SELECT - 61 * + ( + 62 )
----
-3782

query I rowsort
SELECT DISTINCT + 80 * + 70 AS col1
----
5600

query I rowsort
SELECT - 54 * + 93 AS col1
----
-5022

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4
SELECT + NULLIF ( - 90, + CAST( NULL AS DECIMAL ) )
----
-90

skipif mysql # not compatible
query I rowsort label-4
SELECT + NULLIF ( - 90, + CAST ( NULL AS REAL ) )
----
-90

query I rowsort
SELECT ALL - 35 * + 6
----
-210

onlyif mysql # aggregate syntax: 
query I rowsort label-6
SELECT DISTINCT - ( - 39 ) * 3 + + 69 - + 46 + COUNT( * ) * + 58 * + + 75 AS col1
----
4490

skipif mysql # not compatible
query I rowsort label-6
SELECT DISTINCT - ( - 39 ) * 3 + + 69 - + 46 + COUNT ( * ) * + 58 * + + 75 AS col1
----
4490

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8
SELECT - 95 - + 40 + 18 * - MAX( ALL 29 ) AS col2, 8
----
-657
8

skipif mysql # not compatible
query II rowsort label-8
SELECT - 95 - + 40 + 18 * - MAX ( ALL 29 ) AS col2, 8
----
-657
8

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

query I rowsort
SELECT DISTINCT - 17 * + + 55 AS col1
----
-935

query I rowsort
SELECT ALL CASE + - 59 WHEN + AVG ( ALL 27 ) THEN - 76 + + 61 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-12
SELECT ALL COUNT( DISTINCT - 17 )
----
1

skipif mysql # not compatible
query I rowsort label-12
SELECT ALL COUNT ( DISTINCT - 17 )
----
1

query I rowsort
SELECT - 35 + - 10 AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-14
SELECT - SUM( ALL 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-14
SELECT - SUM ( ALL 1 )
----
-1

query I rowsort
SELECT - 9 + + 24
----
15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-16
SELECT - 78 - - 16 * + - NULLIF ( + + 27, 84 * - + 24 * + 64 + - 43 * - 31 ) + + + CAST( NULL AS DECIMAL ) + + 56 * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-16
SELECT - 78 - - 16 * + - NULLIF ( + + 27, 84 * - + 24 * + 64 + - 43 * - 31 ) + + + CAST ( NULL AS REAL ) + + 56 * - COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-17
SELECT ALL + 37 / - CAST( NULL AS SIGNED ) * + 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-17
SELECT ALL + 37 / - CAST ( NULL AS INTEGER ) * + 88 AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-18
SELECT - + 32 * + 1 - + CAST( NULL AS DECIMAL ) - + 55 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-18
SELECT - + 32 * + 1 - + CAST ( NULL AS REAL ) - + 55 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-19
SELECT + + COUNT ( * ) + COUNT ( * ) / + 63 AS col0
----
1

query II rowsort
SELECT DISTINCT + 4 * + 52, 80 * - 26 AS col1
----
208
-2080

query II rowsort
SELECT ALL - 46 + - - 36 col2, 8
----
-10
8

onlyif mysql # DIV for integer division: 
query II rowsort label-22
SELECT ALL + - 95 DIV + - 68 + - - 54, ( - + 5 ) - + - 83 + - + 67 AS col1
----
55
11

skipif mysql # not compatible
query II rowsort label-22
SELECT ALL + - 95 / + - 68 + - - 54, ( - + 5 ) - + - 83 + - + 67 AS col1
----
55
11

onlyif mysql # aggregate syntax: 
query I rowsort label-23
SELECT - 54 * + + 51 * COUNT( * ) + 3 AS col2
----
-2751

skipif mysql # not compatible
query I rowsort label-23
SELECT - 54 * + + 51 * COUNT ( * ) + 3 AS col2
----
-2751

query II rowsort
SELECT - - 7 + - - 94, 0 AS col1
----
101
0

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

skipif mysql # not compatible
query I rowsort label-25
SELECT DISTINCT + COUNT ( * ) + - 19 + COUNT ( * ) / - COUNT ( * )
----
-19

query I rowsort
SELECT - - 5 - + 62 * + + 94 * 52
----
-303051

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-27
SELECT - 25 + CAST( 10 AS SIGNED ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-27
SELECT - 25 + CAST ( 10 AS INTEGER ) AS col1
----
-15

query I rowsort
SELECT - + 30 * - 54
----
1620

query I rowsort
SELECT ALL + 19 + 87
----
106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-30
SELECT ALL + MAX( ALL + 4 ) DIV ( - - 55 ) * + 27 DIV 56 + - - 68 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-30
SELECT ALL + MAX ( ALL + 4 ) / ( - - 55 ) * + 27 / 56 + - - 68 AS col2
----
68

query I rowsort
SELECT - 56 - - - 78 - - 90 * + 84
----
7426

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-32
SELECT ALL 0 + 74 AS col1, - COUNT( * ) * - - 12 DIV + 57 * + COALESCE ( + 13, - 83 ) * - 27
----
74
0

skipif mysql # not compatible
query II rowsort label-32
SELECT ALL 0 + 74 AS col1, - COUNT ( * ) * - - 12 / + 57 * + COALESCE ( + 13, - 83 ) * - 27
----
74
0

onlyif mysql # DIV for integer division: 
query I rowsort label-33
SELECT DISTINCT - 49 DIV - + 81 + + + 66 + + NULLIF ( + 16, + 25 ) * + 56
----
962

skipif mysql # not compatible
query I rowsort label-33
SELECT DISTINCT - 49 / - + 81 + + + 66 + + NULLIF ( + 16, + 25 ) * + 56
----
962

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-34
SELECT ALL CASE - - 58 WHEN COUNT( * ) THEN + - 7 * + ( ( - NULLIF ( - COALESCE ( - 18, + + CAST( - AVG ( + 84 ) AS DECIMAL ) ), + COUNT( * ) * CASE + 35 WHEN - - 60 / + 24 THEN NULL ELSE + + COUNT( * ) END + - - 70 ) ) ) + + + MAX( DISTINCT - 45 ) END * + ( - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-34
SELECT ALL CASE - - 58 WHEN COUNT ( * ) THEN + - 7 * + ( ( - NULLIF ( - COALESCE ( - 18, + + CAST ( - AVG ( + 84 ) AS REAL ) ), + COUNT ( * ) * CASE + 35 WHEN - - 60 / + 24 THEN NULL ELSE + + COUNT ( * ) END + - - 70 ) ) ) + + + MAX ( DISTINCT - 45 ) END * + ( - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-35
SELECT ALL + 5 DIV - 74 - + 90 + - 47 * + - 89 + - 43 * 12 DIV NULLIF ( - 57, + MAX( ALL + NULLIF ( - - NULLIF ( - - 53, - - 90 * - 16 ), - + 86 ) ) ) col0
----
4102

skipif mysql # not compatible
query I rowsort label-35
SELECT ALL + 5 / - 74 - + 90 + - 47 * + - 89 + - 43 * 12 / NULLIF ( - 57, + MAX ( ALL + NULLIF ( - - NULLIF ( - - 53, - - 90 * - 16 ), - + 86 ) ) ) col0
----
4102

query I rowsort
SELECT + ( 90 ) AS col0
----
90

query II rowsort
SELECT ALL + 60, - 49 AS col2
----
60
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-38
SELECT COALESCE ( COUNT( * ), - NULLIF ( 87, ( - - ( - 18 ) ) ) ) DIV - 77 + 73
----
73

skipif mysql # not compatible
query I rowsort label-38
SELECT COALESCE ( COUNT ( * ), - NULLIF ( 87, ( - - ( - 18 ) ) ) ) / - 77 + 73
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-39
SELECT ALL + 66 col2, NULLIF ( 87, 96 * + NULLIF ( + CAST( NULL AS SIGNED ), + - 35 ) ) + + 40
----
66
127

skipif mysql # not compatible
query II rowsort label-39
SELECT ALL + 66 col2, NULLIF ( 87, 96 * + NULLIF ( + CAST ( NULL AS INTEGER ), + - 35 ) ) + + 40
----
66
127

onlyif mysql # aggregate syntax: 
query II rowsort label-40
SELECT + 25 + + COUNT( * ) * - 74, - COUNT( * ) AS col0
----
-49
-1

skipif mysql # not compatible
query II rowsort label-40
SELECT + 25 + + COUNT ( * ) * - 74, - COUNT ( * ) AS col0
----
-49
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-41
SELECT ALL ( COALESCE ( + 22, + CASE + CASE - 60 WHEN - ( - - 98 ) THEN + 62 ELSE NULL END WHEN + COUNT( * ) THEN NULL WHEN - 23 + + COUNT( * ) THEN NULL ELSE + 44 - ( - 90 ) + 61 END ) ) * - 99 + - COUNT( * ) + + 18
----
-2161

skipif mysql # not compatible
query I rowsort label-41
SELECT ALL ( COALESCE ( + 22, + CASE + CASE - 60 WHEN - ( - - 98 ) THEN + 62 ELSE NULL END WHEN + COUNT ( * ) THEN NULL WHEN - 23 + + COUNT ( * ) THEN NULL ELSE + 44 - ( - 90 ) + 61 END ) ) * - 99 + - COUNT ( * ) + + 18
----
-2161

query I rowsort
SELECT + 42 * - 11
----
-462

query I rowsort
SELECT ( + ( - - ( - 94 ) ) )
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-44
SELECT + 77 * CASE - MIN( 64 ) WHEN + 50 THEN NULL WHEN + CAST( NULL AS SIGNED ) * 90 - + NULLIF ( - + 3, - 4 * - 5 * + - 41 ) + - - 6 + - - 25 + 72 / 75 * + 64 THEN + + 67 WHEN + 20 THEN + 65 WHEN + 15 + ( - 47 ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-44
SELECT + 77 * CASE - MIN ( 64 ) WHEN + 50 THEN NULL WHEN + CAST ( NULL AS INTEGER ) * 90 - + NULLIF ( - + 3, - 4 * - 5 * + - 41 ) + - - 6 + - - 25 + 72 / 75 * + 64 THEN + + 67 WHEN + 20 THEN + 65 WHEN + 15 + ( - 47 ) THEN NULL ELSE NULL END AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-46
SELECT - COUNT( * ) * + - NULLIF ( + - COALESCE ( CASE 95 WHEN + ( - COALESCE ( - 23, 97 / + 87 * NULLIF ( + 36, 34 / - COUNT( * ) * + 96 + 50 + - 6 * + ( - + 21 ) ) * + 35 + + AVG ( + 14 ) + - - COUNT( * ) * + 75, + + AVG ( - 68 ) - + 72 + + 81 * 66 - - 44 ) ) * + 18 THEN 84 ELSE ( - 69 ) * - COALESCE ( - - ( COALESCE ( + 46, COUNT( * ) * COUNT( + 15 ) ) ), + 52 ) - 64 END, - 59 ), 46 ) + ( 20 + + NULLIF ( 31 + 60, NULLIF ( 4, + NULLIF ( COUNT( * ), - 92 - 58 ) ) * - CASE 82 * + COUNT( * ) WHEN 21 * 52 THEN + 97 * 94 WHEN - 19 - 93 THEN 96 + 21 * - 63 END + - 6 ) * 61 ) AS col0
----
2461

skipif mysql # not compatible
query I rowsort label-46
SELECT - COUNT ( * ) * + - NULLIF ( + - COALESCE ( CASE 95 WHEN + ( - COALESCE ( - 23, 97 / + 87 * NULLIF ( + 36, 34 / - COUNT ( * ) * + 96 + 50 + - 6 * + ( - + 21 ) ) * + 35 + + AVG ( + 14 ) + - - COUNT ( * ) * + 75, + + AVG ( - 68 ) - + 72 + + 81 * 66 - - 44 ) ) * + 18 THEN 84 ELSE ( - 69 ) * - COALESCE ( - - ( COALESCE ( + 46, COUNT ( * ) * COUNT ( + 15 ) ) ), + 52 ) - 64 END, - 59 ), 46 ) + ( 20 + + NULLIF ( 31 + 60, NULLIF ( 4, + NULLIF ( COUNT ( * ), - 92 - 58 ) ) * - CASE 82 * + COUNT ( * ) WHEN 21 * 52 THEN + 97 * 94 WHEN - 19 - 93 THEN 96 + 21 * - 63 END + - 6 ) * 61 ) AS col0
----
2461

query I rowsort
SELECT + 71 + 82
----
153

query II rowsort
SELECT ALL + 11 AS col0, 62 AS col2
----
11
62

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

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

query I rowsort
SELECT + NULLIF ( - + 23, - 58 + + 1 ) + + + NULLIF ( + 1, + 10 )
----
-22

query I rowsort
SELECT 49 * + 52 + + ( + 87 ) + 76
----
2711

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-52
SELECT DISTINCT 88 DIV - - CAST( - 36 AS SIGNED ), 11 AS col0
----
-2
11

skipif mysql # not compatible
query II rowsort label-52
SELECT DISTINCT 88 / - - CAST ( - 36 AS INTEGER ), 11 AS col0
----
-2
11

query I rowsort
SELECT + 11 * + 68 AS col0
----
748

query I rowsort
SELECT ALL - 41 * + - 66 AS col2
----
2706

onlyif mysql # DIV for integer division: 
query I rowsort label-55
SELECT + 2 DIV - ( 9 ) * - 12 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-55
SELECT + 2 / - ( 9 ) * - 12 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-56
SELECT ALL 72 * 30 + - - 23 DIV - - ( 78 )
----
2160

skipif mysql # not compatible
query I rowsort label-56
SELECT ALL 72 * 30 + - - 23 / - - ( 78 )
----
2160

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-57
SELECT DISTINCT 93 * - + 92 + - CAST( - + CAST( NULL AS SIGNED ) AS DECIMAL ) + 69 * - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-57
SELECT DISTINCT 93 * - + 92 + - CAST ( - + CAST ( NULL AS INTEGER ) AS REAL ) + 69 * - 42
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-58
SELECT DISTINCT + 99 * - 33 + 83 + + 27 + - CASE + ( + NULLIF ( + 84, - + COUNT( * ) * 5 - ( - 18 ) * - 51 * 22 * 19 * - 39 ) ) WHEN 89 * - CASE - - 71 WHEN - COUNT( * ) THEN NULL ELSE - NULLIF ( - + CAST( + 30 AS SIGNED ), + + 90 ) * - 54 + - 1 END + 93 THEN 67 END * + 66 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-58
SELECT DISTINCT + 99 * - 33 + 83 + + 27 + - CASE + ( + NULLIF ( + 84, - + COUNT ( * ) * 5 - ( - 18 ) * - 51 * 22 * 19 * - 39 ) ) WHEN 89 * - CASE - - 71 WHEN - COUNT ( * ) THEN NULL ELSE - NULLIF ( - + CAST ( + 30 AS INTEGER ), + + 90 ) * - 54 + - 1 END + 93 THEN 67 END * + 66 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-59
SELECT ALL - COUNT( 59 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-59
SELECT ALL - COUNT ( 59 ) AS col1
----
-1

query I rowsort
SELECT - + 20 * - - 45 + 75 * + - 94 * 92 AS col0
----
-649500

query I rowsort
SELECT ALL - 56 + + 31 + + 18
----
-7

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

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

query I rowsort
SELECT + + 76 - - + 87 * - - 32
----
2860

onlyif mysql # aggregate syntax: 
query I rowsort label-64
SELECT - CASE + 78 WHEN + - 33 THEN + + 68 - - 92 WHEN - 9 - COALESCE ( + + COUNT( * ), - 98 ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-64
SELECT - CASE + 78 WHEN + - 33 THEN + + 68 - - 92 WHEN - 9 - COALESCE ( + + COUNT ( * ), - 98 ) THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-65
SELECT - 88 - + 43 + + SUM( - - 28 )
----
-103

skipif mysql # not compatible
query I rowsort label-65
SELECT - 88 - + 43 + + SUM ( - - 28 )
----
-103

onlyif mysql # aggregate syntax: 
query II rowsort label-66
SELECT - 43 col2, MIN( DISTINCT 33 ) * - - 44 + - 76 AS col1
----
-43
1376

skipif mysql # not compatible
query II rowsort label-66
SELECT - 43 col2, MIN ( DISTINCT 33 ) * - - 44 + - 76 AS col1
----
-43
1376

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

onlyif mysql # aggregate syntax: 
query I rowsort label-68
SELECT - SUM( + 26 ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-68
SELECT - SUM ( + 26 ) AS col1
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-69
SELECT ALL + CAST( + 63 AS SIGNED ) * COALESCE ( COUNT( * ), CASE + 60 WHEN ( COUNT( * ) ) THEN NULL WHEN + COUNT( * ) / + NULLIF ( + 67, 70 * COUNT( + 6 ) ) - - 17 * - 81 THEN NULL ELSE - 34 * NULLIF ( - - 53, 75 - 45 ) - 64 * - COUNT( * ) * 50 END * - 28 + - + NULLIF ( + CAST( + 6 AS SIGNED ), ( - COUNT( * ) ) * + + 81 + - 27 ) )
----
63

skipif mysql # not compatible
query I rowsort label-69
SELECT ALL + CAST ( + 63 AS INTEGER ) * COALESCE ( COUNT ( * ), CASE + 60 WHEN ( COUNT ( * ) ) THEN NULL WHEN + COUNT ( * ) / + NULLIF ( + 67, 70 * COUNT ( + 6 ) ) - - 17 * - 81 THEN NULL ELSE - 34 * NULLIF ( - - 53, 75 - 45 ) - 64 * - COUNT ( * ) * 50 END * - 28 + - + NULLIF ( + CAST ( + 6 AS INTEGER ), ( - COUNT ( * ) ) * + + 81 + - 27 ) )
----
63

query I rowsort
SELECT - 54 + + 34 * + 60 col0
----
1986

query I rowsort
SELECT DISTINCT + + 51 + 93
----
144

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-73
SELECT DISTINCT - - 26 DIV + 13 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-73
SELECT DISTINCT - - 26 / + 13 AS col0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-74
SELECT 29 + - 92 + + 67 DIV + 98 * + 77 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-74
SELECT 29 + - 92 + + 67 / + 98 * + 77 AS col1
----
-63

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-76
SELECT 7 * + CASE 86 WHEN 63 + - 43 + + 11 * + + 58 THEN + + 97 END + ( - SUM( 26 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-76
SELECT 7 * + CASE 86 WHEN 63 + - 43 + + 11 * + + 58 THEN + + 97 END + ( - SUM ( 26 ) )
----
NULL

query I rowsort
SELECT ALL - ( 2 ) AS col0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-78
SELECT DISTINCT 54 / + - MAX( - - 34 ) * MAX( ALL - CAST( NULL AS SIGNED ) ) + + CAST( NULL AS SIGNED ) + + - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-78
SELECT DISTINCT 54 / + - MAX ( - - 34 ) * MAX ( ALL - CAST ( NULL AS INTEGER ) ) + + CAST ( NULL AS INTEGER ) + + - 29
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-79
SELECT COUNT( * ) * + ( 94 ) * + + 59 AS col1
----
5546

skipif mysql # not compatible
query I rowsort label-79
SELECT COUNT ( * ) * + ( 94 ) * + + 59 AS col1
----
5546

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-80
SELECT DISTINCT - CASE - + 96 WHEN + - CASE + - CAST( NULL AS SIGNED ) WHEN + ( - 20 ) THEN + - 4 WHEN COALESCE ( 11, - 72, - 39 / - - 75 ) THEN ( - 45 ) * + 46 / + 77 ELSE NULL END THEN ( + COUNT( * ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-80
SELECT DISTINCT - CASE - + 96 WHEN + - CASE + - CAST ( NULL AS INTEGER ) WHEN + ( - 20 ) THEN + - 4 WHEN COALESCE ( 11, - 72, - 39 / - - 75 ) THEN ( - 45 ) * + 46 / + 77 ELSE NULL END THEN ( + COUNT ( * ) ) ELSE NULL END
----
NULL

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

query I rowsort
SELECT ALL 83 * + - 32
----
-2656

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-84
SELECT - 84 * + - 25 - - ( - - 54 ), - ( COUNT( * ) ) AS col1
----
2154
-1

skipif mysql # not compatible
query II rowsort label-84
SELECT - 84 * + - 25 - - ( - - 54 ), - ( COUNT ( * ) ) AS col1
----
2154
-1

query I rowsort
SELECT ALL 6 + + CASE - NULLIF ( + 68, + 27 ) WHEN ( - - 65 ) + + CASE + + 50 WHEN 77 THEN - + 47 ELSE NULL END THEN NULL ELSE - 61 END
----
-55

query I rowsort
SELECT 84 * + - 21 * + 46
----
-81144

onlyif mysql # aggregate syntax: 
query I rowsort label-87
SELECT ALL 99 + - COUNT( * ) col1
----
98

skipif mysql # not compatible
query I rowsort label-87
SELECT ALL 99 + - COUNT ( * ) col1
----
98

query I rowsort
SELECT ALL - 10 * 96 AS col2
----
-960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-89
SELECT DISTINCT CAST( - 28 AS SIGNED ) + - + 92 + - + 75, + COUNT( 89 ) * 50 + + 85 + + ( + - 25 ) AS col1
----
-195
110

skipif mysql # not compatible
query II rowsort label-89
SELECT DISTINCT CAST ( - 28 AS INTEGER ) + - + 92 + - + 75, + COUNT ( 89 ) * 50 + + 85 + + ( + - 25 ) AS col1
----
-195
110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-90
SELECT ALL - MAX( + + 63 ) DIV - 39 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-90
SELECT ALL - MAX ( + + 63 ) / - 39 AS col1
----
1

query I rowsort
SELECT + ( + 52 ) col2
----
52

query II rowsort
SELECT ALL + 43 + - 17 col2, - 81 AS col1
----
26
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-93
SELECT DISTINCT - + MAX( DISTINCT - + 38 ) + + NULLIF ( CAST( - ( + 94 ) AS SIGNED ), - ( + 44 ) ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-93
SELECT DISTINCT - + MAX ( DISTINCT - + 38 ) + + NULLIF ( CAST ( - ( + 94 ) AS INTEGER ), - ( + 44 ) ) AS col1
----
-56

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

skipif mysql # not compatible
query I rowsort label-94
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 34 AS col1
----
NULL

query I rowsort
SELECT 36 * + + 17 AS col2
----
612

query I rowsort
SELECT + 93 + - 32
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-97
SELECT ALL 33 DIV - 53 * 10 - - 66 + - 37 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-97
SELECT ALL 33 / - 53 * 10 - - 66 + - 37 AS col1
----
29

query II rowsort
SELECT DISTINCT + 36 + 30 AS col0, 74 AS col1
----
66
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-99
SELECT CAST( 22 AS SIGNED ) + - 93
----
-71

skipif mysql # not compatible
query I rowsort label-99
SELECT CAST ( 22 AS INTEGER ) + - 93
----
-71

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-101
SELECT ALL - 2 + - COUNT( * ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-101
SELECT ALL - 2 + - COUNT ( * ) AS col2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-102
SELECT ALL - - 53 + 2 + - CAST( NULL AS DECIMAL ) + - + 71 * COUNT( * ) * - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-102
SELECT ALL - - 53 + 2 + - CAST ( NULL AS REAL ) + - + 71 * COUNT ( * ) * - 54
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-103
SELECT ALL + ( + - 68 ) - + 42 / + CAST( NULL AS SIGNED ) AS col2, + 57 AS col1
----
NULL
57

skipif mysql # not compatible
query II rowsort label-103
SELECT ALL + ( + - 68 ) - + 42 / + CAST ( NULL AS INTEGER ) AS col2, + 57 AS col1
----
NULL
57

onlyif mysql # aggregate syntax: 
query I rowsort label-104
SELECT - 43 * + + MAX( - 15 ) AS col1
----
645

skipif mysql # not compatible
query I rowsort label-104
SELECT - 43 * + + MAX ( - 15 ) AS col1
----
645

query I rowsort
SELECT ( + 66 ) AS col1
----
66

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

query II rowsort
SELECT ALL + 61 - 43 AS col2, 90 + + 37 + - + 43
----
18
84

query I rowsort
SELECT + 9 * ( NULLIF ( - 95, 77 ) ) * + + 83 + - ( - 38 )
----
-70927

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-109
SELECT COALESCE ( + + 31, + - COUNT( * ) ) * + + MIN( + CAST( NULL AS SIGNED ) ) * + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-109
SELECT COALESCE ( + + 31, + - COUNT ( * ) ) * + + MIN ( + CAST ( NULL AS INTEGER ) ) * + 54
----
NULL

query I rowsort
SELECT - 18 + - - 76 * - + 53 col2
----
-4046

query I rowsort
SELECT 31 * - 61 * 68 AS col2
----
-128588

query I rowsort
SELECT 44 * - 52
----
-2288

query I rowsort
SELECT 15 * 86
----
1290

onlyif mysql # DIV for integer division: 
query I rowsort label-114
SELECT ALL - 76 DIV - - 7
----
-10

skipif mysql # not compatible
query I rowsort label-114
SELECT ALL - 76 / - - 7
----
-10

query II rowsort
SELECT 21 - - ( 1 ), + 5 * ( + 82 ) AS col2
----
22
410

onlyif mysql # DIV for integer division: 
query I rowsort label-116
SELECT 34 DIV - + 76 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-116
SELECT 34 / - + 76 AS col1
----
0

query II rowsort
SELECT ALL - 49 * - 57 * + 74, 68 AS col1
----
206682
68

onlyif mysql # aggregate syntax: 
query II rowsort label-118
SELECT COUNT( * ) AS col1, + ( 9 ) * - 16 - + 85 - - - 76 AS col0
----
1
-305

skipif mysql # not compatible
query II rowsort label-118
SELECT COUNT ( * ) AS col1, + ( 9 ) * - 16 - + 85 - - - 76 AS col0
----
1
-305

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

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

query I rowsort
SELECT 30 + + 93
----
123

query I rowsort
SELECT 77 * - ( + 0 ) - - 10 col1
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-122
SELECT ALL + 86 + 20 + + + MAX( ALL - - 0 ) * + CASE - 61 WHEN + 80 / + NULLIF ( + + ( - CAST( NULL AS DECIMAL ) ), + 86 / - COUNT( * ) + CAST( NULL AS SIGNED ) ) THEN + + 42 + + - 79 * 79 ELSE NULL END * + - 19 - + + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-122
SELECT ALL + 86 + 20 + + + MAX ( ALL - - 0 ) * + CASE - 61 WHEN + 80 / + NULLIF ( + + ( - CAST ( NULL AS REAL ) ), + 86 / - COUNT ( * ) + CAST ( NULL AS INTEGER ) ) THEN + + 42 + + - 79 * 79 ELSE NULL END * + - 19 - + + 6
----
NULL

query I rowsort
SELECT 39 + - CASE + 35 WHEN + 91 * + - 75 / 53 THEN + 32 END + - 43
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-124
SELECT + 30 DIV - + 24 - + ( - ( - 62 ) ) * - + 75
----
4649

skipif mysql # not compatible
query I rowsort label-124
SELECT + 30 / - + 24 - + ( - ( - 62 ) ) * - + 75
----
4649

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-125
SELECT CASE - + 74 WHEN - 19 * + COUNT( * ) * ( + + 1 ) + 85 - + + ( - 1 ) THEN 80 / - CAST( 0 AS SIGNED ) END * - 69 * + - AVG ( 66 ) + 46 AS col2, ( - COUNT( * ) ) AS col0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-125
SELECT CASE - + 74 WHEN - 19 * + COUNT ( * ) * ( + + 1 ) + 85 - + + ( - 1 ) THEN 80 / - CAST ( 0 AS INTEGER ) END * - 69 * + - AVG ( 66 ) + 46 AS col2, ( - COUNT ( * ) ) AS col0
----
NULL
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-126
SELECT COUNT( ALL + 97 ) * + + COUNT( * ) * 43 * + 1 DIV 1 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-126
SELECT COUNT ( ALL + 97 ) * + + COUNT ( * ) * 43 * + 1 / 1 AS col1
----
43

query I rowsort
SELECT ALL - 13 + + 60 AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-128
SELECT ALL - MAX( DISTINCT 90 )
----
-90

skipif mysql # not compatible
query I rowsort label-128
SELECT ALL - MAX ( DISTINCT 90 )
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-129
SELECT + COUNT( * ) + - 73 DIV - 1 * - 1
----
-72

skipif mysql # not compatible
query I rowsort label-129
SELECT + COUNT ( * ) + - 73 / - 1 * - 1
----
-72

query I rowsort
SELECT + 25 + + + 30 AS col0
----
55

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

skipif mysql # not compatible
query I rowsort label-131
SELECT ALL - COUNT ( * ) + + 87 AS col0
----
86

query I rowsort
SELECT ALL - + 76 * + 55 col0
----
-4180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-133
SELECT DISTINCT 21 * - + COUNT( * ) * - 23 + + + ( + 63 ) + + 30 * - 30 + - 89 DIV + 25 + + + ( - 65 ) + 45
----
-377

skipif mysql # not compatible
query I rowsort label-133
SELECT DISTINCT 21 * - + COUNT ( * ) * - 23 + + + ( + 63 ) + + 30 * - 30 + - 89 / + 25 + + + ( - 65 ) + 45
----
-377

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-134
SELECT - MIN( + 50 ) * CAST( NULL AS SIGNED ) * + 43 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-134
SELECT - MIN ( + 50 ) * CAST ( NULL AS INTEGER ) * + 43 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-135
SELECT - COUNT( * ) * - 28 * + 96 + + 83 + + - ( MIN( ALL - 33 ) ) + - 48 * + 73
----
-700

skipif mysql # not compatible
query I rowsort label-135
SELECT - COUNT ( * ) * - 28 * + 96 + + 83 + + - ( MIN ( ALL - 33 ) ) + - 48 * + 73
----
-700

onlyif mysql # aggregate syntax: 
query I rowsort label-136
SELECT - COUNT( 75 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-136
SELECT - COUNT ( 75 ) AS col0
----
-1

query I rowsort
SELECT - 74 + - 18
----
-92

query I rowsort
SELECT ALL 44 - 60
----
-16

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

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

query I rowsort
SELECT DISTINCT - - 34 * - - 26
----
884

query I rowsort
SELECT + + 93 * - 70 AS col0
----
-6510

onlyif mysql # DIV for integer division: 
query I rowsort label-142
SELECT + 36 + + - 1 DIV 16 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-142
SELECT + 36 + + - 1 / 16 AS col0
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-143
SELECT COALESCE ( - 18, - 52 + - + SUM( - - CAST( NULL AS SIGNED ) ) ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-143
SELECT COALESCE ( - 18, - 52 + - + SUM ( - - CAST ( NULL AS INTEGER ) ) ) AS col2
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-144
SELECT + 94 DIV 88 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-144
SELECT + 94 / 88 AS col2
----
1

query I rowsort
SELECT + 63 * - 97
----
-6111

onlyif mysql # aggregate syntax: 
query I rowsort label-146
SELECT + COUNT( * ) + 76 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-146
SELECT + COUNT ( * ) + 76 AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-147
SELECT + MIN( + ( 90 ) ) * 58
----
5220

skipif mysql # not compatible
query I rowsort label-147
SELECT + MIN ( + ( 90 ) ) * 58
----
5220

onlyif mysql # aggregate syntax: 
query I rowsort label-148
SELECT + COUNT( * ) + - 43
----
-42

skipif mysql # not compatible
query I rowsort label-148
SELECT + COUNT ( * ) + - 43
----
-42

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

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

query I rowsort
SELECT + 2 * - 47 AS col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-151
SELECT - COUNT( * ) * + 9 * 67 AS col1
----
-603

skipif mysql # not compatible
query I rowsort label-151
SELECT - COUNT ( * ) * + 9 * 67 AS col1
----
-603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-152
SELECT ALL NULLIF ( 35, + 12 + - 99 ) * + 85 + - - 64 * + ( - 11 ) + 34, - MIN( ALL - CAST( - 52 AS SIGNED ) ) * + 96 * - 51 + + NULLIF ( 64, - - 15 ) AS col0
----
2305
254656

skipif mysql # not compatible
query II rowsort label-152
SELECT ALL NULLIF ( 35, + 12 + - 99 ) * + 85 + - - 64 * + ( - 11 ) + 34, - MIN ( ALL - CAST ( - 52 AS INTEGER ) ) * + 96 * - 51 + + NULLIF ( 64, - - 15 ) AS col0
----
2305
254656

query I rowsort
SELECT + 78 * + + NULLIF ( 80, + 85 * 47 - 84 ) * - 69 col0
----
-430560

onlyif mysql # aggregate syntax: 
query II rowsort label-154
SELECT ALL 14 AS col2, CASE 90 WHEN - 56 THEN NULL WHEN + 59 - - - 69 + - AVG ( ALL + - 39 ) + - 45 * - - 35 * + 66 THEN NULL WHEN - 54 THEN + + 19 / - COUNT( * ) ELSE + 20 END
----
14
20

skipif mysql # not compatible
query II rowsort label-154
SELECT ALL 14 AS col2, CASE 90 WHEN - 56 THEN NULL WHEN + 59 - - - 69 + - AVG ( ALL + - 39 ) + - 45 * - - 35 * + 66 THEN NULL WHEN - 54 THEN + + 19 / - COUNT ( * ) ELSE + 20 END
----
14
20

query I rowsort
SELECT + 96 + + + 36 * 82 * - + 14
----
-41232

onlyif mysql # aggregate syntax: 
query I rowsort label-156
SELECT + 72 + - COUNT( * ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-156
SELECT + 72 + - COUNT ( * ) AS col2
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-157
SELECT ALL 71 AS col0, - COUNT( * )
----
71
-1

skipif mysql # not compatible
query II rowsort label-157
SELECT ALL 71 AS col0, - COUNT ( * )
----
71
-1

query I rowsort
SELECT ALL 37 * + + 78 AS col1
----
2886

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

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

query II rowsort
SELECT - 27 AS col1, 53 * - - 97
----
-27
5141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-161
SELECT ALL CAST( NULL AS SIGNED ) + 1 * + 32 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-161
SELECT ALL CAST ( NULL AS INTEGER ) + 1 * + 32 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-162
SELECT - CASE - 20 WHEN - 7 * + COALESCE ( + 57, - COUNT( * ) ) THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-162
SELECT - CASE - 20 WHEN - 7 * + COALESCE ( + 57, - COUNT ( * ) ) THEN - COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-163
SELECT - NULLIF ( 38, + + CAST( NULL AS SIGNED ) ) + 83 + 71 AS col1
----
116

skipif mysql # not compatible
query I rowsort label-163
SELECT - NULLIF ( 38, + + CAST ( NULL AS INTEGER ) ) + 83 + 71 AS col1
----
116

query I rowsort
SELECT + 12 * - 4 AS col0
----
-48

query I rowsort
SELECT 81 * + + ( - 53 ) + + 13 col2
----
-4280

query I rowsort
SELECT ALL 69 * - - 49 + 67 AS col2
----
3448

onlyif mysql # DIV for integer division: 
query I rowsort label-167
SELECT + 63 DIV + 87 * + 60 + - 17 AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-167
SELECT + 63 / + 87 * + 60 + - 17 AS col0
----
-17

query I rowsort
SELECT ALL 76 * + 27 + + 15 AS col0
----
2067

query I rowsort
SELECT DISTINCT - 27 * + 9 AS col1
----
-243

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

onlyif mysql # aggregate syntax: 
query I rowsort label-171
SELECT DISTINCT - 71 * - + 33 + - 1 + - MAX( + 97 )
----
2245

skipif mysql # not compatible
query I rowsort label-171
SELECT DISTINCT - 71 * - + 33 + - 1 + - MAX ( + 97 )
----
2245

onlyif mysql # aggregate syntax: 
query II rowsort label-172
SELECT ALL - COUNT( * ) * 49 col1, - COUNT( * ) col1
----
-49
-1

skipif mysql # not compatible
query II rowsort label-172
SELECT ALL - COUNT ( * ) * 49 col1, - COUNT ( * ) col1
----
-49
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-173
SELECT ALL AVG ( ALL - - CAST( + 9 AS SIGNED ) ) * + + 47 + - + CASE 0 WHEN + COUNT( DISTINCT + 55 ) THEN + COALESCE ( - - 93, + - 47 * - 32 - + 54 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-173
SELECT ALL AVG ( ALL - - CAST ( + 9 AS INTEGER ) ) * + + 47 + - + CASE 0 WHEN + COUNT ( DISTINCT + 55 ) THEN + COALESCE ( - - 93, + - 47 * - 32 - + 54 ) END AS col0
----
NULL

query I rowsort
SELECT DISTINCT 56 * 80 + - + 6 * - + ( 41 ) AS col1
----
4726

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-175
SELECT DISTINCT + 28 * + - CAST( - 65 AS SIGNED ) * - SUM( DISTINCT - + 56 ) + + - 32 col0
----
101888

skipif mysql # not compatible
query I rowsort label-175
SELECT DISTINCT + 28 * + - CAST ( - 65 AS INTEGER ) * - SUM ( DISTINCT - + 56 ) + + - 32 col0
----
101888

query I rowsort
SELECT + NULLIF ( - - 90, - - 99 ) - - - 43 * + - 46
----
2068

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

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

query I rowsort
SELECT ALL + 27 * + 10 AS col0
----
270

query II rowsort
SELECT - 83, + 58 AS col2
----
-83
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-180
SELECT + + 35 col2, COUNT( * ) DIV + 32 * + + CAST( - + MAX( + - 81 ) AS SIGNED ) * + 9 + - + 97 - 53 * ( 51 ) * - CASE - + 55 WHEN + CAST( NULL AS SIGNED ) THEN - - MIN( DISTINCT + + CAST( NULL AS SIGNED ) ) ELSE COUNT( * ) * COALESCE ( + 72, - - 40 * + + 34 * - + 81 * + 24 * - COUNT( * ) * + COUNT( * ) + - 16, + 81 * + - 47 + + 88 * - 53 ) END
----
35
194519

skipif mysql # not compatible
query II rowsort label-180
SELECT + + 35 col2, COUNT ( * ) / + 32 * + + CAST ( - + MAX ( + - 81 ) AS INTEGER ) * + 9 + - + 97 - 53 * ( 51 ) * - CASE - + 55 WHEN + CAST ( NULL AS INTEGER ) THEN - - MIN ( DISTINCT + + CAST ( NULL AS INTEGER ) ) ELSE COUNT ( * ) * COALESCE ( + 72, - - 40 * + + 34 * - + 81 * + 24 * - COUNT ( * ) * + COUNT ( * ) + - 16, + 81 * + - 47 + + 88 * - 53 ) END
----
35
194519

query II rowsort
SELECT ALL + + 15 AS col1, 27 * - 2
----
15
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-182
SELECT - - CASE - COUNT( 56 ) WHEN 32 THEN 37 WHEN - 90 + 57 + + - COUNT( * ) * - 95 THEN NULL ELSE NULL END * - MIN( 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-182
SELECT - - CASE - COUNT ( 56 ) WHEN 32 THEN 37 WHEN - 90 + 57 + + - COUNT ( * ) * - 95 THEN NULL ELSE NULL END * - MIN ( 80 )
----
NULL

query I rowsort
SELECT + - 66 + + 19
----
-47

query I rowsort
SELECT ALL + 57 * - 6 * + + 84 - + + 38 * - 98 * - 56 AS col2
----
-237272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-185
SELECT DISTINCT + 71 * - + ( + COUNT( * ) ) - 13, CAST( NULL AS SIGNED ) + 25 col0
----
-84
NULL

skipif mysql # not compatible
query II rowsort label-185
SELECT DISTINCT + 71 * - + ( + COUNT ( * ) ) - 13, CAST ( NULL AS INTEGER ) + 25 col0
----
-84
NULL

query I rowsort
SELECT ALL + + CASE WHEN NOT 37 < 75 THEN - + 61 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-187
SELECT - 90 * - + 19 * 32 * 49 * 70 + - + COUNT( * ) - + - 14 + + 94 + - 87 + - ( - + ( - - 93 ) ) * + 96 * - NULLIF ( - 29, + 30 ) * - COALESCE ( - - 39, - 54 - + + SUM( ALL - 34 ) + + NULLIF ( + 95, + + COUNT( * ) ) ) * - 97 - + 55
----
1167153661

skipif mysql # not compatible
query I rowsort label-187
SELECT - 90 * - + 19 * 32 * 49 * 70 + - + COUNT ( * ) - + - 14 + + 94 + - 87 + - ( - + ( - - 93 ) ) * + 96 * - NULLIF ( - 29, + 30 ) * - COALESCE ( - - 39, - 54 - + + SUM ( ALL - 34 ) + + NULLIF ( + 95, + + COUNT ( * ) ) ) * - 97 - + 55
----
1167153661

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-188
SELECT ALL MAX( 60 ) * + 60 * CAST( 50 AS SIGNED ) * 53 + + 44 * 84 * - 77 - + 31
----
9255377

skipif mysql # not compatible
query I rowsort label-188
SELECT ALL MAX ( 60 ) * + 60 * CAST ( 50 AS INTEGER ) * 53 + + 44 * 84 * - 77 - + 31
----
9255377

onlyif mysql # aggregate syntax: 
query II rowsort label-189
SELECT + 90 AS col1, + ( COUNT( * ) )
----
90
1

skipif mysql # not compatible
query II rowsort label-189
SELECT + 90 AS col1, + ( COUNT ( * ) )
----
90
1

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

skipif mysql # not compatible
query I rowsort label-190
SELECT - 91 + + 53 / CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-191
SELECT - - 70 * + SUM( NULLIF ( 19, + - 50 ) ) * + 79 AS col2
----
105070

skipif mysql # not compatible
query I rowsort label-191
SELECT - - 70 * + SUM ( NULLIF ( 19, + - 50 ) ) * + 79 AS col2
----
105070

onlyif mysql # aggregate syntax: 
query I rowsort label-192
SELECT + + SUM( - ( + + 57 ) ) + + - 28
----
-85

skipif mysql # not compatible
query I rowsort label-192
SELECT + + SUM ( - ( + + 57 ) ) + + - 28
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-193
SELECT DISTINCT + 59 * + - CASE - - COALESCE ( - COUNT( * ), COUNT( * ) ) WHEN 8 THEN - 6 WHEN + - COALESCE ( - NULLIF ( + - 6, - 6 + - 36 ), - + 63 ) THEN + + 83 ELSE - COUNT( 22 ) END * COUNT( * ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-193
SELECT DISTINCT + 59 * + - CASE - - COALESCE ( - COUNT ( * ), COUNT ( * ) ) WHEN 8 THEN - 6 WHEN + - COALESCE ( - NULLIF ( + - 6, - 6 + - 36 ), - + 63 ) THEN + + 83 ELSE - COUNT ( 22 ) END * COUNT ( * ) AS col2
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-194
SELECT ALL - NULLIF ( - - COALESCE ( 67, - 57 DIV 52 ), 36 * - 30 + + + COUNT( * ) + - COUNT( * ) * 75 + - 22 ), + 24 AS col0
----
-67
24

skipif mysql # not compatible
query II rowsort label-194
SELECT ALL - NULLIF ( - - COALESCE ( 67, - 57 / 52 ), 36 * - 30 + + + COUNT ( * ) + - COUNT ( * ) * 75 + - 22 ), + 24 AS col0
----
-67
24

query I rowsort
SELECT - ( + 61 ) AS col1
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-196
SELECT - 79 DIV ( - COUNT( + + 11 ) ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-196
SELECT - 79 / ( - COUNT ( + + 11 ) ) AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-197
SELECT ALL CASE + COUNT( * ) WHEN 86 THEN + 94 + 90 + + 24 END + - + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-197
SELECT ALL CASE + COUNT ( * ) WHEN 86 THEN + 94 + 90 + + 24 END + - + 25
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-198
SELECT + 96 * CAST( NULL AS SIGNED ) col2, NULLIF ( + 49, 78 + - 17 + CAST( NULL AS SIGNED ) / + - 20 * + 74 ) * + 58 * - - ( - CASE ( 39 ) WHEN + 99 / - 67 * 2 THEN NULL ELSE + + 97 * - 3 END ) + - MIN( 97 )
----
NULL
826925

skipif mysql # not compatible
query II rowsort label-198
SELECT + 96 * CAST ( NULL AS INTEGER ) col2, NULLIF ( + 49, 78 + - 17 + CAST ( NULL AS INTEGER ) / + - 20 * + 74 ) * + 58 * - - ( - CASE ( 39 ) WHEN + 99 / - 67 * 2 THEN NULL ELSE + + 97 * - 3 END ) + - MIN ( 97 )
----
NULL
826925

query I rowsort
SELECT DISTINCT + 76 * - 88 AS col2
----
-6688

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-200
SELECT + COUNT( * ) DIV - 71 * 10 * + 41 * + + 89
----
0

skipif mysql # not compatible
query I rowsort label-200
SELECT + COUNT ( * ) / - 71 * 10 * + 41 * + + 89
----
0

query II rowsort
SELECT - ( - 23 ) AS col1, - 1
----
23
-1

query I rowsort
SELECT ALL 30 + 55 * - - 61 AS col2
----
3385

query I rowsort
SELECT - 36 + - ( + 51 ) AS col0
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-204
SELECT + COUNT( * ) DIV + 82 col1, 6 * 59
----
0
354

skipif mysql # not compatible
query II rowsort label-204
SELECT + COUNT ( * ) / + 82 col1, 6 * 59
----
0
354

query I rowsort
SELECT ALL 24 + 13 - 74
----
-37

query I rowsort
SELECT - ( 44 )
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-207
SELECT ALL 77 + CAST( + 42 AS SIGNED ) - + COUNT( * ) AS col2
----
118

skipif mysql # not compatible
query I rowsort label-207
SELECT ALL 77 + CAST ( + 42 AS INTEGER ) - + COUNT ( * ) AS col2
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-208
SELECT + COUNT( + 2 ) + 67 + 42
----
110

skipif mysql # not compatible
query I rowsort label-208
SELECT + COUNT ( + 2 ) + 67 + 42
----
110

query I rowsort
SELECT DISTINCT 82 * 54 AS col1
----
4428

query I rowsort
SELECT + - 92 + - 19
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-211
SELECT - 17 * + COUNT( * ) - + NULLIF ( - + 12, - - 23 * 46 )
----
-5

skipif mysql # not compatible
query I rowsort label-211
SELECT - 17 * + COUNT ( * ) - + NULLIF ( - + 12, - - 23 * 46 )
----
-5

query I rowsort
SELECT - 38 * 25 + - 61 + + 45 AS col2
----
-966

query I rowsort
SELECT - + 12 - - 86 + + 91 + + - 33
----
132

onlyif mysql # DIV for integer division: 
query I rowsort label-214
SELECT ALL + 10 DIV + 99 * - - 62 DIV + - 40 - 0 - - 34
----
34

skipif mysql # not compatible
query I rowsort label-214
SELECT ALL + 10 / + 99 * - - 62 / + - 40 - 0 - - 34
----
34

query I rowsort
SELECT + + 17 * - 32 + - 60 * - 15 AS col2
----
356

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-216
SELECT - MAX( 81 ) * - COUNT( * ) DIV + - COUNT( * ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-216
SELECT - MAX ( 81 ) * - COUNT ( * ) / + - COUNT ( * ) AS col1
----
-81

query I rowsort
SELECT ALL + + 9 * 30
----
270

query I rowsort
SELECT DISTINCT - CASE - 31 WHEN - ( + + 36 ) THEN 0 END AS col0
----
NULL

query I rowsort
SELECT 73 + - 33
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-220
SELECT ALL + + COUNT( * ) * - CASE - + 67 WHEN + 4 THEN NULL WHEN - - CAST( NULL AS SIGNED ) THEN + 42 + 36 + 54 + 41 * + COUNT( * ) + - COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-220
SELECT ALL + + COUNT ( * ) * - CASE - + 67 WHEN + 4 THEN NULL WHEN - - CAST ( NULL AS INTEGER ) THEN + 42 + 36 + 54 + 41 * + COUNT ( * ) + - COUNT ( * ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL + - NULLIF ( + 85, + + ( 74 ) ) * + 5 * + 77
----
-32725

onlyif mysql # aggregate syntax: 
query I rowsort label-222
SELECT + NULLIF ( - + COUNT( * ), + COUNT( * ) * - ( - COUNT( * ) ) * - COUNT( * ) * - 42 + - 36 - ( + 8 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-222
SELECT + NULLIF ( - + COUNT ( * ), + COUNT ( * ) * - ( - COUNT ( * ) ) * - COUNT ( * ) * - 42 + - 36 - ( + 8 ) ) AS col2
----
-1

query I rowsort
SELECT 74 * + 7 + 19 + + 29 AS col2
----
566

query I rowsort
SELECT DISTINCT - - 4 * - 1
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-225
SELECT - + COUNT( * ) * - 48 + - 55 * + 7 + - + COUNT( * ) - - ( - - CAST( - 62 AS SIGNED ) ) * + + ( + COUNT( * ) ) * - ( + + COUNT( * ) ) AS col0
----
-276

skipif mysql # not compatible
query I rowsort label-225
SELECT - + COUNT ( * ) * - 48 + - 55 * + 7 + - + COUNT ( * ) - - ( - - CAST ( - 62 AS INTEGER ) ) * + + ( + COUNT ( * ) ) * - ( + + COUNT ( * ) ) AS col0
----
-276

query I rowsort
SELECT - 54 * - + 40 * + 0 + - 94 - - 47
----
-47

query I rowsort
SELECT 42 + - - 26
----
68

query I rowsort
SELECT DISTINCT NULLIF ( + 32, - 60 * - 83 + + 39 ) AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-229
SELECT ALL - COUNT( * ) + - + 94 AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-229
SELECT ALL - COUNT ( * ) + - + 94 AS col2
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-230
SELECT + 21 + MAX( ALL 37 ), CASE - COUNT( * ) WHEN + 74 THEN - 20 / - 48 WHEN 60 THEN - 36 * 96 + - - 89 ELSE NULL END AS col1
----
58
NULL

skipif mysql # not compatible
query II rowsort label-230
SELECT + 21 + MAX ( ALL 37 ), CASE - COUNT ( * ) WHEN + 74 THEN - 20 / - 48 WHEN 60 THEN - 36 * 96 + - - 89 ELSE NULL END AS col1
----
58
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-231
SELECT ALL 55 col0, - 47 DIV + + 88 * + 50
----
55
0

skipif mysql # not compatible
query II rowsort label-231
SELECT ALL 55 col0, - 47 / + + 88 * + 50
----
55
0

query I rowsort
SELECT 40 + + 34
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-233
SELECT ALL 11, - 19 / 8 + + + CAST( NULL AS SIGNED ) + ( 55 ) * 75 AS col1
----
11
NULL

skipif mysql # not compatible
query II rowsort label-233
SELECT ALL 11, - 19 / 8 + + + CAST ( NULL AS INTEGER ) + ( 55 ) * 75 AS col1
----
11
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-234
SELECT ALL - COALESCE ( + + ( - + 99 ), 28, - COUNT( * ) ) + + - 17 - CASE + MAX( DISTINCT + 93 ) WHEN + - CAST( NULL AS SIGNED ) - - 66 / - MAX( DISTINCT - - 24 ) * + 57 * 58 + + 15 * CAST( ( - 47 ) AS SIGNED ) + - COUNT( * ) THEN ( + 1 ) + + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-234
SELECT ALL - COALESCE ( + + ( - + 99 ), 28, - COUNT ( * ) ) + + - 17 - CASE + MAX ( DISTINCT + 93 ) WHEN + - CAST ( NULL AS INTEGER ) - - 66 / - MAX ( DISTINCT - - 24 ) * + 57 * 58 + + 15 * CAST ( ( - 47 ) AS INTEGER ) + - COUNT ( * ) THEN ( + 1 ) + + COUNT ( * ) END AS col2
----
NULL

query II rowsort
SELECT 48 AS col2, 58
----
48
58

onlyif mysql # aggregate syntax: 
query I rowsort label-236
SELECT ALL + COUNT( DISTINCT - + NULLIF ( + 5, 95 ) ) + + 97
----
98

skipif mysql # not compatible
query I rowsort label-236
SELECT ALL + COUNT ( DISTINCT - + NULLIF ( + 5, 95 ) ) + + 97
----
98

query I rowsort
SELECT 30 + - 64
----
-34

query I rowsort
SELECT 75 + - 80 AS col2
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-239
SELECT ALL - 81 + + - ( + NULLIF ( - + 82, + CASE - 57 WHEN COUNT( - - 28 ) + 69 THEN + CASE - - COUNT( * ) WHEN - 5 THEN + + ( - 81 ) * - - 18 * + 60 / 38 * - - 32 END WHEN + 45 THEN NULL ELSE - NULLIF ( - 79, - CAST( NULL AS SIGNED ) * + - 14 ) END - - MAX( + + 26 ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-239
SELECT ALL - 81 + + - ( + NULLIF ( - + 82, + CASE - 57 WHEN COUNT ( - - 28 ) + 69 THEN + CASE - - COUNT ( * ) WHEN - 5 THEN + + ( - 81 ) * - - 18 * + 60 / 38 * - - 32 END WHEN + 45 THEN NULL ELSE - NULLIF ( - 79, - CAST ( NULL AS INTEGER ) * + - 14 ) END - - MAX ( + + 26 ) ) ) AS col0
----
1

query II rowsort
SELECT ALL 83 * + 32 * + 43 AS col1, - 74
----
114208
-74

query II rowsort
SELECT - 32 AS col0, 29 - - 69 AS col2
----
-32
98

query I rowsort
SELECT 65 + - 10 AS col2
----
55

query I rowsort
SELECT ALL - 82 + + - 45 * + 73 + 22 AS col0
----
-3345

query I rowsort
SELECT ALL + 27 * - 35
----
-945

onlyif mysql # aggregate syntax: 
query I rowsort label-245
SELECT CASE - + ( 85 ) WHEN 59 * - 32 THEN NULL WHEN - COUNT( * ) THEN + - 1 END + + + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-245
SELECT CASE - + ( 85 ) WHEN 59 * - 32 THEN NULL WHEN - COUNT ( * ) THEN + - 1 END + + + 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-246
SELECT DISTINCT 76 - + + 77 + COUNT( * ) + + + 9 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-246
SELECT DISTINCT 76 - + + 77 + COUNT ( * ) + + + 9 AS col0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-247
SELECT ALL 35 DIV - + MIN( DISTINCT - 11 )
----
3

skipif mysql # not compatible
query I rowsort label-247
SELECT ALL 35 / - + MIN ( DISTINCT - 11 )
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-248
SELECT ALL 83 - + - COUNT( * ) + + - CAST( NULL AS DECIMAL ) + - 26 + + - 58 * + 81 / + + 50 * 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-248
SELECT ALL 83 - + - COUNT ( * ) + + - CAST ( NULL AS REAL ) + - 26 + + - 58 * + 81 / + + 50 * 8 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + ( - - 16 ) * 6 * - 79 col1
----
-7584

onlyif mysql # DIV for integer division: 
query I rowsort label-250
SELECT 18 * + + COALESCE ( + - 63, - + 11 DIV 76, - 77 )
----
-1134

skipif mysql # not compatible
query I rowsort label-250
SELECT 18 * + + COALESCE ( + - 63, - + 11 / 76, - 77 )
----
-1134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-251
SELECT ALL - + 2 DIV 86 * - 44 - - 65 + 3 * + - CASE 71 WHEN + 95 * + 87 THEN NULL WHEN + + 13 DIV + + 3 * - + COUNT( * ) THEN + 21 ELSE 25 END AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-251
SELECT ALL - + 2 / 86 * - 44 - - 65 + 3 * + - CASE 71 WHEN + 95 * + 87 THEN NULL WHEN + + 13 / + + 3 * - + COUNT ( * ) THEN + 21 ELSE 25 END AS col2
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-252
SELECT DISTINCT - CAST( - + CASE - 67 WHEN + - 56 THEN - - 73 + + 78 WHEN 78 THEN 34 + + 75 END AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-252
SELECT DISTINCT - CAST ( - + CASE - 67 WHEN + - 56 THEN - - 73 + + 78 WHEN 78 THEN 34 + + 75 END AS INTEGER ) col2
----
NULL

query I rowsort
SELECT DISTINCT - 44 * + + 63 AS col2
----
-2772

query I rowsort
SELECT ALL 10 * - + 86 + 63
----
-797

query II rowsort
SELECT + 46 col2, 23 * - 62 AS col2
----
46
-1426

onlyif mysql # aggregate syntax: 
query II rowsort label-256
SELECT ALL - COUNT( * ) col0, 9 * 80
----
-1
720

skipif mysql # not compatible
query II rowsort label-256
SELECT ALL - COUNT ( * ) col0, 9 * 80
----
-1
720

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-257
SELECT ALL - 28, CAST( NULL AS SIGNED ) AS col2
----
-28
NULL

skipif mysql # not compatible
query II rowsort label-257
SELECT ALL - 28, CAST ( NULL AS INTEGER ) AS col2
----
-28
NULL

query I rowsort
SELECT ALL + 25 * 53
----
1325

onlyif mysql # aggregate syntax: 
query I rowsort label-259
SELECT + NULLIF ( 45, + COUNT( * ) * - 76 + + COUNT( * ) * + 3 + + 55 ) - - 34 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-259
SELECT + NULLIF ( 45, + COUNT ( * ) * - 76 + + COUNT ( * ) * + 3 + + 55 ) - - 34 AS col2
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-260
SELECT 45 * 94 DIV - 50 - - 87
----
3

skipif mysql # not compatible
query I rowsort label-260
SELECT 45 * 94 / - 50 - - 87
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-261
SELECT ALL - - COALESCE ( 56, + COUNT( * ) ) AS col1, ( 64 )
----
56
64

skipif mysql # not compatible
query II rowsort label-261
SELECT ALL - - COALESCE ( 56, + COUNT ( * ) ) AS col1, ( 64 )
----
56
64

onlyif mysql # aggregate syntax: 
query I rowsort label-262
SELECT ALL - - 1 + MAX( DISTINCT - 56 ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-262
SELECT ALL - - 1 + MAX ( DISTINCT - 56 ) AS col0
----
-55

query I rowsort
SELECT ALL + - 39 + 9 AS col0
----
-30

query II rowsort
SELECT ALL - + 79 AS col0, - 13 - - + 95 AS col0
----
-79
82

onlyif mysql # aggregate syntax: 
query I rowsort label-265
SELECT DISTINCT 84 + - - MIN( + 81 ) + + 82 + + 18 AS col0
----
265

skipif mysql # not compatible
query I rowsort label-265
SELECT DISTINCT 84 + - - MIN ( + 81 ) + + 82 + + 18 AS col0
----
265

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-266
SELECT - 43 * - 79 - - COALESCE ( - CAST( NULL AS SIGNED ), + CAST( - 90 AS SIGNED ) ) * - - 45 col1
----
-653

skipif mysql # not compatible
query I rowsort label-266
SELECT - 43 * - 79 - - COALESCE ( - CAST ( NULL AS INTEGER ), + CAST ( - 90 AS INTEGER ) ) * - - 45 col1
----
-653

query I rowsort
SELECT ALL 14 + - 28
----
-14

query I rowsort
SELECT 24 * - 4
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-269
SELECT 30 DIV - 71
----
0

skipif mysql # not compatible
query I rowsort label-269
SELECT 30 / - 71
----
0

query I rowsort
SELECT ( 81 ) + - 12 AS col1
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-271
SELECT 75 + COALESCE ( - 52, 19 ) col0, 94 + CAST( NULL AS SIGNED ) * + + ( - + COUNT( * ) )
----
23
NULL

skipif mysql # not compatible
query II rowsort label-271
SELECT 75 + COALESCE ( - 52, 19 ) col0, 94 + CAST ( NULL AS INTEGER ) * + + ( - + COUNT ( * ) )
----
23
NULL

query II rowsort
SELECT 65 * + - 49, 8 * - - 2 AS col1
----
-3185
16

onlyif mysql # aggregate syntax: 
query I rowsort label-273
SELECT ALL MAX( ( - - 17 ) ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-273
SELECT ALL MAX ( ( - - 17 ) ) AS col1
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-274
SELECT 55 + MAX( - 32 ) * + 40 - + + COALESCE ( - - 63, - 60 DIV 43 DIV - CASE - NULLIF ( - 17, - 31 ) WHEN + - 47 + + 26 THEN NULL WHEN 35 * - 12 - + 74 THEN + 27 * - COUNT( * ) WHEN + 30 THEN + 5 END + + + 66 + - CASE - ( 39 ) WHEN + 52 THEN 95 * + COUNT( * ) ELSE + + 48 END ) * - 66 AS col1, - 40 AS col2
----
2933
-40

skipif mysql # not compatible
query II rowsort label-274
SELECT 55 + MAX ( - 32 ) * + 40 - + + COALESCE ( - - 63, - 60 / 43 / - CASE - NULLIF ( - 17, - 31 ) WHEN + - 47 + + 26 THEN NULL WHEN 35 * - 12 - + 74 THEN + 27 * - COUNT ( * ) WHEN + 30 THEN + 5 END + + + 66 + - CASE - ( 39 ) WHEN + 52 THEN 95 * + COUNT ( * ) ELSE + + 48 END ) * - 66 AS col1, - 40 AS col2
----
2933
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-275
SELECT 64 + 95, ( COUNT( * ) ) * - 84 + - - CAST( NULL AS SIGNED ) AS col1
----
159
NULL

skipif mysql # not compatible
query II rowsort label-275
SELECT 64 + 95, ( COUNT ( * ) ) * - 84 + - - CAST ( NULL AS INTEGER ) AS col1
----
159
NULL

query I rowsort
SELECT COALESCE ( + - 29, 95 ) * - - 54 * 57 * 75 AS col1
----
-6694650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-277
SELECT 74 + 0 * + - 17 * + - CASE + MAX( ALL - 62 ) WHEN - 95 THEN 98 WHEN - + 51 THEN NULL ELSE CAST( + - ( + + 26 ) AS SIGNED ) + + + 54 END - ( + 38 )
----
36

skipif mysql # not compatible
query I rowsort label-277
SELECT 74 + 0 * + - 17 * + - CASE + MAX ( ALL - 62 ) WHEN - 95 THEN 98 WHEN - + 51 THEN NULL ELSE CAST ( + - ( + + 26 ) AS INTEGER ) + + + 54 END - ( + 38 )
----
36

query I rowsort
SELECT 80 * 45 AS col0
----
3600

query II rowsort
SELECT DISTINCT - 78 * - 52, 16 AS col2
----
4056
16

query I rowsort
SELECT DISTINCT - 37 * 9 col0
----
-333

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-281
SELECT ALL + CASE + CAST( - + COUNT( * ) AS DECIMAL ) WHEN + 70 * - COUNT( * ) - - 80 + + COUNT( * ) - + 68 THEN NULL WHEN 6 THEN + 73 - - 74 WHEN + 72 THEN + ( + 21 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-281
SELECT ALL + CASE + CAST ( - + COUNT ( * ) AS REAL ) WHEN + 70 * - COUNT ( * ) - - 80 + + COUNT ( * ) - + 68 THEN NULL WHEN 6 THEN + 73 - - 74 WHEN + 72 THEN + ( + 21 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-282
SELECT - - COUNT( * ) - - 77 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-282
SELECT - - COUNT ( * ) - - 77 AS col0
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-283
SELECT ALL + 65 DIV + - MAX( + 44 )
----
-1

skipif mysql # not compatible
query I rowsort label-283
SELECT ALL + 65 / + - MAX ( + 44 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-284
SELECT + - NULLIF ( + 61, 13 * COUNT( * ) ), NULLIF ( + ( - 37 ), + 67 + - 94 ) * + 85 * + 25 AS col2
----
-61
-78625

skipif mysql # not compatible
query II rowsort label-284
SELECT + - NULLIF ( + 61, 13 * COUNT ( * ) ), NULLIF ( + ( - 37 ), + 67 + - 94 ) * + 85 * + 25 AS col2
----
-61
-78625

onlyif mysql # DIV for integer division: 
query I rowsort label-285
SELECT - ( + 32 ) + 82 + + - 1 DIV - 72 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-285
SELECT - ( + 32 ) + 82 + + - 1 / - 72 AS col2
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-286
SELECT - 70 DIV 64 - 56 AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-286
SELECT - 70 / 64 - 56 AS col1
----
-57

query I rowsort
SELECT - - 58 * - 82 * - - 75
----
-356700

onlyif mysql # aggregate syntax: 
query I rowsort label-288
SELECT 99 * + - 19 + + COUNT( * ) + - - 12
----
-1868

skipif mysql # not compatible
query I rowsort label-288
SELECT 99 * + - 19 + + COUNT ( * ) + - - 12
----
-1868

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-289
SELECT + COUNT( * ) - - CAST( NULL AS SIGNED ) / - COALESCE ( 33, + + 26 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-289
SELECT + COUNT ( * ) - - CAST ( NULL AS INTEGER ) / - COALESCE ( 33, + + 26 ) AS col2
----
NULL

query I rowsort
SELECT + ( - + 72 ) * 65
----
-4680

onlyif mysql # aggregate syntax: 
query I rowsort label-291
SELECT ALL + 65 * + + 22 + + 82 + - - NULLIF ( + COUNT( * ), - ( + + 47 ) ) - + 62 * - 69
----
5791

skipif mysql # not compatible
query I rowsort label-291
SELECT ALL + 65 * + + 22 + + 82 + - - NULLIF ( + COUNT ( * ), - ( + + 47 ) ) - + 62 * - 69
----
5791

query I rowsort
SELECT + - 12 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-293
SELECT + - 86 * 91 - - COUNT( * ) + SUM( ALL 58 ) + + 34 * - - 85 * + + 8 + - COUNT( * ) AS col1, + 37
----
15352
37

skipif mysql # not compatible
query II rowsort label-293
SELECT + - 86 * 91 - - COUNT ( * ) + SUM ( ALL 58 ) + + 34 * - - 85 * + + 8 + - COUNT ( * ) AS col1, + 37
----
15352
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-294
SELECT ALL - + 37 * + COUNT( * ) * CAST( NULL AS SIGNED ) + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-294
SELECT ALL - + 37 * + COUNT ( * ) * CAST ( NULL AS INTEGER ) + 69
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-295
SELECT DISTINCT 73 * MIN( COALESCE ( - - 73, 56 ) ) col1
----
5329

skipif mysql # not compatible
query I rowsort label-295
SELECT DISTINCT 73 * MIN ( COALESCE ( - - 73, 56 ) ) col1
----
5329

onlyif mysql # aggregate syntax: 
query II rowsort label-296
SELECT - 48 * 8 * - + 36 + SUM( DISTINCT + + 27 ), + 51 + 8 + 1 AS col2
----
13851
60

skipif mysql # not compatible
query II rowsort label-296
SELECT - 48 * 8 * - + 36 + SUM ( DISTINCT + + 27 ), + 51 + 8 + 1 AS col2
----
13851
60

query I rowsort
SELECT + 2 * - ( + 8 ) * + - 80 AS col0
----
1280

onlyif mysql # aggregate syntax: 
query I rowsort label-298
SELECT SUM( - 93 )
----
-93

skipif mysql # not compatible
query I rowsort label-298
SELECT SUM ( - 93 )
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-299
SELECT ALL 54 * + SUM( - 76 ) - COUNT( * ) * 22 * - 80, + 23 * + ( + 78 ) * + + COUNT( * ) AS col2
----
-2344
1794

skipif mysql # not compatible
query II rowsort label-299
SELECT ALL 54 * + SUM ( - 76 ) - COUNT ( * ) * 22 * - 80, + 23 * + ( + 78 ) * + + COUNT ( * ) AS col2
----
-2344
1794

query I rowsort
SELECT + 83 + 91 AS col1
----
174

query I rowsort
SELECT - ( + 43 )
----
-43

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-303
SELECT ALL - 64 * + COUNT( * ) * - 0 col2, 17
----
0
17

skipif mysql # not compatible
query II rowsort label-303
SELECT ALL - 64 * + COUNT ( * ) * - 0 col2, 17
----
0
17

query I rowsort
SELECT - 36 + + 97 AS col1
----
61

query I rowsort
SELECT + 47 + - 98 AS col0
----
-51

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

onlyif mysql # aggregate syntax: 
query II rowsort label-307
SELECT - 29 + - 79 + 46 AS col1, + COUNT( * ) col0
----
-62
1

skipif mysql # not compatible
query II rowsort label-307
SELECT - 29 + - 79 + 46 AS col1, + COUNT ( * ) col0
----
-62
1

onlyif mysql # DIV for integer division: 
query I rowsort label-308
SELECT - 88 DIV 69
----
-1

skipif mysql # not compatible
query I rowsort label-308
SELECT - 88 / 69
----
-1

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

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

query I rowsort
SELECT DISTINCT COALESCE ( + 37, 28 ) col0
----
37

query I rowsort
SELECT DISTINCT 99 * 5 col1
----
495

onlyif mysql # aggregate syntax: 
query I rowsort label-312
SELECT ALL MAX( DISTINCT 95 ) col1
----
95

skipif mysql # not compatible
query I rowsort label-312
SELECT ALL MAX ( DISTINCT 95 ) col1
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-313
SELECT DISTINCT + - 2 DIV + + 26 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-313
SELECT DISTINCT + - 2 / + + 26 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT - 29 * 26 * - CASE + 27 WHEN 23 THEN + COUNT( DISTINCT + + 92 ) * + 47 + 45 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-314
SELECT - 29 * 26 * - CASE + 27 WHEN 23 THEN + COUNT ( DISTINCT + + 92 ) * + 47 + 45 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - - 98 + - 72 - 36
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-316
SELECT ALL + + 60 + - + MAX( ALL - 14 ) AS col2, - 11
----
74
-11

skipif mysql # not compatible
query II rowsort label-316
SELECT ALL + + 60 + - + MAX ( ALL - 14 ) AS col2, - 11
----
74
-11

query I rowsort
SELECT ( - + 47 ) AS col1
----
-47

query I rowsort
SELECT - 43 * + 32 + 7 + 36
----
-1333

query II rowsort
SELECT + NULLIF ( + 70, - - 76 ) col2, 43 * 44 AS col0
----
70
1892

onlyif mysql # aggregate syntax: 
query I rowsort label-320
SELECT ALL + - 79 / + - 68 * - 11 + + + COUNT( DISTINCT - 81 ) * + - 35 + + 33 + + + COUNT( * ) - - + 30 + - + 97 * CASE - 90 WHEN CASE + COUNT( * ) WHEN ( + - 64 ) + - COUNT( 77 ) THEN - + 19 - - 46 + 68 * - - ( + COALESCE ( - COUNT( * ), ( + + 77 ) + + 30 / + - 8 ) ) * + - 61 * COUNT( * ) * - - 69 END THEN - 42 + - 84 END
----
NULL

skipif mysql # not compatible
query I rowsort label-320
SELECT ALL + - 79 / + - 68 * - 11 + + + COUNT ( DISTINCT - 81 ) * + - 35 + + 33 + + + COUNT ( * ) - - + 30 + - + 97 * CASE - 90 WHEN CASE + COUNT ( * ) WHEN ( + - 64 ) + - COUNT ( 77 ) THEN - + 19 - - 46 + 68 * - - ( + COALESCE ( - COUNT ( * ), ( + + 77 ) + + 30 / + - 8 ) ) * + - 61 * COUNT ( * ) * - - 69 END THEN - 42 + - 84 END
----
NULL

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

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

query I rowsort
SELECT ALL - - 30 * + + 86 AS col2
----
2580

query I rowsort
SELECT ALL + ( - + 27 ) AS col0
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-324
SELECT DISTINCT - 68 / 98 + + 63 - - - 51 + CAST( COUNT( * ) AS DECIMAL ) * 77 * + - CAST( NULL AS SIGNED ) col1, + COALESCE ( 20, - 26 + - ( + - COALESCE ( 27, + ( - 92 ) ) ) ) col0
----
NULL
20

skipif mysql # not compatible
query II rowsort label-324
SELECT DISTINCT - 68 / 98 + + 63 - - - 51 + CAST ( COUNT ( * ) AS REAL ) * 77 * + - CAST ( NULL AS INTEGER ) col1, + COALESCE ( 20, - 26 + - ( + - COALESCE ( 27, + ( - 92 ) ) ) ) col0
----
NULL
20

query II rowsort
SELECT ALL + - 18 AS col1, 21
----
-18
21

query I rowsort
SELECT - 87 + - + 6 AS col0
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-327
SELECT DISTINCT + - 25 DIV NULLIF ( - 56, + 96 ) * - + ( + 47 ) + CAST( COALESCE ( - 50, - ( - CAST( 20 AS SIGNED ) ) * + + ( 64 ) * - SUM( - - ( 86 ) ) * + 93, + COALESCE ( + + 82, 15 + - 6 ) * + - 87 ) AS SIGNED )
----
-50

skipif mysql # not compatible
query I rowsort label-327
SELECT DISTINCT + - 25 / NULLIF ( - 56, + 96 ) * - + ( + 47 ) + CAST ( COALESCE ( - 50, - ( - CAST ( 20 AS INTEGER ) ) * + + ( 64 ) * - SUM ( - - ( 86 ) ) * + 93, + COALESCE ( + + 82, 15 + - 6 ) * + - 87 ) AS INTEGER )
----
-50

query I rowsort
SELECT + + NULLIF ( + 87, + 17 * 77 ) AS col0
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-329
SELECT - 45 - 62 + + 57 - - + MAX( + + 12 ) DIV - - NULLIF ( + COUNT( * ), - 50 + 0 * - + 96 DIV - CAST( - 72 AS SIGNED ) )
----
-38

skipif mysql # not compatible
query I rowsort label-329
SELECT - 45 - 62 + + 57 - - + MAX ( + + 12 ) / - - NULLIF ( + COUNT ( * ), - 50 + 0 * - + 96 / - CAST ( - 72 AS INTEGER ) )
----
-38

query I rowsort
SELECT - COALESCE ( + 42, - 70, 48 )
----
-42

query I rowsort
SELECT ALL + + CASE + 65 WHEN - - ( - - 29 ) THEN NULL ELSE + - 7 * 71 + + - 57 * + 73 END
----
-4658

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-332
SELECT - + 10 * + CASE - 55 WHEN - 44 THEN + 16 WHEN 75 THEN NULL END - + COUNT( * ) * CASE - - CAST( NULL AS SIGNED ) WHEN - 24 / + + 50 + - 62 + - + CAST( + + 52 AS SIGNED ) / + ( - CAST( COUNT( * ) AS SIGNED ) ) THEN + 68 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-332
SELECT - + 10 * + CASE - 55 WHEN - 44 THEN + 16 WHEN 75 THEN NULL END - + COUNT ( * ) * CASE - - CAST ( NULL AS INTEGER ) WHEN - 24 / + + 50 + - 62 + - + CAST ( + + 52 AS INTEGER ) / + ( - CAST ( COUNT ( * ) AS INTEGER ) ) THEN + 68 END AS col1
----
NULL

query I rowsort
SELECT + + 21 * + ( + 72 ) * - + 3
----
-4536

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-334
SELECT + MAX( ALL 5 ) DIV - + 7 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-334
SELECT + MAX ( ALL 5 ) / - + 7 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-335
SELECT ALL + ( + + 31 ) DIV - - 77 col0
----
0

skipif mysql # not compatible
query I rowsort label-335
SELECT ALL + ( + + 31 ) / - - 77 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-336
SELECT + 42 - COALESCE ( + 86, + + SUM( DISTINCT - - 95 ) * - 19 + - CAST( NULL AS SIGNED ), - CAST( - AVG ( DISTINCT - 78 ) AS SIGNED ) ) - + + 2 DIV + + NULLIF ( - 60, - 81 * - - 11 + - CASE - COUNT( * ) WHEN - COUNT( * ) - + + 37 THEN NULL WHEN 17 THEN - MIN( + NULLIF ( - 70, 51 DIV + - 46 ) ) WHEN - COUNT( * ) THEN NULL ELSE + 71 * - COUNT( * ) DIV 77 + + - 97 + - + 46 END + + 47 * - + 48 * + ( + 2 ) * - ( - ( - 7 ) ) ) * + - ( - 92 ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-336
SELECT + 42 - COALESCE ( + 86, + + SUM ( DISTINCT - - 95 ) * - 19 + - CAST ( NULL AS INTEGER ), - CAST ( - AVG ( DISTINCT - 78 ) AS INTEGER ) ) - + + 2 / + + NULLIF ( - 60, - 81 * - - 11 + - CASE - COUNT ( * ) WHEN - COUNT ( * ) - + + 37 THEN NULL WHEN 17 THEN - MIN ( + NULLIF ( - 70, 51 / + - 46 ) ) WHEN - COUNT ( * ) THEN NULL ELSE + 71 * - COUNT ( * ) / 77 + + - 97 + - + 46 END + + 47 * - + 48 * + ( + 2 ) * - ( - ( - 7 ) ) ) * + - ( - 92 ) AS col2
----
-44

query I rowsort
SELECT ALL 54 * - - 91 * 44 * 91 AS col0
----
19675656

onlyif mysql # aggregate syntax: 
query I rowsort label-338
SELECT CASE MIN( DISTINCT 37 ) WHEN - COUNT( * ) - - + ( 35 ) THEN NULL WHEN + + 95 + + 31 * 5 + 32 THEN NULL ELSE - 27 END
----
-27

skipif mysql # not compatible
query I rowsort label-338
SELECT CASE MIN ( DISTINCT 37 ) WHEN - COUNT ( * ) - - + ( 35 ) THEN NULL WHEN + + 95 + + 31 * 5 + 32 THEN NULL ELSE - 27 END
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-339
SELECT ALL 18 * - CAST( 45 AS SIGNED ) - + 13 AS col1
----
-823

skipif mysql # not compatible
query I rowsort label-339
SELECT ALL 18 * - CAST ( 45 AS INTEGER ) - + 13 AS col1
----
-823

query I rowsort
SELECT COALESCE ( + 66, + - 2 ) col2
----
66

query I rowsort
SELECT + ( + - 27 )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-342
SELECT + MIN( + 78 )
----
78

skipif mysql # not compatible
query I rowsort label-342
SELECT + MIN ( + 78 )
----
78

query I rowsort
SELECT - 6 + - 52
----
-58

query I rowsort
SELECT + 12 * 90
----
1080

query I rowsort
SELECT ALL 18 * + + ( + 78 )
----
1404

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-347
SELECT CASE - 24 WHEN - 20 + - 51 THEN + 3 WHEN 73 THEN 77 WHEN + MAX( DISTINCT + + 59 ) + - 73 THEN + ( + 74 ) ELSE + + 71 + + - 17 END
----
54

skipif mysql # not compatible
query I rowsort label-347
SELECT CASE - 24 WHEN - 20 + - 51 THEN + 3 WHEN 73 THEN 77 WHEN + MAX ( DISTINCT + + 59 ) + - 73 THEN + ( + 74 ) ELSE + + 71 + + - 17 END
----
54

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

onlyif mysql # aggregate syntax: 
query I rowsort label-349
SELECT COUNT( - 97 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-349
SELECT COUNT ( - 97 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-350
SELECT COUNT( * ) - - 8 AS col2, - 44 col1
----
9
-44

skipif mysql # not compatible
query II rowsort label-350
SELECT COUNT ( * ) - - 8 AS col2, - 44 col1
----
9
-44

query I rowsort
SELECT 84 * - + 60 AS col0
----
-5040

query II rowsort
SELECT - 43 AS col0, + 80
----
-43
80

onlyif mysql # aggregate syntax: 
query I rowsort label-353
SELECT DISTINCT 17 + - + 53 * - - 14 * 83 + + SUM( DISTINCT - 27 )
----
-61596

skipif mysql # not compatible
query I rowsort label-353
SELECT DISTINCT 17 + - + 53 * - - 14 * 83 + + SUM ( DISTINCT - 27 )
----
-61596

onlyif mysql # aggregate syntax: 
query I rowsort label-354
SELECT COUNT( * ) + - + 64
----
-63

skipif mysql # not compatible
query I rowsort label-354
SELECT COUNT ( * ) + - + 64
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-355
SELECT ALL + COUNT( * ) * - ( + ( + 42 ) ) DIV + NULLIF ( - - 22, + 74 + + + 90 + - + 21 * MIN( - + 69 ) * - 30 + + + 12 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-355
SELECT ALL + COUNT ( * ) * - ( + ( + 42 ) ) / + NULLIF ( - - 22, + 74 + + + 90 + - + 21 * MIN ( - + 69 ) * - 30 + + + 12 ) AS col0
----
-1

query I rowsort
SELECT NULLIF ( + - 98, + 55 + - 54 / - 66 / + - 42 ) * + 53 AS col1
----
-5194

query II rowsort
SELECT - 3 AS col0, + 77 AS col1
----
-3
77

query II rowsort
SELECT + 53 AS col0, 37 + 17 AS col2
----
53
54

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

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

query I rowsort
SELECT + 13 + - - 79 AS col2
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-361
SELECT 54, COUNT( * ) + - 53 * - 46 + - 28 AS col0
----
54
2411

skipif mysql # not compatible
query II rowsort label-361
SELECT 54, COUNT ( * ) + - 53 * - 46 + - 28 AS col0
----
54
2411

onlyif mysql # aggregate syntax: 
query I rowsort label-362
SELECT MAX( ALL + 69 ) + + 13 - - 53 + - 24 AS col2
----
111

skipif mysql # not compatible
query I rowsort label-362
SELECT MAX ( ALL + 69 ) + + 13 - - 53 + - 24 AS col2
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-363
SELECT ALL - + SUM( + - 78 ) + - 97 col1
----
-19

skipif mysql # not compatible
query I rowsort label-363
SELECT ALL - + SUM ( + - 78 ) + - 97 col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT ALL + 72 + 75 + 17 + - MAX( ALL + 72 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-364
SELECT ALL + 72 + 75 + 17 + - MAX ( ALL + 72 ) AS col2
----
92

query I rowsort
SELECT - 49 - + 83 * + 49 AS col1
----
-4116

onlyif mysql # aggregate syntax: 
query I rowsort label-366
SELECT DISTINCT + 44 + - ( 40 ) + 6 / + CASE COUNT( * ) WHEN + + 88 THEN + 25 + 94 ELSE NULL END - - - 32 + - 92 + - MAX( 90 ) * + 67 * + - 44 * - 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-366
SELECT DISTINCT + 44 + - ( 40 ) + 6 / + CASE COUNT ( * ) WHEN + + 88 THEN + 25 + 94 ELSE NULL END - - - 32 + - 92 + - MAX ( 90 ) * + 67 * + - 44 * - 35 AS col2
----
NULL

query I rowsort
SELECT + 15 * + ( 24 ) * 47 AS col2
----
16920

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-368
SELECT + 20 DIV + COUNT( * ) + - - 2 + - 58 * ( COUNT( * ) ) * - 76 * - 35 * + 13 - + 60 * - 74 * 99
----
-1566058

skipif mysql # not compatible
query I rowsort label-368
SELECT + 20 / + COUNT ( * ) + - - 2 + - 58 * ( COUNT ( * ) ) * - 76 * - 35 * + 13 - + 60 * - 74 * 99
----
-1566058

query I rowsort
SELECT + 99 * - 69 AS col2
----
-6831

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-370
SELECT ALL + CASE + 21 WHEN + - COUNT( * ) THEN + 18 + + 39 DIV + - 43 * 24 WHEN - 51 THEN NULL ELSE + + COUNT( * ) * - 70 END - 76 - + - 4 - MIN( ALL + 77 ) * - 79 * - 83 + - 83
----
-505114

skipif mysql # not compatible
query I rowsort label-370
SELECT ALL + CASE + 21 WHEN + - COUNT ( * ) THEN + 18 + + 39 / + - 43 * 24 WHEN - 51 THEN NULL ELSE + + COUNT ( * ) * - 70 END - 76 - + - 4 - MIN ( ALL + 77 ) * - 79 * - 83 + - 83
----
-505114

query II rowsort
SELECT DISTINCT + 81 * + + 46 AS col1, - 87
----
3726
-87

query II rowsort
SELECT 68 + 86 AS col0, - 47 * 71 * 74 AS col1
----
154
-246938

query I rowsort
SELECT ALL - ( - 55 ) AS col2
----
55

query II rowsort
SELECT 75 * - - 88 AS col0, - 88 col0
----
6600
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-375
SELECT DISTINCT - COALESCE ( + + ( - + COUNT( * ) ), + NULLIF ( + - 86, - - 47 ) + + 8 + + 4 + 6 + + 28 + 17 + - + MIN( ALL + - 62 ) * + COALESCE ( 62, + CAST( NULL AS SIGNED ) + + - ( + 48 ) ), 25 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-375
SELECT DISTINCT - COALESCE ( + + ( - + COUNT ( * ) ), + NULLIF ( + - 86, - - 47 ) + + 8 + + 4 + 6 + + 28 + 17 + - + MIN ( ALL + - 62 ) * + COALESCE ( 62, + CAST ( NULL AS INTEGER ) + + - ( + 48 ) ), 25 ) AS col1
----
1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-377
SELECT 37 * - 40 * - + 50 + + NULLIF ( - 30, + CAST( CASE 21 WHEN + COUNT( - - 33 ) THEN + 65 ELSE NULL END AS SIGNED ) / - 9 * - + COUNT( * ) ) * 22 AS col1
----
73340

skipif mysql # not compatible
query I rowsort label-377
SELECT 37 * - 40 * - + 50 + + NULLIF ( - 30, + CAST ( CASE 21 WHEN + COUNT ( - - 33 ) THEN + 65 ELSE NULL END AS INTEGER ) / - 9 * - + COUNT ( * ) ) * 22 AS col1
----
73340

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-378
SELECT COALESCE ( + - 83, + 91 DIV MAX( ALL + 2 ) ) + - - 87 + + 88 * + + 38 * 22 AS col1
----
73572

skipif mysql # not compatible
query I rowsort label-378
SELECT COALESCE ( + - 83, + 91 / MAX ( ALL + 2 ) ) + - - 87 + + 88 * + + 38 * 22 AS col1
----
73572

onlyif mysql # aggregate syntax: 
query II rowsort label-379
SELECT ALL - ( - CASE - + 5 WHEN COALESCE ( 70, 96 ) THEN + MAX( DISTINCT - 22 ) END ), + 65 AS col0
----
NULL
65

skipif mysql # not compatible
query II rowsort label-379
SELECT ALL - ( - CASE - + 5 WHEN COALESCE ( 70, 96 ) THEN + MAX ( DISTINCT - 22 ) END ), + 65 AS col0
----
NULL
65

onlyif mysql # aggregate syntax: 
query II rowsort label-380
SELECT DISTINCT NULLIF ( - 87, + CASE - COUNT( DISTINCT + 30 ) WHEN - 89 * 5 THEN NULL ELSE - + COUNT( * ) END / - 74 + - 35 + - ( 44 ) * - 80 + 97 - - 38 * 97 + - - 51 * + 39 + - 21 ) * + 91 AS col0, ( + + 31 ) * - - NULLIF ( - 12, + 81 ) + + COUNT( * ) AS col2
----
-7917
-371

skipif mysql # not compatible
query II rowsort label-380
SELECT DISTINCT NULLIF ( - 87, + CASE - COUNT ( DISTINCT + 30 ) WHEN - 89 * 5 THEN NULL ELSE - + COUNT ( * ) END / - 74 + - 35 + - ( 44 ) * - 80 + 97 - - 38 * 97 + - - 51 * + 39 + - 21 ) * + 91 AS col0, ( + + 31 ) * - - NULLIF ( - 12, + 81 ) + + COUNT ( * ) AS col2
----
-7917
-371

query I rowsort
SELECT ALL 64 + - + 32 col0
----
32

query I rowsort
SELECT 0 + + + 16 AS col0
----
16

query I rowsort
SELECT DISTINCT - 92 + - 12 * + ( - 34 )
----
316

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

skipif mysql # not compatible
query I rowsort label-384
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) + + 2 AS col0
----
3

query I rowsort
SELECT - 53 + - - 81 + + 91
----
119

query I rowsort
SELECT - - 8 col1
----
8

query I rowsort
SELECT - 43 col1
----
-43

query I rowsort
SELECT 39 + 19 + - + 49 * + 90
----
-4352

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

query II rowsort
SELECT - 80 + + 6 * 40 AS col0, + 6
----
160
6

onlyif mysql # aggregate syntax: 
query I rowsort label-391
SELECT ALL 50 + - COUNT( * ) * 16 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-391
SELECT ALL 50 + - COUNT ( * ) * 16 AS col1
----
34

query I rowsort
SELECT ALL 77 * + 52 - - 75 * - 79 * - 75
----
448379

query I rowsort
SELECT + 47 + 37
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-394
SELECT DISTINCT 34 DIV - NULLIF ( 93, - - 66 * + 92 + - + 31 )
----
0

skipif mysql # not compatible
query I rowsort label-394
SELECT DISTINCT 34 / - NULLIF ( 93, - - 66 * + 92 + - + 31 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-395
SELECT + 4 * - 26 AS col1, + MIN( + ( + 37 ) )
----
-104
37

skipif mysql # not compatible
query II rowsort label-395
SELECT + 4 * - 26 AS col1, + MIN ( + ( + 37 ) )
----
-104
37

onlyif mysql # DIV for integer division: 
query I rowsort label-396
SELECT + 13 DIV + 81 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-396
SELECT + 13 / + 81 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-397
SELECT - + ( - ( NULLIF ( 64, - + COUNT( * ) * + - 67 * + 65 + - 85 ) ) ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-397
SELECT - + ( - ( NULLIF ( 64, - + COUNT ( * ) * + - 67 * + 65 + - 85 ) ) ) AS col1
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-398
SELECT + - 37 DIV - - 69 + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-398
SELECT + - 37 / - - 69 + COUNT ( * ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-399
SELECT ALL CAST( - - CASE + 95 WHEN + ( + COUNT( * ) ) / + ( - 57 ) THEN + - 12 ELSE NULL END AS SIGNED ) * - 48 - + 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-399
SELECT ALL CAST ( - - CASE + 95 WHEN + ( + COUNT ( * ) ) / + ( - 57 ) THEN + - 12 ELSE NULL END AS INTEGER ) * - 48 - + 98 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-400
SELECT ALL + 88 * + 34 col0, 11 DIV - 63
----
2992
0

skipif mysql # not compatible
query II rowsort label-400
SELECT ALL + 88 * + 34 col0, 11 / - 63
----
2992
0

query II rowsort
SELECT - 63 * 85 * - 45, + 63 * + 40 AS col2
----
240975
2520

query I rowsort
SELECT ALL - 41 / CASE + + 31 WHEN - 94 THEN - 9 + COALESCE ( - 31, - - AVG ( DISTINCT + ( + 41 ) ) * + + 85, 62 + + + CASE + 0 WHEN + 82 * + ( - 69 ) THEN - + 11 END + + 41 ) + + 73 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-403
SELECT + COALESCE ( - + CAST( - 64 AS SIGNED ), - 52, 37 * + + 88 ), - CAST( NULL AS SIGNED ) + - + 69 AS col1
----
64
NULL

skipif mysql # not compatible
query II rowsort label-403
SELECT + COALESCE ( - + CAST ( - 64 AS INTEGER ), - 52, 37 * + + 88 ), - CAST ( NULL AS INTEGER ) + - + 69 AS col1
----
64
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-404
SELECT DISTINCT - COUNT( * ) DIV - 8 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-404
SELECT DISTINCT - COUNT ( * ) / - 8 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-405
SELECT SUM( 93 ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-405
SELECT SUM ( 93 ) AS col0
----
93

query I rowsort
SELECT 84 * + 35 AS col1
----
2940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-407
SELECT + MIN( DISTINCT - + 64 ) * CAST( - - 60 AS SIGNED ) + - 46 AS col1
----
-3886

skipif mysql # not compatible
query I rowsort label-407
SELECT + MIN ( DISTINCT - + 64 ) * CAST ( - - 60 AS INTEGER ) + - 46 AS col1
----
-3886

query I rowsort
SELECT + NULLIF ( 5, 44 ) * + ( - 71 ) col1
----
-355

query I rowsort
SELECT - 6 + 23 - + 88 * + 43 * + 9 AS col1
----
-34039

onlyif mysql # aggregate syntax: 
query I rowsort label-410
SELECT DISTINCT + 51 * - - 10 * + + MAX( DISTINCT - 68 )
----
-34680

skipif mysql # not compatible
query I rowsort label-410
SELECT DISTINCT + 51 * - - 10 * + + MAX ( DISTINCT - 68 )
----
-34680

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-412
SELECT COUNT( * ) col0, 74
----
1
74

skipif mysql # not compatible
query II rowsort label-412
SELECT COUNT ( * ) col0, 74
----
1
74

query I rowsort
SELECT - 71 * + - 24
----
1704

query I rowsort
SELECT ALL + 34 + + - 25
----
9

query I rowsort
SELECT - CASE 13 WHEN + 14 THEN NULL WHEN 57 / 6 + + + 76 THEN - 85 + + 44 END + - 39
----
NULL

query I rowsort
SELECT DISTINCT + 80 + - 62 col1
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-417
SELECT - + 10 AS col2, 51 + + MIN( DISTINCT ( - 11 ) )
----
-10
40

skipif mysql # not compatible
query II rowsort label-417
SELECT - + 10 AS col2, 51 + + MIN ( DISTINCT ( - 11 ) )
----
-10
40

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

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

query II rowsort
SELECT 89, 55 * 34 AS col1
----
89
1870

onlyif mysql # aggregate syntax: 
query I rowsort label-420
SELECT - SUM( - 96 ) + 76 * + NULLIF ( + MIN( ALL - COALESCE ( 23, - 59 ) ), 75 ) AS col1
----
-1652

skipif mysql # not compatible
query I rowsort label-420
SELECT - SUM ( - 96 ) + 76 * + NULLIF ( + MIN ( ALL - COALESCE ( 23, - 59 ) ), 75 ) AS col1
----
-1652

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-421
SELECT - + CAST( NULL AS SIGNED ) * - + CAST( + - 49 AS DECIMAL ) * + + 82 + ( - 38 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-421
SELECT - + CAST ( NULL AS INTEGER ) * - + CAST ( + - 49 AS REAL ) * + + 82 + ( - 38 ) AS col0
----
NULL

query I rowsort
SELECT ALL - + 48 * - 5 * + 54
----
12960

query I rowsort
SELECT - 97 + 65 * 69 + + 14 AS col1
----
4402

query II rowsort
SELECT + 67 - - + 58 + + 24 col0, + 37 AS col1
----
149
37

query II rowsort
SELECT DISTINCT + NULLIF ( - 26, - 45 * 33 + + 59 + 58 + - + NULLIF ( + - 56, - 92 / + + ( + 1 ) + + 58 + 21 + 55 ) * - + 57 * 42 ), - 59 AS col2
----
-26
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-426
SELECT - 24 + COUNT( * ) col2
----
-23

skipif mysql # not compatible
query I rowsort label-426
SELECT - 24 + COUNT ( * ) col2
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-427
SELECT DISTINCT 45, SUM( + 40 ) AS col2
----
45
40

skipif mysql # not compatible
query II rowsort label-427
SELECT DISTINCT 45, SUM ( + 40 ) AS col2
----
45
40

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

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

query I rowsort
SELECT ALL + + 69 * - 41
----
-2829

onlyif mysql # aggregate syntax: 
query I rowsort label-430
SELECT + + COUNT( * ) + - 55 AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-430
SELECT + + COUNT ( * ) + - 55 AS col1
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-431
SELECT + 19 + + 4 - + - 2 + 84 + + 69 DIV - + 48
----
108

skipif mysql # not compatible
query I rowsort label-431
SELECT + 19 + + 4 - + - 2 + 84 + + 69 / - + 48
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-432
SELECT + 19 DIV - + NULLIF ( - 50, - COUNT( DISTINCT - - 34 ) * - CASE + 37 WHEN - 49 + - 74 THEN NULL WHEN CAST( NULL AS SIGNED ) * - 43 + - 59 + - ( - 38 ) * 1 + - COUNT( * ) THEN - 64 DIV 77 + + - 18 ELSE NULL END + 5 ) + - MIN( DISTINCT ( + CASE - 3 WHEN + ( + 98 ) THEN + 86 WHEN - 96 THEN NULL END ) ) * + 29 AS col1, - MIN( DISTINCT ( + 8 ) ) * + COUNT( * ) DIV - 32 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-432
SELECT + 19 / - + NULLIF ( - 50, - COUNT ( DISTINCT - - 34 ) * - CASE + 37 WHEN - 49 + - 74 THEN NULL WHEN CAST ( NULL AS INTEGER ) * - 43 + - 59 + - ( - 38 ) * 1 + - COUNT ( * ) THEN - 64 / 77 + + - 18 ELSE NULL END + 5 ) + - MIN ( DISTINCT ( + CASE - 3 WHEN + ( + 98 ) THEN + 86 WHEN - 96 THEN NULL END ) ) * + 29 AS col1, - MIN ( DISTINCT ( + 8 ) ) * + COUNT ( * ) / - 32 AS col0
----
NULL
0

query I rowsort
SELECT + ( + + 93 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-434
SELECT + CASE - - CASE WHEN NOT + COUNT( * ) IS NULL THEN + 28 END WHEN 93 THEN + + AVG ( + 67 ) - + 76 + - 77 - - 8 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-434
SELECT + CASE - - CASE WHEN NOT + COUNT ( * ) IS NULL THEN + 28 END WHEN 93 THEN + + AVG ( + 67 ) - + 76 + - 77 - - 8 END AS col1
----
NULL

query I rowsort
SELECT + 84 + ( - 31 ) AS col2
----
53

query I rowsort
SELECT ALL 95 * 49
----
4655

query I rowsort
SELECT DISTINCT 18 * ( + 72 ) + 86 + - - 92 AS col2
----
1474

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-440
SELECT NULLIF ( - 70, + MAX( - 20 ) )
----
-70

skipif mysql # not compatible
query I rowsort label-440
SELECT NULLIF ( - 70, + MAX ( - 20 ) )
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-441
SELECT ALL 29 / + 27 * CASE ( + COUNT( * ) ) WHEN 53 - 66 * 6 + - 19 + CAST( 9 AS SIGNED ) * - + 7 * - - 39 THEN - - 61 + - 74 WHEN + 41 + + 46 THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-441
SELECT ALL 29 / + 27 * CASE ( + COUNT ( * ) ) WHEN 53 - 66 * 6 + - 19 + CAST ( 9 AS INTEGER ) * - + 7 * - - 39 THEN - - 61 + - 74 WHEN + 41 + + 46 THEN NULL END col1
----
NULL

query I rowsort
SELECT + 55 * - - 66 + - + 81 + + - 39
----
3510

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-444
SELECT DISTINCT - 77 * + CAST( - - 6 AS SIGNED ) + - ( ( - 94 ) ) col1
----
-368

skipif mysql # not compatible
query I rowsort label-444
SELECT DISTINCT - 77 * + CAST ( - - 6 AS INTEGER ) + - ( ( - 94 ) ) col1
----
-368

query I rowsort
SELECT ALL - - 88 * + 54 + + 74
----
4826

query I rowsort
SELECT - COALESCE ( + + 68, - 75 * + ( 63 ) ) + 45 AS col1
----
-23

query I rowsort
SELECT ALL - + 21 * 42
----
-882

onlyif mysql # aggregate syntax: 
query I rowsort label-448
SELECT DISTINCT + CASE WHEN NOT NULL NOT IN ( 44, 2 * 93 + 75 / + COUNT( * ), - 37 * MAX( ALL - 43 ) + - 40 * - 85 / - + 68 * 9, 69 + - 67 - - 37, + 60 * 3, - 59 * AVG ( DISTINCT + + 12 ) * - AVG ( DISTINCT + 39 ) * + 81 + - 3 ) THEN NULL ELSE COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-448
SELECT DISTINCT + CASE WHEN NOT NULL NOT IN ( 44, 2 * 93 + 75 / + COUNT ( * ), - 37 * MAX ( ALL - 43 ) + - 40 * - 85 / - + 68 * 9, 69 + - 67 - - 37, + 60 * 3, - 59 * AVG ( DISTINCT + + 12 ) * - AVG ( DISTINCT + 39 ) * + 81 + - 3 ) THEN NULL ELSE COUNT ( * ) END
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-449
SELECT + 68 DIV + + 58 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-449
SELECT + 68 / + + 58 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-450
SELECT - MIN( - 71 ) * - 13
----
-923

skipif mysql # not compatible
query I rowsort label-450
SELECT - MIN ( - 71 ) * - 13
----
-923

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-451
SELECT ALL - 32 - + COUNT( * ) + COUNT( * ) DIV - + CASE - 49 WHEN COUNT( * ) THEN - 66 - - 25 + + 8 * COUNT( * ) * + 26 WHEN + + 46 THEN NULL ELSE + - 62 END * - SUM( ALL 67 ) + + 20 + 36 DIV + COUNT( * ) + - - COUNT( * ) * - 73 * - - 32 AS col1
----
-2313

skipif mysql # not compatible
query I rowsort label-451
SELECT ALL - 32 - + COUNT ( * ) + COUNT ( * ) / - + CASE - 49 WHEN COUNT ( * ) THEN - 66 - - 25 + + 8 * COUNT ( * ) * + 26 WHEN + + 46 THEN NULL ELSE + - 62 END * - SUM ( ALL 67 ) + + 20 + 36 / + COUNT ( * ) + - - COUNT ( * ) * - 73 * - - 32 AS col1
----
-2313

query I rowsort
SELECT CASE 12 WHEN 96 THEN + - 92 * + 94 * 7 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-453
SELECT ALL - COALESCE ( ( + - 33 ), + COUNT( * ), + 53 + 71 ) col1
----
33

skipif mysql # not compatible
query I rowsort label-453
SELECT ALL - COALESCE ( ( + - 33 ), + COUNT ( * ), + 53 + 71 ) col1
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-454
SELECT - - 94 * + CAST( NULL AS SIGNED ) + + - ( + + SUM( DISTINCT - 16 ) ) + - 52 * 60 / + + NULLIF ( - 15, 5 ) AS col0, - CASE 51 WHEN + 12 / + COUNT( * ) * CAST( - - COUNT( * ) AS SIGNED ) * 13 THEN NULL WHEN 63 * - 94 THEN 55 ELSE NULL END / - 84 + - + CASE + 31 WHEN 49 + 40 * 92 THEN - 58 / + 26 WHEN + 86 THEN NULL END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-454
SELECT - - 94 * + CAST ( NULL AS INTEGER ) + + - ( + + SUM ( DISTINCT - 16 ) ) + - 52 * 60 / + + NULLIF ( - 15, 5 ) AS col0, - CASE 51 WHEN + 12 / + COUNT ( * ) * CAST ( - - COUNT ( * ) AS INTEGER ) * 13 THEN NULL WHEN 63 * - 94 THEN 55 ELSE NULL END / - 84 + - + CASE + 31 WHEN 49 + 40 * 92 THEN - 58 / + 26 WHEN + 86 THEN NULL END
----
NULL
NULL

query I rowsort
SELECT ALL - 83 * 27
----
-2241

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-456
SELECT ALL - + 4 DIV - 97 * - ( - 36 ) * + COUNT( * ) + - 57 - - 93 - - 79 + + 9 * - COUNT( DISTINCT CASE - + ( + - 69 ) WHEN 40 * 20 * 58 THEN NULL ELSE - CAST( 3 AS SIGNED ) * 43 - + CAST( NULL AS SIGNED ) + ( + 11 ) * + + 69 END ) col2
----
115

skipif mysql # not compatible
query I rowsort label-456
SELECT ALL - + 4 / - 97 * - ( - 36 ) * + COUNT ( * ) + - 57 - - 93 - - 79 + + 9 * - COUNT ( DISTINCT CASE - + ( + - 69 ) WHEN 40 * 20 * 58 THEN NULL ELSE - CAST ( 3 AS INTEGER ) * 43 - + CAST ( NULL AS INTEGER ) + ( + 11 ) * + + 69 END ) col2
----
115

query I rowsort
SELECT ALL 84 * - + 10 - + - ( + 77 ) + - 1 + - - 72 AS col2
----
-692

onlyif mysql # aggregate syntax: 
query I rowsort label-458
SELECT - 58 * + 11 + + NULLIF ( 0, + + 74 ) + 99 + 6 * ( - + 41 ) + ( + + MIN( 24 ) ) col1
----
-761

skipif mysql # not compatible
query I rowsort label-458
SELECT - 58 * + 11 + + NULLIF ( 0, + + 74 ) + 99 + 6 * ( - + 41 ) + ( + + MIN ( 24 ) ) col1
----
-761

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

skipif mysql # not compatible
query I rowsort label-459
SELECT - 98 - + + 80 + - COUNT ( * ) AS col0
----
-179

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-461
SELECT + 96 * - 62 * - + MIN( DISTINCT + - 35 )
----
-208320

skipif mysql # not compatible
query I rowsort label-461
SELECT + 96 * - 62 * - + MIN ( DISTINCT + - 35 )
----
-208320

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT DISTINCT + 23 * COUNT( * ) * 85 AS col2
----
1955

skipif mysql # not compatible
query I rowsort label-462
SELECT DISTINCT + 23 * COUNT ( * ) * 85 AS col2
----
1955

query II rowsort
SELECT 66 AS col1, 31 AS col0
----
66
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-464
SELECT 77 * - + CASE + 73 WHEN + 78 THEN NULL WHEN 69 - 67 * - 76 + 61 THEN + - 86 WHEN + CAST( NULL AS SIGNED ) * - SUM( + 70 ) * - 59 * + 70 - 97 + - 34 * + - COUNT( * ) + 39 * - 38 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-464
SELECT 77 * - + CASE + 73 WHEN + 78 THEN NULL WHEN 69 - 67 * - 76 + 61 THEN + - 86 WHEN + CAST ( NULL AS INTEGER ) * - SUM ( + 70 ) * - 59 * + 70 - 97 + - 34 * + - COUNT ( * ) + 39 * - 38 THEN NULL ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT DISTINCT 89 + + + 85 + 64 * 77 + + 56, 37 AS col0
----
5158
37

query I rowsort
SELECT ALL 42 * 42
----
1764

query I rowsort
SELECT DISTINCT 53 + + 77
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-468
SELECT COUNT( * ) * MAX( DISTINCT - + 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-468
SELECT COUNT ( * ) * MAX ( DISTINCT - + 27 )
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-469
SELECT - 51 * 22 DIV COUNT( DISTINCT + 37 ) * 55 - + + COUNT( * ) + 45 + + 83 + 63
----
-61520

skipif mysql # not compatible
query I rowsort label-469
SELECT - 51 * 22 / COUNT ( DISTINCT + 37 ) * 55 - + + COUNT ( * ) + 45 + + 83 + 63
----
-61520

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-471
SELECT ALL - 16 - + CAST( NULL AS SIGNED ) + + 92 * - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-471
SELECT ALL - 16 - + CAST ( NULL AS INTEGER ) + + 92 * - 6
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-472
SELECT COUNT( * ) * - - SUM( - 80 ) DIV - 81 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-472
SELECT COUNT ( * ) * - - SUM ( - 80 ) / - 81 AS col2
----
0

query I rowsort
SELECT ALL 46 * 83 AS col2
----
3818

onlyif mysql # aggregate syntax: 
query I rowsort label-474
SELECT - 6 * 50 - + 0 * COUNT( * )
----
-300

skipif mysql # not compatible
query I rowsort label-474
SELECT - 6 * 50 - + 0 * COUNT ( * )
----
-300

onlyif mysql # DIV for integer division: 
query I rowsort label-475
SELECT ALL + 44 DIV 43
----
1

skipif mysql # not compatible
query I rowsort label-475
SELECT ALL + 44 / 43
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-476
SELECT DISTINCT ( 68 ) DIV 99
----
0

skipif mysql # not compatible
query I rowsort label-476
SELECT DISTINCT ( 68 ) / 99
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-477
SELECT 63 DIV + 8
----
7

skipif mysql # not compatible
query I rowsort label-477
SELECT 63 / + 8
----
7

query I rowsort
SELECT 43 * - 42 col0
----
-1806

onlyif mysql # aggregate syntax: 
query I rowsort label-479
SELECT 49 - COUNT( * ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-479
SELECT 49 - COUNT ( * ) AS col0
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-480
SELECT CAST( 53 AS SIGNED ) - CAST( 75 AS SIGNED )
----
-22

skipif mysql # not compatible
query I rowsort label-480
SELECT CAST ( 53 AS INTEGER ) - CAST ( 75 AS INTEGER )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT ALL COUNT( * ) * - 90
----
-90

skipif mysql # not compatible
query I rowsort label-481
SELECT ALL COUNT ( * ) * - 90
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-482
SELECT DISTINCT 67 + 17 * + COUNT( * ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-482
SELECT DISTINCT 67 + 17 * + COUNT ( * ) AS col0
----
84

query I rowsort
SELECT ALL 26 + 51 AS col2
----
77

query I rowsort
SELECT 88 * + 57 AS col0
----
5016

query I rowsort
SELECT AVG ( - 59 ) + + 80 * - CASE 44 * - 21 + 92 * 26 WHEN 82 THEN 94 - 19 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-486
SELECT 94 - + ( COUNT( COALESCE ( 42, + 20 ) ) + + ( 82 ) ) col1
----
11

skipif mysql # not compatible
query I rowsort label-486
SELECT 94 - + ( COUNT ( COALESCE ( 42, + 20 ) ) + + ( 82 ) ) col1
----
11

query I rowsort
SELECT 68 + - 9 * 19
----
-103

query I rowsort
SELECT 77 + 18 * 30 AS col0
----
617

onlyif mysql # aggregate syntax: 
query I rowsort label-489
SELECT ALL 66 + - 6 * CASE + 46 WHEN 54 THEN - 94 WHEN + 62 THEN NULL WHEN - COUNT( * ) + 57 THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-489
SELECT ALL 66 + - 6 * CASE + 46 WHEN 54 THEN - 94 WHEN + 62 THEN NULL WHEN - COUNT ( * ) + 57 THEN NULL END col2
----
NULL

query I rowsort
SELECT DISTINCT 25 + + 40 * 61 AS col2
----
2465

query I rowsort
SELECT ALL - 46 + + 80 col0
----
34

query I rowsort
SELECT 93 + 45
----
138

onlyif mysql # DIV for integer division: 
query I rowsort label-493
SELECT ALL + 19 DIV ( 18 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-493
SELECT ALL + 19 / ( 18 ) AS col0
----
1

query I rowsort
SELECT 3 + 59 AS col2
----
62

query I rowsort
SELECT ALL COALESCE ( 95, + 41 - 13 ) * + 79
----
7505

query I rowsort
SELECT DISTINCT + 1 * + 33 AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-497
SELECT ALL - 47 + - COUNT( * ) * 25
----
-72

skipif mysql # not compatible
query I rowsort label-497
SELECT ALL - 47 + - COUNT ( * ) * 25
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-498
SELECT - 47 DIV NULLIF ( 66 * - 11, - 18 * 43 ) + 16 * COUNT( * ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-498
SELECT - 47 / NULLIF ( 66 * - 11, - 18 * 43 ) + 16 * COUNT ( * ) AS col0
----
16

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

skipif mysql # not compatible
query I rowsort label-499
SELECT 93 / - 39
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-500
SELECT COUNT( * ) * 44 col0
----
44

skipif mysql # not compatible
query I rowsort label-500
SELECT COUNT ( * ) * 44 col0
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-501
SELECT COUNT( * ) DIV + 14 + + 46 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-501
SELECT COUNT ( * ) / + 14 + + 46 AS col2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-502
SELECT DISTINCT - CAST( + 80 AS SIGNED ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-502
SELECT DISTINCT - CAST ( + 80 AS INTEGER ) AS col2
----
-80

query I rowsort
SELECT DISTINCT - 30 * + 81 col2
----
-2430

query I rowsort
SELECT ALL - ( 17 )
----
-17

query I rowsort
SELECT 28 * 17
----
476

onlyif mysql # aggregate syntax: 
query I rowsort label-506
SELECT ALL - MIN( 84 ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-506
SELECT ALL - MIN ( 84 ) AS col2
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-507
SELECT DISTINCT - CAST( ( + COUNT( * ) ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-507
SELECT DISTINCT - CAST ( ( + COUNT ( * ) ) AS INTEGER ) AS col2
----
-1

query I rowsort
SELECT ALL - NULLIF ( 71, 18 + - 48 ) AS col2
----
-71

query I rowsort
SELECT 87 * CASE + 94 + + 32 WHEN + AVG ( ALL + 54 ) + - 87 / - 75 THEN - 43 + + 1 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-510
SELECT DISTINCT 89 * - CASE + 27 / - 7 WHEN SUM( ALL + 38 ) * + 37 + + 69 THEN NULL WHEN + 61 + CAST( NULL AS SIGNED ) THEN NULL ELSE COALESCE ( 15, 26 + + COUNT( - 29 + 97 ) * 62 ) + - 77 * 1 END
----
5518

skipif mysql # not compatible
query I rowsort label-510
SELECT DISTINCT 89 * - CASE + 27 / - 7 WHEN SUM ( ALL + 38 ) * + 37 + + 69 THEN NULL WHEN + 61 + CAST ( NULL AS INTEGER ) THEN NULL ELSE COALESCE ( 15, 26 + + COUNT ( - 29 + 97 ) * 62 ) + - 77 * 1 END
----
5518

onlyif mysql # aggregate syntax: 
query I rowsort label-511
SELECT 10 * - SUM( DISTINCT ( 9 ) * + 94 )
----
-8460

skipif mysql # not compatible
query I rowsort label-511
SELECT 10 * - SUM ( DISTINCT ( 9 ) * + 94 )
----
-8460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-512
SELECT DISTINCT + NULLIF ( - NULLIF ( 19, + COALESCE ( 0, CAST( NULL AS SIGNED ), COUNT( * ) + 85 ) ), + SUM( 0 ) ) * + 77 AS col2
----
-1463

skipif mysql # not compatible
query I rowsort label-512
SELECT DISTINCT + NULLIF ( - NULLIF ( 19, + COALESCE ( 0, CAST ( NULL AS INTEGER ), COUNT ( * ) + 85 ) ), + SUM ( 0 ) ) * + 77 AS col2
----
-1463

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

query I rowsort
SELECT DISTINCT 78 + - 13
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-515
SELECT MAX( DISTINCT COALESCE ( 41, 65 ) ) + 58 AS col2
----
99

skipif mysql # not compatible
query I rowsort label-515
SELECT MAX ( DISTINCT COALESCE ( 41, 65 ) ) + 58 AS col2
----
99

query I rowsort
SELECT ALL + 80 + 16 AS col1
----
96

query I rowsort
SELECT + 49 + + ( - 41 ) * 98
----
-3969

onlyif mysql # DIV for integer division: 
query I rowsort label-518
SELECT DISTINCT 19 DIV - 56
----
0

skipif mysql # not compatible
query I rowsort label-518
SELECT DISTINCT 19 / - 56
----
0

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

query I rowsort
SELECT DISTINCT 14 + + NULLIF ( - 79, + 11 - 62 ) AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-521
SELECT - CASE + COUNT( * ) WHEN - 34 THEN 72 + 62 WHEN 89 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-521
SELECT - CASE + COUNT ( * ) WHEN - 34 THEN 72 + 62 WHEN 89 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-522
SELECT + CASE - CAST( NULL AS SIGNED ) WHEN + 56 - + 84 * 35 THEN + 19 WHEN + 61 + 55 * AVG ( - 95 - + 38 ) THEN - CASE - COUNT( * ) WHEN 6 THEN + 99 WHEN 10 THEN 52 + + 65 END END * + SUM( ALL - 94 * + 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-522
SELECT + CASE - CAST ( NULL AS INTEGER ) WHEN + 56 - + 84 * 35 THEN + 19 WHEN + 61 + 55 * AVG ( - 95 - + 38 ) THEN - CASE - COUNT ( * ) WHEN 6 THEN + 99 WHEN 10 THEN 52 + + 65 END END * + SUM ( ALL - 94 * + 17 )
----
NULL

query I rowsort
SELECT DISTINCT + COALESCE ( + - 95, 85, NULLIF ( ( - 0 ), 75 ) * + 33 ) * - 78
----
7410

query I rowsort
SELECT DISTINCT 78 * 65
----
5070

onlyif mysql # aggregate syntax: 
query I rowsort label-525
SELECT ALL COUNT( * ) - - 34
----
35

skipif mysql # not compatible
query I rowsort label-525
SELECT ALL COUNT ( * ) - - 34
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-526
SELECT + COALESCE ( - 98, 12 DIV - ( + 25 ) - + 19 * ( 95 DIV 56 - COUNT( * ) ) ) - 75 * 0
----
-98

skipif mysql # not compatible
query I rowsort label-526
SELECT + COALESCE ( - 98, 12 / - ( + 25 ) - + 19 * ( 95 / 56 - COUNT ( * ) ) ) - 75 * 0
----
-98

query I rowsort
SELECT - 24 * + ( 65 )
----
-1560

onlyif mysql # aggregate syntax: 
query I rowsort label-528
SELECT ALL SUM( DISTINCT 41 )
----
41

skipif mysql # not compatible
query I rowsort label-528
SELECT ALL SUM ( DISTINCT 41 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-529
SELECT + 88 * COUNT( ALL - NULLIF ( 65, 7 * - 57 + + ( 14 + + 26 ) ) ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-529
SELECT + 88 * COUNT ( ALL - NULLIF ( 65, 7 * - 57 + + ( 14 + + 26 ) ) ) AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-530
SELECT DISTINCT COUNT( 49 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-530
SELECT DISTINCT COUNT ( 49 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-531
SELECT ALL + 12 * + COUNT( * ) - + 69 AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-531
SELECT ALL + 12 * + COUNT ( * ) - + 69 AS col1
----
-57

query I rowsort
SELECT ( - CASE 91 WHEN - 61 THEN 72 + + 45 ELSE NULL END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-533
SELECT - 55 * + - 79 * 4 - + COUNT( * ) AS col1
----
17379

skipif mysql # not compatible
query I rowsort label-533
SELECT - 55 * + - 79 * 4 - + COUNT ( * ) AS col1
----
17379

query I rowsort
SELECT ALL + COALESCE ( 65, + 96, + 16 + + 3 * + 81 ) * - ( COALESCE ( 1, - 81 * - 15 ) ) AS col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-535
SELECT DISTINCT + CASE 98 WHEN - ( - COUNT( * ) ) * 45 THEN NULL WHEN + 44 * 66 + + 25 THEN - NULLIF ( NULLIF ( + 70, ( - 89 ) * + 21 ), 36 ) * 94 + + 85 / 82 END / 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-535
SELECT DISTINCT + CASE 98 WHEN - ( - COUNT ( * ) ) * 45 THEN NULL WHEN + 44 * 66 + + 25 THEN - NULLIF ( NULLIF ( + 70, ( - 89 ) * + 21 ), 36 ) * 94 + + 85 / 82 END / 82 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-536
SELECT - 95 DIV 55 + 13 DIV 55
----
-1

skipif mysql # not compatible
query I rowsort label-536
SELECT - 95 / 55 + 13 / 55
----
-1

query I rowsort
SELECT - 34 * + 36
----
-1224

onlyif mysql # aggregate syntax: 
query I rowsort label-538
SELECT - 19 * COUNT( * ) + + COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-538
SELECT - 19 * COUNT ( * ) + + COUNT ( * )
----
-18

query I rowsort
SELECT - 48 * - 18 AS col0
----
864

query I rowsort
SELECT - ( 65 ) + 27 AS col0
----
-38

query I rowsort
SELECT DISTINCT + 9 * - - 71
----
639

onlyif mysql # aggregate syntax: 
query I rowsort label-542
SELECT ALL - COUNT( * ) * + 29 + + 46
----
17

skipif mysql # not compatible
query I rowsort label-542
SELECT ALL - COUNT ( * ) * + 29 + + 46
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-543
SELECT ALL + - COALESCE ( COALESCE ( + ( 38 ), 56 * 65 ), 33 * + CAST( - 50 AS SIGNED ), - MAX( ALL 92 ) ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-543
SELECT ALL + - COALESCE ( COALESCE ( + ( 38 ), 56 * 65 ), 33 * + CAST ( - 50 AS INTEGER ), - MAX ( ALL 92 ) ) AS col1
----
-38

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-545
SELECT DISTINCT - 24 * - 14 + 25 * - COUNT( * ) AS col1
----
311

skipif mysql # not compatible
query I rowsort label-545
SELECT DISTINCT - 24 * - 14 + 25 * - COUNT ( * ) AS col1
----
311

query I rowsort
SELECT - - ( 67 ) + 2 * - 9
----
49

query I rowsort
SELECT + - 15 * 17 * 54 AS col2
----
-13770

onlyif mysql # aggregate syntax: 
query I rowsort label-548
SELECT - - ( ( - COUNT( 81 ) ) ) + 28
----
27

skipif mysql # not compatible
query I rowsort label-548
SELECT - - ( ( - COUNT ( 81 ) ) ) + 28
----
27

query I rowsort
SELECT ALL 8 * - + ( + 33 ) + 40
----
-224

onlyif mysql # DIV for integer division: 
query I rowsort label-550
SELECT - 78 DIV - 4
----
19

skipif mysql # not compatible
query I rowsort label-550
SELECT - 78 / - 4
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-551
SELECT DISTINCT + - 93 DIV - COALESCE ( - 57, 21 + + 68 ) + + MAX( - 3 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-551
SELECT DISTINCT + - 93 / - COALESCE ( - 57, 21 + + 68 ) + + MAX ( - 3 ) AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-552
SELECT ALL - 80 * - SUM( + 39 ) * - 99 + COUNT( * ) AS col0
----
-308879

skipif mysql # not compatible
query I rowsort label-552
SELECT ALL - 80 * - SUM ( + 39 ) * - 99 + COUNT ( * ) AS col0
----
-308879

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-553
SELECT ALL + CASE - 60 WHEN 76 / 47 THEN 31 * + COUNT( * ) END * + CASE + 12 / 65 WHEN COUNT( * ) * 39 - + 33 / + 78 THEN CAST( NULLIF ( 73, + 72 + + 51 ) AS SIGNED ) ELSE CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-553
SELECT ALL + CASE - 60 WHEN 76 / 47 THEN 31 * + COUNT ( * ) END * + CASE + 12 / 65 WHEN COUNT ( * ) * 39 - + 33 / + 78 THEN CAST ( NULLIF ( 73, + 72 + + 51 ) AS INTEGER ) ELSE CAST ( NULL AS INTEGER ) END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 64 + + + 5 + + 54 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-555
SELECT MIN( ALL + ( 6 ) ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-555
SELECT MIN ( ALL + ( 6 ) ) AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-556
SELECT ALL 37 - - 81 + - COALESCE ( ( - 82 ), + COUNT( * ) * + 21 ) + - 86 AS col2
----
114

skipif mysql # not compatible
query I rowsort label-556
SELECT ALL 37 - - 81 + - COALESCE ( ( - 82 ), + COUNT ( * ) * + 21 ) + - 86 AS col2
----
114

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

query I rowsort
SELECT - 19 + - 37 AS col2
----
-56

query I rowsort
SELECT + 24 * 47 * + 93 AS col2
----
104904

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-560
SELECT + ( + COUNT( * ) ) + - + COALESCE ( - ( CAST( NULL AS SIGNED ) ), CAST( - 15 AS SIGNED ) * 28 ) + - 30 * - 50
----
1921

skipif mysql # not compatible
query I rowsort label-560
SELECT + ( + COUNT ( * ) ) + - + COALESCE ( - ( CAST ( NULL AS INTEGER ) ), CAST ( - 15 AS INTEGER ) * 28 ) + - 30 * - 50
----
1921

query I rowsort
SELECT + 1 - - 91 AS col2
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-562
SELECT ALL 65 DIV - - 57
----
1

skipif mysql # not compatible
query I rowsort label-562
SELECT ALL 65 / - - 57
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-563
SELECT + 71 + - NULLIF ( + COUNT( * ), AVG ( ALL + 77 ) ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-563
SELECT + 71 + - NULLIF ( + COUNT ( * ), AVG ( ALL + 77 ) ) AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-564
SELECT + 77 - + COUNT( * ) * 50 + COALESCE ( ( 93 ), 21 ) * 74 col1
----
6909

skipif mysql # not compatible
query I rowsort label-564
SELECT + 77 - + COUNT ( * ) * 50 + COALESCE ( ( 93 ), 21 ) * 74 col1
----
6909

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-565
SELECT + 65 * - CAST( + 17 AS SIGNED ) AS col2
----
-1105

skipif mysql # not compatible
query I rowsort label-565
SELECT + 65 * - CAST ( + 17 AS INTEGER ) AS col2
----
-1105

query II rowsort
SELECT ALL 78 AS col2, + 46
----
78
46

onlyif mysql # aggregate syntax: 
query I rowsort label-567
SELECT ALL COALESCE ( - COUNT( * ), 76 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-567
SELECT ALL COALESCE ( - COUNT ( * ), 76 ) AS col2
----
-1

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

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

query I rowsort
SELECT ALL ( 80 ) * - 64 AS col2
----
-5120

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-571
SELECT + - 60 * + + MIN( - 48 )
----
2880

skipif mysql # not compatible
query I rowsort label-571
SELECT + - 60 * + + MIN ( - 48 )
----
2880

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-572
SELECT - COUNT( * ) + + 3 DIV - + 29 col2
----
-1

skipif mysql # not compatible
query I rowsort label-572
SELECT - COUNT ( * ) + + 3 / - + 29 col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-573
SELECT ALL + 20 DIV + MIN( + 29 ) DIV - COUNT( * ) + 77 + + COUNT( DISTINCT - 29 ) * - 72
----
5

skipif mysql # not compatible
query I rowsort label-573
SELECT ALL + 20 / + MIN ( + 29 ) / - COUNT ( * ) + 77 + + COUNT ( DISTINCT - 29 ) * - 72
----
5

query II rowsort
SELECT DISTINCT + - 94 AS col2, 96 AS col1
----
-94
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-575
SELECT DISTINCT - 69 DIV + + 77 + - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-575
SELECT DISTINCT - 69 / + + 77 + - COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-576
SELECT DISTINCT + COUNT( * ) DIV + + 39 * + MAX( DISTINCT - 30 ) * 39 + 97
----
97

skipif mysql # not compatible
query I rowsort label-576
SELECT DISTINCT + COUNT ( * ) / + + 39 * + MAX ( DISTINCT - 30 ) * 39 + 97
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-577
SELECT - - CAST( + NULLIF ( - 5, NULLIF ( - 42, + COUNT( * ) ) + COUNT( * ) ) AS SIGNED ) * 1 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-577
SELECT - - CAST ( + NULLIF ( - 5, NULLIF ( - 42, + COUNT ( * ) ) + COUNT ( * ) ) AS INTEGER ) * 1 AS col2
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-578
SELECT - 70, + MAX( + - 31 ) AS col2
----
-70
-31

skipif mysql # not compatible
query II rowsort label-578
SELECT - 70, + MAX ( + - 31 ) AS col2
----
-70
-31

query I rowsort
SELECT 9 * 3
----
27

query I rowsort
SELECT + CASE + 41 WHEN - - 35 * - 96 THEN 21 WHEN 50 THEN - 71 * 47 ELSE NULL END * 18 + + 52 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-581
SELECT ALL - 72 + - + NULLIF ( COUNT( * ), 97 * 65 + + 90 * 47 )
----
-73

skipif mysql # not compatible
query I rowsort label-581
SELECT ALL - 72 + - + NULLIF ( COUNT ( * ), 97 * 65 + + 90 * 47 )
----
-73

query I rowsort
SELECT + ( - 70 ) AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-583
SELECT ALL + + 91 * + 90 * COUNT( * ) * + 36
----
294840

skipif mysql # not compatible
query I rowsort label-583
SELECT ALL + + 91 * + 90 * COUNT ( * ) * + 36
----
294840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-584
SELECT DISTINCT - MAX( DISTINCT - CAST( - + 71 AS SIGNED ) )
----
-71

skipif mysql # not compatible
query I rowsort label-584
SELECT DISTINCT - MAX ( DISTINCT - CAST ( - + 71 AS INTEGER ) )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-585
SELECT DISTINCT + MIN( - - 75 ) * + - 92
----
-6900

skipif mysql # not compatible
query I rowsort label-585
SELECT DISTINCT + MIN ( - - 75 ) * + - 92
----
-6900

onlyif mysql # aggregate syntax: 
query I rowsort label-586
SELECT ALL - COALESCE ( 41, COALESCE ( + 78, 44 * 97 - 16 * - 61 ) + 17 ) - + 8 * ( 61 - + COUNT( * ) )
----
-521

skipif mysql # not compatible
query I rowsort label-586
SELECT ALL - COALESCE ( 41, COALESCE ( + 78, 44 * 97 - 16 * - 61 ) + 17 ) - + 8 * ( 61 - + COUNT ( * ) )
----
-521

query I rowsort
SELECT ALL + 15 - ( - 19 ) AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-588
SELECT 74 * - COUNT( * )
----
-74

skipif mysql # not compatible
query I rowsort label-588
SELECT 74 * - COUNT ( * )
----
-74

query I rowsort
SELECT 13 + 99
----
112

query I rowsort
SELECT 87 * + - ( + - 15 )
----
1305

query II rowsort
SELECT 22 * - - 3, 10 * 94 * 59 AS col1
----
66
55460

query I rowsort
SELECT 28 + - 63 + - - 56 AS col2
----
21

query I rowsort
SELECT DISTINCT - 70 * - ( + 74 ) AS col1
----
5180

query I rowsort
SELECT 12 * 10
----
120

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

skipif mysql # not compatible
query I rowsort label-595
SELECT ALL - 88 / - - 98
----
0

query I rowsort
SELECT DISTINCT 77 * 83 AS col1
----
6391

query I rowsort
SELECT 37 * 24
----
888

query I rowsort
SELECT ALL - 53 * ( + 69 ) AS col0
----
-3657

onlyif mysql # aggregate syntax: 
query I rowsort label-599
SELECT COUNT( * ) - 94 AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-599
SELECT COUNT ( * ) - 94 AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-600
SELECT ALL MAX( + 61 ) + - COUNT( * ) + 72
----
132

skipif mysql # not compatible
query I rowsort label-600
SELECT ALL MAX ( + 61 ) + - COUNT ( * ) + 72
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-601
SELECT ALL + + 18 + + 31 + + + COUNT( * ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-601
SELECT ALL + + 18 + + 31 + + + COUNT ( * ) AS col1
----
50

query II rowsort
SELECT ALL + + 56 + + + 90 col2, - 94
----
146
-94

query I rowsort
SELECT DISTINCT + 87 * - - 87 * + - 67 col2
----
-507123

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-604
SELECT ALL 83 + - CAST( NULL AS SIGNED ) AS col2, + ( - 92 ) AS col0
----
NULL
-92

skipif mysql # not compatible
query II rowsort label-604
SELECT ALL 83 + - CAST ( NULL AS INTEGER ) AS col2, + ( - 92 ) AS col0
----
NULL
-92

query I rowsort
SELECT DISTINCT - 17 + - 18 AS col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-606
SELECT - MIN( - 71 ) * + COUNT( * ) * - + CASE 11 WHEN 40 THEN + 12 * 9 WHEN + 11 THEN NULL END / - 56 + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-606
SELECT - MIN ( - 71 ) * + COUNT ( * ) * - + CASE 11 WHEN 40 THEN + 12 * 9 WHEN + 11 THEN NULL END / - 56 + 79
----
NULL

query I rowsort
SELECT ALL 40 + - 15 * - + 30 - - - 98 * + 68
----
-6174

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-608
SELECT DISTINCT - 26 * - CAST( - ( + CASE 97 WHEN NULLIF ( + 3, 64 * - 2 + - 94 * 62 ) * 40 THEN 75 WHEN 80 + 43 * 58 THEN NULL END ) AS DECIMAL ) / 21 - + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-608
SELECT DISTINCT - 26 * - CAST ( - ( + CASE 97 WHEN NULLIF ( + 3, 64 * - 2 + - 94 * 62 ) * 40 THEN 75 WHEN 80 + 43 * 58 THEN NULL END ) AS REAL ) / 21 - + 73
----
NULL

query I rowsort
SELECT ALL - 68 + + 31
----
-37

query I rowsort
SELECT - ( - 10 ) + 45 * - - 93 * 52 AS col2
----
217630

query I rowsort
SELECT + + COALESCE ( + + 82, + 95 ) AS col0
----
82

query I rowsort
SELECT - ( NULLIF ( + 16, 15 + 44 * - 29 ) ) AS col1
----
-16

query I rowsort
SELECT + 72 * - 67 + + 37 AS col1
----
-4787

query I rowsort
SELECT + ( + 52 ) AS col1
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-615
SELECT - 16 + - COUNT( * ) AS col2, COUNT( * ) DIV + + ( - 58 ) + - CASE 6 WHEN + 36 THEN NULL WHEN + 93 * 86 THEN NULL ELSE COUNT( * ) - ( - 14 ) DIV + ( - 78 * 26 ) END AS col1
----
-17
-1

skipif mysql # not compatible
query II rowsort label-615
SELECT - 16 + - COUNT ( * ) AS col2, COUNT ( * ) / + + ( - 58 ) + - CASE 6 WHEN + 36 THEN NULL WHEN + 93 * 86 THEN NULL ELSE COUNT ( * ) - ( - 14 ) / + ( - 78 * 26 ) END AS col1
----
-17
-1

query I rowsort
SELECT ALL 29 * 3 AS col1
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-617
SELECT DISTINCT - 74 - 79 DIV 70 AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-617
SELECT DISTINCT - 74 - 79 / 70 AS col2
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-618
SELECT DISTINCT - - 17 DIV 92 * - 60 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-618
SELECT DISTINCT - - 17 / 92 * - 60 AS col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-620
SELECT DISTINCT + 41 - - 83 + 56 + - COUNT( * ) * + 66 col2
----
114

skipif mysql # not compatible
query I rowsort label-620
SELECT DISTINCT + 41 - - 83 + 56 + - COUNT ( * ) * + 66 col2
----
114

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

skipif mysql # not compatible
query I rowsort label-621
SELECT DISTINCT + 50 / - COUNT ( * ) AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-622
SELECT ALL - ( - - NULLIF ( - 75, COUNT( * ) ) ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-622
SELECT ALL - ( - - NULLIF ( - 75, COUNT ( * ) ) ) AS col0
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-623
SELECT 22 * + CAST( + CAST( + COUNT( * ) AS SIGNED ) AS SIGNED ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-623
SELECT 22 * + CAST ( + CAST ( + COUNT ( * ) AS INTEGER ) AS INTEGER ) AS col2
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-624
SELECT 32 * - CAST( COUNT( * ) AS SIGNED ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-624
SELECT 32 * - CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-625
SELECT ALL - ( COUNT( * ) ) * + - 88 AS col2, - 35 * 15 * + 41 + + 93 * - COALESCE ( - 9 * - NULLIF ( CASE 17 WHEN 79 + COUNT( * ) THEN - 46 * - SUM( - 88 ) END, + 7 / 71 ), NULLIF ( 65, 3 ) ) AS col0
----
88
-27570

skipif mysql # not compatible
query II rowsort label-625
SELECT ALL - ( COUNT ( * ) ) * + - 88 AS col2, - 35 * 15 * + 41 + + 93 * - COALESCE ( - 9 * - NULLIF ( CASE 17 WHEN 79 + COUNT ( * ) THEN - 46 * - SUM ( - 88 ) END, + 7 / 71 ), NULLIF ( 65, 3 ) ) AS col0
----
88
-27570

onlyif mysql # aggregate syntax: 
query I rowsort label-626
SELECT ALL MIN( - + 87 ) * + - 48 * 42 * 25 + + 21 * + 24 AS col1
----
4385304

skipif mysql # not compatible
query I rowsort label-626
SELECT ALL MIN ( - + 87 ) * + - 48 * 42 * 25 + + 21 * + 24 AS col1
----
4385304

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-627
SELECT DISTINCT 12 * + CAST( + 65 AS SIGNED ) * + 46 AS col2
----
35880

skipif mysql # not compatible
query I rowsort label-627
SELECT DISTINCT 12 * + CAST ( + 65 AS INTEGER ) * + 46 AS col2
----
35880

query I rowsort
SELECT 22 * 48 AS col1
----
1056

onlyif mysql # DIV for integer division: 
query I rowsort label-629
SELECT 28 - 55 + - + 60 DIV - + 94 * - - 21 AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-629
SELECT 28 - 55 + - + 60 / - + 94 * - - 21 AS col0
----
-27

query I rowsort
SELECT 12 * - 42 AS col1
----
-504

query I rowsort
SELECT ALL - 57 + 61 AS col2
----
4

query I rowsort
SELECT ALL + ( 97 ) + + + 34 AS col0
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-633
SELECT 27 + COUNT( * ) * 25 * MAX( DISTINCT 15 ) col1
----
402

skipif mysql # not compatible
query I rowsort label-633
SELECT 27 + COUNT ( * ) * 25 * MAX ( DISTINCT 15 ) col1
----
402

onlyif mysql # aggregate syntax: 
query I rowsort label-634
SELECT CASE + - 67 WHEN - - 31 * + 85 * + - COUNT( * ) * 33 THEN NULL WHEN + 83 * 53 THEN - 27 END - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-634
SELECT CASE + - 67 WHEN - - 31 * + 85 * + - COUNT ( * ) * 33 THEN NULL WHEN + 83 * 53 THEN - 27 END - 63
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-635
SELECT 37 + - - ( - COUNT( * ) ) * + CASE + 48 WHEN 35 THEN NULL ELSE + COUNT( * ) END
----
36

skipif mysql # not compatible
query I rowsort label-635
SELECT 37 + - - ( - COUNT ( * ) ) * + CASE + 48 WHEN 35 THEN NULL ELSE + COUNT ( * ) END
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-636
SELECT DISTINCT - CAST( NULL AS SIGNED ) + MIN( - - 55 ) * + 56 / 46 + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-636
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + MIN ( - - 55 ) * + 56 / 46 + + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL + 88 * ( + - 81 ) * - 85 + + 12 AS col2
----
605892

query I rowsort
SELECT ALL + 39 + + 93 - + - 68
----
200

query I rowsort
SELECT - - 33 * + 28
----
924

onlyif mysql # DIV for integer division: 
query I rowsort label-640
SELECT + - 46 DIV 61 * + - 35 + + - 15
----
-15

skipif mysql # not compatible
query I rowsort label-640
SELECT + - 46 / 61 * + - 35 + + - 15
----
-15

query I rowsort
SELECT - + 58 * 42
----
-2436

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-642
SELECT - COALESCE ( 90, - - 52, - 20 * + COUNT( * ) DIV - COUNT( * ) + CASE + CASE WHEN NOT ( + 83 ) IS NULL THEN NULL ELSE 21 + 21 END WHEN 56 THEN 8 END ) DIV 86 + 96
----
95

skipif mysql # not compatible
query I rowsort label-642
SELECT - COALESCE ( 90, - - 52, - 20 * + COUNT ( * ) / - COUNT ( * ) + CASE + CASE WHEN NOT ( + 83 ) IS NULL THEN NULL ELSE 21 + 21 END WHEN 56 THEN 8 END ) / 86 + 96
----
95

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

skipif mysql # not compatible
query I rowsort label-643
SELECT + COALESCE ( - COUNT ( * ), + + 53 ) * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-644
SELECT DISTINCT - COUNT( * ) * - + CASE + 47 WHEN + 89 THEN NULL WHEN + - 94 * + 21 THEN NULL ELSE + 55 + COUNT( * ) DIV 23 END - 67 * + 68 col2
----
-4501

skipif mysql # not compatible
query I rowsort label-644
SELECT DISTINCT - COUNT ( * ) * - + CASE + 47 WHEN + 89 THEN NULL WHEN + - 94 * + 21 THEN NULL ELSE + 55 + COUNT ( * ) / 23 END - 67 * + 68 col2
----
-4501

query I rowsort
SELECT ALL - 81 * 98
----
-7938

query I rowsort
SELECT + - NULLIF ( 13, + 12 ) * - 57 * 90
----
66690

onlyif mysql # aggregate syntax: 
query I rowsort label-647
SELECT ALL + ( - 46 ) * + COUNT( * ) * 70 AS col2
----
-3220

skipif mysql # not compatible
query I rowsort label-647
SELECT ALL + ( - 46 ) * + COUNT ( * ) * 70 AS col2
----
-3220

query I rowsort
SELECT + 33 + 45 - + CASE 66 WHEN - 35 THEN NULL ELSE - 9 + 98 END + - 2
----
-13

query I rowsort
SELECT + 2 - + 99 AS col2
----
-97

query I rowsort
SELECT - 60 * + - 98 AS col1
----
5880

query I rowsort
SELECT + 72 * - 99 AS col1
----
-7128

onlyif mysql # aggregate syntax: 
query I rowsort label-652
SELECT ALL 78 * - COUNT( DISTINCT - 24 )
----
-78

skipif mysql # not compatible
query I rowsort label-652
SELECT ALL 78 * - COUNT ( DISTINCT - 24 )
----
-78

query II rowsort
SELECT + 66 + 34, 31 AS col0
----
100
31

query II rowsort
SELECT DISTINCT + 54 AS col1, 1 * - + 94
----
54
-94

query I rowsort
SELECT ALL - 86 * + 84 * - 65 + + 10
----
469570

onlyif mysql # aggregate syntax: 
query II rowsort label-656
SELECT ALL + 63, ( CASE + 33 WHEN 41 + + - 66 + 31 * - 8 THEN NULL WHEN ( COUNT( * ) ) * 53 + 54 THEN - 99 END ) + 38 AS col1
----
63
NULL

skipif mysql # not compatible
query II rowsort label-656
SELECT ALL + 63, ( CASE + 33 WHEN 41 + + - 66 + 31 * - 8 THEN NULL WHEN ( COUNT ( * ) ) * 53 + 54 THEN - 99 END ) + 38 AS col1
----
63
NULL

query II rowsort
SELECT ALL + 67, + 89 AS col0
----
67
89

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-658
SELECT DISTINCT CASE - ( - + 21 ) WHEN 79 THEN 86 DIV + + 26 WHEN + 17 THEN NULL ELSE + 31 END + + CAST( + 59 AS SIGNED ) DIV + NULLIF ( 14, 96 )
----
35

skipif mysql # not compatible
query I rowsort label-658
SELECT DISTINCT CASE - ( - + 21 ) WHEN 79 THEN 86 / + + 26 WHEN + 17 THEN NULL ELSE + 31 END + + CAST ( + 59 AS INTEGER ) / + NULLIF ( 14, 96 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-659
SELECT + 6 * - MIN( ALL - 96 ) AS col0
----
576

skipif mysql # not compatible
query I rowsort label-659
SELECT + 6 * - MIN ( ALL - 96 ) AS col0
----
576

query II rowsort
SELECT 16, - 59 + + 91 AS col1
----
16
32

query I rowsort
SELECT - ( + 17 ) col2
----
-17

query I rowsort
SELECT - 88 + - 17
----
-105

onlyif mysql # DIV for integer division: 
query I rowsort label-663
SELECT ALL ( + + 87 ) + + - 82 DIV 24 + - 2 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-663
SELECT ALL ( + + 87 ) + + - 82 / 24 + - 2 AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-664
SELECT - MIN( DISTINCT 55 ) * + + 88 - - + COALESCE ( + - 72, + + 1 )
----
-4912

skipif mysql # not compatible
query I rowsort label-664
SELECT - MIN ( DISTINCT 55 ) * + + 88 - - + COALESCE ( + - 72, + + 1 )
----
-4912

onlyif mysql # aggregate syntax: 
query I rowsort label-665
SELECT DISTINCT + 81 + - + 66 - - CASE - SUM( ALL + 65 ) WHEN + - 64 THEN - 95 END * ( + 39 - 22 )
----
NULL

skipif mysql # not compatible
query I rowsort label-665
SELECT DISTINCT + 81 + - + 66 - - CASE - SUM ( ALL + 65 ) WHEN + - 64 THEN - 95 END * ( + 39 - 22 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-666
SELECT ALL MIN( ALL - 16 ) * - COUNT( * ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-666
SELECT ALL MIN ( ALL - 16 ) * - COUNT ( * ) AS col0
----
16

query I rowsort
SELECT ALL + 63 + 75
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-668
SELECT ALL + SUM( DISTINCT 22 ) + - 80 + 88 * 18
----
1526

skipif mysql # not compatible
query I rowsort label-668
SELECT ALL + SUM ( DISTINCT 22 ) + - 80 + 88 * 18
----
1526

query I rowsort
SELECT DISTINCT - - 1 * 23
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-670
SELECT - - COUNT( * ) * + + ( + 99 ) col0
----
99

skipif mysql # not compatible
query I rowsort label-670
SELECT - - COUNT ( * ) * + + ( + 99 ) col0
----
99

query II rowsort
SELECT DISTINCT 49 AS col1, + 13 * - + 3
----
49
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-672
SELECT ALL + + MIN( DISTINCT - - 7 ) * - 34 AS col1
----
-238

skipif mysql # not compatible
query I rowsort label-672
SELECT ALL + + MIN ( DISTINCT - - 7 ) * - 34 AS col1
----
-238

query II rowsort
SELECT - + 2, 93 AS col1
----
-2
93

query I rowsort
SELECT DISTINCT - - 46 - + - 92
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-675
SELECT ALL + - 84 * COUNT( * ) + + 52 * MIN( ALL 20 )
----
956

skipif mysql # not compatible
query I rowsort label-675
SELECT ALL + - 84 * COUNT ( * ) + + 52 * MIN ( ALL 20 )
----
956

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-676
SELECT ALL + 97 AS col0, CASE ( - + 5 ) WHEN - + 82 + NULLIF ( 5, 84 ) THEN + COALESCE ( - 75, - NULLIF ( 2, - 0 ) ) WHEN - CAST( 37 AS SIGNED ) * 16 + - AVG ( ALL - 65 ) THEN NULL ELSE NULL END - + 74 AS col1
----
97
NULL

skipif mysql # not compatible
query II rowsort label-676
SELECT ALL + 97 AS col0, CASE ( - + 5 ) WHEN - + 82 + NULLIF ( 5, 84 ) THEN + COALESCE ( - 75, - NULLIF ( 2, - 0 ) ) WHEN - CAST ( 37 AS INTEGER ) * 16 + - AVG ( ALL - 65 ) THEN NULL ELSE NULL END - + 74 AS col1
----
97
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-677
SELECT 46 * COUNT( * ) * - 73 + + - NULLIF ( + 7, - 48 ) - 12 DIV MAX( 86 ) AS col0
----
-3365

skipif mysql # not compatible
query I rowsort label-677
SELECT 46 * COUNT ( * ) * - 73 + + - NULLIF ( + 7, - 48 ) - 12 / MAX ( 86 ) AS col0
----
-3365

query II rowsort
SELECT ALL + 84, 17 * + + 9 - + 12 AS col1
----
84
141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-679
SELECT - + 61 DIV ( - 7 ) * 8 + 62 + - COUNT( * ) * 81
----
45

skipif mysql # not compatible
query I rowsort label-679
SELECT - + 61 / ( - 7 ) * 8 + 62 + - COUNT ( * ) * 81
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-680
SELECT + 78 * + COALESCE ( MAX( ALL + 84 ), - 4, ( + 11 ) ) col1
----
6552

skipif mysql # not compatible
query I rowsort label-680
SELECT + 78 * + COALESCE ( MAX ( ALL + 84 ), - 4, ( + 11 ) ) col1
----
6552

onlyif mysql # aggregate syntax: 
query I rowsort label-681
SELECT + - 26 * 13 + + + 5 + - 20 - - ( - COUNT( * ) ) + 65 AS col0
----
-289

skipif mysql # not compatible
query I rowsort label-681
SELECT + - 26 * 13 + + + 5 + - 20 - - ( - COUNT ( * ) ) + 65 AS col0
----
-289

onlyif mysql # DIV for integer division: 
query I rowsort label-682
SELECT ALL 74 DIV 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-682
SELECT ALL 74 / 91 AS col1
----
0

query II rowsort
SELECT ALL + + 14 col2, - 79 * 29 AS col0
----
14
-2291

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-684
SELECT - 48 * 6 AS col1, - CAST( - CASE - 40 WHEN - 34 - + 8 THEN NULL WHEN COUNT( * ) THEN NULL WHEN CAST( NULL AS SIGNED ) * - 95 + 4 THEN NULL ELSE + 5 * COUNT( * ) END AS SIGNED ) * COUNT( * ) AS col1
----
-288
5

skipif mysql # not compatible
query II rowsort label-684
SELECT - 48 * 6 AS col1, - CAST ( - CASE - 40 WHEN - 34 - + 8 THEN NULL WHEN COUNT ( * ) THEN NULL WHEN CAST ( NULL AS INTEGER ) * - 95 + 4 THEN NULL ELSE + 5 * COUNT ( * ) END AS INTEGER ) * COUNT ( * ) AS col1
----
-288
5

onlyif mysql # aggregate syntax: 
query I rowsort label-685
SELECT ALL + MAX( ALL - 18 ) * - COUNT( * ) + 98 AS col0
----
116

skipif mysql # not compatible
query I rowsort label-685
SELECT ALL + MAX ( ALL - 18 ) * - COUNT ( * ) + 98 AS col0
----
116

query I rowsort
SELECT + CASE 49 WHEN + 49 + - 79 THEN + 38 * + 22 + + ( AVG ( + 17 ) ) + - 12 ELSE NULL END AS col2
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-688
SELECT - 60 * - 12 + - - COUNT( DISTINCT 50 ) - - 1 + - - 15 DIV - - 98 * - 95 DIV 37 AS col0
----
722

skipif mysql # not compatible
query I rowsort label-688
SELECT - 60 * - 12 + - - COUNT ( DISTINCT 50 ) - - 1 + - - 15 / - - 98 * - 95 / 37 AS col0
----
722

query I rowsort
SELECT ALL + ( + - 20 ) AS col2
----
-20

query I rowsort
SELECT DISTINCT + 97 * + - 6 + - + 41 + - 18
----
-641

query I rowsort
SELECT ALL - 64 * + - 53 * - - 25 + - 86 + - ( - - 18 ) - + 92
----
84604

query I rowsort
SELECT 57 * 30 + + 41 AS col2
----
1751

query I rowsort
SELECT CASE - 64 WHEN - 95 + 73 THEN + 51 * - - 50 / + 22 WHEN 65 + + 60 THEN 82 * - 77 END AS col2
----
NULL

query I rowsort
SELECT + 82 + 25
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-695
SELECT + CASE - - MAX( DISTINCT CASE - 64 WHEN + 38 + + NULLIF ( + 98, + 15 + 34 * ( 39 * + 81 ) ) THEN 80 - - 13 END ) WHEN - 98 * 10 THEN + 27 END * 92
----
NULL

skipif mysql # not compatible
query I rowsort label-695
SELECT + CASE - - MAX ( DISTINCT CASE - 64 WHEN + 38 + + NULLIF ( + 98, + 15 + 34 * ( 39 * + 81 ) ) THEN 80 - - 13 END ) WHEN - 98 * 10 THEN + 27 END * 92
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-696
SELECT ALL CAST( - ( - + ( + 8 ) ) AS SIGNED ) * + + 25 AS col0
----
200

skipif mysql # not compatible
query I rowsort label-696
SELECT ALL CAST ( - ( - + ( + 8 ) ) AS INTEGER ) * + + 25 AS col0
----
200

query I rowsort
SELECT - ( + - 20 ) AS col1
----
20

query I rowsort
SELECT DISTINCT - 4 * - 72 + - 67 AS col2
----
221

query II rowsort
SELECT - ( 96 ), + 57 AS col2
----
-96
57

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-701
SELECT + 28 - CASE + NULLIF ( + ( + 98 ), + - 43 + 98 ) WHEN + COUNT( * ) * - 5 THEN 57 + 77 ELSE NULL END / 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-701
SELECT + 28 - CASE + NULLIF ( + ( + 98 ), + - 43 + 98 ) WHEN + COUNT ( * ) * - 5 THEN 57 + 77 ELSE NULL END / 92 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-702
SELECT ALL NULLIF ( - ( - COALESCE ( + - 76, + COUNT( * ) ) ), - 55 )
----
-76

skipif mysql # not compatible
query I rowsort label-702
SELECT ALL NULLIF ( - ( - COALESCE ( + - 76, + COUNT ( * ) ) ), - 55 )
----
-76

query II rowsort
SELECT - ( - 31 ) AS col1, 36 col0
----
31
36

onlyif mysql # aggregate syntax: 
query I rowsort label-704
SELECT ALL 11 - - - ( - COUNT( - + 0 ) ) - - ( - 75 )
----
-63

skipif mysql # not compatible
query I rowsort label-704
SELECT ALL 11 - - - ( - COUNT ( - + 0 ) ) - - ( - 75 )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-705
SELECT ( 32 ) + 86 * + 81 + - + COUNT( * ) * + 31 * 42
----
5696

skipif mysql # not compatible
query I rowsort label-705
SELECT ( 32 ) + 86 * + 81 + - + COUNT ( * ) * + 31 * 42
----
5696

query I rowsort
SELECT 53 * - 70 AS col0
----
-3710

query I rowsort
SELECT 40 + - - 73
----
113

query I rowsort
SELECT ALL - 6 * - 46 - + 30
----
246

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-709
SELECT 70 * - + NULLIF ( - MAX( ALL + 60 ), + 24 ) DIV COUNT( * )
----
4200

skipif mysql # not compatible
query I rowsort label-709
SELECT 70 * - + NULLIF ( - MAX ( ALL + 60 ), + 24 ) / COUNT ( * )
----
4200

query I rowsort
SELECT DISTINCT 78 * + - ( + 12 ) * + 38 AS col1
----
-35568

onlyif mysql # aggregate syntax: 
query I rowsort label-711
SELECT ALL - 45 * + ( - COUNT( * ) ) * - - 91 + - 66 col0
----
4029

skipif mysql # not compatible
query I rowsort label-711
SELECT ALL - 45 * + ( - COUNT ( * ) ) * - - 91 + - 66 col0
----
4029

query I rowsort
SELECT 1 + + + ( ( 35 ) )
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-713
SELECT + 48 DIV - 66 + + 52 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-713
SELECT + 48 / - 66 + + 52 AS col1
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-714
SELECT + AVG ( + 21 ) / + + CASE - + COALESCE ( + 37, + - 95 * CASE + 50 WHEN + ( + 6 ) THEN - ( 6 ) * - 98 WHEN 65 + + CASE 59 WHEN SUM( 23 ) THEN NULL WHEN - 67 THEN + 60 END THEN NULL END * 97 - - COUNT( * ), AVG ( + CAST( - 37 AS SIGNED ) ) ) WHEN CAST( NULL AS SIGNED ) + - 55 THEN + CASE + 93 WHEN 92 THEN - NULLIF ( - 73, 73 * 97 - 0 ) * 15 ELSE COUNT( * ) * ( - COUNT( * ) ) + COUNT( * ) END END + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-714
SELECT + AVG ( + 21 ) / + + CASE - + COALESCE ( + 37, + - 95 * CASE + 50 WHEN + ( + 6 ) THEN - ( 6 ) * - 98 WHEN 65 + + CASE 59 WHEN SUM ( 23 ) THEN NULL WHEN - 67 THEN + 60 END THEN NULL END * 97 - - COUNT ( * ), AVG ( + CAST ( - 37 AS INTEGER ) ) ) WHEN CAST ( NULL AS INTEGER ) + - 55 THEN + CASE + 93 WHEN 92 THEN - NULLIF ( - 73, 73 * 97 - 0 ) * 15 ELSE COUNT ( * ) * ( - COUNT ( * ) ) + COUNT ( * ) END END + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT ALL + 18 + + 84 AS col2
----
102

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-716
SELECT ALL + CAST( NULL AS SIGNED ) + - AVG ( DISTINCT CAST( - - ( + 22 ) AS SIGNED ) ), + 75 col0
----
NULL
75

skipif mysql # not compatible
query II rowsort label-716
SELECT ALL + CAST ( NULL AS INTEGER ) + - AVG ( DISTINCT CAST ( - - ( + 22 ) AS INTEGER ) ), + 75 col0
----
NULL
75

onlyif mysql # aggregate syntax: 
query I rowsort label-717
SELECT ALL - MAX( DISTINCT 97 ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-717
SELECT ALL - MAX ( DISTINCT 97 ) AS col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-718
SELECT DISTINCT + COALESCE ( + NULLIF ( - 79, + 87 / - + 41 * - 37 ), + MIN( - 65 ) + 64, 13 * + 50 + - 68 ) + - 85 * ( 20 )
----
-1779

skipif mysql # not compatible
query I rowsort label-718
SELECT DISTINCT + COALESCE ( + NULLIF ( - 79, + 87 / - + 41 * - 37 ), + MIN ( - 65 ) + 64, 13 * + 50 + - 68 ) + - 85 * ( 20 )
----
-1779

onlyif mysql # aggregate syntax: 
query I rowsort label-719
SELECT DISTINCT + CASE - 38 WHEN - 24 THEN 83 WHEN + - 53 * 11 * + 13 / + SUM( - 99 ) * 19 THEN + 16 * 11 ELSE NULL END + 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-719
SELECT DISTINCT + CASE - 38 WHEN - 24 THEN 83 WHEN + - 53 * 11 * + 13 / + SUM ( - 99 ) * 19 THEN + 16 * 11 ELSE NULL END + 45 AS col2
----
NULL

query I rowsort
SELECT 21 * + 11
----
231

query II rowsort
SELECT ALL - 92 AS col2, - 86 * - 20
----
-92
1720

query I rowsort
SELECT ALL - ( - NULLIF ( - + 12, + - 0 + 92 * + 35 * 44 ) ) AS col0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-723
SELECT ALL 71 + - + 67 + - - CAST( NULL AS SIGNED ) * - 38 / + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-723
SELECT ALL 71 + - + 67 + - - CAST ( NULL AS INTEGER ) * - 38 / + 11
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-724
SELECT DISTINCT - CASE - 51 WHEN + ( + 40 ) + - + CASE + 3 WHEN 17 THEN NULL WHEN - 94 + + 62 THEN CAST( NULL AS SIGNED ) ELSE NULL END + + 25 THEN 53 WHEN COUNT( * ) + ( 56 ) * 66 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-724
SELECT DISTINCT - CASE - 51 WHEN + ( + 40 ) + - + CASE + 3 WHEN 17 THEN NULL WHEN - 94 + + 62 THEN CAST ( NULL AS INTEGER ) ELSE NULL END + + 25 THEN 53 WHEN COUNT ( * ) + ( 56 ) * 66 THEN NULL END
----
NULL

query I rowsort
SELECT 53 + + 76
----
129

onlyif mysql # DIV for integer division: 
query I rowsort label-726
SELECT DISTINCT - CASE 93 WHEN + 15 THEN NULL WHEN 91 THEN + - 79 WHEN 15 + 97 * 75 THEN 96 + - 1 ELSE + 71 * 8 END DIV + 71 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-726
SELECT DISTINCT - CASE 93 WHEN + 15 THEN NULL WHEN 91 THEN + - 79 WHEN 15 + 97 * 75 THEN 96 + - 1 ELSE + 71 * 8 END / + 71 AS col1
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-727
SELECT + 18 * + + 51 DIV + - 49 * + 1 + + ( - + 29 ) + + + 9 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-727
SELECT + 18 * + + 51 / + - 49 * + 1 + + ( - + 29 ) + + + 9 AS col0
----
-38

query I rowsort
SELECT DISTINCT 40 * - + 22 AS col2
----
-880

onlyif mysql # aggregate syntax: 
query I rowsort label-729
SELECT 99 * COUNT( * ) + - 61
----
38

skipif mysql # not compatible
query I rowsort label-729
SELECT 99 * COUNT ( * ) + - 61
----
38

query I rowsort
SELECT ALL - 63 - + + 32 col2
----
-95

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

skipif mysql # not compatible
query II rowsort label-731
SELECT - 89, COUNT ( * ) AS col2
----
-89
1

query II rowsort
SELECT - 92 col1, + 52
----
-92
52

onlyif mysql # aggregate syntax: 
query I rowsort label-733
SELECT ( 88 ) + - COUNT( * ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-733
SELECT ( 88 ) + - COUNT ( * ) AS col1
----
87

query I rowsort
SELECT DISTINCT 4 * + - 52 AS col2
----
-208

query I rowsort
SELECT + 44 + - 93
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-736
SELECT DISTINCT + 7 - - COUNT( * ) + - 97 * - 71 AS col1
----
6895

skipif mysql # not compatible
query I rowsort label-736
SELECT DISTINCT + 7 - - COUNT ( * ) + - 97 * - 71 AS col1
----
6895

onlyif mysql # aggregate syntax: 
query I rowsort label-737
SELECT DISTINCT - NULLIF ( + 56, + - 91 / - COUNT( * ) * - - 59 ) col0
----
-56

skipif mysql # not compatible
query I rowsort label-737
SELECT DISTINCT - NULLIF ( + 56, + - 91 / - COUNT ( * ) * - - 59 ) col0
----
-56

query I rowsort
SELECT ALL ( - - 43 ) AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-739
SELECT DISTINCT MIN( COALESCE ( - - 5, 10 ) ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-739
SELECT DISTINCT MIN ( COALESCE ( - - 5, 10 ) ) AS col1
----
5

query II rowsort
SELECT - 7 AS col0, 70 * - + 87 AS col2
----
-7
-6090

onlyif mysql # aggregate syntax: 
query I rowsort label-741
SELECT 57 - - 84 * - COUNT( * ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-741
SELECT 57 - - 84 * - COUNT ( * ) AS col2
----
-27

onlyif mysql # aggregate syntax: 
query III rowsort label-742
SELECT ALL + 33 * COUNT( - 2 ) AS col0, - 29 AS col1, - 83
----
33
-29
-83

skipif mysql # not compatible
query III rowsort label-742
SELECT ALL + 33 * COUNT ( - 2 ) AS col0, - 29 AS col1, - 83
----
33
-29
-83

query I rowsort
SELECT ( - 90 ) - + 45 * - + 52 * - 8 * - - 76 * - - 68 + 8 * 98 col0
----
-96744266

query I rowsort
SELECT + 17 * + 3 AS col1
----
51

query I rowsort
SELECT ALL 96 + - 52
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-746
SELECT DISTINCT - + MIN( DISTINCT 95 ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-746
SELECT DISTINCT - + MIN ( DISTINCT 95 ) AS col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-747
SELECT DISTINCT + COUNT( * ) * - + 52 * - + 74 + - - COUNT( * ) + + 15
----
3864

skipif mysql # not compatible
query I rowsort label-747
SELECT DISTINCT + COUNT ( * ) * - + 52 * - + 74 + - - COUNT ( * ) + + 15
----
3864

query I rowsort
SELECT DISTINCT - 3 * + 69 * + 78 + - 59
----
-16205

query I rowsort
SELECT - 52 * - 80 * - 87 + + + 43 * + 40 * ( + 12 ) + + 65 + 97 AS col0
----
-341118

onlyif mysql # aggregate syntax: 
query II rowsort label-750
SELECT MIN( - 53 ) AS col2, ( + 96 ) + + 0
----
-53
96

skipif mysql # not compatible
query II rowsort label-750
SELECT MIN ( - 53 ) AS col2, ( + 96 ) + + 0
----
-53
96

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

skipif mysql # not compatible
query I rowsort label-751
SELECT + CAST ( NULL AS INTEGER ) / - CAST ( - - 46 AS INTEGER ) * 13 + - COUNT ( ALL - - 2 )
----
NULL

query I rowsort
SELECT 66 * ( - 7 ) AS col1
----
-462

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-753
SELECT ALL ( + ( - COUNT( * ) ) ) * - 48 - + 37 + + + 5 + - COUNT( * ) * 30 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-753
SELECT ALL ( + ( - COUNT ( * ) ) ) * - 48 - + 37 + + + 5 + - COUNT ( * ) * 30 + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-754
SELECT ALL - NULLIF ( 48, + COALESCE ( - 0, - SUM( + + 54 ) * 68 - 80 ) )
----
-48

skipif mysql # not compatible
query I rowsort label-754
SELECT ALL - NULLIF ( 48, + COALESCE ( - 0, - SUM ( + + 54 ) * 68 - 80 ) )
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-755
SELECT ALL 95 * + COUNT( * ) * - 41 - + 35 DIV 96 DIV - 99
----
-3895

skipif mysql # not compatible
query I rowsort label-755
SELECT ALL 95 * + COUNT ( * ) * - 41 - + 35 / 96 / - 99
----
-3895

onlyif mysql # DIV for integer division: 
query II rowsort label-756
SELECT 56 * - 4, 96 DIV + 2 AS col1
----
-224
48

skipif mysql # not compatible
query II rowsort label-756
SELECT 56 * - 4, 96 / + 2 AS col1
----
-224
48

onlyif mysql # DIV for integer division: 
query I rowsort label-757
SELECT ALL - 4 DIV - ( 52 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-757
SELECT ALL - 4 / - ( 52 ) col2
----
0

query I rowsort
SELECT ALL - COALESCE ( + 60, - 66 ) * - 90 - 77
----
5323

query I rowsort
SELECT ALL + NULLIF ( - 82, 86 * 27 * - 85 - 5 ) AS col1
----
-82

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

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

query I rowsort
SELECT - 82 * + 11
----
-902

onlyif mysql # aggregate syntax: 
query II rowsort label-762
SELECT - 93 + 83 AS col2, 65 * + + COUNT( * )
----
-10
65

skipif mysql # not compatible
query II rowsort label-762
SELECT - 93 + 83 AS col2, 65 * + + COUNT ( * )
----
-10
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-763
SELECT - COUNT( DISTINCT - 52 ) DIV - 40 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-763
SELECT - COUNT ( DISTINCT - 52 ) / - 40 AS col0
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-765
SELECT 0 * + 7 * + ( + 58 ) + + 78 + 76 / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-765
SELECT 0 * + 7 * + ( + 58 ) + + 78 + 76 / CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-766
SELECT ALL - - 69 DIV - 96
----
0

skipif mysql # not compatible
query I rowsort label-766
SELECT ALL - - 69 / - 96
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-767
SELECT DISTINCT + MIN( DISTINCT 61 ) AS col1, 72
----
61
72

skipif mysql # not compatible
query II rowsort label-767
SELECT DISTINCT + MIN ( DISTINCT 61 ) AS col1, 72
----
61
72

query I rowsort
SELECT 9 * - - 64 - - 63 AS col2
----
639

onlyif mysql # aggregate syntax: 
query II rowsort label-769
SELECT DISTINCT + MAX( DISTINCT + 40 ) AS col1, MIN( - - 91 ) AS col0
----
40
91

skipif mysql # not compatible
query II rowsort label-769
SELECT DISTINCT + MAX ( DISTINCT + 40 ) AS col1, MIN ( - - 91 ) AS col0
----
40
91

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

onlyif mysql # DIV for integer division: 
query I rowsort label-771
SELECT ALL + + 77 DIV - 31
----
-2

skipif mysql # not compatible
query I rowsort label-771
SELECT ALL + + 77 / - 31
----
-2

query I rowsort
SELECT + - 59 + + 23 / 41 * CASE - + 74 WHEN - - ( 48 ) THEN 75 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-773
SELECT - + COALESCE ( 43, - - 96 + 57 + + 21 * + + 37 * COUNT( 21 ) ) + + + 30 col2
----
-13

skipif mysql # not compatible
query I rowsort label-773
SELECT - + COALESCE ( 43, - - 96 + 57 + + 21 * + + 37 * COUNT ( 21 ) ) + + + 30 col2
----
-13

query I rowsort
SELECT DISTINCT - + 64 * + 69
----
-4416

query I rowsort
SELECT ALL - 4 + - ( - 91 ) AS col2
----
87

query I rowsort
SELECT - + ( 92 ) + + 98 + + + 0 + + 43 col1
----
49

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

skipif mysql # not compatible
query I rowsort label-777
SELECT + + 93 - + 26 + AVG ( + CAST ( NULL AS INTEGER ) )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-778
SELECT + - 24 + - COUNT ( * ) AS col0
----
-25

query I rowsort
SELECT ALL 41 + - 95 + + 19 + - + 29 + - 20 AS col1
----
-84

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-782
SELECT DISTINCT - 10 + 57 + - - 63 * + + CAST( - + COUNT( * ) AS SIGNED ) + + 81 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-782
SELECT DISTINCT - 10 + 57 + - - 63 * + + CAST ( - + COUNT ( * ) AS INTEGER ) + + 81 AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-783
SELECT + 90 * + + 79 * + COUNT( * )
----
7110

skipif mysql # not compatible
query I rowsort label-783
SELECT + 90 * + + 79 * + COUNT ( * )
----
7110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-784
SELECT 98 / 69 + CAST( NULL AS SIGNED ) AS col2, - ( 80 ) * MAX( - 13 ) * + 52 * - COUNT( * ) + + - 84 + + 94
----
NULL
-54070

skipif mysql # not compatible
query II rowsort label-784
SELECT 98 / 69 + CAST ( NULL AS INTEGER ) AS col2, - ( 80 ) * MAX ( - 13 ) * + 52 * - COUNT ( * ) + + - 84 + + 94
----
NULL
-54070

onlyif mysql # DIV for integer division: 
query I rowsort label-785
SELECT + 42 DIV 58 col0
----
0

skipif mysql # not compatible
query I rowsort label-785
SELECT + 42 / 58 col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-786
SELECT + 98 DIV - 79 + + + 55
----
54

skipif mysql # not compatible
query I rowsort label-786
SELECT + 98 / - 79 + + + 55
----
54

query I rowsort
SELECT ( 73 ) AS col2
----
73

query I rowsort
SELECT DISTINCT COALESCE ( 10, + CASE + + 2 WHEN 24 THEN - 44 + 78 END ) * + + 25 - - 33 AS col0
----
283

query I rowsort
SELECT ALL 30 * 37
----
1110

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-790
SELECT + ( - COALESCE ( - NULLIF ( - 31, - 45 + - CAST( 32 AS DECIMAL ) * 56 * + 84 ), - - 49 + 60 ) )
----
-31

skipif mysql # not compatible
query I rowsort label-790
SELECT + ( - COALESCE ( - NULLIF ( - 31, - 45 + - CAST ( 32 AS REAL ) * 56 * + 84 ), - - 49 + 60 ) )
----
-31

query I rowsort
SELECT DISTINCT COALESCE ( + 20, + NULLIF ( 65, + 21 ) - - 47 ) * - 40 col2
----
-800

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

skipif mysql # not compatible
query I rowsort label-792
SELECT + COUNT ( * ) / 52 * + COUNT ( * )
----
0

query I rowsort
SELECT DISTINCT 76 * + 49 AS col0
----
3724

query II rowsort
SELECT ALL + 98, + ( + COALESCE ( + 84, + 70, - ( - - 80 ) ) ) AS col0
----
98
84

query I rowsort
SELECT ALL 94 * - 51 AS col2
----
-4794

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT + 17 + + - COUNT( * ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-796
SELECT + 17 + + - COUNT ( * ) AS col0
----
16

query I rowsort
SELECT + ( + 92 )
----
92

query I rowsort
SELECT ( + + 92 ) col0
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-799
SELECT + 9 * 73 + + CAST( 11 AS SIGNED )
----
668

skipif mysql # not compatible
query I rowsort label-799
SELECT + 9 * 73 + + CAST ( 11 AS INTEGER )
----
668

onlyif mysql # aggregate syntax: 
query I rowsort label-800
SELECT - ( + ( + 19 ) ) + - - 76 + - - 12 + MIN( 50 ) col2
----
119

skipif mysql # not compatible
query I rowsort label-800
SELECT - ( + ( + 19 ) ) + - - 76 + - - 12 + MIN ( 50 ) col2
----
119

query I rowsort
SELECT + ( - - 88 ) col2
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-802
SELECT CAST( NULL AS SIGNED ) * - 15 * + COUNT( * ) + + + COUNT( * ) + - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-802
SELECT CAST ( NULL AS INTEGER ) * - 15 * + COUNT ( * ) + + + COUNT ( * ) + - 43
----
NULL

query I rowsort
SELECT DISTINCT + 4 col2
----
4

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-806
SELECT DISTINCT - 27 * MAX( ALL 97 ) * - ( 26 )
----
68094

skipif mysql # not compatible
query I rowsort label-806
SELECT DISTINCT - 27 * MAX ( ALL 97 ) * - ( 26 )
----
68094

onlyif mysql # aggregate syntax: 
query II rowsort label-807
SELECT ALL - COUNT( * ) * + + ( - - 4 ) + + + COUNT( * ) + - - 46, - SUM( DISTINCT + + 88 ) * - - 66 + - - 16 AS col1
----
43
-5792

skipif mysql # not compatible
query II rowsort label-807
SELECT ALL - COUNT ( * ) * + + ( - - 4 ) + + + COUNT ( * ) + - - 46, - SUM ( DISTINCT + + 88 ) * - - 66 + - - 16 AS col1
----
43
-5792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-808
SELECT 63 * CASE WHEN NOT NULL > COUNT( * ) THEN + 13 WHEN NULL > AVG ( ALL - 83 ) THEN + + 94 END + - CAST( NULL AS SIGNED ) * + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-808
SELECT 63 * CASE WHEN NOT NULL > COUNT ( * ) THEN + 13 WHEN NULL > AVG ( ALL - 83 ) THEN + + 94 END + - CAST ( NULL AS INTEGER ) * + 77
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-809
SELECT + ( MIN( + ( - 77 ) ) ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-809
SELECT + ( MIN ( + ( - 77 ) ) ) AS col1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-810
SELECT DISTINCT + MAX( - 24 ) * 13 + + - 89 col1
----
-401

skipif mysql # not compatible
query I rowsort label-810
SELECT DISTINCT + MAX ( - 24 ) * 13 + + - 89 col1
----
-401

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-811
SELECT ALL + - NULLIF ( - + ( COUNT( * ) ), + COUNT( * ) * + + 43 * - 85 ) * - CAST( COUNT( * ) AS SIGNED ) + - 70 + COUNT( * )
----
-70

skipif mysql # not compatible
query I rowsort label-811
SELECT ALL + - NULLIF ( - + ( COUNT ( * ) ), + COUNT ( * ) * + + 43 * - 85 ) * - CAST ( COUNT ( * ) AS INTEGER ) + - 70 + COUNT ( * )
----
-70

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

skipif mysql # not compatible
query I rowsort label-812
SELECT - MIN ( + 86 )
----
-86

query I rowsort
SELECT ALL + 67 * - 78 * + 65 + - + 82
----
-339772

query I rowsort
SELECT - 72 * 73 col1
----
-5256

query I rowsort
SELECT - 42 + - - 16
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-816
SELECT DISTINCT - CASE - + COUNT( * ) WHEN - + NULLIF ( + 99, 0 + - 58 ) THEN - 36 ELSE NULL END * - 30 * + - 57 + 58 - - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-816
SELECT DISTINCT - CASE - + COUNT ( * ) WHEN - + NULLIF ( + 99, 0 + - 58 ) THEN - 36 ELSE NULL END * - 30 * + - 57 + 58 - - 21
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-817
SELECT DISTINCT + - 33 * + MAX( DISTINCT 8 ) * + + CASE + 46 WHEN 35 * 64 + - + 94 THEN 31 WHEN - 27 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-817
SELECT DISTINCT + - 33 * + MAX ( DISTINCT 8 ) * + + CASE + 46 WHEN 35 * 64 + - + 94 THEN 31 WHEN - 27 THEN NULL END
----
NULL

query I rowsort
SELECT ALL - + 62 + 79
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-819
SELECT DISTINCT + + 99 DIV - - 14 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-819
SELECT DISTINCT + + 99 / - - 14 AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-820
SELECT DISTINCT - ( + COUNT( ALL + 41 ) ) + - + 10
----
-11

skipif mysql # not compatible
query I rowsort label-820
SELECT DISTINCT - ( + COUNT ( ALL + 41 ) ) + - + 10
----
-11

query I rowsort
SELECT ALL + 50 * + 99 AS col1
----
4950

query I rowsort
SELECT - + 87 * - 22
----
1914

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-823
SELECT DISTINCT + ( + COUNT( * ) ) DIV - + 67
----
0

skipif mysql # not compatible
query I rowsort label-823
SELECT DISTINCT + ( + COUNT ( * ) ) / - + 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-824
SELECT MAX( 98 ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-824
SELECT MAX ( 98 ) AS col0
----
98

query I rowsort
SELECT + 72 * 68
----
4896

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-826
SELECT ALL 96 AS col0, 93 DIV CAST( - 99 AS SIGNED )
----
96
0

skipif mysql # not compatible
query II rowsort label-826
SELECT ALL 96 AS col0, 93 / CAST ( - 99 AS INTEGER )
----
96
0

onlyif mysql # aggregate syntax: 
query II rowsort label-827
SELECT - COUNT( * ) + - - ( + ( + - 70 ) ) AS col2, 86 - SUM( DISTINCT - + 32 ) + + 24
----
-71
142

skipif mysql # not compatible
query II rowsort label-827
SELECT - COUNT ( * ) + - - ( + ( + - 70 ) ) AS col2, 86 - SUM ( DISTINCT - + 32 ) + + 24
----
-71
142

onlyif mysql # aggregate syntax: 
query I rowsort label-828
SELECT ALL + MAX( DISTINCT + 89 ) - - 17
----
106

skipif mysql # not compatible
query I rowsort label-828
SELECT ALL + MAX ( DISTINCT + 89 ) - - 17
----
106

query I rowsort
SELECT DISTINCT + 21 * + - 33
----
-693

query I rowsort
SELECT - 36 * + 55 AS col2
----
-1980

onlyif mysql # aggregate syntax: 
query I rowsort label-831
SELECT ALL + COUNT( * ) * + COUNT( * ) * 16 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-831
SELECT ALL + COUNT ( * ) * + COUNT ( * ) * 16 AS col1
----
16

query II rowsort
SELECT ALL 56, - 37 + + 62 AS col1
----
56
25

onlyif mysql # aggregate syntax: 
query I rowsort label-833
SELECT DISTINCT + CASE + 87 WHEN - 8 THEN + 39 * - 1 WHEN + 34 * - - COUNT( * ) THEN - 74 + + 62 END - - 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-833
SELECT DISTINCT + CASE + 87 WHEN - 8 THEN + 39 * - 1 WHEN + 34 * - - COUNT ( * ) THEN - 74 + + 62 END - - 83 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-834
SELECT DISTINCT - 30 AS col1, + 15 DIV + 25 AS col2
----
-30
0

skipif mysql # not compatible
query II rowsort label-834
SELECT DISTINCT - 30 AS col1, + 15 / + 25 AS col2
----
-30
0

onlyif mysql # aggregate syntax: 
query I rowsort label-835
SELECT CASE - + 78 WHEN + 71 THEN - COUNT( * ) * 82 + + - 56 * - COUNT( * ) - - 26 WHEN - + 29 THEN NULL WHEN + MIN( - 16 ) * 28 THEN NULL ELSE NULL END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-835
SELECT CASE - + 78 WHEN + 71 THEN - COUNT ( * ) * 82 + + - 56 * - COUNT ( * ) - - 26 WHEN - + 29 THEN NULL WHEN + MIN ( - 16 ) * 28 THEN NULL ELSE NULL END * + COUNT ( * )
----
NULL

query III rowsort
SELECT 43, 1 col0, - - 63 AS col2
----
43
1
63

onlyif mysql # aggregate syntax: 
query II rowsort label-837
SELECT + 21 AS col0, NULLIF ( + NULLIF ( 50, + + MAX( - 53 ) * COUNT( * ) + - ( + COUNT( * ) ) + - ( 86 ) ), 41 ) col0
----
21
50

skipif mysql # not compatible
query II rowsort label-837
SELECT + 21 AS col0, NULLIF ( + NULLIF ( 50, + + MAX ( - 53 ) * COUNT ( * ) + - ( + COUNT ( * ) ) + - ( 86 ) ), 41 ) col0
----
21
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-838
SELECT 49, + ( + 3 ) DIV - 42 + + COUNT( * ) * 41 * - 46 * - - 47 * 23 + + ( NULLIF ( 41, 71 ) ) * - ( + COUNT( * ) ) col1
----
49
-2038807

skipif mysql # not compatible
query II rowsort label-838
SELECT 49, + ( + 3 ) / - 42 + + COUNT ( * ) * 41 * - 46 * - - 47 * 23 + + ( NULLIF ( 41, 71 ) ) * - ( + COUNT ( * ) ) col1
----
49
-2038807

query II rowsort
SELECT ALL - 36, 85 + 10 AS col0
----
-36
95

query II rowsort
SELECT + 32 AS col1, 10
----
32
10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-841
SELECT ALL COUNT( * ) * 89 * - 90 / + CAST( NULL AS DECIMAL ) AS col2, - 1 + + + 11 AS col1
----
NULL
10

skipif mysql # not compatible
query II rowsort label-841
SELECT ALL COUNT ( * ) * 89 * - 90 / + CAST ( NULL AS REAL ) AS col2, - 1 + + + 11 AS col1
----
NULL
10

query I rowsort
SELECT ALL 28 * - 82
----
-2296

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-843
SELECT ALL NULLIF ( - 75, + + 61 * - 76 - - 93 + - - 60 * + COUNT( ALL CAST( - 34 AS SIGNED ) ) * 69 * - ( 61 ) * COUNT( * ) ) + 63
----
-12

skipif mysql # not compatible
query I rowsort label-843
SELECT ALL NULLIF ( - 75, + + 61 * - 76 - - 93 + - - 60 * + COUNT ( ALL CAST ( - 34 AS INTEGER ) ) * 69 * - ( 61 ) * COUNT ( * ) ) + 63
----
-12

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

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

query I rowsort
SELECT DISTINCT 46 * + 85
----
3910

onlyif mysql # DIV for integer division: 
query I rowsort label-846
SELECT ALL - 41 + - - 3 + 22 + - 32 DIV + 17
----
-17

skipif mysql # not compatible
query I rowsort label-846
SELECT ALL - 41 + - - 3 + 22 + - 32 / + 17
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-847
SELECT - 91 col0, - COUNT( * )
----
-91
-1

skipif mysql # not compatible
query II rowsort label-847
SELECT - 91 col0, - COUNT ( * )
----
-91
-1

query II rowsort
SELECT ALL - 42 AS col2, 11 AS col2
----
-42
11

onlyif mysql # DIV for integer division: 
query II rowsort label-849
SELECT 29 DIV - + 12 col1, - 26 col1
----
-2
-26

skipif mysql # not compatible
query II rowsort label-849
SELECT 29 / - + 12 col1, - 26 col1
----
-2
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-850
SELECT ALL 73 + NULLIF ( + 37, - 74 * - NULLIF ( - 80, + 15 / - - 20 + - + 32 - - COALESCE ( + NULLIF ( - 86, + 54 * + 97 + MAX( DISTINCT + 75 ) ), + 94 + 94, 99 ) - + 7 * + CASE 86 WHEN 55 THEN NULL WHEN - 83 * 25 + 46 THEN + 32 END + + 54 ) ) + 83 * - 82
----
-6696

skipif mysql # not compatible
query I rowsort label-850
SELECT ALL 73 + NULLIF ( + 37, - 74 * - NULLIF ( - 80, + 15 / - - 20 + - + 32 - - COALESCE ( + NULLIF ( - 86, + 54 * + 97 + MAX ( DISTINCT + 75 ) ), + 94 + 94, 99 ) - + 7 * + CASE 86 WHEN 55 THEN NULL WHEN - 83 * 25 + 46 THEN + 32 END + + 54 ) ) + 83 * - 82
----
-6696

query I rowsort
SELECT 63 + 31
----
94

query I rowsort
SELECT 9 + - 85
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-853
SELECT - + COUNT( * ) * + COUNT( 88 ) DIV - + COUNT( * ) + 44 * + - 37 + - ( + 52 ) + 19 col1
----
-1660

skipif mysql # not compatible
query I rowsort label-853
SELECT - + COUNT ( * ) * + COUNT ( 88 ) / - + COUNT ( * ) + 44 * + - 37 + - ( + 52 ) + 19 col1
----
-1660

onlyif mysql # aggregate syntax: 
query I rowsort label-854
SELECT ALL - MAX( ALL + 95 ) + - CASE COUNT( * ) WHEN + NULLIF ( - CASE - - 27 WHEN + 89 THEN + COUNT( * ) * - 15 WHEN 24 THEN 63 ELSE NULL END, + 84 * - AVG ( 60 * + 10 ) ) * - 12 THEN 62 WHEN 0 THEN 93 / + 74 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-854
SELECT ALL - MAX ( ALL + 95 ) + - CASE COUNT ( * ) WHEN + NULLIF ( - CASE - - 27 WHEN + 89 THEN + COUNT ( * ) * - 15 WHEN 24 THEN 63 ELSE NULL END, + 84 * - AVG ( 60 * + 10 ) ) * - 12 THEN 62 WHEN 0 THEN 93 / + 74 END AS col2
----
NULL

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

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

query I rowsort
SELECT DISTINCT + + 97 * + 42 AS col1
----
4074

query I rowsort
SELECT ALL - + 35 + 20
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-858
SELECT - CAST( NULL AS SIGNED ) * + COUNT( * ) + - 62 + 40 * + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-858
SELECT - CAST ( NULL AS INTEGER ) * + COUNT ( * ) + - 62 + 40 * + 48
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-859
SELECT CASE 73 WHEN ( - - 20 ) THEN + 43 ELSE + CASE - 15 WHEN + COUNT( * ) * - 58 * CASE - - CAST( NULL AS SIGNED ) WHEN ( COUNT( * ) ) THEN COUNT( - 12 ) WHEN - 82 THEN NULL ELSE 37 / 45 END THEN CASE 57 WHEN 29 THEN + NULLIF ( COUNT( * ), 84 + - 21 ) WHEN + 53 + - 94 THEN + COALESCE ( 36, COUNT( * ) + - 73 ) + ( 25 ) * 51 WHEN 28 + 57 THEN NULL ELSE + 13 * - ( - ( 61 ) ) END WHEN 83 + ( + 37 + + COUNT( * ) * 8 ) THEN NULL END END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-859
SELECT CASE 73 WHEN ( - - 20 ) THEN + 43 ELSE + CASE - 15 WHEN + COUNT ( * ) * - 58 * CASE - - CAST ( NULL AS INTEGER ) WHEN ( COUNT ( * ) ) THEN COUNT ( - 12 ) WHEN - 82 THEN NULL ELSE 37 / 45 END THEN CASE 57 WHEN 29 THEN + NULLIF ( COUNT ( * ), 84 + - 21 ) WHEN + 53 + - 94 THEN + COALESCE ( 36, COUNT ( * ) + - 73 ) + ( 25 ) * 51 WHEN 28 + 57 THEN NULL ELSE + 13 * - ( - ( 61 ) ) END WHEN 83 + ( + 37 + + COUNT ( * ) * 8 ) THEN NULL END END + - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 76 + - 22
----
54

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

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

query I rowsort
SELECT ( + 81 ) AS col0
----
81

query I rowsort
SELECT 70 + - - ( + 73 )
----
143

query I rowsort
SELECT ALL + - 55 * - 88 AS col1
----
4840

onlyif mysql # aggregate syntax: 
query I rowsort label-865
SELECT 57 + - 10 * - NULLIF ( + 90, - + 41 / - + 13 + + 46 * - ( + - 27 ) ) + - NULLIF ( 60, 88 + + COUNT( * ) )
----
897

skipif mysql # not compatible
query I rowsort label-865
SELECT 57 + - 10 * - NULLIF ( + 90, - + 41 / - + 13 + + 46 * - ( + - 27 ) ) + - NULLIF ( 60, 88 + + COUNT ( * ) )
----
897

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

skipif mysql # not compatible
query I rowsort label-866
SELECT COUNT ( * ) * COUNT ( * ) / + - 61 * - 43 AS col2
----
0

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-869
SELECT 66 + - 62 DIV - 16 AS col0, + 8 DIV - 61 * + ( - 15 ) AS col0
----
69
0

skipif mysql # not compatible
query II rowsort label-869
SELECT 66 + - 62 / - 16 AS col0, + 8 / - 61 * + ( - 15 ) AS col0
----
69
0

query I rowsort
SELECT ALL - 45 - - 23 AS col1
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-871
SELECT 37 DIV - 52 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-871
SELECT 37 / - 52 AS col2
----
0

query I rowsort
SELECT 72 * 61
----
4392

onlyif mysql # DIV for integer division: 
query I rowsort label-873
SELECT ALL - 36 DIV 11
----
-3

skipif mysql # not compatible
query I rowsort label-873
SELECT ALL - 36 / 11
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-874
SELECT 53 + + 76 + - SUM( DISTINCT + 73 ) + - + MAX( 1 ) * + - COUNT( * ) * + - 72 AS col2, 13 col2
----
-16
13

skipif mysql # not compatible
query II rowsort label-874
SELECT 53 + + 76 + - SUM ( DISTINCT + 73 ) + - + MAX ( 1 ) * + - COUNT ( * ) * + - 72 AS col2, 13 col2
----
-16
13

onlyif mysql # aggregate syntax: 
query II rowsort label-875
SELECT DISTINCT + 63 * - 14, - MIN( 19 ) col1
----
-882
-19

skipif mysql # not compatible
query II rowsort label-875
SELECT DISTINCT + 63 * - 14, - MIN ( 19 ) col1
----
-882
-19

query I rowsort
SELECT 72 * ( + + 33 ) AS col1
----
2376

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-877
SELECT ALL - 18 + + - 78 AS col0, CAST( NULL AS SIGNED )
----
-96
NULL

skipif mysql # not compatible
query II rowsort label-877
SELECT ALL - 18 + + - 78 AS col0, CAST ( NULL AS INTEGER )
----
-96
NULL

query II rowsort
SELECT ALL 34 + + 58 AS col2, - ( - 74 ) AS col0
----
92
74

query I rowsort
SELECT ALL + 46 * + 25
----
1150

onlyif mysql # aggregate syntax: 
query I rowsort label-880
SELECT MAX( + + 88 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-880
SELECT MAX ( + + 88 ) AS col1
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-881
SELECT ALL - 41 + + 81 + - 28 + 18 - + CASE + COUNT( * ) WHEN + 97 THEN - 48 * + + CAST( NULL AS SIGNED ) * + + COALESCE ( - - 27, - 88 ) WHEN + 4 THEN NULL WHEN + ( 50 ) * 67 THEN + ( - COUNT( * ) ) END + 70 * 26
----
NULL

skipif mysql # not compatible
query I rowsort label-881
SELECT ALL - 41 + + 81 + - 28 + 18 - + CASE + COUNT ( * ) WHEN + 97 THEN - 48 * + + CAST ( NULL AS INTEGER ) * + + COALESCE ( - - 27, - 88 ) WHEN + 4 THEN NULL WHEN + ( 50 ) * 67 THEN + ( - COUNT ( * ) ) END + 70 * 26
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-882
SELECT + 27 * + 62 AS col2, 4 * - - 55 * + ( - 26 ) * + COUNT( * ) * - 32 AS col2
----
1674
183040

skipif mysql # not compatible
query II rowsort label-882
SELECT + 27 * + 62 AS col2, 4 * - - 55 * + ( - 26 ) * + COUNT ( * ) * - 32 AS col2
----
1674
183040

onlyif mysql # aggregate syntax: 
query I rowsort label-883
SELECT ALL + ( - + 57 ) * + COUNT( * ) - - - 13
----
-70

skipif mysql # not compatible
query I rowsort label-883
SELECT ALL + ( - + 57 ) * + COUNT ( * ) - - - 13
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-884
SELECT ALL - + 91 + SUM( DISTINCT + + 50 )
----
-41

skipif mysql # not compatible
query I rowsort label-884
SELECT ALL - + 91 + SUM ( DISTINCT + + 50 )
----
-41

query II rowsort
SELECT DISTINCT + + 28 + + 28 AS col2, + ( - 81 ) AS col2
----
56
-81

query II rowsort
SELECT + ( + 35 ), 73 + CASE - 86 WHEN - - 31 THEN + 0 END AS col2
----
35
NULL

query I rowsort
SELECT ALL 7 + + - 54 AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-888
SELECT 34 * - COUNT( ALL + 16 )
----
-34

skipif mysql # not compatible
query I rowsort label-888
SELECT 34 * - COUNT ( ALL + 16 )
----
-34

query I rowsort
SELECT + ( + 60 ) * - 18 * + 53 AS col0
----
-57240

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-891
SELECT - SUM( ALL - - 88 ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-891
SELECT - SUM ( ALL - - 88 ) AS col0
----
-88

query II rowsort
SELECT 3 * + + 85 AS col1, 32 AS col1
----
255
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-893
SELECT DISTINCT + CASE - 92 WHEN 99 THEN - + 71 * + 62 * - CAST( NULL AS SIGNED ) * - + 84 WHEN - 81 THEN + + ( - - 39 ) END - + 8 / - + 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-893
SELECT DISTINCT + CASE - 92 WHEN 99 THEN - + 71 * + 62 * - CAST ( NULL AS INTEGER ) * - + 84 WHEN - 81 THEN + + ( - - 39 ) END - + 8 / - + 16 AS col0
----
NULL

query I rowsort
SELECT ALL + 49 * 48 col1
----
2352

onlyif mysql # aggregate syntax: 
query II rowsort label-895
SELECT 74 AS col2, COUNT( DISTINCT - - 70 ) * 75 + - 40 AS col2
----
74
35

skipif mysql # not compatible
query II rowsort label-895
SELECT 74 AS col2, COUNT ( DISTINCT - - 70 ) * 75 + - 40 AS col2
----
74
35

query II rowsort
SELECT - 54 AS col1, - 87
----
-54
-87

query I rowsort
SELECT ALL 71 * - 91
----
-6461

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

skipif mysql # not compatible
query I rowsort label-898
SELECT ALL MAX ( 68 )
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-899
SELECT + MIN( DISTINCT + 67 ) + + 60 + + COUNT( * ) + - - 54 + - - COUNT( 81 ) + + 15 * COUNT( * ) + 57 + - 1 DIV + 47
----
255

skipif mysql # not compatible
query I rowsort label-899
SELECT + MIN ( DISTINCT + 67 ) + + 60 + + COUNT ( * ) + - - 54 + - - COUNT ( 81 ) + + 15 * COUNT ( * ) + 57 + - 1 / + 47
----
255

query I rowsort
SELECT - CASE - + ( - - 24 ) WHEN - - 64 THEN NULL ELSE + 87 END AS col2
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-901
SELECT DISTINCT ( + + COUNT( * ) ) + + CAST( - - 98 AS SIGNED ) * - ( + 44 ) AS col1
----
-4311

skipif mysql # not compatible
query I rowsort label-901
SELECT DISTINCT ( + + COUNT ( * ) ) + + CAST ( - - 98 AS INTEGER ) * - ( + 44 ) AS col1
----
-4311

query I rowsort
SELECT DISTINCT - 5 + - 76 AS col1
----
-81

query I rowsort
SELECT ALL + 41 + 61 AS col1
----
102

query I rowsort
SELECT - 99 - + ( - 60 )
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-905
SELECT DISTINCT COUNT( - 66 ) * - CAST( NULL AS SIGNED ) - - + 31 + + + MAX( ALL + 56 )
----
NULL

skipif mysql # not compatible
query I rowsort label-905
SELECT DISTINCT COUNT ( - 66 ) * - CAST ( NULL AS INTEGER ) - - + 31 + + + MAX ( ALL + 56 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-906
SELECT + 87 AS col2, NULLIF ( + + 35, + + SUM( DISTINCT + 82 ) + - 44 )
----
87
35

skipif mysql # not compatible
query II rowsort label-906
SELECT + 87 AS col2, NULLIF ( + + 35, + + SUM ( DISTINCT + 82 ) + - 44 )
----
87
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-907
SELECT - MIN( DISTINCT 67 ) * + - 84 AS col0, CAST( - 66 AS SIGNED ) AS col1
----
5628
-66

skipif mysql # not compatible
query II rowsort label-907
SELECT - MIN ( DISTINCT 67 ) * + - 84 AS col0, CAST ( - 66 AS INTEGER ) AS col1
----
5628
-66

query I rowsort
SELECT NULLIF ( - 57, 22 - + 79 )
----
NULL

query II rowsort
SELECT + - 43 AS col2, 7 AS col0
----
-43
7

query I rowsort
SELECT ALL + - 55 * - 89 * + - 18 AS col2
----
-88110

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-911
SELECT + + CAST( NULL AS SIGNED ), + CAST( NULL AS SIGNED ) * ( 47 ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-911
SELECT + + CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) * ( 47 ) AS col2
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-912
SELECT ALL + 90 * + - 11 * + 23 * + + 25 + - + 39 DIV - 17, 6 * + 95 AS col1
----
-569248
570

skipif mysql # not compatible
query II rowsort label-912
SELECT ALL + 90 * + - 11 * + 23 * + + 25 + - + 39 / - 17, 6 * + 95 AS col1
----
-569248
570

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-913
SELECT ALL + + 69, 50 * SUM( 87 ) DIV + 89 col1
----
69
48

skipif mysql # not compatible
query II rowsort label-913
SELECT ALL + + 69, 50 * SUM ( 87 ) / + 89 col1
----
69
48

query II rowsort
SELECT + 27 AS col1, ( + + 51 )
----
27
51

query I rowsort
SELECT ALL - - 76 * - - 50 * - 26 * - 4 + - 11 AS col1
----
395189

query II rowsort
SELECT - 34 * + - 39 - - 92, 91 AS col2
----
1418
91

onlyif mysql # aggregate syntax: 
query I rowsort label-917
SELECT DISTINCT + + NULLIF ( 10, - 80 * COUNT( * ) * + - 56 )
----
10

skipif mysql # not compatible
query I rowsort label-917
SELECT DISTINCT + + NULLIF ( 10, - 80 * COUNT ( * ) * + - 56 )
----
10

query I rowsort
SELECT - 61 * + 95
----
-5795

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-919
SELECT ALL - 4 * - 74 + - 22 * + CASE + MAX( + CAST( ( 87 ) AS SIGNED ) ) WHEN + SUM( 51 ) / - 44 + - + 19 * + 90 + 1 THEN + NULLIF ( 80, - 36 ) + COALESCE ( + CAST( NULL AS SIGNED ), 35 ) ELSE NULL END * - 60 - + 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-919
SELECT ALL - 4 * - 74 + - 22 * + CASE + MAX ( + CAST ( ( 87 ) AS INTEGER ) ) WHEN + SUM ( 51 ) / - 44 + - + 19 * + 90 + 1 THEN + NULLIF ( 80, - 36 ) + COALESCE ( + CAST ( NULL AS INTEGER ), 35 ) ELSE NULL END * - 60 - + 89 AS col1
----
NULL

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

query I rowsort
SELECT DISTINCT - - 13 * - NULLIF ( + 5, - 90 ) * 70 - + ( - 56 ) AS col0
----
-4494

query I rowsort
SELECT - 18 * - 5 * 73 * - 52 AS col0
----
-341640

query I rowsort
SELECT ALL + + 58 col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-924
SELECT - + COUNT( * ) + MIN( - - 44 ) + + + 13
----
56

skipif mysql # not compatible
query I rowsort label-924
SELECT - + COUNT ( * ) + MIN ( - - 44 ) + + + 13
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-925
SELECT + - 50 * - + 75 * - 82 * - - MIN( + + 50 ) + - 20
----
-15375020

skipif mysql # not compatible
query I rowsort label-925
SELECT + - 50 * - + 75 * - 82 * - - MIN ( + + 50 ) + - 20
----
-15375020

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-927
SELECT - - 39 + - NULLIF ( + 62, 42 + + + MAX( ALL 61 ) ) + + 22
----
-1

skipif mysql # not compatible
query I rowsort label-927
SELECT - - 39 + - NULLIF ( + 62, 42 + + + MAX ( ALL 61 ) ) + + 22
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-928
SELECT ALL + - COUNT( * ), COUNT( * ) - - - CASE + 27 WHEN - - 96 THEN 12 WHEN 21 - - 87 + + 34 THEN + 69 * 83 WHEN + 60 * 96 THEN NULL END + CAST( NULL AS SIGNED ) AS col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-928
SELECT ALL + - COUNT ( * ), COUNT ( * ) - - - CASE + 27 WHEN - - 96 THEN 12 WHEN 21 - - 87 + + 34 THEN + 69 * 83 WHEN + 60 * 96 THEN NULL END + CAST ( NULL AS INTEGER ) AS col0
----
-1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-929
SELECT - + ( + CASE - ( 23 ) WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN - 40 + - 94 THEN - ( + + MAX( 95 ) ) END ) * + 88 + - 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-929
SELECT - + ( + CASE - ( 23 ) WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN - 40 + - 94 THEN - ( + + MAX ( 95 ) ) END ) * + 88 + - 86 AS col1
----
NULL

query I rowsort
SELECT + 82 * - - 57 AS col1
----
4674

onlyif mysql # aggregate syntax: 
query I rowsort label-931
SELECT + ( - + 81 ) * - MIN( DISTINCT - 99 ) + NULLIF ( + 30, COUNT( ALL 24 ) - + 69 ) + + 65 AS col1
----
-7924

skipif mysql # not compatible
query I rowsort label-931
SELECT + ( - + 81 ) * - MIN ( DISTINCT - 99 ) + NULLIF ( + 30, COUNT ( ALL 24 ) - + 69 ) + + 65 AS col1
----
-7924

query I rowsort
SELECT ALL + 67 * + + 67 * - 15
----
-67335

onlyif mysql # aggregate syntax: 
query I rowsort label-933
SELECT - MAX( + - 82 ) col2
----
82

skipif mysql # not compatible
query I rowsort label-933
SELECT - MAX ( + - 82 ) col2
----
82

query I rowsort
SELECT DISTINCT 13 * - + 33 * - + 98
----
42042

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-935
SELECT + 42 + COUNT( * ) * 73 DIV 52 AS col2, - ( - + 20 )
----
43
20

skipif mysql # not compatible
query II rowsort label-935
SELECT + 42 + COUNT ( * ) * 73 / 52 AS col2, - ( - + 20 )
----
43
20

query I rowsort
SELECT + 53 + 60 + 84
----
197

onlyif mysql # aggregate syntax: 
query I rowsort label-937
SELECT + 59 - - - COUNT( * ) col1
----
58

skipif mysql # not compatible
query I rowsort label-937
SELECT + 59 - - - COUNT ( * ) col1
----
58

query I rowsort
SELECT + 71 * 67
----
4757

onlyif mysql # aggregate syntax: 
query I rowsort label-939
SELECT DISTINCT 77 + + - COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-939
SELECT DISTINCT 77 + + - COUNT ( * )
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-940
SELECT + 6 * + 61 DIV 58
----
6

skipif mysql # not compatible
query I rowsort label-940
SELECT + 6 * + 61 / 58
----
6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-942
SELECT ALL + CASE + COUNT( * ) WHEN MIN( + 13 ) THEN + 70 ELSE NULL END + - 61 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-942
SELECT ALL + CASE + COUNT ( * ) WHEN MIN ( + 13 ) THEN + 70 ELSE NULL END + - 61 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-943
SELECT - CAST( - + 76 AS SIGNED )
----
76

skipif mysql # not compatible
query I rowsort label-943
SELECT - CAST ( - + 76 AS INTEGER )
----
76

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

skipif mysql # not compatible
query I rowsort label-944
SELECT DISTINCT 23 + + 88 + - COUNT ( * ) / - COUNT ( * )
----
112

query I rowsort
SELECT - ( + + 63 )
----
-63

query I rowsort
SELECT ALL 99 + - 70 AS col2
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-947
SELECT ALL MIN( ALL - + 4 ) + SUM( ALL - + 31 ) + - - CASE - 57 WHEN + ( + 65 ) + + 48 THEN + ( + - 29 ) + + CAST( NULL AS SIGNED ) / - + NULLIF ( + 26, + 59 ) WHEN 60 THEN 62 / 40 END + - NULLIF ( 66, + COUNT( * ) ) * 41
----
NULL

skipif mysql # not compatible
query I rowsort label-947
SELECT ALL MIN ( ALL - + 4 ) + SUM ( ALL - + 31 ) + - - CASE - 57 WHEN + ( + 65 ) + + 48 THEN + ( + - 29 ) + + CAST ( NULL AS INTEGER ) / - + NULLIF ( + 26, + 59 ) WHEN 60 THEN 62 / 40 END + - NULLIF ( 66, + COUNT ( * ) ) * 41
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-948
SELECT + CAST( - 24 AS SIGNED ) + + 54 + 82 * - + 6 * - 93 AS col1
----
45786

skipif mysql # not compatible
query I rowsort label-948
SELECT + CAST ( - 24 AS INTEGER ) + + 54 + 82 * - + 6 * - 93 AS col1
----
45786

onlyif mysql # aggregate syntax: 
query II rowsort label-949
SELECT + COUNT( * ) * + COUNT( * ) AS col0, COUNT( * ) + + 41 + - + NULLIF ( 29, - + 80 ) AS col1
----
1
13

skipif mysql # not compatible
query II rowsort label-949
SELECT + COUNT ( * ) * + COUNT ( * ) AS col0, COUNT ( * ) + + 41 + - + NULLIF ( 29, - + 80 ) AS col1
----
1
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-950
SELECT + MIN( - 40 ) + - 86 - ( + - 38 ) - CAST( + - 26 AS SIGNED ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-950
SELECT + MIN ( - 40 ) + - 86 - ( + - 38 ) - CAST ( + - 26 AS INTEGER ) AS col1
----
-62

query I rowsort
SELECT ALL 63 * 12 * + - 82
----
-61992

onlyif mysql # DIV for integer division: 
query I rowsort label-952
SELECT ALL - - 32 DIV + 89 - + - 51 * - 2 + 61 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-952
SELECT ALL - - 32 / + 89 - + - 51 * - 2 + 61 AS col1
----
-41

query I rowsort
SELECT - 36 * - - 20
----
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-954
SELECT - COUNT( * ) * 80 * + ( COALESCE ( - + 9, + 26, + + 29 ) ) + + 28 * + NULLIF ( COUNT( * ), 56 )
----
748

skipif mysql # not compatible
query I rowsort label-954
SELECT - COUNT ( * ) * 80 * + ( COALESCE ( - + 9, + 26, + + 29 ) ) + + 28 * + NULLIF ( COUNT ( * ), 56 )
----
748

onlyif mysql # aggregate syntax: 
query II rowsort label-955
SELECT + + MIN( - 54 ), 9 AS col2
----
-54
9

skipif mysql # not compatible
query II rowsort label-955
SELECT + + MIN ( - 54 ), 9 AS col2
----
-54
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-956
SELECT + NULLIF ( + 1, + CAST( NULL AS SIGNED ) - - 41 )
----
1

skipif mysql # not compatible
query I rowsort label-956
SELECT + NULLIF ( + 1, + CAST ( NULL AS INTEGER ) - - 41 )
----
1

query I rowsort
SELECT + + 34 * + 35 * + 52
----
61880

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

onlyif mysql # DIV for integer division: 
query I rowsort label-959
SELECT ALL + + 23 DIV 49 - - - 79
----
-79

skipif mysql # not compatible
query I rowsort label-959
SELECT ALL + + 23 / 49 - - - 79
----
-79

query I rowsort
SELECT + - 59 * - + 23
----
1357

query II rowsort
SELECT - 95 + 35 AS col2, 84 * + 62 * + 4 - + + 76
----
-60
20756

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-962
SELECT - 52 * + NULLIF ( MAX( DISTINCT + 23 ), - 47 ) + - CAST( 34 AS SIGNED ) + 28 * + 83 col1, 72 + + ( + 9 ) AS col1, + 93
----
1094
81
93

skipif mysql # not compatible
query III rowsort label-962
SELECT - 52 * + NULLIF ( MAX ( DISTINCT + 23 ), - 47 ) + - CAST ( 34 AS INTEGER ) + 28 * + 83 col1, 72 + + ( + 9 ) AS col1, + 93
----
1094
81
93

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

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

query I rowsort
SELECT DISTINCT - + 14 AS col0
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-965
SELECT + ( + 72 ) * - 41 * 47 + + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-965
SELECT + ( + 72 ) * - 41 * 47 + + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-966
SELECT ALL + 86 + 23 * - + 77 * CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-966
SELECT ALL + 86 + 23 * - + 77 * CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT 56 * + + 19
----
1064

onlyif mysql # DIV for integer division: 
query II rowsort label-968
SELECT ALL + 13 DIV CASE 5 WHEN 77 - - 95 THEN + 4 ELSE ( 50 ) + - 52 END * - 90 AS col1, + ( 66 ) * - 63 + + - 28 + + 21 - 0 * + 24
----
540
-4165

skipif mysql # not compatible
query II rowsort label-968
SELECT ALL + 13 / CASE 5 WHEN 77 - - 95 THEN + 4 ELSE ( 50 ) + - 52 END * - 90 AS col1, + ( 66 ) * - 63 + + - 28 + + 21 - 0 * + 24
----
540
-4165

query I rowsort
SELECT ALL 24 + + 43 + - 19 * - - 43
----
-750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-970
SELECT ALL 18 + + ( - - CAST( NULL AS SIGNED ) ) * - - AVG ( 47 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-970
SELECT ALL 18 + + ( - - CAST ( NULL AS INTEGER ) ) * - - AVG ( 47 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-971
SELECT MAX( DISTINCT + 20 ) * - 32 * + 17 AS col2
----
-10880

skipif mysql # not compatible
query I rowsort label-971
SELECT MAX ( DISTINCT + 20 ) * - 32 * + 17 AS col2
----
-10880

query I rowsort
SELECT ALL - 59 + 17
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-973
SELECT DISTINCT SUM( - 45 ) + - 7
----
-52

skipif mysql # not compatible
query I rowsort label-973
SELECT DISTINCT SUM ( - 45 ) + - 7
----
-52

query I rowsort
SELECT DISTINCT + 96 * - - 69 AS col2
----
6624

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-975
SELECT 71 * + COALESCE ( + 16, + SUM( 93 ) + - - 82, + 78 * COALESCE ( + - COALESCE ( + + 81, 11 ), - - 82 ) DIV AVG ( ALL - 94 ) + 92 ) * 2
----
2272

skipif mysql # not compatible
query I rowsort label-975
SELECT 71 * + COALESCE ( + 16, + SUM ( 93 ) + - - 82, + 78 * COALESCE ( + - COALESCE ( + + 81, 11 ), - - 82 ) / AVG ( ALL - 94 ) + 92 ) * 2
----
2272

query I rowsort
SELECT ALL 58 + + - 40
----
18

query I rowsort
SELECT 81 + - 99 + - 1 * 56
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-978
SELECT CASE - + COALESCE ( + 67, 49 + + 80 + + 9 * - 55 * 77 ) WHEN + COUNT( * ) + + + 36 THEN 33 * CASE + 20 WHEN - - 83 / 24 * 95 + COALESCE ( 84, 67 ) * 94 + 79 * 87 THEN MIN( + CASE 35 WHEN + 54 THEN + COALESCE ( - CASE 74 WHEN - ( - 39 ) THEN NULL WHEN - 39 THEN 75 * 99 + + 26 ELSE NULL END, - 27 ) WHEN - 53 THEN NULL END ) WHEN + 18 THEN NULL WHEN - 80 + 97 / 59 THEN 21 * - 87 ELSE NULL END END + + 9 * 59
----
NULL

skipif mysql # not compatible
query I rowsort label-978
SELECT CASE - + COALESCE ( + 67, 49 + + 80 + + 9 * - 55 * 77 ) WHEN + COUNT ( * ) + + + 36 THEN 33 * CASE + 20 WHEN - - 83 / 24 * 95 + COALESCE ( 84, 67 ) * 94 + 79 * 87 THEN MIN ( + CASE 35 WHEN + 54 THEN + COALESCE ( - CASE 74 WHEN - ( - 39 ) THEN NULL WHEN - 39 THEN 75 * 99 + + 26 ELSE NULL END, - 27 ) WHEN - 53 THEN NULL END ) WHEN + 18 THEN NULL WHEN - 80 + 97 / 59 THEN 21 * - 87 ELSE NULL END END + + 9 * 59
----
NULL

query II rowsort
SELECT - 84 AS col1, + 75 * - 78 * + - 60
----
-84
351000

query I rowsort
SELECT 0 + 82 AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-981
SELECT ALL - 24 - + COUNT( * ) col2
----
-25

skipif mysql # not compatible
query I rowsort label-981
SELECT ALL - 24 - + COUNT ( * ) col2
----
-25

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-982
SELECT ALL + 29 - - + COALESCE ( 69, 95 + 3 + - - NULLIF ( + ( + + 75 ), CAST( - CAST( - NULLIF ( CAST( NULL AS SIGNED ), + - 8 ) AS SIGNED ) AS SIGNED ) ) * + + 72 * ( 39 ) DIV - 71 )
----
98

skipif mysql # not compatible
query I rowsort label-982
SELECT ALL + 29 - - + COALESCE ( 69, 95 + 3 + - - NULLIF ( + ( + + 75 ), CAST ( - CAST ( - NULLIF ( CAST ( NULL AS INTEGER ), + - 8 ) AS INTEGER ) AS INTEGER ) ) * + + 72 * ( 39 ) / - 71 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-983
SELECT 22 - COUNT( 17 )
----
21

skipif mysql # not compatible
query I rowsort label-983
SELECT 22 - COUNT ( 17 )
----
21

query I rowsort
SELECT + 73 * - 21
----
-1533

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-985
SELECT + COUNT( * ) / + 98 + - - 97 + + SUM( CAST( NULL AS SIGNED ) ) AS col1, + 11 + + 4
----
NULL
15

skipif mysql # not compatible
query II rowsort label-985
SELECT + COUNT ( * ) / + 98 + - - 97 + + SUM ( CAST ( NULL AS INTEGER ) ) AS col1, + 11 + + 4
----
NULL
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-986
SELECT CAST( NULL AS SIGNED ) / - 65 + + 83 - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-986
SELECT CAST ( NULL AS INTEGER ) / - 65 + + 83 - 42
----
NULL

query I rowsort
SELECT 1 * 53
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-988
SELECT - COUNT( 90 ) * 78
----
-78

skipif mysql # not compatible
query I rowsort label-988
SELECT - COUNT ( 90 ) * 78
----
-78

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-989
SELECT ALL CAST( NULL AS DECIMAL ) * - - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-989
SELECT ALL CAST ( NULL AS REAL ) * - - 90
----
NULL

query I rowsort
SELECT + + 75 col1
----
75

query II rowsort
SELECT ALL - 11 AS col2, 40 AS col1
----
-11
40

onlyif mysql # aggregate syntax: 
query I rowsort label-992
SELECT MIN( + 85 ) * + 20 + 86 AS col1
----
1786

skipif mysql # not compatible
query I rowsort label-992
SELECT MIN ( + 85 ) * + 20 + 86 AS col1
----
1786

query I rowsort
SELECT DISTINCT 24 + CASE WHEN + NULLIF ( 12, + + ( - - 92 ) + - 44 + - CASE 32 WHEN + + 38 THEN + 95 * + - 30 + - 24 ELSE + CASE + ( - 99 ) WHEN 80 THEN + 32 END * 38 + + CASE + 52 - 31 * 58 WHEN 49 THEN + 92 + 4 END * 42 END ) BETWEEN ( NULL ) AND ( 20 * 3 ) THEN NULL WHEN + 15 IN ( 55 ) THEN NULL ELSE 75 + 97 END * - 65 AS col0
----
-11156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-994
SELECT - 21 * + - CAST( COUNT( * ) AS SIGNED ) + - MAX( - 60 ) * + 7 * - COALESCE ( - CAST( - 8 AS SIGNED ), + 26, 1 * - COUNT( * ) * 31 + + 86 ) * - 33 + - 76 + CASE - CAST( NULL AS SIGNED ) WHEN COUNT( * ) THEN + 65 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-994
SELECT - 21 * + - CAST ( COUNT ( * ) AS INTEGER ) + - MAX ( - 60 ) * + 7 * - COALESCE ( - CAST ( - 8 AS INTEGER ), + 26, 1 * - COUNT ( * ) * 31 + + 86 ) * - 33 + - 76 + CASE - CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) THEN + 65 END col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-996
SELECT - CAST( - + 35 AS SIGNED ) * MAX( + - 0 ) - ( + + 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-996
SELECT - CAST ( - + 35 AS INTEGER ) * MAX ( + - 0 ) - ( + + 29 )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-997
SELECT 70 * 52 + + 59 + 6 + - CASE + + ( - 76 ) WHEN - ( - - 23 ) * + + 83 * - COUNT( DISTINCT - + 40 ) + - 26 + - COUNT( * ) THEN + 20 END + 54 * - COALESCE ( 77, + 98 )
----
NULL

skipif mysql # not compatible
query I rowsort label-997
SELECT 70 * 52 + + 59 + 6 + - CASE + + ( - 76 ) WHEN - ( - - 23 ) * + + 83 * - COUNT ( DISTINCT - + 40 ) + - 26 + - COUNT ( * ) THEN + 20 END + 54 * - COALESCE ( 77, + 98 )
----
NULL

query I rowsort
SELECT ALL + 90 + + NULLIF ( - + 71, 11 )
----
19

query I rowsort
SELECT + 54 * + 62 - 46 * + 63 * 42 AS col0
----
-118368

query II rowsort
SELECT ALL - 27 * 34 AS col0, + 35 AS col0
----
-918
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1001
SELECT 66 + COUNT( * ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-1001
SELECT 66 + COUNT ( * ) AS col0
----
67

query II rowsort
SELECT ALL - 18 + + 84 AS col2, 69
----
66
69

query II rowsort
SELECT 11 AS col2, 45 col2
----
11
45

query I rowsort
SELECT 27 * + - 67 + + 93
----
-1716

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1005
SELECT ALL - 55 + COUNT( * ) * + 91 DIV + 94 * + COUNT( * ) * + 40 AS col2, - 37 * + COUNT( * ) * + - CAST( NULL AS SIGNED ) * ( 23 )
----
-55
NULL

skipif mysql # not compatible
query II rowsort label-1005
SELECT ALL - 55 + COUNT ( * ) * + 91 / + 94 * + COUNT ( * ) * + 40 AS col2, - 37 * + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) * ( 23 )
----
-55
NULL

query I rowsort
SELECT DISTINCT - 73 + + ( - + 48 ) AS col2
----
-121

query II rowsort
SELECT - 12 AS col2, 54 AS col0
----
-12
54

onlyif mysql # DIV for integer division: 
query I rowsort label-1008
SELECT 0 + 73 DIV + - 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1008
SELECT 0 + 73 / + - 75 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1009
SELECT COUNT( * ) + 26 + - 2
----
25

skipif mysql # not compatible
query I rowsort label-1009
SELECT COUNT ( * ) + 26 + - 2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1010
SELECT COUNT( * ) * - - 21
----
21

skipif mysql # not compatible
query I rowsort label-1010
SELECT COUNT ( * ) * - - 21
----
21

query I rowsort
SELECT 26 + - 2 AS col0
----
24

query I rowsort
SELECT ALL ( - 55 ) * - COALESCE ( 4, + - 42 + + - 75 + - 57 * + 65 )
----
220

onlyif mysql # aggregate syntax: 
query I rowsort label-1013
SELECT ALL MIN( - 68 ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-1013
SELECT ALL MIN ( - 68 ) AS col2
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1014
SELECT DISTINCT CAST( - 42 AS SIGNED ) * - 11
----
462

skipif mysql # not compatible
query I rowsort label-1014
SELECT DISTINCT CAST ( - 42 AS INTEGER ) * - 11
----
462

onlyif mysql # aggregate syntax: 
query I rowsort label-1015
SELECT ALL COUNT( * ) * - 2 col2
----
-2

skipif mysql # not compatible
query I rowsort label-1015
SELECT ALL COUNT ( * ) * - 2 col2
----
-2

query I rowsort
SELECT - 27 * - 70 AS col1
----
1890

onlyif mysql # aggregate syntax: 
query I rowsort label-1017
SELECT 36 + + + COUNT( * ) + 0 * 45
----
37

skipif mysql # not compatible
query I rowsort label-1017
SELECT 36 + + + COUNT ( * ) + 0 * 45
----
37

query I rowsort
SELECT - 71 * + - 21
----
1491

onlyif mysql # aggregate syntax: 
query II rowsort label-1019
SELECT 40 AS col2, + 20 - + COUNT( * ) AS col0
----
40
19

skipif mysql # not compatible
query II rowsort label-1019
SELECT 40 AS col2, + 20 - + COUNT ( * ) AS col0
----
40
19

query I rowsort
SELECT + 94 + - ( - - 43 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1021
SELECT 47 + + - COUNT( * ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-1021
SELECT 47 + + - COUNT ( * ) AS col1
----
46

query II rowsort
SELECT ALL - + 51 AS col0, 1
----
-51
1

query II rowsort
SELECT 83 AS col1, 94
----
83
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1024
SELECT ALL - - ( + - 91 ) * - 51 + COALESCE ( - ( + - COUNT( * ) ), - 61 - 90 + - 99 ) * - 26 + - + COUNT( * ) + + + ( + 96 ) AS col0
----
4710

skipif mysql # not compatible
query I rowsort label-1024
SELECT ALL - - ( + - 91 ) * - 51 + COALESCE ( - ( + - COUNT ( * ) ), - 61 - 90 + - 99 ) * - 26 + - + COUNT ( * ) + + + ( + 96 ) AS col0
----
4710

onlyif mysql # aggregate syntax: 
query I rowsort label-1025
SELECT + 30 + + SUM( DISTINCT + 80 )
----
110

skipif mysql # not compatible
query I rowsort label-1025
SELECT + 30 + + SUM ( DISTINCT + 80 )
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-1026
SELECT ALL - COUNT( * ) * + - 46 + - 70
----
-24

skipif mysql # not compatible
query I rowsort label-1026
SELECT ALL - COUNT ( * ) * + - 46 + - 70
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1027
SELECT COALESCE ( + COUNT( * ), - 2 + - 67 + + + 63 + CAST( NULL AS SIGNED ) * - + 22 * - - 63 + 32 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1027
SELECT COALESCE ( + COUNT ( * ), - 2 + - 67 + + + 63 + CAST ( NULL AS INTEGER ) * - + 22 * - - 63 + 32 ) AS col1
----
1

query I rowsort
SELECT ALL 31 * - 2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1029
SELECT + 71 + + COUNT( * ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-1029
SELECT + 71 + + COUNT ( * ) AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1030
SELECT + + 99 * - + 46 * - 11 * + - 44 + - + COALESCE ( + 55, + 48 + - + 94 * - + MAX( - - 53 ) )
----
-2204191

skipif mysql # not compatible
query I rowsort label-1030
SELECT + + 99 * - + 46 * - 11 * + - 44 + - + COALESCE ( + 55, + 48 + - + 94 * - + MAX ( - - 53 ) )
----
-2204191

query I rowsort
SELECT DISTINCT + 88 * - - 57
----
5016

query I rowsort
SELECT DISTINCT + 54 * + 83 + 38 + - 66 AS col1
----
4454

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1033
SELECT ALL - CASE + 99 WHEN - - 73 * + + 26 + 51 * - - 27 / 98 THEN NULL WHEN + 2 + + + 17 * + - 87 * + 10 + + COALESCE ( - 74, 71, + + 51 * - 69, 13 ) + - 59 * COUNT( * ) THEN NULL WHEN COUNT( * ) + + 46 * + ( - ( CASE - 98 WHEN 1 * 16 THEN + 36 * 8 ELSE COUNT( + CAST( NULL AS SIGNED ) ) END ) ) THEN ( + NULLIF ( - 88, - 52 ) ) END * 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1033
SELECT ALL - CASE + 99 WHEN - - 73 * + + 26 + 51 * - - 27 / 98 THEN NULL WHEN + 2 + + + 17 * + - 87 * + 10 + + COALESCE ( - 74, 71, + + 51 * - 69, 13 ) + - 59 * COUNT ( * ) THEN NULL WHEN COUNT ( * ) + + 46 * + ( - ( CASE - 98 WHEN 1 * 16 THEN + 36 * 8 ELSE COUNT ( + CAST ( NULL AS INTEGER ) ) END ) ) THEN ( + NULLIF ( - 88, - 52 ) ) END * 59 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT ALL COUNT( * ) * - 18 + + + 40 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-1034
SELECT ALL COUNT ( * ) * - 18 + + + 40 AS col1
----
22

query I rowsort
SELECT + ( + 56 ) * + + 34 col1
----
1904

query I rowsort
SELECT DISTINCT 54 * ( - 66 ) AS col0
----
-3564

onlyif mysql # aggregate syntax: 
query III rowsort label-1037
SELECT MIN( ALL + + 65 ) AS col0, - 93, + COUNT( * ) - 88 AS col0
----
65
-93
-87

skipif mysql # not compatible
query III rowsort label-1037
SELECT MIN ( ALL + + 65 ) AS col0, - 93, + COUNT ( * ) - 88 AS col0
----
65
-93
-87

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

skipif mysql # not compatible
query I rowsort label-1038
SELECT + 0 / COUNT ( * ) * + 10
----
0

query I rowsort
SELECT ALL 37 * + 0 * + 68 + - + 72 AS col1
----
-72

query I rowsort
SELECT + 12 * + - 7
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1041
SELECT MIN( DISTINCT + + ( + + 40 ) ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-1041
SELECT MIN ( DISTINCT + + ( + + 40 ) ) AS col2
----
40

query II rowsort
SELECT + 47 * 51, - 14 AS col0
----
2397
-14

query I rowsort
SELECT + 64 - 77
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1044
SELECT ALL - COUNT( + - 8 ) DIV + - COALESCE ( + 8, - 61 )
----
0

skipif mysql # not compatible
query I rowsort label-1044
SELECT ALL - COUNT ( + - 8 ) / + - COALESCE ( + 8, - 61 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1045
SELECT DISTINCT - NULLIF ( COUNT( * ), - - 31 ) - + ( + 20 ) * - 3 * 50 + 53 DIV 74
----
2999

skipif mysql # not compatible
query I rowsort label-1045
SELECT DISTINCT - NULLIF ( COUNT ( * ), - - 31 ) - + ( + 20 ) * - 3 * 50 + 53 / 74
----
2999

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1046
SELECT DISTINCT 5 DIV - 4 AS col0, - CAST( NULL AS SIGNED )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1046
SELECT DISTINCT 5 / - 4 AS col0, - CAST ( NULL AS INTEGER )
----
-1
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1047
SELECT DISTINCT + ( CAST( NULL AS DECIMAL ) ) * + + 91 + - + 23 + - + COUNT( - 35 ) * - MAX( - 70 ) * + 96 * + - 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1047
SELECT DISTINCT + ( CAST ( NULL AS REAL ) ) * + + 91 + - + 23 + - + COUNT ( - 35 ) * - MAX ( - 70 ) * + 96 * + - 67 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1048
SELECT ALL MIN( DISTINCT - 36 ), + 11 col2
----
-36
11

skipif mysql # not compatible
query II rowsort label-1048
SELECT ALL MIN ( DISTINCT - 36 ), + 11 col2
----
-36
11

query II rowsort
SELECT - 11 * - 46, + 28 col1
----
506
28

query I rowsort
SELECT ALL ( - ( 32 ) )
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1051
SELECT + - NULLIF ( MIN( ALL - 56 ), + CASE - COUNT( * ) WHEN + 37 THEN - ( + ( + + 49 ) ) WHEN + - COUNT( * ) THEN + 67 * - ( CAST( NULL AS SIGNED ) ) * COUNT( * ) + + 23 - - 18 ELSE - 15 END ) * MIN( DISTINCT 74 )
----
4144

skipif mysql # not compatible
query I rowsort label-1051
SELECT + - NULLIF ( MIN ( ALL - 56 ), + CASE - COUNT ( * ) WHEN + 37 THEN - ( + ( + + 49 ) ) WHEN + - COUNT ( * ) THEN + 67 * - ( CAST ( NULL AS INTEGER ) ) * COUNT ( * ) + + 23 - - 18 ELSE - 15 END ) * MIN ( DISTINCT 74 )
----
4144

onlyif mysql # aggregate syntax: 
query II rowsort label-1052
SELECT ALL + COUNT( - + 8 ), 1
----
1
1

skipif mysql # not compatible
query II rowsort label-1052
SELECT ALL + COUNT ( - + 8 ), 1
----
1
1

query II rowsort
SELECT - + 46 + + 45 AS col0, + ( + 7 ) AS col0
----
-1
7

query I rowsort
SELECT - - ( - 89 ) + + COALESCE ( 18, - 75 )
----
-71

query II rowsort
SELECT ALL NULLIF ( + 49, - - 82 * 49 - + 46 + + + 29 / - AVG ( + 65 ) ) AS col2, - 17
----
49
-17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1056
SELECT - 92 * - 85 AS col1, CAST( NULL AS SIGNED )
----
7820
NULL

skipif mysql # not compatible
query II rowsort label-1056
SELECT - 92 * - 85 AS col1, CAST ( NULL AS INTEGER )
----
7820
NULL

query I rowsort
SELECT DISTINCT - - 4 + 36 AS col0
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-1058
SELECT ALL ( + - 72 ), + COUNT( * ) col1
----
-72
1

skipif mysql # not compatible
query II rowsort label-1058
SELECT ALL ( + - 72 ), + COUNT ( * ) col1
----
-72
1

query I rowsort
SELECT DISTINCT - 28 * - ( - ( 62 ) )
----
-1736

onlyif mysql # aggregate syntax: 
query I rowsort label-1060
SELECT DISTINCT - 16 + + COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-1060
SELECT DISTINCT - 16 + + COUNT ( * )
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1061
SELECT DISTINCT - CASE - CAST( 34 AS SIGNED ) WHEN - 10 + 14 + + - 85 * NULLIF ( - CAST( NULL AS SIGNED ), + 34 ) THEN NULL WHEN ( + 45 ) - - 81 + COUNT( * ) * - + 3 + + 47 THEN + 2 ELSE + 79 END AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-1061
SELECT DISTINCT - CASE - CAST ( 34 AS INTEGER ) WHEN - 10 + 14 + + - 85 * NULLIF ( - CAST ( NULL AS INTEGER ), + 34 ) THEN NULL WHEN ( + 45 ) - - 81 + COUNT ( * ) * - + 3 + + 47 THEN + 2 ELSE + 79 END AS col2
----
-79

query I rowsort
SELECT DISTINCT 63 + 73
----
136

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

query I rowsort
SELECT + COALESCE ( + 51, 99 )
----
51

query II rowsort
SELECT - - 28 - + 33 AS col1, 79
----
-5
79

query II rowsort
SELECT - ( - 50 ) AS col1, 74 - + 23 AS col1
----
50
51

query I rowsort
SELECT - COALESCE ( + 25, + 28 ) col0
----
-25

query I rowsort
SELECT ALL + NULLIF ( + 50, + 27 * - + ( - 72 ) + + NULLIF ( - 79, - + 70 ) )
----
50

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1069
SELECT + 77 * NULLIF ( + NULLIF ( - + 7, + CAST( NULL AS DECIMAL ) ), + 0 )
----
-539

skipif mysql # not compatible
query I rowsort label-1069
SELECT + 77 * NULLIF ( + NULLIF ( - + 7, + CAST ( NULL AS REAL ) ), + 0 )
----
-539

onlyif mysql # aggregate syntax: 
query I rowsort label-1070
SELECT DISTINCT + COUNT( * ) * + NULLIF ( - 5, - 20 )
----
-5

skipif mysql # not compatible
query I rowsort label-1070
SELECT DISTINCT + COUNT ( * ) * + NULLIF ( - 5, - 20 )
----
-5

query I rowsort
SELECT DISTINCT + COALESCE ( 70, 41 )
----
70

query I rowsort
SELECT ( + ( + - 83 ) )
----
-83

query II rowsort
SELECT ALL + 56 AS col1, 72
----
56
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1074
SELECT + COUNT( * ) - - COUNT( * ) + 57 * + 4
----
230

skipif mysql # not compatible
query I rowsort label-1074
SELECT + COUNT ( * ) - - COUNT ( * ) + 57 * + 4
----
230

onlyif mysql # aggregate syntax: 
query I rowsort label-1075
SELECT CASE - + 6 WHEN + + 76 * - COUNT( * ) THEN - - 23 END * 15 - 71 + ( 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1075
SELECT CASE - + 6 WHEN + + 76 * - COUNT ( * ) THEN - - 23 END * 15 - 71 + ( 45 )
----
NULL

query I rowsort
SELECT ( - + 79 ) col0
----
-79

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1077
SELECT ( + 10 ) * + + NULLIF ( - 78, + + 39 * + CAST( + + 59 AS DECIMAL ) - 1 ) * + 58 + - - 21 - 81
----
-45300

skipif mysql # not compatible
query I rowsort label-1077
SELECT ( + 10 ) * + + NULLIF ( - 78, + + 39 * + CAST ( + + 59 AS REAL ) - 1 ) * + 58 + - - 21 - 81
----
-45300

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

query II rowsort
SELECT ALL + 46 AS col1, 74
----
46
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1080
SELECT + CAST( + + 27 AS SIGNED )
----
27

skipif mysql # not compatible
query I rowsort label-1080
SELECT + CAST ( + + 27 AS INTEGER )
----
27

query I rowsort
SELECT + 41 + 53 AS col2
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1082
SELECT ALL 53 * - 86 * - 83 / CAST( NULL AS SIGNED ) * - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-1082
SELECT ALL 53 * - 86 * - 83 / CAST ( NULL AS INTEGER ) * - 53
----
NULL

query I rowsort
SELECT + 58 * - 87 * - 62
----
312852

query I rowsort
SELECT DISTINCT 64 * - 84 AS col1
----
-5376

onlyif mysql # aggregate syntax: 
query II rowsort label-1085
SELECT 1 * - 23 + - - ( - - 51 ) - + MAX( ALL + 68 ), + 40 AS col1
----
-40
40

skipif mysql # not compatible
query II rowsort label-1085
SELECT 1 * - 23 + - - ( - - 51 ) - + MAX ( ALL + 68 ), + 40 AS col1
----
-40
40

query I rowsort
SELECT + 87 + - 44 AS col1
----
43

query I rowsort
SELECT ALL 79 col1
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-1088
SELECT COUNT( DISTINCT - ( 27 ) ) AS col1, + CASE - + 88 WHEN - + 19 / + - 8 THEN - SUM( DISTINCT 73 ) + CASE 47 WHEN + 7 THEN - 23 END ELSE NULL END * - 88
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1088
SELECT COUNT ( DISTINCT - ( 27 ) ) AS col1, + CASE - + 88 WHEN - + 19 / + - 8 THEN - SUM ( DISTINCT 73 ) + CASE 47 WHEN + 7 THEN - 23 END ELSE NULL END * - 88
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1089
SELECT COUNT( - - COALESCE ( 5, - + 14 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1089
SELECT COUNT ( - - COALESCE ( 5, - + 14 ) ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1090
SELECT - 81 DIV + + 74 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1090
SELECT - 81 / + + 74 AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1091
SELECT ALL 87 DIV 4 * + - 99 AS col2
----
-2079

skipif mysql # not compatible
query I rowsort label-1091
SELECT ALL 87 / 4 * + - 99 AS col2
----
-2079

onlyif mysql # aggregate syntax: 
query I rowsort label-1092
SELECT COUNT( + 84 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-1092
SELECT COUNT ( + 84 ) col2
----
1

query II rowsort
SELECT - - 38 AS col1, 37 AS col1
----
38
37

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1095
SELECT + 76 DIV + 16 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-1095
SELECT + 76 / + 16 AS col2
----
4

query II rowsort
SELECT ALL 46 + ( + - 84 ) * - + 1, + 18 AS col1
----
130
18

query I rowsort
SELECT ALL - + 2 * + + 6 col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-1098
SELECT - MAX( ALL + + COALESCE ( + 10, + - 96 ) ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-1098
SELECT - MAX ( ALL + + COALESCE ( + 10, + - 96 ) ) AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1099
SELECT ALL - - MAX( 24 ) + - + 17 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-1099
SELECT ALL - - MAX ( 24 ) + - + 17 AS col1
----
7

query I rowsort
SELECT DISTINCT - 87 + + 91
----
4

query I rowsort
SELECT ALL + 24 + - 83 AS col1
----
-59

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

skipif mysql # not compatible
query I rowsort label-1102
SELECT ALL + ( + 83 ) * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1103
SELECT CAST( 52 AS SIGNED ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-1103
SELECT CAST ( 52 AS INTEGER ) AS col0
----
52

query I rowsort
SELECT + NULLIF ( - NULLIF ( 9, + + ( + 94 ) ), - - 84 + + NULLIF ( - 21, 33 + + COALESCE ( - 36, 12 + 39 + 53 * + 91 ) + + + 57 * - AVG ( - 5 ) - 69 / + 16 ) + 70 ) * 98 AS col1
----
-882

query II rowsort
SELECT ALL + 43, + 23 + - 60 + - 73 AS col0
----
43
-110

query I rowsort
SELECT + 83 - - + 2
----
85

query I rowsort
SELECT - 92 + - 40 col2
----
-132

query I rowsort
SELECT DISTINCT - 72 + + + 85 col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1109
SELECT DISTINCT - COALESCE ( 1, - - 91 * - 72 * + + COUNT( DISTINCT + 45 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1109
SELECT DISTINCT - COALESCE ( 1, - - 91 * - 72 * + + COUNT ( DISTINCT + 45 ) )
----
-1

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

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

query II rowsort
SELECT DISTINCT - 96 col0, ( - - 76 ) AS col1
----
-96
76

query I rowsort
SELECT ALL - 22 * 59 * - - 58 - 31
----
-75315

query I rowsort
SELECT ALL - + CASE 69 WHEN - 34 THEN + - 99 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1114
SELECT + 80 * COUNT( * ) + - 72
----
8

skipif mysql # not compatible
query I rowsort label-1114
SELECT + 80 * COUNT ( * ) + - 72
----
8

query I rowsort
SELECT 94 - + 23 col1
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1116
SELECT 65 * - - CAST( - 15 AS SIGNED ) AS col1
----
-975

skipif mysql # not compatible
query I rowsort label-1116
SELECT 65 * - - CAST ( - 15 AS INTEGER ) AS col1
----
-975

query I rowsort
SELECT ALL - 96 * - 95 * 44 col2
----
401280

onlyif mysql # aggregate syntax: 
query II rowsort label-1118
SELECT COUNT( * ) * - 87 col0, MIN( 13 )
----
-87
13

skipif mysql # not compatible
query II rowsort label-1118
SELECT COUNT ( * ) * - 87 col0, MIN ( 13 )
----
-87
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1119
SELECT DISTINCT + 51 * - - SUM( - - 29 ) AS col2
----
1479

skipif mysql # not compatible
query I rowsort label-1119
SELECT DISTINCT + 51 * - - SUM ( - - 29 ) AS col2
----
1479

query I rowsort
SELECT ALL - 97 * 64 AS col0
----
-6208

query I rowsort
SELECT 6 * 16
----
96

query I rowsort
SELECT ALL - ( - - 37 )
----
-37

query I rowsort
SELECT 96 * - - 41
----
3936

query I rowsort
SELECT 45 * + 60 * + 96
----
259200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1125
SELECT ALL 46 + - CAST( + 40 AS SIGNED )
----
6

skipif mysql # not compatible
query I rowsort label-1125
SELECT ALL 46 + - CAST ( + 40 AS INTEGER )
----
6

query I rowsort
SELECT 15 - - 8 * 99 AS col0
----
807

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1127
SELECT DISTINCT 95 + + + 67 + 6 - + 43 + - 57 * + + 41 * - 62 AS col1, + COALESCE ( COUNT( * ), 92 * 17 DIV MIN( + 84 ) )
----
145019
1

skipif mysql # not compatible
query II rowsort label-1127
SELECT DISTINCT 95 + + + 67 + 6 - + 43 + - 57 * + + 41 * - 62 AS col1, + COALESCE ( COUNT ( * ), 92 * 17 / MIN ( + 84 ) )
----
145019
1

query I rowsort
SELECT - ( + 81 ) * - 7 AS col2
----
567

query I rowsort
SELECT DISTINCT - 28 + + + 22 col1
----
-6

query I rowsort
SELECT ALL + 69 + + + 84 AS col0
----
153

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1131
SELECT + 31 + - - COUNT( * ) DIV + 2
----
31

skipif mysql # not compatible
query I rowsort label-1131
SELECT + 31 + - - COUNT ( * ) / + 2
----
31

query I rowsort
SELECT 91 - + + 80 + + + 82 AS col0
----
93

query I rowsort
SELECT ALL 97 + + + 80 AS col2
----
177

query I rowsort
SELECT 70 + - - 20
----
90

query I rowsort
SELECT - 37 * 33 - - 97 AS col2
----
-1124

onlyif mysql # aggregate syntax: 
query I rowsort label-1136
SELECT ALL NULLIF ( SUM( ALL - - 1 ), - 8 )
----
1

skipif mysql # not compatible
query I rowsort label-1136
SELECT ALL NULLIF ( SUM ( ALL - - 1 ), - 8 )
----
1

query I rowsort
SELECT ALL 64 - + + 58 - - 83
----
89

query I rowsort
SELECT DISTINCT - + 32 * + - 99
----
3168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1139
SELECT + ( - 42 ) + 15 + CAST( - NULLIF ( 52, - 70 + - + NULLIF ( - - 39, AVG ( 59 ) * COUNT( * ) * - 77 ) ) AS SIGNED ) * + 41 * + + 72
----
-153531

skipif mysql # not compatible
query I rowsort label-1139
SELECT + ( - 42 ) + 15 + CAST ( - NULLIF ( 52, - 70 + - + NULLIF ( - - 39, AVG ( 59 ) * COUNT ( * ) * - 77 ) ) AS INTEGER ) * + 41 * + + 72
----
-153531

query I rowsort
SELECT DISTINCT - 49 * 18 * 39
----
-34398

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1141
SELECT + CAST( NULL AS SIGNED ) / + MAX( - 55 ) * + ( 78 ) - - 28 - + CAST( + 35 AS SIGNED ) * - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-1141
SELECT + CAST ( NULL AS INTEGER ) / + MAX ( - 55 ) * + ( 78 ) - - 28 - + CAST ( + 35 AS INTEGER ) * - 69
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1142
SELECT MIN( 99 ) * + - 53 AS col1
----
-5247

skipif mysql # not compatible
query I rowsort label-1142
SELECT MIN ( 99 ) * + - 53 AS col1
----
-5247

onlyif mysql # aggregate syntax: 
query I rowsort label-1143
SELECT 10 * - - COUNT( * ) * + - MAX( - 79 )
----
790

skipif mysql # not compatible
query I rowsort label-1143
SELECT 10 * - - COUNT ( * ) * + - MAX ( - 79 )
----
790

onlyif mysql # aggregate syntax: 
query I rowsort label-1144
SELECT SUM( - 39 ) - + + 60 col0
----
-99

skipif mysql # not compatible
query I rowsort label-1144
SELECT SUM ( - 39 ) - + + 60 col0
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1145
SELECT DISTINCT - SUM( DISTINCT ( + CAST( - - 99 AS SIGNED ) ) ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-1145
SELECT DISTINCT - SUM ( DISTINCT ( + CAST ( - - 99 AS INTEGER ) ) ) AS col0
----
-99

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1148
SELECT ALL + COUNT ( * ) / + + 49 AS col2
----
0

query I rowsort
SELECT + 93 * 50 + 88 AS col0
----
4738

onlyif mysql # aggregate syntax: 
query I rowsort label-1150
SELECT SUM( DISTINCT + - ( - + 1 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1150
SELECT SUM ( DISTINCT + - ( - + 1 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1151
SELECT DISTINCT + 20 + + - 64 * COUNT( * ) + 86 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-1151
SELECT DISTINCT + 20 + + - 64 * COUNT ( * ) + 86 AS col1
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1152
SELECT 29 * 24 + - - CASE - CAST( - 65 AS SIGNED ) WHEN 96 * + + 51 + 93 THEN - 17 * + - 88 WHEN + + 74 + 94 THEN NULL WHEN + 99 * - 88 / - 32 * - 44 + + 54 * 17 THEN NULL END + + MIN( ALL - 8 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1152
SELECT 29 * 24 + - - CASE - CAST ( - 65 AS INTEGER ) WHEN 96 * + + 51 + 93 THEN - 17 * + - 88 WHEN + + 74 + 94 THEN NULL WHEN + 99 * - 88 / - 32 * - 44 + + 54 * 17 THEN NULL END + + MIN ( ALL - 8 ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1153
SELECT COUNT ( * ) / - 61 AS col1
----
0

query I rowsort
SELECT 15 + 56 * + 90
----
5055

onlyif mysql # aggregate syntax: 
query I rowsort label-1155
SELECT ALL - ( CASE ( 40 ) WHEN - 8 THEN NULL WHEN + + 64 * - 19 THEN NULL WHEN CASE - + 59 WHEN - COUNT( ALL + - 16 ) THEN - 54 END / 70 + + 29 + + 47 * 89 THEN + 11 / + 26 - - ( 94 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1155
SELECT ALL - ( CASE ( 40 ) WHEN - 8 THEN NULL WHEN + + 64 * - 19 THEN NULL WHEN CASE - + 59 WHEN - COUNT ( ALL + - 16 ) THEN - 54 END / 70 + + 29 + + 47 * 89 THEN + 11 / + 26 - - ( 94 ) END )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1156
SELECT ALL + 3 + - + 57 * - + 36, COUNT( * ) AS col0
----
2055
1

skipif mysql # not compatible
query II rowsort label-1156
SELECT ALL + 3 + - + 57 * - + 36, COUNT ( * ) AS col0
----
2055
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1157
SELECT DISTINCT - NULLIF ( - 12, MIN( 17 ) ) + + + 57 AS col1, + COUNT( * )
----
69
1

skipif mysql # not compatible
query II rowsort label-1157
SELECT DISTINCT - NULLIF ( - 12, MIN ( 17 ) ) + + + 57 AS col1, + COUNT ( * )
----
69
1

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

query I rowsort
SELECT ALL - 98 + 52 AS col0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1160
SELECT 93 * COUNT( * ) + + 39 * + - MAX( + 2 )
----
15

skipif mysql # not compatible
query I rowsort label-1160
SELECT 93 * COUNT ( * ) + + 39 * + - MAX ( + 2 )
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1161
SELECT ALL + CASE - CAST( NULL AS SIGNED ) WHEN 3 THEN + 73 / + 79 / + 43 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1161
SELECT ALL + CASE - CAST ( NULL AS INTEGER ) WHEN 3 THEN + 73 / + 79 / + 43 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - - ( - 87 ) AS col1
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1163
SELECT + CASE - NULLIF ( - - ( + 30 ), - - 84 - - ( - CAST( + 9 AS SIGNED ) ) * + 91 ) WHEN - 92 THEN 62 - + 56 END + - COUNT( * ) + - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-1163
SELECT + CASE - NULLIF ( - - ( + 30 ), - - 84 - - ( - CAST ( + 9 AS INTEGER ) ) * + 91 ) WHEN - 92 THEN 62 - + 56 END + - COUNT ( * ) + - 66
----
NULL

query I rowsort
SELECT + 99 + 57
----
156

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1166
SELECT - NULLIF ( + 51, + 41 ) * - - 54 * - COUNT( DISTINCT - - 5 ) AS col1
----
2754

skipif mysql # not compatible
query I rowsort label-1166
SELECT - NULLIF ( + 51, + 41 ) * - - 54 * - COUNT ( DISTINCT - - 5 ) AS col1
----
2754

query I rowsort
SELECT DISTINCT - 5 - 98 AS col0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-1168
SELECT - - COUNT( * ) + + 50 + - + COUNT( * ) + SUM( DISTINCT + ( - + 20 ) ) - 48 AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-1168
SELECT - - COUNT ( * ) + + 50 + - + COUNT ( * ) + SUM ( DISTINCT + ( - + 20 ) ) - 48 AS col0
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1169
SELECT - COUNT( DISTINCT - 35 ) DIV 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1169
SELECT - COUNT ( DISTINCT - 35 ) / 72 AS col1
----
0

query I rowsort
SELECT DISTINCT 13 * - - 62 + 4 + - 33 * + - 21
----
1503

query I rowsort
SELECT DISTINCT + NULLIF ( - NULLIF ( 79, ( - - 47 ) ), ( 25 ) ) * - 52 AS col1
----
4108

query II rowsort
SELECT ALL - ( - ( - 1 ) ) col0, 60 * 56 + + + 65 * - 69 + ( COALESCE ( - 7, 15, 31 ) )
----
-1
-1132

query I rowsort
SELECT + + 16 * + 24 col1
----
384

query I rowsort
SELECT ALL CASE + - 98 WHEN 93 THEN 4 ELSE NULL END * - 16 * - 71 AS col1
----
NULL

query I rowsort
SELECT + 10 + 11
----
21

query II rowsort
SELECT + 34 AS col2, 69
----
34
69

query II rowsort
SELECT ALL 95, 31 + - + 43 * + - 2 * + + 75 col2
----
95
6481

onlyif mysql # DIV for integer division: 
query I rowsort label-1178
SELECT + 67 DIV + 30
----
2

skipif mysql # not compatible
query I rowsort label-1178
SELECT + 67 / + 30
----
2

query I rowsort
SELECT + 37 * + 48 AS col2
----
1776

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1180
SELECT + CAST( COUNT( 90 ) AS SIGNED ) + - 83 AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-1180
SELECT + CAST ( COUNT ( 90 ) AS INTEGER ) + - 83 AS col2
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1181
SELECT + COUNT( * ) - - ( - NULLIF ( - + 88, + - 15 * - 94 * 58 - CAST( NULL AS SIGNED ) ) ) + - - 58 + - 2 * - - 69
----
9

skipif mysql # not compatible
query I rowsort label-1181
SELECT + COUNT ( * ) - - ( - NULLIF ( - + 88, + - 15 * - 94 * 58 - CAST ( NULL AS INTEGER ) ) ) + - - 58 + - 2 * - - 69
----
9

query I rowsort
SELECT + 30 * 64 * - + 18
----
-34560

query II rowsort
SELECT ALL 43, 54 AS col2
----
43
54

onlyif mysql # DIV for integer division: 
query I rowsort label-1184
SELECT + 18 DIV + + 9
----
2

skipif mysql # not compatible
query I rowsort label-1184
SELECT + 18 / + + 9
----
2

query I rowsort
SELECT ALL ( + 44 ) * - + COALESCE ( - + 42, - - 39, 35 ) - + ( + ( - 45 ) ) + - - 17 AS col1
----
1910

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1186
SELECT + ( - CASE - + 41 WHEN 67 * 6 * 64 * - - 76 * - 3 * + - AVG ( ALL 18 ) THEN + - CAST( NULL AS SIGNED ) DIV 3 ELSE - ( - ( 41 ) ) * + 38 * + + ( - 79 ) END ) AS col2
----
123082

skipif mysql # not compatible
query I rowsort label-1186
SELECT + ( - CASE - + 41 WHEN 67 * 6 * 64 * - - 76 * - 3 * + - AVG ( ALL 18 ) THEN + - CAST ( NULL AS INTEGER ) / 3 ELSE - ( - ( 41 ) ) * + 38 * + + ( - 79 ) END ) AS col2
----
123082

onlyif mysql # aggregate syntax: 
query I rowsort label-1187
SELECT - 64 + + 48 + + 54 + - MIN( 27 ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-1187
SELECT - 64 + + 48 + + 54 + - MIN ( 27 ) AS col2
----
11

query I rowsort
SELECT ALL + 36 * - 0 + 68 * + 81
----
5508

query II rowsort
SELECT ( - + 7 ) col2, + 93
----
-7
93

query I rowsort
SELECT + ( + - 53 ) AS col0
----
-53

query I rowsort
SELECT ( + ( - 68 ) )
----
-68

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

query I rowsort
SELECT DISTINCT + 86 col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1194
SELECT ALL - 37 * - 49 + COUNT( * )
----
1814

skipif mysql # not compatible
query I rowsort label-1194
SELECT ALL - 37 * - 49 + COUNT ( * )
----
1814

query I rowsort
SELECT + 28 * + + 86
----
2408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1196
SELECT NULLIF ( - CASE - 6 WHEN + - 96 * 46 - COUNT( * ) THEN - 38 * - + CAST( - 44 AS SIGNED ) END, - 30 - + MIN( ALL + 20 ) / - 90 * - 95 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1196
SELECT NULLIF ( - CASE - 6 WHEN + - 96 * 46 - COUNT ( * ) THEN - 38 * - + CAST ( - 44 AS INTEGER ) END, - 30 - + MIN ( ALL + 20 ) / - 90 * - 95 )
----
NULL

query I rowsort
SELECT ALL 7 * 31 + 14 + - 5 + - + 17 col2
----
209

query I rowsort
SELECT NULLIF ( 66, + + 74 * 41 + - 62 ) AS col1
----
66

query I rowsort
SELECT DISTINCT - 41 * + 0 + - 88
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-1200
SELECT - - 61 - - COUNT( * ) * + 8
----
69

skipif mysql # not compatible
query I rowsort label-1200
SELECT - - 61 - - COUNT ( * ) * + 8
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1201
SELECT - - 56 * + - MIN( 82 ) AS col2
----
-4592

skipif mysql # not compatible
query I rowsort label-1201
SELECT - - 56 * + - MIN ( 82 ) AS col2
----
-4592

onlyif mysql # aggregate syntax: 
query I rowsort label-1202
SELECT - MIN( + + 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-1202
SELECT - MIN ( + + 6 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1203
SELECT ALL + + ( - COUNT( * ) ) * COALESCE ( + 84, - COALESCE ( - COUNT( * ), + 21, ( - 44 ) * - ( + + 8 ) + COUNT( * ) + 49 ) * 73 * + COUNT( + + NULLIF ( 34, - NULLIF ( - ( 14 ), - - 4 + - 17 * + 24 ) ) ), ( + 17 ) + - 28 ) * COUNT( ALL - 52 * - 17 )
----
-84

skipif mysql # not compatible
query I rowsort label-1203
SELECT ALL + + ( - COUNT ( * ) ) * COALESCE ( + 84, - COALESCE ( - COUNT ( * ), + 21, ( - 44 ) * - ( + + 8 ) + COUNT ( * ) + 49 ) * 73 * + COUNT ( + + NULLIF ( 34, - NULLIF ( - ( 14 ), - - 4 + - 17 * + 24 ) ) ), ( + 17 ) + - 28 ) * COUNT ( ALL - 52 * - 17 )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1204
SELECT ALL - 5 * - 22 - + - 11 - + CASE - + 41 WHEN 14 THEN + NULLIF ( + 3, + COALESCE ( - NULLIF ( - 31, + 72 ), 6 * - COALESCE ( + 18, - 53 + + - ( - - 93 ) ) ) ) WHEN + 30 THEN 49 END + ( 60 ) - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1204
SELECT ALL - 5 * - 22 - + - 11 - + CASE - + 41 WHEN 14 THEN + NULLIF ( + 3, + COALESCE ( - NULLIF ( - 31, + 72 ), 6 * - COALESCE ( + 18, - 53 + + - ( - - 93 ) ) ) ) WHEN + 30 THEN 49 END + ( 60 ) - COUNT ( * )
----
NULL

query I rowsort
SELECT - 72 * 35 * + 84 col0
----
-211680

onlyif mysql # aggregate syntax: 
query I rowsort label-1206
SELECT - MIN( + 31 ) - - 31
----
0

skipif mysql # not compatible
query I rowsort label-1206
SELECT - MIN ( + 31 ) - - 31
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1207
SELECT - - MAX( - 26 ) col0, - 1 + - 5 col0
----
-26
-6

skipif mysql # not compatible
query II rowsort label-1207
SELECT - - MAX ( - 26 ) col0, - 1 + - 5 col0
----
-26
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1208
SELECT - 99 - CAST( NULL AS SIGNED ) - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1208
SELECT - 99 - CAST ( NULL AS INTEGER ) - - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT - - 60 * + 54
----
3240

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1211
SELECT ALL 51, 65 + - - 12 + - + 95 DIV - 46 - - 91 col2
----
51
170

skipif mysql # not compatible
query II rowsort label-1211
SELECT ALL 51, 65 + - - 12 + - + 95 / - 46 - - 91 col2
----
51
170

query I rowsort
SELECT + ( 21 ) AS col1
----
21

query I rowsort
SELECT - - 10 + - 29 col0
----
-19

query I rowsort
SELECT ALL - 99 * + 36 * + 67 + - 64
----
-238852

onlyif mysql # aggregate syntax: 
query I rowsort label-1215
SELECT - COUNT( * ) + - 95 + - - 29 + - 36 + 9 * + 19 * + + 25 * - 22
----
-94153

skipif mysql # not compatible
query I rowsort label-1215
SELECT - COUNT ( * ) + - 95 + - - 29 + - 36 + 9 * + 19 * + + 25 * - 22
----
-94153

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1217
SELECT ALL ( + 88 ) * 78 * + - 25 / ( - CASE - SUM( + 31 ) WHEN + 38 + - 19 THEN 10 ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1217
SELECT ALL ( + 88 ) * 78 * + - 25 / ( - CASE - SUM ( + 31 ) WHEN + 38 + - 19 THEN 10 ELSE NULL END ) AS col0
----
NULL

query I rowsort
SELECT + 12 * + 38 AS col2
----
456

onlyif mysql # aggregate syntax: 
query I rowsort label-1219
SELECT - COUNT( ALL + 2 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1219
SELECT - COUNT ( ALL + 2 ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1220
SELECT + 64 DIV - 46
----
-1

skipif mysql # not compatible
query I rowsort label-1220
SELECT + 64 / - 46
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1221
SELECT 65 DIV - ( - + 38 ) - - + 8 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-1221
SELECT 65 / - ( - + 38 ) - - + 8 AS col0
----
9

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1223
SELECT ALL 23 DIV + + 46
----
0

skipif mysql # not compatible
query I rowsort label-1223
SELECT ALL 23 / + + 46
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1224
SELECT 39 * 88 + + + 23 AS col0, COUNT( * ) + 6
----
3455
7

skipif mysql # not compatible
query II rowsort label-1224
SELECT 39 * 88 + + + 23 AS col0, COUNT ( * ) + 6
----
3455
7

query II rowsort
SELECT ALL 16 + + - 70 AS col1, 44
----
-54
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1226
SELECT - 47 * - + COUNT( * ) - - - 43
----
4

skipif mysql # not compatible
query I rowsort label-1226
SELECT - 47 * - + COUNT ( * ) - - - 43
----
4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1227
SELECT COALESCE ( 78, COUNT( * ) + - 42 ) / 57 + - 71 * + 36 - + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1227
SELECT COALESCE ( 78, COUNT ( * ) + - 42 ) / 57 + - 71 * + 36 - + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1228
SELECT - COALESCE ( - - 51, + ( + - 11 ) * - 80 ) * 53 * + ( + AVG ( 23 ) ) * AVG ( ALL + 56 ) * + 4 + - - 30 + - - 78 * 16 / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1228
SELECT - COALESCE ( - - 51, + ( + - 11 ) * - 80 ) * 53 * + ( + AVG ( 23 ) ) * AVG ( ALL + 56 ) * + 4 + - - 30 + - - 78 * 16 / + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1229
SELECT CAST( + ( - + 95 ) AS SIGNED ) + + 56 * - 38 + 20 AS col2
----
-2203

skipif mysql # not compatible
query I rowsort label-1229
SELECT CAST ( + ( - + 95 ) AS INTEGER ) + + 56 * - 38 + 20 AS col2
----
-2203

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT COUNT( * ) * - + 73 + + 12
----
-61

skipif mysql # not compatible
query I rowsort label-1230
SELECT COUNT ( * ) * - + 73 + + 12
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-1231
SELECT + 59 * 97 DIV - 34 - - ( ( - - 75 ) ) DIV 10
----
-161

skipif mysql # not compatible
query I rowsort label-1231
SELECT + 59 * 97 / - 34 - - ( ( - - 75 ) ) / 10
----
-161

query I rowsort
SELECT - 33 + - + 46
----
-79

query I rowsort
SELECT DISTINCT + 77 * - 90 * - + 39 + - 6
----
270264

query I rowsort
SELECT 99 * + + 46 + - + 23
----
4531

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1235
SELECT + CASE - - NULLIF ( - 58, + + COUNT( * ) ) WHEN - 75 + + + 3 + + 87 + - + 25 THEN NULL ELSE CAST( NULL AS SIGNED ) END * - NULLIF ( - 58, 87 * + CAST( NULL AS SIGNED ) + - 84 ) + + 12 + + + 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1235
SELECT + CASE - - NULLIF ( - 58, + + COUNT ( * ) ) WHEN - 75 + + + 3 + + 87 + - + 25 THEN NULL ELSE CAST ( NULL AS INTEGER ) END * - NULLIF ( - 58, 87 * + CAST ( NULL AS INTEGER ) + - 84 ) + + 12 + + + 40 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1236
SELECT + NULLIF ( + + 97, ( COUNT( * ) ) ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-1236
SELECT + NULLIF ( + + 97, ( COUNT ( * ) ) ) AS col0
----
97

query I rowsort
SELECT 48 * + ( - 78 ) AS col1
----
-3744

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1238
SELECT CASE + - MAX( - 28 ) WHEN - COALESCE ( - 16, - + CASE COUNT( * ) WHEN CAST( NULL AS SIGNED ) + + CAST( - + 60 AS SIGNED ) THEN NULL WHEN NULLIF ( - + 71, NULLIF ( - + 52, - 36 ) ) * - CAST( NULL AS DECIMAL ) + - + 35 THEN + 3 END * + - ( 97 ), AVG ( + 4 ) * 45 ) THEN COUNT( * ) END / - 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1238
SELECT CASE + - MAX ( - 28 ) WHEN - COALESCE ( - 16, - + CASE COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) + + CAST ( - + 60 AS INTEGER ) THEN NULL WHEN NULLIF ( - + 71, NULLIF ( - + 52, - 36 ) ) * - CAST ( NULL AS REAL ) + - + 35 THEN + 3 END * + - ( 97 ), AVG ( + 4 ) * 45 ) THEN COUNT ( * ) END / - 36 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - ( + 20 ) * + 22 + - 40
----
-480

query I rowsort
SELECT - 59 + + - 34
----
-93

query II rowsort
SELECT ALL 37 col0, 46 AS col2
----
37
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1242
SELECT - 93, - 35 * + 43 * CAST( - 52 AS SIGNED ) * - 11 + + - SUM( - 96 ) + 0 + COUNT( * ) AS col1
----
-93
-860763

skipif mysql # not compatible
query II rowsort label-1242
SELECT - 93, - 35 * + 43 * CAST ( - 52 AS INTEGER ) * - 11 + + - SUM ( - 96 ) + 0 + COUNT ( * ) AS col1
----
-93
-860763

query I rowsort
SELECT 90 * - + 53
----
-4770

onlyif mysql # aggregate syntax: 
query I rowsort label-1244
SELECT COUNT( * ) + - + 22 - 2 * + + 28 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-1244
SELECT COUNT ( * ) + - + 22 - 2 * + + 28 AS col0
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-1245
SELECT ALL + ( + + 51 ) + 98 DIV + + 50 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-1245
SELECT ALL + ( + + 51 ) + 98 / + + 50 AS col2
----
52

query I rowsort
SELECT 35 + - - 11 AS col0
----
46

query I rowsort
SELECT 6 + + 96
----
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1248
SELECT DISTINCT 54 col1, NULLIF ( + + NULLIF ( 73, + 13 ), 47 * + + 90 DIV + 38 * MIN( 75 ) ) DIV - 10 AS col2
----
54
-7

skipif mysql # not compatible
query II rowsort label-1248
SELECT DISTINCT 54 col1, NULLIF ( + + NULLIF ( 73, + 13 ), 47 * + + 90 / + 38 * MIN ( 75 ) ) / - 10 AS col2
----
54
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1249
SELECT 51 + + COUNT( * ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-1249
SELECT 51 + + COUNT ( * ) AS col1
----
52

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

skipif mysql # not compatible
query I rowsort label-1250
SELECT DISTINCT - CAST ( + + 65 AS INTEGER ) + + 65 - 83 AS col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-1251
SELECT ALL ( 60 ) + - 96 + + - COUNT( * ) * - + ( - - 52 ) * 36 + - - 97 + + + COUNT( * ) - + + COUNT( * ) + + 84 + + MAX( 74 ) + MAX( ( ( + 89 ) ) ) * - CASE - - 76 WHEN + 23 THEN 93 WHEN + - COUNT( * ) THEN COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1251
SELECT ALL ( 60 ) + - 96 + + - COUNT ( * ) * - + ( - - 52 ) * 36 + - - 97 + + + COUNT ( * ) - + + COUNT ( * ) + + 84 + + MAX ( 74 ) + MAX ( ( ( + 89 ) ) ) * - CASE - - 76 WHEN + 23 THEN 93 WHEN + - COUNT ( * ) THEN COUNT ( * ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1252
SELECT DISTINCT - MAX( ALL 62 ) - - 61
----
-1

skipif mysql # not compatible
query I rowsort label-1252
SELECT DISTINCT - MAX ( ALL 62 ) - - 61
----
-1

query I rowsort
SELECT 54 * - 12 AS col1
----
-648

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1254
SELECT COALESCE ( + - 47, + CASE - CAST( + 45 AS SIGNED ) WHEN + 58 + - 33 THEN + + 17 * - - 27 * - 25 + + 83 * + 29 ELSE - 9 END DIV - - 16, 60 + 22 ) DIV 86 * + 98 + - 15 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-1254
SELECT COALESCE ( + - 47, + CASE - CAST ( + 45 AS INTEGER ) WHEN + 58 + - 33 THEN + + 17 * - - 27 * - 25 + + 83 * + 29 ELSE - 9 END / - - 16, 60 + 22 ) / 86 * + 98 + - 15 AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1255
SELECT 31 * - 73 * + - COUNT( DISTINCT 68 ) AS col2
----
2263

skipif mysql # not compatible
query I rowsort label-1255
SELECT 31 * - 73 * + - COUNT ( DISTINCT 68 ) AS col2
----
2263

query II rowsort
SELECT 69 AS col1, 0 * + 72
----
69
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1257
SELECT - ( + - 75 ) + - 82 AS col1, - SUM( - 28 )
----
-7
28

skipif mysql # not compatible
query II rowsort label-1257
SELECT - ( + - 75 ) + - 82 AS col1, - SUM ( - 28 )
----
-7
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1258
SELECT DISTINCT - + MIN( 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-1258
SELECT DISTINCT - + MIN ( 72 )
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-1259
SELECT + 40 DIV - - 17 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1259
SELECT + 40 / - - 17 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1260
SELECT 83 * COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-1260
SELECT 83 * COUNT ( * )
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-1261
SELECT DISTINCT 19 DIV + + 33
----
0

skipif mysql # not compatible
query I rowsort label-1261
SELECT DISTINCT 19 / + + 33
----
0

query I rowsort
SELECT 1 * + 56 AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1263
SELECT DISTINCT - 65 * - COUNT( * ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-1263
SELECT DISTINCT - 65 * - COUNT ( * ) AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1264
SELECT MIN( + 35 ) col1
----
35

skipif mysql # not compatible
query I rowsort label-1264
SELECT MIN ( + 35 ) col1
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-1265
SELECT 93 - ( - 92 ), - 31 * - 3 * + 34 * - 42 * + 46 + - MAX( ALL + 82 ) + 49 * + MAX( ALL + + 91 ) * + 47 AS col0
----
185
-5899493

skipif mysql # not compatible
query II rowsort label-1265
SELECT 93 - ( - 92 ), - 31 * - 3 * + 34 * - 42 * + 46 + - MAX ( ALL + 82 ) + 49 * + MAX ( ALL + + 91 ) * + 47 AS col0
----
185
-5899493

onlyif mysql # aggregate syntax: 
query I rowsort label-1266
SELECT + 60 * - 82 - 97 * + MAX( DISTINCT 43 ) AS col0
----
-9091

skipif mysql # not compatible
query I rowsort label-1266
SELECT + 60 * - 82 - 97 * + MAX ( DISTINCT 43 ) AS col0
----
-9091

onlyif mysql # aggregate syntax: 
query II rowsort label-1267
SELECT ALL 97 col1, COUNT( * ) + + 31 AS col0
----
97
32

skipif mysql # not compatible
query II rowsort label-1267
SELECT ALL 97 col1, COUNT ( * ) + + 31 AS col0
----
97
32

query I rowsort
SELECT ALL - 72 + + + 58 AS col1
----
-14

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

skipif mysql # not compatible
query I rowsort label-1269
SELECT DISTINCT - - 6 / COUNT ( * )
----
6

query I rowsort
SELECT ALL + - 43 + + 42 * - 26 AS col0
----
-1135

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1272
SELECT ALL - MIN( DISTINCT - 31 ) * - 3 + - - ( - + COUNT( * ) ) + - 71 * - + 81 + + COALESCE ( - + 18, 5 - + 10, + 57 * + COUNT( * ) * - + 12 ) col2
----
5639

skipif mysql # not compatible
query I rowsort label-1272
SELECT ALL - MIN ( DISTINCT - 31 ) * - 3 + - - ( - + COUNT ( * ) ) + - 71 * - + 81 + + COALESCE ( - + 18, 5 - + 10, + 57 * + COUNT ( * ) * - + 12 ) col2
----
5639

query I rowsort
SELECT + 12 + - - 91 + 91
----
194

onlyif mysql # aggregate syntax: 
query I rowsort label-1274
SELECT DISTINCT - COUNT( * ) - - 83 + + 21 AS col1
----
103

skipif mysql # not compatible
query I rowsort label-1274
SELECT DISTINCT - COUNT ( * ) - - 83 + + 21 AS col1
----
103

onlyif mysql # aggregate syntax: 
query II rowsort label-1275
SELECT ALL COUNT( 26 ), + MAX( DISTINCT + 12 ) AS col2
----
1
12

skipif mysql # not compatible
query II rowsort label-1275
SELECT ALL COUNT ( 26 ), + MAX ( DISTINCT + 12 ) AS col2
----
1
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1276
SELECT ALL COALESCE ( - COUNT( * ), 69 * - 56 * 13 - - + 67 - 67 ) * - 44 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-1276
SELECT ALL COALESCE ( - COUNT ( * ), 69 * - 56 * 13 - - + 67 - 67 ) * - 44 AS col2
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-1277
SELECT DISTINCT + 30 DIV 86 col2
----
0

skipif mysql # not compatible
query I rowsort label-1277
SELECT DISTINCT + 30 / 86 col2
----
0

query I rowsort
SELECT ALL NULLIF ( + 59, - ( - 60 ) )
----
59

query I rowsort
SELECT + 69 + + ( - 3 ) AS col2
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-1280
SELECT ALL + ( - 18 ) AS col0, MAX( DISTINCT - + 51 )
----
-18
-51

skipif mysql # not compatible
query II rowsort label-1280
SELECT ALL + ( - 18 ) AS col0, MAX ( DISTINCT - + 51 )
----
-18
-51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1282
SELECT ALL - - MIN( ALL - + 15 ) * - 63 AS col0
----
945

skipif mysql # not compatible
query I rowsort label-1282
SELECT ALL - - MIN ( ALL - + 15 ) * - 63 AS col0
----
945

query I rowsort
SELECT + 88 * + 16 - 28 AS col0
----
1380

query I rowsort
SELECT - + 50 * + 28 + 51
----
-1349

query I rowsort
SELECT DISTINCT + + 3 AS col0
----
3

query II rowsort
SELECT + 52 + + 81, 83 AS col0
----
133
83

onlyif mysql # aggregate syntax: 
query II rowsort label-1287
SELECT - + 63 * - COUNT( * ) + + 86 - 19 AS col1, + 25 col1
----
130
25

skipif mysql # not compatible
query II rowsort label-1287
SELECT - + 63 * - COUNT ( * ) + + 86 - 19 AS col1, + 25 col1
----
130
25

query I rowsort
SELECT + - 49 * 34 + + - 51 AS col0
----
-1717

query I rowsort
SELECT - - 81 * + ( - + 19 )
----
-1539

onlyif mysql # aggregate syntax: 
query I rowsort label-1290
SELECT DISTINCT + ( + - 80 ) * + - COUNT( * ) + - 18 + - ( - + 60 ) + 15 * + 87 AS col1
----
1427

skipif mysql # not compatible
query I rowsort label-1290
SELECT DISTINCT + ( + - 80 ) * + - COUNT ( * ) + - 18 + - ( - + 60 ) + 15 * + 87 AS col1
----
1427

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

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

query I rowsort
SELECT + + 48 * 82 * + 14 * - 60 * 76 col2
----
-251274240

query I rowsort
SELECT ALL 37 * - + 80 + 44 + - - 35 AS col1
----
-2881

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

query I rowsort
SELECT ALL 37 * - 59 * 77 - + 24 AS col2
----
-168115

query I rowsort
SELECT - - 87 * + + 17 AS col0
----
1479

query I rowsort
SELECT + 81 + - - 91 * 94 AS col2
----
8635

onlyif mysql # aggregate syntax: 
query I rowsort label-1298
SELECT MAX( + 79 ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-1298
SELECT MAX ( + 79 ) AS col2
----
79

query I rowsort
SELECT - ( - + 69 )
----
69

query I rowsort
SELECT + 12 * - - 57
----
684

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1302
SELECT + 29 + - 48 * - 67 * - 57 * MIN( + 72 ) AS col1
----
-13198435

skipif mysql # not compatible
query I rowsort label-1302
SELECT + 29 + - 48 * - 67 * - 57 * MIN ( + 72 ) AS col1
----
-13198435

onlyif mysql # aggregate syntax: 
query I rowsort label-1303
SELECT ALL COUNT( * ) * - SUM( + 90 ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-1303
SELECT ALL COUNT ( * ) * - SUM ( + 90 ) AS col0
----
-90

query I rowsort
SELECT + 82 * + 31
----
2542

onlyif mysql # DIV for integer division: 
query I rowsort label-1305
SELECT ALL + 44 DIV 66 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1305
SELECT ALL + 44 / 66 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1306
SELECT DISTINCT COALESCE ( COUNT( * ), - 33 + - NULLIF ( 1, - + SUM( ALL + + 18 ) * + + 78 * - - 29 ) * 4 ) - + 75 col2
----
-74

skipif mysql # not compatible
query I rowsort label-1306
SELECT DISTINCT COALESCE ( COUNT ( * ), - 33 + - NULLIF ( 1, - + SUM ( ALL + + 18 ) * + + 78 * - - 29 ) * 4 ) - + 75 col2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT + 76 + - SUM( ( - 79 ) )
----
155

skipif mysql # not compatible
query I rowsort label-1307
SELECT + 76 + - SUM ( ( - 79 ) )
----
155

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1308
SELECT + 46 * + MIN( - - 26 ), 77 DIV + + 3 AS col2
----
1196
25

skipif mysql # not compatible
query II rowsort label-1308
SELECT + 46 * + MIN ( - - 26 ), 77 / + + 3 AS col2
----
1196
25

query I rowsort
SELECT - ( - 87 ) AS col1
----
87

query II rowsort
SELECT - 24 AS col1, + 44 AS col0
----
-24
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1311
SELECT ALL ( 95 ) DIV - SUM( - 90 ) * - COUNT( * ) col0, + 99 + 53 AS col0
----
-1
152

skipif mysql # not compatible
query II rowsort label-1311
SELECT ALL ( 95 ) / - SUM ( - 90 ) * - COUNT ( * ) col0, + 99 + 53 AS col0
----
-1
152

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1313
SELECT 2, CAST( - - 79 AS SIGNED ) + + - CAST( NULL AS SIGNED ) AS col2
----
2
NULL

skipif mysql # not compatible
query II rowsort label-1313
SELECT 2, CAST ( - - 79 AS INTEGER ) + + - CAST ( NULL AS INTEGER ) AS col2
----
2
NULL

query II rowsort
SELECT ALL + 18 AS col1, - 62 AS col0
----
18
-62

query I rowsort
SELECT DISTINCT - 90 * 91
----
-8190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1316
SELECT - - 79 / + CAST( 3 AS SIGNED ) * - SUM( 46 ) * 76 / + COALESCE ( - 10, 21 ) * + 18 / COUNT( * ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1316
SELECT - - 79 / + CAST ( 3 AS INTEGER ) * - SUM ( 46 ) * 76 / + COALESCE ( - 10, 21 ) * + 18 / COUNT ( * ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1317
SELECT ALL + + CASE 4 WHEN + + COUNT( * ) THEN + COUNT( * ) ELSE + 30 + - COUNT( * ) * - 19 END DIV - COUNT( + NULLIF ( 5, 32 ) ) + + - 39 * - COUNT( * ), - ( 81 ) AS col1
----
-10
-81

skipif mysql # not compatible
query II rowsort label-1317
SELECT ALL + + CASE 4 WHEN + + COUNT ( * ) THEN + COUNT ( * ) ELSE + 30 + - COUNT ( * ) * - 19 END / - COUNT ( + NULLIF ( 5, 32 ) ) + + - 39 * - COUNT ( * ), - ( 81 ) AS col1
----
-10
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1318
SELECT ALL + COUNT( DISTINCT - 79 )
----
1

skipif mysql # not compatible
query I rowsort label-1318
SELECT ALL + COUNT ( DISTINCT - 79 )
----
1

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1320
SELECT SUM( + - 55 ) DIV + - COALESCE ( 79, 83 ) - - 90 + - 27
----
63

skipif mysql # not compatible
query I rowsort label-1320
SELECT SUM ( + - 55 ) / + - COALESCE ( 79, 83 ) - - 90 + - 27
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1321
SELECT ALL - 52 DIV + - 55 * - + MIN( - 91 ) + - 40 + - ( - 91 ) + - 63 * 70
----
-4359

skipif mysql # not compatible
query I rowsort label-1321
SELECT ALL - 52 / + - 55 * - + MIN ( - 91 ) + - 40 + - ( - 91 ) + - 63 * 70
----
-4359

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1323
SELECT DISTINCT + 59 DIV COUNT( 64 ) + - COUNT( * ) DIV - 45, + 41 col2
----
59
41

skipif mysql # not compatible
query II rowsort label-1323
SELECT DISTINCT + 59 / COUNT ( 64 ) + - COUNT ( * ) / - 45, + 41 col2
----
59
41

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1325
SELECT CASE 79 WHEN + COUNT( * ) * - COALESCE ( ( + - 40 ), COUNT( * ) ) / + - 10 THEN 5 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1325
SELECT CASE 79 WHEN + COUNT ( * ) * - COALESCE ( ( + - 40 ), COUNT ( * ) ) / + - 10 THEN 5 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1326
SELECT ALL CAST( 63 AS SIGNED ) DIV 66 * - + 46 + + - 94 * - - 73 + + CAST( 22 AS SIGNED ) AS col2
----
-6840

skipif mysql # not compatible
query I rowsort label-1326
SELECT ALL CAST ( 63 AS INTEGER ) / 66 * - + 46 + + - 94 * - - 73 + + CAST ( 22 AS INTEGER ) AS col2
----
-6840

onlyif mysql # aggregate syntax: 
query I rowsort label-1327
SELECT ALL + + 39 * - + 84 * 32 + - COUNT( * ) AS col2
----
-104833

skipif mysql # not compatible
query I rowsort label-1327
SELECT ALL + + 39 * - + 84 * 32 + - COUNT ( * ) AS col2
----
-104833

query I rowsort
SELECT + + 46 col2
----
46

query I rowsort
SELECT + - 33 col2
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1330
SELECT - AVG ( 89 ) + + CAST( NULL AS SIGNED ) * - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-1330
SELECT - AVG ( 89 ) + + CAST ( NULL AS INTEGER ) * - 56
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1331
SELECT - ( - - COUNT( * ) ) * - 31 DIV - ( 7 ) + - - COUNT( * ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-1331
SELECT - ( - - COUNT ( * ) ) * - 31 / - ( 7 ) + - - COUNT ( * ) AS col0
----
-3

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

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

query II rowsort
SELECT + - 22 col0, - 39 col2
----
-22
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1334
SELECT - - 25 - CAST( + 27 AS SIGNED ) + - NULLIF ( + + 31, + 95 + 10 / + + COUNT( * ) ) - 91
----
-124

skipif mysql # not compatible
query I rowsort label-1334
SELECT - - 25 - CAST ( + 27 AS INTEGER ) + - NULLIF ( + + 31, + 95 + 10 / + + COUNT ( * ) ) - 91
----
-124

query I rowsort
SELECT - 75 * + 25 - - 24 + 94
----
-1757

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1336
SELECT COUNT( * ) * SUM( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1336
SELECT COUNT ( * ) * SUM ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT ALL - ( - + 18 ) - COUNT( * ) col0
----
17

skipif mysql # not compatible
query I rowsort label-1337
SELECT ALL - ( - + 18 ) - COUNT ( * ) col0
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-1338
SELECT DISTINCT 59 DIV 22
----
2

skipif mysql # not compatible
query I rowsort label-1338
SELECT DISTINCT 59 / 22
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1339
SELECT DISTINCT + 3 - MIN( DISTINCT - 5 )
----
8

skipif mysql # not compatible
query I rowsort label-1339
SELECT DISTINCT + 3 - MIN ( DISTINCT - 5 )
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-1340
SELECT MIN( + COALESCE ( - 34, 26 * + 85, - 62 ) ) - + 12, 2 AS col1
----
-46
2

skipif mysql # not compatible
query II rowsort label-1340
SELECT MIN ( + COALESCE ( - 34, 26 * + 85, - 62 ) ) - + 12, 2 AS col1
----
-46
2

query II rowsort
SELECT ALL 56 col1, 66 * - + 33 AS col1
----
56
-2178

query II rowsort
SELECT - 57, + 85 AS col2
----
-57
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1343
SELECT 63 - COALESCE ( + + COALESCE ( + 4, COUNT( * ) ), + - 59 * 75 DIV - 91 + - 10 + 96 + - COALESCE ( + + 5, - - 14 * - 28 * + COUNT( * ) ) * + + MAX( DISTINCT + 38 ) * - 93 DIV 90 DIV 68 * - 74, + 67 ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-1343
SELECT 63 - COALESCE ( + + COALESCE ( + 4, COUNT ( * ) ), + - 59 * 75 / - 91 + - 10 + 96 + - COALESCE ( + + 5, - - 14 * - 28 * + COUNT ( * ) ) * + + MAX ( DISTINCT + 38 ) * - 93 / 90 / 68 * - 74, + 67 ) AS col2
----
59

query II rowsort
SELECT ALL 25 AS col0, 11
----
25
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1345
SELECT ALL CAST( + - COUNT( * ) AS SIGNED ) * - 79 * - - 49
----
3871

skipif mysql # not compatible
query I rowsort label-1345
SELECT ALL CAST ( + - COUNT ( * ) AS INTEGER ) * - 79 * - - 49
----
3871

onlyif mysql # aggregate syntax: 
query I rowsort label-1346
SELECT ALL COUNT( * ) + - 98 AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-1346
SELECT ALL COUNT ( * ) + - 98 AS col1
----
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-1347
SELECT - 81 AS col1, 91 DIV + + 6 AS col2
----
-81
15

skipif mysql # not compatible
query II rowsort label-1347
SELECT - 81 AS col1, 91 / + + 6 AS col2
----
-81
15

query II rowsort
SELECT + 50 + 23 AS col0, COALESCE ( - 29, - 48, - 76 * - - 58 + + 70 * + 9 * - 19 + - 52 ) * + 60
----
73
-1740

query I rowsort
SELECT + NULLIF ( + 86, - + 43 * 62 / + + 92 ) * - 90
----
-7740

query II rowsort
SELECT 79 AS col2, - 1
----
79
-1

query I rowsort
SELECT DISTINCT ( - 63 ) + + ( - 7 )
----
-70

query I rowsort
SELECT ALL 26 * 57
----
1482

query I rowsort
SELECT + - COALESCE ( + + 19, + 2 ) * + 20 * 26 + + - 45 - - 66 * 50 col2
----
-6625

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1354
SELECT ALL 70 + + - CAST( NULL AS SIGNED ) + - - 54 * - 43 AS col1, - MIN( + + 14 )
----
NULL
-14

skipif mysql # not compatible
query II rowsort label-1354
SELECT ALL 70 + + - CAST ( NULL AS INTEGER ) + - - 54 * - 43 AS col1, - MIN ( + + 14 )
----
NULL
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1355
SELECT DISTINCT + COUNT( * ) * - + 82 col0
----
-82

skipif mysql # not compatible
query I rowsort label-1355
SELECT DISTINCT + COUNT ( * ) * - + 82 col0
----
-82

query I rowsort
SELECT ALL - 95 + + + 8
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-1357
SELECT 90 DIV 17 - - 12
----
17

skipif mysql # not compatible
query I rowsort label-1357
SELECT 90 / 17 - - 12
----
17

query I rowsort
SELECT ALL - 84 * 92 + 86 + - 35 col0
----
-7677

query I rowsort
SELECT + 36 + + 90 AS col0
----
126

query I rowsort
SELECT + 50 + 81 col1
----
131

query I rowsort
SELECT - CASE - 85 WHEN 72 THEN NULL WHEN - ( + - 97 ) * + 5 THEN + 18 * - 25 * - + 37 WHEN 31 / + 72 - + - 3 THEN 6 END * - + 79 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1362
SELECT - - COUNT( * ) DIV 94 + - + COUNT( * ) + + 48 - + 41
----
6

skipif mysql # not compatible
query I rowsort label-1362
SELECT - - COUNT ( * ) / 94 + - + COUNT ( * ) + + 48 - + 41
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1363
SELECT 78, 38 * - CAST( + - 0 AS SIGNED ) AS col1, - COALESCE ( 92, 35 ) * - 87 - 26 + - 39 * - - 86 AS col0
----
78
0
4624

skipif mysql # not compatible
query III rowsort label-1363
SELECT 78, 38 * - CAST ( + - 0 AS INTEGER ) AS col1, - COALESCE ( 92, 35 ) * - 87 - 26 + - 39 * - - 86 AS col0
----
78
0
4624

query II rowsort
SELECT DISTINCT - 68 AS col2, - 19
----
-68
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1365
SELECT ALL + CAST( + 51 AS SIGNED ) * - + 0, COUNT( * ) + - - 63 col2
----
0
64

skipif mysql # not compatible
query II rowsort label-1365
SELECT ALL + CAST ( + 51 AS INTEGER ) * - + 0, COUNT ( * ) + - - 63 col2
----
0
64

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

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

query I rowsort
SELECT 35 * NULLIF ( 54, - AVG ( ALL - 83 ) )
----
1890

query I rowsort
SELECT DISTINCT + 43 * + ( 72 ) * + 13
----
40248

onlyif mysql # aggregate syntax: 
query I rowsort label-1369
SELECT 25 * - ( - CASE COALESCE ( - - 94, 13 + COUNT( * ) ) WHEN - - 29 + + 97 + + + COUNT( * ) THEN 20 ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1369
SELECT 25 * - ( - CASE COALESCE ( - - 94, 13 + COUNT ( * ) ) WHEN - - 29 + + 97 + + + COUNT ( * ) THEN 20 ELSE NULL END ) AS col1
----
NULL

query I rowsort
SELECT 60 * + 70 col2
----
4200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1371
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - + 44 * - - CAST( - COUNT( * ) AS SIGNED ) * + + 26
----
NULL

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

query I rowsort
SELECT 50 + - 5 col1
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-1373
SELECT DISTINCT - COUNT( * ) * + 35 AS col1, - COUNT( * )
----
-35
-1

skipif mysql # not compatible
query II rowsort label-1373
SELECT DISTINCT - COUNT ( * ) * + 35 AS col1, - COUNT ( * )
----
-35
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1374
SELECT ALL MAX( + 7 ) col1, 25
----
7
25

skipif mysql # not compatible
query II rowsort label-1374
SELECT ALL MAX ( + 7 ) col1, 25
----
7
25

query I rowsort
SELECT 60 + - 90
----
-30

query I rowsort
SELECT 50 * - ( - 30 ) AS col1
----
1500

query I rowsort
SELECT 88 * + 55 AS col2
----
4840

onlyif mysql # aggregate syntax: 
query II rowsort label-1378
SELECT DISTINCT + 36 + + - 79 + + COUNT( * ) AS col0, - COUNT( * ) AS col1
----
-42
-1

skipif mysql # not compatible
query II rowsort label-1378
SELECT DISTINCT + 36 + + - 79 + + COUNT ( * ) AS col0, - COUNT ( * ) AS col1
----
-42
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1379
SELECT - ( - 41 ) + + COUNT( * ) col0
----
42

skipif mysql # not compatible
query I rowsort label-1379
SELECT - ( - 41 ) + + COUNT ( * ) col0
----
42

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1380
SELECT DISTINCT - COALESCE ( + + NULLIF ( + 8, - + 34 * + 42 + + CAST( - + NULLIF ( - + 34, - 39 ) AS DECIMAL ) * 86 / + 3 - + CAST( NULL AS SIGNED ) * - + 74 ), + 57 + - 73 + - + 7, 2 * 33 * - - 97 ) * + + 50 AS col0, - ( 36 ) + 77 AS col2
----
-400
41

skipif mysql # not compatible
query II rowsort label-1380
SELECT DISTINCT - COALESCE ( + + NULLIF ( + 8, - + 34 * + 42 + + CAST ( - + NULLIF ( - + 34, - 39 ) AS REAL ) * 86 / + 3 - + CAST ( NULL AS INTEGER ) * - + 74 ), + 57 + - 73 + - + 7, 2 * 33 * - - 97 ) * + + 50 AS col0, - ( 36 ) + 77 AS col2
----
-400
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1381
SELECT DISTINCT + 38 + + CAST( 39 AS SIGNED ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-1381
SELECT DISTINCT + 38 + + CAST ( 39 AS INTEGER ) AS col2
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1382
SELECT ALL - + MAX( DISTINCT - - 53 ) + - + 98 * ( + 27 ) * COUNT( 46 ) + + 77 + + 44 * - 8 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1382
SELECT ALL - + MAX ( DISTINCT - - 53 ) + - + 98 * ( + 27 ) * COUNT ( 46 ) + + 77 + + 44 * - 8 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1383
SELECT DISTINCT + 46 + - 12 * + + MAX( DISTINCT - 78 ) + + 76 * - CASE 61 WHEN + - 78 + - COUNT( * ) THEN NULL WHEN - 60 THEN + 23 + - 54 * + MIN( ALL - + 49 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1383
SELECT DISTINCT + 46 + - 12 * + + MAX ( DISTINCT - 78 ) + + 76 * - CASE 61 WHEN + - 78 + - COUNT ( * ) THEN NULL WHEN - 60 THEN + 23 + - 54 * + MIN ( ALL - + 49 ) ELSE NULL END AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1385
SELECT MAX( - 16 ) * + - 47 - + - MIN( ALL 90 )
----
842

skipif mysql # not compatible
query I rowsort label-1385
SELECT MAX ( - 16 ) * + - 47 - + - MIN ( ALL 90 )
----
842

onlyif mysql # aggregate syntax: 
query I rowsort label-1386
SELECT + CASE - 99 WHEN - - 24 THEN + + COUNT( * ) WHEN + + CASE ( 16 ) WHEN + + 10 - MAX( DISTINCT + + 29 ) THEN + + 93 * + 22 + - 81 WHEN - COUNT( * ) THEN 83 * + 55 * 70 ELSE 51 * 68 END THEN - 69 + - 82 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1386
SELECT + CASE - 99 WHEN - - 24 THEN + + COUNT ( * ) WHEN + + CASE ( 16 ) WHEN + + 10 - MAX ( DISTINCT + + 29 ) THEN + + 93 * + 22 + - 81 WHEN - COUNT ( * ) THEN 83 * + 55 * 70 ELSE 51 * 68 END THEN - 69 + - 82 END
----
NULL

query I rowsort
SELECT ALL + 21 * + 88 - - + 28
----
1876

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1388
SELECT 31 * - 23 * 40 AS col0, + CAST( NULL AS SIGNED ) * + 22 AS col2
----
-28520
NULL

skipif mysql # not compatible
query II rowsort label-1388
SELECT 31 * - 23 * 40 AS col0, + CAST ( NULL AS INTEGER ) * + 22 AS col2
----
-28520
NULL

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

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

query I rowsort
SELECT DISTINCT + + 49 col0
----
49

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

query I rowsort
SELECT ALL 12 * 12
----
144

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1394
SELECT ALL CAST( 65 AS SIGNED ) * 36
----
2340

skipif mysql # not compatible
query I rowsort label-1394
SELECT ALL CAST ( 65 AS INTEGER ) * 36
----
2340

query II rowsort
SELECT + 43 AS col2, + 17
----
43
17

onlyif mysql # DIV for integer division: 
query I rowsort label-1396
SELECT + 71 DIV - 91 * - 89
----
0

skipif mysql # not compatible
query I rowsort label-1396
SELECT + 71 / - 91 * - 89
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1397
SELECT COUNT( 76 )
----
1

skipif mysql # not compatible
query I rowsort label-1397
SELECT COUNT ( 76 )
----
1

query I rowsort
SELECT - 53 * - + 37 * 48 AS col1
----
94128

query I rowsort
SELECT + 23 - 5 AS col0
----
18

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1401
SELECT - MAX( CAST( NULL AS SIGNED ) ) + + + 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1401
SELECT - MAX ( CAST ( NULL AS INTEGER ) ) + + + 59 AS col0
----
NULL

query III rowsort
SELECT ALL ( - 14 ) + - 32 col0, - 9, - 45 AS col2
----
-46
-9
-45

query II rowsort
SELECT 10 col0, 83 AS col0
----
10
83

query I rowsort
SELECT ALL - 22 * - + 47 * 43
----
44462

onlyif mysql # aggregate syntax: 
query I rowsort label-1405
SELECT + 81 * - - COUNT( * ) col1
----
81

skipif mysql # not compatible
query I rowsort label-1405
SELECT + 81 * - - COUNT ( * ) col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1406
SELECT - 87 * - 57 * COUNT( * ) AS col1
----
4959

skipif mysql # not compatible
query I rowsort label-1406
SELECT - 87 * - 57 * COUNT ( * ) AS col1
----
4959

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1408
SELECT ALL - 95 + + SUM( + 10 ) col0
----
-85

skipif mysql # not compatible
query I rowsort label-1408
SELECT ALL - 95 + + SUM ( + 10 ) col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-1409
SELECT ALL + 9 + - 97 * COUNT( 13 )
----
-88

skipif mysql # not compatible
query I rowsort label-1409
SELECT ALL + 9 + - 97 * COUNT ( 13 )
----
-88

query I rowsort
SELECT ALL - - 57 - + 74 AS col0
----
-17

query I rowsort
SELECT - + 90 * - 96
----
8640

onlyif mysql # aggregate syntax: 
query I rowsort label-1412
SELECT ( - + CASE - 65 WHEN + + 14 * - + 69 + 32 * + - 44 * ( + - 97 ) - - 75 THEN NULL WHEN - COUNT( * ) THEN + SUM( + 43 ) END ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1412
SELECT ( - + CASE - 65 WHEN + + 14 * - + 69 + 32 * + - 44 * ( + - 97 ) - - 75 THEN NULL WHEN - COUNT ( * ) THEN + SUM ( + 43 ) END ) col0
----
NULL

query I rowsort
SELECT - 49 + - 58
----
-107

query II rowsort
SELECT ALL + 41 col2, - 47 * + 10
----
41
-470

onlyif mysql # aggregate syntax: 
query I rowsort label-1415
SELECT - 62 * ( COUNT( * ) )
----
-62

skipif mysql # not compatible
query I rowsort label-1415
SELECT - 62 * ( COUNT ( * ) )
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1416
SELECT + COUNT( * ) * 44 DIV - CASE + CAST( - + 46 AS SIGNED ) WHEN - AVG ( DISTINCT 46 ) THEN + 51 * + 89 + + 31 + + 1 * - 40 WHEN + 1 THEN - + COUNT( * ) WHEN 80 + - COUNT( * ) - + + 30 + 51 * + CASE + COUNT( * ) WHEN + 11 * - + MAX( CAST( + - 80 AS SIGNED ) ) * 29 + + ( - - COUNT( * ) ) THEN + + 8 * + ( - NULLIF ( 68, - 9 + - 2 ) ) + 87 WHEN + 93 THEN NULL END * COUNT( * ) THEN NULL END col0
----
0

skipif mysql # not compatible
query I rowsort label-1416
SELECT + COUNT ( * ) * 44 / - CASE + CAST ( - + 46 AS INTEGER ) WHEN - AVG ( DISTINCT 46 ) THEN + 51 * + 89 + + 31 + + 1 * - 40 WHEN + 1 THEN - + COUNT ( * ) WHEN 80 + - COUNT ( * ) - + + 30 + 51 * + CASE + COUNT ( * ) WHEN + 11 * - + MAX ( CAST ( + - 80 AS INTEGER ) ) * 29 + + ( - - COUNT ( * ) ) THEN + + 8 * + ( - NULLIF ( 68, - 9 + - 2 ) ) + 87 WHEN + 93 THEN NULL END * COUNT ( * ) THEN NULL END col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1418
SELECT ALL 15 * + 93 * 19 * - COUNT( * )
----
-26505

skipif mysql # not compatible
query I rowsort label-1418
SELECT ALL 15 * + 93 * 19 * - COUNT ( * )
----
-26505

query I rowsort
SELECT ALL - - 86 * - 63
----
-5418

onlyif mysql # aggregate syntax: 
query I rowsort label-1420
SELECT - ( - - 11 ) * + - NULLIF ( - ( - COUNT( 30 ) ), + 42 ) + - COUNT( * ) + 82 AS col0
----
92

skipif mysql # not compatible
query I rowsort label-1420
SELECT - ( - - 11 ) * + - NULLIF ( - ( - COUNT ( 30 ) ), + 42 ) + - COUNT ( * ) + 82 AS col0
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-1421
SELECT + 19 DIV + 7 + + + 15 + NULLIF ( - 25, 60 + + ( 88 ) ) - - 4 + + - 64 * - 42 * - + 89
----
-239236

skipif mysql # not compatible
query I rowsort label-1421
SELECT + 19 / + 7 + + + 15 + NULLIF ( - 25, 60 + + ( 88 ) ) - - 4 + + - 64 * - 42 * - + 89
----
-239236

onlyif mysql # DIV for integer division: 
query I rowsort label-1422
SELECT - 94 DIV + 99 + + 16
----
16

skipif mysql # not compatible
query I rowsort label-1422
SELECT - 94 / + 99 + + 16
----
16

query II rowsort
SELECT + CASE 11 WHEN - + 74 THEN + 78 WHEN + 85 + 59 * + - 23 / - 11 + + - 62 THEN NULL ELSE NULL END + - 6 col2, - 79
----
NULL
-79

query II rowsort
SELECT ( + 25 ) AS col2, 63 * - + 82 * CASE + 72 WHEN 89 THEN - + 53 + - 79 END * + 95 AS col2
----
25
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1425
SELECT - 30 * - MAX( - 44 )
----
-1320

skipif mysql # not compatible
query I rowsort label-1425
SELECT - 30 * - MAX ( - 44 )
----
-1320

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1426
SELECT + MIN( ALL + 60 ) DIV 96 + - 8 col0
----
-8

skipif mysql # not compatible
query I rowsort label-1426
SELECT + MIN ( ALL + 60 ) / 96 + - 8 col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1427
SELECT + NULLIF ( - 30, + 88 ) + + 14 - + COUNT( * ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-1427
SELECT + NULLIF ( - 30, + 88 ) + + 14 - + COUNT ( * ) AS col0
----
-17

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1429
SELECT CASE + COUNT( DISTINCT + 1 ) WHEN + + 28 THEN + - 76 * + 24 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1429
SELECT CASE + COUNT ( DISTINCT + 1 ) WHEN + + 28 THEN + - 76 * + 24 ELSE NULL END
----
NULL

query I rowsort
SELECT + ( - ( - 95 ) ) AS col0
----
95

onlyif mysql # DIV for integer division: 
query II rowsort label-1431
SELECT ALL 87 * - 5 + - 2 DIV - 71 AS col0, 43 AS col0
----
-435
43

skipif mysql # not compatible
query II rowsort label-1431
SELECT ALL 87 * - 5 + - 2 / - 71 AS col0, 43 AS col0
----
-435
43

query I rowsort
SELECT + 46 + - 10 AS col1
----
36

query I rowsort
SELECT NULLIF ( + 78, 59 * - - 99 / + 43 )
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1434
SELECT - CAST( NULL AS SIGNED ) + + - 85 * - 31 * - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-1434
SELECT - CAST ( NULL AS INTEGER ) + + - 85 * - 31 * - 75
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1435
SELECT + NULLIF ( + 78, COALESCE ( - ( - 21 ), + 76 ) ) * MAX( ALL - + 77 ) - - + 21
----
-5985

skipif mysql # not compatible
query I rowsort label-1435
SELECT + NULLIF ( + 78, COALESCE ( - ( - 21 ), + 76 ) ) * MAX ( ALL - + 77 ) - - + 21
----
-5985

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1436
SELECT + ( + NULLIF ( 6, - + 34 / 10 * + COUNT( * ) + + + ( + 39 ) ) ) + - - 62 * - CASE 51 WHEN - ( - - 16 ) * - 32 * + - ( + 17 ) * + ( CASE 69 WHEN CAST( NULL AS SIGNED ) * COUNT( * ) * + CAST( 84 AS SIGNED ) THEN - 48 + - ( + - ( - 30 ) ) WHEN - + COUNT( * ) + + ( ( 37 ) ) + 17 * 68 THEN - 92 * - COUNT( * ) ELSE + 62 END ) + 96 THEN NULL WHEN CAST( 98 AS SIGNED ) THEN - 13 ELSE + 54 END
----
-3342

skipif mysql # not compatible
query I rowsort label-1436
SELECT + ( + NULLIF ( 6, - + 34 / 10 * + COUNT ( * ) + + + ( + 39 ) ) ) + - - 62 * - CASE 51 WHEN - ( - - 16 ) * - 32 * + - ( + 17 ) * + ( CASE 69 WHEN CAST ( NULL AS INTEGER ) * COUNT ( * ) * + CAST ( 84 AS INTEGER ) THEN - 48 + - ( + - ( - 30 ) ) WHEN - + COUNT ( * ) + + ( ( 37 ) ) + 17 * 68 THEN - 92 * - COUNT ( * ) ELSE + 62 END ) + 96 THEN NULL WHEN CAST ( 98 AS INTEGER ) THEN - 13 ELSE + 54 END
----
-3342

onlyif mysql # aggregate syntax: 
query I rowsort label-1437
SELECT MAX( ALL - 35 ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-1437
SELECT MAX ( ALL - 35 ) AS col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-1438
SELECT ALL - 14 * 78 - - 32 + + COUNT( * )
----
-1059

skipif mysql # not compatible
query I rowsort label-1438
SELECT ALL - 14 * 78 - - 32 + + COUNT ( * )
----
-1059

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

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

skipif mysql # not compatible
query II rowsort label-1440
SELECT - - ( + - 71 ) AS col0, + COUNT ( * ) AS col1
----
-71
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1441
SELECT DISTINCT - 55 * + ( + + COUNT( * ) ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-1441
SELECT DISTINCT - 55 * + ( + + COUNT ( * ) ) AS col1
----
-55

query I rowsort
SELECT ALL + + ( - + 16 ) - + 25 - - - 52 + - 20
----
-113

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

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

query II rowsort
SELECT + 33 * 70 AS col1, 59 AS col1
----
2310
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1445
SELECT DISTINCT + COUNT( * ) * - 28 * + 43 AS col0
----
-1204

skipif mysql # not compatible
query I rowsort label-1445
SELECT DISTINCT + COUNT ( * ) * - 28 * + 43 AS col0
----
-1204

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1446
SELECT CAST( NULL AS SIGNED ) + + ( - 36 ) + - ( ( - 70 ) ) + - ( 63 ) + 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1446
SELECT CAST ( NULL AS INTEGER ) + + ( - 36 ) + - ( ( - 70 ) ) + - ( 63 ) + 39 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1447
SELECT ALL - MIN( DISTINCT - - 40 ) * + - 59
----
2360

skipif mysql # not compatible
query I rowsort label-1447
SELECT ALL - MIN ( DISTINCT - - 40 ) * + - 59
----
2360

onlyif mysql # DIV for integer division: 
query II rowsort label-1448
SELECT ALL + 23 DIV + + 94 AS col2, 6
----
0
6

skipif mysql # not compatible
query II rowsort label-1448
SELECT ALL + 23 / + + 94 AS col2, 6
----
0
6

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1451
SELECT ALL + 3 DIV + MAX( - 46 ) * - 96 * - 29 - 80
----
-80

skipif mysql # not compatible
query I rowsort label-1451
SELECT ALL + 3 / + MAX ( - 46 ) * - 96 * - 29 - 80
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-1452
SELECT MAX( - + CASE + 11 WHEN + - NULLIF ( + 4, + 82 ) / - - 68 * + COALESCE ( - 74, - 53 ) + + + 80 THEN 55 WHEN + 68 THEN NULL ELSE NULL END ) * - 43 * - COUNT( * ) + + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-1452
SELECT MAX ( - + CASE + 11 WHEN + - NULLIF ( + 4, + 82 ) / - - 68 * + COALESCE ( - 74, - 53 ) + + + 80 THEN 55 WHEN + 68 THEN NULL ELSE NULL END ) * - 43 * - COUNT ( * ) + + 43
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1453
SELECT + 87 AS col2, - 54 + ( - 32 ) * - MIN( 14 ) - + + 28
----
87
366

skipif mysql # not compatible
query II rowsort label-1453
SELECT + 87 AS col2, - 54 + ( - 32 ) * - MIN ( 14 ) - + + 28
----
87
366

onlyif mysql # DIV for integer division: 
query I rowsort label-1454
SELECT DISTINCT + 85 + + 34 DIV - 27 + 5 * + 93 + + 41 AS col0
----
590

skipif mysql # not compatible
query I rowsort label-1454
SELECT DISTINCT + 85 + + 34 / - 27 + 5 * + 93 + + 41 AS col0
----
590

query I rowsort
SELECT DISTINCT 53 + - - 83
----
136

query I rowsort
SELECT DISTINCT - ( - 8 ) * 51 AS col2
----
408

onlyif mysql # aggregate syntax: 
query II rowsort label-1457
SELECT DISTINCT + 85 + + COUNT( * ) + + 35, 87 AS col2
----
121
87

skipif mysql # not compatible
query II rowsort label-1457
SELECT DISTINCT + 85 + + COUNT ( * ) + + 35, 87 AS col2
----
121
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1458
SELECT ALL 88 + 49 + - + SUM( 26 ) + COUNT( * ) * 21 * + COUNT( * ) * - - 29 AS col0
----
720

skipif mysql # not compatible
query I rowsort label-1458
SELECT ALL 88 + 49 + - + SUM ( 26 ) + COUNT ( * ) * 21 * + COUNT ( * ) * - - 29 AS col0
----
720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1459
SELECT ALL + 22 * COUNT( * ) DIV - - 40 * - 22
----
0

skipif mysql # not compatible
query I rowsort label-1459
SELECT ALL + 22 * COUNT ( * ) / - - 40 * - 22
----
0

query I rowsort
SELECT DISTINCT + 13 + - + 76 AS col1
----
-63

query I rowsort
SELECT 53 + 20 AS col2
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1462
SELECT MIN( - + 37 ) * 59 DIV + - 84 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-1462
SELECT MIN ( - + 37 ) * 59 / + - 84 AS col2
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-1463
SELECT + 64 AS col1, - COUNT( * ) AS col0
----
64
-1

skipif mysql # not compatible
query II rowsort label-1463
SELECT + 64 AS col1, - COUNT ( * ) AS col0
----
64
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1464
SELECT ALL COUNT( * ) - - 42 * 3 AS col1
----
127

skipif mysql # not compatible
query I rowsort label-1464
SELECT ALL COUNT ( * ) - - 42 * 3 AS col1
----
127

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

query II rowsort
SELECT DISTINCT - 52 AS col0, - 1 AS col2
----
-52
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1467
SELECT ALL - 32 - + MIN( - + 98 ) * - 5
----
-522

skipif mysql # not compatible
query I rowsort label-1467
SELECT ALL - 32 - + MIN ( - + 98 ) * - 5
----
-522

onlyif mysql # DIV for integer division: 
query I rowsort label-1468
SELECT DISTINCT + 78 DIV + - 23 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-1468
SELECT DISTINCT + 78 / + - 23 AS col1
----
-3

query I rowsort
SELECT ALL 81 * 69 * 88 AS col0
----
491832

query I rowsort
SELECT - 51 * 59 col1
----
-3009

query I rowsort
SELECT DISTINCT + 1 - 30 * - + 56
----
1681

query I rowsort
SELECT - + NULLIF ( + 52, - - 32 )
----
-52

query II rowsort
SELECT 69, - 28 * 49 AS col2
----
69
-1372

onlyif mysql # aggregate syntax: 
query I rowsort label-1474
SELECT DISTINCT - 26 * + - COUNT( * ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-1474
SELECT DISTINCT - 26 * + - COUNT ( * ) AS col2
----
26

query II rowsort
SELECT + 87 * - - 34 * - 18, 19 AS col0
----
-53244
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1476
SELECT ( + + 74 ) * + - 78 - - COUNT( * )
----
-5771

skipif mysql # not compatible
query I rowsort label-1476
SELECT ( + + 74 ) * + - 78 - - COUNT ( * )
----
-5771

query I rowsort
SELECT ALL ( - 81 ) col2
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1478
SELECT DISTINCT - COUNT( * ) DIV 34
----
0

skipif mysql # not compatible
query I rowsort label-1478
SELECT DISTINCT - COUNT ( * ) / 34
----
0

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

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

query II rowsort
SELECT DISTINCT + 81 AS col1, - 31
----
81
-31

query I rowsort
SELECT + 33 + - + CASE WHEN NOT ( NULL ) <> - 49 THEN NULL ELSE + ( 16 ) END col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1482
SELECT + COALESCE ( + + ( - 77 ), 65, - + 9 ) * + COALESCE ( + 35, + 19 ) * + COUNT( * ) + - 15
----
-2710

skipif mysql # not compatible
query I rowsort label-1482
SELECT + COALESCE ( + + ( - 77 ), 65, - + 9 ) * + COALESCE ( + 35, + 19 ) * + COUNT ( * ) + - 15
----
-2710

onlyif mysql # aggregate syntax: 
query I rowsort label-1483
SELECT ALL MIN( DISTINCT - 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-1483
SELECT ALL MIN ( DISTINCT - 6 )
----
-6

query I rowsort
SELECT ALL + 98 + 18 * + 17
----
404

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

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

query I rowsort
SELECT ALL - 92 * - 3 + 28
----
304

query I rowsort
SELECT ALL - 83 col0
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1488
SELECT 99 * CASE - 47 WHEN + MIN( ALL - - ( 3 ) ) THEN - COALESCE ( + - COUNT( * ), + 28 ) * 27 - + COUNT( * ) + - ( - - COALESCE ( + - 6, - AVG ( + CASE - 0 WHEN 82 THEN + 0 - ( - - CAST( + CAST( - - 45 AS SIGNED ) AS SIGNED ) ) WHEN ( + 89 ) * + 52 THEN - 5 * + 80 * + - 13 + 3 ELSE NULL END ), + CAST( NULL AS SIGNED ) * 50 ) ) * - 9 ELSE NULL END + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-1488
SELECT 99 * CASE - 47 WHEN + MIN ( ALL - - ( 3 ) ) THEN - COALESCE ( + - COUNT ( * ), + 28 ) * 27 - + COUNT ( * ) + - ( - - COALESCE ( + - 6, - AVG ( + CASE - 0 WHEN 82 THEN + 0 - ( - - CAST ( + CAST ( - - 45 AS INTEGER ) AS INTEGER ) ) WHEN ( + 89 ) * + 52 THEN - 5 * + 80 * + - 13 + 3 ELSE NULL END ), + CAST ( NULL AS INTEGER ) * 50 ) ) * - 9 ELSE NULL END + 51
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1489
SELECT DISTINCT - 95, + 67 + MAX( ALL + - 2 ) AS col0
----
-95
65

skipif mysql # not compatible
query II rowsort label-1489
SELECT DISTINCT - 95, + 67 + MAX ( ALL + - 2 ) AS col0
----
-95
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1490
SELECT ALL + COUNT( ALL 15 ) * 87 + + ( + 53 ) AS col0
----
140

skipif mysql # not compatible
query I rowsort label-1490
SELECT ALL + COUNT ( ALL 15 ) * 87 + + ( + 53 ) AS col0
----
140

query I rowsort
SELECT 69 * - 44 AS col2
----
-3036

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1492
SELECT COUNT( * ), - COALESCE ( - COALESCE ( - ( + MIN( DISTINCT - 25 ) ), - CAST( CAST( - MAX( DISTINCT - + 82 ) AS SIGNED ) AS SIGNED ) ), - + 22 ) AS col1
----
1
25

skipif mysql # not compatible
query II rowsort label-1492
SELECT COUNT ( * ), - COALESCE ( - COALESCE ( - ( + MIN ( DISTINCT - 25 ) ), - CAST ( CAST ( - MAX ( DISTINCT - + 82 ) AS INTEGER ) AS INTEGER ) ), - + 22 ) AS col1
----
1
25

query II rowsort
SELECT ALL - 8 AS col1, ( 29 ) + - 10
----
-8
19

onlyif mysql # aggregate syntax: 
query II rowsort label-1494
SELECT DISTINCT 4 * + 13 + - 52 + + - 20 * 48 * COUNT( * ), - COALESCE ( + - 2, + 3 ) - 35 - - 33 + + - 68 AS col0
----
-960
-68

skipif mysql # not compatible
query II rowsort label-1494
SELECT DISTINCT 4 * + 13 + - 52 + + - 20 * 48 * COUNT ( * ), - COALESCE ( + - 2, + 3 ) - 35 - - 33 + + - 68 AS col0
----
-960
-68

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

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

query II rowsort
SELECT 88 + - - 16, + 68 AS col2
----
104
68

query I rowsort
SELECT 59 * - 68 * NULLIF ( + + 61, 60 )
----
-244732

onlyif mysql # aggregate syntax: 
query II rowsort label-1498
SELECT COUNT( * ), 68 AS col0
----
1
68

skipif mysql # not compatible
query II rowsort label-1498
SELECT COUNT ( * ), 68 AS col0
----
1
68

onlyif mysql # DIV for integer division: 
query I rowsort label-1499
SELECT DISTINCT - 54 DIV 36
----
-1

skipif mysql # not compatible
query I rowsort label-1499
SELECT DISTINCT - 54 / 36
----
-1

query I rowsort
SELECT ALL - 36 * - - 22
----
-792

onlyif mysql # DIV for integer division: 
query I rowsort label-1501
SELECT 78 DIV - 26
----
-3

skipif mysql # not compatible
query I rowsort label-1501
SELECT 78 / - 26
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-1502
SELECT ALL - 64 DIV + 68
----
0

skipif mysql # not compatible
query I rowsort label-1502
SELECT ALL - 64 / + 68
----
0

query I rowsort
SELECT 85 * ( - - 51 ) * + 63 AS col0
----
273105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1504
SELECT ALL + ( + COUNT( * ) ) * + - ( - 86 ) DIV - + 15 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-1504
SELECT ALL + ( + COUNT ( * ) ) * + - ( - 86 ) / - + 15 AS col2
----
-5

query II rowsort
SELECT ALL - 33 AS col1, 80
----
-33
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-1506
SELECT 27 * - CAST( - 35 AS SIGNED ) + 2, 80 * + + COALESCE ( COUNT( * ), - + 75, 48 + + 87 * COALESCE ( - - 82, CAST( NULL AS SIGNED ) * - - 97 DIV + 5 + 90 ) + + 66 ) - COUNT( * ) + 21 col0, - 91 - + 47 + + + COUNT( * ) + + COUNT( * ) + - 91 + - 66 AS col0
----
947
100
-293

skipif mysql # not compatible
query III rowsort label-1506
SELECT 27 * - CAST ( - 35 AS INTEGER ) + 2, 80 * + + COALESCE ( COUNT ( * ), - + 75, 48 + + 87 * COALESCE ( - - 82, CAST ( NULL AS INTEGER ) * - - 97 / + 5 + 90 ) + + 66 ) - COUNT ( * ) + 21 col0, - 91 - + 47 + + + COUNT ( * ) + + COUNT ( * ) + - 91 + - 66 AS col0
----
947
100
-293

onlyif mysql # aggregate syntax: 
query I rowsort label-1507
SELECT COUNT( * ) * + 28 * - + 18 AS col2
----
-504

skipif mysql # not compatible
query I rowsort label-1507
SELECT COUNT ( * ) * + 28 * - + 18 AS col2
----
-504

query II rowsort
SELECT ALL + 47, - 35 - - - ( 86 ) + - - 16 AS col2
----
47
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-1509
SELECT - - 16 * - COUNT( * ) + + + COALESCE ( + + 97, - 11 )
----
81

skipif mysql # not compatible
query I rowsort label-1509
SELECT - - 16 * - COUNT ( * ) + + + COALESCE ( + + 97, - 11 )
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-1510
SELECT ALL 68 AS col2, 85 - - + ( 94 ) * - COUNT( * ) * - - 37 + 9 * + - 45 * 4 + - 23 + ( + 49 ) * - 75 + - + SUM( - - 39 )
----
68
-8750

skipif mysql # not compatible
query II rowsort label-1510
SELECT ALL 68 AS col2, 85 - - + ( 94 ) * - COUNT ( * ) * - - 37 + 9 * + - 45 * 4 + - 23 + ( + 49 ) * - 75 + - + SUM ( - - 39 )
----
68
-8750

onlyif mysql # aggregate syntax: 
query II rowsort label-1511
SELECT DISTINCT 91 col1, COUNT( * ) AS col1
----
91
1

skipif mysql # not compatible
query II rowsort label-1511
SELECT DISTINCT 91 col1, COUNT ( * ) AS col1
----
91
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1512
SELECT DISTINCT - 89 DIV + ( + 71 )
----
-1

skipif mysql # not compatible
query I rowsort label-1512
SELECT DISTINCT - 89 / + ( + 71 )
----
-1

query I rowsort
SELECT - - 33 * + 54 + + 10 + - - 4
----
1796

query I rowsort
SELECT NULLIF ( + + 75, - 23 * - 26 ) AS col1
----
75

query I rowsort
SELECT + 51 * + 66 * - ( - - COALESCE ( - - 23, + - 16, 32 ) )
----
-77418

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1516
SELECT - - 75 AS col0, + COUNT( * ) - - CAST( NULL AS SIGNED ) AS col0
----
75
NULL

skipif mysql # not compatible
query II rowsort label-1516
SELECT - - 75 AS col0, + COUNT ( * ) - - CAST ( NULL AS INTEGER ) AS col0
----
75
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1518
SELECT DISTINCT + 49, 17 DIV - + COALESCE ( SUM( - 24 ), + 23 + 64 - 80 + + 70 ) * - + 72 + - MAX( ALL 72 ) AS col1
----
49
-72

skipif mysql # not compatible
query II rowsort label-1518
SELECT DISTINCT + 49, 17 / - + COALESCE ( SUM ( - 24 ), + 23 + 64 - 80 + + 70 ) * - + 72 + - MAX ( ALL 72 ) AS col1
----
49
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-1519
SELECT - - 90 DIV + - 2
----
-45

skipif mysql # not compatible
query I rowsort label-1519
SELECT - - 90 / + - 2
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1520
SELECT COALESCE ( - - 1, + + COUNT( * ) DIV + - 91 )
----
1

skipif mysql # not compatible
query I rowsort label-1520
SELECT COALESCE ( - - 1, + + COUNT ( * ) / + - 91 )
----
1

query I rowsort
SELECT ALL 84 + - - 55 AS col0
----
139

onlyif mysql # DIV for integer division: 
query I rowsort label-1522
SELECT + 54 DIV - 42
----
-1

skipif mysql # not compatible
query I rowsort label-1522
SELECT + 54 / - 42
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1523
SELECT DISTINCT + 12 DIV + + 5 + + + ( - 64 ) + + - 71 AS col2
----
-133

skipif mysql # not compatible
query I rowsort label-1523
SELECT DISTINCT + 12 / + + 5 + + + ( - 64 ) + + - 71 AS col2
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-1524
SELECT ALL 12 + - 42 + + - 73 + 78 + + COUNT( * ) + 49 + 42 + COUNT( * ) + - COUNT( * ) * + 61 * + + 95
----
-5727

skipif mysql # not compatible
query I rowsort label-1524
SELECT ALL 12 + - 42 + + - 73 + 78 + + COUNT ( * ) + 49 + 42 + COUNT ( * ) + - COUNT ( * ) * + 61 * + + 95
----
-5727

query I rowsort
SELECT DISTINCT 41 + + 64
----
105

query II rowsort
SELECT - ( + 65 ), 81 AS col1
----
-65
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1527
SELECT + CAST( - - 33 AS SIGNED ) * + + 52 / - 43 * + - CASE WHEN + 29 > + + 40 + 50 THEN ( - 13 ) ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1527
SELECT + CAST ( - - 33 AS INTEGER ) * + + 52 / - 43 * + - CASE WHEN + 29 > + + 40 + 50 THEN ( - 13 ) ELSE NULL END col1
----
NULL

query I rowsort
SELECT ( + + NULLIF ( + 41, + + ( - - 14 ) ) )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1529
SELECT ( CASE - 85 WHEN 52 / + - 28 - + COALESCE ( CASE - COUNT( DISTINCT + 77 ) WHEN - COUNT( * ) THEN NULL ELSE 53 * + + 52 * + 90 + + + COUNT( * ) / + 57 * - + 78 + + 23 END, - COUNT( * ) + + + 12 ) THEN NULL ELSE + 83 END )
----
83

skipif mysql # not compatible
query I rowsort label-1529
SELECT ( CASE - 85 WHEN 52 / + - 28 - + COALESCE ( CASE - COUNT ( DISTINCT + 77 ) WHEN - COUNT ( * ) THEN NULL ELSE 53 * + + 52 * + 90 + + + COUNT ( * ) / + 57 * - + 78 + + 23 END, - COUNT ( * ) + + + 12 ) THEN NULL ELSE + 83 END )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1530
SELECT ( - + CASE 83 WHEN - AVG ( 55 ) THEN + 24 - - + 76 WHEN - CASE + COUNT( * ) WHEN - + COUNT( * ) THEN NULL WHEN + + COALESCE ( - ( - 85 ), 65, - 61 + + + ( - COUNT( * ) ) ) * ( - 0 ) THEN + NULLIF ( - 33, - + AVG ( ALL - - 13 ) ) + - 15 WHEN + 52 * 41 * + 43 THEN 9 * 49 ELSE NULL END THEN NULL ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1530
SELECT ( - + CASE 83 WHEN - AVG ( 55 ) THEN + 24 - - + 76 WHEN - CASE + COUNT ( * ) WHEN - + COUNT ( * ) THEN NULL WHEN + + COALESCE ( - ( - 85 ), 65, - 61 + + + ( - COUNT ( * ) ) ) * ( - 0 ) THEN + NULLIF ( - 33, - + AVG ( ALL - - 13 ) ) + - 15 WHEN + 52 * 41 * + 43 THEN 9 * 49 ELSE NULL END THEN NULL ELSE NULL END ) AS col0
----
NULL

query I rowsort
SELECT ( 48 ) AS col2
----
48

query I rowsort
SELECT ALL 12 * 13 - - 59
----
215

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1533
SELECT + 34 - - ( - 11 ) + - + 14 + - CAST( NULL AS SIGNED ) * + - NULLIF ( - ( - 85 ), - 64 * + MAX( ALL - 83 ) + + CAST( - + 15 AS SIGNED ) * + - 57 + + 72 * + 51 + - 26 ) AS col0, + 23 AS col0
----
NULL
23

skipif mysql # not compatible
query II rowsort label-1533
SELECT + 34 - - ( - 11 ) + - + 14 + - CAST ( NULL AS INTEGER ) * + - NULLIF ( - ( - 85 ), - 64 * + MAX ( ALL - 83 ) + + CAST ( - + 15 AS INTEGER ) * + - 57 + + 72 * + 51 + - 26 ) AS col0, + 23 AS col0
----
NULL
23

query II rowsort
SELECT - 40 * - 51 AS col1, 87 * + - 66
----
2040
-5742

query I rowsort
SELECT ( ( + - 97 ) ) AS col1
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1536
SELECT DISTINCT 75 * - + COUNT( * ) * + - CAST( COUNT( * ) AS SIGNED )
----
75

skipif mysql # not compatible
query I rowsort label-1536
SELECT DISTINCT 75 * - + COUNT ( * ) * + - CAST ( COUNT ( * ) AS INTEGER )
----
75

query I rowsort
SELECT + ( + 78 )
----
78

query I rowsort
SELECT - 4 * + 93
----
-372

onlyif mysql # aggregate syntax: 
query I rowsort label-1539
SELECT DISTINCT 10 * + 80 * - NULLIF ( + - 1, COUNT( * ) ) * NULLIF ( 25, 88 * + + 60 + + 83 ) + + - 88
----
19912

skipif mysql # not compatible
query I rowsort label-1539
SELECT DISTINCT 10 * + 80 * - NULLIF ( + - 1, COUNT ( * ) ) * NULLIF ( 25, 88 * + + 60 + + 83 ) + + - 88
----
19912

onlyif mysql # aggregate syntax: 
query I rowsort label-1540
SELECT COUNT( * ) * + 44 + CASE - SUM( 8 ) WHEN + 85 / + 66 * - 24 THEN + + 90 * + 80 + - 44 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1540
SELECT COUNT ( * ) * + 44 + CASE - SUM ( 8 ) WHEN + 85 / + 66 * - 24 THEN + + 90 * + 80 + - 44 END col1
----
NULL

query I rowsort
SELECT 69 * + - 84 - 74 AS col2
----
-5870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1542
SELECT + ( - COUNT( ( + 44 ) ) ) + - CAST( + COUNT( * ) AS SIGNED )
----
-2

skipif mysql # not compatible
query I rowsort label-1542
SELECT + ( - COUNT ( ( + 44 ) ) ) + - CAST ( + COUNT ( * ) AS INTEGER )
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1543
SELECT + 86 * - CASE - 19 WHEN 72 THEN ( 30 ) DIV - AVG ( DISTINCT 67 ) + - - NULLIF ( - 16, NULLIF ( - 15, + COUNT( * ) ) - ( + - 35 ) ) * + CASE - 6 WHEN ( - + 70 ) + - - 23 THEN - - ( 39 ) END WHEN 85 THEN - - 32 DIV 6 ELSE 60 END * CASE + 81 WHEN + + COUNT( * ) THEN NULL WHEN 15 - 17 THEN + 70 ELSE MIN( + 2 ) END AS col1
----
-10320

skipif mysql # not compatible
query I rowsort label-1543
SELECT + 86 * - CASE - 19 WHEN 72 THEN ( 30 ) / - AVG ( DISTINCT 67 ) + - - NULLIF ( - 16, NULLIF ( - 15, + COUNT ( * ) ) - ( + - 35 ) ) * + CASE - 6 WHEN ( - + 70 ) + - - 23 THEN - - ( 39 ) END WHEN 85 THEN - - 32 / 6 ELSE 60 END * CASE + 81 WHEN + + COUNT ( * ) THEN NULL WHEN 15 - 17 THEN + 70 ELSE MIN ( + 2 ) END AS col1
----
-10320

onlyif mysql # aggregate syntax: 
query I rowsort label-1544
SELECT - 61 * - + 15 + + 42 + - COUNT( * ) * - 58
----
1015

skipif mysql # not compatible
query I rowsort label-1544
SELECT - 61 * - + 15 + + 42 + - COUNT ( * ) * - 58
----
1015

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1545
SELECT ALL + - SUM( DISTINCT - 35 ) AS col2, 62 DIV - 16 AS col1
----
35
-3

skipif mysql # not compatible
query II rowsort label-1545
SELECT ALL + - SUM ( DISTINCT - 35 ) AS col2, 62 / - 16 AS col1
----
35
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1546
SELECT ALL + - COUNT( * ) * - 31 + - COUNT( * ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-1546
SELECT ALL + - COUNT ( * ) * - 31 + - COUNT ( * ) AS col2
----
30

query I rowsort
SELECT - + 54 * 39 * - - 45 + + 12
----
-94758

query I rowsort
SELECT ALL + + 66 AS col2
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1549
SELECT ALL CAST( NULL AS SIGNED ) * - + 2 + + + 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1549
SELECT ALL CAST ( NULL AS INTEGER ) * - + 2 + + + 58 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 64 * - - NULLIF ( + 82, - 93 * - 22 ) + + 66 + 68
----
-5114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1551
SELECT + + 55 + + COUNT( * ) + + - 66 - + 49 * + + COUNT( * ) + - - CAST( NULL AS SIGNED ) - + 59 - - 34 / 54 * 95 * - + 47 * + COUNT( ALL - - 2 ) * + 37 + + 16 + - + 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1551
SELECT + + 55 + + COUNT ( * ) + + - 66 - + 49 * + + COUNT ( * ) + - - CAST ( NULL AS INTEGER ) - + 59 - - 34 / 54 * 95 * - + 47 * + COUNT ( ALL - - 2 ) * + 37 + + 16 + - + 72 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1552
SELECT + 85 * - COUNT( * ) + 7
----
-78

skipif mysql # not compatible
query I rowsort label-1552
SELECT + 85 * - COUNT ( * ) + 7
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1553
SELECT ALL - 33 + + CAST( + COUNT( * ) AS SIGNED ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-1553
SELECT ALL - 33 + + CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
-32

query I rowsort
SELECT - - 27 - + 40
----
-13

query I rowsort
SELECT - 42 * + + 89 col1
----
-3738

query II rowsort
SELECT ALL - + 60 + + 10, 18 + - + 51 + - 4 AS col1
----
-50
-37

query I rowsort
SELECT ALL - COALESCE ( - 4, + 1 * - 15 + - 92 + 6 * - 1 - + 98, - + 58 ) AS col0
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1558
SELECT - CASE 78 WHEN - - 1 + - 52 THEN NULL WHEN - + 10 THEN NULL ELSE - 39 * + COUNT( 51 ) * - 36 DIV - - ( + + COUNT( * ) ) END
----
-1404

skipif mysql # not compatible
query I rowsort label-1558
SELECT - CASE 78 WHEN - - 1 + - 52 THEN NULL WHEN - + 10 THEN NULL ELSE - 39 * + COUNT ( 51 ) * - 36 / - - ( + + COUNT ( * ) ) END
----
-1404

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1559
SELECT ALL CAST( COALESCE ( + 61, - 95 * 77, 42 * - - 76 * + 9 ) AS SIGNED )
----
61

skipif mysql # not compatible
query I rowsort label-1559
SELECT ALL CAST ( COALESCE ( + 61, - 95 * 77, 42 * - - 76 * + 9 ) AS INTEGER )
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1560
SELECT DISTINCT CAST( - - 76 AS SIGNED ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-1560
SELECT DISTINCT CAST ( - - 76 AS INTEGER ) AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1561
SELECT + COUNT( + 60 ) - + NULLIF ( + 7, + 37 ) - + 54 * + + 21 AS col2
----
-1140

skipif mysql # not compatible
query I rowsort label-1561
SELECT + COUNT ( + 60 ) - + NULLIF ( + 7, + 37 ) - + 54 * + + 21 AS col2
----
-1140

onlyif mysql # aggregate syntax: 
query II rowsort label-1562
SELECT ALL - 63 * - ( - - COUNT( * ) ) AS col2, 17
----
63
17

skipif mysql # not compatible
query II rowsort label-1562
SELECT ALL - 63 * - ( - - COUNT ( * ) ) AS col2, 17
----
63
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1563
SELECT - MIN( DISTINCT - - ( - 58 ) )
----
58

skipif mysql # not compatible
query I rowsort label-1563
SELECT - MIN ( DISTINCT - - ( - 58 ) )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1564
SELECT - COUNT( * ) * - 59
----
59

skipif mysql # not compatible
query I rowsort label-1564
SELECT - COUNT ( * ) * - 59
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-1565
SELECT + 40 DIV + + 64 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1565
SELECT + 40 / + + 64 AS col2
----
0

query II rowsort
SELECT ALL + 49, - 43 col1
----
49
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-1567
SELECT + ( + + ( - 18 ) ) DIV 9 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-1567
SELECT + ( + + ( - 18 ) ) / 9 AS col1
----
-2

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

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

query II rowsort
SELECT ALL + 39 AS col2, 97
----
39
97

onlyif mysql # aggregate syntax: 
query II rowsort label-1570
SELECT + 57 + COUNT( + 85 ) AS col1, 76
----
58
76

skipif mysql # not compatible
query II rowsort label-1570
SELECT + 57 + COUNT ( + 85 ) AS col1, 76
----
58
76

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

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

query II rowsort
SELECT + 23 AS col0, 28
----
23
28

query I rowsort
SELECT 23 + 83 AS col1
----
106

query I rowsort
SELECT 29 * + COALESCE ( + 88, 52 * 18 + + 8 + 28 * ( - + 25 ) + + - 90 * - 38, + 94 ) AS col0
----
2552

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1576
SELECT CAST( - 99 AS SIGNED ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-1576
SELECT CAST ( - 99 AS INTEGER ) AS col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT + 6 * + NULLIF ( - + COUNT( * ), 22 )
----
-6

skipif mysql # not compatible
query I rowsort label-1577
SELECT + 6 * + NULLIF ( - + COUNT ( * ), 22 )
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1578
SELECT ALL + ( + + 57 ) + - NULLIF ( + CAST( NULL AS SIGNED ), 2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1578
SELECT ALL + ( + + 57 ) + - NULLIF ( + CAST ( NULL AS INTEGER ), 2 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1579
SELECT DISTINCT + COUNT( + 14 ) + - - 4 * + - COUNT( * ) - - 74 / - ( + CAST( NULL AS DECIMAL ) ) * COUNT( * ) + + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-1579
SELECT DISTINCT + COUNT ( + 14 ) + - - 4 * + - COUNT ( * ) - - 74 / - ( + CAST ( NULL AS REAL ) ) * COUNT ( * ) + + 91
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1580
SELECT 37, COUNT( + 26 ) + + COUNT( ALL + - 36 ) AS col2
----
37
2

skipif mysql # not compatible
query II rowsort label-1580
SELECT 37, COUNT ( + 26 ) + + COUNT ( ALL + - 36 ) AS col2
----
37
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1581
SELECT DISTINCT - 37 + - 85 DIV - 62 AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-1581
SELECT DISTINCT - 37 + - 85 / - 62 AS col0
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1582
SELECT ALL + + 12 + + 1 * 74 + 84 + + + 33 + + - 30 * 37 + + + CASE WHEN 70 <= NULL THEN - + 51 * - COUNT( * ) * + + COUNT( * ) + 75 ELSE + + 62 + - 95 END col0, - COUNT( * ) * + 47 * - CAST( NULL AS SIGNED ) * - + 10 * ( + MAX( - 91 ) ) - 13 AS col0
----
-940
NULL

skipif mysql # not compatible
query II rowsort label-1582
SELECT ALL + + 12 + + 1 * 74 + 84 + + + 33 + + - 30 * 37 + + + CASE WHEN 70 <= NULL THEN - + 51 * - COUNT ( * ) * + + COUNT ( * ) + 75 ELSE + + 62 + - 95 END col0, - COUNT ( * ) * + 47 * - CAST ( NULL AS INTEGER ) * - + 10 * ( + MAX ( - 91 ) ) - 13 AS col0
----
-940
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1583
SELECT DISTINCT + 46 * + - COUNT( ALL - 66 ), ( COUNT( * ) ) - 37 AS col2
----
-46
-36

skipif mysql # not compatible
query II rowsort label-1583
SELECT DISTINCT + 46 * + - COUNT ( ALL - 66 ), ( COUNT ( * ) ) - 37 AS col2
----
-46
-36

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

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

query I rowsort
SELECT ALL 5 - - 60
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-1586
SELECT + COUNT( * ) AS col1, NULLIF ( - 24, + - COUNT( * ) * 75 * ( 50 ) * + 42 + - - COUNT( * ) )
----
1
-24

skipif mysql # not compatible
query II rowsort label-1586
SELECT + COUNT ( * ) AS col1, NULLIF ( - 24, + - COUNT ( * ) * 75 * ( 50 ) * + 42 + - - COUNT ( * ) )
----
1
-24

query I rowsort
SELECT ALL - - 24 - 7
----
17

query I rowsort
SELECT DISTINCT - - 7 * - 98
----
-686

query I rowsort
SELECT 82 * + COALESCE ( + 2, - 4 ) AS col2
----
164

query I rowsort
SELECT ALL - 77 * 24 * + + 32
----
-59136

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1591
SELECT 8 * + 49 * CAST( + 21 AS SIGNED ) AS col2, - 30 AS col2
----
8232
-30

skipif mysql # not compatible
query II rowsort label-1591
SELECT 8 * + 49 * CAST ( + 21 AS INTEGER ) AS col2, - 30 AS col2
----
8232
-30

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

skipif mysql # not compatible
query I rowsort label-1592
SELECT DISTINCT - 32 / + 7 / COUNT ( * ) AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1593
SELECT DISTINCT COUNT( * ) * - SUM( - 26 ) col2
----
26

skipif mysql # not compatible
query I rowsort label-1593
SELECT DISTINCT COUNT ( * ) * - SUM ( - 26 ) col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1594
SELECT 98 * + + COUNT( * ) * + 51 * - - 24 col0
----
119952

skipif mysql # not compatible
query I rowsort label-1594
SELECT 98 * + + COUNT ( * ) * + 51 * - - 24 col0
----
119952

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

skipif mysql # not compatible
query I rowsort label-1595
SELECT ALL + COUNT ( * ) / 21
----
0

query I rowsort
SELECT ALL + 14 * + 80
----
1120

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1597
SELECT 88 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1597
SELECT 88 * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1598
SELECT ALL COUNT( * ) * + 29 AS col1, MIN( CASE 18 WHEN - 88 THEN - - 40 ELSE NULL END ) + - ( 73 ) / 88 / - + 54
----
29
NULL

skipif mysql # not compatible
query II rowsort label-1598
SELECT ALL COUNT ( * ) * + 29 AS col1, MIN ( CASE 18 WHEN - 88 THEN - - 40 ELSE NULL END ) + - ( 73 ) / 88 / - + 54
----
29
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1599
SELECT COALESCE ( - COUNT( * ), COUNT( * ) * + 85 ) DIV - 99 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1599
SELECT COALESCE ( - COUNT ( * ), COUNT ( * ) * + 85 ) / - 99 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1600
SELECT ALL 15 + COALESCE ( - 72, ( + AVG ( CAST( NULL AS SIGNED ) ) ), 88 ) - - 46 / + CAST( NULL AS SIGNED ) * + - 44 * 64 * COUNT( * ) + - CAST( - 89 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1600
SELECT ALL 15 + COALESCE ( - 72, ( + AVG ( CAST ( NULL AS INTEGER ) ) ), 88 ) - - 46 / + CAST ( NULL AS INTEGER ) * + - 44 * 64 * COUNT ( * ) + - CAST ( - 89 AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 61 + - - 17 col1
----
-44

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1602
SELECT 89 DIV - 30 + + 20 + + + 48 DIV - 96 AS col1, - NULLIF ( + CAST( NULL AS SIGNED ), + + 47 ) + 81 AS col2
----
18
NULL

skipif mysql # not compatible
query II rowsort label-1602
SELECT 89 / - 30 + + 20 + + + 48 / - 96 AS col1, - NULLIF ( + CAST ( NULL AS INTEGER ), + + 47 ) + 81 AS col2
----
18
NULL

query I rowsort
SELECT DISTINCT 30 + + ( 86 ) AS col2
----
116

query I rowsort
SELECT DISTINCT - + 69 AS col2
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1605
SELECT ( - 40 ) DIV 40 * - 65 AS col0, MIN( + 4 ) AS col1
----
65
4

skipif mysql # not compatible
query II rowsort label-1605
SELECT ( - 40 ) / 40 * - 65 AS col0, MIN ( + 4 ) AS col1
----
65
4

query I rowsort
SELECT ALL - - 87 col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1607
SELECT 88 * - 72 - + - COALESCE ( + 41, - 41 * 46 + + - SUM( ALL + 43 ), 52 * + 44 + - + 52, - + 14 + 57 ) AS col0
----
-6295

skipif mysql # not compatible
query I rowsort label-1607
SELECT 88 * - 72 - + - COALESCE ( + 41, - 41 * 46 + + - SUM ( ALL + 43 ), 52 * + 44 + - + 52, - + 14 + 57 ) AS col0
----
-6295

query I rowsort
SELECT + + COALESCE ( - 37, - 33 )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1609
SELECT DISTINCT + 66 + + + MAX( 81 )
----
147

skipif mysql # not compatible
query I rowsort label-1609
SELECT DISTINCT + 66 + + + MAX ( 81 )
----
147

onlyif mysql # DIV for integer division: 
query I rowsort label-1610
SELECT ALL - 8 + - 68 + + - 45 DIV + + 32 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-1610
SELECT ALL - 8 + - 68 + + - 45 / + + 32 AS col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1611
SELECT 19 * - - NULLIF ( - - COUNT( * ), - - ( + COALESCE ( 53, MIN( - 16 ) ) ) ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-1611
SELECT 19 * - - NULLIF ( - - COUNT ( * ), - - ( + COALESCE ( 53, MIN ( - 16 ) ) ) ) AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1612
SELECT COALESCE ( + 65, COUNT( * ) ) * + + 15
----
975

skipif mysql # not compatible
query I rowsort label-1612
SELECT COALESCE ( + 65, COUNT ( * ) ) * + + 15
----
975

query II rowsort
SELECT DISTINCT 76 - + + 72 AS col1, 35 AS col2
----
4
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1614
SELECT DISTINCT - + COUNT( 19 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-1614
SELECT DISTINCT - + COUNT ( 19 ) col2
----
-1

query I rowsort
SELECT ( 38 ) + - - 25
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1616
SELECT ALL SUM( 44 ) - + + 24 + - 66 DIV + - 58
----
21

skipif mysql # not compatible
query I rowsort label-1616
SELECT ALL SUM ( 44 ) - + + 24 + - 66 / + - 58
----
21

query I rowsort
SELECT 29 * - 93 AS col0
----
-2697

query I rowsort
SELECT ALL - 92 - - + 13 + + + 19
----
-60

query I rowsort
SELECT 9 * 17 AS col0
----
153

query II rowsort
SELECT - 34 AS col2, + 2 AS col0
----
-34
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1621
SELECT MAX( - + 66 ) - - 76
----
10

skipif mysql # not compatible
query I rowsort label-1621
SELECT MAX ( - + 66 ) - - 76
----
10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1622
SELECT CAST( 66 AS DECIMAL ) / + SUM( 67 ) + - 1 * + MIN( - 59 ) * + 51 + - CASE - ( COUNT( * ) ) WHEN - + SUM( - 78 ) THEN NULL WHEN - 59 + + 74 THEN + COUNT( - 96 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1622
SELECT CAST ( 66 AS REAL ) / + SUM ( 67 ) + - 1 * + MIN ( - 59 ) * + 51 + - CASE - ( COUNT ( * ) ) WHEN - + SUM ( - 78 ) THEN NULL WHEN - 59 + + 74 THEN + COUNT ( - 96 ) ELSE NULL END
----
NULL

query I rowsort
SELECT 8 * - 39 AS col0
----
-312

query I rowsort
SELECT ALL + 9 * 55 AS col0
----
495

onlyif mysql # DIV for integer division: 
query I rowsort label-1625
SELECT ALL 17 DIV 6 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1625
SELECT ALL 17 / 6 AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1626
SELECT DISTINCT + 91 * - MAX( DISTINCT 70 ) AS col0, CAST( NULL AS SIGNED )
----
-6370
NULL

skipif mysql # not compatible
query II rowsort label-1626
SELECT DISTINCT + 91 * - MAX ( DISTINCT 70 ) AS col0, CAST ( NULL AS INTEGER )
----
-6370
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1627
SELECT ALL - ( MIN( - - 94 ) ) * + 5
----
-470

skipif mysql # not compatible
query I rowsort label-1627
SELECT ALL - ( MIN ( - - 94 ) ) * + 5
----
-470

onlyif mysql # DIV for integer division: 
query I rowsort label-1628
SELECT 98 DIV - - 30 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-1628
SELECT 98 / - - 30 AS col2
----
3

query I rowsort
SELECT 4 - + 81 + + + 11
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1630
SELECT 7 * - NULLIF ( 6, + + 90 * + 90 * - 81 + - 81 - - CASE + 74 WHEN 30 THEN NULL ELSE MAX( DISTINCT - COALESCE ( - - 4, - 92 ) ) / + - ( - 0 ) * 94 * - CAST( NULL AS SIGNED ) END ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-1630
SELECT 7 * - NULLIF ( 6, + + 90 * + 90 * - 81 + - 81 - - CASE + 74 WHEN 30 THEN NULL ELSE MAX ( DISTINCT - COALESCE ( - - 4, - 92 ) ) / + - ( - 0 ) * 94 * - CAST ( NULL AS INTEGER ) END ) AS col0
----
-42

query I rowsort
SELECT ALL + 46 * 1 AS col1
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-1632
SELECT CASE + 6 WHEN + 83 THEN NULL WHEN 31 THEN - + 26 * + COUNT( * ) / + + 31 - + SUM( ALL 49 ) * - COUNT( * ) ELSE NULL END + 5, 64 - + 25 + + 85 + + 11 * + 10 col2
----
NULL
234

skipif mysql # not compatible
query II rowsort label-1632
SELECT CASE + 6 WHEN + 83 THEN NULL WHEN 31 THEN - + 26 * + COUNT ( * ) / + + 31 - + SUM ( ALL 49 ) * - COUNT ( * ) ELSE NULL END + 5, 64 - + 25 + + 85 + + 11 * + 10 col2
----
NULL
234

query I rowsort
SELECT - 28 + - 45 AS col2
----
-73

query I rowsort
SELECT - 34 + - - 30 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1635
SELECT ALL - 74 + + COUNT( 24 ) col0
----
-73

skipif mysql # not compatible
query I rowsort label-1635
SELECT ALL - 74 + + COUNT ( 24 ) col0
----
-73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1637
SELECT - ( + COUNT( * ) ) * + 3 / + CASE - 46 WHEN - 22 THEN NULL WHEN - 2 * + - 79 THEN NULL WHEN + COUNT( * ) THEN 33 WHEN 44 * - - 35 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1637
SELECT - ( + COUNT ( * ) ) * + 3 / + CASE - 46 WHEN - 22 THEN NULL WHEN - 2 * + - 79 THEN NULL WHEN + COUNT ( * ) THEN 33 WHEN 44 * - - 35 THEN NULL END
----
NULL

query I rowsort
SELECT - 10 * 90
----
-900

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

skipif mysql # not compatible
query I rowsort label-1639
SELECT - 22 + + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1641
SELECT - 98 + + CASE + 74 WHEN + 19 THEN + 15 END AS col1, 75 DIV 71
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1641
SELECT - 98 + + CASE + 74 WHEN + 19 THEN + 15 END AS col1, 75 / 71
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1642
SELECT ALL - 74 + - + MAX( DISTINCT + + 91 ) AS col0
----
-165

skipif mysql # not compatible
query I rowsort label-1642
SELECT ALL - 74 + - + MAX ( DISTINCT + + 91 ) AS col0
----
-165

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1643
SELECT - COUNT( * ) * + 96 * - + COUNT( * ) DIV + COUNT( * ) + COUNT( * ) + + 18 col0
----
115

skipif mysql # not compatible
query I rowsort label-1643
SELECT - COUNT ( * ) * + 96 * - + COUNT ( * ) / + COUNT ( * ) + COUNT ( * ) + + 18 col0
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-1644
SELECT ALL + 81 * + 36 + ( + COUNT( * ) )
----
2917

skipif mysql # not compatible
query I rowsort label-1644
SELECT ALL + 81 * + 36 + ( + COUNT ( * ) )
----
2917

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1645
SELECT ALL COUNT( * ) * + - CAST( NULL AS SIGNED ) * - 81 + + 74 + - 1 * - 86 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1645
SELECT ALL COUNT ( * ) * + - CAST ( NULL AS INTEGER ) * - 81 + + 74 + - 1 * - 86 AS col0
----
NULL

query I rowsort
SELECT ALL + - 70 * 6 * + 80 + - 66 + - 90 - + 50
----
-33806

query I rowsort
SELECT - + 23 / + ( - CASE 69 WHEN + + 46 + + - 82 THEN + 64 * + + 92 * - + 84 * + - 25 WHEN - + 41 - - 88 THEN NULL END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT + - 17 + + SUM( + + 34 ) * - + 0 + + + NULLIF ( + 0, + COALESCE ( - COUNT( * ), - - SUM( + + COALESCE ( 52, + 74 * 8, 25 ) ) - - COALESCE ( - COUNT( * ), + + 36 * 55 + + - COUNT( * ) * 8 ) * - 63 * + COALESCE ( + 15, 66 * + 94 + + 50 ) ) )
----
-17

skipif mysql # not compatible
query I rowsort label-1648
SELECT + - 17 + + SUM ( + + 34 ) * - + 0 + + + NULLIF ( + 0, + COALESCE ( - COUNT ( * ), - - SUM ( + + COALESCE ( 52, + 74 * 8, 25 ) ) - - COALESCE ( - COUNT ( * ), + + 36 * 55 + + - COUNT ( * ) * 8 ) * - 63 * + COALESCE ( + 15, 66 * + 94 + + 50 ) ) )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-1649
SELECT + COALESCE ( - 58, - + MAX( - 78 ) * + - 83 )
----
-58

skipif mysql # not compatible
query I rowsort label-1649
SELECT + COALESCE ( - 58, - + MAX ( - 78 ) * + - 83 )
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1650
SELECT + + 42 + + + 18 + + 37 + CAST( NULL AS SIGNED ) * - MIN( ALL - CAST( NULL AS SIGNED ) ) * - - COUNT( * ) * - 78 / 49 * 95, + MIN( ALL + 48 ) col1
----
NULL
48

skipif mysql # not compatible
query II rowsort label-1650
SELECT + + 42 + + + 18 + + 37 + CAST ( NULL AS INTEGER ) * - MIN ( ALL - CAST ( NULL AS INTEGER ) ) * - - COUNT ( * ) * - 78 / 49 * 95, + MIN ( ALL + 48 ) col1
----
NULL
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1651
SELECT + CAST( - 72 AS SIGNED )
----
-72

skipif mysql # not compatible
query I rowsort label-1651
SELECT + CAST ( - 72 AS INTEGER )
----
-72

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1653
SELECT ALL + + COALESCE ( + COUNT( * ), + COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1653
SELECT ALL + + COALESCE ( + COUNT ( * ), + COUNT ( * ) ) AS col0
----
1

query I rowsort
SELECT - 95 * + + 63 AS col1
----
-5985

onlyif mysql # aggregate syntax: 
query I rowsort label-1655
SELECT ALL + + CASE + COUNT( * ) WHEN + 25 * - - 19 * + COUNT( * ) * - 80 THEN + COUNT( * ) ELSE NULL END * + - 50 * + 19 * - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-1655
SELECT ALL + + CASE + COUNT ( * ) WHEN + 25 * - - 19 * + COUNT ( * ) * - 80 THEN + COUNT ( * ) ELSE NULL END * + - 50 * + 19 * - 75
----
NULL

query I rowsort
SELECT + 4 + + - 56 AS col1
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1657
SELECT DISTINCT + + 43 AS col2, COUNT( * ) DIV 10 + - 12 AS col0
----
43
-12

skipif mysql # not compatible
query II rowsort label-1657
SELECT DISTINCT + + 43 AS col2, COUNT ( * ) / 10 + - 12 AS col0
----
43
-12

query I rowsort
SELECT + + 90 * + 62 + - - 77
----
5657

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1659
SELECT + - 16 * + 68 + - 67 * CAST( NULL AS SIGNED ) + 94 * + CAST( 96 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1659
SELECT + - 16 * + 68 + - 67 * CAST ( NULL AS INTEGER ) + 94 * + CAST ( 96 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1660
SELECT - COUNT( - + 68 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-1660
SELECT - COUNT ( - + 68 ) col1
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1662
SELECT - ( + CASE 53 WHEN + COUNT( DISTINCT - + 43 ) / + + 33 - - 64 + COUNT( * ) THEN 66 * - 34 ELSE - 67 END )
----
67

skipif mysql # not compatible
query I rowsort label-1662
SELECT - ( + CASE 53 WHEN + COUNT ( DISTINCT - + 43 ) / + + 33 - - 64 + COUNT ( * ) THEN 66 * - 34 ELSE - 67 END )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1663
SELECT + NULLIF ( + COUNT( * ), - + 88 * COUNT( * ) + - 51 / - 96 ) + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-1663
SELECT + NULLIF ( + COUNT ( * ), - + 88 * COUNT ( * ) + - 51 / - 96 ) + COUNT ( * )
----
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1664
SELECT + ( CAST( NULL AS DECIMAL ) ) - MAX( ALL - 81 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1664
SELECT + ( CAST ( NULL AS REAL ) ) - MAX ( ALL - 81 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1665
SELECT ALL 76 * - + COALESCE ( - ( + NULLIF ( - COUNT( * ), - CAST( 35 AS SIGNED ) DIV - 29 ) ), + 95, - ( - 4 ) DIV - COUNT( * ) )
----
-76

skipif mysql # not compatible
query I rowsort label-1665
SELECT ALL 76 * - + COALESCE ( - ( + NULLIF ( - COUNT ( * ), - CAST ( 35 AS INTEGER ) / - 29 ) ), + 95, - ( - 4 ) / - COUNT ( * ) )
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-1666
SELECT ALL MIN( + - 36 ), - 97 + + 44 + + - 62 col0
----
-36
-115

skipif mysql # not compatible
query II rowsort label-1666
SELECT ALL MIN ( + - 36 ), - 97 + + 44 + + - 62 col0
----
-36
-115

query I rowsort
SELECT DISTINCT 11 * - 75 AS col2
----
-825

query I rowsort
SELECT + 82 + - - 71 + + 34 AS col0
----
187

query II rowsort
SELECT - ( - 94 ), + 33 AS col0
----
94
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1670
SELECT ALL COUNT( * ) + + ( + 36 ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-1670
SELECT ALL COUNT ( * ) + + ( + 36 ) AS col0
----
37

query I rowsort
SELECT + 52 * + - 6 AS col1
----
-312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1672
SELECT + 58 + - COUNT( * ) + - 13 * + CAST( + + COUNT( ALL + 34 ) AS SIGNED ) * 83
----
-1022

skipif mysql # not compatible
query I rowsort label-1672
SELECT + 58 + - COUNT ( * ) + - 13 * + CAST ( + + COUNT ( ALL + 34 ) AS INTEGER ) * 83
----
-1022

query II rowsort
SELECT 69 AS col0, + 1
----
69
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1674
SELECT - 34 + - NULLIF ( 78, 91 ) + + 69 - 73 DIV 96 col0
----
-43

skipif mysql # not compatible
query I rowsort label-1674
SELECT - 34 + - NULLIF ( 78, 91 ) + + 69 - 73 / 96 col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1675
SELECT ALL COUNT( * ) + + COALESCE ( + 41, - COUNT( * ) )
----
42

skipif mysql # not compatible
query I rowsort label-1675
SELECT ALL COUNT ( * ) + + COALESCE ( + 41, - COUNT ( * ) )
----
42

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1676
SELECT DISTINCT MAX( DISTINCT + 97 ) + - AVG ( ALL - 7 ) + - ( - + CAST( NULL AS DECIMAL ) ) + + 29 + - 2 + 82 / - - 74 * + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-1676
SELECT DISTINCT MAX ( DISTINCT + 97 ) + - AVG ( ALL - 7 ) + - ( - + CAST ( NULL AS REAL ) ) + + 29 + - 2 + 82 / - - 74 * + 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1677
SELECT + 22 * + SUM( - - 59 )
----
1298

skipif mysql # not compatible
query I rowsort label-1677
SELECT + 22 * + SUM ( - - 59 )
----
1298

query I rowsort
SELECT - ( 62 ) AS col2
----
-62

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1680
SELECT - CAST( + + MAX( 7 ) AS SIGNED ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-1680
SELECT - CAST ( + + MAX ( 7 ) AS INTEGER ) AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1681
SELECT ALL COUNT( * ) + - - NULLIF ( + 58, - 27 ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-1681
SELECT ALL COUNT ( * ) + - - NULLIF ( + 58, - 27 ) AS col1
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-1682
SELECT ALL 63 DIV - 30 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-1682
SELECT ALL 63 / - 30 AS col0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-1683
SELECT + 74 DIV 93 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1683
SELECT + 74 / 93 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1684
SELECT ALL - CAST( NULL AS SIGNED ) + - 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1684
SELECT ALL - CAST ( NULL AS INTEGER ) + - 57 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1685
SELECT - 92 * + 9 * - COUNT( * ) * - + 29, ( + - 53 ) * - COUNT( * ) AS col2
----
-24012
53

skipif mysql # not compatible
query II rowsort label-1685
SELECT - 92 * + 9 * - COUNT ( * ) * - + 29, ( + - 53 ) * - COUNT ( * ) AS col2
----
-24012
53

query I rowsort
SELECT DISTINCT 98 * + - 83 * + + 0 AS col1
----
0

query I rowsort
SELECT DISTINCT ( - 12 )
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-1688
SELECT ALL COUNT( * ) AS col0, - ( - 29 ) AS col0
----
1
29

skipif mysql # not compatible
query II rowsort label-1688
SELECT ALL COUNT ( * ) AS col0, - ( - 29 ) AS col0
----
1
29

query I rowsort
SELECT + - 52 + - 29 AS col0
----
-81

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

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

query I rowsort
SELECT - 13 * - 90 * + 58 * - + 39
----
-2646540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1692
SELECT - NULLIF ( - 40, - - CASE + + 10 WHEN + 24 THEN ( + 66 ) - + - NULLIF ( + + 51, - + 62 ) + - + 14 + + - ( 69 ) / - 17 ELSE NULL END + + 80 ) * - + 51 - COALESCE ( CAST( NULL AS SIGNED ), + + 23 + - - 78, - 7 ) * 48
----
-6888

skipif mysql # not compatible
query I rowsort label-1692
SELECT - NULLIF ( - 40, - - CASE + + 10 WHEN + 24 THEN ( + 66 ) - + - NULLIF ( + + 51, - + 62 ) + - + 14 + + - ( 69 ) / - 17 ELSE NULL END + + 80 ) * - + 51 - COALESCE ( CAST ( NULL AS INTEGER ), + + 23 + - - 78, - 7 ) * 48
----
-6888

onlyif mysql # DIV for integer division: 
query I rowsort label-1693
SELECT - + 4 DIV - 19 - 32 + 85
----
53

skipif mysql # not compatible
query I rowsort label-1693
SELECT - + 4 / - 19 - 32 + 85
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1694
SELECT ALL + 47 / - ( 54 ) + - COUNT( ALL - 13 ) + + - CAST( NULL AS SIGNED ) - - + 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1694
SELECT ALL + 47 / - ( 54 ) + - COUNT ( ALL - 13 ) + + - CAST ( NULL AS INTEGER ) - - + 47 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1695
SELECT DISTINCT + 49 AS col0, + CAST( NULL AS SIGNED ) + ( - 4 ) AS col2
----
49
NULL

skipif mysql # not compatible
query II rowsort label-1695
SELECT DISTINCT + 49 AS col0, + CAST ( NULL AS INTEGER ) + ( - 4 ) AS col2
----
49
NULL

query I rowsort
SELECT DISTINCT - 67 * - + 48 + + 75
----
3291

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1698
SELECT + - COUNT( * ) * 28 - + - 94
----
66

skipif mysql # not compatible
query I rowsort label-1698
SELECT + - COUNT ( * ) * 28 - + - 94
----
66

query I rowsort
SELECT ALL + - 99 AS col0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1700
SELECT - 51 AS col0, + CAST( NULL AS SIGNED )
----
-51
NULL

skipif mysql # not compatible
query II rowsort label-1700
SELECT - 51 AS col0, + CAST ( NULL AS INTEGER )
----
-51
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1701
SELECT - CAST( 72 AS SIGNED ) DIV + NULLIF ( - COUNT( * ), - 15 )
----
72

skipif mysql # not compatible
query I rowsort label-1701
SELECT - CAST ( 72 AS INTEGER ) / + NULLIF ( - COUNT ( * ), - 15 )
----
72

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1703
SELECT DISTINCT ( - SUM( ALL + + 99 ) ) * + 56 + 67 col2
----
-5477

skipif mysql # not compatible
query I rowsort label-1703
SELECT DISTINCT ( - SUM ( ALL + + 99 ) ) * + 56 + 67 col2
----
-5477

onlyif mysql # aggregate syntax: 
query I rowsort label-1704
SELECT ALL - 18 * - COUNT( * ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-1704
SELECT ALL - 18 * - COUNT ( * ) AS col0
----
18

query I rowsort
SELECT DISTINCT + 64 * 42 * 79 AS col2
----
212352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1706
SELECT DISTINCT - CAST( NULL AS SIGNED ) * ( - + 79 ) + + MIN( ALL - 56 ) + + 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1706
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * ( - + 79 ) + + MIN ( ALL - 56 ) + + 36 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1707
SELECT DISTINCT 61 * + CAST( NULL AS DECIMAL ) / - 22 / - 94 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1707
SELECT DISTINCT 61 * + CAST ( NULL AS REAL ) / - 22 / - 94 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 78 + 98 + + 29
----
205

onlyif mysql # aggregate syntax: 
query I rowsort label-1709
SELECT DISTINCT 64 + + MIN( 78 )
----
142

skipif mysql # not compatible
query I rowsort label-1709
SELECT DISTINCT 64 + + MIN ( 78 )
----
142

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1710
SELECT CAST( NULL AS SIGNED ) * 51 * + + CAST( NULL AS SIGNED ) AS col1, 25 * + 19 AS col2
----
NULL
475

skipif mysql # not compatible
query II rowsort label-1710
SELECT CAST ( NULL AS INTEGER ) * 51 * + + CAST ( NULL AS INTEGER ) AS col1, 25 * + 19 AS col2
----
NULL
475

onlyif mysql # aggregate syntax: 
query I rowsort label-1711
SELECT ALL COUNT( * ) + + 68 + + - 97 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-1711
SELECT ALL COUNT ( * ) + + 68 + + - 97 AS col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1712
SELECT COUNT( * ) - + - 5 col1
----
6

skipif mysql # not compatible
query I rowsort label-1712
SELECT COUNT ( * ) - + - 5 col1
----
6

query II rowsort
SELECT ALL 93 * + - 12 AS col1, - 4 AS col0
----
-1116
-4

query I rowsort
SELECT 13 + - 28 * + - 38
----
1077

onlyif mysql # aggregate syntax: 
query I rowsort label-1715
SELECT DISTINCT 22 * - COUNT( * ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-1715
SELECT DISTINCT 22 * - COUNT ( * ) AS col1
----
-22

query I rowsort
SELECT ALL ( - - 88 ) + 73 * + - 3
----
-131

query I rowsort
SELECT ALL 57 * + - 43 AS col1
----
-2451

query I rowsort
SELECT DISTINCT NULLIF ( 79, + 7 ) - - + 85 AS col2
----
164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1719
SELECT COUNT( * ) + - CAST( + COALESCE ( + + 1, 97 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1719
SELECT COUNT ( * ) + - CAST ( + COALESCE ( + + 1, 97 ) AS INTEGER )
----
0

query I rowsort
SELECT ( + 35 ) - ( 55 )
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1721
SELECT 12 + + + COUNT( * ) + + - 38 * + 50 * - CASE - - COUNT( * ) WHEN 78 - CAST( NULL AS SIGNED ) * - - ( 45 ) THEN 84 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1721
SELECT 12 + + + COUNT ( * ) + + - 38 * + 50 * - CASE - - COUNT ( * ) WHEN 78 - CAST ( NULL AS INTEGER ) * - - ( 45 ) THEN 84 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 46 * - 16 AS col1
----
-736

query I rowsort
SELECT ALL - 29 * - - 26 * - 23
----
17342

onlyif mysql # DIV for integer division: 
query I rowsort label-1724
SELECT - 73 * 24 DIV + 39 + + - 17
----
-61

skipif mysql # not compatible
query I rowsort label-1724
SELECT - 73 * 24 / + 39 + + - 17
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-1725
SELECT DISTINCT 42 DIV 31
----
1

skipif mysql # not compatible
query I rowsort label-1725
SELECT DISTINCT 42 / 31
----
1

query I rowsort
SELECT ALL + + 90 - + 12 AS col2
----
78

query I rowsort
SELECT DISTINCT - - 65 * - 68
----
-4420

onlyif mysql # aggregate syntax: 
query II rowsort label-1728
SELECT + 22 * + COUNT( * ) AS col0, 76 * + 92 + 33
----
22
7025

skipif mysql # not compatible
query II rowsort label-1728
SELECT + 22 * + COUNT ( * ) AS col0, 76 * + 92 + 33
----
22
7025

query I rowsort
SELECT ALL + - 86 + + + 35
----
-51

query I rowsort
SELECT ALL - 33 * 77
----
-2541

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1731
SELECT ALL 72 + 46 - - - COUNT( DISTINCT 32 ) + - - 24 DIV + - 36 * + SUM( ALL - 2 )
----
117

skipif mysql # not compatible
query I rowsort label-1731
SELECT ALL 72 + 46 - - - COUNT ( DISTINCT 32 ) + - - 24 / + - 36 * + SUM ( ALL - 2 )
----
117

query I rowsort
SELECT DISTINCT + 32 + 98
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1733
SELECT CAST( - + 42 AS SIGNED ) - + - COUNT( * ) AS col2, - 33
----
-41
-33

skipif mysql # not compatible
query II rowsort label-1733
SELECT CAST ( - + 42 AS INTEGER ) - + - COUNT ( * ) AS col2, - 33
----
-41
-33

query II rowsort
SELECT + 85, ( + 49 ) AS col1
----
85
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1735
SELECT DISTINCT + COUNT( * ) + - 34 - - 14 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-1735
SELECT DISTINCT + COUNT ( * ) + - 34 - - 14 AS col2
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1736
SELECT ALL - 87 * NULLIF ( - - 43, + CAST( NULL AS SIGNED ) ) AS col1
----
-3741

skipif mysql # not compatible
query I rowsort label-1736
SELECT ALL - 87 * NULLIF ( - - 43, + CAST ( NULL AS INTEGER ) ) AS col1
----
-3741

query I rowsort
SELECT DISTINCT - ( - 91 ) AS col2
----
91

query I rowsort
SELECT ALL + 15 + 7 AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1739
SELECT ALL - CASE - COUNT( * ) WHEN - 41 THEN NULL WHEN - 13 * + 29 * - 90 * 30 + - 44 THEN 69 END + + 30 + - 29 * - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1739
SELECT ALL - CASE - COUNT ( * ) WHEN - 41 THEN NULL WHEN - 13 * + 29 * - 90 * 30 + - 44 THEN 69 END + + 30 + - 29 * - - COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1740
SELECT DISTINCT + 70 * + CAST( COALESCE ( - + 6, + + 1 ) AS SIGNED )
----
-420

skipif mysql # not compatible
query I rowsort label-1740
SELECT DISTINCT + 70 * + CAST ( COALESCE ( - + 6, + + 1 ) AS INTEGER )
----
-420

onlyif mysql # DIV for integer division: 
query I rowsort label-1741
SELECT ALL 63 DIV - 60 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1741
SELECT ALL 63 / - 60 AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1742
SELECT COUNT( * ) + + ( - 16 ) * + 47 + MAX( - 37 ) + 47 * 28 AS col1, - 93 * + COUNT( * ) DIV ( + 17 ) DIV + - 31 - - 55 + - COALESCE ( + 5, + 70, - 48 )
----
528
50

skipif mysql # not compatible
query II rowsort label-1742
SELECT COUNT ( * ) + + ( - 16 ) * + 47 + MAX ( - 37 ) + 47 * 28 AS col1, - 93 * + COUNT ( * ) / ( + 17 ) / + - 31 - - 55 + - COALESCE ( + 5, + 70, - 48 )
----
528
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1743
SELECT DISTINCT SUM( ALL + 85 ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-1743
SELECT DISTINCT SUM ( ALL + 85 ) AS col0
----
85

query I rowsort
SELECT 48 + 32 AS col1
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1745
SELECT CASE + 17 WHEN CASE + + 18 WHEN COUNT( * ) THEN + - 54 + + 62 + - CAST( + 75 AS SIGNED ) WHEN - 10 / 79 THEN + CASE + COUNT( * ) WHEN 87 THEN + + COUNT( * ) ELSE - - COUNT( * ) END ELSE NULL END + - 63 THEN 21 * + - 60 END + + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-1745
SELECT CASE + 17 WHEN CASE + + 18 WHEN COUNT ( * ) THEN + - 54 + + 62 + - CAST ( + 75 AS INTEGER ) WHEN - 10 / 79 THEN + CASE + COUNT ( * ) WHEN 87 THEN + + COUNT ( * ) ELSE - - COUNT ( * ) END ELSE NULL END + - 63 THEN 21 * + - 60 END + + 45
----
NULL

query II rowsort
SELECT 37 AS col2, - ( - 6 )
----
37
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1747
SELECT MAX( DISTINCT + 41 ) * ( - 55 ) AS col0
----
-2255

skipif mysql # not compatible
query I rowsort label-1747
SELECT MAX ( DISTINCT + 41 ) * ( - 55 ) AS col0
----
-2255

query I rowsort
SELECT ALL + 49 * + 27
----
1323

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1750
SELECT ALL + 0 * - - CASE - + 61 WHEN + COUNT( * ) THEN + + 93 WHEN 61 THEN 2 ELSE - 68 - 25 + 78 END
----
0

skipif mysql # not compatible
query I rowsort label-1750
SELECT ALL + 0 * - - CASE - + 61 WHEN + COUNT ( * ) THEN + + 93 WHEN 61 THEN 2 ELSE - 68 - 25 + 78 END
----
0

query I rowsort
SELECT ALL - 89 * - + 87 * + 71 * + 18 + - 52 * 83 + - 82
----
9891156

onlyif mysql # aggregate syntax: 
query I rowsort label-1752
SELECT - 70 * - 34 * - - 4 * COUNT( * ) AS col0
----
9520

skipif mysql # not compatible
query I rowsort label-1752
SELECT - 70 * - 34 * - - 4 * COUNT ( * ) AS col0
----
9520

query I rowsort
SELECT - 14 - + + 14
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1754
SELECT ALL + CASE WHEN NOT SUM( + - 68 ) = NULL THEN NULL ELSE 21 END AS col1
----
21

skipif mysql # not compatible
query I rowsort label-1754
SELECT ALL + CASE WHEN NOT SUM ( + - 68 ) = NULL THEN NULL ELSE 21 END AS col1
----
21

query I rowsort
SELECT - 28 + + 14
----
-14

query I rowsort
SELECT ALL ( 58 ) * + NULLIF ( 78, - 92 ) + - - 45 + + 64
----
4633

query I rowsort
SELECT ALL - ( 19 ) AS col2
----
-19

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1758
SELECT DISTINCT 4 * + CASE + - 72 WHEN + CAST( + 88 AS SIGNED ) THEN + 95 WHEN 43 THEN - CAST( NULL AS DECIMAL ) ELSE - CASE 80 WHEN + + 88 THEN + 95 / - - 22 * - 46 + + 21 WHEN - ( - 69 ) THEN NULL ELSE - NULLIF ( + + CAST( NULL AS SIGNED ), - 56 ) END END / 80 + ( AVG ( DISTINCT 32 ) ) - + 98 + + - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-1758
SELECT DISTINCT 4 * + CASE + - 72 WHEN + CAST ( + 88 AS INTEGER ) THEN + 95 WHEN 43 THEN - CAST ( NULL AS REAL ) ELSE - CASE 80 WHEN + + 88 THEN + 95 / - - 22 * - 46 + + 21 WHEN - ( - 69 ) THEN NULL ELSE - NULLIF ( + + CAST ( NULL AS INTEGER ), - 56 ) END END / 80 + ( AVG ( DISTINCT 32 ) ) - + 98 + + - 6
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1759
SELECT DISTINCT - 16 * + 60 + - COUNT( * ) DIV + + 32 AS col0
----
-960

skipif mysql # not compatible
query I rowsort label-1759
SELECT DISTINCT - 16 * + 60 + - COUNT ( * ) / + + 32 AS col0
----
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-1760
SELECT DISTINCT - + 21 * + COUNT( * ) * - COUNT( * ) + + 24 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-1760
SELECT DISTINCT - + 21 * + COUNT ( * ) * - COUNT ( * ) + + 24 AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1761
SELECT 91 * - 87 + + MAX( 57 ) + - ( CASE + 21 WHEN + AVG ( DISTINCT 8 ) THEN NULL WHEN 67 * 75 + + + ( + COUNT( * ) ) + - - 23 * - - 29 THEN 11 / + 34 + + 85 + 8 + + 42 * - 41 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1761
SELECT 91 * - 87 + + MAX ( 57 ) + - ( CASE + 21 WHEN + AVG ( DISTINCT 8 ) THEN NULL WHEN 67 * 75 + + + ( + COUNT ( * ) ) + - - 23 * - - 29 THEN 11 / + 34 + + 85 + 8 + + 42 * - 41 END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1762
SELECT MAX( 27 ) AS col1, 23 AS col0
----
27
23

skipif mysql # not compatible
query II rowsort label-1762
SELECT MAX ( 27 ) AS col1, 23 AS col0
----
27
23

onlyif mysql # DIV for integer division: 
query I rowsort label-1763
SELECT ALL 47 * 47 DIV 9 AS col2
----
245

skipif mysql # not compatible
query I rowsort label-1763
SELECT ALL 47 * 47 / 9 AS col2
----
245

query I rowsort
SELECT - 59 * 79 AS col0
----
-4661

query I rowsort
SELECT - 46 * + 55 - + 80
----
-2610

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1767
SELECT + COUNT( + 11 ) AS col0, 50 + - 86
----
1
-36

skipif mysql # not compatible
query II rowsort label-1767
SELECT + COUNT ( + 11 ) AS col0, 50 + - 86
----
1
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT + 23 * + COUNT( * ) * - 11 AS col2
----
-253

skipif mysql # not compatible
query I rowsort label-1768
SELECT + 23 * + COUNT ( * ) * - 11 AS col2
----
-253

query I rowsort
SELECT DISTINCT 46 * 16 AS col0
----
736

query I rowsort
SELECT ALL 40 - + 67 AS col0
----
-27

query I rowsort
SELECT DISTINCT + 38 * + 35 * 80 AS col0
----
106400

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1773
SELECT ALL + 57 DIV - + 21, - 39 + + + 14 - + 29 AS col1
----
-2
-54

skipif mysql # not compatible
query II rowsort label-1773
SELECT ALL + 57 / - + 21, - 39 + + + 14 - + 29 AS col1
----
-2
-54

query I rowsort
SELECT + 39 + 39
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1775
SELECT - 4 + CASE 21 WHEN - + 42 * + + COUNT( * ) THEN + + 99 + + ( - + 41 ) ELSE NULL END + 96 * - 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1775
SELECT - 4 + CASE 21 WHEN - + 42 * + + COUNT ( * ) THEN + + 99 + + ( - + 41 ) ELSE NULL END + 96 * - 94 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1776
SELECT 57 * + 24 + - + COUNT( * ) * + - 4 AS col2
----
1372

skipif mysql # not compatible
query I rowsort label-1776
SELECT 57 * + 24 + - + COUNT ( * ) * + - 4 AS col2
----
1372

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1777
SELECT ALL COALESCE ( + CAST( NULL AS SIGNED ), 15 * + + 0 - - ( - 74 ) - 11 + 86 * - 46 * + ( 0 ) * - 42 + - + CASE - 32 WHEN - + ( + - 87 ) THEN NULL WHEN 67 THEN - 12 ELSE - NULLIF ( - 30, + COUNT( * ) ) END ) col0
----
-115

skipif mysql # not compatible
query I rowsort label-1777
SELECT ALL COALESCE ( + CAST ( NULL AS INTEGER ), 15 * + + 0 - - ( - 74 ) - 11 + 86 * - 46 * + ( 0 ) * - 42 + - + CASE - 32 WHEN - + ( + - 87 ) THEN NULL WHEN 67 THEN - 12 ELSE - NULLIF ( - 30, + COUNT ( * ) ) END ) col0
----
-115

query I rowsort
SELECT - 33 - - 76 AS col2
----
43

query I rowsort
SELECT - 92 * + 50
----
-4600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1780
SELECT ALL + 21 * ( + 83 ) * + 25 - + CAST( + 66 AS SIGNED ) * + 12 * 78 AS col1
----
-18201

skipif mysql # not compatible
query I rowsort label-1780
SELECT ALL + 21 * ( + 83 ) * + 25 - + CAST ( + 66 AS INTEGER ) * + 12 * 78 AS col1
----
-18201

query II rowsort
SELECT - 46 + - 14, - 82 AS col0
----
-60
-82

query I rowsort
SELECT - - 32 - + - 54 + + - 47
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1783
SELECT ALL - MAX( - + 44 ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-1783
SELECT ALL - MAX ( - + 44 ) AS col2
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1784
SELECT ALL + + COUNT( * ) DIV - + COUNT( DISTINCT - + 22 ) * + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-1784
SELECT ALL + + COUNT ( * ) / - + COUNT ( DISTINCT - + 22 ) * + COUNT ( * )
----
-1

query I rowsort
SELECT - - 88 * 32 - 88
----
2728

query I rowsort
SELECT + - 83 + + 19
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1787
SELECT ALL + MAX( DISTINCT CAST( NULL AS SIGNED ) ) + - 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1787
SELECT ALL + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) + - 34 AS col1
----
NULL

query I rowsort
SELECT + + 8 + + - 21
----
-13

query I rowsort
SELECT ALL 78 + + 84 AS col1
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-1790
SELECT - 48 + NULLIF ( + + ( 99 ), + 37 / + + 70 * 65 + - + 15 * - COUNT( * ) * 73 ) * - 35
----
-3513

skipif mysql # not compatible
query I rowsort label-1790
SELECT - 48 + NULLIF ( + + ( 99 ), + 37 / + + 70 * 65 + - + 15 * - COUNT ( * ) * 73 ) * - 35
----
-3513

query I rowsort
SELECT ALL ( - 41 ) * 46 * 4 AS col1
----
-7544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1792
SELECT 47 / - CAST( NULL AS SIGNED ) + - - 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1792
SELECT 47 / - CAST ( NULL AS INTEGER ) + - - 54 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1793
SELECT ALL - 47 DIV + 9 + + - 72
----
-77

skipif mysql # not compatible
query I rowsort label-1793
SELECT ALL - 47 / + 9 + + - 72
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1794
SELECT DISTINCT + CASE + 79 WHEN - COUNT( * ) THEN + 12 ELSE NULL END * 85
----
NULL

skipif mysql # not compatible
query I rowsort label-1794
SELECT DISTINCT + CASE + 79 WHEN - COUNT ( * ) THEN + 12 ELSE NULL END * 85
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1795
SELECT DISTINCT + 18 DIV + 73 + 44 + 75 AS col0
----
119

skipif mysql # not compatible
query I rowsort label-1795
SELECT DISTINCT + 18 / + 73 + 44 + 75 AS col0
----
119

query I rowsort
SELECT - + 61 * + 75 AS col1
----
-4575

query I rowsort
SELECT + + 56 * 22
----
1232

query I rowsort
SELECT - - 45 + - 37 + - 25
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1799
SELECT DISTINCT - 88 * - 10 + - + COUNT( * ) + - - 14 * + - 17 * + 17 * + 26 + - 96 DIV COUNT( * ) * - 41 + 36
----
-100345

skipif mysql # not compatible
query I rowsort label-1799
SELECT DISTINCT - 88 * - 10 + - + COUNT ( * ) + - - 14 * + - 17 * + 17 * + 26 + - 96 / COUNT ( * ) * - 41 + 36
----
-100345

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

skipif mysql # not compatible
query I rowsort label-1800
SELECT + CAST ( NULL AS INTEGER ) * - 92 * + 45
----
NULL

query I rowsort
SELECT ( + 23 ) AS col0
----
23

onlyif mysql # DIV for integer division: 
query II rowsort label-1802
SELECT DISTINCT + 45, 63 DIV - - 1 AS col1
----
45
63

skipif mysql # not compatible
query II rowsort label-1802
SELECT DISTINCT + 45, 63 / - - 1 AS col1
----
45
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1803
SELECT ALL CAST( - 25 AS SIGNED ) * - + 83
----
2075

skipif mysql # not compatible
query I rowsort label-1803
SELECT ALL CAST ( - 25 AS INTEGER ) * - + 83
----
2075

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT + 76 + + 85 * - COUNT( * ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-1804
SELECT + 76 + + 85 * - COUNT ( * ) AS col1
----
-9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1805
SELECT + 28 DIV + + CAST( + 6 AS SIGNED ) AS col1, + 13 DIV 86 * + - 66 col0
----
4
0

skipif mysql # not compatible
query II rowsort label-1805
SELECT + 28 / + + CAST ( + 6 AS INTEGER ) AS col1, + 13 / 86 * + - 66 col0
----
4
0

query I rowsort
SELECT + 40 * + - 65 * - + NULLIF ( + 90, - 75 * + 17 ) col2
----
234000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1807
SELECT ALL ( + CASE + 12 WHEN - 56 THEN + 36 + COUNT( * ) + + 79 END ) * - CAST( + - 83 AS SIGNED ) + - COUNT( * ) * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1807
SELECT ALL ( + CASE + 12 WHEN - 56 THEN + 36 + COUNT ( * ) + + 79 END ) * - CAST ( + - 83 AS INTEGER ) + - COUNT ( * ) * - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL + 96 col1
----
96

query I rowsort
SELECT + ( + - 14 ) AS col0
----
-14

query I rowsort
SELECT - 98 + - + 75 AS col0
----
-173

query I rowsort
SELECT DISTINCT CASE + 74 WHEN - 60 + - 7 THEN 72 WHEN CASE WHEN NOT 70 BETWEEN - + 55 + + + 97 * - - 33 AND + 23 + + + 12 + + 18 THEN - - 64 ELSE NULL END + - 64 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT CASE ( + + 20 ) WHEN COALESCE ( COUNT( * ), - 9 ) THEN NULL WHEN 42 * + COUNT( * ) + + + CASE + - 15 WHEN + 76 THEN NULL ELSE + + 61 END THEN 55 ELSE 44 END AS col0
----
44

skipif mysql # not compatible
query I rowsort label-1812
SELECT CASE ( + + 20 ) WHEN COALESCE ( COUNT ( * ), - 9 ) THEN NULL WHEN 42 * + COUNT ( * ) + + + CASE + - 15 WHEN + 76 THEN NULL ELSE + + 61 END THEN 55 ELSE 44 END AS col0
----
44

query I rowsort
SELECT ALL CASE 82 WHEN - + 74 - + ( 24 ) THEN NULL WHEN + 84 + 32 THEN + 4 - + - 91 WHEN - + 44 THEN NULL WHEN - + 96 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1814
SELECT - CAST( - ( + 70 ) AS SIGNED ) col0
----
70

skipif mysql # not compatible
query I rowsort label-1814
SELECT - CAST ( - ( + 70 ) AS INTEGER ) col0
----
70

query I rowsort
SELECT ALL ( + 36 ) AS col2
----
36

query II rowsort
SELECT DISTINCT 35 AS col0, - ( - 17 ) - + 69 + ( - 31 ) AS col2
----
35
-83

query I rowsort
SELECT - + 78 * - 80
----
6240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1818
SELECT + + COUNT( ALL - 27 ) * + 74 + MIN( DISTINCT - 13 ) col0, + 34 * + SUM( + 53 ) * - 50 + + 12 + + ( 1 ) * - + ( CAST( NULL AS SIGNED ) ) - - 59 AS col2
----
61
NULL

skipif mysql # not compatible
query II rowsort label-1818
SELECT + + COUNT ( ALL - 27 ) * + 74 + MIN ( DISTINCT - 13 ) col0, + 34 * + SUM ( + 53 ) * - 50 + + 12 + + ( 1 ) * - + ( CAST ( NULL AS INTEGER ) ) - - 59 AS col2
----
61
NULL

query I rowsort
SELECT - ( - + 76 )
----
76

onlyif mysql # DIV for integer division: 
query II rowsort label-1820
SELECT 90, 84 DIV + + 26 AS col2
----
90
3

skipif mysql # not compatible
query II rowsort label-1820
SELECT 90, 84 / + + 26 AS col2
----
90
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1821
SELECT + + 17 DIV - ( - 41 ) * + + 15
----
0

skipif mysql # not compatible
query I rowsort label-1821
SELECT + + 17 / - ( - 41 ) * + + 15
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1822
SELECT - CAST( 61 AS SIGNED ) * - 67 AS col1, ( + 48 ) + - 24
----
4087
24

skipif mysql # not compatible
query II rowsort label-1822
SELECT - CAST ( 61 AS INTEGER ) * - 67 AS col1, ( + 48 ) + - 24
----
4087
24

query II rowsort
SELECT - 25, - 85 + - 55 * 71 * - + 10 AS col0
----
-25
38965

query I rowsort
SELECT NULLIF ( - 59, + - 18 * 77 )
----
-59

query I rowsort
SELECT ALL - 57 + - 23
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-1826
SELECT - 46 * - - MIN( DISTINCT + - 34 ) + + 21 AS col0
----
1585

skipif mysql # not compatible
query I rowsort label-1826
SELECT - 46 * - - MIN ( DISTINCT + - 34 ) + + 21 AS col0
----
1585

query I rowsort
SELECT ALL - 46 + + + 59 AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1828
SELECT + COUNT( + + 60 ) * + 79 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-1828
SELECT + COUNT ( + + 60 ) * + 79 AS col0
----
79

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

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

query I rowsort
SELECT 28 * - + 36 col1
----
-1008

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

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

query I rowsort
SELECT ( 18 ) col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1833
SELECT ALL - - 24 - - 67 * - COALESCE ( + 53, - - SUM( CASE + 53 WHEN + 50 + + 45 THEN + 35 ELSE NULL END ) * + 72 ) + + 72
----
-3455

skipif mysql # not compatible
query I rowsort label-1833
SELECT ALL - - 24 - - 67 * - COALESCE ( + 53, - - SUM ( CASE + 53 WHEN + 50 + + 45 THEN + 35 ELSE NULL END ) * + 72 ) + + 72
----
-3455

onlyif mysql # aggregate syntax: 
query I rowsort label-1834
SELECT - 38 * 14 - 0 + + + COUNT( * ) + 61 + 88 + 23
----
-359

skipif mysql # not compatible
query I rowsort label-1834
SELECT - 38 * 14 - 0 + + + COUNT ( * ) + 61 + 88 + 23
----
-359

query I rowsort
SELECT ALL ( + 59 ) * + + 25 AS col2
----
1475

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1836
SELECT 65 DIV COALESCE ( 81, - 58 ) * COALESCE ( COUNT( - 56 ), - CASE - 87 WHEN MAX( DISTINCT + + 97 ) DIV - 59 + - 2 THEN + 37 * + ( + - 67 ) - - SUM( DISTINCT 95 ) DIV - - 75 * + CAST( NULL AS SIGNED ) WHEN + + COUNT( * ) THEN + 4 * 25 - + 86 ELSE NULL END + + - 72 + - - 41 + ( + 97 ) ) * + - MAX( + - 36 ) + 20 + + 17 + + COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-1836
SELECT 65 / COALESCE ( 81, - 58 ) * COALESCE ( COUNT ( - 56 ), - CASE - 87 WHEN MAX ( DISTINCT + + 97 ) / - 59 + - 2 THEN + 37 * + ( + - 67 ) - - SUM ( DISTINCT 95 ) / - - 75 * + CAST ( NULL AS INTEGER ) WHEN + + COUNT ( * ) THEN + 4 * 25 - + 86 ELSE NULL END + + - 72 + - - 41 + ( + 97 ) ) * + - MAX ( + - 36 ) + 20 + + 17 + + COUNT ( * )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1837
SELECT ALL - COUNT( * ) - - COUNT( * ) * 36 + + + 71 AS col1
----
106

skipif mysql # not compatible
query I rowsort label-1837
SELECT ALL - COUNT ( * ) - - COUNT ( * ) * 36 + + + 71 AS col1
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT 66 * - 45 - + NULLIF ( - 73, - 59 / - + CASE 71 WHEN - 8 * - - 6 THEN 42 * - COUNT( * ) * - 74 WHEN + + 73 THEN NULL ELSE 89 END ) * + 22 * 15
----
21120

skipif mysql # not compatible
query I rowsort label-1838
SELECT 66 * - 45 - + NULLIF ( - 73, - 59 / - + CASE 71 WHEN - 8 * - - 6 THEN 42 * - COUNT ( * ) * - 74 WHEN + + 73 THEN NULL ELSE 89 END ) * + 22 * 15
----
21120

query I rowsort
SELECT 22 * - 88
----
-1936

query II rowsort
SELECT 53 AS col0, 61
----
53
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1841
SELECT MAX( ALL 20 ) * - 29 * - + 12 + + COUNT( * ) + + + 24 AS col0
----
6985

skipif mysql # not compatible
query I rowsort label-1841
SELECT MAX ( ALL 20 ) * - 29 * - + 12 + + COUNT ( * ) + + + 24 AS col0
----
6985

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1842
SELECT ALL 80 DIV + ( + + COUNT( - 69 ) )
----
80

skipif mysql # not compatible
query I rowsort label-1842
SELECT ALL 80 / + ( + + COUNT ( - 69 ) )
----
80

query I rowsort
SELECT 48 * + - 13 AS col1
----
-624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1844
SELECT ALL - 83 AS col0, COUNT( * ) / + CAST( 91 AS SIGNED ) * 46 + 63 * + - CAST( NULL AS SIGNED ) * - + 97 + - MAX( - 77 ) AS col2
----
-83
NULL

skipif mysql # not compatible
query II rowsort label-1844
SELECT ALL - 83 AS col0, COUNT ( * ) / + CAST ( 91 AS INTEGER ) * 46 + 63 * + - CAST ( NULL AS INTEGER ) * - + 97 + - MAX ( - 77 ) AS col2
----
-83
NULL

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

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

query II rowsort
SELECT + 70 col2, - 61 col0
----
70
-61

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

skipif mysql # not compatible
query I rowsort label-1847
SELECT ALL 33 * + + COUNT ( * ) AS col0
----
33

query II rowsort
SELECT 77, - 36 col1
----
77
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1849
SELECT - 67 + + 5 * - - 30 + + + CAST( NULL AS SIGNED ) + + 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1849
SELECT - 67 + + 5 * - - 30 + + + CAST ( NULL AS INTEGER ) + + 65 AS col0
----
NULL

query I rowsort
SELECT 56 * 67 col0
----
3752

query I rowsort
SELECT 46 * + 30 * - + 69 + + 49 + + 83
----
-95088

onlyif mysql # aggregate syntax: 
query II rowsort label-1852
SELECT - 43 * 78 + + 50 + + + 10, COUNT( * ) * 48 AS col1
----
-3294
48

skipif mysql # not compatible
query II rowsort label-1852
SELECT - 43 * 78 + + 50 + + + 10, COUNT ( * ) * 48 AS col1
----
-3294
48

query II rowsort
SELECT + 87 AS col2, + 83 AS col2
----
87
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1854
SELECT DISTINCT 82 + + ( - + COUNT( * ) ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-1854
SELECT DISTINCT 82 + + ( - + COUNT ( * ) ) AS col2
----
81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1856
SELECT + 30 + - 78 * + MAX( ALL 73 ) * + + COUNT( * ) AS col1
----
-5664

skipif mysql # not compatible
query I rowsort label-1856
SELECT + 30 + - 78 * + MAX ( ALL 73 ) * + + COUNT ( * ) AS col1
----
-5664

onlyif mysql # aggregate syntax: 
query II rowsort label-1857
SELECT 74 + + - 5, - MIN( DISTINCT + - 7 ) + - 86 + COUNT( * ) * ( + - 53 ) AS col0
----
69
-132

skipif mysql # not compatible
query II rowsort label-1857
SELECT 74 + + - 5, - MIN ( DISTINCT + - 7 ) + - 86 + COUNT ( * ) * ( + - 53 ) AS col0
----
69
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-1858
SELECT 4 * + 6 * + - COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-1858
SELECT 4 * + 6 * + - COUNT ( * )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1859
SELECT ALL SUM( ( 2 ) ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1859
SELECT ALL SUM ( ( 2 ) ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1860
SELECT 43 + + 10 * + + MAX( 81 )
----
853

skipif mysql # not compatible
query I rowsort label-1860
SELECT 43 + + 10 * + + MAX ( 81 )
----
853

query I rowsort
SELECT DISTINCT - 1 * + 3 * + 44 col2
----
-132

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

skipif mysql # not compatible
query II rowsort label-1862
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) AS col2, 65
----
-1
65

query I rowsort
SELECT + ( + 54 ) + - 45
----
9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT 16 + - + COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-1865
SELECT 16 + - + COUNT ( * )
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-1866
SELECT ALL COUNT( ALL - + 49 ) - COUNT( * ) * + + 66 * + 14 - - CASE - + 66 WHEN + CASE - + 93 WHEN - NULLIF ( - - COUNT( * ), - 39 ) THEN - + 43 + + + 25 * COUNT( * ) WHEN + - 89 + + SUM( 19 ) * - 13 + ( - + 84 ) THEN NULL ELSE + 15 - + 46 END THEN - 39 WHEN - 41 THEN - 26 - + + 26 - + 66 + + COUNT( * ) + COUNT( * ) ELSE NULL END, 55 AS col1
----
NULL
55

skipif mysql # not compatible
query II rowsort label-1866
SELECT ALL COUNT ( ALL - + 49 ) - COUNT ( * ) * + + 66 * + 14 - - CASE - + 66 WHEN + CASE - + 93 WHEN - NULLIF ( - - COUNT ( * ), - 39 ) THEN - + 43 + + + 25 * COUNT ( * ) WHEN + - 89 + + SUM ( 19 ) * - 13 + ( - + 84 ) THEN NULL ELSE + 15 - + 46 END THEN - 39 WHEN - 41 THEN - 26 - + + 26 - + 66 + + COUNT ( * ) + COUNT ( * ) ELSE NULL END, 55 AS col1
----
NULL
55

query I rowsort
SELECT DISTINCT 23 * 85
----
1955

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1868
SELECT DISTINCT - CAST( - 49 AS SIGNED ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-1868
SELECT DISTINCT - CAST ( - 49 AS INTEGER ) AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1869
SELECT ALL - MIN( ALL - 96 ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-1869
SELECT ALL - MIN ( ALL - 96 ) AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1870
SELECT COUNT( - 96 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-1870
SELECT COUNT ( - 96 ) col1
----
1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1872
SELECT 51 + 47, - COUNT( * ) + 50 * ( + 31 ) + - + 72 AS col0
----
98
1477

skipif mysql # not compatible
query II rowsort label-1872
SELECT 51 + 47, - COUNT ( * ) + 50 * ( + 31 ) + - + 72 AS col0
----
98
1477

onlyif mysql # DIV for integer division: 
query I rowsort label-1873
SELECT ALL - 98 DIV 82 * - 46
----
46

skipif mysql # not compatible
query I rowsort label-1873
SELECT ALL - 98 / 82 * - 46
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1874
SELECT 22 / CASE - ( + + ( - 29 ) ) WHEN NULLIF ( + + COALESCE ( - 98, + COUNT( * ) ), + + 56 ) THEN - 75 * COUNT( * ) WHEN + 98 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1874
SELECT 22 / CASE - ( + + ( - 29 ) ) WHEN NULLIF ( + + COALESCE ( - 98, + COUNT ( * ) ), + + 56 ) THEN - 75 * COUNT ( * ) WHEN + 98 THEN NULL ELSE NULL END AS col0
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1877
SELECT 48 + + CAST( 80 AS SIGNED )
----
128

skipif mysql # not compatible
query I rowsort label-1877
SELECT 48 + + CAST ( 80 AS INTEGER )
----
128

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1878
SELECT ALL 74 + + 43 AS col1, - ( + - 90 ) / + CAST( NULL AS SIGNED ) AS col1
----
117
NULL

skipif mysql # not compatible
query II rowsort label-1878
SELECT ALL 74 + + 43 AS col1, - ( + - 90 ) / + CAST ( NULL AS INTEGER ) AS col1
----
117
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1879
SELECT ALL + 62 + + COALESCE ( COUNT( - 1 ), + - 5 * - 32 + + + 49 )
----
63

skipif mysql # not compatible
query I rowsort label-1879
SELECT ALL + 62 + + COALESCE ( COUNT ( - 1 ), + - 5 * - 32 + + + 49 )
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-1880
SELECT DISTINCT - 8 + + 20 DIV - - 39 AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-1880
SELECT DISTINCT - 8 + + 20 / - - 39 AS col2
----
-8

query I rowsort
SELECT 41 - 35 AS col2
----
6

query I rowsort
SELECT + 8 * + - 15 + - + 66
----
-186

query I rowsort
SELECT ALL - - 0 + - - ( - + 44 ) + - 67 col2
----
-111

query I rowsort
SELECT + 48 + + 22
----
70

query I rowsort
SELECT ALL + 90 + 90 AS col2
----
180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1886
SELECT CAST( COUNT( * ) AS SIGNED ) * + 31 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-1886
SELECT CAST ( COUNT ( * ) AS INTEGER ) * + 31 AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1887
SELECT DISTINCT - COUNT( DISTINCT - 38 )
----
-1

skipif mysql # not compatible
query I rowsort label-1887
SELECT DISTINCT - COUNT ( DISTINCT - 38 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1888
SELECT ALL MAX( - 47 ) - - 7 + 98 * - + 98 - + 7 + - 6 * + - COUNT( * ) * + + 61 * + 80
----
19629

skipif mysql # not compatible
query I rowsort label-1888
SELECT ALL MAX ( - 47 ) - - 7 + 98 * - + 98 - + 7 + - 6 * + - COUNT ( * ) * + + 61 * + 80
----
19629

onlyif mysql # aggregate syntax: 
query II rowsort label-1889
SELECT + 37 * + 33 AS col0, CASE - COUNT( * ) WHEN - 58 * + 44 * ( + COUNT( * ) ) THEN + + 52 END AS col2
----
1221
NULL

skipif mysql # not compatible
query II rowsort label-1889
SELECT + 37 * + 33 AS col0, CASE - COUNT ( * ) WHEN - 58 * + 44 * ( + COUNT ( * ) ) THEN + + 52 END AS col2
----
1221
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1890
SELECT + - 57 DIV 6 * 43 + MIN( DISTINCT + + CAST( + COALESCE ( + 24, 22 ) AS SIGNED ) ) * - - 35 AS col1
----
453

skipif mysql # not compatible
query I rowsort label-1890
SELECT + - 57 / 6 * 43 + MIN ( DISTINCT + + CAST ( + COALESCE ( + 24, 22 ) AS INTEGER ) ) * - - 35 AS col1
----
453

query II rowsort
SELECT + + 83 - - 59 AS col0, 71 - 22
----
142
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1892
SELECT + + MAX( DISTINCT + 20 ) * - 60 * 50
----
-60000

skipif mysql # not compatible
query I rowsort label-1892
SELECT + + MAX ( DISTINCT + 20 ) * - 60 * 50
----
-60000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1893
SELECT DISTINCT 96 * - ( - COALESCE ( + CAST( - + 27 AS SIGNED ), - 37 ) ) AS col1
----
-2592

skipif mysql # not compatible
query I rowsort label-1893
SELECT DISTINCT 96 * - ( - COALESCE ( + CAST ( - + 27 AS INTEGER ), - 37 ) ) AS col1
----
-2592

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

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

query I rowsort
SELECT + 76 * - 14 AS col1
----
-1064

query I rowsort
SELECT + 23 + + 32 AS col2
----
55

query I rowsort
SELECT + 40 * + 57
----
2280

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

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

query II rowsort
SELECT - 89 AS col1, 38 col1
----
-89
38

query I rowsort
SELECT - 81 * 57
----
-4617

onlyif mysql # DIV for integer division: 
query II rowsort label-1901
SELECT ALL 79 * + 82 * + + 22 + - 26, 64 DIV - 43 AS col2
----
142490
-1

skipif mysql # not compatible
query II rowsort label-1901
SELECT ALL 79 * + 82 * + + 22 + - 26, 64 / - 43 AS col2
----
142490
-1

query II rowsort
SELECT + 3, - ( + 85 ) + - ( + 48 ) AS col0
----
3
-133

query I rowsort
SELECT - 45 + + + ( + ( + 57 ) ) - - 98 * + 66 * + 94
----
608004

query II rowsort
SELECT DISTINCT + 90, + 13 + - + 89 AS col1
----
90
-76

query I rowsort
SELECT NULLIF ( + - 0, + 42 )
----
0

query I rowsort
SELECT + 51 * + + 77 AS col1
----
3927

onlyif mysql # DIV for integer division: 
query I rowsort label-1907
SELECT - 35 DIV + 50 + - 30
----
-30

skipif mysql # not compatible
query I rowsort label-1907
SELECT - 35 / + 50 + - 30
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1908
SELECT - NULLIF ( - + COUNT( * ), 2 ) * - - 56
----
56

skipif mysql # not compatible
query I rowsort label-1908
SELECT - NULLIF ( - + COUNT ( * ), 2 ) * - - 56
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1909
SELECT - ( + COUNT( * ) ) DIV 15 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1909
SELECT - ( + COUNT ( * ) ) / 15 AS col1
----
0

query I rowsort
SELECT NULLIF ( - 82, + 77 / 37 ) AS col0
----
-82

query I rowsort
SELECT DISTINCT - 24 * + + 98 * - 61 + 83
----
143555

query II rowsort
SELECT ALL + 78 AS col0, 28 * + - 86 AS col1
----
78
-2408

onlyif mysql # aggregate syntax: 
query II rowsort label-1913
SELECT - 56 * - + COUNT( * ) * - + 8, 70 AS col0
----
-448
70

skipif mysql # not compatible
query II rowsort label-1913
SELECT - 56 * - + COUNT ( * ) * - + 8, 70 AS col0
----
-448
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1914
SELECT + 9 * - 8 * - + 23 * - MIN( - - 21 ) + + - ( + 75 ) + - ( - SUM( ALL + 99 ) ) AS col1
----
-34752

skipif mysql # not compatible
query I rowsort label-1914
SELECT + 9 * - 8 * - + 23 * - MIN ( - - 21 ) + + - ( + 75 ) + - ( - SUM ( ALL + 99 ) ) AS col1
----
-34752

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1915
SELECT ALL - ( COALESCE ( - + 91, - 54 DIV - + COUNT( DISTINCT + 36 ) DIV - - 71 + - 5 ) ) AS col0, + 75
----
91
75

skipif mysql # not compatible
query II rowsort label-1915
SELECT ALL - ( COALESCE ( - + 91, - 54 / - + COUNT ( DISTINCT + 36 ) / - - 71 + - 5 ) ) AS col0, + 75
----
91
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1916
SELECT - - COUNT( * ) * 93
----
93

skipif mysql # not compatible
query I rowsort label-1916
SELECT - - COUNT ( * ) * 93
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-1917
SELECT ALL + 57 AS col0, 75 * COUNT( * ) * + COUNT( * ) * 64 AS col0
----
57
4800

skipif mysql # not compatible
query II rowsort label-1917
SELECT ALL + 57 AS col0, 75 * COUNT ( * ) * + COUNT ( * ) * 64 AS col0
----
57
4800

query II rowsort
SELECT - + 36 AS col2, + 43 AS col1
----
-36
43

onlyif mysql # DIV for integer division: 
query II rowsort label-1919
SELECT + 12 DIV 10 AS col0, - 31 * 5 AS col2
----
1
-155

skipif mysql # not compatible
query II rowsort label-1919
SELECT + 12 / 10 AS col0, - 31 * 5 AS col2
----
1
-155

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1921
SELECT + COUNT( * ) + + COUNT( * ) + 71 - - 50 AS col0
----
123

skipif mysql # not compatible
query I rowsort label-1921
SELECT + COUNT ( * ) + + COUNT ( * ) + 71 - - 50 AS col0
----
123

query I rowsort
SELECT ALL ( + 60 ) * - 84
----
-5040

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1923
SELECT - 41 DIV - COUNT( * ) AS col2, 79
----
41
79

skipif mysql # not compatible
query II rowsort label-1923
SELECT - 41 / - COUNT ( * ) AS col2, 79
----
41
79

query I rowsort
SELECT + 5 + - ( - - 66 ) * - - 0
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1925
SELECT DISTINCT CAST( + 60 AS SIGNED ) * - - CASE 3 WHEN - + 34 THEN NULL ELSE - 61 END - 65 AS col0, - 75 * + + 46 * - COALESCE ( + - MAX( + 3 ), 42 ) AS col2
----
-3725
-10350

skipif mysql # not compatible
query II rowsort label-1925
SELECT DISTINCT CAST ( + 60 AS INTEGER ) * - - CASE 3 WHEN - + 34 THEN NULL ELSE - 61 END - 65 AS col0, - 75 * + + 46 * - COALESCE ( + - MAX ( + 3 ), 42 ) AS col2
----
-3725
-10350

onlyif mysql # DIV for integer division: 
query I rowsort label-1926
SELECT + 76 DIV + 40 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1926
SELECT + 76 / + 40 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1927
SELECT ALL 64 + - CAST( NULL AS DECIMAL ) + + 27 * + + 59 * - - 75, 38 * CAST( - 83 AS SIGNED ) + - 17 + ( - 10 ) + - + COUNT( * ) * - 33 * + 6 AS col2
----
NULL
-2983

skipif mysql # not compatible
query II rowsort label-1927
SELECT ALL 64 + - CAST ( NULL AS REAL ) + + 27 * + + 59 * - - 75, 38 * CAST ( - 83 AS INTEGER ) + - 17 + ( - 10 ) + - + COUNT ( * ) * - 33 * + 6 AS col2
----
NULL
-2983

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT DISTINCT 22 + - - 94 + 75 * + MAX( DISTINCT + 74 ) AS col1
----
5666

skipif mysql # not compatible
query I rowsort label-1928
SELECT DISTINCT 22 + - - 94 + 75 * + MAX ( DISTINCT + 74 ) AS col1
----
5666

query I rowsort
SELECT + 87 * + 49
----
4263

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1931
SELECT + CAST( 1 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-1931
SELECT + CAST ( 1 AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1932
SELECT + 15 + - + 18 * + CASE + 5 WHEN - 65 THEN 6 WHEN + - ( - + NULLIF ( + 80, + 85 * + 58 ) ) - + COUNT( DISTINCT 12 ) * - 44 / COUNT( * ) THEN NULL ELSE NULL END * + 36 * - 22 / + ( - - 53 ) / - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-1932
SELECT + 15 + - + 18 * + CASE + 5 WHEN - 65 THEN 6 WHEN + - ( - + NULLIF ( + 80, + 85 * + 58 ) ) - + COUNT ( DISTINCT 12 ) * - 44 / COUNT ( * ) THEN NULL ELSE NULL END * + 36 * - 22 / + ( - - 53 ) / - 38
----
NULL

query I rowsort
SELECT ALL 15 * - 34 AS col2
----
-510

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT ALL 44 * + COUNT( * ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-1934
SELECT ALL 44 * + COUNT ( * ) AS col1
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1935
SELECT DISTINCT 71 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1935
SELECT DISTINCT 71 - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1936
SELECT 82 DIV 4 DIV 52
----
0

skipif mysql # not compatible
query I rowsort label-1936
SELECT 82 / 4 / 52
----
0

query I rowsort
SELECT + 10 * - 22 AS col0
----
-220

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT - - 55 * NULLIF ( - - 45, - 39 * + COALESCE ( - - COUNT( * ), - - ( + 42 ) ) ) + - NULLIF ( + COUNT( * ), COUNT( * ) * 0 + 91 )
----
2474

skipif mysql # not compatible
query I rowsort label-1938
SELECT - - 55 * NULLIF ( - - 45, - 39 * + COALESCE ( - - COUNT ( * ), - - ( + 42 ) ) ) + - NULLIF ( + COUNT ( * ), COUNT ( * ) * 0 + 91 )
----
2474

query I rowsort
SELECT 27 * - + 31 + - - 25
----
-812

query I rowsort
SELECT - 76 * + 28 + + - 85 col1
----
-2213

query I rowsort
SELECT 49 + - - 13
----
62

query I rowsort
SELECT ALL - + 65 / - - 23 * + 98 + + - CASE - - 9 WHEN - 53 THEN + - 9 * 15 + + - 25 + + - 39 + - 46 END + - - 33
----
NULL

query I rowsort
SELECT 51 * + 63 * - 57 - + - 64 * - + ( 79 ) AS col1
----
-188197

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT DISTINCT - CASE + COALESCE ( + 31, + 11 + - 83 ) WHEN - SUM( ALL + 37 ) + + 10 + 38 + 32 - + 38 * 85 * 21 THEN NULL WHEN - 58 THEN 17 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1944
SELECT DISTINCT - CASE + COALESCE ( + 31, + 11 + - 83 ) WHEN - SUM ( ALL + 37 ) + + 10 + 38 + 32 - + 38 * 85 * 21 THEN NULL WHEN - 58 THEN 17 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1945
SELECT ALL + 22 * - 92, + SUM( + 45 ) * - 46 * + + COUNT( * ) + + - 26 + + COUNT( * ) col1
----
-2024
-2095

skipif mysql # not compatible
query II rowsort label-1945
SELECT ALL + 22 * - 92, + SUM ( + 45 ) * - 46 * + + COUNT ( * ) + + - 26 + + COUNT ( * ) col1
----
-2024
-2095

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1947
SELECT 16 * 15 * + + COALESCE ( - ( - - 15 ), - + 60 - + 22, + 79, - 5 + + 96 + + + CASE - 54 WHEN 46 THEN NULL WHEN + 15 * + NULLIF ( - 80, 55 ) THEN + 38 * - 13 * 10 END DIV + COUNT( * ) * + 27 ) AS col0
----
-3600

skipif mysql # not compatible
query I rowsort label-1947
SELECT 16 * 15 * + + COALESCE ( - ( - - 15 ), - + 60 - + 22, + 79, - 5 + + 96 + + + CASE - 54 WHEN 46 THEN NULL WHEN + 15 * + NULLIF ( - 80, 55 ) THEN + 38 * - 13 * 10 END / + COUNT ( * ) * + 27 ) AS col0
----
-3600

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

skipif mysql # not compatible
query I rowsort label-1948
SELECT DISTINCT + 93 + - - CAST ( - 95 AS INTEGER )
----
-2

query I rowsort
SELECT 32 - + 52
----
-20

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

skipif mysql # not compatible
query I rowsort label-1950
SELECT COUNT ( * ) * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 16 * 94 AS col2
----
1504

onlyif mysql # aggregate syntax: 
query I rowsort label-1952
SELECT CASE 67 WHEN - - 57 * - COUNT( * ) + 77 + COALESCE ( + 10, 28, - CASE 87 WHEN + 8 + 48 + + - COUNT( + 28 ) * ( + - 67 ) THEN - 97 ELSE + 75 END ) + 79 * - COUNT( * ) THEN NULL WHEN - - ( - 88 ) THEN NULL WHEN - COUNT( * ) THEN - + 38 END * + ( 6 ) * + - 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1952
SELECT CASE 67 WHEN - - 57 * - COUNT ( * ) + 77 + COALESCE ( + 10, 28, - CASE 87 WHEN + 8 + 48 + + - COUNT ( + 28 ) * ( + - 67 ) THEN - 97 ELSE + 75 END ) + 79 * - COUNT ( * ) THEN NULL WHEN - - ( - 88 ) THEN NULL WHEN - COUNT ( * ) THEN - + 38 END * + ( 6 ) * + - 91 AS col2
----
NULL

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

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

query I rowsort
SELECT DISTINCT 80 * - 7
----
-560

query II rowsort
SELECT ALL 74 - + + 32 - - 54, 72 * 30 AS col1
----
96
2160

query I rowsort
SELECT 17 + - 97 AS col1
----
-80

query I rowsort
SELECT DISTINCT - - 16 AS col1
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-1958
SELECT - 8 * - - 70 * - COUNT( * ) AS col0, 38 + - 46 * + 99 + 15 AS col1
----
560
-4501

skipif mysql # not compatible
query II rowsort label-1958
SELECT - 8 * - - 70 * - COUNT ( * ) AS col0, 38 + - 46 * + 99 + 15 AS col1
----
560
-4501

query I rowsort
SELECT 27 * + 3 * + + 8 AS col2
----
648

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1961
SELECT - 74 DIV 65 * 59 AS col1, 3 col1
----
-59
3

skipif mysql # not compatible
query II rowsort label-1961
SELECT - 74 / 65 * 59 AS col1, 3 col1
----
-59
3

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

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

query I rowsort
SELECT - + 29 * - 4 + + + 30
----
146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1964
SELECT DISTINCT 62 * + + ( 49 ) AS col1, 2 DIV - ( + 41 ) * 29 * + 16 + 75 + - - CAST( - 8 AS SIGNED ) DIV + COUNT( * )
----
3038
67

skipif mysql # not compatible
query II rowsort label-1964
SELECT DISTINCT 62 * + + ( 49 ) AS col1, 2 / - ( + 41 ) * 29 * + 16 + 75 + - - CAST ( - 8 AS INTEGER ) / + COUNT ( * )
----
3038
67

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

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

query I rowsort
SELECT - 50 + + ( - 0 )
----
-50

query I rowsort
SELECT DISTINCT 89 * + 30
----
2670

query I rowsort
SELECT 76 + - 19 - - - 25 * + 58 * 93 + + 43
----
-134750

query I rowsort
SELECT - 33 - - + 58
----
25

query II rowsort
SELECT - - 35, 32 AS col2
----
35
32

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1971
SELECT 66 * CASE 7 WHEN + + CAST( NULL AS DECIMAL ) THEN + 54 ELSE + - 68 + - - 14 END * ( + + 52 ) + 72 AS col0
----
-185256

skipif mysql # not compatible
query I rowsort label-1971
SELECT 66 * CASE 7 WHEN + + CAST ( NULL AS REAL ) THEN + 54 ELSE + - 68 + - - 14 END * ( + + 52 ) + 72 AS col0
----
-185256

onlyif mysql # aggregate syntax: 
query I rowsort label-1972
SELECT 61 * - COUNT( * ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-1972
SELECT 61 * - COUNT ( * ) AS col2
----
-61

query I rowsort
SELECT 51 + - 13 AS col1
----
38

query I rowsort
SELECT 61 + + 98
----
159

onlyif mysql # DIV for integer division: 
query II rowsort label-1975
SELECT 2 AS col1, + 67 + + - ( 54 ) DIV + 56 * 24 AS col2
----
2
67

skipif mysql # not compatible
query II rowsort label-1975
SELECT 2 AS col1, + 67 + + - ( 54 ) / + 56 * 24 AS col2
----
2
67

query I rowsort
SELECT DISTINCT - 62 * + 94 AS col1
----
-5828

query I rowsort
SELECT 66 * - 55 AS col1
----
-3630

query I rowsort
SELECT ALL - 72 * + - 66
----
4752

onlyif mysql # aggregate syntax: 
query II rowsort label-1979
SELECT - 17 AS col2, - COUNT( * ) * 79
----
-17
-79

skipif mysql # not compatible
query II rowsort label-1979
SELECT - 17 AS col2, - COUNT ( * ) * 79
----
-17
-79

query I rowsort
SELECT DISTINCT 62 * 3
----
186

query I rowsort
SELECT - 9 - - 78
----
69

query II rowsort
SELECT ALL + - 48 col0, 51 * + + 5 AS col1
----
-48
255

query II rowsort
SELECT + 90 AS col0, 62 + 62 AS col0
----
90
124

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT - - COUNT( ALL + 78 ) * + 63 AS col2
----
63

skipif mysql # not compatible
query I rowsort label-1984
SELECT - - COUNT ( ALL + 78 ) * + 63 AS col2
----
63

query I rowsort
SELECT DISTINCT - ( + - 25 ) * 48 + + + 31 AS col0
----
1231

query I rowsort
SELECT - + 16 * 85 AS col2
----
-1360

query I rowsort
SELECT ( - - 84 ) AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1988
SELECT ALL - COUNT( * ) * - COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1988
SELECT ALL - COUNT ( * ) * - COUNT ( * ) AS col0
----
1

query I rowsort
SELECT DISTINCT 93 * + 77
----
7161

query I rowsort
SELECT DISTINCT 44 * - + 85 - 84 + - 15
----
-3839

onlyif mysql # aggregate syntax: 
query I rowsort label-1991
SELECT SUM( - 48 ) col2
----
-48

skipif mysql # not compatible
query I rowsort label-1991
SELECT SUM ( - 48 ) col2
----
-48

query I rowsort
SELECT + 81 + - 19
----
62

query II rowsort
SELECT ALL + + 55 AS col2, 38
----
55
38

query II rowsort
SELECT + 8 AS col0, + 71
----
8
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1995
SELECT ALL - + 67 * + COUNT( * ) * - + 13 * - COUNT( * ) * COUNT( * ) * 68 + + 73 AS col2
----
-59155

skipif mysql # not compatible
query I rowsort label-1995
SELECT ALL - + 67 * + COUNT ( * ) * - + 13 * - COUNT ( * ) * COUNT ( * ) * 68 + + 73 AS col2
----
-59155

query I rowsort
SELECT - 48 * - - 36 + + - 60 + - 13 * - 80 + + - 81 AS col2
----
-829

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1997
SELECT 83 * 25 + + ( + 95 ) AS col1, - ( - CAST( NULL AS SIGNED ) ) AS col2
----
2170
NULL

skipif mysql # not compatible
query II rowsort label-1997
SELECT 83 * 25 + + ( + 95 ) AS col1, - ( - CAST ( NULL AS INTEGER ) ) AS col2
----
2170
NULL

query I rowsort
SELECT ALL - 52 * - 56 + 88 col1
----
3000

query II rowsort
SELECT + - 37 AS col1, 83 AS col2
----
-37
83

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

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

query I rowsort
SELECT + + ( + 58 ) * + 19 AS col0
----
1102

onlyif mysql # aggregate syntax: 
query I rowsort label-2002
SELECT DISTINCT - COUNT( * ) * + 0 * 75 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-2002
SELECT DISTINCT - COUNT ( * ) * + 0 * 75 + COUNT ( * )
----
1

query I rowsort
SELECT ALL 41 * - 18 AS col2
----
-738

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2004
SELECT ALL 52 + - COUNT( * ) + COUNT( * ) + - 60 + 24 * + CAST( - CAST( 15 AS SIGNED ) AS DECIMAL ) * - CAST( NULL AS SIGNED ) - + + 39 * 10 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2004
SELECT ALL 52 + - COUNT ( * ) + COUNT ( * ) + - 60 + 24 * + CAST ( - CAST ( 15 AS INTEGER ) AS REAL ) * - CAST ( NULL AS INTEGER ) - + + 39 * 10 AS col2
----
NULL

query I rowsort
SELECT + 64 * - 88 col2
----
-5632

query I rowsort
SELECT + 34 - 5 + + - 10
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2007
SELECT COUNT( ALL - 29 )
----
1

skipif mysql # not compatible
query I rowsort label-2007
SELECT COUNT ( ALL - 29 )
----
1

query II rowsort
SELECT ALL 5 * 19 AS col0, 30 AS col0
----
95
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2009
SELECT - COUNT( * ) DIV + CAST( - 20 AS SIGNED )
----
0

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

query I rowsort
SELECT + 28 * + 63 * - + ( + + 24 )
----
-42336

query I rowsort
SELECT ALL 98 - + 75 * 49
----
-3577

onlyif mysql # aggregate syntax: 
query I rowsort label-2012
SELECT + COUNT( DISTINCT + 72 ) * + 35 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-2012
SELECT + COUNT ( DISTINCT + 72 ) * + 35 AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2013
SELECT + SUM( ALL - 43 ) - - 10 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-2013
SELECT + SUM ( ALL - 43 ) - - 10 AS col0
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2014
SELECT ALL + COUNT( * ) DIV 73 AS col0, - 32 + 78 + - 4
----
0
42

skipif mysql # not compatible
query II rowsort label-2014
SELECT ALL + COUNT ( * ) / 73 AS col0, - 32 + 78 + - 4
----
0
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2015
SELECT ALL + 86 * - CAST( NULL AS SIGNED ) AS col2, 22
----
NULL
22

skipif mysql # not compatible
query II rowsort label-2015
SELECT ALL + 86 * - CAST ( NULL AS INTEGER ) AS col2, 22
----
NULL
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2016
SELECT DISTINCT - COALESCE ( - COUNT( * ), - ( 65 ) ) * - + 4
----
-4

skipif mysql # not compatible
query I rowsort label-2016
SELECT DISTINCT - COALESCE ( - COUNT ( * ), - ( 65 ) ) * - + 4
----
-4

query I rowsort
SELECT + 21 + + + 57 AS col0
----
78

query I rowsort
SELECT - 27 * - + 40
----
1080

query I rowsort
SELECT + 38 * - 87
----
-3306

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2020
SELECT - SUM( + + 85 ) AS col1, + 7 DIV + 82 + - 15
----
-85
-15

skipif mysql # not compatible
query II rowsort label-2020
SELECT - SUM ( + + 85 ) AS col1, + 7 / + 82 + - 15
----
-85
-15

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2022
SELECT - - COALESCE ( - COUNT( * ), + 21 + + - 60, 22 ) * + 61 AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-2022
SELECT - - COALESCE ( - COUNT ( * ), + 21 + + - 60, 22 ) * + 61 AS col2
----
-61

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2023
SELECT ALL - CAST( NULL AS SIGNED ) / + + 41 + - AVG ( + CAST( + - 92 AS DECIMAL ) ) + - ( - - 62 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2023
SELECT ALL - CAST ( NULL AS INTEGER ) / + + 41 + - AVG ( + CAST ( + - 92 AS REAL ) ) + - ( - - 62 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2024
SELECT - - NULLIF ( - - CAST( NULL AS SIGNED ), 44 ) * - 43 + - 69 + 18 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2024
SELECT - - NULLIF ( - - CAST ( NULL AS INTEGER ), 44 ) * - 43 + - 69 + 18 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2025
SELECT DISTINCT 4 / 58 + - ( CAST( NULL AS SIGNED ) ) + - + COALESCE ( + ( + 67 ), - - 34 - + 13 + 47 ) + 71 + - 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2025
SELECT DISTINCT 4 / 58 + - ( CAST ( NULL AS INTEGER ) ) + - + COALESCE ( + ( + 67 ), - - 34 - + 13 + 47 ) + 71 + - 48 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2026
SELECT DISTINCT 42 DIV + + 9 + - 80 + 80
----
4

skipif mysql # not compatible
query I rowsort label-2026
SELECT DISTINCT 42 / + + 9 + - 80 + 80
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT - MAX( + 57 ) + + COUNT( DISTINCT 93 ) * + + 27
----
-30

skipif mysql # not compatible
query I rowsort label-2027
SELECT - MAX ( + 57 ) + + COUNT ( DISTINCT 93 ) * + + 27
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2028
SELECT ALL - 56 DIV COUNT( * ) DIV 29 + + 37 + + 41 + 11 * - 15 + - 15 * + - 22 * - + SUM( DISTINCT - - 1 )
----
-418

skipif mysql # not compatible
query I rowsort label-2028
SELECT ALL - 56 / COUNT ( * ) / 29 + + 37 + + 41 + 11 * - 15 + - 15 * + - 22 * - + SUM ( DISTINCT - - 1 )
----
-418

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2029
SELECT - - 93 + - 28 - MIN( 45 ) * - CAST( 71 AS SIGNED ) AS col0
----
3260

skipif mysql # not compatible
query I rowsort label-2029
SELECT - - 93 + - 28 - MIN ( 45 ) * - CAST ( 71 AS INTEGER ) AS col0
----
3260

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT - NULLIF ( ( - SUM( - 56 ) ), - + 62 ) * 31 * - COUNT( 30 )
----
1736

skipif mysql # not compatible
query I rowsort label-2030
SELECT - NULLIF ( ( - SUM ( - 56 ) ), - + 62 ) * 31 * - COUNT ( 30 )
----
1736

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2031
SELECT ALL + + 79 DIV + 4, - 36 + + - 22 + - 77 - ( 21 ) + - 59 * MAX( ( + - 92 ) ) * - + 82 AS col1
----
19
-445252

skipif mysql # not compatible
query II rowsort label-2031
SELECT ALL + + 79 / + 4, - 36 + + - 22 + - 77 - ( 21 ) + - 59 * MAX ( ( + - 92 ) ) * - + 82 AS col1
----
19
-445252

query II rowsort
SELECT - + 12 * + + 97 * - 25, 54 col1
----
29100
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2033
SELECT 54 * - CASE + 78 WHEN + 19 * - COUNT( * ) * + ( - 83 ) + 54 + + + COUNT( * ) THEN - - CASE + + 96 WHEN 55 THEN - 31 * + + 46 END END + 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2033
SELECT 54 * - CASE + 78 WHEN + 19 * - COUNT ( * ) * + ( - 83 ) + 54 + + + COUNT ( * ) THEN - - CASE + + 96 WHEN 55 THEN - 31 * + + 46 END END + 7 AS col2
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2035
SELECT ALL + + ( + 31 ) * 66 * + + COUNT( + - 74 ) * - - CAST( NULL AS SIGNED ) + + COUNT( * ) * - SUM( - - 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2035
SELECT ALL + + ( + 31 ) * 66 * + + COUNT ( + - 74 ) * - - CAST ( NULL AS INTEGER ) + + COUNT ( * ) * - SUM ( - - 37 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2036
SELECT + + SUM( ALL + 77 ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-2036
SELECT + + SUM ( ALL + 77 ) AS col0
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2037
SELECT + CASE + COUNT( * ) WHEN - 10 THEN NULL WHEN - COUNT( * ) * + - 82 - + + ( 61 ) THEN + 94 * + 0 * - 0 * MIN( 29 ) ELSE - 73 * + - 44 * CAST( + ( - + 15 ) AS SIGNED ) + + 7 END AS col0
----
-48173

skipif mysql # not compatible
query I rowsort label-2037
SELECT + CASE + COUNT ( * ) WHEN - 10 THEN NULL WHEN - COUNT ( * ) * + - 82 - + + ( 61 ) THEN + 94 * + 0 * - 0 * MIN ( 29 ) ELSE - 73 * + - 44 * CAST ( + ( - + 15 ) AS INTEGER ) + + 7 END AS col0
----
-48173

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

query I rowsort
SELECT - 35 + + 12 AS col2
----
-23

query II rowsort
SELECT 7 * - 69 - + + 70 AS col1, + 93 + 6 AS col2
----
-553
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2041
SELECT - COUNT( * ) + - 24 * 47 * CAST( NULL AS SIGNED ) / + COUNT( + - COALESCE ( + 19, 81 * - 14 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2041
SELECT - COUNT ( * ) + - 24 * 47 * CAST ( NULL AS INTEGER ) / + COUNT ( + - COALESCE ( + 19, 81 * - 14 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2042
SELECT + ( + 48 ) - - 7 * CAST( + + 49 AS SIGNED ) + - 58 + 89 col1
----
422

skipif mysql # not compatible
query I rowsort label-2042
SELECT + ( + 48 ) - - 7 * CAST ( + + 49 AS INTEGER ) + - 58 + 89 col1
----
422

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2043
SELECT DISTINCT 98, - ( - + ( 58 ) ) * + + CAST( NULL AS SIGNED ) AS col2
----
98
NULL

skipif mysql # not compatible
query II rowsort label-2043
SELECT DISTINCT 98, - ( - + ( 58 ) ) * + + CAST ( NULL AS INTEGER ) AS col2
----
98
NULL

query I rowsort
SELECT ALL 51 * 13 AS col2
----
663

onlyif mysql # aggregate syntax: 
query I rowsort label-2045
SELECT MIN( ALL - - 83 ) + + + 83 * + ( 46 ) AS col2
----
3901

skipif mysql # not compatible
query I rowsort label-2045
SELECT MIN ( ALL - - 83 ) + + + 83 * + ( 46 ) AS col2
----
3901

query I rowsort
SELECT 86 + 24 AS col1
----
110

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2047
SELECT DISTINCT 8, + CAST( 25 AS SIGNED ) col2
----
8
25

skipif mysql # not compatible
query II rowsort label-2047
SELECT DISTINCT 8, + CAST ( 25 AS INTEGER ) col2
----
8
25

onlyif mysql # aggregate syntax: 
query II rowsort label-2048
SELECT 51 AS col2, 27 * - ( COUNT( * ) ) AS col2
----
51
-27

skipif mysql # not compatible
query II rowsort label-2048
SELECT 51 AS col2, 27 * - ( COUNT ( * ) ) AS col2
----
51
-27

query I rowsort
SELECT 11 + - 16 AS col0
----
-5

query I rowsort
SELECT 20 + + 31 - - 19 - - 93 AS col2
----
163

onlyif mysql # DIV for integer division: 
query I rowsort label-2051
SELECT 23 DIV + - 65 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2051
SELECT 23 / + - 65 AS col1
----
0

query I rowsort
SELECT ALL + - 56 + + 92
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2053
SELECT 72 * 12 * NULLIF ( CAST( NULL AS SIGNED ), - - 2 * + COALESCE ( - 90, + 4, + - COUNT( * ) + + 21 * ( + + 8 ) ) + + ( CASE - + 29 WHEN 44 + 59 + + 93 * - 33 + CASE 64 WHEN + - ( 46 ) * + 98 * - + 60 THEN NULL ELSE + - 15 END THEN + 32 * + COUNT( * ) + + 88 WHEN + 52 THEN NULL END ) + 5 + + COALESCE ( - 10, + 8 * - MIN( 64 ) * + COUNT( * ) + - 70 + COALESCE ( + 78, 27 * + + ( + CAST( NULL AS SIGNED ) ) ) + + 37 + + 33 ) - + CAST( NULL AS SIGNED ) ) col0, 60
----
NULL
60

skipif mysql # not compatible
query II rowsort label-2053
SELECT 72 * 12 * NULLIF ( CAST ( NULL AS INTEGER ), - - 2 * + COALESCE ( - 90, + 4, + - COUNT ( * ) + + 21 * ( + + 8 ) ) + + ( CASE - + 29 WHEN 44 + 59 + + 93 * - 33 + CASE 64 WHEN + - ( 46 ) * + 98 * - + 60 THEN NULL ELSE + - 15 END THEN + 32 * + COUNT ( * ) + + 88 WHEN + 52 THEN NULL END ) + 5 + + COALESCE ( - 10, + 8 * - MIN ( 64 ) * + COUNT ( * ) + - 70 + COALESCE ( + 78, 27 * + + ( + CAST ( NULL AS INTEGER ) ) ) + + 37 + + 33 ) - + CAST ( NULL AS INTEGER ) ) col0, 60
----
NULL
60

query I rowsort
SELECT ALL 10 + + 19 AS col1
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2055
SELECT 2 DIV - COUNT( * ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2055
SELECT 2 / - COUNT ( * ) AS col2
----
-2

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

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

query I rowsort
SELECT 51 - - - 70
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT + ( - - COUNT( + - 87 ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-2058
SELECT + ( - - COUNT ( + - 87 ) ) col1
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-2059
SELECT DISTINCT - 94 + + 83 - + 56 DIV + 59 AS col1, - 87 AS col0
----
-11
-87

skipif mysql # not compatible
query II rowsort label-2059
SELECT DISTINCT - 94 + + 83 - + 56 / + 59 AS col1, - 87 AS col0
----
-11
-87

query I rowsort
SELECT ( 37 ) * + 39 col2
----
1443

query I rowsort
SELECT + COALESCE ( + 73, - + 43 + 42 ) AS col2
----
73

onlyif mysql # DIV for integer division: 
query II rowsort label-2062
SELECT ALL - 18, CASE - 58 WHEN + 75 * - + 83 DIV 56 THEN 64 ELSE 77 * - 31 END * 33 DIV - 60 AS col2
----
-18
1312

skipif mysql # not compatible
query II rowsort label-2062
SELECT ALL - 18, CASE - 58 WHEN + 75 * - + 83 / 56 THEN 64 ELSE 77 * - 31 END * 33 / - 60 AS col2
----
-18
1312

query I rowsort
SELECT DISTINCT + 75 + - 45
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-2064
SELECT ALL - 7 AS col0, COUNT( * )
----
-7
1

skipif mysql # not compatible
query II rowsort label-2064
SELECT ALL - 7 AS col0, COUNT ( * )
----
-7
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2065
SELECT - + 72 DIV - 94 * 77 + + + ( - 87 ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-2065
SELECT - + 72 / - 94 * 77 + + + ( - 87 ) AS col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT ALL - COUNT( * ) - - + 9 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-2066
SELECT ALL - COUNT ( * ) - - + 9 AS col1
----
8

query I rowsort
SELECT DISTINCT - - 44 AS col0
----
44

query I rowsort
SELECT + 93 * + - 7 + 6 + - 65
----
-710

query I rowsort
SELECT ALL - CASE - + 78 WHEN + 81 * 81 * + 58 THEN - 98 / - 80 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2070
SELECT DISTINCT + 30 DIV - + 17
----
-1

skipif mysql # not compatible
query I rowsort label-2070
SELECT DISTINCT + 30 / - + 17
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2071
SELECT ALL - 76 - + NULLIF ( - 90, - + 64 * 0 * + 53 * 15 ) col2, 5 + + SUM( + + 52 )
----
14
57

skipif mysql # not compatible
query II rowsort label-2071
SELECT ALL - 76 - + NULLIF ( - 90, - + 64 * 0 * + 53 * 15 ) col2, 5 + + SUM ( + + 52 )
----
14
57

query I rowsort
SELECT 51 * + + 89
----
4539

onlyif mysql # DIV for integer division: 
query I rowsort label-2073
SELECT 57 DIV + 90 * - 12
----
0

skipif mysql # not compatible
query I rowsort label-2073
SELECT 57 / + 90 * - 12
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2074
SELECT 70 DIV - 57 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2074
SELECT 70 / - 57 AS col0
----
-1

query I rowsort
SELECT ALL + 13 * + - ( - 17 )
----
221

query I rowsort
SELECT DISTINCT + 4 * 69 AS col0
----
276

query I rowsort
SELECT DISTINCT + 41 * - ( + 42 ) AS col1
----
-1722

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2078
SELECT 50 * - AVG ( ALL 39 ) * 49 - - 8 + - CAST( NULL AS SIGNED ) * COUNT( * ) * - + 37 + 83 + + COUNT( * ) * + CASE + - COUNT( * ) WHEN - 60 + COUNT( * ) * + 30 + - 15 / - ( + 43 ) THEN - + 49 WHEN + COUNT( * ) * - 2 * + 73 THEN + - 76 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2078
SELECT 50 * - AVG ( ALL 39 ) * 49 - - 8 + - CAST ( NULL AS INTEGER ) * COUNT ( * ) * - + 37 + 83 + + COUNT ( * ) * + CASE + - COUNT ( * ) WHEN - 60 + COUNT ( * ) * + 30 + - 15 / - ( + 43 ) THEN - + 49 WHEN + COUNT ( * ) * - 2 * + 73 THEN + - 76 END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT DISTINCT - 68 + COUNT( * ) * - 60
----
-128

skipif mysql # not compatible
query I rowsort label-2080
SELECT DISTINCT - 68 + COUNT ( * ) * - 60
----
-128

onlyif mysql # aggregate syntax: 
query II rowsort label-2081
SELECT ALL MIN( + + 40 ), + 86 * + 51 AS col1
----
40
4386

skipif mysql # not compatible
query II rowsort label-2081
SELECT ALL MIN ( + + 40 ), + 86 * + 51 AS col1
----
40
4386

onlyif mysql # DIV for integer division: 
query I rowsort label-2082
SELECT DISTINCT - 69 + + ( 15 ) DIV + + 24
----
-69

skipif mysql # not compatible
query I rowsort label-2082
SELECT DISTINCT - 69 + + ( 15 ) / + + 24
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2083
SELECT ALL MIN( - 80 ) + - 12 DIV + 44
----
-80

skipif mysql # not compatible
query I rowsort label-2083
SELECT ALL MIN ( - 80 ) + - 12 / + 44
----
-80

query I rowsort
SELECT + 25 - 41 + 38 AS col1
----
22

query I rowsort
SELECT DISTINCT - - 75 + 69 AS col2
----
144

query I rowsort
SELECT ALL - ( + 24 ) + - ( + 46 ) - - 62 * 54 + + NULLIF ( - 21, + 1 / ( + 87 ) )
----
3257

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

skipif mysql # not compatible
query I rowsort label-2087
SELECT ALL 17 * + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 66 + 87 + - 21 AS col0
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-2089
SELECT - 74 - COUNT( * ) + 36 AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-2089
SELECT - 74 - COUNT ( * ) + 36 AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT - MIN( DISTINCT 19 ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-2090
SELECT - MIN ( DISTINCT 19 ) AS col0
----
-19

query I rowsort
SELECT ( 1 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2092
SELECT DISTINCT 29 DIV - COALESCE ( 88, - 40 ) + - + ( - + 7 )
----
7

skipif mysql # not compatible
query I rowsort label-2092
SELECT DISTINCT 29 / - COALESCE ( 88, - 40 ) + - + ( - + 7 )
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2093
SELECT ALL - + 36 * - COUNT( * ) col0, - COUNT( * ) * - 78 * 7 + + 85 * CAST( + 21 AS SIGNED ) + + + 42 - + - COUNT( 62 ) * + COUNT( * ) + - + 30 * - + COUNT( * ) + - 81 * - 19 + + 83 - - 31 * 77
----
36
6413

skipif mysql # not compatible
query II rowsort label-2093
SELECT ALL - + 36 * - COUNT ( * ) col0, - COUNT ( * ) * - 78 * 7 + + 85 * CAST ( + 21 AS INTEGER ) + + + 42 - + - COUNT ( 62 ) * + COUNT ( * ) + - + 30 * - + COUNT ( * ) + - 81 * - 19 + + 83 - - 31 * 77
----
36
6413

query I rowsort
SELECT + 77 * - 66
----
-5082

query I rowsort
SELECT - 16 + + - ( - 88 ) col1
----
72

query I rowsort
SELECT 14 * - ( - 61 ) AS col2
----
854

onlyif mysql # aggregate syntax: 
query I rowsort label-2097
SELECT + MIN( COALESCE ( + 29, + 89 ) ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-2097
SELECT + MIN ( COALESCE ( + 29, + 89 ) ) AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2098
SELECT DISTINCT 23 * - SUM( DISTINCT + 41 ) AS col1
----
-943

skipif mysql # not compatible
query I rowsort label-2098
SELECT DISTINCT 23 * - SUM ( DISTINCT + 41 ) AS col1
----
-943

query I rowsort
SELECT ALL + 17 * + + 76
----
1292

query I rowsort
SELECT DISTINCT 87 * 35
----
3045

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT ALL 22 * + MAX( - 14 ) * + 65
----
-20020

skipif mysql # not compatible
query I rowsort label-2101
SELECT ALL 22 * + MAX ( - 14 ) * + 65
----
-20020

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2102
SELECT DISTINCT + 18 AS col2, + 80 * CAST( - 20 AS SIGNED )
----
18
-1600

skipif mysql # not compatible
query II rowsort label-2102
SELECT DISTINCT + 18 AS col2, + 80 * CAST ( - 20 AS INTEGER )
----
18
-1600

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

skipif mysql # not compatible
query I rowsort label-2103
SELECT MIN ( ALL - ( - 47 ) )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2104
SELECT ALL - 54 + + + COUNT( * ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-2104
SELECT ALL - 54 + + + COUNT ( * ) AS col0
----
-53

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT 82 * 87 - ( COUNT( * ) ) AS col0
----
7133

skipif mysql # not compatible
query I rowsort label-2106
SELECT 82 * 87 - ( COUNT ( * ) ) AS col0
----
7133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2107
SELECT CAST( + 73 AS SIGNED ) * - - 84 * + 20 * - CAST( 85 AS SIGNED ) * - 45 + + COUNT( ALL - 10 ) * 49 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2107
SELECT CAST ( + 73 AS INTEGER ) * - - 84 * + 20 * - CAST ( 85 AS INTEGER ) * - 45 + + COUNT ( ALL - 10 ) * 49 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2108
SELECT ALL - 82 DIV - 27 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-2108
SELECT ALL - 82 / - 27 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2109
SELECT ALL MIN( ALL - 24 ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-2109
SELECT ALL MIN ( ALL - 24 ) AS col0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2110
SELECT - 57 col0, - CAST( + + 64 AS SIGNED )
----
-57
-64

skipif mysql # not compatible
query II rowsort label-2110
SELECT - 57 col0, - CAST ( + + 64 AS INTEGER )
----
-57
-64

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

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

query I rowsort
SELECT - 68 + 55 + + 67
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-2113
SELECT ALL - 82 DIV + 57 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2113
SELECT ALL - 82 / + 57 AS col0
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2115
SELECT - 44 + 74 + + COUNT( * ) * - + 82 AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-2115
SELECT - 44 + 74 + + COUNT ( * ) * - + 82 AS col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2116
SELECT DISTINCT + COUNT( * ) * SUM( + 45 )
----
45

skipif mysql # not compatible
query I rowsort label-2116
SELECT DISTINCT + COUNT ( * ) * SUM ( + 45 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2117
SELECT ALL - 56 + ( + 39 ) * NULLIF ( ( - MIN( - 24 ) ), + 65 + + NULLIF ( 70, 8 ) * - COUNT( * ) )
----
880

skipif mysql # not compatible
query I rowsort label-2117
SELECT ALL - 56 + ( + 39 ) * NULLIF ( ( - MIN ( - 24 ) ), + 65 + + NULLIF ( 70, 8 ) * - COUNT ( * ) )
----
880

query I rowsort
SELECT ALL + 92 + 85 AS col0
----
177

query I rowsort
SELECT - 8 * - 76
----
608

onlyif mysql # aggregate syntax: 
query I rowsort label-2120
SELECT - COUNT( * ) + 16 col1
----
15

skipif mysql # not compatible
query I rowsort label-2120
SELECT - COUNT ( * ) + 16 col1
----
15

query I rowsort
SELECT - 25 + - 51 AS col1
----
-76

query I rowsort
SELECT + 90 + + 81 AS col1
----
171

query I rowsort
SELECT DISTINCT ( 78 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT + CASE + 59 WHEN 33 THEN NULL WHEN + 50 * CASE + 9 WHEN - 52 + - 84 THEN AVG ( DISTINCT 4 ) * 97 - 62 WHEN + NULLIF ( 60, + 2 ) THEN NULL WHEN + 90 * - COUNT( * ) THEN NULL END THEN - 60 - - ( + NULLIF ( - 6, 62 * - 48 ) ) END + MAX( - 82 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2124
SELECT + CASE + 59 WHEN 33 THEN NULL WHEN + 50 * CASE + 9 WHEN - 52 + - 84 THEN AVG ( DISTINCT 4 ) * 97 - 62 WHEN + NULLIF ( 60, + 2 ) THEN NULL WHEN + 90 * - COUNT ( * ) THEN NULL END THEN - 60 - - ( + NULLIF ( - 6, 62 * - 48 ) ) END + MAX ( - 82 )
----
NULL

query I rowsort
SELECT DISTINCT + 75 - + 14
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2126
SELECT ALL COALESCE ( + ( CAST( NULL AS SIGNED ) ), COUNT( * ), + 54 * 72 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2126
SELECT ALL COALESCE ( + ( CAST ( NULL AS INTEGER ) ), COUNT ( * ), + 54 * 72 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT DISTINCT CASE 73 WHEN + 88 THEN 55 * COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2127
SELECT DISTINCT CASE 73 WHEN + 88 THEN 55 * COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2128
SELECT DISTINCT 83 - + COUNT( * ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-2128
SELECT DISTINCT 83 - + COUNT ( * ) AS col1
----
82

query I rowsort
SELECT ALL 42 * 91 col0
----
3822

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2131
SELECT ALL - NULLIF ( - ( - 63 ), - 23 ) DIV - 99 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2131
SELECT ALL - NULLIF ( - ( - 63 ), - 23 ) / - 99 AS col0
----
0

query I rowsort
SELECT ALL ( 26 )
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2133
SELECT - CASE NULLIF ( + 94, + COUNT( DISTINCT 77 ) ) WHEN COUNT( * ) + 99 THEN - 83 ELSE 71 DIV 84 + - 41 END AS col0
----
41

skipif mysql # not compatible
query I rowsort label-2133
SELECT - CASE NULLIF ( + 94, + COUNT ( DISTINCT 77 ) ) WHEN COUNT ( * ) + 99 THEN - 83 ELSE 71 / 84 + - 41 END AS col0
----
41

query I rowsort
SELECT - 36 + + 72
----
36

query I rowsort
SELECT - 94 - + 9 AS col0
----
-103

onlyif mysql # DIV for integer division: 
query I rowsort label-2136
SELECT + 0 DIV - 75
----
0

skipif mysql # not compatible
query I rowsort label-2136
SELECT + 0 / - 75
----
0

query I rowsort
SELECT - 12 * + 14
----
-168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2138
SELECT 48 DIV - COALESCE ( - 1, COUNT( * ) ) + 81 AS col2
----
129

skipif mysql # not compatible
query I rowsort label-2138
SELECT 48 / - COALESCE ( - 1, COUNT ( * ) ) + 81 AS col2
----
129

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT ALL 28 * - COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-2141
SELECT ALL 28 * - COUNT ( * )
----
-28

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2143
SELECT ALL COUNT( * ) * + 0 + + 74 * + 65
----
4810

skipif mysql # not compatible
query I rowsort label-2143
SELECT ALL COUNT ( * ) * + 0 + + 74 * + 65
----
4810

onlyif mysql # aggregate syntax: 
query I rowsort label-2144
SELECT - 58 * 22 + COUNT( * ) * 70
----
-1206

skipif mysql # not compatible
query I rowsort label-2144
SELECT - 58 * 22 + COUNT ( * ) * 70
----
-1206

query I rowsort
SELECT 86 * + 47 + ( 74 )
----
4116

query I rowsort
SELECT ALL 69 * - 88 AS col1
----
-6072

query I rowsort
SELECT - 80 + 72
----
-8

query I rowsort
SELECT CASE + 20 WHEN + 84 THEN - 7 WHEN - 23 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT 98 * 29
----
2842

query I rowsort
SELECT ALL + 92 * - 68 + + 4 AS col2
----
-6252

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2152
SELECT ALL 33 * + MAX( + 70 ) AS col2
----
2310

skipif mysql # not compatible
query I rowsort label-2152
SELECT ALL 33 * + MAX ( + 70 ) AS col2
----
2310

onlyif mysql # aggregate syntax: 
query I rowsort label-2153
SELECT DISTINCT MIN( - 69 ) * - COUNT( * ) + 81 * 60 AS col1
----
4929

skipif mysql # not compatible
query I rowsort label-2153
SELECT DISTINCT MIN ( - 69 ) * - COUNT ( * ) + 81 * 60 AS col1
----
4929

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

query I rowsort
SELECT ALL - 15 * + 39 + 16
----
-569

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2157
SELECT + COUNT( * ) * - 56 - 36 AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-2157
SELECT + COUNT ( * ) * - 56 - 36 AS col1
----
-92

query I rowsort
SELECT - + 45 * 26 AS col0
----
-1170

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

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

query I rowsort
SELECT + - 76 + 60 * + 57
----
3344

onlyif mysql # DIV for integer division: 
query I rowsort label-2161
SELECT DISTINCT - - 70 DIV 74 col1
----
0

skipif mysql # not compatible
query I rowsort label-2161
SELECT DISTINCT - - 70 / 74 col1
----
0

query I rowsort
SELECT DISTINCT 61 - 65 * 53
----
-3384

onlyif mysql # DIV for integer division: 
query I rowsort label-2163
SELECT ALL 66 DIV - 36
----
-1

skipif mysql # not compatible
query I rowsort label-2163
SELECT ALL 66 / - 36
----
-1

query I rowsort
SELECT ALL CASE - 90 WHEN 92 THEN 86 ELSE NULL END
----
NULL

query I rowsort
SELECT - 9 - + ( - 56 + - 61 ) col0
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-2166
SELECT DISTINCT - + COUNT( ALL + 6 ) * + 14 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-2166
SELECT DISTINCT - + COUNT ( ALL + 6 ) * + 14 AS col0
----
-14

query I rowsort
SELECT - 23 - + CASE + 18 WHEN 47 + - 97 THEN 41 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - 32 * 42 AS col0
----
-1344

query I rowsort
SELECT DISTINCT - - 28 * 85 AS col1
----
2380

onlyif mysql # aggregate syntax: 
query I rowsort label-2170
SELECT ALL - + 65 * MAX( DISTINCT - 29 * 90 )
----
169650

skipif mysql # not compatible
query I rowsort label-2170
SELECT ALL - + 65 * MAX ( DISTINCT - 29 * 90 )
----
169650

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2172
SELECT - 89 + CAST( NULL AS DECIMAL ) * ( NULLIF ( 16, 56 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2172
SELECT - 89 + CAST ( NULL AS REAL ) * ( NULLIF ( 16, 56 ) )
----
NULL

query I rowsort
SELECT ALL ( 56 ) AS col0
----
56

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2175
SELECT + + SUM( ALL + 28 ) - - 66
----
94

skipif mysql # not compatible
query I rowsort label-2175
SELECT + + SUM ( ALL + 28 ) - - 66
----
94

query I rowsort
SELECT - - 83 * + 71
----
5893

query I rowsort
SELECT + - ( 39 ) * 94 AS col1
----
-3666

onlyif mysql # aggregate syntax: 
query I rowsort label-2178
SELECT COUNT( ( 65 ) ) * 20 + 11
----
31

skipif mysql # not compatible
query I rowsort label-2178
SELECT COUNT ( ( 65 ) ) * 20 + 11
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2179
SELECT DISTINCT + 72 + - + 91 * COUNT( * ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-2179
SELECT DISTINCT + 72 + - + 91 * COUNT ( * ) AS col2
----
-19

query I rowsort
SELECT ALL - 17 + - 66
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-2181
SELECT DISTINCT 87 + + - 41 DIV 84
----
87

skipif mysql # not compatible
query I rowsort label-2181
SELECT DISTINCT 87 + + - 41 / 84
----
87

query I rowsort
SELECT ALL - 99 + - 78 - 69
----
-246

onlyif mysql # aggregate syntax: 
query I rowsort label-2183
SELECT 54 * + + MIN( DISTINCT 50 ) * - 83 + COUNT( * )
----
-224099

skipif mysql # not compatible
query I rowsort label-2183
SELECT 54 * + + MIN ( DISTINCT 50 ) * - 83 + COUNT ( * )
----
-224099

query I rowsort
SELECT 2 * + 92 * 69
----
12696

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2186
SELECT 0 * + + COUNT( * ) + + COUNT( 24 + 45 )
----
1

skipif mysql # not compatible
query I rowsort label-2186
SELECT 0 * + + COUNT ( * ) + + COUNT ( 24 + 45 )
----
1

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

skipif mysql # not compatible
query I rowsort label-2187
SELECT COUNT ( * ) / + ( 40 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT ALL 86 + - - 52 - - COUNT( * )
----
139

skipif mysql # not compatible
query I rowsort label-2188
SELECT ALL 86 + - - 52 - - COUNT ( * )
----
139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2189
SELECT CAST( NULL AS SIGNED ) / + - 69 - 58 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2189
SELECT CAST ( NULL AS INTEGER ) / + - 69 - 58 col1
----
NULL

query I rowsort
SELECT DISTINCT - 82 * - 53
----
4346

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

skipif mysql # not compatible
query I rowsort label-2191
SELECT ALL - 28 * + COUNT ( * ) AS col0
----
-28

query I rowsort
SELECT 1 + 0 * - 92
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2193
SELECT ALL - NULLIF ( - - COUNT( * ), + NULLIF ( + 74, - ( + 32 ) / 16 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2193
SELECT ALL - NULLIF ( - - COUNT ( * ), + NULLIF ( + 74, - ( + 32 ) / 16 ) )
----
-1

query I rowsort
SELECT ALL 50 + - 14 + - 96
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2195
SELECT DISTINCT CASE + 0 WHEN - 20 THEN COUNT( * ) WHEN 0 - ( ( 5 ) ) THEN + MIN( DISTINCT + 79 ) ELSE NULL END * 7
----
NULL

skipif mysql # not compatible
query I rowsort label-2195
SELECT DISTINCT CASE + 0 WHEN - 20 THEN COUNT ( * ) WHEN 0 - ( ( 5 ) ) THEN + MIN ( DISTINCT + 79 ) ELSE NULL END * 7
----
NULL

query I rowsort
SELECT 91 + + 39
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-2197
SELECT COUNT( - ( - 47 ) ) * 65 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-2197
SELECT COUNT ( - ( - 47 ) ) * 65 AS col0
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-2198
SELECT COALESCE ( - - 45, - 77 DIV 70 ) * 4 AS col0
----
180

skipif mysql # not compatible
query I rowsort label-2198
SELECT COALESCE ( - - 45, - 77 / 70 ) * 4 AS col0
----
180

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2200
SELECT ( - COUNT( ALL 27 ) ) - 73
----
-74

skipif mysql # not compatible
query I rowsort label-2200
SELECT ( - COUNT ( ALL 27 ) ) - 73
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2201
SELECT ALL NULLIF ( - - CASE 20 WHEN 62 + + SUM( DISTINCT 52 ) THEN - ( - 34 ) ELSE NULL END, COUNT( * ) * - 52 + 29 * + 34 ) * 12
----
NULL

skipif mysql # not compatible
query I rowsort label-2201
SELECT ALL NULLIF ( - - CASE 20 WHEN 62 + + SUM ( DISTINCT 52 ) THEN - ( - 34 ) ELSE NULL END, COUNT ( * ) * - 52 + 29 * + 34 ) * 12
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2202
SELECT + 10 * 84 + - 9 DIV 28
----
840

skipif mysql # not compatible
query I rowsort label-2202
SELECT + 10 * 84 + - 9 / 28
----
840

query I rowsort
SELECT + 27 + - 78
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT 2 * + + NULLIF ( + 37, + COUNT( * ) * + 85 + ( ( 19 ) ) * - 24 ) + 86
----
160

skipif mysql # not compatible
query I rowsort label-2204
SELECT 2 * + + NULLIF ( + 37, + COUNT ( * ) * + 85 + ( ( 19 ) ) * - 24 ) + 86
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT DISTINCT + MIN( - 57 ) - 33 AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-2205
SELECT DISTINCT + MIN ( - 57 ) - 33 AS col1
----
-90

query I rowsort
SELECT ALL 54 * - 2 AS col1
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT - 94 + 61 + + MAX( 41 + - 25 ) * ( 43 * - 83 ) AS col1
----
-57137

skipif mysql # not compatible
query I rowsort label-2207
SELECT - 94 + 61 + + MAX ( 41 + - 25 ) * ( 43 * - 83 ) AS col1
----
-57137

query I rowsort
SELECT DISTINCT 45 col1
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2209
SELECT DISTINCT + COALESCE ( - 67, ( + 91 ) + 3 ) * - CAST( 29 - + CAST( NULL AS SIGNED ) AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2209
SELECT DISTINCT + COALESCE ( - 67, ( + 91 ) + 3 ) * - CAST ( 29 - + CAST ( NULL AS INTEGER ) AS INTEGER ) col1
----
NULL

query I rowsort
SELECT + 30 * - 59 AS col2
----
-1770

query I rowsort
SELECT + 43 + 51 + 86 AS col2
----
180

query I rowsort
SELECT + 87 * + 14 + 56 AS col2
----
1274

query I rowsort
SELECT COALESCE ( ( 96 ), 89, 41 + + 24 * 55 ) + - 24
----
72

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2214
SELECT - CAST( - + COALESCE ( + 12, 92 ) AS SIGNED ) DIV 54
----
0

skipif mysql # not compatible
query I rowsort label-2214
SELECT - CAST ( - + COALESCE ( + 12, 92 ) AS INTEGER ) / 54
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2215
SELECT DISTINCT 84 + + NULLIF ( + 64, COUNT( * ) ) * + 57 AS col1
----
3732

skipif mysql # not compatible
query I rowsort label-2215
SELECT DISTINCT 84 + + NULLIF ( + 64, COUNT ( * ) ) * + 57 AS col1
----
3732

query I rowsort
SELECT DISTINCT - ( - 62 ) AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT 20 + CASE - ( - COUNT( + 79 ) ) WHEN - 73 THEN + ( - 23 ) WHEN COUNT( ALL 93 ) THEN - MAX( + 28 ) * - 8 ELSE NULL END col1
----
244

skipif mysql # not compatible
query I rowsort label-2217
SELECT 20 + CASE - ( - COUNT ( + 79 ) ) WHEN - 73 THEN + ( - 23 ) WHEN COUNT ( ALL 93 ) THEN - MAX ( + 28 ) * - 8 ELSE NULL END col1
----
244

onlyif mysql # aggregate syntax: 
query I rowsort label-2218
SELECT DISTINCT 64 + + 90 * + COUNT( ALL + 76 ) * 91 AS col2
----
8254

skipif mysql # not compatible
query I rowsort label-2218
SELECT DISTINCT 64 + + 90 * + COUNT ( ALL + 76 ) * 91 AS col2
----
8254

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

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

query I rowsort
SELECT 86 + + 7 AS col1
----
93

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2221
SELECT ( + + 61 ) * NULLIF ( - 98, - CAST( NULL AS DECIMAL ) - - 51 * COUNT( * ) ) + + ( - 36 ) AS col1
----
-6014

skipif mysql # not compatible
query I rowsort label-2221
SELECT ( + + 61 ) * NULLIF ( - 98, - CAST ( NULL AS REAL ) - - 51 * COUNT ( * ) ) + + ( - 36 ) AS col1
----
-6014

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2222
SELECT CAST( + - 82 AS SIGNED ) DIV + 99 * 94 col2
----
0

skipif mysql # not compatible
query I rowsort label-2222
SELECT CAST ( + - 82 AS INTEGER ) / + 99 * 94 col2
----
0

query I rowsort
SELECT ALL - 40 col2
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-2224
SELECT 23 DIV 26 + + 84 + COALESCE ( - 75, 58 DIV 14, 17 ) DIV 1
----
9

skipif mysql # not compatible
query I rowsort label-2224
SELECT 23 / 26 + + 84 + COALESCE ( - 75, 58 / 14, 17 ) / 1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2225
SELECT ALL + NULLIF ( + CAST( - - SUM( ALL 78 ) AS SIGNED ), - 24 ) + - CASE + ( COUNT( * ) ) + + 9 WHEN + 61 / COUNT( * ) THEN + 76 WHEN - 48 / + COUNT( * ) THEN - COUNT( ALL 41 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2225
SELECT ALL + NULLIF ( + CAST ( - - SUM ( ALL 78 ) AS INTEGER ), - 24 ) + - CASE + ( COUNT ( * ) ) + + 9 WHEN + 61 / COUNT ( * ) THEN + 76 WHEN - 48 / + COUNT ( * ) THEN - COUNT ( ALL 41 ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2226
SELECT DISTINCT + 41 + - - 30 - + 54 DIV - 27 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-2226
SELECT DISTINCT + 41 + - - 30 - + 54 / - 27 AS col2
----
73

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

skipif mysql # not compatible
query I rowsort label-2227
SELECT COUNT ( * ) - + 94 AS col0
----
-93

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT 91 * MIN( + 77 ) AS col1
----
7007

skipif mysql # not compatible
query I rowsort label-2229
SELECT 91 * MIN ( + 77 ) AS col1
----
7007

onlyif mysql # aggregate syntax: 
query II rowsort label-2230
SELECT ALL - 65, - COALESCE ( - COUNT( ( + ( - 49 ) ) ), 20, ( 57 ) ) AS col0
----
-65
1

skipif mysql # not compatible
query II rowsort label-2230
SELECT ALL - 65, - COALESCE ( - COUNT ( ( + ( - 49 ) ) ), 20, ( 57 ) ) AS col0
----
-65
1

query I rowsort
SELECT 24 * 83 + - 30
----
1962

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2233
SELECT ALL + ( - 32 ) * - COALESCE ( + 85, 68, - 82 DIV MIN( 56 ) - - CASE 15 WHEN 81 THEN 29 ELSE NULL END ) AS col2
----
2720

skipif mysql # not compatible
query I rowsort label-2233
SELECT ALL + ( - 32 ) * - COALESCE ( + 85, 68, - 82 / MIN ( 56 ) - - CASE 15 WHEN 81 THEN 29 ELSE NULL END ) AS col2
----
2720

query I rowsort
SELECT 16 * 21 * - + 1 col0
----
-336

query I rowsort
SELECT - 25 + - + 51 * 94 * 92 + 24 * 11
----
-440809

query II rowsort
SELECT DISTINCT - 89 AS col0, - ( - - 55 ) + + 75 AS col2
----
-89
20

query I rowsort
SELECT - 69 * + 15
----
-1035

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2239
SELECT ALL - + COALESCE ( 83, 60 + + 34 * - CASE + ( 92 ) WHEN - 34 THEN NULL WHEN 76 * - 13 + COALESCE ( - 69, + 46, - 40 ) THEN - 97 DIV 29 ELSE COUNT( * ) END, 31 - + 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-2239
SELECT ALL - + COALESCE ( 83, 60 + + 34 * - CASE + ( 92 ) WHEN - 34 THEN NULL WHEN 76 * - 13 + COALESCE ( - 69, + 46, - 40 ) THEN - 97 / 29 ELSE COUNT ( * ) END, 31 - + 83 )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT + COUNT( * ) - - 99 - 29 + - 30
----
41

skipif mysql # not compatible
query I rowsort label-2240
SELECT + COUNT ( * ) - - 99 - 29 + - 30
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2241
SELECT - 7 AS col2, - 26 * - - COALESCE ( 34, COUNT( * ) DIV NULLIF ( - COUNT( * ) * + 17, 30 * - ( ( 54 ) * - 22 ) ) )
----
-7
-884

skipif mysql # not compatible
query II rowsort label-2241
SELECT - 7 AS col2, - 26 * - - COALESCE ( 34, COUNT ( * ) / NULLIF ( - COUNT ( * ) * + 17, 30 * - ( ( 54 ) * - 22 ) ) )
----
-7
-884

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

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

query I rowsort
SELECT COALESCE ( ( ( 71 ) ), 99 ) * 77 + - 42
----
5425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2244
SELECT 35 + 73 + + + 92 + + CAST( NULL AS SIGNED ) * 14
----
NULL

skipif mysql # not compatible
query I rowsort label-2244
SELECT 35 + 73 + + + 92 + + CAST ( NULL AS INTEGER ) * 14
----
NULL

query II rowsort
SELECT + 30 AS col2, - 13
----
30
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2246
SELECT + COUNT( - - 23 ) * - 5
----
-5

skipif mysql # not compatible
query I rowsort label-2246
SELECT + COUNT ( - - 23 ) * - 5
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT ALL COALESCE ( - + COUNT( * ), - 80 + + 68 ) + 51
----
50

skipif mysql # not compatible
query I rowsort label-2247
SELECT ALL COALESCE ( - + COUNT ( * ), - 80 + + 68 ) + 51
----
50

query I rowsort
SELECT ALL 68 + + + 56 + - ( 60 )
----
64

query I rowsort
SELECT DISTINCT - ( + 44 ) + - 1 AS col0
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-2250
SELECT ALL - COUNT( * ), + 32 AS col1
----
-1
32

skipif mysql # not compatible
query II rowsort label-2250
SELECT ALL - COUNT ( * ), + 32 AS col1
----
-1
32

query I rowsort
SELECT - + ( 24 ) AS col1
----
-24

query I rowsort
SELECT DISTINCT 86 + - 66 + + + 59 + + 82 * + 59 * 83 AS col2
----
401633

query II rowsort
SELECT DISTINCT - 63 AS col1, 81 * + 30
----
-63
2430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2254
SELECT + - 42 + + 67 + - - CAST( + CASE 89 WHEN - 80 THEN NULL WHEN ( 7 ) THEN + 72 + COUNT( * ) END AS SIGNED ) + - 99 / 70
----
NULL

skipif mysql # not compatible
query I rowsort label-2254
SELECT + - 42 + + 67 + - - CAST ( + CASE 89 WHEN - 80 THEN NULL WHEN ( 7 ) THEN + 72 + COUNT ( * ) END AS INTEGER ) + - 99 / 70
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2255
SELECT + 5 + - - 58 DIV - 53 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-2255
SELECT + 5 + - - 58 / - 53 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT ALL 76 + - MAX( - 71 ) * + - 33 * + 0 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-2256
SELECT ALL 76 + - MAX ( - 71 ) * + - 33 * + 0 AS col2
----
76

query II rowsort
SELECT - 87 * - 3 col0, + 5 AS col0
----
261
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2258
SELECT - 5 DIV - + 58
----
0

skipif mysql # not compatible
query I rowsort label-2258
SELECT - 5 / - + 58
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2259
SELECT DISTINCT COUNT( * ) + - + 0
----
1

skipif mysql # not compatible
query I rowsort label-2259
SELECT DISTINCT COUNT ( * ) + - + 0
----
1

query I rowsort
SELECT ALL + 37 + + + 47
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2261
SELECT + CAST( - 60 AS SIGNED ) * + 21 * - 42 AS col1
----
52920

skipif mysql # not compatible
query I rowsort label-2261
SELECT + CAST ( - 60 AS INTEGER ) * + 21 * - 42 AS col1
----
52920

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT ALL - SUM( + 55 ) * + 14 AS col2
----
-770

skipif mysql # not compatible
query I rowsort label-2262
SELECT ALL - SUM ( + 55 ) * + 14 AS col2
----
-770

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2264
SELECT ALL 71 * - 10 - 18 + + - ( + COALESCE ( 80, COUNT( * ) ) ) + 89 * - 55
----
-5703

skipif mysql # not compatible
query I rowsort label-2264
SELECT ALL 71 * - 10 - 18 + + - ( + COALESCE ( 80, COUNT ( * ) ) ) + 89 * - 55
----
-5703

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT - 21 * + MIN( 18 )
----
-378

skipif mysql # not compatible
query I rowsort label-2265
SELECT - 21 * + MIN ( 18 )
----
-378

query I rowsort
SELECT + 33 + - + 81
----
-48

query I rowsort
SELECT ( 59 )
----
59

query I rowsort
SELECT ALL + 65 * ( + + 80 ) AS col1
----
5200

query I rowsort
SELECT - 27 * ( + 75 ) + 90 * - 84 AS col1
----
-9585

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2270
SELECT COALESCE ( + 16, 52 + 65, - CAST( NULL AS SIGNED ), - 57 )
----
16

skipif mysql # not compatible
query I rowsort label-2270
SELECT COALESCE ( + 16, 52 + 65, - CAST ( NULL AS INTEGER ), - 57 )
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-2271
SELECT - 74 DIV - 62
----
1

skipif mysql # not compatible
query I rowsort label-2271
SELECT - 74 / - 62
----
1

query I rowsort
SELECT 65 * 97 + 49
----
6354

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT NULLIF ( + - 58, + ( 58 ) + - MIN( DISTINCT + 2 ) ) col1
----
-58

skipif mysql # not compatible
query I rowsort label-2273
SELECT NULLIF ( + - 58, + ( 58 ) + - MIN ( DISTINCT + 2 ) ) col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT ALL SUM( DISTINCT + + 32 ) * - + 32 - - 50 AS col1
----
-974

skipif mysql # not compatible
query I rowsort label-2274
SELECT ALL SUM ( DISTINCT + + 32 ) * - + 32 - - 50 AS col1
----
-974

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2275
SELECT - CAST( + 1 AS SIGNED ) DIV - COUNT( * ) + - 83
----
-82

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

query I rowsort
SELECT NULLIF ( - 79, 18 ) AS col2
----
-79

query I rowsort
SELECT - - 97 + 84
----
181

onlyif mysql # aggregate syntax: 
query I rowsort label-2278
SELECT 48 * - MIN( - 74 ) + 88 - - 39
----
3679

skipif mysql # not compatible
query I rowsort label-2278
SELECT 48 * - MIN ( - 74 ) + 88 - - 39
----
3679

onlyif mysql # aggregate syntax: 
query I rowsort label-2279
SELECT - 29 + - 25 + 33 - COUNT( * ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-2279
SELECT - 29 + - 25 + 33 - COUNT ( * ) AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT + MIN( ALL 38 ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-2280
SELECT + MIN ( ALL 38 ) AS col1
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2281
SELECT DISTINCT + - CAST( + COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-2281
SELECT DISTINCT + - CAST ( + COUNT ( * ) AS INTEGER )
----
-1

query I rowsort
SELECT - 42 + - 12 + + 7 col0
----
-47

query I rowsort
SELECT + 12 - + 87
----
-75

query I rowsort
SELECT + - 4 col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2285
SELECT + COUNT( * ) + - 7 * + - 48 * 28 * + 89 + - NULLIF ( + 56 + 59, 11 ) * 23 AS col0
----
834668

skipif mysql # not compatible
query I rowsort label-2285
SELECT + COUNT ( * ) + - 7 * + - 48 * 28 * + 89 + - NULLIF ( + 56 + 59, 11 ) * 23 AS col0
----
834668

onlyif mysql # aggregate syntax: 
query II rowsort label-2286
SELECT + + ( + COUNT( * ) ), - 23 + + 39 AS col1
----
1
16

skipif mysql # not compatible
query II rowsort label-2286
SELECT + + ( + COUNT ( * ) ), - 23 + + 39 AS col1
----
1
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2287
SELECT - 69 DIV + SUM( ALL - 96 ) + + 51 AS col2
----
51

skipif mysql # not compatible
query I rowsort label-2287
SELECT - 69 / + SUM ( ALL - 96 ) + + 51 AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2288
SELECT ALL - - 15 * SUM( + + 54 ) * ( COUNT( * ) ) + 29 AS col0
----
839

skipif mysql # not compatible
query I rowsort label-2288
SELECT ALL - - 15 * SUM ( + + 54 ) * ( COUNT ( * ) ) + 29 AS col0
----
839

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2289
SELECT DISTINCT + 68 * + COUNT( + + ( + 48 ) ) DIV 83 + 1 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2289
SELECT DISTINCT + 68 * + COUNT ( + + ( + 48 ) ) / 83 + 1 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2290
SELECT ALL SUM( ALL - 14 ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-2290
SELECT ALL SUM ( ALL - 14 ) AS col0
----
-14

query I rowsort
SELECT ALL - 41 + - + 93
----
-134

query I rowsort
SELECT DISTINCT - COALESCE ( 55, 81 )
----
-55

query I rowsort
SELECT + + 71 + - + 14 * + 63
----
-811

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2294
SELECT - COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) DIV 20 + + ( - 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-2294
SELECT - COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) / 20 + + ( - 2 )
----
-2

query I rowsort
SELECT + 88 + + - 89 + 64 + + - 17 AS col2
----
46

query I rowsort
SELECT - ( 49 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2297
SELECT DISTINCT 11 + - COUNT( * ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-2297
SELECT DISTINCT 11 + - COUNT ( * ) AS col2
----
10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2298
SELECT ALL CAST( + - CASE - ( + COUNT( * ) ) WHEN + - COALESCE ( COUNT( * ), + 97 ) THEN NULL ELSE - COUNT( * ) END AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2298
SELECT ALL CAST ( + - CASE - ( + COUNT ( * ) ) WHEN + - COALESCE ( COUNT ( * ), + 97 ) THEN NULL ELSE - COUNT ( * ) END AS REAL ) AS col2
----
NULL

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

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

query I rowsort
SELECT + 45 + + 61
----
106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2301
SELECT DISTINCT CAST( COALESCE ( + - 63, - 19 * 47 + 82 ) AS SIGNED ) - - 85
----
22

skipif mysql # not compatible
query I rowsort label-2301
SELECT DISTINCT CAST ( COALESCE ( + - 63, - 19 * 47 + 82 ) AS INTEGER ) - - 85
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2302
SELECT - COALESCE ( - 71, COUNT( * ) + - + 88 )
----
71

skipif mysql # not compatible
query I rowsort label-2302
SELECT - COALESCE ( - 71, COUNT ( * ) + - + 88 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT + SUM( - + 60 ) * - 53 AS col1
----
3180

skipif mysql # not compatible
query I rowsort label-2303
SELECT + SUM ( - + 60 ) * - 53 AS col1
----
3180

query II rowsort
SELECT ALL 97 AS col1, + 11
----
97
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2305
SELECT + 62 * + SUM( DISTINCT - + 53 ) col0
----
-3286

skipif mysql # not compatible
query I rowsort label-2305
SELECT + 62 * + SUM ( DISTINCT - + 53 ) col0
----
-3286

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2307
SELECT ALL 20 DIV - ( - 35 )
----
0

skipif mysql # not compatible
query I rowsort label-2307
SELECT ALL 20 / - ( - 35 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT ALL - - MIN( - - 81 ) * + 23 + + ( + + 47 ) + - 33 AS col0
----
1877

skipif mysql # not compatible
query I rowsort label-2308
SELECT ALL - - MIN ( - - 81 ) * + 23 + + ( + + 47 ) + - 33 AS col0
----
1877

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2309
SELECT ALL - 93 DIV + ( SUM( 37 ) ) + + 81
----
79

skipif mysql # not compatible
query I rowsort label-2309
SELECT ALL - 93 / + ( SUM ( 37 ) ) + + 81
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-2310
SELECT + - 39 AS col1, COUNT( * ) * - - CASE - COUNT( * ) WHEN + 2 THEN + NULLIF ( + MAX( 67 ), 22 ) END AS col2
----
-39
NULL

skipif mysql # not compatible
query II rowsort label-2310
SELECT + - 39 AS col1, COUNT ( * ) * - - CASE - COUNT ( * ) WHEN + 2 THEN + NULLIF ( + MAX ( 67 ), 22 ) END AS col2
----
-39
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2311
SELECT ALL + 86 DIV + + 30 + - SUM( - 46 ) * - 63 * - 77 col2
----
223148

skipif mysql # not compatible
query I rowsort label-2311
SELECT ALL + 86 / + + 30 + - SUM ( - 46 ) * - 63 * - 77 col2
----
223148

query I rowsort
SELECT + + 91 * + 5
----
455

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2313
SELECT + CAST( NULL AS SIGNED ) * 38 - - 38 + + 71 + 84 * 22 * + 45 / COUNT( * ) + - 94 * + 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2313
SELECT + CAST ( NULL AS INTEGER ) * 38 - - 38 + + 71 + 84 * 22 * + 45 / COUNT ( * ) + - 94 * + 85 AS col1
----
NULL

query I rowsort
SELECT + 40 * 72 AS col0
----
2880

onlyif mysql # aggregate syntax: 
query I rowsort label-2315
SELECT + 15 * - - 60 + COUNT( * ) AS col0
----
901

skipif mysql # not compatible
query I rowsort label-2315
SELECT + 15 * - - 60 + COUNT ( * ) AS col0
----
901

query I rowsort
SELECT ALL + NULLIF ( - ( - 79 ), - 78 ) + 53 + 89 * + 44
----
4048

onlyif mysql # aggregate syntax: 
query I rowsort label-2317
SELECT + ( - SUM( DISTINCT 41 ) ) col1
----
-41

skipif mysql # not compatible
query I rowsort label-2317
SELECT + ( - SUM ( DISTINCT 41 ) ) col1
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-2318
SELECT ALL + 56 + 16 + + 74 AS col1, + COUNT( * ) AS col2
----
146
1

skipif mysql # not compatible
query II rowsort label-2318
SELECT ALL + 56 + 16 + + 74 AS col1, + COUNT ( * ) AS col2
----
146
1

query I rowsort
SELECT ALL 46 + - - 44
----
90

query I rowsort
SELECT ALL - - ( + - 13 ) + + 59
----
46

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT + 12 * - - CASE 34 WHEN - COALESCE ( + 85, 50 + + COALESCE ( + 62 + 55, + 7, 98 / + 43 - 92 ), NULLIF ( ( 90 ), + 44 * ( MIN( 29 ) ) ) * + ( + NULLIF ( 74, + 50 / 20 ) ), 87 ) THEN 91 WHEN - 31 * MIN( + 85 * - 85 ) THEN NULL WHEN 7 THEN + ( 26 ) ELSE - 24 END + + 36 AS col0
----
-252

skipif mysql # not compatible
query I rowsort label-2322
SELECT + 12 * - - CASE 34 WHEN - COALESCE ( + 85, 50 + + COALESCE ( + 62 + 55, + 7, 98 / + 43 - 92 ), NULLIF ( ( 90 ), + 44 * ( MIN ( 29 ) ) ) * + ( + NULLIF ( 74, + 50 / 20 ) ), 87 ) THEN 91 WHEN - 31 * MIN ( + 85 * - 85 ) THEN NULL WHEN 7 THEN + ( 26 ) ELSE - 24 END + + 36 AS col0
----
-252

query I rowsort
SELECT + 56 + + - 20
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT SUM( + NULLIF ( 57, 13 ) ) + - 6 * ( - 20 ) AS col0
----
177

skipif mysql # not compatible
query I rowsort label-2324
SELECT SUM ( + NULLIF ( 57, 13 ) ) + - 6 * ( - 20 ) AS col0
----
177

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2325
SELECT ALL - COUNT( * ) - + 21 DIV - 40
----
-1

skipif mysql # not compatible
query I rowsort label-2325
SELECT ALL - COUNT ( * ) - + 21 / - 40
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2326
SELECT 85 * - ( + 35 ) DIV COUNT( * ) * + 50 * - 29 col2
----
4313750

skipif mysql # not compatible
query I rowsort label-2326
SELECT 85 * - ( + 35 ) / COUNT ( * ) * + 50 * - 29 col2
----
4313750

onlyif mysql # aggregate syntax: 
query I rowsort label-2327
SELECT ALL - 64 * MAX( ALL - 13 ) AS col0
----
832

skipif mysql # not compatible
query I rowsort label-2327
SELECT ALL - 64 * MAX ( ALL - 13 ) AS col0
----
832

onlyif mysql # aggregate syntax: 
query I rowsort label-2328
SELECT DISTINCT - NULLIF ( ( - ( - + 23 ) ), ( + + COUNT( ALL 42 ) ) + COUNT( ALL 25 ) ) * + 58
----
-1334

skipif mysql # not compatible
query I rowsort label-2328
SELECT DISTINCT - NULLIF ( ( - ( - + 23 ) ), ( + + COUNT ( ALL 42 ) ) + COUNT ( ALL 25 ) ) * + 58
----
-1334

query I rowsort
SELECT DISTINCT - 55 - + - 25
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-2330
SELECT ALL 27 AS col2, - MIN( DISTINCT + 41 ) + COUNT( * )
----
27
-40

skipif mysql # not compatible
query II rowsort label-2330
SELECT ALL 27 AS col2, - MIN ( DISTINCT + 41 ) + COUNT ( * )
----
27
-40

query I rowsort
SELECT 4 - - 65 AS col0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2332
SELECT ALL - 37 * + ( + + CAST( - 52 AS SIGNED ) ) * - + 41 / - 31 * NULLIF ( - CAST( NULL AS SIGNED ), 22 ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2332
SELECT ALL - 37 * + ( + + CAST ( - 52 AS INTEGER ) ) * - + 41 / - 31 * NULLIF ( - CAST ( NULL AS INTEGER ), 22 ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2333
SELECT DISTINCT 57 DIV + 43
----
1

skipif mysql # not compatible
query I rowsort label-2333
SELECT DISTINCT 57 / + 43
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-2334
SELECT DISTINCT 35 AS col2, - 56 DIV 99
----
35
0

skipif mysql # not compatible
query II rowsort label-2334
SELECT DISTINCT 35 AS col2, - 56 / 99
----
35
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2335
SELECT 30 DIV - 38
----
0

skipif mysql # not compatible
query I rowsort label-2335
SELECT 30 / - 38
----
0

query II rowsort
SELECT 1 * + 16 col2, 19
----
16
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT COUNT( * ) + + + COUNT( * ) col1
----
2

skipif mysql # not compatible
query I rowsort label-2337
SELECT COUNT ( * ) + + + COUNT ( * ) col1
----
2

query I rowsort
SELECT ( + 35 ) - + 6 col2
----
29

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT ALL SUM( ALL - 64 ) * + NULLIF ( + 90, + + 6 ) * 26 + 92 AS col2
----
-149668

skipif mysql # not compatible
query I rowsort label-2340
SELECT ALL SUM ( ALL - 64 ) * + NULLIF ( + 90, + + 6 ) * 26 + 92 AS col2
----
-149668

query I rowsort
SELECT DISTINCT 55 col1
----
55

query I rowsort
SELECT ALL 50 * + ( 33 )
----
1650

onlyif mysql # aggregate syntax: 
query I rowsort label-2343
SELECT DISTINCT - NULLIF ( + + 55, 29 - - 32 / + 63 ) * - COUNT( * ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-2343
SELECT DISTINCT - NULLIF ( + + 55, 29 - - 32 / + 63 ) * - COUNT ( * ) AS col0
----
55

query I rowsort
SELECT DISTINCT 68 * + ( + + 25 )
----
1700

query I rowsort
SELECT DISTINCT 79 + - 32
----
47

query I rowsort
SELECT ALL + 1 + - 68 AS col0
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2347
SELECT + COUNT( DISTINCT - 69 ) + + CAST( NULL AS SIGNED ) + + CAST( + + CAST( + + 4 AS SIGNED ) AS SIGNED ) + MAX( 0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2347
SELECT + COUNT ( DISTINCT - 69 ) + + CAST ( NULL AS INTEGER ) + + CAST ( + + CAST ( + + 4 AS INTEGER ) AS INTEGER ) + MAX ( 0 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2348
SELECT - - 74 * - + ( 33 ) * 46 + - - ( 80 ) / + CAST( NULL AS SIGNED ) + + 40 + 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2348
SELECT - - 74 * - + ( 33 ) * 46 + - - ( 80 ) / + CAST ( NULL AS INTEGER ) + + 40 + 14 AS col0
----
NULL

query I rowsort
SELECT - ( + 57 ) col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2350
SELECT ALL - + CASE - 84 WHEN + + 65 * 36 THEN - 85 / + COUNT( * ) + NULLIF ( 56 - + MIN( 16 ), + MIN( 68 ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2350
SELECT ALL - + CASE - 84 WHEN + + 65 * 36 THEN - 85 / + COUNT ( * ) + NULLIF ( 56 - + MIN ( 16 ), + MIN ( 68 ) ) END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2351
SELECT - 83 DIV + 55 + 57 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-2351
SELECT - 83 / + 55 + 57 AS col1
----
56

query II rowsort
SELECT ALL - 43 AS col0, + 66 AS col0
----
-43
66

query I rowsort
SELECT ALL 77 + + 55 * - + 74 AS col1
----
-3993

query I rowsort
SELECT - 47 + - 64 * - + 77
----
4881

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2355
SELECT ALL 91 + + - MAX( + 70 ) + + + 87 DIV COUNT( * ) + + 81 + + 61 * + 74
----
4703

skipif mysql # not compatible
query I rowsort label-2355
SELECT ALL 91 + + - MAX ( + 70 ) + + + 87 / COUNT ( * ) + + 81 + + 61 * + 74
----
4703

onlyif mysql # aggregate syntax: 
query I rowsort label-2356
SELECT ALL 30 + - + COALESCE ( - - CASE 6 WHEN - 57 THEN + COUNT( * ) * + 23 + + 48 * 12 END, - COUNT( * ) + 34 ) * - 81 AS col1
----
2703

skipif mysql # not compatible
query I rowsort label-2356
SELECT ALL 30 + - + COALESCE ( - - CASE 6 WHEN - 57 THEN + COUNT ( * ) * + 23 + + 48 * 12 END, - COUNT ( * ) + 34 ) * - 81 AS col1
----
2703

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2358
SELECT DISTINCT - 57 DIV + 49 - 25 AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-2358
SELECT DISTINCT - 57 / + 49 - 25 AS col0
----
-26

query I rowsort
SELECT ALL + + 79 + - - 96 AS col0
----
175

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

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

query I rowsort
SELECT ALL - 24 * - 91 * 45
----
98280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2362
SELECT ALL CAST( - + 92 AS SIGNED ) * - 99 + + COUNT( * ) + 88 + - 25 / + 54 / CASE 77 / - 68 WHEN SUM( DISTINCT - 48 ) THEN + COUNT( * ) WHEN 84 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2362
SELECT ALL CAST ( - + 92 AS INTEGER ) * - 99 + + COUNT ( * ) + 88 + - 25 / + 54 / CASE 77 / - 68 WHEN SUM ( DISTINCT - 48 ) THEN + COUNT ( * ) WHEN 84 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2363
SELECT MAX( ALL 36 ) + + 76 AS col1
----
112

skipif mysql # not compatible
query I rowsort label-2363
SELECT MAX ( ALL 36 ) + + 76 AS col1
----
112

query I rowsort
SELECT DISTINCT - 30 - - 60 AS col0
----
30

query I rowsort
SELECT ALL 58 * - - 79 * + 29 * + 98 * + ( - 53 ) AS col2
----
-690168332

onlyif mysql # aggregate syntax: 
query I rowsort label-2366
SELECT 4 + CASE - 62 WHEN - MIN( 38 ) + 52 THEN 73 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2366
SELECT 4 + CASE - 62 WHEN - MIN ( 38 ) + 52 THEN 73 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2367
SELECT 14 + MIN( - + 42 ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-2367
SELECT 14 + MIN ( - + 42 ) AS col0
----
-28

query I rowsort
SELECT ALL - 5 * - 1
----
5

query I rowsort
SELECT 20 * 72 AS col0
----
1440

query II rowsort
SELECT 10 * + - 33 AS col0, - 12
----
-330
-12

query I rowsort
SELECT 46 * - 29
----
-1334

query I rowsort
SELECT DISTINCT - 88 * - + 29
----
2552

onlyif mysql # aggregate syntax: 
query I rowsort label-2373
SELECT ALL + ( - - 79 ) + COUNT( * ) - - - ( + 19 ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-2373
SELECT ALL + ( - - 79 ) + COUNT ( * ) - - - ( + 19 ) AS col0
----
61

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

skipif mysql # not compatible
query I rowsort label-2374
SELECT ALL + COUNT ( * ) * 31 / ( - + 6 ) AS col0
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-2375
SELECT 36 + + - 33 AS col2, + 12 * - 23 + + COUNT( * ) + + - 30 AS col1
----
3
-305

skipif mysql # not compatible
query II rowsort label-2375
SELECT 36 + + - 33 AS col2, + 12 * - 23 + + COUNT ( * ) + + - 30 AS col1
----
3
-305

onlyif mysql # aggregate syntax: 
query I rowsort label-2376
SELECT DISTINCT CASE + COUNT( * ) WHEN - 84 * - 53 + 82 THEN 57 + - 68 + - ( + COUNT( * ) ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2376
SELECT DISTINCT CASE + COUNT ( * ) WHEN - 84 * - 53 + 82 THEN 57 + - 68 + - ( + COUNT ( * ) ) ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2377
SELECT ALL - COUNT( * ) + CAST( - - COUNT( * ) AS SIGNED ) * - 34 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-2377
SELECT ALL - COUNT ( * ) + CAST ( - - COUNT ( * ) AS INTEGER ) * - 34 AS col0
----
-35

query II rowsort
SELECT 26 * - 90 AS col0, 47 * - 96
----
-2340
-4512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2379
SELECT 29 - 55 + + + CAST( - - COUNT( * ) AS SIGNED ) * 87 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-2379
SELECT 29 - 55 + + + CAST ( - - COUNT ( * ) AS INTEGER ) * 87 AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2380
SELECT - CASE - - COALESCE ( + MIN( - 76 ), - - 31 * - 64, - 24 ) WHEN 43 / + 81 THEN 6 * 38 - - 86 * 95 ELSE NULL END * 94 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2380
SELECT - CASE - - COALESCE ( + MIN ( - 76 ), - - 31 * - 64, - 24 ) WHEN 43 / + 81 THEN 6 * 38 - - 86 * 95 ELSE NULL END * 94 col0
----
NULL

query I rowsort
SELECT DISTINCT - + 14 + + 76 - 20 * + 54 AS col1
----
-1018

query I rowsort
SELECT DISTINCT - 34 * + 50 + 11 col2
----
-1689

query I rowsort
SELECT DISTINCT + 47 * 51
----
2397

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2384
SELECT - - 83 * COUNT( * ) DIV - 59
----
-1

skipif mysql # not compatible
query I rowsort label-2384
SELECT - - 83 * COUNT ( * ) / - 59
----
-1

query I rowsort
SELECT DISTINCT + + 84 AS col1
----
84

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

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

query II rowsort
SELECT ALL + ( + - 59 ), + 12 AS col1
----
-59
12

query I rowsort
SELECT + 94 * + 82
----
7708

onlyif mysql # aggregate syntax: 
query I rowsort label-2389
SELECT DISTINCT - 90 * - 3 * COUNT( * ) - 80 - + + ( - 55 ) + - - 53 * + SUM( 81 ) * - 87 * + 60 AS col1
----
-22409215

skipif mysql # not compatible
query I rowsort label-2389
SELECT DISTINCT - 90 * - 3 * COUNT ( * ) - 80 - + + ( - 55 ) + - - 53 * + SUM ( 81 ) * - 87 * + 60 AS col1
----
-22409215

query I rowsort
SELECT + 52 * - 93 - + 52 AS col1
----
-4888

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2391
SELECT ALL 91 DIV COALESCE ( + COUNT( ALL + - 25 ), + + 29, + - ( + + COUNT( * ) ) * 29 + - COUNT( * ) ) + - 29 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-2391
SELECT ALL 91 / COALESCE ( + COUNT ( ALL + - 25 ), + + 29, + - ( + + COUNT ( * ) ) * 29 + - COUNT ( * ) ) + - 29 AS col2
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2392
SELECT DISTINCT 9 * - 75, - CAST( - COUNT( * ) AS SIGNED ) + - - 23 AS col1
----
-675
24

skipif mysql # not compatible
query II rowsort label-2392
SELECT DISTINCT 9 * - 75, - CAST ( - COUNT ( * ) AS INTEGER ) + - - 23 AS col1
----
-675
24

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

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

query I rowsort
SELECT + 5 * - 21 * - 8
----
840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2395
SELECT ALL COUNT( * ) DIV + 34 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2395
SELECT ALL COUNT ( * ) / + 34 AS col1
----
0

query I rowsort
SELECT + ( 53 ) + - - ( 94 ) * + + 18
----
1745

onlyif mysql # DIV for integer division: 
query I rowsort label-2397
SELECT + 23 DIV 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2397
SELECT + 23 / 82 AS col0
----
0

query II rowsort
SELECT + 69 + + - 50 + NULLIF ( + 93, + 56 + + 23 ) AS col0, + 17 AS col0
----
112
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT + 45 + MIN( - 4 ) - 97 AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-2399
SELECT + 45 + MIN ( - 4 ) - 97 AS col0
----
-56

query I rowsort
SELECT ALL - ( + + 70 ) + 23 AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT + 39 - 34 - - + SUM( ALL + 89 ) * - 1 * COUNT( ALL - + 21 )
----
-84

skipif mysql # not compatible
query I rowsort label-2401
SELECT + 39 - 34 - - + SUM ( ALL + 89 ) * - 1 * COUNT ( ALL - + 21 )
----
-84

query I rowsort
SELECT - 15 + - - 8
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2403
SELECT ALL NULLIF ( + 93, + ( + CAST( - 5 AS SIGNED ) ) )
----
93

skipif mysql # not compatible
query I rowsort label-2403
SELECT ALL NULLIF ( + 93, + ( + CAST ( - 5 AS INTEGER ) ) )
----
93

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

skipif mysql # not compatible
query I rowsort label-2404
SELECT - 33 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2405
SELECT ALL COUNT( * ) + - NULLIF ( 55, - 46 ) - - + 85 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-2405
SELECT ALL COUNT ( * ) + - NULLIF ( 55, - 46 ) - - + 85 AS col2
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-2406
SELECT ALL 97 + + 28 * + 2, - CASE WHEN NOT COUNT( * ) > - COUNT( * ) THEN + - 17 END AS col2
----
153
NULL

skipif mysql # not compatible
query II rowsort label-2406
SELECT ALL 97 + + 28 * + 2, - CASE WHEN NOT COUNT ( * ) > - COUNT ( * ) THEN + - 17 END AS col2
----
153
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2407
SELECT ALL + ( 88 ) + - 70 + + ( - - ( 81 ) ) col1, + COUNT( - 27 ) - COALESCE ( - 69, - COALESCE ( - 96, 97, 2 * 84 ) )
----
99
70

skipif mysql # not compatible
query II rowsort label-2407
SELECT ALL + ( 88 ) + - 70 + + ( - - ( 81 ) ) col1, + COUNT ( - 27 ) - COALESCE ( - 69, - COALESCE ( - 96, 97, 2 * 84 ) )
----
99
70

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2408
SELECT + 79 + + CAST( NULL AS DECIMAL ) * - COUNT( * ) - 91 * COUNT( * ) + + + 50 * - - 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2408
SELECT + 79 + + CAST ( NULL AS REAL ) * - COUNT ( * ) - 91 * COUNT ( * ) + + + 50 * - - 92 AS col2
----
NULL

query I rowsort
SELECT + 97 * + 68
----
6596

query I rowsort
SELECT - 61 - + 45
----
-106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2411
SELECT ALL NULLIF ( MAX( ALL + 28 ), 40 ) col2, - CAST( NULL AS SIGNED )
----
28
NULL

skipif mysql # not compatible
query II rowsort label-2411
SELECT ALL NULLIF ( MAX ( ALL + 28 ), 40 ) col2, - CAST ( NULL AS INTEGER )
----
28
NULL

query II rowsort
SELECT - 15, - 46 - 5 * + 73 AS col0
----
-15
-411

query I rowsort
SELECT - - COALESCE ( - 10, - 4 * + - 23 + - 73 * + - 84 ) AS col0
----
-10

query I rowsort
SELECT ALL + 18 * - 98 AS col1
----
-1764

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2415
SELECT - + 12 - - CASE + 44 WHEN - + COUNT( * ) + 59 + - 14 THEN + - 20 + + 15 + 43 DIV - 18 END - 98 DIV - ( 98 )
----
-18

skipif mysql # not compatible
query I rowsort label-2415
SELECT - + 12 - - CASE + 44 WHEN - + COUNT ( * ) + 59 + - 14 THEN + - 20 + + 15 + 43 / - 18 END - 98 / - ( 98 )
----
-18

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

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

query I rowsort
SELECT DISTINCT + 90 * + 43
----
3870

query II rowsort
SELECT - - 79 + 66 + + 87, ( 53 ) + 10 AS col1
----
232
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2419
SELECT + CAST( + + 90 AS SIGNED )
----
90

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2420
SELECT - MIN( DISTINCT 94 ) + - - MIN( DISTINCT NULLIF ( + CAST( 97 AS SIGNED ), - - 42 ) ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-2420
SELECT - MIN ( DISTINCT 94 ) + - - MIN ( DISTINCT NULLIF ( + CAST ( 97 AS INTEGER ), - - 42 ) ) AS col1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2421
SELECT + COALESCE ( - 69, 61 DIV + COALESCE ( - - 72, - + SUM( ALL - 2 ), - NULLIF ( - 70, - 83 * + 52 + - 63 ) * + 54 ) * - ( COUNT( * ) ) ) col1
----
-69

skipif mysql # not compatible
query I rowsort label-2421
SELECT + COALESCE ( - 69, 61 / + COALESCE ( - - 72, - + SUM ( ALL - 2 ), - NULLIF ( - 70, - 83 * + 52 + - 63 ) * + 54 ) * - ( COUNT ( * ) ) ) col1
----
-69

query I rowsort
SELECT - 95 + 27 AS col0
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2423
SELECT 71 / 66 + - 75 + + 45 + - - 40 - 4 - + 83 + + 81 * 5 * + NULLIF ( COUNT( * ) + CAST( NULL AS SIGNED ), 21 * SUM( DISTINCT 20 ) + + 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2423
SELECT 71 / 66 + - 75 + + 45 + - - 40 - 4 - + 83 + + 81 * 5 * + NULLIF ( COUNT ( * ) + CAST ( NULL AS INTEGER ), 21 * SUM ( DISTINCT 20 ) + + 92 )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2425
SELECT + 24 * ( - 69 ) + - NULLIF ( + 79, 59 * - + COUNT( * ) ) + CAST( COUNT( * ) AS SIGNED )
----
-1734

skipif mysql # not compatible
query I rowsort label-2425
SELECT + 24 * ( - 69 ) + - NULLIF ( + 79, 59 * - + COUNT ( * ) ) + CAST ( COUNT ( * ) AS INTEGER )
----
-1734

onlyif mysql # DIV for integer division: 
query I rowsort label-2426
SELECT 27 DIV + 88 + + 46
----
46

skipif mysql # not compatible
query I rowsort label-2426
SELECT 27 / + 88 + + 46
----
46

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT ALL - 42 * MAX( DISTINCT - 19 ) AS col1
----
798

skipif mysql # not compatible
query I rowsort label-2428
SELECT ALL - 42 * MAX ( DISTINCT - 19 ) AS col1
----
798

query I rowsort
SELECT - - 36 + - COALESCE ( - - 63, - ( - + 21 ) + 77 )
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-2430
SELECT ALL - 30 DIV 33 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2430
SELECT ALL - 30 / 33 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2431
SELECT - + CASE + 32 WHEN + 30 * + SUM( 35 ) * + + 91 * 5 THEN COALESCE ( 15, 25 * 93 ) WHEN + 92 THEN NULL ELSE NULL END + + 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2431
SELECT - + CASE + 32 WHEN + 30 * + SUM ( 35 ) * + + 91 * 5 THEN COALESCE ( 15, 25 * 93 ) WHEN + 92 THEN NULL ELSE NULL END + + 68 AS col0
----
NULL

query II rowsort
SELECT ALL + + 2 col1, 30 + + 38
----
2
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2433
SELECT MIN( + 58 ) * - 81 + - MIN( 93 )
----
-4791

skipif mysql # not compatible
query I rowsort label-2433
SELECT MIN ( + 58 ) * - 81 + - MIN ( 93 )
----
-4791

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

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

query I rowsort
SELECT + 82 + + 76 AS col2
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-2436
SELECT - COUNT( * ) * + COUNT( * ) * 94 * ( - 44 ) * + COUNT( * ) * + 76 + + 24 + + 86 * 78 AS col1
----
321068

skipif mysql # not compatible
query I rowsort label-2436
SELECT - COUNT ( * ) * + COUNT ( * ) * 94 * ( - 44 ) * + COUNT ( * ) * + 76 + + 24 + + 86 * 78 AS col1
----
321068

query I rowsort
SELECT ALL NULLIF ( - 13, + 53 + + NULLIF ( + 9, 36 * + 72 ) + - 25 + 29 ) * + 22 col1
----
-286

query I rowsort
SELECT + 75 + + 73 * + - CASE - 88 WHEN 18 THEN - + 15 ELSE NULL END
----
NULL

query I rowsort
SELECT NULLIF ( - - 22, + COALESCE ( - 42, + 56 ) ) AS col1
----
22

query I rowsort
SELECT - 46 * - + 37 AS col1
----
1702

onlyif mysql # aggregate syntax: 
query I rowsort label-2441
SELECT ALL + COALESCE ( 67, SUM( + - 20 ) ) * - + 52 - + + 3 + - - 79 + + 81 + - + 67 * 89
----
-9290

skipif mysql # not compatible
query I rowsort label-2441
SELECT ALL + COALESCE ( 67, SUM ( + - 20 ) ) * - + 52 - + + 3 + - - 79 + + 81 + - + 67 * 89
----
-9290

query II rowsort
SELECT + CASE 82 WHEN - 44 THEN + + 74 END, + 71 AS col0
----
NULL
71

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

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

query I rowsort
SELECT DISTINCT + 20 * 39 + - 79 AS col1
----
701

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2445
SELECT ALL 27 * + ( + COALESCE ( CASE - + 12 WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE 48 END, + - 28 ) ) col2
----
1296

skipif mysql # not compatible
query I rowsort label-2445
SELECT ALL 27 * + ( + COALESCE ( CASE - + 12 WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE 48 END, + - 28 ) ) col2
----
1296

query I rowsort
SELECT ALL + 87 * + 84 * + + 51 + - + 79 AS col2
----
372629

query I rowsort
SELECT + 80 * + 95 * - 14
----
-106400

query II rowsort
SELECT 64 * + 58, 98 AS col0
----
3712
98

query II rowsort
SELECT 35 + + 19 AS col1, - 53 col0
----
54
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT COUNT( * ) * + ( SUM( ALL + - 12 ) ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-2450
SELECT COUNT ( * ) * + ( SUM ( ALL + - 12 ) ) AS col0
----
-12

query II rowsort
SELECT 74 + - 44, + 9 AS col1
----
30
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2452
SELECT DISTINCT 85 + + 52 DIV - 36 AS col1
----
84

skipif mysql # not compatible
query I rowsort label-2452
SELECT DISTINCT 85 + + 52 / - 36 AS col1
----
84

query I rowsort
SELECT ALL 44 + - + 14
----
30

query I rowsort
SELECT ALL 55 * + 21
----
1155

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT ALL + COUNT( + + 66 ) - 53 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-2455
SELECT ALL + COUNT ( + + 66 ) - 53 AS col0
----
-52

query I rowsort
SELECT ALL - ( 13 ) * - - 35 * + 77
----
-35035

query I rowsort
SELECT DISTINCT 83 - + 42 + + 26 * - + 80 AS col1
----
-2039

query I rowsort
SELECT 16 + - 80 AS col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2459
SELECT ALL COUNT( * ) - + 76
----
-75

skipif mysql # not compatible
query I rowsort label-2459
SELECT ALL COUNT ( * ) - + 76
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2460
SELECT 18 * - CAST( NULL AS SIGNED ) + 93 / 22
----
NULL

skipif mysql # not compatible
query I rowsort label-2460
SELECT 18 * - CAST ( NULL AS INTEGER ) + 93 / 22
----
NULL

query I rowsort
SELECT - 84 - - + 86 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2462
SELECT DISTINCT + 79 * - MIN( + 19 ) AS col0
----
-1501

skipif mysql # not compatible
query I rowsort label-2462
SELECT DISTINCT + 79 * - MIN ( + 19 ) AS col0
----
-1501

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2463
SELECT + COUNT( * ) * + + ( 23 ) * 37 - - + 36 + + CASE - 53 WHEN + + 36 THEN + 26 END - 48 / + MIN( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2463
SELECT + COUNT ( * ) * + + ( 23 ) * 37 - - + 36 + + CASE - 53 WHEN + + 36 THEN + 26 END - 48 / + MIN ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT 85 + + - 93 + 46 * + 24 * + - 71
----
-78392

query II rowsort
SELECT ALL + 45 * + - 51 AS col0, - 84 AS col2
----
-2295
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2466
SELECT DISTINCT 85 / + CAST( NULL AS SIGNED ) * - 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2466
SELECT DISTINCT 85 / + CAST ( NULL AS INTEGER ) * - 33 AS col0
----
NULL

query I rowsort
SELECT ALL - + 90 AS col2
----
-90

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

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

query I rowsort
SELECT ALL - - 73 AS col2
----
73

query I rowsort
SELECT 64 * + 28 - + - 53 AS col1
----
1845

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2471
SELECT ALL - 85 * - NULLIF ( - 99, 4 * - + 54 * CAST( NULL AS SIGNED ) * + - COUNT( * ) ) + - 94 + + 65 * + 28
----
-6689

skipif mysql # not compatible
query I rowsort label-2471
SELECT ALL - 85 * - NULLIF ( - 99, 4 * - + 54 * CAST ( NULL AS INTEGER ) * + - COUNT ( * ) ) + - 94 + + 65 * + 28
----
-6689

query I rowsort
SELECT DISTINCT - + ( + 94 ) + 65 AS col0
----
-29

query I rowsort
SELECT + + 67 * + 57 * - 51 + 8 * - ( - + 53 ) - + 28 * + 64
----
-196137

query I rowsort
SELECT 44 * + NULLIF ( - 14, + 26 / - 3 ) AS col1
----
-616

query II rowsort
SELECT 10 AS col2, - 6
----
10
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-2476
SELECT 14 DIV 45
----
0

skipif mysql # not compatible
query I rowsort label-2476
SELECT 14 / 45
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2477
SELECT ALL - COALESCE ( 66, 92 * - 55 * ( + - 78 ) ) + - + ( - 87 ) * 68 * + 74 DIV - COUNT( * )
----
-437850

skipif mysql # not compatible
query I rowsort label-2477
SELECT ALL - COALESCE ( 66, 92 * - 55 * ( + - 78 ) ) + - + ( - 87 ) * 68 * + 74 / - COUNT ( * )
----
-437850

query I rowsort
SELECT ALL + 20 + 38
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2479
SELECT - 9 * - 39 - - COUNT( * ) + - 2 * - - CAST( NULL AS SIGNED ) + - COUNT( * ) - - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-2479
SELECT - 9 * - 39 - - COUNT ( * ) + - 2 * - - CAST ( NULL AS INTEGER ) + - COUNT ( * ) - - 91
----
NULL

query I rowsort
SELECT ALL 10 + - 91 AS col0
----
-81

query I rowsort
SELECT ALL - 47 + 93 AS col2
----
46

query I rowsort
SELECT ALL 86 * - - 43
----
3698

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT 19 + - 32 + + + 62 + + 12 * - + 84 * COALESCE ( + - 24, 34, 37 * + - COUNT( 0 ) + + 53 ) + - 24
----
24217

skipif mysql # not compatible
query I rowsort label-2484
SELECT 19 + - 32 + + + 62 + + 12 * - + 84 * COALESCE ( + - 24, 34, 37 * + - COUNT ( 0 ) + + 53 ) + - 24
----
24217

onlyif mysql # aggregate syntax: 
query I rowsort label-2485
SELECT 84 * - 19 + COUNT( * ) AS col2
----
-1595

skipif mysql # not compatible
query I rowsort label-2485
SELECT 84 * - 19 + COUNT ( * ) AS col2
----
-1595

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2486
SELECT 61, ( CAST( NULL AS SIGNED ) ) AS col0
----
61
NULL

skipif mysql # not compatible
query II rowsort label-2486
SELECT 61, ( CAST ( NULL AS INTEGER ) ) AS col0
----
61
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2487
SELECT - 3 col0, ( - MIN( + 55 ) ) * + 68 + + 78 + - 22 DIV - - 17
----
-3
-3663

skipif mysql # not compatible
query II rowsort label-2487
SELECT - 3 col0, ( - MIN ( + 55 ) ) * + 68 + + 78 + - 22 / - - 17
----
-3
-3663

query I rowsort
SELECT 64 + 36 AS col2
----
100

query I rowsort
SELECT ALL 38 * 41 AS col1
----
1558

query I rowsort
SELECT 54 + - - 43 AS col1
----
97

query I rowsort
SELECT - 15 + + 5 * 41
----
190

onlyif mysql # DIV for integer division: 
query I rowsort label-2492
SELECT ALL 85 DIV + 11 + 17
----
24

skipif mysql # not compatible
query I rowsort label-2492
SELECT ALL 85 / + 11 + 17
----
24

query I rowsort
SELECT 30 * 45 AS col2
----
1350

onlyif mysql # aggregate syntax: 
query I rowsort label-2494
SELECT ALL - ( + - 41 ) * - 86 * COUNT( * ) AS col1
----
-3526

skipif mysql # not compatible
query I rowsort label-2494
SELECT ALL - ( + - 41 ) * - 86 * COUNT ( * ) AS col1
----
-3526

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2495
SELECT + CASE COALESCE ( + 2, SUM( DISTINCT 48 ) ) WHEN + - CAST( 78 AS SIGNED ) * - 61 * - 47 THEN - + 33 + SUM( - 63 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2495
SELECT + CASE COALESCE ( + 2, SUM ( DISTINCT 48 ) ) WHEN + - CAST ( 78 AS INTEGER ) * - 61 * - 47 THEN - + 33 + SUM ( - 63 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2496
SELECT - - CAST( + - AVG ( - 8 ) AS SIGNED ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-2496
SELECT - - CAST ( + - AVG ( - 8 ) AS INTEGER ) AS col0
----
8

query I rowsort
SELECT DISTINCT 17 * 32 AS col0
----
544

query I rowsort
SELECT + 91 * + 16 * - + ( + 1 )
----
-1456

onlyif mysql # aggregate syntax: 
query II rowsort label-2499
SELECT ALL 74 * - SUM( 42 ) + ( 70 ), + MIN( ALL ( + - 0 ) ) col2
----
-3038
0

skipif mysql # not compatible
query II rowsort label-2499
SELECT ALL 74 * - SUM ( 42 ) + ( 70 ), + MIN ( ALL ( + - 0 ) ) col2
----
-3038
0

query I rowsort
SELECT DISTINCT - 47 * - + 78 * + - 86
----
-315276

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2501
SELECT ALL - + 65 DIV + + 42 DIV COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2501
SELECT ALL - + 65 / + + 42 / COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2502
SELECT COUNT( * ) * - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2502
SELECT COUNT ( * ) * - COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT + 41 * 96
----
3936

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2504
SELECT + MAX( ALL CAST( NULL AS SIGNED ) ) + + ( + 91 ) * + + 83 + + NULLIF ( + - COUNT( * ), - 32 * + ( - 79 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2504
SELECT + MAX ( ALL CAST ( NULL AS INTEGER ) ) + + ( + 91 ) * + + 83 + + NULLIF ( + - COUNT ( * ), - 32 * + ( - 79 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT + CASE - - 42 WHEN + + SUM( DISTINCT - ( 12 ) ) THEN - + 63 END * + 77 + - + 49 + - MIN( + - 62 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2505
SELECT + CASE - - 42 WHEN + + SUM ( DISTINCT - ( 12 ) ) THEN - + 63 END * + 77 + - + 49 + - MIN ( + - 62 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2506
SELECT ALL + CAST( - 20 AS SIGNED ) * + 64 DIV + + CASE - - 23 WHEN - 32 * + - 86 THEN + ( - 37 ) - + ( + 11 ) + NULLIF ( + 69, + 80 ) * MIN( + 73 ) ELSE 32 END + COALESCE ( COUNT( * ), - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) )
----
-39

skipif mysql # not compatible
query I rowsort label-2506
SELECT ALL + CAST ( - 20 AS INTEGER ) * + 64 / + + CASE - - 23 WHEN - 32 * + - 86 THEN + ( - 37 ) - + ( + 11 ) + NULLIF ( + 69, + 80 ) * MIN ( + 73 ) ELSE 32 END + COALESCE ( COUNT ( * ), - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) )
----
-39

query I rowsort
SELECT + 77 * + 96 * 94 + + + 58
----
694906

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT ( - - COUNT( * ) ) - + - 26
----
27

skipif mysql # not compatible
query I rowsort label-2508
SELECT ( - - COUNT ( * ) ) - + - 26
----
27

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2509
SELECT - NULLIF ( + CAST( + 64 AS SIGNED ), - 36 ) DIV + - 19 + 64 + ( + + 13 ) + 40 DIV + 68 * + + 83 * + 12 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-2509
SELECT - NULLIF ( + CAST ( + 64 AS INTEGER ), - 36 ) / + - 19 + 64 + ( + + 13 ) + 40 / + 68 * + + 83 * + 12 AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2510
SELECT MAX( - 84 )
----
-84

skipif mysql # not compatible
query I rowsort label-2510
SELECT MAX ( - 84 )
----
-84

query I rowsort
SELECT ALL 28 * - - 33
----
924

query I rowsort
SELECT DISTINCT + 81 * - 95 + - ( 96 ) * 41 AS col2
----
-11631

query I rowsort
SELECT - 42 * + 17 * - 19 + 25
----
13591

onlyif mysql # aggregate syntax: 
query I rowsort label-2514
SELECT ALL - 48 * - 61 + - - 23 + + COUNT( * ) AS col2
----
2952

skipif mysql # not compatible
query I rowsort label-2514
SELECT ALL - 48 * - 61 + - - 23 + + COUNT ( * ) AS col2
----
2952

query I rowsort
SELECT DISTINCT 81 * - 27
----
-2187

query I rowsort
SELECT 55 * + 3 AS col1
----
165

onlyif mysql # aggregate syntax: 
query II rowsort label-2517
SELECT DISTINCT + 90, + 0 * COUNT( DISTINCT + + 96 ) AS col1
----
90
0

skipif mysql # not compatible
query II rowsort label-2517
SELECT DISTINCT + 90, + 0 * COUNT ( DISTINCT + + 96 ) AS col1
----
90
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2518
SELECT COUNT( 70 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2518
SELECT COUNT ( 70 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT DISTINCT + 71 - - 38 + - COUNT( * ) AS col2
----
108

skipif mysql # not compatible
query I rowsort label-2519
SELECT DISTINCT + 71 - - 38 + - COUNT ( * ) AS col2
----
108

query I rowsort
SELECT ALL + 53 - + 41 AS col0
----
12

query II rowsort
SELECT + 0 AS col0, NULLIF ( + NULLIF ( - - 90, 96 ), - - 29 + + 42 ) - + 17
----
0
73

onlyif mysql # DIV for integer division: 
query I rowsort label-2522
SELECT ALL + 26 DIV 79 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2522
SELECT ALL + 26 / 79 AS col2
----
0

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

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

query I rowsort
SELECT ALL + 80 * + + 61 col1
----
4880

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT - COUNT( * ) * 53
----
-53

skipif mysql # not compatible
query I rowsort label-2525
SELECT - COUNT ( * ) * 53
----
-53

query II rowsort
SELECT DISTINCT 60, - 63 AS col1
----
60
-63

query II rowsort
SELECT - 64 AS col1, 58
----
-64
58

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2529
SELECT ALL CAST( + 63 AS SIGNED )
----
63

skipif mysql # not compatible
query I rowsort label-2529
SELECT ALL CAST ( + 63 AS INTEGER )
----
63

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

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

query I rowsort
SELECT + - 1 * + 12 + + + 71
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-2532
SELECT DISTINCT - COUNT( * ), - 40 AS col2
----
-1
-40

skipif mysql # not compatible
query II rowsort label-2532
SELECT DISTINCT - COUNT ( * ), - 40 AS col2
----
-1
-40

query I rowsort
SELECT ALL + 29 + 4 AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2534
SELECT - + NULLIF ( 46, 68 ) + - 26 * COUNT( * ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-2534
SELECT - + NULLIF ( 46, 68 ) + - 26 * COUNT ( * ) AS col2
----
-72

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

query II rowsort
SELECT DISTINCT 58 AS col0, - 54
----
58
-54

query II rowsort
SELECT + ( + 52 ) AS col0, 96 AS col0
----
52
96

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

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

query I rowsort
SELECT ALL - 93 + + - 28 AS col1
----
-121

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

skipif mysql # not compatible
query I rowsort label-2540
SELECT - + CAST ( NULL AS INTEGER ) + 98 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2541
SELECT - 91 DIV 22 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-2541
SELECT - 91 / 22 AS col1
----
-4

query I rowsort
SELECT + 61 + + 31 + - 97
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-2543
SELECT ALL 31 + MAX( - + 49 ) + - COUNT( * ) AS col0, + 47 * - + 68 * + + ( - - 2 ) * - + 35 - - 41 + 88 * - 39 * - 77 AS col2
----
-19
488025

skipif mysql # not compatible
query II rowsort label-2543
SELECT ALL 31 + MAX ( - + 49 ) + - COUNT ( * ) AS col0, + 47 * - + 68 * + + ( - - 2 ) * - + 35 - - 41 + 88 * - 39 * - 77 AS col2
----
-19
488025

onlyif mysql # aggregate syntax: 
query II rowsort label-2544
SELECT + 59 AS col1, - 67 * + 53 * ( + COUNT( * ) )
----
59
-3551

skipif mysql # not compatible
query II rowsort label-2544
SELECT + 59 AS col1, - 67 * + 53 * ( + COUNT ( * ) )
----
59
-3551

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2545
SELECT ALL 41 DIV + 18 + - - ( - COUNT( * ) ) + 81 + - + 0 + + 28 AS col2, COUNT( * ) + + 43 + COUNT( * ) AS col0
----
110
45

skipif mysql # not compatible
query II rowsort label-2545
SELECT ALL 41 / + 18 + - - ( - COUNT ( * ) ) + 81 + - + 0 + + 28 AS col2, COUNT ( * ) + + 43 + COUNT ( * ) AS col0
----
110
45

onlyif mysql # aggregate syntax: 
query II rowsort label-2546
SELECT COUNT( 27 ), COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-2546
SELECT COUNT ( 27 ), COUNT ( * )
----
1
1

query I rowsort
SELECT + CASE + 38 WHEN - ( + CASE 58 WHEN 29 THEN ( 89 ) ELSE NULL END ) - - - 78 * + - 62 THEN - - 86 WHEN + 56 * 60 THEN + 48 * - 14 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2548
SELECT ALL - 32 * + 28 + - 3 DIV 52
----
-896

skipif mysql # not compatible
query I rowsort label-2548
SELECT ALL - 32 * + 28 + - 3 / 52
----
-896

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2549
SELECT + 40 DIV + COUNT( * ) AS col0, - 54 * 98 * + COUNT( * ) col1
----
40
-5292

skipif mysql # not compatible
query II rowsort label-2549
SELECT + 40 / + COUNT ( * ) AS col0, - 54 * 98 * + COUNT ( * ) col1
----
40
-5292

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT + 16 * + 98 * + COUNT( * ) * + - 60 AS col2
----
-94080

skipif mysql # not compatible
query I rowsort label-2550
SELECT + 16 * + 98 * + COUNT ( * ) * + - 60 AS col2
----
-94080

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

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

query I rowsort
SELECT ALL + 94 col0
----
94

query I rowsort
SELECT + 86 * - 47
----
-4042

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT ( - MIN( + + 54 ) )
----
-54

skipif mysql # not compatible
query I rowsort label-2554
SELECT ( - MIN ( + + 54 ) )
----
-54

query I rowsort
SELECT + 50 * + - 60
----
-3000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2556
SELECT ALL + ( 63 ) AS col1, 34 / CASE - + 80 WHEN COUNT( * ) THEN + CASE + - COUNT( * ) WHEN 14 THEN + 1 END / COUNT( * ) + + + 5 WHEN 97 THEN NULL ELSE - 35 - 49 * + ( CAST( NULL AS SIGNED ) + ( 40 ) / + CAST( + 96 AS SIGNED ) ) END AS col2
----
63
NULL

skipif mysql # not compatible
query II rowsort label-2556
SELECT ALL + ( 63 ) AS col1, 34 / CASE - + 80 WHEN COUNT ( * ) THEN + CASE + - COUNT ( * ) WHEN 14 THEN + 1 END / COUNT ( * ) + + + 5 WHEN 97 THEN NULL ELSE - 35 - 49 * + ( CAST ( NULL AS INTEGER ) + ( 40 ) / + CAST ( + 96 AS INTEGER ) ) END AS col2
----
63
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2558
SELECT + 91 + + 69, COUNT( * ) + + + COALESCE ( + 5, 26 DIV + COUNT( * ) * + 48 * + 53, 64 * + + 30 DIV - + 1 + - 19 ) AS col0
----
160
6

skipif mysql # not compatible
query II rowsort label-2558
SELECT + 91 + + 69, COUNT ( * ) + + + COALESCE ( + 5, 26 / + COUNT ( * ) * + 48 * + 53, 64 * + + 30 / - + 1 + - 19 ) AS col0
----
160
6

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

query I rowsort
SELECT + 50 + + - 96
----
-46

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT ALL 7 * + MIN( + 7 ) + + + 21
----
70

skipif mysql # not compatible
query I rowsort label-2562
SELECT ALL 7 * + MIN ( + 7 ) + + + 21
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-2563
SELECT ALL + 58 + - ( + + 93 ) DIV + + 9
----
48

skipif mysql # not compatible
query I rowsort label-2563
SELECT ALL + 58 + - ( + + 93 ) / + + 9
----
48

query I rowsort
SELECT ALL - 0 + + - 38 + 64 * + 46 AS col1
----
2906

onlyif mysql # aggregate syntax: 
query I rowsort label-2565
SELECT - - 19 + + MAX( ALL - 6 ) col0
----
13

skipif mysql # not compatible
query I rowsort label-2565
SELECT - - 19 + + MAX ( ALL - 6 ) col0
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2566
SELECT ALL + + CAST( MIN( DISTINCT + 91 ) AS SIGNED ) + - - 12 + - - 71 AS col2
----
174

skipif mysql # not compatible
query I rowsort label-2566
SELECT ALL + + CAST ( MIN ( DISTINCT + 91 ) AS INTEGER ) + - - 12 + - - 71 AS col2
----
174

query I rowsort
SELECT - 62 + - 42 AS col0
----
-104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2568
SELECT DISTINCT - 6 + + - COUNT( DISTINCT - CAST( - - 32 AS SIGNED ) ) + + 26 * - NULLIF ( - - ( + 23 ), 33 )
----
-605

skipif mysql # not compatible
query I rowsort label-2568
SELECT DISTINCT - 6 + + - COUNT ( DISTINCT - CAST ( - - 32 AS INTEGER ) ) + + 26 * - NULLIF ( - - ( + 23 ), 33 )
----
-605

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2569
SELECT SUM( - 57 ) col1, CAST( - + 56 AS SIGNED ) AS col2
----
-57
-56

skipif mysql # not compatible
query II rowsort label-2569
SELECT SUM ( - 57 ) col1, CAST ( - + 56 AS INTEGER ) AS col2
----
-57
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2570
SELECT ALL + CASE - 84 WHEN + + 85 * COUNT( * ) + - - 74 THEN - + NULLIF ( + MIN( ALL - - 55 ), - COUNT( * ) * + 92 + 33 - - 27 * + 24 ) * + MIN( DISTINCT CAST( NULL AS SIGNED ) + - 51 * - 33 ) ELSE MAX( DISTINCT - 58 ) * - 39 + COUNT( * ) END * 73
----
165199

skipif mysql # not compatible
query I rowsort label-2570
SELECT ALL + CASE - 84 WHEN + + 85 * COUNT ( * ) + - - 74 THEN - + NULLIF ( + MIN ( ALL - - 55 ), - COUNT ( * ) * + 92 + 33 - - 27 * + 24 ) * + MIN ( DISTINCT CAST ( NULL AS INTEGER ) + - 51 * - 33 ) ELSE MAX ( DISTINCT - 58 ) * - 39 + COUNT ( * ) END * 73
----
165199

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT DISTINCT - CASE - - ( 19 ) WHEN - 24 THEN + ( ( + - ( - 84 ) ) ) * SUM( + + 98 ) - - 88 END + - - 45 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2571
SELECT DISTINCT - CASE - - ( 19 ) WHEN - 24 THEN + ( ( + - ( - 84 ) ) ) * SUM ( + + 98 ) - - 88 END + - - 45 col0
----
NULL

query I rowsort
SELECT ALL COALESCE ( + + 64, - 6 )
----
64

query I rowsort
SELECT ALL 28 - + 81 + - + 71 * 76
----
-5449

query I rowsort
SELECT + NULLIF ( 2, + 47 ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT ALL + ( - MAX( ALL - - 1 ) ) * + 56
----
-56

skipif mysql # not compatible
query I rowsort label-2575
SELECT ALL + ( - MAX ( ALL - - 1 ) ) * + 56
----
-56

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

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

query I rowsort
SELECT ALL 92 * 38 AS col0
----
3496

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT ALL 69 - - ( + 35 ) * - MAX( DISTINCT 99 ) AS col0
----
-3396

skipif mysql # not compatible
query I rowsort label-2578
SELECT ALL 69 - - ( + 35 ) * - MAX ( DISTINCT 99 ) AS col0
----
-3396

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2579
SELECT ALL 27 * - + 86 * + 83 * 41 AS col2, + 40 DIV MIN( DISTINCT + 25 )
----
-7901766
1

skipif mysql # not compatible
query II rowsort label-2579
SELECT ALL 27 * - + 86 * + 83 * 41 AS col2, + 40 / MIN ( DISTINCT + 25 )
----
-7901766
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2580
SELECT COUNT( * ) * SUM( DISTINCT 78 )
----
78

skipif mysql # not compatible
query I rowsort label-2580
SELECT COUNT ( * ) * SUM ( DISTINCT 78 )
----
78

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT DISTINCT - COUNT( ALL + 41 )
----
-1

skipif mysql # not compatible
query I rowsort label-2582
SELECT DISTINCT - COUNT ( ALL + 41 )
----
-1

query II rowsort
SELECT DISTINCT - 25 AS col0, 64 col1
----
-25
64

query I rowsort
SELECT 64 + + - 66
----
-2

query I rowsort
SELECT ALL - 53 * 39 AS col2
----
-2067

query I rowsort
SELECT ALL - 3 col2
----
-3

query I rowsort
SELECT + 96 * - 19 + + + 0 + - 37 AS col2
----
-1861

onlyif mysql # DIV for integer division: 
query I rowsort label-2588
SELECT ALL COALESCE ( 29, + 63 ) DIV + ( 57 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2588
SELECT ALL COALESCE ( 29, + 63 ) / + ( 57 ) AS col2
----
0

query II rowsort
SELECT + 54 col1, + 30
----
54
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2590
SELECT 87, CAST( NULL AS SIGNED ) * - SUM( DISTINCT + 92 ) AS col2
----
87
NULL

skipif mysql # not compatible
query II rowsort label-2590
SELECT 87, CAST ( NULL AS INTEGER ) * - SUM ( DISTINCT + 92 ) AS col2
----
87
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2591
SELECT 99 + + + 7 * 56 DIV - 7
----
43

skipif mysql # not compatible
query I rowsort label-2591
SELECT 99 + + + 7 * 56 / - 7
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-2592
SELECT 63, - 33 + - NULLIF ( - COALESCE ( + 78, - - ( + + 60 ) ), + + 40 * + 62 + COUNT( * ) ) AS col2
----
63
45

skipif mysql # not compatible
query II rowsort label-2592
SELECT 63, - 33 + - NULLIF ( - COALESCE ( + 78, - - ( + + 60 ) ), + + 40 * + 62 + COUNT ( * ) ) AS col2
----
63
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2593
SELECT ALL - + 74 AS col2, COALESCE ( - 13, - - 18 DIV COUNT( * ) ) AS col2
----
-74
-13

skipif mysql # not compatible
query II rowsort label-2593
SELECT ALL - + 74 AS col2, COALESCE ( - 13, - - 18 / COUNT ( * ) ) AS col2
----
-74
-13

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT ALL COUNT( 5 ) + + + MAX( ALL - 48 )
----
-47

skipif mysql # not compatible
query I rowsort label-2595
SELECT ALL COUNT ( 5 ) + + + MAX ( ALL - 48 )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2596
SELECT ALL + 29 + + MAX( + + 15 ) + - 75 + 60 AS col2
----
29

skipif mysql # not compatible
query I rowsort label-2596
SELECT ALL + 29 + + MAX ( + + 15 ) + - 75 + 60 AS col2
----
29

query I rowsort
SELECT DISTINCT - 71 + - 63 + - 89 + 86 - - 84
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2598
SELECT DISTINCT - MIN( DISTINCT 68 )
----
-68

skipif mysql # not compatible
query I rowsort label-2598
SELECT DISTINCT - MIN ( DISTINCT 68 )
----
-68

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

query I rowsort
SELECT ALL 63 + + 10
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-2601
SELECT - COUNT( ALL + 87 ) - - 97 AS col2, - 6 * + 41
----
96
-246

skipif mysql # not compatible
query II rowsort label-2601
SELECT - COUNT ( ALL + 87 ) - - 97 AS col2, - 6 * + 41
----
96
-246

query II rowsort
SELECT 44 AS col2, - 44 * ( + 9 ) AS col1
----
44
-396

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT + 34 * COUNT( * ) + + 21
----
55

skipif mysql # not compatible
query I rowsort label-2604
SELECT + 34 * COUNT ( * ) + + 21
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-2605
SELECT DISTINCT 76 AS col0, 31 + + COUNT( * ) col2
----
76
32

skipif mysql # not compatible
query II rowsort label-2605
SELECT DISTINCT 76 AS col0, 31 + + COUNT ( * ) col2
----
76
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT ALL + + 54 + MIN( 71 ) + + - 20 * - NULLIF ( 54, + 17 / + 97 ) + + + COUNT( * ) + - 83 * + COUNT( * ) + - + COUNT( * ) * + 24 * 99 AS col0
----
-1253

skipif mysql # not compatible
query I rowsort label-2606
SELECT ALL + + 54 + MIN ( 71 ) + + - 20 * - NULLIF ( 54, + 17 / + 97 ) + + + COUNT ( * ) + - 83 * + COUNT ( * ) + - + COUNT ( * ) * + 24 * 99 AS col0
----
-1253

query I rowsort
SELECT 87 + + 40 AS col0
----
127

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2608
SELECT ALL + COUNT( * ) DIV + - 93 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2608
SELECT ALL + COUNT ( * ) / + - 93 AS col1
----
0

query I rowsort
SELECT - 9 + + 63
----
54

query I rowsort
SELECT DISTINCT - 19 - - + 78 AS col2
----
59

query I rowsort
SELECT - - 36 col2
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2612
SELECT DISTINCT - NULLIF ( COUNT( * ), 64 ) - - 32 - - ( - 45 ) * + 26 + - MIN( + 85 ) DIV - 2 col1
----
-1097

skipif mysql # not compatible
query I rowsort label-2612
SELECT DISTINCT - NULLIF ( COUNT ( * ), 64 ) - - 32 - - ( - 45 ) * + 26 + - MIN ( + 85 ) / - 2 col1
----
-1097

onlyif mysql # aggregate syntax: 
query I rowsort label-2613
SELECT MIN( ALL ( 62 ) ) * - 59 - + + ( 72 ) + - 41 AS col0
----
-3771

skipif mysql # not compatible
query I rowsort label-2613
SELECT MIN ( ALL ( 62 ) ) * - 59 - + + ( 72 ) + - 41 AS col0
----
-3771

query II rowsort
SELECT ALL + 30 * + + 62 AS col2, + 13 + - 20 AS col2
----
1860
-7

query I rowsort
SELECT DISTINCT - ( - - 41 )
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2616
SELECT 58 * CAST( NULL AS SIGNED ) * - CAST( - 60 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2616
SELECT 58 * CAST ( NULL AS INTEGER ) * - CAST ( - 60 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2617
SELECT CASE - 30 WHEN + COALESCE ( 15, - 71 + + - 69, + MIN( - 83 ) + - 57 + - - AVG ( - 9 ) ) * - 91 THEN 55 * + 16 WHEN + 39 THEN NULL ELSE NULL END * - ( 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2617
SELECT CASE - 30 WHEN + COALESCE ( 15, - 71 + + - 69, + MIN ( - 83 ) + - 57 + - - AVG ( - 9 ) ) * - 91 THEN 55 * + 16 WHEN + 39 THEN NULL ELSE NULL END * - ( 66 )
----
NULL

query II rowsort
SELECT ALL + 94 + 75 AS col1, - 24 + - 57 AS col0
----
169
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2619
SELECT + ( 25 ) / - 83 - - ( - + 96 ) * - 9 + - 71 - 95 + + 57 + NULLIF ( CAST( NULL AS DECIMAL ), + + 66 + - - 74 + + 25 * 25 ) * + 91 / + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-2619
SELECT + ( 25 ) / - 83 - - ( - + 96 ) * - 9 + - 71 - 95 + + 57 + NULLIF ( CAST ( NULL AS REAL ), + + 66 + - - 74 + + 25 * 25 ) * + 91 / + 73
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2620
SELECT ALL - COALESCE ( + MAX( DISTINCT + CASE - + 85 WHEN - 7 * 86 THEN + + 16 WHEN + - 68 THEN NULL END ), + ( COUNT( DISTINCT 37 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2620
SELECT ALL - COALESCE ( + MAX ( DISTINCT + CASE - + 85 WHEN - 7 * 86 THEN + + 16 WHEN + - 68 THEN NULL END ), + ( COUNT ( DISTINCT 37 ) ) )
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2621
SELECT ALL 38 + CAST( NULL AS DECIMAL ) * - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-2621
SELECT ALL 38 + CAST ( NULL AS REAL ) * - 65
----
NULL

query I rowsort
SELECT 73 * 76
----
5548

query I rowsort
SELECT 9 * 67 * + - 84
----
-50652

query I rowsort
SELECT DISTINCT 14 * 83 * - ( - 7 )
----
8134

query I rowsort
SELECT DISTINCT 73 + + + 99 + - 76 AS col2
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2626
SELECT ALL COUNT( * ) + - - 26 DIV + - 96
----
1

skipif mysql # not compatible
query I rowsort label-2626
SELECT ALL COUNT ( * ) + - - 26 / + - 96
----
1

query I rowsort
SELECT - 41 - - 39
----
-2

query I rowsort
SELECT ALL 85 + + 37 AS col0
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-2629
SELECT + COUNT( * ) * - - 48 - - 62
----
110

skipif mysql # not compatible
query I rowsort label-2629
SELECT + COUNT ( * ) * - - 48 - - 62
----
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2630
SELECT - CASE - - 47 WHEN + 3 - - - SUM( ALL + 82 ) THEN - + CAST( 80 AS SIGNED ) WHEN 58 THEN NULL END / + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-2630
SELECT - CASE - - 47 WHEN + 3 - - - SUM ( ALL + 82 ) THEN - + CAST ( 80 AS INTEGER ) WHEN 58 THEN NULL END / + 80
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2631
SELECT ALL 52 + + + 22 * + COUNT( * ) DIV 78 + + - 78 + 42 - - - 82 + 91 + CAST( - 25 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2631
SELECT ALL 52 + + + 22 * + COUNT ( * ) / 78 + + - 78 + 42 - - - 82 + 91 + CAST ( - 25 AS INTEGER ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT + 43 * + 40 + COUNT( + + 87 ) * - COUNT( * ) * + 8
----
1712

skipif mysql # not compatible
query I rowsort label-2632
SELECT + 43 * + 40 + COUNT ( + + 87 ) * - COUNT ( * ) * + 8
----
1712

onlyif mysql # aggregate syntax: 
query I rowsort label-2633
SELECT + NULLIF ( - + MIN( 86 ), - 69 ) + - 93
----
-179

skipif mysql # not compatible
query I rowsort label-2633
SELECT + NULLIF ( - + MIN ( 86 ), - 69 ) + - 93
----
-179

onlyif mysql # aggregate syntax: 
query I rowsort label-2634
SELECT 37 * 8 - 22 + 85 - - 31 * COUNT( * )
----
390

skipif mysql # not compatible
query I rowsort label-2634
SELECT 37 * 8 - 22 + 85 - - 31 * COUNT ( * )
----
390

query I rowsort
SELECT ALL + 56 - + 8 AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2636
SELECT - 71 * - COUNT( ALL - 35 ) * + + COUNT( * ) * + 86 * - + 14 + - 45 AS col2
----
-85529

skipif mysql # not compatible
query I rowsort label-2636
SELECT - 71 * - COUNT ( ALL - 35 ) * + + COUNT ( * ) * + 86 * - + 14 + - 45 AS col2
----
-85529

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT DISTINCT + 12 * + - COUNT( * ) * 26
----
-312

skipif mysql # not compatible
query I rowsort label-2637
SELECT DISTINCT + 12 * + - COUNT ( * ) * 26
----
-312

onlyif mysql # aggregate syntax: 
query I rowsort label-2638
SELECT ALL CASE - + 74 WHEN + + 55 * - ( - + 41 ) + + + 96 THEN + + COUNT( * ) / COUNT( * ) + - 21 WHEN + MAX( 44 ) THEN CASE - - 36 WHEN 22 THEN NULL WHEN 56 THEN COUNT( + 95 ) - - ( + 73 - MAX( + 9 ) ) / COUNT( * ) ELSE 46 END ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2638
SELECT ALL CASE - + 74 WHEN + + 55 * - ( - + 41 ) + + + 96 THEN + + COUNT ( * ) / COUNT ( * ) + - 21 WHEN + MAX ( 44 ) THEN CASE - - 36 WHEN 22 THEN NULL WHEN 56 THEN COUNT ( + 95 ) - - ( + 73 - MAX ( + 9 ) ) / COUNT ( * ) ELSE 46 END ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 37 * + + 64 col2
----
2368

query I rowsort
SELECT + - 85 * - 93 AS col2
----
7905

query I rowsort
SELECT + - 74 + + 63 AS col2
----
-11

query I rowsort
SELECT DISTINCT 86 * - 7 * + - 35 + - - 15 + 93
----
21178

onlyif mysql # aggregate syntax: 
query II rowsort label-2643
SELECT + 81 + + - 70 + + + 0, COUNT( * ) + 86 AS col2
----
11
87

skipif mysql # not compatible
query II rowsort label-2643
SELECT + 81 + + - 70 + + + 0, COUNT ( * ) + 86 AS col2
----
11
87

query II rowsort
SELECT ALL 16, 26 AS col1
----
16
26

query I rowsort
SELECT + 58 * + + 56 AS col1
----
3248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2646
SELECT ALL 70 AS col2, + COUNT( * ) + + 65 + - 35 + + CASE + MIN( DISTINCT 77 ) WHEN ( + 6 ) THEN - + 85 END * NULLIF ( + 17, CAST( NULL AS SIGNED ) * + MAX( ALL - 97 ) ) + + 86 * 65
----
70
NULL

skipif mysql # not compatible
query II rowsort label-2646
SELECT ALL 70 AS col2, + COUNT ( * ) + + 65 + - 35 + + CASE + MIN ( DISTINCT 77 ) WHEN ( + 6 ) THEN - + 85 END * NULLIF ( + 17, CAST ( NULL AS INTEGER ) * + MAX ( ALL - 97 ) ) + + 86 * 65
----
70
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2647
SELECT DISTINCT - 80 DIV + + 68
----
-1

skipif mysql # not compatible
query I rowsort label-2647
SELECT DISTINCT - 80 / + + 68
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2648
SELECT + COUNT( + CAST( 54 AS SIGNED ) ) - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-2648
SELECT + COUNT ( + CAST ( 54 AS INTEGER ) ) - + COUNT ( * )
----
0

query I rowsort
SELECT - 27 + + - 32 AS col1
----
-59

query II rowsort
SELECT - 81 col0, 56 AS col2
----
-81
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2651
SELECT ALL CASE + 36 WHEN 97 THEN - + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2651
SELECT ALL CASE + 36 WHEN 97 THEN - + COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT - ( 6 ) + - 61 col1
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2653
SELECT + COUNT( * ) + + - 91 DIV + NULLIF ( + 52, + + 20 + + + 48 + + COUNT( * ) + ( 62 ) * + ( + NULLIF ( + 96, - 10 ) ) * + - 87 + - 12 + CAST( 57 AS SIGNED ) DIV - 27 ) + 92 AS col2
----
92

skipif mysql # not compatible
query I rowsort label-2653
SELECT + COUNT ( * ) + + - 91 / + NULLIF ( + 52, + + 20 + + + 48 + + COUNT ( * ) + ( 62 ) * + ( + NULLIF ( + 96, - 10 ) ) * + - 87 + - 12 + CAST ( 57 AS INTEGER ) / - 27 ) + 92 AS col2
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-2654
SELECT + 74 DIV ( - 43 ) DIV - + 87 * + 99 + + 64
----
64

skipif mysql # not compatible
query I rowsort label-2654
SELECT + 74 / ( - 43 ) / - + 87 * + 99 + + 64
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2655
SELECT + CASE 25 WHEN - + 70 * MIN( 82 ) THEN NULL WHEN + 84 * + COUNT( * ) * - 91 + 36 + - - 68 THEN NULL ELSE + - 10 DIV 94 + - + 8 END, + COALESCE ( - + COUNT( - 44 ), 35 ) * 62 AS col2
----
-8
-62

skipif mysql # not compatible
query II rowsort label-2655
SELECT + CASE 25 WHEN - + 70 * MIN ( 82 ) THEN NULL WHEN + 84 * + COUNT ( * ) * - 91 + 36 + - - 68 THEN NULL ELSE + - 10 / 94 + - + 8 END, + COALESCE ( - + COUNT ( - 44 ), 35 ) * 62 AS col2
----
-8
-62

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

skipif mysql # not compatible
query I rowsort label-2656
SELECT - COUNT ( * ) * - 84 + + + 77 AS col1
----
161

onlyif mysql # aggregate syntax: 
query II rowsort label-2657
SELECT DISTINCT 75 * COUNT( * ) + + 71, 11 AS col2
----
146
11

skipif mysql # not compatible
query II rowsort label-2657
SELECT DISTINCT 75 * COUNT ( * ) + + 71, 11 AS col2
----
146
11

query II rowsort
SELECT NULLIF ( - - 18, + 60 ), 92 + - + 17 AS col2
----
18
75

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

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

query I rowsort
SELECT ALL - 91 * 38 * - NULLIF ( + 29, - 91 )
----
100282

query I rowsort
SELECT ALL + + 79 AS col0
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2662
SELECT DISTINCT 50 * 10 + - + CAST( - + 19 AS SIGNED ) + - + 0 AS col1
----
519

skipif mysql # not compatible
query I rowsort label-2662
SELECT DISTINCT 50 * 10 + - + CAST ( - + 19 AS INTEGER ) + - + 0 AS col1
----
519

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2663
SELECT + CAST( NULL AS SIGNED ) AS col2, - 37 - + 22 + 63 AS col0
----
NULL
4

skipif mysql # not compatible
query II rowsort label-2663
SELECT + CAST ( NULL AS INTEGER ) AS col2, - 37 - + 22 + 63 AS col0
----
NULL
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2664
SELECT - 8 DIV 95 * + COUNT( * ) * - + 69 + 72 + ( + + 59 ) * + 31 * 20 * ( - 71 ) * - 34 + - + 96, 52 AS col0
----
88304096
52

skipif mysql # not compatible
query II rowsort label-2664
SELECT - 8 / 95 * + COUNT ( * ) * - + 69 + 72 + ( + + 59 ) * + 31 * 20 * ( - 71 ) * - 34 + - + 96, 52 AS col0
----
88304096
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2665
SELECT + - CASE - - 13 WHEN + MIN( + - ( - 15 ) ) THEN NULL WHEN 4 * 44 + - - 51 + - 15 + - 21 THEN + COUNT( * ) + + 12 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2665
SELECT + - CASE - - 13 WHEN + MIN ( + - ( - 15 ) ) THEN NULL WHEN 4 * 44 + - - 51 + - 15 + - 21 THEN + COUNT ( * ) + + 12 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2666
SELECT ALL + - 45, 96 * - 71 - + + CASE - 85 WHEN - + 0 THEN COUNT( DISTINCT - - 80 ) END + 82 col2
----
-45
NULL

skipif mysql # not compatible
query II rowsort label-2666
SELECT ALL + - 45, 96 * - 71 - + + CASE - 85 WHEN - + 0 THEN COUNT ( DISTINCT - - 80 ) END + 82 col2
----
-45
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2667
SELECT - + 46 DIV 42 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2667
SELECT - + 46 / 42 AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2668
SELECT DISTINCT - + 45 DIV - + ( + 14 )
----
3

skipif mysql # not compatible
query I rowsort label-2668
SELECT DISTINCT - + 45 / - + ( + 14 )
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2669
SELECT - COUNT( + 7 ) * + 0 AS col0, COUNT( * ) + - - 33 + + - 60 AS col1
----
0
-26

skipif mysql # not compatible
query II rowsort label-2669
SELECT - COUNT ( + 7 ) * + 0 AS col0, COUNT ( * ) + - - 33 + + - 60 AS col1
----
0
-26

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

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

query I rowsort
SELECT DISTINCT + 83 * + - 18
----
-1494

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2672
SELECT - + 19 DIV COUNT( * ) + 9 AS col0, - 21 + - - 85 - 6 + + 48 * 37
----
-10
1834

skipif mysql # not compatible
query II rowsort label-2672
SELECT - + 19 / COUNT ( * ) + 9 AS col0, - 21 + - - 85 - 6 + + 48 * 37
----
-10
1834

onlyif mysql # aggregate syntax: 
query I rowsort label-2673
SELECT + + 14 * + CASE - 91 WHEN 78 * + 88 - - 85 THEN NULL ELSE + COUNT( - 97 ) * NULLIF ( 64, - - 55 * - 20 * 65 / + - 73 ) END
----
896

skipif mysql # not compatible
query I rowsort label-2673
SELECT + + 14 * + CASE - 91 WHEN 78 * + 88 - - 85 THEN NULL ELSE + COUNT ( - 97 ) * NULLIF ( 64, - - 55 * - 20 * 65 / + - 73 ) END
----
896

query I rowsort
SELECT - - 45 - + 32 AS col0
----
13

query I rowsort
SELECT + - 39 * 64 col2
----
-2496

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2676
SELECT + CASE 32 WHEN + - 51 THEN NULL WHEN - 96 THEN + + 37 * 20 ELSE NULL END + MIN( DISTINCT 48 ) * + CASE WHEN 58 BETWEEN 75 AND NULL THEN - 80 * + 37 * MIN( + 20 ) * 39 + + 14 END / - ( 31 / CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2676
SELECT + CASE 32 WHEN + - 51 THEN NULL WHEN - 96 THEN + + 37 * 20 ELSE NULL END + MIN ( DISTINCT 48 ) * + CASE WHEN 58 BETWEEN 75 AND NULL THEN - 80 * + 37 * MIN ( + 20 ) * 39 + + 14 END / - ( 31 / CAST ( NULL AS REAL ) )
----
NULL

query II rowsort
SELECT DISTINCT 63, 86 - - - 56 AS col2
----
63
30

query I rowsort
SELECT ALL 46 * + 36 AS col1
----
1656

query II rowsort
SELECT 66 AS col0, 13 AS col0
----
66
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2680
SELECT DISTINCT 75 + + COUNT( * ) col2
----
76

skipif mysql # not compatible
query I rowsort label-2680
SELECT DISTINCT 75 + + COUNT ( * ) col2
----
76

query I rowsort
SELECT + 87 - 87 + 50 AS col1
----
50

query I rowsort
SELECT ALL 98 * + 43 AS col1
----
4214

query I rowsort
SELECT + 4 * 0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2684
SELECT ALL 10 + - 12 DIV - CASE + 32 WHEN + 33 * + + 60 + + - 79 + - + NULLIF ( ( - 52 ), + + 64 ) * 35 THEN - 95 ELSE - + COUNT( * ) + - 48 * - 19 + - 11 END * - 71
----
10

skipif mysql # not compatible
query I rowsort label-2684
SELECT ALL 10 + - 12 / - CASE + 32 WHEN + 33 * + + 60 + + - 79 + - + NULLIF ( ( - 52 ), + + 64 ) * 35 THEN - 95 ELSE - + COUNT ( * ) + - 48 * - 19 + - 11 END * - 71
----
10

query II rowsort
SELECT ALL 80, 18 AS col0
----
80
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2686
SELECT - CAST( 80 AS SIGNED ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-2686
SELECT - CAST ( 80 AS INTEGER ) AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2687
SELECT - CASE WHEN NOT NULL IN ( ( 77 ) ) THEN 4 + + + 57 + MIN( 29 ) + 3 ELSE 81 + - 36 END
----
-45

skipif mysql # not compatible
query I rowsort label-2687
SELECT - CASE WHEN NOT NULL IN ( ( 77 ) ) THEN 4 + + + 57 + MIN ( 29 ) + 3 ELSE 81 + - 36 END
----
-45

query I rowsort
SELECT + 68 * + 33 * 16 * - 49
----
-1759296

query I rowsort
SELECT DISTINCT 97 + + 78 * + 97
----
7663

query II rowsort
SELECT 79 AS col1, + 19 * ( 96 ) * + - 26 AS col2
----
79
-47424

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2691
SELECT + CAST( NULL AS SIGNED ), ( - COUNT( * ) ) * + 53 * COUNT( * ) AS col0
----
NULL
-53

skipif mysql # not compatible
query II rowsort label-2691
SELECT + CAST ( NULL AS INTEGER ), ( - COUNT ( * ) ) * + 53 * COUNT ( * ) AS col0
----
NULL
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-2692
SELECT ALL - 20 DIV + 12 + - 71
----
-72

skipif mysql # not compatible
query I rowsort label-2692
SELECT ALL - 20 / + 12 + - 71
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT + COALESCE ( COUNT( * ), + - 63 ) * + 82
----
82

skipif mysql # not compatible
query I rowsort label-2693
SELECT + COALESCE ( COUNT ( * ), + - 63 ) * + 82
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2694
SELECT DISTINCT + COUNT( * ) DIV + - COALESCE ( + - 4, - SUM( ALL 53 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2694
SELECT DISTINCT + COUNT ( * ) / + - COALESCE ( + - 4, - SUM ( ALL 53 ) )
----
0

query II rowsort
SELECT ALL + 69, 94 AS col1
----
69
94

query I rowsort
SELECT + 39 * - 45 - 66 + + 23
----
-1798

query II rowsort
SELECT 82 AS col1, - 7 + 45 AS col2
----
82
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2698
SELECT CAST( - COUNT( * ) AS SIGNED ) * + 9 DIV + - 83 - + 59 + - - 98 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-2698
SELECT CAST ( - COUNT ( * ) AS INTEGER ) * + 9 / + - 83 - + 59 + - - 98 AS col2
----
39

query I rowsort
SELECT ALL - 39 * 27 col1
----
-1053

query II rowsort
SELECT ALL + 96, 25 AS col2
----
96
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2701
SELECT + + CASE + 26 WHEN COUNT( * ) THEN NULL WHEN + - 95 THEN + COUNT( * ) * + 40 * CASE - 66 WHEN - - 91 * - - 95 / - ( + - 48 ) THEN NULL WHEN + 28 THEN NULL ELSE MIN( ALL + - COALESCE ( + 2, NULLIF ( 28, 34 + - NULLIF ( 11 - + 64, 58 + 28 ) ) + 55, 18 ) ) END END
----
NULL

skipif mysql # not compatible
query I rowsort label-2701
SELECT + + CASE + 26 WHEN COUNT ( * ) THEN NULL WHEN + - 95 THEN + COUNT ( * ) * + 40 * CASE - 66 WHEN - - 91 * - - 95 / - ( + - 48 ) THEN NULL WHEN + 28 THEN NULL ELSE MIN ( ALL + - COALESCE ( + 2, NULLIF ( 28, 34 + - NULLIF ( 11 - + 64, 58 + 28 ) ) + 55, 18 ) ) END END
----
NULL

query I rowsort
SELECT - - 84 * + + 48
----
4032

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2703
SELECT ALL + ( - COUNT( + - 64 ) ) * 89 DIV - - 12 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-2703
SELECT ALL + ( - COUNT ( + - 64 ) ) * 89 / - - 12 AS col2
----
-7

query I rowsort
SELECT ALL 14 * - 43 + + 42 AS col0
----
-560

query II rowsort
SELECT DISTINCT + - 18 AS col1, + 32 col1
----
-18
32

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT + 84 * 28 * COUNT( * ) + + - MAX( + - 44 ) + + 7
----
2403

skipif mysql # not compatible
query I rowsort label-2707
SELECT + 84 * 28 * COUNT ( * ) + + - MAX ( + - 44 ) + + 7
----
2403

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2708
SELECT 31 DIV + CAST( - 83 AS SIGNED ) + 18 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-2708
SELECT 31 / + CAST ( - 83 AS INTEGER ) + 18 AS col2
----
18

query I rowsort
SELECT - 29 * + 4 * + 54 AS col0
----
-6264

query I rowsort
SELECT 34 + + - 93 * + ( 65 )
----
-6011

onlyif mysql # DIV for integer division: 
query I rowsort label-2711
SELECT - 3 - 83 + ( + + 42 ) DIV + 34
----
-85

skipif mysql # not compatible
query I rowsort label-2711
SELECT - 3 - 83 + ( + + 42 ) / + 34
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2712
SELECT ALL + + 92 * + COUNT( ALL - 12 )
----
92

skipif mysql # not compatible
query I rowsort label-2712
SELECT ALL + + 92 * + COUNT ( ALL - 12 )
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-2713
SELECT ALL + 2 DIV + + 54
----
0

skipif mysql # not compatible
query I rowsort label-2713
SELECT ALL + 2 / + + 54
----
0

query I rowsort
SELECT DISTINCT - 26 + 78
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2715
SELECT ALL - 8 + - + COUNT( * ) * 91 AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-2715
SELECT ALL - 8 + - + COUNT ( * ) * 91 AS col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2716
SELECT 57 * - - 35 * - CASE + 37 WHEN - 15 THEN - + 36 WHEN - COALESCE ( + 4, COUNT( * ) + + 1 - MAX( 78 ) * + + 3 ) THEN 37 END * - NULLIF ( - 82, + - 34 * - 52 ) + + 93 * 79
----
NULL

skipif mysql # not compatible
query I rowsort label-2716
SELECT 57 * - - 35 * - CASE + 37 WHEN - 15 THEN - + 36 WHEN - COALESCE ( + 4, COUNT ( * ) + + 1 - MAX ( 78 ) * + + 3 ) THEN 37 END * - NULLIF ( - 82, + - 34 * - 52 ) + + 93 * 79
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2717
SELECT SUM( ALL 42 ) + - SUM( - 48 )
----
90

skipif mysql # not compatible
query I rowsort label-2717
SELECT SUM ( ALL 42 ) + - SUM ( - 48 )
----
90

query I rowsort
SELECT 73 + 35 col2
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT CASE - 90 WHEN + - ( - COUNT( 54 ) ) THEN - 71 WHEN - 25 THEN - + 78 END - + 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2719
SELECT CASE - 90 WHEN + - ( - COUNT ( 54 ) ) THEN - 71 WHEN - 25 THEN - + 78 END - + 99 AS col2
----
NULL

query I rowsort
SELECT ALL 20 + + 96 AS col0
----
116

onlyif mysql # aggregate syntax: 
query II rowsort label-2721
SELECT 8 + - 86 * + 44 AS col1, COUNT( * ) AS col1
----
-3776
1

skipif mysql # not compatible
query II rowsort label-2721
SELECT 8 + - 86 * + 44 AS col1, COUNT ( * ) AS col1
----
-3776
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2722
SELECT 79 + - NULLIF ( + - COUNT( * ), + 41 ) col2
----
80

skipif mysql # not compatible
query I rowsort label-2722
SELECT 79 + - NULLIF ( + - COUNT ( * ), + 41 ) col2
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2723
SELECT 4 * - MIN( DISTINCT - 12 ) + + 67 + - 60 * + + CASE + - 30 WHEN 22 * 59 - COUNT( * ) + + - 8 * - 29 / - 62 - COUNT( * ) THEN NULL WHEN - - 53 * CAST( NULL AS SIGNED ) THEN + 14 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2723
SELECT 4 * - MIN ( DISTINCT - 12 ) + + 67 + - 60 * + + CASE + - 30 WHEN 22 * 59 - COUNT ( * ) + + - 8 * - 29 / - 62 - COUNT ( * ) THEN NULL WHEN - - 53 * CAST ( NULL AS INTEGER ) THEN + 14 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2724
SELECT 52 - 31 * + 81 * - - SUM( DISTINCT + 98 ) + - - MIN( - NULLIF ( + 62, - 86 + 97 ) )
----
-246088

skipif mysql # not compatible
query I rowsort label-2724
SELECT 52 - 31 * + 81 * - - SUM ( DISTINCT + 98 ) + - - MIN ( - NULLIF ( + 62, - 86 + 97 ) )
----
-246088

query I rowsort
SELECT ALL + 19 - 98
----
-79

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2727
SELECT COUNT( * ) + + 19 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-2727
SELECT COUNT ( * ) + + 19 AS col2
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2728
SELECT ALL + - COALESCE ( COUNT( 91 ), - 44 ) DIV - 69
----
0

skipif mysql # not compatible
query I rowsort label-2728
SELECT ALL + - COALESCE ( COUNT ( 91 ), - 44 ) / - 69
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2729
SELECT DISTINCT + 25 DIV + 73 + - 25 col1
----
-25

skipif mysql # not compatible
query I rowsort label-2729
SELECT DISTINCT + 25 / + 73 + - 25 col1
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-2730
SELECT COUNT( * ) + + 28 AS col0, 7 AS col1
----
29
7

skipif mysql # not compatible
query II rowsort label-2730
SELECT COUNT ( * ) + + 28 AS col0, 7 AS col1
----
29
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT + 26 * + COUNT( * ) * - 27 AS col2
----
-702

skipif mysql # not compatible
query I rowsort label-2731
SELECT + 26 * + COUNT ( * ) * - 27 AS col2
----
-702

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT DISTINCT - - COUNT( ALL - + 95 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2732
SELECT DISTINCT - - COUNT ( ALL - + 95 ) AS col1
----
1

query I rowsort
SELECT ALL + 73 + - 46 * 74
----
-3331

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT + 26 * COUNT( - 90 ) + NULLIF ( + ( + 74 ), - 52 ) AS col2
----
100

skipif mysql # not compatible
query I rowsort label-2734
SELECT + 26 * COUNT ( - 90 ) + NULLIF ( + ( + 74 ), - 52 ) AS col2
----
100

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

skipif mysql # not compatible
query I rowsort label-2735
SELECT - MIN ( ALL - 66 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2736
SELECT ALL + 67 + + - COUNT( * ) + COALESCE ( + - COUNT( * ), + 94 ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-2736
SELECT ALL + 67 + + - COUNT ( * ) + COALESCE ( + - COUNT ( * ), + 94 ) AS col2
----
65

query II rowsort
SELECT 4, + 4
----
4
4

query I rowsort
SELECT 99 + - 34
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2739
SELECT 12 AS col0, CAST( NULL AS SIGNED )
----
12
NULL

skipif mysql # not compatible
query II rowsort label-2739
SELECT 12 AS col0, CAST ( NULL AS INTEGER )
----
12
NULL

query I rowsort
SELECT DISTINCT + 49 + + 59 + 42 + + ( - 46 )
----
104

query I rowsort
SELECT 92 * + + 21 col1
----
1932

onlyif mysql # aggregate syntax: 
query I rowsort label-2742
SELECT ALL SUM( + - 33 ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-2742
SELECT ALL SUM ( + - 33 ) AS col1
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-2743
SELECT ALL COUNT( * ), - ( + ( 93 ) ) AS col1
----
1
-93

skipif mysql # not compatible
query II rowsort label-2743
SELECT ALL COUNT ( * ), - ( + ( 93 ) ) AS col1
----
1
-93

query I rowsort
SELECT 82 * + 10 AS col1
----
820

onlyif mysql # aggregate syntax: 
query II rowsort label-2745
SELECT 18 * - CASE 41 WHEN + 42 + + + NULLIF ( 10, + ( - 93 ) / - 35 ) THEN NULL WHEN COUNT( * ) / + COUNT( * ) THEN + - 13 ELSE SUM( DISTINCT 67 ) + + COUNT( * ) + - 94 END AS col0, + 60
----
468
60

skipif mysql # not compatible
query II rowsort label-2745
SELECT 18 * - CASE 41 WHEN + 42 + + + NULLIF ( 10, + ( - 93 ) / - 35 ) THEN NULL WHEN COUNT ( * ) / + COUNT ( * ) THEN + - 13 ELSE SUM ( DISTINCT 67 ) + + COUNT ( * ) + - 94 END AS col0, + 60
----
468
60

query I rowsort
SELECT 24 + - + 5
----
19

query II rowsort
SELECT - 55, - 56 AS col0
----
-55
-56

query II rowsort
SELECT 28 col0, + 53
----
28
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2749
SELECT ALL + COALESCE ( 20, COUNT( * ) ) - + - 92 DIV 53 * + MAX( ALL - 90 ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-2749
SELECT ALL + COALESCE ( 20, COUNT ( * ) ) - + - 92 / 53 * + MAX ( ALL - 90 ) AS col2
----
-70

query II rowsort
SELECT DISTINCT + 5 AS col1, - 98 AS col0
----
5
-98

query II rowsort
SELECT + - 1 * + + 80 * - 73 col1, 47
----
5840
47

onlyif mysql # aggregate syntax: 
query II rowsort label-2752
SELECT ALL + 71 * - 78 + + - COUNT( * ), 76 + + COUNT( * ) col0
----
-5539
77

skipif mysql # not compatible
query II rowsort label-2752
SELECT ALL + 71 * - 78 + + - COUNT ( * ), 76 + + COUNT ( * ) col0
----
-5539
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2753
SELECT - COUNT( * ) DIV + 19 - + ( ( - 97 ) ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-2753
SELECT - COUNT ( * ) / + 19 - + ( ( - 97 ) ) AS col1
----
97

query I rowsort
SELECT + - 57 + 2
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2755
SELECT DISTINCT + - ( - 99 ) * - CAST( - 56 AS SIGNED ) + MAX( - 88 ) AS col0
----
5456

skipif mysql # not compatible
query I rowsort label-2755
SELECT DISTINCT + - ( - 99 ) * - CAST ( - 56 AS INTEGER ) + MAX ( - 88 ) AS col0
----
5456

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT DISTINCT + MIN( + 88 ) * 38 + + - 81 - + 55 AS col0
----
3208

skipif mysql # not compatible
query I rowsort label-2756
SELECT DISTINCT + MIN ( + 88 ) * 38 + + - 81 - + 55 AS col0
----
3208

query I rowsort
SELECT ALL + 70 * - 38 + 3 + + + 53 - + + 35 AS col2
----
-2639

query II rowsort
SELECT + 29 * + 5 - - ( - 18 ), + 99 col0
----
127
99

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

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

query II rowsort
SELECT + 64 + + 87 AS col2, 25
----
151
25

onlyif mysql # aggregate syntax: 
query II rowsort label-2761
SELECT + 75 * 80 AS col2, 94 * - 87 * + SUM( DISTINCT + - 3 ) AS col0
----
6000
24534

skipif mysql # not compatible
query II rowsort label-2761
SELECT + 75 * 80 AS col2, 94 * - 87 * + SUM ( DISTINCT + - 3 ) AS col0
----
6000
24534

query I rowsort
SELECT + 59 * + 40 + 55 AS col2
----
2415

onlyif mysql # aggregate syntax: 
query I rowsort label-2763
SELECT + 28 + - 18 + SUM( ALL - 55 ) * 51 AS col1
----
-2795

skipif mysql # not compatible
query I rowsort label-2763
SELECT + 28 + - 18 + SUM ( ALL - 55 ) * 51 AS col1
----
-2795

onlyif mysql # aggregate syntax: 
query I rowsort label-2764
SELECT - COALESCE ( + 89, + - 54, - COALESCE ( + 40, - NULLIF ( - 52, - - COALESCE ( + 19, + 96 + + 60 ) ) * - COUNT( * ), NULLIF ( + - COALESCE ( + 48, + - COALESCE ( + + 39, + COUNT( * ) - + COUNT( DISTINCT + 37 ) ) * 65 + + 28 ), + ( 99 ) ) ), 94 * + 58 )
----
-89

skipif mysql # not compatible
query I rowsort label-2764
SELECT - COALESCE ( + 89, + - 54, - COALESCE ( + 40, - NULLIF ( - 52, - - COALESCE ( + 19, + 96 + + 60 ) ) * - COUNT ( * ), NULLIF ( + - COALESCE ( + 48, + - COALESCE ( + + 39, + COUNT ( * ) - + COUNT ( DISTINCT + 37 ) ) * 65 + + 28 ), + ( 99 ) ) ), 94 * + 58 )
----
-89

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

skipif mysql # not compatible
query I rowsort label-2765
SELECT ALL MIN ( - 81 )
----
-81

query I rowsort
SELECT DISTINCT 45 - + 47 * - 35 * - - 62
----
102035

query II rowsort
SELECT - 74 + - - 30 AS col0, + 4 AS col1
----
-44
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2768
SELECT + MAX( DISTINCT + 46 ) + + - CASE WHEN NOT NULL = + 55 THEN - - 16 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2768
SELECT + MAX ( DISTINCT + 46 ) + + - CASE WHEN NOT NULL = + 55 THEN - - 16 ELSE NULL END
----
NULL

query I rowsort
SELECT - 44 * + 14 AS col1
----
-616

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2770
SELECT + 55 + + - COUNT( * ) + - - ( - 46 ) DIV 80 + - 58
----
-4

skipif mysql # not compatible
query I rowsort label-2770
SELECT + 55 + + - COUNT ( * ) + - - ( - 46 ) / 80 + - 58
----
-4

query I rowsort
SELECT - 32 + + 70 + + + 26
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2772
SELECT ALL MIN( - 66 ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-2772
SELECT ALL MIN ( - 66 ) AS col0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2773
SELECT - 83 * 14 + - 69 * 77 * NULLIF ( - 3, + COUNT( * ) ) * - ( + 61 ) + - 94 AS col2
----
-973535

skipif mysql # not compatible
query I rowsort label-2773
SELECT - 83 * 14 + - 69 * 77 * NULLIF ( - 3, + COUNT ( * ) ) * - ( + 61 ) + - 94 AS col2
----
-973535

onlyif mysql # aggregate syntax: 
query I rowsort label-2774
SELECT ALL - 2 * + + 83 * - COUNT( * ) - - + 23 + + - 60 AS col0
----
129

skipif mysql # not compatible
query I rowsort label-2774
SELECT ALL - 2 * + + 83 * - COUNT ( * ) - - + 23 + + - 60 AS col0
----
129

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2775
SELECT - COUNT( 96 ) + - 19 + - + NULLIF ( + SUM( + 87 ), - 38 ) + 44 + + - 5 * ( + + 8 ) * - ( + - 21 ) DIV + COUNT( * ) + + MAX( 33 ) + - COUNT( * ) * COALESCE ( + - COUNT( * ), 58 ) + 75 * + ( 31 ) AS col1
----
1456

skipif mysql # not compatible
query I rowsort label-2775
SELECT - COUNT ( 96 ) + - 19 + - + NULLIF ( + SUM ( + 87 ), - 38 ) + 44 + + - 5 * ( + + 8 ) * - ( + - 21 ) / + COUNT ( * ) + + MAX ( 33 ) + - COUNT ( * ) * COALESCE ( + - COUNT ( * ), 58 ) + 75 * + ( 31 ) AS col1
----
1456

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT ALL - - ( + - 55 ) * - + 28 * + CASE - SUM( + 71 ) WHEN ( + 69 ) + + 17 THEN - ( 95 ) ELSE NULL END * 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2776
SELECT ALL - - ( + - 55 ) * - + 28 * + CASE - SUM ( + 71 ) WHEN ( + 69 ) + + 17 THEN - ( 95 ) ELSE NULL END * 83 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2777
SELECT - - 22 + - COUNT ( * ) * - - COUNT ( * ) AS col0
----
21

query I rowsort
SELECT ALL - ( 65 ) * 98 + + - 94 + - 45
----
-6509

onlyif mysql # DIV for integer division: 
query I rowsort label-2779
SELECT - 50 DIV + - 92 * + 98 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2779
SELECT - 50 / + - 92 * + 98 AS col2
----
0

query I rowsort
SELECT - + 36 + + 90 + - - 87 * - + 24 * + 78
----
-162810

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT - + MIN( + 90 ) * COUNT( * ) * 60 + 4 + - 0 + COUNT( * ) AS col0
----
-5395

skipif mysql # not compatible
query I rowsort label-2781
SELECT - + MIN ( + 90 ) * COUNT ( * ) * 60 + 4 + - 0 + COUNT ( * ) AS col0
----
-5395

onlyif mysql # aggregate syntax: 
query I rowsort label-2782
SELECT + 57 / NULLIF ( CASE + 49 WHEN + MAX( ALL - - NULLIF ( + 37, - 52 ) ) THEN + MAX( 39 ) + + 8 END, + 89 ) - - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-2782
SELECT + 57 / NULLIF ( CASE + 49 WHEN + MAX ( ALL - - NULLIF ( + 37, - 52 ) ) THEN + MAX ( 39 ) + + 8 END, + 89 ) - - 75
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2783
SELECT - ( + 67 ) AS col0, COUNT( * ) col1
----
-67
1

skipif mysql # not compatible
query II rowsort label-2783
SELECT - ( + 67 ) AS col0, COUNT ( * ) col1
----
-67
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2784
SELECT ALL - 75 DIV - - 89 * + + 71 * - - 97 * + - 26 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2784
SELECT ALL - 75 / - - 89 * + + 71 * - - 97 * + - 26 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2785
SELECT ALL - - CAST( NULL AS SIGNED ) / + 82 + + + 79 + + + 68 / - - ( - - 73 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2785
SELECT ALL - - CAST ( NULL AS INTEGER ) / + 82 + + + 79 + + + 68 / - - ( - - 73 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2786
SELECT DISTINCT COUNT( * ) DIV - - 67 + - - 98 - - + 98 - - + 78 * + - 94 + + 94 + - - 20 AS col1
----
-7022

skipif mysql # not compatible
query I rowsort label-2786
SELECT DISTINCT COUNT ( * ) / - - 67 + - - 98 - - + 98 - - + 78 * + - 94 + + 94 + - - 20 AS col1
----
-7022

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2787
SELECT ALL 85 / - 63 * 45 + CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2787
SELECT ALL 85 / - 63 * 45 + CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) - CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT - 22 + - + 60 AS col1
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2789
SELECT ALL + CAST( NULL AS SIGNED ) * + 80 AS col2, 40 * 94 * + 56 * MAX( ( - - 32 ) )
----
NULL
6737920

skipif mysql # not compatible
query II rowsort label-2789
SELECT ALL + CAST ( NULL AS INTEGER ) * + 80 AS col2, 40 * 94 * + 56 * MAX ( ( - - 32 ) )
----
NULL
6737920

onlyif mysql # aggregate syntax: 
query II rowsort label-2790
SELECT NULLIF ( - 16, 23 * + + 51 + - - 31 ) AS col0, COUNT( * )
----
-16
1

skipif mysql # not compatible
query II rowsort label-2790
SELECT NULLIF ( - 16, 23 * + + 51 + - - 31 ) AS col0, COUNT ( * )
----
-16
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT + - 52 * COUNT( * ) + + 77 col1
----
25

skipif mysql # not compatible
query I rowsort label-2791
SELECT + - 52 * COUNT ( * ) + + 77 col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT + - CASE - 48 WHEN + SUM( ALL 76 ) + + NULLIF ( - COUNT( * ), 93 * CASE + 84 WHEN - 38 - - 84 * - 95 THEN NULL WHEN - 83 + + ( + 77 ) THEN 33 ELSE 33 + + 70 END ) + - + COUNT( ALL 69 ) + 93 * + 47 * - COUNT( * ) THEN 53 + 1 ELSE + 10 + 61 END
----
-71

skipif mysql # not compatible
query I rowsort label-2792
SELECT + - CASE - 48 WHEN + SUM ( ALL 76 ) + + NULLIF ( - COUNT ( * ), 93 * CASE + 84 WHEN - 38 - - 84 * - 95 THEN NULL WHEN - 83 + + ( + 77 ) THEN 33 ELSE 33 + + 70 END ) + - + COUNT ( ALL 69 ) + 93 * + 47 * - COUNT ( * ) THEN 53 + 1 ELSE + 10 + 61 END
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2793
SELECT - CASE - 93 WHEN CAST( + 1 AS SIGNED ) THEN NULL WHEN 52 + + + COALESCE ( 50, + - 6, - + COALESCE ( - 98, + AVG ( - 26 ), 60 + CAST( - 63 AS DECIMAL ) ) * 3 ) THEN + COUNT( * ) / + + 78 + - + SUM( + 82 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2793
SELECT - CASE - 93 WHEN CAST ( + 1 AS INTEGER ) THEN NULL WHEN 52 + + + COALESCE ( 50, + - 6, - + COALESCE ( - 98, + AVG ( - 26 ), 60 + CAST ( - 63 AS REAL ) ) * 3 ) THEN + COUNT ( * ) / + + 78 + - + SUM ( + 82 ) END AS col1
----
NULL

query I rowsort
SELECT - 52 * + 65 AS col0
----
-3380

query I rowsort
SELECT + 58 * + - 74 * + 25
----
-107300

query I rowsort
SELECT - 69 + + ( + 58 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT + SUM( + ( 40 ) )
----
40

skipif mysql # not compatible
query I rowsort label-2797
SELECT + SUM ( + ( 40 ) )
----
40

query I rowsort
SELECT + 34 + 49 - - - 16 * - 15
----
323

query I rowsort
SELECT ALL + ( - 32 ) AS col2
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2800
SELECT ALL 11 * - - COALESCE ( - + CASE - NULLIF ( - + 81, + - 14 + + MAX( ALL CAST( NULL AS SIGNED ) ) + - 10 ) WHEN - 30 + + SUM( ALL - + 81 ) - - - 49 * + + 3 / + + 84 THEN NULL ELSE + COALESCE ( - - 19, 5 + - COUNT( * ) ) END, 61, 17 * 24 + + COALESCE ( + 2, 75, 82 * 56 ) ) - 23
----
-232

skipif mysql # not compatible
query I rowsort label-2800
SELECT ALL 11 * - - COALESCE ( - + CASE - NULLIF ( - + 81, + - 14 + + MAX ( ALL CAST ( NULL AS INTEGER ) ) + - 10 ) WHEN - 30 + + SUM ( ALL - + 81 ) - - - 49 * + + 3 / + + 84 THEN NULL ELSE + COALESCE ( - - 19, 5 + - COUNT ( * ) ) END, 61, 17 * 24 + + COALESCE ( + 2, 75, 82 * 56 ) ) - 23
----
-232

onlyif mysql # aggregate syntax: 
query II rowsort label-2801
SELECT + 22 * - - CASE ( MAX( - 37 ) ) WHEN 32 THEN NULL ELSE - 45 * - + 45 END AS col2, + 6
----
44550
6

skipif mysql # not compatible
query II rowsort label-2801
SELECT + 22 * - - CASE ( MAX ( - 37 ) ) WHEN 32 THEN NULL ELSE - 45 * - + 45 END AS col2, + 6
----
44550
6

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2803
SELECT + 74 DIV - + 94 * + COUNT( * ) * - 10
----
0

skipif mysql # not compatible
query I rowsort label-2803
SELECT + 74 / - + 94 * + COUNT ( * ) * - 10
----
0

query I rowsort
SELECT - 86 * + 17 AS col2
----
-1462

onlyif mysql # aggregate syntax: 
query I rowsort label-2805
SELECT + 92 + + - 16 + + 85 * 87 * - SUM( DISTINCT - 38 ) AS col0
----
281086

skipif mysql # not compatible
query I rowsort label-2805
SELECT + 92 + + - 16 + + 85 * 87 * - SUM ( DISTINCT - 38 ) AS col0
----
281086

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2806
SELECT ALL 97 DIV 46 * - COUNT( * ), 74 + + - 12 AS col1
----
-2
62

skipif mysql # not compatible
query II rowsort label-2806
SELECT ALL 97 / 46 * - COUNT ( * ), 74 + + - 12 AS col1
----
-2
62

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2808
SELECT + COUNT( * ) - COUNT( - - 79 ) * - 95
----
96

skipif mysql # not compatible
query I rowsort label-2808
SELECT + COUNT ( * ) - COUNT ( - - 79 ) * - 95
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-2809
SELECT + 44 DIV 45 col0
----
0

skipif mysql # not compatible
query I rowsort label-2809
SELECT + 44 / 45 col0
----
0

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

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

query I rowsort
SELECT + 32 * - 31
----
-992

query II rowsort
SELECT DISTINCT 52, 57 AS col0
----
52
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2813
SELECT ALL CASE + 98 WHEN - CASE - + 36 WHEN MIN( 57 ) THEN 97 END * + 77 + - + 39 THEN NULL ELSE 54 / - CASE - 84 WHEN - - 46 THEN 19 - + + SUM( - 32 ) + + + 74 END - - + 29 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2813
SELECT ALL CASE + 98 WHEN - CASE - + 36 WHEN MIN ( 57 ) THEN 97 END * + 77 + - + 39 THEN NULL ELSE 54 / - CASE - 84 WHEN - - 46 THEN 19 - + + SUM ( - 32 ) + + + 74 END - - + 29 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT 69 + - ( - 99 )
----
168

query I rowsort
SELECT 62 * + 92 * - 46 * - 13 AS col0
----
3410992

query I rowsort
SELECT - NULLIF ( - 82, + - 22 )
----
82

query I rowsort
SELECT 52 + + 2 AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2818
SELECT ALL - - 58 * COUNT( * ) AS col0
----
58

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

query I rowsort
SELECT DISTINCT 58 + - + 79 * + 72
----
-5630

onlyif mysql # aggregate syntax: 
query III rowsort label-2820
SELECT - + 1 AS col2, + COUNT( * ) + + 25, 8 AS col0
----
-1
26
8

skipif mysql # not compatible
query III rowsort label-2820
SELECT - + 1 AS col2, + COUNT ( * ) + + 25, 8 AS col0
----
-1
26
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2821
SELECT ALL + + 46 + + MIN( DISTINCT - 86 ) * + + 14
----
-1158

skipif mysql # not compatible
query I rowsort label-2821
SELECT ALL + + 46 + + MIN ( DISTINCT - 86 ) * + + 14
----
-1158

onlyif mysql # DIV for integer division: 
query I rowsort label-2822
SELECT + 20 DIV + 85
----
0

skipif mysql # not compatible
query I rowsort label-2822
SELECT + 20 / + 85
----
0

query I rowsort
SELECT 65 * + 52
----
3380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2824
SELECT - + 55 * - SUM( DISTINCT 28 ) + - 28 + + CAST( NULL AS SIGNED ) AS col0, + CAST( NULL AS DECIMAL )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2824
SELECT - + 55 * - SUM ( DISTINCT 28 ) + - 28 + + CAST ( NULL AS INTEGER ) AS col0, + CAST ( NULL AS REAL )
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2825
SELECT ALL + + 54 + + + 69 + + 87 DIV COUNT( * )
----
210

skipif mysql # not compatible
query I rowsort label-2825
SELECT ALL + + 54 + + + 69 + + 87 / COUNT ( * )
----
210

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2826
SELECT + + 76 DIV 78 * + CAST( + + 1 AS SIGNED ) + - 94 + ( + 6 ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-2826
SELECT + + 76 / 78 * + CAST ( + + 1 AS INTEGER ) + - 94 + ( + 6 ) AS col1
----
-88

query I rowsort
SELECT 1 * - 96
----
-96

query I rowsort
SELECT 3 + + - 93
----
-90

query I rowsort
SELECT 3 * - 17
----
-51

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

skipif mysql # not compatible
query I rowsort label-2830
SELECT + 26 * + 91 * + + CAST ( NULL AS INTEGER ) + 30
----
NULL

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

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

query I rowsort
SELECT DISTINCT - COALESCE ( + 34, - - 91, 72 )
----
-34

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT 82 * + COUNT( ALL 56 ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-2835
SELECT 82 * + COUNT ( ALL 56 ) AS col0
----
82

query I rowsort
SELECT 18 * - + ( 6 ) * + + 22
----
-2376

query II rowsort
SELECT + 86, + ( + + ( + 47 ) ) * - 15 - - 56 AS col0
----
86
-649

query II rowsort
SELECT + 88 AS col1, 36 + - - 20 AS col0
----
88
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2839
SELECT 71 AS col2, + CASE 82 WHEN 95 THEN - COUNT( + 14 ) * + + 60 + COALESCE ( - 51, + - MAX( - 26 ) * - ( COUNT( * ) ) + - - 7 - - 11 * 5 / - 57 ) + NULLIF ( + NULLIF ( - CAST( + 30 AS SIGNED ), 54 ), - 29 + 38 ) ELSE NULL END
----
71
NULL

skipif mysql # not compatible
query II rowsort label-2839
SELECT 71 AS col2, + CASE 82 WHEN 95 THEN - COUNT ( + 14 ) * + + 60 + COALESCE ( - 51, + - MAX ( - 26 ) * - ( COUNT ( * ) ) + - - 7 - - 11 * 5 / - 57 ) + NULLIF ( + NULLIF ( - CAST ( + 30 AS INTEGER ), 54 ), - 29 + 38 ) ELSE NULL END
----
71
NULL

query I rowsort
SELECT 19 * + 64 * 60 - - 25 * + + 60 + + 79 * - 33 + 29 - - 85 AS col0
----
71967

onlyif mysql # aggregate syntax: 
query I rowsort label-2841
SELECT 8 * MIN( - 50 ) AS col1
----
-400

skipif mysql # not compatible
query I rowsort label-2841
SELECT 8 * MIN ( - 50 ) AS col1
----
-400

query I rowsort
SELECT DISTINCT - 1 * 79
----
-79

query II rowsort
SELECT ALL 51 AS col1, - ( 86 ) AS col1
----
51
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT DISTINCT - COUNT( * ) + - - ( - + 60 )
----
-61

skipif mysql # not compatible
query I rowsort label-2844
SELECT DISTINCT - COUNT ( * ) + - - ( - + 60 )
----
-61

query I rowsort
SELECT 56 * - 78 + + - 10 col0
----
-4378

query I rowsort
SELECT - - 98 AS col2
----
98

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2847
SELECT - CAST( NULL AS DECIMAL ) + - 59 + + + 88 * 24 * + COUNT( * ) + - + COALESCE ( + SUM( DISTINCT - 74 ), - 99 / + CASE - + SUM( + 93 ) WHEN + + 83 THEN + 32 ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2847
SELECT - CAST ( NULL AS REAL ) + - 59 + + + 88 * 24 * + COUNT ( * ) + - + COALESCE ( + SUM ( DISTINCT - 74 ), - 99 / + CASE - + SUM ( + 93 ) WHEN + + 83 THEN + 32 ELSE NULL END ) AS col2
----
NULL

query I rowsort
SELECT 31 + + 38 + - 7
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2849
SELECT + COUNT( * ) * + 10 - - 32 * - - 5 * 48
----
7690

skipif mysql # not compatible
query I rowsort label-2849
SELECT + COUNT ( * ) * + 10 - - 32 * - - 5 * 48
----
7690

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2850
SELECT DISTINCT + 8 * - - CASE WHEN 92 IS NOT NULL THEN NULL ELSE - 15 * - NULLIF ( ( - 80 ), - + ( - 64 ) ) END - - CAST( NULL AS SIGNED ) * - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-2850
SELECT DISTINCT + 8 * - - CASE WHEN 92 IS NOT NULL THEN NULL ELSE - 15 * - NULLIF ( ( - 80 ), - + ( - 64 ) ) END - - CAST ( NULL AS INTEGER ) * - 82
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2851
SELECT ALL MAX( DISTINCT - - 40 ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-2851
SELECT ALL MAX ( DISTINCT - - 40 ) AS col1
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-2852
SELECT ALL + 81 DIV 59 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2852
SELECT ALL + 81 / 59 AS col2
----
1

query I rowsort
SELECT + 68 + ( + 32 ) AS col0
----
100

query I rowsort
SELECT ALL + 59 + - 65
----
-6

query I rowsort
SELECT ALL - 89 * + 91 * - 98 + - 82 + + + 47
----
793667

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2856
SELECT ALL - CASE 54 WHEN + - COUNT( * ) * - CAST( NULL AS SIGNED ) * + - 85 THEN - 25 * + COUNT( * ) WHEN + ( 34 ) - + 69 THEN - - 11 ELSE NULL END, 72 + - CAST( NULL AS SIGNED ) + - - 80 - - + 21 - - 4
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2856
SELECT ALL - CASE 54 WHEN + - COUNT ( * ) * - CAST ( NULL AS INTEGER ) * + - 85 THEN - 25 * + COUNT ( * ) WHEN + ( 34 ) - + 69 THEN - - 11 ELSE NULL END, 72 + - CAST ( NULL AS INTEGER ) + - - 80 - - + 21 - - 4
----
NULL
NULL

query I rowsort
SELECT ALL 87 - + 78 AS col2
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2858
SELECT 79 * - + NULLIF ( - 6, 14 * 37 + + 62 + - MIN( ALL 8 ) * + - CAST( NULL AS SIGNED ) + + 75 )
----
474

skipif mysql # not compatible
query I rowsort label-2858
SELECT 79 * - + NULLIF ( - 6, 14 * 37 + + 62 + - MIN ( ALL 8 ) * + - CAST ( NULL AS INTEGER ) + + 75 )
----
474

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2859
SELECT - 27 * CASE - 77 WHEN + 53 THEN - - COUNT( * ) + + - COALESCE ( 34, + 33 + + 42, + - 62 * COUNT( * ) ) + - + ( - CAST( + 98 AS SIGNED ) ) + 24 WHEN - + 88 * 26 THEN NULL WHEN + 17 THEN CAST( NULL AS DECIMAL ) END - - 65 + - 32 + - 36 * + 90 * CAST( - AVG ( 9 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2859
SELECT - 27 * CASE - 77 WHEN + 53 THEN - - COUNT ( * ) + + - COALESCE ( 34, + 33 + + 42, + - 62 * COUNT ( * ) ) + - + ( - CAST ( + 98 AS INTEGER ) ) + 24 WHEN - + 88 * 26 THEN NULL WHEN + 17 THEN CAST ( NULL AS REAL ) END - - 65 + - 32 + - 36 * + 90 * CAST ( - AVG ( 9 ) AS INTEGER )
----
NULL

query I rowsort
SELECT 38 + 80 AS col2
----
118

onlyif mysql # aggregate syntax: 
query II rowsort label-2861
SELECT + 99, 62 * + SUM( DISTINCT - 31 ) AS col0
----
99
-1922

skipif mysql # not compatible
query II rowsort label-2861
SELECT + 99, 62 * + SUM ( DISTINCT - 31 ) AS col0
----
99
-1922

query I rowsort
SELECT 69 + - 41
----
28

query III rowsort
SELECT ALL - 28, + 11 AS col0, + 50 * - 89 * 25 AS col0
----
-28
11
-111250

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2865
SELECT - COUNT( * ) * - 96 - - + 54 + - 67 * 73 / COUNT( * ) + ( - 51 ) - + - ( + CASE + COUNT( * ) WHEN + - 56 * - - ( - 10 ) THEN - + 22 ELSE NULL END ) + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-2865
SELECT - COUNT ( * ) * - 96 - - + 54 + - 67 * 73 / COUNT ( * ) + ( - 51 ) - + - ( + CASE + COUNT ( * ) WHEN + - 56 * - - ( - 10 ) THEN - + 22 ELSE NULL END ) + 16
----
NULL

query I rowsort
SELECT + 93 * - ( + + 69 )
----
-6417

query II rowsort
SELECT - 0, - ( - 47 ) AS col2
----
0
47

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2868
SELECT DISTINCT 35 * CAST( - 69 AS SIGNED ) - + + 81 + - 6 + - 82 DIV - 29
----
-2500

skipif mysql # not compatible
query I rowsort label-2868
SELECT DISTINCT 35 * CAST ( - 69 AS INTEGER ) - + + 81 + - 6 + - 82 / - 29
----
-2500

onlyif mysql # DIV for integer division: 
query I rowsort label-2869
SELECT ALL 87 DIV 42
----
2

skipif mysql # not compatible
query I rowsort label-2869
SELECT ALL 87 / 42
----
2

query I rowsort
SELECT 93 + - 47 * - - 86 * - - 0 * - 76
----
93

query II rowsort
SELECT ALL + 77 * + 69 * 65 AS col2, 50
----
345345
50

onlyif mysql # DIV for integer division: 
query I rowsort label-2872
SELECT DISTINCT 22 * 41 DIV 32 * - 8
----
-224

skipif mysql # not compatible
query I rowsort label-2872
SELECT DISTINCT 22 * 41 / 32 * - 8
----
-224

onlyif mysql # aggregate syntax: 
query I rowsort label-2873
SELECT 12 * - 92 * COUNT( * ) AS col0
----
-1104

skipif mysql # not compatible
query I rowsort label-2873
SELECT 12 * - 92 * COUNT ( * ) AS col0
----
-1104

query I rowsort
SELECT ALL + 86 * 10
----
860

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT SUM( DISTINCT - 21 ) col2
----
-21

skipif mysql # not compatible
query I rowsort label-2875
SELECT SUM ( DISTINCT - 21 ) col2
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-2876
SELECT 18 DIV - 90
----
0

skipif mysql # not compatible
query I rowsort label-2876
SELECT 18 / - 90
----
0

query I rowsort
SELECT 2 * ( + + 99 )
----
198

onlyif mysql # aggregate syntax: 
query II rowsort label-2878
SELECT DISTINCT + COUNT( * ) + + 72 col2, 28 + 45 AS col0
----
73
73

skipif mysql # not compatible
query II rowsort label-2878
SELECT DISTINCT + COUNT ( * ) + + 72 col2, 28 + 45 AS col0
----
73
73

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

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

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

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

query I rowsort
SELECT DISTINCT + 42 + 61 * + 89
----
5471

query I rowsort
SELECT ALL + 79 * - 22 * 91 AS col2
----
-158158

query I rowsort
SELECT DISTINCT - - 4 + + NULLIF ( - - ( + 58 ), + 38 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT DISTINCT + - 25 * + + 75 * - + COUNT( DISTINCT 63 ) AS col0
----
1875

skipif mysql # not compatible
query I rowsort label-2884
SELECT DISTINCT + - 25 * + + 75 * - + COUNT ( DISTINCT 63 ) AS col0
----
1875

onlyif mysql # aggregate syntax: 
query I rowsort label-2885
SELECT ALL 92 + - + CASE - 86 WHEN + 81 THEN NULL WHEN 9 * + SUM( - 95 ) THEN COUNT( * ) / COUNT( * ) END * - 76 + + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-2885
SELECT ALL 92 + - + CASE - 86 WHEN + 81 THEN NULL WHEN 9 * + SUM ( - 95 ) THEN COUNT ( * ) / COUNT ( * ) END * - 76 + + 95
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT - + COALESCE ( + 35, + 20 - ( MAX( ALL - 5 ) ) * 32 ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-2887
SELECT - + COALESCE ( + 35, + 20 - ( MAX ( ALL - 5 ) ) * 32 ) AS col1
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2888
SELECT ALL + + 75 * COUNT( * ) DIV COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-2888
SELECT ALL + + 75 * COUNT ( * ) / COUNT ( * )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2889
SELECT ALL - COUNT( * ) - - - 45 AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-2889
SELECT ALL - COUNT ( * ) - - - 45 AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2890
SELECT + - 41 * - - 5 * + 13 + COUNT( * )
----
-2664

skipif mysql # not compatible
query I rowsort label-2890
SELECT + - 41 * - - 5 * + 13 + COUNT ( * )
----
-2664

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2892
SELECT ALL + COUNT( - 74 ) DIV + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2892
SELECT ALL + COUNT ( - 74 ) / + COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2893
SELECT DISTINCT + - MAX( 57 ) DIV + - 85
----
0

skipif mysql # not compatible
query I rowsort label-2893
SELECT DISTINCT + - MAX ( 57 ) / + - 85
----
0

query I rowsort
SELECT ALL ( 23 ) * - ( - 4 ) - + 27 * - 76
----
2144

query I rowsort
SELECT + 91 - - + 80
----
171

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2896
SELECT + - COUNT( * ) DIV + 15 + - - 46 DIV + - 13 + 31 AS col1, 18 + + 73 AS col2
----
28
91

skipif mysql # not compatible
query II rowsort label-2896
SELECT + - COUNT ( * ) / + 15 + - - 46 / + - 13 + 31 AS col1, 18 + + 73 AS col2
----
28
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT ALL + SUM( ALL 83 ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-2897
SELECT ALL + SUM ( ALL 83 ) AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT ALL 81 * COUNT( * ) * - 25
----
-2025

skipif mysql # not compatible
query I rowsort label-2898
SELECT ALL 81 * COUNT ( * ) * - 25
----
-2025

onlyif mysql # aggregate syntax: 
query I rowsort label-2899
SELECT + CASE - NULLIF ( + + 82, + + 81 ) WHEN + 85 / + - 63 THEN + 49 ELSE NULL END * + + 57 + + + COUNT( - + ( + CASE - 11 WHEN 70 / + NULLIF ( - 74, + ( + 31 ) ) THEN 85 END ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2899
SELECT + CASE - NULLIF ( + + 82, + + 81 ) WHEN + 85 / + - 63 THEN + 49 ELSE NULL END * + + 57 + + + COUNT ( - + ( + CASE - 11 WHEN 70 / + NULLIF ( - 74, + ( + 31 ) ) THEN 85 END ) ) AS col2
----
NULL

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

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

query I rowsort
SELECT ( 21 ) AS col1
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2902
SELECT COALESCE ( - 19, + - 26 ) * - COALESCE ( + + CAST( NULL AS SIGNED ), + - CASE CASE - + ( - 58 ) WHEN + 1 THEN - NULLIF ( 17, 23 + 41 + - 0 / - - CAST( NULL AS SIGNED ) ) WHEN - 81 * + 73 + 51 THEN - 86 END WHEN + 71 + AVG ( DISTINCT + 73 ) THEN 91 END + 90 ) + - 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2902
SELECT COALESCE ( - 19, + - 26 ) * - COALESCE ( + + CAST ( NULL AS INTEGER ), + - CASE CASE - + ( - 58 ) WHEN + 1 THEN - NULLIF ( 17, 23 + 41 + - 0 / - - CAST ( NULL AS INTEGER ) ) WHEN - 81 * + 73 + 51 THEN - 86 END WHEN + 71 + AVG ( DISTINCT + 73 ) THEN 91 END + 90 ) + - 49 AS col1
----
NULL

query I rowsort
SELECT ( + - 18 )
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-2904
SELECT + 67 DIV 27 + + 31 * - + 54 AS col1
----
-1672

skipif mysql # not compatible
query I rowsort label-2904
SELECT + 67 / 27 + + 31 * - + 54 AS col1
----
-1672

query I rowsort
SELECT - 80 * - 70 - + 57 - - 58 AS col2
----
5601

onlyif mysql # DIV for integer division: 
query I rowsort label-2906
SELECT + 15 + - 28 DIV - 14
----
17

skipif mysql # not compatible
query I rowsort label-2906
SELECT + 15 + - 28 / - 14
----
17

query II rowsort
SELECT ALL + 37, 23 AS col1
----
37
23

query II rowsort
SELECT DISTINCT + 40 AS col2, + 34 AS col2
----
40
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2909
SELECT ALL 23 * 75 / MIN( - - 3 ) + + - CAST( NULL AS SIGNED ) - - 12 + - - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-2909
SELECT ALL 23 * 75 / MIN ( - - 3 ) + + - CAST ( NULL AS INTEGER ) - - 12 + - - 54
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2911
SELECT - COUNT( 40 ) + + 62
----
61

skipif mysql # not compatible
query I rowsort label-2911
SELECT - COUNT ( 40 ) + + 62
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2912
SELECT ALL + 59 * - CAST( - 38 AS SIGNED ) + + - 50 col2
----
2192

skipif mysql # not compatible
query I rowsort label-2912
SELECT ALL + 59 * - CAST ( - 38 AS INTEGER ) + + - 50 col2
----
2192

query I rowsort
SELECT DISTINCT - 38 * - 69 AS col1
----
2622

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT ALL + SUM( DISTINCT - 10 ) col0
----
-10

skipif mysql # not compatible
query I rowsort label-2914
SELECT ALL + SUM ( DISTINCT - 10 ) col0
----
-10

query I rowsort
SELECT + 67 * - 19 AS col1
----
-1273

query III rowsort
SELECT 93 * + 89 + - + 29 AS col2, - 52 AS col2, - 89
----
8248
-52
-89

query I rowsort
SELECT ALL 6 * - 76 AS col2
----
-456

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT ALL + MIN( ALL + 98 ) * - 92 - - COUNT( * )
----
-9015

skipif mysql # not compatible
query I rowsort label-2918
SELECT ALL + MIN ( ALL + 98 ) * - 92 - - COUNT ( * )
----
-9015

query I rowsort
SELECT - 50 * - - 8
----
-400

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT DISTINCT - 93 * CASE 68 WHEN 77 THEN - 27 * - 92 WHEN - 52 THEN NULL END / COALESCE ( 61, 18 ) * - 97 + + - 3 + + MAX( + 28 ) - + - 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2921
SELECT DISTINCT - 93 * CASE 68 WHEN 77 THEN - 27 * - 92 WHEN - 52 THEN NULL END / COALESCE ( 61, 18 ) * - 97 + + - 3 + + MAX ( + 28 ) - + - 54 AS col0
----
NULL

query I rowsort
SELECT - + 76 + + - 67 AS col1
----
-143

query I rowsort
SELECT - + 12 * - 16 * - 63 AS col0
----
-12096

query I rowsort
SELECT ALL + 7 * - 65
----
-455

query I rowsort
SELECT - - 1 + + + 54
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2926
SELECT + 9 - + 62 + + - COUNT( DISTINCT + - COALESCE ( - 84, 76 ) ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-2926
SELECT + 9 - + 62 + + - COUNT ( DISTINCT + - COALESCE ( - 84, 76 ) ) AS col1
----
-54

query II rowsort
SELECT ALL 84 AS col1, + 45 * 88 * 56 AS col2
----
84
221760

onlyif mysql # aggregate syntax: 
query I rowsort label-2928
SELECT - MAX( 85 ) + + + 85 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2928
SELECT - MAX ( 85 ) + + + 85 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2929
SELECT DISTINCT - + 5 * - MIN( DISTINCT - + 11 ), 96 AS col1
----
-55
96

skipif mysql # not compatible
query II rowsort label-2929
SELECT DISTINCT - + 5 * - MIN ( DISTINCT - + 11 ), 96 AS col1
----
-55
96

onlyif mysql # aggregate syntax: 
query II rowsort label-2930
SELECT ALL COUNT( * ) AS col1, - MIN( DISTINCT ( + 89 ) ) AS col1
----
1
-89

skipif mysql # not compatible
query II rowsort label-2930
SELECT ALL COUNT ( * ) AS col1, - MIN ( DISTINCT ( + 89 ) ) AS col1
----
1
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-2931
SELECT ALL 32 DIV + - 60 * + - 23 + - + 70 DIV 40 + - 26 AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-2931
SELECT ALL 32 / + - 60 * + - 23 + - + 70 / 40 + - 26 AS col0
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2932
SELECT + - 86 + + 52 + - 25 * + 2 + + SUM( DISTINCT + 95 ) DIV - + 25 AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-2932
SELECT + - 86 + + 52 + - 25 * + 2 + + SUM ( DISTINCT + 95 ) / - + 25 AS col0
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-2933
SELECT ALL + COUNT( * ) AS col1, + 11
----
1
11

skipif mysql # not compatible
query II rowsort label-2933
SELECT ALL + COUNT ( * ) AS col1, + 11
----
1
11

query I rowsort
SELECT + 51 + 23 * - 86 + - 28 AS col0
----
-1955

query I rowsort
SELECT ALL 34 + - + 47 * + - 17
----
833

query I rowsort
SELECT - 39 * - 73 * - 74 AS col0
----
-210678

query I rowsort
SELECT + 45 + - 73 AS col1
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2938
SELECT + CASE + CAST( NULL AS SIGNED ) WHEN COALESCE ( 86, + MAX( 68 ) * + - 73 / 23 ) + - ( 74 ) THEN + 59 + - 28 * + 79 - + + 65 + 23 - + AVG ( ALL + 20 ) * - 24 * + - 44 * MAX( ALL + 19 ) - - + 2 + + ( CASE + ( + 84 ) WHEN - 93 THEN 3 * 47 + - 7 * + 28 ELSE NULL END ) ELSE COUNT( * ) * NULLIF ( 41 * + 97, ( + CAST( NULL AS DECIMAL ) ) ) + 96 END AS col1
----
4073

skipif mysql # not compatible
query I rowsort label-2938
SELECT + CASE + CAST ( NULL AS INTEGER ) WHEN COALESCE ( 86, + MAX ( 68 ) * + - 73 / 23 ) + - ( 74 ) THEN + 59 + - 28 * + 79 - + + 65 + 23 - + AVG ( ALL + 20 ) * - 24 * + - 44 * MAX ( ALL + 19 ) - - + 2 + + ( CASE + ( + 84 ) WHEN - 93 THEN 3 * 47 + - 7 * + 28 ELSE NULL END ) ELSE COUNT ( * ) * NULLIF ( 41 * + 97, ( + CAST ( NULL AS REAL ) ) ) + 96 END AS col1
----
4073

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2939
SELECT DISTINCT - COUNT( - - 74 ) DIV 78 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2939
SELECT DISTINCT - COUNT ( - - 74 ) / 78 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2940
SELECT DISTINCT 51 / + 27 + - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2940
SELECT DISTINCT 51 / + 27 + - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT ALL 21 + + SUM( ALL + 63 ) col2
----
84

skipif mysql # not compatible
query I rowsort label-2941
SELECT ALL 21 + + SUM ( ALL + 63 ) col2
----
84

query I rowsort
SELECT DISTINCT 33 + - + 58 * + 72 AS col0
----
-4143

query I rowsort
SELECT ALL 67 + 79 AS col2
----
146

query I rowsort
SELECT DISTINCT ( 53 ) * + - 67
----
-3551

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2946
SELECT 36 * 2 DIV - CASE COUNT( * ) WHEN + 12 THEN + - 33 * - COUNT( * ) ELSE - NULLIF ( + - 46, 54 * - 57 ) * MIN( DISTINCT - + 19 ) DIV + + ( - 4 ) - + 8 END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2946
SELECT 36 * 2 / - CASE COUNT ( * ) WHEN + 12 THEN + - 33 * - COUNT ( * ) ELSE - NULLIF ( + - 46, 54 * - 57 ) * MIN ( DISTINCT - + 19 ) / + + ( - 4 ) - + 8 END AS col1
----
0

query I rowsort
SELECT DISTINCT - - 49 * - + 39
----
-1911

onlyif mysql # DIV for integer division: 
query I rowsort label-2948
SELECT ALL - 2 DIV + 24 * + 6 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2948
SELECT ALL - 2 / + 24 * + 6 AS col0
----
0

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2950
SELECT + 14 DIV + 55 col1, 14 * + ( CAST( NULL AS SIGNED ) ) AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2950
SELECT + 14 / + 55 col1, 14 * + ( CAST ( NULL AS INTEGER ) ) AS col2
----
0
NULL

query I rowsort
SELECT - 64 * 82 AS col2
----
-5248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2952
SELECT + CASE + + 46 WHEN AVG ( - 25 ) THEN + + 88 + - 81 + - COUNT( * ) * 26 / + CAST( - CASE + + SUM( 15 ) WHEN - 81 THEN NULL WHEN 7 THEN - 34 END AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2952
SELECT + CASE + + 46 WHEN AVG ( - 25 ) THEN + + 88 + - 81 + - COUNT ( * ) * 26 / + CAST ( - CASE + + SUM ( 15 ) WHEN - 81 THEN NULL WHEN 7 THEN - 34 END AS INTEGER ) ELSE NULL END
----
NULL

query II rowsort
SELECT 34 - - 53, - 15 col0
----
87
-15

query I rowsort
SELECT + 30 * 51 AS col0
----
1530

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2955
SELECT ALL - - 28 + 6 + - 0 DIV + NULLIF ( COUNT( * ), - - NULLIF ( 87, - 87 ) + - SUM( - + 58 ) ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-2955
SELECT ALL - - 28 + 6 + - 0 / + NULLIF ( COUNT ( * ), - - NULLIF ( 87, - 87 ) + - SUM ( - + 58 ) ) AS col2
----
34

query I rowsort
SELECT ALL + 27 + + + 59 col0
----
86

query I rowsort
SELECT DISTINCT 63 + - 81 * - 0 * - 81 AS col1
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2958
SELECT ALL - 55 + - CAST( NULL AS SIGNED ) * - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-2958
SELECT ALL - 55 + - CAST ( NULL AS INTEGER ) * - 35
----
NULL

query I rowsort
SELECT DISTINCT - 82 * - - 30
----
-2460

query I rowsort
SELECT ALL + NULLIF ( + 22, - 47 ) + + 76 * - 34 * - + 92
----
237750

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

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

query I rowsort
SELECT ALL 80 + + + 29
----
109

query I rowsort
SELECT 27 * + 40
----
1080

onlyif mysql # aggregate syntax: 
query III rowsort label-2964
SELECT 46 AS col0, COUNT( ALL 0 ), - 50 AS col0
----
46
1
-50

skipif mysql # not compatible
query III rowsort label-2964
SELECT 46 AS col0, COUNT ( ALL 0 ), - 50 AS col0
----
46
1
-50

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT 92 * ( + COUNT( * ) ) * 95 + - - 50 + - 24 + + 74 col2
----
8840

skipif mysql # not compatible
query I rowsort label-2966
SELECT 92 * ( + COUNT ( * ) ) * 95 + - - 50 + - 24 + + 74 col2
----
8840

query I rowsort
SELECT 52 * + 10
----
520

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT COUNT( * ) + - 70 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-2968
SELECT COUNT ( * ) + - 70 AS col2
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2969
SELECT + COUNT( * ) * + 94 - + 98 DIV + 69 AS col2
----
93

skipif mysql # not compatible
query I rowsort label-2969
SELECT + COUNT ( * ) * + 94 - + 98 / + 69 AS col2
----
93

query I rowsort
SELECT ALL 14 * + + 15
----
210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2971
SELECT 42 * - CAST( NULL AS SIGNED ) * - - 55 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2971
SELECT 42 * - CAST ( NULL AS INTEGER ) * - - 55 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2972
SELECT ALL + 20 DIV + + 23 * - 11 col0
----
0

skipif mysql # not compatible
query I rowsort label-2972
SELECT ALL + 20 / + + 23 * - 11 col0
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2974
SELECT ALL 8 * CASE - - 82 WHEN - 37 * + COUNT( * ) / NULLIF ( + - 12, - - 2 * 61 + + 9 ) * - 6 - + 44 THEN NULL WHEN 81 - - + MIN( - 51 ) THEN + 1 ELSE - COALESCE ( + 46, + - CAST( NULL AS SIGNED ) + + 51 ) END
----
-368

skipif mysql # not compatible
query I rowsort label-2974
SELECT ALL 8 * CASE - - 82 WHEN - 37 * + COUNT ( * ) / NULLIF ( + - 12, - - 2 * 61 + + 9 ) * - 6 - + 44 THEN NULL WHEN 81 - - + MIN ( - 51 ) THEN + 1 ELSE - COALESCE ( + 46, + - CAST ( NULL AS INTEGER ) + + 51 ) END
----
-368

onlyif mysql # aggregate syntax: 
query III rowsort label-2975
SELECT ALL - + 62, COUNT( * ) + ( COUNT( * ) ) + - + 26 * - - MAX( + 70 ) + 58 * COUNT( DISTINCT 34 ) + + 87 - - NULLIF ( + 51, - 79 ) + - - 53 * - 90 * 16 * 79 AS col2, + COUNT( + 1 ) - + 17 AS col2
----
-62
-6030902
-16

skipif mysql # not compatible
query III rowsort label-2975
SELECT ALL - + 62, COUNT ( * ) + ( COUNT ( * ) ) + - + 26 * - - MAX ( + 70 ) + 58 * COUNT ( DISTINCT 34 ) + + 87 - - NULLIF ( + 51, - 79 ) + - - 53 * - 90 * 16 * 79 AS col2, + COUNT ( + 1 ) - + 17 AS col2
----
-62
-6030902
-16

query I rowsort
SELECT + - 6 * + + 92 + 28 AS col1
----
-524

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT DISTINCT - - 5 * - COUNT( * ) col1
----
-5

skipif mysql # not compatible
query I rowsort label-2977
SELECT DISTINCT - - 5 * - COUNT ( * ) col1
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2978
SELECT + 46 + - + 71 * + ( + - 12 ) - - COALESCE ( + 14, - - COUNT( * ) * - ( 6 ) + AVG ( DISTINCT - - 44 ) + 85 + + - ( + 73 ) + - SUM( DISTINCT - - 53 ) / - + 4 ) + 52 + ( - CAST( NULL AS SIGNED ) ) + 60 + + - 36 / + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-2978
SELECT + 46 + - + 71 * + ( + - 12 ) - - COALESCE ( + 14, - - COUNT ( * ) * - ( 6 ) + AVG ( DISTINCT - - 44 ) + 85 + + - ( + 73 ) + - SUM ( DISTINCT - - 53 ) / - + 4 ) + 52 + ( - CAST ( NULL AS INTEGER ) ) + 60 + + - 36 / + 8
----
NULL

query I rowsort
SELECT - 85 * + 48 + - + 96
----
-4176

onlyif mysql # aggregate syntax: 
query I rowsort label-2980
SELECT ALL 24 * + 18 + + NULLIF ( 78, + COUNT( * ) * 16 * 22 * COUNT( * ) - + + 42 )
----
510

skipif mysql # not compatible
query I rowsort label-2980
SELECT ALL 24 * + 18 + + NULLIF ( 78, + COUNT ( * ) * 16 * 22 * COUNT ( * ) - + + 42 )
----
510

onlyif mysql # aggregate syntax: 
query I rowsort label-2981
SELECT DISTINCT - MIN( - 31 ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-2981
SELECT DISTINCT - MIN ( - 31 ) AS col1
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2982
SELECT DISTINCT - - CASE 56 WHEN MAX( CAST( NULL AS DECIMAL ) ) * - CASE - 12 WHEN 55 THEN NULL WHEN 90 THEN 10 * 21 + - ( + 24 ) ELSE - + CASE - - 50 WHEN + 89 * + + 63 + + + ( - 0 ) + + COUNT( * ) * + 9 THEN NULL ELSE + - 96 * + CAST( NULL AS SIGNED ) / - 38 * AVG ( DISTINCT + 84 ) * - 26 - - 33 * + 50 + CAST( - 67 AS SIGNED ) END END / 34 THEN 99 WHEN - COUNT( ALL - 83 ) THEN COALESCE ( + 31, 28, - 18 * 69 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2982
SELECT DISTINCT - - CASE 56 WHEN MAX ( CAST ( NULL AS REAL ) ) * - CASE - 12 WHEN 55 THEN NULL WHEN 90 THEN 10 * 21 + - ( + 24 ) ELSE - + CASE - - 50 WHEN + 89 * + + 63 + + + ( - 0 ) + + COUNT ( * ) * + 9 THEN NULL ELSE + - 96 * + CAST ( NULL AS INTEGER ) / - 38 * AVG ( DISTINCT + 84 ) * - 26 - - 33 * + 50 + CAST ( - 67 AS INTEGER ) END END / 34 THEN 99 WHEN - COUNT ( ALL - 83 ) THEN COALESCE ( + 31, 28, - 18 * 69 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2983
SELECT ALL - ( SUM( 11 ) )
----
-11

skipif mysql # not compatible
query I rowsort label-2983
SELECT ALL - ( SUM ( 11 ) )
----
-11

query I rowsort
SELECT - ( - - 12 ) AS col1
----
-12

query I rowsort
SELECT ALL NULLIF ( 69, - - 45 )
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2986
SELECT DISTINCT 68 AS col1, + 39 * + + COUNT( * ) + - 43 + - 35 + + 74 + + + COUNT( * ) / 7 * - 83 * + ( 92 ) * 73 / + CAST( NULL AS SIGNED ) * + ( + 47 ) + - - 55
----
68
NULL

skipif mysql # not compatible
query II rowsort label-2986
SELECT DISTINCT 68 AS col1, + 39 * + + COUNT ( * ) + - 43 + - 35 + + 74 + + + COUNT ( * ) / 7 * - 83 * + ( 92 ) * 73 / + CAST ( NULL AS INTEGER ) * + ( + 47 ) + - - 55
----
68
NULL

query I rowsort
SELECT ALL + 24 + - + 76 + - 97 * ( - 56 ) * + + 13 * + 12
----
847340

query I rowsort
SELECT 69 - - 6 col1
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2989
SELECT + + 76 * - 48 + 67 + - - 0 / CAST( NULL AS SIGNED ) / + 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2989
SELECT + + 76 * - 48 + 67 + - - 0 / CAST ( NULL AS INTEGER ) / + 60 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 97 + - 17
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-2991
SELECT - 84 DIV + 8 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-2991
SELECT - 84 / + 8 AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT 49 + + 16 - - COUNT( * ) * + - 75 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-2992
SELECT 49 + + 16 - - COUNT ( * ) * + - 75 AS col1
----
-10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2993
SELECT ( + SUM( - 32 ) ) - + CAST( NULL AS DECIMAL ) / - 88 * + 78 AS col1, + 8
----
NULL
8

skipif mysql # not compatible
query II rowsort label-2993
SELECT ( + SUM ( - 32 ) ) - + CAST ( NULL AS REAL ) / - 88 * + 78 AS col1, + 8
----
NULL
8

query I rowsort
SELECT NULLIF ( - 9, - 35 * - 86 ) + - + 97 AS col0
----
-106

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2996
SELECT DISTINCT MIN( - - CAST( NULL AS SIGNED ) ) + - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-2996
SELECT DISTINCT MIN ( - - CAST ( NULL AS INTEGER ) ) + - 36
----
NULL

query II rowsort
SELECT - 67, + 36 AS col1
----
-67
36

query I rowsort
SELECT - 62 + + 90
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-2999
SELECT DISTINCT COUNT( * ) AS col1, - 75 * - 95 + + 68
----
1
7193

skipif mysql # not compatible
query II rowsort label-2999
SELECT DISTINCT COUNT ( * ) AS col1, - 75 * - 95 + + 68
----
1
7193

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3000
SELECT ALL + MAX( ALL - NULLIF ( - + 24, 35 ) ) - 91 - + 86 DIV + ( + + COALESCE ( + 80, - CAST( - CAST( + - CASE 64 WHEN - - 64 THEN NULL WHEN + 23 THEN + + 86 * 15 * + + 73 WHEN NULLIF ( - - 21, - 35 ) THEN NULL END AS SIGNED ) AS SIGNED ) ) )
----
-68

skipif mysql # not compatible
query I rowsort label-3000
SELECT ALL + MAX ( ALL - NULLIF ( - + 24, 35 ) ) - 91 - + 86 / + ( + + COALESCE ( + 80, - CAST ( - CAST ( + - CASE 64 WHEN - - 64 THEN NULL WHEN + 23 THEN + + 86 * 15 * + + 73 WHEN NULLIF ( - - 21, - 35 ) THEN NULL END AS INTEGER ) AS INTEGER ) ) )
----
-68

query II rowsort
SELECT 93 AS col1, + 63
----
93
63

onlyif mysql # aggregate syntax: 
query II rowsort label-3002
SELECT - 82 AS col1, MIN( ALL + 8 ) AS col0
----
-82
8

skipif mysql # not compatible
query II rowsort label-3002
SELECT - 82 AS col1, MIN ( ALL + 8 ) AS col0
----
-82
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3003
SELECT ALL - COUNT( * ) * + 21 AS col1, - 54 DIV COUNT( * ) AS col2
----
-21
-54

skipif mysql # not compatible
query II rowsort label-3003
SELECT ALL - COUNT ( * ) * + 21 AS col1, - 54 / COUNT ( * ) AS col2
----
-21
-54

query II rowsort
SELECT DISTINCT + 68 col2, - 49 AS col1
----
68
-49

query I rowsort
SELECT ALL - ( - 96 ) * 0 col2
----
0

query I rowsort
SELECT ALL - 25 * 33 AS col1
----
-825

query I rowsort
SELECT NULLIF ( - - 76, + 98 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3008
SELECT NULLIF ( - + COALESCE ( + - 38, - + 50, 46 ), - - 59 * - COALESCE ( + 13, + COUNT( - - 22 ) / - ( 1 ) * 79 ) + + 15 )
----
38

skipif mysql # not compatible
query I rowsort label-3008
SELECT NULLIF ( - + COALESCE ( + - 38, - + 50, 46 ), - - 59 * - COALESCE ( + 13, + COUNT ( - - 22 ) / - ( 1 ) * 79 ) + + 15 )
----
38

query I rowsort
SELECT ALL + + 9 AS col2
----
9

query I rowsort
SELECT - 83 - - 66 AS col1
----
-17

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3012
SELECT ALL + 19 DIV - 83 * - 45 * + - 65
----
0

skipif mysql # not compatible
query I rowsort label-3012
SELECT ALL + 19 / - 83 * - 45 * + - 65
----
0

query I rowsort
SELECT - - 14 * 54
----
756

query I rowsort
SELECT - + 39 * - 29 AS col1
----
1131

query I rowsort
SELECT ALL + 59 * 54 + + ( - 42 ) + - 56
----
3088

query I rowsort
SELECT + 32 * - + 23 + + - 30 AS col1
----
-766

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT ALL - + 61 * + 89 - - COUNT( * ) + 51 AS col1
----
-5377

skipif mysql # not compatible
query I rowsort label-3017
SELECT ALL - + 61 * + 89 - - COUNT ( * ) + 51 AS col1
----
-5377

query II rowsort
SELECT - 85 * + + 48, + 42 col1
----
-4080
42

query I rowsort
SELECT - + ( 60 ) AS col1
----
-60

query I rowsort
SELECT + - 7 + 27
----
20

query I rowsort
SELECT DISTINCT + - 19 * + ( ( - 77 ) ) * - 65
----
-95095

query I rowsort
SELECT ALL - + 56 + - 91
----
-147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3023
SELECT DISTINCT + 74 + 53 + + 63 + + ( + 37 ) + - + 67 AS col0, - 55 + + COUNT( * ) + 93 * - 15 * CAST( NULL AS SIGNED ) AS col0
----
160
NULL

skipif mysql # not compatible
query II rowsort label-3023
SELECT DISTINCT + 74 + 53 + + 63 + + ( + 37 ) + - + 67 AS col0, - 55 + + COUNT ( * ) + 93 * - 15 * CAST ( NULL AS INTEGER ) AS col0
----
160
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3024
SELECT - CASE + + 58 WHEN + ( + 19 ) THEN + + CAST( - - 76 AS SIGNED ) ELSE 7 + + 58 + + 47 + + 66 END
----
-178

skipif mysql # not compatible
query I rowsort label-3024
SELECT - CASE + + 58 WHEN + ( + 19 ) THEN + + CAST ( - - 76 AS INTEGER ) ELSE 7 + + 58 + + 47 + + 66 END
----
-178

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3025
SELECT + 10 * - - CAST( - AVG ( DISTINCT + + 78 ) AS SIGNED ) AS col1
----
-780

skipif mysql # not compatible
query I rowsort label-3025
SELECT + 10 * - - CAST ( - AVG ( DISTINCT + + 78 ) AS INTEGER ) AS col1
----
-780

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3026
SELECT - ( CAST( NULL AS SIGNED ) ) AS col1, 87 AS col1
----
NULL
87

skipif mysql # not compatible
query II rowsort label-3026
SELECT - ( CAST ( NULL AS INTEGER ) ) AS col1, 87 AS col1
----
NULL
87

query II rowsort
SELECT ALL CASE + 13 WHEN 64 + + 74 + + 59 THEN + 65 * - - 71 WHEN + 82 + + 52 THEN 93 ELSE - ( - 82 ) END - + 39, 17 * 43 AS col1
----
43
731

onlyif mysql # aggregate syntax: 
query I rowsort label-3028
SELECT + 74 - - CASE WHEN NOT - 55 BETWEEN 4 + - 28 AND + CASE - 93 WHEN 73 * - + ( + + 12 ) * ( NULLIF ( 30, SUM( ALL + 43 ) + 33 - + + ( + COUNT( * ) ) * - - 47 + MAX( - - 62 ) ) ) THEN NULL ELSE - 51 END THEN + 29 WHEN NOT 78 * - - 55 / 66 + - COUNT( * ) IS NOT NULL THEN NULL ELSE NULL END + 73 * + 36 AS col0
----
2731

skipif mysql # not compatible
query I rowsort label-3028
SELECT + 74 - - CASE WHEN NOT - 55 BETWEEN 4 + - 28 AND + CASE - 93 WHEN 73 * - + ( + + 12 ) * ( NULLIF ( 30, SUM ( ALL + 43 ) + 33 - + + ( + COUNT ( * ) ) * - - 47 + MAX ( - - 62 ) ) ) THEN NULL ELSE - 51 END THEN + 29 WHEN NOT 78 * - - 55 / 66 + - COUNT ( * ) IS NOT NULL THEN NULL ELSE NULL END + 73 * + 36 AS col0
----
2731

query II rowsort
SELECT + 50 - + 47 AS col1, + 52
----
3
52

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3030
SELECT - NULLIF ( - 54, CAST( 60 AS SIGNED ) ) DIV + 40
----
1

skipif mysql # not compatible
query I rowsort label-3030
SELECT - NULLIF ( - 54, CAST ( 60 AS INTEGER ) ) / + 40
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3031
SELECT ALL COUNT( 30 ) AS col2, 72
----
1
72

skipif mysql # not compatible
query II rowsort label-3031
SELECT ALL COUNT ( 30 ) AS col2, 72
----
1
72

query I rowsort
SELECT DISTINCT ( 90 ) * + + 41
----
3690

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3033
SELECT + CASE + CASE + + 70 WHEN + - 15 + + - 77 THEN - 19 WHEN - COUNT( * ) + - + 75 THEN + 79 WHEN + + 76 + + - COUNT( * ) + ( + CASE + 18 WHEN 66 THEN 82 * - COUNT( * ) * + + MIN( ALL + 30 ) / + 68 * 23 + 97 * - 67 * + NULLIF ( + + COUNT( * ), + MIN( ( 2 ) ) * 78 - 1 ) + 10 WHEN 7 + ( CASE + 18 WHEN 72 THEN CAST( 65 AS DECIMAL ) WHEN - 99 * + 8 THEN 66 END + AVG ( ALL 17 + - 60 ) ) THEN - 52 / 96 END ) THEN NULL END WHEN - COUNT( * ) + COUNT( * ) THEN 95 END - + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-3033
SELECT + CASE + CASE + + 70 WHEN + - 15 + + - 77 THEN - 19 WHEN - COUNT ( * ) + - + 75 THEN + 79 WHEN + + 76 + + - COUNT ( * ) + ( + CASE + 18 WHEN 66 THEN 82 * - COUNT ( * ) * + + MIN ( ALL + 30 ) / + 68 * 23 + 97 * - 67 * + NULLIF ( + + COUNT ( * ), + MIN ( ( 2 ) ) * 78 - 1 ) + 10 WHEN 7 + ( CASE + 18 WHEN 72 THEN CAST ( 65 AS REAL ) WHEN - 99 * + 8 THEN 66 END + AVG ( ALL 17 + - 60 ) ) THEN - 52 / 96 END ) THEN NULL END WHEN - COUNT ( * ) + COUNT ( * ) THEN 95 END - + 92
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3034
SELECT + 5 DIV - COUNT( * ) + 94 * + + 52 - - COUNT( * ) + + COUNT( * )
----
4885

skipif mysql # not compatible
query I rowsort label-3034
SELECT + 5 / - COUNT ( * ) + 94 * + + 52 - - COUNT ( * ) + + COUNT ( * )
----
4885

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3035
SELECT + 76 * 60 - + - 25 * + CAST( - 47 AS SIGNED ) col0
----
3385

skipif mysql # not compatible
query I rowsort label-3035
SELECT + 76 * 60 - + - 25 * + CAST ( - 47 AS INTEGER ) col0
----
3385

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT + + CASE - + ( + - NULLIF ( - COUNT( * ), - + 64 * 81 ) ) WHEN 61 THEN NULL WHEN 30 THEN + 82 END + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-3036
SELECT + + CASE - + ( + - NULLIF ( - COUNT ( * ), - + 64 * 81 ) ) WHEN 61 THEN NULL WHEN 30 THEN + 82 END + 1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3037
SELECT ALL + 32 DIV 19 + - - 88
----
89

skipif mysql # not compatible
query I rowsort label-3037
SELECT ALL + 32 / 19 + - - 88
----
89

query I rowsort
SELECT + 29 * + 87 + 99
----
2622

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3039
SELECT ALL 33 * + 72 * 19 + + 80 * - CASE + COUNT( * ) WHEN - - 78 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN - 42 ELSE NULL END + - 4, + 21 AS col1
----
NULL
21

skipif mysql # not compatible
query II rowsort label-3039
SELECT ALL 33 * + 72 * 19 + + 80 * - CASE + COUNT ( * ) WHEN - - 78 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN - 42 ELSE NULL END + - 4, + 21 AS col1
----
NULL
21

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

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

query II rowsort
SELECT - + 58 * - 20 * - + 13 AS col0, NULLIF ( 67, + + 31 ) AS col2
----
-15080
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3042
SELECT ALL + CAST( - + 15 AS SIGNED ) AS col2, 22 * + - 37 AS col1
----
-15
-814

skipif mysql # not compatible
query II rowsort label-3042
SELECT ALL + CAST ( - + 15 AS INTEGER ) AS col2, 22 * + - 37 AS col1
----
-15
-814

query I rowsort
SELECT + 12 * - - 38 * + 12 * + + 43 + + 17 + 77 * - 54 - - 76 * - 6 + + + 17 * - + 73 AS col1
----
229458

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3044
SELECT DISTINCT + 14 * + CASE 25 WHEN - 14 THEN NULL ELSE - 27 END * + - 26 * + NULLIF ( 81, + - 72 ) + + + 86 * + 40 + 36 - + + NULLIF ( + 68, - COUNT( * ) + + COUNT( * ) * - 85 + - 60 * 72 * + + AVG ( ALL - - 11 ) * - - NULLIF ( COUNT( * ), + 60 * + COUNT( ALL 17 ) / - CAST( - ( COUNT( * ) ) AS SIGNED ) + 3 ) ) * 68 - + 72
----
794848

skipif mysql # not compatible
query I rowsort label-3044
SELECT DISTINCT + 14 * + CASE 25 WHEN - 14 THEN NULL ELSE - 27 END * + - 26 * + NULLIF ( 81, + - 72 ) + + + 86 * + 40 + 36 - + + NULLIF ( + 68, - COUNT ( * ) + + COUNT ( * ) * - 85 + - 60 * 72 * + + AVG ( ALL - - 11 ) * - - NULLIF ( COUNT ( * ), + 60 * + COUNT ( ALL 17 ) / - CAST ( - ( COUNT ( * ) ) AS INTEGER ) + 3 ) ) * 68 - + 72
----
794848

onlyif mysql # aggregate syntax: 
query I rowsort label-3045
SELECT ALL + - 54 + - + COUNT( * ) * + 85 AS col0
----
-139

skipif mysql # not compatible
query I rowsort label-3045
SELECT ALL + - 54 + - + COUNT ( * ) * + 85 AS col0
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-3046
SELECT DISTINCT - + CASE - COUNT( * ) WHEN - - 92 THEN - 65 WHEN + - COALESCE ( + 61, - 86 + + MIN( 85 ) + + 32 ) THEN - 88 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3046
SELECT DISTINCT - + CASE - COUNT ( * ) WHEN - - 92 THEN - 65 WHEN + - COALESCE ( + 61, - 86 + + MIN ( 85 ) + + 32 ) THEN - 88 END
----
NULL

query I rowsort
SELECT ALL 72 + 7
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3048
SELECT + 42 - - - MAX( 65 )
----
-23

skipif mysql # not compatible
query I rowsort label-3048
SELECT + 42 - - - MAX ( 65 )
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-3049
SELECT DISTINCT - 70 DIV + 65 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3049
SELECT DISTINCT - 70 / + 65 AS col0
----
-1

query I rowsort
SELECT DISTINCT - 14 * + 60 AS col2
----
-840

onlyif mysql # DIV for integer division: 
query I rowsort label-3051
SELECT 30 DIV - 42 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3051
SELECT 30 / - 42 AS col2
----
0

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

query I rowsort
SELECT 8 + - ( + 11 ) * 31
----
-333

query II rowsort
SELECT 62 AS col2, + 30 AS col2
----
62
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT 27 + COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-3055
SELECT 27 + COUNT ( * )
----
28

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3057
SELECT 52 + + 94 + + 8 DIV + 37
----
146

skipif mysql # not compatible
query I rowsort label-3057
SELECT 52 + + 94 + + 8 / + 37
----
146

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3059
SELECT DISTINCT 96 DIV - 96
----
-1

skipif mysql # not compatible
query I rowsort label-3059
SELECT DISTINCT 96 / - 96
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3060
SELECT DISTINCT 14 * - + ( + 26 ) * - + CASE - - 3 WHEN + ( 12 ) THEN NULL WHEN - 35 + - + 96 THEN - - 62 * - 35 END, + NULLIF ( 47, 97 + + MAX( - 2 ) ) AS col2
----
NULL
47

skipif mysql # not compatible
query II rowsort label-3060
SELECT DISTINCT 14 * - + ( + 26 ) * - + CASE - - 3 WHEN + ( 12 ) THEN NULL WHEN - 35 + - + 96 THEN - - 62 * - 35 END, + NULLIF ( 47, 97 + + MAX ( - 2 ) ) AS col2
----
NULL
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3061
SELECT CAST( AVG ( 72 ) AS SIGNED ) + - + 49 * - - 50 AS col2
----
-2378

skipif mysql # not compatible
query I rowsort label-3061
SELECT CAST ( AVG ( 72 ) AS INTEGER ) + - + 49 * - - 50 AS col2
----
-2378

query I rowsort
SELECT ALL 49 * - 69 * 51 AS col0
----
-172431

onlyif mysql # aggregate syntax: 
query I rowsort label-3063
SELECT ALL 7 + + - 42 - - + 72 - + + NULLIF ( + 79, COUNT( + 86 ) + + - 95 ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-3063
SELECT ALL 7 + + - 42 - - + 72 - + + NULLIF ( + 79, COUNT ( + 86 ) + + - 95 ) AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3064
SELECT DISTINCT - 19 + + 75 + + 53 + - + 41 * - - 64 * 88 + + + 73 + MAX( - 41 ) * - NULLIF ( + 93, 27 + + 29 + 94 * 13 * + 39 ) + + 51 AS col0
----
-226866

skipif mysql # not compatible
query I rowsort label-3064
SELECT DISTINCT - 19 + + 75 + + 53 + - + 41 * - - 64 * 88 + + + 73 + MAX ( - 41 ) * - NULLIF ( + 93, 27 + + 29 + 94 * 13 * + 39 ) + + 51 AS col0
----
-226866

query I rowsort
SELECT 67 * - + 2 * ( 12 )
----
-1608

query I rowsort
SELECT ALL 48 + 54 AS col1
----
102

query I rowsort
SELECT ALL - 92 * + + 42 AS col2
----
-3864

query I rowsort
SELECT DISTINCT 75 + - 52
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT DISTINCT 80 + + SUM( ALL - 16 ) + - 89 AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-3069
SELECT DISTINCT 80 + + SUM ( ALL - 16 ) + - 89 AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3070
SELECT CASE - + ( + 15 ) WHEN + 48 THEN NULL WHEN - + MAX( + - 11 ) THEN + - 3 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3070
SELECT CASE - + ( + 15 ) WHEN + 48 THEN NULL WHEN - + MAX ( + - 11 ) THEN + - 3 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3071
SELECT DISTINCT 93 + + + COUNT( * ) + - 53 * + 28 * - CAST( NULL AS SIGNED ) + COUNT( * ) + + 3 + - - ( + MIN( DISTINCT + - CASE + 49 WHEN 71 THEN 21 + - - 78 * - ( - 25 ) + + 7 END ) ) * 24 * + 20 + - - 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3071
SELECT DISTINCT 93 + + + COUNT ( * ) + - 53 * + 28 * - CAST ( NULL AS INTEGER ) + COUNT ( * ) + + 3 + - - ( + MIN ( DISTINCT + - CASE + 49 WHEN 71 THEN 21 + - - 78 * - ( - 25 ) + + 7 END ) ) * 24 * + 20 + - - 84 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3072
SELECT ALL + CAST( + 58 AS SIGNED ) + - + MIN( DISTINCT - + 99 ) + - 21 col0
----
136

skipif mysql # not compatible
query I rowsort label-3072
SELECT ALL + CAST ( + 58 AS INTEGER ) + - + MIN ( DISTINCT - + 99 ) + - 21 col0
----
136

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

skipif mysql # not compatible
query I rowsort label-3073
SELECT - MAX ( DISTINCT - 71 )
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-3074
SELECT + 81 - + 27 - 17 * 71 + + + 13 DIV - + 43 AS col2
----
-1153

skipif mysql # not compatible
query I rowsort label-3074
SELECT + 81 - + 27 - 17 * 71 + + + 13 / - + 43 AS col2
----
-1153

query I rowsort
SELECT 16 * - - 47 AS col0
----
752

onlyif mysql # aggregate syntax: 
query II rowsort label-3076
SELECT ALL CASE - 38 WHEN - 55 THEN NULL WHEN + SUM( ALL + 36 ) THEN - 65 ELSE NULL END + 24 * + 17 AS col2, 43 + + + 31 col0
----
NULL
74

skipif mysql # not compatible
query II rowsort label-3076
SELECT ALL CASE - 38 WHEN - 55 THEN NULL WHEN + SUM ( ALL + 36 ) THEN - 65 ELSE NULL END + 24 * + 17 AS col2, 43 + + + 31 col0
----
NULL
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3077
SELECT DISTINCT + 85 - COUNT( - 93 ) * + 1
----
84

skipif mysql # not compatible
query I rowsort label-3077
SELECT DISTINCT + 85 - COUNT ( - 93 ) * + 1
----
84

query I rowsort
SELECT DISTINCT - 74 * + + ( 85 )
----
-6290

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3079
SELECT ALL + + COUNT( * ) - + 22 * - 95 * NULLIF ( - 69, + 43 * CASE 88 WHEN + - 17 THEN - + ( 14 ) END * 20 / - 98 * + + 51 + + ( + - 82 ) * - 39 ) - + - 32 * + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3079
SELECT ALL + + COUNT ( * ) - + 22 * - 95 * NULLIF ( - 69, + 43 * CASE 88 WHEN + - 17 THEN - + ( 14 ) END * 20 / - 98 * + + 51 + + ( + - 82 ) * - 39 ) - + - 32 * + CAST ( NULL AS INTEGER ) col2
----
NULL

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

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

query I rowsort
SELECT ALL - 41 * 85 AS col0
----
-3485

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT 30 * - 8 + CASE 6 WHEN + 55 THEN + 17 ELSE 78 + + 96 * - - 18 * - COUNT( * ) END AS col0
----
-1890

skipif mysql # not compatible
query I rowsort label-3082
SELECT 30 * - 8 + CASE 6 WHEN + 55 THEN + 17 ELSE 78 + + 96 * - - 18 * - COUNT ( * ) END AS col0
----
-1890

query II rowsort
SELECT 37 + + 1 AS col0, 43 * + 64 AS col2
----
38
2752

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT ALL - SUM( ALL - - 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-3084
SELECT ALL - SUM ( ALL - - 79 )
----
-79

query I rowsort
SELECT ALL - 10 - - 72
----
62

query II rowsort
SELECT 11 * + 44 AS col1, - 3 * 68
----
484
-204

query II rowsort
SELECT 46 * + 34 AS col2, + 88
----
1564
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT 53 + SUM( ALL - 42 ) + 52
----
63

skipif mysql # not compatible
query I rowsort label-3088
SELECT 53 + SUM ( ALL - 42 ) + 52
----
63

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

query I rowsort
SELECT 36 * 76
----
2736

query II rowsort
SELECT ALL - 65 * + + 59 AS col1, - ( - 90 )
----
-3835
90

onlyif mysql # DIV for integer division: 
query I rowsort label-3092
SELECT DISTINCT - 47 * 62 DIV + + 4 AS col0
----
-728

skipif mysql # not compatible
query I rowsort label-3092
SELECT DISTINCT - 47 * 62 / + + 4 AS col0
----
-728

onlyif mysql # DIV for integer division: 
query I rowsort label-3093
SELECT 55 DIV - - 2 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-3093
SELECT 55 / - - 2 AS col2
----
27

query I rowsort
SELECT 62 * - + 64 * - + ( 42 ) AS col2
----
166656

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

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

query I rowsort
SELECT ALL + 2 * + 32 * - 70 AS col2
----
-4480

onlyif mysql # aggregate syntax: 
query I rowsort label-3097
SELECT 42 - - 93 * - COUNT( * ) * - MAX( ALL - 10 ) - 43 * + + 27 * 67 col1
----
-78675

skipif mysql # not compatible
query I rowsort label-3097
SELECT 42 - - 93 * - COUNT ( * ) * - MAX ( ALL - 10 ) - 43 * + + 27 * 67 col1
----
-78675

onlyif mysql # DIV for integer division: 
query II rowsort label-3098
SELECT 45 DIV 32 AS col2, 92 * 7 AS col0
----
1
644

skipif mysql # not compatible
query II rowsort label-3098
SELECT 45 / 32 AS col2, 92 * 7 AS col0
----
1
644

onlyif mysql # aggregate syntax: 
query I rowsort label-3099
SELECT ( - 20 ) * 22 + COUNT( * ) AS col2
----
-439

skipif mysql # not compatible
query I rowsort label-3099
SELECT ( - 20 ) * 22 + COUNT ( * ) AS col2
----
-439

query I rowsort
SELECT ALL + 76 + + 81 AS col2
----
157

query I rowsort
SELECT ALL + 3 + - 3
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3102
SELECT ALL - 32 + - CAST( 42 AS SIGNED ) + + 16 * - 60
----
-1034

skipif mysql # not compatible
query I rowsort label-3102
SELECT ALL - 32 + - CAST ( 42 AS INTEGER ) + + 16 * - 60
----
-1034

onlyif mysql # aggregate syntax: 
query I rowsort label-3103
SELECT - COALESCE ( + CASE + AVG ( ALL 43 ) WHEN + 49 + 4 * COUNT( * ) THEN - + 26 * - + 71 END, + 92 + - NULLIF ( + COUNT( * ), + COALESCE ( + 36, COUNT( * ) * + 49 - 51, 39 ) ) * 3 - - + 44, + NULLIF ( 83, 42 ) * - 79 - + 72 + - - ( - COUNT( * ) ) * 1 * + 32 * 26 * COALESCE ( 9 * + 32 + 0, + COUNT( * ) + - 12, - 35, - COUNT( * ) ) )
----
-133

skipif mysql # not compatible
query I rowsort label-3103
SELECT - COALESCE ( + CASE + AVG ( ALL 43 ) WHEN + 49 + 4 * COUNT ( * ) THEN - + 26 * - + 71 END, + 92 + - NULLIF ( + COUNT ( * ), + COALESCE ( + 36, COUNT ( * ) * + 49 - 51, 39 ) ) * 3 - - + 44, + NULLIF ( 83, 42 ) * - 79 - + 72 + - - ( - COUNT ( * ) ) * 1 * + 32 * 26 * COALESCE ( 9 * + 32 + 0, + COUNT ( * ) + - 12, - 35, - COUNT ( * ) ) )
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-3104
SELECT ALL - - COUNT( ALL - 87 ) + - 26 AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-3104
SELECT ALL - - COUNT ( ALL - 87 ) + - 26 AS col1
----
-25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT ALL 24 * COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-3106
SELECT ALL 24 * COUNT ( * )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3107
SELECT DISTINCT - NULLIF ( - ( - COUNT( * ) ), + 52 + + AVG ( CASE - 2 WHEN 64 * + - NULLIF ( - + 73, - 65 ) - - + 20 THEN + 14 + 46 END ) + - - COUNT( * ) ) + + - 68
----
-69

skipif mysql # not compatible
query I rowsort label-3107
SELECT DISTINCT - NULLIF ( - ( - COUNT ( * ) ), + 52 + + AVG ( CASE - 2 WHEN 64 * + - NULLIF ( - + 73, - 65 ) - - + 20 THEN + 14 + 46 END ) + - - COUNT ( * ) ) + + - 68
----
-69

query I rowsort
SELECT + 71 * + 55 + - 89
----
3816

query I rowsort
SELECT + 12 * 91 AS col2
----
1092

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3110
SELECT ALL CAST( - - 64 AS SIGNED ) * + 19 - + 84 + 34 * - 41
----
-262

skipif mysql # not compatible
query I rowsort label-3110
SELECT ALL CAST ( - - 64 AS INTEGER ) * + 19 - + 84 + 34 * - 41
----
-262

query I rowsort
SELECT 92 * + - 13
----
-1196

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3112
SELECT ALL COUNT( + - NULLIF ( + 58, - 89 ) ) * + 71 DIV 41
----
1

skipif mysql # not compatible
query I rowsort label-3112
SELECT ALL COUNT ( + - NULLIF ( + 58, - 89 ) ) * + 71 / 41
----
1

query I rowsort
SELECT DISTINCT + - 53 AS col1
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-3114
SELECT ALL + COUNT( * ) * + 15 * + 51 - + 60, 80 col0
----
705
80

skipif mysql # not compatible
query II rowsort label-3114
SELECT ALL + COUNT ( * ) * + 15 * + 51 - + 60, 80 col0
----
705
80

query I rowsort
SELECT DISTINCT - 86 * + 54
----
-4644

onlyif mysql # DIV for integer division: 
query I rowsort label-3116
SELECT + + 75 DIV - COALESCE ( + 63, 61 )
----
-1

skipif mysql # not compatible
query I rowsort label-3116
SELECT + + 75 / - COALESCE ( + 63, 61 )
----
-1

query I rowsort
SELECT ALL - 65 * + 90 * 99 - - + 45 * 22
----
-578160

query I rowsort
SELECT + 51 + 37 col1
----
88

query I rowsort
SELECT - 16 * 62 * + 27
----
-26784

query I rowsort
SELECT 69 * + 22 + - + 27 - - - 62 AS col0
----
1429

query I rowsort
SELECT DISTINCT 39 * + 5 AS col0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-3122
SELECT SUM( - 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-3122
SELECT SUM ( - 14 )
----
-14

query I rowsort
SELECT + 80 * + 77 AS col2
----
6160

query I rowsort
SELECT ALL 86 * + 45
----
3870

query I rowsort
SELECT - 97 - + ( + 67 ) AS col1
----
-164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3126
SELECT DISTINCT NULLIF ( - 96, + CASE + - 78 WHEN + 48 THEN - 86 + 56 * + 3 * - + 20 WHEN + COUNT( * ) + - 86 THEN NULL WHEN 68 - + + 62 + - 63 * 17 THEN + COALESCE ( 59, - ( + - 24 ) ) WHEN + ( 15 ) * - 82 THEN NULL ELSE SUM( - - 91 ) END * - - CAST( NULL AS SIGNED ) ) col0
----
-96

skipif mysql # not compatible
query I rowsort label-3126
SELECT DISTINCT NULLIF ( - 96, + CASE + - 78 WHEN + 48 THEN - 86 + 56 * + 3 * - + 20 WHEN + COUNT ( * ) + - 86 THEN NULL WHEN 68 - + + 62 + - 63 * 17 THEN + COALESCE ( 59, - ( + - 24 ) ) WHEN + ( 15 ) * - 82 THEN NULL ELSE SUM ( - - 91 ) END * - - CAST ( NULL AS INTEGER ) ) col0
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3127
SELECT ALL + 7 + + - 98 - 60 + + NULLIF ( + CAST( NULL AS SIGNED ), + COUNT( * ) + + 78 ) + + 65 + - - 8 + + 55 + - - 71 * - 58 + - 36 - - 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3127
SELECT ALL + 7 + + - 98 - 60 + + NULLIF ( + CAST ( NULL AS INTEGER ), + COUNT ( * ) + + 78 ) + + 65 + - - 8 + + 55 + - - 71 * - 58 + - 36 - - 56 AS col0
----
NULL

query I rowsort
SELECT ALL 38 * + 52 AS col0
----
1976

query I rowsort
SELECT + 44 * - 19 * - 63 AS col2
----
52668

onlyif mysql # aggregate syntax: 
query I rowsort label-3130
SELECT - 50 + + NULLIF ( 54, + COUNT( * ) - - MAX( DISTINCT 59 ) * + 36 )
----
4

skipif mysql # not compatible
query I rowsort label-3130
SELECT - 50 + + NULLIF ( 54, + COUNT ( * ) - - MAX ( DISTINCT 59 ) * + 36 )
----
4

query I rowsort
SELECT + 61 + 13
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3132
SELECT - CAST( NULL AS SIGNED ) - - + COALESCE ( + + ( + ( - - 29 ) ), + + 51 + 80 ) - 2 * + - COALESCE ( + 95, - 96 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3132
SELECT - CAST ( NULL AS INTEGER ) - - + COALESCE ( + + ( + ( - - 29 ) ), + + 51 + 80 ) - 2 * + - COALESCE ( + 95, - 96 ) col1
----
NULL

query I rowsort
SELECT ALL - 44 + - 4 + - 43 + - - 21 col2
----
-70

query I rowsort
SELECT - 14 + + 26
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3135
SELECT ALL COUNT( * ) + COUNT( * ) + + CASE - + 1 WHEN - 47 * + COUNT( * ) * 73 THEN 91 - - + 42 WHEN - - NULLIF ( - COALESCE ( 89, - 76 ), - CASE - + CAST( NULL AS SIGNED ) WHEN + 32 THEN 4 END / 94 + + - 97 ) / - - 25 + COUNT( * ) * - 35 * 75 THEN NULL WHEN - 38 THEN + COUNT( * ) / - NULLIF ( - ( + CASE - ( - + ( 12 ) ) WHEN 6 + - 43 THEN - 82 END ), - 51 ) END * 32 * COALESCE ( - 65, 91, 76 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3135
SELECT ALL COUNT ( * ) + COUNT ( * ) + + CASE - + 1 WHEN - 47 * + COUNT ( * ) * 73 THEN 91 - - + 42 WHEN - - NULLIF ( - COALESCE ( 89, - 76 ), - CASE - + CAST ( NULL AS INTEGER ) WHEN + 32 THEN 4 END / 94 + + - 97 ) / - - 25 + COUNT ( * ) * - 35 * 75 THEN NULL WHEN - 38 THEN + COUNT ( * ) / - NULLIF ( - ( + CASE - ( - + ( 12 ) ) WHEN 6 + - 43 THEN - 82 END ), - 51 ) END * 32 * COALESCE ( - 65, 91, 76 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3136
SELECT ALL + 71 + + 42 + 77 DIV + CASE - 72 WHEN - 45 THEN 80 WHEN COUNT( * ) THEN NULL ELSE + - 65 END
----
112

skipif mysql # not compatible
query I rowsort label-3136
SELECT ALL + 71 + + 42 + 77 / + CASE - 72 WHEN - 45 THEN 80 WHEN COUNT ( * ) THEN NULL ELSE + - 65 END
----
112

query I rowsort
SELECT DISTINCT - 17 * - 24
----
408

query I rowsort
SELECT DISTINCT ( 19 ) AS col2
----
19

query I rowsort
SELECT DISTINCT - 90 + 82
----
-8

query I rowsort
SELECT DISTINCT + + 81 * - + 4
----
-324

query I rowsort
SELECT - 83 + 56 col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT ALL - COUNT( * ) + MIN( ALL 75 ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-3142
SELECT ALL - COUNT ( * ) + MIN ( ALL 75 ) AS col1
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3143
SELECT - - 15, 3 - CAST( NULL AS SIGNED ) AS col1
----
15
NULL

skipif mysql # not compatible
query II rowsort label-3143
SELECT - - 15, 3 - CAST ( NULL AS INTEGER ) AS col1
----
15
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3144
SELECT - MAX( - + 77 ) + + MIN( 54 ) - + 13 * - 25 + 63
----
519

skipif mysql # not compatible
query I rowsort label-3144
SELECT - MAX ( - + 77 ) + + MIN ( 54 ) - + 13 * - 25 + 63
----
519

query I rowsort
SELECT - + 15 * - - 30 col1
----
-450

query I rowsort
SELECT - 10 + + 58
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT - 49 * + 28 * ( + - ( - COUNT( * ) ) ) * + ( + - 23 )
----
31556

skipif mysql # not compatible
query I rowsort label-3147
SELECT - 49 * + 28 * ( + - ( - COUNT ( * ) ) ) * + ( + - 23 )
----
31556

query I rowsort
SELECT + - 40 * - 80 * - 48
----
-153600

onlyif mysql # aggregate syntax: 
query I rowsort label-3149
SELECT - + 29 + + 16 + COUNT( DISTINCT - 54 )
----
-12

skipif mysql # not compatible
query I rowsort label-3149
SELECT - + 29 + + 16 + COUNT ( DISTINCT - 54 )
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3150
SELECT DISTINCT - - 77 - + 61 DIV + - 42 DIV COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-3150
SELECT DISTINCT - - 77 - + 61 / + - 42 / COUNT ( * )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3151
SELECT ( - ( SUM( ALL - - 54 ) ) ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-3151
SELECT ( - ( SUM ( ALL - - 54 ) ) ) AS col1
----
-54

query I rowsort
SELECT - + 79 * - 23
----
1817

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3154
SELECT + NULLIF ( + COUNT( * ), - - 45 * + 15 ) + 56 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-3154
SELECT + NULLIF ( + COUNT ( * ), - - 45 * + 15 ) + 56 AS col2
----
57

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3156
SELECT + + 63 DIV - 3 - + 99 + + - 80 * - + 23 + + - SUM( ALL + + 59 ) - 87 + - + 12 * + + ( + COUNT( * ) ) * + 91 + - 1 AS col1
----
481

skipif mysql # not compatible
query I rowsort label-3156
SELECT + + 63 / - 3 - + 99 + + - 80 * - + 23 + + - SUM ( ALL + + 59 ) - 87 + - + 12 * + + ( + COUNT ( * ) ) * + 91 + - 1 AS col1
----
481

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT - 28 * - NULLIF ( - MIN( + - 23 ), - - 4 * 1 ) col1
----
644

skipif mysql # not compatible
query I rowsort label-3157
SELECT - 28 * - NULLIF ( - MIN ( + - 23 ), - - 4 * 1 ) col1
----
644

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT DISTINCT + MAX( ALL 45 ) * - 35
----
-1575

skipif mysql # not compatible
query I rowsort label-3158
SELECT DISTINCT + MAX ( ALL 45 ) * - 35
----
-1575

query II rowsort
SELECT ALL + 10 AS col0, 84 * - 96
----
10
-8064

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3160
SELECT ALL + ( - 51 ) * + 34 + + ( 58 ) + + 84 * + ( - - 59 ) + - - 66 + + 22 * COUNT( * ) DIV + - 91
----
3346

skipif mysql # not compatible
query I rowsort label-3160
SELECT ALL + ( - 51 ) * + 34 + + ( 58 ) + + 84 * + ( - - 59 ) + - - 66 + + 22 * COUNT ( * ) / + - 91
----
3346

onlyif mysql # aggregate syntax: 
query I rowsort label-3161
SELECT ALL COUNT( * ) * COUNT( * ) + + + 88 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-3161
SELECT ALL COUNT ( * ) * COUNT ( * ) + + + 88 AS col2
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3162
SELECT + 34 * + COALESCE ( + - COUNT( * ), 56, + CAST( NULL AS SIGNED ) * 26 * - - 80 ) + - 7 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-3162
SELECT + 34 * + COALESCE ( + - COUNT ( * ), 56, + CAST ( NULL AS INTEGER ) * 26 * - - 80 ) + - 7 AS col1
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-3163
SELECT DISTINCT + 88, 29 - + COUNT( * ) + + 19 + + + 94 col1
----
88
141

skipif mysql # not compatible
query II rowsort label-3163
SELECT DISTINCT + 88, 29 - + COUNT ( * ) + + 19 + + + 94 col1
----
88
141

onlyif mysql # DIV for integer division: 
query I rowsort label-3164
SELECT ALL + 13 * 71 + + 2 DIV + 1 col2
----
925

skipif mysql # not compatible
query I rowsort label-3164
SELECT ALL + 13 * 71 + + 2 / + 1 col2
----
925

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3165
SELECT + CASE 0 WHEN - + 29 DIV + - 78 THEN NULL WHEN + MIN( + 50 ) * + - 2 THEN NULL ELSE 48 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3165
SELECT + CASE 0 WHEN - + 29 / + - 78 THEN NULL WHEN + MIN ( + 50 ) * + - 2 THEN NULL ELSE 48 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3166
SELECT + CASE - CASE - 67 WHEN COUNT( * ) THEN NULL WHEN + + AVG ( ALL - + 37 ) * 87 THEN NULL WHEN 13 THEN CAST( NULL AS SIGNED ) * + + 21 + + + 4 - - + 70 ELSE - 74 * 43 END WHEN + COUNT( * ) THEN - 19 WHEN + - 6 / + 52 THEN + 98 - - 93 END / - + SUM( DISTINCT - 35 ) / - COALESCE ( CAST( + - 16 AS SIGNED ), - 98 + + 92 ) * + + ( 52 ) * + - 77 + + 1 + - COUNT( DISTINCT + 12 + 63 ) / 31 * 30
----
NULL

skipif mysql # not compatible
query I rowsort label-3166
SELECT + CASE - CASE - 67 WHEN COUNT ( * ) THEN NULL WHEN + + AVG ( ALL - + 37 ) * 87 THEN NULL WHEN 13 THEN CAST ( NULL AS INTEGER ) * + + 21 + + + 4 - - + 70 ELSE - 74 * 43 END WHEN + COUNT ( * ) THEN - 19 WHEN + - 6 / + 52 THEN + 98 - - 93 END / - + SUM ( DISTINCT - 35 ) / - COALESCE ( CAST ( + - 16 AS INTEGER ), - 98 + + 92 ) * + + ( 52 ) * + - 77 + + 1 + - COUNT ( DISTINCT + 12 + 63 ) / 31 * 30
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT ALL 65 * 59 + SUM( - 49 ) AS col1
----
3786

skipif mysql # not compatible
query I rowsort label-3167
SELECT ALL 65 * 59 + SUM ( - 49 ) AS col1
----
3786

query I rowsort
SELECT - ( - 76 ) AS col1
----
76

query I rowsort
SELECT + 44 + + 77 col2
----
121

onlyif mysql # aggregate syntax: 
query II rowsort label-3170
SELECT COUNT( * ) AS col1, 17 + + 97 * + 56 AS col2
----
1
5449

skipif mysql # not compatible
query II rowsort label-3170
SELECT COUNT ( * ) AS col1, 17 + + 97 * + 56 AS col2
----
1
5449

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3171
SELECT ALL 8 * - - 92 + - 57 + - 68 * 32 - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3171
SELECT ALL 8 * - - 92 + - 57 + - 68 * 32 - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3172
SELECT ALL 85 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3172
SELECT ALL 85 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3173
SELECT ALL CAST( NULL AS SIGNED ) * + 77 + - - COUNT( DISTINCT + 31 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3173
SELECT ALL CAST ( NULL AS INTEGER ) * + 77 + - - COUNT ( DISTINCT + 31 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3175
SELECT - CASE + 28 WHEN - 68 * - MAX( DISTINCT - 20 ) THEN + ( + - 20 ) * - - 67 * 40 + + 43 WHEN - ( 43 ) + 99 * - - 28 THEN NULL END * 26
----
NULL

skipif mysql # not compatible
query I rowsort label-3175
SELECT - CASE + 28 WHEN - 68 * - MAX ( DISTINCT - 20 ) THEN + ( + - 20 ) * - - 67 * 40 + + 43 WHEN - ( 43 ) + 99 * - - 28 THEN NULL END * 26
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3176
SELECT + + 24 * - - 71 DIV COUNT( * ) + - 6
----
1698

skipif mysql # not compatible
query I rowsort label-3176
SELECT + + 24 * - - 71 / COUNT ( * ) + - 6
----
1698

onlyif mysql # aggregate syntax: 
query I rowsort label-3177
SELECT DISTINCT - COUNT( * ) * 68 * - + 19 AS col0
----
1292

skipif mysql # not compatible
query I rowsort label-3177
SELECT DISTINCT - COUNT ( * ) * 68 * - + 19 AS col0
----
1292

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3179
SELECT 82, + 8 + - CAST( + + 73 AS SIGNED ) AS col2
----
82
-65

skipif mysql # not compatible
query II rowsort label-3179
SELECT 82, + 8 + - CAST ( + + 73 AS INTEGER ) AS col2
----
82
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT DISTINCT + COALESCE ( COUNT( * ), 6 * ( + - 56 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3180
SELECT DISTINCT + COALESCE ( COUNT ( * ), 6 * ( + - 56 ) ) AS col2
----
1

query I rowsort
SELECT + + 74 - + + 84 + - - 71
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3182
SELECT CAST( NULL AS SIGNED ) * + + 11 / + 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3182
SELECT CAST ( NULL AS INTEGER ) * + + 11 / + 5 AS col1
----
NULL

query I rowsort
SELECT 22 + - 64 + - 84 * + 2 * 52
----
-8778

query II rowsort
SELECT 20 AS col2, - 15
----
20
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-3185
SELECT 99 DIV - 8 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-3185
SELECT 99 / - 8 AS col1
----
-12

query I rowsort
SELECT DISTINCT + 97 * - 72 AS col1
----
-6984

query I rowsort
SELECT - 27 + - 63 AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3188
SELECT 91 - - COUNT( * ) - - 27 * + 76
----
2144

skipif mysql # not compatible
query I rowsort label-3188
SELECT 91 - - COUNT ( * ) - - 27 * + 76
----
2144

query II rowsort
SELECT ALL + 53 * + + 34, - 95 AS col0
----
1802
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3190
SELECT 78 DIV MAX( - 41 ) + - 14
----
-15

skipif mysql # not compatible
query I rowsort label-3190
SELECT 78 / MAX ( - 41 ) + - 14
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3191
SELECT COUNT( * ) * ( + + 99 ) * + ( CAST( NULL AS SIGNED ) ) + - 3 * + - 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3191
SELECT COUNT ( * ) * ( + + 99 ) * + ( CAST ( NULL AS INTEGER ) ) + - 3 * + - 19 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + + 70 * + 89 AS col2
----
6230

onlyif mysql # aggregate syntax: 
query I rowsort label-3193
SELECT + CASE 79 WHEN + 2 * - 75 + + - 49 THEN NULL WHEN - 92 + + MAX( DISTINCT + 94 ) + + 90 / + AVG ( + 39 ) THEN NULL ELSE + - 10 END
----
-10

skipif mysql # not compatible
query I rowsort label-3193
SELECT + CASE 79 WHEN + 2 * - 75 + + - 49 THEN NULL WHEN - 92 + + MAX ( DISTINCT + 94 ) + + 90 / + AVG ( + 39 ) THEN NULL ELSE + - 10 END
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-3194
SELECT 68 * + COUNT( * ) * - + 68 + - - 94 AS col0, 98 - 62 AS col0
----
-4530
36

skipif mysql # not compatible
query II rowsort label-3194
SELECT 68 * + COUNT ( * ) * - + 68 + - - 94 AS col0, 98 - 62 AS col0
----
-4530
36

query I rowsort
SELECT + ( - 69 )
----
-69

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

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

query I rowsort
SELECT DISTINCT - + 51 AS col1
----
-51

query II rowsort
SELECT ALL + 6 + + - 54 AS col0, 20
----
-48
20

query I rowsort
SELECT ALL 92 + + + 53
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-3200
SELECT ALL 51 + - COUNT( * ) + 1 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-3200
SELECT ALL 51 + - COUNT ( * ) + 1 AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3201
SELECT SUM( - - 42 ) * 51 * - 79 + - COUNT( * ) * + - 22
----
-169196

skipif mysql # not compatible
query I rowsort label-3201
SELECT SUM ( - - 42 ) * 51 * - 79 + - COUNT ( * ) * + - 22
----
-169196

query I rowsort
SELECT DISTINCT - ( 75 )
----
-75

query I rowsort
SELECT ALL - 7 + - 24
----
-31

query I rowsort
SELECT ALL + 43 + - + COALESCE ( NULLIF ( - - 17, 23 - - + ( - - 95 ) ), 35 ) * - 35
----
638

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3205
SELECT 52 + ( + 2 ) + + 61 * 97 * + - CAST( NULL AS SIGNED ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3205
SELECT 52 + ( + 2 ) + + 61 * 97 * + - CAST ( NULL AS INTEGER ) * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3206
SELECT DISTINCT 50 * + 18, 91 * - + 2 + 10 * NULLIF ( - 24, - - COUNT( * ) * 44 ) + 74 + 29 col1
----
900
-319

skipif mysql # not compatible
query II rowsort label-3206
SELECT DISTINCT 50 * + 18, 91 * - + 2 + 10 * NULLIF ( - 24, - - COUNT ( * ) * 44 ) + 74 + 29 col1
----
900
-319

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3207
SELECT DISTINCT + ( + - ( 38 ) ) DIV + COUNT( * ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-3207
SELECT DISTINCT + ( + - ( 38 ) ) / + COUNT ( * ) AS col1
----
-38

query I rowsort
SELECT ALL + 44 * 58 col1
----
2552

query I rowsort
SELECT DISTINCT - 89 + - 13 + - ( + 79 )
----
-181

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3210
SELECT DISTINCT + 26 + + COALESCE ( COUNT( * ), + 32 DIV + + 75 )
----
27

skipif mysql # not compatible
query I rowsort label-3210
SELECT DISTINCT + 26 + + COALESCE ( COUNT ( * ), + 32 / + + 75 )
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3211
SELECT 81 * + COUNT( * ) * + + 9 + - 64 * NULLIF ( - + 49, SUM( DISTINCT 36 ) ) * - 72 DIV 12 + 76 + 83 + 36 AS col0
----
-17892

skipif mysql # not compatible
query I rowsort label-3211
SELECT 81 * + COUNT ( * ) * + + 9 + - 64 * NULLIF ( - + 49, SUM ( DISTINCT 36 ) ) * - 72 / 12 + 76 + 83 + 36 AS col0
----
-17892

query I rowsort
SELECT 77 + + + 44
----
121

query I rowsort
SELECT + 9 * + 33 AS col0
----
297

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3214
SELECT ALL - 9 DIV + COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-3214
SELECT ALL - 9 / + COUNT ( * )
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3215
SELECT 88 - - - 83 - + 75 DIV COUNT( * ) * - NULLIF ( - + COUNT( * ), 11 ) * 83
----
-6220

skipif mysql # not compatible
query I rowsort label-3215
SELECT 88 - - - 83 - + 75 / COUNT ( * ) * - NULLIF ( - + COUNT ( * ), 11 ) * 83
----
-6220

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3216
SELECT ALL 57 DIV - 68 + + CAST( - + 44 AS SIGNED ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-3216
SELECT ALL 57 / - 68 + + CAST ( - + 44 AS INTEGER ) AS col0
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3217
SELECT - CAST( NULL AS SIGNED ) + + 27 * COALESCE ( - COUNT( * ), - 79 + + 67 * - - 56 * + CAST( - - 18 AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3217
SELECT - CAST ( NULL AS INTEGER ) + + 27 * COALESCE ( - COUNT ( * ), - 79 + + 67 * - - 56 * + CAST ( - - 18 AS REAL ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3218
SELECT DISTINCT - 1 * + 83 * - MIN( 75 ) col0
----
6225

skipif mysql # not compatible
query I rowsort label-3218
SELECT DISTINCT - 1 * + 83 * - MIN ( 75 ) col0
----
6225

onlyif mysql # aggregate syntax: 
query II rowsort label-3219
SELECT - - MIN( 15 ), 52 + 20 + + + 12 AS col0
----
15
84

skipif mysql # not compatible
query II rowsort label-3219
SELECT - - MIN ( 15 ), 52 + 20 + + + 12 AS col0
----
15
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3220
SELECT - CAST( + 3 AS SIGNED ) * - 1 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-3220
SELECT - CAST ( + 3 AS INTEGER ) * - 1 AS col2
----
3

query I rowsort
SELECT ALL + ( + 87 ) * - - 69
----
6003

query I rowsort
SELECT ALL - 57 * + 15 AS col2
----
-855

query I rowsort
SELECT NULLIF ( - 59, - 77 ) col1
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-3224
SELECT 6 + + - ( - - ( + 81 ) ) + COUNT( * ) AS col0, - 5
----
-74
-5

skipif mysql # not compatible
query II rowsort label-3224
SELECT 6 + + - ( - - ( + 81 ) ) + COUNT ( * ) AS col0, - 5
----
-74
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3225
SELECT ALL - COUNT( * ) * - + 97 * - 7 AS col2
----
-679

skipif mysql # not compatible
query I rowsort label-3225
SELECT ALL - COUNT ( * ) * - + 97 * - 7 AS col2
----
-679

onlyif mysql # DIV for integer division: 
query I rowsort label-3226
SELECT 36 DIV - 34 + 98 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-3226
SELECT 36 / - 34 + 98 AS col0
----
97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3227
SELECT ALL + CAST( NULL AS DECIMAL ) + - CASE - - 70 WHEN 80 THEN NULL WHEN + + 15 THEN - - COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3227
SELECT ALL + CAST ( NULL AS REAL ) + - CASE - - 70 WHEN 80 THEN NULL WHEN + + 15 THEN - - COUNT ( * ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 63 * - 8
----
504

query I rowsort
SELECT DISTINCT - 5 + + 43
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3230
SELECT DISTINCT 42 * 6 + - 40 + - 64 - + + CASE - 84 WHEN 84 THEN NULL WHEN + 97 THEN - CASE COUNT( * ) WHEN - + 44 * ( 26 ) + + + COUNT( * ) THEN - 60 + + + NULLIF ( + COUNT( * ), - 89 ) WHEN - 21 + - 13 * - 74 THEN NULL WHEN - 60 * CAST( + 35 AS SIGNED ) / + 68 + + 51 * + - 62 + - - 12 THEN NULL WHEN COUNT( * ) + + 44 + + + SUM( DISTINCT + CAST( ( 68 ) AS SIGNED ) ) + 33 THEN NULL ELSE NULL END * - 62 END + + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3230
SELECT DISTINCT 42 * 6 + - 40 + - 64 - + + CASE - 84 WHEN 84 THEN NULL WHEN + 97 THEN - CASE COUNT ( * ) WHEN - + 44 * ( 26 ) + + + COUNT ( * ) THEN - 60 + + + NULLIF ( + COUNT ( * ), - 89 ) WHEN - 21 + - 13 * - 74 THEN NULL WHEN - 60 * CAST ( + 35 AS INTEGER ) / + 68 + + 51 * + - 62 + - - 12 THEN NULL WHEN COUNT ( * ) + + 44 + + + SUM ( DISTINCT + CAST ( ( 68 ) AS INTEGER ) ) + 33 THEN NULL ELSE NULL END * - 62 END + + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT ALL 55 * 12 + - 3 + - 48
----
609

onlyif mysql # DIV for integer division: 
query II rowsort label-3232
SELECT ALL 45 * + 73 + + - ( - 2 ), + 52 DIV + 55 AS col0
----
3287
0

skipif mysql # not compatible
query II rowsort label-3232
SELECT ALL 45 * + 73 + + - ( - 2 ), + 52 / + 55 AS col0
----
3287
0

query I rowsort
SELECT 55 * + + 16
----
880

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT DISTINCT - COUNT( * ) * + + 18 + - 5 + 5 + - - 64 - 66
----
-20

skipif mysql # not compatible
query I rowsort label-3234
SELECT DISTINCT - COUNT ( * ) * + + 18 + - 5 + 5 + - - 64 - 66
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3235
SELECT + MAX( - 95 ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-3235
SELECT + MAX ( - 95 ) AS col2
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-3236
SELECT + 1 * + 40 * 80 DIV - 64 + - 49
----
-99

skipif mysql # not compatible
query I rowsort label-3236
SELECT + 1 * + 40 * 80 / - 64 + - 49
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3237
SELECT ALL 82 * - + MIN( ALL + CAST( NULL AS SIGNED ) ) + 46 col0, 48 AS col1
----
NULL
48

skipif mysql # not compatible
query II rowsort label-3237
SELECT ALL 82 * - + MIN ( ALL + CAST ( NULL AS INTEGER ) ) + 46 col0, 48 AS col1
----
NULL
48

query I rowsort
SELECT 45 * - 88 col1
----
-3960

query II rowsort
SELECT + 1 * - + 14 - + 39, 48 AS col0
----
-53
48

query I rowsort
SELECT ALL + 48 * + ( - + 30 )
----
-1440

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

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

query I rowsort
SELECT DISTINCT - ( - 2 )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3243
SELECT ALL - 76 + CAST( NULL AS SIGNED ) * + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-3243
SELECT ALL - 76 + CAST ( NULL AS INTEGER ) * + 5
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT DISTINCT + 40 - COUNT( * ) + + + 60 * - - 88 AS col0
----
5319

skipif mysql # not compatible
query I rowsort label-3244
SELECT DISTINCT + 40 - COUNT ( * ) + + + 60 * - - 88 AS col0
----
5319

query II rowsort
SELECT DISTINCT - 58 AS col1, 72
----
-58
72

query II rowsort
SELECT + 38 AS col2, + 99
----
38
99

query II rowsort
SELECT 40, 94 * + 16 AS col1
----
40
1504

query I rowsort
SELECT 70 * - 39
----
-2730

onlyif mysql # DIV for integer division: 
query I rowsort label-3249
SELECT 77 DIV - 6
----
-12

skipif mysql # not compatible
query I rowsort label-3249
SELECT 77 / - 6
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3250
SELECT DISTINCT - COUNT( + 4 ) * 85 DIV 90
----
0

skipif mysql # not compatible
query I rowsort label-3250
SELECT DISTINCT - COUNT ( + 4 ) * 85 / 90
----
0

query I rowsort
SELECT ALL - 63 * + 75 * + 75
----
-354375

onlyif mysql # aggregate syntax: 
query II rowsort label-3252
SELECT DISTINCT COUNT( * ) AS col2, 63
----
1
63

skipif mysql # not compatible
query II rowsort label-3252
SELECT DISTINCT COUNT ( * ) AS col2, 63
----
1
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT ALL + COALESCE ( COUNT( * ), 69, - - COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3253
SELECT ALL + COALESCE ( COUNT ( * ), 69, - - COUNT ( * ) ) AS col0
----
1

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

query I rowsort
SELECT ALL - - 3 * + 21 AS col2
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3256
SELECT - - CAST( NULL AS SIGNED ) + - 4 * SUM( ALL + 19 ) + - 64 + - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-3256
SELECT - - CAST ( NULL AS INTEGER ) + - 4 * SUM ( ALL + 19 ) + - 64 + - 99
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3257
SELECT COALESCE ( + 36, + ( - + CAST( NULL AS SIGNED ) ), - - 48 + - 58 ) AS col2, + 61 * 7
----
36
427

skipif mysql # not compatible
query II rowsort label-3257
SELECT COALESCE ( + 36, + ( - + CAST ( NULL AS INTEGER ) ), - - 48 + - 58 ) AS col2, + 61 * 7
----
36
427

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3258
SELECT - + 48 DIV 7 * + 46 + 91 + MAX( DISTINCT - 4 ) col2
----
-189

skipif mysql # not compatible
query I rowsort label-3258
SELECT - + 48 / 7 * + 46 + 91 + MAX ( DISTINCT - 4 ) col2
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-3259
SELECT + + ( 15 ) * COUNT( * ) + - - 87 * 26 AS col2
----
2277

skipif mysql # not compatible
query I rowsort label-3259
SELECT + + ( 15 ) * COUNT ( * ) + - - 87 * 26 AS col2
----
2277

query I rowsort
SELECT - 18 - + - ( + - 43 ) AS col1
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3261
SELECT ALL CASE WHEN NOT CAST( + 5 AS SIGNED ) IN ( - 28, 6, - 93 / - 26, - 8 ) THEN 92 END AS col0
----
92

skipif mysql # not compatible
query I rowsort label-3261
SELECT ALL CASE WHEN NOT CAST ( + 5 AS INTEGER ) IN ( - 28, 6, - 93 / - 26, - 8 ) THEN 92 END AS col0
----
92

query I rowsort
SELECT ALL - 76 + - 12
----
-88

query II rowsort
SELECT 73, 92 * + CASE + - 49 WHEN 40 THEN - 6 * + 41 ELSE NULL END AS col2
----
73
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3264
SELECT + 59 + + 93 + - 14 AS col1, - ( - 37 ) * + + 3 + - NULLIF ( - - COALESCE ( + 96, - + 8, + 62 + - 17 * + 59 ), - ( + MIN( + 97 ) ) + + 44 + - CAST( NULL AS DECIMAL ) ) AS col0
----
138
15

skipif mysql # not compatible
query II rowsort label-3264
SELECT + 59 + + 93 + - 14 AS col1, - ( - 37 ) * + + 3 + - NULLIF ( - - COALESCE ( + 96, - + 8, + 62 + - 17 * + 59 ), - ( + MIN ( + 97 ) ) + + 44 + - CAST ( NULL AS REAL ) ) AS col0
----
138
15

onlyif mysql # DIV for integer division: 
query I rowsort label-3265
SELECT ALL - COALESCE ( + 48, + + 61 DIV + 56 - + 28 + 49, - - 65 )
----
-48

skipif mysql # not compatible
query I rowsort label-3265
SELECT ALL - COALESCE ( + 48, + + 61 / + 56 - + 28 + 49, - - 65 )
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3266
SELECT - - 7 AS col0, 35 * COALESCE ( + - 25, 44 DIV - - COUNT( * ) * + MAX( - COALESCE ( - - 20, - + 12 ) ), + 61 )
----
7
-875

skipif mysql # not compatible
query II rowsort label-3266
SELECT - - 7 AS col0, 35 * COALESCE ( + - 25, 44 / - - COUNT ( * ) * + MAX ( - COALESCE ( - - 20, - + 12 ) ), + 61 )
----
7
-875

query I rowsort
SELECT ( 34 ) AS col2
----
34

query II rowsort
SELECT + ( 15 ), - 1 AS col2
----
15
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3269
SELECT ALL 57 * + COUNT( * ) DIV - + 96 * - + 8
----
0

skipif mysql # not compatible
query I rowsort label-3269
SELECT ALL 57 * + COUNT ( * ) / - + 96 * - + 8
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3270
SELECT ( 5 ), + 28 + - - 17 + + 34 + - + SUM( 76 ) * + CASE + 29 WHEN - 5 THEN + 85 WHEN - - ( - 4 ) * COUNT( * ) THEN 7 WHEN 75 + + - ( - 33 ) THEN 75 + + 6 WHEN - CASE - 28 WHEN - 8 THEN + + MIN( + 60 ) * 77 WHEN + 98 THEN - 79 + + 55 END + 36 + 23 THEN NULL ELSE + CAST( NULL AS DECIMAL ) * + - 53 END + + - 67 + 28 AS col0
----
5
NULL

skipif mysql # not compatible
query II rowsort label-3270
SELECT ( 5 ), + 28 + - - 17 + + 34 + - + SUM ( 76 ) * + CASE + 29 WHEN - 5 THEN + 85 WHEN - - ( - 4 ) * COUNT ( * ) THEN 7 WHEN 75 + + - ( - 33 ) THEN 75 + + 6 WHEN - CASE - 28 WHEN - 8 THEN + + MIN ( + 60 ) * 77 WHEN + 98 THEN - 79 + + 55 END + 36 + 23 THEN NULL ELSE + CAST ( NULL AS REAL ) * + - 53 END + + - 67 + 28 AS col0
----
5
NULL

query I rowsort
SELECT + CASE + 64 WHEN - 6 THEN + + 28 WHEN - 80 THEN NULL END
----
NULL

query I rowsort
SELECT ALL 21 * - 11 AS col2
----
-231

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3273
SELECT ALL CAST( NULL AS DECIMAL ) * ( 58 ) - + 8 * 97 + - 57 + + 62 - + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-3273
SELECT ALL CAST ( NULL AS REAL ) * ( 58 ) - + 8 * 97 + - 57 + + 62 - + 47
----
NULL

query I rowsort
SELECT ( + + 90 )
----
90

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3276
SELECT NULLIF ( - - SUM( 14 ), + 87 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-3276
SELECT NULLIF ( - - SUM ( 14 ), + 87 ) AS col2
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3277
SELECT - COUNT( * ) + + COALESCE ( + + COUNT( * ), COALESCE ( - + 87, - 65 - - 55, AVG ( DISTINCT 45 ) * - 45 * - 82 DIV + 9 - + + COUNT( * ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-3277
SELECT - COUNT ( * ) + + COALESCE ( + + COUNT ( * ), COALESCE ( - + 87, - 65 - - 55, AVG ( DISTINCT 45 ) * - 45 * - 82 / + 9 - + + COUNT ( * ) ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3278
SELECT + 32 * - + 81 * - - COUNT( + 56 ) * - + 29 AS col1
----
75168

skipif mysql # not compatible
query I rowsort label-3278
SELECT + 32 * - + 81 * - - COUNT ( + 56 ) * - + 29 AS col1
----
75168

onlyif mysql # aggregate syntax: 
query I rowsort label-3279
SELECT - 37 * CASE - 70 WHEN + - 67 * + - COUNT( * ) THEN - COUNT( * ) WHEN 91 - - + 3 THEN NULL WHEN ( - - COUNT( * ) ) THEN + - 52 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3279
SELECT - 37 * CASE - 70 WHEN + - 67 * + - COUNT ( * ) THEN - COUNT ( * ) WHEN 91 - - + 3 THEN NULL WHEN ( - - COUNT ( * ) ) THEN + - 52 END AS col1
----
NULL

query I rowsort
SELECT ALL - 81 * - 7 AS col1
----
567

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

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

query I rowsort
SELECT COALESCE ( - + 39, + 35 )
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3283
SELECT + 58 * + 88 * - 42 / 9 + - 56 + - 8 - COUNT( * ) * + CAST( NULL AS SIGNED ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3283
SELECT + 58 * + 88 * - 42 / 9 + - 56 + - 8 - COUNT ( * ) * + CAST ( NULL AS INTEGER ) + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3284
SELECT COALESCE ( COUNT( * ), 93 * - 3 + 62 + ( - 97 ) + - 39 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3284
SELECT COALESCE ( COUNT ( * ), 93 * - 3 + 62 + ( - 97 ) + - 39 ) AS col1
----
1

query I rowsort
SELECT DISTINCT + 9 * + 82
----
738

query I rowsort
SELECT ALL 7 * + 56 * + - 77 AS col1
----
-30184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3287
SELECT ALL 66 * + 7 * + 66 * + - CAST( - 11 AS SIGNED )
----
335412

skipif mysql # not compatible
query I rowsort label-3287
SELECT ALL 66 * + 7 * + 66 * + - CAST ( - 11 AS INTEGER )
----
335412

onlyif mysql # aggregate syntax: 
query II rowsort label-3288
SELECT - + 12 + - COUNT( * ) * + 51 + - - 22, COALESCE ( + 72, + - 54 ) AS col2
----
-41
72

skipif mysql # not compatible
query II rowsort label-3288
SELECT - + 12 + - COUNT ( * ) * + 51 + - - 22, COALESCE ( + 72, + - 54 ) AS col2
----
-41
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3289
SELECT - 22 + + COUNT( ALL 76 ) * - + 56 col1
----
-78

skipif mysql # not compatible
query I rowsort label-3289
SELECT - 22 + + COUNT ( ALL 76 ) * - + 56 col1
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3290
SELECT - 36 + - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3290
SELECT - 36 + - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3291
SELECT - CAST( - + 5 AS SIGNED ) + 18
----
23

skipif mysql # not compatible
query I rowsort label-3291
SELECT - CAST ( - + 5 AS INTEGER ) + 18
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3292
SELECT ALL + COUNT( DISTINCT + 40 ) + - 49 * 0 - - SUM( ALL + 91 ) - ( + CAST( NULL AS SIGNED ) ) * + - 55 * - 58 * + + 18 * - - 7 * - COUNT( * ) * - 64 / - 98 / + + 58 + 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3292
SELECT ALL + COUNT ( DISTINCT + 40 ) + - 49 * 0 - - SUM ( ALL + 91 ) - ( + CAST ( NULL AS INTEGER ) ) * + - 55 * - 58 * + + 18 * - - 7 * - COUNT ( * ) * - 64 / - 98 / + + 58 + 54 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3293
SELECT - + 60 + + CASE + 8 WHEN CAST( NULL AS SIGNED ) THEN - 91 ELSE NULL END - + - 68 + - + 62 + - - COALESCE ( + ( 42 ), + COUNT( * ) * + 13 * - + 92 + + - 61, ( + SUM( DISTINCT - + 82 ) ) ) * + - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-3293
SELECT - + 60 + + CASE + 8 WHEN CAST ( NULL AS INTEGER ) THEN - 91 ELSE NULL END - + - 68 + - + 62 + - - COALESCE ( + ( 42 ), + COUNT ( * ) * + 13 * - + 92 + + - 61, ( + SUM ( DISTINCT - + 82 ) ) ) * + - 23
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3295
SELECT ALL - SUM( - CASE + 44 WHEN - + ( + 65 ) THEN + + 7 * - + NULLIF ( + 72, - 18 ) / - ( - CASE - 85 WHEN - 25 THEN - 80 WHEN - 81 - - - 29 THEN NULL ELSE NULL END ) WHEN + 88 THEN NULL END ) * - 12 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3295
SELECT ALL - SUM ( - CASE + 44 WHEN - + ( + 65 ) THEN + + 7 * - + NULLIF ( + 72, - 18 ) / - ( - CASE - 85 WHEN - 25 THEN - 80 WHEN - 81 - - - 29 THEN NULL ELSE NULL END ) WHEN + 88 THEN NULL END ) * - 12 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT DISTINCT - + MIN( - 19 ) + 90 + - - 90 * 42 + - 56 * - 67
----
7641

skipif mysql # not compatible
query I rowsort label-3297
SELECT DISTINCT - + MIN ( - 19 ) + 90 + - - 90 * 42 + - 56 * - 67
----
7641

onlyif mysql # DIV for integer division: 
query I rowsort label-3298
SELECT DISTINCT - + 34 DIV 71 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3298
SELECT DISTINCT - + 34 / 71 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3299
SELECT ALL - NULLIF ( - COUNT( * ), 88 + 49 ) + + ( + + 22 ) * + COALESCE ( 29, - MIN( - 19 ) * - + 53 DIV - + 41 ) AS col2, 67 AS col1
----
639
67

skipif mysql # not compatible
query II rowsort label-3299
SELECT ALL - NULLIF ( - COUNT ( * ), 88 + 49 ) + + ( + + 22 ) * + COALESCE ( 29, - MIN ( - 19 ) * - + 53 / - + 41 ) AS col2, 67 AS col1
----
639
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3300
SELECT ALL - - 83 * - + COALESCE ( + - 31, + + COUNT( * ) DIV - - 38 + + 64 ) col2
----
2573

skipif mysql # not compatible
query I rowsort label-3300
SELECT ALL - - 83 * - + COALESCE ( + - 31, + + COUNT ( * ) / - - 38 + + 64 ) col2
----
2573

onlyif mysql # aggregate syntax: 
query I rowsort label-3301
SELECT ALL + + 21 + + - 8 * COUNT( * ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-3301
SELECT ALL + + 21 + + - 8 * COUNT ( * ) AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT DISTINCT - 81 * 5 + + + CASE - - 39 WHEN + - 24 * + 42 THEN 6 * - 18 WHEN + 58 + - + 37 * + 57 THEN NULL END + COUNT( * ) * + ( 31 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3302
SELECT DISTINCT - 81 * 5 + + + CASE - - 39 WHEN + - 24 * + 42 THEN 6 * - 18 WHEN + 58 + - + 37 * + 57 THEN NULL END + COUNT ( * ) * + ( 31 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT - COALESCE ( COUNT( * ), - 30, - 18 ) * - 21 * - 4 AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-3304
SELECT - COALESCE ( COUNT ( * ), - 30, - 18 ) * - 21 * - 4 AS col1
----
-84

query I rowsort
SELECT - - COALESCE ( - 32, - 54 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT + COUNT( - 27 ) + 54
----
55

skipif mysql # not compatible
query I rowsort label-3306
SELECT + COUNT ( - 27 ) + 54
----
55

query I rowsort
SELECT ALL 16 + 6 + - 10 AS col0
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3308
SELECT ALL 10 DIV + 40 DIV - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3308
SELECT ALL 10 / + 40 / - COUNT ( * ) AS col1
----
0

query II rowsort
SELECT 49 AS col1, 25
----
49
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT - COALESCE ( - 11, ( + 93 ), 61 * + 73 + 51 - - - 40 * - + 40 + - - 96 + 72 * + 77 + + SUM( + 95 ), 2 )
----
11

skipif mysql # not compatible
query I rowsort label-3310
SELECT - COALESCE ( - 11, ( + 93 ), 61 * + 73 + 51 - - - 40 * - + 40 + - - 96 + 72 * + 77 + + SUM ( + 95 ), 2 )
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3311
SELECT ALL - 57 - - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3311
SELECT ALL - 57 - - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 3 * 81 col0
----
243

query I rowsort
SELECT DISTINCT 21 * + 63 AS col0
----
1323

onlyif mysql # aggregate syntax: 
query I rowsort label-3314
SELECT + 44 * - MIN( + 56 ) * - 6 AS col2
----
14784

skipif mysql # not compatible
query I rowsort label-3314
SELECT + 44 * - MIN ( + 56 ) * - 6 AS col2
----
14784

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3315
SELECT + COALESCE ( + ( ( - 53 ) ), - 73, - - SUM( + 97 ) DIV ( 20 ) DIV - 30 - + 21 * - 72 )
----
-53

skipif mysql # not compatible
query I rowsort label-3315
SELECT + COALESCE ( + ( ( - 53 ) ), - 73, - - SUM ( + 97 ) / ( 20 ) / - 30 - + 21 * - 72 )
----
-53

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3316
SELECT + 61 + + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3316
SELECT + 61 + + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT 67 * 61
----
4087

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3318
SELECT ALL 30 DIV 84 * - 71 * + 86 * 0 - COUNT( * ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-3318
SELECT ALL 30 / 84 * - 71 * + 86 * 0 - COUNT ( * ) col2
----
-1

query I rowsort
SELECT ALL 2 * - - 92
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-3320
SELECT 80 * - SUM( + 98 ) AS col0
----
-7840

skipif mysql # not compatible
query I rowsort label-3320
SELECT 80 * - SUM ( + 98 ) AS col0
----
-7840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3321
SELECT COUNT( * ) * 43 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3321
SELECT COUNT ( * ) * 43 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3322
SELECT + CAST( + 31 AS SIGNED ) * MAX( DISTINCT + 22 ) - - 51
----
733

skipif mysql # not compatible
query I rowsort label-3322
SELECT + CAST ( + 31 AS INTEGER ) * MAX ( DISTINCT + 22 ) - - 51
----
733

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3323
SELECT COUNT( * ) * - + CAST( NULL AS SIGNED ) * 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3323
SELECT COUNT ( * ) * - + CAST ( NULL AS INTEGER ) * 16 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3324
SELECT ALL - ( 14 ) DIV + - ( + - 72 )
----
0

skipif mysql # not compatible
query I rowsort label-3324
SELECT ALL - ( 14 ) / + - ( + - 72 )
----
0

query I rowsort
SELECT DISTINCT + + 3 * + 94 AS col0
----
282

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

skipif mysql # not compatible
query I rowsort label-3326
SELECT DISTINCT + COUNT ( * ) + - - COUNT ( * ) / - - MIN ( - 47 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3327
SELECT 22 DIV + 11 + + ( COUNT( * ) ) - + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3327
SELECT 22 / + 11 + + ( COUNT ( * ) ) - + COUNT ( * ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT - 34 * - + COUNT( DISTINCT 41 ) * + + COALESCE ( - ( 4 ), + 42 )
----
-136

skipif mysql # not compatible
query I rowsort label-3328
SELECT - 34 * - + COUNT ( DISTINCT 41 ) * + + COALESCE ( - ( 4 ), + 42 )
----
-136

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

skipif mysql # not compatible
query I rowsort label-3329
SELECT DISTINCT 22 + - CAST ( NULL AS REAL ) + - 56
----
NULL

query I rowsort
SELECT ALL + - 61 + - 63 AS col0
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT + COUNT( * ) * - COUNT( * ) + - - 69 + ( + + 94 )
----
162

skipif mysql # not compatible
query I rowsort label-3331
SELECT + COUNT ( * ) * - COUNT ( * ) + - - 69 + ( + + 94 )
----
162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3332
SELECT ALL + ( - ( - - CAST( + MIN( + 41 ) AS SIGNED ) ) ) + - - 50
----
9

skipif mysql # not compatible
query I rowsort label-3332
SELECT ALL + ( - ( - - CAST ( + MIN ( + 41 ) AS INTEGER ) ) ) + - - 50
----
9

query I rowsort
SELECT ALL - 45 * - + 22 AS col2
----
990

query I rowsort
SELECT 91 * COALESCE ( 41, + 25 )
----
3731

onlyif mysql # aggregate syntax: 
query I rowsort label-3335
SELECT - + MAX( 65 ) col0
----
-65

skipif mysql # not compatible
query I rowsort label-3335
SELECT - + MAX ( 65 ) col0
----
-65

query I rowsort
SELECT DISTINCT + 26 + 85
----
111

query I rowsort
SELECT - 94 + 57 - + 72 AS col0
----
-109

query II rowsort
SELECT - 98 col2, - 92 AS col0
----
-98
-92

query I rowsort
SELECT ALL + 93 + - + ( + - 82 ) AS col2
----
175

query I rowsort
SELECT + ( + 48 ) + - - 41
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3341
SELECT ALL 4 - - - 30 - 56 + + + 21 * + ( + - 44 ) * - ( - + COUNT( * ) ) - + 51 * + + 33 + + + 4 - - ( - 46 ) + + - MIN( ALL + + CASE + - 48 WHEN + 40 THEN 54 * - - 94 END ) / - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-3341
SELECT ALL 4 - - - 30 - 56 + + + 21 * + ( + - 44 ) * - ( - + COUNT ( * ) ) - + 51 * + + 33 + + + 4 - - ( - 46 ) + + - MIN ( ALL + + CASE + - 48 WHEN + 40 THEN 54 * - - 94 END ) / - 57
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3342
SELECT - 3 AS col0, + 1 + + CASE - 84 WHEN MAX( DISTINCT - + 68 ) + 69 + - 0 * + 29 THEN + 85 WHEN - 86 THEN NULL ELSE NULL END
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-3342
SELECT - 3 AS col0, + 1 + + CASE - 84 WHEN MAX ( DISTINCT - + 68 ) + 69 + - 0 * + 29 THEN + 85 WHEN - 86 THEN NULL ELSE NULL END
----
-3
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3343
SELECT 65 + - + 68 + - COUNT( DISTINCT 89 ) + - 58 * + + SUM( DISTINCT + 38 ) AS col1, - 94 DIV MIN( - 15 ) AS col1
----
-2208
6

skipif mysql # not compatible
query II rowsort label-3343
SELECT 65 + - + 68 + - COUNT ( DISTINCT 89 ) + - 58 * + + SUM ( DISTINCT + 38 ) AS col1, - 94 / MIN ( - 15 ) AS col1
----
-2208
6

query II rowsort
SELECT 71 * + NULLIF ( + + 98, 19 ), + ( - 16 ) AS col2
----
6958
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-3345
SELECT ALL 14 AS col1, - COUNT( * ) AS col1
----
14
-1

skipif mysql # not compatible
query II rowsort label-3345
SELECT ALL 14 AS col1, - COUNT ( * ) AS col1
----
14
-1

query I rowsort
SELECT 61 * + + 47
----
2867

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3347
SELECT SUM( + - 3 ) * 11 DIV - + 17, 12 AS col2
----
1
12

skipif mysql # not compatible
query II rowsort label-3347
SELECT SUM ( + - 3 ) * 11 / - + 17, 12 AS col2
----
1
12

query I rowsort
SELECT 0 + 16 AS col0
----
16

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3350
SELECT + 75 DIV 13 + ( - - 27 ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-3350
SELECT + 75 / 13 + ( - - 27 ) AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT 86 * - MIN( 50 ) AS col1
----
-4300

skipif mysql # not compatible
query I rowsort label-3351
SELECT 86 * - MIN ( 50 ) AS col1
----
-4300

query I rowsort
SELECT DISTINCT - ( - 27 )
----
27

query I rowsort
SELECT ALL ( - 99 ) * + 34
----
-3366

onlyif mysql # DIV for integer division: 
query I rowsort label-3354
SELECT COALESCE ( - 76, + + 83 ) DIV - + 11 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-3354
SELECT COALESCE ( - 76, + + 83 ) / - + 11 AS col0
----
6

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3356
SELECT - ( + 39 ) col1, + 60 + + + 50 DIV + 94 AS col2
----
-39
60

skipif mysql # not compatible
query II rowsort label-3356
SELECT - ( + 39 ) col1, + 60 + + + 50 / + 94 AS col2
----
-39
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3357
SELECT + MAX( 8 ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-3357
SELECT + MAX ( 8 ) AS col2
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3358
SELECT + COUNT( * ) * ( CAST( - NULLIF ( - 2, + MIN( ALL 33 ) - 41 ) AS SIGNED ) ) * + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-3358
SELECT + COUNT ( * ) * ( CAST ( - NULLIF ( - 2, + MIN ( ALL 33 ) - 41 ) AS INTEGER ) ) * + - COUNT ( * )
----
-2

query I rowsort
SELECT 67 + - 70 AS col1
----
-3

query I rowsort
SELECT + + ( - 81 ) AS col0
----
-81

query I rowsort
SELECT ALL - 49 + + 95 AS col2
----
46

query I rowsort
SELECT 44 * 98 + + + 78
----
4390

onlyif mysql # aggregate syntax: 
query I rowsort label-3363
SELECT ALL - COUNT( * ) + - 90 - - 30
----
-61

skipif mysql # not compatible
query I rowsort label-3363
SELECT ALL - COUNT ( * ) + - 90 - - 30
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-3364
SELECT ALL - - 42, COUNT( * ) AS col1
----
42
1

skipif mysql # not compatible
query II rowsort label-3364
SELECT ALL - - 42, COUNT ( * ) AS col1
----
42
1

query II rowsort
SELECT ALL - - 81 AS col0, 40
----
81
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3366
SELECT COUNT( * ) + - CAST( NULL AS SIGNED ) + - ( - 72 ) * - - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-3366
SELECT COUNT ( * ) + - CAST ( NULL AS INTEGER ) + - ( - 72 ) * - - 50
----
NULL

query I rowsort
SELECT DISTINCT - ( + + 13 ) AS col2
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-3368
SELECT ALL + - 33 * - + ( 41 ) + - + 3 AS col0, + ( - - 21 ) + COUNT( + 38 )
----
1350
22

skipif mysql # not compatible
query II rowsort label-3368
SELECT ALL + - 33 * - + ( 41 ) + - + 3 AS col0, + ( - - 21 ) + COUNT ( + 38 )
----
1350
22

query I rowsort
SELECT + 34 + 79 AS col1
----
113

onlyif mysql # DIV for integer division: 
query I rowsort label-3370
SELECT DISTINCT + 64 DIV - - 58
----
1

skipif mysql # not compatible
query I rowsort label-3370
SELECT DISTINCT + 64 / - - 58
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT + MIN( DISTINCT 26 ) * - SUM( + 44 )
----
-1144

skipif mysql # not compatible
query I rowsort label-3371
SELECT + MIN ( DISTINCT 26 ) * - SUM ( + 44 )
----
-1144

query I rowsort
SELECT 75 + - + 28 col1
----
47

query I rowsort
SELECT 5 * - + 20
----
-100

query I rowsort
SELECT DISTINCT 40 * 55
----
2200

query II rowsort
SELECT - + 8, + ( - - 23 ) col1
----
-8
23

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3377
SELECT - - 54, + COUNT( * ) * - 87 col2
----
54
-87

skipif mysql # not compatible
query II rowsort label-3377
SELECT - - 54, + COUNT ( * ) * - 87 col2
----
54
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT ALL - MIN( ALL 96 ) - + COUNT( - - 4 ) + 90 * + 49 * + ( + 66 ) + 74 AS col0
----
291037

skipif mysql # not compatible
query I rowsort label-3378
SELECT ALL - MIN ( ALL 96 ) - + COUNT ( - - 4 ) + 90 * + 49 * + ( + 66 ) + 74 AS col0
----
291037

query I rowsort
SELECT ALL 57 * 71 AS col2
----
4047

query I rowsort
SELECT 81 * + 49 AS col0
----
3969

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT ALL MIN( DISTINCT - 85 ) col0
----
-85

skipif mysql # not compatible
query I rowsort label-3381
SELECT ALL MIN ( DISTINCT - 85 ) col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT 90 + + + 19 * - - COUNT( * ) + 83 * - 82
----
-6697

skipif mysql # not compatible
query I rowsort label-3382
SELECT 90 + + + 19 * - - COUNT ( * ) + 83 * - 82
----
-6697

onlyif mysql # aggregate syntax: 
query II rowsort label-3383
SELECT - 38 * 48 * - 17 AS col0, MAX( ALL - NULLIF ( - + ( + - 97 ), + 0 * - 8 ) ) * + 66 AS col2
----
31008
-6402

skipif mysql # not compatible
query II rowsort label-3383
SELECT - 38 * 48 * - 17 AS col0, MAX ( ALL - NULLIF ( - + ( + - 97 ), + 0 * - 8 ) ) * + 66 AS col2
----
31008
-6402

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3384
SELECT ALL MIN( + CAST( NULL AS SIGNED ) ), + 78 - - COUNT( * ) AS col0
----
NULL
79

skipif mysql # not compatible
query II rowsort label-3384
SELECT ALL MIN ( + CAST ( NULL AS INTEGER ) ), + 78 - - COUNT ( * ) AS col0
----
NULL
79

query I rowsort
SELECT - 26 + 30 * - - 41 * - + 57
----
-70136

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT DISTINCT + 50 + - + 83 + - 29 * - COUNT( * ) - + 72
----
-76

skipif mysql # not compatible
query I rowsort label-3387
SELECT DISTINCT + 50 + - + 83 + - 29 * - COUNT ( * ) - + 72
----
-76

query I rowsort
SELECT ALL COALESCE ( - 57, + 83 ) col1
----
-57

query I rowsort
SELECT DISTINCT + 41 * 76
----
3116

query I rowsort
SELECT COALESCE ( 69, + 57, 97 ) AS col1
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-3391
SELECT - ( - 42 ) DIV + 46 + - 86 AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-3391
SELECT - ( - 42 ) / + 46 + - 86 AS col2
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-3392
SELECT DISTINCT + 14 * - CASE - 60 WHEN COUNT( * ) THEN - ( COUNT( * ) ) END + + 68 AS col0, - 24 * - 70 AS col0
----
NULL
1680

skipif mysql # not compatible
query II rowsort label-3392
SELECT DISTINCT + 14 * - CASE - 60 WHEN COUNT ( * ) THEN - ( COUNT ( * ) ) END + + 68 AS col0, - 24 * - 70 AS col0
----
NULL
1680

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

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

query I rowsort
SELECT - 48 + - + 10 AS col1
----
-58

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3396
SELECT DISTINCT + SUM( DISTINCT - - 88 ) AS col2, + 48 col1
----
88
48

skipif mysql # not compatible
query II rowsort label-3396
SELECT DISTINCT + SUM ( DISTINCT - - 88 ) AS col2, + 48 col1
----
88
48

query I rowsort
SELECT ALL - + 60 * 23 + + 85
----
-1295

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT - 55 * 80 * 18 + - + ( + COUNT( * ) )
----
-79201

skipif mysql # not compatible
query I rowsort label-3398
SELECT - 55 * 80 * 18 + - + ( + COUNT ( * ) )
----
-79201

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3400
SELECT + 10 * - 87 - + + 61 - + 48 DIV 43 * - - 44
----
-975

skipif mysql # not compatible
query I rowsort label-3400
SELECT + 10 * - 87 - + + 61 - + 48 / 43 * - - 44
----
-975

query I rowsort
SELECT DISTINCT + + 47 AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT ALL 69 * + COUNT( * ) + + 32
----
101

skipif mysql # not compatible
query I rowsort label-3402
SELECT ALL 69 * + COUNT ( * ) + + 32
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT + + COUNT( + ( + - 19 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3403
SELECT + + COUNT ( + ( + - 19 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3404
SELECT DISTINCT COUNT( * ) * + + MAX( + + 65 ) - 0 + - - SUM( DISTINCT 9 ) - + + 20 + + 80 * 52 - + - COUNT( * )
----
4215

skipif mysql # not compatible
query I rowsort label-3404
SELECT DISTINCT COUNT ( * ) * + + MAX ( + + 65 ) - 0 + - - SUM ( DISTINCT 9 ) - + + 20 + + 80 * 52 - + - COUNT ( * )
----
4215

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT MIN( 20 )
----
20

skipif mysql # not compatible
query I rowsort label-3405
SELECT MIN ( 20 )
----
20

query I rowsort
SELECT ALL + - 10 * - 20 + + 18 - 49
----
169

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

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

query I rowsort
SELECT DISTINCT + 35 * - + 30 + - 64 + - 95 AS col1
----
-1209

onlyif mysql # aggregate syntax: 
query I rowsort label-3409
SELECT ALL + - ( - - NULLIF ( + 31, MAX( DISTINCT + 2 ) ) ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-3409
SELECT ALL + - ( - - NULLIF ( + 31, MAX ( DISTINCT + 2 ) ) ) AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3410
SELECT - SUM( DISTINCT - - 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-3410
SELECT - SUM ( DISTINCT - - 51 )
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3411
SELECT + 59 * - 78, - 49 + + - COUNT( * ) DIV - 20 AS col0
----
-4602
-49

skipif mysql # not compatible
query II rowsort label-3411
SELECT + 59 * - 78, - 49 + + - COUNT ( * ) / - 20 AS col0
----
-4602
-49

query I rowsort
SELECT ALL 29 * - 96
----
-2784

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT ALL CASE - - 27 WHEN - COUNT( * ) THEN + - CASE - 67 WHEN - - ( + 98 ) THEN ( + 48 ) * 31 ELSE NULL END + + ( - 76 ) + + 60 * - 33 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3413
SELECT ALL CASE - - 27 WHEN - COUNT ( * ) THEN + - CASE - 67 WHEN - - ( + 98 ) THEN ( + 48 ) * 31 ELSE NULL END + + ( - 76 ) + + 60 * - 33 END col1
----
NULL

query I rowsort
SELECT DISTINCT + + ( - 52 ) * - + 46 * - ( - 97 )
----
232024

query I rowsort
SELECT + - 47 * 81 * - 79 AS col1
----
300753

onlyif mysql # DIV for integer division: 
query I rowsort label-3416
SELECT DISTINCT 80 DIV - - 38 col2
----
2

skipif mysql # not compatible
query I rowsort label-3416
SELECT DISTINCT 80 / - - 38 col2
----
2

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

skipif mysql # not compatible
query I rowsort label-3417
SELECT - ( CASE - + 63 WHEN - + ( - 91 ) THEN + COUNT ( * ) END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3418
SELECT + 15 + - COUNT( * ) - - 7 * + 7 * - + 52
----
-2534

skipif mysql # not compatible
query I rowsort label-3418
SELECT + 15 + - COUNT ( * ) - - 7 * + 7 * - + 52
----
-2534

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT + 21 * + + COUNT( * ) * - ( + - 35 ) AS col1
----
735

skipif mysql # not compatible
query I rowsort label-3419
SELECT + 21 * + + COUNT ( * ) * - ( + - 35 ) AS col1
----
735

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3420
SELECT - COALESCE ( 36, + 20 DIV + CAST( NULL AS SIGNED ) * + - 96 * - 94 ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-3420
SELECT - COALESCE ( 36, + 20 / + CAST ( NULL AS INTEGER ) * + - 96 * - 94 ) AS col0
----
-36

query I rowsort
SELECT DISTINCT 44 * - - 68 AS col2
----
2992

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT ALL COUNT( * ) + 49 + + - 1 + - 44 + + 83 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-3422
SELECT ALL COUNT ( * ) + 49 + + - 1 + - 44 + + 83 AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3423
SELECT ALL 79 + - - COUNT( * ) col1
----
80

skipif mysql # not compatible
query I rowsort label-3423
SELECT ALL 79 + - - COUNT ( * ) col1
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3424
SELECT ALL 97 * - 66 * 28 AS col2, COUNT( * ) + + 45 + - + NULLIF ( - 19, 77 ) * + NULLIF ( - COALESCE ( + 17, - 76 DIV + 57 * - MAX( + 49 ), + 2 ), - + ( - 70 ) * 95 + + CASE - 2 WHEN 98 THEN 22 ELSE 67 * + COUNT( - 25 ) * 68 + - 42 * - + 67 END )
----
-179256
-277

skipif mysql # not compatible
query II rowsort label-3424
SELECT ALL 97 * - 66 * 28 AS col2, COUNT ( * ) + + 45 + - + NULLIF ( - 19, 77 ) * + NULLIF ( - COALESCE ( + 17, - 76 / + 57 * - MAX ( + 49 ), + 2 ), - + ( - 70 ) * 95 + + CASE - 2 WHEN 98 THEN 22 ELSE 67 * + COUNT ( - 25 ) * 68 + - 42 * - + 67 END )
----
-179256
-277

onlyif mysql # DIV for integer division: 
query I rowsort label-3425
SELECT + 3 DIV + 17 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3425
SELECT + 3 / + 17 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3426
SELECT DISTINCT 8 + + 3 * - 76 + + CAST( - + 60 AS SIGNED ) AS col2
----
-280

skipif mysql # not compatible
query I rowsort label-3426
SELECT DISTINCT 8 + + 3 * - 76 + + CAST ( - + 60 AS INTEGER ) AS col2
----
-280

query II rowsort
SELECT 89 AS col0, 42
----
89
42

onlyif mysql # aggregate syntax: 
query II rowsort label-3428
SELECT DISTINCT + ( 88 ) + 37, - COUNT( * ) AS col1
----
125
-1

skipif mysql # not compatible
query II rowsort label-3428
SELECT DISTINCT + ( 88 ) + 37, - COUNT ( * ) AS col1
----
125
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3429
SELECT DISTINCT COUNT( * ) + CAST( + 51 AS SIGNED ) AS col2, 34 * + 61
----
52
2074

skipif mysql # not compatible
query II rowsort label-3429
SELECT DISTINCT COUNT ( * ) + CAST ( + 51 AS INTEGER ) AS col2, 34 * + 61
----
52
2074

query I rowsort
SELECT ALL - ( + 57 ) + 10 AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT - 7 + - COALESCE ( + 92, - 21 ) * COUNT( * ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-3431
SELECT - 7 + - COALESCE ( + 92, - 21 ) * COUNT ( * ) AS col0
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-3432
SELECT ALL + 76, 16 + + COUNT( * ) AS col0
----
76
17

skipif mysql # not compatible
query II rowsort label-3432
SELECT ALL + 76, 16 + + COUNT ( * ) AS col0
----
76
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3433
SELECT ALL + 87 DIV + 1 + - 16 - - COUNT( + + 31 ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-3433
SELECT ALL + 87 / + 1 + - 16 - - COUNT ( + + 31 ) AS col1
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-3434
SELECT DISTINCT + - 17 DIV + 92 * 20 + + 15
----
15

skipif mysql # not compatible
query I rowsort label-3434
SELECT DISTINCT + - 17 / + 92 * 20 + + 15
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT - MIN( DISTINCT + - 52 ) + - 85 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-3435
SELECT - MIN ( DISTINCT + - 52 ) + - 85 AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT ALL + + MAX( DISTINCT 54 ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-3436
SELECT ALL + + MAX ( DISTINCT 54 ) AS col2
----
54

query I rowsort
SELECT ALL - 58 * + 65
----
-3770

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3439
SELECT - CASE + 64 WHEN + 37 THEN NULL WHEN + - 52 * ( + ( + ( - 83 ) ) ) THEN + 38 - 13 + COUNT( * ) * - COALESCE ( + - 12, + 78 ) END - + 88 * + 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3439
SELECT - CASE + 64 WHEN + 37 THEN NULL WHEN + - 52 * ( + ( + ( - 83 ) ) ) THEN + 38 - 13 + COUNT ( * ) * - COALESCE ( + - 12, + 78 ) END - + 88 * + 22 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - - 25 * - 35 AS col1
----
-875

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3441
SELECT - - MIN( + 53 ) DIV + COUNT( * ) + 97 AS col1
----
150

skipif mysql # not compatible
query I rowsort label-3441
SELECT - - MIN ( + 53 ) / + COUNT ( * ) + 97 AS col1
----
150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3442
SELECT 3 DIV + + 99 - + 24 + - + COUNT( * ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-3442
SELECT 3 / + + 99 - + 24 + - + COUNT ( * ) AS col1
----
-25

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3444
SELECT + 46 * + - 60 + + COUNT( * ) AS col1, 92 col1
----
-2759
92

skipif mysql # not compatible
query II rowsort label-3444
SELECT + 46 * + - 60 + + COUNT ( * ) AS col1, 92 col1
----
-2759
92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3445
SELECT + 5 AS col2, - ( + 38 ) + - CAST( NULL AS SIGNED ) * + + CAST( NULL AS SIGNED ) + 77 + 28 AS col0
----
5
NULL

skipif mysql # not compatible
query II rowsort label-3445
SELECT + 5 AS col2, - ( + 38 ) + - CAST ( NULL AS INTEGER ) * + + CAST ( NULL AS INTEGER ) + 77 + 28 AS col0
----
5
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3446
SELECT - + 95 - NULLIF ( - 65, 77 ) + - CAST( 28 AS SIGNED )
----
-58

skipif mysql # not compatible
query I rowsort label-3446
SELECT - + 95 - NULLIF ( - 65, 77 ) + - CAST ( 28 AS INTEGER )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT + COUNT( * ) * - 81 - - 38 + - ( 29 ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-3447
SELECT + COUNT ( * ) * - 81 - - 38 + - ( 29 ) AS col2
----
-72

query I rowsort
SELECT - 66 * - + 11 * - + 74 + 8 AS col2
----
-53716

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3449
SELECT ALL 49 * - 30 + 65 - + COUNT( * ) + - + 83 + - CAST( NULL AS SIGNED ) + + COALESCE ( + 93, - 18, - + ( - COUNT( * ) ) + - + 17 ) * - COUNT( 90 ) - - 10 * - - COUNT( * ) * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3449
SELECT ALL 49 * - 30 + 65 - + COUNT ( * ) + - + 83 + - CAST ( NULL AS INTEGER ) + + COALESCE ( + 93, - 18, - + ( - COUNT ( * ) ) + - + 17 ) * - COUNT ( 90 ) - - 10 * - - COUNT ( * ) * + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + COALESCE ( - 67, + + ( 83 ) )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3451
SELECT - 5 * - 89 * COUNT( * ) * - + 7
----
-3115

skipif mysql # not compatible
query I rowsort label-3451
SELECT - 5 * - 89 * COUNT ( * ) * - + 7
----
-3115

query I rowsort
SELECT ALL 49 * + + 81 AS col0
----
3969

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3453
SELECT + 32 + COALESCE ( - + CASE + 31 WHEN SUM( - + 0 ) DIV + 1 THEN + 85 WHEN - 93 THEN NULL WHEN 39 THEN 71 * - - NULLIF ( - - 3, NULLIF ( - 77, - - COUNT( * ) ) ) + - - CAST( NULL AS SIGNED ) + 80 END, NULLIF ( - CAST( 21 AS SIGNED ), CAST( - 97 AS SIGNED ) ), + COUNT( * ) * + CAST( NULL AS SIGNED ) ) DIV - - COUNT( * ) col1
----
11

skipif mysql # not compatible
query I rowsort label-3453
SELECT + 32 + COALESCE ( - + CASE + 31 WHEN SUM ( - + 0 ) / + 1 THEN + 85 WHEN - 93 THEN NULL WHEN 39 THEN 71 * - - NULLIF ( - - 3, NULLIF ( - 77, - - COUNT ( * ) ) ) + - - CAST ( NULL AS INTEGER ) + 80 END, NULLIF ( - CAST ( 21 AS INTEGER ), CAST ( - 97 AS INTEGER ) ), + COUNT ( * ) * + CAST ( NULL AS INTEGER ) ) / - - COUNT ( * ) col1
----
11

query I rowsort
SELECT DISTINCT - 85 + - 47
----
-132

query I rowsort
SELECT 74 * - 94 * ( - 88 )
----
612128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3456
SELECT 9 + CAST( - + 57 AS SIGNED ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-3456
SELECT 9 + CAST ( - + 57 AS INTEGER ) AS col2
----
-48

query I rowsort
SELECT ALL 3 + + - 13 AS col0
----
-10

query I rowsort
SELECT DISTINCT 38 + - 26 + 5 AS col2
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3459
SELECT 99 * - - MIN( + CAST( - 80 AS SIGNED ) )
----
-7920

skipif mysql # not compatible
query I rowsort label-3459
SELECT 99 * - - MIN ( + CAST ( - 80 AS INTEGER ) )
----
-7920

onlyif mysql # aggregate syntax: 
query I rowsort label-3460
SELECT ALL - 68 + - COUNT( * ) + 15 + 54 + - 48 * + 59
----
-2832

skipif mysql # not compatible
query I rowsort label-3460
SELECT ALL - 68 + - COUNT ( * ) + 15 + 54 + - 48 * + 59
----
-2832

query I rowsort
SELECT DISTINCT 91 + - 45 + + 11 AS col0
----
57

query I rowsort
SELECT 89 * - 59
----
-5251

query I rowsort
SELECT 25 * - 48
----
-1200

onlyif mysql # aggregate syntax: 
query I rowsort label-3464
SELECT DISTINCT 55 + + COUNT( * ) + 90 - COUNT( * ) + - + 70 * + 15 - - 28 + - ( - + COUNT( * ) ) + - 21 AS col1
----
-897

skipif mysql # not compatible
query I rowsort label-3464
SELECT DISTINCT 55 + + COUNT ( * ) + 90 - COUNT ( * ) + - + 70 * + 15 - - 28 + - ( - + COUNT ( * ) ) + - 21 AS col1
----
-897

query I rowsort
SELECT 15 * + 28 AS col0
----
420

query I rowsort
SELECT DISTINCT NULLIF ( + + 66, 3 / 19 * + 26 + - - 92 ) AS col2
----
66

query I rowsort
SELECT ALL + 93 - 60 AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3468
SELECT 11 * + + COALESCE ( - CASE - - 21 WHEN 37 THEN + 98 ELSE MIN( DISTINCT 91 ) END, + 24 * + - 62 * + 31 + - 60 ) * 5 col1
----
-5005

skipif mysql # not compatible
query I rowsort label-3468
SELECT 11 * + + COALESCE ( - CASE - - 21 WHEN 37 THEN + 98 ELSE MIN ( DISTINCT 91 ) END, + 24 * + - 62 * + 31 + - 60 ) * 5 col1
----
-5005

query II rowsort
SELECT ALL - 12 - + 5 * + 97 - + + 39 AS col1, 39 AS col1
----
-536
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3470
SELECT - ( + + SUM( - + 54 ) ) + 20 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-3470
SELECT - ( + + SUM ( - + 54 ) ) + 20 AS col2
----
74

query I rowsort
SELECT + 0 + + 50 + - 67 AS col2
----
-17

query II rowsort
SELECT - 44 * 6, 43 AS col0
----
-264
43

query I rowsort
SELECT 83 - - 7 * - 18 AS col1
----
-43

query I rowsort
SELECT ALL - - 47 * + - 28
----
-1316

query I rowsort
SELECT ALL - - ( - - 59 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3476
SELECT DISTINCT - - 72 * + - COUNT( * ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-3476
SELECT DISTINCT - - 72 * + - COUNT ( * ) AS col2
----
-72

query I rowsort
SELECT 39 * - 68 AS col0
----
-2652

query I rowsort
SELECT - 16 * 93 col2
----
-1488

onlyif mysql # aggregate syntax: 
query II rowsort label-3479
SELECT + COUNT( ALL + 24 ) AS col2, + 25 AS col0
----
1
25

skipif mysql # not compatible
query II rowsort label-3479
SELECT + COUNT ( ALL + 24 ) AS col2, + 25 AS col0
----
1
25

query I rowsort
SELECT ALL + + 42 + + + 70
----
112

onlyif mysql # DIV for integer division: 
query I rowsort label-3481
SELECT 9 DIV + 14 * + 93 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3481
SELECT 9 / + 14 * + 93 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT + 85 * + + 38 - - + 36 * - + 50 * - - COUNT( * ) + + 92 + + CASE + + 3 WHEN - 22 THEN NULL ELSE 52 END + + 90 + + 65 * - 77 AS col2
----
-3341

skipif mysql # not compatible
query I rowsort label-3482
SELECT + 85 * + + 38 - - + 36 * - + 50 * - - COUNT ( * ) + + 92 + + CASE + + 3 WHEN - 22 THEN NULL ELSE 52 END + + 90 + + 65 * - 77 AS col2
----
-3341

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT DISTINCT - MAX( 17 ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-3483
SELECT DISTINCT - MAX ( 17 ) AS col0
----
-17

query I rowsort
SELECT DISTINCT 33 + - - 82 AS col1
----
115

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

skipif mysql # not compatible
query I rowsort label-3485
SELECT ALL + COUNT ( * ) / - - 23
----
0

query I rowsort
SELECT DISTINCT + ( - 37 ) * + 81 col2
----
-2997

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT ALL 50 + ( 32 ) + + ( SUM( ALL - NULLIF ( + 1, + + 85 ) ) )
----
81

skipif mysql # not compatible
query I rowsort label-3487
SELECT ALL 50 + ( 32 ) + + ( SUM ( ALL - NULLIF ( + 1, + + 85 ) ) )
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3488
SELECT 15 - - ( CASE 80 WHEN 12 THEN + - ( + CAST( NULL AS SIGNED ) ) + + ( - 49 ) + + + 8 * + - 25 * 4 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3488
SELECT 15 - - ( CASE 80 WHEN 12 THEN + - ( + CAST ( NULL AS INTEGER ) ) + + ( - 49 ) + + + 8 * + - 25 * 4 END )
----
NULL

query I rowsort
SELECT ALL + 9 / - NULLIF ( + CASE - 41 WHEN + 78 THEN - 38 WHEN - CASE + 90 WHEN - + 14 THEN 11 END * - 13 - - 18 THEN NULL END, + 63 )
----
NULL

query I rowsort
SELECT 89 + + 75
----
164

query I rowsort
SELECT 99 + + 61 AS col0
----
160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3492
SELECT 34 * + CAST( 99 AS SIGNED ) col2
----
3366

skipif mysql # not compatible
query I rowsort label-3492
SELECT 34 * + CAST ( 99 AS INTEGER ) col2
----
3366

onlyif mysql # aggregate syntax: 
query I rowsort label-3493
SELECT ALL - 37 + - + COUNT( * ) + - 30 * MAX( - + 30 ) * + 57
----
51262

skipif mysql # not compatible
query I rowsort label-3493
SELECT ALL - 37 + - + COUNT ( * ) + - 30 * MAX ( - + 30 ) * + 57
----
51262

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT 15 + - MAX( - 14 ) + - - NULLIF ( - 50, + - 67 * + 87 * + + 12 ) * - COUNT( * ) - + 45 + - COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-3494
SELECT 15 + - MAX ( - 14 ) + - - NULLIF ( - 50, + - 67 * + 87 * + + 12 ) * - COUNT ( * ) - + 45 + - COUNT ( * )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT NULLIF ( 62, - + COUNT( * ) ) + + SUM( 90 ) + 13
----
165

skipif mysql # not compatible
query I rowsort label-3495
SELECT NULLIF ( 62, - + COUNT ( * ) ) + + SUM ( 90 ) + 13
----
165

query I rowsort
SELECT DISTINCT - 19 * - + 93 col0
----
1767

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

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

query II rowsort
SELECT 70 AS col1, + 68 AS col0
----
70
68

onlyif mysql # DIV for integer division: 
query I rowsort label-3499
SELECT COALESCE ( - 60, - 39 DIV + 38 DIV + 58 ) + - - 29 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-3499
SELECT COALESCE ( - 60, - 39 / + 38 / + 58 ) + - - 29 AS col0
----
-31

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3500
SELECT 49 * + CAST( NULL AS DECIMAL ) - + 43 - + 13 - SUM( - + 53 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3500
SELECT 49 * + CAST ( NULL AS REAL ) - + 43 - + 13 - SUM ( - + 53 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3501
SELECT - 74 * + 39 + CAST( 98 AS SIGNED ) col1
----
-2788

skipif mysql # not compatible
query I rowsort label-3501
SELECT - 74 * + 39 + CAST ( 98 AS INTEGER ) col1
----
-2788

query I rowsort
SELECT + + CASE - 21 WHEN NULLIF ( - - 90, 5 ) THEN + - 78 WHEN + 22 THEN NULL END col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3503
SELECT DISTINCT + - 41 DIV - CAST( - 87 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3503
SELECT DISTINCT + - 41 / - CAST ( - 87 AS INTEGER ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3504
SELECT 29 DIV - + 4 - - MIN( - 68 )
----
-75

skipif mysql # not compatible
query I rowsort label-3504
SELECT 29 / - + 4 - - MIN ( - 68 )
----
-75

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

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

query I rowsort
SELECT 5 - + + 42 col0
----
-37

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3508
SELECT ALL - SUM( ALL - 27 ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-3508
SELECT ALL - SUM ( ALL - 27 ) AS col1
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3509
SELECT + 7 DIV - COUNT( * ) + + + 88
----
81

skipif mysql # not compatible
query I rowsort label-3509
SELECT + 7 / - COUNT ( * ) + + + 88
----
81

query I rowsort
SELECT + + 43 * + 73
----
3139

query I rowsort
SELECT + 5 + 66 AS col1
----
71

query II rowsort
SELECT + - 74 * + 52 * 51, - 43 AS col0
----
-196248
-43

query I rowsort
SELECT + - 68 * - 53
----
3604

query I rowsort
SELECT ALL NULLIF ( 53, - - 64 ) * 19 + + 15 - 56 - - 50 + 92 AS col2
----
1108

onlyif mysql # aggregate syntax: 
query I rowsort label-3515
SELECT COUNT( - 26 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3515
SELECT COUNT ( - 26 ) AS col2
----
1

query I rowsort
SELECT + 67 + - 60
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-3517
SELECT - 37 - 86 DIV + - 50
----
-36

skipif mysql # not compatible
query I rowsort label-3517
SELECT - 37 - 86 / + - 50
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3518
SELECT DISTINCT + CASE - MAX( + 44 ) WHEN - 73 THEN - 1 / + + 18 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3518
SELECT DISTINCT + CASE - MAX ( + 44 ) WHEN - 73 THEN - 1 / + + 18 END
----
NULL

query I rowsort
SELECT + 62 + 35
----
97

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3521
SELECT DISTINCT + 41 col1, COUNT( * ) AS col1
----
41
1

skipif mysql # not compatible
query II rowsort label-3521
SELECT DISTINCT + 41 col1, COUNT ( * ) AS col1
----
41
1

query I rowsort
SELECT - 56 + - 72 * 88 AS col0
----
-6392

onlyif mysql # aggregate syntax: 
query II rowsort label-3523
SELECT + COALESCE ( + - 77, + 93 * 60, - 32 - + + 69 ), + COUNT( * ) AS col1
----
-77
1

skipif mysql # not compatible
query II rowsort label-3523
SELECT + COALESCE ( + - 77, + 93 * 60, - 32 - + + 69 ), + COUNT ( * ) AS col1
----
-77
1

query I rowsort
SELECT - 32 + + ( - 67 ) AS col2
----
-99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT - 80 * + + ( COUNT( * ) ) + + 45 * - 86
----
-3950

skipif mysql # not compatible
query I rowsort label-3526
SELECT - 80 * + + ( COUNT ( * ) ) + + 45 * - 86
----
-3950

query I rowsort
SELECT ALL + 5 - - 18
----
23

query II rowsort
SELECT - 82, 12 AS col2
----
-82
12

query I rowsort
SELECT - 90 * 42
----
-3780

onlyif mysql # DIV for integer division: 
query I rowsort label-3530
SELECT DISTINCT + 60 DIV + 62 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3530
SELECT DISTINCT + 60 / + 62 AS col2
----
0

query I rowsort
SELECT ALL - 6 - ( 81 ) + + 32 * + + 79
----
2441

onlyif mysql # DIV for integer division: 
query I rowsort label-3532
SELECT + 54 * 32 DIV + - 29
----
-59

skipif mysql # not compatible
query I rowsort label-3532
SELECT + 54 * 32 / + - 29
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-3533
SELECT - COUNT( * ), 29 AS col0
----
-1
29

skipif mysql # not compatible
query II rowsort label-3533
SELECT - COUNT ( * ), 29 AS col0
----
-1
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3534
SELECT - - 79 * + 87, + 32 DIV + CASE - COUNT( 3 ) WHEN + 83 THEN - 88 * + + 23 DIV + + CAST( CASE - MIN( DISTINCT - - COALESCE ( + - 59, 61 * - 97 ) ) WHEN - - ( + 89 ) THEN 42 END AS SIGNED ) - 90 + - 95 * - 47 + + - 59 * - + 65 ELSE + + SUM( ALL - - 61 ) END AS col0
----
6873
0

skipif mysql # not compatible
query II rowsort label-3534
SELECT - - 79 * + 87, + 32 / + CASE - COUNT ( 3 ) WHEN + 83 THEN - 88 * + + 23 / + + CAST ( CASE - MIN ( DISTINCT - - COALESCE ( + - 59, 61 * - 97 ) ) WHEN - - ( + 89 ) THEN 42 END AS INTEGER ) - 90 + - 95 * - 47 + + - 59 * - + 65 ELSE + + SUM ( ALL - - 61 ) END AS col0
----
6873
0

query I rowsort
SELECT ALL + 19 * + 6 col0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-3536
SELECT - COUNT( * ) * + 56 * 21 AS col0
----
-1176

skipif mysql # not compatible
query I rowsort label-3536
SELECT - COUNT ( * ) * + 56 * 21 AS col0
----
-1176

query I rowsort
SELECT DISTINCT + + 38 * + + 4
----
152

onlyif mysql # aggregate syntax: 
query II rowsort label-3538
SELECT ALL - 10, + COUNT( * ) col0
----
-10
1

skipif mysql # not compatible
query II rowsort label-3538
SELECT ALL - 10, + COUNT ( * ) col0
----
-10
1

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

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

query II rowsort
SELECT ALL 46, + ( - 86 ) AS col0
----
46
-86

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

skipif mysql # not compatible
query II rowsort label-3541
SELECT - - COUNT ( * ) AS col0, COUNT ( * ) AS col1
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT ALL + + 63 * + 75 + + COUNT( * ) AS col1
----
4726

skipif mysql # not compatible
query I rowsort label-3542
SELECT ALL + + 63 * + 75 + + COUNT ( * ) AS col1
----
4726

onlyif mysql # aggregate syntax: 
query II rowsort label-3543
SELECT - COUNT( * ) col2, - COUNT( * )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-3543
SELECT - COUNT ( * ) col2, - COUNT ( * )
----
-1
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3545
SELECT + 85 + - + MIN( DISTINCT 99 ) * 52
----
-5063

skipif mysql # not compatible
query I rowsort label-3545
SELECT + 85 + - + MIN ( DISTINCT 99 ) * 52
----
-5063

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3546
SELECT ALL + MIN( DISTINCT + 30 ) DIV - + 24 + - - COALESCE ( + 80, COUNT( * ) * - 80, 6 + 94 + + 39 + + MAX( + 77 ) * - 50 + + COUNT( * ) * 67 )
----
79

skipif mysql # not compatible
query I rowsort label-3546
SELECT ALL + MIN ( DISTINCT + 30 ) / - + 24 + - - COALESCE ( + 80, COUNT ( * ) * - 80, 6 + 94 + + 39 + + MAX ( + 77 ) * - 50 + + COUNT ( * ) * 67 )
----
79

query I rowsort
SELECT - + ( + + 87 ) * + 96 + + - 47
----
-8399

query I rowsort
SELECT - 38 * + + 3
----
-114

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

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

query I rowsort
SELECT ALL - 34 * + 53 - - 13 * + + 96 + + 42
----
-512

onlyif mysql # aggregate syntax: 
query I rowsort label-3551
SELECT + COALESCE ( + 96, - + 95 + + SUM( DISTINCT - - 56 ), 60 * + 48 + + + 88 + 74 ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-3551
SELECT + COALESCE ( + 96, - + 95 + + SUM ( DISTINCT - - 56 ), 60 * + 48 + + + 88 + 74 ) AS col0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3552
SELECT + NULLIF ( + CAST( + - 28 AS SIGNED ), - - 14 * 8 + 73 ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-3552
SELECT + NULLIF ( + CAST ( + - 28 AS INTEGER ), - - 14 * 8 + 73 ) AS col0
----
-28

query I rowsort
SELECT ALL - 10 * + 7 - - ( + 63 )
----
-7

query I rowsort
SELECT + 3 * 28 AS col1
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3555
SELECT 37 * + CAST( NULL AS SIGNED ) - - + 83 * + - 93 * + NULLIF ( + 30, - NULLIF ( + CAST( - COUNT( * ) AS DECIMAL ), - 92 ) / 15 ) * + ( + 57 ) + + ( 47 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3555
SELECT 37 * + CAST ( NULL AS INTEGER ) - - + 83 * + - 93 * + NULLIF ( + 30, - NULLIF ( + CAST ( - COUNT ( * ) AS REAL ), - 92 ) / 15 ) * + ( + 57 ) + + ( 47 ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3556
SELECT - CAST( NULL AS SIGNED ) * - 11 / 86 * + COALESCE ( + COUNT( * ), + - 89, 64 * NULLIF ( + COUNT( * ), + - CAST( - 63 AS SIGNED ) * 53 ) * - 12 + + 68 + - 17 + - CAST( NULL AS SIGNED ) - - + COUNT( ALL + 51 ), + 87 + - 21 * - 16 / COUNT( - 36 ) + - + 88 + 19 + + 78 ) - + 85 * + 2 + ( + 25 ) AS col0, + 77
----
NULL
77

skipif mysql # not compatible
query II rowsort label-3556
SELECT - CAST ( NULL AS INTEGER ) * - 11 / 86 * + COALESCE ( + COUNT ( * ), + - 89, 64 * NULLIF ( + COUNT ( * ), + - CAST ( - 63 AS INTEGER ) * 53 ) * - 12 + + 68 + - 17 + - CAST ( NULL AS INTEGER ) - - + COUNT ( ALL + 51 ), + 87 + - 21 * - 16 / COUNT ( - 36 ) + - + 88 + 19 + + 78 ) - + 85 * + 2 + ( + 25 ) AS col0, + 77
----
NULL
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3557
SELECT - CAST( - + COUNT( DISTINCT 68 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-3557
SELECT - CAST ( - + COUNT ( DISTINCT 68 ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3558
SELECT + MAX( DISTINCT + 71 ) * 65 DIV - SUM( - 8 ) AS col2
----
576

skipif mysql # not compatible
query I rowsort label-3558
SELECT + MAX ( DISTINCT + 71 ) * 65 / - SUM ( - 8 ) AS col2
----
576

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3559
SELECT + 43 - + 11 DIV NULLIF ( + 59, COUNT( ALL 67 ) DIV - + 4 + - 6 ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-3559
SELECT + 43 - + 11 / NULLIF ( + 59, COUNT ( ALL 67 ) / - + 4 + - 6 ) AS col2
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3560
SELECT MAX( + 60 ) col2, 78 + + + COALESCE ( ( - 28 ), + + COUNT( * ) DIV - - ( 77 ) + + 72 + 67 + + 35 ) AS col0
----
60
50

skipif mysql # not compatible
query II rowsort label-3560
SELECT MAX ( + 60 ) col2, 78 + + + COALESCE ( ( - 28 ), + + COUNT ( * ) / - - ( 77 ) + + 72 + 67 + + 35 ) AS col0
----
60
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT - ( - COALESCE ( + 98, - + 69 * 4 * + + 70 + + 84 + + 52 ) ) * + - 23 * - + NULLIF ( + COUNT( * ), - NULLIF ( - 80, + 88 * + 51 * 62 * - COALESCE ( 35, + COUNT( * ), + - COUNT( * ) - - - 94 ) ) ) AS col0
----
2254

skipif mysql # not compatible
query I rowsort label-3561
SELECT - ( - COALESCE ( + 98, - + 69 * 4 * + + 70 + + 84 + + 52 ) ) * + - 23 * - + NULLIF ( + COUNT ( * ), - NULLIF ( - 80, + 88 * + 51 * 62 * - COALESCE ( 35, + COUNT ( * ), + - COUNT ( * ) - - - 94 ) ) ) AS col0
----
2254

query I rowsort
SELECT + 97 + + 54
----
151

onlyif mysql # DIV for integer division: 
query I rowsort label-3563
SELECT + ( 10 ) + + + ( + 23 ) + 24 DIV + - 11
----
31

skipif mysql # not compatible
query I rowsort label-3563
SELECT + ( 10 ) + + + ( + 23 ) + 24 / + - 11
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT - 24 + - 82 * + ( + + 65 ) * - CASE - 37 WHEN + AVG ( DISTINCT - 52 ) THEN - NULLIF ( + 51, - COUNT( * ) ) END * + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-3564
SELECT - 24 + - 82 * + ( + + 65 ) * - CASE - 37 WHEN + AVG ( DISTINCT - 52 ) THEN - NULLIF ( + 51, - COUNT ( * ) ) END * + 9
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3565
SELECT - + 67 * 52, 92 + COUNT( * ) AS col1
----
-3484
93

skipif mysql # not compatible
query II rowsort label-3565
SELECT - + 67 * 52, 92 + COUNT ( * ) AS col1
----
-3484
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3566
SELECT ALL - CASE + 64 WHEN + - 48 THEN + - 32 * + 51 / 97 * - 62 / + - 73 + + 39 + + - 59 + - MIN( ALL 54 ) + - 50 + - 60 END + - 37 * 2
----
NULL

skipif mysql # not compatible
query I rowsort label-3566
SELECT ALL - CASE + 64 WHEN + - 48 THEN + - 32 * + 51 / 97 * - 62 / + - 73 + + 39 + + - 59 + - MIN ( ALL 54 ) + - 50 + - 60 END + - 37 * 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT + ( - COUNT( DISTINCT - 72 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3567
SELECT + ( - COUNT ( DISTINCT - 72 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT SUM( + 37 ) * - 53 + - 13 * + + 54 + - - COUNT( * )
----
-2662

skipif mysql # not compatible
query I rowsort label-3568
SELECT SUM ( + 37 ) * - 53 + - 13 * + + 54 + - - COUNT ( * )
----
-2662

query II rowsort
SELECT DISTINCT + 96 + - + 13, 96 + - 81 AS col0
----
83
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3570
SELECT DISTINCT CAST( 17 AS SIGNED ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-3570
SELECT DISTINCT CAST ( 17 AS INTEGER ) AS col1
----
17

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3572
SELECT + - 45 * - + MAX( DISTINCT + + 18 ) + NULLIF ( - + ( - CAST( - + 19 AS SIGNED ) ), - 22 ) AS col2
----
791

skipif mysql # not compatible
query I rowsort label-3572
SELECT + - 45 * - + MAX ( DISTINCT + + 18 ) + NULLIF ( - + ( - CAST ( - + 19 AS INTEGER ) ), - 22 ) AS col2
----
791

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3573
SELECT + - NULLIF ( - 97, + - CAST( + 17 AS SIGNED ) ) col1
----
97

skipif mysql # not compatible
query I rowsort label-3573
SELECT + - NULLIF ( - 97, + - CAST ( + 17 AS INTEGER ) ) col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT DISTINCT - - NULLIF ( + 91, 65 * - 57 * + + 86 + + 4 ) + + 50 * - 40 * COALESCE ( 60, + + 61, + ( + MAX( 57 ) ) * + - 53 + - 84 * + + 38 * - COUNT( * ) ) AS col1
----
-119909

skipif mysql # not compatible
query I rowsort label-3574
SELECT DISTINCT - - NULLIF ( + 91, 65 * - 57 * + + 86 + + 4 ) + + 50 * - 40 * COALESCE ( 60, + + 61, + ( + MAX ( 57 ) ) * + - 53 + - 84 * + + 38 * - COUNT ( * ) ) AS col1
----
-119909

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT DISTINCT + 22 * + - 25 * - - COUNT( * ) col0
----
-550

skipif mysql # not compatible
query I rowsort label-3575
SELECT DISTINCT + 22 * + - 25 * - - COUNT ( * ) col0
----
-550

query I rowsort
SELECT 18 * - 71
----
-1278

query I rowsort
SELECT 41 * - 77 + NULLIF ( - ( 67 ), - - 75 ) + + + NULLIF ( + + CASE - + 30 WHEN CASE + 1 WHEN - 72 THEN - ( + AVG ( 10 ) ) WHEN - 0 * 94 THEN NULL END * - 22 / - + ( - + 3 ) THEN 66 + 16 + - + 9 ELSE NULL END, - + ( 19 ) ) AS col0
----
NULL

query I rowsort
SELECT ALL - 5 - 39 col0
----
-44

query I rowsort
SELECT 5 + - 22 AS col2
----
-17

query I rowsort
SELECT 44 * - + 29
----
-1276

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3582
SELECT - ( - + COUNT( * ) ) * 2 + - - 16 + + - 71
----
-53

skipif mysql # not compatible
query I rowsort label-3582
SELECT - ( - + COUNT ( * ) ) * 2 + - - 16 + + - 71
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-3583
SELECT DISTINCT - 87 DIV + 18
----
-4

skipif mysql # not compatible
query I rowsort label-3583
SELECT DISTINCT - 87 / + 18
----
-4

query I rowsort
SELECT DISTINCT - ( + 99 ) AS col2
----
-99

query I rowsort
SELECT 24 * + ( 37 ) AS col0
----
888

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

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

query II rowsort
SELECT + 33 * - + 36 + - - 73 AS col2, + 34 - 89 AS col0
----
-1115
-55

query II rowsort
SELECT 54 AS col1, 63 + - - ( - 72 ) + - 99 + - + 63 + - ( + 72 ) * + 54 * - 76
----
54
295317

onlyif mysql # aggregate syntax: 
query I rowsort label-3589
SELECT SUM( ALL + 2 ) + 33 + - - 86
----
121

skipif mysql # not compatible
query I rowsort label-3589
SELECT SUM ( ALL + 2 ) + 33 + - - 86
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3590
SELECT ALL 77 + COALESCE ( - MIN( - 88 ), CAST( NULL AS SIGNED ) * + 91 * 97 + 19, - - 5, + - 76 )
----
165

skipif mysql # not compatible
query I rowsort label-3590
SELECT ALL 77 + COALESCE ( - MIN ( - 88 ), CAST ( NULL AS INTEGER ) * + 91 * 97 + 19, - - 5, + - 76 )
----
165

query I rowsort
SELECT - + 58 col2
----
-58

query I rowsort
SELECT ( - 51 ) * 65 AS col1
----
-3315

onlyif mysql # DIV for integer division: 
query II rowsort label-3593
SELECT + 69 AS col2, 34 DIV - + 43 + - 54 AS col0
----
69
-54

skipif mysql # not compatible
query II rowsort label-3593
SELECT + 69 AS col2, 34 / - + 43 + - 54 AS col0
----
69
-54

query I rowsort
SELECT ALL + + 75 + + 54 + - + 63 + - 98 AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3595
SELECT 83 - + 78 * + COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-3595
SELECT 83 - + 78 * + COUNT ( * )
----
5

query I rowsort
SELECT - 44 * 50
----
-2200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3597
SELECT + MAX( ALL 67 ) + + CASE + 41 WHEN - NULLIF ( 74, + + 44 * 41 ) THEN NULLIF ( + + COALESCE ( 33, - - 13 * - 6 * - MIN( DISTINCT - 50 ) * 74 + - COUNT( * ) * + 59 + - + 30 - - 53, - 52, - SUM( DISTINCT - 38 ) + - 48 - - - NULLIF ( + 9, - + 40 ) ), 13 ) * + - 97 + 69 WHEN - 76 * + + 74 THEN NULL WHEN + - 56 / + 55 * - 97 + - + AVG ( ALL - 18 ) + CASE - + 66 WHEN + 38 THEN NULL WHEN - - 49 THEN - + 97 + - + 9 END THEN - NULLIF ( - 10, CAST( - 55 AS SIGNED ) - 46 / 40 ) + - ( 65 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3597
SELECT + MAX ( ALL 67 ) + + CASE + 41 WHEN - NULLIF ( 74, + + 44 * 41 ) THEN NULLIF ( + + COALESCE ( 33, - - 13 * - 6 * - MIN ( DISTINCT - 50 ) * 74 + - COUNT ( * ) * + 59 + - + 30 - - 53, - 52, - SUM ( DISTINCT - 38 ) + - 48 - - - NULLIF ( + 9, - + 40 ) ), 13 ) * + - 97 + 69 WHEN - 76 * + + 74 THEN NULL WHEN + - 56 / + 55 * - 97 + - + AVG ( ALL - 18 ) + CASE - + 66 WHEN + 38 THEN NULL WHEN - - 49 THEN - + 97 + - + 9 END THEN - NULLIF ( - 10, CAST ( - 55 AS INTEGER ) - 46 / 40 ) + - ( 65 ) END
----
NULL

query II rowsort
SELECT - 70 AS col0, 94
----
-70
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT ALL 28 + - COUNT( * ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-3599
SELECT ALL 28 + - COUNT ( * ) AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT - 72 * - - 48 + + + COUNT( * )
----
-3455

skipif mysql # not compatible
query I rowsort label-3600
SELECT - 72 * - - 48 + + + COUNT ( * )
----
-3455

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

skipif mysql # not compatible
query I rowsort label-3601
SELECT + 11 * - COUNT ( * ) * + NULLIF ( - 23, + CAST ( NULL AS INTEGER ) )
----
253

onlyif mysql # aggregate syntax: 
query I rowsort label-3602
SELECT + COUNT( * ) + - + 70 * + 97 + - - 62 * - 94
----
-12617

skipif mysql # not compatible
query I rowsort label-3602
SELECT + COUNT ( * ) + - + 70 * + 97 + - - 62 * - 94
----
-12617

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3603
SELECT DISTINCT 99 * ( 3 ) + COUNT( * ) DIV - 67 - - - 34 + - COUNT( * ) AS col1
----
262

skipif mysql # not compatible
query I rowsort label-3603
SELECT DISTINCT 99 * ( 3 ) + COUNT ( * ) / - 67 - - - 34 + - COUNT ( * ) AS col1
----
262

onlyif mysql # DIV for integer division: 
query I rowsort label-3604
SELECT + NULLIF ( + 36, - 22 ) DIV 62 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3604
SELECT + NULLIF ( + 36, - 22 ) / 62 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3605
SELECT ALL + ( + CASE + ( 9 ) WHEN 27 * - 31 + + ( + 57 ) THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN - 98 * 70 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3605
SELECT ALL + ( + CASE + ( 9 ) WHEN 27 * - 31 + + ( + 57 ) THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN - 98 * 70 END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3606
SELECT 29 * 69 / CAST( NULL AS SIGNED ) / - 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3606
SELECT 29 * 69 / CAST ( NULL AS INTEGER ) / - 80 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3607
SELECT - 27 AS col0, + 13 * + SUM( ALL + 48 ) AS col1
----
-27
624

skipif mysql # not compatible
query II rowsort label-3607
SELECT - 27 AS col0, + 13 * + SUM ( ALL + 48 ) AS col1
----
-27
624

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3608
SELECT - 0 DIV + + 36 - - 65 * - 82 * - - COUNT( * ) + + 78 * - 9 col2
----
-6032

skipif mysql # not compatible
query I rowsort label-3608
SELECT - 0 / + + 36 - - 65 * - 82 * - - COUNT ( * ) + + 78 * - 9 col2
----
-6032

query I rowsort
SELECT 25 + - 74 + + 32 AS col1
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3610
SELECT DISTINCT - MAX( ALL + 26 ) AS col0, - SUM( DISTINCT + + 63 ) DIV 65 * 8 col2
----
-26
0

skipif mysql # not compatible
query II rowsort label-3610
SELECT DISTINCT - MAX ( ALL + 26 ) AS col0, - SUM ( DISTINCT + + 63 ) / 65 * 8 col2
----
-26
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3611
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) * + SUM( ALL + 18 ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-3611
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) * + SUM ( ALL + 18 ) AS col0
----
-18

query I rowsort
SELECT DISTINCT - ( + 46 ) * - + 82
----
3772

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT 43 * - 53 * COUNT( * )
----
-2279

skipif mysql # not compatible
query I rowsort label-3614
SELECT 43 * - 53 * COUNT ( * )
----
-2279

query I rowsort
SELECT 14 + 88
----
102

query I rowsort
SELECT 33 * - 26 AS col1
----
-858

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

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

query I rowsort
SELECT ALL + 84 + 93 + - 38 * + 15 + - 43 AS col1
----
-436

onlyif mysql # aggregate syntax: 
query I rowsort label-3619
SELECT COUNT( * ) - - MIN( ALL - 59 ) * - 28 * - 36 AS col2
----
-59471

skipif mysql # not compatible
query I rowsort label-3619
SELECT COUNT ( * ) - - MIN ( ALL - 59 ) * - 28 * - 36 AS col2
----
-59471

onlyif mysql # aggregate syntax: 
query I rowsort label-3620
SELECT DISTINCT - MIN( DISTINCT 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-3620
SELECT DISTINCT - MIN ( DISTINCT 45 )
----
-45

query I rowsort
SELECT DISTINCT + 2 + + 49 + - 43
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3622
SELECT ALL COUNT( * ) + + ( - 75 )
----
-74

skipif mysql # not compatible
query I rowsort label-3622
SELECT ALL COUNT ( * ) + + ( - 75 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT 18 * - SUM( ALL - NULLIF ( + 30, 4 - ( + - 68 ) ) ) + + COUNT( * )
----
541

skipif mysql # not compatible
query I rowsort label-3623
SELECT 18 * - SUM ( ALL - NULLIF ( + 30, 4 - ( + - 68 ) ) ) + + COUNT ( * )
----
541

onlyif mysql # aggregate syntax: 
query I rowsort label-3624
SELECT ALL - CASE + + 58 WHEN - - ( + + 91 ) + 40 - - + ( 39 ) + - - 38 * - 83 * - NULLIF ( + - 14, - 64 ) THEN 60 END + + - COUNT( * ) * - NULLIF ( - 73, + COUNT( * ) * 24 ) - - - 78 + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-3624
SELECT ALL - CASE + + 58 WHEN - - ( + + 91 ) + 40 - - + ( 39 ) + - - 38 * - 83 * - NULLIF ( + - 14, - 64 ) THEN 60 END + + - COUNT ( * ) * - NULLIF ( - 73, + COUNT ( * ) * 24 ) - - - 78 + 24
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3625
SELECT + - COALESCE ( + - 31, + SUM( ALL - 82 ), + - 20 ) * - 3 - - - MAX( - 23 ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-3625
SELECT + - COALESCE ( + - 31, + SUM ( ALL - 82 ), + - 20 ) * - 3 - - - MAX ( - 23 ) AS col0
----
-70

query I rowsort
SELECT ALL + - ( - 84 ) * - 72 AS col1
----
-6048

query I rowsort
SELECT - 73 + + 7
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3628
SELECT + - 1 - - + 28 - - + 73 + + 19 + - + 37 + - ( 7 ) - + 1 + 70 - 92 - COUNT( * ) * 74 * 58 DIV NULLIF ( + CAST( SUM( DISTINCT ( 30 ) ) AS SIGNED ), - 48 * - 60 ) DIV - 39
----
55

skipif mysql # not compatible
query I rowsort label-3628
SELECT + - 1 - - + 28 - - + 73 + + 19 + - + 37 + - ( 7 ) - + 1 + 70 - 92 - COUNT ( * ) * 74 * 58 / NULLIF ( + CAST ( SUM ( DISTINCT ( 30 ) ) AS INTEGER ), - 48 * - 60 ) / - 39
----
55

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

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

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

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

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

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

query I rowsort
SELECT ALL - + 77 * + 19 * + 99
----
-144837

query II rowsort
SELECT DISTINCT ( 73 ), - 4 AS col1
----
73
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-3634
SELECT DISTINCT - COUNT( + 16 ), 67 AS col2
----
-1
67

skipif mysql # not compatible
query II rowsort label-3634
SELECT DISTINCT - COUNT ( + 16 ), 67 AS col2
----
-1
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3635
SELECT + COUNT( * ) * + CAST( NULL AS SIGNED ) * - - MIN( DISTINCT - + 41 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3635
SELECT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * - - MIN ( DISTINCT - + 41 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3636
SELECT - - 63 + - 80 + + COUNT( * ) + - 47 col0
----
-63

skipif mysql # not compatible
query I rowsort label-3636
SELECT - - 63 + - 80 + + COUNT ( * ) + - 47 col0
----
-63

query I rowsort
SELECT DISTINCT - 52 - 42 * + - 1 * - + ( - + 30 )
----
1208

query I rowsort
SELECT - ( 66 ) AS col1
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3639
SELECT + + 25 + - CAST( NULL AS SIGNED ) + - 29 + 78, - COUNT( 42 ) col0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-3639
SELECT + + 25 + - CAST ( NULL AS INTEGER ) + - 29 + 78, - COUNT ( 42 ) col0
----
NULL
-1

query I rowsort
SELECT + - 14 * + + 83
----
-1162

query I rowsort
SELECT + 10 * ( - 31 ) * - - 97
----
-30070

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT ALL COUNT( * ) * - + COUNT( ALL + 60 )
----
-1

skipif mysql # not compatible
query I rowsort label-3642
SELECT ALL COUNT ( * ) * - + COUNT ( ALL + 60 )
----
-1

query I rowsort
SELECT + 21 + 3 AS col1
----
24

query I rowsort
SELECT 78 * - 88 + 49 col2
----
-6815

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT ALL COUNT( - 34 ) * + + 52 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-3645
SELECT ALL COUNT ( - 34 ) * + + 52 AS col2
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-3646
SELECT ALL SUM( 95 ) * + COUNT( * ) AS col1, 40 + - 15
----
95
25

skipif mysql # not compatible
query II rowsort label-3646
SELECT ALL SUM ( 95 ) * + COUNT ( * ) AS col1, 40 + - 15
----
95
25

query I rowsort
SELECT ( ( - - 52 ) )
----
52

query I rowsort
SELECT + 67 - 49 AS col1
----
18

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3650
SELECT + 14 * + COUNT( ALL + - 93 )
----
14

skipif mysql # not compatible
query I rowsort label-3650
SELECT + 14 * + COUNT ( ALL + - 93 )
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3651
SELECT - CASE - ( + 32 ) WHEN - + 23 DIV + - 80 THEN + + 21 ELSE + SUM( - 41 ) + 85 * ( + 13 ) END DIV + 87 * COUNT( * ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-3651
SELECT - CASE - ( + 32 ) WHEN - + 23 / + - 80 THEN + + 21 ELSE + SUM ( - 41 ) + 85 * ( + 13 ) END / + 87 * COUNT ( * ) AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3652
SELECT ALL 0 * - 15 + NULLIF ( - 65, - COUNT( * ) ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-3652
SELECT ALL 0 * - 15 + NULLIF ( - 65, - COUNT ( * ) ) AS col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT + ( SUM( ALL + ( + 0 ) ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3653
SELECT + ( SUM ( ALL + ( + 0 ) ) ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3654
SELECT COUNT( * ) * 81 + + 14 * NULLIF ( - - 64, + CASE 39 WHEN + + 85 THEN NULL ELSE COUNT( * ) END DIV + COUNT( * ) * - - 26 ) * + + 73 + + 86 DIV + + 31 col0
----
65491

skipif mysql # not compatible
query I rowsort label-3654
SELECT COUNT ( * ) * 81 + + 14 * NULLIF ( - - 64, + CASE 39 WHEN + + 85 THEN NULL ELSE COUNT ( * ) END / + COUNT ( * ) * - - 26 ) * + + 73 + + 86 / + + 31 col0
----
65491

query I rowsort
SELECT ALL - 43 * + 10 col1
----
-430

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3656
SELECT ALL + 9 * - + 97 + 60 + + NULLIF ( + CAST( NULL AS DECIMAL ), + ( 45 ) ) + + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-3656
SELECT ALL + 9 * - + 97 + 60 + + NULLIF ( + CAST ( NULL AS REAL ), + ( 45 ) ) + + 99
----
NULL

query I rowsort
SELECT ALL - 25 * 21 AS col0
----
-525

query I rowsort
SELECT NULLIF ( + - 33, - 8 ) AS col0
----
-33

query I rowsort
SELECT DISTINCT 67 * - 20 + + + ( 30 ) AS col1
----
-1310

query I rowsort
SELECT - - 5 + + 3 AS col2
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-3661
SELECT - ( - ( - 6 ) ), NULLIF ( - 83, 71 ) - MIN( DISTINCT - 98 ) * - 44 AS col2
----
-6
-4395

skipif mysql # not compatible
query II rowsort label-3661
SELECT - ( - ( - 6 ) ), NULLIF ( - 83, 71 ) - MIN ( DISTINCT - 98 ) * - 44 AS col2
----
-6
-4395

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3662
SELECT + 37 * + 46 - + + 61 + + - CAST( + - 70 AS SIGNED ) AS col1
----
1711

skipif mysql # not compatible
query I rowsort label-3662
SELECT + 37 * + 46 - + + 61 + + - CAST ( + - 70 AS INTEGER ) AS col1
----
1711

query I rowsort
SELECT - 66 * CASE - 60 WHEN + 92 THEN - 76 + - 41 + 98 WHEN + + 68 THEN NULL END
----
NULL

query I rowsort
SELECT - - 56 + - 82 * + 96
----
-7816

onlyif mysql # aggregate syntax: 
query II rowsort label-3665
SELECT - 66 AS col0, - 84 * - + SUM( 55 ) + + + 94 + - 56 AS col2
----
-66
4658

skipif mysql # not compatible
query II rowsort label-3665
SELECT - 66 AS col0, - 84 * - + SUM ( 55 ) + + + 94 + - 56 AS col2
----
-66
4658

query I rowsort
SELECT - - 53 + - 7 AS col1
----
46

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT - + CASE 69 WHEN - + 88 THEN - MAX( DISTINCT - - 59 ) * + + ( MIN( DISTINCT - 69 ) ) WHEN - 91 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3668
SELECT - + CASE 69 WHEN - + 88 THEN - MAX ( DISTINCT - - 59 ) * + + ( MIN ( DISTINCT - 69 ) ) WHEN - 91 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3669
SELECT ALL + 15 DIV + COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-3669
SELECT ALL + 15 / + COUNT ( * )
----
15

query I rowsort
SELECT - + 93 * + 48 AS col0
----
-4464

query I rowsort
SELECT - + 34 - + - ( ( + 42 ) )
----
8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3672
SELECT DISTINCT + 65 * + CAST( NULL AS DECIMAL ) / + 76 * ( - 99 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3672
SELECT DISTINCT + 65 * + CAST ( NULL AS REAL ) / + 76 * ( - 99 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3673
SELECT - ( - 26 ) / + ( - COUNT ( * ) )
----
-26

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

query I rowsort
SELECT + 79 * + + 19 AS col2
----
1501

query II rowsort
SELECT - 56 - + 4 col2, + 93 + 29 + 58 AS col1
----
-60
180

query II rowsort
SELECT ALL 99 AS col1, - 54 * - - 7 AS col1
----
99
-378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3678
SELECT ALL CAST( - + ( - + CASE 85 WHEN 76 + + - 8 THEN + 68 + 20 * 41 ELSE NULL END ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3678
SELECT ALL CAST ( - + ( - + CASE 85 WHEN 76 + + - 8 THEN + 68 + 20 * 41 ELSE NULL END ) AS INTEGER )
----
NULL

query I rowsort
SELECT + 50 * 90
----
4500

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT ALL 62 + + 58 * + + COUNT( * ) * SUM( ALL - 79 ) + - + ( ( COUNT( * ) ) ) AS col1
----
-4521

skipif mysql # not compatible
query I rowsort label-3680
SELECT ALL 62 + + 58 * + + COUNT ( * ) * SUM ( ALL - 79 ) + - + ( ( COUNT ( * ) ) ) AS col1
----
-4521

onlyif mysql # DIV for integer division: 
query I rowsort label-3681
SELECT 47 DIV + 24 + 18 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-3681
SELECT 47 / + 24 + 18 AS col1
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-3682
SELECT - 14 * 70, - NULLIF ( + 36, + ( - + 42 ) ) * + - 72 * - + COUNT( * ) AS col2
----
-980
-2592

skipif mysql # not compatible
query II rowsort label-3682
SELECT - 14 * 70, - NULLIF ( + 36, + ( - + 42 ) ) * + - 72 * - + COUNT ( * ) AS col2
----
-980
-2592

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT + COUNT( * ) + + - 53
----
-52

skipif mysql # not compatible
query I rowsort label-3683
SELECT + COUNT ( * ) + + - 53
----
-52

query I rowsort
SELECT + NULLIF ( + 37, - 4 * 83 * + NULLIF ( + 20, - 68 / + AVG ( ALL + 6 ) + + + 35 * 13 ) * - 84 )
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3685
SELECT ALL 28 DIV - 86 * + COUNT( * ) + + 4 * + 90 AS col1
----
360

skipif mysql # not compatible
query I rowsort label-3685
SELECT ALL 28 / - 86 * + COUNT ( * ) + + 4 * + 90 AS col1
----
360

onlyif mysql # DIV for integer division: 
query I rowsort label-3686
SELECT DISTINCT - 97 DIV - 93 + 93 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-3686
SELECT DISTINCT - 97 / - 93 + 93 AS col1
----
94

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3688
SELECT ALL + 23 AS col1, 75 + 51 DIV ( + 93 ) AS col1
----
23
75

skipif mysql # not compatible
query II rowsort label-3688
SELECT ALL + 23 AS col1, 75 + 51 / ( + 93 ) AS col1
----
23
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3689
SELECT ALL + CASE - 80 WHEN + 41 THEN + + ( - + 73 ) * + 41 * - COUNT( DISTINCT - + 66 ) ELSE NULL END / + SUM( + - 47 ) + + + 11 - - - COUNT( * ) - - + COUNT( * ) + + 81 * - MIN( DISTINCT 37 ) + 8 + - + 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3689
SELECT ALL + CASE - 80 WHEN + 41 THEN + + ( - + 73 ) * + 41 * - COUNT ( DISTINCT - + 66 ) ELSE NULL END / + SUM ( + - 47 ) + + + 11 - - - COUNT ( * ) - - + COUNT ( * ) + + 81 * - MIN ( DISTINCT 37 ) + 8 + - + 65 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3690
SELECT DISTINCT - 81 DIV - MIN( ALL - 63 ) + - ( - + 33 ) * - + ( + + 98 ) AS col2
----
-3235

skipif mysql # not compatible
query I rowsort label-3690
SELECT DISTINCT - 81 / - MIN ( ALL - 63 ) + - ( - + 33 ) * - + ( + + 98 ) AS col2
----
-3235

query I rowsort
SELECT ALL + 84 + 78 AS col0
----
162

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3693
SELECT ALL - ( + 71 ) DIV + COUNT( DISTINCT + - NULLIF ( - 76, 58 * - 46 ) ) + - 61
----
-132

skipif mysql # not compatible
query I rowsort label-3693
SELECT ALL - ( + 71 ) / + COUNT ( DISTINCT + - NULLIF ( - 76, 58 * - 46 ) ) + - 61
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT + NULLIF ( ( - NULLIF ( + - 25, - 65 * + 24 * - COUNT( * ) ) ), 11 * 87 * 82 ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-3694
SELECT + NULLIF ( ( - NULLIF ( + - 25, - 65 * + 24 * - COUNT ( * ) ) ), 11 * 87 * 82 ) AS col2
----
25

query I rowsort
SELECT 66 * - 32 AS col1
----
-2112

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3697
SELECT + - CAST( - 88 AS SIGNED )
----
88

skipif mysql # not compatible
query I rowsort label-3697
SELECT + - CAST ( - 88 AS INTEGER )
----
88

query I rowsort
SELECT + 91 + + 81 AS col2
----
172

query II rowsort
SELECT ALL - 48 AS col0, - 6
----
-48
-6

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3701
SELECT + SUM( 32 ) + - + CAST( - 58 AS SIGNED ) * + 95
----
5542

skipif mysql # not compatible
query I rowsort label-3701
SELECT + SUM ( 32 ) + - + CAST ( - 58 AS INTEGER ) * + 95
----
5542

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT - 18 * + - COUNT( * ) * + 78 - 5 AS col2
----
1399

skipif mysql # not compatible
query I rowsort label-3702
SELECT - 18 * + - COUNT ( * ) * + 78 - 5 AS col2
----
1399

query I rowsort
SELECT - 66 * 54 AS col2
----
-3564

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3704
SELECT DISTINCT AVG ( + CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3704
SELECT DISTINCT AVG ( + CAST ( NULL AS REAL ) ) AS col2
----
NULL

query I rowsort
SELECT - 54 * 23 + - 4 * + - 38 * ( 58 ) * + - 7 + - - 82 col0
----
-62872

onlyif mysql # aggregate syntax: 
query II rowsort label-3706
SELECT ALL + SUM( ALL 95 ) AS col1, - 59
----
95
-59

skipif mysql # not compatible
query II rowsort label-3706
SELECT ALL + SUM ( ALL 95 ) AS col1, - 59
----
95
-59

query II rowsort
SELECT DISTINCT 96 AS col1, - 89 * - + 14 AS col2
----
96
1246

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

query I rowsort
SELECT DISTINCT + 32 + + 41 AS col0
----
73

query I rowsort
SELECT ALL 62 + + 63
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT ALL 21 + + - 12 * + - SUM( DISTINCT - 25 )
----
-279

skipif mysql # not compatible
query I rowsort label-3711
SELECT ALL 21 + + - 12 * + - SUM ( DISTINCT - 25 )
----
-279

query I rowsort
SELECT 14 + - 81 + - 19 * - - 16
----
-371

query I rowsort
SELECT 53 + - - 66
----
119

query I rowsort
SELECT DISTINCT + ( 97 ) + - 78 + + 31
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3715
SELECT 43 * + 95, CAST( 86 AS SIGNED ) col1
----
4085
86

skipif mysql # not compatible
query II rowsort label-3715
SELECT 43 * + 95, CAST ( 86 AS INTEGER ) col1
----
4085
86

query I rowsort
SELECT ALL - ( + NULLIF ( - 92, - + 72 + 24 ) ) * + - 21
----
-1932

query I rowsort
SELECT DISTINCT + 70 * 24 * + + 49
----
82320

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3718
SELECT ALL - CAST( NULL AS DECIMAL ) + - - COALESCE ( + 24, + 77 * + 15, - - 99 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3718
SELECT ALL - CAST ( NULL AS REAL ) + - - COALESCE ( + 24, + 77 * + 15, - - 99 ) AS col2
----
NULL

query I rowsort
SELECT ALL + ( 13 ) + - 79
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-3720
SELECT ALL - 98 + - COUNT( * ) col0, - 67 + - 80 - - COUNT( DISTINCT - 36 )
----
-99
-146

skipif mysql # not compatible
query II rowsort label-3720
SELECT ALL - 98 + - COUNT ( * ) col0, - 67 + - 80 - - COUNT ( DISTINCT - 36 )
----
-99
-146

query I rowsort
SELECT DISTINCT - 16 col1
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3722
SELECT ALL 12 - CAST( NULL AS SIGNED ) + - ( - 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3722
SELECT ALL 12 - CAST ( NULL AS INTEGER ) + - ( - 9 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3723
SELECT 34 + + CAST( + COUNT( * ) AS SIGNED )
----
35

skipif mysql # not compatible
query I rowsort label-3723
SELECT 34 + + CAST ( + COUNT ( * ) AS INTEGER )
----
35

query I rowsort
SELECT 93 + + 86 col1
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-3725
SELECT ( + 56 ) * + 39 * 66 * + ( - - COUNT( * ) ) AS col0
----
144144

skipif mysql # not compatible
query I rowsort label-3725
SELECT ( + 56 ) * + 39 * 66 * + ( - - COUNT ( * ) ) AS col0
----
144144

query I rowsort
SELECT DISTINCT - 81 * 46 AS col1
----
-3726

query I rowsort
SELECT ALL - + 5 col0
----
-5

query I rowsort
SELECT ALL + 48 * + + 1 AS col2
----
48

query I rowsort
SELECT DISTINCT - NULLIF ( 47, - 34 * - 12 ) AS col1
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3730
SELECT DISTINCT 54 * + 56 * + CAST( 2 AS SIGNED ) AS col1
----
6048

skipif mysql # not compatible
query I rowsort label-3730
SELECT DISTINCT 54 * + 56 * + CAST ( 2 AS INTEGER ) AS col1
----
6048

query I rowsort
SELECT ALL - - 28 AS col2
----
28

query I rowsort
SELECT ALL - - 72 col0
----
72

query I rowsort
SELECT 52 * + 24 - + 60 col2
----
1188

onlyif mysql # DIV for integer division: 
query I rowsort label-3734
SELECT 83 DIV + + 94
----
0

skipif mysql # not compatible
query I rowsort label-3734
SELECT 83 / + + 94
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3735
SELECT DISTINCT - ( + - 80 ) DIV - 67 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3735
SELECT DISTINCT - ( + - 80 ) / - 67 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3736
SELECT - 38 + + 2, 54 - - - ( + + 34 ) * COUNT( * ) AS col0
----
-36
20

skipif mysql # not compatible
query II rowsort label-3736
SELECT - 38 + + 2, 54 - - - ( + + 34 ) * COUNT ( * ) AS col0
----
-36
20

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

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

query I rowsort
SELECT ALL - 15 * - - 82 + ( + + 92 ) + - 42 * 58 AS col0
----
-3574

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3739
SELECT ALL + CAST( + MAX( + 55 ) AS SIGNED ) col2
----
55

skipif mysql # not compatible
query I rowsort label-3739
SELECT ALL + CAST ( + MAX ( + 55 ) AS INTEGER ) col2
----
55

query I rowsort
SELECT 52 * - 64 AS col2
----
-3328

query II rowsort
SELECT - COALESCE ( - 39, + 18 ) AS col1, - 49 * 86 * + 86 * - 55
----
39
19932220

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT ALL MIN( DISTINCT + 89 ) + 49 AS col2
----
138

skipif mysql # not compatible
query I rowsort label-3742
SELECT ALL MIN ( DISTINCT + 89 ) + 49 AS col2
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3743
SELECT ALL CAST( NULL AS SIGNED ) * 84 DIV - 89 * + - COUNT( * ) AS col2, - 16 DIV 67 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-3743
SELECT ALL CAST ( NULL AS INTEGER ) * 84 / - 89 * + - COUNT ( * ) AS col2, - 16 / 67 AS col0
----
NULL
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3744
SELECT CAST( NULL AS SIGNED ) * 18 * 0
----
NULL

skipif mysql # not compatible
query I rowsort label-3744
SELECT CAST ( NULL AS INTEGER ) * 18 * 0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT COUNT( * ) + 69 * 84 * + 47
----
272413

skipif mysql # not compatible
query I rowsort label-3745
SELECT COUNT ( * ) + 69 * 84 * + 47
----
272413

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

skipif mysql # not compatible
query I rowsort label-3746
SELECT - MAX ( + 80 )
----
-80

query I rowsort
SELECT 59 + + 90 AS col2
----
149

query I rowsort
SELECT DISTINCT + 83 + - - 97 - + 98 * + 3 - - - 27
----
-141

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

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

query I rowsort
SELECT 43 - + - 75 AS col0
----
118

query I rowsort
SELECT ALL AVG ( DISTINCT + CASE - 14 WHEN 19 THEN + + 77 END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT ALL CASE + 33 WHEN + 18 THEN COUNT( * ) / - + 35 - 66 / - COUNT( * ) ELSE NULL END + - COALESCE ( 46, - 36 * + 18 * - - 48 + 3 * - + 14, - 89 + - 34 * + COUNT( * ) ) + + COUNT( * ) + COALESCE ( COUNT( * ), - 41 + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3752
SELECT ALL CASE + 33 WHEN + 18 THEN COUNT ( * ) / - + 35 - 66 / - COUNT ( * ) ELSE NULL END + - COALESCE ( 46, - 36 * + 18 * - - 48 + 3 * - + 14, - 89 + - 34 * + COUNT ( * ) ) + + COUNT ( * ) + COALESCE ( COUNT ( * ), - 41 + COUNT ( * ) ) AS col0
----
NULL

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

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

query I rowsort
SELECT - ( + + ( 42 ) ) + - - 8 * 5 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3755
SELECT - 13 * MAX( ALL + 75 ) AS col1
----
-975

skipif mysql # not compatible
query I rowsort label-3755
SELECT - 13 * MAX ( ALL + 75 ) AS col1
----
-975

query I rowsort
SELECT ALL - 93 * 95
----
-8835

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

query I rowsort
SELECT ALL + 21 * + - 89 AS col0
----
-1869

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3759
SELECT - COALESCE ( + 55, 85 ) * + 93 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3759
SELECT - COALESCE ( + 55, 85 ) * + 93 / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 77 * 69 AS col1
----
-5313

query I rowsort
SELECT + 83 * + - 7 * + - 39 AS col2
----
22659

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3762
SELECT - - 74 * + 69 + 36 * - 51 * - 4 - + ( 55 ) + + CAST( COUNT( * ) AS SIGNED ) col1
----
12396

skipif mysql # not compatible
query I rowsort label-3762
SELECT - - 74 * + 69 + 36 * - 51 * - 4 - + ( 55 ) + + CAST ( COUNT ( * ) AS INTEGER ) col1
----
12396

query I rowsort
SELECT ALL + - 18 * + 54 AS col0
----
-972

query I rowsort
SELECT ALL + + 20 col1
----
20

query II rowsort
SELECT + 23, - ( 79 ) AS col0
----
23
-79

query I rowsort
SELECT DISTINCT + NULLIF ( + - ( 53 ), - 3 ) AS col0
----
-53

query II rowsort
SELECT + 7, 64 AS col1
----
7
64

query I rowsort
SELECT - 26 + ( - 11 ) AS col0
----
-37

query II rowsort
SELECT 55 col0, - 2
----
55
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3770
SELECT ALL + COALESCE ( + + 28, 75 + 76 + COUNT( - + 41 ) * 30, + 38 DIV - 95 ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-3770
SELECT ALL + COALESCE ( + + 28, 75 + 76 + COUNT ( - + 41 ) * 30, + 38 / - 95 ) AS col2
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3771
SELECT + 59 * SUM( DISTINCT - 43 ) + 8 - 57 DIV ( - 48 ) * COUNT( * ) * + 53 * - 89 * COUNT( * )
----
-7246

skipif mysql # not compatible
query I rowsort label-3771
SELECT + 59 * SUM ( DISTINCT - 43 ) + 8 - 57 / ( - 48 ) * COUNT ( * ) * + 53 * - 89 * COUNT ( * )
----
-7246

query I rowsort
SELECT + - 41 * + + 54
----
-2214

query II rowsort
SELECT + 29 AS col1, - 52 AS col1
----
29
-52

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3775
SELECT ALL + ( - + CASE - 80 WHEN + 58 * 58 THEN COUNT( * ) * - COUNT( * ) DIV - + CASE - 47 WHEN CAST( + - 7 AS SIGNED ) THEN NULL WHEN + MIN( ALL CAST( NULL AS SIGNED ) ) - 86 * - 7 * + + 28 THEN + + 8 * MIN( - - 3 ) WHEN + + 63 THEN NULL ELSE 87 DIV 88 + + COUNT( ALL + + 31 ) + - 85 * - - COUNT( * ) DIV 39 END * - + 90 * ( - 73 ) WHEN - 34 THEN NULL WHEN - 81 THEN + + 40 * + 86 * - - 43 ELSE - COUNT( * ) END ) * + 85 * - 62 + 80 + + SUM( ALL - - 75 ) + 99 AS col2
----
-5016

skipif mysql # not compatible
query I rowsort label-3775
SELECT ALL + ( - + CASE - 80 WHEN + 58 * 58 THEN COUNT ( * ) * - COUNT ( * ) / - + CASE - 47 WHEN CAST ( + - 7 AS INTEGER ) THEN NULL WHEN + MIN ( ALL CAST ( NULL AS INTEGER ) ) - 86 * - 7 * + + 28 THEN + + 8 * MIN ( - - 3 ) WHEN + + 63 THEN NULL ELSE 87 / 88 + + COUNT ( ALL + + 31 ) + - 85 * - - COUNT ( * ) / 39 END * - + 90 * ( - 73 ) WHEN - 34 THEN NULL WHEN - 81 THEN + + 40 * + 86 * - - 43 ELSE - COUNT ( * ) END ) * + 85 * - 62 + 80 + + SUM ( ALL - - 75 ) + 99 AS col2
----
-5016

query I rowsort
SELECT + - ( CASE 69 WHEN - - 56 - + 93 THEN NULL WHEN + - 44 THEN - 70 ELSE NULL END ) + 8
----
NULL

query I rowsort
SELECT ALL - COALESCE ( + + 44, - 75 * + 48 - + + 25 - + 47 ) * - + 0 * + 75 + + 3 AS col1
----
3

query II rowsort
SELECT 42, - 40 + + 79 AS col0
----
42
39

query I rowsort
SELECT ALL 72 + + + 33 AS col2
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT - ( - - COUNT( DISTINCT + - 74 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3780
SELECT - ( - - COUNT ( DISTINCT + - 74 ) )
----
-1

query I rowsort
SELECT + 98 + ( 14 ) AS col2
----
112

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3783
SELECT + 91 * + COUNT( * ) * - + 60 * + + 81 * + + COUNT( * )
----
-442260

skipif mysql # not compatible
query I rowsort label-3783
SELECT + 91 * + COUNT ( * ) * - + 60 * + + 81 * + + COUNT ( * )
----
-442260

onlyif mysql # aggregate syntax: 
query I rowsort label-3784
SELECT DISTINCT COUNT( * ) + + 8 + - 81
----
-72

skipif mysql # not compatible
query I rowsort label-3784
SELECT DISTINCT COUNT ( * ) + + 8 + - 81
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT DISTINCT 38 * + COALESCE ( COUNT( * ), 23, + 56 )
----
38

skipif mysql # not compatible
query I rowsort label-3785
SELECT DISTINCT 38 * + COALESCE ( COUNT ( * ), 23, + 56 )
----
38

query I rowsort
SELECT ALL - 98 * - 52 AS col2
----
5096

query I rowsort
SELECT ALL 43 * ( - - 92 ) col2
----
3956

onlyif mysql # aggregate syntax: 
query II rowsort label-3788
SELECT DISTINCT MAX( - 51 ), 39 AS col2
----
-51
39

skipif mysql # not compatible
query II rowsort label-3788
SELECT DISTINCT MAX ( - 51 ), 39 AS col2
----
-51
39

query I rowsort
SELECT ALL 96 * + + 82 AS col2
----
7872

onlyif mysql # DIV for integer division: 
query I rowsort label-3790
SELECT + 1 * + - 35 * 42 DIV 88 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-3790
SELECT + 1 * + - 35 * 42 / 88 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT + MAX( DISTINCT + - 18 ) * + 85
----
-1530

skipif mysql # not compatible
query I rowsort label-3791
SELECT + MAX ( DISTINCT + - 18 ) * + 85
----
-1530

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT - MAX( - 4 ) + + - 34 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-3792
SELECT - MAX ( - 4 ) + + - 34 AS col0
----
-30

query I rowsort
SELECT DISTINCT + + 9 AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT ALL - 42 * 84 + COALESCE ( + + COUNT( * ), + 56 * + 33 ) AS col0
----
-3527

skipif mysql # not compatible
query I rowsort label-3794
SELECT ALL - 42 * 84 + COALESCE ( + + COUNT ( * ), + 56 * + 33 ) AS col0
----
-3527

onlyif mysql # aggregate syntax: 
query I rowsort label-3795
SELECT - 57 * SUM( ALL - 46 ) * + 74 AS col2
----
194028

skipif mysql # not compatible
query I rowsort label-3795
SELECT - 57 * SUM ( ALL - 46 ) * + 74 AS col2
----
194028

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3796
SELECT ALL - 31 DIV COALESCE ( - CASE - 85 WHEN + + COUNT( * ) THEN NULL WHEN + - NULLIF ( + CASE 59 WHEN - + 94 - - 17 - 24 + + 97 * - - COUNT( * ) THEN NULL ELSE - - 37 END, - 19 * - - 82 ) + - 19 THEN + 17 DIV + CAST( + + 40 AS SIGNED ) * NULLIF ( 59, - 66 ) * + + 92 * 39 + 15 + - + 9 END, - + ( + - 68 ) ) AS col2, + CAST( + + 57 AS SIGNED ) AS col0
----
0
57

skipif mysql # not compatible
query II rowsort label-3796
SELECT ALL - 31 / COALESCE ( - CASE - 85 WHEN + + COUNT ( * ) THEN NULL WHEN + - NULLIF ( + CASE 59 WHEN - + 94 - - 17 - 24 + + 97 * - - COUNT ( * ) THEN NULL ELSE - - 37 END, - 19 * - - 82 ) + - 19 THEN + 17 / + CAST ( + + 40 AS INTEGER ) * NULLIF ( 59, - 66 ) * + + 92 * 39 + 15 + - + 9 END, - + ( + - 68 ) ) AS col2, + CAST ( + + 57 AS INTEGER ) AS col0
----
0
57

query I rowsort
SELECT - + ( - 77 ) + + ( 2 ) col0
----
79

query I rowsort
SELECT + COALESCE ( 7, - 37 + + 72 ) AS col0
----
7

query I rowsort
SELECT 45 * - + 7 + + 28
----
-287

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3800
SELECT - + 76 / CAST( NULL AS SIGNED ) + + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-3800
SELECT - + 76 / CAST ( NULL AS INTEGER ) + + 37
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3801
SELECT - + 29 DIV 89 + - 45 AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-3801
SELECT - + 29 / 89 + - 45 AS col1
----
-45

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3802
SELECT - ( CASE - 19 WHEN + - COUNT( * ) THEN + CAST( NULL AS DECIMAL ) ELSE NULL END ) + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-3802
SELECT - ( CASE - 19 WHEN + - COUNT ( * ) THEN + CAST ( NULL AS REAL ) ELSE NULL END ) + 96
----
NULL

query I rowsort
SELECT - - 96 + + 68 - - + 20
----
184

onlyif mysql # DIV for integer division: 
query I rowsort label-3804
SELECT DISTINCT 61 DIV + + 56 + + 47 + + - 41 + + ( + + ( - 55 ) ) + + 65 * - 89 AS col0
----
-5833

skipif mysql # not compatible
query I rowsort label-3804
SELECT DISTINCT 61 / + + 56 + + 47 + + - 41 + + ( + + ( - 55 ) ) + + 65 * - 89 AS col0
----
-5833

onlyif mysql # aggregate syntax: 
query II rowsort label-3805
SELECT ALL + - 23 * COUNT( * ) * - + 34 + + - 91 AS col2, 6 AS col0
----
691
6

skipif mysql # not compatible
query II rowsort label-3805
SELECT ALL + - 23 * COUNT ( * ) * - + 34 + + - 91 AS col2, 6 AS col0
----
691
6

query I rowsort
SELECT - + 0 * 25 + + 10
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3807
SELECT DISTINCT - 46 * COUNT( * ) * + 65 col2
----
-2990

skipif mysql # not compatible
query I rowsort label-3807
SELECT DISTINCT - 46 * COUNT ( * ) * + 65 col2
----
-2990

query II rowsort
SELECT ALL - 79 * + - 77 + + 61 + + 18 AS col2, + 65 + - + 41 * + 15 * + 85 AS col2
----
6162
-52210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3809
SELECT + + COALESCE ( COALESCE ( + COUNT( * ), - 37 + + - 95 * + 16, - 33 + + 41 + + - 34 ), + - CAST( 23 AS SIGNED ) + - 59 )
----
1

skipif mysql # not compatible
query I rowsort label-3809
SELECT + + COALESCE ( COALESCE ( + COUNT ( * ), - 37 + + - 95 * + 16, - 33 + + 41 + + - 34 ), + - CAST ( 23 AS INTEGER ) + - 59 )
----
1

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3811
SELECT - + MIN( DISTINCT - - 20 ) * - + 4 + - 4 DIV - 32 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-3811
SELECT - + MIN ( DISTINCT - - 20 ) * - + 4 + - 4 / - 32 AS col2
----
80

onlyif mysql # DIV for integer division: 
query II rowsort label-3812
SELECT COALESCE ( + - 68, + CASE + 88 WHEN - 53 THEN NULL WHEN - 47 - - 31 THEN - - 74 END ) col1, 39 DIV + 38
----
-68
1

skipif mysql # not compatible
query II rowsort label-3812
SELECT COALESCE ( + - 68, + CASE + 88 WHEN - 53 THEN NULL WHEN - 47 - - 31 THEN - - 74 END ) col1, 39 / + 38
----
-68
1

query I rowsort
SELECT - ( - - 83 ) AS col1
----
-83

query I rowsort
SELECT - 85 + 2 AS col1
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3815
SELECT - COALESCE ( - - ( + - 15 ), - 48 * ( + + COUNT( * ) ) * + 14 * - CAST( - 88 AS SIGNED ) + + MIN( 64 ) + + - 66 * - - 1 + - - 10 - 26 DIV - 60 ) AS col1, + 12
----
15
12

skipif mysql # not compatible
query II rowsort label-3815
SELECT - COALESCE ( - - ( + - 15 ), - 48 * ( + + COUNT ( * ) ) * + 14 * - CAST ( - 88 AS INTEGER ) + + MIN ( 64 ) + + - 66 * - - 1 + - - 10 - 26 / - 60 ) AS col1, + 12
----
15
12

query I rowsort
SELECT ALL + 93 * - 2 AS col1
----
-186

query I rowsort
SELECT 43 - + 27
----
16

query I rowsort
SELECT 84 + 87
----
171

query I rowsort
SELECT 68 * + - 47 * + + 71 AS col1
----
-226916

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT CASE - 11 WHEN 11 / + SUM( DISTINCT - 88 ) - - 31 - - - 15 + 16 THEN + 9 ELSE NULL END - - 13 - + + 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3820
SELECT CASE - 11 WHEN 11 / + SUM ( DISTINCT - 88 ) - - 31 - - - 15 + 16 THEN + 9 ELSE NULL END - - 13 - + + 80 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3821
SELECT ( - 31 ) * - 82 + COUNT ( * ) + - + ( 24 ) AS col1
----
2519

query I rowsort
SELECT 87 - - 59 AS col2
----
146

onlyif mysql # DIV for integer division: 
query I rowsort label-3823
SELECT DISTINCT 95 DIV - 3 AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-3823
SELECT DISTINCT 95 / - 3 AS col2
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-3824
SELECT ALL 54 + - + NULLIF ( 17, + 29 * + + 51 ) DIV + - 32 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-3824
SELECT ALL 54 + - + NULLIF ( 17, + 29 * + + 51 ) / + - 32 AS col1
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3825
SELECT ALL 91 AS col1, CAST( NULL AS SIGNED ) / - 28
----
91
NULL

skipif mysql # not compatible
query II rowsort label-3825
SELECT ALL 91 AS col1, CAST ( NULL AS INTEGER ) / - 28
----
91
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3826
SELECT DISTINCT - NULLIF ( - CAST( + COUNT( * ) AS SIGNED ), 78 - 41 ) * - 34
----
-34

skipif mysql # not compatible
query I rowsort label-3826
SELECT DISTINCT - NULLIF ( - CAST ( + COUNT ( * ) AS INTEGER ), 78 - 41 ) * - 34
----
-34

query I rowsort
SELECT DISTINCT 89 + 68 * 57
----
3965

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3828
SELECT 77 + CAST( - 21 - - 9 AS SIGNED ) * COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-3828
SELECT 77 + CAST ( - 21 - - 9 AS INTEGER ) * COUNT ( * )
----
65

query I rowsort
SELECT 19 * 69
----
1311

query I rowsort
SELECT ALL 24 + - 51
----
-27

query I rowsort
SELECT 59 * 17 - + 45 * + 58
----
-1607

query I rowsort
SELECT 38 * + 94 AS col2
----
3572

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT ALL + NULLIF ( 10, 70 * 33 + + MIN( + 16 ) * - 80 ) + + 30
----
40

skipif mysql # not compatible
query I rowsort label-3833
SELECT ALL + NULLIF ( 10, 70 * 33 + + MIN ( + 16 ) * - 80 ) + + 30
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT COALESCE ( COUNT( * ), - COUNT( * ) ) * 21
----
21

skipif mysql # not compatible
query I rowsort label-3834
SELECT COALESCE ( COUNT ( * ), - COUNT ( * ) ) * 21
----
21

query I rowsort
SELECT DISTINCT + 14 + + 68 AS col2
----
82

query I rowsort
SELECT ALL NULLIF ( + 41, 7 ) + + 12 * 59 AS col0
----
749

query I rowsort
SELECT 34 * + 4 AS col2
----
136

query I rowsort
SELECT DISTINCT + 87 * NULLIF ( + 52, AVG ( DISTINCT 28 ) )
----
4524

query I rowsort
SELECT 8 + + 78 AS col1
----
86

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3840
SELECT CAST( NULL AS DECIMAL ) + - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-3840
SELECT CAST ( NULL AS REAL ) + - 10
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3841
SELECT 53 DIV 26 col2
----
2

skipif mysql # not compatible
query I rowsort label-3841
SELECT 53 / 26 col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT ALL + 97 - ( COALESCE ( 37, - 7 ) - NULLIF ( 97, + COUNT( * ) ) * 82 ) col0
----
8014

skipif mysql # not compatible
query I rowsort label-3842
SELECT ALL + 97 - ( COALESCE ( 37, - 7 ) - NULLIF ( 97, + COUNT ( * ) ) * 82 ) col0
----
8014

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3843
SELECT 6 * ( 2 ) + CASE + CAST( 31 AS SIGNED ) WHEN + 20 * SUM( + NULLIF ( - 50, + 70 ) ) + + 55 * 52 THEN 41 * 28 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3843
SELECT 6 * ( 2 ) + CASE + CAST ( 31 AS INTEGER ) WHEN + 20 * SUM ( + NULLIF ( - 50, + 70 ) ) + + 55 * 52 THEN 41 * 28 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3844
SELECT MAX( ALL 85 ) * NULLIF ( COUNT( * ) + + 74, AVG ( 37 ) + + ( - 43 + + 26 ) ) + + MIN( + 48 ) DIV + 27 AS col1
----
6376

skipif mysql # not compatible
query I rowsort label-3844
SELECT MAX ( ALL 85 ) * NULLIF ( COUNT ( * ) + + 74, AVG ( 37 ) + + ( - 43 + + 26 ) ) + + MIN ( + 48 ) / + 27 AS col1
----
6376

query I rowsort
SELECT DISTINCT - 24 * - 1 AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT ALL - ( COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-3846
SELECT ALL - ( COUNT ( * ) ) col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3847
SELECT - 46 * NULLIF ( + 98, CAST( 46 AS SIGNED ) ) + - 13
----
-4521

skipif mysql # not compatible
query I rowsort label-3847
SELECT - 46 * NULLIF ( + 98, CAST ( 46 AS INTEGER ) ) + - 13
----
-4521

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3848
SELECT ALL CAST( ( 83 ) AS SIGNED ) * 71
----
5893

skipif mysql # not compatible
query I rowsort label-3848
SELECT ALL CAST ( ( 83 ) AS INTEGER ) * 71
----
5893

query I rowsort
SELECT 53 + + 63
----
116

query I rowsort
SELECT 43 + - 2
----
41

query I rowsort
SELECT + 1 * 96 - + 66
----
30

query I rowsort
SELECT 49 * 56
----
2744

query I rowsort
SELECT 52 + + 27
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT 88 + - 23 * + COUNT( * ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-3854
SELECT 88 + - 23 * + COUNT ( * ) AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT SUM( 70 ) + 64 AS col0
----
134

skipif mysql # not compatible
query I rowsort label-3855
SELECT SUM ( 70 ) + 64 AS col0
----
134

query I rowsort
SELECT COALESCE ( 26, 99, 43 ) * 13 col0
----
338

onlyif mysql # aggregate syntax: 
query I rowsort label-3857
SELECT ALL + SUM( ALL 59 ) * + 79
----
4661

skipif mysql # not compatible
query I rowsort label-3857
SELECT ALL + SUM ( ALL 59 ) * + 79
----
4661

query I rowsort
SELECT 78 + + 94 * 2
----
266

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT ALL NULLIF ( 48, ( SUM( ALL 19 ) ) ) * + 69
----
3312

skipif mysql # not compatible
query I rowsort label-3859
SELECT ALL NULLIF ( 48, ( SUM ( ALL 19 ) ) ) * + 69
----
3312

onlyif mysql # aggregate syntax: 
query I rowsort label-3860
SELECT MIN( DISTINCT 39 ) * + 70 AS col0
----
2730

skipif mysql # not compatible
query I rowsort label-3860
SELECT MIN ( DISTINCT 39 ) * + 70 AS col0
----
2730

query I rowsort
SELECT ALL + 63 + + 57 col1
----
120

query I rowsort
SELECT ALL - 8 + 49
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3863
SELECT 74 + CASE - 86 + - 20 WHEN + COUNT( * ) THEN NULL ELSE COUNT( ALL 15 ) END AS col1
----
75

skipif mysql # not compatible
query I rowsort label-3863
SELECT 74 + CASE - 86 + - 20 WHEN + COUNT ( * ) THEN NULL ELSE COUNT ( ALL 15 ) END AS col1
----
75

query I rowsort
SELECT - 48 * 76
----
-3648

query I rowsort
SELECT 86 + + 95
----
181

query I rowsort
SELECT DISTINCT + 81 + 65
----
146

query I rowsort
SELECT ALL + 23 + + 36 AS col1
----
59

query I rowsort
SELECT ALL - 48 + - 11
----
-59

query I rowsort
SELECT + 15 + + 69 col1
----
84

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3871
SELECT DISTINCT + 32 DIV COUNT( * ) col0
----
32

skipif mysql # not compatible
query I rowsort label-3871
SELECT DISTINCT + 32 / COUNT ( * ) col0
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-3872
SELECT DISTINCT - - 94 DIV - 71
----
-1

skipif mysql # not compatible
query I rowsort label-3872
SELECT DISTINCT - - 94 / - 71
----
-1

query I rowsort
SELECT ALL + + 36 * 68 + + ( ( + 9 ) - 83 ) AS col0
----
2374

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3874
SELECT ALL - CAST( + 70 AS SIGNED ) * 4
----
-280

skipif mysql # not compatible
query I rowsort label-3874
SELECT ALL - CAST ( + 70 AS INTEGER ) * 4
----
-280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3875
SELECT COUNT( * ) + + 21 * - CAST( + NULLIF ( - 68, - NULLIF ( COUNT( * ), 38 * 25 ) + 97 ) * 58 AS SIGNED ) AS col0
----
82825

skipif mysql # not compatible
query I rowsort label-3875
SELECT COUNT ( * ) + + 21 * - CAST ( + NULLIF ( - 68, - NULLIF ( COUNT ( * ), 38 * 25 ) + 97 ) * 58 AS INTEGER ) AS col0
----
82825

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT ALL - COUNT( * ) * 75 + - 53
----
-128

skipif mysql # not compatible
query I rowsort label-3876
SELECT ALL - COUNT ( * ) * 75 + - 53
----
-128

onlyif mysql # DIV for integer division: 
query I rowsort label-3877
SELECT DISTINCT + 92 * - 73 + - 96 DIV 14
----
-6722

skipif mysql # not compatible
query I rowsort label-3877
SELECT DISTINCT + 92 * - 73 + - 96 / 14
----
-6722

query I rowsort
SELECT ALL 34 * - 49
----
-1666

query I rowsort
SELECT ALL - - NULLIF ( - 89, + ( AVG ( DISTINCT 3 ) ) * + 60 ) AS col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3880
SELECT + 52 * - CASE + 84 * 82 + - 24 WHEN 70 + + 96 THEN 7 * COUNT( * ) + COALESCE ( + SUM( + 99 ), 30, COUNT( 13 ) ) END + 19 * - 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3880
SELECT + 52 * - CASE + 84 * 82 + - 24 WHEN 70 + + 96 THEN 7 * COUNT ( * ) + COALESCE ( + SUM ( + 99 ), 30, COUNT ( 13 ) ) END + 19 * - 42 AS col1
----
NULL

query I rowsort
SELECT ALL 52 * + 54 AS col2
----
2808

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT NULLIF ( 33, 75 / - MIN( + 28 ) )
----
33

skipif mysql # not compatible
query I rowsort label-3882
SELECT NULLIF ( 33, 75 / - MIN ( + 28 ) )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT + NULLIF ( COUNT( DISTINCT 29 ), - CASE COUNT( * ) WHEN ( COUNT( * ) ) THEN 76 WHEN COUNT( * ) + 71 THEN 84 ELSE 49 + 24 * 13 END ) * - 41 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-3883
SELECT + NULLIF ( COUNT ( DISTINCT 29 ), - CASE COUNT ( * ) WHEN ( COUNT ( * ) ) THEN 76 WHEN COUNT ( * ) + 71 THEN 84 ELSE 49 + 24 * 13 END ) * - 41 AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT ALL - ( SUM( - 40 ) )
----
40

skipif mysql # not compatible
query I rowsort label-3884
SELECT ALL - ( SUM ( - 40 ) )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT DISTINCT 6 * + COUNT( * ) - - CASE COUNT( * ) WHEN - NULLIF ( COUNT( * ), - 14 ) THEN - 72 WHEN 37 + 23 THEN NULL ELSE MIN( 37 ) END AS col2
----
43

skipif mysql # not compatible
query I rowsort label-3885
SELECT DISTINCT 6 * + COUNT ( * ) - - CASE COUNT ( * ) WHEN - NULLIF ( COUNT ( * ), - 14 ) THEN - 72 WHEN 37 + 23 THEN NULL ELSE MIN ( 37 ) END AS col2
----
43

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3887
SELECT + COUNT( DISTINCT 51 )
----
1

skipif mysql # not compatible
query I rowsort label-3887
SELECT + COUNT ( DISTINCT 51 )
----
1

query I rowsort
SELECT ALL + COALESCE ( + 87, - 59 * - ( - 36 ) )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT MIN( ALL + NULLIF ( - CASE + 79 WHEN 17 THEN - 42 / 2 + + 0 WHEN - 69 * 87 THEN - 85 * 25 END, - 11 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3889
SELECT MIN ( ALL + NULLIF ( - CASE + 79 WHEN 17 THEN - 42 / 2 + + 0 WHEN - 69 * 87 THEN - 85 * 25 END, - 11 ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3890
SELECT ALL 20 DIV - - 68
----
0

skipif mysql # not compatible
query I rowsort label-3890
SELECT ALL 20 / - - 68
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT + 26 * SUM( ALL - 53 )
----
-1378

skipif mysql # not compatible
query I rowsort label-3891
SELECT + 26 * SUM ( ALL - 53 )
----
-1378

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

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

query I rowsort
SELECT ALL - 39 * - 40 * CASE + 59 WHEN 80 THEN COALESCE ( - 54, + 17 ) * 18 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3894
SELECT - 84 DIV + + 99 col2
----
0

skipif mysql # not compatible
query I rowsort label-3894
SELECT - 84 / + + 99 col2
----
0

query I rowsort
SELECT ALL + 76 + - 14
----
62

query I rowsort
SELECT - ( + 98 ) + 82 AS col0
----
-16

query I rowsort
SELECT DISTINCT 78 + 74
----
152

query I rowsort
SELECT ALL COALESCE ( 72, - 8 )
----
72

query I rowsort
SELECT ALL - 31 + + + 91 - 90
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-3900
SELECT ALL + 76 + - ( 58 ) DIV ( 74 ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-3900
SELECT ALL + 76 + - ( 58 ) / ( 74 ) AS col0
----
76

query I rowsort
SELECT + ( 29 ) * - 4
----
-116

query I rowsort
SELECT + 95 + COALESCE ( - 12, + 3 * - 41 ) + + 16
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT ALL NULLIF ( - 3, 52 * COUNT( * ) ) AS col0
----
-3

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

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

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

query I rowsort
SELECT ALL + 52 + + 30
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT ALL - - 21 + - + CASE COUNT( * ) WHEN - 59 THEN 61 WHEN + 54 THEN NULL END + - NULLIF ( 54, 59 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3906
SELECT ALL - - 21 + - + CASE COUNT ( * ) WHEN - 59 THEN 61 WHEN + 54 THEN NULL END + - NULLIF ( 54, 59 )
----
NULL

query I rowsort
SELECT - - 14 - 75
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT ALL - 3 * + COUNT( * ) - 32 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-3908
SELECT ALL - 3 * + COUNT ( * ) - 32 AS col1
----
-35

query I rowsort
SELECT DISTINCT - 59 - - 99
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-3910
SELECT + + NULLIF ( + 5, 35 ) DIV 21 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3910
SELECT + + NULLIF ( + 5, 35 ) / 21 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3911
SELECT DISTINCT - - 91 * - - COUNT( * ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-3911
SELECT DISTINCT - - 91 * - - COUNT ( * ) AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT - NULLIF ( + COUNT( DISTINCT - 86 ), 24 )
----
-1

skipif mysql # not compatible
query I rowsort label-3912
SELECT - NULLIF ( + COUNT ( DISTINCT - 86 ), 24 )
----
-1

query I rowsort
SELECT - + 87 * + 40 + 89 AS col0
----
-3391

query I rowsort
SELECT ALL + + 45 AS col1
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-3915
SELECT 70 DIV 17 - 99 * - 57 AS col1
----
5647

skipif mysql # not compatible
query I rowsort label-3915
SELECT 70 / 17 - 99 * - 57 AS col1
----
5647

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

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

query I rowsort
SELECT DISTINCT + - 68 AS col0
----
-68

query I rowsort
SELECT ALL - 26 * 63
----
-1638

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT ALL + - MIN( DISTINCT - ( 56 ) ) col2
----
56

skipif mysql # not compatible
query I rowsort label-3919
SELECT ALL + - MIN ( DISTINCT - ( 56 ) ) col2
----
56

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3920
SELECT DISTINCT + ( + 25 ) * CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3920
SELECT DISTINCT + ( + 25 ) * CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3921
SELECT - 9 + - NULLIF ( - 76, 10 - CAST( 8 AS SIGNED ) * 4 ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-3921
SELECT - 9 + - NULLIF ( - 76, 10 - CAST ( 8 AS INTEGER ) * 4 ) AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3922
SELECT 70 * - 29 - + + 4 * COUNT( * )
----
-2034

skipif mysql # not compatible
query I rowsort label-3922
SELECT 70 * - 29 - + + 4 * COUNT ( * )
----
-2034

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT ( + CASE + 4 WHEN + COUNT( * ) THEN + 86 WHEN - 90 THEN + 36 * 56 WHEN 22 * 57 + + 49 THEN NULL ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3923
SELECT ( + CASE + 4 WHEN + COUNT ( * ) THEN + 86 WHEN - 90 THEN + 36 * 56 WHEN 22 * 57 + + 49 THEN NULL ELSE NULL END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT + COUNT( * ) * + - 65 * ( + COUNT( * ) ) + + ( 78 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-3924
SELECT + COUNT ( * ) * + - 65 * ( + COUNT ( * ) ) + + ( 78 ) AS col2
----
13

query I rowsort
SELECT CASE + 63 WHEN 70 THEN NULL WHEN AVG ( ALL - 68 ) THEN + 51 * - 62 END AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3927
SELECT DISTINCT 12 * + COUNT( * ) + + CAST( 50 AS SIGNED ) + 11 * 8
----
150

skipif mysql # not compatible
query I rowsort label-3927
SELECT DISTINCT 12 * + COUNT ( * ) + + CAST ( 50 AS INTEGER ) + 11 * 8
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT ALL COUNT( 26 ) * - COALESCE ( 82, - 13 ) * - 86 + + 99 + + 70
----
7221

skipif mysql # not compatible
query I rowsort label-3928
SELECT ALL COUNT ( 26 ) * - COALESCE ( 82, - 13 ) * - 86 + + 99 + + 70
----
7221

query I rowsort
SELECT + 73 * - 69
----
-5037

onlyif mysql # aggregate syntax: 
query I rowsort label-3930
SELECT DISTINCT COALESCE ( + 68, 8 * + SUM( + 30 ) ) * 65 + - 56
----
4364

skipif mysql # not compatible
query I rowsort label-3930
SELECT DISTINCT COALESCE ( + 68, 8 * + SUM ( + 30 ) ) * 65 + - 56
----
4364

query I rowsort
SELECT 81 * + 88 * + 71 + 96
----
506184

query II rowsort
SELECT DISTINCT + 35 col1, - 69 AS col1
----
35
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-3933
SELECT + 37 DIV + 11 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-3933
SELECT + 37 / + 11 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3934
SELECT - 54 * + COUNT( * ) * - SUM( - 74 ) + 71
----
-3925

skipif mysql # not compatible
query I rowsort label-3934
SELECT - 54 * + COUNT ( * ) * - SUM ( - 74 ) + 71
----
-3925

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT SUM( ALL - + 72 ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-3936
SELECT SUM ( ALL - + 72 ) AS col2
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-3937
SELECT + 72 DIV - - 46
----
1

skipif mysql # not compatible
query I rowsort label-3937
SELECT + 72 / - - 46
----
1

query I rowsort
SELECT - 77 + - + 20 col2
----
-97

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

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

query I rowsort
SELECT ALL - 98 * - + 93 + - 90 AS col2
----
9024

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT ALL + COUNT( * ) * CASE 43 WHEN 67 * - 52 + - 60 THEN + 57 WHEN - 79 * + 39 + 10 THEN NULL END + + 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3941
SELECT ALL + COUNT ( * ) * CASE 43 WHEN 67 * - 52 + - 60 THEN + 57 WHEN - 79 * + 39 + 10 THEN NULL END + + 65 AS col0
----
NULL

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

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

query II rowsort
SELECT ALL 89, 51 AS col0
----
89
51

query I rowsort
SELECT + + 43 + 86 * - 42 AS col1
----
-3569

query I rowsort
SELECT ALL 66 - 91 - + + 28
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3946
SELECT ALL SUM( DISTINCT - 68 ) - - 27 + 49 DIV 6
----
-33

skipif mysql # not compatible
query I rowsort label-3946
SELECT ALL SUM ( DISTINCT - 68 ) - - 27 + 49 / 6
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3947
SELECT 41 AS col1, COUNT( * ) + + - 35 DIV 23
----
41
0

skipif mysql # not compatible
query II rowsort label-3947
SELECT 41 AS col1, COUNT ( * ) + + - 35 / 23
----
41
0

query II rowsort
SELECT ALL 82 AS col1, - 37 + + + 25 * + 63 AS col1
----
82
1538

query I rowsort
SELECT - 24 * + 91 AS col2
----
-2184

query I rowsort
SELECT ALL COALESCE ( 4, + 37, 36 + 4, 38 ) AS col0
----
4

query I rowsort
SELECT + - 66 + 1 * + + 26
----
-40

query I rowsort
SELECT - - 60 - - - 89 * - 53 * 9
----
42513

query I rowsort
SELECT - + 2 * + - 72 * - 39 AS col1
----
-5616

onlyif mysql # aggregate syntax: 
query I rowsort label-3954
SELECT ALL - NULLIF ( + - COUNT( * ), + 20 )
----
1

skipif mysql # not compatible
query I rowsort label-3954
SELECT ALL - NULLIF ( + - COUNT ( * ), + 20 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT + + CASE - COUNT( * ) WHEN - ( 24 ) + 39 THEN 62 + + 19 END + - 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3955
SELECT + + CASE - COUNT ( * ) WHEN - ( 24 ) + 39 THEN 62 + + 19 END + - 26 AS col1
----
NULL

query I rowsort
SELECT - - 27 + + 60 AS col2
----
87

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

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

query I rowsort
SELECT - 99 + + - 74 - - 55 + - 1
----
-119

onlyif mysql # DIV for integer division: 
query II rowsort label-3959
SELECT ALL - 94 AS col2, + 10 DIV + 57 AS col2
----
-94
0

skipif mysql # not compatible
query II rowsort label-3959
SELECT ALL - 94 AS col2, + 10 / + 57 AS col2
----
-94
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3960
SELECT DISTINCT COUNT( * ), 84 AS col1
----
1
84

skipif mysql # not compatible
query II rowsort label-3960
SELECT DISTINCT COUNT ( * ), 84 AS col1
----
1
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3961
SELECT DISTINCT - COUNT( * ) * - - 74 AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-3961
SELECT DISTINCT - COUNT ( * ) * - - 74 AS col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3962
SELECT DISTINCT + CASE + - 24 WHEN 9 + 66 THEN 74 WHEN 23 THEN NULL ELSE + COUNT( * ) * 83 + 81 END
----
164

skipif mysql # not compatible
query I rowsort label-3962
SELECT DISTINCT + CASE + - 24 WHEN 9 + 66 THEN 74 WHEN 23 THEN NULL ELSE + COUNT ( * ) * 83 + 81 END
----
164

query I rowsort
SELECT DISTINCT - + ( + 46 ) * + 92
----
-4232

query I rowsort
SELECT DISTINCT - + 22 * + + 81 + 92 * 8 AS col1
----
-1046

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT COUNT( * ) + + + NULLIF ( + - 28, - 24 * COALESCE ( + 85 * 22, + ( + 92 ) ) )
----
-27

skipif mysql # not compatible
query I rowsort label-3966
SELECT COUNT ( * ) + + + NULLIF ( + - 28, - 24 * COALESCE ( + 85 * 22, + ( + 92 ) ) )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT + CASE + COALESCE ( + - 66, 67 / 76 ) WHEN COALESCE ( COUNT( * ), COUNT( * ) * + 75, 52 ) + + COUNT( * ) THEN NULL ELSE + 21 END AS col2
----
21

skipif mysql # not compatible
query I rowsort label-3967
SELECT + CASE + COALESCE ( + - 66, 67 / 76 ) WHEN COALESCE ( COUNT ( * ), COUNT ( * ) * + 75, 52 ) + + COUNT ( * ) THEN NULL ELSE + 21 END AS col2
----
21

query I rowsort
SELECT 52 * - 37
----
-1924

onlyif mysql # DIV for integer division: 
query I rowsort label-3969
SELECT + 95 DIV - 57 + - - 72 + 68 + 30 * 38
----
1279

skipif mysql # not compatible
query I rowsort label-3969
SELECT + 95 / - 57 + - - 72 + 68 + 30 * 38
----
1279

query I rowsort
SELECT ALL + 48 + - 81 AS col1
----
-33

query I rowsort
SELECT DISTINCT - 94 + + ( + ( - 48 ) ) * + 57
----
-2830

onlyif mysql # DIV for integer division: 
query I rowsort label-3972
SELECT ALL 67 DIV ( 82 ) * + ( 24 )
----
0

skipif mysql # not compatible
query I rowsort label-3972
SELECT ALL 67 / ( 82 ) * + ( 24 )
----
0

query I rowsort
SELECT ALL 26 + + 76 - + COALESCE ( + - 63, + 86 )
----
165

onlyif mysql # DIV for integer division: 
query I rowsort label-3974
SELECT DISTINCT + 21 DIV - 45
----
0

skipif mysql # not compatible
query I rowsort label-3974
SELECT DISTINCT + 21 / - 45
----
0

query I rowsort
SELECT NULLIF ( - 36, - COALESCE ( - NULLIF ( + 64, 48 ), 46 / 17 ) * + 80 ) * - 38
----
1368

query I rowsort
SELECT ALL 31 * - ( + 88 )
----
-2728

query I rowsort
SELECT ALL 90 + + 69 AS col1
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT 77 * - COUNT( DISTINCT - 89 ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-3978
SELECT 77 * - COUNT ( DISTINCT - 89 ) AS col1
----
-77

query I rowsort
SELECT DISTINCT 25 + 1 AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT ALL CASE + - 28 WHEN + 56 - 67 * 77 THEN - COUNT( * ) WHEN - 10 + COUNT( * ) * NULLIF ( + ( ( 72 ) ) * - 37, COUNT( * ) + + 10 ) THEN NULL WHEN MIN( - 69 ) THEN NULL ELSE NULL END + + 80 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3980
SELECT ALL CASE + - 28 WHEN + 56 - 67 * 77 THEN - COUNT ( * ) WHEN - 10 + COUNT ( * ) * NULLIF ( + ( ( 72 ) ) * - 37, COUNT ( * ) + + 10 ) THEN NULL WHEN MIN ( - 69 ) THEN NULL ELSE NULL END + + 80 AS col1
----
NULL

query II rowsort
SELECT 32 * + + 66 AS col0, + 78
----
2112
78

onlyif mysql # DIV for integer division: 
query I rowsort label-3982
SELECT ALL 60 + + + 2 + - 78 DIV 3 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-3982
SELECT ALL 60 + + + 2 + - 78 / 3 AS col0
----
36

query I rowsort
SELECT 3 * + 57
----
171

query I rowsort
SELECT ALL - 41 * 68
----
-2788

onlyif mysql # DIV for integer division: 
query I rowsort label-3985
SELECT DISTINCT - 70 DIV - 30 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3985
SELECT DISTINCT - 70 / - 30 AS col1
----
2

query I rowsort
SELECT ALL + + 54 - 25
----
29

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

skipif mysql # not compatible
query I rowsort label-3987
SELECT ALL MAX ( ALL - 50 )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT DISTINCT + CASE - + 45 WHEN 59 + + 19 THEN - NULLIF ( - MIN( 47 ), COUNT( * ) ) * + 92 - 92 ELSE - COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-3988
SELECT DISTINCT + CASE - + 45 WHEN 59 + + 19 THEN - NULLIF ( - MIN ( 47 ), COUNT ( * ) ) * + 92 - 92 ELSE - COUNT ( * ) END
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3989
SELECT + 52 + - + 31 col0, 26 DIV + SUM( - 50 ) * - 88
----
21
0

skipif mysql # not compatible
query II rowsort label-3989
SELECT + 52 + - + 31 col0, 26 / + SUM ( - 50 ) * - 88
----
21
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT 40 * SUM( - 1 )
----
-40

skipif mysql # not compatible
query I rowsort label-3990
SELECT 40 * SUM ( - 1 )
----
-40

query I rowsort
SELECT 71 + 3 + - + 9 AS col2
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-3992
SELECT ALL 0 * ( + ( + 91 ) ) DIV 96
----
0

skipif mysql # not compatible
query I rowsort label-3992
SELECT ALL 0 * ( + ( + 91 ) ) / 96
----
0

query I rowsort
SELECT ALL 18 * + 99 * + 59 * 63
----
6623694

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT ALL + - 49 * + 5 * + - 64 * - CASE - 60 WHEN 23 THEN + CASE + COUNT( * ) WHEN + 69 * 65 - 71 THEN ( + 71 ) WHEN 94 THEN NULL ELSE 64 * - 4 END * 12 ELSE COALESCE ( + 80, 17, 44 ) END * + COUNT( * ) AS col0
----
-1254400

skipif mysql # not compatible
query I rowsort label-3994
SELECT ALL + - 49 * + 5 * + - 64 * - CASE - 60 WHEN 23 THEN + CASE + COUNT ( * ) WHEN + 69 * 65 - 71 THEN ( + 71 ) WHEN 94 THEN NULL ELSE 64 * - 4 END * 12 ELSE COALESCE ( + 80, 17, 44 ) END * + COUNT ( * ) AS col0
----
-1254400

query I rowsort
SELECT ALL + ( + 66 ) * + - 10 AS col2
----
-660

onlyif mysql # aggregate syntax: 
query I rowsort label-3996
SELECT DISTINCT CASE 76 WHEN - COUNT( * ) THEN + + 85 WHEN + 34 THEN 96 + + 26 END * 21 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3996
SELECT DISTINCT CASE 76 WHEN - COUNT ( * ) THEN + + 85 WHEN + 34 THEN 96 + + 26 END * 21 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3997
SELECT ALL + - ( - 7 ) DIV + ( - 44 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3997
SELECT ALL + - ( - 7 ) / + ( - 44 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT CASE + 66 WHEN 53 THEN NULL ELSE - 68 * - COUNT( * ) + COALESCE ( - 4, 68 * 8 - 97 ) END AS col0
----
64

skipif mysql # not compatible
query I rowsort label-3998
SELECT CASE + 66 WHEN 53 THEN NULL ELSE - 68 * - COUNT ( * ) + COALESCE ( - 4, 68 * 8 - 97 ) END AS col0
----
64

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

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

query I rowsort
SELECT DISTINCT - 91 + - ( - - NULLIF ( - 50, - 13 ) )
----
-41

query I rowsort
SELECT ALL + 33 + + 39 AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4002
SELECT COUNT( ALL - 82 )
----
1

skipif mysql # not compatible
query I rowsort label-4002
SELECT COUNT ( ALL - 82 )
----
1

query I rowsort
SELECT ALL + 80 + - 29 + + 64
----
115

query I rowsort
SELECT ALL 61 + + 23 - - 64 * 0
----
84

query I rowsort
SELECT ALL + 17 * - 81 AS col0
----
-1377

onlyif mysql # aggregate syntax: 
query I rowsort label-4006
SELECT ALL + 8 + + + 6 + + COUNT( + 23 ) + 8
----
23

skipif mysql # not compatible
query I rowsort label-4006
SELECT ALL + 8 + + + 6 + + COUNT ( + 23 ) + 8
----
23

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4007
SELECT DISTINCT + 35 * - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4007
SELECT DISTINCT + 35 * - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT ALL - 44 + COUNT( + + COALESCE ( - - 53, - 22 ) ) + - 63 * + 2 AS col0
----
-169

skipif mysql # not compatible
query I rowsort label-4008
SELECT ALL - 44 + COUNT ( + + COALESCE ( - - 53, - 22 ) ) + - 63 * + 2 AS col0
----
-169

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

skipif mysql # not compatible
query II rowsort label-4009
SELECT COUNT ( * ) AS col1, ( - 39 )
----
1
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4010
SELECT ALL + COUNT( * ) * + - 72 AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-4010
SELECT ALL + COUNT ( * ) * + - 72 AS col1
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4011
SELECT 77 + - - 68 + + COUNT( - 61 ) DIV - ( 16 ) + 13
----
158

skipif mysql # not compatible
query I rowsort label-4011
SELECT 77 + - - 68 + + COUNT ( - 61 ) / - ( 16 ) + 13
----
158

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4012
SELECT ( - CAST( NULL AS SIGNED ) ) * + 62 + - 79 - + 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4012
SELECT ( - CAST ( NULL AS INTEGER ) ) * + 62 + - 79 - + 29 AS col0
----
NULL

query I rowsort
SELECT ALL - NULLIF ( 6, + + 32 + + + ( + 54 ) / - 84 ) - 71 * 39
----
-2775

onlyif mysql # DIV for integer division: 
query II rowsort label-4014
SELECT 20, 60 * - + 89 + 96 + + - 80 * ( + 62 DIV - 75 ) AS col2
----
20
-5244

skipif mysql # not compatible
query II rowsort label-4014
SELECT 20, 60 * - + 89 + 96 + + - 80 * ( + 62 / - 75 ) AS col2
----
20
-5244

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4015
SELECT - COUNT( * ) * - COUNT( * ) DIV - + COALESCE ( + 88, - 81 ) * 40 + - 83 * 31 AS col0
----
-2573

skipif mysql # not compatible
query I rowsort label-4015
SELECT - COUNT ( * ) * - COUNT ( * ) / - + COALESCE ( + 88, - 81 ) * 40 + - 83 * 31 AS col0
----
-2573

onlyif mysql # DIV for integer division: 
query I rowsort label-4016
SELECT DISTINCT - COALESCE ( + + 32, + - 83 + 43 DIV - 4 ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-4016
SELECT DISTINCT - COALESCE ( + + 32, + - 83 + 43 / - 4 ) AS col0
----
-32

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

skipif mysql # not compatible
query I rowsort label-4017
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + 83
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT ALL + 82 - CASE + 35 WHEN + 55 THEN 13 + 3 ELSE 55 * + 3 END * + MIN( ( 51 ) ) col1
----
-8333

skipif mysql # not compatible
query I rowsort label-4019
SELECT ALL + 82 - CASE + 35 WHEN + 55 THEN 13 + 3 ELSE 55 * + 3 END * + MIN ( ( 51 ) ) col1
----
-8333

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

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

query I rowsort
SELECT NULLIF ( + 71, - ( - 89 ) * + - 61 ) * - 75 AS col1
----
-5325

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4022
SELECT ALL + + 85 DIV + 59 DIV + COUNT( DISTINCT + + 69 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4022
SELECT ALL + + 85 / + 59 / + COUNT ( DISTINCT + + 69 ) AS col0
----
1

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

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

query I rowsort
SELECT 62 * - + 1 * 87
----
-5394

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4025
SELECT DISTINCT + - COALESCE ( + 1, - + 96 ) * 34 * + - CAST( 71 AS SIGNED )
----
2414

skipif mysql # not compatible
query I rowsort label-4025
SELECT DISTINCT + - COALESCE ( + 1, - + 96 ) * 34 * + - CAST ( 71 AS INTEGER )
----
2414

query I rowsort
SELECT - 18 * + 83 + + 78
----
-1416

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT MIN( - 4 ) * - 67
----
268

skipif mysql # not compatible
query I rowsort label-4027
SELECT MIN ( - 4 ) * - 67
----
268

query I rowsort
SELECT 42 * + - 54 AS col0
----
-2268

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4029
SELECT - + CASE + 17 WHEN + ( + 9 ) THEN NULL WHEN + COUNT( * ) * COUNT( * ) THEN NULL ELSE - CAST( NULL AS DECIMAL ) * 93 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4029
SELECT - + CASE + 17 WHEN + ( + 9 ) THEN NULL WHEN + COUNT ( * ) * COUNT ( * ) THEN NULL ELSE - CAST ( NULL AS REAL ) * 93 END AS col0
----
NULL

query I rowsort
SELECT + - 83 + + 20
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT DISTINCT - MIN( DISTINCT - 56 ) col0
----
56

skipif mysql # not compatible
query I rowsort label-4031
SELECT DISTINCT - MIN ( DISTINCT - 56 ) col0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4032
SELECT ALL + + 30 * - - NULLIF ( + CASE + + 75 WHEN 52 THEN NULL WHEN - ( - 59 ) + - 4 * - 6 THEN + CAST( NULL AS SIGNED ) ELSE NULL END, 63 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4032
SELECT ALL + + 30 * - - NULLIF ( + CASE + + 75 WHEN 52 THEN NULL WHEN - ( - 59 ) + - 4 * - 6 THEN + CAST ( NULL AS INTEGER ) ELSE NULL END, 63 ) AS col2
----
NULL

query I rowsort
SELECT + + ( 27 ) * - - 82 + 63 AS col2
----
2277

query I rowsort
SELECT - NULLIF ( + 14, - AVG ( DISTINCT + 24 ) )
----
-14

query I rowsort
SELECT ALL 78 + + 24 AS col2
----
102

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

skipif mysql # not compatible
query I rowsort label-4036
SELECT - + 64 - + CAST ( NULL AS INTEGER ) * - 39
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT ALL + 62 + - + COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-4037
SELECT ALL + 62 + - + COUNT ( * )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4038
SELECT - COALESCE ( - 83, - - 38 * - 66 + 40 * - COUNT( * ) )
----
83

skipif mysql # not compatible
query I rowsort label-4038
SELECT - COALESCE ( - 83, - - 38 * - 66 + 40 * - COUNT ( * ) )
----
83

query I rowsort
SELECT ALL 50 + 69 * + 15
----
1085

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4040
SELECT ALL 62 + - 81 DIV + - COUNT( * )
----
143

skipif mysql # not compatible
query I rowsort label-4040
SELECT ALL 62 + - 81 / + - COUNT ( * )
----
143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4041
SELECT ALL 21 * COALESCE ( 64, + CAST( - ( - CAST( + 87 AS SIGNED ) ) AS SIGNED ), - 19 ) * 65
----
87360

skipif mysql # not compatible
query I rowsort label-4041
SELECT ALL 21 * COALESCE ( 64, + CAST ( - ( - CAST ( + 87 AS INTEGER ) ) AS INTEGER ), - 19 ) * 65
----
87360

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

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

query I rowsort
SELECT ALL - 59 * 70 + + 43 col1
----
-4087

query I rowsort
SELECT ALL 6 * - 22 + - + 77
----
-209

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4045
SELECT + COUNT( * ) * - 23 DIV + ( - - 1 ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-4045
SELECT + COUNT ( * ) * - 23 / + ( - - 1 ) AS col2
----
-23

query I rowsort
SELECT - 26 + 76
----
50

query I rowsort
SELECT - 85 * + 13 AS col1
----
-1105

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT + COALESCE ( + ( - 45 ), + COUNT( * ) ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-4048
SELECT + COALESCE ( + ( - 45 ), + COUNT ( * ) ) AS col0
----
-45

query I rowsort
SELECT + 14 * - 50
----
-700

onlyif mysql # aggregate syntax: 
query II rowsort label-4050
SELECT - COUNT( * ) * 11 * + - COUNT( * ) + + 80, 90 AS col2
----
91
90

skipif mysql # not compatible
query II rowsort label-4050
SELECT - COUNT ( * ) * 11 * + - COUNT ( * ) + + 80, 90 AS col2
----
91
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT + ( - 18 ) * - + 6 * NULLIF ( - 14, - CASE + 16 WHEN 18 THEN 35 * + 35 END * + 4 - - COALESCE ( + MAX( ALL 86 ), 46 ) ) * 20
----
-30240

skipif mysql # not compatible
query I rowsort label-4051
SELECT + ( - 18 ) * - + 6 * NULLIF ( - 14, - CASE + 16 WHEN 18 THEN 35 * + 35 END * + 4 - - COALESCE ( + MAX ( ALL 86 ), 46 ) ) * 20
----
-30240

onlyif mysql # aggregate syntax: 
query II rowsort label-4052
SELECT + 66, COUNT( * ) * - 25 * - 18 + - 99 AS col1
----
66
351

skipif mysql # not compatible
query II rowsort label-4052
SELECT + 66, COUNT ( * ) * - 25 * - 18 + - 99 AS col1
----
66
351

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4053
SELECT ALL + CASE + 58 WHEN + 8 THEN + CAST( 1 AS SIGNED ) + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4053
SELECT ALL + CASE + 58 WHEN + 8 THEN + CAST ( 1 AS INTEGER ) + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4054
SELECT DISTINCT + 50 * + - 0 - + 91 + + COALESCE ( COUNT( * ), 57 - + ( 24 + 57 ), ( + SUM( ALL 24 ) ) * 65 ) + + 94 * 74 AS col1
----
6866

skipif mysql # not compatible
query I rowsort label-4054
SELECT DISTINCT + 50 * + - 0 - + 91 + + COALESCE ( COUNT ( * ), 57 - + ( 24 + 57 ), ( + SUM ( ALL 24 ) ) * 65 ) + + 94 * 74 AS col1
----
6866

onlyif mysql # aggregate syntax: 
query I rowsort label-4055
SELECT DISTINCT + ( MIN( + 15 ) ) * + NULLIF ( - 54, + 44 ) AS col1
----
-810

skipif mysql # not compatible
query I rowsort label-4055
SELECT DISTINCT + ( MIN ( + 15 ) ) * + NULLIF ( - 54, + 44 ) AS col1
----
-810

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4056
SELECT DISTINCT + COUNT( DISTINCT - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-4056
SELECT DISTINCT + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4057
SELECT - 17 * + 6 * - - 10 - - COUNT( * ) * - 21 AS col0
----
-1041

skipif mysql # not compatible
query I rowsort label-4057
SELECT - 17 * + 6 * - - 10 - - COUNT ( * ) * - 21 AS col0
----
-1041

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

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

query I rowsort
SELECT + 24 * - COALESCE ( - 60, CASE + + ( + 60 ) WHEN 27 THEN + 95 WHEN + NULLIF ( + 34, 70 * - 90 ) THEN NULL END + 42, 70 ) AS col1
----
1440

query I rowsort
SELECT NULLIF ( + - 51, + 85 + - - 29 * + + 82 + + + 97 ) AS col2
----
-51

query II rowsort
SELECT ALL + 21 col1, + ( 74 ) * - 9
----
21
-666

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4062
SELECT + CASE + + SUM( DISTINCT 31 ) WHEN 57 THEN NULL WHEN - - 97 THEN - CAST( NULL AS SIGNED ) * - 26 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4062
SELECT + CASE + + SUM ( DISTINCT 31 ) WHEN 57 THEN NULL WHEN - - 97 THEN - CAST ( NULL AS INTEGER ) * - 26 ELSE NULL END AS col1
----
NULL

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

query II rowsort
SELECT - 29 AS col0, + 53 * + 40 + + 67
----
-29
2187

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT - - 54 - COUNT( * ) * - 98 + 55
----
207

skipif mysql # not compatible
query I rowsort label-4065
SELECT - - 54 - COUNT ( * ) * - 98 + 55
----
207

query I rowsort
SELECT ALL NULLIF ( + 36, + 8 + - ( + 4 ) ) AS col2
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-4067
SELECT - 36 + COALESCE ( + ( - 81 ), + 23, 78 - - 29 DIV 23 ) AS col0
----
-117

skipif mysql # not compatible
query I rowsort label-4067
SELECT - 36 + COALESCE ( + ( - 81 ), + 23, 78 - - 29 / 23 ) AS col0
----
-117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4068
SELECT - + 77 DIV + 87 * - MIN( ALL + ( + - 84 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4068
SELECT - + 77 / + 87 * - MIN ( ALL + ( + - 84 ) ) AS col1
----
0

query II rowsort
SELECT ALL + COALESCE ( - 92, - 71, - 55 ) AS col1, + 61 AS col0
----
-92
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4070
SELECT + - 96 + - + COUNT( * ) DIV - 33 + 68
----
-28

skipif mysql # not compatible
query I rowsort label-4070
SELECT + - 96 + - + COUNT ( * ) / - 33 + 68
----
-28

query I rowsort
SELECT + 33 * + 35
----
1155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4072
SELECT DISTINCT COALESCE ( COALESCE ( - ( 19 ), COUNT( * ) ), 5 * CAST( COUNT( * ) AS SIGNED ) ) * 42 AS col2
----
-798

skipif mysql # not compatible
query I rowsort label-4072
SELECT DISTINCT COALESCE ( COALESCE ( - ( 19 ), COUNT ( * ) ), 5 * CAST ( COUNT ( * ) AS INTEGER ) ) * 42 AS col2
----
-798

query I rowsort
SELECT ALL + 16 + - - 73 + + 27 AS col0
----
116

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

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

query I rowsort
SELECT DISTINCT + 35 * + 26
----
910

onlyif mysql # aggregate syntax: 
query II rowsort label-4076
SELECT ALL 44 + 51 AS col0, MAX( ALL + + 69 ) * + 2
----
95
138

skipif mysql # not compatible
query II rowsort label-4076
SELECT ALL 44 + 51 AS col0, MAX ( ALL + + 69 ) * + 2
----
95
138

query I rowsort
SELECT - ( + ( + 2 ) )
----
-2

query I rowsort
SELECT - ( + 83 ) - - + 67 AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT + 26 * + SUM( - + 58 )
----
-1508

skipif mysql # not compatible
query I rowsort label-4079
SELECT + 26 * + SUM ( - + 58 )
----
-1508

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4080
SELECT - CAST( - + 67 AS SIGNED )
----
67

skipif mysql # not compatible
query I rowsort label-4080
SELECT - CAST ( - + 67 AS INTEGER )
----
67

query I rowsort
SELECT - COALESCE ( - 2, 23 )
----
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4082
SELECT + CASE - + COUNT( * ) WHEN + 35 + + - 50 THEN NULL WHEN + ( + COUNT( * ) ) + - - CAST( NULL AS DECIMAL ) + COUNT( * ) THEN NULL WHEN 89 THEN NULL ELSE + 77 - 44 END
----
33

skipif mysql # not compatible
query I rowsort label-4082
SELECT + CASE - + COUNT ( * ) WHEN + 35 + + - 50 THEN NULL WHEN + ( + COUNT ( * ) ) + - - CAST ( NULL AS REAL ) + COUNT ( * ) THEN NULL WHEN 89 THEN NULL ELSE + 77 - 44 END
----
33

query I rowsort
SELECT ALL 37 * + 37 * + - 50 col1
----
-68450

query II rowsort
SELECT + 43 - 68, 54 col2
----
-25
54

query II rowsort
SELECT ALL 54 * 28 * 12 AS col1, 26
----
18144
26

query II rowsort
SELECT DISTINCT 66 * + - 88, - ( + 78 ) col1
----
-5808
-78

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4088
SELECT DISTINCT + CASE - COALESCE ( - COUNT( * ), 27 ) WHEN 28 * - + CAST( NULL AS SIGNED ) + + + 33 / COUNT( * ) THEN 7 * 3 WHEN COUNT( * ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4088
SELECT DISTINCT + CASE - COALESCE ( - COUNT ( * ), 27 ) WHEN 28 * - + CAST ( NULL AS INTEGER ) + + + 33 / COUNT ( * ) THEN 7 * 3 WHEN COUNT ( * ) THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4089
SELECT + 7 + + 64 + - 13 DIV + - 92
----
71

skipif mysql # not compatible
query I rowsort label-4089
SELECT + 7 + + 64 + - 13 / + - 92
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4090
SELECT + 83 + - CAST( 81 AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-4090
SELECT + 83 + - CAST ( 81 AS INTEGER )
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4091
SELECT - 63 DIV - + 52 - + + 53 + COUNT( DISTINCT - 59 ) * - 43 + 43 * - 92 AS col0
----
-4051

skipif mysql # not compatible
query I rowsort label-4091
SELECT - 63 / - + 52 - + + 53 + COUNT ( DISTINCT - 59 ) * - 43 + 43 * - 92 AS col0
----
-4051

onlyif mysql # aggregate syntax: 
query I rowsort label-4092
SELECT ALL + COUNT( DISTINCT + - 48 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4092
SELECT ALL + COUNT ( DISTINCT + - 48 ) col2
----
1

query II rowsort
SELECT + 0 * 75 col2, + 83 * 93 * - ( - 10 ) col0
----
0
77190

query I rowsort
SELECT 92 * - - ( - NULLIF ( - + 23, 44 ) ) + + 8
----
2124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4095
SELECT - - CAST( NULL AS SIGNED ) * + + 65 / + 52 * + COUNT( * ) + + 13 AS col2, - 31 AS col1
----
NULL
-31

skipif mysql # not compatible
query II rowsort label-4095
SELECT - - CAST ( NULL AS INTEGER ) * + + 65 / + 52 * + COUNT ( * ) + + 13 AS col2, - 31 AS col1
----
NULL
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4096
SELECT ALL + + CASE WHEN + 3 IS NOT NULL THEN + - 65 + + - COUNT( * ) DIV + + 77 * + 28 ELSE COUNT( * ) END + COALESCE ( + 25 + 49, + COALESCE ( 86, + 70 DIV 59, COUNT( * ) DIV COUNT( * ) ) * 83 )
----
9

skipif mysql # not compatible
query I rowsort label-4096
SELECT ALL + + CASE WHEN + 3 IS NOT NULL THEN + - 65 + + - COUNT ( * ) / + + 77 * + 28 ELSE COUNT ( * ) END + COALESCE ( + 25 + 49, + COALESCE ( 86, + 70 / 59, COUNT ( * ) / COUNT ( * ) ) * 83 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4097
SELECT ALL - 89 + + MAX( ALL - 4 ) * + 24 AS col2
----
-185

skipif mysql # not compatible
query I rowsort label-4097
SELECT ALL - 89 + + MAX ( ALL - 4 ) * + 24 AS col2
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT ALL - - CASE MIN( ( + 72 ) ) WHEN + - ( + + COUNT( * ) ) + 33 - - 69 THEN - 1 * 0 - 68 * - 21 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4098
SELECT ALL - - CASE MIN ( ( + 72 ) ) WHEN + - ( + + COUNT ( * ) ) + 33 - - 69 THEN - 1 * 0 - 68 * - 21 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 61 + 88 + + 1 * + COALESCE ( 52, - + 11 ) + - 16 + 7 AS col1
----
70

query I rowsort
SELECT ALL - 97 * + + 24
----
-2328

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4101
SELECT ALL + CASE - COALESCE ( - 8, - CASE + 56 WHEN - COUNT( * ) / + + 33 + 42 THEN NULL ELSE + 99 + - MIN( - 86 ) / - 68 END + 54 ) WHEN - 77 / CAST( NULL AS DECIMAL ) + 54 THEN - 31 * 73 - 46 END + + AVG ( - 85 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4101
SELECT ALL + CASE - COALESCE ( - 8, - CASE + 56 WHEN - COUNT ( * ) / + + 33 + 42 THEN NULL ELSE + 99 + - MIN ( - 86 ) / - 68 END + 54 ) WHEN - 77 / CAST ( NULL AS REAL ) + 54 THEN - 31 * 73 - 46 END + + AVG ( - 85 ) col1
----
NULL

query I rowsort
SELECT COALESCE ( - - 45, - + NULLIF ( + 82, 56 ) ) AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT + - CASE - COUNT( + + 15 ) WHEN + 24 THEN 6 WHEN + - ( AVG ( - 47 ) ) / - MIN( + 7 * 76 ) + ( 54 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4103
SELECT + - CASE - COUNT ( + + 15 ) WHEN + 24 THEN 6 WHEN + - ( AVG ( - 47 ) ) / - MIN ( + 7 * 76 ) + ( 54 ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4104
SELECT 42 * - 36 + SUM( ALL + 70 )
----
-1442

skipif mysql # not compatible
query I rowsort label-4104
SELECT 42 * - 36 + SUM ( ALL + 70 )
----
-1442

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT ALL - + 63 * - - MIN( - 68 )
----
4284

skipif mysql # not compatible
query I rowsort label-4105
SELECT ALL - + 63 * - - MIN ( - 68 )
----
4284

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4106
SELECT + CAST( - COUNT( * ) AS SIGNED ) AS col1, 5 AS col0
----
-1
5

skipif mysql # not compatible
query II rowsort label-4106
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) AS col1, 5 AS col0
----
-1
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4107
SELECT CAST( 85 AS SIGNED ) DIV - MAX( - 31 )
----
2

skipif mysql # not compatible
query I rowsort label-4107
SELECT CAST ( 85 AS INTEGER ) / - MAX ( - 31 )
----
2

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

skipif mysql # not compatible
query I rowsort label-4108
SELECT DISTINCT COUNT ( * ) + + ( + 71 ) AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT SUM( DISTINCT + - 25 ) + CASE - 8 WHEN - 4 THEN + + 1 END / 3
----
NULL

skipif mysql # not compatible
query I rowsort label-4109
SELECT SUM ( DISTINCT + - 25 ) + CASE - 8 WHEN - 4 THEN + + 1 END / 3
----
NULL

query I rowsort
SELECT ALL 3 * - + 37
----
-111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4111
SELECT ALL - 85 DIV - MAX( ALL 85 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4111
SELECT ALL - 85 / - MAX ( ALL 85 ) AS col0
----
1

query I rowsort
SELECT 68 + - + 28
----
40

query I rowsort
SELECT 3 - - CASE - ( - 0 ) WHEN + 84 THEN NULL WHEN + 8 THEN + - 42 - + + 49 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4114
SELECT 77 + + 3 / 52 * - CAST( NULL AS SIGNED ) / 64
----
NULL

skipif mysql # not compatible
query I rowsort label-4114
SELECT 77 + + 3 / 52 * - CAST ( NULL AS INTEGER ) / 64
----
NULL

query I rowsort
SELECT NULLIF ( NULLIF ( COALESCE ( + + 39, + + 93 * + 46 + 95 ), - 37 ), 76 + 23 ) + 95 * 35 AS col2
----
3364

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4116
SELECT ALL - SUM( - + CAST( NULL AS SIGNED ) ) * ( + - 97 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4116
SELECT ALL - SUM ( - + CAST ( NULL AS INTEGER ) ) * ( + - 97 ) AS col0
----
NULL

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

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

query I rowsort
SELECT 93 + - 88
----
5

onlyif mysql # DIV for integer division: 
query II rowsort label-4119
SELECT - 4 AS col2, - 7 DIV 87 + + + ( - 94 )
----
-4
-94

skipif mysql # not compatible
query II rowsort label-4119
SELECT - 4 AS col2, - 7 / 87 + + + ( - 94 )
----
-4
-94

query I rowsort
SELECT ALL 61 * - - 43 col0
----
2623

query I rowsort
SELECT 12 + 40 * - 61 * + ( - - 23 ) * + COALESCE ( + + 12, + + ( - 93 ) ) * 32
----
-21550068

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4122
SELECT ALL 14 AS col0, CAST( NULL AS DECIMAL ) * - - 90
----
14
NULL

skipif mysql # not compatible
query II rowsort label-4122
SELECT ALL 14 AS col0, CAST ( NULL AS REAL ) * - - 90
----
14
NULL

query I rowsort
SELECT 22 + + 44 AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT ALL - 86 * - COUNT( + 74 )
----
86

skipif mysql # not compatible
query I rowsort label-4124
SELECT ALL - 86 * - COUNT ( + 74 )
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4125
SELECT 28 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4125
SELECT 28 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-4126
SELECT NULLIF ( 46, + + NULLIF ( 1, + COUNT( + - ( CAST( - 67 AS DECIMAL ) ) ) ) ) + 18 DIV 36 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-4126
SELECT NULLIF ( 46, + + NULLIF ( 1, + COUNT ( + - ( CAST ( - 67 AS REAL ) ) ) ) ) + 18 / 36 AS col1
----
46

query I rowsort
SELECT 12 * - 74 * + + 93 AS col1
----
-82584

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT COUNT( 89 ) * + 65 + - + 66
----
-1

skipif mysql # not compatible
query I rowsort label-4128
SELECT COUNT ( 89 ) * + 65 + - + 66
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4129
SELECT 18 DIV - ( + 36 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4129
SELECT 18 / - ( + 36 ) AS col0
----
0

query II rowsort
SELECT 47 AS col1, + 42 AS col2
----
47
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4131
SELECT + 96 DIV + COUNT( ALL + + 81 ) + + - 84 col0
----
12

skipif mysql # not compatible
query I rowsort label-4131
SELECT + 96 / + COUNT ( ALL + + 81 ) + + - 84 col0
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-4132
SELECT 31 DIV 34
----
0

skipif mysql # not compatible
query I rowsort label-4132
SELECT 31 / 34
----
0

query I rowsort
SELECT ALL 55 + 89
----
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4134
SELECT COALESCE ( - 52, - NULLIF ( + ( NULLIF ( - - 6, - 26 ) ), - - CAST( + COUNT( * ) AS SIGNED ) ) * - 18 - CAST( + 25 + COUNT( * ) * 27 AS SIGNED ), CAST( 8 AS SIGNED ) - + 68 )
----
-52

skipif mysql # not compatible
query I rowsort label-4134
SELECT COALESCE ( - 52, - NULLIF ( + ( NULLIF ( - - 6, - 26 ) ), - - CAST ( + COUNT ( * ) AS INTEGER ) ) * - 18 - CAST ( + 25 + COUNT ( * ) * 27 AS INTEGER ), CAST ( 8 AS INTEGER ) - + 68 )
----
-52

query I rowsort
SELECT ALL - - 95 AS col2
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-4136
SELECT ALL + + 36 + COUNT( * ) + - 6 col0, NULLIF ( + 23, - - 29 ) * COUNT( * ) AS col1
----
31
23

skipif mysql # not compatible
query II rowsort label-4136
SELECT ALL + + 36 + COUNT ( * ) + - 6 col0, NULLIF ( + 23, - - 29 ) * COUNT ( * ) AS col1
----
31
23

query II rowsort
SELECT + 47 AS col2, + 82 AS col2
----
47
82

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

skipif mysql # not compatible
query I rowsort label-4138
SELECT DISTINCT + 90 + - - COUNT ( * ) AS col0
----
91

query I rowsort
SELECT ALL + 32 + + 22 AS col0
----
54

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

skipif mysql # not compatible
query I rowsort label-4140
SELECT + ( + 58 ) / - + COUNT ( * ) * - COUNT ( DISTINCT + - 38 )
----
58

onlyif mysql # DIV for integer division: 
query II rowsort label-4141
SELECT ALL - - 58 AS col1, + 88 * + 0 * + - 56 DIV 83
----
58
0

skipif mysql # not compatible
query II rowsort label-4141
SELECT ALL - - 58 AS col1, + 88 * + 0 * + - 56 / 83
----
58
0

query II rowsort
SELECT DISTINCT - 68 AS col2, 52 AS col2
----
-68
52

query II rowsort
SELECT + 70, + 63 AS col0
----
70
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT ALL 85 + + 49 + - 88 + + 96 * + + COUNT( * )
----
142

skipif mysql # not compatible
query I rowsort label-4144
SELECT ALL 85 + + 49 + - 88 + + 96 * + + COUNT ( * )
----
142

query I rowsort
SELECT 89 - 16
----
73

query I rowsort
SELECT - 68 - 27
----
-95

query I rowsort
SELECT ALL - - 35 * 85 col0
----
2975

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT - ( - MIN( DISTINCT + 9 ) ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-4148
SELECT - ( - MIN ( DISTINCT + 9 ) ) AS col2
----
9

query I rowsort
SELECT 58 * - 75 + 28 + - 70 * + - ( + 50 ) + 73
----
-749

query I rowsort
SELECT ALL 91 * + 83 * 96
----
725088

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4151
SELECT 13 + + 28 + 10 * 55 + - 67 + - + 12 - + 99 + - + 44 * - NULLIF ( + ( + COUNT( * ) ), - CAST( NULL AS SIGNED ) * COUNT( DISTINCT + 27 ) ) + CAST( NULL AS DECIMAL ) * - 11 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4151
SELECT 13 + + 28 + 10 * 55 + - 67 + - + 12 - + 99 + - + 44 * - NULLIF ( + ( + COUNT ( * ) ), - CAST ( NULL AS INTEGER ) * COUNT ( DISTINCT + 27 ) ) + CAST ( NULL AS REAL ) * - 11 col2
----
NULL

query I rowsort
SELECT 16 - 35 * - 21 AS col1
----
751

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT - COUNT( DISTINCT 37 )
----
-1

skipif mysql # not compatible
query I rowsort label-4153
SELECT - COUNT ( DISTINCT 37 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT 22 + + 3 * + SUM( + 21 ) * - 17
----
-1049

skipif mysql # not compatible
query I rowsort label-4154
SELECT 22 + + 3 * + SUM ( + 21 ) * - 17
----
-1049

query I rowsort
SELECT 96 * - 4 col0
----
-384

onlyif mysql # DIV for integer division: 
query I rowsort label-4156
SELECT 41 DIV + + 8
----
5

skipif mysql # not compatible
query I rowsort label-4156
SELECT 41 / + + 8
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4157
SELECT COUNT( * ) * + 95 * 68 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4157
SELECT COUNT ( * ) * + 95 * 68 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT ALL - ( + - COUNT( * ) ) + - COALESCE ( 98, 75 )
----
-97

skipif mysql # not compatible
query I rowsort label-4158
SELECT ALL - ( + - COUNT ( * ) ) + - COALESCE ( 98, 75 )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT ALL NULLIF ( MAX( + - 23 ), - 88 - 12 * + - 36 * - - 97 ) * - 52 * 95 + 84 col2
----
113704

skipif mysql # not compatible
query I rowsort label-4159
SELECT ALL NULLIF ( MAX ( + - 23 ), - 88 - 12 * + - 36 * - - 97 ) * - 52 * 95 + 84 col2
----
113704

query I rowsort
SELECT DISTINCT + 64 * - 95 + 3 AS col0
----
-6077

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4161
SELECT ALL + CAST( + 24 AS SIGNED )
----
24

skipif mysql # not compatible
query I rowsort label-4161
SELECT ALL + CAST ( + 24 AS INTEGER )
----
24

query I rowsort
SELECT DISTINCT 38 * 78 - + 97 + + - ( 90 )
----
2777

query I rowsort
SELECT + + COALESCE ( + 69, + 84, - + 9 + - NULLIF ( + 61, + 58 - + - 32 ) ) AS col1
----
69

query I rowsort
SELECT 75 * - + 67 * + 60 * + 82 + + 90 - + 80
----
-24722990

query I rowsort
SELECT - 3 + - 60
----
-63

query I rowsort
SELECT + + COALESCE ( 18, 57, + 2 )
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4167
SELECT ALL + 43 * - COUNT( DISTINCT - 14 ) + CAST( NULL AS SIGNED ) - - 74 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4167
SELECT ALL + 43 * - COUNT ( DISTINCT - 14 ) + CAST ( NULL AS INTEGER ) - - 74 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4168
SELECT ALL COUNT( * ) * + 49 * + + 38 + - ( - 88 ) * 92 * - + 76 / - - 91 - - ( - 54 ) * CASE 41 WHEN 97 THEN ( + 52 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4168
SELECT ALL COUNT ( * ) * + 49 * + + 38 + - ( - 88 ) * 92 * - + 76 / - - 91 - - ( - 54 ) * CASE 41 WHEN 97 THEN ( + 52 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4169
SELECT + 0 * + 80 + + 59 + - COALESCE ( - COALESCE ( - COUNT( * ), + 59 / 61 * 27 * 10 ), + 32 + 30 ) - CAST( NULL AS SIGNED ) * COUNT( + 90 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4169
SELECT + 0 * + 80 + + 59 + - COALESCE ( - COALESCE ( - COUNT ( * ), + 59 / 61 * 27 * 10 ), + 32 + 30 ) - CAST ( NULL AS INTEGER ) * COUNT ( + 90 ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4170
SELECT ALL - CAST( + ( + 43 ) AS SIGNED ) * - 46
----
1978

skipif mysql # not compatible
query I rowsort label-4170
SELECT ALL - CAST ( + ( + 43 ) AS INTEGER ) * - 46
----
1978

query I rowsort
SELECT ALL - 6 * + 79 - + - 38 AS col0
----
-436

query I rowsort
SELECT 63 * + + 71 + - 10 AS col2
----
4463

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4173
SELECT + 88 DIV - - COALESCE ( 98, CASE 5 WHEN - 72 + - 39 THEN + - 83 DIV - COUNT( * ) WHEN 26 + + 14 * - 99 THEN - SUM( DISTINCT 74 ) DIV - 90 ELSE ( 52 ) END ) + 24
----
24

skipif mysql # not compatible
query I rowsort label-4173
SELECT + 88 / - - COALESCE ( 98, CASE 5 WHEN - 72 + - 39 THEN + - 83 / - COUNT ( * ) WHEN 26 + + 14 * - 99 THEN - SUM ( DISTINCT 74 ) / - 90 ELSE ( 52 ) END ) + 24
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT - MIN( DISTINCT + + 87 ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-4174
SELECT - MIN ( DISTINCT + + 87 ) AS col2
----
-87

query I rowsort
SELECT + 2 + - 66
----
-64

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

skipif mysql # not compatible
query I rowsort label-4176
SELECT MAX ( DISTINCT - 68 )
----
-68

query I rowsort
SELECT + 38 + - 91 AS col0
----
-53

query I rowsort
SELECT - NULLIF ( + 95, + + ( 87 ) ) col0
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4179
SELECT + 44 + + 69 + - + 25 * COUNT( * ) - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4179
SELECT + 44 + + 69 + - + 25 * COUNT ( * ) - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT ALL COALESCE ( 34, - + 53 * + + MAX( + + 97 ) ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-4180
SELECT ALL COALESCE ( 34, - + 53 * + + MAX ( + + 97 ) ) AS col2
----
34

query I rowsort
SELECT + 96 * - ( - 70 )
----
6720

query I rowsort
SELECT + 84 + 55
----
139

query I rowsort
SELECT - 90 + + + 44
----
-46

query I rowsort
SELECT + 60 * - 26
----
-1560

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT - SUM( ALL + + 43 ) + COUNT( DISTINCT - 77 ) * - 82 AS col1
----
-125

skipif mysql # not compatible
query I rowsort label-4185
SELECT - SUM ( ALL + + 43 ) + COUNT ( DISTINCT - 77 ) * - 82 AS col1
----
-125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4186
SELECT ALL + ( COALESCE ( - CASE + 85 WHEN - - COUNT( * ) THEN - ( + COALESCE ( - ( - - NULLIF ( + + CAST( + 82 AS SIGNED ), 76 - + 80 * CASE WHEN 92 + CAST( NULL AS SIGNED ) IS NULL THEN NULL ELSE - ( 83 ) * - COUNT( * ) + AVG ( 26 ) END ) ), 53 DIV - CAST( + SUM( DISTINCT + 32 ) AS SIGNED ) ) ) * COUNT( ALL COALESCE ( 45, 96 ) ) + 83 END, + 82 + 68 ) ) + COALESCE ( - 63, 37 + + 88, 93 DIV + 56 )
----
87

skipif mysql # not compatible
query I rowsort label-4186
SELECT ALL + ( COALESCE ( - CASE + 85 WHEN - - COUNT ( * ) THEN - ( + COALESCE ( - ( - - NULLIF ( + + CAST ( + 82 AS INTEGER ), 76 - + 80 * CASE WHEN 92 + CAST ( NULL AS INTEGER ) IS NULL THEN NULL ELSE - ( 83 ) * - COUNT ( * ) + AVG ( 26 ) END ) ), 53 / - CAST ( + SUM ( DISTINCT + 32 ) AS INTEGER ) ) ) * COUNT ( ALL COALESCE ( 45, 96 ) ) + 83 END, + 82 + 68 ) ) + COALESCE ( - 63, 37 + + 88, 93 / + 56 )
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-4187
SELECT + 77 + - 30 * + 42, - 33 * - CASE WHEN NOT + COUNT( * ) IN ( - - 40, ( + 71 ) ) THEN 74 END * - 39 - + COUNT( ( 49 ) ) * + 12 AS col0
----
-1183
-95250

skipif mysql # not compatible
query II rowsort label-4187
SELECT + 77 + - 30 * + 42, - 33 * - CASE WHEN NOT + COUNT ( * ) IN ( - - 40, ( + 71 ) ) THEN 74 END * - 39 - + COUNT ( ( 49 ) ) * + 12 AS col0
----
-1183
-95250

query I rowsort
SELECT ALL + 97 + + NULLIF ( + - ( + 31 ), 3 )
----
66

query I rowsort
SELECT ALL ( + + 2 ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT - 6 + 56 + + 23 * - CASE - - CASE - MAX( ALL - 94 ) WHEN 11 THEN 9 WHEN - 76 THEN NULL WHEN 66 THEN NULL END WHEN 18 THEN 99 END / 53
----
NULL

skipif mysql # not compatible
query I rowsort label-4190
SELECT - 6 + 56 + + 23 * - CASE - - CASE - MAX ( ALL - 94 ) WHEN 11 THEN 9 WHEN - 76 THEN NULL WHEN 66 THEN NULL END WHEN 18 THEN 99 END / 53
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4191
SELECT ALL - - NULLIF ( + CAST( + + COUNT( * ) AS SIGNED ), - 46 + COUNT( * ) ) + + 8 - COUNT( * ) + - 27 AS col1, + 69 AS col2
----
-19
69

skipif mysql # not compatible
query II rowsort label-4191
SELECT ALL - - NULLIF ( + CAST ( + + COUNT ( * ) AS INTEGER ), - 46 + COUNT ( * ) ) + + 8 - COUNT ( * ) + - 27 AS col1, + 69 AS col2
----
-19
69

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

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

query I rowsort
SELECT - 43 + - 98
----
-141

onlyif mysql # DIV for integer division: 
query I rowsort label-4194
SELECT DISTINCT - 32 DIV - 49 + - 41 + + 13
----
-28

skipif mysql # not compatible
query I rowsort label-4194
SELECT DISTINCT - 32 / - 49 + - 41 + + 13
----
-28

query II rowsort
SELECT + + 33 AS col1, - 35 AS col2
----
33
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT DISTINCT + NULLIF ( - 12, - 72 + 49 + - COALESCE ( + 97, + - 53, - + COUNT( DISTINCT - + 44 ) + - 87 * + 28 ) + ( + 19 ) * SUM( - 79 - 23 ) * - 61 ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-4196
SELECT DISTINCT + NULLIF ( - 12, - 72 + 49 + - COALESCE ( + 97, + - 53, - + COUNT ( DISTINCT - + 44 ) + - 87 * + 28 ) + ( + 19 ) * SUM ( - 79 - 23 ) * - 61 ) AS col2
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-4197
SELECT ALL 56 DIV - + 80 - + - 50 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-4197
SELECT ALL 56 / - + 80 - + - 50 AS col1
----
50

query I rowsort
SELECT - - 69 * - 56 * 69 - - - 15 + - 53
----
-266684

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

skipif mysql # not compatible
query I rowsort label-4199
SELECT ALL + - COUNT ( * ) * - 86 AS col2
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4200
SELECT + CAST( + - CASE - 14 WHEN AVG ( - 11 ) / 47 + - CAST( NULL AS SIGNED ) * 5 THEN + 34 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4200
SELECT + CAST ( + - CASE - 14 WHEN AVG ( - 11 ) / 47 + - CAST ( NULL AS INTEGER ) * 5 THEN + 34 END AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4201
SELECT ALL 64 * + 17 * + 47 + + CAST( NULL AS SIGNED ) - 33 * - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-4201
SELECT ALL 64 * + 17 * + 47 + + CAST ( NULL AS INTEGER ) - 33 * - 20
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4202
SELECT ALL - - ( ( + 45 ) ) * ( - 41 ) DIV - - CAST( - 92 AS SIGNED ) + - COUNT( + COALESCE ( - 85, + 83 ) ) + + ( 46 ) * 19 + + COUNT( * ) - + 86
----
808

skipif mysql # not compatible
query I rowsort label-4202
SELECT ALL - - ( ( + 45 ) ) * ( - 41 ) / - - CAST ( - 92 AS INTEGER ) + - COUNT ( + COALESCE ( - 85, + 83 ) ) + + ( 46 ) * 19 + + COUNT ( * ) - + 86
----
808

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4203
SELECT ALL + + COUNT( DISTINCT 69 ) * + + 60 * - COALESCE ( - + CAST( CAST( NULL AS SIGNED ) AS SIGNED ), 91 ) AS col1
----
-5460

skipif mysql # not compatible
query I rowsort label-4203
SELECT ALL + + COUNT ( DISTINCT 69 ) * + + 60 * - COALESCE ( - + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ), 91 ) AS col1
----
-5460

query I rowsort
SELECT NULLIF ( - + 95, - 69 ) col0
----
-95

query I rowsort
SELECT ALL + + 69 col1
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4206
SELECT - 26 - + MAX( DISTINCT - 4 ) - 43 DIV + + 22
----
-23

skipif mysql # not compatible
query I rowsort label-4206
SELECT - 26 - + MAX ( DISTINCT - 4 ) - 43 / + + 22
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-4207
SELECT ALL ( + - 0 ) * 42 DIV - ( - ( 12 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4207
SELECT ALL ( + - 0 ) * 42 / - ( - ( 12 ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4208
SELECT ALL + 54 DIV + 60
----
0

skipif mysql # not compatible
query I rowsort label-4208
SELECT ALL + 54 / + 60
----
0

query I rowsort
SELECT - ( + 1 ) AS col0
----
-1

query I rowsort
SELECT ALL - 96 * - + 35 + 41
----
3401

onlyif mysql # aggregate syntax: 
query II rowsort label-4211
SELECT COUNT( * ), 94 AS col0
----
1
94

skipif mysql # not compatible
query II rowsort label-4211
SELECT COUNT ( * ), 94 AS col0
----
1
94

query I rowsort
SELECT ALL - 35 * + 11 + 32
----
-353

query I rowsort
SELECT + 14 + - + 38 * - + 85
----
3244

onlyif mysql # aggregate syntax: 
query I rowsort label-4214
SELECT MIN( + 6 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-4214
SELECT MIN ( + 6 ) AS col1
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4215
SELECT - 84 * CAST( CASE + COUNT( DISTINCT + 94 ) WHEN + + 17 THEN + - 51 WHEN + 0 THEN NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4215
SELECT - 84 * CAST ( CASE + COUNT ( DISTINCT + 94 ) WHEN + + 17 THEN + - 51 WHEN + 0 THEN NULL END AS INTEGER )
----
NULL

query I rowsort
SELECT + 90 + + 79 * + 47 * - - 75 * + 1 * - - 92 - - 84
----
25619874

onlyif mysql # DIV for integer division: 
query I rowsort label-4217
SELECT 57 DIV - + 72 col1
----
0

skipif mysql # not compatible
query I rowsort label-4217
SELECT 57 / - + 72 col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4218
SELECT 28 * + 21 * - CAST( - + 58 AS SIGNED )
----
34104

skipif mysql # not compatible
query I rowsort label-4218
SELECT 28 * + 21 * - CAST ( - + 58 AS INTEGER )
----
34104

query II rowsort
SELECT 63 AS col0, 95 AS col2
----
63
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT DISTINCT 1 + - MIN( ALL 0 )
----
1

skipif mysql # not compatible
query I rowsort label-4220
SELECT DISTINCT 1 + - MIN ( ALL 0 )
----
1

query I rowsort
SELECT 40 * - 2
----
-80

query I rowsort
SELECT DISTINCT 83 + - 17 AS col1
----
66

query II rowsort
SELECT - 78 AS col0, - 87 col1
----
-78
-87

query I rowsort
SELECT ALL + 92 + - - 17
----
109

query I rowsort
SELECT 37 + - + 73
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-4226
SELECT + 32 AS col1, - 71 * 99 * + - NULLIF ( - ( - 70 ), ( + COUNT( ALL + 39 ) ) ) AS col2
----
32
492030

skipif mysql # not compatible
query II rowsort label-4226
SELECT + 32 AS col1, - 71 * 99 * + - NULLIF ( - ( - 70 ), ( + COUNT ( ALL + 39 ) ) ) AS col2
----
32
492030

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4227
SELECT + SUM( - CAST( NULL AS DECIMAL ) ) + SUM( - - 87 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4227
SELECT + SUM ( - CAST ( NULL AS REAL ) ) + SUM ( - - 87 ) col2
----
NULL

query I rowsort
SELECT ALL + 53 - 54 + + 60
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4229
SELECT + 80 * - 85 - + 77 * - 49 * - COUNT( * )
----
-10573

skipif mysql # not compatible
query I rowsort label-4229
SELECT + 80 * - 85 - + 77 * - 49 * - COUNT ( * )
----
-10573

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT ALL - 78 - 41 + + - SUM( ALL 3 ) AS col0
----
-122

skipif mysql # not compatible
query I rowsort label-4231
SELECT ALL - 78 - 41 + + - SUM ( ALL 3 ) AS col0
----
-122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4232
SELECT ALL + 9 * + CASE - - MIN( - CAST( NULL AS SIGNED ) ) WHEN 73 THEN - - 74 * 27 + - - 72 * - 91 * - 55 ELSE NULL END + - 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4232
SELECT ALL + 9 * + CASE - - MIN ( - CAST ( NULL AS INTEGER ) ) WHEN 73 THEN - - 74 * 27 + - - 72 * - 91 * - 55 ELSE NULL END + - 27 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( - 96, + 37 ) AS col1
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-4234
SELECT - 21 + - COUNT( * ) + - 33 * 45 - 10 - + - 34 AS col2, 71 * - + 51 AS col0
----
-1483
-3621

skipif mysql # not compatible
query II rowsort label-4234
SELECT - 21 + - COUNT ( * ) + - 33 * 45 - 10 - + - 34 AS col2, 71 * - + 51 AS col0
----
-1483
-3621

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

query I rowsort
SELECT + 45 * - ( + + ( 67 ) ) + ( ( + 82 ) ) AS col1
----
-2933

query I rowsort
SELECT + 87 + + 69
----
156

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

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

query I rowsort
SELECT 88 * - - 51 + + 38
----
4526

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4240
SELECT CASE + + CASE + + ( - 70 ) WHEN - 81 + 56 THEN 39 END WHEN - 40 / ( - + ( - 30 ) ) - + COUNT( * ) * CAST( NULL AS DECIMAL ) THEN + 75 WHEN 76 + + 30 THEN NULL END + 33 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4240
SELECT CASE + + CASE + + ( - 70 ) WHEN - 81 + 56 THEN 39 END WHEN - 40 / ( - + ( - 30 ) ) - + COUNT ( * ) * CAST ( NULL AS REAL ) THEN + 75 WHEN 76 + + 30 THEN NULL END + 33 col2
----
NULL

query I rowsort
SELECT ALL + 85 * - 26 AS col1
----
-2210

query II rowsort
SELECT DISTINCT - + 2 AS col0, 86 + - 47
----
-2
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4243
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + AVG ( ALL 66 ) + COUNT( * ) / 54 + 68 + + 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4243
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + AVG ( ALL 66 ) + COUNT ( * ) / 54 + 68 + + 31 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4244
SELECT 16 + - 56 + + COUNT( * ) - 34 + 25 DIV - 17 * - COUNT( * ) - + 81 * - 10 * + - SUM( DISTINCT + - 8 ) * + - 73
----
-473112

skipif mysql # not compatible
query I rowsort label-4244
SELECT 16 + - 56 + + COUNT ( * ) - 34 + 25 / - 17 * - COUNT ( * ) - + 81 * - 10 * + - SUM ( DISTINCT + - 8 ) * + - 73
----
-473112

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

query I rowsort
SELECT 22 * - 41
----
-902

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

skipif mysql # not compatible
query I rowsort label-4247
SELECT 12 + COUNT ( * ) / 67 AS col0
----
12

query I rowsort
SELECT 37 + + 42 + + + 54
----
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4249
SELECT DISTINCT - NULLIF ( + 50, + COALESCE ( - 46, - - ( - ( - COUNT( * ) ) ) ) ) + - + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4249
SELECT DISTINCT - NULLIF ( + 50, + COALESCE ( - 46, - - ( - ( - COUNT ( * ) ) ) ) ) + - + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT DISTINCT 42 + - - COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-4250
SELECT DISTINCT 42 + - - COUNT ( * )
----
43

query I rowsort
SELECT ALL 18 - 13 * + + NULLIF ( - 20, - - 14 )
----
278

query I rowsort
SELECT 75 * - 96
----
-7200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4253
SELECT 82 + - 38 + - 42 * CASE + 54 WHEN 42 * - + 33 * + 6 THEN + CAST( NULL AS SIGNED ) WHEN 97 THEN NULL WHEN - 70 THEN + 6 * 22 + ( + COUNT( + 79 ) ) ELSE NULL END / 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4253
SELECT 82 + - 38 + - 42 * CASE + 54 WHEN 42 * - + 33 * + 6 THEN + CAST ( NULL AS INTEGER ) WHEN 97 THEN NULL WHEN - 70 THEN + 6 * 22 + ( + COUNT ( + 79 ) ) ELSE NULL END / 29 AS col0
----
NULL

query I rowsort
SELECT ALL 95 - + 80 * 35 - - 8
----
-2697

query I rowsort
SELECT - ( + - 35 ) AS col0
----
35

query II rowsort
SELECT 30 + - + 33 AS col1, 26 * + 42 AS col0
----
-3
1092

query I rowsort
SELECT - 78 + 31
----
-47

query I rowsort
SELECT 32 * - 24 * 73 * + 83
----
-4653312

onlyif mysql # DIV for integer division: 
query I rowsort label-4259
SELECT ALL 22 DIV 82 + - + 92 AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-4259
SELECT ALL 22 / 82 + - + 92 AS col1
----
-92

query I rowsort
SELECT - 92 + + 86
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT ALL - - 72 - - CASE - COUNT( * ) WHEN + SUM( - 85 ) THEN - 16 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4261
SELECT ALL - - 72 - - CASE - COUNT ( * ) WHEN + SUM ( - 85 ) THEN - 16 END col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4262
SELECT 40 * - COALESCE ( CASE + 37 WHEN + + ( - 91 ) / - 98 + 41 THEN + + SUM( ALL + 81 ) * + COUNT( * ) WHEN - CAST( NULL AS SIGNED ) THEN + 78 WHEN - ( - 50 ) + 89 THEN NULL ELSE NULL END, 66 ) AS col0
----
-2640

skipif mysql # not compatible
query I rowsort label-4262
SELECT 40 * - COALESCE ( CASE + 37 WHEN + + ( - 91 ) / - 98 + 41 THEN + + SUM ( ALL + 81 ) * + COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) THEN + 78 WHEN - ( - 50 ) + 89 THEN NULL ELSE NULL END, 66 ) AS col0
----
-2640

onlyif mysql # DIV for integer division: 
query I rowsort label-4263
SELECT + 41 + - 48 DIV - - 60
----
41

skipif mysql # not compatible
query I rowsort label-4263
SELECT + 41 + - 48 / - - 60
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4264
SELECT + ( - - CAST( + COUNT( * ) AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-4264
SELECT + ( - - CAST ( + COUNT ( * ) AS INTEGER ) )
----
1

query I rowsort
SELECT DISTINCT - 48 * - 43 AS col1
----
2064

onlyif mysql # aggregate syntax: 
query I rowsort label-4266
SELECT ALL - + 6 * 77 + SUM( + 26 ) + + 5 + + 44 + - 81 - + - 20 + + - 20
----
-468

skipif mysql # not compatible
query I rowsort label-4266
SELECT ALL - + 6 * 77 + SUM ( + 26 ) + + 5 + + 44 + - 81 - + - 20 + + - 20
----
-468

onlyif mysql # aggregate syntax: 
query II rowsort label-4267
SELECT 88 + - COUNT( * ) AS col1, - 65 * - 60 AS col2
----
87
3900

skipif mysql # not compatible
query II rowsort label-4267
SELECT 88 + - COUNT ( * ) AS col1, - 65 * - 60 AS col2
----
87
3900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4268
SELECT ALL - 97 * - - 26 + CAST( - - ( + 50 ) AS SIGNED ) AS col1
----
-2472

skipif mysql # not compatible
query I rowsort label-4268
SELECT ALL - 97 * - - 26 + CAST ( - - ( + 50 ) AS INTEGER ) AS col1
----
-2472

onlyif mysql # aggregate syntax: 
query II rowsort label-4269
SELECT COUNT( + ( 0 ) ) col1, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-4269
SELECT COUNT ( + ( 0 ) ) col1, COUNT ( * )
----
1
1

query I rowsort
SELECT 41 * - 66
----
-2706

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4272
SELECT ALL + ( + CASE - + 94 WHEN - ( + COUNT( * ) ) THEN NULL WHEN - - ( - 55 ) * COUNT( * ) * 67 * - 87 THEN 35 + - CAST( + COUNT( * ) AS SIGNED ) + 65 ELSE 83 + 95 END )
----
178

skipif mysql # not compatible
query I rowsort label-4272
SELECT ALL + ( + CASE - + 94 WHEN - ( + COUNT ( * ) ) THEN NULL WHEN - - ( - 55 ) * COUNT ( * ) * 67 * - 87 THEN 35 + - CAST ( + COUNT ( * ) AS INTEGER ) + 65 ELSE 83 + 95 END )
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT + CASE COUNT( * ) WHEN + 12 THEN - 91 * - 83 WHEN + 62 THEN NULL ELSE 82 END
----
82

skipif mysql # not compatible
query I rowsort label-4273
SELECT + CASE COUNT ( * ) WHEN + 12 THEN - 91 * - 83 WHEN + 62 THEN NULL ELSE 82 END
----
82

query I rowsort
SELECT - 67 + - 66
----
-133

query I rowsort
SELECT - 37 * 47 AS col0
----
-1739

query I rowsort
SELECT ALL + 64 * - 57
----
-3648

onlyif mysql # DIV for integer division: 
query I rowsort label-4277
SELECT - 55 DIV 14 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-4277
SELECT - 55 / 14 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4278
SELECT DISTINCT COUNT( DISTINCT - 81 ) + 11 AS col0, - 42 col0
----
12
-42

skipif mysql # not compatible
query II rowsort label-4278
SELECT DISTINCT COUNT ( DISTINCT - 81 ) + 11 AS col0, - 42 col0
----
12
-42

query I rowsort
SELECT DISTINCT + COALESCE ( 86, + 8 * + 48 ) col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT + 38 * MAX( ALL + 86 ) - - COUNT( * )
----
3269

skipif mysql # not compatible
query I rowsort label-4280
SELECT + 38 * MAX ( ALL + 86 ) - - COUNT ( * )
----
3269

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT ALL COUNT( - 67 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4281
SELECT ALL COUNT ( - 67 ) AS col0
----
1

query I rowsort
SELECT + 77 * + - 13 AS col0
----
-1001

query I rowsort
SELECT - 47 * 98
----
-4606

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT DISTINCT COUNT( + 79 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-4284
SELECT DISTINCT COUNT ( + 79 ) col1
----
1

query II rowsort
SELECT - 67, + 66 col2
----
-67
66

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4287
SELECT - 51 col1, - COUNT( * ) AS col0
----
-51
-1

skipif mysql # not compatible
query II rowsort label-4287
SELECT - 51 col1, - COUNT ( * ) AS col0
----
-51
-1

query I rowsort
SELECT + + 32 * - - 69 AS col2
----
2208

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT - MAX( ALL + 21 ) + + ( - + 82 )
----
-103

skipif mysql # not compatible
query I rowsort label-4289
SELECT - MAX ( ALL + 21 ) + + ( - + 82 )
----
-103

query I rowsort
SELECT ALL + - 45 * 60
----
-2700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4291
SELECT + CAST( - + COUNT( * ) AS SIGNED ) * + COALESCE ( - 16, + + 46 )
----
16

skipif mysql # not compatible
query I rowsort label-4291
SELECT + CAST ( - + COUNT ( * ) AS INTEGER ) * + COALESCE ( - 16, + + 46 )
----
16

query I rowsort
SELECT DISTINCT - 7 + + + 11
----
4

query I rowsort
SELECT + + 80 + 42 AS col0
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT DISTINCT + COUNT( + 38 )
----
1

skipif mysql # not compatible
query I rowsort label-4294
SELECT DISTINCT + COUNT ( + 38 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT DISTINCT + SUM( + 7 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-4295
SELECT DISTINCT + SUM ( + 7 ) AS col0
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-4296
SELECT - 98 * 83 * 94 + + + 1 + 35 - + ( + 33 ) + - 75 DIV - 9 AS col0
----
-764585

skipif mysql # not compatible
query I rowsort label-4296
SELECT - 98 * 83 * 94 + + + 1 + 35 - + ( + 33 ) + - 75 / - 9 AS col0
----
-764585

query I rowsort
SELECT - 68 + 55 + 90 AS col2
----
77

query II rowsort
SELECT ( - 2 ) AS col2, 58 AS col0
----
-2
58

query I rowsort
SELECT ( - + 69 ) AS col0
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4300
SELECT DISTINCT COUNT( ALL 68 ) * + 32 DIV 74
----
0

skipif mysql # not compatible
query I rowsort label-4300
SELECT DISTINCT COUNT ( ALL 68 ) * + 32 / 74
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT + 14 + SUM( ALL - 37 ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-4301
SELECT + 14 + SUM ( ALL - 37 ) AS col2
----
-23

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

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

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

query I rowsort
SELECT + 90 + + 68 * 2
----
226

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4305
SELECT CASE - 41 WHEN + 96 THEN + 78 * - + 74 - 51 - + - 81 WHEN + 13 - CAST( 88 AS DECIMAL ) THEN ( - + 0 ) * 9 + + + MIN( 93 ) ELSE + 15 END AS col0
----
15

skipif mysql # not compatible
query I rowsort label-4305
SELECT CASE - 41 WHEN + 96 THEN + 78 * - + 74 - 51 - + - 81 WHEN + 13 - CAST ( 88 AS REAL ) THEN ( - + 0 ) * 9 + + + MIN ( 93 ) ELSE + 15 END AS col0
----
15

query I rowsort
SELECT + 19 + - 90 - + 24
----
-95

query II rowsort
SELECT + 78 * 51 AS col0, + 79
----
3978
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4308
SELECT DISTINCT 59 * - + COUNT( * ) * 80 - - MAX( ALL + 52 ) + + 62 AS col2
----
-4606

skipif mysql # not compatible
query I rowsort label-4308
SELECT DISTINCT 59 * - + COUNT ( * ) * 80 - - MAX ( ALL + 52 ) + + 62 AS col2
----
-4606

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT + COUNT( * ) * - 0 col2
----
0

skipif mysql # not compatible
query I rowsort label-4310
SELECT + COUNT ( * ) * - 0 col2
----
0

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

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

query I rowsort
SELECT ALL + 34 * + 86 * 54 col0
----
157896

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4313
SELECT DISTINCT CAST( + - 42 AS SIGNED ) DIV + 85
----
0

skipif mysql # not compatible
query I rowsort label-4313
SELECT DISTINCT CAST ( + - 42 AS INTEGER ) / + 85
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4314
SELECT + 14 * + ( + + CASE - 32 WHEN CAST( NULL AS SIGNED ) THEN + 89 * - + 90 + - ( + COALESCE ( 60, - MAX( 95 ) ) ) * COUNT( * ) WHEN 51 + CASE + 36 + - 50 WHEN 78 THEN - 51 END THEN - 85 ELSE - 67 + + 82 END ) + - COUNT( * )
----
209

skipif mysql # not compatible
query I rowsort label-4314
SELECT + 14 * + ( + + CASE - 32 WHEN CAST ( NULL AS INTEGER ) THEN + 89 * - + 90 + - ( + COALESCE ( 60, - MAX ( 95 ) ) ) * COUNT ( * ) WHEN 51 + CASE + 36 + - 50 WHEN 78 THEN - 51 END THEN - 85 ELSE - 67 + + 82 END ) + - COUNT ( * )
----
209

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT ALL - - 18 + - - NULLIF ( - 95, + + ( + 36 ) * + - COUNT( + 84 ) + - 20 ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-4315
SELECT ALL - - 18 + - - NULLIF ( - 95, + + ( + 36 ) * + - COUNT ( + 84 ) + - 20 ) AS col1
----
-77

query II rowsort
SELECT DISTINCT - ( 34 ) AS col1, - ( + 91 )
----
-34
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4317
SELECT - COUNT( * ) + 22 AS col2, 25 * + 21 + - + 52, - 48 * + + CAST( NULL AS SIGNED ) * + 95 * SUM( DISTINCT - 49 ) * 97 - - COUNT( * ) * - CAST( NULL AS SIGNED ) AS col1
----
21
473
NULL

skipif mysql # not compatible
query III rowsort label-4317
SELECT - COUNT ( * ) + 22 AS col2, 25 * + 21 + - + 52, - 48 * + + CAST ( NULL AS INTEGER ) * + 95 * SUM ( DISTINCT - 49 ) * 97 - - COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col1
----
21
473
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4318
SELECT - ( - + 39 ) * + COUNT( * ) * + - 53 - + + 4 DIV + - 88 * 80
----
-2067

skipif mysql # not compatible
query I rowsort label-4318
SELECT - ( - + 39 ) * + COUNT ( * ) * + - 53 - + + 4 / + - 88 * 80
----
-2067

query I rowsort
SELECT - + 70 + - ( + 61 ) + - + 62
----
-193

onlyif mysql # DIV for integer division: 
query I rowsort label-4320
SELECT DISTINCT + 48 + + - 4 DIV + 55
----
48

skipif mysql # not compatible
query I rowsort label-4320
SELECT DISTINCT + 48 + + - 4 / + 55
----
48

query I rowsort
SELECT ALL - - 30 + + 83 AS col2
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT - + MAX( ALL - 94 ) + - 12 * + 89 + + + 70 + - COALESCE ( 70, COUNT( * ) ) + - + 7 + + 84 - + - ( - 7 ) * + COUNT( * ) * - 34 + + 7
----
-652

skipif mysql # not compatible
query I rowsort label-4322
SELECT - + MAX ( ALL - 94 ) + - 12 * + 89 + + + 70 + - COALESCE ( 70, COUNT ( * ) ) + - + 7 + + 84 - + - ( - 7 ) * + COUNT ( * ) * - 34 + + 7
----
-652

query I rowsort
SELECT ALL + 98 * + 80
----
7840

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT DISTINCT + + ( - 42 ) + + MAX( + 14 ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-4324
SELECT DISTINCT + + ( - 42 ) + + MAX ( + 14 ) AS col1
----
-28

query I rowsort
SELECT ALL - 65 * - + 57 AS col2
----
3705

query I rowsort
SELECT ALL + 54 + 27 AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4327
SELECT - 56 * COUNT( 20 ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-4327
SELECT - 56 * COUNT ( 20 ) AS col2
----
-56

query I rowsort
SELECT - 26 * + 7 col2
----
-182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4329
SELECT DISTINCT + 4 * + ( + 28 ) * + - CAST( + + COALESCE ( - COUNT( * ), - + COUNT( * ) + + + ( - 33 ) ) AS SIGNED ) * + 89 + - 70 AS col2
----
9898

skipif mysql # not compatible
query I rowsort label-4329
SELECT DISTINCT + 4 * + ( + 28 ) * + - CAST ( + + COALESCE ( - COUNT ( * ), - + COUNT ( * ) + + + ( - 33 ) ) AS INTEGER ) * + 89 + - 70 AS col2
----
9898

onlyif mysql # aggregate syntax: 
query I rowsort label-4330
SELECT ALL COUNT( * ) - 47
----
-46

skipif mysql # not compatible
query I rowsort label-4330
SELECT ALL COUNT ( * ) - 47
----
-46

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4332
SELECT NULLIF ( + 73, 52 * - 82 ) DIV - 73 + + 2 * + 23 + + + 40 * + 62 col1
----
2525

skipif mysql # not compatible
query I rowsort label-4332
SELECT NULLIF ( + 73, 52 * - 82 ) / - 73 + + 2 * + 23 + + + 40 * + 62 col1
----
2525

onlyif mysql # aggregate syntax: 
query II rowsort label-4333
SELECT - 24 * + 78 + - 71 AS col1, + 38 - - - 77 + - 70 + - 99 + - + 91 * + + COUNT( * ) + - + 34
----
-1943
-333

skipif mysql # not compatible
query II rowsort label-4333
SELECT - 24 * + 78 + - 71 AS col1, + 38 - - - 77 + - 70 + - 99 + - + 91 * + + COUNT ( * ) + - + 34
----
-1943
-333

query I rowsort
SELECT DISTINCT 60 * - 66
----
-3960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4335
SELECT - 30 * + 94 DIV + + COUNT( * ) + + 60
----
-2760

skipif mysql # not compatible
query I rowsort label-4335
SELECT - 30 * + 94 / + + COUNT ( * ) + + 60
----
-2760

onlyif mysql # aggregate syntax: 
query I rowsort label-4336
SELECT CASE + 79 WHEN COUNT( * ) THEN - 9 * - 86 WHEN - AVG ( + - 79 ) - ( 9 ) THEN NULL END * - 59 * 88 + - - COUNT( * ) + - + 29 + + + 24 + - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-4336
SELECT CASE + 79 WHEN COUNT ( * ) THEN - 9 * - 86 WHEN - AVG ( + - 79 ) - ( 9 ) THEN NULL END * - 59 * 88 + - - COUNT ( * ) + - + 29 + + + 24 + - 93
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT CASE + 66 WHEN ( CASE + 17 WHEN - COUNT( * ) THEN NULL WHEN + 64 * + - 75 * - 61 THEN - 47 END ) * - 24 THEN - - ( + 40 ) ELSE + 74 * + NULLIF ( 17, 7 + + 7 ) + 62 * + CASE + 57 * 5 WHEN + 3 + 2 THEN + COUNT( * ) END END + 39 * 38
----
NULL

skipif mysql # not compatible
query I rowsort label-4338
SELECT CASE + 66 WHEN ( CASE + 17 WHEN - COUNT ( * ) THEN NULL WHEN + 64 * + - 75 * - 61 THEN - 47 END ) * - 24 THEN - - ( + 40 ) ELSE + 74 * + NULLIF ( 17, 7 + + 7 ) + 62 * + CASE + 57 * 5 WHEN + 3 + 2 THEN + COUNT ( * ) END END + 39 * 38
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4339
SELECT ALL 18 * + 41 * - SUM( + 99 ) * - 81 AS col0, + MIN( ALL 40 )
----
5918022
40

skipif mysql # not compatible
query II rowsort label-4339
SELECT ALL 18 * + 41 * - SUM ( + 99 ) * - 81 AS col0, + MIN ( ALL 40 )
----
5918022
40

query II rowsort
SELECT 64 AS col0, - 87 AS col1
----
64
-87

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

skipif mysql # not compatible
query I rowsort label-4341
SELECT ALL + 75 * + - COUNT ( * ) AS col0
----
-75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4342
SELECT 75 - - - CAST( NULL AS SIGNED ) + + 44 AS col0, - 93 DIV - + ( - + 48 )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-4342
SELECT 75 - - - CAST ( NULL AS INTEGER ) + + 44 AS col0, - 93 / - + ( - + 48 )
----
NULL
-1

query I rowsort
SELECT DISTINCT 65 * + 54 AS col1
----
3510

query I rowsort
SELECT ALL 24 + + 97
----
121

query II rowsort
SELECT ALL - 17, COALESCE ( - + 1, - 85 ) * 41 AS col0
----
-17
-41

query I rowsort
SELECT - 71 * + 97
----
-6887

query I rowsort
SELECT 48 * + 4 + - 66 AS col1
----
126

query I rowsort
SELECT - - ( + 6 )
----
6

onlyif mysql # DIV for integer division: 
query II rowsort label-4349
SELECT 41, 22 DIV + 34 col0
----
41
0

skipif mysql # not compatible
query II rowsort label-4349
SELECT 41, 22 / + 34 col0
----
41
0

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

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

query I rowsort
SELECT ALL + ( - 22 ) + 71
----
49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4352
SELECT ALL - 49 DIV - CAST( - 34 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-4352
SELECT ALL - 49 / - CAST ( - 34 AS INTEGER )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4353
SELECT 63 DIV - + 18
----
-3

skipif mysql # not compatible
query I rowsort label-4353
SELECT 63 / - + 18
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT DISTINCT - + 77 * + 3 * 59 * + - ( - + 12 ) * - + COUNT( * ) + - CASE + NULLIF ( - AVG ( DISTINCT 19 ), 88 + + + 26 ) WHEN + ( + 7 ) + + 58 * - 4 THEN + 77 * - 64 WHEN COUNT( * ) THEN NULL ELSE NULL END + 79 + 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4354
SELECT DISTINCT - + 77 * + 3 * 59 * + - ( - + 12 ) * - + COUNT ( * ) + - CASE + NULLIF ( - AVG ( DISTINCT 19 ), 88 + + + 26 ) WHEN + ( + 7 ) + + 58 * - 4 THEN + 77 * - 64 WHEN COUNT ( * ) THEN NULL ELSE NULL END + 79 + 71 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4355
SELECT ALL + 69 * + 88 + - + 43 * - - CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4355
SELECT ALL + 69 * + 88 + - + 43 * - - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 88 * - 95 * + 84
----
702240

onlyif mysql # aggregate syntax: 
query I rowsort label-4357
SELECT NULLIF ( COUNT( + 25 ), - + 42 * + + 4 * + - ( - 31 ) ) + ( + 73 ) * - + COUNT( * ) + + - 18 AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-4357
SELECT NULLIF ( COUNT ( + 25 ), - + 42 * + + 4 * + - ( - 31 ) ) + ( + 73 ) * - + COUNT ( * ) + + - 18 AS col0
----
-90

query I rowsort
SELECT ALL NULLIF ( + 11, 42 ) AS col0
----
11

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4360
SELECT ( CAST( NULL AS DECIMAL ) ) + + ( - 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4360
SELECT ( CAST ( NULL AS REAL ) ) + + ( - 88 )
----
NULL

query I rowsort
SELECT + ( 23 ) AS col0
----
23

onlyif mysql # aggregate syntax: 
query III rowsort label-4362
SELECT + MIN( + ( - + 55 ) ) + + 33 + + 83 AS col0, COALESCE ( + COUNT( * ), 48, 66 * 14 ) * + 27, - - COUNT( * ) - - 64 * - MAX( DISTINCT - 80 ) AS col2
----
61
27
5121

skipif mysql # not compatible
query III rowsort label-4362
SELECT + MIN ( + ( - + 55 ) ) + + 33 + + 83 AS col0, COALESCE ( + COUNT ( * ), 48, 66 * 14 ) * + 27, - - COUNT ( * ) - - 64 * - MAX ( DISTINCT - 80 ) AS col2
----
61
27
5121

query II rowsort
SELECT ALL 83 AS col2, 39
----
83
39

query I rowsort
SELECT 31 + 0 AS col1
----
31

query II rowsort
SELECT ALL 85 AS col0, - ( - 73 )
----
85
73

query I rowsort
SELECT 41 + 4 col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT ALL + 51 * 31 * COUNT( * )
----
1581

skipif mysql # not compatible
query I rowsort label-4367
SELECT ALL + 51 * 31 * COUNT ( * )
----
1581

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4368
SELECT ALL - ( NULLIF ( + 10, - + CASE MAX( + + NULLIF ( + 3, - 90 + 90 * - 91 ) ) WHEN - CASE - COUNT( COALESCE ( - NULLIF ( - 71, + ( NULLIF ( 23, CAST( 26 AS SIGNED ) ) ) * - 31 ), - 96 ) ) WHEN 29 THEN - 24 * + COUNT( * ) ELSE - COUNT( * ) END + + 22 THEN NULL WHEN 1 + - 80 THEN - 79 END ) )
----
-10

skipif mysql # not compatible
query I rowsort label-4368
SELECT ALL - ( NULLIF ( + 10, - + CASE MAX ( + + NULLIF ( + 3, - 90 + 90 * - 91 ) ) WHEN - CASE - COUNT ( COALESCE ( - NULLIF ( - 71, + ( NULLIF ( 23, CAST ( 26 AS INTEGER ) ) ) * - 31 ), - 96 ) ) WHEN 29 THEN - 24 * + COUNT ( * ) ELSE - COUNT ( * ) END + + 22 THEN NULL WHEN 1 + - 80 THEN - 79 END ) )
----
-10

query II rowsort
SELECT + 51 AS col1, 16
----
51
16

onlyif mysql # DIV for integer division: 
query II rowsort label-4370
SELECT CASE - 52 WHEN - 45 THEN NULL ELSE - 7 END DIV + 89 - - 61 col2, - 77
----
61
-77

skipif mysql # not compatible
query II rowsort label-4370
SELECT CASE - 52 WHEN - 45 THEN NULL ELSE - 7 END / + 89 - - 61 col2, - 77
----
61
-77

query I rowsort
SELECT 46 * - 65 AS col0
----
-2990

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4372
SELECT 82 * + 89 * + 4 * - CAST( NULL AS DECIMAL ) AS col0, 12 AS col1
----
NULL
12

skipif mysql # not compatible
query II rowsort label-4372
SELECT 82 * + 89 * + 4 * - CAST ( NULL AS REAL ) AS col0, 12 AS col1
----
NULL
12

query II rowsort
SELECT + 61 AS col0, + 89 * + - 40
----
61
-3560

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4375
SELECT DISTINCT - 33 AS col1, 14 / + - 76 * + CAST( NULL AS SIGNED )
----
-33
NULL

skipif mysql # not compatible
query II rowsort label-4375
SELECT DISTINCT - 33 AS col1, 14 / + - 76 * + CAST ( NULL AS INTEGER )
----
-33
NULL

query I rowsort
SELECT ALL + 71 + 0 AS col2
----
71

query I rowsort
SELECT 71 * + - 53 + + 64 + - + 89 * + 17 - 66 + + ( - 32 ) AS col1
----
-5310

onlyif mysql # aggregate syntax: 
query II rowsort label-4378
SELECT + + 76 AS col2, 36 * 92 - + 14 * - COUNT( * )
----
76
3326

skipif mysql # not compatible
query II rowsort label-4378
SELECT + + 76 AS col2, 36 * 92 - + 14 * - COUNT ( * )
----
76
3326

query I rowsort
SELECT ALL + 14 + 60
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4380
SELECT ALL 61 + - 49 + CAST( - - AVG ( ALL - 2 ) AS SIGNED ) * - 37 AS col2, CASE + 30 WHEN + 8 THEN NULL ELSE + 82 END * 20 DIV - 81 - 57 + + ( COUNT( * ) ) AS col0
----
86
-76

skipif mysql # not compatible
query II rowsort label-4380
SELECT ALL 61 + - 49 + CAST ( - - AVG ( ALL - 2 ) AS INTEGER ) * - 37 AS col2, CASE + 30 WHEN + 8 THEN NULL ELSE + 82 END * 20 / - 81 - 57 + + ( COUNT ( * ) ) AS col0
----
86
-76

query I rowsort
SELECT DISTINCT - 20 + 5 AS col1
----
-15

query I rowsort
SELECT + ( 77 ) * + ( + 21 ) + 19 * + 17 * 14 + 10
----
6149

query I rowsort
SELECT + 85 + + 13 AS col2
----
98

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT MIN( + - 52 )
----
-52

skipif mysql # not compatible
query I rowsort label-4385
SELECT MIN ( + - 52 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT - COUNT( * ) + 70 * 84
----
5879

skipif mysql # not compatible
query I rowsort label-4386
SELECT - COUNT ( * ) + 70 * 84
----
5879

query I rowsort
SELECT ALL ( - 12 ) - 86 AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT DISTINCT - MAX( + 64 ) col2
----
-64

skipif mysql # not compatible
query I rowsort label-4388
SELECT DISTINCT - MAX ( + 64 ) col2
----
-64

query II rowsort
SELECT ALL 11 AS col2, - ( + 25 ) AS col1
----
11
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-4390
SELECT + 74 DIV + 86 * - - 52 * - + 22
----
0

skipif mysql # not compatible
query I rowsort label-4390
SELECT + 74 / + 86 * - - 52 * - + 22
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4391
SELECT DISTINCT + 55 * - ( - CASE - COALESCE ( + - ( + 76 ), CAST( + 72 AS SIGNED ) * MIN( - 50 ) * - + 23 / + - 87, 65 ) WHEN - 33 - + COUNT( DISTINCT + 44 ) + 39 * + 94 * + 70 THEN + 16 * 14 WHEN MIN( DISTINCT - 20 ) THEN 52 * + 81 ELSE + 79 END )
----
4345

skipif mysql # not compatible
query I rowsort label-4391
SELECT DISTINCT + 55 * - ( - CASE - COALESCE ( + - ( + 76 ), CAST ( + 72 AS INTEGER ) * MIN ( - 50 ) * - + 23 / + - 87, 65 ) WHEN - 33 - + COUNT ( DISTINCT + 44 ) + 39 * + 94 * + 70 THEN + 16 * 14 WHEN MIN ( DISTINCT - 20 ) THEN 52 * + 81 ELSE + 79 END )
----
4345

onlyif mysql # DIV for integer division: 
query I rowsort label-4392
SELECT DISTINCT 62 DIV + 49 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4392
SELECT DISTINCT 62 / + 49 AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4393
SELECT - 8 DIV + + 19
----
0

skipif mysql # not compatible
query I rowsort label-4393
SELECT - 8 / + + 19
----
0

query I rowsort
SELECT ALL 90 * - + ( 35 ) AS col1
----
-3150

query I rowsort
SELECT + NULLIF ( + - 19, - - 8 ) AS col2
----
-19

query I rowsort
SELECT ALL 54 * - - ( + 47 ) * - 81 + - + 55
----
-205633

query I rowsort
SELECT ALL - 68 * + 8 + 77 + - - 41
----
-426

query I rowsort
SELECT COALESCE ( - 30, - 42 )
----
-30

query I rowsort
SELECT ALL + NULLIF ( + 75, + 48 ) col2
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4400
SELECT DISTINCT - 97 * NULLIF ( + + CAST( NULL AS SIGNED ), - 89 ) + + 29 * + 25 - - + ( - - 30 ) AS col0, 85
----
NULL
85

skipif mysql # not compatible
query II rowsort label-4400
SELECT DISTINCT - 97 * NULLIF ( + + CAST ( NULL AS INTEGER ), - 89 ) + + 29 * + 25 - - + ( - - 30 ) AS col0, 85
----
NULL
85

query I rowsort
SELECT NULLIF ( + 36, + 14 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT ALL - 12 * COUNT( * ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-4402
SELECT ALL - 12 * COUNT ( * ) AS col2
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4403
SELECT - 82 / - 8 * - + MIN( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4403
SELECT - 82 / - 8 * - + MIN ( - - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4404
SELECT - 88 + + 29 + + - 72 + + 7 * - CAST( NULL AS SIGNED ) - - COUNT( * ) / 59
----
NULL

skipif mysql # not compatible
query I rowsort label-4404
SELECT - 88 + + 29 + + - 72 + + 7 * - CAST ( NULL AS INTEGER ) - - COUNT ( * ) / 59
----
NULL

query I rowsort
SELECT - 76 + + ( + 52 )
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4406
SELECT ALL + CASE 11 WHEN - 78 DIV 64 + + - MAX( ALL - + 81 ) THEN NULL WHEN - 3 * 76 THEN NULL ELSE - 9 DIV + + 94 END * + 79 + ( - - 4 ) + + - 41 col2
----
-37

skipif mysql # not compatible
query I rowsort label-4406
SELECT ALL + CASE 11 WHEN - 78 / 64 + + - MAX ( ALL - + 81 ) THEN NULL WHEN - 3 * 76 THEN NULL ELSE - 9 / + + 94 END * + 79 + ( - - 4 ) + + - 41 col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT ALL - ( - COALESCE ( - 83, + 25 + - 43, - + CASE WHEN - 46 IS NOT NULL THEN NULL WHEN NOT NULL NOT BETWEEN - COALESCE ( - 94, - - 41 ) * - ( + 31 ) * COUNT( ALL + COALESCE ( 40, + 7 / 37 ) ) * + ( 80 ) + + 23 AND ( ( 94 ) * - MIN( ALL + ( - 57 ) ) + + COUNT( * ) ) THEN 12 ELSE COUNT( DISTINCT 73 ) * 17 END ) ) * - COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-4407
SELECT ALL - ( - COALESCE ( - 83, + 25 + - 43, - + CASE WHEN - 46 IS NOT NULL THEN NULL WHEN NOT NULL NOT BETWEEN - COALESCE ( - 94, - - 41 ) * - ( + 31 ) * COUNT ( ALL + COALESCE ( 40, + 7 / 37 ) ) * + ( 80 ) + + 23 AND ( ( 94 ) * - MIN ( ALL + ( - 57 ) ) + + COUNT ( * ) ) THEN 12 ELSE COUNT ( DISTINCT 73 ) * 17 END ) ) * - COUNT ( * )
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-4408
SELECT DISTINCT + 1 * + + 16 + + - 67 - + - 41 * - + 88 + - 30 DIV + + 82 * + 71 * + + 38 AS col2
----
-3659

skipif mysql # not compatible
query I rowsort label-4408
SELECT DISTINCT + 1 * + + 16 + + - 67 - + - 41 * - + 88 + - 30 / + + 82 * + 71 * + + 38 AS col2
----
-3659

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

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

query I rowsort
SELECT ALL - - 89 * 97 * + 10 - - - 56
----
86274

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT DISTINCT ( MIN( + 70 ) )
----
70

skipif mysql # not compatible
query I rowsort label-4411
SELECT DISTINCT ( MIN ( + 70 ) )
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4412
SELECT + + CAST( + 75 AS SIGNED ) * - + 10 AS col2
----
-750

skipif mysql # not compatible
query I rowsort label-4412
SELECT + + CAST ( + 75 AS INTEGER ) * - + 10 AS col2
----
-750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4413
SELECT ALL 75 * - + 61 + + 9 + SUM( - 72 ) + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4413
SELECT ALL 75 * - + 61 + + 9 + SUM ( - 72 ) + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4414
SELECT - + MAX( DISTINCT - + 1 ) - - COUNT( * ) * + 45 * + 36 + + 32
----
1653

skipif mysql # not compatible
query I rowsort label-4414
SELECT - + MAX ( DISTINCT - + 1 ) - - COUNT ( * ) * + 45 * + 36 + + 32
----
1653

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

skipif mysql # not compatible
query I rowsort label-4415
SELECT ALL - - 39 * + CAST ( NULL AS REAL ) * - 39
----
NULL

query I rowsort
SELECT - + ( + 37 )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT ALL MAX( - 85 ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-4417
SELECT ALL MAX ( - 85 ) AS col0
----
-85

query I rowsort
SELECT - 61 * + 1 AS col1
----
-61

query I rowsort
SELECT - 79 + + 91 AS col1
----
12

query I rowsort
SELECT + 85 - - ( ( - 90 ) )
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4421
SELECT + MIN( + 22 ) + - ( - 72 ) + 65 DIV 24 DIV + + 22 + + 31 * + - 7 + 40 AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-4421
SELECT + MIN ( + 22 ) + - ( - 72 ) + 65 / 24 / + + 22 + + 31 * + - 7 + 40 AS col0
----
-83

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4423
SELECT ALL 43 DIV + 46 col2
----
0

skipif mysql # not compatible
query I rowsort label-4423
SELECT ALL 43 / + 46 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4424
SELECT - COALESCE ( + 0, + + COUNT( - 7 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4424
SELECT - COALESCE ( + 0, + + COUNT ( - 7 ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4425
SELECT ALL 13 + - COUNT( * ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-4425
SELECT ALL 13 + - COUNT ( * ) AS col0
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4426
SELECT ALL CAST( COUNT( * ) AS SIGNED ) DIV - 6 + + + ( - 87 ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-4426
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) / - 6 + + + ( - 87 ) AS col2
----
-87

query I rowsort
SELECT + COALESCE ( + - 24, 27 ) + + 95 AS col2
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-4428
SELECT ALL 80 DIV - 4 + + + 11
----
-9

skipif mysql # not compatible
query I rowsort label-4428
SELECT ALL 80 / - 4 + + + 11
----
-9

query I rowsort
SELECT ( + - 33 ) * + 85 * + 7 + - 3 + + 3 AS col0
----
-19635

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4430
SELECT + COALESCE ( + COUNT( * ), 83 + + 85 + + + CAST( NULL AS SIGNED ) - COALESCE ( + 30, ( - 55 ), - 13 DIV - COALESCE ( - 81, 99 + + - 72 DIV 28 * - CAST( NULL AS SIGNED ) * + NULLIF ( + + 49, CASE 82 WHEN 82 THEN - ( - 94 ) WHEN - NULLIF ( - 38, - 43 DIV 25 ) THEN NULL ELSE NULL END ) + 21, 35 ) * 12 + + CASE 69 WHEN COUNT( * ) THEN 74 WHEN - 92 THEN NULL END * - 31 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4430
SELECT + COALESCE ( + COUNT ( * ), 83 + + 85 + + + CAST ( NULL AS INTEGER ) - COALESCE ( + 30, ( - 55 ), - 13 / - COALESCE ( - 81, 99 + + - 72 / 28 * - CAST ( NULL AS INTEGER ) * + NULLIF ( + + 49, CASE 82 WHEN 82 THEN - ( - 94 ) WHEN - NULLIF ( - 38, - 43 / 25 ) THEN NULL ELSE NULL END ) + 21, 35 ) * 12 + + CASE 69 WHEN COUNT ( * ) THEN 74 WHEN - 92 THEN NULL END * - 31 ) )
----
1

query I rowsort
SELECT + ( - + 22 ) AS col0
----
-22

query I rowsort
SELECT + 41 * - 67
----
-2747

query I rowsort
SELECT - 47 + + - 74 AS col0
----
-121

query I rowsort
SELECT - 23 + + 15
----
-8

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4436
SELECT ALL + + 1 AS col1, MIN( ALL ( - 13 ) )
----
1
-13

skipif mysql # not compatible
query II rowsort label-4436
SELECT ALL + + 1 AS col1, MIN ( ALL ( - 13 ) )
----
1
-13

query II rowsort
SELECT 4 AS col1, + 71 AS col0
----
4
71

query I rowsort
SELECT + - 81 * - 19 AS col0
----
1539

query I rowsort
SELECT - 54 * - + 48 AS col0
----
2592

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4440
SELECT ALL + - 24 col0, CASE - 73 WHEN + 23 THEN + 45 + 74 WHEN + ( COALESCE ( 93, + CAST( + 48 AS SIGNED ) + + COUNT( * ) + - + 57 ) ) * + - 6 THEN + - MIN( 95 ) ELSE + 2 END + - 53 + - 57 * + CAST( NULL AS SIGNED ) AS col2
----
-24
NULL

skipif mysql # not compatible
query II rowsort label-4440
SELECT ALL + - 24 col0, CASE - 73 WHEN + 23 THEN + 45 + 74 WHEN + ( COALESCE ( 93, + CAST ( + 48 AS INTEGER ) + + COUNT ( * ) + - + 57 ) ) * + - 6 THEN + - MIN ( 95 ) ELSE + 2 END + - 53 + - 57 * + CAST ( NULL AS INTEGER ) AS col2
----
-24
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4441
SELECT - ( + + CAST( + COUNT( * ) AS SIGNED ) ) * - 24 * - 62 + COUNT( - + 55 )
----
-1487

skipif mysql # not compatible
query I rowsort label-4441
SELECT - ( + + CAST ( + COUNT ( * ) AS INTEGER ) ) * - 24 * - 62 + COUNT ( - + 55 )
----
-1487

query II rowsort
SELECT + 77 AS col0, 37 col1
----
77
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4443
SELECT 90 * - - CAST( NULL AS SIGNED ) + + NULLIF ( - - 60, - CAST( - 8 AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4443
SELECT 90 * - - CAST ( NULL AS INTEGER ) + + NULLIF ( - - 60, - CAST ( - 8 AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT 38 - - 32 * + + 34 * + - 3
----
-3226

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT DISTINCT - SUM( - 77 ) - + + COUNT( * ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-4445
SELECT DISTINCT - SUM ( - 77 ) - + + COUNT ( * ) AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT COUNT( * ) * NULLIF ( - 2, - - 35 - - 58 + + 56 * - 49 + + 2 - - - SUM( DISTINCT 20 ) * - - 70 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4446
SELECT COUNT ( * ) * NULLIF ( - 2, - - 35 - - 58 + + 56 * - 49 + + 2 - - - SUM ( DISTINCT 20 ) * - - 70 ) AS col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4447
SELECT + + CASE - 98 WHEN + 54 * 18 THEN NULL WHEN 9 * - 17 * + + CAST( NULL AS SIGNED ) THEN - 84 ELSE + CAST( - + 26 AS SIGNED ) - COUNT( * ) END AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-4447
SELECT + + CASE - 98 WHEN + 54 * 18 THEN NULL WHEN 9 * - 17 * + + CAST ( NULL AS INTEGER ) THEN - 84 ELSE + CAST ( - + 26 AS INTEGER ) - COUNT ( * ) END AS col0
----
-27

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4448
SELECT DISTINCT - 59 col0, ( CAST( NULL AS DECIMAL ) )
----
-59
NULL

skipif mysql # not compatible
query II rowsort label-4448
SELECT DISTINCT - 59 col0, ( CAST ( NULL AS REAL ) )
----
-59
NULL

query I rowsort
SELECT DISTINCT + 77 * + 71
----
5467

query II rowsort
SELECT DISTINCT 56 AS col2, - 56 AS col1
----
56
-56

query II rowsort
SELECT ALL 84, + 39 - - 87 + - 74 AS col0
----
84
52

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4452
SELECT + ( - 47 ) + - COUNT( * ) AS col1, - CAST( NULL AS DECIMAL ) AS col2
----
-48
NULL

skipif mysql # not compatible
query II rowsort label-4452
SELECT + ( - 47 ) + - COUNT ( * ) AS col1, - CAST ( NULL AS REAL ) AS col2
----
-48
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT COUNT( - 64 ) + - 42 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-4454
SELECT COUNT ( - 64 ) + - 42 AS col2
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4455
SELECT 69 * - 87 AS col0, COALESCE ( - 67, 64 DIV 49 * - + COUNT( * ) )
----
-6003
-67

skipif mysql # not compatible
query II rowsort label-4455
SELECT 69 * - 87 AS col0, COALESCE ( - 67, 64 / 49 * - + COUNT ( * ) )
----
-6003
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4456
SELECT DISTINCT + 1 + + + CAST( - 97 AS SIGNED ) DIV + + NULLIF ( - 12, + - MIN( ALL + 51 ) - 86 ) + - ( 87 ) col0, - MIN( - ( + 72 ) ) + - 81
----
-78
-9

skipif mysql # not compatible
query II rowsort label-4456
SELECT DISTINCT + 1 + + + CAST ( - 97 AS INTEGER ) / + + NULLIF ( - 12, + - MIN ( ALL + 51 ) - 86 ) + - ( 87 ) col0, - MIN ( - ( + 72 ) ) + - 81
----
-78
-9

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

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

query I rowsort
SELECT DISTINCT 2 * 81 * - + 84
----
-13608

query I rowsort
SELECT DISTINCT 61 + + 2
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4460
SELECT DISTINCT + CAST( NULL AS SIGNED ) + CASE - 21 WHEN + MIN( DISTINCT 20 ) THEN - 75 * + 68 + 98 + + 83 WHEN - COUNT( * ) * - - 56 THEN NULL END - + 12 + 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4460
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + CASE - 21 WHEN + MIN ( DISTINCT 20 ) THEN - 75 * + 68 + 98 + + 83 WHEN - COUNT ( * ) * - - 56 THEN NULL END - + 12 + 60 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT DISTINCT 54 + - - MIN( ALL + 92 )
----
146

skipif mysql # not compatible
query I rowsort label-4461
SELECT DISTINCT 54 + - - MIN ( ALL + 92 )
----
146

onlyif mysql # aggregate syntax: 
query II rowsort label-4462
SELECT DISTINCT + 30 * + COUNT( * ) col0, 51 + + + 86
----
30
137

skipif mysql # not compatible
query II rowsort label-4462
SELECT DISTINCT + 30 * + COUNT ( * ) col0, 51 + + + 86
----
30
137

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT SUM( ALL - 42 ) * + 59
----
-2478

skipif mysql # not compatible
query I rowsort label-4463
SELECT SUM ( ALL - 42 ) * + 59
----
-2478

onlyif mysql # DIV for integer division: 
query I rowsort label-4464
SELECT 56 - - 28 DIV - 58 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-4464
SELECT 56 - - 28 / - 58 AS col2
----
56

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

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

query I rowsort
SELECT ALL 60 + + ( 87 )
----
147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4467
SELECT DISTINCT CASE - 58 WHEN - 2 THEN NULL WHEN - COUNT( * ) THEN NULL WHEN + 19 / + CAST( - 32 AS SIGNED ) THEN + 8 * - 7 * + ( - 98 ) WHEN + 94 * 97 + 53 THEN NULL ELSE NULL END / - COALESCE ( 0, + COALESCE ( - - 56, 17 + + 44, - CASE ( + CASE - 32 WHEN - 69 THEN + 99 END ) WHEN ( 63 ) * + 62 THEN COUNT( ALL - 42 ) * 62 ELSE NULL END + - 58 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4467
SELECT DISTINCT CASE - 58 WHEN - 2 THEN NULL WHEN - COUNT ( * ) THEN NULL WHEN + 19 / + CAST ( - 32 AS INTEGER ) THEN + 8 * - 7 * + ( - 98 ) WHEN + 94 * 97 + 53 THEN NULL ELSE NULL END / - COALESCE ( 0, + COALESCE ( - - 56, 17 + + 44, - CASE ( + CASE - 32 WHEN - 69 THEN + 99 END ) WHEN ( 63 ) * + 62 THEN COUNT ( ALL - 42 ) * 62 ELSE NULL END + - 58 ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 40 - 21 AS col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT 38 + + MIN( ALL - 66 ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-4469
SELECT 38 + + MIN ( ALL - 66 ) AS col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT + 16 * + + ( + 44 ) + + 24 + - COUNT( * ) * + 8
----
720

skipif mysql # not compatible
query I rowsort label-4470
SELECT + 16 * + + ( + 44 ) + + 24 + - COUNT ( * ) * + 8
----
720

onlyif mysql # DIV for integer division: 
query II rowsort label-4471
SELECT DISTINCT - 33 DIV - 95 AS col2, 87
----
0
87

skipif mysql # not compatible
query II rowsort label-4471
SELECT DISTINCT - 33 / - 95 AS col2, 87
----
0
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4472
SELECT 87 DIV - - 76 DIV - - CAST( - + COUNT( * ) AS SIGNED ) + + 51 - - COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-4472
SELECT 87 / - - 76 / - - CAST ( - + COUNT ( * ) AS INTEGER ) + + 51 - - COUNT ( * )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT - COUNT( * ) * 40 + - 62
----
-102

skipif mysql # not compatible
query I rowsort label-4473
SELECT - COUNT ( * ) * 40 + - 62
----
-102

query I rowsort
SELECT ALL - 0 * - 46 * - 38
----
0

query I rowsort
SELECT ALL 12 * 4 AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT 36 * - - ( + 52 ) + 31 * MAX( ALL + 65 ) col0
----
3887

skipif mysql # not compatible
query I rowsort label-4476
SELECT 36 * - - ( + 52 ) + 31 * MAX ( ALL + 65 ) col0
----
3887

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT 76 * - NULLIF ( 70, 69 ) + + - 5 * + 74 * - 32 + - - 72 * + SUM( DISTINCT 38 ) * - ( 17 )
----
-39992

skipif mysql # not compatible
query I rowsort label-4477
SELECT 76 * - NULLIF ( 70, 69 ) + + - 5 * + 74 * - 32 + - - 72 * + SUM ( DISTINCT 38 ) * - ( 17 )
----
-39992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4478
SELECT SUM( DISTINCT - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4478
SELECT SUM ( DISTINCT - - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4479
SELECT DISTINCT + 8 * MAX( ( - - 70 ) ) col2, + 44
----
560
44

skipif mysql # not compatible
query II rowsort label-4479
SELECT DISTINCT + 8 * MAX ( ( - - 70 ) ) col2, + 44
----
560
44

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

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

query I rowsort
SELECT + 74 + + 39 AS col2
----
113

onlyif mysql # DIV for integer division: 
query I rowsort label-4482
SELECT DISTINCT 97 * 55 DIV + 79 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-4482
SELECT DISTINCT 97 * 55 / + 79 AS col0
----
67

query I rowsort
SELECT DISTINCT - COALESCE ( - 59, 79 * - 64, 4 )
----
59

query I rowsort
SELECT DISTINCT - - 80 AS col2
----
80

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

onlyif mysql # DIV for integer division: 
query II rowsort label-4486
SELECT ALL 24 + - + 73 + - - 82 DIV + 96 * - - 60 AS col0, 37 DIV + 50 * + + 73 AS col0
----
-49
0

skipif mysql # not compatible
query II rowsort label-4486
SELECT ALL 24 + - + 73 + - - 82 / + 96 * - - 60 AS col0, 37 / + 50 * + + 73 AS col0
----
-49
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4487
SELECT - + ( 4 ) * - 58 - - ( + SUM( 48 ) ) + - + 5 DIV + 87 * + 32 + 59 - + 81
----
258

skipif mysql # not compatible
query I rowsort label-4487
SELECT - + ( 4 ) * - 58 - - ( + SUM ( 48 ) ) + - + 5 / + 87 * + 32 + 59 - + 81
----
258

query I rowsort
SELECT + 7 - 26 + 97 * - 42 AS col0
----
-4093

query I rowsort
SELECT + 21 * + 92 + 87
----
2019

query I rowsort
SELECT ALL + 15 + + 48 * + - 49 AS col2
----
-2337

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4491
SELECT DISTINCT CAST( 54 AS SIGNED ) + - NULLIF ( ( - + 25 ), 71 + + SUM( ALL 55 ) )
----
79

skipif mysql # not compatible
query I rowsort label-4491
SELECT DISTINCT CAST ( 54 AS INTEGER ) + - NULLIF ( ( - + 25 ), 71 + + SUM ( ALL 55 ) )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT ALL + 88 + + COUNT( * ) - - + NULLIF ( + 40, COUNT( * ) - AVG ( - + 0 ) ) AS col2
----
129

skipif mysql # not compatible
query I rowsort label-4492
SELECT ALL + 88 + + COUNT ( * ) - - + NULLIF ( + 40, COUNT ( * ) - AVG ( - + 0 ) ) AS col2
----
129

query I rowsort
SELECT ALL 31 * + NULLIF ( + 86, + 57 ) AS col1
----
2666

query II rowsort
SELECT ALL 43, + 8 col2
----
43
8

query I rowsort
SELECT DISTINCT + 70 + - 26 AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4496
SELECT 85 / - CASE - 82 WHEN - 99 + 73 THEN - 36 WHEN + - 9 THEN NULL END * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4496
SELECT 85 / - CASE - 82 WHEN - 99 + 73 THEN - 36 WHEN + - 9 THEN NULL END * + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT ALL - 89 + CASE + MAX( ALL 46 ) WHEN - 23 THEN NULL WHEN + + 32 THEN - 18 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4497
SELECT ALL - 89 + CASE + MAX ( ALL 46 ) WHEN - 23 THEN NULL WHEN + + 32 THEN - 18 END AS col2
----
NULL

query I rowsort
SELECT 56 + - 92 * 28 AS col0
----
-2520

query I rowsort
SELECT 91 * - ( + 27 )
----
-2457

query I rowsort
SELECT ALL + 25 + + + 80 AS col2
----
105

query I rowsort
SELECT 65 + 15 * - 4
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-4502
SELECT 1 - - - 29 * ( - ( + 33 ) ), + COUNT( * ) AS col1
----
958
1

skipif mysql # not compatible
query II rowsort label-4502
SELECT 1 - - - 29 * ( - ( + 33 ) ), + COUNT ( * ) AS col1
----
958
1

query I rowsort
SELECT 75 + + 92 AS col2
----
167

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4504
SELECT 10 - - - 89 * + 53 + + 92 DIV - 99 * COUNT( * )
----
-4707

skipif mysql # not compatible
query I rowsort label-4504
SELECT 10 - - - 89 * + 53 + + 92 / - 99 * COUNT ( * )
----
-4707

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT DISTINCT MIN( - 62 ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-4505
SELECT DISTINCT MIN ( - 62 ) AS col2
----
-62

query I rowsort
SELECT 84 + - 15 + - 40 + + 8
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4507
SELECT DISTINCT + MAX( ALL - - 3 ) * 8
----
24

skipif mysql # not compatible
query I rowsort label-4507
SELECT DISTINCT + MAX ( ALL - - 3 ) * 8
----
24

query I rowsort
SELECT DISTINCT + 8 - - 42 AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT DISTINCT MAX( DISTINCT - NULLIF ( + - 62, - - 57 * - 53 + 22 ) )
----
62

skipif mysql # not compatible
query I rowsort label-4509
SELECT DISTINCT MAX ( DISTINCT - NULLIF ( + - 62, - - 57 * - 53 + 22 ) )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT COUNT( * ) + 38
----
39

skipif mysql # not compatible
query I rowsort label-4510
SELECT COUNT ( * ) + 38
----
39

query II rowsort
SELECT DISTINCT - 48 AS col2, - 86
----
-48
-86

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

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

query II rowsort
SELECT + + 55 AS col2, + 7
----
55
7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4514
SELECT CASE 23 WHEN - 11 * - CAST( NULL AS DECIMAL ) + - COUNT( * ) - - - 3 + + 6 THEN - 76 + 51 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4514
SELECT CASE 23 WHEN - 11 * - CAST ( NULL AS REAL ) + - COUNT ( * ) - - - 3 + + 6 THEN - 76 + 51 ELSE NULL END
----
NULL

query I rowsort
SELECT - - 48 * + 43 * 32
----
66048

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

skipif mysql # not compatible
query I rowsort label-4516
SELECT + 2 / - COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4517
SELECT + 16 * COUNT( * ) + + 46
----
62

skipif mysql # not compatible
query I rowsort label-4517
SELECT + 16 * COUNT ( * ) + + 46
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT DISTINCT + COUNT( ALL + 12 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4518
SELECT DISTINCT + COUNT ( ALL + 12 ) AS col1
----
1

query I rowsort
SELECT NULLIF ( + + 62, 52 ) AS col1
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-4520
SELECT + + 33 DIV ( + - 47 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4520
SELECT + + 33 / ( + - 47 ) AS col0
----
0

query I rowsort
SELECT ALL + 59 * + 97 + 88 * + 84 AS col2
----
13115

query I rowsort
SELECT - + 94 * + 60 + 86
----
-5554

query I rowsort
SELECT + 61 - 46
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4524
SELECT + + 72 + - CASE - 0 WHEN - - 23 THEN - 83 * - 50 * - + CAST( NULL AS SIGNED ) - - 93 * + 53 WHEN COUNT( + - ( - 88 ) ) THEN NULL ELSE NULL END * + 85 * 35 + - + ( - CAST( - 14 AS SIGNED ) ) / - 11 + - 25 - + 59 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4524
SELECT + + 72 + - CASE - 0 WHEN - - 23 THEN - 83 * - 50 * - + CAST ( NULL AS INTEGER ) - - 93 * + 53 WHEN COUNT ( + - ( - 88 ) ) THEN NULL ELSE NULL END * + 85 * 35 + - + ( - CAST ( - 14 AS INTEGER ) ) / - 11 + - 25 - + 59 AS col2
----
NULL

query I rowsort
SELECT ALL - 3 * - + 25
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT DISTINCT - 44 + + + 65 + - + COUNT( * ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-4526
SELECT DISTINCT - 44 + + + 65 + - + COUNT ( * ) AS col1
----
20

query I rowsort
SELECT ALL 20 + + CASE - 69 WHEN - + 56 THEN NULL WHEN + AVG ( + 92 ) THEN + 54 * 87 * + COALESCE ( + + 91, - - ( - 59 ) ) - - 62 WHEN - - 51 THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4528
SELECT ALL 32 + 46 * + + COALESCE ( 23, - ( CASE 95 WHEN - 84 + + 84 + 59 * COUNT( * ) / + - 70 THEN NULL WHEN + CAST( NULL AS DECIMAL ) + + + 35 THEN 34 + 96 END ), 75 + - 62 + - 59 ) AS col0, 45 AS col2
----
1090
45

skipif mysql # not compatible
query II rowsort label-4528
SELECT ALL 32 + 46 * + + COALESCE ( 23, - ( CASE 95 WHEN - 84 + + 84 + 59 * COUNT ( * ) / + - 70 THEN NULL WHEN + CAST ( NULL AS REAL ) + + + 35 THEN 34 + 96 END ), 75 + - 62 + - 59 ) AS col0, 45 AS col2
----
1090
45

query I rowsort
SELECT ALL 90 * 3
----
270

onlyif mysql # DIV for integer division: 
query I rowsort label-4530
SELECT DISTINCT 49 + 29 DIV 81 DIV + + 60 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-4530
SELECT DISTINCT 49 + 29 / 81 / + + 60 AS col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT ALL MIN( 42 ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-4531
SELECT ALL MIN ( 42 ) AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT + COUNT( ALL + 63 ) + + 78 + 93
----
172

skipif mysql # not compatible
query I rowsort label-4532
SELECT + COUNT ( ALL + 63 ) + + 78 + 93
----
172

query II rowsort
SELECT 66, + ( + 49 ) AS col1
----
66
49

query II rowsort
SELECT 2, + 17 + + 43 col1
----
2
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4535
SELECT 4 col0, 10 - - 37 DIV + MAX( + 31 ) AS col1
----
4
11

skipif mysql # not compatible
query II rowsort label-4535
SELECT 4 col0, 10 - - 37 / + MAX ( + 31 ) AS col1
----
4
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4536
SELECT - 72 + - 86 + - - 77 + - - COALESCE ( MAX( ALL + 26 ), - COUNT( * ) * + 34 + COUNT( * ) + 35 ) * - 81
----
-2187

skipif mysql # not compatible
query I rowsort label-4536
SELECT - 72 + - 86 + - - 77 + - - COALESCE ( MAX ( ALL + 26 ), - COUNT ( * ) * + 34 + COUNT ( * ) + 35 ) * - 81
----
-2187

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT ALL 78 * - 19 * - + 16 * + - COUNT( * ) AS col1
----
-23712

skipif mysql # not compatible
query I rowsort label-4537
SELECT ALL 78 * - 19 * - + 16 * + - COUNT ( * ) AS col1
----
-23712

onlyif mysql # aggregate syntax: 
query II rowsort label-4538
SELECT 83 AS col2, - 26 - + 7 + + COUNT( * ) * + - 30 AS col1
----
83
-63

skipif mysql # not compatible
query II rowsort label-4538
SELECT 83 AS col2, - 26 - + 7 + + COUNT ( * ) * + - 30 AS col1
----
83
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT - 48 + COUNT( * ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-4539
SELECT - 48 + COUNT ( * ) AS col1
----
-47

query I rowsort
SELECT - ( + 72 ) col0
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-4541
SELECT DISTINCT MIN( ALL - 71 ) col2, + 88
----
-71
88

skipif mysql # not compatible
query II rowsort label-4541
SELECT DISTINCT MIN ( ALL - 71 ) col2, + 88
----
-71
88

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

skipif mysql # not compatible
query I rowsort label-4542
SELECT DISTINCT 83 - + ( + COUNT ( * ) ) AS col2
----
82

query I rowsort
SELECT ALL 42 * - - 88
----
3696

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4544
SELECT DISTINCT - COALESCE ( + + 52, - 77, - CASE 51 WHEN - 35 * COUNT( * ) * + + 44 THEN + - ( + ( 19 ) ) + - - ( - - 44 ) ELSE NULL END + + ( 75 ) * + - COUNT( * ) + + - NULLIF ( 95, + 47 / - CAST( NULL AS DECIMAL ) + 62 * 64 ) * 25 ) - - 62 * 57
----
3482

skipif mysql # not compatible
query I rowsort label-4544
SELECT DISTINCT - COALESCE ( + + 52, - 77, - CASE 51 WHEN - 35 * COUNT ( * ) * + + 44 THEN + - ( + ( 19 ) ) + - - ( - - 44 ) ELSE NULL END + + ( 75 ) * + - COUNT ( * ) + + - NULLIF ( 95, + 47 / - CAST ( NULL AS REAL ) + 62 * 64 ) * 25 ) - - 62 * 57
----
3482

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT DISTINCT MIN( + 22 ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-4545
SELECT DISTINCT MIN ( + 22 ) AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT - 6 * + 31 * - + NULLIF ( + 1, SUM( + - 54 ) )
----
186

skipif mysql # not compatible
query I rowsort label-4546
SELECT - 6 * + 31 * - + NULLIF ( + 1, SUM ( + - 54 ) )
----
186

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4548
SELECT + ( + 84 ) - CAST( - 9 AS SIGNED ) * - 30
----
-186

skipif mysql # not compatible
query I rowsort label-4548
SELECT + ( + 84 ) - CAST ( - 9 AS INTEGER ) * - 30
----
-186

query II rowsort
SELECT - 82 * + 23, 62 col2
----
-1886
62

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4550
SELECT ALL - + CAST( 74 AS SIGNED ) DIV + ( - - ( - 97 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4550
SELECT ALL - + CAST ( 74 AS INTEGER ) / + ( - - ( - 97 ) ) AS col0
----
0

query I rowsort
SELECT - 60 * + COALESCE ( - NULLIF ( ( - - 33 ), + 74 / - ( + + 18 ) * + 63 ), - 63 ) + 55 + + 40
----
2075

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4552
SELECT - 73 * NULLIF ( + COALESCE ( - + 81, 24 + + + 89 * + 1 * 58, - + COUNT( * ) ), + 5 * + + 28 / + + 38 * - COUNT( * ) ) + + 76, - 35 + - + CAST( NULL AS SIGNED ) + NULLIF ( + 15, - COALESCE ( 13, - - 75 + COUNT( * ) * CAST( - 60 AS SIGNED ) ) * 76 ) - + 23 * + 52 col1
----
5989
NULL

skipif mysql # not compatible
query II rowsort label-4552
SELECT - 73 * NULLIF ( + COALESCE ( - + 81, 24 + + + 89 * + 1 * 58, - + COUNT ( * ) ), + 5 * + + 28 / + + 38 * - COUNT ( * ) ) + + 76, - 35 + - + CAST ( NULL AS INTEGER ) + NULLIF ( + 15, - COALESCE ( 13, - - 75 + COUNT ( * ) * CAST ( - 60 AS INTEGER ) ) * 76 ) - + 23 * + 52 col1
----
5989
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT - COUNT( * ) * + ( + 83 ) - - 17 * SUM( DISTINCT NULLIF ( 90, + 32 / 14 ) ) * 68
----
103957

skipif mysql # not compatible
query I rowsort label-4553
SELECT - COUNT ( * ) * + ( + 83 ) - - 17 * SUM ( DISTINCT NULLIF ( 90, + 32 / 14 ) ) * 68
----
103957

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT ALL + COALESCE ( - - 12, COUNT( * ), + 70 + - ( + 85 ) * - + 19 * 72 + + + 35 ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-4554
SELECT ALL + COALESCE ( - - 12, COUNT ( * ), + 70 + - ( + 85 ) * - + 19 * 72 + + + 35 ) AS col2
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4555
SELECT ALL + 98 DIV - MIN( DISTINCT - 58 ) - - COUNT( * ) + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-4555
SELECT ALL + 98 / - MIN ( DISTINCT - 58 ) - - COUNT ( * ) + COUNT ( * )
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4556
SELECT DISTINCT + + 8 DIV - 72 + MAX( - 82 ) * - + 57
----
4674

skipif mysql # not compatible
query I rowsort label-4556
SELECT DISTINCT + + 8 / - 72 + MAX ( - 82 ) * - + 57
----
4674

onlyif mysql # DIV for integer division: 
query I rowsort label-4557
SELECT DISTINCT - - 41 DIV 25 + + 5 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-4557
SELECT DISTINCT - - 41 / 25 + + 5 AS col1
----
6

query I rowsort
SELECT ALL + + 53 AS col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT DISTINCT + - NULLIF ( + COUNT( * ), - + 86 )
----
-1

skipif mysql # not compatible
query I rowsort label-4559
SELECT DISTINCT + - NULLIF ( + COUNT ( * ), - + 86 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT - SUM( ALL 14 ) * 77
----
-1078

skipif mysql # not compatible
query I rowsort label-4560
SELECT - SUM ( ALL 14 ) * 77
----
-1078

query I rowsort
SELECT - + 4 * - 30 + - - 3
----
123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4562
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1, - ( + COUNT( * ) ) DIV + + 60 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4562
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, - ( + COUNT ( * ) ) / + + 60 AS col1
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4563
SELECT ALL 5 * 28 + 20 + COUNT( * ) + 25 * - COUNT( * ) - 54 * 78 AS col1
----
-4076

skipif mysql # not compatible
query I rowsort label-4563
SELECT ALL 5 * 28 + 20 + COUNT ( * ) + 25 * - COUNT ( * ) - 54 * 78 AS col1
----
-4076

query II rowsort
SELECT DISTINCT + 16 AS col2, - 95 col1
----
16
-95

query I rowsort
SELECT + 85 * - 33 AS col2
----
-2805

query II rowsort
SELECT + ( - 67 ) AS col2, - 88 AS col2
----
-67
-88

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4567
SELECT + CAST( NULL AS DECIMAL ) * + ( - + 68 ) * - - 88 - + - CAST( + 50 AS SIGNED ) - 66 + - - 57 col0, 50
----
NULL
50

skipif mysql # not compatible
query II rowsort label-4567
SELECT + CAST ( NULL AS REAL ) * + ( - + 68 ) * - - 88 - + - CAST ( + 50 AS INTEGER ) - 66 + - - 57 col0, 50
----
NULL
50

onlyif mysql # DIV for integer division: 
query I rowsort label-4568
SELECT - 49 * COALESCE ( - 63, 65 DIV + AVG ( - 32 ) )
----
3087

skipif mysql # not compatible
query I rowsort label-4568
SELECT - 49 * COALESCE ( - 63, 65 / + AVG ( - 32 ) )
----
3087

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT DISTINCT 78 * - - 16 * - + COUNT( * )
----
-1248

skipif mysql # not compatible
query I rowsort label-4570
SELECT DISTINCT 78 * - - 16 * - + COUNT ( * )
----
-1248

onlyif mysql # aggregate syntax: 
query II rowsort label-4571
SELECT ALL COUNT( * ) * - + 43 AS col1, - 84 + - 13 AS col0
----
-43
-97

skipif mysql # not compatible
query II rowsort label-4571
SELECT ALL COUNT ( * ) * - + 43 AS col1, - 84 + - 13 AS col0
----
-43
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-4572
SELECT COUNT( - 4 ) AS col2, + ( + 58 ) AS col2
----
1
58

skipif mysql # not compatible
query II rowsort label-4572
SELECT COUNT ( - 4 ) AS col2, + ( + 58 ) AS col2
----
1
58

query I rowsort
SELECT + 60 * + 84 AS col1
----
5040

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4574
SELECT + COALESCE ( + 98, - 49, MIN( DISTINCT + 3 ) DIV - + 43 + + 49 ) * - + 57
----
-5586

skipif mysql # not compatible
query I rowsort label-4574
SELECT + COALESCE ( + 98, - 49, MIN ( DISTINCT + 3 ) / - + 43 + + 49 ) * - + 57
----
-5586

onlyif mysql # aggregate syntax: 
query II rowsort label-4575
SELECT ALL MIN( 88 ) AS col1, 82 * - 31
----
88
-2542

skipif mysql # not compatible
query II rowsort label-4575
SELECT ALL MIN ( 88 ) AS col1, 82 * - 31
----
88
-2542

onlyif mysql # aggregate syntax: 
query I rowsort label-4576
SELECT + COALESCE ( 97, - ( + COUNT( * ) ) * - - 61 - 65 * - 78 ) - 27 + + - 34 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-4576
SELECT + COALESCE ( 97, - ( + COUNT ( * ) ) * - - 61 - 65 * - 78 ) - 27 + + - 34 AS col0
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4577
SELECT + 13 - COALESCE ( - 58, + MIN( - 95 ) * + - 20 + COALESCE ( - COUNT( * ), + 22 DIV + CAST( + - COUNT( * ) AS SIGNED ) ) + - 38 * + 8, + 51 * - 98 ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-4577
SELECT + 13 - COALESCE ( - 58, + MIN ( - 95 ) * + - 20 + COALESCE ( - COUNT ( * ), + 22 / + CAST ( + - COUNT ( * ) AS INTEGER ) ) + - 38 * + 8, + 51 * - 98 ) AS col1
----
71

query I rowsort
SELECT ALL COALESCE ( - + 16, 79 ) AS col2
----
-16

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

skipif mysql # not compatible
query I rowsort label-4579
SELECT + 89 - + 33 * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 90 + 86 + + + 8 AS col2
----
184

query I rowsort
SELECT 26 * + 95 * - + CASE + 72 WHEN 85 THEN NULL ELSE + 86 END
----
-212420

onlyif mysql # DIV for integer division: 
query I rowsort label-4582
SELECT COALESCE ( - 63, - 83 ) + - + 37 + NULLIF ( 18, + ( + 46 ) ) DIV 49 + 28
----
-72

skipif mysql # not compatible
query I rowsort label-4582
SELECT COALESCE ( - 63, - 83 ) + - + 37 + NULLIF ( 18, + ( + 46 ) ) / 49 + 28
----
-72

query I rowsort
SELECT 35 - - 80
----
115

onlyif mysql # aggregate syntax: 
query II rowsort label-4584
SELECT ALL 23 * + 74, SUM( DISTINCT + + 14 ) AS col1
----
1702
14

skipif mysql # not compatible
query II rowsort label-4584
SELECT ALL 23 * + 74, SUM ( DISTINCT + + 14 ) AS col1
----
1702
14

query I rowsort
SELECT 85 + + 46
----
131

onlyif mysql # DIV for integer division: 
query I rowsort label-4586
SELECT + 57 DIV 34
----
1

skipif mysql # not compatible
query I rowsort label-4586
SELECT + 57 / 34
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4587
SELECT DISTINCT 36 DIV COALESCE ( - - COUNT( * ), 38 DIV 43 * + 33 * COUNT( * ) ) AS col2, + 98 * - COUNT( * ) + + 79
----
36
-19

skipif mysql # not compatible
query II rowsort label-4587
SELECT DISTINCT 36 / COALESCE ( - - COUNT ( * ), 38 / 43 * + 33 * COUNT ( * ) ) AS col2, + 98 * - COUNT ( * ) + + 79
----
36
-19

query II rowsort
SELECT ALL ( 42 ), + 51 AS col0
----
42
51

query I rowsort
SELECT + 84 + + 42 + - 33 * 18 col2
----
-468

query I rowsort
SELECT DISTINCT 63 + + - 59 col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4591
SELECT ALL + COUNT( * ) + - ( + COUNT( DISTINCT + + CAST( NULL AS SIGNED ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-4591
SELECT ALL + COUNT ( * ) + - ( + COUNT ( DISTINCT + + CAST ( NULL AS INTEGER ) ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4592
SELECT - 57 DIV + - 29 + + COUNT( * ) * 38 + + 36 + - NULLIF ( - 84, - ( COUNT( 28 ) ) ) - + 30 + + ( - + 49 ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-4592
SELECT - 57 / + - 29 + + COUNT ( * ) * 38 + + 36 + - NULLIF ( - 84, - ( COUNT ( 28 ) ) ) - + 30 + + ( - + 49 ) AS col2
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4593
SELECT COALESCE ( - CAST( NULL AS SIGNED ), + 14, - 93 )
----
14

skipif mysql # not compatible
query I rowsort label-4593
SELECT COALESCE ( - CAST ( NULL AS INTEGER ), + 14, - 93 )
----
14

query I rowsort
SELECT + 43 * 80
----
3440

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT + MIN( + - 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-4595
SELECT + MIN ( + - 87 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT 64 * + 19 * - COUNT( * ) + + 30
----
-1186

skipif mysql # not compatible
query I rowsort label-4596
SELECT 64 * + 19 * - COUNT ( * ) + + 30
----
-1186

onlyif mysql # aggregate syntax: 
query II rowsort label-4597
SELECT DISTINCT - COUNT( + 74 ), + 4 * + 45 AS col0
----
-1
180

skipif mysql # not compatible
query II rowsort label-4597
SELECT DISTINCT - COUNT ( + 74 ), + 4 * + 45 AS col0
----
-1
180

onlyif mysql # DIV for integer division: 
query II rowsort label-4598
SELECT ALL - 2 * - + ( - 6 ) AS col2, - 44 DIV + 69
----
-12
0

skipif mysql # not compatible
query II rowsort label-4598
SELECT ALL - 2 * - + ( - 6 ) AS col2, - 44 / + 69
----
-12
0

query II rowsort
SELECT 35, + 33 AS col2
----
35
33

query II rowsort
SELECT + 84 AS col0, - 53
----
84
-53

query I rowsort
SELECT + ( + + 36 ) * - - 41 * - 38 * + + 19 + - 2 AS col1
----
-1065674

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT COALESCE ( 2, + - 13, + + 90, - + 33 * COUNT( * ) - + 70 ) - - + 95 + + 32 * - + 2 * + 84 - + CASE 81 WHEN AVG ( ALL - ( - 52 ) ) + 44 + + ( - + 44 ) * - COUNT( * ) * + + COUNT( * ) THEN + 67 ELSE NULL END * - + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-4602
SELECT COALESCE ( 2, + - 13, + + 90, - + 33 * COUNT ( * ) - + 70 ) - - + 95 + + 32 * - + 2 * + 84 - + CASE 81 WHEN AVG ( ALL - ( - 52 ) ) + 44 + + ( - + 44 ) * - COUNT ( * ) * + + COUNT ( * ) THEN + 67 ELSE NULL END * - + 1
----
NULL

query I rowsort
SELECT 4 * + 30
----
120

query I rowsort
SELECT 75 + 60 AS col1
----
135

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4605
SELECT 94 * + CAST( 38 AS SIGNED ) * + 73 + - + 34 + - 28 DIV - - 67 * - 30 * 81
----
260722

skipif mysql # not compatible
query I rowsort label-4605
SELECT 94 * + CAST ( 38 AS INTEGER ) * + 73 + - + 34 + - 28 / - - 67 * - 30 * 81
----
260722

query I rowsort
SELECT DISTINCT - 85 * + 84 AS col1
----
-7140

query I rowsort
SELECT 94 * - 11 AS col2
----
-1034

query I rowsort
SELECT 0 + + + 83 AS col1
----
83

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

skipif mysql # not compatible
query I rowsort label-4609
SELECT DISTINCT COUNT ( * ) * 84 * + - COUNT ( * ) AS col2
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4610
SELECT 31 * CASE CASE - 89 WHEN + - CAST( NULL AS DECIMAL ) THEN - ( 97 ) * + ( 17 ) WHEN 53 * - 89 THEN - 72 * CAST( - CASE + 59 WHEN COUNT( * ) * + - COUNT( * ) * + 64 * COUNT( * ) + + COALESCE ( 68, - 72, + 54 + + 53 * 78 ) THEN NULL WHEN COUNT( * ) * 35 THEN CASE - COUNT( * ) WHEN 10 THEN - 10 - MIN( 18 + CAST( - 16 AS SIGNED ) ) * 82 WHEN COUNT( * ) + 82 * CAST( NULL AS SIGNED ) THEN NULL END * 51 END AS SIGNED ) + 34 / 48 WHEN 84 THEN + 61 END WHEN + 95 + 58 THEN + AVG ( 8 ) + ( - 95 ) END + ( 53 ) * + 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4610
SELECT 31 * CASE CASE - 89 WHEN + - CAST ( NULL AS REAL ) THEN - ( 97 ) * + ( 17 ) WHEN 53 * - 89 THEN - 72 * CAST ( - CASE + 59 WHEN COUNT ( * ) * + - COUNT ( * ) * + 64 * COUNT ( * ) + + COALESCE ( 68, - 72, + 54 + + 53 * 78 ) THEN NULL WHEN COUNT ( * ) * 35 THEN CASE - COUNT ( * ) WHEN 10 THEN - 10 - MIN ( 18 + CAST ( - 16 AS INTEGER ) ) * 82 WHEN COUNT ( * ) + 82 * CAST ( NULL AS INTEGER ) THEN NULL END * 51 END AS INTEGER ) + 34 / 48 WHEN 84 THEN + 61 END WHEN + 95 + 58 THEN + AVG ( 8 ) + ( - 95 ) END + ( 53 ) * + 77 AS col2
----
NULL

query II rowsort
SELECT ALL 8, + 36 AS col2
----
8
36

onlyif mysql # DIV for integer division: 
query I rowsort label-4612
SELECT DISTINCT + 40 DIV + - 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4612
SELECT DISTINCT + 40 / + - 87 AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-4613
SELECT 84 / - 91
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT COUNT( * ) + + + 50 * - 33
----
-1649

skipif mysql # not compatible
query I rowsort label-4614
SELECT COUNT ( * ) + + + 50 * - 33
----
-1649

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4615
SELECT ALL NULLIF ( - COALESCE ( CAST( + 59 AS DECIMAL ), + 73 * + + ( - + ( + - 88 ) ) * - 40 ), - COALESCE ( 37, - + 14 / - + 29 * - 62 + + CASE + 46 WHEN 28 * 38 THEN - - 52 ELSE NULL END - - + 94 * - - CAST( NULL AS SIGNED ), - + ( COUNT( * ) ) / 83 ) - + CASE 87 WHEN 57 * - 45 THEN 21 * 67 END * COUNT( * ) ) * + NULLIF ( COUNT( * ) + + CAST( NULL AS SIGNED ), CAST( + 78 AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4615
SELECT ALL NULLIF ( - COALESCE ( CAST ( + 59 AS REAL ), + 73 * + + ( - + ( + - 88 ) ) * - 40 ), - COALESCE ( 37, - + 14 / - + 29 * - 62 + + CASE + 46 WHEN 28 * 38 THEN - - 52 ELSE NULL END - - + 94 * - - CAST ( NULL AS INTEGER ), - + ( COUNT ( * ) ) / 83 ) - + CASE 87 WHEN 57 * - 45 THEN 21 * 67 END * COUNT ( * ) ) * + NULLIF ( COUNT ( * ) + + CAST ( NULL AS INTEGER ), CAST ( + 78 AS INTEGER ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT COUNT( * ) * 19 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-4616
SELECT COUNT ( * ) * 19 AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT DISTINCT + 23 * + - MAX( - - ( 89 ) )
----
-2047

skipif mysql # not compatible
query I rowsort label-4617
SELECT DISTINCT + 23 * + - MAX ( - - ( 89 ) )
----
-2047

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4618
SELECT ALL + 22 + + - NULLIF ( - 73, 16 / 79 + 21 - - CAST( NULL AS SIGNED ) ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-4618
SELECT ALL + 22 + + - NULLIF ( - 73, 16 / 79 + 21 - - CAST ( NULL AS INTEGER ) ) AS col0
----
95

query I rowsort
SELECT DISTINCT - 64 + + - 0
----
-64

query I rowsort
SELECT ALL + 42 + 33 * 64 col0
----
2154

query II rowsort
SELECT - 82 * + ( + - 91 ) AS col1, 74 col2
----
7462
74

query I rowsort
SELECT ALL 52 + - + 29
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-4623
SELECT - + 53 AS col1, 13 * + 66 + CASE WHEN NOT COUNT( * ) IS NOT NULL THEN - + 39 ELSE NULL END AS col0
----
-53
NULL

skipif mysql # not compatible
query II rowsort label-4623
SELECT - + 53 AS col1, 13 * + 66 + CASE WHEN NOT COUNT ( * ) IS NOT NULL THEN - + 39 ELSE NULL END AS col0
----
-53
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4624
SELECT 56 - ( - 48 ) AS col1, + COUNT( * ) DIV - 96
----
104
0

skipif mysql # not compatible
query II rowsort label-4624
SELECT 56 - ( - 48 ) AS col1, + COUNT ( * ) / - 96
----
104
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4625
SELECT ALL + COALESCE ( - - 90, + 99 DIV - 4 )
----
90

skipif mysql # not compatible
query I rowsort label-4625
SELECT ALL + COALESCE ( - - 90, + 99 / - 4 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT ALL 79 + - 9 + + MAX( DISTINCT - 76 ) * 54 * + 31
----
-127154

skipif mysql # not compatible
query I rowsort label-4626
SELECT ALL 79 + - 9 + + MAX ( DISTINCT - 76 ) * 54 * + 31
----
-127154

query I rowsort
SELECT 45 * 22 AS col1
----
990

onlyif mysql # aggregate syntax: 
query II rowsort label-4628
SELECT - + COUNT( * ) AS col0, MIN( ALL - 57 )
----
-1
-57

skipif mysql # not compatible
query II rowsort label-4628
SELECT - + COUNT ( * ) AS col0, MIN ( ALL - 57 )
----
-1
-57

query I rowsort
SELECT ALL - ( - - 35 ) AS col0
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4630
SELECT + CAST( + 76 AS SIGNED )
----
76

skipif mysql # not compatible
query I rowsort label-4630
SELECT + CAST ( + 76 AS INTEGER )
----
76

query I rowsort
SELECT ALL - 67 * - - 22 - - 79
----
-1395

query I rowsort
SELECT COALESCE ( + + 72, - - 27 * ( + 35 ), - 34 ) * - 59 + + CASE - 40 WHEN - 56 THEN NULL ELSE + 79 END + - 33 * 72 * + - 29
----
64735

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT DISTINCT - CASE 90 WHEN + 34 + - + 45 THEN COALESCE ( - - 66, + 85 + - 52 ) * 51 WHEN - + COUNT( * ) - 85 + + - ( + - 78 ) * + + 1 + - COUNT( * ) - + NULLIF ( - - 6, - 11 ) + - 23 - + NULLIF ( - - 24, + - NULLIF ( 24, + 33 * + 70 ) ) - - 42 * + COUNT( * ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4633
SELECT DISTINCT - CASE 90 WHEN + 34 + - + 45 THEN COALESCE ( - - 66, + 85 + - 52 ) * 51 WHEN - + COUNT ( * ) - 85 + + - ( + - 78 ) * + + 1 + - COUNT ( * ) - + NULLIF ( - - 6, - 11 ) + - 23 - + NULLIF ( - - 24, + - NULLIF ( 24, + 33 * + 70 ) ) - - 42 * + COUNT ( * ) THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4634
SELECT DISTINCT - MIN( DISTINCT - - ( + 85 ) ) col1, 6 + 27 + 32 col2
----
-85
65

skipif mysql # not compatible
query II rowsort label-4634
SELECT DISTINCT - MIN ( DISTINCT - - ( + 85 ) ) col1, 6 + 27 + 32 col2
----
-85
65

onlyif mysql # DIV for integer division: 
query I rowsort label-4635
SELECT 4 * - 9 DIV + 88 * - - 85 + - + 3 - - - 95 col0
----
-98

skipif mysql # not compatible
query I rowsort label-4635
SELECT 4 * - 9 / + 88 * - - 85 + - + 3 - - - 95 col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT - COUNT( * ) * 81 * 24 col0
----
-1944

skipif mysql # not compatible
query I rowsort label-4636
SELECT - COUNT ( * ) * 81 * 24 col0
----
-1944

query II rowsort
SELECT + 22 AS col2, 67 * + 74 AS col2
----
22
4958

onlyif mysql # aggregate syntax: 
query II rowsort label-4638
SELECT MAX( DISTINCT + 39 ), + 74 AS col1
----
39
74

skipif mysql # not compatible
query II rowsort label-4638
SELECT MAX ( DISTINCT + 39 ), + 74 AS col1
----
39
74

onlyif mysql # DIV for integer division: 
query I rowsort label-4639
SELECT 25 DIV + 99 + + - 89 AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-4639
SELECT 25 / + 99 + + - 89 AS col2
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4640
SELECT 4 DIV - 94 * + 59 * + 96 * - COUNT( * ) * - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4640
SELECT 4 / - 94 * + 59 * + 96 * - COUNT ( * ) * - + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT 10 + - ( - 26 ) + COALESCE ( + COUNT( * ), + + SUM( ALL 96 ), + 79 )
----
37

skipif mysql # not compatible
query I rowsort label-4641
SELECT 10 + - ( - 26 ) + COALESCE ( + COUNT ( * ), + + SUM ( ALL 96 ), + 79 )
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-4642
SELECT ALL + 26 DIV 73
----
0

skipif mysql # not compatible
query I rowsort label-4642
SELECT ALL + 26 / 73
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4643
SELECT ALL + COALESCE ( + 34, COUNT( * ), 35 ) * - - 99 + 96 AS col1
----
3462

skipif mysql # not compatible
query I rowsort label-4643
SELECT ALL + COALESCE ( + 34, COUNT ( * ), 35 ) * - - 99 + 96 AS col1
----
3462

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4644
SELECT ALL + ( - 5 ) * COUNT( * ) DIV 10, COUNT( * ) * + - 95 DIV 70 * + 40 AS col1
----
0
-40

skipif mysql # not compatible
query II rowsort label-4644
SELECT ALL + ( - 5 ) * COUNT ( * ) / 10, COUNT ( * ) * + - 95 / 70 * + 40 AS col1
----
0
-40

query II rowsort
SELECT DISTINCT + 54 * - + 40, + 34 AS col0
----
-2160
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4646
SELECT ( + + 67 ) * + 93 - 79 * CAST( - ( 4 ) AS SIGNED ) AS col0
----
6547

skipif mysql # not compatible
query I rowsort label-4646
SELECT ( + + 67 ) * + 93 - 79 * CAST ( - ( 4 ) AS INTEGER ) AS col0
----
6547

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT - 42 * - COUNT( * ) * + - ( - 24 )
----
1008

skipif mysql # not compatible
query I rowsort label-4647
SELECT - 42 * - COUNT ( * ) * + - ( - 24 )
----
1008

onlyif mysql # aggregate syntax: 
query II rowsort label-4648
SELECT ALL + COUNT( * ) + - 12 AS col0, - 47 AS col1
----
-11
-47

skipif mysql # not compatible
query II rowsort label-4648
SELECT ALL + COUNT ( * ) + - 12 AS col0, - 47 AS col1
----
-11
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT - 53 + + COUNT( * ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-4649
SELECT - 53 + + COUNT ( * ) AS col1
----
-52

query III rowsort
SELECT ALL + 36 + + 83 AS col1, - ( + ( 15 ) ) + + 99 - + + 49, 64 AS col2
----
119
35
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT - 23 - NULLIF ( + 35, + 64 ) + 99 * - + 57 + 42 * - MIN( + + 99 ) * 73 * + 71 - 34 + 31 AS col1
----
-21556618

skipif mysql # not compatible
query I rowsort label-4651
SELECT - 23 - NULLIF ( + 35, + 64 ) + 99 * - + 57 + 42 * - MIN ( + + 99 ) * 73 * + 71 - 34 + 31 AS col1
----
-21556618

onlyif mysql # aggregate syntax: 
query II rowsort label-4652
SELECT DISTINCT + + 49 + - 26 AS col0, + 29 + - 56 * ( + 87 ) + - COUNT( * ) col1
----
23
-4844

skipif mysql # not compatible
query II rowsort label-4652
SELECT DISTINCT + + 49 + - 26 AS col0, + 29 + - 56 * ( + 87 ) + - COUNT ( * ) col1
----
23
-4844

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4653
SELECT ALL - 35 + - 57 AS col0, MIN( 83 ) * 88 - CAST( NULL AS DECIMAL ) AS col1
----
-92
NULL

skipif mysql # not compatible
query II rowsort label-4653
SELECT ALL - 35 + - 57 AS col0, MIN ( 83 ) * 88 - CAST ( NULL AS REAL ) AS col1
----
-92
NULL

query I rowsort
SELECT ALL 97 + - 92
----
5

query I rowsort
SELECT - CASE - - ( + 85 ) WHEN + 24 THEN + + 78 ELSE NULL END + + 30 AS col0
----
NULL

query I rowsort
SELECT ALL + - 98 + + + COALESCE ( 29, - 64 ) col2
----
-69

query II rowsort
SELECT - - 80 + 30, 77 AS col2
----
110
77

query I rowsort
SELECT - + 68 col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4659
SELECT - + 5 + - 43 + + - COUNT( * ) + 25
----
-24

skipif mysql # not compatible
query I rowsort label-4659
SELECT - + 5 + - 43 + + - COUNT ( * ) + 25
----
-24

query I rowsort
SELECT + + 99 - 98 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4661
SELECT - - 30 + + 6 + COUNT( * ) * - 28 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-4661
SELECT - - 30 + + 6 + COUNT ( * ) * - 28 AS col2
----
8

query I rowsort
SELECT + - 25 - - ( + 33 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4663
SELECT ALL - 19 - COUNT( DISTINCT + 63 ) + + - ( + 82 ) AS col2
----
-102

skipif mysql # not compatible
query I rowsort label-4663
SELECT ALL - 19 - COUNT ( DISTINCT + 63 ) + + - ( + 82 ) AS col2
----
-102

query I rowsort
SELECT ALL - - 31 * - ( 68 ) AS col1
----
-2108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4665
SELECT + 69 DIV + NULLIF ( + 87, NULLIF ( - 91, + + MIN( 50 ) * - - COUNT( * ) + - 24 + - 50 DIV - + COUNT( ALL + - ( 45 ) ) + + 74 DIV + COUNT( * ) * 78 * 45 * - - 69 * 15 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4665
SELECT + 69 / + NULLIF ( + 87, NULLIF ( - 91, + + MIN ( 50 ) * - - COUNT ( * ) + - 24 + - 50 / - + COUNT ( ALL + - ( 45 ) ) + + 74 / + COUNT ( * ) * 78 * 45 * - - 69 * 15 ) ) AS col2
----
0

query I rowsort
SELECT DISTINCT + 75 * 77
----
5775

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT DISTINCT - COUNT( * ) - - - 8 + + 58 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-4667
SELECT DISTINCT - COUNT ( * ) - - - 8 + + 58 AS col1
----
49

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

skipif mysql # not compatible
query I rowsort label-4668
SELECT ALL + + COUNT ( * ) * + - 80 AS col2
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4669
SELECT CAST( - 71 AS SIGNED ) * - 89 + - 22 + + - 3 * - 7 * - ( 33 )
----
5604

skipif mysql # not compatible
query I rowsort label-4669
SELECT CAST ( - 71 AS INTEGER ) * - 89 + - 22 + + - 3 * - 7 * - ( 33 )
----
5604

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

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

query I rowsort
SELECT - + 3 * 15
----
-45

query I rowsort
SELECT + + 98 * 36 + - 82 + - COALESCE ( + 23, 43 ) AS col0
----
3423

query I rowsort
SELECT ALL + + 88 AS col1
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4674
SELECT - COALESCE ( - 21, CAST( NULL AS SIGNED ), 83 * + 76 * + 8 )
----
21

skipif mysql # not compatible
query I rowsort label-4674
SELECT - COALESCE ( - 21, CAST ( NULL AS INTEGER ), 83 * + 76 * + 8 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT + 44 + + - MIN( DISTINCT - 98 )
----
142

skipif mysql # not compatible
query I rowsort label-4675
SELECT + 44 + + - MIN ( DISTINCT - 98 )
----
142

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

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

query I rowsort
SELECT + 8 + + 64 * - - 77
----
4936

onlyif mysql # aggregate syntax: 
query I rowsort label-4678
SELECT + COALESCE ( + 73, - + COUNT( * ) * 3 )
----
73

skipif mysql # not compatible
query I rowsort label-4678
SELECT + COALESCE ( + 73, - + COUNT ( * ) * 3 )
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-4679
SELECT DISTINCT + ( + + COUNT( DISTINCT - - 90 ) ) AS col0, - 33 + + 35
----
1
2

skipif mysql # not compatible
query II rowsort label-4679
SELECT DISTINCT + ( + + COUNT ( DISTINCT - - 90 ) ) AS col0, - 33 + + 35
----
1
2

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4680
SELECT + COALESCE ( - CAST( NULL AS SIGNED ), + 97 / - - 38 / CAST( NULL AS DECIMAL ) * + 25 - - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4680
SELECT + COALESCE ( - CAST ( NULL AS INTEGER ), + 97 / - - 38 / CAST ( NULL AS REAL ) * + 25 - - - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4681
SELECT + 89 * 36 + - + MAX( ALL - 63 ) * + 30, 22 AS col2
----
5094
22

skipif mysql # not compatible
query II rowsort label-4681
SELECT + 89 * 36 + - + MAX ( ALL - 63 ) * + 30, 22 AS col2
----
5094
22

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

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

query I rowsort
SELECT - 59 + + - 98 col0
----
-157

query I rowsort
SELECT + 30 * 6 AS col0
----
180

onlyif mysql # aggregate syntax: 
query II rowsort label-4685
SELECT DISTINCT + 51 AS col1, 50 + + COUNT( * )
----
51
51

skipif mysql # not compatible
query II rowsort label-4685
SELECT DISTINCT + 51 AS col1, 50 + + COUNT ( * )
----
51
51

query I rowsort
SELECT DISTINCT + 75 * - 16 + - 2
----
-1202

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4687
SELECT - 0 + 58 + - 27 * - - CAST( 32 AS SIGNED ) * + 1 + + + ( - MAX( 60 ) ) col2
----
-866

skipif mysql # not compatible
query I rowsort label-4687
SELECT - 0 + 58 + - 27 * - - CAST ( 32 AS INTEGER ) * + 1 + + + ( - MAX ( 60 ) ) col2
----
-866

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT ALL + - 71 + - 65 + - SUM( - 35 ) * - + 60
----
-2236

skipif mysql # not compatible
query I rowsort label-4689
SELECT ALL + - 71 + - 65 + - SUM ( - 35 ) * - + 60
----
-2236

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4690
SELECT + + 9 * + ( - CAST( + MAX( - 72 ) AS SIGNED ) ) AS col1, + 48 AS col1
----
648
48

skipif mysql # not compatible
query II rowsort label-4690
SELECT + + 9 * + ( - CAST ( + MAX ( - 72 ) AS INTEGER ) ) AS col1, + 48 AS col1
----
648
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT - COALESCE ( - COUNT( ALL + 62 ), + + 94 + - 30 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4691
SELECT - COALESCE ( - COUNT ( ALL + 62 ), + + 94 + - 30 ) AS col1
----
1

query I rowsort
SELECT DISTINCT + 81 - 90
----
-9

query II rowsort
SELECT 0 AS col1, 74 AS col2
----
0
74

query I rowsort
SELECT - 0 + 31 * - 23 + + + 16
----
-697

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT ALL + + SUM( - - 56 ) - - COUNT( * ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-4695
SELECT ALL + + SUM ( - - 56 ) - - COUNT ( * ) AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4696
SELECT - 40 * - MAX( ALL + NULLIF ( + 19, - 56 ) )
----
760

skipif mysql # not compatible
query I rowsort label-4696
SELECT - 40 * - MAX ( ALL + NULLIF ( + 19, - 56 ) )
----
760

query I rowsort
SELECT ALL 9 * - 98 AS col0
----
-882

query I rowsort
SELECT - - 8 col2
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4699
SELECT - - SUM( + 64 ) + CAST( NULL AS SIGNED ) * + 66 AS col1
----
NULL

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

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

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

query I rowsort
SELECT - - 44 * 16 * - + 71
----
-49984

onlyif mysql # DIV for integer division: 
query I rowsort label-4702
SELECT ALL - 38 DIV 27 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4702
SELECT ALL - 38 / 27 AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4703
SELECT + - 27 DIV - - MIN( DISTINCT + 56 ) + + 81
----
81

skipif mysql # not compatible
query I rowsort label-4703
SELECT + - 27 / - - MIN ( DISTINCT + 56 ) + + 81
----
81

query II rowsort
SELECT - 42 * 2 + - + 8 + + 80 - + 17 AS col1, 85
----
-29
85

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4705
SELECT - 17 AS col2, - CASE - MAX( DISTINCT + - 97 ) WHEN 85 * - ( - 43 ) / - CAST( NULL AS DECIMAL ) THEN - 68 ELSE + ( 94 ) END col0
----
-17
-94

skipif mysql # not compatible
query II rowsort label-4705
SELECT - 17 AS col2, - CASE - MAX ( DISTINCT + - 97 ) WHEN 85 * - ( - 43 ) / - CAST ( NULL AS REAL ) THEN - 68 ELSE + ( 94 ) END col0
----
-17
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT ALL COUNT( * ) * - 47
----
-47

skipif mysql # not compatible
query I rowsort label-4706
SELECT ALL COUNT ( * ) * - 47
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-4707
SELECT - 20 DIV - + 98 * + 88 * + 77 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4707
SELECT - 20 / - + 98 * + 88 * + 77 AS col1
----
0

query II rowsort
SELECT ALL + 55, - 2 * CASE - + 50 WHEN + 69 * 19 * - + 28 + - 29 THEN NULL WHEN - 32 THEN 36 ELSE 42 END col1
----
55
-84

query I rowsort
SELECT DISTINCT - 26 * - - 40
----
-1040

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT DISTINCT + 53 * 94 * - 77 * MAX( - 25 ) AS col2
----
9590350

skipif mysql # not compatible
query I rowsort label-4711
SELECT DISTINCT + 53 * 94 * - 77 * MAX ( - 25 ) AS col2
----
9590350

onlyif mysql # aggregate syntax: 
query II rowsort label-4712
SELECT 32 col0, COUNT( * ) AS col0
----
32
1

skipif mysql # not compatible
query II rowsort label-4712
SELECT 32 col0, COUNT ( * ) AS col0
----
32
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4713
SELECT ( - ( - - 88 ) ) * 78 AS col0, - COUNT( * )
----
-6864
-1

skipif mysql # not compatible
query II rowsort label-4713
SELECT ( - ( - - 88 ) ) * 78 AS col0, - COUNT ( * )
----
-6864
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4714
SELECT ALL CASE - 94 WHEN ( 60 ) THEN NULL WHEN 52 THEN - + 32 ELSE + 96 * - - MIN( - - 30 ) END + COUNT( * )
----
2881

skipif mysql # not compatible
query I rowsort label-4714
SELECT ALL CASE - 94 WHEN ( 60 ) THEN NULL WHEN 52 THEN - + 32 ELSE + 96 * - - MIN ( - - 30 ) END + COUNT ( * )
----
2881

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT COUNT( * ) * + COUNT( * ) + - - ( NULLIF ( COUNT( * ), - - 76 ) ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4715
SELECT COUNT ( * ) * + COUNT ( * ) + - - ( NULLIF ( COUNT ( * ), - - 76 ) ) AS col2
----
2

query I rowsort
SELECT DISTINCT 7 + + ( + 42 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4717
SELECT DISTINCT SUM( 88 ) + + + 23 AS col0
----
111

skipif mysql # not compatible
query I rowsort label-4717
SELECT DISTINCT SUM ( 88 ) + + + 23 AS col0
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT 9 * 55 * - COUNT( * )
----
-495

skipif mysql # not compatible
query I rowsort label-4718
SELECT 9 * 55 * - COUNT ( * )
----
-495

query I rowsort
SELECT 45 + 23
----
68

query I rowsort
SELECT DISTINCT 59 * + + ( + 24 ) AS col2
----
1416

query I rowsort
SELECT ALL NULLIF ( + 49, 16 ) + 15 AS col0
----
64

query I rowsort
SELECT ALL 94 * + 98
----
9212

query I rowsort
SELECT 35 * 70 AS col0
----
2450

query I rowsort
SELECT DISTINCT 23 * - - 77
----
1771

query I rowsort
SELECT - 9 * - - 3 - - 56 AS col1
----
29

query I rowsort
SELECT 18 * + 12
----
216

query I rowsort
SELECT 62 + - + 24 * - 56
----
1406

query I rowsort
SELECT 5 * - 7 * + + 42
----
-1470

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4729
SELECT - CASE 94 WHEN + COUNT( * ) THEN NULL WHEN - 85 * + 28 * + + 79 * - 92 + + 15 THEN NULL WHEN + 85 + + ( 13 ) * - CASE - 57 WHEN - - 41 * + 2 THEN NULL WHEN 11 THEN 42 + + 14 WHEN + CAST( NULL AS SIGNED ) * 18 THEN NULL END + - + 13 + - + MAX( DISTINCT - 74 ) + - - COUNT( * ) + + 57 + + 72 THEN + 53 * + 88 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4729
SELECT - CASE 94 WHEN + COUNT ( * ) THEN NULL WHEN - 85 * + 28 * + + 79 * - 92 + + 15 THEN NULL WHEN + 85 + + ( 13 ) * - CASE - 57 WHEN - - 41 * + 2 THEN NULL WHEN 11 THEN 42 + + 14 WHEN + CAST ( NULL AS INTEGER ) * 18 THEN NULL END + - + 13 + - + MAX ( DISTINCT - 74 ) + - - COUNT ( * ) + + 57 + + 72 THEN + 53 * + 88 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4730
SELECT - 1 + - CASE + 22 WHEN - ( 80 ) THEN 50 ELSE NULL END, - MIN( ALL + - 38 ) + + COUNT( * ) AS col0
----
NULL
39

skipif mysql # not compatible
query II rowsort label-4730
SELECT - 1 + - CASE + 22 WHEN - ( 80 ) THEN 50 ELSE NULL END, - MIN ( ALL + - 38 ) + + COUNT ( * ) AS col0
----
NULL
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4731
SELECT SUM( ALL - 78 ) * - + ( + NULLIF ( 46, - 5 * - 82 * - 33 + 45 - - CASE + - 34 WHEN 88 - + COUNT( + + 32 ) THEN ( 44 ) / + + 97 WHEN + - 96 THEN + 86 + COUNT( ALL + 18 ) ELSE NULL END ) ) col2
----
3588

skipif mysql # not compatible
query I rowsort label-4731
SELECT SUM ( ALL - 78 ) * - + ( + NULLIF ( 46, - 5 * - 82 * - 33 + 45 - - CASE + - 34 WHEN 88 - + COUNT ( + + 32 ) THEN ( 44 ) / + + 97 WHEN + - 96 THEN + 86 + COUNT ( ALL + 18 ) ELSE NULL END ) ) col2
----
3588

query I rowsort
SELECT 54 + 55
----
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4733
SELECT ALL COALESCE ( - - 26, + 98 + + 22 + + MAX( ALL + + 26 ) + - 51 - - COUNT( * ) * - 45 * 44, + ( - + 73 ) DIV 45 + - 66 ) col1
----
26

skipif mysql # not compatible
query I rowsort label-4733
SELECT ALL COALESCE ( - - 26, + 98 + + 22 + + MAX ( ALL + + 26 ) + - 51 - - COUNT ( * ) * - 45 * 44, + ( - + 73 ) / 45 + - 66 ) col1
----
26

query I rowsort
SELECT 31 - - - 9 * 9 * - - 89 AS col1
----
-7178

query II rowsort
SELECT ALL 27 AS col0, 42 + - ( 38 ) col0
----
27
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4736
SELECT DISTINCT + NULLIF ( CAST( 85 AS SIGNED ), + 98 * + 56 )
----
85

skipif mysql # not compatible
query I rowsort label-4736
SELECT DISTINCT + NULLIF ( CAST ( 85 AS INTEGER ), + 98 * + 56 )
----
85

query I rowsort
SELECT 23 + - 68 col1
----
-45

query I rowsort
SELECT 54 * - + 12 AS col0
----
-648

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT 2 + - CASE + 26 WHEN 74 * 51 + AVG ( CASE 56 WHEN + 28 THEN + 50 END ) THEN - MAX( - 38 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4739
SELECT 2 + - CASE + 26 WHEN 74 * 51 + AVG ( CASE 56 WHEN + 28 THEN + 50 END ) THEN - MAX ( - 38 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT - 1 - + MIN( DISTINCT - ( + - COALESCE ( + 63, - + ( - 19 ) ) ) ) + CASE 63 WHEN - COUNT( * ) * + 81 THEN NULL ELSE + 60 END + + 99 * + CASE - 51 WHEN + 68 THEN NULL WHEN - COUNT( * ) + + - COUNT( * ) THEN NULL ELSE + - 73 END + + 57 + - + 71 + + + 1 + 1 * 84 * - - 37 col0
----
-4136

skipif mysql # not compatible
query I rowsort label-4740
SELECT - 1 - + MIN ( DISTINCT - ( + - COALESCE ( + 63, - + ( - 19 ) ) ) ) + CASE 63 WHEN - COUNT ( * ) * + 81 THEN NULL ELSE + 60 END + + 99 * + CASE - 51 WHEN + 68 THEN NULL WHEN - COUNT ( * ) + + - COUNT ( * ) THEN NULL ELSE + - 73 END + + 57 + - + 71 + + + 1 + 1 * 84 * - - 37 col0
----
-4136

query I rowsort
SELECT 48 + + + 87
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT ALL - COUNT( + + 85 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4742
SELECT ALL - COUNT ( + + 85 ) AS col1
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4743
SELECT - + COALESCE ( + 59, 87 - + - 6 ) col0, - CAST( NULL AS DECIMAL ) * + - 81
----
-59
NULL

skipif mysql # not compatible
query II rowsort label-4743
SELECT - + COALESCE ( + 59, 87 - + - 6 ) col0, - CAST ( NULL AS REAL ) * + - 81
----
-59
NULL

query I rowsort
SELECT 0 * - 69 col0
----
0

query I rowsort
SELECT 4 + - + 48 + 65
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4746
SELECT ALL + CASE + 43 WHEN - 34 THEN NULL WHEN - CASE - + 41 WHEN + ( + - COUNT( * ) ) / + 9 * 39 THEN - 67 END - + 88 THEN NULL ELSE 4 END + - - 24
----
28

skipif mysql # not compatible
query I rowsort label-4746
SELECT ALL + CASE + 43 WHEN - 34 THEN NULL WHEN - CASE - + 41 WHEN + ( + - COUNT ( * ) ) / + 9 * 39 THEN - 67 END - + 88 THEN NULL ELSE 4 END + - - 24
----
28

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

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

query I rowsort
SELECT ( 30 ) * 81 + - 35 AS col1
----
2395

onlyif mysql # DIV for integer division: 
query I rowsort label-4749
SELECT - 49 DIV + - 64 + - 94 col1
----
-94

skipif mysql # not compatible
query I rowsort label-4749
SELECT - 49 / + - 64 + - 94 col1
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-4750
SELECT 3 * ( + 0 ) DIV - + 91
----
0

skipif mysql # not compatible
query I rowsort label-4750
SELECT 3 * ( + 0 ) / - + 91
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4751
SELECT 13 / - CAST( NULL AS SIGNED ) + - AVG ( + + 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4751
SELECT 13 / - CAST ( NULL AS INTEGER ) + - AVG ( + + 1 )
----
NULL

query I rowsort
SELECT 9 + - 87
----
-78

onlyif mysql # DIV for integer division: 
query II rowsort label-4753
SELECT 45 DIV ( + 73 ) AS col0, 13 * - - 65
----
0
845

skipif mysql # not compatible
query II rowsort label-4753
SELECT 45 / ( + 73 ) AS col0, 13 * - - 65
----
0
845

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4754
SELECT DISTINCT - CASE MIN( - + 73 ) WHEN + - CAST( NULL AS SIGNED ) * - 73 * + - ( + AVG ( DISTINCT - 96 ) ) + COALESCE ( + 25, + 96 + + 6 ) / + COUNT( * ) * - 52 * - ( + 83 ) THEN COUNT( * ) - + - 14 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4754
SELECT DISTINCT - CASE MIN ( - + 73 ) WHEN + - CAST ( NULL AS INTEGER ) * - 73 * + - ( + AVG ( DISTINCT - 96 ) ) + COALESCE ( + 25, + 96 + + 6 ) / + COUNT ( * ) * - 52 * - ( + 83 ) THEN COUNT ( * ) - + - 14 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 18 + - 59
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT 68 * - 62 + - - 73 - + 47 - - COUNT( - 6 ) * - 82 * - 79 * - 26 * - - COUNT( * ) AS col2
----
-172618

skipif mysql # not compatible
query I rowsort label-4756
SELECT 68 * - 62 + - - 73 - + 47 - - COUNT ( - 6 ) * - 82 * - 79 * - 26 * - - COUNT ( * ) AS col2
----
-172618

query I rowsort
SELECT DISTINCT - 32 + + 56 + + 37
----
61

query I rowsort
SELECT 38 * + - NULLIF ( 3, - + 81 )
----
-114

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4759
SELECT ALL - COALESCE ( AVG ( ALL - ( + 72 ) ), CAST( 79 AS SIGNED ) ) * - 30 + CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4759
SELECT ALL - COALESCE ( AVG ( ALL - ( + 72 ) ), CAST ( 79 AS INTEGER ) ) * - 30 + CAST ( NULL AS REAL ) col0
----
NULL

query I rowsort
SELECT ALL - ( + 21 ) - - 92 * + + 35 AS col1
----
3199

query II rowsort
SELECT ALL - ( - 81 ) AS col1, - 14 * - ( - 97 ) AS col2
----
81
-1358

query II rowsort
SELECT CASE - 98 WHEN - 71 THEN + - 41 ELSE - 20 END + ( + 8 ) col1, 76 * - + 46
----
-12
-3496

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT DISTINCT - ( + MIN( DISTINCT 95 ) ) - - - 74 * - - 53
----
-4017

skipif mysql # not compatible
query I rowsort label-4763
SELECT DISTINCT - ( + MIN ( DISTINCT 95 ) ) - - - 74 * - - 53
----
-4017

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4764
SELECT ALL + COUNT( * ) * + 62 DIV 38 * - - 78 * + 64 + + 31 * + - SUM( + 4 ) * 12
----
3504

skipif mysql # not compatible
query I rowsort label-4764
SELECT ALL + COUNT ( * ) * + 62 / 38 * - - 78 * + 64 + + 31 * + - SUM ( + 4 ) * 12
----
3504

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4766
SELECT ALL - - MAX( ALL - 64 ) AS col1, 87 + - ( + 76 ) AS col1
----
-64
11

skipif mysql # not compatible
query II rowsort label-4766
SELECT ALL - - MAX ( ALL - 64 ) AS col1, 87 + - ( + 76 ) AS col1
----
-64
11

query I rowsort
SELECT + 8 * + 21 + 90 + - 18 AS col2
----
240

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

skipif mysql # not compatible
query II rowsort label-4768
SELECT ALL - ( - - 1 ) AS col1, - 71 * + COUNT ( * )
----
-1
-71

query I rowsort
SELECT - ( + 10 ) + + 62 + - + 93
----
-41

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

skipif mysql # not compatible
query I rowsort label-4770
SELECT ALL COUNT ( * ) * - + 88 AS col2
----
-88

onlyif mysql # DIV for integer division: 
query II rowsort label-4771
SELECT - 58 DIV + + 46 AS col1, NULLIF ( ( 74 ), + 30 ) AS col1
----
-1
74

skipif mysql # not compatible
query II rowsort label-4771
SELECT - 58 / + + 46 AS col1, NULLIF ( ( 74 ), + 30 ) AS col1
----
-1
74

query I rowsort
SELECT ALL + NULLIF ( - 13, - 53 ) col2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT 14 + - 16 + - MAX( - - ( 75 ) )
----
-77

skipif mysql # not compatible
query I rowsort label-4773
SELECT 14 + - 16 + - MAX ( - - ( 75 ) )
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-4774
SELECT + 24 DIV - + 65 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4774
SELECT + 24 / - + 65 AS col2
----
0

query I rowsort
SELECT DISTINCT 77 + - 28 + + 84
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-4776
SELECT ALL - MAX( - 3 ) + MAX( - 76 )
----
-73

skipif mysql # not compatible
query I rowsort label-4776
SELECT ALL - MAX ( - 3 ) + MAX ( - 76 )
----
-73

query I rowsort
SELECT + COALESCE ( + 99, 39 ) AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT DISTINCT + 86 + 69 * - ( - + 66 ) * - + COUNT( ALL + 62 ) + - COUNT( - - 52 ) * 91 * + - 49
----
-9

skipif mysql # not compatible
query I rowsort label-4778
SELECT DISTINCT + 86 + 69 * - ( - + 66 ) * - + COUNT ( ALL + 62 ) + - COUNT ( - - 52 ) * 91 * + - 49
----
-9

query I rowsort
SELECT DISTINCT 96 + 92 AS col1
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT ALL COUNT( - + 13 ) + 53
----
54

skipif mysql # not compatible
query I rowsort label-4780
SELECT ALL COUNT ( - + 13 ) + 53
----
54

query I rowsort
SELECT ALL 31 + + 54 AS col2
----
85

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

skipif mysql # not compatible
query I rowsort label-4782
SELECT + COUNT ( * ) - 2 AS col2
----
-1

query I rowsort
SELECT ALL 49 * 84
----
4116

query I rowsort
SELECT + 13 - + 7
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT ALL SUM( 83 )
----
83

skipif mysql # not compatible
query I rowsort label-4785
SELECT ALL SUM ( 83 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4786
SELECT DISTINCT + COUNT( * ) + + 25 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-4786
SELECT DISTINCT + COUNT ( * ) + + 25 AS col2
----
26

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

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

query I rowsort
SELECT NULLIF ( + 52, 83 + - + 50 )
----
52

query II rowsort
SELECT DISTINCT + 67, + 42 * + 34 AS col2
----
67
1428

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT ALL + COUNT( DISTINCT - + 1 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4790
SELECT ALL + COUNT ( DISTINCT - + 1 ) AS col1
----
1

query I rowsort
SELECT ALL - 99 * 72 * - 19 - - 26 * - + 39 AS col1
----
134418

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

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

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

skipif mysql # not compatible
query I rowsort label-4793
SELECT ALL + COUNT ( * ) / + - 73
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT COALESCE ( - ( - 3 ), SUM( - - 0 ) * + + 16 + + 14 + 5 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-4794
SELECT COALESCE ( - ( - 3 ), SUM ( - - 0 ) * + + 16 + + 14 + 5 ) AS col2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4795
SELECT ALL + 8, 65 * + + COUNT( * ) AS col0
----
8
65

skipif mysql # not compatible
query II rowsort label-4795
SELECT ALL + 8, 65 * + + COUNT ( * ) AS col0
----
8
65

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4797
SELECT DISTINCT + + CASE - 73 WHEN - NULLIF ( - - 31, 94 * 71 ) THEN + 29 WHEN - + 30 THEN + - COUNT( * ) ELSE NULL END / + - COALESCE ( - 44, + 53, + CAST( - 82 AS SIGNED ) + - 11 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4797
SELECT DISTINCT + + CASE - 73 WHEN - NULLIF ( - - 31, 94 * 71 ) THEN + 29 WHEN - + 30 THEN + - COUNT ( * ) ELSE NULL END / + - COALESCE ( - 44, + 53, + CAST ( - 82 AS INTEGER ) + - 11 ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT DISTINCT + - COUNT( * ) * - 14 col1
----
14

skipif mysql # not compatible
query I rowsort label-4798
SELECT DISTINCT + - COUNT ( * ) * - 14 col1
----
14

query I rowsort
SELECT + ( + + 97 ) * + + 39 + - 73 AS col0
----
3710

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4800
SELECT - - CAST( NULL AS SIGNED ) + + COUNT( ALL - + 41 ), 98 AS col1
----
NULL
98

skipif mysql # not compatible
query II rowsort label-4800
SELECT - - CAST ( NULL AS INTEGER ) + + COUNT ( ALL - + 41 ), 98 AS col1
----
NULL
98

query II rowsort
SELECT + + 37 AS col1, - 8 AS col0
----
37
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4802
SELECT - + COUNT( * ) + + 29 DIV - - 75 * + MIN( + 4 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4802
SELECT - + COUNT ( * ) + + 29 / - - 75 * + MIN ( + 4 ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4803
SELECT + - 88 * - COUNT( * ) + COUNT( * ) AS col1, 42 DIV 35 * + 56 * - 95
----
89
-5320

skipif mysql # not compatible
query II rowsort label-4803
SELECT + - 88 * - COUNT ( * ) + COUNT ( * ) AS col1, 42 / 35 * + 56 * - 95
----
89
-5320

query II rowsort
SELECT ALL 52 + + 30 * - 39 AS col2, 84 * + 57
----
-1118
4788

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4805
SELECT ALL + CAST( + - ( 85 ) AS SIGNED ) * - - COUNT( * ) - - - MIN( ALL + 59 ) AS col0
----
-144

skipif mysql # not compatible
query I rowsort label-4805
SELECT ALL + CAST ( + - ( 85 ) AS INTEGER ) * - - COUNT ( * ) - - - MIN ( ALL + 59 ) AS col0
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-4806
SELECT SUM( + 37 ) col2
----
37

skipif mysql # not compatible
query I rowsort label-4806
SELECT SUM ( + 37 ) col2
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4807
SELECT DISTINCT + 82 + + 61 + + + 12 + - + NULLIF ( - 84, 30 ) / + + CASE ( + 11 ) WHEN + - COALESCE ( CAST( + 93 AS SIGNED ), - 78 * - 1 * 61, + COUNT( * ) * 25 + + COUNT( DISTINCT - 73 ) * + ( + 42 ) ) THEN - 91 + 97 + - 69 + 31 * 83 * + COUNT( * ) * + + 25 * + 54 + 84 * + 25 * 63 WHEN 31 + + 11 / - 7 THEN COUNT( * ) ELSE NULL END - - 65 * COALESCE ( AVG ( DISTINCT + 97 ), + 58 - - 72 * - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4807
SELECT DISTINCT + 82 + + 61 + + + 12 + - + NULLIF ( - 84, 30 ) / + + CASE ( + 11 ) WHEN + - COALESCE ( CAST ( + 93 AS INTEGER ), - 78 * - 1 * 61, + COUNT ( * ) * 25 + + COUNT ( DISTINCT - 73 ) * + ( + 42 ) ) THEN - 91 + 97 + - 69 + 31 * 83 * + COUNT ( * ) * + + 25 * + 54 + 84 * + 25 * 63 WHEN 31 + + 11 / - 7 THEN COUNT ( * ) ELSE NULL END - - 65 * COALESCE ( AVG ( DISTINCT + 97 ), + 58 - - 72 * - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT 37 * - + 1 col1
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4809
SELECT - CAST( NULL AS SIGNED ) + - 17 * 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4809
SELECT - CAST ( NULL AS INTEGER ) + - 17 * 52 AS col1
----
NULL

query I rowsort
SELECT + 43 * 18 AS col2
----
774

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4811
SELECT + 14 + + 92 * 95 * + 72 DIV + - COUNT( ALL - 35 ) - - + MIN( - + 84 ) + - 24 + CAST( NULLIF ( + 24, - + 73 ) AS SIGNED ) * 39
----
-628438

skipif mysql # not compatible
query I rowsort label-4811
SELECT + 14 + + 92 * 95 * + 72 / + - COUNT ( ALL - 35 ) - - + MIN ( - + 84 ) + - 24 + CAST ( NULLIF ( + 24, - + 73 ) AS INTEGER ) * 39
----
-628438

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4812
SELECT + 19 - + 17 * COUNT( * ) DIV 71 DIV + - 55 * - ( - + COUNT( * ) ) * - 30 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-4812
SELECT + 19 - + 17 * COUNT ( * ) / 71 / + - 55 * - ( - + COUNT ( * ) ) * - 30 AS col1
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4813
SELECT ALL CAST( NULL AS SIGNED ) - + 36 * + 27 + + - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-4813
SELECT ALL CAST ( NULL AS INTEGER ) - + 36 * + 27 + + - 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT ALL COUNT( + 30 ) - 23 * - + 6 * + 84 * - 35
----
-405719

skipif mysql # not compatible
query I rowsort label-4814
SELECT ALL COUNT ( + 30 ) - 23 * - + 6 * + 84 * - 35
----
-405719

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT + COUNT( - 98 ) + ( - 74 ) + - - 29 AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-4815
SELECT + COUNT ( - 98 ) + ( - 74 ) + - - 29 AS col0
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4816
SELECT ALL 83 DIV COUNT( * ) * - 11
----
-913

skipif mysql # not compatible
query I rowsort label-4816
SELECT ALL 83 / COUNT ( * ) * - 11
----
-913

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4817
SELECT ALL - COUNT( ALL + ( - 67 ) ) DIV + 11 * NULLIF ( - COUNT( * ), - 83 ) - - ( 79 )
----
79

skipif mysql # not compatible
query I rowsort label-4817
SELECT ALL - COUNT ( ALL + ( - 67 ) ) / + 11 * NULLIF ( - COUNT ( * ), - 83 ) - - ( 79 )
----
79

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4819
SELECT CAST( + - 47 AS SIGNED ) AS col2, - 64
----
-47
-64

skipif mysql # not compatible
query II rowsort label-4819
SELECT CAST ( + - 47 AS INTEGER ) AS col2, - 64
----
-47
-64

query I rowsort
SELECT - 97 * - 24 + + + 98
----
2426

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4821
SELECT CAST( SUM( ALL + 35 ) AS SIGNED ) col2
----
35

skipif mysql # not compatible
query I rowsort label-4821
SELECT CAST ( SUM ( ALL + 35 ) AS INTEGER ) col2
----
35

query I rowsort
SELECT DISTINCT ( 62 ) * 78
----
4836

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT 42 * + - 83 + - SUM( ALL 79 ) - - 8 * + 50
----
-3165

skipif mysql # not compatible
query I rowsort label-4823
SELECT 42 * + - 83 + - SUM ( ALL 79 ) - - 8 * + 50
----
-3165

query I rowsort
SELECT DISTINCT + + 30 col2
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4825
SELECT + - 78 * + CAST( COUNT( * ) AS SIGNED ) + + + 4 * - - 46 + - - 54
----
160

skipif mysql # not compatible
query I rowsort label-4825
SELECT + - 78 * + CAST ( COUNT ( * ) AS INTEGER ) + + + 4 * - - 46 + - - 54
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT - + 35 + 62 + + COUNT( * ) + - SUM( ALL 13 ) * + 71 AS col1
----
-895

skipif mysql # not compatible
query I rowsort label-4826
SELECT - + 35 + 62 + + COUNT ( * ) + - SUM ( ALL 13 ) * + 71 AS col1
----
-895

query I rowsort
SELECT DISTINCT + 88 col2
----
88

query I rowsort
SELECT + NULLIF ( ( - - 53 ), - + 57 - + 29 * + + 72 )
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-4829
SELECT - - 60 DIV + + 57
----
1

skipif mysql # not compatible
query I rowsort label-4829
SELECT - - 60 / + + 57
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4830
SELECT + + NULLIF ( 81, - 59 ) * + COALESCE ( COUNT( * ), - 16 * 93 + MAX( ALL - - 3 ) DIV - - 25 - - 2 + + + ( + COUNT( * ) ) ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-4830
SELECT + + NULLIF ( 81, - 59 ) * + COALESCE ( COUNT ( * ), - 16 * 93 + MAX ( ALL - - 3 ) / - - 25 - - 2 + + + ( + COUNT ( * ) ) ) AS col0
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4831
SELECT DISTINCT + - 20 DIV COUNT( * ) * + 91 AS col0
----
-1820

skipif mysql # not compatible
query I rowsort label-4831
SELECT DISTINCT + - 20 / COUNT ( * ) * + 91 AS col0
----
-1820

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT ALL - CASE COUNT( * ) WHEN + 32 THEN NULL WHEN + 37 THEN + COUNT( * ) END * 68 + + + 82 + - COALESCE ( 34, + 58 * - 87 + + 84 ) / SUM( ALL 96 ) / 46 * - 14 + + + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-4832
SELECT ALL - CASE COUNT ( * ) WHEN + 32 THEN NULL WHEN + 37 THEN + COUNT ( * ) END * 68 + + + 82 + - COALESCE ( 34, + 58 * - 87 + + 84 ) / SUM ( ALL 96 ) / 46 * - 14 + + + 51
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4833
SELECT - COUNT( ALL 16 ) DIV + 4 * + 37 DIV + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4833
SELECT - COUNT ( ALL 16 ) / + 4 * + 37 / + COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4834
SELECT ALL COUNT( * ) * - 19 DIV + - 37 + + 50 + + 60 + - 65 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-4834
SELECT ALL COUNT ( * ) * - 19 / + - 37 + + 50 + + 60 + - 65 AS col2
----
45

query I rowsort
SELECT + 20 + + + 12 col1
----
32

query I rowsort
SELECT DISTINCT - COALESCE ( - 52, - 60 )
----
52

query I rowsort
SELECT ALL - - 69 + - - 39
----
108

query I rowsort
SELECT + 61 * 89 + - 35 AS col0
----
5394

query I rowsort
SELECT ALL - 28 + + + 57 * 18
----
998

query I rowsort
SELECT + 47 * + ( - + ( + 14 ) )
----
-658

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4841
SELECT ALL + + 65 + + COUNT( * ) * + + 15 DIV 10, + 15 + + 32 + - - 93 * - 40 DIV + + 10 AS col0
----
66
-325

skipif mysql # not compatible
query II rowsort label-4841
SELECT ALL + + 65 + + COUNT ( * ) * + + 15 / 10, + 15 + + 32 + - - 93 * - 40 / + + 10 AS col0
----
66
-325

query I rowsort
SELECT - 69 + - 37 * + 39
----
-1512

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4843
SELECT 3 * CAST( NULL AS SIGNED ) AS col1
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4844
SELECT NULLIF ( + 56, + COALESCE ( 9, + 31 * - 61 ) ) + + 32 * COUNT( * ) DIV - 17 col1
----
55

skipif mysql # not compatible
query I rowsort label-4844
SELECT NULLIF ( + 56, + COALESCE ( 9, + 31 * - 61 ) ) + + 32 * COUNT ( * ) / - 17 col1
----
55

query I rowsort
SELECT ALL 2 - - 66
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT COUNT( * ) * - 22 AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-4846
SELECT COUNT ( * ) * - 22 AS col2
----
-22

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

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

skipif mysql # not compatible
query I rowsort label-4848
SELECT DISTINCT + 73 / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - COALESCE ( - 18, - 79 + - 52, 75 ) - + 44
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4850
SELECT ALL + SUM( - 5 ) * - CAST( - 31 AS SIGNED ) col2
----
-155

skipif mysql # not compatible
query I rowsort label-4850
SELECT ALL + SUM ( - 5 ) * - CAST ( - 31 AS INTEGER ) col2
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT COUNT( * ) * ( - 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-4851
SELECT COUNT ( * ) * ( - 33 )
----
-33

query I rowsort
SELECT ( + 11 ) * 42 - + 9 AS col1
----
453

query I rowsort
SELECT 28 - + - 78
----
106

query I rowsort
SELECT 44 * - 72
----
-3168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4855
SELECT ALL + NULLIF ( COUNT( * ), + 94 - 28 + + + 90 * - - 46 ) DIV - 38 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4855
SELECT ALL + NULLIF ( COUNT ( * ), + 94 - 28 + + + 90 * - - 46 ) / - 38 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4856
SELECT ALL 85 + - COUNT( ALL + 30 ) AS col1, 48 AS col0
----
84
48

skipif mysql # not compatible
query II rowsort label-4856
SELECT ALL 85 + - COUNT ( ALL + 30 ) AS col1, 48 AS col0
----
84
48

query I rowsort
SELECT ALL 98 * + 64
----
6272

query I rowsort
SELECT ALL - 18 + 97 AS col0
----
79

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT + NULLIF ( + + COUNT( DISTINCT - 79 ), - + 41 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4860
SELECT + NULLIF ( + + COUNT ( DISTINCT - 79 ), - + 41 ) AS col2
----
1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4862
SELECT ALL + CAST( - COALESCE ( - 53, - COUNT( * ) * + MIN( DISTINCT - 22 ) + - 77 ) AS SIGNED ) + + 31 + + 34 * COUNT( + + CAST( NULL AS SIGNED ) ) col0
----
84

skipif mysql # not compatible
query I rowsort label-4862
SELECT ALL + CAST ( - COALESCE ( - 53, - COUNT ( * ) * + MIN ( DISTINCT - 22 ) + - 77 ) AS INTEGER ) + + 31 + + 34 * COUNT ( + + CAST ( NULL AS INTEGER ) ) col0
----
84

query I rowsort
SELECT ALL - + 92 AS col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT - CASE - 39 WHEN - - COALESCE ( MIN( 32 ), - 10 ) THEN - - 53 WHEN 89 * + 59 * AVG ( ALL + 3 ) + + MIN( ALL 80 ) - + 9 THEN NULL WHEN + 3 * - + 59 * - 78 + - - 24 THEN 87 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4864
SELECT - CASE - 39 WHEN - - COALESCE ( MIN ( 32 ), - 10 ) THEN - - 53 WHEN 89 * + 59 * AVG ( ALL + 3 ) + + MIN ( ALL 80 ) - + 9 THEN NULL WHEN + 3 * - + 59 * - 78 + - - 24 THEN 87 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 23 * 23
----
529

query I rowsort
SELECT + NULLIF ( - 39, - 15 )
----
-39

query I rowsort
SELECT - 84 + + 83 AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4868
SELECT - CAST( - + 0 AS SIGNED ) * 35 + + 6
----
6

skipif mysql # not compatible
query I rowsort label-4868
SELECT - CAST ( - + 0 AS INTEGER ) * 35 + + 6
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-4869
SELECT - 67 DIV - 87
----
0

skipif mysql # not compatible
query I rowsort label-4869
SELECT - 67 / - 87
----
0

query I rowsort
SELECT ALL - 16 - + 99 AS col2
----
-115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4871
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) * + - 35 * 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4871
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) * + - 35 * 73 AS col1
----
NULL

query I rowsort
SELECT - 54 * + - 6 * + - 36 + 72 AS col1
----
-11592

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4873
SELECT DISTINCT + 77 * - - CAST( + - COUNT( * ) AS SIGNED )
----
-77

skipif mysql # not compatible
query I rowsort label-4873
SELECT DISTINCT + 77 * - - CAST ( + - COUNT ( * ) AS INTEGER )
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-4874
SELECT 29 + - - 1 DIV - 18 + + 64 + + ( + - 44 ) * 62 * - 60
----
163773

skipif mysql # not compatible
query I rowsort label-4874
SELECT 29 + - - 1 / - 18 + + 64 + + ( + - 44 ) * 62 * - 60
----
163773

query I rowsort
SELECT 38 + - - 75
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4876
SELECT CAST( NULL AS SIGNED ) * ( 79 ) * - + 12 * COUNT( * ) + - 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4876
SELECT CAST ( NULL AS INTEGER ) * ( 79 ) * - + 12 * COUNT ( * ) + - 91 AS col2
----
NULL

query I rowsort
SELECT 19 + - + 69 * - 94 AS col1
----
6505

onlyif mysql # DIV for integer division: 
query I rowsort label-4878
SELECT 54 DIV + - 65 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4878
SELECT 54 / + - 65 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT ALL COUNT( 5 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4879
SELECT ALL COUNT ( 5 ) AS col1
----
1

query I rowsort
SELECT 28 + - 35 AS col2
----
-7

query I rowsort
SELECT 34 * 63 AS col2
----
2142

query I rowsort
SELECT 38 + 33 + - 85 * - 8
----
751

query I rowsort
SELECT 73 + + 50
----
123

query II rowsort
SELECT - 8 col2, + 92 AS col0
----
-8
92

onlyif mysql # DIV for integer division: 
query I rowsort label-4885
SELECT DISTINCT 41 + - 18 DIV - 87 * - + 66
----
41

skipif mysql # not compatible
query I rowsort label-4885
SELECT DISTINCT 41 + - 18 / - 87 * - + 66
----
41

query I rowsort
SELECT 73 + + 66 AS col1
----
139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4887
SELECT ALL - 24 * + + CAST( + - 52 AS SIGNED )
----
1248

skipif mysql # not compatible
query I rowsort label-4887
SELECT ALL - 24 * + + CAST ( + - 52 AS INTEGER )
----
1248

query I rowsort
SELECT 79 * + + 94 * - 4 AS col0
----
-29704

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4889
SELECT ALL + 98 * + 81 + + SUM( - - 86 ) + + ( CASE + + 41 WHEN - ( - - ( - 49 ) ) THEN NULL WHEN - 37 - + ( + 68 ) + + CASE + COALESCE ( - 66, + + CAST( NULL AS SIGNED ) + - COUNT( * ) ) WHEN + 59 * + ( COUNT( * ) ) * + MAX( - 75 ) + + 46 - 23 + + ( + CASE - + ( + MAX( + - 12 ) ) WHEN 49 THEN + MIN( 14 ) - 74 END ) THEN + 25 END + + COUNT( * ) THEN - 19 ELSE NULL END ) + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4889
SELECT ALL + 98 * + 81 + + SUM ( - - 86 ) + + ( CASE + + 41 WHEN - ( - - ( - 49 ) ) THEN NULL WHEN - 37 - + ( + 68 ) + + CASE + COALESCE ( - 66, + + CAST ( NULL AS INTEGER ) + - COUNT ( * ) ) WHEN + 59 * + ( COUNT ( * ) ) * + MAX ( - 75 ) + + 46 - 23 + + ( + CASE - + ( + MAX ( + - 12 ) ) WHEN 49 THEN + MIN ( 14 ) - 74 END ) THEN + 25 END + + COUNT ( * ) THEN - 19 ELSE NULL END ) + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4890
SELECT + - 41 DIV 97 + + + CAST( - 48 AS SIGNED ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-4890
SELECT + - 41 / 97 + + + CAST ( - 48 AS INTEGER ) AS col0
----
-48

query I rowsort
SELECT - 43 * 56 * 96 * - 59
----
13638912

query I rowsort
SELECT + 52 + 43 AS col1
----
95

query I rowsort
SELECT 89 * 84
----
7476

onlyif mysql # aggregate syntax: 
query I rowsort label-4894
SELECT DISTINCT 53 * 1 + - MAX( ALL - 0 )
----
53

skipif mysql # not compatible
query I rowsort label-4894
SELECT DISTINCT 53 * 1 + - MAX ( ALL - 0 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT DISTINCT - - 36 * + NULLIF ( - - 71, - COUNT( * ) * - 83 ) AS col1
----
2556

skipif mysql # not compatible
query I rowsort label-4895
SELECT DISTINCT - - 36 * + NULLIF ( - - 71, - COUNT ( * ) * - 83 ) AS col1
----
2556

query I rowsort
SELECT ALL 73 * - - 60 + + + 71 AS col2
----
4451

query II rowsort
SELECT + - 38 col0, 64
----
-38
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4898
SELECT ALL + NULLIF ( 67, - 18 * + 48 * + 96 + - 13 * - 71 ) * - - CAST( NULL AS SIGNED ) + COUNT( - 72 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4898
SELECT ALL + NULLIF ( 67, - 18 * + 48 * + 96 + - 13 * - 71 ) * - - CAST ( NULL AS INTEGER ) + COUNT ( - 72 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4899
SELECT - 82 DIV 72 + ( + + 96 ) DIV - + 33 + + 16 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-4899
SELECT - 82 / 72 + ( + + 96 ) / - + 33 + + 16 AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT - 46 * - MAX( ALL + 73 ) AS col0
----
3358

skipif mysql # not compatible
query I rowsort label-4900
SELECT - 46 * - MAX ( ALL + 73 ) AS col0
----
3358

onlyif mysql # DIV for integer division: 
query II rowsort label-4901
SELECT + + 0 * + 43 * 60 - 14, + 9 * 92 DIV + 17 AS col2
----
-14
48

skipif mysql # not compatible
query II rowsort label-4901
SELECT + + 0 * + 43 * 60 - 14, + 9 * 92 / + 17 AS col2
----
-14
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4902
SELECT DISTINCT + SUM( + 59 ) DIV - 4 AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-4902
SELECT DISTINCT + SUM ( + 59 ) / - 4 AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT DISTINCT + 32 * - MAX( + ( 9 ) ) - - 78 AS col2
----
-210

skipif mysql # not compatible
query I rowsort label-4903
SELECT DISTINCT + 32 * - MAX ( + ( 9 ) ) - - 78 AS col2
----
-210

query I rowsort
SELECT DISTINCT 17 * 28
----
476

query I rowsort
SELECT ALL 26 * - + 23 AS col1
----
-598

query I rowsort
SELECT ALL - 76 * - CASE 86 WHEN + - 22 THEN NULL ELSE - + 52 + - - 45 END + 19
----
-513

query I rowsort
SELECT + + NULLIF ( 42, - 68 ) AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT + CASE - 19 WHEN + ( + NULLIF ( - ( - + 81 ), - + 95 * + 43 * - 90 + + 9 + + 21 - + COUNT( * ) * + + 91 ) ) / - 68 + COUNT( * ) THEN + COUNT( * ) + COUNT( * ) - - + 28 WHEN - - 15 * 94 * + 50 * - 17 / - + 59 THEN NULL WHEN - - 23 * - - 24 / - + 89 - NULLIF ( - 49, - + 24 / 94 * - - 54 ) THEN NULL WHEN 51 THEN 63 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4908
SELECT + CASE - 19 WHEN + ( + NULLIF ( - ( - + 81 ), - + 95 * + 43 * - 90 + + 9 + + 21 - + COUNT ( * ) * + + 91 ) ) / - 68 + COUNT ( * ) THEN + COUNT ( * ) + COUNT ( * ) - - + 28 WHEN - - 15 * 94 * + 50 * - 17 / - + 59 THEN NULL WHEN - - 23 * - - 24 / - + 89 - NULLIF ( - 49, - + 24 / 94 * - - 54 ) THEN NULL WHEN 51 THEN 63 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4909
SELECT - ( - - CAST( - COUNT( * ) AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-4909
SELECT - ( - - CAST ( - COUNT ( * ) AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT + 78 * - SUM( DISTINCT - 49 ) * - 17
----
-64974

skipif mysql # not compatible
query I rowsort label-4910
SELECT + 78 * - SUM ( DISTINCT - 49 ) * - 17
----
-64974

query I rowsort
SELECT + 48 - - 27 + - - 25 + 41 - - - ( + 68 ) AS col2
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4912
SELECT - NULLIF ( + CASE - - 73 WHEN - 32 THEN 84 + + - 49 - - - CASE - - ( + CAST( CAST( + 43 AS SIGNED ) AS SIGNED ) ) WHEN - 73 / + 26 THEN CASE 41 WHEN 56 / - + 7 THEN - AVG ( 31 ) WHEN - 99 / + + MIN( ALL 79 ) - - COALESCE ( + + 24, - 53 - + 32 ) * - CAST( NULL AS DECIMAL ) + + + 60 THEN + 47 + 63 ELSE NULL END + + 15 ELSE NULL END + MAX( ALL 52 ) / - 81 * COUNT( * ) ELSE NULL END, + NULLIF ( + 30, + 67 - + 26 * - CAST( - 24 AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4912
SELECT - NULLIF ( + CASE - - 73 WHEN - 32 THEN 84 + + - 49 - - - CASE - - ( + CAST ( CAST ( + 43 AS INTEGER ) AS INTEGER ) ) WHEN - 73 / + 26 THEN CASE 41 WHEN 56 / - + 7 THEN - AVG ( 31 ) WHEN - 99 / + + MIN ( ALL 79 ) - - COALESCE ( + + 24, - 53 - + 32 ) * - CAST ( NULL AS REAL ) + + + 60 THEN + 47 + 63 ELSE NULL END + + 15 ELSE NULL END + MAX ( ALL 52 ) / - 81 * COUNT ( * ) ELSE NULL END, + NULLIF ( + 30, + 67 - + 26 * - CAST ( - 24 AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT + 42 * + - 15 AS col1
----
-630

onlyif mysql # DIV for integer division: 
query II rowsort label-4914
SELECT DISTINCT - 10 DIV + 76 AS col2, 73
----
0
73

skipif mysql # not compatible
query II rowsort label-4914
SELECT DISTINCT - 10 / + 76 AS col2, 73
----
0
73

query I rowsort
SELECT DISTINCT - 1 * - 66 AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4916
SELECT ALL MAX( DISTINCT 89 ) + + 93
----
182

skipif mysql # not compatible
query I rowsort label-4916
SELECT ALL MAX ( DISTINCT 89 ) + + 93
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT DISTINCT NULLIF ( - - 32, - + NULLIF ( + + 50, - 86 + - - 27 ) * 81 + + - COUNT( * ) )
----
32

skipif mysql # not compatible
query I rowsort label-4917
SELECT DISTINCT NULLIF ( - - 32, - + NULLIF ( + + 50, - 86 + - - 27 ) * 81 + + - COUNT ( * ) )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4918
SELECT ALL - 29 + COUNT( * ) * - + 25 * - 1 * - 9 + - COALESCE ( - 13, + - 27 ) * + ( - MAX( - 89 ) ) col0
----
903

skipif mysql # not compatible
query I rowsort label-4918
SELECT ALL - 29 + COUNT ( * ) * - + 25 * - 1 * - 9 + - COALESCE ( - 13, + - 27 ) * + ( - MAX ( - 89 ) ) col0
----
903

query I rowsort
SELECT - NULLIF ( - 29, + 12 ) * - + 41 AS col2
----
-1189

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4921
SELECT ALL + 84 + + CAST( + + 83 AS SIGNED ) * - + 24
----
-1908

skipif mysql # not compatible
query I rowsort label-4921
SELECT ALL + 84 + + CAST ( + + 83 AS INTEGER ) * - + 24
----
-1908

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT ALL NULLIF ( - + COUNT( * ), 36 )
----
-1

skipif mysql # not compatible
query I rowsort label-4922
SELECT ALL NULLIF ( - + COUNT ( * ), 36 )
----
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4924
SELECT - NULLIF ( + ( + + 9 ), - 95 / - + COALESCE ( ( - 69 ), - - CAST( NULL AS SIGNED ), - - 0 ) + + 16 * + 42 * + + COUNT( * ) ) + 74 + - 14 + - + CAST( ( + - 58 ) AS SIGNED ) + - 49 + - - 39 + + - ( + - ( - - MAX( 88 ) ) ) AS col1, + COUNT( * ) col0
----
187
1

skipif mysql # not compatible
query II rowsort label-4924
SELECT - NULLIF ( + ( + + 9 ), - 95 / - + COALESCE ( ( - 69 ), - - CAST ( NULL AS INTEGER ), - - 0 ) + + 16 * + 42 * + + COUNT ( * ) ) + 74 + - 14 + - + CAST ( ( + - 58 ) AS INTEGER ) + - 49 + - - 39 + + - ( + - ( - - MAX ( 88 ) ) ) AS col1, + COUNT ( * ) col0
----
187
1

query I rowsort
SELECT - + 56 + - + 40 AS col0
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4926
SELECT DISTINCT + - COUNT( * ) + - + 57, - 44 DIV - 97 AS col2
----
-58
0

skipif mysql # not compatible
query II rowsort label-4926
SELECT DISTINCT + - COUNT ( * ) + - + 57, - 44 / - 97 AS col2
----
-58
0

query I rowsort
SELECT - COALESCE ( 37, - 94 )
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-4928
SELECT DISTINCT + - 71 + 16 DIV + + 67 * + - 59 + + 71
----
0

skipif mysql # not compatible
query I rowsort label-4928
SELECT DISTINCT + - 71 + 16 / + + 67 * + - 59 + + 71
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4929
SELECT DISTINCT + COUNT( * ) / + + ( + + COUNT( * ) ) * + ( CASE 77 WHEN + 74 THEN NULL WHEN COUNT( * ) THEN + 69 / COUNT( * ) * - 76 * - 19 * + - 57 WHEN CASE - - CAST( NULL AS DECIMAL ) WHEN - + SUM( - 51 ) THEN - COALESCE ( + 46, + COUNT( * ) ) END + + + 87 THEN + - 30 + + CASE - MAX( ( + 75 ) ) WHEN - + 93 + + 91 - 20 * - ( - COUNT( * ) ) + - 38 THEN + 24 END ELSE NULL END ) + + 87 - - 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4929
SELECT DISTINCT + COUNT ( * ) / + + ( + + COUNT ( * ) ) * + ( CASE 77 WHEN + 74 THEN NULL WHEN COUNT ( * ) THEN + 69 / COUNT ( * ) * - 76 * - 19 * + - 57 WHEN CASE - - CAST ( NULL AS REAL ) WHEN - + SUM ( - 51 ) THEN - COALESCE ( + 46, + COUNT ( * ) ) END + + + 87 THEN + - 30 + + CASE - MAX ( ( + 75 ) ) WHEN - + 93 + + 91 - 20 * - ( - COUNT ( * ) ) + - 38 THEN + 24 END ELSE NULL END ) + + 87 - - 80 AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT - COUNT( - ( + 93 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4931
SELECT - COUNT ( - ( + 93 ) ) AS col1
----
-1

query I rowsort
SELECT + + 71 * + 34 * + 56
----
135184

query II rowsort
SELECT + NULLIF ( 54, 47 / + AVG ( ALL 48 ) ) AS col1, 1
----
54
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT ALL - COUNT( * ) * - 98 * 79 - + 57 * + 5
----
7457

skipif mysql # not compatible
query I rowsort label-4934
SELECT ALL - COUNT ( * ) * - 98 * 79 - + 57 * + 5
----
7457

query I rowsort
SELECT ALL + NULLIF ( + 86, - ( 32 ) - 10 ) col0
----
86

query II rowsort
SELECT ALL + + 66 * - - 70 + 6 + + ( + - 3 ) AS col0, - 20 + - 49
----
4623
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-4937
SELECT - + CASE - 78 WHEN + 79 THEN NULL WHEN + + 76 - + 95 * 92 - - COUNT( * ) THEN - + 65 END * 28 - - 33 col1, + 47
----
NULL
47

skipif mysql # not compatible
query II rowsort label-4937
SELECT - + CASE - 78 WHEN + 79 THEN NULL WHEN + + 76 - + 95 * 92 - - COUNT ( * ) THEN - + 65 END * 28 - - 33 col1, + 47
----
NULL
47

query I rowsort
SELECT ALL + - NULLIF ( + 34, + 3 )
----
-34

query I rowsort
SELECT + 61 * - + 85 AS col0
----
-5185

query I rowsort
SELECT NULLIF ( + - 11, + - 48 * 27 ) AS col0
----
-11

query I rowsort
SELECT + ( - - 19 )
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-4942
SELECT 23 * + - 85 * - - 0 + 63 DIV - 57 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4942
SELECT 23 * + - 85 * - - 0 + 63 / - 57 AS col2
----
-1

query I rowsort
SELECT + 87 * - ( + + 27 ) * - 77 - - 15 * - 2 AS col2
----
180843

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4944
SELECT + 1 + - COUNT( * ) DIV 52 * - - COUNT( * ) + + 53 + - 82
----
-28

skipif mysql # not compatible
query I rowsort label-4944
SELECT + 1 + - COUNT ( * ) / 52 * - - COUNT ( * ) + + 53 + - 82
----
-28

query I rowsort
SELECT ALL 13 * + 97 AS col1
----
1261

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT DISTINCT 49 * + 94 + + 2 - + 78 * - MAX( DISTINCT 72 )
----
10224

skipif mysql # not compatible
query I rowsort label-4946
SELECT DISTINCT 49 * + 94 + + 2 - + 78 * - MAX ( DISTINCT 72 )
----
10224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4947
SELECT ALL ( NULLIF ( + CAST( NULL AS SIGNED ), + COUNT( * ) ) ) * + - 66 - 99 + - COUNT( * ) + + COALESCE ( - + 25, - 38 ) / COUNT( * ) / 15 / + MAX( - 29 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4947
SELECT ALL ( NULLIF ( + CAST ( NULL AS INTEGER ), + COUNT ( * ) ) ) * + - 66 - 99 + - COUNT ( * ) + + COALESCE ( - + 25, - 38 ) / COUNT ( * ) / 15 / + MAX ( - 29 ) col1
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4949
SELECT + COUNT( * ) * + 52 DIV + ( - - 13 ), 54 AS col1
----
4
54

skipif mysql # not compatible
query II rowsort label-4949
SELECT + COUNT ( * ) * + 52 / + ( - - 13 ), 54 AS col1
----
4
54

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

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

query I rowsort
SELECT ALL NULLIF ( + 75, 86 + - 24 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4952
SELECT + CASE - - 1 WHEN + 32 * - 50 * 52 THEN + 41 ELSE NULL END / + MIN( + - 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4952
SELECT + CASE - - 1 WHEN + 32 * - 50 * 52 THEN + 41 ELSE NULL END / + MIN ( + - 49 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4953
SELECT ALL + 5 * - + 62 + + COUNT( * ) * - CAST( NULL AS DECIMAL ) * - NULLIF ( 0, + + 77 ) * + - ( + COUNT( * ) ) / + ( + 40 ) + - 15 + + + 76 + - + CAST( + - 71 AS SIGNED ) * + 42 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4953
SELECT ALL + 5 * - + 62 + + COUNT ( * ) * - CAST ( NULL AS REAL ) * - NULLIF ( 0, + + 77 ) * + - ( + COUNT ( * ) ) / + ( + 40 ) + - 15 + + + 76 + - + CAST ( + - 71 AS INTEGER ) * + 42 + COUNT ( * )
----
NULL

query II rowsort
SELECT ALL + 62 AS col2, 23 * 49
----
62
1127

query I rowsort
SELECT + 57 + + ( - 67 ) AS col1
----
-10

query I rowsort
SELECT - 61 * - + 68 AS col0
----
4148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4957
SELECT ALL ( CAST( NULL AS SIGNED ) ) * - 7 + + 47 + + - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-4957
SELECT ALL ( CAST ( NULL AS INTEGER ) ) * - 7 + + 47 + + - 18
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4958
SELECT - MIN( - - 31 ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-4958
SELECT - MIN ( - - 31 ) AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT ALL - - COUNT( * ) * + NULLIF ( + - 87, - COALESCE ( + AVG ( ALL - 40 ), + 88 * - 94 + + ( - + 18 ) ) / - 92 ) col1
----
-87

skipif mysql # not compatible
query I rowsort label-4959
SELECT ALL - - COUNT ( * ) * + NULLIF ( + - 87, - COALESCE ( + AVG ( ALL - 40 ), + 88 * - 94 + + ( - + 18 ) ) / - 92 ) col1
----
-87

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

skipif mysql # not compatible
query I rowsort label-4960
SELECT + CAST ( NULL AS REAL ) + + - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT + 97 * + 42
----
4074

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4962
SELECT + COUNT( * ) / + CAST( NULL AS SIGNED ) + + 68 + + + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-4962
SELECT + COUNT ( * ) / + CAST ( NULL AS INTEGER ) + + 68 + + + 67
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4963
SELECT - - 45 * COUNT( * ) * - - 8 + + 99 / + CAST( NULL AS SIGNED ) - + 82 / + 70 / + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-4963
SELECT - - 45 * COUNT ( * ) * - - 8 + + 99 / + CAST ( NULL AS INTEGER ) - + 82 / + 70 / + 12
----
NULL

query I rowsort
SELECT ( + 35 ) AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT - COUNT( * ) * ( 98 ) + + - 29
----
-127

skipif mysql # not compatible
query I rowsort label-4965
SELECT - COUNT ( * ) * ( 98 ) + + - 29
----
-127

query II rowsort
SELECT DISTINCT - 75 AS col2, - 84 + 69 AS col1
----
-75
-15

query I rowsort
SELECT 49 * 22 AS col2
----
1078

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4968
SELECT + 14 + + + CAST( 57 AS SIGNED ) * - 39 AS col2
----
-2209

skipif mysql # not compatible
query I rowsort label-4968
SELECT + 14 + + + CAST ( 57 AS INTEGER ) * - 39 AS col2
----
-2209

query II rowsort
SELECT ALL + 1 * - 61, + 81 AS col2
----
-61
81

query II rowsort
SELECT ALL + 28 + - 15 AS col2, 14 * - 62 col2
----
13
-868

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT DISTINCT 31 + - 84 * - CASE 43 WHEN COALESCE ( - AVG ( - 70 ), - + 8 * + ( - + 33 ) ) THEN NULL WHEN + 2 / + - 94 THEN - + 12 * + 74 + - COUNT( * ) + CASE 70 WHEN 77 THEN + - NULLIF ( - 98, 3 + MAX( - + 95 ) ) WHEN + 4 * + 43 + 55 THEN NULL ELSE + 45 END + + 97 + - + COUNT( * ) / - + 4 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4971
SELECT DISTINCT 31 + - 84 * - CASE 43 WHEN COALESCE ( - AVG ( - 70 ), - + 8 * + ( - + 33 ) ) THEN NULL WHEN + 2 / + - 94 THEN - + 12 * + 74 + - COUNT ( * ) + CASE 70 WHEN 77 THEN + - NULLIF ( - 98, 3 + MAX ( - + 95 ) ) WHEN + 4 * + 43 + 55 THEN NULL ELSE + 45 END + + 97 + - + COUNT ( * ) / - + 4 END
----
NULL

query I rowsort
SELECT ALL 89 + ( + 43 ) AS col1
----
132

query I rowsort
SELECT ALL 66 + + 31 + - 21
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-4974
SELECT CASE + + 12 WHEN + - 1 * 79 + + 22 + 68 / + 69 * + ( - 31 ) THEN - COALESCE ( COUNT( * ), - - COUNT( * ), + - 15 * 83 * - 77 ) * - 13 WHEN + COALESCE ( - 51, - 6 ) THEN + 54 * - 99 WHEN - COUNT( 33 ) THEN NULL END * + 16, - 40 AS col1
----
NULL
-40

skipif mysql # not compatible
query II rowsort label-4974
SELECT CASE + + 12 WHEN + - 1 * 79 + + 22 + 68 / + 69 * + ( - 31 ) THEN - COALESCE ( COUNT ( * ), - - COUNT ( * ), + - 15 * 83 * - 77 ) * - 13 WHEN + COALESCE ( - 51, - 6 ) THEN + 54 * - 99 WHEN - COUNT ( 33 ) THEN NULL END * + 16, - 40 AS col1
----
NULL
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4975
SELECT ALL MIN( ALL 82 ) DIV 23 - COUNT( * ), - 32 * + 92 AS col0
----
2
-2944

skipif mysql # not compatible
query II rowsort label-4975
SELECT ALL MIN ( ALL 82 ) / 23 - COUNT ( * ), - 32 * + 92 AS col0
----
2
-2944

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

skipif mysql # not compatible
query I rowsort label-4976
SELECT DISTINCT + 83 + + COUNT ( * ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-4977
SELECT 63 * - COUNT( * ) AS col0, 37
----
-63
37

skipif mysql # not compatible
query II rowsort label-4977
SELECT 63 * - COUNT ( * ) AS col0, 37
----
-63
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT DISTINCT SUM( + + 84 ) * + 57 AS col2
----
4788

skipif mysql # not compatible
query I rowsort label-4978
SELECT DISTINCT SUM ( + + 84 ) * + 57 AS col2
----
4788

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT ALL SUM( 49 ) - + + 85 * - NULLIF ( + 43, - - 39 ) col2
----
3704

skipif mysql # not compatible
query I rowsort label-4979
SELECT ALL SUM ( 49 ) - + + 85 * - NULLIF ( + 43, - - 39 ) col2
----
3704

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4980
SELECT + COUNT( * ) - + 46 DIV - 59 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4980
SELECT + COUNT ( * ) - + 46 / - 59 AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4981
SELECT + 55 + SUM( 47 ) * + + 37, 86 AS col0
----
1794
86

skipif mysql # not compatible
query II rowsort label-4981
SELECT + 55 + SUM ( 47 ) * + + 37, 86 AS col0
----
1794
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4982
SELECT - 95 DIV - + COUNT( * ) + CASE WHEN NOT 27 IS NULL THEN - 4 ELSE NULL END
----
91

skipif mysql # not compatible
query I rowsort label-4982
SELECT - 95 / - + COUNT ( * ) + CASE WHEN NOT 27 IS NULL THEN - 4 ELSE NULL END
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT - - MIN( DISTINCT 24 )
----
24

skipif mysql # not compatible
query I rowsort label-4983
SELECT - - MIN ( DISTINCT 24 )
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-4984
SELECT ALL + 88 DIV + + 56 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4984
SELECT ALL + 88 / + + 56 AS col2
----
1

query I rowsort
SELECT DISTINCT 49 * - 85
----
-4165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4986
SELECT ALL + + CAST( NULL AS SIGNED ) * - - COUNT( * ) + + 93 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4986
SELECT ALL + + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) + + 93 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4987
SELECT CAST( + + 17 AS SIGNED ) DIV - NULLIF ( - - 13, - - COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-4987
SELECT CAST ( + + 17 AS INTEGER ) / - NULLIF ( - - 13, - - COUNT ( * ) ) col2
----
-1

query I rowsort
SELECT - 37 - - 62
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4989
SELECT COUNT( * ), 44 + - MAX( DISTINCT - 26 ) + + 31 * + 39 + + 69 DIV - 73 + 26 DIV - 40 AS col2
----
1
1279

skipif mysql # not compatible
query II rowsort label-4989
SELECT COUNT ( * ), 44 + - MAX ( DISTINCT - 26 ) + + 31 * + 39 + + 69 / - 73 + 26 / - 40 AS col2
----
1
1279

onlyif mysql # DIV for integer division: 
query I rowsort label-4990
SELECT 38 DIV + 18
----
2

skipif mysql # not compatible
query I rowsort label-4990
SELECT 38 / + 18
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT ALL 8 + - COUNT( * ) * - - 92 AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-4991
SELECT ALL 8 + - COUNT ( * ) * - - 92 AS col2
----
-84

query I rowsort
SELECT DISTINCT ( - ( - - 55 ) ) + - 49 AS col1
----
-104

query I rowsort
SELECT ALL + 96 + - 80 - + 2 + + 7 + - 18 * + 96
----
-1707

onlyif mysql # DIV for integer division: 
query I rowsort label-4994
SELECT 63 - - 50 DIV 42
----
64

skipif mysql # not compatible
query I rowsort label-4994
SELECT 63 - - 50 / 42
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4995
SELECT ALL + 70 * + - ( 19 ) AS col1, COUNT( * ) DIV + 65 AS col1
----
-1330
0

skipif mysql # not compatible
query II rowsort label-4995
SELECT ALL + 70 * + - ( 19 ) AS col1, COUNT ( * ) / + 65 AS col1
----
-1330
0

query I rowsort
SELECT 73 * 17 AS col0
----
1241

query I rowsort
SELECT ALL + 97 + + 85 AS col0
----
182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4998
SELECT 53 + + COUNT( * ) * - - ( + 73 ) + - CAST( + 24 AS SIGNED ) DIV - COUNT( * ) - - + 19
----
169

skipif mysql # not compatible
query I rowsort label-4998
SELECT 53 + + COUNT ( * ) * - - ( + 73 ) + - CAST ( + 24 AS INTEGER ) / - COUNT ( * ) - - + 19
----
169

onlyif mysql # aggregate syntax: 
query II rowsort label-4999
SELECT + 49 AS col1, NULLIF ( - + 15, COUNT( * ) / - - 37 * - 47 ) AS col2
----
49
-15

skipif mysql # not compatible
query II rowsort label-4999
SELECT + 49 AS col1, NULLIF ( - + 15, COUNT ( * ) / - - 37 * - 47 ) AS col2
----
49
-15

query I rowsort
SELECT 63 + ( - 31 ) AS col0
----
32

query I rowsort
SELECT 97 * 43 - + + 68 col2
----
4103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-5002
SELECT ALL + 34 - - - 31 * 52 * - CAST( 86 AS SIGNED ) AS col0, MAX( DISTINCT - 67 ) * 89 col2, 15 AS col1
----
138666
-5963
15

skipif mysql # not compatible
query III rowsort label-5002
SELECT ALL + 34 - - - 31 * 52 * - CAST ( 86 AS INTEGER ) AS col0, MAX ( DISTINCT - 67 ) * 89 col2, 15 AS col1
----
138666
-5963
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT ALL - COUNT( * ) - - 66
----
65

skipif mysql # not compatible
query I rowsort label-5003
SELECT ALL - COUNT ( * ) - - 66
----
65

query I rowsort
SELECT - 82 * + 85
----
-6970

query I rowsort
SELECT ALL - 62 * + 49
----
-3038

onlyif mysql # DIV for integer division: 
query I rowsort label-5006
SELECT - ( - 95 ) + + + NULLIF ( - 64, + - CASE + - 37 WHEN 4 THEN AVG ( 78 ) END ) * 54 DIV + 52
----
29

skipif mysql # not compatible
query I rowsort label-5006
SELECT - ( - 95 ) + + + NULLIF ( - 64, + - CASE + - 37 WHEN 4 THEN AVG ( 78 ) END ) * 54 / + 52
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5007
SELECT - - 50 + - - ( COALESCE ( + + 17, 3 + + 9 DIV 89 ) ) + - + COUNT( * ) + 48 * + + COUNT( * ) AS col2, - MIN( DISTINCT 35 ) * 96 + - CASE - 96 WHEN - 17 DIV + - 13 THEN + - 88 DIV ( + - ( + COUNT( ALL - + 45 ) ) ) - + + 16 * COUNT( * ) ELSE NULL END * - COUNT( * ) AS col0
----
114
NULL

skipif mysql # not compatible
query II rowsort label-5007
SELECT - - 50 + - - ( COALESCE ( + + 17, 3 + + 9 / 89 ) ) + - + COUNT ( * ) + 48 * + + COUNT ( * ) AS col2, - MIN ( DISTINCT 35 ) * 96 + - CASE - 96 WHEN - 17 / + - 13 THEN + - 88 / ( + - ( + COUNT ( ALL - + 45 ) ) ) - + + 16 * COUNT ( * ) ELSE NULL END * - COUNT ( * ) AS col0
----
114
NULL

query I rowsort
SELECT + 52 * - 22
----
-1144

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT - + 47 + - COUNT( DISTINCT - 24 ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-5009
SELECT - + 47 + - COUNT ( DISTINCT - 24 ) AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5010
SELECT + 80 + + MAX( - 98 ) * - + 89 * - 90
----
-784900

skipif mysql # not compatible
query I rowsort label-5010
SELECT + 80 + + MAX ( - 98 ) * - + 89 * - 90
----
-784900

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT - + 98 * + 64 + ( COUNT( DISTINCT - + 10 ) ) * + - 79 AS col2
----
-6351

skipif mysql # not compatible
query I rowsort label-5011
SELECT - + 98 * + 64 + ( COUNT ( DISTINCT - + 10 ) ) * + - 79 AS col2
----
-6351

onlyif mysql # aggregate syntax: 
query I rowsort label-5012
SELECT ALL + MAX( DISTINCT - 18 ) * - 96
----
1728

skipif mysql # not compatible
query I rowsort label-5012
SELECT ALL + MAX ( DISTINCT - 18 ) * - 96
----
1728

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT DISTINCT 81 * - + COUNT( * ) + + ( 89 ) - + + 64 + + 67 + + 86 + + 96 AS col0
----
193

skipif mysql # not compatible
query I rowsort label-5013
SELECT DISTINCT 81 * - + COUNT ( * ) + + ( 89 ) - + + 64 + + 67 + + 86 + + 96 AS col0
----
193

onlyif mysql # aggregate syntax: 
query I rowsort label-5014
SELECT MIN( DISTINCT + + 23 ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-5014
SELECT MIN ( DISTINCT + + 23 ) AS col0
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-5015
SELECT ALL - 40 AS col1, + COALESCE ( - 69, - + COUNT( * ) + - COUNT( * ), + 24 )
----
-40
-69

skipif mysql # not compatible
query II rowsort label-5015
SELECT ALL - 40 AS col1, + COALESCE ( - 69, - + COUNT ( * ) + - COUNT ( * ), + 24 )
----
-40
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT ALL 38 + + COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-5016
SELECT ALL 38 + + COUNT ( * )
----
39

query I rowsort
SELECT - + 46 + ( 29 ) * + - 87
----
-2569

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT ALL - + 51 * - 86 + - 4 * - 73 + + SUM( ALL + + 48 ) AS col2
----
4726

skipif mysql # not compatible
query I rowsort label-5018
SELECT ALL - + 51 * - 86 + - 4 * - 73 + + SUM ( ALL + + 48 ) AS col2
----
4726

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5019
SELECT 71 DIV + ( + MIN( ALL - 64 ) ) + - 44 + 89 * - 11
----
-1024

skipif mysql # not compatible
query I rowsort label-5019
SELECT 71 / + ( + MIN ( ALL - 64 ) ) + - 44 + 89 * - 11
----
-1024

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5021
SELECT ALL 88 * + 49 + CAST( - 67 AS SIGNED ) AS col1
----
4245

skipif mysql # not compatible
query I rowsort label-5021
SELECT ALL 88 * + 49 + CAST ( - 67 AS INTEGER ) AS col1
----
4245

onlyif mysql # aggregate syntax: 
query I rowsort label-5022
SELECT + NULLIF ( - - 92, + COUNT( * ) + + + ( 66 ) + + 99 * - + 91 * - - COUNT( * ) ) col1
----
92

skipif mysql # not compatible
query I rowsort label-5022
SELECT + NULLIF ( - - 92, + COUNT ( * ) + + + ( 66 ) + + 99 * - + 91 * - - COUNT ( * ) ) col1
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5023
SELECT ALL ( - + 15 ) * + CAST( NULL AS SIGNED ) + - 71 / + SUM( + 44 ) col2, 74 AS col1
----
NULL
74

skipif mysql # not compatible
query II rowsort label-5023
SELECT ALL ( - + 15 ) * + CAST ( NULL AS INTEGER ) + - 71 / + SUM ( + 44 ) col2, 74 AS col1
----
NULL
74

query I rowsort
SELECT NULLIF ( - 0, + 73 ) * - + 25 + 85 + - + 58 * - - 89 * 71 * + - 2
----
733089

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT + CASE 98 WHEN - 59 * 71 * - 44 THEN NULL ELSE - COUNT( * ) END AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5025
SELECT + CASE 98 WHEN - 59 * 71 * - 44 THEN NULL ELSE - COUNT ( * ) END AS col1
----
-1

query I rowsort
SELECT CASE 27 WHEN 19 THEN + 17 END
----
NULL

query I rowsort
SELECT + 48 + 88 - + 36
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-5028
SELECT ALL COUNT( * ) * - COUNT( * ) + ( 44 ) col0
----
43

skipif mysql # not compatible
query I rowsort label-5028
SELECT ALL COUNT ( * ) * - COUNT ( * ) + ( 44 ) col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT + 60 * MIN( ALL - 66 )
----
-3960

skipif mysql # not compatible
query I rowsort label-5029
SELECT + 60 * MIN ( ALL - 66 )
----
-3960

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT + CASE - - COALESCE ( - 87, 68 ) WHEN 51 THEN + COUNT( * ) + - COUNT( * ) + 75 + + 19 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5030
SELECT + CASE - - COALESCE ( - 87, 68 ) WHEN 51 THEN + COUNT ( * ) + - COUNT ( * ) + 75 + + 19 END AS col0
----
NULL

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

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

query I rowsort
SELECT DISTINCT 48 * + + 6 * + + 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5033
SELECT CASE - 59 WHEN 96 THEN NULL WHEN - 22 THEN + + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5033
SELECT CASE - 59 WHEN 96 THEN NULL WHEN - 22 THEN + + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5034
SELECT ALL 86 * ( + + COALESCE ( 77, 63, + + 45 ) ) - + + MIN( DISTINCT + 48 ) DIV COALESCE ( + + COUNT( * ), + 48 ) * MAX( 57 ) + - 99 + 53 * + 96 AS col0
----
8875

skipif mysql # not compatible
query I rowsort label-5034
SELECT ALL 86 * ( + + COALESCE ( 77, 63, + + 45 ) ) - + + MIN ( DISTINCT + 48 ) / COALESCE ( + + COUNT ( * ), + 48 ) * MAX ( 57 ) + - 99 + 53 * + 96 AS col0
----
8875

onlyif mysql # aggregate syntax: 
query I rowsort label-5035
SELECT + 6 * CASE + 35 WHEN MIN( + - 56 ) THEN ( - - 0 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5035
SELECT + 6 * CASE + 35 WHEN MIN ( + - 56 ) THEN ( - - 0 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT DISTINCT 12 * - - MIN( ALL + 19 ) * + 8 + + COALESCE ( + 86, + COUNT( * ) * COALESCE ( 48, + 99 + + - COUNT( * ) ) * 42, + 64 * + 54 * 25 )
----
1910

skipif mysql # not compatible
query I rowsort label-5036
SELECT DISTINCT 12 * - - MIN ( ALL + 19 ) * + 8 + + COALESCE ( + 86, + COUNT ( * ) * COALESCE ( 48, + 99 + + - COUNT ( * ) ) * 42, + 64 * + 54 * 25 )
----
1910

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5038
SELECT SUM( ALL - ( + 0 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5038
SELECT SUM ( ALL - ( + 0 ) ) AS col0
----
0

query I rowsort
SELECT + 81 - 61
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5040
SELECT - + 88 * COUNT( * ) * + 75 AS col2
----
-6600

skipif mysql # not compatible
query I rowsort label-5040
SELECT - + 88 * COUNT ( * ) * + 75 AS col2
----
-6600

query I rowsort
SELECT ALL - + 99 * - 70 * - ( + 35 ) + 15
----
-242535

onlyif mysql # aggregate syntax: 
query I rowsort label-5042
SELECT - - COUNT( + + 18 ) * - 99
----
-99

skipif mysql # not compatible
query I rowsort label-5042
SELECT - - COUNT ( + + 18 ) * - 99
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5043
SELECT - COUNT( ( - 10 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5043
SELECT - COUNT ( ( - 10 ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5044
SELECT - + 44 * 63 DIV - 98 + + COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-5044
SELECT - + 44 * 63 / - 98 + + COUNT ( * )
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5045
SELECT ALL - CAST( + + COUNT( * ) AS SIGNED ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-5045
SELECT ALL - CAST ( + + COUNT ( * ) AS INTEGER ) col1
----
-1

query I rowsort
SELECT ( + 9 ) col0
----
9

query I rowsort
SELECT ALL - ( 96 ) * - 58 AS col0
----
5568

onlyif mysql # aggregate syntax: 
query I rowsort label-5048
SELECT ALL + + COUNT( * ) + - 91 col2
----
-90

skipif mysql # not compatible
query I rowsort label-5048
SELECT ALL + + COUNT ( * ) + - 91 col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT - 39 + COUNT( DISTINCT - 72 ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-5049
SELECT - 39 + COUNT ( DISTINCT - 72 ) AS col2
----
-38

query II rowsort
SELECT - + 9 AS col2, - 34
----
-9
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-5051
SELECT - 53 DIV - - 57 col0
----
0

skipif mysql # not compatible
query I rowsort label-5051
SELECT - 53 / - - 57 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5052
SELECT ALL + - 45 + + + COUNT( * ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-5052
SELECT ALL + - 45 + + + COUNT ( * ) AS col0
----
-44

query II rowsort
SELECT 41 col2, 31 col0
----
41
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT - COUNT( DISTINCT + ( - 37 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5054
SELECT - COUNT ( DISTINCT + ( - 37 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5055
SELECT - 10 + + + 61 + - 94 * + SUM( ALL + - CAST( NULL AS SIGNED ) ) + 62 + - + 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5055
SELECT - 10 + + + 61 + - 94 * + SUM ( ALL + - CAST ( NULL AS INTEGER ) ) + 62 + - + 62 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5056
SELECT ALL + + 32 DIV + - 51 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5056
SELECT ALL + + 32 / + - 51 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5057
SELECT - + 0 DIV + 8 * - - 88 col2
----
0

skipif mysql # not compatible
query I rowsort label-5057
SELECT - + 0 / + 8 * - - 88 col2
----
0

query I rowsort
SELECT + + ( 85 ) + 63
----
148

query I rowsort
SELECT ALL 72 + - + 29 col2
----
43

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5061
SELECT - + MIN( ( - CAST( + - 70 AS SIGNED ) ) ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-5061
SELECT - + MIN ( ( - CAST ( + - 70 AS INTEGER ) ) ) AS col0
----
-70

query I rowsort
SELECT ALL 66 * - 57 * 79
----
-297198

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5064
SELECT + ( SUM( - 93 ) )
----
-93

skipif mysql # not compatible
query I rowsort label-5064
SELECT + ( SUM ( - 93 ) )
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-5065
SELECT + COUNT( * ) * + 96 AS col0, 64 AS col2
----
96
64

skipif mysql # not compatible
query II rowsort label-5065
SELECT + COUNT ( * ) * + 96 AS col0, 64 AS col2
----
96
64

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

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

query I rowsort
SELECT + 83 * - 16 + + 44
----
-1284

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5068
SELECT CAST( 69 AS SIGNED ) AS col0, + MIN( DISTINCT - 52 ) DIV - + 59
----
69
0

skipif mysql # not compatible
query II rowsort label-5068
SELECT CAST ( 69 AS INTEGER ) AS col0, + MIN ( DISTINCT - 52 ) / - + 59
----
69
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT COUNT( * ) * + + COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5069
SELECT COUNT ( * ) * + + COUNT ( * ) col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5070
SELECT ALL 0 DIV SUM( DISTINCT - ( - 97 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5070
SELECT ALL 0 / SUM ( DISTINCT - ( - 97 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT DISTINCT - NULLIF ( COUNT( * ), - 9 * - 39 * + 23 - 80 * - 73 * - + 10 * - 7 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-5071
SELECT DISTINCT - NULLIF ( COUNT ( * ), - 9 * - 39 * + 23 - 80 * - 73 * - + 10 * - 7 ) col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5072
SELECT CAST( NULL AS SIGNED ) * 50 * + 6 - + + CAST( 31 AS SIGNED ) + - 48 - 35 AS col2, + COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5072
SELECT CAST ( NULL AS INTEGER ) * 50 * + 6 - + + CAST ( 31 AS INTEGER ) + - 48 - 35 AS col2, + COUNT ( * ) AS col1
----
NULL
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5073
SELECT SUM( DISTINCT + + 36 ) DIV - COUNT( DISTINCT 41 ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-5073
SELECT SUM ( DISTINCT + + 36 ) / - COUNT ( DISTINCT 41 ) AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5074
SELECT ( - + ( + + 2 ) ) * - COALESCE ( - + 66, - SUM( 15 ) + 15 )
----
-132

skipif mysql # not compatible
query I rowsort label-5074
SELECT ( - + ( + + 2 ) ) * - COALESCE ( - + 66, - SUM ( 15 ) + 15 )
----
-132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5075
SELECT CASE + SUM( + - CAST( NULL AS SIGNED ) ) WHEN + ( + 75 ) THEN + 81 ELSE NULL END + - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-5075
SELECT CASE + SUM ( + - CAST ( NULL AS INTEGER ) ) WHEN + ( + 75 ) THEN + 81 ELSE NULL END + - 18
----
NULL

query I rowsort
SELECT ALL + 53 * - 3 col0
----
-159

query I rowsort
SELECT ( + 55 ) + + 41
----
96

query I rowsort
SELECT + ( - - 11 ) - + 6 AS col2
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5079
SELECT ALL + + 84 DIV 75 * - 11 AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-5079
SELECT ALL + + 84 / 75 * - 11 AS col0
----
-11

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

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

query II rowsort
SELECT ALL + - 9 + 88 col2, 59
----
79
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5082
SELECT 90 + + SUM( 93 ), 61 * + COALESCE ( - 10, - CAST( NULL AS SIGNED ), - + ( + 26 ) ) AS col0
----
183
-610

skipif mysql # not compatible
query II rowsort label-5082
SELECT 90 + + SUM ( 93 ), 61 * + COALESCE ( - 10, - CAST ( NULL AS INTEGER ), - + ( + 26 ) ) AS col0
----
183
-610

onlyif mysql # aggregate syntax: 
query I rowsort label-5083
SELECT 36 + COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-5083
SELECT 36 + COUNT ( * )
----
37

query I rowsort
SELECT ALL - - 80 + + - 78 + ( - - 86 )
----
88

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

query I rowsort
SELECT 0 + + + 3 + + + 25 * + 86 * - 58 AS col0
----
-124697

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT DISTINCT COALESCE ( - + 96, - 3 * MIN( ALL + 9 ) )
----
-96

skipif mysql # not compatible
query I rowsort label-5087
SELECT DISTINCT COALESCE ( - + 96, - 3 * MIN ( ALL + 9 ) )
----
-96

query I rowsort
SELECT DISTINCT 5 + ( - 60 ) AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT 39 * - COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-5089
SELECT 39 * - COUNT ( * )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT ALL - COALESCE ( + + MAX( + 33 ), - 85 ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-5090
SELECT ALL - COALESCE ( + + MAX ( + 33 ), - 85 ) AS col0
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-5091
SELECT 69 + + + 88 * 88 col1, COUNT( * )
----
7813
1

skipif mysql # not compatible
query II rowsort label-5091
SELECT 69 + + + 88 * 88 col1, COUNT ( * )
----
7813
1

onlyif mysql # DIV for integer division: 
query II rowsort label-5092
SELECT DISTINCT + 83 - 38 AS col2, ( - - 7 ) DIV + 45 * + + 65 + - 14
----
45
-14

skipif mysql # not compatible
query II rowsort label-5092
SELECT DISTINCT + 83 - 38 AS col2, ( - - 7 ) / + 45 * + + 65 + - 14
----
45
-14

query I rowsort
SELECT 47 * 5 AS col1
----
235

query I rowsort
SELECT 53 + 7
----
60

query II rowsort
SELECT 14, ( 80 ) AS col1
----
14
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5096
SELECT 38 DIV 11 + - - COUNT( * ) - - 56 AS col1, 13 AS col1
----
60
13

skipif mysql # not compatible
query II rowsort label-5096
SELECT 38 / 11 + - - COUNT ( * ) - - 56 AS col1, 13 AS col1
----
60
13

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5097
SELECT 2 * 78 - CAST( + + CAST( - 41 AS SIGNED ) AS SIGNED ) + 39 + + + 87 DIV - NULLIF ( + 27, - 10 )
----
233

skipif mysql # not compatible
query I rowsort label-5097
SELECT 2 * 78 - CAST ( + + CAST ( - 41 AS INTEGER ) AS INTEGER ) + 39 + + + 87 / - NULLIF ( + 27, - 10 )
----
233

query I rowsort
SELECT ALL - 66 - + 8 AS col1
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5099
SELECT DISTINCT - 5, - 48 DIV + 88 DIV + - COUNT( * ) AS col1
----
-5
0

skipif mysql # not compatible
query II rowsort label-5099
SELECT DISTINCT - 5, - 48 / + 88 / + - COUNT ( * ) AS col1
----
-5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5100
SELECT 82 * - 0 * COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5100
SELECT 82 * - 0 * COUNT ( * ) AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-5101
SELECT CAST ( NULL AS INTEGER ) * 26 + - - 39 + + COUNT ( DISTINCT 2 ) AS col1
----
NULL

query I rowsort
SELECT ( + ( + - 65 ) ) * 67 + - 91
----
-4446

query I rowsort
SELECT 72 * 82
----
5904

onlyif mysql # aggregate syntax: 
query II rowsort label-5104
SELECT 27 AS col0, - COUNT( ALL 58 )
----
27
-1

skipif mysql # not compatible
query II rowsort label-5104
SELECT 27 AS col0, - COUNT ( ALL 58 )
----
27
-1

query II rowsort
SELECT + 57, + 32 AS col2
----
57
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5106
SELECT DISTINCT + COUNT( * ) * ( CAST( - 9 AS SIGNED ) )
----
-9

skipif mysql # not compatible
query I rowsort label-5106
SELECT DISTINCT + COUNT ( * ) * ( CAST ( - 9 AS INTEGER ) )
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5107
SELECT ALL 17 + + + 60 DIV 11 AS col2, - COUNT( * ) * 40 * - 42 - + - COUNT( * ) AS col1
----
22
1681

skipif mysql # not compatible
query II rowsort label-5107
SELECT ALL 17 + + + 60 / 11 AS col2, - COUNT ( * ) * 40 * - 42 - + - COUNT ( * ) AS col1
----
22
1681

onlyif mysql # aggregate syntax: 
query II rowsort label-5108
SELECT + 10 AS col0, - COUNT( * ) * - + 55
----
10
55

skipif mysql # not compatible
query II rowsort label-5108
SELECT + 10 AS col0, - COUNT ( * ) * - + 55
----
10
55

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

skipif mysql # not compatible
query I rowsort label-5109
SELECT - 21 * COUNT ( * ) + + + COUNT ( * ) * 92 AS col0
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-5110
SELECT 82 DIV - - 57 + + ( + 74 )
----
75

skipif mysql # not compatible
query I rowsort label-5110
SELECT 82 / - - 57 + + ( + 74 )
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5111
SELECT + COALESCE ( - + 22, - CAST( - 34 AS SIGNED ), - + 67 ) col1
----
-22

skipif mysql # not compatible
query I rowsort label-5111
SELECT + COALESCE ( - + 22, - CAST ( - 34 AS INTEGER ), - + 67 ) col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5112
SELECT ALL 5 * COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-5112
SELECT ALL 5 * COUNT ( * )
----
5

query I rowsort
SELECT ALL - 81 + + 49 AS col2
----
-32

query I rowsort
SELECT - 79 - + 4 * 86 AS col0
----
-423

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5115
SELECT - + 66 * - 97 * + 49 - - + 68 DIV + COUNT( * ) + - 13 * 10
----
313636

skipif mysql # not compatible
query I rowsort label-5115
SELECT - + 66 * - 97 * + 49 - - + 68 / + COUNT ( * ) + - 13 * 10
----
313636

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5116
SELECT SUM( ALL NULLIF ( + NULLIF ( + 56, + 43 ), + 59 + 24 / - CAST( NULL AS SIGNED ) ) ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-5116
SELECT SUM ( ALL NULLIF ( + NULLIF ( + 56, + 43 ), + 59 + 24 / - CAST ( NULL AS INTEGER ) ) ) AS col0
----
56

query II rowsort
SELECT ALL 4, 42 col0
----
4
42

query I rowsort
SELECT DISTINCT 94 - + 91
----
3

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

query II rowsort
SELECT 88 AS col1, - 93
----
88
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5121
SELECT 92 * + CAST( - 47 AS SIGNED ) col2
----
-4324

skipif mysql # not compatible
query I rowsort label-5121
SELECT 92 * + CAST ( - 47 AS INTEGER ) col2
----
-4324

query I rowsort
SELECT DISTINCT + 34 * + 72 * 67 AS col1
----
164016

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

skipif mysql # not compatible
query I rowsort label-5123
SELECT ALL MIN ( ALL - 6 )
----
-6

query I rowsort
SELECT NULLIF ( 81, + + 98 )
----
81

query I rowsort
SELECT ALL - 29 * + + ( - 58 ) + 92 col2
----
1774

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT - NULLIF ( - 34, + 28 ) + - MIN( + NULLIF ( + - 93, 76 ) ) * + - 23 + + COUNT( * ) - - 73 + + 59 * - ( - 42 )
----
447

skipif mysql # not compatible
query I rowsort label-5126
SELECT - NULLIF ( - 34, + 28 ) + - MIN ( + NULLIF ( + - 93, 76 ) ) * + - 23 + + COUNT ( * ) - - 73 + + 59 * - ( - 42 )
----
447

onlyif mysql # aggregate syntax: 
query II rowsort label-5127
SELECT - 76 * - 53 col0, COUNT( * ) AS col1
----
4028
1

skipif mysql # not compatible
query II rowsort label-5127
SELECT - 76 * - 53 col0, COUNT ( * ) AS col1
----
4028
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5128
SELECT ALL MIN( - CAST( - ( - 51 ) AS SIGNED ) ) * 31 * - + 79 + - + 55 AS col2, + 50 col0
----
124844
50

skipif mysql # not compatible
query II rowsort label-5128
SELECT ALL MIN ( - CAST ( - ( - 51 ) AS INTEGER ) ) * 31 * - + 79 + - + 55 AS col2, + 50 col0
----
124844
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5129
SELECT NULLIF ( + + 74, + 70 - - 8 ) AS col0, 93 DIV - + COALESCE ( MIN( - 6 ), + COUNT( * ) )
----
74
15

skipif mysql # not compatible
query II rowsort label-5129
SELECT NULLIF ( + + 74, + 70 - - 8 ) AS col0, 93 / - + COALESCE ( MIN ( - 6 ), + COUNT ( * ) )
----
74
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5130
SELECT ALL + 13 * + - COUNT( * ) + - 5 col0
----
-18

skipif mysql # not compatible
query I rowsort label-5130
SELECT ALL + 13 * + - COUNT ( * ) + - 5 col0
----
-18

query I rowsort
SELECT - + 65 - + - 40 AS col1
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5132
SELECT DISTINCT + 43 * - - MIN( ALL + CAST( + 8 AS SIGNED ) ) AS col0
----
344

skipif mysql # not compatible
query I rowsort label-5132
SELECT DISTINCT + 43 * - - MIN ( ALL + CAST ( + 8 AS INTEGER ) ) AS col0
----
344

query I rowsort
SELECT - 63 + + ( + + 28 ) AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT - 77 + - COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-5134
SELECT - 77 + - COUNT ( * )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT - + COUNT( * ) * - - 5 + - 61
----
-66

skipif mysql # not compatible
query I rowsort label-5135
SELECT - + COUNT ( * ) * - - 5 + - 61
----
-66

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5137
SELECT ALL 38 DIV - 52 AS col1, 42 * + 6
----
0
252

skipif mysql # not compatible
query II rowsort label-5137
SELECT ALL 38 / - 52 AS col1, 42 * + 6
----
0
252

query I rowsort
SELECT ALL + NULLIF ( + + 98, 20 ) AS col0
----
98

query II rowsort
SELECT + - 26 * + 36 * 48 + + COALESCE ( 49, + 11 * 20 ) AS col1, 0
----
-44879
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5140
SELECT DISTINCT + 75 * NULLIF ( - ( + COUNT( * ) ), - - 44 ) DIV 49 * + 62 * - - 86
----
-5332

skipif mysql # not compatible
query I rowsort label-5140
SELECT DISTINCT + 75 * NULLIF ( - ( + COUNT ( * ) ), - - 44 ) / 49 * + 62 * - - 86
----
-5332

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5141
SELECT + 13 + - 30 * - SUM( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5141
SELECT + 13 + - 30 * - SUM ( + CAST ( NULL AS INTEGER ) )
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5143
SELECT ALL 54 * 21 * - 42 * - 18 * 43 AS col1, 27 DIV + + 53 * 98
----
36864072
0

skipif mysql # not compatible
query II rowsort label-5143
SELECT ALL 54 * 21 * - 42 * - 18 * 43 AS col1, 27 / + + 53 * 98
----
36864072
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5144
SELECT + 66 DIV + 75 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5144
SELECT + 66 / + 75 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5145
SELECT + MAX( 26 ) + - 37 - + COUNT( * ) col2
----
-12

skipif mysql # not compatible
query I rowsort label-5145
SELECT + MAX ( 26 ) + - 37 - + COUNT ( * ) col2
----
-12

query I rowsort
SELECT - ( + CASE - 29 WHEN - 97 THEN COALESCE ( - 84, - 87, 61 ) END ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5147
SELECT - COALESCE ( - 19, + + 24 + - CAST( 45 AS SIGNED ) ), 36 * 49 * + + ( - 38 ) AS col0
----
19
-67032

skipif mysql # not compatible
query II rowsort label-5147
SELECT - COALESCE ( - 19, + + 24 + - CAST ( 45 AS INTEGER ) ), 36 * 49 * + + ( - 38 ) AS col0
----
19
-67032

query I rowsort
SELECT + 36 + NULLIF ( 96, - 40 ) AS col1
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-5149
SELECT ALL 42 + - COUNT( * ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-5149
SELECT ALL 42 + - COUNT ( * ) AS col0
----
41

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

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

query I rowsort
SELECT - 29 - 17 AS col1
----
-46

query I rowsort
SELECT DISTINCT 35 * - 91 * 70 * - 79 * - 27
----
-475552350

onlyif mysql # DIV for integer division: 
query I rowsort label-5153
SELECT ALL 76 DIV + 43 + 68 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-5153
SELECT ALL 76 / + 43 + 68 AS col0
----
69

onlyif mysql # DIV for integer division: 
query II rowsort label-5154
SELECT DISTINCT - 3 DIV + 71 + + + 49 AS col0, - 79 - + 6
----
49
-85

skipif mysql # not compatible
query II rowsort label-5154
SELECT DISTINCT - 3 / + 71 + + + 49 AS col0, - 79 - + 6
----
49
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5155
SELECT DISTINCT 51 / + 46 + + 56 / 21 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5155
SELECT DISTINCT 51 / + 46 + + 56 / 21 + - - CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5157
SELECT ALL + 70 / 80 * - 70 * - NULLIF ( CASE - 89 WHEN + 78 * - MIN( + 91 ) THEN NULL WHEN - 30 / - + 33 / - 8 + - NULLIF ( 81, + 98 * + - 71 ) * - 31 THEN + 23 + CASE - 20 WHEN - 80 THEN - + 17 END + + 38 + - - 71 * + - CAST( NULL AS SIGNED ) + + 92 / - COUNT( * ) * 15 WHEN 25 / + ( - 75 ) THEN NULL END, - + 47 * 55 ) + + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-5157
SELECT ALL + 70 / 80 * - 70 * - NULLIF ( CASE - 89 WHEN + 78 * - MIN ( + 91 ) THEN NULL WHEN - 30 / - + 33 / - 8 + - NULLIF ( 81, + 98 * + - 71 ) * - 31 THEN + 23 + CASE - 20 WHEN - 80 THEN - + 17 END + + 38 + - - 71 * + - CAST ( NULL AS INTEGER ) + + 92 / - COUNT ( * ) * 15 WHEN 25 / + ( - 75 ) THEN NULL END, - + 47 * 55 ) + + 6
----
NULL

query I rowsort
SELECT ALL 34 * + - 58
----
-1972

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5159
SELECT CAST( - ( - 57 ) AS SIGNED ) DIV + + 28 + 50 + - 23 + + 4 * - 74 * - ( - 58 )
----
-17139

skipif mysql # not compatible
query I rowsort label-5159
SELECT CAST ( - ( - 57 ) AS INTEGER ) / + + 28 + 50 + - 23 + + 4 * - 74 * - ( - 58 )
----
-17139

onlyif mysql # DIV for integer division: 
query I rowsort label-5160
SELECT ALL - - 96 DIV 11 + 87 AS col0
----
95

skipif mysql # not compatible
query I rowsort label-5160
SELECT ALL - - 96 / 11 + 87 AS col0
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5161
SELECT + + COUNT( * ) DIV + 75 - + 22 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-5161
SELECT + + COUNT ( * ) / + 75 - + 22 AS col1
----
-22

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5162
SELECT - + 28 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5162
SELECT - + 28 + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5163
SELECT ALL - + 73 DIV + + 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5163
SELECT ALL - + 73 / + + 89 AS col0
----
0

query I rowsort
SELECT DISTINCT - 89 * 73 AS col0
----
-6497

query I rowsort
SELECT ALL + 98 * + 54
----
5292

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT ALL - + COUNT( * ) * COUNT( * ) + + COUNT( * ) + + - COUNT( DISTINCT 2 ) + + + 93 AS col0
----
92

skipif mysql # not compatible
query I rowsort label-5168
SELECT ALL - + COUNT ( * ) * COUNT ( * ) + + COUNT ( * ) + + - COUNT ( DISTINCT 2 ) + + + 93 AS col0
----
92

query I rowsort
SELECT - 63 * 55
----
-3465

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

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

query I rowsort
SELECT + 77 - - 21 AS col2
----
98

query I rowsort
SELECT + 90 - + ( 75 )
----
15

query I rowsort
SELECT ALL 37 * + 90
----
3330

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5175
SELECT DISTINCT + 62 + - MAX( NULLIF ( + + 8, - + 23 * 85 ) ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5175
SELECT DISTINCT + 62 + - MAX ( NULLIF ( + + 8, - + 23 * 85 ) ) + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT - 85, + 39 AS col2
----
-85
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5177
SELECT ALL COUNT( * ) + + - 19
----
-18

skipif mysql # not compatible
query I rowsort label-5177
SELECT ALL COUNT ( * ) + + - 19
----
-18

query I rowsort
SELECT ALL 1 + - 91
----
-90

query I rowsort
SELECT 88 * 41 AS col2
----
3608

onlyif mysql # aggregate syntax: 
query II rowsort label-5180
SELECT 81 AS col1, 17 + + COUNT( * ) AS col1
----
81
18

skipif mysql # not compatible
query II rowsort label-5180
SELECT 81 AS col1, 17 + + COUNT ( * ) AS col1
----
81
18

query I rowsort
SELECT ALL ( 68 ) * + 53 AS col1
----
3604

query I rowsort
SELECT CASE 54 WHEN - 62 THEN - 80 WHEN - 47 THEN NULL END * - - 41
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5183
SELECT ALL - 90 + + + CAST( 24 AS SIGNED )
----
-66

skipif mysql # not compatible
query I rowsort label-5183
SELECT ALL - 90 + + + CAST ( 24 AS INTEGER )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT ALL MIN( ( - 80 ) ) + + - 37 + - NULLIF ( 59, NULLIF ( - 8, + ( + 32 ) * - 0 + - - ( + COALESCE ( 84, - + 63 ) ) ) ) + + COUNT( * ) AS col2
----
-175

skipif mysql # not compatible
query I rowsort label-5184
SELECT ALL MIN ( ( - 80 ) ) + + - 37 + - NULLIF ( 59, NULLIF ( - 8, + ( + 32 ) * - 0 + - - ( + COALESCE ( 84, - + 63 ) ) ) ) + + COUNT ( * ) AS col2
----
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT COUNT( * ) * - - 13
----
13

skipif mysql # not compatible
query I rowsort label-5185
SELECT COUNT ( * ) * - - 13
----
13

query I rowsort
SELECT DISTINCT 0 * - 80 AS col0
----
0

query I rowsort
SELECT 23 * - - 16
----
368

onlyif mysql # aggregate syntax: 
query II rowsort label-5188
SELECT NULLIF ( 49, + - CASE - 17 WHEN - - 20 * + - 66 * - 79 THEN NULL ELSE + ( - 17 ) END ) * + + 76 - + 3, COUNT( ALL + ( - - 46 ) ) col1
----
3721
1

skipif mysql # not compatible
query II rowsort label-5188
SELECT NULLIF ( 49, + - CASE - 17 WHEN - - 20 * + - 66 * - 79 THEN NULL ELSE + ( - 17 ) END ) * + + 76 - + 3, COUNT ( ALL + ( - - 46 ) ) col1
----
3721
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5189
SELECT DISTINCT - 65 AS col2, - COUNT( * ) * 84 AS col2
----
-65
-84

skipif mysql # not compatible
query II rowsort label-5189
SELECT DISTINCT - 65 AS col2, - COUNT ( * ) * 84 AS col2
----
-65
-84

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5190
SELECT ALL - 43 - CAST( NULL AS DECIMAL ) + + 93 * - + 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5190
SELECT ALL - 43 - CAST ( NULL AS REAL ) + + 93 * - + 50 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5191
SELECT + 38 DIV 65 - + 81 col2
----
-81

skipif mysql # not compatible
query I rowsort label-5191
SELECT + 38 / 65 - + 81 col2
----
-81

query I rowsort
SELECT + 31 + NULLIF ( - - 25, - + 0 ) AS col0
----
56

query I rowsort
SELECT + COALESCE ( + 92, 53 * + 69 + - 94, 89 + - 34 ) AS col1
----
92

query II rowsort
SELECT ALL - 31 AS col2, 25
----
-31
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT ALL - SUM( ALL 48 ) * 66 * + 62 AS col0
----
-196416

skipif mysql # not compatible
query I rowsort label-5195
SELECT ALL - SUM ( ALL 48 ) * 66 * + 62 AS col0
----
-196416

onlyif mysql # DIV for integer division: 
query I rowsort label-5196
SELECT - 75 DIV - 1 + + + 65
----
140

skipif mysql # not compatible
query I rowsort label-5196
SELECT - 75 / - 1 + + + 65
----
140

onlyif mysql # DIV for integer division: 
query II rowsort label-5197
SELECT + - 67 AS col0, - 85 DIV + 39
----
-67
-2

skipif mysql # not compatible
query II rowsort label-5197
SELECT + - 67 AS col0, - 85 / + 39
----
-67
-2

query II rowsort
SELECT ALL - 10, 41 AS col1
----
-10
41

query I rowsort
SELECT ALL - - 55 AS col0
----
55

query I rowsort
SELECT 59 + + 6 * + - 4 AS col2
----
35

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5202
SELECT - COALESCE ( - - MAX( DISTINCT + 15 ), + ( 24 ) ) * 75 - + + ( - 84 ) * 48
----
2907

skipif mysql # not compatible
query I rowsort label-5202
SELECT - COALESCE ( - - MAX ( DISTINCT + 15 ), + ( 24 ) ) * 75 - + + ( - 84 ) * 48
----
2907

query II rowsort
SELECT ALL - 49 col1, + 8 AS col1
----
-49
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5204
SELECT 36 DIV 59 * + COUNT( * ) + - 86 * - 0 * + 88 col0, + COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-5204
SELECT 36 / 59 * + COUNT ( * ) + - 86 * - 0 * + 88 col0, + COUNT ( * )
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT COALESCE ( + 83, + + 35, COUNT( DISTINCT + + 38 ) ) + + + 43 * + - 52 * 30 + + MIN( 32 ) - - 57 AS col2
----
-66908

skipif mysql # not compatible
query I rowsort label-5205
SELECT COALESCE ( + 83, + + 35, COUNT ( DISTINCT + + 38 ) ) + + + 43 * + - 52 * 30 + + MIN ( 32 ) - - 57 AS col2
----
-66908

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5206
SELECT + CAST( + - SUM( ALL - 34 ) AS SIGNED ) col2
----
34

skipif mysql # not compatible
query I rowsort label-5206
SELECT + CAST ( + - SUM ( ALL - 34 ) AS INTEGER ) col2
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-5207
SELECT ALL - 26, 63 + - SUM( + 58 ) AS col0
----
-26
5

skipif mysql # not compatible
query II rowsort label-5207
SELECT ALL - 26, 63 + - SUM ( + 58 ) AS col0
----
-26
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5208
SELECT ALL + 17 DIV 54 * - 73
----
0

skipif mysql # not compatible
query I rowsort label-5208
SELECT ALL + 17 / 54 * - 73
----
0

query I rowsort
SELECT + 75 + + 39
----
114

onlyif mysql # DIV for integer division: 
query I rowsort label-5210
SELECT 15 DIV + + 81
----
0

skipif mysql # not compatible
query I rowsort label-5210
SELECT 15 / + + 81
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5211
SELECT - COUNT( * ) * + - 45 + + - 13 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-5211
SELECT - COUNT ( * ) * + - 45 + + - 13 AS col2
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5212
SELECT DISTINCT + CASE + 66 WHEN - MIN( - 84 ) THEN NULL ELSE MIN( 22 ) END DIV - 58 + - 14 AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-5212
SELECT DISTINCT + CASE + 66 WHEN - MIN ( - 84 ) THEN NULL ELSE MIN ( 22 ) END / - 58 + - 14 AS col1
----
-14

query I rowsort
SELECT 92 + + 47 AS col1
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT DISTINCT - 30 + + COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-5214
SELECT DISTINCT - 30 + + COUNT ( * )
----
-29

query I rowsort
SELECT 66 * + 44 AS col2
----
2904

query I rowsort
SELECT 1 + 40
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5217
SELECT COUNT( * ) + 45 + + 84 DIV + - 82
----
45

skipif mysql # not compatible
query I rowsort label-5217
SELECT COUNT ( * ) + 45 + + 84 / + - 82
----
45

query I rowsort
SELECT ALL + 57 + - + 92 * ( - - 66 )
----
-6015

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5219
SELECT DISTINCT - COUNT( * ) * NULLIF ( - NULLIF ( - CAST( NULL AS SIGNED ), 44 * COALESCE ( - ( + 64 ), 72 * 28 * ( + 10 ) ) ), + 41 * + + 82 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5219
SELECT DISTINCT - COUNT ( * ) * NULLIF ( - NULLIF ( - CAST ( NULL AS INTEGER ), 44 * COALESCE ( - ( + 64 ), 72 * 28 * ( + 10 ) ) ), + 41 * + + 82 )
----
NULL

query I rowsort
SELECT 91 * + 13 AS col0
----
1183

query I rowsort
SELECT 97 + + 93 + - 48 AS col2
----
142

query I rowsort
SELECT ALL - 12 + - 3 + - - ( + 28 ) AS col2
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5223
SELECT ALL + 58 + - 30 / CASE - 84 WHEN MIN( ALL + - 25 ) THEN NULL WHEN - - ( 77 ) THEN ( 66 ) / - 39 * CASE + - 25 WHEN 7 * + CAST( NULL AS SIGNED ) + + + 30 + + 4 THEN - 61 WHEN + + SUM( DISTINCT 84 ) + + ( - COUNT( * ) ) THEN 91 ELSE NULL END * - AVG ( DISTINCT - - 92 ) * + - 18 + + 67 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5223
SELECT ALL + 58 + - 30 / CASE - 84 WHEN MIN ( ALL + - 25 ) THEN NULL WHEN - - ( 77 ) THEN ( 66 ) / - 39 * CASE + - 25 WHEN 7 * + CAST ( NULL AS INTEGER ) + + + 30 + + 4 THEN - 61 WHEN + + SUM ( DISTINCT 84 ) + + ( - COUNT ( * ) ) THEN 91 ELSE NULL END * - AVG ( DISTINCT - - 92 ) * + - 18 + + 67 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT DISTINCT - 3 * - + 25 * - 79 * + SUM( ( + 42 ) ) AS col2
----
-248850

skipif mysql # not compatible
query I rowsort label-5224
SELECT DISTINCT - 3 * - + 25 * - 79 * + SUM ( ( + 42 ) ) AS col2
----
-248850

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT ALL + ( - COUNT( * ) ) + 37 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-5225
SELECT ALL + ( - COUNT ( * ) ) + 37 AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT ALL COUNT( * ) + 93 AS col0
----
94

skipif mysql # not compatible
query I rowsort label-5226
SELECT ALL COUNT ( * ) + 93 AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT DISTINCT - 31 + COUNT( * ) col2
----
-30

skipif mysql # not compatible
query I rowsort label-5227
SELECT DISTINCT - 31 + COUNT ( * ) col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5228
SELECT ALL - COUNT( * ) - 5 * - 5 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-5228
SELECT ALL - COUNT ( * ) - 5 * - 5 AS col1
----
24

query II rowsort
SELECT 13 + + 44 col0, 40 * + - 98
----
57
-3920

onlyif mysql # aggregate syntax: 
query I rowsort label-5230
SELECT DISTINCT + COUNT( * ) * + 4 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-5230
SELECT DISTINCT + COUNT ( * ) * + 4 AS col1
----
4

query I rowsort
SELECT 22 + 41
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5232
SELECT 56 + - COUNT( * ) DIV 73 + 82 + - + COUNT( * ) * - + 14
----
152

skipif mysql # not compatible
query I rowsort label-5232
SELECT 56 + - COUNT ( * ) / 73 + 82 + - + COUNT ( * ) * - + 14
----
152

query I rowsort
SELECT DISTINCT - + 3 AS col1
----
-3

query I rowsort
SELECT DISTINCT + - 89 * - 93 AS col2
----
8277

query I rowsort
SELECT 36 + 8 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5236
SELECT DISTINCT - 3 * - COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-5236
SELECT DISTINCT - 3 * - COUNT ( * )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5237
SELECT DISTINCT + 40 DIV 12 DIV 8 + + + 99 * - NULLIF ( + - 59, - ( 74 ) ) AS col1
----
5841

skipif mysql # not compatible
query I rowsort label-5237
SELECT DISTINCT + 40 / 12 / 8 + + + 99 * - NULLIF ( + - 59, - ( 74 ) ) AS col1
----
5841

onlyif mysql # aggregate syntax: 
query II rowsort label-5238
SELECT DISTINCT + COALESCE ( - - 12, - - NULLIF ( + - 19, - 12 ), NULLIF ( - COUNT( * ), + 24 ) + - 79 * - MIN( - ( + 54 ) ) ) AS col1, - 23
----
12
-23

skipif mysql # not compatible
query II rowsort label-5238
SELECT DISTINCT + COALESCE ( - - 12, - - NULLIF ( + - 19, - 12 ), NULLIF ( - COUNT ( * ), + 24 ) + - 79 * - MIN ( - ( + 54 ) ) ) AS col1, - 23
----
12
-23

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
SELECT DISTINCT 22 * - - 50 - - 54 + + 30 * + NULLIF ( + + SUM( ALL - 78 ), 15 )
----
-1186

skipif mysql # not compatible
query I rowsort label-5241
SELECT DISTINCT 22 * - - 50 - - 54 + + 30 * + NULLIF ( + + SUM ( ALL - 78 ), 15 )
----
-1186

onlyif mysql # aggregate syntax: 
query I rowsort label-5242
SELECT ALL + COUNT( * ) * 97 + + 33 AS col0
----
130

skipif mysql # not compatible
query I rowsort label-5242
SELECT ALL + COUNT ( * ) * 97 + + 33 AS col0
----
130

query I rowsort
SELECT ALL + ( 44 ) * - 1 + + 5
----
-39

query I rowsort
SELECT DISTINCT 60 + - 52 AS col1
----
8

query I rowsort
SELECT + 60 + - 93
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5246
SELECT DISTINCT 66 + + + ( - CAST( - + 90 AS SIGNED ) ) + - 18 + ( - 83 ) + 94 * 3 * + COUNT( * ) col2
----
337

skipif mysql # not compatible
query I rowsort label-5246
SELECT DISTINCT 66 + + + ( - CAST ( - + 90 AS INTEGER ) ) + - 18 + ( - 83 ) + 94 * 3 * + COUNT ( * ) col2
----
337

onlyif mysql # DIV for integer division: 
query I rowsort label-5247
SELECT ALL 25 + + + 62 + 5 DIV - 24 AS col2
----
87

skipif mysql # not compatible
query I rowsort label-5247
SELECT ALL 25 + + + 62 + 5 / - 24 AS col2
----
87

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

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

query I rowsort
SELECT - 89 * - - 83 AS col2
----
-7387

query I rowsort
SELECT - CASE AVG ( DISTINCT - - NULLIF ( 33, 53 / + + 48 + - 85 + + 60 * - 56 * + 22 ) ) WHEN + 94 + 47 * - 99 * - 7 THEN NULL WHEN 94 THEN NULL ELSE + + 17 + + 64 * - - 94 END AS col0
----
-6033

query II rowsort
SELECT + 59 + - 72 + + 87 AS col0, - 89 AS col2
----
74
-89

query I rowsort
SELECT ALL 65 + 9 + - + 82 * - 45
----
3764

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT ALL + COUNT( * ) - - - NULLIF ( + + 13, + 69 ) + + 48
----
36

skipif mysql # not compatible
query I rowsort label-5253
SELECT ALL + COUNT ( * ) - - - NULLIF ( + + 13, + 69 ) + + 48
----
36

query I rowsort
SELECT - 53 * + - 14 AS col2
----
742

onlyif mysql # aggregate syntax: 
query I rowsort label-5255
SELECT ALL CASE + ( - - COUNT( * ) ) WHEN + MAX( - 67 ) + - - 51 THEN + CASE 81 WHEN + 89 THEN MIN( ALL COALESCE ( 67, 59 ) ) WHEN + + COUNT( * ) THEN NULL END * + - COUNT( DISTINCT + 94 ) * - - 30 - + 11 + - 5 + 44 + - 40 END / - 31 + - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-5255
SELECT ALL CASE + ( - - COUNT ( * ) ) WHEN + MAX ( - 67 ) + - - 51 THEN + CASE 81 WHEN + 89 THEN MIN ( ALL COALESCE ( 67, 59 ) ) WHEN + + COUNT ( * ) THEN NULL END * + - COUNT ( DISTINCT + 94 ) * - - 30 - + 11 + - 5 + 44 + - 40 END / - 31 + - 87
----
NULL

query II rowsort
SELECT DISTINCT 44 AS col1, 16
----
44
16

onlyif mysql # DIV for integer division: 
query I rowsort label-5257
SELECT - COALESCE ( + - 99, - 55, - 82 DIV 94 * 31 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-5257
SELECT - COALESCE ( + - 99, - 55, - 82 / 94 * 31 ) AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5258
SELECT ALL SUM( DISTINCT + 38 ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-5258
SELECT ALL SUM ( DISTINCT + 38 ) AS col2
----
38

query I rowsort
SELECT - 70 + + 67
----
-3

query I rowsort
SELECT ALL + ( 59 ) AS col0
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5261
SELECT - - 71 * + - CAST( + - 10 AS SIGNED ) AS col1, - COUNT( * ) * 55
----
710
-55

skipif mysql # not compatible
query II rowsort label-5261
SELECT - - 71 * + - CAST ( + - 10 AS INTEGER ) AS col1, - COUNT ( * ) * 55
----
710
-55

query I rowsort
SELECT - + NULLIF ( - 16, - ( + 90 ) ) AS col2
----
16

query II rowsort
SELECT DISTINCT 1 AS col1, + ( 93 )
----
1
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5264
SELECT ALL + 94, - CAST( NULL AS SIGNED ) AS col0
----
94
NULL

skipif mysql # not compatible
query II rowsort label-5264
SELECT ALL + 94, - CAST ( NULL AS INTEGER ) AS col0
----
94
NULL

query I rowsort
SELECT ALL + + NULLIF ( + + 95, - - 44 ) AS col2
----
95

query I rowsort
SELECT - 16 + - - 91 - 44 - + - 8 col1
----
39

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

query I rowsort
SELECT - ( + - 55 ) + 31 AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT 69 * COUNT( * ) * + 68 + - ( - 32 ) AS col1
----
4724

skipif mysql # not compatible
query I rowsort label-5269
SELECT 69 * COUNT ( * ) * + 68 + - ( - 32 ) AS col1
----
4724

onlyif mysql # aggregate syntax: 
query I rowsort label-5270
SELECT ALL CASE 8 WHEN - 14 THEN NULL ELSE + - 41 END * 76 * + 55 + + COUNT( * ) AS col2
----
-171379

skipif mysql # not compatible
query I rowsort label-5270
SELECT ALL CASE 8 WHEN - 14 THEN NULL ELSE + - 41 END * 76 * + 55 + + COUNT ( * ) AS col2
----
-171379

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT + + CASE - - COUNT( * ) WHEN - 85 * 58 + - 47 * - COUNT( * ) + - 61 / + CASE 46 WHEN - 48 THEN 40 ELSE NULL END THEN - 77 * - 89 WHEN - - ( + + 21 ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5271
SELECT + + CASE - - COUNT ( * ) WHEN - 85 * 58 + - 47 * - COUNT ( * ) + - 61 / + CASE 46 WHEN - 48 THEN 40 ELSE NULL END THEN - 77 * - 89 WHEN - - ( + + 21 ) THEN NULL END AS col1
----
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5274
SELECT - - 34 DIV 71
----
0

skipif mysql # not compatible
query I rowsort label-5274
SELECT - - 34 / 71
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5275
SELECT + - CAST( NULL AS SIGNED ) + - 83 + - - 36 / 97 * + 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5275
SELECT + - CAST ( NULL AS INTEGER ) + - 83 + - - 36 / 97 * + 48 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5276
SELECT - ( 63 ) + - COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-5276
SELECT - ( 63 ) + - COUNT ( * )
----
-64

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5277
SELECT ALL + 26 * + 77 + + 69 * + - ( 7 ) * - + 23 * 67 * + 16 + ( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5277
SELECT ALL + 26 * + 77 + + 69 * + - ( 7 ) * - + 23 * 67 * + 16 + ( + CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT + 84 + + 69 * + 89 * - - 4
----
24648

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5280
SELECT - 42 * - - 12 + - - SUM( ALL + 3 ) AS col2
----
-501

skipif mysql # not compatible
query I rowsort label-5280
SELECT - 42 * - - 12 + - - SUM ( ALL + 3 ) AS col2
----
-501

query I rowsort
SELECT ALL ( + 78 ) * 2
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5282
SELECT CASE + 3 WHEN 27 THEN NULL WHEN + 80 THEN NULL WHEN - 97 THEN + NULLIF ( + ( + COUNT( * ) ), CASE 10 WHEN + MIN( ALL + - 64 ) THEN + 12 ELSE - AVG ( - - 98 ) * + CAST( - - 40 AS SIGNED ) END ) + + + 14 * 2 * - 93 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5282
SELECT CASE + 3 WHEN 27 THEN NULL WHEN + 80 THEN NULL WHEN - 97 THEN + NULLIF ( + ( + COUNT ( * ) ), CASE 10 WHEN + MIN ( ALL + - 64 ) THEN + 12 ELSE - AVG ( - - 98 ) * + CAST ( - - 40 AS INTEGER ) END ) + + + 14 * 2 * - 93 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT DISTINCT COALESCE ( + COUNT( - 79 ), + 3 ) * + MIN( - - 84 )
----
84

skipif mysql # not compatible
query I rowsort label-5283
SELECT DISTINCT COALESCE ( + COUNT ( - 79 ), + 3 ) * + MIN ( - - 84 )
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5284
SELECT DISTINCT + 16 * + 14 - MAX( + 93 ) + - CAST( NULL AS SIGNED ) * - - 14 * + NULLIF ( + 97, - 78 + + 7 ) / - 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5284
SELECT DISTINCT + 16 * + 14 - MAX ( + 93 ) + - CAST ( NULL AS INTEGER ) * - - 14 * + NULLIF ( + 97, - 78 + + 7 ) / - 14 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5285
SELECT ALL COALESCE ( 12, - 1, NULLIF ( + 35, CASE - 85 WHEN + - 58 + NULLIF ( 46, NULLIF ( - 29, + 32 / - CAST( ( + - 35 ) AS SIGNED ) ) * - 39 ) + 57 THEN + 95 END ) ) * - 79
----
-948

skipif mysql # not compatible
query I rowsort label-5285
SELECT ALL COALESCE ( 12, - 1, NULLIF ( + 35, CASE - 85 WHEN + - 58 + NULLIF ( 46, NULLIF ( - 29, + 32 / - CAST ( ( + - 35 ) AS INTEGER ) ) * - 39 ) + 57 THEN + 95 END ) ) * - 79
----
-948

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5286
SELECT - CAST( - + 96 AS SIGNED ), 31 AS col0
----
96
31

skipif mysql # not compatible
query II rowsort label-5286
SELECT - CAST ( - + 96 AS INTEGER ), 31 AS col0
----
96
31

query I rowsort
SELECT - NULLIF ( - 31, + 33 )
----
31

query I rowsort
SELECT - 99 * - ( - 59 ) AS col0
----
-5841

query I rowsort
SELECT + 11 + + 64 * - 69 AS col1
----
-4405

onlyif mysql # aggregate syntax: 
query II rowsort label-5290
SELECT + 87 + ( - 50 ) - - 48 col0, - COUNT( * )
----
85
-1

skipif mysql # not compatible
query II rowsort label-5290
SELECT + 87 + ( - 50 ) - - 48 col0, - COUNT ( * )
----
85
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5291
SELECT ALL - 96 DIV + + 24 col1
----
-4

skipif mysql # not compatible
query I rowsort label-5291
SELECT ALL - 96 / + + 24 col1
----
-4

query I rowsort
SELECT + - 25 * - + 24 * - 49 AS col0
----
-29400

onlyif mysql # aggregate syntax: 
query II rowsort label-5293
SELECT - MAX( - - 58 ), + 68 AS col2
----
-58
68

skipif mysql # not compatible
query II rowsort label-5293
SELECT - MAX ( - - 58 ), + 68 AS col2
----
-58
68

onlyif mysql # DIV for integer division: 
query I rowsort label-5294
SELECT ALL ( + + 96 ) DIV - 45 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-5294
SELECT ALL ( + + 96 ) / - 45 AS col1
----
-2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5295
SELECT + 78 DIV 53, + 88 * - 13 * + 73 - - CAST( NULL AS SIGNED ) + 73 - + - 71 AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5295
SELECT + 78 / 53, + 88 * - 13 * + 73 - - CAST ( NULL AS INTEGER ) + 73 - + - 71 AS col2
----
1
NULL

query I rowsort
SELECT - 47 + + 27
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT - SUM( DISTINCT 70 ) * - 45 AS col0
----
3150

skipif mysql # not compatible
query I rowsort label-5297
SELECT - SUM ( DISTINCT 70 ) * - 45 AS col0
----
3150

onlyif mysql # aggregate syntax: 
query I rowsort label-5298
SELECT - 61 + 15 * - COUNT( * ) * + 2 * - 65 AS col2
----
1889

skipif mysql # not compatible
query I rowsort label-5298
SELECT - 61 + 15 * - COUNT ( * ) * + 2 * - 65 AS col2
----
1889

query I rowsort
SELECT - CASE + - 77 WHEN - 30 * - COALESCE ( - - 84, CASE - + 54 WHEN - 48 THEN + 2 WHEN - 17 THEN NULL END, + - AVG ( + 4 ) ) + - + 9 THEN 77 - + AVG ( DISTINCT - 75 ) + - 90 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 79 + ( + - 8 ) * - + ( - 82 )
----
-735

query II rowsort
SELECT DISTINCT + 21 + + 14 AS col1, 15 AS col0
----
35
15

onlyif mysql # aggregate syntax: 
query II rowsort label-5302
SELECT ALL 88 * + 82 AS col2, CASE COUNT( * ) WHEN ( 2 ) + - COUNT( * ) THEN + - COUNT( * ) END * 7 + - 11 - + ( + + 12 ) + - - ( 10 ) * + 0
----
7216
-30

skipif mysql # not compatible
query II rowsort label-5302
SELECT ALL 88 * + 82 AS col2, CASE COUNT ( * ) WHEN ( 2 ) + - COUNT ( * ) THEN + - COUNT ( * ) END * 7 + - 11 - + ( + + 12 ) + - - ( 10 ) * + 0
----
7216
-30

query I rowsort
SELECT DISTINCT 93 + + 2 AS col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5304
SELECT DISTINCT 6 * - ( + NULLIF ( 67, - 89 + + - ( + COALESCE ( + - COUNT( + 93 ), + COUNT( * ) / + + 6 ) ) ) ) * - 52 - - 73
----
20977

skipif mysql # not compatible
query I rowsort label-5304
SELECT DISTINCT 6 * - ( + NULLIF ( 67, - 89 + + - ( + COALESCE ( + - COUNT ( + 93 ), + COUNT ( * ) / + + 6 ) ) ) ) * - 52 - - 73
----
20977

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5305
SELECT - CASE + 5 WHEN COUNT( * ) - + - 58 + + - 6 THEN NULL WHEN + 99 + + + 43 + - + CAST( 53 AS SIGNED ) + - - 18 * + ( + + 91 ) THEN - 94 + 24 WHEN - - 12 * + ( + 29 ) THEN - 54 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5305
SELECT - CASE + 5 WHEN COUNT ( * ) - + - 58 + + - 6 THEN NULL WHEN + 99 + + + 43 + - + CAST ( 53 AS INTEGER ) + - - 18 * + ( + + 91 ) THEN - 94 + 24 WHEN - - 12 * + ( + 29 ) THEN - 54 END AS col0
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5308
SELECT DISTINCT - 44 - - COUNT( * ) + - 85 AS col0
----
-128

skipif mysql # not compatible
query I rowsort label-5308
SELECT DISTINCT - 44 - - COUNT ( * ) + - 85 AS col0
----
-128

onlyif mysql # DIV for integer division: 
query I rowsort label-5309
SELECT DISTINCT - 71 DIV 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5309
SELECT DISTINCT - 71 / 87 AS col1
----
0

query I rowsort
SELECT DISTINCT - NULLIF ( + - 92, - 65 )
----
92

query I rowsort
SELECT ALL 72 - + + 98
----
-26

query I rowsort
SELECT 7 * + 50
----
350

query I rowsort
SELECT ALL - ( - - 71 )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT DISTINCT + CASE 43 WHEN 93 THEN - 69 * - 32 - + - COUNT( * ) WHEN + + 92 THEN + 2 ELSE NULL END * - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-5314
SELECT DISTINCT + CASE 43 WHEN 93 THEN - 69 * - 32 - + - COUNT ( * ) WHEN + + 92 THEN + 2 ELSE NULL END * - 39
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5315
SELECT ALL - MAX ( 43 )
----
-43

query I rowsort
SELECT 33 + - 70
----
-37

query I rowsort
SELECT 7 * 74
----
518

onlyif mysql # aggregate syntax: 
query I rowsort label-5318
SELECT COUNT( * ) * - 54
----
-54

skipif mysql # not compatible
query I rowsort label-5318
SELECT COUNT ( * ) * - 54
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5319
SELECT 16 - + - 49 * - 97 * - CAST( NULL AS SIGNED ) * - COUNT( * ) * - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-5319
SELECT 16 - + - 49 * - 97 * - CAST ( NULL AS INTEGER ) * - COUNT ( * ) * - 97
----
NULL

query II rowsort
SELECT DISTINCT 52 AS col1, 27 + 25 + - + 45 AS col2
----
52
7

query I rowsort
SELECT DISTINCT 17 * + 18
----
306

query I rowsort
SELECT ALL 52 + 7 * + 95 * 91
----
60567

query I rowsort
SELECT 57 * + 71 AS col2
----
4047

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT DISTINCT 63 * MIN( DISTINCT + 84 ) AS col1
----
5292

skipif mysql # not compatible
query I rowsort label-5324
SELECT DISTINCT 63 * MIN ( DISTINCT + 84 ) AS col1
----
5292

onlyif mysql # aggregate syntax: 
query III rowsort label-5325
SELECT DISTINCT + ( + 20 ) + - 20, - ( - - 76 ) * + COUNT( * ) AS col2, 44 + + COUNT( * ) AS col2
----
0
-76
45

skipif mysql # not compatible
query III rowsort label-5325
SELECT DISTINCT + ( + 20 ) + - 20, - ( - - 76 ) * + COUNT ( * ) AS col2, 44 + + COUNT ( * ) AS col2
----
0
-76
45

query I rowsort
SELECT ALL - 83 + + 71 + - 63 AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5327
SELECT - - COUNT( 51 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5327
SELECT - - COUNT ( 51 ) AS col2
----
1

query I rowsort
SELECT + CASE - 43 WHEN 40 THEN - - 55 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5329
SELECT + CAST( - - ( 77 ) AS SIGNED )
----
77

skipif mysql # not compatible
query I rowsort label-5329
SELECT + CAST ( - - ( 77 ) AS INTEGER )
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5330
SELECT ALL - COALESCE ( - 96, + - 80 ) * - - 84 * - CAST( NULL AS SIGNED ) * - 38 AS col2, COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5330
SELECT ALL - COALESCE ( - 96, + - 80 ) * - - 84 * - CAST ( NULL AS INTEGER ) * - 38 AS col2, COUNT ( * ) AS col2
----
NULL
1

query I rowsort
SELECT DISTINCT - + 94 / + + 81 * + - CASE + 9 WHEN ( + 15 ) THEN + + 60 ELSE NULL END * - + NULLIF ( - 82, + 77 ) - 37 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5332
SELECT DISTINCT - ( + + MIN( + + 3 ) ) + - CASE + MIN( 63 ) WHEN - - 84 THEN NULL ELSE COUNT( + 62 ) END - - - 58
----
-62

skipif mysql # not compatible
query I rowsort label-5332
SELECT DISTINCT - ( + + MIN ( + + 3 ) ) + - CASE + MIN ( 63 ) WHEN - - 84 THEN NULL ELSE COUNT ( + 62 ) END - - - 58
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-5333
SELECT ALL - - NULLIF ( 82, SUM( DISTINCT 15 ) ) + + - 63 * - 40, 42 AS col2
----
2602
42

skipif mysql # not compatible
query II rowsort label-5333
SELECT ALL - - NULLIF ( 82, SUM ( DISTINCT 15 ) ) + + - 63 * - 40, 42 AS col2
----
2602
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5334
SELECT - ( - - 94 ) DIV COUNT( * ) + + 14
----
-80

skipif mysql # not compatible
query I rowsort label-5334
SELECT - ( - - 94 ) / COUNT ( * ) + + 14
----
-80

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

skipif mysql # not compatible
query I rowsort label-5335
SELECT ALL + 56 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5336
SELECT + + NULLIF ( + COUNT( * ), 9 * + - 61 ) DIV + 93 + - 12 + 85 + + 2
----
75

skipif mysql # not compatible
query I rowsort label-5336
SELECT + + NULLIF ( + COUNT ( * ), 9 * + - 61 ) / + 93 + - 12 + 85 + + 2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT COUNT( * ) * - 52
----
-52

skipif mysql # not compatible
query I rowsort label-5337
SELECT COUNT ( * ) * - 52
----
-52

query I rowsort
SELECT ALL + 6 * + 57 AS col0
----
342

query I rowsort
SELECT + ( - - 5 ) + + 23 + - + 61 * 80 * - 19 AS col1
----
92748

onlyif mysql # aggregate syntax: 
query I rowsort label-5340
SELECT + NULLIF ( + 36, + 0 * + 54 * - ( + - 25 ) + 98 - 86 * COUNT( * ) )
----
36

skipif mysql # not compatible
query I rowsort label-5340
SELECT + NULLIF ( + 36, + 0 * + 54 * - ( + - 25 ) + 98 - 86 * COUNT ( * ) )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5341
SELECT 26 * - + COUNT( * ) + - 26 AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-5341
SELECT 26 * - + COUNT ( * ) + - 26 AS col2
----
-52

query I rowsort
SELECT ALL - + 40 * - 31 * - 56 AS col1
----
-69440

query I rowsort
SELECT DISTINCT 7 * - 66
----
-462

query I rowsort
SELECT 10 + - 95 AS col0
----
-85

query I rowsort
SELECT ALL - ( - 11 )
----
11

query I rowsort
SELECT 26 + - 70
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5347
SELECT SUM( ALL + CAST( - 93 AS SIGNED ) )
----
-93

skipif mysql # not compatible
query I rowsort label-5347
SELECT SUM ( ALL + CAST ( - 93 AS INTEGER ) )
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-5348
SELECT COUNT( * ) AS col0, 55
----
1
55

skipif mysql # not compatible
query II rowsort label-5348
SELECT COUNT ( * ) AS col0, 55
----
1
55

query I rowsort
SELECT DISTINCT - CASE 29 WHEN + ( - 92 ) * - + 12 THEN - - 84 / - + 18 END col1
----
NULL

query I rowsort
SELECT 7 * ( - 80 )
----
-560

onlyif mysql # DIV for integer division: 
query I rowsort label-5351
SELECT - 58 * 20 * - - 57 DIV - 1 + + 15
----
66135

skipif mysql # not compatible
query I rowsort label-5351
SELECT - 58 * 20 * - - 57 / - 1 + + 15
----
66135

query I rowsort
SELECT ALL - ( + 81 ) AS col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT 16 + + COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-5353
SELECT 16 + + COUNT ( * )
----
17

query II rowsort
SELECT 26 + + ( + 69 ) * 31 AS col1, + 60 AS col0
----
2165
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5355
SELECT ALL - CAST( + 53 AS SIGNED ) * + COUNT( DISTINCT - 53 ) + + - 35 AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-5355
SELECT ALL - CAST ( + 53 AS INTEGER ) * + COUNT ( DISTINCT - 53 ) + + - 35 AS col0
----
-88

query I rowsort
SELECT 32 * + 24 col0
----
768

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5357
SELECT ALL - ( CASE - ( + 93 ) WHEN COUNT( * ) + + 60 THEN - 42 + - 43 ELSE - - COALESCE ( + 84, - CAST( NULL AS SIGNED ) ) * + CAST( 83 AS SIGNED ) * - + 98 * + + COALESCE ( + - 58, - + 85 ) + 50 END ) DIV 36 + + 70 + - 63 * 70 - 27
----
-1105169

skipif mysql # not compatible
query I rowsort label-5357
SELECT ALL - ( CASE - ( + 93 ) WHEN COUNT ( * ) + + 60 THEN - 42 + - 43 ELSE - - COALESCE ( + 84, - CAST ( NULL AS INTEGER ) ) * + CAST ( 83 AS INTEGER ) * - + 98 * + + COALESCE ( + - 58, - + 85 ) + 50 END ) / 36 + + 70 + - 63 * 70 - 27
----
-1105169

query I rowsort
SELECT ALL 76 + 22
----
98

query I rowsort
SELECT 61 + 35 + - 74
----
22

query I rowsort
SELECT ALL - 33 * - - 36 AS col1
----
-1188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5361
SELECT ALL - 24 + + 82 - + 24 - + 11 + - + 14 + + 77 * 36 / - - 24 * - CAST( NULL AS SIGNED ) * + 20 * + COUNT( * ) AS col2, 44 - - 69 + 18
----
NULL
131

skipif mysql # not compatible
query II rowsort label-5361
SELECT ALL - 24 + + 82 - + 24 - + 11 + - + 14 + + 77 * 36 / - - 24 * - CAST ( NULL AS INTEGER ) * + 20 * + COUNT ( * ) AS col2, 44 - - 69 + 18
----
NULL
131

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5363
SELECT DISTINCT NULLIF ( 47, + - CASE + 71 WHEN 78 THEN NULL WHEN + CAST( NULL AS DECIMAL ) * 71 THEN - SUM( + 96 ) ELSE NULL END ) + - + 63 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-5363
SELECT DISTINCT NULLIF ( 47, + - CASE + 71 WHEN 78 THEN NULL WHEN + CAST ( NULL AS REAL ) * 71 THEN - SUM ( + 96 ) ELSE NULL END ) + - + 63 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-5364
SELECT DISTINCT 92 AS col1, 55 * COUNT( * ) AS col1
----
92
55

skipif mysql # not compatible
query II rowsort label-5364
SELECT DISTINCT 92 AS col1, 55 * COUNT ( * ) AS col1
----
92
55

query I rowsort
SELECT + - 91 + 35 AS col0
----
-56

query I rowsort
SELECT ALL + 27 * - 81
----
-2187

query II rowsort
SELECT - 71 AS col0, 56 + NULLIF ( - 72, + 7 * - - 0 )
----
-71
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT + + NULLIF ( + + 37, + 22 ) + + MIN( DISTINCT 25 ) + + - 92 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-5368
SELECT + + NULLIF ( + + 37, + 22 ) + + MIN ( DISTINCT 25 ) + + - 92 AS col1
----
-30

query I rowsort
SELECT ALL + 10 - - 57 col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT - 85 * - 88 - + + 96 - + 36 * + COUNT( * ) AS col1
----
7348

skipif mysql # not compatible
query I rowsort label-5370
SELECT - 85 * - 88 - + + 96 - + 36 * + COUNT ( * ) AS col1
----
7348

query II rowsort
SELECT - + 99 AS col1, 24 * 39 AS col1
----
-99
936

query I rowsort
SELECT + - 41 + 1
----
-40

query I rowsort
SELECT + 39 * + NULLIF ( 33, + 56 )
----
1287

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

query I rowsort
SELECT + ( - + 35 ) col1
----
-35

query I rowsort
SELECT + 42 * 76
----
3192

query I rowsort
SELECT + 1 * + - 16 AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5378
SELECT + 7 * + CASE + COUNT( * ) WHEN 5 / - 30 * 50 + + 54 + + 34 THEN 30 ELSE NULL END / 22 * + AVG ( DISTINCT + - 96 ) * + + 51 * + 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5378
SELECT + 7 * + CASE + COUNT ( * ) WHEN 5 / - 30 * 50 + + 54 + + 34 THEN 30 ELSE NULL END / 22 * + AVG ( DISTINCT + - 96 ) * + + 51 * + 13 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5379
SELECT ALL COALESCE ( + ( + + 66 ), + - 74, - 23, + 41 * 34 + - - 71 * - + COUNT( * ) + 52 - + + 11 ) * - + 70 AS col1, 11 col0
----
-4620
11

skipif mysql # not compatible
query II rowsort label-5379
SELECT ALL COALESCE ( + ( + + 66 ), + - 74, - 23, + 41 * 34 + - - 71 * - + COUNT ( * ) + 52 - + + 11 ) * - + 70 AS col1, 11 col0
----
-4620
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5380
SELECT - COUNT( * ) DIV 66 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5380
SELECT - COUNT ( * ) / 66 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5381
SELECT NULLIF ( COUNT( * ), - 34 )
----
1

skipif mysql # not compatible
query I rowsort label-5381
SELECT NULLIF ( COUNT ( * ), - 34 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5382
SELECT + NULLIF ( 6, - + 64 * + - ( + COALESCE ( COUNT( DISTINCT 49 ), 57, + ( MAX( - COALESCE ( - + 15, - 45 ) ) ) ) ) + + 15 )
----
6

skipif mysql # not compatible
query I rowsort label-5382
SELECT + NULLIF ( 6, - + 64 * + - ( + COALESCE ( COUNT ( DISTINCT 49 ), 57, + ( MAX ( - COALESCE ( - + 15, - 45 ) ) ) ) ) + + 15 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5383
SELECT + ( + - ( - - COALESCE ( - COUNT( * ), 97 + 56 ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5383
SELECT + ( + - ( - - COALESCE ( - COUNT ( * ), 97 + 56 ) ) ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5384
SELECT DISTINCT + ( 3 ) * + CAST( NULL AS SIGNED ) + ( + ( + 37 ) ) + - ( + 85 ) AS col0, 67 AS col2
----
NULL
67

skipif mysql # not compatible
query II rowsort label-5384
SELECT DISTINCT + ( 3 ) * + CAST ( NULL AS INTEGER ) + ( + ( + 37 ) ) + - ( + 85 ) AS col0, 67 AS col2
----
NULL
67

query I rowsort
SELECT ALL + 24 * - 71 * - + ( - 73 ) + + 66 * + 57
----
-120630

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT DISTINCT ( 44 ) * ( COUNT( * ) ) + - 43 + - 72 + + + 6 AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-5386
SELECT DISTINCT ( 44 ) * ( COUNT ( * ) ) + - 43 + - 72 + + + 6 AS col2
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-5387
SELECT COALESCE ( + COUNT( * ), - - 60 ) col1, 9 + + + 84
----
1
93

skipif mysql # not compatible
query II rowsort label-5387
SELECT COALESCE ( + COUNT ( * ), - - 60 ) col1, 9 + + + 84
----
1
93

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5389
SELECT + 11 + + 53 * + - COUNT( DISTINCT - 53 ) - 53 AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-5389
SELECT + 11 + + 53 * + - COUNT ( DISTINCT - 53 ) - 53 AS col1
----
-95

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

query I rowsort
SELECT + 9 * + 40 + + 10 * - 6 col2
----
300

onlyif mysql # aggregate syntax: 
query I rowsort label-5392
SELECT DISTINCT COUNT( * ) * - 40 + + 1
----
-39

skipif mysql # not compatible
query I rowsort label-5392
SELECT DISTINCT COUNT ( * ) * - 40 + + 1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT - MAX( - 12 ) + - 37 * - 98 AS col1
----
3638

skipif mysql # not compatible
query I rowsort label-5393
SELECT - MAX ( - 12 ) + - 37 * - 98 AS col1
----
3638

query II rowsort
SELECT DISTINCT + + 3 * - 93, 49 AS col2
----
-279
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5395
SELECT ALL + + 86 + + 79 + + + 81 + + - COUNT( * ) * + + 34 * + + CASE WHEN + 29 NOT BETWEEN NULL AND - 46 THEN NULL WHEN 74 IS NOT NULL THEN + 20 * - + 29 / + - 95 + + - ( + + 28 ) WHEN NULL <> - 84 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5395
SELECT ALL + + 86 + + 79 + + + 81 + + - COUNT ( * ) * + + 34 * + + CASE WHEN + 29 NOT BETWEEN NULL AND - 46 THEN NULL WHEN 74 IS NOT NULL THEN + 20 * - + 29 / + - 95 + + - ( + + 28 ) WHEN NULL <> - 84 THEN NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5396
SELECT ALL - 42 - - 98 DIV - 99 * - + 66 AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-5396
SELECT ALL - 42 - - 98 / - 99 * - + 66 AS col0
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5397
SELECT - MAX( ALL + CAST( NULL AS SIGNED ) ) - - - 61 AS col0, 10 * - - ( - CAST( + COUNT( * ) AS SIGNED ) ) AS col2
----
NULL
-10

skipif mysql # not compatible
query II rowsort label-5397
SELECT - MAX ( ALL + CAST ( NULL AS INTEGER ) ) - - - 61 AS col0, 10 * - - ( - CAST ( + COUNT ( * ) AS INTEGER ) ) AS col2
----
NULL
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-5398
SELECT - 83 - - - CASE + 71 WHEN - + 63 * 54 THEN + 17 * - ( + 70 ) - - 49 WHEN - 16 + 88 THEN NULLIF ( 3, 49 / 60 ) + + 91 + + + 32 * - 23 * 8 * - COUNT( * ) / + + 84 WHEN - COUNT( * ) THEN NULL END * + + 55 AS col1, 93
----
NULL
93

skipif mysql # not compatible
query II rowsort label-5398
SELECT - 83 - - - CASE + 71 WHEN - + 63 * 54 THEN + 17 * - ( + 70 ) - - 49 WHEN - 16 + 88 THEN NULLIF ( 3, 49 / 60 ) + + 91 + + + 32 * - 23 * 8 * - COUNT ( * ) / + + 84 WHEN - COUNT ( * ) THEN NULL END * + + 55 AS col1, 93
----
NULL
93

onlyif mysql # DIV for integer division: 
query I rowsort label-5399
SELECT ALL + 90 DIV + - 60 + + 22 * + + 73
----
1605

skipif mysql # not compatible
query I rowsort label-5399
SELECT ALL + 90 / + - 60 + + 22 * + + 73
----
1605

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5400
SELECT + + 18 - - COUNT( * ) + - COALESCE ( 17, - + 3 * - - COUNT( * ), 40 DIV + - 37 * 13 )
----
2

skipif mysql # not compatible
query I rowsort label-5400
SELECT + + 18 - - COUNT ( * ) + - COALESCE ( 17, - + 3 * - - COUNT ( * ), 40 / + - 37 * 13 )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5401
SELECT - ( - 2 ) * - COUNT( DISTINCT 11 ) + - + CAST( - 68 AS SIGNED )
----
66

skipif mysql # not compatible
query I rowsort label-5401
SELECT - ( - 2 ) * - COUNT ( DISTINCT 11 ) + - + CAST ( - 68 AS INTEGER )
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5402
SELECT 31 DIV 77 * + + COALESCE ( + + 64, - - MIN( 31 ) + - 72 + + 87 ) + - - 4 DIV 19 + 27 + - 89 * COALESCE ( 80, + ( + COUNT( * ) ) - - COUNT( * ), 41 ) AS col0
----
-7093

skipif mysql # not compatible
query I rowsort label-5402
SELECT 31 / 77 * + + COALESCE ( + + 64, - - MIN ( 31 ) + - 72 + + 87 ) + - - 4 / 19 + 27 + - 89 * COALESCE ( 80, + ( + COUNT ( * ) ) - - COUNT ( * ), 41 ) AS col0
----
-7093

query I rowsort
SELECT - 77 * - 7 AS col1
----
539

query I rowsort
SELECT - 95 + + 29 AS col2
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5405
SELECT + CAST( + 31 AS SIGNED )
----
31

skipif mysql # not compatible
query I rowsort label-5405
SELECT + CAST ( + 31 AS INTEGER )
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-5406
SELECT ALL + 61 AS col0, 94 + - + COUNT( * ) AS col1
----
61
93

skipif mysql # not compatible
query II rowsort label-5406
SELECT ALL + 61 AS col0, 94 + - + COUNT ( * ) AS col1
----
61
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5407
SELECT CAST( + - COALESCE ( - - 25, + + 88 * + 40 * - + 41 + - 82 ) AS SIGNED ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-5407
SELECT CAST ( + - COALESCE ( - - 25, + + 88 * + 40 * - + 41 + - 82 ) AS INTEGER ) AS col1
----
-25

query I rowsort
SELECT - 50 * + 34 + + 27 - + + 70 AS col2
----
-1743

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5409
SELECT ALL + 80 DIV + SUM( + 82 ) + + 32
----
32

skipif mysql # not compatible
query I rowsort label-5409
SELECT ALL + 80 / + SUM ( + 82 ) + + 32
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-5410
SELECT ALL 81 DIV + CASE - + 47 WHEN - 14 DIV + 73 THEN NULL WHEN - CASE CAST( ( + CAST( NULL AS DECIMAL ) ) AS SIGNED ) WHEN - + 6 + - 3 THEN NULL ELSE 57 DIV COUNT( * ) + + 6 END THEN + + 27 ELSE COUNT( * ) END + + 7
----
88

skipif mysql # not compatible
query I rowsort label-5410
SELECT ALL 81 / + CASE - + 47 WHEN - 14 / + 73 THEN NULL WHEN - CASE CAST ( ( + CAST ( NULL AS REAL ) ) AS INTEGER ) WHEN - + 6 + - 3 THEN NULL ELSE 57 / COUNT ( * ) + + 6 END THEN + + 27 ELSE COUNT ( * ) END + + 7
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-5411
SELECT 69 DIV + 28 + 39 DIV - 69
----
2

skipif mysql # not compatible
query I rowsort label-5411
SELECT 69 / + 28 + 39 / - 69
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5412
SELECT ALL - ( ( - 7 ) ) DIV + 73 * + 25 + + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5412
SELECT ALL - ( ( - 7 ) ) / + 73 * + 25 + + COUNT ( * ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5413
SELECT + 11 / - CASE 64 WHEN + CAST( COUNT( * ) AS SIGNED ) THEN NULL WHEN + - 91 * - - 41 + - 28 + 31 THEN NULL WHEN - ( - 1 ) THEN 90 WHEN - + 85 THEN + 36 - + + 34 * - + 7 + 24 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5413
SELECT + 11 / - CASE 64 WHEN + CAST ( COUNT ( * ) AS INTEGER ) THEN NULL WHEN + - 91 * - - 41 + - 28 + 31 THEN NULL WHEN - ( - 1 ) THEN 90 WHEN - + 85 THEN + 36 - + + 34 * - + 7 + 24 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5414
SELECT + ( + 35 ) + - MIN( - + 88 )
----
123

skipif mysql # not compatible
query I rowsort label-5414
SELECT + ( + 35 ) + - MIN ( - + 88 )
----
123

query I rowsort
SELECT DISTINCT 58 * + - 23
----
-1334

query I rowsort
SELECT 86 * + 42
----
3612

query I rowsort
SELECT ALL 93 * - 48 * 64 AS col2
----
-285696

query I rowsort
SELECT ALL ( 57 ) + 96 col2
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT DISTINCT + 4 - + MAX( DISTINCT + 3 )
----
1

skipif mysql # not compatible
query I rowsort label-5419
SELECT DISTINCT + 4 - + MAX ( DISTINCT + 3 )
----
1

query I rowsort
SELECT DISTINCT 43 * + 25 + + - 73 + + - 11 + + 45 * + 43 + - 15 AS col2
----
2911

query I rowsort
SELECT ALL + - 50 - - 84
----
34

query I rowsort
SELECT 57 * + 54 + 5 * 49
----
3323

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5423
SELECT ALL 61 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5423
SELECT ALL 61 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT DISTINCT 70 - + + ( COUNT( 51 ) )
----
69

skipif mysql # not compatible
query I rowsort label-5424
SELECT DISTINCT 70 - + + ( COUNT ( 51 ) )
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-5425
SELECT ALL COALESCE ( + + 57, COALESCE ( 71, + 60 + 42 * + - 70, - 55 ) DIV + 93 + - 70 )
----
57

skipif mysql # not compatible
query I rowsort label-5425
SELECT ALL COALESCE ( + + 57, COALESCE ( 71, + 60 + 42 * + - 70, - 55 ) / + 93 + - 70 )
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5426
SELECT ALL + CAST( NULL AS SIGNED ) - - COALESCE ( + 21, + - 51 / - + 68 + 68 * + 55 * - 0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5426
SELECT ALL + CAST ( NULL AS INTEGER ) - - COALESCE ( + 21, + - 51 / - + 68 + 68 * + 55 * - 0 )
----
NULL

query I rowsort
SELECT 37 * - 25
----
-925

onlyif mysql # aggregate syntax: 
query II rowsort label-5428
SELECT SUM( + 41 ) - - 11 * - - 23, 70 col0
----
294
70

skipif mysql # not compatible
query II rowsort label-5428
SELECT SUM ( + 41 ) - - 11 * - - 23, 70 col0
----
294
70

query I rowsort
SELECT - - NULLIF ( + ( 21 ), + + 58 * - 54 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5430
SELECT + MAX( DISTINCT - 52 ) * + - 81 * + 15
----
63180

skipif mysql # not compatible
query I rowsort label-5430
SELECT + MAX ( DISTINCT - 52 ) * + - 81 * + 15
----
63180

onlyif mysql # aggregate syntax: 
query II rowsort label-5431
SELECT ALL + - 33 * + + ( 68 ) AS col1, - COUNT( * ) AS col1
----
-2244
-1

skipif mysql # not compatible
query II rowsort label-5431
SELECT ALL + - 33 * + + ( 68 ) AS col1, - COUNT ( * ) AS col1
----
-2244
-1

query I rowsort
SELECT DISTINCT 73 * 16
----
1168

query I rowsort
SELECT ALL ( - 74 ) col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5434
SELECT - 17 + - + COUNT( ALL + + 81 )
----
-18

skipif mysql # not compatible
query I rowsort label-5434
SELECT - 17 + - + COUNT ( ALL + + 81 )
----
-18

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5436
SELECT - SUM( ALL - + 76 ) * 29 AS col0
----
2204

skipif mysql # not compatible
query I rowsort label-5436
SELECT - SUM ( ALL - + 76 ) * 29 AS col0
----
2204

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5437
SELECT 83 + COUNT( * ) + COUNT( * ) DIV + 83 + - 88
----
-4

skipif mysql # not compatible
query I rowsort label-5437
SELECT 83 + COUNT ( * ) + COUNT ( * ) / + 83 + - 88
----
-4

query I rowsort
SELECT ALL - 67 * 66 AS col2
----
-4422

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT - 44 + 92 * - 3 + + MAX( - + 63 ) AS col1
----
-383

skipif mysql # not compatible
query I rowsort label-5439
SELECT - 44 + 92 * - 3 + + MAX ( - + 63 ) AS col1
----
-383

query I rowsort
SELECT 45 + + 12
----
57

query I rowsort
SELECT 52 + - - 33 AS col0
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-5442
SELECT DISTINCT - 63 DIV - 32
----
1

skipif mysql # not compatible
query I rowsort label-5442
SELECT DISTINCT - 63 / - 32
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5443
SELECT ALL + ( COUNT( * ) ) + + - 14 AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-5443
SELECT ALL + ( COUNT ( * ) ) + + - 14 AS col0
----
-13

query I rowsort
SELECT DISTINCT - 54 + - 39
----
-93

query I rowsort
SELECT DISTINCT 0 + + 88
----
88

query I rowsort
SELECT ALL 59 + 3
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-5447
SELECT ALL + 9 + + - 59 DIV + 62
----
9

skipif mysql # not compatible
query I rowsort label-5447
SELECT ALL + 9 + + - 59 / + 62
----
9

query I rowsort
SELECT ALL - 37 + + 76
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT COUNT( * ) * 27 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-5449
SELECT COUNT ( * ) * 27 AS col2
----
27

query I rowsort
SELECT + ( - + 83 ) * - 53 - - 39 * + 17
----
5062

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5451
SELECT DISTINCT - CASE + 33 WHEN - ( + ( + 3 ) ) + - 10 / + - 81 THEN NULL WHEN - - 58 THEN COUNT( DISTINCT + 4 ) WHEN - + 21 THEN CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5451
SELECT DISTINCT - CASE + 33 WHEN - ( + ( + 3 ) ) + - 10 / + - 81 THEN NULL WHEN - - 58 THEN COUNT ( DISTINCT + 4 ) WHEN - + 21 THEN CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5452
SELECT ALL 46 - + COUNT( * ) + 58
----
103

skipif mysql # not compatible
query I rowsort label-5452
SELECT ALL 46 - + COUNT ( * ) + 58
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5453
SELECT DISTINCT - NULLIF ( + CAST( NULL AS SIGNED ), 23 + - MIN( DISTINCT - - 1 ) * + CAST( NULL AS SIGNED ) * - - ( + + 23 ) ) / + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5453
SELECT DISTINCT - NULLIF ( + CAST ( NULL AS INTEGER ), 23 + - MIN ( DISTINCT - - 1 ) * + CAST ( NULL AS INTEGER ) * - - ( + + 23 ) ) / + COUNT ( * ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5454
SELECT - 76 DIV - 86 * - 66
----
0

skipif mysql # not compatible
query I rowsort label-5454
SELECT - 76 / - 86 * - 66
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5455
SELECT DISTINCT - 73 DIV + 62
----
-1

skipif mysql # not compatible
query I rowsort label-5455
SELECT DISTINCT - 73 / + 62
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5456
SELECT + 42 DIV 83
----
0

skipif mysql # not compatible
query I rowsort label-5456
SELECT + 42 / 83
----
0

query I rowsort
SELECT 49 * - 7 AS col0
----
-343

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5458
SELECT ALL - CAST( NULL AS DECIMAL ) * 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5458
SELECT ALL - CAST ( NULL AS REAL ) * 91 AS col2
----
NULL

query I rowsort
SELECT - ( CASE + + 24 WHEN + ( - NULLIF ( 72, + 65 ) ) + AVG ( 92 ) + 58 + ( 11 ) * - 27 THEN 45 WHEN + - 2 THEN NULL ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5460
SELECT + + 90 * 4 + + + NULLIF ( - 93, 48 ) * + COUNT( * ) AS col0
----
267

skipif mysql # not compatible
query I rowsort label-5460
SELECT + + 90 * 4 + + + NULLIF ( - 93, 48 ) * + COUNT ( * ) AS col0
----
267

onlyif mysql # DIV for integer division: 
query I rowsort label-5461
SELECT + COALESCE ( + 39, + 73 * 22 * + - 24 + + 42 + 3 + - 17 DIV + 7 * + 31 + - 42 + + + 86 + - + 47 * - + 62 ) * + 87
----
3393

skipif mysql # not compatible
query I rowsort label-5461
SELECT + COALESCE ( + 39, + 73 * 22 * + - 24 + + 42 + 3 + - 17 / + 7 * + 31 + - 42 + + + 86 + - + 47 * - + 62 ) * + 87
----
3393

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5462
SELECT ALL + COUNT( * ) * + COALESCE ( COALESCE ( - CAST( NULL AS SIGNED ), 78 + - 85 * + - 10 ), - 42, - + 60 ) AS col1
----
928

skipif mysql # not compatible
query I rowsort label-5462
SELECT ALL + COUNT ( * ) * + COALESCE ( COALESCE ( - CAST ( NULL AS INTEGER ), 78 + - 85 * + - 10 ), - 42, - + 60 ) AS col1
----
928

onlyif mysql # aggregate syntax: 
query I rowsort label-5463
SELECT DISTINCT + 90 * COUNT( + - 61 )
----
90

skipif mysql # not compatible
query I rowsort label-5463
SELECT DISTINCT + 90 * COUNT ( + - 61 )
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-5464
SELECT + ( + 83 ) * 15 + + 66 + - 69 - + 9 DIV + - 2
----
1246

skipif mysql # not compatible
query I rowsort label-5464
SELECT + ( + 83 ) * 15 + + 66 + - 69 - + 9 / + - 2
----
1246

query II rowsort
SELECT ALL - 79 * 22 AS col2, 87 AS col1
----
-1738
87

onlyif mysql # DIV for integer division: 
query I rowsort label-5466
SELECT - CASE - - ( COALESCE ( 9, + 20 ) ) WHEN - 8 THEN 66 DIV - 25 - + - NULLIF ( - 68, 49 ) ELSE - 52 + + 42 * 29 + + 88 END * + 8 AS col1
----
-10032

skipif mysql # not compatible
query I rowsort label-5466
SELECT - CASE - - ( COALESCE ( 9, + 20 ) ) WHEN - 8 THEN 66 / - 25 - + - NULLIF ( - 68, 49 ) ELSE - 52 + + 42 * 29 + + 88 END * + 8 AS col1
----
-10032

query I rowsort
SELECT 97 * 1
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5468
SELECT + 67 - CAST( + 53 AS SIGNED )
----
14

skipif mysql # not compatible
query I rowsort label-5468
SELECT + 67 - CAST ( + 53 AS INTEGER )
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5469
SELECT ALL + + 26 + - - CAST( 95 AS SIGNED )
----
121

skipif mysql # not compatible
query I rowsort label-5469
SELECT ALL + + 26 + - - CAST ( 95 AS INTEGER )
----
121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5470
SELECT ALL - ( - - COUNT( * ) ) + - COALESCE ( - COUNT( * ), - 98 + + 67 ) DIV - - COALESCE ( - + 63, 87 ) + - 83
----
-84

skipif mysql # not compatible
query I rowsort label-5470
SELECT ALL - ( - - COUNT ( * ) ) + - COALESCE ( - COUNT ( * ), - 98 + + 67 ) / - - COALESCE ( - + 63, 87 ) + - 83
----
-84

query I rowsort
SELECT ALL 78 + 78 AS col2
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5472
SELECT ALL - CAST( + COALESCE ( 50, 42 + + 27 / + COUNT( * ) * - ( + CASE 12 WHEN + 45 * - 75 / + 47 * - + 41 THEN - 59 + - MIN( - 45 ) ELSE NULL END ) ) AS SIGNED ) + + COUNT( 62 ) col0, - 19
----
-49
-19

skipif mysql # not compatible
query II rowsort label-5472
SELECT ALL - CAST ( + COALESCE ( 50, 42 + + 27 / + COUNT ( * ) * - ( + CASE 12 WHEN + 45 * - 75 / + 47 * - + 41 THEN - 59 + - MIN ( - 45 ) ELSE NULL END ) ) AS INTEGER ) + + COUNT ( 62 ) col0, - 19
----
-49
-19

query I rowsort
SELECT DISTINCT 21 col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT ALL + 5 + - 82 + + - COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-5474
SELECT ALL + 5 + - 82 + + - COUNT ( * )
----
-78

query I rowsort
SELECT ALL - 50 * - 88 col0
----
4400

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT DISTINCT ( + COUNT( * ) ) + + - 39
----
-38

skipif mysql # not compatible
query I rowsort label-5476
SELECT DISTINCT ( + COUNT ( * ) ) + + - 39
----
-38

query I rowsort
SELECT + 12 + - 46
----
-34

query I rowsort
SELECT ALL + 5 + - - 75 AS col0
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5479
SELECT - CASE - 2 WHEN - 1 * + - 38 * 74 THEN CASE - + ( MAX( - + 96 ) ) WHEN - - 83 * - 96 THEN + ( 8 ) WHEN + CAST( + CAST( + 76 AS DECIMAL ) AS SIGNED ) * + NULLIF ( - 15, + 37 / 70 * 13 - + 74 ) - 10 THEN NULL WHEN 78 + + 57 THEN SUM( ALL + 96 ) + CAST( + 6 AS SIGNED ) END * - 29 - + CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5479
SELECT - CASE - 2 WHEN - 1 * + - 38 * 74 THEN CASE - + ( MAX ( - + 96 ) ) WHEN - - 83 * - 96 THEN + ( 8 ) WHEN + CAST ( + CAST ( + 76 AS REAL ) AS INTEGER ) * + NULLIF ( - 15, + 37 / 70 * 13 - + 74 ) - 10 THEN NULL WHEN 78 + + 57 THEN SUM ( ALL + 96 ) + CAST ( + 6 AS INTEGER ) END * - 29 - + CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT - CASE + 18 WHEN - 41 THEN - + 94 END + - 79
----
NULL

query I rowsort
SELECT ALL + 99 * + 85 - + 7
----
8408

onlyif mysql # aggregate syntax: 
query I rowsort label-5483
SELECT ALL 28 * - + COUNT( * ) - + ( + 17 ) * - 1 + - 10
----
-21

skipif mysql # not compatible
query I rowsort label-5483
SELECT ALL 28 * - + COUNT ( * ) - + ( + 17 ) * - 1 + - 10
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5484
SELECT DISTINCT 63 * - MIN( ALL - + 56 )
----
3528

skipif mysql # not compatible
query I rowsort label-5484
SELECT DISTINCT 63 * - MIN ( ALL - + 56 )
----
3528

query I rowsort
SELECT - NULLIF ( + + 21, - ( + 50 ) + + 44 * - - 59 ) + - 22
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5486
SELECT DISTINCT + COALESCE ( 26, + CASE ( - CAST( NULL AS SIGNED ) ) WHEN - 71 + ( ( 45 ) ) * 50 THEN NULL WHEN 12 THEN + NULLIF ( CASE + 81 WHEN 22 THEN + 68 * + 4 + 19 ELSE NULL END, 33 * - 18 ) END ) col1
----
26

skipif mysql # not compatible
query I rowsort label-5486
SELECT DISTINCT + COALESCE ( 26, + CASE ( - CAST ( NULL AS INTEGER ) ) WHEN - 71 + ( ( 45 ) ) * 50 THEN NULL WHEN 12 THEN + NULLIF ( CASE + 81 WHEN 22 THEN + 68 * + 4 + 19 ELSE NULL END, 33 * - 18 ) END ) col1
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5487
SELECT - 16 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5487
SELECT - 16 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 22 * + 83
----
1826

query I rowsort
SELECT DISTINCT - 25 * 61
----
-1525

onlyif mysql # DIV for integer division: 
query I rowsort label-5490
SELECT + 74 DIV 64
----
1

skipif mysql # not compatible
query I rowsort label-5490
SELECT + 74 / 64
----
1

query I rowsort
SELECT - 86 * - 49 AS col0
----
4214

query I rowsort
SELECT ALL + ( 87 ) AS col0
----
87

query I rowsort
SELECT DISTINCT - 26 * + 50
----
-1300

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT ALL + CASE NULLIF ( - 2, 77 ) WHEN + 69 THEN NULL ELSE 16 END * - COUNT( * ) + 10
----
-6

skipif mysql # not compatible
query I rowsort label-5494
SELECT ALL + CASE NULLIF ( - 2, 77 ) WHEN + 69 THEN NULL ELSE 16 END * - COUNT ( * ) + 10
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT - 83 * 31 + COUNT( * ) * CASE + 67 + 69 WHEN + 89 THEN - ( + 75 ) ELSE + 14 END AS col0
----
-2559

skipif mysql # not compatible
query I rowsort label-5495
SELECT - 83 * 31 + COUNT ( * ) * CASE + 67 + 69 WHEN + 89 THEN - ( + 75 ) ELSE + 14 END AS col0
----
-2559

query I rowsort
SELECT DISTINCT ( - 45 ) + 83 AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5497
SELECT DISTINCT COUNT( * ) * - 91
----
-91

skipif mysql # not compatible
query I rowsort label-5497
SELECT DISTINCT COUNT ( * ) * - 91
----
-91

query I rowsort
SELECT + 96 + ( - ( 77 ) ) AS col0
----
19

query I rowsort
SELECT + 2 - 65 AS col0
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5500
SELECT + 72 + - CAST( + 10 + + 29 * + 60 AS SIGNED ) col1
----
-1678

skipif mysql # not compatible
query I rowsort label-5500
SELECT + 72 + - CAST ( + 10 + + 29 * + 60 AS INTEGER ) col1
----
-1678

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

skipif mysql # not compatible
query I rowsort label-5501
SELECT ALL ( ( - 85 ) ) + + COUNT ( * ) AS col2
----
-84

query I rowsort
SELECT ALL 42 * - 22
----
-924

query I rowsort
SELECT ALL 54 + 15 AS col0
----
69

query I rowsort
SELECT + 66 + - 78 AS col0
----
-12

query I rowsort
SELECT ALL 36 + 35 AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT + COUNT( * ) + 48 * ( 93 )
----
4465

skipif mysql # not compatible
query I rowsort label-5506
SELECT + COUNT ( * ) + 48 * ( 93 )
----
4465

query I rowsort
SELECT + 18 + - 3
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5508
SELECT ALL 24 - - CAST( NULL AS SIGNED ) / - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-5508
SELECT ALL 24 - - CAST ( NULL AS INTEGER ) / - 9
----
NULL

query I rowsort
SELECT + 30 * 2 AS col0
----
60

query I rowsort
SELECT - ( 33 ) + - 78 AS col2
----
-111

query I rowsort
SELECT + 82 * 94 AS col0
----
7708

query I rowsort
SELECT DISTINCT - 29 * - 66 AS col1
----
1914

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5513
SELECT - CAST( - 33 AS SIGNED ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-5513
SELECT - CAST ( - 33 AS INTEGER ) AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT - SUM( ALL - COALESCE ( - 74, 28, - 98 ) ) * + 25
----
-1850

skipif mysql # not compatible
query I rowsort label-5514
SELECT - SUM ( ALL - COALESCE ( - 74, 28, - 98 ) ) * + 25
----
-1850

onlyif mysql # aggregate syntax: 
query I rowsort label-5515
SELECT DISTINCT + COUNT( * ) * + 17 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-5515
SELECT DISTINCT + COUNT ( * ) * + 17 AS col1
----
17

query I rowsort
SELECT DISTINCT 75 * 91
----
6825

query I rowsort
SELECT ALL + 11 * - 73
----
-803

query I rowsort
SELECT - 67 * - 25
----
1675

query I rowsort
SELECT - 80 * - 29
----
2320

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

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

query I rowsort
SELECT ALL 94 * 63
----
5922

onlyif mysql # DIV for integer division: 
query I rowsort label-5522
SELECT DISTINCT + 90 DIV 2
----
45

skipif mysql # not compatible
query I rowsort label-5522
SELECT DISTINCT + 90 / 2
----
45

query I rowsort
SELECT DISTINCT + - 12 col2
----
-12

query I rowsort
SELECT ALL 60 * 77 + 31 * 45
----
6015

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

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

query I rowsort
SELECT ALL + 81 * 82 + 26 col0
----
6668

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT ALL - COALESCE ( - COALESCE ( 78, 78 ), 2 + + MIN( DISTINCT + 53 ) ) * 35 + - 27 AS col2
----
2703

skipif mysql # not compatible
query I rowsort label-5527
SELECT ALL - COALESCE ( - COALESCE ( 78, 78 ), 2 + + MIN ( DISTINCT + 53 ) ) * 35 + - 27 AS col2
----
2703

query I rowsort
SELECT - + 66 * 14 AS col1
----
-924

onlyif mysql # aggregate syntax: 
query I rowsort label-5529
SELECT - ( - 84 ) + CASE - 53 + NULLIF ( - 62, + 51 ) WHEN 64 THEN 54 + + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5529
SELECT - ( - 84 ) + CASE - 53 + NULLIF ( - 62, + 51 ) WHEN 64 THEN 54 + + COUNT ( * ) END
----
NULL

query I rowsort
SELECT - 68 * - 86 - - 21
----
5869

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5532
SELECT ALL - + 2 * - CAST( 64 AS SIGNED ) + COUNT( * ) AS col1
----
129

skipif mysql # not compatible
query I rowsort label-5532
SELECT ALL - + 2 * - CAST ( 64 AS INTEGER ) + COUNT ( * ) AS col1
----
129

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT COALESCE ( 56, SUM( - 72 ) + 94, 89 ) * + 71 + - ( - 96 )
----
4072

skipif mysql # not compatible
query I rowsort label-5534
SELECT COALESCE ( 56, SUM ( - 72 ) + 94, 89 ) * + 71 + - ( - 96 )
----
4072

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT DISTINCT + 77 * SUM( 31 )
----
2387

skipif mysql # not compatible
query I rowsort label-5535
SELECT DISTINCT + 77 * SUM ( 31 )
----
2387

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5538
SELECT DISTINCT - 20 * 84 DIV - 94 + - CAST( + 65 AS SIGNED ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-5538
SELECT DISTINCT - 20 * 84 / - 94 + - CAST ( + 65 AS INTEGER ) AS col2
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5539
SELECT DISTINCT + CAST( - 27 AS SIGNED ) + - 59
----
-86

skipif mysql # not compatible
query I rowsort label-5539
SELECT DISTINCT + CAST ( - 27 AS INTEGER ) + - 59
----
-86

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5541
SELECT DISTINCT 42 DIV - 55 * + 93
----
0

skipif mysql # not compatible
query I rowsort label-5541
SELECT DISTINCT 42 / - 55 * + 93
----
0

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

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

query I rowsort
SELECT ( - 55 ) * + 25 AS col0
----
-1375

query I rowsort
SELECT ALL 77 * 55
----
4235

onlyif mysql # aggregate syntax: 
query I rowsort label-5545
SELECT COUNT( ALL - 88 ) - ( + 29 ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-5545
SELECT COUNT ( ALL - 88 ) - ( + 29 ) AS col1
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-5546
SELECT ( 59 ) DIV 20 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-5546
SELECT ( 59 ) / 20 AS col2
----
2

query I rowsort
SELECT DISTINCT 94 * 22
----
2068

onlyif mysql # DIV for integer division: 
query I rowsort label-5548
SELECT DISTINCT + 33 DIV + 25 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5548
SELECT DISTINCT + 33 / + 25 AS col0
----
1

query I rowsort
SELECT ALL 70 - 50
----
20

query I rowsort
SELECT ( - + 54 ) * + 86
----
-4644

query I rowsort
SELECT ALL + 15 * + - CASE ( 17 ) WHEN + 23 * + 33 THEN + 91 ELSE NULL END * 30 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5552
SELECT MAX( ALL - - 29 ) - - CAST( NULL AS SIGNED ) / ( + 54 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5552
SELECT MAX ( ALL - - 29 ) - - CAST ( NULL AS INTEGER ) / ( + 54 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5553
SELECT ALL 34 * 81 DIV 49
----
56

skipif mysql # not compatible
query I rowsort label-5553
SELECT ALL 34 * 81 / 49
----
56

query I rowsort
SELECT 95 - 71 + 35 AS col0
----
59

query I rowsort
SELECT COALESCE ( 7, 49 ) * 41 col1
----
287

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5556
SELECT + CAST( NULL AS SIGNED ) / - + 27 * + 71 + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-5556
SELECT + CAST ( NULL AS INTEGER ) / - + 27 * + 71 + 86
----
NULL

query I rowsort
SELECT ALL 39 + - + 5 AS col1
----
34

query I rowsort
SELECT 57 + - 19
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-5559
SELECT DISTINCT + 25 + + 13 DIV 3 col0
----
29

skipif mysql # not compatible
query I rowsort label-5559
SELECT DISTINCT + 25 + + 13 / 3 col0
----
29

query I rowsort
SELECT DISTINCT - COALESCE ( + 81, 0 ) AS col1
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5561
SELECT ALL - 92 + - - COUNT( * ) + 15 DIV 55 AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-5561
SELECT ALL - 92 + - - COUNT ( * ) + 15 / 55 AS col2
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-5562
SELECT DISTINCT 10 DIV - 25
----
0

skipif mysql # not compatible
query I rowsort label-5562
SELECT DISTINCT 10 / - 25
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT ALL - + ( + + 15 ) + + COUNT( * ) * + 51 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-5563
SELECT ALL - + ( + + 15 ) + + COUNT ( * ) * + 51 AS col1
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5564
SELECT ALL + + 24 + - COUNT( * ) + - 99 DIV 20
----
19

skipif mysql # not compatible
query I rowsort label-5564
SELECT ALL + + 24 + - COUNT ( * ) + - 99 / 20
----
19

query I rowsort
SELECT 26 + 17
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT ALL 28 * MAX( DISTINCT - 54 ) AS col2
----
-1512

skipif mysql # not compatible
query I rowsort label-5566
SELECT ALL 28 * MAX ( DISTINCT - 54 ) AS col2
----
-1512

query I rowsort
SELECT DISTINCT - 42 + - 92 + 40 AS col1
----
-94

query I rowsort
SELECT DISTINCT + 67 * - - 7 AS col2
----
469

onlyif mysql # aggregate syntax: 
query I rowsort label-5569
SELECT ALL + MAX( DISTINCT 47 ) + 31 * - 16
----
-449

skipif mysql # not compatible
query I rowsort label-5569
SELECT ALL + MAX ( DISTINCT 47 ) + 31 * - 16
----
-449

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5571
SELECT - 99 * - COUNT( * ) + + COUNT( * ) * COUNT( * )
----
100

skipif mysql # not compatible
query I rowsort label-5571
SELECT - 99 * - COUNT ( * ) + + COUNT ( * ) * COUNT ( * )
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5572
SELECT DISTINCT + - 82 + + CAST( 47 AS SIGNED ) + - 81 * 19
----
-1574

skipif mysql # not compatible
query I rowsort label-5572
SELECT DISTINCT + - 82 + + CAST ( 47 AS INTEGER ) + - 81 * 19
----
-1574

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

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

query I rowsort
SELECT ALL - 48 + + 54 + 97
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-5575
SELECT MIN( 63 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-5575
SELECT MIN ( 63 ) AS col1
----
63

query I rowsort
SELECT ALL - ( + 20 ) AS col0
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5577
SELECT + CAST( NULL AS SIGNED ) * 65 * + 79 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5577
SELECT + CAST ( NULL AS INTEGER ) * 65 * + 79 + + COUNT ( * )
----
NULL

query II rowsort
SELECT ALL 12 AS col0, 75
----
12
75

onlyif mysql # aggregate syntax: 
query II rowsort label-5579
SELECT DISTINCT 64 AS col2, MIN( DISTINCT - + 28 ) * + 38 AS col0
----
64
-1064

skipif mysql # not compatible
query II rowsort label-5579
SELECT DISTINCT 64 AS col2, MIN ( DISTINCT - + 28 ) * + 38 AS col0
----
64
-1064

query I rowsort
SELECT 64 * + + 21 AS col0
----
1344

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

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

query I rowsort
SELECT 41 + + - 32 + - 34 + + 93 AS col0
----
68

query II rowsort
SELECT - 23 AS col1, 43
----
-23
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5584
SELECT 51 + + COUNT( - - 79 ) + 21 DIV + 76 * + 25 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-5584
SELECT 51 + + COUNT ( - - 79 ) + 21 / + 76 * + 25 AS col0
----
52

query I rowsort
SELECT 54 - - 87 + 86 - - 4 * 88 * - 75
----
-26173

query I rowsort
SELECT ALL + 19 * - + 28 * 51
----
-27132

query I rowsort
SELECT DISTINCT + 29 * - 42 * - 75 AS col0
----
91350

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

skipif mysql # not compatible
query I rowsort label-5588
SELECT ALL MAX ( - 80 )
----
-80

query II rowsort
SELECT 20, + 97 AS col0
----
20
97

query I rowsort
SELECT 5 + 26 - + + 86 + + 56 * - 60 AS col0
----
-3415

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT ALL - MIN( - 33 ) + - 47 - - 8
----
-6

skipif mysql # not compatible
query I rowsort label-5591
SELECT ALL - MIN ( - 33 ) + - 47 - - 8
----
-6

query I rowsort
SELECT DISTINCT 22 + + + 23
----
45

query I rowsort
SELECT ALL - 6 + 42
----
36

query I rowsort
SELECT 72 * 67
----
4824

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5596
SELECT DISTINCT + COUNT( * ) * - - 67 DIV + 54
----
1

skipif mysql # not compatible
query I rowsort label-5596
SELECT DISTINCT + COUNT ( * ) * - - 67 / + 54
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5597
SELECT + 20 * 71 + - + COUNT( * ) - - 26 * 8 col1
----
1627

skipif mysql # not compatible
query I rowsort label-5597
SELECT + 20 * 71 + - + COUNT ( * ) - - 26 * 8 col1
----
1627

query II rowsort
SELECT 21 AS col0, + COALESCE ( - 98, + 13 * 1 )
----
21
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5599
SELECT ALL - - COUNT( * ) * + 79 + 48 * - 27
----
-1217

skipif mysql # not compatible
query I rowsort label-5599
SELECT ALL - - COUNT ( * ) * + 79 + 48 * - 27
----
-1217

onlyif mysql # aggregate syntax: 
query II rowsort label-5600
SELECT + 47 AS col2, + COUNT( * ) + - 76 AS col0
----
47
-75

skipif mysql # not compatible
query II rowsort label-5600
SELECT + 47 AS col2, + COUNT ( * ) + - 76 AS col0
----
47
-75

query II rowsort
SELECT + 69 AS col1, 1 * + 52 * - 64 AS col1
----
69
-3328

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5602
SELECT - CAST( + 20 AS SIGNED ) * - 58 + 90 * + 75 AS col2
----
7910

skipif mysql # not compatible
query I rowsort label-5602
SELECT - CAST ( + 20 AS INTEGER ) * - 58 + 90 * + 75 AS col2
----
7910

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5603
SELECT ALL + CAST( NULL AS SIGNED ) * CASE + COALESCE ( - 87, + 18 ) WHEN ( 94 ) * 79 + 59 THEN - 21 * 39 + + MIN( DISTINCT 16 ) * 71 WHEN - 34 THEN NULL END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5603
SELECT ALL + CAST ( NULL AS INTEGER ) * CASE + COALESCE ( - 87, + 18 ) WHEN ( 94 ) * 79 + 59 THEN - 21 * 39 + + MIN ( DISTINCT 16 ) * 71 WHEN - 34 THEN NULL END + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5604
SELECT + 84 * + - COALESCE ( + COUNT( ALL 45 ), + 56, + COUNT( * ) + - 44 / - 61 ) - + MAX( CAST( NULL AS DECIMAL ) ) * - 87 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5604
SELECT + 84 * + - COALESCE ( + COUNT ( ALL 45 ), + 56, + COUNT ( * ) + - 44 / - 61 ) - + MAX ( CAST ( NULL AS REAL ) ) * - 87 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5605
SELECT - 96 * 20 + - 13 - - MIN( - 5 ) AS col2
----
-1938

skipif mysql # not compatible
query I rowsort label-5605
SELECT - 96 * 20 + - 13 - - MIN ( - 5 ) AS col2
----
-1938

query II rowsort
SELECT + - 51, 20 col0
----
-51
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5607
SELECT ALL - 79 * + 83 - + 6 * ( + CASE 7 WHEN + 63 + 11 THEN + 32 WHEN CASE - 42 WHEN + 15 * - 46 THEN + ( + ( + 79 ) ) / MIN( 72 + 1 ) + - 24 WHEN 69 * COUNT( * ) THEN + MIN( - 35 ) WHEN - 87 * - 27 + - COUNT( * ) THEN NULL ELSE NULL END + 86 * - 28 THEN + 31 WHEN - 87 THEN NULL ELSE NULL END * 33 + + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5607
SELECT ALL - 79 * + 83 - + 6 * ( + CASE 7 WHEN + 63 + 11 THEN + 32 WHEN CASE - 42 WHEN + 15 * - 46 THEN + ( + ( + 79 ) ) / MIN ( 72 + 1 ) + - 24 WHEN 69 * COUNT ( * ) THEN + MIN ( - 35 ) WHEN - 87 * - 27 + - COUNT ( * ) THEN NULL ELSE NULL END + 86 * - 28 THEN + 31 WHEN - 87 THEN NULL ELSE NULL END * 33 + + COUNT ( * ) )
----
NULL

query I rowsort
SELECT DISTINCT - - 84 AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5609
SELECT ALL COUNT( * ) * 58 - - 74 AS col0
----
132

skipif mysql # not compatible
query I rowsort label-5609
SELECT ALL COUNT ( * ) * 58 - - 74 AS col0
----
132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5610
SELECT ALL ( - CASE - - 97 WHEN COUNT( * ) THEN NULL ELSE 67 END ) DIV + 94
----
0

skipif mysql # not compatible
query I rowsort label-5610
SELECT ALL ( - CASE - - 97 WHEN COUNT ( * ) THEN NULL ELSE 67 END ) / + 94
----
0

query II rowsort
SELECT ALL + - 42 AS col0, + 17 * + ( 52 )
----
-42
884

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5612
SELECT DISTINCT 46 * - CAST( - MIN( CAST( 97 AS SIGNED ) ) AS SIGNED ) + + 13 AS col1
----
4475

skipif mysql # not compatible
query I rowsort label-5612
SELECT DISTINCT 46 * - CAST ( - MIN ( CAST ( 97 AS INTEGER ) ) AS INTEGER ) + + 13 AS col1
----
4475

onlyif mysql # aggregate syntax: 
query I rowsort label-5613
SELECT DISTINCT + + MAX( ALL + 15 ) col0
----
15

skipif mysql # not compatible
query I rowsort label-5613
SELECT DISTINCT + + MAX ( ALL + 15 ) col0
----
15

query I rowsort
SELECT + 89 * + 34
----
3026

query I rowsort
SELECT - 95 * + 11 * + 14
----
-14630

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5616
SELECT ALL 1 * + 69 AS col1, - COUNT( ALL - - 57 ) DIV 4 col1
----
69
0

skipif mysql # not compatible
query II rowsort label-5616
SELECT ALL 1 * + 69 AS col1, - COUNT ( ALL - - 57 ) / 4 col1
----
69
0

query I rowsort
SELECT + CASE - - 86 WHEN - 26 THEN 40 / - 86 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5618
SELECT + 59 * - COUNT( * ) AS col0, CAST( + + 26 AS SIGNED )
----
-59
26

skipif mysql # not compatible
query II rowsort label-5618
SELECT + 59 * - COUNT ( * ) AS col0, CAST ( + + 26 AS INTEGER )
----
-59
26

onlyif mysql # DIV for integer division: 
query I rowsort label-5619
SELECT ALL - 61 DIV 84
----
0

skipif mysql # not compatible
query I rowsort label-5619
SELECT ALL - 61 / 84
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5620
SELECT - 12 DIV NULLIF ( + COALESCE ( + MIN( DISTINCT 30 ), - 78 + 30 * 30 ), 83 * 92 + COUNT( * ) * 98 ) * 60 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5620
SELECT - 12 / NULLIF ( + COALESCE ( + MIN ( DISTINCT 30 ), - 78 + 30 * 30 ), 83 * 92 + COUNT ( * ) * 98 ) * 60 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5621
SELECT ALL 17 DIV - ( - 32 )
----
0

skipif mysql # not compatible
query I rowsort label-5621
SELECT ALL 17 / - ( - 32 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5622
SELECT ALL MAX( ALL + 25 ) AS col0, 30 * - 86 * + 28 col2
----
25
-72240

skipif mysql # not compatible
query II rowsort label-5622
SELECT ALL MAX ( ALL + 25 ) AS col0, 30 * - 86 * + 28 col2
----
25
-72240

query I rowsort
SELECT + COALESCE ( - 54, 79 ) * + 18 * + 35 AS col1
----
-34020

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5625
SELECT + ( + + 11 ) - 2 + + MAX( - NULLIF ( - 70, - 57 ) )
----
79

skipif mysql # not compatible
query I rowsort label-5625
SELECT + ( + + 11 ) - 2 + + MAX ( - NULLIF ( - 70, - 57 ) )
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5626
SELECT ALL - COUNT( ALL + 33 ) + + - 30 + + - 24 - 93 * + 62 * + COUNT( * ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5626
SELECT ALL - COUNT ( ALL + 33 ) + + - 30 + + - 24 - 93 * + 62 * + COUNT ( * ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5627
SELECT DISTINCT NULLIF ( 4, - + COALESCE ( - 9, COUNT( * ) + COUNT( * ) ) )
----
4

skipif mysql # not compatible
query I rowsort label-5627
SELECT DISTINCT NULLIF ( 4, - + COALESCE ( - 9, COUNT ( * ) + COUNT ( * ) ) )
----
4

query I rowsort
SELECT - 69 + - COALESCE ( - + 37, 55 * - ( 92 ) ) * 41 AS col0
----
1448

query I rowsort
SELECT - COALESCE ( 59, 17 ) + 53 AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5630
SELECT ALL + 53 + + + COUNT( * ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-5630
SELECT ALL + 53 + + + COUNT ( * ) AS col2
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5631
SELECT DISTINCT - 98 * + + CAST( NULL AS SIGNED ) * - + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-5631
SELECT DISTINCT - 98 * + + CAST ( NULL AS INTEGER ) * - + 31
----
NULL

query I rowsort
SELECT DISTINCT + 3 + - - 56
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT ALL - COUNT( * ) + 18 + 71
----
88

skipif mysql # not compatible
query I rowsort label-5633
SELECT ALL - COUNT ( * ) + 18 + 71
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5634
SELECT ALL - + 15 * - + 12 * - CAST( + MAX( - 2 ) AS SIGNED ) col2
----
360

skipif mysql # not compatible
query I rowsort label-5634
SELECT ALL - + 15 * - + 12 * - CAST ( + MAX ( - 2 ) AS INTEGER ) col2
----
360

query I rowsort
SELECT - + 89 + 65
----
-24

query I rowsort
SELECT ALL - + 40 + - - 66 - 18 AS col2
----
8

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5638
SELECT COUNT( - + ( + 96 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5638
SELECT COUNT ( - + ( + 96 ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5639
SELECT DISTINCT - + 49 DIV + 50 * + - 60 * - COUNT( * ) - COUNT( * ) * 97 AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-5639
SELECT DISTINCT - + 49 / + 50 * + - 60 * - COUNT ( * ) - COUNT ( * ) * 97 AS col2
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5640
SELECT ALL CAST( NULL AS SIGNED ) * + - MAX( DISTINCT CAST( NULL AS SIGNED ) ) * + - AVG ( - ( 49 ) ) - ( - CAST( - 91 AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5640
SELECT ALL CAST ( NULL AS INTEGER ) * + - MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) * + - AVG ( - ( 49 ) ) - ( - CAST ( - 91 AS REAL ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5641
SELECT + 81 / + + CASE 31 WHEN - 78 * 79 THEN + 39 ELSE NULL END + + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) + COUNT( * ) * + 4 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5641
SELECT + 81 / + + CASE 31 WHEN - 78 * 79 THEN + 39 ELSE NULL END + + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) + COUNT ( * ) * + 4 AS col2
----
NULL

query I rowsort
SELECT ALL + CASE - ( - 10 ) WHEN 54 / + 70 THEN NULL WHEN + 39 THEN 12 ELSE NULL END * - 96 - 29 * - 34
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5643
SELECT + 43 DIV + ( 64 ) * + ( 4 ) - - 23 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-5643
SELECT + 43 / + ( 64 ) * + ( 4 ) - - 23 AS col2
----
23

query I rowsort
SELECT ALL - 57 * 0
----
0

query I rowsort
SELECT ALL + 99 * - 30 + 51
----
-2919

query I rowsort
SELECT + - 15 col1
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5647
SELECT - CAST( 58 AS SIGNED )
----
-58

skipif mysql # not compatible
query I rowsort label-5647
SELECT - CAST ( 58 AS INTEGER )
----
-58

query I rowsort
SELECT + 66 * + + 86 AS col1
----
5676

onlyif mysql # aggregate syntax: 
query I rowsort label-5649
SELECT + 72 * - - COUNT( * ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-5649
SELECT + 72 * - - COUNT ( * ) AS col2
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5650
SELECT CASE 94 WHEN + 31 THEN - 55 WHEN + COUNT( CAST( NULL AS SIGNED ) ) THEN + 69 * CASE 21 WHEN - 29 THEN 44 ELSE NULL END + 85 ELSE NULL END * CAST( NULL AS SIGNED ) + + 29 * - 34 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5650
SELECT CASE 94 WHEN + 31 THEN - 55 WHEN + COUNT ( CAST ( NULL AS INTEGER ) ) THEN + 69 * CASE 21 WHEN - 29 THEN 44 ELSE NULL END + 85 ELSE NULL END * CAST ( NULL AS INTEGER ) + + 29 * - 34 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5651
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 68
----
NULL

skipif mysql # not compatible
query I rowsort label-5651
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 68
----
NULL

query I rowsort
SELECT DISTINCT + 2 col0
----
2

query I rowsort
SELECT + ( - 25 ) col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5654
SELECT CASE + 36 WHEN + - 66 + + COALESCE ( + 66, - 34 + + 82 / - 78 ) THEN + 95 ELSE + MAX( DISTINCT - 67 ) + - 91 END col2
----
-158

skipif mysql # not compatible
query I rowsort label-5654
SELECT CASE + 36 WHEN + - 66 + + COALESCE ( + 66, - 34 + + 82 / - 78 ) THEN + 95 ELSE + MAX ( DISTINCT - 67 ) + - 91 END col2
----
-158

onlyif mysql # DIV for integer division: 
query I rowsort label-5655
SELECT + 83 * 74 * - - 49 + + + 99 + - + 68 + ( - 15 ) DIV 51 * - 54
----
300989

skipif mysql # not compatible
query I rowsort label-5655
SELECT + 83 * 74 * - - 49 + + + 99 + - + 68 + ( - 15 ) / 51 * - 54
----
300989

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5656
SELECT + 0 DIV + + ( - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-5656
SELECT + 0 / + + ( - COUNT ( * ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5657
SELECT + COUNT( * ) + + COUNT( * ) - - COUNT( * ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-5657
SELECT + COUNT ( * ) + + COUNT ( * ) - - COUNT ( * ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5658
SELECT ALL 2 * - - COUNT( * ) + + 97 + - 78 + 20
----
41

skipif mysql # not compatible
query I rowsort label-5658
SELECT ALL 2 * - - COUNT ( * ) + + 97 + - 78 + 20
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5659
SELECT - 82 + COUNT( * ) * + - 4 + 1 + - 7 + CAST( - 76 AS SIGNED ) * + 80
----
-6172

skipif mysql # not compatible
query I rowsort label-5659
SELECT - 82 + COUNT ( * ) * + - 4 + 1 + - 7 + CAST ( - 76 AS INTEGER ) * + 80
----
-6172

onlyif mysql # aggregate syntax: 
query I rowsort label-5660
SELECT MIN( DISTINCT - - 6 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-5660
SELECT MIN ( DISTINCT - - 6 ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-5661
SELECT - 42, + COUNT( - - 52 ) AS col1
----
-42
1

skipif mysql # not compatible
query II rowsort label-5661
SELECT - 42, + COUNT ( - - 52 ) AS col1
----
-42
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5662
SELECT ALL + 63 * - 59 + SUM( DISTINCT 20 ) * + 9 * + 18 + - COUNT( * ) * COUNT( * ) AS col0
----
-478

skipif mysql # not compatible
query I rowsort label-5662
SELECT ALL + 63 * - 59 + SUM ( DISTINCT 20 ) * + 9 * + 18 + - COUNT ( * ) * COUNT ( * ) AS col0
----
-478

query I rowsort
SELECT ( 89 ) * 81 * + + 56 + - 53
----
403651

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5664
SELECT ALL ( - - 0 ) * + ( 62 ) + COALESCE ( + 1, 18 + - 85 * 91 ) + + 84 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5664
SELECT ALL ( - - 0 ) * + ( 62 ) + COALESCE ( + 1, 18 + - 85 * 91 ) + + 84 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5665
SELECT ALL - MIN( - 85 ) + 19
----
104

skipif mysql # not compatible
query I rowsort label-5665
SELECT ALL - MIN ( - 85 ) + 19
----
104

query I rowsort
SELECT ALL + 21 + + + 12 * + 13 AS col2
----
177

query I rowsort
SELECT - 40 + + + 35 - + 52 * - 94 + + 14 - 14 * 72
----
3889

onlyif mysql # aggregate syntax: 
query I rowsort label-5668
SELECT DISTINCT + COUNT( * ) * + 59 AS col1
----
59

skipif mysql # not compatible
query I rowsort label-5668
SELECT DISTINCT + COUNT ( * ) * + 59 AS col1
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5669
SELECT + CAST( + 5 AS SIGNED ) col0
----
5

skipif mysql # not compatible
query I rowsort label-5669
SELECT + CAST ( + 5 AS INTEGER ) col0
----
5

query I rowsort
SELECT - - 18 + 27 - - 17 + + 51 AS col2
----
113

query I rowsort
SELECT ALL + 13 - 35 + - 20
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5672
SELECT - - SUM( - 48 ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-5672
SELECT - - SUM ( - 48 ) AS col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5673
SELECT ( + CASE WHEN + COUNT( * ) >= NULL THEN - 74 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5673
SELECT ( + CASE WHEN + COUNT ( * ) >= NULL THEN - 74 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5674
SELECT - NULLIF ( + 98, + CASE - - MIN( + + 37 ) WHEN 72 + COUNT( * ) THEN 9 / + MAX( ALL 88 * - ( - 63 ) ) ELSE NULL END ) * 7
----
-686

skipif mysql # not compatible
query I rowsort label-5674
SELECT - NULLIF ( + 98, + CASE - - MIN ( + + 37 ) WHEN 72 + COUNT ( * ) THEN 9 / + MAX ( ALL 88 * - ( - 63 ) ) ELSE NULL END ) * 7
----
-686

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5675
SELECT DISTINCT - 21 * - 96 + ( 70 ) + - CAST( NULL AS DECIMAL ) - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5675
SELECT DISTINCT - 21 * - 96 + ( 70 ) + - CAST ( NULL AS REAL ) - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( + 63, + 17, + NULLIF ( + 78, 75 ) + + 51 ) AS col2
----
63

query I rowsort
SELECT ALL 61 - - - 45
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5678
SELECT ALL - + COUNT( * ) * - - COUNT( ALL - 69 ) + + - 77 AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-5678
SELECT ALL - + COUNT ( * ) * - - COUNT ( ALL - 69 ) + + - 77 AS col0
----
-78

query I rowsort
SELECT - - 66 * 73 + + 15
----
4833

query II rowsort
SELECT ALL - ( 37 ) * + 30, + NULLIF ( - - 13, - 31 ) AS col2
----
-1110
13

query I rowsort
SELECT ALL - + ( - 32 ) AS col0
----
32

query I rowsort
SELECT + 71 + + + 22 AS col2
----
93

query I rowsort
SELECT + NULLIF ( - - 62, + 46 + - - 67 * + 44 )
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5684
SELECT + 4 * + NULLIF ( + 87, CAST( NULL AS SIGNED ) ) * 12 + 78 + 53 AS col2
----
4307

skipif mysql # not compatible
query I rowsort label-5684
SELECT + 4 * + NULLIF ( + 87, CAST ( NULL AS INTEGER ) ) * 12 + 78 + 53 AS col2
----
4307

query I rowsort
SELECT DISTINCT - ( - 77 ) AS col1
----
77

query I rowsort
SELECT 19 * + 11 * + 34 * + 54
----
383724

onlyif mysql # DIV for integer division: 
query I rowsort label-5687
SELECT 50 DIV + 98 * + 29
----
0

skipif mysql # not compatible
query I rowsort label-5687
SELECT 50 / + 98 * + 29
----
0

query I rowsort
SELECT DISTINCT - ( + 33 )
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5689
SELECT ALL - - 90 AS col1, COUNT( + 54 ) * + - 86 - - + 85 + + 80 DIV + 6
----
90
12

skipif mysql # not compatible
query II rowsort label-5689
SELECT ALL - - 90 AS col1, COUNT ( + 54 ) * + - 86 - - + 85 + + 80 / + 6
----
90
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5690
SELECT DISTINCT 13 * - + COUNT( * ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-5690
SELECT DISTINCT 13 * - + COUNT ( * ) AS col1
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5691
SELECT ALL 30 * + 75 DIV ( - + COUNT( DISTINCT - 51 ) ) AS col0
----
-2250

skipif mysql # not compatible
query I rowsort label-5691
SELECT ALL 30 * + 75 / ( - + COUNT ( DISTINCT - 51 ) ) AS col0
----
-2250

query I rowsort
SELECT ALL 6 * + + 92
----
552

query I rowsort
SELECT 50 * - 16
----
-800

onlyif mysql # aggregate syntax: 
query I rowsort label-5694
SELECT DISTINCT - 15 + - - COUNT( * ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-5694
SELECT DISTINCT - 15 + - - COUNT ( * ) AS col0
----
-14

query I rowsort
SELECT 76 * + 86 AS col0
----
6536

onlyif mysql # aggregate syntax: 
query II rowsort label-5696
SELECT ALL - 50 AS col0, 65 - - COUNT( * ) AS col1
----
-50
66

skipif mysql # not compatible
query II rowsort label-5696
SELECT ALL - 50 AS col0, 65 - - COUNT ( * ) AS col1
----
-50
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5697
SELECT DISTINCT 23 + MAX( 84 ) AS col0
----
107

skipif mysql # not compatible
query I rowsort label-5697
SELECT DISTINCT 23 + MAX ( 84 ) AS col0
----
107

onlyif mysql # DIV for integer division: 
query I rowsort label-5698
SELECT 34 * + 24 + 92 + + 78 DIV + + 15
----
913

skipif mysql # not compatible
query I rowsort label-5698
SELECT 34 * + 24 + 92 + + 78 / + + 15
----
913

onlyif mysql # aggregate syntax: 
query II rowsort label-5699
SELECT 74 AS col2, 85 / 38 * ( - COALESCE ( + + CASE 26 WHEN 74 THEN MIN( ALL 48 ) * + 46 END, CASE 74 WHEN 94 * - 58 THEN ( - 62 ) + ( 84 + 16 ) / + COUNT( * ) END ) ) * - 99
----
74
NULL

skipif mysql # not compatible
query II rowsort label-5699
SELECT 74 AS col2, 85 / 38 * ( - COALESCE ( + + CASE 26 WHEN 74 THEN MIN ( ALL 48 ) * + 46 END, CASE 74 WHEN 94 * - 58 THEN ( - 62 ) + ( 84 + 16 ) / + COUNT ( * ) END ) ) * - 99
----
74
NULL

query I rowsort
SELECT 85 + - + 47
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5701
SELECT NULLIF ( - 40, - 15 + + SUM( DISTINCT - CASE - 51 WHEN 85 THEN 30 ELSE + ( + 59 ) / + 34 + - 49 * + ( 77 + + 87 ) END ) ) * 29
----
-1160

skipif mysql # not compatible
query I rowsort label-5701
SELECT NULLIF ( - 40, - 15 + + SUM ( DISTINCT - CASE - 51 WHEN 85 THEN 30 ELSE + ( + 59 ) / + 34 + - 49 * + ( 77 + + 87 ) END ) ) * 29
----
-1160

onlyif mysql # aggregate syntax: 
query I rowsort label-5702
SELECT ALL COUNT( * ) - - 48 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-5702
SELECT ALL COUNT ( * ) - - 48 AS col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5703
SELECT 94 + - COUNT( * ) * 81
----
13

skipif mysql # not compatible
query I rowsort label-5703
SELECT 94 + - COUNT ( * ) * 81
----
13

query I rowsort
SELECT ALL ( 53 ) - 10 + + ( - - 32 )
----
75

query II rowsort
SELECT - + 93, - 84 + - - 79 + + - 95 col0
----
-93
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT DISTINCT - CASE + SUM( ALL 68 ) WHEN 86 + + - 99 * - - 12 THEN 23 WHEN AVG ( ALL 16 ) THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5706
SELECT DISTINCT - CASE + SUM ( ALL 68 ) WHEN 86 + + - 99 * - - 12 THEN 23 WHEN AVG ( ALL 16 ) THEN NULL END col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5707
SELECT COALESCE ( - - 28, - + CAST( - 48 AS SIGNED ) * - + 45 ) + - + COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-5707
SELECT COALESCE ( - - 28, - + CAST ( - 48 AS INTEGER ) * - + 45 ) + - + COUNT ( * )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5708
SELECT ALL + SUM( - 93 ) - + + 86 AS col2
----
-179

skipif mysql # not compatible
query I rowsort label-5708
SELECT ALL + SUM ( - 93 ) - + + 86 AS col2
----
-179

onlyif mysql # aggregate syntax: 
query I rowsort label-5709
SELECT + 89 + - - NULLIF ( COUNT( ALL - 61 ), 81 + + + 99 + + ( + 8 ) ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-5709
SELECT + 89 + - - NULLIF ( COUNT ( ALL - 61 ), 81 + + + 99 + + ( + 8 ) ) AS col0
----
90

query I rowsort
SELECT ALL + + 73 - - - 78
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5711
SELECT ALL COALESCE ( + 26, + + COUNT( * ) DIV + - COUNT( * ) + 77 * 49 + - 5 ) col2
----
26

skipif mysql # not compatible
query I rowsort label-5711
SELECT ALL COALESCE ( + 26, + + COUNT ( * ) / + - COUNT ( * ) + 77 * 49 + - 5 ) col2
----
26

query I rowsort
SELECT - 11 - - 91
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5713
SELECT + MIN( ALL - 99 ) + + + 30 col0
----
-69

skipif mysql # not compatible
query I rowsort label-5713
SELECT + MIN ( ALL - 99 ) + + + 30 col0
----
-69

query I rowsort
SELECT 95 - + 41 AS col2
----
54

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5715
SELECT - CAST( + 81 AS SIGNED ) DIV + 59 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5715
SELECT - CAST ( + 81 AS INTEGER ) / + 59 AS col2
----
-1

query I rowsort
SELECT - 38 + - 56
----
-94

query II rowsort
SELECT - + 29 col1, 3 + 32
----
-29
35

query I rowsort
SELECT 88 + 39 * + 62
----
2506

query I rowsort
SELECT ALL - + 31 AS col2
----
-31

query I rowsort
SELECT ALL + 16 + + 89 AS col2
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-5721
SELECT + 10 * + COUNT( * ) + + 61 + + 50
----
121

skipif mysql # not compatible
query I rowsort label-5721
SELECT + 10 * + COUNT ( * ) + + 61 + + 50
----
121

query I rowsort
SELECT DISTINCT - - ( + 77 ) AS col0
----
77

query I rowsort
SELECT DISTINCT - COALESCE ( - 57, + 88, + 22 )
----
57

query I rowsort
SELECT ALL 1 + + + 97 AS col1
----
98

query II rowsort
SELECT DISTINCT + 83 + 33 AS col0, - 42
----
116
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5726
SELECT MAX( ALL - - 27 ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-5726
SELECT MAX ( ALL - - 27 ) AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5727
SELECT + 13 * - + MAX( DISTINCT - 36 ) + + - COUNT( * ) AS col1
----
467

skipif mysql # not compatible
query I rowsort label-5727
SELECT + 13 * - + MAX ( DISTINCT - 36 ) + + - COUNT ( * ) AS col1
----
467

onlyif mysql # aggregate syntax: 
query I rowsort label-5728
SELECT ALL + SUM( COALESCE ( - 22, + 0, - - 11 - - - 81 * 74 + - 13 * 98 ) ) + 28 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-5728
SELECT ALL + SUM ( COALESCE ( - 22, + 0, - - 11 - - - 81 * 74 + - 13 * 98 ) ) + 28 AS col2
----
6

query I rowsort
SELECT ALL - 50 col2
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-5730
SELECT ( - - 76 ) DIV - 9 + - 6
----
-14

skipif mysql # not compatible
query I rowsort label-5730
SELECT ( - - 76 ) / - 9 + - 6
----
-14

query I rowsort
SELECT 89 * 21
----
1869

onlyif mysql # aggregate syntax: 
query I rowsort label-5732
SELECT ALL - NULLIF ( 16, 50 - + COUNT( * ) )
----
-16

skipif mysql # not compatible
query I rowsort label-5732
SELECT ALL - NULLIF ( 16, 50 - + COUNT ( * ) )
----
-16

query I rowsort
SELECT 95 + 44 * - 74 * - ( 26 ) * 60 + - 24
----
5079431

onlyif mysql # aggregate syntax: 
query I rowsort label-5734
SELECT DISTINCT + COUNT( * ) + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-5734
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * )
----
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5735
SELECT DISTINCT ( + - 43 ) * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5735
SELECT DISTINCT ( + - 43 ) * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5736
SELECT DISTINCT + COUNT( * ) - - 79 + + 12 + + COUNT( * ) * - ( 49 ) * - ( - NULLIF ( - 12, + 28 + - 4 ) )
----
680

skipif mysql # not compatible
query I rowsort label-5736
SELECT DISTINCT + COUNT ( * ) - - 79 + + 12 + + COUNT ( * ) * - ( 49 ) * - ( - NULLIF ( - 12, + 28 + - 4 ) )
----
680

onlyif mysql # aggregate syntax: 
query I rowsort label-5737
SELECT COUNT( * ) * + - 47 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-5737
SELECT COUNT ( * ) * + - 47 AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5738
SELECT ALL + 21 - + 89 * COUNT( * ) + 59 * - - 27 * + 37 AS col2
----
58873

skipif mysql # not compatible
query I rowsort label-5738
SELECT ALL + 21 - + 89 * COUNT ( * ) + 59 * - - 27 * + 37 AS col2
----
58873

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5739
SELECT COUNT( * ) + - 53 - + 81 + 3 * 81 * 16 DIV 28 DIV 97
----
-132

skipif mysql # not compatible
query I rowsort label-5739
SELECT COUNT ( * ) + - 53 - + 81 + 3 * 81 * 16 / 28 / 97
----
-132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5740
SELECT 92 + + 8 + 12 - ( + + COUNT( * ) ) + 10 + + COUNT( * ) * 58 DIV 77 DIV 86
----
121

skipif mysql # not compatible
query I rowsort label-5740
SELECT 92 + + 8 + 12 - ( + + COUNT ( * ) ) + 10 + + COUNT ( * ) * 58 / 77 / 86
----
121

query I rowsort
SELECT ALL - 72 * + + 86
----
-6192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5742
SELECT + - CAST( + COUNT( * ) AS SIGNED ) * - 90
----
90

skipif mysql # not compatible
query I rowsort label-5742
SELECT + - CAST ( + COUNT ( * ) AS INTEGER ) * - 90
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5743
SELECT ALL 83 * + 21 * 80, CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * - 30 * - ( COUNT( * ) ) + - 81 AS col0
----
139440
NULL

skipif mysql # not compatible
query II rowsort label-5743
SELECT ALL 83 * + 21 * 80, CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * - 30 * - ( COUNT ( * ) ) + - 81 AS col0
----
139440
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5744
SELECT - CASE - 44 WHEN - 55 + - 72 - + COALESCE ( 53, + CAST( NULL AS SIGNED ) ) THEN NULL WHEN 15 THEN NULL ELSE - 33 + - 60 * ( CAST( - 80 AS SIGNED ) + 10 ) END * + 43
----
-179181

skipif mysql # not compatible
query I rowsort label-5744
SELECT - CASE - 44 WHEN - 55 + - 72 - + COALESCE ( 53, + CAST ( NULL AS INTEGER ) ) THEN NULL WHEN 15 THEN NULL ELSE - 33 + - 60 * ( CAST ( - 80 AS INTEGER ) + 10 ) END * + 43
----
-179181

query II rowsort
SELECT + 23 + + 92 AS col2, 21 + + 90
----
115
111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5746
SELECT + - 84 DIV CASE - + 82 WHEN - 89 * - 6 * 35 DIV - 76 - - COUNT( * ) * SUM( 29 + 37 * 38 ) THEN 79 WHEN 85 * COUNT( * ) THEN NULL ELSE + 53 * 72 END
----
0

skipif mysql # not compatible
query I rowsort label-5746
SELECT + - 84 / CASE - + 82 WHEN - 89 * - 6 * 35 / - 76 - - COUNT ( * ) * SUM ( 29 + 37 * 38 ) THEN 79 WHEN 85 * COUNT ( * ) THEN NULL ELSE + 53 * 72 END
----
0

query I rowsort
SELECT DISTINCT - 78 * - 81 - + 34 * 45 AS col2
----
4788

onlyif mysql # aggregate syntax: 
query I rowsort label-5748
SELECT ALL + 45 + 25 * - COUNT( * ) * + 13 AS col1
----
-280

skipif mysql # not compatible
query I rowsort label-5748
SELECT ALL + 45 + 25 * - COUNT ( * ) * + 13 AS col1
----
-280

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5749
SELECT + - CAST( NULL AS DECIMAL ) * - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-5749
SELECT + - CAST ( NULL AS REAL ) * - 80
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5750
SELECT + 98 DIV COUNT( * ) * + - 16 * - NULLIF ( + 94, CAST( NULL AS SIGNED ) + 72 )
----
147392

skipif mysql # not compatible
query I rowsort label-5750
SELECT + 98 / COUNT ( * ) * + - 16 * - NULLIF ( + 94, CAST ( NULL AS INTEGER ) + 72 )
----
147392

onlyif mysql # DIV for integer division: 
query II rowsort label-5751
SELECT + - 90 DIV + 93 AS col1, 49
----
0
49

skipif mysql # not compatible
query II rowsort label-5751
SELECT + - 90 / + 93 AS col1, 49
----
0
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5752
SELECT DISTINCT 24 * - 77 * 59 + MIN( DISTINCT - 66 ) + + + NULLIF ( 2, 21 ) * 25
----
-109048

skipif mysql # not compatible
query I rowsort label-5752
SELECT DISTINCT 24 * - 77 * 59 + MIN ( DISTINCT - 66 ) + + + NULLIF ( 2, 21 ) * 25
----
-109048

onlyif mysql # aggregate syntax: 
query I rowsort label-5753
SELECT + SUM( + - 13 ) + SUM( 49 )
----
36

skipif mysql # not compatible
query I rowsort label-5753
SELECT + SUM ( + - 13 ) + SUM ( 49 )
----
36

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5754
SELECT + ( + + CAST( - 39 AS SIGNED ) ), - CAST( NULL AS DECIMAL ) * + + 41 AS col2
----
-39
NULL

skipif mysql # not compatible
query II rowsort label-5754
SELECT + ( + + CAST ( - 39 AS INTEGER ) ), - CAST ( NULL AS REAL ) * + + 41 AS col2
----
-39
NULL

query I rowsort
SELECT ( - + 87 ) col0
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5756
SELECT + 71 * + COUNT( - - CAST( NULL AS SIGNED ) ) * - - NULLIF ( 75, + MAX( DISTINCT - 68 ) DIV + 95 + 30 DIV + CASE + 32 * + 79 WHEN CASE 77 WHEN 5 DIV ( + SUM( - 26 ) ) THEN MAX( 17 ) ELSE - COUNT( * ) * + 21 END - 52 * COUNT( * ) THEN 61 END ) + + 98 DIV 44 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5756
SELECT + 71 * + COUNT ( - - CAST ( NULL AS INTEGER ) ) * - - NULLIF ( 75, + MAX ( DISTINCT - 68 ) / + 95 + 30 / + CASE + 32 * + 79 WHEN CASE 77 WHEN 5 / ( + SUM ( - 26 ) ) THEN MAX ( 17 ) ELSE - COUNT ( * ) * + 21 END - 52 * COUNT ( * ) THEN 61 END ) + + 98 / 44 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5757
SELECT CASE - 29 WHEN - 61 THEN NULL WHEN - - 87 / - 37 + MIN( DISTINCT - + 92 ) / + COALESCE ( MIN( 83 ), - 31 * + 85 + 41 ) THEN 28 ELSE + ( 35 ) END AS col1
----
35

skipif mysql # not compatible
query I rowsort label-5757
SELECT CASE - 29 WHEN - 61 THEN NULL WHEN - - 87 / - 37 + MIN ( DISTINCT - + 92 ) / + COALESCE ( MIN ( 83 ), - 31 * + 85 + 41 ) THEN 28 ELSE + ( 35 ) END AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5758
SELECT - 41 * + CASE + 4 WHEN - COUNT( * ) THEN NULL ELSE 22 + - CASE COUNT( * ) WHEN + 37 THEN NULL ELSE - 8 END + + 61 * + 5 END * - 63
----
865305

skipif mysql # not compatible
query I rowsort label-5758
SELECT - 41 * + CASE + 4 WHEN - COUNT ( * ) THEN NULL ELSE 22 + - CASE COUNT ( * ) WHEN + 37 THEN NULL ELSE - 8 END + + 61 * + 5 END * - 63
----
865305

onlyif mysql # aggregate syntax: 
query I rowsort label-5759
SELECT ALL COUNT( ALL + - 48 ) * - - 42 * 59 + - 96 * - COUNT( * ) + + + 76 + - - MIN( 56 ) * 8
----
3098

skipif mysql # not compatible
query I rowsort label-5759
SELECT ALL COUNT ( ALL + - 48 ) * - - 42 * 59 + - 96 * - COUNT ( * ) + + + 76 + - - MIN ( 56 ) * 8
----
3098

onlyif mysql # aggregate syntax: 
query I rowsort label-5760
SELECT + 71 * 28 * - + SUM( DISTINCT + - 13 ) - + + 3 AS col1
----
25841

skipif mysql # not compatible
query I rowsort label-5760
SELECT + 71 * 28 * - + SUM ( DISTINCT + - 13 ) - + + 3 AS col1
----
25841

onlyif mysql # aggregate syntax: 
query II rowsort label-5761
SELECT ALL + 15 col0, 50 * - COUNT( * ) AS col1
----
15
-50

skipif mysql # not compatible
query II rowsort label-5761
SELECT ALL + 15 col0, 50 * - COUNT ( * ) AS col1
----
15
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5762
SELECT DISTINCT - 48 * - COUNT( * ) + 50
----
98

skipif mysql # not compatible
query I rowsort label-5762
SELECT DISTINCT - 48 * - COUNT ( * ) + 50
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-5763
SELECT 71 DIV + + 45 - - 5
----
6

skipif mysql # not compatible
query I rowsort label-5763
SELECT 71 / + + 45 - - 5
----
6

query II rowsort
SELECT ALL + 30 AS col0, 0 AS col0
----
30
0

query I rowsort
SELECT ALL + ( 98 ) AS col2
----
98

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5766
SELECT COALESCE ( - CAST( 20 AS SIGNED ), COALESCE ( + 61, - 45 + + 72 + - 42 DIV + 52 ) )
----
-20

skipif mysql # not compatible
query I rowsort label-5766
SELECT COALESCE ( - CAST ( 20 AS INTEGER ), COALESCE ( + 61, - 45 + + 72 + - 42 / + 52 ) )
----
-20

query I rowsort
SELECT ALL + ( 0 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5768
SELECT DISTINCT 70 * - 80 * + 39 - + + MIN( 94 ) + - + SUM( DISTINCT - 51 ) + + - 69 + - 10 DIV - 19
----
-218512

skipif mysql # not compatible
query I rowsort label-5768
SELECT DISTINCT 70 * - 80 * + 39 - + + MIN ( 94 ) + - + SUM ( DISTINCT - 51 ) + + - 69 + - 10 / - 19
----
-218512

query I rowsort
SELECT + ( - 53 ) col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5770
SELECT - NULLIF ( 51, - 7 ) * COUNT( * ) - + - 61 + + MAX( - 56 )
----
-46

skipif mysql # not compatible
query I rowsort label-5770
SELECT - NULLIF ( 51, - 7 ) * COUNT ( * ) - + - 61 + + MAX ( - 56 )
----
-46

query II rowsort
SELECT + 50, - 58 AS col1
----
50
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-5772
SELECT - 39 DIV + 72 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5772
SELECT - 39 / + 72 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5773
SELECT DISTINCT - COUNT( * ) * + + 11
----
-11

skipif mysql # not compatible
query I rowsort label-5773
SELECT DISTINCT - COUNT ( * ) * + + 11
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-5774
SELECT - 50, + 83 - + COUNT( * ) * 47 col0
----
-50
36

skipif mysql # not compatible
query II rowsort label-5774
SELECT - 50, + 83 - + COUNT ( * ) * 47 col0
----
-50
36

query I rowsort
SELECT ALL - - 31 * - 21
----
-651

onlyif mysql # DIV for integer division: 
query I rowsort label-5776
SELECT - 71 DIV - + 4 + 95
----
112

skipif mysql # not compatible
query I rowsort label-5776
SELECT - 71 / - + 4 + 95
----
112

query I rowsort
SELECT ALL - 84 * 87
----
-7308

query I rowsort
SELECT DISTINCT - 73 * - + 46
----
3358

onlyif mysql # aggregate syntax: 
query I rowsort label-5779
SELECT - MAX( ALL + + 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-5779
SELECT - MAX ( ALL + + 43 )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5780
SELECT ALL - ( MIN( + 63 ) ) * - 38
----
2394

skipif mysql # not compatible
query I rowsort label-5780
SELECT ALL - ( MIN ( + 63 ) ) * - 38
----
2394

query I rowsort
SELECT - - 35 + - + 61
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5782
SELECT + - 29 * + 88 + - - NULLIF ( 2, - COALESCE ( - 11, - NULLIF ( - ( - ( 11 ) ), 88 ) + AVG ( DISTINCT ( 85 ) ), - 62 ) + - 61 * NULLIF ( - MAX( ALL - 95 ), - CASE 52 WHEN + 23 + 81 THEN NULL WHEN 75 THEN - 44 * ( 4 / + 59 ) END / 63 ) ) AS col1
----
-2550

skipif mysql # not compatible
query I rowsort label-5782
SELECT + - 29 * + 88 + - - NULLIF ( 2, - COALESCE ( - 11, - NULLIF ( - ( - ( 11 ) ), 88 ) + AVG ( DISTINCT ( 85 ) ), - 62 ) + - 61 * NULLIF ( - MAX ( ALL - 95 ), - CASE 52 WHEN + 23 + 81 THEN NULL WHEN 75 THEN - 44 * ( 4 / + 59 ) END / 63 ) ) AS col1
----
-2550

onlyif mysql # aggregate syntax: 
query I rowsort label-5783
SELECT - + COUNT( * ) + 97
----
96

skipif mysql # not compatible
query I rowsort label-5783
SELECT - + COUNT ( * ) + 97
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5784
SELECT - + MIN( - 32 ) * - 70 AS col0
----
-2240

skipif mysql # not compatible
query I rowsort label-5784
SELECT - + MIN ( - 32 ) * - 70 AS col0
----
-2240

onlyif mysql # aggregate syntax: 
query I rowsort label-5785
SELECT - 60 + - + COUNT( * ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-5785
SELECT - 60 + - + COUNT ( * ) AS col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-5786
SELECT - SUM( 1 ) + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5786
SELECT - SUM ( 1 ) + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT - 87 + - 46 * 54 * - CASE 25 WHEN 67 THEN + 85 / - - 22 - 55 * COUNT( * ) WHEN + 22 * 55 - - 31 THEN NULL WHEN - 47 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5787
SELECT - 87 + - 46 * 54 * - CASE 25 WHEN 67 THEN + 85 / - - 22 - 55 * COUNT ( * ) WHEN + 22 * 55 - - 31 THEN NULL WHEN - 47 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + 88 + 30 AS col2
----
118

query II rowsort
SELECT - 41, + 0 col2
----
-41
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5790
SELECT DISTINCT + 66 + + - ( - - 21 ) + + - COUNT( DISTINCT - + CAST( - 60 AS SIGNED ) ), 67 AS col1
----
44
67

skipif mysql # not compatible
query II rowsort label-5790
SELECT DISTINCT + 66 + + - ( - - 21 ) + + - COUNT ( DISTINCT - + CAST ( - 60 AS INTEGER ) ), 67 AS col1
----
44
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5791
SELECT ALL COUNT( * ) + + MIN( DISTINCT 25 ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-5791
SELECT ALL COUNT ( * ) + + MIN ( DISTINCT 25 ) AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5792
SELECT + + 2 + + ( - - 72 ) + MIN( - 0 ) * ( 79 ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-5792
SELECT + + 2 + + ( - - 72 ) + MIN ( - 0 ) * ( 79 ) AS col0
----
74

query II rowsort
SELECT ALL 3, 1 AS col1
----
3
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5794
SELECT - CAST( NULL AS SIGNED ) AS col2, 76
----
NULL
76

skipif mysql # not compatible
query II rowsort label-5794
SELECT - CAST ( NULL AS INTEGER ) AS col2, 76
----
NULL
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5795
SELECT - 53 * CASE - 17 WHEN - + CAST( NULL AS SIGNED ) * - COUNT( * ) THEN + 4 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5795
SELECT - 53 * CASE - 17 WHEN - + CAST ( NULL AS INTEGER ) * - COUNT ( * ) THEN + 4 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5796
SELECT + - 28 + + 11 + COUNT( * ) col1, 62 AS col0
----
-16
62

skipif mysql # not compatible
query II rowsort label-5796
SELECT + - 28 + + 11 + COUNT ( * ) col1, 62 AS col0
----
-16
62

onlyif mysql # aggregate syntax: 
query II rowsort label-5797
SELECT - SUM( DISTINCT 93 ) AS col1, + 78 * + 94
----
-93
7332

skipif mysql # not compatible
query II rowsort label-5797
SELECT - SUM ( DISTINCT 93 ) AS col1, + 78 * + 94
----
-93
7332

onlyif mysql # aggregate syntax: 
query I rowsort label-5798
SELECT + 42 + + ( + 2 ) * - 10 - - - 27 * + COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-5798
SELECT + 42 + + ( + 2 ) * - 10 - - - 27 * + COUNT ( * )
----
-5

query I rowsort
SELECT ALL 48 + - 42 + 62 * + + 44
----
2734

onlyif mysql # aggregate syntax: 
query I rowsort label-5800
SELECT ALL - 66 * + SUM( ALL 22 ) * + + 84
----
-121968

skipif mysql # not compatible
query I rowsort label-5800
SELECT ALL - 66 * + SUM ( ALL 22 ) * + + 84
----
-121968

query I rowsort
SELECT DISTINCT + ( + - 58 )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5802
SELECT ALL 53 * + 50 * + COUNT( * )
----
2650

skipif mysql # not compatible
query I rowsort label-5802
SELECT ALL 53 * + 50 * + COUNT ( * )
----
2650

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5803
SELECT ALL 23 DIV - + 2 - - 70 * NULLIF ( + COUNT( * ), + ( + 26 ) ) col0
----
59

skipif mysql # not compatible
query I rowsort label-5803
SELECT ALL 23 / - + 2 - - 70 * NULLIF ( + COUNT ( * ), + ( + 26 ) ) col0
----
59

query I rowsort
SELECT + 23 * - - 70
----
1610

onlyif mysql # DIV for integer division: 
query II rowsort label-5805
SELECT ALL + 38 DIV 75 * + 18 - - 61 col1, 86
----
61
86

skipif mysql # not compatible
query II rowsort label-5805
SELECT ALL + 38 / 75 * + 18 - - 61 col1, 86
----
61
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5806
SELECT + CAST( - AVG ( ALL - 27 ) AS SIGNED ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-5806
SELECT + CAST ( - AVG ( ALL - 27 ) AS INTEGER ) AS col0
----
27

query I rowsort
SELECT + 76 + - - 73 AS col2
----
149

query I rowsort
SELECT + 93 * 27
----
2511

onlyif mysql # DIV for integer division: 
query I rowsort label-5809
SELECT ALL 99 DIV - 78 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5809
SELECT ALL 99 / - 78 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5810
SELECT + 64 * + COUNT( * ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-5810
SELECT + 64 * + COUNT ( * ) AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5811
SELECT + 57 + - COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-5811
SELECT + 57 + - COUNT ( * )
----
56

query I rowsort
SELECT ALL - 4 * + 17 AS col2
----
-68

query II rowsort
SELECT 29 + - 47 AS col2, 29 AS col1
----
-18
29

query I rowsort
SELECT DISTINCT - - ( + 51 ) AS col1
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5815
SELECT ALL - 44 * - + 92 * 9 DIV - CASE + - 82 WHEN + + 49 * + 42 + - 29 * + 61 * 74 + 89 THEN NULL ELSE - COUNT( - 16 ) END AS col1
----
36432

skipif mysql # not compatible
query I rowsort label-5815
SELECT ALL - 44 * - + 92 * 9 / - CASE + - 82 WHEN + + 49 * + 42 + - 29 * + 61 * 74 + 89 THEN NULL ELSE - COUNT ( - 16 ) END AS col1
----
36432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5816
SELECT + 8 * CAST( 97 AS SIGNED ) * + + ( 17 ) / CAST( 60 AS DECIMAL ) + 48 + + + CAST( NULL AS SIGNED ) + 37 + + 9 / MIN( + 64 ) + - MAX( 19 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5816
SELECT + 8 * CAST ( 97 AS INTEGER ) * + + ( 17 ) / CAST ( 60 AS REAL ) + 48 + + + CAST ( NULL AS INTEGER ) + 37 + + 9 / MIN ( + 64 ) + - MAX ( 19 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5817
SELECT + CASE 71 WHEN - + 40 / 86 - - - CAST( NULL AS SIGNED ) THEN - 93 WHEN - 35 * + MAX( - 49 ) THEN 50 - 97 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5817
SELECT + CASE 71 WHEN - + 40 / 86 - - - CAST ( NULL AS INTEGER ) THEN - 93 WHEN - 35 * + MAX ( - 49 ) THEN 50 - 97 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5818
SELECT + - ( - + CASE - ( + + COUNT( * ) ) WHEN NULLIF ( - 92, - 77 ) + + - 92 THEN + - 64 * - COUNT( * ) ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5818
SELECT + - ( - + CASE - ( + + COUNT ( * ) ) WHEN NULLIF ( - 92, - 77 ) + + - 92 THEN + - 64 * - COUNT ( * ) ELSE NULL END ) AS col0
----
NULL

query I rowsort
SELECT 81 * - 34 + - + 92
----
-2846

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5820
SELECT DISTINCT - 51 + + 85 + - 58 DIV 74 AS col0, 10 - - - COUNT( * ) * + 81 * - - 46 AS col2
----
34
-3716

skipif mysql # not compatible
query II rowsort label-5820
SELECT DISTINCT - 51 + + 85 + - 58 / 74 AS col0, 10 - - - COUNT ( * ) * + 81 * - - 46 AS col2
----
34
-3716

onlyif mysql # DIV for integer division: 
query I rowsort label-5821
SELECT DISTINCT + - 32 + - 74 DIV + 55
----
-33

skipif mysql # not compatible
query I rowsort label-5821
SELECT DISTINCT + - 32 + - 74 / + 55
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5822
SELECT DISTINCT - 95 * + - 14 * 86 * COUNT( 23 ) AS col1
----
114380

skipif mysql # not compatible
query I rowsort label-5822
SELECT DISTINCT - 95 * + - 14 * 86 * COUNT ( 23 ) AS col1
----
114380

onlyif mysql # aggregate syntax: 
query I rowsort label-5823
SELECT ALL - - NULLIF ( + + SUM( ALL - 85 ), + - 10 * 40 ) * + COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-5823
SELECT ALL - - NULLIF ( + + SUM ( ALL - 85 ), + - 10 * 40 ) * + COUNT ( * )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5824
SELECT - 47 * COUNT( * ) - + 11 * + 47 + - - ( - - 27 ) - + 32 * + - COALESCE ( - 36, - 21 ) * - COALESCE ( + 29, 2, + 46 * - 62 + 58 ) - 62 * 47 AS col2
----
29957

skipif mysql # not compatible
query I rowsort label-5824
SELECT - 47 * COUNT ( * ) - + 11 * + 47 + - - ( - - 27 ) - + 32 * + - COALESCE ( - 36, - 21 ) * - COALESCE ( + 29, 2, + 46 * - 62 + 58 ) - 62 * 47 AS col2
----
29957

query I rowsort
SELECT ALL - + ( - 63 ) - 58 * - 44 AS col1
----
2615

onlyif mysql # aggregate syntax: 
query I rowsort label-5826
SELECT DISTINCT - 52 - - SUM( + 88 )
----
36

skipif mysql # not compatible
query I rowsort label-5826
SELECT DISTINCT - 52 - - SUM ( + 88 )
----
36

query I rowsort
SELECT DISTINCT - 79 * 38
----
-3002

onlyif mysql # aggregate syntax: 
query II rowsort label-5828
SELECT DISTINCT 73 AS col0, MAX( DISTINCT + 44 ) + - COUNT( * )
----
73
43

skipif mysql # not compatible
query II rowsort label-5828
SELECT DISTINCT 73 AS col0, MAX ( DISTINCT + 44 ) + - COUNT ( * )
----
73
43

query I rowsort
SELECT 79 + + 16 AS col2
----
95

query I rowsort
SELECT 14 * 73 AS col1
----
1022

query I rowsort
SELECT 85 * - 60
----
-5100

query I rowsort
SELECT 88 + - 1
----
87

query I rowsort
SELECT ALL 58 * 73 AS col2
----
4234

onlyif mysql # DIV for integer division: 
query I rowsort label-5834
SELECT 4 DIV + - 25 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5834
SELECT 4 / + - 25 AS col0
----
0

query I rowsort
SELECT 40 * - + 64 * + 4
----
-10240

onlyif mysql # DIV for integer division: 
query I rowsort label-5836
SELECT - 24 * + - 7 - - 75 DIV + 3
----
193

skipif mysql # not compatible
query I rowsort label-5836
SELECT - 24 * + - 7 - - 75 / + 3
----
193

query I rowsort
SELECT DISTINCT - 17 * + ( + - 54 ) * 58 * + - 53
----
-2821932

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5838
SELECT DISTINCT - CAST( + - CASE + 72 WHEN - + 51 THEN + AVG ( 9 ) ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5838
SELECT DISTINCT - CAST ( + - CASE + 72 WHEN - + 51 THEN + AVG ( 9 ) ELSE NULL END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5839
SELECT COUNT( * ) * 57
----
57

skipif mysql # not compatible
query I rowsort label-5839
SELECT COUNT ( * ) * 57
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5840
SELECT ALL 22 + + 28 + COUNT( * ) * 70 + - + COALESCE ( + 66, - 84 * 66 * + 87, - 84 ) + 51 * ( 56 + COUNT( * ) ) AS col2
----
2961

skipif mysql # not compatible
query I rowsort label-5840
SELECT ALL 22 + + 28 + COUNT ( * ) * 70 + - + COALESCE ( + 66, - 84 * 66 * + 87, - 84 ) + 51 * ( 56 + COUNT ( * ) ) AS col2
----
2961

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5841
SELECT 26 DIV + + COUNT( * ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-5841
SELECT 26 / + + COUNT ( * ) AS col0
----
26

query I rowsort
SELECT 70 * + + 50
----
3500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5843
SELECT ( - CAST( NULL AS SIGNED ) ) * 98 * - 58 + 16 / + COUNT( * ) * - 92 + + + COUNT( * ) - + 38 - 15 * 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5843
SELECT ( - CAST ( NULL AS INTEGER ) ) * 98 * - 58 + 16 / + COUNT ( * ) * - 92 + + + COUNT ( * ) - + 38 - 15 * 45 AS col2
----
NULL

query I rowsort
SELECT NULLIF ( 12, - + 51 ) AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5845
SELECT ALL MAX( DISTINCT 36 ) * - - 39
----
1404

skipif mysql # not compatible
query I rowsort label-5845
SELECT ALL MAX ( DISTINCT 36 ) * - - 39
----
1404

onlyif mysql # aggregate syntax: 
query I rowsort label-5846
SELECT MIN( 17 ) * - 26
----
-442

skipif mysql # not compatible
query I rowsort label-5846
SELECT MIN ( 17 ) * - 26
----
-442

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT ALL + 21 + 20 * - CASE + MIN( ALL ( 84 ) ) WHEN 0 + + 27 THEN + 41 + - - NULLIF ( 92, - MAX( DISTINCT - 10 ) ) * COUNT( + 90 * + 18 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5847
SELECT ALL + 21 + 20 * - CASE + MIN ( ALL ( 84 ) ) WHEN 0 + + 27 THEN + 41 + - - NULLIF ( 92, - MAX ( DISTINCT - 10 ) ) * COUNT ( + 90 * + 18 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5848
SELECT ALL + 41 + - - 54 + COUNT( * ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-5848
SELECT ALL + 41 + - - 54 + COUNT ( * ) AS col0
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-5849
SELECT 18 - - + COUNT( * ) * COUNT( * ) AS col0, - 3
----
19
-3

skipif mysql # not compatible
query II rowsort label-5849
SELECT 18 - - + COUNT ( * ) * COUNT ( * ) AS col0, - 3
----
19
-3

query I rowsort
SELECT - - 34 AS col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5851
SELECT ALL - MIN( DISTINCT + 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-5851
SELECT ALL - MIN ( DISTINCT + 30 )
----
-30

query I rowsort
SELECT - 22 + 16 * + - 61
----
-998

query I rowsort
SELECT 67 + + - 33
----
34

query I rowsort
SELECT ALL 75 - - 93 + - - 76 + - + 37 AS col1
----
207

query I rowsort
SELECT 98 + - 73 AS col0
----
25

query I rowsort
SELECT + 14 * + 73
----
1022

onlyif mysql # aggregate syntax: 
query I rowsort label-5857
SELECT COUNT( * ) + - 54 AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-5857
SELECT COUNT ( * ) + - 54 AS col2
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5858
SELECT ALL + 11 DIV + COUNT( * ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-5858
SELECT ALL + 11 / + COUNT ( * ) AS col0
----
11

query I rowsort
SELECT ALL 36 - 6 AS col1
----
30

query II rowsort
SELECT 95 * - 2 AS col2, 89
----
-190
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5861
SELECT 98 + + - COUNT( * ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-5861
SELECT 98 + + - COUNT ( * ) AS col0
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-5862
SELECT 85 col2, + 53 - + MAX( 12 )
----
85
41

skipif mysql # not compatible
query II rowsort label-5862
SELECT 85 col2, + 53 - + MAX ( 12 )
----
85
41

query II rowsort
SELECT 14 + - 36 AS col1, + 51 * 27
----
-22
1377

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5864
SELECT - COALESCE ( - - 4, COUNT( 82 ) * 49 DIV - - 70 ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-5864
SELECT - COALESCE ( - - 4, COUNT ( 82 ) * 49 / - - 70 ) AS col1
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5865
SELECT 95 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5865
SELECT 95 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5866
SELECT COUNT( * ) + 69
----
70

skipif mysql # not compatible
query I rowsort label-5866
SELECT COUNT ( * ) + 69
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5867
SELECT ALL SUM( DISTINCT - 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-5867
SELECT ALL SUM ( DISTINCT - 72 )
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5868
SELECT COUNT( * ) DIV - 74 col1
----
0

skipif mysql # not compatible
query I rowsort label-5868
SELECT COUNT ( * ) / - 74 col1
----
0

query I rowsort
SELECT 43 + 72 AS col2
----
115

query I rowsort
SELECT 14 + - 71 + + + 72 AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5871
SELECT ALL + MIN( + + 62 )
----
62

skipif mysql # not compatible
query I rowsort label-5871
SELECT ALL + MIN ( + + 62 )
----
62

query I rowsort
SELECT - 58 * + - 42
----
2436

query I rowsort
SELECT COALESCE ( - 29, + - 20 * + + 11 - 58 ) AS col1
----
-29

query I rowsort
SELECT NULLIF ( + + 72, + 5 )
----
72

query I rowsort
SELECT NULLIF ( + + 46, + 8 * + + 27 * - 15 + - - 58 + - + 78 + 27 )
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-5876
SELECT + - NULLIF ( - 92, + ( + 6 ) ) DIV + 97 * - 24 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5876
SELECT + - NULLIF ( - 92, + ( + 6 ) ) / + 97 * - 24 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT ALL 32 * 22 * - + CASE + 63 WHEN COUNT( * ) * - - 21 * + 82 THEN + + 66 ELSE NULL END + - 67 + + + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-5877
SELECT ALL 32 * 22 * - + CASE + 63 WHEN COUNT ( * ) * - - 21 * + 82 THEN + + 66 ELSE NULL END + - 67 + + + 14
----
NULL

query I rowsort
SELECT DISTINCT + 95 * + ( + 47 ) - + 91 AS col2
----
4374

onlyif mysql # aggregate syntax: 
query II rowsort label-5879
SELECT DISTINCT - + MAX( ALL 73 ) * + 31 + - + 46 * + 33 + 61 AS col0, + 92 col2
----
-3720
92

skipif mysql # not compatible
query II rowsort label-5879
SELECT DISTINCT - + MAX ( ALL 73 ) * + 31 + - + 46 * + 33 + 61 AS col0, + 92 col2
----
-3720
92

query I rowsort
SELECT - + 73 * 10
----
-730

onlyif mysql # aggregate syntax: 
query I rowsort label-5881
SELECT ALL - 62 * COUNT( * ) col0
----
-62

skipif mysql # not compatible
query I rowsort label-5881
SELECT ALL - 62 * COUNT ( * ) col0
----
-62

query I rowsort
SELECT - - 56 + + ( + 47 ) AS col2
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-5883
SELECT ALL + + 94 * - COUNT( * ) + + + 4
----
-90

skipif mysql # not compatible
query I rowsort label-5883
SELECT ALL + + 94 * - COUNT ( * ) + + + 4
----
-90

query I rowsort
SELECT ALL + 59 * - 0 + + 19 + - 68 AS col0
----
-49

query I rowsort
SELECT DISTINCT + - 18 AS col1
----
-18

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5886
SELECT + + 29 DIV + 28 + + NULLIF ( - - CAST( 10 AS SIGNED ), + - 90 ) col1, ( - CASE 35 WHEN + - 89 THEN + + 41 + + 37 * - 58 WHEN + 63 THEN NULL WHEN - 31 DIV 52 THEN NULL END ) + + 19 * + 76
----
11
NULL

skipif mysql # not compatible
query II rowsort label-5886
SELECT + + 29 / + 28 + + NULLIF ( - - CAST ( 10 AS INTEGER ), + - 90 ) col1, ( - CASE 35 WHEN + - 89 THEN + + 41 + + 37 * - 58 WHEN + 63 THEN NULL WHEN - 31 / 52 THEN NULL END ) + + 19 * + 76
----
11
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5887
SELECT - 99 AS col1, + ( - COUNT( * ) )
----
-99
-1

skipif mysql # not compatible
query II rowsort label-5887
SELECT - 99 AS col1, + ( - COUNT ( * ) )
----
-99
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5888
SELECT - NULLIF ( - - 47, COUNT( * ) * - 20 )
----
-47

skipif mysql # not compatible
query I rowsort label-5888
SELECT - NULLIF ( - - 47, COUNT ( * ) * - 20 )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5889
SELECT - MIN( DISTINCT + 59 ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-5889
SELECT - MIN ( DISTINCT + 59 ) AS col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5890
SELECT ALL COUNT( * ) * - 69
----
-69

skipif mysql # not compatible
query I rowsort label-5890
SELECT ALL COUNT ( * ) * - 69
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-5891
SELECT DISTINCT 30 * 71 * 25 col0, COUNT( * ) AS col0
----
53250
1

skipif mysql # not compatible
query II rowsort label-5891
SELECT DISTINCT 30 * 71 * 25 col0, COUNT ( * ) AS col0
----
53250
1

query I rowsort
SELECT - ( - 63 ) col2
----
63

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5893
SELECT - ( - 16 ) AS col1, 31 + CAST( NULL AS DECIMAL )
----
16
NULL

skipif mysql # not compatible
query II rowsort label-5893
SELECT - ( - 16 ) AS col1, 31 + CAST ( NULL AS REAL )
----
16
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5894
SELECT + ( + 82 ) * - - COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-5894
SELECT + ( + 82 ) * - - COUNT ( * )
----
82

query I rowsort
SELECT - 94 * 95
----
-8930

onlyif mysql # aggregate syntax: 
query I rowsort label-5896
SELECT - COUNT( * ) * + 51 AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-5896
SELECT - COUNT ( * ) * + 51 AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5897
SELECT DISTINCT 88 + - + NULLIF ( + - COUNT( * ), - COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5897
SELECT DISTINCT 88 + - + NULLIF ( + - COUNT ( * ), - COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5898
SELECT DISTINCT + ( - 46 ) + - COUNT( * ), 92 AS col0
----
-47
92

skipif mysql # not compatible
query II rowsort label-5898
SELECT DISTINCT + ( - 46 ) + - COUNT ( * ), 92 AS col0
----
-47
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5899
SELECT ALL + 45 + - 6 col1, + ( COUNT( * ) ) * - 63 DIV + 21 * + + COUNT( * ) + - - 56
----
39
53

skipif mysql # not compatible
query II rowsort label-5899
SELECT ALL + 45 + - 6 col1, + ( COUNT ( * ) ) * - 63 / + 21 * + + COUNT ( * ) + - - 56
----
39
53

query I rowsort
SELECT DISTINCT ( - 79 ) AS col2
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-5901
SELECT + 22 DIV 56
----
0

skipif mysql # not compatible
query I rowsort label-5901
SELECT + 22 / 56
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5902
SELECT - 87 - + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5902
SELECT - 87 - + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 36 * - - 83 + 87 - - 43
----
3118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5904
SELECT DISTINCT - 19 DIV - - CAST( + COUNT( * ) AS SIGNED ) + - 22 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-5904
SELECT DISTINCT - 19 / - - CAST ( + COUNT ( * ) AS INTEGER ) + - 22 AS col0
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5905
SELECT CAST( 34 AS SIGNED ) AS col2, - 64 - + - 34 AS col2
----
34
-30

skipif mysql # not compatible
query II rowsort label-5905
SELECT CAST ( 34 AS INTEGER ) AS col2, - 64 - + - 34 AS col2
----
34
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5906
SELECT - COUNT( * ) * 59 * + - 52 * + 73 col0
----
223964

skipif mysql # not compatible
query I rowsort label-5906
SELECT - COUNT ( * ) * 59 * + - 52 * + 73 col0
----
223964

onlyif mysql # DIV for integer division: 
query I rowsort label-5907
SELECT ALL - - 51 DIV 44 + - + 43 AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-5907
SELECT ALL - - 51 / 44 + - + 43 AS col2
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5908
SELECT DISTINCT + CAST( - 93 AS SIGNED ) col1, - MAX( DISTINCT 21 ) AS col0
----
-93
-21

skipif mysql # not compatible
query II rowsort label-5908
SELECT DISTINCT + CAST ( - 93 AS INTEGER ) col1, - MAX ( DISTINCT 21 ) AS col0
----
-93
-21

query I rowsort
SELECT DISTINCT + - 12 AS col1
----
-12

query I rowsort
SELECT - 51 * - + 30 AS col2
----
1530

onlyif mysql # aggregate syntax: 
query I rowsort label-5911
SELECT + - COUNT( DISTINCT - 96 )
----
-1

skipif mysql # not compatible
query I rowsort label-5911
SELECT + - COUNT ( DISTINCT - 96 )
----
-1

query I rowsort
SELECT ALL 75 * + 91 - + 12 * - 44 * + 40
----
27945

query I rowsort
SELECT + - 48 col0
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-5914
SELECT - + 0 * 44, + COUNT( * ) AS col0
----
0
1

skipif mysql # not compatible
query II rowsort label-5914
SELECT - + 0 * 44, + COUNT ( * ) AS col0
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5915
SELECT + + CAST( + 64 AS SIGNED ) * + + COUNT( * ) * - - 75 * - 67 - + 57 + 57 + + + 57 + 38 + - 1 + 83 * 81
----
-314783

skipif mysql # not compatible
query I rowsort label-5915
SELECT + + CAST ( + 64 AS INTEGER ) * + + COUNT ( * ) * - - 75 * - 67 - + 57 + 57 + + + 57 + 38 + - 1 + 83 * 81
----
-314783

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5916
SELECT ALL + - COALESCE ( + + 36, + 32 * + 6 + - 69, - 7 ) * - 13 - ( + + CAST( NULL AS SIGNED ) ) - 86 * - CAST( - + 15 AS SIGNED ) + 76 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5916
SELECT ALL + - COALESCE ( + + 36, + 32 * + 6 + - 69, - 7 ) * - 13 - ( + + CAST ( NULL AS INTEGER ) ) - 86 * - CAST ( - + 15 AS INTEGER ) + 76 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5917
SELECT ALL + 78 DIV - 26 + 95 AS col0
----
92

skipif mysql # not compatible
query I rowsort label-5917
SELECT ALL + 78 / - 26 + 95 AS col0
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5918
SELECT DISTINCT - CAST( + 51 AS SIGNED ) * - 16 AS col0
----
816

skipif mysql # not compatible
query I rowsort label-5918
SELECT DISTINCT - CAST ( + 51 AS INTEGER ) * - 16 AS col0
----
816

query I rowsort
SELECT - ( + 15 ) * - 15
----
225

query I rowsort
SELECT ( + 78 ) AS col1
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5921
SELECT + 1 - - COUNT( * ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5921
SELECT + 1 - - COUNT ( * ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5922
SELECT ( - CASE + 67 WHEN 84 + - 19 THEN NULL WHEN + + 19 THEN + CAST( NULL AS SIGNED ) ELSE NULL END ) * + + 98 + - + 51 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5922
SELECT ( - CASE + 67 WHEN 84 + - 19 THEN NULL WHEN + + 19 THEN + CAST ( NULL AS INTEGER ) ELSE NULL END ) * + + 98 + - + 51 * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5923
SELECT - COUNT( * ) AS col2, - 20
----
-1
-20

skipif mysql # not compatible
query II rowsort label-5923
SELECT - COUNT ( * ) AS col2, - 20
----
-1
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-5924
SELECT - ( + COUNT( * ) ) * + 41, 40 col1
----
-41
40

skipif mysql # not compatible
query II rowsort label-5924
SELECT - ( + COUNT ( * ) ) * + 41, 40 col1
----
-41
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5925
SELECT - CAST( - ( - - 8 ) AS SIGNED )
----
8

skipif mysql # not compatible
query I rowsort label-5925
SELECT - CAST ( - ( - - 8 ) AS INTEGER )
----
8

query II rowsort
SELECT - 65 + - 99 + + 40 AS col0, 58
----
-124
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5927
SELECT ALL 35 + - 35 * - + COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-5927
SELECT ALL 35 + - 35 * - + COUNT ( * )
----
70

query I rowsort
SELECT 14 + 25 + + + 38 * 37 + + 45 * 87 - 62
----
5298

onlyif mysql # DIV for integer division: 
query I rowsort label-5929
SELECT ALL - 76 DIV 32 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-5929
SELECT ALL - 76 / 32 AS col2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5930
SELECT ALL CAST( NULL AS SIGNED ) * - 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5930
SELECT ALL CAST ( NULL AS INTEGER ) * - 78 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 64 * - - 59 AS col0
----
3776

onlyif mysql # aggregate syntax: 
query I rowsort label-5932
SELECT ALL ( + ( + 3 ) ) + 65 + + - COUNT( * ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-5932
SELECT ALL ( + ( + 3 ) ) + 65 + + - COUNT ( * ) AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5933
SELECT COUNT( * ) * + - 11
----
-11

skipif mysql # not compatible
query I rowsort label-5933
SELECT COUNT ( * ) * + - 11
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5934
SELECT CAST( NULL AS SIGNED ) + ( + 10 ) AS col2, + 41 col0
----
NULL
41

skipif mysql # not compatible
query II rowsort label-5934
SELECT CAST ( NULL AS INTEGER ) + ( + 10 ) AS col2, + 41 col0
----
NULL
41

query II rowsort
SELECT 53 AS col1, - 51 * ( + 5 ) AS col1
----
53
-255

query II rowsort
SELECT - 42, 19 * - 28 AS col0
----
-42
-532

query II rowsort
SELECT 96, 84 AS col1
----
96
84

query I rowsort
SELECT ( - 76 ) * + - 69 AS col2
----
5244

onlyif mysql # aggregate syntax: 
query II rowsort label-5939
SELECT - 0 AS col0, COUNT( ALL + 17 ) * + 49 * - 20 + + NULLIF ( - 55, SUM( DISTINCT + - 6 ) ) + + 72 * + 94 AS col0
----
0
5733

skipif mysql # not compatible
query II rowsort label-5939
SELECT - 0 AS col0, COUNT ( ALL + 17 ) * + 49 * - 20 + + NULLIF ( - 55, SUM ( DISTINCT + - 6 ) ) + + 72 * + 94 AS col0
----
0
5733

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5940
SELECT ALL 22 + + COUNT( * ) DIV + - 26 * - + 14 * - 86 * COUNT( * ) + 18 + + - 5 + - 84 * - 80 * - 59 * + - 58
----
22995875

skipif mysql # not compatible
query I rowsort label-5940
SELECT ALL 22 + + COUNT ( * ) / + - 26 * - + 14 * - 86 * COUNT ( * ) + 18 + + - 5 + - 84 * - 80 * - 59 * + - 58
----
22995875

onlyif mysql # DIV for integer division: 
query I rowsort label-5941
SELECT - 99 DIV + - 73 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5941
SELECT - 99 / + - 73 AS col0
----
1

query I rowsort
SELECT ALL - ( - 50 ) col1
----
50

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5943
SELECT - CAST( - 24 AS SIGNED ) DIV + 69
----
0

skipif mysql # not compatible
query I rowsort label-5943
SELECT - CAST ( - 24 AS INTEGER ) / + 69
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5944
SELECT + COUNT( * ) / + CASE - 26 WHEN - 49 THEN - 47 * + + 34 * + CAST( + - 22 AS SIGNED ) / + + MAX( ( - 0 ) ) + - - 13 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5944
SELECT + COUNT ( * ) / + CASE - 26 WHEN - 49 THEN - 47 * + + 34 * + CAST ( + - 22 AS INTEGER ) / + + MAX ( ( - 0 ) ) + - - 13 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5945
SELECT + 75 * + COUNT( * ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-5945
SELECT + 75 * + COUNT ( * ) AS col2
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-5946
SELECT + 2 DIV - 75
----
0

skipif mysql # not compatible
query I rowsort label-5946
SELECT + 2 / - 75
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5947
SELECT ALL CASE + + ( 41 ) WHEN + + 65 THEN - NULLIF ( - 41, + - 28 ) * 66 WHEN - 37 THEN + COUNT( * ) * + NULLIF ( COUNT( * ), + SUM( DISTINCT + 47 ) ) + + 75 + 5 WHEN ( 73 ) * + ( ( - 71 ) ) THEN NULL ELSE NULL END * 75
----
NULL

skipif mysql # not compatible
query I rowsort label-5947
SELECT ALL CASE + + ( 41 ) WHEN + + 65 THEN - NULLIF ( - 41, + - 28 ) * 66 WHEN - 37 THEN + COUNT ( * ) * + NULLIF ( COUNT ( * ), + SUM ( DISTINCT + 47 ) ) + + 75 + 5 WHEN ( 73 ) * + ( ( - 71 ) ) THEN NULL ELSE NULL END * 75
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5948
SELECT ALL - + COALESCE ( COUNT( * ), + 93, - - 32 + - 59 )
----
-1

skipif mysql # not compatible
query I rowsort label-5948
SELECT ALL - + COALESCE ( COUNT ( * ), + 93, - - 32 + - 59 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5949
SELECT ( + + CAST( 24 AS SIGNED ) ) + - 32
----
-8

skipif mysql # not compatible
query I rowsort label-5949
SELECT ( + + CAST ( 24 AS INTEGER ) ) + - 32
----
-8

query I rowsort
SELECT 98 * 99 AS col2
----
9702

query I rowsort
SELECT 33 + - 78 AS col2
----
-45

query I rowsort
SELECT ALL + 17 + + 1 AS col0
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5953
SELECT DISTINCT - CAST( + 20 AS SIGNED ) + CASE + + 85 WHEN 2 * + + 14 + - COUNT( * ) THEN NULL ELSE MAX( DISTINCT + 57 ) END * 57 col0
----
3229

skipif mysql # not compatible
query I rowsort label-5953
SELECT DISTINCT - CAST ( + 20 AS INTEGER ) + CASE + + 85 WHEN 2 * + + 14 + - COUNT ( * ) THEN NULL ELSE MAX ( DISTINCT + 57 ) END * 57 col0
----
3229

onlyif mysql # DIV for integer division: 
query I rowsort label-5954
SELECT ALL - 90 DIV 12
----
-7

skipif mysql # not compatible
query I rowsort label-5954
SELECT ALL - 90 / 12
----
-7

query I rowsort
SELECT 23 * - 8 * - 32
----
5888

onlyif mysql # aggregate syntax: 
query I rowsort label-5956
SELECT ALL 29 + + + 35 + + SUM( ALL 70 ) * + MAX( DISTINCT - 79 ) * SUM( ALL - 98 )
----
542004

skipif mysql # not compatible
query I rowsort label-5956
SELECT ALL 29 + + + 35 + + SUM ( ALL 70 ) * + MAX ( DISTINCT - 79 ) * SUM ( ALL - 98 )
----
542004

query I rowsort
SELECT DISTINCT - 72 * + - 82 col1
----
5904

query I rowsort
SELECT ALL + 18 + - 72 AS col1
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-5959
SELECT 13 DIV - 35 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5959
SELECT 13 / - 35 AS col0
----
0

query I rowsort
SELECT 49 * + + 57 col2
----
2793

onlyif mysql # aggregate syntax: 
query I rowsort label-5961
SELECT 39 - + - COUNT( * ) * 79 AS col1
----
118

skipif mysql # not compatible
query I rowsort label-5961
SELECT 39 - + - COUNT ( * ) * 79 AS col1
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-5962
SELECT NULLIF ( - 2, 25 / + COUNT( * ) ) - + MIN( + 23 ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-5962
SELECT NULLIF ( - 2, 25 / + COUNT ( * ) ) - + MIN ( + 23 ) AS col2
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5963
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - - ( + - 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5963
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - - ( + - 97 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5964
SELECT + MAX( ALL + + 85 ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-5964
SELECT + MAX ( ALL + + 85 ) AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5965
SELECT ALL + SUM( - 3 ) col0
----
-3

skipif mysql # not compatible
query I rowsort label-5965
SELECT ALL + SUM ( - 3 ) col0
----
-3

query I rowsort
SELECT + ( 33 ) * + - 39 * - 36 AS col2
----
46332

query I rowsort
SELECT + - 95 AS col2
----
-95

query I rowsort
SELECT + 4 * 0 + + 93 col0
----
93

query II rowsort
SELECT - 72 * + 24 AS col2, - 72 + - + 64 col1
----
-1728
-136

query I rowsort
SELECT 85 * 78 AS col1
----
6630

query I rowsort
SELECT ALL - - 56 AS col1
----
56

query I rowsort
SELECT DISTINCT - - 30 AS col2
----
30

query I rowsort
SELECT ALL 69 * - - 41
----
2829

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5974
SELECT ALL - COALESCE ( + - CAST( NULL AS SIGNED ), COALESCE ( + 88, 52 + 48, ( 44 ), + 31 ) * 56 ) AS col1
----
-4928

skipif mysql # not compatible
query I rowsort label-5974
SELECT ALL - COALESCE ( + - CAST ( NULL AS INTEGER ), COALESCE ( + 88, 52 + 48, ( 44 ), + 31 ) * 56 ) AS col1
----
-4928

query I rowsort
SELECT - ( - 77 ) AS col2
----
77

query I rowsort
SELECT 44 * - + 45
----
-1980

query I rowsort
SELECT 88 * + ( - 82 )
----
-7216

onlyif mysql # DIV for integer division: 
query II rowsort label-5978
SELECT DISTINCT + 4 + - 62 AS col2, - 16 DIV + 41 * - - 65
----
-58
0

skipif mysql # not compatible
query II rowsort label-5978
SELECT DISTINCT + 4 + - 62 AS col2, - 16 / + 41 * - - 65
----
-58
0

query I rowsort
SELECT + 65 - + 78 AS col2
----
-13

query I rowsort
SELECT + NULLIF ( 43, 53 + + + 42 )
----
43

query I rowsort
SELECT + 42 - - - 26 AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5982
SELECT DISTINCT 65 + COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-5982
SELECT DISTINCT 65 + COUNT ( * )
----
66

query II rowsort
SELECT ALL + 97 AS col1, + 16 * 65 AS col2
----
97
1040

query I rowsort
SELECT DISTINCT + NULLIF ( - - 73, - - 22 + + 63 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5985
SELECT + 82 + COUNT( * ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-5985
SELECT + 82 + COUNT ( * ) AS col0
----
83

query I rowsort
SELECT - 64 * - 42 * - 6
----
-16128

query I rowsort
SELECT - 76 * 26 AS col0
----
-1976

onlyif mysql # aggregate syntax: 
query I rowsort label-5988
SELECT - MIN( DISTINCT + ( 34 ) ) + 97 - - 13 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-5988
SELECT - MIN ( DISTINCT + ( 34 ) ) + 97 - - 13 AS col1
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5989
SELECT - 28 + + - COALESCE ( CAST( NULL AS SIGNED ), + + COUNT( * ) + 47 ) * + NULLIF ( - + 90, - - 79 ) + 62 AS col0
----
4354

skipif mysql # not compatible
query I rowsort label-5989
SELECT - 28 + + - COALESCE ( CAST ( NULL AS INTEGER ), + + COUNT ( * ) + 47 ) * + NULLIF ( - + 90, - - 79 ) + 62 AS col0
----
4354

query I rowsort
SELECT ALL - 14 * - 0 * 91
----
0

query I rowsort
SELECT DISTINCT - NULLIF ( 92, + - 18 ) * - 52
----
4784

onlyif mysql # aggregate syntax: 
query I rowsort label-5992
SELECT ALL COUNT( - 34 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5992
SELECT ALL COUNT ( - 34 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5993
SELECT - 98 AS col0, ( + + COUNT( * ) ) + + 45
----
-98
46

skipif mysql # not compatible
query II rowsort label-5993
SELECT - 98 AS col0, ( + + COUNT ( * ) ) + + 45
----
-98
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5994
SELECT - SUM( ALL + 97 ) + - - MIN( DISTINCT - 28 ) + - 27 * ( 54 ) + - + MIN( 6 ) AS col1
----
-1589

skipif mysql # not compatible
query I rowsort label-5994
SELECT - SUM ( ALL + 97 ) + - - MIN ( DISTINCT - 28 ) + - 27 * ( 54 ) + - + MIN ( 6 ) AS col1
----
-1589

query I rowsort
SELECT DISTINCT - 69 - + + 87
----
-156

onlyif mysql # aggregate syntax: 
query III rowsort label-5996
SELECT - - 33, - COALESCE ( ( - 48 ), - 60, 11 * + COUNT( * ) * - COUNT( * ) + 74 * - + ( + - 14 ), - COUNT( * ) * - 50 ) AS col2, MAX( ALL + 29 ) - + 61 * 8 AS col1
----
33
48
-459

skipif mysql # not compatible
query III rowsort label-5996
SELECT - - 33, - COALESCE ( ( - 48 ), - 60, 11 * + COUNT ( * ) * - COUNT ( * ) + 74 * - + ( + - 14 ), - COUNT ( * ) * - 50 ) AS col2, MAX ( ALL + 29 ) - + 61 * 8 AS col1
----
33
48
-459

onlyif mysql # aggregate syntax: 
query I rowsort label-5997
SELECT - 4 + - COUNT( * ) * + - COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-5997
SELECT - 4 + - COUNT ( * ) * + - COUNT ( * )
----
-3

query II rowsort
SELECT ALL + 20 AS col2, 80 AS col2
----
20
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5999
SELECT - COUNT( * ) * - + 56 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-5999
SELECT - COUNT ( * ) * - + 56 AS col1
----
56

query I rowsort
SELECT + 17 + + 39 AS col0
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-6001
SELECT - 57 DIV + + 43
----
-1

skipif mysql # not compatible
query I rowsort label-6001
SELECT - 57 / + + 43
----
-1

query I rowsort
SELECT ALL + ( + - 25 )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6003
SELECT - COALESCE ( 1, - + 54, + - MIN( DISTINCT - - 53 ), + - 37 + - 57 + 52 * - ( - COUNT( * ) ) - + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6003
SELECT - COALESCE ( 1, - + 54, + - MIN ( DISTINCT - - 53 ), + - 37 + - 57 + 52 * - ( - COUNT ( * ) ) - + COUNT ( * ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6004
SELECT ALL + 2 * + 47 * + + 22 + - 7 - ( + COALESCE ( + 7, CAST( + COALESCE ( + - COUNT( 64 ), + + 79 + AVG ( - + 90 ) / - + 58 ) AS SIGNED ) ) ) AS col2
----
2054

skipif mysql # not compatible
query I rowsort label-6004
SELECT ALL + 2 * + 47 * + + 22 + - 7 - ( + COALESCE ( + 7, CAST ( + COALESCE ( + - COUNT ( 64 ), + + 79 + AVG ( - + 90 ) / - + 58 ) AS INTEGER ) ) ) AS col2
----
2054

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6005
SELECT - - COUNT( 47 ) DIV COUNT( * ) * - 75
----
-75

skipif mysql # not compatible
query I rowsort label-6005
SELECT - - COUNT ( 47 ) / COUNT ( * ) * - 75
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-6006
SELECT ALL + ( - 30 ) DIV - 47 + - 0 * + + 52 col1
----
0

skipif mysql # not compatible
query I rowsort label-6006
SELECT ALL + ( - 30 ) / - 47 + - 0 * + + 52 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6007
SELECT + NULLIF ( CAST( NULL AS SIGNED ), - + 46 ) * + + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6007
SELECT + NULLIF ( CAST ( NULL AS INTEGER ), - + 46 ) * + + COUNT ( * ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6008
SELECT ALL - 13 * CAST( NULL AS DECIMAL ) + + COUNT( * ) + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6008
SELECT ALL - 13 * CAST ( NULL AS REAL ) + + COUNT ( * ) + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6009
SELECT - - 48 DIV COUNT( * ) + COALESCE ( 29, - SUM( ALL - + 99 ), + 70 ) + 57
----
134

skipif mysql # not compatible
query I rowsort label-6009
SELECT - - 48 / COUNT ( * ) + COALESCE ( 29, - SUM ( ALL - + 99 ), + 70 ) + 57
----
134

query I rowsort
SELECT ALL 3 * - 40 AS col2
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-6011
SELECT + + 55 + - ( 9 ) * + 60 * + MAX( + 27 ) AS col1
----
-14525

skipif mysql # not compatible
query I rowsort label-6011
SELECT + + 55 + - ( 9 ) * + 60 * + MAX ( + 27 ) AS col1
----
-14525

query I rowsort
SELECT ALL + 76 * 88 * + 35 + - 66 AS col0
----
234014

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6013
SELECT - ( - + CASE + 87 WHEN 26 THEN COUNT( * ) ELSE + CAST( NULL AS SIGNED ) + - COALESCE ( 66, + 62 * 22, 68 * - ( - ( - COUNT( * ) ) ) ) - 96 * 80 END ) * - 26 + + 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6013
SELECT - ( - + CASE + 87 WHEN 26 THEN COUNT ( * ) ELSE + CAST ( NULL AS INTEGER ) + - COALESCE ( 66, + 62 * 22, 68 * - ( - ( - COUNT ( * ) ) ) ) - 96 * 80 END ) * - 26 + + 9 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6014
SELECT ALL + + 22 * + COUNT( ALL + 92 )
----
22

skipif mysql # not compatible
query I rowsort label-6014
SELECT ALL + + 22 * + COUNT ( ALL + 92 )
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6015
SELECT + 1 - CAST( + 53 AS SIGNED ) * - 92 + COUNT( * ) AS col2
----
4878

skipif mysql # not compatible
query I rowsort label-6015
SELECT + 1 - CAST ( + 53 AS INTEGER ) * - 92 + COUNT ( * ) AS col2
----
4878

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6016
SELECT + 18 + CAST( + + ( - - COUNT( * ) ) AS SIGNED ) * + + 73
----
91

skipif mysql # not compatible
query I rowsort label-6016
SELECT + 18 + CAST ( + + ( - - COUNT ( * ) ) AS INTEGER ) * + + 73
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6017
SELECT ALL - 75 * + - 48 * COUNT( * ) + - - 95
----
3695

skipif mysql # not compatible
query I rowsort label-6017
SELECT ALL - 75 * + - 48 * COUNT ( * ) + - - 95
----
3695

query I rowsort
SELECT + ( - 38 )
----
-38

query I rowsort
SELECT ALL 25 * + 39 + + + 17
----
992

query I rowsort
SELECT + 12 + 65
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6021
SELECT ALL ( + 96 ) / CASE + 94 WHEN - 46 THEN CASE - CASE 70 WHEN + 65 THEN - COUNT( * ) * - 14 / - 53 * + COUNT( + - 50 ) ELSE NULL END WHEN + COUNT( * ) THEN 0 + 67 ELSE NULL END ELSE NULL END * 93 - + 19 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6021
SELECT ALL ( + 96 ) / CASE + 94 WHEN - 46 THEN CASE - CASE 70 WHEN + 65 THEN - COUNT ( * ) * - 14 / - 53 * + COUNT ( + - 50 ) ELSE NULL END WHEN + COUNT ( * ) THEN 0 + 67 ELSE NULL END ELSE NULL END * 93 - + 19 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6022
SELECT CASE - 21 WHEN + + 87 * + + 10 * + - 59 THEN - COUNT( * ) * - 95 WHEN 72 + - 52 THEN 13 * - + 66 - COUNT( DISTINCT + 43 ) + - 6 + 0 WHEN ( - 9 ) + - 88 THEN - 32 WHEN 66 THEN NULL ELSE 88 END AS col0
----
88

skipif mysql # not compatible
query I rowsort label-6022
SELECT CASE - 21 WHEN + + 87 * + + 10 * + - 59 THEN - COUNT ( * ) * - 95 WHEN 72 + - 52 THEN 13 * - + 66 - COUNT ( DISTINCT + 43 ) + - 6 + 0 WHEN ( - 9 ) + - 88 THEN - 32 WHEN 66 THEN NULL ELSE 88 END AS col0
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-6023
SELECT ALL + 3, 57 * - 43 + - SUM( + 52 ) AS col1
----
3
-2503

skipif mysql # not compatible
query II rowsort label-6023
SELECT ALL + 3, 57 * - 43 + - SUM ( + 52 ) AS col1
----
3
-2503

query I rowsort
SELECT ALL ( - 65 ) * - 27
----
1755

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6025
SELECT - CAST( - + 14 AS SIGNED ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-6025
SELECT - CAST ( - + 14 AS INTEGER ) AS col1
----
14

query I rowsort
SELECT ALL NULLIF ( - 49, + 50 ) col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6027
SELECT MAX( ALL - 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-6027
SELECT MAX ( ALL - 47 )
----
-47

query II rowsort
SELECT DISTINCT 92 AS col2, + 3 * - 53 + - 87 AS col2
----
92
-246

onlyif mysql # aggregate syntax: 
query II rowsort label-6029
SELECT - 94 AS col2, - 54 + + MIN( ALL + 3 ) AS col0
----
-94
-51

skipif mysql # not compatible
query II rowsort label-6029
SELECT - 94 AS col2, - 54 + + MIN ( ALL + 3 ) AS col0
----
-94
-51

query II rowsort
SELECT ALL ( + 57 ), 16 * 16 AS col1
----
57
256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6031
SELECT - 51 AS col1, CASE 36 WHEN + COUNT( * ) + - 67 + + 41 THEN + + 24 + 34 + + COUNT( * ) * - 61 * + + 65 - - COUNT( * ) ELSE - 2 + - - 61 END + + - ( - 48 ) - + CASE 52 WHEN COUNT( * ) + NULLIF ( + 3, COUNT( * ) ) THEN SUM( DISTINCT + 88 ) END * + COALESCE ( 51 + 64, 26 ) * CASE 66 * 0 WHEN - CAST( NULL AS SIGNED ) + + NULLIF ( - 33, 70 ) / COUNT( * ) THEN - 61 * + COALESCE ( 42, - COUNT( * ) + + 69, + CAST( NULL AS SIGNED ) ) ELSE NULL END AS col2
----
-51
NULL

skipif mysql # not compatible
query II rowsort label-6031
SELECT - 51 AS col1, CASE 36 WHEN + COUNT ( * ) + - 67 + + 41 THEN + + 24 + 34 + + COUNT ( * ) * - 61 * + + 65 - - COUNT ( * ) ELSE - 2 + - - 61 END + + - ( - 48 ) - + CASE 52 WHEN COUNT ( * ) + NULLIF ( + 3, COUNT ( * ) ) THEN SUM ( DISTINCT + 88 ) END * + COALESCE ( 51 + 64, 26 ) * CASE 66 * 0 WHEN - CAST ( NULL AS INTEGER ) + + NULLIF ( - 33, 70 ) / COUNT ( * ) THEN - 61 * + COALESCE ( 42, - COUNT ( * ) + + 69, + CAST ( NULL AS INTEGER ) ) ELSE NULL END AS col2
----
-51
NULL

query I rowsort
SELECT + + 66 * 3 AS col1
----
198

query II rowsort
SELECT DISTINCT - 20 AS col1, + 60 + + 52
----
-20
112

query I rowsort
SELECT - + 28 * + + 57
----
-1596

query I rowsort
SELECT - + 17 - 22 * + 11 col0
----
-259

query III rowsort
SELECT ALL 51 AS col1, - ( + 69 ) * - + 80 AS col2, + 64
----
51
5520
64

query I rowsort
SELECT DISTINCT + + 91 + + 88 col2
----
179

onlyif mysql # aggregate syntax: 
query II rowsort label-6038
SELECT - + 67 * - + 92, - SUM( 8 ) col1
----
6164
-8

skipif mysql # not compatible
query II rowsort label-6038
SELECT - + 67 * - + 92, - SUM ( 8 ) col1
----
6164
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6039
SELECT ALL + + COUNT( DISTINCT 3 ) + 12
----
13

skipif mysql # not compatible
query I rowsort label-6039
SELECT ALL + + COUNT ( DISTINCT 3 ) + 12
----
13

onlyif mysql # DIV for integer division: 
query II rowsort label-6040
SELECT DISTINCT - 76 AS col1, - 77 DIV - 56
----
-76
1

skipif mysql # not compatible
query II rowsort label-6040
SELECT DISTINCT - 76 AS col1, - 77 / - 56
----
-76
1

query I rowsort
SELECT DISTINCT + 39 + + 33
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6042
SELECT + 34 + + + 6 + + + COUNT( * ) * + - 16 + + 28
----
52

skipif mysql # not compatible
query I rowsort label-6042
SELECT + 34 + + + 6 + + + COUNT ( * ) * + - 16 + + 28
----
52

query I rowsort
SELECT - 48 + 75 + 29 + - 48 * 82 AS col1
----
-3880

query II rowsort
SELECT - 18 - + 12, 11 AS col0
----
-30
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6045
SELECT + - 27 col1, COUNT( * ) DIV - - 7 AS col0
----
-27
0

skipif mysql # not compatible
query II rowsort label-6045
SELECT + - 27 col1, COUNT ( * ) / - - 7 AS col0
----
-27
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6046
SELECT - - 84 DIV + - 67
----
-1

skipif mysql # not compatible
query I rowsort label-6046
SELECT - - 84 / + - 67
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-6047
SELECT DISTINCT + + 31 DIV 60 + + 94 + + 79 * 45 + - + 5 AS col1, ( - 71 ) col0
----
3644
-71

skipif mysql # not compatible
query II rowsort label-6047
SELECT DISTINCT + + 31 / 60 + + 94 + + 79 * 45 + - + 5 AS col1, ( - 71 ) col0
----
3644
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-6048
SELECT - SUM( ALL + + 8 )
----
-8

skipif mysql # not compatible
query I rowsort label-6048
SELECT - SUM ( ALL + + 8 )
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6049
SELECT + - CAST( NULL AS SIGNED ) AS col1, + 27 - - CAST( NULL AS SIGNED ) / 82
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6049
SELECT + - CAST ( NULL AS INTEGER ) AS col1, + 27 - - CAST ( NULL AS INTEGER ) / 82
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6050
SELECT ALL + 46 + - - ( - 8 ) DIV + 90 col0
----
46

skipif mysql # not compatible
query I rowsort label-6050
SELECT ALL + 46 + - - ( - 8 ) / + 90 col0
----
46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6051
SELECT + 84 * - 48 * + - CAST( NULL AS DECIMAL ) * 32
----
NULL

skipif mysql # not compatible
query I rowsort label-6051
SELECT + 84 * - 48 * + - CAST ( NULL AS REAL ) * 32
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6052
SELECT ALL - + MAX( DISTINCT + 78 ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-6052
SELECT ALL - + MAX ( DISTINCT + 78 ) AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6053
SELECT ALL - NULLIF ( - - COUNT( * ), + - 14 ) + + 35 - + 46 * + + 40 AS col0
----
-1806

skipif mysql # not compatible
query I rowsort label-6053
SELECT ALL - NULLIF ( - - COUNT ( * ), + - 14 ) + + 35 - + 46 * + + 40 AS col0
----
-1806

query I rowsort
SELECT ALL 6 - + 59 * + 86
----
-5068

query I rowsort
SELECT 7 * - 36
----
-252

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6056
SELECT - 59 * 99 DIV - 67 + + + MAX( ALL + 86 ) AS col2
----
173

skipif mysql # not compatible
query I rowsort label-6056
SELECT - 59 * 99 / - 67 + + + MAX ( ALL + 86 ) AS col2
----
173

onlyif mysql # aggregate syntax: 
query I rowsort label-6057
SELECT COUNT( * ) * + + ( 95 ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-6057
SELECT COUNT ( * ) * + + ( 95 ) AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6058
SELECT COUNT( * ) - - 31 * - 2 AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-6058
SELECT COUNT ( * ) - - 31 * - 2 AS col0
----
-61

query I rowsort
SELECT ( 8 ) * - - 38 col1
----
304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6060
SELECT CAST( - 6 AS SIGNED ) * + - 97 - + ( 17 ) AS col1, - NULLIF ( 19, - CAST( + + COUNT( * ) AS SIGNED ) / - 54 ) + 44 * - - 13
----
565
553

skipif mysql # not compatible
query II rowsort label-6060
SELECT CAST ( - 6 AS INTEGER ) * + - 97 - + ( 17 ) AS col1, - NULLIF ( 19, - CAST ( + + COUNT ( * ) AS INTEGER ) / - 54 ) + 44 * - - 13
----
565
553

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6061
SELECT 94 + CAST( - COUNT( ALL + + 25 ) AS SIGNED )
----
93

skipif mysql # not compatible
query I rowsort label-6061
SELECT 94 + CAST ( - COUNT ( ALL + + 25 ) AS INTEGER )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6062
SELECT ALL CASE + 70 WHEN - COUNT( * ) THEN - 3 ELSE NULL END * 46 - - - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-6062
SELECT ALL CASE + 70 WHEN - COUNT ( * ) THEN - 3 ELSE NULL END * 46 - - - 90
----
NULL

query I rowsort
SELECT + 61 * - - 73 AS col0
----
4453

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6064
SELECT ALL 35 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6064
SELECT ALL 35 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6065
SELECT DISTINCT COUNT( * ) * - 40 - - 91 DIV ( 95 ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-6065
SELECT DISTINCT COUNT ( * ) * - 40 - - 91 / ( 95 ) AS col2
----
-40

query I rowsort
SELECT ALL + 74 + + COALESCE ( 70, + - 40 )
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-6067
SELECT + 28 + + - MIN( 95 ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-6067
SELECT + 28 + + - MIN ( 95 ) AS col0
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-6068
SELECT - + MAX( - 31 ) AS col2, 91 AS col0
----
31
91

skipif mysql # not compatible
query II rowsort label-6068
SELECT - + MAX ( - 31 ) AS col2, 91 AS col0
----
31
91

onlyif mysql # aggregate syntax: 
query II rowsort label-6069
SELECT + 2 + - 47 AS col1, MAX( DISTINCT ( + 73 ) )
----
-45
73

skipif mysql # not compatible
query II rowsort label-6069
SELECT + 2 + - 47 AS col1, MAX ( DISTINCT ( + 73 ) )
----
-45
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6070
SELECT DISTINCT 81 + + CAST( - CAST( - - NULLIF ( 22, - 43 + 17 ) AS SIGNED ) AS SIGNED ) - - MAX( - 72 ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-6070
SELECT DISTINCT 81 + + CAST ( - CAST ( - - NULLIF ( 22, - 43 + 17 ) AS INTEGER ) AS INTEGER ) - - MAX ( - 72 ) AS col2
----
-13

query I rowsort
SELECT DISTINCT + + 97 * - + 16 * 66 + 89 AS col2
----
-102343

query I rowsort
SELECT - 77 + 21
----
-56

query I rowsort
SELECT DISTINCT - 56 * - 18 col0
----
1008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6074
SELECT - - MAX( - CAST( 56 AS SIGNED ) ) / 29 + + + COALESCE ( + 79, + 64 * - ( + - ( + 72 ) ) ) + - + 57 * + + CASE + 30 WHEN + 12 THEN 69 * 73 - - - 15 + + 18 END + - CASE + CAST( - ( + 25 ) AS DECIMAL ) WHEN - 1 * 19 + + COUNT( * ) THEN NULL WHEN 71 THEN NULL ELSE COUNT( * ) / 9 + ( - 56 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6074
SELECT - - MAX ( - CAST ( 56 AS INTEGER ) ) / 29 + + + COALESCE ( + 79, + 64 * - ( + - ( + 72 ) ) ) + - + 57 * + + CASE + 30 WHEN + 12 THEN 69 * 73 - - - 15 + + 18 END + - CASE + CAST ( - ( + 25 ) AS REAL ) WHEN - 1 * 19 + + COUNT ( * ) THEN NULL WHEN 71 THEN NULL ELSE COUNT ( * ) / 9 + ( - 56 ) END AS col2
----
NULL

query I rowsort
SELECT 7 - - 80 * + COALESCE ( - 16, + - 48 ) AS col0
----
-1273

onlyif mysql # aggregate syntax: 
query II rowsort label-6076
SELECT 43 * + COALESCE ( + + 33, - COUNT( * ), 32, 65 ), 90 + - ( 94 ) AS col2
----
1419
-4

skipif mysql # not compatible
query II rowsort label-6076
SELECT 43 * + COALESCE ( + + 33, - COUNT ( * ), 32, 65 ), 90 + - ( 94 ) AS col2
----
1419
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6077
SELECT ALL - ( + 5 ) * + ( + + COUNT( * ) ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-6077
SELECT ALL - ( + 5 ) * + ( + + COUNT ( * ) ) AS col2
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6078
SELECT DISTINCT - CAST( NULL AS SIGNED ) - + 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6078
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - + 60 AS col0
----
NULL

query I rowsort
SELECT 68 * + ( + 87 ) col1
----
5916

query I rowsort
SELECT 48 + + 47 AS col0
----
95

query I rowsort
SELECT 58 * 66 AS col0
----
3828

query I rowsort
SELECT ALL 17 * + + 66 * 40 AS col0
----
44880

query I rowsort
SELECT ( - ( - + ( - 40 ) ) ) * - - 43 + NULLIF ( + 64, - + 21 )
----
-1656

onlyif mysql # DIV for integer division: 
query I rowsort label-6084
SELECT 57 * ( - + COALESCE ( + 67, - 5 DIV - 18 ) )
----
-3819

skipif mysql # not compatible
query I rowsort label-6084
SELECT 57 * ( - + COALESCE ( + 67, - 5 / - 18 ) )
----
-3819

query I rowsort
SELECT ALL + 92 * - 8 AS col0
----
-736

onlyif mysql # aggregate syntax: 
query I rowsort label-6086
SELECT DISTINCT - NULLIF ( - 56, ( + - COUNT( * ) ) + 89 ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-6086
SELECT DISTINCT - NULLIF ( - 56, ( + - COUNT ( * ) ) + 89 ) AS col0
----
56

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6087
SELECT DISTINCT + 11 + + 20 DIV + 17, + ( + CAST( + 44 AS SIGNED ) ) DIV + 45 col2
----
12
0

skipif mysql # not compatible
query II rowsort label-6087
SELECT DISTINCT + 11 + + 20 / + 17, + ( + CAST ( + 44 AS INTEGER ) ) / + 45 col2
----
12
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6088
SELECT ALL 67 + + CASE - ( - 15 ) WHEN + COUNT( * ) THEN + + 83 - + - ( 13 ) + - 43 WHEN + NULLIF ( - 81, - 86 ) + + 89 + + 48 - - - 81 * - - COUNT( * ) THEN NULL ELSE 63 * - 24 + 93 END AS col0
----
-1352

skipif mysql # not compatible
query I rowsort label-6088
SELECT ALL 67 + + CASE - ( - 15 ) WHEN + COUNT ( * ) THEN + + 83 - + - ( 13 ) + - 43 WHEN + NULLIF ( - 81, - 86 ) + + 89 + + 48 - - - 81 * - - COUNT ( * ) THEN NULL ELSE 63 * - 24 + 93 END AS col0
----
-1352

query I rowsort
SELECT 8 * - 11
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6090
SELECT ALL - + 83 + + + 53 * + 50 * COALESCE ( + CAST( NULL AS SIGNED ), 67, + - 22 * + CAST( NULL AS SIGNED ) + CASE - 50 WHEN - + COALESCE ( 11, - COUNT( * ) ) THEN NULL ELSE - 55 * + - 5 + 56 * COALESCE ( 11, + 84, ( 26 ) * + 57 ) END - + 33 ) + 96
----
177563

skipif mysql # not compatible
query I rowsort label-6090
SELECT ALL - + 83 + + + 53 * + 50 * COALESCE ( + CAST ( NULL AS INTEGER ), 67, + - 22 * + CAST ( NULL AS INTEGER ) + CASE - 50 WHEN - + COALESCE ( 11, - COUNT ( * ) ) THEN NULL ELSE - 55 * + - 5 + 56 * COALESCE ( 11, + 84, ( 26 ) * + 57 ) END - + 33 ) + 96
----
177563

onlyif mysql # aggregate syntax: 
query I rowsort label-6091
SELECT + MIN( ALL - 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-6091
SELECT + MIN ( ALL - 78 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6092
SELECT ALL - COUNT( * ) + 32
----
31

skipif mysql # not compatible
query I rowsort label-6092
SELECT ALL - COUNT ( * ) + 32
----
31

query II rowsort
SELECT - - 0 AS col0, 98
----
0
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6094
SELECT + 16 + - CAST( + 15 AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6094
SELECT + 16 + - CAST ( + 15 AS INTEGER ) AS col2
----
1

query II rowsort
SELECT + 47 AS col2, + 22 AS col0
----
47
22

query I rowsort
SELECT + 39 * + - 45
----
-1755

onlyif mysql # aggregate syntax: 
query I rowsort label-6097
SELECT DISTINCT - 51 + + COALESCE ( - 4, + 90, COUNT( * ) )
----
-55

skipif mysql # not compatible
query I rowsort label-6097
SELECT DISTINCT - 51 + + COALESCE ( - 4, + 90, COUNT ( * ) )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6098
SELECT ALL - 18 - - MAX( - 89 )
----
-107

skipif mysql # not compatible
query I rowsort label-6098
SELECT ALL - 18 - - MAX ( - 89 )
----
-107

query I rowsort
SELECT + - 7 * - + 49 * + + 48 AS col0
----
16464

query II rowsort
SELECT 45, 81 AS col0
----
45
81

onlyif mysql # aggregate syntax: 
query II rowsort label-6101
SELECT ALL - NULLIF ( COUNT( * ), - 88 ) AS col0, - 5 * - 72 AS col2
----
-1
360

skipif mysql # not compatible
query II rowsort label-6101
SELECT ALL - NULLIF ( COUNT ( * ), - 88 ) AS col0, - 5 * - 72 AS col2
----
-1
360

query I rowsort
SELECT ALL + 27 * 44 * - 80 * - 87 + 35 AS col0
----
8268515

query I rowsort
SELECT + - 63 + + 60
----
-3

query I rowsort
SELECT + + 88 + + 87 * + 33
----
2959

onlyif mysql # aggregate syntax: 
query I rowsort label-6105
SELECT - 48 - - COUNT( * ) * - 85
----
-133

skipif mysql # not compatible
query I rowsort label-6105
SELECT - 48 - - COUNT ( * ) * - 85
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-6106
SELECT - COUNT( * ) - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-6106
SELECT - COUNT ( * ) - COUNT ( * )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6107
SELECT ALL - 44 * + 1 * + ( + 15 ) - - + CAST( NULL AS SIGNED ) + - 0 * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6107
SELECT ALL - 44 * + 1 * + ( + 15 ) - - + CAST ( NULL AS INTEGER ) + - 0 * - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 74 col0
----
74

query I rowsort
SELECT ALL - 96 * - - 59 AS col0
----
-5664

query II rowsort
SELECT + ( 37 ) AS col1, + 7 col0
----
37
7

query I rowsort
SELECT ALL - 69 * - - 64
----
-4416

query I rowsort
SELECT ALL 87 * + 65 * - 23 AS col1
----
-130065

onlyif mysql # aggregate syntax: 
query I rowsort label-6113
SELECT NULLIF ( - ( 51 ), - COALESCE ( - + 39, - 97 - - 29, - 98 + NULLIF ( + SUM( + 12 ), 22 ) + 85 + - 86 * + 81 / - 24 ) ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-6113
SELECT NULLIF ( - ( 51 ), - COALESCE ( - + 39, - 97 - - 29, - 98 + NULLIF ( + SUM ( + 12 ), 22 ) + 85 + - 86 * + 81 / - 24 ) ) AS col2
----
-51

query I rowsort
SELECT ALL + COALESCE ( - 77, - + 17 )
----
-77

query I rowsort
SELECT ALL - 69 * - 8 AS col0
----
552

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6116
SELECT + 46 DIV - 71 * + + SUM( ALL - 3 ) * - + 33 + 77 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-6116
SELECT + 46 / - 71 * + + SUM ( ALL - 3 ) * - + 33 + 77 AS col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6117
SELECT - COUNT( 50 ) * - + 71 - 38 + + + 82 * + + 78 * + 94 AS col2
----
601257

skipif mysql # not compatible
query I rowsort label-6117
SELECT - COUNT ( 50 ) * - + 71 - 38 + + + 82 * + + 78 * + 94 AS col2
----
601257

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6118
SELECT COUNT( * ) * + COUNT( * ) - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6118
SELECT COUNT ( * ) * + COUNT ( * ) - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 37 * 53 + - - 62
----
2023

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6120
SELECT DISTINCT ( + - 90 ) * - 82 + + NULLIF ( + CAST( + COALESCE ( 0, 91 ) AS SIGNED ), 7 * + - 15 ) * - 88 * - + 93 AS col1
----
7380

skipif mysql # not compatible
query I rowsort label-6120
SELECT DISTINCT ( + - 90 ) * - 82 + + NULLIF ( + CAST ( + COALESCE ( 0, 91 ) AS INTEGER ), 7 * + - 15 ) * - 88 * - + 93 AS col1
----
7380

query I rowsort
SELECT ALL 74 * + - 71 + + 32 AS col1
----
-5222

query II rowsort
SELECT ALL 55 * - + NULLIF ( 63, - 94 ) + - 23, 32 AS col2
----
-3488
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6123
SELECT DISTINCT + - ( + 8 ) * + CAST( 8 AS SIGNED ) * - 40
----
2560

skipif mysql # not compatible
query I rowsort label-6123
SELECT DISTINCT + - ( + 8 ) * + CAST ( 8 AS INTEGER ) * - 40
----
2560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6124
SELECT ALL 68 * COUNT( * ) / - + CAST( NULL AS SIGNED ) * - + 81 * + 55 + - 59 + + - ( - - 45 ) + + - 32 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6124
SELECT ALL 68 * COUNT ( * ) / - + CAST ( NULL AS INTEGER ) * - + 81 * + 55 + - 59 + + - ( - - 45 ) + + - 32 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6125
SELECT - 87 + - + 79 + + 27 + 59 + 91 + + + 25 * - 69 * - + 67 * - COUNT( * ) AS col2, - 22 AS col1
----
-115564
-22

skipif mysql # not compatible
query II rowsort label-6125
SELECT - 87 + - + 79 + + 27 + 59 + 91 + + + 25 * - 69 * - + 67 * - COUNT ( * ) AS col2, - 22 AS col1
----
-115564
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6126
SELECT - 57 - COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-6126
SELECT - 57 - COUNT ( * )
----
-58

query I rowsort
SELECT - 72 * + - 78 + 22 * 27 AS col2
----
6210

onlyif mysql # aggregate syntax: 
query I rowsort label-6128
SELECT - COUNT( DISTINCT + 66 ) - 68 - - 21
----
-48

skipif mysql # not compatible
query I rowsort label-6128
SELECT - COUNT ( DISTINCT + 66 ) - 68 - - 21
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT - SUM( + + 96 ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-6129
SELECT - SUM ( + + 96 ) AS col2
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6130
SELECT DISTINCT + ( - COUNT( + 49 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6130
SELECT DISTINCT + ( - COUNT ( + 49 ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6131
SELECT DISTINCT + + 26 - - - COUNT( * ) * - COUNT( * ) DIV + 82
----
26

skipif mysql # not compatible
query I rowsort label-6131
SELECT DISTINCT + + 26 - - - COUNT ( * ) * - COUNT ( * ) / + 82
----
26

query I rowsort
SELECT ALL - 22 * - 46
----
1012

query I rowsort
SELECT ALL + - 75 - + 22 - 18
----
-115

query I rowsort
SELECT DISTINCT - - 13 * - - 41 * - 4 - + 36 AS col0
----
-2168

onlyif mysql # aggregate syntax: 
query I rowsort label-6135
SELECT - - 78 + - COUNT( * ) * - - 98
----
-20

skipif mysql # not compatible
query I rowsort label-6135
SELECT - - 78 + - COUNT ( * ) * - - 98
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-6136
SELECT ALL - 67 - - MIN( DISTINCT 25 )
----
-42

skipif mysql # not compatible
query I rowsort label-6136
SELECT ALL - 67 - - MIN ( DISTINCT 25 )
----
-42

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6137
SELECT + 73 * + + AVG ( ALL - 22 ) * - + 43 - - SUM( DISTINCT - 63 ) - + 18 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6137
SELECT + 73 * + + AVG ( ALL - 22 ) * - + 43 - - SUM ( DISTINCT - 63 ) - + 18 + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT - - 38 - + - ( - 95 ) col2
----
-57

query I rowsort
SELECT - 26 + + 66 * 97 * + + 86
----
550546

query I rowsort
SELECT + 0 + + 39 AS col0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6141
SELECT - 39 * + 53 * - 44 + - CAST( + + 89 AS SIGNED ) AS col1, 82
----
90859
82

skipif mysql # not compatible
query II rowsort label-6141
SELECT - 39 * + 53 * - 44 + - CAST ( + + 89 AS INTEGER ) AS col1, 82
----
90859
82

query I rowsort
SELECT + + 95 * + - 61 * + 59 col1
----
-341905

query I rowsort
SELECT DISTINCT 89 * - 59 * + + 56 AS col0
----
-294056

onlyif mysql # aggregate syntax: 
query I rowsort label-6144
SELECT + COUNT( * ) + + 63 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-6144
SELECT + COUNT ( * ) + + 63 AS col0
----
64

query II rowsort
SELECT - ( ( 46 ) ) AS col0, 85 AS col0
----
-46
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6146
SELECT DISTINCT ( - 43 ) * - + ( ( + 45 ) ) + + COALESCE ( - 97, - 55 - COUNT( * ) * + - ( - 88 ) + + NULLIF ( 26, + + 74 / - 48 ) ) AS col1
----
1838

skipif mysql # not compatible
query I rowsort label-6146
SELECT DISTINCT ( - 43 ) * - + ( ( + 45 ) ) + + COALESCE ( - 97, - 55 - COUNT ( * ) * + - ( - 88 ) + + NULLIF ( 26, + + 74 / - 48 ) ) AS col1
----
1838

onlyif mysql # DIV for integer division: 
query I rowsort label-6147
SELECT ALL - 56 DIV 16 + - - 70
----
67

skipif mysql # not compatible
query I rowsort label-6147
SELECT ALL - 56 / 16 + - - 70
----
67

query I rowsort
SELECT - 94 * + 16 AS col0
----
-1504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6149
SELECT CAST( MAX( 15 ) AS SIGNED ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-6149
SELECT CAST ( MAX ( 15 ) AS INTEGER ) AS col1
----
15

query I rowsort
SELECT + 70 * - 21 * - ( + - 80 )
----
-117600

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6151
SELECT ALL CAST( - 17 AS SIGNED ) DIV - + 93 + - 63 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-6151
SELECT ALL CAST ( - 17 AS INTEGER ) / - + 93 + - 63 AS col1
----
-63

query I rowsort
SELECT + ( 29 ) AS col1
----
29

query I rowsort
SELECT + ( + 26 ) AS col2
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-6154
SELECT ALL 77 DIV + NULLIF ( 61, + + 36 ) + + 44 + - - 39 DIV + 12
----
48

skipif mysql # not compatible
query I rowsort label-6154
SELECT ALL 77 / + NULLIF ( 61, + + 36 ) + + 44 + - - 39 / + 12
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6155
SELECT COUNT( * ) * - 74 * + - 78 + + 79 AS col2
----
5851

skipif mysql # not compatible
query I rowsort label-6155
SELECT COUNT ( * ) * - 74 * + - 78 + + 79 AS col2
----
5851

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6156
SELECT ALL COUNT( * ) DIV + COUNT( * ) + - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6156
SELECT ALL COUNT ( * ) / + COUNT ( * ) + - COUNT ( * ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6157
SELECT + CAST( NULL AS DECIMAL ) + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6157
SELECT + CAST ( NULL AS REAL ) + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6158
SELECT ALL - 75 DIV + SUM( - 90 ) + - - COUNT( * ) * - 61 * - + 1 + + 32 + 96 AS col1
----
189

skipif mysql # not compatible
query I rowsort label-6158
SELECT ALL - 75 / + SUM ( - 90 ) + - - COUNT ( * ) * - 61 * - + 1 + + 32 + 96 AS col1
----
189

query I rowsort
SELECT ( 38 ) AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6160
SELECT - COALESCE ( + 28, + + MAX( DISTINCT - + 12 ) * 0 + - COUNT( * ) - + 99, - + 0 ) * - 86
----
2408

skipif mysql # not compatible
query I rowsort label-6160
SELECT - COALESCE ( + 28, + + MAX ( DISTINCT - + 12 ) * 0 + - COUNT ( * ) - + 99, - + 0 ) * - 86
----
2408

onlyif mysql # aggregate syntax: 
query II rowsort label-6161
SELECT + + 25 AS col0, 70 * - COUNT( * ) * - - 88 * - 51 AS col0
----
25
314160

skipif mysql # not compatible
query II rowsort label-6161
SELECT + + 25 AS col0, 70 * - COUNT ( * ) * - - 88 * - 51 AS col0
----
25
314160

onlyif mysql # aggregate syntax: 
query I rowsort label-6162
SELECT + COUNT( * ) * - NULLIF ( - ( + 6 ), + + 83 ) * - + COUNT( * ) * 99 * + 32 * - - 96 + + - 66 AS col1
----
-1824834

skipif mysql # not compatible
query I rowsort label-6162
SELECT + COUNT ( * ) * - NULLIF ( - ( + 6 ), + + 83 ) * - + COUNT ( * ) * 99 * + 32 * - - 96 + + - 66 AS col1
----
-1824834

query I rowsort
SELECT ALL + + 11 AS col1
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-6164
SELECT + 26 AS col0, COUNT( DISTINCT - 78 ) * - 18 + + 35
----
26
17

skipif mysql # not compatible
query II rowsort label-6164
SELECT + 26 AS col0, COUNT ( DISTINCT - 78 ) * - 18 + + 35
----
26
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6165
SELECT - 24 * + ( + 30 ) + + 80 * MIN( ALL 16 )
----
560

skipif mysql # not compatible
query I rowsort label-6165
SELECT - 24 * + ( + 30 ) + + 80 * MIN ( ALL 16 )
----
560

query I rowsort
SELECT ALL + 12 - - - 8
----
4

query I rowsort
SELECT + 94 * - 23 * - - 86 * + 47
----
-8738804

onlyif mysql # aggregate syntax: 
query I rowsort label-6168
SELECT CASE - + 49 WHEN 73 THEN NULL ELSE + 7 + - COUNT( * ) END
----
6

skipif mysql # not compatible
query I rowsort label-6168
SELECT CASE - + 49 WHEN 73 THEN NULL ELSE + 7 + - COUNT ( * ) END
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6169
SELECT ALL - MIN( ALL - - 86 ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-6169
SELECT ALL - MIN ( ALL - - 86 ) AS col1
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6170
SELECT + COALESCE ( + 38, - - 99 ) / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6170
SELECT + COALESCE ( + 38, - - 99 ) / CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + ( + 88 ) AS col1
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-6172
SELECT ALL 32, NULLIF ( - SUM( + - 76 ), - 95 + - + 45 ) AS col1
----
32
76

skipif mysql # not compatible
query II rowsort label-6172
SELECT ALL 32, NULLIF ( - SUM ( + - 76 ), - 95 + - + 45 ) AS col1
----
32
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6173
SELECT COUNT( * ) DIV + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6173
SELECT COUNT ( * ) / + COUNT ( * ) AS col2
----
1

query I rowsort
SELECT - 71 * 1 AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-6175
SELECT DISTINCT + SUM( + 52 )
----
52

skipif mysql # not compatible
query I rowsort label-6175
SELECT DISTINCT + SUM ( + 52 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT ALL - - COUNT( * ) * + 97
----
97

skipif mysql # not compatible
query I rowsort label-6176
SELECT ALL - - COUNT ( * ) * + 97
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-6177
SELECT ALL COUNT( * ), 62 * 71 AS col2
----
1
4402

skipif mysql # not compatible
query II rowsort label-6177
SELECT ALL COUNT ( * ), 62 * 71 AS col2
----
1
4402

onlyif mysql # aggregate syntax: 
query II rowsort label-6178
SELECT 89 - + - 53 * - COUNT( * ), 52 + - 64 AS col2
----
36
-12

skipif mysql # not compatible
query II rowsort label-6178
SELECT 89 - + - 53 * - COUNT ( * ), 52 + - 64 AS col2
----
36
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6179
SELECT DISTINCT + ( - 9 ) * - COUNT( * ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-6179
SELECT DISTINCT + ( - 9 ) * - COUNT ( * ) AS col1
----
9

query II rowsort
SELECT DISTINCT 7 AS col2, 0 AS col0
----
7
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6181
SELECT ALL + 96 + 87 + + 84 + - 55 + 45 * - 94 AS col1, CAST( 66 AS SIGNED ) * - 38 + - 24 + + + 99 DIV 96 + + + 90
----
-4018
-2441

skipif mysql # not compatible
query II rowsort label-6181
SELECT ALL + 96 + 87 + + 84 + - 55 + 45 * - 94 AS col1, CAST ( 66 AS INTEGER ) * - 38 + - 24 + + + 99 / 96 + + + 90
----
-4018
-2441

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6182
SELECT 42 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6182
SELECT 42 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6183
SELECT 48 DIV - COALESCE ( + 41, + 11, + 32 + 96 + + COALESCE ( - 25, + + SUM( - 23 ), - + 78 * + 49 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6183
SELECT 48 / - COALESCE ( + 41, + 11, + 32 + 96 + + COALESCE ( - 25, + + SUM ( - 23 ), - + 78 * + 49 ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6184
SELECT + 24 AS col2, COUNT( * )
----
24
1

skipif mysql # not compatible
query II rowsort label-6184
SELECT + 24 AS col2, COUNT ( * )
----
24
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6185
SELECT ALL 58 + - + 22 DIV - 8
----
60

skipif mysql # not compatible
query I rowsort label-6185
SELECT ALL 58 + - + 22 / - 8
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6186
SELECT ALL COUNT( * ) + 64
----
65

skipif mysql # not compatible
query I rowsort label-6186
SELECT ALL COUNT ( * ) + 64
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-6187
SELECT DISTINCT + 61 + 32 AS col0, - MAX( DISTINCT - + 26 ) * + 73
----
93
1898

skipif mysql # not compatible
query II rowsort label-6187
SELECT DISTINCT + 61 + 32 AS col0, - MAX ( DISTINCT - + 26 ) * + 73
----
93
1898

onlyif mysql # DIV for integer division: 
query I rowsort label-6188
SELECT DISTINCT + 52 DIV - + 33 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6188
SELECT DISTINCT + 52 / - + 33 AS col2
----
-1

query I rowsort
SELECT DISTINCT 28 + + 85
----
113

onlyif mysql # aggregate syntax: 
query II rowsort label-6190
SELECT DISTINCT - COUNT( * ), + NULLIF ( - ( - + NULLIF ( 67, - - 14 ) ), - 3 * - COUNT( * ) + - 49 ) * - 85 + + + MIN( - + 67 ) AS col2
----
-1
-5762

skipif mysql # not compatible
query II rowsort label-6190
SELECT DISTINCT - COUNT ( * ), + NULLIF ( - ( - + NULLIF ( 67, - - 14 ) ), - 3 * - COUNT ( * ) + - 49 ) * - 85 + + + MIN ( - + 67 ) AS col2
----
-1
-5762

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6191
SELECT ALL + 34 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6191
SELECT ALL + 34 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6192
SELECT ( CAST( - + 33 AS SIGNED ) ) * + - 58 - - 15 + ( - 76 ) - MAX( 80 )
----
1773

skipif mysql # not compatible
query I rowsort label-6192
SELECT ( CAST ( - + 33 AS INTEGER ) ) * + - 58 - - 15 + ( - 76 ) - MAX ( 80 )
----
1773

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT COUNT( * ) * + ( - - 94 ) col0
----
94

skipif mysql # not compatible
query I rowsort label-6193
SELECT COUNT ( * ) * + ( - - 94 ) col0
----
94

query I rowsort
SELECT DISTINCT 92 * + - ( 49 ) col2
----
-4508

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6195
SELECT 78 AS col1, CAST( NULL AS SIGNED ) AS col1
----
78
NULL

skipif mysql # not compatible
query II rowsort label-6195
SELECT 78 AS col1, CAST ( NULL AS INTEGER ) AS col1
----
78
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6196
SELECT - 92 - + 30 * + COUNT( * ) AS col2
----
-122

skipif mysql # not compatible
query I rowsort label-6196
SELECT - 92 - + 30 * + COUNT ( * ) AS col2
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-6197
SELECT 63 + + 30 + + COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-6197
SELECT 63 + + 30 + + COUNT ( * )
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-6198
SELECT ALL 75 - 49 + - - 92 DIV - 99 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-6198
SELECT ALL 75 - 49 + - - 92 / - 99 AS col1
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-6199
SELECT ALL - COUNT( * ) AS col1, 37 AS col2
----
-1
37

skipif mysql # not compatible
query II rowsort label-6199
SELECT ALL - COUNT ( * ) AS col1, 37 AS col2
----
-1
37

query II rowsort
SELECT DISTINCT - + 84 AS col0, + 73 col0
----
-84
73

query I rowsort
SELECT ALL + + 88 * - 76 AS col0
----
-6688

query I rowsort
SELECT 1 * - 85 AS col1
----
-85

query I rowsort
SELECT ALL - 39 * - + 11 AS col1
----
429

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6204
SELECT + 94 * 86 + + - COUNT( * ) + CAST( NULL AS SIGNED ) * + 15 * + NULLIF ( + 68, + 54 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6204
SELECT + 94 * 86 + + - COUNT ( * ) + CAST ( NULL AS INTEGER ) * + 15 * + NULLIF ( + 68, + 54 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6205
SELECT MAX( + + 50 ) * + CASE 81 WHEN + 80 THEN - 68 ELSE - 44 END + - MAX( - 34 )
----
-2166

skipif mysql # not compatible
query I rowsort label-6205
SELECT MAX ( + + 50 ) * + CASE 81 WHEN + 80 THEN - 68 ELSE - 44 END + - MAX ( - 34 )
----
-2166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6206
SELECT + SUM( - + CAST( NULL AS SIGNED ) ) + + - 67 * - - 14 AS col1, - CAST( 99 AS SIGNED ) * + + 48 - + COUNT( * ) AS col0
----
NULL
-4753

skipif mysql # not compatible
query II rowsort label-6206
SELECT + SUM ( - + CAST ( NULL AS INTEGER ) ) + + - 67 * - - 14 AS col1, - CAST ( 99 AS INTEGER ) * + + 48 - + COUNT ( * ) AS col0
----
NULL
-4753

query I rowsort
SELECT DISTINCT + 6 * 22 + - 40
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-6208
SELECT ( - + 68 ) * - 54 + + 5 + 49 + + 37 DIV + 90
----
3726

skipif mysql # not compatible
query I rowsort label-6208
SELECT ( - + 68 ) * - 54 + + 5 + 49 + + 37 / + 90
----
3726

onlyif mysql # DIV for integer division: 
query II rowsort label-6209
SELECT ALL ( - 77 ) AS col1, 91 DIV - 86 AS col0
----
-77
-1

skipif mysql # not compatible
query II rowsort label-6209
SELECT ALL ( - 77 ) AS col1, 91 / - 86 AS col0
----
-77
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6210
SELECT ALL 91 * - - COUNT( * ) * COUNT( * ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-6210
SELECT ALL 91 * - - COUNT ( * ) * COUNT ( * ) AS col0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6211
SELECT ALL - - 33 + + + 28 + + + CAST( + + 80 AS SIGNED ) AS col1
----
141

skipif mysql # not compatible
query I rowsort label-6211
SELECT ALL - - 33 + + + 28 + + + CAST ( + + 80 AS INTEGER ) AS col1
----
141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6212
SELECT - COUNT( * ) + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6212
SELECT - COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6213
SELECT DISTINCT - 87 + + - ( - COUNT( * ) ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-6213
SELECT DISTINCT - 87 + + - ( - COUNT ( * ) ) AS col2
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-6214
SELECT ALL - 37 DIV 67 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6214
SELECT ALL - 37 / 67 AS col2
----
0

query I rowsort
SELECT DISTINCT + 82 + + 41 + + 30
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-6216
SELECT 61 + COUNT( 1 ) + - 15
----
47

skipif mysql # not compatible
query I rowsort label-6216
SELECT 61 + COUNT ( 1 ) + - 15
----
47

query I rowsort
SELECT 42 * - - 75
----
3150

onlyif mysql # DIV for integer division: 
query I rowsort label-6218
SELECT ALL - 37 DIV + + 27
----
-1

skipif mysql # not compatible
query I rowsort label-6218
SELECT ALL - 37 / + + 27
----
-1

query I rowsort
SELECT 48 + + NULLIF ( + 28, - 91 )
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-6220
SELECT 87 + - COUNT( * ) - + 50 AS col0, 68
----
36
68

skipif mysql # not compatible
query II rowsort label-6220
SELECT 87 + - COUNT ( * ) - + 50 AS col0, 68
----
36
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6221
SELECT ALL + 65 + + ( - + 91 ) + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6221
SELECT ALL + 65 + + ( - + 91 ) + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6222
SELECT 73 + 87 AS col2, COUNT( * ) + - CASE 36 WHEN - + 70 * - + COUNT( * ) * + 97 THEN + 73 * + 54 WHEN + COUNT( + 95 ) + + ( - - 56 ) + + 94 / + ( + AVG ( DISTINCT + 15 ) ) THEN - 79 * + 59 / 11 + + + 84 END + COUNT( * ) / - ( + COUNT( * ) )
----
160
NULL

skipif mysql # not compatible
query II rowsort label-6222
SELECT 73 + 87 AS col2, COUNT ( * ) + - CASE 36 WHEN - + 70 * - + COUNT ( * ) * + 97 THEN + 73 * + 54 WHEN + COUNT ( + 95 ) + + ( - - 56 ) + + 94 / + ( + AVG ( DISTINCT + 15 ) ) THEN - 79 * + 59 / 11 + + + 84 END + COUNT ( * ) / - ( + COUNT ( * ) )
----
160
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6223
SELECT 77 * - + CAST( - + 48 AS SIGNED ) * + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6223
SELECT 77 * - + CAST ( - + 48 AS INTEGER ) * + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT ALL + 74 * 56, + 11 + - 58 AS col0
----
4144
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6225
SELECT 83 + + + ( - - COUNT( * ) ) + 7 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-6225
SELECT 83 + + + ( - - COUNT ( * ) ) + 7 AS col1
----
91

query I rowsort
SELECT 93 + - 18 + + + 18 * + 40 - 99 col2
----
696

query I rowsort
SELECT ALL 37 * + 13 * - - 43 - 25
----
20658

query I rowsort
SELECT COALESCE ( - 47, 11 + - - 99 )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6229
SELECT NULLIF ( COUNT( * ), - - 53 )
----
1

skipif mysql # not compatible
query I rowsort label-6229
SELECT NULLIF ( COUNT ( * ), - - 53 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6230
SELECT 2 DIV 5 + + + 89
----
89

skipif mysql # not compatible
query I rowsort label-6230
SELECT 2 / 5 + + + 89
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6231
SELECT + 21 * CAST( NULL AS SIGNED ) col1, + 70 + - 31
----
NULL
39

skipif mysql # not compatible
query II rowsort label-6231
SELECT + 21 * CAST ( NULL AS INTEGER ) col1, + 70 + - 31
----
NULL
39

query I rowsort
SELECT + 39 + + 98 AS col1
----
137

query I rowsort
SELECT DISTINCT + ( + - 59 ) AS col1
----
-59

query I rowsort
SELECT ALL 33 * + 56 + + 9
----
1857

onlyif mysql # DIV for integer division: 
query I rowsort label-6235
SELECT ALL - 35 DIV - - 26
----
-1

skipif mysql # not compatible
query I rowsort label-6235
SELECT ALL - 35 / - - 26
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6236
SELECT DISTINCT + - CAST( - + 29 AS SIGNED ) AS col1, 46 + + 9 AS col1
----
29
55

skipif mysql # not compatible
query II rowsort label-6236
SELECT DISTINCT + - CAST ( - + 29 AS INTEGER ) AS col1, 46 + + 9 AS col1
----
29
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6237
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6237
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 70 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6238
SELECT - - SUM( DISTINCT - 9 ) * + 38 * - + MAX( + 45 ) AS col1, + 5 AS col0
----
15390
5

skipif mysql # not compatible
query II rowsort label-6238
SELECT - - SUM ( DISTINCT - 9 ) * + 38 * - + MAX ( + 45 ) AS col1, + 5 AS col0
----
15390
5

query I rowsort
SELECT ALL + 10 * - 42 AS col1
----
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-6240
SELECT COUNT( - + 32 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6240
SELECT COUNT ( - + 32 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6241
SELECT + CASE ( - 80 ) WHEN + + 55 THEN + 33 END * COUNT( ALL + 78 ) - + 70 + + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-6241
SELECT + CASE ( - 80 ) WHEN + + 55 THEN + 33 END * COUNT ( ALL + 78 ) - + 70 + + 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6242
SELECT ALL - 39 * - 79 * + CASE - SUM( DISTINCT - 51 ) WHEN + - 7 THEN - 3 ELSE NULL END + - ( + - 9 ) + - 88 * - + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-6242
SELECT ALL - 39 * - 79 * + CASE - SUM ( DISTINCT - 51 ) WHEN + - 7 THEN - 3 ELSE NULL END + - ( + - 9 ) + - 88 * - + 66
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6243
SELECT DISTINCT - CASE - 5 WHEN - 89 * + 54 + + 55 THEN + 13 * - - CASE + - 71 WHEN - 78 * + 72 + + 34 THEN NULL ELSE + 59 + 53 / + + 90 + + 74 END + + 94 + + + ( - COUNT( + + 75 ) ) + NULLIF ( 10, + - CASE + COALESCE ( NULLIF ( + MIN( DISTINCT 19 ), 46 + 89 ), 12 * 29, 40 * - 22, ( + 48 ) + 53 * 32, 89 ) WHEN 16 * + 0 + + 9 THEN NULL WHEN 9 + 93 THEN - CAST( NULL AS SIGNED ) * 68 END ) * 76 WHEN - 58 + - CAST( COUNT( * ) + 88 AS SIGNED ) THEN NULL ELSE NULL END + 33 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6243
SELECT DISTINCT - CASE - 5 WHEN - 89 * + 54 + + 55 THEN + 13 * - - CASE + - 71 WHEN - 78 * + 72 + + 34 THEN NULL ELSE + 59 + 53 / + + 90 + + 74 END + + 94 + + + ( - COUNT ( + + 75 ) ) + NULLIF ( 10, + - CASE + COALESCE ( NULLIF ( + MIN ( DISTINCT 19 ), 46 + 89 ), 12 * 29, 40 * - 22, ( + 48 ) + 53 * 32, 89 ) WHEN 16 * + 0 + + 9 THEN NULL WHEN 9 + 93 THEN - CAST ( NULL AS INTEGER ) * 68 END ) * 76 WHEN - 58 + - CAST ( COUNT ( * ) + 88 AS INTEGER ) THEN NULL ELSE NULL END + 33 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6244
SELECT ALL 63 + CAST( + + COUNT( * ) AS SIGNED )
----
64

skipif mysql # not compatible
query I rowsort label-6244
SELECT ALL 63 + CAST ( + + COUNT ( * ) AS INTEGER )
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-6245
SELECT ALL + 58 + 47 AS col2, NULLIF ( - 51, + 58 * + + 85 + + CASE + 22 WHEN - 92 * + 5 + 63 * + + 65 / + 22 * + + 63 + - 43 + 82 THEN - 91 WHEN - + 50 THEN ( COUNT( * ) ) * - + 68 + - 17 * 61 END + + 19 ) AS col1
----
105
-51

skipif mysql # not compatible
query II rowsort label-6245
SELECT ALL + 58 + 47 AS col2, NULLIF ( - 51, + 58 * + + 85 + + CASE + 22 WHEN - 92 * + 5 + 63 * + + 65 / + 22 * + + 63 + - 43 + 82 THEN - 91 WHEN - + 50 THEN ( COUNT ( * ) ) * - + 68 + - 17 * 61 END + + 19 ) AS col1
----
105
-51

query I rowsort
SELECT - ( - + 65 )
----
65

query I rowsort
SELECT + - 89 * + ( - 63 )
----
5607

query II rowsort
SELECT ALL - 84 + - 57 AS col1, - 21 col1
----
-141
-21

query I rowsort
SELECT ALL 89 * - - 99 col1
----
8811

query II rowsort
SELECT + 53 + - 73 * 24 col1, + 60
----
-1699
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6251
SELECT - CASE + 64 WHEN 9 THEN NULL ELSE - 29 * + CAST( NULL AS SIGNED ) * - - COUNT( * ) + - 27 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6251
SELECT - CASE + 64 WHEN 9 THEN NULL ELSE - 29 * + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) + - 27 END
----
NULL

query I rowsort
SELECT + 29 + + 81
----
110

query I rowsort
SELECT - 35 * - 24
----
840

query II rowsort
SELECT - 11 AS col1, ( 20 )
----
-11
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6255
SELECT DISTINCT 58 + ( CAST( + 66 AS SIGNED ) ) AS col0
----
124

skipif mysql # not compatible
query I rowsort label-6255
SELECT DISTINCT 58 + ( CAST ( + 66 AS INTEGER ) ) AS col0
----
124

query I rowsort
SELECT ALL 17 + 55
----
72

query I rowsort
SELECT DISTINCT 88 * - 32
----
-2816

query I rowsort
SELECT + 99 - - + ( + 72 )
----
171

onlyif mysql # aggregate syntax: 
query II rowsort label-6259
SELECT DISTINCT 71, COUNT( * ) * 83 AS col0
----
71
83

skipif mysql # not compatible
query II rowsort label-6259
SELECT DISTINCT 71, COUNT ( * ) * 83 AS col0
----
71
83

query I rowsort
SELECT + ( + - 94 ) + 39 col2
----
-55

query II rowsort
SELECT 2 col0, 49 * 94 AS col2
----
2
4606

onlyif mysql # aggregate syntax: 
query I rowsort label-6262
SELECT DISTINCT CASE + 86 WHEN + 70 - COUNT( * ) THEN NULL ELSE - - 25 END AS col1
----
25

skipif mysql # not compatible
query I rowsort label-6262
SELECT DISTINCT CASE + 86 WHEN + 70 - COUNT ( * ) THEN NULL ELSE - - 25 END AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6263
SELECT - 69 * + 94 * - + NULLIF ( + - COUNT( DISTINCT - 61 ), - 9 + 26 )
----
-6486

skipif mysql # not compatible
query I rowsort label-6263
SELECT - 69 * + 94 * - + NULLIF ( + - COUNT ( DISTINCT - 61 ), - 9 + 26 )
----
-6486

query I rowsort
SELECT ALL 75 / 61 * + + CASE + - 78 WHEN - - ( 72 ) THEN - 70 WHEN 25 + + 75 THEN + - 90 * 28 END
----
NULL

query I rowsort
SELECT - ( 91 ) AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6266
SELECT + ( COUNT( * ) ) + 76 * - 51 AS col2
----
-3875

skipif mysql # not compatible
query I rowsort label-6266
SELECT + ( COUNT ( * ) ) + 76 * - 51 AS col2
----
-3875

onlyif mysql # aggregate syntax: 
query I rowsort label-6267
SELECT ALL MIN( ALL 32 )
----
32

skipif mysql # not compatible
query I rowsort label-6267
SELECT ALL MIN ( ALL 32 )
----
32

query I rowsort
SELECT - ( + 48 ) AS col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT + COUNT( * ) * 45
----
45

skipif mysql # not compatible
query I rowsort label-6269
SELECT + COUNT ( * ) * 45
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6270
SELECT ALL + MIN( DISTINCT - NULLIF ( + + 5, + + 39 ) )
----
-5

skipif mysql # not compatible
query I rowsort label-6270
SELECT ALL + MIN ( DISTINCT - NULLIF ( + + 5, + + 39 ) )
----
-5

query I rowsort
SELECT ALL + 16 * + 73 * 41 * - 11
----
-526768

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6272
SELECT - ( 17 ) DIV 5 * - COUNT( * ) + + 65 + 25, - 41 * + 13 AS col0
----
93
-533

skipif mysql # not compatible
query II rowsort label-6272
SELECT - ( 17 ) / 5 * - COUNT ( * ) + + 65 + 25, - 41 * + 13 AS col0
----
93
-533

onlyif mysql # aggregate syntax: 
query I rowsort label-6273
SELECT DISTINCT - + 79 * COUNT( * ) - 35 AS col0
----
-114

skipif mysql # not compatible
query I rowsort label-6273
SELECT DISTINCT - + 79 * COUNT ( * ) - 35 AS col0
----
-114

query II rowsort
SELECT DISTINCT + - 22, 89 + - + 46 AS col1
----
-22
43

query I rowsort
SELECT - - 95 * + 43 AS col1
----
4085

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6276
SELECT - 12 DIV + 68 + + NULLIF ( - MAX( DISTINCT + 94 ), + 22 * 4 ) - 16 - + CAST( + 78 AS SIGNED ) * 4 * + NULLIF ( 20, - CASE ( - 6 ) WHEN + COUNT( * ) THEN 67 WHEN 81 THEN NULL ELSE - CAST( NULL AS SIGNED ) DIV 13 * + 51 * - SUM( - 45 ) - + 36 END + - SUM( DISTINCT 79 ) * - 43 )
----
-6350

skipif mysql # not compatible
query I rowsort label-6276
SELECT - 12 / + 68 + + NULLIF ( - MAX ( DISTINCT + 94 ), + 22 * 4 ) - 16 - + CAST ( + 78 AS INTEGER ) * 4 * + NULLIF ( 20, - CASE ( - 6 ) WHEN + COUNT ( * ) THEN 67 WHEN 81 THEN NULL ELSE - CAST ( NULL AS INTEGER ) / 13 * + 51 * - SUM ( - 45 ) - + 36 END + - SUM ( DISTINCT 79 ) * - 43 )
----
-6350

query I rowsort
SELECT - 33 * + 47 - 58 + + - 96
----
-1705

query II rowsort
SELECT ALL + - 98, 76 * - NULLIF ( + 96, 93 * 54 ) col2
----
-98
-7296

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6279
SELECT + 45 DIV ( + - COUNT( * ) ) - - + 28 + + 17 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6279
SELECT + 45 / ( + - COUNT ( * ) ) - - + 28 + + 17 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6280
SELECT + - COALESCE ( 58, + 43, - - 35 DIV 7 * - 51 - + 54 + + 22 )
----
-58

skipif mysql # not compatible
query I rowsort label-6280
SELECT + - COALESCE ( 58, + 43, - - 35 / 7 * - 51 - + 54 + + 22 )
----
-58

query I rowsort
SELECT ALL - 85 * - - 37 + + 70
----
-3075

query I rowsort
SELECT - - NULLIF ( - 18, + - 11 * + 10 ) + + + 7
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6283
SELECT ALL - MAX( + - COALESCE ( 68, - 20, + 77 ) ) * + 74 AS col2, - 31 + + 88 + + 23 DIV - NULLIF ( - 95, - 94 ) col0
----
5032
57

skipif mysql # not compatible
query II rowsort label-6283
SELECT ALL - MAX ( + - COALESCE ( 68, - 20, + 77 ) ) * + 74 AS col2, - 31 + + 88 + + 23 / - NULLIF ( - 95, - 94 ) col0
----
5032
57

query III rowsort
SELECT ALL + + 56 * - - 53 * - + 63 * + 28 * ( - 89 ) + + 80 * + 68, + 11 AS col2, + 8 * - 84 AS col1
----
465969568
11
-672

query I rowsort
SELECT - 70 + - + 49
----
-119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6286
SELECT + 39 * CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) * + - 40 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6286
SELECT + 39 * CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) * + - 40 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6287
SELECT ALL - 96 * CAST( NULL AS SIGNED ) * + - AVG ( DISTINCT - - 50 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6287
SELECT ALL - 96 * CAST ( NULL AS INTEGER ) * + - AVG ( DISTINCT - - 50 )
----
NULL

query I rowsort
SELECT - 83 + - 33 AS col2
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-6289
SELECT COALESCE ( + 97, 83, - COUNT( * ) * + 60, - 98 ) col1
----
97

skipif mysql # not compatible
query I rowsort label-6289
SELECT COALESCE ( + 97, 83, - COUNT ( * ) * + 60, - 98 ) col1
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-6290
SELECT - MIN( + + 90 ), + 90 + - 8 AS col0
----
-90
82

skipif mysql # not compatible
query II rowsort label-6290
SELECT - MIN ( + + 90 ), + 90 + - 8 AS col0
----
-90
82

query I rowsort
SELECT + NULLIF ( - - 0, + 48 ) + - ( + COALESCE ( 42, + 52 ) )
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6292
SELECT - COUNT( * ) * + - 90 AS col2, 79 DIV + 71 DIV + + COUNT( * ) - 70
----
90
-69

skipif mysql # not compatible
query II rowsort label-6292
SELECT - COUNT ( * ) * + - 90 AS col2, 79 / + 71 / + + COUNT ( * ) - 70
----
90
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6293
SELECT ALL 49 * + COUNT( * ) * - 85 - - 40 + - - CAST( NULL AS SIGNED ) / + 17 * + - CAST( - + 14 AS SIGNED ) * - 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6293
SELECT ALL 49 * + COUNT ( * ) * - 85 - - 40 + - - CAST ( NULL AS INTEGER ) / + 17 * + - CAST ( - + 14 AS INTEGER ) * - 27 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6294
SELECT DISTINCT COUNT( * ) - - 6 + - + 54 AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-6294
SELECT DISTINCT COUNT ( * ) - - 6 + - + 54 AS col0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6295
SELECT DISTINCT 5 * + CAST( NULL AS SIGNED ) * 92
----
NULL

skipif mysql # not compatible
query I rowsort label-6295
SELECT DISTINCT 5 * + CAST ( NULL AS INTEGER ) * 92
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6296
SELECT - CAST( + 53 AS SIGNED ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-6296
SELECT - CAST ( + 53 AS INTEGER ) AS col2
----
-53

query I rowsort
SELECT 83 * + ( + - 7 )
----
-581

onlyif mysql # aggregate syntax: 
query I rowsort label-6298
SELECT DISTINCT 69 * COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-6298
SELECT DISTINCT 69 * COUNT ( * )
----
69

query I rowsort
SELECT ALL 15 * + 69 AS col0
----
1035

onlyif mysql # aggregate syntax: 
query I rowsort label-6300
SELECT COUNT( * ) + + 81 + - CASE 96 WHEN + 82 THEN - + 34 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6300
SELECT COUNT ( * ) + + 81 + - CASE 96 WHEN + 82 THEN - + 34 END
----
NULL

query I rowsort
SELECT DISTINCT 33 * + 72 AS col0
----
2376

onlyif mysql # aggregate syntax: 
query I rowsort label-6302
SELECT 48 * MIN( 9 )
----
432

skipif mysql # not compatible
query I rowsort label-6302
SELECT 48 * MIN ( 9 )
----
432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6303
SELECT NULLIF ( - CAST( - - 2 AS SIGNED ), COUNT( * ) )
----
-2

skipif mysql # not compatible
query I rowsort label-6303
SELECT NULLIF ( - CAST ( - - 2 AS INTEGER ), COUNT ( * ) )
----
-2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6304
SELECT COALESCE ( ( 76 ), - + 74, + ( 42 ) - - + 49 ) col2, 46 * - NULLIF ( + + NULLIF ( + 56, + 59 ), - 40 ) DIV CAST( - 8 AS SIGNED ) AS col0
----
76
322

skipif mysql # not compatible
query II rowsort label-6304
SELECT COALESCE ( ( 76 ), - + 74, + ( 42 ) - - + 49 ) col2, 46 * - NULLIF ( + + NULLIF ( + 56, + 59 ), - 40 ) / CAST ( - 8 AS INTEGER ) AS col0
----
76
322

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6305
SELECT - 85 DIV - 32 + COUNT( ALL - 78 ) - + + 72 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-6305
SELECT - 85 / - 32 + COUNT ( ALL - 78 ) - + + 72 AS col2
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-6306
SELECT 40 DIV + 67 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6306
SELECT 40 / + 67 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6307
SELECT ALL - + 26 * CASE 50 WHEN - + CAST( 54 AS SIGNED ) - + COALESCE ( 45, + 57 ) + 71 + - - 99 * - 57 + - + AVG ( 76 ) THEN NULL WHEN - 27 THEN - + 66 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6307
SELECT ALL - + 26 * CASE 50 WHEN - + CAST ( 54 AS INTEGER ) - + COALESCE ( 45, + 57 ) + 71 + - - 99 * - 57 + - + AVG ( 76 ) THEN NULL WHEN - 27 THEN - + 66 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6308
SELECT 9 * 70 * - + CAST( 75 AS SIGNED ) AS col0
----
-47250

skipif mysql # not compatible
query I rowsort label-6308
SELECT 9 * 70 * - + CAST ( 75 AS INTEGER ) AS col0
----
-47250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6309
SELECT ALL - COUNT( * ) + - 77 AS col0, - CAST( NULL AS SIGNED ) AS col1
----
-78
NULL

skipif mysql # not compatible
query II rowsort label-6309
SELECT ALL - COUNT ( * ) + - 77 AS col0, - CAST ( NULL AS INTEGER ) AS col1
----
-78
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6310
SELECT DISTINCT - ( - + COUNT( - 91 ) ) * - - 15
----
15

skipif mysql # not compatible
query I rowsort label-6310
SELECT DISTINCT - ( - + COUNT ( - 91 ) ) * - - 15
----
15

query I rowsort
SELECT DISTINCT - COALESCE ( + + 46, + - 6 * - 5, + 0 )
----
-46

query I rowsort
SELECT 89 * + 89 AS col2
----
7921

query I rowsort
SELECT + 37 * - 53 + + 22 col1
----
-1939

query I rowsort
SELECT ALL + - 22 - 29 + - - 54
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6315
SELECT - SUM( DISTINCT - - 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-6315
SELECT - SUM ( DISTINCT - - 5 )
----
-5

query I rowsort
SELECT 67 * 44
----
2948

onlyif mysql # aggregate syntax: 
query I rowsort label-6317
SELECT ALL + 6 * 42 * + COUNT( * ) AS col1
----
252

skipif mysql # not compatible
query I rowsort label-6317
SELECT ALL + 6 * 42 * + COUNT ( * ) AS col1
----
252

onlyif mysql # aggregate syntax: 
query II rowsort label-6318
SELECT + 6 AS col2, + MAX( DISTINCT + - 97 ) AS col1
----
6
-97

skipif mysql # not compatible
query II rowsort label-6318
SELECT + 6 AS col2, + MAX ( DISTINCT + - 97 ) AS col1
----
6
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6319
SELECT ALL - 79 - CAST( - 66 AS SIGNED ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-6319
SELECT ALL - 79 - CAST ( - 66 AS INTEGER ) AS col1
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6320
SELECT ALL COUNT( ALL + NULLIF ( CAST( - - 94 AS SIGNED ), + 13 * + 47 / + 43 ) ) * - ( 13 ) + 82
----
69

skipif mysql # not compatible
query I rowsort label-6320
SELECT ALL COUNT ( ALL + NULLIF ( CAST ( - - 94 AS INTEGER ), + 13 * + 47 / + 43 ) ) * - ( 13 ) + 82
----
69

query I rowsort
SELECT ALL + 15 - ( 31 ) AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6322
SELECT ALL SUM( + ( - + 51 ) ) * 45
----
-2295

skipif mysql # not compatible
query I rowsort label-6322
SELECT ALL SUM ( + ( - + 51 ) ) * 45
----
-2295

query I rowsort
SELECT 93 * - 9
----
-837

query I rowsort
SELECT 67 + 66 col0
----
133

query I rowsort
SELECT ALL + 88 * + 37 AS col1
----
3256

query I rowsort
SELECT 83 * - - 73 AS col1
----
6059

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6327
SELECT COALESCE ( - + 45, + + CAST( 81 AS SIGNED ) ) + 94 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-6327
SELECT COALESCE ( - + 45, + + CAST ( 81 AS INTEGER ) ) + 94 AS col1
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6328
SELECT 92 * 76 * - 62 AS col1, 54 * - CASE + + COUNT( * ) WHEN 67 THEN NULL WHEN - + CASE - + CAST( + + COALESCE ( + - MIN( + 85 ), SUM( ALL 2 ), - NULLIF ( - COUNT( * ), + + 23 + - + 56 + - 34 / - 29 * - - 14 * CAST( + 38 AS SIGNED ) * + 51 ) + + COALESCE ( 42, + 48 * CAST( - COUNT( * ) AS SIGNED ), - 80 * + 74 ) ) AS SIGNED ) WHEN 37 / 22 THEN - ( + ( - 49 ) ) END + 51 THEN + NULLIF ( 73, - ( + 70 ) ) * + 25 + + 13 END
----
-433504
NULL

skipif mysql # not compatible
query II rowsort label-6328
SELECT 92 * 76 * - 62 AS col1, 54 * - CASE + + COUNT ( * ) WHEN 67 THEN NULL WHEN - + CASE - + CAST ( + + COALESCE ( + - MIN ( + 85 ), SUM ( ALL 2 ), - NULLIF ( - COUNT ( * ), + + 23 + - + 56 + - 34 / - 29 * - - 14 * CAST ( + 38 AS INTEGER ) * + 51 ) + + COALESCE ( 42, + 48 * CAST ( - COUNT ( * ) AS INTEGER ), - 80 * + 74 ) ) AS INTEGER ) WHEN 37 / 22 THEN - ( + ( - 49 ) ) END + 51 THEN + NULLIF ( 73, - ( + 70 ) ) * + 25 + + 13 END
----
-433504
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6329
SELECT ALL + SUM( ALL 82 ) * - 85 DIV - MAX( 17 ) AS col0
----
410

skipif mysql # not compatible
query I rowsort label-6329
SELECT ALL + SUM ( ALL 82 ) * - 85 / - MAX ( 17 ) AS col0
----
410

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6330
SELECT 11 + - - 23 * + + 53 DIV - COUNT( * )
----
-1208

skipif mysql # not compatible
query I rowsort label-6330
SELECT 11 + - - 23 * + + 53 / - COUNT ( * )
----
-1208

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6331
SELECT 18 * 86 DIV COUNT( * ) AS col1
----
1548

skipif mysql # not compatible
query I rowsort label-6331
SELECT 18 * 86 / COUNT ( * ) AS col1
----
1548

onlyif mysql # aggregate syntax: 
query I rowsort label-6332
SELECT - 13 + + 75 * + CASE 85 WHEN - 96 THEN NULL ELSE + 76 + - COUNT( * ) END * - 14 + 18
----
-78745

skipif mysql # not compatible
query I rowsort label-6332
SELECT - 13 + + 75 * + CASE 85 WHEN - 96 THEN NULL ELSE + 76 + - COUNT ( * ) END * - 14 + 18
----
-78745

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6333
SELECT 63 * ( + - CAST( + + 27 AS SIGNED ) ) + - 12 + + 36 + COUNT( * ) + + 81 + - ( + SUM( + 53 ) ) * 40
----
-3715

skipif mysql # not compatible
query I rowsort label-6333
SELECT 63 * ( + - CAST ( + + 27 AS INTEGER ) ) + - 12 + + 36 + COUNT ( * ) + + 81 + - ( + SUM ( + 53 ) ) * 40
----
-3715

query I rowsort
SELECT 6 * + - COALESCE ( + - ( + ( 72 ) ), NULLIF ( + 12, + 40 * - - 96 ) )
----
432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6335
SELECT DISTINCT - MAX( ALL - + 16 ) + + - CAST( NULL AS SIGNED ) * + - 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6335
SELECT DISTINCT - MAX ( ALL - + 16 ) + + - CAST ( NULL AS INTEGER ) * + - 24 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6336
SELECT - - ( - COUNT( - 29 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6336
SELECT - - ( - COUNT ( - 29 ) )
----
-1

query I rowsort
SELECT ALL - 23 * - + 62 * + ( - + ( + 94 ) ) * - 26 + + 43
----
3485187

onlyif mysql # aggregate syntax: 
query I rowsort label-6338
SELECT + + COALESCE ( + 67, + 81 + - + COUNT( * ) )
----
67

skipif mysql # not compatible
query I rowsort label-6338
SELECT + + COALESCE ( + 67, + 81 + - + COUNT ( * ) )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6339
SELECT DISTINCT 11 * 69 + - COUNT( * ) + - + 7 + - 61 * - 38 AS col1
----
3069

skipif mysql # not compatible
query I rowsort label-6339
SELECT DISTINCT 11 * 69 + - COUNT ( * ) + - + 7 + - 61 * - 38 AS col1
----
3069

onlyif mysql # DIV for integer division: 
query I rowsort label-6340
SELECT - COALESCE ( 1, - 62, + + 91 ) DIV - 40 * 45 + + 15 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-6340
SELECT - COALESCE ( 1, - 62, + + 91 ) / - 40 * 45 + + 15 AS col0
----
15

query I rowsort
SELECT ALL 46 * + 64
----
2944

query I rowsort
SELECT DISTINCT - 26 * + 75 + 37 + + - ( 30 ) AS col2
----
-1943

onlyif mysql # aggregate syntax: 
query I rowsort label-6343
SELECT ALL - - ( - SUM( ALL 30 ) )
----
-30

skipif mysql # not compatible
query I rowsort label-6343
SELECT ALL - - ( - SUM ( ALL 30 ) )
----
-30

query I rowsort
SELECT ALL - - 69 AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6345
SELECT 11 + + 17 - MAX( + 97 ) + - 37 * + COUNT( * ) * - 85
----
3076

skipif mysql # not compatible
query I rowsort label-6345
SELECT 11 + + 17 - MAX ( + 97 ) + - 37 * + COUNT ( * ) * - 85
----
3076

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6346
SELECT 60 DIV - 74 + 17 - - COUNT( * ) * + - 85 - 73 AS col2
----
-141

skipif mysql # not compatible
query I rowsort label-6346
SELECT 60 / - 74 + 17 - - COUNT ( * ) * + - 85 - 73 AS col2
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-6347
SELECT - COUNT( * ) * 98 AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-6347
SELECT - COUNT ( * ) * 98 AS col0
----
-98

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6348
SELECT - + CAST( - COALESCE ( - 90, 95 * 98 - CAST( NULL AS DECIMAL ) + + 29 / 60 ) AS SIGNED ) * 54 + - 41 col0
----
-4901

skipif mysql # not compatible
query I rowsort label-6348
SELECT - + CAST ( - COALESCE ( - 90, 95 * 98 - CAST ( NULL AS REAL ) + + 29 / 60 ) AS INTEGER ) * 54 + - 41 col0
----
-4901

query I rowsort
SELECT + ( - 71 ) AS col0
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6350
SELECT ALL + NULLIF ( + COUNT( * ), - 91 ) DIV - - ( + + 22 )
----
0

skipif mysql # not compatible
query I rowsort label-6350
SELECT ALL + NULLIF ( + COUNT ( * ), - 91 ) / - - ( + + 22 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6351
SELECT DISTINCT + 77 - + 25 + - + COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-6351
SELECT DISTINCT + 77 - + 25 + - + COUNT ( * )
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6352
SELECT ALL - COUNT( * ) * COUNT( * ), + COALESCE ( + MAX( ( ( + 44 ) ) ), + 92, 64 DIV + - 51 * - + 4 ) AS col1
----
-1
44

skipif mysql # not compatible
query II rowsort label-6352
SELECT ALL - COUNT ( * ) * COUNT ( * ), + COALESCE ( + MAX ( ( ( + 44 ) ) ), + 92, 64 / + - 51 * - + 4 ) AS col1
----
-1
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6353
SELECT ALL 6 - + + ( + + COUNT( * ) ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-6353
SELECT ALL 6 - + + ( + + COUNT ( * ) ) AS col1
----
5

query II rowsort
SELECT ( - 87 ) * 49 + 24, - 41 col2
----
-4239
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-6355
SELECT ALL - COALESCE ( - 59, + - 9 + 49, + 57 DIV - 79 ) - - 33
----
92

skipif mysql # not compatible
query I rowsort label-6355
SELECT ALL - COALESCE ( - 59, + - 9 + 49, + 57 / - 79 ) - - 33
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT 96 + NULLIF ( - + 6, 7 / + MIN( DISTINCT 77 ) ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-6356
SELECT 96 + NULLIF ( - + 6, 7 / + MIN ( DISTINCT 77 ) ) AS col1
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6357
SELECT ALL 58 * NULLIF ( - - 24, - + NULLIF ( - - 45, - CASE - + 36 WHEN + CAST( - + 27 AS SIGNED ) / 93 * + + 17 THEN + 3 + + - 28 ELSE NULL END + - 99 * - - 88 ) ) * + COUNT( * ) + 3 * - 62
----
1206

skipif mysql # not compatible
query I rowsort label-6357
SELECT ALL 58 * NULLIF ( - - 24, - + NULLIF ( - - 45, - CASE - + 36 WHEN + CAST ( - + 27 AS INTEGER ) / 93 * + + 17 THEN + 3 + + - 28 ELSE NULL END + - 99 * - - 88 ) ) * + COUNT ( * ) + 3 * - 62
----
1206

query II rowsort
SELECT 83 AS col2, 19 AS col1
----
83
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6359
SELECT - 70 * + COUNT( * )
----
-70

skipif mysql # not compatible
query I rowsort label-6359
SELECT - 70 * + COUNT ( * )
----
-70

query I rowsort
SELECT + ( - 88 ) * - 3 AS col2
----
264

query I rowsort
SELECT - 22 + - 8
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6362
SELECT ALL MIN( 37 )
----
37

skipif mysql # not compatible
query I rowsort label-6362
SELECT ALL MIN ( 37 )
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6363
SELECT - ( - 61 ) / + COUNT( * ) * COUNT( * ) * + 29 + - CAST( NULL AS SIGNED ), - COUNT( * ) AS col2
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-6363
SELECT - ( - 61 ) / + COUNT ( * ) * COUNT ( * ) * + 29 + - CAST ( NULL AS INTEGER ), - COUNT ( * ) AS col2
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6364
SELECT - 40 * 63 * SUM( DISTINCT 86 ) AS col2
----
-216720

skipif mysql # not compatible
query I rowsort label-6364
SELECT - 40 * 63 * SUM ( DISTINCT 86 ) AS col2
----
-216720

onlyif mysql # aggregate syntax: 
query I rowsort label-6365
SELECT DISTINCT SUM( - 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-6365
SELECT DISTINCT SUM ( - 62 )
----
-62

query I rowsort
SELECT ALL + ( - 72 ) + - 22
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-6367
SELECT DISTINCT COALESCE ( - + 0, 41 * + 92 DIV 79 DIV + 43 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-6367
SELECT DISTINCT COALESCE ( - + 0, 41 * + 92 / 79 / + 43 ) col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6368
SELECT DISTINCT COUNT( * ) AS col0, + 39 + MIN( 36 ) AS col2
----
1
75

skipif mysql # not compatible
query II rowsort label-6368
SELECT DISTINCT COUNT ( * ) AS col0, + 39 + MIN ( 36 ) AS col2
----
1
75

query II rowsort
SELECT - 36, + COALESCE ( 72, - 68, - 47 ) * - + 67 AS col1
----
-36
-4824

onlyif mysql # aggregate syntax: 
query I rowsort label-6370
SELECT ALL ( + - COUNT( + + 8 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6370
SELECT ALL ( + - COUNT ( + + 8 ) ) AS col1
----
-1

query I rowsort
SELECT - 51 * 96
----
-4896

query II rowsort
SELECT - 93, + NULLIF ( 68, + - 90 ) AS col0
----
-93
68

query I rowsort
SELECT - 68 + - - 54
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6374
SELECT ALL - 27 * - 84 * + 71 DIV COUNT( * )
----
161028

skipif mysql # not compatible
query I rowsort label-6374
SELECT ALL - 27 * - 84 * + 71 / COUNT ( * )
----
161028

query II rowsort
SELECT - 19 AS col0, 13 AS col0
----
-19
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6376
SELECT + 90 * - COUNT( - 9 ) * - 51 * 52
----
238680

skipif mysql # not compatible
query I rowsort label-6376
SELECT + 90 * - COUNT ( - 9 ) * - 51 * 52
----
238680

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6377
SELECT ALL 58 AS col1, + CAST( NULL AS SIGNED )
----
58
NULL

skipif mysql # not compatible
query II rowsort label-6377
SELECT ALL 58 AS col1, + CAST ( NULL AS INTEGER )
----
58
NULL

query I rowsort
SELECT - 43 + - 38
----
-81

query I rowsort
SELECT DISTINCT - 24 + 23 AS col0
----
-1

query I rowsort
SELECT - + 55 + - 25
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6381
SELECT COALESCE ( - + SUM( DISTINCT 85 ), + COUNT( * ), + + 87 )
----
-85

skipif mysql # not compatible
query I rowsort label-6381
SELECT COALESCE ( - + SUM ( DISTINCT 85 ), + COUNT ( * ), + + 87 )
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-6382
SELECT DISTINCT 98 AS col2, COUNT( * )
----
98
1

skipif mysql # not compatible
query II rowsort label-6382
SELECT DISTINCT 98 AS col2, COUNT ( * )
----
98
1

query I rowsort
SELECT ALL - 69 + + 45
----
-24

query I rowsort
SELECT ALL - 11 * - ( - - 80 )
----
880

onlyif mysql # aggregate syntax: 
query I rowsort label-6385
SELECT - + COUNT( - 67 )
----
-1

skipif mysql # not compatible
query I rowsort label-6385
SELECT - + COUNT ( - 67 )
----
-1

query II rowsort
SELECT - + 95 * - 3 AS col2, 86
----
285
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6387
SELECT + CAST( NULL AS SIGNED ) * 82 * - 42 + ( - 73 ) + 37 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6387
SELECT + CAST ( NULL AS INTEGER ) * 82 * - 42 + ( - 73 ) + 37 * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6388
SELECT ALL 30 * COUNT( * ) - COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-6388
SELECT ALL 30 * COUNT ( * ) - COUNT ( * )
----
29

query I rowsort
SELECT + 19 + - - 21 AS col0
----
40

query I rowsort
SELECT ALL + - 3 col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6391
SELECT ALL + - COALESCE ( + + 55, + - MIN( ALL + 41 ) ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-6391
SELECT ALL + - COALESCE ( + + 55, + - MIN ( ALL + 41 ) ) AS col0
----
-55

query I rowsort
SELECT DISTINCT 24 * - 1 * + COALESCE ( - - 41, - - 90 ) * + 42
----
-41328

query I rowsort
SELECT + 53 * 88 AS col1
----
4664

onlyif mysql # aggregate syntax: 
query I rowsort label-6394
SELECT + ( - + NULLIF ( 69, COUNT( * ) * - + COUNT( * ) + 85 * 15 + 1 + + + 81 ) ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-6394
SELECT + ( - + NULLIF ( 69, COUNT ( * ) * - + COUNT ( * ) + 85 * 15 + 1 + + + 81 ) ) AS col1
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6395
SELECT + CAST( - + 10 AS SIGNED )
----
-10

skipif mysql # not compatible
query I rowsort label-6395
SELECT + CAST ( - + 10 AS INTEGER )
----
-10

query I rowsort
SELECT + 17 * + 10 * - 9 * + 88 AS col0
----
-134640

onlyif mysql # aggregate syntax: 
query I rowsort label-6397
SELECT - 23 * - - ( COUNT( - 67 ) )
----
-23

skipif mysql # not compatible
query I rowsort label-6397
SELECT - 23 * - - ( COUNT ( - 67 ) )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6398
SELECT CASE + 19 WHEN 1 * - ( 15 ) + - MAX( ALL - 98 ) + + 26 * - + 9 THEN - + 49 WHEN 3 + - NULLIF ( - + 61, 75 ) / - - 34 THEN ( + 48 ) WHEN - 32 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6398
SELECT CASE + 19 WHEN 1 * - ( 15 ) + - MAX ( ALL - 98 ) + + 26 * - + 9 THEN - + 49 WHEN 3 + - NULLIF ( - + 61, 75 ) / - - 34 THEN ( + 48 ) WHEN - 32 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT + ( + 6 ) * + + 78 AS col1
----
468

onlyif mysql # aggregate syntax: 
query I rowsort label-6400
SELECT ALL - 7 * + 21 * + ( + COUNT( * ) ) + + 11
----
-136

skipif mysql # not compatible
query I rowsort label-6400
SELECT ALL - 7 * + 21 * + ( + COUNT ( * ) ) + + 11
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-6401
SELECT - 42 * 89 * - - 23 - CASE 78 WHEN 86 THEN - 23 + + COUNT( * ) * - 96 WHEN 75 THEN NULL WHEN 10 THEN NULL ELSE NULL END * + ( - - 93 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6401
SELECT - 42 * 89 * - - 23 - CASE 78 WHEN 86 THEN - 23 + + COUNT ( * ) * - 96 WHEN 75 THEN NULL WHEN 10 THEN NULL ELSE NULL END * + ( - - 93 ) AS col2
----
NULL

query I rowsort
SELECT ALL + 57 * - 3 * 15 + + 24
----
-2541

onlyif mysql # aggregate syntax: 
query I rowsort label-6403
SELECT DISTINCT - 74 * + + ( + COUNT( * ) ) + - - 55 * - 3 * + COUNT( * )
----
-239

skipif mysql # not compatible
query I rowsort label-6403
SELECT DISTINCT - 74 * + + ( + COUNT ( * ) ) + - - 55 * - 3 * + COUNT ( * )
----
-239

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6404
SELECT DISTINCT - COALESCE ( + 70, - 90 + - 18 * + + CASE - + COUNT( * ) WHEN 87 THEN NULL ELSE 61 * 16 END, 56, - 38 / 95, 84 - - + 40 + 61 ) * - + 54 + + - 36 * + 26 + - 62 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6404
SELECT DISTINCT - COALESCE ( + 70, - 90 + - 18 * + + CASE - + COUNT ( * ) WHEN 87 THEN NULL ELSE 61 * 16 END, 56, - 38 / 95, 84 - - + 40 + 61 ) * - + 54 + + - 36 * + 26 + - 62 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6405
SELECT ALL ( - SUM( 69 ) ) col2
----
-69

skipif mysql # not compatible
query I rowsort label-6405
SELECT ALL ( - SUM ( 69 ) ) col2
----
-69

query I rowsort
SELECT ALL - 80 * 23 + 90 * - + 6 AS col2
----
-2380

onlyif mysql # aggregate syntax: 
query I rowsort label-6407
SELECT 90 * + - 7 * + 77 + - 92 + + 88 * + 61 * - CASE - 54 WHEN + - 67 THEN NULL WHEN + COUNT( * ) + + 96 * + COUNT( 45 ) * + 57 THEN + 78 * COUNT( * ) + + 61 + + + 52 + - - 24 END + + 94 + + + 47 - - ( 1 ) - - + ( + - 55 ) * - COUNT( * ) / - - 67 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6407
SELECT 90 * + - 7 * + 77 + - 92 + + 88 * + 61 * - CASE - 54 WHEN + - 67 THEN NULL WHEN + COUNT ( * ) + + 96 * + COUNT ( 45 ) * + 57 THEN + 78 * COUNT ( * ) + + 61 + + + 52 + - - 24 END + + 94 + + + 47 - - ( 1 ) - - + ( + - 55 ) * - COUNT ( * ) / - - 67 + COUNT ( * )
----
NULL

query I rowsort
SELECT + 27 + - 76
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6409
SELECT - COALESCE ( + 69, + + COALESCE ( + + 57, - 42 ) ) * - MIN( ALL - 90 ) * - 52
----
322920

skipif mysql # not compatible
query I rowsort label-6409
SELECT - COALESCE ( + 69, + + COALESCE ( + + 57, - 42 ) ) * - MIN ( ALL - 90 ) * - 52
----
322920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6410
SELECT ALL COALESCE ( + CAST( NULL AS SIGNED ), + 57, - - 72 )
----
57

skipif mysql # not compatible
query I rowsort label-6410
SELECT ALL COALESCE ( + CAST ( NULL AS INTEGER ), + 57, - - 72 )
----
57

query I rowsort
SELECT ALL - + 20 + 47 + - - 47 AS col1
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6412
SELECT - COUNT( * ) * 88 DIV 1 AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-6412
SELECT - COUNT ( * ) * 88 / 1 AS col2
----
-88

query I rowsort
SELECT - ( 75 ) AS col0
----
-75

query II rowsort
SELECT - 45 + + 83 AS col1, + 49 AS col2
----
38
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6415
SELECT - - COALESCE ( - 79, - SUM( DISTINCT + 24 ) + + 50 )
----
-79

skipif mysql # not compatible
query I rowsort label-6415
SELECT - - COALESCE ( - 79, - SUM ( DISTINCT + 24 ) + + 50 )
----
-79

query I rowsort
SELECT ALL + ( ( 91 ) )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6417
SELECT ALL - - COUNT( * ) * 7
----
7

skipif mysql # not compatible
query I rowsort label-6417
SELECT ALL - - COUNT ( * ) * 7
----
7

query I rowsort
SELECT - - 65 + - 14 + 50 AS col2
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6419
SELECT - 34 * - - 55 AS col1, - CAST( 48 AS SIGNED ) + 96 + COUNT( * ) * COUNT( * ) AS col0
----
-1870
49

skipif mysql # not compatible
query II rowsort label-6419
SELECT - 34 * - - 55 AS col1, - CAST ( 48 AS INTEGER ) + 96 + COUNT ( * ) * COUNT ( * ) AS col0
----
-1870
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6420
SELECT - COUNT( 89 )
----
-1

skipif mysql # not compatible
query I rowsort label-6420
SELECT - COUNT ( 89 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6421
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + CAST( NULL AS SIGNED ) + - 79 - - 50 * + CAST( NULL AS DECIMAL ) + - - 44 - - - COUNT( * ) / - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-6421
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + CAST ( NULL AS INTEGER ) + - 79 - - 50 * + CAST ( NULL AS REAL ) + - - 44 - - - COUNT ( * ) / - 62
----
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( 33, - 31 )
----
-33

query I rowsort
SELECT 12 - ( - 23 )
----
35

query I rowsort
SELECT 86 + - 23
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6425
SELECT 95 * - 9 * + - ( ( + + NULLIF ( + - 27, + + 62 * - - MAX( - COALESCE ( ( + 66 ), 32 + - - ( - ( + CAST( NULL AS SIGNED ) ) ), + 33 ) ) + + 4 * - - CASE + + MAX( ( + 55 ) ) WHEN 35 THEN - 47 / - ( + - 41 ) + - CASE - 78 WHEN - - 16 * COALESCE ( 25, COALESCE ( - 14, + 11 + MIN( + ( 38 ) ), 87 ) / - 37 + COUNT( * ) ) - + COUNT( * ) THEN COUNT( * ) WHEN COUNT( * ) THEN NULL END WHEN - 22 + - COUNT( * ) THEN NULL END ) ) ) * + 35
----
-807975

skipif mysql # not compatible
query I rowsort label-6425
SELECT 95 * - 9 * + - ( ( + + NULLIF ( + - 27, + + 62 * - - MAX ( - COALESCE ( ( + 66 ), 32 + - - ( - ( + CAST ( NULL AS INTEGER ) ) ), + 33 ) ) + + 4 * - - CASE + + MAX ( ( + 55 ) ) WHEN 35 THEN - 47 / - ( + - 41 ) + - CASE - 78 WHEN - - 16 * COALESCE ( 25, COALESCE ( - 14, + 11 + MIN ( + ( 38 ) ), 87 ) / - 37 + COUNT ( * ) ) - + COUNT ( * ) THEN COUNT ( * ) WHEN COUNT ( * ) THEN NULL END WHEN - 22 + - COUNT ( * ) THEN NULL END ) ) ) * + 35
----
-807975

query I rowsort
SELECT ALL 5 + + - CASE - 41 WHEN - 64 THEN - - 38 END AS col2
----
NULL

query I rowsort
SELECT 2 + + + 67 AS col1
----
69

query I rowsort
SELECT ALL - 84 * + - 68
----
5712

onlyif mysql # aggregate syntax: 
query I rowsort label-6429
SELECT ALL + COUNT( * ) + + - 48
----
-47

skipif mysql # not compatible
query I rowsort label-6429
SELECT ALL + COUNT ( * ) + + - 48
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6430
SELECT ALL 57 + + + COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-6430
SELECT ALL 57 + + + COUNT ( * )
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6431
SELECT 94 * + COALESCE ( + - 69, - 54 * - 69 - + - 41 + - 14 DIV - 52 * - CAST( NULL AS SIGNED ) ) * + 33 + - - ( - + 34 ) + 54 + - - ( - COUNT( * ) ) DIV + + 49 * + + 61
----
-214018

skipif mysql # not compatible
query I rowsort label-6431
SELECT 94 * + COALESCE ( + - 69, - 54 * - 69 - + - 41 + - 14 / - 52 * - CAST ( NULL AS INTEGER ) ) * + 33 + - - ( - + 34 ) + 54 + - - ( - COUNT ( * ) ) / + + 49 * + + 61
----
-214018

query II rowsort
SELECT + 26, - 74 AS col2
----
26
-74

query I rowsort
SELECT ( - 76 ) + + - 44 AS col0
----
-120

query I rowsort
SELECT DISTINCT 4 + - + ( 2 )
----
2

query II rowsort
SELECT 51 AS col1, - 38
----
51
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-6436
SELECT COUNT( * ) + + 30 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-6436
SELECT COUNT ( * ) + + 30 AS col1
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6437
SELECT ALL COUNT( * ) DIV + 1 col2
----
1

skipif mysql # not compatible
query I rowsort label-6437
SELECT ALL COUNT ( * ) / + 1 col2
----
1

query I rowsort
SELECT ALL 91 + 44 * - + 37
----
-1537

onlyif mysql # aggregate syntax: 
query I rowsort label-6439
SELECT COUNT( * ) * + 12 col0
----
12

skipif mysql # not compatible
query I rowsort label-6439
SELECT COUNT ( * ) * + 12 col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6440
SELECT DISTINCT + COUNT( ALL - 7 )
----
1

skipif mysql # not compatible
query I rowsort label-6440
SELECT DISTINCT + COUNT ( ALL - 7 )
----
1

query I rowsort
SELECT ALL - 44 * - 18 AS col0
----
792

query II rowsort
SELECT + 15 AS col1, 82 * - 97
----
15
-7954

query II rowsort
SELECT - - 99, 14 * + 91 AS col1
----
99
1274

query I rowsort
SELECT ALL - 75 - + + 13 * 63 * - + 79 AS col0
----
64626

onlyif mysql # aggregate syntax: 
query II rowsort label-6445
SELECT - - 30 AS col1, - COUNT( * )
----
30
-1

skipif mysql # not compatible
query II rowsort label-6445
SELECT - - 30 AS col1, - COUNT ( * )
----
30
-1

query I rowsort
SELECT - 91 + + 26
----
-65

query I rowsort
SELECT - 65 * + 58
----
-3770

onlyif mysql # aggregate syntax: 
query I rowsort label-6448
SELECT - 5 + + 42 * ( COUNT( * ) )
----
37

skipif mysql # not compatible
query I rowsort label-6448
SELECT - 5 + + 42 * ( COUNT ( * ) )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6449
SELECT - MAX( ALL + 51 ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-6449
SELECT - MAX ( ALL + 51 ) AS col0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6450
SELECT - ( - CAST( - 64 AS SIGNED ) )
----
-64

skipif mysql # not compatible
query I rowsort label-6450
SELECT - ( - CAST ( - 64 AS INTEGER ) )
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-6451
SELECT ALL COUNT( * ) col1, COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-6451
SELECT ALL COUNT ( * ) col1, COUNT ( * ) AS col1
----
1
1

query I rowsort
SELECT + 32 * - 74 - - + 62 AS col1
----
-2306

query II rowsort
SELECT DISTINCT 17 AS col1, 73 AS col0
----
17
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6454
SELECT ALL - - ( + - NULLIF ( + 79, + - 31 - - COUNT( * ) ) ) * + 47
----
-3713

skipif mysql # not compatible
query I rowsort label-6454
SELECT ALL - - ( + - NULLIF ( + 79, + - 31 - - COUNT ( * ) ) ) * + 47
----
-3713

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6455
SELECT 78 + + 56 + + MAX( ALL 19 ) DIV - 46 * + 44 AS col1
----
134

skipif mysql # not compatible
query I rowsort label-6455
SELECT 78 + + 56 + + MAX ( ALL 19 ) / - 46 * + 44 AS col1
----
134

query I rowsort
SELECT ALL + 98 * 20 AS col1
----
1960

query I rowsort
SELECT 86 * 76
----
6536

query I rowsort
SELECT 21 + + 44
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT ALL + 25 + - SUM( ALL 59 ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-6459
SELECT ALL + 25 + - SUM ( ALL 59 ) AS col0
----
-34

query I rowsort
SELECT DISTINCT - CASE + 1 WHEN 10 * 16 + 12 THEN - + 95 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6461
SELECT DISTINCT + 44 + + CASE - + 81 WHEN + - ( COUNT( * ) ) * + - 14 THEN NULL ELSE + + ( - 33 ) DIV + ( + 95 ) * - 58 END + - - 74 + - 89 * - 3
----
385

skipif mysql # not compatible
query I rowsort label-6461
SELECT DISTINCT + 44 + + CASE - + 81 WHEN + - ( COUNT ( * ) ) * + - 14 THEN NULL ELSE + + ( - 33 ) / + ( + 95 ) * - 58 END + - - 74 + - 89 * - 3
----
385

onlyif mysql # aggregate syntax: 
query II rowsort label-6462
SELECT DISTINCT 17 + 25, - COUNT( ALL + 14 ) AS col0
----
42
-1

skipif mysql # not compatible
query II rowsort label-6462
SELECT DISTINCT 17 + 25, - COUNT ( ALL + 14 ) AS col0
----
42
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6463
SELECT 26 DIV COUNT( * ) - - - COUNT( * ) + - - 20 AS col1, 85 + + 66 AS col0
----
45
151

skipif mysql # not compatible
query II rowsort label-6463
SELECT 26 / COUNT ( * ) - - - COUNT ( * ) + - - 20 AS col1, 85 + + 66 AS col0
----
45
151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6464
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6464
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6465
SELECT ALL 92 - - 51 * - - COUNT( * )
----
143

skipif mysql # not compatible
query I rowsort label-6465
SELECT ALL 92 - - 51 * - - COUNT ( * )
----
143

query I rowsort
SELECT - 95 * + 88 - + + 25 * ( - 87 ) * + 14 AS col2
----
22090

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6467
SELECT DISTINCT - CAST( - + 60 AS SIGNED ) col0
----
60

skipif mysql # not compatible
query I rowsort label-6467
SELECT DISTINCT - CAST ( - + 60 AS INTEGER ) col0
----
60

query I rowsort
SELECT ALL - - 53 AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6469
SELECT - COUNT( * ) * - 24
----
24

skipif mysql # not compatible
query I rowsort label-6469
SELECT - COUNT ( * ) * - 24
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6470
SELECT 55 + - NULLIF ( 46, + + 30 * + 71 / - - 44 + - - 63 - + 44 + - - 13 ) - + COUNT( * ) - - 50 * + 8 * - 0
----
8

skipif mysql # not compatible
query I rowsort label-6470
SELECT 55 + - NULLIF ( 46, + + 30 * + 71 / - - 44 + - - 63 - + 44 + - - 13 ) - + COUNT ( * ) - - 50 * + 8 * - 0
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6471
SELECT - 52 * 71 + + 46 DIV - 36 + - 53 * - 72 + - - COUNT( * ) col0
----
124

skipif mysql # not compatible
query I rowsort label-6471
SELECT - 52 * 71 + + 46 / - 36 + - 53 * - 72 + - - COUNT ( * ) col0
----
124

onlyif mysql # aggregate syntax: 
query II rowsort label-6472
SELECT ALL ( 29 ) AS col2, MAX( DISTINCT + - 50 ) col0
----
29
-50

skipif mysql # not compatible
query II rowsort label-6472
SELECT ALL ( 29 ) AS col2, MAX ( DISTINCT + - 50 ) col0
----
29
-50

onlyif mysql # DIV for integer division: 
query II rowsort label-6473
SELECT DISTINCT 37 DIV + - 3 AS col0, COALESCE ( - 74, + 18 * + 62 + + 41 + 64 * - + 88 ) AS col2
----
-12
-74

skipif mysql # not compatible
query II rowsort label-6473
SELECT DISTINCT 37 / + - 3 AS col0, COALESCE ( - 74, + 18 * + 62 + + 41 + 64 * - + 88 ) AS col2
----
-12
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6474
SELECT ALL + SUM( + - 59 ) DIV - 16
----
3

skipif mysql # not compatible
query I rowsort label-6474
SELECT ALL + SUM ( + - 59 ) / - 16
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6475
SELECT 55 * - COUNT( * ) * - CAST( - 89 AS SIGNED ) AS col2
----
-4895

skipif mysql # not compatible
query I rowsort label-6475
SELECT 55 * - COUNT ( * ) * - CAST ( - 89 AS INTEGER ) AS col2
----
-4895

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6476
SELECT + COUNT( * ) + + CAST( NULL AS SIGNED ) * + 60 + + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-6476
SELECT + COUNT ( * ) + + CAST ( NULL AS INTEGER ) * + 60 + + 8
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6477
SELECT ALL SUM( - 28 ) * 13 + 91 col0
----
-273

skipif mysql # not compatible
query I rowsort label-6477
SELECT ALL SUM ( - 28 ) * 13 + 91 col0
----
-273

query I rowsort
SELECT - + 47 AS col1
----
-47

query I rowsort
SELECT ALL 26 * 89 + 19
----
2333

onlyif mysql # aggregate syntax: 
query I rowsort label-6480
SELECT DISTINCT MAX( + ( 11 ) ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-6480
SELECT DISTINCT MAX ( + ( 11 ) ) AS col2
----
11

query I rowsort
SELECT + - 6 + - 78
----
-84

query I rowsort
SELECT - ( 86 ) AS col0
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6483
SELECT - + CAST( + 39 AS SIGNED ) + 67
----
28

skipif mysql # not compatible
query I rowsort label-6483
SELECT - + CAST ( + 39 AS INTEGER ) + 67
----
28

query I rowsort
SELECT + - 56 * - 66
----
3696

query I rowsort
SELECT - - 50 * + - 32
----
-1600

query I rowsort
SELECT + NULLIF ( 49, 96 ) - + 84
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6487
SELECT ALL COUNT( * ) + + 72 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-6487
SELECT ALL COUNT ( * ) + + 72 AS col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6488
SELECT + 11 - - + COUNT( * ) + - 7 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-6488
SELECT + 11 - - + COUNT ( * ) + - 7 AS col2
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6489
SELECT + CASE - 59 WHEN CASE + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) WHEN ( 15 ) THEN NULL ELSE - - 31 END - - 89 THEN NULL WHEN - ( + 77 ) THEN + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6489
SELECT + CASE - 59 WHEN CASE + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) WHEN ( 15 ) THEN NULL ELSE - - 31 END - - 89 THEN NULL WHEN - ( + 77 ) THEN + COUNT ( * ) END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6490
SELECT + 76 + 51 * 27, + CAST( - 22 AS SIGNED ) AS col2
----
1453
-22

skipif mysql # not compatible
query II rowsort label-6490
SELECT + 76 + 51 * 27, + CAST ( - 22 AS INTEGER ) AS col2
----
1453
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6491
SELECT + CASE 7 WHEN + COUNT( DISTINCT - 23 ) THEN NULL WHEN + + 83 THEN NULL WHEN - - 48 THEN + - 24 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6491
SELECT + CASE 7 WHEN + COUNT ( DISTINCT - 23 ) THEN NULL WHEN + + 83 THEN NULL WHEN - - 48 THEN + - 24 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6492
SELECT - 58 - - COUNT( * ) * - 24 * COUNT( * ) + - 1 AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-6492
SELECT - 58 - - COUNT ( * ) * - 24 * COUNT ( * ) + - 1 AS col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-6493
SELECT 31 * - ( 49 ) * + 1 + - - 81 + + - 61 * COALESCE ( + MAX( ALL + + 97 ), 16 ) AS col0
----
-7355

skipif mysql # not compatible
query I rowsort label-6493
SELECT 31 * - ( 49 ) * + 1 + - - 81 + + - 61 * COALESCE ( + MAX ( ALL + + 97 ), 16 ) AS col0
----
-7355

query I rowsort
SELECT - 4 + + - 80 * + - 14 AS col2
----
1116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6495
SELECT ALL - 82 * - COALESCE ( NULLIF ( + CAST( 3 AS SIGNED ), - + 25 ), 81 * + COUNT( * ) + - 68 + + ( ( + 53 ) ) DIV + - ( - - 29 ), + 21 + + CAST( NULL AS SIGNED ) + - 3 + - 46 ) * - CAST( + - 92 AS SIGNED ) * 22 * - - ( - + ( 14 ) ) - + 7 AS col2, CAST( NULL AS SIGNED ) AS col1
----
-6970663
NULL

skipif mysql # not compatible
query II rowsort label-6495
SELECT ALL - 82 * - COALESCE ( NULLIF ( + CAST ( 3 AS INTEGER ), - + 25 ), 81 * + COUNT ( * ) + - 68 + + ( ( + 53 ) ) / + - ( - - 29 ), + 21 + + CAST ( NULL AS INTEGER ) + - 3 + - 46 ) * - CAST ( + - 92 AS INTEGER ) * 22 * - - ( - + ( 14 ) ) - + 7 AS col2, CAST ( NULL AS INTEGER ) AS col1
----
-6970663
NULL

query I rowsort
SELECT - 22 * - - 58 * - - 58 AS col1
----
-74008

onlyif mysql # aggregate syntax: 
query I rowsort label-6497
SELECT - 98 + COUNT( * ) + - ( - - 73 ) - + + 3 + + - 25 * - ( + 65 ) col0
----
1452

skipif mysql # not compatible
query I rowsort label-6497
SELECT - 98 + COUNT ( * ) + - ( - - 73 ) - + + 3 + + - 25 * - ( + 65 ) col0
----
1452

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6498
SELECT - 28 * + - 7 + + 98 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6498
SELECT - 28 * + - 7 + + 98 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6499
SELECT ALL + COUNT( * ) * - 18 * + 38 - COUNT( * )
----
-685

skipif mysql # not compatible
query I rowsort label-6499
SELECT ALL + COUNT ( * ) * - 18 * + 38 - COUNT ( * )
----
-685

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6500
SELECT 68 * ( - - 21 ) + - NULLIF ( 39, - + CAST( 13 AS DECIMAL ) )
----
1389

skipif mysql # not compatible
query I rowsort label-6500
SELECT 68 * ( - - 21 ) + - NULLIF ( 39, - + CAST ( 13 AS REAL ) )
----
1389

onlyif mysql # aggregate syntax: 
query II rowsort label-6501
SELECT - 62 * + SUM( ALL + 37 ) AS col0, 52 + + COUNT( * ) AS col0
----
-2294
53

skipif mysql # not compatible
query II rowsort label-6501
SELECT - 62 * + SUM ( ALL + 37 ) AS col0, 52 + + COUNT ( * ) AS col0
----
-2294
53

query I rowsort
SELECT - + 22 * - - 26 AS col0
----
-572

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6503
SELECT + CASE 57 WHEN - + 2 * - + CAST( + + 27 AS SIGNED ) - + 27 + + - 30 / 86 THEN ( - 85 ) ELSE + 83 END AS col2
----
83

skipif mysql # not compatible
query I rowsort label-6503
SELECT + CASE 57 WHEN - + 2 * - + CAST ( + + 27 AS INTEGER ) - + 27 + + - 30 / 86 THEN ( - 85 ) ELSE + 83 END AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6504
SELECT DISTINCT + 50 * + - ( - MAX( + - 20 ) )
----
-1000

skipif mysql # not compatible
query I rowsort label-6504
SELECT DISTINCT + 50 * + - ( - MAX ( + - 20 ) )
----
-1000

query I rowsort
SELECT DISTINCT + + 58 * 74 AS col0
----
4292

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6506
SELECT DISTINCT - CAST( - 39 AS SIGNED ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-6506
SELECT DISTINCT - CAST ( - 39 AS INTEGER ) AS col0
----
39

query I rowsort
SELECT ALL 53 * - 40
----
-2120

onlyif mysql # aggregate syntax: 
query I rowsort label-6508
SELECT - - 95 + + + ( CASE - 16 WHEN + MIN( - 33 ) THEN ( 91 ) + - MAX( - - 8 ) + + - 26 * + + 91 * 46 * 98 + + 93 * + + ( + ( + 93 ) ) + 0 + + 35 * + 81 * + 12 * - 36 WHEN 54 THEN NULL ELSE + - 35 + 70 END ) AS col1
----
130

skipif mysql # not compatible
query I rowsort label-6508
SELECT - - 95 + + + ( CASE - 16 WHEN + MIN ( - 33 ) THEN ( 91 ) + - MAX ( - - 8 ) + + - 26 * + + 91 * 46 * 98 + + 93 * + + ( + ( + 93 ) ) + 0 + + 35 * + 81 * + 12 * - 36 WHEN 54 THEN NULL ELSE + - 35 + 70 END ) AS col1
----
130

query I rowsort
SELECT ALL + 40 + + 55 AS col1
----
95

query I rowsort
SELECT DISTINCT 42 + - 74 + - - COALESCE ( 26, + + 83, - 72 * - + 42 + + + 24 )
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6511
SELECT + ( ( - 0 ) ) DIV 21 DIV - 66 col1, - COUNT( * ) AS col2
----
0
-1

skipif mysql # not compatible
query II rowsort label-6511
SELECT + ( ( - 0 ) ) / 21 / - 66 col1, - COUNT ( * ) AS col2
----
0
-1

query I rowsort
SELECT ALL 56 + - 61 + + 12 + - 96 * - 11 * + + 59 AS col2
----
62311

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6513
SELECT ALL CASE - ( 76 ) WHEN - - MIN( + - 78 ) / 95 + - + 97 THEN CAST( NULL AS SIGNED ) * - 64 - + 47 ELSE + - SUM( DISTINCT + - 69 ) END + COUNT( * ) + + 87 AS col2
----
157

skipif mysql # not compatible
query I rowsort label-6513
SELECT ALL CASE - ( 76 ) WHEN - - MIN ( + - 78 ) / 95 + - + 97 THEN CAST ( NULL AS INTEGER ) * - 64 - + 47 ELSE + - SUM ( DISTINCT + - 69 ) END + COUNT ( * ) + + 87 AS col2
----
157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6514
SELECT DISTINCT - COUNT( ALL - 11 ) / + 28 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6514
SELECT DISTINCT - COUNT ( ALL - 11 ) / + 28 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6515
SELECT + 71 * - + MAX( 24 ) AS col2
----
-1704

skipif mysql # not compatible
query I rowsort label-6515
SELECT + 71 * - + MAX ( 24 ) AS col2
----
-1704

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6516
SELECT ALL CAST( 45 AS SIGNED ) * + 10 AS col1
----
450

skipif mysql # not compatible
query I rowsort label-6516
SELECT ALL CAST ( 45 AS INTEGER ) * + 10 AS col1
----
450

query I rowsort
SELECT + 88 + - - 45 * 97
----
4453

onlyif mysql # DIV for integer division: 
query II rowsort label-6518
SELECT ALL 94 + 85, 17 + + + 85 DIV 28 + 29 col0
----
179
49

skipif mysql # not compatible
query II rowsort label-6518
SELECT ALL 94 + 85, 17 + + + 85 / 28 + 29 col0
----
179
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6519
SELECT 76 AS col2, - CAST( NULL AS SIGNED ) AS col2
----
76
NULL

skipif mysql # not compatible
query II rowsort label-6519
SELECT 76 AS col2, - CAST ( NULL AS INTEGER ) AS col2
----
76
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6520
SELECT - CASE - + 29 WHEN - 73 * + + 26 THEN CASE + + 43 WHEN 47 + - AVG ( + 75 ) THEN NULL ELSE - ( + + CASE + + 40 WHEN + - ( + 79 ) + + - ( + COALESCE ( 91, - + COUNT( * ) * - COUNT( * ) + 55 ) ) THEN + - 68 WHEN - + 18 THEN NULL ELSE NULL END ) + + + CAST( - COUNT( * ) AS SIGNED ) * - 32 * + 66 - - 43 * 34 * + ( 60 ) * - NULLIF ( - 11, 70 / + ( 91 * 89 ) - + 97 ) END - + 91 WHEN 75 THEN NULL END * 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6520
SELECT - CASE - + 29 WHEN - 73 * + + 26 THEN CASE + + 43 WHEN 47 + - AVG ( + 75 ) THEN NULL ELSE - ( + + CASE + + 40 WHEN + - ( + 79 ) + + - ( + COALESCE ( 91, - + COUNT ( * ) * - COUNT ( * ) + 55 ) ) THEN + - 68 WHEN - + 18 THEN NULL ELSE NULL END ) + + + CAST ( - COUNT ( * ) AS INTEGER ) * - 32 * + 66 - - 43 * 34 * + ( 60 ) * - NULLIF ( - 11, 70 / + ( 91 * 89 ) - + 97 ) END - + 91 WHEN 75 THEN NULL END * 69 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6521
SELECT - CAST( NULL AS SIGNED ), ( - COUNT( * ) ) + + 9 col0
----
NULL
8

skipif mysql # not compatible
query II rowsort label-6521
SELECT - CAST ( NULL AS INTEGER ), ( - COUNT ( * ) ) + + 9 col0
----
NULL
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6522
SELECT CAST( - 86 AS SIGNED ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-6522
SELECT CAST ( - 86 AS INTEGER ) AS col0
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6523
SELECT ALL - 87 / + 86 - + ( + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6523
SELECT ALL - 87 / + 86 - + ( + - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - 10 + - ( - + 78 ) AS col0
----
68

query II rowsort
SELECT + 81 * - - 42 AS col2, 44 AS col2
----
3402
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6526
SELECT ALL CASE - 71 WHEN - + 94 THEN 99 * + 2 * - 38 + + CAST( - 97 AS SIGNED ) * + NULLIF ( + 85, + - 61 - + + 0 + + 91 ) ELSE NULL END * + - ( + + 99 ) / - COUNT( * ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6526
SELECT ALL CASE - 71 WHEN - + 94 THEN 99 * + 2 * - 38 + + CAST ( - 97 AS INTEGER ) * + NULLIF ( + 85, + - 61 - + + 0 + + 91 ) ELSE NULL END * + - ( + + 99 ) / - COUNT ( * ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6527
SELECT DISTINCT + 69, COALESCE ( + - COUNT( * ), - 19 * + COUNT( * ) * + 92 * ( 65 ) DIV 68 - - 2 * - 24 + - + COUNT( * ), + 4 ) AS col1
----
69
-1

skipif mysql # not compatible
query II rowsort label-6527
SELECT DISTINCT + 69, COALESCE ( + - COUNT ( * ), - 19 * + COUNT ( * ) * + 92 * ( 65 ) / 68 - - 2 * - 24 + - + COUNT ( * ), + 4 ) AS col1
----
69
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6528
SELECT ALL + NULLIF ( + 85, - SUM( + ( 34 ) ) ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-6528
SELECT ALL + NULLIF ( + 85, - SUM ( + ( 34 ) ) ) AS col1
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6529
SELECT CAST( + 46 AS SIGNED )
----
46

skipif mysql # not compatible
query I rowsort label-6529
SELECT CAST ( + 46 AS INTEGER )
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6530
SELECT CAST( + 48 AS SIGNED ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-6530
SELECT CAST ( + 48 AS INTEGER ) AS col0
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6531
SELECT - MAX( ALL - + 83 ) * + 29 - NULLIF ( CAST( NULL AS SIGNED ), 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6531
SELECT - MAX ( ALL - + 83 ) * + 29 - NULLIF ( CAST ( NULL AS INTEGER ), 7 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6532
SELECT - CASE + + 9 WHEN - + 29 THEN - - 78 END / - + NULLIF ( - - CAST( NULL AS SIGNED ), + 49 ) * - CAST( - + 81 AS SIGNED ) * 99 + - 95 + + COUNT( * ) + - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-6532
SELECT - CASE + + 9 WHEN - + 29 THEN - - 78 END / - + NULLIF ( - - CAST ( NULL AS INTEGER ), + 49 ) * - CAST ( - + 81 AS INTEGER ) * 99 + - 95 + + COUNT ( * ) + - 82
----
NULL

query II rowsort
SELECT + 43 AS col0, + 4 * + - 84 + + - 80
----
43
-416

query I rowsort
SELECT ALL + 96 * - + 0 + NULLIF ( - 4, + - 72 * - 56 + + + 0 + - 89 ) AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6535
SELECT + 71 / + CASE 43 WHEN - 94 * - + 76 - 23 * - - 97 THEN NULL WHEN + COUNT( * ) * + 29 THEN 10 / + COALESCE ( + 74, + - 79, 12 - + 54 + + 44 ) * - 41 * 93 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6535
SELECT + 71 / + CASE 43 WHEN - 94 * - + 76 - 23 * - - 97 THEN NULL WHEN + COUNT ( * ) * + 29 THEN 10 / + COALESCE ( + 74, + - 79, 12 - + 54 + + 44 ) * - 41 * 93 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + COALESCE ( 28, + 19 ) AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6537
SELECT ALL + ( COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6537
SELECT ALL + ( COUNT ( * ) ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6538
SELECT ALL + CAST( + ( 67 ) AS SIGNED ) * + CASE + 80 WHEN + + CASE COUNT( * ) WHEN - 35 * COUNT( * ) THEN 59 + + COUNT( ALL + + 10 ) END * COUNT( * ) THEN - COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6538
SELECT ALL + CAST ( + ( 67 ) AS INTEGER ) * + CASE + 80 WHEN + + CASE COUNT ( * ) WHEN - 35 * COUNT ( * ) THEN 59 + + COUNT ( ALL + + 10 ) END * COUNT ( * ) THEN - COUNT ( * ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6539
SELECT DISTINCT - 12 AS col0, 28 * + COUNT( * ) col1
----
-12
28

skipif mysql # not compatible
query II rowsort label-6539
SELECT DISTINCT - 12 AS col0, 28 * + COUNT ( * ) col1
----
-12
28

query I rowsort
SELECT ( 97 ) + + 98 + - 46 * + 4
----
11

query II rowsort
SELECT ALL - 69 + - - 34 + - 84 * - 90 * + 99 * + 8, 45 AS col2
----
5987485
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6542
SELECT - 57 + - - 67 * + + CAST( - + 22 AS SIGNED ) AS col2
----
-1531

skipif mysql # not compatible
query I rowsort label-6542
SELECT - 57 + - - 67 * + + CAST ( - + 22 AS INTEGER ) AS col2
----
-1531

query II rowsort
SELECT ALL 2 AS col0, 63
----
2
63

query II rowsort
SELECT - 25 AS col2, 48 * - 33
----
-25
-1584

query I rowsort
SELECT ALL + - 14 + + 79 * - 78
----
-6176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6546
SELECT DISTINCT CAST( - COUNT( * ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6546
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
-1

query I rowsort
SELECT ALL + - 89 * + + ( - 73 ) * 40 + - 16 - ( - 3 ) AS col0
----
259867

query I rowsort
SELECT ALL + 39 * + 71 AS col0
----
2769

onlyif mysql # aggregate syntax: 
query I rowsort label-6549
SELECT 1 + SUM( + 76 )
----
77

skipif mysql # not compatible
query I rowsort label-6549
SELECT 1 + SUM ( + 76 )
----
77

query II rowsort
SELECT 5 * 63 col2, 92 AS col0
----
315
92

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-6551
SELECT 40 * 45 DIV NULLIF ( - 17, CAST( + 10 AS DECIMAL ) )
----
-105

skipif mysql # not compatible
query I rowsort label-6551
SELECT 40 * 45 / NULLIF ( - 17, CAST ( + 10 AS REAL ) )
----
-105

query II rowsort
SELECT 30 * - - 87, 34 AS col0
----
2610
34

query I rowsort
SELECT 36 - + - ( 89 ) + 71
----
196

onlyif mysql # aggregate syntax: 
query I rowsort label-6554
SELECT ALL - 95 - + 98 * + COUNT( * )
----
-193

skipif mysql # not compatible
query I rowsort label-6554
SELECT ALL - 95 - + 98 * + COUNT ( * )
----
-193

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6555
SELECT - CASE - COUNT( * ) WHEN + 0 / - + COUNT( * ) THEN + 7 * - 80 * - 53 END * + - 80 + 70 * - - ( 85 ) + + + 23 + + + ( - COUNT( * ) ) * + + CASE - 87 WHEN - CASE 17 WHEN + MAX( DISTINCT + ( - 14 ) ) THEN COUNT( * ) WHEN + 20 THEN NULL END THEN NULL ELSE + 28 / + ( 34 ) / + - 10 * COUNT( * ) + - CASE + + ( 3 ) WHEN + 41 THEN - 37 / COUNT( * ) - - ( + CAST( + CASE - 73 WHEN 97 + + 15 * + ( - COUNT( - 27 ) * - 3 + + 72 ) THEN 27 / + 18 ELSE + 58 - 62 * 60 END AS SIGNED ) ) * 59 WHEN 90 * + ( - 55 ) THEN + 90 + - 15 END END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6555
SELECT - CASE - COUNT ( * ) WHEN + 0 / - + COUNT ( * ) THEN + 7 * - 80 * - 53 END * + - 80 + 70 * - - ( 85 ) + + + 23 + + + ( - COUNT ( * ) ) * + + CASE - 87 WHEN - CASE 17 WHEN + MAX ( DISTINCT + ( - 14 ) ) THEN COUNT ( * ) WHEN + 20 THEN NULL END THEN NULL ELSE + 28 / + ( 34 ) / + - 10 * COUNT ( * ) + - CASE + + ( 3 ) WHEN + 41 THEN - 37 / COUNT ( * ) - - ( + CAST ( + CASE - 73 WHEN 97 + + 15 * + ( - COUNT ( - 27 ) * - 3 + + 72 ) THEN 27 / + 18 ELSE + 58 - 62 * 60 END AS INTEGER ) ) * 59 WHEN 90 * + ( - 55 ) THEN + 90 + - 15 END END AS col1
----
NULL

query I rowsort
SELECT ALL 86 - + 50 col2
----
36

query I rowsort
SELECT 26 + - 31 + - - 59 col1
----
54

query I rowsort
SELECT ( 54 ) * - 90 AS col0
----
-4860

query I rowsort
SELECT ALL 33 * ( 18 ) * + 17
----
10098

onlyif mysql # aggregate syntax: 
query I rowsort label-6560
SELECT - 20 * + 55 + - + 82 - + - 75 + + COUNT( + 98 ) * + - 86 + - 93 + - - 55 AS col2
----
-1231

skipif mysql # not compatible
query I rowsort label-6560
SELECT - 20 * + 55 + - + 82 - + - 75 + + COUNT ( + 98 ) * + - 86 + - 93 + - - 55 AS col2
----
-1231

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6561
SELECT CAST( AVG ( DISTINCT 1 ) AS SIGNED ) - - ( + + 8 ) DIV 97
----
1

skipif mysql # not compatible
query I rowsort label-6561
SELECT CAST ( AVG ( DISTINCT 1 ) AS INTEGER ) - - ( + + 8 ) / 97
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6562
SELECT 5 DIV NULLIF ( + - 67, + 83 * - 89 ) + + - 68
----
-68

skipif mysql # not compatible
query I rowsort label-6562
SELECT 5 / NULLIF ( + - 67, + 83 * - 89 ) + + - 68
----
-68

query I rowsort
SELECT 69 * 7 - + 76 + + 17 AS col1
----
424

onlyif mysql # aggregate syntax: 
query I rowsort label-6564
SELECT ALL + 56 + 5 * - NULLIF ( + - 42, - 6 ) * + + COUNT( DISTINCT - - 33 ) + - - COUNT( * ) col0
----
267

skipif mysql # not compatible
query I rowsort label-6564
SELECT ALL + 56 + 5 * - NULLIF ( + - 42, - 6 ) * + + COUNT ( DISTINCT - - 33 ) + - - COUNT ( * ) col0
----
267

query I rowsort
SELECT COALESCE ( + 98, - 64 ) + - + 85 AS col1
----
13

query I rowsort
SELECT ALL - 76 + + 26
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6567
SELECT ALL - + 66 + - MAX( ALL - 59 )
----
-7

skipif mysql # not compatible
query I rowsort label-6567
SELECT ALL - + 66 + - MAX ( ALL - 59 )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6568
SELECT ALL - - COUNT( * ) * - 50
----
-50

skipif mysql # not compatible
query I rowsort label-6568
SELECT ALL - - COUNT ( * ) * - 50
----
-50

query I rowsort
SELECT DISTINCT 75 + 70
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-6570
SELECT 1 * - + COUNT( * ) * 31 col2
----
-31

skipif mysql # not compatible
query I rowsort label-6570
SELECT 1 * - + COUNT ( * ) * 31 col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6571
SELECT + 98 * + + COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-6571
SELECT + 98 * + + COUNT ( * )
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-6572
SELECT 17 DIV 38 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6572
SELECT 17 / 38 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6573
SELECT ALL - 8 DIV - - 74 + 54 AS col0, COUNT( * )
----
54
1

skipif mysql # not compatible
query II rowsort label-6573
SELECT ALL - 8 / - - 74 + 54 AS col0, COUNT ( * )
----
54
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6574
SELECT 47 * - MIN( DISTINCT - 69 ) * + COUNT( 41 ), + 24 AS col0
----
3243
24

skipif mysql # not compatible
query II rowsort label-6574
SELECT 47 * - MIN ( DISTINCT - 69 ) * + COUNT ( 41 ), + 24 AS col0
----
3243
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6575
SELECT - 74 + + + 0 + - + 62 + + + 74 * + 32 * + NULLIF ( - 77, + NULLIF ( - + COUNT( * ), 60 ) ) + + 1 + COUNT( DISTINCT - 2 )
----
-182470

skipif mysql # not compatible
query I rowsort label-6575
SELECT - 74 + + + 0 + - + 62 + + + 74 * + 32 * + NULLIF ( - 77, + NULLIF ( - + COUNT ( * ), 60 ) ) + + 1 + COUNT ( DISTINCT - 2 )
----
-182470

onlyif mysql # aggregate syntax: 
query II rowsort label-6576
SELECT 37 + 41 * + 72 * 65, COUNT( * ) * COUNT( * ) AS col2
----
191917
1

skipif mysql # not compatible
query II rowsort label-6576
SELECT 37 + 41 * + 72 * 65, COUNT ( * ) * COUNT ( * ) AS col2
----
191917
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6577
SELECT 46 + + CAST( - + 36 AS SIGNED ) * - + 40
----
1486

skipif mysql # not compatible
query I rowsort label-6577
SELECT 46 + + CAST ( - + 36 AS INTEGER ) * - + 40
----
1486

query I rowsort
SELECT 50 * - 77 * 33 col0
----
-127050

query I rowsort
SELECT 21 * ( + - 49 )
----
-1029

query I rowsort
SELECT 27 + + - 47
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-6581
SELECT 17 AS col0, - 49 - - 14 + ( - + COUNT( 13 ) ) AS col0
----
17
-36

skipif mysql # not compatible
query II rowsort label-6581
SELECT 17 AS col0, - 49 - - 14 + ( - + COUNT ( 13 ) ) AS col0
----
17
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6582
SELECT 36 + - 10 + + 76 DIV COUNT( * ) AS col0
----
102

skipif mysql # not compatible
query I rowsort label-6582
SELECT 36 + - 10 + + 76 / COUNT ( * ) AS col0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-6583
SELECT ALL - COALESCE ( - COUNT( * ), + 82 ) * + ( + + 31 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-6583
SELECT ALL - COALESCE ( - COUNT ( * ), + 82 ) * + ( + + 31 ) AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6584
SELECT 46 + ( - + 62 ) + + COUNT( * ) + - + 65 AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-6584
SELECT 46 + ( - + 62 ) + + COUNT ( * ) + - + 65 AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT 65 * 79 * + MAX( DISTINCT + + 46 ) * + MIN( DISTINCT - 37 ) + + COUNT( * ) AS col1
----
-8739769

skipif mysql # not compatible
query I rowsort label-6585
SELECT 65 * 79 * + MAX ( DISTINCT + + 46 ) * + MIN ( DISTINCT - 37 ) + + COUNT ( * ) AS col1
----
-8739769

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6586
SELECT 71 + + + CASE CAST( - NULLIF ( + - 99, 56 / + COALESCE ( - - 80, 63 * - + 19 ) - - ( - 39 ) ) AS DECIMAL ) WHEN + 31 THEN NULL WHEN + 26 * + + ( - COUNT( * ) ) + + 28 + - 98 * - 87 * + - 29 * 55 THEN - + 74 / + + 83 WHEN SUM( - 55 ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6586
SELECT 71 + + + CASE CAST ( - NULLIF ( + - 99, 56 / + COALESCE ( - - 80, 63 * - + 19 ) - - ( - 39 ) ) AS REAL ) WHEN + 31 THEN NULL WHEN + 26 * + + ( - COUNT ( * ) ) + + 28 + - 98 * - 87 * + - 29 * 55 THEN - + 74 / + + 83 WHEN SUM ( - 55 ) THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT COALESCE ( 11, + + 79, 65 + + 86 ) AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6588
SELECT COALESCE ( - 26, - 23 * - MAX( + ( + + 66 ) ) * 0 + COUNT( * ), - 42 )
----
-26

skipif mysql # not compatible
query I rowsort label-6588
SELECT COALESCE ( - 26, - 23 * - MAX ( + ( + + 66 ) ) * 0 + COUNT ( * ), - 42 )
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-6589
SELECT 55 DIV - - 22 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-6589
SELECT 55 / - - 22 AS col1
----
2

query I rowsort
SELECT ALL 14 * + + 60 + + ( + + ( + - 46 ) ) AS col0
----
794

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6591
SELECT DISTINCT 51 * 29 + 93 + 21 DIV ( - COUNT( * ) )
----
1551

skipif mysql # not compatible
query I rowsort label-6591
SELECT DISTINCT 51 * 29 + 93 + 21 / ( - COUNT ( * ) )
----
1551

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6592
SELECT ALL - - 35 DIV COUNT( * ) DIV COUNT( * ) AS col0, + 30 * - 39 + + 78 - - 72 AS col2
----
35
-1020

skipif mysql # not compatible
query II rowsort label-6592
SELECT ALL - - 35 / COUNT ( * ) / COUNT ( * ) AS col0, + 30 * - 39 + + 78 - - 72 AS col2
----
35
-1020

onlyif mysql # DIV for integer division: 
query I rowsort label-6593
SELECT + 80 DIV + 79
----
1

skipif mysql # not compatible
query I rowsort label-6593
SELECT + 80 / + 79
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6594
SELECT ALL COUNT( * ) * + 85 * 67
----
5695

skipif mysql # not compatible
query I rowsort label-6594
SELECT ALL COUNT ( * ) * + 85 * 67
----
5695

onlyif mysql # aggregate syntax: 
query I rowsort label-6595
SELECT + MAX( ALL - - 52 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-6595
SELECT + MAX ( ALL - - 52 ) AS col2
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6596
SELECT ALL + 49 * - + CAST( NULL AS SIGNED ) + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-6596
SELECT ALL + 49 * - + CAST ( NULL AS INTEGER ) + 9
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6597
SELECT + 19 AS col1, CAST( 59 AS SIGNED ) - - 80
----
19
139

skipif mysql # not compatible
query II rowsort label-6597
SELECT + 19 AS col1, CAST ( 59 AS INTEGER ) - - 80
----
19
139

onlyif mysql # aggregate syntax: 
query I rowsort label-6598
SELECT - COUNT( * ) - + + 72 - - - 78 - - + 74 + + + 8 * - - 8 + - + COUNT( * ) + - ( + 93 )
----
-107

skipif mysql # not compatible
query I rowsort label-6598
SELECT - COUNT ( * ) - + + 72 - - - 78 - - + 74 + + + 8 * - - 8 + - + COUNT ( * ) + - ( + 93 )
----
-107

query I rowsort
SELECT - + 89 + + - 99
----
-188

query I rowsort
SELECT + - 83 * 81 AS col0
----
-6723

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6601
SELECT COUNT( * ) * 83 - 1 * - 15 * + CASE + 3 WHEN - 81 * - 34 / COUNT( * ) * 66 THEN AVG ( - - 17 ) END * + 11 + + COALESCE ( + + 15, 24 ) * - - 81 + - - ( - CAST( CAST( - 23 AS SIGNED ) AS SIGNED ) ), + COUNT( DISTINCT - CAST( + ( - - 59 ) AS SIGNED ) ) + + NULLIF ( + 3, + + 92 * + COUNT( * ) ) AS col2
----
NULL
4

skipif mysql # not compatible
query II rowsort label-6601
SELECT COUNT ( * ) * 83 - 1 * - 15 * + CASE + 3 WHEN - 81 * - 34 / COUNT ( * ) * 66 THEN AVG ( - - 17 ) END * + 11 + + COALESCE ( + + 15, 24 ) * - - 81 + - - ( - CAST ( CAST ( - 23 AS INTEGER ) AS INTEGER ) ), + COUNT ( DISTINCT - CAST ( + ( - - 59 ) AS INTEGER ) ) + + NULLIF ( + 3, + + 92 * + COUNT ( * ) ) AS col2
----
NULL
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6602
SELECT DISTINCT + + CASE + - 17 WHEN ( - + ( + 76 ) ) THEN 1 * - + COALESCE ( - 11, NULLIF ( + 98, - 49 * + 69 * - 68 - + - 52 + + ( 91 ) * 19 * 89 / + 66 ), COUNT( * ) ) WHEN COUNT( * ) - 95 THEN - CASE 79 WHEN 51 + - 50 THEN + - 8 / + ( - 24 ) WHEN - 0 * + 93 + 88 / + - 38 THEN + 38 / 50 ELSE NULL END ELSE + ( + 5 ) END
----
5

skipif mysql # not compatible
query I rowsort label-6602
SELECT DISTINCT + + CASE + - 17 WHEN ( - + ( + 76 ) ) THEN 1 * - + COALESCE ( - 11, NULLIF ( + 98, - 49 * + 69 * - 68 - + - 52 + + ( 91 ) * 19 * 89 / + 66 ), COUNT ( * ) ) WHEN COUNT ( * ) - 95 THEN - CASE 79 WHEN 51 + - 50 THEN + - 8 / + ( - 24 ) WHEN - 0 * + 93 + 88 / + - 38 THEN + 38 / 50 ELSE NULL END ELSE + ( + 5 ) END
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6603
SELECT + ( - - COUNT( * ) ) - + 74 * + COUNT( * )
----
-73

skipif mysql # not compatible
query I rowsort label-6603
SELECT + ( - - COUNT ( * ) ) - + 74 * + COUNT ( * )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-6604
SELECT ALL + MIN( - - 41 )
----
41

skipif mysql # not compatible
query I rowsort label-6604
SELECT ALL + MIN ( - - 41 )
----
41

query II rowsort
SELECT ALL + 60 AS col1, 8 * - 53 AS col1
----
60
-424

query I rowsort
SELECT - + ( - NULLIF ( 63, - 27 ) )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6607
SELECT - CASE - + 79 WHEN - 6 + - + ( ( COUNT( * ) ) ) THEN + 98 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6607
SELECT - CASE - + 79 WHEN - 6 + - + ( ( COUNT ( * ) ) ) THEN + 98 END AS col1
----
NULL

query II rowsort
SELECT - 94 - + 47, 85 * + 74 AS col2
----
-141
6290

query I rowsort
SELECT + 5 * + 48 * + 18 AS col2
----
4320

onlyif mysql # aggregate syntax: 
query I rowsort label-6610
SELECT ALL COALESCE ( COUNT( * ), COUNT( * ), CASE - 84 WHEN 59 + + 94 + - + 27 * + 79 THEN 18 ELSE NULL END ) * - 58 col1
----
-58

skipif mysql # not compatible
query I rowsort label-6610
SELECT ALL COALESCE ( COUNT ( * ), COUNT ( * ), CASE - 84 WHEN 59 + + 94 + - + 27 * + 79 THEN 18 ELSE NULL END ) * - 58 col1
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-6611
SELECT DISTINCT COUNT( * ) * - 51 * - + 70 * + 35 AS col2, - COUNT( * )
----
124950
-1

skipif mysql # not compatible
query II rowsort label-6611
SELECT DISTINCT COUNT ( * ) * - 51 * - + 70 * + 35 AS col2, - COUNT ( * )
----
124950
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6612
SELECT + 58 + - - CASE COUNT( * ) WHEN - + 95 / - 15 * + 49 + + COALESCE ( - 4, 40, - 21 ) THEN 47 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6612
SELECT + 58 + - - CASE COUNT ( * ) WHEN - + 95 / - 15 * + 49 + + COALESCE ( - 4, 40, - 21 ) THEN 47 END
----
NULL

query I rowsort
SELECT DISTINCT 22 * - 17
----
-374

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6614
SELECT DISTINCT CASE CASE + 17 WHEN + 31 THEN NULL WHEN 73 THEN 94 * 89 END WHEN AVG ( - + 32 ) THEN + - CASE COUNT( ALL - + 29 ) WHEN + + 1 + + CAST( NULL AS SIGNED ) + - + COUNT( * ) THEN 18 ELSE + + 56 END - - + ( COUNT( - 44 ) ) - - - COUNT( * ) + + + 5 * - SUM( DISTINCT 98 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6614
SELECT DISTINCT CASE CASE + 17 WHEN + 31 THEN NULL WHEN 73 THEN 94 * 89 END WHEN AVG ( - + 32 ) THEN + - CASE COUNT ( ALL - + 29 ) WHEN + + 1 + + CAST ( NULL AS INTEGER ) + - + COUNT ( * ) THEN 18 ELSE + + 56 END - - + ( COUNT ( - 44 ) ) - - - COUNT ( * ) + + + 5 * - SUM ( DISTINCT 98 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6615
SELECT - 51 * + SUM( - 35 )
----
1785

skipif mysql # not compatible
query I rowsort label-6615
SELECT - 51 * + SUM ( - 35 )
----
1785

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6616
SELECT ALL 57 + + 8 AS col0, + 80 DIV - - COUNT( * ) col0
----
65
80

skipif mysql # not compatible
query II rowsort label-6616
SELECT ALL 57 + + 8 AS col0, + 80 / - - COUNT ( * ) col0
----
65
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6617
SELECT + 63 + - 33 * - SUM( ALL - 73 ) + + NULLIF ( - COUNT( * ), CAST( NULL AS SIGNED ) )
----
-2347

skipif mysql # not compatible
query I rowsort label-6617
SELECT + 63 + - 33 * - SUM ( ALL - 73 ) + + NULLIF ( - COUNT ( * ), CAST ( NULL AS INTEGER ) )
----
-2347

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6618
SELECT - CASE + + 40 WHEN 77 + + + COUNT( * ) - - 81 * + 32 + 42 / - 90 THEN NULL ELSE - - CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6618
SELECT - CASE + + 40 WHEN 77 + + + COUNT ( * ) - - 81 * + 32 + 42 / - 90 THEN NULL ELSE - - CAST ( NULL AS INTEGER ) END AS col0
----
NULL

query I rowsort
SELECT + 39 + - 61
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6620
SELECT + 16 + 8 + + 43 * COALESCE ( - COUNT( * ), ( + MAX( - CAST( 25 AS SIGNED ) ) ) + + + CAST( NULL AS SIGNED ) + 2 + + 7 ) - + 10
----
-29

skipif mysql # not compatible
query I rowsort label-6620
SELECT + 16 + 8 + + 43 * COALESCE ( - COUNT ( * ), ( + MAX ( - CAST ( 25 AS INTEGER ) ) ) + + + CAST ( NULL AS INTEGER ) + 2 + + 7 ) - + 10
----
-29

query I rowsort
SELECT - 21 * + 64
----
-1344

query II rowsort
SELECT DISTINCT - 60 + - 99 + - 46 * - 31 AS col2, - 13 AS col0
----
1267
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT DISTINCT COUNT( DISTINCT + 67 ) + + 55 + - 23 + - 17 + 3 * 75 * - - CASE + 52 WHEN + 46 + + + 89 + - 85 THEN + 81 ELSE NULL END - - ( 58 ) * 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6623
SELECT DISTINCT COUNT ( DISTINCT + 67 ) + + 55 + - 23 + - 17 + 3 * 75 * - - CASE + 52 WHEN + 46 + + + 89 + - 85 THEN + 81 ELSE NULL END - - ( 58 ) * 8 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6624
SELECT DISTINCT COUNT( - - 4 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6624
SELECT DISTINCT COUNT ( - - 4 ) AS col1
----
1

query I rowsort
SELECT - 85 + - 20
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-6626
SELECT DISTINCT - COUNT( * ) * - + 22 col0
----
22

skipif mysql # not compatible
query I rowsort label-6626
SELECT DISTINCT - COUNT ( * ) * - + 22 col0
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6627
SELECT DISTINCT - 38 / + CAST( NULL AS SIGNED ) * AVG ( ALL + + 85 ) * + 77 + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6627
SELECT DISTINCT - 38 / + CAST ( NULL AS INTEGER ) * AVG ( ALL + + 85 ) * + 77 + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT - - 68 + - 79 AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6629
SELECT - + SUM( DISTINCT 30 ) * - + 17
----
510

skipif mysql # not compatible
query I rowsort label-6629
SELECT - + SUM ( DISTINCT 30 ) * - + 17
----
510

onlyif mysql # aggregate syntax: 
query II rowsort label-6630
SELECT - MAX( DISTINCT + 12 ) * + COUNT( * ) + - - 16 AS col1, - 13 AS col0
----
4
-13

skipif mysql # not compatible
query II rowsort label-6630
SELECT - MAX ( DISTINCT + 12 ) * + COUNT ( * ) + - - 16 AS col1, - 13 AS col0
----
4
-13

query I rowsort
SELECT - - 87 - 11 + + + 91 * + + 67 * - 44 * - 46 * 12
----
148084012

onlyif mysql # DIV for integer division: 
query I rowsort label-6632
SELECT + - 23 DIV + - ( + - 19 ) + 52 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-6632
SELECT + - 23 / + - ( + - 19 ) + 52 AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6633
SELECT - 90 * + - COUNT( * ) + + + 33 + - COUNT( ALL 64 )
----
122

skipif mysql # not compatible
query I rowsort label-6633
SELECT - 90 * + - COUNT ( * ) + + + 33 + - COUNT ( ALL 64 )
----
122

query I rowsort
SELECT ALL + - 63 * - 36 + + - 14 - 64
----
2190

query I rowsort
SELECT - 67 + 3
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6636
SELECT ALL - 41 * - - COALESCE ( - + 3, - 30, + MIN( ( + 50 ) ) + + 84 + - 64, - 74 ) * 69
----
8487

skipif mysql # not compatible
query I rowsort label-6636
SELECT ALL - 41 * - - COALESCE ( - + 3, - 30, + MIN ( ( + 50 ) ) + + 84 + - 64, - 74 ) * 69
----
8487

onlyif mysql # aggregate syntax: 
query I rowsort label-6637
SELECT - - COUNT( * ) * + - NULLIF ( - COUNT( * ), - - COUNT( * ) + + 25 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-6637
SELECT - - COUNT ( * ) * + - NULLIF ( - COUNT ( * ), - - COUNT ( * ) + + 25 ) col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6638
SELECT + + CASE - - 15 WHEN + + 12 * + CAST( + 42 AS SIGNED ) + - + 51 THEN - CASE + 22 WHEN + 21 THEN - 71 + - + COUNT( * ) + - 84 - ( + CAST( + COUNT( * ) AS SIGNED ) ) * 85 * + 11 + + - 57 - - COUNT( * ) END ELSE - - 5 END AS col2
----
5

skipif mysql # not compatible
query I rowsort label-6638
SELECT + + CASE - - 15 WHEN + + 12 * + CAST ( + 42 AS INTEGER ) + - + 51 THEN - CASE + 22 WHEN + 21 THEN - 71 + - + COUNT ( * ) + - 84 - ( + CAST ( + COUNT ( * ) AS INTEGER ) ) * 85 * + 11 + + - 57 - - COUNT ( * ) END ELSE - - 5 END AS col2
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6639
SELECT ALL + - CAST( NULL AS SIGNED ) * + 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6639
SELECT ALL + - CAST ( NULL AS INTEGER ) * + 6 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6640
SELECT - 56 + + ( ( - 0 ) ) * + COALESCE ( + 18, - - 20 ), 64 + 2 + + + 71 - - 13 * - 27 / - - CASE WHEN ( + 40 ) BETWEEN ( NULL ) AND + - COUNT( * ) - 21 + - 36 - + - 78 + + COUNT( DISTINCT + 67 ) * - - MAX( + 16 ) * + 78 THEN + 66 END AS col1
----
-56
NULL

skipif mysql # not compatible
query II rowsort label-6640
SELECT - 56 + + ( ( - 0 ) ) * + COALESCE ( + 18, - - 20 ), 64 + 2 + + + 71 - - 13 * - 27 / - - CASE WHEN ( + 40 ) BETWEEN ( NULL ) AND + - COUNT ( * ) - 21 + - 36 - + - 78 + + COUNT ( DISTINCT + 67 ) * - - MAX ( + 16 ) * + 78 THEN + 66 END AS col1
----
-56
NULL

query I rowsort
SELECT ALL + 6 * + 42 AS col1
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-6642
SELECT - ( + NULLIF ( - 41, - 27 ) ) * - COUNT( * ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-6642
SELECT - ( + NULLIF ( - 41, - 27 ) ) * - COUNT ( * ) AS col0
----
-41

query II rowsort
SELECT ALL 96 AS col1, 9 * + 53
----
96
477

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6644
SELECT DISTINCT CAST( + - 87 AS SIGNED ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-6644
SELECT DISTINCT CAST ( + - 87 AS INTEGER ) AS col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-6645
SELECT - MAX( - 19 ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-6645
SELECT - MAX ( - 19 ) AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6646
SELECT - 63 * COUNT( * ) * 39
----
-2457

skipif mysql # not compatible
query I rowsort label-6646
SELECT - 63 * COUNT ( * ) * 39
----
-2457

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT + 22 - - 78 * MAX( + 89 )
----
6964

skipif mysql # not compatible
query I rowsort label-6647
SELECT + 22 - - 78 * MAX ( + 89 )
----
6964

query I rowsort
SELECT + 45 + 39 AS col2
----
84

query I rowsort
SELECT ALL 10 * 65
----
650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6650
SELECT + COUNT( * ) / + CAST( NULL AS SIGNED ) * - 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6650
SELECT + COUNT ( * ) / + CAST ( NULL AS INTEGER ) * - 41 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6651
SELECT - ( - + COALESCE ( + 58, + COUNT( * ), 85 * ( + + CASE + 91 WHEN - ( - 12 ) THEN ( + 63 ) + - + COUNT( * ) END ) + 81 ) )
----
58

skipif mysql # not compatible
query I rowsort label-6651
SELECT - ( - + COALESCE ( + 58, + COUNT ( * ), 85 * ( + + CASE + 91 WHEN - ( - 12 ) THEN ( + 63 ) + - + COUNT ( * ) END ) + 81 ) )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6652
SELECT ALL 4 + 67 + MIN( DISTINCT + 87 ) AS col2
----
158

skipif mysql # not compatible
query I rowsort label-6652
SELECT ALL 4 + 67 + MIN ( DISTINCT + 87 ) AS col2
----
158

query I rowsort
SELECT + 9 + 70 AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6654
SELECT ( - + 4 ) + 58 - + COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-6654
SELECT ( - + 4 ) + 58 - + COUNT ( * )
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6655
SELECT DISTINCT 9 * CAST( 47 AS SIGNED )
----
423

skipif mysql # not compatible
query I rowsort label-6655
SELECT DISTINCT 9 * CAST ( 47 AS INTEGER )
----
423

onlyif mysql # aggregate syntax: 
query I rowsort label-6656
SELECT - SUM( ALL + ( - - 57 ) )
----
-57

skipif mysql # not compatible
query I rowsort label-6656
SELECT - SUM ( ALL + ( - - 57 ) )
----
-57

query I rowsort
SELECT 5 + + + 86 * - + 82 AS col1
----
-7047

query I rowsort
SELECT - ( - - NULLIF ( 12, - + 35 ) )
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-6659
SELECT - 37 AS col1, + ( + COUNT( * ) ) * - 55 col0
----
-37
-55

skipif mysql # not compatible
query II rowsort label-6659
SELECT - 37 AS col1, + ( + COUNT ( * ) ) * - 55 col0
----
-37
-55

onlyif mysql # DIV for integer division: 
query II rowsort label-6660
SELECT + + 0, 39 DIV + - 45 * 66 * - 20
----
0
0

skipif mysql # not compatible
query II rowsort label-6660
SELECT + + 0, 39 / + - 45 * 66 * - 20
----
0
0

query I rowsort
SELECT ALL - - 25 col2
----
25

query I rowsort
SELECT ALL + + 80 * 59 - - 98 col2
----
4818

query II rowsort
SELECT 63 AS col0, 16
----
63
16

query I rowsort
SELECT + 18 * + 54 * + NULLIF ( 97, + 61 * + 84 ) + + 46 AS col2
----
94330

query I rowsort
SELECT 53 * + + 82
----
4346

onlyif mysql # aggregate syntax: 
query I rowsort label-6666
SELECT + 67 * + + 22 + - 5 - + 67 * + COUNT( 4 ) - + ( + 48 )
----
1354

skipif mysql # not compatible
query I rowsort label-6666
SELECT + 67 * + + 22 + - 5 - + 67 * + COUNT ( 4 ) - + ( + 48 )
----
1354

onlyif mysql # aggregate syntax: 
query I rowsort label-6667
SELECT 2 + - COUNT( * ) + + - 12 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-6667
SELECT 2 + - COUNT ( * ) + + - 12 AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6668
SELECT - SUM( ALL - 89 ) + - + COUNT( * ) - + 84 - - - 35 + + 63 * - 96 + + + 65 + + ( + 15 ) * + 77 * + ( - 90 ) AS col2
----
-109964

skipif mysql # not compatible
query I rowsort label-6668
SELECT - SUM ( ALL - 89 ) + - + COUNT ( * ) - + 84 - - - 35 + + 63 * - 96 + + + 65 + + ( + 15 ) * + 77 * + ( - 90 ) AS col2
----
-109964

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6669
SELECT DISTINCT + 7 * + COUNT( * ) + + + COALESCE ( + 79, + 29 ) AS col0, CAST( NULL AS SIGNED ) * - + ( - CAST( 93 AS DECIMAL ) ) AS col0
----
86
NULL

skipif mysql # not compatible
query II rowsort label-6669
SELECT DISTINCT + 7 * + COUNT ( * ) + + + COALESCE ( + 79, + 29 ) AS col0, CAST ( NULL AS INTEGER ) * - + ( - CAST ( 93 AS REAL ) ) AS col0
----
86
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6670
SELECT DISTINCT - MAX( ALL + + 5 ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-6670
SELECT DISTINCT - MAX ( ALL + + 5 ) AS col0
----
-5

query I rowsort
SELECT 49 * + - 59 - + 28 AS col2
----
-2919

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6672
SELECT ALL - SUM( DISTINCT + 8 ) DIV - 14 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6672
SELECT ALL - SUM ( DISTINCT + 8 ) / - 14 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6673
SELECT 27 * - MIN( - + 48 )
----
1296

skipif mysql # not compatible
query I rowsort label-6673
SELECT 27 * - MIN ( - + 48 )
----
1296

query I rowsort
SELECT - 92 * 77 * 34 * - 13 + 11
----
3131139

onlyif mysql # aggregate syntax: 
query I rowsort label-6675
SELECT 36 * + COUNT( * ) * + 68
----
2448

skipif mysql # not compatible
query I rowsort label-6675
SELECT 36 * + COUNT ( * ) * + 68
----
2448

query II rowsort
SELECT 60 AS col0, - 39 * 13 AS col0
----
60
-507

query I rowsort
SELECT 75 - ( 85 )
----
-10

query II rowsort
SELECT DISTINCT 69 + + COALESCE ( 67, + 90, - 36 * - 5 ) * + 62 AS col2, - 87
----
4223
-87

query I rowsort
SELECT DISTINCT + 60 + + ( + 36 ) AS col1
----
96

query II rowsort
SELECT - 81 AS col2, 19 + - 49
----
-81
-30

query I rowsort
SELECT ALL + 42 + 79
----
121

query II rowsort
SELECT 51 + - 91 AS col0, - NULLIF ( + + 56, 12 ) AS col1
----
-40
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-6683
SELECT - 34 AS col2, - COUNT( * ) AS col2
----
-34
-1

skipif mysql # not compatible
query II rowsort label-6683
SELECT - 34 AS col2, - COUNT ( * ) AS col2
----
-34
-1

query I rowsort
SELECT 61 + - 76
----
-15

query I rowsort
SELECT - 99 + ( + ( + + 18 ) ) col1
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-6686
SELECT - + 35 AS col0, - COUNT( * )
----
-35
-1

skipif mysql # not compatible
query II rowsort label-6686
SELECT - + 35 AS col0, - COUNT ( * )
----
-35
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6687
SELECT 22 + CASE 10 WHEN + ( 70 ) * - ( + + 41 ) THEN 62 * - + 48 + MIN( ALL + 64 ) WHEN + 72 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6687
SELECT 22 + CASE 10 WHEN + ( 70 ) * - ( + + 41 ) THEN 62 * - + 48 + MIN ( ALL + 64 ) WHEN + 72 THEN COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6688
SELECT - SUM( DISTINCT 36 )
----
-36

skipif mysql # not compatible
query I rowsort label-6688
SELECT - SUM ( DISTINCT 36 )
----
-36

query I rowsort
SELECT ALL + 65 - + 74 AS col1
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-6690
SELECT - 93 AS col2, COUNT( * )
----
-93
1

skipif mysql # not compatible
query II rowsort label-6690
SELECT - 93 AS col2, COUNT ( * )
----
-93
1

query I rowsort
SELECT DISTINCT ( + 78 ) AS col2
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-6692
SELECT ALL - 96 DIV 6 * - 28
----
448

skipif mysql # not compatible
query I rowsort label-6692
SELECT ALL - 96 / 6 * - 28
----
448

query I rowsort
SELECT DISTINCT ( + 6 ) * - 82 AS col1
----
-492

query I rowsort
SELECT DISTINCT ( - 23 ) * + 16 * - ( - + 20 )
----
-7360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6695
SELECT ( + COUNT( * ) ) DIV + 34 + - - 62 + - + COUNT( * ) col0
----
61

skipif mysql # not compatible
query I rowsort label-6695
SELECT ( + COUNT ( * ) ) / + 34 + - - 62 + - + COUNT ( * ) col0
----
61

onlyif mysql # DIV for integer division: 
query II rowsort label-6696
SELECT 78 + - NULLIF ( - 49, - 8 ) AS col1, + 7 DIV 9 AS col2
----
127
0

skipif mysql # not compatible
query II rowsort label-6696
SELECT 78 + - NULLIF ( - 49, - 8 ) AS col1, + 7 / 9 AS col2
----
127
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6697
SELECT 22 DIV - + ( + + 27 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6697
SELECT 22 / - + ( + + 27 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6698
SELECT + SUM( + + 22 ) + + 71 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-6698
SELECT + SUM ( + + 22 ) + + 71 AS col1
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6699
SELECT - COUNT( ALL 98 ) DIV - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6699
SELECT - COUNT ( ALL 98 ) / - COUNT ( * ) AS col1
----
1

query I rowsort
SELECT ALL - - 59 AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6701
SELECT + 40 * + + CASE 43 WHEN + 21 * 27 * 12 + - COUNT( * ) / - 88 + - - 37 THEN - CASE - 6 WHEN MIN( DISTINCT + 29 ) * - + 0 * + 35 + + + 59 THEN + + AVG ( DISTINCT 2 ) + + 76 END + + ( - 74 ) WHEN MIN( DISTINCT + 11 ) THEN NULL END + + - COALESCE ( + 95, + 58 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6701
SELECT + 40 * + + CASE 43 WHEN + 21 * 27 * 12 + - COUNT ( * ) / - 88 + - - 37 THEN - CASE - 6 WHEN MIN ( DISTINCT + 29 ) * - + 0 * + 35 + + + 59 THEN + + AVG ( DISTINCT 2 ) + + 76 END + + ( - 74 ) WHEN MIN ( DISTINCT + 11 ) THEN NULL END + + - COALESCE ( + 95, + 58 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6702
SELECT - 99 - CAST( + COUNT( * ) AS SIGNED ) AS col2
----
-100

skipif mysql # not compatible
query I rowsort label-6702
SELECT - 99 - CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
-100

onlyif mysql # DIV for integer division: 
query I rowsort label-6703
SELECT 1 DIV - 45
----
0

skipif mysql # not compatible
query I rowsort label-6703
SELECT 1 / - 45
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6704
SELECT + - COUNT( * ) * - 77 * - COUNT( * ) + - 83 col0, 27 * 28 AS col2
----
-160
756

skipif mysql # not compatible
query II rowsort label-6704
SELECT + - COUNT ( * ) * - 77 * - COUNT ( * ) + - 83 col0, 27 * 28 AS col2
----
-160
756

query I rowsort
SELECT ALL - + 82 AS col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6706
SELECT ALL - CASE + SUM( 18 ) WHEN - 7 THEN COUNT( ALL - 99 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6706
SELECT ALL - CASE + SUM ( 18 ) WHEN - 7 THEN COUNT ( ALL - 99 ) END AS col2
----
NULL

query I rowsort
SELECT ALL + 20 + - 47
----
-27

query I rowsort
SELECT DISTINCT - 45 + - 53
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6709
SELECT DISTINCT COUNT( * ) + - + 88 col0
----
-87

skipif mysql # not compatible
query I rowsort label-6709
SELECT DISTINCT COUNT ( * ) + - + 88 col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-6710
SELECT 46 * - 59 * + COUNT( * ) AS col2
----
-2714

skipif mysql # not compatible
query I rowsort label-6710
SELECT 46 * - 59 * + COUNT ( * ) AS col2
----
-2714

onlyif mysql # aggregate syntax: 
query I rowsort label-6711
SELECT 54 * - + 84 * - 83 + - + 93 + - 72 * - 79 * 4 * + COUNT( * ) AS col0
----
399147

skipif mysql # not compatible
query I rowsort label-6711
SELECT 54 * - + 84 * - 83 + - + 93 + - 72 * - 79 * 4 * + COUNT ( * ) AS col0
----
399147

onlyif mysql # aggregate syntax: 
query I rowsort label-6712
SELECT ALL COUNT( * ) + 84
----
85

skipif mysql # not compatible
query I rowsort label-6712
SELECT ALL COUNT ( * ) + 84
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6713
SELECT MIN( 67 ), + CASE + 34 WHEN CAST( + CAST( + COUNT( * ) AS SIGNED ) AS SIGNED ) * + 58 * - COUNT( * ) * - + 24 THEN NULL WHEN - 77 THEN NULL ELSE ( 13 ) END * + COALESCE ( - 96, - 19 + - + 82 ) DIV - 1 + - 32 col0
----
67
1216

skipif mysql # not compatible
query II rowsort label-6713
SELECT MIN ( 67 ), + CASE + 34 WHEN CAST ( + CAST ( + COUNT ( * ) AS INTEGER ) AS INTEGER ) * + 58 * - COUNT ( * ) * - + 24 THEN NULL WHEN - 77 THEN NULL ELSE ( 13 ) END * + COALESCE ( - 96, - 19 + - + 82 ) / - 1 + - 32 col0
----
67
1216

query I rowsort
SELECT 36 + - + 70
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-6715
SELECT + CASE + 45 WHEN + SUM( DISTINCT + 3 ) THEN NULL WHEN - + 23 THEN 37 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6715
SELECT + CASE + 45 WHEN + SUM ( DISTINCT + 3 ) THEN NULL WHEN - + 23 THEN 37 ELSE NULL END
----
NULL

query II rowsort
SELECT 75 + - 15, 14 + + 26 + + 35 col2
----
60
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6717
SELECT DISTINCT + 73 + - - 85 + 8 DIV + + 76 - + COUNT( * ) + - + 38 * + - 0 AS col2
----
157

skipif mysql # not compatible
query I rowsort label-6717
SELECT DISTINCT + 73 + - - 85 + 8 / + + 76 - + COUNT ( * ) + - + 38 * + - 0 AS col2
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-6718
SELECT ALL - 18 + 62 * - + COUNT( ALL 0 ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-6718
SELECT ALL - 18 + 62 * - + COUNT ( ALL 0 ) AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6719
SELECT ALL 98 * 91 * - MIN( 99 ) col1
----
-882882

skipif mysql # not compatible
query I rowsort label-6719
SELECT ALL 98 * 91 * - MIN ( 99 ) col1
----
-882882

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6720
SELECT DISTINCT ( - - 28 ) + + ( + + CAST( NULL AS SIGNED ) ) + + + 48 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6720
SELECT DISTINCT ( - - 28 ) + + ( + + CAST ( NULL AS INTEGER ) ) + + + 48 * - COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + 73 + + 91
----
164

query I rowsort
SELECT - 63 + + 82
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6723
SELECT DISTINCT - 1 DIV + - 84, - COUNT( * ) + - - CAST( NULL AS SIGNED ) AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-6723
SELECT DISTINCT - 1 / + - 84, - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) AS col1
----
0
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6724
SELECT - 9 - CAST( 92 AS SIGNED ), - 88 DIV 76 AS col0
----
-101
-1

skipif mysql # not compatible
query II rowsort label-6724
SELECT - 9 - CAST ( 92 AS INTEGER ), - 88 / 76 AS col0
----
-101
-1

query I rowsort
SELECT - 15 * + ( + 59 ) col0
----
-885

query I rowsort
SELECT ALL - 83 * - 22 AS col2
----
1826

onlyif mysql # aggregate syntax: 
query I rowsort label-6727
SELECT DISTINCT CASE 10 WHEN + 76 + + - 24 THEN NULL WHEN 96 THEN COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6727
SELECT DISTINCT CASE 10 WHEN + 76 + + - 24 THEN NULL WHEN 96 THEN COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6728
SELECT + - 0 + COUNT( * ) + ( + ( 77 ) )
----
78

skipif mysql # not compatible
query I rowsort label-6728
SELECT + - 0 + COUNT ( * ) + ( + ( 77 ) )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6729
SELECT ALL + SUM( - - 27 ) * 28 * - 53 * - 29 * + NULLIF ( 75, + - 45 + + 29 ) col1
----
87147900

skipif mysql # not compatible
query I rowsort label-6729
SELECT ALL + SUM ( - - 27 ) * 28 * - 53 * - 29 * + NULLIF ( 75, + - 45 + + 29 ) col1
----
87147900

query I rowsort
SELECT - - NULLIF ( + 44, + - 60 ) AS col0
----
44

query II rowsort
SELECT DISTINCT + + ( + 0 ) * 59, 18 col0
----
0
18

query I rowsort
SELECT - - 56 * 51 AS col2
----
2856

onlyif mysql # aggregate syntax: 
query II rowsort label-6733
SELECT ALL + SUM( 91 ) col0, + 64 col1
----
91
64

skipif mysql # not compatible
query II rowsort label-6733
SELECT ALL + SUM ( 91 ) col0, + 64 col1
----
91
64

query I rowsort
SELECT DISTINCT NULLIF ( - 44, + 15 ) AS col2
----
-44

query I rowsort
SELECT + 60 * - - 19 col0
----
1140

onlyif mysql # aggregate syntax: 
query I rowsort label-6736
SELECT + - ( + ( - 99 ) ) + - COUNT( * ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-6736
SELECT + - ( + ( - 99 ) ) + - COUNT ( * ) AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6737
SELECT + + 29 * + COUNT( * ) * - 30 * - + 76
----
66120

skipif mysql # not compatible
query I rowsort label-6737
SELECT + + 29 * + COUNT ( * ) * - 30 * - + 76
----
66120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6738
SELECT ALL + COALESCE ( 38, 83 + + - MIN( + + 18 ), + + 14 DIV - 78 ) * 33 DIV + 15
----
83

skipif mysql # not compatible
query I rowsort label-6738
SELECT ALL + COALESCE ( 38, 83 + + - MIN ( + + 18 ), + + 14 / - 78 ) * 33 / + 15
----
83

query I rowsort
SELECT DISTINCT + + 71 AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6740
SELECT DISTINCT - NULLIF ( - 66, + - MAX( ALL - 87 ) ) * + COUNT( ALL 3 ) + 86
----
152

skipif mysql # not compatible
query I rowsort label-6740
SELECT DISTINCT - NULLIF ( - 66, + - MAX ( ALL - 87 ) ) * + COUNT ( ALL 3 ) + 86
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-6741
SELECT ALL + - MAX( ALL - 36 )
----
36

skipif mysql # not compatible
query I rowsort label-6741
SELECT ALL + - MAX ( ALL - 36 )
----
36

query I rowsort
SELECT ALL + 2 * + 32 * + 61 + - 7 * 96 AS col1
----
3232

query I rowsort
SELECT - 8 * 25 - + - 3 + + 76 * 94
----
6947

onlyif mysql # DIV for integer division: 
query I rowsort label-6744
SELECT + 11 DIV - 69
----
0

skipif mysql # not compatible
query I rowsort label-6744
SELECT + 11 / - 69
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6745
SELECT + COUNT( * ) * + 72 DIV + - 42
----
-1

skipif mysql # not compatible
query I rowsort label-6745
SELECT + COUNT ( * ) * + 72 / + - 42
----
-1

query I rowsort
SELECT + NULLIF ( ( + 9 ), 4 ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-6747
SELECT + 0 AS col1, COUNT( * ) * - NULLIF ( NULLIF ( + - ( - 85 ), + 34 * - + 89 + + 28 - + NULLIF ( + NULLIF ( - 12, 41 ), 54 * - COUNT( * ) * - 81 * - 7 ) * + 53 ), - - 72 * + 56 + + COUNT( * ) + - NULLIF ( - 91, - + COUNT( * ) ) * + ( + 64 ) + + 47 ) * + COUNT( * ) * COUNT( + 92 ) AS col0
----
0
-85

skipif mysql # not compatible
query II rowsort label-6747
SELECT + 0 AS col1, COUNT ( * ) * - NULLIF ( NULLIF ( + - ( - 85 ), + 34 * - + 89 + + 28 - + NULLIF ( + NULLIF ( - 12, 41 ), 54 * - COUNT ( * ) * - 81 * - 7 ) * + 53 ), - - 72 * + 56 + + COUNT ( * ) + - NULLIF ( - 91, - + COUNT ( * ) ) * + ( + 64 ) + + 47 ) * + COUNT ( * ) * COUNT ( + 92 ) AS col0
----
0
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6748
SELECT CASE - - COALESCE ( - - 68, - 94 ) WHEN - 50 * - + NULLIF ( - + 31, + + 25 ) + + 19 + - COALESCE ( 65, + - 77 * COALESCE ( + COUNT( * ), + 76 ), 7 * + + COUNT( + 12 ) * - 93 ) + - + NULLIF ( - 20, - - 49 ) + ( - - SUM( DISTINCT 75 ) ) * + 58 * - 86 * + COUNT( * ) + + CAST( - 40 AS SIGNED ) * - - 20 + - + 17 THEN - MIN( ALL - + 29 ) ELSE COUNT( - 28 ) * - 33 END
----
-33

skipif mysql # not compatible
query I rowsort label-6748
SELECT CASE - - COALESCE ( - - 68, - 94 ) WHEN - 50 * - + NULLIF ( - + 31, + + 25 ) + + 19 + - COALESCE ( 65, + - 77 * COALESCE ( + COUNT ( * ), + 76 ), 7 * + + COUNT ( + 12 ) * - 93 ) + - + NULLIF ( - 20, - - 49 ) + ( - - SUM ( DISTINCT 75 ) ) * + 58 * - 86 * + COUNT ( * ) + + CAST ( - 40 AS INTEGER ) * - - 20 + - + 17 THEN - MIN ( ALL - + 29 ) ELSE COUNT ( - 28 ) * - 33 END
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6749
SELECT 77 * + 96 + + 51, - ( + - 25 ) + + + 54 + + COUNT( * ) DIV - + 54 * + 2 DIV + COUNT( * ) DIV COUNT( * ) + + 84 AS col1
----
7443
163

skipif mysql # not compatible
query II rowsort label-6749
SELECT 77 * + 96 + + 51, - ( + - 25 ) + + + 54 + + COUNT ( * ) / - + 54 * + 2 / + COUNT ( * ) / COUNT ( * ) + + 84 AS col1
----
7443
163

query I rowsort
SELECT DISTINCT - 9 * - + ( - + 25 ) - - 61 + 28
----
-136

query I rowsort
SELECT + ( + 32 ) AS col0
----
32

query II rowsort
SELECT + 68 AS col1, ( - + 45 ) AS col1
----
68
-45

query I rowsort
SELECT - 22 + 7
----
-15

query I rowsort
SELECT + 33 * - 61 AS col2
----
-2013

onlyif mysql # aggregate syntax: 
query I rowsort label-6755
SELECT - 39 * + COUNT( * ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-6755
SELECT - 39 * + COUNT ( * ) AS col2
----
-39

query I rowsort
SELECT ALL 45 * - ( + 73 )
----
-3285

query I rowsort
SELECT + 46 * + + 80 * 10 + - 23 + - - ( 21 ) AS col0
----
36798

query I rowsort
SELECT + 86 + - 41
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6759
SELECT 24 * - MIN( ALL + 98 ) - + - 95 AS col2
----
-2257

skipif mysql # not compatible
query I rowsort label-6759
SELECT 24 * - MIN ( ALL + 98 ) - + - 95 AS col2
----
-2257

query I rowsort
SELECT + 3 * + 71
----
213

onlyif mysql # aggregate syntax: 
query I rowsort label-6761
SELECT ALL MAX( DISTINCT - 11 ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-6761
SELECT ALL MAX ( DISTINCT - 11 ) AS col2
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6762
SELECT ALL - - COUNT( * ) DIV + 21 * 21 col0
----
0

skipif mysql # not compatible
query I rowsort label-6762
SELECT ALL - - COUNT ( * ) / + 21 * 21 col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6763
SELECT ALL + 13 + ( - CASE - 71 WHEN + 55 THEN SUM( DISTINCT - 93 ) * + COALESCE ( + 54, + + 19 * + 94 ) + + 18 WHEN + 43 * - COUNT( * ) THEN - + 51 ELSE - - 33 DIV - + NULLIF ( - + COUNT( * ), + + ( 69 ) * - 52 ) + - 90 END ) + - 36 AS col1, SUM( + + 82 ) DIV 53 + - + 89 AS col2
----
34
-88

skipif mysql # not compatible
query II rowsort label-6763
SELECT ALL + 13 + ( - CASE - 71 WHEN + 55 THEN SUM ( DISTINCT - 93 ) * + COALESCE ( + 54, + + 19 * + 94 ) + + 18 WHEN + 43 * - COUNT ( * ) THEN - + 51 ELSE - - 33 / - + NULLIF ( - + COUNT ( * ), + + ( 69 ) * - 52 ) + - 90 END ) + - 36 AS col1, SUM ( + + 82 ) / 53 + - + 89 AS col2
----
34
-88

query I rowsort
SELECT - - 2 - - 22 + + 97 * - - ( - 7 ) col1
----
-655

onlyif mysql # aggregate syntax: 
query I rowsort label-6765
SELECT - + 33 + 7 * - + ( - 86 ) + - MIN( - 64 ) + + - 52 * - 81 AS col0
----
4845

skipif mysql # not compatible
query I rowsort label-6765
SELECT - + 33 + 7 * - + ( - 86 ) + - MIN ( - 64 ) + + - 52 * - 81 AS col0
----
4845

onlyif mysql # aggregate syntax: 
query I rowsort label-6766
SELECT DISTINCT - + CASE + 80 WHEN + 20 THEN + 0 WHEN - - 96 THEN + + COUNT( * ) * + + 16 END * + ( 96 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6766
SELECT DISTINCT - + CASE + 80 WHEN + 20 THEN + 0 WHEN - - 96 THEN + + COUNT ( * ) * + + 16 END * + ( 96 )
----
NULL

query II rowsort
SELECT 94 AS col2, - 81
----
94
-81

query I rowsort
SELECT DISTINCT + ( 51 ) + 68 AS col1
----
119

query I rowsort
SELECT ALL - 61 * - - 52 AS col0
----
-3172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6770
SELECT ALL 77 + - CASE - 31 WHEN + 13 * + + 20 + - 44 THEN - - CAST( NULL AS SIGNED ) * - COUNT( * ) WHEN 25 THEN 75 + - CASE + + 18 WHEN 69 + + COUNT( * ) * + 11 * CAST( + + 52 AS DECIMAL ) THEN NULL WHEN 94 * + CAST( 15 AS SIGNED ) * + + 78 + - 39 * - - 14 + 70 THEN - + 37 * + - 89 / - CASE - 48 WHEN - 16 + + 88 - - 94 THEN + + COUNT( * ) ELSE + 91 END ELSE NULL END END / - + 3 - + 49 + + - COUNT( 75 ) + 47 - + CAST( 57 + 1 AS SIGNED ) * - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-6770
SELECT ALL 77 + - CASE - 31 WHEN + 13 * + + 20 + - 44 THEN - - CAST ( NULL AS INTEGER ) * - COUNT ( * ) WHEN 25 THEN 75 + - CASE + + 18 WHEN 69 + + COUNT ( * ) * + 11 * CAST ( + + 52 AS REAL ) THEN NULL WHEN 94 * + CAST ( 15 AS INTEGER ) * + + 78 + - 39 * - - 14 + 70 THEN - + 37 * + - 89 / - CASE - 48 WHEN - 16 + + 88 - - 94 THEN + + COUNT ( * ) ELSE + 91 END ELSE NULL END END / - + 3 - + 49 + + - COUNT ( 75 ) + 47 - + CAST ( 57 + 1 AS INTEGER ) * - 73
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6771
SELECT ALL + - 64 + 52 + - CAST( + 76 AS SIGNED )
----
-88

skipif mysql # not compatible
query I rowsort label-6771
SELECT ALL + - 64 + 52 + - CAST ( + 76 AS INTEGER )
----
-88

query I rowsort
SELECT DISTINCT - - 1 * - + 28 AS col1
----
-28

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-6773
SELECT 17 DIV + 42 + 6 + - COUNT( * ) + + + 56 + + 28 + NULLIF ( + COUNT( * ), + SUM( 30 ) * - 56 + + COALESCE ( + 35, - 3, 7 ) ) * COUNT( * ) AS col2, CAST( NULL AS DECIMAL ) * + + 23 * - + 69
----
90
NULL

skipif mysql # not compatible
query II rowsort label-6773
SELECT 17 / + 42 + 6 + - COUNT ( * ) + + + 56 + + 28 + NULLIF ( + COUNT ( * ), + SUM ( 30 ) * - 56 + + COALESCE ( + 35, - 3, 7 ) ) * COUNT ( * ) AS col2, CAST ( NULL AS REAL ) * + + 23 * - + 69
----
90
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6774
SELECT + + SUM( - 44 ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-6774
SELECT + + SUM ( - 44 ) AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6775
SELECT DISTINCT + CASE + 56 WHEN ( - 71 ) / + 69 THEN NULL WHEN COALESCE ( - + 85, ( COUNT( - - 58 ) ) + + 32, 49 * + - 92 ) / + + 46 THEN 65 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6775
SELECT DISTINCT + CASE + 56 WHEN ( - 71 ) / + 69 THEN NULL WHEN COALESCE ( - + 85, ( COUNT ( - - 58 ) ) + + 32, 49 * + - 92 ) / + + 46 THEN 65 ELSE NULL END
----
NULL

query I rowsort
SELECT + + 26 + + 19 AS col0
----
45

query I rowsort
SELECT - 0 * + + ( + 75 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6778
SELECT + COUNT( * ) + + 6 - - - SUM( DISTINCT + 28 ) * 6
----
-161

skipif mysql # not compatible
query I rowsort label-6778
SELECT + COUNT ( * ) + + 6 - - - SUM ( DISTINCT + 28 ) * 6
----
-161

query I rowsort
SELECT + COALESCE ( + 2, - 72 * + 84 * - 3 * + 66 - 76 + + - 7 * - + 1 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6780
SELECT ALL - CASE 90 WHEN 76 * - + 56 * + + 37 + 92 THEN MAX( ALL 44 ) WHEN 11 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6780
SELECT ALL - CASE 90 WHEN 76 * - + 56 * + + 37 + 92 THEN MAX ( ALL 44 ) WHEN 11 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6781
SELECT ALL + 19 DIV - 57
----
0

skipif mysql # not compatible
query I rowsort label-6781
SELECT ALL + 19 / - 57
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6782
SELECT MAX( 71 ) * + 69 * - 29 * + 27 + + COALESCE ( + COUNT( * ), 90 - + 53 * + 31 * - 8 * + 45 + + CASE + CASE WHEN NULL <= + CASE 76 WHEN - AVG ( ALL - ( - CAST( + 26 AS SIGNED ) ) ) THEN NULL WHEN COUNT( * ) * + 82 THEN NULL ELSE - 43 * - - 19 + - + 32 * + - 65 * + ( - - 17 ) DIV + - 78 * CAST( - 29 AS SIGNED ) END THEN + 75 DIV + - 40 * - 82 ELSE COUNT( * ) END WHEN - + COUNT( * ) THEN + 22 - + CAST( NULL AS SIGNED ) DIV COUNT( * ) ELSE NULL END + + 26 * 40 )
----
-3835916

skipif mysql # not compatible
query I rowsort label-6782
SELECT MAX ( 71 ) * + 69 * - 29 * + 27 + + COALESCE ( + COUNT ( * ), 90 - + 53 * + 31 * - 8 * + 45 + + CASE + CASE WHEN NULL <= + CASE 76 WHEN - AVG ( ALL - ( - CAST ( + 26 AS INTEGER ) ) ) THEN NULL WHEN COUNT ( * ) * + 82 THEN NULL ELSE - 43 * - - 19 + - + 32 * + - 65 * + ( - - 17 ) / + - 78 * CAST ( - 29 AS INTEGER ) END THEN + 75 / + - 40 * - 82 ELSE COUNT ( * ) END WHEN - + COUNT ( * ) THEN + 22 - + CAST ( NULL AS INTEGER ) / COUNT ( * ) ELSE NULL END + + 26 * 40 )
----
-3835916

query I rowsort
SELECT ALL 51 - 42 AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6784
SELECT DISTINCT 10 * - CASE - 85 WHEN - 31 - + 79 + - 67 THEN NULL WHEN - 98 + - - 12 THEN NULL ELSE - + 84 * - ( - COUNT( * ) ) END AS col0
----
840

skipif mysql # not compatible
query I rowsort label-6784
SELECT DISTINCT 10 * - CASE - 85 WHEN - 31 - + 79 + - 67 THEN NULL WHEN - 98 + - - 12 THEN NULL ELSE - + 84 * - ( - COUNT ( * ) ) END AS col0
----
840

query I rowsort
SELECT + 42 * - 38 + + + 23 + 64
----
-1509

onlyif mysql # DIV for integer division: 
query I rowsort label-6786
SELECT 55 DIV 39
----
1

skipif mysql # not compatible
query I rowsort label-6786
SELECT 55 / 39
----
1

query I rowsort
SELECT 0 * 10 * + - 2 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6788
SELECT 71 + - COUNT( * ) + + - 22 * - ( + 57 ) + - 65
----
1259

skipif mysql # not compatible
query I rowsort label-6788
SELECT 71 + - COUNT ( * ) + + - 22 * - ( + 57 ) + - 65
----
1259

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6789
SELECT CAST( NULL AS DECIMAL ) + 45 AS col1, - COALESCE ( - - 60, + CAST( 53 AS SIGNED ) ) + - ( + 35 )
----
NULL
-95

skipif mysql # not compatible
query II rowsort label-6789
SELECT CAST ( NULL AS REAL ) + 45 AS col1, - COALESCE ( - - 60, + CAST ( 53 AS INTEGER ) ) + - ( + 35 )
----
NULL
-95

query I rowsort
SELECT DISTINCT - 25 col1
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6791
SELECT - CASE 30 WHEN - 28 * - MAX( ALL - - 11 ) + + + 1 THEN CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6791
SELECT - CASE 30 WHEN - 28 * - MAX ( ALL - - 11 ) + + + 1 THEN CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT DISTINCT + 84 + - - 0 AS col0
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6793
SELECT - 51 + - + NULLIF ( - - 96, + CAST( NULL AS SIGNED ) ) AS col1
----
-147

skipif mysql # not compatible
query I rowsort label-6793
SELECT - 51 + - + NULLIF ( - - 96, + CAST ( NULL AS INTEGER ) ) AS col1
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-6794
SELECT ALL + + 4 + + CASE + 61 WHEN COUNT( * ) + + 31 THEN - 43 WHEN + + 98 * + - 83 THEN - 92 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6794
SELECT ALL + + 4 + + CASE + 61 WHEN COUNT ( * ) + + 31 THEN - 43 WHEN + + 98 * + - 83 THEN - 92 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6795
SELECT DISTINCT - ( ( - CAST( - 25 AS SIGNED ) ) ) + + SUM( ALL - CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6795
SELECT DISTINCT - ( ( - CAST ( - 25 AS INTEGER ) ) ) + + SUM ( ALL - CAST ( NULL AS REAL ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( 66 ) AS col1
----
66

query II rowsort
SELECT ALL + + 28 + + 24, 2 AS col1
----
52
2

query I rowsort
SELECT + ( + 32 ) * - 40
----
-1280

onlyif mysql # aggregate syntax: 
query I rowsort label-6799
SELECT DISTINCT + 69 + 73 * - 75 * COUNT( * )
----
-5406

skipif mysql # not compatible
query I rowsort label-6799
SELECT DISTINCT + 69 + 73 * - 75 * COUNT ( * )
----
-5406

query I rowsort
SELECT 22 * - 31 AS col1
----
-682

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6801
SELECT ALL COALESCE ( - - 16, - CAST( NULL AS SIGNED ) ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-6801
SELECT ALL COALESCE ( - - 16, - CAST ( NULL AS INTEGER ) ) AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6802
SELECT ALL + MAX( DISTINCT - + 86 ) - 35 - + - NULLIF ( + + ( + 4 ), 69 ) + - CASE + - 38 WHEN - 37 * + 85 THEN NULL WHEN + - MAX( - 86 ) * NULLIF ( - 12, + 69 ) THEN - 54 * 62 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6802
SELECT ALL + MAX ( DISTINCT - + 86 ) - 35 - + - NULLIF ( + + ( + 4 ), 69 ) + - CASE + - 38 WHEN - 37 * + 85 THEN NULL WHEN + - MAX ( - 86 ) * NULLIF ( - 12, + 69 ) THEN - 54 * 62 END AS col1
----
NULL

query I rowsort
SELECT 46 * 29 AS col0
----
1334

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6804
SELECT DISTINCT CAST( NULL AS SIGNED ) / + 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6804
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + 32 AS col2
----
NULL

query II rowsort
SELECT ALL - 84 AS col1, - 78 col0
----
-84
-78

query I rowsort
SELECT 58 * - ( + 73 )
----
-4234

onlyif mysql # aggregate syntax: 
query I rowsort label-6807
SELECT ALL + 32 * - COUNT( * ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-6807
SELECT ALL + 32 * - COUNT ( * ) AS col0
----
-32

query I rowsort
SELECT DISTINCT + 14 * 49
----
686

onlyif mysql # DIV for integer division: 
query I rowsort label-6809
SELECT 24 * - 10 * + - 76 + + ( - 68 ) DIV - 62 AS col2
----
18241

skipif mysql # not compatible
query I rowsort label-6809
SELECT 24 * - 10 * + - 76 + + ( - 68 ) / - 62 AS col2
----
18241

onlyif mysql # aggregate syntax: 
query I rowsort label-6810
SELECT ALL - NULLIF ( + - 87, + 82 + 20 * + 11 * - + COUNT( - 78 ) / + 93 * - MAX( ALL 79 ) + - - 15 + + 42 * - + 5 )
----
87

skipif mysql # not compatible
query I rowsort label-6810
SELECT ALL - NULLIF ( + - 87, + 82 + 20 * + 11 * - + COUNT ( - 78 ) / + 93 * - MAX ( ALL 79 ) + - - 15 + + 42 * - + 5 )
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6811
SELECT + 0 / MIN( - 21 ) * 7 / + + CAST( NULL AS SIGNED ) + + COUNT( + COALESCE ( - 28, + + 81 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6811
SELECT + 0 / MIN ( - 21 ) * 7 / + + CAST ( NULL AS INTEGER ) + + COUNT ( + COALESCE ( - 28, + + 81 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6812
SELECT COUNT( * ) * + 40 col1
----
40

skipif mysql # not compatible
query I rowsort label-6812
SELECT COUNT ( * ) * + 40 col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6813
SELECT 71 * COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-6813
SELECT 71 * COUNT ( * )
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-6814
SELECT 74 + - 58 DIV - 16 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-6814
SELECT 74 + - 58 / - 16 AS col0
----
77

query I rowsort
SELECT ALL - COALESCE ( 92, - 70 + + 50 - + - 91 * + 97 ) AS col2
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6816
SELECT COUNT( + 64 ) / - + CASE - COALESCE ( 68, 49 * 1 ) WHEN + 68 THEN + + 89 * COUNT( * ) WHEN 20 THEN NULL ELSE + 8 END + - - ( + + 22 ) * + MIN( DISTINCT - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6816
SELECT COUNT ( + 64 ) / - + CASE - COALESCE ( 68, 49 * 1 ) WHEN + 68 THEN + + 89 * COUNT ( * ) WHEN 20 THEN NULL ELSE + 8 END + - - ( + + 22 ) * + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6817
SELECT NULLIF ( + COUNT( * ), + 76 * + 48 * - 98 ) + ( 66 )
----
67

skipif mysql # not compatible
query I rowsort label-6817
SELECT NULLIF ( + COUNT ( * ), + 76 * + 48 * - 98 ) + ( 66 )
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-6818
SELECT DISTINCT - COUNT( * ) AS col1, + 9 + + + 55
----
-1
64

skipif mysql # not compatible
query II rowsort label-6818
SELECT DISTINCT - COUNT ( * ) AS col1, + 9 + + + 55
----
-1
64

query I rowsort
SELECT ALL + 88 + 94 AS col0
----
182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6820
SELECT + ( - - NULLIF ( 79, - ( - CAST( NULL AS SIGNED ) ) * - + 15 * - 62 ) )
----
79

skipif mysql # not compatible
query I rowsort label-6820
SELECT + ( - - NULLIF ( 79, - ( - CAST ( NULL AS INTEGER ) ) * - + 15 * - 62 ) )
----
79

query II rowsort
SELECT + 40 AS col2, - 2 AS col0
----
40
-2

query I rowsort
SELECT + 6 * 44 + - 12 - - 69
----
321

query II rowsort
SELECT - 68 AS col2, - 82 AS col1
----
-68
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6824
SELECT - COUNT( DISTINCT + 68 ) DIV + - 68 - - 34 * + 81 col1
----
2754

skipif mysql # not compatible
query I rowsort label-6824
SELECT - COUNT ( DISTINCT + 68 ) / + - 68 - - 34 * + 81 col1
----
2754

query I rowsort
SELECT - 36 * + 1 AS col2
----
-36

onlyif mysql # DIV for integer division: 
query II rowsort label-6826
SELECT 42, 47 * - ( 87 ) + - 81 * + + 98 * - 88 + + 34 DIV - 32 AS col0
----
42
694454

skipif mysql # not compatible
query II rowsort label-6826
SELECT 42, 47 * - ( 87 ) + - 81 * + + 98 * - 88 + + 34 / - 32 AS col0
----
42
694454

query II rowsort
SELECT ALL + - 85 + - + 89 + - + 24, - 73 col0
----
-198
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6828
SELECT DISTINCT - + COUNT( * ) + 14 + ( - + 52 ) DIV + 2
----
-13

skipif mysql # not compatible
query I rowsort label-6828
SELECT DISTINCT - + COUNT ( * ) + 14 + ( - + 52 ) / + 2
----
-13

query I rowsort
SELECT ALL - 31 + + 77 * - + 13 + + 39
----
-993

onlyif mysql # aggregate syntax: 
query I rowsort label-6830
SELECT CASE - - ( + 68 ) WHEN 23 * + - ( + 81 ) + + + MIN( 66 ) + + 20 THEN + - NULLIF ( ( + - 81 ), + + 3 / - CASE + - COUNT( * ) WHEN 55 THEN 48 + + + 91 END * 27 ) * - + ( 60 ) ELSE - - 98 END AS col2
----
98

skipif mysql # not compatible
query I rowsort label-6830
SELECT CASE - - ( + 68 ) WHEN 23 * + - ( + 81 ) + + + MIN ( 66 ) + + 20 THEN + - NULLIF ( ( + - 81 ), + + 3 / - CASE + - COUNT ( * ) WHEN 55 THEN 48 + + + 91 END * 27 ) * - + ( 60 ) ELSE - - 98 END AS col2
----
98

query I rowsort
SELECT DISTINCT - 20 + 66 + - + 6 * 19 * 31 * - - ( - + 69 ) * + - NULLIF ( - - 25, - 48 ) AS col1
----
-6096104

onlyif mysql # aggregate syntax: 
query I rowsort label-6832
SELECT ALL MAX( DISTINCT - - COALESCE ( - 48, + 54 ) )
----
-48

skipif mysql # not compatible
query I rowsort label-6832
SELECT ALL MAX ( DISTINCT - - COALESCE ( - 48, + 54 ) )
----
-48

query I rowsort
SELECT + 16 * + + 4 + - 17 AS col2
----
47

query I rowsort
SELECT DISTINCT 55 + - 90
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-6835
SELECT DISTINCT - 88 AS col1, - COUNT( * ) + + COUNT( * ) * + + 13
----
-88
12

skipif mysql # not compatible
query II rowsort label-6835
SELECT DISTINCT - 88 AS col1, - COUNT ( * ) + + COUNT ( * ) * + + 13
----
-88
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6836
SELECT - 68 + CAST( NULL AS SIGNED ) * 74 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6836
SELECT - 68 + CAST ( NULL AS INTEGER ) * 74 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6837
SELECT - 52 - COUNT( * ) - - COUNT( * ) DIV + 62 AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-6837
SELECT - 52 - COUNT ( * ) - - COUNT ( * ) / + 62 AS col1
----
-53

query I rowsort
SELECT DISTINCT - 79 * - 37
----
2923

query I rowsort
SELECT 40 + ( 63 )
----
103

query II rowsort
SELECT - 82 AS col2, 47 AS col1
----
-82
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6841
SELECT - CAST( NULL AS SIGNED ) + - 9 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6841
SELECT - CAST ( NULL AS INTEGER ) + - 9 col2
----
NULL

query I rowsort
SELECT ALL - 35 * - CASE 21 WHEN 1 + - - 62 THEN NULL WHEN + + 89 THEN NULL ELSE - + 43 END
----
-1505

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6843
SELECT ALL - COALESCE ( - 12, + - 99 DIV - 92 + + + 48 ) * + - SUM( ALL - + 44 ) - + COUNT( * )
----
527

skipif mysql # not compatible
query I rowsort label-6843
SELECT ALL - COALESCE ( - 12, + - 99 / - 92 + + + 48 ) * + - SUM ( ALL - + 44 ) - + COUNT ( * )
----
527

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6844
SELECT + 70 + - 77 DIV - - CAST( + 99 AS SIGNED )
----
70

skipif mysql # not compatible
query I rowsort label-6844
SELECT + 70 + - 77 / - - CAST ( + 99 AS INTEGER )
----
70

query I rowsort
SELECT - 99 + ( 20 ) AS col0
----
-79

query I rowsort
SELECT + COALESCE ( 48, - 12 * 23 + 37 - 70, 23 )
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6847
SELECT - 16 + - + 91 * + CASE - 64 WHEN AVG ( + 14 ) + + - COUNT( * ) - - 3 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE 81 END
----
-7387

skipif mysql # not compatible
query I rowsort label-6847
SELECT - 16 + - + 91 * + CASE - 64 WHEN AVG ( + 14 ) + + - COUNT ( * ) - - 3 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE 81 END
----
-7387

onlyif mysql # DIV for integer division: 
query I rowsort label-6848
SELECT ALL - 56 DIV + 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6848
SELECT ALL - 56 / + 83 AS col0
----
0

query I rowsort
SELECT + 28 * - 2
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-6850
SELECT - 46 * + 51 + + 87 DIV - 69 AS col1
----
-2347

skipif mysql # not compatible
query I rowsort label-6850
SELECT - 46 * + 51 + + 87 / - 69 AS col1
----
-2347

query I rowsort
SELECT - COALESCE ( - 75, 7, + 54 ) * - - 83 AS col1
----
6225

query I rowsort
SELECT - 63 * + 7 AS col0
----
-441

onlyif mysql # DIV for integer division: 
query I rowsort label-6853
SELECT ALL 69 DIV + + NULLIF ( 53, + ( - - 83 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6853
SELECT ALL 69 / + + NULLIF ( 53, + ( - - 83 ) )
----
1

query I rowsort
SELECT ALL 86 * + 77
----
6622

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6855
SELECT ALL + NULLIF ( - CAST( 89 AS SIGNED ), + 68 ) * + 65 * 29 + 49 AS col0
----
-167716

skipif mysql # not compatible
query I rowsort label-6855
SELECT ALL + NULLIF ( - CAST ( 89 AS INTEGER ), + 68 ) * + 65 * 29 + 49 AS col0
----
-167716

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT COALESCE ( + MIN( ALL + 20 ), + 63 )
----
20

skipif mysql # not compatible
query I rowsort label-6856
SELECT COALESCE ( + MIN ( ALL + 20 ), + 63 )
----
20

query I rowsort
SELECT DISTINCT 64 * - + 7 + + + ( + + 9 )
----
-439

query I rowsort
SELECT DISTINCT ( + 52 ) * 75 + 8
----
3908

query I rowsort
SELECT + ( 15 )
----
15

query I rowsort
SELECT ALL + 35 * + + 16 + - 3 AS col0
----
557

onlyif mysql # aggregate syntax: 
query II rowsort label-6861
SELECT COALESCE ( 63, - 16 * - - 79, + 49, + 38 ), COUNT( * ) * - + COUNT( * ) AS col1
----
63
-1

skipif mysql # not compatible
query II rowsort label-6861
SELECT COALESCE ( 63, - 16 * - - 79, + 49, + 38 ), COUNT ( * ) * - + COUNT ( * ) AS col1
----
63
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6862
SELECT - CAST( NULL AS SIGNED ) + - 42 * - ( - 26 ) + - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-6862
SELECT - CAST ( NULL AS INTEGER ) + - 42 * - ( - 26 ) + - 50
----
NULL

query I rowsort
SELECT DISTINCT + + 71 * + - 12 * 6 + + - 88 AS col1
----
-5200

query II rowsort
SELECT ALL + + 81, + ( - 23 ) AS col0
----
81
-23

query I rowsort
SELECT - - 20 + + 48 AS col0
----
68

query I rowsort
SELECT + + ( + - 73 ) col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-6867
SELECT ALL - 0 * - ( - + 68 ) * + - COUNT( * ) + - + 46 / - - NULLIF ( - - CASE 38 WHEN + - CASE 61 WHEN COUNT( DISTINCT - 95 ) THEN - 31 + 50 WHEN + + 3 + - 11 THEN - 95 + - 12 END THEN + 19 END, + + 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6867
SELECT ALL - 0 * - ( - + 68 ) * + - COUNT ( * ) + - + 46 / - - NULLIF ( - - CASE 38 WHEN + - CASE 61 WHEN COUNT ( DISTINCT - 95 ) THEN - 31 + 50 WHEN + + 3 + - 11 THEN - 95 + - 12 END THEN + 19 END, + + 39 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6868
SELECT ALL + + COUNT( * ) AS col2, 25 AS col1
----
1
25

skipif mysql # not compatible
query II rowsort label-6868
SELECT ALL + + COUNT ( * ) AS col2, 25 AS col1
----
1
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6869
SELECT - NULLIF ( - 45, + - 98 ) * + 66 + + NULLIF ( + + COUNT( ALL 40 ), - 89 ) + - 19 + - - 50 AS col0
----
3002

skipif mysql # not compatible
query I rowsort label-6869
SELECT - NULLIF ( - 45, + - 98 ) * + 66 + + NULLIF ( + + COUNT ( ALL 40 ), - 89 ) + - 19 + - - 50 AS col0
----
3002

onlyif mysql # aggregate syntax: 
query I rowsort label-6870
SELECT ALL - ( + - CASE - CASE + 53 WHEN + + 43 + + 83 THEN 21 ELSE - - 42 / ( + MAX( + ( - + 77 ) ) ) + + COUNT( * ) END WHEN - 28 THEN NULL WHEN COALESCE ( - + 66, + 53 ) THEN NULL WHEN - - 96 THEN + CASE 82 WHEN - - 43 THEN - 25 - 61 END - + + 98 END ) / - SUM( DISTINCT - 7 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6870
SELECT ALL - ( + - CASE - CASE + 53 WHEN + + 43 + + 83 THEN 21 ELSE - - 42 / ( + MAX ( + ( - + 77 ) ) ) + + COUNT ( * ) END WHEN - 28 THEN NULL WHEN COALESCE ( - + 66, + 53 ) THEN NULL WHEN - - 96 THEN + CASE 82 WHEN - - 43 THEN - 25 - 61 END - + + 98 END ) / - SUM ( DISTINCT - 7 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6871
SELECT DISTINCT NULLIF ( 60, SUM( - - 71 ) ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-6871
SELECT DISTINCT NULLIF ( 60, SUM ( - - 71 ) ) AS col2
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6872
SELECT ALL - 74 + - CAST( + 71 AS SIGNED ) + - ( - 41 ) + - 2 - + 50
----
-156

skipif mysql # not compatible
query I rowsort label-6872
SELECT ALL - 74 + - CAST ( + 71 AS INTEGER ) + - ( - 41 ) + - 2 - + 50
----
-156

query II rowsort
SELECT - 70 AS col2, + 91 * + + 73 AS col0
----
-70
6643

query I rowsort
SELECT + 13 + - 59 + + 26 AS col1
----
-20

query II rowsort
SELECT ALL 92 col1, - 24 AS col2
----
92
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-6876
SELECT - 4, - COUNT( * ) AS col2
----
-4
-1

skipif mysql # not compatible
query II rowsort label-6876
SELECT - 4, - COUNT ( * ) AS col2
----
-4
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6877
SELECT - 57 * + COUNT( * ) * + COUNT( * ) + + 74 * + CASE + 47 WHEN - 5 - + COUNT( * ) - + 13 * - 85 + + 10 + - 51 + COUNT( * ) * + SUM( + 14 ) - + 53 - - COALESCE ( CASE - 22 WHEN - - COUNT( * ) THEN NULL ELSE - 6 + 49 END, 54 - - + 49 + + - 85 + + 99 / - COUNT( * ) ) * 44 THEN - - 66 WHEN - 43 * + COUNT( * ) + - NULLIF ( - ( - COUNT( * ) ), 76 ) THEN + 86 ELSE NULL END * - COUNT( * ) + + 65 * + + 89 * - - 1 * - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-6877
SELECT - 57 * + COUNT ( * ) * + COUNT ( * ) + + 74 * + CASE + 47 WHEN - 5 - + COUNT ( * ) - + 13 * - 85 + + 10 + - 51 + COUNT ( * ) * + SUM ( + 14 ) - + 53 - - COALESCE ( CASE - 22 WHEN - - COUNT ( * ) THEN NULL ELSE - 6 + 49 END, 54 - - + 49 + + - 85 + + 99 / - COUNT ( * ) ) * 44 THEN - - 66 WHEN - 43 * + COUNT ( * ) + - NULLIF ( - ( - COUNT ( * ) ), 76 ) THEN + 86 ELSE NULL END * - COUNT ( * ) + + 65 * + + 89 * - - 1 * - 48
----
NULL

query II rowsort
SELECT 56 AS col0, + NULLIF ( 57, + 26 - - NULLIF ( - + 19, 4 ) ) + + 74 AS col0
----
56
131

onlyif mysql # aggregate syntax: 
query I rowsort label-6879
SELECT + + 13 + + 72 - + COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-6879
SELECT + + 13 + + 72 - + COUNT ( * )
----
84

query I rowsort
SELECT DISTINCT ( - 61 ) col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT + - 39 + + 35 + COUNT( * ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-6881
SELECT + - 39 + + 35 + COUNT ( * ) AS col1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6882
SELECT ALL + 58 DIV + 92 DIV + 97 DIV 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6882
SELECT ALL + 58 / + 92 / + 97 / 94 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6883
SELECT + CAST( NULL AS SIGNED ) / + 11, 99 AS col2
----
NULL
99

skipif mysql # not compatible
query II rowsort label-6883
SELECT + CAST ( NULL AS INTEGER ) / + 11, 99 AS col2
----
NULL
99

query II rowsort
SELECT ALL - 44 col0, 28 + - 1 * + + 69
----
-44
-41

query II rowsort
SELECT - + 31, 94 AS col1
----
-31
94

query I rowsort
SELECT - COALESCE ( 66, + 96 * - 39 ) * + 10 + + + 72
----
-588

query II rowsort
SELECT DISTINCT 46 * + + 88, 27 - + - 3 AS col2
----
4048
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6888
SELECT ALL 81 * - 15 AS col2, - CAST( NULL AS SIGNED ) / + ( + 55 ) * + NULLIF ( + + 41, - 63 * + 25 )
----
-1215
NULL

skipif mysql # not compatible
query II rowsort label-6888
SELECT ALL 81 * - 15 AS col2, - CAST ( NULL AS INTEGER ) / + ( + 55 ) * + NULLIF ( + + 41, - 63 * + 25 )
----
-1215
NULL

query I rowsort
SELECT + 87 * - ( + ( - + 17 ) )
----
1479

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6890
SELECT + ( + CAST( NULL AS DECIMAL ) ) AS col0, - ( + COUNT( * ) )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-6890
SELECT + ( + CAST ( NULL AS REAL ) ) AS col0, - ( + COUNT ( * ) )
----
NULL
-1

query I rowsort
SELECT DISTINCT 28 * - 55
----
-1540

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6892
SELECT ALL SUM( + - ( 87 ) ) DIV - 87 + - - 83, 63 - + 36 AS col0
----
84
27

skipif mysql # not compatible
query II rowsort label-6892
SELECT ALL SUM ( + - ( 87 ) ) / - 87 + - - 83, 63 - + 36 AS col0
----
84
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6893
SELECT DISTINCT 92 DIV + COALESCE ( + MAX( 49 ), MAX( DISTINCT - 79 ), CAST( 39 AS SIGNED ) DIV 62 ) + - 89 * - - 41
----
-3648

skipif mysql # not compatible
query I rowsort label-6893
SELECT DISTINCT 92 / + COALESCE ( + MAX ( 49 ), MAX ( DISTINCT - 79 ), CAST ( 39 AS INTEGER ) / 62 ) + - 89 * - - 41
----
-3648

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6894
SELECT ALL COUNT( * ) DIV - + 53 + - NULLIF ( + + COUNT( * ), 14 ) + - - 75 + - - 15 * - - 50 AS col1
----
824

skipif mysql # not compatible
query I rowsort label-6894
SELECT ALL COUNT ( * ) / - + 53 + - NULLIF ( + + COUNT ( * ), 14 ) + - - 75 + - - 15 * - - 50 AS col1
----
824

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6895
SELECT - 9 * - - 67 * - MAX( DISTINCT + 78 ) DIV - COALESCE ( + COUNT( * ), + 44 DIV - 5, CAST( - 34 AS SIGNED ) ) AS col2, COALESCE ( - 44, - 31 ) * 97 AS col1
----
-47034
-4268

skipif mysql # not compatible
query II rowsort label-6895
SELECT - 9 * - - 67 * - MAX ( DISTINCT + 78 ) / - COALESCE ( + COUNT ( * ), + 44 / - 5, CAST ( - 34 AS INTEGER ) ) AS col2, COALESCE ( - 44, - 31 ) * 97 AS col1
----
-47034
-4268

onlyif mysql # DIV for integer division: 
query I rowsort label-6896
SELECT ALL - 8 DIV - + 60 + - ( + 7 ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-6896
SELECT ALL - 8 / - + 60 + - ( + 7 ) AS col0
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-6897
SELECT 98 * 35 + + SUM( - - 58 ) * + + ( + 38 ) + + 27, + 0 AS col1
----
5661
0

skipif mysql # not compatible
query II rowsort label-6897
SELECT 98 * 35 + + SUM ( - - 58 ) * + + ( + 38 ) + + 27, + 0 AS col1
----
5661
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6898
SELECT ALL 32 DIV 50 * - 16 col1
----
0

skipif mysql # not compatible
query I rowsort label-6898
SELECT ALL 32 / 50 * - 16 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6899
SELECT + CAST( - 46 AS SIGNED ), + COUNT( * ) * + - CASE + 21 WHEN + - 64 THEN + + 26 * + + 52 ELSE + 46 END AS col0
----
-46
-46

skipif mysql # not compatible
query II rowsort label-6899
SELECT + CAST ( - 46 AS INTEGER ), + COUNT ( * ) * + - CASE + 21 WHEN + - 64 THEN + + 26 * + + 52 ELSE + 46 END AS col0
----
-46
-46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6900
SELECT - - 86 * + 36, - COALESCE ( 43, + 14, CAST( - 24 AS SIGNED ) ) AS col0
----
3096
-43

skipif mysql # not compatible
query II rowsort label-6900
SELECT - - 86 * + 36, - COALESCE ( 43, + 14, CAST ( - 24 AS INTEGER ) ) AS col0
----
3096
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-6901
SELECT ALL - + CASE - 75 WHEN - - 34 * - + 54 THEN NULL WHEN + - AVG ( 83 ) THEN NULL ELSE - 79 END * + 47 * + - 32 + - + MIN( ALL + + 8 ) * ( - + 1 )
----
-118808

skipif mysql # not compatible
query I rowsort label-6901
SELECT ALL - + CASE - 75 WHEN - - 34 * - + 54 THEN NULL WHEN + - AVG ( 83 ) THEN NULL ELSE - 79 END * + 47 * + - 32 + - + MIN ( ALL + + 8 ) * ( - + 1 )
----
-118808

query I rowsort
SELECT ALL + - 31 AS col0
----
-31

query I rowsort
SELECT DISTINCT - 36 * + + ( + 25 ) * 56
----
-50400

onlyif mysql # aggregate syntax: 
query I rowsort label-6904
SELECT ALL - - COUNT( * ) * + 68 - + 80 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-6904
SELECT ALL - - COUNT ( * ) * + 68 - + 80 AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6905
SELECT + + COUNT( * ) - + + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6905
SELECT + + COUNT ( * ) - + + COUNT ( * ) AS col2
----
0

query II rowsort
SELECT - ( + - 86 ) AS col1, - ( - 21 )
----
86
21

query I rowsort
SELECT - - 90 + + 4 + + 41
----
135

query II rowsort
SELECT ALL + - 63 - + - 93 * 57 AS col1, - 29
----
5238
-29

query I rowsort
SELECT - 87 - - 46 AS col2
----
-41

query I rowsort
SELECT 69 * - - 95
----
6555

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6911
SELECT DISTINCT - ( 7 ) DIV + + COUNT( - 63 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-6911
SELECT DISTINCT - ( 7 ) / + + COUNT ( - 63 ) AS col2
----
-7

query I rowsort
SELECT + 53 + 29 AS col0
----
82

query I rowsort
SELECT 55 + - - 61 + - 69 + 47 AS col2
----
94

query I rowsort
SELECT DISTINCT - 55 * 88 AS col0
----
-4840

query I rowsort
SELECT 64 + + 4
----
68

query I rowsort
SELECT ( + 36 ) - 99
----
-63

query II rowsort
SELECT 74 + - + 81 - - 17 AS col1, + 65 + - 80 + + 78
----
10
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6918
SELECT COUNT( * ) * + + 28
----
28

skipif mysql # not compatible
query I rowsort label-6918
SELECT COUNT ( * ) * + + 28
----
28

query I rowsort
SELECT DISTINCT - 10 * - 14
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-6920
SELECT ALL 75 + - COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-6920
SELECT ALL 75 + - COUNT ( * )
----
74

query I rowsort
SELECT 90 + - ( + 62 ) AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6922
SELECT ALL + 38 + + 0 + COUNT( * ) * + - 42
----
-4

skipif mysql # not compatible
query I rowsort label-6922
SELECT ALL + 38 + + 0 + COUNT ( * ) * + - 42
----
-4

query I rowsort
SELECT DISTINCT - 84 + - 27 * - 41
----
1023

query I rowsort
SELECT ALL 27 + + 9 + + 19 AS col0
----
55

query I rowsort
SELECT 9 + - ( - 16 )
----
25

query I rowsort
SELECT ALL 39 + 37 + - - 82 * - 71 + - 77 + ( - - 1 ) * - 24 + - 24 * + 72 * - + 55 + - 83 AS col1
----
89110

onlyif mysql # aggregate syntax: 
query I rowsort label-6927
SELECT NULLIF ( + - 80, - MIN( + 57 ) ) + 48 col2
----
-32

skipif mysql # not compatible
query I rowsort label-6927
SELECT NULLIF ( + - 80, - MIN ( + 57 ) ) + 48 col2
----
-32

query II rowsort
SELECT 44 AS col1, + 38 + + - CASE - 93 WHEN 33 THEN + - 36 / + + 84 END + - 70 / 76 + 23 - + 68 * + - ( + 38 )
----
44
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6929
SELECT ALL 91 + COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-6929
SELECT ALL 91 + COUNT ( * )
----
92

query II rowsort
SELECT 99 * - + ( - 7 ) AS col1, - 12 * 27
----
693
-324

onlyif mysql # aggregate syntax: 
query I rowsort label-6931
SELECT 34 + - + 27 + - MAX( - - 6 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6931
SELECT 34 + - + 27 + - MAX ( - - 6 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6932
SELECT - 46 * + 88 - COUNT( + 58 ) + - + 24 AS col1
----
-4073

skipif mysql # not compatible
query I rowsort label-6932
SELECT - 46 * + 88 - COUNT ( + 58 ) + - + 24 AS col1
----
-4073

query II rowsort
SELECT ALL ( + + 94 ) * - 1, 11 AS col0
----
-94
11

query II rowsort
SELECT DISTINCT - - 20 AS col1, ( + 85 ) AS col2
----
20
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6935
SELECT DISTINCT - 7 - - 69 * - 30 + + 90 + - COUNT( + 35 ) AS col2
----
-1988

skipif mysql # not compatible
query I rowsort label-6935
SELECT DISTINCT - 7 - - 69 * - 30 + + 90 + - COUNT ( + 35 ) AS col2
----
-1988

query II rowsort
SELECT + 60, 27 AS col0
----
60
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6937
SELECT ALL + AVG ( - 23 ) - + CAST( NULL AS SIGNED ) AS col2, + 46 + + COUNT( * )
----
NULL
47

skipif mysql # not compatible
query II rowsort label-6937
SELECT ALL + AVG ( - 23 ) - + CAST ( NULL AS INTEGER ) AS col2, + 46 + + COUNT ( * )
----
NULL
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6938
SELECT + 12 * + - 57 * COUNT( * ) * 6 AS col2
----
-4104

skipif mysql # not compatible
query I rowsort label-6938
SELECT + 12 * + - 57 * COUNT ( * ) * 6 AS col2
----
-4104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6939
SELECT CAST( - 11 AS SIGNED ) * + + 87
----
-957

skipif mysql # not compatible
query I rowsort label-6939
SELECT CAST ( - 11 AS INTEGER ) * + + 87
----
-957

query I rowsort
SELECT 69 - - 66
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-6941
SELECT + ( - MAX( DISTINCT - 16 ) )
----
16

skipif mysql # not compatible
query I rowsort label-6941
SELECT + ( - MAX ( DISTINCT - 16 ) )
----
16

onlyif mysql # DIV for integer division: 
query II rowsort label-6942
SELECT - ( - + 52 ) + + - 69 AS col2, 73 DIV + 59
----
-17
1

skipif mysql # not compatible
query II rowsort label-6942
SELECT - ( - + 52 ) + + - 69 AS col2, 73 / + 59
----
-17
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6943
SELECT 46 * MAX( - 16 ) DIV 94 col0
----
-7

skipif mysql # not compatible
query I rowsort label-6943
SELECT 46 * MAX ( - 16 ) / 94 col0
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-6944
SELECT - 18 + + 10 DIV 73 * - 72 + - + 59 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-6944
SELECT - 18 + + 10 / 73 * - 72 + - + 59 AS col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6945
SELECT DISTINCT + SUM( DISTINCT + - 73 ) * - COALESCE ( - + ( - 32 ), + + 65 )
----
2336

skipif mysql # not compatible
query I rowsort label-6945
SELECT DISTINCT + SUM ( DISTINCT + - 73 ) * - COALESCE ( - + ( - 32 ), + + 65 )
----
2336

onlyif mysql # DIV for integer division: 
query I rowsort label-6946
SELECT DISTINCT + 80 DIV + 50 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6946
SELECT DISTINCT + 80 / + 50 AS col2
----
1

query I rowsort
SELECT ALL + 58 * 8 AS col2
----
464

onlyif mysql # DIV for integer division: 
query II rowsort label-6948
SELECT 38 DIV + 95 DIV 35 * + 58 AS col2, 11 * + 75
----
0
825

skipif mysql # not compatible
query II rowsort label-6948
SELECT 38 / + 95 / 35 * + 58 AS col2, 11 * + 75
----
0
825

query II rowsort
SELECT ALL 45 * - 94 * + 54 col2, 4 * - + 13 + 35 + 46 * + 21
----
-228420
949

query I rowsort
SELECT DISTINCT + 31 * - + 49 AS col1
----
-1519

query I rowsort
SELECT 15 + + + 87 * + + 60 AS col1
----
5235

query II rowsort
SELECT ALL 28 col1, + 62
----
28
62

query II rowsort
SELECT - 39, - 44 AS col0
----
-39
-44

query II rowsort
SELECT - 73, - 99 AS col1
----
-73
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6955
SELECT + SUM( ALL COALESCE ( 6, - + 74 - + 68, + ( - - 7 ) ) )
----
6

skipif mysql # not compatible
query I rowsort label-6955
SELECT + SUM ( ALL COALESCE ( 6, - + 74 - + 68, + ( - - 7 ) ) )
----
6

query II rowsort
SELECT ALL - 69 + + + 54, - 14 col0
----
-15
-14

query I rowsort
SELECT 0 + 3
----
3

query I rowsort
SELECT DISTINCT - 51 + + 7 - + + 74 - - + 83 * - 85 + + 55
----
-7118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6959
SELECT 84 * - 65 DIV COUNT( * )
----
-5460

skipif mysql # not compatible
query I rowsort label-6959
SELECT 84 * - 65 / COUNT ( * )
----
-5460

query I rowsort
SELECT ALL 69 + - 12
----
57

query I rowsort
SELECT DISTINCT + 52 + + 15 AS col1
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6962
SELECT ALL NULLIF ( COUNT( * ), MAX( + + 57 ) - MIN( + + 88 ) ) * + CAST( NULL AS SIGNED ) - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6962
SELECT ALL NULLIF ( COUNT ( * ), MAX ( + + 57 ) - MIN ( + + 88 ) ) * + CAST ( NULL AS INTEGER ) - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6963
SELECT ALL + 34 + - 68 * - COALESCE ( - 5, - 62 * + COUNT( * ), - 5 )
----
-306

skipif mysql # not compatible
query I rowsort label-6963
SELECT ALL + 34 + - 68 * - COALESCE ( - 5, - 62 * + COUNT ( * ), - 5 )
----
-306

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6964
SELECT 80 * COUNT( + 21 ) DIV 36
----
2

skipif mysql # not compatible
query I rowsort label-6964
SELECT 80 * COUNT ( + 21 ) / 36
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6965
SELECT DISTINCT + COUNT( * ) * 23
----
23

skipif mysql # not compatible
query I rowsort label-6965
SELECT DISTINCT + COUNT ( * ) * 23
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6966
SELECT 89 - SUM( ALL + 79 )
----
10

skipif mysql # not compatible
query I rowsort label-6966
SELECT 89 - SUM ( ALL + 79 )
----
10

query I rowsort
SELECT ALL + ( 36 ) * 21 AS col2
----
756

onlyif mysql # aggregate syntax: 
query I rowsort label-6968
SELECT COUNT( * ) * - SUM( ALL + 10 ) col2
----
-10

skipif mysql # not compatible
query I rowsort label-6968
SELECT COUNT ( * ) * - SUM ( ALL + 10 ) col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6969
SELECT DISTINCT + 89 + 82 + + COUNT( * ) + + + 70 - SUM( ALL - - COALESCE ( - 39, - 15 ) ) * - 51 * - COUNT( * ) AS col2
----
2231

skipif mysql # not compatible
query I rowsort label-6969
SELECT DISTINCT + 89 + 82 + + COUNT ( * ) + + + 70 - SUM ( ALL - - COALESCE ( - 39, - 15 ) ) * - 51 * - COUNT ( * ) AS col2
----
2231

query I rowsort
SELECT ALL 85 - - - 87 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6971
SELECT ALL + COUNT( * ) * + 1 * 78
----
78

skipif mysql # not compatible
query I rowsort label-6971
SELECT ALL + COUNT ( * ) * + 1 * 78
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6972
SELECT ALL CAST( - 8 AS SIGNED ) / + - SUM( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6972
SELECT ALL CAST ( - 8 AS INTEGER ) / + - SUM ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6973
SELECT DISTINCT - CAST( - 51 AS SIGNED ) col0
----
51

skipif mysql # not compatible
query I rowsort label-6973
SELECT DISTINCT - CAST ( - 51 AS INTEGER ) col0
----
51

query II rowsort
SELECT ALL - ( + + 34 ) AS col1, - 63 + + 24 col0
----
-34
-39

query I rowsort
SELECT ALL - - COALESCE ( 33, - + 28 + - - 62 + + - 93 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6976
SELECT - 67 * + COUNT( * ) + 10
----
-57

skipif mysql # not compatible
query I rowsort label-6976
SELECT - 67 * + COUNT ( * ) + 10
----
-57

query I rowsort
SELECT 81 * - + 73 AS col0
----
-5913

query I rowsort
SELECT 83 + - 38
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6979
SELECT - MIN( + CAST( NULL AS SIGNED ) ) * COUNT( * ) * + COUNT( * ) - + 17 * 17 * + - 53, - 90 AS col2
----
NULL
-90

skipif mysql # not compatible
query II rowsort label-6979
SELECT - MIN ( + CAST ( NULL AS INTEGER ) ) * COUNT ( * ) * + COUNT ( * ) - + 17 * 17 * + - 53, - 90 AS col2
----
NULL
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6980
SELECT DISTINCT + ( + MIN( + 80 ) )
----
80

skipif mysql # not compatible
query I rowsort label-6980
SELECT DISTINCT + ( + MIN ( + 80 ) )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6981
SELECT ALL + 51 * + + COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-6981
SELECT ALL + 51 * + + COUNT ( * )
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-6982
SELECT + ( - 99 ) AS col0, MAX( ALL + 50 ) - - + 73
----
-99
123

skipif mysql # not compatible
query II rowsort label-6982
SELECT + ( - 99 ) AS col0, MAX ( ALL + 50 ) - - + 73
----
-99
123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6983
SELECT + + 8 * + 93 * 33 + 84 * + - 77 + + - CAST( NULL AS SIGNED ) * + 66 / + 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6983
SELECT + + 8 * + 93 * 33 + 84 * + - 77 + + - CAST ( NULL AS INTEGER ) * + 66 / + 89 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6984
SELECT ALL - COUNT( * ) * + 95, 54 AS col2
----
-95
54

skipif mysql # not compatible
query II rowsort label-6984
SELECT ALL - COUNT ( * ) * + 95, 54 AS col2
----
-95
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6985
SELECT ALL + ( - CAST( - 59 AS SIGNED ) ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-6985
SELECT ALL + ( - CAST ( - 59 AS INTEGER ) ) AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6986
SELECT ALL 65 + + + COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-6986
SELECT ALL 65 + + + COUNT ( * )
----
66

query I rowsort
SELECT + 35 - 92
----
-57

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6988
SELECT + - 7 * - + 4 + + CAST( NULL AS DECIMAL ) + - 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6988
SELECT + - 7 * - + 4 + + CAST ( NULL AS REAL ) + - 65 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6989
SELECT ALL 99 + - ( 96 ) * + - 53 * + - SUM( 4 ) * + 52 - + COUNT( * )
----
-1058206

skipif mysql # not compatible
query I rowsort label-6989
SELECT ALL 99 + - ( 96 ) * + - 53 * + - SUM ( 4 ) * + 52 - + COUNT ( * )
----
-1058206

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6990
SELECT DISTINCT 28 + + CAST( - - ( + NULLIF ( + 94, - ( 50 ) + - COUNT( * ) ) ) AS SIGNED )
----
122

skipif mysql # not compatible
query I rowsort label-6990
SELECT DISTINCT 28 + + CAST ( - - ( + NULLIF ( + 94, - ( 50 ) + - COUNT ( * ) ) ) AS INTEGER )
----
122

query I rowsort
SELECT - COALESCE ( - 16, + - 64 )
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6992
SELECT ALL - COUNT( * ) + + - CASE 78 WHEN 38 / - AVG ( DISTINCT 48 ) * 97 THEN 46 ELSE + CAST( NULL AS SIGNED ) END * + 84 * 28 col2, - 47 + 35 * 8
----
NULL
233

skipif mysql # not compatible
query II rowsort label-6992
SELECT ALL - COUNT ( * ) + + - CASE 78 WHEN 38 / - AVG ( DISTINCT 48 ) * 97 THEN 46 ELSE + CAST ( NULL AS INTEGER ) END * + 84 * 28 col2, - 47 + 35 * 8
----
NULL
233

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6993
SELECT ALL 22 * CASE + - 34 WHEN + + COALESCE ( + 11, - 46 + - 10, + 16 + + - ( + 54 ) ) THEN - 61 WHEN - MAX( DISTINCT - 63 ) * + 38 * - 25 * - - 47 THEN - COUNT( * ) / + - 82 * + 77 / + 52 + - 49 + 11 WHEN - + 38 THEN CAST( NULL AS SIGNED ) END * 20
----
NULL

skipif mysql # not compatible
query I rowsort label-6993
SELECT ALL 22 * CASE + - 34 WHEN + + COALESCE ( + 11, - 46 + - 10, + 16 + + - ( + 54 ) ) THEN - 61 WHEN - MAX ( DISTINCT - 63 ) * + 38 * - 25 * - - 47 THEN - COUNT ( * ) / + - 82 * + 77 / + 52 + - 49 + 11 WHEN - + 38 THEN CAST ( NULL AS INTEGER ) END * 20
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6994
SELECT - 34 DIV 37
----
0

skipif mysql # not compatible
query I rowsort label-6994
SELECT - 34 / 37
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6995
SELECT ALL COUNT( * ) + + 74
----
75

skipif mysql # not compatible
query I rowsort label-6995
SELECT ALL COUNT ( * ) + + 74
----
75

query I rowsort
SELECT - 27 * - - 91 AS col0
----
-2457

query II rowsort
SELECT + 98 + - 18 + 4 AS col0, 79 + - 25
----
84
54

query I rowsort
SELECT - 4 - 77
----
-81

query I rowsort
SELECT + 74 + - 78 - - + 47 * - + 74
----
-3482

query I rowsort
SELECT DISTINCT ( + - 8 ) AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7001
SELECT ALL + SUM( - - 44 ) * ( 64 )
----
2816

skipif mysql # not compatible
query I rowsort label-7001
SELECT ALL + SUM ( - - 44 ) * ( 64 )
----
2816

onlyif mysql # aggregate syntax: 
query I rowsort label-7002
SELECT ALL + COUNT( * ) - + - 95
----
96

skipif mysql # not compatible
query I rowsort label-7002
SELECT ALL + COUNT ( * ) - + - 95
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-7003
SELECT - 20 + + 31 DIV - + ( - - 96 )
----
-20

skipif mysql # not compatible
query I rowsort label-7003
SELECT - 20 + + 31 / - + ( - - 96 )
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-7004
SELECT - 55 + + - 65 + 12 AS col1, COUNT( * ) AS col2
----
-108
1

skipif mysql # not compatible
query II rowsort label-7004
SELECT - 55 + + - 65 + 12 AS col1, COUNT ( * ) AS col2
----
-108
1

query I rowsort
SELECT ALL + 57 * 91 * - + 13 AS col1
----
-67431

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7006
SELECT + 77 + + COALESCE ( NULLIF ( + 89, + + 26 - - 74 ), + 7 * + COALESCE ( MAX( + 69 ), NULLIF ( 90, - 22 * COUNT( * ) ) * + 75 DIV - 10 ) + - ( - 19 ) ), COUNT( * ) * + + 3 AS col1
----
166
3

skipif mysql # not compatible
query II rowsort label-7006
SELECT + 77 + + COALESCE ( NULLIF ( + 89, + + 26 - - 74 ), + 7 * + COALESCE ( MAX ( + 69 ), NULLIF ( 90, - 22 * COUNT ( * ) ) * + 75 / - 10 ) + - ( - 19 ) ), COUNT ( * ) * + + 3 AS col1
----
166
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7007
SELECT + COALESCE ( 9, + CASE - 76 WHEN - 97 THEN NULL WHEN + COALESCE ( - - COUNT( * ), - COUNT( ALL - 73 ) ) THEN 20 * - 23 - 90 + 79 * 34 * - 72 * - 63 * + MIN( + + 6 ) * - 75 * 14 + - + 35 + 11 END + + COUNT( * ) * + - 81 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-7007
SELECT + COALESCE ( 9, + CASE - 76 WHEN - 97 THEN NULL WHEN + COALESCE ( - - COUNT ( * ), - COUNT ( ALL - 73 ) ) THEN 20 * - 23 - 90 + 79 * 34 * - 72 * - 63 * + MIN ( + + 6 ) * - 75 * 14 + - + 35 + 11 END + + COUNT ( * ) * + - 81 ) AS col0
----
9

query II rowsort
SELECT ALL + CASE WHEN NULL IS NOT NULL AND 71 IS NULL THEN - 99 END AS col1, CASE + 48 WHEN - + 99 THEN - 29 END AS col2
----
NULL
NULL

query I rowsort
SELECT ALL - + 19 * 26 AS col1
----
-494

query I rowsort
SELECT ALL + 22 * + 19
----
418

query I rowsort
SELECT - 53 + - - 93 col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7012
SELECT - ( - + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-7012
SELECT - ( - + COUNT ( * ) )
----
1

query I rowsort
SELECT + 66 + - 17 AS col1
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-7014
SELECT + 13, COUNT( * ) AS col2
----
13
1

skipif mysql # not compatible
query II rowsort label-7014
SELECT + 13, COUNT ( * ) AS col2
----
13
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7015
SELECT - - 59 + + COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-7015
SELECT - - 59 + + COUNT ( * )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7016
SELECT 54 * COUNT( * ) - - + 29 + - 66 + - SUM( ALL + - 65 ) + 16 * - 12
----
-110

skipif mysql # not compatible
query I rowsort label-7016
SELECT 54 * COUNT ( * ) - - + 29 + - 66 + - SUM ( ALL + - 65 ) + 16 * - 12
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-7017
SELECT DISTINCT COUNT( * ) * - 22 + + 48
----
26

skipif mysql # not compatible
query I rowsort label-7017
SELECT DISTINCT COUNT ( * ) * - 22 + + 48
----
26

query I rowsort
SELECT ALL + 90 * - - 50 AS col1
----
4500

query I rowsort
SELECT ALL 39 * + - 21 + + + 50 + + 50 AS col0
----
-719

query I rowsort
SELECT ALL + 58 * - 38 + + - 88 col1
----
-2292

onlyif mysql # aggregate syntax: 
query II rowsort label-7021
SELECT DISTINCT + COUNT( * ) AS col2, 58 * - - 36
----
1
2088

skipif mysql # not compatible
query II rowsort label-7021
SELECT DISTINCT + COUNT ( * ) AS col2, 58 * - - 36
----
1
2088

onlyif mysql # aggregate syntax: 
query I rowsort label-7022
SELECT ALL 32 * SUM( ( + 45 ) ) + - 85 AS col2
----
1355

skipif mysql # not compatible
query I rowsort label-7022
SELECT ALL 32 * SUM ( ( + 45 ) ) + - 85 AS col2
----
1355

onlyif mysql # aggregate syntax: 
query II rowsort label-7023
SELECT - COUNT( * ) AS col1, - COUNT( * )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-7023
SELECT - COUNT ( * ) AS col1, - COUNT ( * )
----
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7024
SELECT - CAST( NULL AS SIGNED ) * CASE + 46 WHEN + - 47 + - 56 * - + 39 THEN 50 END * - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7024
SELECT - CAST ( NULL AS INTEGER ) * CASE + 46 WHEN + - 47 + - 56 * - + 39 THEN 50 END * - - COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7025
SELECT + 22 DIV + - 52 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7025
SELECT + 22 / + - 52 AS col0
----
0

query I rowsort
SELECT + 28 + - 78
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7027
SELECT - CAST( - 96 AS SIGNED )
----
96

skipif mysql # not compatible
query I rowsort label-7027
SELECT - CAST ( - 96 AS INTEGER )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7028
SELECT MIN( DISTINCT + 13 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-7028
SELECT MIN ( DISTINCT + 13 ) AS col2
----
13

query I rowsort
SELECT + 4 + 31 + + 86 * - 79
----
-6759

onlyif mysql # aggregate syntax: 
query I rowsort label-7030
SELECT + 63 * MAX( DISTINCT 17 )
----
1071

skipif mysql # not compatible
query I rowsort label-7030
SELECT + 63 * MAX ( DISTINCT 17 )
----
1071

query I rowsort
SELECT - ( 22 ) AS col2
----
-22

query I rowsort
SELECT + 68 * - - 98
----
6664

query I rowsort
SELECT DISTINCT + 90 * + + 39 AS col2
----
3510

onlyif mysql # aggregate syntax: 
query I rowsort label-7034
SELECT + 32 - + 37 * ( + - 9 ) * COUNT( * ) AS col0
----
365

skipif mysql # not compatible
query I rowsort label-7034
SELECT + 32 - + 37 * ( + - 9 ) * COUNT ( * ) AS col0
----
365

onlyif mysql # aggregate syntax: 
query I rowsort label-7035
SELECT - COUNT( * ) * + MIN( 39 )
----
-39

skipif mysql # not compatible
query I rowsort label-7035
SELECT - COUNT ( * ) * + MIN ( 39 )
----
-39

query I rowsort
SELECT + 8 - 96 + 42 AS col2
----
-46

query I rowsort
SELECT - 53 * 8 AS col1
----
-424

onlyif mysql # aggregate syntax: 
query I rowsort label-7038
SELECT COUNT( * ) - + 72 - + - 18 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-7038
SELECT COUNT ( * ) - + 72 - + - 18 AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7039
SELECT - - CASE - 5 WHEN + ( - + COUNT( * ) ) + - + 24 THEN - 96 WHEN 66 THEN NULL WHEN + 19 / + - 83 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7039
SELECT - - CASE - 5 WHEN + ( - + COUNT ( * ) ) + - + 24 THEN - 96 WHEN 66 THEN NULL WHEN + 19 / + - 83 THEN NULL END
----
NULL

query II rowsort
SELECT ALL - 10 AS col0, - 61 col1
----
-10
-61

query I rowsort
SELECT DISTINCT - + 71 + - 84 AS col2
----
-155

query I rowsort
SELECT ALL + - 8 + - - 16 * 14 AS col0
----
216

onlyif mysql # DIV for integer division: 
query I rowsort label-7043
SELECT - 0 DIV 68 - + 22 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-7043
SELECT - 0 / 68 - + 22 AS col1
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7044
SELECT ALL + MAX( DISTINCT - + 85 ) + + CAST( CASE - 38 WHEN 81 * - 10 + + 45 - - - COUNT( * ) + - CAST( 87 AS DECIMAL ) + CASE CAST( - 20 AS SIGNED ) WHEN - + COUNT( * ) THEN 21 * + + 19 + + + CAST( NULL AS DECIMAL ) ELSE NULL END * + 64 / NULLIF ( - 44, - - MAX( - 59 ) + + - 72 ) * + 3 - + 87 - - COUNT( ALL 75 ) * COUNT( * ) + + - 22 - + 97 * + 71 * + 16 * + + CASE 93 WHEN CAST( NULL AS SIGNED ) THEN + 98 + - + 37 + COUNT( * ) * - 2 * + 81 END / + 18 + 19 THEN COUNT( * ) ELSE NULL END AS SIGNED ) + + MIN( + 69 ) - + 13 * + CASE + 79 / + 14 WHEN - CAST( 62 AS SIGNED ) + + 90 THEN - 66 * + 26 ELSE + 89 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7044
SELECT ALL + MAX ( DISTINCT - + 85 ) + + CAST ( CASE - 38 WHEN 81 * - 10 + + 45 - - - COUNT ( * ) + - CAST ( 87 AS REAL ) + CASE CAST ( - 20 AS INTEGER ) WHEN - + COUNT ( * ) THEN 21 * + + 19 + + + CAST ( NULL AS REAL ) ELSE NULL END * + 64 / NULLIF ( - 44, - - MAX ( - 59 ) + + - 72 ) * + 3 - + 87 - - COUNT ( ALL 75 ) * COUNT ( * ) + + - 22 - + 97 * + 71 * + 16 * + + CASE 93 WHEN CAST ( NULL AS INTEGER ) THEN + 98 + - + 37 + COUNT ( * ) * - 2 * + 81 END / + 18 + 19 THEN COUNT ( * ) ELSE NULL END AS INTEGER ) + + MIN ( + 69 ) - + 13 * + CASE + 79 / + 14 WHEN - CAST ( 62 AS INTEGER ) + + 90 THEN - 66 * + 26 ELSE + 89 END
----
NULL

query I rowsort
SELECT DISTINCT + + 79 + + - ( + - 45 )
----
124

query I rowsort
SELECT - COALESCE ( 40, 24 )
----
-40

query I rowsort
SELECT ALL - 68 + + - 24 + - + 97 * 58 * COALESCE ( 35, - 31 * 56 ) AS col1
----
-197002

query I rowsort
SELECT ALL + 10 + - - 24
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7049
SELECT + - 70 DIV - COUNT( * ) + 2 * + 64 + - 72 AS col2
----
126

skipif mysql # not compatible
query I rowsort label-7049
SELECT + - 70 / - COUNT ( * ) + 2 * + 64 + - 72 AS col2
----
126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7050
SELECT + 22 + - 19 + - + 22 + 56 DIV - - MAX( - + 11 )
----
-24

skipif mysql # not compatible
query I rowsort label-7050
SELECT + 22 + - 19 + - + 22 + 56 / - - MAX ( - + 11 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7051
SELECT NULLIF ( + 53, 53 / + 60 ) * + COUNT( * ) - - 28 * + - COUNT( * ) + - 54 * + MAX( ALL - 57 ) + 85 - + 30 * - 60
----
4988

skipif mysql # not compatible
query I rowsort label-7051
SELECT NULLIF ( + 53, 53 / + 60 ) * + COUNT ( * ) - - 28 * + - COUNT ( * ) + - 54 * + MAX ( ALL - 57 ) + 85 - + 30 * - 60
----
4988

query I rowsort
SELECT ALL - 19 * - 7 AS col2
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-7053
SELECT ALL NULLIF ( + COUNT( * ), - 5 / + 74 ) + - + 14 * - 85 * - 26 AS col0
----
-30939

skipif mysql # not compatible
query I rowsort label-7053
SELECT ALL NULLIF ( + COUNT ( * ), - 5 / + 74 ) + - + 14 * - 85 * - 26 AS col0
----
-30939

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7054
SELECT DISTINCT - + ( CAST( + 80 AS SIGNED ) )
----
-80

skipif mysql # not compatible
query I rowsort label-7054
SELECT DISTINCT - + ( CAST ( + 80 AS INTEGER ) )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7055
SELECT ALL + ( - COUNT( * ) ) + + + 69
----
68

skipif mysql # not compatible
query I rowsort label-7055
SELECT ALL + ( - COUNT ( * ) ) + + + 69
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7056
SELECT ALL - CAST( + 32 AS SIGNED ) + - 85 - + - 75 AS col0, COUNT( * ) AS col0
----
-42
1

skipif mysql # not compatible
query II rowsort label-7056
SELECT ALL - CAST ( + 32 AS INTEGER ) + - 85 - + - 75 AS col0, COUNT ( * ) AS col0
----
-42
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7057
SELECT 38 * + COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-7057
SELECT 38 * + COUNT ( * )
----
38

query I rowsort
SELECT 83 * 48 AS col2
----
3984

onlyif mysql # DIV for integer division: 
query I rowsort label-7059
SELECT ALL - 75 DIV + COALESCE ( 57, - + 89 )
----
-1

skipif mysql # not compatible
query I rowsort label-7059
SELECT ALL - 75 / + COALESCE ( 57, - + 89 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7060
SELECT 89 + + + 80, SUM( ALL - 55 ) col0
----
169
-55

skipif mysql # not compatible
query II rowsort label-7060
SELECT 89 + + + 80, SUM ( ALL - 55 ) col0
----
169
-55

query I rowsort
SELECT 93 * + 95
----
8835

query I rowsort
SELECT DISTINCT 10 - + ( + 32 ) AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7063
SELECT 18 * - + COUNT( * ) * + 29 * + 68
----
-35496

skipif mysql # not compatible
query I rowsort label-7063
SELECT 18 * - + COUNT ( * ) * + 29 * + 68
----
-35496

query I rowsort
SELECT ALL 63 * - 73 AS col0
----
-4599

query I rowsort
SELECT 24 - 41 AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7066
SELECT COUNT( * ) + + ( - 67 ) * 17 AS col1
----
-1138

skipif mysql # not compatible
query I rowsort label-7066
SELECT COUNT ( * ) + + ( - 67 ) * 17 AS col1
----
-1138

onlyif mysql # aggregate syntax: 
query I rowsort label-7067
SELECT 8 * - COUNT( * ) * 81
----
-648

skipif mysql # not compatible
query I rowsort label-7067
SELECT 8 * - COUNT ( * ) * 81
----
-648

onlyif mysql # aggregate syntax: 
query I rowsort label-7068
SELECT COUNT( * ) + + 4 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-7068
SELECT COUNT ( * ) + + 4 AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7069
SELECT ( - - 79 ) - 94 * MIN( DISTINCT 54 )
----
-4997

skipif mysql # not compatible
query I rowsort label-7069
SELECT ( - - 79 ) - 94 * MIN ( DISTINCT 54 )
----
-4997

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7070
SELECT 63 DIV + COUNT( * ) AS col0, + 38 + - 58 col2
----
63
-20

skipif mysql # not compatible
query II rowsort label-7070
SELECT 63 / + COUNT ( * ) AS col0, + 38 + - 58 col2
----
63
-20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7071
SELECT 33 + - + 15 - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7071
SELECT 33 + - + 15 - + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7072
SELECT COUNT( ALL - 14 ) - + 83 + + 20 * CAST( NULL AS DECIMAL ) * + NULLIF ( - COUNT( - 27 ), + 46 * 25 ) * 33 * 92 * - 22, + CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7072
SELECT COUNT ( ALL - 14 ) - + 83 + + 20 * CAST ( NULL AS REAL ) * + NULLIF ( - COUNT ( - 27 ), + 46 * 25 ) * 33 * 92 * - 22, + CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7073
SELECT + 90 + + - 48 * + 56 * 60 + - 21 + + 12 + - CAST( NULL AS SIGNED ) AS col1, 49 + - 90 + 87 + - + 83 + + + ( + ( - - 61 ) ) + + + NULLIF ( + + 49, - - 72 )
----
NULL
73

skipif mysql # not compatible
query II rowsort label-7073
SELECT + 90 + + - 48 * + 56 * 60 + - 21 + + 12 + - CAST ( NULL AS INTEGER ) AS col1, 49 + - 90 + 87 + - + 83 + + + ( + ( - - 61 ) ) + + + NULLIF ( + + 49, - - 72 )
----
NULL
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7074
SELECT - 3 DIV + ( ( MIN( DISTINCT + 28 ) ) ) * + MIN( ALL + COALESCE ( - 43, - 90, COALESCE ( - 90, - NULLIF ( 17, + - ( - 41 ) ) ) ) ) col1, COALESCE ( - - COUNT( * ), - 67 - + ( - NULLIF ( 88, - + COUNT( * ) ) ) DIV 41 * + - 42 * - 71, - - 15 ) - + ( - + 96 ) + + - 38 + + + COALESCE ( 71, 95 * + 98 * - - NULLIF ( CAST( 39 AS SIGNED ), - 89 * + - CASE - 98 WHEN - ( - 64 ) * - 51 THEN NULL WHEN - - 83 THEN + - 48 * - 65 * + + 38 DIV 30 END * 49 ) )
----
0
130

skipif mysql # not compatible
query II rowsort label-7074
SELECT - 3 / + ( ( MIN ( DISTINCT + 28 ) ) ) * + MIN ( ALL + COALESCE ( - 43, - 90, COALESCE ( - 90, - NULLIF ( 17, + - ( - 41 ) ) ) ) ) col1, COALESCE ( - - COUNT ( * ), - 67 - + ( - NULLIF ( 88, - + COUNT ( * ) ) ) / 41 * + - 42 * - 71, - - 15 ) - + ( - + 96 ) + + - 38 + + + COALESCE ( 71, 95 * + 98 * - - NULLIF ( CAST ( 39 AS INTEGER ), - 89 * + - CASE - 98 WHEN - ( - 64 ) * - 51 THEN NULL WHEN - - 83 THEN + - 48 * - 65 * + + 38 / 30 END * 49 ) )
----
0
130

query I rowsort
SELECT ALL 43 + 33 * + NULLIF ( - 17, - 20 )
----
-518

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7076
SELECT - 12 + + CASE - + 85 WHEN + 9 THEN NULL ELSE + COUNT( * ) * - 68 * + 71 END * 72 + + 95 * 80 * + NULLIF ( - + 78, - ( MIN( 13 ) ) * - - CASE + - COUNT( * ) WHEN + NULLIF ( 5, - 5 / - MAX( DISTINCT + ( - 63 ) ) ) THEN + 3 - - 11 * 34 / - - CAST( - + COUNT( * ) AS SIGNED ) WHEN NULLIF ( - - 24, + ( 75 ) - - ( + 29 ) + - 35 + - 12 ) THEN NULL END + - - 69 + + 71 + + 5 + - ( + - COUNT( + 73 ) ) - + - 27 * - - 92 * - 76 - - 16 ) * - 46 + + 5
----
26921177

skipif mysql # not compatible
query I rowsort label-7076
SELECT - 12 + + CASE - + 85 WHEN + 9 THEN NULL ELSE + COUNT ( * ) * - 68 * + 71 END * 72 + + 95 * 80 * + NULLIF ( - + 78, - ( MIN ( 13 ) ) * - - CASE + - COUNT ( * ) WHEN + NULLIF ( 5, - 5 / - MAX ( DISTINCT + ( - 63 ) ) ) THEN + 3 - - 11 * 34 / - - CAST ( - + COUNT ( * ) AS INTEGER ) WHEN NULLIF ( - - 24, + ( 75 ) - - ( + 29 ) + - 35 + - 12 ) THEN NULL END + - - 69 + + 71 + + 5 + - ( + - COUNT ( + 73 ) ) - + - 27 * - - 92 * - 76 - - 16 ) * - 46 + + 5
----
26921177

onlyif mysql # aggregate syntax: 
query I rowsort label-7077
SELECT ALL - MIN( - 84 ) * 85 + + ( NULLIF ( + 98, 3 + - 89 ) )
----
7238

skipif mysql # not compatible
query I rowsort label-7077
SELECT ALL - MIN ( - 84 ) * 85 + + ( NULLIF ( + 98, 3 + - 89 ) )
----
7238

query I rowsort
SELECT + 39 + 21
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7079
SELECT + ( + 72 ) * + CAST( NULL AS SIGNED ) * 63 * SUM( + 93 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7079
SELECT + ( + 72 ) * + CAST ( NULL AS INTEGER ) * 63 * SUM ( + 93 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7080
SELECT + CASE + CAST( NULL AS SIGNED ) WHEN + 81 THEN NULL WHEN + + 94 THEN + 44 END + - CASE - 72 WHEN + - 1 THEN NULL ELSE - 41 * + NULLIF ( + + 3, CAST( NULL AS SIGNED ) * 63 * - + 33 + - CAST( NULL AS SIGNED ) / - 39 * - 32 / - - 23 * + 43 ) END - 72 * - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-7080
SELECT + CASE + CAST ( NULL AS INTEGER ) WHEN + 81 THEN NULL WHEN + + 94 THEN + 44 END + - CASE - 72 WHEN + - 1 THEN NULL ELSE - 41 * + NULLIF ( + + 3, CAST ( NULL AS INTEGER ) * 63 * - + 33 + - CAST ( NULL AS INTEGER ) / - 39 * - 32 / - - 23 * + 43 ) END - 72 * - 46
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7081
SELECT 68 + - - COUNT( * ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-7081
SELECT 68 + - - COUNT ( * ) AS col1
----
69

query I rowsort
SELECT ALL - - ( - - 10 )
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7083
SELECT + 19 * - MAX( - COALESCE ( 93, - 4 DIV CAST( NULL AS SIGNED ) ) ) AS col0
----
1767

skipif mysql # not compatible
query I rowsort label-7083
SELECT + 19 * - MAX ( - COALESCE ( 93, - 4 / CAST ( NULL AS INTEGER ) ) ) AS col0
----
1767

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7084
SELECT ALL + + CAST( NULL AS SIGNED ) - - + CASE - + 7 WHEN + 72 THEN NULL ELSE - COUNT( * ) END + - - COUNT( - 47 ) + - COUNT( * ) * + 92 / - + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-7084
SELECT ALL + + CAST ( NULL AS INTEGER ) - - + CASE - + 7 WHEN + 72 THEN NULL ELSE - COUNT ( * ) END + - - COUNT ( - 47 ) + - COUNT ( * ) * + 92 / - + 3
----
NULL

query I rowsort
SELECT ALL - + 12 col0
----
-12

query I rowsort
SELECT - 56 * - COALESCE ( + 75, + 57 )
----
4200

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7087
SELECT COUNT( ALL CAST( 68 AS DECIMAL ) ) AS col0, 68 col2
----
1
68

skipif mysql # not compatible
query II rowsort label-7087
SELECT COUNT ( ALL CAST ( 68 AS REAL ) ) AS col0, 68 col2
----
1
68

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7088
SELECT + 12 DIV - - 71 + + CAST( 49 AS SIGNED )
----
49

skipif mysql # not compatible
query I rowsort label-7088
SELECT + 12 / - - 71 + + CAST ( 49 AS INTEGER )
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7089
SELECT COUNT( DISTINCT - 88 ) - + 92, 45 DIV + 94 col2
----
-91
0

skipif mysql # not compatible
query II rowsort label-7089
SELECT COUNT ( DISTINCT - 88 ) - + 92, 45 / + 94 col2
----
-91
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7090
SELECT 28 * - 58 DIV - COUNT( * )
----
1624

skipif mysql # not compatible
query I rowsort label-7090
SELECT 28 * - 58 / - COUNT ( * )
----
1624

query I rowsort
SELECT ALL - ( - ( + - 49 ) ) * - 27 AS col0
----
1323

onlyif mysql # aggregate syntax: 
query I rowsort label-7092
SELECT 7 * + ( + COUNT( ALL + 34 ) ) + - - 33 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-7092
SELECT 7 * + ( + COUNT ( ALL + 34 ) ) + - - 33 AS col1
----
40

query I rowsort
SELECT ALL - ( + ( - 9 ) )
----
9

query II rowsort
SELECT + 99, 3 AS col1
----
99
3

query I rowsort
SELECT 18 * - - 17 AS col0
----
306

query I rowsort
SELECT DISTINCT - CASE - 81 WHEN ( 24 ) THEN NULL WHEN + 25 THEN + - COALESCE ( + 79, + 91 + - 89 ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7097
SELECT DISTINCT - COUNT( ALL NULLIF ( - + 62, 78 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7097
SELECT DISTINCT - COUNT ( ALL NULLIF ( - + 62, 78 ) ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7098
SELECT DISTINCT NULLIF ( - CAST( - MIN( DISTINCT - 6 ) AS SIGNED ), + SUM( 67 ) + + + 55 )
----
-6

skipif mysql # not compatible
query I rowsort label-7098
SELECT DISTINCT NULLIF ( - CAST ( - MIN ( DISTINCT - 6 ) AS INTEGER ), + SUM ( 67 ) + + + 55 )
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-7099
SELECT 8 DIV 71 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7099
SELECT 8 / 71 AS col1
----
0

query I rowsort
SELECT 44 * - 57
----
-2508

onlyif mysql # aggregate syntax: 
query I rowsort label-7101
SELECT ALL SUM( - 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-7101
SELECT ALL SUM ( - 78 )
----
-78

query I rowsort
SELECT 53 * - - 30
----
1590

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7103
SELECT DISTINCT + ( + + ( + COUNT( * ) ) ) DIV + 42 AS col1, MAX( - 62 ) DIV + COUNT( * ) + - 63 AS col1
----
0
-125

skipif mysql # not compatible
query II rowsort label-7103
SELECT DISTINCT + ( + + ( + COUNT ( * ) ) ) / + 42 AS col1, MAX ( - 62 ) / + COUNT ( * ) + - 63 AS col1
----
0
-125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7104
SELECT ALL + CAST( NULL AS SIGNED ) + - - 74 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7104
SELECT ALL + CAST ( NULL AS INTEGER ) + - - 74 AS col0
----
NULL

query I rowsort
SELECT ALL - 54 * 5
----
-270

query I rowsort
SELECT ALL 73 + - 7 col1
----
66

query I rowsort
SELECT ALL + 4 + 0 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7108
SELECT - - ( + NULLIF ( - COALESCE ( + - 98, 79, - COUNT( * ) ), + 53 * + - ( - - 32 ) ) ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-7108
SELECT - - ( + NULLIF ( - COALESCE ( + - 98, 79, - COUNT ( * ) ), + 53 * + - ( - - 32 ) ) ) AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7109
SELECT ALL - COUNT( * ) * ( 70 ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-7109
SELECT ALL - COUNT ( * ) * ( 70 ) AS col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7110
SELECT - MAX( DISTINCT - + 50 ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-7110
SELECT - MAX ( DISTINCT - + 50 ) AS col1
----
50

query I rowsort
SELECT - 63 - + ( - 8 ) AS col2
----
-55

query I rowsort
SELECT - 77 - + + 58 AS col2
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-7113
SELECT + COUNT( * ) * - ( - ( CASE - 58 WHEN + 96 THEN - ( - 27 ) - NULLIF ( 46, - COUNT( * ) + + 54 * - 82 ) WHEN - ( + + 72 ) * - COALESCE ( - ( 91 ), 24 ) + + 42 THEN NULL END ) ) / + - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-7113
SELECT + COUNT ( * ) * - ( - ( CASE - 58 WHEN + 96 THEN - ( - 27 ) - NULLIF ( 46, - COUNT ( * ) + + 54 * - 82 ) WHEN - ( + + 72 ) * - COALESCE ( - ( 91 ), 24 ) + + 42 THEN NULL END ) ) / + - 38
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7114
SELECT - 90 + 64 * + - COUNT( - 9 ) + - 38 - + + 53 * - CAST( NULL AS SIGNED ) * + - 35 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7114
SELECT - 90 + 64 * + - COUNT ( - 9 ) + - 38 - + + 53 * - CAST ( NULL AS INTEGER ) * + - 35 col1
----
NULL

query II rowsort
SELECT + 53 col0, 97
----
53
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7116
SELECT ALL - - 70 * + - ( - - 76 ) - - + 10 DIV 55 AS col1
----
-5320

skipif mysql # not compatible
query I rowsort label-7116
SELECT ALL - - 70 * + - ( - - 76 ) - - + 10 / 55 AS col1
----
-5320

onlyif mysql # aggregate syntax: 
query I rowsort label-7117
SELECT + 53 / + - AVG ( ALL + + 11 ) * + + 7 - + 0 / + - CASE + 28 WHEN - 45 THEN - ( 97 ) ELSE NULL END - + ( COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7117
SELECT + 53 / + - AVG ( ALL + + 11 ) * + + 7 - + 0 / + - CASE + 28 WHEN - 45 THEN - ( 97 ) ELSE NULL END - + ( COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7118
SELECT ALL + ( - COUNT( - + 41 ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-7118
SELECT ALL + ( - COUNT ( - + 41 ) ) col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7119
SELECT + - 47 - - + 72 * - 77 * + 47 + - + CASE - + 66 WHEN - 77 THEN - ( - CAST( NULL AS SIGNED ) ) ELSE + 61 - - - 88 END + - SUM( DISTINCT - 19 ) + + - 59 AS col0
----
-260628

skipif mysql # not compatible
query I rowsort label-7119
SELECT + - 47 - - + 72 * - 77 * + 47 + - + CASE - + 66 WHEN - 77 THEN - ( - CAST ( NULL AS INTEGER ) ) ELSE + 61 - - - 88 END + - SUM ( DISTINCT - 19 ) + + - 59 AS col0
----
-260628

query I rowsort
SELECT - - 36 * + 68 * - - 26
----
63648

query I rowsort
SELECT + 49 * 47 + - 81
----
2222

onlyif mysql # aggregate syntax: 
query I rowsort label-7122
SELECT ALL + COUNT( - 37 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-7122
SELECT ALL + COUNT ( - 37 ) col0
----
1

query I rowsort
SELECT COALESCE ( + - 73, + - 92 )
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-7124
SELECT 21 DIV + 33 - + 78 * + 82
----
-6396

skipif mysql # not compatible
query I rowsort label-7124
SELECT 21 / + 33 - + 78 * + 82
----
-6396

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7125
SELECT + 75 * + 92 col0, 32 DIV + + 88 + + COUNT( * ) col1
----
6900
1

skipif mysql # not compatible
query II rowsort label-7125
SELECT + 75 * + 92 col0, 32 / + + 88 + + COUNT ( * ) col1
----
6900
1

query I rowsort
SELECT + ( 64 ) AS col1
----
64

query I rowsort
SELECT - 4 + + 88 * + 38 AS col2
----
3340

query I rowsort
SELECT + 33 + 99 AS col0
----
132

query II rowsort
SELECT + 9 + + - 87 AS col0, 69 AS col1
----
-78
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7130
SELECT ALL CASE 17 WHEN - 21 THEN NULL WHEN 63 THEN COUNT( * ) END / ( - + 2 ) + + CASE - 18 WHEN 78 * + 12 THEN 87 / - 4 * + + 87 + + CASE - AVG ( DISTINCT - 70 ) WHEN + + COUNT( * ) + - 59 THEN - + NULLIF ( - 38, + ( - CASE 6 WHEN - NULLIF ( - + SUM( + 5 ), - 74 + CASE + 10 WHEN - SUM( ALL + 29 ) * + ( + + 58 ) * + 24 * - CASE 33 WHEN - + COUNT( * ) + - 90 + + 11 + + 80 * - 54 + + + 45 * - + 3 THEN - - COUNT( * ) ELSE NULL END + - 64 THEN + 89 * COUNT( ALL - 19 ) * + ( COALESCE ( 65, + 69 / - 2 ) * - 68 ) WHEN CASE 67 WHEN 57 THEN 12 / + 17 WHEN - 41 + CASE + 60 WHEN NULLIF ( ( 55 ), 28 / 88 + - 84 ) * 33 + 7 THEN 96 WHEN 34 + - 45 THEN 62 END THEN NULL ELSE 43 END * 0 THEN NULL WHEN 58 / SUM( 60 ) THEN 12 * 76 END ) THEN + COUNT( * ) END ) * + 74 ) + COUNT( * ) * + 10 ELSE NULL END WHEN 47 * + 35 THEN NULL ELSE - 16 / + 39 END * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7130
SELECT ALL CASE 17 WHEN - 21 THEN NULL WHEN 63 THEN COUNT ( * ) END / ( - + 2 ) + + CASE - 18 WHEN 78 * + 12 THEN 87 / - 4 * + + 87 + + CASE - AVG ( DISTINCT - 70 ) WHEN + + COUNT ( * ) + - 59 THEN - + NULLIF ( - 38, + ( - CASE 6 WHEN - NULLIF ( - + SUM ( + 5 ), - 74 + CASE + 10 WHEN - SUM ( ALL + 29 ) * + ( + + 58 ) * + 24 * - CASE 33 WHEN - + COUNT ( * ) + - 90 + + 11 + + 80 * - 54 + + + 45 * - + 3 THEN - - COUNT ( * ) ELSE NULL END + - 64 THEN + 89 * COUNT ( ALL - 19 ) * + ( COALESCE ( 65, + 69 / - 2 ) * - 68 ) WHEN CASE 67 WHEN 57 THEN 12 / + 17 WHEN - 41 + CASE + 60 WHEN NULLIF ( ( 55 ), 28 / 88 + - 84 ) * 33 + 7 THEN 96 WHEN 34 + - 45 THEN 62 END THEN NULL ELSE 43 END * 0 THEN NULL WHEN 58 / SUM ( 60 ) THEN 12 * 76 END ) THEN + COUNT ( * ) END ) * + 74 ) + COUNT ( * ) * + 10 ELSE NULL END WHEN 47 * + 35 THEN NULL ELSE - 16 / + 39 END * COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL 75 * + 10 + 30 AS col1
----
780

query II rowsort
SELECT DISTINCT ( 80 ) * - + ( - 86 ), - 5 + 91 + - ( - + 88 ) AS col1
----
6880
174

query I rowsort
SELECT - 55 + - 63 AS col1
----
-118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7134
SELECT DISTINCT ( - CAST( + + 11 AS SIGNED ) )
----
-11

skipif mysql # not compatible
query I rowsort label-7134
SELECT DISTINCT ( - CAST ( + + 11 AS INTEGER ) )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7135
SELECT + 34 * - COUNT( * ) col1
----
-34

skipif mysql # not compatible
query I rowsort label-7135
SELECT + 34 * - COUNT ( * ) col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-7136
SELECT - 8 + COUNT( * ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-7136
SELECT - 8 + COUNT ( * ) AS col2
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7137
SELECT ALL - + CASE - 22 WHEN ( + 30 ) THEN NULL WHEN 37 THEN + ( - 10 ) * + 46 + 89 - COALESCE ( - - 91, 93 ) - 74 + + 66 * 66 + - NULLIF ( - 25, + + 49 + - 98 ) END + - ( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7137
SELECT ALL - + CASE - 22 WHEN ( + 30 ) THEN NULL WHEN 37 THEN + ( - 10 ) * + 46 + 89 - COALESCE ( - - 91, 93 ) - 74 + + 66 * 66 + - NULLIF ( - 25, + + 49 + - 98 ) END + - ( - - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7138
SELECT - 47 + + 38 + 73 - - 78 * 98 DIV COUNT( * ) * + 60 AS col2
----
458704

skipif mysql # not compatible
query I rowsort label-7138
SELECT - 47 + + 38 + 73 - - 78 * 98 / COUNT ( * ) * + 60 AS col2
----
458704

onlyif mysql # aggregate syntax: 
query I rowsort label-7139
SELECT - SUM( + 63 ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-7139
SELECT - SUM ( + 63 ) AS col0
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-7140
SELECT - 31 - + - 26 DIV ( - 91 ) DIV + + 89 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-7140
SELECT - 31 - + - 26 / ( - 91 ) / + + 89 AS col0
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7141
SELECT ALL + 81 DIV + 6 + CAST( - COUNT( * ) AS SIGNED )
----
12

skipif mysql # not compatible
query I rowsort label-7141
SELECT ALL + 81 / + 6 + CAST ( - COUNT ( * ) AS INTEGER )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7142
SELECT + + COUNT( * ) - - 90 + - + 17 + + 29
----
103

skipif mysql # not compatible
query I rowsort label-7142
SELECT + + COUNT ( * ) - - 90 + - + 17 + + 29
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-7143
SELECT DISTINCT + 90 * - + COUNT( * ) * - - 65
----
-5850

skipif mysql # not compatible
query I rowsort label-7143
SELECT DISTINCT + 90 * - + COUNT ( * ) * - - 65
----
-5850

query I rowsort
SELECT ALL - 31 - - + 2
----
-29

query I rowsort
SELECT ALL + ( + 33 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7146
SELECT ALL - - ( SUM( + 64 ) ) - - CASE - + 16 WHEN + 20 THEN NULL WHEN + 94 THEN - COUNT( * ) * 46 END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7146
SELECT ALL - - ( SUM ( + 64 ) ) - - CASE - + 16 WHEN + 20 THEN NULL WHEN + 94 THEN - COUNT ( * ) * 46 END + COUNT ( * )
----
NULL

query I rowsort
SELECT + 38 + - 6 AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7148
SELECT - 77 * - + ( - 9 ) + + NULLIF ( - COUNT( * ), + 57 ) AS col1
----
-694

skipif mysql # not compatible
query I rowsort label-7148
SELECT - 77 * - + ( - 9 ) + + NULLIF ( - COUNT ( * ), + 57 ) AS col1
----
-694

onlyif mysql # aggregate syntax: 
query I rowsort label-7149
SELECT + COUNT( * ) * - + 19 col0
----
-19

skipif mysql # not compatible
query I rowsort label-7149
SELECT + COUNT ( * ) * - + 19 col0
----
-19

query I rowsort
SELECT ALL + ( + 26 )
----
26

query I rowsort
SELECT - 76 * 32 col1
----
-2432

query II rowsort
SELECT ALL + 83, 46 AS col2
----
83
46

query I rowsort
SELECT + NULLIF ( + 26, + 65 / - + 8 )
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7154
SELECT CAST( - COUNT( DISTINCT 28 ) AS SIGNED ), 58 AS col1
----
-1
58

skipif mysql # not compatible
query II rowsort label-7154
SELECT CAST ( - COUNT ( DISTINCT 28 ) AS INTEGER ), 58 AS col1
----
-1
58

query I rowsort
SELECT ALL 4 + NULLIF ( 63, - 25 ) AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7156
SELECT COUNT( * ) - - 70 AS col2
----
71

skipif mysql # not compatible
query I rowsort label-7156
SELECT COUNT ( * ) - - 70 AS col2
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-7157
SELECT COUNT( * ) * - MAX( DISTINCT - 24 ), + COUNT( * ) AS col1
----
24
1

skipif mysql # not compatible
query II rowsort label-7157
SELECT COUNT ( * ) * - MAX ( DISTINCT - 24 ), + COUNT ( * ) AS col1
----
24
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7158
SELECT + CAST( - 20 AS SIGNED ) * - 70 + + 84 + 72 + 15 DIV - 7 col2
----
1554

skipif mysql # not compatible
query I rowsort label-7158
SELECT + CAST ( - 20 AS INTEGER ) * - 70 + + 84 + 72 + 15 / - 7 col2
----
1554

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7159
SELECT DISTINCT COALESCE ( + CAST( NULL AS SIGNED ), COUNT( * ), + 27 + + 29 - 96 * + - 36 * + - 78 * - CAST( NULL AS SIGNED ) ) * + 39, 58 AS col1
----
39
58

skipif mysql # not compatible
query II rowsort label-7159
SELECT DISTINCT COALESCE ( + CAST ( NULL AS INTEGER ), COUNT ( * ), + 27 + + 29 - 96 * + - 36 * + - 78 * - CAST ( NULL AS INTEGER ) ) * + 39, 58 AS col1
----
39
58

query I rowsort
SELECT ALL 74 + + 13
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-7161
SELECT + 72 AS col2, - COUNT( * ) + ( - 10 ) AS col2
----
72
-11

skipif mysql # not compatible
query II rowsort label-7161
SELECT + 72 AS col2, - COUNT ( * ) + ( - 10 ) AS col2
----
72
-11

query I rowsort
SELECT DISTINCT 3 + - 16
----
-13

query I rowsort
SELECT DISTINCT 79 + + 68
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-7164
SELECT DISTINCT + COUNT( * ) + + 34 * + + MIN( 35 ) AS col1
----
1191

skipif mysql # not compatible
query I rowsort label-7164
SELECT DISTINCT + COUNT ( * ) + + 34 * + + MIN ( 35 ) AS col1
----
1191

onlyif mysql # aggregate syntax: 
query I rowsort label-7165
SELECT ( - CASE + 7 WHEN - MAX( DISTINCT - 68 ) THEN NULL ELSE 53 END ) * + 90
----
-4770

skipif mysql # not compatible
query I rowsort label-7165
SELECT ( - CASE + 7 WHEN - MAX ( DISTINCT - 68 ) THEN NULL ELSE 53 END ) * + 90
----
-4770

onlyif mysql # aggregate syntax: 
query I rowsort label-7166
SELECT 84 * COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-7166
SELECT 84 * COUNT ( * )
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7167
SELECT DISTINCT 31 * CASE WHEN NULL < ( CAST( NULL AS SIGNED ) ) THEN 31 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7167
SELECT DISTINCT 31 * CASE WHEN NULL < ( CAST ( NULL AS INTEGER ) ) THEN 31 END col1
----
NULL

query I rowsort
SELECT 94 + + 16 AS col1
----
110

query I rowsort
SELECT 97 * - 3
----
-291

onlyif mysql # aggregate syntax: 
query I rowsort label-7170
SELECT ALL + COUNT( DISTINCT ( 62 ) ) - + COUNT( * ) col0
----
0

skipif mysql # not compatible
query I rowsort label-7170
SELECT ALL + COUNT ( DISTINCT ( 62 ) ) - + COUNT ( * ) col0
----
0

query I rowsort
SELECT DISTINCT 95 * 64
----
6080

onlyif mysql # aggregate syntax: 
query I rowsort label-7172
SELECT ALL + COUNT( * ) - 69
----
-68

skipif mysql # not compatible
query I rowsort label-7172
SELECT ALL + COUNT ( * ) - 69
----
-68

query I rowsort
SELECT 87 * 32 col2
----
2784

query I rowsort
SELECT ALL 30 * + 55 col0
----
1650

onlyif mysql # DIV for integer division: 
query I rowsort label-7175
SELECT 93 DIV 66
----
1

skipif mysql # not compatible
query I rowsort label-7175
SELECT 93 / 66
----
1

query I rowsort
SELECT 77 * - 61 AS col0
----
-4697

query I rowsort
SELECT 12 * + 5
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7178
SELECT 83 - + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7178
SELECT 83 - + ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7179
SELECT 19 DIV ( + 91 )
----
0

skipif mysql # not compatible
query I rowsort label-7179
SELECT 19 / ( + 91 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7180
SELECT ALL - 47 DIV - 9 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-7180
SELECT ALL - 47 / - 9 AS col2
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7181
SELECT ALL - COUNT( * ) DIV + 76
----
0

skipif mysql # not compatible
query I rowsort label-7181
SELECT ALL - COUNT ( * ) / + 76
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7182
SELECT 2 + + 17 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7182
SELECT 2 + + 17 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 12 + - 95
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7184
SELECT ALL + COUNT( ALL - 60 ) * 77 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-7184
SELECT ALL + COUNT ( ALL - 60 ) * 77 AS col1
----
77

query I rowsort
SELECT ALL + ( + 87 ) + 68 AS col2
----
155

query I rowsort
SELECT ALL 99 + - 27 col0
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7187
SELECT ALL + 58 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7187
SELECT ALL + 58 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7188
SELECT DISTINCT - SUM( 29 ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-7188
SELECT DISTINCT - SUM ( 29 ) AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7189
SELECT COUNT( * ) * 51 + COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-7189
SELECT COUNT ( * ) * 51 + COUNT ( * )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7190
SELECT DISTINCT - COUNT( * ) * COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7190
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7191
SELECT ALL - ( - 35 ) + MAX( - 84 + 25 * - 88 ) AS col1
----
-2249

skipif mysql # not compatible
query I rowsort label-7191
SELECT ALL - ( - 35 ) + MAX ( - 84 + 25 * - 88 ) AS col1
----
-2249

query I rowsort
SELECT 27 + 27 * - 61
----
-1620

query I rowsort
SELECT 69 * - 7 AS col1
----
-483

query I rowsort
SELECT DISTINCT 98 + + 85
----
183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7195
SELECT ALL + CASE + 24 WHEN - COUNT( * ) / COUNT( 35 ) THEN NULL WHEN CAST( NULL AS SIGNED ) + 96 THEN ( - 90 ) END + 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7195
SELECT ALL + CASE + 24 WHEN - COUNT ( * ) / COUNT ( 35 ) THEN NULL WHEN CAST ( NULL AS INTEGER ) + 96 THEN ( - 90 ) END + 31 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7196
SELECT ALL 33 + - 19 DIV ( COUNT( * ) )
----
14

skipif mysql # not compatible
query I rowsort label-7196
SELECT ALL 33 + - 19 / ( COUNT ( * ) )
----
14

query I rowsort
SELECT ALL 50 * - 80 AS col2
----
-4000

onlyif mysql # aggregate syntax: 
query I rowsort label-7198
SELECT ALL - 96 * COUNT( * )
----
-96

skipif mysql # not compatible
query I rowsort label-7198
SELECT ALL - 96 * COUNT ( * )
----
-96

query I rowsort
SELECT 49 + + 25
----
74

query I rowsort
SELECT DISTINCT 32 * - 55
----
-1760

onlyif mysql # aggregate syntax: 
query I rowsort label-7201
SELECT + COUNT( * ) * + 80 + 67 AS col0
----
147

skipif mysql # not compatible
query I rowsort label-7201
SELECT + COUNT ( * ) * + 80 + 67 AS col0
----
147

query I rowsort
SELECT ALL 82 - - 81 col1
----
163

query I rowsort
SELECT - 56 + + ( + 79 )
----
23

query I rowsort
SELECT ALL + 95 * 36
----
3420

query I rowsort
SELECT - 66 + 88
----
22

query I rowsort
SELECT - 79 + 73 AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7207
SELECT COUNT( * ) + MIN( 86 + 3 ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-7207
SELECT COUNT ( * ) + MIN ( 86 + 3 ) AS col2
----
90

query I rowsort
SELECT + 32 * 7
----
224

query I rowsort
SELECT + NULLIF ( 61, 95 ) AS col2
----
61

query I rowsort
SELECT + 6 + - 40 * 64
----
-2554

query I rowsort
SELECT + 45 + - 93
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-7212
SELECT - CASE 13 WHEN 88 THEN 86 + 43 * + ( + ( 96 ) ) ELSE + 60 DIV 50 END AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7212
SELECT - CASE 13 WHEN 88 THEN 86 + 43 * + ( + ( 96 ) ) ELSE + 60 / 50 END AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7213
SELECT + 20 + - NULLIF ( CAST( NULL AS SIGNED ) + + 66, 86 + + 72 ) * 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7213
SELECT + 20 + - NULLIF ( CAST ( NULL AS INTEGER ) + + 66, 86 + + 72 ) * 2 AS col1
----
NULL

query I rowsort
SELECT ALL + ( - 25 ) * 19 AS col1
----
-475

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7215
SELECT + 73 + CAST( 97 AS SIGNED ) DIV 68 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-7215
SELECT + 73 + CAST ( 97 AS INTEGER ) / 68 AS col0
----
74

query I rowsort
SELECT - + 84 AS col2
----
-84

query I rowsort
SELECT NULLIF ( - 50, 62 * ( + 14 ) ) AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7218
SELECT DISTINCT - - COUNT( * ) + + 59 * COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-7218
SELECT DISTINCT - - COUNT ( * ) + + 59 * COUNT ( * )
----
60

query I rowsort
SELECT ALL + - 75 + - 77
----
-152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7220
SELECT 2 * + ( 91 ) * - COALESCE ( + 10 * 75, 4 DIV 32 + 84 * + COUNT( * ) ) AS col0
----
-136500

skipif mysql # not compatible
query I rowsort label-7220
SELECT 2 * + ( 91 ) * - COALESCE ( + 10 * 75, 4 / 32 + 84 * + COUNT ( * ) ) AS col0
----
-136500

query I rowsort
SELECT 37 + - + 57 AS col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7222
SELECT DISTINCT COUNT( * ) + + 60
----
61

skipif mysql # not compatible
query I rowsort label-7222
SELECT DISTINCT COUNT ( * ) + + 60
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7223
SELECT ALL COUNT( + 84 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7223
SELECT ALL COUNT ( + 84 ) AS col0
----
1

query I rowsort
SELECT + 10 + + 44 - 1 AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7225
SELECT - MAX( + - 64 ) * + ( 27 * + 64 ) AS col2
----
110592

skipif mysql # not compatible
query I rowsort label-7225
SELECT - MAX ( + - 64 ) * + ( 27 * + 64 ) AS col2
----
110592

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT - 45 * + - NULLIF ( COUNT( * ), ( + COALESCE ( - COUNT( DISTINCT + 61 ), 34 ) ) )
----
45

skipif mysql # not compatible
query I rowsort label-7226
SELECT - 45 * + - NULLIF ( COUNT ( * ), ( + COALESCE ( - COUNT ( DISTINCT + 61 ), 34 ) ) )
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-7227
SELECT COALESCE ( 70, - 95 DIV + 17 ) col2
----
70

skipif mysql # not compatible
query I rowsort label-7227
SELECT COALESCE ( 70, - 95 / + 17 ) col2
----
70

query I rowsort
SELECT ALL + COALESCE ( + 86, - 8 )
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-7229
SELECT + 75 DIV + 72 + 68 DIV - 33
----
-1

skipif mysql # not compatible
query I rowsort label-7229
SELECT + 75 / + 72 + 68 / - 33
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7230
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 45 * 60 - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-7230
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 45 * 60 - 8
----
NULL

query I rowsort
SELECT ALL - 27 * - - 8 * - 84
----
18144

query I rowsort
SELECT - 32 + + 57 * + 0
----
-32

query I rowsort
SELECT DISTINCT - 9 * 67
----
-603

onlyif mysql # aggregate syntax: 
query I rowsort label-7234
SELECT ALL + NULLIF ( + + COUNT( * ), COUNT( * ) / - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7234
SELECT ALL + NULLIF ( + + COUNT ( * ), COUNT ( * ) / - COUNT ( * ) ) AS col1
----
1

query I rowsort
SELECT - 79 * + 37
----
-2923

query I rowsort
SELECT NULLIF ( - 30, - 54 * 57 )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7237
SELECT 19 * - 91 * - 52 + - 39 * + COUNT( * ) AS col2
----
89869

skipif mysql # not compatible
query I rowsort label-7237
SELECT 19 * - 91 * - 52 + - 39 * + COUNT ( * ) AS col2
----
89869

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7238
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-7238
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7239
SELECT + MIN( ALL - + 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-7239
SELECT + MIN ( ALL - + 18 )
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7240
SELECT ALL + CAST( 42 AS SIGNED ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-7240
SELECT ALL + CAST ( 42 AS INTEGER ) AS col0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7241
SELECT + - CAST( ( 70 ) AS SIGNED ) * 7
----
-490

skipif mysql # not compatible
query I rowsort label-7241
SELECT + - CAST ( ( 70 ) AS INTEGER ) * 7
----
-490

query I rowsort
SELECT - - ( + - 50 )
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7243
SELECT - - 20 DIV - 8 * COUNT( * ) + + 66
----
64

skipif mysql # not compatible
query I rowsort label-7243
SELECT - - 20 / - 8 * COUNT ( * ) + + 66
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7244
SELECT + - 14 DIV COUNT( * ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-7244
SELECT + - 14 / COUNT ( * ) AS col1
----
-14

query I rowsort
SELECT ALL 74 + - + 61
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7246
SELECT - COUNT( * ) * - 74
----
74

skipif mysql # not compatible
query I rowsort label-7246
SELECT - COUNT ( * ) * - 74
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7247
SELECT + MIN( 66 ) DIV + 44 col1
----
1

skipif mysql # not compatible
query I rowsort label-7247
SELECT + MIN ( 66 ) / + 44 col1
----
1

query I rowsort
SELECT ALL + - 31 + + - 48 + 65 col1
----
-14

query I rowsort
SELECT DISTINCT - 26 + - 16 AS col2
----
-42

query I rowsort
SELECT ALL - 68 + COALESCE ( 20, 17 ) + 18 * 67
----
1158

query I rowsort
SELECT - ( + CASE 59 WHEN - 24 THEN - 32 WHEN 34 THEN NULL END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7252
SELECT ALL COALESCE ( + COUNT( * ), - 33, - 79 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7252
SELECT ALL COALESCE ( + COUNT ( * ), - 33, - 79 ) AS col0
----
1

query I rowsort
SELECT - + 93 + + + 4 * + 81
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-7254
SELECT DISTINCT ( + 17 ) + - + 12 + SUM( ALL - 76 - 83 * + 92 ) AS col0
----
-7707

skipif mysql # not compatible
query I rowsort label-7254
SELECT DISTINCT ( + 17 ) + - + 12 + SUM ( ALL - 76 - 83 * + 92 ) AS col0
----
-7707

query I rowsort
SELECT + 93 - - + 59
----
152

query I rowsort
SELECT + 69 + - 88 + - 36 * 6
----
-235

onlyif mysql # DIV for integer division: 
query I rowsort label-7257
SELECT - CASE 61 WHEN + 46 THEN 65 ELSE 83 + + 8 DIV + 8 END
----
-84

skipif mysql # not compatible
query I rowsort label-7257
SELECT - CASE 61 WHEN + 46 THEN 65 ELSE 83 + + 8 / + 8 END
----
-84

query I rowsort
SELECT + 45 + - 48 + - - 16 AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7259
SELECT DISTINCT 74 * + COUNT( * ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-7259
SELECT DISTINCT 74 * + COUNT ( * ) AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7260
SELECT ALL NULLIF ( CASE + 61 WHEN - 80 THEN + CASE 35 WHEN - ( - 62 ) + ( 91 ) THEN 20 + + ( 67 + CASE WHEN NOT - 40 IN ( + 36 / 44 ) THEN CASE + 86 WHEN COALESCE ( 73, 67 / - 95, + COALESCE ( + MAX( - 59 ), 14 + + 10 * + COUNT( * ) ) + + 88 * 72 ) THEN 64 + 70 ELSE + 54 END ELSE NULL END ) / - 73 WHEN - 37 THEN - 16 ELSE NULL END WHEN ( 7 ) + - 68 THEN NULL ELSE + 87 END, 99 - + 33 * - 52 )
----
87

skipif mysql # not compatible
query I rowsort label-7260
SELECT ALL NULLIF ( CASE + 61 WHEN - 80 THEN + CASE 35 WHEN - ( - 62 ) + ( 91 ) THEN 20 + + ( 67 + CASE WHEN NOT - 40 IN ( + 36 / 44 ) THEN CASE + 86 WHEN COALESCE ( 73, 67 / - 95, + COALESCE ( + MAX ( - 59 ), 14 + + 10 * + COUNT ( * ) ) + + 88 * 72 ) THEN 64 + 70 ELSE + 54 END ELSE NULL END ) / - 73 WHEN - 37 THEN - 16 ELSE NULL END WHEN ( 7 ) + - 68 THEN NULL ELSE + 87 END, 99 - + 33 * - 52 )
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7261
SELECT + 71 / - - 63 * + CAST( NULL AS SIGNED ) - NULLIF ( + 59, 20 * + CAST( 14 AS SIGNED ) + - ( + 84 + - 22 * 2 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7261
SELECT + 71 / - - 63 * + CAST ( NULL AS INTEGER ) - NULLIF ( + 59, 20 * + CAST ( 14 AS INTEGER ) + - ( + 84 + - 22 * 2 ) ) AS col0
----
NULL

query I rowsort
SELECT ALL ( + 65 ) * - 66 * 6 + 7
----
-25733

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7263
SELECT DISTINCT + 1 AS col0, 72 DIV + + 76 - CASE - CAST( 91 AS SIGNED ) WHEN + 73 - SUM( ALL + 22 ) THEN NULL WHEN + CAST( 24 AS SIGNED ) + - 45 * ( 81 ) THEN + 39 DIV + 90 ELSE - 34 END AS col1
----
1
34

skipif mysql # not compatible
query II rowsort label-7263
SELECT DISTINCT + 1 AS col0, 72 / + + 76 - CASE - CAST ( 91 AS INTEGER ) WHEN + 73 - SUM ( ALL + 22 ) THEN NULL WHEN + CAST ( 24 AS INTEGER ) + - 45 * ( 81 ) THEN + 39 / + 90 ELSE - 34 END AS col1
----
1
34

query I rowsort
SELECT - 91 + + 1 * 24 + 67
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7265
SELECT CAST( + 79 AS SIGNED ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-7265
SELECT CAST ( + 79 AS INTEGER ) AS col1
----
79

query I rowsort
SELECT - ( - 34 ) * - 41 AS col0
----
-1394

query I rowsort
SELECT + 55 + + 84 AS col0
----
139

query I rowsort
SELECT - 61 * ( + + 89 ) AS col1
----
-5429

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7269
SELECT DISTINCT + 0, CAST( NULL AS SIGNED ) * - + ( 95 ) / + 28 - 73 AS col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-7269
SELECT DISTINCT + 0, CAST ( NULL AS INTEGER ) * - + ( 95 ) / + 28 - 73 AS col0
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7270
SELECT ALL + 33 * COUNT( * ) * + 92 * 61
----
185196

skipif mysql # not compatible
query I rowsort label-7270
SELECT ALL + 33 * COUNT ( * ) * + 92 * 61
----
185196

onlyif mysql # aggregate syntax: 
query I rowsort label-7271
SELECT ALL - ( ( 36 ) ) * COUNT( DISTINCT 92 )
----
-36

skipif mysql # not compatible
query I rowsort label-7271
SELECT ALL - ( ( 36 ) ) * COUNT ( DISTINCT 92 )
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7272
SELECT + CASE 65 WHEN - ( - ( - 24 ) ) + + CAST( - 37 AS SIGNED ) THEN NULL WHEN - 41 THEN NULL ELSE 62 * 68 END
----
4216

skipif mysql # not compatible
query I rowsort label-7272
SELECT + CASE 65 WHEN - ( - ( - 24 ) ) + + CAST ( - 37 AS INTEGER ) THEN NULL WHEN - 41 THEN NULL ELSE 62 * 68 END
----
4216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7273
SELECT ALL + CASE - 76 WHEN - ( 8 ) * + NULLIF ( 33 * CAST( + ( + COUNT( * ) ) * - 35 AS SIGNED ) - 84, 95 ) THEN 45 * - ( - 3 * COUNT( ALL 17 * - 94 ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7273
SELECT ALL + CASE - 76 WHEN - ( 8 ) * + NULLIF ( 33 * CAST ( + ( + COUNT ( * ) ) * - 35 AS INTEGER ) - 84, 95 ) THEN 45 * - ( - 3 * COUNT ( ALL 17 * - 94 ) ) END AS col1
----
NULL

query II rowsort
SELECT + 84 col2, 1 + 25 * - 44
----
84
-1099

onlyif mysql # aggregate syntax: 
query I rowsort label-7275
SELECT + 5 * + CASE - - 2 WHEN + 38 THEN 30 WHEN 85 * + 23 THEN NULL END / 76 + - MAX( DISTINCT + 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7275
SELECT + 5 * + CASE - - 2 WHEN + 38 THEN 30 WHEN 85 * + 23 THEN NULL END / 76 + - MAX ( DISTINCT + 1 )
----
NULL

query II rowsort
SELECT 19 col1, + 63
----
19
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7277
SELECT 32 * + COUNT( - - 21 ) + - 30 * 60 + 67 * - 8 AS col0
----
-2304

skipif mysql # not compatible
query I rowsort label-7277
SELECT 32 * + COUNT ( - - 21 ) + - 30 * 60 + 67 * - 8 AS col0
----
-2304

query II rowsort
SELECT 57, - 64 AS col0
----
57
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7279
SELECT DISTINCT 41 * + COUNT( * ) * + + ( + 46 ) + 90 AS col1
----
1976

skipif mysql # not compatible
query I rowsort label-7279
SELECT DISTINCT 41 * + COUNT ( * ) * + + ( + 46 ) + 90 AS col1
----
1976

query I rowsort
SELECT ALL 79 * - 75 + - 8 + + 40
----
-5893

query I rowsort
SELECT ALL - + 35 * 79 + - 80
----
-2845

onlyif mysql # aggregate syntax: 
query II rowsort label-7282
SELECT ALL + 11, + 89 * - COUNT( * ) + + 7 AS col0
----
11
-82

skipif mysql # not compatible
query II rowsort label-7282
SELECT ALL + 11, + 89 * - COUNT ( * ) + + 7 AS col0
----
11
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-7283
SELECT - 77 + - - 87 DIV - 46
----
-78

skipif mysql # not compatible
query I rowsort label-7283
SELECT - 77 + - - 87 / - 46
----
-78

query I rowsort
SELECT ALL 17 * + NULLIF ( + 40, - 66 + + 33 )
----
680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7285
SELECT DISTINCT + + 81 * - - ( + CASE + 56 WHEN SUM( - 33 ) * 94 + - CASE COALESCE ( - CAST( NULL AS SIGNED ), 31 * CASE SUM( - 84 ) * 25 WHEN 99 + + 63 THEN 92 - 1 * - 63 WHEN + COUNT( - 37 ) / COUNT( * ) THEN + 9 / + 51 ELSE NULL END, + 81 ) WHEN 70 THEN + 14 WHEN CASE 26 WHEN 5 THEN 37 WHEN - MIN( 86 ) * - 99 + - 40 THEN 11 END + - COUNT( * ) THEN NULL WHEN 50 + + 14 THEN NULL ELSE - ( + 99 ) * + 12 + + 62 * ( - 94 - + 45 * + ( 62 * - 62 ) ) END * 71 THEN NULL ELSE - 59 + + 54 END ) + + 37 * 89 AS col2
----
2888

skipif mysql # not compatible
query I rowsort label-7285
SELECT DISTINCT + + 81 * - - ( + CASE + 56 WHEN SUM ( - 33 ) * 94 + - CASE COALESCE ( - CAST ( NULL AS INTEGER ), 31 * CASE SUM ( - 84 ) * 25 WHEN 99 + + 63 THEN 92 - 1 * - 63 WHEN + COUNT ( - 37 ) / COUNT ( * ) THEN + 9 / + 51 ELSE NULL END, + 81 ) WHEN 70 THEN + 14 WHEN CASE 26 WHEN 5 THEN 37 WHEN - MIN ( 86 ) * - 99 + - 40 THEN 11 END + - COUNT ( * ) THEN NULL WHEN 50 + + 14 THEN NULL ELSE - ( + 99 ) * + 12 + + 62 * ( - 94 - + 45 * + ( 62 * - 62 ) ) END * 71 THEN NULL ELSE - 59 + + 54 END ) + + 37 * 89 AS col2
----
2888

query II rowsort
SELECT 31 AS col0, + 27 + + 15
----
31
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7287
SELECT - COUNT( + 26 )
----
-1

skipif mysql # not compatible
query I rowsort label-7287
SELECT - COUNT ( + 26 )
----
-1

query I rowsort
SELECT 5 + 72
----
77

query I rowsort
SELECT - 44 * 83 + + - 69 AS col2
----
-3721

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7290
SELECT ALL MAX( DISTINCT + 90 ) * - CASE + + COUNT( * ) WHEN CAST( NULL AS DECIMAL ) + + 76 * - 32 THEN + COUNT( * ) + 90 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7290
SELECT ALL MAX ( DISTINCT + 90 ) * - CASE + + COUNT ( * ) WHEN CAST ( NULL AS REAL ) + + 76 * - 32 THEN + COUNT ( * ) + 90 END
----
NULL

query I rowsort
SELECT DISTINCT 39 col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7292
SELECT 53 * COUNT( * ) * + 64 AS col1
----
3392

skipif mysql # not compatible
query I rowsort label-7292
SELECT 53 * COUNT ( * ) * + 64 AS col1
----
3392

onlyif mysql # aggregate syntax: 
query I rowsort label-7293
SELECT ALL - COUNT( * ) * - 90 * - - 94 AS col0
----
8460

skipif mysql # not compatible
query I rowsort label-7293
SELECT ALL - COUNT ( * ) * - 90 * - - 94 AS col0
----
8460

query I rowsort
SELECT 43 * - 56 AS col0
----
-2408

query I rowsort
SELECT CASE + 60 WHEN + + NULLIF ( 21, - 21 ) * + 47 THEN + 59 ELSE NULL END * - ( + 83 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7296
SELECT ALL 67 * + COUNT( * ) col2
----
67

skipif mysql # not compatible
query I rowsort label-7296
SELECT ALL 67 * + COUNT ( * ) col2
----
67

query I rowsort
SELECT CASE - 79 WHEN 70 + + 69 - - ( - 44 ) THEN 33 END * NULLIF ( 65, 13 )
----
NULL

query I rowsort
SELECT ALL - ( 89 ) AS col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-7299
SELECT DISTINCT COUNT( * ) * 34 * - + 16 AS col0
----
-544

skipif mysql # not compatible
query I rowsort label-7299
SELECT DISTINCT COUNT ( * ) * 34 * - + 16 AS col0
----
-544

query I rowsort
SELECT ALL 32 * - 75 AS col1
----
-2400

onlyif mysql # DIV for integer division: 
query I rowsort label-7301
SELECT + - 44 DIV - 81 + + + 81 + + - COALESCE ( 43, - 79 ) + ( + 55 ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-7301
SELECT + - 44 / - 81 + + + 81 + + - COALESCE ( 43, - 79 ) + ( + 55 ) AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7302
SELECT DISTINCT - 75 * - 82 + - + 86 - COUNT( * ) AS col1
----
6063

skipif mysql # not compatible
query I rowsort label-7302
SELECT DISTINCT - 75 * - 82 + - + 86 - COUNT ( * ) AS col1
----
6063

onlyif mysql # DIV for integer division: 
query I rowsort label-7303
SELECT ALL - 92 DIV + 36 - + - 62 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-7303
SELECT ALL - 92 / + 36 - + - 62 AS col2
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-7304
SELECT + 25 DIV - ( 6 ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-7304
SELECT + 25 / - ( 6 ) AS col1
----
-4

query I rowsort
SELECT ALL - 81 + - 50
----
-131

query I rowsort
SELECT DISTINCT - 23 + + 86 AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7307
SELECT DISTINCT - + NULLIF ( COUNT( 14 ), - + CASE + 69 WHEN + COUNT( * ) * + 94 THEN - SUM( 59 ) + + 40 WHEN 64 THEN COUNT( * ) * + MIN( + 6 ) END + + 85 ) + 80
----
79

skipif mysql # not compatible
query I rowsort label-7307
SELECT DISTINCT - + NULLIF ( COUNT ( 14 ), - + CASE + 69 WHEN + COUNT ( * ) * + 94 THEN - SUM ( 59 ) + + 40 WHEN 64 THEN COUNT ( * ) * + MIN ( + 6 ) END + + 85 ) + 80
----
79

query I rowsort
SELECT DISTINCT + + ( - - 14 ) + + 23 * - 51 * 97 - + 74
----
-113841

onlyif mysql # aggregate syntax: 
query I rowsort label-7309
SELECT DISTINCT - + COALESCE ( - 82, - COUNT( * ), + - 51 * 23 ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-7309
SELECT DISTINCT - + COALESCE ( - 82, - COUNT ( * ), + - 51 * 23 ) AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7310
SELECT ALL + COUNT( * ) + - 41 AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-7310
SELECT ALL + COUNT ( * ) + - 41 AS col0
----
-40

query I rowsort
SELECT - - 74 col2
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7312
SELECT + CAST( + 61 AS SIGNED ) AS col2, COUNT( * ) + 21 AS col1
----
61
22

skipif mysql # not compatible
query II rowsort label-7312
SELECT + CAST ( + 61 AS INTEGER ) AS col2, COUNT ( * ) + 21 AS col1
----
61
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7313
SELECT DISTINCT CASE - 18 WHEN CASE + 77 WHEN 78 THEN - 55 + 59 END + + 67 / - 24 THEN ( 59 ) * + CAST( NULL AS SIGNED ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7313
SELECT DISTINCT CASE - 18 WHEN CASE + 77 WHEN 78 THEN - 55 + 59 END + + 67 / - 24 THEN ( 59 ) * + CAST ( NULL AS INTEGER ) END col2
----
NULL

query I rowsort
SELECT + 41 * + + 55 AS col2
----
2255

onlyif mysql # aggregate syntax: 
query I rowsort label-7315
SELECT 51 * COUNT( * ) * + COUNT( * ) + - + 36 * 6
----
-165

skipif mysql # not compatible
query I rowsort label-7315
SELECT 51 * COUNT ( * ) * + COUNT ( * ) + - + 36 * 6
----
-165

onlyif mysql # aggregate syntax: 
query II rowsort label-7316
SELECT ALL + COUNT( DISTINCT + + 67 ) AS col1, 39
----
1
39

skipif mysql # not compatible
query II rowsort label-7316
SELECT ALL + COUNT ( DISTINCT + + 67 ) AS col1, 39
----
1
39

onlyif mysql # aggregate syntax: 
query II rowsort label-7317
SELECT DISTINCT 83, + SUM( + - 71 ) AS col1
----
83
-71

skipif mysql # not compatible
query II rowsort label-7317
SELECT DISTINCT 83, + SUM ( + - 71 ) AS col1
----
83
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7318
SELECT DISTINCT ( - ( - COUNT( * ) ) ) * + + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7318
SELECT DISTINCT ( - ( - COUNT ( * ) ) ) * + + COUNT ( * ) AS col1
----
1

query I rowsort
SELECT 53 - + 83 col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7320
SELECT DISTINCT MIN( ALL 1 ) - - - 84 - + COUNT( * ) - 27 + + ( 91 )
----
-20

skipif mysql # not compatible
query I rowsort label-7320
SELECT DISTINCT MIN ( ALL 1 ) - - - 84 - + COUNT ( * ) - 27 + + ( 91 )
----
-20

query I rowsort
SELECT 36 + - - ( + 14 ) * - - 61 AS col1
----
890

query I rowsort
SELECT 78 * - 44 * - 82 * 84
----
23639616

query I rowsort
SELECT 52 + + 26 - 84 + + + 67 * - + ( 65 ) AS col2
----
-4361

query I rowsort
SELECT 62 + + ( + 12 ) AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7325
SELECT 97 - - 74 * 2 * + COUNT( * ) AS col1
----
245

skipif mysql # not compatible
query I rowsort label-7325
SELECT 97 - - 74 * 2 * + COUNT ( * ) AS col1
----
245

query I rowsort
SELECT DISTINCT - 51 * + 94 AS col1
----
-4794

query I rowsort
SELECT DISTINCT + 78 + + + CASE - 3 WHEN 97 * 97 + + 57 THEN + 59 WHEN + 45 THEN + 24 + 29 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7328
SELECT + 25 DIV + + 19 + 56
----
57

skipif mysql # not compatible
query I rowsort label-7328
SELECT + 25 / + + 19 + 56
----
57

query I rowsort
SELECT 68 * - 90 * - + 66 * + 23
----
9290160

onlyif mysql # aggregate syntax: 
query I rowsort label-7330
SELECT ALL CASE - + ( - - 22 ) WHEN - 11 THEN - + MIN( 68 ) END * + 97 + 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7330
SELECT ALL CASE - + ( - - 22 ) WHEN - 11 THEN - + MIN ( 68 ) END * + 97 + 7 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7331
SELECT MIN( - - 45 )
----
45

skipif mysql # not compatible
query I rowsort label-7331
SELECT MIN ( - - 45 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7332
SELECT + - CASE + - 35 WHEN - COUNT( * ) THEN - 29 WHEN + 35 + - 1 THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7332
SELECT + - CASE + - 35 WHEN - COUNT ( * ) THEN - 29 WHEN + 35 + - 1 THEN NULL END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7333
SELECT CASE WHEN 51 NOT BETWEEN NULL AND - - 18 * + + 5 + CAST( NULL AS SIGNED ) THEN NULL WHEN NOT 35 NOT BETWEEN ( NULL ) AND 24 THEN COALESCE ( ( - COALESCE ( + ( + 81 ), + 35 * + 24, + MAX( - 9 ) ) ), 43 + COUNT( * ), 47, + COUNT( * ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7333
SELECT CASE WHEN 51 NOT BETWEEN NULL AND - - 18 * + + 5 + CAST ( NULL AS INTEGER ) THEN NULL WHEN NOT 35 NOT BETWEEN ( NULL ) AND 24 THEN COALESCE ( ( - COALESCE ( + ( + 81 ), + 35 * + 24, + MAX ( - 9 ) ) ), 43 + COUNT ( * ), 47, + COUNT ( * ) ) END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7334
SELECT ALL + 11 * - CAST( + + 39 AS SIGNED ) + + - 46 col2
----
-475

skipif mysql # not compatible
query I rowsort label-7334
SELECT ALL + 11 * - CAST ( + + 39 AS INTEGER ) + + - 46 col2
----
-475

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7335
SELECT + 96 * + + COALESCE ( - CAST( - 65 AS SIGNED ), - - 16 * 36 + 85 ) AS col2
----
6240

skipif mysql # not compatible
query I rowsort label-7335
SELECT + 96 * + + COALESCE ( - CAST ( - 65 AS INTEGER ), - - 16 * 36 + 85 ) AS col2
----
6240

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7336
SELECT ALL + 32 * + 40 * - AVG ( DISTINCT - CAST( NULL AS DECIMAL ) ) + - 53 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7336
SELECT ALL + 32 * + 40 * - AVG ( DISTINCT - CAST ( NULL AS REAL ) ) + - 53 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7337
SELECT ALL - - 80 * + 48 * + 86 + - + ( + + COUNT( DISTINCT + 80 ) ) col1
----
330239

skipif mysql # not compatible
query I rowsort label-7337
SELECT ALL - - 80 * + 48 * + 86 + - + ( + + COUNT ( DISTINCT + 80 ) ) col1
----
330239

query I rowsort
SELECT - 32 - + + ( + 72 ) AS col1
----
-104

query I rowsort
SELECT DISTINCT + 38 * + 33 + + 1 * + 50
----
1304

onlyif mysql # aggregate syntax: 
query I rowsort label-7340
SELECT ALL - 95 * - + COUNT( * ) + 46 AS col0
----
141

skipif mysql # not compatible
query I rowsort label-7340
SELECT ALL - 95 * - + COUNT ( * ) + 46 AS col0
----
141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7341
SELECT + + CAST( + 99 AS SIGNED ) + + 10 * + 16 * + 94 * COALESCE ( ( + 5 ), + 0 DIV MIN( + 48 ) )
----
75299

skipif mysql # not compatible
query I rowsort label-7341
SELECT + + CAST ( + 99 AS INTEGER ) + + 10 * + 16 * + 94 * COALESCE ( ( + 5 ), + 0 / MIN ( + 48 ) )
----
75299

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7342
SELECT + - CASE + CAST( NULL AS SIGNED ) WHEN CAST( + 75 AS SIGNED ) THEN - + 82 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7342
SELECT + - CASE + CAST ( NULL AS INTEGER ) WHEN CAST ( + 75 AS INTEGER ) THEN - + 82 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + - 89 + + + 9 AS col0
----
-80

query I rowsort
SELECT + 82 - - + 62 + 58 * - 21 + + 42 - - 83 AS col1
----
-949

query I rowsort
SELECT DISTINCT + 17 col0
----
17

query I rowsort
SELECT - 95 - - + ( - ( + - 11 ) ) AS col0
----
-84

query I rowsort
SELECT + 22 * 83 * + + 9
----
16434

onlyif mysql # aggregate syntax: 
query I rowsort label-7348
SELECT ALL - 36 * 81 * - - COUNT( - + 51 ) AS col1
----
-2916

skipif mysql # not compatible
query I rowsort label-7348
SELECT ALL - 36 * 81 * - - COUNT ( - + 51 ) AS col1
----
-2916

onlyif mysql # aggregate syntax: 
query I rowsort label-7349
SELECT + 40 + - + COUNT( + 2 ) * + 89 col1
----
-49

skipif mysql # not compatible
query I rowsort label-7349
SELECT + 40 + - + COUNT ( + 2 ) * + 89 col1
----
-49

query II rowsort
SELECT DISTINCT 38 AS col2, 10 * + 74 col0
----
38
740

onlyif mysql # aggregate syntax: 
query I rowsort label-7351
SELECT - SUM( ALL - COALESCE ( + 78, 37 ) ) + + 3
----
81

skipif mysql # not compatible
query I rowsort label-7351
SELECT - SUM ( ALL - COALESCE ( + 78, 37 ) ) + + 3
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7352
SELECT DISTINCT 57 * - - MAX( DISTINCT - 28 ) AS col1
----
-1596

skipif mysql # not compatible
query I rowsort label-7352
SELECT DISTINCT 57 * - - MAX ( DISTINCT - 28 ) AS col1
----
-1596

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7353
SELECT - CAST( COUNT( * ) AS SIGNED ) + - + 58 AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-7353
SELECT - CAST ( COUNT ( * ) AS INTEGER ) + - + 58 AS col0
----
-59

query II rowsort
SELECT 88 AS col1, + 83 AS col1
----
88
83

query I rowsort
SELECT - 86 * 92
----
-7912

query I rowsort
SELECT ALL - 64 * ( + - 46 ) AS col0
----
2944

onlyif mysql # aggregate syntax: 
query I rowsort label-7357
SELECT ALL MAX( ALL + 46 )
----
46

skipif mysql # not compatible
query I rowsort label-7357
SELECT ALL MAX ( ALL + 46 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7358
SELECT - ( - SUM( - 5 ) ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-7358
SELECT - ( - SUM ( - 5 ) ) AS col1
----
-5

query I rowsort
SELECT - 33 * + 58 AS col0
----
-1914

onlyif mysql # aggregate syntax: 
query I rowsort label-7360
SELECT ALL NULLIF ( - MIN( - + 17 ), + - 38 )
----
17

skipif mysql # not compatible
query I rowsort label-7360
SELECT ALL NULLIF ( - MIN ( - + 17 ), + - 38 )
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-7361
SELECT ALL 56 * + COUNT( * ) AS col0, - 61 AS col2
----
56
-61

skipif mysql # not compatible
query II rowsort label-7361
SELECT ALL 56 * + COUNT ( * ) AS col0, - 61 AS col2
----
56
-61

query II rowsort
SELECT 17 AS col1, 59 + + - 99 + - 90 col2
----
17
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT ALL + 65 + - + 66 + - 46 * + ( ( - COUNT( * ) ) ) * - 31
----
-1427

skipif mysql # not compatible
query I rowsort label-7363
SELECT ALL + 65 + - + 66 + - 46 * + ( ( - COUNT ( * ) ) ) * - 31
----
-1427

query I rowsort
SELECT DISTINCT + 92 + + 52
----
144

query I rowsort
SELECT - ( + 53 )
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-7366
SELECT - 20 DIV + 71
----
0

skipif mysql # not compatible
query I rowsort label-7366
SELECT - 20 / + 71
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT ALL + SUM( ALL 21 ) + + 3 * 5
----
36

skipif mysql # not compatible
query I rowsort label-7367
SELECT ALL + SUM ( ALL 21 ) + + 3 * 5
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-7368
SELECT 4 col1, 61 * - 35 * + - COUNT( * )
----
4
2135

skipif mysql # not compatible
query II rowsort label-7368
SELECT 4 col1, 61 * - 35 * + - COUNT ( * )
----
4
2135

onlyif mysql # aggregate syntax: 
query I rowsort label-7369
SELECT - - 36 - + COUNT( * ) + + 81 * + 20 AS col1
----
1655

skipif mysql # not compatible
query I rowsort label-7369
SELECT - - 36 - + COUNT ( * ) + + 81 * + 20 AS col1
----
1655

onlyif mysql # aggregate syntax: 
query II rowsort label-7370
SELECT + 91 col2, COUNT( * )
----
91
1

skipif mysql # not compatible
query II rowsort label-7370
SELECT + 91 col2, COUNT ( * )
----
91
1

query II rowsort
SELECT ALL + - 54 AS col1, 27 col1
----
-54
27

query I rowsort
SELECT ALL + - ( + 25 ) AS col0
----
-25

query I rowsort
SELECT ALL - + CASE + 85 WHEN + + 53 + + ( + + 47 ) + - + 44 * 36 THEN NULL WHEN 50 THEN 27 END * 41 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7374
SELECT DISTINCT + - 56, + 72 + - 47 + - ( - + 7 ) - - 29 + + COUNT( - 86 ) * 43 * - 59 * 27 AS col0
----
-56
-68438

skipif mysql # not compatible
query II rowsort label-7374
SELECT DISTINCT + - 56, + 72 + - 47 + - ( - + 7 ) - - 29 + + COUNT ( - 86 ) * 43 * - 59 * 27 AS col0
----
-56
-68438

onlyif mysql # aggregate syntax: 
query I rowsort label-7375
SELECT ALL + SUM( DISTINCT + 71 )
----
71

skipif mysql # not compatible
query I rowsort label-7375
SELECT ALL + SUM ( DISTINCT + 71 )
----
71

query I rowsort
SELECT - + 79 + - 46
----
-125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7377
SELECT + - COUNT( * ) + + + 59 DIV MAX( DISTINCT - 16 ) - 71 - 91 DIV 56
----
-76

skipif mysql # not compatible
query I rowsort label-7377
SELECT + - COUNT ( * ) + + + 59 / MAX ( DISTINCT - 16 ) - 71 - 91 / 56
----
-76

query I rowsort
SELECT ALL + 5 * - 45 - - 18 AS col0
----
-207

query I rowsort
SELECT ( 47 ) AS col0
----
47

query II rowsort
SELECT + + 98 AS col2, 6
----
98
6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7381
SELECT + + 57 AS col2, + COUNT( * ) * - 41 + CAST( NULL AS DECIMAL ) AS col2
----
57
NULL

skipif mysql # not compatible
query II rowsort label-7381
SELECT + + 57 AS col2, + COUNT ( * ) * - 41 + CAST ( NULL AS REAL ) AS col2
----
57
NULL

query I rowsort
SELECT DISTINCT + + 45 AS col0
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-7383
SELECT ALL + 4 AS col2, ( ( - - COUNT( * ) ) ) AS col1
----
4
1

skipif mysql # not compatible
query II rowsort label-7383
SELECT ALL + 4 AS col2, ( ( - - COUNT ( * ) ) ) AS col1
----
4
1

query I rowsort
SELECT + - 52 * + 56 + + 63 AS col1
----
-2849

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7385
SELECT + ( + + CAST( - - 87 AS SIGNED ) ) * 17 AS col0, - 28 - 72 + + COUNT( * ) AS col0
----
1479
-99

skipif mysql # not compatible
query II rowsort label-7385
SELECT + ( + + CAST ( - - 87 AS INTEGER ) ) * 17 AS col0, - 28 - 72 + + COUNT ( * ) AS col0
----
1479
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-7386
SELECT - 28 DIV + 22
----
-1

skipif mysql # not compatible
query I rowsort label-7386
SELECT - 28 / + 22
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7387
SELECT + MAX( DISTINCT - 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-7387
SELECT + MAX ( DISTINCT - 18 )
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-7388
SELECT - COUNT( * ) - - 91 AS col0, 57 + 81 + - + 45 * + 2 * + - 20 * - 98 col2
----
90
-176262

skipif mysql # not compatible
query II rowsort label-7388
SELECT - COUNT ( * ) - - 91 AS col0, 57 + 81 + - + 45 * + 2 * + - 20 * - 98 col2
----
90
-176262

query I rowsort
SELECT CASE WHEN NOT NULL = ( + - 56 ) THEN NULL ELSE + 35 + - 3 END AS col1
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7390
SELECT COUNT( * ) * 29 - + - 3 + COUNT( * ) + + 76 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7390
SELECT COUNT ( * ) * 29 - + - 3 + COUNT ( * ) + + 76 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7391
SELECT COUNT( DISTINCT - - 66 )
----
1

skipif mysql # not compatible
query I rowsort label-7391
SELECT COUNT ( DISTINCT - - 66 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7392
SELECT + COUNT( * ) * - 48 * CASE - - 4 WHEN - + 21 / + + COALESCE ( - AVG ( DISTINCT 71 ), 31 * - 29 + - ( ( 40 ) + 4 ), + 76 ) THEN NULL ELSE 54 END
----
-2592

skipif mysql # not compatible
query I rowsort label-7392
SELECT + COUNT ( * ) * - 48 * CASE - - 4 WHEN - + 21 / + + COALESCE ( - AVG ( DISTINCT 71 ), 31 * - 29 + - ( ( 40 ) + 4 ), + 76 ) THEN NULL ELSE 54 END
----
-2592

onlyif mysql # aggregate syntax: 
query I rowsort label-7393
SELECT ALL 45 / 10 / - CASE 76 WHEN - 1 * COALESCE ( - 81, - 58 + 59 / - COALESCE ( + NULLIF ( + COALESCE ( 61, COUNT( * ) + - 60 ), + 49 ), + ( - 17 ), + 46 - + ( + 75 ), COALESCE ( NULLIF ( + 81, + 83 / + COUNT( * ) + - 82 ), + 1 ) * + 34 ) ) + - 34 * - 92 THEN MIN( - 92 ) / + 8 + 74 WHEN ( + 48 ) + 44 THEN - ( 75 ) * + 44 WHEN 91 - + 12 * 9 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7393
SELECT ALL 45 / 10 / - CASE 76 WHEN - 1 * COALESCE ( - 81, - 58 + 59 / - COALESCE ( + NULLIF ( + COALESCE ( 61, COUNT ( * ) + - 60 ), + 49 ), + ( - 17 ), + 46 - + ( + 75 ), COALESCE ( NULLIF ( + 81, + 83 / + COUNT ( * ) + - 82 ), + 1 ) * + 34 ) ) + - 34 * - 92 THEN MIN ( - 92 ) / + 8 + 74 WHEN ( + 48 ) + 44 THEN - ( 75 ) * + 44 WHEN 91 - + 12 * 9 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT + 9 * 29
----
261

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7395
SELECT ALL 15 + 50 * COUNT( * ) DIV 24 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-7395
SELECT ALL 15 + 50 * COUNT ( * ) / 24 AS col0
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7396
SELECT + 27 - 72 + + COUNT( * ) DIV + + COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-7396
SELECT + 27 - 72 + + COUNT ( * ) / + + COUNT ( * )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-7397
SELECT + 73 + - COALESCE ( + COUNT( * ), - 40 * - - ( + 29 ) - 98 + - ( - 85 ) ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-7397
SELECT + 73 + - COALESCE ( + COUNT ( * ), - 40 * - - ( + 29 ) - 98 + - ( - 85 ) ) AS col0
----
72

query I rowsort
SELECT - ( ( - 38 ) ) AS col0
----
38

query I rowsort
SELECT ALL 2 * 55
----
110

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7400
SELECT - CAST( AVG ( ALL + - 68 ) AS SIGNED ), - 0 AS col1
----
68
0

skipif mysql # not compatible
query II rowsort label-7400
SELECT - CAST ( AVG ( ALL + - 68 ) AS INTEGER ), - 0 AS col1
----
68
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7401
SELECT + 69 + - + 52 * SUM( - 80 ) - - 71 + + 42 + - 34 * CAST( + 85 AS SIGNED ) AS col1
----
1452

skipif mysql # not compatible
query I rowsort label-7401
SELECT + 69 + - + 52 * SUM ( - 80 ) - - 71 + + 42 + - 34 * CAST ( + 85 AS INTEGER ) AS col1
----
1452

query I rowsort
SELECT ALL COALESCE ( + 13, + - 47 ) + - 94 + 77 * + 40
----
2999

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7403
SELECT + CAST( + 16 AS SIGNED ) + + - NULLIF ( - COUNT( * ), - 1 ) + + - 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7403
SELECT + CAST ( + 16 AS INTEGER ) + + - NULLIF ( - COUNT ( * ), - 1 ) + + - 26 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT ALL MAX( ALL 28 ) + + + 92 * - + 75 + + 65
----
-6807

skipif mysql # not compatible
query I rowsort label-7404
SELECT ALL MAX ( ALL 28 ) + + + 92 * - + 75 + + 65
----
-6807

query I rowsort
SELECT - + 24 * - ( + 7 )
----
168

onlyif mysql # DIV for integer division: 
query I rowsort label-7406
SELECT ALL - 13 DIV 13
----
-1

skipif mysql # not compatible
query I rowsort label-7406
SELECT ALL - 13 / 13
----
-1

query I rowsort
SELECT DISTINCT - 2 - - 37 AS col0
----
35

query I rowsort
SELECT - 78 * + 53 + + + 33 AS col0
----
-4101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7409
SELECT 36 * + - NULLIF ( + 3, + ( - - COUNT( * ) ) * + 0 + 89 DIV 64 - - CASE MIN( ALL - 0 ) WHEN ( + 86 ) + 72 * 65 THEN 67 + + 5 END * 48 ) + 89 DIV 23
----
-105

skipif mysql # not compatible
query I rowsort label-7409
SELECT 36 * + - NULLIF ( + 3, + ( - - COUNT ( * ) ) * + 0 + 89 / 64 - - CASE MIN ( ALL - 0 ) WHEN ( + 86 ) + 72 * 65 THEN 67 + + 5 END * 48 ) + 89 / 23
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-7410
SELECT - + 23 * - COUNT( * ) - + COUNT( * ) col0
----
22

skipif mysql # not compatible
query I rowsort label-7410
SELECT - + 23 * - COUNT ( * ) - + COUNT ( * ) col0
----
22

query I rowsort
SELECT + + 82 col2
----
82

query I rowsort
SELECT + - 26 col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7413
SELECT + + COALESCE ( + - 83, - - MAX( - 34 ) )
----
-83

skipif mysql # not compatible
query I rowsort label-7413
SELECT + + COALESCE ( + - 83, - - MAX ( - 34 ) )
----
-83

query I rowsort
SELECT DISTINCT - 61 - + 90 + - - 1 AS col2
----
-150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7415
SELECT 59 * 44 * + 56 + - - 0 + NULLIF ( 53, - + ( + ( 45 ) ) + ( 61 ) ) * CAST( 40 AS SIGNED ) AS col2
----
147496

skipif mysql # not compatible
query I rowsort label-7415
SELECT 59 * 44 * + 56 + - - 0 + NULLIF ( 53, - + ( + ( 45 ) ) + ( 61 ) ) * CAST ( 40 AS INTEGER ) AS col2
----
147496

onlyif mysql # aggregate syntax: 
query I rowsort label-7416
SELECT ALL - + CASE - COUNT( * ) WHEN + CASE + COUNT( * ) WHEN + + 43 THEN + 6 WHEN - - CASE ( + 26 ) WHEN 32 THEN NULLIF ( 0, + 62 - COUNT( * ) ) WHEN - 14 THEN + 62 END + - 22 THEN NULL ELSE COUNT( * ) END * - 18 THEN NULL WHEN + 11 / COALESCE ( + 8, 46 / + 47, 95 * + 82 ) THEN 7 * + NULLIF ( 92, - 71 + - ( 58 ) ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7416
SELECT ALL - + CASE - COUNT ( * ) WHEN + CASE + COUNT ( * ) WHEN + + 43 THEN + 6 WHEN - - CASE ( + 26 ) WHEN 32 THEN NULLIF ( 0, + 62 - COUNT ( * ) ) WHEN - 14 THEN + 62 END + - 22 THEN NULL ELSE COUNT ( * ) END * - 18 THEN NULL WHEN + 11 / COALESCE ( + 8, 46 / + 47, 95 * + 82 ) THEN 7 * + NULLIF ( 92, - 71 + - ( 58 ) ) END col1
----
NULL

query I rowsort
SELECT DISTINCT + ( - 13 ) * 86 AS col0
----
-1118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7418
SELECT + 35 DIV + NULLIF ( CAST( - - MAX( ALL 22 ) AS SIGNED ), + + ( + 67 ) ) - 44
----
-43

skipif mysql # not compatible
query I rowsort label-7418
SELECT + 35 / + NULLIF ( CAST ( - - MAX ( ALL 22 ) AS INTEGER ), + + ( + 67 ) ) - 44
----
-43

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7419
SELECT ALL + COUNT( * ) / + - COUNT( * ) - + 89 + - 77 * 48 * 54 + 36 - + CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7419
SELECT ALL + COUNT ( * ) / + - COUNT ( * ) - + 89 + - 77 * 48 * 54 + 36 - + CAST ( NULL AS REAL ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT + - 22 * + COUNT( * ) - - + 35 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-7420
SELECT + - 22 * + COUNT ( * ) - - + 35 AS col2
----
13

query I rowsort
SELECT 43 + - 85 AS col1
----
-42

query I rowsort
SELECT ALL + 9 + - 69 AS col0
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7423
SELECT 52 + - COUNT( * ) + - + 37 DIV 33 * - COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-7423
SELECT 52 + - COUNT ( * ) + - + 37 / 33 * - COUNT ( * )
----
52

query I rowsort
SELECT 91 * - 71 col2
----
-6461

query II rowsort
SELECT ALL - 33 AS col2, 38
----
-33
38

onlyif mysql # DIV for integer division: 
query I rowsort label-7426
SELECT 81 DIV - 52
----
-1

skipif mysql # not compatible
query I rowsort label-7426
SELECT 81 / - 52
----
-1

query I rowsort
SELECT ALL + 46 + - 84 * 94 * - 65 AS col1
----
513286

query I rowsort
SELECT DISTINCT - 92 + - + 89
----
-181

onlyif mysql # aggregate syntax: 
query I rowsort label-7429
SELECT DISTINCT COUNT( * ) * CASE - 7 WHEN - - COUNT( * ) THEN - + 51 WHEN + 24 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7429
SELECT DISTINCT COUNT ( * ) * CASE - 7 WHEN - - COUNT ( * ) THEN - + 51 WHEN + 24 THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7430
SELECT ALL 97 + + COUNT( ALL - CAST( NULL AS SIGNED ) ) * - - MIN( - + 89 ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-7430
SELECT ALL 97 + + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) * - - MIN ( - + 89 ) AS col1
----
97

query I rowsort
SELECT 97 + + 1 AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7432
SELECT ALL - 74 + SUM( + 56 )
----
-18

skipif mysql # not compatible
query I rowsort label-7432
SELECT ALL - 74 + SUM ( + 56 )
----
-18

query II rowsort
SELECT - 9 AS col0, 41 * + 69 + - 1
----
-9
2828

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7434
SELECT 77 * + + ( + 34 ) AS col0, 22 - - CAST( NULL AS DECIMAL ) AS col1
----
2618
NULL

skipif mysql # not compatible
query II rowsort label-7434
SELECT 77 * + + ( + 34 ) AS col0, 22 - - CAST ( NULL AS REAL ) AS col1
----
2618
NULL

query I rowsort
SELECT ALL 61 + 2 AS col2
----
63

query II rowsort
SELECT 50, 64 * + - 98 AS col2
----
50
-6272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7437
SELECT CASE 87 WHEN + 37 + + 7 + CAST( NULL AS SIGNED ) - - 16 * + 30 + + 8 THEN 71 + - 76 WHEN - CAST( 29 AS SIGNED ) DIV 2 THEN + ( NULLIF ( 96, 42 * + 11 ) ) + 47 DIV COUNT( * ) ELSE COUNT( * ) END DIV - 66
----
0

skipif mysql # not compatible
query I rowsort label-7437
SELECT CASE 87 WHEN + 37 + + 7 + CAST ( NULL AS INTEGER ) - - 16 * + 30 + + 8 THEN 71 + - 76 WHEN - CAST ( 29 AS INTEGER ) / 2 THEN + ( NULLIF ( 96, 42 * + 11 ) ) + 47 / COUNT ( * ) ELSE COUNT ( * ) END / - 66
----
0

query I rowsort
SELECT - ( + - 37 ) AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7439
SELECT ALL ( + + COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7439
SELECT ALL ( + + COUNT ( * ) ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7440
SELECT 72 * + CAST( NULL AS SIGNED ) * + - 80 * 21 * - - 38 * CASE - - ( - 24 ) WHEN 33 * + CASE 39 WHEN + 52 * + COUNT( * ) THEN - 88 END THEN + 40 - - 38 / CAST( - ( 29 ) AS DECIMAL ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7440
SELECT 72 * + CAST ( NULL AS INTEGER ) * + - 80 * 21 * - - 38 * CASE - - ( - 24 ) WHEN 33 * + CASE 39 WHEN + 52 * + COUNT ( * ) THEN - 88 END THEN + 40 - - 38 / CAST ( - ( 29 ) AS REAL ) ELSE NULL END
----
NULL

query II rowsort
SELECT DISTINCT + 31 AS col2, 35
----
31
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7442
SELECT 51 - - NULLIF ( - - MAX( - 10 ), - 30 )
----
41

skipif mysql # not compatible
query I rowsort label-7442
SELECT 51 - - NULLIF ( - - MAX ( - 10 ), - 30 )
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7443
SELECT 95 * - CAST( - 2 AS SIGNED )
----
190

skipif mysql # not compatible
query I rowsort label-7443
SELECT 95 * - CAST ( - 2 AS INTEGER )
----
190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7444
SELECT ALL - ( - ( - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7444
SELECT ALL - ( - ( - CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT + ( - - 54 ) AS col0
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7446
SELECT DISTINCT - COALESCE ( - + 13, - 11 * + 4 * - COUNT( * ) * - 50 DIV + 85 )
----
13

skipif mysql # not compatible
query I rowsort label-7446
SELECT DISTINCT - COALESCE ( - + 13, - 11 * + 4 * - COUNT ( * ) * - 50 / + 85 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT DISTINCT - - CASE + 17 WHEN + - 22 THEN - NULLIF ( + 53, 78 ) * COUNT( - 9 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7447
SELECT DISTINCT - - CASE + 17 WHEN + - 22 THEN - NULLIF ( + 53, 78 ) * COUNT ( - 9 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7448
SELECT 51 + - COALESCE ( - COUNT( * ), + - 88 * 54, - - 82 ) + + + 29 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-7448
SELECT 51 + - COALESCE ( - COUNT ( * ), + - 88 * 54, - - 82 ) + + + 29 AS col0
----
81

query I rowsort
SELECT + - 32 * + 73 - - + 52 AS col2
----
-2284

query I rowsort
SELECT 53 * + + 12
----
636

query I rowsort
SELECT ALL - 77 + - 32
----
-109

query I rowsort
SELECT 62 * + 72 AS col2
----
4464

onlyif mysql # DIV for integer division: 
query II rowsort label-7453
SELECT ALL + 5 + - 90 AS col2, - 69 DIV - + 40
----
-85
1

skipif mysql # not compatible
query II rowsort label-7453
SELECT ALL + 5 + - 90 AS col2, - 69 / - + 40
----
-85
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7454
SELECT DISTINCT 81 DIV 66 * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-7454
SELECT DISTINCT 81 / 66 * + COUNT ( * )
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7455
SELECT ALL 39 + - + 33 / + - CASE - 78 WHEN + COALESCE ( 88, + ( COUNT( * ) ) + + 18 * + 59, ( CASE 41 WHEN + 19 - 72 THEN - ( + 28 ) * - 41 ELSE NULL END ) ) * 88 THEN - 19 * NULLIF ( 33 / + 14, - COUNT( * ) ) + + NULLIF ( - MAX( 21 ), - CAST( NULL AS DECIMAL ) * + 94 ) WHEN 71 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7455
SELECT ALL 39 + - + 33 / + - CASE - 78 WHEN + COALESCE ( 88, + ( COUNT ( * ) ) + + 18 * + 59, ( CASE 41 WHEN + 19 - 72 THEN - ( + 28 ) * - 41 ELSE NULL END ) ) * 88 THEN - 19 * NULLIF ( 33 / + 14, - COUNT ( * ) ) + + NULLIF ( - MAX ( 21 ), - CAST ( NULL AS REAL ) * + 94 ) WHEN 71 THEN NULL END
----
NULL

query I rowsort
SELECT ALL + 78 + + 39 AS col1
----
117

query I rowsort
SELECT 87 * 0 * - 86
----
0

query I rowsort
SELECT ALL + 5 * 68
----
340

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7459
SELECT ALL + COUNT( * ) + - 70 + - + COUNT( * ) * + + 58 * + 77 * + - COUNT( * ) + + - MIN( ALL + 3 ) DIV + - 25 AS col1
----
4397

skipif mysql # not compatible
query I rowsort label-7459
SELECT ALL + COUNT ( * ) + - 70 + - + COUNT ( * ) * + + 58 * + 77 * + - COUNT ( * ) + + - MIN ( ALL + 3 ) / + - 25 AS col1
----
4397

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT + CASE CASE + COUNT( * ) WHEN - + 26 + - 7 * 57 + - 87 THEN SUM( ALL - + 20 ) * - 13 END WHEN CASE 12 WHEN + 78 THEN NULL WHEN 75 / 41 THEN - 11 * 8 ELSE + 96 END THEN + MAX( DISTINCT - 12 ) END * + 87 - - COALESCE ( + 67, 57, 17 + 13 * + 14 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7460
SELECT + CASE CASE + COUNT ( * ) WHEN - + 26 + - 7 * 57 + - 87 THEN SUM ( ALL - + 20 ) * - 13 END WHEN CASE 12 WHEN + 78 THEN NULL WHEN 75 / 41 THEN - 11 * 8 ELSE + 96 END THEN + MAX ( DISTINCT - 12 ) END * + 87 - - COALESCE ( + 67, 57, 17 + 13 * + 14 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7461
SELECT COUNT( * ) * - - 67 * 28 AS col1
----
1876

skipif mysql # not compatible
query I rowsort label-7461
SELECT COUNT ( * ) * - - 67 * 28 AS col1
----
1876

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7462
SELECT DISTINCT COALESCE ( + 28, - + 76 * - CAST( NULL AS SIGNED ) DIV 55 ) * 27 + 7 AS col2, 61 AS col1
----
763
61

skipif mysql # not compatible
query II rowsort label-7462
SELECT DISTINCT COALESCE ( + 28, - + 76 * - CAST ( NULL AS INTEGER ) / 55 ) * 27 + 7 AS col2, 61 AS col1
----
763
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7463
SELECT COUNT( * ) * + 93 col2
----
93

skipif mysql # not compatible
query I rowsort label-7463
SELECT COUNT ( * ) * + 93 col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT DISTINCT + SUM( ALL 99 ) - COUNT( * ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-7464
SELECT DISTINCT + SUM ( ALL 99 ) - COUNT ( * ) AS col0
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-7465
SELECT + 87 - 84 + 70 DIV 21 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-7465
SELECT + 87 - 84 + 70 / 21 AS col1
----
6

query I rowsort
SELECT + + ( + 67 ) * - 14
----
-938

query I rowsort
SELECT DISTINCT + - ( + 29 ) * - 41 AS col2
----
1189

onlyif mysql # aggregate syntax: 
query I rowsort label-7468
SELECT ALL SUM( DISTINCT - + 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-7468
SELECT ALL SUM ( DISTINCT - + 88 )
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7469
SELECT - 63 * + CAST( - 45 AS SIGNED ) AS col2
----
2835

skipif mysql # not compatible
query I rowsort label-7469
SELECT - 63 * + CAST ( - 45 AS INTEGER ) AS col2
----
2835

onlyif mysql # aggregate syntax: 
query I rowsort label-7470
SELECT DISTINCT + COUNT( * ) * + 41
----
41

skipif mysql # not compatible
query I rowsort label-7470
SELECT DISTINCT + COUNT ( * ) * + 41
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-7471
SELECT DISTINCT + 3 DIV + 57 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7471
SELECT DISTINCT + 3 / + 57 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7472
SELECT ALL 29 DIV + + COALESCE ( COALESCE ( + 90, - + 5 * + + 84 + - 5 ), 9, + - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-7472
SELECT ALL 29 / + + COALESCE ( COALESCE ( + 90, - + 5 * + + 84 + - 5 ), 9, + - COUNT ( * ) )
----
0

query I rowsort
SELECT + 17 + - 62
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-7474
SELECT + - 15 DIV - - 17 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7474
SELECT + - 15 / - - 17 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7475
SELECT ALL 85 * + 82 * + COUNT( * ) + + + 1 + - COUNT( - 38 ) + - - CAST( - 89 AS SIGNED ) * - COALESCE ( 89, + 58 + COALESCE ( + 86, CASE + 11 WHEN - COUNT( * ) / + 57 THEN 97 END, 34 + + ( 75 ) ) ) * + ( MAX( + 11 ) * + 85 - + 83 ) AS col1
----
6755662

skipif mysql # not compatible
query I rowsort label-7475
SELECT ALL 85 * + 82 * + COUNT ( * ) + + + 1 + - COUNT ( - 38 ) + - - CAST ( - 89 AS INTEGER ) * - COALESCE ( 89, + 58 + COALESCE ( + 86, CASE + 11 WHEN - COUNT ( * ) / + 57 THEN 97 END, 34 + + ( 75 ) ) ) * + ( MAX ( + 11 ) * + 85 - + 83 ) AS col1
----
6755662

onlyif mysql # aggregate syntax: 
query I rowsort label-7476
SELECT + - CASE + SUM( 4 ) WHEN - 60 THEN + - 51 WHEN - ( + + 88 ) * 25 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7476
SELECT + - CASE + SUM ( 4 ) WHEN - 60 THEN + - 51 WHEN - ( + + 88 ) * 25 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7477
SELECT + + 40 * - COUNT( * ), 34 col0
----
-40
34

skipif mysql # not compatible
query II rowsort label-7477
SELECT + + 40 * - COUNT ( * ), 34 col0
----
-40
34

query I rowsort
SELECT DISTINCT 18 * + 40 + 32 AS col0
----
752

onlyif mysql # aggregate syntax: 
query I rowsort label-7479
SELECT DISTINCT - SUM( ALL - 50 ) * + - ( + - 98 ) + + - 45 - + 69 AS col1
----
4786

skipif mysql # not compatible
query I rowsort label-7479
SELECT DISTINCT - SUM ( ALL - 50 ) * + - ( + - 98 ) + + - 45 - + 69 AS col1
----
4786

onlyif mysql # DIV for integer division: 
query I rowsort label-7480
SELECT ALL + 68 * + 93 + + 71 DIV + 62 AS col1
----
6325

skipif mysql # not compatible
query I rowsort label-7480
SELECT ALL + 68 * + 93 + + 71 / + 62 AS col1
----
6325

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT ALL 24 * MIN( DISTINCT - + 1 ) + + - 62 * + 5 * - 0 * COUNT( * ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-7481
SELECT ALL 24 * MIN ( DISTINCT - + 1 ) + + - 62 * + 5 * - 0 * COUNT ( * ) AS col0
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7482
SELECT CASE - 93 WHEN 61 THEN + + COUNT( * ) ELSE 96 * + NULLIF ( - - 14, - COALESCE ( 47, - CASE 89 WHEN - CAST( NULL AS SIGNED ) THEN + 28 * + 75 END * 58 ) / 32 ) + - ( + 26 ) + 63 END AS col1
----
1381

skipif mysql # not compatible
query I rowsort label-7482
SELECT CASE - 93 WHEN 61 THEN + + COUNT ( * ) ELSE 96 * + NULLIF ( - - 14, - COALESCE ( 47, - CASE 89 WHEN - CAST ( NULL AS INTEGER ) THEN + 28 * + 75 END * 58 ) / 32 ) + - ( + 26 ) + 63 END AS col1
----
1381

query II rowsort
SELECT ALL - 80 * - 2 + + 64, 42 - - 59 AS col0
----
224
101

onlyif mysql # aggregate syntax: 
query I rowsort label-7484
SELECT + COUNT( * ) - + + 63 col2
----
-62

skipif mysql # not compatible
query I rowsort label-7484
SELECT + COUNT ( * ) - + + 63 col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-7485
SELECT + 61 * + ( + + SUM( ALL + - 72 ) ) + + 82 + - 91 AS col0
----
-4401

skipif mysql # not compatible
query I rowsort label-7485
SELECT + 61 * + ( + + SUM ( ALL + - 72 ) ) + + 82 + - 91 AS col0
----
-4401

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7486
SELECT + 49, 47 * NULLIF ( + - 9, - + CAST( - - 76 AS DECIMAL ) ) + COUNT( + CAST( 17 AS SIGNED ) ) AS col0
----
49
-422

skipif mysql # not compatible
query II rowsort label-7486
SELECT + 49, 47 * NULLIF ( + - 9, - + CAST ( - - 76 AS REAL ) ) + COUNT ( + CAST ( 17 AS INTEGER ) ) AS col0
----
49
-422

onlyif mysql # aggregate syntax: 
query I rowsort label-7487
SELECT NULLIF ( + MIN( - 57 ), + COUNT( * ) * + ( + 75 ) * COUNT( * ) )
----
-57

skipif mysql # not compatible
query I rowsort label-7487
SELECT NULLIF ( + MIN ( - 57 ), + COUNT ( * ) * + ( + 75 ) * COUNT ( * ) )
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7488
SELECT - 74 - - COALESCE ( CAST( - COUNT( DISTINCT 77 ) AS SIGNED ), 29, + 32 ) + - - 47 * + CAST( - 85 AS SIGNED )
----
-4070

skipif mysql # not compatible
query I rowsort label-7488
SELECT - 74 - - COALESCE ( CAST ( - COUNT ( DISTINCT 77 ) AS INTEGER ), 29, + 32 ) + - - 47 * + CAST ( - 85 AS INTEGER )
----
-4070

onlyif mysql # aggregate syntax: 
query I rowsort label-7489
SELECT ALL - CASE 61 WHEN - 29 THEN - 71 ELSE + 13 END * 20 * + COUNT( * ) AS col0
----
-260

skipif mysql # not compatible
query I rowsort label-7489
SELECT ALL - CASE 61 WHEN - 29 THEN - 71 ELSE + 13 END * 20 * + COUNT ( * ) AS col0
----
-260

onlyif mysql # aggregate syntax: 
query II rowsort label-7490
SELECT DISTINCT + 29 AS col0, + COUNT( * )
----
29
1

skipif mysql # not compatible
query II rowsort label-7490
SELECT DISTINCT + 29 AS col0, + COUNT ( * )
----
29
1

query I rowsort
SELECT ALL 17 * - 23 - + COALESCE ( 45, - + 71 ) * 20 * - + 1
----
509

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT ALL - 56 * + + COUNT( ALL - 86 )
----
-56

skipif mysql # not compatible
query I rowsort label-7492
SELECT ALL - 56 * + + COUNT ( ALL - 86 )
----
-56

query I rowsort
SELECT - 20 + + 75 AS col1
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7494
SELECT ALL 26 DIV - COUNT( * )
----
-26

skipif mysql # not compatible
query I rowsort label-7494
SELECT ALL 26 / - COUNT ( * )
----
-26

query I rowsort
SELECT DISTINCT 92 * - 26 * + 29 - + - 89
----
-69279

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7496
SELECT - 14 + 15 + 41 * + + 26 * - 43 AS col0, + 95 + + CAST( 71 AS SIGNED )
----
-45837
166

skipif mysql # not compatible
query II rowsort label-7496
SELECT - 14 + 15 + 41 * + + 26 * - 43 AS col0, + 95 + + CAST ( 71 AS INTEGER )
----
-45837
166

query I rowsort
SELECT ALL + 11 * + 89
----
979

onlyif mysql # aggregate syntax: 
query I rowsort label-7498
SELECT MAX( DISTINCT 84 )
----
84

skipif mysql # not compatible
query I rowsort label-7498
SELECT MAX ( DISTINCT 84 )
----
84

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7499
SELECT - 90 + - CAST( NULL AS DECIMAL ) * - + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-7499
SELECT - 90 + - CAST ( NULL AS REAL ) * - + 69
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7500
SELECT + - 26 DIV + 33 + - COALESCE ( 70, - 25 + 16 + - 54 * + - 19 * + 37, 91 ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-7500
SELECT + - 26 / + 33 + - COALESCE ( 70, - 25 + 16 + - 54 * + - 19 * + 37, 91 ) AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7501
SELECT - - COUNT( * ) * - COUNT( * ) * 5 - 41
----
-46

skipif mysql # not compatible
query I rowsort label-7501
SELECT - - COUNT ( * ) * - COUNT ( * ) * 5 - 41
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7502
SELECT - + COUNT( * ) * - COALESCE ( + 66, - + 75 + - 0 + - COALESCE ( + 26, + 14 DIV + CASE + 87 WHEN COUNT( * ) THEN - COUNT( + NULLIF ( 11, 82 * - 39 ) ) WHEN 69 + + COUNT( * ) THEN 9 ELSE NULL END * + 65 ) ) + + COUNT( * ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-7502
SELECT - + COUNT ( * ) * - COALESCE ( + 66, - + 75 + - 0 + - COALESCE ( + 26, + 14 / + CASE + 87 WHEN COUNT ( * ) THEN - COUNT ( + NULLIF ( 11, 82 * - 39 ) ) WHEN 69 + + COUNT ( * ) THEN 9 ELSE NULL END * + 65 ) ) + + COUNT ( * ) AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7503
SELECT SUM( + 16 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-7503
SELECT SUM ( + 16 ) AS col1
----
16

query I rowsort
SELECT - - 87 + 41
----
128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7505
SELECT DISTINCT CAST( + 38 AS SIGNED )
----
38

skipif mysql # not compatible
query I rowsort label-7505
SELECT DISTINCT CAST ( + 38 AS INTEGER )
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7506
SELECT - 60 * - CAST( NULL AS SIGNED ) * + 90 * + 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7506
SELECT - 60 * - CAST ( NULL AS INTEGER ) * + 90 * + 96 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + NULLIF ( - + 47, 71 - - - 68 )
----
-47

query I rowsort
SELECT ALL 18 + + 29 AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7509
SELECT - - 24 * - - COUNT( * ) * - - 56 AS col0
----
1344

skipif mysql # not compatible
query I rowsort label-7509
SELECT - - 24 * - - COUNT ( * ) * - - 56 AS col0
----
1344

query I rowsort
SELECT - + ( ( - + 75 ) )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7511
SELECT ALL + ( 8 ) + + 99 + - 39 + + NULLIF ( 26, + MAX( DISTINCT - 88 ) + + - 35 ) + + 35 * - 33
----
-1061

skipif mysql # not compatible
query I rowsort label-7511
SELECT ALL + ( 8 ) + + 99 + - 39 + + NULLIF ( 26, + MAX ( DISTINCT - 88 ) + + - 35 ) + + 35 * - 33
----
-1061

query II rowsort
SELECT ALL + 70, 82 - 50 AS col1
----
70
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7513
SELECT + 13, - MIN( DISTINCT - + CAST( NULL AS SIGNED ) ) col0
----
13
NULL

skipif mysql # not compatible
query II rowsort label-7513
SELECT + 13, - MIN ( DISTINCT - + CAST ( NULL AS INTEGER ) ) col0
----
13
NULL

query I rowsort
SELECT ALL + 78 + - + CASE WHEN NOT NULL > NULL AND NOT + 55 >= NULL THEN - COALESCE ( + 50, - - 4, + + 99 + + - 76 + + 8 ) * - 80 ELSE NULL END * 35 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7515
SELECT ALL - COUNT( * ) + 0
----
-1

skipif mysql # not compatible
query I rowsort label-7515
SELECT ALL - COUNT ( * ) + 0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7516
SELECT ALL COUNT( + - NULLIF ( + + 3, - 69 ) ) DIV + CASE - 36 WHEN SUM( ALL + 96 ) * - + 41 + - 35 THEN - + 71 WHEN 15 * 22 THEN + 72 + 21 WHEN + 61 DIV 95 THEN + 41 ELSE 54 END * 6 + 9 DIV 54
----
0

skipif mysql # not compatible
query I rowsort label-7516
SELECT ALL COUNT ( + - NULLIF ( + + 3, - 69 ) ) / + CASE - 36 WHEN SUM ( ALL + 96 ) * - + 41 + - 35 THEN - + 71 WHEN 15 * 22 THEN + 72 + 21 WHEN + 61 / 95 THEN + 41 ELSE 54 END * 6 + 9 / 54
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7517
SELECT + 83 / CASE + - 31 WHEN + 74 THEN NULL WHEN - COUNT( + CAST( + 74 AS SIGNED ) ) THEN 65 / + CAST( NULL AS SIGNED ) + - 23 / - 2 + 94 END + - 30 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7517
SELECT + 83 / CASE + - 31 WHEN + 74 THEN NULL WHEN - COUNT ( + CAST ( + 74 AS INTEGER ) ) THEN 65 / + CAST ( NULL AS INTEGER ) + - 23 / - 2 + 94 END + - 30 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7518
SELECT + COUNT( * ) col2, NULLIF ( - 48, + - 12 ) - - - 76 AS col1
----
1
-124

skipif mysql # not compatible
query II rowsort label-7518
SELECT + COUNT ( * ) col2, NULLIF ( - 48, + - 12 ) - - - 76 AS col1
----
1
-124

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7519
SELECT + CAST( NULL AS SIGNED ) AS col2, - 50 + + 79 + 59 DIV - 78
----
NULL
29

skipif mysql # not compatible
query II rowsort label-7519
SELECT + CAST ( NULL AS INTEGER ) AS col2, - 50 + + 79 + 59 / - 78
----
NULL
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7520
SELECT ALL 38 * - COUNT( * ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-7520
SELECT ALL 38 * - COUNT ( * ) AS col2
----
-38

query II rowsort
SELECT ALL + 32 AS col2, 98 AS col1
----
32
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7522
SELECT + CAST( - ( - + 74 ) AS SIGNED )
----
74

skipif mysql # not compatible
query I rowsort label-7522
SELECT + CAST ( - ( - + 74 ) AS INTEGER )
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7523
SELECT DISTINCT CAST( NULL AS SIGNED ) / + + 4 / - SUM( - 9 ) - 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7523
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + + 4 / - SUM ( - 9 ) - 62 AS col1
----
NULL

query II rowsort
SELECT DISTINCT - 48, + COALESCE ( + - 77, - 77 ) * 26 * + 98 col0
----
-48
-196196

onlyif mysql # aggregate syntax: 
query I rowsort label-7525
SELECT DISTINCT - SUM( ALL 72 ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-7525
SELECT DISTINCT - SUM ( ALL 72 ) AS col2
----
-72

query I rowsort
SELECT 6 * - - 57 AS col0
----
342

onlyif mysql # aggregate syntax: 
query I rowsort label-7527
SELECT 41 * + - COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-7527
SELECT 41 * + - COUNT ( * )
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7528
SELECT ALL - 76 AS col0, + CAST( NULL AS SIGNED ) * 47 * CASE - 86 WHEN - + 64 / 48 THEN - - 28 ELSE NULL END AS col0
----
-76
NULL

skipif mysql # not compatible
query II rowsort label-7528
SELECT ALL - 76 AS col0, + CAST ( NULL AS INTEGER ) * 47 * CASE - 86 WHEN - + 64 / 48 THEN - - 28 ELSE NULL END AS col0
----
-76
NULL

query I rowsort
SELECT 16 * 60 - + 78 AS col1
----
882

onlyif mysql # DIV for integer division: 
query I rowsort label-7530
SELECT - 78 DIV + 19 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-7530
SELECT - 78 / + 19 AS col1
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7531
SELECT + 56 AS col0, - ( 87 ) * 91 + + CAST( - + 51 AS SIGNED ) + + COUNT( * )
----
56
-7967

skipif mysql # not compatible
query II rowsort label-7531
SELECT + 56 AS col0, - ( 87 ) * 91 + + CAST ( - + 51 AS INTEGER ) + + COUNT ( * )
----
56
-7967

onlyif mysql # aggregate syntax: 
query II rowsort label-7532
SELECT ALL + 44 col1, 21 + - 67 * 39 * - COUNT( * ) + 55
----
44
2689

skipif mysql # not compatible
query II rowsort label-7532
SELECT ALL + 44 col1, 21 + - 67 * 39 * - COUNT ( * ) + 55
----
44
2689

onlyif mysql # aggregate syntax: 
query I rowsort label-7533
SELECT ALL - COUNT( * ) * 48 AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-7533
SELECT ALL - COUNT ( * ) * 48 AS col0
----
-48

query I rowsort
SELECT - 36 + - - 38 + - 21
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7535
SELECT ALL + COUNT( * ) * + 26 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-7535
SELECT ALL + COUNT ( * ) * + 26 AS col2
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7536
SELECT - 12 AS col0, - COUNT( * ) * - + 18 + - COALESCE ( + 61, 83 ) * - + CAST( NULL AS SIGNED ) * - 35
----
-12
NULL

skipif mysql # not compatible
query II rowsort label-7536
SELECT - 12 AS col0, - COUNT ( * ) * - + 18 + - COALESCE ( + 61, 83 ) * - + CAST ( NULL AS INTEGER ) * - 35
----
-12
NULL

query I rowsort
SELECT ALL ( 84 ) AS col2
----
84

query I rowsort
SELECT + 72 - + + 70
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7539
SELECT DISTINCT + + 56 + COUNT( - + CAST( + 85 AS SIGNED ) )
----
57

skipif mysql # not compatible
query I rowsort label-7539
SELECT DISTINCT + + 56 + COUNT ( - + CAST ( + 85 AS INTEGER ) )
----
57

query I rowsort
SELECT 29 + 50 AS col2
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7541
SELECT + 85 - + 2 * NULLIF ( - NULLIF ( - + 39, 19 ), + - 2 + 52 * + ( - CAST( NULL AS SIGNED ) ) )
----
7

skipif mysql # not compatible
query I rowsort label-7541
SELECT + 85 - + 2 * NULLIF ( - NULLIF ( - + 39, 19 ), + - 2 + 52 * + ( - CAST ( NULL AS INTEGER ) ) )
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-7542
SELECT + 46, 47 + + - 97 - COUNT( * ) + - - 34 AS col2
----
46
-17

skipif mysql # not compatible
query II rowsort label-7542
SELECT + 46, 47 + + - 97 - COUNT ( * ) + - - 34 AS col2
----
46
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-7543
SELECT ( + + 89 ) DIV - 27 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-7543
SELECT ( + + 89 ) / - 27 AS col2
----
-3

query I rowsort
SELECT ALL + + 43 + - 97 AS col1
----
-54

query I rowsort
SELECT - 38 * 56 AS col2
----
-2128

query I rowsort
SELECT - 52 + - 68
----
-120

query II rowsort
SELECT - 47 AS col1, - 10 * ( - 7 )
----
-47
70

onlyif mysql # aggregate syntax: 
query II rowsort label-7548
SELECT ALL - 39 AS col0, 93 + - - COUNT( * )
----
-39
94

skipif mysql # not compatible
query II rowsort label-7548
SELECT ALL - 39 AS col0, 93 + - - COUNT ( * )
----
-39
94

onlyif mysql # aggregate syntax: 
query II rowsort label-7549
SELECT ALL + 7 + - 83 + - ( + - 89 ) AS col2, + COUNT( * ) AS col0
----
13
1

skipif mysql # not compatible
query II rowsort label-7549
SELECT ALL + 7 + - 83 + - ( + - 89 ) AS col2, + COUNT ( * ) AS col0
----
13
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7550
SELECT ALL + 27 + + 39 + + - COUNT( * ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-7550
SELECT ALL + 27 + + 39 + + - COUNT ( * ) AS col1
----
65

query I rowsort
SELECT ALL - - 55 + + - 27
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7552
SELECT - SUM( DISTINCT + 41 )
----
-41

skipif mysql # not compatible
query I rowsort label-7552
SELECT - SUM ( DISTINCT + 41 )
----
-41

query I rowsort
SELECT 88 * - 10
----
-880

query I rowsort
SELECT DISTINCT - 1 * - + 19
----
19

query I rowsort
SELECT ALL + 46 - + ( + 59 )
----
-13

onlyif mysql # DIV for integer division: 
query III rowsort label-7556
SELECT 71 * + 23 AS col2, CASE - 94 WHEN 14 THEN 92 WHEN - - 89 THEN - 55 ELSE NULL END, - 24 DIV - 42 AS col0
----
1633
NULL
0

skipif mysql # not compatible
query III rowsort label-7556
SELECT 71 * + 23 AS col2, CASE - 94 WHEN 14 THEN 92 WHEN - - 89 THEN - 55 ELSE NULL END, - 24 / - 42 AS col0
----
1633
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7557
SELECT 77 + + - 51 * - COUNT( * ) - - COUNT( * ) - + 55
----
74

skipif mysql # not compatible
query I rowsort label-7557
SELECT 77 + + - 51 * - COUNT ( * ) - - COUNT ( * ) - + 55
----
74

query I rowsort
SELECT DISTINCT - 74 * - 68
----
5032

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7559
SELECT COALESCE ( 51, 9 * - COALESCE ( COUNT( * ), + 17 * 75 + + COUNT( 49 ) * - ( 90 ) * + + 97 + SUM( ALL - 59 + - ( + 48 - 93 * 13 ) ) ) ) DIV - 91 + 63 AS col0
----
63

skipif mysql # not compatible
query I rowsort label-7559
SELECT COALESCE ( 51, 9 * - COALESCE ( COUNT ( * ), + 17 * 75 + + COUNT ( 49 ) * - ( 90 ) * + + 97 + SUM ( ALL - 59 + - ( + 48 - 93 * 13 ) ) ) ) / - 91 + 63 AS col0
----
63

query I rowsort
SELECT ALL - 84 * - + 29 AS col2
----
2436

query II rowsort
SELECT DISTINCT + 75 * 56 AS col2, - 61 * - - 44 * + 54
----
4200
-144936

onlyif mysql # aggregate syntax: 
query I rowsort label-7562
SELECT 12 - MIN( DISTINCT + - ( 99 ) )
----
111

skipif mysql # not compatible
query I rowsort label-7562
SELECT 12 - MIN ( DISTINCT + - ( 99 ) )
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT COUNT( * ) * + + 93
----
93

skipif mysql # not compatible
query I rowsort label-7563
SELECT COUNT ( * ) * + + 93
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7564
SELECT COUNT( * ) - + ( + - 74 ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-7564
SELECT COUNT ( * ) - + ( + - 74 ) AS col2
----
75

query II rowsort
SELECT 25 * - 96 AS col1, + 29 AS col1
----
-2400
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7566
SELECT COUNT( * ) + + COUNT( * ) DIV - 31
----
1

skipif mysql # not compatible
query I rowsort label-7566
SELECT COUNT ( * ) + + COUNT ( * ) / - 31
----
1

query III rowsort
SELECT 15 * + 76, 94 AS col1, + 56 - + + 87 AS col1
----
1140
94
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7568
SELECT 21 * - 55 + + SUM( ALL - - 34 ) DIV 32 + + 45 AS col0
----
-1109

skipif mysql # not compatible
query I rowsort label-7568
SELECT 21 * - 55 + + SUM ( ALL - - 34 ) / 32 + + 45 AS col0
----
-1109

query II rowsort
SELECT ALL 50 + - + 82 * 66, 39 * 56 AS col1
----
-5362
2184

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7570
SELECT ALL + 74 + - 64 + - - 22 * - ( - COUNT( - + 26 ) ) * + - NULLIF ( - 0, - 31 * - 72 + + - 99 ) DIV 67 - - NULLIF ( 88 - + 6, COUNT( * ) * 41 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-7570
SELECT ALL + 74 + - 64 + - - 22 * - ( - COUNT ( - + 26 ) ) * + - NULLIF ( - 0, - 31 * - 72 + + - 99 ) / 67 - - NULLIF ( 88 - + 6, COUNT ( * ) * 41 ) AS col2
----
92

query I rowsort
SELECT DISTINCT - 46 + - 26 col2
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-7572
SELECT - NULLIF ( + 25, 28 ) * - - 28 + - + COALESCE ( + 68, + 39, 14 DIV 51 + + 27 + + 35 * + + 32, - 69 ) AS col1
----
-768

skipif mysql # not compatible
query I rowsort label-7572
SELECT - NULLIF ( + 25, 28 ) * - - 28 + - + COALESCE ( + 68, + 39, 14 / 51 + + 27 + + 35 * + + 32, - 69 ) AS col1
----
-768

query I rowsort
SELECT - 70 + - 67
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-7574
SELECT - 83 + CASE - 11 WHEN MIN( DISTINCT + 54 ) THEN NULL WHEN + + 9 THEN NULL ELSE 90 END
----
7

skipif mysql # not compatible
query I rowsort label-7574
SELECT - 83 + CASE - 11 WHEN MIN ( DISTINCT + 54 ) THEN NULL WHEN + + 9 THEN NULL ELSE 90 END
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7575
SELECT ALL + CASE + COUNT( * ) WHEN - + 12 THEN NULL WHEN - - COUNT( * ) THEN + - 93 * + COUNT( * ) * + 37 + - + MAX( - + ( - - 96 ) ) + + COUNT( * ) END AS col0
----
-3344

skipif mysql # not compatible
query I rowsort label-7575
SELECT ALL + CASE + COUNT ( * ) WHEN - + 12 THEN NULL WHEN - - COUNT ( * ) THEN + - 93 * + COUNT ( * ) * + 37 + - + MAX ( - + ( - - 96 ) ) + + COUNT ( * ) END AS col0
----
-3344

onlyif mysql # aggregate syntax: 
query I rowsort label-7576
SELECT + 36 * - - 37 - - - COUNT( * ) AS col1
----
1331

skipif mysql # not compatible
query I rowsort label-7576
SELECT + 36 * - - 37 - - - COUNT ( * ) AS col1
----
1331

query I rowsort
SELECT + 45 + - 43 * + 89 AS col0
----
-3782

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7578
SELECT - COALESCE ( - COUNT( * ), - CAST( NULL AS SIGNED ) + 5 + + 78 DIV + 34 )
----
1

skipif mysql # not compatible
query I rowsort label-7578
SELECT - COALESCE ( - COUNT ( * ), - CAST ( NULL AS INTEGER ) + 5 + + 78 / + 34 )
----
1

query I rowsort
SELECT ALL + 78 + + 1
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-7580
SELECT DISTINCT 24 DIV - 98 + + ( - - 33 ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-7580
SELECT DISTINCT 24 / - 98 + + ( - - 33 ) AS col0
----
33

query I rowsort
SELECT ALL + 98 - - 64
----
162

query I rowsort
SELECT 43 * + - COALESCE ( - 22, + 36 )
----
946

query I rowsort
SELECT DISTINCT - NULLIF ( - 35, - 26 ) AS col1
----
35

query I rowsort
SELECT DISTINCT + 70 - - - 76 * + 94
----
-7074

onlyif mysql # aggregate syntax: 
query I rowsort label-7585
SELECT - + MAX( + 8 ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-7585
SELECT - + MAX ( + 8 ) AS col0
----
-8

query I rowsort
SELECT - 95 + 42 AS col2
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7587
SELECT DISTINCT 10 * - CAST( - + 88 AS SIGNED ) * + - 47
----
-41360

skipif mysql # not compatible
query I rowsort label-7587
SELECT DISTINCT 10 * - CAST ( - + 88 AS INTEGER ) * + - 47
----
-41360

query II rowsort
SELECT ALL 78, + 11 + + + 74 - - + 58 AS col2
----
78
143

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT ( 24 ) * + COUNT( * ) * + COUNT( 92 ) * - + 42 * - 6 * - - 6
----
36288

skipif mysql # not compatible
query I rowsort label-7589
SELECT ( 24 ) * + COUNT ( * ) * + COUNT ( 92 ) * - + 42 * - 6 * - - 6
----
36288

onlyif mysql # DIV for integer division: 
query I rowsort label-7590
SELECT 7 + - 4 DIV - + 57 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-7590
SELECT 7 + - 4 / - + 57 AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT SUM( DISTINCT - + ( 53 ) ) + 91 col0
----
38

skipif mysql # not compatible
query I rowsort label-7591
SELECT SUM ( DISTINCT - + ( 53 ) ) + 91 col0
----
38

query I rowsort
SELECT 90 - 62 AS col1
----
28

query II rowsort
SELECT 5 AS col2, + 28
----
5
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7594
SELECT DISTINCT SUM( ALL + + 49 )
----
49

skipif mysql # not compatible
query I rowsort label-7594
SELECT DISTINCT SUM ( ALL + + 49 )
----
49

query I rowsort
SELECT DISTINCT - COALESCE ( - 15, - 78 * 4 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7596
SELECT NULLIF ( COUNT( * ), + 91 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7596
SELECT NULLIF ( COUNT ( * ), + 91 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7597
SELECT DISTINCT + SUM( DISTINCT - + 37 ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-7597
SELECT DISTINCT + SUM ( DISTINCT - + 37 ) AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7598
SELECT + CASE 42 WHEN + 4 THEN + 20 END * - COUNT( * ) * 1 + + 32 + COUNT( * ) + - 24 - - + 47 + + + 24 / 23 + + + MAX( ALL - 41 ) + - 17 * + COUNT( * ) * - NULLIF ( - ( - 13 ) - + 71 * COUNT( * ), 6 * 58 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7598
SELECT + CASE 42 WHEN + 4 THEN + 20 END * - COUNT ( * ) * 1 + + 32 + COUNT ( * ) + - 24 - - + 47 + + + 24 / 23 + + + MAX ( ALL - 41 ) + - 17 * + COUNT ( * ) * - NULLIF ( - ( - 13 ) - + 71 * COUNT ( * ), 6 * 58 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7599
SELECT ALL + ( COUNT( * ) ) * - 9 + + + 43 + + - 45
----
-11

skipif mysql # not compatible
query I rowsort label-7599
SELECT ALL + ( COUNT ( * ) ) * - 9 + + + 43 + + - 45
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-7600
SELECT ALL + 70 AS col2, COUNT( ALL - ( 26 ) )
----
70
1

skipif mysql # not compatible
query II rowsort label-7600
SELECT ALL + 70 AS col2, COUNT ( ALL - ( 26 ) )
----
70
1

query I rowsort
SELECT ALL + NULLIF ( + 90, - 53 ) * - 58 + 12 col1
----
-5208

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7602
SELECT DISTINCT + 46 * + COUNT( * ) DIV 54 + 32 * - 19 AS col1
----
-608

skipif mysql # not compatible
query I rowsort label-7602
SELECT DISTINCT + 46 * + COUNT ( * ) / 54 + 32 * - 19 AS col1
----
-608

query II rowsort
SELECT DISTINCT + - 83 AS col0, + 47 * + CASE 23 WHEN 5 THEN + 97 WHEN - 73 THEN NULL END AS col1
----
-83
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7604
SELECT + 54 DIV 99 + + - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7604
SELECT + 54 / 99 + + - COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT ALL - 93 * + 89 AS col2
----
-8277

query I rowsort
SELECT - - 87 - 38 AS col1
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7607
SELECT ALL - - CAST( + + ( - + 19 ) AS SIGNED ) + - + 99 AS col1
----
-118

skipif mysql # not compatible
query I rowsort label-7607
SELECT ALL - - CAST ( + + ( - + 19 ) AS INTEGER ) + - + 99 AS col1
----
-118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7608
SELECT + + 12 + - 52 - + 44 - + 29 * - - 41 * + ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7608
SELECT + + 12 + - 52 - + 44 - + 29 * - - 41 * + ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL 73 * + 51 col1
----
3723

query II rowsort
SELECT - 31 AS col1, 2 * + 96 * - 14 + 48 AS col1
----
-31
-2640

query I rowsort
SELECT ALL + 90 * + 6 - - CASE 5 WHEN - - COALESCE ( - 91, 26 + ( 0 ) ) THEN + 23 END col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7612
SELECT DISTINCT + CAST( - 98 AS SIGNED ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-7612
SELECT DISTINCT + CAST ( - 98 AS INTEGER ) AS col1
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7613
SELECT DISTINCT - MAX( + 39 ) - - 25, CAST( - 61 AS SIGNED ) AS col2
----
-14
-61

skipif mysql # not compatible
query II rowsort label-7613
SELECT DISTINCT - MAX ( + 39 ) - - 25, CAST ( - 61 AS INTEGER ) AS col2
----
-14
-61

query I rowsort
SELECT ALL 40 * + 39 * NULLIF ( - 86, + + 23 ) + 30
----
-134130

query I rowsort
SELECT - + 35 * - 5
----
175

query II rowsort
SELECT - 65 AS col1, 6 - - 17
----
-65
23

onlyif mysql # DIV for integer division: 
query I rowsort label-7617
SELECT + 83 - - 17 DIV 56 DIV - + 69 * - 67
----
83

skipif mysql # not compatible
query I rowsort label-7617
SELECT + 83 - - 17 / 56 / - + 69 * - 67
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7618
SELECT ALL + 66 - - 10 * COALESCE ( - 47, MIN( - 15 ) DIV 55 DIV - ( 41 ) * + - 67 ) AS col2
----
-404

skipif mysql # not compatible
query I rowsort label-7618
SELECT ALL + 66 - - 10 * COALESCE ( - 47, MIN ( - 15 ) / 55 / - ( 41 ) * + - 67 ) AS col2
----
-404

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7619
SELECT ALL ( - NULLIF ( 41, - + 60 ) ) * - COUNT( * ) + + 7 + - 34 - - 0 * MIN( ALL + 29 ) DIV + 31 + - COUNT( * ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-7619
SELECT ALL ( - NULLIF ( 41, - + 60 ) ) * - COUNT ( * ) + + 7 + - 34 - - 0 * MIN ( ALL + 29 ) / + 31 + - COUNT ( * ) AS col2
----
13

query I rowsort
SELECT + 21 * - - 45 AS col1
----
945

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7621
SELECT ALL COUNT( * ) DIV - + 75 col2, 71 + COUNT( * )
----
0
72

skipif mysql # not compatible
query II rowsort label-7621
SELECT ALL COUNT ( * ) / - + 75 col2, 71 + COUNT ( * )
----
0
72

query I rowsort
SELECT ALL COALESCE ( + 55, 27 ) AS col0
----
55

query I rowsort
SELECT - 91 * + - 5 AS col2
----
455

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT ALL SUM( DISTINCT - 48 ) * + 12
----
-576

skipif mysql # not compatible
query I rowsort label-7624
SELECT ALL SUM ( DISTINCT - 48 ) * + 12
----
-576

query I rowsort
SELECT - 67 * + 60 AS col2
----
-4020

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7626
SELECT + ( - CASE CAST( NULL AS SIGNED ) WHEN - - 17 / + CAST( + 33 AS DECIMAL ) THEN COUNT( * ) + + 34 * CASE - + 50 WHEN - COUNT( * ) + - - 62 * + ( COALESCE ( COALESCE ( SUM( DISTINCT + 90 ), 81, 37 * 50 ), 58 * + 48 ) ) + 24 THEN + 38 + NULLIF ( + CAST( NULL AS SIGNED ), - 4 + + CASE 81 WHEN CASE - 51 WHEN - 44 THEN - 50 * COALESCE ( 59 / + COALESCE ( 39, + 99, 41 * - 54 + 98 ), + ( 44 ) / + 36 ) + ( 32 ) ELSE COUNT( * ) * 86 END + ( + 60 ) THEN + 43 * - SUM( + 7 ) WHEN COUNT( ALL CAST( NULL AS SIGNED ) ) + ( - AVG ( ALL - 14 ) ) THEN NULL WHEN 9 THEN 30 + 71 * COUNT( * ) END * NULLIF ( 19, 1 ) ) * + 74 END - - 6 * 16 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7626
SELECT + ( - CASE CAST ( NULL AS INTEGER ) WHEN - - 17 / + CAST ( + 33 AS REAL ) THEN COUNT ( * ) + + 34 * CASE - + 50 WHEN - COUNT ( * ) + - - 62 * + ( COALESCE ( COALESCE ( SUM ( DISTINCT + 90 ), 81, 37 * 50 ), 58 * + 48 ) ) + 24 THEN + 38 + NULLIF ( + CAST ( NULL AS INTEGER ), - 4 + + CASE 81 WHEN CASE - 51 WHEN - 44 THEN - 50 * COALESCE ( 59 / + COALESCE ( 39, + 99, 41 * - 54 + 98 ), + ( 44 ) / + 36 ) + ( 32 ) ELSE COUNT ( * ) * 86 END + ( + 60 ) THEN + 43 * - SUM ( + 7 ) WHEN COUNT ( ALL CAST ( NULL AS INTEGER ) ) + ( - AVG ( ALL - 14 ) ) THEN NULL WHEN 9 THEN 30 + 71 * COUNT ( * ) END * NULLIF ( 19, 1 ) ) * + 74 END - - 6 * 16 END )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7627
SELECT 57 * + COUNT( * ) DIV 85 * 43 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-7627
SELECT 57 * + COUNT ( * ) / 85 * 43 + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7628
SELECT ALL COUNT( * ) * + 68 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-7628
SELECT ALL COUNT ( * ) * + 68 AS col0
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7629
SELECT ALL - COUNT( ALL COALESCE ( 4, + 69, 52 ) ) DIV + 77 * - - 62 + + 33
----
33

skipif mysql # not compatible
query I rowsort label-7629
SELECT ALL - COUNT ( ALL COALESCE ( 4, + 69, 52 ) ) / + 77 * - - 62 + + 33
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-7630
SELECT DISTINCT + 74 DIV 56 + + + 47 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-7630
SELECT DISTINCT + 74 / 56 + + + 47 AS col0
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7631
SELECT ALL + 72 DIV - + 86 + COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-7631
SELECT ALL + 72 / - + 86 + COUNT ( * ) col2
----
1

query I rowsort
SELECT ALL - - ( + ( - 44 ) ) * 61 + - - 37 AS col0
----
-2647

query I rowsort
SELECT ALL + - CASE + - 70 WHEN + 70 / + 44 + - - 16 THEN - 60 - 0 + 8 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT MAX( DISTINCT 60 ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-7634
SELECT MAX ( DISTINCT 60 ) AS col0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7635
SELECT - - 2 + - ( - - 99 ) + 6 - + ( 9 ) + CAST( - + 67 AS SIGNED )
----
-167

skipif mysql # not compatible
query I rowsort label-7635
SELECT - - 2 + - ( - - 99 ) + 6 - + ( 9 ) + CAST ( - + 67 AS INTEGER )
----
-167

query I rowsort
SELECT - + 91 + 90 col2
----
-1

query I rowsort
SELECT DISTINCT + 53 * + 32 AS col0
----
1696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7638
SELECT ALL + 56 * NULLIF ( - 56, - ( + - 32 ) * - ( + COUNT( * ) ) + - CASE - 14 WHEN - NULLIF ( + + CAST( 4 AS SIGNED ), + - 8 ) THEN + ( COUNT( * ) ) * 10 ELSE NULL END ) / CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) - 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7638
SELECT ALL + 56 * NULLIF ( - 56, - ( + - 32 ) * - ( + COUNT ( * ) ) + - CASE - 14 WHEN - NULLIF ( + + CAST ( 4 AS INTEGER ), + - 8 ) THEN + ( COUNT ( * ) ) * 10 ELSE NULL END ) / CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) - 1 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7639
SELECT - COUNT( * ) * + 0 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7639
SELECT - COUNT ( * ) * + 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7640
SELECT - - COUNT( ALL COALESCE ( + - 26, + 3 * + 50, + 80 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7640
SELECT - - COUNT ( ALL COALESCE ( + - 26, + 3 * + 50, + 80 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7641
SELECT ALL + CAST( + COUNT( DISTINCT + 25 ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7641
SELECT ALL + CAST ( + COUNT ( DISTINCT + 25 ) AS INTEGER ) AS col1
----
1

query I rowsort
SELECT - + 90 * + 16 + + 80 AS col0
----
-1360

query I rowsort
SELECT + + 26 + - 18 * - 37
----
692

onlyif mysql # aggregate syntax: 
query I rowsort label-7644
SELECT - 30 + + - SUM( ALL 46 ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-7644
SELECT - 30 + + - SUM ( ALL 46 ) AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT - COUNT( - 48 )
----
-1

skipif mysql # not compatible
query I rowsort label-7645
SELECT - COUNT ( - 48 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7646
SELECT ALL CAST( - + SUM( DISTINCT + - ( + - 84 ) ) AS SIGNED )
----
-84

skipif mysql # not compatible
query I rowsort label-7646
SELECT ALL CAST ( - + SUM ( DISTINCT + - ( + - 84 ) ) AS INTEGER )
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7647
SELECT ALL CAST( + SUM( - 16 ) AS SIGNED )
----
-16

skipif mysql # not compatible
query I rowsort label-7647
SELECT ALL CAST ( + SUM ( - 16 ) AS INTEGER )
----
-16

query I rowsort
SELECT DISTINCT ( + 66 ) * + + 91 + + 64
----
6070

onlyif mysql # aggregate syntax: 
query I rowsort label-7649
SELECT ( 43 ) + 5 + + CASE - 66 WHEN + ( - + 36 ) + + 45 * - - 81 + + - 63 + - + 93 THEN + - MAX( 27 ) * 4 ELSE 54 END
----
102

skipif mysql # not compatible
query I rowsort label-7649
SELECT ( 43 ) + 5 + + CASE - 66 WHEN + ( - + 36 ) + + 45 * - - 81 + + - 63 + - + 93 THEN + - MAX ( 27 ) * 4 ELSE 54 END
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT DISTINCT COALESCE ( ( COUNT( * ) ), - NULLIF ( - 66, - 93 ), + 48 * 72, + NULLIF ( 23, + + COUNT( * ) * - 46 * + 28 * - 63 ) ) * - + 21
----
-21

skipif mysql # not compatible
query I rowsort label-7650
SELECT DISTINCT COALESCE ( ( COUNT ( * ) ), - NULLIF ( - 66, - 93 ), + 48 * 72, + NULLIF ( 23, + + COUNT ( * ) * - 46 * + 28 * - 63 ) ) * - + 21
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7651
SELECT CAST( NULL AS SIGNED ) + - MIN( ALL + 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7651
SELECT CAST ( NULL AS INTEGER ) + - MIN ( ALL + 88 )
----
NULL

query I rowsort
SELECT ALL 74 + 11
----
85

query II rowsort
SELECT 54 AS col1, - 92 AS col1
----
54
-92

query I rowsort
SELECT DISTINCT 9 + + 52
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7655
SELECT 25 - - COUNT( * ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-7655
SELECT 25 - - COUNT ( * ) AS col1
----
26

query I rowsort
SELECT ALL 38 + - 55
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7657
SELECT DISTINCT 61 * - COUNT( * ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-7657
SELECT DISTINCT 61 * - COUNT ( * ) AS col1
----
-61

query II rowsort
SELECT DISTINCT - 82, + 72 AS col2
----
-82
72

onlyif mysql # aggregate syntax: 
query II rowsort label-7659
SELECT ALL 8 + - COUNT( * ) + + + COUNT( * ) AS col0, 77 AS col2
----
8
77

skipif mysql # not compatible
query II rowsort label-7659
SELECT ALL 8 + - COUNT ( * ) + + + COUNT ( * ) AS col0, 77 AS col2
----
8
77

query II rowsort
SELECT ALL - 95 AS col0, 3 * 39 AS col2
----
-95
117

query I rowsort
SELECT + + 3 AS col0
----
3

query I rowsort
SELECT + ( + + ( - - ( 21 ) ) ) AS col0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7663
SELECT ALL - - CAST( 68 AS SIGNED ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-7663
SELECT ALL - - CAST ( 68 AS INTEGER ) AS col1
----
68

query I rowsort
SELECT DISTINCT - 24 * + - 48 AS col2
----
1152

query I rowsort
SELECT ALL - + 72 col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7666
SELECT ALL - COUNT( ALL ( + 39 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7666
SELECT ALL - COUNT ( ALL ( + 39 ) ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7667
SELECT CAST( NULL AS SIGNED ) * - - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-7667
SELECT CAST ( NULL AS INTEGER ) * - - 29
----
NULL

query I rowsort
SELECT ALL - + 95 col0
----
-95

query I rowsort
SELECT 52 + + 73 + - 26 col2
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7670
SELECT ALL - 39, + CAST( NULL AS SIGNED ) / - - 59 * + - ( COUNT( DISTINCT 64 ) ) * 64 + CAST( NULL AS SIGNED ) + - + 40 AS col2
----
-39
NULL

skipif mysql # not compatible
query II rowsort label-7670
SELECT ALL - 39, + CAST ( NULL AS INTEGER ) / - - 59 * + - ( COUNT ( DISTINCT 64 ) ) * 64 + CAST ( NULL AS INTEGER ) + - + 40 AS col2
----
-39
NULL

query I rowsort
SELECT 28 * - - 15 AS col2
----
420

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT - 61 * - COUNT( * ) + - - 79 + - COUNT( * )
----
139

skipif mysql # not compatible
query I rowsort label-7672
SELECT - 61 * - COUNT ( * ) + - - 79 + - COUNT ( * )
----
139

query I rowsort
SELECT DISTINCT - 8 * + + 34 AS col1
----
-272

query I rowsort
SELECT 21 + 79
----
100

query I rowsort
SELECT + 27 * + 34
----
918

query I rowsort
SELECT DISTINCT + 56 + + + 54 + - + 25
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7677
SELECT 90 + + ( - - 77 ) + - CASE - 56 WHEN - CAST( NULL AS SIGNED ) THEN 27 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7677
SELECT 90 + + ( - - 77 ) + - CASE - 56 WHEN - CAST ( NULL AS INTEGER ) THEN 27 END
----
NULL

query I rowsort
SELECT DISTINCT - 11 + 49
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7679
SELECT DISTINCT + ( MIN( DISTINCT + 8 ) ) + - ( - CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7679
SELECT DISTINCT + ( MIN ( DISTINCT + 8 ) ) + - ( - CAST ( NULL AS INTEGER ) ) col2
----
NULL

query II rowsort
SELECT - 41, + 51 AS col2
----
-41
51

onlyif mysql # aggregate syntax: 
query II rowsort label-7681
SELECT 51, - COUNT( * ) + 40 col0
----
51
39

skipif mysql # not compatible
query II rowsort label-7681
SELECT 51, - COUNT ( * ) + 40 col0
----
51
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7682
SELECT ALL - ( 39 ) + + + 7 + COUNT( * ) + 81 DIV - + ( + 74 )
----
-32

skipif mysql # not compatible
query I rowsort label-7682
SELECT ALL - ( 39 ) + + + 7 + COUNT ( * ) + 81 / - + ( + 74 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7683
SELECT DISTINCT - 12 + - COUNT( * ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-7683
SELECT DISTINCT - 12 + - COUNT ( * ) AS col2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7684
SELECT 25 + + COUNT( * ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-7684
SELECT 25 + + COUNT ( * ) AS col1
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7685
SELECT ALL COALESCE ( + 15, - COALESCE ( 60, + 33 ), + - 61 * NULLIF ( NULLIF ( 61, + 64 + MAX( - 87 ) * COUNT( * ) ), + 84 ) + 74 DIV - - 49, - 62 + + 88 ) * - 22 AS col2
----
-330

skipif mysql # not compatible
query I rowsort label-7685
SELECT ALL COALESCE ( + 15, - COALESCE ( 60, + 33 ), + - 61 * NULLIF ( NULLIF ( 61, + 64 + MAX ( - 87 ) * COUNT ( * ) ), + 84 ) + 74 / - - 49, - 62 + + 88 ) * - 22 AS col2
----
-330

query I rowsort
SELECT ALL + 94 + - 79
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7687
SELECT ALL 20 + - 92 / CAST( NULL AS SIGNED ) * + NULLIF ( + - 28, AVG ( DISTINCT + + 29 ) ) / 57 + + COUNT( * ) / - + CAST( NULL AS SIGNED ) + - 69 * ( 48 ) + + - CASE - 84 WHEN COALESCE ( 51, - 86 ) + 17 * MAX( 60 ) THEN - 56 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7687
SELECT ALL 20 + - 92 / CAST ( NULL AS INTEGER ) * + NULLIF ( + - 28, AVG ( DISTINCT + + 29 ) ) / 57 + + COUNT ( * ) / - + CAST ( NULL AS INTEGER ) + - 69 * ( 48 ) + + - CASE - 84 WHEN COALESCE ( 51, - 86 ) + 17 * MAX ( 60 ) THEN - 56 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7688
SELECT DISTINCT - 22 * - 36 * + CAST( - CAST( + 78 AS DECIMAL ) AS SIGNED )
----
-61776

skipif mysql # not compatible
query I rowsort label-7688
SELECT DISTINCT - 22 * - 36 * + CAST ( - CAST ( + 78 AS REAL ) AS INTEGER )
----
-61776

onlyif mysql # aggregate syntax: 
query I rowsort label-7689
SELECT ALL COUNT( DISTINCT - 34 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7689
SELECT ALL COUNT ( DISTINCT - 34 ) AS col1
----
1

query II rowsort
SELECT 21 + 2, 54 AS col2
----
23
54

onlyif mysql # aggregate syntax: 
query II rowsort label-7691
SELECT - 65 AS col0, + COUNT( * ) AS col1
----
-65
1

skipif mysql # not compatible
query II rowsort label-7691
SELECT - 65 AS col0, + COUNT ( * ) AS col1
----
-65
1

query I rowsort
SELECT 60 + + + 63 - + 84 * 20 AS col2
----
-1557

query I rowsort
SELECT ALL - ( - 86 ) * + 52
----
4472

query I rowsort
SELECT 31 + - 63 * ( - 98 ) AS col1
----
6205

query II rowsort
SELECT ALL - 5 AS col1, - 50
----
-5
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7696
SELECT - COUNT( * ) * + 61 + 6
----
-55

skipif mysql # not compatible
query I rowsort label-7696
SELECT - COUNT ( * ) * + 61 + 6
----
-55

query I rowsort
SELECT + ( - 45 ) - - - 10 col0
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-7698
SELECT ( - 96 ) DIV 66 * 33 * - COALESCE ( + 80, + + 14, - 55 - - 0 ) + - ( - 86 ) + - 8 AS col2
----
2718

skipif mysql # not compatible
query I rowsort label-7698
SELECT ( - 96 ) / 66 * 33 * - COALESCE ( + 80, + + 14, - 55 - - 0 ) + - ( - 86 ) + - 8 AS col2
----
2718

query I rowsort
SELECT + 87 + + - 81
----
6

query I rowsort
SELECT ALL - ( + 38 )
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7701
SELECT ALL - COUNT( * ) * - - 57 * CAST( - 49 AS SIGNED ) + 80 AS col2
----
2873

skipif mysql # not compatible
query I rowsort label-7701
SELECT ALL - COUNT ( * ) * - - 57 * CAST ( - 49 AS INTEGER ) + 80 AS col2
----
2873

onlyif mysql # aggregate syntax: 
query II rowsort label-7702
SELECT - 9 + + - 58, + COALESCE ( + 77, - 55 * + 94 * - - SUM( DISTINCT - - 51 ), - + 2 * 95 ) * 99 AS col0
----
-67
7623

skipif mysql # not compatible
query II rowsort label-7702
SELECT - 9 + + - 58, + COALESCE ( + 77, - 55 * + 94 * - - SUM ( DISTINCT - - 51 ), - + 2 * 95 ) * 99 AS col0
----
-67
7623

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT ALL - ( + + SUM( - + 65 ) )
----
65

skipif mysql # not compatible
query I rowsort label-7703
SELECT ALL - ( + + SUM ( - + 65 ) )
----
65

query II rowsort
SELECT + + 20 AS col1, - 13 AS col0
----
20
-13

query I rowsort
SELECT + - 76 * - 65 + 61 + + 78
----
5079

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7706
SELECT ALL - 70 * + + SUM( + 46 ) * + COUNT( * ) + - 4 - - COUNT( * ) * COUNT( * ) + 69 + 54 - - - COUNT( * ) + - + COALESCE ( - + SUM( DISTINCT - 75 ), + 86 ) * 82 DIV COUNT( * ) DIV 23 AS col2
----
-3368

skipif mysql # not compatible
query I rowsort label-7706
SELECT ALL - 70 * + + SUM ( + 46 ) * + COUNT ( * ) + - 4 - - COUNT ( * ) * COUNT ( * ) + 69 + 54 - - - COUNT ( * ) + - + COALESCE ( - + SUM ( DISTINCT - 75 ), + 86 ) * 82 / COUNT ( * ) / 23 AS col2
----
-3368

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7707
SELECT - 73 * + 29 + 9 / + 62 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7707
SELECT - 73 * + 29 + 9 / + 62 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7708
SELECT ALL COUNT( * ) * + 27
----
27

skipif mysql # not compatible
query I rowsort label-7708
SELECT ALL COUNT ( * ) * + 27
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7709
SELECT + COUNT( * ) / + CASE - + NULLIF ( CAST( CAST( + 15 AS SIGNED ) AS SIGNED ), + + COUNT( * ) - - - ( - 1 ) ) WHEN - 93 * - 16 THEN + 95 * - 6 + + 55 + - ( - COUNT( * ) ) / + 32 END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7709
SELECT + COUNT ( * ) / + CASE - + NULLIF ( CAST ( CAST ( + 15 AS INTEGER ) AS INTEGER ), + + COUNT ( * ) - - - ( - 1 ) ) WHEN - 93 * - 16 THEN + 95 * - 6 + + 55 + - ( - COUNT ( * ) ) / + 32 END + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7710
SELECT 56 + - ( + SUM( ALL + + CASE 81 WHEN - + 9 THEN + 61 + 75 WHEN + - 3 THEN NULL ELSE NULL END ) ) - + 46 * + - ( - - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7710
SELECT 56 + - ( + SUM ( ALL + + CASE 81 WHEN - + 9 THEN + 61 + 75 WHEN + - 3 THEN NULL ELSE NULL END ) ) - + 46 * + - ( - - COUNT ( * ) )
----
NULL

query I rowsort
SELECT ALL 19 * + - 11 AS col2
----
-209

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7712
SELECT CASE NULLIF ( + 4, 17 ) WHEN CASE - 54 WHEN + ( - - ( - + ( MIN( + 16 ) ) ) ) + + 22 * + CASE + CASE + 28 WHEN + - 28 + + 6 THEN 88 WHEN 39 * 85 THEN COUNT( * ) * - 38 WHEN COUNT( * ) DIV + 97 THEN + 74 * - 95 + 86 * 45 ELSE - 95 END WHEN 10 + COUNT( * ) THEN ( 22 ) WHEN - 76 THEN 82 * COUNT( * ) ELSE 24 END * 2 THEN NULL WHEN 13 * CASE 92 WHEN - 65 * - 57 - 64 THEN + 67 END THEN + 87 ELSE NULL END THEN - 50 ELSE 61 DIV 37 END
----
1

skipif mysql # not compatible
query I rowsort label-7712
SELECT CASE NULLIF ( + 4, 17 ) WHEN CASE - 54 WHEN + ( - - ( - + ( MIN ( + 16 ) ) ) ) + + 22 * + CASE + CASE + 28 WHEN + - 28 + + 6 THEN 88 WHEN 39 * 85 THEN COUNT ( * ) * - 38 WHEN COUNT ( * ) / + 97 THEN + 74 * - 95 + 86 * 45 ELSE - 95 END WHEN 10 + COUNT ( * ) THEN ( 22 ) WHEN - 76 THEN 82 * COUNT ( * ) ELSE 24 END * 2 THEN NULL WHEN 13 * CASE 92 WHEN - 65 * - 57 - 64 THEN + 67 END THEN + 87 ELSE NULL END THEN - 50 ELSE 61 / 37 END
----
1

query I rowsort
SELECT DISTINCT 68 + 19 + 43 AS col0
----
130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7714
SELECT + - 82 DIV + COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-7714
SELECT + - 82 / + COUNT ( * )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT DISTINCT 81 + - 20 * + COUNT( * ) + - + 33 * + - 55 * - 67
----
-121544

skipif mysql # not compatible
query I rowsort label-7715
SELECT DISTINCT 81 + - 20 * + COUNT ( * ) + - + 33 * + - 55 * - 67
----
-121544

onlyif mysql # aggregate syntax: 
query I rowsort label-7716
SELECT ALL - ( + CASE - NULLIF ( COUNT( 67 ), - 24 ) WHEN + + 91 THEN NULL WHEN - 10 THEN + + ( + 1 ) END ) + + 99 / - 78 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7716
SELECT ALL - ( + CASE - NULLIF ( COUNT ( 67 ), - 24 ) WHEN + + 91 THEN NULL WHEN - 10 THEN + + ( + 1 ) END ) + + 99 / - 78 AS col1
----
NULL

query II rowsort
SELECT DISTINCT + 94 AS col1, 10 * + - 45 + + + 65
----
94
-385

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT SUM( ALL - 65 )
----
-65

skipif mysql # not compatible
query I rowsort label-7718
SELECT SUM ( ALL - 65 )
----
-65

query II rowsort
SELECT + 98 + - 48 AS col2, + 82 * 22 + + 34 + - 87 * + 43
----
50
-1903

query I rowsort
SELECT + 69 * - 22 AS col0
----
-1518

query I rowsort
SELECT ALL - 7 + - + 83 AS col1
----
-90

query I rowsort
SELECT + 39 * + 32
----
1248

query I rowsort
SELECT + 56 + 69 + + 93 * - - 85 + - + 76
----
7954

query I rowsort
SELECT DISTINCT 62 + - 8 AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT ALL COUNT( + 33 )
----
1

skipif mysql # not compatible
query I rowsort label-7725
SELECT ALL COUNT ( + 33 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7726
SELECT - 91 DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-7726
SELECT - 91 / 92
----
0

query I rowsort
SELECT ALL CASE 50 WHEN 8 THEN - 92 END
----
NULL

query I rowsort
SELECT ALL - 8 - - ( 62 ) + - 10 + - 38 * 0 AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT DISTINCT COUNT( - ( - + 22 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7729
SELECT DISTINCT COUNT ( - ( - + 22 ) ) AS col2
----
1

query I rowsort
SELECT - 73 * - 84
----
6132

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT - COUNT( ALL + 82 ) + + + 59 col0
----
58

skipif mysql # not compatible
query I rowsort label-7731
SELECT - COUNT ( ALL + 82 ) + + + 59 col0
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-7732
SELECT ALL CASE + 72 WHEN - COUNT( * ) THEN - - ( + 41 ) END AS col2, + 51 - - ( + - 56 )
----
NULL
-5

skipif mysql # not compatible
query II rowsort label-7732
SELECT ALL CASE + 72 WHEN - COUNT ( * ) THEN - - ( + 41 ) END AS col2, + 51 - - ( + - 56 )
----
NULL
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-7733
SELECT DISTINCT + 45 DIV 24
----
1

skipif mysql # not compatible
query I rowsort label-7733
SELECT DISTINCT + 45 / 24
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7734
SELECT - COUNT( * ) DIV COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7734
SELECT - COUNT ( * ) / COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT + ( - 14 ) * 0 AS col1
----
0

query II rowsort
SELECT ALL + - 17 * - 94 AS col2, - 65 * - 37
----
1598
2405

query I rowsort
SELECT ALL + - 1 / + + 56 * - CASE - 62 WHEN 70 THEN + 91 WHEN + 88 THEN + 8 + + 47 ELSE NULL END + - 72 + 18
----
NULL

query II rowsort
SELECT ALL - 35 * + 35 AS col0, 78 - - 32
----
-1225
110

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7739
SELECT DISTINCT + 76 * - + 4 col2, - CAST( + 41 AS SIGNED )
----
-304
-41

skipif mysql # not compatible
query II rowsort label-7739
SELECT DISTINCT + 76 * - + 4 col2, - CAST ( + 41 AS INTEGER )
----
-304
-41

query I rowsort
SELECT - 98 * - + 25
----
2450

query I rowsort
SELECT DISTINCT - 41 * + 28
----
-1148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7742
SELECT - AVG ( DISTINCT 18 ) * - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7742
SELECT - AVG ( DISTINCT 18 ) * - CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT + + 13 * - 73
----
-949

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7744
SELECT + + CAST( + 35 AS SIGNED ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-7744
SELECT + + CAST ( + 35 AS INTEGER ) AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7745
SELECT ALL - 43 * + 75 + + + COUNT( * ) AS col0
----
-3224

skipif mysql # not compatible
query I rowsort label-7745
SELECT ALL - 43 * + 75 + + + COUNT ( * ) AS col0
----
-3224

query I rowsort
SELECT ALL 33 * + 85 + - 85 AS col0
----
2720

onlyif mysql # DIV for integer division: 
query I rowsort label-7747
SELECT ALL + 58 DIV - ( 91 ) - + - 5
----
5

skipif mysql # not compatible
query I rowsort label-7747
SELECT ALL + 58 / - ( 91 ) - + - 5
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7748
SELECT + + 53 * + CAST( NULL AS SIGNED ) + + - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-7748
SELECT + + 53 * + CAST ( NULL AS INTEGER ) + + - 60
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7749
SELECT ALL COUNT( * ) * 95 * 8 + NULLIF ( - COALESCE ( - 98, 7 DIV 53 ), + - 46 * - - 9 DIV + CAST( NULL AS SIGNED ) ) AS col0
----
858

skipif mysql # not compatible
query I rowsort label-7749
SELECT ALL COUNT ( * ) * 95 * 8 + NULLIF ( - COALESCE ( - 98, 7 / 53 ), + - 46 * - - 9 / + CAST ( NULL AS INTEGER ) ) AS col0
----
858

query I rowsort
SELECT DISTINCT + + 75 col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7751
SELECT ALL + + 54 * 56 * + + 87 + + COUNT( * ) AS col1
----
263089

skipif mysql # not compatible
query I rowsort label-7751
SELECT ALL + + 54 * 56 * + + 87 + + COUNT ( * ) AS col1
----
263089

query I rowsort
SELECT + 37 * + - 22 * - - 68 AS col2
----
-55352

onlyif mysql # aggregate syntax: 
query I rowsort label-7753
SELECT COALESCE ( 4, + + COUNT( * ) - + 12 )
----
4

skipif mysql # not compatible
query I rowsort label-7753
SELECT COALESCE ( 4, + + COUNT ( * ) - + 12 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7754
SELECT ALL + 75 * MIN( ALL + 20 ) + - - 79
----
1579

skipif mysql # not compatible
query I rowsort label-7754
SELECT ALL + 75 * MIN ( ALL + 20 ) + - - 79
----
1579

onlyif mysql # aggregate syntax: 
query I rowsort label-7755
SELECT CASE + + 81 WHEN - 15 THEN NULL ELSE 16 * + COUNT( * ) END
----
16

skipif mysql # not compatible
query I rowsort label-7755
SELECT CASE + + 81 WHEN - 15 THEN NULL ELSE 16 * + COUNT ( * ) END
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7756
SELECT - 78 * - 9 + 24 + - 18 * + - ( COUNT( * ) ) DIV + 52 AS col2
----
726

skipif mysql # not compatible
query I rowsort label-7756
SELECT - 78 * - 9 + 24 + - 18 * + - ( COUNT ( * ) ) / + 52 AS col2
----
726

query II rowsort
SELECT ALL + 86 AS col1, 8 + + ( - - 71 ) AS col2
----
86
79

query I rowsort
SELECT DISTINCT + 81 * + - 63 + + ( - 91 )
----
-5194

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT MIN( COALESCE ( - 96, + + 70 ) ) col1
----
-96

skipif mysql # not compatible
query I rowsort label-7759
SELECT MIN ( COALESCE ( - 96, + + 70 ) ) col1
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7760
SELECT ALL + 48 * 10 DIV + CAST( 83 AS SIGNED ) - + COUNT( DISTINCT - 27 ) + - 12 + + 91 + 87 * + 58
----
5129

skipif mysql # not compatible
query I rowsort label-7760
SELECT ALL + 48 * 10 / + CAST ( 83 AS INTEGER ) - + COUNT ( DISTINCT - 27 ) + - 12 + + 91 + 87 * + 58
----
5129

query II rowsort
SELECT DISTINCT 44 AS col2, ( - 21 ) AS col2
----
44
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-7762
SELECT ALL 96 AS col1, + COUNT( * ) * + - 35
----
96
-35

skipif mysql # not compatible
query II rowsort label-7762
SELECT ALL 96 AS col1, + COUNT ( * ) * + - 35
----
96
-35

query I rowsort
SELECT ALL ( - 59 ) * + - 17 - + 6 AS col0
----
997

query I rowsort
SELECT + 85 * + 68 * - - 80 AS col1
----
462400

onlyif mysql # aggregate syntax: 
query I rowsort label-7765
SELECT MIN( + 67 ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-7765
SELECT MIN ( + 67 ) AS col1
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7766
SELECT - CAST( - COUNT( + - ( + 31 ) ) AS SIGNED ) col1
----
1

skipif mysql # not compatible
query I rowsort label-7766
SELECT - CAST ( - COUNT ( + - ( + 31 ) ) AS INTEGER ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7767
SELECT DISTINCT COUNT( - - 4 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7767
SELECT DISTINCT COUNT ( - - 4 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7768
SELECT - COUNT( * ) + 43 + + 78
----
120

skipif mysql # not compatible
query I rowsort label-7768
SELECT - COUNT ( * ) + 43 + + 78
----
120

query I rowsort
SELECT ALL 43 - + 63 * + 3 - - 22
----
-124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7770
SELECT - CASE + 61 WHEN - 18 THEN NULL ELSE - + 55 + 58 + 17 * + 53 DIV COALESCE ( + COUNT( * ), - 75 ) + - 0 END * - 50
----
45200

skipif mysql # not compatible
query I rowsort label-7770
SELECT - CASE + 61 WHEN - 18 THEN NULL ELSE - + 55 + 58 + 17 * + 53 / COALESCE ( + COUNT ( * ), - 75 ) + - 0 END * - 50
----
45200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7771
SELECT - CAST( - + AVG ( ALL - 59 ) AS SIGNED ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-7771
SELECT - CAST ( - + AVG ( ALL - 59 ) AS INTEGER ) AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7772
SELECT + 25 + 31 + + - 76 * - CASE - 94 WHEN - 39 * COUNT( * ) + + 93 + + 79 * + 46 / - ( - 36 ) - - ( + 95 ) + + + COALESCE ( - 40, - 81 + + 65 + - 17 * + 79, 93 + ( COUNT( * ) ), - ( + 15 ) ) THEN NULL ELSE 94 END * - ( + ( 1 ) )
----
-7088

skipif mysql # not compatible
query I rowsort label-7772
SELECT + 25 + 31 + + - 76 * - CASE - 94 WHEN - 39 * COUNT ( * ) + + 93 + + 79 * + 46 / - ( - 36 ) - - ( + 95 ) + + + COALESCE ( - 40, - 81 + + 65 + - 17 * + 79, 93 + ( COUNT ( * ) ), - ( + 15 ) ) THEN NULL ELSE 94 END * - ( + ( 1 ) )
----
-7088

onlyif mysql # aggregate syntax: 
query I rowsort label-7773
SELECT ALL NULLIF ( - 96, + COUNT( * ) * + 43 ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-7773
SELECT ALL NULLIF ( - 96, + COUNT ( * ) * + 43 ) AS col1
----
-96

query I rowsort
SELECT DISTINCT + 50 * - + 79 col1
----
-3950

query I rowsort
SELECT + - 98 + COALESCE ( 2, - 49, - - 47 ) AS col0
----
-96

query II rowsort
SELECT ALL - 45 col0, - 86 - - 64 AS col0
----
-45
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7777
SELECT ALL - + 85 + - CAST( MIN( ALL 37 ) AS SIGNED ) AS col0
----
-122

skipif mysql # not compatible
query I rowsort label-7777
SELECT ALL - + 85 + - CAST ( MIN ( ALL 37 ) AS INTEGER ) AS col0
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-7778
SELECT + COUNT( * ) + 42 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-7778
SELECT + COUNT ( * ) + 42 AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7779
SELECT - COALESCE ( MAX( DISTINCT + + 23 ), + + MIN( + - 48 ) + + 25 * - ( + - 84 ) )
----
-23

skipif mysql # not compatible
query I rowsort label-7779
SELECT - COALESCE ( MAX ( DISTINCT + + 23 ), + + MIN ( + - 48 ) + + 25 * - ( + - 84 ) )
----
-23

query I rowsort
SELECT - 27 - + - 38 + - 46 AS col1
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-7781
SELECT DISTINCT + + 73 DIV 74 + - 18 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-7781
SELECT DISTINCT + + 73 / 74 + - 18 AS col2
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7782
SELECT - COUNT( * ) DIV - 35 + + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7782
SELECT - COUNT ( * ) / - 35 + + COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7783
SELECT ALL - MAX( 44 ) DIV + 89
----
0

skipif mysql # not compatible
query I rowsort label-7783
SELECT ALL - MAX ( 44 ) / + 89
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7784
SELECT ALL - + 98 + + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7784
SELECT ALL - + 98 + + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7785
SELECT COUNT( * ) * + 70 + - 47 + - + COUNT( * ) + - - 37 * - 7 AS col2
----
-237

skipif mysql # not compatible
query I rowsort label-7785
SELECT COUNT ( * ) * + 70 + - 47 + - + COUNT ( * ) + - - 37 * - 7 AS col2
----
-237

query I rowsort
SELECT ALL + + 18 + + 17 * + + 18 AS col2
----
324

query II rowsort
SELECT + 58 AS col0, 17 AS col0
----
58
17

onlyif mysql # DIV for integer division: 
query I rowsort label-7788
SELECT - 26 DIV - 20 + - 93 + - 59 AS col1
----
-151

skipif mysql # not compatible
query I rowsort label-7788
SELECT - 26 / - 20 + - 93 + - 59 AS col1
----
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT ALL + 35 + COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-7789
SELECT ALL + 35 + COUNT ( * )
----
36

query II rowsort
SELECT 6 * + 34 AS col2, - 66
----
204
-66

query II rowsort
SELECT DISTINCT - ( 61 ) AS col0, NULLIF ( - + 94, - + 23 )
----
-61
-94

query I rowsort
SELECT ALL + 7 - + - ( - 44 )
----
-37

onlyif mysql # DIV for integer division: 
query II rowsort label-7793
SELECT DISTINCT 45 DIV + - 33 AS col1, + 48 col1
----
-1
48

skipif mysql # not compatible
query II rowsort label-7793
SELECT DISTINCT 45 / + - 33 AS col1, + 48 col1
----
-1
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7794
SELECT ALL - CAST( - + 41 AS SIGNED ) col0
----
41

skipif mysql # not compatible
query I rowsort label-7794
SELECT ALL - CAST ( - + 41 AS INTEGER ) col0
----
41

query I rowsort
SELECT ( 71 ) * + 62 + + NULLIF ( + + 67, - NULLIF ( - 12, - - 93 * - 35 * - NULLIF ( + 58, + + 67 / - 55 ) ) )
----
4469

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT ALL 44 * + CASE 70 WHEN + - 44 THEN + - COUNT( + 24 ) WHEN + - MAX( 44 ) - COUNT( * ) THEN + CASE + ( - 27 ) WHEN - ( - 95 ) THEN 23 ELSE NULL END ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7796
SELECT ALL 44 * + CASE 70 WHEN + - 44 THEN + - COUNT ( + 24 ) WHEN + - MAX ( 44 ) - COUNT ( * ) THEN + CASE + ( - 27 ) WHEN - ( - 95 ) THEN 23 ELSE NULL END ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 76 * + 4 * + - COALESCE ( - + 51, 5 ) AS col1
----
15504

query I rowsort
SELECT ALL 61 * 65 AS col1
----
3965

query II rowsort
SELECT ALL - 45 * - 75 AS col1, 21 AS col2
----
3375
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7800
SELECT DISTINCT 31 DIV - COUNT( DISTINCT 97 ) col1
----
-31

skipif mysql # not compatible
query I rowsort label-7800
SELECT DISTINCT 31 / - COUNT ( DISTINCT 97 ) col1
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7801
SELECT CASE + CAST( NULL AS SIGNED ) WHEN - MAX( DISTINCT - 61 ) THEN NULL WHEN + NULLIF ( - 45, - 69 + + 33 * - 7 ) THEN + + 81 WHEN - 29 THEN NULL END * 2 * - 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7801
SELECT CASE + CAST ( NULL AS INTEGER ) WHEN - MAX ( DISTINCT - 61 ) THEN NULL WHEN + NULLIF ( - 45, - 69 + + 33 * - 7 ) THEN + + 81 WHEN - 29 THEN NULL END * 2 * - 17 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7802
SELECT ( 52 ) + - 30 * + 79 * - MAX( DISTINCT + - 30 ) AS col0
----
-71048

skipif mysql # not compatible
query I rowsort label-7802
SELECT ( 52 ) + - 30 * + 79 * - MAX ( DISTINCT + - 30 ) AS col0
----
-71048

query I rowsort
SELECT 72 * 6 AS col1
----
432

query I rowsort
SELECT - 89 + + 35 AS col1
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7805
SELECT ALL 72 + 90 - - - 48 * + COALESCE ( - ( 14 ), - 30 * - - CAST( 24 AS SIGNED ) + - CAST( NULL AS SIGNED ) )
----
834

skipif mysql # not compatible
query I rowsort label-7805
SELECT ALL 72 + 90 - - - 48 * + COALESCE ( - ( 14 ), - 30 * - - CAST ( 24 AS INTEGER ) + - CAST ( NULL AS INTEGER ) )
----
834

query I rowsort
SELECT ALL + 80 + + 58 AS col0
----
138

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7807
SELECT ALL + + CAST( NULL AS DECIMAL ) + - 89 * + - ( + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7807
SELECT ALL + + CAST ( NULL AS REAL ) + - 89 * + - ( + COUNT ( * ) )
----
NULL

query I rowsort
SELECT DISTINCT + 64 * + NULLIF ( 79, 1 + - 20 )
----
5056

query I rowsort
SELECT ALL + 0 + + 21 col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7810
SELECT DISTINCT ( - CASE + 11 WHEN + 6 THEN NULL WHEN + + 68 THEN NULL WHEN 3 * - + NULLIF ( - - NULLIF ( 96, 17 * - - 60 / - 92 ), - - 38 ) + - + MAX( DISTINCT - - 83 ) - + + 87 / + 56 THEN + + 36 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7810
SELECT DISTINCT ( - CASE + 11 WHEN + 6 THEN NULL WHEN + + 68 THEN NULL WHEN 3 * - + NULLIF ( - - NULLIF ( 96, 17 * - - 60 / - 92 ), - - 38 ) + - + MAX ( DISTINCT - - 83 ) - + + 87 / + 56 THEN + + 36 END )
----
NULL

query I rowsort
SELECT DISTINCT 70 + - - 17 - ( - + 85 ) * + 68 AS col2
----
5867

onlyif mysql # aggregate syntax: 
query I rowsort label-7812
SELECT ALL + 39 + + COUNT( * ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-7812
SELECT ALL + 39 + + COUNT ( * ) AS col2
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7813
SELECT + CASE + 84 WHEN + - COUNT( * ) + 47 / + - CASE + 87 WHEN 94 * - COALESCE ( + + 9, - 1 / - 83 - - ( + - 66 ) + - CAST( NULL AS SIGNED ) ) THEN - 68 WHEN - + 60 * 52 + 98 + 50 THEN + 12 WHEN 75 / 83 THEN - 38 END THEN ( 99 ) * + 3 WHEN 24 / 54 + 5 THEN + 30 + + 51 * - ( + MAX( DISTINCT 38 ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7813
SELECT + CASE + 84 WHEN + - COUNT ( * ) + 47 / + - CASE + 87 WHEN 94 * - COALESCE ( + + 9, - 1 / - 83 - - ( + - 66 ) + - CAST ( NULL AS INTEGER ) ) THEN - 68 WHEN - + 60 * 52 + 98 + 50 THEN + 12 WHEN 75 / 83 THEN - 38 END THEN ( 99 ) * + 3 WHEN 24 / 54 + 5 THEN + 30 + + 51 * - ( + MAX ( DISTINCT 38 ) ) END AS col0
----
NULL

query I rowsort
SELECT 41 * - 90 + + - 69 AS col2
----
-3759

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7815
SELECT DISTINCT - CAST( NULL AS SIGNED ) / AVG ( + 23 ) * - - 66 + - ( - COUNT( * ) ) + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7815
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / AVG ( + 23 ) * - - 66 + - ( - COUNT ( * ) ) + + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT - 71 * + - 18 * + 5 AS col0
----
6390

query I rowsort
SELECT ALL - 48 * 4
----
-192

query I rowsort
SELECT DISTINCT - ( - 20 )
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7819
SELECT ALL - 39 * - 12 DIV - - NULLIF ( COUNT( * ), - 84 * + 60 * - + 87 * 29 - - - 52 * + - 82 * + 2 ) AS col1
----
468

skipif mysql # not compatible
query I rowsort label-7819
SELECT ALL - 39 * - 12 / - - NULLIF ( COUNT ( * ), - 84 * + 60 * - + 87 * 29 - - - 52 * + - 82 * + 2 ) AS col1
----
468

query I rowsort
SELECT 31 * + COALESCE ( 73, + + 22 )
----
2263

query I rowsort
SELECT ALL + 76 - 50 * 9 AS col0
----
-374

query II rowsort
SELECT 41 * + 49 * 27 AS col0, 56
----
54243
56

query I rowsort
SELECT DISTINCT + 67 * + 9
----
603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7824
SELECT - 82 * - 26 + - + COUNT( * ) AS col2, 97 * - 1 * - + 14 - - CAST( NULL AS SIGNED ) + + MAX( - 22 ) * - - 68 * 66 col2
----
2131
NULL

skipif mysql # not compatible
query II rowsort label-7824
SELECT - 82 * - 26 + - + COUNT ( * ) AS col2, 97 * - 1 * - + 14 - - CAST ( NULL AS INTEGER ) + + MAX ( - 22 ) * - - 68 * 66 col2
----
2131
NULL

query II rowsort
SELECT 38 AS col0, - 94 AS col0
----
38
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7826
SELECT ALL + ( + 10 ) - 83 + - SUM( - 27 ) DIV + 29 * SUM( DISTINCT 17 ) * - 13 * - 36 + + COUNT( ALL + 85 ) DIV - 12 * 44 col0
----
-73

skipif mysql # not compatible
query I rowsort label-7826
SELECT ALL + ( + 10 ) - 83 + - SUM ( - 27 ) / + 29 * SUM ( DISTINCT 17 ) * - 13 * - 36 + + COUNT ( ALL + 85 ) / - 12 * 44 col0
----
-73

query I rowsort
SELECT 31 * - 79 * - 11
----
26939

onlyif mysql # aggregate syntax: 
query I rowsort label-7828
SELECT SUM( + + 49 ) * - - COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-7828
SELECT SUM ( + + 49 ) * - - COUNT ( * )
----
49

query I rowsort
SELECT ALL - COALESCE ( + - 48, 92 - - 33, + 69 ) AS col2
----
48

query I rowsort
SELECT 50 + 27 AS col1
----
77

query I rowsort
SELECT ALL - 77 * ( - 78 ) AS col0
----
6006

query II rowsort
SELECT 59 + 85 + + + 66 col2, 6 + + 56
----
210
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7833
SELECT ALL COUNT( + 94 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7833
SELECT ALL COUNT ( + 94 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7834
SELECT 38 AS col1, - COUNT( * ) * - 80
----
38
80

skipif mysql # not compatible
query II rowsort label-7834
SELECT 38 AS col1, - COUNT ( * ) * - 80
----
38
80

query I rowsort
SELECT ALL 90 * 91 AS col1
----
8190

onlyif mysql # aggregate syntax: 
query I rowsort label-7836
SELECT ALL 8 + - + COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-7836
SELECT ALL 8 + - + COUNT ( * )
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-7837
SELECT 49 + + + 91 * + 7 + + MAX( - 52 ), - 31 AS col0
----
634
-31

skipif mysql # not compatible
query II rowsort label-7837
SELECT 49 + + + 91 * + 7 + + MAX ( - 52 ), - 31 AS col0
----
634
-31

query I rowsort
SELECT DISTINCT + 45 + 72 AS col2
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-7839
SELECT ALL - + COUNT( * ) * + 0 col0
----
0

skipif mysql # not compatible
query I rowsort label-7839
SELECT ALL - + COUNT ( * ) * + 0 col0
----
0

query I rowsort
SELECT DISTINCT + 28 + - 30
----
-2

query I rowsort
SELECT ALL 56 + - 37 AS col2
----
19

query I rowsort
SELECT DISTINCT CASE - - 62 WHEN - 91 - - 33 + + ( + 6 ) * 72 * 74 THEN 27 END + - 52 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7843
SELECT - 31 + + CAST( + 81 AS SIGNED ) col1
----
50

skipif mysql # not compatible
query I rowsort label-7843
SELECT - 31 + + CAST ( + 81 AS INTEGER ) col1
----
50

query I rowsort
SELECT ALL - + 39 * + 35
----
-1365

onlyif mysql # DIV for integer division: 
query I rowsort label-7845
SELECT + + 15 DIV - 85
----
0

skipif mysql # not compatible
query I rowsort label-7845
SELECT + + 15 / - 85
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7846
SELECT DISTINCT - COUNT( * ) + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7846
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT DISTINCT - 93 * + 63 + - 81 + - COUNT( * ) + + COUNT( + 1 ) * + 11 col0
----
-5930

skipif mysql # not compatible
query I rowsort label-7847
SELECT DISTINCT - 93 * + 63 + - 81 + - COUNT ( * ) + + COUNT ( + 1 ) * + 11 col0
----
-5930

onlyif mysql # DIV for integer division: 
query I rowsort label-7848
SELECT ALL + 71 DIV + - 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7848
SELECT ALL + 71 / + - 85 AS col1
----
0

query I rowsort
SELECT ALL 6 + - - 62 AS col1
----
68

query I rowsort
SELECT + 76 - 33
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7851
SELECT DISTINCT 45 + + - CAST( - - 25 AS SIGNED ) + - - NULLIF ( - 4, + 56 * + 50 ) * - 93 * 75 + - 96
----
27824

skipif mysql # not compatible
query I rowsort label-7851
SELECT DISTINCT 45 + + - CAST ( - - 25 AS INTEGER ) + - - NULLIF ( - 4, + 56 * + 50 ) * - 93 * 75 + - 96
----
27824

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7852
SELECT - ( 68 ) + + 39 * - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) / 45 * - + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-7852
SELECT - ( 68 ) + + 39 * - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) / 45 * - + 47
----
NULL

query I rowsort
SELECT + 89 * - 36
----
-3204

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7854
SELECT ALL ( + CAST( 75 AS SIGNED ) ) - + 71 * - 26
----
1921

skipif mysql # not compatible
query I rowsort label-7854
SELECT ALL ( + CAST ( 75 AS INTEGER ) ) - + 71 * - 26
----
1921

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7855
SELECT + + 88 + - - CAST( + 18 AS SIGNED ) + - 42
----
64

skipif mysql # not compatible
query I rowsort label-7855
SELECT + + 88 + - - CAST ( + 18 AS INTEGER ) + - 42
----
64

query I rowsort
SELECT DISTINCT - ( + - 98 ) AS col2
----
98

query I rowsort
SELECT ALL - 44 * - + 77 - + + 82 AS col1
----
3306

query I rowsort
SELECT ALL - 79 * + + 90 * - + 96 - 26 AS col0
----
682534

query I rowsort
SELECT + 92 + + 23
----
115

onlyif mysql # aggregate syntax: 
query II rowsort label-7860
SELECT ALL 98 * + - 79, 98 * - 95 * - COALESCE ( - 97, - COUNT( * ) + + + 44 ) AS col2
----
-7742
-903070

skipif mysql # not compatible
query II rowsort label-7860
SELECT ALL 98 * + - 79, 98 * - 95 * - COALESCE ( - 97, - COUNT ( * ) + + + 44 ) AS col2
----
-7742
-903070

query I rowsort
SELECT + 10 * 50 AS col0
----
500

query II rowsort
SELECT ALL + 80 AS col1, + 4 AS col1
----
80
4

query I rowsort
SELECT ALL + COALESCE ( + - 33, 11, - - 92 )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT - MIN( + 46 ) + + 38
----
-8

skipif mysql # not compatible
query I rowsort label-7864
SELECT - MIN ( + 46 ) + + 38
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7865
SELECT + 56 * + CAST( NULL AS SIGNED ) * + 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7865
SELECT + 56 * + CAST ( NULL AS INTEGER ) * + 68 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7866
SELECT + 74 DIV + 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7866
SELECT + 74 / + 98 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7867
SELECT - ( + COUNT( * ) ) + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7867
SELECT - ( + COUNT ( * ) ) + COUNT ( * ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7868
SELECT ALL - 18 DIV - 10, - 15 AS col0
----
1
-15

skipif mysql # not compatible
query II rowsort label-7868
SELECT ALL - 18 / - 10, - 15 AS col0
----
1
-15

query I rowsort
SELECT DISTINCT + ( - 61 ) AS col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-7870
SELECT DISTINCT + COUNT( ALL + ( - 6 ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-7870
SELECT DISTINCT + COUNT ( ALL + ( - 6 ) ) col0
----
1

query I rowsort
SELECT DISTINCT + 0 * ( + 5 ) col2
----
0

query I rowsort
SELECT - 20 * ( + 46 )
----
-920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7873
SELECT ALL 15 * - + COUNT( * ) + + SUM( ALL - 19 ) * - CAST( - COUNT( * ) AS SIGNED ) + - 93
----
-127

skipif mysql # not compatible
query I rowsort label-7873
SELECT ALL 15 * - + COUNT ( * ) + + SUM ( ALL - 19 ) * - CAST ( - COUNT ( * ) AS INTEGER ) + - 93
----
-127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7874
SELECT ALL 84 * - 64 DIV 16 + + 16 * + + COALESCE ( + CAST( 83 AS SIGNED ), + 52 + - 73 * - + NULLIF ( - 21, - 22 ) * + 83 ) * 84 * COUNT( * ) AS col0
----
111216

skipif mysql # not compatible
query I rowsort label-7874
SELECT ALL 84 * - 64 / 16 + + 16 * + + COALESCE ( + CAST ( 83 AS INTEGER ), + 52 + - 73 * - + NULLIF ( - 21, - 22 ) * + 83 ) * 84 * COUNT ( * ) AS col0
----
111216

query I rowsort
SELECT DISTINCT - 27 * - 66 col1
----
1782

onlyif mysql # aggregate syntax: 
query I rowsort label-7876
SELECT ALL 33 * + COUNT( DISTINCT - 55 ) * - 19 + + + 44 + - 42
----
-625

skipif mysql # not compatible
query I rowsort label-7876
SELECT ALL 33 * + COUNT ( DISTINCT - 55 ) * - 19 + + + 44 + - 42
----
-625

query II rowsort
SELECT + ( 56 ) AS col0, + 23 * - 6
----
56
-138

query I rowsort
SELECT + 84 * + 96 * - 31 AS col2
----
-249984

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7879
SELECT - 90 * + - CAST( NULL AS SIGNED ) * - 11 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7879
SELECT - 90 * + - CAST ( NULL AS INTEGER ) * - 11 col1
----
NULL

query II rowsort
SELECT DISTINCT - 28 * 92 col1, - 38
----
-2576
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7881
SELECT - COUNT( ALL - 67 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7881
SELECT - COUNT ( ALL - 67 ) AS col1
----
-1

query I rowsort
SELECT - - 19 + + 54 * - - 7 AS col1
----
397

query I rowsort
SELECT ALL ( + 70 ) AS col0
----
70

query II rowsort
SELECT - 3 AS col2, - 82
----
-3
-82

query I rowsort
SELECT ALL + 5 + - + 76 AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7886
SELECT DISTINCT - + 37 + COALESCE ( - 26, - COUNT( * ), - 6 * - SUM( ALL 71 ) ) * + - 44
----
1107

skipif mysql # not compatible
query I rowsort label-7886
SELECT DISTINCT - + 37 + COALESCE ( - 26, - COUNT ( * ), - 6 * - SUM ( ALL 71 ) ) * + - 44
----
1107

onlyif mysql # aggregate syntax: 
query II rowsort label-7887
SELECT ALL 65 AS col0, SUM( DISTINCT + 90 )
----
65
90

skipif mysql # not compatible
query II rowsort label-7887
SELECT ALL 65 AS col0, SUM ( DISTINCT + 90 )
----
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7888
SELECT + + COUNT( * ) + - 66 AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-7888
SELECT + + COUNT ( * ) + - 66 AS col1
----
-65

query I rowsort
SELECT ALL - ( 11 )
----
-11

query I rowsort
SELECT - - 59 * 13
----
767

query I rowsort
SELECT + - 53 * 32 AS col2
----
-1696

query III rowsort
SELECT ALL - 48 * ( - CASE 49 WHEN - - 38 THEN NULL ELSE + + 37 END ) AS col2, 54 AS col0, 24
----
1776
54
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7893
SELECT DISTINCT + SUM( ALL + 47 ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-7893
SELECT DISTINCT + SUM ( ALL + 47 ) AS col2
----
47

query I rowsort
SELECT ALL 93 - - - 43 * - + 95
----
4178

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT ALL - COALESCE ( + 31, - - SUM( - - 99 ) ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-7895
SELECT ALL - COALESCE ( + 31, - - SUM ( - - 99 ) ) AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7896
SELECT ALL + - COUNT( * ) * + 77 - - CASE CASE - + 26 WHEN - 86 / + COUNT( * ) THEN - - 18 * + + 69 WHEN - 14 THEN NULL END WHEN 52 THEN 11 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7896
SELECT ALL + - COUNT ( * ) * + 77 - - CASE CASE - + 26 WHEN - 86 / + COUNT ( * ) THEN - - 18 * + + 69 WHEN - 14 THEN NULL END WHEN 52 THEN 11 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7897
SELECT DISTINCT - - 57 * - NULLIF ( + 20, COUNT( * ) + + 53 / - - 41 ) * 86
----
-98040

skipif mysql # not compatible
query I rowsort label-7897
SELECT DISTINCT - - 57 * - NULLIF ( + 20, COUNT ( * ) + + 53 / - - 41 ) * 86
----
-98040

onlyif mysql # DIV for integer division: 
query I rowsort label-7898
SELECT DISTINCT 22 DIV + 69 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7898
SELECT DISTINCT 22 / + 69 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7899
SELECT ALL ( - 60 ) DIV - 94 - - 57 col1
----
57

skipif mysql # not compatible
query I rowsort label-7899
SELECT ALL ( - 60 ) / - 94 - - 57 col1
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-7900
SELECT + MAX( DISTINCT NULLIF ( - - 72, - + CASE - + 62 WHEN + 83 * - ( + 78 ) + - 14 THEN - 94 END ) ) col1, + 31 + - 85 AS col1
----
72
-54

skipif mysql # not compatible
query II rowsort label-7900
SELECT + MAX ( DISTINCT NULLIF ( - - 72, - + CASE - + 62 WHEN + 83 * - ( + 78 ) + - 14 THEN - 94 END ) ) col1, + 31 + - 85 AS col1
----
72
-54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7901
SELECT CAST( + - 24 AS SIGNED ), + 54 + + 90 AS col1
----
-24
144

skipif mysql # not compatible
query II rowsort label-7901
SELECT CAST ( + - 24 AS INTEGER ), + 54 + + 90 AS col1
----
-24
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7902
SELECT 13 DIV + COALESCE ( + MIN( DISTINCT + + 62 ), - CASE COUNT( ALL CAST( NULL AS SIGNED ) ) WHEN - 31 THEN + 25 * + 5 END ) - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-7902
SELECT 13 / + COALESCE ( + MIN ( DISTINCT + + 62 ), - CASE COUNT ( ALL CAST ( NULL AS INTEGER ) ) WHEN - 31 THEN + 25 * + 5 END ) - COUNT ( * )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7903
SELECT DISTINCT + 62 / - + 76 + - MIN( ALL CAST( NULL AS SIGNED ) ) + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-7903
SELECT DISTINCT + 62 / - + 76 + - MIN ( ALL CAST ( NULL AS INTEGER ) ) + 70
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7904
SELECT CAST( 6 AS SIGNED )
----
6

skipif mysql # not compatible
query I rowsort label-7904
SELECT CAST ( 6 AS INTEGER )
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-7905
SELECT DISTINCT 42 DIV - 93 + - 4 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-7905
SELECT DISTINCT 42 / - 93 + - 4 AS col1
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7906
SELECT DISTINCT 55 DIV 66 + - - COALESCE ( + + 43, + 72 + + - SUM( + 56 ) * - COUNT( * ) - + + 7 ) DIV + ( - + 37 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7906
SELECT DISTINCT 55 / 66 + - - COALESCE ( + + 43, + 72 + + - SUM ( + 56 ) * - COUNT ( * ) - + + 7 ) / + ( - + 37 ) AS col2
----
-1

query I rowsort
SELECT + 67 + - 97
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7908
SELECT + COUNT( * ) * 77 - 45 + - - 92 + - 58 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-7908
SELECT + COUNT ( * ) * 77 - 45 + - - 92 + - 58 AS col0
----
66

query II rowsort
SELECT ( - 37 ) AS col2, - 0
----
-37
0

query I rowsort
SELECT 23 * 50 * 46 + - 23
----
52877

onlyif mysql # DIV for integer division: 
query II rowsort label-7911
SELECT ( - 62 ) col1, ( + 11 ) + COALESCE ( - 62, NULLIF ( ( + - 23 ), - 68 ), COALESCE ( - + 86, - 11, + 96 * 71 DIV - 79 * 40 * - - 0 ) ) AS col1
----
-62
-51

skipif mysql # not compatible
query II rowsort label-7911
SELECT ( - 62 ) col1, ( + 11 ) + COALESCE ( - 62, NULLIF ( ( + - 23 ), - 68 ), COALESCE ( - + 86, - 11, + 96 * 71 / - 79 * 40 * - - 0 ) ) AS col1
----
-62
-51

query I rowsort
SELECT ( + 22 ) AS col2
----
22

query I rowsort
SELECT ( + 52 ) AS col2
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7914
SELECT + COALESCE ( + + 38, + 61 ) * - COUNT( + CAST( NULL AS SIGNED ) ) - - ( + 45 ) - - + 59 + + 8
----
112

skipif mysql # not compatible
query I rowsort label-7914
SELECT + COALESCE ( + + 38, + 61 ) * - COUNT ( + CAST ( NULL AS INTEGER ) ) - - ( + 45 ) - - + 59 + + 8
----
112

query II rowsort
SELECT DISTINCT 78 + + - ( - NULLIF ( + 98, 74 ) ) AS col1, + 36 AS col2
----
176
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7916
SELECT ALL + 4 * + - COUNT( * ) - + 39 AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-7916
SELECT ALL + 4 * + - COUNT ( * ) - + 39 AS col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-7917
SELECT DISTINCT + - COALESCE ( 43, ( + + 69 ), - 28 - - 24, - 10 ) * MIN( ALL - ( - 89 ) ) AS col2
----
-3827

skipif mysql # not compatible
query I rowsort label-7917
SELECT DISTINCT + - COALESCE ( 43, ( + + 69 ), - 28 - - 24, - 10 ) * MIN ( ALL - ( - 89 ) ) AS col2
----
-3827

onlyif mysql # DIV for integer division: 
query I rowsort label-7918
SELECT 96 DIV + + 38 + - 0 * + + 9 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7918
SELECT 96 / + + 38 + - 0 * + + 9 AS col1
----
2

query I rowsort
SELECT ALL + + 72 * 39
----
2808

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7920
SELECT - + CAST( - + COUNT( * ) AS SIGNED ), ( - - COUNT( * ) ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-7920
SELECT - + CAST ( - + COUNT ( * ) AS INTEGER ), ( - - COUNT ( * ) ) AS col1
----
1
1

query I rowsort
SELECT - ( + - 50 ) AS col1
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7922
SELECT - 24 + - 21 * - ( - CAST( NULL AS SIGNED ) ) - + - 98 AS col0, 36 AS col2
----
NULL
36

skipif mysql # not compatible
query II rowsort label-7922
SELECT - 24 + - 21 * - ( - CAST ( NULL AS INTEGER ) ) - + - 98 AS col0, 36 AS col2
----
NULL
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT 65 * + 9 * COUNT( * ) col1
----
585

skipif mysql # not compatible
query I rowsort label-7923
SELECT 65 * + 9 * COUNT ( * ) col1
----
585

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT NULLIF ( + ( + COUNT( * ) ), - + 58 )
----
1

skipif mysql # not compatible
query I rowsort label-7924
SELECT NULLIF ( + ( + COUNT ( * ) ), - + 58 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7925
SELECT SUM( 35 ) - - - 0
----
35

skipif mysql # not compatible
query I rowsort label-7925
SELECT SUM ( 35 ) - - - 0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7926
SELECT - ( COUNT( * ) ) * - 68
----
68

skipif mysql # not compatible
query I rowsort label-7926
SELECT - ( COUNT ( * ) ) * - 68
----
68

query I rowsort
SELECT + 74 - + 17
----
57

query I rowsort
SELECT 25 + - 60
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7929
SELECT MAX( DISTINCT + 82 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7929
SELECT MAX ( DISTINCT + 82 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT ALL + 17 + + - COALESCE ( - COUNT( * ), - 67, - 0 ) - + 1 * - - ( 23 ) + 40 - - - COUNT( * ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-7930
SELECT ALL + 17 + + - COALESCE ( - COUNT ( * ), - 67, - 0 ) - + 1 * - - ( 23 ) + 40 - - - COUNT ( * ) AS col1
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-7931
SELECT 40 + - + 63 + - - 41 * 54 * + 12 * 51, - COUNT( - - 0 ) AS col2
----
1354945
-1

skipif mysql # not compatible
query II rowsort label-7931
SELECT 40 + - + 63 + - - 41 * 54 * + 12 * 51, - COUNT ( - - 0 ) AS col2
----
1354945
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7932
SELECT 18 * + 58 * + NULLIF ( - + 87, + + CAST( 96 AS SIGNED ) ) + + 25
----
-90803

skipif mysql # not compatible
query I rowsort label-7932
SELECT 18 * + 58 * + NULLIF ( - + 87, + + CAST ( 96 AS INTEGER ) ) + + 25
----
-90803

onlyif mysql # aggregate syntax: 
query II rowsort label-7933
SELECT ALL + 18 + - MAX( DISTINCT + 39 ) AS col2, + MAX( - 27 )
----
-21
-27

skipif mysql # not compatible
query II rowsort label-7933
SELECT ALL + 18 + - MAX ( DISTINCT + 39 ) AS col2, + MAX ( - 27 )
----
-21
-27

query I rowsort
SELECT ALL - 54 + + 68 AS col2
----
14

query I rowsort
SELECT ALL 91 + - - 29
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-7936
SELECT 49 DIV + - 9
----
-5

skipif mysql # not compatible
query I rowsort label-7936
SELECT 49 / + - 9
----
-5

query II rowsort
SELECT ALL - 20 col2, 23 * + 0
----
-20
0

query I rowsort
SELECT 59 * 19 AS col1
----
1121

onlyif mysql # aggregate syntax: 
query I rowsort label-7939
SELECT 4 + + + COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-7939
SELECT 4 + + + COUNT ( * )
----
5

query II rowsort
SELECT + 11, - 7 AS col0
----
11
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT ALL - NULLIF ( CASE + - AVG ( 97 ) WHEN + - 52 THEN - - 86 END, + 30 + - CASE - 23 WHEN COUNT( + 31 ) THEN NULL ELSE - 17 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7941
SELECT ALL - NULLIF ( CASE + - AVG ( 97 ) WHEN + - 52 THEN - - 86 END, + 30 + - CASE - 23 WHEN COUNT ( + 31 ) THEN NULL ELSE - 17 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7942
SELECT ALL COUNT( * ) * - 58
----
-58

skipif mysql # not compatible
query I rowsort label-7942
SELECT ALL COUNT ( * ) * - 58
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7943
SELECT + 68 AS col1, + CAST( NULL AS SIGNED )
----
68
NULL

skipif mysql # not compatible
query II rowsort label-7943
SELECT + 68 AS col1, + CAST ( NULL AS INTEGER )
----
68
NULL

query I rowsort
SELECT DISTINCT - ( + 54 )
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7945
SELECT ALL 67 - - - 70 - - 56 + 60 + + 4 + - 56 * + CAST( NULL AS DECIMAL ) - 71 + + - NULLIF ( - COUNT( * ), 76 * - CASE + - 78 WHEN - - CAST( NULL AS SIGNED ) THEN - 9 END ) * ( + 54 ) * + 62 + - 41 + - - 22 / + 57 * - - 8 * COUNT( * ) / ( COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7945
SELECT ALL 67 - - - 70 - - 56 + 60 + + 4 + - 56 * + CAST ( NULL AS REAL ) - 71 + + - NULLIF ( - COUNT ( * ), 76 * - CASE + - 78 WHEN - - CAST ( NULL AS INTEGER ) THEN - 9 END ) * ( + 54 ) * + 62 + - 41 + - - 22 / + 57 * - - 8 * COUNT ( * ) / ( COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7946
SELECT ALL SUM( 8 ) * + + CAST( - 82 AS SIGNED ) AS col2
----
-656

skipif mysql # not compatible
query I rowsort label-7946
SELECT ALL SUM ( 8 ) * + + CAST ( - 82 AS INTEGER ) AS col2
----
-656

query I rowsort
SELECT ALL 50 - + ( - 9 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7948
SELECT MAX( ALL - 43 ) * 27 AS col0
----
-1161

skipif mysql # not compatible
query I rowsort label-7948
SELECT MAX ( ALL - 43 ) * 27 AS col0
----
-1161

onlyif mysql # aggregate syntax: 
query I rowsort label-7949
SELECT + MIN( ALL + + 10 )
----
10

skipif mysql # not compatible
query I rowsort label-7949
SELECT + MIN ( ALL + + 10 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT + + SUM( ALL - 85 )
----
-85

skipif mysql # not compatible
query I rowsort label-7950
SELECT + + SUM ( ALL - 85 )
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7951
SELECT 39 + 14 + - + COUNT( * ) + - 65 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7951
SELECT 39 + 14 + - + COUNT ( * ) + - 65 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7952
SELECT DISTINCT - 59, CAST( NULL AS SIGNED ) AS col2
----
-59
NULL

skipif mysql # not compatible
query II rowsort label-7952
SELECT DISTINCT - 59, CAST ( NULL AS INTEGER ) AS col2
----
-59
NULL

query I rowsort
SELECT DISTINCT + ( - 76 ) AS col1
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7954
SELECT ALL + 31 DIV - 40 * 50 + + MAX( DISTINCT + 26 ) + - - COUNT( * ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-7954
SELECT ALL + 31 / - 40 * 50 + + MAX ( DISTINCT + 26 ) + - - COUNT ( * ) AS col1
----
27

query II rowsort
SELECT - 22 * 88 * + 29, - 94 - - NULLIF ( - NULLIF ( - 12, + 43 ), - 3 ) AS col0
----
-56144
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7956
SELECT ALL + 23 AS col1, 72 - + + COALESCE ( - ( - COUNT( * ) ), - + 13 DIV - 30 * + COUNT( * ) ) * + 58 * - 31
----
23
1870

skipif mysql # not compatible
query II rowsort label-7956
SELECT ALL + 23 AS col1, 72 - + + COALESCE ( - ( - COUNT ( * ) ), - + 13 / - 30 * + COUNT ( * ) ) * + 58 * - 31
----
23
1870

onlyif mysql # aggregate syntax: 
query II rowsort label-7957
SELECT DISTINCT - + ( + ( 9 ) ) * - ( - - MAX( ALL + 27 ) ), + 22 + + - COUNT( * ) AS col1
----
243
21

skipif mysql # not compatible
query II rowsort label-7957
SELECT DISTINCT - + ( + ( 9 ) ) * - ( - - MAX ( ALL + 27 ) ), + 22 + + - COUNT ( * ) AS col1
----
243
21

query I rowsort
SELECT ALL - 82 * + - 0 * - + ( 38 ) * - 44 * - + 85 AS col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7959
SELECT + 49 / + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7959
SELECT + 49 / + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7960
SELECT ALL - 71 DIV + - CAST( + 64 AS SIGNED ), 10 + + 49 AS col0
----
1
59

skipif mysql # not compatible
query II rowsort label-7960
SELECT ALL - 71 / + - CAST ( + 64 AS INTEGER ), 10 + + 49 AS col0
----
1
59

query I rowsort
SELECT + 88 * - - 7 AS col1
----
616

query II rowsort
SELECT - 72 + + 20 * - 63 AS col1, + 97 AS col2
----
-1332
97

query I rowsort
SELECT ALL - 85 + ( 3 )
----
-82

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7964
SELECT DISTINCT + 31 + + 30 + - CASE - 70 WHEN + CAST( + COUNT( * ) AS DECIMAL ) THEN + 79 END * 94 + + 33 + - COUNT( * ) / + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-7964
SELECT DISTINCT + 31 + + 30 + - CASE - 70 WHEN + CAST ( + COUNT ( * ) AS REAL ) THEN + 79 END * 94 + + 33 + - COUNT ( * ) / + 51
----
NULL

query I rowsort
SELECT DISTINCT 74 + + 94 AS col2
----
168

onlyif mysql # aggregate syntax: 
query II rowsort label-7966
SELECT DISTINCT MAX( - 53 ) AS col0, + 84 + - + 6 col2
----
-53
78

skipif mysql # not compatible
query II rowsort label-7966
SELECT DISTINCT MAX ( - 53 ) AS col0, + 84 + - + 6 col2
----
-53
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7967
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) * + COUNT( - - 53 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7967
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) * + COUNT ( - - 53 ) AS col0
----
1

query I rowsort
SELECT DISTINCT - 41 + - - 75 AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7969
SELECT ALL + SUM( DISTINCT - - 20 ) + + - 36
----
-16

skipif mysql # not compatible
query I rowsort label-7969
SELECT ALL + SUM ( DISTINCT - - 20 ) + + - 36
----
-16

query I rowsort
SELECT 75 * + + 51 AS col2
----
3825

onlyif mysql # aggregate syntax: 
query I rowsort label-7971
SELECT DISTINCT COUNT( * ) * + 6 + + 79 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-7971
SELECT DISTINCT COUNT ( * ) * + 6 + + 79 AS col0
----
85

query I rowsort
SELECT ALL 21 * 58 + - + 9
----
1209

query I rowsort
SELECT DISTINCT + NULLIF ( 64, - 21 )
----
64

query I rowsort
SELECT - 14 - - - CASE - + 3 WHEN - + 55 THEN - 3 + 41 ELSE 34 - 81 END
----
33

query I rowsort
SELECT ALL - 51 * - - 63 AS col0
----
-3213

onlyif mysql # aggregate syntax: 
query II rowsort label-7976
SELECT ALL 58 * + 59 * - 46 * - + 7 - + COALESCE ( - 9, - 14 * + COUNT( * ), 87 ), + MIN( - 79 ) AS col1
----
1101893
-79

skipif mysql # not compatible
query II rowsort label-7976
SELECT ALL 58 * + 59 * - 46 * - + 7 - + COALESCE ( - 9, - 14 * + COUNT ( * ), 87 ), + MIN ( - 79 ) AS col1
----
1101893
-79

query I rowsort
SELECT DISTINCT - 69 * ( + 98 ) AS col0
----
-6762

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7978
SELECT ALL + CAST( + 62 AS SIGNED ) * - 34 - + 21 AS col1
----
-2129

skipif mysql # not compatible
query I rowsort label-7978
SELECT ALL + CAST ( + 62 AS INTEGER ) * - 34 - + 21 AS col1
----
-2129

onlyif mysql # aggregate syntax: 
query I rowsort label-7979
SELECT - 43 * + COUNT( ALL + 62 ) * + 34 - 75 + + 10 + + 81 AS col1
----
-1446

skipif mysql # not compatible
query I rowsort label-7979
SELECT - 43 * + COUNT ( ALL + 62 ) * + 34 - 75 + + 10 + + 81 AS col1
----
-1446

onlyif mysql # aggregate syntax: 
query I rowsort label-7980
SELECT - + 12 + - 25 + + + ( - - COUNT( * ) )
----
-36

skipif mysql # not compatible
query I rowsort label-7980
SELECT - + 12 + - 25 + + + ( - - COUNT ( * ) )
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-7981
SELECT - - 85 DIV 94 - - 98 * 38 DIV + 35 + + 85
----
191

skipif mysql # not compatible
query I rowsort label-7981
SELECT - - 85 / 94 - - 98 * 38 / + 35 + + 85
----
191

query I rowsort
SELECT + 93 col2
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-7983
SELECT NULLIF ( + 2, 22 ) * 60 * 42 DIV + 36 + + 37 col1
----
177

skipif mysql # not compatible
query I rowsort label-7983
SELECT NULLIF ( + 2, 22 ) * 60 * 42 / + 36 + + 37 col1
----
177

onlyif mysql # DIV for integer division: 
query I rowsort label-7984
SELECT ALL - 27 DIV - 2 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-7984
SELECT ALL - 27 / - 2 AS col2
----
13

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7985
SELECT - 70 / 12 * + - 14 / + 8 * - 59 + + - 71 * - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7985
SELECT - 70 / 12 * + - 14 / + 8 * - 59 + + - 71 * - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT - + 56 * - 18 + ( 56 )
----
1064

query I rowsort
SELECT + 53 * - 24
----
-1272

onlyif mysql # aggregate syntax: 
query I rowsort label-7988
SELECT + 97 + CASE + + 25 WHEN ( 21 ) THEN - + 13 - 66 WHEN 23 THEN + 58 * + - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7988
SELECT + 97 + CASE + + 25 WHEN ( 21 ) THEN - + 13 - 66 WHEN 23 THEN + 58 * + - COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7989
SELECT ALL + + ( + + 76 ) AS col2, - MIN( DISTINCT + + 35 ) col0
----
76
-35

skipif mysql # not compatible
query II rowsort label-7989
SELECT ALL + + ( + + 76 ) AS col2, - MIN ( DISTINCT + + 35 ) col0
----
76
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT + - 80 * - COUNT( * ) + - - 71 + COUNT( * ) + 69 AS col0
----
221

skipif mysql # not compatible
query I rowsort label-7990
SELECT + - 80 * - COUNT ( * ) + - - 71 + COUNT ( * ) + 69 AS col0
----
221

onlyif mysql # aggregate syntax: 
query I rowsort label-7991
SELECT ALL + CASE + - 22 WHEN + + 39 THEN + 42 + 69 / ( - 53 ) WHEN + 81 * - MAX( - 99 ) THEN NULL ELSE 7 END
----
7

skipif mysql # not compatible
query I rowsort label-7991
SELECT ALL + CASE + - 22 WHEN + + 39 THEN + 42 + 69 / ( - 53 ) WHEN + 81 * - MAX ( - 99 ) THEN NULL ELSE 7 END
----
7

query I rowsort
SELECT - - ( + 8 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7993
SELECT + 56 * COUNT( * ) * + + 37 AS col0
----
2072

skipif mysql # not compatible
query I rowsort label-7993
SELECT + 56 * COUNT ( * ) * + + 37 AS col0
----
2072

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT ALL COUNT( * ) + - 55
----
-54

skipif mysql # not compatible
query I rowsort label-7994
SELECT ALL COUNT ( * ) + - 55
----
-54

query I rowsort
SELECT + - 28 - + 6 col2
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-7996
SELECT ALL 22 + + - 29 * - + 34, - MAX( DISTINCT 25 ) * 79 + - 83 + + + 79 - 65 + + 1 * 43 col2
----
1008
-2001

skipif mysql # not compatible
query II rowsort label-7996
SELECT ALL 22 + + - 29 * - + 34, - MAX ( DISTINCT 25 ) * 79 + - 83 + + + 79 - 65 + + 1 * 43 col2
----
1008
-2001

query I rowsort
SELECT + 28 + 86 * - 1 AS col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7998
SELECT ALL MAX( ALL + 78 )
----
78

skipif mysql # not compatible
query I rowsort label-7998
SELECT ALL MAX ( ALL + 78 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7999
SELECT ALL + 18 + - CASE - 39 WHEN 44 THEN + 19 * + + 14 END * 49 - + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7999
SELECT ALL + 18 + - CASE - 39 WHEN 44 THEN + 19 * + + 14 END * 49 - + - COUNT ( * )
----
NULL

query I rowsort
SELECT + 97 - + 54
----
43

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8001
SELECT + CASE 26 WHEN + COALESCE ( + + CAST( NULL AS DECIMAL ), 79 ) THEN NULL WHEN + CASE + CASE - + 38 WHEN - 8 THEN - 57 END WHEN 71 THEN - - 47 + - + 59 - + 11 END THEN + 0 END + + 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8001
SELECT + CASE 26 WHEN + COALESCE ( + + CAST ( NULL AS REAL ), 79 ) THEN NULL WHEN + CASE + CASE - + 38 WHEN - 8 THEN - 57 END WHEN 71 THEN - - 47 + - + 59 - + 11 END THEN + 0 END + + 89 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8002
SELECT - CAST( 4 AS SIGNED ) - - 85 AS col0, + 33
----
81
33

skipif mysql # not compatible
query II rowsort label-8002
SELECT - CAST ( 4 AS INTEGER ) - - 85 AS col0, + 33
----
81
33

onlyif mysql # aggregate syntax: 
query II rowsort label-8003
SELECT - COUNT( * ) * 43 * + 78 AS col0, - 16 * 58
----
-3354
-928

skipif mysql # not compatible
query II rowsort label-8003
SELECT - COUNT ( * ) * 43 * + 78 AS col0, - 16 * 58
----
-3354
-928

onlyif mysql # aggregate syntax: 
query I rowsort label-8004
SELECT DISTINCT MAX( ALL - 71 )
----
-71

skipif mysql # not compatible
query I rowsort label-8004
SELECT DISTINCT MAX ( ALL - 71 )
----
-71

query I rowsort
SELECT ALL 56 - + 59
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8006
SELECT + CAST( NULL AS SIGNED ) + + 73 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8006
SELECT + CAST ( NULL AS INTEGER ) + + 73 AS col0
----
NULL

query I rowsort
SELECT - 43 * 64
----
-2752

query I rowsort
SELECT DISTINCT + 83 * - 39
----
-3237

query I rowsort
SELECT - 90 + - + 12 AS col0
----
-102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8010
SELECT ALL - NULLIF ( + NULLIF ( 30, - 66 * 78 + 15 + - 5 + + SUM( ALL 4 ) DIV + 70 ), 46 ) DIV - MIN( DISTINCT - 20 ) - - 27 col0
----
26

skipif mysql # not compatible
query I rowsort label-8010
SELECT ALL - NULLIF ( + NULLIF ( 30, - 66 * 78 + 15 + - 5 + + SUM ( ALL 4 ) / + 70 ), 46 ) / - MIN ( DISTINCT - 20 ) - - 27 col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8011
SELECT - 8 * COUNT( * ) * - 48
----
384

skipif mysql # not compatible
query I rowsort label-8011
SELECT - 8 * COUNT ( * ) * - 48
----
384

query I rowsort
SELECT - 84 + + 72 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-8013
SELECT ALL + 48, - 99 * 43 * SUM( ALL + 75 ) * - - 32 AS col2
----
48
-10216800

skipif mysql # not compatible
query II rowsort label-8013
SELECT ALL + 48, - 99 * 43 * SUM ( ALL + 75 ) * - - 32 AS col2
----
48
-10216800

query I rowsort
SELECT + 41 * - 72
----
-2952

query I rowsort
SELECT DISTINCT + COALESCE ( + 21, + 30 ) AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8016
SELECT ALL + - MIN( DISTINCT - 10 )
----
10

skipif mysql # not compatible
query I rowsort label-8016
SELECT ALL + - MIN ( DISTINCT - 10 )
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8017
SELECT - 29 + COUNT( * ) DIV + 12 + + 5
----
-24

skipif mysql # not compatible
query I rowsort label-8017
SELECT - 29 + COUNT ( * ) / + 12 + + 5
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8018
SELECT DISTINCT + - NULLIF ( - 5, + - 11 / + CAST( NULL AS SIGNED ) + 12 * - MAX( DISTINCT + 64 ) ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-8018
SELECT DISTINCT + - NULLIF ( - 5, + - 11 / + CAST ( NULL AS INTEGER ) + 12 * - MAX ( DISTINCT + 64 ) ) AS col1
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8019
SELECT DISTINCT - + 36 DIV + - 81
----
0

skipif mysql # not compatible
query I rowsort label-8019
SELECT DISTINCT - + 36 / + - 81
----
0

query I rowsort
SELECT - + 26 * + + 29 AS col0
----
-754

query II rowsort
SELECT ALL + + 34, 79 AS col1
----
34
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8022
SELECT - COUNT( * ) DIV 51 * - + 98 AS col2, ( COUNT( * ) ) - - SUM( DISTINCT 91 )
----
0
92

skipif mysql # not compatible
query II rowsort label-8022
SELECT - COUNT ( * ) / 51 * - + 98 AS col2, ( COUNT ( * ) ) - - SUM ( DISTINCT 91 )
----
0
92

query I rowsort
SELECT ( - 31 ) AS col0
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8024
SELECT + + 27 AS col2, + COUNT( * ) * + CAST( COALESCE ( - 33, - 17 ) AS SIGNED ) AS col1
----
27
-33

skipif mysql # not compatible
query II rowsort label-8024
SELECT + + 27 AS col2, + COUNT ( * ) * + CAST ( COALESCE ( - 33, - 17 ) AS INTEGER ) AS col1
----
27
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8025
SELECT + - COUNT( * ) + + + 73 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-8025
SELECT + - COUNT ( * ) + + + 73 AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8026
SELECT DISTINCT + 72 * - + NULLIF ( - - 25, - 2 ) + - MAX( + 16 ) + COUNT( * )
----
-1815

skipif mysql # not compatible
query I rowsort label-8026
SELECT DISTINCT + 72 * - + NULLIF ( - - 25, - 2 ) + - MAX ( + 16 ) + COUNT ( * )
----
-1815

onlyif mysql # aggregate syntax: 
query I rowsort label-8027
SELECT ALL NULLIF ( + CASE 92 WHEN 53 * + 32 THEN - 34 * 93 * - + 0 / + 99 * 72 + - - ( - - 36 ) + 67 * - - SUM( - - 55 ) WHEN 32 THEN NULL ELSE NULL END, - 55 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8027
SELECT ALL NULLIF ( + CASE 92 WHEN 53 * + 32 THEN - 34 * 93 * - + 0 / + 99 * 72 + - - ( - - 36 ) + 67 * - - SUM ( - - 55 ) WHEN 32 THEN NULL ELSE NULL END, - 55 ) AS col0
----
NULL

query II rowsort
SELECT - - 83 + 63 - 17, + 85 AS col1
----
129
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT DISTINCT - + COUNT( * ) * - 72 + - 24 * - - 72
----
-1656

skipif mysql # not compatible
query I rowsort label-8029
SELECT DISTINCT - + COUNT ( * ) * - 72 + - 24 * - - 72
----
-1656

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8030
SELECT DISTINCT 27 * 46 DIV 21 * + 40 + + COUNT( * )
----
2361

skipif mysql # not compatible
query I rowsort label-8030
SELECT DISTINCT 27 * 46 / 21 * + 40 + + COUNT ( * )
----
2361

onlyif mysql # aggregate syntax: 
query I rowsort label-8031
SELECT MAX( DISTINCT - ( - + 5 ) ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-8031
SELECT MAX ( DISTINCT - ( - + 5 ) ) AS col0
----
5

query I rowsort
SELECT + 74 + 38
----
112

query I rowsort
SELECT ALL 80 - + 86 * + - 30
----
2660

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8034
SELECT + CAST( - - 27 AS SIGNED ) + - 76 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-8034
SELECT + CAST ( - - 27 AS INTEGER ) + - 76 AS col1
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8035
SELECT - 87 col2, + CASE + 3 WHEN + 55 THEN NULL WHEN + + 21 THEN 21 + 34 ELSE NULL END * - MIN( - - CAST( NULL AS SIGNED ) ) * - ( + + 67 ) - + 82 + - + 1 / + 90 + COUNT( * ) * - NULLIF ( 83, + COALESCE ( - 26, - COALESCE ( - 82, - + 46 * + - 24 * - - 28 * 59 + + 27 - CAST( NULL AS SIGNED ) * + 75 ) ) + + COUNT( * ) ) - - 82 * 84
----
-87
NULL

skipif mysql # not compatible
query II rowsort label-8035
SELECT - 87 col2, + CASE + 3 WHEN + 55 THEN NULL WHEN + + 21 THEN 21 + 34 ELSE NULL END * - MIN ( - - CAST ( NULL AS INTEGER ) ) * - ( + + 67 ) - + 82 + - + 1 / + 90 + COUNT ( * ) * - NULLIF ( 83, + COALESCE ( - 26, - COALESCE ( - 82, - + 46 * + - 24 * - - 28 * 59 + + 27 - CAST ( NULL AS INTEGER ) * + 75 ) ) + + COUNT ( * ) ) - - 82 * 84
----
-87
NULL

query I rowsort
SELECT 69 * 49
----
3381

query II rowsort
SELECT 59 col2, + 17
----
59
17

onlyif mysql # DIV for integer division: 
query II rowsort label-8038
SELECT 65 AS col1, - ( 47 ) DIV 60
----
65
0

skipif mysql # not compatible
query II rowsort label-8038
SELECT 65 AS col1, - ( 47 ) / 60
----
65
0

query I rowsort
SELECT ALL 20 - 84 AS col2
----
-64

query II rowsort
SELECT ALL 48, - 19 AS col2
----
48
-19

query II rowsort
SELECT - 50 col0, 50
----
-50
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8042
SELECT ALL COUNT( * ) DIV CAST( - 82 AS SIGNED ) DIV + 65 - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8042
SELECT ALL COUNT ( * ) / CAST ( - 82 AS INTEGER ) / + 65 - COUNT ( * )
----
-1

query II rowsort
SELECT 94 AS col1, 66 * + 50 * - 89 AS col2
----
94
-293700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8044
SELECT ALL MAX( DISTINCT - - 20 ) * + + 1 * MIN( - CAST( - - 77 AS SIGNED ) )
----
-1540

skipif mysql # not compatible
query I rowsort label-8044
SELECT ALL MAX ( DISTINCT - - 20 ) * + + 1 * MIN ( - CAST ( - - 77 AS INTEGER ) )
----
-1540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8045
SELECT + ( + 23 ) * CAST( - - 67 AS SIGNED ) col2
----
1541

skipif mysql # not compatible
query I rowsort label-8045
SELECT + ( + 23 ) * CAST ( - - 67 AS INTEGER ) col2
----
1541

query I rowsort
SELECT DISTINCT 78 * - - 71 AS col0
----
5538

onlyif mysql # aggregate syntax: 
query II rowsort label-8047
SELECT ALL - - 92 AS col0, - CASE + 98 WHEN + COUNT( * ) - 86 THEN COUNT( * ) * - 73 WHEN + + MAX( ALL - - 99 ) THEN NULL END * + 15 AS col2
----
92
NULL

skipif mysql # not compatible
query II rowsort label-8047
SELECT ALL - - 92 AS col0, - CASE + 98 WHEN + COUNT ( * ) - 86 THEN COUNT ( * ) * - 73 WHEN + + MAX ( ALL - - 99 ) THEN NULL END * + 15 AS col2
----
92
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8048
SELECT DISTINCT - ( + + CAST( + + 74 AS SIGNED ) )
----
-74

skipif mysql # not compatible
query I rowsort label-8048
SELECT DISTINCT - ( + + CAST ( + + 74 AS INTEGER ) )
----
-74

query I rowsort
SELECT DISTINCT - 2 + + 24 + + 16
----
38

query I rowsort
SELECT - 93 * + - 35
----
3255

query I rowsort
SELECT ALL CASE - + 10 WHEN + 27 THEN NULL WHEN - + NULLIF ( - + 87, - - 30 + 9 ) * 39 THEN 4 / 50 END + 25
----
NULL

query I rowsort
SELECT + 41 * - 72 + - - 37
----
-2915

query I rowsort
SELECT 65 + 0 * - 37 AS col0
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8054
SELECT - 15 - - CAST( - COUNT( * ) AS SIGNED ) * + + 86 + + 23 AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-8054
SELECT - 15 - - CAST ( - COUNT ( * ) AS INTEGER ) * + + 86 + + 23 AS col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT + + ( - COUNT( 47 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8055
SELECT + + ( - COUNT ( 47 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8056
SELECT CASE - + 39 WHEN COUNT( * ) + + + 11 - + 19 THEN NULL ELSE + - 5 END - + + 80 AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-8056
SELECT CASE - + 39 WHEN COUNT ( * ) + + + 11 - + 19 THEN NULL ELSE + - 5 END - + + 80 AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8057
SELECT + NULLIF ( - 78, - - 79 * + MAX( - 90 ) )
----
-78

skipif mysql # not compatible
query I rowsort label-8057
SELECT + NULLIF ( - 78, - - 79 * + MAX ( - 90 ) )
----
-78

query I rowsort
SELECT ALL + 92 + - 18 AS col2
----
74

query I rowsort
SELECT DISTINCT 47 + + 78
----
125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8060
SELECT DISTINCT + 59 + - 14 * CAST( NULL AS SIGNED ) - ( 19 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8060
SELECT DISTINCT + 59 + - 14 * CAST ( NULL AS INTEGER ) - ( 19 ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8061
SELECT ALL 65 DIV + 88 + + 44 * 97
----
4268

skipif mysql # not compatible
query I rowsort label-8061
SELECT ALL 65 / + 88 + + 44 * 97
----
4268

onlyif mysql # aggregate syntax: 
query I rowsort label-8062
SELECT DISTINCT - SUM( ALL + ( + 92 ) )
----
-92

skipif mysql # not compatible
query I rowsort label-8062
SELECT DISTINCT - SUM ( ALL + ( + 92 ) )
----
-92

query I rowsort
SELECT DISTINCT + + 33 + 1 AS col2
----
34

query II rowsort
SELECT ALL - 67, + 37 AS col0
----
-67
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8065
SELECT ALL - 54 AS col2, - MAX( ALL + 52 ) DIV - 53 - 46
----
-54
-46

skipif mysql # not compatible
query II rowsort label-8065
SELECT ALL - 54 AS col2, - MAX ( ALL + 52 ) / - 53 - 46
----
-54
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8066
SELECT DISTINCT + 73 - + 20 - COUNT( * ) + - + 19 * - 78
----
1534

skipif mysql # not compatible
query I rowsort label-8066
SELECT DISTINCT + 73 - + 20 - COUNT ( * ) + - + 19 * - 78
----
1534

onlyif mysql # DIV for integer division: 
query I rowsort label-8067
SELECT ( - 76 ) DIV 77
----
0

skipif mysql # not compatible
query I rowsort label-8067
SELECT ( - 76 ) / 77
----
0

query I rowsort
SELECT 79 * - + 88
----
-6952

onlyif mysql # DIV for integer division: 
query II rowsort label-8069
SELECT ALL + 37 DIV + + 16, - 99 AS col1
----
2
-99

skipif mysql # not compatible
query II rowsort label-8069
SELECT ALL + 37 / + + 16, - 99 AS col1
----
2
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8070
SELECT 69 * - CAST( + NULLIF ( + 60, + CASE + 88 WHEN + - SUM( - 93 ) THEN + ( + + 58 ) * - 40 ELSE NULL END ) AS SIGNED )
----
-4140

skipif mysql # not compatible
query I rowsort label-8070
SELECT 69 * - CAST ( + NULLIF ( + 60, + CASE + 88 WHEN + - SUM ( - 93 ) THEN + ( + + 58 ) * - 40 ELSE NULL END ) AS INTEGER )
----
-4140

onlyif mysql # aggregate syntax: 
query I rowsort label-8071
SELECT NULLIF ( - 76, + + 40 + + + COUNT( * ) ) * 63
----
-4788

skipif mysql # not compatible
query I rowsort label-8071
SELECT NULLIF ( - 76, + + 40 + + + COUNT ( * ) ) * 63
----
-4788

onlyif mysql # DIV for integer division: 
query I rowsort label-8072
SELECT ALL + 28 DIV + 29
----
0

skipif mysql # not compatible
query I rowsort label-8072
SELECT ALL + 28 / + 29
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8073
SELECT DISTINCT + 55 - 19 AS col2, - COUNT( * ) AS col0
----
36
-1

skipif mysql # not compatible
query II rowsort label-8073
SELECT DISTINCT + 55 - 19 AS col2, - COUNT ( * ) AS col0
----
36
-1

query II rowsort
SELECT 85 + - 44 AS col2, ( + 68 ) AS col0
----
41
68

query I rowsort
SELECT DISTINCT 26 - - 72 AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8076
SELECT COUNT( ALL 18 ) + + 63
----
64

skipif mysql # not compatible
query I rowsort label-8076
SELECT COUNT ( ALL 18 ) + + 63
----
64

query I rowsort
SELECT 4 * - + 44
----
-176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8078
SELECT COUNT( * ) - CAST( NULL AS SIGNED ) + + 33 / + + 4 - + + 40 + - 11 * 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8078
SELECT COUNT ( * ) - CAST ( NULL AS INTEGER ) + + 33 / + + 4 - + + 40 + - 11 * 73 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8079
SELECT 19 + - + 1 + CAST( NULL AS SIGNED ) * 3 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8079
SELECT 19 + - + 1 + CAST ( NULL AS INTEGER ) * 3 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8080
SELECT ALL COUNT( * ) * 15
----
15

skipif mysql # not compatible
query I rowsort label-8080
SELECT ALL COUNT ( * ) * 15
----
15

query I rowsort
SELECT NULLIF ( + 80, + 84 ) + COALESCE ( 22, - 50 ) col1
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-8082
SELECT ALL 19 + - - MIN( DISTINCT 50 )
----
69

skipif mysql # not compatible
query I rowsort label-8082
SELECT ALL 19 + - - MIN ( DISTINCT 50 )
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-8083
SELECT 9 + + 42 + 19 DIV - 95 * 45
----
51

skipif mysql # not compatible
query I rowsort label-8083
SELECT 9 + + 42 + 19 / - 95 * 45
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-8084
SELECT ALL 80 + - 32 AS col0, + 59 * - MIN( + 84 ) * 25 * 74
----
48
-9168600

skipif mysql # not compatible
query II rowsort label-8084
SELECT ALL 80 + - 32 AS col0, + 59 * - MIN ( + 84 ) * 25 * 74
----
48
-9168600

query I rowsort
SELECT + + ( - 5 )
----
-5

query I rowsort
SELECT ALL + 14 * + + ( 5 ) + 91 * - 14 AS col0
----
-1204

onlyif mysql # DIV for integer division: 
query I rowsort label-8087
SELECT 80 DIV 37
----
2

skipif mysql # not compatible
query I rowsort label-8087
SELECT 80 / 37
----
2

query II rowsort
SELECT ALL 96 + 84 col2, 49
----
180
49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8089
SELECT + - AVG ( ALL CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8089
SELECT + - AVG ( ALL CAST ( NULL AS REAL ) ) AS col2
----
NULL

query I rowsort
SELECT ALL - + COALESCE ( - 48, + - 80, - 16 ) AS col2
----
48

query I rowsort
SELECT + 43 * COALESCE ( + 92, - + 54 ) - 98 AS col1
----
3858

onlyif mysql # aggregate syntax: 
query I rowsort label-8092
SELECT + NULLIF ( - 77, + - COUNT( * ) + + + 88 + + + 15 + + MIN( ALL 7 ) * + - 83 * CASE - + 5 WHEN 91 * + + MAX( DISTINCT - 16 ) THEN - COUNT( * ) END )
----
-77

skipif mysql # not compatible
query I rowsort label-8092
SELECT + NULLIF ( - 77, + - COUNT ( * ) + + + 88 + + + 15 + + MIN ( ALL 7 ) * + - 83 * CASE - + 5 WHEN 91 * + + MAX ( DISTINCT - 16 ) THEN - COUNT ( * ) END )
----
-77

query I rowsort
SELECT + + 13 AS col1
----
13

query I rowsort
SELECT 85 + - - 77 * 86 AS col0
----
6707

query I rowsort
SELECT 88 * ( - 68 ) * + 60
----
-359040

onlyif mysql # aggregate syntax: 
query II rowsort label-8096
SELECT ALL + COUNT( * ), 88 + - - 90 * 17 * - + 88 AS col0
----
1
-134552

skipif mysql # not compatible
query II rowsort label-8096
SELECT ALL + COUNT ( * ), 88 + - - 90 * 17 * - + 88 AS col0
----
1
-134552

onlyif mysql # aggregate syntax: 
query I rowsort label-8097
SELECT - ( - COUNT( * ) ) + - - 20 - + 13 + 91 AS col0
----
99

skipif mysql # not compatible
query I rowsort label-8097
SELECT - ( - COUNT ( * ) ) + - - 20 - + 13 + 91 AS col0
----
99

query I rowsort
SELECT + 39 + - - 44 + + 29 col2
----
112

onlyif mysql # aggregate syntax: 
query II rowsort label-8099
SELECT ALL COUNT( * ) col1, - 90 AS col1
----
1
-90

skipif mysql # not compatible
query II rowsort label-8099
SELECT ALL COUNT ( * ) col1, - 90 AS col1
----
1
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-8100
SELECT ALL 38, ( + 18 ) * 54 * - SUM( 0 ) + - 53 AS col0
----
38
-53

skipif mysql # not compatible
query II rowsort label-8100
SELECT ALL 38, ( + 18 ) * 54 * - SUM ( 0 ) + - 53 AS col0
----
38
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8101
SELECT ALL CASE + 73 WHEN 4 THEN - ( - 46 ) + + MIN( DISTINCT 40 ) * - 4 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8101
SELECT ALL CASE + 73 WHEN 4 THEN - ( - 46 ) + + MIN ( DISTINCT 40 ) * - 4 END
----
NULL

query I rowsort
SELECT - 67 * + - 5 AS col2
----
335

query I rowsort
SELECT + ( - + 27 ) * 81 + + + 30 AS col2
----
-2157

query I rowsort
SELECT - 43 * 48
----
-2064

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8105
SELECT - COALESCE ( - - 10, - 10 * + 9 * + 4 * - - CAST( - 10 AS SIGNED ) + 52 * - 87 )
----
-10

skipif mysql # not compatible
query I rowsort label-8105
SELECT - COALESCE ( - - 10, - 10 * + 9 * + 4 * - - CAST ( - 10 AS INTEGER ) + 52 * - 87 )
----
-10

query I rowsort
SELECT - 61 + + 33
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT - 20 - ( - 55 ) + COALESCE ( 54, - 20 - + SUM( + 33 ) ) + - 73 * + COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-8107
SELECT - 20 - ( - 55 ) + COALESCE ( 54, - 20 - + SUM ( + 33 ) ) + - 73 * + COUNT ( * )
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-8108
SELECT - 31 DIV + 85 * - 66 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8108
SELECT - 31 / + 85 * - 66 AS col0
----
0

query I rowsort
SELECT ALL + 34 + + 11 + - - 67 * - 9
----
-558

onlyif mysql # aggregate syntax: 
query I rowsort label-8110
SELECT DISTINCT + NULLIF ( - 95, - COUNT( ALL + + 40 ) ) + COUNT( * ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-8110
SELECT DISTINCT + NULLIF ( - 95, - COUNT ( ALL + + 40 ) ) + COUNT ( * ) AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8111
SELECT ALL ( + - NULLIF ( COUNT( 13 ), + COUNT( * ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8111
SELECT ALL ( + - NULLIF ( COUNT ( 13 ), + COUNT ( * ) ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8112
SELECT DISTINCT - 66 + - + CAST( 27 AS SIGNED ) AS col2, 73 - + CASE - 67 WHEN - - 6 * - 58 THEN NULL WHEN - COUNT( * ) THEN + 63 END + 84 AS col2
----
-93
NULL

skipif mysql # not compatible
query II rowsort label-8112
SELECT DISTINCT - 66 + - + CAST ( 27 AS INTEGER ) AS col2, 73 - + CASE - 67 WHEN - - 6 * - 58 THEN NULL WHEN - COUNT ( * ) THEN + 63 END + 84 AS col2
----
-93
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8113
SELECT - - SUM( - - 20 ) col2
----
20

skipif mysql # not compatible
query I rowsort label-8113
SELECT - - SUM ( - - 20 ) col2
----
20

query I rowsort
SELECT - + 27 + - ( - 66 )
----
39

query II rowsort
SELECT - + 0 AS col1, - 63 AS col2
----
0
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8116
SELECT DISTINCT + ( + - COUNT( DISTINCT + 95 ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-8116
SELECT DISTINCT + ( + - COUNT ( DISTINCT + 95 ) ) col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8117
SELECT DISTINCT + - 41 * - CAST( 10 AS SIGNED ) * NULLIF ( + 70, + 96 )
----
28700

skipif mysql # not compatible
query I rowsort label-8117
SELECT DISTINCT + - 41 * - CAST ( 10 AS INTEGER ) * NULLIF ( + 70, + 96 )
----
28700

query I rowsort
SELECT ALL + + 74 * - 76
----
-5624

query I rowsort
SELECT DISTINCT + ( + 13 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8120
SELECT ALL + COUNT( * ) * - 33 * + ( - - 94 ) - + 90 * + 90
----
-11202

skipif mysql # not compatible
query I rowsort label-8120
SELECT ALL + COUNT ( * ) * - 33 * + ( - - 94 ) - + 90 * + 90
----
-11202

onlyif mysql # aggregate syntax: 
query I rowsort label-8121
SELECT + - COUNT( * ) * - - 11 AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-8121
SELECT + - COUNT ( * ) * - - 11 AS col0
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8122
SELECT DISTINCT 26 * COUNT( * ) DIV + + 5 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-8122
SELECT DISTINCT 26 * COUNT ( * ) / + + 5 AS col2
----
5

query I rowsort
SELECT + 14 - 14 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8124
SELECT + COUNT( * ) * + + 46 * + COUNT( * ) * + 30 AS col0
----
1380

skipif mysql # not compatible
query I rowsort label-8124
SELECT + COUNT ( * ) * + + 46 * + COUNT ( * ) * + 30 AS col0
----
1380

query I rowsort
SELECT DISTINCT 57 * ( 52 ) col2
----
2964

onlyif mysql # DIV for integer division: 
query I rowsort label-8126
SELECT + NULLIF ( 20, - + 63 DIV + + 33 ) * 80 - 93 DIV - 28
----
1603

skipif mysql # not compatible
query I rowsort label-8126
SELECT + NULLIF ( 20, - + 63 / + + 33 ) * 80 - 93 / - 28
----
1603

query I rowsort
SELECT ALL 92 * 11
----
1012

query I rowsort
SELECT ALL 3 * 89 AS col2
----
267

query I rowsort
SELECT + ( - 50 ) + - 65
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT ALL + COUNT( 21 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8130
SELECT ALL + COUNT ( 21 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8131
SELECT + CAST( 23 AS SIGNED ) * + 23 * 93 - - + 24
----
49221

skipif mysql # not compatible
query I rowsort label-8131
SELECT + CAST ( 23 AS INTEGER ) * + 23 * 93 - - + 24
----
49221

onlyif mysql # aggregate syntax: 
query I rowsort label-8132
SELECT ALL 97 * + - COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-8132
SELECT ALL 97 * + - COUNT ( * )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8133
SELECT DISTINCT CASE + COUNT( * ) WHEN 21 THEN - 5 * + 8 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8133
SELECT DISTINCT CASE + COUNT ( * ) WHEN 21 THEN - 5 * + 8 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8134
SELECT ( + 58 ) * + COUNT( * ) * - 75 + + 9
----
-4341

skipif mysql # not compatible
query I rowsort label-8134
SELECT ( + 58 ) * + COUNT ( * ) * - 75 + + 9
----
-4341

onlyif mysql # aggregate syntax: 
query I rowsort label-8135
SELECT COUNT( ALL - 86 )
----
1

skipif mysql # not compatible
query I rowsort label-8135
SELECT COUNT ( ALL - 86 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8136
SELECT - CAST( - 16 AS SIGNED ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-8136
SELECT - CAST ( - 16 AS INTEGER ) AS col2
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8137
SELECT + CAST( - COUNT( * ) AS SIGNED ) + + 28 - - - 18 * - 84
----
1539

skipif mysql # not compatible
query I rowsort label-8137
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) + + 28 - - - 18 * - 84
----
1539

query I rowsort
SELECT - 61 * - 8 AS col0
----
488

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8139
SELECT - 20 + - + 87 + - 73 + + 7 * - + NULLIF ( - 61, + 34 * - + 29 - - ( - 42 ) + - 23 * + 36 * + 55 * + ( SUM( - CAST( NULL AS SIGNED ) ) ) ) * - 69 col2
----
-29643

skipif mysql # not compatible
query I rowsort label-8139
SELECT - 20 + - + 87 + - 73 + + 7 * - + NULLIF ( - 61, + 34 * - + 29 - - ( - 42 ) + - 23 * + 36 * + 55 * + ( SUM ( - CAST ( NULL AS INTEGER ) ) ) ) * - 69 col2
----
-29643

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT MIN( ALL - - 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8140
SELECT MIN ( ALL - - 0 ) AS col2
----
0

query I rowsort
SELECT + 49 + 95 + - 37 - 74
----
33

query I rowsort
SELECT - 14 * 40
----
-560

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT DISTINCT 49 + 14 + - SUM( DISTINCT - 83 )
----
146

skipif mysql # not compatible
query I rowsort label-8143
SELECT DISTINCT 49 + 14 + - SUM ( DISTINCT - 83 )
----
146

query I rowsort
SELECT ALL - ( 80 ) * 52
----
-4160

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT - 78 + + COUNT( * )
----
-77

skipif mysql # not compatible
query I rowsort label-8145
SELECT - 78 + + COUNT ( * )
----
-77

query II rowsort
SELECT ALL 83 + - 48 AS col1, 28 AS col1
----
35
28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8147
SELECT - 95 * 88 AS col0, - CAST( NULL AS SIGNED ) * - - 14 + - 89 + ( - 86 ) / + 41
----
-8360
NULL

skipif mysql # not compatible
query II rowsort label-8147
SELECT - 95 * 88 AS col0, - CAST ( NULL AS INTEGER ) * - - 14 + - 89 + ( - 86 ) / + 41
----
-8360
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8148
SELECT MAX( + 42 )
----
42

skipif mysql # not compatible
query I rowsort label-8148
SELECT MAX ( + 42 )
----
42

query I rowsort
SELECT + 85 + 67
----
152

query II rowsort
SELECT ALL - - 52 * - 20 AS col2, ( - 30 ) AS col0
----
-1040
-30

query I rowsort
SELECT - 68 + + - ( - 83 )
----
15

query I rowsort
SELECT + - 65 * 70 * - 62 + + ( 68 )
----
282168

query I rowsort
SELECT DISTINCT + CASE + 56 WHEN - 99 * - - 49 THEN + 48 * 36 WHEN + + 66 THEN NULL END
----
NULL

query I rowsort
SELECT ALL + - NULLIF ( - + ( - 17 ), + 57 ) - + - 66
----
49

query I rowsort
SELECT - + 90 + - - 57 col2
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8156
SELECT - - COUNT( * ) + - 50 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8156
SELECT - - COUNT ( * ) + - 50 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8157
SELECT ALL - + 26 DIV 54 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8157
SELECT ALL - + 26 / 54 AS col1
----
0

query I rowsort
SELECT - + 41 + - 20
----
-61

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8159
SELECT - - CASE - + 20 WHEN 17 THEN NULL WHEN - - ( 87 ) DIV + - 46 THEN NULL WHEN - - 79 THEN - 84 DIV - 55 - - - CASE 79 WHEN + 71 + 59 THEN NULL WHEN 96 - + COALESCE ( + + 94, + CAST( 46 AS SIGNED ) DIV - 87 - + - 35 + + 66 * - 92, - + 52 ) THEN + 4 WHEN + ( - 9 ) THEN NULL ELSE + 94 END + 92 * - 12 * 36 ELSE - 13 END + 16
----
3

skipif mysql # not compatible
query I rowsort label-8159
SELECT - - CASE - + 20 WHEN 17 THEN NULL WHEN - - ( 87 ) / + - 46 THEN NULL WHEN - - 79 THEN - 84 / - 55 - - - CASE 79 WHEN + 71 + 59 THEN NULL WHEN 96 - + COALESCE ( + + 94, + CAST ( 46 AS INTEGER ) / - 87 - + - 35 + + 66 * - 92, - + 52 ) THEN + 4 WHEN + ( - 9 ) THEN NULL ELSE + 94 END + 92 * - 12 * 36 ELSE - 13 END + 16
----
3

query I rowsort
SELECT - 84 + 3 * 40 col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8161
SELECT ALL - 69 * COUNT( * ) * - - COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-8161
SELECT ALL - 69 * COUNT ( * ) * - - COUNT ( * )
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8162
SELECT - 24 * - + CAST( NULL AS SIGNED ) * - - 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8162
SELECT - 24 * - + CAST ( NULL AS INTEGER ) * - - 46 AS col1
----
NULL

query I rowsort
SELECT + 67 * - - 10 + 13
----
683

onlyif mysql # aggregate syntax: 
query I rowsort label-8164
SELECT + COUNT( + - 32 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8164
SELECT + COUNT ( + - 32 ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8165
SELECT + - ( + ( - - COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8165
SELECT + - ( + ( - - COUNT ( * ) ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8166
SELECT 25 / - - 94 + 1 + - 9 + - 20 * - 51 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8166
SELECT 25 / - - 94 + 1 + - 9 + - 20 * - 51 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8167
SELECT ALL - CAST( NULL AS DECIMAL ) * - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-8167
SELECT ALL - CAST ( NULL AS REAL ) * - 73
----
NULL

query I rowsort
SELECT 42 * - 88 AS col0
----
-3696

onlyif mysql # aggregate syntax: 
query I rowsort label-8169
SELECT + NULLIF ( 20, + 55 / NULLIF ( NULLIF ( 33, 80 * + - 73 ), - 70 ) * - + COUNT( * ) + + 14 * + - ( - ( 78 ) ) - 58 / - 11 - - + 20 ) * 53 AS col2
----
1060

skipif mysql # not compatible
query I rowsort label-8169
SELECT + NULLIF ( 20, + 55 / NULLIF ( NULLIF ( 33, 80 * + - 73 ), - 70 ) * - + COUNT ( * ) + + 14 * + - ( - ( 78 ) ) - 58 / - 11 - - + 20 ) * 53 AS col2
----
1060

query II rowsort
SELECT + 67 AS col2, ( + 31 ) col1
----
67
31

query II rowsort
SELECT ALL - 49, 79 col2
----
-49
79

query I rowsort
SELECT 94 * + ( + - 42 ) * - 98
----
386904

onlyif mysql # DIV for integer division: 
query I rowsort label-8173
SELECT DISTINCT 3 DIV - 11 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8173
SELECT DISTINCT 3 / - 11 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8174
SELECT ALL 50 DIV + ( + + 70 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8174
SELECT ALL 50 / + ( + + 70 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8175
SELECT 84 DIV + + 19
----
4

skipif mysql # not compatible
query I rowsort label-8175
SELECT 84 / + + 19
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-8176
SELECT 10 DIV - 41
----
0

skipif mysql # not compatible
query I rowsort label-8176
SELECT 10 / - 41
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8177
SELECT 19 * COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-8177
SELECT 19 * COUNT ( * )
----
19

query I rowsort
SELECT ALL 8 + + 98 AS col2
----
106

query I rowsort
SELECT 9 * + - 4 * + 21 * - NULLIF ( + + 13, - ( - 35 ) / - ( + 6 ) ) col1
----
9828

query I rowsort
SELECT 45 + - 38
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8181
SELECT - COUNT( ALL - ( - + 25 ) ) AS col2, + 68 DIV - 76 * - 40 + - COUNT( * ) AS col0
----
-1
-1

skipif mysql # not compatible
query II rowsort label-8181
SELECT - COUNT ( ALL - ( - + 25 ) ) AS col2, + 68 / - 76 * - 40 + - COUNT ( * ) AS col0
----
-1
-1

query I rowsort
SELECT ALL - 25 - + ( + 64 ) * + 6 + - + 38 AS col0
----
-447

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT COUNT( * ) * + 64 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-8183
SELECT COUNT ( * ) * + 64 AS col1
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8184
SELECT CAST( - - 77 AS SIGNED ) col1
----
77

skipif mysql # not compatible
query I rowsort label-8184
SELECT CAST ( - - 77 AS INTEGER ) col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8185
SELECT ALL SUM( DISTINCT + 4 ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-8185
SELECT ALL SUM ( DISTINCT + 4 ) AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT ALL - MAX( ALL + 23 ) * 1 * - - 17 * + 49 - - 64 + + 61
----
-19034

skipif mysql # not compatible
query I rowsort label-8186
SELECT ALL - MAX ( ALL + 23 ) * 1 * - - 17 * + 49 - - 64 + + 61
----
-19034

query I rowsort
SELECT DISTINCT - 31 - - ( + 84 ) + 89 * 20 * + - 22 + 83 AS col2
----
-39024

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8188
SELECT 88 + + ( + CAST( NULL AS DECIMAL ) ) + + SUM( 80 ), 14 + COUNT( * ) AS col1
----
NULL
15

skipif mysql # not compatible
query II rowsort label-8188
SELECT 88 + + ( + CAST ( NULL AS REAL ) ) + + SUM ( 80 ), 14 + COUNT ( * ) AS col1
----
NULL
15

query I rowsort
SELECT COALESCE ( - 80, 64 * 84, - 91 ) * 43 AS col2
----
-3440

query I rowsort
SELECT ALL - ( + - 38 ) AS col0
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-8191
SELECT 54 DIV 24 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-8191
SELECT 54 / 24 AS col2
----
2

onlyif mysql # DIV for integer division: 
query II rowsort label-8192
SELECT ALL - 79 * + 57 * + 58, + 26 DIV - - 82 col0
----
-261174
0

skipif mysql # not compatible
query II rowsort label-8192
SELECT ALL - 79 * + 57 * + 58, + 26 / - - 82 col0
----
-261174
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8193
SELECT MIN( ALL - 19 ) - 48 * - 75 AS col2
----
3581

skipif mysql # not compatible
query I rowsort label-8193
SELECT MIN ( ALL - 19 ) - 48 * - 75 AS col2
----
3581

query I rowsort
SELECT 88 * + 79
----
6952

query I rowsort
SELECT DISTINCT 27 + - 22 col2
----
5

query I rowsort
SELECT 75 * - - ( 50 ) AS col2
----
3750

query I rowsort
SELECT 78 + - 32
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8198
SELECT - 49 DIV - COUNT( * ) - - 38 + - 6 + - COUNT( ALL 11 ) * - 31 AS col1
----
112

skipif mysql # not compatible
query I rowsort label-8198
SELECT - 49 / - COUNT ( * ) - - 38 + - 6 + - COUNT ( ALL 11 ) * - 31 AS col1
----
112

query II rowsort
SELECT 6 AS col1, 3 * + 86
----
6
258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8200
SELECT 83 * - 17 + + - CAST( NULL AS SIGNED ) * - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-8200
SELECT 83 * - 17 + + - CAST ( NULL AS INTEGER ) * - 77
----
NULL

query I rowsort
SELECT 29 * 99 AS col2
----
2871

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8202
SELECT - CAST( - - 74 AS SIGNED ) * - - 98 - - 49 + COUNT( * ) + - 61
----
-7263

skipif mysql # not compatible
query I rowsort label-8202
SELECT - CAST ( - - 74 AS INTEGER ) * - - 98 - - 49 + COUNT ( * ) + - 61
----
-7263

onlyif mysql # aggregate syntax: 
query I rowsort label-8203
SELECT ALL + 47 + + 49 + + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-8203
SELECT ALL + 47 + + 49 + + COUNT ( * )
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8204
SELECT DISTINCT CAST( 23 AS SIGNED ) + - - 12 + + - CASE - COALESCE ( 77, 73 - CAST( 90 AS DECIMAL ) ) WHEN + ( - COUNT( + CAST( + + 84 AS SIGNED ) ) ) - 67 THEN - - 32 END * - 45 * - 6 * + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-8204
SELECT DISTINCT CAST ( 23 AS INTEGER ) + - - 12 + + - CASE - COALESCE ( 77, 73 - CAST ( 90 AS REAL ) ) WHEN + ( - COUNT ( + CAST ( + + 84 AS INTEGER ) ) ) - 67 THEN - - 32 END * - 45 * - 6 * + 80
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8205
SELECT ALL + COUNT( * ) + + COALESCE ( - 60, 32 ) AS col2, 74
----
-59
74

skipif mysql # not compatible
query II rowsort label-8205
SELECT ALL + COUNT ( * ) + + COALESCE ( - 60, 32 ) AS col2, 74
----
-59
74

query I rowsort
SELECT ALL 90 + 13 AS col0
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-8207
SELECT ALL 49 DIV 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8207
SELECT ALL 49 / 78 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT ALL SUM( DISTINCT + - 8 )
----
-8

skipif mysql # not compatible
query I rowsort label-8208
SELECT ALL SUM ( DISTINCT + - 8 )
----
-8

query I rowsort
SELECT 19 + - 84 AS col2
----
-65

query I rowsort
SELECT ALL 54 - 44 AS col0
----
10

query I rowsort
SELECT - ( - + 61 ) AS col2
----
61

query II rowsort
SELECT - - 0 col0, - ( - 49 ) * + 75 AS col0
----
0
3675

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8213
SELECT DISTINCT + COUNT( * ) DIV 99
----
0

skipif mysql # not compatible
query I rowsort label-8213
SELECT DISTINCT + COUNT ( * ) / 99
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8214
SELECT + 8 DIV 72 * - 47
----
0

skipif mysql # not compatible
query I rowsort label-8214
SELECT + 8 / 72 * - 47
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8215
SELECT - CAST( NULL AS DECIMAL ) + - + CAST( + - COALESCE ( COUNT( * ), - 0 / - 22 + + - 5, + + 51 ) AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8215
SELECT - CAST ( NULL AS REAL ) + - + CAST ( + - COALESCE ( COUNT ( * ), - 0 / - 22 + + - 5, + + 51 ) AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT 23 + - - COUNT( DISTINCT - 67 ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-8216
SELECT 23 + - - COUNT ( DISTINCT - 67 ) AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8217
SELECT DISTINCT + 2 * - 17 * - 62 * + 20 + + SUM( ALL + - 47 ) * COUNT( * ) AS col2
----
42113

skipif mysql # not compatible
query I rowsort label-8217
SELECT DISTINCT + 2 * - 17 * - 62 * + 20 + + SUM ( ALL + - 47 ) * COUNT ( * ) AS col2
----
42113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8218
SELECT + - 33 + - + CAST( NULL AS SIGNED ) * + 87 - - 89 + + - 47 - COUNT( * ) + - 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8218
SELECT + - 33 + - + CAST ( NULL AS INTEGER ) * + 87 - - 89 + + - 47 - COUNT ( * ) + - 27 AS col2
----
NULL

query II rowsort
SELECT - 66, + 61 * + + 70 col2
----
-66
4270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8220
SELECT + + COUNT( + + CAST( + - 1 AS SIGNED ) ) + + 4 DIV + 91 + + - COUNT( * ) + - - 21 + 73 * + + 52 * 31 AS col1
----
117697

skipif mysql # not compatible
query I rowsort label-8220
SELECT + + COUNT ( + + CAST ( + - 1 AS INTEGER ) ) + + 4 / + 91 + + - COUNT ( * ) + - - 21 + 73 * + + 52 * 31 AS col1
----
117697

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8221
SELECT + - CAST( + 35 AS SIGNED ) + + 95 - 3, 9 col2
----
57
9

skipif mysql # not compatible
query II rowsort label-8221
SELECT + - CAST ( + 35 AS INTEGER ) + + 95 - 3, 9 col2
----
57
9

query I rowsort
SELECT ALL 77 + + - 35 + + 30 + - 25 AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8223
SELECT + COUNT( * ) + - ( - 47 )
----
48

skipif mysql # not compatible
query I rowsort label-8223
SELECT + COUNT ( * ) + - ( - 47 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8224
SELECT ALL 0 * + 85 + + SUM( ALL + 50 ) * + COUNT( - + 33 ) col0
----
50

skipif mysql # not compatible
query I rowsort label-8224
SELECT ALL 0 * + 85 + + SUM ( ALL + 50 ) * + COUNT ( - + 33 ) col0
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-8225
SELECT DISTINCT 20 DIV - - 10
----
2

skipif mysql # not compatible
query I rowsort label-8225
SELECT DISTINCT 20 / - - 10
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8226
SELECT + 60 * + SUM( ALL + 40 ) AS col0
----
2400

skipif mysql # not compatible
query I rowsort label-8226
SELECT + 60 * + SUM ( ALL + 40 ) AS col0
----
2400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8227
SELECT ALL 74 * - 91 * + + CAST( 21 AS SIGNED ) AS col2
----
-141414

skipif mysql # not compatible
query I rowsort label-8227
SELECT ALL 74 * - 91 * + + CAST ( 21 AS INTEGER ) AS col2
----
-141414

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8228
SELECT ALL 52 * - - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) + - 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8228
SELECT ALL 52 * - - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) + - 55 AS col2
----
NULL

query II rowsort
SELECT 78 * + 52 + NULLIF ( + + 73, - ( 80 ) ) + 98 AS col0, - 61 AS col0
----
4227
-61

query I rowsort
SELECT + COALESCE ( - 65, - - 6, 16 )
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8231
SELECT - 83 * 37 + + CASE - 46 WHEN - - 29 THEN + - 61 * 80 + - 73 * CAST( NULL AS SIGNED ) / 60 END / - 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8231
SELECT - 83 * 37 + + CASE - 46 WHEN - - 29 THEN + - 61 * 80 + - 73 * CAST ( NULL AS INTEGER ) / 60 END / - 64 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8232
SELECT ALL - CAST( NULL AS DECIMAL ) * - - 45 + - SUM( + 27 ) * - 79 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8232
SELECT ALL - CAST ( NULL AS REAL ) * - - 45 + - SUM ( + 27 ) * - 79 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8233
SELECT DISTINCT 64 * - 83 * + COUNT( * ) + + 10
----
-5302

skipif mysql # not compatible
query I rowsort label-8233
SELECT DISTINCT 64 * - 83 * + COUNT ( * ) + + 10
----
-5302

onlyif mysql # aggregate syntax: 
query I rowsort label-8234
SELECT - 57 * + + 36 + - 71 - - 66 + + 96 * + COALESCE ( - 17, - - COALESCE ( + 9, - ( COUNT( * ) ) ) - + 37 + - + 66 * - 29 ) AS col2
----
-3689

skipif mysql # not compatible
query I rowsort label-8234
SELECT - 57 * + + 36 + - 71 - - 66 + + 96 * + COALESCE ( - 17, - - COALESCE ( + 9, - ( COUNT ( * ) ) ) - + 37 + - + 66 * - 29 ) AS col2
----
-3689

onlyif mysql # DIV for integer division: 
query I rowsort label-8235
SELECT DISTINCT ( + - 9 ) DIV - 47 * - 56
----
0

skipif mysql # not compatible
query I rowsort label-8235
SELECT DISTINCT ( + - 9 ) / - 47 * - 56
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8236
SELECT ALL 57 * - COUNT( * ) - + ( + 0 ) + - COUNT( * ) DIV 40 AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-8236
SELECT ALL 57 * - COUNT ( * ) - + ( + 0 ) + - COUNT ( * ) / 40 AS col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8237
SELECT COALESCE ( + 85, + 29, + COUNT( * ) * - 87 + + 39 ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-8237
SELECT COALESCE ( + 85, + 29, + COUNT ( * ) * - 87 + + 39 ) AS col2
----
85

onlyif mysql # aggregate syntax: 
query III rowsort label-8238
SELECT - COUNT( * ) + - - 42 AS col2, 40, + CASE 36 WHEN - 78 THEN NULL ELSE - + ( COUNT( * ) ) END AS col1
----
41
40
-1

skipif mysql # not compatible
query III rowsort label-8238
SELECT - COUNT ( * ) + - - 42 AS col2, 40, + CASE 36 WHEN - 78 THEN NULL ELSE - + ( COUNT ( * ) ) END AS col1
----
41
40
-1

query I rowsort
SELECT - 25 + 89
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8240
SELECT - 95 * + 67 * + CASE - 27 WHEN ( + - 88 ) THEN + CASE + + 71 WHEN 52 THEN NULL ELSE 81 * ( - 68 ) * - - 44 * - + CAST( + ( + MIN( + - 82 ) ) AS SIGNED ) END / COUNT( * ) ELSE NULL END * + ( + 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8240
SELECT - 95 * + 67 * + CASE - 27 WHEN ( + - 88 ) THEN + CASE + + 71 WHEN 52 THEN NULL ELSE 81 * ( - 68 ) * - - 44 * - + CAST ( + ( + MIN ( + - 82 ) ) AS INTEGER ) END / COUNT ( * ) ELSE NULL END * + ( + 19 )
----
NULL

query I rowsort
SELECT ALL ( - 84 )
----
-84

query I rowsort
SELECT - - 53 * + 31 AS col2
----
1643

query I rowsort
SELECT ALL ( - 64 ) AS col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8244
SELECT + 51 * - - 13 * + - COUNT( * ) AS col1
----
-663

skipif mysql # not compatible
query I rowsort label-8244
SELECT + 51 * - - 13 * + - COUNT ( * ) AS col1
----
-663

query I rowsort
SELECT ALL + ( + 5 ) col2
----
5

query I rowsort
SELECT ALL 47 + 69 col0
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-8247
SELECT - NULLIF ( + 2, + 33 ) * - + 45 + - - MAX( + 89 )
----
179

skipif mysql # not compatible
query I rowsort label-8247
SELECT - NULLIF ( + 2, + 33 ) * - + 45 + - - MAX ( + 89 )
----
179

onlyif mysql # DIV for integer division: 
query I rowsort label-8248
SELECT ALL + - 48 DIV 96 + + 9 DIV - 62 * - 48
----
0

skipif mysql # not compatible
query I rowsort label-8248
SELECT ALL + - 48 / 96 + + 9 / - 62 * - 48
----
0

query I rowsort
SELECT + NULLIF ( 46, 85 + - 55 )
----
46

query I rowsort
SELECT ALL - 41 + - 60 AS col1
----
-101

query I rowsort
SELECT DISTINCT + - 35 + - - 11 + - 34 + - + 46 * - 2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8252
SELECT ALL - 97 + - - CASE - COALESCE ( ( - + 91 ), 94 + - 60 * - 32 + + 84 ) WHEN + 52 * + - 55 + 65 + + NULLIF ( 64, + ( + 51 ) * - 37 ) + - COUNT( * ) * - AVG ( - + 83 ) * - ( - - 61 ) THEN NULL WHEN + - 72 * 73 * + + COUNT( * ) THEN 14 * - 9 END / - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-8252
SELECT ALL - 97 + - - CASE - COALESCE ( ( - + 91 ), 94 + - 60 * - 32 + + 84 ) WHEN + 52 * + - 55 + 65 + + NULLIF ( 64, + ( + 51 ) * - 37 ) + - COUNT ( * ) * - AVG ( - + 83 ) * - ( - - 61 ) THEN NULL WHEN + - 72 * 73 * + + COUNT ( * ) THEN 14 * - 9 END / - 54
----
NULL

query I rowsort
SELECT - - 91 + + ( + - 85 )
----
6

query I rowsort
SELECT - ( + 46 ) AS col0
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-8255
SELECT ALL - 2 DIV + + 58 + 13 + + + 43 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-8255
SELECT ALL - 2 / + + 58 + 13 + + + 43 AS col2
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8256
SELECT + COALESCE ( + ( - 15 ), - + CAST( NULL AS SIGNED ), - 68 + + 18 )
----
-15

skipif mysql # not compatible
query I rowsort label-8256
SELECT + COALESCE ( + ( - 15 ), - + CAST ( NULL AS INTEGER ), - 68 + + 18 )
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8257
SELECT CAST( - 0 AS SIGNED ) col0
----
0

skipif mysql # not compatible
query I rowsort label-8257
SELECT CAST ( - 0 AS INTEGER ) col0
----
0

query II rowsort
SELECT + 97 * + 51 * NULLIF ( 59, - 59 / + 36 ) col1, - 85 AS col1
----
291873
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8259
SELECT + 85 + 12 + - + 99 * - 17 * + + COUNT( * ) * MIN( - CAST( 14 AS SIGNED ) ) AS col2
----
-23465

skipif mysql # not compatible
query I rowsort label-8259
SELECT + 85 + 12 + - + 99 * - 17 * + + COUNT ( * ) * MIN ( - CAST ( 14 AS INTEGER ) ) AS col2
----
-23465

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT - 53 * - COUNT( DISTINCT - - ( + 88 ) ) + - - 31 * + - 69 AS col1
----
-2086

skipif mysql # not compatible
query I rowsort label-8260
SELECT - 53 * - COUNT ( DISTINCT - - ( + 88 ) ) + - - 31 * + - 69 AS col1
----
-2086

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8261
SELECT + 49 + ( - 31 ) - 71 + - 4 + - + 55 * 59 * 39 + - - 34 DIV NULLIF ( ( + COUNT( * ) ), - CASE 86 WHEN - + CASE - COALESCE ( - 71, + 6 + - + COUNT( * ) ) WHEN 82 THEN NULL WHEN - ( - - ( - + 41 ) ) + 37 * - - COUNT( * ) THEN 51 - - + 50 - + 24 DIV + + AVG ( ALL + 37 ) ELSE NULL END THEN NULL WHEN + + COUNT( * ) THEN NULL ELSE - 69 + + - 41 * - 34 END ) * + 98 AS col2
----
-123280

skipif mysql # not compatible
query I rowsort label-8261
SELECT + 49 + ( - 31 ) - 71 + - 4 + - + 55 * 59 * 39 + - - 34 / NULLIF ( ( + COUNT ( * ) ), - CASE 86 WHEN - + CASE - COALESCE ( - 71, + 6 + - + COUNT ( * ) ) WHEN 82 THEN NULL WHEN - ( - - ( - + 41 ) ) + 37 * - - COUNT ( * ) THEN 51 - - + 50 - + 24 / + + AVG ( ALL + 37 ) ELSE NULL END THEN NULL WHEN + + COUNT ( * ) THEN NULL ELSE - 69 + + - 41 * - 34 END ) * + 98 AS col2
----
-123280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8262
SELECT + NULLIF ( 70, - + COUNT( - 67 ) * + CAST( - 63 AS SIGNED ) ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-8262
SELECT + NULLIF ( 70, - + COUNT ( - 67 ) * + CAST ( - 63 AS INTEGER ) ) AS col1
----
70

query I rowsort
SELECT + 25 + - 63 AS col0
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8264
SELECT - 3 DIV + 64 - + ( MAX( DISTINCT - ( - + 0 ) ) ) + - + 31 + + 80 * COUNT( * ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-8264
SELECT - 3 / + 64 - + ( MAX ( DISTINCT - ( - + 0 ) ) ) + - + 31 + + 80 * COUNT ( * ) AS col1
----
49

query I rowsort
SELECT + 43 * + 14 AS col0
----
602

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8266
SELECT + CAST( - 19 AS SIGNED ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-8266
SELECT + CAST ( - 19 AS INTEGER ) AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8267
SELECT DISTINCT - 16 * - COUNT( * ) * 57 - + 68 + - 42
----
802

skipif mysql # not compatible
query I rowsort label-8267
SELECT DISTINCT - 16 * - COUNT ( * ) * 57 - + 68 + - 42
----
802

query II rowsort
SELECT + 5, + 49 AS col1
----
5
49

query II rowsort
SELECT DISTINCT + 1, 53 + + 90 AS col1
----
1
143

onlyif mysql # DIV for integer division: 
query I rowsort label-8270
SELECT - + ( + 22 ) DIV + 40 * - - 9
----
0

skipif mysql # not compatible
query I rowsort label-8270
SELECT - + ( + 22 ) / + 40 * - - 9
----
0

query I rowsort
SELECT + 12 * - 18
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT - + 3 * COUNT( 72 ) + + 6 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-8272
SELECT - + 3 * COUNT ( 72 ) + + 6 AS col2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8273
SELECT - + 37, + ( + COUNT( - 44 ) ) AS col0
----
-37
1

skipif mysql # not compatible
query II rowsort label-8273
SELECT - + 37, + ( + COUNT ( - 44 ) ) AS col0
----
-37
1

query I rowsort
SELECT DISTINCT - 81 col2
----
-81

query I rowsort
SELECT ALL + 53 * 1 AS col2
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8276
SELECT - 79 * - 50 * - - CAST( + + AVG ( ALL 55 ) AS SIGNED ) * + CASE + 30 WHEN - 96 + + 31 + + + MAX( DISTINCT + + 72 ) THEN - - 68 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8276
SELECT - 79 * - 50 * - - CAST ( + + AVG ( ALL 55 ) AS INTEGER ) * + CASE + 30 WHEN - 96 + + 31 + + + MAX ( DISTINCT + + 72 ) THEN - - 68 ELSE NULL END
----
NULL

query I rowsort
SELECT - 48 * 70
----
-3360

query I rowsort
SELECT + 88 + - 5 AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8279
SELECT DISTINCT SUM( ALL - 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-8279
SELECT DISTINCT SUM ( ALL - 44 )
----
-44

query I rowsort
SELECT ALL - 61 + - 17
----
-78

query I rowsort
SELECT ALL - 50 + 72
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8282
SELECT ALL + 92 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8282
SELECT ALL + 92 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 15 + 70 AS col0
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8284
SELECT ALL + + COUNT( * ) + 83 DIV - 27 + - 16 * + MIN( 91 )
----
-1458

skipif mysql # not compatible
query I rowsort label-8284
SELECT ALL + + COUNT ( * ) + 83 / - 27 + - 16 * + MIN ( 91 )
----
-1458

onlyif mysql # aggregate syntax: 
query I rowsort label-8285
SELECT COUNT( * ) + 59
----
60

skipif mysql # not compatible
query I rowsort label-8285
SELECT COUNT ( * ) + 59
----
60

query II rowsort
SELECT - 36, 70 AS col2
----
-36
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8287
SELECT DISTINCT - CASE 85 WHEN - 66 + - 92 THEN + - 30 WHEN + + 7 THEN - 18 WHEN - 51 - 20 + - COALESCE ( - 58, 11 ) + - 41 + 61 + CASE - 14 WHEN 17 * - 46 + - MIN( ALL + 31 ) THEN NULL ELSE + ( 43 ) * 47 - - + 77 * + NULLIF ( - 66, - 18 * + 55 DIV + - 40 * - 88 ) END * NULLIF ( + 77, + 73 ) * 41 + - 76 * - 73 THEN + 51 * 85 ELSE - 41 + 27 * 81 END DIV 47
----
-45

skipif mysql # not compatible
query I rowsort label-8287
SELECT DISTINCT - CASE 85 WHEN - 66 + - 92 THEN + - 30 WHEN + + 7 THEN - 18 WHEN - 51 - 20 + - COALESCE ( - 58, 11 ) + - 41 + 61 + CASE - 14 WHEN 17 * - 46 + - MIN ( ALL + 31 ) THEN NULL ELSE + ( 43 ) * 47 - - + 77 * + NULLIF ( - 66, - 18 * + 55 / + - 40 * - 88 ) END * NULLIF ( + 77, + 73 ) * 41 + - 76 * - 73 THEN + 51 * 85 ELSE - 41 + 27 * 81 END / 47
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT 33 + CASE + NULLIF ( - 60, - 82 ) WHEN 57 THEN NULL WHEN - COUNT( * ) THEN + NULLIF ( 6, + 24 ) + 98 WHEN - 7 THEN NULL ELSE NULL END + - 2 * - 42 * + + 93 + - SUM( DISTINCT + 48 ) / - - 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8288
SELECT 33 + CASE + NULLIF ( - 60, - 82 ) WHEN 57 THEN NULL WHEN - COUNT ( * ) THEN + NULLIF ( 6, + 24 ) + 98 WHEN - 7 THEN NULL ELSE NULL END + - 2 * - 42 * + + 93 + - SUM ( DISTINCT + 48 ) / - - 12 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 33 - 4 AS col2
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8290
SELECT ALL + COALESCE ( COALESCE ( + 42, 35 ), CAST( NULL AS SIGNED ) * - - 38 - ( + - 76 ) ) - + ( 16 ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-8290
SELECT ALL + COALESCE ( COALESCE ( + 42, 35 ), CAST ( NULL AS INTEGER ) * - - 38 - ( + - 76 ) ) - + ( 16 ) AS col1
----
26

onlyif mysql # DIV for integer division: 
query II rowsort label-8291
SELECT DISTINCT - 61 DIV + + 59, - 87 * - 33 + - 61 AS col1
----
-1
2810

skipif mysql # not compatible
query II rowsort label-8291
SELECT DISTINCT - 61 / + + 59, - 87 * - 33 + - 61 AS col1
----
-1
2810

query I rowsort
SELECT 29 * + - 50
----
-1450

onlyif mysql # aggregate syntax: 
query II rowsort label-8293
SELECT 3 * + - ( + 76 ) * - - COUNT( 1 ) AS col1, 2 + 99 * + - 70
----
-228
-6928

skipif mysql # not compatible
query II rowsort label-8293
SELECT 3 * + - ( + 76 ) * - - COUNT ( 1 ) AS col1, 2 + 99 * + - 70
----
-228
-6928

query I rowsort
SELECT COALESCE ( 53, 71 + - 48, - 0 * 97 * - 83 - - - 87, + - 77 ) * 35 AS col2
----
1855

onlyif mysql # aggregate syntax: 
query I rowsort label-8295
SELECT - COUNT( * ) * - ( + - 55 ) + + 65 + 33 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-8295
SELECT - COUNT ( * ) * - ( + - 55 ) + + 65 + 33 AS col0
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8296
SELECT + 36 DIV + 73 * 77 * COUNT( * ) * COUNT( * ) + + - COUNT( * ) * 65 AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-8296
SELECT + 36 / + 73 * 77 * COUNT ( * ) * COUNT ( * ) + + - COUNT ( * ) * 65 AS col0
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8297
SELECT NULLIF ( + 64, CAST( NULL AS SIGNED ) * + + 6 ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8297
SELECT NULLIF ( + 64, CAST ( NULL AS INTEGER ) * + + 6 ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8298
SELECT CAST( + 47 AS SIGNED ) * + 2 + - SUM( DISTINCT - 75 ) - ( + 65 ) DIV + 38 - + ( 90 ) + 14 AS col2
----
92

skipif mysql # not compatible
query I rowsort label-8298
SELECT CAST ( + 47 AS INTEGER ) * + 2 + - SUM ( DISTINCT - 75 ) - ( + 65 ) / + 38 - + ( 90 ) + 14 AS col2
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8299
SELECT COUNT( * ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8299
SELECT COUNT ( * ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8300
SELECT CASE - - CAST( COUNT( * ) AS SIGNED ) WHEN 3 + + 15 THEN + 17 END * COUNT( * ) / 58 * - SUM( ALL + 12 ) / + CASE - 96 WHEN - 26 THEN 58 * 2 WHEN + 80 THEN NULL END + + - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-8300
SELECT CASE - - CAST ( COUNT ( * ) AS INTEGER ) WHEN 3 + + 15 THEN + 17 END * COUNT ( * ) / 58 * - SUM ( ALL + 12 ) / + CASE - 96 WHEN - 26 THEN 58 * 2 WHEN + 80 THEN NULL END + + - 82
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8301
SELECT DISTINCT 18 * + COUNT( * ) AS col1, + ( - - 4 )
----
18
4

skipif mysql # not compatible
query II rowsort label-8301
SELECT DISTINCT 18 * + COUNT ( * ) AS col1, + ( - - 4 )
----
18
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8302
SELECT - 90 * COUNT( * ) + MIN( - 25 ) + + 86 + + CASE 43 WHEN 64 THEN NULL WHEN + CAST( - 62 AS SIGNED ) * + 69 THEN - 15 END * - 50 - - + 63 * - 79 * - 28 * + + 25 * + - 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8302
SELECT - 90 * COUNT ( * ) + MIN ( - 25 ) + + 86 + + CASE 43 WHEN 64 THEN NULL WHEN + CAST ( - 62 AS INTEGER ) * + 69 THEN - 15 END * - 50 - - + 63 * - 79 * - 28 * + + 25 * + - 56 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT - NULLIF ( 5, + 83 ) * - COUNT( * ) * 76
----
380

skipif mysql # not compatible
query I rowsort label-8303
SELECT - NULLIF ( 5, + 83 ) * - COUNT ( * ) * 76
----
380

query I rowsort
SELECT ( - 75 ) + + + 92 + + 13 * 40
----
537

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8305
SELECT DISTINCT - COUNT( * ) * 90 DIV 25 DIV + COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-8305
SELECT DISTINCT - COUNT ( * ) * 90 / 25 / + COUNT ( * )
----
-3

query I rowsort
SELECT ALL - - 80 col2
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8307
SELECT + 19 + + + CASE + CAST( + 4 AS SIGNED ) WHEN 48 THEN NULL ELSE + - 4 + + 78 END AS col2
----
93

skipif mysql # not compatible
query I rowsort label-8307
SELECT + 19 + + + CASE + CAST ( + 4 AS INTEGER ) WHEN 48 THEN NULL ELSE + - 4 + + 78 END AS col2
----
93

query I rowsort
SELECT 67 * 13 * - + 17 AS col2
----
-14807

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT - MIN( DISTINCT - 79 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-8309
SELECT - MIN ( DISTINCT - 79 ) AS col0
----
79

query I rowsort
SELECT ALL - 65 + + 16 + - + 85
----
-134

query I rowsort
SELECT DISTINCT 42 * + 23
----
966

query I rowsort
SELECT ALL - 96 * + + 52 AS col1
----
-4992

onlyif mysql # aggregate syntax: 
query I rowsort label-8313
SELECT ( + COUNT( * ) ) - - COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-8313
SELECT ( + COUNT ( * ) ) - - COUNT ( * ) AS col0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-8314
SELECT 78 DIV - + NULLIF ( - 46, - 58 + + + 44 ) + - 73 * + 81 AS col0
----
-5912

skipif mysql # not compatible
query I rowsort label-8314
SELECT 78 / - + NULLIF ( - 46, - 58 + + + 44 ) + - 73 * + 81 AS col0
----
-5912

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8315
SELECT DISTINCT - + COUNT( * ) * + COUNT( DISTINCT - 56 ) * + + 38 DIV + - 8 + - - 42
----
46

skipif mysql # not compatible
query I rowsort label-8315
SELECT DISTINCT - + COUNT ( * ) * + COUNT ( DISTINCT - 56 ) * + + 38 / + - 8 + - - 42
----
46

query I rowsort
SELECT - 52 * ( 81 ) col0
----
-4212

query II rowsort
SELECT 26 * + 92, 9 AS col1
----
2392
9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8318
SELECT MIN( - 25 ), 74 / - CAST( NULL AS DECIMAL ) / + 55 AS col0
----
-25
NULL

skipif mysql # not compatible
query II rowsort label-8318
SELECT MIN ( - 25 ), 74 / - CAST ( NULL AS REAL ) / + 55 AS col0
----
-25
NULL

query I rowsort
SELECT ALL + 38 + - 55
----
-17

query I rowsort
SELECT 47 * - 50 AS col0
----
-2350

query I rowsort
SELECT 34 * + + 78 + + - NULLIF ( 92, 22 ) AS col1
----
2560

onlyif mysql # aggregate syntax: 
query I rowsort label-8322
SELECT - + SUM( ALL ( - 76 ) )
----
76

skipif mysql # not compatible
query I rowsort label-8322
SELECT - + SUM ( ALL ( - 76 ) )
----
76

query I rowsort
SELECT DISTINCT 67 - + 61 + + 18
----
24

query I rowsort
SELECT ALL 74 * + 87 AS col2
----
6438

onlyif mysql # aggregate syntax: 
query II rowsort label-8325
SELECT 3 + ( - 89 ), COUNT( * ) col1
----
-86
1

skipif mysql # not compatible
query II rowsort label-8325
SELECT 3 + ( - 89 ), COUNT ( * ) col1
----
-86
1

query I rowsort
SELECT 38 * + 58
----
2204

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT 22 + - + COUNT( * ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-8327
SELECT 22 + - + COUNT ( * ) AS col2
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-8328
SELECT 28 DIV 10
----
2

skipif mysql # not compatible
query I rowsort label-8328
SELECT 28 / 10
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-8329
SELECT 64 * 42 DIV - + 76 AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-8329
SELECT 64 * 42 / - + 76 AS col2
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8330
SELECT DISTINCT - COUNT( * ) DIV 24 * - - 78 * + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8330
SELECT DISTINCT - COUNT ( * ) / 24 * - - 78 * + COUNT ( * ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8331
SELECT - 94 / COUNT( * ) + CASE + 89 WHEN - 65 * - - COALESCE ( - - COUNT( * ), - - 39 ) / + NULLIF ( 35, + - 35 * - 78 * - - 50 + + 90 - + - 95 + + - 77 * + COUNT( * ) / - 50 ) THEN + CAST( - - 47 AS SIGNED ) * - 49 - - 95 + - 58 + - 87 * + MIN( ALL + 4 ) END + + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-8331
SELECT - 94 / COUNT ( * ) + CASE + 89 WHEN - 65 * - - COALESCE ( - - COUNT ( * ), - - 39 ) / + NULLIF ( 35, + - 35 * - 78 * - - 50 + + 90 - + - 95 + + - 77 * + COUNT ( * ) / - 50 ) THEN + CAST ( - - 47 AS INTEGER ) * - 49 - - 95 + - 58 + - 87 * + MIN ( ALL + 4 ) END + + 16
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8332
SELECT ALL - CASE + ( - 78 ) WHEN - 15 THEN - 2 + + - COUNT( * ) + - - ( + + 97 ) WHEN + - NULLIF ( COALESCE ( + - 33, + 3 * + 96 ), - - 67 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8332
SELECT ALL - CASE + ( - 78 ) WHEN - 15 THEN - 2 + + - COUNT ( * ) + - - ( + + 97 ) WHEN + - NULLIF ( COALESCE ( + - 33, + 3 * + 96 ), - - 67 ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8333
SELECT DISTINCT - COALESCE ( + 94, - 42, + 5, + - 11 * + MIN( 78 ) + - 53 + + 73 * - 81 * - 47 + - 51 * 3 ) DIV - 16 + - COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-8333
SELECT DISTINCT - COALESCE ( + 94, - 42, + 5, + - 11 * + MIN ( 78 ) + - 53 + + 73 * - 81 * - 47 + - 51 * 3 ) / - 16 + - COUNT ( * )
----
4

query I rowsort
SELECT 47 + 28 * - - 43 * - 87
----
-104701

query I rowsort
SELECT ALL 84 * - 17 AS col1
----
-1428

onlyif mysql # DIV for integer division: 
query I rowsort label-8336
SELECT 54 DIV - 8 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-8336
SELECT 54 / - 8 AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8337
SELECT DISTINCT + 28 * - COUNT( * ) * - - 27 + - 22 + + 38 + + 7 + - ( - + 36 ) * - 18 * - 47 AS col2
----
29723

skipif mysql # not compatible
query I rowsort label-8337
SELECT DISTINCT + 28 * - COUNT ( * ) * - - 27 + - 22 + + 38 + + 7 + - ( - + 36 ) * - 18 * - 47 AS col2
----
29723

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8338
SELECT 63 * + 77 * + CAST( 7 AS SIGNED )
----
33957

skipif mysql # not compatible
query I rowsort label-8338
SELECT 63 * + 77 * + CAST ( 7 AS INTEGER )
----
33957

onlyif mysql # aggregate syntax: 
query I rowsort label-8339
SELECT ALL COUNT( * ) * + 34 + - ( + 38 ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-8339
SELECT ALL COUNT ( * ) * + 34 + - ( + 38 ) AS col0
----
-4

query I rowsort
SELECT - 36 * - + 32
----
1152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8341
SELECT - 54 / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8341
SELECT - 54 / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8342
SELECT + + CAST( - 84 AS SIGNED ) + CAST( NULL AS SIGNED ) + + - 1 + - + COUNT( * ) + - 89 * + 7 / + 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8342
SELECT + + CAST ( - 84 AS INTEGER ) + CAST ( NULL AS INTEGER ) + + - 1 + - + COUNT ( * ) + - 89 * + 7 / + 46 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8343
SELECT DISTINCT 83 * + 80 + COUNT( * ) AS col0
----
6641

skipif mysql # not compatible
query I rowsort label-8343
SELECT DISTINCT 83 * + 80 + COUNT ( * ) AS col0
----
6641

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8344
SELECT ALL MAX( 52 ) * COUNT( * ) + + 21 DIV - 93 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-8344
SELECT ALL MAX ( 52 ) * COUNT ( * ) + + 21 / - 93 AS col1
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8345
SELECT + + CAST( + 41 AS SIGNED )
----
41

skipif mysql # not compatible
query I rowsort label-8345
SELECT + + CAST ( + 41 AS INTEGER )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8346
SELECT DISTINCT 91 * - 15 + - COUNT( * )
----
-1366

skipif mysql # not compatible
query I rowsort label-8346
SELECT DISTINCT 91 * - 15 + - COUNT ( * )
----
-1366

query I rowsort
SELECT ALL + 36 * - 64 * 25 + + + 23 col2
----
-57577

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT ALL - 75 + - - 47 - + + 70 + - - 63 - NULLIF ( ( + + COUNT( DISTINCT + 36 ) ), - COUNT( * ) + + 81 * 45 ) * - 74 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-8348
SELECT ALL - 75 + - - 47 - + + 70 + - - 63 - NULLIF ( ( + + COUNT ( DISTINCT + 36 ) ), - COUNT ( * ) + + 81 * 45 ) * - 74 AS col0
----
39

query II rowsort
SELECT + 25 col1, 40
----
25
40

query I rowsort
SELECT + + 48 - - 26 AS col2
----
74

query I rowsort
SELECT DISTINCT + NULLIF ( + 60, + 48 ) * + 56 AS col1
----
3360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8352
SELECT + SUM( + ( + 68 ) ) * 24 * + COALESCE ( 18, + - 37 ) - 22 + CAST( NULL AS SIGNED ) + CAST( - CASE - - ( - 6 ) WHEN - COUNT( DISTINCT 12 ) * - + 3 + + + 21 THEN NULL WHEN + - CAST( NULL AS DECIMAL ) THEN - + 77 * 61 + COALESCE ( - 89, - 69, COUNT( * ) ) + + - 42 + + 9 WHEN - + 50 * 25 * - COUNT( * ) * - - 97 * - 58 - - 75 THEN + CAST( NULL AS SIGNED ) - - 71 + - - 38 * - ( COUNT( * ) / + 37 ) WHEN - 9 THEN 93 + + 38 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8352
SELECT + SUM ( + ( + 68 ) ) * 24 * + COALESCE ( 18, + - 37 ) - 22 + CAST ( NULL AS INTEGER ) + CAST ( - CASE - - ( - 6 ) WHEN - COUNT ( DISTINCT 12 ) * - + 3 + + + 21 THEN NULL WHEN + - CAST ( NULL AS REAL ) THEN - + 77 * 61 + COALESCE ( - 89, - 69, COUNT ( * ) ) + + - 42 + + 9 WHEN - + 50 * 25 * - COUNT ( * ) * - - 97 * - 58 - - 75 THEN + CAST ( NULL AS INTEGER ) - - 71 + - - 38 * - ( COUNT ( * ) / + 37 ) WHEN - 9 THEN 93 + + 38 END AS INTEGER )
----
NULL

query I rowsort
SELECT + - 73 - 61
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-8354
SELECT ALL - 9 * - COUNT( * ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-8354
SELECT ALL - 9 * - COUNT ( * ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8355
SELECT + 72 + + 55 * + 37 + - + SUM( - + 99 ) + + 23
----
2229

skipif mysql # not compatible
query I rowsort label-8355
SELECT + 72 + + 55 * + 37 + - + SUM ( - + 99 ) + + 23
----
2229

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT ALL 60 * - COUNT( * ) - - - SUM( DISTINCT 64 ) AS col2
----
-124

skipif mysql # not compatible
query I rowsort label-8356
SELECT ALL 60 * - COUNT ( * ) - - - SUM ( DISTINCT 64 ) AS col2
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-8357
SELECT ALL COUNT( ALL + 58 )
----
1

skipif mysql # not compatible
query I rowsort label-8357
SELECT ALL COUNT ( ALL + 58 )
----
1

query I rowsort
SELECT + 62 + - 66 AS col2
----
-4

query I rowsort
SELECT + 38 + + 18 col1
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-8360
SELECT + 56 + 24 + - COALESCE ( - ( 80 ), - 19 * - 70 + + 57 + - 88 - - 50 * - 37 DIV + + 24 ) + - - 38 * + 21 * 70 * - + 67 AS col1
----
-3742460

skipif mysql # not compatible
query I rowsort label-8360
SELECT + 56 + 24 + - COALESCE ( - ( 80 ), - 19 * - 70 + + 57 + - 88 - - 50 * - 37 / + + 24 ) + - - 38 * + 21 * 70 * - + 67 AS col1
----
-3742460

onlyif mysql # aggregate syntax: 
query I rowsort label-8361
SELECT - NULLIF ( - COUNT( * ), COALESCE ( ( + - 15 ), 75 - - COUNT( * ), - 72 + + 71 * - + COALESCE ( + AVG ( DISTINCT - + 21 ), 46 ) * - 35 ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-8361
SELECT - NULLIF ( - COUNT ( * ), COALESCE ( ( + - 15 ), 75 - - COUNT ( * ), - 72 + + 71 * - + COALESCE ( + AVG ( DISTINCT - + 21 ), 46 ) * - 35 ) ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8362
SELECT - 32 + - 29 - - + CASE 29 WHEN + 49 THEN + 59 END * + 16 * + - 25 - - MAX( + 82 ) / + COUNT( + 25 ) * + - 41 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8362
SELECT - 32 + - 29 - - + CASE 29 WHEN + 49 THEN + 59 END * + 16 * + - 25 - - MAX ( + 82 ) / + COUNT ( + 25 ) * + - 41 AS col1
----
NULL

query I rowsort
SELECT + 79 * + 55
----
4345

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8364
SELECT 92, ( 86 ) * 38 + 16 + COUNT( ALL ( - 25 ) ) - + 63 + - 69 + + COALESCE ( + 88, 37 + + CASE + - 5 WHEN 37 THEN + 42 END * - + NULLIF ( - 54, 13 ) * - + 87 ) * + COALESCE ( + - CASE - - CAST( NULL AS SIGNED ) WHEN - 99 + - 23 + - - MAX( - 95 ) THEN + + COUNT( * ) DIV ( + + COUNT( * ) ) - - COALESCE ( - + 40, NULLIF ( + 4, + COUNT( * ) + - 92 ), 57 ) WHEN + 13 + + 93 * 85 THEN NULL ELSE 93 - 81 END, + 91, 43 + 36 * 63 ) * - 87 AS col2
----
92
95025

skipif mysql # not compatible
query II rowsort label-8364
SELECT 92, ( 86 ) * 38 + 16 + COUNT ( ALL ( - 25 ) ) - + 63 + - 69 + + COALESCE ( + 88, 37 + + CASE + - 5 WHEN 37 THEN + 42 END * - + NULLIF ( - 54, 13 ) * - + 87 ) * + COALESCE ( + - CASE - - CAST ( NULL AS INTEGER ) WHEN - 99 + - 23 + - - MAX ( - 95 ) THEN + + COUNT ( * ) / ( + + COUNT ( * ) ) - - COALESCE ( - + 40, NULLIF ( + 4, + COUNT ( * ) + - 92 ), 57 ) WHEN + 13 + + 93 * 85 THEN NULL ELSE 93 - 81 END, + 91, 43 + 36 * 63 ) * - 87 AS col2
----
92
95025

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT DISTINCT COUNT( * ) + 26 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-8365
SELECT DISTINCT COUNT ( * ) + 26 AS col2
----
27

query I rowsort
SELECT ALL - 99 + + - ( + 34 ) AS col0
----
-133

query I rowsort
SELECT - 49 * - + ( + 57 ) * 96 * - 49
----
-13138272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8368
SELECT ALL CASE + MIN( ALL - ( + 16 ) ) WHEN + + CAST( NULL AS SIGNED ) * - 51 + + - 46 THEN NULL WHEN - 23 THEN NULL WHEN - - 95 THEN 82 END + 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8368
SELECT ALL CASE + MIN ( ALL - ( + 16 ) ) WHEN + + CAST ( NULL AS INTEGER ) * - 51 + + - 46 THEN NULL WHEN - 23 THEN NULL WHEN - - 95 THEN 82 END + 15 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8369
SELECT CAST( NULL AS SIGNED ), + 8 col1
----
NULL
8

skipif mysql # not compatible
query II rowsort label-8369
SELECT CAST ( NULL AS INTEGER ), + 8 col1
----
NULL
8

query I rowsort
SELECT + ( + 37 )
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8371
SELECT ALL + 8, - COUNT( * ) / ( - CAST( NULL AS SIGNED ) ) / + ( - - 34 ) AS col1
----
8
NULL

skipif mysql # not compatible
query II rowsort label-8371
SELECT ALL + 8, - COUNT ( * ) / ( - CAST ( NULL AS INTEGER ) ) / + ( - - 34 ) AS col1
----
8
NULL

query I rowsort
SELECT + 13 * + 7
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8373
SELECT - NULLIF ( + 57, + + COUNT( * ) + + 96 ) * COUNT( * ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-8373
SELECT - NULLIF ( + 57, + + COUNT ( * ) + + 96 ) * COUNT ( * ) AS col2
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-8374
SELECT ALL + 76 * 59 DIV + ( - 32 ) + 13
----
-127

skipif mysql # not compatible
query I rowsort label-8374
SELECT ALL + 76 * 59 / + ( - 32 ) + 13
----
-127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8375
SELECT + 23 * + 67 * - COALESCE ( ( ( + + 34 ) ), NULLIF ( + 14, - 98 ) * - 33 + + AVG ( DISTINCT 91 ) * - COUNT( * ) / 1 ) - + CASE 92 WHEN ( - + CASE 40 WHEN - COALESCE ( - + 25, CAST( NULL AS SIGNED ) ) * + 13 / + 5 * - COALESCE ( + + AVG ( ALL - CASE + ( NULLIF ( + + 22, + - 71 ) ) WHEN - 73 THEN 91 WHEN + 19 THEN NULL END ), + + 7, - 41 ) * - 12 THEN NULL ELSE 64 END ) THEN + 38 + ( - 94 + - CAST( - AVG ( DISTINCT 65 ) AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8375
SELECT + 23 * + 67 * - COALESCE ( ( ( + + 34 ) ), NULLIF ( + 14, - 98 ) * - 33 + + AVG ( DISTINCT 91 ) * - COUNT ( * ) / 1 ) - + CASE 92 WHEN ( - + CASE 40 WHEN - COALESCE ( - + 25, CAST ( NULL AS INTEGER ) ) * + 13 / + 5 * - COALESCE ( + + AVG ( ALL - CASE + ( NULLIF ( + + 22, + - 71 ) ) WHEN - 73 THEN 91 WHEN + 19 THEN NULL END ), + + 7, - 41 ) * - 12 THEN NULL ELSE 64 END ) THEN + 38 + ( - 94 + - CAST ( - AVG ( DISTINCT 65 ) AS INTEGER ) ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8376
SELECT ALL + - COALESCE ( + + 98, + - 57, - NULLIF ( + 22, - 94 + - - CASE + ( + - NULLIF ( + + 34, - ( - CASE + - CAST( NULL AS SIGNED ) WHEN ( - + CAST( + 93 AS SIGNED ) ) - - + 28 + + 33 THEN - MIN( - 28 ) END ) ) ) WHEN + 78 / 39 THEN NULL WHEN - CAST( - - COUNT( * ) AS SIGNED ) THEN + AVG ( ALL + NULLIF ( + 35, + 32 + 62 + - - 43 * + 99 ) ) + ( COALESCE ( + CASE 68 WHEN - 27 * - CAST( NULL AS SIGNED ) THEN MAX( - 1 ) ELSE 75 END, ( - 4 ) ) ) END * + AVG ( ALL - 69 ) ) + + 62 ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-8376
SELECT ALL + - COALESCE ( + + 98, + - 57, - NULLIF ( + 22, - 94 + - - CASE + ( + - NULLIF ( + + 34, - ( - CASE + - CAST ( NULL AS INTEGER ) WHEN ( - + CAST ( + 93 AS INTEGER ) ) - - + 28 + + 33 THEN - MIN ( - 28 ) END ) ) ) WHEN + 78 / 39 THEN NULL WHEN - CAST ( - - COUNT ( * ) AS INTEGER ) THEN + AVG ( ALL + NULLIF ( + 35, + 32 + 62 + - - 43 * + 99 ) ) + ( COALESCE ( + CASE 68 WHEN - 27 * - CAST ( NULL AS INTEGER ) THEN MAX ( - 1 ) ELSE 75 END, ( - 4 ) ) ) END * + AVG ( ALL - 69 ) ) + + 62 ) AS col1
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8377
SELECT DISTINCT 89 * + 57 * + CAST( NULL AS SIGNED ) - + 70 * - 62 + - - 8 + - + 53 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8377
SELECT DISTINCT 89 * + 57 * + CAST ( NULL AS INTEGER ) - + 70 * - 62 + - - 8 + - + 53 col2
----
NULL

query I rowsort
SELECT + + 15 AS col1
----
15

query I rowsort
SELECT ALL - 82 * + - 59 * + 22 + + 40 * - + 19 + - 16 * - 49 AS col0
----
106460

onlyif mysql # aggregate syntax: 
query I rowsort label-8380
SELECT ALL - 46 * + MAX( ALL - ( - 8 ) ) + + 72 + 44 + - 18 * - - COUNT( * ) AS col0
----
-270

skipif mysql # not compatible
query I rowsort label-8380
SELECT ALL - 46 * + MAX ( ALL - ( - 8 ) ) + + 72 + 44 + - 18 * - - COUNT ( * ) AS col0
----
-270

onlyif mysql # aggregate syntax: 
query II rowsort label-8381
SELECT 24 * + 43 * COUNT( * ) - - CASE + MIN( DISTINCT - - 21 ) WHEN - - 6 THEN + 45 + + - COALESCE ( + + 40, 84 ) WHEN - - 59 THEN - COALESCE ( - - 95, 78 ) END + 38 AS col1, COALESCE ( 35, + + 23, - + 43 )
----
NULL
35

skipif mysql # not compatible
query II rowsort label-8381
SELECT 24 * + 43 * COUNT ( * ) - - CASE + MIN ( DISTINCT - - 21 ) WHEN - - 6 THEN + 45 + + - COALESCE ( + + 40, 84 ) WHEN - - 59 THEN - COALESCE ( - - 95, 78 ) END + 38 AS col1, COALESCE ( 35, + + 23, - + 43 )
----
NULL
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8382
SELECT ALL - COUNT( * ) * - 53 + 30 col1
----
83

skipif mysql # not compatible
query I rowsort label-8382
SELECT ALL - COUNT ( * ) * - 53 + 30 col1
----
83

query I rowsort
SELECT + 17 + 73 AS col2
----
90

query II rowsort
SELECT + 54 AS col1, 43
----
54
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT DISTINCT + COALESCE ( + - ( - + MAX( DISTINCT - 49 ) ), - - COUNT( * ) ) * + 86 - + ( - 33 ) + - 74 + + - 72 * + ( 70 ) * + 23 * + + 92
----
-10668895

skipif mysql # not compatible
query I rowsort label-8385
SELECT DISTINCT + COALESCE ( + - ( - + MAX ( DISTINCT - 49 ) ), - - COUNT ( * ) ) * + 86 - + ( - 33 ) + - 74 + + - 72 * + ( 70 ) * + 23 * + + 92
----
-10668895

query I rowsort
SELECT NULLIF ( + - 30, - 32 )
----
-30

query II rowsort
SELECT DISTINCT 32 AS col2, 1 AS col2
----
32
1

query I rowsort
SELECT ALL + 97 * + - 34 * + 45
----
-148410

query I rowsort
SELECT - + COALESCE ( + 49, + - 40 )
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8390
SELECT ALL + CAST( - CASE - - MIN( - CAST( + 53 AS SIGNED ) ) WHEN 50 + - + 57 THEN - 90 END AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8390
SELECT ALL + CAST ( - CASE - - MIN ( - CAST ( + 53 AS INTEGER ) ) WHEN 50 + - + 57 THEN - 90 END AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8391
SELECT - ( + CAST( NULL AS SIGNED ) ) AS col2, 81 DIV + ( COUNT( * ) )
----
NULL
81

skipif mysql # not compatible
query II rowsort label-8391
SELECT - ( + CAST ( NULL AS INTEGER ) ) AS col2, 81 / + ( COUNT ( * ) )
----
NULL
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT + COUNT( * ) * + + SUM( ALL - 95 ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-8392
SELECT + COUNT ( * ) * + + SUM ( ALL - 95 ) AS col2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-8393
SELECT ALL NULLIF ( - - 47, 46 ) * - 99 + + - NULLIF ( + - SUM( - 77 ), - COUNT( * ) ) * + 28 + + 49 AS col2
----
-6760

skipif mysql # not compatible
query I rowsort label-8393
SELECT ALL NULLIF ( - - 47, 46 ) * - 99 + + - NULLIF ( + - SUM ( - 77 ), - COUNT ( * ) ) * + 28 + + 49 AS col2
----
-6760

query II rowsort
SELECT - 27 * - + 36 AS col0, + 93
----
972
93

query I rowsort
SELECT - NULLIF ( + 22, 35 )
----
-22

query I rowsort
SELECT - NULLIF ( - 95, - + COALESCE ( + - 84, - - 61 ) + + 93 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8397
SELECT ALL + ( + - 81 ) + - COUNT( * ) + + + 90
----
8

skipif mysql # not compatible
query I rowsort label-8397
SELECT ALL + ( + - 81 ) + - COUNT ( * ) + + + 90
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT + MIN( + - 17 ) - - - 79 AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-8398
SELECT + MIN ( + - 17 ) - - - 79 AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT ALL MIN( ALL - 80 ) * MAX( + 90 ) AS col1
----
-7200

skipif mysql # not compatible
query I rowsort label-8399
SELECT ALL MIN ( ALL - 80 ) * MAX ( + 90 ) AS col1
----
-7200

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8400
SELECT 47 + + + ( - 24 ) - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8400
SELECT 47 + + + ( - 24 ) - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8401
SELECT 82 - + COUNT( * ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-8401
SELECT 82 - + COUNT ( * ) AS col0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8402
SELECT COUNT( ALL 0 ) + + 30 - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8402
SELECT COUNT ( ALL 0 ) + + 30 - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8403
SELECT DISTINCT - 67 + + + 27 AS col2, CAST( NULL AS SIGNED ) col1
----
-40
NULL

skipif mysql # not compatible
query II rowsort label-8403
SELECT DISTINCT - 67 + + + 27 AS col2, CAST ( NULL AS INTEGER ) col1
----
-40
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8404
SELECT ALL + 8 + - 60 + 66 + + 7 + 54 * - SUM( 91 ) / 72 + + - 36 + + + COUNT( ALL + 14 ) + 35 * + - 25 + COUNT( * ) + - 44 / + + 76 * - 50 - + 64 + + ( COUNT( * ) ) * + + CASE - 36 WHEN - - 79 THEN NULL WHEN + - 33 THEN NULL WHEN - 51 THEN - - 64 ELSE NULL END / + - AVG ( - 29 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8404
SELECT ALL + 8 + - 60 + 66 + + 7 + 54 * - SUM ( 91 ) / 72 + + - 36 + + + COUNT ( ALL + 14 ) + 35 * + - 25 + COUNT ( * ) + - 44 / + + 76 * - 50 - + 64 + + ( COUNT ( * ) ) * + + CASE - 36 WHEN - - 79 THEN NULL WHEN + - 33 THEN NULL WHEN - 51 THEN - - 64 ELSE NULL END / + - AVG ( - 29 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 31 * - - 45 + 57 + - 88
----
1364

onlyif mysql # aggregate syntax: 
query I rowsort label-8406
SELECT - 66 * + + NULLIF ( - COUNT( + ( - 24 ) ), - + 55 * + AVG ( ALL - 40 ) ) + - 81 - 57 + + + 88 col0
----
16

skipif mysql # not compatible
query I rowsort label-8406
SELECT - 66 * + + NULLIF ( - COUNT ( + ( - 24 ) ), - + 55 * + AVG ( ALL - 40 ) ) + - 81 - 57 + + + 88 col0
----
16

query I rowsort
SELECT ( - ( - + 30 ) ) * + + 51 AS col1
----
1530

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8408
SELECT - ( CAST( NULL AS DECIMAL ) ) * + COALESCE ( 76, + + 28 * - 38, - ( - 71 ) / + 88 * - + 13 ) * - MAX( + 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8408
SELECT - ( CAST ( NULL AS REAL ) ) * + COALESCE ( 76, + + 28 * - 38, - ( - 71 ) / + 88 * - + 13 ) * - MAX ( + 93 )
----
NULL

query II rowsort
SELECT + ( 48 ) AS col1, + 98 AS col1
----
48
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8410
SELECT ALL - + CAST( + ( + 86 ) AS SIGNED ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-8410
SELECT ALL - + CAST ( + ( + 86 ) AS INTEGER ) AS col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8411
SELECT - 45 * - 70 * - 49 + - COUNT( * ) AS col1
----
-154351

skipif mysql # not compatible
query I rowsort label-8411
SELECT - 45 * - 70 * - 49 + - COUNT ( * ) AS col1
----
-154351

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8412
SELECT - + CASE + 92 WHEN + 59 + + 26 * COALESCE ( + 74, + + ( - 93 ) ) + + ( + - 65 ) + + 59 * + 5 - + ( + ( - ( - AVG ( + CAST( 74 AS SIGNED ) ) ) ) ) + + ( - - 75 ) + - 96 / + - COUNT( * ) THEN NULL WHEN + ( - - 42 ) THEN NULL ELSE - + ( COALESCE ( + 48, COUNT( * ) + + 13 ) ) END * + + 9 * - 20 - - CAST( NULL AS SIGNED ) - + - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-8412
SELECT - + CASE + 92 WHEN + 59 + + 26 * COALESCE ( + 74, + + ( - 93 ) ) + + ( + - 65 ) + + 59 * + 5 - + ( + ( - ( - AVG ( + CAST ( 74 AS INTEGER ) ) ) ) ) + + ( - - 75 ) + - 96 / + - COUNT ( * ) THEN NULL WHEN + ( - - 42 ) THEN NULL ELSE - + ( COALESCE ( + 48, COUNT ( * ) + + 13 ) ) END * + + 9 * - 20 - - CAST ( NULL AS INTEGER ) - + - 43
----
NULL

query I rowsort
SELECT DISTINCT + + CASE 70 WHEN 23 THEN - 44 WHEN 13 THEN NULL ELSE NULL END * + 68 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8414
SELECT ALL - + CAST( - + 20 AS SIGNED )
----
20

skipif mysql # not compatible
query I rowsort label-8414
SELECT ALL - + CAST ( - + 20 AS INTEGER )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8415
SELECT - ( 22 ) * COUNT( * ) + + COALESCE ( - 87, + 72 ) + + - NULLIF ( + COUNT( * ), + - 6 )
----
-110

skipif mysql # not compatible
query I rowsort label-8415
SELECT - ( 22 ) * COUNT ( * ) + + COALESCE ( - 87, + 72 ) + + - NULLIF ( + COUNT ( * ), + - 6 )
----
-110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8416
SELECT ALL - COUNT( * ) DIV 52 * + CAST( + MIN( 31 ) AS SIGNED ) + + MIN( + - 90 ) AS col0, 59 AS col1
----
-90
59

skipif mysql # not compatible
query II rowsort label-8416
SELECT ALL - COUNT ( * ) / 52 * + CAST ( + MIN ( 31 ) AS INTEGER ) + + MIN ( + - 90 ) AS col0, 59 AS col1
----
-90
59

query I rowsort
SELECT ALL - + 86 * - 85 + - + ( - 36 ) AS col0
----
7346

query I rowsort
SELECT DISTINCT - + ( + - 38 ) * + + 63
----
2394

onlyif mysql # DIV for integer division: 
query I rowsort label-8419
SELECT 42 DIV 41 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8419
SELECT 42 / 41 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT ALL - 98 * MAX( ALL 79 ) * - 36 * 73 AS col1
----
20345976

skipif mysql # not compatible
query I rowsort label-8420
SELECT ALL - 98 * MAX ( ALL 79 ) * - 36 * 73 AS col1
----
20345976

query I rowsort
SELECT 48 - 72 AS col1
----
-24

query I rowsort
SELECT 22 * + 39
----
858

query I rowsort
SELECT ALL + 25 + - 77
----
-52

query I rowsort
SELECT 28 + + 2
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8425
SELECT ALL - ( CAST( 32 AS SIGNED ) ) + + 74 + - CAST( NULL AS SIGNED ) * ( - - MAX( + 36 ) ) * + 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8425
SELECT ALL - ( CAST ( 32 AS INTEGER ) ) + + 74 + - CAST ( NULL AS INTEGER ) * ( - - MAX ( + 36 ) ) * + 36 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8426
SELECT DISTINCT + COUNT( * ) + + 82 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-8426
SELECT DISTINCT + COUNT ( * ) + + 82 AS col1
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-8427
SELECT ALL 67 + - 48 DIV 13 - + ( + - 34 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-8427
SELECT ALL 67 + - 48 / 13 - + ( + - 34 ) AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8428
SELECT COUNT( * ) + 37 * + 66 * - 72 AS col2
----
-175823

skipif mysql # not compatible
query I rowsort label-8428
SELECT COUNT ( * ) + 37 * + 66 * - 72 AS col2
----
-175823

query I rowsort
SELECT ALL + ( 97 ) + - - 66
----
163

onlyif mysql # aggregate syntax: 
query III rowsort label-8430
SELECT DISTINCT 32 AS col1, + MAX( DISTINCT - ( - - 93 ) ) AS col0, - - 2 AS col1
----
32
-93
2

skipif mysql # not compatible
query III rowsort label-8430
SELECT DISTINCT 32 AS col1, + MAX ( DISTINCT - ( - - 93 ) ) AS col0, - - 2 AS col1
----
32
-93
2

onlyif mysql # aggregate syntax: 
query II rowsort label-8431
SELECT 55 AS col1, COUNT( * ) + - 27 + 9 AS col0
----
55
-17

skipif mysql # not compatible
query II rowsort label-8431
SELECT 55 AS col1, COUNT ( * ) + - 27 + 9 AS col0
----
55
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8432
SELECT ALL + 99 + + + COUNT( * )
----
100

skipif mysql # not compatible
query I rowsort label-8432
SELECT ALL + 99 + + + COUNT ( * )
----
100

query I rowsort
SELECT 37 * + 89 AS col1
----
3293

onlyif mysql # aggregate syntax: 
query I rowsort label-8434
SELECT CASE 72 WHEN - - 43 THEN NULL ELSE + COUNT( * ) * + 97 END + 39
----
136

skipif mysql # not compatible
query I rowsort label-8434
SELECT CASE 72 WHEN - - 43 THEN NULL ELSE + COUNT ( * ) * + 97 END + 39
----
136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8435
SELECT DISTINCT 66 + + MIN( ALL - 42 ) DIV + COUNT( * ) DIV COUNT( * ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-8435
SELECT DISTINCT 66 + + MIN ( ALL - 42 ) / + COUNT ( * ) / COUNT ( * ) AS col0
----
24

query II rowsort
SELECT - 48 AS col1, ( - - 80 ) * + 44 AS col2
----
-48
3520

query I rowsort
SELECT 92 + - 68 + + 1 AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT 63 * COUNT( * ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-8438
SELECT 63 * COUNT ( * ) AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8439
SELECT ALL - 91 * - - MIN( DISTINCT - 59 ) AS col2
----
5369

skipif mysql # not compatible
query I rowsort label-8439
SELECT ALL - 91 * - - MIN ( DISTINCT - 59 ) AS col2
----
5369

query I rowsort
SELECT ALL - ( + - 48 ) - - - 18
----
30

query I rowsort
SELECT - 36 * 28 AS col1
----
-1008

onlyif mysql # aggregate syntax: 
query II rowsort label-8442
SELECT - SUM( ( - 34 ) ), 46 * 32 col1
----
34
1472

skipif mysql # not compatible
query II rowsort label-8442
SELECT - SUM ( ( - 34 ) ), 46 * 32 col1
----
34
1472

query II rowsort
SELECT ALL - 57, - 51 AS col0
----
-57
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8444
SELECT - 63 / + COALESCE ( + 81, - 36 / - COUNT( * ) + - 51 * 26 ) / CAST( NULL AS SIGNED ) * + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-8444
SELECT - 63 / + COALESCE ( + 81, - 36 / - COUNT ( * ) + - 51 * 26 ) / CAST ( NULL AS INTEGER ) * + 26
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-8445
SELECT DISTINCT + 55 DIV 51 - + 7 * + + 25 + + NULLIF ( + - 14, + 37 + - + 93 * COUNT( * ) + + CASE 23 WHEN - - COALESCE ( - 28, - + CASE - COUNT( * ) WHEN 40 + - 77 + 34 THEN - 56 DIV + + COUNT( * ) * + NULLIF ( + COUNT( * ), + CASE + COUNT( * ) WHEN - CASE + 91 WHEN + 86 THEN COUNT( * ) * + 84 + MIN( - CAST( NULL AS SIGNED ) ) END * 32 + - COUNT( * ) THEN NULL WHEN + - COUNT( * ) THEN AVG ( DISTINCT CAST( NULL AS DECIMAL ) ) WHEN NULLIF ( + 4, 25 + + 22 ) + 67 THEN NULL END + - 91 ) + + 52 * + SUM( + 68 ) WHEN 15 THEN NULL ELSE NULL END ) + 73 THEN NULL ELSE COUNT( * ) END )
----
-188

skipif mysql # not compatible
query I rowsort label-8445
SELECT DISTINCT + 55 / 51 - + 7 * + + 25 + + NULLIF ( + - 14, + 37 + - + 93 * COUNT ( * ) + + CASE 23 WHEN - - COALESCE ( - 28, - + CASE - COUNT ( * ) WHEN 40 + - 77 + 34 THEN - 56 / + + COUNT ( * ) * + NULLIF ( + COUNT ( * ), + CASE + COUNT ( * ) WHEN - CASE + 91 WHEN + 86 THEN COUNT ( * ) * + 84 + MIN ( - CAST ( NULL AS INTEGER ) ) END * 32 + - COUNT ( * ) THEN NULL WHEN + - COUNT ( * ) THEN AVG ( DISTINCT CAST ( NULL AS REAL ) ) WHEN NULLIF ( + 4, 25 + + 22 ) + 67 THEN NULL END + - 91 ) + + 52 * + SUM ( + 68 ) WHEN 15 THEN NULL ELSE NULL END ) + 73 THEN NULL ELSE COUNT ( * ) END )
----
-188

onlyif mysql # aggregate syntax: 
query I rowsort label-8446
SELECT ALL - SUM( + 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-8446
SELECT ALL - SUM ( + 11 )
----
-11

query I rowsort
SELECT ALL - ( 31 )
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8448
SELECT - 52 + - CAST( - - 15 AS SIGNED ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-8448
SELECT - 52 + - CAST ( - - 15 AS INTEGER ) AS col1
----
-67

query I rowsort
SELECT DISTINCT + 3 * 70 AS col1
----
210

query I rowsort
SELECT ALL 49 * + 80 AS col2
----
3920

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT DISTINCT 67 + - COUNT( * ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-8451
SELECT DISTINCT 67 + - COUNT ( * ) AS col0
----
66

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8452
SELECT 22 DIV + NULLIF ( 39, 90 - - ( - - CAST( + + 31 AS SIGNED ) ) ) * 31
----
0

skipif mysql # not compatible
query I rowsort label-8452
SELECT 22 / + NULLIF ( 39, 90 - - ( - - CAST ( + + 31 AS INTEGER ) ) ) * 31
----
0

query I rowsort
SELECT + NULLIF ( + - 18, 78 / 74 ) AS col2
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-8454
SELECT ALL - 67 + + 65 DIV - 34 AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-8454
SELECT ALL - 67 + + 65 / - 34 AS col1
----
-68

query I rowsort
SELECT ALL 79 + 93
----
172

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8456
SELECT DISTINCT 97 / + + ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8456
SELECT DISTINCT 97 / + + ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL + 94 + 93
----
187

query I rowsort
SELECT - 43 * + + 23
----
-989

query I rowsort
SELECT DISTINCT - 49 + + - 21 AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT DISTINCT CASE - NULLIF ( - + 75, - 3 ) WHEN - 94 THEN NULL WHEN - 40 * + 45 + + + COUNT( * ) + COUNT( DISTINCT 99 ) + + + 61 THEN + 56 / - 57 + + - 60 + MAX( ALL + 90 ) + + - CASE - ( - 33 ) WHEN + 50 + - + 57 * + 82 * ( 87 ) THEN - - 48 END * - + CASE - AVG ( DISTINCT 10 ) WHEN 28 THEN ( - ( - ( - 19 ) ) ) END * 19 * 36 + - 66 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8460
SELECT DISTINCT CASE - NULLIF ( - + 75, - 3 ) WHEN - 94 THEN NULL WHEN - 40 * + 45 + + + COUNT ( * ) + COUNT ( DISTINCT 99 ) + + + 61 THEN + 56 / - 57 + + - 60 + MAX ( ALL + 90 ) + + - CASE - ( - 33 ) WHEN + 50 + - + 57 * + 82 * ( 87 ) THEN - - 48 END * - + CASE - AVG ( DISTINCT 10 ) WHEN 28 THEN ( - ( - ( - 19 ) ) ) END * 19 * 36 + - 66 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT DISTINCT NULLIF ( - COUNT( * ), - - 79 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8461
SELECT DISTINCT NULLIF ( - COUNT ( * ), - - 79 ) AS col1
----
-1

query I rowsort
SELECT - - 81 * 64 + + 45 * - 3 AS col2
----
5049

onlyif mysql # aggregate syntax: 
query II rowsort label-8463
SELECT - ( + + 51 ) + 79 * + 71, - NULLIF ( + + ( + COUNT( * ) ), + SUM( + 36 ) ) AS col0
----
5558
-1

skipif mysql # not compatible
query II rowsort label-8463
SELECT - ( + + 51 ) + 79 * + 71, - NULLIF ( + + ( + COUNT ( * ) ), + SUM ( + 36 ) ) AS col0
----
5558
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8464
SELECT + + 6 - + COUNT( * ) + 5 * - - 13
----
70

skipif mysql # not compatible
query I rowsort label-8464
SELECT + + 6 - + COUNT ( * ) + 5 * - - 13
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-8465
SELECT - NULLIF ( 13, - MAX( DISTINCT - 32 ) ) AS col0, 27
----
-13
27

skipif mysql # not compatible
query II rowsort label-8465
SELECT - NULLIF ( 13, - MAX ( DISTINCT - 32 ) ) AS col0, 27
----
-13
27

query I rowsort
SELECT - - 37 + - - 11
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8467
SELECT + - COUNT( * ) - + + 19
----
-20

skipif mysql # not compatible
query I rowsort label-8467
SELECT + - COUNT ( * ) - + + 19
----
-20

query I rowsort
SELECT - + 20 * 8
----
-160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8469
SELECT + CAST( - + COUNT( - - 30 ) AS SIGNED ) * + 61 + ( 60 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8469
SELECT + CAST ( - + COUNT ( - - 30 ) AS INTEGER ) * + 61 + ( 60 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT DISTINCT - SUM( DISTINCT - 31 ) * 56
----
1736

skipif mysql # not compatible
query I rowsort label-8470
SELECT DISTINCT - SUM ( DISTINCT - 31 ) * 56
----
1736

onlyif mysql # aggregate syntax: 
query I rowsort label-8471
SELECT ALL + - MAX( 35 ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-8471
SELECT ALL + - MAX ( 35 ) AS col1
----
-35

query I rowsort
SELECT ALL - + ( 10 ) * - - 21 AS col1
----
-210

query I rowsort
SELECT + 36 * - 28 AS col1
----
-1008

query I rowsort
SELECT ALL + 90 * - 88
----
-7920

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8475
SELECT + - COUNT( * ) DIV 93
----
0

skipif mysql # not compatible
query I rowsort label-8475
SELECT + - COUNT ( * ) / 93
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8476
SELECT 93 DIV 29 + + 15 * + - 83 AS col2
----
-1242

skipif mysql # not compatible
query I rowsort label-8476
SELECT 93 / 29 + + 15 * + - 83 AS col2
----
-1242

query I rowsort
SELECT DISTINCT + - 42 AS col1
----
-42

query I rowsort
SELECT - + 19 * - 65
----
1235

query I rowsort
SELECT + ( + - 93 )
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8480
SELECT ALL - ( - CAST( NULL AS SIGNED ) ) / + + 40 / - + 76 * CAST( + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8480
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) / + + 40 / - + 76 * CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8481
SELECT + + CAST( + 85 AS SIGNED ) AS col2, 87 + - 22 * - + 91 AS col1
----
85
2089

skipif mysql # not compatible
query II rowsort label-8481
SELECT + + CAST ( + 85 AS INTEGER ) AS col2, 87 + - 22 * - + 91 AS col1
----
85
2089

onlyif mysql # aggregate syntax: 
query II rowsort label-8482
SELECT MAX( + 20 ) * - 63 + + + 49 * 14 + + 1, 29 * - + 33 AS col0
----
-573
-957

skipif mysql # not compatible
query II rowsort label-8482
SELECT MAX ( + 20 ) * - 63 + + + 49 * 14 + + 1, 29 * - + 33 AS col0
----
-573
-957

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8483
SELECT - CAST( NULL AS SIGNED ) * + 94 * - COUNT( * ) + 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8483
SELECT - CAST ( NULL AS INTEGER ) * + 94 * - COUNT ( * ) + 20 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8484
SELECT DISTINCT 62 * + 44 + + MIN( DISTINCT 48 ) col1
----
2776

skipif mysql # not compatible
query I rowsort label-8484
SELECT DISTINCT 62 * + 44 + + MIN ( DISTINCT 48 ) col1
----
2776

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT - COUNT( 53 ) * - + 95 + + + 30 AS col1
----
125

skipif mysql # not compatible
query I rowsort label-8485
SELECT - COUNT ( 53 ) * - + 95 + + + 30 AS col1
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-8486
SELECT + 14 + 60 + + COUNT( * ) + + 76 AS col2
----
151

skipif mysql # not compatible
query I rowsort label-8486
SELECT + 14 + 60 + + COUNT ( * ) + + 76 AS col2
----
151

query I rowsort
SELECT 99 * - 99 + - 78 AS col1
----
-9879

onlyif mysql # aggregate syntax: 
query I rowsort label-8488
SELECT ALL MAX( ALL - + 56 )
----
-56

skipif mysql # not compatible
query I rowsort label-8488
SELECT ALL MAX ( ALL - + 56 )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT COUNT( DISTINCT + - ( + 82 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8489
SELECT COUNT ( DISTINCT + - ( + 82 ) ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8490
SELECT - CAST( + + 3 AS SIGNED ) + - 35 * - MAX( + 44 ) AS col0, COALESCE ( - 35, COUNT( * ) )
----
1537
-35

skipif mysql # not compatible
query II rowsort label-8490
SELECT - CAST ( + + 3 AS INTEGER ) + - 35 * - MAX ( + 44 ) AS col0, COALESCE ( - 35, COUNT ( * ) )
----
1537
-35

query I rowsort
SELECT + 66 * - 6 * - 28
----
11088

query I rowsort
SELECT ALL 90 - + - 36 + - 38 + - 76 * - 76 * - 91 + 84 AS col2
----
-525444

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8493
SELECT - CAST( AVG ( - 1 ) AS SIGNED ) + - - 34
----
35

skipif mysql # not compatible
query I rowsort label-8493
SELECT - CAST ( AVG ( - 1 ) AS INTEGER ) + - - 34
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-8494
SELECT ALL 42 DIV 30 * 32 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-8494
SELECT ALL 42 / 30 * 32 AS col1
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8495
SELECT ALL NULLIF ( - COALESCE ( - COALESCE ( MIN( - CAST( NULL AS SIGNED ) ), + - 71 ), ( + - 73 ) + 27, + 60 + - - 33 - 97 ), + SUM( DISTINCT 61 ) * + + 69 + + 62 ), + 42 AS col2
----
-71
42

skipif mysql # not compatible
query II rowsort label-8495
SELECT ALL NULLIF ( - COALESCE ( - COALESCE ( MIN ( - CAST ( NULL AS INTEGER ) ), + - 71 ), ( + - 73 ) + 27, + 60 + - - 33 - 97 ), + SUM ( DISTINCT 61 ) * + + 69 + + 62 ), + 42 AS col2
----
-71
42

query I rowsort
SELECT DISTINCT + 88 * 11
----
968

query I rowsort
SELECT ALL ( + - ( + 7 ) ) AS col1
----
-7

query II rowsort
SELECT - 77 AS col1, 75 AS col0
----
-77
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT + + ( ( - MIN( ALL - 69 ) ) ) * 70
----
4830

skipif mysql # not compatible
query I rowsort label-8499
SELECT + + ( ( - MIN ( ALL - 69 ) ) ) * 70
----
4830

onlyif mysql # aggregate syntax: 
query I rowsort label-8500
SELECT - - 60 + - COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-8500
SELECT - - 60 + - COUNT ( * )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8501
SELECT DISTINCT + ( ( + 55 ) ) * COUNT( * ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-8501
SELECT DISTINCT + ( ( + 55 ) ) * COUNT ( * ) AS col0
----
55

query I rowsort
SELECT DISTINCT - 53 * + 5 col1
----
-265

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8503
SELECT DISTINCT - + COUNT( * ) * + - 34 DIV + + 37 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8503
SELECT DISTINCT - + COUNT ( * ) * + - 34 / + + 37 AS col1
----
0

query I rowsort
SELECT ALL - 3 + - 86 + 58 * + 13 * + - ( - 71 ) AS col0
----
53445

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8505
SELECT ALL + 45 + + 73 + - - COUNT( ALL - 45 ) DIV - + 97, + 71 + 24 + - + 38 * 3 + + 32 + - 57 AS col1
----
118
-44

skipif mysql # not compatible
query II rowsort label-8505
SELECT ALL + 45 + + 73 + - - COUNT ( ALL - 45 ) / - + 97, + 71 + 24 + - + 38 * 3 + + 32 + - 57 AS col1
----
118
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8506
SELECT - + ( - 65 ) - - + 71 * + - COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-8506
SELECT - + ( - 65 ) - - + 71 * + - COUNT ( * )
----
-6

query II rowsort
SELECT 78 AS col1, 57 * 54 AS col0
----
78
3078

query II rowsort
SELECT 3 AS col0, + ( + 52 )
----
3
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8509
SELECT - 1 * MAX( 53 ) DIV - + 15 + + 99 AS col2
----
102

skipif mysql # not compatible
query I rowsort label-8509
SELECT - 1 * MAX ( 53 ) / - + 15 + + 99 AS col2
----
102

query I rowsort
SELECT + 70 + + 46 * + 16
----
806

onlyif mysql # aggregate syntax: 
query II rowsort label-8511
SELECT + + ( ( 4 ) ) AS col2, - COUNT( * ) AS col2
----
4
-1

skipif mysql # not compatible
query II rowsort label-8511
SELECT + + ( ( 4 ) ) AS col2, - COUNT ( * ) AS col2
----
4
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8512
SELECT ALL - + SUM( 23 ) DIV - - 32 + - 16
----
-16

skipif mysql # not compatible
query I rowsort label-8512
SELECT ALL - + SUM ( 23 ) / - - 32 + - 16
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8513
SELECT ALL ( - - 14 ) / NULLIF ( + MAX( 72 ), - ( - AVG ( + - 38 ) ) ) + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8513
SELECT ALL ( - - 14 ) / NULLIF ( + MAX ( 72 ), - ( - AVG ( + - 38 ) ) ) + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 85 * - 78 AS col1
----
-6630

query I rowsort
SELECT DISTINCT 91 - 80 + + 29 * - 7
----
-192

query I rowsort
SELECT - 70 * - + 41 + - 9
----
2861

onlyif mysql # aggregate syntax: 
query I rowsort label-8517
SELECT CASE 92 WHEN 6 + - 26 * + 51 THEN NULL WHEN + 99 THEN - 60 + 18 - 56 * 63 * + 63 + MIN( DISTINCT - - 91 ) * 0 * - 5 - + + 51 * - - 25 ELSE - 85 + - COUNT( * ) END * + 82 * 13 col2
----
-91676

skipif mysql # not compatible
query I rowsort label-8517
SELECT CASE 92 WHEN 6 + - 26 * + 51 THEN NULL WHEN + 99 THEN - 60 + 18 - 56 * 63 * + 63 + MIN ( DISTINCT - - 91 ) * 0 * - 5 - + + 51 * - - 25 ELSE - 85 + - COUNT ( * ) END * + 82 * 13 col2
----
-91676

onlyif mysql # aggregate syntax: 
query II rowsort label-8518
SELECT ALL - 21 AS col0, MIN( ALL + 74 ) + - COUNT( * ) + - + 32
----
-21
41

skipif mysql # not compatible
query II rowsort label-8518
SELECT ALL - 21 AS col0, MIN ( ALL + 74 ) + - COUNT ( * ) + - + 32
----
-21
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8519
SELECT DISTINCT 43 DIV 10 * COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-8519
SELECT DISTINCT 43 / 10 * COUNT ( * )
----
4

query I rowsort
SELECT 63 * + 27
----
1701

query II rowsort
SELECT ALL - 37 AS col0, 29 * - 13 AS col2
----
-37
-377

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT DISTINCT 37 * - + SUM( ALL 91 )
----
-3367

skipif mysql # not compatible
query I rowsort label-8522
SELECT DISTINCT 37 * - + SUM ( ALL 91 )
----
-3367

onlyif mysql # aggregate syntax: 
query II rowsort label-8523
SELECT ALL - 11, + COUNT( * ) col0
----
-11
1

skipif mysql # not compatible
query II rowsort label-8523
SELECT ALL - 11, + COUNT ( * ) col0
----
-11
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8524
SELECT ALL 72 - - MIN( DISTINCT 10 )
----
82

skipif mysql # not compatible
query I rowsort label-8524
SELECT ALL 72 - - MIN ( DISTINCT 10 )
----
82

query I rowsort
SELECT DISTINCT 84 * - 83
----
-6972

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8526
SELECT ALL 6, - CAST( NULL AS SIGNED ) AS col1
----
6
NULL

skipif mysql # not compatible
query II rowsort label-8526
SELECT ALL 6, - CAST ( NULL AS INTEGER ) AS col1
----
6
NULL

query I rowsort
SELECT 82 + - 21
----
61

query II rowsort
SELECT - 83 col0, ( - 75 ) AS col1
----
-83
-75

query I rowsort
SELECT 42 * 11
----
462

query II rowsort
SELECT ALL 45 col1, + 50 - - 40
----
45
90

onlyif mysql # DIV for integer division: 
query I rowsort label-8531
SELECT ALL - - 65 + 98 DIV 64 + + - 35 DIV 20
----
65

skipif mysql # not compatible
query I rowsort label-8531
SELECT ALL - - 65 + 98 / 64 + + - 35 / 20
----
65

query I rowsort
SELECT ALL + - 52 * + + 21 AS col2
----
-1092

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8533
SELECT ALL + 74 + - + 63 * - CAST( 72 AS SIGNED ) AS col2
----
4610

skipif mysql # not compatible
query I rowsort label-8533
SELECT ALL + 74 + - + 63 * - CAST ( 72 AS INTEGER ) AS col2
----
4610

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8534
SELECT 55 + - COALESCE ( + ( - 80 ), + ( + ( + MAX( + 48 ) ) ) ) * ( - + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8534
SELECT 55 + - COALESCE ( + ( - 80 ), + ( + ( + MAX ( + 48 ) ) ) ) * ( - + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8535
SELECT ( - COUNT( * ) ) + - 56 AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-8535
SELECT ( - COUNT ( * ) ) + - 56 AS col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8536
SELECT 45 - + MIN( ALL + 9 ) * + 5 * 26
----
-1125

skipif mysql # not compatible
query I rowsort label-8536
SELECT 45 - + MIN ( ALL + 9 ) * + 5 * 26
----
-1125

onlyif mysql # DIV for integer division: 
query I rowsort label-8537
SELECT ALL + + 60 * - 56 DIV + 56 AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-8537
SELECT ALL + + 60 * - 56 / + 56 AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8538
SELECT DISTINCT - - 98 + + COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-8538
SELECT DISTINCT - - 98 + + COUNT ( * )
----
99

query I rowsort
SELECT - 89 + + 35
----
-54

query I rowsort
SELECT 91 - - 97 + 58
----
246

onlyif mysql # aggregate syntax: 
query II rowsort label-8541
SELECT DISTINCT + CASE - - 4 WHEN + MAX( DISTINCT 92 ) - COUNT( * ) + 50 THEN 24 WHEN - - 80 THEN 67 END AS col2, - COUNT( * ) AS col0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-8541
SELECT DISTINCT + CASE - - 4 WHEN + MAX ( DISTINCT 92 ) - COUNT ( * ) + 50 THEN 24 WHEN - - 80 THEN 67 END AS col2, - COUNT ( * ) AS col0
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8542
SELECT DISTINCT - + COUNT( * ) + - + 88 AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-8542
SELECT DISTINCT - + COUNT ( * ) + - + 88 AS col1
----
-89

query I rowsort
SELECT ALL + + 85 + - + 76 AS col0
----
9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8544
SELECT NULLIF ( + - 82, - 79 * - MIN( 53 ) - 3 + - 86 ) * CAST( NULL AS DECIMAL ) - - + 83 + - - 75 + + - 24 * 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8544
SELECT NULLIF ( + - 82, - 79 * - MIN ( 53 ) - 3 + - 86 ) * CAST ( NULL AS REAL ) - - + 83 + - - 75 + + - 24 * 79 AS col2
----
NULL

query I rowsort
SELECT ALL + 58 + - 31 + 94 * - - 67 * COALESCE ( - + 66, 30 )
----
-415641

query I rowsort
SELECT 70 + + - 55
----
15

query II rowsort
SELECT DISTINCT - - 0 AS col1, 70
----
0
70

query I rowsort
SELECT ( + + 99 ) * 23
----
2277

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8549
SELECT - 29 DIV + + 77 * - - COUNT( * ) + - 83 AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-8549
SELECT - 29 / + + 77 * - - COUNT ( * ) + - 83 AS col2
----
-83

query I rowsort
SELECT DISTINCT + 63 - - - 54 + - 30 AS col2
----
-21

query I rowsort
SELECT 47 + + ( - - 81 ) AS col1
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT SUM( ALL - 41 ) + - 39
----
-80

skipif mysql # not compatible
query I rowsort label-8552
SELECT SUM ( ALL - 41 ) + - 39
----
-80

query I rowsort
SELECT 57 * - ( - 58 ) AS col2
----
3306

query II rowsort
SELECT ALL + 36 * - + 61 AS col0, + 99
----
-2196
99

onlyif mysql # aggregate syntax: 
query II rowsort label-8555
SELECT 63 + - COUNT( * ) AS col2, - 26 * + NULLIF ( 27, - ( - - 44 ) + 63 ) AS col1
----
62
-702

skipif mysql # not compatible
query II rowsort label-8555
SELECT 63 + - COUNT ( * ) AS col2, - 26 * + NULLIF ( 27, - ( - - 44 ) + 63 ) AS col1
----
62
-702

onlyif mysql # DIV for integer division: 
query II rowsort label-8556
SELECT DISTINCT + 63 DIV - 55 AS col0, + 29 * - 12
----
-1
-348

skipif mysql # not compatible
query II rowsort label-8556
SELECT DISTINCT + 63 / - 55 AS col0, + 29 * - 12
----
-1
-348

onlyif mysql # aggregate syntax: 
query I rowsort label-8557
SELECT ( 25 ) * - COUNT( * ) + COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-8557
SELECT ( 25 ) * - COUNT ( * ) + COUNT ( * )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8558
SELECT MIN( DISTINCT + 76 ) / COUNT( * ) + + CASE 27 WHEN + 89 THEN - 7 + + 52 ELSE NULL END - + + 52 * + - 99 * 82 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8558
SELECT MIN ( DISTINCT + 76 ) / COUNT ( * ) + + CASE 27 WHEN + 89 THEN - 7 + + 52 ELSE NULL END - + + 52 * + - 99 * 82 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8559
SELECT + CASE + 13 WHEN - 51 + 26 THEN - COUNT( * ) - ( + - 32 ) * - ( - 67 ) * - + 94 * 72 * 40 - + 93 DIV 98 END * + 16 DIV + - 43 - + 25 + - 27, 35 DIV 10 - - 86 * - CAST( 55 AS SIGNED ) + + 35 AS col0
----
NULL
-4692

skipif mysql # not compatible
query II rowsort label-8559
SELECT + CASE + 13 WHEN - 51 + 26 THEN - COUNT ( * ) - ( + - 32 ) * - ( - 67 ) * - + 94 * 72 * 40 - + 93 / 98 END * + 16 / + - 43 - + 25 + - 27, 35 / 10 - - 86 * - CAST ( 55 AS INTEGER ) + + 35 AS col0
----
NULL
-4692

query I rowsort
SELECT ALL + 36 * - 26 AS col2
----
-936

query II rowsort
SELECT 63 + + 41, + 99 AS col2
----
104
99

query I rowsort
SELECT 98 - - 71
----
169

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8563
SELECT + 28 * + 72 + - NULLIF ( + CASE - 78 WHEN 6 + + + CASE 44 WHEN + + 30 THEN NULL ELSE 93 END THEN + 14 ELSE NULL END, + 75 * - 46 * COALESCE ( - 36, + 53 ) * - CAST( - - 46 AS SIGNED ) * + + 61 + 40 / + 80 ) * + 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8563
SELECT + 28 * + 72 + - NULLIF ( + CASE - 78 WHEN 6 + + + CASE 44 WHEN + + 30 THEN NULL ELSE 93 END THEN + 14 ELSE NULL END, + 75 * - 46 * COALESCE ( - 36, + 53 ) * - CAST ( - - 46 AS INTEGER ) * + + 61 + 40 / + 80 ) * + 95 AS col0
----
NULL

query I rowsort
SELECT ( 73 ) - + 17 AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT COUNT( * ) * + 55
----
55

skipif mysql # not compatible
query I rowsort label-8565
SELECT COUNT ( * ) * + 55
----
55

onlyif mysql # DIV for integer division: 
query II rowsort label-8566
SELECT 91 DIV - 97 * - + 7 AS col1, 1 AS col0
----
0
1

skipif mysql # not compatible
query II rowsort label-8566
SELECT 91 / - 97 * - + 7 AS col1, 1 AS col0
----
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8567
SELECT ALL 89 + - + 65 * 59 DIV COUNT( * )
----
-3746

skipif mysql # not compatible
query I rowsort label-8567
SELECT ALL 89 + - + 65 * 59 / COUNT ( * )
----
-3746

query I rowsort
SELECT ALL + 69 + - 21 AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT + 80 + - + COUNT( * ) + + ( - 64 ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-8569
SELECT + 80 + - + COUNT ( * ) + + ( - 64 ) AS col1
----
15

query I rowsort
SELECT ALL + 89 + 67 col2
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8571
SELECT ALL - 78 + - CAST( - - COUNT( * ) AS SIGNED ) - - 70 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-8571
SELECT ALL - 78 + - CAST ( - - COUNT ( * ) AS INTEGER ) - - 70 AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8572
SELECT ALL - COUNT( * ) * - - 50 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-8572
SELECT ALL - COUNT ( * ) * - - 50 AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8573
SELECT COUNT( * ) + 30
----
31

skipif mysql # not compatible
query I rowsort label-8573
SELECT COUNT ( * ) + 30
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8574
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 33 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8574
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 33 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8575
SELECT ALL COUNT( * ) * + - 18 - - - COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-8575
SELECT ALL COUNT ( * ) * + - 18 - - - COUNT ( * )
----
-19

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8576
SELECT ( - 0 ), + 15 * - SUM( 44 ) * CAST( NULL AS DECIMAL ) * 54 col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8576
SELECT ( - 0 ), + 15 * - SUM ( 44 ) * CAST ( NULL AS REAL ) * 54 col0
----
0
NULL

query I rowsort
SELECT + + 82 * 52 col1
----
4264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8578
SELECT ALL + 71 / SUM( DISTINCT + 57 ) * + 7 * + 86 + + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8578
SELECT ALL + 71 / SUM ( DISTINCT + 57 ) * + 7 * + 86 + + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8579
SELECT + 19 + - - COUNT( * ) AS col1, - COUNT( DISTINCT + 95 ) AS col1
----
20
-1

skipif mysql # not compatible
query II rowsort label-8579
SELECT + 19 + - - COUNT ( * ) AS col1, - COUNT ( DISTINCT + 95 ) AS col1
----
20
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8580
SELECT DISTINCT - + 83 * + 25 / + + 51 * - CASE - 37 WHEN + MAX( ALL + 52 ) / + 52 + + + 3 THEN COALESCE ( + - 3, + + 60 + 68 + - COUNT( * ) ) END + 47 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8580
SELECT DISTINCT - + 83 * + 25 / + + 51 * - CASE - 37 WHEN + MAX ( ALL + 52 ) / + 52 + + + 3 THEN COALESCE ( + - 3, + + 60 + 68 + - COUNT ( * ) ) END + 47 AS col2
----
NULL

query II rowsort
SELECT ALL 7 - - 41, 44 * ( + ( + - 66 ) ) AS col0
----
48
-2904

query I rowsort
SELECT + 76 - + 26 AS col1
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8583
SELECT - COALESCE ( COUNT( * ), - 61 DIV - 46, CAST( - + 74 AS SIGNED ) ) DIV 79 - + 28 * NULLIF ( - 95, + - 70 ) AS col2
----
2660

skipif mysql # not compatible
query I rowsort label-8583
SELECT - COALESCE ( COUNT ( * ), - 61 / - 46, CAST ( - + 74 AS INTEGER ) ) / 79 - + 28 * NULLIF ( - 95, + - 70 ) AS col2
----
2660

query I rowsort
SELECT COALESCE ( 9, 47, + 17 ) AS col2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8585
SELECT DISTINCT + 67 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8585
SELECT DISTINCT + 67 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 91 * + - 25 AS col2
----
-2275

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT ALL + COALESCE ( + COUNT( * ), + 88 )
----
1

skipif mysql # not compatible
query I rowsort label-8587
SELECT ALL + COALESCE ( + COUNT ( * ), + 88 )
----
1

query I rowsort
SELECT DISTINCT 32 * 29
----
928

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT COUNT( ALL + 14 ) * 60 * + 47 - + - 14
----
2834

skipif mysql # not compatible
query I rowsort label-8589
SELECT COUNT ( ALL + 14 ) * 60 * + 47 - + - 14
----
2834

query I rowsort
SELECT DISTINCT 8 * + 36
----
288

query I rowsort
SELECT DISTINCT + ( 19 ) AS col1
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8592
SELECT - CAST( NULL AS SIGNED ) * CASE 78 WHEN - 20 * + 12 THEN 55 * 65 + + 29 - - ( - COALESCE ( + 61, 38 * 23 * + 73 ) ) - 28 * - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8592
SELECT - CAST ( NULL AS INTEGER ) * CASE 78 WHEN - 20 * + 12 THEN 55 * 65 + + 29 - - ( - COALESCE ( + 61, 38 * 23 * + 73 ) ) - 28 * - COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8593
SELECT + COALESCE ( 46, + 92 ) AS col1, CAST( - + 86 AS SIGNED ) AS col0
----
46
-86

skipif mysql # not compatible
query II rowsort label-8593
SELECT + COALESCE ( 46, + 92 ) AS col1, CAST ( - + 86 AS INTEGER ) AS col0
----
46
-86

query I rowsort
SELECT NULLIF ( + + 63, COALESCE ( + - 73, 31 ) ) AS col1
----
63

query II rowsort
SELECT ALL + 37, + ( ( - 55 ) ) * + 24 AS col2
----
37
-1320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8596
SELECT CASE 28 WHEN - CAST( NULL AS SIGNED ) THEN + 9 WHEN + 81 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8596
SELECT CASE 28 WHEN - CAST ( NULL AS INTEGER ) THEN + 9 WHEN + 81 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8597
SELECT - CAST( NULL AS SIGNED ) * + 72 DIV + - 75 AS col0, - COUNT( DISTINCT + - 58 ) DIV 87 * 17 * + 9 + 32 col0
----
NULL
32

skipif mysql # not compatible
query II rowsort label-8597
SELECT - CAST ( NULL AS INTEGER ) * + 72 / + - 75 AS col0, - COUNT ( DISTINCT + - 58 ) / 87 * 17 * + 9 + 32 col0
----
NULL
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT - 7 + - 96 + - + COUNT( * )
----
-104

skipif mysql # not compatible
query I rowsort label-8598
SELECT - 7 + - 96 + - + COUNT ( * )
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT ALL + 5 * + - COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-8599
SELECT ALL + 5 * + - COUNT ( * )
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8600
SELECT ALL + COUNT( * ) * CAST( 24 AS SIGNED ) * - 31 + - COUNT( * ) AS col1
----
-745

skipif mysql # not compatible
query I rowsort label-8600
SELECT ALL + COUNT ( * ) * CAST ( 24 AS INTEGER ) * - 31 + - COUNT ( * ) AS col1
----
-745

onlyif mysql # aggregate syntax: 
query I rowsort label-8601
SELECT DISTINCT - SUM( ALL - 82 ) * + 90 - 65 + - COALESCE ( 37, + 91 )
----
7278

skipif mysql # not compatible
query I rowsort label-8601
SELECT DISTINCT - SUM ( ALL - 82 ) * + 90 - 65 + - COALESCE ( 37, + 91 )
----
7278

query I rowsort
SELECT DISTINCT - 76 * + - 75 AS col1
----
5700

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT ALL - 59 * - 34 * - + 1 * + ( + + 4 ) + - COUNT( * ) * + 10 AS col1
----
-8034

skipif mysql # not compatible
query I rowsort label-8603
SELECT ALL - 59 * - 34 * - + 1 * + ( + + 4 ) + - COUNT ( * ) * + 10 AS col1
----
-8034

onlyif mysql # aggregate syntax: 
query I rowsort label-8604
SELECT DISTINCT - 24 * + COUNT( * ) * - 11 + - 8
----
256

skipif mysql # not compatible
query I rowsort label-8604
SELECT DISTINCT - 24 * + COUNT ( * ) * - 11 + - 8
----
256

onlyif mysql # aggregate syntax: 
query I rowsort label-8605
SELECT DISTINCT - - 19 * 68 + - - COUNT( * ) + + 47 AS col0
----
1340

skipif mysql # not compatible
query I rowsort label-8605
SELECT DISTINCT - - 19 * 68 + - - COUNT ( * ) + + 47 AS col0
----
1340

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8606
SELECT - 92 DIV SUM( + 22 ) col1
----
-4

skipif mysql # not compatible
query I rowsort label-8606
SELECT - 92 / SUM ( + 22 ) col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8607
SELECT - - 21 * - 66 * - COUNT( * ) + - + 89 AS col2
----
1297

skipif mysql # not compatible
query I rowsort label-8607
SELECT - - 21 * - 66 * - COUNT ( * ) + - + 89 AS col2
----
1297

query I rowsort
SELECT DISTINCT COALESCE ( 10, NULLIF ( 66, 13 ) * + 66 ) AS col0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-8609
SELECT - + 52 + + - 36 - - 68 DIV - - 11 col0
----
-82

skipif mysql # not compatible
query I rowsort label-8609
SELECT - + 52 + + - 36 - - 68 / - - 11 col0
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8610
SELECT - - CASE + ( + 80 ) WHEN - 50 THEN NULL WHEN - COUNT( * ) THEN - COUNT( * ) * MAX( - 20 ) * - SUM( 96 ) WHEN 41 + 16 * - + 45 - - 47 + - 91 * COUNT( * ) * + 51 + CAST( + 23 AS SIGNED ) * - NULLIF ( - 88, - 20 ) THEN NULL ELSE NULL END + - 21 - + + NULLIF ( 62, + 49 + - ( + 87 ) ) + - COUNT( - 41 ) + + 62 / + 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8610
SELECT - - CASE + ( + 80 ) WHEN - 50 THEN NULL WHEN - COUNT ( * ) THEN - COUNT ( * ) * MAX ( - 20 ) * - SUM ( 96 ) WHEN 41 + 16 * - + 45 - - 47 + - 91 * COUNT ( * ) * + 51 + CAST ( + 23 AS INTEGER ) * - NULLIF ( - 88, - 20 ) THEN NULL ELSE NULL END + - 21 - + + NULLIF ( 62, + 49 + - ( + 87 ) ) + - COUNT ( - 41 ) + + 62 / + 61 AS col1
----
NULL

query I rowsort
SELECT ALL - ( + 85 ) + + 89 * - + 50 col1
----
-4535

query I rowsort
SELECT - + 60 * + 80 + - 62 AS col0
----
-4862

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT SUM( - 66 ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-8613
SELECT SUM ( - 66 ) AS col2
----
-66

query I rowsort
SELECT ALL + 91 - - + 83
----
174

query II rowsort
SELECT ALL - 5 col0, COALESCE ( - + NULLIF ( + 35, 73 * + 93 ), 87 )
----
-5
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8616
SELECT DISTINCT + 64 - - 55 + + 98 * CASE - ( + 20 ) WHEN + 55 + + - COALESCE ( - 51, COUNT( * ) ) THEN NULL ELSE - CAST( 88 AS SIGNED ) END * 60 * + - MIN( + 19 ) + 34
----
9831513

skipif mysql # not compatible
query I rowsort label-8616
SELECT DISTINCT + 64 - - 55 + + 98 * CASE - ( + 20 ) WHEN + 55 + + - COALESCE ( - 51, COUNT ( * ) ) THEN NULL ELSE - CAST ( 88 AS INTEGER ) END * 60 * + - MIN ( + 19 ) + 34
----
9831513

query I rowsort
SELECT DISTINCT - ( CASE - 18 WHEN + 19 THEN NULL WHEN - - 1 THEN 39 ELSE NULL END )
----
NULL

query I rowsort
SELECT + 21 + + 52 - + 95 AS col1
----
-22

query I rowsort
SELECT - ( + 68 ) + 19
----
-49

query I rowsort
SELECT - ( - - 90 ) col1
----
-90

query I rowsort
SELECT - - 75 + - + 55 AS col0
----
20

query II rowsort
SELECT - ( - 13 ) AS col2, - COALESCE ( 3, 21 * ( 79 ) * NULLIF ( + - 98, 29 ), 55 ) AS col1
----
13
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8623
SELECT + CASE - + 89 WHEN + + CAST( NULL AS SIGNED ) + + ( - 3 ) * - 71 - + + 6 THEN + CAST( NULL AS SIGNED ) - COUNT( * ) END - + COUNT( * ) * - COUNT( * ) * - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-8623
SELECT + CASE - + 89 WHEN + + CAST ( NULL AS INTEGER ) + + ( - 3 ) * - 71 - + + 6 THEN + CAST ( NULL AS INTEGER ) - COUNT ( * ) END - + COUNT ( * ) * - COUNT ( * ) * - 40
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8624
SELECT ALL CAST( + MAX( + 55 ) AS SIGNED )
----
55

skipif mysql # not compatible
query I rowsort label-8624
SELECT ALL CAST ( + MAX ( + 55 ) AS INTEGER )
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-8625
SELECT + 68 DIV - 42
----
-1

skipif mysql # not compatible
query I rowsort label-8625
SELECT + 68 / - 42
----
-1

query I rowsort
SELECT ALL 73 * 18
----
1314

query I rowsort
SELECT + ( + - 47 )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT 55 * - 72 + + COUNT( * ) col0
----
-3959

skipif mysql # not compatible
query I rowsort label-8628
SELECT 55 * - 72 + + COUNT ( * ) col0
----
-3959

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8629
SELECT + 37 * + COUNT( * ) * + 17 DIV + COUNT( * ) col2
----
629

skipif mysql # not compatible
query I rowsort label-8629
SELECT + 37 * + COUNT ( * ) * + 17 / + COUNT ( * ) col2
----
629

onlyif mysql # aggregate syntax: 
query II rowsort label-8630
SELECT SUM( + 7 ) * + 26 + - 15, - 56 AS col1
----
167
-56

skipif mysql # not compatible
query II rowsort label-8630
SELECT SUM ( + 7 ) * + 26 + - 15, - 56 AS col1
----
167
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8631
SELECT CAST( 17 AS SIGNED ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-8631
SELECT CAST ( 17 AS INTEGER ) AS col2
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8632
SELECT + CAST( + MAX( ALL - 20 ) AS SIGNED )
----
-20

skipif mysql # not compatible
query I rowsort label-8632
SELECT + CAST ( + MAX ( ALL - 20 ) AS INTEGER )
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-8633
SELECT + 82 DIV - + 92 + - ( 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-8633
SELECT + 82 / - + 92 + - ( 51 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT + COUNT( * ) + + 29 * - 23 AS col0
----
-666

skipif mysql # not compatible
query I rowsort label-8634
SELECT + COUNT ( * ) + + 29 * - 23 AS col0
----
-666

onlyif mysql # aggregate syntax: 
query I rowsort label-8635
SELECT - 7 * - ( + COUNT( + NULLIF ( - 37, 92 ) ) ) col0
----
7

skipif mysql # not compatible
query I rowsort label-8635
SELECT - 7 * - ( + COUNT ( + NULLIF ( - 37, 92 ) ) ) col0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8636
SELECT ALL CASE + + 69 WHEN - - 32 THEN + 94 * + 78 ELSE + 39 * - + 56 END * + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8636
SELECT ALL CASE + + 69 WHEN - - 32 THEN + 94 * + 78 ELSE + 39 * - + 56 END * + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8637
SELECT ALL COUNT( * ) DIV - + 2 + + + 89 AS col1
----
89

skipif mysql # not compatible
query I rowsort label-8637
SELECT ALL COUNT ( * ) / - + 2 + + + 89 AS col1
----
89

query I rowsort
SELECT ALL + 40 * - 38 + - 41 AS col1
----
-1561

query I rowsort
SELECT - 38 * + 37 + + 84
----
-1322

query I rowsort
SELECT - 48 + 38 col0
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8641
SELECT ALL + NULLIF ( ( CAST( + - 10 AS SIGNED ) ), MIN( 45 ) ) * - + 64 * + COALESCE ( 48, - 65 ) + 11 * + 33 AS col2
----
31083

skipif mysql # not compatible
query I rowsort label-8641
SELECT ALL + NULLIF ( ( CAST ( + - 10 AS INTEGER ) ), MIN ( 45 ) ) * - + 64 * + COALESCE ( 48, - 65 ) + 11 * + 33 AS col2
----
31083

onlyif mysql # aggregate syntax: 
query I rowsort label-8642
SELECT DISTINCT + NULLIF ( + - 1, 44 * - 64 + + - COUNT( * ) + - - 96 + + 48 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8642
SELECT DISTINCT + NULLIF ( + - 1, 44 * - 64 + + - COUNT ( * ) + - - 96 + + 48 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8643
SELECT CAST( 15 AS SIGNED )
----
15

skipif mysql # not compatible
query I rowsort label-8643
SELECT CAST ( 15 AS INTEGER )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8644
SELECT + - 55 * 14 * COUNT( * ) + - 38 * + ( + + COUNT( * ) ) + - 15
----
-823

skipif mysql # not compatible
query I rowsort label-8644
SELECT + - 55 * 14 * COUNT ( * ) + - 38 * + ( + + COUNT ( * ) ) + - 15
----
-823

query I rowsort
SELECT DISTINCT - COALESCE ( + 78, - - 77 + + 79 ) * - 10 col0
----
780

query I rowsort
SELECT - 65 + ( 43 ) + - + 49 AS col1
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8647
SELECT DISTINCT - - 41 * 60 DIV + + 79 - + 14, 68 + + NULLIF ( - + 28, - + MIN( DISTINCT + - 13 ) ) AS col1
----
17
40

skipif mysql # not compatible
query II rowsort label-8647
SELECT DISTINCT - - 41 * 60 / + + 79 - + 14, 68 + + NULLIF ( - + 28, - + MIN ( DISTINCT + - 13 ) ) AS col1
----
17
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8648
SELECT DISTINCT - 93 DIV 4 AS col1, COUNT( * ) AS col1
----
-23
1

skipif mysql # not compatible
query II rowsort label-8648
SELECT DISTINCT - 93 / 4 AS col1, COUNT ( * ) AS col1
----
-23
1

query I rowsort
SELECT ALL + 34 - - 32 * 41 + - 52
----
1294

onlyif mysql # aggregate syntax: 
query II rowsort label-8650
SELECT - 92 + - 91 * + COUNT( * ) + 81 AS col2, 29 * - - 57 + - COUNT( * )
----
-102
1652

skipif mysql # not compatible
query II rowsort label-8650
SELECT - 92 + - 91 * + COUNT ( * ) + 81 AS col2, 29 * - - 57 + - COUNT ( * )
----
-102
1652

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT ALL - + SUM( ALL - NULLIF ( - + 96, - + 81 ) ) * - ( + - COUNT( * ) ) + + 39
----
-57

skipif mysql # not compatible
query I rowsort label-8651
SELECT ALL - + SUM ( ALL - NULLIF ( - + 96, - + 81 ) ) * - ( + - COUNT ( * ) ) + + 39
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8652
SELECT DISTINCT - ( + 71 ) * - ( - CAST( NULL AS SIGNED ) ) - - + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-8652
SELECT DISTINCT - ( + 71 ) * - ( - CAST ( NULL AS INTEGER ) ) - - + 16
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8653
SELECT ALL CAST( - - NULLIF ( - COALESCE ( - 56, + COUNT( * ) ), - 11 * - 40 * - + 3 * - 74 ) AS SIGNED ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-8653
SELECT ALL CAST ( - - NULLIF ( - COALESCE ( - 56, + COUNT ( * ) ), - 11 * - 40 * - + 3 * - 74 ) AS INTEGER ) AS col2
----
56

query I rowsort
SELECT - 67 * + 52 AS col0
----
-3484

onlyif mysql # aggregate syntax: 
query I rowsort label-8655
SELECT + COUNT( * ) + + 77 + ( 44 ) * + 52 * + COUNT( * ) + + - 31
----
2335

skipif mysql # not compatible
query I rowsort label-8655
SELECT + COUNT ( * ) + + 77 + ( 44 ) * + 52 * + COUNT ( * ) + + - 31
----
2335

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8656
SELECT 78 * - MAX( CAST( + - 32 AS SIGNED ) )
----
2496

skipif mysql # not compatible
query I rowsort label-8656
SELECT 78 * - MAX ( CAST ( + - 32 AS INTEGER ) )
----
2496

query I rowsort
SELECT ALL 79 * + + 52
----
4108

onlyif mysql # DIV for integer division: 
query I rowsort label-8658
SELECT DISTINCT + 4 DIV + - 23 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8658
SELECT DISTINCT + 4 / + - 23 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8659
SELECT DISTINCT 73 * ( + ( + COUNT( * ) ) ) * - 15 - - MIN( 46 ) AS col1
----
-1049

skipif mysql # not compatible
query I rowsort label-8659
SELECT DISTINCT 73 * ( + ( + COUNT ( * ) ) ) * - 15 - - MIN ( 46 ) AS col1
----
-1049

query I rowsort
SELECT ALL + 77 + + 55 * - + 70 * + 5 - + 44 + 92
----
-19125

query I rowsort
SELECT 66 - + - ( + - 76 ) + - 15 AS col0
----
-25

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8662
SELECT 72 * + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8662
SELECT 72 * + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT - 28 * + - 91 + ( - 2 ) AS col0
----
2546

query II rowsort
SELECT 51, 77 AS col1
----
51
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT DISTINCT + 60 + - COUNT( DISTINCT 67 ) + + - 61 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-8665
SELECT DISTINCT + 60 + - COUNT ( DISTINCT 67 ) + + - 61 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-8666
SELECT DISTINCT - 68, 69 * - MIN( + 26 ) * - + 91 AS col1
----
-68
163254

skipif mysql # not compatible
query II rowsort label-8666
SELECT DISTINCT - 68, 69 * - MIN ( + 26 ) * - + 91 AS col1
----
-68
163254

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT DISTINCT COUNT( * ) + 8 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-8667
SELECT DISTINCT COUNT ( * ) + 8 AS col2
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-8668
SELECT 24 * 85 - - - 50 * - 92 * - COUNT( * ), - 69 AS col0
----
-2560
-69

skipif mysql # not compatible
query II rowsort label-8668
SELECT 24 * 85 - - - 50 * - 92 * - COUNT ( * ), - 69 AS col0
----
-2560
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8669
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - COUNT( * ) * 44 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8669
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - COUNT ( * ) * 44 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8670
SELECT COUNT( * ) * - 85
----
-85

skipif mysql # not compatible
query I rowsort label-8670
SELECT COUNT ( * ) * - 85
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-8671
SELECT ALL + 16 DIV - 97
----
0

skipif mysql # not compatible
query I rowsort label-8671
SELECT ALL + 16 / - 97
----
0

query I rowsort
SELECT ALL 66 - 64
----
2

query I rowsort
SELECT ALL 70 * + 89 AS col0
----
6230

onlyif mysql # DIV for integer division: 
query I rowsort label-8674
SELECT + 49 DIV 2 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-8674
SELECT + 49 / 2 AS col1
----
24

query II rowsort
SELECT ALL - + 93 AS col1, 69 col0
----
-93
69

query II rowsort
SELECT DISTINCT - - 97, - 85 AS col2
----
97
-85

query II rowsort
SELECT ALL 37 * + ( - ( + 99 ) ) + + 13, - 40 AS col1
----
-3650
-40

query I rowsort
SELECT ALL + 83 - - 24 + - 54 col0
----
53

onlyif mysql # DIV for integer division: 
query II rowsort label-8679
SELECT + 49, 15 DIV - 94 + - 8 AS col2
----
49
-8

skipif mysql # not compatible
query II rowsort label-8679
SELECT + 49, 15 / - 94 + - 8 AS col2
----
49
-8

query I rowsort
SELECT - ( - - 74 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT ALL CASE 13 WHEN + MAX( + - 14 ) THEN NULL ELSE COUNT( * ) END col2
----
1

skipif mysql # not compatible
query I rowsort label-8681
SELECT ALL CASE 13 WHEN + MAX ( + - 14 ) THEN NULL ELSE COUNT ( * ) END col2
----
1

query I rowsort
SELECT 24 + + 74
----
98

query I rowsort
SELECT - 43 + + 14 AS col2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT - 56 + - 95 * - COUNT( * ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-8684
SELECT - 56 + - 95 * - COUNT ( * ) AS col2
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8685
SELECT + 0 AS col1, 66 * CAST( - ( - - 53 ) AS SIGNED ) - 49 * 33 * - - 88 AS col0
----
0
-145794

skipif mysql # not compatible
query II rowsort label-8685
SELECT + 0 AS col1, 66 * CAST ( - ( - - 53 ) AS INTEGER ) - 49 * 33 * - - 88 AS col0
----
0
-145794

query II rowsort
SELECT - + 47 AS col1, + 70 AS col2
----
-47
70

query I rowsort
SELECT DISTINCT + 31 * - 80
----
-2480

onlyif mysql # DIV for integer division: 
query I rowsort label-8688
SELECT ALL + 98 + - 25 DIV + + 67 AS col1
----
98

skipif mysql # not compatible
query I rowsort label-8688
SELECT ALL + 98 + - 25 / + + 67 AS col1
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-8689
SELECT 76 + - CASE + + 85 WHEN - 26 THEN NULL WHEN 44 THEN NULL WHEN - 32 * + 35 THEN + - COUNT( * ) END + + COUNT( * ) AS col1, 21
----
NULL
21

skipif mysql # not compatible
query II rowsort label-8689
SELECT 76 + - CASE + + 85 WHEN - 26 THEN NULL WHEN 44 THEN NULL WHEN - 32 * + 35 THEN + - COUNT ( * ) END + + COUNT ( * ) AS col1, 21
----
NULL
21

query I rowsort
SELECT ALL 50 * + ( 29 ) * 49 AS col0
----
71050

onlyif mysql # aggregate syntax: 
query II rowsort label-8691
SELECT 82 * - - COUNT( * ) AS col0, + 56 AS col1
----
82
56

skipif mysql # not compatible
query II rowsort label-8691
SELECT 82 * - - COUNT ( * ) AS col0, + 56 AS col1
----
82
56

query I rowsort
SELECT 85 + + 52
----
137

onlyif mysql # aggregate syntax: 
query II rowsort label-8693
SELECT - COUNT( * ) AS col2, 52 AS col0
----
-1
52

skipif mysql # not compatible
query II rowsort label-8693
SELECT - COUNT ( * ) AS col2, 52 AS col0
----
-1
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8694
SELECT ALL - 46 + + 86 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8694
SELECT ALL - 46 + + 86 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + 91 + + + ( - + 30 )
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8696
SELECT ( - CAST( NULL AS SIGNED ) ) + - ( 22 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8696
SELECT ( - CAST ( NULL AS INTEGER ) ) + - ( 22 )
----
NULL

query I rowsort
SELECT 11 - 35 * + + 35
----
-1214

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT COUNT( * ) + + - 92 - - 58 * + 82
----
4665

skipif mysql # not compatible
query I rowsort label-8698
SELECT COUNT ( * ) + + - 92 - - 58 * + 82
----
4665

query II rowsort
SELECT - 80 AS col1, + 52 col2
----
-80
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8700
SELECT DISTINCT + 74 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8700
SELECT DISTINCT + 74 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8701
SELECT 7 * - + CASE + + CAST( + 44 AS SIGNED ) WHEN - 97 THEN + 95 * - 40 - 60 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8701
SELECT 7 * - + CASE + + CAST ( + 44 AS INTEGER ) WHEN - 97 THEN + 95 * - 40 - 60 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT COUNT( * ) + + 29 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-8702
SELECT COUNT ( * ) + + 29 AS col0
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-8703
SELECT ALL + 56 DIV + - 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8703
SELECT ALL + 56 / + - 94 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8704
SELECT DISTINCT - COUNT( * ) AS col0, 62
----
-1
62

skipif mysql # not compatible
query II rowsort label-8704
SELECT DISTINCT - COUNT ( * ) AS col0, 62
----
-1
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8705
SELECT DISTINCT + 36 * + CAST( NULL AS SIGNED ) + ( - - COALESCE ( - MIN( 97 ), + 66 ) ) * - 15 * - + 81 / + CASE 88 WHEN - COALESCE ( + 29, - - 60 ) / + 53 THEN COUNT( * ) END * 13 * 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8705
SELECT DISTINCT + 36 * + CAST ( NULL AS INTEGER ) + ( - - COALESCE ( - MIN ( 97 ), + 66 ) ) * - 15 * - + 81 / + CASE 88 WHEN - COALESCE ( + 29, - - 60 ) / + 53 THEN COUNT ( * ) END * 13 * 80 AS col0
----
NULL

query II rowsort
SELECT + 45 AS col2, COALESCE ( + 14, + 64, 96 * - 72 ) * - + 80 * + 4 - - 41 - + 33 AS col1
----
45
-4472

onlyif mysql # aggregate syntax: 
query I rowsort label-8707
SELECT ALL - MAX( ALL + + 42 ) col0
----
-42

skipif mysql # not compatible
query I rowsort label-8707
SELECT ALL - MAX ( ALL + + 42 ) col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8708
SELECT COUNT( * ) * - 64 + 31 + + + 58 * - 16 AS col0
----
-961

skipif mysql # not compatible
query I rowsort label-8708
SELECT COUNT ( * ) * - 64 + 31 + + + 58 * - 16 AS col0
----
-961

query I rowsort
SELECT 7 + - 50
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8710
SELECT + + COALESCE ( + + 29, + ( - + COUNT( * ) ) + COUNT( * ) - 89 * + 19 + - + COUNT( * ) DIV 85 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-8710
SELECT + + COALESCE ( + + 29, + ( - + COUNT ( * ) ) + COUNT ( * ) - 89 * + 19 + - + COUNT ( * ) / 85 ) AS col2
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8711
SELECT + + COUNT( * ) * + 36 * - 32 - - - 76 + - 27 / + + 51 + 10 + - CAST( NULL AS SIGNED ) + - + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-8711
SELECT + + COUNT ( * ) * + 36 * - 32 - - - 76 + - 27 / + + 51 + 10 + - CAST ( NULL AS INTEGER ) + - + 11
----
NULL

query II rowsort
SELECT ALL + 70 AS col2, 20 col0
----
70
20

query II rowsort
SELECT 22 AS col0, + 61 AS col0
----
22
61

query I rowsort
SELECT + 74 + 7 AS col1
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-8715
SELECT DISTINCT + + COUNT( * ) AS col2, 42 + + 74 * 60 - 82 * + - 43
----
1
8008

skipif mysql # not compatible
query II rowsort label-8715
SELECT DISTINCT + + COUNT ( * ) AS col2, 42 + + 74 * 60 - 82 * + - 43
----
1
8008

onlyif mysql # DIV for integer division: 
query I rowsort label-8716
SELECT DISTINCT - 10 DIV - - 89 * + + 85 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8716
SELECT DISTINCT - 10 / - - 89 * + + 85 AS col0
----
0

query I rowsort
SELECT ALL 71 * - - 97
----
6887

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8718
SELECT + COUNT( * ) * - 32 DIV + 60
----
0

skipif mysql # not compatible
query I rowsort label-8718
SELECT + COUNT ( * ) * - 32 / + 60
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8719
SELECT + 15 * - COUNT( * ) + ( 40 ) AS col1, 43
----
25
43

skipif mysql # not compatible
query II rowsort label-8719
SELECT + 15 * - COUNT ( * ) + ( 40 ) AS col1, 43
----
25
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8720
SELECT ALL - 2 + MIN( - - 76 ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-8720
SELECT ALL - 2 + MIN ( - - 76 ) AS col2
----
74

query I rowsort
SELECT - 23 * + + 53 + 75 + - ( - 95 ) AS col0
----
-1049

onlyif mysql # aggregate syntax: 
query I rowsort label-8722
SELECT DISTINCT - MIN( ALL 85 ) * - - 73 AS col0
----
-6205

skipif mysql # not compatible
query I rowsort label-8722
SELECT DISTINCT - MIN ( ALL 85 ) * - - 73 AS col0
----
-6205

query I rowsort
SELECT DISTINCT 55 + + + 21 + 47
----
123

query II rowsort
SELECT - ( + + 87 ), 11 * + 99 AS col2
----
-87
1089

query I rowsort
SELECT ALL 3 + - + 45 + - 99 - + + 28
----
-169

query I rowsort
SELECT + 26 + - 87 AS col2
----
-61

query I rowsort
SELECT - 91 + + + 36 AS col1
----
-55

query I rowsort
SELECT DISTINCT + 69 * + ( - 37 )
----
-2553

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT ALL + SUM( ALL - - ( - 79 ) ) + + 20
----
-59

skipif mysql # not compatible
query I rowsort label-8729
SELECT ALL + SUM ( ALL - - ( - 79 ) ) + + 20
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8730
SELECT + 55 * - 44 * COUNT( * )
----
-2420

skipif mysql # not compatible
query I rowsort label-8730
SELECT + 55 * - 44 * COUNT ( * )
----
-2420

query I rowsort
SELECT - 72 + - 46 AS col0
----
-118

query I rowsort
SELECT DISTINCT + ( - 57 ) + + 87 + + ( + + 83 ) * - - ( 93 ) + - 92 col2
----
7657

query I rowsort
SELECT ALL COALESCE ( + 31, + 96 * + - 6 * + ( - 29 ) * - - 68 + + 11 ) AS col1
----
31

query I rowsort
SELECT - 48 + - 98 AS col2
----
-146

onlyif mysql # DIV for integer division: 
query I rowsort label-8735
SELECT - 7 DIV + + 5
----
-1

skipif mysql # not compatible
query I rowsort label-8735
SELECT - 7 / + + 5
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8736
SELECT + CAST( NULL AS SIGNED ) * 65 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8736
SELECT + CAST ( NULL AS INTEGER ) * 65 col2
----
NULL

query II rowsort
SELECT - 25 * - 48 AS col0, 90
----
1200
90

onlyif mysql # DIV for integer division: 
query I rowsort label-8738
SELECT ALL + 52 * 52 * 47 DIV + + 8
----
15886

skipif mysql # not compatible
query I rowsort label-8738
SELECT ALL + 52 * 52 * 47 / + + 8
----
15886

query I rowsort
SELECT + 95 - + - 49 + + - 8 AS col2
----
136

query I rowsort
SELECT + ( - + 35 )
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-8741
SELECT DISTINCT - ( + 33 ) DIV - + ( - 89 ) + + 66 - - 81
----
147

skipif mysql # not compatible
query I rowsort label-8741
SELECT DISTINCT - ( + 33 ) / - + ( - 89 ) + + 66 - - 81
----
147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8742
SELECT ALL - 49 / + 2 * + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8742
SELECT ALL - 49 / + 2 * + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8743
SELECT - - 44 DIV - + 59 * - - ( + - COUNT( * ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8743
SELECT - - 44 / - + 59 * - - ( + - COUNT ( * ) ) AS col1
----
0

query I rowsort
SELECT DISTINCT + ( 9 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT - - ( - 86 ) * 19 - CASE - 84 WHEN MIN( 3 ) THEN + 58 END + + 19 * + 18 * - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-8745
SELECT - - ( - 86 ) * 19 - CASE - 84 WHEN MIN ( 3 ) THEN + 58 END + + 19 * + 18 * - 15
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8746
SELECT - COUNT( * ) DIV 76 - + COUNT( - + 41 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8746
SELECT - COUNT ( * ) / 76 - + COUNT ( - + 41 ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8747
SELECT - 88 DIV + - MIN( ALL + 41 ) col0
----
2

skipif mysql # not compatible
query I rowsort label-8747
SELECT - 88 / + - MIN ( ALL + 41 ) col0
----
2

query I rowsort
SELECT ALL + - 28 col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8749
SELECT + 72 * + COUNT( * ) + + 91
----
163

skipif mysql # not compatible
query I rowsort label-8749
SELECT + 72 * + COUNT ( * ) + + 91
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-8750
SELECT - MIN( DISTINCT - 60 )
----
60

skipif mysql # not compatible
query I rowsort label-8750
SELECT - MIN ( DISTINCT - 60 )
----
60

query I rowsort
SELECT - + 42 * - 98 AS col1
----
4116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8752
SELECT ALL + 98 * + 90 + + - CAST( + + COALESCE ( + ( + + 32 ), + - 66 * - + COUNT( * ) * - CASE + 26 WHEN - - 43 THEN - - 87 + 84 ELSE NULL END ) AS SIGNED )
----
8788

skipif mysql # not compatible
query I rowsort label-8752
SELECT ALL + 98 * + 90 + + - CAST ( + + COALESCE ( + ( + + 32 ), + - 66 * - + COUNT ( * ) * - CASE + 26 WHEN - - 43 THEN - - 87 + 84 ELSE NULL END ) AS INTEGER )
----
8788

query I rowsort
SELECT DISTINCT + ( + 25 )
----
25

query I rowsort
SELECT ALL + - ( - 25 ) AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8755
SELECT ALL - ( 24 ) * - 28 * - 2 * COUNT( * ) + 53 AS col0
----
-1291

skipif mysql # not compatible
query I rowsort label-8755
SELECT ALL - ( 24 ) * - 28 * - 2 * COUNT ( * ) + 53 AS col0
----
-1291

query I rowsort
SELECT 65 * - 73 * - - 81 * + + 9 * - 95 + + 72 + + + 84 * - 42 col1
----
328611519

query I rowsort
SELECT - 18 col2
----
-18

query I rowsort
SELECT - 85 + - 40
----
-125

onlyif mysql # aggregate syntax: 
query II rowsort label-8759
SELECT + 91 * + - ( + 94 ) col0, - COUNT( * ) AS col2
----
-8554
-1

skipif mysql # not compatible
query II rowsort label-8759
SELECT + 91 * + - ( + 94 ) col0, - COUNT ( * ) AS col2
----
-8554
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8760
SELECT ALL 97 * + + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-8760
SELECT ALL 97 * + + COUNT ( * )
----
97

query I rowsort
SELECT ALL 49 - + NULLIF ( - 34, - 96 ) AS col2
----
83

query I rowsort
SELECT + 55 + 24
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-8763
SELECT + 31 + + 40 - - ( + + 42 ) DIV 85 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-8763
SELECT + 31 + + 40 - - ( + + 42 ) / 85 AS col1
----
71

query I rowsort
SELECT ALL CASE + ( 3 ) WHEN + 98 THEN NULL WHEN + - COALESCE ( - 40, + 57 * + + 95 / - - 55 + 82, - 85 ) * 98 THEN + 98 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8765
SELECT DISTINCT COALESCE ( + MIN( - 99 ), 54 DIV - 43 - - 89 - + 14, - + 25 + 57 ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-8765
SELECT DISTINCT COALESCE ( + MIN ( - 99 ), 54 / - 43 - - 89 - + 14, - + 25 + 57 ) AS col1
----
-99

query I rowsort
SELECT + 7 + + 52
----
59

query I rowsort
SELECT ALL 13 - + COALESCE ( + 4, - ( + 93 ) ) - CASE + 82 WHEN 44 * + - 21 THEN NULL ELSE 34 END
----
-25

query I rowsort
SELECT + 25 * + 26 AS col2
----
650

query I rowsort
SELECT + 95 + + 6
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-8770
SELECT + COUNT( * ) * + 30 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-8770
SELECT + COUNT ( * ) * + 30 AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8771
SELECT ALL SUM( 57 )
----
57

skipif mysql # not compatible
query I rowsort label-8771
SELECT ALL SUM ( 57 )
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8772
SELECT 66 AS col0, CAST( NULL AS SIGNED ) - 15
----
66
NULL

skipif mysql # not compatible
query II rowsort label-8772
SELECT 66 AS col0, CAST ( NULL AS INTEGER ) - 15
----
66
NULL

query I rowsort
SELECT - 77 - - 59 col0
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-8774
SELECT ALL COUNT( * ) col2, + 99 AS col0
----
1
99

skipif mysql # not compatible
query II rowsort label-8774
SELECT ALL COUNT ( * ) col2, + 99 AS col0
----
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8775
SELECT DISTINCT COUNT( + 26 )
----
1

skipif mysql # not compatible
query I rowsort label-8775
SELECT DISTINCT COUNT ( + 26 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8776
SELECT CAST( NULL AS DECIMAL ) * 13 * 93 * + + 17 * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8776
SELECT CAST ( NULL AS REAL ) * 13 * 93 * + + 17 * COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8777
SELECT ALL - CAST( NULL AS SIGNED ) * - 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8777
SELECT ALL - CAST ( NULL AS INTEGER ) * - 70 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 12 * - 51
----
612

query I rowsort
SELECT ALL - + COALESCE ( - + 67, + + 84, - + 2 * + 61 * 99 ) * + - 25
----
-1675

query I rowsort
SELECT + NULLIF ( - + ( 56 ), + COALESCE ( 96, - 67 ) )
----
-56

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8781
SELECT - CAST( NULL AS DECIMAL ) / 91 + + - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-8781
SELECT - CAST ( NULL AS REAL ) / 91 + + - 79
----
NULL

query I rowsort
SELECT + 95 + + - 97 AS col1
----
-2

query I rowsort
SELECT + 9 + + 2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT ALL + - 27 + - 15 + + COUNT( ALL - + 24 ) col1
----
-41

skipif mysql # not compatible
query I rowsort label-8784
SELECT ALL + - 27 + - 15 + + COUNT ( ALL - + 24 ) col1
----
-41

query I rowsort
SELECT - NULLIF ( - + 72, 89 ) + + + 31 + + + 24 AS col0
----
127

query II rowsort
SELECT - 57, + 48 * - 42 AS col2
----
-57
-2016

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT ALL - COALESCE ( + + 95, + 60, + 78 + + COUNT( * ) ) * - + 67 * + + 76 * + 60
----
29024400

skipif mysql # not compatible
query I rowsort label-8787
SELECT ALL - COALESCE ( + + 95, + 60, + 78 + + COUNT ( * ) ) * - + 67 * + + 76 * + 60
----
29024400

query I rowsort
SELECT ALL - - 48 + ( - 36 ) AS col1
----
12

query I rowsort
SELECT + 68 * - 61
----
-4148

query I rowsort
SELECT + 11 * + 25 AS col1
----
275

query I rowsort
SELECT 68 + + 5
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8792
SELECT + CAST( 40 AS SIGNED )
----
40

skipif mysql # not compatible
query I rowsort label-8792
SELECT + CAST ( 40 AS INTEGER )
----
40

query I rowsort
SELECT ALL - 69 * - 16 * + + 84
----
92736

query I rowsort
SELECT 91 * - + ( 40 )
----
-3640

query II rowsort
SELECT ALL - 87 * 59 AS col0, + 17
----
-5133
17

onlyif mysql # aggregate syntax: 
query II rowsort label-8796
SELECT ALL - 69 * + 40, NULLIF ( - COALESCE ( + 30, - COUNT( * ), + 71 * 25 - - 96 ), + 10 * - MAX( + - 97 ) ) - + ( 25 ) col2
----
-2760
-55

skipif mysql # not compatible
query II rowsort label-8796
SELECT ALL - 69 * + 40, NULLIF ( - COALESCE ( + 30, - COUNT ( * ), + 71 * 25 - - 96 ), + 10 * - MAX ( + - 97 ) ) - + ( 25 ) col2
----
-2760
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8797
SELECT 17 * + 90 * - SUM( - - 69 ) * - + 29
----
3061530

skipif mysql # not compatible
query I rowsort label-8797
SELECT 17 * + 90 * - SUM ( - - 69 ) * - + 29
----
3061530

onlyif mysql # aggregate syntax: 
query I rowsort label-8798
SELECT 91 - - COUNT( * ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-8798
SELECT 91 - - COUNT ( * ) AS col0
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8799
SELECT DISTINCT COUNT( * ) * + ( + 12 ) DIV 77 * 36 + - ( - 5 ) + 91 + + 10
----
106

skipif mysql # not compatible
query I rowsort label-8799
SELECT DISTINCT COUNT ( * ) * + ( + 12 ) / 77 * 36 + - ( - 5 ) + 91 + + 10
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-8800
SELECT ALL COUNT( + 14 ) * - 85
----
-85

skipif mysql # not compatible
query I rowsort label-8800
SELECT ALL COUNT ( + 14 ) * - 85
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-8801
SELECT 26 DIV + + 51 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8801
SELECT 26 / + + 51 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8802
SELECT ALL - NULLIF ( - - ( - 24 ), 59 + - - ( 99 ) ) DIV - 17 + 93
----
92

skipif mysql # not compatible
query I rowsort label-8802
SELECT ALL - NULLIF ( - - ( - 24 ), 59 + - - ( 99 ) ) / - 17 + 93
----
92

query I rowsort
SELECT DISTINCT + 7 * 24
----
168

query I rowsort
SELECT ALL + 47 * + ( ( - 43 ) )
----
-2021

query I rowsort
SELECT + 27 * 81 + - 31
----
2156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8806
SELECT 14 + COUNT( * ) * + + 78 / - CAST( NULL AS SIGNED ) * - + 53 * + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-8806
SELECT 14 + COUNT ( * ) * + + 78 / - CAST ( NULL AS INTEGER ) * - + 53 * + 11
----
NULL

query I rowsort
SELECT - - 45 AS col0
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-8808
SELECT - ( - COUNT( * ) ) + - ( 66 ) AS col1, + COUNT( * ) * + - 41 col1
----
-65
-41

skipif mysql # not compatible
query II rowsort label-8808
SELECT - ( - COUNT ( * ) ) + - ( 66 ) AS col1, + COUNT ( * ) * + - 41 col1
----
-65
-41

query I rowsort
SELECT DISTINCT - 23 + 80
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8810
SELECT ALL 32 + + 17 * - 65 * - + 46 * MIN( + 55 ) * + - 99 AS col0
----
-276769318

skipif mysql # not compatible
query I rowsort label-8810
SELECT ALL 32 + + 17 * - 65 * - + 46 * MIN ( + 55 ) * + - 99 AS col0
----
-276769318

query I rowsort
SELECT ALL NULLIF ( ( - - 53 ), + 42 * - + 17 ) + - + 64
----
-11

query I rowsort
SELECT ALL - - ( + 96 )
----
96

query I rowsort
SELECT + ( 67 ) AS col2
----
67

query I rowsort
SELECT DISTINCT - 55 col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT COUNT( * ) * 21 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-8815
SELECT COUNT ( * ) * 21 AS col1
----
21

query I rowsort
SELECT ALL + ( + 54 ) + + 21 * + 39 * - + 94 * - 77
----
5927976

onlyif mysql # DIV for integer division: 
query I rowsort label-8817
SELECT + 0 DIV ( + 52 ) - - 84 * 40 + 41 AS col0
----
3401

skipif mysql # not compatible
query I rowsort label-8817
SELECT + 0 / ( + 52 ) - - 84 * 40 + 41 AS col0
----
3401

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8818
SELECT 93 DIV - + SUM( ALL + 71 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-8818
SELECT 93 / - + SUM ( ALL + 71 ) col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8819
SELECT + CAST( 15 AS SIGNED ) * + CAST( NULL AS SIGNED ) - + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-8819
SELECT + CAST ( 15 AS INTEGER ) * + CAST ( NULL AS INTEGER ) - + 71
----
NULL

query I rowsort
SELECT DISTINCT 85 * + 37 AS col1
----
3145

query I rowsort
SELECT 1 - + 5 col1
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-8822
SELECT ALL + 1 DIV + - 5
----
0

skipif mysql # not compatible
query I rowsort label-8822
SELECT ALL + 1 / + - 5
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8823
SELECT ALL COUNT( * ) - 21
----
-20

skipif mysql # not compatible
query I rowsort label-8823
SELECT ALL COUNT ( * ) - 21
----
-20

query I rowsort
SELECT 17 * - 86 AS col1
----
-1462

query I rowsort
SELECT 30 * - + 85 AS col2
----
-2550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8826
SELECT - 20 * CAST( - + CASE - - MAX( + + 82 ) WHEN - + 27 THEN - 55 WHEN + 74 + - 62 THEN COUNT( * ) * - ( 79 ) ELSE COUNT( * ) END AS SIGNED ) - - 43
----
63

skipif mysql # not compatible
query I rowsort label-8826
SELECT - 20 * CAST ( - + CASE - - MAX ( + + 82 ) WHEN - + 27 THEN - 55 WHEN + 74 + - 62 THEN COUNT ( * ) * - ( 79 ) ELSE COUNT ( * ) END AS INTEGER ) - - 43
----
63

query I rowsort
SELECT 10 + + 6 AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8828
SELECT - 90 * + - ( - 7 ) * 64 + - COUNT( * ) AS col2
----
-40321

skipif mysql # not compatible
query I rowsort label-8828
SELECT - 90 * + - ( - 7 ) * 64 + - COUNT ( * ) AS col2
----
-40321

onlyif mysql # aggregate syntax: 
query I rowsort label-8829
SELECT - 20 * - 17 + + - NULLIF ( 25, 37 / + 28 * 17 ) * 55 * 61 * + ( - MIN( + 48 ) ) * + - COUNT( * ) + 99 AS col2
----
-4025561

skipif mysql # not compatible
query I rowsort label-8829
SELECT - 20 * - 17 + + - NULLIF ( 25, 37 / + 28 * 17 ) * 55 * 61 * + ( - MIN ( + 48 ) ) * + - COUNT ( * ) + 99 AS col2
----
-4025561

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT ALL CASE WHEN 47 IS NULL THEN - - MAX( ALL - 69 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8830
SELECT ALL CASE WHEN 47 IS NULL THEN - - MAX ( ALL - 69 ) END
----
NULL

query I rowsort
SELECT ALL NULLIF ( - COALESCE ( + 7, + - 10 ), + - COALESCE ( 82, 1 / + - 11 ) )
----
-7

query I rowsort
SELECT - 59 * - 36 AS col1
----
2124

query I rowsort
SELECT - 94 + + 76 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8834
SELECT - 24 * - CASE 60 / + 92 WHEN - 20 THEN SUM( 57 ) * COALESCE ( COUNT( * ) * 91 + - 50, + 29, 30 / + COUNT( * ) + 95 ) + 93 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8834
SELECT - 24 * - CASE 60 / + 92 WHEN - 20 THEN SUM ( 57 ) * COALESCE ( COUNT ( * ) * 91 + - 50, + 29, 30 / + COUNT ( * ) + 95 ) + 93 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 76 + + 86 AS col2
----
162

query I rowsort
SELECT - 58 * 29 AS col0
----
-1682

query I rowsort
SELECT ALL 46 + 35 AS col0
----
81

query I rowsort
SELECT DISTINCT 5 * 77
----
385

query I rowsort
SELECT DISTINCT + 77 + + 57
----
134

onlyif mysql # DIV for integer division: 
query I rowsort label-8840
SELECT + ( 71 ) DIV + 85
----
0

skipif mysql # not compatible
query I rowsort label-8840
SELECT + ( 71 ) / + 85
----
0

query I rowsort
SELECT 59 * 66 + 64
----
3958

onlyif mysql # aggregate syntax: 
query I rowsort label-8842
SELECT - CASE 59 WHEN - 3 THEN ( - 16 ) WHEN 61 / ( 44 ) THEN - 9 * 64 + COUNT( DISTINCT + 29 - + 72 * 13 ) END * 54
----
NULL

skipif mysql # not compatible
query I rowsort label-8842
SELECT - CASE 59 WHEN - 3 THEN ( - 16 ) WHEN 61 / ( 44 ) THEN - 9 * 64 + COUNT ( DISTINCT + 29 - + 72 * 13 ) END * 54
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8843
SELECT + CAST( + COALESCE ( + 25, - COUNT( * ) ) AS SIGNED ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8843
SELECT + CAST ( + COALESCE ( + 25, - COUNT ( * ) ) AS INTEGER ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 49 * 72 - + 5 * - 1 AS col0
----
-3523

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8845
SELECT + NULLIF ( - 92, ( + CAST( - 54 AS SIGNED ) ) + ( + 72 ) ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-8845
SELECT + NULLIF ( - 92, ( + CAST ( - 54 AS INTEGER ) ) + ( + 72 ) ) AS col0
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8846
SELECT + ( + ( + CAST( - MIN( - 73 ) AS SIGNED ) ) )
----
73

skipif mysql # not compatible
query I rowsort label-8846
SELECT + ( + ( + CAST ( - MIN ( - 73 ) AS INTEGER ) ) )
----
73

query I rowsort
SELECT + NULLIF ( 49, 19 + 44 * 99 ) * + 13 AS col2
----
637

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT DISTINCT MAX( 56 ) * + 45
----
2520

skipif mysql # not compatible
query I rowsort label-8848
SELECT DISTINCT MAX ( 56 ) * + 45
----
2520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8849
SELECT 33 DIV + COUNT( COALESCE ( ( - 19 ), 43 + - 2 * + CAST( NULL AS SIGNED ), + 20 DIV - 43 ) ) + 44
----
77

skipif mysql # not compatible
query I rowsort label-8849
SELECT 33 / + COUNT ( COALESCE ( ( - 19 ), 43 + - 2 * + CAST ( NULL AS INTEGER ), + 20 / - 43 ) ) + 44
----
77

query I rowsort
SELECT + 8 + 87
----
95

query I rowsort
SELECT + 26 * - 66 col0
----
-1716

onlyif mysql # aggregate syntax: 
query I rowsort label-8852
SELECT DISTINCT COUNT( * ) * MAX( DISTINCT 14 * 88 )
----
1232

skipif mysql # not compatible
query I rowsort label-8852
SELECT DISTINCT COUNT ( * ) * MAX ( DISTINCT 14 * 88 )
----
1232

query I rowsort
SELECT + NULLIF ( 12, + COALESCE ( 25, 70 ) ) AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8854
SELECT - 2 + + COALESCE ( 87, - 21, 79, - COUNT( * ) * + 92 ) * + 77
----
6697

skipif mysql # not compatible
query I rowsort label-8854
SELECT - 2 + + COALESCE ( 87, - 21, 79, - COUNT ( * ) * + 92 ) * + 77
----
6697

query I rowsort
SELECT + 72 * - 23
----
-1656

onlyif mysql # aggregate syntax: 
query I rowsort label-8856
SELECT ALL + COUNT( DISTINCT - 68 )
----
1

skipif mysql # not compatible
query I rowsort label-8856
SELECT ALL + COUNT ( DISTINCT - 68 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8857
SELECT + 90 DIV + 32
----
2

skipif mysql # not compatible
query I rowsort label-8857
SELECT + 90 / + 32
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT DISTINCT MAX( DISTINCT + 26 ) * 72
----
1872

skipif mysql # not compatible
query I rowsort label-8858
SELECT DISTINCT MAX ( DISTINCT + 26 ) * 72
----
1872

onlyif mysql # aggregate syntax: 
query I rowsort label-8859
SELECT MAX( 26 ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-8859
SELECT MAX ( 26 ) AS col0
----
26

query I rowsort
SELECT DISTINCT COALESCE ( - 69, 37 ) AS col1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8861
SELECT DISTINCT + 62 * - 97 + + COUNT( * ) * 52
----
-5962

skipif mysql # not compatible
query I rowsort label-8861
SELECT DISTINCT + 62 * - 97 + + COUNT ( * ) * 52
----
-5962

onlyif mysql # DIV for integer division: 
query I rowsort label-8862
SELECT ALL + 62 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-8862
SELECT ALL + 62 / 98
----
0

query I rowsort
SELECT ALL 84 * 91 + 26
----
7670

query I rowsort
SELECT DISTINCT + 53 + 75
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT DISTINCT COUNT( DISTINCT - 68 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8865
SELECT DISTINCT COUNT ( DISTINCT - 68 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8866
SELECT - CASE 28 WHEN COUNT( * ) THEN - 9 + + 63 ELSE COUNT( * ) * 30 + + COUNT( * ) END DIV + MAX( - 20 * 66 )
----
0

skipif mysql # not compatible
query I rowsort label-8866
SELECT - CASE 28 WHEN COUNT ( * ) THEN - 9 + + 63 ELSE COUNT ( * ) * 30 + + COUNT ( * ) END / + MAX ( - 20 * 66 )
----
0

query I rowsort
SELECT + 6 - - 25 AS col2
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-8868
SELECT ALL + 62 DIV - ( 92 * - 22 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8868
SELECT ALL + 62 / - ( 92 * - 22 ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8869
SELECT ALL - CAST( NULL AS SIGNED ) + 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8869
SELECT ALL - CAST ( NULL AS INTEGER ) + 84 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8870
SELECT - CAST( - 82 AS SIGNED ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-8870
SELECT - CAST ( - 82 AS INTEGER ) AS col1
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8871
SELECT - CAST( - 10 AS SIGNED ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-8871
SELECT - CAST ( - 10 AS INTEGER ) AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8872
SELECT ALL + MAX( + 12 ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-8872
SELECT ALL + MAX ( + 12 ) AS col0
----
12

query I rowsort
SELECT ALL + - 46 + 30
----
-16

query I rowsort
SELECT ALL + + 21 * - 40
----
-840

query I rowsort
SELECT DISTINCT + 37 + 41
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8876
SELECT - + 9 * + COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-8876
SELECT - + 9 * + COUNT ( * )
----
-9

query I rowsort
SELECT ALL + - 54 + 1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8878
SELECT - MAX( ALL - 50 ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-8878
SELECT - MAX ( ALL - 50 ) AS col1
----
50

query I rowsort
SELECT - + 1 + + 80 AS col1
----
79

query I rowsort
SELECT + 38 * ( 67 * 96 + - 3 )
----
244302

query I rowsort
SELECT - - 77 AS col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8882
SELECT + - 27 + + MIN( ( - 14 ) ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-8882
SELECT + - 27 + + MIN ( ( - 14 ) ) AS col1
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-8883
SELECT ALL - 66 DIV + COALESCE ( - 21, 66, 15 ) - - 35
----
38

skipif mysql # not compatible
query I rowsort label-8883
SELECT ALL - 66 / + COALESCE ( - 21, 66, 15 ) - - 35
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT ALL + + COALESCE ( 64, - 86, COUNT( DISTINCT + 48 ) )
----
64

skipif mysql # not compatible
query I rowsort label-8884
SELECT ALL + + COALESCE ( 64, - 86, COUNT ( DISTINCT + 48 ) )
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8885
SELECT ALL + CAST( - 2 AS SIGNED )
----
-2

skipif mysql # not compatible
query I rowsort label-8885
SELECT ALL + CAST ( - 2 AS INTEGER )
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8886
SELECT ALL - ( - COUNT( * ) ) DIV + SUM( ALL + 32 * + 38 ) - 92
----
-92

skipif mysql # not compatible
query I rowsort label-8886
SELECT ALL - ( - COUNT ( * ) ) / + SUM ( ALL + 32 * + 38 ) - 92
----
-92

query I rowsort
SELECT - - 82 * + 96 AS col1
----
7872

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT ALL COUNT( * ) * + MIN( DISTINCT 17 * 50 )
----
850

skipif mysql # not compatible
query I rowsort label-8888
SELECT ALL COUNT ( * ) * + MIN ( DISTINCT 17 * 50 )
----
850

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8889
SELECT ALL + - NULLIF ( 51, ( COUNT( * ) ) * + 73 ) DIV COUNT( * ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-8889
SELECT ALL + - NULLIF ( 51, ( COUNT ( * ) ) * + 73 ) / COUNT ( * ) AS col2
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-8890
SELECT - 3 DIV - - COALESCE ( + 62, + 9 )
----
0

skipif mysql # not compatible
query I rowsort label-8890
SELECT - 3 / - - COALESCE ( + 62, + 9 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT + 9 * + 64 * - COUNT( * )
----
-576

skipif mysql # not compatible
query I rowsort label-8891
SELECT + 9 * + 64 * - COUNT ( * )
----
-576

query I rowsort
SELECT - 20 - - + 2 + 96 * + 62
----
5934

query I rowsort
SELECT + ( 47 ) AS col1
----
47

query I rowsort
SELECT + 85 * - + 42
----
-3570

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8895
SELECT ALL MAX( ALL - - CAST( + 25 AS SIGNED ) ) * 45 AS col2
----
1125

skipif mysql # not compatible
query I rowsort label-8895
SELECT ALL MAX ( ALL - - CAST ( + 25 AS INTEGER ) ) * 45 AS col2
----
1125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8896
SELECT + CAST( + 32 AS SIGNED )
----
32

skipif mysql # not compatible
query I rowsort label-8896
SELECT + CAST ( + 32 AS INTEGER )
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-8897
SELECT + 61 DIV + 69 * 1 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8897
SELECT + 61 / + 69 * 1 AS col2
----
0

query I rowsort
SELECT 10 * - + 80 AS col2
----
-800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8899
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8899
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8900
SELECT ALL + COUNT( * ) + + ( 2 ) * + 63 AS col1
----
127

skipif mysql # not compatible
query I rowsort label-8900
SELECT ALL + COUNT ( * ) + + ( 2 ) * + 63 AS col1
----
127

query I rowsort
SELECT - COALESCE ( 5, - 7 - + 34 * - 34 ) * 87 - + 41 * - 66 AS col1
----
2271

onlyif mysql # aggregate syntax: 
query I rowsort label-8902
SELECT ALL 37 + 17 + + 82 * + ( - COUNT( * ) ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-8902
SELECT ALL 37 + 17 + + 82 * + ( - COUNT ( * ) ) AS col1
----
-28

query I rowsort
SELECT 35 - + 48 col0
----
-13

query I rowsort
SELECT ALL 13 + + 29 AS col1
----
42

query I rowsort
SELECT ALL 30 * - - 93
----
2790

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8906
SELECT DISTINCT CAST( NULL AS DECIMAL ) + CASE 68 WHEN + 28 THEN + COALESCE ( COUNT( * ), 5 ) ELSE + COUNT( DISTINCT 38 ) * 10 END + + 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8906
SELECT DISTINCT CAST ( NULL AS REAL ) + CASE 68 WHEN + 28 THEN + COALESCE ( COUNT ( * ), 5 ) ELSE + COUNT ( DISTINCT 38 ) * 10 END + + 99 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8907
SELECT 25 + - COUNT( + ( - ( - 49 ) ) ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-8907
SELECT 25 + - COUNT ( + ( - ( - 49 ) ) ) AS col0
----
24

query I rowsort
SELECT ALL 77 + + 97 * + 60
----
5897

query I rowsort
SELECT ( - 23 ) + 68
----
45

query I rowsort
SELECT 80 - + + 88 AS col0
----
-8

query I rowsort
SELECT ALL - 99 + - + 50
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-8912
SELECT 43 * + - 25 + CASE 13 + + COUNT( * ) WHEN COALESCE ( 20, MAX( ALL 19 ) * + 93 + 33, COUNT( * ) ) * 21 THEN + 74 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8912
SELECT 43 * + - 25 + CASE 13 + + COUNT ( * ) WHEN COALESCE ( 20, MAX ( ALL 19 ) * + 93 + 33, COUNT ( * ) ) * 21 THEN + 74 END AS col0
----
NULL

query I rowsort
SELECT ALL - 30 col0
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-8914
SELECT ALL + - 18 + + 50 + - 25 DIV 86
----
32

skipif mysql # not compatible
query I rowsort label-8914
SELECT ALL + - 18 + + 50 + - 25 / 86
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-8915
SELECT DISTINCT - 44 DIV NULLIF ( + 54, 27 ) - 66 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-8915
SELECT DISTINCT - 44 / NULLIF ( + 54, 27 ) - 66 AS col2
----
-66

query I rowsort
SELECT 22 * + 83
----
1826

onlyif mysql # DIV for integer division: 
query I rowsort label-8917
SELECT ALL + 16 DIV + 31
----
0

skipif mysql # not compatible
query I rowsort label-8917
SELECT ALL + 16 / + 31
----
0

query I rowsort
SELECT 68 * - 43 AS col2
----
-2924

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8919
SELECT MIN( + NULLIF ( - 64, 81 + + 50 ) ) + 74 * MAX( + CASE ( - 35 ) WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN + 13 THEN NULL ELSE - COALESCE ( 46, ( - 94 ) + - 90 ) END * 14 )
----
-47720

skipif mysql # not compatible
query I rowsort label-8919
SELECT MIN ( + NULLIF ( - 64, 81 + + 50 ) ) + 74 * MAX ( + CASE ( - 35 ) WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN + 13 THEN NULL ELSE - COALESCE ( 46, ( - 94 ) + - 90 ) END * 14 )
----
-47720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8920
SELECT + SUM( + - ( - 21 ) ) * ( 83 DIV - 31 + 1 * - 50 ) col2
----
-1092

skipif mysql # not compatible
query I rowsort label-8920
SELECT + SUM ( + - ( - 21 ) ) * ( 83 / - 31 + 1 * - 50 ) col2
----
-1092

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT + 36 + - NULLIF ( + MAX( ALL 32 ), - 20 - MIN( ALL + 21 ) * - ( 28 * 48 + 98 ) ) * COALESCE ( ( - 0 ), + ( - 89 ) + - 80, 12 * 14 )
----
36

skipif mysql # not compatible
query I rowsort label-8921
SELECT + 36 + - NULLIF ( + MAX ( ALL 32 ), - 20 - MIN ( ALL + 21 ) * - ( 28 * 48 + 98 ) ) * COALESCE ( ( - 0 ), + ( - 89 ) + - 80, 12 * 14 )
----
36

query I rowsort
SELECT ALL + 92 * 95 AS col1
----
8740

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8923
SELECT DISTINCT COALESCE ( 43, - COUNT( * ) DIV 12 )
----
43

skipif mysql # not compatible
query I rowsort label-8923
SELECT DISTINCT COALESCE ( 43, - COUNT ( * ) / 12 )
----
43

query I rowsort
SELECT DISTINCT + - 76 * 47 AS col2
----
-3572

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8925
SELECT 68 + - 48 + COUNT( * ) DIV 64
----
20

skipif mysql # not compatible
query I rowsort label-8925
SELECT 68 + - 48 + COUNT ( * ) / 64
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT ALL + 31 * COUNT( 7 ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-8926
SELECT ALL + 31 * COUNT ( 7 ) AS col0
----
31

query I rowsort
SELECT DISTINCT - - ( 26 ) AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8928
SELECT + 13 * + 45 + + COUNT( * ) * + 15 + + 53 * ( 6 + 21 ) col2
----
2031

skipif mysql # not compatible
query I rowsort label-8928
SELECT + 13 * + 45 + + COUNT ( * ) * + 15 + + 53 * ( 6 + 21 ) col2
----
2031

onlyif mysql # aggregate syntax: 
query I rowsort label-8929
SELECT + SUM( DISTINCT - 85 )
----
-85

skipif mysql # not compatible
query I rowsort label-8929
SELECT + SUM ( DISTINCT - 85 )
----
-85

query I rowsort
SELECT 33 * 23 - - ( 51 ) + + 25 AS col1
----
835

onlyif mysql # aggregate syntax: 
query I rowsort label-8931
SELECT 10 + - + 57 + + COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-8931
SELECT 10 + - + 57 + + COUNT ( * )
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8932
SELECT - COALESCE ( - ( 80 ), - 71 * 47 ) DIV 60 + COUNT( * ) * + 84 AS col1
----
85

skipif mysql # not compatible
query I rowsort label-8932
SELECT - COALESCE ( - ( 80 ), - 71 * 47 ) / 60 + COUNT ( * ) * + 84 AS col1
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8933
SELECT 20 DIV + CASE 99 WHEN + 12 THEN NULL WHEN ( 15 ) * - COALESCE ( 23 * 12 + + 40 * 88, - 21 ) + 18 THEN NULL ELSE + 1 END DIV + COUNT( * ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-8933
SELECT 20 / + CASE 99 WHEN + 12 THEN NULL WHEN ( 15 ) * - COALESCE ( 23 * 12 + + 40 * 88, - 21 ) + 18 THEN NULL ELSE + 1 END / + COUNT ( * ) AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8934
SELECT ALL - COUNT( * ) + - 45
----
-46

skipif mysql # not compatible
query I rowsort label-8934
SELECT ALL - COUNT ( * ) + - 45
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8935
SELECT DISTINCT + 52 + + 45 + 57 * MAX( 71 ) AS col0
----
4144

skipif mysql # not compatible
query I rowsort label-8935
SELECT DISTINCT + 52 + + 45 + 57 * MAX ( 71 ) AS col0
----
4144

query I rowsort
SELECT ALL 37 + - 79 AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8937
SELECT - COUNT( * ) * + 79 + - 42 AS col1
----
-121

skipif mysql # not compatible
query I rowsort label-8937
SELECT - COUNT ( * ) * + 79 + - 42 AS col1
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT ALL + COUNT( * ) + + 55 * 97 AS col0
----
5336

skipif mysql # not compatible
query I rowsort label-8938
SELECT ALL + COUNT ( * ) + + 55 * 97 AS col0
----
5336

query I rowsort
SELECT ALL - 80 * - 63
----
5040

onlyif mysql # aggregate syntax: 
query I rowsort label-8940
SELECT 45 + - COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-8940
SELECT 45 + - COUNT ( * )
----
44

query I rowsort
SELECT 16 * 8 * - + 11 AS col1
----
-1408

onlyif mysql # aggregate syntax: 
query II rowsort label-8942
SELECT + 79, ( COUNT( 63 ) ) * - 7 AS col0
----
79
-7

skipif mysql # not compatible
query II rowsort label-8942
SELECT + 79, ( COUNT ( 63 ) ) * - 7 AS col0
----
79
-7

query I rowsort
SELECT ALL + 7 + + + 88 * - 96 * + 27
----
-228089

onlyif mysql # DIV for integer division: 
query I rowsort label-8944
SELECT 35 DIV - + 15 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-8944
SELECT 35 / - + 15 AS col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8945
SELECT ALL - 6 AS col2, COUNT( * ) + + COALESCE ( COUNT( * ), 44 * + CAST( NULL AS SIGNED ) ) AS col2
----
-6
2

skipif mysql # not compatible
query II rowsort label-8945
SELECT ALL - 6 AS col2, COUNT ( * ) + + COALESCE ( COUNT ( * ), 44 * + CAST ( NULL AS INTEGER ) ) AS col2
----
-6
2

query I rowsort
SELECT + 7 * 69 + - 11 AS col1
----
472

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8947
SELECT + 46 AS col0, CAST( 74 AS SIGNED ) + - 62
----
46
12

skipif mysql # not compatible
query II rowsort label-8947
SELECT + 46 AS col0, CAST ( 74 AS INTEGER ) + - 62
----
46
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT ALL - MIN( - - 91 ) col1
----
-91

skipif mysql # not compatible
query I rowsort label-8948
SELECT ALL - MIN ( - - 91 ) col1
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-8949
SELECT DISTINCT + 90 - - + 81 DIV 51 * - 81 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-8949
SELECT DISTINCT + 90 - - + 81 / 51 * - 81 AS col0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8950
SELECT ALL 25, ( + - 77 ) DIV COALESCE ( MAX( DISTINCT + 71 ), + 14 * 60, - CASE 76 WHEN 11 THEN NULL WHEN MIN( + 20 ) - 37 THEN NULL ELSE - 93 + 97 END * - 67 ) AS col0
----
25
-1

skipif mysql # not compatible
query II rowsort label-8950
SELECT ALL 25, ( + - 77 ) / COALESCE ( MAX ( DISTINCT + 71 ), + 14 * 60, - CASE 76 WHEN 11 THEN NULL WHEN MIN ( + 20 ) - 37 THEN NULL ELSE - 93 + 97 END * - 67 ) AS col0
----
25
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8951
SELECT - COUNT( * ), + CASE - 69 WHEN + 60 THEN - 49 DIV - 77 ELSE COUNT( + 45 ) END * 26 AS col1
----
-1
26

skipif mysql # not compatible
query II rowsort label-8951
SELECT - COUNT ( * ), + CASE - 69 WHEN + 60 THEN - 49 / - 77 ELSE COUNT ( + 45 ) END * 26 AS col1
----
-1
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8952
SELECT + COALESCE ( + 54, + MAX( ALL + 16 ) DIV 97 )
----
54

skipif mysql # not compatible
query I rowsort label-8952
SELECT + COALESCE ( + 54, + MAX ( ALL + 16 ) / 97 )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT NULLIF ( 71, - + COUNT( * ) + + 53 * 70 ) - - 90
----
161

skipif mysql # not compatible
query I rowsort label-8953
SELECT NULLIF ( 71, - + COUNT ( * ) + + 53 * 70 ) - - 90
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-8954
SELECT 83 - - 21 + - COUNT( * )
----
103

skipif mysql # not compatible
query I rowsort label-8954
SELECT 83 - - 21 + - COUNT ( * )
----
103

query II rowsort
SELECT - - 14, 16 col1
----
14
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT - CASE + - 62 WHEN + CASE 8 WHEN + 7 THEN - ( NULLIF ( + COUNT( * ), NULLIF ( - 25, + COALESCE ( 8, COUNT( * ) ) ) ) ) / 61 + - 1 END THEN - COALESCE ( - 60, + 59 + 96, - 71 ) END * + CASE WHEN NOT 42 <= NULL THEN 86 WHEN NULL BETWEEN ( COALESCE ( - 5, 8 + - 71 ) + 88 * ( 26 + + 45 ) ) AND ( + 60 + + 14 ) THEN NULL ELSE - 71 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8956
SELECT - CASE + - 62 WHEN + CASE 8 WHEN + 7 THEN - ( NULLIF ( + COUNT ( * ), NULLIF ( - 25, + COALESCE ( 8, COUNT ( * ) ) ) ) ) / 61 + - 1 END THEN - COALESCE ( - 60, + 59 + 96, - 71 ) END * + CASE WHEN NOT 42 <= NULL THEN 86 WHEN NULL BETWEEN ( COALESCE ( - 5, 8 + - 71 ) + 88 * ( 26 + + 45 ) ) AND ( + 60 + + 14 ) THEN NULL ELSE - 71 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8957
SELECT DISTINCT - 93 * - 26 + + - 10 - - COUNT( * )
----
2409

skipif mysql # not compatible
query I rowsort label-8957
SELECT DISTINCT - 93 * - 26 + + - 10 - - COUNT ( * )
----
2409

onlyif mysql # aggregate syntax: 
query I rowsort label-8958
SELECT ( COALESCE ( + + 43, + 63 + COUNT( * ) * 57 ) ) + - 92
----
-49

skipif mysql # not compatible
query I rowsort label-8958
SELECT ( COALESCE ( + + 43, + 63 + COUNT ( * ) * 57 ) ) + - 92
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8959
SELECT DISTINCT + 11 AS col1, COUNT( * ) * - - CASE - 40 WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN 7 THEN - SUM( 66 ) * 42 + 84 END / - 32 col1
----
11
NULL

skipif mysql # not compatible
query II rowsort label-8959
SELECT DISTINCT + 11 AS col1, COUNT ( * ) * - - CASE - 40 WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN 7 THEN - SUM ( 66 ) * 42 + 84 END / - 32 col1
----
11
NULL

query I rowsort
SELECT - ( - 2 ) AS col0
----
2

query I rowsort
SELECT ALL + ( + - 40 ) + 82
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT DISTINCT COUNT( * ) * + 2
----
2

skipif mysql # not compatible
query I rowsort label-8962
SELECT DISTINCT COUNT ( * ) * + 2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8963
SELECT + 73 * - - SUM( ALL + 96 )
----
7008

skipif mysql # not compatible
query I rowsort label-8963
SELECT + 73 * - - SUM ( ALL + 96 )
----
7008

query I rowsort
SELECT - 79 + + 76
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT CASE - - COUNT( * ) WHEN - 11 THEN NULL ELSE - 54 * 25 END AS col2
----
-1350

skipif mysql # not compatible
query I rowsort label-8965
SELECT CASE - - COUNT ( * ) WHEN - 11 THEN NULL ELSE - 54 * 25 END AS col2
----
-1350

query I rowsort
SELECT ALL + 74 * + 70 + + - 54
----
5126

query I rowsort
SELECT DISTINCT + 62 col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT - 43 * CASE + - 28 WHEN + MAX( + 69 ) * - COUNT( * ) THEN ( - 21 ) WHEN COUNT( * ) THEN 24 + - 14 * 40 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8968
SELECT - 43 * CASE + - 28 WHEN + MAX ( + 69 ) * - COUNT ( * ) THEN ( - 21 ) WHEN COUNT ( * ) THEN 24 + - 14 * 40 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 80 * 85 + + ( 22 )
----
6822

onlyif mysql # DIV for integer division: 
query I rowsort label-8970
SELECT - 4 DIV + 17 * - 94 * - 8 - 63 AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-8970
SELECT - 4 / + 17 * - 94 * - 8 - 63 AS col0
----
-63

query I rowsort
SELECT CASE - + 14 WHEN + + 99 THEN - 74 / 7 WHEN 19 THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8972
SELECT ALL - CAST( NULL AS SIGNED ) * - - 79 + + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-8972
SELECT ALL - CAST ( NULL AS INTEGER ) * - - 79 + + 75
----
NULL

query I rowsort
SELECT + 7 - - + ( + 42 ) - + 90
----
-41

query I rowsort
SELECT - 13 * + 57 AS col0
----
-741

query I rowsort
SELECT COALESCE ( + + 88, - 8 )
----
88

query I rowsort
SELECT - ( 51 ) * + 28 + + - 58 col0
----
-1486

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8977
SELECT - SUM( - COALESCE ( - 40, + 73 ) ) DIV NULLIF ( - 94, + MAX( ALL - CAST( NULL AS SIGNED ) ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8977
SELECT - SUM ( - COALESCE ( - 40, + 73 ) ) / NULLIF ( - 94, + MAX ( ALL - CAST ( NULL AS INTEGER ) ) ) AS col1
----
0

query I rowsort
SELECT - 77 * 10
----
-770

onlyif mysql # aggregate syntax: 
query I rowsort label-8979
SELECT DISTINCT - 31 * - COUNT( 1 )
----
31

skipif mysql # not compatible
query I rowsort label-8979
SELECT DISTINCT - 31 * - COUNT ( 1 )
----
31

query I rowsort
SELECT + 65 * 5 - - 67 * - 37 AS col2
----
-2154

onlyif mysql # aggregate syntax: 
query I rowsort label-8981
SELECT - COUNT( * ) - 57 * + - 11
----
626

skipif mysql # not compatible
query I rowsort label-8981
SELECT - COUNT ( * ) - 57 * + - 11
----
626

query II rowsort
SELECT ALL 41 * - 42 AS col1, 99 * + 32
----
-1722
3168

query I rowsort
SELECT DISTINCT + 31 * + NULLIF ( - 10, - 25 )
----
-310

onlyif mysql # DIV for integer division: 
query I rowsort label-8984
SELECT ALL + 16 * 29 DIV + + 6
----
77

skipif mysql # not compatible
query I rowsort label-8984
SELECT ALL + 16 * 29 / + + 6
----
77

query I rowsort
SELECT - 8 + + + 49 AS col1
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8986
SELECT + 78 DIV - CAST( - + MIN( - COALESCE ( 90, 81, 83 DIV + 81 ) ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8986
SELECT + 78 / - CAST ( - + MIN ( - COALESCE ( 90, 81, 83 / + 81 ) ) AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8987
SELECT - COUNT( * ) + + 96 AS col0
----
95

skipif mysql # not compatible
query I rowsort label-8987
SELECT - COUNT ( * ) + + 96 AS col0
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8988
SELECT + CAST( 92 AS SIGNED ) - + 10
----
82

skipif mysql # not compatible
query I rowsort label-8988
SELECT + CAST ( 92 AS INTEGER ) - + 10
----
82

query II rowsort
SELECT ALL + 56 * - 27 AS col2, - 78 AS col0
----
-1512
-78

query I rowsort
SELECT DISTINCT + ( 4 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8991
SELECT - COALESCE ( + - COUNT( * ), - 23 * 76 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8991
SELECT - COALESCE ( + - COUNT ( * ), - 23 * 76 ) AS col2
----
1

query I rowsort
SELECT + + 95 + - - 19 * + - 68 + + 27 AS col2
----
-1170

onlyif mysql # aggregate syntax: 
query I rowsort label-8993
SELECT ALL + COUNT( * ) + - 15 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-8993
SELECT ALL + COUNT ( * ) + - 15 AS col0
----
-14

query I rowsort
SELECT - 47 + - CASE + 96 WHEN + - 51 THEN 21 ELSE 32 END AS col2
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8995
SELECT - 51 * + + 45, - MAX( + - 22 ) - 29 DIV + 55 AS col2
----
-2295
22

skipif mysql # not compatible
query II rowsort label-8995
SELECT - 51 * + + 45, - MAX ( + - 22 ) - 29 / + 55 AS col2
----
-2295
22

query I rowsort
SELECT ALL 90 * ( + - 50 ) AS col2
----
-4500

query I rowsort
SELECT - NULLIF ( + 33, - 22 * NULLIF ( 44, - 35 + 63 ) ) AS col1
----
-33

query I rowsort
SELECT ALL 62 + + 32
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8999
SELECT + 67 - + COUNT( * ) DIV - COALESCE ( + 28, + ( CASE - 78 WHEN 71 THEN + 42 END ) - + 23 DIV - 77 )
----
67

skipif mysql # not compatible
query I rowsort label-8999
SELECT + 67 - + COUNT ( * ) / - COALESCE ( + 28, + ( CASE - 78 WHEN 71 THEN + 42 END ) - + 23 / - 77 )
----
67

query II rowsort
SELECT DISTINCT 5 AS col0, - 95 * + - 29
----
5
2755

onlyif mysql # aggregate syntax: 
query I rowsort label-9001
SELECT + 44 + - ( + 95 ) - + 91 + - - CASE - CASE 4 WHEN 92 * + 31 THEN + 88 WHEN - COUNT( ALL + COALESCE ( + 51, 93 ) ) THEN NULL END WHEN - 91 + 97 THEN + 40 ELSE NULL END * + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-9001
SELECT + 44 + - ( + 95 ) - + 91 + - - CASE - CASE 4 WHEN 92 * + 31 THEN + 88 WHEN - COUNT ( ALL + COALESCE ( + 51, 93 ) ) THEN NULL END WHEN - 91 + 97 THEN + 40 ELSE NULL END * + 38
----
NULL

query I rowsort
SELECT + 20 + + 38
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9003
SELECT ALL - 52 DIV + - 50 + - 55 - - 28 DIV + - 3 - - COUNT( * ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-9003
SELECT ALL - 52 / + - 50 + - 55 - - 28 / + - 3 - - COUNT ( * ) AS col1
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9004
SELECT 71 * + 65 * - + 61 * + CAST( NULL AS SIGNED ) * 21 + 22 * ( 26 * + 42 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9004
SELECT 71 * + 65 * - + 61 * + CAST ( NULL AS INTEGER ) * 21 + 22 * ( 26 * + 42 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT + CASE + COUNT( * ) WHEN - 71 + + 18 THEN COALESCE ( + 78, - 9 ) WHEN 65 + 66 THEN NULL ELSE + COUNT( * ) END AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9005
SELECT + CASE + COUNT ( * ) WHEN - 71 + + 18 THEN COALESCE ( + 78, - 9 ) WHEN 65 + 66 THEN NULL ELSE + COUNT ( * ) END AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9006
SELECT CAST( + - CAST( NULL AS DECIMAL ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9006
SELECT CAST ( + - CAST ( NULL AS REAL ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9007
SELECT DISTINCT ( 62 ) / - + 82 * ( - SUM( CAST( NULL AS DECIMAL ) ) ) * + COUNT( * ) + + 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9007
SELECT DISTINCT ( 62 ) / - + 82 * ( - SUM ( CAST ( NULL AS REAL ) ) ) * + COUNT ( * ) + + 98 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9008
SELECT ( - 1 ) * 64 - - CASE 48 WHEN - COALESCE ( + COUNT( * ), - 83 * COALESCE ( + 89, 7 ) + 3 * + CAST( MAX( DISTINCT + 62 ) AS DECIMAL ) ) / - NULLIF ( 30 * + 98, + CASE - ( - 27 ) WHEN 46 THEN 4 ELSE - 99 * ( 64 / 18 ) - + 1 END ) THEN NULL WHEN + 83 THEN + 83 ELSE NULL END + - 38 * 81 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9008
SELECT ( - 1 ) * 64 - - CASE 48 WHEN - COALESCE ( + COUNT ( * ), - 83 * COALESCE ( + 89, 7 ) + 3 * + CAST ( MAX ( DISTINCT + 62 ) AS REAL ) ) / - NULLIF ( 30 * + 98, + CASE - ( - 27 ) WHEN 46 THEN 4 ELSE - 99 * ( 64 / 18 ) - + 1 END ) THEN NULL WHEN + 83 THEN + 83 ELSE NULL END + - 38 * 81 * COUNT ( * )
----
NULL

query I rowsort
SELECT - ( + + 28 ) * 47
----
-1316

query I rowsort
SELECT ALL 54 * + 8 AS col0
----
432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9011
SELECT CAST( + 96 AS SIGNED ) col2
----
96

skipif mysql # not compatible
query I rowsort label-9011
SELECT CAST ( + 96 AS INTEGER ) col2
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9012
SELECT ALL ( + + COUNT( ALL - 64 ) ) DIV + - 37 + 90 + + COUNT( * ) col1
----
91

skipif mysql # not compatible
query I rowsort label-9012
SELECT ALL ( + + COUNT ( ALL - 64 ) ) / + - 37 + 90 + + COUNT ( * ) col1
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9013
SELECT DISTINCT - 42 DIV - 41 - - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-9013
SELECT DISTINCT - 42 / - 41 - - COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
SELECT COUNT( * ) * + + 87 * 75 + - + 72 * + + 59 * + COUNT( * ) + - 58
----
2219

skipif mysql # not compatible
query I rowsort label-9014
SELECT COUNT ( * ) * + + 87 * 75 + - + 72 * + + 59 * + COUNT ( * ) + - 58
----
2219

query II rowsort
SELECT ALL + 96 AS col0, - 57
----
96
-57

query I rowsort
SELECT + 99 * - ( 66 ) + + 62
----
-6472

query I rowsort
SELECT ALL + ( + 43 ) AS col2
----
43

query I rowsort
SELECT ALL 12 * 25 col1
----
300

onlyif mysql # aggregate syntax: 
query I rowsort label-9019
SELECT + 18 * NULLIF ( + ( + CASE - - ( + COUNT( * ) ) WHEN - 59 THEN NULL ELSE 80 END ), 0 + - 66 * 63 )
----
1440

skipif mysql # not compatible
query I rowsort label-9019
SELECT + 18 * NULLIF ( + ( + CASE - - ( + COUNT ( * ) ) WHEN - 59 THEN NULL ELSE 80 END ), 0 + - 66 * 63 )
----
1440

onlyif mysql # aggregate syntax: 
query I rowsort label-9020
SELECT - COUNT( * ) * - + 56 col0
----
56

skipif mysql # not compatible
query I rowsort label-9020
SELECT - COUNT ( * ) * - + 56 col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9021
SELECT ALL + + ( + - SUM( DISTINCT + ( 96 ) ) ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-9021
SELECT ALL + + ( + - SUM ( DISTINCT + ( 96 ) ) ) AS col0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT - + 78 * COUNT( * ) + - - 17 + - - 9 col1
----
-52

skipif mysql # not compatible
query I rowsort label-9022
SELECT - + 78 * COUNT ( * ) + - - 17 + - - 9 col1
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9023
SELECT - + 49 * + CAST( + 87 AS SIGNED ) * + COUNT( * ) + 45 + + 7 * - 9 * - 53
----
-879

skipif mysql # not compatible
query I rowsort label-9023
SELECT - + 49 * + CAST ( + 87 AS INTEGER ) * + COUNT ( * ) + 45 + + 7 * - 9 * - 53
----
-879

onlyif mysql # aggregate syntax: 
query I rowsort label-9024
SELECT ALL + 4 * - COUNT( * ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-9024
SELECT ALL + 4 * - COUNT ( * ) AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT - MIN( + + 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-9025
SELECT - MIN ( + + 48 )
----
-48

query I rowsort
SELECT - 64 + + 90 AS col1
----
26

query I rowsort
SELECT DISTINCT - 13 * 75 + - 67 AS col2
----
-1042

onlyif mysql # aggregate syntax: 
query I rowsort label-9028
SELECT ALL - 78 * - - COUNT( * ) * + 84 + COUNT( * ) + - - 31 AS col1
----
-6520

skipif mysql # not compatible
query I rowsort label-9028
SELECT ALL - 78 * - - COUNT ( * ) * + 84 + COUNT ( * ) + - - 31 AS col1
----
-6520

query I rowsort
SELECT - 22 - + 86 + ( + 28 )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9030
SELECT ALL - + COUNT( * ) * - 40
----
40

skipif mysql # not compatible
query I rowsort label-9030
SELECT ALL - + COUNT ( * ) * - 40
----
40

query I rowsort
SELECT + 31 * - 27
----
-837

onlyif mysql # aggregate syntax: 
query I rowsort label-9032
SELECT COUNT( * ) - - COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9032
SELECT COUNT ( * ) - - COUNT ( * ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9033
SELECT DISTINCT - 19 + + MIN( ALL - 94 ) * + COUNT( * )
----
-113

skipif mysql # not compatible
query I rowsort label-9033
SELECT DISTINCT - 19 + + MIN ( ALL - 94 ) * + COUNT ( * )
----
-113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9034
SELECT ALL - 28 + + - 37 * - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9034
SELECT ALL - 28 + + - 37 * - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9035
SELECT DISTINCT + 10, COUNT( * ) AS col1
----
10
1

skipif mysql # not compatible
query II rowsort label-9035
SELECT DISTINCT + 10, COUNT ( * ) AS col1
----
10
1

query I rowsort
SELECT 39 - + 24 - + + 11
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-9037
SELECT - 11 AS col1, + MAX( DISTINCT - 75 )
----
-11
-75

skipif mysql # not compatible
query II rowsort label-9037
SELECT - 11 AS col1, + MAX ( DISTINCT - 75 )
----
-11
-75

query I rowsort
SELECT 29 * - + 48
----
-1392

onlyif mysql # aggregate syntax: 
query II rowsort label-9039
SELECT 69 AS col2, 77 + + + ( - - 50 ) + - MIN( + 46 )
----
69
81

skipif mysql # not compatible
query II rowsort label-9039
SELECT 69 AS col2, 77 + + + ( - - 50 ) + - MIN ( + 46 )
----
69
81

query II rowsort
SELECT - 20 AS col1, + 59 col1
----
-20
59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9041
SELECT - 22, - COALESCE ( CAST( NULL AS SIGNED ), - - COALESCE ( - 28, + 65 ) ) * + 2 col1
----
-22
56

skipif mysql # not compatible
query II rowsort label-9041
SELECT - 22, - COALESCE ( CAST ( NULL AS INTEGER ), - - COALESCE ( - 28, + 65 ) ) * + 2 col1
----
-22
56

query I rowsort
SELECT DISTINCT + 58 - 23 * 77
----
-1713

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT DISTINCT 7 - 42 + - 34 * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-9043
SELECT DISTINCT 7 - 42 + - 34 * - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9044
SELECT ( + SUM( DISTINCT + 99 ) ) * 93 * - + 92
----
-847044

skipif mysql # not compatible
query I rowsort label-9044
SELECT ( + SUM ( DISTINCT + 99 ) ) * 93 * - + 92
----
-847044

query I rowsort
SELECT 60 - - - 12 AS col0
----
48

query II rowsort
SELECT + 46 AS col2, 98
----
46
98

query II rowsort
SELECT DISTINCT - 31, 13 AS col2
----
-31
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9048
SELECT ALL COUNT( DISTINCT - + NULLIF ( + 84, + ( + 12 ) ) ) DIV + NULLIF ( - 78, 75 ) + - 70 AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-9048
SELECT ALL COUNT ( DISTINCT - + NULLIF ( + 84, + ( + 12 ) ) ) / + NULLIF ( - 78, 75 ) + - 70 AS col1
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-9049
SELECT 20 DIV + + 54 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9049
SELECT 20 / + + 54 AS col1
----
0

query II rowsort
SELECT ALL - 9 AS col1, - 66 * 46 * + 63 + - 53 col0
----
-9
-191321

query I rowsort
SELECT 12 - + - 87
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT DISTINCT + 6 + + 84 + - MIN( + 66 )
----
24

skipif mysql # not compatible
query I rowsort label-9052
SELECT DISTINCT + 6 + + 84 + - MIN ( + 66 )
----
24

query I rowsort
SELECT ( - - 47 ) * - + 97
----
-4559

onlyif mysql # aggregate syntax: 
query I rowsort label-9054
SELECT 78 * + COUNT( * ) + 0 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-9054
SELECT 78 * + COUNT ( * ) + 0 AS col2
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9055
SELECT ALL 23 + - - 33 + 0 DIV 86 * 17 * + COALESCE ( + 61, 88 * COUNT( * ) - 90, + CAST( 4 AS SIGNED ) ) col2
----
56

skipif mysql # not compatible
query I rowsort label-9055
SELECT ALL 23 + - - 33 + 0 / 86 * 17 * + COALESCE ( + 61, 88 * COUNT ( * ) - 90, + CAST ( 4 AS INTEGER ) ) col2
----
56

query II rowsort
SELECT + 35 col2, - 28 AS col1
----
35
-28

query I rowsort
SELECT + NULLIF ( 92, 35 ) AS col2
----
92

query I rowsort
SELECT 50 * - 6 AS col0
----
-300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9059
SELECT + COUNT( * ) + + 13 DIV - - 35 + 76 col2
----
77

skipif mysql # not compatible
query I rowsort label-9059
SELECT + COUNT ( * ) + + 13 / - - 35 + 76 col2
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9060
SELECT + - CAST( ( - - 29 ) AS SIGNED )
----
-29

skipif mysql # not compatible
query I rowsort label-9060
SELECT + - CAST ( ( - - 29 ) AS INTEGER )
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9061
SELECT 68 * 60 * COUNT( * ) + 13 DIV + 75 AS col1
----
4080

skipif mysql # not compatible
query I rowsort label-9061
SELECT 68 * 60 * COUNT ( * ) + 13 / + 75 AS col1
----
4080

query I rowsort
SELECT + 89 - + 73
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT ALL + 32 + - 2 + - CASE + COUNT( * ) WHEN 19 THEN - - 53 * - 17 + + COUNT( * ) * - 70 ELSE ( - CASE 14 WHEN - 43 THEN 87 END ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9063
SELECT ALL + 32 + - 2 + - CASE + COUNT ( * ) WHEN 19 THEN - - 53 * - 17 + + COUNT ( * ) * - 70 ELSE ( - CASE 14 WHEN - 43 THEN 87 END ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9064
SELECT ALL COUNT( ALL - 60 )
----
1

skipif mysql # not compatible
query I rowsort label-9064
SELECT ALL COUNT ( ALL - 60 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9065
SELECT DISTINCT - 30 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9065
SELECT DISTINCT - 30 - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9066
SELECT 26 + - - 97 AS col2, CASE - 14 WHEN - - 70 THEN + ( 82 ) / CASE - COALESCE ( - 94, CAST( 58 AS SIGNED ) ) WHEN - COUNT( * ) * - 34 THEN 73 * 78 WHEN 21 THEN NULL ELSE 62 END ELSE NULL END / + 98
----
123
NULL

skipif mysql # not compatible
query II rowsort label-9066
SELECT 26 + - - 97 AS col2, CASE - 14 WHEN - - 70 THEN + ( 82 ) / CASE - COALESCE ( - 94, CAST ( 58 AS INTEGER ) ) WHEN - COUNT ( * ) * - 34 THEN 73 * 78 WHEN 21 THEN NULL ELSE 62 END ELSE NULL END / + 98
----
123
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9067
SELECT 29 DIV + 43
----
0

skipif mysql # not compatible
query I rowsort label-9067
SELECT 29 / + 43
----
0

query I rowsort
SELECT 64 * + 32 AS col0
----
2048

onlyif mysql # DIV for integer division: 
query I rowsort label-9069
SELECT 35 + - 42 DIV 15
----
33

skipif mysql # not compatible
query I rowsort label-9069
SELECT 35 + - 42 / 15
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9070
SELECT MIN( DISTINCT - CAST( + + COALESCE ( + 76, CAST( + 77 AS SIGNED ) ) AS SIGNED ) ) * + + COUNT( * ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-9070
SELECT MIN ( DISTINCT - CAST ( + + COALESCE ( + 76, CAST ( + 77 AS INTEGER ) ) AS INTEGER ) ) * + + COUNT ( * ) AS col2
----
-76

query I rowsort
SELECT 45 + 33
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9072
SELECT DISTINCT + CAST( - + 4 AS SIGNED ) * SUM( - + 96 ) * - 49 AS col1
----
-18816

skipif mysql # not compatible
query I rowsort label-9072
SELECT DISTINCT + CAST ( - + 4 AS INTEGER ) * SUM ( - + 96 ) * - 49 AS col1
----
-18816

query I rowsort
SELECT DISTINCT + 63 * - 43 * 76
----
-205884

query I rowsort
SELECT 64 * + 13
----
832

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9075
SELECT MAX( DISTINCT + - CAST( NULL AS DECIMAL ) ) + 2 / CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9075
SELECT MAX ( DISTINCT + - CAST ( NULL AS REAL ) ) + 2 / CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT 80 + - + 61
----
19

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9077
SELECT 45 * - COALESCE ( + 21, 96 ) + - + SUM( DISTINCT - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9077
SELECT 45 * - COALESCE ( + 21, 96 ) + - + SUM ( DISTINCT - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9078
SELECT + 3 * + + 80 - 96 + + 82 * - 11 * + CAST( - COUNT( * ) AS SIGNED ) + 36 AS col0
----
1082

skipif mysql # not compatible
query I rowsort label-9078
SELECT + 3 * + + 80 - 96 + + 82 * - 11 * + CAST ( - COUNT ( * ) AS INTEGER ) + 36 AS col0
----
1082

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT MIN( ALL + 85 ) * + 76
----
6460

skipif mysql # not compatible
query I rowsort label-9079
SELECT MIN ( ALL + 85 ) * + 76
----
6460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9080
SELECT DISTINCT - ( CAST( 36 AS SIGNED ) ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-9080
SELECT DISTINCT - ( CAST ( 36 AS INTEGER ) ) AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9081
SELECT ALL - + NULLIF ( - + 33, - - 88 ) * + ( 9 ) + - COUNT( * ) + - ( 80 ) * + 3
----
56

skipif mysql # not compatible
query I rowsort label-9081
SELECT ALL - + NULLIF ( - + 33, - - 88 ) * + ( 9 ) + - COUNT ( * ) + - ( 80 ) * + 3
----
56

query I rowsort
SELECT 82 * 32 + + 3
----
2627

query I rowsort
SELECT ALL + 77 * 88 * COALESCE ( + - 53, - 41 ) + - 28 + - - 62 + - 27 AS col1
----
-359121

onlyif mysql # aggregate syntax: 
query I rowsort label-9084
SELECT + NULLIF ( + - 41, + 16 ) + - + 20 * COUNT( * ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-9084
SELECT + NULLIF ( + - 41, + 16 ) + - + 20 * COUNT ( * ) AS col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9085
SELECT - ( + SUM( DISTINCT + 44 ) ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-9085
SELECT - ( + SUM ( DISTINCT + 44 ) ) AS col0
----
-44

query I rowsort
SELECT ( - ( - + 41 ) )
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-9087
SELECT - - 22 * - - 40 AS col0, COUNT( * )
----
880
1

skipif mysql # not compatible
query II rowsort label-9087
SELECT - - 22 * - - 40 AS col0, COUNT ( * )
----
880
1

query I rowsort
SELECT + 60 * - 52 AS col1
----
-3120

onlyif mysql # aggregate syntax: 
query II rowsort label-9089
SELECT COUNT( ALL 26 ) AS col0, + 79 col1
----
1
79

skipif mysql # not compatible
query II rowsort label-9089
SELECT COUNT ( ALL 26 ) AS col0, + 79 col1
----
1
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT - + 40 * - 39 + - COUNT( * ) AS col2
----
1559

skipif mysql # not compatible
query I rowsort label-9090
SELECT - + 40 * - 39 + - COUNT ( * ) AS col2
----
1559

query I rowsort
SELECT ALL CASE 52 WHEN + 54 THEN - 66 WHEN - + 43 THEN + ( - - 97 ) / - 12 END + ( 19 ) AS col0
----
NULL

query I rowsort
SELECT + 26 * + 54 AS col1
----
1404

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9093
SELECT ALL + ( 46 ) DIV - 9 + - COUNT( + CAST( NULL AS SIGNED ) ) + + + 73 - - 67 + + 64 * 85
----
5575

skipif mysql # not compatible
query I rowsort label-9093
SELECT ALL + ( 46 ) / - 9 + - COUNT ( + CAST ( NULL AS INTEGER ) ) + + + 73 - - 67 + + 64 * 85
----
5575

query I rowsort
SELECT DISTINCT - 34 - 1 col0
----
-35

query I rowsort
SELECT DISTINCT + 59 - - ( - - 14 ) AS col2
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9096
SELECT CAST( + - 78 AS SIGNED )
----
-78

skipif mysql # not compatible
query I rowsort label-9096
SELECT CAST ( + - 78 AS INTEGER )
----
-78

query II rowsort
SELECT + - 20 * + 86 AS col0, + 98
----
-1720
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9098
SELECT ALL 3 * COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-9098
SELECT ALL 3 * COUNT ( * )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT + 67 - - 67 + + 68 + COUNT( * ) * - + ( - - COUNT( * ) ) * + 16 * - + MAX( DISTINCT 21 ) + - 83 * 66 AS col0
----
-4940

skipif mysql # not compatible
query I rowsort label-9099
SELECT + 67 - - 67 + + 68 + COUNT ( * ) * - + ( - - COUNT ( * ) ) * + 16 * - + MAX ( DISTINCT 21 ) + - 83 * 66 AS col0
----
-4940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9100
SELECT + 43 - NULLIF ( 90, 85 ) - - 22 * CAST( - 8 AS SIGNED ) DIV + 15 * - COUNT( - 74 )
----
-36

skipif mysql # not compatible
query I rowsort label-9100
SELECT + 43 - NULLIF ( 90, 85 ) - - 22 * CAST ( - 8 AS INTEGER ) / + 15 * - COUNT ( - 74 )
----
-36

query I rowsort
SELECT + 61 * - + 91
----
-5551

query I rowsort
SELECT ALL 67 * 23 AS col1
----
1541

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9103
SELECT ALL + 58 - + + 86 - + 59 + 48 + + 76 * + CAST( - + 17 AS SIGNED ) * 64 - + MIN( ALL + 17 ) * - 55
----
-81792

skipif mysql # not compatible
query I rowsort label-9103
SELECT ALL + 58 - + + 86 - + 59 + 48 + + 76 * + CAST ( - + 17 AS INTEGER ) * 64 - + MIN ( ALL + 17 ) * - 55
----
-81792

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9104
SELECT DISTINCT 16 AS col0, CAST( NULL AS DECIMAL ) * + + 8 * + 20
----
16
NULL

skipif mysql # not compatible
query II rowsort label-9104
SELECT DISTINCT 16 AS col0, CAST ( NULL AS REAL ) * + + 8 * + 20
----
16
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9105
SELECT DISTINCT 68 AS col2, + 22 DIV 34
----
68
0

skipif mysql # not compatible
query II rowsort label-9105
SELECT DISTINCT 68 AS col2, + 22 / 34
----
68
0

query I rowsort
SELECT - 31 * + 21 AS col0
----
-651

query I rowsort
SELECT - CASE - 47 WHEN - 38 THEN NULL ELSE + 22 END - + - 14 * - + 64 AS col0
----
-918

query II rowsort
SELECT 81 AS col0, - 56
----
81
-56

query I rowsort
SELECT - ( - + ( - + 57 ) ) AS col1
----
-57

query II rowsort
SELECT 89, 61 AS col0
----
89
61

query I rowsort
SELECT ALL - 86 + + 22 AS col2
----
-64

query I rowsort
SELECT + 95 * - + CASE 94 WHEN + + 82 THEN NULL ELSE 93 + - 17 END AS col0
----
-7220

onlyif mysql # aggregate syntax: 
query I rowsort label-9113
SELECT - COUNT( * ) + - - 44
----
43

skipif mysql # not compatible
query I rowsort label-9113
SELECT - COUNT ( * ) + - - 44
----
43

query II rowsort
SELECT 32 col1, 35
----
32
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9115
SELECT DISTINCT - 68 + - SUM( - + 18 ) + + + 31 DIV 52
----
-50

skipif mysql # not compatible
query I rowsort label-9115
SELECT DISTINCT - 68 + - SUM ( - + 18 ) + + + 31 / 52
----
-50

query I rowsort
SELECT ALL CASE ( 17 ) WHEN + 18 THEN 39 WHEN + 7 * - - 75 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9117
SELECT ALL 53 + COUNT( - ( 84 ) ) - + COUNT( * ) * - + 74 * + 13 DIV - COUNT( * ) AS col2
----
-908

skipif mysql # not compatible
query I rowsort label-9117
SELECT ALL 53 + COUNT ( - ( 84 ) ) - + COUNT ( * ) * - + 74 * + 13 / - COUNT ( * ) AS col2
----
-908

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9118
SELECT ALL + CAST( 45 AS SIGNED )
----
45

skipif mysql # not compatible
query I rowsort label-9118
SELECT ALL + CAST ( 45 AS INTEGER )
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9119
SELECT ( CASE 28 WHEN + CASE + 71 WHEN 96 + CASE 60 WHEN - 61 THEN - 7 * + 28 + - CAST( + COALESCE ( 42, COUNT( ALL 78 ) * ( 3 ) ) + COUNT( * ) AS SIGNED ) * 92 END THEN NULL WHEN + 62 THEN NULL ELSE - 25 END THEN + COALESCE ( - 69, ( + 57 ) ) + ( + 18 ) END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9119
SELECT ( CASE 28 WHEN + CASE + 71 WHEN 96 + CASE 60 WHEN - 61 THEN - 7 * + 28 + - CAST ( + COALESCE ( 42, COUNT ( ALL 78 ) * ( 3 ) ) + COUNT ( * ) AS INTEGER ) * 92 END THEN NULL WHEN + 62 THEN NULL ELSE - 25 END THEN + COALESCE ( - 69, ( + 57 ) ) + ( + 18 ) END ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9120
SELECT DISTINCT ( CASE - 27 WHEN + 20 - + + CAST( NULL AS SIGNED ) THEN NULL WHEN - 77 * - + 24 + - COALESCE ( 8, - 93 ) + - 46 * 58 * ( + 27 ) THEN NULL ELSE - 68 DIV COUNT( * ) END ) DIV + 48 + + 70
----
69

skipif mysql # not compatible
query I rowsort label-9120
SELECT DISTINCT ( CASE - 27 WHEN + 20 - + + CAST ( NULL AS INTEGER ) THEN NULL WHEN - 77 * - + 24 + - COALESCE ( 8, - 93 ) + - 46 * 58 * ( + 27 ) THEN NULL ELSE - 68 / COUNT ( * ) END ) / + 48 + + 70
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9121
SELECT ALL - 37 DIV - COALESCE ( - + 59, + - 68, + 34 * 57 DIV - - 99 - - + MAX( DISTINCT 14 ) + + 31 ) + 18 col2
----
18

skipif mysql # not compatible
query I rowsort label-9121
SELECT ALL - 37 / - COALESCE ( - + 59, + - 68, + 34 * 57 / - - 99 - - + MAX ( DISTINCT 14 ) + + 31 ) + 18 col2
----
18

query II rowsort
SELECT - - 37 * - 89 + + 86 AS col1, NULLIF ( + 1, - 19 ) col1
----
-3207
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9123
SELECT ALL + 8 * 90 + + + 84 - - - NULLIF ( + - 26, + 4 * 68 + + MAX( 42 ) ) AS col0
----
830

skipif mysql # not compatible
query I rowsort label-9123
SELECT ALL + 8 * 90 + + + 84 - - - NULLIF ( + - 26, + 4 * 68 + + MAX ( 42 ) ) AS col0
----
830

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9124
SELECT - CAST( 65 AS SIGNED ) + + 52 AS col2, - 95
----
-13
-95

skipif mysql # not compatible
query II rowsort label-9124
SELECT - CAST ( 65 AS INTEGER ) + + 52 AS col2, - 95
----
-13
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9125
SELECT + SUM( + - 80 ) * 56
----
-4480

skipif mysql # not compatible
query I rowsort label-9125
SELECT + SUM ( + - 80 ) * 56
----
-4480

onlyif mysql # aggregate syntax: 
query I rowsort label-9126
SELECT DISTINCT + + CASE WHEN NOT NULL IS NULL THEN NULL WHEN NOT - 2 = ( + - 95 * + ( + COUNT( * ) ) ) THEN 28 ELSE NULL END AS col2
----
28

skipif mysql # not compatible
query I rowsort label-9126
SELECT DISTINCT + + CASE WHEN NOT NULL IS NULL THEN NULL WHEN NOT - 2 = ( + - 95 * + ( + COUNT ( * ) ) ) THEN 28 ELSE NULL END AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT ALL - + 16 * SUM( DISTINCT + 66 ) AS col0
----
-1056

skipif mysql # not compatible
query I rowsort label-9127
SELECT ALL - + 16 * SUM ( DISTINCT + 66 ) AS col0
----
-1056

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT + - COUNT( * ) + - 6
----
-7

skipif mysql # not compatible
query I rowsort label-9128
SELECT + - COUNT ( * ) + - 6
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT ALL - 93 * - + COUNT( * ) - 99 * 53 * + 56 - + - 5 AS col1
----
-293734

skipif mysql # not compatible
query I rowsort label-9129
SELECT ALL - 93 * - + COUNT ( * ) - 99 * 53 * + 56 - + - 5 AS col1
----
-293734

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9130
SELECT DISTINCT - - 66 * - + 73 / - + CAST( NULL AS SIGNED ) * - + MIN( - - 1 ) * + - COUNT( * ) * - 48 * - COUNT( * ) + 0 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9130
SELECT DISTINCT - - 66 * - + 73 / - + CAST ( NULL AS INTEGER ) * - + MIN ( - - 1 ) * + - COUNT ( * ) * - 48 * - COUNT ( * ) + 0 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9131
SELECT - COUNT( * ) * - 44 + - + 77
----
-33

skipif mysql # not compatible
query I rowsort label-9131
SELECT - COUNT ( * ) * - 44 + - + 77
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9132
SELECT - 91 DIV ( - 82 ) DIV - COUNT( * ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-9132
SELECT - 91 / ( - 82 ) / - COUNT ( * ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9133
SELECT + 60 * - 99 * + + MIN( DISTINCT 64 )
----
-380160

skipif mysql # not compatible
query I rowsort label-9133
SELECT + 60 * - 99 * + + MIN ( DISTINCT 64 )
----
-380160

onlyif mysql # aggregate syntax: 
query I rowsort label-9134
SELECT - COUNT( * ) + - 1 + + 90 * + + 1 + + 43
----
131

skipif mysql # not compatible
query I rowsort label-9134
SELECT - COUNT ( * ) + - 1 + + 90 * + + 1 + + 43
----
131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9135
SELECT + 44 + CAST( - 12 AS SIGNED ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-9135
SELECT + 44 + CAST ( - 12 AS INTEGER ) AS col0
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-9136
SELECT ALL 55 DIV - - 83 * + + 28
----
0

skipif mysql # not compatible
query I rowsort label-9136
SELECT ALL 55 / - - 83 * + + 28
----
0

query I rowsort
SELECT + 61 * + 90 AS col2
----
5490

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9138
SELECT ALL CAST( + - 10 AS SIGNED )
----
-10

skipif mysql # not compatible
query I rowsort label-9138
SELECT ALL CAST ( + - 10 AS INTEGER )
----
-10

query I rowsort
SELECT + 37 * + 94 AS col1
----
3478

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9140
SELECT DISTINCT COALESCE ( - + 29, + 29 * CASE + - 15 WHEN - - 53 THEN NULL ELSE + 51 DIV - 44 END DIV - - CAST( + 48 AS SIGNED ) + 37 ) DIV ( - 32 - COUNT( * ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9140
SELECT DISTINCT COALESCE ( - + 29, + 29 * CASE + - 15 WHEN - - 53 THEN NULL ELSE + 51 / - 44 END / - - CAST ( + 48 AS INTEGER ) + 37 ) / ( - 32 - COUNT ( * ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query III rowsort label-9141
SELECT + COUNT( * ) + ( + ( + 86 ) ) AS col0, - 38 - + - ( + 17 ) AS col2, + + 82 + COUNT( * ) AS col1
----
87
-21
83

skipif mysql # not compatible
query III rowsort label-9141
SELECT + COUNT ( * ) + ( + ( + 86 ) ) AS col0, - 38 - + - ( + 17 ) AS col2, + + 82 + COUNT ( * ) AS col1
----
87
-21
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9142
SELECT + NULLIF ( ( + COUNT( * ) ), - - ( 18 ) - COUNT( ALL - - 58 ) + - 69 + - + 5 ) * 8
----
8

skipif mysql # not compatible
query I rowsort label-9142
SELECT + NULLIF ( ( + COUNT ( * ) ), - - ( 18 ) - COUNT ( ALL - - 58 ) + - 69 + - + 5 ) * 8
----
8

query I rowsort
SELECT + 1 * - - 98 AS col2
----
98

query II rowsort
SELECT + 7 * - 4, 91 AS col1
----
-28
91

query I rowsort
SELECT - 77 * - ( 26 ) AS col2
----
2002

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9146
SELECT DISTINCT 83 + + MAX( 50 ) * 55 * - CAST( NULL AS DECIMAL ) + + 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9146
SELECT DISTINCT 83 + + MAX ( 50 ) * 55 * - CAST ( NULL AS REAL ) + + 99 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9147
SELECT DISTINCT 12 + 69 AS col0, + CASE WHEN NOT 93 < ( + + MIN( - 68 ) * + 63 * - - 3 ) THEN - 69 ELSE + 83 END * + 41
----
81
-2829

skipif mysql # not compatible
query II rowsort label-9147
SELECT DISTINCT 12 + 69 AS col0, + CASE WHEN NOT 93 < ( + + MIN ( - 68 ) * + 63 * - - 3 ) THEN - 69 ELSE + 83 END * + 41
----
81
-2829

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9148
SELECT DISTINCT CASE - 66 WHEN 5 * - CAST( NULL AS SIGNED ) * 28 * + - COUNT( - 77 ) - - + ( + + COUNT( DISTINCT 39 ) ) / - 7 THEN - 56 WHEN + 83 / + 4 THEN 16 * - 87 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9148
SELECT DISTINCT CASE - 66 WHEN 5 * - CAST ( NULL AS INTEGER ) * 28 * + - COUNT ( - 77 ) - - + ( + + COUNT ( DISTINCT 39 ) ) / - 7 THEN - 56 WHEN + 83 / + 4 THEN 16 * - 87 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9149
SELECT + COUNT( * ) + - + 53
----
-52

skipif mysql # not compatible
query I rowsort label-9149
SELECT + COUNT ( * ) + - + 53
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9150
SELECT DISTINCT 47 + + - COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-9150
SELECT DISTINCT 47 + + - COUNT ( * )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9151
SELECT ALL MAX( + 58 )
----
58

skipif mysql # not compatible
query I rowsort label-9151
SELECT ALL MAX ( + 58 )
----
58

query I rowsort
SELECT - 17 + - 60 + - - ( + 26 ) AS col2
----
-51

query I rowsort
SELECT - 6 + + + 52 * 40 * + 27
----
56154

query I rowsort
SELECT + + 12 col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT + 64 * NULLIF ( + 11, - + 36 + - 95 ) + + 21 * - + COUNT( * ) + + 76 AS col1
----
759

skipif mysql # not compatible
query I rowsort label-9155
SELECT + 64 * NULLIF ( + 11, - + 36 + - 95 ) + + 21 * - + COUNT ( * ) + + 76 AS col1
----
759

query I rowsort
SELECT - 33 * - 23 * 65
----
49335

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9157
SELECT - 77 / - 87 + - MIN( ALL + 82 ) + - 14 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9157
SELECT - 77 / - 87 + - MIN ( ALL + 82 ) + - 14 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9158
SELECT ALL + 94 - + - 49 + - ( - 52 ) * + COUNT( * ) DIV 64 * - + 34
----
143

skipif mysql # not compatible
query I rowsort label-9158
SELECT ALL + 94 - + - 49 + - ( - 52 ) * + COUNT ( * ) / 64 * - + 34
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-9159
SELECT DISTINCT COUNT( DISTINCT + ( - 96 ) ) * - + 38 - - - ( - 71 )
----
33

skipif mysql # not compatible
query I rowsort label-9159
SELECT DISTINCT COUNT ( DISTINCT + ( - 96 ) ) * - + 38 - - - ( - 71 )
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9160
SELECT DISTINCT CAST( NULLIF ( - 64, 30 * - 90 ) AS SIGNED ) - + 28 - - - MAX( - + 29 ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-9160
SELECT DISTINCT CAST ( NULLIF ( - 64, 30 * - 90 ) AS INTEGER ) - + 28 - - - MAX ( - + 29 ) AS col0
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9161
SELECT + 99 * - 58 + - + 33 + - 41 * 63 DIV 47 DIV - 78 * + 66 + - 18 * COUNT( * ) AS col2
----
-5793

skipif mysql # not compatible
query I rowsort label-9161
SELECT + 99 * - 58 + - + 33 + - 41 * 63 / 47 / - 78 * + 66 + - 18 * COUNT ( * ) AS col2
----
-5793

onlyif mysql # DIV for integer division: 
query II rowsort label-9162
SELECT ALL + 45 DIV + - 69 * + - 31 * + 78 AS col0, ( 53 ) + - 87 + + 40 - - + 32 AS col1
----
0
38

skipif mysql # not compatible
query II rowsort label-9162
SELECT ALL + 45 / + - 69 * + - 31 * + 78 AS col0, ( 53 ) + - 87 + + 40 - - + 32 AS col1
----
0
38

query I rowsort
SELECT ALL - + CASE + 52 WHEN + 59 THEN NULL WHEN ( 70 ) * 32 THEN NULL WHEN - 1 THEN + 52 * 99 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9164
SELECT 5 + 63, COUNT( * ) AS col0
----
68
1

skipif mysql # not compatible
query II rowsort label-9164
SELECT 5 + 63, COUNT ( * ) AS col0
----
68
1

query I rowsort
SELECT + 58 * + - 79
----
-4582

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9166
SELECT + 9 * + CASE 9 WHEN 3 * - 39 + - - 73 THEN - - 41 WHEN + ( + + ( - 20 ) ) * 33 THEN NULL END + ( CAST( - 29 AS SIGNED ) - - 8 * 2 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9166
SELECT + 9 * + CASE 9 WHEN 3 * - 39 + - - 73 THEN - - 41 WHEN + ( + + ( - 20 ) ) * 33 THEN NULL END + ( CAST ( - 29 AS INTEGER ) - - 8 * 2 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9167
SELECT ALL - + ( CAST( - 35 AS SIGNED ) ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-9167
SELECT ALL - + ( CAST ( - 35 AS INTEGER ) ) AS col1
----
35

query I rowsort
SELECT 48 * 52
----
2496

query I rowsort
SELECT ALL 49 * - + 17 AS col1
----
-833

onlyif mysql # aggregate syntax: 
query I rowsort label-9170
SELECT DISTINCT + 4 * - COALESCE ( - + 16, + 49 - - COUNT( * ), - 45 ) * 69
----
4416

skipif mysql # not compatible
query I rowsort label-9170
SELECT DISTINCT + 4 * - COALESCE ( - + 16, + 49 - - COUNT ( * ), - 45 ) * 69
----
4416

query II rowsort
SELECT 33, 21 AS col0
----
33
21

query I rowsort
SELECT 63 - 22 AS col2
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9173
SELECT SUM( + 65 ) DIV - 31 col1, - 81
----
-2
-81

skipif mysql # not compatible
query II rowsort label-9173
SELECT SUM ( + 65 ) / - 31 col1, - 81
----
-2
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9174
SELECT ( CAST( + SUM( DISTINCT + 50 ) AS SIGNED ) ) + 98 AS col1
----
148

skipif mysql # not compatible
query I rowsort label-9174
SELECT ( CAST ( + SUM ( DISTINCT + 50 ) AS INTEGER ) ) + 98 AS col1
----
148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9175
SELECT DISTINCT COUNT( * ) DIV + ( + ( MAX( 29 ) ) ) * - 98 + + - 83
----
-83

skipif mysql # not compatible
query I rowsort label-9175
SELECT DISTINCT COUNT ( * ) / + ( + ( MAX ( 29 ) ) ) * - 98 + + - 83
----
-83

query I rowsort
SELECT DISTINCT 41 * + - 15
----
-615

query I rowsort
SELECT ALL NULLIF ( - 3, + + 34 ) + - 36 AS col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT ( + SUM( ALL + 16 ) )
----
16

skipif mysql # not compatible
query I rowsort label-9178
SELECT ( + SUM ( ALL + 16 ) )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT 12 * NULLIF ( - - COUNT( * ), - 81 * - 81 * + 76 / + 37 + + 88 ) * - 77 - + 23 AS col1
----
-947

skipif mysql # not compatible
query I rowsort label-9179
SELECT 12 * NULLIF ( - - COUNT ( * ), - 81 * - 81 * + 76 / + 37 + + 88 ) * - 77 - + 23 AS col1
----
-947

query II rowsort
SELECT + 13 * 42 * 51 col0, - 31 AS col2
----
27846
-31

query II rowsort
SELECT ALL 98 AS col1, ( - 16 ) * + 86
----
98
-1376

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9182
SELECT - CAST( NULL AS SIGNED ) AS col2, + COALESCE ( - 31, - NULLIF ( - + 71, - COUNT( * ) * + - COALESCE ( 20, + 94 ) * + 84 ) + - 18 ) AS col1
----
NULL
-31

skipif mysql # not compatible
query II rowsort label-9182
SELECT - CAST ( NULL AS INTEGER ) AS col2, + COALESCE ( - 31, - NULLIF ( - + 71, - COUNT ( * ) * + - COALESCE ( 20, + 94 ) * + 84 ) + - 18 ) AS col1
----
NULL
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9183
SELECT DISTINCT - 96 - COUNT( * ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-9183
SELECT DISTINCT - 96 - COUNT ( * ) AS col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9184
SELECT DISTINCT - - NULLIF ( - 34, - NULLIF ( + COUNT( * ), + + 4 ) )
----
-34

skipif mysql # not compatible
query I rowsort label-9184
SELECT DISTINCT - - NULLIF ( - 34, - NULLIF ( + COUNT ( * ), + + 4 ) )
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9185
SELECT DISTINCT + + 91 - + ( - 0 ) DIV - - COALESCE ( - NULLIF ( - CASE 19 WHEN - CASE + 66 WHEN + 63 DIV + COUNT( * ) THEN NULL WHEN - 51 THEN 91 END THEN 3 - + 35 ELSE AVG ( ALL CAST( NULL AS SIGNED ) ) + - COALESCE ( 45, + 90 ) END, - COUNT( * ) * 19 ), 68 * NULLIF ( 65, + ( + 34 ) ), 10 * - 4 - + 99 DIV COUNT( 17 * 85 ) )
----
91

skipif mysql # not compatible
query I rowsort label-9185
SELECT DISTINCT + + 91 - + ( - 0 ) / - - COALESCE ( - NULLIF ( - CASE 19 WHEN - CASE + 66 WHEN + 63 / + COUNT ( * ) THEN NULL WHEN - 51 THEN 91 END THEN 3 - + 35 ELSE AVG ( ALL CAST ( NULL AS INTEGER ) ) + - COALESCE ( 45, + 90 ) END, - COUNT ( * ) * 19 ), 68 * NULLIF ( 65, + ( + 34 ) ), 10 * - 4 - + 99 / COUNT ( 17 * 85 ) )
----
91

query I rowsort
SELECT + 46 * - + 80
----
-3680

onlyif mysql # aggregate syntax: 
query I rowsort label-9187
SELECT + + MAX( ( 19 ) )
----
19

skipif mysql # not compatible
query I rowsort label-9187
SELECT + + MAX ( ( 19 ) )
----
19

query I rowsort
SELECT 60 + - 60 col0
----
0

query I rowsort
SELECT + 73 + 41 AS col2
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-9190
SELECT + - ( - COUNT( DISTINCT + - 1 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9190
SELECT + - ( - COUNT ( DISTINCT + - 1 ) ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9191
SELECT ALL + + 49 * - - 61 + + + ( + + 33 ) DIV + 99
----
2989

skipif mysql # not compatible
query I rowsort label-9191
SELECT ALL + + 49 * - - 61 + + + ( + + 33 ) / + 99
----
2989

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT ALL + COUNT( + ( - - 9 ) ) * COALESCE ( - 98, COUNT( * ) ) * + MIN( ALL 75 ) * - 28 AS col0
----
205800

skipif mysql # not compatible
query I rowsort label-9192
SELECT ALL + COUNT ( + ( - - 9 ) ) * COALESCE ( - 98, COUNT ( * ) ) * + MIN ( ALL 75 ) * - 28 AS col0
----
205800

query I rowsort
SELECT DISTINCT - ( - 7 )
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9194
SELECT ALL - 99 + 96 + + ( - + COUNT( * ) ) * - + 46 + - COALESCE ( - 58, 35 * 4 ) + - 67 * COUNT( * ) DIV COUNT( * ) + + 29 DIV 19
----
35

skipif mysql # not compatible
query I rowsort label-9194
SELECT ALL - 99 + 96 + + ( - + COUNT ( * ) ) * - + 46 + - COALESCE ( - 58, 35 * 4 ) + - 67 * COUNT ( * ) / COUNT ( * ) + + 29 / 19
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9195
SELECT ALL NULLIF ( + - MIN( ALL - - 50 ), COALESCE ( - 14, + - NULLIF ( ( + 96 ), - 45 ), + 38 ) + COUNT( * ) - - ( 3 ) / + 90 ) * NULLIF ( + 29, MIN( DISTINCT ( 42 ) ) / 53 ) AS col1
----
-1450

skipif mysql # not compatible
query I rowsort label-9195
SELECT ALL NULLIF ( + - MIN ( ALL - - 50 ), COALESCE ( - 14, + - NULLIF ( ( + 96 ), - 45 ), + 38 ) + COUNT ( * ) - - ( 3 ) / + 90 ) * NULLIF ( + 29, MIN ( DISTINCT ( 42 ) ) / 53 ) AS col1
----
-1450

query II rowsort
SELECT DISTINCT - 3 AS col2, + 92 AS col0
----
-3
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9197
SELECT DISTINCT + 17 + - CAST( NULL AS SIGNED ) + + CASE + 44 WHEN - 87 THEN NULL ELSE - 42 END / - 73 / - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-9197
SELECT DISTINCT + 17 + - CAST ( NULL AS INTEGER ) + + CASE + 44 WHEN - 87 THEN NULL ELSE - 42 END / - 73 / - 46
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9198
SELECT 80 DIV 40 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-9198
SELECT 80 / 40 AS col2
----
2

query I rowsort
SELECT ALL + 99 + - 30 col0
----
69

query II rowsort
SELECT + 61 AS col2, - 90 * + + 84 AS col0
----
61
-7560

query I rowsort
SELECT 63 + - + 77 AS col2
----
-14

onlyif mysql # DIV for integer division: 
query II rowsort label-9202
SELECT ALL - 34 AS col1, 60 DIV 2 + - 92 AS col2
----
-34
-62

skipif mysql # not compatible
query II rowsort label-9202
SELECT ALL - 34 AS col1, 60 / 2 + - 92 AS col2
----
-34
-62

query II rowsort
SELECT 10, - 39 AS col1
----
10
-39

query I rowsort
SELECT 73 + + + 30
----
103

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9205
SELECT ALL 37 + + - 0 + - + 36 * - 3 + - 68 DIV + - CAST( - 83 AS SIGNED )
----
145

skipif mysql # not compatible
query I rowsort label-9205
SELECT ALL 37 + + - 0 + - + 36 * - 3 + - 68 / + - CAST ( - 83 AS INTEGER )
----
145

onlyif mysql # aggregate syntax: 
query II rowsort label-9206
SELECT DISTINCT 76, - COUNT( * ) AS col1
----
76
-1

skipif mysql # not compatible
query II rowsort label-9206
SELECT DISTINCT 76, - COUNT ( * ) AS col1
----
76
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9207
SELECT - 30 AS col1, ( + - ( + + COUNT( * ) ) )
----
-30
-1

skipif mysql # not compatible
query II rowsort label-9207
SELECT - 30 AS col1, ( + - ( + + COUNT ( * ) ) )
----
-30
-1

query I rowsort
SELECT ALL + 64 * 82
----
5248

query I rowsort
SELECT ALL + 55 + + 74 * + 74 * + 10 * 88 AS col2
----
4818935

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9210
SELECT - CAST( - COUNT( * ) AS SIGNED ) * + 6
----
6

skipif mysql # not compatible
query I rowsort label-9210
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) * + 6
----
6

query I rowsort
SELECT + 70 * + 43 * - 81 AS col0
----
-243810

onlyif mysql # aggregate syntax: 
query I rowsort label-9212
SELECT + CASE 83 WHEN + - 13 * 55 - 7 THEN NULL WHEN - ( + 28 ) + 50 + 86 * + 68 + + COUNT( * ) + - 37 / + 78 THEN + 6 WHEN + 30 + 87 * + 70 THEN NULL ELSE NULL END / + 63 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9212
SELECT + CASE 83 WHEN + - 13 * 55 - 7 THEN NULL WHEN - ( + 28 ) + 50 + 86 * + 68 + + COUNT ( * ) + - 37 / + 78 THEN + 6 WHEN + 30 + 87 * + 70 THEN NULL ELSE NULL END / + 63 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT ALL - - 34 / CASE - 54 WHEN - + COUNT( * ) THEN - MIN( DISTINCT + 58 ) * - COUNT( - 53 ) / - 54 / 90 ELSE NULL END + 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9213
SELECT ALL - - 34 / CASE - 54 WHEN - + COUNT ( * ) THEN - MIN ( DISTINCT + 58 ) * - COUNT ( - 53 ) / - 54 / 90 ELSE NULL END + 47 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT + - 48 + + NULLIF ( 44, + 89 * - ( + COALESCE ( COUNT( * ), 61 / 95 + + 89 ) ) + - - 3 + + 25 * 22 )
----
-4

skipif mysql # not compatible
query I rowsort label-9214
SELECT + - 48 + + NULLIF ( 44, + 89 * - ( + COALESCE ( COUNT ( * ), 61 / 95 + + 89 ) ) + - - 3 + + 25 * 22 )
----
-4

query I rowsort
SELECT - + ( - + 21 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9216
SELECT 56 * - COUNT( ALL 90 ) + + ( + - CASE + 11 WHEN - - 56 * 34 * + NULLIF ( + + 99, MIN( + 69 ) ) * COUNT( * ) THEN - 44 WHEN - 42 THEN NULL END ) + 82 * - 74 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9216
SELECT 56 * - COUNT ( ALL 90 ) + + ( + - CASE + 11 WHEN - - 56 * 34 * + NULLIF ( + + 99, MIN ( + 69 ) ) * COUNT ( * ) THEN - 44 WHEN - 42 THEN NULL END ) + 82 * - 74 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9217
SELECT + + 98 * + + 78 - + 79 DIV - - 89 * - - 53 * + - COUNT( * ) + - + 5 + + 63 + + + 91 * + 37 + SUM( DISTINCT - 49 ) AS col1
----
11020

skipif mysql # not compatible
query I rowsort label-9217
SELECT + + 98 * + + 78 - + 79 / - - 89 * - - 53 * + - COUNT ( * ) + - + 5 + + 63 + + + 91 * + 37 + SUM ( DISTINCT - 49 ) AS col1
----
11020

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9218
SELECT ALL + CASE + CAST( NULL AS SIGNED ) WHEN 44 * - 77 + - + 69 - + - 59 + + + 26 / COUNT( * ) * 19 * - - 22 * + 84 THEN - 46 WHEN + 69 - - 53 / + 18 THEN NULL ELSE 18 * - MAX( + 15 ) + COUNT( * ) END
----
-269

skipif mysql # not compatible
query I rowsort label-9218
SELECT ALL + CASE + CAST ( NULL AS INTEGER ) WHEN 44 * - 77 + - + 69 - + - 59 + + + 26 / COUNT ( * ) * 19 * - - 22 * + 84 THEN - 46 WHEN + 69 - - 53 / + 18 THEN NULL ELSE 18 * - MAX ( + 15 ) + COUNT ( * ) END
----
-269

onlyif mysql # aggregate syntax: 
query II rowsort label-9219
SELECT DISTINCT + + 45, - COUNT( * ) + + 47 AS col0
----
45
46

skipif mysql # not compatible
query II rowsort label-9219
SELECT DISTINCT + + 45, - COUNT ( * ) + + 47 AS col0
----
45
46

onlyif mysql # aggregate syntax: 
query II rowsort label-9220
SELECT + 23 AS col1, + COUNT( * ) col2
----
23
1

skipif mysql # not compatible
query II rowsort label-9220
SELECT + 23 AS col1, + COUNT ( * ) col2
----
23
1

query I rowsort
SELECT ALL - 29 * - ( + 33 ) * - + 41 + + 13 * - 81 + - 12 * - 92 + + 73 + 55 * + 80
----
-34713

onlyif mysql # aggregate syntax: 
query I rowsort label-9222
SELECT ALL + + COUNT( - 6 )
----
1

skipif mysql # not compatible
query I rowsort label-9222
SELECT ALL + + COUNT ( - 6 )
----
1

query I rowsort
SELECT ALL - - COALESCE ( 89, 23 * - ( 37 ) * - 95, + - 71 ) * 78 + - + ( - 15 ) - - ( 40 )
----
6997

onlyif mysql # DIV for integer division: 
query I rowsort label-9224
SELECT + 38 * - - 26 + + 25 DIV - 74 * NULLIF ( + - 65, - + 68 ) - + - 25 AS col2
----
1013

skipif mysql # not compatible
query I rowsort label-9224
SELECT + 38 * - - 26 + + 25 / - 74 * NULLIF ( + - 65, - + 68 ) - + - 25 AS col2
----
1013

query I rowsort
SELECT ALL + 10 * 75 * 4 * - 75 * + 3 * - NULLIF ( - + 99, + 29 + 66 * 76 )
----
-66825000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9226
SELECT DISTINCT CAST( NULL AS SIGNED ) * MAX( + + 3 ) + - 1 * + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9226
SELECT DISTINCT CAST ( NULL AS INTEGER ) * MAX ( + + 3 ) + - 1 * + - COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9227
SELECT + ( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9227
SELECT + ( - - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 67 * + 40 AS col2
----
2680

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9229
SELECT + 79 * - 75 AS col1, + CAST( NULL AS SIGNED ) - - 95
----
-5925
NULL

skipif mysql # not compatible
query II rowsort label-9229
SELECT + 79 * - 75 AS col1, + CAST ( NULL AS INTEGER ) - - 95
----
-5925
NULL

query I rowsort
SELECT NULLIF ( - 16, + + 45 )
----
-16

query I rowsort
SELECT ALL 90 * - 10
----
-900

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9232
SELECT - ( + + COUNT( * ) ) + COALESCE ( + - 25, + 72 + - SUM( 47 ), 23 ) + - 83 + - 87 DIV - - 70
----
-110

skipif mysql # not compatible
query I rowsort label-9232
SELECT - ( + + COUNT ( * ) ) + COALESCE ( + - 25, + 72 + - SUM ( 47 ), 23 ) + - 83 + - 87 / - - 70
----
-110

onlyif mysql # DIV for integer division: 
query I rowsort label-9233
SELECT + 31 DIV 10 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-9233
SELECT + 31 / 10 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9234
SELECT ALL 14 * + 33 + - + 78 * - 96 / - CASE - - 98 WHEN COUNT( * ) * 64 THEN AVG ( DISTINCT + 71 ) * + SUM( + 8 ) + + 94 ELSE NULL END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9234
SELECT ALL 14 * + 33 + - + 78 * - 96 / - CASE - - 98 WHEN COUNT ( * ) * 64 THEN AVG ( DISTINCT + 71 ) * + SUM ( + 8 ) + + 94 ELSE NULL END + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT DISTINCT + 86 * - 9 + - - 51 + + - COUNT( * )
----
-724

skipif mysql # not compatible
query I rowsort label-9235
SELECT DISTINCT + 86 * - 9 + - - 51 + + - COUNT ( * )
----
-724

onlyif mysql # aggregate syntax: 
query I rowsort label-9236
SELECT SUM( ALL NULLIF ( - 22, NULLIF ( - 23, - 44 ) / 88 ) ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-9236
SELECT SUM ( ALL NULLIF ( - 22, NULLIF ( - 23, - 44 ) / 88 ) ) AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT ALL 30 * + + COUNT( * ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-9237
SELECT ALL 30 * + + COUNT ( * ) AS col2
----
30

query I rowsort
SELECT DISTINCT 89 * 25 * - 42
----
-93450

onlyif mysql # DIV for integer division: 
query I rowsort label-9239
SELECT ALL - 96 DIV + 45
----
-2

skipif mysql # not compatible
query I rowsort label-9239
SELECT ALL - 96 / + 45
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9240
SELECT - 18 + + 33 * + - COUNT( * ) DIV - 40 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-9240
SELECT - 18 + + 33 * + - COUNT ( * ) / - 40 AS col2
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9241
SELECT - 77 * CAST( 48 AS SIGNED ) * - COUNT( * ) AS col1
----
3696

skipif mysql # not compatible
query I rowsort label-9241
SELECT - 77 * CAST ( 48 AS INTEGER ) * - COUNT ( * ) AS col1
----
3696

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT ALL + 76 * - 15 * + 75 * CASE - 65 WHEN - CASE - 10 WHEN - 46 THEN NULL WHEN + + 71 THEN - COUNT( * ) WHEN - + 75 * + + 90 + - 14 / 56 THEN 32 / 81 + ( 70 + 32 ) WHEN - 6 + - 31 THEN NULL END THEN NULL WHEN - 93 * COUNT( * ) THEN - 72 * 23 ELSE - 67 * - 74 END - 26 AS col0
----
-423909026

skipif mysql # not compatible
query I rowsort label-9242
SELECT ALL + 76 * - 15 * + 75 * CASE - 65 WHEN - CASE - 10 WHEN - 46 THEN NULL WHEN + + 71 THEN - COUNT ( * ) WHEN - + 75 * + + 90 + - 14 / 56 THEN 32 / 81 + ( 70 + 32 ) WHEN - 6 + - 31 THEN NULL END THEN NULL WHEN - 93 * COUNT ( * ) THEN - 72 * 23 ELSE - 67 * - 74 END - 26 AS col0
----
-423909026

query I rowsort
SELECT - ( - - 7 )
----
-7

query I rowsort
SELECT ALL COALESCE ( + 77, 89 * 28 * + + 40 + - - 48 + 86 + 58 ) AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT MAX( DISTINCT + 88 ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-9245
SELECT MAX ( DISTINCT + 88 ) AS col2
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-9246
SELECT + 94 * + 98 - - 61 DIV + 36 col0
----
9213

skipif mysql # not compatible
query I rowsort label-9246
SELECT + 94 * + 98 - - 61 / + 36 col0
----
9213

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT - COUNT( * ) * - - 31 AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-9247
SELECT - COUNT ( * ) * - - 31 AS col1
----
-31

query I rowsort
SELECT ALL 23 - + - 17 AS col0
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9249
SELECT ALL - - SUM( CAST( NULL AS SIGNED ) ) - + 71 + - NULLIF ( + 36, - 92 ) / + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-9249
SELECT ALL - - SUM ( CAST ( NULL AS INTEGER ) ) - + 71 + - NULLIF ( + 36, - 92 ) / + 82
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-9250
SELECT ALL - - 82 * - COUNT( * ), 16 col0, MIN( + 76 ) AS col0
----
-82
16
76

skipif mysql # not compatible
query III rowsort label-9250
SELECT ALL - - 82 * - COUNT ( * ), 16 col0, MIN ( + 76 ) AS col0
----
-82
16
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9251
SELECT ALL - - NULLIF ( 1, + 11 * - + COUNT( * ) + - + CAST( + 41 AS SIGNED ) + + 44 * - 92 ) * 51 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-9251
SELECT ALL - - NULLIF ( 1, + 11 * - + COUNT ( * ) + - + CAST ( + 41 AS INTEGER ) + + 44 * - 92 ) * 51 AS col0
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-9252
SELECT - - 77 * - COUNT( ALL - - 0 ) col1, - 80
----
-77
-80

skipif mysql # not compatible
query II rowsort label-9252
SELECT - - 77 * - COUNT ( ALL - - 0 ) col1, - 80
----
-77
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9253
SELECT ( - - SUM( - 15 ) )
----
-15

skipif mysql # not compatible
query I rowsort label-9253
SELECT ( - - SUM ( - 15 ) )
----
-15

query I rowsort
SELECT ALL - 0 col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9255
SELECT ( - ( NULLIF ( CAST( + 57 AS SIGNED ), 34 ) ) )
----
-57

skipif mysql # not compatible
query I rowsort label-9255
SELECT ( - ( NULLIF ( CAST ( + 57 AS INTEGER ), 34 ) ) )
----
-57

query I rowsort
SELECT - 55 * 4 - 41
----
-261

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9257
SELECT DISTINCT + - COALESCE ( + 57, - - CASE - 36 WHEN + 18 THEN 97 / - CAST( - + 54 AS SIGNED ) END + - - 97 * 77 ) / - 81 - - 56 + + COUNT( * ) * + 48 + 34 * + CASE + ( CAST( ( MIN( DISTINCT 53 ) ) AS DECIMAL ) ) WHEN 14 * + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) THEN + 74 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9257
SELECT DISTINCT + - COALESCE ( + 57, - - CASE - 36 WHEN + 18 THEN 97 / - CAST ( - + 54 AS INTEGER ) END + - - 97 * 77 ) / - 81 - - 56 + + COUNT ( * ) * + 48 + 34 * + CASE + ( CAST ( ( MIN ( DISTINCT 53 ) ) AS REAL ) ) WHEN 14 * + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) THEN + 74 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9258
SELECT + - 75 * - ( + SUM( ALL ( + 8 ) ) ), ( 14 ) + - 93 + - + 72 AS col0
----
600
-151

skipif mysql # not compatible
query II rowsort label-9258
SELECT + - 75 * - ( + SUM ( ALL ( + 8 ) ) ), ( 14 ) + - 93 + - + 72 AS col0
----
600
-151

query I rowsort
SELECT DISTINCT - 11 * 5 AS col2
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-9260
SELECT + + 0 DIV - 73 + - - 6 * + 22 + - 88 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-9260
SELECT + + 0 / - 73 + - - 6 * + 22 + - 88 AS col1
----
44

query II rowsort
SELECT ALL + 25 AS col0, 15
----
25
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9262
SELECT ALL COUNT( * ) DIV COUNT( * ) + + 51
----
52

skipif mysql # not compatible
query I rowsort label-9262
SELECT ALL COUNT ( * ) / COUNT ( * ) + + 51
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT COUNT( * ) * 58 + + + SUM( ALL - 37 ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-9263
SELECT COUNT ( * ) * 58 + + + SUM ( ALL - 37 ) AS col1
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9264
SELECT CAST( NULL AS SIGNED ) AS col2, + 39
----
NULL
39

skipif mysql # not compatible
query II rowsort label-9264
SELECT CAST ( NULL AS INTEGER ) AS col2, + 39
----
NULL
39

query I rowsort
SELECT + 29 * + 36 + - 8 AS col1
----
1036

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9266
SELECT ALL 42 DIV - 36 + + 63, 90 + + + COUNT( * ) AS col2
----
62
91

skipif mysql # not compatible
query II rowsort label-9266
SELECT ALL 42 / - 36 + + 63, 90 + + + COUNT ( * ) AS col2
----
62
91

onlyif mysql # aggregate syntax: 
query II rowsort label-9267
SELECT DISTINCT - 82 * - COUNT( * ) * NULLIF ( - 25, + - 56 - + 78 ) * + 89 * - + 52, + 8 * 31 * 80 - - COUNT( * ) AS col0
----
9487400
19841

skipif mysql # not compatible
query II rowsort label-9267
SELECT DISTINCT - 82 * - COUNT ( * ) * NULLIF ( - 25, + - 56 - + 78 ) * + 89 * - + 52, + 8 * 31 * 80 - - COUNT ( * ) AS col0
----
9487400
19841

query I rowsort
SELECT ALL + COALESCE ( 22, - + 0 )
----
22

query I rowsort
SELECT + 25 * 1 col0
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9270
SELECT DISTINCT 22 DIV + 92 - 95 * + 60 col0, + ( 19 ) + - - ( - - COUNT( * ) ) * + 43 * 20
----
-5700
879

skipif mysql # not compatible
query II rowsort label-9270
SELECT DISTINCT 22 / + 92 - 95 * + 60 col0, + ( 19 ) + - - ( - - COUNT ( * ) ) * + 43 * 20
----
-5700
879

query I rowsort
SELECT 79 * - - NULLIF ( 59, 31 + + + 18 + - 5 ) AS col1
----
4661

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT - 91 * - COUNT( * ) + + 65
----
156

skipif mysql # not compatible
query I rowsort label-9272
SELECT - 91 * - COUNT ( * ) + + 65
----
156

query I rowsort
SELECT ALL 36 * 94 AS col2
----
3384

query I rowsort
SELECT 98 + - 91
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9275
SELECT 33 DIV - COUNT( + 31 ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-9275
SELECT 33 / - COUNT ( + 31 ) AS col2
----
-33

query I rowsort
SELECT DISTINCT 82 * 2 * 40 * - 44
----
-288640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9277
SELECT COUNT( * ) DIV MIN( + 53 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9277
SELECT COUNT ( * ) / MIN ( + 53 ) AS col2
----
0

query I rowsort
SELECT DISTINCT + 8 * + 93 - ( + 52 ) + - + 52
----
640

query I rowsort
SELECT 48 + - 89 AS col1
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-9280
SELECT 35 DIV + 8 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-9280
SELECT 35 / + 8 AS col0
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-9281
SELECT 79 DIV - 76 + - - 57 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-9281
SELECT 79 / - 76 + - - 57 AS col2
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9282
SELECT ALL - COUNT( * ) + CAST( - - 87 AS SIGNED )
----
86

skipif mysql # not compatible
query I rowsort label-9282
SELECT ALL - COUNT ( * ) + CAST ( - - 87 AS INTEGER )
----
86

query II rowsort
SELECT + 25 + - 60 + 33 AS col1, + 37 * + 11 AS col1
----
-2
407

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9284
SELECT CASE - 86 WHEN - 74 THEN 25 WHEN - CAST( + + 75 AS DECIMAL ) * + 55 THEN NULL END + COUNT( DISTINCT + 90 ) * - 98 + - COALESCE ( - - 5, - - 42 ) - COALESCE ( - 83, 81 / + 19 + - 74 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9284
SELECT CASE - 86 WHEN - 74 THEN 25 WHEN - CAST ( + + 75 AS REAL ) * + 55 THEN NULL END + COUNT ( DISTINCT + 90 ) * - 98 + - COALESCE ( - - 5, - - 42 ) - COALESCE ( - 83, 81 / + 19 + - 74 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9285
SELECT ALL + COUNT( * ) + - 25 AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-9285
SELECT ALL + COUNT ( * ) + - 25 AS col1
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-9286
SELECT ALL - 65 + + COUNT( * ) * - 61 AS col0, + 52 AS col2
----
-126
52

skipif mysql # not compatible
query II rowsort label-9286
SELECT ALL - 65 + + COUNT ( * ) * - 61 AS col0, + 52 AS col2
----
-126
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9287
SELECT DISTINCT - 32 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9287
SELECT DISTINCT - 32 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + 74 + + 44 * - 88 * 77
----
-298070

query I rowsort
SELECT 28 + - - 33 - - - ( - - 34 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9290
SELECT ALL - + ( - - 39 ) + + MIN( DISTINCT 71 ) col1
----
32

skipif mysql # not compatible
query I rowsort label-9290
SELECT ALL - + ( - - 39 ) + + MIN ( DISTINCT 71 ) col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9291
SELECT DISTINCT - 82 * - COUNT( * ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-9291
SELECT DISTINCT - 82 * - COUNT ( * ) AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT ALL - COUNT( + - 91 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9292
SELECT ALL - COUNT ( + - 91 ) AS col2
----
-1

query I rowsort
SELECT ( + 10 ) * + - 90 + + + 8 - + 56 * 34 * - 43 + 93 - 76 col2
----
80997

onlyif mysql # DIV for integer division: 
query I rowsort label-9294
SELECT ALL - 68 - + 46 + - + 92 * + - 54 + - 41 DIV 15 DIV + ( 36 )
----
4854

skipif mysql # not compatible
query I rowsort label-9294
SELECT ALL - 68 - + 46 + - + 92 * + - 54 + - 41 / 15 / + ( 36 )
----
4854

query II rowsort
SELECT 89 * + 23, 76 AS col0
----
2047
76

onlyif mysql # aggregate syntax: 
query II rowsort label-9296
SELECT DISTINCT COUNT( * ) * - - 41 AS col1, 14 col0
----
41
14

skipif mysql # not compatible
query II rowsort label-9296
SELECT DISTINCT COUNT ( * ) * - - 41 AS col1, 14 col0
----
41
14

onlyif mysql # DIV for integer division: 
query I rowsort label-9297
SELECT DISTINCT + 23 DIV + 1 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-9297
SELECT DISTINCT + 23 / + 1 AS col2
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-9298
SELECT 79 DIV + 4 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-9298
SELECT 79 / + 4 AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT COUNT( * ) * - MIN( + ( + 48 ) )
----
-48

skipif mysql # not compatible
query I rowsort label-9299
SELECT COUNT ( * ) * - MIN ( + ( + 48 ) )
----
-48

query I rowsort
SELECT DISTINCT + 96 * + + 0 AS col2
----
0

query I rowsort
SELECT ( + 95 ) * - COALESCE ( - + 55, - + 58 ) * + + ( - + 89 ) + 71 - - 54
----
-464900

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT ALL - COALESCE ( + - 59, - 98 * - - 9 ) * - 19 + - 33 * + + COUNT( * ) col0
----
-1154

skipif mysql # not compatible
query I rowsort label-9302
SELECT ALL - COALESCE ( + - 59, - 98 * - - 9 ) * - 19 + - 33 * + + COUNT ( * ) col0
----
-1154

query I rowsort
SELECT DISTINCT 95 * 51
----
4845

query I rowsort
SELECT DISTINCT - ( ( 0 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9305
SELECT ALL - 33 * + COALESCE ( - - COUNT( + COALESCE ( 69, + + ( + 40 ), + 22 - + - 39 * 74 * 45 + + + 54 ) ), + COUNT( * ), 59 ) * - 95 AS col2
----
3135

skipif mysql # not compatible
query I rowsort label-9305
SELECT ALL - 33 * + COALESCE ( - - COUNT ( + COALESCE ( 69, + + ( + 40 ), + 22 - + - 39 * 74 * 45 + + + 54 ) ), + COUNT ( * ), 59 ) * - 95 AS col2
----
3135

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT DISTINCT - SUM( + 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-9306
SELECT DISTINCT - SUM ( + 42 )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT 4 * + + MAX( 24 ) * - - 85
----
8160

skipif mysql # not compatible
query I rowsort label-9307
SELECT 4 * + + MAX ( 24 ) * - - 85
----
8160

query I rowsort
SELECT COALESCE ( - + 59, - 80 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9309
SELECT ALL - 30 + COUNT( * ) col1
----
-29

skipif mysql # not compatible
query I rowsort label-9309
SELECT ALL - 30 + COUNT ( * ) col1
----
-29

query I rowsort
SELECT ALL + 55 + - 82 AS col0
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9311
SELECT CAST( - 87 AS SIGNED ) * + COUNT( - 58 )
----
-87

skipif mysql # not compatible
query I rowsort label-9311
SELECT CAST ( - 87 AS INTEGER ) * + COUNT ( - 58 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT DISTINCT 49 + - - 60 + + - CASE 99 WHEN - 79 THEN NULL WHEN + - 92 * - 93 / COUNT( * ) + + 69 + COUNT( * ) + - - 67 + 57 - 69 THEN 11 ELSE NULL END + - COALESCE ( 73 + NULLIF ( 63, + 43 ), COUNT( * ) + + 68 ) * - 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9312
SELECT DISTINCT 49 + - - 60 + + - CASE 99 WHEN - 79 THEN NULL WHEN + - 92 * - 93 / COUNT ( * ) + + 69 + COUNT ( * ) + - - 67 + 57 - 69 THEN 11 ELSE NULL END + - COALESCE ( 73 + NULLIF ( 63, + 43 ), COUNT ( * ) + + 68 ) * - 96 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9313
SELECT DISTINCT + COALESCE ( - 45, + - ( CAST( NULL AS SIGNED ) ), + + 3 ) col0
----
-45

skipif mysql # not compatible
query I rowsort label-9313
SELECT DISTINCT + COALESCE ( - 45, + - ( CAST ( NULL AS INTEGER ) ), + + 3 ) col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9314
SELECT DISTINCT - 36 + + 28 * + - MIN( 15 ) + + 39
----
-417

skipif mysql # not compatible
query I rowsort label-9314
SELECT DISTINCT - 36 + + 28 * + - MIN ( 15 ) + + 39
----
-417

onlyif mysql # aggregate syntax: 
query I rowsort label-9315
SELECT + NULLIF ( - COUNT( * ), 41 )
----
-1

skipif mysql # not compatible
query I rowsort label-9315
SELECT + NULLIF ( - COUNT ( * ), 41 )
----
-1

query I rowsort
SELECT ALL - - 27 + 72 AS col2
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9317
SELECT ALL CAST( NULL AS SIGNED ) + + ( + - CAST( 56 AS DECIMAL ) ) * + + 53 * + NULLIF ( - 9, + COALESCE ( + 59, + 85 + + 45 * 98 + 13 + - + 37, + COUNT( DISTINCT + 31 ) * 44 - 29 ) + - ( CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9317
SELECT ALL CAST ( NULL AS INTEGER ) + + ( + - CAST ( 56 AS REAL ) ) * + + 53 * + NULLIF ( - 9, + COALESCE ( + 59, + 85 + + 45 * 98 + 13 + - + 37, + COUNT ( DISTINCT + 31 ) * 44 - 29 ) + - ( CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9318
SELECT ALL + CASE + 48 WHEN - COUNT( * ) + 43 + + + 1 THEN - 21 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9318
SELECT ALL + CASE + 48 WHEN - COUNT ( * ) + 43 + + + 1 THEN - 21 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9319
SELECT ( - 56 ) - SUM( + 82 ) * - COUNT( - 91 )
----
26

skipif mysql # not compatible
query I rowsort label-9319
SELECT ( - 56 ) - SUM ( + 82 ) * - COUNT ( - 91 )
----
26

query I rowsort
SELECT - 30 * + - 47 AS col2
----
1410

onlyif mysql # aggregate syntax: 
query I rowsort label-9321
SELECT 88 * ( - 14 ) * + 81 * - 35 + COUNT( * ) AS col1
----
3492721

skipif mysql # not compatible
query I rowsort label-9321
SELECT 88 * ( - 14 ) * + 81 * - 35 + COUNT ( * ) AS col1
----
3492721

onlyif mysql # aggregate syntax: 
query I rowsort label-9322
SELECT + COALESCE ( 62, + + COUNT( * ) + - 17 + - 19 + + 0 ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-9322
SELECT + COALESCE ( 62, + + COUNT ( * ) + - 17 + - 19 + + 0 ) AS col1
----
62

query II rowsort
SELECT DISTINCT 73 - 33 + + 77 + - - 17 * - 89 AS col2, 59
----
-1396
59

onlyif mysql # aggregate syntax: 
query II rowsort label-9324
SELECT 92 * + MAX( ALL - 93 ) AS col2, 92 * + 84 + - 78 * MAX( - - 68 )
----
-8556
2424

skipif mysql # not compatible
query II rowsort label-9324
SELECT 92 * + MAX ( ALL - 93 ) AS col2, 92 * + 84 + - 78 * MAX ( - - 68 )
----
-8556
2424

onlyif mysql # aggregate syntax: 
query I rowsort label-9325
SELECT ALL + ( COUNT( * ) ) * 94
----
94

skipif mysql # not compatible
query I rowsort label-9325
SELECT ALL + ( COUNT ( * ) ) * 94
----
94

query I rowsort
SELECT + COALESCE ( - 42, - 61, + 23 - 73 * 92 ) AS col1
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-9327
SELECT ALL + COUNT( * ) * - COUNT( * ) * - COUNT( * ), 49 AS col1
----
1
49

skipif mysql # not compatible
query II rowsort label-9327
SELECT ALL + COUNT ( * ) * - COUNT ( * ) * - COUNT ( * ), 49 AS col1
----
1
49

onlyif mysql # DIV for integer division: 
query I rowsort label-9328
SELECT - 72 DIV + 38
----
-1

skipif mysql # not compatible
query I rowsort label-9328
SELECT - 72 / + 38
----
-1

query I rowsort
SELECT NULLIF ( - 50, + 26 * - 90 )
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9330
SELECT COUNT( * ) * - + 61 DIV 56 + - + ( 26 ) + + 27, - ( - 72 ) AS col1
----
0
72

skipif mysql # not compatible
query II rowsort label-9330
SELECT COUNT ( * ) * - + 61 / 56 + - + ( 26 ) + + 27, - ( - 72 ) AS col1
----
0
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9331
SELECT - 48 - COUNT( * ) + + SUM( ALL + + 79 ) * COUNT( - 76 )
----
30

skipif mysql # not compatible
query I rowsort label-9331
SELECT - 48 - COUNT ( * ) + + SUM ( ALL + + 79 ) * COUNT ( - 76 )
----
30

query I rowsort
SELECT DISTINCT 7 * 52
----
364

query I rowsort
SELECT ALL + ( 60 ) AS col0
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9334
SELECT - 36 / + MAX( ALL ( + 63 ) ) * + + CAST( NULL AS SIGNED ) / - 52 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9334
SELECT - 36 / + MAX ( ALL ( + 63 ) ) * + + CAST ( NULL AS INTEGER ) / - 52 AS col0
----
NULL

query I rowsort
SELECT ALL + NULLIF ( + 64, 13 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT ALL + MAX( - 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-9336
SELECT ALL + MAX ( - 69 )
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9337
SELECT ALL + 78 * - ( + COALESCE ( - 94, + + 3 * + - 17 DIV 73, + CASE + + 75 WHEN 1 THEN NULL WHEN 90 DIV ( - 61 ) + + - 9 DIV - 79 THEN - 66 ELSE NULL END ) ) + - COUNT( * ) * - COUNT( DISTINCT - 46 )
----
7333

skipif mysql # not compatible
query I rowsort label-9337
SELECT ALL + 78 * - ( + COALESCE ( - 94, + + 3 * + - 17 / 73, + CASE + + 75 WHEN 1 THEN NULL WHEN 90 / ( - 61 ) + + - 9 / - 79 THEN - 66 ELSE NULL END ) ) + - COUNT ( * ) * - COUNT ( DISTINCT - 46 )
----
7333

onlyif mysql # DIV for integer division: 
query I rowsort label-9338
SELECT ALL + ( + - 20 ) DIV - 69 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9338
SELECT ALL + ( + - 20 ) / - 69 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT DISTINCT + MIN( 57 )
----
57

skipif mysql # not compatible
query I rowsort label-9339
SELECT DISTINCT + MIN ( 57 )
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9340
SELECT 47 * - 3 + + CAST( NULL AS SIGNED ), 67 * COUNT( - + 6 ) + 42 + + 67 + + 90 + + CAST( NULL AS SIGNED ) * 5 * + 25 AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9340
SELECT 47 * - 3 + + CAST ( NULL AS INTEGER ), 67 * COUNT ( - + 6 ) + 42 + + 67 + + 90 + + CAST ( NULL AS INTEGER ) * 5 * + 25 AS col1
----
NULL
NULL

query II rowsort
SELECT + 44, 75 + ( + - 56 ) col1
----
44
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9342
SELECT ALL + COUNT( * ) * + - 32 DIV 2 + - 12 * SUM( 58 )
----
-712

skipif mysql # not compatible
query I rowsort label-9342
SELECT ALL + COUNT ( * ) * + - 32 / 2 + - 12 * SUM ( 58 )
----
-712

query II rowsort
SELECT - - 95 * - 2 * + 87 AS col0, + 71 AS col2
----
-16530
71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9344
SELECT + + 62 col1, + CAST( + 84 AS SIGNED )
----
62
84

skipif mysql # not compatible
query II rowsort label-9344
SELECT + + 62 col1, + CAST ( + 84 AS INTEGER )
----
62
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9345
SELECT - 94 DIV + - MIN( ALL + ( - + ( + - 32 ) ) )
----
2

skipif mysql # not compatible
query I rowsort label-9345
SELECT - 94 / + - MIN ( ALL + ( - + ( + - 32 ) ) )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9346
SELECT DISTINCT 50 * 87 DIV SUM( 72 ) * + NULLIF ( - 51, - - 52 * - 35 ) + + CAST( 97 AS SIGNED ) AS col2
----
-2963

skipif mysql # not compatible
query I rowsort label-9346
SELECT DISTINCT 50 * 87 / SUM ( 72 ) * + NULLIF ( - 51, - - 52 * - 35 ) + + CAST ( 97 AS INTEGER ) AS col2
----
-2963

onlyif mysql # DIV for integer division: 
query I rowsort label-9347
SELECT ALL NULLIF ( 29, + - ( 36 ) ) * + 11 + - 46 DIV + 90 AS col0
----
319

skipif mysql # not compatible
query I rowsort label-9347
SELECT ALL NULLIF ( 29, + - ( 36 ) ) * + 11 + - 46 / + 90 AS col0
----
319

onlyif mysql # aggregate syntax: 
query I rowsort label-9348
SELECT ALL + SUM( ALL - - 75 ) + - 44
----
31

skipif mysql # not compatible
query I rowsort label-9348
SELECT ALL + SUM ( ALL - - 75 ) + - 44
----
31

query II rowsort
SELECT ALL 35 AS col0, 79 AS col0
----
35
79

onlyif mysql # aggregate syntax: 
query II rowsort label-9350
SELECT DISTINCT + COUNT( * ) AS col1, + COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-9350
SELECT DISTINCT + COUNT ( * ) AS col1, + COUNT ( * ) AS col1
----
1
1

query I rowsort
SELECT ALL 60 + 16 AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9352
SELECT DISTINCT - - 58 + COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-9352
SELECT DISTINCT - - 58 + COUNT ( * )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT DISTINCT + 32 + - 16 * COUNT( ALL - + 73 ) + - - 58 * 77 * + ( - 91 ) + + 3 + - COALESCE ( - - 22, ( + 92 ) ) + + MAX( ALL - + 25 )
----
-406434

skipif mysql # not compatible
query I rowsort label-9353
SELECT DISTINCT + 32 + - 16 * COUNT ( ALL - + 73 ) + - - 58 * 77 * + ( - 91 ) + + 3 + - COALESCE ( - - 22, ( + 92 ) ) + + MAX ( ALL - + 25 )
----
-406434

query I rowsort
SELECT + 24 + - ( - - 98 ) - 78
----
-152

onlyif mysql # DIV for integer division: 
query I rowsort label-9355
SELECT + 93 - - + 40 + + 35 DIV + 68
----
133

skipif mysql # not compatible
query I rowsort label-9355
SELECT + 93 - - + 40 + + 35 / + 68
----
133

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9356
SELECT ALL + - 3 DIV - 71 + - 94 * - COUNT( * ) * + 22
----
2068

skipif mysql # not compatible
query I rowsort label-9356
SELECT ALL + - 3 / - 71 + - 94 * - COUNT ( * ) * + 22
----
2068

query I rowsort
SELECT DISTINCT - 0 * - - 71 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9358
SELECT ALL SUM( DISTINCT - 25 ) AS col2, 10 AS col1
----
-25
10

skipif mysql # not compatible
query II rowsort label-9358
SELECT ALL SUM ( DISTINCT - 25 ) AS col2, 10 AS col1
----
-25
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9359
SELECT ALL 8 * - SUM( DISTINCT + - COALESCE ( 7, - + 44, + 45 + + 59 + + 80 * + 31 ) ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-9359
SELECT ALL 8 * - SUM ( DISTINCT + - COALESCE ( 7, - + 44, + 45 + + 59 + + 80 * + 31 ) ) AS col2
----
56

query I rowsort
SELECT ALL 67 * - + 43 * 26 * 98
----
-7340788

onlyif mysql # aggregate syntax: 
query I rowsort label-9361
SELECT - SUM( ALL 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-9361
SELECT - SUM ( ALL 20 )
----
-20

query II rowsort
SELECT DISTINCT 58 AS col0, 51 - + 45 AS col1
----
58
6

query II rowsort
SELECT ALL 9 AS col2, 44 * - 58
----
9
-2552

onlyif mysql # aggregate syntax: 
query I rowsort label-9364
SELECT - COALESCE ( CASE - MAX( DISTINCT + 53 ) WHEN CASE + 91 WHEN CASE + - 45 WHEN 78 THEN + 60 ELSE NULL END THEN - 1 WHEN + + 34 THEN 61 * - 48 + - 48 - 69 / + 75 ELSE NULL END THEN 71 ELSE - SUM( ( 23 ) ) END, + 30 * 21 )
----
23

skipif mysql # not compatible
query I rowsort label-9364
SELECT - COALESCE ( CASE - MAX ( DISTINCT + 53 ) WHEN CASE + 91 WHEN CASE + - 45 WHEN 78 THEN + 60 ELSE NULL END THEN - 1 WHEN + + 34 THEN 61 * - 48 + - 48 - 69 / + 75 ELSE NULL END THEN 71 ELSE - SUM ( ( 23 ) ) END, + 30 * 21 )
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9365
SELECT - 31 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9365
SELECT - 31 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9366
SELECT CAST( - + 36 AS SIGNED ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-9366
SELECT CAST ( - + 36 AS INTEGER ) AS col1
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9367
SELECT - 16 * + 10 + + CAST( NULL AS SIGNED ) * 47 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9367
SELECT - 16 * + 10 + + CAST ( NULL AS INTEGER ) * 47 AS col2
----
NULL

query I rowsort
SELECT + 60 * - 56 AS col2
----
-3360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9369
SELECT CAST( + 62 AS SIGNED )
----
62

skipif mysql # not compatible
query I rowsort label-9369
SELECT CAST ( + 62 AS INTEGER )
----
62

query I rowsort
SELECT + 95 * - + 85 * 80
----
-646000

onlyif mysql # aggregate syntax: 
query I rowsort label-9371
SELECT ALL - 73 / + 46 + CASE - ( - + COUNT( ALL - 91 ) ) WHEN + COUNT( * ) * + + 88 * - COALESCE ( - 24, + 33 * - + 36, - 21 ) + - 56 THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9371
SELECT ALL - 73 / + 46 + CASE - ( - + COUNT ( ALL - 91 ) ) WHEN + COUNT ( * ) * + + 88 * - COALESCE ( - 24, + 33 * - + 36, - 21 ) + - 56 THEN - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9372
SELECT ALL - AVG ( - 51 ) / - 80 + + CASE + 92 WHEN - + 77 * 75 + + COUNT( * ) - 29 THEN + 89 WHEN - COUNT( * ) + 23 THEN + 5 * 41 + - 87 / - 73 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9372
SELECT ALL - AVG ( - 51 ) / - 80 + + CASE + 92 WHEN - + 77 * 75 + + COUNT ( * ) - 29 THEN + 89 WHEN - COUNT ( * ) + 23 THEN + 5 * 41 + - 87 / - 73 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9373
SELECT + CAST( + - 12 AS SIGNED )
----
-12

skipif mysql # not compatible
query I rowsort label-9373
SELECT + CAST ( + - 12 AS INTEGER )
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9374
SELECT + 31, - MIN( DISTINCT + 97 ) * 81 DIV - 29 AS col1
----
31
270

skipif mysql # not compatible
query II rowsort label-9374
SELECT + 31, - MIN ( DISTINCT + 97 ) * 81 / - 29 AS col1
----
31
270

query II rowsort
SELECT ALL + 68 AS col1, - ( 17 )
----
68
-17

query I rowsort
SELECT ( + - 70 ) AS col1
----
-70

query I rowsort
SELECT + 59 * + - 64
----
-3776

query I rowsort
SELECT ( 73 ) AS col0
----
73

query I rowsort
SELECT ALL + 40 * - 61 + - 52
----
-2492

query I rowsort
SELECT ALL - 57 * 75 + 37
----
-4238

query I rowsort
SELECT 79 * + - 75 - 65 AS col1
----
-5990

query I rowsort
SELECT ( 77 ) col1
----
77

query I rowsort
SELECT + 83 * - 5 + - 85
----
-500

query I rowsort
SELECT - 52 * 11 + - 84
----
-656

onlyif mysql # aggregate syntax: 
query II rowsort label-9385
SELECT DISTINCT + MIN( DISTINCT NULLIF ( + + 27, - 31 ) ), 20 + + 10 AS col2
----
27
30

skipif mysql # not compatible
query II rowsort label-9385
SELECT DISTINCT + MIN ( DISTINCT NULLIF ( + + 27, - 31 ) ), 20 + + 10 AS col2
----
27
30

query II rowsort
SELECT DISTINCT + + 27 AS col0, + 93 col2
----
27
93

query II rowsort
SELECT ALL + + ( - 70 ) * + + 92 + - 98, 96 * + 1 * + + 53 * 40 * 41 + - - 87 AS col1
----
-6538
8344407

query I rowsort
SELECT - + 67 + - + 94 * - 52
----
4821

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9389
SELECT + 77 * + 87 / 61 - - + 3 + - - 92 + - CAST( NULL AS SIGNED ) * - 92 + + - 74 + - - CASE + 50 WHEN - 65 THEN NULL WHEN 91 + + MAX( - + CAST( NULL AS DECIMAL ) ) THEN - - COALESCE ( + 23, 96 ) END * + 58 * + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-9389
SELECT + 77 * + 87 / 61 - - + 3 + - - 92 + - CAST ( NULL AS INTEGER ) * - 92 + + - 74 + - - CASE + 50 WHEN - 65 THEN NULL WHEN 91 + + MAX ( - + CAST ( NULL AS REAL ) ) THEN - - COALESCE ( + 23, 96 ) END * + 58 * + 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT MAX( DISTINCT + 32 )
----
32

skipif mysql # not compatible
query I rowsort label-9390
SELECT MAX ( DISTINCT + 32 )
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-9391
SELECT ALL + - COUNT( * ) AS col0, - 13 AS col1
----
-1
-13

skipif mysql # not compatible
query II rowsort label-9391
SELECT ALL + - COUNT ( * ) AS col0, - 13 AS col1
----
-1
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9392
SELECT - ( + 99 ) * - COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-9392
SELECT - ( + 99 ) * - COUNT ( * )
----
99

query I rowsort
SELECT ALL - - 56 * 7
----
392

query II rowsort
SELECT DISTINCT + 4 * - 94 * + 90 + - 54 + + + 34 + - 61 col1, 60 AS col1
----
-33921
60

query I rowsort
SELECT DISTINCT + 93 * + 20 AS col2
----
1860

query I rowsort
SELECT DISTINCT + 60 * - 72 + - - 61 AS col2
----
-4259

query I rowsort
SELECT 73 * + 5
----
365

onlyif mysql # aggregate syntax: 
query I rowsort label-9398
SELECT 89 - - COUNT( * ) + - 34 + - 67 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-9398
SELECT 89 - - COUNT ( * ) + - 34 + - 67 AS col2
----
-11

query I rowsort
SELECT 27 * + 96 AS col2
----
2592

query I rowsort
SELECT 98 * COALESCE ( - - 0, 77 + - 80, - - 51 )
----
0

query I rowsort
SELECT DISTINCT 72 + - 99 * + - 75
----
7497

onlyif mysql # DIV for integer division: 
query I rowsort label-9402
SELECT 17 DIV - 76
----
0

skipif mysql # not compatible
query I rowsort label-9402
SELECT 17 / - 76
----
0

query I rowsort
SELECT ALL 7 + + ( + 30 )
----
37

query I rowsort
SELECT 24 - + 14
----
10

query I rowsort
SELECT ALL 18 * + 20 * + + 1 AS col1
----
360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9406
SELECT ALL CASE + 52 WHEN + CAST( NULL AS SIGNED ) THEN - 30 WHEN + - 43 / + ( - + MIN( - 44 ) ) - 95 + - ( - + COALESCE ( - 50, + ( + 66 ) + - + 5 + + NULLIF ( - - 16, - CAST( NULL AS SIGNED ) ) / - 85 ) ) THEN NULL END + 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9406
SELECT ALL CASE + 52 WHEN + CAST ( NULL AS INTEGER ) THEN - 30 WHEN + - 43 / + ( - + MIN ( - 44 ) ) - 95 + - ( - + COALESCE ( - 50, + ( + 66 ) + - + 5 + + NULLIF ( - - 16, - CAST ( NULL AS INTEGER ) ) / - 85 ) ) THEN NULL END + 27 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT DISTINCT 53 * + COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-9407
SELECT DISTINCT 53 * + COUNT ( * )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT 7 + - + NULLIF ( + ( + COUNT( * ) ), - - 5 )
----
6

skipif mysql # not compatible
query I rowsort label-9408
SELECT 7 + - + NULLIF ( + ( + COUNT ( * ) ), - - 5 )
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-9409
SELECT 43 DIV + 46
----
0

skipif mysql # not compatible
query I rowsort label-9409
SELECT 43 / + 46
----
0

query I rowsort
SELECT ALL 71 + + 25
----
96

query II rowsort
SELECT 13 * - 24 AS col0, ( + - 58 ) + - 40 AS col0
----
-312
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9412
SELECT ALL CAST( NULL AS SIGNED ) + + 74 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9412
SELECT ALL CAST ( NULL AS INTEGER ) + + 74 AS col0
----
NULL

query I rowsort
SELECT 84 * 30 * + 92 + + 32
----
231872

onlyif mysql # DIV for integer division: 
query II rowsort label-9414
SELECT ALL 41 DIV - 26 AS col0, - 62
----
-1
-62

skipif mysql # not compatible
query II rowsort label-9414
SELECT ALL 41 / - 26 AS col0, - 62
----
-1
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-9415
SELECT - 37 DIV - 23 + - 54 + - - ( + + 65 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-9415
SELECT - 37 / - 23 + - 54 + - - ( + + 65 ) AS col1
----
12

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9416
SELECT DISTINCT + + 96 * CASE - 88 WHEN - 14 THEN + 20 WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END * + - 72 AS col0, ( 23 ) DIV + 97 * 2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-9416
SELECT DISTINCT + + 96 * CASE - 88 WHEN - 14 THEN + 20 WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END * + - 72 AS col0, ( 23 ) / + 97 * 2
----
NULL
0

query I rowsort
SELECT ALL + + 33 - + 19
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-9418
SELECT DISTINCT - + MIN( ALL - 37 ), 61 AS col1
----
37
61

skipif mysql # not compatible
query II rowsort label-9418
SELECT DISTINCT - + MIN ( ALL - 37 ), 61 AS col1
----
37
61

onlyif mysql # aggregate syntax: 
query II rowsort label-9419
SELECT + COUNT( * ) + - 43 AS col2, + 5 AS col2
----
-42
5

skipif mysql # not compatible
query II rowsort label-9419
SELECT + COUNT ( * ) + - 43 AS col2, + 5 AS col2
----
-42
5

query I rowsort
SELECT DISTINCT - + 91 AS col0
----
-91

query I rowsort
SELECT DISTINCT 95 * 18 * + 19
----
32490

query I rowsort
SELECT ALL - 66 * - 79 * + 73 * 62 + - - 41 AS col2
----
23598605

onlyif mysql # aggregate syntax: 
query I rowsort label-9423
SELECT + COALESCE ( + 29, + + 88 - + COUNT( * ) + + 30 ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-9423
SELECT + COALESCE ( + 29, + + 88 - + COUNT ( * ) + + 30 ) AS col1
----
29

query I rowsort
SELECT + - 25 AS col1
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9425
SELECT ALL AVG ( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9425
SELECT ALL AVG ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT 4 - 35 AS col0
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-9427
SELECT - 86 DIV + 81 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9427
SELECT - 86 / + 81 AS col2
----
-1

query I rowsort
SELECT 97 * - 66
----
-6402

onlyif mysql # DIV for integer division: 
query I rowsort label-9429
SELECT ALL - - 36 DIV + 4
----
9

skipif mysql # not compatible
query I rowsort label-9429
SELECT ALL - - 36 / + 4
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT COUNT( + 63 ) + + - 2
----
-1

skipif mysql # not compatible
query I rowsort label-9430
SELECT COUNT ( + 63 ) + + - 2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9431
SELECT COUNT( * ) * + + 71 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-9431
SELECT COUNT ( * ) * + + 71 AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9432
SELECT 89 + - SUM( - 21 ) * + MAX( 54 )
----
1223

skipif mysql # not compatible
query I rowsort label-9432
SELECT 89 + - SUM ( - 21 ) * + MAX ( 54 )
----
1223

onlyif mysql # aggregate syntax: 
query I rowsort label-9433
SELECT COUNT( * ) - - + MAX( DISTINCT + 60 ) + - 40 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-9433
SELECT COUNT ( * ) - - + MAX ( DISTINCT + 60 ) + - 40 AS col0
----
21

query I rowsort
SELECT ALL + 51 * 15 * 63
----
48195

query I rowsort
SELECT 98 + + + 15 AS col1
----
113

query I rowsort
SELECT ALL 49 + + - 19 * - - 63
----
-1148

query I rowsort
SELECT ALL - 87 * - 99 col1
----
8613

query I rowsort
SELECT 8 * 67 AS col2
----
536

query II rowsort
SELECT ALL - 15 + - + ( + - 75 ) col2, + 65
----
60
65

query I rowsort
SELECT DISTINCT - 6 * 84
----
-504

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9441
SELECT ALL NULLIF ( - 56, 15 ) + - + 2 DIV - + NULLIF ( 75, - CASE + + 91 WHEN - - 37 THEN NULL ELSE - ( - 16 ) + 86 END * ( + - SUM( DISTINCT - 5 ) ) ) + ( + 27 )
----
-29

skipif mysql # not compatible
query I rowsort label-9441
SELECT ALL NULLIF ( - 56, 15 ) + - + 2 / - + NULLIF ( 75, - CASE + + 91 WHEN - - 37 THEN NULL ELSE - ( - 16 ) + 86 END * ( + - SUM ( DISTINCT - 5 ) ) ) + ( + 27 )
----
-29

query I rowsort
SELECT 24 + + 4
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9443
SELECT ALL - CASE + - ( - + 39 ) WHEN 21 + + - 69 THEN + 76 * - SUM( ALL + 7 ) + + 44 * + 97 * 41 WHEN + 37 / - 42 THEN - COUNT( * ) * - SUM( - + 16 ) + - 79 ELSE - + 95 END * + 53 AS col2
----
5035

skipif mysql # not compatible
query I rowsort label-9443
SELECT ALL - CASE + - ( - + 39 ) WHEN 21 + + - 69 THEN + 76 * - SUM ( ALL + 7 ) + + 44 * + 97 * 41 WHEN + 37 / - 42 THEN - COUNT ( * ) * - SUM ( - + 16 ) + - 79 ELSE - + 95 END * + 53 AS col2
----
5035

query I rowsort
SELECT DISTINCT + 33 + - - 25 AS col0
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-9445
SELECT - 72, - 23 * - MAX( 47 ) col2
----
-72
1081

skipif mysql # not compatible
query II rowsort label-9445
SELECT - 72, - 23 * - MAX ( 47 ) col2
----
-72
1081

onlyif mysql # aggregate syntax: 
query I rowsort label-9446
SELECT COUNT( * ) + + 86 + + 4 * - 80 * + 64
----
-20393

skipif mysql # not compatible
query I rowsort label-9446
SELECT COUNT ( * ) + + 86 + + 4 * - 80 * + 64
----
-20393

query I rowsort
SELECT ALL + NULLIF ( 75, 47 ) + + + 94 AS col0
----
169

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9448
SELECT 52 + + 68 - + + CAST( + + 68 AS SIGNED ) * + CAST( NULL AS SIGNED ) * + - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-9448
SELECT 52 + + 68 - + + CAST ( + + 68 AS INTEGER ) * + CAST ( NULL AS INTEGER ) * + - 1
----
NULL

query I rowsort
SELECT 23 * - + 66
----
-1518

onlyif mysql # aggregate syntax: 
query I rowsort label-9450
SELECT 58 * + + COUNT( * ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-9450
SELECT 58 * + + COUNT ( * ) AS col2
----
58

query II rowsort
SELECT ALL - 97, - 54 AS col2
----
-97
-54

onlyif mysql # DIV for integer division: 
query II rowsort label-9452
SELECT ALL 0 * + 85 DIV - 75 AS col0, + 95 AS col2
----
0
95

skipif mysql # not compatible
query II rowsort label-9452
SELECT ALL 0 * + 85 / - 75 AS col0, + 95 AS col2
----
0
95

onlyif mysql # DIV for integer division: 
query I rowsort label-9453
SELECT ALL - 44 DIV - 11 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-9453
SELECT ALL - 44 / - 11 AS col1
----
4

query I rowsort
SELECT DISTINCT - + COALESCE ( + - 27, + + 28, 21, - 5 * - 96 ) AS col0
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9455
SELECT - 1 / + + CAST( NULL AS SIGNED ) * + COUNT( * ) * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9455
SELECT - 1 / + + CAST ( NULL AS INTEGER ) * + COUNT ( * ) * + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9456
SELECT 71 * COUNT( * ) * + + ( - + 31 ) + SUM( - 71 ) + + - SUM( + 5 ), 35 * 39 + - + 2 + 73 AS col1
----
-2277
1436

skipif mysql # not compatible
query II rowsort label-9456
SELECT 71 * COUNT ( * ) * + + ( - + 31 ) + SUM ( - 71 ) + + - SUM ( + 5 ), 35 * 39 + - + 2 + 73 AS col1
----
-2277
1436

onlyif mysql # aggregate syntax: 
query I rowsort label-9457
SELECT DISTINCT + 45 * - 88 * - 83 + - ( MAX( 57 ) ) AS col0
----
328623

skipif mysql # not compatible
query I rowsort label-9457
SELECT DISTINCT + 45 * - 88 * - 83 + - ( MAX ( 57 ) ) AS col0
----
328623

query II rowsort
SELECT ALL - - 84 AS col0, + 31 + 90 AS col0
----
84
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9459
SELECT DISTINCT - - MAX( ( + CAST( + COALESCE ( 8, - 42 / - 33 ) AS SIGNED ) ) )
----
8

skipif mysql # not compatible
query I rowsort label-9459
SELECT DISTINCT - - MAX ( ( + CAST ( + COALESCE ( 8, - 42 / - 33 ) AS INTEGER ) ) )
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9460
SELECT MAX( + - 63 ) DIV + 19
----
-3

skipif mysql # not compatible
query I rowsort label-9460
SELECT MAX ( + - 63 ) / + 19
----
-3

query I rowsort
SELECT ( - 99 ) * - 83
----
8217

query II rowsort
SELECT DISTINCT - 94, 54 col2
----
-94
54

query I rowsort
SELECT ALL - + ( - 21 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9464
SELECT ALL - 71 * + 62 - ( + MIN( DISTINCT - ( 42 ) ) ) + + COUNT( * )
----
-4359

skipif mysql # not compatible
query I rowsort label-9464
SELECT ALL - 71 * + 62 - ( + MIN ( DISTINCT - ( 42 ) ) ) + + COUNT ( * )
----
-4359

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9465
SELECT + 26 + 90 * 29 + + - CAST( NULL AS SIGNED ), - 60 col2
----
NULL
-60

skipif mysql # not compatible
query II rowsort label-9465
SELECT + 26 + 90 * 29 + + - CAST ( NULL AS INTEGER ), - 60 col2
----
NULL
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-9466
SELECT ALL - 68 + 36 DIV + 61 AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-9466
SELECT ALL - 68 + 36 / + 61 AS col1
----
-68

query I rowsort
SELECT ALL 14 * 35 AS col2
----
490

query II rowsort
SELECT + 45 AS col0, 67 + 27 + - - 43
----
45
137

onlyif mysql # aggregate syntax: 
query I rowsort label-9469
SELECT - + 99 * - COUNT( * ) * MAX( ALL + 97 ) AS col0
----
9603

skipif mysql # not compatible
query I rowsort label-9469
SELECT - + 99 * - COUNT ( * ) * MAX ( ALL + 97 ) AS col0
----
9603

query I rowsort
SELECT - CASE 92 WHEN - 80 THEN - - 53 WHEN + 63 / 56 THEN NULL WHEN - ( - 77 ) THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT ALL COUNT( * ) + - - 50 * + - 29
----
-1449

skipif mysql # not compatible
query I rowsort label-9471
SELECT ALL COUNT ( * ) + - - 50 * + - 29
----
-1449

onlyif mysql # DIV for integer division: 
query I rowsort label-9472
SELECT + 19 DIV 21 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9472
SELECT + 19 / 21 AS col0
----
0

query I rowsort
SELECT ALL + 47 + + ( 98 )
----
145

query I rowsort
SELECT ALL 1 + 34
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9475
SELECT DISTINCT + ( + + COUNT( * ) ) + 49 * - + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) * COALESCE ( AVG ( + - CASE + - 21 WHEN 99 THEN - 67 ELSE - - 34 - - 67 END ), 79, - + 25, + 48 ) + - - 80 - - ( - 85 ) + - 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9475
SELECT DISTINCT + ( + + COUNT ( * ) ) + 49 * - + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) * COALESCE ( AVG ( + - CASE + - 21 WHEN 99 THEN - 67 ELSE - - 34 - - 67 END ), 79, - + 25, + 48 ) + - - 80 - - ( - 85 ) + - 89 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9476
SELECT ALL - CASE + COUNT( ALL CAST( NULL AS SIGNED ) ) WHEN - - 71 THEN 71 + 0 + + COUNT( * ) + - - 2 * + 63 END + + 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9476
SELECT ALL - CASE + COUNT ( ALL CAST ( NULL AS INTEGER ) ) WHEN - - 71 THEN 71 + 0 + + COUNT ( * ) + - - 2 * + 63 END + + 81 AS col1
----
NULL

query I rowsort
SELECT + 77 - 30 * + 27 + + + 67 + + - 19 AS col2
----
-685

onlyif mysql # aggregate syntax: 
query II rowsort label-9478
SELECT + 36 * - + 20 AS col2, + 21 + - 18 + + COUNT( * ) + + + 35
----
-720
39

skipif mysql # not compatible
query II rowsort label-9478
SELECT + 36 * - + 20 AS col2, + 21 + - 18 + + COUNT ( * ) + + + 35
----
-720
39

query I rowsort
SELECT + 53 - 5 * - 89 AS col0
----
498

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9480
SELECT ALL + ( + 72 ) * CAST( - - 19 AS SIGNED ) + + - NULLIF ( - 98, + 14 ) AS col0, 74 + + 88 AS col1
----
1466
162

skipif mysql # not compatible
query II rowsort label-9480
SELECT ALL + ( + 72 ) * CAST ( - - 19 AS INTEGER ) + + - NULLIF ( - 98, + 14 ) AS col0, 74 + + 88 AS col1
----
1466
162

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9481
SELECT DISTINCT ( 32 ) DIV + + ( - + COUNT( * ) ) col1, COUNT( ALL - 31 )
----
-32
1

skipif mysql # not compatible
query II rowsort label-9481
SELECT DISTINCT ( 32 ) / + + ( - + COUNT ( * ) ) col1, COUNT ( ALL - 31 )
----
-32
1

query I rowsort
SELECT ALL + 84 - + - ( - 39 )
----
45

query I rowsort
SELECT DISTINCT ( + + 67 ) col2
----
67

query I rowsort
SELECT - 99 - + 67 + + 73
----
-93

query I rowsort
SELECT ALL ( - 44 )
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9486
SELECT ALL + NULLIF ( COUNT( * ), + - 67 + - - 54 - + CASE - - 19 WHEN - 61 THEN - 83 END ) DIV - - 75 - + + 94 col0
----
-94

skipif mysql # not compatible
query I rowsort label-9486
SELECT ALL + NULLIF ( COUNT ( * ), + - 67 + - - 54 - + CASE - - 19 WHEN - 61 THEN - 83 END ) / - - 75 - + + 94 col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT + - ( + COUNT( + 42 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9487
SELECT + - ( + COUNT ( + 42 ) ) AS col2
----
-1

query I rowsort
SELECT NULLIF ( + - 45, - 23 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT ALL + ( + COUNT( DISTINCT - 18 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9489
SELECT ALL + ( + COUNT ( DISTINCT - 18 ) ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9490
SELECT - + COALESCE ( + + 83, + COUNT( * ), + CAST( + - COALESCE ( - COUNT( DISTINCT + ( - 76 ) ), - 51 * - COUNT( * ), 25 ) AS SIGNED ) + - + COUNT( * ) * 38 ) + CAST( NULL AS SIGNED ), - 48 AS col0
----
NULL
-48

skipif mysql # not compatible
query II rowsort label-9490
SELECT - + COALESCE ( + + 83, + COUNT ( * ), + CAST ( + - COALESCE ( - COUNT ( DISTINCT + ( - 76 ) ), - 51 * - COUNT ( * ), 25 ) AS INTEGER ) + - + COUNT ( * ) * 38 ) + CAST ( NULL AS INTEGER ), - 48 AS col0
----
NULL
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9491
SELECT + ( 95 ) DIV COUNT( * ) * + 49 + - - 82 + + - COUNT( * ) * + - 2 AS col0
----
4739

skipif mysql # not compatible
query I rowsort label-9491
SELECT + ( 95 ) / COUNT ( * ) * + 49 + - - 82 + + - COUNT ( * ) * + - 2 AS col0
----
4739

query I rowsort
SELECT DISTINCT 7 * - 46 * - - ( - 16 ) + + 38 + - 3
----
5187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9493
SELECT DISTINCT ( - + 82 ) * + 80 + 48 - + - 13 * - + COUNT( * ) + - + COUNT( * ) * + NULLIF ( 1, 0 ) * - + 94 * + CAST( 84 AS SIGNED ) - 35 - - - 20 * - SUM( DISTINCT - 50 ) * + + 59 * - - 88 + 67 * COALESCE ( 5 * - 91 - - CAST( + 46 - 84 * + COALESCE ( MAX( ALL COALESCE ( - ( - 49 ), - 75 * + 34 ) ), + 93 * - 28 ) AS SIGNED ) * + ( 10 ), 5 )
----
-7948049

skipif mysql # not compatible
query I rowsort label-9493
SELECT DISTINCT ( - + 82 ) * + 80 + 48 - + - 13 * - + COUNT ( * ) + - + COUNT ( * ) * + NULLIF ( 1, 0 ) * - + 94 * + CAST ( 84 AS INTEGER ) - 35 - - - 20 * - SUM ( DISTINCT - 50 ) * + + 59 * - - 88 + 67 * COALESCE ( 5 * - 91 - - CAST ( + 46 - 84 * + COALESCE ( MAX ( ALL COALESCE ( - ( - 49 ), - 75 * + 34 ) ), + 93 * - 28 ) AS INTEGER ) * + ( 10 ), 5 )
----
-7948049

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT SUM( - 54 ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-9494
SELECT SUM ( - 54 ) AS col1
----
-54

query I rowsort
SELECT - 3 * + + 66 + 88
----
-110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9496
SELECT ALL + COUNT( * ) * + 53 DIV 3 + + - 4 col0
----
13

skipif mysql # not compatible
query I rowsort label-9496
SELECT ALL + COUNT ( * ) * + 53 / 3 + + - 4 col0
----
13

query I rowsort
SELECT ALL + 30 * + + 78 * + 72 + + 85 + + 94 AS col0
----
168659

query I rowsort
SELECT ALL + - NULLIF ( 93, + 45 )
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9499
SELECT + 90 + - + 57, - NULLIF ( - - 83, - 50 + CAST( - 39 AS SIGNED ) ) DIV + 93 * + COUNT( * ) + NULLIF ( ( 75 ), - 25 ) - - - 96 AS col0
----
33
-21

skipif mysql # not compatible
query II rowsort label-9499
SELECT + 90 + - + 57, - NULLIF ( - - 83, - 50 + CAST ( - 39 AS INTEGER ) ) / + 93 * + COUNT ( * ) + NULLIF ( ( 75 ), - 25 ) - - - 96 AS col0
----
33
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9500
SELECT + - 84 * + COUNT( * ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-9500
SELECT + - 84 * + COUNT ( * ) AS col2
----
-84

query I rowsort
SELECT ALL + 73 * - 64 + + 10 + + 62 + 41
----
-4559

onlyif mysql # aggregate syntax: 
query II rowsort label-9502
SELECT DISTINCT + COUNT( * ) AS col0, 65 + 95 + + - ( 20 ) * + 90 AS col0
----
1
-1640

skipif mysql # not compatible
query II rowsort label-9502
SELECT DISTINCT + COUNT ( * ) AS col0, 65 + 95 + + - ( 20 ) * + 90 AS col0
----
1
-1640

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT DISTINCT COUNT( + 37 )
----
1

skipif mysql # not compatible
query I rowsort label-9503
SELECT DISTINCT COUNT ( + 37 )
----
1

query I rowsort
SELECT DISTINCT + 13 * + + ( + 2 ) * - 17 + + 14 + + - 98
----
-526

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT SUM( DISTINCT + 30 ) * + 65 * 17 + + NULLIF ( - - 77, - - 50 ) + + 74 col1
----
33301

skipif mysql # not compatible
query I rowsort label-9505
SELECT SUM ( DISTINCT + 30 ) * + 65 * 17 + + NULLIF ( - - 77, - - 50 ) + + 74 col1
----
33301

query I rowsort
SELECT ALL + 80 * 81 + + + 77
----
6557

query I rowsort
SELECT - CASE 38 WHEN - ( 64 ) THEN - 29 ELSE + + 3 * - 3 END AS col2
----
9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9508
SELECT SUM( - - NULLIF ( + CAST( NULL AS DECIMAL ), ( + COALESCE ( - 58, + 78 ) ) + + - 96 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9508
SELECT SUM ( - - NULLIF ( + CAST ( NULL AS REAL ), ( + COALESCE ( - 58, + 78 ) ) + + - 96 ) )
----
NULL

query I rowsort
SELECT + 77 + + 34 AS col2
----
111

query I rowsort
SELECT + 54 + + - 68 AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT - 60 - + MAX( DISTINCT 59 ) col1
----
-119

skipif mysql # not compatible
query I rowsort label-9511
SELECT - 60 - + MAX ( DISTINCT 59 ) col1
----
-119

query I rowsort
SELECT ALL ( + - 31 ) * 96 * - 82
----
244032

query I rowsort
SELECT + 30 + 86
----
116

query I rowsort
SELECT ALL 42 - + + 65 AS col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9515
SELECT DISTINCT CASE - 86 WHEN - - 28 - + + 71 THEN + 96 - + ( + 31 ) ELSE + 26 END * - 39 + 1 + + - COUNT( * )
----
-1014

skipif mysql # not compatible
query I rowsort label-9515
SELECT DISTINCT CASE - 86 WHEN - - 28 - + + 71 THEN + 96 - + ( + 31 ) ELSE + 26 END * - 39 + 1 + + - COUNT ( * )
----
-1014

onlyif mysql # aggregate syntax: 
query I rowsort label-9516
SELECT ALL NULLIF ( + COUNT( * ), 78 - - MIN( 62 ) * 83 )
----
1

skipif mysql # not compatible
query I rowsort label-9516
SELECT ALL NULLIF ( + COUNT ( * ), 78 - - MIN ( 62 ) * 83 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9517
SELECT + SUM( + 11 ) * + 58, - SUM( DISTINCT 67 ) AS col0
----
638
-67

skipif mysql # not compatible
query II rowsort label-9517
SELECT + SUM ( + 11 ) * + 58, - SUM ( DISTINCT 67 ) AS col0
----
638
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9518
SELECT DISTINCT + 80 / + - CASE + COUNT( - 88 ) WHEN - COUNT( * ) THEN NULL WHEN 8 / 68 * + 88 THEN CAST( NULL AS SIGNED ) END / - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9518
SELECT DISTINCT + 80 / + - CASE + COUNT ( - 88 ) WHEN - COUNT ( * ) THEN NULL WHEN 8 / 68 * + 88 THEN CAST ( NULL AS INTEGER ) END / - - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9519
SELECT + COUNT( * ) * + CAST( - 2 AS SIGNED ), 51 + - 98 - 45 + - 8 / + - 87 * - 11 * 74 + + 59 / + 53 + - - 44 + + 79 / + ( - - 91 ) / COALESCE ( + COUNT( * ), + 49 - - CASE - 45 WHEN + 13 THEN - 44 * + COUNT( * ) + AVG ( + 29 + + 52 ) WHEN + COUNT( * ) THEN + 52 * 58 WHEN SUM( DISTINCT 74 ) THEN NULL END * 52 ) + + CASE + 27 + 67 WHEN - 58 THEN - ( - 43 ) + - 37 ELSE NULL END + - 80 AS col2
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-9519
SELECT + COUNT ( * ) * + CAST ( - 2 AS INTEGER ), 51 + - 98 - 45 + - 8 / + - 87 * - 11 * 74 + + 59 / + 53 + - - 44 + + 79 / + ( - - 91 ) / COALESCE ( + COUNT ( * ), + 49 - - CASE - 45 WHEN + 13 THEN - 44 * + COUNT ( * ) + AVG ( + 29 + + 52 ) WHEN + COUNT ( * ) THEN + 52 * 58 WHEN SUM ( DISTINCT 74 ) THEN NULL END * 52 ) + + CASE + 27 + 67 WHEN - 58 THEN - ( - 43 ) + - 37 ELSE NULL END + - 80 AS col2
----
-2
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9520
SELECT - 92 DIV 18 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-9520
SELECT - 92 / 18 AS col1
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9521
SELECT DISTINCT + ( + 24 ) / + CAST( NULL AS SIGNED ) * - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-9521
SELECT DISTINCT + ( + 24 ) / + CAST ( NULL AS INTEGER ) * - 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9522
SELECT - 5 + - COUNT( 71 ) + COUNT( * ) + - 96 * - 33 * 4 + - COUNT( * ) * + COUNT( * )
----
12666

skipif mysql # not compatible
query I rowsort label-9522
SELECT - 5 + - COUNT ( 71 ) + COUNT ( * ) + - 96 * - 33 * 4 + - COUNT ( * ) * + COUNT ( * )
----
12666

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9523
SELECT ALL - + CAST( NULL AS SIGNED ) * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9523
SELECT ALL - + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT - 49 * - 67 * + 93 AS col0
----
305319

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9525
SELECT ALL - CAST( - CASE - - 66 WHEN + - 84 THEN NULL WHEN + 94 THEN 26 ELSE + 80 END AS SIGNED ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9525
SELECT ALL - CAST ( - CASE - - 66 WHEN + - 84 THEN NULL WHEN + 94 THEN 26 ELSE + 80 END AS INTEGER ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9526
SELECT - 58 DIV - + 74 * - 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9526
SELECT - 58 / - + 74 * - 83 AS col2
----
0

query I rowsort
SELECT DISTINCT - 67 * 7 * - 69 AS col2
----
32361

query I rowsort
SELECT ALL + - 34 * - 19
----
646

query I rowsort
SELECT DISTINCT + 87 + - 95 col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT ALL - NULLIF ( + - NULLIF ( - ( + COUNT( * ) ), - ( 41 ) + - 19 + + 58 * 64 - + CASE WHEN - 69 IS NULL THEN 84 * - - 80 ELSE NULL END ), - COUNT( * ) + - - 46 * 71 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-9530
SELECT ALL - NULLIF ( + - NULLIF ( - ( + COUNT ( * ) ), - ( 41 ) + - 19 + + 58 * 64 - + CASE WHEN - 69 IS NULL THEN 84 * - - 80 ELSE NULL END ), - COUNT ( * ) + - - 46 * 71 ) col2
----
-1

query I rowsort
SELECT + 29 * + 19 AS col1
----
551

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9532
SELECT + - CASE + 57 WHEN + COUNT( * ) THEN + CAST( NULL AS SIGNED ) WHEN 37 THEN + + 82 + 31 * + NULLIF ( - - COUNT( * ), CAST( ( + 67 ) AS DECIMAL ) ) * - - 46 + + - NULLIF ( + 27, - + ( - 44 ) ) * + 70 / - 51 + - 25 * + COUNT( 99 * + 65 ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9532
SELECT + - CASE + 57 WHEN + COUNT ( * ) THEN + CAST ( NULL AS INTEGER ) WHEN 37 THEN + + 82 + 31 * + NULLIF ( - - COUNT ( * ), CAST ( ( + 67 ) AS REAL ) ) * - - 46 + + - NULLIF ( + 27, - + ( - 44 ) ) * + 70 / - 51 + - 25 * + COUNT ( 99 * + 65 ) END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT ALL + - COUNT( * ) * - + 51 AS col2
----
51

skipif mysql # not compatible
query I rowsort label-9533
SELECT ALL + - COUNT ( * ) * - + 51 AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9534
SELECT + COALESCE ( + 72, - COUNT( * ) )
----
72

skipif mysql # not compatible
query I rowsort label-9534
SELECT + COALESCE ( + 72, - COUNT ( * ) )
----
72

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9535
SELECT - 25 / - CAST( NULL AS DECIMAL ) + + 63, 99 col1
----
NULL
99

skipif mysql # not compatible
query II rowsort label-9535
SELECT - 25 / - CAST ( NULL AS REAL ) + + 63, 99 col1
----
NULL
99

query I rowsort
SELECT + + COALESCE ( 59, + + 8 + + - 33 ) AS col2
----
59

query II rowsort
SELECT DISTINCT - 19 + - 17 + 69 AS col1, - 86 - + 30
----
33
-116

query I rowsort
SELECT ALL - - ( + + 92 ) AS col2
----
92

query I rowsort
SELECT ALL 32 + + 37 + - + 27 col0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9540
SELECT ALL CAST( NULL AS SIGNED ) * + 76 * - - 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9540
SELECT ALL CAST ( NULL AS INTEGER ) * + 76 * - - 31 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9541
SELECT COUNT( * ) + + 75
----
76

skipif mysql # not compatible
query I rowsort label-9541
SELECT COUNT ( * ) + + 75
----
76

query I rowsort
SELECT DISTINCT + 47 + 31
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT ALL - COUNT( * ) * + COUNT( * ) * - + 23 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-9543
SELECT ALL - COUNT ( * ) * + COUNT ( * ) * - + 23 AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT 7 * + - 35 * + CASE - + COUNT( * ) WHEN - - ( - + 31 ) * + COUNT( * ) / 98 THEN - + COUNT( * ) / - NULLIF ( + 88, - COUNT( * ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9544
SELECT 7 * + - 35 * + CASE - + COUNT ( * ) WHEN - - ( - + 31 ) * + COUNT ( * ) / 98 THEN - + COUNT ( * ) / - NULLIF ( + 88, - COUNT ( * ) ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9545
SELECT + 3, - 21 + 68 + - 42 - ( + + MAX( - 49 ) ) * + - COALESCE ( - 59, - 8 + - 93 * 23 ) + - 61 / 64 * 77 / ( - CAST( NULL AS SIGNED ) ) + - - 67 AS col0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-9545
SELECT + 3, - 21 + 68 + - 42 - ( + + MAX ( - 49 ) ) * + - COALESCE ( - 59, - 8 + - 93 * 23 ) + - 61 / 64 * 77 / ( - CAST ( NULL AS INTEGER ) ) + - - 67 AS col0
----
3
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9546
SELECT 14 DIV + - 37 * + - 45
----
0

skipif mysql # not compatible
query I rowsort label-9546
SELECT 14 / + - 37 * + - 45
----
0

query II rowsort
SELECT ALL 59 AS col0, + 79
----
59
79

query II rowsort
SELECT DISTINCT 65, 41 AS col2
----
65
41

onlyif mysql # aggregate syntax: 
query II rowsort label-9549
SELECT ALL 70 AS col1, + MIN( - + 93 ) col2
----
70
-93

skipif mysql # not compatible
query II rowsort label-9549
SELECT ALL 70 AS col1, + MIN ( - + 93 ) col2
----
70
-93

query I rowsort
SELECT NULLIF ( + 17, 93 ) * + - 84
----
-1428

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9551
SELECT 52 DIV - ( COUNT( * ) )
----
-52

skipif mysql # not compatible
query I rowsort label-9551
SELECT 52 / - ( COUNT ( * ) )
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-9552
SELECT - 81 AS col2, COUNT( 43 ) - + 42 * - 58 * + - MAX( + 82 )
----
-81
-199751

skipif mysql # not compatible
query II rowsort label-9552
SELECT - 81 AS col2, COUNT ( 43 ) - + 42 * - 58 * + - MAX ( + 82 )
----
-81
-199751

onlyif mysql # aggregate syntax: 
query I rowsort label-9553
SELECT COUNT( * ) * + CASE - 78 WHEN - + 60 THEN - - CASE 24 WHEN 65 THEN - 87 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-9553
SELECT COUNT ( * ) * + CASE - 78 WHEN - + 60 THEN - - CASE 24 WHEN 65 THEN - 87 END END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT 48 - + COUNT( * ) + COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-9554
SELECT 48 - + COUNT ( * ) + COUNT ( * )
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9555
SELECT CAST( - - COUNT( * ) AS SIGNED ) * - 63 + 70 + + + CASE + - COUNT( * ) WHEN 80 * - + 33 THEN + + 51 END * - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-9555
SELECT CAST ( - - COUNT ( * ) AS INTEGER ) * - 63 + 70 + + + CASE + - COUNT ( * ) WHEN 80 * - + 33 THEN + + 51 END * - 61
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9556
SELECT ALL 35 * - + 23 * + COALESCE ( - + COUNT( * ), - - 49 * - + 78 ) AS col1, 93
----
805
93

skipif mysql # not compatible
query II rowsort label-9556
SELECT ALL 35 * - + 23 * + COALESCE ( - + COUNT ( * ), - - 49 * - + 78 ) AS col1, 93
----
805
93

query II rowsort
SELECT - 33 AS col0, 80
----
-33
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9558
SELECT - COUNT( * ) + + + 38 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-9558
SELECT - COUNT ( * ) + + + 38 AS col0
----
37

query I rowsort
SELECT - ( - 57 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT DISTINCT NULLIF ( MAX( DISTINCT - 69 ), + 40 )
----
-69

skipif mysql # not compatible
query I rowsort label-9560
SELECT DISTINCT NULLIF ( MAX ( DISTINCT - 69 ), + 40 )
----
-69

query I rowsort
SELECT ALL - 38 + - + 92 AS col1
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-9562
SELECT + SUM( DISTINCT - + 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-9562
SELECT + SUM ( DISTINCT - + 80 )
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9563
SELECT + CAST( + 6 AS SIGNED ) - - 65
----
71

skipif mysql # not compatible
query I rowsort label-9563
SELECT + CAST ( + 6 AS INTEGER ) - - 65
----
71

query II rowsort
SELECT ALL - 38, 3 * + 6 AS col2
----
-38
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9565
SELECT 83 DIV 50 + + + COALESCE ( - 87, 81 DIV - 58 DIV 11 + + 87 * COUNT( - 14 ) ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-9565
SELECT 83 / 50 + + + COALESCE ( - 87, 81 / - 58 / 11 + + 87 * COUNT ( - 14 ) ) AS col2
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-9566
SELECT + - 28, - COUNT( * ) AS col2
----
-28
-1

skipif mysql # not compatible
query II rowsort label-9566
SELECT + - 28, - COUNT ( * ) AS col2
----
-28
-1

query I rowsort
SELECT DISTINCT 62 + 56 * + ( 8 ) + 42 AS col2
----
552

query II rowsort
SELECT ALL - - 75 AS col2, - 16 AS col1
----
75
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9569
SELECT ALL - + 27 + + + ( SUM( ALL 7 ) )
----
-20

skipif mysql # not compatible
query I rowsort label-9569
SELECT ALL - + 27 + + + ( SUM ( ALL 7 ) )
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9570
SELECT - NULLIF ( 73, 38 ) * - 61 * - COUNT( - CAST( NULL AS SIGNED ) ) * 52 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9570
SELECT - NULLIF ( 73, 38 ) * - 61 * - COUNT ( - CAST ( NULL AS INTEGER ) ) * 52 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9571
SELECT ALL - + 42, 89 AS col1, CAST( + 23 AS SIGNED ) * + 30 * - + 92 - + - 64 + - 44 AS col1
----
-42
89
-63460

skipif mysql # not compatible
query III rowsort label-9571
SELECT ALL - + 42, 89 AS col1, CAST ( + 23 AS INTEGER ) * + 30 * - + 92 - + - 64 + - 44 AS col1
----
-42
89
-63460

query I rowsort
SELECT ALL + 62 + 90
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT + MIN( + + 95 ) * + - 54
----
-5130

skipif mysql # not compatible
query I rowsort label-9573
SELECT + MIN ( + + 95 ) * + - 54
----
-5130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9574
SELECT ALL + 82 - + COUNT( * ) - - - COALESCE ( - + 51, + - 12 DIV 27 ) DIV 56 * - - 92 * - MIN( - 21 )
----
81

skipif mysql # not compatible
query I rowsort label-9574
SELECT ALL + 82 - + COUNT ( * ) - - - COALESCE ( - + 51, + - 12 / 27 ) / 56 * - - 92 * - MIN ( - 21 )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9575
SELECT ALL + - COALESCE ( + 48, 99 * 84 + - + SUM( - 75 ) - + 28 + + 97, + - 78 ) * COUNT( * ) + - 78 + + 21 * 41 col0
----
735

skipif mysql # not compatible
query I rowsort label-9575
SELECT ALL + - COALESCE ( + 48, 99 * 84 + - + SUM ( - 75 ) - + 28 + + 97, + - 78 ) * COUNT ( * ) + - 78 + + 21 * 41 col0
----
735

onlyif mysql # aggregate syntax: 
query I rowsort label-9576
SELECT 33 * + COUNT( * ) + 78
----
111

skipif mysql # not compatible
query I rowsort label-9576
SELECT 33 * + COUNT ( * ) + 78
----
111

query I rowsort
SELECT DISTINCT - ( + ( 44 ) )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT ALL - SUM( ALL - 66 ) col2
----
66

skipif mysql # not compatible
query I rowsort label-9578
SELECT ALL - SUM ( ALL - 66 ) col2
----
66

query I rowsort
SELECT 17 * 78 * + 21 * 87 col0
----
2422602

query II rowsort
SELECT 52 * 49 AS col2, 87 AS col2
----
2548
87

onlyif mysql # aggregate syntax: 
query II rowsort label-9581
SELECT 33 + + + COUNT( * ) + 47, 57 AS col2
----
81
57

skipif mysql # not compatible
query II rowsort label-9581
SELECT 33 + + + COUNT ( * ) + 47, 57 AS col2
----
81
57

query I rowsort
SELECT ALL - 98 * + + 97 col2
----
-9506

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9583
SELECT 42 * 20, - COALESCE ( 3, + - 94 * - 17 + - COALESCE ( 6, 79 * - ( 54 ) * + + 20, COUNT( * ) * + 55 DIV 6 ) + + COUNT( * ) + - + 23 - - 12 * - 18 * 9 ) AS col1
----
840
-3

skipif mysql # not compatible
query II rowsort label-9583
SELECT 42 * 20, - COALESCE ( 3, + - 94 * - 17 + - COALESCE ( 6, 79 * - ( 54 ) * + + 20, COUNT ( * ) * + 55 / 6 ) + + COUNT ( * ) + - + 23 - - 12 * - 18 * 9 ) AS col1
----
840
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9584
SELECT DISTINCT - SUM( DISTINCT - 11 )
----
11

skipif mysql # not compatible
query I rowsort label-9584
SELECT DISTINCT - SUM ( DISTINCT - 11 )
----
11

query I rowsort
SELECT DISTINCT - 80 * - 2
----
160

query I rowsort
SELECT ALL - ( + 76 ) * 44 AS col2
----
-3344

query I rowsort
SELECT 32 * + - 4 * - 42 AS col1
----
5376

query I rowsort
SELECT 68 + 98
----
166

query I rowsort
SELECT DISTINCT - 80 * + NULLIF ( + - 40, - 13 + + + 29 + - 12 * - ( 63 ) )
----
3200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9590
SELECT 48 + + 32 - 30 DIV - 60 * + MIN( - 19 ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-9590
SELECT 48 + + 32 - 30 / - 60 * + MIN ( - 19 ) AS col0
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-9591
SELECT 87 DIV - 13
----
-6

skipif mysql # not compatible
query I rowsort label-9591
SELECT 87 / - 13
----
-6

query I rowsort
SELECT ALL - 63 + - - 44 AS col0
----
-19

query I rowsort
SELECT 93 - - 9 * - + 16
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9594
SELECT ALL + 78 DIV - COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-9594
SELECT ALL + 78 / - COUNT ( * )
----
-78

query I rowsort
SELECT ALL - - 63 + + 18 col2
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9596
SELECT DISTINCT + - 0 + 71 AS col0, CAST( NULL AS SIGNED ) * - 54 AS col1
----
71
NULL

skipif mysql # not compatible
query II rowsort label-9596
SELECT DISTINCT + - 0 + 71 AS col0, CAST ( NULL AS INTEGER ) * - 54 AS col1
----
71
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT DISTINCT 80 + + SUM( + 95 ) + 2 AS col0
----
177

skipif mysql # not compatible
query I rowsort label-9597
SELECT DISTINCT 80 + + SUM ( + 95 ) + 2 AS col0
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT ALL - ( - - MAX( + 41 ) )
----
-41

skipif mysql # not compatible
query I rowsort label-9598
SELECT ALL - ( - - MAX ( + 41 ) )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT + 68 + + 9 + + + MIN( - - 0 ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-9599
SELECT + 68 + + 9 + + + MIN ( - - 0 ) AS col2
----
77

query I rowsort
SELECT ALL ( 26 ) + + + 87 AS col0
----
113

query I rowsort
SELECT - + 21 * + 83 + 25
----
-1718

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT ALL 64 + + MAX( ALL 13 ) * COALESCE ( - COUNT( * ), 89 )
----
51

skipif mysql # not compatible
query I rowsort label-9602
SELECT ALL 64 + + MAX ( ALL 13 ) * COALESCE ( - COUNT ( * ), 89 )
----
51

query I rowsort
SELECT DISTINCT 69 + + 18 AS col2
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9604
SELECT CAST( + - 44 AS SIGNED ) * 64 + 34 DIV - COALESCE ( - COALESCE ( - 64, 10, COUNT( * ) ), - + 88 ) + - COUNT( * ) AS col1
----
-2817

skipif mysql # not compatible
query I rowsort label-9604
SELECT CAST ( + - 44 AS INTEGER ) * 64 + 34 / - COALESCE ( - COALESCE ( - 64, 10, COUNT ( * ) ), - + 88 ) + - COUNT ( * ) AS col1
----
-2817

query I rowsort
SELECT + ( - - 63 )
----
63

query I rowsort
SELECT CASE - + 59 WHEN - - 81 THEN NULL WHEN 97 THEN 28 END col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9607
SELECT - 56 DIV + + MAX( ALL + 58 ) - 31
----
-31

skipif mysql # not compatible
query I rowsort label-9607
SELECT - 56 / + + MAX ( ALL + 58 ) - 31
----
-31

query I rowsort
SELECT + 90 - ( 35 ) AS col2
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9609
SELECT ALL + 66 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9609
SELECT ALL + 66 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT + 7 * + COUNT( * ) * + ( - SUM( ALL - 14 ) ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-9610
SELECT + 7 * + COUNT ( * ) * + ( - SUM ( ALL - 14 ) ) AS col2
----
98

query I rowsort
SELECT DISTINCT COALESCE ( - + 74, ( - + 43 ) ) * + 31 AS col1
----
-2294

onlyif mysql # aggregate syntax: 
query II rowsort label-9612
SELECT ALL + 23 AS col1, - COUNT( * ) AS col1
----
23
-1

skipif mysql # not compatible
query II rowsort label-9612
SELECT ALL + 23 AS col1, - COUNT ( * ) AS col1
----
23
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9613
SELECT ALL + COALESCE ( - ( CAST( NULL AS SIGNED ) ), 61 * - 95 ) AS col2
----
-5795

skipif mysql # not compatible
query I rowsort label-9613
SELECT ALL + COALESCE ( - ( CAST ( NULL AS INTEGER ) ), 61 * - 95 ) AS col2
----
-5795

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT ALL + SUM( ALL + 84 ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-9614
SELECT ALL + SUM ( ALL + 84 ) AS col2
----
84

query II rowsort
SELECT + 68 col1, 50 - 66 * - 2
----
68
182

query I rowsort
SELECT + 47 * - 12 AS col2
----
-564

query I rowsort
SELECT - 53 * 35 col0
----
-1855

onlyif mysql # aggregate syntax: 
query I rowsort label-9618
SELECT MAX( - 66 ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-9618
SELECT MAX ( - 66 ) AS col2
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-9619
SELECT COUNT( * ) AS col2, + 77
----
1
77

skipif mysql # not compatible
query II rowsort label-9619
SELECT COUNT ( * ) AS col2, + 77
----
1
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9620
SELECT DISTINCT CAST( NULL AS SIGNED ) * - NULLIF ( + - 82, + 2 * + 60 ) * 53 + - - 85 + 6 / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9620
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - NULLIF ( + - 82, + 2 * + 60 ) * 53 + - - 85 + 6 / + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL NULLIF ( + 62, + 34 ) col1
----
62

query I rowsort
SELECT - 17 * - 22
----
374

onlyif mysql # aggregate syntax: 
query I rowsort label-9623
SELECT ALL 23 + + COUNT( * ) + + 69 * + + 64 AS col2
----
4440

skipif mysql # not compatible
query I rowsort label-9623
SELECT ALL 23 + + COUNT ( * ) + + 69 * + + 64 AS col2
----
4440

query II rowsort
SELECT - 51 AS col0, 61
----
-51
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9625
SELECT ALL - + 27 + + COUNT( * ) + ( - 41 )
----
-67

skipif mysql # not compatible
query I rowsort label-9625
SELECT ALL - + 27 + + COUNT ( * ) + ( - 41 )
----
-67

query I rowsort
SELECT - 38 * + 48 col1
----
-1824

onlyif mysql # aggregate syntax: 
query I rowsort label-9627
SELECT ALL + 56 + - 98 + + + COUNT( * ) + + 77 * - COUNT( * ) AS col0
----
-118

skipif mysql # not compatible
query I rowsort label-9627
SELECT ALL + 56 + - 98 + + + COUNT ( * ) + + 77 * - COUNT ( * ) AS col0
----
-118

query I rowsort
SELECT - - 50 - + 17
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT + - COUNT( * ) * 47 * - - 21 + 13 + + + 79 AS col1
----
-895

skipif mysql # not compatible
query I rowsort label-9629
SELECT + - COUNT ( * ) * 47 * - - 21 + 13 + + + 79 AS col1
----
-895

query I rowsort
SELECT - + 75 + + 23
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-9631
SELECT ALL 97, + MAX( + 12 ) AS col2
----
97
12

skipif mysql # not compatible
query II rowsort label-9631
SELECT ALL 97, + MAX ( + 12 ) AS col2
----
97
12

query I rowsort
SELECT ALL + 95 - + 87
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-9633
SELECT DISTINCT + 73 DIV - 23
----
-3

skipif mysql # not compatible
query I rowsort label-9633
SELECT DISTINCT + 73 / - 23
----
-3

query I rowsort
SELECT + 68 - 14 + + - 70 AS col2
----
-16

query I rowsort
SELECT - + 23 * + 84 AS col0
----
-1932

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9636
SELECT - 72 DIV - - ( - MIN( DISTINCT + 77 ) ) * + 82 DIV COUNT( * ) + 23 + - ( - 49 ) * - - 25 * + - 61 AS col0, 82 + + 95 AS col2
----
-74702
177

skipif mysql # not compatible
query II rowsort label-9636
SELECT - 72 / - - ( - MIN ( DISTINCT + 77 ) ) * + 82 / COUNT ( * ) + 23 + - ( - 49 ) * - - 25 * + - 61 AS col0, 82 + + 95 AS col2
----
-74702
177

query I rowsort
SELECT ( 98 ) * - - 9 * 63 + 62
----
55628

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9638
SELECT - - 48 * CASE + - 59 WHEN - - 80 + + 98 THEN - 3 ELSE - + CAST( COUNT( + 79 ) AS SIGNED ) END, - 22 AS col1
----
-48
-22

skipif mysql # not compatible
query II rowsort label-9638
SELECT - - 48 * CASE + - 59 WHEN - - 80 + + 98 THEN - 3 ELSE - + CAST ( COUNT ( + 79 ) AS INTEGER ) END, - 22 AS col1
----
-48
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT MIN( - + 59 ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-9639
SELECT MIN ( - + 59 ) AS col1
----
-59

query I rowsort
SELECT - + 74 + + 31 * - + 67 AS col2
----
-2151

query I rowsort
SELECT ALL COALESCE ( + 84, - - 21 + - - 26 ) * + - 70
----
-5880

query I rowsort
SELECT + 31 * - - 98 * + + 59 AS col1
----
179242

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9643
SELECT DISTINCT - 25 * COALESCE ( + 69, ( - - AVG ( ALL + 97 ) ) DIV + - COALESCE ( + COALESCE ( - + 81, - COUNT( * ) ), + + 79 ) )
----
-1725

skipif mysql # not compatible
query I rowsort label-9643
SELECT DISTINCT - 25 * COALESCE ( + 69, ( - - AVG ( ALL + 97 ) ) / + - COALESCE ( + COALESCE ( - + 81, - COUNT ( * ) ), + + 79 ) )
----
-1725

query I rowsort
SELECT + ( + - 47 ) AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT ALL CASE 3 WHEN - - COUNT( * ) * 47 * + 99 THEN + 70 / + + 42 + - 34 * + COUNT( * ) ELSE NULL END * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9645
SELECT ALL CASE 3 WHEN - - COUNT ( * ) * 47 * + 99 THEN + 70 / + + 42 + - 34 * + COUNT ( * ) ELSE NULL END * + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9646
SELECT + COUNT( * ) * 55 AS col0, 29
----
55
29

skipif mysql # not compatible
query II rowsort label-9646
SELECT + COUNT ( * ) * 55 AS col0, 29
----
55
29

query I rowsort
SELECT + 60 + + 8
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9648
SELECT + CASE + - 93 WHEN + 81 DIV - - 96 THEN + + COUNT( * ) * - - 66 + + 30 END AS col1, 21 - 82 DIV - + 2 col0
----
NULL
62

skipif mysql # not compatible
query II rowsort label-9648
SELECT + CASE + - 93 WHEN + 81 / - - 96 THEN + + COUNT ( * ) * - - 66 + + 30 END AS col1, 21 - 82 / - + 2 col0
----
NULL
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT - 8 * COUNT( * ) + + 74 - + 19 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-9649
SELECT - 8 * COUNT ( * ) + + 74 - + 19 AS col1
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9650
SELECT ( - + COUNT( * ) ) AS col2, + 65 * - 3 - 51 DIV - COALESCE ( - + NULLIF ( - + 97, + 36 + + + 34 ), ( - 94 ), - 4 + 2 ) AS col1
----
-1
-195

skipif mysql # not compatible
query II rowsort label-9650
SELECT ( - + COUNT ( * ) ) AS col2, + 65 * - 3 - 51 / - COALESCE ( - + NULLIF ( - + 97, + 36 + + + 34 ), ( - 94 ), - 4 + 2 ) AS col1
----
-1
-195

query I rowsort
SELECT + 41 + - 84 + - - 1 * + 50 - - + 45 * - - 88 col1
----
3967

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9652
SELECT + NULLIF ( + 54, - - 53 + - CAST( - COUNT( * ) AS SIGNED ) * - + 24 ) * + 40 - 67 + + - CASE + - 7 WHEN + CASE - 63 WHEN 27 THEN CASE + MIN( + - 56 ) WHEN ( + 1 ) THEN - CAST( + CASE - 54 WHEN 51 THEN NULL WHEN 75 THEN - 26 * + ( CASE ( - 44 ) WHEN 64 * - 50 THEN 30 ELSE NULL END ) WHEN 83 / - 29 + - 39 THEN NULL END AS SIGNED ) ELSE + 70 END * - 76 END * 28 + 14 THEN CAST( + 12 AS SIGNED ) * 66 ELSE - 67 END * 37 AS col2
----
4572

skipif mysql # not compatible
query I rowsort label-9652
SELECT + NULLIF ( + 54, - - 53 + - CAST ( - COUNT ( * ) AS INTEGER ) * - + 24 ) * + 40 - 67 + + - CASE + - 7 WHEN + CASE - 63 WHEN 27 THEN CASE + MIN ( + - 56 ) WHEN ( + 1 ) THEN - CAST ( + CASE - 54 WHEN 51 THEN NULL WHEN 75 THEN - 26 * + ( CASE ( - 44 ) WHEN 64 * - 50 THEN 30 ELSE NULL END ) WHEN 83 / - 29 + - 39 THEN NULL END AS INTEGER ) ELSE + 70 END * - 76 END * 28 + 14 THEN CAST ( + 12 AS INTEGER ) * 66 ELSE - 67 END * 37 AS col2
----
4572

onlyif mysql # aggregate syntax: 
query II rowsort label-9653
SELECT ALL 12 * COUNT( * ), - 86 AS col0
----
12
-86

skipif mysql # not compatible
query II rowsort label-9653
SELECT ALL 12 * COUNT ( * ), - 86 AS col0
----
12
-86

query I rowsort
SELECT ( + 50 ) + - 28 AS col0
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-9655
SELECT ALL 23 + 39 AS col2, + 74 * + - COUNT( * ) AS col1
----
62
-74

skipif mysql # not compatible
query II rowsort label-9655
SELECT ALL 23 + 39 AS col2, + 74 * + - COUNT ( * ) AS col1
----
62
-74

query I rowsort
SELECT ALL 82 + - + 2 AS col0
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9657
SELECT ALL - 63 + SUM( DISTINCT - - 4 ) + 5 * - 81 * + 4 * - MAX( - ( ( + - 28 ) ) ) - - CAST( + - NULLIF ( - - 66, CAST( + 66 AS SIGNED ) ) AS SIGNED ) + - + 56 * + 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9657
SELECT ALL - 63 + SUM ( DISTINCT - - 4 ) + 5 * - 81 * + 4 * - MAX ( - ( ( + - 28 ) ) ) - - CAST ( + - NULLIF ( - - 66, CAST ( + 66 AS INTEGER ) ) AS INTEGER ) + - + 56 * + 64 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9658
SELECT AVG ( - CAST( NULL AS SIGNED ) ) + COUNT( * ) * + ( - 16 ) * + + 51 + - - 1 / - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9658
SELECT AVG ( - CAST ( NULL AS INTEGER ) ) + COUNT ( * ) * + ( - 16 ) * + + 51 + - - 1 / - + COUNT ( * )
----
NULL

query II rowsort
SELECT ALL 76 * + 76, 94 AS col1
----
5776
94

query II rowsort
SELECT - - ( - 74 ) col2, - 88
----
-74
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9661
SELECT ALL - 59 + + + CAST( + 77 AS SIGNED )
----
18

skipif mysql # not compatible
query I rowsort label-9661
SELECT ALL - 59 + + + CAST ( + 77 AS INTEGER )
----
18

query I rowsort
SELECT - NULLIF ( - 40, 35 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT CASE - 56 WHEN + 93 THEN NULL ELSE - COUNT( * ) + - - COUNT( * ) + 22 * - 50 + 42 END + + - 3 AS col0
----
-1061

skipif mysql # not compatible
query I rowsort label-9663
SELECT CASE - 56 WHEN + 93 THEN NULL ELSE - COUNT ( * ) + - - COUNT ( * ) + 22 * - 50 + 42 END + + - 3 AS col0
----
-1061

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT 26 + + MIN( ALL + + 59 ) + - SUM( 84 ) - + 65 + - 42
----
-106

skipif mysql # not compatible
query I rowsort label-9664
SELECT 26 + + MIN ( ALL + + 59 ) + - SUM ( 84 ) - + 65 + - 42
----
-106

onlyif mysql # aggregate syntax: 
query II rowsort label-9665
SELECT DISTINCT COALESCE ( - 80, + COUNT( - - 28 ) * + ( - COUNT( * ) ) * - - 13, 61 * - 4 ), 47 AS col1
----
-80
47

skipif mysql # not compatible
query II rowsort label-9665
SELECT DISTINCT COALESCE ( - 80, + COUNT ( - - 28 ) * + ( - COUNT ( * ) ) * - - 13, 61 * - 4 ), 47 AS col1
----
-80
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT ALL + - COUNT( * ) * - 81 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-9666
SELECT ALL + - COUNT ( * ) * - 81 AS col2
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9667
SELECT MIN( DISTINCT - 28 ) AS col1, + 20 + 68 + - 79 + 93 * CASE COUNT( * ) WHEN + 60 THEN NULL WHEN - CAST( - 2 AS SIGNED ) + - AVG ( ALL 56 ) * - 87 THEN + COUNT( * ) END * - MAX( + - 58 ) * + CAST( + CAST( 65 AS SIGNED ) AS DECIMAL )
----
-28
NULL

skipif mysql # not compatible
query II rowsort label-9667
SELECT MIN ( DISTINCT - 28 ) AS col1, + 20 + 68 + - 79 + 93 * CASE COUNT ( * ) WHEN + 60 THEN NULL WHEN - CAST ( - 2 AS INTEGER ) + - AVG ( ALL 56 ) * - 87 THEN + COUNT ( * ) END * - MAX ( + - 58 ) * + CAST ( + CAST ( 65 AS INTEGER ) AS REAL )
----
-28
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9668
SELECT ALL + + COUNT( * ) * - 16
----
-16

skipif mysql # not compatible
query I rowsort label-9668
SELECT ALL + + COUNT ( * ) * - 16
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-9669
SELECT + 5 DIV - 84 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9669
SELECT + 5 / - 84 AS col1
----
0

query I rowsort
SELECT DISTINCT + 50 * + - 82 + - + 12 * + 86
----
-5132

query I rowsort
SELECT 51 * 62
----
3162

onlyif mysql # aggregate syntax: 
query II rowsort label-9672
SELECT ALL - ( - 49 ) * 3 col0, COUNT( * )
----
147
1

skipif mysql # not compatible
query II rowsort label-9672
SELECT ALL - ( - 49 ) * 3 col0, COUNT ( * )
----
147
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9673
SELECT ALL 78 DIV - 60 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9673
SELECT ALL 78 / - 60 AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9674
SELECT ALL - CAST( - CASE WHEN NOT + 95 IS NOT NULL THEN + 10 ELSE + - 74 END AS SIGNED ) AS col0, ( 22 ) * 38 + - 56 - 81 AS col0
----
-74
699

skipif mysql # not compatible
query II rowsort label-9674
SELECT ALL - CAST ( - CASE WHEN NOT + 95 IS NOT NULL THEN + 10 ELSE + - 74 END AS INTEGER ) AS col0, ( 22 ) * 38 + - 56 - 81 AS col0
----
-74
699

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT 26 + COUNT( * ) * 34 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-9675
SELECT 26 + COUNT ( * ) * 34 AS col1
----
60

query II rowsort
SELECT + 52 AS col2, - 51
----
52
-51

query I rowsort
SELECT 32 * + - 66 AS col1
----
-2112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9678
SELECT + 4 * + 13 + - 37 * 67 DIV COUNT( * )
----
-2427

skipif mysql # not compatible
query I rowsort label-9678
SELECT + 4 * + 13 + - 37 * 67 / COUNT ( * )
----
-2427

query I rowsort
SELECT DISTINCT + 94 + + 29 AS col0
----
123

query I rowsort
SELECT ALL - 39 + + 21 AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9681
SELECT + 4 * + + 56 - + CASE 36 WHEN - 99 + + 40 THEN - + 25 * + 94 WHEN + 17 * - 32 THEN NULL ELSE + COALESCE ( - + 46, - ( + SUM( 93 ) ) ) END * - 96
----
-4192

skipif mysql # not compatible
query I rowsort label-9681
SELECT + 4 * + + 56 - + CASE 36 WHEN - 99 + + 40 THEN - + 25 * + 94 WHEN + 17 * - 32 THEN NULL ELSE + COALESCE ( - + 46, - ( + SUM ( 93 ) ) ) END * - 96
----
-4192

query I rowsort
SELECT ALL 36 * - 8 AS col0
----
-288

query I rowsort
SELECT 58 * - 59 AS col1
----
-3422

onlyif mysql # aggregate syntax: 
query II rowsort label-9684
SELECT DISTINCT + CASE - COUNT( * ) WHEN + 45 THEN + + 47 WHEN - - 52 THEN - 95 * - 21 ELSE NULL END + - 9 + 27 + 68, COUNT( * ) * + - 2 AS col0
----
NULL
-2

skipif mysql # not compatible
query II rowsort label-9684
SELECT DISTINCT + CASE - COUNT ( * ) WHEN + 45 THEN + + 47 WHEN - - 52 THEN - 95 * - 21 ELSE NULL END + - 9 + 27 + 68, COUNT ( * ) * + - 2 AS col0
----
NULL
-2

query I rowsort
SELECT DISTINCT 71 + - 22
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9686
SELECT ALL COUNT( * ) + + 25
----
26

skipif mysql # not compatible
query I rowsort label-9686
SELECT ALL COUNT ( * ) + + 25
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9687
SELECT ALL 64 + - MAX( - 45 ) - + + 38 + - 34 * + + ( + 90 )
----
-2989

skipif mysql # not compatible
query I rowsort label-9687
SELECT ALL 64 + - MAX ( - 45 ) - + + 38 + - 34 * + + ( + 90 )
----
-2989

onlyif mysql # aggregate syntax: 
query II rowsort label-9688
SELECT ALL - COUNT( * ) AS col2, 93 + 17 * 6
----
-1
195

skipif mysql # not compatible
query II rowsort label-9688
SELECT ALL - COUNT ( * ) AS col2, 93 + 17 * 6
----
-1
195

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT + MAX( ALL - + 48 ) * + COUNT( * ) - SUM( DISTINCT + + 74 ) AS col1
----
-122

skipif mysql # not compatible
query I rowsort label-9689
SELECT + MAX ( ALL - + 48 ) * + COUNT ( * ) - SUM ( DISTINCT + + 74 ) AS col1
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-9690
SELECT ALL MAX( - - 22 ) + + ( + - 72 ) + + + 0 AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-9690
SELECT ALL MAX ( - - 22 ) + + ( + - 72 ) + + + 0 AS col1
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-9691
SELECT - MIN( DISTINCT - + 78 ) * 8 - 13 * + 11 col0, - NULLIF ( - COUNT( * ), - ( - CASE CASE + 91 WHEN 7 * - 57 THEN 87 WHEN + 78 * + 80 THEN + - 39 / 34 * - 0 END WHEN + + 8 THEN - - COUNT( * ) * + MAX( - + 32 ) WHEN - - 86 THEN + + ( - 72 ) + + 10 END ) - - 83 ) col2
----
481
1

skipif mysql # not compatible
query II rowsort label-9691
SELECT - MIN ( DISTINCT - + 78 ) * 8 - 13 * + 11 col0, - NULLIF ( - COUNT ( * ), - ( - CASE CASE + 91 WHEN 7 * - 57 THEN 87 WHEN + 78 * + 80 THEN + - 39 / 34 * - 0 END WHEN + + 8 THEN - - COUNT ( * ) * + MAX ( - + 32 ) WHEN - - 86 THEN + + ( - 72 ) + + 10 END ) - - 83 ) col2
----
481
1

query I rowsort
SELECT ALL + - 52 - 49 AS col2
----
-101

query II rowsort
SELECT ALL - 97, + 41 col2
----
-97
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9694
SELECT DISTINCT 35 * - 6 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9694
SELECT DISTINCT 35 * - 6 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9695
SELECT ALL + 48 - ( + - MAX( - - 67 ) ) - - 62 * - SUM( DISTINCT - 64 )
----
4083

skipif mysql # not compatible
query I rowsort label-9695
SELECT ALL + 48 - ( + - MAX ( - - 67 ) ) - - 62 * - SUM ( DISTINCT - 64 )
----
4083

query I rowsort
SELECT DISTINCT ( + - 26 ) AS col2
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9697
SELECT ALL - SUM( DISTINCT + - 55 ) * + 85 + + CASE 91 WHEN 42 THEN NULL WHEN - - 19 THEN NULL ELSE - 71 - + 82 + COUNT( * ) * - NULLIF ( - + 4, + + COUNT( * ) ) * - 11 * + SUM( DISTINCT ( - 43 ) ) * + - COUNT( * ) + - CAST( 90 AS SIGNED ) END AS col1
----
2540

skipif mysql # not compatible
query I rowsort label-9697
SELECT ALL - SUM ( DISTINCT + - 55 ) * + 85 + + CASE 91 WHEN 42 THEN NULL WHEN - - 19 THEN NULL ELSE - 71 - + 82 + COUNT ( * ) * - NULLIF ( - + 4, + + COUNT ( * ) ) * - 11 * + SUM ( DISTINCT ( - 43 ) ) * + - COUNT ( * ) + - CAST ( 90 AS INTEGER ) END AS col1
----
2540

onlyif mysql # DIV for integer division: 
query I rowsort label-9698
SELECT 17 DIV 13 + + 80 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-9698
SELECT 17 / 13 + + 80 AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9699
SELECT ALL - COUNT( + - 0 )
----
-1

skipif mysql # not compatible
query I rowsort label-9699
SELECT ALL - COUNT ( + - 0 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9700
SELECT DISTINCT ( - 10 ) * - SUM( ( 54 ) ) AS col1, 30 * - 37
----
540
-1110

skipif mysql # not compatible
query II rowsort label-9700
SELECT DISTINCT ( - 10 ) * - SUM ( ( 54 ) ) AS col1, 30 * - 37
----
540
-1110

query I rowsort
SELECT 66 + + + 42 - + 30 * 82 AS col1
----
-2352

onlyif mysql # aggregate syntax: 
query I rowsort label-9702
SELECT 10 * - - ( - NULLIF ( 94, - + 18 / - + 37 * - 17 ) ) * - COUNT( * ) + + 60 + - 9 AS col2
----
991

skipif mysql # not compatible
query I rowsort label-9702
SELECT 10 * - - ( - NULLIF ( 94, - + 18 / - + 37 * - 17 ) ) * - COUNT ( * ) + + 60 + - 9 AS col2
----
991

query II rowsort
SELECT - - 97 AS col2, - 67 - + 78 - 30
----
97
-175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9704
SELECT + 94 * + 64 / CAST( NULL AS SIGNED ) AS col0, - MAX( + 9 ) * 5
----
NULL
-45

skipif mysql # not compatible
query II rowsort label-9704
SELECT + 94 * + 64 / CAST ( NULL AS INTEGER ) AS col0, - MAX ( + 9 ) * 5
----
NULL
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-9705
SELECT - COUNT( * ) + + 54 + + SUM( - + 87 ) + + + 45 AS col1, - COUNT( * )
----
11
-1

skipif mysql # not compatible
query II rowsort label-9705
SELECT - COUNT ( * ) + + 54 + + SUM ( - + 87 ) + + + 45 AS col1, - COUNT ( * )
----
11
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9706
SELECT DISTINCT - 10 * MAX( DISTINCT 12 ) * - + 41 col0
----
4920

skipif mysql # not compatible
query I rowsort label-9706
SELECT DISTINCT - 10 * MAX ( DISTINCT 12 ) * - + 41 col0
----
4920

onlyif mysql # aggregate syntax: 
query I rowsort label-9707
SELECT ALL MAX( DISTINCT - - 45 )
----
45

skipif mysql # not compatible
query I rowsort label-9707
SELECT ALL MAX ( DISTINCT - - 45 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9708
SELECT SUM( - + ( 23 ) ) col2
----
-23

skipif mysql # not compatible
query I rowsort label-9708
SELECT SUM ( - + ( 23 ) ) col2
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9709
SELECT COUNT( * ) + + CAST( NULL AS SIGNED ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9709
SELECT COUNT ( * ) + + CAST ( NULL AS INTEGER ) + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL NULLIF ( - 44, - 76 )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9711
SELECT ALL - 7 + - - ( + - COUNT( * ) ) * - - 31 + 33
----
-5

skipif mysql # not compatible
query I rowsort label-9711
SELECT ALL - 7 + - - ( + - COUNT ( * ) ) * - - 31 + 33
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9712
SELECT 52 - + CAST( + + 41 AS SIGNED ) + + + 35 * + 67 AS col0
----
2356

skipif mysql # not compatible
query I rowsort label-9712
SELECT 52 - + CAST ( + + 41 AS INTEGER ) + + + 35 * + 67 AS col0
----
2356

query I rowsort
SELECT ALL - 98 + + + 14 + + - 41
----
-125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9714
SELECT CAST( NULL AS SIGNED ) + 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9714
SELECT CAST ( NULL AS INTEGER ) + 13 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT - MAX( ALL + - 75 )
----
75

skipif mysql # not compatible
query I rowsort label-9715
SELECT - MAX ( ALL + - 75 )
----
75

query I rowsort
SELECT + 0 * - 67 + - - 42 AS col1
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9717
SELECT ALL 13 * - CAST( - 75 AS SIGNED ) + 59 AS col2, 41 + + 5 * - 63 * COUNT( * ) AS col1
----
1034
-274

skipif mysql # not compatible
query II rowsort label-9717
SELECT ALL 13 * - CAST ( - 75 AS INTEGER ) + 59 AS col2, 41 + + 5 * - 63 * COUNT ( * ) AS col1
----
1034
-274

onlyif mysql # aggregate syntax: 
query II rowsort label-9718
SELECT + CASE AVG ( DISTINCT + + 46 ) WHEN + 19 * - 45 THEN - 86 * 27 - + 87 + 7 END AS col2, COALESCE ( + COUNT( * ), + 33 * + + 94 - + + 49 ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9718
SELECT + CASE AVG ( DISTINCT + + 46 ) WHEN + 19 * - 45 THEN - 86 * 27 - + 87 + 7 END AS col2, COALESCE ( + COUNT ( * ), + 33 * + + 94 - + + 49 ) AS col1
----
NULL
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9719
SELECT 80 DIV 19 * + 90 + 62 AS col2
----
422

skipif mysql # not compatible
query I rowsort label-9719
SELECT 80 / 19 * + 90 + 62 AS col2
----
422

query I rowsort
SELECT 51 + 52
----
103

query II rowsort
SELECT + 8 AS col1, 51
----
8
51

query I rowsort
SELECT ALL - 35 * + + 75 * 43
----
-112875

query I rowsort
SELECT ALL - 13 * 73 + + 25 col2
----
-924

onlyif mysql # aggregate syntax: 
query II rowsort label-9724
SELECT COALESCE ( + ( - 21 ), - - 18, + 59 + - 69 ), + 89 * + + 63 + - COALESCE ( - ( - 79 ), + 28 + COUNT( * ) * + COALESCE ( + 69, - 99 ) ) - COUNT( * ) AS col1
----
-21
5527

skipif mysql # not compatible
query II rowsort label-9724
SELECT COALESCE ( + ( - 21 ), - - 18, + 59 + - 69 ), + 89 * + + 63 + - COALESCE ( - ( - 79 ), + 28 + COUNT ( * ) * + COALESCE ( + 69, - 99 ) ) - COUNT ( * ) AS col1
----
-21
5527

query I rowsort
SELECT DISTINCT + 90 * + 10 AS col2
----
900

onlyif mysql # aggregate syntax: 
query II rowsort label-9726
SELECT COUNT( * ) col0, - ( - - COUNT( * ) ) * + - 59
----
1
59

skipif mysql # not compatible
query II rowsort label-9726
SELECT COUNT ( * ) col0, - ( - - COUNT ( * ) ) * + - 59
----
1
59

query II rowsort
SELECT + 76 AS col0, 72 * + 46
----
76
3312

onlyif mysql # aggregate syntax: 
query I rowsort label-9728
SELECT DISTINCT ( - + 83 ) * - 52 * + COUNT( * ) - + 85
----
4231

skipif mysql # not compatible
query I rowsort label-9728
SELECT DISTINCT ( - + 83 ) * - 52 * + COUNT ( * ) - + 85
----
4231

onlyif mysql # aggregate syntax: 
query I rowsort label-9729
SELECT - 58 * - COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-9729
SELECT - 58 * - COUNT ( * )
----
58

query II rowsort
SELECT + 84 AS col0, + CASE - + 84 WHEN + - 84 + 95 THEN - 13 + 98 WHEN - 92 THEN NULL END AS col2
----
84
NULL

query I rowsort
SELECT + AVG ( CASE 65 WHEN + 40 + + 6 THEN + 15 * 69 END ) AS col1
----
NULL

query I rowsort
SELECT + 61 * - 87 + + 2 AS col2
----
-5305

query II rowsort
SELECT + 20 AS col1, 88 AS col0
----
20
88

query I rowsort
SELECT ALL + NULLIF ( - 53, - 97 + + 62 ) AS col2
----
-53

query I rowsort
SELECT - + 88 + 99
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9736
SELECT ALL - 77 * + COUNT( * ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-9736
SELECT ALL - 77 * + COUNT ( * ) AS col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9737
SELECT ALL + + CASE - + 44 WHEN + - 91 * + COUNT( * ) / + + 90 * + + 56 THEN NULL WHEN + 41 THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9737
SELECT ALL + + CASE - + 44 WHEN + - 91 * + COUNT ( * ) / + + 90 * + + 56 THEN NULL WHEN + 41 THEN - COUNT ( * ) END
----
NULL

query I rowsort
SELECT + ( 10 ) + + - 59
----
-49

query I rowsort
SELECT + + 38 * - + 64
----
-2432

onlyif mysql # aggregate syntax: 
query II rowsort label-9740
SELECT DISTINCT COUNT( * ) col2, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-9740
SELECT DISTINCT COUNT ( * ) col2, COUNT ( * )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT ALL - ( 98 ) * COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-9741
SELECT ALL - ( 98 ) * COUNT ( * )
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-9742
SELECT + ( 23 ) + - 19 DIV + - 82 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-9742
SELECT + ( 23 ) + - 19 / + - 82 AS col1
----
23

query I rowsort
SELECT - 78 * + 99 * + 5 AS col2
----
-38610

onlyif mysql # DIV for integer division: 
query I rowsort label-9744
SELECT DISTINCT 35 DIV 64 + 56 AS col0
----
56

skipif mysql # not compatible
query I rowsort label-9744
SELECT DISTINCT 35 / 64 + 56 AS col0
----
56

query I rowsort
SELECT + + 11 * - + 54 - - + 19 * - - 90
----
1116

query I rowsort
SELECT DISTINCT + ( - - 33 )
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9747
SELECT + - 37 * - 30 * - 50 - - + 65 + - - CAST( + ( - 25 ) AS SIGNED ) * + 0 * + + 39
----
-55435

skipif mysql # not compatible
query I rowsort label-9747
SELECT + - 37 * - 30 * - 50 - - + 65 + - - CAST ( + ( - 25 ) AS INTEGER ) * + 0 * + + 39
----
-55435

onlyif mysql # aggregate syntax: 
query I rowsort label-9748
SELECT ALL MAX( - 25 ) + 48 + - - 13 * - MAX( DISTINCT + 61 ) AS col2
----
-770

skipif mysql # not compatible
query I rowsort label-9748
SELECT ALL MAX ( - 25 ) + 48 + - - 13 * - MAX ( DISTINCT + 61 ) AS col2
----
-770

onlyif mysql # aggregate syntax: 
query I rowsort label-9749
SELECT + COUNT( * ) * + ( + - 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-9749
SELECT + COUNT ( * ) * + ( + - 69 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9750
SELECT + ( + + ( - 15 ) ) * + - 79 * + COUNT( * )
----
1185

skipif mysql # not compatible
query I rowsort label-9750
SELECT + ( + + ( - 15 ) ) * + - 79 * + COUNT ( * )
----
1185

query I rowsort
SELECT DISTINCT 60 * + 62 AS col2
----
3720

onlyif mysql # aggregate syntax: 
query I rowsort label-9752
SELECT ALL 95 + - COUNT( - - 12 ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-9752
SELECT ALL 95 + - COUNT ( - - 12 ) AS col2
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9753
SELECT + 1 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9753
SELECT + 1 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 7 + 19 * - 82
----
-1551

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT - ( + MIN( + 25 ) )
----
-25

skipif mysql # not compatible
query I rowsort label-9755
SELECT - ( + MIN ( + 25 ) )
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9756
SELECT ALL ( + + 11 ) DIV - ( + 95 ) - - ( 8 ) * + 40 * + 28 + - + 43 * 40 * + COUNT( * )
----
7240

skipif mysql # not compatible
query I rowsort label-9756
SELECT ALL ( + + 11 ) / - ( + 95 ) - - ( 8 ) * + 40 * + 28 + - + 43 * 40 * + COUNT ( * )
----
7240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9757
SELECT CAST( 66 AS SIGNED ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-9757
SELECT CAST ( 66 AS INTEGER ) AS col2
----
66

query II rowsort
SELECT - 71 * - - 51 AS col0, 79 AS col0
----
-3621
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9759
SELECT CAST( - - NULLIF ( COUNT( * ), 61 ) AS SIGNED ) * + - 11 + - CAST( NULL AS DECIMAL ) + - - COUNT( * ) AS col2, - 46 * - NULLIF ( + 84, + CAST( - 1 AS SIGNED ) * - + 96 * + 80 + + 65 + - 56 + - 10 * + 25 * MAX( 10 ) * - COALESCE ( + 16, + 98 * - 13 * - - 80 ) ) + - CAST( NULL AS DECIMAL ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9759
SELECT CAST ( - - NULLIF ( COUNT ( * ), 61 ) AS INTEGER ) * + - 11 + - CAST ( NULL AS REAL ) + - - COUNT ( * ) AS col2, - 46 * - NULLIF ( + 84, + CAST ( - 1 AS INTEGER ) * - + 96 * + 80 + + 65 + - 56 + - 10 * + 25 * MAX ( 10 ) * - COALESCE ( + 16, + 98 * - 13 * - - 80 ) ) + - CAST ( NULL AS REAL ) AS col0
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9760
SELECT DISTINCT MAX( ALL + NULLIF ( + 82, 23 ) ) DIV - - COALESCE ( - 20, - 35 ) - + 86 - 18
----
-108

skipif mysql # not compatible
query I rowsort label-9760
SELECT DISTINCT MAX ( ALL + NULLIF ( + 82, 23 ) ) / - - COALESCE ( - 20, - 35 ) - + 86 - 18
----
-108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9761
SELECT ( + CAST( + 74 AS SIGNED ) )
----
74

skipif mysql # not compatible
query I rowsort label-9761
SELECT ( + CAST ( + 74 AS INTEGER ) )
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9762
SELECT + 35 * + + CAST( CASE - 11 WHEN - + NULLIF ( 7, 65 + - + COALESCE ( - + 83, + CAST( NULL AS SIGNED ) ) ) THEN - 65 END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9762
SELECT + 35 * + + CAST ( CASE - 11 WHEN - + NULLIF ( 7, 65 + - + COALESCE ( - + 83, + CAST ( NULL AS INTEGER ) ) ) THEN - 65 END AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 41 * + 54
----
-2214

onlyif mysql # aggregate syntax: 
query II rowsort label-9764
SELECT + 57 * - + 35 - + 69, 82 * + MIN( - 94 ) + - + 53 * - 39 AS col0
----
-2064
-5641

skipif mysql # not compatible
query II rowsort label-9764
SELECT + 57 * - + 35 - + 69, 82 * + MIN ( - 94 ) + - + 53 * - 39 AS col0
----
-2064
-5641

query I rowsort
SELECT ALL 93 * 80 col2
----
7440

query I rowsort
SELECT DISTINCT + - 34 AS col0
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9767
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9767
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
1

query I rowsort
SELECT DISTINCT + + 17 AS col0
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9769
SELECT - SUM( + ( - + ( 32 ) ) ) DIV 23, + 71 * - 39 + - - 20 AS col2
----
1
-2749

skipif mysql # not compatible
query II rowsort label-9769
SELECT - SUM ( + ( - + ( 32 ) ) ) / 23, + 71 * - 39 + - - 20 AS col2
----
1
-2749

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT + COUNT( * ) * - COALESCE ( - + 8, ( 82 ) * + 76 * + COUNT( * ) + - + 62, - 9 )
----
8

skipif mysql # not compatible
query I rowsort label-9770
SELECT + COUNT ( * ) * - COALESCE ( - + 8, ( 82 ) * + 76 * + COUNT ( * ) + - + 62, - 9 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9771
SELECT - + 51 * - CASE + 37 WHEN - 45 * + - ( + 29 ) THEN NULL WHEN + + MIN( ALL - 77 ) * 43 * COUNT( * ) THEN NULL ELSE + + 77 + - + 35 END AS col1
----
2142

skipif mysql # not compatible
query I rowsort label-9771
SELECT - + 51 * - CASE + 37 WHEN - 45 * + - ( + 29 ) THEN NULL WHEN + + MIN ( ALL - 77 ) * 43 * COUNT ( * ) THEN NULL ELSE + + 77 + - + 35 END AS col1
----
2142

onlyif mysql # aggregate syntax: 
query I rowsort label-9772
SELECT ALL + + MIN( DISTINCT 32 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-9772
SELECT ALL + + MIN ( DISTINCT 32 ) AS col0
----
32

query I rowsort
SELECT - 49 * - - 43 AS col1
----
-2107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9774
SELECT - + COUNT( * ) DIV 4
----
0

skipif mysql # not compatible
query I rowsort label-9774
SELECT - + COUNT ( * ) / 4
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9775
SELECT - + COUNT( * ) DIV 22 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9775
SELECT - + COUNT ( * ) / 22 AS col2
----
0

query II rowsort
SELECT + - 26 * - 33, - 37 + - 78 + - + 41 AS col0
----
858
-156

query II rowsort
SELECT - + 15 * + 91 col1, - 93
----
-1365
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9778
SELECT ALL - MIN( + 24 ) * + 80 + + 61 AS col2
----
-1859

skipif mysql # not compatible
query I rowsort label-9778
SELECT ALL - MIN ( + 24 ) * + 80 + + 61 AS col2
----
-1859

query II rowsort
SELECT DISTINCT - 81 * + 75 + 62, + COALESCE ( + + 36, - - 38 ) + + 34 AS col1
----
-6013
70

query I rowsort
SELECT ALL + - 17 + - 88 AS col2
----
-105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9781
SELECT - CAST( + 77 AS SIGNED ) + + + 93 col1
----
16

skipif mysql # not compatible
query I rowsort label-9781
SELECT - CAST ( + 77 AS INTEGER ) + + + 93 col1
----
16

query I rowsort
SELECT - 49 + + 73 col1
----
24

query I rowsort
SELECT ALL 19 + 86 * - 41 AS col1
----
-3507

query I rowsort
SELECT 61 + - 81 AS col0
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-9785
SELECT ALL 13 DIV 40
----
0

skipif mysql # not compatible
query I rowsort label-9785
SELECT ALL 13 / 40
----
0

query I rowsort
SELECT 71 + + 66
----
137

query II rowsort
SELECT - 6 AS col1, - 65 AS col2
----
-6
-65

query I rowsort
SELECT DISTINCT 18 - + 32 * - 17 AS col1
----
562

query I rowsort
SELECT 57 * + - 57
----
-3249

query II rowsort
SELECT - 14 AS col1, - 11
----
-14
-11

query I rowsort
SELECT 96 + + 30 + 14 * - 27 * + - 93 * - + 92 * + - 79
----
255499398

onlyif mysql # DIV for integer division: 
query I rowsort label-9792
SELECT - 53 DIV 12 + 69 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-9792
SELECT - 53 / 12 + 69 AS col2
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-9793
SELECT ( + 86 ) * + 8 * COUNT( * ), 73 AS col2
----
688
73

skipif mysql # not compatible
query II rowsort label-9793
SELECT ( + 86 ) * + 8 * COUNT ( * ), 73 AS col2
----
688
73

query I rowsort
SELECT 86 + - 57
----
29

query I rowsort
SELECT 21 * 65
----
1365

onlyif mysql # aggregate syntax: 
query I rowsort label-9796
SELECT ALL - COUNT( - - 84 )
----
-1

skipif mysql # not compatible
query I rowsort label-9796
SELECT ALL - COUNT ( - - 84 )
----
-1

query I rowsort
SELECT 92 * + 15 * - + 87 col2
----
-120060

query I rowsort
SELECT ALL - + ( + 48 )
----
-48

query I rowsort
SELECT 26 + - 53
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9800
SELECT + + COUNT( DISTINCT - 40 )
----
1

skipif mysql # not compatible
query I rowsort label-9800
SELECT + + COUNT ( DISTINCT - 40 )
----
1

query I rowsort
SELECT 85 + - 21 - 28
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9802
SELECT CAST( NULL AS SIGNED ) * - + ( - 30 ) + + 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9802
SELECT CAST ( NULL AS INTEGER ) * - + ( - 30 ) + + 13 AS col0
----
NULL

query II rowsort
SELECT ALL - - 69 + 75 - + 77 * - 5 AS col0, 44 * 94
----
529
4136

query I rowsort
SELECT - 61 * - 25 + 67
----
1592

onlyif mysql # aggregate syntax: 
query II rowsort label-9805
SELECT 83 AS col1, COALESCE ( - COUNT( * ), + 91 * 98 + + 81 - + - ( + + 84 ) )
----
83
-1

skipif mysql # not compatible
query II rowsort label-9805
SELECT 83 AS col1, COALESCE ( - COUNT ( * ), + 91 * 98 + + 81 - + - ( + + 84 ) )
----
83
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-9806
SELECT ALL + 56 DIV - 4 + + + 60, + 75 AS col1
----
46
75

skipif mysql # not compatible
query II rowsort label-9806
SELECT ALL + 56 / - 4 + + + 60, + 75 AS col1
----
46
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT DISTINCT + 33 + 37 + + 70 + - COUNT( * )
----
139

skipif mysql # not compatible
query I rowsort label-9807
SELECT DISTINCT + 33 + 37 + + 70 + - COUNT ( * )
----
139

query I rowsort
SELECT ALL - - COALESCE ( ( + + 23 ), + NULLIF ( 38, + 57 ) )
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9809
SELECT 41 + + 39 + + - NULLIF ( - + CAST( NULL AS SIGNED ), + 38 ) + + 97 + + 13 * + - 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9809
SELECT 41 + + 39 + + - NULLIF ( - + CAST ( NULL AS INTEGER ), + 38 ) + + 97 + + 13 * + - 29 AS col2
----
NULL

query I rowsort
SELECT ALL ( + ( - ( - - 76 ) ) ) + - 4
----
-80

query I rowsort
SELECT + + 87 col0
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-9812
SELECT ALL + 84 + 11 DIV - 3 col0
----
81

skipif mysql # not compatible
query I rowsort label-9812
SELECT ALL + 84 + 11 / - 3 col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9813
SELECT DISTINCT - CASE WHEN NOT ( COUNT( * ) ) IS NULL THEN 76 END AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-9813
SELECT DISTINCT - CASE WHEN NOT ( COUNT ( * ) ) IS NULL THEN 76 END AS col1
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9814
SELECT + 86 * 11 + - 56 + MAX( ALL - 63 ) DIV - 77 * + COUNT( * ) * COUNT( DISTINCT + 96 ) AS col1
----
890

skipif mysql # not compatible
query I rowsort label-9814
SELECT + 86 * 11 + - 56 + MAX ( ALL - 63 ) / - 77 * + COUNT ( * ) * COUNT ( DISTINCT + 96 ) AS col1
----
890

query I rowsort
SELECT - ( - - 58 ) AS col0
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-9816
SELECT - ( - 9 ) * + 20 * + 79 + + - 21 DIV - - 71 + + 73
----
14293

skipif mysql # not compatible
query I rowsort label-9816
SELECT - ( - 9 ) * + 20 * + 79 + + - 21 / - - 71 + + 73
----
14293

onlyif mysql # aggregate syntax: 
query I rowsort label-9817
SELECT 87 + - COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-9817
SELECT 87 + - COUNT ( * )
----
86

query I rowsort
SELECT ALL - 22 * - 99 * - - 57 * - - 84
----
10428264

query I rowsort
SELECT 77 * + + 97
----
7469

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9820
SELECT 67 * + - COUNT( * ) * ( - CAST( CAST( + 78 AS SIGNED ) AS SIGNED ) )
----
5226

skipif mysql # not compatible
query I rowsort label-9820
SELECT 67 * + - COUNT ( * ) * ( - CAST ( CAST ( + 78 AS INTEGER ) AS INTEGER ) )
----
5226

onlyif mysql # aggregate syntax: 
query II rowsort label-9821
SELECT COUNT( * ) * - 7 * - NULLIF ( 14, + 39 - + 31 + 98 ) AS col2, 10
----
98
10

skipif mysql # not compatible
query II rowsort label-9821
SELECT COUNT ( * ) * - 7 * - NULLIF ( 14, + 39 - + 31 + 98 ) AS col2, 10
----
98
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9822
SELECT NULLIF ( - 25, + 42 + CAST( NULL AS SIGNED ) * 36 ) * - 48 AS col0
----
1200

skipif mysql # not compatible
query I rowsort label-9822
SELECT NULLIF ( - 25, + 42 + CAST ( NULL AS INTEGER ) * 36 ) * - 48 AS col0
----
1200

onlyif mysql # aggregate syntax: 
query I rowsort label-9823
SELECT MAX( 17 ) * + COALESCE ( 88, + - 98 ) * - + 2 * COUNT( * ) AS col0
----
-2992

skipif mysql # not compatible
query I rowsort label-9823
SELECT MAX ( 17 ) * + COALESCE ( 88, + - 98 ) * - + 2 * COUNT ( * ) AS col0
----
-2992

onlyif mysql # aggregate syntax: 
query I rowsort label-9824
SELECT COUNT( * ) * - 37 AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-9824
SELECT COUNT ( * ) * - 37 AS col0
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-9825
SELECT DISTINCT + 69 DIV + 29 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-9825
SELECT DISTINCT + 69 / + 29 AS col1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9826
SELECT + + CAST( + 61 AS SIGNED )
----
61

skipif mysql # not compatible
query I rowsort label-9826
SELECT + + CAST ( + 61 AS INTEGER )
----
61

query I rowsort
SELECT - 13 * 19 + - 71 + - - ( - 0 ) + - 10 AS col1
----
-328

onlyif mysql # aggregate syntax: 
query I rowsort label-9828
SELECT + 78 * + - MAX( NULLIF ( + 63, + 37 ) ) * - 7
----
34398

skipif mysql # not compatible
query I rowsort label-9828
SELECT + 78 * + - MAX ( NULLIF ( + 63, + 37 ) ) * - 7
----
34398

query I rowsort
SELECT DISTINCT - + 52 col0
----
-52

query I rowsort
SELECT ALL + - 63 * + ( ( - 32 ) ) + + 90 * + + ( 84 ) + - - 64 + - 37 * + 85 AS col1
----
6495

query I rowsort
SELECT ALL + + ( 91 ) * - 29 + - 73
----
-2712

query II rowsort
SELECT DISTINCT + + 88 + - 93, - 79 AS col1
----
-5
-79

query I rowsort
SELECT ALL - - 25 + - 81 + - - 90 AS col1
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9834
SELECT DISTINCT 2 + - ( - COUNT( * ) ) + CAST( NULL AS SIGNED ) * - 64 * - + 2 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9834
SELECT DISTINCT 2 + - ( - COUNT ( * ) ) + CAST ( NULL AS INTEGER ) * - 64 * - + 2 * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT DISTINCT COUNT( * ) + + 38 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-9835
SELECT DISTINCT COUNT ( * ) + + 38 AS col1
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-9836
SELECT SUM( DISTINCT + 38 ) AS col0, + COUNT( * ) * - 79
----
38
-79

skipif mysql # not compatible
query II rowsort label-9836
SELECT SUM ( DISTINCT + 38 ) AS col0, + COUNT ( * ) * - 79
----
38
-79

query I rowsort
SELECT DISTINCT + 55 + + 15 AS col2
----
70

query I rowsort
SELECT + ( 15 ) AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9839
SELECT + - MAX( + 63 )
----
-63

skipif mysql # not compatible
query I rowsort label-9839
SELECT + - MAX ( + 63 )
----
-63

query I rowsort
SELECT - 3 * 2 + - 74 + - 48
----
-128

query I rowsort
SELECT ALL 86 + 12
----
98

query I rowsort
SELECT 66 - - 41 AS col0
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-9843
SELECT - + 67 * - COUNT( * ) - 85
----
-18

skipif mysql # not compatible
query I rowsort label-9843
SELECT - + 67 * - COUNT ( * ) - 85
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9844
SELECT DISTINCT 43 - ( + - COUNT( DISTINCT - - ( + 17 ) ) ) + + - 25
----
19

skipif mysql # not compatible
query I rowsort label-9844
SELECT DISTINCT 43 - ( + - COUNT ( DISTINCT - - ( + 17 ) ) ) + + - 25
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-9845
SELECT + 60 DIV 56
----
1

skipif mysql # not compatible
query I rowsort label-9845
SELECT + 60 / 56
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9846
SELECT - 42 * + COUNT( ALL 70 )
----
-42

skipif mysql # not compatible
query I rowsort label-9846
SELECT - 42 * + COUNT ( ALL 70 )
----
-42

query I rowsort
SELECT - 0 * - 91 AS col2
----
0

query I rowsort
SELECT - 12 + 38 AS col2
----
26

query I rowsort
SELECT ALL - 46 * + + 88 * 1
----
-4048

query I rowsort
SELECT - 6 * 26
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-9851
SELECT - 64 + 76 * + - COALESCE ( COUNT( * ), 16, + 44 )
----
-140

skipif mysql # not compatible
query I rowsort label-9851
SELECT - 64 + 76 * + - COALESCE ( COUNT ( * ), 16, + 44 )
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT DISTINCT MIN( - 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-9852
SELECT DISTINCT MIN ( - 3 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT ALL + CASE + 26 WHEN - + 49 - + - SUM( DISTINCT 45 ) THEN - - 56 WHEN - 99 THEN NULL END + - + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-9853
SELECT ALL + CASE + 26 WHEN - + 49 - + - SUM ( DISTINCT 45 ) THEN - - 56 WHEN - 99 THEN NULL END + - + 22
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9854
SELECT - 58 + 33 + + 48 DIV - COALESCE ( - + 41, + 29 ) + - COUNT( DISTINCT - + 69 )
----
-25

skipif mysql # not compatible
query I rowsort label-9854
SELECT - 58 + 33 + + 48 / - COALESCE ( - + 41, + 29 ) + - COUNT ( DISTINCT - + 69 )
----
-25

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9855
SELECT + COUNT( DISTINCT COALESCE ( + CAST( NULL AS DECIMAL ), + - 11 * + + 54, + - 45 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9855
SELECT + COUNT ( DISTINCT COALESCE ( + CAST ( NULL AS REAL ), + - 11 * + + 54, + - 45 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9856
SELECT - - ( - + COUNT( DISTINCT 53 ) ) DIV + 38 + - 89 + + ( + - 24 ) * - - 23
----
-641

skipif mysql # not compatible
query I rowsort label-9856
SELECT - - ( - + COUNT ( DISTINCT 53 ) ) / + 38 + - 89 + + ( + - 24 ) * - - 23
----
-641

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9857
SELECT COALESCE ( ( - 22 ), CAST( NULL AS SIGNED ) + - COUNT( * ) + + 28 * - ( + COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) ) * COUNT( * ) + ( - - 82 ) * - - 41 * - 84 * 9 - 9 ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-9857
SELECT COALESCE ( ( - 22 ), CAST ( NULL AS INTEGER ) + - COUNT ( * ) + + 28 * - ( + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) * COUNT ( * ) + ( - - 82 ) * - - 41 * - 84 * 9 - 9 ) AS col0
----
-22

query I rowsort
SELECT DISTINCT + - 3 AS col0
----
-3

query I rowsort
SELECT + + ( + 93 ) AS col2
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9860
SELECT ALL + 90 * - - 76 + - + MAX( DISTINCT CAST( NULL AS SIGNED ) ) * - 12 + - ( - 48 ) + + - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-9860
SELECT ALL + 90 * - - 76 + - + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) * - 12 + - ( - 48 ) + + - 51
----
NULL

query II rowsort
SELECT + - 24 AS col2, 74 col1
----
-24
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9862
SELECT + + COUNT( * ) * + 19 * - - MAX( 66 ) + + CAST( 67 AS SIGNED ) - - 99
----
1420

skipif mysql # not compatible
query I rowsort label-9862
SELECT + + COUNT ( * ) * + 19 * - - MAX ( 66 ) + + CAST ( 67 AS INTEGER ) - - 99
----
1420

query I rowsort
SELECT COALESCE ( - ( + + 23 ), - 87 )
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-9864
SELECT + 8, - SUM( ALL - 15 ) AS col0
----
8
15

skipif mysql # not compatible
query II rowsort label-9864
SELECT + 8, - SUM ( ALL - 15 ) AS col0
----
8
15

query I rowsort
SELECT ALL ( + 54 ) * - - 57 AS col0
----
3078

onlyif mysql # aggregate syntax: 
query I rowsort label-9866
SELECT - COUNT( * ) * - SUM( + 90 ) + + 8 + 96 col2
----
194

skipif mysql # not compatible
query I rowsort label-9866
SELECT - COUNT ( * ) * - SUM ( + 90 ) + + 8 + 96 col2
----
194

query I rowsort
SELECT + 14 * 66
----
924

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT + CASE 18 WHEN - - 26 * MAX( 94 ) + 20 THEN + 81 END * - + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-9868
SELECT + CASE 18 WHEN - - 26 * MAX ( 94 ) + 20 THEN + 81 END * - + 98
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9869
SELECT ALL + + 18 * 67 DIV 72 * + + 30
----
480

skipif mysql # not compatible
query I rowsort label-9869
SELECT ALL + + 18 * 67 / 72 * + + 30
----
480

query I rowsort
SELECT ALL + + 41 col1
----
41

query II rowsort
SELECT DISTINCT + 45, - 95 AS col0
----
45
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9872
SELECT + CAST( + + CAST( + 8 AS SIGNED ) AS SIGNED ) * + 8 * + + COALESCE ( - 33, - + 97, - + 84 ) AS col1
----
-2112

skipif mysql # not compatible
query I rowsort label-9872
SELECT + CAST ( + + CAST ( + 8 AS INTEGER ) AS INTEGER ) * + 8 * + + COALESCE ( - 33, - + 97, - + 84 ) AS col1
----
-2112

onlyif mysql # aggregate syntax: 
query I rowsort label-9873
SELECT MIN( ALL - 4 ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-9873
SELECT MIN ( ALL - 4 ) AS col0
----
-4

query I rowsort
SELECT + ( - + 86 ) * + + 95 AS col1
----
-8170

query I rowsort
SELECT - COALESCE ( - 37, 50 )
----
37

onlyif mysql # DIV for integer division: 
query II rowsort label-9876
SELECT - 42 DIV - 68 AS col1, - 17 * + 56
----
0
-952

skipif mysql # not compatible
query II rowsort label-9876
SELECT - 42 / - 68 AS col1, - 17 * + 56
----
0
-952

query I rowsort
SELECT - ( + - 90 ) AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT ALL MIN( + 60 ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-9878
SELECT ALL MIN ( + 60 ) AS col0
----
60

query I rowsort
SELECT + 88 * + NULLIF ( - 35, 59 ) AS col1
----
-3080

query I rowsort
SELECT ALL 94 * + + NULLIF ( - 28, - 25 + - 58 + 35 )
----
-2632

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9881
SELECT ALL + ( + + 60 ) + 85 * - 13 + + + CAST( + + ( + 49 ) AS SIGNED ) * 21 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-9881
SELECT ALL + ( + + 60 ) + 85 * - 13 + + + CAST ( + + ( + 49 ) AS INTEGER ) * 21 AS col1
----
-16

query I rowsort
SELECT - 58 * - + 75
----
4350

query II rowsort
SELECT - ( - 13 ), 62 col1
----
13
62

query I rowsort
SELECT DISTINCT 82 + 95
----
177

onlyif mysql # DIV for integer division: 
query I rowsort label-9885
SELECT - 11 DIV - + 45
----
0

skipif mysql # not compatible
query I rowsort label-9885
SELECT - 11 / - + 45
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9886
SELECT ALL - 24 + 59 - 68 DIV 45 * - 93
----
128

skipif mysql # not compatible
query I rowsort label-9886
SELECT ALL - 24 + 59 - 68 / 45 * - 93
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-9887
SELECT + 22 - - 18 * + 12 - 33 * + COALESCE ( CASE - 7 WHEN + 69 + ( + 46 ) THEN - 83 * - + COUNT( * ) * 93 END, - 73 ) * + - 45
----
-108167

skipif mysql # not compatible
query I rowsort label-9887
SELECT + 22 - - 18 * + 12 - 33 * + COALESCE ( CASE - 7 WHEN + 69 + ( + 46 ) THEN - 83 * - + COUNT ( * ) * 93 END, - 73 ) * + - 45
----
-108167

onlyif mysql # aggregate syntax: 
query I rowsort label-9888
SELECT ALL CASE + ( + 51 ) WHEN - 23 THEN NULL ELSE + + COUNT( * ) END AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9888
SELECT ALL CASE + ( + 51 ) WHEN - 23 THEN NULL ELSE + + COUNT ( * ) END AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9889
SELECT DISTINCT - + COALESCE ( + 79, + 40 DIV + + 74 - + 25 * COUNT( * ) DIV - + 23, ( + - CAST( NULL AS SIGNED ) ) ) * + 28 AS col2
----
-2212

skipif mysql # not compatible
query I rowsort label-9889
SELECT DISTINCT - + COALESCE ( + 79, + 40 / + + 74 - + 25 * COUNT ( * ) / - + 23, ( + - CAST ( NULL AS INTEGER ) ) ) * + 28 AS col2
----
-2212

query I rowsort
SELECT CASE + 62 WHEN + 6 THEN NULL ELSE 56 END
----
56

query I rowsort
SELECT ALL - ( - 63 ) + - 33 + - 61 AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT NULLIF ( 95, + - 98 / - - 51 + - ( + NULLIF ( - - 6, - SUM( DISTINCT + - 22 ) ) ) + - + 77 )
----
95

skipif mysql # not compatible
query I rowsort label-9892
SELECT NULLIF ( 95, + - 98 / - - 51 + - ( + NULLIF ( - - 6, - SUM ( DISTINCT + - 22 ) ) ) + - + 77 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9893
SELECT DISTINCT - - MAX( ALL + - 59 ) + + + 61
----
2

skipif mysql # not compatible
query I rowsort label-9893
SELECT DISTINCT - - MAX ( ALL + - 59 ) + + + 61
----
2

query I rowsort
SELECT ( - + 78 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9895
SELECT + 91 * 98 - + COUNT( - - ( + 50 ) ) AS col0
----
8917

skipif mysql # not compatible
query I rowsort label-9895
SELECT + 91 * 98 - + COUNT ( - - ( + 50 ) ) AS col0
----
8917

query II rowsort
SELECT + + 26, - 54 AS col0
----
26
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9897
SELECT DISTINCT + COALESCE ( - + 90, - 22 * - + SUM( - 84 ) ) DIV - - 99 * - COUNT( * ) - - 98
----
98

skipif mysql # not compatible
query I rowsort label-9897
SELECT DISTINCT + COALESCE ( - + 90, - 22 * - + SUM ( - 84 ) ) / - - 99 * - COUNT ( * ) - - 98
----
98

query I rowsort
SELECT ALL + CASE + - 41 WHEN - 68 THEN NULL WHEN - - 14 THEN 14 * + 83 + - 51 END - + 78 * 68
----
NULL

query I rowsort
SELECT ALL - + 82 col1
----
-82

query II rowsort
SELECT DISTINCT - 67 AS col1, - 47
----
-67
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9901
SELECT DISTINCT - MAX( - + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9901
SELECT DISTINCT - MAX ( - + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT ALL 9 * - 14 * + 43 AS col2
----
-5418

query I rowsort
SELECT 88 * - 52
----
-4576

query III rowsort
SELECT + 71, 32 AS col0, + 14 AS col1
----
71
32
14

query I rowsort
SELECT 77 - + - 94 + - 25 * + - 73 AS col0
----
1996

query I rowsort
SELECT 86 - - 19 AS col1
----
105

query I rowsort
SELECT DISTINCT - 0 * - 29 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9908
SELECT 5 * - - CAST( - 82 AS SIGNED ) * + + 90 AS col2
----
-36900

skipif mysql # not compatible
query I rowsort label-9908
SELECT 5 * - - CAST ( - 82 AS INTEGER ) * + + 90 AS col2
----
-36900

query II rowsort
SELECT 86 + - 0 * - + CASE + - 23 WHEN - - 21 + - - 17 THEN + 4 ELSE NULL END AS col1, + 30 AS col2
----
NULL
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9910
SELECT 95 + NULLIF ( - - 90, - ( - COALESCE ( + 99, COUNT( * ) * + - 78 + 59 + + 1 / 93, + + 63 ) ) - + ( - + 59 ) - + CAST( NULL AS SIGNED ) * - - 6 * 80 )
----
185

skipif mysql # not compatible
query I rowsort label-9910
SELECT 95 + NULLIF ( - - 90, - ( - COALESCE ( + 99, COUNT ( * ) * + - 78 + 59 + + 1 / 93, + + 63 ) ) - + ( - + 59 ) - + CAST ( NULL AS INTEGER ) * - - 6 * 80 )
----
185

query I rowsort
SELECT 31 - + 50 AS col1
----
-19

query I rowsort
SELECT ALL 41 + + ( 28 ) * - 77
----
-2115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9913
SELECT NULLIF ( - 58, - MAX( - + 24 ) ) + - CASE - 90 WHEN 15 THEN NULL ELSE - - MIN( + 56 ) DIV - 85 + - + 77 END * + SUM( DISTINCT - - 28 )
----
2098

skipif mysql # not compatible
query I rowsort label-9913
SELECT NULLIF ( - 58, - MAX ( - + 24 ) ) + - CASE - 90 WHEN 15 THEN NULL ELSE - - MIN ( + 56 ) / - 85 + - + 77 END * + SUM ( DISTINCT - - 28 )
----
2098

query I rowsort
SELECT ALL 5 + 67 + - 36 * + 77 * - 93 * 65 AS col1
----
16756812

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9915
SELECT CASE + 44 WHEN + CAST( NULL AS DECIMAL ) THEN + - AVG ( + 8 ) END + 7 + + 72 * + 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9915
SELECT CASE + 44 WHEN + CAST ( NULL AS REAL ) THEN + - AVG ( + 8 ) END + 7 + + 72 * + 9 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9916
SELECT ALL 80 + COALESCE ( - - 53, + - 36 * - CASE - 91 WHEN + + 88 - - ( - - MAX( + 85 ) ) + + COUNT( * ) THEN - 52 END, 44 ) * - 4 + + NULLIF ( + 59, 27 ) - + + COUNT( * ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-9916
SELECT ALL 80 + COALESCE ( - - 53, + - 36 * - CASE - 91 WHEN + + 88 - - ( - - MAX ( + 85 ) ) + + COUNT ( * ) THEN - 52 END, 44 ) * - 4 + + NULLIF ( + 59, 27 ) - + + COUNT ( * ) AS col1
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9917
SELECT DISTINCT + COUNT( * ) * + + CAST( + 58 AS SIGNED ) DIV - + 12 col1
----
-4

skipif mysql # not compatible
query I rowsort label-9917
SELECT DISTINCT + COUNT ( * ) * + + CAST ( + 58 AS INTEGER ) / - + 12 col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9918
SELECT - 33 * - 0 * + 50 + + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9918
SELECT - 33 * - 0 * + 50 + + COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT ALL - 6 * + COUNT( * ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-9919
SELECT ALL - 6 * + COUNT ( * ) AS col1
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-9920
SELECT DISTINCT - MAX( 78 ), NULLIF ( 37, + + 87 + - + COUNT( * ) * + 92 ) col1
----
-78
37

skipif mysql # not compatible
query II rowsort label-9920
SELECT DISTINCT - MAX ( 78 ), NULLIF ( 37, + + 87 + - + COUNT ( * ) * + 92 ) col1
----
-78
37

onlyif mysql # DIV for integer division: 
query II rowsort label-9921
SELECT + 0 * - + 95 DIV + - 12 * - 52 * + 62 * - 70 * - 14 AS col2, 52 AS col2
----
0
52

skipif mysql # not compatible
query II rowsort label-9921
SELECT + 0 * - + 95 / + - 12 * - 52 * + 62 * - 70 * - 14 AS col2, 52 AS col2
----
0
52

query I rowsort
SELECT ( + + 98 ) * + 30 + - - ( 95 ) * + - 80
----
-4660

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9923
SELECT + 74 + + + NULLIF ( + 65, - + 12 ) / + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9923
SELECT + 74 + + + NULLIF ( + 65, - + 12 ) / + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9924
SELECT + 13 * + - 1 * - + COUNT( * ), + 44 col0
----
13
44

skipif mysql # not compatible
query II rowsort label-9924
SELECT + 13 * + - 1 * - + COUNT ( * ), + 44 col0
----
13
44

query I rowsort
SELECT + NULLIF ( + 85, + 20 ) AS col1
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9926
SELECT 64 * - CAST( - + 97 AS SIGNED ) + - 2 * 74 AS col0, + COUNT( ALL 5 )
----
6060
1

skipif mysql # not compatible
query II rowsort label-9926
SELECT 64 * - CAST ( - + 97 AS INTEGER ) + - 2 * 74 AS col0, + COUNT ( ALL 5 )
----
6060
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT - 49 * MIN( DISTINCT - 35 ) + 65 AS col0
----
1780

skipif mysql # not compatible
query I rowsort label-9927
SELECT - 49 * MIN ( DISTINCT - 35 ) + 65 AS col0
----
1780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9928
SELECT + + 88 * - 63 + - ( - 56 ) + CAST( NULL AS SIGNED ) * CASE 2 WHEN ( - ( ( + ( + NULLIF ( 10, + AVG ( DISTINCT - + 85 ) * + ( + 30 ) + - SUM( DISTINCT + 35 ) + COUNT( * ) ) ) ) ) ) * - 34 * - CASE + CAST( NULL AS SIGNED ) WHEN + + 73 THEN NULL WHEN - 61 + 21 - - 60 THEN - 80 + + 68 / - 60 END * + - 31 + 5 THEN - 12 / 90 - - 37 WHEN 63 * - 71 THEN NULL END * - 56 * 51
----
NULL

skipif mysql # not compatible
query I rowsort label-9928
SELECT + + 88 * - 63 + - ( - 56 ) + CAST ( NULL AS INTEGER ) * CASE 2 WHEN ( - ( ( + ( + NULLIF ( 10, + AVG ( DISTINCT - + 85 ) * + ( + 30 ) + - SUM ( DISTINCT + 35 ) + COUNT ( * ) ) ) ) ) ) * - 34 * - CASE + CAST ( NULL AS INTEGER ) WHEN + + 73 THEN NULL WHEN - 61 + 21 - - 60 THEN - 80 + + 68 / - 60 END * + - 31 + 5 THEN - 12 / 90 - - 37 WHEN 63 * - 71 THEN NULL END * - 56 * 51
----
NULL

query I rowsort
SELECT + ( - + 35 ) * 4 * - 60 col0
----
8400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9930
SELECT ( 72 ) + - 22 * 88 / + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9930
SELECT ( 72 ) + - 22 * 88 / + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - + 51 * 33 AS col0
----
-1683

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9932
SELECT ALL - NULLIF ( + NULLIF ( - ( - 98 ), NULLIF ( 45, 27 ) + + CAST( - 68 AS DECIMAL ) ), - 40 + - 37 ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-9932
SELECT ALL - NULLIF ( + NULLIF ( - ( - 98 ), NULLIF ( 45, 27 ) + + CAST ( - 68 AS REAL ) ), - 40 + - 37 ) AS col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9933
SELECT + COUNT( * ) * + 6 + - MAX( 88 ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-9933
SELECT + COUNT ( * ) * + 6 + - MAX ( 88 ) AS col0
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9934
SELECT 15 * CAST( - - 21 AS SIGNED ) AS col1, 46 + - 9 - - 85 + - + 54 * - 14
----
315
878

skipif mysql # not compatible
query II rowsort label-9934
SELECT 15 * CAST ( - - 21 AS INTEGER ) AS col1, 46 + - 9 - - 85 + - + 54 * - 14
----
315
878

onlyif mysql # aggregate syntax: 
query I rowsort label-9935
SELECT ALL - 59 + + + ( + + 1 ) - + 49 + - MIN( ALL + - 50 )
----
-57

skipif mysql # not compatible
query I rowsort label-9935
SELECT ALL - 59 + + + ( + + 1 ) - + 49 + - MIN ( ALL + - 50 )
----
-57

query I rowsort
SELECT 23 * 58 * + 67 + - 3 col1
----
89375

query I rowsort
SELECT ALL 19 + - 59 AS col1
----
-40

query I rowsort
SELECT ALL - 87 + + 5 * + + 39 * + 3 AS col1
----
498

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9939
SELECT 5 DIV + COUNT( * ) col2
----
5

skipif mysql # not compatible
query I rowsort label-9939
SELECT 5 / + COUNT ( * ) col2
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9940
SELECT ALL + MIN( + 65 ) + - CAST( NULL AS DECIMAL ) + + - 23 * - + 45 + + - 67 AS col2, + CASE COALESCE ( + 40, COUNT( * ) * COUNT( * ), 88 - - CASE - + 36 WHEN - 74 + - 50 + - 39 + - COUNT( * ) * CAST( 53 AS SIGNED ) + 42 + + + AVG ( 38 ) THEN CASE + 89 WHEN + - 76 * COUNT( * ) THEN - 9 - 35 + + + CAST( NULL AS SIGNED ) ELSE NULL END * - + 81 / + 39 + + CAST( NULL AS SIGNED ) END ) WHEN - ( 86 ) THEN 86 END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9940
SELECT ALL + MIN ( + 65 ) + - CAST ( NULL AS REAL ) + + - 23 * - + 45 + + - 67 AS col2, + CASE COALESCE ( + 40, COUNT ( * ) * COUNT ( * ), 88 - - CASE - + 36 WHEN - 74 + - 50 + - 39 + - COUNT ( * ) * CAST ( 53 AS INTEGER ) + 42 + + + AVG ( 38 ) THEN CASE + 89 WHEN + - 76 * COUNT ( * ) THEN - 9 - 35 + + + CAST ( NULL AS INTEGER ) ELSE NULL END * - + 81 / + 39 + + CAST ( NULL AS INTEGER ) END ) WHEN - ( 86 ) THEN 86 END
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9941
SELECT 23 * + + 65 * + - 15 + + + CASE - 25 WHEN + 30 * + - 48 * + 3 + + COALESCE ( - 67, + 39 ) + - COUNT( * ) * + + 92 THEN - + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9941
SELECT 23 * + + 65 * + - 15 + + + CASE - 25 WHEN + 30 * + - 48 * + 3 + + COALESCE ( - 67, + 39 ) + - COUNT ( * ) * + + 92 THEN - + COUNT ( * ) END
----
NULL

query I rowsort
SELECT 2 * + 76
----
152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9943
SELECT 40 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9943
SELECT 40 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + 24 + + - 18 AS col2
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-9945
SELECT DISTINCT COUNT( * ) AS col0, - 17 AS col2
----
1
-17

skipif mysql # not compatible
query II rowsort label-9945
SELECT DISTINCT COUNT ( * ) AS col0, - 17 AS col2
----
1
-17

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9946
SELECT DISTINCT CAST( NULL AS DECIMAL ) - + 97 + - 57, + CAST( NULL AS SIGNED ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9946
SELECT DISTINCT CAST ( NULL AS REAL ) - + 97 + - 57, + CAST ( NULL AS INTEGER ) AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9947
SELECT ALL 87 - COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-9947
SELECT ALL 87 - COUNT ( * )
----
86

query II rowsort
SELECT 50, 27 * + 85 * 7 + + - 5 col2
----
50
16060

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9949
SELECT DISTINCT - CAST( + + 51 AS SIGNED ) * 85 DIV + 95 + + + 80
----
35

skipif mysql # not compatible
query I rowsort label-9949
SELECT DISTINCT - CAST ( + + 51 AS INTEGER ) * 85 / + 95 + + + 80
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-9950
SELECT ALL + COUNT( * ) AS col1, + 99 AS col2
----
1
99

skipif mysql # not compatible
query II rowsort label-9950
SELECT ALL + COUNT ( * ) AS col1, + 99 AS col2
----
1
99

onlyif mysql # aggregate syntax: 
query II rowsort label-9951
SELECT DISTINCT 98, ( 14 ) + COUNT( * ) + 6 col0
----
98
21

skipif mysql # not compatible
query II rowsort label-9951
SELECT DISTINCT 98, ( 14 ) + COUNT ( * ) + 6 col0
----
98
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9952
SELECT + 61 - + - 54 + - 85, - 41 * - CAST( + + COUNT( * ) AS SIGNED ) * - 59 AS col0
----
30
-2419

skipif mysql # not compatible
query II rowsort label-9952
SELECT + 61 - + - 54 + - 85, - 41 * - CAST ( + + COUNT ( * ) AS INTEGER ) * - 59 AS col0
----
30
-2419

query I rowsort
SELECT ALL - NULLIF ( 21, 71 )
----
-21

query I rowsort
SELECT COALESCE ( - 23, + - 73 - + 39 )
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9955
SELECT - CAST( - + 0 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9955
SELECT - CAST ( - + 0 AS INTEGER ) AS col0
----
0

query I rowsort
SELECT ALL - 85 - ( + 84 ) AS col2
----
-169

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9957
SELECT + CAST( - + 31 AS SIGNED ) * + - 38
----
1178

skipif mysql # not compatible
query I rowsort label-9957
SELECT + CAST ( - + 31 AS INTEGER ) * + - 38
----
1178

onlyif mysql # aggregate syntax: 
query I rowsort label-9958
SELECT ALL COUNT( * ) * - COALESCE ( - 18, - 4 )
----
18

skipif mysql # not compatible
query I rowsort label-9958
SELECT ALL COUNT ( * ) * - COALESCE ( - 18, - 4 )
----
18

query I rowsort
SELECT - NULLIF ( - - 97, 33 )
----
-97

query I rowsort
SELECT + + 39 * 95
----
3705

onlyif mysql # aggregate syntax: 
query I rowsort label-9961
SELECT + CASE - - 25 WHEN + + COUNT( * ) THEN + 73 ELSE - 72 END
----
-72

skipif mysql # not compatible
query I rowsort label-9961
SELECT + CASE - - 25 WHEN + + COUNT ( * ) THEN + 73 ELSE - 72 END
----
-72

query I rowsort
SELECT DISTINCT ( - + 4 ) * - - 30 + ( - 59 ) + - + 66 + - + 99
----
-344

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT + + 95 + SUM( DISTINCT 55 ) AS col2
----
150

skipif mysql # not compatible
query I rowsort label-9963
SELECT + + 95 + SUM ( DISTINCT 55 ) AS col2
----
150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9964
SELECT + + AVG ( DISTINCT - ( + 16 ) ) / CAST( NULL AS SIGNED ) - NULLIF ( - 82, 96 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9964
SELECT + + AVG ( DISTINCT - ( + 16 ) ) / CAST ( NULL AS INTEGER ) - NULLIF ( - 82, 96 )
----
NULL

query I rowsort
SELECT + NULLIF ( 40, + 85 ) * - 39 * + 79 + - 43
----
-123283

query I rowsort
SELECT + + 15 - - 51 * - 89
----
-4524

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT ALL - 45 * + COUNT( * ) + + + 63 + 39 * 47 * - 44 col0
----
-80634

skipif mysql # not compatible
query I rowsort label-9967
SELECT ALL - 45 * + COUNT ( * ) + + + 63 + 39 * 47 * - 44 col0
----
-80634

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9968
SELECT + CAST( NULL AS SIGNED ) * + 61 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9968
SELECT + CAST ( NULL AS INTEGER ) * + 61 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9969
SELECT ALL 61 * - 62 + - 1 - NULLIF ( 51, - + 54 - - AVG ( - + 50 ) * + + 42 / + 86 + + COALESCE ( SUM( DISTINCT ( - 6 ) ), 36 * + + 78 + + AVG ( - COALESCE ( - 78, + + 85 * ( - 32 ) + - - 7 + 40 ) ) * - 34 * + 23 - + - 19 ) + CAST( NULL AS SIGNED ) * ( - - ( - 63 ) ) ) * - 84 + - 21
----
480

skipif mysql # not compatible
query I rowsort label-9969
SELECT ALL 61 * - 62 + - 1 - NULLIF ( 51, - + 54 - - AVG ( - + 50 ) * + + 42 / + 86 + + COALESCE ( SUM ( DISTINCT ( - 6 ) ), 36 * + + 78 + + AVG ( - COALESCE ( - 78, + + 85 * ( - 32 ) + - - 7 + 40 ) ) * - 34 * + 23 - + - 19 ) + CAST ( NULL AS INTEGER ) * ( - - ( - 63 ) ) ) * - 84 + - 21
----
480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9970
SELECT ALL - NULLIF ( - + NULLIF ( 33, - - 60 * - - 21 ), CASE WHEN NOT NULL IS NOT NULL THEN 88 ELSE - 74 * 39 * COUNT( DISTINCT 6 ) * 77 + COUNT( 35 ) - - CAST( - 33 AS DECIMAL ) * + + 84 * CAST( + 75 AS SIGNED ) * 97 + + NULLIF ( - 74, + CAST( - 34 AS DECIMAL ) ) * - 0 * + 75 + - ( - 71 ) - + + 47 - 31 * 69 + 44 + 23 + - 65 * 36 / 92 END / + 51 + + COUNT( * ) ) * + 86 + 56 * 64 AS col0
----
6422

skipif mysql # not compatible
query I rowsort label-9970
SELECT ALL - NULLIF ( - + NULLIF ( 33, - - 60 * - - 21 ), CASE WHEN NOT NULL IS NOT NULL THEN 88 ELSE - 74 * 39 * COUNT ( DISTINCT 6 ) * 77 + COUNT ( 35 ) - - CAST ( - 33 AS REAL ) * + + 84 * CAST ( + 75 AS INTEGER ) * 97 + + NULLIF ( - 74, + CAST ( - 34 AS REAL ) ) * - 0 * + 75 + - ( - 71 ) - + + 47 - 31 * 69 + 44 + 23 + - 65 * 36 / 92 END / + 51 + + COUNT ( * ) ) * + 86 + 56 * 64 AS col0
----
6422

onlyif mysql # aggregate syntax: 
query I rowsort label-9971
SELECT ALL + COUNT( * ) * + 70 * + 80 * - ( + + 8 ) * + 48
----
-2150400

skipif mysql # not compatible
query I rowsort label-9971
SELECT ALL + COUNT ( * ) * + 70 * + 80 * - ( + + 8 ) * + 48
----
-2150400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9972
SELECT COALESCE ( + 5, + + 53 + 78 DIV - + 41 * - - CAST( NULL AS SIGNED ), + + ( - MIN( + 79 ) ) + + COUNT( * ) DIV 96 * COALESCE ( 44, 71 * - NULLIF ( + COUNT( * ), - + 15 + CAST( NULL AS SIGNED ) ) ) )
----
5

skipif mysql # not compatible
query I rowsort label-9972
SELECT COALESCE ( + 5, + + 53 + 78 / - + 41 * - - CAST ( NULL AS INTEGER ), + + ( - MIN ( + 79 ) ) + + COUNT ( * ) / 96 * COALESCE ( 44, 71 * - NULLIF ( + COUNT ( * ), - + 15 + CAST ( NULL AS INTEGER ) ) ) )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT + 92 * - 98 * - COUNT( - ( 12 ) ) * + 73 + - - 15 * + 77
----
659323

skipif mysql # not compatible
query I rowsort label-9973
SELECT + 92 * - 98 * - COUNT ( - ( 12 ) ) * + 73 + - - 15 * + 77
----
659323

query I rowsort
SELECT - 59 * - 20 * - - 71
----
83780

onlyif mysql # aggregate syntax: 
query I rowsort label-9975
SELECT ALL + 52 * + 49 + - 19 + - COUNT( * ) + + + 37
----
2565

skipif mysql # not compatible
query I rowsort label-9975
SELECT ALL + 52 * + 49 + - 19 + - COUNT ( * ) + + + 37
----
2565

onlyif mysql # aggregate syntax: 
query I rowsort label-9976
SELECT SUM( + 18 ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-9976
SELECT SUM ( + 18 ) AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT - COUNT( * ) * + 63
----
-63

skipif mysql # not compatible
query I rowsort label-9977
SELECT - COUNT ( * ) * + 63
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9978
SELECT ALL CAST( 81 AS SIGNED ) * + 25 * + 4 - - + COUNT( * ) AS col1
----
8101

skipif mysql # not compatible
query I rowsort label-9978
SELECT ALL CAST ( 81 AS INTEGER ) * + 25 * + 4 - - + COUNT ( * ) AS col1
----
8101

onlyif mysql # aggregate syntax: 
query II rowsort label-9979
SELECT DISTINCT SUM( ALL 58 ), COUNT( * ) AS col2
----
58
1

skipif mysql # not compatible
query II rowsort label-9979
SELECT DISTINCT SUM ( ALL 58 ), COUNT ( * ) AS col2
----
58
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9980
SELECT DISTINCT + 11 - NULLIF ( - 29, + 36 + 23 ) AS col1, + 62 + - - CAST( NULL AS DECIMAL ) + + + CASE 53 WHEN + 99 THEN - + CASE COUNT( * ) WHEN ( - + 50 ) THEN NULL WHEN - 41 THEN NULLIF ( - + 11, + 15 + - COUNT( * ) + - - CAST( + - 52 AS SIGNED ) ) ELSE NULL END WHEN 12 THEN NULL WHEN + 96 + - 44 THEN 8 * + 0 - - ( + + AVG ( - 14 ) ) ELSE + - 18 - + 7 + + 15 END + - ( + 57 ) AS col2
----
40
NULL

skipif mysql # not compatible
query II rowsort label-9980
SELECT DISTINCT + 11 - NULLIF ( - 29, + 36 + 23 ) AS col1, + 62 + - - CAST ( NULL AS REAL ) + + + CASE 53 WHEN + 99 THEN - + CASE COUNT ( * ) WHEN ( - + 50 ) THEN NULL WHEN - 41 THEN NULLIF ( - + 11, + 15 + - COUNT ( * ) + - - CAST ( + - 52 AS INTEGER ) ) ELSE NULL END WHEN 12 THEN NULL WHEN + 96 + - 44 THEN 8 * + 0 - - ( + + AVG ( - 14 ) ) ELSE + - 18 - + 7 + + 15 END + - ( + 57 ) AS col2
----
40
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9981
SELECT ALL + CAST( - COUNT( DISTINCT + 20 ) AS SIGNED ) DIV 22 * MAX( ALL + + 79 ) + 13 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-9981
SELECT ALL + CAST ( - COUNT ( DISTINCT + 20 ) AS INTEGER ) / 22 * MAX ( ALL + + 79 ) + 13 AS col0
----
13

query I rowsort
SELECT - - 26 + + + 10 + 46
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT - SUM( ALL - - 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-9983
SELECT - SUM ( ALL - - 51 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9984
SELECT + COUNT( * ) * - 13 * 93 + 8
----
-1201

skipif mysql # not compatible
query I rowsort label-9984
SELECT + COUNT ( * ) * - 13 * 93 + 8
----
-1201

query I rowsort
SELECT - 82 + 91
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9986
SELECT + - COUNT( * ) DIV + + 87
----
0

skipif mysql # not compatible
query I rowsort label-9986
SELECT + - COUNT ( * ) / + + 87
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9987
SELECT ALL + - 1 * + 9 - - COUNT( * ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-9987
SELECT ALL + - 1 * + 9 - - COUNT ( * ) AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT DISTINCT + COUNT( * ) * - + 50 * + ( + 19 ) col0
----
-950

skipif mysql # not compatible
query I rowsort label-9988
SELECT DISTINCT + COUNT ( * ) * - + 50 * + ( + 19 ) col0
----
-950

query I rowsort
SELECT ALL + - 9 * - + 46 col1
----
414

onlyif mysql # aggregate syntax: 
query I rowsort label-9990
SELECT - 71 + ( - + 92 ) * + - SUM( + 71 )
----
6461

skipif mysql # not compatible
query I rowsort label-9990
SELECT - 71 + ( - + 92 ) * + - SUM ( + 71 )
----
6461

onlyif mysql # aggregate syntax: 
query I rowsort label-9991
SELECT DISTINCT + + 59 + - COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-9991
SELECT DISTINCT + + 59 + - COUNT ( * )
----
58

query I rowsort
SELECT DISTINCT + + 34 + 59 AS col2
----
93

query I rowsort
SELECT + 58 + - ( + - 33 ) AS col1
----
91

query I rowsort
SELECT + 67 * 67 + + 15 + - + 95
----
4409

query II rowsort
SELECT + 25 * - 75 AS col2, 25 AS col0
----
-1875
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9996
SELECT ALL ( + - 45 ) DIV 4 + + CAST( + COUNT( * ) AS SIGNED ) + + 54 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-9996
SELECT ALL ( + - 45 ) / 4 + + CAST ( + COUNT ( * ) AS INTEGER ) + + 54 AS col1
----
44

query I rowsort
SELECT DISTINCT ( - 9 ) * 16 AS col1
----
-144

query I rowsort
SELECT + 36 + - 40 * 36 * + 54
----
-77724

onlyif mysql # aggregate syntax: 
query I rowsort label-9999
SELECT + 6 * - CASE 68 WHEN + 21 * COUNT( * ) THEN + COUNT( * ) + - NULLIF ( - 80, + - COUNT( 86 ) ) WHEN COALESCE ( + 7, - 13 + - 49 - - 41 ) / 59 * + 82 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9999
SELECT + 6 * - CASE 68 WHEN + 21 * COUNT ( * ) THEN + COUNT ( * ) + - NULLIF ( - 80, + - COUNT ( 86 ) ) WHEN COALESCE ( + 7, - 13 + - 49 - - 41 ) / 59 * + 82 THEN NULL ELSE NULL END
----
NULL

