sqllogictest
Artifact Content
Not logged in

Artifact b2765175fe292f3d99d25bbe6a495ebd40182d1e:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 9 - + 29 + + 44
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1
SELECT - 50 * ( + ( + + 46 ) ) * + 23 + - + 35 + - 61 * + + MAX( DISTINCT - - 13 ) * + 75 + - 31 * + + 58 AS col1
----
-114208

skipif mysql # not compatible
query I rowsort label-1
SELECT - 50 * ( + ( + + 46 ) ) * + 23 + - + 35 + - 61 * + + MAX ( DISTINCT - - 13 ) * + 75 + - 31 * + + 58 AS col1
----
-114208

query I rowsort
SELECT ALL 96 * - 3 AS col2
----
-288

query I rowsort
SELECT 93 + 39
----
132

query I rowsort
SELECT DISTINCT + 84 * 60 * - 66
----
-332640

onlyif mysql # aggregate syntax: 
query I rowsort label-5
SELECT + ( - CASE + COUNT( * ) WHEN 18 THEN + - COALESCE ( SUM( + NULLIF ( + 34, 34 ) ), + 75 ) ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5
SELECT + ( - CASE + COUNT ( * ) WHEN 18 THEN + - COALESCE ( SUM ( + NULLIF ( + 34, 34 ) ), + 75 ) ELSE NULL END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6
SELECT - COALESCE ( - COALESCE ( - COUNT( * ), + SUM( 17 ) * - 51 + + - 52 ), + 84 )
----
-1

skipif mysql # not compatible
query I rowsort label-6
SELECT - COALESCE ( - COALESCE ( - COUNT ( * ), + SUM ( 17 ) * - 51 + + - 52 ), + 84 )
----
-1

query I rowsort
SELECT 3 * - 48 AS col0
----
-144

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8
SELECT DISTINCT 80 * - COALESCE ( + - 45, - - COUNT( * ) + + 62 + - MAX( - + 32 ) * + 63 + + 55 ), + 37 DIV - 46 * + - MAX( ALL - 32 ) * 83 AS col0
----
3600
0

skipif mysql # not compatible
query II rowsort label-8
SELECT DISTINCT 80 * - COALESCE ( + - 45, - - COUNT ( * ) + + 62 + - MAX ( - + 32 ) * + 63 + + 55 ), + 37 / - 46 * + - MAX ( ALL - 32 ) * 83 AS col0
----
3600
0

query I rowsort
SELECT + 91 + NULLIF ( + 93, + 38 ) + + 29 * + + 57
----
1837

onlyif mysql # aggregate syntax: 
query II rowsort label-10
SELECT - 65 + COUNT( * ) + + + 67 * - 52 + - NULLIF ( - - 1, - - 65 ) AS col1, - 68
----
-3549
-68

skipif mysql # not compatible
query II rowsort label-10
SELECT - 65 + COUNT ( * ) + + + 67 * - 52 + - NULLIF ( - - 1, - - 65 ) AS col1, - 68
----
-3549
-68

query I rowsort
SELECT - COALESCE ( - 82, 16 )
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-12
SELECT ALL + 20 + 85 * + + 71 + 10 + + + 11 * - 35 * 61 DIV COUNT( * ) + - 62 col1
----
-17482

skipif mysql # not compatible
query I rowsort label-12
SELECT ALL + 20 + 85 * + + 71 + 10 + + + 11 * - 35 * 61 / COUNT ( * ) + - 62 col1
----
-17482

query II rowsort
SELECT ALL 51 AS col2, + 63
----
51
63

query I rowsort
SELECT 68 + 27
----
95

query I rowsort
SELECT DISTINCT + 48 * 62 AS col0
----
2976

onlyif mysql # aggregate syntax: 
query I rowsort label-16
SELECT ALL - COUNT( DISTINCT + - ( + 11 ) ) + + 96
----
95

skipif mysql # not compatible
query I rowsort label-16
SELECT ALL - COUNT ( DISTINCT + - ( + 11 ) ) + + 96
----
95

query I rowsort
SELECT ALL - 21 + + 24 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-18
SELECT DISTINCT + COUNT( * ) * + + 7 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-18
SELECT DISTINCT + COUNT ( * ) * + + 7 AS col2
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-19
SELECT 94 DIV + COUNT( * ) + + 46 + - 41
----
99

skipif mysql # not compatible
query I rowsort label-19
SELECT 94 / + COUNT ( * ) + + 46 + - 41
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-20
SELECT ALL - 58 + + COUNT( * ) AS col0
----
-57

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

query I rowsort
SELECT DISTINCT + NULLIF ( + 30, 38 ) + + 9 * 55
----
525

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-22
SELECT ALL - COALESCE ( + 49, + 75, - MAX( CAST( + 3 AS SIGNED ) ) ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-22
SELECT ALL - COALESCE ( + 49, + 75, - MAX ( CAST ( + 3 AS INTEGER ) ) ) AS col1
----
-49

query I rowsort
SELECT DISTINCT ( - 0 ) * - 76 * - + 61 + 47 + 24 * + - 31 AS col2
----
-697

onlyif mysql # DIV for integer division: 
query I rowsort label-24
SELECT DISTINCT + 13 DIV 57
----
0

skipif mysql # not compatible
query I rowsort label-24
SELECT DISTINCT + 13 / 57
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-25
SELECT ALL CAST( 46 AS SIGNED ) * - 40
----
-1840

skipif mysql # not compatible
query I rowsort label-25
SELECT ALL CAST ( 46 AS INTEGER ) * - 40
----
-1840

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

skipif mysql # not compatible
query I rowsort label-26
SELECT 69 / + 44
----
1

query I rowsort
SELECT DISTINCT + 79 * - 5 col1
----
-395

onlyif mysql # aggregate syntax: 
query I rowsort label-28
SELECT + 6 * 57 - - - 86 + COUNT( + - 70 ) * + + 58 * 69 - + 51 * + 77 * - 19 * + 99
----
7390945

skipif mysql # not compatible
query I rowsort label-28
SELECT + 6 * 57 - - - 86 + COUNT ( + - 70 ) * + + 58 * 69 - + 51 * + 77 * - 19 * + 99
----
7390945

onlyif mysql # aggregate syntax: 
query I rowsort label-29
SELECT 38 * + 5 + COUNT( * ) AS col0
----
191

skipif mysql # not compatible
query I rowsort label-29
SELECT 38 * + 5 + COUNT ( * ) AS col0
----
191

query I rowsort
SELECT 18 * - 24 - 28
----
-460

onlyif mysql # aggregate syntax: 
query I rowsort label-31
SELECT ALL - COALESCE ( 26, 48 * - - 83 * 97 * - 72 - + 60 + MAX( 54 ) )
----
-26

skipif mysql # not compatible
query I rowsort label-31
SELECT ALL - COALESCE ( 26, 48 * - - 83 * 97 * - 72 - + 60 + MAX ( 54 ) )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-32
SELECT - NULLIF ( + + 66, 0 + + 79 + + 47 + - 38 * + + 25 + COUNT( * ) * 93 )
----
-66

skipif mysql # not compatible
query I rowsort label-32
SELECT - NULLIF ( + + 66, 0 + + 79 + + 47 + - 38 * + + 25 + COUNT ( * ) * 93 )
----
-66

query II rowsort
SELECT + 45 + - - 42 + + - 3, - ( + 70 ) AS col0
----
84
-70

query I rowsort
SELECT ALL - 79 + - + 87 AS col1
----
-166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-35
SELECT ALL 72 * - + 52 + - 45 AS col2, CASE + SUM( ALL - - CAST( NULL AS SIGNED ) ) WHEN CAST( NULL AS DECIMAL ) + 38 THEN - - 42 + - 28 WHEN - 62 * + 41 - - + 24 THEN + CAST( - - 36 AS SIGNED ) WHEN - 64 * 56 + - MAX( + 65 ) THEN - SUM( 80 ) / 24 * COUNT( * ) + + - 71 + + CASE - - COUNT( * ) WHEN + COALESCE ( 62, + + MIN( + 13 ) * + 98 ) * + 31 * 22 * + CASE COUNT( * ) WHEN + 75 - - 17 THEN 86 * - - 35 + + + 38 WHEN + + 20 * + 47 THEN - + 51 WHEN + - COUNT( * ) THEN NULL END THEN NULL WHEN CASE 62 WHEN - COUNT( * ) THEN 23 * 55 - + 66 WHEN + 88 THEN + 82 * - ( - CASE - 16 WHEN 47 THEN + ( ( - 18 ) ) END * - COUNT( * ) ) - - 15 END / 24 + - 23 THEN 96 END * - ( - COUNT( DISTINCT 24 ) * - 3 + COUNT( * ) * + 86 ) ELSE - 54 END col2
----
-3789
-54

skipif mysql # not compatible
query II rowsort label-35
SELECT ALL 72 * - + 52 + - 45 AS col2, CASE + SUM ( ALL - - CAST ( NULL AS INTEGER ) ) WHEN CAST ( NULL AS REAL ) + 38 THEN - - 42 + - 28 WHEN - 62 * + 41 - - + 24 THEN + CAST ( - - 36 AS INTEGER ) WHEN - 64 * 56 + - MAX ( + 65 ) THEN - SUM ( 80 ) / 24 * COUNT ( * ) + + - 71 + + CASE - - COUNT ( * ) WHEN + COALESCE ( 62, + + MIN ( + 13 ) * + 98 ) * + 31 * 22 * + CASE COUNT ( * ) WHEN + 75 - - 17 THEN 86 * - - 35 + + + 38 WHEN + + 20 * + 47 THEN - + 51 WHEN + - COUNT ( * ) THEN NULL END THEN NULL WHEN CASE 62 WHEN - COUNT ( * ) THEN 23 * 55 - + 66 WHEN + 88 THEN + 82 * - ( - CASE - 16 WHEN 47 THEN + ( ( - 18 ) ) END * - COUNT ( * ) ) - - 15 END / 24 + - 23 THEN 96 END * - ( - COUNT ( DISTINCT 24 ) * - 3 + COUNT ( * ) * + 86 ) ELSE - 54 END col2
----
-3789
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-36
SELECT + MAX( DISTINCT - + 82 ) - - 80 - + CAST( NULL AS SIGNED ), + 78 * - - 86 AS col1
----
NULL
6708

skipif mysql # not compatible
query II rowsort label-36
SELECT + MAX ( DISTINCT - + 82 ) - - 80 - + CAST ( NULL AS INTEGER ), + 78 * - - 86 AS col1
----
NULL
6708

query II rowsort
SELECT ALL 50, 64 AS col2
----
50
64

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-39
SELECT ALL 6 + + NULLIF ( ( COUNT( - 8 ) ), + 76 ) * + COUNT( * ) * 88
----
94

skipif mysql # not compatible
query I rowsort label-39
SELECT ALL 6 + + NULLIF ( ( COUNT ( - 8 ) ), + 76 ) * + COUNT ( * ) * 88
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-40
SELECT - COALESCE ( 1, + ( 94 ) + + + 30 + - 17 + - 7, - + 51 * 69 + + + 91 + + - NULLIF ( 41, + ( + + MAX( - 63 ) ) ), + + 92 )
----
-1

skipif mysql # not compatible
query I rowsort label-40
SELECT - COALESCE ( 1, + ( 94 ) + + + 30 + - 17 + - 7, - + 51 * 69 + + + 91 + + - NULLIF ( 41, + ( + + MAX ( - 63 ) ) ), + + 92 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-41
SELECT + MAX( ALL - 0 ) * - - 4 * - 35 * 74 col2
----
0

skipif mysql # not compatible
query I rowsort label-41
SELECT + MAX ( ALL - 0 ) * - - 4 * - 35 * 74 col2
----
0

query I rowsort
SELECT - 70 * + ( 25 )
----
-1750

query I rowsort
SELECT - 28 * + 20 AS col2
----
-560

onlyif mysql # aggregate syntax: 
query I rowsort label-44
SELECT ALL 52 + + 64 + - - MIN( ALL 85 )
----
201

skipif mysql # not compatible
query I rowsort label-44
SELECT ALL 52 + + 64 + - - MIN ( ALL 85 )
----
201

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-45
SELECT ALL + 26 + + 16 + - CASE - COUNT( * ) WHEN + + 62 THEN 82 * CAST( 41 AS SIGNED ) + MAX( 28 ) ELSE CAST( + COUNT( * ) AS SIGNED ) + - + 22 END + COUNT( * ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-45
SELECT ALL + 26 + + 16 + - CASE - COUNT ( * ) WHEN + + 62 THEN 82 * CAST ( 41 AS INTEGER ) + MAX ( 28 ) ELSE CAST ( + COUNT ( * ) AS INTEGER ) + - + 22 END + COUNT ( * ) AS col1
----
64

query I rowsort
SELECT + ( + 49 ) - 83 - - - 10
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-47
SELECT ALL 26, 82 * + - 73 * + COUNT( * ) AS col0
----
26
-5986

skipif mysql # not compatible
query II rowsort label-47
SELECT ALL 26, 82 * + - 73 * + COUNT ( * ) AS col0
----
26
-5986

query II rowsort
SELECT DISTINCT 78, 5 AS col0
----
78
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-49
SELECT - 69 + + ( - COUNT( * ) ) DIV + CAST( - ( + 28 ) AS SIGNED ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-49
SELECT - 69 + + ( - COUNT ( * ) ) / + CAST ( - ( + 28 ) AS INTEGER ) AS col2
----
-69

query I rowsort
SELECT ALL + ( 44 ) * + + 35 * - - 69 * 25 col2
----
2656500

query II rowsort
SELECT 8 AS col1, + ( + 45 )
----
8
45

onlyif mysql # aggregate syntax: 
query I rowsort label-52
SELECT ALL MAX( + - 53 ) * - COUNT( * ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-52
SELECT ALL MAX ( + - 53 ) * - COUNT ( * ) AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-53
SELECT 91 * + COUNT( * ) - + MAX( ALL - + 65 )
----
156

skipif mysql # not compatible
query I rowsort label-53
SELECT 91 * + COUNT ( * ) - + MAX ( ALL - + 65 )
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-54
SELECT + 50 + ( - CASE - - 91 WHEN - 2 * - COUNT( * ) + + 58 * + 79 THEN NULL ELSE - 93 END ) * - 33
----
-3019

skipif mysql # not compatible
query I rowsort label-54
SELECT + 50 + ( - CASE - - 91 WHEN - 2 * - COUNT ( * ) + + 58 * + 79 THEN NULL ELSE - 93 END ) * - 33
----
-3019

query I rowsort
SELECT + 66 * + + 29 + - 98 AS col0
----
1816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-56
SELECT - - 90 * - + SUM( DISTINCT + ( + - 48 ) ) * + 26 + - CAST( - - 64 AS SIGNED ) * + + 79 + - CASE + 32 WHEN 76 THEN 47 END * + COUNT( * ) + AVG ( DISTINCT 38 ) / - 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-56
SELECT - - 90 * - + SUM ( DISTINCT + ( + - 48 ) ) * + 26 + - CAST ( - - 64 AS INTEGER ) * + + 79 + - CASE + 32 WHEN 76 THEN 47 END * + COUNT ( * ) + AVG ( DISTINCT 38 ) / - 38 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-57
SELECT MIN( + 27 ) * + + COUNT( * ) / + CAST( NULL AS DECIMAL ) * 11 + + ( + 54 ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-57
SELECT MIN ( + 27 ) * + + COUNT ( * ) / + CAST ( NULL AS REAL ) * 11 + + ( + 54 ) + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-58
SELECT ( + - MIN( + CASE 51 WHEN + 87 THEN NULL WHEN + + 78 - + - ( - 15 ) + - - 91 + + - 79 / 48 THEN 86 * 39 - - 1 - + 81 END ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-58
SELECT ( + - MIN ( + CASE 51 WHEN + 87 THEN NULL WHEN + + 78 - + - ( - 15 ) + - - 91 + + - 79 / 48 THEN 86 * 39 - - 1 - + 81 END ) ) AS col2
----
NULL

query II rowsort
SELECT ALL + + 10 AS col0, 70 AS col1
----
10
70

query I rowsort
SELECT - 84 + - + 19
----
-103

query II rowsort
SELECT DISTINCT + 14 AS col0, 87 + + 27
----
14
114

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

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

query II rowsort
SELECT ALL + + 76, 54 AS col2
----
76
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-64
SELECT - + 68 * + - 23 * - 48 DIV COALESCE ( - MAX( ALL - CASE - - ( + ( 36 ) ) WHEN - 3 THEN 34 WHEN - 54 + 19 THEN 83 END ), - COUNT( * ) ) * - 25 AS col0
----
-1876800

skipif mysql # not compatible
query I rowsort label-64
SELECT - + 68 * + - 23 * - 48 / COALESCE ( - MAX ( ALL - CASE - - ( + ( 36 ) ) WHEN - 3 THEN 34 WHEN - 54 + 19 THEN 83 END ), - COUNT ( * ) ) * - 25 AS col0
----
-1876800

query II rowsort
SELECT + - 88 + NULLIF ( + - 56, 26 ) AS col1, - 49 AS col2
----
-144
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-66
SELECT - 43, 23 + - CASE 36 WHEN COUNT( * ) - + + 27 / CAST( NULL AS SIGNED ) THEN - 43 * - - 21 * - 31 + 86 + - + 97 + + - 65 WHEN + - 83 + COUNT( DISTINCT - 81 ) + - 69 + + 98 THEN - - 68 ELSE + ( - 34 ) END AS col0
----
-43
57

skipif mysql # not compatible
query II rowsort label-66
SELECT - 43, 23 + - CASE 36 WHEN COUNT ( * ) - + + 27 / CAST ( NULL AS INTEGER ) THEN - 43 * - - 21 * - 31 + 86 + - + 97 + + - 65 WHEN + - 83 + COUNT ( DISTINCT - 81 ) + - 69 + + 98 THEN - - 68 ELSE + ( - 34 ) END AS col0
----
-43
57

query II rowsort
SELECT + 93 AS col2, + 13 AS col1
----
93
13

onlyif mysql # DIV for integer division: 
query II rowsort label-68
SELECT DISTINCT 15 * - 92 * - - 17 + + - 8 AS col2, - 53 DIV - - 95
----
-23468
0

skipif mysql # not compatible
query II rowsort label-68
SELECT DISTINCT 15 * - 92 * - - 17 + + - 8 AS col2, - 53 / - - 95
----
-23468
0

query I rowsort
SELECT DISTINCT 19 * 27 + + + 46 + - 81 * - 57 - 11
----
5165

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-70
SELECT DISTINCT CAST( 60 AS SIGNED ), + 97 AS col1
----
60
97

skipif mysql # not compatible
query II rowsort label-70
SELECT DISTINCT CAST ( 60 AS INTEGER ), + 97 AS col1
----
60
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-71
SELECT DISTINCT MIN( ALL + 27 ) + + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-71
SELECT DISTINCT MIN ( ALL + 27 ) + + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-72
SELECT ALL 47 + + COALESCE ( + - 40, + 45 * ( - 61 ), + ( + 27 ) DIV + + COUNT( * ) - 89 ) + + ( COUNT( * ) ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-72
SELECT ALL 47 + + COALESCE ( + - 40, + 45 * ( - 61 ), + ( + 27 ) / + + COUNT ( * ) - 89 ) + + ( COUNT ( * ) ) AS col1
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-73
SELECT - 64 + + - COUNT( * ) + - 97 / + 88 + - + ( CASE + + 52 WHEN + ( + 94 ) THEN - COUNT( * ) ELSE NULL END ) / CASE + 55 WHEN - 96 THEN 32 * - 17 END AS col0, - 84 * + + COUNT( * )
----
NULL
-84

skipif mysql # not compatible
query II rowsort label-73
SELECT - 64 + + - COUNT ( * ) + - 97 / + 88 + - + ( CASE + + 52 WHEN + ( + 94 ) THEN - COUNT ( * ) ELSE NULL END ) / CASE + 55 WHEN - 96 THEN 32 * - 17 END AS col0, - 84 * + + COUNT ( * )
----
NULL
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-74
SELECT DISTINCT MIN( - 90 ) - 22
----
-112

skipif mysql # not compatible
query I rowsort label-74
SELECT DISTINCT MIN ( - 90 ) - 22
----
-112

query I rowsort
SELECT ALL 11 * 46 AS col1
----
506

query I rowsort
SELECT DISTINCT 16 - - - 66 * 30 AS col1
----
-1964

query I rowsort
SELECT + 86 + - 76
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-78
SELECT + 39 DIV - 55, 88 + - COUNT( * ) AS col0
----
0
87

skipif mysql # not compatible
query II rowsort label-78
SELECT + 39 / - 55, 88 + - COUNT ( * ) AS col0
----
0
87

onlyif mysql # aggregate syntax: 
query I rowsort label-79
SELECT - COUNT( * ) * - 33 * - - 65 * 53 AS col2
----
113685

skipif mysql # not compatible
query I rowsort label-79
SELECT - COUNT ( * ) * - 33 * - - 65 * 53 AS col2
----
113685

onlyif mysql # aggregate syntax: 
query I rowsort label-80
SELECT - NULLIF ( COUNT( * ), - 97 * + COUNT( * ) * 10 ) + + ( + 25 ) * - 37 * - + 3
----
2774

skipif mysql # not compatible
query I rowsort label-80
SELECT - NULLIF ( COUNT ( * ), - 97 * + COUNT ( * ) * 10 ) + + ( + 25 ) * - 37 * - + 3
----
2774

query I rowsort
SELECT - ( + COALESCE ( - 29, 99 ) ) AS col2
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-82
SELECT - 30 DIV + 69 + - 45 + + 41 * 23
----
898

skipif mysql # not compatible
query I rowsort label-82
SELECT - 30 / + 69 + - 45 + + 41 * 23
----
898

query II rowsort
SELECT + 46 * + 78 AS col1, - 54
----
3588
-54

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

skipif mysql # not compatible
query I rowsort label-84
SELECT ALL - COUNT ( * ) * 76 * + + 37 AS col2
----
-2812

query I rowsort
SELECT + + COALESCE ( 59, + 99 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-86
SELECT DISTINCT 42 * + 56 + + SUM( ALL + - 90 ) AS col1
----
2262

skipif mysql # not compatible
query I rowsort label-86
SELECT DISTINCT 42 * + 56 + + SUM ( ALL + - 90 ) AS col1
----
2262

query I rowsort
SELECT - - ( - 99 ) * - 75
----
7425

onlyif mysql # DIV for integer division: 
query I rowsort label-88
SELECT ALL + 70 DIV + 23 + - 40
----
-37

skipif mysql # not compatible
query I rowsort label-88
SELECT ALL + 70 / + 23 + - 40
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-89
SELECT DISTINCT + COUNT( * ) DIV + 42 * 16 + + + 78 * - 31 col2
----
-2418

skipif mysql # not compatible
query I rowsort label-89
SELECT DISTINCT + COUNT ( * ) / + 42 * 16 + + + 78 * - 31 col2
----
-2418

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-90
SELECT - CAST( NULL AS SIGNED ) * 48
----
NULL

skipif mysql # not compatible
query I rowsort label-90
SELECT - CAST ( NULL AS INTEGER ) * 48
----
NULL

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

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

query I rowsort
SELECT 26 - ( + 39 ) col1
----
-13

query I rowsort
SELECT ALL - - 67 + + 27
----
94

query I rowsort
SELECT - NULLIF ( + - 88, - 33 ) col0
----
88

query I rowsort
SELECT DISTINCT - + 17 + 55 col2
----
38

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-96
SELECT 61 + + - 86 + CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) * + - 7 + - 57 AS col2, 91
----
NULL
91

skipif mysql # not compatible
query II rowsort label-96
SELECT 61 + + - 86 + CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) * + - 7 + - 57 AS col2, 91
----
NULL
91

query I rowsort
SELECT 97 * - + 73
----
-7081

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-98
SELECT 9, - 25 + + + 8 * + - 9 + - + COUNT( * ) + - 81 + 11 DIV 70 AS col2
----
9
-179

skipif mysql # not compatible
query II rowsort label-98
SELECT 9, - 25 + + + 8 * + - 9 + - + COUNT ( * ) + - 81 + 11 / 70 AS col2
----
9
-179

query I rowsort
SELECT 7 * + + 18 + - 55 AS col0
----
71

query I rowsort
SELECT 6 - + 77 + + 49 col1
----
-22

query I rowsort
SELECT 13 + 80
----
93

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

skipif mysql # not compatible
query I rowsort label-102
SELECT ALL + 71 - - COUNT ( * ) AS col1
----
72

query II rowsort
SELECT - 58 AS col1, + ( 91 )
----
-58
91

query II rowsort
SELECT 60 AS col2, - 15 AS col1
----
60
-15

query II rowsort
SELECT - 11, - 2 * + + 3 AS col2
----
-11
-6

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

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

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

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

query I rowsort
SELECT 22 * - + 30
----
-660

onlyif mysql # aggregate syntax: 
query II rowsort label-109
SELECT ALL 26 AS col0, MAX( 71 ) + + 79 + + 35
----
26
185

skipif mysql # not compatible
query II rowsort label-109
SELECT ALL 26 AS col0, MAX ( 71 ) + + 79 + + 35
----
26
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-110
SELECT 96 + + + CAST( + 2 AS SIGNED ) + - 62
----
36

skipif mysql # not compatible
query I rowsort label-110
SELECT 96 + + + CAST ( + 2 AS INTEGER ) + - 62
----
36

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-111
SELECT - 82, CAST( NULL AS DECIMAL ) * 90 AS col0
----
-82
NULL

skipif mysql # not compatible
query II rowsort label-111
SELECT - 82, CAST ( NULL AS REAL ) * 90 AS col0
----
-82
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-112
SELECT 47 * - MAX( ( 94 ) ) * + 56 * - COUNT( * ) * - COUNT( * ) + + 5 DIV - + 79
----
-247408

skipif mysql # not compatible
query I rowsort label-112
SELECT 47 * - MAX ( ( 94 ) ) * + 56 * - COUNT ( * ) * - COUNT ( * ) + + 5 / - + 79
----
-247408

onlyif mysql # aggregate syntax: 
query I rowsort label-113
SELECT DISTINCT MIN( ALL - 83 ) * + 60
----
-4980

skipif mysql # not compatible
query I rowsort label-113
SELECT DISTINCT MIN ( ALL - 83 ) * + 60
----
-4980

query I rowsort
SELECT ALL + 68 + - 16 * 30 AS col2
----
-412

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

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

query II rowsort
SELECT ALL 87 AS col0, 58 * + + 1 + + - 48
----
87
10

onlyif mysql # DIV for integer division: 
query I rowsort label-117
SELECT - 95 DIV + + 8 + - - 47 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-117
SELECT - 95 / + + 8 + - - 47 AS col1
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-118
SELECT + + CAST( NULL AS SIGNED ) * + - ( 3 ) * + CASE - 76 WHEN - - 37 THEN - + 14 ELSE NULL END - + - ( - + 26 )
----
NULL

skipif mysql # not compatible
query I rowsort label-118
SELECT + + CAST ( NULL AS INTEGER ) * + - ( 3 ) * + CASE - 76 WHEN - - 37 THEN - + 14 ELSE NULL END - + - ( - + 26 )
----
NULL

query II rowsort
SELECT + 48 AS col0, - 98 AS col2
----
48
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-120
SELECT 72 + 14 + - - 15 + - SUM( - - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-120
SELECT 72 + 14 + - - 15 + - SUM ( - - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT - 19 * + - 21 + + 73 + 37 AS col0
----
509

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-122
SELECT + 41 * + CAST( - - 18 AS SIGNED ) - ( - ( - 30 ) ) + - + 37 * + 30 col2
----
-402

skipif mysql # not compatible
query I rowsort label-122
SELECT + 41 * + CAST ( - - 18 AS INTEGER ) - ( - ( - 30 ) ) + - + 37 * + 30 col2
----
-402

query I rowsort
SELECT DISTINCT 20 + + + 20
----
40

query I rowsort
SELECT + 82 + - 0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-125
SELECT ALL - 0 * COUNT( ALL - 74 )
----
0

skipif mysql # not compatible
query I rowsort label-125
SELECT ALL - 0 * COUNT ( ALL - 74 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-126
SELECT DISTINCT COUNT( ALL + 67 ) * - COUNT( * ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-126
SELECT DISTINCT COUNT ( ALL + 67 ) * - COUNT ( * ) col1
----
-1

query I rowsort
SELECT ALL - 3 * - 2 * + 18 AS col2
----
108

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

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

query I rowsort
SELECT 16 + 74 + + 64
----
154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-130
SELECT DISTINCT - SUM( ALL - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-130
SELECT DISTINCT - SUM ( ALL - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-131
SELECT DISTINCT + 58 DIV + 2
----
29

skipif mysql # not compatible
query I rowsort label-131
SELECT DISTINCT + 58 / + 2
----
29

query I rowsort
SELECT 22 * - 51
----
-1122

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

skipif mysql # not compatible
query II rowsort label-133
SELECT ( COUNT ( * ) ) + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col0, 40 AS col2
----
NULL
40

query I rowsort
SELECT 31 * 49 AS col2
----
1519

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-135
SELECT 2 + 88 * COUNT( ( + 91 ) ) AS col0, + ( - 10 ) DIV - 49 * COALESCE ( - 4, + 53 * - 58 + + 88 * COUNT( + + 91 ) ) + + ( - 36 ) * + + 79 + - - 15 col2
----
90
-2829

skipif mysql # not compatible
query II rowsort label-135
SELECT 2 + 88 * COUNT ( ( + 91 ) ) AS col0, + ( - 10 ) / - 49 * COALESCE ( - 4, + 53 * - 58 + + 88 * COUNT ( + + 91 ) ) + + ( - 36 ) * + + 79 + - - 15 col2
----
90
-2829

onlyif mysql # aggregate syntax: 
query I rowsort label-136
SELECT 21 * NULLIF ( + COUNT( * ), + 25 )
----
21

skipif mysql # not compatible
query I rowsort label-136
SELECT 21 * NULLIF ( + COUNT ( * ), + 25 )
----
21

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

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

query II rowsort
SELECT 27 + 57, - 3 AS col0
----
84
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-139
SELECT COUNT( * ) + 47 DIV 76 + - 75, 1 * - 7 AS col1
----
-74
-7

skipif mysql # not compatible
query II rowsort label-139
SELECT COUNT ( * ) + 47 / 76 + - 75, 1 * - 7 AS col1
----
-74
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-140
SELECT COALESCE ( + - 53, - + 98 * CASE + 33 WHEN - 94 + - ( + + 42 ) - + - 38 + + 43 + - - ( + - 83 ) * - 15 * ( - 75 ) * - ( + MAX( + + 86 ) ) * - - 15 * - - 28 + - 89 * + + 65 - + + 90 THEN 1 ELSE CAST( NULL AS SIGNED ) - + 45 END ) + - 21
----
-74

skipif mysql # not compatible
query I rowsort label-140
SELECT COALESCE ( + - 53, - + 98 * CASE + 33 WHEN - 94 + - ( + + 42 ) - + - 38 + + 43 + - - ( + - 83 ) * - 15 * ( - 75 ) * - ( + MAX ( + + 86 ) ) * - - 15 * - - 28 + - 89 * + + 65 - + + 90 THEN 1 ELSE CAST ( NULL AS INTEGER ) - + 45 END ) + - 21
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-141
SELECT + MIN( ALL 54 ) + + 90 AS col2
----
144

skipif mysql # not compatible
query I rowsort label-141
SELECT + MIN ( ALL 54 ) + + 90 AS col2
----
144

query I rowsort
SELECT ALL + 45 + - 2 * + 84 AS col0
----
-123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-143
SELECT ALL MIN( + CAST( + 53 AS SIGNED ) ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-143
SELECT ALL MIN ( + CAST ( + 53 AS INTEGER ) ) AS col1
----
53

query I rowsort
SELECT + NULLIF ( 62, 33 )
----
62

query I rowsort
SELECT + - 1 + + - 85
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-146
SELECT ALL + - 59 DIV - 55 AS col1, - COUNT( * ) * + 54
----
1
-54

skipif mysql # not compatible
query II rowsort label-146
SELECT ALL + - 59 / - 55 AS col1, - COUNT ( * ) * + 54
----
1
-54

query I rowsort
SELECT DISTINCT + 33 * + - 42 - + 22 AS col0
----
-1408

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-148
SELECT ALL + 51 * - COALESCE ( + - ( - COUNT( * ) ), - 90 * - 67 ) DIV + ( - 94 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-148
SELECT ALL + 51 * - COALESCE ( + - ( - COUNT ( * ) ), - 90 * - 67 ) / + ( - 94 ) AS col1
----
0

query I rowsort
SELECT ALL + 90 * - 59 - + 34 + - 76 + + 98 col2
----
-5322

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-150
SELECT + CAST( 0 AS SIGNED ) * + COALESCE ( + 91, + 81 - 89, + 50 ) * 30
----
0

skipif mysql # not compatible
query I rowsort label-150
SELECT + CAST ( 0 AS INTEGER ) * + COALESCE ( + 91, + 81 - 89, + 50 ) * 30
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-151
SELECT 54 * + + ( - 66 ) DIV 71 DIV 62 * 30 + + MIN( + + ( 30 ) ) - - - NULLIF ( - 66, - ( MAX( ALL - 90 ) ) DIV + 97 * MIN( 89 ) * + CAST( - ( - 47 ) AS SIGNED ) + + 41 ) + + - 98 * + COUNT( * ) + + + COUNT( * ) + + - 48 AS col0, 14 AS col0
----
-49
14

skipif mysql # not compatible
query II rowsort label-151
SELECT 54 * + + ( - 66 ) / 71 / 62 * 30 + + MIN ( + + ( 30 ) ) - - - NULLIF ( - 66, - ( MAX ( ALL - 90 ) ) / + 97 * MIN ( 89 ) * + CAST ( - ( - 47 ) AS INTEGER ) + + 41 ) + + - 98 * + COUNT ( * ) + + + COUNT ( * ) + + - 48 AS col0, 14 AS col0
----
-49
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-152
SELECT + + 74 DIV - CAST( + ( + + MIN( + 96 ) ) AS SIGNED ), 46 AS col0
----
0
46

skipif mysql # not compatible
query II rowsort label-152
SELECT + + 74 / - CAST ( + ( + + MIN ( + 96 ) ) AS INTEGER ), 46 AS col0
----
0
46

query II rowsort
SELECT + - 63 * - 36, 43 - + 61 AS col2
----
2268
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-154
SELECT - COALESCE ( + MAX( ALL CASE - + 14 WHEN 91 THEN - - 33 END ), - MIN( 73 ) / + 18 + - 38 + - CASE - ( + 29 ) WHEN - + 88 * - 26 * - 90 * 91 * - - COALESCE ( + 47, - 43 / - + 99 + + 43 + + 5 ) - + 59 + + - 84 * - MIN( ALL - 70 ) + MAX( ALL - 60 ) THEN + 99 - COUNT( * ) WHEN 51 THEN - - 25 * 1 + CASE + - 33 WHEN + ( - 51 ) * - 33 + 64 THEN - + 36 END END - 21 * - 41 * + 42 ), 27 AS col0
----
NULL
27

skipif mysql # not compatible
query II rowsort label-154
SELECT - COALESCE ( + MAX ( ALL CASE - + 14 WHEN 91 THEN - - 33 END ), - MIN ( 73 ) / + 18 + - 38 + - CASE - ( + 29 ) WHEN - + 88 * - 26 * - 90 * 91 * - - COALESCE ( + 47, - 43 / - + 99 + + 43 + + 5 ) - + 59 + + - 84 * - MIN ( ALL - 70 ) + MAX ( ALL - 60 ) THEN + 99 - COUNT ( * ) WHEN 51 THEN - - 25 * 1 + CASE + - 33 WHEN + ( - 51 ) * - 33 + 64 THEN - + 36 END END - 21 * - 41 * + 42 ), 27 AS col0
----
NULL
27

onlyif mysql # aggregate syntax: 
query I rowsort label-155
SELECT + COUNT( * ) * + AVG ( + + 40 ) * CASE + 94 WHEN ( 73 ) / - COUNT( ALL - 36 ) THEN - 71 ELSE NULL END + 26 + - - COUNT( + + 84 ) * COALESCE ( + 42, - 58 / + - COUNT( * ) ) * 81 * + 24 * - 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-155
SELECT + COUNT ( * ) * + AVG ( + + 40 ) * CASE + 94 WHEN ( 73 ) / - COUNT ( ALL - 36 ) THEN - 71 ELSE NULL END + 26 + - - COUNT ( + + 84 ) * COALESCE ( + 42, - 58 / + - COUNT ( * ) ) * 81 * + 24 * - 97 AS col0
----
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-158
SELECT + 94 - - 66 + + 91 DIV - + 46
----
159

skipif mysql # not compatible
query I rowsort label-158
SELECT + 94 - - 66 + + 91 / - + 46
----
159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-159
SELECT + CASE COUNT( * ) WHEN 65 THEN 21 WHEN + + ( - + 16 ) - + ( 29 ) THEN - COUNT( * ) ELSE - + COALESCE ( 86, - - 84 ) * - CAST( NULL AS SIGNED ) + + NULLIF ( + + ( - + 42 ), + - 2 ) + + 22 * + - 70 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-159
SELECT + CASE COUNT ( * ) WHEN 65 THEN 21 WHEN + + ( - + 16 ) - + ( 29 ) THEN - COUNT ( * ) ELSE - + COALESCE ( 86, - - 84 ) * - CAST ( NULL AS INTEGER ) + + NULLIF ( + + ( - + 42 ), + - 2 ) + + 22 * + - 70 END col1
----
NULL

query I rowsort
SELECT + 87 * 73 AS col1
----
6351

query I rowsort
SELECT + NULLIF ( + 86, + - ( + + 52 ) )
----
86

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

onlyif mysql # aggregate syntax: 
query I rowsort label-163
SELECT ALL COUNT( * ) * - + 60 * + 44
----
-2640

skipif mysql # not compatible
query I rowsort label-163
SELECT ALL COUNT ( * ) * - + 60 * + 44
----
-2640

onlyif mysql # aggregate syntax: 
query I rowsort label-164
SELECT + ( COALESCE ( - COUNT( * ), + ( MAX( 33 ) ), - 76, - 88 + + + 4 ) ) + + 23 + - + 75 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-164
SELECT + ( COALESCE ( - COUNT ( * ), + ( MAX ( 33 ) ), - 76, - 88 + + + 4 ) ) + + 23 + - + 75 AS col0
----
-53

query I rowsort
SELECT + 51 * + NULLIF ( + - 13, + - 91 ) AS col2
----
-663

onlyif mysql # aggregate syntax: 
query II rowsort label-166
SELECT 82 * COUNT( * ) + + 31 + + CASE + 23 WHEN 24 THEN - - SUM( + - 90 ) WHEN - - 61 + - 23 THEN NULL ELSE 20 + - 93 + + COUNT( * ) * - 36 * - - 66 END AS col2, 74 AS col0
----
-2336
74

skipif mysql # not compatible
query II rowsort label-166
SELECT 82 * COUNT ( * ) + + 31 + + CASE + 23 WHEN 24 THEN - - SUM ( + - 90 ) WHEN - - 61 + - 23 THEN NULL ELSE 20 + - 93 + + COUNT ( * ) * - 36 * - - 66 END AS col2, 74 AS col0
----
-2336
74

onlyif mysql # aggregate syntax: 
query I rowsort label-167
SELECT - NULLIF ( + COUNT( * ), + 16 * + - 49 - + - ( + 73 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-167
SELECT - NULLIF ( + COUNT ( * ), + 16 * + - 49 - + - ( + 73 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-168
SELECT - 33 + 25 - 15 + COUNT( * ) * - SUM( ALL + + ( + 35 ) ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-168
SELECT - 33 + 25 - 15 + COUNT ( * ) * - SUM ( ALL + + ( + 35 ) ) AS col1
----
-58

query I rowsort
SELECT - ( + 96 ) col1
----
-96

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-171
SELECT ALL - CAST( 53 AS SIGNED ) + - 23 AS col1, 36 AS col1
----
-76
36

skipif mysql # not compatible
query II rowsort label-171
SELECT ALL - CAST ( 53 AS INTEGER ) + - 23 AS col1, 36 AS col1
----
-76
36

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT - COUNT( + 94 ) + - + COUNT( * ) + + 26
----
24

skipif mysql # not compatible
query I rowsort label-172
SELECT - COUNT ( + 94 ) + - + COUNT ( * ) + + 26
----
24

query I rowsort
SELECT ALL + 10 * 75
----
750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-174
SELECT ALL CAST( 5 AS SIGNED ) + - 68
----
-63

skipif mysql # not compatible
query I rowsort label-174
SELECT ALL CAST ( 5 AS INTEGER ) + - 68
----
-63

query I rowsort
SELECT DISTINCT + 92 * 69
----
6348

onlyif mysql # DIV for integer division: 
query I rowsort label-176
SELECT + 38 DIV + 87 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-176
SELECT + 38 / + 87 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-177
SELECT - 44 DIV CAST( 28 DIV COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-177
SELECT - 44 / CAST ( 28 / COUNT ( * ) AS INTEGER )
----
-1

query I rowsort
SELECT DISTINCT - 92 * 36 col1
----
-3312

onlyif mysql # aggregate syntax: 
query I rowsort label-179
SELECT - COUNT( * ) - + 15 col2
----
-16

skipif mysql # not compatible
query I rowsort label-179
SELECT - COUNT ( * ) - + 15 col2
----
-16

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

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

query I rowsort
SELECT ALL ( NULLIF ( 31, + 91 ) )
----
31

query I rowsort
SELECT - 8 - 19
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-183
SELECT ALL + 47 * MIN( DISTINCT + 60 ) AS col2
----
2820

skipif mysql # not compatible
query I rowsort label-183
SELECT ALL + 47 * MIN ( DISTINCT + 60 ) AS col2
----
2820

query I rowsort
SELECT DISTINCT + 29 * - 22
----
-638

onlyif mysql # aggregate syntax: 
query I rowsort label-185
SELECT ALL NULLIF ( 93, + 77 + - MIN( + 57 ) * + COUNT( * ) )
----
93

skipif mysql # not compatible
query I rowsort label-185
SELECT ALL NULLIF ( 93, + 77 + - MIN ( + 57 ) * + COUNT ( * ) )
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-186
SELECT + COUNT( ALL + 14 ) DIV - 32 + 97
----
97

skipif mysql # not compatible
query I rowsort label-186
SELECT + COUNT ( ALL + 14 ) / - 32 + 97
----
97

query I rowsort
SELECT + 83 * 78 - 74 AS col2
----
6400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-188
SELECT 76 DIV + COUNT( * ) - 55 * ( - 43 )
----
2441

skipif mysql # not compatible
query I rowsort label-188
SELECT 76 / + COUNT ( * ) - 55 * ( - 43 )
----
2441

query I rowsort
SELECT + 24 * 24
----
576

query I rowsort
SELECT ALL + 85 * 27 AS col1
----
2295

query I rowsort
SELECT - 70 + CASE + 97 WHEN - 83 THEN + 74 WHEN + 13 THEN NULL ELSE - 3 END col0
----
-73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-193
SELECT ALL + CASE + 33 WHEN + NULLIF ( 11, 73 * COUNT( * ) ) - + 39 THEN - 83 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-193
SELECT ALL + CASE + 33 WHEN + NULLIF ( 11, 73 * COUNT ( * ) ) - + 39 THEN - 83 END AS col2
----
NULL

query I rowsort
SELECT 86 * 94 + 88 AS col1
----
8172

onlyif mysql # DIV for integer division: 
query I rowsort label-195
SELECT - 52 DIV 83
----
0

skipif mysql # not compatible
query I rowsort label-195
SELECT - 52 / 83
----
0

query I rowsort
SELECT ( + COALESCE ( - ( 57 ), 97 * 42 ) )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-197
SELECT - 88 * 27 + + COUNT( * )
----
-2375

skipif mysql # not compatible
query I rowsort label-197
SELECT - 88 * 27 + + COUNT ( * )
----
-2375

onlyif mysql # aggregate syntax: 
query I rowsort label-198
SELECT DISTINCT + 37 * ( 24 * - 98 ) + MAX( 12 ) col2
----
-87012

skipif mysql # not compatible
query I rowsort label-198
SELECT DISTINCT + 37 * ( 24 * - 98 ) + MAX ( 12 ) col2
----
-87012

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-200
SELECT CASE - 78 WHEN - CASE - 43 WHEN + 94 THEN - 90 WHEN 51 + + 74 THEN - 43 + - COUNT( * ) WHEN + 66 THEN NULL ELSE + COUNT( * ) END THEN + 10 + 0 WHEN + 79 + COALESCE ( + CAST( + ( ( 1 ) ) AS SIGNED ), 46 ) THEN + COUNT( ALL 60 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-200
SELECT CASE - 78 WHEN - CASE - 43 WHEN + 94 THEN - 90 WHEN 51 + + 74 THEN - 43 + - COUNT ( * ) WHEN + 66 THEN NULL ELSE + COUNT ( * ) END THEN + 10 + 0 WHEN + 79 + COALESCE ( + CAST ( + ( ( 1 ) ) AS INTEGER ), 46 ) THEN + COUNT ( ALL 60 ) END AS col0
----
NULL

query I rowsort
SELECT ALL + 21 * - 62 + ( 6 + - 85 ) * 74 AS col2
----
-7148

query I rowsort
SELECT DISTINCT - 60 * + 12 + 16
----
-704

onlyif mysql # aggregate syntax: 
query I rowsort label-203
SELECT DISTINCT 24 * COUNT( * ) + + 79
----
103

skipif mysql # not compatible
query I rowsort label-203
SELECT DISTINCT 24 * COUNT ( * ) + + 79
----
103

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-205
SELECT ALL - 43 * + 33 + COALESCE ( + 46, 82 ) * COUNT( * )
----
-1373

skipif mysql # not compatible
query I rowsort label-205
SELECT ALL - 43 * + 33 + COALESCE ( + 46, 82 ) * COUNT ( * )
----
-1373

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-207
SELECT 51 * - COUNT( * ) - + 37
----
-88

skipif mysql # not compatible
query I rowsort label-207
SELECT 51 * - COUNT ( * ) - + 37
----
-88

query I rowsort
SELECT - 41 + 30
----
-11

query I rowsort
SELECT - + 50 * 32
----
-1600

query I rowsort
SELECT ALL 24 - - 65
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-211
SELECT COUNT( * ) + - CAST( 93 AS SIGNED )
----
-92

skipif mysql # not compatible
query I rowsort label-211
SELECT COUNT ( * ) + - CAST ( 93 AS INTEGER )
----
-92

query I rowsort
SELECT - 12 * - 75 AS col2
----
900

query I rowsort
SELECT 47 + 77
----
124

query I rowsort
SELECT + ( - 20 ) + 21
----
1

query I rowsort
SELECT DISTINCT 9 - 56 AS col2
----
-47

query I rowsort
SELECT 39 * 88
----
3432

query I rowsort
SELECT 70 + 87
----
157

onlyif mysql # DIV for integer division: 
query I rowsort label-218
SELECT DISTINCT - - 91 DIV + 78
----
1

skipif mysql # not compatible
query I rowsort label-218
SELECT DISTINCT - - 91 / + 78
----
1

query I rowsort
SELECT 16 + 91 AS col0
----
107

query I rowsort
SELECT 19 * 59 AS col2
----
1121

onlyif mysql # aggregate syntax: 
query I rowsort label-221
SELECT ALL - - 16 * COUNT( * ) col1
----
16

skipif mysql # not compatible
query I rowsort label-221
SELECT ALL - - 16 * COUNT ( * ) col1
----
16

query I rowsort
SELECT DISTINCT - + CASE 38 WHEN + 43 / 25 THEN 94 END
----
NULL

query I rowsort
SELECT DISTINCT + + 87 * - 38
----
-3306

query I rowsort
SELECT ALL + 81 + 42
----
123

query I rowsort
SELECT 5 * - 24 * 13 AS col2
----
-1560

onlyif mysql # aggregate syntax: 
query I rowsort label-226
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-226
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-227
SELECT ALL + CAST( 32 AS SIGNED ) + 45 DIV 44 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-227
SELECT ALL + CAST ( 32 AS INTEGER ) + 45 / 44 AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-228
SELECT ALL - MAX( ALL - - 92 ) + + 7
----
-85

skipif mysql # not compatible
query I rowsort label-228
SELECT ALL - MAX ( ALL - - 92 ) + + 7
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-229
SELECT 31 - + + 8 + 5 * SUM( 77 ) DIV 34
----
34

skipif mysql # not compatible
query I rowsort label-229
SELECT 31 - + + 8 + 5 * SUM ( 77 ) / 34
----
34

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

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

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-231
SELECT 37 DIV + - CASE 59 WHEN 42 THEN NULL WHEN + CAST( NULL AS DECIMAL ) * + 13 THEN NULL ELSE 94 END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-231
SELECT 37 / + - CASE 59 WHEN 42 THEN NULL WHEN + CAST ( NULL AS REAL ) * + 13 THEN NULL ELSE 94 END AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-232
SELECT DISTINCT - CAST( + - COALESCE ( - 64, 86, - 66, + COUNT( * ) ) AS SIGNED )
----
-64

skipif mysql # not compatible
query I rowsort label-232
SELECT DISTINCT - CAST ( + - COALESCE ( - 64, 86, - 66, + COUNT ( * ) ) AS INTEGER )
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-233
SELECT ( - 45 ) + 66 DIV COALESCE ( + COUNT( 71 ), + COUNT( * ) )
----
21

skipif mysql # not compatible
query I rowsort label-233
SELECT ( - 45 ) + 66 / COALESCE ( + COUNT ( 71 ), + COUNT ( * ) )
----
21

query I rowsort
SELECT 46 * - 76 * + 76
----
-265696

onlyif mysql # DIV for integer division: 
query I rowsort label-235
SELECT ALL + 57 DIV + ( 83 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-235
SELECT ALL + 57 / + ( 83 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-236
SELECT ALL CAST( NULL AS DECIMAL ) - COUNT( * ) + 53 * ( - 10 ) * CAST( - 20 AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-236
SELECT ALL CAST ( NULL AS REAL ) - COUNT ( * ) + 53 * ( - 10 ) * CAST ( - 20 AS REAL ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-237
SELECT 85 DIV - 45
----
-1

skipif mysql # not compatible
query I rowsort label-237
SELECT 85 / - 45
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-238
SELECT + COUNT( * ) + - ( 35 ) * + 58
----
-2029

skipif mysql # not compatible
query I rowsort label-238
SELECT + COUNT ( * ) + - ( 35 ) * + 58
----
-2029

query I rowsort
SELECT ALL 58 * - 93 AS col2
----
-5394

onlyif mysql # aggregate syntax: 
query I rowsort label-240
SELECT 95 + - + SUM( ALL 67 ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-240
SELECT 95 + - + SUM ( ALL 67 ) AS col1
----
28

query I rowsort
SELECT - NULLIF ( 4, ( - 93 ) ) AS col2
----
-4

query I rowsort
SELECT 54 * - 61 * 49 - + 23 * 56 AS col2
----
-162694

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

skipif mysql # not compatible
query I rowsort label-243
SELECT ALL COUNT ( * ) * + 40 AS col1
----
40

query I rowsort
SELECT - 60 + + 88 AS col2
----
28

query I rowsort
SELECT + 8 - + 56 * 36
----
-2008

query I rowsort
SELECT 33 * 84 AS col1
----
2772

query I rowsort
SELECT ALL + ( - 87 ) * + 11
----
-957

query I rowsort
SELECT ( - + ( 27 ) ) - + 68 AS col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-249
SELECT + COALESCE ( + 19, COUNT( * ) + - ( 43 ) ) * 27
----
513

skipif mysql # not compatible
query I rowsort label-249
SELECT + COALESCE ( + 19, COUNT ( * ) + - ( 43 ) ) * 27
----
513

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-250
SELECT ALL - COUNT( * ) + - MIN( - ( - 72 ) ) DIV - 99
----
-1

skipif mysql # not compatible
query I rowsort label-250
SELECT ALL - COUNT ( * ) + - MIN ( - ( - 72 ) ) / - 99
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-251
SELECT CAST( - 68 AS SIGNED ) + 20
----
-48

skipif mysql # not compatible
query I rowsort label-251
SELECT CAST ( - 68 AS INTEGER ) + 20
----
-48

query I rowsort
SELECT - 30 * + 50 + - 2 + - 46
----
-1548

query I rowsort
SELECT 41 - 30
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-254
SELECT 50 + 3 DIV - SUM( ALL ( + NULLIF ( 71, + 34 ) ) ) * 85 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-254
SELECT 50 + 3 / - SUM ( ALL ( + NULLIF ( 71, + 34 ) ) ) * 85 AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-255
SELECT ALL + SUM( ALL 57 ) * - 80 + - COUNT( * ) AS col0
----
-4561

skipif mysql # not compatible
query I rowsort label-255
SELECT ALL + SUM ( ALL 57 ) * - 80 + - COUNT ( * ) AS col0
----
-4561

onlyif mysql # aggregate syntax: 
query I rowsort label-256
SELECT ALL MAX( ALL - 68 ) * - COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-256
SELECT ALL MAX ( ALL - 68 ) * - COUNT ( * )
----
68

query II rowsort
SELECT ALL - 5 AS col2, 28 AS col2
----
-5
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-258
SELECT 40 + COALESCE ( + 2, COUNT( * ) DIV + 71 ) * + 47 col2
----
134

skipif mysql # not compatible
query I rowsort label-258
SELECT 40 + COALESCE ( + 2, COUNT ( * ) / + 71 ) * + 47 col2
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-259
SELECT ALL + NULLIF ( - COUNT( * ), + COUNT( * ) + + 92 * 26 ) * 30 + - ( COUNT( * ) + 91 )
----
-122

skipif mysql # not compatible
query I rowsort label-259
SELECT ALL + NULLIF ( - COUNT ( * ), + COUNT ( * ) + + 92 * 26 ) * 30 + - ( COUNT ( * ) + 91 )
----
-122

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

skipif mysql # not compatible
query II rowsort label-260
SELECT COUNT ( * ), 78 AS col1
----
1
78

onlyif mysql # aggregate syntax: 
query I rowsort label-261
SELECT + 91 * - SUM( + 80 ) + + 92
----
-7188

skipif mysql # not compatible
query I rowsort label-261
SELECT + 91 * - SUM ( + 80 ) + + 92
----
-7188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-262
SELECT ALL - CASE - 77 WHEN ( 39 ) THEN NULL WHEN + 61 * 25 + ( 75 ) THEN + 20 WHEN - 41 THEN COALESCE ( - 76, 36 - - 52, 17 * + ( - NULLIF ( CAST( NULL AS SIGNED ), 81 ) ) - ( - AVG ( - 77 ) ) * 90 ) * 85 ELSE CASE 78 WHEN + 29 THEN 66 * - COALESCE ( - 0, + CASE 15 WHEN 81 / + 51 THEN NULL WHEN - 19 * + 25 THEN 50 END - NULLIF ( 22, 45 * - 82 ) / - 46 ) WHEN - 12 + NULLIF ( + 76, + 28 ) / 92 THEN NULL ELSE COALESCE ( AVG ( 9 ), - 50 ) + 8 END + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-262
SELECT ALL - CASE - 77 WHEN ( 39 ) THEN NULL WHEN + 61 * 25 + ( 75 ) THEN + 20 WHEN - 41 THEN COALESCE ( - 76, 36 - - 52, 17 * + ( - NULLIF ( CAST ( NULL AS INTEGER ), 81 ) ) - ( - AVG ( - 77 ) ) * 90 ) * 85 ELSE CASE 78 WHEN + 29 THEN 66 * - COALESCE ( - 0, + CASE 15 WHEN 81 / + 51 THEN NULL WHEN - 19 * + 25 THEN 50 END - NULLIF ( 22, 45 * - 82 ) / - 46 ) WHEN - 12 + NULLIF ( + 76, + 28 ) / 92 THEN NULL ELSE COALESCE ( AVG ( 9 ), - 50 ) + 8 END + CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT 66 * 3 AS col0
----
198

query I rowsort
SELECT 78 * + + 17 + 46 - 95 * 13 col0
----
137

query I rowsort
SELECT DISTINCT - 6 - + - 0 + - 54 * 0
----
-6

query I rowsort
SELECT ALL - 88 - + - 18
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-267
SELECT - 91 * + COALESCE ( + 84, + COUNT( * ) )
----
-7644

skipif mysql # not compatible
query I rowsort label-267
SELECT - 91 * + COALESCE ( + 84, + COUNT ( * ) )
----
-7644

onlyif mysql # aggregate syntax: 
query I rowsort label-268
SELECT DISTINCT + + COALESCE ( - + ( - 66 ), 32 * MAX( - 93 ), 42 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-268
SELECT DISTINCT + + COALESCE ( - + ( - 66 ), 32 * MAX ( - 93 ), 42 ) AS col1
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-269
SELECT + + 95 * CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) * 51 + ( + MAX( 75 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-269
SELECT + + 95 * CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) * 51 + ( + MAX ( 75 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-270
SELECT - 3 * - CAST( + - 45 AS SIGNED ) + - 8
----
-143

skipif mysql # not compatible
query I rowsort label-270
SELECT - 3 * - CAST ( + - 45 AS INTEGER ) + - 8
----
-143

onlyif mysql # aggregate syntax: 
query II rowsort label-271
SELECT - 24, - 59 + + ( COUNT( * ) ) AS col2
----
-24
-58

skipif mysql # not compatible
query II rowsort label-271
SELECT - 24, - 59 + + ( COUNT ( * ) ) AS col2
----
-24
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-272
SELECT - 35 AS col1, + COUNT( - CAST( + 6 AS SIGNED ) ) DIV - COALESCE ( + COUNT( * ), 34 * - COUNT( * ) )
----
-35
-1

skipif mysql # not compatible
query II rowsort label-272
SELECT - 35 AS col1, + COUNT ( - CAST ( + 6 AS INTEGER ) ) / - COALESCE ( + COUNT ( * ), 34 * - COUNT ( * ) )
----
-35
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-274
SELECT - ( + 46 ) - + - MIN( + 86 ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-274
SELECT - ( + 46 ) - + - MIN ( + 86 ) AS col0
----
40

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-275
SELECT + 30 / + COUNT( * ) + - 13 * CASE 90 WHEN + SUM( DISTINCT 47 ) THEN - CAST( 45 AS DECIMAL ) / COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-275
SELECT + 30 / + COUNT ( * ) + - 13 * CASE 90 WHEN + SUM ( DISTINCT 47 ) THEN - CAST ( 45 AS REAL ) / COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-276
SELECT - - 96 * 11 * + CASE WHEN NOT + 84 NOT BETWEEN 27 / 0 AND COALESCE ( + 61, + AVG ( 81 ) / + 39 + COUNT( * ) ) THEN - 69 WHEN NULL > ( - 15 ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-276
SELECT - - 96 * 11 * + CASE WHEN NOT + 84 NOT BETWEEN 27 / 0 AND COALESCE ( + 61, + AVG ( 81 ) / + 39 + COUNT ( * ) ) THEN - 69 WHEN NULL > ( - 15 ) THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + - 90 + ( + 59 ) + 0
----
-31

query I rowsort
SELECT ALL + 52 / - CASE - 84 WHEN - 10 THEN + ( + 86 ) END * 80 AS col1
----
NULL

query II rowsort
SELECT DISTINCT 14 AS col0, 60 - 5
----
14
55

onlyif mysql # aggregate syntax: 
query I rowsort label-280
SELECT DISTINCT - CASE 67 WHEN 1 * 50 THEN NULL ELSE 28 + - COUNT( * ) * + NULLIF ( 72 * + 64 + 30, COUNT( * ) ) END + 18
----
4628

skipif mysql # not compatible
query I rowsort label-280
SELECT DISTINCT - CASE 67 WHEN 1 * 50 THEN NULL ELSE 28 + - COUNT ( * ) * + NULLIF ( 72 * + 64 + 30, COUNT ( * ) ) END + 18
----
4628

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-281
SELECT + CAST( NULL AS SIGNED ) + - - 4 + 14 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-281
SELECT + CAST ( NULL AS INTEGER ) + - - 4 + 14 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-282
SELECT ALL - 50 + + CAST( + COUNT( * ) AS SIGNED ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-282
SELECT ALL - 50 + + CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
-49

query II rowsort
SELECT ALL 20, + 27 AS col2
----
20
27

query I rowsort
SELECT DISTINCT - ( + 34 ) AS col2
----
-34

query I rowsort
SELECT ALL 16 + + COALESCE ( ( 96 ), ( + 73 ) * - 50 + 13 * + 78, 13 ) + COALESCE ( + 40 + 19, 82 * + 32, 67 ) * ( + 35 + 59 ) AS col1
----
5658

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-286
SELECT - - CASE ( 17 ) WHEN - COALESCE ( 7, - 35 ) THEN CAST( NULL AS SIGNED ) + + 80 END * + 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-286
SELECT - - CASE ( 17 ) WHEN - COALESCE ( 7, - 35 ) THEN CAST ( NULL AS INTEGER ) + + 80 END * + 7 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-287
SELECT + 93 + - + COUNT( * ) + - CASE + 14 WHEN + CAST( - 4 AS DECIMAL ) THEN 94 + NULLIF ( + 6, - 74 ) WHEN 91 THEN 0 ELSE NULL END * 64
----
NULL

skipif mysql # not compatible
query I rowsort label-287
SELECT + 93 + - + COUNT ( * ) + - CASE + 14 WHEN + CAST ( - 4 AS REAL ) THEN 94 + NULLIF ( + 6, - 74 ) WHEN 91 THEN 0 ELSE NULL END * 64
----
NULL

query I rowsort
SELECT + 5 * - + 80
----
-400

onlyif mysql # aggregate syntax: 
query I rowsort label-289
SELECT - NULLIF ( NULLIF ( + + 55, - AVG ( - 67 ) / 72 ), + COUNT( * ) ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-289
SELECT - NULLIF ( NULLIF ( + + 55, - AVG ( - 67 ) / 72 ), + COUNT ( * ) ) AS col1
----
-55

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-290
SELECT DISTINCT - 94 DIV - 52 + - CAST( - NULLIF ( - 63, 83 * 56 ) AS SIGNED )
----
-62

skipif mysql # not compatible
query I rowsort label-290
SELECT DISTINCT - 94 / - 52 + - CAST ( - NULLIF ( - 63, 83 * 56 ) AS INTEGER )
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-291
SELECT ALL + 61 DIV - 95 * - 33 - - - 65
----
-65

skipif mysql # not compatible
query I rowsort label-291
SELECT ALL + 61 / - 95 * - 33 - - - 65
----
-65

query I rowsort
SELECT + 45 - 96 AS col2
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-293
SELECT ALL ( 67 ) DIV + - 7 + - - COUNT( * ) * - 91 AS col0
----
-100

skipif mysql # not compatible
query I rowsort label-293
SELECT ALL ( 67 ) / + - 7 + - - COUNT ( * ) * - 91 AS col0
----
-100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-294
SELECT - 50 * + CAST( NULL AS SIGNED ) - + 17 / + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-294
SELECT - 50 * + CAST ( NULL AS INTEGER ) - + 17 / + 40
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-295
SELECT - NULLIF ( - - 55, - 21 ) DIV + COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-295
SELECT - NULLIF ( - - 55, - 21 ) / + COUNT ( * )
----
-55

query I rowsort
SELECT + 39 * 97 AS col0
----
3783

onlyif mysql # aggregate syntax: 
query I rowsort label-297
SELECT + ( - - MIN( - + 47 ) ) col1
----
-47

skipif mysql # not compatible
query I rowsort label-297
SELECT + ( - - MIN ( - + 47 ) ) col1
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-298
SELECT + CASE - MAX( - 82 ) WHEN + 48 THEN + 19 WHEN - CASE + MIN( DISTINCT 69 ) WHEN CAST( NULL AS SIGNED ) THEN - ( + 7 ) + 56 END THEN NULL ELSE 23 * + 20 END DIV - 43
----
-10

skipif mysql # not compatible
query I rowsort label-298
SELECT + CASE - MAX ( - 82 ) WHEN + 48 THEN + 19 WHEN - CASE + MIN ( DISTINCT 69 ) WHEN CAST ( NULL AS INTEGER ) THEN - ( + 7 ) + 56 END THEN NULL ELSE 23 * + 20 END / - 43
----
-10

query I rowsort
SELECT ALL + NULLIF ( 49, + 63 + - + 55 )
----
49

query I rowsort
SELECT NULLIF ( + 17, 83 ) AS col1
----
17

query I rowsort
SELECT + + 5 * 56 - 17 * + 10
----
110

query I rowsort
SELECT ALL 48 * - 41 + + 28
----
-1940

query I rowsort
SELECT DISTINCT - 38 * + 22 AS col1
----
-836

query I rowsort
SELECT - + 11 * + 67 AS col2
----
-737

query I rowsort
SELECT + 45 + + + 73 col1
----
118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-306
SELECT - CAST( - 44 AS SIGNED )
----
44

skipif mysql # not compatible
query I rowsort label-306
SELECT - CAST ( - 44 AS INTEGER )
----
44

query I rowsort
SELECT - + 61 - - - 58 + - ( + 10 ) - 18
----
-147

query II rowsort
SELECT + ( + + 57 ) AS col1, + 71 * + 49
----
57
3479

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

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

query I rowsort
SELECT - 4 * - 49 * - 88
----
-17248

onlyif mysql # aggregate syntax: 
query I rowsort label-311
SELECT DISTINCT + - COUNT( ALL - 12 ) + + 25 + - ( + CASE 23 WHEN + 32 THEN - 59 END ) + 43 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-311
SELECT DISTINCT + - COUNT ( ALL - 12 ) + + 25 + - ( + CASE 23 WHEN + 32 THEN - 59 END ) + 43 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-312
SELECT ALL - COUNT( * ) + 78 + - 32
----
45

skipif mysql # not compatible
query I rowsort label-312
SELECT ALL - COUNT ( * ) + 78 + - 32
----
45

query I rowsort
SELECT ALL + + 30 * + 99
----
2970

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-314
SELECT - - ( + + COALESCE ( + COUNT( * ), - 41 DIV - 96, - 82 * - 84 ) ) + 99 AS col2
----
100

skipif mysql # not compatible
query I rowsort label-314
SELECT - - ( + + COALESCE ( + COUNT ( * ), - 41 / - 96, - 82 * - 84 ) ) + 99 AS col2
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-315
SELECT ALL - 38 + + SUM( DISTINCT 63 ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-315
SELECT ALL - 38 + + SUM ( DISTINCT 63 ) AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-316
SELECT DISTINCT - SUM( 62 ) + 38
----
-24

skipif mysql # not compatible
query I rowsort label-316
SELECT DISTINCT - SUM ( 62 ) + 38
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-317
SELECT DISTINCT + 5 + 18 + CAST( NULL AS SIGNED ) + - 59 * - + CASE 18 WHEN NULLIF ( - 86, + COUNT( * ) + - 85 ) * 87 THEN NULL ELSE 16 * + ( - SUM( 13 ) ) END * 18
----
NULL

skipif mysql # not compatible
query I rowsort label-317
SELECT DISTINCT + 5 + 18 + CAST ( NULL AS INTEGER ) + - 59 * - + CASE 18 WHEN NULLIF ( - 86, + COUNT ( * ) + - 85 ) * 87 THEN NULL ELSE 16 * + ( - SUM ( 13 ) ) END * 18
----
NULL

query I rowsort
SELECT + 58 + + 15
----
73

query I rowsort
SELECT - 46 + - + 27 * 12 * 60
----
-19486

onlyif mysql # aggregate syntax: 
query I rowsort label-320
SELECT + MIN( DISTINCT 8 ) * 15 * 87 * - MIN( - 79 ) + COUNT( * ) col0
----
824761

skipif mysql # not compatible
query I rowsort label-320
SELECT + MIN ( DISTINCT 8 ) * 15 * 87 * - MIN ( - 79 ) + COUNT ( * ) col0
----
824761

query I rowsort
SELECT 30 + - + COALESCE ( - 96, - 78 * - + 96 * - 16 + 52 )
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-322
SELECT - ( - - ( - MAX( - 48 ) ) ) * + 89 + + 22
----
-4250

skipif mysql # not compatible
query I rowsort label-322
SELECT - ( - - ( - MAX ( - 48 ) ) ) * + 89 + + 22
----
-4250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-323
SELECT ( MAX( - 99 ) ) - + + CAST( + 36 AS SIGNED ) AS col1
----
-135

skipif mysql # not compatible
query I rowsort label-323
SELECT ( MAX ( - 99 ) ) - + + CAST ( + 36 AS INTEGER ) AS col1
----
-135

query I rowsort
SELECT ALL 10 - 17 col0
----
-7

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

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

query I rowsort
SELECT ALL 74 * - - 48 AS col0
----
3552

query I rowsort
SELECT ( + 81 ) * + - 92 + + - 81 * - 25 AS col1
----
-5427

query I rowsort
SELECT 75 + + 3
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-329
SELECT + 45 * + COUNT( * ) * + + 84 * + 26 + - 65 + 4
----
98219

skipif mysql # not compatible
query I rowsort label-329
SELECT + 45 * + COUNT ( * ) * + + 84 * + 26 + - 65 + 4
----
98219

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-331
SELECT + 49 * + CAST( NULL AS SIGNED ) * - 47 + 31 + - COUNT( * ) * 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-331
SELECT + 49 * + CAST ( NULL AS INTEGER ) * - 47 + 31 + - COUNT ( * ) * 89 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-332
SELECT + ( 92 ) * - + COALESCE ( + - ( + MAX( DISTINCT 32 ) ), + 77 + 94 ) - + CAST( + COUNT( * ) AS SIGNED ) + - 15 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-332
SELECT + ( 92 ) * - + COALESCE ( + - ( + MAX ( DISTINCT 32 ) ), + 77 + 94 ) - + CAST ( + COUNT ( * ) AS INTEGER ) + - 15 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 38 + + ( + 82 ) * + 2
----
126

onlyif mysql # aggregate syntax: 
query II rowsort label-334
SELECT + 31 AS col1, 25 + + 89 * COUNT( * )
----
31
114

skipif mysql # not compatible
query II rowsort label-334
SELECT + 31 AS col1, 25 + + 89 * COUNT ( * )
----
31
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-335
SELECT + 12 + + COALESCE ( - COALESCE ( - 57, - CASE - CAST( NULL AS SIGNED ) WHEN 64 - + COUNT( * ) DIV - 79 THEN NULL WHEN 64 + + ( - 2 ) THEN + 64 ELSE 82 END ), + 96 + 27, 25 + + 65 * - 44, COUNT( * ) ) + COUNT( * ) * - 94 DIV 32 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-335
SELECT + 12 + + COALESCE ( - COALESCE ( - 57, - CASE - CAST ( NULL AS INTEGER ) WHEN 64 - + COUNT ( * ) / - 79 THEN NULL WHEN 64 + + ( - 2 ) THEN + 64 ELSE 82 END ), + 96 + 27, 25 + + 65 * - 44, COUNT ( * ) ) + COUNT ( * ) * - 94 / 32 AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-336
SELECT DISTINCT - + CASE + 6 WHEN - - COUNT( * ) THEN NULL ELSE + + 90 * + COUNT( * ) END
----
-90

skipif mysql # not compatible
query I rowsort label-336
SELECT DISTINCT - + CASE + 6 WHEN - - COUNT ( * ) THEN NULL ELSE + + 90 * + COUNT ( * ) END
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-337
SELECT DISTINCT - 57 DIV - 94
----
0

skipif mysql # not compatible
query I rowsort label-337
SELECT DISTINCT - 57 / - 94
----
0

query I rowsort
SELECT ALL + 94 + + - 14 AS col1
----
80

query I rowsort
SELECT DISTINCT + 83 + ( - 60 )
----
23

query II rowsort
SELECT ALL 48 * 68 + + + 60 col0, - 66 AS col0
----
3324
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-341
SELECT DISTINCT + ( + + 64 ) + + - 15 - + 6 * + + 61 + MAX( 35 ) * + 27
----
628

skipif mysql # not compatible
query I rowsort label-341
SELECT DISTINCT + ( + + 64 ) + + - 15 - + 6 * + + 61 + MAX ( 35 ) * + 27
----
628

query I rowsort
SELECT + 59 - + 62 - 56
----
-59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-343
SELECT - CAST( NULL AS DECIMAL ) + - + NULLIF ( + 61, + 97 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-343
SELECT - CAST ( NULL AS REAL ) + - + NULLIF ( + 61, + 97 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 39 - 44 - 84
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-345
SELECT ALL + CAST( - 45 AS SIGNED ) * - - MAX( - 80 ) + - - 90 AS col1
----
3690

skipif mysql # not compatible
query I rowsort label-345
SELECT ALL + CAST ( - 45 AS INTEGER ) * - - MAX ( - 80 ) + - - 90 AS col1
----
3690

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-346
SELECT 31 + - COUNT( * ) * + + 41 DIV + 43 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-346
SELECT 31 + - COUNT ( * ) * + + 41 / + 43 AS col1
----
31

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

skipif mysql # not compatible
query I rowsort label-347
SELECT ALL - 64 * - - COUNT ( ALL - 21 ) AS col0
----
-64

query II rowsort
SELECT 36 AS col1, 34 AS col2
----
36
34

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-350
SELECT 40 * - + 77 * COUNT( * )
----
-3080

skipif mysql # not compatible
query I rowsort label-350
SELECT 40 * - + 77 * COUNT ( * )
----
-3080

query I rowsort
SELECT 75 + - ( + + 93 ) + - + 99 * - COALESCE ( + 52, - 94 + + 44, 87 ) + 83
----
5213

onlyif mysql # DIV for integer division: 
query I rowsort label-352
SELECT 46 DIV 60 * + 84 * ( - - ( 23 ) )
----
0

skipif mysql # not compatible
query I rowsort label-352
SELECT 46 / 60 * + 84 * ( - - ( 23 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-353
SELECT COUNT( COALESCE ( + 71, 51 + - 73 ) ) + - - 52 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-353
SELECT COUNT ( COALESCE ( + 71, 51 + - 73 ) ) + - - 52 AS col2
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-354
SELECT ALL 62 DIV 56, MIN( + 15 ) AS col1
----
1
15

skipif mysql # not compatible
query II rowsort label-354
SELECT ALL 62 / 56, MIN ( + 15 ) AS col1
----
1
15

query I rowsort
SELECT DISTINCT - ( - 14 ) AS col1
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-356
SELECT DISTINCT - 47 DIV + 28 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-356
SELECT DISTINCT - 47 / + 28 AS col0
----
-1

query II rowsort
SELECT ALL - 46 col1, CASE + + 92 WHEN - - ( - 12 ) + 90 + 29 * 92 THEN NULL ELSE + 53 + - 76 END
----
-46
-23

query I rowsort
SELECT 55 - + - 90
----
145

query I rowsort
SELECT + - 68 * 61 - + 16 AS col0
----
-4164

query I rowsort
SELECT ALL CASE - 96 WHEN - 24 THEN NULL ELSE - 96 END * NULLIF ( 30, 98 ) * 88
----
-253440

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-362
SELECT + 26 AS col1, + 62 DIV 6 * - - COUNT( * ) + ( ( 26 ) ) AS col2
----
26
36

skipif mysql # not compatible
query II rowsort label-362
SELECT + 26 AS col1, + 62 / 6 * - - COUNT ( * ) + ( ( 26 ) ) AS col2
----
26
36

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT ALL - + 38 * + NULLIF ( - COALESCE ( + + 45, - MIN( DISTINCT - 2 ), 49 * - NULLIF ( 22, + COUNT( * ) / 68 ) + - ( + 23 ) ), - 99 * 10 ) - 40
----
1670

skipif mysql # not compatible
query I rowsort label-364
SELECT ALL - + 38 * + NULLIF ( - COALESCE ( + + 45, - MIN ( DISTINCT - 2 ), 49 * - NULLIF ( 22, + COUNT ( * ) / 68 ) + - ( + 23 ) ), - 99 * 10 ) - 40
----
1670

query I rowsort
SELECT 54 - - 32 * + 59
----
1942

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-366
SELECT DISTINCT 42 + 60 + + 72 + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-366
SELECT DISTINCT 42 + 60 + + 72 + CAST ( NULL AS REAL ) AS col0
----
NULL

query II rowsort
SELECT + 10, + ( 51 ) AS col2
----
10
51

onlyif mysql # aggregate syntax: 
query I rowsort label-368
SELECT ALL - COALESCE ( 93, - - 73, - + 26 ) + - - CASE 34 WHEN 24 THEN - COALESCE ( 30, - 14 * MIN( 50 ), 63 ) WHEN ( + 74 ) + + ( 54 ) * + COUNT( * ) THEN 0 + 31 * 21 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-368
SELECT ALL - COALESCE ( 93, - - 73, - + 26 ) + - - CASE 34 WHEN 24 THEN - COALESCE ( 30, - 14 * MIN ( 50 ), 63 ) WHEN ( + 74 ) + + ( 54 ) * + COUNT ( * ) THEN 0 + 31 * 21 END col0
----
NULL

query II rowsort
SELECT + 61 col1, + 6
----
61
6

onlyif mysql # DIV for integer division: 
query II rowsort label-370
SELECT - 83 AS col1, 43 DIV + 9
----
-83
4

skipif mysql # not compatible
query II rowsort label-370
SELECT - 83 AS col1, 43 / + 9
----
-83
4

query II rowsort
SELECT 23 * - 59 * - + 11 * + + 31, 58 * - 19 AS col1
----
462737
-1102

onlyif mysql # DIV for integer division: 
query I rowsort label-372
SELECT ALL 82 DIV NULLIF ( + 79, - 91 )
----
1

skipif mysql # not compatible
query I rowsort label-372
SELECT ALL 82 / NULLIF ( + 79, - 91 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-373
SELECT - NULLIF ( - 31, 87 ) - - COUNT( + 24 ) + + + 51 + - 39
----
44

skipif mysql # not compatible
query I rowsort label-373
SELECT - NULLIF ( - 31, 87 ) - - COUNT ( + 24 ) + + + 51 + - 39
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-374
SELECT - + SUM( 17 ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-374
SELECT - + SUM ( 17 ) AS col0
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-375
SELECT DISTINCT 40 DIV + 70 * + + NULLIF ( 13, 21 ) + 7 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-375
SELECT DISTINCT 40 / + 70 * + + NULLIF ( 13, 21 ) + 7 AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-376
SELECT DISTINCT NULLIF ( + COALESCE ( 66, + - ( - 71 ), + 48 * - 37 + - 62 ), + SUM( + 84 ) * + COUNT( * ) )
----
66

skipif mysql # not compatible
query I rowsort label-376
SELECT DISTINCT NULLIF ( + COALESCE ( 66, + - ( - 71 ), + 48 * - 37 + - 62 ), + SUM ( + 84 ) * + COUNT ( * ) )
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-377
SELECT ALL - 52 DIV + - 95 * - 92
----
0

skipif mysql # not compatible
query I rowsort label-377
SELECT ALL - 52 / + - 95 * - 92
----
0

query II rowsort
SELECT 89 AS col1, - 50 * - - 87 AS col0
----
89
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-379
SELECT + COUNT( ALL - CASE 89 WHEN 21 THEN NULL ELSE - - 63 / - 43 END ) + + 8 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-379
SELECT + COUNT ( ALL - CASE 89 WHEN 21 THEN NULL ELSE - - 63 / - 43 END ) + + 8 AS col1
----
9

query II rowsort
SELECT ALL 95 AS col2, + 36 col2
----
95
36

onlyif mysql # aggregate syntax: 
query II rowsort label-381
SELECT DISTINCT COUNT( * ) * - MIN( ALL - 80 ) AS col0, 44 col0
----
80
44

skipif mysql # not compatible
query II rowsort label-381
SELECT DISTINCT COUNT ( * ) * - MIN ( ALL - 80 ) AS col0, 44 col0
----
80
44

onlyif mysql # aggregate syntax: 
query II rowsort label-382
SELECT COUNT( * ) + + 67 AS col2, 87 + 16 col1
----
68
103

skipif mysql # not compatible
query II rowsort label-382
SELECT COUNT ( * ) + + 67 AS col2, 87 + 16 col1
----
68
103

query I rowsort
SELECT + 5 * + 30 AS col0
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-384
SELECT - 11 * COALESCE ( CAST( 16 AS SIGNED ), - COUNT( * ) * 28, - 87 * - 53 ) col0
----
-176

skipif mysql # not compatible
query I rowsort label-384
SELECT - 11 * COALESCE ( CAST ( 16 AS INTEGER ), - COUNT ( * ) * 28, - 87 * - 53 ) col0
----
-176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-385
SELECT + 99 + - CAST( NULL AS SIGNED ) * + CASE - COUNT( * ) WHEN + - 1 * - - 5 + - 44 + 76 + - CAST( - CAST( - 30 AS SIGNED ) AS SIGNED ) THEN - COUNT( * ) * 72 + - 64 / 45 WHEN - 77 + 48 THEN - COUNT( * ) + CAST( + 53 AS SIGNED ) / 66 ELSE NULL END - - 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-385
SELECT + 99 + - CAST ( NULL AS INTEGER ) * + CASE - COUNT ( * ) WHEN + - 1 * - - 5 + - 44 + 76 + - CAST ( - CAST ( - 30 AS INTEGER ) AS INTEGER ) THEN - COUNT ( * ) * 72 + - 64 / 45 WHEN - 77 + 48 THEN - COUNT ( * ) + CAST ( + 53 AS INTEGER ) / 66 ELSE NULL END - - 54 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-386
SELECT + 75 * COUNT( * ) * MIN( - 86 )
----
-6450

skipif mysql # not compatible
query I rowsort label-386
SELECT + 75 * COUNT ( * ) * MIN ( - 86 )
----
-6450

onlyif mysql # aggregate syntax: 
query II rowsort label-387
SELECT + 92 - + - 51 AS col2, + CASE - 68 WHEN + COUNT( * ) + + 52 THEN 74 * - 30 ELSE NULL END + - 92 AS col0
----
143
NULL

skipif mysql # not compatible
query II rowsort label-387
SELECT + 92 - + - 51 AS col2, + CASE - 68 WHEN + COUNT ( * ) + + 52 THEN 74 * - 30 ELSE NULL END + - 92 AS col0
----
143
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-388
SELECT ALL MAX( DISTINCT - 51 ), - 31 - 80 + - CASE - ( + 98 ) WHEN - 20 THEN NULL ELSE 51 + ( - CASE + 52 WHEN 14 + COUNT( * ) THEN NULL ELSE 73 + - 33 END ) END - 19 * 55 AS col2
----
-51
-1167

skipif mysql # not compatible
query II rowsort label-388
SELECT ALL MAX ( DISTINCT - 51 ), - 31 - 80 + - CASE - ( + 98 ) WHEN - 20 THEN NULL ELSE 51 + ( - CASE + 52 WHEN 14 + COUNT ( * ) THEN NULL ELSE 73 + - 33 END ) END - 19 * 55 AS col2
----
-51
-1167

query I rowsort
SELECT DISTINCT 92 + - ( 65 ) + - 73
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-390
SELECT ALL 51 DIV - + 14
----
-3

skipif mysql # not compatible
query I rowsort label-390
SELECT ALL 51 / - + 14
----
-3

query I rowsort
SELECT - ( + ( - 91 ) ) + - 37 AS col2
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-392
SELECT + COALESCE ( - - 14, - + 88 + - 33 DIV + + 19 ) + 42 - - - CAST( 77 AS SIGNED ) DIV + COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-392
SELECT + COALESCE ( - - 14, - + 88 + - 33 / + + 19 ) + 42 - - - CAST ( 77 AS INTEGER ) / + COUNT ( * )
----
-21

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

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

query II rowsort
SELECT + 9 + + 45 AS col2, - ( - - 36 ) AS col0
----
54
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-395
SELECT 61 DIV + 44 - + + 11 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-395
SELECT 61 / + 44 - + + 11 AS col1
----
-10

query II rowsort
SELECT ALL - 25 * - - 46 AS col1, 6 + 3 AS col1
----
-1150
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-397
SELECT ALL NULLIF ( - COUNT( * ), + - ( 86 ) * 1 + - + 61 + + - CASE - 31 WHEN - CAST( NULL AS SIGNED ) THEN - 27 WHEN 52 THEN - MIN( 22 ) ELSE NULL END ) * 5 + 83
----
78

skipif mysql # not compatible
query I rowsort label-397
SELECT ALL NULLIF ( - COUNT ( * ), + - ( 86 ) * 1 + - + 61 + + - CASE - 31 WHEN - CAST ( NULL AS INTEGER ) THEN - 27 WHEN 52 THEN - MIN ( 22 ) ELSE NULL END ) * 5 + 83
----
78

query I rowsort
SELECT - 81 + 2 AS col0
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-399
SELECT DISTINCT - - 96 * 67 + ( 64 ) DIV - 87
----
6432

skipif mysql # not compatible
query I rowsort label-399
SELECT DISTINCT - - 96 * 67 + ( 64 ) / - 87
----
6432

query I rowsort
SELECT 63 * - NULLIF ( - - ( + 50 ), + 51 * 64 ) + + 99
----
-3051

query I rowsort
SELECT - + 88 + 0 AS col1
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-402
SELECT ALL 23 * - COUNT( * ) * + - 22 / + SUM( - 42 ) / - - 4 + + CAST( NULL AS SIGNED ) * 27 + ( 63 ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-402
SELECT ALL 23 * - COUNT ( * ) * + - 22 / + SUM ( - 42 ) / - - 4 + + CAST ( NULL AS INTEGER ) * 27 + ( 63 ) * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-403
SELECT - 14 * - MIN( - 75 )
----
-1050

skipif mysql # not compatible
query I rowsort label-403
SELECT - 14 * - MIN ( - 75 )
----
-1050

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-404
SELECT - + 26 * - 6 * + CAST( + + 10 AS SIGNED ) + 75 AS col1
----
1635

skipif mysql # not compatible
query I rowsort label-404
SELECT - + 26 * - 6 * + CAST ( + + 10 AS INTEGER ) + 75 AS col1
----
1635

query II rowsort
SELECT + 10 + - 85 AS col0, NULLIF ( ( + 1 ), 11 + + 90 / + 85 ) - 55
----
-75
-54

query I rowsort
SELECT - - 61 * ( - - 62 ) AS col0
----
3782

onlyif mysql # aggregate syntax: 
query II rowsort label-407
SELECT ALL + 50 * 25 + - SUM( ALL - 49 ) * + 48 col0, 59 - + 4
----
3602
55

skipif mysql # not compatible
query II rowsort label-407
SELECT ALL + 50 * 25 + - SUM ( ALL - 49 ) * + 48 col0, 59 - + 4
----
3602
55

query I rowsort
SELECT ALL + + 82 * - 86 + NULLIF ( 53, 79 * + + 26 - - - 25 * - 27 ) + + 72 - - 40 * 10 AS col2
----
-6527

onlyif mysql # aggregate syntax: 
query II rowsort label-409
SELECT + - ( + + COUNT( * ) ), 53 + - 25 - + 55 AS col0
----
-1
-27

skipif mysql # not compatible
query II rowsort label-409
SELECT + - ( + + COUNT ( * ) ), 53 + - 25 - + 55 AS col0
----
-1
-27

query I rowsort
SELECT DISTINCT - 23 * - 92 col2
----
2116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-411
SELECT ALL - - 62 * + COUNT( * ) * CAST( + 43 AS SIGNED ) - + + 19, + 23 AS col0
----
2647
23

skipif mysql # not compatible
query II rowsort label-411
SELECT ALL - - 62 * + COUNT ( * ) * CAST ( + 43 AS INTEGER ) - + + 19, + 23 AS col0
----
2647
23

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-413
SELECT - 5 DIV + 28 * + 34 * + 88
----
0

skipif mysql # not compatible
query I rowsort label-413
SELECT - 5 / + 28 * + 34 * + 88
----
0

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

query II rowsort
SELECT ALL 45 AS col1, 14 AS col0
----
45
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-416
SELECT + COUNT( * ) + + 62 * 64 - - MIN( - + 20 ) DIV + 84 + + + 99 AS col2
----
4068

skipif mysql # not compatible
query I rowsort label-416
SELECT + COUNT ( * ) + + 62 * 64 - - MIN ( - + 20 ) / + 84 + + + 99 AS col2
----
4068

onlyif mysql # DIV for integer division: 
query I rowsort label-417
SELECT + 75 DIV + 18
----
4

skipif mysql # not compatible
query I rowsort label-417
SELECT + 75 / + 18
----
4

query I rowsort
SELECT ALL 87 * - 53 AS col0
----
-4611

query II rowsort
SELECT DISTINCT 8, 68 AS col0
----
8
68

onlyif mysql # DIV for integer division: 
query I rowsort label-420
SELECT - COALESCE ( - + 49, 43 + - ( - ( - 25 ) ), 26 + + + ( 80 ) DIV + 1 )
----
49

skipif mysql # not compatible
query I rowsort label-420
SELECT - COALESCE ( - + 49, 43 + - ( - ( - 25 ) ), 26 + + + ( 80 ) / + 1 )
----
49

query I rowsort
SELECT DISTINCT 80 * - + NULLIF ( + 1, ( + 44 ) * - 62 ) * + 15
----
-1200

query I rowsort
SELECT ALL 39 + - 26 + 68
----
81

query I rowsort
SELECT ALL 51 + - 75 - - + 4 - 76 * 23 AS col1
----
-1768

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

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

query I rowsort
SELECT DISTINCT 86 + - 46 AS col2
----
40

query I rowsort
SELECT DISTINCT 44 * + 2 col0
----
88

query I rowsort
SELECT ALL 3 + 74
----
77

query I rowsort
SELECT - 15 + + - 96
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-429
SELECT + 85 * + ( - 49 ) * - COUNT( * ) + - COUNT( * ) AS col0
----
4164

skipif mysql # not compatible
query I rowsort label-429
SELECT + 85 * + ( - 49 ) * - COUNT ( * ) + - COUNT ( * ) AS col0
----
4164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-430
SELECT - 91 + + - CAST( + COUNT( * ) AS SIGNED ) - + + ( - 72 ) * - 69 AS col1
----
-5060

skipif mysql # not compatible
query I rowsort label-430
SELECT - 91 + + - CAST ( + COUNT ( * ) AS INTEGER ) - + + ( - 72 ) * - 69 AS col1
----
-5060

onlyif mysql # aggregate syntax: 
query II rowsort label-431
SELECT 85 col1, + 45 * - COUNT( * )
----
85
-45

skipif mysql # not compatible
query II rowsort label-431
SELECT 85 col1, + 45 * - COUNT ( * )
----
85
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-432
SELECT ALL + COUNT( ALL - 69 ) + 35 - + 32 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-432
SELECT ALL + COUNT ( ALL - 69 ) + 35 - + 32 AS col0
----
4

query I rowsort
SELECT ALL - + 63 * - 5
----
315

onlyif mysql # aggregate syntax: 
query II rowsort label-434
SELECT DISTINCT 19 * - 30 + - 57, COUNT( * ) AS col1
----
-627
1

skipif mysql # not compatible
query II rowsort label-434
SELECT DISTINCT 19 * - 30 + - 57, COUNT ( * ) AS col1
----
-627
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-435
SELECT 25, CAST( - - SUM( ALL - 13 ) AS SIGNED ) AS col1
----
25
-13

skipif mysql # not compatible
query II rowsort label-435
SELECT 25, CAST ( - - SUM ( ALL - 13 ) AS INTEGER ) AS col1
----
25
-13

query I rowsort
SELECT - + 51 * + + 55 AS col2
----
-2805

query I rowsort
SELECT ALL + + 71 * 90
----
6390

query I rowsort
SELECT DISTINCT + - 21 * - 50 AS col2
----
1050

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-440
SELECT + - COALESCE ( - COUNT( * ), - 62 * - 88 * + + 23 )
----
1

skipif mysql # not compatible
query I rowsort label-440
SELECT + - COALESCE ( - COUNT ( * ), - 62 * - 88 * + + 23 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-441
SELECT ALL 4 * + - 68 - 68 * + CASE 47 WHEN ( COUNT( * ) ) * + 76 * 31 + + NULLIF ( - 97 - AVG ( - CAST( 68 AS SIGNED ) ) * 33, 59 * MIN( 5 ) + 31 ) THEN - COUNT( * ) - - 93 ELSE NULL END - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-441
SELECT ALL 4 * + - 68 - 68 * + CASE 47 WHEN ( COUNT ( * ) ) * + 76 * 31 + + NULLIF ( - 97 - AVG ( - CAST ( 68 AS INTEGER ) ) * 33, 59 * MIN ( 5 ) + 31 ) THEN - COUNT ( * ) - - 93 ELSE NULL END - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-442
SELECT DISTINCT + NULLIF ( - COUNT( * ), 22 ), + ( ( - + 14 ) ) AS col2
----
-1
-14

skipif mysql # not compatible
query II rowsort label-442
SELECT DISTINCT + NULLIF ( - COUNT ( * ), 22 ), + ( ( - + 14 ) ) AS col2
----
-1
-14

onlyif mysql # DIV for integer division: 
query II rowsort label-443
SELECT ALL + 30 DIV - 38 + - 11, 1 + + ( COALESCE ( + + 15, - 17 + 42, + 91 - 39 ) ) AS col1
----
-11
16

skipif mysql # not compatible
query II rowsort label-443
SELECT ALL + 30 / - 38 + - 11, 1 + + ( COALESCE ( + + 15, - 17 + 42, + 91 - 39 ) ) AS col1
----
-11
16

onlyif mysql # DIV for integer division: 
query I rowsort label-444
SELECT DISTINCT + + 54 DIV 44 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-444
SELECT DISTINCT + + 54 / 44 AS col1
----
1

query I rowsort
SELECT 65 + 78 AS col0
----
143

query II rowsort
SELECT ALL + 32 * - + 32 AS col0, - 28
----
-1024
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-447
SELECT DISTINCT - SUM( ALL + - 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-447
SELECT DISTINCT - SUM ( ALL + - 0 ) AS col2
----
0

query I rowsort
SELECT 40 * - - 93
----
3720

query I rowsort
SELECT ALL - ( 40 ) + + 76
----
36

query II rowsort
SELECT ALL + 61 + 93, - 51 AS col1
----
154
-51

query I rowsort
SELECT ALL 39 + + 44 col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-452
SELECT COUNT( DISTINCT + 50 ) + + - 67 * - + 0 + 15
----
16

skipif mysql # not compatible
query I rowsort label-452
SELECT COUNT ( DISTINCT + 50 ) + + - 67 * - + 0 + 15
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-453
SELECT ( - 34 ) / - CASE COUNT( * ) WHEN - + 81 THEN - 14 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-453
SELECT ( - 34 ) / - CASE COUNT ( * ) WHEN - + 81 THEN - 14 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-454
SELECT ALL COUNT( + - 65 ) + - - 49 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-454
SELECT ALL COUNT ( + - 65 ) + - - 49 AS col0
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-455
SELECT AVG ( ALL - 5 ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-455
SELECT AVG ( ALL - 5 ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-456
SELECT 90 + + COUNT( * ) DIV - 66
----
90

skipif mysql # not compatible
query I rowsort label-456
SELECT 90 + + COUNT ( * ) / - 66
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-457
SELECT ALL + 7 DIV - 83 * + 36 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-457
SELECT ALL + 7 / - 83 * + 36 AS col1
----
0

query I rowsort
SELECT ALL - 41 - - 92 AS col1
----
51

query I rowsort
SELECT DISTINCT + 49 * - ( 99 )
----
-4851

onlyif mysql # DIV for integer division: 
query I rowsort label-460
SELECT + 52 DIV - 41 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-460
SELECT + 52 / - 41 AS col2
----
-1

query I rowsort
SELECT + ( 68 ) + - 39 * + 14 AS col2
----
-478

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-462
SELECT - 52 DIV 25 * + + 23 * + + 29 + - - COUNT( ALL + 74 ) * - - 32
----
-1302

skipif mysql # not compatible
query I rowsort label-462
SELECT - 52 / 25 * + + 23 * + + 29 + - - COUNT ( ALL + 74 ) * - - 32
----
-1302

query I rowsort
SELECT - 79 + - 56
----
-135

query I rowsort
SELECT ALL 49 - - - 88 AS col0
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-465
SELECT - COUNT( * ) + MIN( ALL - 67 ) * - 53, - 56 AS col1
----
3550
-56

skipif mysql # not compatible
query II rowsort label-465
SELECT - COUNT ( * ) + MIN ( ALL - 67 ) * - 53, - 56 AS col1
----
3550
-56

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

query I rowsort
SELECT 1 + + 64 * + 70
----
4481

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-469
SELECT + SUM( ALL 56 ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-469
SELECT + SUM ( ALL 56 ) AS col0
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-470
SELECT 93 * + - CASE + 16 WHEN 50 / + - MIN( 65 ) - + MIN( ALL + - ( + 49 ) ) THEN + COALESCE ( CAST( - 9 AS SIGNED ), - 20, - NULLIF ( + 23, 54 * ( + 25 ) - ( COALESCE ( - 68, + 2 ) ) ) ) + - 21 * + 79 WHEN NULLIF ( 68, COUNT( * ) * 0 + - 79 * 4 ) + - 26 THEN NULL END + 84 + + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-470
SELECT 93 * + - CASE + 16 WHEN 50 / + - MIN ( 65 ) - + MIN ( ALL + - ( + 49 ) ) THEN + COALESCE ( CAST ( - 9 AS INTEGER ), - 20, - NULLIF ( + 23, 54 * ( + 25 ) - ( COALESCE ( - 68, + 2 ) ) ) ) + - 21 * + 79 WHEN NULLIF ( 68, COUNT ( * ) * 0 + - 79 * 4 ) + - 26 THEN NULL END + 84 + + 40
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-471
SELECT 11 DIV + 19 * + + 29 * ( + - 16 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-471
SELECT 11 / + 19 * + + 29 * ( + - 16 ) AS col2
----
0

query I rowsort
SELECT 76 * - 39 * - ( - + 57 )
----
-168948

onlyif mysql # aggregate syntax: 
query I rowsort label-473
SELECT DISTINCT + 28 + + 83 * - + COALESCE ( + 64, - + COUNT( * ) * - - COUNT( * ) * + 65, + NULLIF ( - 35, ( + COUNT( * ) ) + - 86 ) ) * - 40 + 46
----
212554

skipif mysql # not compatible
query I rowsort label-473
SELECT DISTINCT + 28 + + 83 * - + COALESCE ( + 64, - + COUNT ( * ) * - - COUNT ( * ) * + 65, + NULLIF ( - 35, ( + COUNT ( * ) ) + - 86 ) ) * - 40 + 46
----
212554

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-474
SELECT DISTINCT CAST( NULL AS SIGNED ) * 29 * + 15 col0, + 24 + - 39 AS col2
----
NULL
-15

skipif mysql # not compatible
query II rowsort label-474
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 29 * + 15 col0, + 24 + - 39 AS col2
----
NULL
-15

query I rowsort
SELECT DISTINCT - ( 91 ) AS col1
----
-91

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-477
SELECT DISTINCT - COUNT( * ), 44 AS col1
----
-1
44

skipif mysql # not compatible
query II rowsort label-477
SELECT DISTINCT - COUNT ( * ), 44 AS col1
----
-1
44

query I rowsort
SELECT DISTINCT 75 + 0 AS col2
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-479
SELECT DISTINCT + 29 + - 85 + + + 28 + - COUNT( * ) - - + 29 * - + 20 - + ( - + 62 ) + - + MAX( 49 ) + 54 * NULLIF ( CAST( + COUNT( * ) AS SIGNED ) * - NULLIF ( COUNT( * ), - ( - 85 ) ), COUNT( * ) * + CAST( + 21 * - 83 AS DECIMAL ) ) * 23
----
-1838

skipif mysql # not compatible
query I rowsort label-479
SELECT DISTINCT + 29 + - 85 + + + 28 + - COUNT ( * ) - - + 29 * - + 20 - + ( - + 62 ) + - + MAX ( 49 ) + 54 * NULLIF ( CAST ( + COUNT ( * ) AS INTEGER ) * - NULLIF ( COUNT ( * ), - ( - 85 ) ), COUNT ( * ) * + CAST ( + 21 * - 83 AS REAL ) ) * 23
----
-1838

query I rowsort
SELECT ALL - 2 + + 49 - ( 85 )
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-481
SELECT 55 DIV ( + 18 )
----
3

skipif mysql # not compatible
query I rowsort label-481
SELECT 55 / ( + 18 )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-482
SELECT + 75 * 95 - - 66 * COUNT( * ) - CAST( CAST( 13 AS SIGNED ) AS SIGNED ) + - - 97 * 16 * NULLIF ( + CASE 53 WHEN ( 5 ) / 38 THEN + 82 * 62 END, COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-482
SELECT + 75 * 95 - - 66 * COUNT ( * ) - CAST ( CAST ( 13 AS INTEGER ) AS INTEGER ) + - - 97 * 16 * NULLIF ( + CASE 53 WHEN ( 5 ) / 38 THEN + 82 * 62 END, COUNT ( * ) )
----
NULL

query I rowsort
SELECT 65 * + 85 * + - 94 AS col0
----
-519350

onlyif mysql # aggregate syntax: 
query I rowsort label-484
SELECT COUNT( * ) + + 15 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-484
SELECT COUNT ( * ) + + 15 AS col2
----
16

query II rowsort
SELECT 15, 31 AS col2
----
15
31

query I rowsort
SELECT 10 + + 1
----
11

query I rowsort
SELECT DISTINCT - 85 - 10 AS col1
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-488
SELECT DISTINCT + CASE + ( - ( + + ( + + 86 ) ) ) WHEN + - COUNT( * ) THEN MAX( - + 65 ) WHEN + - 69 + MIN( - 16 ) + - 0 THEN NULL ELSE + 17 DIV COUNT( * ) END * 17
----
289

skipif mysql # not compatible
query I rowsort label-488
SELECT DISTINCT + CASE + ( - ( + + ( + + 86 ) ) ) WHEN + - COUNT ( * ) THEN MAX ( - + 65 ) WHEN + - 69 + MIN ( - 16 ) + - 0 THEN NULL ELSE + 17 / COUNT ( * ) END * 17
----
289

query I rowsort
SELECT DISTINCT + 21 * - 66 AS col1
----
-1386

onlyif mysql # aggregate syntax: 
query I rowsort label-490
SELECT ALL - 67 - + 71 * COUNT( * ) AS col1
----
-138

skipif mysql # not compatible
query I rowsort label-490
SELECT ALL - 67 - + 71 * COUNT ( * ) AS col1
----
-138

query I rowsort
SELECT ALL + 12 * 10 AS col2
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-492
SELECT ALL - COUNT( + + 43 ) - + 26 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-492
SELECT ALL - COUNT ( + + 43 ) - + 26 AS col1
----
-27

query I rowsort
SELECT 5 * - 63 - - 46 AS col2
----
-269

onlyif mysql # aggregate syntax: 
query I rowsort label-494
SELECT ALL SUM( ALL - ( - ( - 38 ) ) ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-494
SELECT ALL SUM ( ALL - ( - ( - 38 ) ) ) AS col0
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-495
SELECT - - 54 AS col0, - 66 * - MIN( + 25 ) AS col0
----
54
1650

skipif mysql # not compatible
query II rowsort label-495
SELECT - - 54 AS col0, - 66 * - MIN ( + 25 ) AS col0
----
54
1650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-496
SELECT 85 * - + CAST( - 14 AS SIGNED ) + - CASE + - 30 WHEN - 68 THEN + COUNT( * ) * - 72 ELSE NULL END * COALESCE ( 41, + 35, - COALESCE ( + 92, 83 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-496
SELECT 85 * - + CAST ( - 14 AS INTEGER ) + - CASE + - 30 WHEN - 68 THEN + COUNT ( * ) * - 72 ELSE NULL END * COALESCE ( 41, + 35, - COALESCE ( + 92, 83 ) )
----
NULL

query I rowsort
SELECT ALL + NULLIF ( - + 99, - 5 ) * - - 99 AS col2
----
-9801

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-499
SELECT ALL 22 * 20 DIV + 7
----
62

skipif mysql # not compatible
query I rowsort label-499
SELECT ALL 22 * 20 / + 7
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-500
SELECT + 5 * - COUNT( * ) * + 29 col1
----
-145

skipif mysql # not compatible
query I rowsort label-500
SELECT + 5 * - COUNT ( * ) * + 29 col1
----
-145

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

onlyif mysql # aggregate syntax: 
query I rowsort label-502
SELECT ALL COUNT( - 85 ) * - 46 + + 91
----
45

skipif mysql # not compatible
query I rowsort label-502
SELECT ALL COUNT ( - 85 ) * - 46 + + 91
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-503
SELECT DISTINCT + 9 * 46 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-503
SELECT DISTINCT + 9 * 46 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-504
SELECT MIN( DISTINCT - + ( + 77 ) )
----
-77

skipif mysql # not compatible
query I rowsort label-504
SELECT MIN ( DISTINCT - + ( + 77 ) )
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-505
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 87 * - SUM( + - 22 ) + + - AVG ( DISTINCT + 73 ) + - - 37 - 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-505
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 87 * - SUM ( + - 22 ) + + - AVG ( DISTINCT + 73 ) + - - 37 - 58 AS col1
----
NULL

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

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

query II rowsort
SELECT DISTINCT + 7 AS col2, 70 AS col0
----
7
70

query II rowsort
SELECT DISTINCT NULLIF ( - ( + 2 ), + 26 ) * - 17 + - + 99, 70 + + 35 AS col1
----
-65
105

query I rowsort
SELECT DISTINCT 69 * - 34 col0
----
-2346

onlyif mysql # aggregate syntax: 
query I rowsort label-510
SELECT DISTINCT 90 * + - COUNT( + 60 ) + 28 * + ( 39 ) col0
----
1002

skipif mysql # not compatible
query I rowsort label-510
SELECT DISTINCT 90 * + - COUNT ( + 60 ) + 28 * + ( 39 ) col0
----
1002

query I rowsort
SELECT + 92 + + - NULLIF ( + ( - + 24 ), 80 ) AS col1
----
116

onlyif mysql # DIV for integer division: 
query I rowsort label-512
SELECT - 16 DIV 30 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-512
SELECT - 16 / 30 AS col2
----
0

query I rowsort
SELECT DISTINCT 65 * - 58 + 69 col2
----
-3701

query I rowsort
SELECT + CASE WHEN - 30 < NULL THEN - 84 + + 10 ELSE NULL END
----
NULL

query II rowsort
SELECT ALL + 49 AS col0, - 90
----
49
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-516
SELECT DISTINCT MIN( 75 ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-516
SELECT DISTINCT MIN ( 75 ) AS col0
----
75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-518
SELECT DISTINCT 86 - + + NULLIF ( 89, COUNT( * ) * + - 22 - - 96 )
----
-3

skipif mysql # not compatible
query I rowsort label-518
SELECT DISTINCT 86 - + + NULLIF ( 89, COUNT ( * ) * + - 22 - - 96 )
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-519
SELECT 87 AS col2, 21 * - 98 + 58 * + - COUNT( * ) AS col1
----
87
-2116

skipif mysql # not compatible
query II rowsort label-519
SELECT 87 AS col2, 21 * - 98 + 58 * + - COUNT ( * ) AS col1
----
87
-2116

onlyif mysql # aggregate syntax: 
query I rowsort label-520
SELECT ALL MIN( 90 ) col2
----
90

skipif mysql # not compatible
query I rowsort label-520
SELECT ALL MIN ( 90 ) col2
----
90

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

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

query I rowsort
SELECT - 26 - 82
----
-108

onlyif mysql # DIV for integer division: 
query II rowsort label-523
SELECT - 25 DIV + + 28 AS col2, 31
----
0
31

skipif mysql # not compatible
query II rowsort label-523
SELECT - 25 / + + 28 AS col2, 31
----
0
31

onlyif mysql # aggregate syntax: 
query I rowsort label-524
SELECT - SUM( + 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-524
SELECT - SUM ( + 50 )
----
-50

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-525
SELECT ALL - 58 * + 50 DIV - CAST( 5 AS SIGNED )
----
580

skipif mysql # not compatible
query I rowsort label-525
SELECT ALL - 58 * + 50 / - CAST ( 5 AS INTEGER )
----
580

query I rowsort
SELECT DISTINCT - + 51 * - - 28
----
-1428

query I rowsort
SELECT - - 3 + + - 41 * - 99
----
4062

query II rowsort
SELECT DISTINCT 92 col0, 76
----
92
76

query I rowsort
SELECT DISTINCT - ( 39 ) + - + 96 * - 76 * 43
----
313689

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-530
SELECT - COALESCE ( AVG ( ALL + 84 ), + + MIN( + 97 ) + 42 * - 69 * COUNT( * ) ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-530
SELECT - COALESCE ( AVG ( ALL + 84 ), + + MIN ( + 97 ) + 42 * - 69 * COUNT ( * ) ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - - 9 + + + 70 + - + 59
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-532
SELECT DISTINCT + - 47 + + COUNT( DISTINCT 20 ) + - CAST( NULL AS SIGNED ) + - 22 + 63 * 26 - - 75 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-532
SELECT DISTINCT + - 47 + + COUNT ( DISTINCT 20 ) + - CAST ( NULL AS INTEGER ) + - 22 + 63 * 26 - - 75 col2
----
NULL

query I rowsort
SELECT - - 51 * + 21 AS col0
----
1071

query I rowsort
SELECT DISTINCT - 40 + - 96 * + - 66
----
6296

query II rowsort
SELECT 75 AS col2, 75 - + + 6 AS col0
----
75
69

query I rowsort
SELECT - NULLIF ( + NULLIF ( - 97, + 92 ), 30 ) * - - 4 * 0 * + 2 AS col0
----
0

query I rowsort
SELECT + + 12 + 47
----
59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-538
SELECT ALL + CAST( NULL AS DECIMAL ) / NULLIF ( - 99, - COALESCE ( - COALESCE ( COALESCE ( - 97, + 4, 6 * 24 ), MIN( DISTINCT 5 ) + + 45 * + 83 ), 87 ) ) + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-538
SELECT ALL + CAST ( NULL AS REAL ) / NULLIF ( - 99, - COALESCE ( - COALESCE ( COALESCE ( - 97, + 4, 6 * 24 ), MIN ( DISTINCT 5 ) + + 45 * + 83 ), 87 ) ) + 18
----
NULL

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

query I rowsort
SELECT + ( 45 ) * ( 1 )
----
45

query I rowsort
SELECT + 29 + 36 * - 65 * - 65 col2
----
152129

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-542
SELECT ALL - 11 DIV 7 col1, + 70 * - NULLIF ( + 8, - + ( + COUNT( * ) ) * 77 + + + 5 + MIN( 75 ) ) + + 49 col2
----
-1
-511

skipif mysql # not compatible
query II rowsort label-542
SELECT ALL - 11 / 7 col1, + 70 * - NULLIF ( + 8, - + ( + COUNT ( * ) ) * 77 + + + 5 + MIN ( 75 ) ) + + 49 col2
----
-1
-511

query II rowsort
SELECT ALL 40 * - + 58 * + - 9 * + - ( - 18 ) AS col2, 51 * - + CASE - + 33 WHEN + 1 THEN + ( - 30 ) - - - ( 50 ) END AS col1
----
375840
NULL

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

query I rowsort
SELECT ( NULLIF ( 27, - ( - 69 ) ) )
----
27

query I rowsort
SELECT ALL 28 * - 14 AS col2
----
-392

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-547
SELECT + CASE + ( - 66 ) WHEN - NULLIF ( - 96, 21 ) * - COUNT( * ) * 33 + COUNT( * ) + + - COUNT( * ) THEN - + 47 WHEN + 49 THEN NULL WHEN + 82 THEN ( 88 ) ELSE NULL END * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-547
SELECT + CASE + ( - 66 ) WHEN - NULLIF ( - 96, 21 ) * - COUNT ( * ) * 33 + COUNT ( * ) + + - COUNT ( * ) THEN - + 47 WHEN + 49 THEN NULL WHEN + 82 THEN ( 88 ) ELSE NULL END * CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-549
SELECT ALL CASE + + 97 WHEN + 34 + + - 82 THEN AVG ( DISTINCT - 31 ) ELSE NULL END * - 2 * + 51 + 96 - - - 91 + 34 + - - 64 + COUNT( * ) * 55 * - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-549
SELECT ALL CASE + + 97 WHEN + 34 + + - 82 THEN AVG ( DISTINCT - 31 ) ELSE NULL END * - 2 * + 51 + 96 - - - 91 + 34 + - - 64 + COUNT ( * ) * 55 * - 57
----
NULL

query II rowsort
SELECT + 33 + 97 AS col2, 20 AS col2
----
130
20

query I rowsort
SELECT + 3 * + COALESCE ( + 81, + - 59, + 60 + 30 + 0 * - ( + 1 ) )
----
243

query II rowsort
SELECT + 9 * 83 * 47 AS col2, + 42 * + - 47 * 33 * - 20
----
35109
1302840

query I rowsort
SELECT ALL 15 * - 24 * 7 AS col1
----
-2520

onlyif mysql # aggregate syntax: 
query I rowsort label-554
SELECT DISTINCT 32 * + + 89 * COUNT( * ) * 98
----
279104

skipif mysql # not compatible
query I rowsort label-554
SELECT DISTINCT 32 * + + 89 * COUNT ( * ) * 98
----
279104

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-555
SELECT - ( 28 ) AS col2, - 79 - + NULLIF ( CAST( 52 AS SIGNED ), + 8 ) * + + 35 AS col2
----
-28
-1899

skipif mysql # not compatible
query II rowsort label-555
SELECT - ( 28 ) AS col2, - 79 - + NULLIF ( CAST ( 52 AS INTEGER ), + 8 ) * + + 35 AS col2
----
-28
-1899

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-557
SELECT + + 23 * - CAST( 42 AS SIGNED ) AS col1
----
-966

skipif mysql # not compatible
query I rowsort label-557
SELECT + + 23 * - CAST ( 42 AS INTEGER ) AS col1
----
-966

query I rowsort
SELECT DISTINCT + 85 * - 61 col0
----
-5185

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-559
SELECT - CAST( 41 AS SIGNED ) AS col0, 72 col0
----
-41
72

skipif mysql # not compatible
query II rowsort label-559
SELECT - CAST ( 41 AS INTEGER ) AS col0, 72 col0
----
-41
72

onlyif mysql # DIV for integer division: 
query I rowsort label-560
SELECT ALL + 46 DIV 37 col1
----
1

skipif mysql # not compatible
query I rowsort label-560
SELECT ALL + 46 / 37 col1
----
1

query I rowsort
SELECT DISTINCT + 35 + + 89 AS col1
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-562
SELECT CASE - - 69 WHEN - + COUNT( * ) * 63 THEN NULL WHEN 4 / + 87 / 45 THEN MIN( - - ( + 15 ) ) END - - 92 - - + ( - 1 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-562
SELECT CASE - - 69 WHEN - + COUNT ( * ) * 63 THEN NULL WHEN 4 / + 87 / 45 THEN MIN ( - - ( + 15 ) ) END - - 92 - - + ( - 1 ) AS col1
----
NULL

query I rowsort
SELECT + 65 * + - 88 + - 7 AS col2
----
-5727

onlyif mysql # aggregate syntax: 
query I rowsort label-564
SELECT MAX( DISTINCT + 28 ) * + 79
----
2212

skipif mysql # not compatible
query I rowsort label-564
SELECT MAX ( DISTINCT + 28 ) * + 79
----
2212

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-565
SELECT ALL + - 45 DIV - COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-565
SELECT ALL + - 45 / - COUNT ( * )
----
45

query II rowsort
SELECT ( - - 10 ) * + 92 AS col1, - 94 AS col2
----
920
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-567
SELECT + 92 DIV + 97 * - 9 + + 42
----
42

skipif mysql # not compatible
query I rowsort label-567
SELECT + 92 / + 97 * - 9 + + 42
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-568
SELECT DISTINCT + MIN( + - ( 34 ) ) col2
----
-34

skipif mysql # not compatible
query I rowsort label-568
SELECT DISTINCT + MIN ( + - ( 34 ) ) col2
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-569
SELECT ALL - COUNT( ALL - 21 ) + MIN( + 12 ) + - 38 + - ( + ( - 61 ) ) DIV 40 DIV 80
----
-27

skipif mysql # not compatible
query I rowsort label-569
SELECT ALL - COUNT ( ALL - 21 ) + MIN ( + 12 ) + - 38 + - ( + ( - 61 ) ) / 40 / 80
----
-27

query I rowsort
SELECT - 14 - 78 * - 54 AS col1
----
4198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-571
SELECT DISTINCT CAST( + + AVG ( ALL + CAST( + 28 AS SIGNED ) ) AS SIGNED ) col0
----
28

skipif mysql # not compatible
query I rowsort label-571
SELECT DISTINCT CAST ( + + AVG ( ALL + CAST ( + 28 AS INTEGER ) ) AS INTEGER ) col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-572
SELECT DISTINCT - 17 * - 77 + + - NULLIF ( - 26, COUNT( ALL - 75 ) ) * ( MIN( 72 ) ) * - - 26 AS col1
----
49981

skipif mysql # not compatible
query I rowsort label-572
SELECT DISTINCT - 17 * - 77 + + - NULLIF ( - 26, COUNT ( ALL - 75 ) ) * ( MIN ( 72 ) ) * - - 26 AS col1
----
49981

query I rowsort
SELECT ALL - 15 - NULLIF ( + - 22, NULLIF ( - 97, - 7 ) )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-574
SELECT 49 * + 81 * - CASE - 54 WHEN - 54 THEN COUNT( * ) * 54 END AS col0
----
-214326

skipif mysql # not compatible
query I rowsort label-574
SELECT 49 * + 81 * - CASE - 54 WHEN - 54 THEN COUNT ( * ) * 54 END AS col0
----
-214326

onlyif mysql # aggregate syntax: 
query II rowsort label-575
SELECT + 57 * - SUM( 32 ) + + 85 * 7 + + 4, - 41 col0
----
-1225
-41

skipif mysql # not compatible
query II rowsort label-575
SELECT + 57 * - SUM ( 32 ) + + 85 * 7 + + 4, - 41 col0
----
-1225
-41

query I rowsort
SELECT ALL - COALESCE ( 44, + 55 ) AS col0
----
-44

query I rowsort
SELECT 75 * - ( - - 43 ) col0
----
-3225

onlyif mysql # aggregate syntax: 
query II rowsort label-578
SELECT DISTINCT - COALESCE ( 17, 74 ), ( COUNT( * ) ) + - SUM( ALL 3 ) + MIN( DISTINCT - - 70 ) AS col0
----
-17
68

skipif mysql # not compatible
query II rowsort label-578
SELECT DISTINCT - COALESCE ( 17, 74 ), ( COUNT ( * ) ) + - SUM ( ALL 3 ) + MIN ( DISTINCT - - 70 ) AS col0
----
-17
68

onlyif mysql # aggregate syntax: 
query II rowsort label-579
SELECT DISTINCT - COUNT( * ), 17 col1
----
-1
17

skipif mysql # not compatible
query II rowsort label-579
SELECT DISTINCT - COUNT ( * ), 17 col1
----
-1
17

query I rowsort
SELECT 94 + ( + ( + COALESCE ( - 84, 80 ) ) )
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-581
SELECT ALL + 80 DIV - COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-581
SELECT ALL + 80 / - COUNT ( * )
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-582
SELECT ALL - 74, + CAST( NULL AS SIGNED ) - CAST( - 86 AS SIGNED ) AS col0
----
-74
NULL

skipif mysql # not compatible
query II rowsort label-582
SELECT ALL - 74, + CAST ( NULL AS INTEGER ) - CAST ( - 86 AS INTEGER ) AS col0
----
-74
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-583
SELECT 84 DIV 38 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-583
SELECT 84 / 38 AS col0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-584
SELECT NULLIF ( - 10, + 12 DIV - 83 + - - 5 ) DIV 52 + + ( - + 33 ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-584
SELECT NULLIF ( - 10, + 12 / - 83 + - - 5 ) / 52 + + ( - + 33 ) AS col0
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-585
SELECT DISTINCT - CASE + + ( CAST( NULL AS SIGNED ) ) WHEN - COUNT( 51 ) * - 72 THEN - NULLIF ( 7, + 23 * + 45 ) WHEN 8 THEN NULL ELSE - SUM( ALL - - 79 ) END * 98 AS col2
----
7742

skipif mysql # not compatible
query I rowsort label-585
SELECT DISTINCT - CASE + + ( CAST ( NULL AS INTEGER ) ) WHEN - COUNT ( 51 ) * - 72 THEN - NULLIF ( 7, + 23 * + 45 ) WHEN 8 THEN NULL ELSE - SUM ( ALL - - 79 ) END * 98 AS col2
----
7742

onlyif mysql # aggregate syntax: 
query I rowsort label-586
SELECT 29 * - + CASE - COUNT( 67 ) WHEN + MAX( - - 85 ) THEN NULL WHEN + 35 THEN + 19 + - 66 END / - 75 * - 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-586
SELECT 29 * - + CASE - COUNT ( 67 ) WHEN + MAX ( - - 85 ) THEN NULL WHEN + 35 THEN + 19 + - 66 END / - 75 * - 29 AS col1
----
NULL

query I rowsort
SELECT ALL 91 * + 56 AS col1
----
5096

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-588
SELECT ( + 58 ) - - - CASE + - ( + CAST( NULL AS DECIMAL ) ) WHEN + - 95 * - 82 + + 3 + + + NULLIF ( - + CASE + + ( - 60 ) WHEN + + 77 * NULLIF ( + COUNT( * ), + COUNT( * ) * + 70 ) THEN NULL WHEN + 11 THEN - 21 - 64 END, CASE CASE + COUNT( * ) WHEN 66 * 93 THEN + 21 * 89 ELSE COUNT( * ) * + 27 END WHEN 17 THEN NULL WHEN 89 * + 2 THEN NULL WHEN CASE WHEN - COALESCE ( 74, - 40 ) > MIN( - 80 ) THEN 55 END THEN 35 * + COUNT( * ) END ) * 97 * 25 - + CASE + 22 + 2 WHEN 29 THEN - 61 ELSE NULL END * - 4 THEN NULL WHEN 45 THEN - MIN( 70 ) - + 92 * 19 END + 41 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-588
SELECT ( + 58 ) - - - CASE + - ( + CAST ( NULL AS REAL ) ) WHEN + - 95 * - 82 + + 3 + + + NULLIF ( - + CASE + + ( - 60 ) WHEN + + 77 * NULLIF ( + COUNT ( * ), + COUNT ( * ) * + 70 ) THEN NULL WHEN + 11 THEN - 21 - 64 END, CASE CASE + COUNT ( * ) WHEN 66 * 93 THEN + 21 * 89 ELSE COUNT ( * ) * + 27 END WHEN 17 THEN NULL WHEN 89 * + 2 THEN NULL WHEN CASE WHEN - COALESCE ( 74, - 40 ) > MIN ( - 80 ) THEN 55 END THEN 35 * + COUNT ( * ) END ) * 97 * 25 - + CASE + 22 + 2 WHEN 29 THEN - 61 ELSE NULL END * - 4 THEN NULL WHEN 45 THEN - MIN ( 70 ) - + 92 * 19 END + 41 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-589
SELECT ALL - 74 AS col0, 26 * + - ( + - CAST( - + 44 AS SIGNED ) )
----
-74
-1144

skipif mysql # not compatible
query II rowsort label-589
SELECT ALL - 74 AS col0, 26 * + - ( + - CAST ( - + 44 AS INTEGER ) )
----
-74
-1144

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

skipif mysql # not compatible
query I rowsort label-590
SELECT COUNT ( * ) / + - 27
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-591
SELECT ALL - 80 AS col1, - 25 * + MAX( DISTINCT + 19 ) AS col1
----
-80
-475

skipif mysql # not compatible
query II rowsort label-591
SELECT ALL - 80 AS col1, - 25 * + MAX ( DISTINCT + 19 ) AS col1
----
-80
-475

query I rowsort
SELECT DISTINCT - CASE - ( 79 ) WHEN - 36 * 9 + - 63 THEN + 39 * + - 36 WHEN 31 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 99 + + 64
----
163

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-594
SELECT ( + ( + - COUNT( * ) ) ) * + CAST( NULL AS SIGNED ) - - 7 / + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-594
SELECT ( + ( + - COUNT ( * ) ) ) * + CAST ( NULL AS INTEGER ) - - 7 / + 14
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-595
SELECT ALL + 26, 80 DIV + 97 * + COUNT( * ) * + - 69 * 70 AS col2
----
26
0

skipif mysql # not compatible
query II rowsort label-595
SELECT ALL + 26, 80 / + 97 * + COUNT ( * ) * + - 69 * 70 AS col2
----
26
0

query I rowsort
SELECT DISTINCT + 39 + - - 63 - + 80 + - ( 92 )
----
-70

query I rowsort
SELECT ALL 26 * 78 AS col1
----
2028

query I rowsort
SELECT + 96 * + 13 AS col1
----
1248

onlyif mysql # aggregate syntax: 
query I rowsort label-599
SELECT ALL - 6 + - + COUNT( * ) - - + 38
----
31

skipif mysql # not compatible
query I rowsort label-599
SELECT ALL - 6 + - + COUNT ( * ) - - + 38
----
31

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

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

query I rowsort
SELECT 52 - 52 + + 74 * - 38 AS col1
----
-2812

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-602
SELECT 98 - - 85 + + CAST( 26 AS SIGNED )
----
209

skipif mysql # not compatible
query I rowsort label-602
SELECT 98 - - 85 + + CAST ( 26 AS INTEGER )
----
209

onlyif mysql # aggregate syntax: 
query I rowsort label-603
SELECT DISTINCT - COUNT( * ) + 93 + + + 82 col1
----
174

skipif mysql # not compatible
query I rowsort label-603
SELECT DISTINCT - COUNT ( * ) + 93 + + + 82 col1
----
174

query I rowsort
SELECT ALL + - 42 + 55
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-605
SELECT COUNT( ALL + 13 ) + + COUNT( * ) + - 29
----
-27

skipif mysql # not compatible
query I rowsort label-605
SELECT COUNT ( ALL + 13 ) + + COUNT ( * ) + - 29
----
-27

query II rowsort
SELECT ALL 55, + 38 * - 88 AS col0
----
55
-3344

query I rowsort
SELECT ALL + 30 - 17 * - + 40 + ( - 43 ) AS col1
----
667

onlyif mysql # DIV for integer division: 
query I rowsort label-608
SELECT 57 DIV - - 36 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-608
SELECT 57 / - - 36 AS col0
----
1

query I rowsort
SELECT 0 * 21 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-610
SELECT + 39 + COUNT( + 23 ) + 90 * + - COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-610
SELECT + 39 + COUNT ( + 23 ) + 90 * + - COUNT ( * )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-611
SELECT COUNT( DISTINCT 45 ) * - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-611
SELECT COUNT ( DISTINCT 45 ) * - - COUNT ( * )
----
1

query I rowsort
SELECT 94 + 64 * - 91 AS col2
----
-5730

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-613
SELECT 4 + + COALESCE ( - COALESCE ( 55, - 8 * + ( 29 ) * COUNT( * ) ), + 33 + + 84 ) + + NULLIF ( ( - - SUM( + + 52 ) ), - 20 * + CAST( 7 AS SIGNED ) - COUNT( * ) ) * 38 col2
----
1925

skipif mysql # not compatible
query I rowsort label-613
SELECT 4 + + COALESCE ( - COALESCE ( 55, - 8 * + ( 29 ) * COUNT ( * ) ), + 33 + + 84 ) + + NULLIF ( ( - - SUM ( + + 52 ) ), - 20 * + CAST ( 7 AS INTEGER ) - COUNT ( * ) ) * 38 col2
----
1925

query I rowsort
SELECT 10 * + - ( - 5 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-615
SELECT DISTINCT + COALESCE ( ( - 92 ), 84, + 86, - + NULLIF ( + - MIN( 54 ), + - 97 + + 76 * + 63 + - + 52 ) ) * 15 + + COUNT( * ) + 25 AS col0
----
-1354

skipif mysql # not compatible
query I rowsort label-615
SELECT DISTINCT + COALESCE ( ( - 92 ), 84, + 86, - + NULLIF ( + - MIN ( 54 ), + - 97 + + 76 * + 63 + - + 52 ) ) * 15 + + COUNT ( * ) + 25 AS col0
----
-1354

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-616
SELECT ALL - 84 * CAST( - 50 AS SIGNED ) * 79 AS col1, 31
----
331800
31

skipif mysql # not compatible
query II rowsort label-616
SELECT ALL - 84 * CAST ( - 50 AS INTEGER ) * 79 AS col1, 31
----
331800
31

query II rowsort
SELECT 84 * - + 49, + 98 AS col0
----
-4116
98

query I rowsort
SELECT DISTINCT + ( - + 38 ) * 66
----
-2508

query I rowsort
SELECT DISTINCT 4 * - - 28 col2
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-620
SELECT ALL - CASE + 12 WHEN MIN( ALL 85 ) + + 24 + 52 THEN + 64 - + - 89 + 25 WHEN 51 + - 67 * - 69 THEN NULL WHEN - 19 * 94 + COUNT( * ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-620
SELECT ALL - CASE + 12 WHEN MIN ( ALL 85 ) + + 24 + 52 THEN + 64 - + - 89 + 25 WHEN 51 + - 67 * - 69 THEN NULL WHEN - 19 * 94 + COUNT ( * ) THEN NULL END AS col0
----
NULL

query II rowsort
SELECT 10 * - 80 col2, 31 AS col2
----
-800
31

query I rowsort
SELECT ALL + 76 * - + 77 AS col2
----
-5852

onlyif mysql # DIV for integer division: 
query II rowsort label-623
SELECT 76 * 98 + + + 98 + - 66 col2, - 64 DIV - - 75 + - 0 col0
----
7480
0

skipif mysql # not compatible
query II rowsort label-623
SELECT 76 * 98 + + + 98 + - 66 col2, - 64 / - - 75 + - 0 col0
----
7480
0

onlyif mysql # DIV for integer division: 
query I rowsort label-624
SELECT - 21 DIV 69 * + 30 + - COALESCE ( + + 19, + + 78 ) * 47 AS col0
----
-893

skipif mysql # not compatible
query I rowsort label-624
SELECT - 21 / 69 * + 30 + - COALESCE ( + + 19, + + 78 ) * 47 AS col0
----
-893

onlyif mysql # aggregate syntax: 
query II rowsort label-625
SELECT - 33 * + + COUNT( * ) + - - COUNT( * ) + + - 36 + - 82 * - MIN( ALL 1 ) col1, COALESCE ( COUNT( * ), COUNT( * ) )
----
14
1

skipif mysql # not compatible
query II rowsort label-625
SELECT - 33 * + + COUNT ( * ) + - - COUNT ( * ) + + - 36 + - 82 * - MIN ( ALL 1 ) col1, COALESCE ( COUNT ( * ), COUNT ( * ) )
----
14
1

query I rowsort
SELECT DISTINCT + 31 + 86 AS col0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-627
SELECT 25 + + - COUNT( * ) + + 82 * COUNT( * ) * + COUNT( * ) * - + COUNT( * ) * - + 83 * - NULLIF ( - 1, + + 51 ) + - + 62 + + 23 * - - 90 AS col2
----
8838

skipif mysql # not compatible
query I rowsort label-627
SELECT 25 + + - COUNT ( * ) + + 82 * COUNT ( * ) * + COUNT ( * ) * - + COUNT ( * ) * - + 83 * - NULLIF ( - 1, + + 51 ) + - + 62 + + 23 * - - 90 AS col2
----
8838

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-628
SELECT DISTINCT CAST( - - 66 AS SIGNED ) * 69
----
4554

skipif mysql # not compatible
query I rowsort label-628
SELECT DISTINCT CAST ( - - 66 AS INTEGER ) * 69
----
4554

query I rowsort
SELECT ALL - COALESCE ( + 24, - 45 - 89 ) + - 28 + 46 col0
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-630
SELECT ALL - 10 + - + 68 * - MAX( DISTINCT + 31 ) * + CAST( NULL AS SIGNED ) - + + 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-630
SELECT ALL - 10 + - + 68 * - MAX ( DISTINCT + 31 ) * + CAST ( NULL AS INTEGER ) - + + 1 AS col0
----
NULL

query I rowsort
SELECT ALL + 46 * + - 64 AS col2
----
-2944

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-632
SELECT ALL + + 78 + + - CAST( - 71 AS SIGNED ) AS col0
----
149

skipif mysql # not compatible
query I rowsort label-632
SELECT ALL + + 78 + + - CAST ( - 71 AS INTEGER ) AS col0
----
149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-633
SELECT - 20 * - 19 + + CAST( - 98 AS SIGNED ) * 87 AS col0
----
-8146

skipif mysql # not compatible
query I rowsort label-633
SELECT - 20 * - 19 + + CAST ( - 98 AS INTEGER ) * 87 AS col0
----
-8146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-634
SELECT DISTINCT + 19 * + + 62 * 85 * CAST( NULL AS SIGNED ) - - - 68 + + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-634
SELECT DISTINCT + 19 * + + 62 * 85 * CAST ( NULL AS INTEGER ) - - - 68 + + 27
----
NULL

query I rowsort
SELECT + 3 + - 84 * 35
----
-2937

onlyif mysql # aggregate syntax: 
query I rowsort label-636
SELECT + 16 + - 71 * COUNT( * ) + + 64 + - + CASE 32 WHEN 96 * - + 88 * - 80 + - 17 THEN NULL WHEN + 39 * + COALESCE ( + 8, - 4 ) * + 53 - 85 / - 28 THEN ( 71 ) * 3 + + NULLIF ( 37, 44 + 79 * + 48 ) WHEN 38 THEN - 20 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-636
SELECT + 16 + - 71 * COUNT ( * ) + + 64 + - + CASE 32 WHEN 96 * - + 88 * - 80 + - 17 THEN NULL WHEN + 39 * + COALESCE ( + 8, - 4 ) * + 53 - 85 / - 28 THEN ( 71 ) * 3 + + NULLIF ( 37, 44 + 79 * + 48 ) WHEN 38 THEN - 20 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-637
SELECT + CASE - COUNT( * ) WHEN + 2 * - - COUNT( * ) THEN NULLIF ( + 28, ( + 1 ) ) / 35 * + 69 + - - COUNT( * ) + + - SUM( 27 ) * - 21 WHEN ( 27 ) + 98 THEN 49 * 85 ELSE 87 END
----
87

skipif mysql # not compatible
query I rowsort label-637
SELECT + CASE - COUNT ( * ) WHEN + 2 * - - COUNT ( * ) THEN NULLIF ( + 28, ( + 1 ) ) / 35 * + 69 + - - COUNT ( * ) + + - SUM ( 27 ) * - 21 WHEN ( 27 ) + 98 THEN 49 * 85 ELSE 87 END
----
87

query I rowsort
SELECT DISTINCT 18 - + 48
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-639
SELECT DISTINCT - ( - CAST( SUM( DISTINCT - 87 ) AS SIGNED ) )
----
-87

skipif mysql # not compatible
query I rowsort label-639
SELECT DISTINCT - ( - CAST ( SUM ( DISTINCT - 87 ) AS INTEGER ) )
----
-87

query I rowsort
SELECT ALL + 34 - - - 56 AS col0
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-641
SELECT ALL CASE WHEN NOT 72 NOT IN ( + 90 * - 7 + CAST( 2 AS SIGNED ) ) THEN - COUNT( * ) ELSE + 4 END
----
4

skipif mysql # not compatible
query I rowsort label-641
SELECT ALL CASE WHEN NOT 72 NOT IN ( + 90 * - 7 + CAST ( 2 AS INTEGER ) ) THEN - COUNT ( * ) ELSE + 4 END
----
4

query II rowsort
SELECT - 63 - + + 80, + 58 AS col0
----
-143
58

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

skipif mysql # not compatible
query I rowsort label-643
SELECT DISTINCT COUNT ( * ) * + + 97 AS col1
----
97

query I rowsort
SELECT ALL 69 * + 95
----
6555

query I rowsort
SELECT + COALESCE ( 52, + - 53, 21 ) - 19
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-646
SELECT DISTINCT COUNT( * ) * - - 57 * - COUNT( * ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-646
SELECT DISTINCT COUNT ( * ) * - - 57 * - COUNT ( * ) AS col2
----
-57

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

query I rowsort
SELECT + 33 * - 38 col1
----
-1254

query I rowsort
SELECT - 10 * - 41 AS col2
----
410

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-650
SELECT CAST( + 64 AS SIGNED ) * 73 * + 21 + - 26 + - - 37 + + COUNT( + 79 ) * + ( - + 17 ) * + 29
----
97630

skipif mysql # not compatible
query I rowsort label-650
SELECT CAST ( + 64 AS INTEGER ) * 73 * + 21 + - 26 + - - 37 + + COUNT ( + 79 ) * + ( - + 17 ) * + 29
----
97630

onlyif mysql # DIV for integer division: 
query I rowsort label-651
SELECT ALL 92 DIV - 13 col2
----
-7

skipif mysql # not compatible
query I rowsort label-651
SELECT ALL 92 / - 13 col2
----
-7

query I rowsort
SELECT - 3 + + 86 AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-653
SELECT ALL + MAX( ALL + 15 ) * + 60 + + ( 67 )
----
967

skipif mysql # not compatible
query I rowsort label-653
SELECT ALL + MAX ( ALL + 15 ) * + 60 + + ( 67 )
----
967

onlyif mysql # aggregate syntax: 
query I rowsort label-654
SELECT ALL - CASE + 38 WHEN + + 64 * 66 THEN - ( + ( 18 ) ) END * - + 7 + - MAX( - 83 ) - - - CASE - 70 WHEN + ( + 13 ) THEN NULL ELSE + 89 + + COUNT( * ) * + 35 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-654
SELECT ALL - CASE + 38 WHEN + + 64 * 66 THEN - ( + ( 18 ) ) END * - + 7 + - MAX ( - 83 ) - - - CASE - 70 WHEN + ( + 13 ) THEN NULL ELSE + 89 + + COUNT ( * ) * + 35 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-655
SELECT ALL 56 DIV MIN( + 89 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-655
SELECT ALL 56 / MIN ( + 89 ) AS col1
----
0

query I rowsort
SELECT DISTINCT - 32 * - 1 * + 39 + 30
----
1278

query I rowsort
SELECT - 66 * - + 56 + - 47 - + 10 * 0 AS col0
----
3649

onlyif mysql # aggregate syntax: 
query I rowsort label-658
SELECT - COUNT( * ) * - MIN( - - 3 )
----
3

skipif mysql # not compatible
query I rowsort label-658
SELECT - COUNT ( * ) * - MIN ( - - 3 )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-659
SELECT ALL + 73, + ( 93 ) * 89 * - CASE + - 1 WHEN + + 23 * + ( - 69 ) THEN NULL WHEN - ( + CASE CASE - - ( + 49 ) WHEN CAST( - MAX( DISTINCT 56 ) AS SIGNED ) THEN + 37 ELSE 38 * - 30 END WHEN COUNT( * ) THEN + ( 72 ) WHEN 45 + + 1 * 58 THEN 82 * + COALESCE ( - 97, - 25, - 20 * COUNT( * ), NULLIF ( + 11, + COUNT( DISTINCT 43 ) ) ) END ) THEN NULL ELSE 79 END * - 41 - 12 AS col1
----
73
26809191

skipif mysql # not compatible
query II rowsort label-659
SELECT ALL + 73, + ( 93 ) * 89 * - CASE + - 1 WHEN + + 23 * + ( - 69 ) THEN NULL WHEN - ( + CASE CASE - - ( + 49 ) WHEN CAST ( - MAX ( DISTINCT 56 ) AS INTEGER ) THEN + 37 ELSE 38 * - 30 END WHEN COUNT ( * ) THEN + ( 72 ) WHEN 45 + + 1 * 58 THEN 82 * + COALESCE ( - 97, - 25, - 20 * COUNT ( * ), NULLIF ( + 11, + COUNT ( DISTINCT 43 ) ) ) END ) THEN NULL ELSE 79 END * - 41 - 12 AS col1
----
73
26809191

onlyif mysql # aggregate syntax: 
query I rowsort label-660
SELECT ALL + COUNT( * ) * 90 + 28 + - COUNT( * )
----
117

skipif mysql # not compatible
query I rowsort label-660
SELECT ALL + COUNT ( * ) * 90 + 28 + - COUNT ( * )
----
117

query I rowsort
SELECT ALL 50 * - 92 * - 46 - - 59 AS col1
----
211659

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-662
SELECT COUNT( * ) * - 47 - 61 * + CASE + + 80 WHEN + - 9 THEN + CAST( NULL AS SIGNED ) * - 66 * - - 62 WHEN - 64 * + 23 + - 94 * - 66 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-662
SELECT COUNT ( * ) * - 47 - 61 * + CASE + + 80 WHEN + - 9 THEN + CAST ( NULL AS INTEGER ) * - 66 * - - 62 WHEN - 64 * + 23 + - 94 * - 66 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-663
SELECT + MAX( - + 74 ) * 81 * + + 37 - + - 40 * - 52 AS col2
----
-223858

skipif mysql # not compatible
query I rowsort label-663
SELECT + MAX ( - + 74 ) * 81 * + + 37 - + - 40 * - 52 AS col2
----
-223858

query I rowsort
SELECT - - 85 * + 21 AS col1
----
1785

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-665
SELECT ALL - + 83 * + + CAST( - 70 AS SIGNED ), 48 AS col0
----
5810
48

skipif mysql # not compatible
query II rowsort label-665
SELECT ALL - + 83 * + + CAST ( - 70 AS INTEGER ), 48 AS col0
----
5810
48

query I rowsort
SELECT + + 2 - + COALESCE ( 17, - 85 ) + 37 AS col0
----
22

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

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

query I rowsort
SELECT - 61 + + + 20 AS col1
----
-41

query I rowsort
SELECT + - 27 - + - 60 AS col2
----
33

query I rowsort
SELECT - + 16 * - 95 col1
----
1520

query I rowsort
SELECT DISTINCT + + 54 * - - 48 AS col2
----
2592

onlyif mysql # aggregate syntax: 
query I rowsort label-672
SELECT - COUNT( ALL - ( - 47 ) ) + CASE + 66 WHEN 74 THEN + 42 ELSE NULL END - - 34 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-672
SELECT - COUNT ( ALL - ( - 47 ) ) + CASE + 66 WHEN 74 THEN + 42 ELSE NULL END - - 34 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-673
SELECT DISTINCT 76 / ( - COUNT ( * ) )
----
-76

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

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

query I rowsort
SELECT + 16 + + 81
----
97

query I rowsort
SELECT + 92 + - - 17 AS col0
----
109

onlyif mysql # aggregate syntax: 
query II rowsort label-677
SELECT - COUNT( * ) AS col0, 75 - + 59
----
-1
16

skipif mysql # not compatible
query II rowsort label-677
SELECT - COUNT ( * ) AS col0, 75 - + 59
----
-1
16

query II rowsort
SELECT ALL 3 AS col1, + 66 + + + 84
----
3
150

onlyif mysql # aggregate syntax: 
query I rowsort label-679
SELECT ALL COUNT( + 94 ) + + 27
----
28

skipif mysql # not compatible
query I rowsort label-679
SELECT ALL COUNT ( + 94 ) + + 27
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-680
SELECT + 86 + 75 + + - 76 + - + COUNT( * ) + - - 26
----
110

skipif mysql # not compatible
query I rowsort label-680
SELECT + 86 + 75 + + - 76 + - + COUNT ( * ) + - - 26
----
110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-681
SELECT + 57 * - COALESCE ( - 42, + - 17 DIV - - 83 * 9 - - 93 ) * - COUNT( * ) AS col0
----
-2394

skipif mysql # not compatible
query I rowsort label-681
SELECT + 57 * - COALESCE ( - 42, + - 17 / - - 83 * 9 - - 93 ) * - COUNT ( * ) AS col0
----
-2394

query I rowsort
SELECT + 62 + + 74 * + - 6 AS col2
----
-382

query II rowsort
SELECT ALL 68 * 18 AS col0, 1 AS col2
----
1224
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-684
SELECT ALL - NULLIF ( - - 74, - 10 ) DIV - + 8 + + ( + 74 ) + - 67 + - NULLIF ( + - 79, - - COUNT( * ) ) + - + 98, + 90 + - 13 + + - COUNT( * ) AS col1
----
-3
76

skipif mysql # not compatible
query II rowsort label-684
SELECT ALL - NULLIF ( - - 74, - 10 ) / - + 8 + + ( + 74 ) + - 67 + - NULLIF ( + - 79, - - COUNT ( * ) ) + - + 98, + 90 + - 13 + + - COUNT ( * ) AS col1
----
-3
76

onlyif mysql # aggregate syntax: 
query I rowsort label-685
SELECT + ( + MIN( DISTINCT + 75 ) ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-685
SELECT + ( + MIN ( DISTINCT + 75 ) ) AS col0
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-686
SELECT 50 DIV - NULLIF ( - - 82, - 71 ) + + 70 - + 15 + MAX( - + 24 ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-686
SELECT 50 / - NULLIF ( - - 82, - 71 ) + + 70 - + 15 + MAX ( - + 24 ) AS col1
----
31

query I rowsort
SELECT ALL ( ( - 39 ) ) + 43 * - 66 + 93 + + - 67 + + - 98
----
-2949

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-688
SELECT 85 AS col2, ( + + 9 ) / + COUNT( * ) + - CAST( NULL AS SIGNED ) * - - 74 + + CASE + CAST( - + 20 AS SIGNED ) WHEN + + 85 THEN - ( 81 ) END AS col0
----
85
NULL

skipif mysql # not compatible
query II rowsort label-688
SELECT 85 AS col2, ( + + 9 ) / + COUNT ( * ) + - CAST ( NULL AS INTEGER ) * - - 74 + + CASE + CAST ( - + 20 AS INTEGER ) WHEN + + 85 THEN - ( 81 ) END AS col0
----
85
NULL

query I rowsort
SELECT - 2 * + + 17 * - + 82 * - 62 + + + 33
----
-172823

query I rowsort
SELECT - 6 - + COALESCE ( + 72, - 70 ) AS col0
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-691
SELECT CAST( + 55 AS SIGNED ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-691
SELECT CAST ( + 55 AS INTEGER ) AS col0
----
55

query I rowsort
SELECT DISTINCT - 27 - 32 * - 98
----
3109

query I rowsort
SELECT NULLIF ( - 44, + 27 ) * 77 - - 62
----
-3326

onlyif mysql # aggregate syntax: 
query I rowsort label-694
SELECT 37 + - COUNT( * ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-694
SELECT 37 + - COUNT ( * ) AS col0
----
36

query I rowsort
SELECT + COALESCE ( - 89, - - 40 )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-696
SELECT + COUNT( * ) * - 75 + + - 78 + COUNT( * ) AS col0
----
-152

skipif mysql # not compatible
query I rowsort label-696
SELECT + COUNT ( * ) * - 75 + + - 78 + COUNT ( * ) AS col0
----
-152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-697
SELECT ALL 21 - COUNT( * ) AS col2, + COUNT( * ) * - 19 * - - 63 - + CAST( + + 27 AS SIGNED ) AS col2
----
20
-1224

skipif mysql # not compatible
query II rowsort label-697
SELECT ALL 21 - COUNT ( * ) AS col2, + COUNT ( * ) * - 19 * - - 63 - + CAST ( + + 27 AS INTEGER ) AS col2
----
20
-1224

onlyif mysql # aggregate syntax: 
query II rowsort label-698
SELECT ALL - 86 AS col0, SUM( - + NULLIF ( - 92, + + 6 + + 82 + - 37 + + ( + 2 ) + - 29 * ( - 16 ) ) ) * MIN( ALL + 58 ) - 19 * 89
----
-86
3645

skipif mysql # not compatible
query II rowsort label-698
SELECT ALL - 86 AS col0, SUM ( - + NULLIF ( - 92, + + 6 + + 82 + - 37 + + ( + 2 ) + - 29 * ( - 16 ) ) ) * MIN ( ALL + 58 ) - 19 * 89
----
-86
3645

query I rowsort
SELECT ALL + 86 - - 31 + 85 + - + 38 + 22
----
186

query I rowsort
SELECT - 9 * - 74 AS col2
----
666

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 23 * 24 AS col2
----
552

onlyif mysql # DIV for integer division: 
query I rowsort label-706
SELECT ALL - - 56 DIV + 11 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-706
SELECT ALL - - 56 / + 11 AS col1
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-707
SELECT - 8 col1, MAX( DISTINCT 22 ) AS col1
----
-8
22

skipif mysql # not compatible
query II rowsort label-707
SELECT - 8 col1, MAX ( DISTINCT 22 ) AS col1
----
-8
22

query II rowsort
SELECT 13 * + 82 AS col2, + 86 * + 95 AS col0
----
1066
8170

query I rowsort
SELECT 84 - - 4
----
88

query I rowsort
SELECT ALL - 17 * + 65
----
-1105

query I rowsort
SELECT 93 - + 90 AS col2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-712
SELECT COUNT( * ) * - + 43 * - 23 * 44 * - + 78 AS col2, + ( - SUM( ALL + 75 ) ) * 88 + + + 79 AS col1
----
-3394248
-6521

skipif mysql # not compatible
query II rowsort label-712
SELECT COUNT ( * ) * - + 43 * - 23 * 44 * - + 78 AS col2, + ( - SUM ( ALL + 75 ) ) * 88 + + + 79 AS col1
----
-3394248
-6521

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-713
SELECT ALL - 63 + + MIN( - 44 ) + - 73 DIV - 5 + + 50 * + - 97 + - 20 + ( 5 )
----
-4958

skipif mysql # not compatible
query I rowsort label-713
SELECT ALL - 63 + + MIN ( - 44 ) + - 73 / - 5 + + 50 * + - 97 + - 20 + ( 5 )
----
-4958

onlyif mysql # aggregate syntax: 
query I rowsort label-714
SELECT ALL ( - 76 ) + - CASE + + 94 WHEN + 34 / 17 THEN + - 95 WHEN + 60 THEN NULL WHEN 68 THEN 83 * 81 END + COUNT( * ) * + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-714
SELECT ALL ( - 76 ) + - CASE + + 94 WHEN + 34 / 17 THEN + - 95 WHEN + 60 THEN NULL WHEN 68 THEN 83 * 81 END + COUNT ( * ) * + 91
----
NULL

query I rowsort
SELECT 28 - 49 + + 29 AS col1
----
8

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-717
SELECT ALL - CAST( 77 AS SIGNED ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-717
SELECT ALL - CAST ( 77 AS INTEGER ) AS col1
----
-77

query I rowsort
SELECT 63 * - + 62 AS col1
----
-3906

query I rowsort
SELECT 72 + + + 50 * + 52 AS col0
----
2672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-720
SELECT DISTINCT 39 - - CASE 89 WHEN - 3 / 69 * - ( + - 26 ) / + + 50 + - CAST( NULL AS SIGNED ) * - 36 * - + ( - 22 ) - - 22 - 20 + COUNT( * ) * + - COUNT( ALL 10 ) * 94 THEN NULL ELSE COUNT( * ) * - 37 - + 63 END * 80
----
-7961

skipif mysql # not compatible
query I rowsort label-720
SELECT DISTINCT 39 - - CASE 89 WHEN - 3 / 69 * - ( + - 26 ) / + + 50 + - CAST ( NULL AS INTEGER ) * - 36 * - + ( - 22 ) - - 22 - 20 + COUNT ( * ) * + - COUNT ( ALL 10 ) * 94 THEN NULL ELSE COUNT ( * ) * - 37 - + 63 END * 80
----
-7961

query I rowsort
SELECT DISTINCT - 40 * 30
----
-1200

onlyif mysql # DIV for integer division: 
query I rowsort label-722
SELECT 21 * 3 DIV 44
----
1

skipif mysql # not compatible
query I rowsort label-722
SELECT 21 * 3 / 44
----
1

query III rowsort
SELECT DISTINCT - 96 * + 39 AS col0, 38, + 94 AS col1
----
-3744
38
94

onlyif mysql # aggregate syntax: 
query I rowsort label-724
SELECT - COUNT( + + 14 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-724
SELECT - COUNT ( + + 14 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-725
SELECT COALESCE ( 6, MAX( 94 ) * - 94 * 76, + 34 * NULLIF ( - 22, - 18 ) ) * - 60 AS col0
----
-360

skipif mysql # not compatible
query I rowsort label-725
SELECT COALESCE ( 6, MAX ( 94 ) * - 94 * 76, + 34 * NULLIF ( - 22, - 18 ) ) * - 60 AS col0
----
-360

onlyif mysql # aggregate syntax: 
query II rowsort label-726
SELECT + 63 * - 23 AS col0, ( 56 ) * + COUNT( * ) + - + 44 AS col2
----
-1449
12

skipif mysql # not compatible
query II rowsort label-726
SELECT + 63 * - 23 AS col0, ( 56 ) * + COUNT ( * ) + - + 44 AS col2
----
-1449
12

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-728
SELECT + 90 DIV 35 AS col2, 42
----
2
42

skipif mysql # not compatible
query II rowsort label-728
SELECT + 90 / 35 AS col2, 42
----
2
42

query I rowsort
SELECT - 29 * - COALESCE ( + 67, - 26 )
----
1943

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-730
SELECT - 99 * + 43, - 85 * - CAST( NULL AS SIGNED ) AS col1
----
-4257
NULL

skipif mysql # not compatible
query II rowsort label-730
SELECT - 99 * + 43, - 85 * - CAST ( NULL AS INTEGER ) AS col1
----
-4257
NULL

query I rowsort
SELECT ALL 12 + + 79 AS col2
----
91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-732
SELECT DISTINCT - 53 / + 88 + - ( + CAST( NULL AS DECIMAL ) ) + + - 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-732
SELECT DISTINCT - 53 / + 88 + - ( + CAST ( NULL AS REAL ) ) + + - 5 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-734
SELECT ALL + COUNT( * ) DIV - + 11 * + 13 AS col1, 17 + COUNT( * ) AS col2
----
0
18

skipif mysql # not compatible
query II rowsort label-734
SELECT ALL + COUNT ( * ) / - + 11 * + 13 AS col1, 17 + COUNT ( * ) AS col2
----
0
18

query I rowsort
SELECT + 79 + - 90 + - 62 col2
----
-73

query I rowsort
SELECT 74 + - + 88 col2
----
-14

query II rowsort
SELECT DISTINCT 40 + + - ( 22 ) AS col1, - ( 27 ) col2
----
18
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-738
SELECT + 86 * - - MIN( + 13 ) + 47 + - 58 AS col0
----
1107

skipif mysql # not compatible
query I rowsort label-738
SELECT + 86 * - - MIN ( + 13 ) + 47 + - 58 AS col0
----
1107

onlyif mysql # aggregate syntax: 
query I rowsort label-739
SELECT COUNT( DISTINCT + 49 ) + - ( + - SUM( + + 18 ) )
----
19

skipif mysql # not compatible
query I rowsort label-739
SELECT COUNT ( DISTINCT + 49 ) + - ( + - SUM ( + + 18 ) )
----
19

query II rowsort
SELECT 29 - + 2 * - 39 AS col0, 65 AS col2
----
107
65

query II rowsort
SELECT ALL 45 AS col0, ( - + 11 ) AS col1
----
45
-11

query I rowsort
SELECT - CASE + 93 WHEN 19 + 60 THEN NULL ELSE + 40 END AS col1
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-743
SELECT ALL 39 + + CAST( + - ( 14 ) AS SIGNED )
----
25

skipif mysql # not compatible
query I rowsort label-743
SELECT ALL 39 + + CAST ( + - ( 14 ) AS INTEGER )
----
25

query I rowsort
SELECT DISTINCT 98 + 39 + 34 * - 14 * + + 33 AS col1
----
-15571

onlyif mysql # aggregate syntax: 
query I rowsort label-745
SELECT ALL - 31 + - + NULLIF ( SUM( 41 ), - 97 ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-745
SELECT ALL - 31 + - + NULLIF ( SUM ( 41 ), - 97 ) AS col1
----
-72

query I rowsort
SELECT - 3 + + - 22
----
-25

query I rowsort
SELECT + 15 * + 66 AS col2
----
990

onlyif mysql # DIV for integer division: 
query I rowsort label-748
SELECT ALL + 86 DIV 7 * - - 10
----
120

skipif mysql # not compatible
query I rowsort label-748
SELECT ALL + 86 / 7 * - - 10
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-749
SELECT ALL - CAST( NULL AS SIGNED ) - - 3 / - - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-749
SELECT ALL - CAST ( NULL AS INTEGER ) - - 3 / - - 72
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-750
SELECT - NULLIF ( + + 32, - 4 ) AS col2, COUNT( * ) * - + CASE + 62 WHEN + CAST( NULL AS DECIMAL ) - - 22 THEN NULL ELSE - - 43 END * + COUNT( * ) + - + MIN( - 81 )
----
-32
38

skipif mysql # not compatible
query II rowsort label-750
SELECT - NULLIF ( + + 32, - 4 ) AS col2, COUNT ( * ) * - + CASE + 62 WHEN + CAST ( NULL AS REAL ) - - 22 THEN NULL ELSE - - 43 END * + COUNT ( * ) + - + MIN ( - 81 )
----
-32
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-751
SELECT - 9 + + 0 + + CAST( - COUNT( * ) AS SIGNED ) * - - 4 + 11
----
-2

skipif mysql # not compatible
query I rowsort label-751
SELECT - 9 + + 0 + + CAST ( - COUNT ( * ) AS INTEGER ) * - - 4 + 11
----
-2

query I rowsort
SELECT NULLIF ( 65, 28 )
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-753
SELECT ALL + + 44 DIV 73 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-753
SELECT ALL + + 44 / 73 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-754
SELECT DISTINCT 59 DIV - 26 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-754
SELECT DISTINCT 59 / - 26 AS col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-755
SELECT 56 DIV - COALESCE ( + + 87, CAST( NULL AS SIGNED ) * 21 DIV + 74, 76 + COALESCE ( + ( + + 35 ), + - ( - MAX( DISTINCT + 42 ) ) - + + 89, + - 43 + COUNT( * ) ) + 28 ) * COUNT( 15 ) * 44 + 46 + 54
----
100

skipif mysql # not compatible
query I rowsort label-755
SELECT 56 / - COALESCE ( + + 87, CAST ( NULL AS INTEGER ) * 21 / + 74, 76 + COALESCE ( + ( + + 35 ), + - ( - MAX ( DISTINCT + 42 ) ) - + + 89, + - 43 + COUNT ( * ) ) + 28 ) * COUNT ( 15 ) * 44 + 46 + 54
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-756
SELECT + CAST( - 40 AS SIGNED )
----
-40

skipif mysql # not compatible
query I rowsort label-756
SELECT + CAST ( - 40 AS INTEGER )
----
-40

onlyif mysql # DIV for integer division: 
query II rowsort label-757
SELECT + 81 DIV - 9 - - - 94, 90 AS col2
----
-103
90

skipif mysql # not compatible
query II rowsort label-757
SELECT + 81 / - 9 - - - 94, 90 AS col2
----
-103
90

onlyif mysql # aggregate syntax: 
query I rowsort label-758
SELECT + - COUNT( * ) * + COUNT( * ) - - 97
----
96

skipif mysql # not compatible
query I rowsort label-758
SELECT + - COUNT ( * ) * + COUNT ( * ) - - 97
----
96

query II rowsort
SELECT + 56 * + 64 + - 69, 64 AS col0
----
3515
64

onlyif mysql # aggregate syntax: 
query I rowsort label-760
SELECT + COUNT( + 46 ) + - - COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-760
SELECT + COUNT ( + 46 ) + - - COUNT ( * ) AS col0
----
2

query II rowsort
SELECT DISTINCT + - 39 AS col1, 62
----
-39
62

onlyif mysql # aggregate syntax: 
query I rowsort label-762
SELECT - 60 * - + 80 + 75 * + + COUNT( - - 7 )
----
4875

skipif mysql # not compatible
query I rowsort label-762
SELECT - 60 * - + 80 + 75 * + + COUNT ( - - 7 )
----
4875

query I rowsort
SELECT - 27 * + 38 AS col0
----
-1026

onlyif mysql # aggregate syntax: 
query I rowsort label-764
SELECT ALL 64 * - NULLIF ( - 15, + COUNT( * ) ) * - + COUNT( * ) + - 94 AS col2
----
-1054

skipif mysql # not compatible
query I rowsort label-764
SELECT ALL 64 * - NULLIF ( - 15, + COUNT ( * ) ) * - + COUNT ( * ) + - 94 AS col2
----
-1054

onlyif mysql # aggregate syntax: 
query I rowsort label-765
SELECT - + 29 + + COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-765
SELECT - + 29 + + COUNT ( * )
----
-28

query I rowsort
SELECT + 54 - - 94
----
148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-767
SELECT ALL + 90 * - AVG ( DISTINCT + 65 ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-767
SELECT ALL + 90 * - AVG ( DISTINCT + 65 ) / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 14 * - 35 + - 43 * - + 4
----
662

onlyif mysql # aggregate syntax: 
query I rowsort label-769
SELECT - COALESCE ( + 26, + 8 + - + 20, COUNT( * ), 38 + - 2 ) * 36
----
-936

skipif mysql # not compatible
query I rowsort label-769
SELECT - COALESCE ( + 26, + 8 + - + 20, COUNT ( * ), 38 + - 2 ) * 36
----
-936

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-770
SELECT DISTINCT + - 51 * 4 + CAST( AVG ( DISTINCT + 67 ) AS SIGNED ) + + - 14 AS col2
----
-151

skipif mysql # not compatible
query I rowsort label-770
SELECT DISTINCT + - 51 * 4 + CAST ( AVG ( DISTINCT + 67 ) AS INTEGER ) + + - 14 AS col2
----
-151

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-771
SELECT + CAST( + 59 AS SIGNED ) DIV - 87
----
0

skipif mysql # not compatible
query I rowsort label-771
SELECT + CAST ( + 59 AS INTEGER ) / - 87
----
0

query I rowsort
SELECT + 87 + - ( + 14 ) - + 81 * + 63 AS col1
----
-5030

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

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

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

skipif mysql # not compatible
query I rowsort label-774
SELECT ALL CAST ( NULL AS INTEGER ) + + - COUNT ( * ) - + - 29 * - + 64 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-775
SELECT + 51 * 31 * ( - 96 ) * + 31 + + + 30 * COUNT( * ) AS col0
----
-4705026

skipif mysql # not compatible
query I rowsort label-775
SELECT + 51 * 31 * ( - 96 ) * + 31 + + + 30 * COUNT ( * ) AS col0
----
-4705026

query I rowsort
SELECT + 27 * + - 11 * - 13
----
3861

onlyif mysql # aggregate syntax: 
query I rowsort label-777
SELECT + 91 - COUNT( DISTINCT 21 ) + + + NULLIF ( + 41, + 68 + - 94 ) AS col0
----
131

skipif mysql # not compatible
query I rowsort label-777
SELECT + 91 - COUNT ( DISTINCT 21 ) + + + NULLIF ( + 41, + 68 + - 94 ) AS col0
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-778
SELECT - MAX( 6 ) * COUNT( * ) * 19 AS col2
----
-114

skipif mysql # not compatible
query I rowsort label-778
SELECT - MAX ( 6 ) * COUNT ( * ) * 19 AS col2
----
-114

query I rowsort
SELECT + 68 - - + 57
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-780
SELECT + MAX( ALL + 41 ) * + + 93 AS col2
----
3813

skipif mysql # not compatible
query I rowsort label-780
SELECT + MAX ( ALL + 41 ) * + + 93 AS col2
----
3813

query I rowsort
SELECT DISTINCT CASE + 19 WHEN - + 51 + 64 + - 11 / - 33 THEN + 8 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-782
SELECT ALL + 7 DIV - 97 * + 46
----
0

skipif mysql # not compatible
query I rowsort label-782
SELECT ALL + 7 / - 97 * + 46
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-783
SELECT - - 1 - - MIN( ALL - 65 ) + - + 2 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-783
SELECT - - 1 - - MIN ( ALL - 65 ) + - + 2 AS col2
----
-66

query I rowsort
SELECT - 18 * - - COALESCE ( + 97, + 22 ) * - 40 * - 30 AS col1
----
-2095200

onlyif mysql # DIV for integer division: 
query I rowsort label-785
SELECT ALL + 46 DIV + 77 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-785
SELECT ALL + 46 / + 77 AS col2
----
0

query I rowsort
SELECT + 84 * + 4 col2
----
336

query I rowsort
SELECT + + 89 * + 44 - + 77
----
3839

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-788
SELECT ALL ( - - 39 ) DIV + + ( - COALESCE ( + SUM( 99 ), NULLIF ( - 99, COALESCE ( - 63, 91 ) DIV - + 65 ) + + ( COALESCE ( + 86, - COUNT( 31 ) + COUNT( * ) ) ) ) ) + - 99 + + 58 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-788
SELECT ALL ( - - 39 ) / + + ( - COALESCE ( + SUM ( 99 ), NULLIF ( - 99, COALESCE ( - 63, 91 ) / - + 65 ) + + ( COALESCE ( + 86, - COUNT ( 31 ) + COUNT ( * ) ) ) ) ) + - 99 + + 58 AS col2
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-789
SELECT ALL + 53 DIV + 78 + 63 * - 37
----
-2331

skipif mysql # not compatible
query I rowsort label-789
SELECT ALL + 53 / + 78 + 63 * - 37
----
-2331

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-790
SELECT ALL - - 92 DIV - 23 + - CAST( - ( COUNT( * ) ) AS SIGNED ) * + + 52
----
48

skipif mysql # not compatible
query I rowsort label-790
SELECT ALL - - 92 / - 23 + - CAST ( - ( COUNT ( * ) ) AS INTEGER ) * + + 52
----
48

query I rowsort
SELECT + 65 * + - 77 + 8 AS col1
----
-4997

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-793
SELECT 97 * 54 * + COUNT( * ) - + 73 - - 90 + 91
----
5346

skipif mysql # not compatible
query I rowsort label-793
SELECT 97 * 54 * + COUNT ( * ) - + 73 - - 90 + 91
----
5346

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-794
SELECT - ( + 46 ) + + 64 + - - SUM( 55 ) + - - CAST( + 7 AS SIGNED )
----
80

skipif mysql # not compatible
query I rowsort label-794
SELECT - ( + 46 ) + + 64 + - - SUM ( 55 ) + - - CAST ( + 7 AS INTEGER )
----
80

query I rowsort
SELECT - 14 + - 33 + 4 + + 50 AS col0
----
7

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-797
SELECT ALL + CAST( + MIN( ALL - 4 ) AS SIGNED )
----
-4

skipif mysql # not compatible
query I rowsort label-797
SELECT ALL + CAST ( + MIN ( ALL - 4 ) AS INTEGER )
----
-4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-799
SELECT ALL COUNT( * ) - + - MIN( ALL - 20 ) - + 14 + + + 66 - 47 * COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-799
SELECT ALL COUNT ( * ) - + - MIN ( ALL - 20 ) - + 14 + + + 66 - 47 * COUNT ( * )
----
-14

query I rowsort
SELECT ALL + 4 * - - 57 AS col2
----
228

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-801
SELECT NULLIF ( CASE + 33 WHEN + 78 THEN NULL WHEN - 84 * + 94 + + 85 THEN 48 + CAST( NULL AS SIGNED ) ELSE NULL END, - - COUNT( DISTINCT 44 ) ) + + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-801
SELECT NULLIF ( CASE + 33 WHEN + 78 THEN NULL WHEN - 84 * + 94 + + 85 THEN 48 + CAST ( NULL AS INTEGER ) ELSE NULL END, - - COUNT ( DISTINCT 44 ) ) + + + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT 9 + - 52
----
-43

query I rowsort
SELECT 12 * - + 24
----
-288

query I rowsort
SELECT 18 + - 37 AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-805
SELECT 37 + + COUNT( * ) col1
----
38

skipif mysql # not compatible
query I rowsort label-805
SELECT 37 + + COUNT ( * ) col1
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-806
SELECT ALL 17 AS col1, + COALESCE ( 48, CAST( + 93 AS SIGNED ) * - 19 + 90 ) + + - CASE + 14 WHEN + - 68 * 5 + 22 * - 5 * - 60 THEN + - 93 WHEN + COUNT( * ) * - - MIN( DISTINCT + 6 ) THEN NULL END + - 95 * - 14 AS col2
----
17
NULL

skipif mysql # not compatible
query II rowsort label-806
SELECT ALL 17 AS col1, + COALESCE ( 48, CAST ( + 93 AS INTEGER ) * - 19 + 90 ) + + - CASE + 14 WHEN + - 68 * 5 + 22 * - 5 * - 60 THEN + - 93 WHEN + COUNT ( * ) * - - MIN ( DISTINCT + 6 ) THEN NULL END + - 95 * - 14 AS col2
----
17
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-807
SELECT 44 DIV + 98 * + - 25 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-807
SELECT 44 / + 98 * + - 25 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-808
SELECT DISTINCT 73 DIV + 71 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-808
SELECT DISTINCT 73 / + 71 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-809
SELECT ALL 2 DIV 9 * - + 9 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-809
SELECT ALL 2 / 9 * - + 9 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-810
SELECT 63 + - COALESCE ( + 97, - + 64 * 95 + + ( + + MAX( ALL + 85 ) ), 19 + + COUNT( * ) ) - - + COUNT( * ) AS col2, - 7 - + - 58 DIV - + 41 AS col2
----
-33
-8

skipif mysql # not compatible
query II rowsort label-810
SELECT 63 + - COALESCE ( + 97, - + 64 * 95 + + ( + + MAX ( ALL + 85 ) ), 19 + + COUNT ( * ) ) - - + COUNT ( * ) AS col2, - 7 - + - 58 / - + 41 AS col2
----
-33
-8

query I rowsort
SELECT ALL 26 * - - 29 AS col0
----
754

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

skipif mysql # not compatible
query I rowsort label-812
SELECT 69 / 57
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-813
SELECT DISTINCT - COUNT( * ) * - + 14 DIV + 57
----
0

skipif mysql # not compatible
query I rowsort label-813
SELECT DISTINCT - COUNT ( * ) * - + 14 / + 57
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-814
SELECT - COUNT( * ) * + 81 + CASE + 12 WHEN - + 27 THEN NULL WHEN 83 THEN + CAST( + 21 AS SIGNED ) END * - SUM( 18 ) * - - ( - + 33 ) - + + 12 - + 30 - - 40 * + + 28 / - SUM( - + 72 ) + - 27 + + - 47 - 94 * 71 * - 15 * 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-814
SELECT - COUNT ( * ) * + 81 + CASE + 12 WHEN - + 27 THEN NULL WHEN 83 THEN + CAST ( + 21 AS INTEGER ) END * - SUM ( 18 ) * - - ( - + 33 ) - + + 12 - + 30 - - 40 * + + 28 / - SUM ( - + 72 ) + - 27 + + - 47 - 94 * 71 * - 15 * 83 AS col0
----
NULL

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

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

query I rowsort
SELECT DISTINCT - 17 * 89 AS col0
----
-1513

onlyif mysql # aggregate syntax: 
query I rowsort label-817
SELECT + MIN( ALL - 40 ) + 39 + - 86
----
-87

skipif mysql # not compatible
query I rowsort label-817
SELECT + MIN ( ALL - 40 ) + 39 + - 86
----
-87

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

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

query I rowsort
SELECT DISTINCT 21 + - 0 * + CASE + 66 WHEN 85 THEN + 57 ELSE + 47 END AS col2
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-820
SELECT DISTINCT 61 * + + 34 * 85 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-820
SELECT DISTINCT 61 * + + 34 * 85 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-821
SELECT ALL - + 22 + + NULLIF ( + NULLIF ( - 5, 69 ), COUNT( * ) )
----
-27

skipif mysql # not compatible
query I rowsort label-821
SELECT ALL - + 22 + + NULLIF ( + NULLIF ( - 5, 69 ), COUNT ( * ) )
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-822
SELECT + ( ( + COALESCE ( CAST( NULL AS SIGNED ), + CASE - 51 WHEN 41 * - + 1 THEN + 12 WHEN - 23 THEN - + ( - + 9 ) ELSE NULL END ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-822
SELECT + ( ( + COALESCE ( CAST ( NULL AS INTEGER ), + CASE - 51 WHEN 41 * - + 1 THEN + 12 WHEN - 23 THEN - + ( - + 9 ) ELSE NULL END ) ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-823
SELECT ALL - 65 AS col1, + CASE - + 28 WHEN + 76 THEN + 76 * - 81 / CAST( - 11 AS SIGNED ) - - 62 * + - 92 / + NULLIF ( + 44, - 11 ) + - ( 61 ) WHEN COUNT( * ) + - MIN( DISTINCT ( - 47 ) ) THEN 92 END
----
-65
NULL

skipif mysql # not compatible
query II rowsort label-823
SELECT ALL - 65 AS col1, + CASE - + 28 WHEN + 76 THEN + 76 * - 81 / CAST ( - 11 AS INTEGER ) - - 62 * + - 92 / + NULLIF ( + 44, - 11 ) + - ( 61 ) WHEN COUNT ( * ) + - MIN ( DISTINCT ( - 47 ) ) THEN 92 END
----
-65
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-824
SELECT - - 27 DIV - 82 + + + 31 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-824
SELECT - - 27 / - 82 + + + 31 AS col2
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-825
SELECT ALL + 32 + + COUNT( * ) * + 35 + - 16 * + COALESCE ( + 91, 58, - + 67 + - 14 + + 26 ) + 14 / + 32 / CAST( - - CASE + 21 WHEN - ( ( - + COUNT( * ) ) ) THEN COUNT( * ) * - - 39 END AS DECIMAL ) / MIN( DISTINCT CAST( 45 AS SIGNED ) / - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-825
SELECT ALL + 32 + + COUNT ( * ) * + 35 + - 16 * + COALESCE ( + 91, 58, - + 67 + - 14 + + 26 ) + 14 / + 32 / CAST ( - - CASE + 21 WHEN - ( ( - + COUNT ( * ) ) ) THEN COUNT ( * ) * - - 39 END AS REAL ) / MIN ( DISTINCT CAST ( 45 AS INTEGER ) / - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-826
SELECT ALL 6 + - 40 - COUNT( * ) - + 14 * - NULLIF ( + - 4, + - 5 ) - MAX( DISTINCT + 33 ) + + - 72 + COALESCE ( CAST( NULL AS SIGNED ), - ( - + COUNT( * ) ) + + ( 47 ) ) * + - 29 + - 21 + - 89 DIV 9 AS col1
----
-1618

skipif mysql # not compatible
query I rowsort label-826
SELECT ALL 6 + - 40 - COUNT ( * ) - + 14 * - NULLIF ( + - 4, + - 5 ) - MAX ( DISTINCT + 33 ) + + - 72 + COALESCE ( CAST ( NULL AS INTEGER ), - ( - + COUNT ( * ) ) + + ( 47 ) ) * + - 29 + - 21 + - 89 / 9 AS col1
----
-1618

onlyif mysql # DIV for integer division: 
query I rowsort label-827
SELECT + 84 DIV + 39
----
2

skipif mysql # not compatible
query I rowsort label-827
SELECT + 84 / + 39
----
2

query I rowsort
SELECT ALL - ( + ( 10 ) ) AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-829
SELECT - NULLIF ( - 62, + SUM( 71 ) * + 32 ) * - ( + 98 ) + 94 * - 34 * + + 97 * + 9 AS col0
----
-2796184

skipif mysql # not compatible
query I rowsort label-829
SELECT - NULLIF ( - 62, + SUM ( 71 ) * + 32 ) * - ( + 98 ) + 94 * - 34 * + + 97 * + 9 AS col0
----
-2796184

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-830
SELECT DISTINCT + + 67 * CASE + + 41 WHEN 83 THEN - ( CASE NULLIF ( - 17, - 65 * - 49 * - ( + 98 ) ) WHEN + 53 THEN + + ( + 12 ) WHEN - - 43 THEN NULL ELSE + - 7 END ) DIV + - 65 WHEN + - 84 THEN NULL ELSE + + 30 * 97 END - + COUNT( 23 )
----
194969

skipif mysql # not compatible
query I rowsort label-830
SELECT DISTINCT + + 67 * CASE + + 41 WHEN 83 THEN - ( CASE NULLIF ( - 17, - 65 * - 49 * - ( + 98 ) ) WHEN + 53 THEN + + ( + 12 ) WHEN - - 43 THEN NULL ELSE + - 7 END ) / + - 65 WHEN + - 84 THEN NULL ELSE + + 30 * 97 END - + COUNT ( 23 )
----
194969

onlyif mysql # aggregate syntax: 
query I rowsort label-831
SELECT ALL - - COALESCE ( - + 5, - 40 * - + 98 ) - - MAX( - 3 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-831
SELECT ALL - - COALESCE ( - + 5, - 40 * - + 98 ) - - MAX ( - 3 ) AS col1
----
-8

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

query I rowsort
SELECT 19 + 59
----
78

query I rowsort
SELECT 22 * 76 AS col1
----
1672

query I rowsort
SELECT ALL 16 * - 27
----
-432

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-837
SELECT 34, + CASE 84 WHEN + - 41 THEN - ( + COUNT( * ) ) END * + + 57 + + 8 + + 55 + - - CASE + 82 WHEN - CAST( - 21 AS SIGNED ) THEN 9 WHEN 92 THEN NULL WHEN + - 39 * - - 90 + - + 19 - - 65 THEN - 20 END AS col1
----
34
NULL

skipif mysql # not compatible
query II rowsort label-837
SELECT 34, + CASE 84 WHEN + - 41 THEN - ( + COUNT ( * ) ) END * + + 57 + + 8 + + 55 + - - CASE + 82 WHEN - CAST ( - 21 AS INTEGER ) THEN 9 WHEN 92 THEN NULL WHEN + - 39 * - - 90 + - + 19 - - 65 THEN - 20 END AS col1
----
34
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-838
SELECT 54 + + + NULLIF ( + MAX( 7 ), - - 13 ) * - SUM( 78 )
----
-492

skipif mysql # not compatible
query I rowsort label-838
SELECT 54 + + + NULLIF ( + MAX ( 7 ), - - 13 ) * - SUM ( 78 )
----
-492

query II rowsort
SELECT + 5, - 19 AS col1
----
5
-19

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

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

query I rowsort
SELECT DISTINCT - 55 * - 89 * + 68 AS col1
----
332860

query II rowsort
SELECT DISTINCT 64 AS col0, 37 * + + 29 AS col1
----
64
1073

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-843
SELECT DISTINCT 68, - COUNT( * ) - - 77 - CAST( NULL AS SIGNED ) + 84 * 33 * 50 - + ( + 58 ) AS col1
----
68
NULL

skipif mysql # not compatible
query II rowsort label-843
SELECT DISTINCT 68, - COUNT ( * ) - - 77 - CAST ( NULL AS INTEGER ) + 84 * 33 * 50 - + ( + 58 ) AS col1
----
68
NULL

query I rowsort
SELECT DISTINCT 50 * 52 AS col1
----
2600

onlyif mysql # aggregate syntax: 
query I rowsort label-845
SELECT DISTINCT - ( - COUNT( * ) ) * 91 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-845
SELECT DISTINCT - ( - COUNT ( * ) ) * 91 AS col1
----
91

query II rowsort
SELECT - 75 AS col1, ( + 9 )
----
-75
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-847
SELECT 72 * + + 31 DIV + - COUNT( * ) AS col1
----
-2232

skipif mysql # not compatible
query I rowsort label-847
SELECT 72 * + + 31 / + - COUNT ( * ) AS col1
----
-2232

query I rowsort
SELECT 43 - - + 32 AS col0
----
75

query II rowsort
SELECT + 81 AS col1, 7 AS col0
----
81
7

onlyif mysql # aggregate syntax: 
query I rowsort label-850
SELECT 11 * ( ( + COUNT( * ) ) ) * 16 AS col0
----
176

skipif mysql # not compatible
query I rowsort label-850
SELECT 11 * ( ( + COUNT ( * ) ) ) * 16 AS col0
----
176

onlyif mysql # aggregate syntax: 
query II rowsort label-851
SELECT COALESCE ( + + ( - 73 ), - 35 * + COUNT( * ) * 97 + + 33 ) + - + 27 * - - COUNT( * ) AS col0, + 92
----
-100
92

skipif mysql # not compatible
query II rowsort label-851
SELECT COALESCE ( + + ( - 73 ), - 35 * + COUNT ( * ) * 97 + + 33 ) + - + 27 * - - COUNT ( * ) AS col0, + 92
----
-100
92

query II rowsort
SELECT - 4, 33 * + - 11 AS col2
----
-4
-363

query I rowsort
SELECT 90 - 17 * + 29 * + 45
----
-22095

onlyif mysql # aggregate syntax: 
query I rowsort label-854
SELECT DISTINCT + + 40 + - COUNT( * ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-854
SELECT DISTINCT + + 40 + - COUNT ( * ) AS col2
----
39

query I rowsort
SELECT ALL 90 + - + 9 AS col2
----
81

query II rowsort
SELECT 14 AS col0, - ( 94 ) * + 12
----
14
-1128

query I rowsort
SELECT ALL + - COALESCE ( + 96, + + 41 )
----
-96

query I rowsort
SELECT + 9 * + 17 AS col1
----
153

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-860
SELECT ALL + CASE - 3 WHEN + COUNT( * ) + 27 + 39 THEN NULL WHEN + 77 THEN NULL WHEN - MAX( ALL + 68 ) + + AVG ( DISTINCT + + 46 ) THEN 27 * 84 + - 6 END, 60 AS col2
----
NULL
60

skipif mysql # not compatible
query II rowsort label-860
SELECT ALL + CASE - 3 WHEN + COUNT ( * ) + 27 + 39 THEN NULL WHEN + 77 THEN NULL WHEN - MAX ( ALL + 68 ) + + AVG ( DISTINCT + + 46 ) THEN 27 * 84 + - 6 END, 60 AS col2
----
NULL
60

query I rowsort
SELECT 13 * 42 + + 11 AS col2
----
557

query I rowsort
SELECT + 99 * - 77
----
-7623

query I rowsort
SELECT + NULLIF ( 77, - + AVG ( ALL 13 ) ) AS col0
----
77

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

skipif mysql # not compatible
query I rowsort label-864
SELECT COUNT ( - ( 14 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-865
SELECT + 92 + - CASE + 10 WHEN 71 THEN - COUNT( * ) - + - 31 WHEN 21 * + - 42 THEN 48 ELSE NULL END * - 75 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-865
SELECT + 92 + - CASE + 10 WHEN 71 THEN - COUNT ( * ) - + - 31 WHEN 21 * + - 42 THEN 48 ELSE NULL END * - 75 col0
----
NULL

query I rowsort
SELECT - 57 * + 52
----
-2964

query I rowsort
SELECT + 68 + 4
----
72

query II rowsort
SELECT ALL - 69 * + 49 AS col1, 6 * - 69 + + 29 AS col1
----
-3381
-385

onlyif mysql # aggregate syntax: 
query I rowsort label-869
SELECT + NULLIF ( + 51, 69 * + COUNT( * ) + 22 + 91 * - 98 + + 96 ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-869
SELECT + NULLIF ( + 51, 69 * + COUNT ( * ) + 22 + 91 * - 98 + + 96 ) AS col1
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-870
SELECT + 21 DIV - SUM( - 26 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-870
SELECT + 21 / - SUM ( - 26 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-871
SELECT ALL NULLIF ( COUNT( * ), - ( + 86 ) ) * 93 * - + 0 * + - 9 + + 14 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-871
SELECT ALL NULLIF ( COUNT ( * ), - ( + 86 ) ) * 93 * - + 0 * + - 9 + + 14 AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-872
SELECT + 50 * + + 80 + - - COUNT( + COALESCE ( + - 28, + + ( - - NULLIF ( - - ( + + 42 ), 62 ) ) ) )
----
4001

skipif mysql # not compatible
query I rowsort label-872
SELECT + 50 * + + 80 + - - COUNT ( + COALESCE ( + - 28, + + ( - - NULLIF ( - - ( + + 42 ), 62 ) ) ) )
----
4001

query I rowsort
SELECT - 15 + 49 AS col1
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-874
SELECT + 85 DIV + 37
----
2

skipif mysql # not compatible
query I rowsort label-874
SELECT + 85 / + 37
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT - 87 * - - SUM( DISTINCT + 1 ) + + 33
----
-54

skipif mysql # not compatible
query I rowsort label-875
SELECT - 87 * - - SUM ( DISTINCT + 1 ) + + 33
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-876
SELECT + 79 + + MAX( - + 64 ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-876
SELECT + 79 + + MAX ( - + 64 ) AS col1
----
15

query I rowsort
SELECT - 84 - 10 col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-878
SELECT ALL + 79 + - - 33 + + 24 * MAX( + 89 )
----
2248

skipif mysql # not compatible
query I rowsort label-878
SELECT ALL + 79 + - - 33 + + 24 * MAX ( + 89 )
----
2248

onlyif mysql # aggregate syntax: 
query I rowsort label-879
SELECT - ( 47 ) - 80 + COUNT( * ) col0
----
-126

skipif mysql # not compatible
query I rowsort label-879
SELECT - ( 47 ) - 80 + COUNT ( * ) col0
----
-126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-880
SELECT ALL - ( + 10 ) + NULLIF ( SUM( + + 19 ), - 23 ) - + 33 DIV - - 47 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-880
SELECT ALL - ( + 10 ) + NULLIF ( SUM ( + + 19 ), - 23 ) - + 33 / - - 47 AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-881
SELECT ALL COUNT( * ) + COUNT( * ) + - 56 * 67
----
-3750

skipif mysql # not compatible
query I rowsort label-881
SELECT ALL COUNT ( * ) + COUNT ( * ) + - 56 * 67
----
-3750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-882
SELECT - + 12 + - CAST( NULL AS SIGNED ) * 39 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-882
SELECT - + 12 + - CAST ( NULL AS INTEGER ) * 39 + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - - 38 + 37
----
75

query I rowsort
SELECT - CASE - 13 WHEN ( - + 0 ) + 59 + + 87 * 25 THEN NULL ELSE + + 25 END
----
-25

query II rowsort
SELECT DISTINCT + 74 * + 92, - 44 AS col0
----
6808
-44

query II rowsort
SELECT + 27 * - 46, + 96 col1
----
-1242
96

query I rowsort
SELECT - 66 + + + 77
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-888
SELECT ALL 24 - 33 * + + SUM( - 20 ) + - 17 AS col1, 16 DIV - COUNT( + + NULLIF ( - + 3, + 83 ) )
----
667
-16

skipif mysql # not compatible
query II rowsort label-888
SELECT ALL 24 - 33 * + + SUM ( - 20 ) + - 17 AS col1, 16 / - COUNT ( + + NULLIF ( - + 3, + 83 ) )
----
667
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-889
SELECT - 93 * + 48 col2, CASE 73 WHEN - + MAX( ALL + - CAST( + 69 AS DECIMAL ) ) THEN + + 42 WHEN - NULLIF ( + - COUNT( * ), - 25 + + 90 ) THEN NULL WHEN - CAST( COALESCE ( - - NULLIF ( - - 3, - 19 ), - 0 ) AS SIGNED ) THEN - - COUNT( + - 68 ) * 7 * - 75 * 64 + + COUNT( * ) END
----
-4464
NULL

skipif mysql # not compatible
query II rowsort label-889
SELECT - 93 * + 48 col2, CASE 73 WHEN - + MAX ( ALL + - CAST ( + 69 AS REAL ) ) THEN + + 42 WHEN - NULLIF ( + - COUNT ( * ), - 25 + + 90 ) THEN NULL WHEN - CAST ( COALESCE ( - - NULLIF ( - - 3, - 19 ), - 0 ) AS INTEGER ) THEN - - COUNT ( + - 68 ) * 7 * - 75 * 64 + + COUNT ( * ) END
----
-4464
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-890
SELECT CAST( - 56 AS SIGNED ) AS col0, COUNT( * ) AS col2
----
-56
1

skipif mysql # not compatible
query II rowsort label-890
SELECT CAST ( - 56 AS INTEGER ) AS col0, COUNT ( * ) AS col2
----
-56
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-891
SELECT ALL + COUNT( * ) DIV - 60 - - 0 * 19 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-891
SELECT ALL + COUNT ( * ) / - 60 - - 0 * 19 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-892
SELECT + COUNT( * ) + 41 * - 3, + 76 AS col2
----
-122
76

skipif mysql # not compatible
query II rowsort label-892
SELECT + COUNT ( * ) + 41 * - 3, + 76 AS col2
----
-122
76

query I rowsort
SELECT + 98 + 39 AS col0
----
137

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

onlyif mysql # aggregate syntax: 
query II rowsort label-895
SELECT + 40 * + 26 + + + COUNT( * ) AS col0, + 1 AS col2
----
1041
1

skipif mysql # not compatible
query II rowsort label-895
SELECT + 40 * + 26 + + + COUNT ( * ) AS col0, + 1 AS col2
----
1041
1

query II rowsort
SELECT ALL + 99 AS col2, 6 AS col2
----
99
6

query I rowsort
SELECT + 45 * + 69 col1
----
3105

onlyif mysql # aggregate syntax: 
query I rowsort label-898
SELECT ( + - CASE + + COUNT( * ) WHEN - 91 THEN + - 83 + 1 WHEN + 33 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-898
SELECT ( + - CASE + + COUNT ( * ) WHEN - 91 THEN + - 83 + 1 WHEN + 33 THEN NULL END )
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-900
SELECT ALL - 86 * - 52 / + 33 * 14 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-900
SELECT ALL - 86 * - 52 / + 33 * 14 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-901
SELECT DISTINCT + 3 * + - 7 * 65 + CAST( - 29 AS SIGNED ) * 14 * + - 12 AS col2
----
3507

skipif mysql # not compatible
query I rowsort label-901
SELECT DISTINCT + 3 * + - 7 * 65 + CAST ( - 29 AS INTEGER ) * 14 * + - 12 AS col2
----
3507

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-902
SELECT + ( COUNT( + CAST( NULL AS SIGNED ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-902
SELECT + ( COUNT ( + CAST ( NULL AS INTEGER ) ) )
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-904
SELECT CASE - - 35 WHEN MAX( + 41 ) + + 56 + 38 THEN NULL WHEN - 2 + 52 THEN COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-904
SELECT CASE - - 35 WHEN MAX ( + 41 ) + + 56 + 38 THEN NULL WHEN - 2 + 52 THEN COUNT ( * ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-905
SELECT + CASE - - 84 WHEN 58 / - - 63 / COUNT( * ) + + 99 + - 54 + - - ( - - COUNT( * ) ) + - 68 + + 13 THEN - 36 * + NULLIF ( + COUNT( * ), - NULLIF ( - - CASE - 24 WHEN - + ( + - COUNT( * ) ) THEN + 54 * - + ( 48 ) + - ( + 83 ) ELSE 1 * 44 END, + 41 + - 49 ) * + NULLIF ( 61, 34 + COALESCE ( - 30 + - NULLIF ( + 13, + 91 / 90 ), - 71 ) ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-905
SELECT + CASE - - 84 WHEN 58 / - - 63 / COUNT ( * ) + + 99 + - 54 + - - ( - - COUNT ( * ) ) + - 68 + + 13 THEN - 36 * + NULLIF ( + COUNT ( * ), - NULLIF ( - - CASE - 24 WHEN - + ( + - COUNT ( * ) ) THEN + 54 * - + ( 48 ) + - ( + 83 ) ELSE 1 * 44 END, + 41 + - 49 ) * + NULLIF ( 61, 34 + COALESCE ( - 30 + - NULLIF ( + 13, + 91 / 90 ), - 71 ) ) ) ELSE NULL END
----
NULL

query II rowsort
SELECT DISTINCT 83 * - 93 + - + 59, ( - 96 ) col2
----
-7778
-96

query I rowsort
SELECT ALL 51 * + + 86 + 96 col2
----
4482

onlyif mysql # aggregate syntax: 
query I rowsort label-908
SELECT + - COUNT( DISTINCT - + 23 ) * + ( - 63 ) + ( - 18 ) * - COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-908
SELECT + - COUNT ( DISTINCT - + 23 ) * + ( - 63 ) + ( - 18 ) * - COUNT ( * )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-909
SELECT DISTINCT + COUNT( DISTINCT 4 )
----
1

skipif mysql # not compatible
query I rowsort label-909
SELECT DISTINCT + COUNT ( DISTINCT 4 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-910
SELECT DISTINCT - COUNT( * ) * + 29 + + 27 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-910
SELECT DISTINCT - COUNT ( * ) * + 29 + + 27 AS col2
----
-2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-911
SELECT - - NULLIF ( - ( + + 78 ), + 49 ) DIV - 41 - - 5 * + 10 * + + CAST( + ( + + 93 ) AS SIGNED ) * 89
----
413851

skipif mysql # not compatible
query I rowsort label-911
SELECT - - NULLIF ( - ( + + 78 ), + 49 ) / - 41 - - 5 * + 10 * + + CAST ( + ( + + 93 ) AS INTEGER ) * 89
----
413851

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-912
SELECT + 15 * + COUNT( * ) * 4 AS col1, + COUNT( * ) * + - 73 + - - CAST( 84 AS SIGNED ) + + MAX( - 62 ) AS col1
----
60
-51

skipif mysql # not compatible
query II rowsort label-912
SELECT + 15 * + COUNT ( * ) * 4 AS col1, + COUNT ( * ) * + - 73 + - - CAST ( 84 AS INTEGER ) + + MAX ( - 62 ) AS col1
----
60
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-913
SELECT - 84 * + 25 + + - COUNT( DISTINCT - 2 ) + 45 * - + 32
----
-3541

skipif mysql # not compatible
query I rowsort label-913
SELECT - 84 * + 25 + + - COUNT ( DISTINCT - 2 ) + 45 * - + 32
----
-3541

query I rowsort
SELECT + 28 - - 27 + - - 88 AS col0
----
143

onlyif mysql # DIV for integer division: 
query I rowsort label-915
SELECT ALL - 86 DIV - 84 + 35 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-915
SELECT ALL - 86 / - 84 + 35 AS col0
----
36

query I rowsort
SELECT COALESCE ( 90, + 17, - 16 + ( 86 ), + + 60 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-917
SELECT - 25 * CASE - COUNT( * ) WHEN + 22 THEN + ( + 28 ) + + 71 WHEN - + 43 * - 53 THEN NULL ELSE - 22 + + 6 END
----
400

skipif mysql # not compatible
query I rowsort label-917
SELECT - 25 * CASE - COUNT ( * ) WHEN + 22 THEN + ( + 28 ) + + 71 WHEN - + 43 * - 53 THEN NULL ELSE - 22 + + 6 END
----
400

query II rowsort
SELECT 30 * + ( 11 ) AS col2, + 92 AS col0
----
330
92

onlyif mysql # aggregate syntax: 
query I rowsort label-919
SELECT DISTINCT + - 60 * - 67 * + + MAX( + 60 ) * + 75 * 12 col0
----
217080000

skipif mysql # not compatible
query I rowsort label-919
SELECT DISTINCT + - 60 * - 67 * + + MAX ( + 60 ) * + 75 * 12 col0
----
217080000

query II rowsort
SELECT DISTINCT - 50 col2, + 31 AS col1
----
-50
31

query I rowsort
SELECT DISTINCT + NULLIF ( - ( 76 ), + 87 ) AS col2
----
-76

query I rowsort
SELECT - 27 * - + 76
----
2052

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-923
SELECT ALL + CAST( NULL AS SIGNED ) * + - NULLIF ( - 32, + 43 + + 20 * - 26 - + 76 * + CASE 57 WHEN - 64 THEN + - COUNT( * ) / - 28 * + 77 * - - 4 ELSE NULL END + 61 ) * + 58 * - 94 * - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-923
SELECT ALL + CAST ( NULL AS INTEGER ) * + - NULLIF ( - 32, + 43 + + 20 * - 26 - + 76 * + CASE 57 WHEN - 64 THEN + - COUNT ( * ) / - 28 * + 77 * - - 4 ELSE NULL END + 61 ) * + 58 * - 94 * - 5
----
NULL

query I rowsort
SELECT 19 * - - 40 AS col2
----
760

query I rowsort
SELECT 50 * 42 + + - 68 AS col2
----
2032

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-926
SELECT 38 DIV - MIN( DISTINCT + 17 )
----
-2

skipif mysql # not compatible
query I rowsort label-926
SELECT 38 / - MIN ( DISTINCT + 17 )
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-927
SELECT ALL + COUNT( * ) + 17 DIV 17 DIV + MIN( DISTINCT - 11 )
----
1

skipif mysql # not compatible
query I rowsort label-927
SELECT ALL + COUNT ( * ) + 17 / 17 / + MIN ( DISTINCT - 11 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-928
SELECT DISTINCT 74 DIV - 83 * - 56
----
0

skipif mysql # not compatible
query I rowsort label-928
SELECT DISTINCT 74 / - 83 * - 56
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-929
SELECT ALL 33 + - 2 * + MIN( + 54 ) * + 70 AS col2
----
-7527

skipif mysql # not compatible
query I rowsort label-929
SELECT ALL 33 + - 2 * + MIN ( + 54 ) * + 70 AS col2
----
-7527

onlyif mysql # DIV for integer division: 
query I rowsort label-930
SELECT 63 DIV 12
----
5

skipif mysql # not compatible
query I rowsort label-930
SELECT 63 / 12
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-931
SELECT ALL - COALESCE ( + COUNT( * ), + - 66 )
----
-1

skipif mysql # not compatible
query I rowsort label-931
SELECT ALL - COALESCE ( + COUNT ( * ), + - 66 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-932
SELECT - 42 * + CAST( NULL AS DECIMAL ) + - 12 + + + 0 + - - COALESCE ( - 77, - - 73 ) + + 36 + COALESCE ( + 38, 30 ) * 65 + ( CAST( - 2 AS SIGNED ) ) + - 29 + - 94 * - CASE COUNT( * ) WHEN + + ( + 90 ) / + + SUM( + 78 ) * + + COUNT( DISTINCT - 97 ) THEN NULL ELSE ( 77 ) + - 97 END * 43 * + ( - 96 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-932
SELECT - 42 * + CAST ( NULL AS REAL ) + - 12 + + + 0 + - - COALESCE ( - 77, - - 73 ) + + 36 + COALESCE ( + 38, 30 ) * 65 + ( CAST ( - 2 AS INTEGER ) ) + - 29 + - 94 * - CASE COUNT ( * ) WHEN + + ( + 90 ) / + + SUM ( + 78 ) * + + COUNT ( DISTINCT - 97 ) THEN NULL ELSE ( 77 ) + - 97 END * 43 * + ( - 96 ) AS col2
----
NULL

query I rowsort
SELECT ALL 73 + 31 AS col2
----
104

onlyif mysql # aggregate syntax: 
query II rowsort label-934
SELECT 53 + + COUNT( * ) - + 52 * - + 78 AS col2, + 95 * - MIN( + ( 13 ) ) + - - 82
----
4110
-1153

skipif mysql # not compatible
query II rowsort label-934
SELECT 53 + + COUNT ( * ) - + 52 * - + 78 AS col2, + 95 * - MIN ( + ( 13 ) ) + - - 82
----
4110
-1153

query I rowsort
SELECT 88 * - 91 * - NULLIF ( - 47, - ( + + 22 ) )
----
-376376

query I rowsort
SELECT ALL 67 + - 47
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-937
SELECT ALL - 79 + + ( - 89 ) * + ( 6 ) + - ( + COUNT( * ) ) col2
----
-614

skipif mysql # not compatible
query I rowsort label-937
SELECT ALL - 79 + + ( - 89 ) * + ( 6 ) + - ( + COUNT ( * ) ) col2
----
-614

onlyif mysql # aggregate syntax: 
query II rowsort label-938
SELECT COUNT( * ) * + + 0 + + 34 * + - 15 AS col2, COUNT( * ) AS col1
----
-510
1

skipif mysql # not compatible
query II rowsort label-938
SELECT COUNT ( * ) * + + 0 + + 34 * + - 15 AS col2, COUNT ( * ) AS col1
----
-510
1

query I rowsort
SELECT DISTINCT - 61 - + 29
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-940
SELECT ALL 16 * 20 DIV 17
----
18

skipif mysql # not compatible
query I rowsort label-940
SELECT ALL 16 * 20 / 17
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-941
SELECT - SUM( DISTINCT + 7 ) + - CAST( - + 0 AS SIGNED ) AS col1, 41
----
-7
41

skipif mysql # not compatible
query II rowsort label-941
SELECT - SUM ( DISTINCT + 7 ) + - CAST ( - + 0 AS INTEGER ) AS col1, 41
----
-7
41

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-943
SELECT - 92 * + + 61 + + + COUNT( * ) + + - 65
----
-5676

skipif mysql # not compatible
query I rowsort label-943
SELECT - 92 * + + 61 + + + COUNT ( * ) + + - 65
----
-5676

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

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

query I rowsort
SELECT 65 + + + 26
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-946
SELECT + ( - MIN( DISTINCT - 21 ) )
----
21

skipif mysql # not compatible
query I rowsort label-946
SELECT + ( - MIN ( DISTINCT - 21 ) )
----
21

query I rowsort
SELECT + 9 + + 8
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-948
SELECT ALL COUNT( * ) DIV 94, - 30 col1
----
0
-30

skipif mysql # not compatible
query II rowsort label-948
SELECT ALL COUNT ( * ) / 94, - 30 col1
----
0
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-949
SELECT - NULLIF ( + COUNT( * ), + + 97 * - 3 / + 8 * - 2 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-949
SELECT - NULLIF ( + COUNT ( * ), + + 97 * - 3 / + 8 * - 2 ) AS col1
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-951
SELECT - 85 * + - 36 * + COUNT( ALL + 11 ) * + 36 * NULLIF ( 96, + 43 ) + + 68
----
10575428

skipif mysql # not compatible
query I rowsort label-951
SELECT - 85 * + - 36 * + COUNT ( ALL + 11 ) * + 36 * NULLIF ( 96, + 43 ) + + 68
----
10575428

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-952
SELECT 37 + - 43 + 90 + 18 + COUNT( * ) DIV + 21 + - SUM( + 82 ) DIV + - 94
----
102

skipif mysql # not compatible
query I rowsort label-952
SELECT 37 + - 43 + 90 + 18 + COUNT ( * ) / + 21 + - SUM ( + 82 ) / + - 94
----
102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-953
SELECT 24 * 11 - CAST( NULL AS SIGNED ) * 38 + - 49 + + 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-953
SELECT 24 * 11 - CAST ( NULL AS INTEGER ) * 38 + - 49 + + 64 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-954
SELECT + 51 + 66 - + + 29 DIV 63 * + - 94 * 7 + - 80 + - 14
----
23

skipif mysql # not compatible
query I rowsort label-954
SELECT + 51 + 66 - + + 29 / 63 * + - 94 * 7 + - 80 + - 14
----
23

query II rowsort
SELECT - 81 col2, 35 - + 20 col0
----
-81
15

query I rowsort
SELECT DISTINCT + 27 + - 22 + + 14
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-957
SELECT + COUNT( * ) * 71 * + 28 + - 34 AS col1
----
1954

skipif mysql # not compatible
query I rowsort label-957
SELECT + COUNT ( * ) * 71 * + 28 + - 34 AS col1
----
1954

onlyif mysql # aggregate syntax: 
query I rowsort label-958
SELECT DISTINCT - 32 * - 32 + - COUNT( * ) AS col1
----
1023

skipif mysql # not compatible
query I rowsort label-958
SELECT DISTINCT - 32 * - 32 + - COUNT ( * ) AS col1
----
1023

onlyif mysql # DIV for integer division: 
query I rowsort label-959
SELECT 10 DIV + 21 + - 83 * + 11 * - - 56 AS col0
----
-51128

skipif mysql # not compatible
query I rowsort label-959
SELECT 10 / + 21 + - 83 * + 11 * - - 56 AS col0
----
-51128

query I rowsort
SELECT 66 * + 0
----
0

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

skipif mysql # not compatible
query II rowsort label-961
SELECT + COUNT ( * ), ( - 65 ) col1
----
1
-65

query I rowsort
SELECT 73 + - 20 * 7 col2
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-963
SELECT ALL 57 * 81 DIV 91 + + - COUNT( * ) AS col2
----
49

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

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

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

query II rowsort
SELECT + 57 AS col2, 53 * + + 40
----
57
2120

onlyif mysql # aggregate syntax: 
query II rowsort label-966
SELECT 88 + SUM( - + 20 ) * + 91 + - 98, 96 AS col2
----
-1830
96

skipif mysql # not compatible
query II rowsort label-966
SELECT 88 + SUM ( - + 20 ) * + 91 + - 98, 96 AS col2
----
-1830
96

query I rowsort
SELECT ( - COALESCE ( 83, - 88 ) ) * - 56 + ( + 27 ) AS col0
----
4675

query I rowsort
SELECT ALL - NULLIF ( - 81, + 40 ) col0
----
81

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

skipif mysql # not compatible
query II rowsort label-969
SELECT COUNT ( * ) AS col2, - 32 AS col2
----
1
-32

query I rowsort
SELECT DISTINCT - 93 - + 18
----
-111

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-972
SELECT ALL 20 DIV - 25 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-972
SELECT ALL 20 / - 25 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-973
SELECT 88 DIV 93 * + + ( + - 18 )
----
0

skipif mysql # not compatible
query I rowsort label-973
SELECT 88 / 93 * + + ( + - 18 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-974
SELECT ALL - 75 - - + NULLIF ( - 23, 9 ) * CAST( - 80 AS SIGNED ) AS col0
----
1765

skipif mysql # not compatible
query I rowsort label-974
SELECT ALL - 75 - - + NULLIF ( - 23, 9 ) * CAST ( - 80 AS INTEGER ) AS col0
----
1765

onlyif mysql # DIV for integer division: 
query I rowsort label-975
SELECT ALL - COALESCE ( 76, - 7 * - - 8 + + - 9 DIV + 66 * - 67 )
----
-76

skipif mysql # not compatible
query I rowsort label-975
SELECT ALL - COALESCE ( 76, - 7 * - - 8 + + - 9 / + 66 * - 67 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-976
SELECT 13 * - NULLIF ( - COUNT( * ), + + 16 ) + - 71 - + 4 * - + 48 + + - 26 * - 61 * - - 95 AS col1
----
150804

skipif mysql # not compatible
query I rowsort label-976
SELECT 13 * - NULLIF ( - COUNT ( * ), + + 16 ) + - 71 - + 4 * - + 48 + + - 26 * - 61 * - - 95 AS col1
----
150804

onlyif mysql # DIV for integer division: 
query I rowsort label-977
SELECT 44 DIV - - 93 * ( 15 )
----
0

skipif mysql # not compatible
query I rowsort label-977
SELECT 44 / - - 93 * ( 15 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-978
SELECT DISTINCT - + MAX( 70 ) * 80 col1
----
-5600

skipif mysql # not compatible
query I rowsort label-978
SELECT DISTINCT - + MAX ( 70 ) * 80 col1
----
-5600

onlyif mysql # aggregate syntax: 
query II rowsort label-979
SELECT ALL + COUNT( * ) * 46 + + 18, 8 AS col2
----
64
8

skipif mysql # not compatible
query II rowsort label-979
SELECT ALL + COUNT ( * ) * 46 + + 18, 8 AS col2
----
64
8

query I rowsort
SELECT DISTINCT - 95 * - + 56 AS col0
----
5320

query II rowsort
SELECT 86 AS col2, - 41 AS col0
----
86
-41

query I rowsort
SELECT ALL + - 52 * - 26 AS col0
----
1352

onlyif mysql # aggregate syntax: 
query I rowsort label-983
SELECT DISTINCT - - 76 * COUNT( * ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-983
SELECT DISTINCT - - 76 * COUNT ( * ) AS col2
----
76

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-985
SELECT + 49 DIV MIN( 53 ) + + - 39 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-985
SELECT + 49 / MIN ( 53 ) + + - 39 AS col2
----
-39

query I rowsort
SELECT DISTINCT 58 + + 87
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-987
SELECT + CASE - 0 WHEN + 96 THEN NULL WHEN 43 * - 67 - - + 23 THEN - COUNT( * ) + + 48 + + 59 * + 19 ELSE 35 END - - MIN( - - 55 ) + + - 91 * 29 AS col2
----
-2549

skipif mysql # not compatible
query I rowsort label-987
SELECT + CASE - 0 WHEN + 96 THEN NULL WHEN 43 * - 67 - - + 23 THEN - COUNT ( * ) + + 48 + + 59 * + 19 ELSE 35 END - - MIN ( - - 55 ) + + - 91 * 29 AS col2
----
-2549

onlyif mysql # aggregate syntax: 
query II rowsort label-988
SELECT 61, - 28 * + MIN( ALL - 6 ) + 83 AS col2
----
61
251

skipif mysql # not compatible
query II rowsort label-988
SELECT 61, - 28 * + MIN ( ALL - 6 ) + 83 AS col2
----
61
251

onlyif mysql # aggregate syntax: 
query I rowsort label-989
SELECT ALL 98 + - 86 * - SUM( ALL + + 14 ) AS col2
----
1302

skipif mysql # not compatible
query I rowsort label-989
SELECT ALL 98 + - 86 * - SUM ( ALL + + 14 ) AS col2
----
1302

query I rowsort
SELECT - 86 * 59
----
-5074

query I rowsort
SELECT DISTINCT 27 * + 0 + 59 AS col1
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-992
SELECT ALL + 98 AS col0, - MIN( ALL 82 ) AS col0
----
98
-82

skipif mysql # not compatible
query II rowsort label-992
SELECT ALL + 98 AS col0, - MIN ( ALL 82 ) AS col0
----
98
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-993
SELECT ALL 90 * + 3 - - - COALESCE ( 51, CAST( NULLIF ( - COUNT( * ), + 62 + + - 0 + + 69 ) AS SIGNED ) * 61 + + 32 ) AS col2
----
219

skipif mysql # not compatible
query I rowsort label-993
SELECT ALL 90 * + 3 - - - COALESCE ( 51, CAST ( NULLIF ( - COUNT ( * ), + 62 + + - 0 + + 69 ) AS INTEGER ) * 61 + + 32 ) AS col2
----
219

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

onlyif mysql # aggregate syntax: 
query I rowsort label-995
SELECT COUNT( * ) * + - 63 * + 19 - + + 17 * - + 76 AS col0
----
95

skipif mysql # not compatible
query I rowsort label-995
SELECT COUNT ( * ) * + - 63 * + 19 - + + 17 * - + 76 AS col0
----
95

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

query I rowsort
SELECT - 85 * 74 AS col2
----
-6290

onlyif mysql # aggregate syntax: 
query II rowsort label-998
SELECT ALL + 27 AS col1, 5 + - + COUNT( - 65 )
----
27
4

skipif mysql # not compatible
query II rowsort label-998
SELECT ALL + 27 AS col1, 5 + - + COUNT ( - 65 )
----
27
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-999
SELECT ( + - COALESCE ( COUNT( * ), + CAST( + + 31 AS SIGNED ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-999
SELECT ( + - COALESCE ( COUNT ( * ), + CAST ( + + 31 AS INTEGER ) ) ) AS col0
----
-1

query I rowsort
SELECT 43 * - - 12 + - + 33
----
483

query I rowsort
SELECT + 94 + + 93 * + 57
----
5395

query I rowsort
SELECT 63 * + + 96 - - 72
----
6120

query I rowsort
SELECT ALL - 57 * - - 81 AS col0
----
-4617

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1005
SELECT DISTINCT + NULLIF ( - - CAST( - CASE - NULLIF ( 0, - 61 * - 73 - 91 ) WHEN + ( + 42 ) + - 10 THEN NULL WHEN COUNT( * ) * CAST( NULL AS SIGNED ) + - 48 THEN NULL WHEN 87 THEN - + 58 / + + 93 + - + MAX( ALL 27 ) + + - 25 END AS SIGNED ), + 67 ) * + - 55 * - - 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1005
SELECT DISTINCT + NULLIF ( - - CAST ( - CASE - NULLIF ( 0, - 61 * - 73 - 91 ) WHEN + ( + 42 ) + - 10 THEN NULL WHEN COUNT ( * ) * CAST ( NULL AS INTEGER ) + - 48 THEN NULL WHEN 87 THEN - + 58 / + + 93 + - + MAX ( ALL 27 ) + + - 25 END AS INTEGER ), + 67 ) * + - 55 * - - 87 AS col0
----
NULL

query I rowsort
SELECT 19 * ( 27 ) + + 98 * - - 31 AS col1
----
3551

query II rowsort
SELECT DISTINCT + + 96 AS col1, - 54 + - - 48 AS col0
----
96
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-1008
SELECT - + 27 + - 51 + 8 DIV 89 + - 62 + + 44 AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-1008
SELECT - + 27 + - 51 + 8 / 89 + - 62 + + 44 AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1009
SELECT DISTINCT - 22 * COUNT( * ) * 33 * - + COUNT( * ) + - 90
----
636

skipif mysql # not compatible
query I rowsort label-1009
SELECT DISTINCT - 22 * COUNT ( * ) * 33 * - + COUNT ( * ) + - 90
----
636

query I rowsort
SELECT - + 78 + - COALESCE ( + - 52, + 7 ) AS col0
----
-26

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1012
SELECT + + 29 * - + 63 * 10 + - 66 * + CAST( + 35 AS SIGNED ) AS col0
----
-20580

skipif mysql # not compatible
query I rowsort label-1012
SELECT + + 29 * - + 63 * 10 + - 66 * + CAST ( + 35 AS INTEGER ) AS col0
----
-20580

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1013
SELECT - COUNT( * ) * - 32 * + COUNT( * ) DIV + 36 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1013
SELECT - COUNT ( * ) * - 32 * + COUNT ( * ) / + 36 AS col0
----
0

query I rowsort
SELECT ALL + - NULLIF ( + 47, - + 83 ) * - 90
----
4230

onlyif mysql # aggregate syntax: 
query I rowsort label-1015
SELECT ALL - COUNT( * ) + - 16
----
-17

skipif mysql # not compatible
query I rowsort label-1015
SELECT ALL - COUNT ( * ) + - 16
----
-17

query I rowsort
SELECT - 38 * + 14 * - 24
----
12768

query I rowsort
SELECT DISTINCT + 90 + 40 AS col0
----
130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1018
SELECT ALL MAX( - 4 ) + SUM( DISTINCT - 67 ) DIV + 73 + - 84 AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-1018
SELECT ALL MAX ( - 4 ) + SUM ( DISTINCT - 67 ) / + 73 + - 84 AS col0
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1019
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + + 72 AS col0, 14 AS col1
----
NULL
14

skipif mysql # not compatible
query II rowsort label-1019
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + + 72 AS col0, 14 AS col1
----
NULL
14

query I rowsort
SELECT - COALESCE ( - ( + 55 ), - - 34 )
----
55

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-1021
SELECT - 63 - COUNT( * ) + + COUNT( * ) * ( - 14 ) DIV 45 + + + 50 * 31 + - 90 + + - COUNT( * ) * COUNT( * ) DIV - 79 * + + 29 AS col2, SUM( + 39 ) * ( + SUM( - 2 ) ) * 43 - + 46 * + 87 * + - 10 + - AVG ( DISTINCT + CAST( NULL AS DECIMAL ) ) * + + CASE + 56 WHEN - CASE 39 WHEN 55 THEN 89 DIV 31 + 7 * + ( NULLIF ( - 15, 89 - 63 * - 78 ) ) ELSE NULL END * 58 THEN NULL WHEN - ( 81 ) + - 86 THEN NULL ELSE - COALESCE ( 17, 2, + 91 * COUNT( * ) + + 41 ) * + COUNT( * ) + 19 END + 52
----
1396
NULL

skipif mysql # not compatible
query II rowsort label-1021
SELECT - 63 - COUNT ( * ) + + COUNT ( * ) * ( - 14 ) / 45 + + + 50 * 31 + - 90 + + - COUNT ( * ) * COUNT ( * ) / - 79 * + + 29 AS col2, SUM ( + 39 ) * ( + SUM ( - 2 ) ) * 43 - + 46 * + 87 * + - 10 + - AVG ( DISTINCT + CAST ( NULL AS REAL ) ) * + + CASE + 56 WHEN - CASE 39 WHEN 55 THEN 89 / 31 + 7 * + ( NULLIF ( - 15, 89 - 63 * - 78 ) ) ELSE NULL END * 58 THEN NULL WHEN - ( 81 ) + - 86 THEN NULL ELSE - COALESCE ( 17, 2, + 91 * COUNT ( * ) + + 41 ) * + COUNT ( * ) + 19 END + 52
----
1396
NULL

query I rowsort
SELECT DISTINCT 9 * + ( - - 10 ) * - 15 AS col2
----
-1350

query I rowsort
SELECT ALL + 92 - 6 AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1024
SELECT ALL 44 * SUM( ALL - - 27 )
----
1188

skipif mysql # not compatible
query I rowsort label-1024
SELECT ALL 44 * SUM ( ALL - - 27 )
----
1188

query I rowsort
SELECT - ( + - CASE + 40 WHEN + - ( 39 ) THEN NULL ELSE 99 END )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1026
SELECT DISTINCT 73 * - 11 * + COUNT( - + 16 ) AS col2
----
-803

skipif mysql # not compatible
query I rowsort label-1026
SELECT DISTINCT 73 * - 11 * + COUNT ( - + 16 ) AS col2
----
-803

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

skipif mysql # not compatible
query I rowsort label-1027
SELECT + ( + 67 ) / COUNT ( * ) AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1028
SELECT ALL + COUNT( + - 26 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1028
SELECT ALL + COUNT ( + - 26 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1029
SELECT + COALESCE ( + 76, + 4 * + 61, - CASE - 66 WHEN 23 THEN + - COUNT( * ) * - 58 ELSE + + 7 END + 66 ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-1029
SELECT + COALESCE ( + 76, + 4 * + 61, - CASE - 66 WHEN 23 THEN + - COUNT ( * ) * - 58 ELSE + + 7 END + 66 ) AS col2
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1030
SELECT + ( - 36 ) / + 90 - + 89 + CAST( NULL AS SIGNED ) * + - CAST( NULL AS SIGNED ) * 91 - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1030
SELECT + ( - 36 ) / + 90 - + 89 + CAST ( NULL AS INTEGER ) * + - CAST ( NULL AS INTEGER ) * 91 - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + ( + - 82 ) * - 9
----
738

query I rowsort
SELECT 23 + - 1 + + 40 * - - 67
----
2702

onlyif mysql # DIV for integer division: 
query II rowsort label-1033
SELECT DISTINCT - 70 DIV 74, - 1 AS col2
----
0
-1

skipif mysql # not compatible
query II rowsort label-1033
SELECT DISTINCT - 70 / 74, - 1 AS col2
----
0
-1

query I rowsort
SELECT - 19 * + - 6 col0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-1035
SELECT DISTINCT - + COUNT( ALL - 15 ) * 0
----
0

skipif mysql # not compatible
query I rowsort label-1035
SELECT DISTINCT - + COUNT ( ALL - 15 ) * 0
----
0

query I rowsort
SELECT ALL 91 + NULLIF ( 99, - + 3 ) + - 70 * - 11
----
960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1037
SELECT ALL - 24 * - CAST( NULL AS SIGNED ) * + + 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1037
SELECT ALL - 24 * - CAST ( NULL AS INTEGER ) * + + 27 AS col0
----
NULL

query I rowsort
SELECT ALL - 60 + + 73 + + 75 - 57
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1039
SELECT ALL CASE + MAX( DISTINCT - 37 ) WHEN + 40 THEN CAST( NULL AS SIGNED ) / 53 + + NULLIF ( + 79, - - 87 ) + + 36 * + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) WHEN - ( 15 ) THEN - + ( + 6 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1039
SELECT ALL CASE + MAX ( DISTINCT - 37 ) WHEN + 40 THEN CAST ( NULL AS INTEGER ) / 53 + + NULLIF ( + 79, - - 87 ) + + 36 * + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) WHEN - ( 15 ) THEN - + ( + 6 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1040
SELECT ALL + NULLIF ( - COUNT( * ), + + 13 + + 2 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1040
SELECT ALL + NULLIF ( - COUNT ( * ), + + 13 + + 2 ) AS col1
----
-1

query I rowsort
SELECT DISTINCT - - 55 + + 14
----
69

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1042
SELECT ALL + CAST( + 6 AS SIGNED ) DIV 8 * 81 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1042
SELECT ALL + CAST ( + 6 AS INTEGER ) / 8 * 81 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1043
SELECT 31 + - 68 / - CAST( NULL AS SIGNED ) + - - ( 0 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1043
SELECT 31 + - 68 / - CAST ( NULL AS INTEGER ) + - - ( 0 ) AS col1
----
NULL

query I rowsort
SELECT 66 * + 68 AS col0
----
4488

query I rowsort
SELECT ALL - 23 - - 90
----
67

query I rowsort
SELECT 47 + 12
----
59

query I rowsort
SELECT ALL + 51 * - 92
----
-4692

query II rowsort
SELECT 14 AS col0, 8 AS col1
----
14
8

query I rowsort
SELECT 56 + 16
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1050
SELECT 92 - SUM( DISTINCT - + 65 ) + 17 + - COUNT( * ) DIV - - 42 DIV 9 * 29 - - - 54
----
120

skipif mysql # not compatible
query I rowsort label-1050
SELECT 92 - SUM ( DISTINCT - + 65 ) + 17 + - COUNT ( * ) / - - 42 / 9 * 29 - - - 54
----
120

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1052
SELECT ALL + 61 - COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-1052
SELECT ALL + 61 - COUNT ( * )
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1053
SELECT MAX( DISTINCT - CAST( NULL AS SIGNED ) ) * + AVG ( + 13 ) * + 91 + + NULLIF ( - 9, 72 ) * - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-1053
SELECT MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) * + AVG ( + 13 ) * + 91 + + NULLIF ( - 9, 72 ) * - 10
----
NULL

query I rowsort
SELECT 82 * + 18
----
1476

query I rowsort
SELECT ALL + 88 * - - 63 col2
----
5544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1056
SELECT DISTINCT + 79 * - CAST( + 68 AS SIGNED )
----
-5372

skipif mysql # not compatible
query I rowsort label-1056
SELECT DISTINCT + 79 * - CAST ( + 68 AS INTEGER )
----
-5372

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1057
SELECT ALL 8 col0, ( CAST( NULL AS SIGNED ) ) * + MAX( + 91 )
----
8
NULL

skipif mysql # not compatible
query II rowsort label-1057
SELECT ALL 8 col0, ( CAST ( NULL AS INTEGER ) ) * + MAX ( + 91 )
----
8
NULL

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

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

query I rowsort
SELECT 72 * - 99 AS col0
----
-7128

query II rowsort
SELECT 38, 74 AS col2
----
38
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1061
SELECT MIN( DISTINCT 36 ) * - 32 AS col0
----
-1152

skipif mysql # not compatible
query I rowsort label-1061
SELECT MIN ( DISTINCT 36 ) * - 32 AS col0
----
-1152

query I rowsort
SELECT ALL - 71 + - - 28 AS col1
----
-43

query I rowsort
SELECT ( - - ( - 34 ) )
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1064
SELECT ALL + + CAST( NULL AS SIGNED ) / + - 6 + + + 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1064
SELECT ALL + + CAST ( NULL AS INTEGER ) / + - 6 + + + 19 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1065
SELECT ALL 82 + - COUNT( * ) + + - CASE - CAST( NULL AS SIGNED ) WHEN + 30 + - - 39 * + 34 THEN + 47 WHEN - COUNT( * ) THEN + COUNT( * ) * + 4 + + 72 * - 39 ELSE NULL END + + 38 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1065
SELECT ALL 82 + - COUNT ( * ) + + - CASE - CAST ( NULL AS INTEGER ) WHEN + 30 + - - 39 * + 34 THEN + 47 WHEN - COUNT ( * ) THEN + COUNT ( * ) * + 4 + + 72 * - 39 ELSE NULL END + + 38 col2
----
NULL

query I rowsort
SELECT + 24 * - 37 + - 41
----
-929

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1068
SELECT 57 DIV - 40 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1068
SELECT 57 / - 40 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1069
SELECT - 36 / 29 * 58 * + NULLIF ( - - 63, + 95 ) + - + CASE MAX( - 53 ) WHEN - 30 THEN - CAST( NULL AS SIGNED ) WHEN + 6 THEN NULL END - + + CASE NULLIF ( + COUNT( * ), - + ( - 79 ) ) WHEN - ( + 91 ) + 44 * + 90 THEN - 78 END + NULLIF ( - 29, - CAST( + 36 AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1069
SELECT - 36 / 29 * 58 * + NULLIF ( - - 63, + 95 ) + - + CASE MAX ( - 53 ) WHEN - 30 THEN - CAST ( NULL AS INTEGER ) WHEN + 6 THEN NULL END - + + CASE NULLIF ( + COUNT ( * ), - + ( - 79 ) ) WHEN - ( + 91 ) + 44 * + 90 THEN - 78 END + NULLIF ( - 29, - CAST ( + 36 AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT + ( + 9 ) + + + 77 * - 15 AS col2
----
-1146

query I rowsort
SELECT + 40 * + 87 - + - 54 AS col0
----
3534

query II rowsort
SELECT ALL - 64 + + + 42 * 19 AS col2, + 10
----
734
10

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1073
SELECT ( - 13 ) * 39 DIV + NULLIF ( + 91, 35 * 43 + + + CAST( - 50 AS SIGNED ) + + 30 * + 45 ) AS col1, 27 + - 93
----
-5
-66

skipif mysql # not compatible
query II rowsort label-1073
SELECT ( - 13 ) * 39 / + NULLIF ( + 91, 35 * 43 + + + CAST ( - 50 AS INTEGER ) + + 30 * + 45 ) AS col1, 27 + - 93
----
-5
-66

query I rowsort
SELECT DISTINCT - - 85 AS col2
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-1075
SELECT - 48 * 19 + 56 + + 15 DIV - + 50 AS col2
----
-856

skipif mysql # not compatible
query I rowsort label-1075
SELECT - 48 * 19 + 56 + + 15 / - + 50 AS col2
----
-856

onlyif mysql # aggregate syntax: 
query I rowsort label-1076
SELECT 6 + - + MAX( + 37 ) + - 69 AS col0
----
-100

skipif mysql # not compatible
query I rowsort label-1076
SELECT 6 + - + MAX ( + 37 ) + - 69 AS col0
----
-100

query I rowsort
SELECT ALL 25 - + 73 AS col1
----
-48

query I rowsort
SELECT ALL + 65 * - NULLIF ( 87, + 37 ) * - ( - 56 )
----
-316680

onlyif mysql # aggregate syntax: 
query I rowsort label-1079
SELECT + MIN( - 80 ) * COUNT( * ) + + COUNT( * ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-1079
SELECT + MIN ( - 80 ) * COUNT ( * ) + + COUNT ( * ) AS col2
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1080
SELECT CAST( + 3 AS SIGNED ) * - + ( + SUM( DISTINCT - - 11 ) ) DIV + - 66
----
0

skipif mysql # not compatible
query I rowsort label-1080
SELECT CAST ( + 3 AS INTEGER ) * - + ( + SUM ( DISTINCT - - 11 ) ) / + - 66
----
0

query II rowsort
SELECT ALL 98 * + - COALESCE ( 14, - + 76 ) AS col1, 71 AS col2
----
-1372
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1082
SELECT 82 / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1082
SELECT 82 / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1083
SELECT 72 DIV + NULLIF ( + - 58, + COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1083
SELECT 72 / + NULLIF ( + - 58, + COUNT ( * ) ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1084
SELECT 7 DIV + 10
----
0

skipif mysql # not compatible
query I rowsort label-1084
SELECT 7 / + 10
----
0

query II rowsort
SELECT 81 - 50 AS col1, NULLIF ( 12, - - 22 ) col1
----
31
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1086
SELECT ALL MIN( DISTINCT - - 31 ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-1086
SELECT ALL MIN ( DISTINCT - - 31 ) AS col0
----
31

query I rowsort
SELECT ALL + 30 * + 15
----
450

query I rowsort
SELECT ALL + 58 + - 33 AS col2
----
25

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1090
SELECT ALL NULLIF ( + + 81, + 45 - 30 ) + 6 + - COUNT( * ) + + + CAST( NULL AS SIGNED ) / - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-1090
SELECT ALL NULLIF ( + + 81, + 45 - 30 ) + 6 + - COUNT ( * ) + + + CAST ( NULL AS INTEGER ) / - 31
----
NULL

query I rowsort
SELECT - 89 * + - 37 + + + 82 * + + 1
----
3375

onlyif mysql # aggregate syntax: 
query I rowsort label-1092
SELECT ALL - - 50 * ( - + 82 ) + - COUNT( COALESCE ( + + 6, - - 2 ) ) + 80 + - 80 AS col1
----
-4101

skipif mysql # not compatible
query I rowsort label-1092
SELECT ALL - - 50 * ( - + 82 ) + - COUNT ( COALESCE ( + + 6, - - 2 ) ) + 80 + - 80 AS col1
----
-4101

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

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

query I rowsort
SELECT + + 49 + 57 + - 91 AS col2
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1095
SELECT - - CASE 58 WHEN + 7 THEN - CAST( + 12 AS SIGNED ) END * + - 95 * + CASE + 38 WHEN + 42 * - 70 + 88 THEN NULL ELSE - COUNT( * ) * + 39 + 67 + + 1 END + - + CASE + CAST( NULL AS SIGNED ) WHEN + 15 * + - 99 THEN - ( - 71 ) END + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-1095
SELECT - - CASE 58 WHEN + 7 THEN - CAST ( + 12 AS INTEGER ) END * + - 95 * + CASE + 38 WHEN + 42 * - 70 + 88 THEN NULL ELSE - COUNT ( * ) * + 39 + 67 + + 1 END + - + CASE + CAST ( NULL AS INTEGER ) WHEN + 15 * + - 99 THEN - ( - 71 ) END + 21
----
NULL

query I rowsort
SELECT ALL - 35 * 17 + - + 91 AS col2
----
-686

onlyif mysql # aggregate syntax: 
query I rowsort label-1097
SELECT DISTINCT + COUNT( * ) * + + 50 + + 4 AS col2
----
54

skipif mysql # not compatible
query I rowsort label-1097
SELECT DISTINCT + COUNT ( * ) * + + 50 + + 4 AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1098
SELECT + NULLIF ( - - 85, + + COUNT( * ) ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-1098
SELECT + NULLIF ( - - 85, + + COUNT ( * ) ) AS col0
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-1099
SELECT + + MIN( ALL - 12 ), + ( - + NULLIF ( + + 81, + 25 * + 43 / COUNT( * ) - + COUNT( * ) ) ) AS col1
----
-12
-81

skipif mysql # not compatible
query II rowsort label-1099
SELECT + + MIN ( ALL - 12 ), + ( - + NULLIF ( + + 81, + 25 * + 43 / COUNT ( * ) - + COUNT ( * ) ) ) AS col1
----
-12
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1100
SELECT + - 47 * + NULLIF ( - + 92, 54 ) + + + COUNT( * ) AS col0
----
4325

skipif mysql # not compatible
query I rowsort label-1100
SELECT + - 47 * + NULLIF ( - + 92, 54 ) + + + COUNT ( * ) AS col0
----
4325

query I rowsort
SELECT DISTINCT - 42 * - 0 AS col0
----
0

query I rowsort
SELECT - - 78 - + 87
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-1103
SELECT + + COALESCE ( + 64, 87 DIV + - ( 73 ) ) * + + 8 * - + 85 * + 82 AS col2
----
-3568640

skipif mysql # not compatible
query I rowsort label-1103
SELECT + + COALESCE ( + 64, 87 / + - ( 73 ) ) * + + 8 * - + 85 * + 82 AS col2
----
-3568640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1104
SELECT ALL + NULLIF ( + - CAST( NULL AS SIGNED ), 84 * + 76 + - - 64 + 83 * 98 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1104
SELECT ALL + NULLIF ( + - CAST ( NULL AS INTEGER ), 84 * + 76 + - - 64 + 83 * 98 )
----
NULL

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

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

query I rowsort
SELECT DISTINCT + 6 * - 23
----
-138

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1108
SELECT + ( + 21 ) * + CAST( NULL AS SIGNED ) - + + AVG ( DISTINCT - 25 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1108
SELECT + ( + 21 ) * + CAST ( NULL AS INTEGER ) - + + AVG ( DISTINCT - 25 )
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-1111
SELECT ALL 85 + + SUM( - 73 ) DIV - CAST( 23 AS SIGNED ) AS col0, + 65, + COUNT( * ) AS col0
----
88
65
1

skipif mysql # not compatible
query III rowsort label-1111
SELECT ALL 85 + + SUM ( - 73 ) / - CAST ( 23 AS INTEGER ) AS col0, + 65, + COUNT ( * ) AS col0
----
88
65
1

query I rowsort
SELECT ALL 44 + + + 43 AS col0
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-1113
SELECT + 50 + 4 DIV + 77 col0
----
50

skipif mysql # not compatible
query I rowsort label-1113
SELECT + 50 + 4 / + 77 col0
----
50

query I rowsort
SELECT + 67 * - 31 AS col2
----
-2077

query I rowsort
SELECT DISTINCT 91 * - 1 AS col2
----
-91

query I rowsort
SELECT ALL 49 + - 82
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1117
SELECT ALL COALESCE ( - 78, COUNT( * ) )
----
-78

skipif mysql # not compatible
query I rowsort label-1117
SELECT ALL COALESCE ( - 78, COUNT ( * ) )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1118
SELECT DISTINCT SUM( - 29 ) + + 76 - - 25 * MIN( DISTINCT 28 ) * + 17 + - - 24 * - CASE COALESCE ( + 82, - COUNT( * ), + 95 ) WHEN MIN( ALL + + 48 ) * 52 * 50 THEN 94 - 75 ELSE NULL END * + - AVG ( + 76 ) * + 86 + - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-1118
SELECT DISTINCT SUM ( - 29 ) + + 76 - - 25 * MIN ( DISTINCT 28 ) * + 17 + - - 24 * - CASE COALESCE ( + 82, - COUNT ( * ), + 95 ) WHEN MIN ( ALL + + 48 ) * 52 * 50 THEN 94 - 75 ELSE NULL END * + - AVG ( + 76 ) * + 86 + - 10
----
NULL

query I rowsort
SELECT DISTINCT 43 + - - 80
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-1120
SELECT ALL + 26 + - + COUNT( * ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-1120
SELECT ALL + 26 + - + COUNT ( * ) AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1121
SELECT DISTINCT - ( + 86 ) + - - COALESCE ( + CASE + - ( - 47 ) WHEN 2 THEN - 22 * 26 * - - CASE - COUNT( * ) WHEN - 40 + 77 - 39 THEN NULL WHEN - 34 - 88 / + 87 THEN CASE 87 WHEN - - 14 THEN NULL ELSE + ( + NULLIF ( + 63, + 99 * + MIN( - 93 ) ) ) END ELSE NULL END WHEN 57 * + ( + COALESCE ( + 6, - NULLIF ( - 21, COUNT( * ) - 75 ) / 44 ) ) THEN NULL END, - 1 ) + + 88
----
1

skipif mysql # not compatible
query I rowsort label-1121
SELECT DISTINCT - ( + 86 ) + - - COALESCE ( + CASE + - ( - 47 ) WHEN 2 THEN - 22 * 26 * - - CASE - COUNT ( * ) WHEN - 40 + 77 - 39 THEN NULL WHEN - 34 - 88 / + 87 THEN CASE 87 WHEN - - 14 THEN NULL ELSE + ( + NULLIF ( + 63, + 99 * + MIN ( - 93 ) ) ) END ELSE NULL END WHEN 57 * + ( + COALESCE ( + 6, - NULLIF ( - 21, COUNT ( * ) - 75 ) / 44 ) ) THEN NULL END, - 1 ) + + 88
----
1

query I rowsort
SELECT - 72 + - 39 AS col1
----
-111

onlyif mysql # aggregate syntax: 
query II rowsort label-1123
SELECT - + COUNT( * ), 63 + 60 + CASE - 41 WHEN - + 82 * 25 * - + 92 THEN + 85 END * 85 + 5 * - COALESCE ( 5, + 83 ) AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1123
SELECT - + COUNT ( * ), 63 + 60 + CASE - 41 WHEN - + 82 * 25 * - + 92 THEN + 85 END * 85 + 5 * - COALESCE ( 5, + 83 ) AS col1
----
-1
NULL

query I rowsort
SELECT - + 19 * - 90 + ( + 79 ) * + - 43
----
-1687

onlyif mysql # DIV for integer division: 
query I rowsort label-1125
SELECT - 31 DIV - 79 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1125
SELECT - 31 / - 79 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1126
SELECT DISTINCT + CASE - 2 WHEN - 64 + - 1 THEN NULL WHEN + 57 + + 6 THEN + - 50 * - 37 * - CAST( NULL AS SIGNED ) + + 36 ELSE NULL END / + 4 + MAX( ALL + 78 ) AS col0, + 79 AS col1
----
NULL
79

skipif mysql # not compatible
query II rowsort label-1126
SELECT DISTINCT + CASE - 2 WHEN - 64 + - 1 THEN NULL WHEN + 57 + + 6 THEN + - 50 * - 37 * - CAST ( NULL AS INTEGER ) + + 36 ELSE NULL END / + 4 + MAX ( ALL + 78 ) AS col0, + 79 AS col1
----
NULL
79

onlyif mysql # DIV for integer division: 
query I rowsort label-1127
SELECT DISTINCT - 86 DIV COALESCE ( + + 27, 63 DIV + + 29 )
----
-3

skipif mysql # not compatible
query I rowsort label-1127
SELECT DISTINCT - 86 / COALESCE ( + + 27, 63 / + + 29 )
----
-3

query I rowsort
SELECT - + 67 - ( 83 )
----
-150

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1131
SELECT 1 * - - SUM( + - 20 ) - - + 57
----
37

skipif mysql # not compatible
query I rowsort label-1131
SELECT 1 * - - SUM ( + - 20 ) - - + 57
----
37

query I rowsort
SELECT - 91 + - + 12 + + + 0
----
-103

onlyif mysql # DIV for integer division: 
query I rowsort label-1133
SELECT + + 11 DIV ( 85 ) * - 94 - - 5 + + ( + - 28 ) + 23 * + 2 DIV + - 99 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-1133
SELECT + + 11 / ( 85 ) * - 94 - - 5 + + ( + - 28 ) + 23 * + 2 / + - 99 AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1134
SELECT + SUM( ALL - 56 ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-1134
SELECT + SUM ( ALL - 56 ) AS col1
----
-56

query II rowsort
SELECT DISTINCT + 14 AS col2, ( - 17 ) AS col1
----
14
-17

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

query I rowsort
SELECT ALL + 19 * + 36 + - 71
----
613

onlyif mysql # aggregate syntax: 
query I rowsort label-1138
SELECT + SUM( ALL + 18 ) + 92 AS col2
----
110

skipif mysql # not compatible
query I rowsort label-1138
SELECT + SUM ( ALL + 18 ) + 92 AS col2
----
110

query I rowsort
SELECT ALL - 29 * - 65
----
1885

onlyif mysql # aggregate syntax: 
query I rowsort label-1140
SELECT NULLIF ( + 19, + 79 - COUNT( * ) * - + 37 * + 97 ) col2
----
19

skipif mysql # not compatible
query I rowsort label-1140
SELECT NULLIF ( + 19, + 79 - COUNT ( * ) * - + 37 * + 97 ) col2
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1141
SELECT + COUNT( * ) DIV - + 80 * - + COALESCE ( - 44, - 48 + + - 74 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-1141
SELECT + COUNT ( * ) / - + 80 * - + COALESCE ( - 44, - 48 + + - 74 ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1142
SELECT DISTINCT 13 * + - COUNT( * ) * - 46 + + + 52 - - MIN( DISTINCT - 80 )
----
570

skipif mysql # not compatible
query I rowsort label-1142
SELECT DISTINCT 13 * + - COUNT ( * ) * - 46 + + + 52 - - MIN ( DISTINCT - 80 )
----
570

onlyif mysql # aggregate syntax: 
query I rowsort label-1143
SELECT CASE - COALESCE ( + 45, + 13, 42 ) WHEN + 22 / + ( - 60 ) THEN 63 WHEN + - COUNT( * ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1143
SELECT CASE - COALESCE ( + 45, + 13, 42 ) WHEN + 22 / + ( - 60 ) THEN 63 WHEN + - COUNT ( * ) THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1144
SELECT ALL MIN( 20 ) + - ( + + 3 ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-1144
SELECT ALL MIN ( 20 ) + - ( + + 3 ) AS col2
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1145
SELECT + COUNT( * ) * - - 6 DIV 54 + 1 * - 25
----
-25

skipif mysql # not compatible
query I rowsort label-1145
SELECT + COUNT ( * ) * - - 6 / 54 + 1 * - 25
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1146
SELECT DISTINCT COUNT( ALL - NULLIF ( + + 57, - + 59 * + 58 / 9 ) ) + 11 * - 24 + - 23 AS col1
----
-286

skipif mysql # not compatible
query I rowsort label-1146
SELECT DISTINCT COUNT ( ALL - NULLIF ( + + 57, - + 59 * + 58 / 9 ) ) + 11 * - 24 + - 23 AS col1
----
-286

onlyif mysql # aggregate syntax: 
query I rowsort label-1147
SELECT DISTINCT + 12 * - + COUNT( * ) * - - 75 AS col1
----
-900

skipif mysql # not compatible
query I rowsort label-1147
SELECT DISTINCT + 12 * - + COUNT ( * ) * - - 75 AS col1
----
-900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1148
SELECT ALL - 57 + + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1148
SELECT ALL - 57 + + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + 3 + + 78
----
81

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1152
SELECT 23 + + 57 + + COUNT( * ) col0
----
81

skipif mysql # not compatible
query I rowsort label-1152
SELECT 23 + + 57 + + COUNT ( * ) col0
----
81

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

skipif mysql # not compatible
query II rowsort label-1153
SELECT 78 AS col0, COUNT ( * ) AS col0
----
78
1

query II rowsort
SELECT ALL 69 col2, 81 + - - 88 AS col1
----
69
169

query I rowsort
SELECT ALL CASE + 57 WHEN - - 44 THEN NULL ELSE + 63 END + + 9 AS col1
----
72

query II rowsort
SELECT - 25, 42 AS col1
----
-25
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1157
SELECT - NULLIF ( - 61, - 97 + + 55 ) + + + COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-1157
SELECT - NULLIF ( - 61, - 97 + + 55 ) + + + COUNT ( * )
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1158
SELECT 66 - - 71 AS col0, CAST( NULL AS SIGNED )
----
137
NULL

skipif mysql # not compatible
query II rowsort label-1158
SELECT 66 - - 71 AS col0, CAST ( NULL AS INTEGER )
----
137
NULL

query I rowsort
SELECT - 15 + + 93 col0
----
78

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1161
SELECT ALL CAST( - ( + 13 ) AS SIGNED ) * 98 + COUNT( * ) + - 73 + - - 27 * CAST( 59 AS SIGNED ) * COUNT( * ) + - + 39 * + CAST( NULL AS DECIMAL ) * - - CASE + 54 WHEN - 99 THEN + 71 + - 69 WHEN + COUNT( * ) THEN NULL WHEN - 92 THEN + COUNT( * ) * - + NULLIF ( COUNT( * ), + 85 ) * 35 * 79 WHEN 31 * + 68 * + 18 THEN + 5 / 32 - 10 + - 61 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1161
SELECT ALL CAST ( - ( + 13 ) AS INTEGER ) * 98 + COUNT ( * ) + - 73 + - - 27 * CAST ( 59 AS INTEGER ) * COUNT ( * ) + - + 39 * + CAST ( NULL AS REAL ) * - - CASE + 54 WHEN - 99 THEN + 71 + - 69 WHEN + COUNT ( * ) THEN NULL WHEN - 92 THEN + COUNT ( * ) * - + NULLIF ( COUNT ( * ), + 85 ) * 35 * 79 WHEN 31 * + 68 * + 18 THEN + 5 / 32 - 10 + - 61 END
----
NULL

query I rowsort
SELECT ALL - 57 * ( + 32 ) + - 79 + - - 18
----
-1885

onlyif mysql # aggregate syntax: 
query II rowsort label-1163
SELECT - COUNT( * ) col1, MAX( 22 )
----
-1
22

skipif mysql # not compatible
query II rowsort label-1163
SELECT - COUNT ( * ) col1, MAX ( 22 )
----
-1
22

query II rowsort
SELECT + 81 + + 87 + NULLIF ( - ( + 24 ), - 45 ), - 93 + 59 AS col0
----
144
-34

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1166
SELECT CASE - 52 WHEN + 3 THEN 57 ELSE NULL END AS col1, + SUM( - 55 ) + - - 43
----
NULL
-12

skipif mysql # not compatible
query II rowsort label-1166
SELECT CASE - 52 WHEN + 3 THEN 57 ELSE NULL END AS col1, + SUM ( - 55 ) + - - 43
----
NULL
-12

query I rowsort
SELECT NULLIF ( - 49, - - 0 ) AS col0
----
-49

query I rowsort
SELECT 14 * + + 91 - + 72 * 43
----
-1822

query I rowsort
SELECT - 22 * + 76 * 9 AS col0
----
-15048

onlyif mysql # DIV for integer division: 
query I rowsort label-1170
SELECT ALL + 42 DIV + 76 col2
----
0

skipif mysql # not compatible
query I rowsort label-1170
SELECT ALL + 42 / + 76 col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1171
SELECT DISTINCT - + 96 AS col2, + ( - 15 ) * CAST( + + 4 AS SIGNED ) + + + 10 AS col0
----
-96
-50

skipif mysql # not compatible
query II rowsort label-1171
SELECT DISTINCT - + 96 AS col2, + ( - 15 ) * CAST ( + + 4 AS INTEGER ) + + + 10 AS col0
----
-96
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-1172
SELECT ALL - + 14 AS col0, COUNT( * ) * + 56 * - - ( + + 45 )
----
-14
2520

skipif mysql # not compatible
query II rowsort label-1172
SELECT ALL - + 14 AS col0, COUNT ( * ) * + 56 * - - ( + + 45 )
----
-14
2520

query I rowsort
SELECT - 88 * + 61 AS col1
----
-5368

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

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

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

skipif mysql # not compatible
query I rowsort label-1175
SELECT ALL - COUNT ( * ) + ( - 13 ) * - ( + COUNT ( * ) ) * - 20 AS col2
----
-261

query I rowsort
SELECT ALL + 6 * + 65
----
390

query I rowsort
SELECT DISTINCT - 43 * - 50 AS col0
----
2150

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

query I rowsort
SELECT ALL + 71 + - 64 + 19 AS col0
----
26

query I rowsort
SELECT + 28 * + 25 * - - ( ( 70 ) ) - - + 94 AS col1
----
49094

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1181
SELECT ALL - CAST( 54 AS SIGNED ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-1181
SELECT ALL - CAST ( 54 AS INTEGER ) AS col1
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1182
SELECT 71 * + CAST( NULL AS SIGNED ) - - 89 * 45 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1182
SELECT 71 * + CAST ( NULL AS INTEGER ) - - 89 * 45 + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1183
SELECT ALL - MAX( DISTINCT + 19 ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-1183
SELECT ALL - MAX ( DISTINCT + 19 ) AS col1
----
-19

query I rowsort
SELECT ALL - 71 + + + 69 AS col1
----
-2

query I rowsort
SELECT 16 - - 38 * + 16 * 56 * - + 29 + 93 AS col1
----
-987283

onlyif mysql # aggregate syntax: 
query II rowsort label-1186
SELECT DISTINCT + 81 * + + 96 AS col1, 39 + + + COUNT( * ) AS col2
----
7776
40

skipif mysql # not compatible
query II rowsort label-1186
SELECT DISTINCT + 81 * + + 96 AS col1, 39 + + + COUNT ( * ) AS col2
----
7776
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1187
SELECT 6 * - - COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-1187
SELECT 6 * - - COUNT ( * )
----
6

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

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

query II rowsort
SELECT ALL - 8 - + + 82 AS col1, - 52 AS col1
----
-90
-52

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

onlyif mysql # DIV for integer division: 
query III rowsort label-1191
SELECT ALL - 48 DIV 52 AS col2, + 19 AS col2, 86
----
0
19
86

skipif mysql # not compatible
query III rowsort label-1191
SELECT ALL - 48 / 52 AS col2, + 19 AS col2, 86
----
0
19
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT 50 + COUNT( DISTINCT 29 ) * - 33 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-1192
SELECT 50 + COUNT ( DISTINCT 29 ) * - 33 AS col1
----
17

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

query I rowsort
SELECT - 20 * - 94 * + - 28
----
-52640

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

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

query II rowsort
SELECT ALL - + ( - 56 ) AS col0, 55 * + 40
----
56
2200

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1198
SELECT DISTINCT - - CASE 11 WHEN 77 THEN - 22 WHEN 78 * + - 52 + - 41 THEN - 10 WHEN + - 75 / - + 9 + - CAST( NULL AS DECIMAL ) * 45 + + 55 + 59 THEN NULL ELSE + 43 - - SUM( ALL 44 ) END
----
87

skipif mysql # not compatible
query I rowsort label-1198
SELECT DISTINCT - - CASE 11 WHEN 77 THEN - 22 WHEN 78 * + - 52 + - 41 THEN - 10 WHEN + - 75 / - + 9 + - CAST ( NULL AS REAL ) * 45 + + 55 + 59 THEN NULL ELSE + 43 - - SUM ( ALL 44 ) END
----
87

query I rowsort
SELECT ALL 31 * - 99 + - + 43 AS col2
----
-3112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1200
SELECT + + 74 DIV ( 20 ) * - COUNT( * ) - 62 + 47
----
-18

skipif mysql # not compatible
query I rowsort label-1200
SELECT + + 74 / ( 20 ) * - COUNT ( * ) - 62 + 47
----
-18

query II rowsort
SELECT ALL 65 * + 47 AS col2, - 77 AS col0
----
3055
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1202
SELECT 66 * + - 36 - - 92 + + COUNT( * ) AS col2
----
-2283

skipif mysql # not compatible
query I rowsort label-1202
SELECT 66 * + - 36 - - 92 + + COUNT ( * ) AS col2
----
-2283

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

skipif mysql # not compatible
query II rowsort label-1203
SELECT COUNT ( * ) AS col0, ( - 39 ) col0
----
1
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-1204
SELECT ALL + 75 DIV + 1 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-1204
SELECT ALL + 75 / + 1 AS col2
----
75

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

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

query I rowsort
SELECT ALL 74 * - 89 + 54
----
-6532

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1208
SELECT DISTINCT ( - - 80 ) * + 19 - + + COUNT( * ) + + 85 col2
----
1604

skipif mysql # not compatible
query I rowsort label-1208
SELECT DISTINCT ( - - 80 ) * + 19 - + + COUNT ( * ) + + 85 col2
----
1604

onlyif mysql # aggregate syntax: 
query I rowsort label-1209
SELECT ALL + COUNT( * ) * - ( COUNT( + 39 ) ) + + MAX( + 10 ) col0
----
9

skipif mysql # not compatible
query I rowsort label-1209
SELECT ALL + COUNT ( * ) * - ( COUNT ( + 39 ) ) + + MAX ( + 10 ) col0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1210
SELECT 3 * - ( - + 94 ) + - + 31 + - 70 + - CAST( NULL AS SIGNED ), - 60 + - COALESCE ( 22, 88 ) col1
----
NULL
-82

skipif mysql # not compatible
query II rowsort label-1210
SELECT 3 * - ( - + 94 ) + - + 31 + - 70 + - CAST ( NULL AS INTEGER ), - 60 + - COALESCE ( 22, 88 ) col1
----
NULL
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1211
SELECT ALL 3 * - - 63 * - CASE - 28 WHEN - + 48 + 60 THEN NULL ELSE - COUNT( * ) END AS col2
----
189

skipif mysql # not compatible
query I rowsort label-1211
SELECT ALL 3 * - - 63 * - CASE - 28 WHEN - + 48 + 60 THEN NULL ELSE - COUNT ( * ) END AS col2
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-1212
SELECT MIN( DISTINCT + COALESCE ( 5, + 81, + - ( 1 ) - 79 ) )
----
5

skipif mysql # not compatible
query I rowsort label-1212
SELECT MIN ( DISTINCT + COALESCE ( 5, + 81, + - ( 1 ) - 79 ) )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1213
SELECT ALL - COUNT( * ) - + 12 AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-1213
SELECT ALL - COUNT ( * ) - + 12 AS col1
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1214
SELECT + NULLIF ( + 4, 58 ) col2, + MIN( DISTINCT + CAST( NULL AS SIGNED ) )
----
4
NULL

skipif mysql # not compatible
query II rowsort label-1214
SELECT + NULLIF ( + 4, 58 ) col2, + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
4
NULL

query I rowsort
SELECT - 37 * 65
----
-2405

query I rowsort
SELECT ALL CASE + 35 WHEN + AVG ( - 24 ) THEN + 32 / - + 90 END AS col2
----
NULL

query I rowsort
SELECT - 91 * - 55 + - - 77
----
5082

query I rowsort
SELECT ALL 19 - + + 83
----
-64

query II rowsort
SELECT DISTINCT + 52 AS col1, - 19 * + 67 AS col0
----
52
-1273

onlyif mysql # aggregate syntax: 
query I rowsort label-1220
SELECT DISTINCT - COUNT( * ) * + 46 AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-1220
SELECT DISTINCT - COUNT ( * ) * + 46 AS col1
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-1221
SELECT DISTINCT + 8 DIV - 4
----
-2

skipif mysql # not compatible
query I rowsort label-1221
SELECT DISTINCT + 8 / - 4
----
-2

query I rowsort
SELECT DISTINCT + 58 * + 65
----
3770

query I rowsort
SELECT - + 94 + + + 17 AS col1
----
-77

query II rowsort
SELECT ALL 3 AS col2, 96
----
3
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1225
SELECT - - 19 * - ( + 37 ) - + + ( + - 88 ) * - 33, 30 DIV - - COUNT( * ) + 8 + - 66 * - 1 AS col2
----
-3607
104

skipif mysql # not compatible
query II rowsort label-1225
SELECT - - 19 * - ( + 37 ) - + + ( + - 88 ) * - 33, 30 / - - COUNT ( * ) + 8 + - 66 * - 1 AS col2
----
-3607
104

query I rowsort
SELECT ALL - 14 + + + 3 * - 3 AS col0
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1227
SELECT ALL COALESCE ( + - 0, - 87, + - 67 * - - 23 * + 56 + + 52 + - 65 DIV + 7 + + ( 37 ), - + COUNT( NULLIF ( + + 88, - 58 + 51 - + 49 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-1227
SELECT ALL COALESCE ( + - 0, - 87, + - 67 * - - 23 * + 56 + + 52 + - 65 / + 7 + + ( 37 ), - + COUNT ( NULLIF ( + + 88, - 58 + 51 - + 49 ) ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1228
SELECT - + COALESCE ( + + MIN( DISTINCT - 21 ), + - COUNT( ( - - 16 ) ) * - 68 + - 65 + - - 68, - 69 + + 66 + + - 4 + + ( 9 ) + 81 DIV + 10 * - - 14 ) * + 56
----
1176

skipif mysql # not compatible
query I rowsort label-1228
SELECT - + COALESCE ( + + MIN ( DISTINCT - 21 ), + - COUNT ( ( - - 16 ) ) * - 68 + - 65 + - - 68, - 69 + + 66 + + - 4 + + ( 9 ) + 81 / + 10 * - - 14 ) * + 56
----
1176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1229
SELECT DISTINCT + 23 * + CAST( 3 AS SIGNED )
----
69

skipif mysql # not compatible
query I rowsort label-1229
SELECT DISTINCT + 23 * + CAST ( 3 AS INTEGER )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT + 80 + - 2 * + NULLIF ( 53, + 35 ) + - COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-1230
SELECT + 80 + - 2 * + NULLIF ( 53, + 35 ) + - COUNT ( * )
----
-27

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

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

query II rowsort
SELECT ALL - 10 AS col0, 3 AS col2
----
-10
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1233
SELECT ALL CASE - MAX( + 35 ) WHEN + - 46 + 85 * + CASE + 90 WHEN CASE + NULLIF ( + + COUNT( * ), - 88 * + - 90 / + 40 ) WHEN COUNT( * ) * - - 92 THEN NULL WHEN - 85 THEN NULL WHEN + 31 * COUNT( * ) THEN + 42 ELSE NULL END THEN - SUM( + + 1 ) END THEN NULL WHEN + CASE - NULLIF ( COUNT( * ), + 56 * 84 ) WHEN - + CAST( NULL AS DECIMAL ) THEN + - 26 * + 87 - + COUNT( DISTINCT 48 ) + - - 79 + - - 13 * 99 ELSE NULL END THEN 3 END / 41 + 67 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1233
SELECT ALL CASE - MAX ( + 35 ) WHEN + - 46 + 85 * + CASE + 90 WHEN CASE + NULLIF ( + + COUNT ( * ), - 88 * + - 90 / + 40 ) WHEN COUNT ( * ) * - - 92 THEN NULL WHEN - 85 THEN NULL WHEN + 31 * COUNT ( * ) THEN + 42 ELSE NULL END THEN - SUM ( + + 1 ) END THEN NULL WHEN + CASE - NULLIF ( COUNT ( * ), + 56 * 84 ) WHEN - + CAST ( NULL AS REAL ) THEN + - 26 * + 87 - + COUNT ( DISTINCT 48 ) + - - 79 + - - 13 * 99 ELSE NULL END THEN 3 END / 41 + 67 AS col2
----
NULL

query II rowsort
SELECT + 71, - 93 * + 47 col2
----
71
-4371

query I rowsort
SELECT - ( - 40 ) * - 55 * - 48 AS col2
----
105600

query I rowsort
SELECT + 57 + 66
----
123

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1237
SELECT DISTINCT COUNT( - + 61 ) * + + 97 * 80 + + + ( - COUNT( * ) ) * + COUNT( * ) DIV - COUNT( * )
----
7761

skipif mysql # not compatible
query I rowsort label-1237
SELECT DISTINCT COUNT ( - + 61 ) * + + 97 * 80 + + + ( - COUNT ( * ) ) * + COUNT ( * ) / - COUNT ( * )
----
7761

query I rowsort
SELECT ALL - 44 * - + 9 + + 92 AS col2
----
488

query I rowsort
SELECT DISTINCT + NULLIF ( - 19, - + 74 ) * - 29 - - - 90
----
461

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1241
SELECT ALL + MAX( DISTINCT - 11 ) * - 70 - - - ( + COUNT( ALL 82 ) )
----
769

skipif mysql # not compatible
query I rowsort label-1241
SELECT ALL + MAX ( DISTINCT - 11 ) * - 70 - - - ( + COUNT ( ALL 82 ) )
----
769

query I rowsort
SELECT + 85 * + 51 * - 76 * - - 30
----
-9883800

query I rowsort
SELECT + 91 * + 63 AS col0
----
5733

query I rowsort
SELECT 8 * + + 56 - 36 AS col2
----
412

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1245
SELECT - 43 DIV + CAST( - 8 AS SIGNED ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-1245
SELECT - 43 / + CAST ( - 8 AS INTEGER ) AS col2
----
5

onlyif mysql # DIV for integer division: 
query II rowsort label-1246
SELECT ALL 49 DIV 66, - 92 AS col0
----
0
-92

skipif mysql # not compatible
query II rowsort label-1246
SELECT ALL 49 / 66, - 92 AS col0
----
0
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-1247
SELECT + 55 * - COALESCE ( 98, - - 1 * - COUNT( * ) * 97 + 88 ) AS col0
----
-5390

skipif mysql # not compatible
query I rowsort label-1247
SELECT + 55 * - COALESCE ( 98, - - 1 * - COUNT ( * ) * 97 + 88 ) AS col0
----
-5390

onlyif mysql # aggregate syntax: 
query I rowsort label-1248
SELECT - 87 * 84 + - MAX( ALL + 12 )
----
-7320

skipif mysql # not compatible
query I rowsort label-1248
SELECT - 87 * 84 + - MAX ( ALL + 12 )
----
-7320

query I rowsort
SELECT + 90 * + - 69 AS col2
----
-6210

onlyif mysql # aggregate syntax: 
query II rowsort label-1250
SELECT ALL - 9 * - 82 * - + MIN( DISTINCT + 22 ), + 25 AS col0
----
-16236
25

skipif mysql # not compatible
query II rowsort label-1250
SELECT ALL - 9 * - 82 * - + MIN ( DISTINCT + 22 ), + 25 AS col0
----
-16236
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1251
SELECT + 7 DIV - COUNT( * ) AS col0, - 26 * + + 22
----
-7
-572

skipif mysql # not compatible
query II rowsort label-1251
SELECT + 7 / - COUNT ( * ) AS col0, - 26 * + + 22
----
-7
-572

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1252
SELECT ALL 13 DIV SUM( - 67 ) * + 29 - + 29
----
-29

skipif mysql # not compatible
query I rowsort label-1252
SELECT ALL 13 / SUM ( - 67 ) * + 29 - + 29
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1253
SELECT ALL - COALESCE ( 45, + 58 + + + 1 * - - ( - 43 ) * - 39 * - + COUNT( - CAST( ( + + 93 ) AS SIGNED ) ) ) col1
----
-45

skipif mysql # not compatible
query I rowsort label-1253
SELECT ALL - COALESCE ( 45, + 58 + + + 1 * - - ( - 43 ) * - 39 * - + COUNT ( - CAST ( ( + + 93 ) AS INTEGER ) ) ) col1
----
-45

onlyif mysql # DIV for integer division: 
query II rowsort label-1254
SELECT + 83 + - 7 + - 6 DIV ( 61 ), - 63 - - NULLIF ( - + 63, + 40 DIV - ( - 69 ) * - + 85 * + - 36 ) AS col1
----
76
-126

skipif mysql # not compatible
query II rowsort label-1254
SELECT + 83 + - 7 + - 6 / ( 61 ), - 63 - - NULLIF ( - + 63, + 40 / - ( - 69 ) * - + 85 * + - 36 ) AS col1
----
76
-126

query I rowsort
SELECT - 52 - + 44 AS col0
----
-96

query I rowsort
SELECT ALL - 20 * + 24 + 76
----
-404

query I rowsort
SELECT + - 65 + + 80 + 21 AS col0
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-1258
SELECT - + 90 + + COUNT( * ) AS col0, - 20 + 40 * - COUNT( * )
----
-89
-60

skipif mysql # not compatible
query II rowsort label-1258
SELECT - + 90 + + COUNT ( * ) AS col0, - 20 + 40 * - COUNT ( * )
----
-89
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1259
SELECT ALL + 85 * + + 47 AS col0, - 2 + - + 86 + + 63 - + + 46 * ( - COALESCE ( + CASE 22 WHEN + 33 + + - 42 + 58 * + + 55 * - - 19 THEN + 18 END, + 17 * + 39 + - 33 - - - CASE CAST( NULL AS SIGNED ) WHEN 12 THEN + + 35 WHEN - 15 THEN + - 33 / - - COUNT( * ) + - 91 END * 97 ) ) + CASE - 92 WHEN + 28 THEN - COUNT( * ) ELSE 53 END / - - 4 * 63 * - 86 AS col2
----
3995
NULL

skipif mysql # not compatible
query II rowsort label-1259
SELECT ALL + 85 * + + 47 AS col0, - 2 + - + 86 + + 63 - + + 46 * ( - COALESCE ( + CASE 22 WHEN + 33 + + - 42 + 58 * + + 55 * - - 19 THEN + 18 END, + 17 * + 39 + - 33 - - - CASE CAST ( NULL AS INTEGER ) WHEN 12 THEN + + 35 WHEN - 15 THEN + - 33 / - - COUNT ( * ) + - 91 END * 97 ) ) + CASE - 92 WHEN + 28 THEN - COUNT ( * ) ELSE 53 END / - - 4 * 63 * - 86 AS col2
----
3995
NULL

query I rowsort
SELECT - 41 * + 53
----
-2173

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1261
SELECT ALL - 63 + - + CAST( NULL AS SIGNED ), - 53 AS col1
----
NULL
-53

skipif mysql # not compatible
query II rowsort label-1261
SELECT ALL - 63 + - + CAST ( NULL AS INTEGER ), - 53 AS col1
----
NULL
-53

query I rowsort
SELECT ALL + - 76 + 91 - - 43 + + - 56 * ( 66 )
----
-3638

onlyif mysql # aggregate syntax: 
query I rowsort label-1263
SELECT DISTINCT - + COUNT( * ) * + - MIN( DISTINCT + 26 )
----
26

skipif mysql # not compatible
query I rowsort label-1263
SELECT DISTINCT - + COUNT ( * ) * + - MIN ( DISTINCT + 26 )
----
26

query I rowsort
SELECT DISTINCT - - 97 + - 75 AS col1
----
22

query I rowsort
SELECT + - 13 + - + NULLIF ( - 37, 78 ) AS col2
----
24

query I rowsort
SELECT - + COALESCE ( - 64, + 78 + + + 43 + + 47, + 2 ) * 0 AS col2
----
0

query I rowsort
SELECT ALL - COALESCE ( 86, 20 )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT 99 + - COUNT( * ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-1268
SELECT 99 + - COUNT ( * ) AS col2
----
98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1269
SELECT 46 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1269
SELECT 46 + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 89 * 93 * 70 AS col0
----
579390

query I rowsort
SELECT 91 + - 12 col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1272
SELECT ALL + 39 + MIN( DISTINCT - - 65 )
----
104

skipif mysql # not compatible
query I rowsort label-1272
SELECT ALL + 39 + MIN ( DISTINCT - - 65 )
----
104

query I rowsort
SELECT DISTINCT - COALESCE ( - - 4, + 41, 5 )
----
-4

query I rowsort
SELECT ALL 16 - 57
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-1275
SELECT DISTINCT 33 DIV - 66
----
0

skipif mysql # not compatible
query I rowsort label-1275
SELECT DISTINCT 33 / - 66
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1276
SELECT COUNT( * ) + 1 * - 27 / + + 41 * CASE - 70 WHEN + 84 * - + 75 THEN - 74 END * - - ( SUM( ALL - - 86 ) ) + - - 60 + - + COUNT( * ) * 78 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1276
SELECT COUNT ( * ) + 1 * - 27 / + + 41 * CASE - 70 WHEN + 84 * - + 75 THEN - 74 END * - - ( SUM ( ALL - - 86 ) ) + - - 60 + - + COUNT ( * ) * 78 col1
----
NULL

query II rowsort
SELECT DISTINCT - 87, 2 AS col2
----
-87
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1278
SELECT ALL - COALESCE ( - COUNT( * ), + + 56, - 98 + - COUNT( * ) ) - 17 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-1278
SELECT ALL - COALESCE ( - COUNT ( * ), + + 56, - 98 + - COUNT ( * ) ) - 17 AS col2
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-1279
SELECT 97 DIV - 9 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-1279
SELECT 97 / - 9 AS col0
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-1280
SELECT - 3 DIV + 7 + + + 58 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-1280
SELECT - 3 / + 7 + + + 58 AS col2
----
58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1281
SELECT DISTINCT - 77 AS col0, - 13 - - 0 DIV - - CAST( + 76 AS SIGNED ) AS col2
----
-77
-13

skipif mysql # not compatible
query II rowsort label-1281
SELECT DISTINCT - 77 AS col0, - 13 - - 0 / - - CAST ( + 76 AS INTEGER ) AS col2
----
-77
-13

query I rowsort
SELECT 16 + + 89 col1
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-1283
SELECT + 21 * 36 * 33 * + 28 - 26 * - - CASE - MIN( ALL 92 ) WHEN + 0 * + COUNT( * ) / + - 9 * + 78 THEN - ( - 73 ) WHEN - 79 * + 18 * + ( + 47 ) * + 0 * + + 18 THEN + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1283
SELECT + 21 * 36 * 33 * + 28 - 26 * - - CASE - MIN ( ALL 92 ) WHEN + 0 * + COUNT ( * ) / + - 9 * + 78 THEN - ( - 73 ) WHEN - 79 * + 18 * + ( + 47 ) * + 0 * + + 18 THEN + COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 8 * 23
----
184

onlyif mysql # DIV for integer division: 
query I rowsort label-1285
SELECT 13 * ( - 94 ) DIV - - 95 + - 54
----
-66

skipif mysql # not compatible
query I rowsort label-1285
SELECT 13 * ( - 94 ) / - - 95 + - 54
----
-66

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

query I rowsort
SELECT 32 * + 79 AS col0
----
2528

query I rowsort
SELECT 51 + + 81 * 87 + - + 88
----
7010

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT 22 * - + COUNT( * ) * 54 col1
----
-1188

skipif mysql # not compatible
query I rowsort label-1289
SELECT 22 * - + COUNT ( * ) * 54 col1
----
-1188

onlyif mysql # aggregate syntax: 
query I rowsort label-1290
SELECT DISTINCT NULLIF ( 9, - ( + 99 ) + COUNT( 72 ) ) * - 44 AS col2
----
-396

skipif mysql # not compatible
query I rowsort label-1290
SELECT DISTINCT NULLIF ( 9, - ( + 99 ) + COUNT ( 72 ) ) * - 44 AS col2
----
-396

query I rowsort
SELECT DISTINCT - NULLIF ( + 85, - + 37 ) AS col0
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1292
SELECT 80 * - 8 - - CAST( NULL AS SIGNED ) - 17 + AVG ( - ( 27 ) ) + - 29 - + 4 * 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1292
SELECT 80 * - 8 - - CAST ( NULL AS INTEGER ) - 17 + AVG ( - ( 27 ) ) + - 29 - + 4 * 97 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1293
SELECT ALL COALESCE ( 37, AVG ( ALL 1 ), + NULLIF ( + + COUNT( * ), - CAST( - + 56 AS SIGNED ) * + COUNT( ALL - 72 ) * 55 + - - 93 ) ) + - + CAST( NULL AS SIGNED ) * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1293
SELECT ALL COALESCE ( 37, AVG ( ALL 1 ), + NULLIF ( + + COUNT ( * ), - CAST ( - + 56 AS INTEGER ) * + COUNT ( ALL - 72 ) * 55 + - - 93 ) ) + - + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT 66 + - 51 col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1295
SELECT - COUNT( * ) * 21
----
-21

skipif mysql # not compatible
query I rowsort label-1295
SELECT - COUNT ( * ) * 21
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT ALL 86 + - COUNT( 39 ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-1296
SELECT ALL 86 + - COUNT ( 39 ) AS col0
----
85

query I rowsort
SELECT ALL + 34 + - 27 - - + 33
----
40

query I rowsort
SELECT DISTINCT - 75 * - + ( 87 ) + + 94
----
6619

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

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

query I rowsort
SELECT DISTINCT 18 + + - 40 AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1301
SELECT + COUNT( ALL - 56 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-1301
SELECT + COUNT ( ALL - 56 ) col2
----
1

query I rowsort
SELECT 35 + 4 col1
----
39

query I rowsort
SELECT ALL 31 + - 57
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-1304
SELECT ALL - MIN( + 87 ) * + 21
----
-1827

skipif mysql # not compatible
query I rowsort label-1304
SELECT ALL - MIN ( + 87 ) * + 21
----
-1827

onlyif mysql # aggregate syntax: 
query I rowsort label-1305
SELECT - + NULLIF ( 21, - SUM( DISTINCT + 71 ) )
----
-21

skipif mysql # not compatible
query I rowsort label-1305
SELECT - + NULLIF ( 21, - SUM ( DISTINCT + 71 ) )
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1306
SELECT DISTINCT - COUNT( * ) * + + 62 DIV + 16
----
-3

skipif mysql # not compatible
query I rowsort label-1306
SELECT DISTINCT - COUNT ( * ) * + + 62 / + 16
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT - 33 - - COUNT( * ) col0
----
-32

skipif mysql # not compatible
query I rowsort label-1307
SELECT - 33 - - COUNT ( * ) col0
----
-32

query I rowsort
SELECT DISTINCT 51 * + 74
----
3774

query I rowsort
SELECT 7 + + + 51
----
58

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

skipif mysql # not compatible
query I rowsort label-1310
SELECT 10 * - + 2 * ( - + COUNT ( 47 ) ) AS col1
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1311
SELECT ALL - CAST( NULL AS SIGNED ) * - 32 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1311
SELECT ALL - CAST ( NULL AS INTEGER ) * - 32 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1312
SELECT 17 + - 93 + NULLIF ( + + 93, 99 * + 69 * + - 10 * + COUNT( * ) )
----
17

skipif mysql # not compatible
query I rowsort label-1312
SELECT 17 + - 93 + NULLIF ( + + 93, 99 * + 69 * + - 10 * + COUNT ( * ) )
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1313
SELECT ALL - 71 - CAST( NULL AS SIGNED ), - CAST( NULL AS SIGNED ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1313
SELECT ALL - 71 - CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) AS col0
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1314
SELECT 89 col2, - AVG ( DISTINCT 17 ) + - 69 * + 79 + + 68 + + CAST( NULL AS SIGNED ) + + - CAST( NULL AS SIGNED ) + - - 22 + + + 93 * - AVG ( 58 ) / + COUNT( DISTINCT + 5 ) * - 53 AS col1
----
89
NULL

skipif mysql # not compatible
query II rowsort label-1314
SELECT 89 col2, - AVG ( DISTINCT 17 ) + - 69 * + 79 + + 68 + + CAST ( NULL AS INTEGER ) + + - CAST ( NULL AS INTEGER ) + - - 22 + + + 93 * - AVG ( 58 ) / + COUNT ( DISTINCT + 5 ) * - 53 AS col1
----
89
NULL

query I rowsort
SELECT 26 + + + 56 col0
----
82

query I rowsort
SELECT ALL - CASE - 37 WHEN + + 82 - + 16 + + - 31 THEN NULL ELSE 42 END
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-1317
SELECT COUNT( DISTINCT NULLIF ( + + 67, + - 92 + + 4 + - 19 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1317
SELECT COUNT ( DISTINCT NULLIF ( + + 67, + - 92 + + 4 + - 19 ) )
----
1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1319
SELECT 42 DIV + - 24
----
-1

skipif mysql # not compatible
query I rowsort label-1319
SELECT 42 / + - 24
----
-1

query I rowsort
SELECT DISTINCT - ( - 46 ) * - 69
----
-3174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1321
SELECT ALL - CAST( - COALESCE ( + CASE - + CASE + 52 WHEN + COALESCE ( + 17, - COALESCE ( + + ( 95 ), + 99 + - 29 * - - 37 + - 2 + + ( COUNT( * ) ) + + ( + NULLIF ( - + ( 42 ), - COUNT( * ) ) ), + - 2, - 68 ) ) * - MIN( DISTINCT - 46 ) * - COUNT( 60 ) + - 11 THEN NULL WHEN - 55 + + 96 + - + 87 - 53 + + 35 THEN + 81 END WHEN + + COALESCE ( 95, 51 * 23 ) THEN 54 END, + 87 * 73 ) AS SIGNED )
----
6351

skipif mysql # not compatible
query I rowsort label-1321
SELECT ALL - CAST ( - COALESCE ( + CASE - + CASE + 52 WHEN + COALESCE ( + 17, - COALESCE ( + + ( 95 ), + 99 + - 29 * - - 37 + - 2 + + ( COUNT ( * ) ) + + ( + NULLIF ( - + ( 42 ), - COUNT ( * ) ) ), + - 2, - 68 ) ) * - MIN ( DISTINCT - 46 ) * - COUNT ( 60 ) + - 11 THEN NULL WHEN - 55 + + 96 + - + 87 - 53 + + 35 THEN + 81 END WHEN + + COALESCE ( 95, 51 * 23 ) THEN 54 END, + 87 * 73 ) AS INTEGER )
----
6351

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1322
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + ( - NULLIF ( + CASE - + COUNT( * ) WHEN - 51 THEN + 51 WHEN + 19 THEN NULL END, + 55 ) ) * - 9 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1322
SELECT DISTINCT - CAST ( NULL AS REAL ) * + ( - NULLIF ( + CASE - + COUNT ( * ) WHEN - 51 THEN + 51 WHEN + 19 THEN NULL END, + 55 ) ) * - 9 col2
----
NULL

query I rowsort
SELECT ALL 3 * - + 4
----
-12

query II rowsort
SELECT 26 * - 35 AS col0, 46 + - 0 AS col2
----
-910
46

onlyif mysql # DIV for integer division: 
query I rowsort label-1325
SELECT 32 DIV 66 * - - 2 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1325
SELECT 32 / 66 * - - 2 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1326
SELECT ALL - CASE + 98 WHEN - 96 / - 2 - - + NULLIF ( + 24, - - 79 ) THEN - + 5 + - 49 WHEN - 16 / + COUNT( * ) + - ( - 8 ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1326
SELECT ALL - CASE + 98 WHEN - 96 / - 2 - - + NULLIF ( + 24, - - 79 ) THEN - + 5 + - 49 WHEN - 16 / + COUNT ( * ) + - ( - 8 ) THEN NULL ELSE NULL END AS col2
----
NULL

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

skipif mysql # not compatible
query II rowsort label-1327
SELECT + 64 AS col2, CAST ( + ( - - COUNT ( * ) ) AS INTEGER ) + - + 65
----
64
-64

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1328
SELECT ALL - CASE + 85 WHEN + 40 THEN NULL WHEN + + CAST( NULL AS SIGNED ) * - + CAST( NULL AS DECIMAL ) THEN 25 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1328
SELECT ALL - CASE + 85 WHEN + 40 THEN NULL WHEN + + CAST ( NULL AS INTEGER ) * - + CAST ( NULL AS REAL ) THEN 25 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1329
SELECT 22 DIV + 83
----
0

skipif mysql # not compatible
query I rowsort label-1329
SELECT 22 / + 83
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1330
SELECT 25 + - ( + + 57 ) + + 96 + CAST( 81 AS SIGNED ) * + 70 + - - 42 + 3 AS col0
----
5779

skipif mysql # not compatible
query I rowsort label-1330
SELECT 25 + - ( + + 57 ) + + 96 + CAST ( 81 AS INTEGER ) * + 70 + - - 42 + 3 AS col0
----
5779

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1331
SELECT ALL - 96 AS col1, + CAST( NULL AS DECIMAL ) * 8 * ( + + 64 ) - + + 5 AS col1
----
-96
NULL

skipif mysql # not compatible
query II rowsort label-1331
SELECT ALL - 96 AS col1, + CAST ( NULL AS REAL ) * 8 * ( + + 64 ) - + + 5 AS col1
----
-96
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1332
SELECT DISTINCT + 91 DIV + - 25 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-1332
SELECT DISTINCT + 91 / + - 25 AS col1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-1333
SELECT 35 DIV - 17
----
-2

skipif mysql # not compatible
query I rowsort label-1333
SELECT 35 / - 17
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-1334
SELECT 70 DIV + 10 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-1334
SELECT 70 / + 10 AS col1
----
7

query II rowsort
SELECT + 9, - ( 34 ) * 61 + + 53 AS col0
----
9
-2021

query I rowsort
SELECT - 48 * + COALESCE ( + 65, + - 89 + + + 72 ) AS col2
----
-3120

onlyif mysql # aggregate syntax: 
query II rowsort label-1337
SELECT ALL 17 + + + 6 col1, ( + 46 ) + + COUNT( * )
----
23
47

skipif mysql # not compatible
query II rowsort label-1337
SELECT ALL 17 + + + 6 col1, ( + 46 ) + + COUNT ( * )
----
23
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1338
SELECT 23 * - + MIN( + - 73 ) * + 96 - - 26 AS col2
----
161210

skipif mysql # not compatible
query I rowsort label-1338
SELECT 23 * - + MIN ( + - 73 ) * + 96 - - 26 AS col2
----
161210

onlyif mysql # aggregate syntax: 
query II rowsort label-1339
SELECT ALL - 37, - COALESCE ( + - ( COALESCE ( - 7, + ( - 47 ) ) ), + - 36, - MAX( DISTINCT 5 ) ) + - 99 AS col0
----
-37
-106

skipif mysql # not compatible
query II rowsort label-1339
SELECT ALL - 37, - COALESCE ( + - ( COALESCE ( - 7, + ( - 47 ) ) ), + - 36, - MAX ( DISTINCT 5 ) ) + - 99 AS col0
----
-37
-106

query II rowsort
SELECT ALL 4, 60 * - 32 AS col2
----
4
-1920

query II rowsort
SELECT ALL - 16, + 10 AS col2
----
-16
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1342
SELECT + 13 * + 31 DIV + + COALESCE ( - COUNT( * ), + 26 * + ( + + 94 ) ) - + + COUNT( * ) AS col2
----
-404

skipif mysql # not compatible
query I rowsort label-1342
SELECT + 13 * + 31 / + + COALESCE ( - COUNT ( * ), + 26 * + ( + + 94 ) ) - + + COUNT ( * ) AS col2
----
-404

query II rowsort
SELECT ALL ( + 39 ) + + 90 + + ( - + CASE 76 WHEN - - 99 THEN - 43 WHEN + ( - + ( - COALESCE ( - ( - 15 ), - + 4 ) ) ) * 45 THEN NULL ELSE NULL END ) * - + 55 AS col2, - 98
----
NULL
-98

query II rowsort
SELECT + 5, + 5 AS col2
----
5
5

onlyif mysql # aggregate syntax: 
query II rowsort label-1345
SELECT ALL + 93, COUNT( DISTINCT - 18 ) col0
----
93
1

skipif mysql # not compatible
query II rowsort label-1345
SELECT ALL + 93, COUNT ( DISTINCT - 18 ) col0
----
93
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1346
SELECT - 55 AS col0, ( + NULLIF ( - - 21, COUNT( * ) + - SUM( - + 67 ) * - 65 + 32 ) ) AS col2
----
-55
21

skipif mysql # not compatible
query II rowsort label-1346
SELECT - 55 AS col0, ( + NULLIF ( - - 21, COUNT ( * ) + - SUM ( - + 67 ) * - 65 + 32 ) ) AS col2
----
-55
21

query II rowsort
SELECT DISTINCT - 57 AS col2, + ( - 57 ) AS col1
----
-57
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1348
SELECT DISTINCT CASE 11 WHEN - COUNT( * ) * - - 97 * + + COALESCE ( - + 97, + + 42 * - 52 * - - 77, - 38 - COUNT( * ) ) + - ( - + COALESCE ( - 32, + - CAST( NULL AS SIGNED ) + 38 ) ) THEN + ( - - 32 ) WHEN - + 37 THEN NULL END * + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-1348
SELECT DISTINCT CASE 11 WHEN - COUNT ( * ) * - - 97 * + + COALESCE ( - + 97, + + 42 * - 52 * - - 77, - 38 - COUNT ( * ) ) + - ( - + COALESCE ( - 32, + - CAST ( NULL AS INTEGER ) + 38 ) ) THEN + ( - - 32 ) WHEN - + 37 THEN NULL END * + 6
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1349
SELECT DISTINCT - 92 DIV 47 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1349
SELECT DISTINCT - 92 / 47 AS col0
----
-1

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

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

query II rowsort
SELECT + 69 + + 58 AS col2, 5 AS col1
----
127
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1352
SELECT ALL NULLIF ( MAX( + 63 ), - - 84 * - + 22 + 27 + - 12 + - - 50 + + + 0 ) * - 45 AS col2
----
-2835

skipif mysql # not compatible
query I rowsort label-1352
SELECT ALL NULLIF ( MAX ( + 63 ), - - 84 * - + 22 + 27 + - 12 + - - 50 + + + 0 ) * - 45 AS col2
----
-2835

onlyif mysql # DIV for integer division: 
query I rowsort label-1353
SELECT + 45 DIV - ( + 78 )
----
0

skipif mysql # not compatible
query I rowsort label-1353
SELECT + 45 / - ( + 78 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1354
SELECT - MIN( 80 ) * + 90
----
-7200

skipif mysql # not compatible
query I rowsort label-1354
SELECT - MIN ( 80 ) * + 90
----
-7200

query I rowsort
SELECT ALL ( - - 22 ) * 89
----
1958

onlyif mysql # aggregate syntax: 
query II rowsort label-1356
SELECT + 21 * 89, + CASE + - 38 WHEN 35 / SUM( ALL - 3 ) THEN NULL ELSE 67 END AS col1
----
1869
67

skipif mysql # not compatible
query II rowsort label-1356
SELECT + 21 * 89, + CASE + - 38 WHEN 35 / SUM ( ALL - 3 ) THEN NULL ELSE 67 END AS col1
----
1869
67

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

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

query I rowsort
SELECT + 38 + + 65
----
103

query I rowsort
SELECT DISTINCT 62 * - + 90 AS col2
----
-5580

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1360
SELECT - 13 DIV - 72 + NULLIF ( 16, - - 87 + + COALESCE ( + 78, - COUNT( * ) * + 56 - + - CASE - + 52 WHEN 32 * 63 * - 30 + - 78 + - - AVG ( DISTINCT - 68 ) + + COALESCE ( - 33, CAST( - CAST( - + 4 AS SIGNED ) AS SIGNED ) ) * + 74 * - COALESCE ( + 28, + COUNT( * ) ) * + COUNT( ALL + + 35 ) + + + ( - 47 ) + - 90 + - - COUNT( * ) * - + 89 THEN - + ( - - ( - - COUNT( * ) ) ) END ) * + + 87 * COUNT( * ) ) + 83
----
99

skipif mysql # not compatible
query I rowsort label-1360
SELECT - 13 / - 72 + NULLIF ( 16, - - 87 + + COALESCE ( + 78, - COUNT ( * ) * + 56 - + - CASE - + 52 WHEN 32 * 63 * - 30 + - 78 + - - AVG ( DISTINCT - 68 ) + + COALESCE ( - 33, CAST ( - CAST ( - + 4 AS INTEGER ) AS INTEGER ) ) * + 74 * - COALESCE ( + 28, + COUNT ( * ) ) * + COUNT ( ALL + + 35 ) + + + ( - 47 ) + - 90 + - - COUNT ( * ) * - + 89 THEN - + ( - - ( - - COUNT ( * ) ) ) END ) * + + 87 * COUNT ( * ) ) + 83
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1361
SELECT ALL COUNT( * ) * + 23 * 93 + - - CAST( NULL AS SIGNED ) + - 17 + + - AVG ( + 34 ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1361
SELECT ALL COUNT ( * ) * + 23 * 93 + - - CAST ( NULL AS INTEGER ) + - 17 + + - AVG ( + 34 ) * COUNT ( * )
----
NULL

query I rowsort
SELECT - 84 + - 48 + + 67 AS col2
----
-65

query II rowsort
SELECT + 55 * - 88 AS col2, - 53 - - - 33 * + ( 76 ) AS col0
----
-4840
-2561

query I rowsort
SELECT DISTINCT 75 * + 79 + - + 22 - + + 12
----
5891

query I rowsort
SELECT ALL 43 * 16 + - 0 AS col1
----
688

query I rowsort
SELECT COALESCE ( - + 28, - - 37 * - 93 + - + ( + 55 ), 29 * - 67 ) AS col0
----
-28

query I rowsort
SELECT ALL 49 * - 82 + - 72 - - + ( - 43 ) + 48 * 81 AS col0
----
-245

query I rowsort
SELECT ALL + 41 * 1 * - + 97 + - 21
----
-3998

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1369
SELECT DISTINCT - - 65 * + 45 - + 99 + AVG ( + 25 ) + - 91 + + - 88 - - + 70 + + 85 - + - NULLIF ( - ( - 26 ), COUNT( 94 ) + + 21 ) + 49 * + 8 * - CAST( NULL AS SIGNED ) * + 13 + 50 * - - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-1369
SELECT DISTINCT - - 65 * + 45 - + 99 + AVG ( + 25 ) + - 91 + + - 88 - - + 70 + + 85 - + - NULLIF ( - ( - 26 ), COUNT ( 94 ) + + 21 ) + 49 * + 8 * - CAST ( NULL AS INTEGER ) * + 13 + 50 * - - 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1370
SELECT DISTINCT 20 * + + ( - COUNT( * ) ) + 94 * + 62 - - 91
----
5899

skipif mysql # not compatible
query I rowsort label-1370
SELECT DISTINCT 20 * + + ( - COUNT ( * ) ) + 94 * + 62 - - 91
----
5899

query I rowsort
SELECT ALL + - 90 * - 62 + ( + 7 ) * 0
----
5580

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1373
SELECT - COUNT( * ) + + + MIN( + 15 ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-1373
SELECT - COUNT ( * ) + + + MIN ( + 15 ) AS col0
----
14

query I rowsort
SELECT - - 51 * - 94
----
-4794

onlyif mysql # aggregate syntax: 
query I rowsort label-1375
SELECT - + 60 + - + 34 * + 11 * - COUNT( * )
----
314

skipif mysql # not compatible
query I rowsort label-1375
SELECT - + 60 + - + 34 * + 11 * - COUNT ( * )
----
314

query I rowsort
SELECT ALL 63 * + + 1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1377
SELECT DISTINCT + - 35 * COALESCE ( + + 76, COUNT( * ) ) * COUNT( * )
----
-2660

skipif mysql # not compatible
query I rowsort label-1377
SELECT DISTINCT + - 35 * COALESCE ( + + 76, COUNT ( * ) ) * COUNT ( * )
----
-2660

query I rowsort
SELECT + 46 + - ( 66 ) * - 26 AS col2
----
1762

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1379
SELECT NULLIF ( 8, 57 ) AS col0, + ( - 79 ) * 88 / - CAST( NULL AS SIGNED ) AS col0
----
8
NULL

skipif mysql # not compatible
query II rowsort label-1379
SELECT NULLIF ( 8, 57 ) AS col0, + ( - 79 ) * 88 / - CAST ( NULL AS INTEGER ) AS col0
----
8
NULL

query I rowsort
SELECT + 51 + - 14 AS col2
----
37

query II rowsort
SELECT ALL 81 AS col1, 55 col2
----
81
55

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1383
SELECT + COUNT( * ) * + 67 * - 61
----
-4087

skipif mysql # not compatible
query I rowsort label-1383
SELECT + COUNT ( * ) * + 67 * - 61
----
-4087

query I rowsort
SELECT - 39 * + - 60 AS col1
----
2340

query I rowsort
SELECT ALL - 81 + + 2
----
-79

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1386
SELECT ALL 85 DIV + CAST( + 60 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-1386
SELECT ALL 85 / + CAST ( + 60 AS INTEGER )
----
1

query I rowsort
SELECT ALL 79 + + + 12 AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1388
SELECT ALL 49 * - MAX( ALL 96 )
----
-4704

skipif mysql # not compatible
query I rowsort label-1388
SELECT ALL 49 * - MAX ( ALL 96 )
----
-4704

onlyif mysql # DIV for integer division: 
query II rowsort label-1389
SELECT + 61 DIV 91 * - 43 AS col2, 43 + + + 21 + 59
----
0
123

skipif mysql # not compatible
query II rowsort label-1389
SELECT + 61 / 91 * - 43 AS col2, 43 + + + 21 + 59
----
0
123

onlyif mysql # DIV for integer division: 
query I rowsort label-1390
SELECT ALL - 43 DIV 87 + + 35 col0
----
35

skipif mysql # not compatible
query I rowsort label-1390
SELECT ALL - 43 / 87 + + 35 col0
----
35

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

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

query II rowsort
SELECT ALL + 7 AS col1, 20
----
7
20

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

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

query I rowsort
SELECT 10 * + 87
----
870

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

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

query I rowsort
SELECT - 49 + - 20 AS col0
----
-69

query II rowsort
SELECT DISTINCT - 30 AS col2, 87 * - + 73 AS col2
----
-30
-6351

onlyif mysql # aggregate syntax: 
query I rowsort label-1398
SELECT + 41 * - + NULLIF ( - - 15, - + 34 / - 72 + - SUM( 13 ) - ( - 57 ) ) AS col0
----
-615

skipif mysql # not compatible
query I rowsort label-1398
SELECT + 41 * - + NULLIF ( - - 15, - + 34 / - 72 + - SUM ( 13 ) - ( - 57 ) ) AS col0
----
-615

query I rowsort
SELECT DISTINCT - - 63 * 38 * 86 - 26 + - 18
----
205840

query I rowsort
SELECT ALL 68 * + 26 AS col2
----
1768

query I rowsort
SELECT - 8 * + 63
----
-504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-1402
SELECT DISTINCT - CAST( + - 32 AS SIGNED ) * + 45, 73 AS col2, - 84 * + 64 * COUNT( * ) - - CAST( NULL AS SIGNED ) AS col2
----
1440
73
NULL

skipif mysql # not compatible
query III rowsort label-1402
SELECT DISTINCT - CAST ( + - 32 AS INTEGER ) * + 45, 73 AS col2, - 84 * + 64 * COUNT ( * ) - - CAST ( NULL AS INTEGER ) AS col2
----
1440
73
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1403
SELECT ALL + - COUNT( * ) * - 46 col1
----
46

skipif mysql # not compatible
query I rowsort label-1403
SELECT ALL + - COUNT ( * ) * - 46 col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1404
SELECT ALL - + CASE COALESCE ( - + COUNT( * ), 25 + 65 ) WHEN + COUNT( * ) * - + 65 + - 75 + + 63 THEN - COALESCE ( - + 56, 50 * 36 ) * + 29 + + - 80 + - 48 END / - - MAX( DISTINCT 87 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1404
SELECT ALL - + CASE COALESCE ( - + COUNT ( * ), 25 + 65 ) WHEN + COUNT ( * ) * - + 65 + - 75 + + 63 THEN - COALESCE ( - + 56, 50 * 36 ) * + 29 + + - 80 + - 48 END / - - MAX ( DISTINCT 87 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1405
SELECT - 35 - - 90 + 33 + - 91 * - + ( + COUNT( * ) ) * - - 32 AS col2
----
3000

skipif mysql # not compatible
query I rowsort label-1405
SELECT - 35 - - 90 + 33 + - 91 * - + ( + COUNT ( * ) ) * - - 32 AS col2
----
3000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1406
SELECT + 74 / - COUNT( * ) / + CASE + + 90 WHEN - COUNT( * ) THEN NULL WHEN - - CAST( NULL AS SIGNED ) THEN - 19 + COUNT( ALL + 59 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1406
SELECT + 74 / - COUNT ( * ) / + CASE + + 90 WHEN - COUNT ( * ) THEN NULL WHEN - - CAST ( NULL AS INTEGER ) THEN - 19 + COUNT ( ALL + 59 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1407
SELECT DISTINCT - CASE - + 84 WHEN - 57 THEN NULL WHEN + 55 + - COALESCE ( - 90, COUNT( * ) * + MIN( 17 ) * + 40 ) - + 48 / 54 + - ( + COUNT( * ) ) * - + COALESCE ( - 10, + 65 + + 4 ) + - 66 THEN 82 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1407
SELECT DISTINCT - CASE - + 84 WHEN - 57 THEN NULL WHEN + 55 + - COALESCE ( - 90, COUNT ( * ) * + MIN ( 17 ) * + 40 ) - + 48 / 54 + - ( + COUNT ( * ) ) * - + COALESCE ( - 10, + 65 + + 4 ) + - 66 THEN 82 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1408
SELECT COUNT( * ) * + 5 * + ( - + COALESCE ( + 52, + COUNT( * ) * 14 ) ) * + 5 + + + 90 AS col1, 68 + + 86 * 90 DIV + + NULLIF ( + 16, - 25 ) AS col0
----
-1210
551

skipif mysql # not compatible
query II rowsort label-1408
SELECT COUNT ( * ) * + 5 * + ( - + COALESCE ( + 52, + COUNT ( * ) * 14 ) ) * + 5 + + + 90 AS col1, 68 + + 86 * 90 / + + NULLIF ( + 16, - 25 ) AS col0
----
-1210
551

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1409
SELECT ALL - 94 DIV - 30 AS col0, - MAX( + + 91 )
----
3
-91

skipif mysql # not compatible
query II rowsort label-1409
SELECT ALL - 94 / - 30 AS col0, - MAX ( + + 91 )
----
3
-91

query I rowsort
SELECT ALL + 49 + + 65 AS col0
----
114

query I rowsort
SELECT DISTINCT 44 + + - 58 + 77
----
63

query I rowsort
SELECT ALL 3 + + - ( + 33 )
----
-30

query I rowsort
SELECT 42 - + + 78 AS col1
----
-36

query I rowsort
SELECT ALL + ( + 50 ) * + 48 col1
----
2400

query I rowsort
SELECT 54 + + - 23 - - + 77 + 34 * - 35 * - + 10
----
12008

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1417
SELECT 41 + + 7 + 37 + + - MAX( 69 )
----
16

skipif mysql # not compatible
query I rowsort label-1417
SELECT 41 + + 7 + 37 + + - MAX ( 69 )
----
16

query I rowsort
SELECT 76 - 19 AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1419
SELECT 51 + + COUNT( * ) col2
----
52

skipif mysql # not compatible
query I rowsort label-1419
SELECT 51 + + COUNT ( * ) col2
----
52

query I rowsort
SELECT ALL - 87 + - 17 AS col0
----
-104

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1422
SELECT + SUM( + ( + 75 ) ) DIV 51 + 33 AS col2
----
34

skipif mysql # not compatible
query I rowsort label-1422
SELECT + SUM ( + ( + 75 ) ) / 51 + 33 AS col2
----
34

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1423
SELECT ALL CAST( - - 49 AS SIGNED ) DIV + 73 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1423
SELECT ALL CAST ( - - 49 AS INTEGER ) / + 73 AS col1
----
0

query I rowsort
SELECT 66 * 9 + - + 11 AS col1
----
583

query I rowsort
SELECT DISTINCT 68 * + 46 col1
----
3128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1426
SELECT - 42 * + CASE - CAST( NULL AS SIGNED ) WHEN 77 THEN 77 WHEN + 95 - 34 THEN 0 * - + 57 + - 18 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1426
SELECT - 42 * + CASE - CAST ( NULL AS INTEGER ) WHEN 77 THEN 77 WHEN + 95 - 34 THEN 0 * - + 57 + - 18 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1427
SELECT + 47 * + COUNT( * ) AS col2, + 86
----
47
86

skipif mysql # not compatible
query II rowsort label-1427
SELECT + 47 * + COUNT ( * ) AS col2, + 86
----
47
86

query I rowsort
SELECT 20 * - 19 + + 43
----
-337

query I rowsort
SELECT ALL - 15 * + + 8
----
-120

onlyif mysql # DIV for integer division: 
query I rowsort label-1430
SELECT - 56 DIV + 74 col0
----
0

skipif mysql # not compatible
query I rowsort label-1430
SELECT - 56 / + 74 col0
----
0

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

skipif mysql # not compatible
query I rowsort label-1431
SELECT - 26 / COUNT ( * ) + 69 AS col2
----
43

query I rowsort
SELECT 35 * - 45 + + 65 AS col2
----
-1510

query I rowsort
SELECT DISTINCT - + NULLIF ( - - 56, - - 41 )
----
-56

query I rowsort
SELECT ALL - + 75 col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1435
SELECT + 33 + SUM( DISTINCT + 71 ) AS col2
----
104

skipif mysql # not compatible
query I rowsort label-1435
SELECT + 33 + SUM ( DISTINCT + 71 ) AS col2
----
104

query II rowsort
SELECT ALL + 38 + - 49 AS col2, 29 AS col1
----
-11
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1437
SELECT DISTINCT - - 68 * MIN( ALL - 36 ) AS col0
----
-2448

skipif mysql # not compatible
query I rowsort label-1437
SELECT DISTINCT - - 68 * MIN ( ALL - 36 ) AS col0
----
-2448

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1440
SELECT 26 DIV 21
----
1

skipif mysql # not compatible
query I rowsort label-1440
SELECT 26 / 21
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1441
SELECT DISTINCT - 81 + - ( 48 ) DIV - 72
----
-81

skipif mysql # not compatible
query I rowsort label-1441
SELECT DISTINCT - 81 + - ( 48 ) / - 72
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1442
SELECT DISTINCT 39 * CAST( + - 0 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1442
SELECT DISTINCT 39 * CAST ( + - 0 AS INTEGER )
----
0

query I rowsort
SELECT ALL - 63 + + 44 + 53
----
34

query I rowsort
SELECT ALL + ( - - 31 ) + + 25 AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1445
SELECT NULLIF ( COUNT( * ), + + 72 ) * + 2 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-1445
SELECT NULLIF ( COUNT ( * ), + + 72 ) * + 2 AS col1
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1446
SELECT 41 DIV 6 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-1446
SELECT 41 / 6 AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1447
SELECT ALL 31 - - - COUNT( * ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-1447
SELECT ALL 31 - - - COUNT ( * ) AS col2
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1448
SELECT ALL - COUNT( DISTINCT - 54 ) * 75 DIV - + 88
----
0

skipif mysql # not compatible
query I rowsort label-1448
SELECT ALL - COUNT ( DISTINCT - 54 ) * 75 / - + 88
----
0

query I rowsort
SELECT 76 * - - 44 col1
----
3344

query I rowsort
SELECT DISTINCT 7 * - 79
----
-553

query I rowsort
SELECT DISTINCT - 74 * + 83
----
-6142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1452
SELECT ALL - 19 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1452
SELECT ALL - 19 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1454
SELECT + 14 * + + COUNT( * ) + + ( + NULLIF ( + 81, 1 ) ) AS col2, CAST( NULL AS DECIMAL ) - + 61 + - 75 AS col0
----
95
NULL

skipif mysql # not compatible
query II rowsort label-1454
SELECT + 14 * + + COUNT ( * ) + + ( + NULLIF ( + 81, 1 ) ) AS col2, CAST ( NULL AS REAL ) - + 61 + - 75 AS col0
----
95
NULL

query I rowsort
SELECT ALL - 58 * - + 96 AS col2
----
5568

query I rowsort
SELECT ALL + 3 * - - ( + + 47 ) AS col0
----
141

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1458
SELECT - - COUNT( * ) + + 56
----
57

skipif mysql # not compatible
query I rowsort label-1458
SELECT - - COUNT ( * ) + + 56
----
57

query I rowsort
SELECT - + 53 + 11 col0
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1460
SELECT + NULLIF ( - ( 89 ), 65 ) * - CAST( 44 AS SIGNED ) + - 83 AS col0
----
3833

skipif mysql # not compatible
query I rowsort label-1460
SELECT + NULLIF ( - ( 89 ), 65 ) * - CAST ( 44 AS INTEGER ) + - 83 AS col0
----
3833

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1461
SELECT ALL 87 * ( COUNT( - CAST( - COALESCE ( - 63, - 46 * 6 + + CAST( NULL AS SIGNED ) ) AS SIGNED ) ) ) DIV + 88
----
0

skipif mysql # not compatible
query I rowsort label-1461
SELECT ALL 87 * ( COUNT ( - CAST ( - COALESCE ( - 63, - 46 * 6 + + CAST ( NULL AS INTEGER ) ) AS INTEGER ) ) ) / + 88
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1462
SELECT 62 * - 16 * + 62 + + + 85 + + + ( + 49 ) * COUNT( * ) * + 5
----
-61174

skipif mysql # not compatible
query I rowsort label-1462
SELECT 62 * - 16 * + 62 + + + 85 + + + ( + 49 ) * COUNT ( * ) * + 5
----
-61174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1463
SELECT ALL + 51 * - 54 + COALESCE ( + COALESCE ( + + 60, - 37 ), - - ( - COUNT( * ) ), 87 DIV - 37 + + 59 * + + CAST( NULL AS SIGNED ) * + + 83, + - COALESCE ( 90, - 80 * - - 62 - + - COUNT( * ) ) ) col1, 62 * + 81 col2
----
-2694
5022

skipif mysql # not compatible
query II rowsort label-1463
SELECT ALL + 51 * - 54 + COALESCE ( + COALESCE ( + + 60, - 37 ), - - ( - COUNT ( * ) ), 87 / - 37 + + 59 * + + CAST ( NULL AS INTEGER ) * + + 83, + - COALESCE ( 90, - 80 * - - 62 - + - COUNT ( * ) ) ) col1, 62 * + 81 col2
----
-2694
5022

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1464
SELECT ALL + 96 * + CAST( - - 93 AS SIGNED ) DIV - COUNT( * ) + - 94 * ( + 60 ) AS col0
----
-14568

skipif mysql # not compatible
query I rowsort label-1464
SELECT ALL + 96 * + CAST ( - - 93 AS INTEGER ) / - COUNT ( * ) + - 94 * ( + 60 ) AS col0
----
-14568

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1465
SELECT - + CAST( NULL AS SIGNED ) * - MIN( 83 ) + 11 * ( + 2 ) * - 77 + - + SUM( - 73 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1465
SELECT - + CAST ( NULL AS INTEGER ) * - MIN ( 83 ) + 11 * ( + 2 ) * - 77 + - + SUM ( - 73 ) AS col1
----
NULL

query I rowsort
SELECT + 75 + COALESCE ( + 14, - 62 ) AS col0
----
89

query I rowsort
SELECT ALL 78 * ( + 2 ) + + 31 AS col2
----
187

onlyif mysql # aggregate syntax: 
query III rowsort label-1468
SELECT SUM( + 6 ) AS col0, + NULLIF ( - ( ( - 86 ) ), COUNT( * ) ) AS col0, + 37
----
6
86
37

skipif mysql # not compatible
query III rowsort label-1468
SELECT SUM ( + 6 ) AS col0, + NULLIF ( - ( ( - 86 ) ), COUNT ( * ) ) AS col0, + 37
----
6
86
37

query I rowsort
SELECT DISTINCT - 49 * - 33 + 0 AS col1
----
1617

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1470
SELECT + 39 + + CAST( NULL AS SIGNED ) * + 19 * - - 80 + + - SUM( - 98 ) - CASE + 64 WHEN - COUNT( * ) THEN NULL WHEN 66 THEN - CAST( NULL AS SIGNED ) - 38 * + 36 ELSE NULL END + - 82 * 55
----
NULL

skipif mysql # not compatible
query I rowsort label-1470
SELECT + 39 + + CAST ( NULL AS INTEGER ) * + 19 * - - 80 + + - SUM ( - 98 ) - CASE + 64 WHEN - COUNT ( * ) THEN NULL WHEN 66 THEN - CAST ( NULL AS INTEGER ) - 38 * + 36 ELSE NULL END + - 82 * 55
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1472
SELECT - ( - CASE + COUNT( * ) WHEN - COALESCE ( + CASE - NULLIF ( + 17, 2 ) WHEN - 6 THEN + ( - 66 ) WHEN 48 THEN NULL END, 23 + + - 0 ) * 73 / + + 25 * - 83 * - - 23 THEN - 76 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1472
SELECT - ( - CASE + COUNT ( * ) WHEN - COALESCE ( + CASE - NULLIF ( + 17, 2 ) WHEN - 6 THEN + ( - 66 ) WHEN 48 THEN NULL END, 23 + + - 0 ) * 73 / + + 25 * - 83 * - - 23 THEN - 76 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1473
SELECT ALL COUNT( + 75 ) + - 60
----
-59

skipif mysql # not compatible
query I rowsort label-1473
SELECT ALL COUNT ( + 75 ) + - 60
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-1474
SELECT COUNT( + 74 ) AS col1, + COALESCE ( - - 18, + NULLIF ( + 50, + 26 + + 69 - + COUNT( * ) ), NULLIF ( - 23, + - 96 ) ) AS col0
----
1
18

skipif mysql # not compatible
query II rowsort label-1474
SELECT COUNT ( + 74 ) AS col1, + COALESCE ( - - 18, + NULLIF ( + 50, + 26 + + 69 - + COUNT ( * ) ), NULLIF ( - 23, + - 96 ) ) AS col0
----
1
18

query II rowsort
SELECT 73 AS col2, 50 + - 21
----
73
29

query I rowsort
SELECT + 8 + - 34 - + 36 + 16 * - 68
----
-1150

onlyif mysql # aggregate syntax: 
query I rowsort label-1477
SELECT - COUNT( * ) * - 93 * + - 62 AS col2
----
-5766

skipif mysql # not compatible
query I rowsort label-1477
SELECT - COUNT ( * ) * - 93 * + - 62 AS col2
----
-5766

query I rowsort
SELECT ALL 20 * + - 63 AS col0
----
-1260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1479
SELECT ALL - 87 - + 51 - - 57 * 11 * + - 64 * - + COUNT( * ) + - CASE - 61 WHEN + 47 THEN - 50 END - - 27 * - 51 + CAST( - 56 AS SIGNED ) + 19 + + CASE - NULLIF ( - 83, + MIN( 87 ) + - COUNT( * ) ) WHEN COUNT( * ) THEN + - 48 WHEN 80 THEN AVG ( 56 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1479
SELECT ALL - 87 - + 51 - - 57 * 11 * + - 64 * - + COUNT ( * ) + - CASE - 61 WHEN + 47 THEN - 50 END - - 27 * - 51 + CAST ( - 56 AS INTEGER ) + 19 + + CASE - NULLIF ( - 83, + MIN ( 87 ) + - COUNT ( * ) ) WHEN COUNT ( * ) THEN + - 48 WHEN 80 THEN AVG ( 56 ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1480
SELECT + COUNT( ALL CAST( + 7 AS SIGNED ) ) * + 36 + 1 DIV COUNT( * ) AS col1, + 85 + + + 50 AS col0
----
37
135

skipif mysql # not compatible
query II rowsort label-1480
SELECT + COUNT ( ALL CAST ( + 7 AS INTEGER ) ) * + 36 + 1 / COUNT ( * ) AS col1, + 85 + + + 50 AS col0
----
37
135

query I rowsort
SELECT ALL 84 * + ( + 32 ) col0
----
2688

onlyif mysql # aggregate syntax: 
query I rowsort label-1482
SELECT + 66 + - COUNT( * ) + 99 + - - 52 * + 82 AS col1
----
4428

skipif mysql # not compatible
query I rowsort label-1482
SELECT + 66 + - COUNT ( * ) + 99 + - - 52 * + 82 AS col1
----
4428

onlyif mysql # aggregate syntax: 
query II rowsort label-1483
SELECT + COUNT( * ) * - 62 AS col2, + 7 * 3 + 72 + + 33
----
-62
126

skipif mysql # not compatible
query II rowsort label-1483
SELECT + COUNT ( * ) * - 62 AS col2, + 7 * 3 + 72 + + 33
----
-62
126

query I rowsort
SELECT - ( + 20 ) * - 38 AS col1
----
760

onlyif mysql # aggregate syntax: 
query I rowsort label-1485
SELECT + + 42 + + COUNT( * ) + - - 95 AS col0
----
138

skipif mysql # not compatible
query I rowsort label-1485
SELECT + + 42 + + COUNT ( * ) + - - 95 AS col0
----
138

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1486
SELECT - 1 AS col1, - 19 * + CAST( + 39 AS SIGNED ) * + 0 + - ( + 50 ) AS col2
----
-1
-50

skipif mysql # not compatible
query II rowsort label-1486
SELECT - 1 AS col1, - 19 * + CAST ( + 39 AS INTEGER ) * + 0 + - ( + 50 ) AS col2
----
-1
-50

query I rowsort
SELECT - + 93 + + 57 AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1488
SELECT - - NULLIF ( - COUNT( * ), - SUM( ALL + - 6 ) ) + - 44 AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-1488
SELECT - - NULLIF ( - COUNT ( * ), - SUM ( ALL + - 6 ) ) + - 44 AS col1
----
-45

query I rowsort
SELECT ALL - + 18 * - + NULLIF ( + 41, 65 ) * - 9 AS col0
----
-6642

onlyif mysql # aggregate syntax: 
query I rowsort label-1490
SELECT DISTINCT + - COALESCE ( + + 55, - COUNT( * ), - 92 + - 38 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-1490
SELECT DISTINCT + - COALESCE ( + + 55, - COUNT ( * ), - 92 + - 38 ) AS col2
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1491
SELECT ALL - 43 DIV 96 + + - 93 - - COUNT( * ) DIV 57 AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-1491
SELECT ALL - 43 / 96 + + - 93 - - COUNT ( * ) / 57 AS col1
----
-93

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

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

query I rowsort
SELECT - 88 + - 49
----
-137

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

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

query II rowsort
SELECT + 9, + 47 AS col2
----
9
47

query II rowsort
SELECT + 42, + 2 AS col0
----
42
2

onlyif mysql # aggregate syntax: 
query II rowsort label-1497
SELECT - + CASE COALESCE ( + - COUNT( * ), 82, 37 ) WHEN + + 55 THEN NULL WHEN - - 92 THEN - 67 * 57 END * + - 25 + - - 47 AS col0, ( + 42 )
----
NULL
42

skipif mysql # not compatible
query II rowsort label-1497
SELECT - + CASE COALESCE ( + - COUNT ( * ), 82, 37 ) WHEN + + 55 THEN NULL WHEN - - 92 THEN - 67 * 57 END * + - 25 + - - 47 AS col0, ( + 42 )
----
NULL
42

query II rowsort
SELECT ALL + + 93 AS col2, 92 * + + 99 * - + 14 + - 80
----
93
-127592

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1499
SELECT ALL + - 15 / + 29 * - CAST( NULL AS SIGNED ) * + + 77 + + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-1499
SELECT ALL + - 15 / + 29 * - CAST ( NULL AS INTEGER ) * + + 77 + + 22
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1500
SELECT - + ( COALESCE ( - 50, - + 16 * + + 5, + 8 ) ) DIV - ( + ( 78 ) )
----
0

skipif mysql # not compatible
query I rowsort label-1500
SELECT - + ( COALESCE ( - 50, - + 16 * + + 5, + 8 ) ) / - ( + ( 78 ) )
----
0

query I rowsort
SELECT ALL - 63 * + 63 + + 23 + + - 38 col1
----
-3984

query II rowsort
SELECT + - 13 AS col0, 55
----
-13
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1503
SELECT ALL + SUM( DISTINCT COALESCE ( 51, + COALESCE ( - 31, - 10 ), - CAST( NULL AS SIGNED ) + 79 ) ) * - MIN( DISTINCT + 74 ) / - 61 * - CASE - - 51 WHEN 90 THEN NULL WHEN - - COUNT( * ) * COUNT( * ) / - 18 THEN 46 END + + ( + CASE + + 36 WHEN + 41 * + 88 + 58 + - 15 * - 22 - 33 THEN NULL WHEN - 89 THEN - 2 - - 21 END ) / 52 + 94 * - ( 74 ) + + 22 + + 16 - - 3 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1503
SELECT ALL + SUM ( DISTINCT COALESCE ( 51, + COALESCE ( - 31, - 10 ), - CAST ( NULL AS INTEGER ) + 79 ) ) * - MIN ( DISTINCT + 74 ) / - 61 * - CASE - - 51 WHEN 90 THEN NULL WHEN - - COUNT ( * ) * COUNT ( * ) / - 18 THEN 46 END + + ( + CASE + + 36 WHEN + 41 * + 88 + 58 + - 15 * - 22 - 33 THEN NULL WHEN - 89 THEN - 2 - - 21 END ) / 52 + 94 * - ( 74 ) + + 22 + + 16 - - 3 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1504
SELECT - 39 DIV + MAX( DISTINCT + 4 ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-1504
SELECT - 39 / + MAX ( DISTINCT + 4 ) AS col1
----
-9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1506
SELECT - 56 * + 91 * - CASE + 31 WHEN SUM( 41 ) THEN - 47 WHEN - 45 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1506
SELECT - 56 * + 91 * - CASE + 31 WHEN SUM ( 41 ) THEN - 47 WHEN - 45 THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + 21 * ( + 94 ) AS col0
----
1974

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1508
SELECT DISTINCT 85 * 98, COALESCE ( 98, - COALESCE ( + 29, 25 + + + 8 + - COUNT( * ) * - 9 * 63 + 14 * - + 51 + COUNT( * ) - - COUNT( * ), + CAST( NULL AS SIGNED ) ) ) * + - 9 AS col0
----
8330
-882

skipif mysql # not compatible
query II rowsort label-1508
SELECT DISTINCT 85 * 98, COALESCE ( 98, - COALESCE ( + 29, 25 + + + 8 + - COUNT ( * ) * - 9 * 63 + 14 * - + 51 + COUNT ( * ) - - COUNT ( * ), + CAST ( NULL AS INTEGER ) ) ) * + - 9 AS col0
----
8330
-882

onlyif mysql # DIV for integer division: 
query II rowsort label-1509
SELECT ALL + 11 * + 9 * 60 * 67 - - + 90 AS col2, 52 DIV - 98 AS col1
----
398070
0

skipif mysql # not compatible
query II rowsort label-1509
SELECT ALL + 11 * + 9 * 60 * 67 - - + 90 AS col2, 52 / - 98 AS col1
----
398070
0

query I rowsort
SELECT DISTINCT + NULLIF ( + - 96, 75 / + 15 ) * + 14 - + 1 AS col2
----
-1345

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1512
SELECT - ( - NULLIF ( + - 14, CASE + 64 WHEN - 3 THEN NULL WHEN + 41 THEN - + 64 * COUNT( * ) ELSE 54 / + CASE - + ( - + 3 ) WHEN 6 * - 46 + + 84 + - - NULLIF ( + 34, + + 63 ) THEN + 72 END END * - + 19 * ( 25 ) * - + 64 ) ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-1512
SELECT - ( - NULLIF ( + - 14, CASE + 64 WHEN - 3 THEN NULL WHEN + 41 THEN - + 64 * COUNT ( * ) ELSE 54 / + CASE - + ( - + 3 ) WHEN 6 * - 46 + + 84 + - - NULLIF ( + 34, + + 63 ) THEN + 72 END END * - + 19 * ( 25 ) * - + 64 ) ) AS col0
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-1513
SELECT MIN( + - 8 ) * + - 67 + + - 9 + - COALESCE ( + 3, - - 26, 61 ) * + 18 * 37, 37 * 93 AS col2
----
-1471
3441

skipif mysql # not compatible
query II rowsort label-1513
SELECT MIN ( + - 8 ) * + - 67 + + - 9 + - COALESCE ( + 3, - - 26, 61 ) * + 18 * 37, 37 * 93 AS col2
----
-1471
3441

query II rowsort
SELECT 95 + - + 9 AS col0, ( - - 31 ) AS col2
----
86
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1515
SELECT ( + 28 ) * + COUNT( ALL - - 88 )
----
28

skipif mysql # not compatible
query I rowsort label-1515
SELECT ( + 28 ) * + COUNT ( ALL - - 88 )
----
28

query II rowsort
SELECT 11 + - 90 AS col2, + 9 AS col0
----
-79
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1517
SELECT DISTINCT COUNT( - 78 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1517
SELECT DISTINCT COUNT ( - 78 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1518
SELECT ALL + COUNT( * ) * - + 83 + - - 97 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-1518
SELECT ALL + COUNT ( * ) * - + 83 + - - 97 AS col0
----
14

query I rowsort
SELECT DISTINCT + 8 + - - ( - - 17 ) AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1520
SELECT - 2 * - - COUNT( * ) * + - COALESCE ( 7, - COUNT( * ), + - MAX( DISTINCT ( + + 18 ) ) )
----
14

skipif mysql # not compatible
query I rowsort label-1520
SELECT - 2 * - - COUNT ( * ) * + - COALESCE ( 7, - COUNT ( * ), + - MAX ( DISTINCT ( + + 18 ) ) )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1521
SELECT ALL - 75 + ( - NULLIF ( + - ( - 85 ), + + COUNT( * ) * - 83 * - 43 ) )
----
-160

skipif mysql # not compatible
query I rowsort label-1521
SELECT ALL - 75 + ( - NULLIF ( + - ( - 85 ), + + COUNT ( * ) * - 83 * - 43 ) )
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-1522
SELECT + COALESCE ( + CASE + 97 WHEN - 48 * 13 THEN + 65 WHEN COUNT( * ) THEN 65 ELSE NULL END, + - 30, + 85 )
----
-30

skipif mysql # not compatible
query I rowsort label-1522
SELECT + COALESCE ( + CASE + 97 WHEN - 48 * 13 THEN + 65 WHEN COUNT ( * ) THEN 65 ELSE NULL END, + - 30, + 85 )
----
-30

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

skipif mysql # not compatible
query I rowsort label-1523
SELECT + 25 - + 69 / COUNT ( * )
----
-44

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1524
SELECT ALL + 26 + - 96 + - CAST( NULL AS DECIMAL ) AS col1, - 66 + CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1524
SELECT ALL + 26 + - 96 + - CAST ( NULL AS REAL ) AS col1, - 66 + CAST ( NULL AS INTEGER )
----
NULL
NULL

query I rowsort
SELECT - 8 * - 64 * + - 0 - + 37
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1526
SELECT ALL + + COUNT( * ) + 60 * 25 col2
----
1501

skipif mysql # not compatible
query I rowsort label-1526
SELECT ALL + + COUNT ( * ) + 60 * 25 col2
----
1501

query I rowsort
SELECT + 52 * 28
----
1456

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1528
SELECT DISTINCT + + 49 * - CAST( + + 3 AS SIGNED ) AS col0, 92 + 16 AS col0
----
-147
108

skipif mysql # not compatible
query II rowsort label-1528
SELECT DISTINCT + + 49 * - CAST ( + + 3 AS INTEGER ) AS col0, 92 + 16 AS col0
----
-147
108

onlyif mysql # aggregate syntax: 
query II rowsort label-1529
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) AS col2, - 50
----
0
-50

skipif mysql # not compatible
query II rowsort label-1529
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) AS col2, - 50
----
0
-50

query II rowsort
SELECT + 21 AS col1, + ( 59 )
----
21
59

query I rowsort
SELECT ALL - COALESCE ( + 90, + 51 ) - 84 + - 60 * - + ( + + COALESCE ( + - ( - 64 ), - 62 + + 69 ) ) AS col0
----
3666

query I rowsort
SELECT DISTINCT + 77 * - 78
----
-6006

query I rowsort
SELECT 35 * - 76 AS col2
----
-2660

query I rowsort
SELECT ALL + 59 * 98 AS col1
----
5782

query II rowsort
SELECT + 34 AS col0, - 94 AS col1
----
34
-94

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1537
SELECT ALL - CAST( NULL AS SIGNED ), 58 AS col1
----
NULL
58

skipif mysql # not compatible
query II rowsort label-1537
SELECT ALL - CAST ( NULL AS INTEGER ), 58 AS col1
----
NULL
58

query I rowsort
SELECT ALL 73 - + 5
----
68

query I rowsort
SELECT 50 * + - 16 AS col1
----
-800

query I rowsort
SELECT 86 * + - 83
----
-7138

onlyif mysql # aggregate syntax: 
query I rowsort label-1541
SELECT + 50 * COUNT( * ) + - - 86 AS col2
----
136

skipif mysql # not compatible
query I rowsort label-1541
SELECT + 50 * COUNT ( * ) + - - 86 AS col2
----
136

query II rowsort
SELECT - 55 AS col2, 36 AS col2
----
-55
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1543
SELECT 69 DIV - NULLIF ( + COUNT( * ), 3 DIV 48 * + COALESCE ( + - 48, - 26, 29 * + - MIN( - + 14 ) * 90 - - 38 + - - 67 ) * + CASE - 45 WHEN + 43 THEN + 75 * + + 29 * 92 WHEN + 80 THEN NULL END - + 24 + - 15 ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-1543
SELECT 69 / - NULLIF ( + COUNT ( * ), 3 / 48 * + COALESCE ( + - 48, - 26, 29 * + - MIN ( - + 14 ) * 90 - - 38 + - - 67 ) * + CASE - 45 WHEN + 43 THEN + 75 * + + 29 * 92 WHEN + 80 THEN NULL END - + 24 + - 15 ) AS col0
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-1544
SELECT 5 DIV - 18 col2
----
0

skipif mysql # not compatible
query I rowsort label-1544
SELECT 5 / - 18 col2
----
0

query I rowsort
SELECT ALL 31 * - 58
----
-1798

query I rowsort
SELECT 76 - 25 AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1547
SELECT DISTINCT COUNT( * ) * 75 AS col0
----
75

skipif mysql # not compatible
query I rowsort label-1547
SELECT DISTINCT COUNT ( * ) * 75 AS col0
----
75

query I rowsort
SELECT ALL - + ( - - 87 ) + - - 36 + + ( + + 38 ) + - 37 AS col0
----
-50

onlyif mysql # DIV for integer division: 
query II rowsort label-1549
SELECT COALESCE ( - ( 62 ), - + 14 DIV COALESCE ( + - 72, + 89 ), 64 ) AS col0, NULLIF ( + COALESCE ( - 86, + - 59 ), - - 36 ) AS col1
----
-62
-86

skipif mysql # not compatible
query II rowsort label-1549
SELECT COALESCE ( - ( 62 ), - + 14 / COALESCE ( + - 72, + 89 ), 64 ) AS col0, NULLIF ( + COALESCE ( - 86, + - 59 ), - - 36 ) AS col1
----
-62
-86

query I rowsort
SELECT + 43 - 10 * 14 AS col0
----
-97

query I rowsort
SELECT DISTINCT - 79 * 22 + 41
----
-1697

query I rowsort
SELECT ( - + NULLIF ( - + NULLIF ( + 25, 51 ), - 21 * + 66 + - 22 ) )
----
25

query II rowsort
SELECT - COALESCE ( - 70, 40 * - 63 ) AS col0, + 77
----
70
77

query I rowsort
SELECT 94 * - - 65
----
6110

query I rowsort
SELECT - NULLIF ( - ( - 43 ), - + 7 ) + + 1 AS col1
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-1556
SELECT 80 AS col1, COUNT( * ) * 46
----
80
46

skipif mysql # not compatible
query II rowsort label-1556
SELECT 80 AS col1, COUNT ( * ) * 46
----
80
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1557
SELECT ALL CAST( + + 44 AS SIGNED ) + 96 + SUM( ALL - 38 ) col0
----
102

skipif mysql # not compatible
query I rowsort label-1557
SELECT ALL CAST ( + + 44 AS INTEGER ) + 96 + SUM ( ALL - 38 ) col0
----
102

onlyif mysql # aggregate syntax: 
query II rowsort label-1558
SELECT - 23 + - ( COUNT( * ) ) AS col1, + 46 AS col2
----
-24
46

skipif mysql # not compatible
query II rowsort label-1558
SELECT - 23 + - ( COUNT ( * ) ) AS col1, + 46 AS col2
----
-24
46

query I rowsort
SELECT - 92 - 0
----
-92

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

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

query I rowsort
SELECT 73 + + + 69 + + - ( + 3 )
----
139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1562
SELECT DISTINCT + 52 DIV ( + + ( + - MAX( 8 ) ) ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-1562
SELECT DISTINCT + 52 / ( + + ( + - MAX ( 8 ) ) ) AS col0
----
-6

query I rowsort
SELECT DISTINCT 94 * 81
----
7614

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1564
SELECT + 76 / - ( - 40 ) / 28 + - CAST( NULL AS SIGNED ) + + 71 + - 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1564
SELECT + 76 / - ( - 40 ) / 28 + - CAST ( NULL AS INTEGER ) + + 71 + - 57 AS col1
----
NULL

query I rowsort
SELECT ALL - 3 * - 90 * + - 4
----
-1080

query I rowsort
SELECT 83 * 23 + - 19 + + ( - 31 ) + + 76 + 75 AS col1
----
2010

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1567
SELECT + COALESCE ( + COALESCE ( + ( + NULLIF ( - 17, - COUNT( * ) DIV - ( - - 6 ) ) ), + CASE + ( + 68 ) WHEN - 33 THEN NULL WHEN - + 30 THEN NULL ELSE - - 40 END - + + 48 ), 24 DIV + COUNT( * ) + 52 * - 78 )
----
-17

skipif mysql # not compatible
query I rowsort label-1567
SELECT + COALESCE ( + COALESCE ( + ( + NULLIF ( - 17, - COUNT ( * ) / - ( - - 6 ) ) ), + CASE + ( + 68 ) WHEN - 33 THEN NULL WHEN - + 30 THEN NULL ELSE - - 40 END - + + 48 ), 24 / + COUNT ( * ) + 52 * - 78 )
----
-17

query I rowsort
SELECT 73 * + - 48 + + + ( 68 )
----
-3436

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1569
SELECT 35 DIV COUNT( 88 )
----
35

skipif mysql # not compatible
query I rowsort label-1569
SELECT 35 / COUNT ( 88 )
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-1570
SELECT SUM( + - 70 ) col1, + 30 AS col1
----
-70
30

skipif mysql # not compatible
query II rowsort label-1570
SELECT SUM ( + - 70 ) col1, + 30 AS col1
----
-70
30

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1572
SELECT ALL COUNT( * ) DIV + 19 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1572
SELECT ALL COUNT ( * ) / + 19 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1573
SELECT - ( - 0 ) * - + 40 + 15 * + 5 + + + 68 + - 21 DIV COUNT( * ) + - + 54 - COUNT( * ) DIV + 29 * - ( 25 ) - 37
----
31

skipif mysql # not compatible
query I rowsort label-1573
SELECT - ( - 0 ) * - + 40 + 15 * + 5 + + + 68 + - 21 / COUNT ( * ) + - + 54 - COUNT ( * ) / + 29 * - ( 25 ) - 37
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1574
SELECT ALL + COUNT( * ) * - + 49 DIV - 71 * - + ( 75 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-1574
SELECT ALL + COUNT ( * ) * - + 49 / - 71 * - + ( 75 ) col2
----
0

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

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

query I rowsort
SELECT ( 34 ) * 3 + 32 + + 7
----
141

query I rowsort
SELECT + ( - - 91 ) * - 48 * + 62 * + + 67 AS col2
----
-18144672

query II rowsort
SELECT DISTINCT - 84 + - 57 AS col2, + 19 AS col1
----
-141
19

query I rowsort
SELECT ALL - 11 + + - 33
----
-44

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

skipif mysql # not compatible
query I rowsort label-1580
SELECT ALL - - 12 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1581
SELECT - ( NULLIF ( 19, + COUNT( * ) ) ) + 12 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-1581
SELECT - ( NULLIF ( 19, + COUNT ( * ) ) ) + 12 AS col0
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1582
SELECT DISTINCT - - 95 + - + 78 AS col2, - 98 + + CAST( NULL AS SIGNED )
----
17
NULL

skipif mysql # not compatible
query II rowsort label-1582
SELECT DISTINCT - - 95 + - + 78 AS col2, - 98 + + CAST ( NULL AS INTEGER )
----
17
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1583
SELECT - 40 + + 55 AS col0, + 89 + - 42 * - ( + - 89 ) * 51 + - 1 + 47 + - - 96 - + MAX( DISTINCT + 31 ) AS col2
----
15
-190438

skipif mysql # not compatible
query II rowsort label-1583
SELECT - 40 + + 55 AS col0, + 89 + - 42 * - ( + - 89 ) * 51 + - 1 + 47 + - - 96 - + MAX ( DISTINCT + 31 ) AS col2
----
15
-190438

query II rowsort
SELECT - 93 * - 32 AS col0, - 47
----
2976
-47

query I rowsort
SELECT - ( - + 60 ) * 82 * 81 * 64 AS col2
----
25505280

onlyif mysql # aggregate syntax: 
query II rowsort label-1586
SELECT DISTINCT + + COUNT( * ) * - NULLIF ( - 89, - - MIN( ALL + ( - 77 ) ) ) + + 52 AS col2, 75 * + 7
----
141
525

skipif mysql # not compatible
query II rowsort label-1586
SELECT DISTINCT + + COUNT ( * ) * - NULLIF ( - 89, - - MIN ( ALL + ( - 77 ) ) ) + + 52 AS col2, 75 * + 7
----
141
525

query I rowsort
SELECT ALL - 93 + - 98
----
-191

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1588
SELECT ALL + - 40 * + - CASE - MIN( 48 ) WHEN - + 11 THEN + ( + + 81 ) WHEN + COUNT( * ) + 41 THEN - CAST( + 87 AS SIGNED ) END * - - CAST( + 18 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1588
SELECT ALL + - 40 * + - CASE - MIN ( 48 ) WHEN - + 11 THEN + ( + + 81 ) WHEN + COUNT ( * ) + 41 THEN - CAST ( + 87 AS INTEGER ) END * - - CAST ( + 18 AS INTEGER )
----
NULL

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

query II rowsort
SELECT - 9 * - - 29, - 97 AS col0
----
-261
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1591
SELECT 5 DIV - 64 - - MIN( - 25 ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-1591
SELECT 5 / - 64 - - MIN ( - 25 ) AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1592
SELECT ALL 21 * - 5 * + COUNT( ALL - 13 ) * + 50 AS col0
----
-5250

skipif mysql # not compatible
query I rowsort label-1592
SELECT ALL 21 * - 5 * + COUNT ( ALL - 13 ) * + 50 AS col0
----
-5250

query II rowsort
SELECT DISTINCT + 86, + 25 AS col1
----
86
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1594
SELECT + CASE 98 WHEN + + COUNT( + + 15 ) + + - 73 THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1594
SELECT + CASE 98 WHEN + + COUNT ( + + 15 ) + + - 73 THEN + COUNT ( * ) END
----
NULL

query I rowsort
SELECT + 62 * + 9 * 50 * - 48
----
-1339200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1596
SELECT ALL MIN( ALL ( - NULLIF ( + 99, 86 ) ) ) DIV - - 80 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1596
SELECT ALL MIN ( ALL ( - NULLIF ( + 99, 86 ) ) ) / - - 80 AS col0
----
-1

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

skipif mysql # not compatible
query I rowsort label-1597
SELECT + 80 / + - COUNT ( * )
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1598
SELECT DISTINCT 91 * - ( + NULLIF ( + CAST( NULL AS SIGNED ), + + 43 + - + 47 * - - 7 - 78 + + CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1598
SELECT DISTINCT 91 * - ( + NULLIF ( + CAST ( NULL AS INTEGER ), + + 43 + - + 47 * - - 7 - 78 + + CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1599
SELECT + 99 * 88 * + MIN( + 47 ) - + - 60
----
409524

skipif mysql # not compatible
query I rowsort label-1599
SELECT + 99 * 88 * + MIN ( + 47 ) - + - 60
----
409524

onlyif mysql # aggregate syntax: 
query I rowsort label-1600
SELECT + MIN( ALL + 77 ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-1600
SELECT + MIN ( ALL + 77 ) AS col1
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-1601
SELECT + 26 + 67 - - 79 DIV - 99 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-1601
SELECT + 26 + 67 - - 79 / - 99 AS col1
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1602
SELECT + COUNT( * ) DIV + 44 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1602
SELECT + COUNT ( * ) / + 44 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1603
SELECT ( + ( + MAX( + 12 ) ) ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-1603
SELECT ( + ( + MAX ( + 12 ) ) ) AS col2
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-1604
SELECT ( - SUM( + - 19 ) ) AS col0, 22
----
19
22

skipif mysql # not compatible
query II rowsort label-1604
SELECT ( - SUM ( + - 19 ) ) AS col0, 22
----
19
22

onlyif mysql # DIV for integer division: 
query I rowsort label-1605
SELECT ALL 8 DIV + + 86
----
0

skipif mysql # not compatible
query I rowsort label-1605
SELECT ALL 8 / + + 86
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1606
SELECT + NULLIF ( + 5, - 29 + 65 DIV - 98 + - + 63 ) DIV + 36 + 16 + 23 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-1606
SELECT + NULLIF ( + 5, - 29 + 65 / - 98 + - + 63 ) / + 36 + 16 + 23 AS col0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1607
SELECT ALL - 81 * + 61 * - CAST( 85 AS SIGNED ) * 90 + + CAST( 46 AS SIGNED )
----
37798696

skipif mysql # not compatible
query I rowsort label-1607
SELECT ALL - 81 * + 61 * - CAST ( 85 AS INTEGER ) * 90 + + CAST ( 46 AS INTEGER )
----
37798696

onlyif mysql # aggregate syntax: 
query I rowsort label-1608
SELECT ALL + 32 * - 87 + + MIN( + 27 ) * - + 35 AS col0
----
-3729

skipif mysql # not compatible
query I rowsort label-1608
SELECT ALL + 32 * - 87 + + MIN ( + 27 ) * - + 35 AS col0
----
-3729

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1609
SELECT - CAST( NULL AS DECIMAL ) * MIN( DISTINCT + 74 ) * CAST( NULL AS SIGNED ) * 7 - + 69 + - 85 - + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-1609
SELECT - CAST ( NULL AS REAL ) * MIN ( DISTINCT + 74 ) * CAST ( NULL AS INTEGER ) * 7 - + 69 + - 85 - + 31
----
NULL

query I rowsort
SELECT + - ( + 96 ) + + 75 - + + 80
----
-101

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1612
SELECT ALL + COUNT( * ) - - ( + - 93 )
----
-92

skipif mysql # not compatible
query I rowsort label-1612
SELECT ALL + COUNT ( * ) - - ( + - 93 )
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1613
SELECT ALL - 44 AS col1, 24 * + - CAST( NULL AS SIGNED ) * - 62 AS col0
----
-44
NULL

skipif mysql # not compatible
query II rowsort label-1613
SELECT ALL - 44 AS col1, 24 * + - CAST ( NULL AS INTEGER ) * - 62 AS col0
----
-44
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1614
SELECT - NULLIF ( - - CAST( NULL AS SIGNED ), + CAST( + CAST( - 37 AS SIGNED ) AS DECIMAL ) ) - - 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1614
SELECT - NULLIF ( - - CAST ( NULL AS INTEGER ), + CAST ( + CAST ( - 37 AS INTEGER ) AS REAL ) ) - - 98 AS col0
----
NULL

query II rowsort
SELECT ALL + 90 AS col1, 71
----
90
71

query I rowsort
SELECT - 41 - - - 63 * + 47 AS col1
----
-3002

query I rowsort
SELECT - 85 + 51 - 23 - + 93 * + 62 * - 20
----
115263

onlyif mysql # DIV for integer division: 
query II rowsort label-1618
SELECT - + ( - - 16 ) DIV - 1 + + 15 + + 8 AS col2, + 78 + + 61 AS col1
----
39
139

skipif mysql # not compatible
query II rowsort label-1618
SELECT - + ( - - 16 ) / - 1 + + 15 + + 8 AS col2, + 78 + + 61 AS col1
----
39
139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1619
SELECT - 12 DIV - COUNT( DISTINCT - ( - + 58 ) )
----
12

skipif mysql # not compatible
query I rowsort label-1619
SELECT - 12 / - COUNT ( DISTINCT - ( - + 58 ) )
----
12

query I rowsort
SELECT - + 31 + 46
----
15

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

query I rowsort
SELECT - - 56 + - 41 AS col1
----
15

query I rowsort
SELECT ALL + 1 * 80
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1624
SELECT 79 + MAX( - - 80 ) + 13 * + 42
----
705

skipif mysql # not compatible
query I rowsort label-1624
SELECT 79 + MAX ( - - 80 ) + 13 * + 42
----
705

onlyif mysql # aggregate syntax: 
query I rowsort label-1625
SELECT 50 * - - SUM( DISTINCT - 38 )
----
-1900

skipif mysql # not compatible
query I rowsort label-1625
SELECT 50 * - - SUM ( DISTINCT - 38 )
----
-1900

query II rowsort
SELECT + 82 AS col0, - 98 AS col1
----
82
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1627
SELECT + 32 * 86 + + COUNT( * )
----
2753

skipif mysql # not compatible
query I rowsort label-1627
SELECT + 32 * 86 + + COUNT ( * )
----
2753

query II rowsort
SELECT 65 AS col0, 71 * + - 38
----
65
-2698

query I rowsort
SELECT DISTINCT + 66 + - 41
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1630
SELECT ALL + 11 + + - 21 + CAST( NULL AS SIGNED ) / + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-1630
SELECT ALL + 11 + + - 21 + CAST ( NULL AS INTEGER ) / + 94
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT DISTINCT COUNT( * ) + 52 col2
----
53

skipif mysql # not compatible
query I rowsort label-1631
SELECT DISTINCT COUNT ( * ) + 52 col2
----
53

query I rowsort
SELECT ALL 60 + - - 68 AS col0
----
128

query I rowsort
SELECT 78 - + 32 AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1634
SELECT DISTINCT SUM( DISTINCT + 76 ) + + - 83
----
-7

skipif mysql # not compatible
query I rowsort label-1634
SELECT DISTINCT SUM ( DISTINCT + 76 ) + + - 83
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-1635
SELECT 2 * + 75 DIV 15 + - + 62
----
-52

skipif mysql # not compatible
query I rowsort label-1635
SELECT 2 * + 75 / 15 + - + 62
----
-52

query I rowsort
SELECT + 36 * 86 * - 10
----
-30960

onlyif mysql # aggregate syntax: 
query I rowsort label-1637
SELECT ( - MAX( - - 24 ) ) - + 61 AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-1637
SELECT ( - MAX ( - - 24 ) ) - + 61 AS col2
----
-85

query I rowsort
SELECT - 2 * + - 5
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-1639
SELECT COUNT( * ) + - + ( - ( + - 81 ) ) AS col0, ( + 43 ) * - ( - 53 ) AS col1
----
-80
2279

skipif mysql # not compatible
query II rowsort label-1639
SELECT COUNT ( * ) + - + ( - ( + - 81 ) ) AS col0, ( + 43 ) * - ( - 53 ) AS col1
----
-80
2279

onlyif mysql # aggregate syntax: 
query I rowsort label-1640
SELECT 48 + - + 34 + - ( + 25 ) + + 56 * + - SUM( - 2 )
----
101

skipif mysql # not compatible
query I rowsort label-1640
SELECT 48 + - + 34 + - ( + 25 ) + + 56 * + - SUM ( - 2 )
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-1641
SELECT 51 * + 92 * COUNT( * ) + - + 65
----
4627

skipif mysql # not compatible
query I rowsort label-1641
SELECT 51 * + 92 * COUNT ( * ) + - + 65
----
4627

query I rowsort
SELECT - CASE 21 WHEN 15 - + - 11 THEN NULL ELSE + 92 END
----
-92

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

query II rowsort
SELECT - - 40 col0, 90 AS col1
----
40
90

query I rowsort
SELECT DISTINCT 70 * + 53
----
3710

query I rowsort
SELECT - ( - + 38 ) * - + 14 AS col0
----
-532

onlyif mysql # aggregate syntax: 
query I rowsort label-1647
SELECT ALL 88 * + - MIN( - 56 ) AS col0
----
4928

skipif mysql # not compatible
query I rowsort label-1647
SELECT ALL 88 * + - MIN ( - 56 ) AS col0
----
4928

onlyif mysql # DIV for integer division: 
query II rowsort label-1648
SELECT DISTINCT + 33 AS col2, - 77 DIV + 45 AS col2
----
33
-1

skipif mysql # not compatible
query II rowsort label-1648
SELECT DISTINCT + 33 AS col2, - 77 / + 45 AS col2
----
33
-1

query II rowsort
SELECT ALL + 14 + + 93 AS col0, 93 - 56 * - + 68
----
107
3901

query I rowsort
SELECT DISTINCT + 97 + - + 17 + - 69
----
11

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

skipif mysql # not compatible
query I rowsort label-1651
SELECT ALL - 42 + 18 * - - ( COUNT ( * ) ) AS col2
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-1652
SELECT 63 DIV 41 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1652
SELECT 63 / 41 AS col2
----
1

query I rowsort
SELECT 69 - - - 76 AS col0
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-1654
SELECT ALL + 70 * + ( + 99 ) AS col2, 46 + - 4 + 74 * - - COUNT( * ) * + + 1 + + COUNT( * ) + + - 24 + + 46 AS col1
----
6930
139

skipif mysql # not compatible
query II rowsort label-1654
SELECT ALL + 70 * + ( + 99 ) AS col2, 46 + - 4 + 74 * - - COUNT ( * ) * + + 1 + + COUNT ( * ) + + - 24 + + 46 AS col1
----
6930
139

onlyif mysql # aggregate syntax: 
query I rowsort label-1655
SELECT DISTINCT 44 + COUNT( * ) * 99 col2
----
143

skipif mysql # not compatible
query I rowsort label-1655
SELECT DISTINCT 44 + COUNT ( * ) * 99 col2
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-1656
SELECT ALL + COUNT( - 42 ) * + + 62
----
62

skipif mysql # not compatible
query I rowsort label-1656
SELECT ALL + COUNT ( - 42 ) * + + 62
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1657
SELECT ALL SUM( 20 ) + - ( - COUNT( * ) )
----
21

skipif mysql # not compatible
query I rowsort label-1657
SELECT ALL SUM ( 20 ) + - ( - COUNT ( * ) )
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-1658
SELECT ALL + COUNT( * ) * - 98, - 20 AS col1
----
-98
-20

skipif mysql # not compatible
query II rowsort label-1658
SELECT ALL + COUNT ( * ) * - 98, - 20 AS col1
----
-98
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1659
SELECT COUNT( * ) DIV 87 + ( + 35 ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-1659
SELECT COUNT ( * ) / 87 + ( + 35 ) AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1660
SELECT DISTINCT - COUNT( * ) - + ( SUM( - CASE WHEN NOT + 10 IS NULL THEN + - 48 ELSE NULL END ) ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-1660
SELECT DISTINCT - COUNT ( * ) - + ( SUM ( - CASE WHEN NOT + 10 IS NULL THEN + - 48 ELSE NULL END ) ) AS col2
----
-49

query II rowsort
SELECT ALL + 80 - + 2 AS col2, 99 - 87
----
78
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1662
SELECT - 42 * 29 + + MIN( 70 ) col2
----
-1148

skipif mysql # not compatible
query I rowsort label-1662
SELECT - 42 * 29 + + MIN ( 70 ) col2
----
-1148

query I rowsort
SELECT - ( 22 ) + + - 58 AS col0
----
-80

query I rowsort
SELECT ALL - 27 - + + 87 - + 32 AS col2
----
-146

onlyif mysql # aggregate syntax: 
query II rowsort label-1665
SELECT - COUNT( * ) * 37 AS col2, ( + - ( + + 64 ) ) * - - NULLIF ( 54, + 97 ) * + COUNT( * )
----
-37
-3456

skipif mysql # not compatible
query II rowsort label-1665
SELECT - COUNT ( * ) * 37 AS col2, ( + - ( + + 64 ) ) * - - NULLIF ( 54, + 97 ) * + COUNT ( * )
----
-37
-3456

onlyif mysql # aggregate syntax: 
query II rowsort label-1666
SELECT ALL + + 33 * - + MAX( DISTINCT - 89 ) * CASE + 99 WHEN - 93 THEN + 83 ELSE NULL END + - 11 AS col1, 35
----
NULL
35

skipif mysql # not compatible
query II rowsort label-1666
SELECT ALL + + 33 * - + MAX ( DISTINCT - 89 ) * CASE + 99 WHEN - 93 THEN + 83 ELSE NULL END + - 11 AS col1, 35
----
NULL
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1667
SELECT + SUM( DISTINCT - 50 ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-1667
SELECT + SUM ( DISTINCT - 50 ) AS col0
----
-50

query I rowsort
SELECT + 67 * + - 96 AS col2
----
-6432

onlyif mysql # aggregate syntax: 
query I rowsort label-1669
SELECT - 76 + SUM( 99 ) + + 32
----
55

skipif mysql # not compatible
query I rowsort label-1669
SELECT - 76 + SUM ( 99 ) + + 32
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1670
SELECT + 3 + - 37 + - 54 * MAX( + 69 ) col1
----
-3760

skipif mysql # not compatible
query I rowsort label-1670
SELECT + 3 + - 37 + - 54 * MAX ( + 69 ) col1
----
-3760

onlyif mysql # DIV for integer division: 
query I rowsort label-1671
SELECT ALL + 4 DIV 69 DIV 62 col1
----
0

skipif mysql # not compatible
query I rowsort label-1671
SELECT ALL + 4 / 69 / 62 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1672
SELECT + CAST( NULL AS SIGNED ) * - 24 + - COALESCE ( + 95, 40 + 95 + - - 28 * 92 ) + - CAST( NULL AS SIGNED ) - + ( + 7 ) * - CASE ( + 61 ) WHEN - NULLIF ( COUNT( * ), + + 29 ) THEN + + 75 + 29 END * - 43 AS col2, - 65 AS col0
----
NULL
-65

skipif mysql # not compatible
query II rowsort label-1672
SELECT + CAST ( NULL AS INTEGER ) * - 24 + - COALESCE ( + 95, 40 + 95 + - - 28 * 92 ) + - CAST ( NULL AS INTEGER ) - + ( + 7 ) * - CASE ( + 61 ) WHEN - NULLIF ( COUNT ( * ), + + 29 ) THEN + + 75 + 29 END * - 43 AS col2, - 65 AS col0
----
NULL
-65

query I rowsort
SELECT + - 23 - + 87
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-1674
SELECT + + 54 + - 85 + + COUNT( * ) + - MIN( 38 ) * 25 AS col2
----
-980

skipif mysql # not compatible
query I rowsort label-1674
SELECT + + 54 + - 85 + + COUNT ( * ) + - MIN ( 38 ) * 25 AS col2
----
-980

onlyif mysql # aggregate syntax: 
query I rowsort label-1675
SELECT + COUNT( * ) * + - 92 * 30 AS col1
----
-2760

skipif mysql # not compatible
query I rowsort label-1675
SELECT + COUNT ( * ) * + - 92 * 30 AS col1
----
-2760

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1676
SELECT + ( + - 78 ) + 61 col1, + 82 * + CAST( NULL AS DECIMAL ) + + 20
----
-17
NULL

skipif mysql # not compatible
query II rowsort label-1676
SELECT + ( + - 78 ) + 61 col1, + 82 * + CAST ( NULL AS REAL ) + + 20
----
-17
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1677
SELECT - SUM( - 15 )
----
15

skipif mysql # not compatible
query I rowsort label-1677
SELECT - SUM ( - 15 )
----
15

query II rowsort
SELECT - 25 AS col2, 54 * - 26
----
-25
-1404

query I rowsort
SELECT + 21 + - 78 col0
----
-57

query I rowsort
SELECT ALL 3 + - 31 AS col0
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1681
SELECT ALL - COALESCE ( - MIN( + 23 ), + NULLIF ( 37, 93 ), - 85 + + + 89 + - - 75 DIV + 53 + + 73 + + - NULLIF ( - + 41, + 0 ) ) + + + 71
----
94

skipif mysql # not compatible
query I rowsort label-1681
SELECT ALL - COALESCE ( - MIN ( + 23 ), + NULLIF ( 37, 93 ), - 85 + + + 89 + - - 75 / + 53 + + 73 + + - NULLIF ( - + 41, + 0 ) ) + + + 71
----
94

query I rowsort
SELECT - 67 * 13
----
-871

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1684
SELECT + COALESCE ( + 8, 17 + + COUNT( * ) * + - 41 * + 30 - - NULLIF ( - 92, + 46 ), - 69 ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-1684
SELECT + COALESCE ( + 8, 17 + + COUNT ( * ) * + - 41 * + 30 - - NULLIF ( - 92, + 46 ), - 69 ) AS col2
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1685
SELECT 84 * + 5 DIV + COALESCE ( - NULLIF ( - COUNT( * ), COUNT( * ) * + 45 ), - 27 * - 99 + - 21 ) + COUNT( - 19 )
----
421

skipif mysql # not compatible
query I rowsort label-1685
SELECT 84 * + 5 / + COALESCE ( - NULLIF ( - COUNT ( * ), COUNT ( * ) * + 45 ), - 27 * - 99 + - 21 ) + COUNT ( - 19 )
----
421

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1686
SELECT ALL + CASE + 98 WHEN 91 * - 90 THEN + 47 WHEN + 70 + + 97 + - ( + MIN( CAST( NULL AS DECIMAL ) ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1686
SELECT ALL + CASE + 98 WHEN 91 * - 90 THEN + 47 WHEN + 70 + + 97 + - ( + MIN ( CAST ( NULL AS REAL ) ) ) THEN NULL END
----
NULL

query I rowsort
SELECT ALL - ( 77 ) * 51 - + + 50 col0
----
-3977

onlyif mysql # aggregate syntax: 
query I rowsort label-1688
SELECT NULLIF ( - + COUNT( * ), + 68 * COALESCE ( 88, ( + COUNT( * ) ) ) / MIN( DISTINCT - + 15 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1688
SELECT NULLIF ( - + COUNT ( * ), + 68 * COALESCE ( 88, ( + COUNT ( * ) ) ) / MIN ( DISTINCT - + 15 ) )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1689
SELECT ALL 89 DIV 85
----
1

skipif mysql # not compatible
query I rowsort label-1689
SELECT ALL 89 / 85
----
1

query I rowsort
SELECT - - 20 + + 21
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-1691
SELECT + - 32 AS col2, SUM( ALL + 96 )
----
-32
96

skipif mysql # not compatible
query II rowsort label-1691
SELECT + - 32 AS col2, SUM ( ALL + 96 )
----
-32
96

query I rowsort
SELECT ALL + - 98 * + COALESCE ( - ( + 50 ), 46 ) AS col0
----
4900

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1693
SELECT 66 AS col1, CAST( NULL AS SIGNED ) AS col0
----
66
NULL

skipif mysql # not compatible
query II rowsort label-1693
SELECT 66 AS col1, CAST ( NULL AS INTEGER ) AS col0
----
66
NULL

query I rowsort
SELECT - + 60 * + 48 * + + 20 AS col0
----
-57600

query I rowsort
SELECT - 37 * + 4
----
-148

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

skipif mysql # not compatible
query I rowsort label-1696
SELECT + - CAST ( NULL AS INTEGER ) * - 35 + + + 23
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT DISTINCT + COUNT( DISTINCT 98 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-1697
SELECT DISTINCT + COUNT ( DISTINCT 98 ) col0
----
1

query I rowsort
SELECT + 34 * - 88 AS col1
----
-2992

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

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

query I rowsort
SELECT ALL - 75 * + 94 * COALESCE ( 26, - 18 )
----
-183300

onlyif mysql # DIV for integer division: 
query II rowsort label-1701
SELECT - - 69 * 17 * + - 53 AS col1, + 96 DIV + 90 col2
----
-62169
1

skipif mysql # not compatible
query II rowsort label-1701
SELECT - - 69 * 17 * + - 53 AS col1, + 96 / + 90 col2
----
-62169
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1702
SELECT ALL + + 5 * 8 + 92 * - CASE 59 WHEN - + CASE - 26 WHEN 93 * COUNT( * ) + 9 THEN 19 END + + - 36 * - + 87 THEN + 58 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1702
SELECT ALL + + 5 * 8 + 92 * - CASE 59 WHEN - + CASE - 26 WHEN 93 * COUNT ( * ) + 9 THEN 19 END + + - 36 * - + 87 THEN + 58 END AS col1
----
NULL

query I rowsort
SELECT + ( 22 ) + - - 25 * - 22
----
-528

onlyif mysql # aggregate syntax: 
query II rowsort label-1704
SELECT 96, + COUNT( * ) * - 87 + + 44 AS col2
----
96
-43

skipif mysql # not compatible
query II rowsort label-1704
SELECT 96, + COUNT ( * ) * - 87 + + 44 AS col2
----
96
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1705
SELECT ALL + CAST( - + 12 AS SIGNED ) + + 78
----
66

skipif mysql # not compatible
query I rowsort label-1705
SELECT ALL + CAST ( - + 12 AS INTEGER ) + + 78
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1706
SELECT + 22 * + 37 + + COUNT( * ) AS col1
----
815

skipif mysql # not compatible
query I rowsort label-1706
SELECT + 22 * + 37 + + COUNT ( * ) AS col1
----
815

onlyif mysql # aggregate syntax: 
query II rowsort label-1707
SELECT - 45 * + 29 * SUM( + 54 ), - COUNT( * ) * - COUNT( * ) AS col0
----
-70470
1

skipif mysql # not compatible
query II rowsort label-1707
SELECT - 45 * + 29 * SUM ( + 54 ), - COUNT ( * ) * - COUNT ( * ) AS col0
----
-70470
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1708
SELECT - SUM( 44 ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-1708
SELECT - SUM ( 44 ) AS col2
----
-44

query II rowsort
SELECT - 80 * + 95 AS col0, 73 * + + 55
----
-7600
4015

onlyif mysql # DIV for integer division: 
query I rowsort label-1710
SELECT + 97 DIV 66 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1710
SELECT + 97 / 66 AS col2
----
1

query I rowsort
SELECT ALL - 79 + + 49
----
-30

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1713
SELECT + 67 DIV - 8
----
-8

skipif mysql # not compatible
query I rowsort label-1713
SELECT + 67 / - 8
----
-8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1714
SELECT - CAST( NULL AS DECIMAL ) + - 83 * + + SUM( DISTINCT - 79 ), + 15 AS col2
----
NULL
15

skipif mysql # not compatible
query II rowsort label-1714
SELECT - CAST ( NULL AS REAL ) + - 83 * + + SUM ( DISTINCT - 79 ), + 15 AS col2
----
NULL
15

query I rowsort
SELECT + 43 * 37
----
1591

onlyif mysql # aggregate syntax: 
query II rowsort label-1716
SELECT DISTINCT SUM( 88 ) AS col2, 55
----
88
55

skipif mysql # not compatible
query II rowsort label-1716
SELECT DISTINCT SUM ( 88 ) AS col2, 55
----
88
55

query I rowsort
SELECT + 7 - 64 col0
----
-57

query I rowsort
SELECT - 13 * + 21 AS col0
----
-273

query II rowsort
SELECT DISTINCT 48 * - - 75, 33 AS col0
----
3600
33

query I rowsort
SELECT + 77 * + + 97 * - + 8
----
-59752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1721
SELECT ALL COUNT( * ) * - 16 - + - NULLIF ( + CAST( NULL AS SIGNED ), 71 * + 68 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1721
SELECT ALL COUNT ( * ) * - 16 - + - NULLIF ( + CAST ( NULL AS INTEGER ), 71 * + 68 ) AS col0
----
NULL

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1724
SELECT + + COALESCE ( - - 61, COUNT( * ) ) / - 10 + + CAST( NULL AS SIGNED ) - - - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-1724
SELECT + + COALESCE ( - - 61, COUNT ( * ) ) / - 10 + + CAST ( NULL AS INTEGER ) - - - 10
----
NULL

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

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

query I rowsort
SELECT ALL - + 91 * + 67
----
-6097

query I rowsort
SELECT DISTINCT + NULLIF ( - 3, - 25 ) + - 89 + - 93
----
-185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1728
SELECT - COALESCE ( SUM( ALL + 6 ), 41 DIV - COUNT( * ) )
----
-6

skipif mysql # not compatible
query I rowsort label-1728
SELECT - COALESCE ( SUM ( ALL + 6 ), 41 / - COUNT ( * ) )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1729
SELECT - COUNT( * ) + - - 5 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-1729
SELECT - COUNT ( * ) + - - 5 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1730
SELECT COUNT( * ) * NULLIF ( 2, - 47 )
----
2

skipif mysql # not compatible
query I rowsort label-1730
SELECT COUNT ( * ) * NULLIF ( 2, - 47 )
----
2

query I rowsort
SELECT + 91 * - 87 + 68 AS col2
----
-7849

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1732
SELECT ALL - - 86 + - COALESCE ( - SUM( - + 44 ), + 96 * - 51 ) * - + 30 - + CAST( - 49 AS SIGNED )
----
1455

skipif mysql # not compatible
query I rowsort label-1732
SELECT ALL - - 86 + - COALESCE ( - SUM ( - + 44 ), + 96 * - 51 ) * - + 30 - + CAST ( - 49 AS INTEGER )
----
1455

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1733
SELECT 79 + - 41 + + 46 DIV + 66 * + MIN( ALL + - 35 ) * - - 33
----
38

skipif mysql # not compatible
query I rowsort label-1733
SELECT 79 + - 41 + + 46 / + 66 * + MIN ( ALL + - 35 ) * - - 33
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1734
SELECT 89 + - + CASE - - 64 WHEN CAST( NULL AS SIGNED ) THEN + 9 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1734
SELECT 89 + - + CASE - - 64 WHEN CAST ( NULL AS INTEGER ) THEN + 9 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1735
SELECT 40 AS col1, 6 DIV + 6 AS col0
----
40
1

skipif mysql # not compatible
query II rowsort label-1735
SELECT 40 AS col1, 6 / + 6 AS col0
----
40
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1736
SELECT DISTINCT - 66 - - + COUNT( + + 47 ) * - ( 47 ) * - 12 + 36 DIV + 23 AS col2
----
499

skipif mysql # not compatible
query I rowsort label-1736
SELECT DISTINCT - 66 - - + COUNT ( + + 47 ) * - ( 47 ) * - 12 + 36 / + 23 AS col2
----
499

query I rowsort
SELECT 14 + - - CASE + ( 32 ) WHEN - 21 THEN 66 END * + 34 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1738
SELECT NULLIF ( - 26, + + COUNT( * ) - + 98 ) + 60 AS col2, 43
----
34
43

skipif mysql # not compatible
query II rowsort label-1738
SELECT NULLIF ( - 26, + + COUNT ( * ) - + 98 ) + 60 AS col2, 43
----
34
43

query I rowsort
SELECT 98 * + 64 * - 81 col0
----
-508032

onlyif mysql # aggregate syntax: 
query I rowsort label-1740
SELECT COUNT( * ) + + + 8 * 22 + + 48
----
225

skipif mysql # not compatible
query I rowsort label-1740
SELECT COUNT ( * ) + + + 8 * 22 + + 48
----
225

query I rowsort
SELECT 4 + + - 2
----
2

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

skipif mysql # not compatible
query I rowsort label-1742
SELECT COUNT ( * ) / + 29
----
0

query II rowsort
SELECT ALL 98, + 53 col1
----
98
53

query I rowsort
SELECT DISTINCT + 30 * - + 6 AS col0
----
-180

query II rowsort
SELECT DISTINCT 4 AS col0, 47 * - + 8 + - 5
----
4
-381

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

skipif mysql # not compatible
query I rowsort label-1746
SELECT COUNT ( * ) / - 9
----
0

query II rowsort
SELECT 39 + 61 * 26 AS col0, 49 col0
----
1625
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1748
SELECT 10 + + + CASE + - COALESCE ( - 36, + + COUNT( * ) + + 60 * - 27 ) WHEN ( + 55 ) * 17 THEN - ( 34 ) + - 68 WHEN - 41 + - 84 THEN ( - 69 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1748
SELECT 10 + + + CASE + - COALESCE ( - 36, + + COUNT ( * ) + + 60 * - 27 ) WHEN ( + 55 ) * 17 THEN - ( 34 ) + - 68 WHEN - 41 + - 84 THEN ( - 69 ) END
----
NULL

query I rowsort
SELECT 13 * 86
----
1118

query I rowsort
SELECT NULLIF ( - 50, 15 ) + + 43 AS col2
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-1751
SELECT ALL ( 19 ) DIV 14 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1751
SELECT ALL ( 19 ) / 14 AS col1
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1753
SELECT 64 * SUM( DISTINCT ( + 18 ) * 60 ) AS col2
----
69120

skipif mysql # not compatible
query I rowsort label-1753
SELECT 64 * SUM ( DISTINCT ( + 18 ) * 60 ) AS col2
----
69120

onlyif mysql # aggregate syntax: 
query I rowsort label-1754
SELECT ALL 29 + - COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-1754
SELECT ALL 29 + - COUNT ( * )
----
28

query I rowsort
SELECT ALL 88 + + 3 * 20
----
148

query I rowsort
SELECT DISTINCT 59 + 30 AS col1
----
89

query I rowsort
SELECT ALL 82 * - 86
----
-7052

query I rowsort
SELECT ALL + 14 + 40 * 35 col1
----
1414

query I rowsort
SELECT DISTINCT 87 + + 9
----
96

query I rowsort
SELECT 89 + + 61
----
150

query I rowsort
SELECT 99 + - 86 AS col0
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-1762
SELECT ALL + 51 DIV - 81
----
0

skipif mysql # not compatible
query I rowsort label-1762
SELECT ALL + 51 / - 81
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1763
SELECT CASE 51 WHEN - 97 * - 19 THEN + 91 * - MAX( 36 ) END / + MIN( 34 * - 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1763
SELECT CASE 51 WHEN - 97 * - 19 THEN + 91 * - MAX ( 36 ) END / + MIN ( 34 * - 14 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1764
SELECT DISTINCT - 79 - - COUNT( * ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-1764
SELECT DISTINCT - 79 - - COUNT ( * ) AS col1
----
-78

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1765
SELECT ALL 80 DIV - ( CAST( - 93 AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1765
SELECT ALL 80 / - ( CAST ( - 93 AS INTEGER ) ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1766
SELECT DISTINCT 39 - + COUNT( * ) DIV COUNT( * ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-1766
SELECT DISTINCT 39 - + COUNT ( * ) / COUNT ( * ) AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT DISTINCT 15 * COUNT( * ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-1767
SELECT DISTINCT 15 * COUNT ( * ) AS col1
----
15

query I rowsort
SELECT 8 * 62
----
496

query I rowsort
SELECT 14 + + 60 AS col2
----
74

query I rowsort
SELECT ALL - 61 * 95 col0
----
-5795

query I rowsort
SELECT ALL 73 * + 62
----
4526

query I rowsort
SELECT 33 * 69 AS col0
----
2277

query I rowsort
SELECT ALL 48 * - ( - 13 * + 99 ) AS col1
----
61776

onlyif mysql # aggregate syntax: 
query I rowsort label-1774
SELECT ALL SUM( ALL + 21 ) col2
----
21

skipif mysql # not compatible
query I rowsort label-1774
SELECT ALL SUM ( ALL + 21 ) col2
----
21

query I rowsort
SELECT 13 + 81 AS col1
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1776
SELECT DISTINCT + CAST( 97 AS SIGNED ) * 46 AS col1
----
4462

skipif mysql # not compatible
query I rowsort label-1776
SELECT DISTINCT + CAST ( 97 AS INTEGER ) * 46 AS col1
----
4462

query I rowsort
SELECT 23 + + ( ( 48 ) ) AS col2
----
71

query I rowsort
SELECT 7 * - 35
----
-245

onlyif mysql # aggregate syntax: 
query I rowsort label-1779
SELECT + CASE 47 WHEN COUNT( * ) / 93 THEN + 43 * + 31 WHEN COUNT( * ) THEN - 70 / 97 - 19 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1779
SELECT + CASE 47 WHEN COUNT ( * ) / 93 THEN + 43 * + 31 WHEN COUNT ( * ) THEN - 70 / 97 - 19 END AS col0
----
NULL

query I rowsort
SELECT ALL - + 12 + 84 AS col0
----
72

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

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

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

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

query I rowsort
SELECT DISTINCT + 57 * - 63 + 51
----
-3540

query I rowsort
SELECT ALL + 21 * 28 + 40
----
628

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT DISTINCT + SUM( ( - 43 ) ) * + ( - 13 ) + 82
----
641

skipif mysql # not compatible
query I rowsort label-1785
SELECT DISTINCT + SUM ( ( - 43 ) ) * + ( - 13 ) + 82
----
641

query I rowsort
SELECT ALL + 56 * - 90 + 9 AS col1
----
-5031

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1787
SELECT + + 82 * CAST( - 52 + + 77 AS SIGNED )
----
2050

skipif mysql # not compatible
query I rowsort label-1787
SELECT + + 82 * CAST ( - 52 + + 77 AS INTEGER )
----
2050

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

query I rowsort
SELECT - 11 + 8
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1790
SELECT + NULLIF ( COUNT( * ), + MAX( ALL 96 ) * COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1790
SELECT + NULLIF ( COUNT ( * ), + MAX ( ALL 96 ) * COUNT ( * ) ) AS col2
----
1

query I rowsort
SELECT + + 32 + 69 * 73 AS col0
----
5069

query I rowsort
SELECT ALL + 20 * + 35 - 86
----
614

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1793
SELECT + COALESCE ( 5, - 78, 65 * ( - 13 ) ) * 40 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1793
SELECT + COALESCE ( 5, - 78, 65 * ( - 13 ) ) * 40 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1794
SELECT DISTINCT - 2 * - ( COUNT( * ) + NULLIF ( + 11, 88 ) ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-1794
SELECT DISTINCT - 2 * - ( COUNT ( * ) + NULLIF ( + 11, 88 ) ) AS col1
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1795
SELECT + ( + 71 ) * - MAX( ALL - 39 DIV + 8 )
----
284

skipif mysql # not compatible
query I rowsort label-1795
SELECT + ( + 71 ) * - MAX ( ALL - 39 / + 8 )
----
284

onlyif mysql # aggregate syntax: 
query I rowsort label-1796
SELECT ALL + SUM( 5 ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-1796
SELECT ALL + SUM ( 5 ) AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1797
SELECT + CASE - 23 WHEN 50 / + COALESCE ( 44, ( SUM( + 5 ) ) * 28 ) THEN NULL ELSE + 33 END col1
----
33

skipif mysql # not compatible
query I rowsort label-1797
SELECT + CASE - 23 WHEN 50 / + COALESCE ( 44, ( SUM ( + 5 ) ) * 28 ) THEN NULL ELSE + 33 END col1
----
33

query I rowsort
SELECT DISTINCT 74 * - COALESCE ( - 8, ( 43 ) ) AS col2
----
592

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT - 58 * + MAX( ALL - 62 ) * ( NULLIF ( + COUNT( * ), 75 / COUNT( * ) ) * - 67 ) + - 34
----
-240966

skipif mysql # not compatible
query I rowsort label-1799
SELECT - 58 * + MAX ( ALL - 62 ) * ( NULLIF ( + COUNT ( * ), 75 / COUNT ( * ) ) * - 67 ) + - 34
----
-240966

query I rowsort
SELECT + ( + COALESCE ( + 93, 63, + ( 92 ) - 66 ) ) * - 19
----
-1767

query I rowsort
SELECT - 20 * + 51 AS col1
----
-1020

onlyif mysql # aggregate syntax: 
query I rowsort label-1802
SELECT MAX( DISTINCT 99 ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-1802
SELECT MAX ( DISTINCT 99 ) AS col0
----
99

query I rowsort
SELECT + 8 + - + 57 AS col0
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1804
SELECT + 61 + + 92 * + CAST( 11 AS SIGNED )
----
1073

skipif mysql # not compatible
query I rowsort label-1804
SELECT + 61 + + 92 * + CAST ( 11 AS INTEGER )
----
1073

onlyif mysql # DIV for integer division: 
query I rowsort label-1805
SELECT ALL 67 + + 17 + + 29 DIV 31 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-1805
SELECT ALL 67 + + 17 + + 29 / 31 AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1806
SELECT ALL + 58 + + 91 + COUNT( ALL - 23 )
----
150

skipif mysql # not compatible
query I rowsort label-1806
SELECT ALL + 58 + + 91 + COUNT ( ALL - 23 )
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-1807
SELECT - MAX( DISTINCT - 71 ) + + 72
----
143

skipif mysql # not compatible
query I rowsort label-1807
SELECT - MAX ( DISTINCT - 71 ) + + 72
----
143

query I rowsort
SELECT - 31 + 37 * + 77 AS col1
----
2818

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

skipif mysql # not compatible
query I rowsort label-1809
SELECT + 1 / 69
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1810
SELECT - 7 + COUNT( * ) DIV ( - 64 + 0 )
----
-7

skipif mysql # not compatible
query I rowsort label-1810
SELECT - 7 + COUNT ( * ) / ( - 64 + 0 )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1811
SELECT ALL - 59 + ( - COUNT( * ) )
----
-60

skipif mysql # not compatible
query I rowsort label-1811
SELECT ALL - 59 + ( - COUNT ( * ) )
----
-60

query I rowsort
SELECT + 18 + + 73
----
91

query I rowsort
SELECT - 2 + - 58 * ( - 88 )
----
5102

onlyif mysql # aggregate syntax: 
query I rowsort label-1814
SELECT ALL CASE - 99 WHEN + 71 + 1 THEN - 59 * - ( - MIN( 51 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1814
SELECT ALL CASE - 99 WHEN + 71 + 1 THEN - 59 * - ( - MIN ( 51 ) ) END
----
NULL

query I rowsort
SELECT DISTINCT + ( 91 ) + + 62 * ( - 65 * 96 ) AS col0
----
-386789

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1817
SELECT - 29 * - COUNT( - 18 )
----
29

skipif mysql # not compatible
query I rowsort label-1817
SELECT - 29 * - COUNT ( - 18 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT - - NULLIF ( - + 42, COUNT( * ) * 25 - - 65 * + COUNT( 40 * 73 ) )
----
-42

skipif mysql # not compatible
query I rowsort label-1818
SELECT - - NULLIF ( - + 42, COUNT ( * ) * 25 - - 65 * + COUNT ( 40 * 73 ) )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-1819
SELECT - - COUNT( * ) + - COUNT( 13 ) * 26 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-1819
SELECT - - COUNT ( * ) + - COUNT ( 13 ) * 26 AS col0
----
-25

query I rowsort
SELECT NULLIF ( + 8, - 64 ) AS col1
----
8

query I rowsort
SELECT - 4 * - 14
----
56

query I rowsort
SELECT - - 59 + - 98
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1823
SELECT ALL - 44 / + 96 * + 57 - SUM( 23 ) - - 20 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1823
SELECT ALL - 44 / + 96 * + 57 - SUM ( 23 ) - - 20 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

query I rowsort
SELECT - - 9 * - - 78
----
702

query I rowsort
SELECT + + ( + 23 ) * 2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1827
SELECT - COUNT( * ) * 95 + - - CASE 54 WHEN 78 + - 34 THEN 69 + - 79 WHEN AVG ( DISTINCT 48 ) THEN + 95 + - 75 ELSE ( + 39 ) END
----
-56

skipif mysql # not compatible
query I rowsort label-1827
SELECT - COUNT ( * ) * 95 + - - CASE 54 WHEN 78 + - 34 THEN 69 + - 79 WHEN AVG ( DISTINCT 48 ) THEN + 95 + - 75 ELSE ( + 39 ) END
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-1828
SELECT ALL 27 DIV - + 10 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-1828
SELECT ALL 27 / - + 10 AS col1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1829
SELECT - CAST( - 83 AS SIGNED ) * 62 col2
----
5146

skipif mysql # not compatible
query I rowsort label-1829
SELECT - CAST ( - 83 AS INTEGER ) * 62 col2
----
5146

query I rowsort
SELECT + 97 * - 33 AS col2
----
-3201

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1831
SELECT CASE + 17 WHEN + COUNT( * ) + + 59 THEN NULL WHEN + 53 + + COUNT( * ) THEN + 54 + + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1831
SELECT CASE + 17 WHEN + COUNT ( * ) + + 59 THEN NULL WHEN + 53 + + COUNT ( * ) THEN + 54 + + CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT DISTINCT 3 * + 28 * - 94 + + 22 * + 29
----
-7258

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1833
SELECT ALL CAST( + 19 AS SIGNED ) * - COUNT( * ) * - COUNT( * ) + + 8 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-1833
SELECT ALL CAST ( + 19 AS INTEGER ) * - COUNT ( * ) * - COUNT ( * ) + + 8 AS col1
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1834
SELECT ALL + CAST( 47 AS SIGNED )
----
47

skipif mysql # not compatible
query I rowsort label-1834
SELECT ALL + CAST ( 47 AS INTEGER )
----
47

query I rowsort
SELECT + 61 * + 75 AS col1
----
4575

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1836
SELECT ALL + CAST( - 42 AS SIGNED ) * 2 + - 49
----
-133

skipif mysql # not compatible
query I rowsort label-1836
SELECT ALL + CAST ( - 42 AS INTEGER ) * 2 + - 49
----
-133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1837
SELECT DISTINCT ( + 48 ) * + AVG ( CASE - 29 WHEN - CAST( NULL AS SIGNED ) THEN + 70 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1837
SELECT DISTINCT ( + 48 ) * + AVG ( CASE - 29 WHEN - CAST ( NULL AS INTEGER ) THEN + 70 END ) AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1839
SELECT ALL CAST( NULL AS DECIMAL ) * 97
----
NULL

skipif mysql # not compatible
query I rowsort label-1839
SELECT ALL CAST ( NULL AS REAL ) * 97
----
NULL

query I rowsort
SELECT + 25 * - ( 49 ) AS col0
----
-1225

onlyif mysql # aggregate syntax: 
query I rowsort label-1841
SELECT + NULLIF ( 22, - - 67 * + COUNT( * ) ) * 81 AS col1
----
1782

skipif mysql # not compatible
query I rowsort label-1841
SELECT + NULLIF ( 22, - - 67 * + COUNT ( * ) ) * 81 AS col1
----
1782

query I rowsort
SELECT ALL - 76 * + 62 + - 66
----
-4778

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

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

query I rowsort
SELECT ALL - 26 * - - 15 * - 11 + - 61 AS col1
----
4229

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1845
SELECT + 19 - + CAST( - NULLIF ( + ( 51 ), ( COUNT( * ) ) ) AS SIGNED ) * COALESCE ( - 42 * 79, - 23 )
----
-169199

skipif mysql # not compatible
query I rowsort label-1845
SELECT + 19 - + CAST ( - NULLIF ( + ( 51 ), ( COUNT ( * ) ) ) AS INTEGER ) * COALESCE ( - 42 * 79, - 23 )
----
-169199

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1846
SELECT 1, 63 * + 72 * + ( CAST( NULL AS DECIMAL ) ) + COUNT( * ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1846
SELECT 1, 63 * + 72 * + ( CAST ( NULL AS REAL ) ) + COUNT ( * ) AS col1
----
1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1847
SELECT ALL 7 DIV + 63
----
0

skipif mysql # not compatible
query I rowsort label-1847
SELECT ALL 7 / + 63
----
0

query I rowsort
SELECT ALL - NULLIF ( 46, - + 11 * 29 ) + 8
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-1849
SELECT - 88 AS col1, - COUNT( + 68 ) AS col1
----
-88
-1

skipif mysql # not compatible
query II rowsort label-1849
SELECT - 88 AS col1, - COUNT ( + 68 ) AS col1
----
-88
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT ALL - COUNT( * ) - - 65 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-1850
SELECT ALL - COUNT ( * ) - - 65 AS col2
----
64

query I rowsort
SELECT - 22 * 5
----
-110

onlyif mysql # DIV for integer division: 
query I rowsort label-1852
SELECT ALL 92 DIV - 62
----
-1

skipif mysql # not compatible
query I rowsort label-1852
SELECT ALL 92 / - 62
----
-1

query I rowsort
SELECT + 66 + 24 AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1854
SELECT ALL - 76 * + CASE - MAX( 48 ) WHEN + 4 THEN NULLIF ( 59, 74 * + 92 - COUNT( * ) * 37 ) WHEN + 15 THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1854
SELECT ALL - 76 * + CASE - MAX ( 48 ) WHEN + 4 THEN NULLIF ( 59, 74 * + 92 - COUNT ( * ) * 37 ) WHEN + 15 THEN NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT 49 + ( 35 ) - 32 * COUNT( * ) * 62
----
-1900

skipif mysql # not compatible
query I rowsort label-1855
SELECT 49 + ( 35 ) - 32 * COUNT ( * ) * 62
----
-1900

onlyif mysql # DIV for integer division: 
query I rowsort label-1856
SELECT - 49 DIV - 8
----
6

skipif mysql # not compatible
query I rowsort label-1856
SELECT - 49 / - 8
----
6

query I rowsort
SELECT ALL 19 - 63
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1858
SELECT - MIN( + + NULLIF ( + 46, + 27 ) ) * 93 AS col1
----
-4278

skipif mysql # not compatible
query I rowsort label-1858
SELECT - MIN ( + + NULLIF ( + 46, + 27 ) ) * 93 AS col1
----
-4278

onlyif mysql # aggregate syntax: 
query I rowsort label-1859
SELECT + 58 * ( + + COUNT( * ) ) * + 65
----
3770

skipif mysql # not compatible
query I rowsort label-1859
SELECT + 58 * ( + + COUNT ( * ) ) * + 65
----
3770

query I rowsort
SELECT ALL + + 52 - 98 AS col2
----
-46

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1861
SELECT NULLIF ( + COUNT( * ), 28 * + 44 ) * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1861
SELECT NULLIF ( + COUNT ( * ), 28 * + 44 ) * - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - COALESCE ( + 68, - - 94 ) AS col2
----
-68

query I rowsort
SELECT 85 * - + 31 * + 68 + 37
----
-179143

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1865
SELECT DISTINCT - 46 AS col0, + 91 + + CAST( - 87 AS SIGNED )
----
-46
4

skipif mysql # not compatible
query II rowsort label-1865
SELECT DISTINCT - 46 AS col0, + 91 + + CAST ( - 87 AS INTEGER )
----
-46
4

query II rowsort
SELECT ALL - + 99, - 48 * - - 36 AS col0
----
-99
-1728

query II rowsort
SELECT DISTINCT - 77, + 36 + + 21 AS col0
----
-77
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1868
SELECT MIN( DISTINCT - 80 ) + - 62
----
-142

skipif mysql # not compatible
query I rowsort label-1868
SELECT MIN ( DISTINCT - 80 ) + - 62
----
-142

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

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

query II rowsort
SELECT + 79 AS col1, 46 AS col0
----
79
46

query I rowsort
SELECT - 4 * + NULLIF ( + - 79, - 94 + 86 )
----
316

query II rowsort
SELECT 44 col1, + 57
----
44
57

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1873
SELECT DISTINCT - - 35 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1873
SELECT DISTINCT - - 35 * - CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT 27 + - 66, 6 * 2 + NULLIF ( 71, - 87 ) AS col2
----
-39
83

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

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

query I rowsort
SELECT DISTINCT - CASE - 65 WHEN + 18 * - 44 + 80 THEN - 83 + + 71 * 75 WHEN 92 / 56 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1877
SELECT DISTINCT 56 + + - MAX( ALL 48 )
----
8

skipif mysql # not compatible
query I rowsort label-1877
SELECT DISTINCT 56 + + - MAX ( ALL 48 )
----
8

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1879
SELECT DISTINCT - MIN( + - 89 ) + + 73 + - NULLIF ( - COUNT( * ), 47 )
----
163

skipif mysql # not compatible
query I rowsort label-1879
SELECT DISTINCT - MIN ( + - 89 ) + + 73 + - NULLIF ( - COUNT ( * ), 47 )
----
163

query I rowsort
SELECT ALL - 3 * + 11 * + - 66 AS col0
----
2178

onlyif mysql # aggregate syntax: 
query I rowsort label-1881
SELECT ALL MIN( + 22 ) + + 22 + 4 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-1881
SELECT ALL MIN ( + 22 ) + + 22 + 4 AS col0
----
48

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

skipif mysql # not compatible
query I rowsort label-1882
SELECT ALL + COUNT ( * ) + 72 AS col1
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1883
SELECT 31 * - 17 + - CAST( - 93 AS SIGNED ) + - 48 * CASE 83 WHEN COUNT( * ) THEN SUM( - 11 ) WHEN - 15 THEN NULL WHEN 13 / + COALESCE ( - ( - 52 ), 52 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1883
SELECT 31 * - 17 + - CAST ( - 93 AS INTEGER ) + - 48 * CASE 83 WHEN COUNT ( * ) THEN SUM ( - 11 ) WHEN - 15 THEN NULL WHEN 13 / + COALESCE ( - ( - 52 ), 52 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1884
SELECT 49 DIV CASE + 92 WHEN - 61 THEN NULL WHEN - COUNT( * ) THEN ( + 12 ) ELSE - 40 + 48 END AS col2
----
6

skipif mysql # not compatible
query I rowsort label-1884
SELECT 49 / CASE + 92 WHEN - 61 THEN NULL WHEN - COUNT ( * ) THEN ( + 12 ) ELSE - 40 + 48 END AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT ALL - MIN( - - 28 ) + 23 + - + CASE 38 WHEN + 13 THEN NULL ELSE - 8 * + 44 END AS col1
----
347

skipif mysql # not compatible
query I rowsort label-1885
SELECT ALL - MIN ( - - 28 ) + 23 + - + CASE 38 WHEN + 13 THEN NULL ELSE - 8 * + 44 END AS col1
----
347

query I rowsort
SELECT ( 78 ) * 44 * + 60
----
205920

query I rowsort
SELECT 32 * - 16
----
-512

onlyif mysql # aggregate syntax: 
query II rowsort label-1888
SELECT DISTINCT - COUNT( * ) + - - 7, - 39 + + 86 * 96 AS col2
----
6
8217

skipif mysql # not compatible
query II rowsort label-1888
SELECT DISTINCT - COUNT ( * ) + - - 7, - 39 + + 86 * 96 AS col2
----
6
8217

onlyif mysql # aggregate syntax: 
query I rowsort label-1889
SELECT ALL + 59 + + MAX( - 69 ) + 28 * 73
----
2034

skipif mysql # not compatible
query I rowsort label-1889
SELECT ALL + 59 + + MAX ( - 69 ) + 28 * 73
----
2034

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1891
SELECT 48 + + NULLIF ( - 4, 16 * 8 + - COALESCE ( + CAST( 74 AS SIGNED ) + + 33, + 14, COUNT( * ) * 33 + - CAST( 99 AS SIGNED ) * ( 40 * 96 ) ) ) - + COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-1891
SELECT 48 + + NULLIF ( - 4, 16 * 8 + - COALESCE ( + CAST ( 74 AS INTEGER ) + + 33, + 14, COUNT ( * ) * 33 + - CAST ( 99 AS INTEGER ) * ( 40 * 96 ) ) ) - + COUNT ( * )
----
43

query I rowsort
SELECT ALL 36 - - 1 * - + 24 * - + 9 AS col0
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-1893
SELECT DISTINCT MIN( 63 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-1893
SELECT DISTINCT MIN ( 63 ) AS col2
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1894
SELECT ALL 80 * - - COUNT( * ) + CASE + 64 WHEN - 88 + - COUNT( * ) THEN 79 DIV 17 ELSE - 6 END * + 22 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-1894
SELECT ALL 80 * - - COUNT ( * ) + CASE + 64 WHEN - 88 + - COUNT ( * ) THEN 79 / 17 ELSE - 6 END * + 22 AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT DISTINCT - COUNT( * ) - + SUM( DISTINCT 95 ) + 71
----
-25

skipif mysql # not compatible
query I rowsort label-1895
SELECT DISTINCT - COUNT ( * ) - + SUM ( DISTINCT 95 ) + 71
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1896
SELECT ALL + 89 - + 9 + + COUNT( ALL - 96 ) * - 58
----
22

skipif mysql # not compatible
query I rowsort label-1896
SELECT ALL + 89 - + 9 + + COUNT ( ALL - 96 ) * - 58
----
22

query I rowsort
SELECT - 47 + - 76 col2
----
-123

onlyif mysql # aggregate syntax: 
query II rowsort label-1898
SELECT ALL - SUM( + 39 ) col2, + COUNT( * ) AS col0
----
-39
1

skipif mysql # not compatible
query II rowsort label-1898
SELECT ALL - SUM ( + 39 ) col2, + COUNT ( * ) AS col0
----
-39
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1899
SELECT ALL - 64 DIV 5 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-1899
SELECT ALL - 64 / 5 AS col1
----
-12

query I rowsort
SELECT - + CASE 92 WHEN + + 11 THEN 2 END AS col1
----
NULL

query II rowsort
SELECT ALL - ( 96 ) col1, 12 AS col2
----
-96
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1902
SELECT DISTINCT CASE + MIN( + CASE + - 14 WHEN 32 THEN + 2 - - 52 / 15 END ) WHEN + 39 THEN 39 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1902
SELECT DISTINCT CASE + MIN ( + CASE + - 14 WHEN 32 THEN + 2 - - 52 / 15 END ) WHEN + 39 THEN 39 END
----
NULL

query I rowsort
SELECT ALL 10 * 55
----
550

query I rowsort
SELECT DISTINCT - 71 * + 89 AS col1
----
-6319

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1905
SELECT - 8 DIV 7 + CASE + + COUNT( * ) WHEN 64 * + ( - SUM( ALL - 43 ) * - COUNT( * ) + ( + COALESCE ( + 65, + 12 ) ) ) THEN CAST( NULL AS SIGNED ) WHEN 83 + - 41 THEN NULL ELSE - MIN( ALL - 71 ) END - - COUNT( * ) * 7
----
77

skipif mysql # not compatible
query I rowsort label-1905
SELECT - 8 / 7 + CASE + + COUNT ( * ) WHEN 64 * + ( - SUM ( ALL - 43 ) * - COUNT ( * ) + ( + COALESCE ( + 65, + 12 ) ) ) THEN CAST ( NULL AS INTEGER ) WHEN 83 + - 41 THEN NULL ELSE - MIN ( ALL - 71 ) END - - COUNT ( * ) * 7
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1906
SELECT DISTINCT 20 * + COUNT( * ) + + 42
----
62

skipif mysql # not compatible
query I rowsort label-1906
SELECT DISTINCT 20 * + COUNT ( * ) + + 42
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1907
SELECT ALL 74 * CAST( NULL AS SIGNED ) / - - 63 * + + 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1907
SELECT ALL 74 * CAST ( NULL AS INTEGER ) / - - 63 * + + 91 AS col1
----
NULL

query I rowsort
SELECT 14 + - ( + ( ( + - 96 ) ) ) * 62
----
5966

query I rowsort
SELECT + CASE + 9 WHEN 22 THEN NULL ELSE + 71 * 16 END
----
1136

onlyif mysql # aggregate syntax: 
query I rowsort label-1910
SELECT ALL + ( - 17 ) * - MAX( + 1 ) * 99 + - 39 col2
----
1644

skipif mysql # not compatible
query I rowsort label-1910
SELECT ALL + ( - 17 ) * - MAX ( + 1 ) * 99 + - 39 col2
----
1644

onlyif mysql # DIV for integer division: 
query I rowsort label-1911
SELECT ALL + 54 * - 58 + + 95 DIV 42 * + 17 * + 44 AS col2
----
-1636

skipif mysql # not compatible
query I rowsort label-1911
SELECT ALL + 54 * - 58 + + 95 / 42 * + 17 * + 44 AS col2
----
-1636

query I rowsort
SELECT ALL - 82 * + 10 + + 57 AS col0
----
-763

query I rowsort
SELECT 4 * 70
----
280

onlyif mysql # aggregate syntax: 
query I rowsort label-1914
SELECT 26 * - 52 + - COUNT( * ) * 14
----
-1366

skipif mysql # not compatible
query I rowsort label-1914
SELECT 26 * - 52 + - COUNT ( * ) * 14
----
-1366

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

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

query I rowsort
SELECT - 70 * - 28 + + 44
----
2004

query I rowsort
SELECT ALL - 88 * + 90 + + 22 + - 3
----
-7901

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1918
SELECT ALL - CAST( - + 20 AS SIGNED ) * - 78
----
-1560

skipif mysql # not compatible
query I rowsort label-1918
SELECT ALL - CAST ( - + 20 AS INTEGER ) * - 78
----
-1560

query I rowsort
SELECT 58 + - - 81
----
139

query I rowsort
SELECT - 19 * 5 col0
----
-95

query II rowsort
SELECT + 93, + 54 + - + 55 AS col1
----
93
-1

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

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

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

skipif mysql # not compatible
query I rowsort label-1923
SELECT ALL CAST ( NULL AS INTEGER ) - + 51
----
NULL

query I rowsort
SELECT ALL + 27 - - 96
----
123

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1926
SELECT - COUNT( COALESCE ( - 31, - 21 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1926
SELECT - COUNT ( COALESCE ( - 31, - 21 ) ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1927
SELECT ALL + + CASE 24 WHEN + SUM( - 98 ) + CAST( NULL AS DECIMAL ) + + 67 THEN CAST( - 61 AS SIGNED ) * 22 WHEN + ( ( 80 ) ) THEN NULL END / + ( 76 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1927
SELECT ALL + + CASE 24 WHEN + SUM ( - 98 ) + CAST ( NULL AS REAL ) + + 67 THEN CAST ( - 61 AS INTEGER ) * 22 WHEN + ( ( 80 ) ) THEN NULL END / + ( 76 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1928
SELECT + 40 DIV 84 + + 38 * - + COUNT( * ) * - 58 * ( + ( 42 ) )
----
92568

skipif mysql # not compatible
query I rowsort label-1928
SELECT + 40 / 84 + + 38 * - + COUNT ( * ) * - 58 * ( + ( 42 ) )
----
92568

query I rowsort
SELECT ALL - CASE + + 27 WHEN - - 9 THEN NULL ELSE - 36 END
----
36

query I rowsort
SELECT - 97 * + 54
----
-5238

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1931
SELECT + - 22 - - - NULLIF ( + + 38, + 35 * + - MAX( ALL - 31 ) ) + 22 DIV + 74 * - 30
----
-60

skipif mysql # not compatible
query I rowsort label-1931
SELECT + - 22 - - - NULLIF ( + + 38, + 35 * + - MAX ( ALL - 31 ) ) + 22 / + 74 * - 30
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-1932
SELECT DISTINCT COUNT( * ) + - 89 AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-1932
SELECT DISTINCT COUNT ( * ) + - 89 AS col1
----
-88

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT ALL COUNT( * ) + COUNT( + 52 ) * 28 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-1934
SELECT ALL COUNT ( * ) + COUNT ( + 52 ) * 28 AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT ALL - 92 + - MIN( 28 )
----
-120

skipif mysql # not compatible
query I rowsort label-1935
SELECT ALL - 92 + - MIN ( 28 )
----
-120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1936
SELECT + 86 DIV + COUNT( * ) col1
----
86

skipif mysql # not compatible
query I rowsort label-1936
SELECT + 86 / + COUNT ( * ) col1
----
86

query I rowsort
SELECT + 44 + + 23 AS col1
----
67

query II rowsort
SELECT ALL + 88 AS col2, + 74 - + 29 * 39
----
88
-1057

query I rowsort
SELECT + NULLIF ( 61, - - 80 ) col0
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1940
SELECT ALL + 10 DIV - 13 DIV - + COUNT( * ) + + - 95 + - 87 AS col2
----
-182

skipif mysql # not compatible
query I rowsort label-1940
SELECT ALL + 10 / - 13 / - + COUNT ( * ) + + - 95 + - 87 AS col2
----
-182

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1941
SELECT ALL - 26 DIV CAST( 60 AS SIGNED ) + + 26 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-1941
SELECT ALL - 26 / CAST ( 60 AS INTEGER ) + + 26 AS col0
----
26

query I rowsort
SELECT 40 * + 38 + + 51 + - 76 AS col0
----
1495

query I rowsort
SELECT + NULLIF ( + 92, + AVG ( - 98 ) * 61 )
----
92

query I rowsort
SELECT ( - - 31 ) AS col2
----
31

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1946
SELECT ALL CAST( - - 2 AS SIGNED ) * - 29
----
-58

skipif mysql # not compatible
query I rowsort label-1946
SELECT ALL CAST ( - - 2 AS INTEGER ) * - 29
----
-58

query I rowsort
SELECT + 2 * - 57 AS col1
----
-114

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1948
SELECT + 83 AS col0, CASE WHEN NOT ( NULL ) > NULL THEN CAST( + 24 AS SIGNED ) END AS col1
----
83
NULL

skipif mysql # not compatible
query II rowsort label-1948
SELECT + 83 AS col0, CASE WHEN NOT ( NULL ) > NULL THEN CAST ( + 24 AS INTEGER ) END AS col1
----
83
NULL

query II rowsort
SELECT ALL + 3 AS col1, 98 col1
----
3
98

query I rowsort
SELECT DISTINCT 90 * + + 94 - - - ( - + 0 )
----
8460

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT - COUNT( * ) * + + COUNT( * ) * - + COUNT( * ) + + 7 col0
----
8

skipif mysql # not compatible
query I rowsort label-1951
SELECT - COUNT ( * ) * + + COUNT ( * ) * - + COUNT ( * ) + + 7 col0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1952
SELECT ALL CAST( + 62 AS SIGNED ) * + 47 AS col0
----
2914

skipif mysql # not compatible
query I rowsort label-1952
SELECT ALL CAST ( + 62 AS INTEGER ) * + 47 AS col0
----
2914

onlyif mysql # aggregate syntax: 
query II rowsort label-1953
SELECT DISTINCT COUNT( * ) * + + MAX( - + ( 55 ) ) AS col0, + 69 AS col0
----
-55
69

skipif mysql # not compatible
query II rowsort label-1953
SELECT DISTINCT COUNT ( * ) * + + MAX ( - + ( 55 ) ) AS col0, + 69 AS col0
----
-55
69

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

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

query I rowsort
SELECT NULLIF ( 95, - + 13 + NULLIF ( 76, - 14 + 99 ) )
----
95

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

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

query II rowsort
SELECT ALL + 12, 49 + - 42 AS col2
----
12
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT - 83 * + 48 + + + COUNT( 60 ) * - ( ( 44 ) ) * - ( 85 ) + 49
----
-195

skipif mysql # not compatible
query I rowsort label-1958
SELECT - 83 * + 48 + + + COUNT ( 60 ) * - ( ( 44 ) ) * - ( 85 ) + 49
----
-195

query II rowsort
SELECT + - 44, 54 * - 33 + + - 27 AS col2
----
-44
-1809

onlyif mysql # aggregate syntax: 
query I rowsort label-1960
SELECT ALL + - CASE + COUNT( * ) WHEN 73 * 3 THEN - - COUNT( * ) * 87 / - ( ( - 74 ) ) + 24 * 49 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1960
SELECT ALL + - CASE + COUNT ( * ) WHEN 73 * 3 THEN - - COUNT ( * ) * 87 / - ( ( - 74 ) ) + 24 * 49 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1961
SELECT - COUNT( * ) * 46 + - 64 AS col2
----
-110

skipif mysql # not compatible
query I rowsort label-1961
SELECT - COUNT ( * ) * 46 + - 64 AS col2
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-1962
SELECT ALL + MIN( 18 ) * + - 41
----
-738

skipif mysql # not compatible
query I rowsort label-1962
SELECT ALL + MIN ( 18 ) * + - 41
----
-738

query I rowsort
SELECT - 68 + 65 * 5
----
257

query I rowsort
SELECT DISTINCT + 70 * + 93 * + + 66
----
429660

query I rowsort
SELECT ALL - NULLIF ( - + 17, + + 6 + + - ( ( - - 37 ) ) + - 94 * - AVG ( ALL 6 / + 80 ) * + 26 ) col1
----
17

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1966
SELECT DISTINCT + 98 AS col1, NULLIF ( + COALESCE ( 1, + - 14, - SUM( DISTINCT 83 ) ), CASE - 66 WHEN - CAST( NULL AS DECIMAL ) THEN + 81 + ( + 49 ) END )
----
98
1

skipif mysql # not compatible
query II rowsort label-1966
SELECT DISTINCT + 98 AS col1, NULLIF ( + COALESCE ( 1, + - 14, - SUM ( DISTINCT 83 ) ), CASE - 66 WHEN - CAST ( NULL AS REAL ) THEN + 81 + ( + 49 ) END )
----
98
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1967
SELECT ALL 54 * - 8 - - 29 + + MIN( ALL + 62 ) + 23 + 17
----
-301

skipif mysql # not compatible
query I rowsort label-1967
SELECT ALL 54 * - 8 - - 29 + + MIN ( ALL + 62 ) + 23 + 17
----
-301

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

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

query I rowsort
SELECT - + 51 + - 67 * - 74 + + 32 AS col2
----
4939

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT - - SUM( + ( - 88 ) ) * - ( 19 ) AS col1
----
1672

skipif mysql # not compatible
query I rowsort label-1970
SELECT - - SUM ( + ( - 88 ) ) * - ( 19 ) AS col1
----
1672

onlyif mysql # aggregate syntax: 
query I rowsort label-1971
SELECT - - SUM( DISTINCT - + ( - 21 ) ) + CASE + 78 WHEN + + 41 * 42 THEN NULL WHEN ( ( 18 ) ) THEN AVG ( 45 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1971
SELECT - - SUM ( DISTINCT - + ( - 21 ) ) + CASE + 78 WHEN + + 41 * 42 THEN NULL WHEN ( ( 18 ) ) THEN AVG ( 45 ) END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - ( - ( - 75 ) )
----
-75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1974
SELECT - COUNT( * ) + + 67 col1
----
66

skipif mysql # not compatible
query I rowsort label-1974
SELECT - COUNT ( * ) + + 67 col1
----
66

query I rowsort
SELECT ALL - 96 + + 25 col0
----
-71

query II rowsort
SELECT - + 26 col2, ( 68 ) - 72 AS col0
----
-26
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-1977
SELECT ALL - - 62 DIV 84
----
0

skipif mysql # not compatible
query I rowsort label-1977
SELECT ALL - - 62 / 84
----
0

query I rowsort
SELECT ALL - + 53 * + 90
----
-4770

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

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

query II rowsort
SELECT 75 AS col0, 65
----
75
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1981
SELECT - 9 * 98 / - 30 * - CASE - - CAST( - 98 AS SIGNED ) WHEN + - MAX( ALL - 42 ) THEN NULL WHEN ( - COUNT( * ) ) + - COUNT( * ) * - 86 THEN - 57 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1981
SELECT - 9 * 98 / - 30 * - CASE - - CAST ( - 98 AS INTEGER ) WHEN + - MAX ( ALL - 42 ) THEN NULL WHEN ( - COUNT ( * ) ) + - COUNT ( * ) * - 86 THEN - 57 END col0
----
NULL

query I rowsort
SELECT ALL + 72 * + + 25 * 86
----
154800

query II rowsort
SELECT - ( + + 56 ) AS col2, 70 * + 73
----
-56
5110

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT COUNT( * ) * - MAX( ALL + 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-1984
SELECT COUNT ( * ) * - MAX ( ALL + 30 )
----
-30

query I rowsort
SELECT ALL + ( - 11 ) * + NULLIF ( - + NULLIF ( - + 90, + 27 + - 65 ), 85 )
----
-990

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1986
SELECT - 61 DIV 27 * + 49 + + ( - - COUNT( * ) ) + - 91
----
-188

skipif mysql # not compatible
query I rowsort label-1986
SELECT - 61 / 27 * + 49 + + ( - - COUNT ( * ) ) + - 91
----
-188

query II rowsort
SELECT DISTINCT 8 - - 41, + 6 * - 69 col0
----
49
-414

query I rowsort
SELECT ALL 43 * + 82 AS col1
----
3526

onlyif mysql # aggregate syntax: 
query I rowsort label-1989
SELECT ( - 76 ) * - - MIN( - 2 ) + + + 94 AS col0
----
246

skipif mysql # not compatible
query I rowsort label-1989
SELECT ( - 76 ) * - - MIN ( - 2 ) + + + 94 AS col0
----
246

onlyif mysql # DIV for integer division: 
query I rowsort label-1990
SELECT DISTINCT 72 DIV 10
----
7

skipif mysql # not compatible
query I rowsort label-1990
SELECT DISTINCT 72 / 10
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1991
SELECT COUNT( * ) * CASE - + 39 WHEN + - ( - 81 ) THEN + 4 ELSE NULL END * + NULLIF ( 63, - 20 * 5 ) + MAX( DISTINCT + 1 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1991
SELECT COUNT ( * ) * CASE - + 39 WHEN + - ( - 81 ) THEN + 4 ELSE NULL END * + NULLIF ( 63, - 20 * 5 ) + MAX ( DISTINCT + 1 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1992
SELECT 77 DIV + 56 AS col0, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-1992
SELECT 77 / + 56 AS col0, COUNT ( * )
----
1
1

query I rowsort
SELECT ALL 7 * - 51 * - 7 AS col0
----
2499

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1994
SELECT 37 / CASE - COUNT( * ) WHEN - + MIN( DISTINCT - 57 ) * + - CASE 91 WHEN - 41 * - 68 - AVG ( + 78 ) THEN ( - 58 ) - - 43 WHEN - 4 * - 54 + 18 * - MAX( ALL 45 * 48 - + 33 / + 14 ) THEN - 50 ELSE 97 END THEN NULL WHEN - 12 THEN NULL WHEN MIN( ALL 59 ) THEN + 74 END / - ( CAST( NULL AS SIGNED ) / - ( - CASE + 51 WHEN 47 * + COUNT( COALESCE ( - 16, + 95 ) * 48 ) THEN NULL WHEN + 50 + AVG ( - 2 ) THEN - 85 END ) ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1994
SELECT 37 / CASE - COUNT ( * ) WHEN - + MIN ( DISTINCT - 57 ) * + - CASE 91 WHEN - 41 * - 68 - AVG ( + 78 ) THEN ( - 58 ) - - 43 WHEN - 4 * - 54 + 18 * - MAX ( ALL 45 * 48 - + 33 / + 14 ) THEN - 50 ELSE 97 END THEN NULL WHEN - 12 THEN NULL WHEN MIN ( ALL 59 ) THEN + 74 END / - ( CAST ( NULL AS INTEGER ) / - ( - CASE + 51 WHEN 47 * + COUNT ( COALESCE ( - 16, + 95 ) * 48 ) THEN NULL WHEN + 50 + AVG ( - 2 ) THEN - 85 END ) ) + - COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT 42 * + - 52 * - - 41 AS col1
----
-89544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1996
SELECT 15 / - CASE 25 WHEN + 55 + - - 32 - - - CAST( + + ( + 0 ) AS SIGNED ) - - 43 THEN NULL WHEN 45 THEN - 69 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1996
SELECT 15 / - CASE 25 WHEN + 55 + - - 32 - - - CAST ( + + ( + 0 ) AS INTEGER ) - - 43 THEN NULL WHEN 45 THEN - 69 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + - 68 + 90 AS col2
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1998
SELECT ALL - CAST( + - 83 AS SIGNED ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-1998
SELECT ALL - CAST ( + - 83 AS INTEGER ) AS col0
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-1999
SELECT ALL + + 26 + + 54 * 44 DIV - 41 - - + 47 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-1999
SELECT ALL + + 26 + + 54 * 44 / - 41 - - + 47 AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2000
SELECT SUM( - 67 ) - 7 AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-2000
SELECT SUM ( - 67 ) - 7 AS col0
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2001
SELECT ALL - ( + CASE - + 13 WHEN 24 THEN - 42 WHEN 76 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2001
SELECT ALL - ( + CASE - + 13 WHEN 24 THEN - 42 WHEN 76 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2002
SELECT ALL - - 51 * + CAST( + ( + - 96 ) AS SIGNED )
----
-4896

skipif mysql # not compatible
query I rowsort label-2002
SELECT ALL - - 51 * + CAST ( + ( + - 96 ) AS INTEGER )
----
-4896

query I rowsort
SELECT DISTINCT COALESCE ( + 81, 70, - 96 )
----
81

query I rowsort
SELECT DISTINCT - + 84 + 28 col0
----
-56

query I rowsort
SELECT 7 + + 89
----
96

query I rowsort
SELECT 42 - 75
----
-33

query I rowsort
SELECT 13 * + 4
----
52

query I rowsort
SELECT 52 * - 27 AS col0
----
-1404

query II rowsort
SELECT 5 AS col1, ( + 33 ) AS col0
----
5
33

onlyif mysql # DIV for integer division: 
query II rowsort label-2010
SELECT - 70 AS col1, + 95 DIV - 52
----
-70
-1

skipif mysql # not compatible
query II rowsort label-2010
SELECT - 70 AS col1, + 95 / - 52
----
-70
-1

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

skipif mysql # not compatible
query I rowsort label-2011
SELECT ALL - CAST ( NULL AS INTEGER ) / 41
----
NULL

query I rowsort
SELECT 32 + + 8 * + 38 * 90
----
27392

query I rowsort
SELECT 42 + + - 94 AS col2
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-2014
SELECT DISTINCT - 22 DIV + 60
----
0

skipif mysql # not compatible
query I rowsort label-2014
SELECT DISTINCT - 22 / + 60
----
0

query I rowsort
SELECT 51 + - - 46 AS col1
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2016
SELECT 58 DIV SUM( 66 ) AS col0, + COUNT( 25 )
----
0
1

skipif mysql # not compatible
query II rowsort label-2016
SELECT 58 / SUM ( 66 ) AS col0, + COUNT ( 25 )
----
0
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2017
SELECT MAX( ALL + - 29 ) * - - 16, + COUNT( * ) col0
----
-464
1

skipif mysql # not compatible
query II rowsort label-2017
SELECT MAX ( ALL + - 29 ) * - - 16, + COUNT ( * ) col0
----
-464
1

query I rowsort
SELECT DISTINCT + 23 * + - 4
----
-92

query I rowsort
SELECT ALL - NULLIF ( 37, - 50 * + 67 ) AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-2020
SELECT 57 * + CASE + 44 WHEN + 15 - 5 THEN + + COUNT( * ) WHEN - - SUM( DISTINCT + + 46 ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2020
SELECT 57 * + CASE + 44 WHEN + 15 - 5 THEN + + COUNT ( * ) WHEN - - SUM ( DISTINCT + + 46 ) THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL - 5 + - 64 * 30 AS col1
----
-1925

query I rowsort
SELECT 64 - + - 8 AS col0
----
72

query I rowsort
SELECT DISTINCT - 33 * + 46
----
-1518

query I rowsort
SELECT DISTINCT - 24 + - 12
----
-36

query I rowsort
SELECT DISTINCT + + 25 + + - 18 * + 63 * + - 27 col0
----
30643

query I rowsort
SELECT DISTINCT + 22 + - - 70 + 23
----
115

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2028
SELECT ALL CAST( NULL AS SIGNED ) + + - 55 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2028
SELECT ALL CAST ( NULL AS INTEGER ) + + - 55 col0
----
NULL

query I rowsort
SELECT 84 - + - 65 - - 99 + - 80
----
168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2030
SELECT + - COUNT( * ) * + COUNT( * ) * + 81 * 7 + + 71 + + NULLIF ( - CAST( NULL AS SIGNED ), + + 93 / CASE + COUNT( * ) - + NULLIF ( ( 67 ), + 77 ) WHEN - CASE 40 WHEN + 24 * + COUNT( * ) THEN 69 WHEN ( - CASE 35 WHEN 92 THEN NULL ELSE - ( - NULLIF ( 55, 9 ) ) * 84 END ) THEN NULL WHEN - 3 * - 52 + MIN( DISTINCT + 51 ) THEN NULL ELSE - COALESCE ( 80, - 81 + 66 / SUM( DISTINCT + 61 ) ) END THEN + CASE - 17 WHEN 49 THEN NULL WHEN + 5 * 21 + 4 THEN + COUNT( ALL 19 ) ELSE NULL END ELSE NULL END ) + SUM( 47 + + 25 ) * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2030
SELECT + - COUNT ( * ) * + COUNT ( * ) * + 81 * 7 + + 71 + + NULLIF ( - CAST ( NULL AS INTEGER ), + + 93 / CASE + COUNT ( * ) - + NULLIF ( ( 67 ), + 77 ) WHEN - CASE 40 WHEN + 24 * + COUNT ( * ) THEN 69 WHEN ( - CASE 35 WHEN 92 THEN NULL ELSE - ( - NULLIF ( 55, 9 ) ) * 84 END ) THEN NULL WHEN - 3 * - 52 + MIN ( DISTINCT + 51 ) THEN NULL ELSE - COALESCE ( 80, - 81 + 66 / SUM ( DISTINCT + 61 ) ) END THEN + CASE - 17 WHEN 49 THEN NULL WHEN + 5 * 21 + 4 THEN + COUNT ( ALL 19 ) ELSE NULL END ELSE NULL END ) + SUM ( 47 + + 25 ) * COUNT ( * ) AS col1
----
NULL

query II rowsort
SELECT 49 AS col1, 30 AS col1
----
49
30

query I rowsort
SELECT ALL + COALESCE ( - + 99, - + ( - 3 ) + + 36 * + 12 * - 3 ) + 34 + 79 AS col1
----
14

query I rowsort
SELECT ALL - 54 + + - 47 AS col0
----
-101

query I rowsort
SELECT 63 + + 57
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-2035
SELECT DISTINCT - - 45 + COUNT( + CASE - 68 WHEN + - 1 THEN + 20 END )
----
45

skipif mysql # not compatible
query I rowsort label-2035
SELECT DISTINCT - - 45 + COUNT ( + CASE - 68 WHEN + - 1 THEN + 20 END )
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2036
SELECT ALL + 97, CAST( 37 AS SIGNED ) AS col1
----
97
37

skipif mysql # not compatible
query II rowsort label-2036
SELECT ALL + 97, CAST ( 37 AS INTEGER ) AS col1
----
97
37

query I rowsort
SELECT DISTINCT 45 * + - 54
----
-2430

query I rowsort
SELECT DISTINCT 15 + - - 42 col2
----
57

query I rowsort
SELECT DISTINCT + 35 * - 41 col1
----
-1435

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2040
SELECT - 15 * + 22 * + COUNT( DISTINCT 35 ) + + - 71 + + 62 * + - 96 + CASE - 8 WHEN 88 * - CASE + 55 WHEN - ( + 57 ) THEN + NULLIF ( - MIN( + CAST( NULL AS SIGNED ) ), - 61 * + 95 ) ELSE 77 + + COUNT( * ) END THEN ( 70 ) * - 28 WHEN + 11 THEN NULL ELSE 70 DIV 68 END * COUNT( * ) AS col0
----
-6352

skipif mysql # not compatible
query I rowsort label-2040
SELECT - 15 * + 22 * + COUNT ( DISTINCT 35 ) + + - 71 + + 62 * + - 96 + CASE - 8 WHEN 88 * - CASE + 55 WHEN - ( + 57 ) THEN + NULLIF ( - MIN ( + CAST ( NULL AS INTEGER ) ), - 61 * + 95 ) ELSE 77 + + COUNT ( * ) END THEN ( 70 ) * - 28 WHEN + 11 THEN NULL ELSE 70 / 68 END * COUNT ( * ) AS col0
----
-6352

query I rowsort
SELECT 89 * + COALESCE ( + 72, - 46 )
----
6408

query II rowsort
SELECT ALL 44 AS col0, 11 col2
----
44
11

query I rowsort
SELECT 79 + 53 AS col0
----
132

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

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

query I rowsort
SELECT ALL 97 - 36 - + + 0
----
61

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

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

query I rowsort
SELECT - 9 * + + 85 AS col2
----
-765

query II rowsort
SELECT DISTINCT - 27 * + 5 AS col1, 45 + + - 98 - 2 * + 94 - - 55
----
-135
-186

query I rowsort
SELECT ALL - 9 * 35 col2
----
-315

query I rowsort
SELECT DISTINCT 96 * + 73
----
7008

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

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

query I rowsort
SELECT + 20 - + 3
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-2053
SELECT ALL 31 * 89 AS col1, + COUNT( * ) * MIN( - - 15 ) AS col0
----
2759
15

skipif mysql # not compatible
query II rowsort label-2053
SELECT ALL 31 * 89 AS col1, + COUNT ( * ) * MIN ( - - 15 ) AS col0
----
2759
15

query I rowsort
SELECT + 37 * + 45
----
1665

onlyif mysql # aggregate syntax: 
query II rowsort label-2055
SELECT - CASE - + 66 WHEN - COUNT( * ) THEN + 75 END AS col0, - 21 * - CASE + 21 WHEN + 92 THEN - - 59 * 57 END + 30
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2055
SELECT - CASE - + 66 WHEN - COUNT ( * ) THEN + 75 END AS col0, - 21 * - CASE + 21 WHEN + 92 THEN - - 59 * 57 END + 30
----
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2056
SELECT - CAST( NULL AS DECIMAL ) + - + 94 AS col0, 22
----
NULL
22

skipif mysql # not compatible
query II rowsort label-2056
SELECT - CAST ( NULL AS REAL ) + - + 94 AS col0, 22
----
NULL
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2057
SELECT DISTINCT 90 * - + CASE - + 40 WHEN + 15 - - 3 THEN + - 42 * + 93 + 25 + - + NULLIF ( 37, 59 * + 94 ) WHEN 52 - + COUNT( 95 ) * NULLIF ( 47 + + 63 * 18, 25 * + 29 + - 72 * 35 ) THEN NULL ELSE NULL END + + 4 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2057
SELECT DISTINCT 90 * - + CASE - + 40 WHEN + 15 - - 3 THEN + - 42 * + 93 + 25 + - + NULLIF ( 37, 59 * + 94 ) WHEN 52 - + COUNT ( 95 ) * NULLIF ( 47 + + 63 * 18, 25 * + 29 + - 72 * 35 ) THEN NULL ELSE NULL END + + 4 AS col2
----
NULL

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

query I rowsort
SELECT COALESCE ( - - 66, + + NULLIF ( 10, - CASE WHEN NOT NULL IS NULL THEN NULL ELSE 51 END ) - - 7 + + 48 ) AS col1
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2060
SELECT ALL 2 * - + COUNT( * ) + - + CAST( - + 18 AS SIGNED ) col2
----
16

skipif mysql # not compatible
query I rowsort label-2060
SELECT ALL 2 * - + COUNT ( * ) + - + CAST ( - + 18 AS INTEGER ) col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2061
SELECT DISTINCT COUNT( * ) * - 64 + - + ( + 46 ) * + 22 + - + 99
----
-1175

skipif mysql # not compatible
query I rowsort label-2061
SELECT DISTINCT COUNT ( * ) * - 64 + - + ( + 46 ) * + 22 + - + 99
----
-1175

onlyif mysql # aggregate syntax: 
query I rowsort label-2062
SELECT DISTINCT + 53 * COUNT( * ) + + 98 col1
----
151

skipif mysql # not compatible
query I rowsort label-2062
SELECT DISTINCT + 53 * COUNT ( * ) + + 98 col1
----
151

onlyif mysql # DIV for integer division: 
query I rowsort label-2063
SELECT DISTINCT + - 97 DIV - + 2
----
48

skipif mysql # not compatible
query I rowsort label-2063
SELECT DISTINCT + - 97 / - + 2
----
48

query I rowsort
SELECT - 92 + 30 * - 93 AS col1
----
-2882

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2065
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) * 60 + - 94 + - + 95 + 12 * 73
----
NULL

skipif mysql # not compatible
query I rowsort label-2065
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) * 60 + - 94 + - + 95 + 12 * 73
----
NULL

query I rowsort
SELECT DISTINCT - - 44 * 63 + + 48
----
2820

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

query I rowsort
SELECT + + 37 * - - 45 AS col1
----
1665

onlyif mysql # DIV for integer division: 
query I rowsort label-2069
SELECT DISTINCT - NULLIF ( 95, + AVG ( DISTINCT + - 60 ) DIV + 18 + - 57 ) DIV 12 - - 44 col1
----
37

skipif mysql # not compatible
query I rowsort label-2069
SELECT DISTINCT - NULLIF ( 95, + AVG ( DISTINCT + - 60 ) / + 18 + - 57 ) / 12 - - 44 col1
----
37

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2071
SELECT + 23 * + - 25 AS col1, 44 - - - 17 DIV + COALESCE ( - - 37, 85 DIV 12 )
----
-575
44

skipif mysql # not compatible
query II rowsort label-2071
SELECT + 23 * + - 25 AS col1, 44 - - - 17 / + COALESCE ( - - 37, 85 / 12 )
----
-575
44

query I rowsort
SELECT + 80 - + 47
----
33

query I rowsort
SELECT + 56 - + + 10
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-2074
SELECT DISTINCT 72 col2, ( - COUNT( ( + 10 ) ) ) * - 61
----
72
61

skipif mysql # not compatible
query II rowsort label-2074
SELECT DISTINCT 72 col2, ( - COUNT ( ( + 10 ) ) ) * - 61
----
72
61

query II rowsort
SELECT ALL 24 AS col2, 60
----
24
60

query I rowsort
SELECT - 20 + 46
----
26

query II rowsort
SELECT ALL 90 + + NULLIF ( - - 22, + 7 ) - - 89 AS col0, 21
----
201
21

onlyif mysql # aggregate syntax: 
query II rowsort label-2078
SELECT + 96 + + COUNT( * ) * + - 81, - COUNT( * ) + + 70 AS col0
----
15
69

skipif mysql # not compatible
query II rowsort label-2078
SELECT + 96 + + COUNT ( * ) * + - 81, - COUNT ( * ) + + 70 AS col0
----
15
69

query I rowsort
SELECT + 14 * + 60 * 28 AS col1
----
23520

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

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

query II rowsort
SELECT 67 col0, 13 AS col0
----
67
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2082
SELECT + MIN( - 84 ) + - 37 AS col2
----
-121

skipif mysql # not compatible
query I rowsort label-2082
SELECT + MIN ( - 84 ) + - 37 AS col2
----
-121

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

query I rowsort
SELECT DISTINCT 89 + 31 - - 0 col2
----
120

query I rowsort
SELECT DISTINCT + 60 + + - NULLIF ( + 0, + 64 ) AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2086
SELECT + NULLIF ( - 66, + 23 + 30 + - COUNT( * ) * - + 20 ) + + 12 AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-2086
SELECT + NULLIF ( - 66, + 23 + 30 + - COUNT ( * ) * - + 20 ) + + 12 AS col2
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-2087
SELECT ALL 29 DIV + 71 + + 75 DIV + 99 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2087
SELECT ALL 29 / + 71 + + 75 / + 99 AS col1
----
0

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

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

query I rowsort
SELECT ALL 42 * + - 83 AS col0
----
-3486

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2092
SELECT ALL - CAST( NULL AS SIGNED ) / 13 + + 42 * - - COUNT( * ) * - + 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2092
SELECT ALL - CAST ( NULL AS INTEGER ) / 13 + + 42 * - - COUNT ( * ) * - + 31 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2093
SELECT + COALESCE ( + - COUNT( * ), - ( + 64 ) - - MAX( 72 ), - + CASE + COUNT( * ) WHEN 25 THEN NULL ELSE - 19 + + 82 END * COUNT( 38 ) + - 67, 53 + + COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2093
SELECT + COALESCE ( + - COUNT ( * ), - ( + 64 ) - - MAX ( 72 ), - + CASE + COUNT ( * ) WHEN 25 THEN NULL ELSE - 19 + + 82 END * COUNT ( 38 ) + - 67, 53 + + COUNT ( * ) ) AS col2
----
-1

query I rowsort
SELECT + 26 * 33 * + 49
----
42042

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2095
SELECT - 11 * 25 * + SUM( DISTINCT 49 ) + - - 7 - - 90 + + 40 + + ( - 14 ) * + 68 * CAST( 80 - + 10 AS SIGNED )
----
-79978

skipif mysql # not compatible
query I rowsort label-2095
SELECT - 11 * 25 * + SUM ( DISTINCT 49 ) + - - 7 - - 90 + + 40 + + ( - 14 ) * + 68 * CAST ( 80 - + 10 AS INTEGER )
----
-79978

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2096
SELECT ALL - 89 DIV COUNT( * ) + - COUNT( * ) + + CAST( - - 3 AS SIGNED ) DIV + 69 - + + COUNT( * ) * - - CAST( COUNT( * ) AS SIGNED ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-2096
SELECT ALL - 89 / COUNT ( * ) + - COUNT ( * ) + + CAST ( - - 3 AS INTEGER ) / + 69 - + + COUNT ( * ) * - - CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2097
SELECT ALL + - 3 DIV COALESCE ( - 60, + + ( + COUNT( * ) ) * - + 99 * 2 + + 85 * + 94 ) + COUNT( * ) - 30 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-2097
SELECT ALL + - 3 / COALESCE ( - 60, + + ( + COUNT ( * ) ) * - + 99 * 2 + + 85 * + 94 ) + COUNT ( * ) - 30 AS col0
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2098
SELECT - + 82 * + CAST( - 41 AS SIGNED ) AS col0
----
3362

skipif mysql # not compatible
query I rowsort label-2098
SELECT - + 82 * + CAST ( - 41 AS INTEGER ) AS col0
----
3362

query I rowsort
SELECT ALL + 77 * - 10
----
-770

query I rowsort
SELECT + - 71 + 96 col0
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2101
SELECT - + 60 * - - CAST( NULL AS SIGNED ) * + ( + - 2 ) - + + 2 * - COUNT( * ) + - 42 * + 45 + 39 * + + 81 + 80 * - ( COALESCE ( - 48, + ( + 7 ) ) - 77 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2101
SELECT - + 60 * - - CAST ( NULL AS INTEGER ) * + ( + - 2 ) - + + 2 * - COUNT ( * ) + - 42 * + 45 + 39 * + + 81 + 80 * - ( COALESCE ( - 48, + ( + 7 ) ) - 77 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2102
SELECT + 32 * - 78 + SUM( DISTINCT 3 ) + + ( - 32 ) * + 44 * + 61 * - COUNT( * ) * - - 19 * 82 + - ( 94 ) AS col2
----
133810917

skipif mysql # not compatible
query I rowsort label-2102
SELECT + 32 * - 78 + SUM ( DISTINCT 3 ) + + ( - 32 ) * + 44 * + 61 * - COUNT ( * ) * - - 19 * 82 + - ( 94 ) AS col2
----
133810917

query I rowsort
SELECT + 84 - + 63
----
21

query II rowsort
SELECT ALL + 98 AS col2, + 69
----
98
69

query I rowsort
SELECT 42 + 57
----
99

query II rowsort
SELECT ALL 10 col1, 85
----
10
85

query I rowsort
SELECT ALL - 54 + 4 * - 24
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-2108
SELECT 82 * + + 53 * 91 + - 81 - - - COUNT( * )
----
395404

skipif mysql # not compatible
query I rowsort label-2108
SELECT 82 * + + 53 * 91 + - 81 - - - COUNT ( * )
----
395404

onlyif mysql # aggregate syntax: 
query I rowsort label-2109
SELECT 42 * + CASE + - 60 WHEN - AVG ( + 89 ) THEN + - 44 * - CASE COUNT( * ) WHEN + 91 THEN NULL WHEN - 17 THEN 94 WHEN + COUNT( * ) THEN NULL WHEN - 98 * 94 THEN NULL END WHEN + 14 + + 24 * + 58 THEN - 16 * - COALESCE ( COUNT( + 84 ), 13 * 24 + + 50, 69 + - 58 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2109
SELECT 42 * + CASE + - 60 WHEN - AVG ( + 89 ) THEN + - 44 * - CASE COUNT ( * ) WHEN + 91 THEN NULL WHEN - 17 THEN 94 WHEN + COUNT ( * ) THEN NULL WHEN - 98 * 94 THEN NULL END WHEN + 14 + + 24 * + 58 THEN - 16 * - COALESCE ( COUNT ( + 84 ), 13 * 24 + + 50, 69 + - 58 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2110
SELECT ALL + 82 DIV 38 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2110
SELECT ALL + 82 / 38 AS col1
----
2

query I rowsort
SELECT 86 + - - 73 * + 30 AS col2
----
2276

onlyif mysql # aggregate syntax: 
query I rowsort label-2112
SELECT DISTINCT 43 * + - SUM( + 70 )
----
-3010

skipif mysql # not compatible
query I rowsort label-2112
SELECT DISTINCT 43 * + - SUM ( + 70 )
----
-3010

query I rowsort
SELECT DISTINCT 2 + - 16 AS col2
----
-14

query I rowsort
SELECT ALL 37 + + 20 AS col1
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-2115
SELECT ALL NULLIF ( + 15, - 41 ) DIV + 33
----
0

skipif mysql # not compatible
query I rowsort label-2115
SELECT ALL NULLIF ( + 15, - 41 ) / + 33
----
0

query II rowsort
SELECT DISTINCT 49 col1, 37
----
49
37

query I rowsort
SELECT 66 - - - ( 63 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2118
SELECT NULLIF ( + 59, - + 93 ) + - 14 + - - 4 + 60 * MAX( 37 ) + ( 48 ) * - 16 * 19 AS col0
----
-12323

skipif mysql # not compatible
query I rowsort label-2118
SELECT NULLIF ( + 59, - + 93 ) + - 14 + - - 4 + 60 * MAX ( 37 ) + ( 48 ) * - 16 * 19 AS col0
----
-12323

query I rowsort
SELECT DISTINCT 36 + - + 1
----
35

query II rowsort
SELECT - 16 AS col2, 67 * - + 21 + + - 13
----
-16
-1420

query II rowsort
SELECT + - 38 AS col2, + 72
----
-38
72

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2123
SELECT ALL - NULLIF ( 26, - ( + 18 ) * CAST( NULL AS DECIMAL ) * - + 63 * - ( + + 94 ) - 78 / - 94 - + 65 ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-2123
SELECT ALL - NULLIF ( 26, - ( + 18 ) * CAST ( NULL AS REAL ) * - + 63 * - ( + + 94 ) - 78 / - 94 - + 65 ) AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT + - 99 * - 53 * + - COUNT( * ) * - 66 + + ( - + 74 ) * 45 * + 56 + + - ( - 66 ) * + 49 * - 69
----
-63324

skipif mysql # not compatible
query I rowsort label-2124
SELECT + - 99 * - 53 * + - COUNT ( * ) * - 66 + + ( - + 74 ) * 45 * + 56 + + - ( - 66 ) * + 49 * - 69
----
-63324

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

query I rowsort
SELECT DISTINCT 11 * + 99
----
1089

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2127
SELECT + 90 + ( CAST( 18 AS SIGNED ) )
----
108

skipif mysql # not compatible
query I rowsort label-2127
SELECT + 90 + ( CAST ( 18 AS INTEGER ) )
----
108

query I rowsort
SELECT + 60 * 53 * + ( - 40 )
----
-127200

onlyif mysql # DIV for integer division: 
query I rowsort label-2129
SELECT + 73 - + 69 - - 4 + - 45 DIV + - 18 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-2129
SELECT + 73 - + 69 - - 4 + - 45 / + - 18 AS col1
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2130
SELECT - 82 + + + 82 - + 89 * - 29 * + - 48 + NULLIF ( - 58, + 55 ) DIV 50, + COUNT( * ) * - 56 AS col0
----
-123889
-56

skipif mysql # not compatible
query II rowsort label-2130
SELECT - 82 + + + 82 - + 89 * - 29 * + - 48 + NULLIF ( - 58, + 55 ) / 50, + COUNT ( * ) * - 56 AS col0
----
-123889
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2131
SELECT ALL - - 56 AS col1, CASE - - 88 WHEN + + CAST( + 46 AS SIGNED ) + + 63 THEN + COUNT( * ) WHEN + + 34 / - 92 THEN - 26 * - - 14 + + 30 END + + 16
----
56
NULL

skipif mysql # not compatible
query II rowsort label-2131
SELECT ALL - - 56 AS col1, CASE - - 88 WHEN + + CAST ( + 46 AS INTEGER ) + + 63 THEN + COUNT ( * ) WHEN + + 34 / - 92 THEN - 26 * - - 14 + + 30 END + + 16
----
56
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2132
SELECT - 26 DIV - + CAST( + + 78 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-2132
SELECT - 26 / - + CAST ( + + 78 AS INTEGER )
----
0

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

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

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

query I rowsort
SELECT ALL - NULLIF ( - 92, + 52 )
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-2136
SELECT DISTINCT - ( + + 74 ) DIV - 51
----
1

skipif mysql # not compatible
query I rowsort label-2136
SELECT DISTINCT - ( + + 74 ) / - 51
----
1

query I rowsort
SELECT ALL + 95 * + 37
----
3515

onlyif mysql # aggregate syntax: 
query I rowsort label-2138
SELECT ALL ( 47 ) + - COUNT( * ) + ( - COALESCE ( + 66, + 58, + 17 ) ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-2138
SELECT ALL ( 47 ) + - COUNT ( * ) + ( - COALESCE ( + 66, + 58, + 17 ) ) AS col0
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2139
SELECT - 4 * ( + 47 ) - 23 * 95 + - 72 + - COALESCE ( - - 92, - + 27, - - CAST( ( + NULLIF ( - MIN( DISTINCT - CAST( 5 AS SIGNED ) ), 95 / - COALESCE ( - 28, - COUNT( * ) ) + CASE + 46 WHEN 90 THEN NULL WHEN COUNT( * ) THEN ( - SUM( 39 ) ) WHEN - NULLIF ( - ( - 82 ), COUNT( * ) ) THEN NULL ELSE NULL END ) ) AS SIGNED ) * 9 ) / - CASE ( + COUNT( * ) ) WHEN + COUNT( * ) + 73 THEN + 69 + 85 * + COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2139
SELECT - 4 * ( + 47 ) - 23 * 95 + - 72 + - COALESCE ( - - 92, - + 27, - - CAST ( ( + NULLIF ( - MIN ( DISTINCT - CAST ( 5 AS INTEGER ) ), 95 / - COALESCE ( - 28, - COUNT ( * ) ) + CASE + 46 WHEN 90 THEN NULL WHEN COUNT ( * ) THEN ( - SUM ( 39 ) ) WHEN - NULLIF ( - ( - 82 ), COUNT ( * ) ) THEN NULL ELSE NULL END ) ) AS INTEGER ) * 9 ) / - CASE ( + COUNT ( * ) ) WHEN + COUNT ( * ) + 73 THEN + 69 + 85 * + COUNT ( * ) ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT 42 + 82, ( 5 ) AS col2
----
124
5

query I rowsort
SELECT ALL + 96 * - 96 * + 28
----
-258048

query I rowsort
SELECT 87 * - - CASE + 52 WHEN 47 THEN - 27 WHEN - - COALESCE ( - 27, + - 39 ) * 22 - 99 THEN - - 73 ELSE + 90 + 73 END AS col0
----
14181

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

skipif mysql # not compatible
query I rowsort label-2143
SELECT ALL - 23 + COUNT ( * ) - - 71 AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2144
SELECT 67 - + + 39 * + ( + 79 ) + COUNT( * )
----
-3013

skipif mysql # not compatible
query I rowsort label-2144
SELECT 67 - + + 39 * + ( + 79 ) + COUNT ( * )
----
-3013

onlyif mysql # DIV for integer division: 
query I rowsort label-2145
SELECT ALL 31 + 86 DIV + 73
----
32

skipif mysql # not compatible
query I rowsort label-2145
SELECT ALL 31 + 86 / + 73
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT COUNT( * ) * 46
----
46

skipif mysql # not compatible
query I rowsort label-2146
SELECT COUNT ( * ) * 46
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT 76 + + 99 + + SUM( ALL 65 ) * - 25 * + 53 * + - 12 AS col1
----
1033675

skipif mysql # not compatible
query I rowsort label-2147
SELECT 76 + + 99 + + SUM ( ALL 65 ) * - 25 * + 53 * + - 12 AS col1
----
1033675

onlyif mysql # aggregate syntax: 
query II rowsort label-2148
SELECT DISTINCT - 34 * - COUNT( * ), COUNT( * ) + - 23 AS col2
----
34
-22

skipif mysql # not compatible
query II rowsort label-2148
SELECT DISTINCT - 34 * - COUNT ( * ), COUNT ( * ) + - 23 AS col2
----
34
-22

query I rowsort
SELECT 21 - - 0 + + 58 * - - 58
----
3385

onlyif mysql # aggregate syntax: 
query II rowsort label-2150
SELECT 92 * + - 48, - 17 + + ( + - COUNT( * ) ) * 16 AS col2
----
-4416
-33

skipif mysql # not compatible
query II rowsort label-2150
SELECT 92 * + - 48, - 17 + + ( + - COUNT ( * ) ) * 16 AS col2
----
-4416
-33

query I rowsort
SELECT ALL - 71 * 73 AS col1
----
-5183

query I rowsort
SELECT DISTINCT COALESCE ( + + 54, + + 42 + 23 ) AS col2
----
54

query I rowsort
SELECT + + 79 col2
----
79

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2156
SELECT DISTINCT - 44 DIV - ( + - 73 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2156
SELECT DISTINCT - 44 / - ( + - 73 ) AS col2
----
0

query I rowsort
SELECT - 97 * + - 33 + - 68
----
3133

onlyif mysql # aggregate syntax: 
query II rowsort label-2158
SELECT ALL + COUNT( - 28 ), 78 * + 16 AS col0
----
1
1248

skipif mysql # not compatible
query II rowsort label-2158
SELECT ALL + COUNT ( - 28 ), 78 * + 16 AS col0
----
1
1248

onlyif mysql # aggregate syntax: 
query I rowsort label-2159
SELECT - - 8 * + 17 + + COUNT( * )
----
137

skipif mysql # not compatible
query I rowsort label-2159
SELECT - - 8 * + 17 + + COUNT ( * )
----
137

onlyif mysql # aggregate syntax: 
query II rowsort label-2160
SELECT + 77 * 24 * + 85 + - 45 * + ( + + COUNT( + + 37 ) ) + - + 84 AS col0, 77 AS col0
----
156951
77

skipif mysql # not compatible
query II rowsort label-2160
SELECT + 77 * 24 * + 85 + - 45 * + ( + + COUNT ( + + 37 ) ) + - + 84 AS col0, 77 AS col0
----
156951
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2161
SELECT ALL - 43 * + 81 + - 24 + + + 48 * + 20 - - COALESCE ( COUNT( * ), 44 * COUNT( * ) ) DIV 85 AS col2
----
-2547

skipif mysql # not compatible
query I rowsort label-2161
SELECT ALL - 43 * + 81 + - 24 + + + 48 * + 20 - - COALESCE ( COUNT ( * ), 44 * COUNT ( * ) ) / 85 AS col2
----
-2547

onlyif mysql # aggregate syntax: 
query II rowsort label-2162
SELECT ALL + 70 * + + 32 AS col1, NULLIF ( - ( - + 25 ), 88 * + SUM( ALL - 66 ) + 60 )
----
2240
25

skipif mysql # not compatible
query II rowsort label-2162
SELECT ALL + 70 * + + 32 AS col1, NULLIF ( - ( - + 25 ), 88 * + SUM ( ALL - 66 ) + 60 )
----
2240
25

query I rowsort
SELECT + 21 + + 44 + - ( 29 ) AS col1
----
36

query I rowsort
SELECT + 27 - - 69 + 70 * + + 44
----
3176

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2165
SELECT ALL 32 * + + CAST( + 42 AS SIGNED ) AS col1, - 31 * 21 * - 53
----
1344
34503

skipif mysql # not compatible
query II rowsort label-2165
SELECT ALL 32 * + + CAST ( + 42 AS INTEGER ) AS col1, - 31 * 21 * - 53
----
1344
34503

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2166
SELECT ALL 62 * + + COUNT( + 11 ) * - 22 + - COUNT( * ) + - 14 DIV - 78 + 33 + - NULLIF ( + COUNT( * ), - SUM( 32 ) DIV + 65 + 36 * + ( 52 * + 27 ) )
----
-1333

skipif mysql # not compatible
query I rowsort label-2166
SELECT ALL 62 * + + COUNT ( + 11 ) * - 22 + - COUNT ( * ) + - 14 / - 78 + 33 + - NULLIF ( + COUNT ( * ), - SUM ( 32 ) / + 65 + 36 * + ( 52 * + 27 ) )
----
-1333

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

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

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

skipif mysql # not compatible
query I rowsort label-2168
SELECT ( + CAST ( NULL AS INTEGER ) ) * 69 + + - 64
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2169
SELECT + CASE + + CAST( NULL AS DECIMAL ) WHEN + COALESCE ( + 18, 74, - 90 ) THEN + 88 WHEN - 7 THEN NULL ELSE + CASE - + 4 WHEN 46 + + 7 THEN + 86 END + + ( + 68 ) END + 44 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2169
SELECT + CASE + + CAST ( NULL AS REAL ) WHEN + COALESCE ( + 18, 74, - 90 ) THEN + 88 WHEN - 7 THEN NULL ELSE + CASE - + 4 WHEN 46 + + 7 THEN + 86 END + + ( + 68 ) END + 44 AS col2
----
NULL

query I rowsort
SELECT ALL - 19 * + 9
----
-171

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

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

query I rowsort
SELECT + 99 * - + 27 + 97
----
-2576

onlyif mysql # DIV for integer division: 
query I rowsort label-2173
SELECT ALL 1 DIV - 49
----
0

skipif mysql # not compatible
query I rowsort label-2173
SELECT ALL 1 / - 49
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2174
SELECT + 7 DIV - 17 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2174
SELECT + 7 / - 17 AS col0
----
0

query I rowsort
SELECT - 13 + + 50 - - - 75 AS col0
----
-38

query I rowsort
SELECT ALL 19 * + 52
----
988

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2178
SELECT DISTINCT + 47 * + - 8 * - NULLIF ( 66, + 57 ) * CASE + + 30 WHEN - 33 * COUNT( - CASE - - 99 WHEN + 61 / - 3 THEN NULL WHEN - 29 - ( - 74 + 37 ) / 22 THEN - 92 ELSE NULL END ) - - 52 * + 22 THEN 54 * + 14 WHEN - 69 * 83 THEN - 64 * 64 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2178
SELECT DISTINCT + 47 * + - 8 * - NULLIF ( 66, + 57 ) * CASE + + 30 WHEN - 33 * COUNT ( - CASE - - 99 WHEN + 61 / - 3 THEN NULL WHEN - 29 - ( - 74 + 37 ) / 22 THEN - 92 ELSE NULL END ) - - 52 * + 22 THEN 54 * + 14 WHEN - 69 * 83 THEN - 64 * 64 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2179
SELECT ALL COALESCE ( + ( 50 ), - COUNT( * ) + - 51, + 0 + - + 91 )
----
50

skipif mysql # not compatible
query I rowsort label-2179
SELECT ALL COALESCE ( + ( 50 ), - COUNT ( * ) + - 51, + 0 + - + 91 )
----
50

query I rowsort
SELECT - 53 * + 30
----
-1590

query I rowsort
SELECT ALL 59 * + 98 col0
----
5782

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2182
SELECT - AVG ( DISTINCT - - 29 ) + 78 + + COUNT( * ) + 80 - 48 * + 82 * - NULLIF ( + + 25, + 37 + + 94 ) * COUNT( - 53 ) * 29 + - 82 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2182
SELECT - AVG ( DISTINCT - - 29 ) + 78 + + COUNT ( * ) + 80 - 48 * + 82 * - NULLIF ( + + 25, + 37 + + 94 ) * COUNT ( - 53 ) * 29 + - 82 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2183
SELECT DISTINCT 18 AS col1, 0 DIV 69 * - 32, + COALESCE ( + MIN( 45 ), + 30, - 26, - + COUNT( * ) ) AS col2
----
18
0
45

skipif mysql # not compatible
query III rowsort label-2183
SELECT DISTINCT 18 AS col1, 0 / 69 * - 32, + COALESCE ( + MIN ( 45 ), + 30, - 26, - + COUNT ( * ) ) AS col2
----
18
0
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2184
SELECT - 15 * - - 22 * + 98 * NULLIF ( + 90, + 16 ) DIV - - SUM( ALL + 20 ) + 84 * - - 84 * + ( - MAX( - - 66 ) ) + - 76 AS col0
----
-611302

skipif mysql # not compatible
query I rowsort label-2184
SELECT - 15 * - - 22 * + 98 * NULLIF ( + 90, + 16 ) / - - SUM ( ALL + 20 ) + 84 * - - 84 * + ( - MAX ( - - 66 ) ) + - 76 AS col0
----
-611302

query I rowsort
SELECT - 59 - - 29 AS col2
----
-30

query I rowsort
SELECT - - 78 + - 18 AS col2
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-2187
SELECT ALL - + 33 DIV + 81
----
0

skipif mysql # not compatible
query I rowsort label-2187
SELECT ALL - + 33 / + 81
----
0

query I rowsort
SELECT - + 9 * 71 AS col1
----
-639

onlyif mysql # aggregate syntax: 
query I rowsort label-2189
SELECT + + COUNT( * ) + + - 46
----
-45

skipif mysql # not compatible
query I rowsort label-2189
SELECT + + COUNT ( * ) + + - 46
----
-45

query I rowsort
SELECT ALL - 98 + - 82 AS col1
----
-180

query II rowsort
SELECT + + 70 AS col0, 97
----
70
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2192
SELECT - 12 DIV - 50 - 56 * MIN( + - 5 ) DIV - - ( - - ( - - COUNT( * ) ) ) + + + 92 AS col0
----
372

skipif mysql # not compatible
query I rowsort label-2192
SELECT - 12 / - 50 - 56 * MIN ( + - 5 ) / - - ( - - ( - - COUNT ( * ) ) ) + + + 92 AS col0
----
372

query I rowsort
SELECT - + 59 - + 81
----
-140

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2195
SELECT DISTINCT - + 0 DIV - + 41 * + + 52 + 12 - COALESCE ( + 90, + 71 * + - COALESCE ( + 81, + + ( + 74 ) ), - - SUM( + 66 ), 11 ) * 66
----
-5928

skipif mysql # not compatible
query I rowsort label-2195
SELECT DISTINCT - + 0 / - + 41 * + + 52 + 12 - COALESCE ( + 90, + 71 * + - COALESCE ( + 81, + + ( + 74 ) ), - - SUM ( + 66 ), 11 ) * 66
----
-5928

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2196
SELECT DISTINCT 8 DIV + 57 + - + 28 * + + CAST( 33 AS SIGNED ) AS col1
----
-924

skipif mysql # not compatible
query I rowsort label-2196
SELECT DISTINCT 8 / + 57 + - + 28 * + + CAST ( 33 AS INTEGER ) AS col1
----
-924

onlyif mysql # aggregate syntax: 
query I rowsort label-2197
SELECT ALL + - SUM( + 75 ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-2197
SELECT ALL + - SUM ( + 75 ) AS col0
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2198
SELECT ALL - 89 DIV 32 + MAX( + 16 ) + - 57 + 95 * - - COUNT( * ) * + 80 AS col0, 6
----
7557
6

skipif mysql # not compatible
query II rowsort label-2198
SELECT ALL - 89 / 32 + MAX ( + 16 ) + - 57 + 95 * - - COUNT ( * ) * + 80 AS col0, 6
----
7557
6

onlyif mysql # DIV for integer division: 
query I rowsort label-2199
SELECT DISTINCT + 53 DIV + 50 + + - 99 DIV + ( + 75 )
----
0

skipif mysql # not compatible
query I rowsort label-2199
SELECT DISTINCT + 53 / + 50 + + - 99 / + ( + 75 )
----
0

query II rowsort
SELECT 21, 67 + - + 42 AS col0
----
21
25

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2202
SELECT - - 82 DIV 93
----
0

skipif mysql # not compatible
query I rowsort label-2202
SELECT - - 82 / 93
----
0

query I rowsort
SELECT + + 67 * 7 + - 36 - - + 80 AS col0
----
513

query II rowsort
SELECT DISTINCT + + 23 AS col0, - 69
----
23
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2205
SELECT - + CAST( NULL AS SIGNED ) * - 77 * - 0 + + + 26 * + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-2205
SELECT - + CAST ( NULL AS INTEGER ) * - 77 * - 0 + + + 26 * + 56
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2206
SELECT ALL 68 DIV COALESCE ( - - 29, 90 + 96 * - COALESCE ( - 2, - ( + - 7 ) DIV + + SUM( DISTINCT + - 78 ), 86 DIV + - 77, + 58 * + COUNT( * ) ) )
----
2

skipif mysql # not compatible
query I rowsort label-2206
SELECT ALL 68 / COALESCE ( - - 29, 90 + 96 * - COALESCE ( - 2, - ( + - 7 ) / + + SUM ( DISTINCT + - 78 ), 86 / + - 77, + 58 * + COUNT ( * ) ) )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT + MIN( DISTINCT - - 87 ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-2207
SELECT + MIN ( DISTINCT - - 87 ) AS col2
----
87

query I rowsort
SELECT ALL 96 * - 71 * + 5 + 96 - 0 + + 52 + - 44
----
-33976

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT DISTINCT + CASE 31 WHEN + COUNT( * ) * 44 + - COUNT( * ) * - + 23 * 60 * - 59 THEN NULL WHEN 10 / + + COALESCE ( - + CASE COUNT( * ) WHEN + + ( + COUNT( * ) ) THEN + 30 + CASE WHEN NOT NULL IS NULL THEN 43 ELSE NULL END END, + ( 86 ), 21 ) THEN 74 + COUNT( * ) ELSE 46 END AS col0
----
46

skipif mysql # not compatible
query I rowsort label-2209
SELECT DISTINCT + CASE 31 WHEN + COUNT ( * ) * 44 + - COUNT ( * ) * - + 23 * 60 * - 59 THEN NULL WHEN 10 / + + COALESCE ( - + CASE COUNT ( * ) WHEN + + ( + COUNT ( * ) ) THEN + 30 + CASE WHEN NOT NULL IS NULL THEN 43 ELSE NULL END END, + ( 86 ), 21 ) THEN 74 + COUNT ( * ) ELSE 46 END AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2210
SELECT ALL COUNT( * ) * - 76 + - + 11
----
-87

skipif mysql # not compatible
query I rowsort label-2210
SELECT ALL COUNT ( * ) * - 76 + - + 11
----
-87

query II rowsort
SELECT + 67 * 95, + 6 - - 80 col1
----
6365
86

query II rowsort
SELECT DISTINCT 79 * - 84, - 18 AS col1
----
-6636
-18

query II rowsort
SELECT ALL 25 * - + 54 col2, + 71 col1
----
-1350
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2214
SELECT + 57 * + ( + 9 ) + + ( - 1 ) * + + SUM( 84 )
----
429

skipif mysql # not compatible
query I rowsort label-2214
SELECT + 57 * + ( + 9 ) + + ( - 1 ) * + + SUM ( 84 )
----
429

onlyif mysql # aggregate syntax: 
query I rowsort label-2215
SELECT ALL 78 * MAX( + 71 )
----
5538

skipif mysql # not compatible
query I rowsort label-2215
SELECT ALL 78 * MAX ( + 71 )
----
5538

onlyif mysql # aggregate syntax: 
query I rowsort label-2216
SELECT + COUNT( DISTINCT + + 77 ) + - 71
----
-70

skipif mysql # not compatible
query I rowsort label-2216
SELECT + COUNT ( DISTINCT + + 77 ) + - 71
----
-70

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2219
SELECT COUNT( DISTINCT 76 ) AS col2, + 56 * - - 28 AS col0
----
1
1568

skipif mysql # not compatible
query II rowsort label-2219
SELECT COUNT ( DISTINCT 76 ) AS col2, + 56 * - - 28 AS col0
----
1
1568

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2220
SELECT ALL COUNT( - - 6 ) DIV - + 21 DIV COALESCE ( - COUNT( * ), - - MAX( + - 2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2220
SELECT ALL COUNT ( - - 6 ) / - + 21 / COALESCE ( - COUNT ( * ), - - MAX ( + - 2 ) )
----
0

query I rowsort
SELECT + 30 + - 47 col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2222
SELECT ALL COALESCE ( MIN( + - 2 ), + + 97 * - 80 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-2222
SELECT ALL COALESCE ( MIN ( + - 2 ), + + 97 * - 80 ) AS col1
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2223
SELECT + ( 4 ) + + 55 + + - CAST( 35 AS SIGNED ) - + 6 - - COUNT( * ) + - 29 * + ( 40 ) + - + 73 * + 56 + - 80
----
-5309

skipif mysql # not compatible
query I rowsort label-2223
SELECT + ( 4 ) + + 55 + + - CAST ( 35 AS INTEGER ) - + 6 - - COUNT ( * ) + - 29 * + ( 40 ) + - + 73 * + 56 + - 80
----
-5309

onlyif mysql # DIV for integer division: 
query I rowsort label-2224
SELECT + - 99 DIV - 47 col1
----
2

skipif mysql # not compatible
query I rowsort label-2224
SELECT + - 99 / - 47 col1
----
2

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2227
SELECT + CASE + 96 WHEN 4 THEN NULL ELSE 31 END * 97 * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2227
SELECT + CASE + 96 WHEN 4 THEN NULL ELSE 31 END * 97 * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2228
SELECT 62 + 47 AS col1, + MIN( DISTINCT - - 36 ) AS col0
----
109
36

skipif mysql # not compatible
query II rowsort label-2228
SELECT 62 + 47 AS col1, + MIN ( DISTINCT - - 36 ) AS col0
----
109
36

query I rowsort
SELECT + 26 - - 31 AS col1
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2230
SELECT SUM( 69 ) DIV + + 97
----
0

skipif mysql # not compatible
query I rowsort label-2230
SELECT SUM ( 69 ) / + + 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2231
SELECT ALL + SUM( + 48 ) + - - 60 * + 36 * 80
----
172848

skipif mysql # not compatible
query I rowsort label-2231
SELECT ALL + SUM ( + 48 ) + - - 60 * + 36 * 80
----
172848

onlyif mysql # DIV for integer division: 
query II rowsort label-2232
SELECT DISTINCT + 45 + 47 AS col2, 86 DIV - 29
----
92
-2

skipif mysql # not compatible
query II rowsort label-2232
SELECT DISTINCT + 45 + 47 AS col2, 86 / - 29
----
92
-2

query I rowsort
SELECT - + 70 * - 13 + ( 30 ) * - 91
----
-1820

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2234
SELECT COUNT( * ) DIV + 13 + + 79
----
79

skipif mysql # not compatible
query I rowsort label-2234
SELECT COUNT ( * ) / + 13 + + 79
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2235
SELECT - CASE - 52 WHEN SUM( DISTINCT + - CASE + 80 WHEN + + 50 THEN + - 52 + - 55 WHEN - 0 THEN NULL END ) THEN 76 * 81 * + 94 WHEN - - ( - COUNT( * ) ) * + 10 THEN NULL WHEN 21 + 24 / CAST( COUNT( + 84 ) AS SIGNED ) THEN - 53 ELSE 92 END * 13
----
-1196

skipif mysql # not compatible
query I rowsort label-2235
SELECT - CASE - 52 WHEN SUM ( DISTINCT + - CASE + 80 WHEN + + 50 THEN + - 52 + - 55 WHEN - 0 THEN NULL END ) THEN 76 * 81 * + 94 WHEN - - ( - COUNT ( * ) ) * + 10 THEN NULL WHEN 21 + 24 / CAST ( COUNT ( + 84 ) AS INTEGER ) THEN - 53 ELSE 92 END * 13
----
-1196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2236
SELECT DISTINCT + 9 * + - 82 * + + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) + + - 42 + 56 / + 12 * + 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2236
SELECT DISTINCT + 9 * + - 82 * + + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) + + - 42 + 56 / + 12 * + 55 AS col1
----
NULL

query I rowsort
SELECT 61 * - - 25 AS col1
----
1525

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT 67 + - COUNT( * ) * COUNT( - 72 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-2239
SELECT 67 + - COUNT ( * ) * COUNT ( - 72 ) AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT DISTINCT + COUNT( * ) * - - 61 * - - 18 AS col0
----
1098

skipif mysql # not compatible
query I rowsort label-2240
SELECT DISTINCT + COUNT ( * ) * - - 61 * - - 18 AS col0
----
1098

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT DISTINCT + 46 * - + COUNT( * ) * + 35
----
-1610

skipif mysql # not compatible
query I rowsort label-2241
SELECT DISTINCT + 46 * - + COUNT ( * ) * + 35
----
-1610

query I rowsort
SELECT ALL - 92 - - + 97
----
5

query I rowsort
SELECT + 54 * + 84 + - - 83
----
4619

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

skipif mysql # not compatible
query I rowsort label-2244
SELECT ALL COUNT ( * ) - - + ( - 48 ) / - 80 AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2245
SELECT MAX( DISTINCT + 80 ) DIV - + 2 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-2245
SELECT MAX ( DISTINCT + 80 ) / - + 2 AS col2
----
-40

query I rowsort
SELECT DISTINCT + 19 * - 35 AS col1
----
-665

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT 67 + + + 41 - - MAX( DISTINCT - 20 ) col2
----
88

skipif mysql # not compatible
query I rowsort label-2247
SELECT 67 + + + 41 - - MAX ( DISTINCT - 20 ) col2
----
88

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2249
SELECT COALESCE ( + - COUNT( - 82 ), 88 - + 81 ) * + - CAST( NULL AS DECIMAL ) * + 38 * + 9 + + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-2249
SELECT COALESCE ( + - COUNT ( - 82 ), 88 - + 81 ) * + - CAST ( NULL AS REAL ) * + 38 * + 9 + + 56
----
NULL

query I rowsort
SELECT 76 * + - 77
----
-5852

query I rowsort
SELECT COALESCE ( - + 71, - ( + 39 ) ) + - - 33 col1
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-2252
SELECT 82 DIV 62 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2252
SELECT 82 / 62 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2253
SELECT 65 * - 61 DIV + 1 + - 36 AS col2
----
-4001

skipif mysql # not compatible
query I rowsort label-2253
SELECT 65 * - 61 / + 1 + - 36 AS col2
----
-4001

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2254
SELECT CAST( COUNT( * ) AS SIGNED ) * - 59 + + COUNT( DISTINCT - 83 ) * 47
----
-12

skipif mysql # not compatible
query I rowsort label-2254
SELECT CAST ( COUNT ( * ) AS INTEGER ) * - 59 + + COUNT ( DISTINCT - 83 ) * 47
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2255
SELECT COALESCE ( - + 90, 87 * + COUNT( * ) + 33 - + + COALESCE ( COUNT( * ), ( + + COALESCE ( - 42, - 14, - + ( + CAST( NULL AS SIGNED ) ) * - 82 ) ) ), + 34 ) + - 46 * 37 col1
----
-1792

skipif mysql # not compatible
query I rowsort label-2255
SELECT COALESCE ( - + 90, 87 * + COUNT ( * ) + 33 - + + COALESCE ( COUNT ( * ), ( + + COALESCE ( - 42, - 14, - + ( + CAST ( NULL AS INTEGER ) ) * - 82 ) ) ), + 34 ) + - 46 * 37 col1
----
-1792

onlyif mysql # aggregate syntax: 
query II rowsort label-2256
SELECT ALL COUNT( * ) * + 49 * - MIN( - 76 ) * COUNT( * ) AS col0, CASE 67 WHEN - 90 / + 37 THEN NULL ELSE + - 32 * - - 25 * + 29 + - + 20 END AS col0
----
3724
-23220

skipif mysql # not compatible
query II rowsort label-2256
SELECT ALL COUNT ( * ) * + 49 * - MIN ( - 76 ) * COUNT ( * ) AS col0, CASE 67 WHEN - 90 / + 37 THEN NULL ELSE + - 32 * - - 25 * + 29 + - + 20 END AS col0
----
3724
-23220

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2258
SELECT 28 + 84 * + SUM( - - 52 ) * - + COUNT( ALL - 51 ) + - SUM( ALL - - 73 ) AS col1
----
-4413

skipif mysql # not compatible
query I rowsort label-2258
SELECT 28 + 84 * + SUM ( - - 52 ) * - + COUNT ( ALL - 51 ) + - SUM ( ALL - - 73 ) AS col1
----
-4413

onlyif mysql # aggregate syntax: 
query I rowsort label-2259
SELECT - - ( - + CASE + AVG ( DISTINCT + 3 ) WHEN 23 THEN NULL WHEN COUNT( DISTINCT + NULLIF ( 69, + 78 ) ) * + 75 * + - NULLIF ( - COUNT( * ), - 53 ) + + - 76 + 76 + + 83 THEN - 33 + COUNT( * ) WHEN + 50 THEN 98 * - 8 + + 42 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2259
SELECT - - ( - + CASE + AVG ( DISTINCT + 3 ) WHEN 23 THEN NULL WHEN COUNT ( DISTINCT + NULLIF ( 69, + 78 ) ) * + 75 * + - NULLIF ( - COUNT ( * ), - 53 ) + + - 76 + 76 + + 83 THEN - 33 + COUNT ( * ) WHEN + 50 THEN 98 * - 8 + + 42 END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2260
SELECT DISTINCT - CASE CAST( NULL AS SIGNED ) WHEN AVG ( ALL 40 ) THEN + 63 END + COALESCE ( - + 30, + + 49 + - COUNT( * ) / - - 27 * + NULLIF ( + 47, ( - ( - COALESCE ( - AVG ( ALL - 90 ), - COALESCE ( 40, 39 + - 3 ) + 89 ) ) ) - 64 ) / - 19 ) * + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-2260
SELECT DISTINCT - CASE CAST ( NULL AS INTEGER ) WHEN AVG ( ALL 40 ) THEN + 63 END + COALESCE ( - + 30, + + 49 + - COUNT ( * ) / - - 27 * + NULLIF ( + 47, ( - ( - COALESCE ( - AVG ( ALL - 90 ), - COALESCE ( 40, 39 + - 3 ) + 89 ) ) ) - 64 ) / - 19 ) * + 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2261
SELECT ALL 93 + + + 56 + - MIN( - - 33 ) * - 86 AS col0
----
2987

skipif mysql # not compatible
query I rowsort label-2261
SELECT ALL 93 + + + 56 + - MIN ( - - 33 ) * - 86 AS col0
----
2987

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2262
SELECT ALL + + COUNT( * ) * - - 61 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2262
SELECT ALL + + COUNT ( * ) * - - 61 * CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( 49, - 28 ) + - + 3 AS col0
----
46

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

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

query II rowsort
SELECT + 86 + - 90 + + + 20 AS col0, + 40
----
16
40

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2266
SELECT DISTINCT - 96 + - - AVG ( + CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2266
SELECT DISTINCT - 96 + - - AVG ( + CAST ( NULL AS REAL ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 15 + + - 93 AS col1
----
-78

query I rowsort
SELECT ( 20 ) - 40 * - 60
----
2420

query I rowsort
SELECT + 26 * + - 47
----
-1222

onlyif mysql # DIV for integer division: 
query I rowsort label-2270
SELECT DISTINCT 5 + - COALESCE ( - - 65, - 31 DIV + + 29 * - + COALESCE ( + 18, - 9, 58 ), 91 ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-2270
SELECT DISTINCT 5 + - COALESCE ( - - 65, - 31 / + + 29 * - + COALESCE ( + 18, - 9, 58 ), 91 ) AS col2
----
-60

query I rowsort
SELECT - 49 + + 62 * + 4
----
199

query II rowsort
SELECT ALL + 80 * + NULLIF ( - 78, + 71 - 7 ), - 29 col2
----
-6240
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT ALL - + 99 - - 18 + COUNT( + 31 ) + 44 * ( - - 32 ) * - - 64 * - - 61 * 79 AS col1
----
434249648

skipif mysql # not compatible
query I rowsort label-2273
SELECT ALL - + 99 - - 18 + COUNT ( + 31 ) + 44 * ( - - 32 ) * - - 64 * - - 61 * 79 AS col1
----
434249648

query I rowsort
SELECT DISTINCT + 63 * 11
----
693

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

skipif mysql # not compatible
query I rowsort label-2275
SELECT MIN ( ALL 30 )
----
30

query I rowsort
SELECT ALL 50 * + + 50
----
2500

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT CASE 85 WHEN - + 12 THEN - 78 + - - COUNT( * ) + 77 + + 18 END * + 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2277
SELECT CASE 85 WHEN - + 12 THEN - 78 + - - COUNT ( * ) + 77 + + 18 END * + 37 AS col1
----
NULL

query I rowsort
SELECT 96 * + - 17 AS col1
----
-1632

onlyif mysql # aggregate syntax: 
query II rowsort label-2279
SELECT ALL - COUNT( * ), 74 * - 20 AS col2
----
-1
-1480

skipif mysql # not compatible
query II rowsort label-2279
SELECT ALL - COUNT ( * ), 74 * - 20 AS col2
----
-1
-1480

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2281
SELECT - 24 * MAX( DISTINCT 79 ) * - 3 * 41 * 80 + CASE - 56 WHEN 74 THEN - 78 * + CASE + SUM( DISTINCT - - 84 ) WHEN - 78 THEN - - MAX( - + 83 ) WHEN ( + 10 ) THEN NULL END + COUNT( * ) END + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-2281
SELECT - 24 * MAX ( DISTINCT 79 ) * - 3 * 41 * 80 + CASE - 56 WHEN 74 THEN - 78 * + CASE + SUM ( DISTINCT - - 84 ) WHEN - 78 THEN - - MAX ( - + 83 ) WHEN ( + 10 ) THEN NULL END + COUNT ( * ) END + 75
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT MAX( ALL + + 20 ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-2283
SELECT MAX ( ALL + + 20 ) AS col0
----
20

query I rowsort
SELECT 86 * + 24 AS col1
----
2064

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

skipif mysql # not compatible
query I rowsort label-2285
SELECT COUNT ( * ) * - 51 / - 75 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2286
SELECT COUNT( * ) col1, CASE - 65 WHEN + 68 THEN NULL ELSE - - ( 90 ) DIV - + COALESCE ( - CASE + COALESCE ( 51, - CAST( NULL AS SIGNED ) * + - 5 + - ( - 60 ) + 76 + 44 + 78 * 95 ) WHEN 72 * - 30 THEN NULL ELSE 7 END, CAST( CAST( 20 AS SIGNED ) AS SIGNED ) + + 99 * ( 96 + - 30 ), 7 ) + - 67 + - 93 DIV + 2 END - - COUNT( * )
----
1
-100

skipif mysql # not compatible
query II rowsort label-2286
SELECT COUNT ( * ) col1, CASE - 65 WHEN + 68 THEN NULL ELSE - - ( 90 ) / - + COALESCE ( - CASE + COALESCE ( 51, - CAST ( NULL AS INTEGER ) * + - 5 + - ( - 60 ) + 76 + 44 + 78 * 95 ) WHEN 72 * - 30 THEN NULL ELSE 7 END, CAST ( CAST ( 20 AS INTEGER ) AS INTEGER ) + + 99 * ( 96 + - 30 ), 7 ) + - 67 + - 93 / + 2 END - - COUNT ( * )
----
1
-100

onlyif mysql # aggregate syntax: 
query II rowsort label-2287
SELECT + 33 AS col0, COUNT( DISTINCT + 50 ) AS col0
----
33
1

skipif mysql # not compatible
query II rowsort label-2287
SELECT + 33 AS col0, COUNT ( DISTINCT + 50 ) AS col0
----
33
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2288
SELECT DISTINCT COUNT( * ) DIV - 50 * + + 90 * - - 77
----
0

skipif mysql # not compatible
query I rowsort label-2288
SELECT DISTINCT COUNT ( * ) / - 50 * + + 90 * - - 77
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT ALL - SUM( + 39 ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-2289
SELECT ALL - SUM ( + 39 ) AS col0
----
-39

query I rowsort
SELECT ALL + 70 * - 51 AS col0
----
-3570

onlyif mysql # DIV for integer division: 
query II rowsort label-2291
SELECT 17 DIV - 61 AS col2, + 70 * - 19
----
0
-1330

skipif mysql # not compatible
query II rowsort label-2291
SELECT 17 / - 61 AS col2, + 70 * - 19
----
0
-1330

query I rowsort
SELECT ALL - 25 * - 87
----
2175

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT 35 * COUNT( * ) + + 28 AS col1
----
63

skipif mysql # not compatible
query I rowsort label-2294
SELECT 35 * COUNT ( * ) + + 28 AS col1
----
63

onlyif mysql # DIV for integer division: 
query II rowsort label-2295
SELECT - 0 * - + 28 DIV ( + 94 ), 30 AS col0
----
0
30

skipif mysql # not compatible
query II rowsort label-2295
SELECT - 0 * - + 28 / ( + 94 ), 30 AS col0
----
0
30

query I rowsort
SELECT - 25 + 61
----
36

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2298
SELECT ALL + NULLIF ( + 71, - 89 * + - 43 - + 28 * - + 98 / + 42 * + AVG ( ALL + 22 ) ) + + COUNT( * ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-2298
SELECT ALL + NULLIF ( + 71, - 89 * + - 43 - + 28 * - + 98 / + 42 * + AVG ( ALL + 22 ) ) + + COUNT ( * ) AS col0
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-2299
SELECT - - CASE - 58 WHEN - 58 THEN - 88 DIV + 44 END
----
-2

skipif mysql # not compatible
query I rowsort label-2299
SELECT - - CASE - 58 WHEN - 58 THEN - 88 / + 44 END
----
-2

query I rowsort
SELECT ALL - - 26 + - 96
----
-70

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

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

query I rowsort
SELECT ALL + 58 + - + 62 + 84 * - 10
----
-844

query I rowsort
SELECT DISTINCT - 0 + + - 52 * - + 23
----
1196

query I rowsort
SELECT ALL + 78 + + + 70
----
148

query I rowsort
SELECT + + 97 + + 96 col1
----
193

query II rowsort
SELECT - 88, 57 col2
----
-88
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2307
SELECT ALL + + NULLIF ( + - CAST( ( - COUNT( DISTINCT + 6 ) ) AS SIGNED ), 98 + 15 ) * - 51 + - 42 AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-2307
SELECT ALL + + NULLIF ( + - CAST ( ( - COUNT ( DISTINCT + 6 ) ) AS INTEGER ), 98 + 15 ) * - 51 + - 42 AS col1
----
-93

query II rowsort
SELECT - 10, - 6 + - - 52 AS col2
----
-10
46

query I rowsort
SELECT - 41 + 9 AS col1
----
-32

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2312
SELECT - CAST( - 7 AS SIGNED ) + - 13 * - 17 AS col2
----
228

skipif mysql # not compatible
query I rowsort label-2312
SELECT - CAST ( - 7 AS INTEGER ) + - 13 * - 17 AS col2
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT + COUNT( * ) - - 64 + - 12 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-2313
SELECT + COUNT ( * ) - - 64 + - 12 AS col2
----
53

query I rowsort
SELECT ALL 94 * 71
----
6674

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2315
SELECT - - 20 * + CAST( - COUNT( * ) AS SIGNED ) + + 98
----
78

skipif mysql # not compatible
query I rowsort label-2315
SELECT - - 20 * + CAST ( - COUNT ( * ) AS INTEGER ) + + 98
----
78

query I rowsort
SELECT ALL 7 - - 90
----
97

query II rowsort
SELECT + 61 AS col1, 87 * + - 47 + - + 68 AS col0
----
61
-4157

query I rowsort
SELECT DISTINCT - 23 - + 14 + + 53 AS col2
----
16

query I rowsort
SELECT DISTINCT 39 - 83 col2
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-2320
SELECT - COUNT( * ) + COALESCE ( 84, - - 60 ) + + 83 - COUNT( * ) * - - 13, 85 AS col1
----
153
85

skipif mysql # not compatible
query II rowsort label-2320
SELECT - COUNT ( * ) + COALESCE ( 84, - - 60 ) + + 83 - COUNT ( * ) * - - 13, 85 AS col1
----
153
85

onlyif mysql # DIV for integer division: 
query II rowsort label-2321
SELECT - 91 DIV - - 50, + 8 col1
----
-1
8

skipif mysql # not compatible
query II rowsort label-2321
SELECT - 91 / - - 50, + 8 col1
----
-1
8

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

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

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

query I rowsort
SELECT + 73 * - - ( + + 67 ) AS col1
----
4891

onlyif mysql # DIV for integer division: 
query I rowsort label-2325
SELECT + 45 DIV 26 + - 70 * + 4 AS col0
----
-279

skipif mysql # not compatible
query I rowsort label-2325
SELECT + 45 / 26 + - 70 * + 4 AS col0
----
-279

query II rowsort
SELECT ( - - 97 ), + 44 + + - 36 AS col0
----
97
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2327
SELECT ALL 55 * - + MIN( DISTINCT - 23 )
----
1265

skipif mysql # not compatible
query I rowsort label-2327
SELECT ALL 55 * - + MIN ( DISTINCT - 23 )
----
1265

query II rowsort
SELECT + 78 + 1 AS col2, 35
----
79
35

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

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

query I rowsort
SELECT + 54 + 85 * + 20 * - - 42 + - - 35 AS col2
----
71489

onlyif mysql # aggregate syntax: 
query I rowsort label-2331
SELECT ALL MAX( - 36 ) * + 39 AS col2
----
-1404

skipif mysql # not compatible
query I rowsort label-2331
SELECT ALL MAX ( - 36 ) * + 39 AS col2
----
-1404

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2332
SELECT - 7 DIV + COUNT( * ) + + 86 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-2332
SELECT - 7 / + COUNT ( * ) + + 86 AS col1
----
79

query II rowsort
SELECT NULLIF ( 61, 9 ) AS col2, 37
----
61
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2334
SELECT - 0 + - ( 33 ) * + 31 * + - 69 - + + 74 + + 58 * - - COUNT( * ) / - - 24 + + CAST( NULL AS SIGNED ) * - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-2334
SELECT - 0 + - ( 33 ) * + 31 * + - 69 - + + 74 + + 58 * - - COUNT ( * ) / - - 24 + + CAST ( NULL AS INTEGER ) * - 33
----
NULL

query II rowsort
SELECT - 77 + - + 66, - 18 AS col0
----
-143
-18

onlyif mysql # aggregate syntax: 
query III rowsort label-2336
SELECT DISTINCT + MIN( - 4 ) col2, + 87 + - 94 + + 65, + 87 AS col0
----
-4
58
87

skipif mysql # not compatible
query III rowsort label-2336
SELECT DISTINCT + MIN ( - 4 ) col2, + 87 + - 94 + + 65, + 87 AS col0
----
-4
58
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2337
SELECT ALL + + SUM( + CAST( NULL AS SIGNED ) ) * - 38 + 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2337
SELECT ALL + + SUM ( + CAST ( NULL AS INTEGER ) ) * - 38 + 34 AS col1
----
NULL

query I rowsort
SELECT ALL ( + 32 ) * 79 + + 11
----
2539

query I rowsort
SELECT - + 1 + - NULLIF ( 3, COALESCE ( + 35, 96 ) )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT DISTINCT - + 32 * - COUNT( * ) * + 52 - + 34
----
1630

skipif mysql # not compatible
query I rowsort label-2340
SELECT DISTINCT - + 32 * - COUNT ( * ) * + 52 - + 34
----
1630

query I rowsort
SELECT DISTINCT NULLIF ( + + 36, - 46 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2342
SELECT + 12 * COUNT( * ) - + 46
----
-34

skipif mysql # not compatible
query I rowsort label-2342
SELECT + 12 * COUNT ( * ) - + 46
----
-34

query I rowsort
SELECT - 81 * 84 AS col0
----
-6804

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2344
SELECT - ( - 3 ) + + - 50 * - CAST( + 40 AS SIGNED ) AS col2
----
2003

skipif mysql # not compatible
query I rowsort label-2344
SELECT - ( - 3 ) + + - 50 * - CAST ( + 40 AS INTEGER ) AS col2
----
2003

query I rowsort
SELECT - + COALESCE ( 33, + 11 * + + 0 ) * + 30 col0
----
-990

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2346
SELECT + + 44 * - CAST( - 56 AS SIGNED ) AS col2
----
2464

skipif mysql # not compatible
query I rowsort label-2346
SELECT + + 44 * - CAST ( - 56 AS INTEGER ) AS col2
----
2464

onlyif mysql # aggregate syntax: 
query I rowsort label-2347
SELECT ALL + + 28 * COUNT( * ) * + 4 * - + 29
----
-3248

skipif mysql # not compatible
query I rowsort label-2347
SELECT ALL + + 28 * COUNT ( * ) * + 4 * - + 29
----
-3248

onlyif mysql # DIV for integer division: 
query I rowsort label-2348
SELECT - 84 + - 5 DIV - ( - 41 ) col0
----
-84

skipif mysql # not compatible
query I rowsort label-2348
SELECT - 84 + - 5 / - ( - 41 ) col0
----
-84

query I rowsort
SELECT ALL 28 * + ( - 10 )
----
-280

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2350
SELECT - AVG ( CAST( NULL AS DECIMAL ) ) * 13
----
NULL

skipif mysql # not compatible
query I rowsort label-2350
SELECT - AVG ( CAST ( NULL AS REAL ) ) * 13
----
NULL

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

skipif mysql # not compatible
query II rowsort label-2351
SELECT - ( + - 32 ), + COUNT ( * ) col2
----
32
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT - ( 68 ) - - 13 * - 70 * + - 88 * - COUNT( * )
----
-80148

skipif mysql # not compatible
query I rowsort label-2352
SELECT - ( 68 ) - - 13 * - 70 * + - 88 * - COUNT ( * )
----
-80148

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT DISTINCT - 15 * SUM( ALL 30 ) * + ( + 64 ) AS col0
----
-28800

skipif mysql # not compatible
query I rowsort label-2353
SELECT DISTINCT - 15 * SUM ( ALL 30 ) * + ( + 64 ) AS col0
----
-28800

query I rowsort
SELECT - 67 - 26 AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT - 85 * + NULLIF ( - - MIN( DISTINCT + 31 ), - 57 + + - 42 * + - 50 ) AS col2
----
-2635

skipif mysql # not compatible
query I rowsort label-2355
SELECT - 85 * + NULLIF ( - - MIN ( DISTINCT + 31 ), - 57 + + - 42 * + - 50 ) AS col2
----
-2635

query I rowsort
SELECT + 91 + + + 78 AS col1
----
169

query I rowsort
SELECT DISTINCT 14 * - + 67
----
-938

query I rowsort
SELECT DISTINCT - 15 * + + 3
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-2359
SELECT DISTINCT - 14 DIV + 80 + 25
----
25

skipif mysql # not compatible
query I rowsort label-2359
SELECT DISTINCT - 14 / + 80 + 25
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2360
SELECT + 13 - COUNT( * ) DIV - - 80
----
13

skipif mysql # not compatible
query I rowsort label-2360
SELECT + 13 - COUNT ( * ) / - - 80
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-2361
SELECT ALL 1 DIV 51 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2361
SELECT ALL 1 / 51 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2362
SELECT 21 DIV 70
----
0

skipif mysql # not compatible
query I rowsort label-2362
SELECT 21 / 70
----
0

query I rowsort
SELECT 92 * - 19 AS col0
----
-1748

query I rowsort
SELECT 27 * 33 * 80
----
71280

query II rowsort
SELECT + 87, - 64 AS col0
----
87
-64

query II rowsort
SELECT 48 AS col2, + ( + + 53 )
----
48
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2367
SELECT ALL ( COUNT( * ) ) + + COUNT( * ) + - 29 DIV + + 60 + 78 + - 74 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-2367
SELECT ALL ( COUNT ( * ) ) + + COUNT ( * ) + - 29 / + + 60 + 78 + - 74 AS col1
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2368
SELECT COUNT( * ) DIV + - 18 * ( + - 13 ) * 15
----
0

skipif mysql # not compatible
query I rowsort label-2368
SELECT COUNT ( * ) / + - 18 * ( + - 13 ) * 15
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2370
SELECT DISTINCT NULLIF ( ( - + 79 ), + 76 / 98 + - 48 * - NULLIF ( + - COUNT( * ), + 87 ) + - + ( + - 72 ) + + 14 + 67 + 28 * ( - 24 ) * + 56 ) * + + 30 * 45
----
-106650

skipif mysql # not compatible
query I rowsort label-2370
SELECT DISTINCT NULLIF ( ( - + 79 ), + 76 / 98 + - 48 * - NULLIF ( + - COUNT ( * ), + 87 ) + - + ( + - 72 ) + + 14 + 67 + 28 * ( - 24 ) * + 56 ) * + + 30 * 45
----
-106650

onlyif mysql # aggregate syntax: 
query I rowsort label-2371
SELECT DISTINCT COUNT( * ) + 96 + + ( - 20 ) + 48 AS col0
----
125

skipif mysql # not compatible
query I rowsort label-2371
SELECT DISTINCT COUNT ( * ) + 96 + + ( - 20 ) + 48 AS col0
----
125

query II rowsort
SELECT + 66 AS col1, - 88 * + 58 AS col2
----
66
-5104

query I rowsort
SELECT ALL 99 + + 52 + - + 15 AS col2
----
136

onlyif mysql # aggregate syntax: 
query II rowsort label-2374
SELECT DISTINCT + ( - COUNT( * ) ) + - 44 col1, - 58 * + + 72
----
-45
-4176

skipif mysql # not compatible
query II rowsort label-2374
SELECT DISTINCT + ( - COUNT ( * ) ) + - 44 col1, - 58 * + + 72
----
-45
-4176

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2375
SELECT ALL - CAST( NULL AS SIGNED ) - + 31 + - 91 AS col2, 36
----
NULL
36

skipif mysql # not compatible
query II rowsort label-2375
SELECT ALL - CAST ( NULL AS INTEGER ) - + 31 + - 91 AS col2, 36
----
NULL
36

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

query I rowsort
SELECT DISTINCT + 8 * - 89
----
-712

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

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

query II rowsort
SELECT - 0 AS col1, 43
----
0
43

query I rowsort
SELECT 85 + - ( - 93 ) AS col0
----
178

query II rowsort
SELECT + 79 * + 10 + + 49 AS col1, - 48
----
839
-48

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2382
SELECT ( - + 9 ) + + COUNT( * ) + + 56 * + 68 + + 55 + + 18 * CAST( NULL AS DECIMAL ) * - + 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2382
SELECT ( - + 9 ) + + COUNT ( * ) + + 56 * + 68 + + 55 + + 18 * CAST ( NULL AS REAL ) * - + 12 AS col2
----
NULL

query I rowsort
SELECT - - 75 col1
----
75

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

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

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

skipif mysql # not compatible
query I rowsort label-2385
SELECT - 46 + + COUNT ( * ) AS col2
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-2386
SELECT DISTINCT 33 DIV - - 43
----
0

skipif mysql # not compatible
query I rowsort label-2386
SELECT DISTINCT 33 / - - 43
----
0

query I rowsort
SELECT 31 * - + 14 AS col0
----
-434

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2390
SELECT ( + 9 ) + - CASE + 70 WHEN - 84 / - 47 * + 73 THEN - COALESCE ( MIN( 52 ), - 73 ) * + 84 ELSE 96 END * + + 63 * - 53 + - + ( + - CAST( - 96 AS SIGNED ) )
----
320457

skipif mysql # not compatible
query I rowsort label-2390
SELECT ( + 9 ) + - CASE + 70 WHEN - 84 / - 47 * + 73 THEN - COALESCE ( MIN ( 52 ), - 73 ) * + 84 ELSE 96 END * + + 63 * - 53 + - + ( + - CAST ( - 96 AS INTEGER ) )
----
320457

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2392
SELECT 76 DIV - + 91
----
0

skipif mysql # not compatible
query I rowsort label-2392
SELECT 76 / - + 91
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2393
SELECT 12 * - + CASE 10 WHEN + 8 / 42 + - 21 * 84 + + 0 + - 67 / + 24 + CAST( NULL AS SIGNED ) * - 11 * + + 29 + - 0 THEN + - 9 - - 48 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2393
SELECT 12 * - + CASE 10 WHEN + 8 / 42 + - 21 * 84 + + 0 + - 67 / + 24 + CAST ( NULL AS INTEGER ) * - 11 * + + 29 + - 0 THEN + - 9 - - 48 END
----
NULL

query I rowsort
SELECT 15 + + 32 AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2395
SELECT ALL - COUNT( * ) + - MIN( + 60 )
----
-61

skipif mysql # not compatible
query I rowsort label-2395
SELECT ALL - COUNT ( * ) + - MIN ( + 60 )
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-2396
SELECT 2 DIV - 61
----
0

skipif mysql # not compatible
query I rowsort label-2396
SELECT 2 / - 61
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT 5 + - COUNT( * ) + + 25 + + 44
----
73

skipif mysql # not compatible
query I rowsort label-2397
SELECT 5 + - COUNT ( * ) + + 25 + + 44
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2398
SELECT DISTINCT + COUNT( 62 ) + - COUNT( * ) * + 19 * - - 22 / - + COUNT( * ) * CASE + 36 WHEN + + COUNT( * ) * + CAST( NULL AS SIGNED ) THEN - - COUNT( * ) / - - SUM( - CAST( NULL AS SIGNED ) ) * - 99 + - 65 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2398
SELECT DISTINCT + COUNT ( 62 ) + - COUNT ( * ) * + 19 * - - 22 / - + COUNT ( * ) * CASE + 36 WHEN + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) THEN - - COUNT ( * ) / - - SUM ( - CAST ( NULL AS INTEGER ) ) * - 99 + - 65 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 43 + 9 * + 20 + + 11 - + 24 * - 90 AS col0
----
2394

query I rowsort
SELECT ALL + 39 + + 19 * 81 * + ( - 79 ) AS col0
----
-121542

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2401
SELECT 92 + + 98, - CAST( NULL AS SIGNED ) + - CAST( - - ( - 94 ) AS SIGNED ) col0
----
190
NULL

skipif mysql # not compatible
query II rowsort label-2401
SELECT 92 + + 98, - CAST ( NULL AS INTEGER ) + - CAST ( - - ( - 94 ) AS INTEGER ) col0
----
190
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2402
SELECT 39 * - CASE 22 WHEN - COUNT( * ) * - 91 * 53 / NULLIF ( - CASE + + 90 WHEN + 45 THEN - - 82 END, + 56 * 33 ) * + - 57 THEN + - SUM( ALL - 69 ) / 8 END / + 91 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2402
SELECT 39 * - CASE 22 WHEN - COUNT ( * ) * - 91 * 53 / NULLIF ( - CASE + + 90 WHEN + 45 THEN - - 82 END, + 56 * 33 ) * + - 57 THEN + - SUM ( ALL - 69 ) / 8 END / + 91 + - COUNT ( * )
----
NULL

query I rowsort
SELECT 37 * ( + 85 )
----
3145

query I rowsort
SELECT - 48 * 29 + + 41 AS col0
----
-1351

query I rowsort
SELECT ALL + 49 * 78 * - 88
----
-336336

onlyif mysql # aggregate syntax: 
query I rowsort label-2406
SELECT ALL + COUNT( * ) - - - 97 + + 5
----
-91

skipif mysql # not compatible
query I rowsort label-2406
SELECT ALL + COUNT ( * ) - - - 97 + + 5
----
-91

query I rowsort
SELECT + 36 * 51 * + + 44
----
80784

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2409
SELECT DISTINCT COUNT( * ) - - 20 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-2409
SELECT DISTINCT COUNT ( * ) - - 20 AS col1
----
21

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

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

query I rowsort
SELECT + - NULLIF ( - 15, - + 60 * 33 - - 39 ) AS col1
----
15

query I rowsort
SELECT - 36 * 83 - - + 82 + - 92 + 90
----
-2908

query I rowsort
SELECT 30 * COALESCE ( 82, - 99 ) * 48 * - + 75
----
-8856000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2414
SELECT - NULLIF ( + 23, + 88 * - - 14 + - COALESCE ( + 15, + ( + 55 ) + + + 50 - 69 + - - 54 ) ) * - CAST( - - 75 AS DECIMAL ) / + CASE + 59 WHEN - CAST( NULL AS SIGNED ) - + SUM( + 52 ) THEN NULL WHEN - 45 THEN MIN( DISTINCT + 71 ) END / - CASE + COUNT( * ) WHEN 35 * 19 THEN 67 + + 6 END + NULLIF ( 83, - AVG ( DISTINCT + 75 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2414
SELECT - NULLIF ( + 23, + 88 * - - 14 + - COALESCE ( + 15, + ( + 55 ) + + + 50 - 69 + - - 54 ) ) * - CAST ( - - 75 AS REAL ) / + CASE + 59 WHEN - CAST ( NULL AS INTEGER ) - + SUM ( + 52 ) THEN NULL WHEN - 45 THEN MIN ( DISTINCT + 71 ) END / - CASE + COUNT ( * ) WHEN 35 * 19 THEN 67 + + 6 END + NULLIF ( 83, - AVG ( DISTINCT + 75 ) ) AS col1
----
NULL

query I rowsort
SELECT ALL 60 * - 96 * + 68 * + 30
----
-11750400

onlyif mysql # DIV for integer division: 
query II rowsort label-2416
SELECT ALL + 27 DIV - 60 AS col1, - 81
----
0
-81

skipif mysql # not compatible
query II rowsort label-2416
SELECT ALL + 27 / - 60 AS col1, - 81
----
0
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2417
SELECT - MAX( - - 17 ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-2417
SELECT - MAX ( - - 17 ) AS col0
----
-17

query I rowsort
SELECT + 52 * - ( + + 16 )
----
-832

onlyif mysql # aggregate syntax: 
query I rowsort label-2419
SELECT DISTINCT - 36 * CASE 50 WHEN - - 47 THEN - 36 WHEN + + 46 THEN NULL ELSE COUNT( + 47 ) END AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-2419
SELECT DISTINCT - 36 * CASE 50 WHEN - - 47 THEN - 36 WHEN + + 46 THEN NULL ELSE COUNT ( + 47 ) END AS col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2420
SELECT ALL MIN( DISTINCT - 99 ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-2420
SELECT ALL MIN ( DISTINCT - 99 ) AS col2
----
-99

query I rowsort
SELECT + 70 * - NULLIF ( 6, + 95 + - 10 ) + 67
----
-353

query I rowsort
SELECT - 19 + - 54
----
-73

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2424
SELECT + 37 * ( - - 36 ) * - 23 + CASE + CASE - ( - 82 ) WHEN + 15 THEN NULL WHEN - 29 THEN + COUNT( * ) / - COUNT( * ) + 14 * 20 END WHEN - + CAST( - SUM( - 38 ) AS SIGNED ) THEN NULL WHEN - 61 THEN - 93 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2424
SELECT + 37 * ( - - 36 ) * - 23 + CASE + CASE - ( - 82 ) WHEN + 15 THEN NULL WHEN - 29 THEN + COUNT ( * ) / - COUNT ( * ) + 14 * 20 END WHEN - + CAST ( - SUM ( - 38 ) AS INTEGER ) THEN NULL WHEN - 61 THEN - 93 END
----
NULL

query I rowsort
SELECT 38 + + - 49
----
-11

query I rowsort
SELECT 2 + + 77 * + + 14 * - - 1 col1
----
1080

query II rowsort
SELECT ALL + 43 * + 90 * 90 AS col2, 65 AS col0
----
348300
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT - 32 + - COUNT( * ) + - SUM( ALL 30 )
----
-63

skipif mysql # not compatible
query I rowsort label-2428
SELECT - 32 + - COUNT ( * ) + - SUM ( ALL 30 )
----
-63

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

skipif mysql # not compatible
query I rowsort label-2429
SELECT ALL COUNT ( * ) + + + 67 / - - 82 AS col0
----
1

query I rowsort
SELECT + ( ( + - 67 ) ) - + 91 AS col1
----
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-2431
SELECT DISTINCT SUM( - - 91 )
----
91

skipif mysql # not compatible
query I rowsort label-2431
SELECT DISTINCT SUM ( - - 91 )
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2432
SELECT - 65 DIV + + 34 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2432
SELECT - 65 / + + 34 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2433
SELECT DISTINCT CASE - 80 WHEN + 5 + 33 THEN NULL WHEN + 28 THEN - COALESCE ( - AVG ( 81 ), - 72, - 41 + - 47 - + - ( 59 ) * + + 83 ) * - - COUNT( - + 34 ) + - COUNT( * ) / MAX( + 39 ) END - + 14 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2433
SELECT DISTINCT CASE - 80 WHEN + 5 + 33 THEN NULL WHEN + 28 THEN - COALESCE ( - AVG ( 81 ), - 72, - 41 + - 47 - + - ( 59 ) * + + 83 ) * - - COUNT ( - + 34 ) + - COUNT ( * ) / MAX ( + 39 ) END - + 14 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2434
SELECT COALESCE ( 82, CAST( NULL AS SIGNED ) * + 27 + 71 ) AS col1, + MIN( ALL - 73 ) AS col1
----
82
-73

skipif mysql # not compatible
query II rowsort label-2434
SELECT COALESCE ( 82, CAST ( NULL AS INTEGER ) * + 27 + 71 ) AS col1, + MIN ( ALL - 73 ) AS col1
----
82
-73

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

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

query I rowsort
SELECT + 88 * 49 AS col0
----
4312

query II rowsort
SELECT + 51 col2, - ( + 24 ) AS col1
----
51
-24

query I rowsort
SELECT - 34 * + + 5 * - + 69 AS col0
----
11730

onlyif mysql # aggregate syntax: 
query I rowsort label-2439
SELECT ALL + - 13 * - 53 * - - ( + CASE - 35 WHEN 79 THEN + 88 * - - 60 * 85 - 98 + - + 47 * - + 92 * + - 99 WHEN COUNT( * ) THEN NULL WHEN + 76 + 4 * + 37 THEN NULL ELSE - + NULLIF ( COUNT( * ), 19 ) END ) col2
----
-689

skipif mysql # not compatible
query I rowsort label-2439
SELECT ALL + - 13 * - 53 * - - ( + CASE - 35 WHEN 79 THEN + 88 * - - 60 * 85 - 98 + - + 47 * - + 92 * + - 99 WHEN COUNT ( * ) THEN NULL WHEN + 76 + 4 * + 37 THEN NULL ELSE - + NULLIF ( COUNT ( * ), 19 ) END ) col2
----
-689

onlyif mysql # aggregate syntax: 
query I rowsort label-2440
SELECT - - 37 * - - 86 - - - 0 + COUNT( * )
----
3183

skipif mysql # not compatible
query I rowsort label-2440
SELECT - - 37 * - - 86 - - - 0 + COUNT ( * )
----
3183

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2442
SELECT + - NULLIF ( - 94, - 36 * COUNT( * ) ) * - COALESCE ( - COUNT( * ), 67 * 11 + - ( - NULLIF ( + + 56, - 25 * - COUNT( * ) ) ) + + 81 + - - 36 ) * + 95
----
8930

skipif mysql # not compatible
query I rowsort label-2442
SELECT + - NULLIF ( - 94, - 36 * COUNT ( * ) ) * - COALESCE ( - COUNT ( * ), 67 * 11 + - ( - NULLIF ( + + 56, - 25 * - COUNT ( * ) ) ) + + 81 + - - 36 ) * + 95
----
8930

onlyif mysql # aggregate syntax: 
query II rowsort label-2443
SELECT + + 87 * - 71 + - - 24 + + - COUNT( * ) * - 54 AS col1, + 10 AS col0
----
-6099
10

skipif mysql # not compatible
query II rowsort label-2443
SELECT + + 87 * - 71 + - - 24 + + - COUNT ( * ) * - 54 AS col1, + 10 AS col0
----
-6099
10

query II rowsort
SELECT - 8 + + 37 + + 45 AS col0, + 59
----
74
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT - COUNT( * ) + + + 93 + + 38 AS col0
----
130

skipif mysql # not compatible
query I rowsort label-2445
SELECT - COUNT ( * ) + + + 93 + + 38 AS col0
----
130

query I rowsort
SELECT + 91 * - + 12 AS col2
----
-1092

query I rowsort
SELECT + - 85 + - 61
----
-146

query I rowsort
SELECT DISTINCT - 56 + + 88 * + 99
----
8656

query I rowsort
SELECT 84 * + - 65 + - 0 AS col0
----
-5460

query I rowsort
SELECT - NULLIF ( + 0, - 95 )
----
0

query II rowsort
SELECT ALL 38 + + 68 AS col1, - 10
----
106
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT ALL COUNT( DISTINCT 87 ) + + 83 AS col2
----
84

skipif mysql # not compatible
query I rowsort label-2452
SELECT ALL COUNT ( DISTINCT 87 ) + + 83 AS col2
----
84

query I rowsort
SELECT - ( 11 ) * 23 + - + 73 + 46
----
-280

query I rowsort
SELECT + 55 + - 24 AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT + COUNT( - - 57 ) + 48
----
49

skipif mysql # not compatible
query I rowsort label-2455
SELECT + COUNT ( - - 57 ) + 48
----
49

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

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

query I rowsort
SELECT ALL ( - 78 ) - + 54 AS col0
----
-132

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

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

query I rowsort
SELECT + 24 * + + 20
----
480

query I rowsort
SELECT + 1 + + - 84
----
-83

query I rowsort
SELECT ALL NULLIF ( + 57, 93 ) AS col2
----
57

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2463
SELECT ALL CAST( + 11 AS SIGNED ) - AVG ( ALL - CAST( NULL AS SIGNED ) ) * - 64 + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2463
SELECT ALL CAST ( + 11 AS INTEGER ) - AVG ( ALL - CAST ( NULL AS INTEGER ) ) * - 64 + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2464
SELECT + 89 * - - MAX( ALL + 78 ) AS col1
----
6942

skipif mysql # not compatible
query I rowsort label-2464
SELECT + 89 * - - MAX ( ALL + 78 ) AS col1
----
6942

query I rowsort
SELECT + 6 + - 39 col2
----
-33

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2467
SELECT ALL + 0 AS col2, 46 DIV + 26 * COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-2467
SELECT ALL + 0 AS col2, 46 / + 26 * COUNT ( * )
----
0
1

query I rowsort
SELECT - 46 * - 91 + + + 56 AS col1
----
4242

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2469
SELECT - - 52 - + 39 - + 75 DIV + - 45 + + 76 - + 12 DIV MIN( - + 34 ) * + - MAX( DISTINCT + - 58 ) * + ( SUM( + 38 ) ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-2469
SELECT - - 52 - + 39 - + 75 / + - 45 + + 76 - + 12 / MIN ( - + 34 ) * + - MAX ( DISTINCT + - 58 ) * + ( SUM ( + 38 ) ) AS col0
----
90

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2470
SELECT - ( CAST( + 43 AS SIGNED ) ) DIV + 89 * + 54 + + - 75 + + ( 20 ) * - 39, + 53 * + 11 + - 42 AS col0
----
-855
541

skipif mysql # not compatible
query II rowsort label-2470
SELECT - ( CAST ( + 43 AS INTEGER ) ) / + 89 * + 54 + + - 75 + + ( 20 ) * - 39, + 53 * + 11 + - 42 AS col0
----
-855
541

onlyif mysql # aggregate syntax: 
query I rowsort label-2471
SELECT - + MIN( ALL + - 28 ) * + + 27 AS col2
----
756

skipif mysql # not compatible
query I rowsort label-2471
SELECT - + MIN ( ALL + - 28 ) * + + 27 AS col2
----
756

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2472
SELECT + COALESCE ( - + NULLIF ( + 3, + + COUNT( * ) * 8 ), + 33 * - 2 * 58 + - 64 * + 7, + ( 62 ) ) DIV + - CAST( + 12 AS SIGNED ) + 74
----
74

skipif mysql # not compatible
query I rowsort label-2472
SELECT + COALESCE ( - + NULLIF ( + 3, + + COUNT ( * ) * 8 ), + 33 * - 2 * 58 + - 64 * + 7, + ( 62 ) ) / + - CAST ( + 12 AS INTEGER ) + 74
----
74

query I rowsort
SELECT DISTINCT 54 * - 23 AS col0
----
-1242

query I rowsort
SELECT - - 91 + + + 32 * + + 37 - - 70 + 76 * 50 * + 0 * - 20 AS col1
----
1345

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2475
SELECT - COALESCE ( + + 85, - 26, + 22 + - + ( + 38 ) ) + + 13 DIV + + 55 + CASE - + 83 WHEN CAST( + + CAST( + 54 AS SIGNED ) AS SIGNED ) THEN NULL ELSE 96 * + 33 END col1
----
3083

skipif mysql # not compatible
query I rowsort label-2475
SELECT - COALESCE ( + + 85, - 26, + 22 + - + ( + 38 ) ) + + 13 / + + 55 + CASE - + 83 WHEN CAST ( + + CAST ( + 54 AS INTEGER ) AS INTEGER ) THEN NULL ELSE 96 * + 33 END col1
----
3083

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2476
SELECT SUM( DISTINCT - 4 ) / + CAST( NULL AS DECIMAL ) + 26 AS col1, 90 * + 18 col2
----
NULL
1620

skipif mysql # not compatible
query II rowsort label-2476
SELECT SUM ( DISTINCT - 4 ) / + CAST ( NULL AS REAL ) + 26 AS col1, 90 * + 18 col2
----
NULL
1620

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2477
SELECT ALL + 27, - 85 + + CAST( NULL AS SIGNED ) AS col0
----
27
NULL

skipif mysql # not compatible
query II rowsort label-2477
SELECT ALL + 27, - 85 + + CAST ( NULL AS INTEGER ) AS col0
----
27
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2478
SELECT ALL 93 / - + SUM( - - 81 ) + - 75 * + + COUNT( * ) + - + CAST( NULL AS SIGNED ) + - COALESCE ( 74, + 57, - 78 + + - 44, + 4 + NULLIF ( + 20, COUNT( * ) ) ) - + + 12 + + 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2478
SELECT ALL 93 / - + SUM ( - - 81 ) + - 75 * + + COUNT ( * ) + - + CAST ( NULL AS INTEGER ) + - COALESCE ( 74, + 57, - 78 + + - 44, + 4 + NULLIF ( + 20, COUNT ( * ) ) ) - + + 12 + + 6 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2479
SELECT - + 75 + 72 * + 53 * - 5, + COALESCE ( + 6, - MIN( ALL 88 ) - 45 - - - 21 DIV + 70, MAX( DISTINCT 97 ) * + - ( - + COUNT( ALL - 81 ) ) ) - + + 51 AS col2
----
-19155
-45

skipif mysql # not compatible
query II rowsort label-2479
SELECT - + 75 + 72 * + 53 * - 5, + COALESCE ( + 6, - MIN ( ALL 88 ) - 45 - - - 21 / + 70, MAX ( DISTINCT 97 ) * + - ( - + COUNT ( ALL - 81 ) ) ) - + + 51 AS col2
----
-19155
-45

query I rowsort
SELECT + NULLIF ( 18, 41 ) AS col2
----
18

query I rowsort
SELECT + + CASE - + 54 WHEN + ( + 3 ) THEN + 62 WHEN + 14 THEN 75 ELSE + 49 END
----
49

query I rowsort
SELECT - + 15 * - 42 col2
----
630

query II rowsort
SELECT ALL + 96 AS col0, 52 AS col2
----
96
52

query I rowsort
SELECT DISTINCT + 93 + 12
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-2485
SELECT 15 DIV + - 42
----
0

skipif mysql # not compatible
query I rowsort label-2485
SELECT 15 / + - 42
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2486
SELECT ALL - CASE - - 44 WHEN + - CAST( - - 66 AS SIGNED ) * - ( 43 ) - + COUNT( * ) THEN NULL WHEN - NULLIF ( + - 94, + + NULLIF ( + 0, + - 57 + - COUNT( - 16 ) ) ) THEN + 90 * + + 34 * - - 0 + + COUNT( * ) WHEN - 92 THEN NULL ELSE NULL END + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2486
SELECT ALL - CASE - - 44 WHEN + - CAST ( - - 66 AS INTEGER ) * - ( 43 ) - + COUNT ( * ) THEN NULL WHEN - NULLIF ( + - 94, + + NULLIF ( + 0, + - 57 + - COUNT ( - 16 ) ) ) THEN + 90 * + + 34 * - - 0 + + COUNT ( * ) WHEN - 92 THEN NULL ELSE NULL END + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2487
SELECT 4 DIV + 44 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2487
SELECT 4 / + 44 AS col1
----
0

query I rowsort
SELECT 11 * + + 87
----
957

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2489
SELECT ALL ( - + 58 ) - - - MAX( DISTINCT - 60 ) + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2489
SELECT ALL ( - + 58 ) - - - MAX ( DISTINCT - 60 ) + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2490
SELECT DISTINCT - 26 DIV - 50, 11 AS col0
----
0
11

skipif mysql # not compatible
query II rowsort label-2490
SELECT DISTINCT - 26 / - 50, 11 AS col0
----
0
11

query I rowsort
SELECT 30 - + 10
----
20

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

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

query I rowsort
SELECT DISTINCT 22 * 50 AS col0
----
1100

onlyif mysql # aggregate syntax: 
query II rowsort label-2494
SELECT ALL MIN( + 8 ) + + + 0 AS col0, 52
----
8
52

skipif mysql # not compatible
query II rowsort label-2494
SELECT ALL MIN ( + 8 ) + + + 0 AS col0, 52
----
8
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2495
SELECT MAX( ALL + 8 ) * - + 1 - ( 38 ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-2495
SELECT MAX ( ALL + 8 ) * - + 1 - ( 38 ) AS col2
----
-46

query I rowsort
SELECT DISTINCT - NULLIF ( 81, + 2 ) * + 10 col0
----
-810

onlyif mysql # aggregate syntax: 
query II rowsort label-2497
SELECT + + CASE 17 WHEN + SUM( DISTINCT + + 1 ) THEN 98 * + 55 * + 36 END, + 79 AS col0
----
NULL
79

skipif mysql # not compatible
query II rowsort label-2497
SELECT + + CASE 17 WHEN + SUM ( DISTINCT + + 1 ) THEN 98 * + 55 * + 36 END, + 79 AS col0
----
NULL
79

onlyif mysql # aggregate syntax: 
query II rowsort label-2498
SELECT ALL - 15 + + 89 AS col1, COALESCE ( + 66, COUNT( * ), + 37 ) * - - COUNT( * ) col0
----
74
66

skipif mysql # not compatible
query II rowsort label-2498
SELECT ALL - 15 + + 89 AS col1, COALESCE ( + 66, COUNT ( * ), + 37 ) * - - COUNT ( * ) col0
----
74
66

query I rowsort
SELECT ALL + + 41 + + + 62 * + 59 AS col1
----
3699

query I rowsort
SELECT DISTINCT - 96 + + + 13 * - 4 * - + 52 AS col1
----
2608

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2501
SELECT ALL - - CAST( + CASE + NULLIF ( + MIN( + + 44 ), + COUNT( * ) ) WHEN + 93 THEN - 65 WHEN - MAX( DISTINCT + + 4 ) - - CASE + + COUNT( ALL - + ( + 53 ) ) WHEN + + COUNT( * ) + NULLIF ( - 35, 15 ) THEN NULL ELSE + 86 END THEN - COALESCE ( 16, + 99, - 16 ) - 6 ELSE - 95 END AS SIGNED )
----
-95

skipif mysql # not compatible
query I rowsort label-2501
SELECT ALL - - CAST ( + CASE + NULLIF ( + MIN ( + + 44 ), + COUNT ( * ) ) WHEN + 93 THEN - 65 WHEN - MAX ( DISTINCT + + 4 ) - - CASE + + COUNT ( ALL - + ( + 53 ) ) WHEN + + COUNT ( * ) + NULLIF ( - 35, 15 ) THEN NULL ELSE + 86 END THEN - COALESCE ( 16, + 99, - 16 ) - 6 ELSE - 95 END AS INTEGER )
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2502
SELECT 23 * + COUNT( * ) + + + NULLIF ( + 15, + COUNT( * ) ) - - 14 + 80 DIV 57
----
53

skipif mysql # not compatible
query I rowsort label-2502
SELECT 23 * + COUNT ( * ) + + + NULLIF ( + 15, + COUNT ( * ) ) - - 14 + 80 / 57
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2503
SELECT CAST( NULL AS SIGNED ) * + NULLIF ( - 53, - 47 ) + - 0 - + 86 - 92 + - - 51 * - 98 + + 80 + 67, 50 AS col0
----
NULL
50

skipif mysql # not compatible
query II rowsort label-2503
SELECT CAST ( NULL AS INTEGER ) * + NULLIF ( - 53, - 47 ) + - 0 - + 86 - 92 + - - 51 * - 98 + + 80 + 67, 50 AS col0
----
NULL
50

onlyif mysql # DIV for integer division: 
query I rowsort label-2504
SELECT 30 - - ( + 3 ) DIV + 51 col0
----
30

skipif mysql # not compatible
query I rowsort label-2504
SELECT 30 - - ( + 3 ) / + 51 col0
----
30

query I rowsort
SELECT - 83 * + - ( ( + 87 ) ) * + 41 - + 36 + + CASE + 2 WHEN - 56 THEN + 53 ELSE NULL END / + + 41 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT 14 + - COALESCE ( - 55, 69 + - - COUNT( * ) + 21 ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-2506
SELECT 14 + - COALESCE ( - 55, 69 + - - COUNT ( * ) + 21 ) AS col0
----
69

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

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

query I rowsort
SELECT 20 * 63
----
1260

query II rowsort
SELECT ALL 17 AS col0, 29
----
17
29

query I rowsort
SELECT DISTINCT - COALESCE ( 97, - 42 ) * - - 88
----
-8536

onlyif mysql # aggregate syntax: 
query I rowsort label-2511
SELECT 39 + - COUNT( + ( + - 91 ) ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-2511
SELECT 39 + - COUNT ( + ( + - 91 ) ) AS col2
----
38

query I rowsort
SELECT 26 + + + 44 AS col2
----
70

query II rowsort
SELECT - 35, 16 col2
----
-35
16

query II rowsort
SELECT - 36 AS col2, + 37 * 11 + - 18 * + 66
----
-36
-781

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2515
SELECT DISTINCT - 77 DIV - COUNT( ALL + 9 ) col2, + ( - 2 )
----
77
-2

skipif mysql # not compatible
query II rowsort label-2515
SELECT DISTINCT - 77 / - COUNT ( ALL + 9 ) col2, + ( - 2 )
----
77
-2

query II rowsort
SELECT ALL 29 * - + 53 * + 63 AS col2, + ( - 41 )
----
-96831
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2517
SELECT ALL - MAX( + 27 ) DIV - 23
----
1

skipif mysql # not compatible
query I rowsort label-2517
SELECT ALL - MAX ( + 27 ) / - 23
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2518
SELECT DISTINCT - 32 + MIN( + 48 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2518
SELECT DISTINCT - 32 + MIN ( + 48 ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 15 + - - 26 AS col1
----
41

query I rowsort
SELECT - + NULLIF ( + - 60, - 25 * 76 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT ALL - 19 + - COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-2521
SELECT ALL - 19 + - COUNT ( * )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2522
SELECT + 47 + MIN( ALL + 9 )
----
56

skipif mysql # not compatible
query I rowsort label-2522
SELECT + 47 + MIN ( ALL + 9 )
----
56

query I rowsort
SELECT 20 - + 25
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2524
SELECT + CASE COUNT( * ) WHEN - 34 THEN NULL WHEN + CASE COALESCE ( + + 35, 12, - 71 ) WHEN COUNT( * ) THEN + 40 WHEN - 0 THEN + 45 / NULLIF ( - 59, + 56 * - COUNT( * ) + 14 ) + 9 + - 63 - - + ( + + NULLIF ( + 68, 18 ) ) * CASE ( 97 ) WHEN - 78 * SUM( ALL - 55 ) + CAST( + 3 AS SIGNED ) THEN ( 9 ) WHEN 89 THEN NULL ELSE NULL END * MIN( 22 ) ELSE + 2 END THEN 81 + + ( - 94 ) * 29 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2524
SELECT + CASE COUNT ( * ) WHEN - 34 THEN NULL WHEN + CASE COALESCE ( + + 35, 12, - 71 ) WHEN COUNT ( * ) THEN + 40 WHEN - 0 THEN + 45 / NULLIF ( - 59, + 56 * - COUNT ( * ) + 14 ) + 9 + - 63 - - + ( + + NULLIF ( + 68, 18 ) ) * CASE ( 97 ) WHEN - 78 * SUM ( ALL - 55 ) + CAST ( + 3 AS INTEGER ) THEN ( 9 ) WHEN 89 THEN NULL ELSE NULL END * MIN ( 22 ) ELSE + 2 END THEN 81 + + ( - 94 ) * 29 END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2525
SELECT ALL 89 * COALESCE ( - + 29, + - 9 DIV 28 ) + 57, + 61 * 8 * - 24 AS col2
----
-2524
-11712

skipif mysql # not compatible
query II rowsort label-2525
SELECT ALL 89 * COALESCE ( - + 29, + - 9 / 28 ) + 57, + 61 * 8 * - 24 AS col2
----
-2524
-11712

onlyif mysql # aggregate syntax: 
query I rowsort label-2526
SELECT DISTINCT + 10 * + COALESCE ( + 89, - - 81 ) + + SUM( ALL + + 42 ) + + 77 AS col2
----
1009

skipif mysql # not compatible
query I rowsort label-2526
SELECT DISTINCT + 10 * + COALESCE ( + 89, - - 81 ) + + SUM ( ALL + + 42 ) + + 77 AS col2
----
1009

query II rowsort
SELECT ALL + 89 col2, 32
----
89
32

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2528
SELECT ALL CAST( NULL AS DECIMAL ) * - 74 + - - CAST( NULL AS SIGNED ) - - - 76 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2528
SELECT ALL CAST ( NULL AS REAL ) * - 74 + - - CAST ( NULL AS INTEGER ) - - - 76 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2529
SELECT - 30 DIV + 8 + - + 91 DIV 95 * 17 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-2529
SELECT - 30 / + 8 + - + 91 / 95 * 17 AS col2
----
-3

query II rowsort
SELECT + 44 AS col0, + 43 AS col1
----
44
43

query I rowsort
SELECT ALL + 43 * - 95 AS col0
----
-4085

query I rowsort
SELECT + 46 + + 45 AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2533
SELECT DISTINCT COUNT( * ) * 34 col2
----
34

skipif mysql # not compatible
query I rowsort label-2533
SELECT DISTINCT COUNT ( * ) * 34 col2
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2534
SELECT ALL + 56 * + SUM( - + NULLIF ( + 76, + + 34 ) ) - - MIN( - 44 ) DIV - 65 col0
----
-4256

skipif mysql # not compatible
query I rowsort label-2534
SELECT ALL + 56 * + SUM ( - + NULLIF ( + 76, + + 34 ) ) - - MIN ( - 44 ) / - 65 col0
----
-4256

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2536
SELECT + 49 DIV - 48
----
-1

skipif mysql # not compatible
query I rowsort label-2536
SELECT + 49 / - 48
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2537
SELECT DISTINCT + SUM( DISTINCT - 51 ) AS col2, COUNT( * )
----
-51
1

skipif mysql # not compatible
query II rowsort label-2537
SELECT DISTINCT + SUM ( DISTINCT - 51 ) AS col2, COUNT ( * )
----
-51
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2538
SELECT ALL + 62 DIV + ( + 97 )
----
0

skipif mysql # not compatible
query I rowsort label-2538
SELECT ALL + 62 / + ( + 97 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2539
SELECT + ( + SUM( ALL + + 81 ) ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-2539
SELECT + ( + SUM ( ALL + + 81 ) ) AS col0
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2540
SELECT - COUNT( * ) DIV 28 col1
----
0

skipif mysql # not compatible
query I rowsort label-2540
SELECT - COUNT ( * ) / 28 col1
----
0

query I rowsort
SELECT - 95 * + 61 AS col0
----
-5795

query I rowsort
SELECT + 66 - - 98
----
164

query I rowsort
SELECT ALL - 91 * 52 * 83
----
-392756

query I rowsort
SELECT + 59 * - 4 AS col2
----
-236

query I rowsort
SELECT DISTINCT - 73 * + 33 AS col1
----
-2409

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2546
SELECT - ( + - 80 ) + - COUNT( * ) * COUNT( * ) DIV - 41 * + + 8 * + + ( 74 )
----
80

skipif mysql # not compatible
query I rowsort label-2546
SELECT - ( + - 80 ) + - COUNT ( * ) * COUNT ( * ) / - 41 * + + 8 * + + ( 74 )
----
80

query I rowsort
SELECT ALL 18 * + - 83 AS col0
----
-1494

onlyif mysql # aggregate syntax: 
query II rowsort label-2548
SELECT - COUNT( * ) + + - 35 AS col1, - CASE - + ( 91 ) WHEN - 52 + + COUNT( * ) * 56 THEN 75 WHEN - 66 + + COUNT( * ) / ( - 40 ) THEN NULL ELSE NULL END AS col2
----
-36
NULL

skipif mysql # not compatible
query II rowsort label-2548
SELECT - COUNT ( * ) + + - 35 AS col1, - CASE - + ( 91 ) WHEN - 52 + + COUNT ( * ) * 56 THEN 75 WHEN - 66 + + COUNT ( * ) / ( - 40 ) THEN NULL ELSE NULL END AS col2
----
-36
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2549
SELECT DISTINCT + + 29 + + + ( - + COUNT( * ) ) * - 96 + + 50 + + 26
----
201

skipif mysql # not compatible
query I rowsort label-2549
SELECT DISTINCT + + 29 + + + ( - + COUNT ( * ) ) * - 96 + + 50 + + 26
----
201

query I rowsort
SELECT DISTINCT + 81 * - ( + 36 ) * + 22 * 65 AS col1
----
-4169880

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2552
SELECT ALL - + NULLIF ( + + 27, - + MIN( ALL - ( + 71 ) ) ) + + 19 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-2552
SELECT ALL - + NULLIF ( + + 27, - + MIN ( ALL - ( + 71 ) ) ) + + 19 AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT - MAX( DISTINCT + 97 ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-2553
SELECT - MAX ( DISTINCT + 97 ) AS col1
----
-97

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2555
SELECT DISTINCT + 66 * + 93 AS col2, NULLIF ( - + 97, COUNT( * ) )
----
6138
-97

skipif mysql # not compatible
query II rowsort label-2555
SELECT DISTINCT + 66 * + 93 AS col2, NULLIF ( - + 97, COUNT ( * ) )
----
6138
-97

query I rowsort
SELECT - + 2 * + ( - + 19 ) AS col2
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2557
SELECT ALL + + 95 / + CAST( NULL AS SIGNED ) * + 31 / ( - 86 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2557
SELECT ALL + + 95 / + CAST ( NULL AS INTEGER ) * + 31 / ( - 86 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2558
SELECT DISTINCT 29 * - COUNT( * ) - + COUNT( * ) DIV - 14 AS col0, + 33 AS col0
----
-29
33

skipif mysql # not compatible
query II rowsort label-2558
SELECT DISTINCT 29 * - COUNT ( * ) - + COUNT ( * ) / - 14 AS col0, + 33 AS col0
----
-29
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2559
SELECT ALL - 56 DIV NULLIF ( + 36, - + 25 - COUNT( * ) * - 90 * 33 ) - 1 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-2559
SELECT ALL - 56 / NULLIF ( + 36, - + 25 - COUNT ( * ) * - 90 * 33 ) - 1 AS col1
----
-2

query I rowsort
SELECT DISTINCT + - 44 * 33 + - 97 col2
----
-1549

onlyif mysql # aggregate syntax: 
query I rowsort label-2561
SELECT ALL + - MIN( ALL 38 ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-2561
SELECT ALL + - MIN ( ALL 38 ) AS col2
----
-38

query I rowsort
SELECT + 74 * + 13 - - + 54
----
1016

query I rowsort
SELECT + - 78 * - 17 * 22
----
29172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2564
SELECT + MIN( - + 19 ) / - 95 * + - COALESCE ( - 44, 54, 44 * - 95 - - 80 * - - 31, - - ( + - 47 ) - + + 51 + - ( - 33 ) ) + + - COUNT( * ) - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2564
SELECT + MIN ( - + 19 ) / - 95 * + - COALESCE ( - 44, 54, 44 * - 95 - - 80 * - - 31, - - ( + - 47 ) - + + 51 + - ( - 33 ) ) + + - COUNT ( * ) - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + ( + 89 ) * 52 AS col0
----
4628

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2566
SELECT - - 75 * + CASE + COUNT( * ) WHEN + - CAST( NULL AS SIGNED ) * - 0 THEN + - 67 / + + 67 WHEN - - 71 THEN 76 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2566
SELECT - - 75 * + CASE + COUNT ( * ) WHEN + - CAST ( NULL AS INTEGER ) * - 0 THEN + - 67 / + + 67 WHEN - - 71 THEN 76 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2567
SELECT DISTINCT + NULLIF ( + ( + 1 ), + - 99 ) * - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2567
SELECT DISTINCT + NULLIF ( + ( + 1 ), + - 99 ) * - COUNT ( * ) AS col2
----
-1

query II rowsort
SELECT ALL + 95, + 3 AS col0
----
95
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2569
SELECT - 75 * 81 - + - 43 + - - CAST( 95 AS SIGNED ) AS col2, - 27 + - 72 - - COUNT( * ) AS col2
----
-5937
-98

skipif mysql # not compatible
query II rowsort label-2569
SELECT - 75 * 81 - + - 43 + - - CAST ( 95 AS INTEGER ) AS col2, - 27 + - 72 - - COUNT ( * ) AS col2
----
-5937
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-2570
SELECT + 2 - ( 8 ) DIV + + 37 * 85
----
2

skipif mysql # not compatible
query I rowsort label-2570
SELECT + 2 - ( 8 ) / + + 37 * 85
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-2571
SELECT CASE 96 WHEN + 47 THEN NULL WHEN COUNT( * ) * + - 9 * + 18 * + - 66 - 22 THEN + 87 WHEN + 5 THEN NULL ELSE NULL END AS col1, + 3 + + + COUNT( ALL + 72 ) AS col2
----
NULL
4

skipif mysql # not compatible
query II rowsort label-2571
SELECT CASE 96 WHEN + 47 THEN NULL WHEN COUNT ( * ) * + - 9 * + 18 * + - 66 - 22 THEN + 87 WHEN + 5 THEN NULL ELSE NULL END AS col1, + 3 + + + COUNT ( ALL + 72 ) AS col2
----
NULL
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2572
SELECT ALL + 86 * - COUNT( * ) * + 62 + - COUNT( ALL - - 30 )
----
-5333

skipif mysql # not compatible
query I rowsort label-2572
SELECT ALL + 86 * - COUNT ( * ) * + 62 + - COUNT ( ALL - - 30 )
----
-5333

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2573
SELECT 95 * + 10 DIV + ( + COUNT( * ) ) + 53 + 55 * 39 + + - ( 26 ) AS col2
----
3122

skipif mysql # not compatible
query I rowsort label-2573
SELECT 95 * + 10 / + ( + COUNT ( * ) ) + 53 + 55 * 39 + + - ( 26 ) AS col2
----
3122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2574
SELECT + COUNT( * ) + CASE + 35 WHEN 93 + - 87 + 74 * - 64 + - ( + 13 ) - + 89 + + 13 * - - 67 THEN NULL WHEN + CAST( + 96 AS SIGNED ) THEN + MAX( - 47 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2574
SELECT + COUNT ( * ) + CASE + 35 WHEN 93 + - 87 + 74 * - 64 + - ( + 13 ) - + 89 + + 13 * - - 67 THEN NULL WHEN + CAST ( + 96 AS INTEGER ) THEN + MAX ( - 47 ) ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2575
SELECT ALL + ( - + 89 ) * 50 * - + 80 + - - 95 + + 39 DIV 45 AS col0
----
356095

skipif mysql # not compatible
query I rowsort label-2575
SELECT ALL + ( - + 89 ) * 50 * - + 80 + - - 95 + + 39 / 45 AS col0
----
356095

query I rowsort
SELECT ALL - 9 * + + 52 + - 78 AS col1
----
-546

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT DISTINCT + 25 * + + 39 + + - SUM( DISTINCT 13 )
----
962

skipif mysql # not compatible
query I rowsort label-2577
SELECT DISTINCT + 25 * + + 39 + + - SUM ( DISTINCT 13 )
----
962

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT ALL MIN( + 97 ) * + + 96 * + - ( + + 93 ) + - + 7 + + + 86
----
-865937

skipif mysql # not compatible
query I rowsort label-2578
SELECT ALL MIN ( + 97 ) * + + 96 * + - ( + + 93 ) + - + 7 + + + 86
----
-865937

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2579
SELECT ALL 61 * + 60 + + COALESCE ( + 32, + 19 + 64 * 14 + 13 + 67 + - ( + + 30 ) * + - 73 * 73, + 75 + - 86 DIV MAX( DISTINCT + 12 ) ) AS col2
----
3692

skipif mysql # not compatible
query I rowsort label-2579
SELECT ALL 61 * + 60 + + COALESCE ( + 32, + 19 + 64 * 14 + 13 + 67 + - ( + + 30 ) * + - 73 * 73, + 75 + - 86 / MAX ( DISTINCT + 12 ) ) AS col2
----
3692

query I rowsort
SELECT ALL 18 * + 57 AS col2
----
1026

onlyif mysql # aggregate syntax: 
query I rowsort label-2581
SELECT + MAX( ALL 2 ) + - CASE + 75 WHEN - + NULLIF ( - - COUNT( * ), 20 + + 84 ) THEN + 64 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2581
SELECT + MAX ( ALL 2 ) + - CASE + 75 WHEN - + NULLIF ( - - COUNT ( * ), 20 + + 84 ) THEN + 64 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT ALL NULLIF ( + - 57, + 11 / - - 14 + + COUNT( * ) - 92 )
----
-57

skipif mysql # not compatible
query I rowsort label-2582
SELECT ALL NULLIF ( + - 57, + 11 / - - 14 + + COUNT ( * ) - 92 )
----
-57

query I rowsort
SELECT + 6 * - + 91 AS col2
----
-546

onlyif mysql # aggregate syntax: 
query I rowsort label-2584
SELECT + 20 * + 37 + - NULLIF ( + 81, - 12 ) * + - COUNT( * ) AS col1
----
821

skipif mysql # not compatible
query I rowsort label-2584
SELECT + 20 * + 37 + - NULLIF ( + 81, - 12 ) * + - COUNT ( * ) AS col1
----
821

query I rowsort
SELECT - + 92 * + ( 12 ) + + 87
----
-1017

query I rowsort
SELECT - 3 + + 5
----
2

query I rowsort
SELECT DISTINCT + ( 10 ) * + 83 * + 99 AS col2
----
82170

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

query I rowsort
SELECT - 65 + + 13
----
-52

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

skipif mysql # not compatible
query I rowsort label-2590
SELECT DISTINCT + 9 * + COUNT ( * ) AS col2
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2591
SELECT DISTINCT - - 21 - + + COUNT( * ) + + - 77 + + NULLIF ( + CAST( NULL AS SIGNED ), + 53 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2591
SELECT DISTINCT - - 21 - + + COUNT ( * ) + + - 77 + + NULLIF ( + CAST ( NULL AS INTEGER ), + 53 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2592
SELECT DISTINCT NULLIF ( - 88, - MAX( 56 ) * - 46 )
----
-88

skipif mysql # not compatible
query I rowsort label-2592
SELECT DISTINCT NULLIF ( - 88, - MAX ( 56 ) * - 46 )
----
-88

query I rowsort
SELECT ALL + 76 * 80 AS col1
----
6080

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT - 31 + - MAX( - 35 ) + - 97
----
-93

skipif mysql # not compatible
query I rowsort label-2594
SELECT - 31 + - MAX ( - 35 ) + - 97
----
-93

query I rowsort
SELECT + 1 - 55
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2596
SELECT 67 * CAST( NULL AS SIGNED ) * - + 91 * 48 / - 28 AS col0, + 54 * + + 5
----
NULL
270

skipif mysql # not compatible
query II rowsort label-2596
SELECT 67 * CAST ( NULL AS INTEGER ) * - + 91 * 48 / - 28 AS col0, + 54 * + + 5
----
NULL
270

onlyif mysql # aggregate syntax: 
query I rowsort label-2597
SELECT - - 22 * + 29 + + COALESCE ( + 91, + + COUNT( * ) )
----
729

skipif mysql # not compatible
query I rowsort label-2597
SELECT - - 22 * + 29 + + COALESCE ( + 91, + + COUNT ( * ) )
----
729

onlyif mysql # aggregate syntax: 
query I rowsort label-2598
SELECT COUNT( ( ( - - 53 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-2598
SELECT COUNT ( ( ( - - 53 ) ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2599
SELECT 30 DIV + 55 + MIN( - 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-2599
SELECT 30 / + 55 + MIN ( - 5 )
----
-5

query I rowsort
SELECT 30 + 45 + - + 58
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2601
SELECT ALL - 89 / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2601
SELECT ALL - 89 / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2602
SELECT ALL - COUNT( - - 46 )
----
-1

skipif mysql # not compatible
query I rowsort label-2602
SELECT ALL - COUNT ( - - 46 )
----
-1

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

skipif mysql # not compatible
query I rowsort label-2603
SELECT DISTINCT - MIN ( + + ( - 83 ) ) / - COUNT ( * )
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-2604
SELECT ALL 14 * - + COUNT( * ) AS col0, 83 AS col2
----
-14
83

skipif mysql # not compatible
query II rowsort label-2604
SELECT ALL 14 * - + COUNT ( * ) AS col0, 83 AS col2
----
-14
83

query I rowsort
SELECT 46 * 15 * 42 col1
----
28980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2606
SELECT DISTINCT - CASE NULLIF ( + 32, MAX( ALL + + 52 ) + - - 33 - MIN( ALL + 17 ) + - + 70 + + COUNT( * ) + - + 24 DIV - 1 ) WHEN - ( + 85 ) + - - CAST( + 38 AS SIGNED ) * + + ( + + 92 ) * 77 THEN NULL WHEN COALESCE ( + 60, 24 * - - 81 + + + CAST( + 70 AS SIGNED ) ) THEN NULL ELSE 27 DIV + 39 - - 32 END AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-2606
SELECT DISTINCT - CASE NULLIF ( + 32, MAX ( ALL + + 52 ) + - - 33 - MIN ( ALL + 17 ) + - + 70 + + COUNT ( * ) + - + 24 / - 1 ) WHEN - ( + 85 ) + - - CAST ( + 38 AS INTEGER ) * + + ( + + 92 ) * 77 THEN NULL WHEN COALESCE ( + 60, 24 * - - 81 + + + CAST ( + 70 AS INTEGER ) ) THEN NULL ELSE 27 / + 39 - - 32 END AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2607
SELECT MIN( + - 82 ) * + + 20
----
-1640

skipif mysql # not compatible
query I rowsort label-2607
SELECT MIN ( + - 82 ) * + + 20
----
-1640

query I rowsort
SELECT DISTINCT - 45 + - + 28 col2
----
-73

query I rowsort
SELECT ALL + 90 * + ( - 69 )
----
-6210

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

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

query I rowsort
SELECT ALL 7 + 3 AS col1
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2612
SELECT DISTINCT 65 + - 13, ( + COUNT( * ) ) DIV - 87 col0
----
52
0

skipif mysql # not compatible
query II rowsort label-2612
SELECT DISTINCT 65 + - 13, ( + COUNT ( * ) ) / - 87 col0
----
52
0

query I rowsort
SELECT 71 + + 24 col0
----
95

query I rowsort
SELECT DISTINCT - 18 + + - 80 * - - 41
----
-3298

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

skipif mysql # not compatible
query I rowsort label-2615
SELECT ALL COUNT ( * ) * + 7 AS col0
----
7

query I rowsort
SELECT ALL 71 + - 69 AS col1
----
2

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

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

query I rowsort
SELECT + 78 * + - 37 + + - 77 + + 84 AS col1
----
-2879

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2619
SELECT ALL 23 * - MAX( DISTINCT + 36 ) DIV + COUNT( * ) - - CASE + + NULLIF ( - + 18, - CAST( NULL AS SIGNED ) ) WHEN + - 80 * + 34 + + 58 + - ( + 99 ) - - COUNT( * ) THEN NULL ELSE + 42 + 4 END AS col0
----
-782

skipif mysql # not compatible
query I rowsort label-2619
SELECT ALL 23 * - MAX ( DISTINCT + 36 ) / + COUNT ( * ) - - CASE + + NULLIF ( - + 18, - CAST ( NULL AS INTEGER ) ) WHEN + - 80 * + 34 + + 58 + - ( + 99 ) - - COUNT ( * ) THEN NULL ELSE + 42 + 4 END AS col0
----
-782

query I rowsort
SELECT - 7 * 30 * 94 * + 21 AS col2
----
-414540

query I rowsort
SELECT 46 * - 69 AS col0
----
-3174

query I rowsort
SELECT + 99 + - - 57 AS col1
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2623
SELECT DISTINCT - CAST( 14 AS SIGNED ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-2623
SELECT DISTINCT - CAST ( 14 AS INTEGER ) AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT ALL + ( - + COUNT( + 34 ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-2624
SELECT ALL + ( - + COUNT ( + 34 ) ) col0
----
-1

query I rowsort
SELECT + 12 + - 34 col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2626
SELECT + SUM( 70 ) * 77
----
5390

skipif mysql # not compatible
query I rowsort label-2626
SELECT + SUM ( 70 ) * 77
----
5390

query II rowsort
SELECT ALL + + ( + 95 ) * - + ( + 15 ), - 30 AS col2
----
-1425
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2628
SELECT ALL 13 AS col1, COUNT( * ) DIV - 51 + 60
----
13
60

skipif mysql # not compatible
query II rowsort label-2628
SELECT ALL 13 AS col1, COUNT ( * ) / - 51 + 60
----
13
60

query II rowsort
SELECT - 35, + 69 col1
----
-35
69

query II rowsort
SELECT ALL 53 * - 59, + 15 + - 18 AS col0
----
-3127
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2631
SELECT ALL - CASE - 45 WHEN + 91 THEN NULL WHEN 66 + 8 - - + SUM( ALL 57 ) * 22 THEN - 47 WHEN + + COUNT( * ) THEN NULL END * - + 42 + 26 + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-2631
SELECT ALL - CASE - 45 WHEN + 91 THEN NULL WHEN 66 + 8 - - + SUM ( ALL 57 ) * 22 THEN - 47 WHEN + + COUNT ( * ) THEN NULL END * - + 42 + 26 + 10
----
NULL

query I rowsort
SELECT ALL + 47 * + + 39 + + 9
----
1842

query I rowsort
SELECT 30 + - 37 + + 1 AS col0
----
-6

query I rowsort
SELECT 65 * + 98
----
6370

onlyif mysql # aggregate syntax: 
query I rowsort label-2635
SELECT ALL - 32 + - 99 + - CASE - 47 WHEN - CASE WHEN NOT ( NULL ) IS NOT NULL THEN 35 WHEN - 47 * COUNT( * ) = + 65 THEN 71 ELSE NULL END * 60 THEN NULL WHEN - 56 THEN - 49 ELSE NULL END - + 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2635
SELECT ALL - 32 + - 99 + - CASE - 47 WHEN - CASE WHEN NOT ( NULL ) IS NOT NULL THEN 35 WHEN - 47 * COUNT ( * ) = + 65 THEN 71 ELSE NULL END * 60 THEN NULL WHEN - 56 THEN - 49 ELSE NULL END - + 10 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2636
SELECT 95 * - 69 / 54 - + 20 - - - COALESCE ( + 66, + COALESCE ( + + NULLIF ( 29, ( 83 ) + - CASE COUNT( * ) WHEN - 0 THEN - ( - + CAST( NULL AS SIGNED ) ) + - 87 END * + - 6 ), + - COUNT( * ) + + 5 * SUM( DISTINCT - + 94 ) / - COUNT( ALL 81 ) ) + + 27, 27 + + - 73, + 24 + - 76 ) * - ( + CAST( NULL AS SIGNED ) / 94 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2636
SELECT 95 * - 69 / 54 - + 20 - - - COALESCE ( + 66, + COALESCE ( + + NULLIF ( 29, ( 83 ) + - CASE COUNT ( * ) WHEN - 0 THEN - ( - + CAST ( NULL AS INTEGER ) ) + - 87 END * + - 6 ), + - COUNT ( * ) + + 5 * SUM ( DISTINCT - + 94 ) / - COUNT ( ALL 81 ) ) + + 27, 27 + + - 73, + 24 + - 76 ) * - ( + CAST ( NULL AS INTEGER ) / 94 ) col2
----
NULL

query I rowsort
SELECT + 28 * - - 44 - + 17 AS col0
----
1215

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2638
SELECT DISTINCT - 41 DIV 17 * + - MIN( + - 2 )
----
-4

skipif mysql # not compatible
query I rowsort label-2638
SELECT DISTINCT - 41 / 17 * + - MIN ( + - 2 )
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-2639
SELECT DISTINCT + 87 + ( + + 68 ) - - CASE - - COUNT( * ) WHEN 37 THEN - CASE - - 70 WHEN 96 - - AVG ( + 42 ) THEN NULL ELSE + 43 END ELSE NULL END AS col0, 25 AS col0
----
NULL
25

skipif mysql # not compatible
query II rowsort label-2639
SELECT DISTINCT + 87 + ( + + 68 ) - - CASE - - COUNT ( * ) WHEN 37 THEN - CASE - - 70 WHEN 96 - - AVG ( + 42 ) THEN NULL ELSE + 43 END ELSE NULL END AS col0, 25 AS col0
----
NULL
25

query I rowsort
SELECT ALL - 32 + - 79 AS col1
----
-111

query II rowsort
SELECT 74 + - + 77 AS col1, 24
----
-3
24

query I rowsort
SELECT DISTINCT - NULLIF ( - + 19, + ( 31 ) + 21 ) * - 98 AS col2
----
-1862

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2644
SELECT - + 29 + 11 * + + 19 + - SUM( ALL 98 ) + + 32 + + CASE + SUM( ALL - - 96 ) WHEN - 21 THEN CAST( + 32 AS DECIMAL ) * - - SUM( DISTINCT 6 ) END * 6, - 57 AS col1
----
NULL
-57

skipif mysql # not compatible
query II rowsort label-2644
SELECT - + 29 + 11 * + + 19 + - SUM ( ALL 98 ) + + 32 + + CASE + SUM ( ALL - - 96 ) WHEN - 21 THEN CAST ( + 32 AS REAL ) * - - SUM ( DISTINCT 6 ) END * 6, - 57 AS col1
----
NULL
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2645
SELECT ALL + 59 / - ( - 51 ) / + - 62 * - - CAST( NULL AS SIGNED ) * 52 * - + COUNT( * ) / 63 - + + 56 * - 41 * 89
----
NULL

skipif mysql # not compatible
query I rowsort label-2645
SELECT ALL + 59 / - ( - 51 ) / + - 62 * - - CAST ( NULL AS INTEGER ) * 52 * - + COUNT ( * ) / 63 - + + 56 * - 41 * 89
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2646
SELECT - 13 + - ( + MIN( + 30 ) ) + 80 * 57 * 16 * + 52 col2, CASE 41 WHEN + 9 + - 62 THEN NULL WHEN - 90 THEN 44 WHEN - + COUNT( * ) THEN + 4 - - 37 END * + - 59 + - NULLIF ( CAST( NULL AS SIGNED ), - - 86 * - 60 + - 6 ) * - 16 + + + SUM( ALL + 50 ) AS col0
----
3793877
NULL

skipif mysql # not compatible
query II rowsort label-2646
SELECT - 13 + - ( + MIN ( + 30 ) ) + 80 * 57 * 16 * + 52 col2, CASE 41 WHEN + 9 + - 62 THEN NULL WHEN - 90 THEN 44 WHEN - + COUNT ( * ) THEN + 4 - - 37 END * + - 59 + - NULLIF ( CAST ( NULL AS INTEGER ), - - 86 * - 60 + - 6 ) * - 16 + + + SUM ( ALL + 50 ) AS col0
----
3793877
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2647
SELECT - ( - 14 ), - 61 / CAST( NULL AS SIGNED ) col2
----
14
NULL

skipif mysql # not compatible
query II rowsort label-2647
SELECT - ( - 14 ), - 61 / CAST ( NULL AS INTEGER ) col2
----
14
NULL

query I rowsort
SELECT - COALESCE ( - 99, 70, + - 77 ) + + 98 * 59 AS col0
----
5881

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2649
SELECT + 40 DIV COUNT( * ) DIV + ( - 41 ) + - 35 + - 87 - - ( - - 66 ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-2649
SELECT + 40 / COUNT ( * ) / + ( - 41 ) + - 35 + - 87 - - ( - - 66 ) AS col0
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-2650
SELECT ALL 80 + - 88 DIV + 61 + + 21 AS col0
----
100

skipif mysql # not compatible
query I rowsort label-2650
SELECT ALL 80 + - 88 / + 61 + + 21 AS col0
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2651
SELECT + - SUM( ALL - + 24 ) + COUNT( DISTINCT 38 ) + - + 29 + - + CAST( NULL AS SIGNED ) * - 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2651
SELECT + - SUM ( ALL - + 24 ) + COUNT ( DISTINCT 38 ) + - + 29 + - + CAST ( NULL AS INTEGER ) * - 94 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2652
SELECT DISTINCT - - 58 * + 5 / - + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2652
SELECT DISTINCT - - 58 * + 5 / - + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2653
SELECT + + 13 + + 26 DIV 97 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-2653
SELECT + + 13 + + 26 / 97 AS col0
----
13

query I rowsort
SELECT ALL + 33 + 72 col0
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2655
SELECT + + 63 * - COALESCE ( + 2, CAST( NULL AS SIGNED ) * + + 55 + + 88 ) + - - COUNT( * ) AS col1
----
-125

skipif mysql # not compatible
query I rowsort label-2655
SELECT + + 63 * - COALESCE ( + 2, CAST ( NULL AS INTEGER ) * + + 55 + + 88 ) + - - COUNT ( * ) AS col1
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT + 96 - - COALESCE ( + COALESCE ( - 26, 52 ), - 38 ) + MIN( - 10 ) * + 39
----
-320

skipif mysql # not compatible
query I rowsort label-2656
SELECT + 96 - - COALESCE ( + COALESCE ( - 26, 52 ), - 38 ) + MIN ( - 10 ) * + 39
----
-320

query II rowsort
SELECT + 67 + - - 28 + + 29, 1 - 35 AS col0
----
124
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-2658
SELECT + SUM( - 7 ) - + 94 AS col0, 74
----
-101
74

skipif mysql # not compatible
query II rowsort label-2658
SELECT + SUM ( - 7 ) - + 94 AS col0, 74
----
-101
74

query II rowsort
SELECT - ( + + ( - - 21 ) ) AS col1, - 84
----
-21
-84

query I rowsort
SELECT + 43 * 54 * + - 18 AS col0
----
-41796

onlyif mysql # aggregate syntax: 
query II rowsort label-2661
SELECT DISTINCT - COUNT( * ) * + 28 + 1 AS col1, NULLIF ( - + COALESCE ( + - COUNT( * ), + 18 ), + 56 ) + - + SUM( - - 99 )
----
-27
-98

skipif mysql # not compatible
query II rowsort label-2661
SELECT DISTINCT - COUNT ( * ) * + 28 + 1 AS col1, NULLIF ( - + COALESCE ( + - COUNT ( * ), + 18 ), + 56 ) + - + SUM ( - - 99 )
----
-27
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2662
SELECT ALL 37 * - COALESCE ( - + 45, + SUM( ALL - 18 ) DIV - 40 * - COUNT( * ) * + 80 + + 50 + + - 36, - + 24 ) + - 43 AS col0
----
1622

skipif mysql # not compatible
query I rowsort label-2662
SELECT ALL 37 * - COALESCE ( - + 45, + SUM ( ALL - 18 ) / - 40 * - COUNT ( * ) * + 80 + + 50 + + - 36, - + 24 ) + - 43 AS col0
----
1622

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT DISTINCT 90 * - COUNT( DISTINCT 66 ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-2663
SELECT DISTINCT 90 * - COUNT ( DISTINCT 66 ) AS col1
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2664
SELECT DISTINCT + 43 * + 77 + + - COUNT( * ) + CAST( - ( - 18 ) AS SIGNED ) AS col1
----
3328

skipif mysql # not compatible
query I rowsort label-2664
SELECT DISTINCT + 43 * + 77 + + - COUNT ( * ) + CAST ( - ( - 18 ) AS INTEGER ) AS col1
----
3328

query II rowsort
SELECT ALL + COALESCE ( - 95, + 49 ) col1, 54 AS col2
----
-95
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT + COUNT( ALL 33 ) * 19 * + COALESCE ( + COUNT( * ), - 55, 19 ) * 83 + - 40 + - 60 * 90 * + 86 * - + 26 + COUNT( * ) * 39 col1
----
12075976

skipif mysql # not compatible
query I rowsort label-2666
SELECT + COUNT ( ALL 33 ) * 19 * + COALESCE ( + COUNT ( * ), - 55, 19 ) * 83 + - 40 + - 60 * 90 * + 86 * - + 26 + COUNT ( * ) * 39 col1
----
12075976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2667
SELECT ALL 74 * + COUNT( * ) - + 18 + COALESCE ( 96, + CAST( NULL AS SIGNED ) )
----
152

skipif mysql # not compatible
query I rowsort label-2667
SELECT ALL 74 * + COUNT ( * ) - + 18 + COALESCE ( 96, + CAST ( NULL AS INTEGER ) )
----
152

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

skipif mysql # not compatible
query I rowsort label-2668
SELECT - 65 + ( - CAST ( NULL AS INTEGER ) ) * + 39 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2669
SELECT ALL 89 * 5 DIV - + 6 AS col2, 63 DIV + - 96 + 83 AS col0
----
-74
83

skipif mysql # not compatible
query II rowsort label-2669
SELECT ALL 89 * 5 / - + 6 AS col2, 63 / + - 96 + 83 AS col0
----
-74
83

query II rowsort
SELECT + ( ( 78 ) ) AS col1, - 73 * 44 * - 63
----
78
202356

onlyif mysql # aggregate syntax: 
query II rowsort label-2671
SELECT ALL + 15 AS col0, 44 * + 38 + 35 - - 40 * - - ( 27 ) + + CASE - 43 WHEN COUNT( * ) THEN NULL ELSE - - 70 END * ( - 51 )
----
15
-783

skipif mysql # not compatible
query II rowsort label-2671
SELECT ALL + 15 AS col0, 44 * + 38 + 35 - - 40 * - - ( 27 ) + + CASE - 43 WHEN COUNT ( * ) THEN NULL ELSE - - 70 END * ( - 51 )
----
15
-783

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT COALESCE ( - + MAX( DISTINCT - 21 ), - 20 * - COUNT( * ) )
----
21

skipif mysql # not compatible
query I rowsort label-2672
SELECT COALESCE ( - + MAX ( DISTINCT - 21 ), - 20 * - COUNT ( * ) )
----
21

query II rowsort
SELECT DISTINCT + 17 AS col1, + 27
----
17
27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2674
SELECT - - 44 + - 84 + + + CAST( NULL AS DECIMAL ) * - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-2674
SELECT - - 44 + - 84 + + + CAST ( NULL AS REAL ) * - 18
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2675
SELECT ALL + CASE 64 WHEN - 82 + COUNT( - 84 ) THEN - ( 86 ) + - 64 ELSE - - COUNT( * ) DIV 86 + + + ( + 4 ) END
----
4

skipif mysql # not compatible
query I rowsort label-2675
SELECT ALL + CASE 64 WHEN - 82 + COUNT ( - 84 ) THEN - ( 86 ) + - 64 ELSE - - COUNT ( * ) / 86 + + + ( + 4 ) END
----
4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2676
SELECT - - CAST( NULL AS DECIMAL ) - + 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2676
SELECT - - CAST ( NULL AS REAL ) - + 20 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2677
SELECT - 58 DIV - 66 * - + 81 * - 58
----
0

skipif mysql # not compatible
query I rowsort label-2677
SELECT - 58 / - 66 * - + 81 * - 58
----
0

query I rowsort
SELECT - 11 * - 56 AS col0
----
616

query I rowsort
SELECT - 81 + + ( 52 ) col1
----
-29

query I rowsort
SELECT DISTINCT - 97 * 92
----
-8924

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2681
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) * NULLIF ( + 78, + 52 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2681
SELECT DISTINCT - - CAST ( NULL AS REAL ) * NULLIF ( + 78, + 52 )
----
NULL

query I rowsort
SELECT ALL + + 44 + - 54 * + 33 AS col2
----
-1738

query II rowsort
SELECT DISTINCT - 24 AS col0, 82
----
-24
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2684
SELECT DISTINCT + 95 + COUNT( DISTINCT - + 69 ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-2684
SELECT DISTINCT + 95 + COUNT ( DISTINCT - + 69 ) AS col2
----
96

query I rowsort
SELECT DISTINCT 96 + 54 AS col0
----
150

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2688
SELECT - - 22 AS col0, COUNT( * ) DIV - + 84 + + - 32
----
22
-32

skipif mysql # not compatible
query II rowsort label-2688
SELECT - - 22 AS col0, COUNT ( * ) / - + 84 + + - 32
----
22
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2689
SELECT + ( - - 78 ) + COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-2689
SELECT + ( - - 78 ) + COUNT ( * )
----
79

query I rowsort
SELECT ALL 55 + - 66 AS col1
----
-11

query I rowsort
SELECT - 61 * + 96
----
-5856

onlyif mysql # DIV for integer division: 
query I rowsort label-2692
SELECT DISTINCT + CASE - 26 WHEN + + 6 THEN NULL ELSE 9 END DIV + + 36 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2692
SELECT DISTINCT + CASE - 26 WHEN + + 6 THEN NULL ELSE 9 END / + + 36 AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-2693
SELECT ALL + 41 * + - COUNT ( * ) / 71 * - 88
----
0

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

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

query I rowsort
SELECT ALL + 32 - 72
----
-40

onlyif mysql # DIV for integer division: 
query II rowsort label-2696
SELECT ALL ( - NULLIF ( + 67, + - 36 * + + 32 ) ) DIV - 99 - 16, - 4 AS col2
----
-16
-4

skipif mysql # not compatible
query II rowsort label-2696
SELECT ALL ( - NULLIF ( + 67, + - 36 * + + 32 ) ) / - 99 - 16, - 4 AS col2
----
-16
-4

query I rowsort
SELECT + 54 + - 30
----
24

onlyif mysql # DIV for integer division: 
query II rowsort label-2698
SELECT + 32 * - 83 + - 83 DIV 89 + + 98 + + 20 + - NULLIF ( 3, + 51 + + - 46 ) AS col1, 83 col2
----
-2541
83

skipif mysql # not compatible
query II rowsort label-2698
SELECT + 32 * - 83 + - 83 / 89 + + 98 + + 20 + - NULLIF ( 3, + 51 + + - 46 ) AS col1, 83 col2
----
-2541
83

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2700
SELECT ALL 35 * - + NULLIF ( + 88, COUNT( * ) ), 37 AS col1
----
-3080
37

skipif mysql # not compatible
query II rowsort label-2700
SELECT ALL 35 * - + NULLIF ( + 88, COUNT ( * ) ), 37 AS col1
----
-3080
37

onlyif mysql # DIV for integer division: 
query I rowsort label-2701
SELECT + 82 DIV + + ( + 35 ) - + + 67 AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-2701
SELECT + 82 / + + ( + 35 ) - + + 67 AS col2
----
-65

query II rowsort
SELECT 19 + 64 + 27 + - - 36 AS col1, + 80 col2
----
146
80

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2704
SELECT DISTINCT - + MIN( - + 53 ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-2704
SELECT DISTINCT - + MIN ( - + 53 ) AS col2
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-2705
SELECT + 12 * 32 DIV 43 + + + 48 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-2705
SELECT + 12 * 32 / 43 + + + 48 AS col1
----
56

query I rowsort
SELECT COALESCE ( + 89, - 0 * - - 36 - - 56 ) AS col0
----
89

query I rowsort
SELECT ALL 17 + + - 81
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-2708
SELECT 98 + - - 33 + + 2 DIV + 54 * - 31 AS col1
----
131

skipif mysql # not compatible
query I rowsort label-2708
SELECT 98 + - - 33 + + 2 / + 54 * - 31 AS col1
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-2709
SELECT COALESCE ( + - MAX( ALL - + 4 ), CASE - COUNT( * ) WHEN 54 THEN + + 83 END ) * + MAX( ALL + 20 ) - + CASE + - ( + MIN( ALL - + 67 ) ) WHEN 84 + + + COUNT( * ) THEN - 7 - - - 53 WHEN - 46 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2709
SELECT COALESCE ( + - MAX ( ALL - + 4 ), CASE - COUNT ( * ) WHEN 54 THEN + + 83 END ) * + MAX ( ALL + 20 ) - + CASE + - ( + MIN ( ALL - + 67 ) ) WHEN 84 + + + COUNT ( * ) THEN - 7 - - - 53 WHEN - 46 THEN NULL END AS col1
----
NULL

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

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

query I rowsort
SELECT DISTINCT + - 83 + 23 col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2712
SELECT ALL - 57 + - 51 - - COUNT( * ) * 35 AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-2712
SELECT ALL - 57 + - 51 - - COUNT ( * ) * 35 AS col2
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2713
SELECT - 32 * - ( - 77 ) * - 57 + + 74 - + 51 + + - COALESCE ( CAST( + 69 AS SIGNED ), + 20 ) * + 99 AS col1
----
133640

skipif mysql # not compatible
query I rowsort label-2713
SELECT - 32 * - ( - 77 ) * - 57 + + 74 - + 51 + + - COALESCE ( CAST ( + 69 AS INTEGER ), + 20 ) * + 99 AS col1
----
133640

query I rowsort
SELECT ALL + + 41 + - ( - 60 ) AS col1
----
101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2715
SELECT ( - ( CAST( - 31 AS SIGNED ) ) )
----
31

skipif mysql # not compatible
query I rowsort label-2715
SELECT ( - ( CAST ( - 31 AS INTEGER ) ) )
----
31

query I rowsort
SELECT ALL + 16 + + + 18
----
34

query I rowsort
SELECT - 98 + 20 + - 32
----
-110

query II rowsort
SELECT + 81 * - 9, 98 * 59 * + - ( - 66 ) AS col1
----
-729
381612

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT DISTINCT - + 3 + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-2719
SELECT DISTINCT - + 3 + COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2720
SELECT + 25 + + 1 + CASE + 79 WHEN - 72 + 30 THEN - 88 ELSE NULL END + + MIN( - 23 ) + MIN( DISTINCT - + 38 ) + + - COALESCE ( + COUNT( * ), + 51 * - 77 * + 91 ) * - 23 + - 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2720
SELECT + 25 + + 1 + CASE + 79 WHEN - 72 + 30 THEN - 88 ELSE NULL END + + MIN ( - 23 ) + MIN ( DISTINCT - + 38 ) + + - COALESCE ( + COUNT ( * ), + 51 * - 77 * + 91 ) * - 23 + - 98 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2721
SELECT ALL + 99 + - - 39 * - COUNT( * ), - 62 + NULLIF ( + 12, + 71 ) AS col1
----
60
-50

skipif mysql # not compatible
query II rowsort label-2721
SELECT ALL + 99 + - - 39 * - COUNT ( * ), - 62 + NULLIF ( + 12, + 71 ) AS col1
----
60
-50

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

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

query II rowsort
SELECT DISTINCT 0, 85 AS col1
----
0
85

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2725
SELECT ALL - 0 - - - CAST( + 30 AS SIGNED )
----
-30

skipif mysql # not compatible
query I rowsort label-2725
SELECT ALL - 0 - - - CAST ( + 30 AS INTEGER )
----
-30

query I rowsort
SELECT 74 + + + 10 * - + 59
----
-516

query I rowsort
SELECT 45 + 21
----
66

query I rowsort
SELECT 55 + 25
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2729
SELECT 90 - + + NULLIF ( - NULLIF ( + 52, 77 + + 89 + 76 * + + COUNT( * ) ), - - 52 + MAX( - - 92 ) * - + 23 ) - - 79 AS col1
----
221

skipif mysql # not compatible
query I rowsort label-2729
SELECT 90 - + + NULLIF ( - NULLIF ( + 52, 77 + + 89 + 76 * + + COUNT ( * ) ), - - 52 + MAX ( - - 92 ) * - + 23 ) - - 79 AS col1
----
221

onlyif mysql # aggregate syntax: 
query I rowsort label-2730
SELECT MIN( - - 43 ) * + 73 col1
----
3139

skipif mysql # not compatible
query I rowsort label-2730
SELECT MIN ( - - 43 ) * + 73 col1
----
3139

query II rowsort
SELECT COALESCE ( - 95, - 99, + 63 ) + - - ( + ( ( 70 ) ) ) - + ( - + 61 ) AS col2, - 94
----
36
-94

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2732
SELECT ALL + 1 * + - NULLIF ( + + COUNT( * ), - CASE WHEN NOT - 80 IN ( - - 60, - 44 * + - COUNT( * ), + CAST( 0 AS DECIMAL ) ) THEN NULL ELSE + 61 END ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2732
SELECT ALL + 1 * + - NULLIF ( + + COUNT ( * ), - CASE WHEN NOT - 80 IN ( - - 60, - 44 * + - COUNT ( * ), + CAST ( 0 AS REAL ) ) THEN NULL ELSE + 61 END ) AS col1
----
-1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2734
SELECT ALL + 10 DIV - 12
----
0

skipif mysql # not compatible
query I rowsort label-2734
SELECT ALL + 10 / - 12
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT MAX( - ( + 20 ) ) + + 50 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-2735
SELECT MAX ( - ( + 20 ) ) + + 50 AS col0
----
30

query I rowsort
SELECT DISTINCT + 92 * - + 42 AS col2
----
-3864

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT DISTINCT + 83 * - COUNT( * ) * SUM( 14 )
----
-1162

skipif mysql # not compatible
query I rowsort label-2737
SELECT DISTINCT + 83 * - COUNT ( * ) * SUM ( 14 )
----
-1162

query I rowsort
SELECT DISTINCT - NULLIF ( - - 60, + 9 ) AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2739
SELECT ALL 87 + - 49 + + COUNT( * ) * - - 32 * 84 * ( ( + 98 ) ) + + + ( + 15 )
----
263477

skipif mysql # not compatible
query I rowsort label-2739
SELECT ALL 87 + - 49 + + COUNT ( * ) * - - 32 * 84 * ( ( + 98 ) ) + + + ( + 15 )
----
263477

onlyif mysql # aggregate syntax: 
query II rowsort label-2740
SELECT + - MAX( DISTINCT CASE - - 90 WHEN - 51 THEN + 65 END ) AS col1, - 96 - - 20 * + 11 - + 48 + + 51
----
NULL
127

skipif mysql # not compatible
query II rowsort label-2740
SELECT + - MAX ( DISTINCT CASE - - 90 WHEN - 51 THEN + 65 END ) AS col1, - 96 - - 20 * + 11 - + 48 + + 51
----
NULL
127

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2741
SELECT ALL 1 + 16 DIV SUM( DISTINCT - 62 )
----
1

skipif mysql # not compatible
query I rowsort label-2741
SELECT ALL 1 + 16 / SUM ( DISTINCT - 62 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2742
SELECT + 40 + - 31 + - COUNT( * ) + + + NULLIF ( - + 56, - + COUNT( * ) ) / + + 5 * - COUNT( * ) * + 43 * - - MIN( + - ( 55 ) ) - - - 86 + + 1 * - + AVG ( ( - CAST( NULL AS SIGNED ) ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2742
SELECT + 40 + - 31 + - COUNT ( * ) + + + NULLIF ( - + 56, - + COUNT ( * ) ) / + + 5 * - COUNT ( * ) * + 43 * - - MIN ( + - ( 55 ) ) - - - 86 + + 1 * - + AVG ( ( - CAST ( NULL AS INTEGER ) ) ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2743
SELECT ALL - 72 DIV + - 4 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-2743
SELECT ALL - 72 / + - 4 AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT ALL + 97 + + COUNT( * ) * - 45 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-2744
SELECT ALL + 97 + + COUNT ( * ) * - 45 AS col1
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-2745
SELECT DISTINCT 72 + - 84 + + + 34 * + 67 - 98 AS col0, CASE - + 17 WHEN - ( COUNT( * ) ) THEN 36 * - 57 + 73 ELSE NULL END
----
2168
NULL

skipif mysql # not compatible
query II rowsort label-2745
SELECT DISTINCT 72 + - 84 + + + 34 * + 67 - 98 AS col0, CASE - + 17 WHEN - ( COUNT ( * ) ) THEN 36 * - 57 + 73 ELSE NULL END
----
2168
NULL

query I rowsort
SELECT - 16 + 92
----
76

query I rowsort
SELECT DISTINCT + CASE + 79 WHEN 72 THEN - + 12 ELSE NULL END + + 99 AS col0
----
NULL

query II rowsort
SELECT DISTINCT - 95 AS col2, + 57 AS col1
----
-95
57

query I rowsort
SELECT NULLIF ( 90, - AVG ( 61 ) )
----
90

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

query I rowsort
SELECT COALESCE ( ( - 79 ), + 22 * + 37 + - 78, - - 23 ) - 56 + - + 47 AS col2
----
-182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2752
SELECT DISTINCT 35 - - CAST( + 27 AS SIGNED ) * + 44 AS col0
----
1223

skipif mysql # not compatible
query I rowsort label-2752
SELECT DISTINCT 35 - - CAST ( + 27 AS INTEGER ) * + 44 AS col0
----
1223

query II rowsort
SELECT 88 AS col2, 67
----
88
67

query I rowsort
SELECT + 23 * 74 AS col2
----
1702

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT - CASE + 23 WHEN 1 THEN - + 69 WHEN 24 * 43 THEN COUNT( * ) WHEN - COUNT( ALL - 68 ) THEN - 3 + 30 * + 1 + + 60 + + 7 - 65 + - + 59 * + COUNT( * ) * - + 92 - - - 38 * - 1 / + COUNT( + ( - - 35 ) ) * - 53 * COUNT( * ) * - ( + - 92 ) * - ( + 49 ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2755
SELECT - CASE + 23 WHEN 1 THEN - + 69 WHEN 24 * 43 THEN COUNT ( * ) WHEN - COUNT ( ALL - 68 ) THEN - 3 + 30 * + 1 + + 60 + + 7 - 65 + - + 59 * + COUNT ( * ) * - + 92 - - - 38 * - 1 / + COUNT ( + ( - - 35 ) ) * - 53 * COUNT ( * ) * - ( + - 92 ) * - ( + 49 ) END col2
----
NULL

query I rowsort
SELECT ALL 20 - 60 * 77 col1
----
-4600

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

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

query II rowsort
SELECT ALL 61, 86 AS col0
----
61
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT - MIN( ALL + 39 ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-2759
SELECT - MIN ( ALL + 39 ) AS col2
----
-39

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

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

query I rowsort
SELECT ALL - 69 * 37 * + 55
----
-140415

query I rowsort
SELECT ALL + 14 * - 57 AS col2
----
-798

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2763
SELECT 0 AS col2, CAST( NULL AS DECIMAL )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2763
SELECT 0 AS col2, CAST ( NULL AS REAL )
----
0
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2764
SELECT - 7 DIV 54
----
0

skipif mysql # not compatible
query I rowsort label-2764
SELECT - 7 / 54
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT DISTINCT 71 * + COUNT( ALL 16 ) col2
----
71

skipif mysql # not compatible
query I rowsort label-2765
SELECT DISTINCT 71 * + COUNT ( ALL 16 ) col2
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2766
SELECT - CAST( + + 61 AS SIGNED ) * - - 20 AS col2
----
-1220

skipif mysql # not compatible
query I rowsort label-2766
SELECT - CAST ( + + 61 AS INTEGER ) * - - 20 AS col2
----
-1220

onlyif mysql # aggregate syntax: 
query I rowsort label-2767
SELECT NULLIF ( + 8, 28 * - 70 * - COUNT( * ) )
----
8

skipif mysql # not compatible
query I rowsort label-2767
SELECT NULLIF ( + 8, 28 * - 70 * - COUNT ( * ) )
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-2768
SELECT + 73 DIV + NULLIF ( - + 30, - + 20 ) + + 95 * + 82 col2
----
7788

skipif mysql # not compatible
query I rowsort label-2768
SELECT + 73 / + NULLIF ( - + 30, - + 20 ) + + 95 * + 82 col2
----
7788

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2769
SELECT COALESCE ( - 82, + + CAST( + + COUNT( * ) AS SIGNED ) * - + 34 + - + 49 * ( + - 76 ), 91 ) col0
----
-82

skipif mysql # not compatible
query I rowsort label-2769
SELECT COALESCE ( - 82, + + CAST ( + + COUNT ( * ) AS INTEGER ) * - + 34 + - + 49 * ( + - 76 ), 91 ) col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT - - 12 + 66 + + + 68 + + + MAX( 56 ) + - - 90 + 31 * - + 95
----
-2653

skipif mysql # not compatible
query I rowsort label-2770
SELECT - - 12 + 66 + + + 68 + + + MAX ( 56 ) + - - 90 + 31 * - + 95
----
-2653

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2772
SELECT + 58 * + 52 + + + 32 + - - COUNT( * ) + + CASE - + 41 WHEN + 54 THEN + 70 WHEN - + 88 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2772
SELECT + 58 * + 52 + + + 32 + - - COUNT ( * ) + + CASE - + 41 WHEN + 54 THEN + 70 WHEN - + 88 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2773
SELECT ALL 49 * + COALESCE ( - - 25, - + ( - ( + COUNT( * ) ) ) + - ( 95 ), - + 34 * - + CAST( NULL AS SIGNED ) ) + 47 DIV - COUNT( * ) AS col0
----
1178

skipif mysql # not compatible
query I rowsort label-2773
SELECT ALL 49 * + COALESCE ( - - 25, - + ( - ( + COUNT ( * ) ) ) + - ( 95 ), - + 34 * - + CAST ( NULL AS INTEGER ) ) + 47 / - COUNT ( * ) AS col0
----
1178

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2774
SELECT DISTINCT - 33 * - + CAST( - 76 AS SIGNED ) + 59 + - 49 DIV + 16 AS col0
----
-2452

skipif mysql # not compatible
query I rowsort label-2774
SELECT DISTINCT - 33 * - + CAST ( - 76 AS INTEGER ) + 59 + - 49 / + 16 AS col0
----
-2452

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2775
SELECT 71 DIV - + ( + - 40 ) + + - NULLIF ( - COUNT( * ), + 87 * + + 25 - AVG ( + 62 ) ) + - - 22 + - - 91 + - - COUNT( * ) AS col1
----
116

skipif mysql # not compatible
query I rowsort label-2775
SELECT 71 / - + ( + - 40 ) + + - NULLIF ( - COUNT ( * ), + 87 * + + 25 - AVG ( + 62 ) ) + - - 22 + - - 91 + - - COUNT ( * ) AS col1
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT ALL + + MIN( + - COALESCE ( + 86, - + 26 ) ) * - - 75 + ( - + COUNT( * ) ) + 97
----
-6354

skipif mysql # not compatible
query I rowsort label-2776
SELECT ALL + + MIN ( + - COALESCE ( + 86, - + 26 ) ) * - - 75 + ( - + COUNT ( * ) ) + 97
----
-6354

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2777
SELECT DISTINCT - + COUNT( * ) * CASE + 20 WHEN - MAX( ALL + + 18 ) + + - 44 * + - 86 + - 9 THEN NULL WHEN - 60 * 9 - NULLIF ( - 36, + 78 * + - 7 + + + 88 ) THEN 0 WHEN 78 THEN - - 7 * + 71 * + 90 * + + 16 ELSE 79 + + CAST( + 86 AS SIGNED ) * CASE + MAX( ALL - 28 ) WHEN - 17 THEN - - 64 * + 92 END + + 89 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2777
SELECT DISTINCT - + COUNT ( * ) * CASE + 20 WHEN - MAX ( ALL + + 18 ) + + - 44 * + - 86 + - 9 THEN NULL WHEN - 60 * 9 - NULLIF ( - 36, + 78 * + - 7 + + + 88 ) THEN 0 WHEN 78 THEN - - 7 * + 71 * + 90 * + + 16 ELSE 79 + + CAST ( + 86 AS INTEGER ) * CASE + MAX ( ALL - 28 ) WHEN - 17 THEN - - 64 * + 92 END + + 89 END AS col1
----
NULL

query I rowsort
SELECT ALL - 61 * + + 34 + - 24 AS col2
----
-2098

query I rowsort
SELECT + + 5 * - 81 + - 24 AS col2
----
-429

onlyif mysql # DIV for integer division: 
query I rowsort label-2780
SELECT - - 36 + 6 + 4 DIV + 44
----
42

skipif mysql # not compatible
query I rowsort label-2780
SELECT - - 36 + 6 + 4 / + 44
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-2781
SELECT + + 39 * ( + - ( + 33 ) ) + 80 - - 83, + COUNT( * ) AS col0
----
-1124
1

skipif mysql # not compatible
query II rowsort label-2781
SELECT + + 39 * ( + - ( + 33 ) ) + 80 - - 83, + COUNT ( * ) AS col0
----
-1124
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2782
SELECT ALL + - 63, - MIN( DISTINCT 43 ) * 23 * - 10 + 65 + - - 67 AS col1
----
-63
10022

skipif mysql # not compatible
query II rowsort label-2782
SELECT ALL + - 63, - MIN ( DISTINCT 43 ) * 23 * - 10 + 65 + - - 67 AS col1
----
-63
10022

query I rowsort
SELECT + 7 * 32
----
224

query I rowsort
SELECT ALL 46 * - 53
----
-2438

query I rowsort
SELECT - 61 * + + 16 AS col0
----
-976

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2786
SELECT + 67 * COALESCE ( - COUNT( DISTINCT + 1 ), - 85 + - 70 ) * 18 DIV - 19 AS col2
----
63

skipif mysql # not compatible
query I rowsort label-2786
SELECT + 67 * COALESCE ( - COUNT ( DISTINCT + 1 ), - 85 + - 70 ) * 18 / - 19 AS col2
----
63

query I rowsort
SELECT ALL 72 * + ( 66 )
----
4752

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT - MIN( 21 ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-2788
SELECT - MIN ( 21 ) AS col1
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2789
SELECT ALL 36 * COUNT( * ) DIV - - 38 AS col2, - ( ( 46 ) ) + + 63 * - 94 AS col1
----
0
-5968

skipif mysql # not compatible
query II rowsort label-2789
SELECT ALL 36 * COUNT ( * ) / - - 38 AS col2, - ( ( 46 ) ) + + 63 * - 94 AS col1
----
0
-5968

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT ALL COUNT( * ) + + MIN( - 65 ) + - + 63 + 3 AS col0
----
-124

skipif mysql # not compatible
query I rowsort label-2791
SELECT ALL COUNT ( * ) + + MIN ( - 65 ) + - + 63 + 3 AS col0
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT - ( - + COALESCE ( + 89, - ( + + 32 ) * 19 * + 39 + - ( 3 ) + + ( - 48 ) * + + 14, - COUNT( * ) ) ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-2792
SELECT - ( - + COALESCE ( + 89, - ( + + 32 ) * 19 * + 39 + - ( 3 ) + + ( - 48 ) * + + 14, - COUNT ( * ) ) ) AS col2
----
89

query I rowsort
SELECT + 1 + - 47 + - - 99
----
53

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

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

query I rowsort
SELECT - 53 + - 67 * - 10
----
617

query I rowsort
SELECT - 70 + - 5
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-2797
SELECT - COUNT( * ) + 84 AS col1, 11 AS col1
----
83
11

skipif mysql # not compatible
query II rowsort label-2797
SELECT - COUNT ( * ) + 84 AS col1, 11 AS col1
----
83
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2798
SELECT - CAST( - 42 AS SIGNED )
----
42

skipif mysql # not compatible
query I rowsort label-2798
SELECT - CAST ( - 42 AS INTEGER )
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2799
SELECT + 53 DIV - 7, + COUNT( * ) AS col0
----
-7
1

skipif mysql # not compatible
query II rowsort label-2799
SELECT + 53 / - 7, + COUNT ( * ) AS col0
----
-7
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2800
SELECT DISTINCT 47 DIV + 50 * + 22 + - 5 + - 89 + - 88 * 96
----
-8542

skipif mysql # not compatible
query I rowsort label-2800
SELECT DISTINCT 47 / + 50 * + 22 + - 5 + - 89 + - 88 * 96
----
-8542

query I rowsort
SELECT - - 75 + + 25 AS col1
----
100

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2803
SELECT ALL + - 88 DIV ( - 36 ) - 12 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-2803
SELECT ALL + - 88 / ( - 36 ) - 12 AS col2
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2804
SELECT + + 15 * MIN( DISTINCT + - 52 ) * - - CAST( NULL AS SIGNED ) * - 98 + + 76 + - 78 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2804
SELECT + + 15 * MIN ( DISTINCT + - 52 ) * - - CAST ( NULL AS INTEGER ) * - 98 + + 76 + - 78 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2805
SELECT - COUNT( * ) + + - 61 + 30 AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-2805
SELECT - COUNT ( * ) + + - 61 + 30 AS col0
----
-32

query I rowsort
SELECT ALL - + 22 * 79 * + 92
----
-159896

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

query I rowsort
SELECT DISTINCT - 37 * + 50 * - - 72
----
-133200

onlyif mysql # aggregate syntax: 
query I rowsort label-2809
SELECT ALL - CASE - + 47 WHEN - 24 THEN NULL WHEN - 3 THEN - COUNT( * ) ELSE NULL END * - - COUNT( + + 58 ) * - 33 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2809
SELECT ALL - CASE - + 47 WHEN - 24 THEN NULL WHEN - 3 THEN - COUNT ( * ) ELSE NULL END * - - COUNT ( + + 58 ) * - 33 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT ALL + ( - CASE 42 WHEN - COUNT( * ) THEN 93 * + 7 + 21 + 92 * - - COUNT( * ) * 52 * - - 98 * - 96 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2810
SELECT ALL + ( - CASE 42 WHEN - COUNT ( * ) THEN 93 * + 7 + 21 + 92 * - - COUNT ( * ) * 52 * - - 98 * - 96 ELSE NULL END )
----
NULL

query I rowsort
SELECT - + 7 + + ( - 23 ) AS col0
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-2812
SELECT - 61 DIV + 58
----
-1

skipif mysql # not compatible
query I rowsort label-2812
SELECT - 61 / + 58
----
-1

query I rowsort
SELECT - 79 * 97 col2
----
-7663

query I rowsort
SELECT + 43 * - + 22
----
-946

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2815
SELECT NULLIF ( + + SUM( + - 52 ), - 26 + - + ( 62 ) ) AS col0, CAST( + + 53 AS SIGNED ) AS col2
----
-52
53

skipif mysql # not compatible
query II rowsort label-2815
SELECT NULLIF ( + + SUM ( + - 52 ), - 26 + - + ( 62 ) ) AS col0, CAST ( + + 53 AS INTEGER ) AS col2
----
-52
53

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

skipif mysql # not compatible
query I rowsort label-2816
SELECT 41 * CAST ( NULL AS INTEGER ) + - + ( + 92 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2817
SELECT ALL 25 DIV - + 37 col1
----
0

skipif mysql # not compatible
query I rowsort label-2817
SELECT ALL 25 / - + 37 col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2818
SELECT 74 DIV COUNT( * ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-2818
SELECT 74 / COUNT ( * ) AS col2
----
74

query I rowsort
SELECT ALL 43 + - - 68 AS col2
----
111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2820
SELECT ALL 19 + + 20 * - - 83 + - - 74 * CAST( - 82 AS SIGNED ) AS col1
----
-4389

skipif mysql # not compatible
query I rowsort label-2820
SELECT ALL 19 + + 20 * - - 83 + - - 74 * CAST ( - 82 AS INTEGER ) AS col1
----
-4389

onlyif mysql # aggregate syntax: 
query I rowsort label-2821
SELECT DISTINCT MAX( - 82 ) + 7
----
-75

skipif mysql # not compatible
query I rowsort label-2821
SELECT DISTINCT MAX ( - 82 ) + 7
----
-75

query II rowsort
SELECT DISTINCT 17 AS col0, 94
----
17
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2823
SELECT DISTINCT - 97 + - COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-2823
SELECT DISTINCT - 97 + - COUNT ( * )
----
-98

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

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

query I rowsort
SELECT ALL 83 + + 54
----
137

query II rowsort
SELECT - 26 AS col0, + 90 AS col1
----
-26
90

query II rowsort
SELECT 41 AS col2, 18 + - - 19
----
41
37

query I rowsort
SELECT 99 * - 44 * - - COALESCE ( - 54, - 3 * 39 + 6 + - 55 ) AS col0
----
235224

query II rowsort
SELECT ALL 89 AS col0, 82 + - + 89 col0
----
89
-7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2830
SELECT ALL CAST( NULL AS DECIMAL ) + + COUNT( ALL + 99 ) + - + 6 * - 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2830
SELECT ALL CAST ( NULL AS REAL ) + + COUNT ( ALL + 99 ) + - + 6 * - 17 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT + COUNT( * ) + - 83 * COUNT( * ) col0
----
-82

skipif mysql # not compatible
query I rowsort label-2831
SELECT + COUNT ( * ) + - 83 * COUNT ( * ) col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT COUNT( DISTINCT + ( - 96 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2832
SELECT COUNT ( DISTINCT + ( - 96 ) )
----
1

query I rowsort
SELECT ALL 56 - + 99 * + - 34 * 46 + + 21
----
154913

query I rowsort
SELECT 19 * - - 80 * + 46 * + - 51
----
-3565920

onlyif mysql # DIV for integer division: 
query II rowsort label-2835
SELECT - 86 DIV - + ( - 54 ) + + + 97 * + ( + 5 ) col1, 51 AS col1
----
484
51

skipif mysql # not compatible
query II rowsort label-2835
SELECT - 86 / - + ( - 54 ) + + + 97 * + ( + 5 ) col1, 51 AS col1
----
484
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2836
SELECT ALL - COALESCE ( - 25, NULLIF ( + ( 69 ), NULLIF ( - COUNT( * ), - 85 ) ) ) col2, + 15 + 75 + - CAST( NULL AS SIGNED ) / COUNT( * ) / + COUNT( * )
----
25
NULL

skipif mysql # not compatible
query II rowsort label-2836
SELECT ALL - COALESCE ( - 25, NULLIF ( + ( 69 ), NULLIF ( - COUNT ( * ), - 85 ) ) ) col2, + 15 + 75 + - CAST ( NULL AS INTEGER ) / COUNT ( * ) / + COUNT ( * )
----
25
NULL

query I rowsort
SELECT ALL 83 * + 23
----
1909

query I rowsort
SELECT - 53 + - + 14 + 41 - + 67 / + - ( - - CASE 53 WHEN + - 54 THEN + 31 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT - 11 * - 69 - + + ( - + COUNT( * ) ) + 3 AS col1
----
763

skipif mysql # not compatible
query I rowsort label-2839
SELECT - 11 * - 69 - + + ( - + COUNT ( * ) ) + 3 AS col1
----
763

query I rowsort
SELECT ALL - - 94 * + ( - 18 ) AS col1
----
-1692

onlyif mysql # aggregate syntax: 
query II rowsort label-2841
SELECT + 76 * COUNT( * ) * + + 27 AS col1, + 32 AS col0
----
2052
32

skipif mysql # not compatible
query II rowsort label-2841
SELECT + 76 * COUNT ( * ) * + + 27 AS col1, + 32 AS col0
----
2052
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2842
SELECT + + 2 * + + 28 + + - MIN( ALL 30 ) + 31
----
57

skipif mysql # not compatible
query I rowsort label-2842
SELECT + + 2 * + + 28 + + - MIN ( ALL 30 ) + 31
----
57

query I rowsort
SELECT DISTINCT - - ( + 13 ) AS col2
----
13

query I rowsort
SELECT - 42 * 46 - + - 94
----
-1838

query I rowsort
SELECT 67 * 64
----
4288

query II rowsort
SELECT ALL - - 86 AS col1, + 51 AS col2
----
86
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2847
SELECT DISTINCT - ( + + NULLIF ( NULLIF ( + 20, 4 * - COUNT( * ) / + 23 ), 29 + - 22 ) ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-2847
SELECT DISTINCT - ( + + NULLIF ( NULLIF ( + 20, 4 * - COUNT ( * ) / + 23 ), 29 + - 22 ) ) AS col2
----
-20

query I rowsort
SELECT 92 * 99 + - 29 + - 13 * + + 32 AS col0
----
8663

onlyif mysql # aggregate syntax: 
query I rowsort label-2849
SELECT 0 * - 3 * SUM( + ( - ( 47 ) ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2849
SELECT 0 * - 3 * SUM ( + ( - ( 47 ) ) ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2850
SELECT 55 * 11 - ( + 24 ) DIV - + 31 col2
----
605

skipif mysql # not compatible
query I rowsort label-2850
SELECT 55 * 11 - ( + 24 ) / - + 31 col2
----
605

onlyif mysql # aggregate syntax: 
query I rowsort label-2851
SELECT DISTINCT + MAX( + - ( + - 2 ) ) * - 64 * 28 AS col0
----
-3584

skipif mysql # not compatible
query I rowsort label-2851
SELECT DISTINCT + MAX ( + - ( + - 2 ) ) * - 64 * 28 AS col0
----
-3584

query I rowsort
SELECT ALL - 10 + - - 32 - - - 22
----
0

query I rowsort
SELECT ALL + 55 * - 13
----
-715

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2854
SELECT ALL - ( - COUNT( ALL - - 49 ) ) + CASE + + 12 WHEN + - ( - 55 ) * - - 58 THEN + 37 - + - 6 * + CAST( + + 4 AS SIGNED ) WHEN - ( + 24 ) THEN - 71 END, 56 * - 91 + - 5 + 71 * - 69 + + + 59 * - + COUNT( * ) * COUNT( * ) AS col1
----
NULL
-10059

skipif mysql # not compatible
query II rowsort label-2854
SELECT ALL - ( - COUNT ( ALL - - 49 ) ) + CASE + + 12 WHEN + - ( - 55 ) * - - 58 THEN + 37 - + - 6 * + CAST ( + + 4 AS INTEGER ) WHEN - ( + 24 ) THEN - 71 END, 56 * - 91 + - 5 + 71 * - 69 + + + 59 * - + COUNT ( * ) * COUNT ( * ) AS col1
----
NULL
-10059

query I rowsort
SELECT ALL - 10 + + 3 AS col1
----
-7

query I rowsort
SELECT DISTINCT + 38 * - - 59 AS col0
----
2242

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT ALL SUM( 66 ) col1
----
66

skipif mysql # not compatible
query I rowsort label-2857
SELECT ALL SUM ( 66 ) col1
----
66

query I rowsort
SELECT 99 + - 87 * + 96 AS col2
----
-8253

query I rowsort
SELECT 37 + + ( - 16 )
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2860
SELECT DISTINCT + NULLIF ( - COALESCE ( - - 10, + + 15 ), - + COUNT( * ) * + 48 + - NULLIF ( + 26, 10 ) ) DIV - COUNT( * ) + - - 75 + - - ( COUNT( + ( + ( + 40 ) ) ) ) DIV + + 37 * + - 98
----
85

skipif mysql # not compatible
query I rowsort label-2860
SELECT DISTINCT + NULLIF ( - COALESCE ( - - 10, + + 15 ), - + COUNT ( * ) * + 48 + - NULLIF ( + 26, 10 ) ) / - COUNT ( * ) + - - 75 + - - ( COUNT ( + ( + ( + 40 ) ) ) ) / + + 37 * + - 98
----
85

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2862
SELECT DISTINCT MAX( DISTINCT - 72 ) - CASE + - 49 WHEN NULLIF ( + 98, + + ( + CASE - 18 WHEN ( - 10 ) THEN + 49 WHEN ( 1 ) THEN NULL END ) ) THEN + NULLIF ( + 42, - - CASE + 79 WHEN - 85 THEN - 4 ELSE + + 22 * + - CASE + - 7 WHEN + 14 THEN - NULLIF ( 27, - 48 * + 47 - - COALESCE ( + 76, - 15, 64, + CAST( - 84 AS SIGNED ) ) ) END END * + CASE ( - 76 ) + - 7 * NULLIF ( + 39, - 60 + CAST( NULL AS SIGNED ) * 76 ) WHEN 51 THEN 92 * NULLIF ( SUM( DISTINCT + CAST( NULL AS SIGNED ) ), - AVG ( DISTINCT 48 ) * + 99 ) + + 70 * 44 WHEN 41 THEN 5 + + 40 END ) END + COUNT( * ) / + 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2862
SELECT DISTINCT MAX ( DISTINCT - 72 ) - CASE + - 49 WHEN NULLIF ( + 98, + + ( + CASE - 18 WHEN ( - 10 ) THEN + 49 WHEN ( 1 ) THEN NULL END ) ) THEN + NULLIF ( + 42, - - CASE + 79 WHEN - 85 THEN - 4 ELSE + + 22 * + - CASE + - 7 WHEN + 14 THEN - NULLIF ( 27, - 48 * + 47 - - COALESCE ( + 76, - 15, 64, + CAST ( - 84 AS INTEGER ) ) ) END END * + CASE ( - 76 ) + - 7 * NULLIF ( + 39, - 60 + CAST ( NULL AS INTEGER ) * 76 ) WHEN 51 THEN 92 * NULLIF ( SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ), - AVG ( DISTINCT 48 ) * + 99 ) + + 70 * 44 WHEN 41 THEN 5 + + 40 END ) END + COUNT ( * ) / + 43 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2863
SELECT - 57 + - CASE 89 WHEN + SUM( DISTINCT 7 ) * + ( + - 71 ) + - COUNT( * ) + - - 61 THEN NULL WHEN - 83 + + 75 THEN NULL ELSE - 68 DIV 15 - + 82 * + 84 END
----
6835

skipif mysql # not compatible
query I rowsort label-2863
SELECT - 57 + - CASE 89 WHEN + SUM ( DISTINCT 7 ) * + ( + - 71 ) + - COUNT ( * ) + - - 61 THEN NULL WHEN - 83 + + 75 THEN NULL ELSE - 68 / 15 - + 82 * + 84 END
----
6835

query I rowsort
SELECT 98 * - 93
----
-9114

query I rowsort
SELECT 57 + 60 * - 65 AS col2
----
-3843

query I rowsort
SELECT DISTINCT + - 80 - + 56 * + + 28 AS col2
----
-1648

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2867
SELECT CASE - - 78 WHEN - 29 - 21 + - 96 * - 84 * 45 * 7 THEN - + COALESCE ( - 17, + COUNT( * ) ) * COALESCE ( 60, COUNT( * ) * - CAST( + - 18 AS SIGNED ) + + 10 + + + 15 + + 16 + - 94 / 9 + 40 ) + - - 45 / COUNT( * ) + + 95 * + 37 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2867
SELECT CASE - - 78 WHEN - 29 - 21 + - 96 * - 84 * 45 * 7 THEN - + COALESCE ( - 17, + COUNT ( * ) ) * COALESCE ( 60, COUNT ( * ) * - CAST ( + - 18 AS INTEGER ) + + 10 + + + 15 + + 16 + - 94 / 9 + 40 ) + - - 45 / COUNT ( * ) + + 95 * + 37 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2868
SELECT 33 + 98 DIV - + 33
----
31

skipif mysql # not compatible
query I rowsort label-2868
SELECT 33 + 98 / - + 33
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2869
SELECT ALL - CASE - - 7 WHEN - - 98 * - COUNT( * ) / + - CASE - 3 WHEN - ( - - COUNT( * ) ) THEN + - MAX( - + 30 ) * 78 ELSE NULL END THEN + 9 ELSE - 38 END * + + 84 AS col1
----
3192

skipif mysql # not compatible
query I rowsort label-2869
SELECT ALL - CASE - - 7 WHEN - - 98 * - COUNT ( * ) / + - CASE - 3 WHEN - ( - - COUNT ( * ) ) THEN + - MAX ( - + 30 ) * 78 ELSE NULL END THEN + 9 ELSE - 38 END * + + 84 AS col1
----
3192

query I rowsort
SELECT DISTINCT + 59 * - + 8
----
-472

query I rowsort
SELECT + 51 * - 55
----
-2805

query I rowsort
SELECT 13 * - - 33 * 40
----
17160

query I rowsort
SELECT ALL + + 38 * + 18 AS col2
----
684

query I rowsort
SELECT ALL - + ( - 90 ) AS col2
----
90

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

skipif mysql # not compatible
query I rowsort label-2875
SELECT ALL COUNT ( * ) / + 56 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2876
SELECT - 40 - - CASE - - 98 WHEN - + 30 THEN NULL WHEN 55 THEN + 62 * + 48 * - 92 * - 29 + - SUM( ALL - + CAST( NULL AS SIGNED ) ) / + + 44 + + 31 END - 82 * + 64 + + 76 * - + 60 + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2876
SELECT - 40 - - CASE - - 98 WHEN - + 30 THEN NULL WHEN 55 THEN + 62 * + 48 * - 92 * - 29 + - SUM ( ALL - + CAST ( NULL AS INTEGER ) ) / + + 44 + + 31 END - 82 * + 64 + + 76 * - + 60 + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL - ( - 3 ) * 29 AS col2
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-2878
SELECT + - 5 DIV - + 89
----
0

skipif mysql # not compatible
query I rowsort label-2878
SELECT + - 5 / - + 89
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2879
SELECT + COALESCE ( + 87, CAST( + COALESCE ( - ( - - 29 ), - - 23 ) AS SIGNED ), - MAX( 53 ) ) col0
----
87

skipif mysql # not compatible
query I rowsort label-2879
SELECT + COALESCE ( + 87, CAST ( + COALESCE ( - ( - - 29 ), - - 23 ) AS INTEGER ), - MAX ( 53 ) ) col0
----
87

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

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

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

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

query II rowsort
SELECT + ( 5 ) + - 29, 40 AS col0
----
-24
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2883
SELECT ALL + SUM( DISTINCT - - 81 ) col1
----
81

skipif mysql # not compatible
query I rowsort label-2883
SELECT ALL + SUM ( DISTINCT - - 81 ) col1
----
81

query I rowsort
SELECT + ( - 89 ) * + 40 AS col0
----
-3560

onlyif mysql # aggregate syntax: 
query I rowsort label-2885
SELECT DISTINCT SUM( ALL 26 ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-2885
SELECT DISTINCT SUM ( ALL 26 ) AS col0
----
26

query I rowsort
SELECT ALL + 16 - - 47 AS col1
----
63

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2888
SELECT ALL + ( + 37 ) * + + MAX( ALL 97 ) + - COUNT( * ) AS col0
----
3588

skipif mysql # not compatible
query I rowsort label-2888
SELECT ALL + ( + 37 ) * + + MAX ( ALL 97 ) + - COUNT ( * ) AS col0
----
3588

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2889
SELECT + 99 - + 50 * - - 52 * - 58 + + + COUNT( * ) AS col0, 92 DIV - 32 + 74 * - - 13
----
150900
960

skipif mysql # not compatible
query II rowsort label-2889
SELECT + 99 - + 50 * - - 52 * - 58 + + + COUNT ( * ) AS col0, 92 / - 32 + 74 * - - 13
----
150900
960

query I rowsort
SELECT - 99 * 97 col2
----
-9603

query II rowsort
SELECT DISTINCT + 76 AS col0, - ( + 66 ) col2
----
76
-66

query I rowsort
SELECT - + 77 * + 74 + 62 + - 43
----
-5679

query I rowsort
SELECT - 44 - + 69
----
-113

query I rowsort
SELECT DISTINCT ( + - 73 ) col1
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2895
SELECT ALL CASE 49 WHEN 42 THEN NULL WHEN + + ( ( - 30 ) ) THEN + CAST( NULL AS SIGNED ) ELSE 67 END
----
67

skipif mysql # not compatible
query I rowsort label-2895
SELECT ALL CASE 49 WHEN 42 THEN NULL WHEN + + ( ( - 30 ) ) THEN + CAST ( NULL AS INTEGER ) ELSE 67 END
----
67

query I rowsort
SELECT ALL 2 * 59 AS col0
----
118

query II rowsort
SELECT DISTINCT - 59 * - 36 + - + 85 AS col2, 10
----
2039
10

query I rowsort
SELECT - - 51 + + ( + ( + + 6 ) ) AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2899
SELECT - + CASE - COUNT( * ) WHEN + SUM( - - 60 ) * + 46 THEN 74 ELSE NULL END + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-2899
SELECT - + CASE - COUNT ( * ) WHEN + SUM ( - - 60 ) * + 46 THEN 74 ELSE NULL END + 23
----
NULL

query I rowsort
SELECT ALL 91 * - NULLIF ( 51, - ( + 38 ) + - 75 + 43 )
----
-4641

onlyif mysql # DIV for integer division: 
query I rowsort label-2901
SELECT ALL - 21 DIV + + 30 + 56
----
56

skipif mysql # not compatible
query I rowsort label-2901
SELECT ALL - 21 / + + 30 + 56
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT ALL 47 * 11 * + 3 + - MAX( DISTINCT ( 50 ) ) AS col2
----
1501

skipif mysql # not compatible
query I rowsort label-2902
SELECT ALL 47 * 11 * + 3 + - MAX ( DISTINCT ( 50 ) ) AS col2
----
1501

query I rowsort
SELECT DISTINCT 79 * 44 + 29
----
3505

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

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

query I rowsort
SELECT + 37 + 80
----
117

query I rowsort
SELECT - 48 * + - 40
----
1920

query I rowsort
SELECT + 54 * + + 70
----
3780

query II rowsort
SELECT + COALESCE ( - 46, + 19, - - 73 ) AS col1, 90 col0
----
-46
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2910
SELECT + CASE + - COUNT( * ) WHEN + COUNT( * ) - COUNT( * ) THEN + + 77 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2910
SELECT + CASE + - COUNT ( * ) WHEN + COUNT ( * ) - COUNT ( * ) THEN + + 77 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2911
SELECT + CAST( - MIN( - CASE - 52 WHEN + - 77 * - 98 + + 31 THEN + + 93 WHEN + + 83 THEN 47 / 8 END ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2911
SELECT + CAST ( - MIN ( - CASE - 52 WHEN + - 77 * - 98 + + 31 THEN + + 93 WHEN + + 83 THEN 47 / 8 END ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT CASE MAX( ALL - 17 ) WHEN + - MIN( - - 3 ) + - - 90 THEN + COUNT( * ) WHEN + + 17 * 51 * - 56 * 0 + + + 74 * - 51 THEN 67 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2912
SELECT CASE MAX ( ALL - 17 ) WHEN + - MIN ( - - 3 ) + - - 90 THEN + COUNT ( * ) WHEN + + 17 * 51 * - 56 * 0 + + + 74 * - 51 THEN 67 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2913
SELECT ALL 12 * - - MAX( - + 96 )
----
-1152

skipif mysql # not compatible
query I rowsort label-2913
SELECT ALL 12 * - - MAX ( - + 96 )
----
-1152

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2915
SELECT ALL COALESCE ( - 35, 75, + - ( - 68 ) + + COUNT( * ) + - + 24 + + 63 + - - 42 ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-2915
SELECT ALL COALESCE ( - 35, 75, + - ( - 68 ) + + COUNT ( * ) + - + 24 + + 63 + - - 42 ) AS col2
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2916
SELECT ALL ( ( + COUNT( * ) ) ) * + ( + CAST( NULL AS DECIMAL ) ) * + + MAX( ALL 33 ) / + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2916
SELECT ALL ( ( + COUNT ( * ) ) ) * + ( + CAST ( NULL AS REAL ) ) * + + MAX ( ALL 33 ) / + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2917
SELECT + 58 * + 80 * CAST( NULL AS DECIMAL ) * - 34 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2917
SELECT + 58 * + 80 * CAST ( NULL AS REAL ) * - 34 AS col0
----
NULL

query II rowsort
SELECT + 76 + + - 17 col0, - 6 * - - 16 * - 1
----
59
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2919
SELECT DISTINCT COUNT( ALL - 30 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2919
SELECT DISTINCT COUNT ( ALL - 30 ) AS col2
----
1

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2921
SELECT ALL - 76 AS col2, ( 29 ) DIV 96 AS col2
----
-76
0

skipif mysql # not compatible
query II rowsort label-2921
SELECT ALL - 76 AS col2, ( 29 ) / 96 AS col2
----
-76
0

query II rowsort
SELECT ALL 46 AS col2, 56 AS col0
----
46
56

query I rowsort
SELECT - + 90 + 4 AS col0
----
-86

query I rowsort
SELECT - NULLIF ( - 47, 30 ) * - - 52 * - 10 * - 95 + - + 37 AS col0
----
2321763

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2925
SELECT ALL - COUNT( * ) + 72 + + COUNT( - - 55 ) DIV 94 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-2925
SELECT ALL - COUNT ( * ) + 72 + + COUNT ( - - 55 ) / 94 AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2926
SELECT - - COUNT( * ) + + ( + 7 )
----
8

skipif mysql # not compatible
query I rowsort label-2926
SELECT - - COUNT ( * ) + + ( + 7 )
----
8

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

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

query I rowsort
SELECT - + 40 + 69 AS col1
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2929
SELECT - - ( NULLIF ( - 43, MIN( - 48 ) ) ) + - 9 + + COALESCE ( + 44, + 54 * - 81, - 8 + + 87 + - 73 * ( - + ( - CAST( NULL AS SIGNED ) ) ) ) * - 49 AS col0
----
-2208

skipif mysql # not compatible
query I rowsort label-2929
SELECT - - ( NULLIF ( - 43, MIN ( - 48 ) ) ) + - 9 + + COALESCE ( + 44, + 54 * - 81, - 8 + + 87 + - 73 * ( - + ( - CAST ( NULL AS INTEGER ) ) ) ) * - 49 AS col0
----
-2208

onlyif mysql # aggregate syntax: 
query I rowsort label-2930
SELECT + COUNT( * ) * + 22 * 75 AS col1
----
1650

skipif mysql # not compatible
query I rowsort label-2930
SELECT + COUNT ( * ) * + 22 * 75 AS col1
----
1650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2931
SELECT DISTINCT - + 71 * + + COALESCE ( + 10, + - CAST( + ( - - CAST( NULL AS SIGNED ) ) AS SIGNED ) * + - 10 + + + 99 - + SUM( DISTINCT + 75 ) ) col1
----
-710

skipif mysql # not compatible
query I rowsort label-2931
SELECT DISTINCT - + 71 * + + COALESCE ( + 10, + - CAST ( + ( - - CAST ( NULL AS INTEGER ) ) AS INTEGER ) * + - 10 + + + 99 - + SUM ( DISTINCT + 75 ) ) col1
----
-710

query I rowsort
SELECT DISTINCT - + 45 + 97 col0
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-2933
SELECT DISTINCT - 61 DIV 67 col2
----
0

skipif mysql # not compatible
query I rowsort label-2933
SELECT DISTINCT - 61 / 67 col2
----
0

query I rowsort
SELECT ALL - - 20 + 52
----
72

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

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

query II rowsort
SELECT 89 + 19 * 62, 56 AS col1
----
1267
56

query I rowsort
SELECT 92 * - 73
----
-6716

query I rowsort
SELECT 28 * 3 * 8
----
672

query I rowsort
SELECT 34 + + 36 AS col2
----
70

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

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

query I rowsort
SELECT 52 * - 66 + + 55 AS col1
----
-3377

onlyif mysql # aggregate syntax: 
query I rowsort label-2943
SELECT COALESCE ( - 81, - + MIN( ALL - 6 ), - - COUNT( * ) ) + + 56
----
-25

skipif mysql # not compatible
query I rowsort label-2943
SELECT COALESCE ( - 81, - + MIN ( ALL - 6 ), - - COUNT ( * ) ) + + 56
----
-25

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

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

query I rowsort
SELECT 27 + - 77 AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT 33 * - COUNT( DISTINCT 64 )
----
-33

skipif mysql # not compatible
query I rowsort label-2946
SELECT 33 * - COUNT ( DISTINCT 64 )
----
-33

query I rowsort
SELECT DISTINCT ( + 28 ) * 4 - + 1 AS col0
----
111

onlyif mysql # DIV for integer division: 
query I rowsort label-2948
SELECT DISTINCT 78 DIV + 96 * CASE + 95 WHEN - 67 THEN 25 ELSE + ( + 90 ) END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2948
SELECT DISTINCT 78 / + 96 * CASE + 95 WHEN - 67 THEN 25 ELSE + ( + 90 ) END AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT + NULLIF ( ( + - 55 ), 18 * - COUNT( * ) * + - 60 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-2949
SELECT + NULLIF ( ( + - 55 ), 18 * - COUNT ( * ) * + - 60 ) AS col2
----
-55

query I rowsort
SELECT + NULLIF ( + CASE 38 WHEN - - 69 * 90 THEN - + 77 ELSE CASE + ( - 50 ) WHEN + CASE 10 WHEN 36 THEN + 62 END THEN NULL WHEN - + 85 * + 13 THEN + 39 ELSE NULL END END, + + 8 ) * - - 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2951
SELECT ALL - 81 * + COUNT( * ) + - 81
----
-162

skipif mysql # not compatible
query I rowsort label-2951
SELECT ALL - 81 * + COUNT ( * ) + - 81
----
-162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2952
SELECT DISTINCT ( - - 84 ) + - 8 DIV + COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-2952
SELECT DISTINCT ( - - 84 ) + - 8 / + COUNT ( * )
----
76

query I rowsort
SELECT 90 * - 67 AS col1
----
-6030

query I rowsort
SELECT ALL + 23 + ( + COALESCE ( + + 81, - - 18 ) ) - 95
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2955
SELECT - COALESCE ( - 75, - 60 DIV - 13 - 55, - 17 ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-2955
SELECT - COALESCE ( - 75, - 60 / - 13 - 55, - 17 ) AS col2
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2956
SELECT ALL + 54 + + 46 * - NULLIF ( CAST( - MIN( - 39 ) AS SIGNED ), - 56 ) AS col1
----
-1740

skipif mysql # not compatible
query I rowsort label-2956
SELECT ALL + 54 + + 46 * - NULLIF ( CAST ( - MIN ( - 39 ) AS INTEGER ), - 56 ) AS col1
----
-1740

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2958
SELECT DISTINCT - 32 * - COUNT( * ) * - 57 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2958
SELECT DISTINCT - 32 * - COUNT ( * ) * - 57 + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2959
SELECT MIN( DISTINCT CASE ( + 51 ) WHEN 59 * - 40 * 4 * - + 36 THEN ( - 48 ) ELSE + 79 END ) - + 98 - 94 AS col1
----
-113

skipif mysql # not compatible
query I rowsort label-2959
SELECT MIN ( DISTINCT CASE ( + 51 ) WHEN 59 * - 40 * 4 * - + 36 THEN ( - 48 ) ELSE + 79 END ) - + 98 - 94 AS col1
----
-113

query I rowsort
SELECT ALL 25 + - 57 * + NULLIF ( - 34, + 30 )
----
1963

query I rowsort
SELECT DISTINCT + 4 * + 23 AS col2
----
92

query II rowsort
SELECT - 9 * + - 39 AS col1, - 28 * - 75 + - + 3 + 24 col0
----
351
2121

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT DISTINCT - COUNT( * ) * - ( + + 24 ) * + ( - 10 ) AS col0
----
-240

skipif mysql # not compatible
query I rowsort label-2963
SELECT DISTINCT - COUNT ( * ) * - ( + + 24 ) * + ( - 10 ) AS col0
----
-240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2964
SELECT + 27 DIV - - 85 + - + COUNT( * ) * - + 2 * + 24
----
48

skipif mysql # not compatible
query I rowsort label-2964
SELECT + 27 / - - 85 + - + COUNT ( * ) * - + 2 * + 24
----
48

query I rowsort
SELECT ALL - 2 * 47 col0
----
-94

query I rowsort
SELECT CASE - - 60 WHEN 27 THEN - 33 END + + - 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT - 46 * + MAX( DISTINCT - - 43 ) - + - 58 * + 20 AS col2
----
-818

skipif mysql # not compatible
query I rowsort label-2967
SELECT - 46 * + MAX ( DISTINCT - - 43 ) - + - 58 * + 20 AS col2
----
-818

query I rowsort
SELECT 99 * 48 AS col2
----
4752

query I rowsort
SELECT DISTINCT - 48 - 29 col2
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-2970
SELECT ALL + 57 DIV - 27 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-2970
SELECT ALL + 57 / - 27 AS col0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-2971
SELECT 66 DIV + 52 + 25
----
26

skipif mysql # not compatible
query I rowsort label-2971
SELECT 66 / + 52 + 25
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-2972
SELECT ALL - 63 AS col0, NULLIF ( - 35, 9 ) + + - COUNT( * ) AS col2
----
-63
-36

skipif mysql # not compatible
query II rowsort label-2972
SELECT ALL - 63 AS col0, NULLIF ( - 35, 9 ) + + - COUNT ( * ) AS col2
----
-63
-36

query I rowsort
SELECT 37 + - 37 AS col1
----
0

query I rowsort
SELECT 53 * 40
----
2120

query I rowsort
SELECT 58 * - 73 + 94
----
-4140

query I rowsort
SELECT ALL - 67 * - - 44
----
-2948

query I rowsort
SELECT 43 * + 17 AS col2
----
731

query I rowsort
SELECT ALL 17 + - - 90
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2979
SELECT DISTINCT - - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) * + 32 - + COUNT( * ), - CAST( - 20 AS SIGNED ) + + - 4 AS col0
----
-1
16

skipif mysql # not compatible
query II rowsort label-2979
SELECT DISTINCT - - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) * + 32 - + COUNT ( * ), - CAST ( - 20 AS INTEGER ) + + - 4 AS col0
----
-1
16

query I rowsort
SELECT ALL 41 + + + 97
----
138

query I rowsort
SELECT DISTINCT - - CASE + 52 WHEN - 81 THEN + - 38 WHEN + 58 THEN NULL ELSE NULL END + + - ( + ( - - 58 ) )
----
NULL

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

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

query I rowsort
SELECT ALL - 18 + + + 94
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2984
SELECT - + 13 + - CAST( + 46 AS SIGNED ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-2984
SELECT - + 13 + - CAST ( + 46 AS INTEGER ) AS col1
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-2985
SELECT - - NULLIF ( - + COUNT( * ), - 65 ) + - COUNT( * ) col0, 49
----
-2
49

skipif mysql # not compatible
query II rowsort label-2985
SELECT - - NULLIF ( - + COUNT ( * ), - 65 ) + - COUNT ( * ) col0, 49
----
-2
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT + - 33 - - - CASE - 82 WHEN CASE - CASE + 14 WHEN - + 8 THEN + + COUNT( * ) ELSE NULL END WHEN - 84 THEN - + 99 ELSE - 69 / + - 71 END * - + 71 THEN - COUNT( * ) WHEN 28 THEN NULL END + + 16 + ( 4 ) + + 0 * + - 49 * - ( - 54 ) + 36 * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2986
SELECT + - 33 - - - CASE - 82 WHEN CASE - CASE + 14 WHEN - + 8 THEN + + COUNT ( * ) ELSE NULL END WHEN - 84 THEN - + 99 ELSE - 69 / + - 71 END * - + 71 THEN - COUNT ( * ) WHEN 28 THEN NULL END + + 16 + ( 4 ) + + 0 * + - 49 * - ( - 54 ) + 36 * COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2987
SELECT ALL COUNT( * ) AS col1, 95 * - + 0 AS col2
----
1
0

skipif mysql # not compatible
query II rowsort label-2987
SELECT ALL COUNT ( * ) AS col1, 95 * - + 0 AS col2
----
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2988
SELECT ALL - - NULLIF ( - 77, - 43 + + AVG ( 92 ) ) + + 68 + - SUM( DISTINCT + 86 ) * - 95 col1
----
8161

skipif mysql # not compatible
query I rowsort label-2988
SELECT ALL - - NULLIF ( - 77, - 43 + + AVG ( 92 ) ) + + 68 + - SUM ( DISTINCT + 86 ) * - 95 col1
----
8161

query I rowsort
SELECT ALL + 94 * - COALESCE ( + + 98, - 63 ) + 28 + + ( 48 ) AS col1
----
-9136

query I rowsort
SELECT + COALESCE ( - 63, 43 + - - 48 + 58 ) AS col2
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-2991
SELECT ALL - 77 + - 74 + - 5 DIV + 21 AS col2
----
-151

skipif mysql # not compatible
query I rowsort label-2991
SELECT ALL - 77 + - 74 + - 5 / + 21 AS col2
----
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT + COUNT( * ) + 11 col2
----
12

skipif mysql # not compatible
query I rowsort label-2992
SELECT + COUNT ( * ) + 11 col2
----
12

query I rowsort
SELECT ALL + 66 * + 40 AS col1
----
2640

query II rowsort
SELECT ALL - 85 AS col1, - 56 * - 70
----
-85
3920

query I rowsort
SELECT + 40 + + 78 AS col1
----
118

query I rowsort
SELECT DISTINCT - 75 * + ( - 43 )
----
3225

query I rowsort
SELECT + + 6 * - 59
----
-354

query I rowsort
SELECT + 67 + - + 90
----
-23

query I rowsort
SELECT + - 37 * 3
----
-111

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT - COUNT( + - 91 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3001
SELECT - COUNT ( + - 91 ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3002
SELECT - 31 + + ( + ( - - 57 ) ) DIV + 62 * 99
----
-31

skipif mysql # not compatible
query I rowsort label-3002
SELECT - 31 + + ( + ( - - 57 ) ) / + 62 * 99
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3003
SELECT + 19 * - CAST( - - 55 AS SIGNED )
----
-1045

skipif mysql # not compatible
query I rowsort label-3003
SELECT + 19 * - CAST ( - - 55 AS INTEGER )
----
-1045

onlyif mysql # aggregate syntax: 
query I rowsort label-3004
SELECT DISTINCT SUM( - 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-3004
SELECT DISTINCT SUM ( - 60 )
----
-60

query I rowsort
SELECT ( + 57 ) col0
----
57

query I rowsort
SELECT ALL + ( 35 ) * + 3 AS col0
----
105

onlyif mysql # aggregate syntax: 
query II rowsort label-3007
SELECT - 89 * 32 * + SUM( ALL + 73 ) AS col0, 16 + - + COUNT( * ) - + + 73 AS col0
----
-207904
-58

skipif mysql # not compatible
query II rowsort label-3007
SELECT - 89 * 32 * + SUM ( ALL + 73 ) AS col0, 16 + - + COUNT ( * ) - + + 73 AS col0
----
-207904
-58

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3009
SELECT ALL ( + 3 ) * - 49 * 87 * 86 * + ( - CAST( NULL AS SIGNED ) ) + 3 * - - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-3009
SELECT ALL ( + 3 ) * - 49 * 87 * 86 * + ( - CAST ( NULL AS INTEGER ) ) + 3 * - - 12
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3010
SELECT + 36 - - - COUNT( * ), 25 * - 56 AS col1
----
35
-1400

skipif mysql # not compatible
query II rowsort label-3010
SELECT + 36 - - - COUNT ( * ), 25 * - 56 AS col1
----
35
-1400

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3012
SELECT NULLIF ( - CAST( NULL AS SIGNED ), + - 5 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3012
SELECT NULLIF ( - CAST ( NULL AS INTEGER ), + - 5 )
----
NULL

query I rowsort
SELECT ALL - 64 * 96 + 24
----
-6120

query I rowsort
SELECT ALL 28 * + 70 * + 36 + 62
----
70622

onlyif mysql # aggregate syntax: 
query I rowsort label-3015
SELECT ALL CASE + COUNT( * ) WHEN - - 54 THEN - 84 + - - CASE + 32 WHEN 43 THEN NULL ELSE - 20 END + 81 * 70 * COUNT( * ) WHEN + + CASE WHEN 37 IS NULL THEN - 92 * + 40 * + 77 + 58 END THEN NULL END * + MAX( - - 81 ) * - + 89 + + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-3015
SELECT ALL CASE + COUNT ( * ) WHEN - - 54 THEN - 84 + - - CASE + 32 WHEN 43 THEN NULL ELSE - 20 END + 81 * 70 * COUNT ( * ) WHEN + + CASE WHEN 37 IS NULL THEN - 92 * + 40 * + 77 + 58 END THEN NULL END * + MAX ( - - 81 ) * - + 89 + + 33
----
NULL

query I rowsort
SELECT NULLIF ( + - 81, 78 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT - 99 - - 61 + + ( + 86 ) * 61 + - COUNT( * ) + + - MIN( + + 1 ) * - - 67 * + 99 * 97
----
-638194

skipif mysql # not compatible
query I rowsort label-3017
SELECT - 99 - - 61 + + ( + 86 ) * 61 + - COUNT ( * ) + + - MIN ( + + 1 ) * - - 67 * + 99 * 97
----
-638194

onlyif mysql # DIV for integer division: 
query I rowsort label-3018
SELECT - - 28 DIV + 95 * + 48 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3018
SELECT - - 28 / + 95 * + 48 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3019
SELECT - - COALESCE ( - MAX( + - 67 ), - 50, + - 6 - COUNT( * ) ) * - 28 AS col2
----
-1876

skipif mysql # not compatible
query I rowsort label-3019
SELECT - - COALESCE ( - MAX ( + - 67 ), - 50, + - 6 - COUNT ( * ) ) * - 28 AS col2
----
-1876

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT + 72 * + + 91 + - + MIN( ALL 87 ) + 94 + 42 * - - NULLIF ( + 37, - 50 )
----
8113

skipif mysql # not compatible
query I rowsort label-3021
SELECT + 72 * + + 91 + - + MIN ( ALL 87 ) + 94 + 42 * - - NULLIF ( + 37, - 50 )
----
8113

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT DISTINCT 64 * - COUNT( * ) * + 74 + + 23 * + 10 AS col2
----
-4506

skipif mysql # not compatible
query I rowsort label-3022
SELECT DISTINCT 64 * - COUNT ( * ) * + 74 + + 23 * + 10 AS col2
----
-4506

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3023
SELECT ALL + - 1 * - 95 + - 80 * - CASE ( - + 99 ) WHEN + - COUNT( * ) * - - 72 * COUNT( * ) THEN + 89 WHEN + 46 * + COALESCE ( - ( 57 ), - AVG ( + 73 ) + + + 55 / - - 72 ) + CAST( NULL AS SIGNED ) + 34 * - 77 * - 31 + - - 39 - + 35 * NULLIF ( 98, + 11 + - CAST( NULL AS SIGNED ) * - 97 * + COUNT( 69 ) * - - 34 + - 70 / + 68 + - + 55 - 39 ) THEN - 20 END, - 81 AS col2
----
NULL
-81

skipif mysql # not compatible
query II rowsort label-3023
SELECT ALL + - 1 * - 95 + - 80 * - CASE ( - + 99 ) WHEN + - COUNT ( * ) * - - 72 * COUNT ( * ) THEN + 89 WHEN + 46 * + COALESCE ( - ( 57 ), - AVG ( + 73 ) + + + 55 / - - 72 ) + CAST ( NULL AS INTEGER ) + 34 * - 77 * - 31 + - - 39 - + 35 * NULLIF ( 98, + 11 + - CAST ( NULL AS INTEGER ) * - 97 * + COUNT ( 69 ) * - - 34 + - 70 / + 68 + - + 55 - 39 ) THEN - 20 END, - 81 AS col2
----
NULL
-81

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

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

query I rowsort
SELECT DISTINCT + + 51 * 80
----
4080

onlyif mysql # aggregate syntax: 
query I rowsort label-3026
SELECT DISTINCT + 76 * COUNT( DISTINCT - 25 ) - 22 - - 65 AS col2
----
119

skipif mysql # not compatible
query I rowsort label-3026
SELECT DISTINCT + 76 * COUNT ( DISTINCT - 25 ) - 22 - - 65 AS col2
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT - 15 * - COUNT( ALL - COALESCE ( + 0, + 71 * - - 2 * - - 99 - + - 13 ) ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-3027
SELECT - 15 * - COUNT ( ALL - COALESCE ( + 0, + 71 * - - 2 * - - 99 - + - 13 ) ) AS col2
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3028
SELECT ALL + 37 * + 98 + + COUNT( * ) DIV - 64 * + 93 AS col0
----
3626

skipif mysql # not compatible
query I rowsort label-3028
SELECT ALL + 37 * + 98 + + COUNT ( * ) / - 64 * + 93 AS col0
----
3626

onlyif mysql # aggregate syntax: 
query I rowsort label-3029
SELECT - - SUM( ALL + - 23 ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-3029
SELECT - - SUM ( ALL + - 23 ) AS col0
----
-23

query I rowsort
SELECT - - 40 - 66
----
-26

query I rowsort
SELECT + + 60 * + - 33 AS col2
----
-1980

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT - - 91 + - COUNT( * ) + + 16 + - - 88 * + ( + 34 ) * - 67 * - - 68
----
-13631446

skipif mysql # not compatible
query I rowsort label-3032
SELECT - - 91 + - COUNT ( * ) + + 16 + - - 88 * + ( + 34 ) * - 67 * - - 68
----
-13631446

query I rowsort
SELECT ALL + 22 * 81
----
1782

query I rowsort
SELECT - 2 * 43 AS col1
----
-86

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT - NULLIF ( + COUNT( - + NULLIF ( - 51, + 1 ) ), + + 31 + 34 + 94 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3036
SELECT - NULLIF ( + COUNT ( - + NULLIF ( - 51, + 1 ) ), + + 31 + 34 + 94 ) AS col2
----
-1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3038
SELECT + 72 - - COUNT( * ) + 90 AS col0, + COALESCE ( 90, + COUNT( ALL + - ( - 12 ) ) - 51 * + 51 ) + + 15
----
163
105

skipif mysql # not compatible
query II rowsort label-3038
SELECT + 72 - - COUNT ( * ) + 90 AS col0, + COALESCE ( 90, + COUNT ( ALL + - ( - 12 ) ) - 51 * + 51 ) + + 15
----
163
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3039
SELECT - 42 + CAST( NULL AS SIGNED ) - - 25 - - + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-3039
SELECT - 42 + CAST ( NULL AS INTEGER ) - - 25 - - + 27
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3040
SELECT + 65 * CAST ( NULL AS INTEGER ) * + 29 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3041
SELECT + 24 DIV + - 3
----
-8

skipif mysql # not compatible
query I rowsort label-3041
SELECT + 24 / + - 3
----
-8

query I rowsort
SELECT + 36 + + 44 AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3043
SELECT + 12 + NULLIF ( - - 34, 79 ) * + + MIN( - + 36 ) AS col0
----
-1212

skipif mysql # not compatible
query I rowsort label-3043
SELECT + 12 + NULLIF ( - - 34, 79 ) * + + MIN ( - + 36 ) AS col0
----
-1212

onlyif mysql # DIV for integer division: 
query I rowsort label-3044
SELECT ALL 55 DIV + ( + 35 ) + - - 79
----
80

skipif mysql # not compatible
query I rowsort label-3044
SELECT ALL 55 / + ( + 35 ) + - - 79
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-3045
SELECT DISTINCT - 37 DIV - 23 + - 18 * 77
----
-1385

skipif mysql # not compatible
query I rowsort label-3045
SELECT DISTINCT - 37 / - 23 + - 18 * 77
----
-1385

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3046
SELECT ALL + ( + 38 ) DIV - ( + COUNT( ALL + - ( + 13 ) ) ) + - ( + COUNT( * ) ) DIV - 44 * 43
----
-38

skipif mysql # not compatible
query I rowsort label-3046
SELECT ALL + ( + 38 ) / - ( + COUNT ( ALL + - ( + 13 ) ) ) + - ( + COUNT ( * ) ) / - 44 * 43
----
-38

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3048
SELECT - COUNT( * ) + - + MIN( DISTINCT 1 ) AS col1, - NULLIF ( - 0, + 78 ) + 24 AS col2
----
-2
24

skipif mysql # not compatible
query II rowsort label-3048
SELECT - COUNT ( * ) + - + MIN ( DISTINCT 1 ) AS col1, - NULLIF ( - 0, + 78 ) + 24 AS col2
----
-2
24

query I rowsort
SELECT ( 42 ) * - 13 + 98 AS col1
----
-448

query I rowsort
SELECT ALL - - 36 - 91 + 45 + 22 * - - 92 * + + 63 * - 72 * + 92 AS col2
----
-844639498

query I rowsort
SELECT + 95 - 94 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT ALL - SUM( DISTINCT - 59 )
----
59

skipif mysql # not compatible
query I rowsort label-3052
SELECT ALL - SUM ( DISTINCT - 59 )
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3053
SELECT - 13 * + + CAST( - 44 AS SIGNED )
----
572

skipif mysql # not compatible
query I rowsort label-3053
SELECT - 13 * + + CAST ( - 44 AS INTEGER )
----
572

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

skipif mysql # not compatible
query I rowsort label-3054
SELECT - CAST ( 31 AS INTEGER ) + + ( + CAST ( NULL AS INTEGER ) ) * - 27
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3055
SELECT 58 * 28 DIV 4
----
406

skipif mysql # not compatible
query I rowsort label-3055
SELECT 58 * 28 / 4
----
406

onlyif mysql # DIV for integer division: 
query I rowsort label-3056
SELECT 45 + - + ( + 33 ) DIV - 79
----
45

skipif mysql # not compatible
query I rowsort label-3056
SELECT 45 + - + ( + 33 ) / - 79
----
45

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

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

query I rowsort
SELECT DISTINCT - 84 * 53 * - 79
----
351708

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3059
SELECT - ( + + 77 ) + + 34 + - 10 + - COUNT( * ) + - + 87 * - 30 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3059
SELECT - ( + + 77 ) + + 34 + - 10 + - COUNT ( * ) + - + 87 * - 30 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT 34 - - COUNT( * ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-3060
SELECT 34 - - COUNT ( * ) AS col2
----
35

query I rowsort
SELECT DISTINCT + 92 * + 19 AS col1
----
1748

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3062
SELECT DISTINCT CASE - - 30 WHEN + 97 + + - COUNT( * ) THEN NULL WHEN 3 THEN + - COUNT( DISTINCT 53 ) * + 32 * - 86 ELSE + CAST( CAST( + - 65 AS SIGNED ) AS SIGNED ) END AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-3062
SELECT DISTINCT CASE - - 30 WHEN + 97 + + - COUNT ( * ) THEN NULL WHEN 3 THEN + - COUNT ( DISTINCT 53 ) * + 32 * - 86 ELSE + CAST ( CAST ( + - 65 AS INTEGER ) AS INTEGER ) END AS col2
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-3063
SELECT 18 + - - 88 AS col0, COUNT( * ) AS col0
----
106
1

skipif mysql # not compatible
query II rowsort label-3063
SELECT 18 + - - 88 AS col0, COUNT ( * ) AS col0
----
106
1

query II rowsort
SELECT ALL 46 AS col1, - 13
----
46
-13

query I rowsort
SELECT DISTINCT + 89 + - NULLIF ( 9, 45 )
----
80

query I rowsort
SELECT 2 * 0 * + - 75 AS col2
----
0

query I rowsort
SELECT 37 + - - 93
----
130

query II rowsort
SELECT - 5, + 8 * + 85 col0
----
-5
680

onlyif mysql # DIV for integer division: 
query II rowsort label-3069
SELECT 47 + + + 95 + + 31 + + - 4 AS col2, 46 + 52 + + 64 DIV + 37
----
169
99

skipif mysql # not compatible
query II rowsort label-3069
SELECT 47 + + + 95 + + 31 + + - 4 AS col2, 46 + 52 + + 64 / + 37
----
169
99

query I rowsort
SELECT ALL - 44 + 99
----
55

query I rowsort
SELECT 27 * 27
----
729

query I rowsort
SELECT 63 + + 69
----
132

query II rowsort
SELECT - 16, + 1 col2
----
-16
1

query II rowsort
SELECT - 67, 24 AS col0
----
-67
24

onlyif mysql # aggregate syntax: 
query II rowsort label-3075
SELECT ALL 76 + + - NULLIF ( 82, - - 31 * - + 18 / + 48 ) - - + COUNT( * ) AS col1, COUNT( * )
----
-5
1

skipif mysql # not compatible
query II rowsort label-3075
SELECT ALL 76 + + - NULLIF ( 82, - - 31 * - + 18 / + 48 ) - - + COUNT ( * ) AS col1, COUNT ( * )
----
-5
1

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

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

query I rowsort
SELECT ALL 94 * + + 56 * - 85 AS col2
----
-447440

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3080
SELECT + CAST( NULL AS SIGNED ) * + + 91 + + 17 + - - 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3080
SELECT + CAST ( NULL AS INTEGER ) * + + 91 + + 17 + - - 1 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3081
SELECT 72 DIV - 88
----
0

skipif mysql # not compatible
query I rowsort label-3081
SELECT 72 / - 88
----
0

query I rowsort
SELECT ALL 40 + - + 44
----
-4

onlyif mysql # DIV for integer division: 
query II rowsort label-3083
SELECT 42 * 62 DIV 14 * + 77 AS col0, 26 col0
----
14322
26

skipif mysql # not compatible
query II rowsort label-3083
SELECT 42 * 62 / 14 * + 77 AS col0, 26 col0
----
14322
26

query I rowsort
SELECT 78 * - 56
----
-4368

onlyif mysql # aggregate syntax: 
query I rowsort label-3085
SELECT MAX( + 50 ) - + 79 - ( + COUNT( * ) )
----
-30

skipif mysql # not compatible
query I rowsort label-3085
SELECT MAX ( + 50 ) - + 79 - ( + COUNT ( * ) )
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-3086
SELECT + 49 AS col0, - COUNT( DISTINCT + 42 ) AS col1
----
49
-1

skipif mysql # not compatible
query II rowsort label-3086
SELECT + 49 AS col0, - COUNT ( DISTINCT + 42 ) AS col1
----
49
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT DISTINCT - - SUM( + 81 ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-3087
SELECT DISTINCT - - SUM ( + 81 ) AS col0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3088
SELECT DISTINCT - + CASE - - CAST( NULL AS SIGNED ) WHEN 46 THEN COALESCE ( 52, - 53, - 33 * COUNT( * ) / + 99 + + MIN( ALL - 86 ) ) * 13 * 76 + - CAST( NULL AS SIGNED ) WHEN + - 33 THEN 8 WHEN 65 * COUNT( DISTINCT 6 ) + + 41 / + 69 THEN NULL END AS col1, + 59 AS col2
----
NULL
59

skipif mysql # not compatible
query II rowsort label-3088
SELECT DISTINCT - + CASE - - CAST ( NULL AS INTEGER ) WHEN 46 THEN COALESCE ( 52, - 53, - 33 * COUNT ( * ) / + 99 + + MIN ( ALL - 86 ) ) * 13 * 76 + - CAST ( NULL AS INTEGER ) WHEN + - 33 THEN 8 WHEN 65 * COUNT ( DISTINCT 6 ) + + 41 / + 69 THEN NULL END AS col1, + 59 AS col2
----
NULL
59

query II rowsort
SELECT ALL - 13, + 7 * + 10 col1
----
-13
70

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

query I rowsort
SELECT ALL - 7 - - 53
----
46

query I rowsort
SELECT DISTINCT 19 * 40
----
760

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

skipif mysql # not compatible
query I rowsort label-3093
SELECT ALL - MAX ( ALL 2 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3094
SELECT + COUNT( * ) * ( SUM( ALL + + 27 ) )
----
27

skipif mysql # not compatible
query I rowsort label-3094
SELECT + COUNT ( * ) * ( SUM ( ALL + + 27 ) )
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3095
SELECT - NULLIF ( COUNT( * ), MIN( ALL + 69 ) ) + + CAST( + - 10 AS SIGNED ) + - 40 * - - ( - 33 ) * + CASE ( - 69 ) WHEN - AVG ( ALL 82 ) + + + 18 THEN CASE - 78 WHEN - 16 * - 49 + NULLIF ( - - SUM( - + 22 ), 11 ) THEN - + 46 ELSE NULL END + 87 END + - 30 + + + COUNT( * ) * 51 + 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3095
SELECT - NULLIF ( COUNT ( * ), MIN ( ALL + 69 ) ) + + CAST ( + - 10 AS INTEGER ) + - 40 * - - ( - 33 ) * + CASE ( - 69 ) WHEN - AVG ( ALL 82 ) + + + 18 THEN CASE - 78 WHEN - 16 * - 49 + NULLIF ( - - SUM ( - + 22 ), 11 ) THEN - + 46 ELSE NULL END + 87 END + - 30 + + + COUNT ( * ) * 51 + 74 AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3097
SELECT ALL 3 * - 23 * CAST( - 51 AS SIGNED ) + + 6 AS col2
----
3525

skipif mysql # not compatible
query I rowsort label-3097
SELECT ALL 3 * - 23 * CAST ( - 51 AS INTEGER ) + + 6 AS col2
----
3525

query I rowsort
SELECT 59 * - + 78 AS col0
----
-4602

onlyif mysql # DIV for integer division: 
query II rowsort label-3099
SELECT ALL 2 AS col0, 91 DIV - - 11
----
2
8

skipif mysql # not compatible
query II rowsort label-3099
SELECT ALL 2 AS col0, 91 / - - 11
----
2
8

onlyif mysql # aggregate syntax: 
query II rowsort label-3100
SELECT DISTINCT COUNT( * ) AS col0, - 44
----
1
-44

skipif mysql # not compatible
query II rowsort label-3100
SELECT DISTINCT COUNT ( * ) AS col0, - 44
----
1
-44

query I rowsort
SELECT ALL - ( + + 35 ) * 7 AS col0
----
-245

query I rowsort
SELECT - - ( - - 30 )
----
30

query II rowsort
SELECT 61 AS col0, 33 AS col1
----
61
33

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

skipif mysql # not compatible
query I rowsort label-3104
SELECT ALL + ( - 62 ) + - COUNT ( * ) AS col1
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-3105
SELECT 37 DIV - 99 * + NULLIF ( 4, - 28 ) * 20 + COALESCE ( - 6, 4, - 71 * 12 )
----
-6

skipif mysql # not compatible
query I rowsort label-3105
SELECT 37 / - 99 * + NULLIF ( 4, - 28 ) * 20 + COALESCE ( - 6, 4, - 71 * 12 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT COUNT( * ) - CASE 20 WHEN - MIN( - - 52 ) THEN NULL ELSE + 74 END + - COUNT( * )
----
-74

skipif mysql # not compatible
query I rowsort label-3106
SELECT COUNT ( * ) - CASE 20 WHEN - MIN ( - - 52 ) THEN NULL ELSE + 74 END + - COUNT ( * )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3107
SELECT 18 - + COUNT( * ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-3107
SELECT 18 - + COUNT ( * ) AS col2
----
17

query I rowsort
SELECT 37 * - + 92
----
-3404

query I rowsort
SELECT ALL NULLIF ( - 90, + - 55 + - 5 )
----
-90

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3111
SELECT - COUNT( * ) * + 68 * 69 AS col0
----
-4692

skipif mysql # not compatible
query I rowsort label-3111
SELECT - COUNT ( * ) * + 68 * 69 AS col0
----
-4692

onlyif mysql # aggregate syntax: 
query I rowsort label-3112
SELECT ALL - COUNT( - 88 ) * 46 * - - 92 - - ( + 66 ) AS col0
----
-4166

skipif mysql # not compatible
query I rowsort label-3112
SELECT ALL - COUNT ( - 88 ) * 46 * - - 92 - - ( + 66 ) AS col0
----
-4166

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT + 11 * 67 + - COUNT( * ) + + COUNT( * )
----
737

skipif mysql # not compatible
query I rowsort label-3113
SELECT + 11 * 67 + - COUNT ( * ) + + COUNT ( * )
----
737

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3114
SELECT ALL + 21 * + + CAST( + 64 AS SIGNED ) - + 82 AS col0
----
1262

skipif mysql # not compatible
query I rowsort label-3114
SELECT ALL + 21 * + + CAST ( + 64 AS INTEGER ) - + 82 AS col0
----
1262

onlyif mysql # aggregate syntax: 
query I rowsort label-3115
SELECT - - 5 * + + MAX( - 78 ) * - + 20 + - - 65 * + MAX( ALL - 18 )
----
6630

skipif mysql # not compatible
query I rowsort label-3115
SELECT - - 5 * + + MAX ( - 78 ) * - + 20 + - - 65 * + MAX ( ALL - 18 )
----
6630

onlyif mysql # aggregate syntax: 
query II rowsort label-3116
SELECT ALL + MAX( - + 65 ) AS col2, ( + ( + - 85 ) ) * + 10 - + - COUNT( * ) * + COUNT( * ) AS col2
----
-65
-849

skipif mysql # not compatible
query II rowsort label-3116
SELECT ALL + MAX ( - + 65 ) AS col2, ( + ( + - 85 ) ) * + 10 - + - COUNT ( * ) * + COUNT ( * ) AS col2
----
-65
-849

query I rowsort
SELECT DISTINCT + + NULLIF ( - 38, + 51 ) AS col2
----
-38

query I rowsort
SELECT DISTINCT - 61 * + 21 AS col2
----
-1281

query I rowsort
SELECT + - 55 + + + 43 AS col2
----
-12

query I rowsort
SELECT - 35 * - 72 col1
----
2520

onlyif mysql # aggregate syntax: 
query I rowsort label-3121
SELECT ALL - COUNT( - - 73 ) * + - COALESCE ( 91, - 89 ) + - + 5
----
86

skipif mysql # not compatible
query I rowsort label-3121
SELECT ALL - COUNT ( - - 73 ) * + - COALESCE ( 91, - 89 ) + - + 5
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-3122
SELECT - - COUNT( ALL - 28 ) + + ( - 75 ) * - + 21, + 79 AS col1
----
1576
79

skipif mysql # not compatible
query II rowsort label-3122
SELECT - - COUNT ( ALL - 28 ) + + ( - 75 ) * - + 21, + 79 AS col1
----
1576
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3123
SELECT + 18 / - + ( 38 ) / 22 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3123
SELECT + 18 / - + ( 38 ) / 22 - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + + 73 * + 5 - 47 AS col2
----
318

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3125
SELECT + - NULLIF ( + 78, - + CAST( - 34 AS SIGNED ) ) * - 59 * + 51
----
234702

skipif mysql # not compatible
query I rowsort label-3125
SELECT + - NULLIF ( + 78, - + CAST ( - 34 AS INTEGER ) ) * - 59 * + 51
----
234702

query I rowsort
SELECT ( - NULLIF ( 34, + ( + 38 ) ) )
----
-34

query I rowsort
SELECT DISTINCT - + 35 * + - 63 + - - 20 + - 19
----
2206

onlyif mysql # aggregate syntax: 
query II rowsort label-3128
SELECT + - COUNT( ALL - 30 ) AS col1, 27 AS col1
----
-1
27

skipif mysql # not compatible
query II rowsort label-3128
SELECT + - COUNT ( ALL - 30 ) AS col1, 27 AS col1
----
-1
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3129
SELECT ALL + 12 * + 97 * + 5 * + + 81 + - COUNT( * ) + + CAST( NULL AS SIGNED ) + AVG ( DISTINCT + 76 ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3129
SELECT ALL + 12 * + 97 * + 5 * + + 81 + - COUNT ( * ) + + CAST ( NULL AS INTEGER ) + AVG ( DISTINCT + 76 ) + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3130
SELECT + ( COUNT( * ) ) + 68 + 40 + + 68 AS col0
----
177

skipif mysql # not compatible
query I rowsort label-3130
SELECT + ( COUNT ( * ) ) + 68 + 40 + + 68 AS col0
----
177

query I rowsort
SELECT + 61 + + 99 * + 43
----
4318

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT + 13 + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-3132
SELECT + 13 + COUNT ( * )
----
14

query II rowsort
SELECT DISTINCT 4 AS col0, - 97 - + 93 + 40 * + 24
----
4
770

query I rowsort
SELECT + 7 * - 73 col1
----
-511

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3135
SELECT DISTINCT NULLIF ( - 61, 73 * - + 57 + - + CAST( NULL AS DECIMAL ) + - + 16 + - - 0 ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-3135
SELECT DISTINCT NULLIF ( - 61, 73 * - + 57 + - + CAST ( NULL AS REAL ) + - + 16 + - - 0 ) AS col1
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3136
SELECT ALL + 81 DIV 64 * - + ( + 41 ), 72 * + 44 * + COUNT( * ) * 62 AS col1
----
-41
196416

skipif mysql # not compatible
query II rowsort label-3136
SELECT ALL + 81 / 64 * - + ( + 41 ), 72 * + 44 * + COUNT ( * ) * 62 AS col1
----
-41
196416

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT + MIN( ( - 83 ) ) + + + 97
----
14

skipif mysql # not compatible
query I rowsort label-3137
SELECT + MIN ( ( - 83 ) ) + + + 97
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-3138
SELECT ALL ( ( - NULLIF ( + - 16, 64 ) ) ) - - 22 DIV - + ( 25 ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-3138
SELECT ALL ( ( - NULLIF ( + - 16, 64 ) ) ) - - 22 / - + ( 25 ) AS col2
----
16

query II rowsort
SELECT + 71 * - 65 * - 19 AS col1, + 12
----
87685
12

query I rowsort
SELECT - 35 + - - 80 + - 28 * + 45
----
-1215

onlyif mysql # DIV for integer division: 
query I rowsort label-3141
SELECT ALL 17 DIV - + 66 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3141
SELECT ALL 17 / - + 66 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3142
SELECT + COUNT( * ) DIV NULLIF ( MAX( ALL + + CAST( - 56 AS SIGNED ) ), + 20 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3142
SELECT + COUNT ( * ) / NULLIF ( MAX ( ALL + + CAST ( - 56 AS INTEGER ) ), + 20 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT - ( + CASE + 55 WHEN - 72 * - COUNT( * ) + - 24 * + 75 THEN - 71 * - 23 + 21 WHEN + + 84 THEN NULL END ) / + 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3143
SELECT - ( + CASE + 55 WHEN - 72 * - COUNT ( * ) + - 24 * + 75 THEN - 71 * - 23 + 21 WHEN + + 84 THEN NULL END ) / + 80 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3144
SELECT DISTINCT + 64 * + COUNT( * ) * + 85
----
5440

skipif mysql # not compatible
query I rowsort label-3144
SELECT DISTINCT + 64 * + COUNT ( * ) * + 85
----
5440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3145
SELECT - + NULLIF ( + 99, - - COALESCE ( + 67, + 39 * + 45 - CAST( NULL AS SIGNED ), - - 68 + - COUNT( * ) + + + 82, + - 13 ) ) + - + 83 + + - 54 * - + 62
----
3166

skipif mysql # not compatible
query I rowsort label-3145
SELECT - + NULLIF ( + 99, - - COALESCE ( + 67, + 39 * + 45 - CAST ( NULL AS INTEGER ), - - 68 + - COUNT ( * ) + + + 82, + - 13 ) ) + - + 83 + + - 54 * - + 62
----
3166

query II rowsort
SELECT + 85 col2, - 11 * 66 * - 93 - - 45 AS col1
----
85
67563

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3147
SELECT - CAST( NULL AS SIGNED ), + CAST( - + 88 AS SIGNED ) + 62 AS col1
----
NULL
-26

skipif mysql # not compatible
query II rowsort label-3147
SELECT - CAST ( NULL AS INTEGER ), + CAST ( - + 88 AS INTEGER ) + 62 AS col1
----
NULL
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3148
SELECT + 92 * + COUNT( * ) * + COUNT( ALL - 27 ) * + 75 + + 58 * 38 + - CAST( NULL AS SIGNED ) + - 54 * - + COUNT( * ) / + + ( + - ( - 11 ) ) - 83 * - 99 * - 43 * 0
----
NULL

skipif mysql # not compatible
query I rowsort label-3148
SELECT + 92 * + COUNT ( * ) * + COUNT ( ALL - 27 ) * + 75 + + 58 * 38 + - CAST ( NULL AS INTEGER ) + - 54 * - + COUNT ( * ) / + + ( + - ( - 11 ) ) - 83 * - 99 * - 43 * 0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3149
SELECT ALL + + MIN( - 75 ) DIV 80 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3149
SELECT ALL + + MIN ( - 75 ) / 80 + + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3150
SELECT - MAX( DISTINCT - 49 ) DIV 8 * + 31 AS col1
----
186

skipif mysql # not compatible
query I rowsort label-3150
SELECT - MAX ( DISTINCT - 49 ) / 8 * + 31 AS col1
----
186

query I rowsort
SELECT DISTINCT + 5 * 14 col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3152
SELECT - - ( - + SUM( DISTINCT 83 ) ) * + MIN( - + 67 )
----
5561

skipif mysql # not compatible
query I rowsort label-3152
SELECT - - ( - + SUM ( DISTINCT 83 ) ) * + MIN ( - + 67 )
----
5561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3153
SELECT CAST( NULL AS SIGNED ) * NULLIF ( + + SUM( + 86 ), 62 ) - - 34 + + 67 - - 22 + 39 AS col0, 78
----
NULL
78

skipif mysql # not compatible
query II rowsort label-3153
SELECT CAST ( NULL AS INTEGER ) * NULLIF ( + + SUM ( + 86 ), 62 ) - - 34 + + 67 - - 22 + 39 AS col0, 78
----
NULL
78

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

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

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

skipif mysql # not compatible
query I rowsort label-3155
SELECT - 37 / + + COUNT ( * ) AS col1
----
-37

query I rowsort
SELECT NULLIF ( + 93, 96 ) AS col1
----
93

query I rowsort
SELECT ALL - 21 * - + 25 + - + 34
----
491

onlyif mysql # DIV for integer division: 
query I rowsort label-3158
SELECT ALL 84 DIV + 81 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3158
SELECT ALL 84 / + 81 AS col0
----
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3160
SELECT ALL CAST( + 29 AS SIGNED ) AS col1, - 54 + + 67
----
29
13

skipif mysql # not compatible
query II rowsort label-3160
SELECT ALL CAST ( + 29 AS INTEGER ) AS col1, - 54 + + 67
----
29
13

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3161
SELECT NULLIF ( + + COUNT( * ), - AVG ( ALL - CAST( NULL AS DECIMAL ) ) * - + COUNT( * ) + + + 51 * - ( - 5 ) * + 73 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3161
SELECT NULLIF ( + + COUNT ( * ), - AVG ( ALL - CAST ( NULL AS REAL ) ) * - + COUNT ( * ) + + + 51 * - ( - 5 ) * + 73 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3162
SELECT DISTINCT - CAST( NULL AS SIGNED ) * ( - 36 ) - 88 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3162
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * ( - 36 ) - 88 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3163
SELECT COUNT( * ) - + - 38 * ( 25 )
----
951

skipif mysql # not compatible
query I rowsort label-3163
SELECT COUNT ( * ) - + - 38 * ( 25 )
----
951

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3164
SELECT CASE + + COALESCE ( + + 3, + COUNT( * ) * 74, - - 39 * 94 * - + CASE - COUNT( * ) WHEN + - CAST( - 78 AS DECIMAL ) THEN NULL WHEN - 43 * + COUNT( * ) * - - 36 + - 17 THEN - - ( + 52 ) END + COUNT( * ) * - 63 * + 74 + 64 ) WHEN + + 81 THEN - 48 + COALESCE ( - MAX( ALL 75 ), - 80 ) + 50 - + 34 * + 66 * - 73 * + 8 + - NULLIF ( - 58, - - 83 ) ELSE - COALESCE ( - + NULLIF ( 47, 36 + SUM( - + 47 ) / + 61 + + + ( 37 ) * 59 ), + 17, - ( 70 ), + COUNT( * ) ) END * + 63
----
2961

skipif mysql # not compatible
query I rowsort label-3164
SELECT CASE + + COALESCE ( + + 3, + COUNT ( * ) * 74, - - 39 * 94 * - + CASE - COUNT ( * ) WHEN + - CAST ( - 78 AS REAL ) THEN NULL WHEN - 43 * + COUNT ( * ) * - - 36 + - 17 THEN - - ( + 52 ) END + COUNT ( * ) * - 63 * + 74 + 64 ) WHEN + + 81 THEN - 48 + COALESCE ( - MAX ( ALL 75 ), - 80 ) + 50 - + 34 * + 66 * - 73 * + 8 + - NULLIF ( - 58, - - 83 ) ELSE - COALESCE ( - + NULLIF ( 47, 36 + SUM ( - + 47 ) / + 61 + + + ( 37 ) * 59 ), + 17, - ( 70 ), + COUNT ( * ) ) END * + 63
----
2961

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT 52 + - ( + COUNT( * ) ) + ( - 78 )
----
-27

skipif mysql # not compatible
query I rowsort label-3165
SELECT 52 + - ( + COUNT ( * ) ) + ( - 78 )
----
-27

query I rowsort
SELECT ALL 11 * - 40
----
-440

query I rowsort
SELECT DISTINCT 23 * ( 29 ) * 56 AS col1
----
37352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3168
SELECT CAST( 77 AS SIGNED ) - CASE - + 64 WHEN - COUNT( * ) * 38 + + 76 * - 53 / - 5 THEN NULL WHEN + ( - 60 ) THEN + + 44 END col2, + 18
----
NULL
18

skipif mysql # not compatible
query II rowsort label-3168
SELECT CAST ( 77 AS INTEGER ) - CASE - + 64 WHEN - COUNT ( * ) * 38 + + 76 * - 53 / - 5 THEN NULL WHEN + ( - 60 ) THEN + + 44 END col2, + 18
----
NULL
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3169
SELECT - 80 + - 87 + + + 40 * + 76 * COUNT( * ) * CASE + - COUNT( * ) WHEN - + 70 * - + 77 + - COUNT( * ) THEN - - 31 / - 14 + + 72 WHEN + 73 THEN - - CASE - - CASE NULLIF ( + CAST( + - ( - - 69 ) AS SIGNED ), + + NULLIF ( + 90, + 7 - - 50 + + 52 + - 64 - 80 + - COALESCE ( + + 64, + ( + 13 ) / + COUNT( * ) - 88 - + + COUNT( * ) + - 13 * - 38 * NULLIF ( 71, - 16 * - 79 * - - 16 ), - COUNT( * ) * + 87 * + 7 ) ) ) WHEN 47 THEN + COALESCE ( + 57, ( + COUNT( * ) ) ) + - 2 ELSE NULL END WHEN + COUNT( ALL + 77 ) THEN NULL WHEN - 71 * - 91 THEN NULL ELSE COUNT( * ) END ELSE NULL END * + ( AVG ( ALL 26 ) ) - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3169
SELECT - 80 + - 87 + + + 40 * + 76 * COUNT ( * ) * CASE + - COUNT ( * ) WHEN - + 70 * - + 77 + - COUNT ( * ) THEN - - 31 / - 14 + + 72 WHEN + 73 THEN - - CASE - - CASE NULLIF ( + CAST ( + - ( - - 69 ) AS INTEGER ), + + NULLIF ( + 90, + 7 - - 50 + + 52 + - 64 - 80 + - COALESCE ( + + 64, + ( + 13 ) / + COUNT ( * ) - 88 - + + COUNT ( * ) + - 13 * - 38 * NULLIF ( 71, - 16 * - 79 * - - 16 ), - COUNT ( * ) * + 87 * + 7 ) ) ) WHEN 47 THEN + COALESCE ( + 57, ( + COUNT ( * ) ) ) + - 2 ELSE NULL END WHEN + COUNT ( ALL + 77 ) THEN NULL WHEN - 71 * - 91 THEN NULL ELSE COUNT ( * ) END ELSE NULL END * + ( AVG ( ALL 26 ) ) - - COUNT ( * )
----
NULL

query I rowsort
SELECT - - ( - - ( - 11 ) ) AS col2
----
-11

query I rowsort
SELECT + 64 + ( + ( - + 72 ) )
----
-8

query II rowsort
SELECT 88 + 34 AS col2, 19
----
122
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3173
SELECT ALL + CASE + - 69 WHEN MAX( DISTINCT + + 25 ) THEN NULL WHEN + 33 THEN NULLIF ( + 7, - 99 * - 9 * - + 10 ) + + + COUNT( * ) WHEN 3 - - NULLIF ( + + MAX( - - 21 ), - COUNT( * ) ) - + - 60 THEN NULL END + + 81 * + 94 * + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3173
SELECT ALL + CASE + - 69 WHEN MAX ( DISTINCT + + 25 ) THEN NULL WHEN + 33 THEN NULLIF ( + 7, - 99 * - 9 * - + 10 ) + + + COUNT ( * ) WHEN 3 - - NULLIF ( + + MAX ( - - 21 ), - COUNT ( * ) ) - + - 60 THEN NULL END + + 81 * + 94 * + + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3174
SELECT + 17 + 46 + - + 4 - - 72 * + CAST( + 85 AS DECIMAL ) * - 46 * 61 + + CASE - - ( + - 45 ) WHEN COUNT( * ) THEN - 65 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3174
SELECT + 17 + 46 + - + 4 - - 72 * + CAST ( + 85 AS REAL ) * - 46 * 61 + + CASE - - ( + - 45 ) WHEN COUNT ( * ) THEN - 65 END AS col0
----
NULL

query I rowsort
SELECT 65 * - 53 AS col0
----
-3445

query I rowsort
SELECT DISTINCT 95 + - + ( - - 26 )
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-3177
SELECT DISTINCT + + 73 + 81 - 30 + - 41 DIV - + 68
----
124

skipif mysql # not compatible
query I rowsort label-3177
SELECT DISTINCT + + 73 + 81 - 30 + - 41 / - + 68
----
124

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3178
SELECT ALL + MAX( 3 ) + - - COUNT( * ) DIV - 67 AS col0, 32 AS col2
----
3
32

skipif mysql # not compatible
query II rowsort label-3178
SELECT ALL + MAX ( 3 ) + - - COUNT ( * ) / - 67 AS col0, 32 AS col2
----
3
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3179
SELECT + COUNT( CASE + 37 WHEN - 73 / + CAST( NULL AS SIGNED ) + 80 THEN CAST( NULL AS SIGNED ) ELSE NULL END ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3179
SELECT + COUNT ( CASE + 37 WHEN - 73 / + CAST ( NULL AS INTEGER ) + 80 THEN CAST ( NULL AS INTEGER ) ELSE NULL END ) AS col1
----
0

query I rowsort
SELECT + COALESCE ( - 57, + 78, - - 58 + 16 ) AS col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT - + COUNT( * ) * COUNT( * ) + + 25 + + 27 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-3181
SELECT - + COUNT ( * ) * COUNT ( * ) + + 25 + + 27 AS col1
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-3182
SELECT ALL - COUNT( * ) AS col2, - 89 * - 7 col2, + 39 DIV + 57 AS col0
----
-1
623
0

skipif mysql # not compatible
query III rowsort label-3182
SELECT ALL - COUNT ( * ) AS col2, - 89 * - 7 col2, + 39 / + 57 AS col0
----
-1
623
0

query I rowsort
SELECT 37 + - 86 AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3184
SELECT DISTINCT + COUNT( * ) - - - 5 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-3184
SELECT DISTINCT + COUNT ( * ) - - - 5 AS col1
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3185
SELECT 46 * + - 16 * - CAST( NULL AS SIGNED ) AS col0, 55 + - 9
----
NULL
46

skipif mysql # not compatible
query II rowsort label-3185
SELECT 46 * + - 16 * - CAST ( NULL AS INTEGER ) AS col0, 55 + - 9
----
NULL
46

query I rowsort
SELECT ALL + 81 * + + 17
----
1377

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3187
SELECT ALL - CAST( NULL AS SIGNED ) - - + 81 + + 5 + 13 * + NULLIF ( - + COALESCE ( - + 21, - 24, - + 51 ), + 89 + + + 26 * COUNT( ALL - 17 ) * + 33 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3187
SELECT ALL - CAST ( NULL AS INTEGER ) - - + 81 + + 5 + 13 * + NULLIF ( - + COALESCE ( - + 21, - 24, - + 51 ), + 89 + + + 26 * COUNT ( ALL - 17 ) * + 33 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3188
SELECT ALL - MIN( DISTINCT 38 ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-3188
SELECT ALL - MIN ( DISTINCT 38 ) AS col1
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-3189
SELECT 36 * COUNT( ALL 19 ) AS col1, + 28
----
36
28

skipif mysql # not compatible
query II rowsort label-3189
SELECT 36 * COUNT ( ALL 19 ) AS col1, + 28
----
36
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT 18 * + COUNT( * ) + COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-3190
SELECT 18 * + COUNT ( * ) + COUNT ( * )
----
19

query I rowsort
SELECT ALL - 81 * - + 23 AS col0
----
1863

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3192
SELECT 43 + + CASE + 89 WHEN + 95 + - - 89 THEN - 96 WHEN + 25 * - NULLIF ( COUNT( * ), - 85 + + COUNT( * ) ) * - 81 / - - COUNT( 74 ) + 23 + 32 THEN CAST( - NULLIF ( - CASE - - 82 WHEN 78 THEN + - 61 WHEN - - COUNT( DISTINCT - + 64 ) THEN + AVG ( ALL + 0 ) ELSE NULL END, - 33 ) AS SIGNED ) ELSE + 3 * + 60 END
----
223

skipif mysql # not compatible
query I rowsort label-3192
SELECT 43 + + CASE + 89 WHEN + 95 + - - 89 THEN - 96 WHEN + 25 * - NULLIF ( COUNT ( * ), - 85 + + COUNT ( * ) ) * - 81 / - - COUNT ( 74 ) + 23 + 32 THEN CAST ( - NULLIF ( - CASE - - 82 WHEN 78 THEN + - 61 WHEN - - COUNT ( DISTINCT - + 64 ) THEN + AVG ( ALL + 0 ) ELSE NULL END, - 33 ) AS INTEGER ) ELSE + 3 * + 60 END
----
223

onlyif mysql # DIV for integer division: 
query I rowsort label-3193
SELECT 78 DIV - 46
----
-1

skipif mysql # not compatible
query I rowsort label-3193
SELECT 78 / - 46
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT 52 + + CASE - - 14 WHEN COUNT( * ) THEN - - 10 * 79 * + - 43 / - ( CASE COALESCE ( - - 63, 9 ) WHEN 30 + + 5 - + 65 * - COUNT( + 8 ) THEN NULL WHEN + 88 + 23 THEN - + 67 END ) WHEN - - 38 THEN - ( + + COUNT( * ) ) ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3194
SELECT 52 + + CASE - - 14 WHEN COUNT ( * ) THEN - - 10 * 79 * + - 43 / - ( CASE COALESCE ( - - 63, 9 ) WHEN 30 + + 5 - + 65 * - COUNT ( + 8 ) THEN NULL WHEN + 88 + 23 THEN - + 67 END ) WHEN - - 38 THEN - ( + + COUNT ( * ) ) ELSE NULL END col1
----
NULL

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

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

query II rowsort
SELECT 62 * + ( 29 ) AS col2, 69
----
1798
69

onlyif mysql # DIV for integer division: 
query I rowsort label-3197
SELECT DISTINCT 29 DIV - 21
----
-1

skipif mysql # not compatible
query I rowsort label-3197
SELECT DISTINCT 29 / - 21
----
-1

query I rowsort
SELECT 87 + - - 9 * - 76 AS col2
----
-597

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT ALL MAX( - + 66 ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-3199
SELECT ALL MAX ( - + 66 ) AS col2
----
-66

query I rowsort
SELECT ALL + 62 + - 17
----
45

query I rowsort
SELECT + 61 * - + 85
----
-5185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3202
SELECT ALL COUNT( * ) * + + 94 + 25 - + + 69 DIV + + COALESCE ( + + 91, MIN( + 16 ) ) + + - 70
----
49

skipif mysql # not compatible
query I rowsort label-3202
SELECT ALL COUNT ( * ) * + + 94 + 25 - + + 69 / + + COALESCE ( + + 91, MIN ( + 16 ) ) + + - 70
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT 34 * + 30 + - MAX( - - 2 ) AS col2
----
1018

skipif mysql # not compatible
query I rowsort label-3203
SELECT 34 * + 30 + - MAX ( - - 2 ) AS col2
----
1018

onlyif mysql # aggregate syntax: 
query I rowsort label-3204
SELECT ALL + + 4 + COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-3204
SELECT ALL + + 4 + COUNT ( * )
----
5

query II rowsort
SELECT - 3 AS col2, - 51 * 23
----
-3
-1173

query I rowsort
SELECT DISTINCT + 69 + + 85 col2
----
154

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

query I rowsort
SELECT 3 + + + 45
----
48

query II rowsort
SELECT 45 AS col1, ( - 25 ) AS col2
----
45
-25

query I rowsort
SELECT + 32 * 72 - - - 75
----
2229

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

skipif mysql # not compatible
query I rowsort label-3211
SELECT + + MIN ( + + 24 )
----
24

query I rowsort
SELECT ALL + + 3 * 97
----
291

query I rowsort
SELECT + NULLIF ( - - 53, + 65 ) col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT + COALESCE ( - - NULLIF ( - 29, - 69 + COALESCE ( - 18, 71 * 67 * - + 7 * - 67 ) + - + 78 + 35 ), - 24 + - COUNT( * ) ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-3214
SELECT + COALESCE ( - - NULLIF ( - 29, - 69 + COALESCE ( - 18, 71 * 67 * - + 7 * - 67 ) + - + 78 + 35 ), - 24 + - COUNT ( * ) ) AS col2
----
-29

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT + CASE - 9 WHEN + 97 THEN + - ( + COUNT( * ) ) - + 96 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3216
SELECT + CASE - 9 WHEN + 97 THEN + - ( + COUNT ( * ) ) - + 96 ELSE NULL END col0
----
NULL

query I rowsort
SELECT + 7 * - - 77 AS col1
----
539

onlyif mysql # aggregate syntax: 
query II rowsort label-3218
SELECT ALL + COUNT( * ) AS col1, MIN( ALL + + 9 ) - + 42 + + 31
----
1
-2

skipif mysql # not compatible
query II rowsort label-3218
SELECT ALL + COUNT ( * ) AS col1, MIN ( ALL + + 9 ) - + 42 + + 31
----
1
-2

query II rowsort
SELECT ALL + 97, - 34 AS col2
----
97
-34

query II rowsort
SELECT DISTINCT + 0 AS col2, - 10 AS col0
----
0
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT - 76 * COALESCE ( COUNT( * ), + SUM( + + ( - - 85 ) ) * + - 23 + - 25 ) * + 41 AS col1
----
-3116

skipif mysql # not compatible
query I rowsort label-3221
SELECT - 76 * COALESCE ( COUNT ( * ), + SUM ( + + ( - - 85 ) ) * + - 23 + - 25 ) * + 41 AS col1
----
-3116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3222
SELECT ALL - COUNT( - - 66 ) DIV - COALESCE ( + 14, - 14 + 97 + COUNT( * ) - + 95 + + NULLIF ( + 24, - - 90 * - 6 ) * - 62 * + 37, - + 87 * - 22 ) + - - 44
----
44

skipif mysql # not compatible
query I rowsort label-3222
SELECT ALL - COUNT ( - - 66 ) / - COALESCE ( + 14, - 14 + 97 + COUNT ( * ) - + 95 + + NULLIF ( + 24, - - 90 * - 6 ) * - 62 * + 37, - + 87 * - 22 ) + - - 44
----
44

query I rowsort
SELECT DISTINCT CASE - 30 WHEN + 12 THEN - - 38 + ( + 17 ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + 41 + + 90
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-3225
SELECT - COUNT( * ) * - - COUNT( ALL + 98 )
----
-1

skipif mysql # not compatible
query I rowsort label-3225
SELECT - COUNT ( * ) * - - COUNT ( ALL + 98 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3226
SELECT - 83 AS col2, + 84 + - - MAX( DISTINCT 1 ) + - COUNT( * )
----
-83
84

skipif mysql # not compatible
query II rowsort label-3226
SELECT - 83 AS col2, + 84 + - - MAX ( DISTINCT 1 ) + - COUNT ( * )
----
-83
84

query I rowsort
SELECT ALL + 87 + - 77 + - 93
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3228
SELECT - ( + COUNT( * ) ) + + - 46 * + - 67 AS col2
----
3081

skipif mysql # not compatible
query I rowsort label-3228
SELECT - ( + COUNT ( * ) ) + + - 46 * + - 67 AS col2
----
3081

query I rowsort
SELECT ALL + 42 + - 89 * + 17
----
-1471

query I rowsort
SELECT - 99 + - + 21
----
-120

query I rowsort
SELECT DISTINCT - + NULLIF ( - + 23, + 0 * 44 ) * + 90
----
2070

onlyif mysql # DIV for integer division: 
query I rowsort label-3232
SELECT - + 62 + + 45 DIV 98 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-3232
SELECT - + 62 + + 45 / 98 AS col0
----
-62

query I rowsort
SELECT ALL + 51 + - - 38 * 89 AS col1
----
3433

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

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

query II rowsort
SELECT ALL - 38 AS col1, 13 AS col1
----
-38
13

query I rowsort
SELECT - + 70 - NULLIF ( + 52, - + 71 )
----
-122

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3237
SELECT + 82, - 32 DIV + NULLIF ( - SUM( 44 ), - ( - 49 ) ) + COUNT( * ) + - + 69 * 21 AS col2
----
82
-1448

skipif mysql # not compatible
query II rowsort label-3237
SELECT + 82, - 32 / + NULLIF ( - SUM ( 44 ), - ( - 49 ) ) + COUNT ( * ) + - + 69 * 21 AS col2
----
82
-1448

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

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

query II rowsort
SELECT 29, + 25 - - 23 col2
----
29
48

query I rowsort
SELECT + 62 + - - 17 AS col1
----
79

query I rowsort
SELECT - 1 + + ( 85 ) AS col0
----
84

query I rowsort
SELECT - 15 + + - 59 - - 14
----
-60

query I rowsort
SELECT - NULLIF ( + 10, - ( + 88 ) * + 96 ) AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT ALL + + MAX( DISTINCT 55 )
----
55

skipif mysql # not compatible
query I rowsort label-3244
SELECT ALL + + MAX ( DISTINCT 55 )
----
55

query I rowsort
SELECT - 5 * + 89 + + 31 + + 97 * + 86 * - 27
----
-225648

onlyif mysql # DIV for integer division: 
query I rowsort label-3246
SELECT ALL + + 76 DIV + 97 - ( - 58 )
----
58

skipif mysql # not compatible
query I rowsort label-3246
SELECT ALL + + 76 / + 97 - ( - 58 )
----
58

query I rowsort
SELECT + - 44 * + 15 + - 19 AS col2
----
-679

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3248
SELECT ALL ( + ( SUM( - - 1 ) ) ) DIV COALESCE ( + + 13, + + 67 * - 0 DIV - + 9, - COALESCE ( - 69, + CAST( + - CASE - ( 53 ) WHEN - + 71 - - COALESCE ( COUNT( * ), + ( - 72 ) DIV - 16 DIV - CAST( 80 AS SIGNED ) * + MAX( + - 61 ) * + 58, - CAST( - 16 AS SIGNED ) ) THEN 61 WHEN - - ( - COUNT( * ) ) * 51 * + MAX( - - 11 ) + + 41 THEN NULL END AS SIGNED ) ) * - - 90 + - + 54 * - + 33 * + 40 ) - - + 33
----
33

skipif mysql # not compatible
query I rowsort label-3248
SELECT ALL ( + ( SUM ( - - 1 ) ) ) / COALESCE ( + + 13, + + 67 * - 0 / - + 9, - COALESCE ( - 69, + CAST ( + - CASE - ( 53 ) WHEN - + 71 - - COALESCE ( COUNT ( * ), + ( - 72 ) / - 16 / - CAST ( 80 AS INTEGER ) * + MAX ( + - 61 ) * + 58, - CAST ( - 16 AS INTEGER ) ) THEN 61 WHEN - - ( - COUNT ( * ) ) * 51 * + MAX ( - - 11 ) + + 41 THEN NULL END AS INTEGER ) ) * - - 90 + - + 54 * - + 33 * + 40 ) - - + 33
----
33

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

query I rowsort
SELECT - 54 * - + 97 AS col0
----
5238

query I rowsort
SELECT + COALESCE ( + ( + 53 ), 79 )
----
53

query I rowsort
SELECT + ( - 89 ) + + + 59 * - 87 AS col1
----
-5222

query II rowsort
SELECT ( 30 ) AS col1, + 89 - 6
----
30
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3254
SELECT + COUNT( * ) DIV - 2 AS col0, 37 * + 13 AS col2
----
0
481

skipif mysql # not compatible
query II rowsort label-3254
SELECT + COUNT ( * ) / - 2 AS col0, 37 * + 13 AS col2
----
0
481

query II rowsort
SELECT ( 38 ) AS col1, + 8
----
38
8

query I rowsort
SELECT + 89 * - 5 AS col2
----
-445

query I rowsort
SELECT 54 * - - 34 + - 28
----
1808

onlyif mysql # DIV for integer division: 
query I rowsort label-3258
SELECT ALL 65 DIV + 9 col1
----
7

skipif mysql # not compatible
query I rowsort label-3258
SELECT ALL 65 / + 9 col1
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-3259
SELECT ALL 8 * - + 24 * 87 + - 40 DIV + 15
----
-16706

skipif mysql # not compatible
query I rowsort label-3259
SELECT ALL 8 * - + 24 * 87 + - 40 / + 15
----
-16706

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3260
SELECT DISTINCT 70 * - AVG ( DISTINCT + - ( - ( + 74 ) ) ) * - MAX( ALL + 14 ) * - SUM( - CAST( NULL AS SIGNED ) ) * + 18 + 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3260
SELECT DISTINCT 70 * - AVG ( DISTINCT + - ( - ( + 74 ) ) ) * - MAX ( ALL + 14 ) * - SUM ( - CAST ( NULL AS INTEGER ) ) * + 18 + 63 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3261
SELECT + 32 * + CASE 84 WHEN 68 THEN - 78 + 78 * - + 36 WHEN + - COUNT( DISTINCT 77 ) * CAST( + 53 AS SIGNED ) + COUNT( * ) THEN - 54 ELSE NULL END + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-3261
SELECT + 32 * + CASE 84 WHEN 68 THEN - 78 + 78 * - + 36 WHEN + - COUNT ( DISTINCT 77 ) * CAST ( + 53 AS INTEGER ) + COUNT ( * ) THEN - 54 ELSE NULL END + 79
----
NULL

query I rowsort
SELECT - 23 + + 44 * + 85 col0
----
3717

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3263
SELECT - CAST( + 14 AS SIGNED ), + 32 col2
----
-14
32

skipif mysql # not compatible
query II rowsort label-3263
SELECT - CAST ( + 14 AS INTEGER ), + 32 col2
----
-14
32

query II rowsort
SELECT ALL - NULLIF ( + + 30, + 50 ) AS col0, 52
----
-30
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3265
SELECT + + CAST( + + 83 AS SIGNED ) * 63 AS col0
----
5229

skipif mysql # not compatible
query I rowsort label-3265
SELECT + + CAST ( + + 83 AS INTEGER ) * 63 AS col0
----
5229

onlyif mysql # aggregate syntax: 
query I rowsort label-3266
SELECT ALL COUNT( * ) * - 25 + - 67 + 92 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3266
SELECT ALL COUNT ( * ) * - 25 + - 67 + 92 AS col0
----
0

query I rowsort
SELECT ALL - + 37 - + - 76 AS col1
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3268
SELECT + - CAST( NULL AS SIGNED ) / + 32 + + - MAX( - - 88 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3268
SELECT + - CAST ( NULL AS INTEGER ) / + 32 + + - MAX ( - - 88 ) AS col2
----
NULL

query I rowsort
SELECT - + 33 * 49 * 85 - - 52 - + 95 + - 36 AS col0
----
-137524

query I rowsort
SELECT ALL + + 24 * 80 - + 9 AS col0
----
1911

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT - + ( CASE - 55 WHEN 73 THEN + 60 - - + 45 * + MIN( + - 73 ) + 68 ELSE - - 4 * - - 26 * - - 53 * 10 * + - 63 END )
----
3472560

skipif mysql # not compatible
query I rowsort label-3271
SELECT - + ( CASE - 55 WHEN 73 THEN + 60 - - + 45 * + MIN ( + - 73 ) + 68 ELSE - - 4 * - - 26 * - - 53 * 10 * + - 63 END )
----
3472560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3272
SELECT - - CASE - - 62 WHEN - 20 * - COALESCE ( + 8, - - 31, 12 + - + 59 - 7 + - - MAX( + 34 ) ) + - 17 THEN - 54 * + 52 WHEN - + 20 THEN NULL END + - + 94 / CAST( NULL AS SIGNED ) + + 75 * - 0 / - 12 * + 87 * - AVG ( ALL 28 ) * + 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3272
SELECT - - CASE - - 62 WHEN - 20 * - COALESCE ( + 8, - - 31, 12 + - + 59 - 7 + - - MAX ( + 34 ) ) + - 17 THEN - 54 * + 52 WHEN - + 20 THEN NULL END + - + 94 / CAST ( NULL AS INTEGER ) + + 75 * - 0 / - 12 * + 87 * - AVG ( ALL 28 ) * + 85 AS col2
----
NULL

query I rowsort
SELECT ALL + - ( - 57 ) * + 39
----
2223

query II rowsort
SELECT DISTINCT - - 95 * - 73 AS col2, + 19 col2
----
-6935
19

query II rowsort
SELECT - 35 * + 15, 62 AS col0
----
-525
62

query I rowsort
SELECT ALL - 92 * - 13 + + 2 AS col1
----
1198

query II rowsort
SELECT DISTINCT ( - 11 ), + NULLIF ( + - 20, 85 ) AS col2
----
-11
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3278
SELECT DISTINCT - NULLIF ( - CASE + + 48 WHEN - 41 THEN - 6 ELSE + + 75 + - 43 - + CAST( NULL AS SIGNED ) + + 20 * 27 END, - - ( CASE - 47 WHEN - COALESCE ( - - COUNT( * ), + 75 ) THEN - + 28 / + - 91 - 10 END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3278
SELECT DISTINCT - NULLIF ( - CASE + + 48 WHEN - 41 THEN - 6 ELSE + + 75 + - 43 - + CAST ( NULL AS INTEGER ) + + 20 * 27 END, - - ( CASE - 47 WHEN - COALESCE ( - - COUNT ( * ), + 75 ) THEN - + 28 / + - 91 - 10 END ) )
----
NULL

query I rowsort
SELECT + 58 + - + 33
----
25

query I rowsort
SELECT 36 * 5 AS col0
----
180

onlyif mysql # aggregate syntax: 
query II rowsort label-3281
SELECT 72 * - COUNT( * ) * 1 col0, 88 * - - MIN( + 28 ) AS col2
----
-72
2464

skipif mysql # not compatible
query II rowsort label-3281
SELECT 72 * - COUNT ( * ) * 1 col0, 88 * - - MIN ( + 28 ) AS col2
----
-72
2464

onlyif mysql # aggregate syntax: 
query I rowsort label-3282
SELECT ALL - COUNT( DISTINCT - 84 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3282
SELECT ALL - COUNT ( DISTINCT - 84 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3283
SELECT 62 * - 33 * + 27, - COUNT( * ) col0
----
-55242
-1

skipif mysql # not compatible
query II rowsort label-3283
SELECT 62 * - 33 * + 27, - COUNT ( * ) col0
----
-55242
-1

query I rowsort
SELECT ALL - 23 + - - 79 + + 30 + 79
----
165

query I rowsort
SELECT DISTINCT - 5 + + 2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3286
SELECT COUNT( ALL - - 63 ) * - + CAST( - 96 AS SIGNED ) + + + 46 * 23 - + 68 + 3 + - + 83 * - 19
----
2666

skipif mysql # not compatible
query I rowsort label-3286
SELECT COUNT ( ALL - - 63 ) * - + CAST ( - 96 AS INTEGER ) + + + 46 * 23 - + 68 + 3 + - + 83 * - 19
----
2666

query I rowsort
SELECT ( - 64 ) * + 1 + + 63
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3288
SELECT ALL - 51, - 21 + - 86 - 70 * 20 * - COUNT( * ) col2
----
-51
1293

skipif mysql # not compatible
query II rowsort label-3288
SELECT ALL - 51, - 21 + - 86 - 70 * 20 * - COUNT ( * ) col2
----
-51
1293

query I rowsort
SELECT DISTINCT 40 + 60
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT NULLIF ( + - MAX( ALL + 98 ), 45 / - 47 * - - 27 ) * - 63 AS col0
----
6174

skipif mysql # not compatible
query I rowsort label-3290
SELECT NULLIF ( + - MAX ( ALL + 98 ), 45 / - 47 * - - 27 ) * - 63 AS col0
----
6174

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

skipif mysql # not compatible
query I rowsort label-3291
SELECT DISTINCT COUNT ( * ) / + 49
----
0

query II rowsort
SELECT DISTINCT + 81 - - + 73 * - 44, 12 - + 69 AS col1
----
-3131
-57

query I rowsort
SELECT ALL + 23 - + - NULLIF ( + + 25, + COALESCE ( 15, + ( 74 ) ) + - 53 ) + - 25 * 15 AS col0
----
-327

onlyif mysql # aggregate syntax: 
query II rowsort label-3294
SELECT + SUM( ( + + 13 ) ) AS col2, 2
----
13
2

skipif mysql # not compatible
query II rowsort label-3294
SELECT + SUM ( ( + + 13 ) ) AS col2, 2
----
13
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3295
SELECT + 56 * + COALESCE ( COUNT( * ), + COUNT( DISTINCT - 65 ) ) - + - 42
----
98

skipif mysql # not compatible
query I rowsort label-3295
SELECT + 56 * + COALESCE ( COUNT ( * ), + COUNT ( DISTINCT - 65 ) ) - + - 42
----
98

query II rowsort
SELECT - 61, + 43 * + - 12 AS col1
----
-61
-516

query I rowsort
SELECT - ( + - 86 ) col0
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3298
SELECT CAST( 0 AS SIGNED ) + + 63 AS col2
----
63

skipif mysql # not compatible
query I rowsort label-3298
SELECT CAST ( 0 AS INTEGER ) + + 63 AS col2
----
63

query I rowsort
SELECT + 83 + - - 6 AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3300
SELECT - CASE COUNT( * ) WHEN - 65 * + 33 + 86 THEN - 80 + + 61 WHEN + 82 THEN - COUNT( * ) END + 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3300
SELECT - CASE COUNT ( * ) WHEN - 65 * + 33 + 86 THEN - 80 + + 61 WHEN + 82 THEN - COUNT ( * ) END + 50 AS col0
----
NULL

query I rowsort
SELECT 96 + 90
----
186

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

skipif mysql # not compatible
query I rowsort label-3302
SELECT COUNT ( * ) / 61 AS col1
----
0

query I rowsort
SELECT + 33 + - 16 AS col2
----
17

query I rowsort
SELECT CASE + 57 WHEN + 30 THEN + 24 * - 17 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT - + NULLIF ( + CASE NULLIF ( + + 99, - SUM( DISTINCT - 27 ) ) WHEN + 53 THEN - 98 * - 25 ELSE NULL END, - 14 * 29 - - 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3305
SELECT - + NULLIF ( + CASE NULLIF ( + + 99, - SUM ( DISTINCT - 27 ) ) WHEN + 53 THEN - 98 * - 25 ELSE NULL END, - 14 * 29 - - 45 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3306
SELECT ALL + 72 DIV 29 col1
----
2

skipif mysql # not compatible
query I rowsort label-3306
SELECT ALL + 72 / 29 col1
----
2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3307
SELECT + 55 DIV - + 74 + + 51 col2, 89 * + 30 * - CAST( NULL AS SIGNED ) AS col1
----
51
NULL

skipif mysql # not compatible
query II rowsort label-3307
SELECT + 55 / - + 74 + + 51 col2, 89 * + 30 * - CAST ( NULL AS INTEGER ) AS col1
----
51
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3308
SELECT COUNT( * ) + + - 14 + - 84 AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-3308
SELECT COUNT ( * ) + + - 14 + - 84 AS col0
----
-97

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3310
SELECT 62 DIV 64 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3310
SELECT 62 / 64 AS col1
----
0

query II rowsort
SELECT DISTINCT - 36 + + 91, 82 AS col0
----
55
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3312
SELECT ALL - SUM( ALL + 32 ) + 13 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-3312
SELECT ALL - SUM ( ALL + 32 ) + 13 AS col0
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3313
SELECT 87 DIV + 20, MIN( - 77 ) AS col0
----
4
-77

skipif mysql # not compatible
query II rowsort label-3313
SELECT 87 / + 20, MIN ( - 77 ) AS col0
----
4
-77

query II rowsort
SELECT DISTINCT - COALESCE ( - 42, + 33 * + 32 * - - 66 + + + 31 + - + 74 * + 67 + + 10 * - - 44 - - 63, + 31 * 9 + - 79 + - 32 + - + 14 - + + 77 ) AS col2, ( - 47 ) AS col0
----
42
-47

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

query I rowsort
SELECT ALL + 56 + - 2 AS col0
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-3317
SELECT DISTINCT - NULLIF ( - NULLIF ( 21, 50 ), - 78 ) AS col2, 99 * - 49 + - COUNT( * ) AS col1
----
21
-4852

skipif mysql # not compatible
query II rowsort label-3317
SELECT DISTINCT - NULLIF ( - NULLIF ( 21, 50 ), - 78 ) AS col2, 99 * - 49 + - COUNT ( * ) AS col1
----
21
-4852

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3318
SELECT ALL 99 - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3318
SELECT ALL 99 - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3319
SELECT ALL CASE - - 73 WHEN + + MIN( ALL + + CAST( NULL AS SIGNED ) ) * - - SUM( - 73 ) THEN NULL ELSE - - 42 END * 98 col2
----
4116

skipif mysql # not compatible
query I rowsort label-3319
SELECT ALL CASE - - 73 WHEN + + MIN ( ALL + + CAST ( NULL AS INTEGER ) ) * - - SUM ( - 73 ) THEN NULL ELSE - - 42 END * 98 col2
----
4116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3320
SELECT DISTINCT + COUNT( * ) * 63 AS col1, - 87 * CAST( 45 AS SIGNED ) * + 78 col1
----
63
-305370

skipif mysql # not compatible
query II rowsort label-3320
SELECT DISTINCT + COUNT ( * ) * 63 AS col1, - 87 * CAST ( 45 AS INTEGER ) * + 78 col1
----
63
-305370

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT ALL - CASE ( - + ( SUM( 28 ) ) ) WHEN 41 / + ( + - AVG ( ALL - - 16 ) ) THEN NULL WHEN - ( - 10 ) THEN COUNT( - 98 ) END - - COUNT( * ) / - 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3321
SELECT ALL - CASE ( - + ( SUM ( 28 ) ) ) WHEN 41 / + ( + - AVG ( ALL - - 16 ) ) THEN NULL WHEN - ( - 10 ) THEN COUNT ( - 98 ) END - - COUNT ( * ) / - 40 AS col1
----
NULL

query I rowsort
SELECT ALL + - ( 72 ) * + 64 AS col0
----
-4608

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3323
SELECT - - COALESCE ( - COUNT( * ), + 68 DIV - COUNT( * ) + CAST( NULL AS SIGNED ) ) * - 30 + + NULLIF ( - 95, - + COUNT( * ) * - - 18 ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-3323
SELECT - - COALESCE ( - COUNT ( * ), + 68 / - COUNT ( * ) + CAST ( NULL AS INTEGER ) ) * - 30 + + NULLIF ( - 95, - + COUNT ( * ) * - - 18 ) AS col1
----
-65

query I rowsort
SELECT - 40 * - 92 AS col0
----
3680

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT ( - SUM( + 96 ) )
----
-96

skipif mysql # not compatible
query I rowsort label-3326
SELECT ( - SUM ( + 96 ) )
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3327
SELECT ALL + COUNT( * ) * - 43, + COUNT( * ) DIV 87 * 57 * - + COUNT( * ) AS col0
----
-43
0

skipif mysql # not compatible
query II rowsort label-3327
SELECT ALL + COUNT ( * ) * - 43, + COUNT ( * ) / 87 * 57 * - + COUNT ( * ) AS col0
----
-43
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3330
SELECT ALL MAX( ALL - - 47 ) + + NULLIF ( - 69, - - 74 ), + 0 - 91 col1
----
-22
-91

skipif mysql # not compatible
query II rowsort label-3330
SELECT ALL MAX ( ALL - - 47 ) + + NULLIF ( - 69, - - 74 ), + 0 - 91 col1
----
-22
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-3331
SELECT ALL 93, COUNT( DISTINCT 65 ) - + 1 AS col2
----
93
0

skipif mysql # not compatible
query II rowsort label-3331
SELECT ALL 93, COUNT ( DISTINCT 65 ) - + 1 AS col2
----
93
0

query I rowsort
SELECT ALL 42 + - 75 - + 49 AS col0
----
-82

query I rowsort
SELECT DISTINCT 1 + - 98
----
-97

query I rowsort
SELECT DISTINCT 77 + - 50
----
27

query I rowsort
SELECT - 48 + + - 0 + NULLIF ( + 73, ( 69 ) * + 34 + - 43 )
----
25

query I rowsort
SELECT DISTINCT 71 * + 60 AS col1
----
4260

query I rowsort
SELECT + 94 - - - 22 AS col0
----
72

query I rowsort
SELECT - 0 * NULLIF ( + 11, - ( - AVG ( DISTINCT + - 70 ) ) ) * + + 40
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3339
SELECT DISTINCT + 5 * + COUNT( * ) + - COUNT( * ), - ( - - 22 ) AS col0
----
4
-22

skipif mysql # not compatible
query II rowsort label-3339
SELECT DISTINCT + 5 * + COUNT ( * ) + - COUNT ( * ), - ( - - 22 ) AS col0
----
4
-22

query II rowsort
SELECT ALL + 70 AS col2, 48
----
70
48

query I rowsort
SELECT - 64 * - 40 AS col1
----
2560

query I rowsort
SELECT ALL 70 * + 7 AS col2
----
490

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3343
SELECT DISTINCT COUNT( * ) * NULLIF ( - CASE + ( 65 ) WHEN - COUNT( * ) THEN - + COUNT( * ) * + COUNT( * ) + ( - 24 ) + - - 62 * + 32 WHEN + 64 * 46 - - - 52 THEN NULL END, + CAST( - - COUNT( * ) AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3343
SELECT DISTINCT COUNT ( * ) * NULLIF ( - CASE + ( 65 ) WHEN - COUNT ( * ) THEN - + COUNT ( * ) * + COUNT ( * ) + ( - 24 ) + - - 62 * + 32 WHEN + 64 * 46 - - - 52 THEN NULL END, + CAST ( - - COUNT ( * ) AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3344
SELECT ALL + ( - - COUNT( + 14 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3344
SELECT ALL + ( - - COUNT ( + 14 ) ) AS col0
----
1

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

query I rowsort
SELECT ALL + 95 * - CASE - + 50 WHEN - + 53 / ( 76 ) THEN NULL WHEN - 85 THEN 65 * 30 / - 13 END - - - 38 + 50 / - + 35 + - ( 90 ) * 88 / 13
----
NULL

query II rowsort
SELECT ALL + 60, 19 AS col1
----
60
19

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

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

query I rowsort
SELECT NULLIF ( + 87, 48 )
----
87

query I rowsort
SELECT 25 * 25 - + ( 76 )
----
549

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3351
SELECT - 4 * - NULLIF ( + 98 DIV + 12, - CAST( ( - 99 ) AS SIGNED ) )
----
32

skipif mysql # not compatible
query I rowsort label-3351
SELECT - 4 * - NULLIF ( + 98 / + 12, - CAST ( ( - 99 ) AS INTEGER ) )
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3352
SELECT - 44 * COUNT( * ) - + CASE + CAST( 89 AS SIGNED ) WHEN 48 * 62 THEN - 70 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3352
SELECT - 44 * COUNT ( * ) - + CASE + CAST ( 89 AS INTEGER ) WHEN 48 * 62 THEN - 70 ELSE NULL END
----
NULL

query I rowsort
SELECT - NULLIF ( 56, + 32 ) * 34 AS col0
----
-1904

query I rowsort
SELECT - 74 * 87 AS col1
----
-6438

onlyif mysql # aggregate syntax: 
query I rowsort label-3355
SELECT DISTINCT + NULLIF ( 89, COUNT( * ) ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-3355
SELECT DISTINCT + NULLIF ( 89, COUNT ( * ) ) AS col0
----
89

query I rowsort
SELECT DISTINCT - 53 * 14
----
-742

query I rowsort
SELECT - 38 + 21 * - ( ( - 12 ) ) AS col1
----
214

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3358
SELECT ALL - CASE 86 WHEN + CAST( NULL AS SIGNED ) * 20 + - 47 THEN NULL WHEN 97 THEN + 29 ELSE NULL END * 32
----
NULL

skipif mysql # not compatible
query I rowsort label-3358
SELECT ALL - CASE 86 WHEN + CAST ( NULL AS INTEGER ) * 20 + - 47 THEN NULL WHEN 97 THEN + 29 ELSE NULL END * 32
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3359
SELECT - 14 + 14 DIV - 77 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-3359
SELECT - 14 + 14 / - 77 AS col2
----
-14

query I rowsort
SELECT DISTINCT + 90 + 25
----
115

query I rowsort
SELECT - 8 + + 27 * 34
----
910

query I rowsort
SELECT - CASE 14 WHEN 90 + - 82 THEN - NULLIF ( 99, 69 ) * + ( + 32 ) ELSE 6 END + - 18 AS col0
----
-24

query I rowsort
SELECT DISTINCT ( COALESCE ( - 17, - 88 ) ) AS col2
----
-17

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

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

query I rowsort
SELECT DISTINCT 90 + 73
----
163

query I rowsort
SELECT DISTINCT - 18 + + 20 AS col0
----
2

query I rowsort
SELECT ALL 36 * 48
----
1728

query I rowsort
SELECT - ( 18 ) AS col2
----
-18

query I rowsort
SELECT DISTINCT 54 + 5 * - 59
----
-241

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT ALL 30 * NULLIF ( + COUNT( * ), - 76 ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-3370
SELECT ALL 30 * NULLIF ( + COUNT ( * ), - 76 ) AS col2
----
30

query I rowsort
SELECT ALL 89 - 79 col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT - CASE WHEN 84 = 95 THEN - 7 WHEN NOT - 47 BETWEEN ( NULL ) AND ( COUNT( * ) ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3372
SELECT - CASE WHEN 84 = 95 THEN - 7 WHEN NOT - 47 BETWEEN ( NULL ) AND ( COUNT ( * ) ) THEN NULL END AS col2
----
NULL

query I rowsort
SELECT + 71 * - 11 col2
----
-781

query I rowsort
SELECT ALL 94 * 5 col2
----
470

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3375
SELECT ALL MAX( + 55 ) / + CAST( NULL AS SIGNED ) - + 65 * - ( 56 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3375
SELECT ALL MAX ( + 55 ) / + CAST ( NULL AS INTEGER ) - + 65 * - ( 56 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3376
SELECT DISTINCT NULLIF ( ( 93 ), 59 DIV 71 ) DIV + 86 - - 66 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-3376
SELECT DISTINCT NULLIF ( ( 93 ), 59 / 71 ) / + 86 - - 66 AS col1
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3377
SELECT - 3 DIV + COUNT( * ) + 67
----
64

skipif mysql # not compatible
query I rowsort label-3377
SELECT - 3 / + COUNT ( * ) + 67
----
64

query I rowsort
SELECT + 46 + 18 * + 72
----
1342

query I rowsort
SELECT + 5 * 33
----
165

query I rowsort
SELECT - 10 * 76 col0
----
-760

query I rowsort
SELECT ALL 16 * + 53 col0
----
848

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT - + 50 - + 54 * - COUNT( DISTINCT + 90 )
----
4

skipif mysql # not compatible
query I rowsort label-3382
SELECT - + 50 - + 54 * - COUNT ( DISTINCT + 90 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3383
SELECT DISTINCT + COUNT( * ) * + 18 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-3383
SELECT DISTINCT + COUNT ( * ) * + 18 AS col2
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3384
SELECT DISTINCT 1 / MAX( DISTINCT 48 * CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3384
SELECT DISTINCT 1 / MAX ( DISTINCT 48 * CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT ALL - - 15 * - 81
----
-1215

query I rowsort
SELECT + + 6 + 82 AS col0
----
88

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

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

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

query I rowsort
SELECT 2 * - 1 AS col2
----
-2

query I rowsort
SELECT ALL - 20 + - 91
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT 33 + - NULLIF ( - COUNT( * ), - 80 * + AVG ( ALL 56 ) )
----
34

skipif mysql # not compatible
query I rowsort label-3391
SELECT 33 + - NULLIF ( - COUNT ( * ), - 80 * + AVG ( ALL 56 ) )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT ALL NULLIF ( 56, - 21 ) * + CASE 66 WHEN COUNT( * ) THEN NULL ELSE COUNT( * ) END
----
56

skipif mysql # not compatible
query I rowsort label-3392
SELECT ALL NULLIF ( 56, - 21 ) * + CASE 66 WHEN COUNT ( * ) THEN NULL ELSE COUNT ( * ) END
----
56

query I rowsort
SELECT 35 * 67 AS col2
----
2345

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3394
SELECT - CAST( + 21 AS SIGNED ) + 23
----
2

skipif mysql # not compatible
query I rowsort label-3394
SELECT - CAST ( + 21 AS INTEGER ) + 23
----
2

query I rowsort
SELECT 81 * 60 AS col1
----
4860

query I rowsort
SELECT 65 * 88 + 29
----
5749

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-3399
SELECT ALL + 85 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT DISTINCT - 26 + + COUNT( * )
----
-25

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

query I rowsort
SELECT ALL + NULLIF ( 57, + 16 - + ( 69 ) ) + - 10 AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT DISTINCT - 66 + NULLIF ( 82, 2 * + 37 + - 35 * ( - COUNT( * ) * CASE + 34 WHEN 15 THEN NULL WHEN 14 * 68 + + 56 THEN + 26 + 19 * + COUNT( * ) END + 42 * + 61 ) ) * + 86 AS col0
----
6986

skipif mysql # not compatible
query I rowsort label-3402
SELECT DISTINCT - 66 + NULLIF ( 82, 2 * + 37 + - 35 * ( - COUNT ( * ) * CASE + 34 WHEN 15 THEN NULL WHEN 14 * 68 + + 56 THEN + 26 + 19 * + COUNT ( * ) END + 42 * + 61 ) ) * + 86 AS col0
----
6986

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

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

query I rowsort
SELECT ALL - + 35 + - 15
----
-50

query I rowsort
SELECT - 2 * 21
----
-42

query I rowsort
SELECT ALL - 32 * 8 AS col1
----
-256

onlyif mysql # DIV for integer division: 
query I rowsort label-3407
SELECT DISTINCT - 14 * 58 DIV 99 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-3407
SELECT DISTINCT - 14 * 58 / 99 AS col0
----
-8

query I rowsort
SELECT ALL - 5 - + - 86 + - 71
----
10

query I rowsort
SELECT 71 * + 1 col2
----
71

query I rowsort
SELECT 6 * 1 AS col1
----
6

query I rowsort
SELECT DISTINCT + 15 * - - 64
----
960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3412
SELECT ALL SUM( 34 ) DIV COALESCE ( + 79, COUNT( * ) + 85 )
----
0

skipif mysql # not compatible
query I rowsort label-3412
SELECT ALL SUM ( 34 ) / COALESCE ( + 79, COUNT ( * ) + 85 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3413
SELECT ALL + 70 / - SUM( - CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3413
SELECT ALL + 70 / - SUM ( - CAST ( NULL AS REAL ) ) AS col1
----
NULL

query I rowsort
SELECT 86 * - - 35 col2
----
3010

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT COUNT( * ) + - 39 * + 10 AS col1
----
-389

skipif mysql # not compatible
query I rowsort label-3415
SELECT COUNT ( * ) + - 39 * + 10 AS col1
----
-389

query I rowsort
SELECT 96 * + 52
----
4992

onlyif mysql # aggregate syntax: 
query I rowsort label-3417
SELECT ALL CASE + + 9 WHEN ( - 61 ) * + 63 THEN + COUNT( * ) END * + 47 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3417
SELECT ALL CASE + + 9 WHEN ( - 61 ) * + 63 THEN + COUNT ( * ) END * + 47 col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3418
SELECT COUNT ( * ) / - 53
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT DISTINCT 75 * + + NULLIF ( 66, - COUNT( * ) )
----
4950

skipif mysql # not compatible
query I rowsort label-3419
SELECT DISTINCT 75 * + + NULLIF ( 66, - COUNT ( * ) )
----
4950

query I rowsort
SELECT 43 * - 43 + + 73
----
-1776

query I rowsort
SELECT ALL 93 * + - 3
----
-279

query I rowsort
SELECT ALL - - 46 * - 39
----
-1794

query I rowsort
SELECT DISTINCT - ( - - 79 ) + 25
----
-54

query I rowsort
SELECT DISTINCT 49 + 55 AS col0
----
104

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3425
SELECT ALL - 88 + - COUNT( ALL - CAST( NULL AS DECIMAL ) ) * COUNT( * ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-3425
SELECT ALL - 88 + - COUNT ( ALL - CAST ( NULL AS REAL ) ) * COUNT ( * ) AS col0
----
-88

query I rowsort
SELECT - - COALESCE ( + 7, 99 ) * + ( 61 * 53 ) - + 50 AS col1
----
22581

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

skipif mysql # not compatible
query I rowsort label-3427
SELECT MIN ( ALL - 78 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT - 75 * - SUM( + 21 ) - ( 10 ) * + 3 AS col0
----
1545

skipif mysql # not compatible
query I rowsort label-3428
SELECT - 75 * - SUM ( + 21 ) - ( 10 ) * + 3 AS col0
----
1545

onlyif mysql # DIV for integer division: 
query I rowsort label-3429
SELECT - 50 DIV + 35
----
-1

skipif mysql # not compatible
query I rowsort label-3429
SELECT - 50 / + 35
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT ALL 20 + + MAX( 54 ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-3430
SELECT ALL 20 + + MAX ( 54 ) AS col0
----
74

query I rowsort
SELECT ALL - ( - + 2 ) col2
----
2

query I rowsort
SELECT DISTINCT + + 45 + 52 col0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3433
SELECT ALL + 73 + - 28 DIV - 91 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-3433
SELECT ALL + 73 + - 28 / - 91 AS col0
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3434
SELECT ALL + 62 * + - 30 * CAST( - 5 * - ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3434
SELECT ALL + 62 * + - 30 * CAST ( - 5 * - ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT CASE - 12 WHEN 49 THEN 44 + 52 ELSE NULL END + SUM( DISTINCT + 86 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3435
SELECT CASE - 12 WHEN 49 THEN 44 + 52 ELSE NULL END + SUM ( DISTINCT + 86 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3436
SELECT + 99 - CASE 37 WHEN + 94 * 82 THEN NULL WHEN 97 THEN + COALESCE ( ( 94 ), + 82 * MAX( DISTINCT 64 * - 96 ), CASE + 79 WHEN 74 THEN 22 WHEN CAST( NULL AS SIGNED ) + 64 THEN NULL WHEN 21 + 24 * 96 THEN + 86 ELSE NULL END ) END / - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-3436
SELECT + 99 - CASE 37 WHEN + 94 * 82 THEN NULL WHEN 97 THEN + COALESCE ( ( 94 ), + 82 * MAX ( DISTINCT 64 * - 96 ), CASE + 79 WHEN 74 THEN 22 WHEN CAST ( NULL AS INTEGER ) + 64 THEN NULL WHEN 21 + 24 * 96 THEN + 86 ELSE NULL END ) END / - 98
----
NULL

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

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

query II rowsort
SELECT 16 AS col0, 17
----
16
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3439
SELECT ALL + 73 - + COUNT( * ) * - MIN( ALL - 23 ) * + 25 AS col2
----
-502

skipif mysql # not compatible
query I rowsort label-3439
SELECT ALL + 73 - + COUNT ( * ) * - MIN ( ALL - 23 ) * + 25 AS col2
----
-502

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

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

query I rowsort
SELECT 6 * 47
----
282

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3442
SELECT CAST( 39 AS SIGNED ) * + + 72 + - 9 + + COUNT( DISTINCT + 32 ) AS col2
----
2800

skipif mysql # not compatible
query I rowsort label-3442
SELECT CAST ( 39 AS INTEGER ) * + + 72 + - 9 + + COUNT ( DISTINCT + 32 ) AS col2
----
2800

query I rowsort
SELECT 16 * 40
----
640

query II rowsort
SELECT DISTINCT 95, 97 AS col2
----
95
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3445
SELECT ALL 77 - - MIN( - NULLIF ( + 4, - ( 16 ) * + 78 ) )
----
73

skipif mysql # not compatible
query I rowsort label-3445
SELECT ALL 77 - - MIN ( - NULLIF ( + 4, - ( 16 ) * + 78 ) )
----
73

query I rowsort
SELECT 0 + 73
----
73

query I rowsort
SELECT 6 * - - 75
----
450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3448
SELECT DISTINCT + CAST( - - MIN( 9 ) AS SIGNED ) * 55 AS col0
----
495

skipif mysql # not compatible
query I rowsort label-3448
SELECT DISTINCT + CAST ( - - MIN ( 9 ) AS INTEGER ) * 55 AS col0
----
495

query II rowsort
SELECT 94, - ( - 6 ) * - ( 28 - - 45 ) AS col0
----
94
-438

onlyif mysql # aggregate syntax: 
query II rowsort label-3450
SELECT DISTINCT COUNT( * ) AS col0, + 56 + COUNT( * ) AS col0
----
1
57

skipif mysql # not compatible
query II rowsort label-3450
SELECT DISTINCT COUNT ( * ) AS col0, + 56 + COUNT ( * ) AS col0
----
1
57

query I rowsort
SELECT 96 * - 75
----
-7200

query I rowsort
SELECT 31 * 24 col0
----
744

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

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

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

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

query I rowsort
SELECT 12 + 24
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3456
SELECT DISTINCT COUNT( * ) AS col1, ( - 94 ) DIV - COUNT( + 20 ) - + 13 AS col0
----
1
81

skipif mysql # not compatible
query II rowsort label-3456
SELECT DISTINCT COUNT ( * ) AS col1, ( - 94 ) / - COUNT ( + 20 ) - + 13 AS col0
----
1
81

query I rowsort
SELECT 21 * - 45
----
-945

query I rowsort
SELECT ALL + 66 + + + 5 AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3459
SELECT DISTINCT - 80 * + + 3 + - 85 + COUNT( * ) * + 83 AS col0
----
-242

skipif mysql # not compatible
query I rowsort label-3459
SELECT DISTINCT - 80 * + + 3 + - 85 + COUNT ( * ) * + 83 AS col0
----
-242

onlyif mysql # aggregate syntax: 
query I rowsort label-3460
SELECT ALL + 74 * + CASE ( - 63 ) WHEN + 16 THEN + 58 WHEN 53 THEN NULL END / - 31 + 27 * 86 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3460
SELECT ALL + 74 * + CASE ( - 63 ) WHEN + 16 THEN + 58 WHEN 53 THEN NULL END / - 31 + 27 * 86 + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 23 * ( - + ( 96 ) ) + 35 col0
----
-2173

query I rowsort
SELECT - + ( 64 ) * + - 65 AS col2
----
4160

query I rowsort
SELECT 98 * + 31 + - 68 * + 23 AS col1
----
1474

onlyif mysql # aggregate syntax: 
query I rowsort label-3464
SELECT ALL + 44 * - COALESCE ( + MAX( ALL + 45 ), 46 - 29 ) + 91
----
-1889

skipif mysql # not compatible
query I rowsort label-3464
SELECT ALL + 44 * - COALESCE ( + MAX ( ALL + 45 ), 46 - 29 ) + 91
----
-1889

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

skipif mysql # not compatible
query I rowsort label-3465
SELECT + + COUNT ( * ) / 65
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT - COUNT( * ) + + 45 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-3466
SELECT - COUNT ( * ) + + 45 AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3467
SELECT - - 73 * + + 62 + + + 52 * NULLIF ( - 63 * ( - 7 * + COUNT( * ) ), + 39 ) AS col0
----
27458

skipif mysql # not compatible
query I rowsort label-3467
SELECT - - 73 * + + 62 + + + 52 * NULLIF ( - 63 * ( - 7 * + COUNT ( * ) ), + 39 ) AS col0
----
27458

query I rowsort
SELECT + 90 - 52 + - 66 * + 9
----
-556

onlyif mysql # aggregate syntax: 
query I rowsort label-3469
SELECT DISTINCT + NULLIF ( ( 27 ), 39 * COALESCE ( - COUNT( * ), 68, + 91 * + 79 + + NULLIF ( 23, - NULLIF ( MAX( - 9 ), - 11 ) + + 28 ) ) ) * - 49 AS col2
----
-1323

skipif mysql # not compatible
query I rowsort label-3469
SELECT DISTINCT + NULLIF ( ( 27 ), 39 * COALESCE ( - COUNT ( * ), 68, + 91 * + 79 + + NULLIF ( 23, - NULLIF ( MAX ( - 9 ), - 11 ) + + 28 ) ) ) * - 49 AS col2
----
-1323

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT ALL + 8 * + + 16 * + + 9 * ( 77 ) + COUNT( * ) * 21 col2
----
88725

skipif mysql # not compatible
query I rowsort label-3471
SELECT ALL + 8 * + + 16 * + + 9 * ( 77 ) + COUNT ( * ) * 21 col2
----
88725

query I rowsort
SELECT DISTINCT + 99 * + + 23 AS col1
----
2277

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3474
SELECT ALL + COUNT( * ) * - - 85 DIV 30 + 40 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-3474
SELECT ALL + COUNT ( * ) * - - 85 / 30 + 40 AS col0
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3475
SELECT + COUNT( * ) / + - CASE - 77 WHEN COUNT( * ) * COUNT( * ) THEN 0 * - 99 END + 47 + NULLIF ( 95, COUNT( * ) * CAST( COUNT( * ) * ( 48 * - 4 ) AS SIGNED ) ) / - 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3475
SELECT + COUNT ( * ) / + - CASE - 77 WHEN COUNT ( * ) * COUNT ( * ) THEN 0 * - 99 END + 47 + NULLIF ( 95, COUNT ( * ) * CAST ( COUNT ( * ) * ( 48 * - 4 ) AS INTEGER ) ) / - 77 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + + 26 * 35 + + - 91 * 2 AS col0
----
728

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3477
SELECT + - CASE + + 71 WHEN 75 + - 56 THEN NULL ELSE + CASE MIN( ALL CAST( NULL AS SIGNED ) ) WHEN 60 * + 99 THEN COUNT( * ) WHEN 77 * ( + 35 * - 97 ) THEN + 34 * 48 END END + - 99 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3477
SELECT + - CASE + + 71 WHEN 75 + - 56 THEN NULL ELSE + CASE MIN ( ALL CAST ( NULL AS INTEGER ) ) WHEN 60 * + 99 THEN COUNT ( * ) WHEN 77 * ( + 35 * - 97 ) THEN + 34 * 48 END END + - 99 col2
----
NULL

query I rowsort
SELECT + ( NULLIF ( + + 74, 81 * + 0 ) ) AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT + 59 * + COUNT( * ) + + 6 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-3479
SELECT + 59 * + COUNT ( * ) + + 6 AS col0
----
65

query I rowsort
SELECT ALL + 15 * + + NULLIF ( + - 22, + 59 ) - 93
----
-423

onlyif mysql # aggregate syntax: 
query II rowsort label-3481
SELECT ALL + 0 AS col0, - 57 * - 24 + 74 * MIN( ALL 31 + + 3 ) col0
----
0
3884

skipif mysql # not compatible
query II rowsort label-3481
SELECT ALL + 0 AS col0, - 57 * - 24 + 74 * MIN ( ALL 31 + + 3 ) col0
----
0
3884

onlyif mysql # DIV for integer division: 
query I rowsort label-3482
SELECT DISTINCT - 83 DIV + 90 + - COALESCE ( 55, 55 * - 9 ) * + 64 AS col0
----
-3520

skipif mysql # not compatible
query I rowsort label-3482
SELECT DISTINCT - 83 / + 90 + - COALESCE ( 55, 55 * - 9 ) * + 64 AS col0
----
-3520

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT COUNT( DISTINCT + ( 46 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3483
SELECT COUNT ( DISTINCT + ( 46 ) ) AS col1
----
1

query I rowsort
SELECT + 1 + - 19
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT ALL COALESCE ( - - 18, + 93 + 73, 85, - 28 ) * COALESCE ( 45 + + 4, + MAX( ALL + 73 ), 89 + - 33 )
----
882

skipif mysql # not compatible
query I rowsort label-3485
SELECT ALL COALESCE ( - - 18, + 93 + 73, 85, - 28 ) * COALESCE ( 45 + + 4, + MAX ( ALL + 73 ), 89 + - 33 )
----
882

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT DISTINCT COALESCE ( 61, 19 + + 83 - + 45 * 76 ) * NULLIF ( 16 + 92, - ( AVG ( - 69 ) ) * + SUM( 82 ) ) AS col1
----
6588

skipif mysql # not compatible
query I rowsort label-3486
SELECT DISTINCT COALESCE ( 61, 19 + + 83 - + 45 * 76 ) * NULLIF ( 16 + 92, - ( AVG ( - 69 ) ) * + SUM ( 82 ) ) AS col1
----
6588

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3487
SELECT DISTINCT 36 DIV - COUNT( * ) AS col1, - ( 27 ) + 86 * 76 col2
----
-36
6509

skipif mysql # not compatible
query II rowsort label-3487
SELECT DISTINCT 36 / - COUNT ( * ) AS col1, - ( 27 ) + 86 * 76 col2
----
-36
6509

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT + 48 * 33 * SUM( 17 ) AS col0
----
26928

skipif mysql # not compatible
query I rowsort label-3488
SELECT + 48 * 33 * SUM ( 17 ) AS col0
----
26928

onlyif mysql # DIV for integer division: 
query I rowsort label-3489
SELECT + 65 DIV + 54
----
1

skipif mysql # not compatible
query I rowsort label-3489
SELECT + 65 / + 54
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT ALL SUM( ALL 54 ) * - + 26 * + + 19 * + 42
----
-1120392

skipif mysql # not compatible
query I rowsort label-3490
SELECT ALL SUM ( ALL 54 ) * - + 26 * + + 19 * + 42
----
-1120392

query I rowsort
SELECT - CASE + 9 WHEN + ( + - 96 ) THEN 61 WHEN ( 96 ) * 26 THEN - 84 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3492
SELECT + 12 * - SUM( + 22 ) AS col0
----
-264

skipif mysql # not compatible
query I rowsort label-3492
SELECT + 12 * - SUM ( + 22 ) AS col0
----
-264

query I rowsort
SELECT - 35 / - + CASE 98 WHEN + + 9 THEN - 73 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3494
SELECT DISTINCT 58 DIV 43
----
1

skipif mysql # not compatible
query I rowsort label-3494
SELECT DISTINCT 58 / 43
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT + 82 - 29 - - COUNT( 31 ) + ( + 79 ) * SUM( - 51 )
----
-3975

skipif mysql # not compatible
query I rowsort label-3495
SELECT + 82 - 29 - - COUNT ( 31 ) + ( + 79 ) * SUM ( - 51 )
----
-3975

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3496
SELECT ALL CASE - 37 WHEN + 11 * CAST( NULL AS SIGNED ) THEN - 24 WHEN COALESCE ( 29, COALESCE ( 0, ( - ( 45 ) ) - - 12 ) ) THEN COUNT( * ) - + 11 / + 93 ELSE NULL END + 0 / 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3496
SELECT ALL CASE - 37 WHEN + 11 * CAST ( NULL AS INTEGER ) THEN - 24 WHEN COALESCE ( 29, COALESCE ( 0, ( - ( 45 ) ) - - 12 ) ) THEN COUNT ( * ) - + 11 / + 93 ELSE NULL END + 0 / 1 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 35 + + - 32 * - 99 * + 59 AS col2
----
186947

query I rowsort
SELECT ALL - 80 + - 58 * 67 * - 52
----
201992

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

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

query I rowsort
SELECT DISTINCT - - 41 + + 88 + + 3 - - + 13 AS col1
----
145

query I rowsort
SELECT DISTINCT + - 79 + + - 78 - - - 67 col0
----
-224

onlyif mysql # DIV for integer division: 
query I rowsort label-3502
SELECT ALL - 47 DIV + 1 + + + 88 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-3502
SELECT ALL - 47 / + 1 + + + 88 AS col0
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-3503
SELECT - + 66 DIV - + 62
----
1

skipif mysql # not compatible
query I rowsort label-3503
SELECT - + 66 / - + 62
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3504
SELECT ALL + CAST( - - 26 AS SIGNED ) DIV + SUM( DISTINCT - 82 ) * 45 - - 29 col2
----
29

skipif mysql # not compatible
query I rowsort label-3504
SELECT ALL + CAST ( - - 26 AS INTEGER ) / + SUM ( DISTINCT - 82 ) * 45 - - 29 col2
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3505
SELECT ALL 3 DIV + 98 - 41 + - 1 * 94 * COUNT( * ) AS col0
----
-135

skipif mysql # not compatible
query I rowsort label-3505
SELECT ALL 3 / + 98 - 41 + - 1 * 94 * COUNT ( * ) AS col0
----
-135

query I rowsort
SELECT - 41 * 89 * - - 53
----
-193397

query I rowsort
SELECT + ( - NULLIF ( 84, NULLIF ( + 94, - 53 ) ) )
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3508
SELECT - 54 * - 65 DIV COUNT( * ) * - + ( 46 )
----
-161460

skipif mysql # not compatible
query I rowsort label-3508
SELECT - 54 * - 65 / COUNT ( * ) * - + ( 46 )
----
-161460

onlyif mysql # aggregate syntax: 
query I rowsort label-3509
SELECT - + MIN( ALL + 60 ) * + 49
----
-2940

skipif mysql # not compatible
query I rowsort label-3509
SELECT - + MIN ( ALL + 60 ) * + 49
----
-2940

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

skipif mysql # not compatible
query I rowsort label-3510
SELECT - COUNT ( * ) / - 36
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT + 15 * + - COUNT( * ) * - 44 - - + COALESCE ( 52, 39 + + 96, COALESCE ( + 80, 68 ) + + 29 ) + 35 * COUNT( * ) AS col2
----
747

skipif mysql # not compatible
query I rowsort label-3511
SELECT + 15 * + - COUNT ( * ) * - 44 - - + COALESCE ( 52, 39 + + 96, COALESCE ( + 80, 68 ) + + 29 ) + 35 * COUNT ( * ) AS col2
----
747

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3512
SELECT ALL - 96 * COUNT( + CAST( NULL AS SIGNED ) ) + 43 DIV 46 col2
----
0

skipif mysql # not compatible
query I rowsort label-3512
SELECT ALL - 96 * COUNT ( + CAST ( NULL AS INTEGER ) ) + 43 / 46 col2
----
0

query I rowsort
SELECT - - 90 - - ( 32 )
----
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3514
SELECT + CASE - - COUNT( * ) WHEN + 67 + 59 THEN NULL ELSE - 96 * 96 - + CAST( 14 + + 4 * 75 AS SIGNED ) END AS col1
----
-9530

skipif mysql # not compatible
query I rowsort label-3514
SELECT + CASE - - COUNT ( * ) WHEN + 67 + 59 THEN NULL ELSE - 96 * 96 - + CAST ( 14 + + 4 * 75 AS INTEGER ) END AS col1
----
-9530

query I rowsort
SELECT ALL CASE + 81 WHEN + + 58 + + 22 + + 0 * + 2 / 1 THEN NULL WHEN + 16 THEN - 56 * + 22 WHEN ( 18 ) THEN 81 + 25 ELSE NULL END * + ( 71 * - 64 ) AS col2
----
NULL

query I rowsort
SELECT ALL + 10 * - ( + 23 ) AS col2
----
-230

query II rowsort
SELECT ALL + 61 col0, - 73 + + 75
----
61
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3518
SELECT - CAST( - + COUNT( * ) AS SIGNED ) * - CASE 18 WHEN 21 * - 0 THEN - CASE CAST( 14 AS SIGNED ) WHEN + COUNT( * ) * - 30 + + 31 * - 60 THEN + 53 / CASE + CAST( NULL AS SIGNED ) WHEN 41 THEN - 3 END WHEN - 13 THEN NULL END * 22 WHEN 33 * - 22 THEN ( + 37 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3518
SELECT - CAST ( - + COUNT ( * ) AS INTEGER ) * - CASE 18 WHEN 21 * - 0 THEN - CASE CAST ( 14 AS INTEGER ) WHEN + COUNT ( * ) * - 30 + + 31 * - 60 THEN + 53 / CASE + CAST ( NULL AS INTEGER ) WHEN 41 THEN - 3 END WHEN - 13 THEN NULL END * 22 WHEN 33 * - 22 THEN ( + 37 ) ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT + NULLIF ( - 34, + 20 )
----
-34

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

skipif mysql # not compatible
query I rowsort label-3521
SELECT ALL + 83 * - COUNT ( * ) * 96 AS col2
----
-7968

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT DISTINCT + COALESCE ( 32, + 32 + - 36, + 60 * - COUNT( 28 * + 71 ) ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-3522
SELECT DISTINCT + COALESCE ( 32, + 32 + - 36, + 60 * - COUNT ( 28 * + 71 ) ) AS col2
----
32

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

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

query I rowsort
SELECT + 18 - + - 85 - + - 66 * - 26 * + + 82 col2
----
-140609

query I rowsort
SELECT COALESCE ( - - 3, + ( + + 20 ) )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT MIN( 5 )
----
5

skipif mysql # not compatible
query I rowsort label-3526
SELECT MIN ( 5 )
----
5

query I rowsort
SELECT + 94 * - + 69 AS col2
----
-6486

query I rowsort
SELECT - 6 + - 63 + - 32 AS col1
----
-101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3529
SELECT ALL + AVG ( ALL 16 ) * - CAST( NULL AS SIGNED ) * + 77 * 80 * - 56 + 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3529
SELECT ALL + AVG ( ALL 16 ) * - CAST ( NULL AS INTEGER ) * + 77 * 80 * - 56 + 65 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3530
SELECT + 82 + - COUNT( * ) + + MAX( ALL + COALESCE ( - - 12, - 13 * 28 ) ) DIV 73
----
81

skipif mysql # not compatible
query I rowsort label-3530
SELECT + 82 + - COUNT ( * ) + + MAX ( ALL + COALESCE ( - - 12, - 13 * 28 ) ) / 73
----
81

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3532
SELECT 25 + + - ( COUNT( * ) ) * - NULLIF ( 69, + 29 + + CASE - SUM( - CAST( NULL AS SIGNED ) ) WHEN + 73 * 93 THEN + 90 + 67 * ( 57 ) ELSE NULL END ) + 26 AS col2
----
120

skipif mysql # not compatible
query I rowsort label-3532
SELECT 25 + + - ( COUNT ( * ) ) * - NULLIF ( 69, + 29 + + CASE - SUM ( - CAST ( NULL AS INTEGER ) ) WHEN + 73 * 93 THEN + 90 + 67 * ( 57 ) ELSE NULL END ) + 26 AS col2
----
120

query I rowsort
SELECT ALL 64 + - 92
----
-28

query I rowsort
SELECT ALL 81 + + + 11 AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT ALL 46 + ( 92 ) + COUNT( * ) * + - 85 * - 9 + 65
----
968

skipif mysql # not compatible
query I rowsort label-3535
SELECT ALL 46 + ( 92 ) + COUNT ( * ) * + - 85 * - 9 + 65
----
968

query I rowsort
SELECT ALL 64 + + - 46 AS col2
----
18

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3538
SELECT 2 * - - MIN( 96 )
----
192

skipif mysql # not compatible
query I rowsort label-3538
SELECT 2 * - - MIN ( 96 )
----
192

query I rowsort
SELECT 45 * - 74 + + - 14 + - 74 + - + 27 + - 8 * - 96
----
-2677

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT - MAX( ALL + 37 ) * - + 94 AS col0
----
3478

skipif mysql # not compatible
query I rowsort label-3540
SELECT - MAX ( ALL + 37 ) * - + 94 AS col0
----
3478

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3541
SELECT + CAST( NULL AS SIGNED ) + + 75 + SUM( - 76 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3541
SELECT + CAST ( NULL AS INTEGER ) + + 75 + SUM ( - 76 ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT DISTINCT + 10 - CASE ( + + 21 ) WHEN 41 / + 61 + COUNT( * ) THEN NULL ELSE - 88 * - NULLIF ( MIN( ( + 78 ) ), - 73 * 18 ) END col2
----
-6854

skipif mysql # not compatible
query I rowsort label-3542
SELECT DISTINCT + 10 - CASE ( + + 21 ) WHEN 41 / + 61 + COUNT ( * ) THEN NULL ELSE - 88 * - NULLIF ( MIN ( ( + 78 ) ), - 73 * 18 ) END col2
----
-6854

query I rowsort
SELECT ALL - - NULLIF ( + + 64, + 96 ) - + 50 col2
----
14

query I rowsort
SELECT + ( - - ( - + 72 ) ) * + - NULLIF ( + 79, - 88 * 57 + - 26 )
----
5688

onlyif mysql # aggregate syntax: 
query I rowsort label-3545
SELECT ALL - SUM( - 28 ) * 2 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-3545
SELECT ALL - SUM ( - 28 ) * 2 AS col1
----
56

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

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

query I rowsort
SELECT DISTINCT 8 - ( - 33 ) AS col2
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3548
SELECT ALL - CASE - CAST( + 91 AS SIGNED ) WHEN + + MIN( 43 ) THEN 7 * 62 + + NULLIF ( 97, 39 - + 80 ) * - 17 WHEN - 41 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3548
SELECT ALL - CASE - CAST ( + 91 AS INTEGER ) WHEN + + MIN ( 43 ) THEN 7 * 62 + + NULLIF ( 97, 39 - + 80 ) * - 17 WHEN - 41 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3549
SELECT DISTINCT - + MAX( ALL + 85 ) * + - 97 * + 25
----
206125

skipif mysql # not compatible
query I rowsort label-3549
SELECT DISTINCT - + MAX ( ALL + 85 ) * + - 97 * + 25
----
206125

query II rowsort
SELECT ALL - 71 AS col2, + 17 * + 64
----
-71
1088

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3551
SELECT + 0 * + 1 + - - 16 + CAST( 23 AS SIGNED ) * MIN( - 62 + 22 ) col1
----
-904

skipif mysql # not compatible
query I rowsort label-3551
SELECT + 0 * + 1 + - - 16 + CAST ( 23 AS INTEGER ) * MIN ( - 62 + 22 ) col1
----
-904

onlyif mysql # aggregate syntax: 
query I rowsort label-3552
SELECT DISTINCT - NULLIF ( - COUNT( * ), - 92 * + 76 + 16 + 91 + 8 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3552
SELECT DISTINCT - NULLIF ( - COUNT ( * ), - 92 * + 76 + 16 + 91 + 8 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3553
SELECT DISTINCT - - NULLIF ( - COUNT( * ), + 93 ), - ( + ( NULLIF ( - COUNT( * ), 8 ) ) ) AS col1
----
-1
1

skipif mysql # not compatible
query II rowsort label-3553
SELECT DISTINCT - - NULLIF ( - COUNT ( * ), + 93 ), - ( + ( NULLIF ( - COUNT ( * ), 8 ) ) ) AS col1
----
-1
1

query I rowsort
SELECT 6 + - 4
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3555
SELECT 16 + + CAST( NULL AS SIGNED ) * - COALESCE ( - + 40, + 53 / + CASE - 6 WHEN 64 THEN 1 WHEN - COALESCE ( - 74, - 95, + 24 ) / 81 THEN NULL END ) + - 80 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3555
SELECT 16 + + CAST ( NULL AS INTEGER ) * - COALESCE ( - + 40, + 53 / + CASE - 6 WHEN 64 THEN 1 WHEN - COALESCE ( - 74, - 95, + 24 ) / 81 THEN NULL END ) + - 80 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3556
SELECT ALL - 42 DIV + COALESCE ( - CASE - COUNT( * ) WHEN 48 THEN 86 END, - 98 * 66, - 98 - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-3556
SELECT ALL - 42 / + COALESCE ( - CASE - COUNT ( * ) WHEN 48 THEN 86 END, - 98 * 66, - 98 - CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT - 40 * 74 + - 76 AS col0
----
-3036

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3558
SELECT ALL - CAST( + 36 AS SIGNED ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-3558
SELECT ALL - CAST ( + 36 AS INTEGER ) AS col0
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-3559
SELECT DISTINCT - NULLIF ( 92, + 42 ) DIV - + 45
----
2

skipif mysql # not compatible
query I rowsort label-3559
SELECT DISTINCT - NULLIF ( 92, + 42 ) / - + 45
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3560
SELECT 99 DIV + 77 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3560
SELECT 99 / + 77 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3561
SELECT MIN( DISTINCT + CAST( NULL AS SIGNED ) ) * COUNT( * ) * - + 16 * CASE + + AVG ( ALL 97 ) WHEN ( + NULLIF ( SUM( CAST( NULL AS DECIMAL ) ), 6 ) ) THEN 51 * 31 + - 6 WHEN + 48 * - 34 THEN NULL WHEN 91 * + ( SUM( CAST( NULL AS SIGNED ) ) ) THEN NULL END * - 4 + - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-3561
SELECT MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) * COUNT ( * ) * - + 16 * CASE + + AVG ( ALL 97 ) WHEN ( + NULLIF ( SUM ( CAST ( NULL AS REAL ) ), 6 ) ) THEN 51 * 31 + - 6 WHEN + 48 * - 34 THEN NULL WHEN 91 * + ( SUM ( CAST ( NULL AS INTEGER ) ) ) THEN NULL END * - 4 + - 67
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3562
SELECT ALL + 7 * - - CAST( 5 AS SIGNED )
----
35

skipif mysql # not compatible
query I rowsort label-3562
SELECT ALL + 7 * - - CAST ( 5 AS INTEGER )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT DISTINCT + 25 * + 9 * + MAX( ALL - 66 )
----
-14850

skipif mysql # not compatible
query I rowsort label-3563
SELECT DISTINCT + 25 * + 9 * + MAX ( ALL - 66 )
----
-14850

query II rowsort
SELECT - 59, - 69 * 87 + - - 27 + 57 + - 52 AS col2
----
-59
-5971

query I rowsort
SELECT DISTINCT - 62 * - 15
----
930

query II rowsort
SELECT DISTINCT 13 AS col2, 76 AS col1
----
13
76

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3568
SELECT ALL + 89 + COUNT( * ), + 62 AS col0
----
90
62

skipif mysql # not compatible
query II rowsort label-3568
SELECT ALL + 89 + COUNT ( * ), + 62 AS col0
----
90
62

query I rowsort
SELECT ALL 23 + - 1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT CASE 75 WHEN COUNT( * ) + CASE WHEN + 50 IS NOT NULL THEN NULL ELSE 81 * 46 - 94 * - ( + 91 / 43 ) END + - 81 THEN 26 + 68 END + 59 * COALESCE ( + 60, 0, 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3570
SELECT CASE 75 WHEN COUNT ( * ) + CASE WHEN + 50 IS NOT NULL THEN NULL ELSE 81 * 46 - 94 * - ( + 91 / 43 ) END + - 81 THEN 26 + 68 END + 59 * COALESCE ( + 60, 0, 44 )
----
NULL

query I rowsort
SELECT 60 * 78 * - 75 AS col1
----
-351000

query I rowsort
SELECT 66 + - ( + + 44 ) AS col2
----
22

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

skipif mysql # not compatible
query II rowsort label-3573
SELECT 69 AS col1, COUNT ( * )
----
69
1

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

skipif mysql # not compatible
query I rowsort label-3574
SELECT - + ( + MAX ( 30 ) )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT ALL MIN( - 6 ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-3575
SELECT ALL MIN ( - 6 ) AS col0
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-3576
SELECT ALL - 60, COUNT( * ) - COUNT( * ) AS col1
----
-60
0

skipif mysql # not compatible
query II rowsort label-3576
SELECT ALL - 60, COUNT ( * ) - COUNT ( * ) AS col1
----
-60
0

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

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

query II rowsort
SELECT ALL - 37 AS col1, + 30
----
-37
30

onlyif mysql # DIV for integer division: 
query I rowsort label-3579
SELECT ALL 75 * 7 DIV + 4
----
131

skipif mysql # not compatible
query I rowsort label-3579
SELECT ALL 75 * 7 / + 4
----
131

query I rowsort
SELECT 39 * - 65 * - 11 AS col1
----
27885

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3582
SELECT CASE - - 73 WHEN 74 THEN + 93 END + - + 32 * NULLIF ( CASE - COUNT( * ) WHEN 46 THEN 3 * 41 + CAST( 17 AS DECIMAL ) ELSE - COUNT( * ) END, 49 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3582
SELECT CASE - - 73 WHEN 74 THEN + 93 END + - + 32 * NULLIF ( CASE - COUNT ( * ) WHEN 46 THEN 3 * 41 + CAST ( 17 AS REAL ) ELSE - COUNT ( * ) END, 49 ) col1
----
NULL

query I rowsort
SELECT ALL 97 * 39
----
3783

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3584
SELECT - 41 - 16 - - 5 * + - 7 + + 0 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3584
SELECT - 41 - 16 - - 5 * + - 7 + + 0 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3585
SELECT COALESCE ( + COUNT( * ), 49 ) DIV - 17 * 94 * - 6 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3585
SELECT COALESCE ( + COUNT ( * ), 49 ) / - 17 * 94 * - 6 AS col1
----
0

query I rowsort
SELECT + 94 * + - ( - 77 ) * - 10 col2
----
-72380

query I rowsort
SELECT 9 * + 94 + + 31
----
877

query I rowsort
SELECT + 86 * - CASE 94 WHEN + - 20 THEN - 50 * + 25 * 2 + 91 * 45 WHEN 59 THEN NULL END + - 67 + 14 AS col2
----
NULL

query II rowsort
SELECT DISTINCT - 70 AS col1, - 56
----
-70
-56

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3591
SELECT DISTINCT - CASE - 25 WHEN - + 16 THEN NULL ELSE - - COUNT( * ) END AS col1, + CASE - + 25 WHEN 88 THEN NULL WHEN 94 + - AVG ( CAST( NULL AS DECIMAL ) + + 4 ) THEN - SUM( - 75 ) END AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-3591
SELECT DISTINCT - CASE - 25 WHEN - + 16 THEN NULL ELSE - - COUNT ( * ) END AS col1, + CASE - + 25 WHEN 88 THEN NULL WHEN 94 + - AVG ( CAST ( NULL AS REAL ) + + 4 ) THEN - SUM ( - 75 ) END AS col2
----
-1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3592
SELECT DISTINCT - CAST( NULL AS SIGNED ), 50 + - 14 AS col2
----
NULL
36

skipif mysql # not compatible
query II rowsort label-3592
SELECT DISTINCT - CAST ( NULL AS INTEGER ), 50 + - 14 AS col2
----
NULL
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3593
SELECT DISTINCT - 71 * - 19 + - - CAST( - + 27 AS SIGNED ) col1
----
1322

skipif mysql # not compatible
query I rowsort label-3593
SELECT DISTINCT - 71 * - 19 + - - CAST ( - + 27 AS INTEGER ) col1
----
1322

onlyif mysql # aggregate syntax: 
query I rowsort label-3594
SELECT ALL - COUNT( * ) * - COUNT( * ) + + - 61 * - 16 AS col0
----
977

skipif mysql # not compatible
query I rowsort label-3594
SELECT ALL - COUNT ( * ) * - COUNT ( * ) + + - 61 * - 16 AS col0
----
977

query I rowsort
SELECT ALL 7 * - + 4
----
-28

query I rowsort
SELECT 25 * - ( - + 2 ) AS col2
----
50

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

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

query I rowsort
SELECT COALESCE ( + 49, ( - 7 ) + - 8, - 62 * - 51 + + 71 + + 40 * - 23 ) + + 1 * - 20 AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT DISTINCT COUNT( * ) + + 47 AS col2
----
48

skipif mysql # not compatible
query I rowsort label-3599
SELECT DISTINCT COUNT ( * ) + + 47 AS col2
----
48

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

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

query I rowsort
SELECT DISTINCT + CASE 95 WHEN NULLIF ( - ( - 48 ), + 3 ) THEN + 76 WHEN - ( + 89 ) + - 48 THEN ( 11 ) / 49 ELSE NULL END
----
NULL

query I rowsort
SELECT 85 * + - 4 - - 17
----
-323

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3603
SELECT DISTINCT + CAST( + 31 AS SIGNED ) DIV - ( - 56 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3603
SELECT DISTINCT + CAST ( + 31 AS INTEGER ) / - ( - 56 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT + 99 + CASE MAX( DISTINCT 72 ) WHEN COUNT( * ) - 60 + - 85 + 91 * 68 THEN - 55 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3604
SELECT + 99 + CASE MAX ( DISTINCT 72 ) WHEN COUNT ( * ) - 60 + - 85 + 91 * 68 THEN - 55 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3605
SELECT - COUNT( * ) + 26 AS col1, - 10 col2
----
25
-10

skipif mysql # not compatible
query II rowsort label-3605
SELECT - COUNT ( * ) + 26 AS col1, - 10 col2
----
25
-10

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

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

query I rowsort
SELECT DISTINCT + 76 * - 47 AS col0
----
-3572

onlyif mysql # DIV for integer division: 
query I rowsort label-3608
SELECT - 93 + + 60 DIV - - 93 AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-3608
SELECT - 93 + + 60 / - - 93 AS col0
----
-93

query I rowsort
SELECT ALL + 58 * + - 62
----
-3596

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT DISTINCT + 73 * + 95 + 43 + + - CASE ( - MIN( - 86 ) ) WHEN + 11 * 50 THEN 58 WHEN + 47 + + 10 THEN NULL ELSE NULL END * 50 * 45 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3611
SELECT DISTINCT + 73 * + 95 + 43 + + - CASE ( - MIN ( - 86 ) ) WHEN + 11 * 50 THEN 58 WHEN + 47 + + 10 THEN NULL ELSE NULL END * 50 * 45 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3612
SELECT ALL - - CASE WHEN NOT 94 IS NULL THEN + 42 * + CAST( NULL AS SIGNED ) ELSE NULL END * + 18 * 67 * 51 + + 54 / 93 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3612
SELECT ALL - - CASE WHEN NOT 94 IS NULL THEN + 42 * + CAST ( NULL AS INTEGER ) ELSE NULL END * + 18 * 67 * 51 + + 54 / 93 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT DISTINCT + NULLIF ( - COUNT( * ), 39 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-3613
SELECT DISTINCT + NULLIF ( - COUNT ( * ), 39 ) col0
----
-1

query I rowsort
SELECT DISTINCT - 82 - + COALESCE ( + 58, 95 ) + + - 39
----
-179

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3615
SELECT ALL ( + + NULLIF ( - - 44, - 2 + + 5 ) ) AS col2, + CAST( - 15 AS SIGNED ) + 57 * - 97
----
44
-5544

skipif mysql # not compatible
query II rowsort label-3615
SELECT ALL ( + + NULLIF ( - - 44, - 2 + + 5 ) ) AS col2, + CAST ( - 15 AS INTEGER ) + 57 * - 97
----
44
-5544

query I rowsort
SELECT + - 80 + - + 72 + + 88
----
-64

query I rowsort
SELECT - 74 + - 35 + 12 * - + COALESCE ( 45, - - ( 82 ), 52 ) * 99 AS col0
----
-53569

query I rowsort
SELECT + ( + 15 ) * + + 54 AS col1
----
810

query II rowsort
SELECT - 87 + 43 AS col2, COALESCE ( - + 83, ( 93 ) + - 29 * - 57, + 32 ) * 45 col2
----
-44
-3735

query I rowsort
SELECT DISTINCT - 66 * - + 59 AS col0
----
3894

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3621
SELECT DISTINCT ( + COUNT( * ) ) AS col1, + CAST( + + 58 AS SIGNED )
----
1
58

skipif mysql # not compatible
query II rowsort label-3621
SELECT DISTINCT ( + COUNT ( * ) ) AS col1, + CAST ( + + 58 AS INTEGER )
----
1
58

query I rowsort
SELECT ALL - + ( + 60 ) + + 81 col2
----
21

query I rowsort
SELECT ALL 45 * 75 * - + 47 col1
----
-158625

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3624
SELECT + 14 DIV - 58, - COUNT( DISTINCT - + 30 ) AS col1
----
0
-1

skipif mysql # not compatible
query II rowsort label-3624
SELECT + 14 / - 58, - COUNT ( DISTINCT - + 30 ) AS col1
----
0
-1

query I rowsort
SELECT ALL + 22 + + 25
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3626
SELECT ALL + - 19 DIV + 21 + + + ( - - COUNT( * ) ) + 87 + + - 2 * ( - 31 ) DIV - 2 + 48 * 20
----
1017

skipif mysql # not compatible
query I rowsort label-3626
SELECT ALL + - 19 / + 21 + + + ( - - COUNT ( * ) ) + 87 + + - 2 * ( - 31 ) / - 2 + 48 * 20
----
1017

query II rowsort
SELECT + - 11 + - 78 + - 38, 19 AS col2
----
-127
19

query I rowsort
SELECT DISTINCT + - 0 * + 94 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT - 21 * + COUNT( * ) * 16 + + 75
----
-261

skipif mysql # not compatible
query I rowsort label-3629
SELECT - 21 * + COUNT ( * ) * 16 + + 75
----
-261

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3630
SELECT ALL - 75 / - 2 + - CASE + CAST( COUNT( * ) AS DECIMAL ) WHEN + 62 THEN + 76 * + 79 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3630
SELECT ALL - 75 / - 2 + - CASE + CAST ( COUNT ( * ) AS REAL ) WHEN + 62 THEN + 76 * + 79 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT ALL - 73 * - 38 * - COUNT( * )
----
-2774

skipif mysql # not compatible
query I rowsort label-3631
SELECT ALL - 73 * - 38 * - COUNT ( * )
----
-2774

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3632
SELECT - - MIN( ALL - 53 ) DIV - COALESCE ( - 93, + + 24 DIV + 85, + 69 ) + - 68 AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-3632
SELECT - - MIN ( ALL - 53 ) / - COALESCE ( - 93, + + 24 / + 85, + 69 ) + - 68 AS col1
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3633
SELECT - 94 DIV 55 + - 9 + 8 + - 94 + - - 33 * 24 * + COUNT( * ) * + NULLIF ( COUNT( * ), - 43 ) + + 68
----
764

skipif mysql # not compatible
query I rowsort label-3633
SELECT - 94 / 55 + - 9 + 8 + - 94 + - - 33 * 24 * + COUNT ( * ) * + NULLIF ( COUNT ( * ), - 43 ) + + 68
----
764

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

skipif mysql # not compatible
query I rowsort label-3634
SELECT - CAST ( NULL AS INTEGER ) + 15 * + 99 AS col2
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3636
SELECT + 95 + - CAST( - 80 AS SIGNED ) + 0 + - 6 AS col1
----
169

skipif mysql # not compatible
query I rowsort label-3636
SELECT + 95 + - CAST ( - 80 AS INTEGER ) + 0 + - 6 AS col1
----
169

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3637
SELECT ALL - 9 * - ( 28 ) + + - 83 DIV - 88 + + COUNT( * ) + 4
----
257

skipif mysql # not compatible
query I rowsort label-3637
SELECT ALL - 9 * - ( 28 ) + + - 83 / - 88 + + COUNT ( * ) + 4
----
257

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3640
SELECT - COALESCE ( - + 94, 74 * - 73 + + 64 * - COUNT( * ) + - + 42 ) * + COUNT( DISTINCT 14 ) * - CASE - 69 WHEN 49 THEN NULL WHEN 12 THEN NULL WHEN - 67 THEN NULL WHEN - 32 THEN 16 * - 85 + 58 ELSE NULL END + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-3640
SELECT - COALESCE ( - + 94, 74 * - 73 + + 64 * - COUNT ( * ) + - + 42 ) * + COUNT ( DISTINCT 14 ) * - CASE - 69 WHEN 49 THEN NULL WHEN 12 THEN NULL WHEN - 67 THEN NULL WHEN - 32 THEN 16 * - 85 + 58 ELSE NULL END + 87
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT + NULLIF ( 58, + 13 / - - 68 + - + 73 + - - COUNT( * ) ) col0
----
58

skipif mysql # not compatible
query I rowsort label-3642
SELECT + NULLIF ( 58, + 13 / - - 68 + - + 73 + - - COUNT ( * ) ) col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3643
SELECT ALL 68 * - COUNT( ALL - + 13 ) * + 65 + - SUM( DISTINCT + - 77 ) + + COUNT( * ) * + - 48 AS col0
----
-4391

skipif mysql # not compatible
query I rowsort label-3643
SELECT ALL 68 * - COUNT ( ALL - + 13 ) * + 65 + - SUM ( DISTINCT + - 77 ) + + COUNT ( * ) * + - 48 AS col0
----
-4391

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3644
SELECT + 53 + 16 + + + 5 / + CAST( NULL AS SIGNED ) / + 96 - - CAST( + - ( + 9 ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3644
SELECT + 53 + 16 + + + 5 / + CAST ( NULL AS INTEGER ) / + 96 - - CAST ( + - ( + 9 ) AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT CASE + 85 WHEN - 31 THEN NULL WHEN + 28 + - 17 THEN + 30 * + COALESCE ( + 95, - 68, 19 ) END
----
NULL

query I rowsort
SELECT ALL 87 * - - 32
----
2784

onlyif mysql # aggregate syntax: 
query I rowsort label-3647
SELECT - CASE 48 WHEN - 82 + + 50 THEN - MAX( ALL + + 53 ) END * 89 - ( CASE 21 WHEN 86 THEN 59 WHEN + SUM( DISTINCT + 15 ) THEN NULL END ) * - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-3647
SELECT - CASE 48 WHEN - 82 + + 50 THEN - MAX ( ALL + + 53 ) END * 89 - ( CASE 21 WHEN 86 THEN 59 WHEN + SUM ( DISTINCT + 15 ) THEN NULL END ) * - 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT NULLIF ( - NULLIF ( + + ( 90 ), - ( - ( - 81 ) ) ), - COUNT( * ) )
----
-90

skipif mysql # not compatible
query I rowsort label-3648
SELECT NULLIF ( - NULLIF ( + + ( 90 ), - ( - ( - 81 ) ) ), - COUNT ( * ) )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT ALL NULLIF ( - COUNT( * ), - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3649
SELECT ALL NULLIF ( - COUNT ( * ), - COUNT ( * ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3650
SELECT - CAST( 18 AS SIGNED )
----
-18

skipif mysql # not compatible
query I rowsort label-3650
SELECT - CAST ( 18 AS INTEGER )
----
-18

query I rowsort
SELECT - - 33 * + - 68 col2
----
-2244

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3652
SELECT - 29, - 7 DIV - COUNT( * ) + - + COUNT( * ) + - 65 - 1 * - - COUNT( * ) + - - ( - 75 ) * 21 AS col2
----
-29
-1635

skipif mysql # not compatible
query II rowsort label-3652
SELECT - 29, - 7 / - COUNT ( * ) + - + COUNT ( * ) + - 65 - 1 * - - COUNT ( * ) + - - ( - 75 ) * 21 AS col2
----
-29
-1635

onlyif mysql # aggregate syntax: 
query II rowsort label-3653
SELECT COUNT( * ) AS col1, 45 + 96 + + + COUNT( * ) * + - 63 * - 82 AS col0
----
1
5307

skipif mysql # not compatible
query II rowsort label-3653
SELECT COUNT ( * ) AS col1, 45 + 96 + + + COUNT ( * ) * + - 63 * - 82 AS col0
----
1
5307

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT + - 89 + NULLIF ( - 19, - SUM( - 12 ) * + + 22 )
----
-108

skipif mysql # not compatible
query I rowsort label-3654
SELECT + - 89 + NULLIF ( - 19, - SUM ( - 12 ) * + + 22 )
----
-108

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3655
SELECT - CAST( NULL AS SIGNED ) col0, - 81
----
NULL
-81

skipif mysql # not compatible
query II rowsort label-3655
SELECT - CAST ( NULL AS INTEGER ) col0, - 81
----
NULL
-81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3656
SELECT + 35 DIV + - 6 + 76 + + - 62 + + - CAST( - 18 AS SIGNED ) * + 66 + - 3 DIV - 65
----
1197

skipif mysql # not compatible
query I rowsort label-3656
SELECT + 35 / + - 6 + 76 + + - 62 + + - CAST ( - 18 AS INTEGER ) * + 66 + - 3 / - 65
----
1197

onlyif mysql # aggregate syntax: 
query I rowsort label-3657
SELECT + COALESCE ( - MAX( - - 48 ), + 82 ) * 43 * - 81 AS col0
----
167184

skipif mysql # not compatible
query I rowsort label-3657
SELECT + COALESCE ( - MAX ( - - 48 ), + 82 ) * 43 * - 81 AS col0
----
167184

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3658
SELECT ALL COUNT( * ), - COUNT( * ) * + COUNT( * ) DIV + 14 * - 30 + - 23 AS col0
----
1
-23

skipif mysql # not compatible
query II rowsort label-3658
SELECT ALL COUNT ( * ), - COUNT ( * ) * + COUNT ( * ) / + 14 * - 30 + - 23 AS col0
----
1
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT ALL - NULLIF ( + 16, ( + + 34 ) ) * - CASE + 38 WHEN + 58 * + 62 / + 74 + + COUNT( * ) THEN + 65 WHEN MAX( 27 ) / 18 THEN NULL END + - 78 * - 2 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3659
SELECT ALL - NULLIF ( + 16, ( + + 34 ) ) * - CASE + 38 WHEN + 58 * + 62 / + 74 + + COUNT ( * ) THEN + 65 WHEN MAX ( 27 ) / 18 THEN NULL END + - 78 * - 2 AS col0
----
NULL

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

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

query I rowsort
SELECT ALL + 37 * - + 36 + - 54 AS col2
----
-1386

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT ALL + 26 + - MIN( ALL + 80 )
----
-54

skipif mysql # not compatible
query I rowsort label-3662
SELECT ALL + 26 + - MIN ( ALL + 80 )
----
-54

query I rowsort
SELECT ALL - 68 + - - 15 AS col0
----
-53

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

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

query I rowsort
SELECT ALL - - 77 + - + 22
----
55

query I rowsort
SELECT ALL + 77 * + + 57 AS col1
----
4389

query I rowsort
SELECT - 51 * + - 34
----
1734

query I rowsort
SELECT - 21 * + - 63
----
1323

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

query II rowsort
SELECT - 92, - 22 + 99 + - 58 AS col0
----
-92
19

query I rowsort
SELECT ALL - 85 + 95
----
10

query I rowsort
SELECT ALL + 20 + 98
----
118

query II rowsort
SELECT - 7 * + - 91 col0, - 5 * - - 81
----
637
-405

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3675
SELECT ALL CAST( - CASE 26 WHEN - CAST( NULL AS SIGNED ) + + + 93 + + 7 + - 31 THEN NULL WHEN - 79 - + - SUM( DISTINCT - 1 ) + + CASE COUNT( DISTINCT + CASE WHEN NOT 3 IN ( + 16 ) THEN 16 ELSE NULL END ) + CAST( NULL AS SIGNED ) WHEN - 99 * + 63 THEN ( - 28 ) ELSE 86 - 8 END THEN NULL WHEN + COUNT( * ) THEN NULL ELSE - 21 END AS SIGNED ) * - 16
----
-336

skipif mysql # not compatible
query I rowsort label-3675
SELECT ALL CAST ( - CASE 26 WHEN - CAST ( NULL AS INTEGER ) + + + 93 + + 7 + - 31 THEN NULL WHEN - 79 - + - SUM ( DISTINCT - 1 ) + + CASE COUNT ( DISTINCT + CASE WHEN NOT 3 IN ( + 16 ) THEN 16 ELSE NULL END ) + CAST ( NULL AS INTEGER ) WHEN - 99 * + 63 THEN ( - 28 ) ELSE 86 - 8 END THEN NULL WHEN + COUNT ( * ) THEN NULL ELSE - 21 END AS INTEGER ) * - 16
----
-336

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

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

query I rowsort
SELECT DISTINCT - 66 + + 39 - 4 - + 39
----
-70

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3679
SELECT ALL 47 - COUNT( * ) AS col0, 97
----
46
97

skipif mysql # not compatible
query II rowsort label-3679
SELECT ALL 47 - COUNT ( * ) AS col0, 97
----
46
97

query I rowsort
SELECT DISTINCT 6 * + 40
----
240

query I rowsort
SELECT ( - 71 ) * - 84 AS col1
----
5964

onlyif mysql # aggregate syntax: 
query I rowsort label-3682
SELECT ALL - 94 * + - NULLIF ( - SUM( ALL 4 ), + 19 ) AS col0
----
-376

skipif mysql # not compatible
query I rowsort label-3682
SELECT ALL - 94 * + - NULLIF ( - SUM ( ALL 4 ), + 19 ) AS col0
----
-376

onlyif mysql # DIV for integer division: 
query I rowsort label-3683
SELECT 50 DIV + 84
----
0

skipif mysql # not compatible
query I rowsort label-3683
SELECT 50 / + 84
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT - 8 * + + MIN( - - 73 ) * 47 - + + 73 + + - 38 col0
----
-27559

skipif mysql # not compatible
query I rowsort label-3684
SELECT - 8 * + + MIN ( - - 73 ) * 47 - + + 73 + + - 38 col0
----
-27559

onlyif mysql # DIV for integer division: 
query I rowsort label-3685
SELECT 76 DIV + 54
----
1

skipif mysql # not compatible
query I rowsort label-3685
SELECT 76 / + 54
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3686
SELECT ALL 40 / + CASE + + 70 WHEN + NULLIF ( + COUNT( * ), - 45 / 28 ) * + COUNT( * ) THEN + 13 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3686
SELECT ALL 40 / + CASE + + 70 WHEN + NULLIF ( + COUNT ( * ), - 45 / 28 ) * + COUNT ( * ) THEN + 13 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3687
SELECT 59 + - ( - MAX( + CAST( NULL AS SIGNED ) ) ) + + 4 + + - COUNT( DISTINCT - 15 ) * AVG ( + 40 ) + 6 * - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-3687
SELECT 59 + - ( - MAX ( + CAST ( NULL AS INTEGER ) ) ) + + 4 + + - COUNT ( DISTINCT - 15 ) * AVG ( + 40 ) + 6 * - 13
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT + 7 * 98 - + COUNT( * )
----
685

skipif mysql # not compatible
query I rowsort label-3688
SELECT + 7 * 98 - + COUNT ( * )
----
685

onlyif mysql # aggregate syntax: 
query I rowsort label-3689
SELECT - 6 * - + MIN( - + 95 )
----
-570

skipif mysql # not compatible
query I rowsort label-3689
SELECT - 6 * - + MIN ( - + 95 )
----
-570

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3690
SELECT - 11 + - + CAST( + 43 AS SIGNED ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-3690
SELECT - 11 + - + CAST ( + 43 AS INTEGER ) AS col1
----
-54

query I rowsort
SELECT 94 + + 71 AS col0
----
165

query I rowsort
SELECT - 94 + - 51
----
-145

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

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

query I rowsort
SELECT 84 + - - NULLIF ( + + 79, - 4 + + + 23 )
----
163

query I rowsort
SELECT ALL 77 + - 51 * - 9 * 34 * 11
----
171743

query I rowsort
SELECT + 54 * - - 53 + + 87 * + 50 AS col1
----
7212

query I rowsort
SELECT DISTINCT 25 + + + 81 AS col0
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-3698
SELECT ALL - NULLIF ( + + 7, + COUNT( * ) * - 59 )
----
-7

skipif mysql # not compatible
query I rowsort label-3698
SELECT ALL - NULLIF ( + + 7, + COUNT ( * ) * - 59 )
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3699
SELECT + SUM( 19 ) DIV + 61
----
0

skipif mysql # not compatible
query I rowsort label-3699
SELECT + SUM ( 19 ) / + 61
----
0

query I rowsort
SELECT DISTINCT 48 * + 82 * - 63 * - 14
----
3471552

onlyif mysql # aggregate syntax: 
query I rowsort label-3701
SELECT ALL + 75 + CASE + COUNT( * ) WHEN - 59 THEN 59 ELSE NULL END * - - 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3701
SELECT ALL + 75 + CASE + COUNT ( * ) WHEN - 59 THEN 59 ELSE NULL END * - - 31 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( 99, + 96 ) AS col1
----
-99

query I rowsort
SELECT - 36 + + - 57 AS col1
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3704
SELECT - 5 * - + CASE + + 41 WHEN + 97 THEN - 45 ELSE CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3704
SELECT - 5 * - + CASE + + 41 WHEN + 97 THEN - 45 ELSE CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3705
SELECT DISTINCT - COALESCE ( + 82, - 56 * 78 + + 61 ) AS col1, - 62 + + 19 + CAST( NULL AS SIGNED ) + + 37 + + NULLIF ( 76, 47 ) col0
----
-82
NULL

skipif mysql # not compatible
query II rowsort label-3705
SELECT DISTINCT - COALESCE ( + 82, - 56 * 78 + + 61 ) AS col1, - 62 + + 19 + CAST ( NULL AS INTEGER ) + + 37 + + NULLIF ( 76, 47 ) col0
----
-82
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3706
SELECT ALL + + 45 + + 64 AS col2, - MIN( + 70 ) * + + 5 AS col1
----
109
-350

skipif mysql # not compatible
query II rowsort label-3706
SELECT ALL + + 45 + + 64 AS col2, - MIN ( + 70 ) * + + 5 AS col1
----
109
-350

onlyif mysql # aggregate syntax: 
query I rowsort label-3707
SELECT ALL - + CASE + - 40 WHEN - 65 THEN NULL ELSE - 30 END + + COUNT( * ) + + 77
----
108

skipif mysql # not compatible
query I rowsort label-3707
SELECT ALL - + CASE + - 40 WHEN - 65 THEN NULL ELSE - 30 END + + COUNT ( * ) + + 77
----
108

query I rowsort
SELECT - 63 * + - 49 * + 14 + + 80 col0
----
43298

query I rowsort
SELECT + 72 + - + 25 + 72
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-3710
SELECT DISTINCT - - 33 * - MIN( ALL - 61 )
----
2013

skipif mysql # not compatible
query I rowsort label-3710
SELECT DISTINCT - - 33 * - MIN ( ALL - 61 )
----
2013

query I rowsort
SELECT 25 + - + 71 + + + ( ( + ( + 7 ) ) ) AS col2
----
-39

query I rowsort
SELECT 41 + - 27 AS col1
----
14

query I rowsort
SELECT 31 * + 58 * - - 34 col0
----
61132

query II rowsort
SELECT 35 AS col1, 10 * + + 2 AS col1
----
35
20

query II rowsort
SELECT DISTINCT - 98, 75 AS col2
----
-98
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3716
SELECT ALL 34 * CASE + ( 57 ) WHEN 64 + + 17 * - COALESCE ( - 73, + - COUNT( * ) * - + COUNT( - 87 ) - MIN( DISTINCT 74 ), + MIN( 42 ) / 43 ) * + CAST( 20 + + 83 AS SIGNED ) - 32 * 30 THEN NULL WHEN - 8 * 82 THEN + 58 END * + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-3716
SELECT ALL 34 * CASE + ( 57 ) WHEN 64 + + 17 * - COALESCE ( - 73, + - COUNT ( * ) * - + COUNT ( - 87 ) - MIN ( DISTINCT 74 ), + MIN ( 42 ) / 43 ) * + CAST ( 20 + + 83 AS INTEGER ) - 32 * 30 THEN NULL WHEN - 8 * 82 THEN + 58 END * + 75
----
NULL

query I rowsort
SELECT 75 + - ( - + 94 ) * 61
----
5809

query I rowsort
SELECT 63 * - ( + 2 )
----
-126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3719
SELECT - COALESCE ( + 30, + + 94 + 14 ) * - + 72 + 60 + + 65 * CASE + 39 WHEN - 35 + 41 * 60 THEN NULL WHEN 66 * + 30 THEN NULL WHEN - CAST( CAST( 34 AS SIGNED ) AS SIGNED ) THEN 56 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3719
SELECT - COALESCE ( + 30, + + 94 + 14 ) * - + 72 + 60 + + 65 * CASE + 39 WHEN - 35 + 41 * 60 THEN NULL WHEN 66 * + 30 THEN NULL WHEN - CAST ( CAST ( 34 AS INTEGER ) AS INTEGER ) THEN 56 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL + 62 + 72
----
134

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT + NULLIF ( - - 36, + SUM( ALL 24 ) ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-3722
SELECT + NULLIF ( - - 36, + SUM ( ALL 24 ) ) AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT ALL + COUNT( * ) + - 80 + - + 25 * 33 AS col2
----
-904

skipif mysql # not compatible
query I rowsort label-3723
SELECT ALL + COUNT ( * ) + - 80 + - + 25 * 33 AS col2
----
-904

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3724
SELECT + CAST( NULL AS SIGNED ) * 94 + + 92 + CASE WHEN ( NULL ) BETWEEN ( - 23 ) AND - ( 55 ) THEN 0 * 94 END - - 38 * + MAX( - 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3724
SELECT + CAST ( NULL AS INTEGER ) * 94 + + 92 + CASE WHEN ( NULL ) BETWEEN ( - 23 ) AND - ( 55 ) THEN 0 * 94 END - - 38 * + MAX ( - 32 )
----
NULL

query I rowsort
SELECT ALL - 1 + - 51 col1
----
-52

query I rowsort
SELECT ALL 97 + 49 AS col0
----
146

query I rowsort
SELECT ALL 11 + - 57
----
-46

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

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

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

skipif mysql # not compatible
query I rowsort label-3729
SELECT - 47 * - 40 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT - CASE + COUNT( * ) WHEN + 52 THEN 58 WHEN - - 30 * - 69 THEN - 80 WHEN - COUNT( * ) THEN NULL ELSE NULL END * + MAX( DISTINCT + 3 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3730
SELECT - CASE + COUNT ( * ) WHEN + 52 THEN 58 WHEN - - 30 * - 69 THEN - 80 WHEN - COUNT ( * ) THEN NULL ELSE NULL END * + MAX ( DISTINCT + 3 )
----
NULL

query I rowsort
SELECT + 3 + + 80 AS col0
----
83

query I rowsort
SELECT DISTINCT - 44 + + + 91
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3733
SELECT DISTINCT MAX( ALL - + 49 ) * + 30
----
-1470

skipif mysql # not compatible
query I rowsort label-3733
SELECT DISTINCT MAX ( ALL - + 49 ) * + 30
----
-1470

query II rowsort
SELECT + - 5 - + - 12 + - + 81, + 21 + + 4 AS col2
----
-74
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3735
SELECT NULLIF ( + - 73, COUNT( DISTINCT + 27 ) ) col2
----
-73

skipif mysql # not compatible
query I rowsort label-3735
SELECT NULLIF ( + - 73, COUNT ( DISTINCT + 27 ) ) col2
----
-73

query I rowsort
SELECT ALL 39 - - + 39 AS col2
----
78

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT + 36 * COUNT( * ) * - - MIN( + 41 )
----
1476

skipif mysql # not compatible
query I rowsort label-3738
SELECT + 36 * COUNT ( * ) * - - MIN ( + 41 )
----
1476

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT ALL 42 * - COUNT( * ) col0
----
-42

skipif mysql # not compatible
query I rowsort label-3739
SELECT ALL 42 * - COUNT ( * ) col0
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-3740
SELECT - NULLIF ( - 62, - 57 + + COUNT( * ) ), - 54 AS col0
----
62
-54

skipif mysql # not compatible
query II rowsort label-3740
SELECT - NULLIF ( - 62, - 57 + + COUNT ( * ) ), - 54 AS col0
----
62
-54

query II rowsort
SELECT ALL 90 AS col2, 47 AS col0
----
90
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT + 0 * + COUNT( * ) col1
----
0

skipif mysql # not compatible
query I rowsort label-3742
SELECT + 0 * + COUNT ( * ) col1
----
0

query I rowsort
SELECT - 6 * + 71 AS col2
----
-426

onlyif mysql # DIV for integer division: 
query I rowsort label-3744
SELECT ALL COALESCE ( - 84, + 75 ) DIV + 39 + + 51
----
49

skipif mysql # not compatible
query I rowsort label-3744
SELECT ALL COALESCE ( - 84, + 75 ) / + 39 + + 51
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-3745
SELECT DISTINCT - 49 DIV 41
----
-1

skipif mysql # not compatible
query I rowsort label-3745
SELECT DISTINCT - 49 / 41
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT + NULLIF ( + 91, - COUNT( * ) + + 23 * - 25 )
----
91

skipif mysql # not compatible
query I rowsort label-3746
SELECT + NULLIF ( + 91, - COUNT ( * ) + + 23 * - 25 )
----
91

onlyif mysql # DIV for integer division: 
query II rowsort label-3747
SELECT + 1 AS col0, 22 DIV + 41
----
1
0

skipif mysql # not compatible
query II rowsort label-3747
SELECT + 1 AS col0, 22 / + 41
----
1
0

query I rowsort
SELECT ALL + 31 * + 88 AS col1
----
2728

query I rowsort
SELECT + 70 * - - 19 AS col1
----
1330

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT DISTINCT + 13 * + SUM( - 42 ) AS col0
----
-546

skipif mysql # not compatible
query I rowsort label-3750
SELECT DISTINCT + 13 * + SUM ( - 42 ) AS col0
----
-546

query I rowsort
SELECT NULLIF ( - 84, - 65 + - + 5 + + - 83 )
----
-84

query II rowsort
SELECT DISTINCT + 1 col2, 59 + + - 68 AS col2
----
1
-9

query II rowsort
SELECT + 67 AS col1, + 78
----
67
78

query I rowsort
SELECT NULLIF ( - 50, + + 68 ) col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3755
SELECT NULLIF ( - 33, + - 10 * - 67 * 89 * - - 48 * + COUNT( * ) + + 55 - - - 4 ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-3755
SELECT NULLIF ( - 33, + - 10 * - 67 * 89 * - - 48 * + COUNT ( * ) + + 55 - - - 4 ) AS col2
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3756
SELECT + ( + 54 ) * CASE + + CAST( 90 AS SIGNED ) WHEN - CASE + NULLIF ( + 2, + + 75 ) WHEN 21 THEN + 6 END THEN + 83 * + 11 + + 30 END + + ( MIN( + 66 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3756
SELECT + ( + 54 ) * CASE + + CAST ( 90 AS INTEGER ) WHEN - CASE + NULLIF ( + 2, + + 75 ) WHEN 21 THEN + 6 END THEN + 83 * + 11 + + 30 END + + ( MIN ( + 66 ) )
----
NULL

query I rowsort
SELECT + 99 * + 12 * - 65 + 85 AS col0
----
-77135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3758
SELECT COALESCE ( - MAX( DISTINCT + + 93 ), + - COUNT( * ) * + + 71 * - MAX( - 55 ) * COUNT( * ) + 0 - - 78 DIV - 89 + COUNT( * ) * - CASE WHEN NOT ( + 58 ) IS NULL THEN 66 END + - ( - 57 ) ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-3758
SELECT COALESCE ( - MAX ( DISTINCT + + 93 ), + - COUNT ( * ) * + + 71 * - MAX ( - 55 ) * COUNT ( * ) + 0 - - 78 / - 89 + COUNT ( * ) * - CASE WHEN NOT ( + 58 ) IS NULL THEN 66 END + - ( - 57 ) ) AS col0
----
-93

query I rowsort
SELECT 10 * + - 12 + - 7 * + 28 + + 3 + + - ( + ( 14 ) )
----
-327

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3760
SELECT ALL 96 * CASE + COUNT( DISTINCT - - 60 ) WHEN + ( - + 51 ) THEN + 52 - + + COUNT( * ) ELSE NULL END * + 90 + - - CAST( NULL AS SIGNED ) * - ( - 75 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3760
SELECT ALL 96 * CASE + COUNT ( DISTINCT - - 60 ) WHEN + ( - + 51 ) THEN + 52 - + + COUNT ( * ) ELSE NULL END * + 90 + - - CAST ( NULL AS INTEGER ) * - ( - 75 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3761
SELECT ALL + 17 * - - COUNT( * ) + 8 * + ( CASE - + 93 WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN + 2 THEN NULL ELSE + + ( + ( + COALESCE ( + ( 32 ), + 84 * - 51 ) ) ) END ) + - 92 AS col2
----
181

skipif mysql # not compatible
query I rowsort label-3761
SELECT ALL + 17 * - - COUNT ( * ) + 8 * + ( CASE - + 93 WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN + 2 THEN NULL ELSE + + ( + ( + COALESCE ( + ( 32 ), + 84 * - 51 ) ) ) END ) + - 92 AS col2
----
181

query I rowsort
SELECT ALL - + NULLIF ( COALESCE ( 8, NULLIF ( + 47, + 15 ) ), 8 ) * + 46 + - - 59 AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3764
SELECT ALL - 2 * - CAST( NULL AS DECIMAL ) - 37 + - COUNT( * ) * - 94 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3764
SELECT ALL - 2 * - CAST ( NULL AS REAL ) - 37 + - COUNT ( * ) * - 94 AS col2
----
NULL

query I rowsort
SELECT - - 0 + - 61 AS col1
----
-61

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

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

query I rowsort
SELECT - + 84 * + + 1 * + 24 AS col0
----
-2016

query I rowsort
SELECT + + ( 71 ) + + 62 AS col1
----
133

query I rowsort
SELECT ALL + - 24 * - + 85 * + - 75 * 75 - - + 15 AS col2
----
-11474985

query I rowsort
SELECT DISTINCT + 56 * + 17 + 99
----
1051

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

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

query I rowsort
SELECT - 58 + 30 AS col1
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3773
SELECT - 24 + + 56 * - + COUNT( * ) + + + 0 DIV + + COUNT( - + 7 ) * + - 7 + - COUNT( * ) + + NULLIF ( - 14, - 18 ) + - + ( 82 ) AS col1
----
-177

skipif mysql # not compatible
query I rowsort label-3773
SELECT - 24 + + 56 * - + COUNT ( * ) + + + 0 / + + COUNT ( - + 7 ) * + - 7 + - COUNT ( * ) + + NULLIF ( - 14, - 18 ) + - + ( 82 ) AS col1
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT - ( + MAX( + 19 ) ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-3774
SELECT - ( + MAX ( + 19 ) ) AS col2
----
-19

query II rowsort
SELECT + 77 * 66 AS col1, 16 AS col0
----
5082
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT + COUNT( + 19 ) * 98
----
98

skipif mysql # not compatible
query I rowsort label-3776
SELECT + COUNT ( + 19 ) * 98
----
98

query II rowsort
SELECT ALL 88 * - 20 AS col0, - 54
----
-1760
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-3778
SELECT + 94 + - 49 + - + 73 AS col0, - COUNT( * ) AS col1
----
-28
-1

skipif mysql # not compatible
query II rowsort label-3778
SELECT + 94 + - 49 + - + 73 AS col0, - COUNT ( * ) AS col1
----
-28
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3779
SELECT + CASE - ( - 4 ) WHEN 17 THEN - MIN( - + 77 ) * + + 67 WHEN - 53 THEN + 28 ELSE NULL END + + 8 - + 77 / 41 / 1 - - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-3779
SELECT + CASE - ( - 4 ) WHEN 17 THEN - MIN ( - + 77 ) * + + 67 WHEN - 53 THEN + 28 ELSE NULL END + + 8 - + 77 / 41 / 1 - - 6
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3780
SELECT ALL MAX ( ALL 8 )
----
8

query I rowsort
SELECT DISTINCT CASE 91 WHEN + + ( + - 43 ) THEN NULL WHEN ( - 52 ) THEN + 44 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 87 + + + 92
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-3783
SELECT + COUNT( * ) * 25 * 62 * + - 17 AS col0
----
-26350

skipif mysql # not compatible
query I rowsort label-3783
SELECT + COUNT ( * ) * 25 * 62 * + - 17 AS col0
----
-26350

query I rowsort
SELECT + 95 * - 36 + - + ( - 70 ) + + 35 * - 84 + + 21 AS col0
----
-6269

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT ALL 7 / + ( + ( CASE - 62 WHEN + - 57 * - - 95 THEN + COUNT( * ) - - 77 * - + 67 * + SUM( 77 ) END ) ) + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-3785
SELECT ALL 7 / + ( + ( CASE - 62 WHEN + - 57 * - - 95 THEN + COUNT ( * ) - - 77 * - + 67 * + SUM ( 77 ) END ) ) + 7
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3786
SELECT + ( - COALESCE ( + 2, 60 DIV 87 ) ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-3786
SELECT + ( - COALESCE ( + 2, 60 / 87 ) ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3787
SELECT - 69 + 46 + 5 * + COUNT( * ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-3787
SELECT - 69 + 46 + 5 * + COUNT ( * ) AS col0
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3788
SELECT ALL 20 DIV + NULLIF ( - 54, - COUNT( * ) ) + 93 AS col2
----
93

skipif mysql # not compatible
query I rowsort label-3788
SELECT ALL 20 / + NULLIF ( - 54, - COUNT ( * ) ) + 93 AS col2
----
93

query I rowsort
SELECT + ( - - 93 ) * + 39
----
3627

onlyif mysql # DIV for integer division: 
query I rowsort label-3790
SELECT ALL 45 DIV - - 29 + - 34
----
-33

skipif mysql # not compatible
query I rowsort label-3790
SELECT ALL 45 / - - 29 + - 34
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT DISTINCT + + CASE + - ( - - 65 ) WHEN + COUNT( * ) THEN + 57 * + 91 * ( - + 22 ) + - 76 + + - 80 + + 23 * + COUNT( * ) - - 75 ELSE + ( - 19 ) END
----
-19

skipif mysql # not compatible
query I rowsort label-3791
SELECT DISTINCT + + CASE + - ( - - 65 ) WHEN + COUNT ( * ) THEN + 57 * + 91 * ( - + 22 ) + - 76 + + - 80 + + 23 * + COUNT ( * ) - - 75 ELSE + ( - 19 ) END
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT ALL - + CASE - 48 WHEN + + ( 3 ) + + 31 / - 85 * MIN( DISTINCT - 54 ) * - 69 + - COUNT( DISTINCT + 45 ) THEN NULL WHEN + 31 * 44 THEN - 57 * 54 ELSE NULL END / + 53 + - 8 * 25
----
NULL

skipif mysql # not compatible
query I rowsort label-3792
SELECT ALL - + CASE - 48 WHEN + + ( 3 ) + + 31 / - 85 * MIN ( DISTINCT - 54 ) * - 69 + - COUNT ( DISTINCT + 45 ) THEN NULL WHEN + 31 * 44 THEN - 57 * 54 ELSE NULL END / + 53 + - 8 * 25
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3793
SELECT - + 73 * 13 AS col1, - MAX( DISTINCT + 16 ) + ( - 51 ) - SUM( + 66 )
----
-949
-133

skipif mysql # not compatible
query II rowsort label-3793
SELECT - + 73 * 13 AS col1, - MAX ( DISTINCT + 16 ) + ( - 51 ) - SUM ( + 66 )
----
-949
-133

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3794
SELECT DISTINCT - 12 DIV ( - CAST( - 73 AS SIGNED ) ) + + + 70 + - + 99 + + 64
----
35

skipif mysql # not compatible
query I rowsort label-3794
SELECT DISTINCT - 12 / ( - CAST ( - 73 AS INTEGER ) ) + + + 70 + - + 99 + + 64
----
35

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3796
SELECT ALL - 69 * + COUNT( * ) - - - 90 AS col0
----
-159

skipif mysql # not compatible
query I rowsort label-3796
SELECT ALL - 69 * + COUNT ( * ) - - - 90 AS col0
----
-159

query II rowsort
SELECT DISTINCT - 60 * - 44, 51 AS col2
----
2640
51

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

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

query I rowsort
SELECT - 16 * - 97 AS col0
----
1552

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT + 38 + COUNT( * ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-3800
SELECT + 38 + COUNT ( * ) AS col2
----
39

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

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

query I rowsort
SELECT 48 * + 45
----
2160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3803
SELECT ALL - COALESCE ( + - 95, CASE - CAST( 0 AS SIGNED ) WHEN 12 * - 39 + - 46 + + 89 + - COUNT( + - 59 ) / - COUNT( * ) + 20 THEN + 56 ELSE NULL END * 77 - + 62 ) - COUNT( * ) * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3803
SELECT ALL - COALESCE ( + - 95, CASE - CAST ( 0 AS INTEGER ) WHEN 12 * - 39 + - 46 + + 89 + - COUNT ( + - 59 ) / - COUNT ( * ) + 20 THEN + 56 ELSE NULL END * 77 - + 62 ) - COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3804
SELECT ALL CASE AVG ( ALL + 88 ) WHEN - 77 THEN NULL ELSE MIN( - 23 ) END
----
-23

skipif mysql # not compatible
query I rowsort label-3804
SELECT ALL CASE AVG ( ALL + 88 ) WHEN - 77 THEN NULL ELSE MIN ( - 23 ) END
----
-23

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3806
SELECT 28 * 18 DIV 1 AS col2
----
504

skipif mysql # not compatible
query I rowsort label-3806
SELECT 28 * 18 / 1 AS col2
----
504

query I rowsort
SELECT - 88 + 57 AS col1
----
-31

query II rowsort
SELECT - 28 AS col2, + 74 * - + 89 - + 19
----
-28
-6605

query I rowsort
SELECT 40 * + 56 AS col2
----
2240

query I rowsort
SELECT DISTINCT + 58 * + 44
----
2552

onlyif mysql # aggregate syntax: 
query I rowsort label-3811
SELECT MAX( ALL + - 9 ) + + 83
----
74

skipif mysql # not compatible
query I rowsort label-3811
SELECT MAX ( ALL + - 9 ) + + 83
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3812
SELECT ALL + COALESCE ( + 74, - - CAST( NULL AS SIGNED ), 86 ) + - 65 + - 69
----
-60

skipif mysql # not compatible
query I rowsort label-3812
SELECT ALL + COALESCE ( + 74, - - CAST ( NULL AS INTEGER ), 86 ) + - 65 + - 69
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-3813
SELECT DISTINCT 76 DIV - 11
----
-6

skipif mysql # not compatible
query I rowsort label-3813
SELECT DISTINCT 76 / - 11
----
-6

query I rowsort
SELECT ALL 35 + - 86
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3815
SELECT 43 + - 17 DIV - 36 + + - COALESCE ( 70, ( - COUNT( * ) ), + 65, + 25 )
----
-27

skipif mysql # not compatible
query I rowsort label-3815
SELECT 43 + - 17 / - 36 + + - COALESCE ( 70, ( - COUNT ( * ) ), + 65, + 25 )
----
-27

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

query I rowsort
SELECT ALL - ( 97 ) col0
----
-97

query I rowsort
SELECT ALL - ( + + 93 ) + - + 4
----
-97

query II rowsort
SELECT DISTINCT - 55 col2, ( - 55 ) AS col0
----
-55
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-3820
SELECT - ( + 42 ) + + - 29 + 82 DIV + 87 * - 1 * - - 69 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-3820
SELECT - ( + 42 ) + + - 29 + 82 / + 87 * - 1 * - - 69 AS col0
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-3821
SELECT - 8 DIV + 48 - NULLIF ( - 11, + + AVG ( + 54 ) DIV - 90 ) + 51 * + 58 * 97
----
286937

skipif mysql # not compatible
query I rowsort label-3821
SELECT - 8 / + 48 - NULLIF ( - 11, + + AVG ( + 54 ) / - 90 ) + 51 * + 58 * 97
----
286937

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3822
SELECT 58 * + COUNT( * ) * 45 + COUNT( * ) AS col2, + 99 DIV - 79
----
2611
-1

skipif mysql # not compatible
query II rowsort label-3822
SELECT 58 * + COUNT ( * ) * 45 + COUNT ( * ) AS col2, + 99 / - 79
----
2611
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT + + COUNT( * ) * + + 16 + 76
----
92

skipif mysql # not compatible
query I rowsort label-3823
SELECT + + COUNT ( * ) * + + 16 + 76
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT - - 51 * + NULLIF ( + 15, + ( + + SUM( - 51 ) ) ) + 13 + - 90
----
688

skipif mysql # not compatible
query I rowsort label-3824
SELECT - - 51 * + NULLIF ( + 15, + ( + + SUM ( - 51 ) ) ) + 13 + - 90
----
688

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT + 69 * - SUM( + 53 ) + 65 * + + NULLIF ( + + 48, 35 * ( - ( - 9 ) ) )
----
-537

skipif mysql # not compatible
query I rowsort label-3825
SELECT + 69 * - SUM ( + 53 ) + 65 * + + NULLIF ( + + 48, 35 * ( - ( - 9 ) ) )
----
-537

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3826
SELECT + - 53 AS col1, SUM( ALL + CAST( NULL AS SIGNED ) ) * + 29
----
-53
NULL

skipif mysql # not compatible
query II rowsort label-3826
SELECT + - 53 AS col1, SUM ( ALL + CAST ( NULL AS INTEGER ) ) * + 29
----
-53
NULL

query II rowsort
SELECT ALL - 96, 81 AS col1
----
-96
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3828
SELECT - 28 DIV - 70 * - 94 DIV 70 + + - COUNT( * ) + - + NULLIF ( - 13, 49 * + 4 - + - 57 ) + - 54 AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-3828
SELECT - 28 / - 70 * - 94 / 70 + + - COUNT ( * ) + - + NULLIF ( - 13, 49 * + 4 - + - 57 ) + - 54 AS col2
----
-42

query I rowsort
SELECT 86 + 92
----
178

query I rowsort
SELECT - 36 * 2
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3831
SELECT DISTINCT COUNT( * ) DIV - 66
----
0

skipif mysql # not compatible
query I rowsort label-3831
SELECT DISTINCT COUNT ( * ) / - 66
----
0

query I rowsort
SELECT ALL - ( + - 10 ) col0
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-3833
SELECT 1, MAX( ALL - 50 ) AS col2
----
1
-50

skipif mysql # not compatible
query II rowsort label-3833
SELECT 1, MAX ( ALL - 50 ) AS col2
----
1
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3834
SELECT - COUNT( * ) * - 69 + CAST( + 54 AS SIGNED ) AS col2, 56
----
123
56

skipif mysql # not compatible
query II rowsort label-3834
SELECT - COUNT ( * ) * - 69 + CAST ( + 54 AS INTEGER ) AS col2, 56
----
123
56

query I rowsort
SELECT 42 * 86
----
3612

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

skipif mysql # not compatible
query I rowsort label-3836
SELECT DISTINCT + - COUNT ( * ) + + + 55 AS col2
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3837
SELECT ALL + 44 + + + ( - CASE + 38 WHEN + 37 - - - CASE - 71 WHEN - + 9 * 79 * + 88 * + 25 THEN + 77 - 93 * + + 46 / - MIN( 29 ) END + - CAST( 68 + + 30 AS SIGNED ) THEN - 45 WHEN + 28 + - 92 THEN NULL WHEN - 11 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3837
SELECT ALL + 44 + + + ( - CASE + 38 WHEN + 37 - - - CASE - 71 WHEN - + 9 * 79 * + 88 * + 25 THEN + 77 - 93 * + + 46 / - MIN ( 29 ) END + - CAST ( 68 + + 30 AS INTEGER ) THEN - 45 WHEN + 28 + - 92 THEN NULL WHEN - 11 THEN NULL END )
----
NULL

query I rowsort
SELECT - 57 * 0 + + - 92 + 81 * - 58
----
-4790

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT DISTINCT COUNT( * ) + + 33 AS col2
----
34

skipif mysql # not compatible
query I rowsort label-3839
SELECT DISTINCT COUNT ( * ) + + 33 AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3840
SELECT 53 + + + 11 + - COUNT( * ) + + 24
----
87

skipif mysql # not compatible
query I rowsort label-3840
SELECT 53 + + + 11 + - COUNT ( * ) + + 24
----
87

query I rowsort
SELECT DISTINCT + 17 + - - 93 - + + 42 + + 99 * - - 73 AS col0
----
7295

query I rowsort
SELECT ALL + 99 + + 89 AS col2
----
188

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3843
SELECT 75 - MIN( + 3 ) - 26 + - 25 DIV 5 col2
----
41

skipif mysql # not compatible
query I rowsort label-3843
SELECT 75 - MIN ( + 3 ) - 26 + - 25 / 5 col2
----
41

query II rowsort
SELECT DISTINCT + 27 + 90, 80 * - 57 * 97 AS col1
----
117
-442320

query I rowsort
SELECT 88 + - - 64 * + 9
----
664

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT DISTINCT MAX( - COALESCE ( + + 3, - 93 ) ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-3846
SELECT DISTINCT MAX ( - COALESCE ( + + 3, - 93 ) ) AS col1
----
-3

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

skipif mysql # not compatible
query I rowsort label-3847
SELECT ALL - COUNT ( * ) + + COUNT ( + 89 ) - + CAST ( NULL AS INTEGER ) / - + 95 AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3848
SELECT 65 + - CAST( NULL AS DECIMAL ) + + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-3848
SELECT 65 + - CAST ( NULL AS REAL ) + + 69
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3849
SELECT 78 * - CAST( + + 75 AS SIGNED )
----
-5850

skipif mysql # not compatible
query I rowsort label-3849
SELECT 78 * - CAST ( + + 75 AS INTEGER )
----
-5850

query I rowsort
SELECT 84 + - 70 + + 59
----
73

query I rowsort
SELECT 94 + + 37 AS col0
----
131

onlyif mysql # aggregate syntax: 
query II rowsort label-3852
SELECT ALL MAX( + 38 ) AS col2, COUNT( * ) * COALESCE ( + ( + - ( + MAX( + 14 ) ) ), - - 89 ) AS col1
----
38
-14

skipif mysql # not compatible
query II rowsort label-3852
SELECT ALL MAX ( + 38 ) AS col2, COUNT ( * ) * COALESCE ( + ( + - ( + MAX ( + 14 ) ) ), - - 89 ) AS col1
----
38
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT DISTINCT - COUNT( DISTINCT + + 59 ) - + CASE + 81 WHEN COUNT( * ) + + 74 + 27 + - COUNT( * ) * + 12 * + - 65 * - 8 / - - 19 THEN - 57 ELSE - 24 - 39 END
----
62

skipif mysql # not compatible
query I rowsort label-3853
SELECT DISTINCT - COUNT ( DISTINCT + + 59 ) - + CASE + 81 WHEN COUNT ( * ) + + 74 + 27 + - COUNT ( * ) * + 12 * + - 65 * - 8 / - - 19 THEN - 57 ELSE - 24 - 39 END
----
62

query I rowsort
SELECT 3 * ( 23 ) AS col0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3855
SELECT 83 + - COALESCE ( ( 15 ), + 32, - - 47 * + - CAST( NULL AS SIGNED ) ) AS col0, 37
----
68
37

skipif mysql # not compatible
query II rowsort label-3855
SELECT 83 + - COALESCE ( ( 15 ), + 32, - - 47 * + - CAST ( NULL AS INTEGER ) ) AS col0, 37
----
68
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT - 80 * 21 * + + 51 * 78 * - 59 + + COUNT( * ) AS col2
----
394299361

skipif mysql # not compatible
query I rowsort label-3856
SELECT - 80 * 21 * + + 51 * 78 * - 59 + + COUNT ( * ) AS col2
----
394299361

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3857
SELECT + 71 * + NULLIF ( COUNT( * ), + + CAST( + 13 AS SIGNED ) ) * 76 AS col2
----
5396

skipif mysql # not compatible
query I rowsort label-3857
SELECT + 71 * + NULLIF ( COUNT ( * ), + + CAST ( + 13 AS INTEGER ) ) * 76 AS col2
----
5396

onlyif mysql # DIV for integer division: 
query I rowsort label-3858
SELECT + 93 DIV - 48 + 96 + + - 51
----
44

skipif mysql # not compatible
query I rowsort label-3858
SELECT + 93 / - 48 + 96 + + - 51
----
44

query I rowsort
SELECT + - 32 + - 34
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3860
SELECT ALL NULLIF ( + + ( + - 46 ), - 89 + + 87 + - 32 * - - 41 ) * - - MAX( DISTINCT - - 20 )
----
-920

skipif mysql # not compatible
query I rowsort label-3860
SELECT ALL NULLIF ( + + ( + - 46 ), - 89 + + 87 + - 32 * - - 41 ) * - - MAX ( DISTINCT - - 20 )
----
-920

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3862
SELECT + + COUNT( - 41 ) DIV 5
----
0

skipif mysql # not compatible
query I rowsort label-3862
SELECT + + COUNT ( - 41 ) / 5
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3863
SELECT DISTINCT - ( - + 69 ) * + ( + COUNT( * ) ) + - MIN( DISTINCT + + 47 )
----
22

skipif mysql # not compatible
query I rowsort label-3863
SELECT DISTINCT - ( - + 69 ) * + ( + COUNT ( * ) ) + - MIN ( DISTINCT + + 47 )
----
22

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

skipif mysql # not compatible
query I rowsort label-3864
SELECT MAX ( ALL - 71 )
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3865
SELECT + - COALESCE ( 38, + CASE - 33 WHEN + 32 THEN - 34 + - CASE - 20 WHEN - - 14 + + COUNT( * ) THEN + + COUNT( * ) * + CAST( NULL AS SIGNED ) + COALESCE ( - 97, - 40 ) * - ( + 98 * 44 ) END ELSE NULL END DIV + COUNT( * ) + + 53 ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-3865
SELECT + - COALESCE ( 38, + CASE - 33 WHEN + 32 THEN - 34 + - CASE - 20 WHEN - - 14 + + COUNT ( * ) THEN + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) + COALESCE ( - 97, - 40 ) * - ( + 98 * 44 ) END ELSE NULL END / + COUNT ( * ) + + 53 ) AS col2
----
-38

query I rowsort
SELECT + + 45 * + 52
----
2340

query II rowsort
SELECT ALL 66 * 50 * - - 57, 27 * - 48 col1
----
188100
-1296

onlyif mysql # DIV for integer division: 
query I rowsort label-3868
SELECT + 71 DIV - + 80 col2
----
0

skipif mysql # not compatible
query I rowsort label-3868
SELECT + 71 / - + 80 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3869
SELECT DISTINCT + 31 + + 30 + + COUNT( * ) * - 58 * + COUNT( * ) * - + 72
----
4237

skipif mysql # not compatible
query I rowsort label-3869
SELECT DISTINCT + 31 + + 30 + + COUNT ( * ) * - 58 * + COUNT ( * ) * - + 72
----
4237

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3870
SELECT + 35 / + CASE - 30 WHEN - ( - 67 ) + 74 - 2 * + 20 * + 31 * - 3 THEN NULL WHEN + + SUM( - 84 ) THEN - 87 * CASE - CAST( - 81 AS DECIMAL ) WHEN 29 THEN NULL WHEN ( ( - 74 ) ) THEN + COUNT( * ) * - 65 END END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3870
SELECT + 35 / + CASE - 30 WHEN - ( - 67 ) + 74 - 2 * + 20 * + 31 * - 3 THEN NULL WHEN + + SUM ( - 84 ) THEN - 87 * CASE - CAST ( - 81 AS REAL ) WHEN 29 THEN NULL WHEN ( ( - 74 ) ) THEN + COUNT ( * ) * - 65 END END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3871
SELECT + CAST( NULL AS SIGNED ) - 29 * - - CASE 9 WHEN - 77 THEN 82 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3871
SELECT + CAST ( NULL AS INTEGER ) - 29 * - - CASE 9 WHEN - 77 THEN 82 END
----
NULL

query I rowsort
SELECT ALL 6 * - 6 AS col2
----
-36

query I rowsort
SELECT - CASE - 66 WHEN + + 91 THEN NULL ELSE - - CASE 12 WHEN 4 - + + 43 THEN NULL WHEN 44 THEN - 92 END END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3874
SELECT - CAST( NULL AS DECIMAL ) + + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3874
SELECT - CAST ( NULL AS REAL ) + + COUNT ( * ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3875
SELECT ALL 99 + - 19 * + 50 * 89 + - CASE + 18 WHEN - 24 THEN 9 ELSE - 11 - + CAST( - 31 AS SIGNED ) END AS col1
----
-84471

skipif mysql # not compatible
query I rowsort label-3875
SELECT ALL 99 + - 19 * + 50 * 89 + - CASE + 18 WHEN - 24 THEN 9 ELSE - 11 - + CAST ( - 31 AS INTEGER ) END AS col1
----
-84471

onlyif mysql # aggregate syntax: 
query II rowsort label-3876
SELECT ALL 58 + - 6 + - 98 col2, + COALESCE ( ( + + COUNT( * ) ), - COUNT( * ) + 57 + + + 83 + 82 + COUNT( * ) - + ( - MAX( ALL + 45 ) ) )
----
-46
1

skipif mysql # not compatible
query II rowsort label-3876
SELECT ALL 58 + - 6 + - 98 col2, + COALESCE ( ( + + COUNT ( * ) ), - COUNT ( * ) + 57 + + + 83 + 82 + COUNT ( * ) - + ( - MAX ( ALL + 45 ) ) )
----
-46
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3877
SELECT 89, MIN( DISTINCT 42 ) col1
----
89
42

skipif mysql # not compatible
query II rowsort label-3877
SELECT 89, MIN ( DISTINCT 42 ) col1
----
89
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT ALL COALESCE ( COALESCE ( - ( + - NULLIF ( - 79, - 57 ) ), NULLIF ( 81, + 9 ) + - 48 + ( - + 35 ) ), COUNT( * ) ) col2
----
-79

skipif mysql # not compatible
query I rowsort label-3878
SELECT ALL COALESCE ( COALESCE ( - ( + - NULLIF ( - 79, - 57 ) ), NULLIF ( 81, + 9 ) + - 48 + ( - + 35 ) ), COUNT ( * ) ) col2
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3879
SELECT DISTINCT CASE WHEN NULL NOT BETWEEN + 48 AND + 28 + + SUM( ALL + 4 ) / - - CASE - ( 52 ) WHEN CASE WHEN NOT 44 >= - SUM( ALL - + 37 ) THEN + ( - ( 79 ) ) - - 80 ELSE NULL END + - 39 THEN + 19 + - CAST( - AVG ( ALL 90 ) AS SIGNED ) WHEN - 56 THEN NULL ELSE 71 END * 96 - MIN( ALL 99 ) THEN COUNT( * ) * - 97 + 90 * + 22 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3879
SELECT DISTINCT CASE WHEN NULL NOT BETWEEN + 48 AND + 28 + + SUM ( ALL + 4 ) / - - CASE - ( 52 ) WHEN CASE WHEN NOT 44 >= - SUM ( ALL - + 37 ) THEN + ( - ( 79 ) ) - - 80 ELSE NULL END + - 39 THEN + 19 + - CAST ( - AVG ( ALL 90 ) AS INTEGER ) WHEN - 56 THEN NULL ELSE 71 END * 96 - MIN ( ALL 99 ) THEN COUNT ( * ) * - 97 + 90 * + 22 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3880
SELECT DISTINCT COUNT( * ), 47 AS col0
----
1
47

skipif mysql # not compatible
query II rowsort label-3880
SELECT DISTINCT COUNT ( * ), 47 AS col0
----
1
47

query I rowsort
SELECT - 86 * 58 col1
----
-4988

query II rowsort
SELECT DISTINCT - 26 col1, + 97
----
-26
97

query I rowsort
SELECT - 68 - 34 col1
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT - + SUM( + 27 ) * + MIN( DISTINCT - 5 ) * CASE - 66 WHEN + 21 THEN + - ( ( + 25 ) ) ELSE NULL END * - + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-3884
SELECT - + SUM ( + 27 ) * + MIN ( DISTINCT - 5 ) * CASE - 66 WHEN + 21 THEN + - ( ( + 25 ) ) ELSE NULL END * - + 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT - + SUM( - 55 ) * + - 95 AS col0
----
-5225

skipif mysql # not compatible
query I rowsort label-3885
SELECT - + SUM ( - 55 ) * + - 95 AS col0
----
-5225

query II rowsort
SELECT ALL + - 26 col0, 85
----
-26
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3887
SELECT + NULLIF ( + + COALESCE ( - - 47, + + 14, - - NULLIF ( + CASE + CASE + - 80 WHEN + 56 * + 33 + 69 DIV - + 52 * + - 54 THEN NULL ELSE - + 16 END WHEN - 37 THEN - 85 ELSE COALESCE ( 19, - 11 DIV - CASE + 58 WHEN + 64 * + 11 THEN 87 WHEN ( 8 ) + 83 DIV - 22 THEN NULL ELSE NULL END, - COUNT( 17 ) ) END, ( - 45 ) + + 16 * - 49 ), + 78 * 31 ), + 57 )
----
47

skipif mysql # not compatible
query I rowsort label-3887
SELECT + NULLIF ( + + COALESCE ( - - 47, + + 14, - - NULLIF ( + CASE + CASE + - 80 WHEN + 56 * + 33 + 69 / - + 52 * + - 54 THEN NULL ELSE - + 16 END WHEN - 37 THEN - 85 ELSE COALESCE ( 19, - 11 / - CASE + 58 WHEN + 64 * + 11 THEN 87 WHEN ( 8 ) + 83 / - 22 THEN NULL ELSE NULL END, - COUNT ( 17 ) ) END, ( - 45 ) + + 16 * - 49 ), + 78 * 31 ), + 57 )
----
47

query I rowsort
SELECT - 22 * - 19 AS col1
----
418

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3889
SELECT - + 15 + 58 DIV - COUNT( * ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-3889
SELECT - + 15 + 58 / - COUNT ( * ) AS col2
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3890
SELECT - 61 DIV - COUNT( + 44 ) + + 9 - + - 97
----
167

skipif mysql # not compatible
query I rowsort label-3890
SELECT - 61 / - COUNT ( + 44 ) + + 9 - + - 97
----
167

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT - COUNT( DISTINCT - + 85 ) * 42 * + 20 + - - COUNT( * ) AS col0
----
-839

skipif mysql # not compatible
query I rowsort label-3892
SELECT - COUNT ( DISTINCT - + 85 ) * 42 * + 20 + - - COUNT ( * ) AS col0
----
-839

onlyif mysql # DIV for integer division: 
query I rowsort label-3893
SELECT + ( 32 ) DIV + 37 + + - 23 + 14 + - + 37
----
-46

skipif mysql # not compatible
query I rowsort label-3893
SELECT + ( 32 ) / + 37 + + - 23 + 14 + - + 37
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3894
SELECT + + 60 * - COUNT( * ) * - 4 + 6 DIV + 82 AS col2, - 59 AS col1
----
240
-59

skipif mysql # not compatible
query II rowsort label-3894
SELECT + + 60 * - COUNT ( * ) * - 4 + 6 / + 82 AS col2, - 59 AS col1
----
240
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT - COUNT( * ) + - COUNT( * ) - + - CASE + 5 WHEN - 89 THEN NULL WHEN 39 THEN + COUNT( * ) * - + 26 + MAX( - 75 ) * - - AVG ( DISTINCT - 19 ) WHEN - + COUNT( * ) THEN NULL WHEN - - 63 / - + 98 THEN + 41 + + CASE 0 WHEN 91 THEN COUNT( * ) ELSE + 65 * + 65 END END * 80 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3895
SELECT - COUNT ( * ) + - COUNT ( * ) - + - CASE + 5 WHEN - 89 THEN NULL WHEN 39 THEN + COUNT ( * ) * - + 26 + MAX ( - 75 ) * - - AVG ( DISTINCT - 19 ) WHEN - + COUNT ( * ) THEN NULL WHEN - - 63 / - + 98 THEN + 41 + + CASE 0 WHEN 91 THEN COUNT ( * ) ELSE + 65 * + 65 END END * 80 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3896
SELECT - 25 + 12 DIV - 35 + 89
----
64

skipif mysql # not compatible
query I rowsort label-3896
SELECT - 25 + 12 / - 35 + 89
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3897
SELECT ALL - + COUNT( * ) * + - 40 + - - 20 * + 14 + + 69 + - 99
----
290

skipif mysql # not compatible
query I rowsort label-3897
SELECT ALL - + COUNT ( * ) * + - 40 + - - 20 * + 14 + + 69 + - 99
----
290

query I rowsort
SELECT + 24 * + 92 + + 61
----
2269

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT - 94 * + NULLIF ( 46, MIN( + - 17 ) + + 65 ) * + - 64 * + 95
----
26289920

skipif mysql # not compatible
query I rowsort label-3899
SELECT - 94 * + NULLIF ( 46, MIN ( + - 17 ) + + 65 ) * + - 64 * + 95
----
26289920

query I rowsort
SELECT NULLIF ( COALESCE ( + 35, - 68 ), + 40 * - - ( - 51 ) )
----
35

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3902
SELECT + CAST( - - MIN( 67 ) AS SIGNED ) + - 89 col0
----
-22

skipif mysql # not compatible
query I rowsort label-3902
SELECT + CAST ( - - MIN ( 67 ) AS INTEGER ) + - 89 col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT COALESCE ( - + 28, + 21, + + 14, + + COUNT( * ) + 0 )
----
-28

skipif mysql # not compatible
query I rowsort label-3903
SELECT COALESCE ( - + 28, + 21, + + 14, + + COUNT ( * ) + 0 )
----
-28

query I rowsort
SELECT + 70 * 87 * - - 61
----
371490

onlyif mysql # aggregate syntax: 
query II rowsort label-3905
SELECT + MAX( 78 ) + - 9 * - NULLIF ( - + 23, + + 64 ) AS col1, + 61
----
-129
61

skipif mysql # not compatible
query II rowsort label-3905
SELECT + MAX ( 78 ) + - 9 * - NULLIF ( - + 23, + + 64 ) AS col1, + 61
----
-129
61

query I rowsort
SELECT - ( NULLIF ( + 15, - 79 ) ) AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3907
SELECT MIN( ALL NULLIF ( - 26, + 54 * + 88 + - - 45 + - 84 ) )
----
-26

skipif mysql # not compatible
query I rowsort label-3907
SELECT MIN ( ALL NULLIF ( - 26, + 54 * + 88 + - - 45 + - 84 ) )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT + NULLIF ( + ( 59 ), - COUNT( * ) ) * 62 * 87 AS col1
----
318246

skipif mysql # not compatible
query I rowsort label-3908
SELECT + NULLIF ( + ( 59 ), - COUNT ( * ) ) * 62 * 87 AS col1
----
318246

onlyif mysql # aggregate syntax: 
query II rowsort label-3909
SELECT ALL COUNT( * ) * + COALESCE ( - + 38, - + 92 ) AS col0, 93 + - 21
----
-38
72

skipif mysql # not compatible
query II rowsort label-3909
SELECT ALL COUNT ( * ) * + COALESCE ( - + 38, - + 92 ) AS col0, 93 + - 21
----
-38
72

query I rowsort
SELECT ALL 5 - 85 * + 62 + + NULLIF ( - 47, + 72 ) * 43 - 86 AS col2
----
-7372

query I rowsort
SELECT + 28 - - - 19 * 83 + + ( + 60 )
----
-1489

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT + ( COUNT( * ) ) * + 24 + - 18
----
6

skipif mysql # not compatible
query I rowsort label-3912
SELECT + ( COUNT ( * ) ) * + 24 + - 18
----
6

query I rowsort
SELECT + 4 * - 79 AS col2
----
-316

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT 93 * - - COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-3914
SELECT 93 * - - COUNT ( * )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT COUNT( * ) + + 26 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-3915
SELECT COUNT ( * ) + + 26 AS col0
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3916
SELECT DISTINCT - 32 * + 70 * 18 * 45 - - 71 + + - COUNT( ALL 76 ) - - + 55 DIV - 61 + + 71 AS col0
----
-1814259

skipif mysql # not compatible
query I rowsort label-3916
SELECT DISTINCT - 32 * + 70 * 18 * 45 - - 71 + + - COUNT ( ALL 76 ) - - + 55 / - 61 + + 71 AS col0
----
-1814259

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT COUNT( - 83 ) + - - 58 * + + MAX( DISTINCT - + 38 ) - + 35
----
-2238

skipif mysql # not compatible
query I rowsort label-3917
SELECT COUNT ( - 83 ) + - - 58 * + + MAX ( DISTINCT - + 38 ) - + 35
----
-2238

query II rowsort
SELECT DISTINCT 18 AS col1, 64
----
18
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3919
SELECT ALL + - 17 + - CAST( + 88 AS SIGNED ) + + 83
----
-22

skipif mysql # not compatible
query I rowsort label-3919
SELECT ALL + - 17 + - CAST ( + 88 AS INTEGER ) + + 83
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3920
SELECT ( - NULLIF ( 82, - 15 + 73 * + CASE 66 WHEN + + SUM( DISTINCT CAST( NULL AS SIGNED ) ) THEN NULL ELSE - - 17 - - 55 END + - 72 + + - ( - 40 ) ) ) + SUM( ALL + 0 )
----
-82

skipif mysql # not compatible
query I rowsort label-3920
SELECT ( - NULLIF ( 82, - 15 + 73 * + CASE 66 WHEN + + SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) THEN NULL ELSE - - 17 - - 55 END + - 72 + + - ( - 40 ) ) ) + SUM ( ALL + 0 )
----
-82

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

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

query I rowsort
SELECT ALL - 50 + COALESCE ( + ( 94 ), - 33 * + COALESCE ( 78, - 48, + - 20 ) )
----
44

query I rowsort
SELECT 71 * - 71 AS col1
----
-5041

query I rowsort
SELECT + 16 + + - 7 AS col2
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3925
SELECT + 33 DIV - 79 * + - 40 * 50 + + 89 AS col1
----
89

skipif mysql # not compatible
query I rowsort label-3925
SELECT + 33 / - 79 * + - 40 * 50 + + 89 AS col1
----
89

onlyif mysql # DIV for integer division: 
query II rowsort label-3926
SELECT + 97, 27 + + + 70 DIV + + 18 + + 53 AS col0
----
97
83

skipif mysql # not compatible
query II rowsort label-3926
SELECT + 97, 27 + + + 70 / + + 18 + + 53 AS col0
----
97
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3927
SELECT CASE + + MAX( + 59 ) WHEN + - SUM( DISTINCT - - 24 ) - 2 THEN - CASE - 65 WHEN + 2 THEN 59 WHEN + 25 THEN NULL ELSE 30 + + + CASE - 75 WHEN - 89 THEN NULL WHEN + - CAST( NULL AS SIGNED ) THEN NULL WHEN 39 * 28 THEN + 67 ELSE - 97 + + 70 * - 10 END + 72 / + 33 END * CAST( NULL AS SIGNED ) WHEN 77 * - 84 THEN 18 + 54 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3927
SELECT CASE + + MAX ( + 59 ) WHEN + - SUM ( DISTINCT - - 24 ) - 2 THEN - CASE - 65 WHEN + 2 THEN 59 WHEN + 25 THEN NULL ELSE 30 + + + CASE - 75 WHEN - 89 THEN NULL WHEN + - CAST ( NULL AS INTEGER ) THEN NULL WHEN 39 * 28 THEN + 67 ELSE - 97 + + 70 * - 10 END + 72 / + 33 END * CAST ( NULL AS INTEGER ) WHEN 77 * - 84 THEN 18 + 54 ELSE NULL END
----
NULL

query I rowsort
SELECT 7 + ( 22 ) * + - 51
----
-1115

onlyif mysql # aggregate syntax: 
query II rowsort label-3929
SELECT + - 38 AS col0, + COUNT( - - COALESCE ( 95, 14, - 52 ) )
----
-38
1

skipif mysql # not compatible
query II rowsort label-3929
SELECT + - 38 AS col0, + COUNT ( - - COALESCE ( 95, 14, - 52 ) )
----
-38
1

query I rowsort
SELECT DISTINCT + + 12 * - 80
----
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT DISTINCT + COUNT( + 32 ) + - 96 AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-3931
SELECT DISTINCT + COUNT ( + 32 ) + - 96 AS col1
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3932
SELECT 87 DIV 71 * - COALESCE ( 81, + - 19 ) * COUNT( * )
----
-81

skipif mysql # not compatible
query I rowsort label-3932
SELECT 87 / 71 * - COALESCE ( 81, + - 19 ) * COUNT ( * )
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3933
SELECT DISTINCT - - CASE - 57 WHEN + 4 * + 79 / + 20 + - 75 - - 62 * - + 74 THEN + + COUNT( * ) WHEN + - 10 + + 69 - + - MAX( CAST( + 11 AS SIGNED ) ) THEN NULL END * - + 74 / + + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-3933
SELECT DISTINCT - - CASE - 57 WHEN + 4 * + 79 / + 20 + - 75 - - 62 * - + 74 THEN + + COUNT ( * ) WHEN + - 10 + + 69 - + - MAX ( CAST ( + 11 AS INTEGER ) ) THEN NULL END * - + 74 / + + 40
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3934
SELECT - CASE + 34 WHEN 59 + + 56 THEN NULL WHEN COUNT( * ) + - 64 THEN - 87 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3934
SELECT - CASE + 34 WHEN 59 + + 56 THEN NULL WHEN COUNT ( * ) + - 64 THEN - 87 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3935
SELECT DISTINCT + MIN( - 2 ) DIV - ( - 6 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3935
SELECT DISTINCT + MIN ( - 2 ) / - ( - 6 ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3936
SELECT 43 DIV - 87 * MAX( DISTINCT + 23 )
----
0

skipif mysql # not compatible
query I rowsort label-3936
SELECT 43 / - 87 * MAX ( DISTINCT + 23 )
----
0

query II rowsort
SELECT 49 * + 29, + 63 AS col2
----
1421
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3938
SELECT DISTINCT + 68 DIV 65, - 11 * COUNT( * ) * - 47 AS col2
----
1
517

skipif mysql # not compatible
query II rowsort label-3938
SELECT DISTINCT + 68 / 65, - 11 * COUNT ( * ) * - 47 AS col2
----
1
517

query II rowsort
SELECT 69 - - 47 AS col2, - 41 * + 41 + - 93 AS col0
----
116
-1774

query I rowsort
SELECT DISTINCT + 96 * 14
----
1344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3941
SELECT ALL COUNT( * ) - + ( + + 68 ) - 84 * + + COUNT( * ) * + 15 + + - CAST( + + 78 AS SIGNED ) + - + 74 * + 72 - CAST( + - COUNT( * ) AS SIGNED ) AS col0, 21
----
-6732
21

skipif mysql # not compatible
query II rowsort label-3941
SELECT ALL COUNT ( * ) - + ( + + 68 ) - 84 * + + COUNT ( * ) * + 15 + + - CAST ( + + 78 AS INTEGER ) + - + 74 * + 72 - CAST ( + - COUNT ( * ) AS INTEGER ) AS col0, 21
----
-6732
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3942
SELECT COUNT( * ) * - 93 * 51 AS col2
----
-4743

skipif mysql # not compatible
query I rowsort label-3942
SELECT COUNT ( * ) * - 93 * 51 AS col2
----
-4743

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT ALL + 78 * - 71 * COUNT( * )
----
-5538

skipif mysql # not compatible
query I rowsort label-3943
SELECT ALL + 78 * - 71 * COUNT ( * )
----
-5538

query II rowsort
SELECT 93 * - 82 AS col2, + 76 AS col1
----
-7626
76

onlyif mysql # aggregate syntax: 
query II rowsort label-3945
SELECT ALL + 23 * - 36 AS col1, COUNT( * )
----
-828
1

skipif mysql # not compatible
query II rowsort label-3945
SELECT ALL + 23 * - 36 AS col1, COUNT ( * )
----
-828
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3946
SELECT DISTINCT COUNT( * ) / + CAST( NULL AS SIGNED ) + - CASE - + 33 WHEN + + 11 THEN NULL WHEN + 52 + + 4 THEN + 44 * COUNT( - ( 38 ) ) - 36 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3946
SELECT DISTINCT COUNT ( * ) / + CAST ( NULL AS INTEGER ) + - CASE - + 33 WHEN + + 11 THEN NULL WHEN + 52 + + 4 THEN + 44 * COUNT ( - ( 38 ) ) - 36 END col1
----
NULL

query I rowsort
SELECT ALL - 90 * + 13 + - - 40 AS col1
----
-1130

query I rowsort
SELECT ALL + ( - 85 ) + - 72
----
-157

onlyif mysql # DIV for integer division: 
query I rowsort label-3949
SELECT - 30 DIV + 17 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3949
SELECT - 30 / + 17 AS col0
----
-1

query I rowsort
SELECT 84 * 36 + - 36
----
2988

onlyif mysql # aggregate syntax: 
query II rowsort label-3951
SELECT - 14 * + - 7 AS col0, + COUNT( * )
----
98
1

skipif mysql # not compatible
query II rowsort label-3951
SELECT - 14 * + - 7 AS col0, + COUNT ( * )
----
98
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3952
SELECT ALL COUNT( DISTINCT 28 ) + - 37 AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-3952
SELECT ALL COUNT ( DISTINCT 28 ) + - 37 AS col0
----
-36

query I rowsort
SELECT 63 - - 45
----
108

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

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

query I rowsort
SELECT + 80 - - 96 + + + 72
----
248

query I rowsort
SELECT ALL + 27 + + 35 * - NULLIF ( - 38, + + ( 67 ) ) AS col2
----
1357

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3957
SELECT + 1 * COUNT( + - ( + + 39 ) ) + + 71 DIV + - 83 * - MIN( + + 72 ) - + COUNT( * ) * - 24 DIV - 36 - + 17 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-3957
SELECT + 1 * COUNT ( + - ( + + 39 ) ) + + 71 / + - 83 * - MIN ( + + 72 ) - + COUNT ( * ) * - 24 / - 36 - + 17 AS col1
----
-16

query I rowsort
SELECT 35 + - 18 + - 59 * + - 43 + - 25
----
2529

onlyif mysql # DIV for integer division: 
query I rowsort label-3959
SELECT 92 DIV + 54 - - 41 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-3959
SELECT 92 / + 54 - - 41 AS col0
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3960
SELECT + COUNT( * ) * + - 10 + 7 + + 4 * 92 * + 97 + COUNT( * ) + + CASE - 82 WHEN + COUNT( * ) THEN MIN( DISTINCT - + 77 ) * + 59 + COUNT( + + 36 ) + + + 20 DIV - 73 ELSE - 37 END
----
35657

skipif mysql # not compatible
query I rowsort label-3960
SELECT + COUNT ( * ) * + - 10 + 7 + + 4 * 92 * + 97 + COUNT ( * ) + + CASE - 82 WHEN + COUNT ( * ) THEN MIN ( DISTINCT - + 77 ) * + 59 + COUNT ( + + 36 ) + + + 20 / - 73 ELSE - 37 END
----
35657

query I rowsort
SELECT ( - 93 ) * 35 * - 1 + + 36 AS col0
----
3291

query I rowsort
SELECT 94 * - 42 AS col1
----
-3948

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3963
SELECT CASE - CASE - 93 WHEN + 93 THEN + CAST( + 69 AS SIGNED ) * - 41 + - 36 - 2 + NULLIF ( - COALESCE ( 55, - - 67 ), + + ( 31 ) ) + - 57 END WHEN - 12 * + 20 THEN 73 - 28 WHEN + CAST( 21 AS SIGNED ) + COALESCE ( - 87, + 77 ) THEN 3 + 75 ELSE NULL END * COALESCE ( CAST( NULL AS SIGNED ) + + CASE - 35 WHEN 62 * ( - 49 ) + + 54 THEN 83 END, CASE 88 WHEN 52 THEN 80 + 51 ELSE 42 END ) + 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3963
SELECT CASE - CASE - 93 WHEN + 93 THEN + CAST ( + 69 AS INTEGER ) * - 41 + - 36 - 2 + NULLIF ( - COALESCE ( 55, - - 67 ), + + ( 31 ) ) + - 57 END WHEN - 12 * + 20 THEN 73 - 28 WHEN + CAST ( 21 AS INTEGER ) + COALESCE ( - 87, + 77 ) THEN 3 + 75 ELSE NULL END * COALESCE ( CAST ( NULL AS INTEGER ) + + CASE - 35 WHEN 62 * ( - 49 ) + + 54 THEN 83 END, CASE 88 WHEN 52 THEN 80 + 51 ELSE 42 END ) + 51 AS col2
----
NULL

query I rowsort
SELECT 78 + - + 11
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3965
SELECT ALL 47 - + - 24 * - + MIN( + 97 ) + + 60 * + - 31 * + 95 AS col1
----
-178981

skipif mysql # not compatible
query I rowsort label-3965
SELECT ALL 47 - + - 24 * - + MIN ( + 97 ) + + 60 * + - 31 * + 95 AS col1
----
-178981

query I rowsort
SELECT 84 * - 23
----
-1932

query I rowsort
SELECT 88 + + + 63
----
151

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3969
SELECT 10 * COUNT( * ) DIV - - 90 * 52 + - 89 AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-3969
SELECT 10 * COUNT ( * ) / - - 90 * 52 + - 89 AS col2
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3970
SELECT MIN( DISTINCT ( + 97 ) ), 30 DIV - + 62 + - 65 AS col0
----
97
-65

skipif mysql # not compatible
query II rowsort label-3970
SELECT MIN ( DISTINCT ( + 97 ) ), 30 / - + 62 + - 65 AS col0
----
97
-65

query I rowsort
SELECT - 20 * + + 8 * + 78 + + 55 * - 44
----
-14900

query I rowsort
SELECT - 63 + - 22
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3973
SELECT ALL - COUNT( * ) DIV - 84
----
0

skipif mysql # not compatible
query I rowsort label-3973
SELECT ALL - COUNT ( * ) / - 84
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3974
SELECT - 75 DIV + 73
----
-1

skipif mysql # not compatible
query I rowsort label-3974
SELECT - 75 / + 73
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3975
SELECT ALL CASE + 46 WHEN CAST( COUNT( * ) AS SIGNED ) / + 44 THEN + 0 + - 83 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3975
SELECT ALL CASE + 46 WHEN CAST ( COUNT ( * ) AS INTEGER ) / + 44 THEN + 0 + - 83 END AS col0
----
NULL

query I rowsort
SELECT - 69 + + + ( + 11 )
----
-58

query I rowsort
SELECT DISTINCT 88 + + + 6 col0
----
94

query I rowsort
SELECT ALL + - 46 + + + 57
----
11

query II rowsort
SELECT + 75 * - 4 - 86 AS col1, + 85
----
-386
85

query II rowsort
SELECT - - 21 AS col1, - 68
----
21
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3981
SELECT + - CASE 60 WHEN + - ( 79 ) * + + 28 THEN - ( 40 ) * - 87 WHEN 23 - - + 89 THEN NULL WHEN - 77 THEN - ( - 53 ) + + + 68 - + 21 ELSE - 3 END + - 92 + + + MIN( ALL ( 93 ) ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-3981
SELECT + - CASE 60 WHEN + - ( 79 ) * + + 28 THEN - ( 40 ) * - 87 WHEN 23 - - + 89 THEN NULL WHEN - 77 THEN - ( - 53 ) + + + 68 - + 21 ELSE - 3 END + - 92 + + + MIN ( ALL ( 93 ) ) AS col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3982
SELECT DISTINCT - CASE + 23 WHEN - 73 THEN + 81 / - 46 / - 37 / + - 83 * + - 2 - + - 20 + - CAST( + AVG ( ALL 89 ) AS SIGNED ) END + - - 8 + - - COUNT( * ) + - COUNT( + 56 ) / - - 61 * + 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3982
SELECT DISTINCT - CASE + 23 WHEN - 73 THEN + 81 / - 46 / - 37 / + - 83 * + - 2 - + - 20 + - CAST ( + AVG ( ALL 89 ) AS INTEGER ) END + - - 8 + - - COUNT ( * ) + - COUNT ( + 56 ) / - - 61 * + 68 AS col2
----
NULL

query II rowsort
SELECT ALL + 57 AS col2, 48 AS col0
----
57
48

query I rowsort
SELECT + NULLIF ( 88, + 35 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT - + 36 + + COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-3985
SELECT - + 36 + + COUNT ( * )
----
-35

query I rowsort
SELECT - + 78 * - - 98 * - 78
----
596232

onlyif mysql # aggregate syntax: 
query II rowsort label-3987
SELECT ALL ( - MIN( - - 11 ) ), + 88 * - COUNT( * ) * + 81 * - 50 + ( - 3 ) * - - 69 + - CASE - + 91 WHEN 16 / + 30 + - + 68 + + - 97 * + COUNT( * ) - - 90 THEN NULL WHEN - CASE + 63 WHEN 95 THEN + 61 ELSE NULL END * + 34 THEN + 83 * 94 ELSE NULL END * + 13 AS col1
----
-11
NULL

skipif mysql # not compatible
query II rowsort label-3987
SELECT ALL ( - MIN ( - - 11 ) ), + 88 * - COUNT ( * ) * + 81 * - 50 + ( - 3 ) * - - 69 + - CASE - + 91 WHEN 16 / + 30 + - + 68 + + - 97 * + COUNT ( * ) - - 90 THEN NULL WHEN - CASE + 63 WHEN 95 THEN + 61 ELSE NULL END * + 34 THEN + 83 * 94 ELSE NULL END * + 13 AS col1
----
-11
NULL

query II rowsort
SELECT ALL - 56 + + 71 * 38, 86 col1
----
2642
86

query II rowsort
SELECT ALL NULLIF ( - 93, - 77 ) AS col0, 30
----
-93
30

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3991
SELECT ALL - 6 DIV + + 13 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3991
SELECT ALL - 6 / + + 13 AS col0
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3993
SELECT + + COALESCE ( - CAST( - AVG ( 90 ) AS SIGNED ), + - 15 + + ( - + 93 ) ) DIV + 5 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-3993
SELECT + + COALESCE ( - CAST ( - AVG ( 90 ) AS INTEGER ), + - 15 + + ( - + 93 ) ) / + 5 AS col1
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3994
SELECT ALL + 13 * - + ( - COUNT( * ) ) * COUNT( + 43 ) + 54 + + 21 - - COALESCE ( 50, 1 DIV - 7 + - CASE 46 WHEN - + 72 THEN NULL ELSE + ( + 67 ) + - 51 END, + 66 ) * 85 AS col1
----
4338

skipif mysql # not compatible
query I rowsort label-3994
SELECT ALL + 13 * - + ( - COUNT ( * ) ) * COUNT ( + 43 ) + 54 + + 21 - - COALESCE ( 50, 1 / - 7 + - CASE 46 WHEN - + 72 THEN NULL ELSE + ( + 67 ) + - 51 END, + 66 ) * 85 AS col1
----
4338

query I rowsort
SELECT + COALESCE ( + 21, 16 ) AS col2
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3996
SELECT DISTINCT 6 * + 67, CAST( - + 90 AS SIGNED ) + + - 31 col0
----
402
-121

skipif mysql # not compatible
query II rowsort label-3996
SELECT DISTINCT 6 * + 67, CAST ( - + 90 AS INTEGER ) + + - 31 col0
----
402
-121

query I rowsort
SELECT + CASE + ( + - 79 ) WHEN + - 23 THEN 64 END AS col0
----
NULL

query I rowsort
SELECT ALL + CASE + 84 WHEN + 31 + 94 THEN - 98 ELSE + - 53 END
----
-53

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

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

query II rowsort
SELECT CASE 38 WHEN - 50 THEN + - 2 END, + 77 AS col2
----
NULL
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT CASE - 63 WHEN - - 6 THEN ( + COUNT( * ) ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4001
SELECT CASE - 63 WHEN - - 6 THEN ( + COUNT ( * ) ) END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4002
SELECT CASE COALESCE ( - 2, 18 ) WHEN - - COUNT( * ) THEN NULL WHEN + + 64 THEN + - SUM( ALL + + 46 ) ELSE - COUNT( * ) * - 86 + - - 53 END
----
139

skipif mysql # not compatible
query I rowsort label-4002
SELECT CASE COALESCE ( - 2, 18 ) WHEN - - COUNT ( * ) THEN NULL WHEN + + 64 THEN + - SUM ( ALL + + 46 ) ELSE - COUNT ( * ) * - 86 + - - 53 END
----
139

query I rowsort
SELECT + 99 * 27
----
2673

onlyif mysql # DIV for integer division: 
query I rowsort label-4004
SELECT - 5 + - - ( + - 20 ) + + 95 DIV 67
----
-24

skipif mysql # not compatible
query I rowsort label-4004
SELECT - 5 + - - ( + - 20 ) + + 95 / 67
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-4005
SELECT ALL 57 DIV + 80 * ( + ( 32 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4005
SELECT ALL 57 / + 80 * ( + ( 32 ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4006
SELECT - 91 * - COALESCE ( 28, - COUNT( ALL 58 ) ) - 64
----
2484

skipif mysql # not compatible
query I rowsort label-4006
SELECT - 91 * - COALESCE ( 28, - COUNT ( ALL 58 ) ) - 64
----
2484

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT ALL + 11 * 55 + - - COUNT( * )
----
606

skipif mysql # not compatible
query I rowsort label-4007
SELECT ALL + 11 * 55 + - - COUNT ( * )
----
606

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT + 90 + - - MAX( ALL - 27 )
----
63

skipif mysql # not compatible
query I rowsort label-4008
SELECT + 90 + - - MAX ( ALL - 27 )
----
63

query II rowsort
SELECT - + 26 + + - 72, + 61 + - + NULLIF ( - - 85, + 0 ) AS col1
----
-98
-24

query I rowsort
SELECT DISTINCT - 68 * - 67 + - 52
----
4504

query I rowsort
SELECT - - CASE - 62 WHEN + - 12 THEN 98 END + 50 - + 67 * 61 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4012
SELECT - + CAST( + 66 AS SIGNED ) - - COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-4012
SELECT - + CAST ( + 66 AS INTEGER ) - - COUNT ( * )
----
-65

query I rowsort
SELECT - 35 * - 15 + - 75 AS col0
----
450

query II rowsort
SELECT DISTINCT 5 + 57, + 79 + + 38 AS col2
----
62
117

onlyif mysql # DIV for integer division: 
query I rowsort label-4015
SELECT ALL - 2 DIV 28 DIV + ( - - 69 ) * - - ( - 98 ) - 61 * - 87 AS col2
----
5307

skipif mysql # not compatible
query I rowsort label-4015
SELECT ALL - 2 / 28 / + ( - - 69 ) * - - ( - 98 ) - 61 * - 87 AS col2
----
5307

onlyif mysql # aggregate syntax: 
query I rowsort label-4016
SELECT - + COUNT( * ) + - 78
----
-79

skipif mysql # not compatible
query I rowsort label-4016
SELECT - + COUNT ( * ) + - 78
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4017
SELECT - MAX( ALL + 98 ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-4017
SELECT - MAX ( ALL + 98 ) AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT DISTINCT - + COUNT( DISTINCT + 8 ) - 94 AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-4018
SELECT DISTINCT - + COUNT ( DISTINCT + 8 ) - 94 AS col1
----
-95

query I rowsort
SELECT - 89 * + - 62 + + + 10 AS col0
----
5528

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
SELECT ALL - + COUNT( * ) - - - 7 + + NULLIF ( - 29, + 41 * 26 + - - 50 + 1 ) * 70
----
-2038

skipif mysql # not compatible
query I rowsort label-4020
SELECT ALL - + COUNT ( * ) - - - 7 + + NULLIF ( - 29, + 41 * 26 + - - 50 + 1 ) * 70
----
-2038

onlyif mysql # aggregate syntax: 
query I rowsort label-4021
SELECT - 51 - + - MAX( - + 70 )
----
-121

skipif mysql # not compatible
query I rowsort label-4021
SELECT - 51 - + - MAX ( - + 70 )
----
-121

onlyif mysql # aggregate syntax: 
query II rowsort label-4022
SELECT - - COUNT( * ) * - 69 AS col0, 80 AS col1
----
-69
80

skipif mysql # not compatible
query II rowsort label-4022
SELECT - - COUNT ( * ) * - 69 AS col0, 80 AS col1
----
-69
80

query I rowsort
SELECT + + 0 * + ( + 37 ) * + 50 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT - ( - - 93 ) - MIN( ALL + 38 ) AS col1
----
-131

skipif mysql # not compatible
query I rowsort label-4024
SELECT - ( - - 93 ) - MIN ( ALL + 38 ) AS col1
----
-131

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

skipif mysql # not compatible
query I rowsort label-4025
SELECT ALL - - COUNT ( * ) * 17 + 70 AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT - ( - 79 ) + COUNT( * ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-4026
SELECT - ( - 79 ) + COUNT ( * ) AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT - ( 40 ) + + NULLIF ( CASE - COUNT( * ) WHEN MAX( - + 67 ) THEN + 89 / 41 + - 86 WHEN 29 * 36 THEN NULL ELSE NULL END, - ( + 45 ) + 86 * 3 - COUNT( * ) * - 74 + - + SUM( - + 36 ) * 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4027
SELECT - ( 40 ) + + NULLIF ( CASE - COUNT ( * ) WHEN MAX ( - + 67 ) THEN + 89 / 41 + - 86 WHEN 29 * 36 THEN NULL ELSE NULL END, - ( + 45 ) + 86 * 3 - COUNT ( * ) * - 74 + - + SUM ( - + 36 ) * 76 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4028
SELECT ( + - 36 ) * 3 - - ( - COALESCE ( 69, 82 ) ) + + COUNT( * ) col1, 42
----
-176
42

skipif mysql # not compatible
query II rowsort label-4028
SELECT ( + - 36 ) * 3 - - ( - COALESCE ( 69, 82 ) ) + + COUNT ( * ) col1, 42
----
-176
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4029
SELECT ALL 94 * SUM( 41 ) * CASE - + COUNT( * ) WHEN - 78 THEN - 36 + 4 + + COUNT( * ) + - NULLIF ( - CAST( 12 AS SIGNED ), + - 13 * 31 + 88 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4029
SELECT ALL 94 * SUM ( 41 ) * CASE - + COUNT ( * ) WHEN - 78 THEN - 36 + 4 + + COUNT ( * ) + - NULLIF ( - CAST ( 12 AS INTEGER ), + - 13 * 31 + 88 ) END AS col2
----
NULL

query II rowsort
SELECT 39, - 98 * - 81 AS col1
----
39
7938

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4031
SELECT CAST( NULL AS DECIMAL ) - + + 63 + - 52 - - + 9 / + 18 * 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4031
SELECT CAST ( NULL AS REAL ) - + + 63 + - 52 - - + 9 / + 18 * 51 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 87 + 55
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT ALL COUNT( * ) + + COUNT( DISTINCT 21 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4033
SELECT ALL COUNT ( * ) + + COUNT ( DISTINCT 21 ) AS col1
----
2

query I rowsort
SELECT ALL + 20 * + 10 AS col2
----
200

onlyif mysql # aggregate syntax: 
query I rowsort label-4035
SELECT DISTINCT - 65 + COUNT( * ) * 53 * + 36 col2
----
1843

skipif mysql # not compatible
query I rowsort label-4035
SELECT DISTINCT - 65 + COUNT ( * ) * 53 * + 36 col2
----
1843

query I rowsort
SELECT 13 + - 66
----
-53

query II rowsort
SELECT DISTINCT - 51 AS col0, + 87 AS col2
----
-51
87

query I rowsort
SELECT DISTINCT 51 + 86
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT DISTINCT ( - 42 ) + - COUNT( + 44 ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-4039
SELECT DISTINCT ( - 42 ) + - COUNT ( + 44 ) AS col0
----
-43

query I rowsort
SELECT 3 * + + 79 AS col0
----
237

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4041
SELECT 84 * - + COUNT( * ) * + ( - + SUM( - + 72 ) ) / + 91 / MAX( + - 1 ) / - ( + + CAST( NULL AS DECIMAL ) ) + 46 + + + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-4041
SELECT 84 * - + COUNT ( * ) * + ( - + SUM ( - + 72 ) ) / + 91 / MAX ( + - 1 ) / - ( + + CAST ( NULL AS REAL ) ) + 46 + + + 66
----
NULL

query I rowsort
SELECT + 57 + 94
----
151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4043
SELECT DISTINCT - CASE + 27 WHEN - + 43 * - - 68 THEN + 0 * CASE - MIN( DISTINCT CAST( NULL AS SIGNED ) ) WHEN - 9 THEN + + COUNT( * ) + - 20 ELSE - 18 END WHEN 85 THEN 27 ELSE - 13 + + 32 END
----
-19

skipif mysql # not compatible
query I rowsort label-4043
SELECT DISTINCT - CASE + 27 WHEN - + 43 * - - 68 THEN + 0 * CASE - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) WHEN - 9 THEN + + COUNT ( * ) + - 20 ELSE - 18 END WHEN 85 THEN 27 ELSE - 13 + + 32 END
----
-19

query I rowsort
SELECT 51 + 38 AS col1
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4045
SELECT ALL 50 * 90 - + CAST( NULL AS SIGNED ) AS col0, 69 AS col0
----
NULL
69

skipif mysql # not compatible
query II rowsort label-4045
SELECT ALL 50 * 90 - + CAST ( NULL AS INTEGER ) AS col0, 69 AS col0
----
NULL
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT DISTINCT + 89 - - 80 * - COUNT( * ) col2
----
9

skipif mysql # not compatible
query I rowsort label-4046
SELECT DISTINCT + 89 - - 80 * - COUNT ( * ) col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT 30 * - COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-4047
SELECT 30 * - COUNT ( * )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT MIN( + + 12 ) + - + CASE 12 WHEN 52 THEN NULL WHEN - 3 * - + 82 - - ( - 33 ) + - + 70 * - + ( - 72 ) THEN + 69 ELSE NULL END + + + 74 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4048
SELECT MIN ( + + 12 ) + - + CASE 12 WHEN 52 THEN NULL WHEN - 3 * - + 82 - - ( - 33 ) + - + 70 * - + ( - 72 ) THEN + 69 ELSE NULL END + + + 74 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4049
SELECT ALL + 40 * + 40 + 57 + - 86 / + ( 95 ) * - COUNT( * ) * 41 * COUNT( * ) * + + CASE 20 WHEN + 68 THEN - + 45 * CASE + SUM( 3 ) WHEN + 29 * - 43 + + 18 THEN - 17 WHEN COUNT( * ) * - 13 THEN NULL END / COUNT( DISTINCT + CAST( NULL AS SIGNED ) / 16 + - 93 * 73 ) + 14 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4049
SELECT ALL + 40 * + 40 + 57 + - 86 / + ( 95 ) * - COUNT ( * ) * 41 * COUNT ( * ) * + + CASE 20 WHEN + 68 THEN - + 45 * CASE + SUM ( 3 ) WHEN + 29 * - 43 + + 18 THEN - 17 WHEN COUNT ( * ) * - 13 THEN NULL END / COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) / 16 + - 93 * 73 ) + 14 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4050
SELECT ALL 20 - 76 + - COUNT( DISTINCT + 43 ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-4050
SELECT ALL 20 - 76 + - COUNT ( DISTINCT + 43 ) AS col0
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4051
SELECT + MIN( ALL + 18 ) + - CAST( + SUM( DISTINCT ( 96 ) ) AS SIGNED ) col2
----
-78

skipif mysql # not compatible
query I rowsort label-4051
SELECT + MIN ( ALL + 18 ) + - CAST ( + SUM ( DISTINCT ( 96 ) ) AS INTEGER ) col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT COALESCE ( - + COUNT( * ), 12, + + COUNT( * ), - + 89 ) - 6
----
-7

skipif mysql # not compatible
query I rowsort label-4052
SELECT COALESCE ( - + COUNT ( * ), 12, + + COUNT ( * ), - + 89 ) - 6
----
-7

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4054
SELECT - 82 + COUNT( * ) + - + 86 DIV 19 * 85 * + - 4
----
1279

skipif mysql # not compatible
query I rowsort label-4054
SELECT - 82 + COUNT ( * ) + - + 86 / 19 * 85 * + - 4
----
1279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4055
SELECT 99 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4055
SELECT 99 * - - CAST ( NULL AS INTEGER )
----
NULL

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

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

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

query I rowsort
SELECT 30 + CASE + - 54 WHEN - 15 THEN NULL ELSE - 3 * + + 79 END
----
-207

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4059
SELECT - COUNT( * ) DIV COALESCE ( + + ( - 50 ), - + COUNT( * ) ) AS col0, 77
----
0
77

skipif mysql # not compatible
query II rowsort label-4059
SELECT - COUNT ( * ) / COALESCE ( + + ( - 50 ), - + COUNT ( * ) ) AS col0, 77
----
0
77

query I rowsort
SELECT - 9 * 28 AS col2
----
-252

query I rowsort
SELECT - 49 + + 71 AS col0
----
22

query I rowsort
SELECT 79 * + 63
----
4977

onlyif mysql # DIV for integer division: 
query I rowsort label-4063
SELECT DISTINCT + 96 DIV + ( + - 21 ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-4063
SELECT DISTINCT + 96 / + ( + - 21 ) AS col1
----
-4

query II rowsort
SELECT 97 * + - 63 AS col1, + 77 * + - 79 col1
----
-6111
-6083

query I rowsort
SELECT 4 + - ( + 65 )
----
-61

query I rowsort
SELECT ALL - 51 * - 26 * - - ( - 5 )
----
-6630

query I rowsort
SELECT 87 * + - 31 * - 79 AS col0
----
213063

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4068
SELECT 60 DIV 73 + 92 + + COUNT( * ) + - MIN( + 14 ) AS col0, + COUNT( * ) * - COUNT( * )
----
79
-1

skipif mysql # not compatible
query II rowsort label-4068
SELECT 60 / 73 + 92 + + COUNT ( * ) + - MIN ( + 14 ) AS col0, + COUNT ( * ) * - COUNT ( * )
----
79
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4069
SELECT ALL + MAX( ALL - 6 ) + + ( + ( - 42 ) ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-4069
SELECT ALL + MAX ( ALL - 6 ) + + ( + ( - 42 ) ) AS col2
----
-48

query II rowsort
SELECT 24 AS col0, - 76 * - + 18
----
24
1368

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4071
SELECT DISTINCT + COUNT( * ) + - 58 DIV - 44 col2
----
2

skipif mysql # not compatible
query I rowsort label-4071
SELECT DISTINCT + COUNT ( * ) + - 58 / - 44 col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4072
SELECT ALL + 88 DIV COALESCE ( 49, COUNT( * ) ) DIV + - 5 + + COUNT( * ) * 93 + - + CASE 34 WHEN - + 88 + + CAST( NULL AS SIGNED ) THEN - + ( - ( + 35 ) ) WHEN + 5 THEN NULL ELSE + - 20 END DIV 59 + + 98 + + - 44 AS col1, CASE - - AVG ( DISTINCT + 23 ) WHEN - 37 DIV - COUNT( * ) - 51 THEN + 90 * - 26 WHEN - 26 * - 98 THEN NULL ELSE NULL END AS col1
----
147
NULL

skipif mysql # not compatible
query II rowsort label-4072
SELECT ALL + 88 / COALESCE ( 49, COUNT ( * ) ) / + - 5 + + COUNT ( * ) * 93 + - + CASE 34 WHEN - + 88 + + CAST ( NULL AS INTEGER ) THEN - + ( - ( + 35 ) ) WHEN + 5 THEN NULL ELSE + - 20 END / 59 + + 98 + + - 44 AS col1, CASE - - AVG ( DISTINCT + 23 ) WHEN - 37 / - COUNT ( * ) - 51 THEN + 90 * - 26 WHEN - 26 * - 98 THEN NULL ELSE NULL END AS col1
----
147
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4073
SELECT 98 DIV - COUNT( - + ( 75 ) ) + - + 18 col0
----
-116

skipif mysql # not compatible
query I rowsort label-4073
SELECT 98 / - COUNT ( - + ( 75 ) ) + - + 18 col0
----
-116

query II rowsort
SELECT + 18, - 96 col2
----
18
-96

query II rowsort
SELECT + 20, + 20 + 71 col1
----
20
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT COUNT( * ) * - + 30 + 35 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-4076
SELECT COUNT ( * ) * - + 30 + 35 AS col1
----
5

query I rowsort
SELECT - 64 * + 24 AS col2
----
-1536

query I rowsort
SELECT - 8 - - 77 * 77 col0
----
5921

query I rowsort
SELECT DISTINCT + - 97 * - - 33
----
-3201

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT DISTINCT - - COUNT( * ) * - COUNT( * ) + - + 25 * + 5
----
-126

skipif mysql # not compatible
query I rowsort label-4080
SELECT DISTINCT - - COUNT ( * ) * - COUNT ( * ) + - + 25 * + 5
----
-126

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4082
SELECT 13, - 38 + - 2 + + 48 DIV + COUNT( * ) AS col2
----
13
8

skipif mysql # not compatible
query II rowsort label-4082
SELECT 13, - 38 + - 2 + + 48 / + COUNT ( * ) AS col2
----
13
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4083
SELECT + 88 + NULLIF ( + NULLIF ( + 95, COUNT( * ) * CAST( NULL AS SIGNED ) ), - 28 )
----
183

skipif mysql # not compatible
query I rowsort label-4083
SELECT + 88 + NULLIF ( + NULLIF ( + 95, COUNT ( * ) * CAST ( NULL AS INTEGER ) ), - 28 )
----
183

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

query I rowsort
SELECT 55 * 65
----
3575

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

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

query II rowsort
SELECT ALL + 42 AS col0, - 67 + + 13 + 38
----
42
-16

query II rowsort
SELECT - - 45 AS col2, 81 AS col0
----
45
81

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

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

query II rowsort
SELECT - 85, 41 * + ( 8 ) AS col2
----
-85
328

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT DISTINCT - COUNT( * ) * + 34 + - COUNT( * ) + + - 31 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-4091
SELECT DISTINCT - COUNT ( * ) * + 34 + - COUNT ( * ) + + - 31 AS col2
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-4092
SELECT + 74 DIV - 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4092
SELECT + 74 / - 94 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4093
SELECT DISTINCT COUNT( * ) * 5
----
5

skipif mysql # not compatible
query I rowsort label-4093
SELECT DISTINCT COUNT ( * ) * 5
----
5

query I rowsort
SELECT ALL 77 + + 80 col2
----
157

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4096
SELECT + CAST( - 51 AS SIGNED ) - 83 AS col0
----
-134

skipif mysql # not compatible
query I rowsort label-4096
SELECT + CAST ( - 51 AS INTEGER ) - 83 AS col0
----
-134

query I rowsort
SELECT ALL 41 + 1 AS col2
----
42

query I rowsort
SELECT + 52 - + + 33 * - - 74
----
-2390

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4099
SELECT DISTINCT 76 + - + CAST( NULL AS SIGNED ) col2, 42 DIV 53 * + 33 * + - 21
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4099
SELECT DISTINCT 76 + - + CAST ( NULL AS INTEGER ) col2, 42 / 53 * + 33 * + - 21
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT COALESCE ( + 32, - MIN( - + 41 ) )
----
32

skipif mysql # not compatible
query I rowsort label-4100
SELECT COALESCE ( + 32, - MIN ( - + 41 ) )
----
32

query I rowsort
SELECT COALESCE ( + 6, + 30 ) AS col0
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4102
SELECT - MAX( - 13 ) - 56 + - ( - - 21 ) DIV ( + 54 )
----
-43

skipif mysql # not compatible
query I rowsort label-4102
SELECT - MAX ( - 13 ) - 56 + - ( - - 21 ) / ( + 54 )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT COALESCE ( 0, + COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-4103
SELECT COALESCE ( 0, + COUNT ( * ) )
----
0

query I rowsort
SELECT ALL + 38 * + 91 - + 74
----
3384

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT NULLIF ( 54, + MAX( - 31 ) + - 82 )
----
54

skipif mysql # not compatible
query I rowsort label-4105
SELECT NULLIF ( 54, + MAX ( - 31 ) + - 82 )
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4106
SELECT DISTINCT + ( 36 ) * CAST( + 95 AS SIGNED )
----
3420

skipif mysql # not compatible
query I rowsort label-4106
SELECT DISTINCT + ( 36 ) * CAST ( + 95 AS INTEGER )
----
3420

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT ALL - - 40 * COUNT( * ) * - ( + 73 ) - + MIN( - - 20 ) AS col2
----
-2940

skipif mysql # not compatible
query I rowsort label-4107
SELECT ALL - - 40 * COUNT ( * ) * - ( + 73 ) - + MIN ( - - 20 ) AS col2
----
-2940

onlyif mysql # DIV for integer division: 
query I rowsort label-4108
SELECT DISTINCT + + 61 DIV - 69 + + 27 col0
----
27

skipif mysql # not compatible
query I rowsort label-4108
SELECT DISTINCT + + 61 / - 69 + + 27 col0
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4109
SELECT - 28 * - NULLIF ( - - 3, + 83 * - 26 + - COUNT( * ) + 54 + + 20 + 94 * + 34 - - 3 + + 74 + + CAST( NULL AS SIGNED ) + + - ( - 16 ) * + + 35 ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-4109
SELECT - 28 * - NULLIF ( - - 3, + 83 * - 26 + - COUNT ( * ) + 54 + + 20 + 94 * + 34 - - 3 + + 74 + + CAST ( NULL AS INTEGER ) + + - ( - 16 ) * + + 35 ) AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT ALL + - MAX( 68 ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-4110
SELECT ALL + - MAX ( 68 ) AS col2
----
-68

query I rowsort
SELECT - 11 * + 18 + - 34 + + 53 + 48
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT + 55 + + 76 * + - COUNT( * ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-4112
SELECT + 55 + + 76 * + - COUNT ( * ) AS col2
----
-21

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4113
SELECT + + CASE + - ( + 93 ) WHEN - NULLIF ( + 71, CAST( 37 AS DECIMAL ) + + - 79 ) * + 9 THEN NULL ELSE + 67 END * - - 98
----
6566

skipif mysql # not compatible
query I rowsort label-4113
SELECT + + CASE + - ( + 93 ) WHEN - NULLIF ( + 71, CAST ( 37 AS REAL ) + + - 79 ) * + 9 THEN NULL ELSE + 67 END * - - 98
----
6566

query I rowsort
SELECT ALL + - 19 * + 74 AS col0
----
-1406

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4115
SELECT DISTINCT 78 * - CASE + 24 WHEN 5 - + COUNT( * ) THEN - + 56 + - 91 * - + ( + COUNT( - CAST( NULL AS SIGNED ) ) ) WHEN + 0 THEN NULL END + + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4115
SELECT DISTINCT 78 * - CASE + 24 WHEN 5 - + COUNT ( * ) THEN - + 56 + - 91 * - + ( + COUNT ( - CAST ( NULL AS INTEGER ) ) ) WHEN + 0 THEN NULL END + + + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - 96 + + - 99 AS col0
----
-195

query I rowsort
SELECT ALL + 38 * - 61 - + 43 AS col1
----
-2361

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT DISTINCT - CASE + 27 WHEN - 69 + + + 54 THEN NULL ELSE - COUNT( * ) END + + 85 AS col0
----
86

skipif mysql # not compatible
query I rowsort label-4118
SELECT DISTINCT - CASE + 27 WHEN - 69 + + + 54 THEN NULL ELSE - COUNT ( * ) END + + 85 AS col0
----
86

query I rowsort
SELECT DISTINCT + + 15 * - 11 - + 64 * + - 85 AS col1
----
5275

query I rowsort
SELECT ALL - 47 + + 39 col0
----
-8

query I rowsort
SELECT - 97 + - 59 col2
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT - CASE + - 2 WHEN - 55 THEN + COUNT( * ) WHEN 97 THEN NULL WHEN + + 75 THEN + 52 END * - 50 + - 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4122
SELECT - CASE + - 2 WHEN - 55 THEN + COUNT ( * ) WHEN 97 THEN NULL WHEN + + 75 THEN + 52 END * - 50 + - 99 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4123
SELECT + 89 + + ( - - ( + COUNT( * ) ) ) * - - 70 AS col1
----
159

skipif mysql # not compatible
query I rowsort label-4123
SELECT + 89 + + ( - - ( + COUNT ( * ) ) ) * - - 70 AS col1
----
159

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

skipif mysql # not compatible
query I rowsort label-4124
SELECT + 65 + + COUNT ( * ) + + + 96 * - 88 AS col2
----
-8382

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4125
SELECT + MAX( ALL ( 51 ) ) + + 49 + - COALESCE ( + + 32, - COUNT( DISTINCT - 75 ) * - + 77 - - COALESCE ( - 16, + + 94, - 16 ) * 25 + + MIN( 81 ) DIV - 88 ) + 46
----
114

skipif mysql # not compatible
query I rowsort label-4125
SELECT + MAX ( ALL ( 51 ) ) + + 49 + - COALESCE ( + + 32, - COUNT ( DISTINCT - 75 ) * - + 77 - - COALESCE ( - 16, + + 94, - 16 ) * 25 + + MIN ( 81 ) / - 88 ) + 46
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4126
SELECT - CASE + 9 WHEN - - 83 THEN - + 66 / MAX( ALL + 11 ) / + 97 / - + 5 + - 8 + CAST( + - 53 AS DECIMAL ) * + 65 + + 55 + - - ( - - 52 ) * - 52 END, + COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4126
SELECT - CASE + 9 WHEN - - 83 THEN - + 66 / MAX ( ALL + 11 ) / + 97 / - + 5 + - 8 + CAST ( + - 53 AS REAL ) * + 65 + + 55 + - - ( - - 52 ) * - 52 END, + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) col0
----
NULL
0

query I rowsort
SELECT DISTINCT ( + NULLIF ( 73, - + 33 ) ) * 2 AS col1
----
146

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

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

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

query I rowsort
SELECT ALL 35 + + 44 AS col2
----
79

query I rowsort
SELECT - CASE + 48 WHEN - + 63 / + + 9 THEN - - 81 WHEN + + 96 * + 70 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4132
SELECT + 99 + + + 66 + 11 + + NULLIF ( - 46, ( + 94 ) ) + - + 65 * 45 * + - MIN( + - 67 ) AS col0
----
-195845

skipif mysql # not compatible
query I rowsort label-4132
SELECT + 99 + + + 66 + 11 + + NULLIF ( - 46, ( + 94 ) ) + - + 65 * 45 * + - MIN ( + - 67 ) AS col0
----
-195845

query I rowsort
SELECT ALL 81 - + 11 * + - 19
----
290

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT + 87 * + 3 * + COALESCE ( + + 4, - - COALESCE ( 39, 45 ), COUNT( 41 ) ) AS col0
----
1044

skipif mysql # not compatible
query I rowsort label-4134
SELECT + 87 * + 3 * + COALESCE ( + + 4, - - COALESCE ( 39, 45 ), COUNT ( 41 ) ) AS col0
----
1044

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4135
SELECT CAST( + 56 AS SIGNED ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-4135
SELECT CAST ( + 56 AS INTEGER ) AS col0
----
56

query II rowsort
SELECT DISTINCT + 79 AS col0, - 37 * + - 45 * 78
----
79
129870

onlyif mysql # DIV for integer division: 
query I rowsort label-4137
SELECT DISTINCT - ( + 27 ) DIV - 24 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4137
SELECT DISTINCT - ( + 27 ) / - 24 AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4138
SELECT + + COUNT( + 67 ) * + 34 col0, COUNT( * )
----
34
1

skipif mysql # not compatible
query II rowsort label-4138
SELECT + + COUNT ( + 67 ) * + 34 col0, COUNT ( * )
----
34
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT + 21 / COALESCE ( - 65, - 2 / - + ( - 84 ) / - + 2 + 16 ) + - 52 + - CASE - - MAX( ALL - - 10 ) WHEN 56 THEN 53 END * - - 4 + + MAX( ALL - 34 ) * + 77 / - 19 + + 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4139
SELECT + 21 / COALESCE ( - 65, - 2 / - + ( - 84 ) / - + 2 + 16 ) + - 52 + - CASE - - MAX ( ALL - - 10 ) WHEN 56 THEN 53 END * - - 4 + + MAX ( ALL - 34 ) * + 77 / - 19 + + 13 AS col1
----
NULL

query I rowsort
SELECT + - NULLIF ( + 14, 3 ) AS col1
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4141
SELECT 92 * + - CAST( NULL AS SIGNED ) + - - 16 / - + 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4141
SELECT 92 * + - CAST ( NULL AS INTEGER ) + - - 16 / - + 3 AS col2
----
NULL

query I rowsort
SELECT ALL + + 17 * - - 69 AS col2
----
1173

query I rowsort
SELECT DISTINCT + 28 * - 18 + + - ( - - 58 )
----
-562

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT DISTINCT 75 * + - MAX( 49 ) + CASE - 15 WHEN + 66 + COUNT( * ) + - + 81 + + 78 THEN - + 78 + - + COUNT( * ) * 71 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4144
SELECT DISTINCT 75 * + - MAX ( 49 ) + CASE - 15 WHEN + 66 + COUNT ( * ) + - + 81 + + 78 THEN - + 78 + - + COUNT ( * ) * 71 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4145
SELECT DISTINCT + MAX( - 89 ) * COUNT( * ) + + 85 AS col2, - 70 + COUNT( * ) col0
----
-4
-69

skipif mysql # not compatible
query II rowsort label-4145
SELECT DISTINCT + MAX ( - 89 ) * COUNT ( * ) + + 85 AS col2, - 70 + COUNT ( * ) col0
----
-4
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4146
SELECT ALL + + 12 + CAST( NULL AS SIGNED ) * CAST( + MIN( - 42 ) AS SIGNED ) * - - AVG ( 87 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4146
SELECT ALL + + 12 + CAST ( NULL AS INTEGER ) * CAST ( + MIN ( - 42 ) AS INTEGER ) * - - AVG ( 87 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - + 50 + + - 8 AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT DISTINCT + 43 + - 72 + + - COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-4148
SELECT DISTINCT + 43 + - 72 + + - COUNT ( * )
----
-30

query I rowsort
SELECT ALL - 84 + + 60 + 12
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT ALL - 74 + + - NULLIF ( - COUNT( * ), - 97 * - 40 + + - COUNT( * ) * + COALESCE ( 57, + ( 38 ) * - 15 * - AVG ( 0 ) - - 97 + - ( 67 ) / - 77, 58 + NULLIF ( + 43, + MAX( + + ( + 83 ) ) - - 11 ) ) ) col0
----
-73

skipif mysql # not compatible
query I rowsort label-4150
SELECT ALL - 74 + + - NULLIF ( - COUNT ( * ), - 97 * - 40 + + - COUNT ( * ) * + COALESCE ( 57, + ( 38 ) * - 15 * - AVG ( 0 ) - - 97 + - ( 67 ) / - 77, 58 + NULLIF ( + 43, + MAX ( + + ( + 83 ) ) - - 11 ) ) ) col0
----
-73

query I rowsort
SELECT 97 * 91 AS col2
----
8827

onlyif mysql # DIV for integer division: 
query I rowsort label-4152
SELECT ALL - 1 DIV - 82 col1
----
0

skipif mysql # not compatible
query I rowsort label-4152
SELECT ALL - 1 / - 82 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT DISTINCT + 47 + + CASE + + COALESCE ( 58, + 49 ) WHEN - - ( ( + - 26 ) ) - + - 88 * 3 + - - ( - + 55 ) + - - COUNT( * ) + 54 * 96 THEN ( 14 ) WHEN + + NULLIF ( - CASE + + 53 WHEN 54 * + COUNT( * ) * + - 81 - + 98 + - 19 + COUNT( * ) THEN 63 / SUM( 44 ) WHEN COUNT( * ) / MIN( ALL + 34 ) + 10 / COUNT( * ) THEN NULL ELSE NULL END, - 86 ) * - MIN( + 2 ) THEN NULL WHEN 34 THEN NULL END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4153
SELECT DISTINCT + 47 + + CASE + + COALESCE ( 58, + 49 ) WHEN - - ( ( + - 26 ) ) - + - 88 * 3 + - - ( - + 55 ) + - - COUNT ( * ) + 54 * 96 THEN ( 14 ) WHEN + + NULLIF ( - CASE + + 53 WHEN 54 * + COUNT ( * ) * + - 81 - + 98 + - 19 + COUNT ( * ) THEN 63 / SUM ( 44 ) WHEN COUNT ( * ) / MIN ( ALL + 34 ) + 10 / COUNT ( * ) THEN NULL ELSE NULL END, - 86 ) * - MIN ( + 2 ) THEN NULL WHEN 34 THEN NULL END + - COUNT ( * )
----
NULL

query II rowsort
SELECT ALL - 92 + 94 AS col2, 34 + 21
----
2
55

query I rowsort
SELECT DISTINCT 82 + - + 86 * - - 23 col1
----
-1896

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT ALL COUNT( * ) - - - 96 - - 77 - 74 * 40 AS col2
----
-2978

skipif mysql # not compatible
query I rowsort label-4156
SELECT ALL COUNT ( * ) - - - 96 - - 77 - 74 * 40 AS col2
----
-2978

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT 3 + - - NULLIF ( + 80, 20 * + 74 + + + 57 ) + + - COALESCE ( + 39, + + 28 ) * - NULLIF ( + 76, COUNT( * ) ) AS col1
----
3047

skipif mysql # not compatible
query I rowsort label-4157
SELECT 3 + - - NULLIF ( + 80, 20 * + 74 + + + 57 ) + + - COALESCE ( + 39, + + 28 ) * - NULLIF ( + 76, COUNT ( * ) ) AS col1
----
3047

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT ( CASE - COUNT( * ) WHEN - 35 + - 70 THEN NULL WHEN - 14 THEN - 32 / - - COUNT( * ) END ) * + + 20 + 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4158
SELECT ( CASE - COUNT ( * ) WHEN - 35 + - 70 THEN NULL WHEN - 14 THEN - 32 / - - COUNT ( * ) END ) * + + 20 + 38 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT 12 + + - COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-4159
SELECT 12 + + - COUNT ( * )
----
11

query I rowsort
SELECT DISTINCT 75 * - ( 21 )
----
-1575

query I rowsort
SELECT ALL 10 * + 43 AS col1
----
430

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
SELECT 54 * 13 * + - SUM( + 62 ) AS col0
----
-43524

skipif mysql # not compatible
query I rowsort label-4162
SELECT 54 * 13 * + - SUM ( + 62 ) AS col0
----
-43524

onlyif mysql # aggregate syntax: 
query I rowsort label-4163
SELECT - ( 63 ) * 45 * - MIN( + 34 )
----
96390

skipif mysql # not compatible
query I rowsort label-4163
SELECT - ( 63 ) * 45 * - MIN ( + 34 )
----
96390

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

skipif mysql # not compatible
query I rowsort label-4164
SELECT ALL + COUNT ( * ) * - 20 - + - 54 + - 45 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4165
SELECT - 50 DIV - 91 + - 21
----
-21

skipif mysql # not compatible
query I rowsort label-4165
SELECT - 50 / - 91 + - 21
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4166
SELECT MAX( 50 ) + - 21 - - COUNT( * ) * + 85
----
114

skipif mysql # not compatible
query I rowsort label-4166
SELECT MAX ( 50 ) + - 21 - - COUNT ( * ) * + 85
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4167
SELECT DISTINCT - COALESCE ( + COUNT( * ), + 21 DIV + COUNT( - 55 ) DIV + NULLIF ( - 3, + CASE + + SUM( - 40 ) WHEN 51 THEN NULL WHEN - 2 DIV + + CAST( 89 AS SIGNED ) + + - 55 THEN NULL ELSE NULLIF ( ( COUNT( * ) ), - 86 * + COALESCE ( - 75, + - 4 ) + + 8 * COUNT( * ) * 46 + 24 + 82 ) - 51 END - 15 ) + + 34, 9 )
----
-1

skipif mysql # not compatible
query I rowsort label-4167
SELECT DISTINCT - COALESCE ( + COUNT ( * ), + 21 / + COUNT ( - 55 ) / + NULLIF ( - 3, + CASE + + SUM ( - 40 ) WHEN 51 THEN NULL WHEN - 2 / + + CAST ( 89 AS INTEGER ) + + - 55 THEN NULL ELSE NULLIF ( ( COUNT ( * ) ), - 86 * + COALESCE ( - 75, + - 4 ) + + 8 * COUNT ( * ) * 46 + 24 + 82 ) - 51 END - 15 ) + + 34, 9 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4168
SELECT - 86 * + - ( - 82 ) + - + COUNT( * ) + + 60
----
-6993

skipif mysql # not compatible
query I rowsort label-4168
SELECT - 86 * + - ( - 82 ) + - + COUNT ( * ) + + 60
----
-6993

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT ALL COUNT( * ) + - - MIN( + - 47 ) + - - 77 * - MAX( DISTINCT - - 8 ) - - 14 AS col2
----
-648

skipif mysql # not compatible
query I rowsort label-4169
SELECT ALL COUNT ( * ) + - - MIN ( + - 47 ) + - - 77 * - MAX ( DISTINCT - - 8 ) - - 14 AS col2
----
-648

query I rowsort
SELECT DISTINCT + NULLIF ( - + ( + 92 ), - 79 * + NULLIF ( 92, - 95 ) ) + + - 38
----
-130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4171
SELECT ALL - - CAST( - 53 AS SIGNED )
----
-53

skipif mysql # not compatible
query I rowsort label-4171
SELECT ALL - - CAST ( - 53 AS INTEGER )
----
-53

query I rowsort
SELECT 99 + + + 6 + - + 11
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4173
SELECT ALL + ( + - MAX( + 40 ) ) + + ( + 69 ) * - - 68 * 38
----
178256

skipif mysql # not compatible
query I rowsort label-4173
SELECT ALL + ( + - MAX ( + 40 ) ) + + ( + 69 ) * - - 68 * 38
----
178256

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT ALL - - 89 + + 16 + - + 12 * 21 * + COUNT( * )
----
-147

skipif mysql # not compatible
query I rowsort label-4174
SELECT ALL - - 89 + + 16 + - + 12 * 21 * + COUNT ( * )
----
-147

query I rowsort
SELECT DISTINCT 5 + + 51 * 68 * - - COALESCE ( + + 41, - - 17 ) + - - 87 + - + 34
----
142246

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

skipif mysql # not compatible
query I rowsort label-4176
SELECT CAST ( NULL AS INTEGER ) + + 12 * 1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT DISTINCT + + 60 + - - COUNT( * ) + 49 AS col0
----
110

skipif mysql # not compatible
query I rowsort label-4177
SELECT DISTINCT + + 60 + - - COUNT ( * ) + 49 AS col0
----
110

query I rowsort
SELECT ALL - 55 * - 44
----
2420

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT DISTINCT SUM( ALL + 11 ) - + + COALESCE ( + 23, + + 0 * + 54 * - 18 * - + ( - - 43 ) + - + 90 + + - 39 ) + 52 AS col2
----
40

skipif mysql # not compatible
query I rowsort label-4180
SELECT DISTINCT SUM ( ALL + 11 ) - + + COALESCE ( + 23, + + 0 * + 54 * - 18 * - + ( - - 43 ) + - + 90 + + - 39 ) + 52 AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT DISTINCT - COUNT( DISTINCT + + 62 ) - - 69
----
68

skipif mysql # not compatible
query I rowsort label-4181
SELECT DISTINCT - COUNT ( DISTINCT + + 62 ) - - 69
----
68

query I rowsort
SELECT 22 + - + 1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4183
SELECT SUM( - 53 ) * - + 6
----
318

skipif mysql # not compatible
query I rowsort label-4183
SELECT SUM ( - 53 ) * - + 6
----
318

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4184
SELECT 38 + SUM( + + 46 ) DIV - COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-4184
SELECT 38 + SUM ( + + 46 ) / - COUNT ( * )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT COUNT( * ) + 43 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-4185
SELECT COUNT ( * ) + 43 AS col0
----
44

query II rowsort
SELECT ALL 93 col0, - 29 AS col0
----
93
-29

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

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

query I rowsort
SELECT 22 * 79 * 71
----
123398

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT 57 + + COUNT( * ) * + + 8 * + 29
----
289

skipif mysql # not compatible
query I rowsort label-4189
SELECT 57 + + COUNT ( * ) * + + 8 * + 29
----
289

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4190
SELECT ALL - 71 * 14 DIV - + COUNT( * )
----
994

skipif mysql # not compatible
query I rowsort label-4190
SELECT ALL - 71 * 14 / - + COUNT ( * )
----
994

query I rowsort
SELECT 38 + 86 AS col2
----
124

query II rowsort
SELECT ALL 4 AS col1, 95
----
4
95

query I rowsort
SELECT ALL + 44 * 54
----
2376

query I rowsort
SELECT 47 * - 19 col2
----
-893

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT ALL + 8 + CASE MAX( 70 ) WHEN + 68 - + 74 THEN NULL WHEN + 21 * 25 THEN + - 60 + - 35 * + 77 ELSE + + 99 END
----
107

skipif mysql # not compatible
query I rowsort label-4196
SELECT ALL + 8 + CASE MAX ( 70 ) WHEN + 68 - + 74 THEN NULL WHEN + 21 * 25 THEN + - 60 + - 35 * + 77 ELSE + + 99 END
----
107

query II rowsort
SELECT - 69, + 73 col2
----
-69
73

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4199
SELECT ALL + 40 AS col2, - 22 + - SUM( - - 58 )
----
40
-80

skipif mysql # not compatible
query II rowsort label-4199
SELECT ALL + 40 AS col2, - 22 + - SUM ( - - 58 )
----
40
-80

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

skipif mysql # not compatible
query I rowsort label-4200
SELECT - 8 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT ALL - 86 AS col2, 78
----
-86
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4202
SELECT - 17 * - + ( 82 ) + AVG ( ALL 37 ) / CAST( NULL AS SIGNED ) * + ( - COUNT( * ) ) AS col0, 65 col2
----
NULL
65

skipif mysql # not compatible
query II rowsort label-4202
SELECT - 17 * - + ( 82 ) + AVG ( ALL 37 ) / CAST ( NULL AS INTEGER ) * + ( - COUNT ( * ) ) AS col0, 65 col2
----
NULL
65

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

skipif mysql # not compatible
query I rowsort label-4203
SELECT ALL - 63 * + + COUNT ( * ) + 99 - + COUNT ( * ) AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT - 75 * - COUNT( ALL 57 ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-4204
SELECT - 75 * - COUNT ( ALL 57 ) AS col0
----
75

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

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

query I rowsort
SELECT DISTINCT - 67 * - - 70
----
-4690

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4207
SELECT ALL + COUNT( * ) * - 17 DIV - + NULLIF ( 39, - - 52 ) + - 99 + - 67
----
-166

skipif mysql # not compatible
query I rowsort label-4207
SELECT ALL + COUNT ( * ) * - 17 / - + NULLIF ( 39, - - 52 ) + - 99 + - 67
----
-166

onlyif mysql # aggregate syntax: 
query II rowsort label-4208
SELECT NULLIF ( 78, + 27 * 34 * - 45 ), - COUNT( * ) - - 2 AS col1
----
78
1

skipif mysql # not compatible
query II rowsort label-4208
SELECT NULLIF ( 78, + 27 * 34 * - 45 ), - COUNT ( * ) - - 2 AS col1
----
78
1

query I rowsort
SELECT + 33 + + 33 AS col0
----
66

query I rowsort
SELECT + 38 * + + 98 * - COALESCE ( 32, - 2 - + - ( + 75 ), - 39 )
----
-119168

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

query II rowsort
SELECT + 77 * - 30 * + 16 col1, 46 + - 33 AS col1
----
-36960
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4213
SELECT - - COUNT( * ) * - COUNT( * ) + + NULLIF ( + + 79, + 17 ) + ( + - 77 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4213
SELECT - - COUNT ( * ) * - COUNT ( * ) + + NULLIF ( + + 79, + 17 ) + ( + - 77 ) AS col0
----
1

query I rowsort
SELECT DISTINCT + 62 * + + 67 - + - 0 col0
----
4154

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT 47 * - 95 * + 47 - + - 34 + + - CASE COUNT( + 32 ) WHEN - + 0 * + COUNT( * ) THEN NULL WHEN 68 THEN + + ( 33 ) * + 67 + - ( - COUNT( * ) ) - - COUNT( * ) ELSE + COUNT( 5 ) + + NULLIF ( + - 98, - 30 * + 37 + - COUNT( * ) ) + - 34 * ( 51 ) END
----
-207990

skipif mysql # not compatible
query I rowsort label-4218
SELECT 47 * - 95 * + 47 - + - 34 + + - CASE COUNT ( + 32 ) WHEN - + 0 * + COUNT ( * ) THEN NULL WHEN 68 THEN + + ( 33 ) * + 67 + - ( - COUNT ( * ) ) - - COUNT ( * ) ELSE + COUNT ( 5 ) + + NULLIF ( + - 98, - 30 * + 37 + - COUNT ( * ) ) + - 34 * ( 51 ) END
----
-207990

query II rowsort
SELECT ALL + 87, - 3 * - + 49 * + 69 AS col2
----
87
10143

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT + NULLIF ( 78, COUNT( * ) )
----
78

skipif mysql # not compatible
query I rowsort label-4220
SELECT + NULLIF ( 78, COUNT ( * ) )
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4221
SELECT + CAST( + + 45 AS SIGNED ) DIV + COUNT( DISTINCT + 3 ) AS col1, - 14
----
45
-14

skipif mysql # not compatible
query II rowsort label-4221
SELECT + CAST ( + + 45 AS INTEGER ) / + COUNT ( DISTINCT + 3 ) AS col1, - 14
----
45
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-4222
SELECT + 82 DIV + + 78 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4222
SELECT + 82 / + + 78 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query IIII rowsort label-4223
SELECT 47 * + - 62 / - + 9 + 31 + - 63 / - CAST( NULL AS SIGNED ) col1, 77 AS col2, - COUNT( * ) * 62, - 57 col2
----
NULL
77
-62
-57

skipif mysql # not compatible
query IIII rowsort label-4223
SELECT 47 * + - 62 / - + 9 + 31 + - 63 / - CAST ( NULL AS INTEGER ) col1, 77 AS col2, - COUNT ( * ) * 62, - 57 col2
----
NULL
77
-62
-57

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4224
SELECT - 59 * + 9 * CASE - 38 WHEN + AVG ( DISTINCT 70 ) THEN NULL WHEN + + 0 * 72 THEN + - 1 - + 42 * + 49 * 94 WHEN - 31 * + 14 THEN CAST( + ( - + 60 ) AS DECIMAL ) END * + COALESCE ( - 90, + MAX( DISTINCT + - 63 ) + + - 86, 54 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4224
SELECT - 59 * + 9 * CASE - 38 WHEN + AVG ( DISTINCT 70 ) THEN NULL WHEN + + 0 * 72 THEN + - 1 - + 42 * + 49 * 94 WHEN - 31 * + 14 THEN CAST ( + ( - + 60 ) AS REAL ) END * + COALESCE ( - 90, + MAX ( DISTINCT + - 63 ) + + - 86, 54 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4225
SELECT ALL 64 * - - CAST( + NULLIF ( + AVG ( 49 ), - - CASE 18 WHEN 47 + 71 THEN NULL WHEN - - 38 * - - COALESCE ( - CAST( + 95 AS DECIMAL ), - COUNT( * ) ) + 18 THEN NULL ELSE - 49 + - CASE + CASE + + 81 WHEN + 68 THEN NULL WHEN + CAST( NULL AS SIGNED ) * + 49 THEN + 10 WHEN + 2 * + + COUNT( * ) + + 13 THEN - CAST( NULL AS SIGNED ) ELSE 10 + CAST( + CAST( 86 AS SIGNED ) - 73 AS DECIMAL ) END WHEN - 96 THEN 17 + MAX( + 76 + + 0 ) / + 41 ELSE NULL END * - COUNT( * ) END ) AS SIGNED ) AS col0
----
3136

skipif mysql # not compatible
query I rowsort label-4225
SELECT ALL 64 * - - CAST ( + NULLIF ( + AVG ( 49 ), - - CASE 18 WHEN 47 + 71 THEN NULL WHEN - - 38 * - - COALESCE ( - CAST ( + 95 AS REAL ), - COUNT ( * ) ) + 18 THEN NULL ELSE - 49 + - CASE + CASE + + 81 WHEN + 68 THEN NULL WHEN + CAST ( NULL AS INTEGER ) * + 49 THEN + 10 WHEN + 2 * + + COUNT ( * ) + + 13 THEN - CAST ( NULL AS INTEGER ) ELSE 10 + CAST ( + CAST ( 86 AS INTEGER ) - 73 AS REAL ) END WHEN - 96 THEN 17 + MAX ( + 76 + + 0 ) / + 41 ELSE NULL END * - COUNT ( * ) END ) AS INTEGER ) AS col0
----
3136

query I rowsort
SELECT - NULLIF ( + 35, + 51 )
----
-35

query II rowsort
SELECT 8, - 10 * - - 67 AS col1
----
8
-670

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT ALL COUNT( ALL - 51 )
----
1

skipif mysql # not compatible
query I rowsort label-4228
SELECT ALL COUNT ( ALL - 51 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4229
SELECT DISTINCT 93 AS col2, CASE - 80 WHEN - 77 - + - MAX( DISTINCT 8 ) THEN - 84 * + - AVG ( ALL - 45 ) + + 64 * 18 - + - 69 + - + 46 * + - 64 WHEN + 96 THEN - 65 * - + 45 - COUNT( * ) END
----
93
NULL

skipif mysql # not compatible
query II rowsort label-4229
SELECT DISTINCT 93 AS col2, CASE - 80 WHEN - 77 - + - MAX ( DISTINCT 8 ) THEN - 84 * + - AVG ( ALL - 45 ) + + 64 * 18 - + - 69 + - + 46 * + - 64 WHEN + 96 THEN - 65 * - + 45 - COUNT ( * ) END
----
93
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4230
SELECT DISTINCT MIN( + 29 ) * 76 * + 59, + 86 + COALESCE ( + 76, - + ( - 73 ) * - 36 + - + COUNT( * ) * CAST( NULL AS SIGNED ) ) AS col2
----
130036
162

skipif mysql # not compatible
query II rowsort label-4230
SELECT DISTINCT MIN ( + 29 ) * 76 * + 59, + 86 + COALESCE ( + 76, - + ( - 73 ) * - 36 + - + COUNT ( * ) * CAST ( NULL AS INTEGER ) ) AS col2
----
130036
162

query I rowsort
SELECT ALL NULLIF ( - COALESCE ( ( + - 10 ), - - 93 ), - - 71 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4232
SELECT - SUM( ALL 54 ) * + 66 * - 98
----
349272

skipif mysql # not compatible
query I rowsort label-4232
SELECT - SUM ( ALL 54 ) * + 66 * - 98
----
349272

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT ALL CASE + 39 WHEN + - 71 / - 54 + ( - 12 ) * SUM( 72 ) - - 86 THEN NULL ELSE + 26 END + + 63 * + COUNT( * ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-4233
SELECT ALL CASE + 39 WHEN + - 71 / - 54 + ( - 12 ) * SUM ( 72 ) - - 86 THEN NULL ELSE + 26 END + + 63 * + COUNT ( * ) AS col2
----
89

query I rowsort
SELECT + 4 + 52 - + ( + - 34 ) * 6 col2
----
260

query I rowsort
SELECT + 80 + - 76
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-4236
SELECT ALL COUNT( * ), NULLIF ( + + 57, 96 * - 92 + - COUNT( * ) ) * 53 AS col0
----
1
3021

skipif mysql # not compatible
query II rowsort label-4236
SELECT ALL COUNT ( * ), NULLIF ( + + 57, 96 * - 92 + - COUNT ( * ) ) * 53 AS col0
----
1
3021

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4237
SELECT ALL + 13 DIV COUNT( * ) AS col2
----
13

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4238
SELECT + SUM( 41 ) + - COUNT( * ) * 39 - - COUNT( * ) DIV - 6
----
2

skipif mysql # not compatible
query I rowsort label-4238
SELECT + SUM ( 41 ) + - COUNT ( * ) * 39 - - COUNT ( * ) / - 6
----
2

query I rowsort
SELECT - 36 + + 72 col1
----
36

query I rowsort
SELECT ALL - 15 + 42 col2
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4241
SELECT - - 10 + + 70 * - 52 * - + 38 + + - ( + 16 ) + - MAX( - CAST( + - 82 AS SIGNED ) )
----
138232

skipif mysql # not compatible
query I rowsort label-4241
SELECT - - 10 + + 70 * - 52 * - + 38 + + - ( + 16 ) + - MAX ( - CAST ( + - 82 AS INTEGER ) )
----
138232

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT ALL + - COUNT( * ) + - - NULLIF ( - - 43, 66 * 85 * - 28 * - 84 ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-4242
SELECT ALL + - COUNT ( * ) + - - NULLIF ( - - 43, 66 * 85 * - 28 * - 84 ) AS col2
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4243
SELECT DISTINCT + 13 + COUNT( * ) + + CAST( NULL AS SIGNED ) + 21 * - + 6 + - 33 * + SUM( + 74 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4243
SELECT DISTINCT + 13 + COUNT ( * ) + + CAST ( NULL AS INTEGER ) + 21 * - + 6 + - 33 * + SUM ( + 74 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4244
SELECT - 65 AS col2, ( COALESCE ( 8, 58, + COUNT( * ) ) ) - + 94 + - - COUNT( * ) * - - ( + 1 ) * 75 DIV + ( + 79 ) AS col1
----
-65
-86

skipif mysql # not compatible
query II rowsort label-4244
SELECT - 65 AS col2, ( COALESCE ( 8, 58, + COUNT ( * ) ) ) - + 94 + - - COUNT ( * ) * - - ( + 1 ) * 75 / + ( + 79 ) AS col1
----
-65
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-4245
SELECT + - 22 DIV + 62 + - - ( - 11 ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-4245
SELECT + - 22 / + 62 + - - ( - 11 ) AS col1
----
-11

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

skipif mysql # not compatible
query I rowsort label-4246
SELECT - 39 + 69 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-4247
SELECT + MIN ( + - ( - 95 ) )
----
95

query I rowsort
SELECT + 22 + + 95
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT DISTINCT + - MIN( DISTINCT 67 )
----
-67

skipif mysql # not compatible
query I rowsort label-4249
SELECT DISTINCT + - MIN ( DISTINCT 67 )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT DISTINCT + CASE COALESCE ( + 32, 98 * COUNT( * ), 88 - - ( + 74 ) / 46 / + 79 + - 97 - - + 41 + - + COUNT( * ) + - ( + - 52 ) * - - 6 * - + 61 ) WHEN 51 * 47 * - - 30 THEN 15 WHEN COUNT( * ) * + 77 THEN COUNT( * ) ELSE - 92 END
----
-92

skipif mysql # not compatible
query I rowsort label-4250
SELECT DISTINCT + CASE COALESCE ( + 32, 98 * COUNT ( * ), 88 - - ( + 74 ) / 46 / + 79 + - 97 - - + 41 + - + COUNT ( * ) + - ( + - 52 ) * - - 6 * - + 61 ) WHEN 51 * 47 * - - 30 THEN 15 WHEN COUNT ( * ) * + 77 THEN COUNT ( * ) ELSE - 92 END
----
-92

query I rowsort
SELECT ALL - 86 / - 95 - - - CASE + - 30 WHEN + + 88 * - 30 + - 23 THEN - + 7 ELSE NULL END
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4253
SELECT - - CAST( + - SUM( ALL + 14 ) AS SIGNED ) + - - 7
----
-7

skipif mysql # not compatible
query I rowsort label-4253
SELECT - - CAST ( + - SUM ( ALL + 14 ) AS INTEGER ) + - - 7
----
-7

query I rowsort
SELECT + + 84 + - 39 - - 47
----
92

query I rowsort
SELECT ALL 41 * - 34 col1
----
-1394

query I rowsort
SELECT DISTINCT + 61 * + - 22 * 51 * - 29
----
1984818

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4257
SELECT 70 * - 39 * + 53 + 6 + + 72 * - - NULLIF ( 97, - CAST( NULL AS SIGNED ) * - 95 )
----
-137700

skipif mysql # not compatible
query I rowsort label-4257
SELECT 70 * - 39 * + 53 + 6 + + 72 * - - NULLIF ( 97, - CAST ( NULL AS INTEGER ) * - 95 )
----
-137700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4258
SELECT + SUM( - 34 ) DIV 66 col1
----
0

skipif mysql # not compatible
query I rowsort label-4258
SELECT + SUM ( - 34 ) / 66 col1
----
0

query I rowsort
SELECT ALL ( + 68 ) * 51 AS col0
----
3468

onlyif mysql # aggregate syntax: 
query I rowsort label-4260
SELECT + SUM( DISTINCT - - 45 ) * COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-4260
SELECT + SUM ( DISTINCT - - 45 ) * COUNT ( * )
----
45

query I rowsort
SELECT + 35 + - 65 AS col0
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4262
SELECT CASE - + COALESCE ( - - 5, + + 64 ) WHEN 51 * + + CAST( NULL AS SIGNED ) THEN - 70 WHEN AVG ( DISTINCT + 94 ) + + 71 * MIN( - 0 ) THEN + - ( + 83 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4262
SELECT CASE - + COALESCE ( - - 5, + + 64 ) WHEN 51 * + + CAST ( NULL AS INTEGER ) THEN - 70 WHEN AVG ( DISTINCT + 94 ) + + 71 * MIN ( - 0 ) THEN + - ( + 83 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT CASE - MIN( - + 62 ) WHEN + 21 * + NULLIF ( + + 48, + 8 * + 68 ) + + 56 + - 70 * + 31 + + 31 * - 72 THEN - - 45 WHEN - - 9 * + AVG ( + - 66 ) + - 55 THEN COUNT( * ) ELSE COUNT( * ) + - 88 END AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-4263
SELECT CASE - MIN ( - + 62 ) WHEN + 21 * + NULLIF ( + + 48, + 8 * + 68 ) + + 56 + - 70 * + 31 + + 31 * - 72 THEN - - 45 WHEN - - 9 * + AVG ( + - 66 ) + - 55 THEN COUNT ( * ) ELSE COUNT ( * ) + - 88 END AS col1
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4264
SELECT DISTINCT + 52 * 17 * + COALESCE ( + 5, + + COUNT( * ) + 98, - + 62 * + + 33 * - COUNT( * ) + ( 13 ) - - CAST( - + 13 AS SIGNED ) + - 77 + + CASE - 67 WHEN - NULLIF ( - + 17, + 14 ) THEN + 98 WHEN + 87 THEN NULL WHEN - 20 * - COALESCE ( - 17, + 69 + + - 99 * + CAST( NULL AS SIGNED ) ) THEN 60 ELSE NULL END ) AS col0
----
4420

skipif mysql # not compatible
query I rowsort label-4264
SELECT DISTINCT + 52 * 17 * + COALESCE ( + 5, + + COUNT ( * ) + 98, - + 62 * + + 33 * - COUNT ( * ) + ( 13 ) - - CAST ( - + 13 AS INTEGER ) + - 77 + + CASE - 67 WHEN - NULLIF ( - + 17, + 14 ) THEN + 98 WHEN + 87 THEN NULL WHEN - 20 * - COALESCE ( - 17, + 69 + + - 99 * + CAST ( NULL AS INTEGER ) ) THEN 60 ELSE NULL END ) AS col0
----
4420

onlyif mysql # aggregate syntax: 
query I rowsort label-4265
SELECT DISTINCT - CASE - 97 WHEN + 7 * - - 69 THEN - + 26 * + + CASE 21 WHEN 27 THEN ( - 3 ) ELSE - - 14 END / - 44 WHEN + - ( + 88 ) THEN + 51 / 62 + - 38 + - + COUNT( * ) + - 13 * - 89 / + CASE - - COUNT( * ) WHEN - + 49 THEN - 60 / + - 24 ELSE + 97 - + 56 + 94 * - 90 * COUNT( * ) END END * 63
----
NULL

skipif mysql # not compatible
query I rowsort label-4265
SELECT DISTINCT - CASE - 97 WHEN + 7 * - - 69 THEN - + 26 * + + CASE 21 WHEN 27 THEN ( - 3 ) ELSE - - 14 END / - 44 WHEN + - ( + 88 ) THEN + 51 / 62 + - 38 + - + COUNT ( * ) + - 13 * - 89 / + CASE - - COUNT ( * ) WHEN - + 49 THEN - 60 / + - 24 ELSE + 97 - + 56 + 94 * - 90 * COUNT ( * ) END END * 63
----
NULL

query I rowsort
SELECT ALL + 43 * + 15
----
645

query I rowsort
SELECT 7 * 46 + - + 32 * - + 80
----
2882

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4268
SELECT ALL 87 * - + 33 DIV - - COUNT( * )
----
-2871

skipif mysql # not compatible
query I rowsort label-4268
SELECT ALL 87 * - + 33 / - - COUNT ( * )
----
-2871

query I rowsort
SELECT + ( - 6 ) + + + 21
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4270
SELECT ALL + 91 * - 55 + + COUNT( * )
----
-5004

skipif mysql # not compatible
query I rowsort label-4270
SELECT ALL + 91 * - 55 + + COUNT ( * )
----
-5004

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT + 4 * - 26 * COUNT( * ) * + + 11 * 73
----
-83512

skipif mysql # not compatible
query I rowsort label-4271
SELECT + 4 * - 26 * COUNT ( * ) * + + 11 * 73
----
-83512

query I rowsort
SELECT + 10 + - 79 + 94 col2
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-4273
SELECT DISTINCT 16 DIV + 20 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4273
SELECT DISTINCT 16 / + 20 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT + SUM( DISTINCT ( - ( + 45 ) ) ) + 0 * - 73 * - 4 AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-4274
SELECT + SUM ( DISTINCT ( - ( + 45 ) ) ) + 0 * - 73 * - 4 AS col1
----
-45

query II rowsort
SELECT ALL 92 + + 80, 82 * - - 49 AS col0
----
172
4018

query I rowsort
SELECT ALL 45 + + 85 AS col2
----
130

query I rowsort
SELECT ALL ( - + 96 ) * - 11 AS col2
----
1056

query I rowsort
SELECT ALL ( - 75 ) col0
----
-75

query I rowsort
SELECT ALL + 0 * - 62 * + NULLIF ( + ( - - 64 ), - 35 ) * - 76
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4280
SELECT 5 * + - 28 - - 4 + + 10 - + 14 * CAST( NULL AS SIGNED ) * - - CAST( + - 59 AS SIGNED ) + + + 44 + - - 32 + - 66 * - COUNT( * ), 87 + + + 25 AS col2
----
NULL
112

skipif mysql # not compatible
query II rowsort label-4280
SELECT 5 * + - 28 - - 4 + + 10 - + 14 * CAST ( NULL AS INTEGER ) * - - CAST ( + - 59 AS INTEGER ) + + + 44 + - - 32 + - 66 * - COUNT ( * ), 87 + + + 25 AS col2
----
NULL
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4281
SELECT ALL COALESCE ( - 4, 31 + + 9, + CAST( + 61 AS SIGNED ) ) + COUNT( * ) * - SUM( ALL + - 59 )
----
55

skipif mysql # not compatible
query I rowsort label-4281
SELECT ALL COALESCE ( - 4, 31 + + 9, + CAST ( + 61 AS INTEGER ) ) + COUNT ( * ) * - SUM ( ALL + - 59 )
----
55

query II rowsort
SELECT DISTINCT + 51 - + 75, - 21 AS col1
----
-24
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4283
SELECT COUNT( * ) * - ( - 68 ) * - 13 AS col2
----
-884

skipif mysql # not compatible
query I rowsort label-4283
SELECT COUNT ( * ) * - ( - 68 ) * - 13 AS col2
----
-884

onlyif mysql # aggregate syntax: 
query II rowsort label-4284
SELECT - MAX( - 8 ) AS col1, - ( - 55 )
----
8
55

skipif mysql # not compatible
query II rowsort label-4284
SELECT - MAX ( - 8 ) AS col1, - ( - 55 )
----
8
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT - SUM( + COALESCE ( + + 37, + - 10 ) ) col1
----
-37

skipif mysql # not compatible
query I rowsort label-4285
SELECT - SUM ( + COALESCE ( + + 37, + - 10 ) ) col1
----
-37

query I rowsort
SELECT DISTINCT - 35 - - 7 * + 7 AS col2
----
14

query I rowsort
SELECT ALL - - 99 * - 33 AS col0
----
-3267

query I rowsort
SELECT ALL + ( + 30 ) * - + 0 * 65 * - 72 + - 74 + - 28 * 30 + + 49 * - 1 - 96 AS col1
----
-1059

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT 77 * + COALESCE ( + - SUM( DISTINCT - 26 ), + 9, + 97 * - 5 * - 45 + - - 47 ) AS col1
----
2002

skipif mysql # not compatible
query I rowsort label-4289
SELECT 77 * + COALESCE ( + - SUM ( DISTINCT - 26 ), + 9, + 97 * - 5 * - 45 + - - 47 ) AS col1
----
2002

query I rowsort
SELECT ALL + 16 * - + 68 * + 56 AS col0
----
-60928

query II rowsort
SELECT ALL - 77 AS col2, 66 AS col1
----
-77
66

query II rowsort
SELECT + 22, - 16 AS col2
----
22
-16

query I rowsort
SELECT 22 * + 17
----
374

query I rowsort
SELECT ALL + NULLIF ( + 92, 24 ) + + 36
----
128

query I rowsort
SELECT DISTINCT + ( ( + 93 ) ) + 31
----
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4296
SELECT - CAST( 37 AS SIGNED ) * COUNT( * ) * CAST( COUNT( * ) AS SIGNED ) - + - CASE - 36 WHEN + - NULLIF ( - 2, + + 37 + ( + 76 ) * - 69 ) * + 92 THEN + - 67 * 91 + 67 DIV + - 0 WHEN 18 + COUNT( * ) * - ( - 90 ) * - AVG ( + - 39 ) DIV NULLIF ( + CASE COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) WHEN - 87 THEN 90 WHEN + 56 * + 71 + - ( CASE 66 WHEN + 62 THEN - COUNT( * ) WHEN 45 * 6 THEN NULL WHEN - 0 THEN NULL END ) * - 48 THEN 12 ELSE + 33 END, + COUNT( * ) ) DIV 13 THEN NULL ELSE COALESCE ( - 52, 16 + + ( - COALESCE ( 36, 34 + + 69 ) ) ) * - 97 END
----
5007

skipif mysql # not compatible
query I rowsort label-4296
SELECT - CAST ( 37 AS INTEGER ) * COUNT ( * ) * CAST ( COUNT ( * ) AS INTEGER ) - + - CASE - 36 WHEN + - NULLIF ( - 2, + + 37 + ( + 76 ) * - 69 ) * + 92 THEN + - 67 * 91 + 67 / + - 0 WHEN 18 + COUNT ( * ) * - ( - 90 ) * - AVG ( + - 39 ) / NULLIF ( + CASE COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) WHEN - 87 THEN 90 WHEN + 56 * + 71 + - ( CASE 66 WHEN + 62 THEN - COUNT ( * ) WHEN 45 * 6 THEN NULL WHEN - 0 THEN NULL END ) * - 48 THEN 12 ELSE + 33 END, + COUNT ( * ) ) / 13 THEN NULL ELSE COALESCE ( - 52, 16 + + ( - COALESCE ( 36, 34 + + 69 ) ) ) * - 97 END
----
5007

query I rowsort
SELECT ALL 11 * 98 AS col0
----
1078

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4298
SELECT COUNT( * ) * ( - + 54 ) DIV - 59 * - 3
----
0

skipif mysql # not compatible
query I rowsort label-4298
SELECT COUNT ( * ) * ( - + 54 ) / - 59 * - 3
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4299
SELECT ALL + 39 + + - 53 * - NULLIF ( CASE - 17 WHEN + - 65 / - - 80 + - - 90 THEN + - 31 WHEN + 40 / 36 * 30 THEN - 33 END, - 4 * + - 23 * - - 70 * COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4299
SELECT ALL + 39 + + - 53 * - NULLIF ( CASE - 17 WHEN + - 65 / - - 80 + - - 90 THEN + - 31 WHEN + 40 / 36 * 30 THEN - 33 END, - 4 * + - 23 * - - 70 * COUNT ( * ) )
----
NULL

query I rowsort
SELECT ALL - ( - 33 ) + - - 62 AS col1
----
95

query I rowsort
SELECT 31 + + ( + + 78 ) + + 17 * + 70 AS col0
----
1299

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4302
SELECT 57 AS col1, - 85 * 95 * - - CASE - + 70 WHEN ( 26 ) * ( - - 61 ) + - COUNT( 20 ) THEN + 47 + 51 * - - CAST( + - NULLIF ( ( + 11 ), + 94 ) AS SIGNED ) ELSE - 94 * + 13 - - - 16 END
----
57
9996850

skipif mysql # not compatible
query II rowsort label-4302
SELECT 57 AS col1, - 85 * 95 * - - CASE - + 70 WHEN ( 26 ) * ( - - 61 ) + - COUNT ( 20 ) THEN + 47 + 51 * - - CAST ( + - NULLIF ( ( + 11 ), + 94 ) AS INTEGER ) ELSE - 94 * + 13 - - - 16 END
----
57
9996850

query I rowsort
SELECT ALL + 12 * + + 81 AS col0
----
972

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4304
SELECT 37 * + CASE CAST( NULL AS SIGNED ) WHEN + COUNT( * ) THEN 13 WHEN - 87 THEN NULL END * 50 + + 33 + - - 35 / + 97 * + 17 AS col0, - 35 AS col0
----
NULL
-35

skipif mysql # not compatible
query II rowsort label-4304
SELECT 37 * + CASE CAST ( NULL AS INTEGER ) WHEN + COUNT ( * ) THEN 13 WHEN - 87 THEN NULL END * 50 + + 33 + - - 35 / + 97 * + 17 AS col0, - 35 AS col0
----
NULL
-35

query I rowsort
SELECT 73 * - 56
----
-4088

query I rowsort
SELECT ALL 69 + + 35 AS col2
----
104

query I rowsort
SELECT ALL 45 + 12 AS col2
----
57

query I rowsort
SELECT DISTINCT - NULLIF ( - - 55, 26 * - + 75 ) * 39 * 96 * 2
----
-411840

query I rowsort
SELECT DISTINCT - 95 + + 82 * 22
----
1709

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT DISTINCT - COUNT( DISTINCT - - 89 ) + + 3
----
2

skipif mysql # not compatible
query I rowsort label-4310
SELECT DISTINCT - COUNT ( DISTINCT - - 89 ) + + 3
----
2

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

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

query I rowsort
SELECT 51 - 10
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT - SUM( ALL + 27 ) * - - 68
----
-1836

skipif mysql # not compatible
query I rowsort label-4313
SELECT - SUM ( ALL + 27 ) * - - 68
----
-1836

onlyif mysql # DIV for integer division: 
query I rowsort label-4314
SELECT ALL + 63 DIV + 42
----
1

skipif mysql # not compatible
query I rowsort label-4314
SELECT ALL + 63 / + 42
----
1

query II rowsort
SELECT CASE - 15 WHEN 9 THEN + 61 - - - 5 END + - 1 AS col2, + 22 * 42
----
NULL
924

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4316
SELECT ALL COALESCE ( + CAST( 58 AS SIGNED ), 26 )
----
58

skipif mysql # not compatible
query I rowsort label-4316
SELECT ALL COALESCE ( + CAST ( 58 AS INTEGER ), 26 )
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-4317
SELECT 90, ( COUNT( * ) ) * + - 54 AS col0
----
90
-54

skipif mysql # not compatible
query II rowsort label-4317
SELECT 90, ( COUNT ( * ) ) * + - 54 AS col0
----
90
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-4318
SELECT ALL SUM( - 24 ) - - 42 + + 79 + + 64 + 13 * - 77 * - 55 * + - 64, + 66 col0
----
-3523359
66

skipif mysql # not compatible
query II rowsort label-4318
SELECT ALL SUM ( - 24 ) - - 42 + + 79 + + 64 + 13 * - 77 * - 55 * + - 64, + 66 col0
----
-3523359
66

query I rowsort
SELECT 30 * 63 AS col1
----
1890

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4320
SELECT - CAST( - 50 AS SIGNED )
----
50

skipif mysql # not compatible
query I rowsort label-4320
SELECT - CAST ( - 50 AS INTEGER )
----
50

query I rowsort
SELECT - 43 + - 1 * + - 39 * - 53
----
-2110

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT ALL 18 * CASE + 31 WHEN + + COUNT( * ) THEN - + 90 * - NULLIF ( - 27, NULLIF ( - 82, + 63 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4322
SELECT ALL 18 * CASE + 31 WHEN + + COUNT ( * ) THEN - + 90 * - NULLIF ( - 27, NULLIF ( - 82, + 63 ) ) END
----
NULL

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

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

query I rowsort
SELECT DISTINCT 45 * + - 3 AS col2
----
-135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4325
SELECT - CASE WHEN + 34 IS NOT NULL THEN ( 99 ) + - + MIN( DISTINCT - 40 ) + + + 44 WHEN NULL BETWEEN 7 AND + + COALESCE ( - 54, 67 + 0 * - - COUNT( * ) ) THEN NULL END DIV + 18 + + - 85 + 36 + - ( COUNT( * ) ) DIV 46 + + 60 * 58 + + - 37 * - - 27 + + 47 * + + 88 * + + 37 * + 35
----
5358542

skipif mysql # not compatible
query I rowsort label-4325
SELECT - CASE WHEN + 34 IS NOT NULL THEN ( 99 ) + - + MIN ( DISTINCT - 40 ) + + + 44 WHEN NULL BETWEEN 7 AND + + COALESCE ( - 54, 67 + 0 * - - COUNT ( * ) ) THEN NULL END / + 18 + + - 85 + 36 + - ( COUNT ( * ) ) / 46 + + 60 * 58 + + - 37 * - - 27 + + 47 * + + 88 * + + 37 * + 35
----
5358542

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4327
SELECT 33 * - NULLIF ( - 13, - 77 + COUNT( * ) ) col0
----
429

skipif mysql # not compatible
query I rowsort label-4327
SELECT 33 * - NULLIF ( - 13, - 77 + COUNT ( * ) ) col0
----
429

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4328
SELECT - - COALESCE ( - 21, - MAX( ALL + 77 ) * - - ( 23 ) ) DIV COUNT( * ) * MIN( - COALESCE ( - 59, - 3, 77, + 7 ) ) + + 85 AS col1
----
-1154

skipif mysql # not compatible
query I rowsort label-4328
SELECT - - COALESCE ( - 21, - MAX ( ALL + 77 ) * - - ( 23 ) ) / COUNT ( * ) * MIN ( - COALESCE ( - 59, - 3, 77, + 7 ) ) + + 85 AS col1
----
-1154

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT + ( + - SUM( 11 ) ) * + + 60 + 53 + - 50
----
-657

skipif mysql # not compatible
query I rowsort label-4329
SELECT + ( + - SUM ( 11 ) ) * + + 60 + 53 + - 50
----
-657

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4330
SELECT + COUNT( * ) + - 60 + - COUNT( * ) DIV + 96 * - COUNT( * ) col2
----
-59

skipif mysql # not compatible
query I rowsort label-4330
SELECT + COUNT ( * ) + - 60 + - COUNT ( * ) / + 96 * - COUNT ( * ) col2
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4331
SELECT ALL - COUNT( * ) DIV - MIN( ALL + + 54 ) DIV - 14 + - CAST( + + 59 AS SIGNED ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-4331
SELECT ALL - COUNT ( * ) / - MIN ( ALL + + 54 ) / - 14 + - CAST ( + + 59 AS INTEGER ) AS col2
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-4332
SELECT ALL - 47 * 4 * - + ( - 14 ) + 63, 88 * COUNT( DISTINCT + - 18 ) AS col1
----
-2569
88

skipif mysql # not compatible
query II rowsort label-4332
SELECT ALL - 47 * 4 * - + ( - 14 ) + 63, 88 * COUNT ( DISTINCT + - 18 ) AS col1
----
-2569
88

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

skipif mysql # not compatible
query I rowsort label-4333
SELECT + MAX ( - 80 )
----
-80

query I rowsort
SELECT ALL + 43 + 5 + - 34 * + 83
----
-2774

onlyif mysql # DIV for integer division: 
query I rowsort label-4335
SELECT 47 DIV - 10
----
-4

skipif mysql # not compatible
query I rowsort label-4335
SELECT 47 / - 10
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4336
SELECT ALL 23 + + + COALESCE ( + 71, + COUNT( * ), - 59 * - 90 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-4336
SELECT ALL 23 + + + COALESCE ( + 71, + COUNT ( * ), - 59 * - 90 ) AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT DISTINCT - 71 + - COUNT( * ) + - ( - 39 ) + - - 3 * + - 58
----
-207

skipif mysql # not compatible
query I rowsort label-4337
SELECT DISTINCT - 71 + - COUNT ( * ) + - ( - 39 ) + - - 3 * + - 58
----
-207

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT - 94 * + COUNT( * ) + 4 AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-4338
SELECT - 94 * + COUNT ( * ) + 4 AS col1
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4339
SELECT COUNT( * ) * + - MAX( DISTINCT - + CAST( NULL AS SIGNED ) ) * - ( + 82 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4339
SELECT COUNT ( * ) * + - MAX ( DISTINCT - + CAST ( NULL AS INTEGER ) ) * - ( + 82 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT ( + + 63 ) * - 63 + 70 - - - 48 * + SUM( - 3 ) + + - 1 col1
----
-3756

skipif mysql # not compatible
query I rowsort label-4340
SELECT ( + + 63 ) * - 63 + 70 - - - 48 * + SUM ( - 3 ) + + - 1 col1
----
-3756

query I rowsort
SELECT + 81 * + 36 + + 84
----
3000

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT SUM( - - 80 ) * - 54 * + + SUM( + 64 )
----
-276480

skipif mysql # not compatible
query I rowsort label-4342
SELECT SUM ( - - 80 ) * - 54 * + + SUM ( + 64 )
----
-276480

onlyif mysql # aggregate syntax: 
query I rowsort label-4343
SELECT ALL - 8 + - 38 + CASE - - NULLIF ( - + 57, 13 ) WHEN - + 62 THEN - 13 ELSE NULL END + - 83 * - + 78 * COUNT( * ) + + SUM( - 22 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4343
SELECT ALL - 8 + - 38 + CASE - - NULLIF ( - + 57, 13 ) WHEN - + 62 THEN - 13 ELSE NULL END + - 83 * - + 78 * COUNT ( * ) + + SUM ( - 22 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT 63 + + MAX( - 38 ) + COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-4344
SELECT 63 + + MAX ( - 38 ) + COUNT ( * )
----
26

query I rowsort
SELECT DISTINCT - COALESCE ( + + NULLIF ( - 27, - COALESCE ( + 27, 77, - 9 / - + 13 ) ), + - 97 * + - 3 )
----
-291

query I rowsort
SELECT 45 * - + 44 + 91 AS col0
----
-1889

query I rowsort
SELECT - COALESCE ( + - 98, 69 + - 44 ) + + + 86 + + 12 AS col2
----
196

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

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

query I rowsort
SELECT DISTINCT - 34 * - 50 + 59
----
1759

query I rowsort
SELECT ALL - + 99 * 92 * - 12
----
109296

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4351
SELECT - 14 DIV + - 30 AS col1, + CAST( 20 AS SIGNED ) * - 52 * - 5 + - 7 * 56
----
0
4808

skipif mysql # not compatible
query II rowsort label-4351
SELECT - 14 / + - 30 AS col1, + CAST ( 20 AS INTEGER ) * - 52 * - 5 + - 7 * 56
----
0
4808

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4352
SELECT DISTINCT 90 DIV + MIN( ALL - + 57 ) + - 50 AS col1, 91 * 5 + - 12 AS col2, + - 97
----
-51
443
-97

skipif mysql # not compatible
query III rowsort label-4352
SELECT DISTINCT 90 / + MIN ( ALL - + 57 ) + - 50 AS col1, 91 * 5 + - 12 AS col2, + - 97
----
-51
443
-97

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4354
SELECT + 35 DIV + NULLIF ( 43, - 22 * + 10 + + + 63 ) DIV - - COUNT( * ) + 73
----
73

skipif mysql # not compatible
query I rowsort label-4354
SELECT + 35 / + NULLIF ( 43, - 22 * + 10 + + + 63 ) / - - COUNT ( * ) + 73
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT DISTINCT + CASE - - 14 WHEN ( - - 20 ) THEN 4 * + - 45 + - COUNT( * ) ELSE NULL END * 27 * + 79 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4355
SELECT DISTINCT + CASE - - 14 WHEN ( - - 20 ) THEN 4 * + - 45 + - COUNT ( * ) ELSE NULL END * 27 * + 79 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4356
SELECT ALL - COUNT( - + 96 ) * - COUNT( * ) + 21 - + + 27 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-4356
SELECT ALL - COUNT ( - + 96 ) * - COUNT ( * ) + 21 - + + 27 AS col0
----
-5

query I rowsort
SELECT 84 * 76 - + + 54
----
6330

query I rowsort
SELECT ALL 35 * 42
----
1470

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4359
SELECT ALL COALESCE ( - + 69, - 78, CAST( NULL AS SIGNED ) ) * - 33 + + COUNT( * ), - 25 + + - 83 AS col1, - COUNT( * ) AS col0
----
2278
-108
-1

skipif mysql # not compatible
query III rowsort label-4359
SELECT ALL COALESCE ( - + 69, - 78, CAST ( NULL AS INTEGER ) ) * - 33 + + COUNT ( * ), - 25 + + - 83 AS col1, - COUNT ( * ) AS col0
----
2278
-108
-1

query I rowsort
SELECT + 5 * - 21 AS col0
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT - 90 * + 86 + - MIN( - + 77 ) AS col0
----
-7663

skipif mysql # not compatible
query I rowsort label-4361
SELECT - 90 * + 86 + - MIN ( - + 77 ) AS col0
----
-7663

query I rowsort
SELECT ( 24 ) col2
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4363
SELECT - ( + COUNT( * ) ) + 27 * 43 DIV + + COUNT( * ) AS col2
----
1160

skipif mysql # not compatible
query I rowsort label-4363
SELECT - ( + COUNT ( * ) ) + 27 * 43 / + + COUNT ( * ) AS col2
----
1160

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT + NULLIF ( - 48, + 59 / + - COUNT( * ) * + 28 * + 5 - + 20 * + COUNT( DISTINCT + 98 ) * + + 35 ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-4364
SELECT + NULLIF ( - 48, + 59 / + - COUNT ( * ) * + 28 * + 5 - + 20 * + COUNT ( DISTINCT + 98 ) * + + 35 ) AS col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT ALL CASE - - 59 WHEN - - 90 THEN NULL WHEN + COUNT( * ) * + + SUM( ALL - - 0 ) THEN + + 95 ELSE NULL END * 97 - - 38 + 69 / 57 - + 32 * - 11 * 34 + - - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-4365
SELECT ALL CASE - - 59 WHEN - - 90 THEN NULL WHEN + COUNT ( * ) * + + SUM ( ALL - - 0 ) THEN + + 95 ELSE NULL END * 97 - - 38 + 69 / 57 - + 32 * - 11 * 34 + - - 13
----
NULL

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

query I rowsort
SELECT ALL + 49 * + + NULLIF ( + - 73, + 95 )
----
-3577

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT CASE + COUNT( * ) WHEN + NULLIF ( + 96, + + COUNT( * ) ) + 80 THEN NULL WHEN + + 61 + - COUNT( ( - 68 ) ) / + - ( - 78 ) + - - CASE + COUNT( * ) WHEN + 1 THEN - CASE 68 WHEN + - 70 + - - COUNT( * ) THEN - + 18 WHEN - - 98 THEN NULL END * + 69 WHEN 48 THEN 38 ELSE NULL END - + - 55 THEN NULL ELSE + + 60 END
----
60

skipif mysql # not compatible
query I rowsort label-4368
SELECT CASE + COUNT ( * ) WHEN + NULLIF ( + 96, + + COUNT ( * ) ) + 80 THEN NULL WHEN + + 61 + - COUNT ( ( - 68 ) ) / + - ( - 78 ) + - - CASE + COUNT ( * ) WHEN + 1 THEN - CASE 68 WHEN + - 70 + - - COUNT ( * ) THEN - + 18 WHEN - - 98 THEN NULL END * + 69 WHEN 48 THEN 38 ELSE NULL END - + - 55 THEN NULL ELSE + + 60 END
----
60

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT DISTINCT + COUNT( * ) * 76 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-4370
SELECT DISTINCT + COUNT ( * ) * 76 AS col1
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4371
SELECT - ( COUNT( * ) ) * - COALESCE ( - 59, + 17 * + + 46 ) * - - 92 - 36 + MAX( ALL CAST( NULL AS SIGNED ) ) * + - MAX( + 15 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4371
SELECT - ( COUNT ( * ) ) * - COALESCE ( - 59, + 17 * + + 46 ) * - - 92 - 36 + MAX ( ALL CAST ( NULL AS INTEGER ) ) * + - MAX ( + 15 ) AS col2
----
NULL

query I rowsort
SELECT ALL - 86 * + 94
----
-8084

query II rowsort
SELECT + 78 AS col1, + 53 AS col0
----
78
53

query I rowsort
SELECT - ( + 29 ) * - + 37
----
1073

query II rowsort
SELECT DISTINCT - 42 AS col2, 60
----
-42
60

query I rowsort
SELECT ALL ( - - NULLIF ( 22, - 49 ) ) AS col0
----
22

query II rowsort
SELECT ALL 74, 11 AS col0
----
74
11

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

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

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

query I rowsort
SELECT ALL + + 92 + + - 76 + 10
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4381
SELECT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) - + + 67 AS col2, + 50 AS col2
----
NULL
50

skipif mysql # not compatible
query II rowsort label-4381
SELECT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) - + + 67 AS col2, + 50 AS col2
----
NULL
50

onlyif mysql # DIV for integer division: 
query I rowsort label-4382
SELECT - 66 DIV - 86
----
0

skipif mysql # not compatible
query I rowsort label-4382
SELECT - 66 / - 86
----
0

query I rowsort
SELECT ALL - 45 + - 2 + 78 * + 23
----
1747

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4384
SELECT - COUNT( * ) + CAST( NULL AS SIGNED ) * - - 4 + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-4384
SELECT - COUNT ( * ) + CAST ( NULL AS INTEGER ) * - - 4 + 23
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT - 75 - COUNT( * ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-4385
SELECT - 75 - COUNT ( * ) AS col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT ALL + + 79 * + 13 * + 59 + - COUNT( + 71 ) AS col2
----
60592

skipif mysql # not compatible
query I rowsort label-4386
SELECT ALL + + 79 * + 13 * + 59 + - COUNT ( + 71 ) AS col2
----
60592

query I rowsort
SELECT ALL - 54 + 70 + + 24 * - + 89
----
-2120

onlyif mysql # aggregate syntax: 
query II rowsort label-4388
SELECT - 19 AS col2, 82 + - 37 + - + 34 * 5 + - SUM( + + 88 ) AS col2
----
-19
-213

skipif mysql # not compatible
query II rowsort label-4388
SELECT - 19 AS col2, 82 + - 37 + - + 34 * 5 + - SUM ( + + 88 ) AS col2
----
-19
-213

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4389
SELECT DISTINCT - COUNT( * ) + 7 + CAST( NULL AS SIGNED ) * - MIN( - 54 ) AS col2, + 84 AS col0, COALESCE ( - COALESCE ( 89, + 74 ), + 54 + + COUNT( * ) + - 50 * - 93 - - 18 ) AS col0
----
NULL
84
-89

skipif mysql # not compatible
query III rowsort label-4389
SELECT DISTINCT - COUNT ( * ) + 7 + CAST ( NULL AS INTEGER ) * - MIN ( - 54 ) AS col2, + 84 AS col0, COALESCE ( - COALESCE ( 89, + 74 ), + 54 + + COUNT ( * ) + - 50 * - 93 - - 18 ) AS col0
----
NULL
84
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-4390
SELECT DISTINCT - - 50 + - 32 + 72 DIV - 4 + - 5
----
-5

skipif mysql # not compatible
query I rowsort label-4390
SELECT DISTINCT - - 50 + - 32 + 72 / - 4 + - 5
----
-5

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4392
SELECT ALL - 53 + - CASE AVG ( - - CAST( 53 AS SIGNED ) ) WHEN - - 46 * + + 96 THEN - 55 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4392
SELECT ALL - 53 + - CASE AVG ( - - CAST ( 53 AS INTEGER ) ) WHEN - - 46 * + + 96 THEN - 55 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4393
SELECT DISTINCT CAST( 34 AS SIGNED ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-4393
SELECT DISTINCT CAST ( 34 AS INTEGER ) AS col0
----
34

query I rowsort
SELECT ALL 88 + + + 88
----
176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4395
SELECT ALL + 32 DIV + COUNT( * ) + MAX( - 52 ) + - + 68
----
-88

skipif mysql # not compatible
query I rowsort label-4395
SELECT ALL + 32 / + COUNT ( * ) + MAX ( - 52 ) + - + 68
----
-88

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

skipif mysql # not compatible
query I rowsort label-4396
SELECT - COUNT ( * ) / - 4
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4397
SELECT ALL 52 * - 42 * + 53 * - MAX( ALL + 92 ) AS col1
----
10649184

skipif mysql # not compatible
query I rowsort label-4397
SELECT ALL 52 * - 42 * + 53 * - MAX ( ALL + 92 ) AS col1
----
10649184

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4399
SELECT + COUNT( * ) + + + ( 4 )
----
5

skipif mysql # not compatible
query I rowsort label-4399
SELECT + COUNT ( * ) + + + ( 4 )
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4400
SELECT ALL 54 DIV - MAX( + 79 ) - + + 29 AS col2, 62
----
-29
62

skipif mysql # not compatible
query II rowsort label-4400
SELECT ALL 54 / - MAX ( + 79 ) - + + 29 AS col2, 62
----
-29
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4401
SELECT DISTINCT + 22 / + COUNT( * ) - + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4401
SELECT DISTINCT + 22 / + COUNT ( * ) - + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 81 * + 50 AS col1
----
4050

query I rowsort
SELECT ALL 92 * + 85
----
7820

query II rowsort
SELECT + 5 col0, 94
----
5
94

query II rowsort
SELECT 81, 24 AS col0
----
81
24

onlyif mysql # DIV for integer division: 
query II rowsort label-4406
SELECT ALL - 27 AS col2, 36 DIV + ( - 43 ) * - ( - - 24 ) * 54 + - + 2
----
-27
-2

skipif mysql # not compatible
query II rowsort label-4406
SELECT ALL - 27 AS col2, 36 / + ( - 43 ) * - ( - - 24 ) * 54 + - + 2
----
-27
-2

query I rowsort
SELECT ( 67 ) * + ( - 61 ) + - 21 + + - 4 * - - ( + + 47 )
----
-4296

onlyif mysql # aggregate syntax: 
query II rowsort label-4408
SELECT COALESCE ( - ( NULLIF ( + ( ( - 53 ) ), - - 69 * + SUM( DISTINCT + - ( - 46 ) ) ) ), - + 25 ) * COUNT( - - 70 ) + + 13 * 68 + + ( - 19 ) - - 64 + - NULLIF ( - 67, + 38 * + - ( 45 ) ) + MIN( ALL ( - 18 ) ) * - + 27 * + 72 * + + 99 AS col1, 27 * - MAX( DISTINCT + COALESCE ( - 57, 6 * 76, - 26 * 95 + ( - 88 ) ) ) AS col2
----
3465257
1539

skipif mysql # not compatible
query II rowsort label-4408
SELECT COALESCE ( - ( NULLIF ( + ( ( - 53 ) ), - - 69 * + SUM ( DISTINCT + - ( - 46 ) ) ) ), - + 25 ) * COUNT ( - - 70 ) + + 13 * 68 + + ( - 19 ) - - 64 + - NULLIF ( - 67, + 38 * + - ( 45 ) ) + MIN ( ALL ( - 18 ) ) * - + 27 * + 72 * + + 99 AS col1, 27 * - MAX ( DISTINCT + COALESCE ( - 57, 6 * 76, - 26 * 95 + ( - 88 ) ) ) AS col2
----
3465257
1539

onlyif mysql # aggregate syntax: 
query I rowsort label-4409
SELECT + 53 * NULLIF ( 88, + - COUNT( * ) ) + - + NULLIF ( + 57, + 11 ) * - - COUNT( * )
----
4607

skipif mysql # not compatible
query I rowsort label-4409
SELECT + 53 * NULLIF ( 88, + - COUNT ( * ) ) + - + NULLIF ( + 57, + 11 ) * - - COUNT ( * )
----
4607

onlyif mysql # aggregate syntax: 
query II rowsort label-4410
SELECT - ( SUM( DISTINCT + 17 ) ) * 21 + + MIN( DISTINCT 93 ) AS col0, MAX( - 83 ) + + 8 * 88
----
-264
621

skipif mysql # not compatible
query II rowsort label-4410
SELECT - ( SUM ( DISTINCT + 17 ) ) * 21 + + MIN ( DISTINCT 93 ) AS col0, MAX ( - 83 ) + + 8 * 88
----
-264
621

onlyif mysql # DIV for integer division: 
query II rowsort label-4411
SELECT DISTINCT - 43 AS col1, - 54 DIV + + 70
----
-43
0

skipif mysql # not compatible
query II rowsort label-4411
SELECT DISTINCT - 43 AS col1, - 54 / + + 70
----
-43
0

query II rowsort
SELECT ALL - 46, + 31 * - 83 AS col1
----
-46
-2573

onlyif mysql # aggregate syntax: 
query II rowsort label-4413
SELECT 68, + ( CASE 76 WHEN 27 THEN NULL WHEN + + COUNT( * ) THEN + CASE - 94 WHEN + - 99 THEN NULL ELSE - NULLIF ( + + 8, + 28 ) END ELSE NULL END ) * + 62 AS col2
----
68
NULL

skipif mysql # not compatible
query II rowsort label-4413
SELECT 68, + ( CASE 76 WHEN 27 THEN NULL WHEN + + COUNT ( * ) THEN + CASE - 94 WHEN + - 99 THEN NULL ELSE - NULLIF ( + + 8, + 28 ) END ELSE NULL END ) * + 62 AS col2
----
68
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4414
SELECT ALL - 1 DIV + - 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4414
SELECT ALL - 1 / + - 84 AS col2
----
0

query I rowsort
SELECT + 87 * - 69 * + 72 AS col0
----
-432216

query I rowsort
SELECT ALL + 84 * ( 12 )
----
1008

query I rowsort
SELECT 4 * + 30 * + 30 + - 4 AS col0
----
3596

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4418
SELECT ALL - CAST( NULL AS SIGNED ) / - 35 * + 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4418
SELECT ALL - CAST ( NULL AS INTEGER ) / - 35 * + 83 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT ALL SUM( ALL + 61 ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-4419
SELECT ALL SUM ( ALL + 61 ) AS col2
----
61

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

skipif mysql # not compatible
query I rowsort label-4420
SELECT DISTINCT COUNT ( * ) + + + 63 / 41 - - 8 + - 19 AS col0
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4421
SELECT + CASE - 26 WHEN 50 THEN + - 66 WHEN - + 87 THEN NULL ELSE COUNT( * ) END DIV - 30 col0
----
0

skipif mysql # not compatible
query I rowsort label-4421
SELECT + CASE - 26 WHEN 50 THEN + - 66 WHEN - + 87 THEN NULL ELSE COUNT ( * ) END / - 30 col0
----
0

query I rowsort
SELECT 97 + 9 * 99
----
988

onlyif mysql # aggregate syntax: 
query I rowsort label-4423
SELECT ALL + 58 + + SUM( 81 ) AS col2
----
139

skipif mysql # not compatible
query I rowsort label-4423
SELECT ALL + 58 + + SUM ( 81 ) AS col2
----
139

query I rowsort
SELECT + 3 * + - 54
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-4425
SELECT + 73 + + COUNT( * ) - - 43 * - + 7 * + 18 + - COALESCE ( - 51, 94 )
----
-5293

skipif mysql # not compatible
query I rowsort label-4425
SELECT + 73 + + COUNT ( * ) - - 43 * - + 7 * + 18 + - COALESCE ( - 51, 94 )
----
-5293

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4427
SELECT DISTINCT - 18 AS col0, COUNT( 12 )
----
-18
1

skipif mysql # not compatible
query II rowsort label-4427
SELECT DISTINCT - 18 AS col0, COUNT ( 12 )
----
-18
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4428
SELECT ALL - 8 + + COUNT( * ) * NULLIF ( 35, CASE 95 WHEN + + 87 THEN 42 * - + 55 * + 74 - - 96 + + - 73 + - 46 WHEN 60 THEN NULL ELSE NULL END ) DIV 66
----
-8

skipif mysql # not compatible
query I rowsort label-4428
SELECT ALL - 8 + + COUNT ( * ) * NULLIF ( 35, CASE 95 WHEN + + 87 THEN 42 * - + 55 * + 74 - - 96 + + - 73 + - 46 WHEN 60 THEN NULL ELSE NULL END ) / 66
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT ALL + + 77 + + - 21 - + + COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-4429
SELECT ALL + + 77 + + - 21 - + + COUNT ( * )
----
55

query II rowsort
SELECT DISTINCT 21 AS col1, + 38 - NULLIF ( + - 73, + - 48 ) AS col1
----
21
111

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4431
SELECT 56 - + - ( - - 74 ) * + ( + 53 ) * + CASE AVG ( + - 76 ) WHEN - 78 + + - 11 THEN + + 55 * + - 66 - CAST( NULL AS SIGNED ) ELSE + 74 DIV - ( + 16 ) + - 80 * + 8 END col0
----
-2525712

skipif mysql # not compatible
query I rowsort label-4431
SELECT 56 - + - ( - - 74 ) * + ( + 53 ) * + CASE AVG ( + - 76 ) WHEN - 78 + + - 11 THEN + + 55 * + - 66 - CAST ( NULL AS INTEGER ) ELSE + 74 / - ( + 16 ) + - 80 * + 8 END col0
----
-2525712

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4432
SELECT CAST( NULL AS SIGNED ) - + 63 - 97 * - + 27 / ( 43 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4432
SELECT CAST ( NULL AS INTEGER ) - + 63 - 97 * - + 27 / ( 43 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 67 * 19 AS col0
----
1273

query I rowsort
SELECT 57 * 6 AS col2
----
342

query II rowsort
SELECT DISTINCT + ( - 50 ) - + - 12, ( - 69 ) - + + 8 col2
----
-38
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4436
SELECT DISTINCT 40 - - 95 + - + CAST( NULL AS SIGNED ) + + + 51 + - - CASE - 46 WHEN + 43 + + COUNT( * ) THEN 10 - 26 WHEN + COALESCE ( - 71, + 36, COUNT( DISTINCT + + 13 ) + + - 30 + + - 18 ) + + 62 THEN NULL END * 35 + + 49 * + 13 * - 20 * - + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-4436
SELECT DISTINCT 40 - - 95 + - + CAST ( NULL AS INTEGER ) + + + 51 + - - CASE - 46 WHEN + 43 + + COUNT ( * ) THEN 10 - 26 WHEN + COALESCE ( - 71, + 36, COUNT ( DISTINCT + + 13 ) + + - 30 + + - 18 ) + + 62 THEN NULL END * 35 + + 49 * + 13 * - 20 * - + 44
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4438
SELECT 1 DIV + - 6
----
0

skipif mysql # not compatible
query I rowsort label-4438
SELECT 1 / + - 6
----
0

query I rowsort
SELECT 72 * + + 41
----
2952

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

skipif mysql # not compatible
query I rowsort label-4440
SELECT DISTINCT - COUNT ( * ) / + 83 * 12
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4441
SELECT 91 DIV - 12
----
-7

skipif mysql # not compatible
query I rowsort label-4441
SELECT 91 / - 12
----
-7

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

skipif mysql # not compatible
query I rowsort label-4442
SELECT ALL 11 + + - COUNT ( * ) AS col1
----
10

query I rowsort
SELECT ALL - 55 * - 49
----
2695

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

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

query II rowsort
SELECT ALL - ( - 47 ) + - 24 AS col0, COALESCE ( - 61, - 91, + + 0 )
----
23
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-4446
SELECT + MIN( DISTINCT + 65 ) AS col2, + 69 * - ( - MIN( ALL 2 ) ) + 7 AS col0
----
65
145

skipif mysql # not compatible
query II rowsort label-4446
SELECT + MIN ( DISTINCT + 65 ) AS col2, + 69 * - ( - MIN ( ALL 2 ) ) + 7 AS col0
----
65
145

onlyif mysql # aggregate syntax: 
query II rowsort label-4447
SELECT + + MAX( ALL + 75 ) AS col2, + 41 col1
----
75
41

skipif mysql # not compatible
query II rowsort label-4447
SELECT + + MAX ( ALL + 75 ) AS col2, + 41 col1
----
75
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4448
SELECT MAX( - CAST( + + 57 AS SIGNED ) )
----
-57

skipif mysql # not compatible
query I rowsort label-4448
SELECT MAX ( - CAST ( + + 57 AS INTEGER ) )
----
-57

query I rowsort
SELECT ALL 13 + 22
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4450
SELECT ALL CAST( - 47 AS SIGNED )
----
-47

skipif mysql # not compatible
query I rowsort label-4450
SELECT ALL CAST ( - 47 AS INTEGER )
----
-47

query I rowsort
SELECT DISTINCT - 59 + - + 47 * 57
----
-2738

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4452
SELECT DISTINCT COALESCE ( + + ( - - 99 ), 99 ) DIV - ( ( 12 ) ) * + + COUNT( ALL - 3 )
----
-8

skipif mysql # not compatible
query I rowsort label-4452
SELECT DISTINCT COALESCE ( + + ( - - 99 ), 99 ) / - ( ( 12 ) ) * + + COUNT ( ALL - 3 )
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4453
SELECT ALL 40 + - CAST( MAX( + - 24 ) AS SIGNED )
----
64

skipif mysql # not compatible
query I rowsort label-4453
SELECT ALL 40 + - CAST ( MAX ( + - 24 ) AS INTEGER )
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4454
SELECT - COUNT( * ) - - - 81 AS col0, + ( + ( - 26 ) ) * CAST( NULL AS SIGNED ) col0
----
-82
NULL

skipif mysql # not compatible
query II rowsort label-4454
SELECT - COUNT ( * ) - - - 81 AS col0, + ( + ( - 26 ) ) * CAST ( NULL AS INTEGER ) col0
----
-82
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4455
SELECT ALL CAST( - - NULLIF ( + ( - ( - 44 ) ), 37 ) AS SIGNED ) + - - MIN( - 21 ) AS col1, - 98 * + 21 * - 12 AS col2
----
23
24696

skipif mysql # not compatible
query II rowsort label-4455
SELECT ALL CAST ( - - NULLIF ( + ( - ( - 44 ) ), 37 ) AS INTEGER ) + - - MIN ( - 21 ) AS col1, - 98 * + 21 * - 12 AS col2
----
23
24696

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT ALL - + COUNT( * ) * - - 17 + + + 19 + - - 63 - + + 43 * + + 81 * - - 47 * + 49 * - 67
----
537430448

skipif mysql # not compatible
query I rowsort label-4456
SELECT ALL - + COUNT ( * ) * - - 17 + + + 19 + - - 63 - + + 43 * + + 81 * - - 47 * + 49 * - 67
----
537430448

onlyif mysql # DIV for integer division: 
query II rowsort label-4457
SELECT DISTINCT + 35 DIV - - 89 - - 69 AS col0, + 70 col0
----
69
70

skipif mysql # not compatible
query II rowsort label-4457
SELECT DISTINCT + 35 / - - 89 - - 69 AS col0, + 70 col0
----
69
70

onlyif mysql # DIV for integer division: 
query II rowsort label-4458
SELECT ALL + 77 + 30 AS col1, COALESCE ( + + ( + 37 ), - - 93, 99 * - 58 DIV + 97 )
----
107
37

skipif mysql # not compatible
query II rowsort label-4458
SELECT ALL + 77 + 30 AS col1, COALESCE ( + + ( + 37 ), - - 93, 99 * - 58 / + 97 )
----
107
37

query I rowsort
SELECT + 76 + 32
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4460
SELECT ALL - 2 * - CASE - + 74 WHEN CAST( NULL AS SIGNED ) + + + NULLIF ( 64, + MIN( - + 61 ) + + 7 - + + 86 ) - - + CASE + - 33 WHEN - 80 THEN 96 + + COUNT( * ) + + + 73 / + 56 * + + ( + + 90 ) * + 16 - 16 ELSE + - ( + - 60 ) END * - NULLIF ( - 72, - + 78 ) THEN + COUNT( ALL - 38 ) + + 24 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4460
SELECT ALL - 2 * - CASE - + 74 WHEN CAST ( NULL AS INTEGER ) + + + NULLIF ( 64, + MIN ( - + 61 ) + + 7 - + + 86 ) - - + CASE + - 33 WHEN - 80 THEN 96 + + COUNT ( * ) + + + 73 / + 56 * + + ( + + 90 ) * + 16 - 16 ELSE + - ( + - 60 ) END * - NULLIF ( - 72, - + 78 ) THEN + COUNT ( ALL - 38 ) + + 24 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT COUNT( ALL + 14 ) + + 12 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-4461
SELECT COUNT ( ALL + 14 ) + + 12 AS col2
----
13

query II rowsort
SELECT + 60 - - 83 AS col0, 93 * + 13
----
143
1209

query I rowsort
SELECT ALL 77 * + 92
----
7084

onlyif mysql # aggregate syntax: 
query I rowsort label-4464
SELECT 76 - - 25 + - ( - NULLIF ( - 14, 76 * - 27 * + 84 + - 70 - - 49 + - ( - - COALESCE ( AVG ( DISTINCT - 63 ), 35, - - 6 ) ) + 59 * + MIN( ALL - - ( - 16 ) ) ) ) * - NULLIF ( - 12, + - AVG ( + ( + 51 ) ) ) * 85
----
-14179

skipif mysql # not compatible
query I rowsort label-4464
SELECT 76 - - 25 + - ( - NULLIF ( - 14, 76 * - 27 * + 84 + - 70 - - 49 + - ( - - COALESCE ( AVG ( DISTINCT - 63 ), 35, - - 6 ) ) + 59 * + MIN ( ALL - - ( - 16 ) ) ) ) * - NULLIF ( - 12, + - AVG ( + ( + 51 ) ) ) * 85
----
-14179

query I rowsort
SELECT 50 + + 13 AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT DISTINCT ( + COALESCE ( - COUNT( * ), - MIN( 13 ) + + - COALESCE ( - 97, + + MIN( 49 ) + + + COUNT( * ) - MIN( - 50 ) ), - - 40 - - 15 ) ) - - 7 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-4466
SELECT DISTINCT ( + COALESCE ( - COUNT ( * ), - MIN ( 13 ) + + - COALESCE ( - 97, + + MIN ( 49 ) + + + COUNT ( * ) - MIN ( - 50 ) ), - - 40 - - 15 ) ) - - 7 AS col0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-4467
SELECT DISTINCT - 17 DIV 2 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-4467
SELECT DISTINCT - 17 / 2 AS col0
----
-8

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4469
SELECT + NULLIF ( + COUNT( * ), + AVG ( CAST( NULL AS SIGNED ) ) ) + 47 + 8 col1
----
56

skipif mysql # not compatible
query I rowsort label-4469
SELECT + NULLIF ( + COUNT ( * ), + AVG ( CAST ( NULL AS INTEGER ) ) ) + 47 + 8 col1
----
56

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT DISTINCT MIN( ALL + - 81 ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-4471
SELECT DISTINCT MIN ( ALL + - 81 ) AS col0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4472
SELECT - CAST( + 55 AS SIGNED ) + - 85 AS col1
----
-140

skipif mysql # not compatible
query I rowsort label-4472
SELECT - CAST ( + 55 AS INTEGER ) + - 85 AS col1
----
-140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4473
SELECT - CASE + + 60 WHEN CAST( NULL AS SIGNED ) THEN - 60 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4473
SELECT - CASE + + 60 WHEN CAST ( NULL AS INTEGER ) THEN - 60 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4474
SELECT CASE 42 WHEN 33 THEN + 82 + COUNT( * ) + + 63 * - + 13 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4474
SELECT CASE 42 WHEN 33 THEN + 82 + COUNT ( * ) + + 63 * - + 13 END col0
----
NULL

query I rowsort
SELECT ALL - 27 * + 50 AS col2
----
-1350

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

query I rowsort
SELECT - 51 * - 91
----
4641

query I rowsort
SELECT ALL + 18 * 67 + 70 AS col0
----
1276

query I rowsort
SELECT DISTINCT 68 * 91 AS col1
----
6188

query I rowsort
SELECT NULLIF ( 71, + 33 ) AS col1
----
71

query I rowsort
SELECT ALL - 28 * + 81 AS col2
----
-2268

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4482
SELECT DISTINCT NULLIF ( - COUNT( * ), 84 ) * - 58 DIV 62 + + 87 + + ( 55 ) AS col2
----
142

skipif mysql # not compatible
query I rowsort label-4482
SELECT DISTINCT NULLIF ( - COUNT ( * ), 84 ) * - 58 / 62 + + 87 + + ( 55 ) AS col2
----
142

query II rowsort
SELECT 32, 59 AS col2
----
32
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4484
SELECT CAST( 37 AS SIGNED )
----
37

skipif mysql # not compatible
query I rowsort label-4484
SELECT CAST ( 37 AS INTEGER )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT ALL + + CASE - 95 WHEN - 40 THEN + 1 ELSE NULL END * - COUNT( * ) + + 63 - 9 - 66 * - - 1 + + 28 + + 56 * 70
----
NULL

skipif mysql # not compatible
query I rowsort label-4485
SELECT ALL + + CASE - 95 WHEN - 40 THEN + 1 ELSE NULL END * - COUNT ( * ) + + 63 - 9 - 66 * - - 1 + + 28 + + 56 * 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4486
SELECT - - MIN( 57 ) + 42
----
99

skipif mysql # not compatible
query I rowsort label-4486
SELECT - - MIN ( 57 ) + 42
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT - 65 * 26 + - - COUNT( * ) + + ( - + 21 )
----
-1710

skipif mysql # not compatible
query I rowsort label-4487
SELECT - 65 * 26 + - - COUNT ( * ) + + ( - + 21 )
----
-1710

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4489
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4489
SELECT DISTINCT - - CAST ( NULL AS REAL ) / - COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4490
SELECT ALL - 58 DIV + + 92 col2
----
0

skipif mysql # not compatible
query I rowsort label-4490
SELECT ALL - 58 / + + 92 col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4491
SELECT 13 AS col1, + 9 * - COUNT( * ) + - 96 AS col1
----
13
-105

skipif mysql # not compatible
query II rowsort label-4491
SELECT 13 AS col1, + 9 * - COUNT ( * ) + - 96 AS col1
----
13
-105

query II rowsort
SELECT ALL 25 * + - 59 + - - 89, + 51 * - + ( 41 ) AS col1
----
-1386
-2091

query I rowsort
SELECT - - 61 + + 16 AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT + 89 * - ( - 16 ) * 73 + + 42 * + 76 + + 86 + - - ( - COUNT( * ) ) * - 84
----
107314

skipif mysql # not compatible
query I rowsort label-4494
SELECT + 89 * - ( - 16 ) * 73 + + 42 * + 76 + + 86 + - - ( - COUNT ( * ) ) * - 84
----
107314

onlyif mysql # aggregate syntax: 
query II rowsort label-4495
SELECT ALL COUNT( - + 89 ) * SUM( 54 ) * - 8 - + ( 11 ) - - 46, + 31 AS col0
----
-397
31

skipif mysql # not compatible
query II rowsort label-4495
SELECT ALL COUNT ( - + 89 ) * SUM ( 54 ) * - 8 - + ( 11 ) - - 46, + 31 AS col0
----
-397
31

query I rowsort
SELECT - + ( 86 ) * - 4
----
344

query I rowsort
SELECT + 30 * + 55 AS col2
----
1650

query I rowsort
SELECT DISTINCT - 73 - + - 97 + - 11 col1
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4499
SELECT ALL ( + COALESCE ( 71, COALESCE ( + - 73, CAST( NULL AS SIGNED ) ) ) ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-4499
SELECT ALL ( + COALESCE ( 71, COALESCE ( + - 73, CAST ( NULL AS INTEGER ) ) ) ) AS col2
----
71

query I rowsort
SELECT + 57 + - 1
----
56

query I rowsort
SELECT + 59 * 5
----
295

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT + ( + 90 ) + - - 72 + MIN( ALL 86 ) AS col1
----
248

skipif mysql # not compatible
query I rowsort label-4502
SELECT + ( + 90 ) + - - 72 + MIN ( ALL 86 ) AS col1
----
248

query II rowsort
SELECT ALL ( - - 47 ) AS col1, 17
----
47
17

onlyif mysql # aggregate syntax: 
query II rowsort label-4504
SELECT ALL MIN( DISTINCT 40 ) col1, COUNT( DISTINCT + - 82 )
----
40
1

skipif mysql # not compatible
query II rowsort label-4504
SELECT ALL MIN ( DISTINCT 40 ) col1, COUNT ( DISTINCT + - 82 )
----
40
1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4506
SELECT + SUM( DISTINCT CAST( NULL AS SIGNED ) ) * - CAST( 29 AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4506
SELECT + SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) * - CAST ( 29 AS REAL ) AS col0
----
NULL

query II rowsort
SELECT ALL 70 * 98, 18 AS col0
----
6860
18

onlyif mysql # DIV for integer division: 
query I rowsort label-4508
SELECT + 75 - - 67 DIV 4 + 93
----
184

skipif mysql # not compatible
query I rowsort label-4508
SELECT + 75 - - 67 / 4 + 93
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT + COUNT( * ) * - COUNT( * ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-4509
SELECT + COUNT ( * ) * - COUNT ( * ) col2
----
-1

query I rowsort
SELECT - 34 * - ( + 81 ) AS col0
----
2754

query I rowsort
SELECT - 51 + + 84 + - - 69
----
102

query I rowsort
SELECT ALL 16 + - 95 + + + 17
----
-62

query I rowsort
SELECT ALL 27 * + 73 AS col1
----
1971

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4514
SELECT DISTINCT - 42 DIV - + 75 + - - COUNT( * ) * + - 35, + 12 + 73 AS col0
----
-35
85

skipif mysql # not compatible
query II rowsort label-4514
SELECT DISTINCT - 42 / - + 75 + - - COUNT ( * ) * + - 35, + 12 + 73 AS col0
----
-35
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT + COUNT( + + 37 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4515
SELECT + COUNT ( + + 37 ) AS col1
----
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4517
SELECT DISTINCT - ( - + ( + 93 ) ) * - 15, CAST( AVG ( + - 35 ) AS SIGNED ) * - 62 AS col0
----
-1395
2170

skipif mysql # not compatible
query II rowsort label-4517
SELECT DISTINCT - ( - + ( + 93 ) ) * - 15, CAST ( AVG ( + - 35 ) AS INTEGER ) * - 62 AS col0
----
-1395
2170

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4518
SELECT ALL - + 87 / + - 42 * CAST( NULL AS SIGNED ) * - 25 + + 30 col0, 74 * 92 AS col1, - 62 * - ( 62 )
----
NULL
6808
3844

skipif mysql # not compatible
query III rowsort label-4518
SELECT ALL - + 87 / + - 42 * CAST ( NULL AS INTEGER ) * - 25 + + 30 col0, 74 * 92 AS col1, - 62 * - ( 62 )
----
NULL
6808
3844

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4520
SELECT - + ( + 42 ) DIV - + 58 * 18 + - 63 * + 65 AS col0
----
-4095

skipif mysql # not compatible
query I rowsort label-4520
SELECT - + ( + 42 ) / - + 58 * 18 + - 63 * + 65 AS col0
----
-4095

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4521
SELECT - + 30 * + CAST( NULL AS SIGNED ) * + 74 + CASE - CASE - 86 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN ( + 52 ) THEN + 22 ELSE NULL END WHEN - 52 THEN 31 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4521
SELECT - + 30 * + CAST ( NULL AS INTEGER ) * + 74 + CASE - CASE - 86 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN ( + 52 ) THEN + 22 ELSE NULL END WHEN - 52 THEN 31 END
----
NULL

query I rowsort
SELECT 29 * 67 - - + 92 AS col0
----
2035

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT + - MAX( - 89 ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-4523
SELECT + - MAX ( - 89 ) AS col1
----
89

query I rowsort
SELECT - ( - ( + - 92 ) ) * 19 * 17
----
-29716

query I rowsort
SELECT - 72 * + + 75 col2
----
-5400

onlyif mysql # DIV for integer division: 
query I rowsort label-4526
SELECT - + ( + 56 ) DIV - 72
----
0

skipif mysql # not compatible
query I rowsort label-4526
SELECT - + ( + 56 ) / - 72
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4527
SELECT DISTINCT + + 28 * + 76 AS col2, SUM( + 9 ) * - MAX( - 88 ) * + 15 + 19 + - 85 + - 61 AS col2
----
2128
11753

skipif mysql # not compatible
query II rowsort label-4527
SELECT DISTINCT + + 28 * + 76 AS col2, SUM ( + 9 ) * - MAX ( - 88 ) * + 15 + 19 + - 85 + - 61 AS col2
----
2128
11753

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4528
SELECT 60 DIV + 79 * - 45, - 31 * + ( + ( - CAST( NULL AS SIGNED ) ) ) AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4528
SELECT 60 / + 79 * - 45, - 31 * + ( + ( - CAST ( NULL AS INTEGER ) ) ) AS col2
----
0
NULL

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

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

query I rowsort
SELECT 66 - + 70 AS col1
----
-4

query I rowsort
SELECT ALL 23 * - - 30 AS col2
----
690

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT ALL 82 * - 11 * - COUNT( * ) * - - 40 * + COUNT( * ) * 2 AS col0
----
72160

skipif mysql # not compatible
query I rowsort label-4532
SELECT ALL 82 * - 11 * - COUNT ( * ) * - - 40 * + COUNT ( * ) * 2 AS col0
----
72160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4533
SELECT 76 + 12 / - MIN( - + 5 ) * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4533
SELECT 76 + 12 / - MIN ( - + 5 ) * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 82 * 57 AS col0
----
4674

query I rowsort
SELECT 56 + + + 42 + + 23 * - + 88
----
-1926

query I rowsort
SELECT 72 * + + 77 AS col1
----
5544

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4537
SELECT MAX( - 4 ) + 82, - 86 DIV ( + 10 ) * + 69 + + 43 + + - 83 * - 19 AS col1
----
78
1068

skipif mysql # not compatible
query II rowsort label-4537
SELECT MAX ( - 4 ) + 82, - 86 / ( + 10 ) * + 69 + + 43 + + - 83 * - 19 AS col1
----
78
1068

query I rowsort
SELECT 85 + 82 AS col0
----
167

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4539
SELECT ALL 16 + 40 + CAST( - 77 AS SIGNED ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-4539
SELECT ALL 16 + 40 + CAST ( - 77 AS INTEGER ) AS col2
----
-21

query II rowsort
SELECT DISTINCT 96 AS col0, 40 AS col2
----
96
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4541
SELECT ALL + 73 + + COALESCE ( + - 33, + 19 * COUNT( * ) DIV COALESCE ( 11, + 89 + + COUNT( * ) ) ) * - 11 + + 73 DIV + COUNT( * ) AS col0
----
509

skipif mysql # not compatible
query I rowsort label-4541
SELECT ALL + 73 + + COALESCE ( + - 33, + 19 * COUNT ( * ) / COALESCE ( 11, + 89 + + COUNT ( * ) ) ) * - 11 + + 73 / + COUNT ( * ) AS col0
----
509

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4542
SELECT 1 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4542
SELECT 1 + - CAST ( NULL AS REAL )
----
NULL

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

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

query I rowsort
SELECT ALL 80 + + + 11
----
91

query I rowsort
SELECT 20 + + - 57 * + 89 col0
----
-5053

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4547
SELECT COUNT( * ) * + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4547
SELECT COUNT ( * ) * + - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT 28 + + COUNT( * ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-4548
SELECT 28 + + COUNT ( * ) AS col2
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4549
SELECT - 31 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4549
SELECT - 31 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4551
SELECT ALL - ( - 10 ) - + 79 - 73 * - NULLIF ( - ( MAX( - - 2 ) ), + COUNT( * ) ) + - 30 * COUNT( * ) AS col0
----
-245

skipif mysql # not compatible
query I rowsort label-4551
SELECT ALL - ( - 10 ) - + 79 - 73 * - NULLIF ( - ( MAX ( - - 2 ) ), + COUNT ( * ) ) + - 30 * COUNT ( * ) AS col0
----
-245

onlyif mysql # aggregate syntax: 
query II rowsort label-4552
SELECT DISTINCT - - 89 AS col2, - 36 * - 52 * + COUNT( * )
----
89
1872

skipif mysql # not compatible
query II rowsort label-4552
SELECT DISTINCT - - 89 AS col2, - 36 * - 52 * + COUNT ( * )
----
89
1872

query I rowsort
SELECT DISTINCT - 72 * + ( + + 77 ) AS col1
----
-5544

onlyif mysql # aggregate syntax: 
query II rowsort label-4554
SELECT CASE - 86 WHEN 67 THEN + 80 ELSE + CASE - COUNT( - 28 ) WHEN - + 28 THEN - + 97 WHEN - - 77 + - - 82 + + 5 + + 64 * + + 21 THEN - 18 * - 72 / 53 END END * + 8, + 17 AS col2
----
NULL
17

skipif mysql # not compatible
query II rowsort label-4554
SELECT CASE - 86 WHEN 67 THEN + 80 ELSE + CASE - COUNT ( - 28 ) WHEN - + 28 THEN - + 97 WHEN - - 77 + - - 82 + + 5 + + 64 * + + 21 THEN - 18 * - 72 / 53 END END * + 8, + 17 AS col2
----
NULL
17

query I rowsort
SELECT ALL - - COALESCE ( - 11, + + 28 ) AS col1
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4556
SELECT CAST( NULL AS SIGNED ) / - 68 / + 50 * + + MIN( 32 ) + - 51 + - COALESCE ( - COUNT( - 82 ), AVG ( - + 16 ) ) AS col2, + 94 AS col1
----
NULL
94

skipif mysql # not compatible
query II rowsort label-4556
SELECT CAST ( NULL AS INTEGER ) / - 68 / + 50 * + + MIN ( 32 ) + - 51 + - COALESCE ( - COUNT ( - 82 ), AVG ( - + 16 ) ) AS col2, + 94 AS col1
----
NULL
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4557
SELECT CASE + + 29 WHEN + + 81 THEN - NULLIF ( + 76, - 62 * + + 80 * 53 + + - 12 * + - 88 + + 71 - + - MAX( ALL - + 47 ) + 4 * - - CAST( NULL AS SIGNED ) + 97 + 27 * - 75 / 49 * + - 98 * + 90 + + + 86 ) ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4557
SELECT CASE + + 29 WHEN + + 81 THEN - NULLIF ( + 76, - 62 * + + 80 * 53 + + - 12 * + - 88 + + 71 - + - MAX ( ALL - + 47 ) + 4 * - - CAST ( NULL AS INTEGER ) + 97 + 27 * - 75 / 49 * + - 98 * + 90 + + + 86 ) ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT ALL - MAX( 77 ) - + 98 + - 77 + 45 * + 18 AS col1
----
558

skipif mysql # not compatible
query I rowsort label-4558
SELECT ALL - MAX ( 77 ) - + 98 + - 77 + 45 * + 18 AS col1
----
558

query I rowsort
SELECT - 5 * + 21 + - ( 86 ) AS col0
----
-191

query I rowsort
SELECT 46 * - 88
----
-4048

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4563
SELECT SUM( + + 16 )
----
16

skipif mysql # not compatible
query I rowsort label-4563
SELECT SUM ( + + 16 )
----
16

query I rowsort
SELECT 69 * - - 45
----
3105

query I rowsort
SELECT ALL + 23 * 82
----
1886

query I rowsort
SELECT - 79 + + - 1
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4567
SELECT ALL - COALESCE ( + 47, + 21 - + ( + CASE 76 WHEN + ( + 12 ) + - - CAST( NULL AS SIGNED ) DIV 78 * + + COUNT( * ) THEN 7 WHEN ( + 79 ) THEN NULL ELSE NULL END ) + + + 36 + + 83 + - ( + ( 89 ) ) * - COALESCE ( - 92, CASE + - 44 WHEN 60 * CASE + - 35 WHEN + + 95 THEN - 54 WHEN + - 46 * NULLIF ( + 87, AVG ( DISTINCT - 61 ) + 65 + - + 97 * + + 5 * - 47 + + 6 ) THEN 84 ELSE + ( 17 ) END * + 91 + 30 THEN - COUNT( * ) DIV - 80 WHEN - 31 * 1 THEN NULL ELSE NULL END, + CASE 7 WHEN SUM( 74 ) * COUNT( ALL NULLIF ( + ( + 25 ), + 62 ) ) THEN - 47 * 63 END * 34 ) * 7 ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-4567
SELECT ALL - COALESCE ( + 47, + 21 - + ( + CASE 76 WHEN + ( + 12 ) + - - CAST ( NULL AS INTEGER ) / 78 * + + COUNT ( * ) THEN 7 WHEN ( + 79 ) THEN NULL ELSE NULL END ) + + + 36 + + 83 + - ( + ( 89 ) ) * - COALESCE ( - 92, CASE + - 44 WHEN 60 * CASE + - 35 WHEN + + 95 THEN - 54 WHEN + - 46 * NULLIF ( + 87, AVG ( DISTINCT - 61 ) + 65 + - + 97 * + + 5 * - 47 + + 6 ) THEN 84 ELSE + ( 17 ) END * + 91 + 30 THEN - COUNT ( * ) / - 80 WHEN - 31 * 1 THEN NULL ELSE NULL END, + CASE 7 WHEN SUM ( 74 ) * COUNT ( ALL NULLIF ( + ( + 25 ), + 62 ) ) THEN - 47 * 63 END * 34 ) * 7 ) AS col0
----
-47

query I rowsort
SELECT ALL 94 * - 78 AS col2
----
-7332

query II rowsort
SELECT DISTINCT - 14 col2, - 6 + - - 62 * + 88 AS col0
----
-14
5450

query II rowsort
SELECT 22, + 31 AS col1
----
22
31

query II rowsort
SELECT DISTINCT 25, 51 AS col0
----
25
51

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4573
SELECT 66 * + 76 * SUM( ALL + 57 ) AS col1, 9
----
285912
9

skipif mysql # not compatible
query II rowsort label-4573
SELECT 66 * + 76 * SUM ( ALL + 57 ) AS col1, 9
----
285912
9

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

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

query II rowsort
SELECT - 35 AS col2, + ( + 3 ) AS col2
----
-35
3

query I rowsort
SELECT ALL + 68 + - - 11 AS col2
----
79

query I rowsort
SELECT 91 * 59
----
5369

query I rowsort
SELECT DISTINCT + 87 + + 9
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT ALL COUNT( * ) * - - ( 22 ) * COUNT( ALL + 84 ) * - - 87 + - 86
----
1828

skipif mysql # not compatible
query I rowsort label-4579
SELECT ALL COUNT ( * ) * - - ( 22 ) * COUNT ( ALL + 84 ) * - - 87 + - 86
----
1828

onlyif mysql # aggregate syntax: 
query I rowsort label-4580
SELECT DISTINCT COUNT( * ) + - + 61 * + - 32 AS col0
----
1953

skipif mysql # not compatible
query I rowsort label-4580
SELECT DISTINCT COUNT ( * ) + - + 61 * + - 32 AS col0
----
1953

query I rowsort
SELECT DISTINCT + 15 * - - 84 col1
----
1260

onlyif mysql # aggregate syntax: 
query I rowsort label-4582
SELECT 91 - - COALESCE ( - - 37, - + 51 + 7, 24 + + - 17 ) * COUNT( * )
----
128

skipif mysql # not compatible
query I rowsort label-4582
SELECT 91 - - COALESCE ( - - 37, - + 51 + 7, 24 + + - 17 ) * COUNT ( * )
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4583
SELECT 52 AS col1, + CAST( 39 AS SIGNED ) * 78, - + COUNT( ALL COALESCE ( - + 25, + 34 ) ) col1
----
52
3042
-1

skipif mysql # not compatible
query III rowsort label-4583
SELECT 52 AS col1, + CAST ( 39 AS INTEGER ) * 78, - + COUNT ( ALL COALESCE ( - + 25, + 34 ) ) col1
----
52
3042
-1

query I rowsort
SELECT 0 - - 38
----
38

query I rowsort
SELECT 10 + + 23 col1
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4586
SELECT ( + + 47 ) * - - COUNT( * ) DIV - - COUNT( DISTINCT - NULLIF ( + - 65, + - 26 ) ) - - ( + COUNT( * ) ) AS col2, - 21 AS col0
----
48
-21

skipif mysql # not compatible
query II rowsort label-4586
SELECT ( + + 47 ) * - - COUNT ( * ) / - - COUNT ( DISTINCT - NULLIF ( + - 65, + - 26 ) ) - - ( + COUNT ( * ) ) AS col2, - 21 AS col0
----
48
-21

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

query I rowsort
SELECT 43 * 42 AS col2
----
1806

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4589
SELECT ALL + CAST( NULL AS SIGNED ) * ( + 46 ) + - - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-4589
SELECT ALL + CAST ( NULL AS INTEGER ) * ( + 46 ) + - - 92
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4590
SELECT ALL + COUNT( DISTINCT + 60 ) - - + NULLIF ( 38, - COUNT( * ) ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-4590
SELECT ALL + COUNT ( DISTINCT + 60 ) - - + NULLIF ( 38, - COUNT ( * ) ) AS col1
----
39

query I rowsort
SELECT DISTINCT + CASE - 22 WHEN + - 78 THEN + 37 END col1
----
NULL

query I rowsort
SELECT ALL 91 * + - 29
----
-2639

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4593
SELECT + 7 / 61 * CASE - COUNT( * ) WHEN - - 51 THEN + 1 WHEN + 57 THEN NULL END - + 86 + ( - CASE - + CAST( + + 20 AS SIGNED ) WHEN + - 23 THEN NULL WHEN - 79 * - 26 THEN + - 62 + 94 ELSE NULL END ) + - 60 + - - 58 - CASE - - 34 WHEN - - 91 THEN - 14 * 0 + + CAST( NULL AS SIGNED ) + COUNT( * ) * - - COUNT( * ) * 75 ELSE NULL END - ( + - NULLIF ( + 21, ( - + 24 ) - + COALESCE ( - 19, + - 22 + COUNT( * ) ) ) ) * - 31 * 5 * 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4593
SELECT + 7 / 61 * CASE - COUNT ( * ) WHEN - - 51 THEN + 1 WHEN + 57 THEN NULL END - + 86 + ( - CASE - + CAST ( + + 20 AS INTEGER ) WHEN + - 23 THEN NULL WHEN - 79 * - 26 THEN + - 62 + 94 ELSE NULL END ) + - 60 + - - 58 - CASE - - 34 WHEN - - 91 THEN - 14 * 0 + + CAST ( NULL AS INTEGER ) + COUNT ( * ) * - - COUNT ( * ) * 75 ELSE NULL END - ( + - NULLIF ( + 21, ( - + 24 ) - + COALESCE ( - 19, + - 22 + COUNT ( * ) ) ) ) * - 31 * 5 * 58 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4594
SELECT DISTINCT - 51 DIV ( + - 81 ) DIV + NULLIF ( + 40, - 9 )
----
0

skipif mysql # not compatible
query I rowsort label-4594
SELECT DISTINCT - 51 / ( + - 81 ) / + NULLIF ( + 40, - 9 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT CASE - + COUNT( * ) WHEN - - 72 THEN NULL WHEN COUNT( * ) THEN - 75 * + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4595
SELECT CASE - + COUNT ( * ) WHEN - - 72 THEN NULL WHEN COUNT ( * ) THEN - 75 * + COUNT ( * ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4596
SELECT - 3 * - CASE 43 WHEN + 38 / + CASE 21 WHEN + 87 THEN - COUNT( * ) / + 51 ELSE - + 37 END - - COALESCE ( + 88, + COUNT( * ) ) + + 53 + CAST( + + 38 AS SIGNED ) + - 1 - 57 * + 51 THEN NULL ELSE - CAST( NULL AS SIGNED ) END + + COUNT( * ) AS col1, COALESCE ( 8, - 31 ) + + 35 * - 60 * 70 * - 45
----
NULL
6615008

skipif mysql # not compatible
query II rowsort label-4596
SELECT - 3 * - CASE 43 WHEN + 38 / + CASE 21 WHEN + 87 THEN - COUNT ( * ) / + 51 ELSE - + 37 END - - COALESCE ( + 88, + COUNT ( * ) ) + + 53 + CAST ( + + 38 AS INTEGER ) + - 1 - 57 * + 51 THEN NULL ELSE - CAST ( NULL AS INTEGER ) END + + COUNT ( * ) AS col1, COALESCE ( 8, - 31 ) + + 35 * - 60 * 70 * - 45
----
NULL
6615008

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT + MAX( ALL + 19 ) * - 69
----
-1311

skipif mysql # not compatible
query I rowsort label-4597
SELECT + MAX ( ALL + 19 ) * - 69
----
-1311

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT ALL + 18 * + + CASE 96 WHEN + 2 + 57 THEN + ( - SUM( - - COALESCE ( + 78, 51 ) ) ) * 27 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4598
SELECT ALL + 18 * + + CASE 96 WHEN + 2 + 57 THEN + ( - SUM ( - - COALESCE ( + 78, 51 ) ) ) * 27 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4599
SELECT + + 64 DIV - 9 + - 38 * 8 AS col0
----
-311

skipif mysql # not compatible
query I rowsort label-4599
SELECT + + 64 / - 9 + - 38 * 8 AS col0
----
-311

query I rowsort
SELECT 4 * 97
----
388

onlyif mysql # aggregate syntax: 
query I rowsort label-4601
SELECT ALL MAX( ALL - 57 ) * + - 74 + - - 7 * 6
----
4260

skipif mysql # not compatible
query I rowsort label-4601
SELECT ALL MAX ( ALL - 57 ) * + - 74 + - - 7 * 6
----
4260

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4602
SELECT + + 63 DIV COUNT( * ) * - 37 AS col0
----
-2331

skipif mysql # not compatible
query I rowsort label-4602
SELECT + + 63 / COUNT ( * ) * - 37 AS col0
----
-2331

query I rowsort
SELECT ALL + + 94 * + + ( + + 84 ) AS col0
----
7896

query II rowsort
SELECT + 12 AS col2, 51 col0
----
12
51

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4605
SELECT ALL COALESCE ( - - COUNT( * ), - - 10 - + + 91 / + MIN( DISTINCT 45 ) ) * - + MIN( DISTINCT + CAST( NULL AS DECIMAL ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4605
SELECT ALL COALESCE ( - - COUNT ( * ), - - 10 - + + 91 / + MIN ( DISTINCT 45 ) ) * - + MIN ( DISTINCT + CAST ( NULL AS REAL ) ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4606
SELECT ALL 21 DIV 7 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-4606
SELECT ALL 21 / 7 AS col2
----
3

query I rowsort
SELECT + 90 * - 96 AS col0
----
-8640

query II rowsort
SELECT ALL + 20 AS col0, + 32 + - 93 col2
----
20
-61

query I rowsort
SELECT ALL 47 + - 76 * + 42 AS col1
----
-3145

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4610
SELECT + 53 + + 24 AS col0, - 25 DIV COUNT( * )
----
77
-25

skipif mysql # not compatible
query II rowsort label-4610
SELECT + 53 + + 24 AS col0, - 25 / COUNT ( * )
----
77
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT + 86 * + - SUM( DISTINCT + 6 ) + 8
----
-508

skipif mysql # not compatible
query I rowsort label-4611
SELECT + 86 * + - SUM ( DISTINCT + 6 ) + 8
----
-508

query I rowsort
SELECT - 35 * - 3 AS col2
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT ALL COUNT( * ) + - 77 AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-4613
SELECT ALL COUNT ( * ) + - 77 AS col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT + CASE COUNT( * ) WHEN + + ( - + 34 ) THEN - + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4614
SELECT + CASE COUNT ( * ) WHEN + + ( - + 34 ) THEN - + COUNT ( * ) END AS col0
----
NULL

query I rowsort
SELECT - COALESCE ( + 20, - + 32 - - 24, - + 83 )
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4616
SELECT 0 * 30 * 5 * + - CAST( NULL AS SIGNED ) - - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-4616
SELECT 0 * 30 * 5 * + - CAST ( NULL AS INTEGER ) - - 7
----
NULL

query I rowsort
SELECT - 99 + - 83
----
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT ALL COUNT( * ) + SUM( - 26 ) + - + 21 AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-4618
SELECT ALL COUNT ( * ) + SUM ( - 26 ) + - + 21 AS col1
----
-46

query II rowsort
SELECT ALL COALESCE ( - - 64, + NULLIF ( + - 59, - 72 ) + + - 3 + 26 ) AS col1, 59
----
64
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4620
SELECT ALL COALESCE ( - - 19, + COUNT( * ), + COALESCE ( 47, + + 94 + + 52 * - - 84, - 58 DIV + - 52 ) ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-4620
SELECT ALL COALESCE ( - - 19, + COUNT ( * ), + COALESCE ( 47, + + 94 + + 52 * - - 84, - 58 / + - 52 ) ) AS col0
----
19

query I rowsort
SELECT - 68 * 97 col1
----
-6596

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4622
SELECT + 39 + + 82 * - + CAST( - 38 AS SIGNED ) - - 17 + + 25
----
3197

skipif mysql # not compatible
query I rowsort label-4622
SELECT + 39 + + 82 * - + CAST ( - 38 AS INTEGER ) - - 17 + + 25
----
3197

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT - 45 - + - 2 * + ( - ( + + 88 ) ) + + 72 + 63 * + COUNT( * ) * + - COUNT( * ) col0
----
-212

skipif mysql # not compatible
query I rowsort label-4623
SELECT - 45 - + - 2 * + ( - ( + + 88 ) ) + + 72 + 63 * + COUNT ( * ) * + - COUNT ( * ) col0
----
-212

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT - 21 - + + COUNT( * ) + - + CASE - 25 WHEN + 82 + 36 + 64 THEN + + ( - 53 ) ELSE NULL END + - - 12 * COALESCE ( - + 50, AVG ( 87 ) * + 35 + + - 65 + 88 + - - COUNT( * ) + 85 ) * - MAX( ALL + COALESCE ( + 60, + 51 * 80 ) ) / + COUNT( ALL - 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4624
SELECT - 21 - + + COUNT ( * ) + - + CASE - 25 WHEN + 82 + 36 + 64 THEN + + ( - 53 ) ELSE NULL END + - - 12 * COALESCE ( - + 50, AVG ( 87 ) * + 35 + + - 65 + 88 + - - COUNT ( * ) + 85 ) * - MAX ( ALL + COALESCE ( + 60, + 51 * 80 ) ) / + COUNT ( ALL - 60 )
----
NULL

query I rowsort
SELECT ALL - 38 - - ( 56 )
----
18

query I rowsort
SELECT - 33 * - ( 73 ) AS col0
----
2409

onlyif mysql # aggregate syntax: 
query II rowsort label-4627
SELECT ALL MIN( ALL + - 31 ) col2, 59 AS col2
----
-31
59

skipif mysql # not compatible
query II rowsort label-4627
SELECT ALL MIN ( ALL + - 31 ) col2, 59 AS col2
----
-31
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4628
SELECT - 22 + ( - 53 ) + ( - CAST( + 4 AS SIGNED ) ) * - CAST( + 95 AS SIGNED ) + - - 10 * - 22 - - - 33 * 7 AS col2
----
-146

skipif mysql # not compatible
query I rowsort label-4628
SELECT - 22 + ( - 53 ) + ( - CAST ( + 4 AS INTEGER ) ) * - CAST ( + 95 AS INTEGER ) + - - 10 * - 22 - - - 33 * 7 AS col2
----
-146

onlyif mysql # DIV for integer division: 
query I rowsort label-4629
SELECT ALL - - 47 DIV ( - 41 ) + 42
----
41

skipif mysql # not compatible
query I rowsort label-4629
SELECT ALL - - 47 / ( - 41 ) + 42
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4630
SELECT - + NULLIF ( + COUNT( * ), 61 * - 44 + + 36 + - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) ) * 80 AS col2, + 72 * - - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) + + 63
----
-80
NULL

skipif mysql # not compatible
query II rowsort label-4630
SELECT - + NULLIF ( + COUNT ( * ), 61 * - 44 + + 36 + - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) * 80 AS col2, + 72 * - - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) + + 63
----
-80
NULL

query I rowsort
SELECT ALL + - 34 * 23 * + + 65 AS col1
----
-50830

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT - 11 + - + ( - COUNT( * ) ) + COUNT( * ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-4632
SELECT - 11 + - + ( - COUNT ( * ) ) + COUNT ( * ) AS col1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4633
SELECT - COALESCE ( + + CAST( NULL AS SIGNED ), - COUNT( - + ( - - NULLIF ( 40, + - 14 ) ) ) ) + + + 85 - + + 18 * + - 97
----
1832

skipif mysql # not compatible
query I rowsort label-4633
SELECT - COALESCE ( + + CAST ( NULL AS INTEGER ), - COUNT ( - + ( - - NULLIF ( 40, + - 14 ) ) ) ) + + + 85 - + + 18 * + - 97
----
1832

onlyif mysql # aggregate syntax: 
query II rowsort label-4634
SELECT DISTINCT + SUM( + - 62 ) col0, - 38 AS col0
----
-62
-38

skipif mysql # not compatible
query II rowsort label-4634
SELECT DISTINCT + SUM ( + - 62 ) col0, - 38 AS col0
----
-62
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-4635
SELECT DISTINCT + 60 DIV - + 78 + + 97 + + 26
----
123

skipif mysql # not compatible
query I rowsort label-4635
SELECT DISTINCT + 60 / - + 78 + + 97 + + 26
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-4636
SELECT ALL 59 DIV - 92 + - 81
----
-81

skipif mysql # not compatible
query I rowsort label-4636
SELECT ALL 59 / - 92 + - 81
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT DISTINCT COUNT( * ) * - 72 * + 11 + + - 90
----
-882

skipif mysql # not compatible
query I rowsort label-4637
SELECT DISTINCT COUNT ( * ) * - 72 * + 11 + + - 90
----
-882

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT + + 26 + + COUNT( - + 73 ) * - 86 + - - ( + 16 )
----
-44

skipif mysql # not compatible
query I rowsort label-4638
SELECT + + 26 + + COUNT ( - + 73 ) * - 86 + - - ( + 16 )
----
-44

query I rowsort
SELECT DISTINCT 46 * + 29 + + 54 * - - ( + + 85 ) + + 52
----
5976

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4640
SELECT + - ( - COUNT( * ) ) + + 14 * ( 96 ) DIV 85 + - - 66 + COUNT( * ) + + + 89
----
172

skipif mysql # not compatible
query I rowsort label-4640
SELECT + - ( - COUNT ( * ) ) + + 14 * ( 96 ) / 85 + - - 66 + COUNT ( * ) + + + 89
----
172

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4641
SELECT ALL 67 * 46 + + + COUNT( * ) + - 29 DIV 9 + - 88 * + 17, + 92 + + 61 * - 19 AS col1
----
1584
-1067

skipif mysql # not compatible
query II rowsort label-4641
SELECT ALL 67 * 46 + + + COUNT ( * ) + - 29 / 9 + - 88 * + 17, + 92 + + 61 * - 19 AS col1
----
1584
-1067

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT 40 * - 3 * - + COALESCE ( + 48, + COUNT( * ) ) * + + 58 + - - 71
----
334151

skipif mysql # not compatible
query I rowsort label-4642
SELECT 40 * - 3 * - + COALESCE ( + 48, + COUNT ( * ) ) * + + 58 + - - 71
----
334151

onlyif mysql # aggregate syntax: 
query II rowsort label-4643
SELECT + ( - COUNT( * ) ) AS col0, 32
----
-1
32

skipif mysql # not compatible
query II rowsort label-4643
SELECT + ( - COUNT ( * ) ) AS col0, 32
----
-1
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4644
SELECT + SUM( ALL - + 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-4644
SELECT + SUM ( ALL - + 95 )
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-4645
SELECT DISTINCT 32 * 17 + - 58 + + + 60 * 48 * 62 DIV 58 * 59 + + 55
----
182143

skipif mysql # not compatible
query I rowsort label-4645
SELECT DISTINCT 32 * 17 + - 58 + + + 60 * 48 * 62 / 58 * 59 + + 55
----
182143

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT NULLIF ( + COUNT( * ), - 45 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4646
SELECT NULLIF ( + COUNT ( * ), - 45 ) AS col2
----
1

query II rowsort
SELECT ALL + 49 AS col2, + 65 - - 67 col0
----
49
132

query I rowsort
SELECT + 81 * 12 * + 4 AS col0
----
3888

query I rowsort
SELECT 5 * + 3 + 13 * - + 56 + + 36
----
-677

query I rowsort
SELECT + 75 + 88
----
163

query II rowsort
SELECT DISTINCT 47 AS col1, + 24 AS col1
----
47
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4652
SELECT DISTINCT CASE + 89 WHEN + - NULLIF ( - 76, - + SUM( + + 46 ) ) THEN 14 + + ( + 26 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4652
SELECT DISTINCT CASE + 89 WHEN + - NULLIF ( - 76, - + SUM ( + + 46 ) ) THEN 14 + + ( + 26 ) END AS col2
----
NULL

query II rowsort
SELECT DISTINCT 58 AS col2, 70
----
58
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT ALL CASE - MAX( 64 ) WHEN - - 43 / 24 + + + ( + NULLIF ( + NULLIF ( + 0, 24 / + + 88 + 77 ), 27 + - 56 ) ) * 66 / + 66 - - 57 THEN - 2 * + 41 / - 30 ELSE + 48 END AS col2
----
48

skipif mysql # not compatible
query I rowsort label-4654
SELECT ALL CASE - MAX ( 64 ) WHEN - - 43 / 24 + + + ( + NULLIF ( + NULLIF ( + 0, 24 / + + 88 + 77 ), 27 + - 56 ) ) * 66 / + 66 - - 57 THEN - 2 * + 41 / - 30 ELSE + 48 END AS col2
----
48

query I rowsort
SELECT ALL - 43 - + 80 AS col2
----
-123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4656
SELECT DISTINCT 94 * - NULLIF ( 30, + COUNT( * ) ) * 88 * NULLIF ( - COALESCE ( - + 97, - + CAST( NULL AS SIGNED ) * - 49 ), + 52 - + 42 ) + 6 * COUNT( * ) col2
----
-24071514

skipif mysql # not compatible
query I rowsort label-4656
SELECT DISTINCT 94 * - NULLIF ( 30, + COUNT ( * ) ) * 88 * NULLIF ( - COALESCE ( - + 97, - + CAST ( NULL AS INTEGER ) * - 49 ), + 52 - + 42 ) + 6 * COUNT ( * ) col2
----
-24071514

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT CASE + 77 WHEN - - 97 THEN - + 72 WHEN + ( 15 ) * + - 38 * - 85 THEN - - 4 WHEN + ( + COUNT( * ) ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4657
SELECT CASE + 77 WHEN - - 97 THEN - + 72 WHEN + ( 15 ) * + - 38 * - 85 THEN - - 4 WHEN + ( + COUNT ( * ) ) THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4658
SELECT + - 62 DIV MIN( ALL + 73 ) - - 16 * - 44 AS col2
----
-704

skipif mysql # not compatible
query I rowsort label-4658
SELECT + - 62 / MIN ( ALL + 73 ) - - 16 * - 44 AS col2
----
-704

query I rowsort
SELECT - 43 * - 56 * + 20 AS col0
----
48160

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT + + CASE - + 82 WHEN + 14 * - AVG ( 56 ) - 73 THEN NULL WHEN 82 THEN + 11 + ( + COUNT( * ) ) - - 31 * 32 END - - ( - 84 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4660
SELECT + + CASE - + 82 WHEN + 14 * - AVG ( 56 ) - 73 THEN NULL WHEN 82 THEN + 11 + ( + COUNT ( * ) ) - - 31 * 32 END - - ( - 84 )
----
NULL

query I rowsort
SELECT + 0 + + 36 AS col1
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4662
SELECT ALL 29 AS col0, + 52 + CAST( NULL AS SIGNED ) AS col2
----
29
NULL

skipif mysql # not compatible
query II rowsort label-4662
SELECT ALL 29 AS col0, + 52 + CAST ( NULL AS INTEGER ) AS col2
----
29
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4663
SELECT + 9 DIV - - COALESCE ( + - 39, + + 48, + 75 - + ( ( 79 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-4663
SELECT + 9 / - - COALESCE ( + - 39, + + 48, + 75 - + ( ( 79 ) ) )
----
0

query II rowsort
SELECT - 91 AS col0, 79 AS col0
----
-91
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT ALL + COUNT( * ) + ( + - 16 ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-4665
SELECT ALL + COUNT ( * ) + ( + - 16 ) AS col2
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-4666
SELECT ( + 11 ) * - - 65 AS col1, - CASE + 13 WHEN - 80 + ( 42 ) THEN NULL WHEN NULLIF ( + - COUNT( * ), - - 64 ) THEN + 43 ELSE + ( 70 ) END
----
715
-70

skipif mysql # not compatible
query II rowsort label-4666
SELECT ( + 11 ) * - - 65 AS col1, - CASE + 13 WHEN - 80 + ( 42 ) THEN NULL WHEN NULLIF ( + - COUNT ( * ), - - 64 ) THEN + 43 ELSE + ( 70 ) END
----
715
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4667
SELECT + + MIN( - + 63 ) DIV - ( + - 88 ) - + + 32 DIV - + 23 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4667
SELECT + + MIN ( - + 63 ) / - ( + - 88 ) - + + 32 / - + 23 AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4668
SELECT DISTINCT - 8 + + - 76 DIV - + COUNT( * ) + 17 * + + 59
----
1071

skipif mysql # not compatible
query I rowsort label-4668
SELECT DISTINCT - 8 + + - 76 / - + COUNT ( * ) + 17 * + + 59
----
1071

query II rowsort
SELECT ALL - 17 + ( - + 88 ), + 88 + - 46 AS col1
----
-105
42

query I rowsort
SELECT 11 * + 1 + + + 51 * - 33 AS col0
----
-1672

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT - COUNT( * ) * - NULLIF ( 17, 6 * + 31 + - 40 * - AVG ( - COALESCE ( - - 59, - 37 + - 1 ) ) * 6 + - COUNT( ALL 48 ) ) * - + MAX( DISTINCT + 96 ) AS col0
----
-1632

skipif mysql # not compatible
query I rowsort label-4671
SELECT - COUNT ( * ) * - NULLIF ( 17, 6 * + 31 + - 40 * - AVG ( - COALESCE ( - - 59, - 37 + - 1 ) ) * 6 + - COUNT ( ALL 48 ) ) * - + MAX ( DISTINCT + 96 ) AS col0
----
-1632

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT DISTINCT - + COALESCE ( + - 21, 58 ) + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-4672
SELECT DISTINCT - + COALESCE ( + - 21, 58 ) + COUNT ( * )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4673
SELECT 91 * - COUNT( - + 75 ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-4673
SELECT 91 * - COUNT ( - + 75 ) AS col0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT DISTINCT - 0 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4674
SELECT DISTINCT - 0 * + COUNT ( * )
----
0

query I rowsort
SELECT DISTINCT 52 - 58
----
-6

query III rowsort
SELECT DISTINCT - ( 91 ) AS col1, 69 + - 95 * + 11 * + - 68 + 90, 86 AS col0
----
-91
71219
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4677
SELECT CAST( NULL AS SIGNED ) * - 81 * + + ( 20 ) + - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-4677
SELECT CAST ( NULL AS INTEGER ) * - 81 * + + ( 20 ) + - 33
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4678
SELECT ALL - CAST( + + 45 AS SIGNED )
----
-45

skipif mysql # not compatible
query I rowsort label-4678
SELECT ALL - CAST ( + + 45 AS INTEGER )
----
-45

query II rowsort
SELECT 0 + + 9, 17 + 81 + - - 42 + + 51 * + 99 AS col1
----
9
5189

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT ALL MAX( ALL ( - + 61 ) ) * - 72 * - 93 AS col2
----
-408456

skipif mysql # not compatible
query I rowsort label-4680
SELECT ALL MAX ( ALL ( - + 61 ) ) * - 72 * - 93 AS col2
----
-408456

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT - 39 * - - COUNT( * ) * - + 82 + + 58 AS col2
----
3256

skipif mysql # not compatible
query I rowsort label-4681
SELECT - 39 * - - COUNT ( * ) * - + 82 + + 58 AS col2
----
3256

query II rowsort
SELECT ALL + 38 * + 0 AS col2, + 0
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4683
SELECT 35 + + - COUNT( * ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-4683
SELECT 35 + + - COUNT ( * ) AS col1
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4684
SELECT 18 / - CAST( NULL AS SIGNED ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4684
SELECT 18 / - CAST ( NULL AS INTEGER ) + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT 20 + - - COUNT( + - 0 )
----
21

skipif mysql # not compatible
query I rowsort label-4685
SELECT 20 + - - COUNT ( + - 0 )
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4686
SELECT 67 + - COUNT( ALL - - CAST( NULL AS SIGNED ) ) * 38 + - 48
----
19

skipif mysql # not compatible
query I rowsort label-4686
SELECT 67 + - COUNT ( ALL - - CAST ( NULL AS INTEGER ) ) * 38 + - 48
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4687
SELECT COUNT( * ) - + + 2 - + 11 + - ( - + 96 )
----
84

skipif mysql # not compatible
query I rowsort label-4687
SELECT COUNT ( * ) - + + 2 - + 11 + - ( - + 96 )
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4688
SELECT ALL CASE 10 WHEN + - 15 / - 19 + CAST( - 41 AS SIGNED ) * + 42 + - 78 + - 65 THEN NULL ELSE + CASE + 17 WHEN - 65 * + 77 THEN NULL WHEN - CAST( NULLIF ( - 51, + 0 ) AS SIGNED ) / + 41 * - CAST( NULL AS SIGNED ) - 41 THEN + COUNT( * ) * + 51 * + 34 - - - COALESCE ( 59, + SUM( + + 43 ) / + COALESCE ( - 72, 14 ) ) END * - 27 * - MAX( - 93 ) * - 89 + - - 55 - - 16 * - - 75 * - 64 / - + 79 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4688
SELECT ALL CASE 10 WHEN + - 15 / - 19 + CAST ( - 41 AS INTEGER ) * + 42 + - 78 + - 65 THEN NULL ELSE + CASE + 17 WHEN - 65 * + 77 THEN NULL WHEN - CAST ( NULLIF ( - 51, + 0 ) AS INTEGER ) / + 41 * - CAST ( NULL AS INTEGER ) - 41 THEN + COUNT ( * ) * + 51 * + 34 - - - COALESCE ( 59, + SUM ( + + 43 ) / + COALESCE ( - 72, 14 ) ) END * - 27 * - MAX ( - 93 ) * - 89 + - - 55 - - 16 * - - 75 * - 64 / - + 79 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4689
SELECT 56 + + 54 * - 91 * - + SUM( ALL + 63 ) + - - 48 DIV + 5
----
309647

skipif mysql # not compatible
query I rowsort label-4689
SELECT 56 + + 54 * - 91 * - + SUM ( ALL + 63 ) + - - 48 / + 5
----
309647

query I rowsort
SELECT DISTINCT 46 + 70 AS col0
----
116

query I rowsort
SELECT ALL + 81 + + 17 col2
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4692
SELECT CAST( + ( - + ( 87 ) ) AS SIGNED ) + 56
----
-31

skipif mysql # not compatible
query I rowsort label-4692
SELECT CAST ( + ( - + ( 87 ) ) AS INTEGER ) + 56
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT COUNT( * ) + 34 col2
----
35

skipif mysql # not compatible
query I rowsort label-4693
SELECT COUNT ( * ) + 34 col2
----
35

query I rowsort
SELECT ALL 13 + - - 19 * + 51
----
982

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4695
SELECT COUNT( * ) + + 74 + + - 66 DIV 6, - ( - 86 ) * - 72 col2
----
64
-6192

skipif mysql # not compatible
query II rowsort label-4695
SELECT COUNT ( * ) + + 74 + + - 66 / 6, - ( - 86 ) * - 72 col2
----
64
-6192

query I rowsort
SELECT 15 * - 0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4697
SELECT 46 + - + CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4697
SELECT 46 + - + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4698
SELECT - 84 + COUNT( * ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-4698
SELECT - 84 + COUNT ( * ) AS col0
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4699
SELECT + MAX( ALL - CAST( 29 AS SIGNED ) )
----
-29

skipif mysql # not compatible
query I rowsort label-4699
SELECT + MAX ( ALL - CAST ( 29 AS INTEGER ) )
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4700
SELECT ALL COUNT( + CAST( NULL AS SIGNED ) ) + + 79 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-4700
SELECT ALL COUNT ( + CAST ( NULL AS INTEGER ) ) + + 79 AS col2
----
79

query II rowsort
SELECT 38 * - 93 AS col2, 4 AS col2
----
-3534
4

onlyif mysql # DIV for integer division: 
query I rowsort label-4702
SELECT ALL + 41 DIV - 68
----
0

skipif mysql # not compatible
query I rowsort label-4702
SELECT ALL + 41 / - 68
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4703
SELECT + 12 * + 66 * 50 * 99 + + CAST( NULL AS SIGNED ) AS col2, - MAX( ALL + 36 ) - + 84 AS col2
----
NULL
-120

skipif mysql # not compatible
query II rowsort label-4703
SELECT + 12 * + 66 * 50 * 99 + + CAST ( NULL AS INTEGER ) AS col2, - MAX ( ALL + 36 ) - + 84 AS col2
----
NULL
-120

query I rowsort
SELECT DISTINCT 29 - + 40 AS col1
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-4705
SELECT 4 DIV + 29 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4705
SELECT 4 / + 29 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4706
SELECT ALL + NULLIF ( - + COUNT( * ), + 15 + NULLIF ( COUNT( DISTINCT - + 27 ), CAST( NULL AS SIGNED ) * + SUM( 79 ) + + ( 83 ) ) - - AVG ( 22 ) ) * + 10
----
-10

skipif mysql # not compatible
query I rowsort label-4706
SELECT ALL + NULLIF ( - + COUNT ( * ), + 15 + NULLIF ( COUNT ( DISTINCT - + 27 ), CAST ( NULL AS INTEGER ) * + SUM ( 79 ) + + ( 83 ) ) - - AVG ( 22 ) ) * + 10
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4707
SELECT 10 + + + SUM( DISTINCT + 21 ) * - + 60 AS col1
----
-1250

skipif mysql # not compatible
query I rowsort label-4707
SELECT 10 + + + SUM ( DISTINCT + 21 ) * - + 60 AS col1
----
-1250

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4708
SELECT ( - 91 ) DIV + COUNT( * ) col2
----
-91

skipif mysql # not compatible
query I rowsort label-4708
SELECT ( - 91 ) / + COUNT ( * ) col2
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4709
SELECT + COUNT( * ) AS col0, CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4709
SELECT + COUNT ( * ) AS col0, CAST ( NULL AS INTEGER )
----
1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4710
SELECT - 73 * + + 1 + + SUM( + 22 ) DIV + 97 * - 82 - + 31 + + + 46 col2, - 74
----
-58
-74

skipif mysql # not compatible
query II rowsort label-4710
SELECT - 73 * + + 1 + + SUM ( + 22 ) / + 97 * - 82 - + 31 + + + 46 col2, - 74
----
-58
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4711
SELECT ALL - 51 * - + 90 * + CAST( 44 AS SIGNED )
----
201960

skipif mysql # not compatible
query I rowsort label-4711
SELECT ALL - 51 * - + 90 * + CAST ( 44 AS INTEGER )
----
201960

query I rowsort
SELECT DISTINCT - ( + + 77 ) AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4713
SELECT DISTINCT - SUM( - 20 )
----
20

skipif mysql # not compatible
query I rowsort label-4713
SELECT DISTINCT - SUM ( - 20 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4714
SELECT 29 * + + 8 * - COALESCE ( + NULLIF ( - 19, COUNT( * ) ), - 96 * 29 ) AS col1
----
4408

skipif mysql # not compatible
query I rowsort label-4714
SELECT 29 * + + 8 * - COALESCE ( + NULLIF ( - 19, COUNT ( * ) ), - 96 * 29 ) AS col1
----
4408

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4715
SELECT ALL - 80 AS col0, + CAST( NULL AS SIGNED )
----
-80
NULL

skipif mysql # not compatible
query II rowsort label-4715
SELECT ALL - 80 AS col0, + CAST ( NULL AS INTEGER )
----
-80
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4716
SELECT 19 DIV COALESCE ( - COUNT( * ), + 44 ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-4716
SELECT 19 / COALESCE ( - COUNT ( * ), + 44 ) AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4717
SELECT 54 * MIN( + 20 )
----
1080

skipif mysql # not compatible
query I rowsort label-4717
SELECT 54 * MIN ( + 20 )
----
1080

onlyif mysql # aggregate syntax: 
query II rowsort label-4718
SELECT MIN( 98 ) + - - 57 AS col2, 25 + + 23 AS col0
----
155
48

skipif mysql # not compatible
query II rowsort label-4718
SELECT MIN ( 98 ) + - - 57 AS col2, 25 + + 23 AS col0
----
155
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4719
SELECT ALL + + COUNT( * ) DIV - 94
----
0

skipif mysql # not compatible
query I rowsort label-4719
SELECT ALL + + COUNT ( * ) / - 94
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4720
SELECT - 52 AS col0, - COALESCE ( + 46, 13 DIV - + 0 ) + - ( 18 ) - - - 69 AS col2
----
-52
-133

skipif mysql # not compatible
query II rowsort label-4720
SELECT - 52 AS col0, - COALESCE ( + 46, 13 / - + 0 ) + - ( 18 ) - - - 69 AS col2
----
-52
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT - + ( 7 ) * + + 37 * + COUNT( * ) AS col2
----
-259

skipif mysql # not compatible
query I rowsort label-4721
SELECT - + ( 7 ) * + + 37 * + COUNT ( * ) AS col2
----
-259

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT ALL + - CASE - - 59 WHEN + 4 * 72 * - 72 THEN NULL WHEN 21 THEN NULL ELSE COUNT( * ) * + 83 - - 17 END + + ( 77 ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-4722
SELECT ALL + - CASE - - 59 WHEN + 4 * 72 * - 72 THEN NULL WHEN 21 THEN NULL ELSE COUNT ( * ) * + 83 - - 17 END + + ( 77 ) AS col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT ALL - 10 + COUNT( * ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-4723
SELECT ALL - 10 + COUNT ( * ) AS col1
----
-9

query II rowsort
SELECT + 53 AS col1, - 24 AS col0
----
53
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4725
SELECT DISTINCT + - COUNT( CAST( - 97 AS SIGNED ) ) * - + 29
----
29

skipif mysql # not compatible
query I rowsort label-4725
SELECT DISTINCT + - COUNT ( CAST ( - 97 AS INTEGER ) ) * - + 29
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT + 18 * + COUNT( * ) + - + ( 11 ) col0
----
7

skipif mysql # not compatible
query I rowsort label-4726
SELECT + 18 * + COUNT ( * ) + - + ( 11 ) col0
----
7

query I rowsort
SELECT ALL - + 73 + - + 43 AS col1
----
-116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4728
SELECT - - CAST( MIN( DISTINCT - 24 ) AS SIGNED ) - 15
----
-39

skipif mysql # not compatible
query I rowsort label-4728
SELECT - - CAST ( MIN ( DISTINCT - 24 ) AS INTEGER ) - 15
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4729
SELECT - NULLIF ( - COUNT( * ), - 88 )
----
1

skipif mysql # not compatible
query I rowsort label-4729
SELECT - NULLIF ( - COUNT ( * ), - 88 )
----
1

query I rowsort
SELECT - - COALESCE ( - 74, + 73 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4731
SELECT + + COUNT( + 76 ) + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-4731
SELECT + + COUNT ( + 76 ) + + COUNT ( * )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4732
SELECT - COALESCE ( NULLIF ( + 84, - CAST( NULL AS SIGNED ) ), NULLIF ( - 69, - + MIN( ALL 96 ) * - + 22 ) + - 66 DIV + 19 * 15 * + + 70 ) AS col2, 39 AS col1
----
-84
39

skipif mysql # not compatible
query II rowsort label-4732
SELECT - COALESCE ( NULLIF ( + 84, - CAST ( NULL AS INTEGER ) ), NULLIF ( - 69, - + MIN ( ALL 96 ) * - + 22 ) + - 66 / + 19 * 15 * + + 70 ) AS col2, 39 AS col1
----
-84
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4733
SELECT ALL - 14 - + 18 DIV + - 41 * + COUNT( * ) * - 79
----
-14

skipif mysql # not compatible
query I rowsort label-4733
SELECT ALL - 14 - + 18 / + - 41 * + COUNT ( * ) * - 79
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4734
SELECT ALL + 34 - + + COALESCE ( - - 46, + + NULLIF ( + 47, - - COALESCE ( - - 97, 18 * ( + COUNT( * ) ) ) ) * + + 79 + 81 * 7 DIV - 68 * 41 * - - CAST( - 92 AS SIGNED ) ) + - COALESCE ( - - 42, - SUM( DISTINCT + + 19 ) * - 75, + 81 )
----
-54

skipif mysql # not compatible
query I rowsort label-4734
SELECT ALL + 34 - + + COALESCE ( - - 46, + + NULLIF ( + 47, - - COALESCE ( - - 97, 18 * ( + COUNT ( * ) ) ) ) * + + 79 + 81 * 7 / - 68 * 41 * - - CAST ( - 92 AS INTEGER ) ) + - COALESCE ( - - 42, - SUM ( DISTINCT + + 19 ) * - 75, + 81 )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT + 59 - + + SUM( DISTINCT - 6 ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-4735
SELECT + 59 - + + SUM ( DISTINCT - 6 ) AS col0
----
65

query II rowsort
SELECT ALL + 75 AS col2, 88 AS col2
----
75
88

query I rowsort
SELECT + NULLIF ( - - 6, + 56 ) AS col1
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4738
SELECT ALL 32 * - 98 - - COALESCE ( 78, 58, + + 60 + - 20 * + CASE + 21 WHEN + 51 + + 95 * - 69 THEN NULL WHEN - ( CASE WHEN NOT 0 IS NOT NULL THEN - - SUM( - 27 ) + - - COUNT( * ) + - 22 END ) THEN - 49 END ) + + 10 * + 83 + + 65 + - 20 + + CASE + 28 WHEN CAST( NULL AS SIGNED ) THEN + MAX( 40 ) ELSE COALESCE ( COUNT( - ( - 70 ) ), + 45 ) END + MAX( 40 ) * + + MAX( ALL - 98 ) * ( + 54 ) + 81
----
-213781

skipif mysql # not compatible
query I rowsort label-4738
SELECT ALL 32 * - 98 - - COALESCE ( 78, 58, + + 60 + - 20 * + CASE + 21 WHEN + 51 + + 95 * - 69 THEN NULL WHEN - ( CASE WHEN NOT 0 IS NOT NULL THEN - - SUM ( - 27 ) + - - COUNT ( * ) + - 22 END ) THEN - 49 END ) + + 10 * + 83 + + 65 + - 20 + + CASE + 28 WHEN CAST ( NULL AS INTEGER ) THEN + MAX ( 40 ) ELSE COALESCE ( COUNT ( - ( - 70 ) ), + 45 ) END + MAX ( 40 ) * + + MAX ( ALL - 98 ) * ( + 54 ) + 81
----
-213781

query I rowsort
SELECT + ( - CASE - 22 WHEN - + 26 THEN NULL ELSE - + 34 END ) * + 15 AS col2
----
510

query I rowsort
SELECT 55 * + 99 + - 44
----
5401

query I rowsort
SELECT ( + - 52 ) AS col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT ( + ( COUNT( * ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4742
SELECT ( + ( COUNT ( * ) ) ) AS col1
----
1

query II rowsort
SELECT + 16 * + - 75, - 15 * + 14 AS col0
----
-1200
-210

onlyif mysql # aggregate syntax: 
query I rowsort label-4744
SELECT ALL + MAX( - 38 ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-4744
SELECT ALL + MAX ( - 38 ) AS col1
----
-38

query I rowsort
SELECT CASE - + 72 WHEN + 68 THEN NULL ELSE + - 48 END AS col1
----
-48

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4746
SELECT ALL + 64 AS col2, CASE - 70 WHEN + CAST( NULL AS DECIMAL ) / - COUNT( * ) / + COUNT( * ) THEN COALESCE ( - - 27, 84 ) * - COUNT( * ) WHEN + ( - + COUNT( * ) ) THEN 22 * 10 / + 64 + - + ( + + 73 ) + - + 77 END + SUM( + 15 ) AS col2
----
64
NULL

skipif mysql # not compatible
query II rowsort label-4746
SELECT ALL + 64 AS col2, CASE - 70 WHEN + CAST ( NULL AS REAL ) / - COUNT ( * ) / + COUNT ( * ) THEN COALESCE ( - - 27, 84 ) * - COUNT ( * ) WHEN + ( - + COUNT ( * ) ) THEN 22 * 10 / + 64 + - + ( + + 73 ) + - + 77 END + SUM ( + 15 ) AS col2
----
64
NULL

query II rowsort
SELECT ALL - 20 * 55 AS col0, + 8 AS col0
----
-1100
8

query II rowsort
SELECT + 48, 21 AS col2
----
48
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT ALL + SUM( DISTINCT - + 24 ) * 68 * + ( 66 ) + - 12 + - + 63 AS col2
----
-107787

skipif mysql # not compatible
query I rowsort label-4749
SELECT ALL + SUM ( DISTINCT - + 24 ) * 68 * + ( 66 ) + - 12 + - + 63 AS col2
----
-107787

query I rowsort
SELECT - 75 * - + COALESCE ( - 12, - + 49 + 49 ) + 86 + - - 58 AS col0
----
-756

query I rowsort
SELECT COALESCE ( + 67, + + 85 ) AS col1
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-4752
SELECT - 39 DIV - 27
----
1

skipif mysql # not compatible
query I rowsort label-4752
SELECT - 39 / - 27
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4753
SELECT + 50 + + 34 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4753
SELECT + 50 + + 34 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4754
SELECT COUNT( * ) * - 42 / - + 57 - - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4754
SELECT COUNT ( * ) * - 42 / - + 57 - - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - ( + 48 ) * - 88 * + 78 * + - 41 AS col2
----
-13508352

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT COUNT( * ) * 76 + - + 44 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-4756
SELECT COUNT ( * ) * 76 + - + 44 AS col1
----
32

query I rowsort
SELECT ALL 13 * - 95 + + COALESCE ( - 80, - + 95 ) * CASE + 4 WHEN + + 0 THEN NULL ELSE + 37 * 45 * - - 7 * + 76 END + ( + 68 ) AS col2
----
-70863567

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4758
SELECT ALL + - 45, + ( + 92 ) * + 23 - + CAST( NULL AS SIGNED ) * - COUNT( * ) / + - COUNT( * ) AS col0
----
-45
NULL

skipif mysql # not compatible
query II rowsort label-4758
SELECT ALL + - 45, + ( + 92 ) * + 23 - + CAST ( NULL AS INTEGER ) * - COUNT ( * ) / + - COUNT ( * ) AS col0
----
-45
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4759
SELECT - - 73 * + 95 AS col2, COUNT( * ) * - - COUNT( * )
----
6935
1

skipif mysql # not compatible
query II rowsort label-4759
SELECT - - 73 * + 95 AS col2, COUNT ( * ) * - - COUNT ( * )
----
6935
1

query II rowsort
SELECT + 43 AS col0, 43 col2
----
43
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4761
SELECT - - CAST( NULL AS SIGNED ) + + 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4761
SELECT - - CAST ( NULL AS INTEGER ) + + 98 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT + - 18 + + 90 + COUNT( * ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-4762
SELECT + - 18 + + 90 + COUNT ( * ) AS col2
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4763
SELECT - 91 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4763
SELECT - 91 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4764
SELECT - 77 AS col0, 47 + + MAX( DISTINCT 41 ) AS col2
----
-77
88

skipif mysql # not compatible
query II rowsort label-4764
SELECT - 77 AS col0, 47 + + MAX ( DISTINCT 41 ) AS col2
----
-77
88

query II rowsort
SELECT ALL - 38 - + + 13, - 92 AS col0
----
-51
-92

query I rowsort
SELECT ALL - 69 * - 46
----
3174

query I rowsort
SELECT - 19 + + + 66
----
47

query I rowsort
SELECT - COALESCE ( + 32, + 47 ) AS col2
----
-32

query II rowsort
SELECT + 35 + - - 88 AS col1, 43
----
123
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4770
SELECT - 64 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4770
SELECT - 64 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4771
SELECT + 29 * + - 20 AS col0, CAST( NULL AS SIGNED ) + COUNT( * )
----
-580
NULL

skipif mysql # not compatible
query II rowsort label-4771
SELECT + 29 * + - 20 AS col0, CAST ( NULL AS INTEGER ) + COUNT ( * )
----
-580
NULL

query I rowsort
SELECT - 40 + + ( + + 17 ) AS col1
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-4773
SELECT + 5 + - 7, + 62 * - + NULLIF ( + 24, + 1 * + - ( + - 59 ) + 25 ) * - COUNT( * ) * - + 12 + + COALESCE ( - + 52, 20, + 98 + + 78 ) + + 58 * 48 AS col0
----
-2
-15124

skipif mysql # not compatible
query II rowsort label-4773
SELECT + 5 + - 7, + 62 * - + NULLIF ( + 24, + 1 * + - ( + - 59 ) + 25 ) * - COUNT ( * ) * - + 12 + + COALESCE ( - + 52, 20, + 98 + + 78 ) + + 58 * 48 AS col0
----
-2
-15124

query I rowsort
SELECT + 93 * - + 51 AS col0
----
-4743

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4775
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-4775
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 64
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4776
SELECT ALL MIN( ( 23 ) ) DIV 88 + - + SUM( ALL + ( + 75 ) ) DIV - 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4776
SELECT ALL MIN ( ( 23 ) ) / 88 + - + SUM ( ALL + ( + 75 ) ) / - 91 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4777
SELECT COUNT( * ) DIV + - 23 * - 22 * 2 + - 74 + 31
----
-43

skipif mysql # not compatible
query I rowsort label-4777
SELECT COUNT ( * ) / + - 23 * - 22 * 2 + - 74 + 31
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4778
SELECT ALL + ( 48 ) DIV COUNT( * ) + - 88 AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-4778
SELECT ALL + ( 48 ) / COUNT ( * ) + - 88 AS col1
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4779
SELECT DISTINCT - COUNT( * ) DIV - - 94 + + ( - 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-4779
SELECT DISTINCT - COUNT ( * ) / - - 94 + + ( - 47 )
----
-47

query I rowsort
SELECT + NULLIF ( 62, - - 84 + + + 46 )
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4781
SELECT CAST( - - 23 AS SIGNED ) AS col2, 86 * 22 * 93 + - COUNT( * ) col0
----
23
175955

skipif mysql # not compatible
query II rowsort label-4781
SELECT CAST ( - - 23 AS INTEGER ) AS col2, 86 * 22 * 93 + - COUNT ( * ) col0
----
23
175955

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT + NULLIF ( 45, - COUNT( * ) / - 77 )
----
45

skipif mysql # not compatible
query I rowsort label-4782
SELECT + NULLIF ( 45, - COUNT ( * ) / - 77 )
----
45

query I rowsort
SELECT 35 * 61 AS col2
----
2135

onlyif mysql # aggregate syntax: 
query I rowsort label-4784
SELECT 16 * - 72 + - 26 * COUNT( * )
----
-1178

skipif mysql # not compatible
query I rowsort label-4784
SELECT 16 * - 72 + - 26 * COUNT ( * )
----
-1178

query I rowsort
SELECT DISTINCT 38 + - - 98
----
136

query I rowsort
SELECT DISTINCT 52 + - 38
----
14

query I rowsort
SELECT 75 - - 86
----
161

query I rowsort
SELECT - 9 * + 18 * + - 5 AS col1
----
810

query I rowsort
SELECT DISTINCT 79 * + - NULLIF ( - + 13, + 88 ) AS col2
----
1027

query I rowsort
SELECT - 53 * + 15 + - - NULLIF ( + 19, 14 * - + NULLIF ( 69, + - 90 ) - - 63 + + 11 * + 26 ) AS col1
----
-776

query I rowsort
SELECT 65 * - 98
----
-6370

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT ALL - - ( - - COUNT( * ) ) * + COUNT( 96 ) + + 5 * 87
----
436

skipif mysql # not compatible
query I rowsort label-4792
SELECT ALL - - ( - - COUNT ( * ) ) * + COUNT ( 96 ) + + 5 * 87
----
436

query I rowsort
SELECT ALL + - 5 - NULLIF ( - 2, + - 90 )
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4794
SELECT COUNT( * ) * + 94 * 70 + 2 * + + 49 AS col1, + 58 AS col0
----
6678
58

skipif mysql # not compatible
query II rowsort label-4794
SELECT COUNT ( * ) * + 94 * 70 + 2 * + + 49 AS col1, + 58 AS col0
----
6678
58

query I rowsort
SELECT DISTINCT 68 * + 76 * + 46 AS col2
----
237728

onlyif mysql # aggregate syntax: 
query II rowsort label-4796
SELECT ALL + MIN( DISTINCT 58 ) AS col2, 15
----
58
15

skipif mysql # not compatible
query II rowsort label-4796
SELECT ALL + MIN ( DISTINCT 58 ) AS col2, 15
----
58
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT ALL - MIN( - - 16 ) col0
----
-16

skipif mysql # not compatible
query I rowsort label-4797
SELECT ALL - MIN ( - - 16 ) col0
----
-16

query I rowsort
SELECT - + NULLIF ( + 1, + ( + - 14 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT - 25 * + + MIN( ALL + + 99 ) + + - 12
----
-2487

skipif mysql # not compatible
query I rowsort label-4799
SELECT - 25 * + + MIN ( ALL + + 99 ) + + - 12
----
-2487

query I rowsort
SELECT - COALESCE ( + 25, + + 35, + 16 )
----
-25

query I rowsort
SELECT 94 + 60 AS col1
----
154

query I rowsort
SELECT 0 * - 45 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4803
SELECT 36 + - 92 + - - 25 + - 33 * 46 DIV - 57
----
-5

skipif mysql # not compatible
query I rowsort label-4803
SELECT 36 + - 92 + - - 25 + - 33 * 46 / - 57
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4804
SELECT DISTINCT - COUNT( * ) * + 31 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-4804
SELECT DISTINCT - COUNT ( * ) * + 31 AS col0
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4805
SELECT ALL - CAST( - 14 AS SIGNED ) * 57
----
798

skipif mysql # not compatible
query I rowsort label-4805
SELECT ALL - CAST ( - 14 AS INTEGER ) * 57
----
798

onlyif mysql # aggregate syntax: 
query I rowsort label-4806
SELECT DISTINCT + MAX( DISTINCT + 81 ) + 5
----
86

skipif mysql # not compatible
query I rowsort label-4806
SELECT DISTINCT + MAX ( DISTINCT + 81 ) + 5
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4807
SELECT DISTINCT - 11 * 66 * - COUNT( * ) * + 99 AS col2, CAST( NULL AS SIGNED ) + 44 col1
----
71874
NULL

skipif mysql # not compatible
query II rowsort label-4807
SELECT DISTINCT - 11 * 66 * - COUNT ( * ) * + 99 AS col2, CAST ( NULL AS INTEGER ) + 44 col1
----
71874
NULL

query I rowsort
SELECT ALL 81 + 76 + - - 85 AS col0
----
242

onlyif mysql # aggregate syntax: 
query I rowsort label-4809
SELECT DISTINCT 40 + - - ( + COUNT( * ) ) + + + 95 - - 64 * + 92
----
6024

skipif mysql # not compatible
query I rowsort label-4809
SELECT DISTINCT 40 + - - ( + COUNT ( * ) ) + + + 95 - - 64 * + 92
----
6024

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT 39 + - COUNT( * ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-4810
SELECT 39 + - COUNT ( * ) AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT ALL - SUM( - 87 ) * - COUNT( DISTINCT 90 ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-4811
SELECT ALL - SUM ( - 87 ) * - COUNT ( DISTINCT 90 ) AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT DISTINCT - COUNT( DISTINCT - 17 )
----
-1

skipif mysql # not compatible
query I rowsort label-4812
SELECT DISTINCT - COUNT ( DISTINCT - 17 )
----
-1

query I rowsort
SELECT 25 * + 96
----
2400

query I rowsort
SELECT 30 * + 42 + + 21 col1
----
1281

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT DISTINCT - MIN( DISTINCT + 52 ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-4815
SELECT DISTINCT - MIN ( DISTINCT + 52 ) AS col0
----
-52

query I rowsort
SELECT ALL - 21 + + 18 AS col2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4817
SELECT 48 * + 8 - + 14 - - CAST( + NULLIF ( - - SUM( - + 52 ), - 21 ) AS SIGNED ) * - 7 * - 8 AS col2
----
-2542

skipif mysql # not compatible
query I rowsort label-4817
SELECT 48 * + 8 - + 14 - - CAST ( + NULLIF ( - - SUM ( - + 52 ), - 21 ) AS INTEGER ) * - 7 * - 8 AS col2
----
-2542

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4818
SELECT DISTINCT - COUNT( * ) + - COUNT( ALL + - 0 ) + + + 40 - + + 88 DIV + COUNT( + 21 ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-4818
SELECT DISTINCT - COUNT ( * ) + - COUNT ( ALL + - 0 ) + + + 40 - + + 88 / + COUNT ( + 21 ) AS col2
----
-50

query I rowsort
SELECT ALL + 49 + - 76
----
-27

query I rowsort
SELECT ALL + 23 * + 61 + - 7 AS col1
----
1396

query I rowsort
SELECT DISTINCT + 65 - COALESCE ( 58, + - 87, - + 4 ) * - 86 * + 10 - 61
----
49884

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4822
SELECT ALL - CAST( 10 AS SIGNED )
----
-10

skipif mysql # not compatible
query I rowsort label-4822
SELECT ALL - CAST ( 10 AS INTEGER )
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4823
SELECT + 45 * - + COUNT( * ) DIV + 78 + + 42 + + 34
----
76

skipif mysql # not compatible
query I rowsort label-4823
SELECT + 45 * - + COUNT ( * ) / + 78 + + 42 + + 34
----
76

query II rowsort
SELECT - 72, 0 AS col0
----
-72
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4825
SELECT MAX( DISTINCT - - 73 ) + COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-4825
SELECT MAX ( DISTINCT - - 73 ) + COUNT ( * )
----
74

query I rowsort
SELECT 51 * 77 - 26 - NULLIF ( + 44, + 41 )
----
3857

query I rowsort
SELECT ALL - 2 * - + 1
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4828
SELECT DISTINCT 13 DIV - - 42 - + + 71 + + - 89 DIV 27 * - - ( 51 )
----
-224

skipif mysql # not compatible
query I rowsort label-4828
SELECT DISTINCT 13 / - - 42 - + + 71 + + - 89 / 27 * - - ( 51 )
----
-224

query II rowsort
SELECT DISTINCT 73 AS col0, 6 AS col0
----
73
6

query I rowsort
SELECT ALL - 47 * - - 51 AS col1
----
-2397

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT + 1 + - - 37 * + COUNT( * ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-4831
SELECT + 1 + - - 37 * + COUNT ( * ) AS col2
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-4832
SELECT ALL 70 DIV + 62 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4832
SELECT ALL 70 / + 62 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4833
SELECT - 23 * + CAST( - - 9 AS SIGNED )
----
-207

skipif mysql # not compatible
query I rowsort label-4833
SELECT - 23 * + CAST ( - - 9 AS INTEGER )
----
-207

query I rowsort
SELECT ALL 97 * + + 57 AS col1
----
5529

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4835
SELECT + 76 / + - 24 * + - COUNT( * ) + - + ( - NULLIF ( - - ( + 18 ), - 66 ) ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4835
SELECT + 76 / + - 24 * + - COUNT ( * ) + - + ( - NULLIF ( - - ( + 18 ), - 66 ) ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 10 * + ( + 77 ) AS col2
----
770

query I rowsort
SELECT ALL 23 + + - 1 * + 8
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT ALL COUNT( DISTINCT - 37 ) + - MIN( DISTINCT + ( ( - 25 ) ) )
----
26

skipif mysql # not compatible
query I rowsort label-4838
SELECT ALL COUNT ( DISTINCT - 37 ) + - MIN ( DISTINCT + ( ( - 25 ) ) )
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4839
SELECT - CASE COUNT( * ) WHEN + 86 THEN 24 + + ( - - ( - - 12 ) ) - 3 + + 46 DIV - ( MAX( ALL 24 ) ) + + 17 ELSE COUNT( * ) - - 34 END AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-4839
SELECT - CASE COUNT ( * ) WHEN + 86 THEN 24 + + ( - - ( - - 12 ) ) - 3 + + 46 / - ( MAX ( ALL 24 ) ) + + 17 ELSE COUNT ( * ) - - 34 END AS col1
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4840
SELECT DISTINCT COALESCE ( - - 32, + - 89 ) + COUNT( * ) DIV - 61 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-4840
SELECT DISTINCT COALESCE ( - - 32, + - 89 ) + COUNT ( * ) / - 61 AS col1
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-4841
SELECT ALL 75 * 47 DIV - 33 AS col1
----
-106

skipif mysql # not compatible
query I rowsort label-4841
SELECT ALL 75 * 47 / - 33 AS col1
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT 35 * + ( NULLIF ( - + ( 30 ), 55 + + COUNT( * ) ) ) col1
----
-1050

skipif mysql # not compatible
query I rowsort label-4842
SELECT 35 * + ( NULLIF ( - + ( 30 ), 55 + + COUNT ( * ) ) ) col1
----
-1050

query II rowsort
SELECT ALL ( 54 ) + - NULLIF ( + - 94, - 20 ) AS col0, 40 AS col1
----
148
40

query I rowsort
SELECT - NULLIF ( + 34, CASE WHEN 89 IS NOT NULL THEN - 16 END )
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-4845
SELECT - COUNT( * ) + - ( - - 98 ) - - ( 56 ) * + COUNT( * ) - - 53, + 33 AS col0
----
10
33

skipif mysql # not compatible
query II rowsort label-4845
SELECT - COUNT ( * ) + - ( - - 98 ) - - ( 56 ) * + COUNT ( * ) - - 53, + 33 AS col0
----
10
33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4846
SELECT DISTINCT + 16 + + 18 + CAST( NULL AS SIGNED ) - + 49 * - 53 AS col2, 66 + 94 AS col2
----
NULL
160

skipif mysql # not compatible
query II rowsort label-4846
SELECT DISTINCT + 16 + + 18 + CAST ( NULL AS INTEGER ) - + 49 * - 53 AS col2, 66 + 94 AS col2
----
NULL
160

query I rowsort
SELECT ALL - 62 * + 78
----
-4836

query I rowsort
SELECT DISTINCT + 21 * 84 + 41 AS col0
----
1805

query I rowsort
SELECT DISTINCT - 44 * - 26 * + 11 AS col2
----
12584

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT ALL + ( - 52 ) * + - COUNT( * ) + - 13
----
39

skipif mysql # not compatible
query I rowsort label-4850
SELECT ALL + ( - 52 ) * + - COUNT ( * ) + - 13
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-4851
SELECT + ( 88 ) DIV - 90 + + 58
----
58

skipif mysql # not compatible
query I rowsort label-4851
SELECT + ( 88 ) / - 90 + + 58
----
58

query I rowsort
SELECT - - 61 * - 68
----
-4148

query I rowsort
SELECT - 13 * 15
----
-195

query I rowsort
SELECT + + 80 + - NULLIF ( - 60, - 92 )
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT ALL 2 * - COUNT( * ) + - 0 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4855
SELECT ALL 2 * - COUNT ( * ) + - 0 AS col1
----
-2

query I rowsort
SELECT ALL + ( - 61 ) AS col0
----
-61

query II rowsort
SELECT DISTINCT - 6 * - - 84 AS col2, - 60
----
-504
-60

query I rowsort
SELECT - 29 * 10 + - 90
----
-380

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT SUM( ALL 86 )
----
86

skipif mysql # not compatible
query I rowsort label-4859
SELECT SUM ( ALL 86 )
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4860
SELECT ALL - - COUNT( * ) * - 56 + + 90 DIV + 62 + + COUNT( * )
----
-54

skipif mysql # not compatible
query I rowsort label-4860
SELECT ALL - - COUNT ( * ) * - 56 + + 90 / + 62 + + COUNT ( * )
----
-54

query I rowsort
SELECT + + ( + 48 ) * + 52 + - 17 + + 61 * - - 44
----
5163

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT + + 29 * - SUM( DISTINCT 10 ) AS col2
----
-290

skipif mysql # not compatible
query I rowsort label-4862
SELECT + + 29 * - SUM ( DISTINCT 10 ) AS col2
----
-290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4863
SELECT ALL CAST( + 22 AS SIGNED ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-4863
SELECT ALL CAST ( + 22 AS INTEGER ) AS col0
----
22

query I rowsort
SELECT DISTINCT - ( - 58 )
----
58

query I rowsort
SELECT DISTINCT + 10 + - 87 + - - 31 * + COALESCE ( 6, - 86 )
----
109

query I rowsort
SELECT ALL 5 + + + ( 53 ) AS col2
----
58

query I rowsort
SELECT + 70 - - - 82
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-4868
SELECT + 87 DIV - 33 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4868
SELECT + 87 / - 33 AS col2
----
-2

query I rowsort
SELECT ALL 69 + - 81 - - 89 AS col0
----
77

query I rowsort
SELECT + 34 + + 28 col0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4871
SELECT ALL 4 + - - CAST( - 15 AS SIGNED )
----
-11

skipif mysql # not compatible
query I rowsort label-4871
SELECT ALL 4 + - - CAST ( - 15 AS INTEGER )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT + 10 + - COUNT( * ) + 30 * + 89 AS col1
----
2679

skipif mysql # not compatible
query I rowsort label-4872
SELECT + 10 + - COUNT ( * ) + 30 * + 89 AS col1
----
2679

query I rowsort
SELECT - 33 + 43 AS col1
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-4874
SELECT - ( + 36 ) DIV - - ( - 27 ) - + 5
----
-4

skipif mysql # not compatible
query I rowsort label-4874
SELECT - ( + 36 ) / - - ( - 27 ) - + 5
----
-4

query II rowsort
SELECT DISTINCT 92 AS col1, 83 AS col0
----
92
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4876
SELECT ALL NULLIF ( + CAST( ( ( 11 ) ) AS SIGNED ), - 91 )
----
11

skipif mysql # not compatible
query I rowsort label-4876
SELECT ALL NULLIF ( + CAST ( ( ( 11 ) ) AS INTEGER ), - 91 )
----
11

query II rowsort
SELECT 94, - 74 AS col1
----
94
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4878
SELECT DISTINCT - SUM( - + 54 ) - - - COUNT( * ) * + 19 + + 84 + COALESCE ( - COUNT( * ), - 86 + 31 + + - COUNT( * ) * - ( ( - + 93 ) ), - 0 + - ( - 9 ) + - + COUNT( * ) + - CASE 22 WHEN COUNT( DISTINCT 67 ) DIV + 22 + 34 + - COUNT( * ) THEN NULL ELSE - 86 END * - 20 DIV + + 88 * 50 + CAST( + COUNT( * ) AS SIGNED ) + - 16 DIV + 76, - 32 ) * - 29
----
148

skipif mysql # not compatible
query I rowsort label-4878
SELECT DISTINCT - SUM ( - + 54 ) - - - COUNT ( * ) * + 19 + + 84 + COALESCE ( - COUNT ( * ), - 86 + 31 + + - COUNT ( * ) * - ( ( - + 93 ) ), - 0 + - ( - 9 ) + - + COUNT ( * ) + - CASE 22 WHEN COUNT ( DISTINCT 67 ) / + 22 + 34 + - COUNT ( * ) THEN NULL ELSE - 86 END * - 20 / + + 88 * 50 + CAST ( + COUNT ( * ) AS INTEGER ) + - 16 / + 76, - 32 ) * - 29
----
148

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4879
SELECT + 44 * - 94 * CAST( NULL AS DECIMAL ) * + 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4879
SELECT + 44 * - 94 * CAST ( NULL AS REAL ) * + 89 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4880
SELECT + MAX( DISTINCT - 7 ) - 68
----
-75

skipif mysql # not compatible
query I rowsort label-4880
SELECT + MAX ( DISTINCT - 7 ) - 68
----
-75

query I rowsort
SELECT - NULLIF ( 13, 96 * - - 42 + - + 67 + - 37 )
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-4882
SELECT + + 40 * + 19 + - 26 - + 5 * 62 * - - ( SUM( DISTINCT CAST( - + 48 AS SIGNED ) ) ) * - - 42 AS col2, 78 DIV + 74 + - 90 AS col0, + 76
----
625694
-89
76

skipif mysql # not compatible
query III rowsort label-4882
SELECT + + 40 * + 19 + - 26 - + 5 * 62 * - - ( SUM ( DISTINCT CAST ( - + 48 AS INTEGER ) ) ) * - - 42 AS col2, 78 / + 74 + - 90 AS col0, + 76
----
625694
-89
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4883
SELECT ALL + + CAST( - ( - 43 ) AS SIGNED ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-4883
SELECT ALL + + CAST ( - ( - 43 ) AS INTEGER ) AS col1
----
43

query I rowsort
SELECT DISTINCT + ( - 2 ) * 79 AS col0
----
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT DISTINCT + + NULLIF ( + - COUNT( * ), + 1 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4885
SELECT DISTINCT + + NULLIF ( + - COUNT ( * ), + 1 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT ALL + 69 * - - COUNT( * ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-4886
SELECT ALL + 69 * - - COUNT ( * ) AS col0
----
69

query I rowsort
SELECT + - NULLIF ( + - 71, 45 + + + 31 ) AS col2
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4888
SELECT - + CAST( NULL AS SIGNED ) * + - 87 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4888
SELECT - + CAST ( NULL AS INTEGER ) * + - 87 AS col2
----
NULL

query I rowsort
SELECT ALL 7 * 59 + 34 * + 93 + 97
----
3672

onlyif mysql # aggregate syntax: 
query II rowsort label-4890
SELECT + 19 * - 9 * COUNT( * ), - 84 AS col2
----
-171
-84

skipif mysql # not compatible
query II rowsort label-4890
SELECT + 19 * - 9 * COUNT ( * ), - 84 AS col2
----
-171
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4891
SELECT - NULLIF ( - COUNT( * ), + CASE - 1 WHEN + 79 THEN + + 62 WHEN + 81 DIV 93 - + 84 THEN NULL END ) * + 63 + + 64 DIV 20 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-4891
SELECT - NULLIF ( - COUNT ( * ), + CASE - 1 WHEN + 79 THEN + + 62 WHEN + 81 / 93 - + 84 THEN NULL END ) * + 63 + + 64 / 20 AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT ALL + 10 * + SUM( DISTINCT + 86 ) + + ( + ( - + COUNT( * ) ) ) col1
----
859

skipif mysql # not compatible
query I rowsort label-4892
SELECT ALL + 10 * + SUM ( DISTINCT + 86 ) + + ( + ( - + COUNT ( * ) ) ) col1
----
859

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4893
SELECT - 70 + + - COUNT( * ) * - - 92 DIV + 43 AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-4893
SELECT - 70 + + - COUNT ( * ) * - - 92 / + 43 AS col2
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4894
SELECT DISTINCT CAST( + - CAST( - ( + + 54 ) AS SIGNED ) AS SIGNED ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-4894
SELECT DISTINCT CAST ( + - CAST ( - ( + + 54 ) AS INTEGER ) AS INTEGER ) AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT SUM( ( ( + - 44 ) ) ) col0
----
-44

skipif mysql # not compatible
query I rowsort label-4895
SELECT SUM ( ( ( + - 44 ) ) ) col0
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4896
SELECT ALL - 59 * CAST( NULL AS SIGNED ) + - - 15 / - + 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4896
SELECT ALL - 59 * CAST ( NULL AS INTEGER ) + - - 15 / - + 39 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4897
SELECT DISTINCT + CAST( - 81 AS SIGNED ) * + 99 * - - MIN( - - 53 ) * 87 + + 88 + + 84 + - - 62 + - 78 AS col2
----
-36975453

skipif mysql # not compatible
query I rowsort label-4897
SELECT DISTINCT + CAST ( - 81 AS INTEGER ) * + 99 * - - MIN ( - - 53 ) * 87 + + 88 + + 84 + - - 62 + - 78 AS col2
----
-36975453

query I rowsort
SELECT 25 + + 0 * + 2
----
25

query I rowsort
SELECT 29 * + 98 AS col2
----
2842

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4900
SELECT CASE + 26 WHEN - - 98 + COALESCE ( - 66, + - 54 ) * - + COUNT( * ) THEN - - 40 + - ( + - CAST( - 94 AS SIGNED ) ) - - 20 + - SUM( - 95 ) + - 18 + - COUNT( * ) + - + 32 / + 24 * - + COALESCE ( + - ( - COALESCE ( - + 69, ( + 75 ), + - 58 ) ), ( 51 ) * 84 / + - 58 - ( - - 52 ) + COUNT( * ) ) WHEN + COUNT( * ) * + 78 * MIN( DISTINCT + 71 ) + - 57 + - 95 - - 5 * + 14 * + - 99 / - + 8 + - - 25 * 91 + - + 26 THEN NULL ELSE NULL END + COUNT( * ) * 33 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4900
SELECT CASE + 26 WHEN - - 98 + COALESCE ( - 66, + - 54 ) * - + COUNT ( * ) THEN - - 40 + - ( + - CAST ( - 94 AS INTEGER ) ) - - 20 + - SUM ( - 95 ) + - 18 + - COUNT ( * ) + - + 32 / + 24 * - + COALESCE ( + - ( - COALESCE ( - + 69, ( + 75 ), + - 58 ) ), ( 51 ) * 84 / + - 58 - ( - - 52 ) + COUNT ( * ) ) WHEN + COUNT ( * ) * + 78 * MIN ( DISTINCT + 71 ) + - 57 + - 95 - - 5 * + 14 * + - 99 / - + 8 + - - 25 * 91 + - + 26 THEN NULL ELSE NULL END + COUNT ( * ) * 33 AS col2
----
NULL

query I rowsort
SELECT ALL 22 * - 90 AS col1
----
-1980

onlyif mysql # aggregate syntax: 
query II rowsort label-4902
SELECT - 78 AS col1, COUNT( * ) AS col2
----
-78
1

skipif mysql # not compatible
query II rowsort label-4902
SELECT - 78 AS col1, COUNT ( * ) AS col2
----
-78
1

query I rowsort
SELECT ALL - ( - 94 ) - - 22 AS col0
----
116

query I rowsort
SELECT ALL + ( 54 ) * + 69 AS col0
----
3726

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4905
SELECT ALL + CAST( + 74 AS SIGNED ) * + - COUNT( * ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-4905
SELECT ALL + CAST ( + 74 AS INTEGER ) * + - COUNT ( * ) AS col0
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-4906
SELECT ALL 44, COUNT( * ) + + - 65 + + 74 + + 27 + + 55 + - 11 * - 0 + - + 47 * 10 * - + COUNT( ALL - 54 ) AS col2
----
44
562

skipif mysql # not compatible
query II rowsort label-4906
SELECT ALL 44, COUNT ( * ) + + - 65 + + 74 + + 27 + + 55 + - 11 * - 0 + - + 47 * 10 * - + COUNT ( ALL - 54 ) AS col2
----
44
562

query I rowsort
SELECT 54 * + ( 60 )
----
3240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4908
SELECT CASE - 61 WHEN + + 96 THEN - COUNT( * ) + + + 54 * + 91 * + ( - COUNT( + - ( - 6 ) ) ) * CASE + + NULLIF ( - COALESCE ( + 68, 29, + - 40 ), + ( + + 28 ) / ( + 22 ) + - 87 ) WHEN - + 93 THEN NULL WHEN + COUNT( * ) + CAST( 90 AS SIGNED ) THEN - COUNT( * ) * 97 ELSE NULL END + + - 87 + 50 ELSE + - ( 48 ) END - + 99 + 26 + - 89
----
-210

skipif mysql # not compatible
query I rowsort label-4908
SELECT CASE - 61 WHEN + + 96 THEN - COUNT ( * ) + + + 54 * + 91 * + ( - COUNT ( + - ( - 6 ) ) ) * CASE + + NULLIF ( - COALESCE ( + 68, 29, + - 40 ), + ( + + 28 ) / ( + 22 ) + - 87 ) WHEN - + 93 THEN NULL WHEN + COUNT ( * ) + CAST ( 90 AS INTEGER ) THEN - COUNT ( * ) * 97 ELSE NULL END + + - 87 + 50 ELSE + - ( 48 ) END - + 99 + 26 + - 89
----
-210

query I rowsort
SELECT ALL 8 * - + 35
----
-280

query I rowsort
SELECT - 4 * + 34
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT + 38 * + ( COUNT( * ) ) + + COUNT( DISTINCT - + 82 ) * 20 * - MAX( + 16 )
----
-282

skipif mysql # not compatible
query I rowsort label-4911
SELECT + 38 * + ( COUNT ( * ) ) + + COUNT ( DISTINCT - + 82 ) * 20 * - MAX ( + 16 )
----
-282

query I rowsort
SELECT DISTINCT - ( + + 32 ) * + + 15 AS col1
----
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT 3 * - + MAX( - - 49 ) + + - MAX( ALL + 24 )
----
-171

skipif mysql # not compatible
query I rowsort label-4913
SELECT 3 * - + MAX ( - - 49 ) + + - MAX ( ALL + 24 )
----
-171

onlyif mysql # aggregate syntax: 
query II rowsort label-4914
SELECT - COUNT( + 70 ) AS col2, - 80 AS col0
----
-1
-80

skipif mysql # not compatible
query II rowsort label-4914
SELECT - COUNT ( + 70 ) AS col2, - 80 AS col0
----
-1
-80

query I rowsort
SELECT ALL + 39 * - 83 AS col1
----
-3237

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4916
SELECT DISTINCT COUNT( * ) + CAST( 44 AS SIGNED ) + + - 5 * COUNT( * ) + - COUNT( * ) + + 25
----
64

skipif mysql # not compatible
query I rowsort label-4916
SELECT DISTINCT COUNT ( * ) + CAST ( 44 AS INTEGER ) + + - 5 * COUNT ( * ) + - COUNT ( * ) + + 25
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4917
SELECT SUM( DISTINCT - 40 ) + COUNT( * ) + + 53 + 96 / CAST( NULL AS SIGNED ) * MAX( + 76 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4917
SELECT SUM ( DISTINCT - 40 ) + COUNT ( * ) + + 53 + 96 / CAST ( NULL AS INTEGER ) * MAX ( + 76 ) col0
----
NULL

query I rowsort
SELECT ALL + 48 + - 1 * + 18
----
30

query I rowsort
SELECT DISTINCT + 90 + + 43 AS col1
----
133

query II rowsort
SELECT 21 AS col2, + 27 * - + 59
----
21
-1593

query I rowsort
SELECT + 75 * 69 + + 36 AS col0
----
5211

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT ALL + ( + 67 ) + + 82 + - SUM( 94 )
----
55

skipif mysql # not compatible
query I rowsort label-4922
SELECT ALL + ( + 67 ) + + 82 + - SUM ( 94 )
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-4923
SELECT + + 59 AS col2, 60 * + COUNT( * )
----
59
60

skipif mysql # not compatible
query II rowsort label-4923
SELECT + + 59 AS col2, 60 * + COUNT ( * )
----
59
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4924
SELECT ALL - - 87 + - CAST( NULL AS SIGNED ) + 97 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4924
SELECT ALL - - 87 + - CAST ( NULL AS INTEGER ) + 97 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT 10 * - ( COUNT( * ) )
----
-10

skipif mysql # not compatible
query I rowsort label-4925
SELECT 10 * - ( COUNT ( * ) )
----
-10

query I rowsort
SELECT 45 * + 63 * + 71 col2
----
201285

query I rowsort
SELECT ALL + 2 + + + 83
----
85

query I rowsort
SELECT ( 34 ) - 59 col0
----
-25

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4929
SELECT 29 DIV 34 * + CAST( 75 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4929
SELECT 29 / 34 * + CAST ( 75 AS INTEGER )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4930
SELECT 64 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4930
SELECT 64 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4931
SELECT 35 * + CAST( + 90 AS SIGNED ) AS col2
----
3150

skipif mysql # not compatible
query I rowsort label-4931
SELECT 35 * + CAST ( + 90 AS INTEGER ) AS col2
----
3150

query I rowsort
SELECT ALL - 3 - - - 36
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT MIN( 26 ) - + - 71 + - + 86 col2
----
11

skipif mysql # not compatible
query I rowsort label-4933
SELECT MIN ( 26 ) - + - 71 + - + 86 col2
----
11

query II rowsort
SELECT ALL + 40 * + + 51 AS col0, 62 AS col1
----
2040
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT 54 + COUNT( ALL + 38 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-4935
SELECT 54 + COUNT ( ALL + 38 ) AS col0
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-4936
SELECT CASE + 65 WHEN - 0 THEN NULL WHEN 69 * + 1 * - + COALESCE ( + + 98, + + 63 ) THEN - - 19 ELSE 26 END * - 98 DIV - - 95 - - - 47
----
-73

skipif mysql # not compatible
query I rowsort label-4936
SELECT CASE + 65 WHEN - 0 THEN NULL WHEN 69 * + 1 * - + COALESCE ( + + 98, + + 63 ) THEN - - 19 ELSE 26 END * - 98 / - - 95 - - - 47
----
-73

query II rowsort
SELECT 63 + + + 49 * 79 AS col0, 85 * + 15 AS col2
----
3934
1275

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT ALL - 40 * CASE - + 98 WHEN + - COUNT( * ) THEN 99 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4938
SELECT ALL - 40 * CASE - + 98 WHEN + - COUNT ( * ) THEN 99 END
----
NULL

query I rowsort
SELECT 79 * + 41
----
3239

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT ALL - MIN( ALL - 45 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-4940
SELECT ALL - MIN ( ALL - 45 ) AS col2
----
45

query I rowsort
SELECT 48 + - 45
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4942
SELECT ALL - 63 DIV - 3 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-4942
SELECT ALL - 63 / - 3 AS col2
----
21

onlyif mysql # aggregate syntax: 
query III rowsort label-4943
SELECT 79 * 96 AS col2, - 76 * COUNT( ALL - 36 ) AS col1, - 19 AS col0
----
7584
-76
-19

skipif mysql # not compatible
query III rowsort label-4943
SELECT 79 * 96 AS col2, - 76 * COUNT ( ALL - 36 ) AS col1, - 19 AS col0
----
7584
-76
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT ALL 7 + + CASE + - 85 WHEN COUNT( * ) THEN - 18 / + - 53 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4944
SELECT ALL 7 + + CASE + - 85 WHEN COUNT ( * ) THEN - 18 / + - 53 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4945
SELECT + 31 * + 44 + - 90 * + 60 + + 48 + SUM( DISTINCT 41 ) - 1 * 61 * + + 72 * - 15 + ( + 47 ) AS col0, 46 AS col2
----
61980
46

skipif mysql # not compatible
query II rowsort label-4945
SELECT + 31 * + 44 + - 90 * + 60 + + 48 + SUM ( DISTINCT 41 ) - 1 * 61 * + + 72 * - 15 + ( + 47 ) AS col0, 46 AS col2
----
61980
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4946
SELECT + 74 * - + CAST( 62 AS SIGNED ) + - CASE 15 WHEN - + COUNT( * ) * - 28 * + AVG ( ALL + - 35 ) - - - COUNT( * ) + + 49 + COUNT( - 92 ) + + + 79 * - 82 * ( - - COUNT( - 62 ) ) / + + 96 / + + 55 THEN NULL WHEN 33 / COUNT( * ) + - 45 - + CAST( NULL AS DECIMAL ) + CAST( NULL AS SIGNED ) * - MIN( + - 9 ) + - - 93 * - + 18 THEN NULL ELSE - 79 END
----
-4509

skipif mysql # not compatible
query I rowsort label-4946
SELECT + 74 * - + CAST ( 62 AS INTEGER ) + - CASE 15 WHEN - + COUNT ( * ) * - 28 * + AVG ( ALL + - 35 ) - - - COUNT ( * ) + + 49 + COUNT ( - 92 ) + + + 79 * - 82 * ( - - COUNT ( - 62 ) ) / + + 96 / + + 55 THEN NULL WHEN 33 / COUNT ( * ) + - 45 - + CAST ( NULL AS REAL ) + CAST ( NULL AS INTEGER ) * - MIN ( + - 9 ) + - - 93 * - + 18 THEN NULL ELSE - 79 END
----
-4509

query I rowsort
SELECT - 18 * 32 * - - 73
----
-42048

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4948
SELECT ALL 35 * + SUM( - 42 ) + + 87 - + - 2 * + 43 * + CAST( + + 49 AS SIGNED )
----
2831

skipif mysql # not compatible
query I rowsort label-4948
SELECT ALL 35 * + SUM ( - 42 ) + + 87 - + - 2 * + 43 * + CAST ( + + 49 AS INTEGER )
----
2831

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT DISTINCT + NULLIF ( + 54, 35 ) * + 85 + - 52 + - 29 * SUM( - - 89 ) + COUNT( * ) AS col0
----
1958

skipif mysql # not compatible
query I rowsort label-4949
SELECT DISTINCT + NULLIF ( + 54, 35 ) * + 85 + - 52 + - 29 * SUM ( - - 89 ) + COUNT ( * ) AS col0
----
1958

onlyif mysql # DIV for integer division: 
query I rowsort label-4950
SELECT ALL + - 72 * + - 4 + - 0 DIV - - 89 AS col1
----
288

skipif mysql # not compatible
query I rowsort label-4950
SELECT ALL + - 72 * + - 4 + - 0 / - - 89 AS col1
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT ALL 10 * CASE + - 48 WHEN + ( + + 34 ) - COUNT( * ) + + - COUNT( - - 54 ) + + 38 THEN - 45 * - + 71 * + CASE - 11 WHEN - - 80 THEN - ( - 47 ) * - 84 * - + 48 + - 64 + - 18 + - + 86 + + 66 * + + 67 - + 85 WHEN + 50 THEN NULL END WHEN + 54 THEN - NULLIF ( + + 45, - - 2 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4951
SELECT ALL 10 * CASE + - 48 WHEN + ( + + 34 ) - COUNT ( * ) + + - COUNT ( - - 54 ) + + 38 THEN - 45 * - + 71 * + CASE - 11 WHEN - - 80 THEN - ( - 47 ) * - 84 * - + 48 + - 64 + - 18 + - + 86 + + 66 * + + 67 - + 85 WHEN + 50 THEN NULL END WHEN + 54 THEN - NULLIF ( + + 45, - - 2 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4952
SELECT DISTINCT - 23 * 75 * + + 47 + - COUNT( * )
----
-81076

skipif mysql # not compatible
query I rowsort label-4952
SELECT DISTINCT - 23 * 75 * + + 47 + - COUNT ( * )
----
-81076

query I rowsort
SELECT DISTINCT 32 * - 44 AS col1
----
-1408

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT - - 23 * 32 * 45 + + SUM( DISTINCT 91 ) - + 72 * CASE - ( - 75 ) WHEN - 9 - - 93 * + + 84 THEN + COALESCE ( 60, - - 50, - 44 * + - SUM( - ( + 77 ) ) + 75 ) + - + 91 * - 67 WHEN + - 37 THEN NULL ELSE NULL END * + - ( + - 67 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4954
SELECT - - 23 * 32 * 45 + + SUM ( DISTINCT 91 ) - + 72 * CASE - ( - 75 ) WHEN - 9 - - 93 * + + 84 THEN + COALESCE ( 60, - - 50, - 44 * + - SUM ( - ( + 77 ) ) + 75 ) + - + 91 * - 67 WHEN + - 37 THEN NULL ELSE NULL END * + - ( + - 67 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4955
SELECT - 41 * - COUNT( * ) DIV - 53, 24 + 6 AS col1
----
0
30

skipif mysql # not compatible
query II rowsort label-4955
SELECT - 41 * - COUNT ( * ) / - 53, 24 + 6 AS col1
----
0
30

query I rowsort
SELECT + 11 + 94 AS col1
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-4957
SELECT - COUNT( * ) - - 90 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-4957
SELECT - COUNT ( * ) - - 90 AS col0
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4958
SELECT SUM( CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4958
SELECT SUM ( CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4959
SELECT COUNT( * ) * - 79 + - SUM( DISTINCT 41 ) * + - COUNT( * ) + CAST( - 2 AS SIGNED ) * 42 + - 24 * + + 44 * 98 * + COUNT( * ) * - MAX( ALL - 64 ) * 3
----
-19869818

skipif mysql # not compatible
query I rowsort label-4959
SELECT COUNT ( * ) * - 79 + - SUM ( DISTINCT 41 ) * + - COUNT ( * ) + CAST ( - 2 AS INTEGER ) * 42 + - 24 * + + 44 * 98 * + COUNT ( * ) * - MAX ( ALL - 64 ) * 3
----
-19869818

query I rowsort
SELECT + 5 * + - 69
----
-345

query I rowsort
SELECT ALL + COALESCE ( + + CASE - ( - 7 ) WHEN + 69 + - 4 * - 80 THEN NULLIF ( ( - 37 ), - 25 ) ELSE NULL END, 42 ) col1
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-4962
SELECT ALL 45 DIV + 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4962
SELECT ALL 45 / + 91 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4963
SELECT - 57 + + 78 / - - AVG ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4963
SELECT - 57 + + 78 / - - AVG ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4964
SELECT ALL - 99 * - ( - - COUNT( * ) )
----
99

skipif mysql # not compatible
query I rowsort label-4964
SELECT ALL - 99 * - ( - - COUNT ( * ) )
----
99

query I rowsort
SELECT DISTINCT 80 * + ( - + 81 ) * - 10 AS col1
----
64800

query I rowsort
SELECT - CASE + 76 WHEN - ( 11 ) / 69 + - + 52 THEN - 57 END AS col2
----
NULL

query I rowsort
SELECT 44 * 34 + + - ( - 32 ) AS col1
----
1528

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT DISTINCT MAX( DISTINCT 68 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-4968
SELECT DISTINCT MAX ( DISTINCT 68 ) AS col1
----
68

query II rowsort
SELECT 99 col0, 54 * + - 59 + - - 3 * - CASE - 39 WHEN 14 THEN + 21 END AS col1
----
99
NULL

query I rowsort
SELECT - ( - 80 ) * + ( 95 ) * 79
----
600400

query I rowsort
SELECT DISTINCT 38 * - 45 AS col2
----
-1710

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT ALL - COUNT( * ) + - 41 AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-4972
SELECT ALL - COUNT ( * ) + - 41 AS col2
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-4973
SELECT DISTINCT + 54 DIV 16 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-4973
SELECT DISTINCT + 54 / 16 AS col1
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-4974
SELECT DISTINCT + - 25 + + 41 DIV + 34 col1, 81
----
-24
81

skipif mysql # not compatible
query II rowsort label-4974
SELECT DISTINCT + - 25 + + 41 / + 34 col1, 81
----
-24
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4975
SELECT - 22 + + 3 + - - 87 DIV + 51 AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-4975
SELECT - 22 + + 3 + - - 87 / + 51 AS col1
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4976
SELECT ALL + CAST( - + 30 AS SIGNED ) + - - 91
----
61

skipif mysql # not compatible
query I rowsort label-4976
SELECT ALL + CAST ( - + 30 AS INTEGER ) + - - 91
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT DISTINCT + NULLIF ( 12, + CASE - 96 WHEN + SUM( - 29 ) THEN 83 + - 69 ELSE NULL END * + + COUNT( * ) + MIN( DISTINCT + 18 ) * - 12 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-4977
SELECT DISTINCT + NULLIF ( 12, + CASE - 96 WHEN + SUM ( - 29 ) THEN 83 + - 69 ELSE NULL END * + + COUNT ( * ) + MIN ( DISTINCT + 18 ) * - 12 ) AS col1
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4978
SELECT + - COUNT( * ) + - CAST( NULL AS SIGNED ) + + 96 + - ( + - 42 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4978
SELECT + - COUNT ( * ) + - CAST ( NULL AS INTEGER ) + + 96 + - ( + - 42 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT - - SUM( ALL - 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-4979
SELECT - - SUM ( ALL - 73 )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4980
SELECT ALL + COUNT( ALL 67 )
----
1

skipif mysql # not compatible
query I rowsort label-4980
SELECT ALL + COUNT ( ALL 67 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4981
SELECT ALL + CAST( NULL AS SIGNED ) / - + 62 - - 28 - - 12 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4981
SELECT ALL + CAST ( NULL AS INTEGER ) / - + 62 - - 28 - - 12 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4982
SELECT - 95 * 3 DIV 35
----
-8

skipif mysql # not compatible
query I rowsort label-4982
SELECT - 95 * 3 / 35
----
-8

query II rowsort
SELECT + 38 AS col0, + 6 AS col2
----
38
6

query I rowsort
SELECT + + 19 + + 13 col1
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4985
SELECT DISTINCT + 13 DIV - COUNT( * ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-4985
SELECT DISTINCT + 13 / - COUNT ( * ) AS col2
----
-13

query I rowsort
SELECT ALL + + ( - 25 ) AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4987
SELECT ALL 99 * 30 * COUNT( * )
----
2970

skipif mysql # not compatible
query I rowsort label-4987
SELECT ALL 99 * 30 * COUNT ( * )
----
2970

onlyif mysql # DIV for integer division: 
query I rowsort label-4988
SELECT + 5 DIV - 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4988
SELECT + 5 / - 97 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4989
SELECT DISTINCT + 30 DIV 65 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4989
SELECT DISTINCT + 30 / 65 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT ALL ( + MIN( - 52 ) ) * + - 77
----
4004

skipif mysql # not compatible
query I rowsort label-4990
SELECT ALL ( + MIN ( - 52 ) ) * + - 77
----
4004

query I rowsort
SELECT DISTINCT 5 * + - ( 20 )
----
-100

query I rowsort
SELECT - 28 * 49
----
-1372

onlyif mysql # aggregate syntax: 
query I rowsort label-4993
SELECT ALL 39 * - COUNT( * ) * 19 AS col2
----
-741

skipif mysql # not compatible
query I rowsort label-4993
SELECT ALL 39 * - COUNT ( * ) * 19 AS col2
----
-741

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT CASE 85 WHEN - 75 THEN NULL WHEN 89 * - CASE - COALESCE ( 97, - - 10, 78 / 21 + - 32 ) WHEN - 49 * 66 + - 17 + + - 7 THEN NULL WHEN + ( - 81 ) * 14 THEN COUNT( * ) ELSE NULL END / - + ( COALESCE ( - COUNT( ALL - + 25 ), - AVG ( DISTINCT + 35 ) ) ) + - - 3 - + - 12 THEN - 73 + + ( - 28 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4994
SELECT CASE 85 WHEN - 75 THEN NULL WHEN 89 * - CASE - COALESCE ( 97, - - 10, 78 / 21 + - 32 ) WHEN - 49 * 66 + - 17 + + - 7 THEN NULL WHEN + ( - 81 ) * 14 THEN COUNT ( * ) ELSE NULL END / - + ( COALESCE ( - COUNT ( ALL - + 25 ), - AVG ( DISTINCT + 35 ) ) ) + - - 3 - + - 12 THEN - 73 + + ( - 28 ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 51 * + 11
----
561

onlyif mysql # aggregate syntax: 
query I rowsort label-4996
SELECT ALL 54 * - 40 * + 46 + 92 + + 62 * + + COUNT( * ) - 31 + + 69 * - 23
----
-100824

skipif mysql # not compatible
query I rowsort label-4996
SELECT ALL 54 * - 40 * + 46 + 92 + + 62 * + + COUNT ( * ) - 31 + + 69 * - 23
----
-100824

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT COUNT( DISTINCT + - 80 ) col2
----
1

skipif mys