sqllogictest
Artifact Content
Not logged in

Artifact 8068c73055adc7f46092d789e293080f57fe30cc:


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: SI