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 mysql # not compatible
query I rowsort label-4997
SELECT COUNT ( DISTINCT + - 80 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4998
SELECT ALL MIN( ALL - ( - 69 ) ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-4998
SELECT ALL MIN ( ALL - ( - 69 ) ) AS col0
----
69

query I rowsort
SELECT ALL 91 * + 8 * + - 85 + + - 11
----
-61891

onlyif mysql # aggregate syntax: 
query I rowsort label-5000
SELECT DISTINCT CASE - + 12 WHEN + + COALESCE ( - COUNT( * ), + MAX( DISTINCT - 17 ) * - 36 * - 19 ) THEN + 88 WHEN + COUNT( * ) * 2 / - - 35 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5000
SELECT DISTINCT CASE - + 12 WHEN + + COALESCE ( - COUNT ( * ), + MAX ( DISTINCT - 17 ) * - 36 * - 19 ) THEN + 88 WHEN + COUNT ( * ) * 2 / - - 35 THEN NULL END
----
NULL

query I rowsort
SELECT ALL + 3 * + 88 + + 52 - 81 AS col2
----
235

query I rowsort
SELECT DISTINCT 91 + + 55 * + COALESCE ( 74, + 94 ) + - - 58 AS col0
----
4219

query I rowsort
SELECT ALL ( - 76 ) + 63 AS col1
----
-13

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5005
SELECT + + SUM( + + 16 ) + 21
----
37

skipif mysql # not compatible
query I rowsort label-5005
SELECT + + SUM ( + + 16 ) + 21
----
37

query I rowsort
SELECT - ( + 83 ) col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-5007
SELECT - COUNT( * ) + - + 57 + 28 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-5007
SELECT - COUNT ( * ) + - + 57 + 28 AS col1
----
-30

query I rowsort
SELECT DISTINCT - 44 + ( 42 )
----
-2

query I rowsort
SELECT ALL + - 48 + 94
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-5010
SELECT DISTINCT - COUNT( * ) - + 79, 16 AS col0
----
-80
16

skipif mysql # not compatible
query II rowsort label-5010
SELECT DISTINCT - COUNT ( * ) - + 79, 16 AS col0
----
-80
16

query II rowsort
SELECT - 13 * - 78 AS col1, + 83
----
1014
83

query I rowsort
SELECT ALL + - 72 * - - 7 AS col1
----
-504

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5013
SELECT CASE CASE 94 WHEN + + 68 * COUNT( * ) THEN - CASE 86 WHEN + 98 THEN + + 98 WHEN + 57 * 83 THEN NULL END ELSE 13 END WHEN + 87 THEN + 90 ELSE + 18 DIV + + 25 END
----
0

skipif mysql # not compatible
query I rowsort label-5013
SELECT CASE CASE 94 WHEN + + 68 * COUNT ( * ) THEN - CASE 86 WHEN + 98 THEN + + 98 WHEN + 57 * 83 THEN NULL END ELSE 13 END WHEN + 87 THEN + 90 ELSE + 18 / + + 25 END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5014
SELECT SUM( + + 76 ) - - 89 AS col0
----
165

skipif mysql # not compatible
query I rowsort label-5014
SELECT SUM ( + + 76 ) - - 89 AS col0
----
165

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT 60 * + + CASE + 69 WHEN MIN( + ( + 19 ) ) THEN + 49 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5016
SELECT 60 * + + CASE + 69 WHEN MIN ( + ( + 19 ) ) THEN + 49 ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT ALL - COALESCE ( 36, - - 98, + 87 + - 94 )
----
-36

query I rowsort
SELECT ALL - NULLIF ( - 65, - 81 )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5020
SELECT 38 * COUNT( * ) * - SUM( - 74 ) * 65 col0
----
182780

skipif mysql # not compatible
query I rowsort label-5020
SELECT 38 * COUNT ( * ) * - SUM ( - 74 ) * 65 col0
----
182780

query I rowsort
SELECT + 57 * - + 27 + + + 16 AS col2
----
-1523

query I rowsort
SELECT DISTINCT - ( - - 51 ) AS col0
----
-51

query I rowsort
SELECT 54 + + - 61
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5024
SELECT + 27 AS col0, + CAST( NULL AS SIGNED ) AS col2
----
27
NULL

skipif mysql # not compatible
query II rowsort label-5024
SELECT + 27 AS col0, + CAST ( NULL AS INTEGER ) AS col2
----
27
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5025
SELECT ALL 92 + - 97 DIV + 53 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-5025
SELECT ALL 92 + - 97 / + 53 AS col1
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-5026
SELECT COUNT( 3 ) + 52 AS col0, - 70
----
53
-70

skipif mysql # not compatible
query II rowsort label-5026
SELECT COUNT ( 3 ) + 52 AS col0, - 70
----
53
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT ( ( - COUNT( ALL + 14 ) ) ) - 61
----
-62

skipif mysql # not compatible
query I rowsort label-5027
SELECT ( ( - COUNT ( ALL + 14 ) ) ) - 61
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5028
SELECT ALL COUNT( * ) * - ( - - 13 ) * - - 22 * + 35 AS col0
----
-10010

skipif mysql # not compatible
query I rowsort label-5028
SELECT ALL COUNT ( * ) * - ( - - 13 ) * - - 22 * + 35 AS col0
----
-10010

query I rowsort
SELECT DISTINCT + 99 + - 76 - 66 AS col0
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5030
SELECT + 38 col1, MIN( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0
----
38
NULL

skipif mysql # not compatible
query II rowsort label-5030
SELECT + 38 col1, MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0
----
38
NULL

query I rowsort
SELECT DISTINCT 3 + + COALESCE ( 97, - 49, 62 ) + 12 AS col1
----
112

query I rowsort
SELECT DISTINCT - 27 + - 99 AS col0
----
-126

query I rowsort
SELECT ALL 50 * 13 * + - 61 AS col1
----
-39650

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5035
SELECT - 3 AS col2, 57 DIV - COUNT( * )
----
-3
-57

skipif mysql # not compatible
query II rowsort label-5035
SELECT - 3 AS col2, 57 / - COUNT ( * )
----
-3
-57

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

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

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

skipif mysql # not compatible
query I rowsort label-5037
SELECT DISTINCT COUNT ( * ) - + ( + ( 98 ) ) AS col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5038
SELECT ALL CASE 44 WHEN 29 * - 32 THEN + AVG ( ALL 74 ) * COUNT( * ) + + 71 WHEN - COUNT( * ) THEN 13 - 51 END - 76 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5038
SELECT ALL CASE 44 WHEN 29 * - 32 THEN + AVG ( ALL 74 ) * COUNT ( * ) + + 71 WHEN - COUNT ( * ) THEN 13 - 51 END - 76 AS col0
----
NULL

query I rowsort
SELECT COALESCE ( 62, - 26 ) * + 18
----
1116

query I rowsort
SELECT ALL ( 47 ) * 86
----
4042

onlyif mysql # aggregate syntax: 
query I rowsort label-5041
SELECT DISTINCT COUNT( * ) - - 18 * + COALESCE ( - 37, 37, 76 )
----
-665

skipif mysql # not compatible
query I rowsort label-5041
SELECT DISTINCT COUNT ( * ) - - 18 * + COALESCE ( - 37, 37, 76 )
----
-665

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5044
SELECT ALL NULLIF ( + COUNT( - 86 ), - 61 ) DIV + 57
----
0

skipif mysql # not compatible
query I rowsort label-5044
SELECT ALL NULLIF ( + COUNT ( - 86 ), - 61 ) / + 57
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT NULLIF ( - 38, AVG ( 58 ) - 80 / 28 ) * + COUNT( * ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-5045
SELECT NULLIF ( - 38, AVG ( 58 ) - 80 / 28 ) * + COUNT ( * ) AS col1
----
-38

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5049
SELECT ( 70 ) - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5049
SELECT ( 70 ) - CAST ( NULL AS INTEGER ) col1
----
NULL

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

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

query I rowsort
SELECT 67 * + 18 AS col1
----
1206

query I rowsort
SELECT DISTINCT ( + 68 ) * 54 AS col2
----
3672

onlyif mysql # aggregate syntax: 
query I rowsort label-5053
SELECT NULLIF ( 80, - 97 ) + COUNT( * ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-5053
SELECT NULLIF ( 80, - 97 ) + COUNT ( * ) AS col1
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-5054
SELECT 48 DIV - 51
----
0

skipif mysql # not compatible
query I rowsort label-5054
SELECT 48 / - 51
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5055
SELECT ALL - 75 DIV - 47 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5055
SELECT ALL - 75 / - 47 AS col2
----
1

query I rowsort
SELECT ALL - COALESCE ( + 94, + 13 ) AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5057
SELECT + CASE - 51 WHEN - COUNT( * ) THEN + 58 + - 40 WHEN 80 THEN NULL END / 71 + + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-5057
SELECT + CASE - 51 WHEN - COUNT ( * ) THEN + 58 + - 40 WHEN 80 THEN NULL END / 71 + + 3
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5058
SELECT ALL - SUM ( ( - 79 ) )
----
79

query I rowsort
SELECT DISTINCT + 30 + 24
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT 83 * CASE + 7 * 34 WHEN 2 THEN NULL WHEN 97 THEN COALESCE ( - 33, - CASE COALESCE ( 2, - 3 ) WHEN 22 THEN NULL ELSE COUNT( * ) END - + 94, 68 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5060
SELECT 83 * CASE + 7 * 34 WHEN 2 THEN NULL WHEN 97 THEN COALESCE ( - 33, - CASE COALESCE ( 2, - 3 ) WHEN 22 THEN NULL ELSE COUNT ( * ) END - + 94, 68 ) END AS col0
----
NULL

query I rowsort
SELECT ALL + 12 + - 80 AS col1
----
-68

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

skipif mysql # not compatible
query I rowsort label-5062
SELECT + MIN ( 63 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT DISTINCT + 95 + - 42 * + COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-5063
SELECT DISTINCT + 95 + - 42 * + COUNT ( * )
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5064
SELECT ALL + 86 * CASE WHEN NOT NULL IS NOT NULL THEN - COUNT( * ) DIV + MIN( DISTINCT - 64 ) END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5064
SELECT ALL + 86 * CASE WHEN NOT NULL IS NOT NULL THEN - COUNT ( * ) / + MIN ( DISTINCT - 64 ) END AS col2
----
0

query I rowsort
SELECT 73 * - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT ALL + 13 + CASE 18 WHEN COUNT( * ) * 95 + CASE ( + 5 ) WHEN - COUNT( * ) THEN + 93 + + 74 END THEN - 36 - - 78 * + 42 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5066
SELECT ALL + 13 + CASE 18 WHEN COUNT ( * ) * 95 + CASE ( + 5 ) WHEN - COUNT ( * ) THEN + 93 + + 74 END THEN - 36 - - 78 * + 42 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5067
SELECT DISTINCT - CAST( - 11 AS SIGNED ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-5067
SELECT DISTINCT - CAST ( - 11 AS INTEGER ) AS col0
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-5068
SELECT ALL COALESCE ( + 43, ( - 96 ) DIV + 65 ) + - 53
----
-10

skipif mysql # not compatible
query I rowsort label-5068
SELECT ALL COALESCE ( + 43, ( - 96 ) / + 65 ) + - 53
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT MIN( - 73 ) * + 10 AS col1
----
-730

skipif mysql # not compatible
query I rowsort label-5069
SELECT MIN ( - 73 ) * + 10 AS col1
----
-730

query I rowsort
SELECT ALL + 77 + + 89 * 57 AS col0
----
5150

query I rowsort
SELECT ALL - 50 + + 50
----
0

query I rowsort
SELECT 14 * 32 - - 81
----
529

query I rowsort
SELECT + 10 * - ( + 17 ) - - 28 AS col0
----
-142

query I rowsort
SELECT DISTINCT 90 * - 4
----
-360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5075
SELECT COALESCE ( CASE + 25 WHEN + COALESCE ( - 11, 66 ) + CAST( 4 - - 33 * - 75 AS SIGNED ) THEN NULL WHEN MIN( DISTINCT + 73 ) THEN NULL ELSE - 3 * - 17 END, ( - 35 ) ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-5075
SELECT COALESCE ( CASE + 25 WHEN + COALESCE ( - 11, 66 ) + CAST ( 4 - - 33 * - 75 AS INTEGER ) THEN NULL WHEN MIN ( DISTINCT + 73 ) THEN NULL ELSE - 3 * - 17 END, ( - 35 ) ) AS col1
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-5076
SELECT ALL - - 14 DIV 4 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-5076
SELECT ALL - - 14 / 4 AS col0
----
3

query I rowsort
SELECT + 68 * + 74 col2
----
5032

query I rowsort
SELECT ALL - 53 * + 24 AS col2
----
-1272

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT COUNT( ALL 58 ) - 65 AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-5079
SELECT COUNT ( ALL 58 ) - 65 AS col2
----
-64

query I rowsort
SELECT ALL + COALESCE ( - 58, + 49 * - 54 )
----
-58

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5082
SELECT - 35 DIV 65
----
0

skipif mysql # not compatible
query I rowsort label-5082
SELECT - 35 / 65
----
0

query I rowsort
SELECT + + 39 - + 94 AS col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT - COUNT( * ) * 66
----
-66

skipif mysql # not compatible
query I rowsort label-5084
SELECT - COUNT ( * ) * 66
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5085
SELECT + CAST( NULL AS SIGNED ) * NULLIF ( 19, 94 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5085
SELECT + CAST ( NULL AS INTEGER ) * NULLIF ( 19, 94 )
----
NULL

query I rowsort
SELECT - 62 + + 99 AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT + + COUNT( * ) + - 97 * + 70
----
-6789

skipif mysql # not compatible
query I rowsort label-5087
SELECT + + COUNT ( * ) + - 97 * + 70
----
-6789

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT + - ( 16 ) * - MIN( DISTINCT + 5 ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-5088
SELECT + - ( 16 ) * - MIN ( DISTINCT + 5 ) AS col2
----
80

query I rowsort
SELECT ALL + 76 + ( 89 )
----
165

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

skipif mysql # not compatible
query I rowsort label-5090
SELECT DISTINCT - COUNT ( * ) + + 11 AS col0
----
10

query I rowsort
SELECT DISTINCT 82 + + 89 + 22 * + ( 60 ) AS col1
----
1491

query I rowsort
SELECT ALL 40 + 17
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT + 46 + + COUNT( * ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-5093
SELECT + 46 + + COUNT ( * ) AS col0
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5094
SELECT + 11 DIV - MAX( - 63 ) * 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5094
SELECT + 11 / - MAX ( - 63 ) * 82 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT ALL 30 * - - 90 + NULLIF ( - SUM( - 22 ), - 73 ) * 43
----
3646

skipif mysql # not compatible
query I rowsort label-5095
SELECT ALL 30 * - - 90 + NULLIF ( - SUM ( - 22 ), - 73 ) * 43
----
3646

query I rowsort
SELECT + 22 + + + 51 col0
----
73

query I rowsort
SELECT - 28 * 75 AS col0
----
-2100

query I rowsort
SELECT ALL 74 * 78 + - 3 AS col1
----
5769

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5099
SELECT ALL ( + 82 ) * + CASE NULLIF ( + ( CAST( 68 AS SIGNED ) ), - 9 ) + - 79 WHEN + 67 THEN MAX( DISTINCT 35 ) - - 89 END + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5099
SELECT ALL ( + 82 ) * + CASE NULLIF ( + ( CAST ( 68 AS INTEGER ) ), - 9 ) + - 79 WHEN + 67 THEN MAX ( DISTINCT 35 ) - - 89 END + - COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5100
SELECT DISTINCT 36 * - 8 * + CAST( NULL AS DECIMAL ) + 47 * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5100
SELECT DISTINCT 36 * - 8 * + CAST ( NULL AS REAL ) + 47 * + COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5101
SELECT ALL + ( - ( 45 ) ) * 7 + COALESCE ( - COUNT( * ), 65 * + 70 + CAST( NULL AS SIGNED ) * - ( 34 ), 13 * - MIN( 23 ) )
----
-316

skipif mysql # not compatible
query I rowsort label-5101
SELECT ALL + ( - ( 45 ) ) * 7 + COALESCE ( - COUNT ( * ), 65 * + 70 + CAST ( NULL AS INTEGER ) * - ( 34 ), 13 * - MIN ( 23 ) )
----
-316

onlyif mysql # aggregate syntax: 
query I rowsort label-5102
SELECT - COUNT( * ) + + - COALESCE ( - 30, 22 ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-5102
SELECT - COUNT ( * ) + + - COALESCE ( - 30, 22 ) AS col0
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5103
SELECT - 10 * + 31 + ( + COALESCE ( - COUNT( * ), + 86, CAST( NULL AS SIGNED ) ) )
----
-311

skipif mysql # not compatible
query I rowsort label-5103
SELECT - 10 * + 31 + ( + COALESCE ( - COUNT ( * ), + 86, CAST ( NULL AS INTEGER ) ) )
----
-311

query I rowsort
SELECT ALL 23 * + COALESCE ( - 0, 4 ) - + 21
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT + 35 * - 32 + - CASE - 45 WHEN ( MIN( ALL CASE + 16 WHEN 67 - + 18 THEN - 53 WHEN - 33 + 57 THEN NULL END ) ) THEN NULL ELSE 3 END
----
-1123

skipif mysql # not compatible
query I rowsort label-5105
SELECT + 35 * - 32 + - CASE - 45 WHEN ( MIN ( ALL CASE + 16 WHEN 67 - + 18 THEN - 53 WHEN - 33 + 57 THEN NULL END ) ) THEN NULL ELSE 3 END
----
-1123

onlyif mysql # aggregate syntax: 
query I rowsort label-5106
SELECT + COUNT( * ) + - COUNT( * ) + + MAX( ALL - 79 ) * + 82
----
-6478

skipif mysql # not compatible
query I rowsort label-5106
SELECT + COUNT ( * ) + - COUNT ( * ) + + MAX ( ALL - 79 ) * + 82
----
-6478

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

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

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

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

query I rowsort
SELECT - 91 - 69 + - 38 * 96 AS col1
----
-3808

query I rowsort
SELECT - 2 * - 49 AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT - MAX( ALL + - 60 ) * 16 + 86 AS col0
----
1046

skipif mysql # not compatible
query I rowsort label-5111
SELECT - MAX ( ALL + - 60 ) * 16 + 86 AS col0
----
1046

onlyif mysql # aggregate syntax: 
query I rowsort label-5112
SELECT DISTINCT 12 * - 95 * SUM( 46 ) - 2 * 44
----
-52528

skipif mysql # not compatible
query I rowsort label-5112
SELECT DISTINCT 12 * - 95 * SUM ( 46 ) - 2 * 44
----
-52528

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

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

skipif mysql # not compatible
query I rowsort label-5114
SELECT ALL + CAST ( - 28 AS INTEGER ) col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-5115
SELECT - - 18 + COUNT( * ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-5115
SELECT - - 18 + COUNT ( * ) AS col1
----
19

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

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

query I rowsort
SELECT - 93 + - 10 * + 41
----
-503

query I rowsort
SELECT - + 41 + - 93 AS col0
----
-134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5119
SELECT - - CASE 1 WHEN + 83 THEN - MIN( DISTINCT 2 ) + + CAST( NULL AS SIGNED ) ELSE NULL END + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5119
SELECT - - CASE 1 WHEN + 83 THEN - MIN ( DISTINCT 2 ) + + CAST ( NULL AS INTEGER ) ELSE NULL END + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL 21 + 55
----
76

query I rowsort
SELECT - 91 + - 29 AS col1
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT ALL - + SUM( 46 ) + + 9 * 67 col0
----
557

skipif mysql # not compatible
query I rowsort label-5122
SELECT ALL - + SUM ( 46 ) + + 9 * 67 col0
----
557

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

query I rowsort
SELECT - ( + 68 ) col0
----
-68

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

skipif mysql # not compatible
query I rowsort label-5125
SELECT - MIN ( + - 84 )
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5126
SELECT + COALESCE ( + + 32, ( 69 ) * MIN( - 85 DIV + COALESCE ( + COALESCE ( - 36, + 94 DIV 73, 44 - 49 * + CAST( NULL AS SIGNED ) ), - 38 ) ) + 37 ) + + 44 col0
----
76

skipif mysql # not compatible
query I rowsort label-5126
SELECT + COALESCE ( + + 32, ( 69 ) * MIN ( - 85 / + COALESCE ( + COALESCE ( - 36, + 94 / 73, 44 - 49 * + CAST ( NULL AS INTEGER ) ), - 38 ) ) + 37 ) + + 44 col0
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5127
SELECT ALL 10, - CAST( NULL AS SIGNED ) AS col1
----
10
NULL

skipif mysql # not compatible
query II rowsort label-5127
SELECT ALL 10, - CAST ( NULL AS INTEGER ) AS col1
----
10
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5128
SELECT - 99 * 8 / CASE - CAST( 72 AS SIGNED ) WHEN + 68 THEN - NULLIF ( COALESCE ( - NULLIF ( + 51, - COUNT( * ) / 80 ), + MIN( ALL 54 ), + 99 ), 38 ) / - ( 66 * 55 ) WHEN - 65 + - 58 THEN + CAST( NULL AS SIGNED ) + 2 / + COUNT( * ) END * 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5128
SELECT - 99 * 8 / CASE - CAST ( 72 AS INTEGER ) WHEN + 68 THEN - NULLIF ( COALESCE ( - NULLIF ( + 51, - COUNT ( * ) / 80 ), + MIN ( ALL 54 ), + 99 ), 38 ) / - ( 66 * 55 ) WHEN - 65 + - 58 THEN + CAST ( NULL AS INTEGER ) + 2 / + COUNT ( * ) END * 36 AS col2
----
NULL

query I rowsort
SELECT + 5 + - 19 + + 55 AS col2
----
41

query I rowsort
SELECT - COALESCE ( + 15, 96, ( + 14 ) )
----
-15

query II rowsort
SELECT ALL + 24 AS col0, 35 + + 56 + + 80 AS col2
----
24
171

query I rowsort
SELECT DISTINCT 80 * 57
----
4560

onlyif mysql # aggregate syntax: 
query II rowsort label-5133
SELECT DISTINCT + 31 col1, + 35 + - COUNT( * )
----
31
34

skipif mysql # not compatible
query II rowsort label-5133
SELECT DISTINCT + 31 col1, + 35 + - COUNT ( * )
----
31
34

query I rowsort
SELECT + COALESCE ( + 83, - 40 * 96 + + 89 * 1 )
----
83

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5136
SELECT ALL 27 * + SUM( + 55 )
----
1485

skipif mysql # not compatible
query I rowsort label-5136
SELECT ALL 27 * + SUM ( + 55 )
----
1485

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5138
SELECT + 15 + + 41 + + CAST( 70 AS SIGNED )
----
126

skipif mysql # not compatible
query I rowsort label-5138
SELECT + 15 + + 41 + + CAST ( 70 AS INTEGER )
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT ALL + MAX( DISTINCT - - 54 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-5139
SELECT ALL + MAX ( DISTINCT - - 54 ) AS col1
----
54

query I rowsort
SELECT ALL 79 * 72 AS col2
----
5688

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

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

query I rowsort
SELECT ALL 91 * + 92
----
8372

query I rowsort
SELECT + 3 * - 27 AS col1
----
-81

query I rowsort
SELECT + 79 * 30
----
2370

query I rowsort
SELECT ALL 85 * - 98 col1
----
-8330

onlyif mysql # DIV for integer division: 
query I rowsort label-5146
SELECT DISTINCT - + 76 DIV + 17 - + 20 + 15 * ( + 89 ) * 54
----
72066

skipif mysql # not compatible
query I rowsort label-5146
SELECT DISTINCT - + 76 / + 17 - + 20 + 15 * ( + 89 ) * 54
----
72066

onlyif mysql # aggregate syntax: 
query I rowsort label-5147
SELECT ALL + + COUNT( * ) / - - SUM( - COALESCE ( 6, 48 - 56, - 5 ) ) + CASE 85 + ( 57 ) WHEN - 16 - + 91 THEN ( 30 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5147
SELECT ALL + + COUNT ( * ) / - - SUM ( - COALESCE ( 6, 48 - 56, - 5 ) ) + CASE 85 + ( 57 ) WHEN - 16 - + 91 THEN ( 30 ) END AS col2
----
NULL

query I rowsort
SELECT 42 * + 78
----
3276

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

skipif mysql # not compatible
query I rowsort label-5149
SELECT ALL COUNT ( * ) / - + 31
----
0

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

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

query I rowsort
SELECT ALL - - 34 * 98 AS col1
----
3332

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5152
SELECT - COALESCE ( 50, - CAST( NULL AS DECIMAL ) ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5152
SELECT - COALESCE ( 50, - CAST ( NULL AS REAL ) ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ( + 70 ) + - 52 AS col0
----
18

query II rowsort
SELECT - - 11 AS col2, 14
----
11
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT ALL - - CASE + + 65 WHEN - - COUNT( * ) THEN + MAX( DISTINCT - 89 ) END * 59 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5155
SELECT ALL - - CASE + + 65 WHEN - - COUNT ( * ) THEN + MAX ( DISTINCT - 89 ) END * 59 AS col2
----
NULL

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

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

query I rowsort
SELECT ALL 36 * 17 * - - 10 AS col0
----
6120

query I rowsort
SELECT - 80 - + + 41 * 53 AS col2
----
-2253

onlyif mysql # aggregate syntax: 
query I rowsort label-5159
SELECT DISTINCT - COUNT( * ) + - COALESCE ( + 16, + 48 * CASE CASE + COALESCE ( 35, COALESCE ( 9, 10 * + 38 + SUM( ALL NULLIF ( 75, 84 * + 22 + + 50 ) ) / + NULLIF ( 90 * + CASE + 20 / + 91 WHEN + 22 + 82 THEN - 15 WHEN - 22 * - 80 THEN NULL ELSE 16 * 27 END, 66 * COALESCE ( 15 / 58, - 15 ) ) ), 51 * + 10 ) WHEN - 99 THEN COUNT( * ) + + 26 * 33 WHEN - 81 THEN COUNT( * ) * 28 END * ( + 7 ) WHEN - 57 * + 31 THEN + ( - COUNT( * ) ) WHEN - COUNT( * ) THEN 15 END + 17 * COUNT( * ) ) * + 51
----
-817

skipif mysql # not compatible
query I rowsort label-5159
SELECT DISTINCT - COUNT ( * ) + - COALESCE ( + 16, + 48 * CASE CASE + COALESCE ( 35, COALESCE ( 9, 10 * + 38 + SUM ( ALL NULLIF ( 75, 84 * + 22 + + 50 ) ) / + NULLIF ( 90 * + CASE + 20 / + 91 WHEN + 22 + 82 THEN - 15 WHEN - 22 * - 80 THEN NULL ELSE 16 * 27 END, 66 * COALESCE ( 15 / 58, - 15 ) ) ), 51 * + 10 ) WHEN - 99 THEN COUNT ( * ) + + 26 * 33 WHEN - 81 THEN COUNT ( * ) * 28 END * ( + 7 ) WHEN - 57 * + 31 THEN + ( - COUNT ( * ) ) WHEN - COUNT ( * ) THEN 15 END + 17 * COUNT ( * ) ) * + 51
----
-817

onlyif mysql # aggregate syntax: 
query I rowsort label-5160
SELECT DISTINCT + + COUNT( * ) + - + 53 + + NULLIF ( 12, - MIN( ALL 27 ) * COUNT( DISTINCT - 66 ) ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-5160
SELECT DISTINCT + + COUNT ( * ) + - + 53 + + NULLIF ( 12, - MIN ( ALL 27 ) * COUNT ( DISTINCT - 66 ) ) AS col0
----
-40

query II rowsort
SELECT - 3 AS col1, 37 AS col1
----
-3
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5162
SELECT ALL + COUNT( * ) + + MAX( DISTINCT + 36 ) + - 49 DIV - 82
----
37

skipif mysql # not compatible
query I rowsort label-5162
SELECT ALL + COUNT ( * ) + + MAX ( DISTINCT + 36 ) + - 49 / - 82
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT - MAX( + 44 ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-5163
SELECT - MAX ( + 44 ) AS col2
----
-44

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

skipif mysql # not compatible
query I rowsort label-5164
SELECT - CAST ( - ( + 26 ) AS INTEGER ) AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5165
SELECT ( - + 3 ) + NULLIF ( + 44, COUNT( * ) * ( + 15 / + 95 ) - + COUNT( * ) ) + 1 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-5165
SELECT ( - + 3 ) + NULLIF ( + 44, COUNT ( * ) * ( + 15 / + 95 ) - + COUNT ( * ) ) + 1 AS col0
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-5166
SELECT ALL + 24 DIV - - 80
----
0

skipif mysql # not compatible
query I rowsort label-5166
SELECT ALL + 24 / - - 80
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5167
SELECT ALL - 26 + + + ( MAX( - - 77 ) ) + 81 * - SUM( ALL - 84 * - 12 ) col0
----
-81597

skipif mysql # not compatible
query I rowsort label-5167
SELECT ALL - 26 + + + ( MAX ( - - 77 ) ) + 81 * - SUM ( ALL - 84 * - 12 ) col0
----
-81597

onlyif mysql # aggregate syntax: 
query II rowsort label-5168
SELECT DISTINCT + 36 * + + COUNT( * ) AS col0, 14 AS col2
----
36
14

skipif mysql # not compatible
query II rowsort label-5168
SELECT DISTINCT + 36 * + + COUNT ( * ) AS col0, 14 AS col2
----
36
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT ALL - MAX( DISTINCT - - 39 ) + 29 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-5169
SELECT ALL - MAX ( DISTINCT - - 39 ) + 29 AS col2
----
-10

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

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

query I rowsort
SELECT 82 * + 69 * 19 AS col0
----
107502

onlyif mysql # DIV for integer division: 
query I rowsort label-5172
SELECT ALL + 54 DIV 30 * + 99
----
99

skipif mysql # not compatible
query I rowsort label-5172
SELECT ALL + 54 / 30 * + 99
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5173
SELECT 89 DIV + + 53 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5173
SELECT 89 / + + 53 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5174
SELECT ALL 39 * - 83 * + + 65 / - ( + 31 ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5174
SELECT ALL 39 * - 83 * + + 65 / - ( + 31 ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT ALL - 82 - + - 13 + COUNT( - - ( - 52 ) ) + 39
----
-29

skipif mysql # not compatible
query I rowsort label-5175
SELECT ALL - 82 - + - 13 + COUNT ( - - ( - 52 ) ) + 39
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-5176
SELECT 72 * - 15 AS col2, COUNT( * ) - - SUM( ALL + 92 ) * 85
----
-1080
7821

skipif mysql # not compatible
query II rowsort label-5176
SELECT 72 * - 15 AS col2, COUNT ( * ) - - SUM ( ALL + 92 ) * 85
----
-1080
7821

query I rowsort
SELECT 79 + + + 14 + - 95 AS col1
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-5178
SELECT NULLIF ( + 66, + + 42 ) DIV - - 68 * + 74
----
0

skipif mysql # not compatible
query I rowsort label-5178
SELECT NULLIF ( + 66, + + 42 ) / - - 68 * + 74
----
0

query I rowsort
SELECT 88 + - 75 AS col0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5180
SELECT + COALESCE ( - CAST( + + 17 AS SIGNED ), + + 37, 81 * 77 ) * 85 + + CAST( NULL AS SIGNED ) / 36
----
NULL

skipif mysql # not compatible
query I rowsort label-5180
SELECT + COALESCE ( - CAST ( + + 17 AS INTEGER ), + + 37, 81 * 77 ) * 85 + + CAST ( NULL AS INTEGER ) / 36
----
NULL

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

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

query I rowsort
SELECT DISTINCT - 64 * - 85 AS col1
----
5440

onlyif mysql # DIV for integer division: 
query I rowsort label-5183
SELECT 83 DIV - 35 - - + 1 * - + 95 col1
----
-97

skipif mysql # not compatible
query I rowsort label-5183
SELECT 83 / - 35 - - + 1 * - + 95 col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT ( - 37 ) + MAX( DISTINCT + 40 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-5184
SELECT ( - 37 ) + MAX ( DISTINCT + 40 ) AS col2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5185
SELECT ALL COALESCE ( COUNT( + NULLIF ( + + 10, CAST( NULL AS SIGNED ) ) ), - COUNT( * ) ) * - ( 91 ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-5185
SELECT ALL COALESCE ( COUNT ( + NULLIF ( + + 10, CAST ( NULL AS INTEGER ) ) ), - COUNT ( * ) ) * - ( 91 ) AS col0
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5186
SELECT ALL - CASE - CAST( + - 39 AS SIGNED ) WHEN - - 18 THEN 8 * 54 - - 66 WHEN + 15 + - COUNT( ALL 94 + 72 ) THEN - NULLIF ( - COALESCE ( - 87, ( 8 ), - 94 ), 78 * NULLIF ( 73, + 25 ) ) * + 92 + + 9 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5186
SELECT ALL - CASE - CAST ( + - 39 AS INTEGER ) WHEN - - 18 THEN 8 * 54 - - 66 WHEN + 15 + - COUNT ( ALL 94 + 72 ) THEN - NULLIF ( - COALESCE ( - 87, ( 8 ), - 94 ), 78 * NULLIF ( 73, + 25 ) ) * + 92 + + 9 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5187
SELECT NULLIF ( - + COUNT( * ), - + 62 - + + 76 + + 54 / + 82 * + CASE + 72 * CASE 42 WHEN - CAST( 23 AS SIGNED ) THEN + CAST( NULL AS SIGNED ) ELSE NULL END WHEN 9 THEN + 46 + 96 END ) * - 32 + 96
----
128

skipif mysql # not compatible
query I rowsort label-5187
SELECT NULLIF ( - + COUNT ( * ), - + 62 - + + 76 + + 54 / + 82 * + CASE + 72 * CASE 42 WHEN - CAST ( 23 AS INTEGER ) THEN + CAST ( NULL AS INTEGER ) ELSE NULL END WHEN 9 THEN + 46 + 96 END ) * - 32 + 96
----
128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5188
SELECT 16 DIV - MIN( DISTINCT - - COALESCE ( 25, + 74 DIV - 76, - 34 ) ) + + 84 AS col2
----
84

skipif mysql # not compatible
query I rowsort label-5188
SELECT 16 / - MIN ( DISTINCT - - COALESCE ( 25, + 74 / - 76, - 34 ) ) + + 84 AS col2
----
84

query I rowsort
SELECT COALESCE ( - + 95, - - 90 ) + + + 38 + NULLIF ( - 77, - 70 + 7 * - 86 ) AS col2
----
-134

query I rowsort
SELECT + 14 + + 24 AS col0
----
38

query I rowsort
SELECT ALL 54 * 89 - + ( + + 64 )
----
4742

onlyif mysql # DIV for integer division: 
query II rowsort label-5192
SELECT 34 DIV - 29 AS col2, ( + 24 ) AS col0
----
-1
24

skipif mysql # not compatible
query II rowsort label-5192
SELECT 34 / - 29 AS col2, ( + 24 ) AS col0
----
-1
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5193
SELECT 66 * 54 * + COUNT( * ) + 55 + - 95 * NULLIF ( + 18 * - 37, - 11 * + 36 ) * + MIN( CAST( - 69 AS SIGNED ) ) + 1
----
-4362010

skipif mysql # not compatible
query I rowsort label-5193
SELECT 66 * 54 * + COUNT ( * ) + 55 + - 95 * NULLIF ( + 18 * - 37, - 11 * + 36 ) * + MIN ( CAST ( - 69 AS INTEGER ) ) + 1
----
-4362010

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5194
SELECT ALL - + ( - + ( + ( + 49 ) ) ) + - MAX( - 12 ) DIV 15 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-5194
SELECT ALL - + ( - + ( + ( + 49 ) ) ) + - MAX ( - 12 ) / 15 AS col2
----
49

query I rowsort
SELECT DISTINCT + 2 * - 35
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-5196
SELECT 95 DIV 81 + + 59 DIV - 98
----
1

skipif mysql # not compatible
query I rowsort label-5196
SELECT 95 / 81 + + 59 / - 98
----
1

query I rowsort
SELECT ALL 81 + - 60
----
21

query I rowsort
SELECT ALL - 69 * + 38 + - - 9
----
-2613

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5199
SELECT ALL NULLIF ( + - 44, + MIN( ALL + - 5 ) ) + 97 DIV 10
----
-35

skipif mysql # not compatible
query I rowsort label-5199
SELECT ALL NULLIF ( + - 44, + MIN ( ALL + - 5 ) ) + 97 / 10
----
-35

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5201
SELECT 3 * + - CASE CAST( NULL AS SIGNED ) WHEN - 28 - - 91 * 89 THEN NULL WHEN 4 THEN + 38 * - 71 ELSE NULL END * - COUNT( * ) + - 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5201
SELECT 3 * + - CASE CAST ( NULL AS INTEGER ) WHEN - 28 - - 91 * 89 THEN NULL WHEN 4 THEN + 38 * - 71 ELSE NULL END * - COUNT ( * ) + - 37 AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5203
SELECT - CAST( + - AVG ( + 47 ) AS SIGNED )
----
47

skipif mysql # not compatible
query I rowsort label-5203
SELECT - CAST ( + - AVG ( + 47 ) AS INTEGER )
----
47

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

query I rowsort
SELECT DISTINCT - 37 - + 6 AS col0
----
-43

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

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

query I rowsort
SELECT ALL - 95 - - - 6
----
-101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5208
SELECT DISTINCT + 40 * + - CAST( + + 82 AS SIGNED ) * + 79
----
-259120

skipif mysql # not compatible
query I rowsort label-5208
SELECT DISTINCT + 40 * + - CAST ( + + 82 AS INTEGER ) * + 79
----
-259120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5209
SELECT DISTINCT 16 * - + CAST( + 73 AS SIGNED ) AS col1
----
-1168

skipif mysql # not compatible
query I rowsort label-5209
SELECT DISTINCT 16 * - + CAST ( + 73 AS INTEGER ) AS col1
----
-1168

onlyif mysql # aggregate syntax: 
query I rowsort label-5210
SELECT 98 + - COUNT( * ) * + + 50 AS col2
----
48

skipif mysql # not compatible
query I rowsort label-5210
SELECT 98 + - COUNT ( * ) * + + 50 AS col2
----
48

query I rowsort
SELECT ALL 51 * + 3 col2
----
153

query I rowsort
SELECT 8 + - - 39 AS col1
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5213
SELECT DISTINCT + COUNT( * ) - COALESCE ( - + 23, + 78 * NULLIF ( + 29, COUNT( 79 ) ) - - 46 * ( - ( COALESCE ( + 99, - ( - 26 ) ) ) + + 95 ) ) + - CAST( - 42 AS SIGNED ) col1
----
66

skipif mysql # not compatible
query I rowsort label-5213
SELECT DISTINCT + COUNT ( * ) - COALESCE ( - + 23, + 78 * NULLIF ( + 29, COUNT ( 79 ) ) - - 46 * ( - ( COALESCE ( + 99, - ( - 26 ) ) ) + + 95 ) ) + - CAST ( - 42 AS INTEGER ) col1
----
66

query I rowsort
SELECT ( ( - + 78 ) ) * + 86
----
-6708

query I rowsort
SELECT 17 * + + 43
----
731

onlyif mysql # aggregate syntax: 
query I rowsort label-5216
SELECT ALL MIN( - - 65 ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-5216
SELECT ALL MIN ( - - 65 ) AS col0
----
65

query I rowsort
SELECT 24 + 46 col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5218
SELECT ALL + ( - + 14 ) * - + NULLIF ( + 60, - SUM( DISTINCT 65 ) * ( 63 / + 84 + + 32 ) + 50 )
----
840

skipif mysql # not compatible
query I rowsort label-5218
SELECT ALL + ( - + 14 ) * - + NULLIF ( + 60, - SUM ( DISTINCT 65 ) * ( 63 / + 84 + + 32 ) + 50 )
----
840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5219
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) * + 23 + 31 + + - 99 * + COUNT( * ) * 66
----
-6480

skipif mysql # not compatible
query I rowsort label-5219
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) * + 23 + 31 + + - 99 * + COUNT ( * ) * 66
----
-6480

query I rowsort
SELECT COALESCE ( + 97, + + ( - 36 ) ) AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT - 2 * + - COUNT( + 53 ) * - 81
----
-162

skipif mysql # not compatible
query I rowsort label-5221
SELECT - 2 * + - COUNT ( + 53 ) * - 81
----
-162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5222
SELECT COALESCE ( + NULLIF ( - - 56, - + MAX( DISTINCT + CAST( NULL AS SIGNED ) ) ), - 4 ) col0
----
56

skipif mysql # not compatible
query I rowsort label-5222
SELECT COALESCE ( + NULLIF ( - - 56, - + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) ), - 4 ) col0
----
56

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT - CASE + 74 WHEN + 17 THEN + 56 + + + 60 END * COALESCE ( 67 + - COUNT( * ), - 15 ) + 79 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5225
SELECT - CASE + 74 WHEN + 17 THEN + 56 + + + 60 END * COALESCE ( 67 + - COUNT ( * ), - 15 ) + 79 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5226
SELECT ALL + 97 * + + 49 + CAST( NULL AS SIGNED ) + - 2 * - 4 + 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5226
SELECT ALL + 97 * + + 49 + CAST ( NULL AS INTEGER ) + - 2 * - 4 + 64 AS col2
----
NULL

query I rowsort
SELECT - 12 * + - 3
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5228
SELECT ALL CASE + + COUNT( * ) WHEN + ( + + 62 ) + + 35 / 35 THEN 38 END * 44 + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-5228
SELECT ALL CASE + + COUNT ( * ) WHEN + ( + + 62 ) + + 35 / 35 THEN 38 END * 44 + 81
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5229
SELECT CASE + 5 WHEN - + 73 THEN NULL WHEN - - CASE + 0 WHEN - CASE - 69 WHEN CASE + 69 WHEN + 24 THEN COUNT( * ) WHEN - 16 THEN NULL WHEN COUNT( * ) THEN NULL END * 27 - - 64 THEN NULL WHEN SUM( - 17 ) * CAST( NULL AS SIGNED ) THEN + 7 ELSE - SUM( ALL 93 ) + 86 END THEN - 90 WHEN + 18 - - CAST( NULL AS SIGNED ) THEN NULL END + - 89 THEN + ( - ( 0 ) ) * 9 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5229
SELECT CASE + 5 WHEN - + 73 THEN NULL WHEN - - CASE + 0 WHEN - CASE - 69 WHEN CASE + 69 WHEN + 24 THEN COUNT ( * ) WHEN - 16 THEN NULL WHEN COUNT ( * ) THEN NULL END * 27 - - 64 THEN NULL WHEN SUM ( - 17 ) * CAST ( NULL AS INTEGER ) THEN + 7 ELSE - SUM ( ALL 93 ) + 86 END THEN - 90 WHEN + 18 - - CAST ( NULL AS INTEGER ) THEN NULL END + - 89 THEN + ( - ( 0 ) ) * 9 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5230
SELECT DISTINCT + CAST( + - 34 AS SIGNED ) * - CASE NULLIF ( + + NULLIF ( - 12, + 99 * 21 ), 9 ) WHEN - 84 THEN NULL WHEN + 80 THEN + NULLIF ( - 18, + ( NULLIF ( 60, - 37 * COUNT( DISTINCT 68 / - 95 ) ) ) * + MIN( DISTINCT + 28 ) ) END * 41
----
NULL

skipif mysql # not compatible
query I rowsort label-5230
SELECT DISTINCT + CAST ( + - 34 AS INTEGER ) * - CASE NULLIF ( + + NULLIF ( - 12, + 99 * 21 ), 9 ) WHEN - 84 THEN NULL WHEN + 80 THEN + NULLIF ( - 18, + ( NULLIF ( 60, - 37 * COUNT ( DISTINCT 68 / - 95 ) ) ) * + MIN ( DISTINCT + 28 ) ) END * 41
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5231
SELECT ALL + 18 * + 42 * - - 33 * - NULLIF ( - - 93, 34 * - 77 ) + COALESCE ( ( 42 ), 69 + 40 ) + COUNT( * ) AS col1
----
-2320121

skipif mysql # not compatible
query I rowsort label-5231
SELECT ALL + 18 * + 42 * - - 33 * - NULLIF ( - - 93, 34 * - 77 ) + COALESCE ( ( 42 ), 69 + 40 ) + COUNT ( * ) AS col1
----
-2320121

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT DISTINCT + COUNT( * ) * - 44 + - 69 AS col0
----
-113

skipif mysql # not compatible
query I rowsort label-5232
SELECT DISTINCT + COUNT ( * ) * - 44 + - 69 AS col0
----
-113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5233
SELECT + + 82 * + 89 + 7 + + + 25 + - COUNT( * ) + + MAX( 20 ) * CASE 41 WHEN + MIN( ALL - 96 ) THEN - 70 WHEN + 73 * 45 THEN 54 * 82 - - CAST( NULL AS SIGNED ) WHEN CASE 89 WHEN 27 THEN ( + COUNT( * ) ) WHEN + 23 * - 20 THEN NULL WHEN COUNT( * ) * + 90 THEN - 81 END THEN - 23 * - ( COUNT( * ) * - 29 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5233
SELECT + + 82 * + 89 + 7 + + + 25 + - COUNT ( * ) + + MAX ( 20 ) * CASE 41 WHEN + MIN ( ALL - 96 ) THEN - 70 WHEN + 73 * 45 THEN 54 * 82 - - CAST ( NULL AS INTEGER ) WHEN CASE 89 WHEN 27 THEN ( + COUNT ( * ) ) WHEN + 23 * - 20 THEN NULL WHEN COUNT ( * ) * + 90 THEN - 81 END THEN - 23 * - ( COUNT ( * ) * - 29 ) END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 24 * - 81 - + 61 + + ( + + 40 ) + 49
----
-1916

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT ALL 88 * - + 85 + - NULLIF ( NULLIF ( - 97, + SUM( + 21 ) * - 85 ), - ( - 36 ) * 71 ) * 72 AS col1
----
-496

skipif mysql # not compatible
query I rowsort label-5235
SELECT ALL 88 * - + 85 + - NULLIF ( NULLIF ( - 97, + SUM ( + 21 ) * - 85 ), - ( - 36 ) * 71 ) * 72 AS col1
----
-496

onlyif mysql # DIV for integer division: 
query I rowsort label-5236
SELECT + - 80 DIV - 12
----
6

skipif mysql # not compatible
query I rowsort label-5236
SELECT + - 80 / - 12
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT - 15 - - + COUNT( * ) * - - SUM( - + 37 ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-5237
SELECT - 15 - - + COUNT ( * ) * - - SUM ( - + 37 ) AS col2
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5238
SELECT - 65 col2, 63 + - 47 + - 6 / CAST( NULL AS SIGNED ) / 9
----
-65
NULL

skipif mysql # not compatible
query II rowsort label-5238
SELECT - 65 col2, 63 + - 47 + - 6 / CAST ( NULL AS INTEGER ) / 9
----
-65
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5240
SELECT DISTINCT MAX( 51 ) * + - 14 + - - 93 - + COUNT( * ) + 77 AS col1
----
-545

skipif mysql # not compatible
query I rowsort label-5240
SELECT DISTINCT MAX ( 51 ) * + - 14 + - - 93 - + COUNT ( * ) + 77 AS col1
----
-545

query I rowsort
SELECT + 42 + + 63 AS col1
----
105

query I rowsort
SELECT ALL + + 83 * + + 6 * CASE - - 41 WHEN + NULLIF ( + 21, + 16 ) THEN - ( 30 ) ELSE NULL END - 7 AS col2
----
NULL

query II rowsort
SELECT ALL 53 AS col2, 37 AS col1
----
53
37

query I rowsort
SELECT DISTINCT 76 - + COALESCE ( + CASE - ( + + 43 ) WHEN + 15 THEN NULL WHEN AVG ( + 19 ) THEN NULL ELSE - 25 END, 45 ) AS col2
----
101

onlyif mysql # DIV for integer division: 
query I rowsort label-5245
SELECT ALL 40 DIV - - 95 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5245
SELECT ALL 40 / - - 95 AS col2
----
0

query I rowsort
SELECT - 82 * 20 - 49 AS col0
----
-1689

query I rowsort
SELECT - ( - 42 ) col1
----
42

query II rowsort
SELECT 61 AS col0, 91 * - 37 + - + ( 40 )
----
61
-3407

onlyif mysql # DIV for integer division: 
query I rowsort label-5249
SELECT + 98 DIV - 22 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-5249
SELECT + 98 / - 22 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT + 10 * + MIN( DISTINCT - ( - - 60 ) ) * 45
----
-27000

skipif mysql # not compatible
query I rowsort label-5250
SELECT + 10 * + MIN ( DISTINCT - ( - - 60 ) ) * 45
----
-27000

onlyif mysql # aggregate syntax: 
query I rowsort label-5251
SELECT + ( - - COUNT( * ) ) + - 51 AS col0
----
-50

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

query I rowsort
SELECT - 75 * - 25 AS col0
----
1875

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

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

query I rowsort
SELECT + 80 - + + 90 AS col2
----
-10

query I rowsort
SELECT + 39 * + 53 * + 70 AS col2
----
144690

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT ALL + CASE ( COUNT( * ) ) WHEN ( - 17 ) + + - ( ( - 98 ) ) + 87 * 53 THEN + 97 * ( 60 ) - 66 / + 72 ELSE NULL END + 91 / 18
----
NULL

skipif mysql # not compatible
query I rowsort label-5256
SELECT ALL + CASE ( COUNT ( * ) ) WHEN ( - 17 ) + + - ( ( - 98 ) ) + 87 * 53 THEN + 97 * ( 60 ) - 66 / + 72 ELSE NULL END + 91 / 18
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-5257
SELECT + COUNT( * ) + - 7 AS col1, 8 * 24 * + + CAST( 88 AS DECIMAL ) * - CASE 5 DIV + 8 WHEN 20 DIV + ( 45 ) THEN NULL WHEN + SUM( - 60 ) + - COUNT( * ) THEN - ( 18 ) ELSE + 84 * 81 END AS col0
----
-6
NULL

skipif mysql # not compatible
query II rowsort label-5257
SELECT + COUNT ( * ) + - 7 AS col1, 8 * 24 * + + CAST ( 88 AS REAL ) * - CASE 5 / + 8 WHEN 20 / + ( 45 ) THEN NULL WHEN + SUM ( - 60 ) + - COUNT ( * ) THEN - ( 18 ) ELSE + 84 * 81 END AS col0
----
-6
NULL

query I rowsort
SELECT + 44 + 47
----
91

query II rowsort
SELECT + 20 + + 11 + ( + 38 ), + 10 col0
----
69
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT DISTINCT CASE - + 92 WHEN + - 97 THEN 87 + - + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5260
SELECT DISTINCT CASE - + 92 WHEN + - 97 THEN 87 + - + COUNT ( * ) END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5261
SELECT DISTINCT + CASE - 92 WHEN + CAST( - 52 AS SIGNED ) THEN NULL WHEN - 78 / 56 / + 35 + - 82 + 52 THEN 56 + + 59 * 29 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5261
SELECT DISTINCT + CASE - 92 WHEN + CAST ( - 52 AS INTEGER ) THEN NULL WHEN - 78 / 56 / + 35 + - 82 + 52 THEN 56 + + 59 * 29 END col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5262
SELECT ALL + - 72 DIV - 1 + + - 64
----
8

skipif mysql # not compatible
query I rowsort label-5262
SELECT ALL + - 72 / - 1 + + - 64
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5263
SELECT - - 6 DIV - + 18 + - + ( - 2 ) * - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-5263
SELECT - - 6 / - + 18 + - + ( - 2 ) * - COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT DISTINCT + - MAX( - CASE - 46 WHEN - + 34 + 92 THEN NULL ELSE + + ( 61 ) END )
----
61

skipif mysql # not compatible
query I rowsort label-5264
SELECT DISTINCT + - MAX ( - CASE - 46 WHEN - + 34 + 92 THEN NULL ELSE + + ( 61 ) END )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5265
SELECT - 33 + + MIN( 53 )
----
20

skipif mysql # not compatible
query I rowsort label-5265
SELECT - 33 + + MIN ( 53 )
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5266
SELECT ALL - + 35 DIV - 11 * - COUNT( DISTINCT + - 74 ) + 86 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-5266
SELECT ALL - + 35 / - 11 * - COUNT ( DISTINCT + - 74 ) + 86 AS col1
----
83

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5267
SELECT + - CASE + CAST( 60 AS DECIMAL ) WHEN - MAX( ALL + + 61 ) THEN NULL WHEN + 77 * - 61 THEN + 43 ELSE NULL END * COUNT( * ) + 24 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5267
SELECT + - CASE + CAST ( 60 AS REAL ) WHEN - MAX ( ALL + + 61 ) THEN NULL WHEN + 77 * - 61 THEN + 43 ELSE NULL END * COUNT ( * ) + 24 * + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + - 23 * - - 91
----
-2093

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5269
SELECT - 99 / + + 83 / + 69 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5269
SELECT - 99 / + + 83 / + 69 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - - 92 * - 91
----
-8372

query II rowsort
SELECT ALL + 76, 3 AS col1
----
76
3

query I rowsort
SELECT - 13 + - 82 + - 29
----
-124

onlyif mysql # DIV for integer division: 
query I rowsort label-5273
SELECT + + 5 DIV + 46 + 58
----
58

skipif mysql # not compatible
query I rowsort label-5273
SELECT + + 5 / + 46 + 58
----
58

query I rowsort
SELECT ALL + + 81 * - + 22 * - + 71 + 98
----
126620

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT - 62 + - + 65 + COUNT( * ) + + - CASE - 19 WHEN COALESCE ( 92, - 18 ) + + 84 THEN 35 WHEN + 63 * 80 THEN NULL ELSE NULL END / - 19 * 17
----
NULL

skipif mysql # not compatible
query I rowsort label-5275
SELECT - 62 + - + 65 + COUNT ( * ) + + - CASE - 19 WHEN COALESCE ( 92, - 18 ) + + 84 THEN 35 WHEN + 63 * 80 THEN NULL ELSE NULL END / - 19 * 17
----
NULL

query II rowsort
SELECT ALL + - 32 AS col2, ( 61 ) AS col2
----
-32
61

onlyif mysql # aggregate syntax: 
query II rowsort label-5277
SELECT - 67 AS col1, + 32 - COALESCE ( 76, + 52 * - + 78 * - 44 - + COALESCE ( COUNT( * ) + 72, 1, COUNT( * ) ), 20 ) AS col2
----
-67
-44

skipif mysql # not compatible
query II rowsort label-5277
SELECT - 67 AS col1, + 32 - COALESCE ( 76, + 52 * - + 78 * - 44 - + COALESCE ( COUNT ( * ) + 72, 1, COUNT ( * ) ), 20 ) AS col2
----
-67
-44

query II rowsort
SELECT - 78, + ( - 97 ) * 27 + + 39 * + 12 AS col2
----
-78
-2151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5279
SELECT + 5 + + 43, - 92 * CAST( NULL AS SIGNED ) + + 56 - - - 81 + 25 * + SUM( - 64 ) col0
----
48
NULL

skipif mysql # not compatible
query II rowsort label-5279
SELECT + 5 + + 43, - 92 * CAST ( NULL AS INTEGER ) + + 56 - - - 81 + 25 * + SUM ( - 64 ) col0
----
48
NULL

query I rowsort
SELECT - 17 * - - 71
----
-1207

onlyif mysql # aggregate syntax: 
query I rowsort label-5281
SELECT COALESCE ( - COALESCE ( + 6, - - 96 ), COALESCE ( + 60, + 29, - COUNT( * ) ) ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-5281
SELECT COALESCE ( - COALESCE ( + 6, - - 96 ), COALESCE ( + 60, + 29, - COUNT ( * ) ) ) AS col1
----
-6

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5282
SELECT - ( - - CAST( NULL AS DECIMAL ) ), 52 * - 89 + - 45 col2
----
NULL
-4673

skipif mysql # not compatible
query II rowsort label-5282
SELECT - ( - - CAST ( NULL AS REAL ) ), 52 * - 89 + - 45 col2
----
NULL
-4673

query I rowsort
SELECT + 78 * + 99 + + 69 AS col1
----
7791

onlyif mysql # aggregate syntax: 
query I rowsort label-5284
SELECT - 86 + - - 91 + - 54 * 91 * + SUM( DISTINCT - 68 ) * + 87 AS col0
----
29071229

skipif mysql # not compatible
query I rowsort label-5284
SELECT - 86 + - - 91 + - 54 * 91 * + SUM ( DISTINCT - 68 ) * + 87 AS col0
----
29071229

query I rowsort
SELECT DISTINCT 98 * - - 91 AS col1
----
8918

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT ALL COUNT( * ) * 31 * - - 20 + 94 AS col2
----
714

skipif mysql # not compatible
query I rowsort label-5286
SELECT ALL COUNT ( * ) * 31 * - - 20 + 94 AS col2
----
714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5287
SELECT ( COUNT( * ) ) + - 30 - - + 22 + + 27 + - - 39 * - CASE 10 WHEN + NULLIF ( 50, 8 + - COUNT( * ) ) * - COUNT( * ) + + 42 THEN - 79 + 47 * - 30 WHEN 73 / + 32 THEN + CAST( - 83 AS SIGNED ) END * - COUNT( * ) + + 4 * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5287
SELECT ( COUNT ( * ) ) + - 30 - - + 22 + + 27 + - - 39 * - CASE 10 WHEN + NULLIF ( 50, 8 + - COUNT ( * ) ) * - COUNT ( * ) + + 42 THEN - 79 + 47 * - 30 WHEN 73 / + 32 THEN + CAST ( - 83 AS INTEGER ) END * - COUNT ( * ) + + 4 * - COUNT ( * ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5288
SELECT ALL COUNT ( * ) + - + 8 * + 35 AS col2
----
-279

onlyif mysql # aggregate syntax: 
query I rowsort label-5289
SELECT 13 * - COUNT( * ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-5289
SELECT 13 * - COUNT ( * ) AS col2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT COUNT( * ) + - + SUM( ALL 29 ) col1
----
-28

skipif mysql # not compatible
query I rowsort label-5290
SELECT COUNT ( * ) + - + SUM ( ALL 29 ) col1
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5291
SELECT ALL CAST( - 90 AS SIGNED ) + ( - 6 )
----
-96

skipif mysql # not compatible
query I rowsort label-5291
SELECT ALL CAST ( - 90 AS INTEGER ) + ( - 6 )
----
-96

query I rowsort
SELECT ( 17 ) * - 6 AS col2
----
-102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5293
SELECT ALL 84 + 53 AS col0, + 67 / - 41 * 10 + CASE - + COALESCE ( CAST( - ( 66 ) AS SIGNED ), 6, 72 - - 73, 52 ) WHEN AVG ( DISTINCT - COALESCE ( + 76, + 18 - - 27 ) ) / 40 + COUNT( * ) THEN ( + 59 ) END AS col0
----
137
NULL

skipif mysql # not compatible
query II rowsort label-5293
SELECT ALL 84 + 53 AS col0, + 67 / - 41 * 10 + CASE - + COALESCE ( CAST ( - ( 66 ) AS INTEGER ), 6, 72 - - 73, 52 ) WHEN AVG ( DISTINCT - COALESCE ( + 76, + 18 - - 27 ) ) / 40 + COUNT ( * ) THEN ( + 59 ) END AS col0
----
137
NULL

query I rowsort
SELECT ALL - 84 * 55
----
-4620

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

skipif mysql # not compatible
query I rowsort label-5295
SELECT ALL SUM ( + 41 ) + - COUNT ( * ) col1
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-5296
SELECT DISTINCT + COUNT( * ) + - 6 AS col2, + 57
----
-5
57

skipif mysql # not compatible
query II rowsort label-5296
SELECT DISTINCT + COUNT ( * ) + - 6 AS col2, + 57
----
-5
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5297
SELECT DISTINCT - 35 + + ( COUNT( * ) ) * + ( + COUNT( * ) ) * 83 + + - 73 + CAST( + 19 AS SIGNED ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-5297
SELECT DISTINCT - 35 + + ( COUNT ( * ) ) * + ( + COUNT ( * ) ) * 83 + + - 73 + CAST ( + 19 AS INTEGER ) AS col1
----
-6

query I rowsort
SELECT 11 * - - ( - 77 )
----
-847

query I rowsort
SELECT DISTINCT - 91 * - - 55
----
-5005

onlyif mysql # aggregate syntax: 
query I rowsort label-5300
SELECT + + COALESCE ( + 77, + 20 * + COUNT( * ) + - 13 )
----
77

skipif mysql # not compatible
query I rowsort label-5300
SELECT + + COALESCE ( + 77, + 20 * + COUNT ( * ) + - 13 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5301
SELECT - 6 * COUNT( * ) + - ( + 70 )
----
-76

skipif mysql # not compatible
query I rowsort label-5301
SELECT - 6 * COUNT ( * ) + - ( + 70 )
----
-76

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

skipif mysql # not compatible
query I rowsort label-5302
SELECT ALL + - COUNT ( * ) - - - 8 AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5303
SELECT + 24 * - ( - MIN( ALL ( + + 12 ) ) ) + + 75 * 63 * - 42 + - 33
----
-198195

skipif mysql # not compatible
query I rowsort label-5303
SELECT + 24 * - ( - MIN ( ALL ( + + 12 ) ) ) + + 75 * 63 * - 42 + - 33
----
-198195

onlyif mysql # DIV for integer division: 
query I rowsort label-5304
SELECT - 33 DIV - 15 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5304
SELECT - 33 / - 15 AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5305
SELECT ALL - - NULLIF ( + 39, - + ( 8 ) / + - COUNT( * ) * - 38 ) * MAX( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5305
SELECT ALL - - NULLIF ( + 39, - + ( 8 ) / + - COUNT ( * ) * - 38 ) * MAX ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT - MIN( DISTINCT + - 97 ) + + 1
----
98

skipif mysql # not compatible
query I rowsort label-5307
SELECT - MIN ( DISTINCT + - 97 ) + + 1
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-5308
SELECT + 99 DIV - 16
----
-6

skipif mysql # not compatible
query I rowsort label-5308
SELECT + 99 / - 16
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5309
SELECT CAST( NULL AS SIGNED ) * - 2 + + 42 + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5309
SELECT CAST ( NULL AS INTEGER ) * - 2 + + 42 + - COUNT ( * ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5310
SELECT 27 - + + 16 + + + 7 DIV 97 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-5310
SELECT 27 - + + 16 + + + 7 / 97 AS col1
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5311
SELECT ALL + MAX( + + 4 ) + + + ( 17 ) + + - CAST( + 34 AS SIGNED )
----
-13

skipif mysql # not compatible
query I rowsort label-5311
SELECT ALL + MAX ( + + 4 ) + + + ( 17 ) + + - CAST ( + 34 AS INTEGER )
----
-13

query I rowsort
SELECT ALL ( + 34 ) + - 17 - 37
----
-20

query I rowsort
SELECT DISTINCT 10 + NULLIF ( - 20, 31 ) AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT ALL + 29 + + 39 * + COUNT( * ) + - COUNT( * ) * CASE 32 WHEN + COUNT( * ) THEN 98 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5314
SELECT ALL + 29 + + 39 * + COUNT ( * ) + - COUNT ( * ) * CASE 32 WHEN + COUNT ( * ) THEN 98 END
----
NULL

query I rowsort
SELECT 13 - + - 67 AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT DISTINCT COUNT( * ) + 59 + - 42 + + ( - - 54 ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-5316
SELECT DISTINCT COUNT ( * ) + 59 + - 42 + + ( - - 54 ) AS col1
----
72

query II rowsort
SELECT ALL 92 AS col2, + 4
----
92
4

query II rowsort
SELECT - 93, + 47 * 20 AS col2
----
-93
940

onlyif mysql # aggregate syntax: 
query I rowsort label-5319
SELECT ALL + NULLIF ( + 33, - 13 ) + - 65 - COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-5319
SELECT ALL + NULLIF ( + 33, - 13 ) + - 65 - COUNT ( * )
----
-33

query I rowsort
SELECT ALL 44 * 39
----
1716

query I rowsort
SELECT ALL 61 + - 26
----
35

query I rowsort
SELECT 48 - - CASE + 85 WHEN - + ( - NULLIF ( - + 33, - 44 ) ) * + 29 THEN + 16 + + 43 END - - 51 * + 32
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5323
SELECT DISTINCT + ( - 78 ) * + + COALESCE ( MIN( DISTINCT - CAST( + + 62 AS SIGNED ) ), + - 21 + + 98 * 12 ) * 0 + 57 col0
----
57

skipif mysql # not compatible
query I rowsort label-5323
SELECT DISTINCT + ( - 78 ) * + + COALESCE ( MIN ( DISTINCT - CAST ( + + 62 AS INTEGER ) ), + - 21 + + 98 * 12 ) * 0 + 57 col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT DISTINCT 36 - - NULLIF ( - MAX( DISTINCT - - 33 ), - 10 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-5324
SELECT DISTINCT 36 - - NULLIF ( - MAX ( DISTINCT - - 33 ), - 10 ) AS col1
----
3

query I rowsort
SELECT 49 + - + 65 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5326
SELECT COUNT( DISTINCT + 57 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5326
SELECT COUNT ( DISTINCT + 57 ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5327
SELECT ALL COALESCE ( - 40, 7 + - 33 DIV + COUNT( * ) ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-5327
SELECT ALL COALESCE ( - 40, 7 + - 33 / + COUNT ( * ) ) AS col0
----
-40

query I rowsort
SELECT - 37 * + + 73 AS col0
----
-2701

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT MIN( ALL - 2 ) * + 10 - - 4 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-5329
SELECT MIN ( ALL - 2 ) * + 10 - - 4 AS col1
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5330
SELECT + + ( + ( NULLIF ( COUNT( * ), - 36 ) ) ) * + 53 + - COUNT( * ) * CAST( 21 AS SIGNED ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-5330
SELECT + + ( + ( NULLIF ( COUNT ( * ), - 36 ) ) ) * + 53 + - COUNT ( * ) * CAST ( 21 AS INTEGER ) AS col2
----
32

onlyif mysql # DIV for integer division: 
query II rowsort label-5331
SELECT DISTINCT + 59 DIV - ( + 79 ) AS col1, + 61 + CASE + + 4 WHEN 88 + - + 13 THEN - 11 + + 59 DIV 15 WHEN - 72 DIV AVG ( CASE + 9 WHEN + CASE 75 WHEN 73 THEN 17 * 63 WHEN - 80 THEN NULL ELSE 73 END THEN + 22 + 13 ELSE NULL END ) THEN 9 * + 4 + 9 WHEN 26 THEN 98 * 62 ELSE 92 END
----
0
153

skipif mysql # not compatible
query II rowsort label-5331
SELECT DISTINCT + 59 / - ( + 79 ) AS col1, + 61 + CASE + + 4 WHEN 88 + - + 13 THEN - 11 + + 59 / 15 WHEN - 72 / AVG ( CASE + 9 WHEN + CASE 75 WHEN 73 THEN 17 * 63 WHEN - 80 THEN NULL ELSE 73 END THEN + 22 + 13 ELSE NULL END ) THEN 9 * + 4 + 9 WHEN 26 THEN 98 * 62 ELSE 92 END
----
0
153

query I rowsort
SELECT - 4 * + - 36 * + + 42 + - 66 AS col0
----
5982

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5333
SELECT ALL - - NULLIF ( 8, 83 - - CASE + 56 WHEN CASE COALESCE ( - ( + 71 ), - CAST( - ( - 56 ) AS SIGNED ) / - 16 + COUNT( * ) ) WHEN COUNT( * ) * - 95 THEN COUNT( * ) + + 29 * 30 WHEN - CASE 40 WHEN - 37 THEN + 97 ELSE NULL END THEN 94 END THEN 9 ELSE NULL END + 65 / - COUNT( * ) )
----
8

skipif mysql # not compatible
query I rowsort label-5333
SELECT ALL - - NULLIF ( 8, 83 - - CASE + 56 WHEN CASE COALESCE ( - ( + 71 ), - CAST ( - ( - 56 ) AS INTEGER ) / - 16 + COUNT ( * ) ) WHEN COUNT ( * ) * - 95 THEN COUNT ( * ) + + 29 * 30 WHEN - CASE 40 WHEN - 37 THEN + 97 ELSE NULL END THEN 94 END THEN 9 ELSE NULL END + 65 / - COUNT ( * ) )
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-5334
SELECT + - 68 DIV - 42 + - 1
----
0

skipif mysql # not compatible
query I rowsort label-5334
SELECT + - 68 / - 42 + - 1
----
0

query I rowsort
SELECT ALL - ( + 71 ) * + + 14 * COALESCE ( + + 6, - 96, - 15 ) AS col0
----
-5964

onlyif mysql # aggregate syntax: 
query I rowsort label-5336
SELECT + 31 + NULLIF ( - MAX( + 79 ), - COUNT( - + 49 ) + - COUNT( * ) * - 13 ) * 80 col2
----
-6289

skipif mysql # not compatible
query I rowsort label-5336
SELECT + 31 + NULLIF ( - MAX ( + 79 ), - COUNT ( - + 49 ) + - COUNT ( * ) * - 13 ) * 80 col2
----
-6289

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT + 70 * - COUNT( * ) * + 9 + + + 92 AS col0
----
-538

skipif mysql # not compatible
query I rowsort label-5337
SELECT + 70 * - COUNT ( * ) * + 9 + + + 92 AS col0
----
-538

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5338
SELECT - NULLIF ( + CAST( NULL AS SIGNED ), - 24 * - 21 + - NULLIF ( - 7, - 4 ) - + 58 * 41 + 43 ) * CAST( NULL AS SIGNED ) + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-5338
SELECT - NULLIF ( + CAST ( NULL AS INTEGER ), - 24 * - 21 + - NULLIF ( - 7, - 4 ) - + 58 * 41 + 43 ) * CAST ( NULL AS INTEGER ) + 74
----
NULL

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

skipif mysql # not compatible
query II rowsort label-5339
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) * 43 AS col0
----
NULL
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5340
SELECT ALL 93 + - COALESCE ( + 69, + 85 ) - + 91 * CASE - 11 WHEN - + 19 / + COUNT( 56 ) THEN - 84 ELSE 92 END * - 23 - SUM( 45 + + 58 )
----
192477

skipif mysql # not compatible
query I rowsort label-5340
SELECT ALL 93 + - COALESCE ( + 69, + 85 ) - + 91 * CASE - 11 WHEN - + 19 / + COUNT ( 56 ) THEN - 84 ELSE 92 END * - 23 - SUM ( 45 + + 58 )
----
192477

query II rowsort
SELECT ALL 52 + + 8 AS col1, - 94
----
60
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5342
SELECT + CASE - CAST( NULL AS SIGNED ) WHEN - 77 + ( 34 ) THEN - - 62 * 37 / - 46 + + 11 WHEN CAST( NULL AS SIGNED ) + 78 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5342
SELECT + CASE - CAST ( NULL AS INTEGER ) WHEN - 77 + ( 34 ) THEN - - 62 * 37 / - 46 + + 11 WHEN CAST ( NULL AS INTEGER ) + 78 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5343
SELECT ALL + ( - 86 ) + - CASE - - 25 WHEN 41 THEN NULL WHEN 28 THEN 8 + - CASE + - NULLIF ( - 23, 71 - 46 * COUNT( * ) ) WHEN ( - CAST( NULLIF ( 85, + 72 ) AS SIGNED ) ) THEN - 59 WHEN 57 THEN NULL WHEN 21 THEN - 97 END + + CAST( 15 AS SIGNED ) * + 99 ELSE 96 END + 74
----
-108

skipif mysql # not compatible
query I rowsort label-5343
SELECT ALL + ( - 86 ) + - CASE - - 25 WHEN 41 THEN NULL WHEN 28 THEN 8 + - CASE + - NULLIF ( - 23, 71 - 46 * COUNT ( * ) ) WHEN ( - CAST ( NULLIF ( 85, + 72 ) AS INTEGER ) ) THEN - 59 WHEN 57 THEN NULL WHEN 21 THEN - 97 END + + CAST ( 15 AS INTEGER ) * + 99 ELSE 96 END + 74
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT ALL - 5 + + 13 + + 27 + CASE NULLIF ( - 63, - SUM( DISTINCT - - ( + 77 ) ) ) WHEN - 41 * 67 THEN MAX( DISTINCT - 16 ) END / - 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5344
SELECT ALL - 5 + + 13 + + 27 + CASE NULLIF ( - 63, - SUM ( DISTINCT - - ( + 77 ) ) ) WHEN - 41 * 67 THEN MAX ( DISTINCT - 16 ) END / - 71 AS col1
----
NULL

query I rowsort
SELECT 60 * + + 64 + + + 29 col2
----
3869

query I rowsort
SELECT - 16 * - 7 AS col0
----
112

query II rowsort
SELECT ALL + 60 + + 91, + 3 AS col1
----
151
3

query I rowsort
SELECT - NULLIF ( 43, + + 91 * + + ( - 28 ) )
----
-43

query I rowsort
SELECT + 21 + 3 AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT + 80 - MAX( - + 24 ) AS col1
----
104

skipif mysql # not compatible
query I rowsort label-5350
SELECT + 80 - MAX ( - + 24 ) AS col1
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5351
SELECT - SUM( + 30 ) * + ( + 65 ) AS col0, + CAST( NULL AS SIGNED )
----
-1950
NULL

skipif mysql # not compatible
query II rowsort label-5351
SELECT - SUM ( + 30 ) * + ( + 65 ) AS col0, + CAST ( NULL AS INTEGER )
----
-1950
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5352
SELECT - COALESCE ( CASE - + 71 WHEN ( + + ( COUNT( * ) ) ) / + CAST( NULL AS SIGNED ) - + 21 THEN + 21 END, 8 * + 56 ) - 77 col2
----
-525

skipif mysql # not compatible
query I rowsort label-5352
SELECT - COALESCE ( CASE - + 71 WHEN ( + + ( COUNT ( * ) ) ) / + CAST ( NULL AS INTEGER ) - + 21 THEN + 21 END, 8 * + 56 ) - 77 col2
----
-525

query I rowsort
SELECT ALL ( 28 ) - + 24 + 80 * + 78 * - 98 col0
----
-611516

query I rowsort
SELECT DISTINCT NULLIF ( + ( - ( - 30 ) ), + 48 * 79 ) AS col2
----
30

query I rowsort
SELECT ALL CASE 13 WHEN + 33 - + 32 THEN 89 - - 36 END AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT - - 2 * + COUNT( * ) * + 11 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-5357
SELECT - - 2 * + COUNT ( * ) * + 11 AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5358
SELECT + ( - SUM( DISTINCT + 58 ) ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-5358
SELECT + ( - SUM ( DISTINCT + 58 ) ) AS col0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5359
SELECT DISTINCT + CAST( - COALESCE ( + + 33, CAST( - 18 AS SIGNED ) ) AS SIGNED ) * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5359
SELECT DISTINCT + CAST ( - COALESCE ( + + 33, CAST ( - 18 AS INTEGER ) ) AS INTEGER ) * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT + COUNT( * ) + - 70 - + 9 + 98 * + - 80
----
-7918

skipif mysql # not compatible
query I rowsort label-5360
SELECT + COUNT ( * ) + - 70 - + 9 + 98 * + - 80
----
-7918

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT ALL + - 66 * - - 4 * + - 24 * + - COUNT( * ) AS col2
----
-6336

skipif mysql # not compatible
query I rowsort label-5361
SELECT ALL + - 66 * - - 4 * + - 24 * + - COUNT ( * ) AS col2
----
-6336

query I rowsort
SELECT - ( 99 ) * + ( - 53 )
----
5247

onlyif mysql # aggregate syntax: 
query I rowsort label-5363
SELECT ALL + - ( - - 71 ) * - CASE + + 67 WHEN - - 77 THEN NULL WHEN COUNT( * ) * 23 - - + 98 + - 75 THEN 39 * + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5363
SELECT ALL + - ( - - 71 ) * - CASE + + 67 WHEN - - 77 THEN NULL WHEN COUNT ( * ) * 23 - - + 98 + - 75 THEN 39 * + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5364
SELECT - MIN( - + 47 ) DIV 52 * + ( MIN( - 87 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5364
SELECT - MIN ( - + 47 ) / 52 * + ( MIN ( - 87 ) ) AS col1
----
0

query I rowsort
SELECT + + 78 * + + 37 - + - 4 col2
----
2890

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5366
SELECT ALL COALESCE ( 94, ( - 54 ), - + 52 ) DIV + 21 + + 18 AS col1, 2 * + + 24 + - COUNT( * ) * MIN( DISTINCT - 6 ) AS col0
----
22
54

skipif mysql # not compatible
query II rowsort label-5366
SELECT ALL COALESCE ( 94, ( - 54 ), - + 52 ) / + 21 + + 18 AS col1, 2 * + + 24 + - COUNT ( * ) * MIN ( DISTINCT - 6 ) AS col0
----
22
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT DISTINCT - ( - NULLIF ( + 98, SUM( ALL 13 ) ) ) * - 27 + 4 * - - COUNT( * ) + + COUNT( * ) - + 27 * + 96 AS col2
----
-5233

skipif mysql # not compatible
query I rowsort label-5367
SELECT DISTINCT - ( - NULLIF ( + 98, SUM ( ALL 13 ) ) ) * - 27 + 4 * - - COUNT ( * ) + + COUNT ( * ) - + 27 * + 96 AS col2
----
-5233

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

skipif mysql # not compatible
query I rowsort label-5368
SELECT + COUNT ( * ) / + - 22 + + 38 AS col0
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5369
SELECT DISTINCT + NULLIF ( - - NULLIF ( SUM( 65 ), - 23 * 94 ), SUM( + 5 ) ) AS col2, 1 DIV - 44 * + 30
----
65
0

skipif mysql # not compatible
query II rowsort label-5369
SELECT DISTINCT + NULLIF ( - - NULLIF ( SUM ( 65 ), - 23 * 94 ), SUM ( + 5 ) ) AS col2, 1 / - 44 * + 30
----
65
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5370
SELECT - 78 * + 1 * + 33 - + 97 * + ( + COUNT( * ) ) * 18 + 61 * COUNT( * ) / + MAX( ALL - ( + CASE - 32 WHEN 19 + + CAST( NULL AS SIGNED ) * - 81 THEN 88 END ) ) * + 53 + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-5370
SELECT - 78 * + 1 * + 33 - + 97 * + ( + COUNT ( * ) ) * 18 + 61 * COUNT ( * ) / + MAX ( ALL - ( + CASE - 32 WHEN 19 + + CAST ( NULL AS INTEGER ) * - 81 THEN 88 END ) ) * + 53 + 57
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5371
SELECT NULLIF ( + 33, - 18 ) AS col0, 44 * - COUNT( * ) AS col1
----
33
-44

skipif mysql # not compatible
query II rowsort label-5371
SELECT NULLIF ( + 33, - 18 ) AS col0, 44 * - COUNT ( * ) AS col1
----
33
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5372
SELECT DISTINCT - 15 * - COUNT( * ) * + 23 + + 79 AS col1
----
424

skipif mysql # not compatible
query I rowsort label-5372
SELECT DISTINCT - 15 * - COUNT ( * ) * + 23 + + 79 AS col1
----
424

onlyif mysql # aggregate syntax: 
query I rowsort label-5373
SELECT ALL + 31 * - + COUNT( * ) + - 83 * - + 29 * 99 AS col1
----
238262

skipif mysql # not compatible
query I rowsort label-5373
SELECT ALL + 31 * - + COUNT ( * ) + - 83 * - + 29 * 99 AS col1
----
238262

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT CASE - 69 WHEN - ( + COUNT( * ) ) * - 73 THEN NULL WHEN 45 THEN - + 84 ELSE - + 0 END
----
0

skipif mysql # not compatible
query I rowsort label-5374
SELECT CASE - 69 WHEN - ( + COUNT ( * ) ) * - 73 THEN NULL WHEN 45 THEN - + 84 ELSE - + 0 END
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5375
SELECT 74 * - 89 + - CAST( - - 8 AS SIGNED ) + 68 AS col1
----
-6526

skipif mysql # not compatible
query I rowsort label-5375
SELECT 74 * - 89 + - CAST ( - - 8 AS INTEGER ) + 68 AS col1
----
-6526

query I rowsort
SELECT NULLIF ( + 43, - 6 * + - 86 )
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-5377
SELECT - 27 * 74 + + 8 + - 9 + 10 DIV 96 * + 80 * + 9 + + 8 DIV 8
----
-1998

skipif mysql # not compatible
query I rowsort label-5377
SELECT - 27 * 74 + + 8 + - 9 + 10 / 96 * + 80 * + 9 + + 8 / 8
----
-1998

onlyif mysql # aggregate syntax: 
query I rowsort label-5378
SELECT ALL + SUM( - - 33 ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-5378
SELECT ALL + SUM ( - - 33 ) AS col2
----
33

query I rowsort
SELECT ALL 65 * - + 27 - + 16 + - 67 * + + 67 - - CASE - 66 WHEN - + 28 * - 55 THEN NULL ELSE + 55 END
----
-6205

query II rowsort
SELECT ALL 90 AS col2, + 67 col2
----
90
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5381
SELECT - 2 + 62 - + MAX( - 43 )
----
103

skipif mysql # not compatible
query I rowsort label-5381
SELECT - 2 + 62 - + MAX ( - 43 )
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-5382
SELECT ALL 84 - + - MAX( - 28 )
----
56

skipif mysql # not compatible
query I rowsort label-5382
SELECT ALL 84 - + - MAX ( - 28 )
----
56

query I rowsort
SELECT + 90 * - 84 col1
----
-7560

query I rowsort
SELECT - 97 * + 68 AS col2
----
-6596

query I rowsort
SELECT + - 14 - + - 79 * - 7 AS col0
----
-567

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT + COUNT( * ) * - 1 * + - 32 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-5386
SELECT + COUNT ( * ) * - 1 * + - 32 AS col1
----
32

query I rowsort
SELECT - - COALESCE ( 88, + 71 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5388
SELECT ALL + NULLIF ( + NULLIF ( 15, + - 67 ), - COUNT( * ) ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-5388
SELECT ALL + NULLIF ( + NULLIF ( 15, + - 67 ), - COUNT ( * ) ) AS col2
----
15

query II rowsort
SELECT - - 86 AS col2, - 30 AS col2
----
86
-30

query I rowsort
SELECT - + 90 * 52 AS col1
----
-4680

onlyif mysql # aggregate syntax: 
query II rowsort label-5391
SELECT DISTINCT + 19, 3 * - 38 * CASE - ( 47 ) WHEN + + COUNT( * ) THEN NULL ELSE - 85 + 51 END AS col0
----
19
3876

skipif mysql # not compatible
query II rowsort label-5391
SELECT DISTINCT + 19, 3 * - 38 * CASE - ( 47 ) WHEN + + COUNT ( * ) THEN NULL ELSE - 85 + 51 END AS col0
----
19
3876

query I rowsort
SELECT + 43 * 72 col2
----
3096

query I rowsort
SELECT - 52 + 75
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5394
SELECT - + COUNT( * ) + - + MIN( ALL - 26 ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-5394
SELECT - + COUNT ( * ) + - + MIN ( ALL - 26 ) AS col0
----
25

query I rowsort
SELECT - NULLIF ( ( + - ( + - 28 ) ), + 60 * - + ( 37 ) )
----
-28

query I rowsort
SELECT ALL + 69 + + + 24 * + 19 * + + 79 AS col1
----
36093

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5397
SELECT ALL COUNT( * ) DIV + + COUNT( * ) + - 96 AS col2
----
-95

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5398
SELECT + MAX( ALL + ( - 32 ) ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-5398
SELECT + MAX ( ALL + ( - 32 ) ) AS col0
----
-32

query I rowsort
SELECT ALL - 77 + + + 54 AS col1
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-5400
SELECT 17 + 60 AS col1, COUNT( * )
----
77
1

skipif mysql # not compatible
query II rowsort label-5400
SELECT 17 + 60 AS col1, COUNT ( * )
----
77
1

query II rowsort
SELECT + 57 AS col1, 67
----
57
67

query II rowsort
SELECT 54 AS col0, - 91
----
54
-91

query II rowsort
SELECT ALL - ( + 77 ) + 63 * - 76 AS col0, - 69 + + 84
----
-4865
15

query I rowsort
SELECT 43 * - 15 AS col0
----
-645

query II rowsort
SELECT + 67 AS col1, 11 AS col0
----
67
11

query II rowsort
SELECT 40 AS col1, 28 AS col2
----
40
28

query I rowsort
SELECT 33 * + - 13 AS col0
----
-429

query I rowsort
SELECT DISTINCT 86 * - - 25 * + 99
----
212850

query I rowsort
SELECT ALL 44 - - COALESCE ( 48, + 17 ) + - 5 * + 69 * - - 28
----
-9568

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5410
SELECT DISTINCT 79 * 90 DIV + COUNT( * ) DIV COUNT( * ) AS col1
----
7110

skipif mysql # not compatible
query I rowsort label-5410
SELECT DISTINCT 79 * 90 / + COUNT ( * ) / COUNT ( * ) AS col1
----
7110

query I rowsort
SELECT 34 * 23 + 27
----
809

query II rowsort
SELECT + 43, + 8 * - 9 AS col2
----
43
-72

query I rowsort
SELECT ( + 97 ) - + - 11 * + 38 * - 84
----
-35015

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

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

query I rowsort
SELECT ALL - - 57 * 28 AS col2
----
1596

onlyif mysql # aggregate syntax: 
query II rowsort label-5416
SELECT - 91, - COUNT( DISTINCT - 41 ) + + + ( - + ( + - 60 ) ) + - COUNT( * ) AS col0
----
-91
58

skipif mysql # not compatible
query II rowsort label-5416
SELECT - 91, - COUNT ( DISTINCT - 41 ) + + + ( - + ( + - 60 ) ) + - COUNT ( * ) AS col0
----
-91
58

onlyif mysql # DIV for integer division: 
query I rowsort label-5417
SELECT 49 DIV - 79 + - 59 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-5417
SELECT 49 / - 79 + - 59 AS col2
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-5418
SELECT DISTINCT - COALESCE ( - 30, - + COUNT( * ) ) * + + 49 * 33 + + - 93 AS col0, + SUM( ALL - 84 )
----
48417
-84

skipif mysql # not compatible
query II rowsort label-5418
SELECT DISTINCT - COALESCE ( - 30, - + COUNT ( * ) ) * + + 49 * 33 + + - 93 AS col0, + SUM ( ALL - 84 )
----
48417
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT - + CASE - + ( - 33 ) WHEN - 72 - - 51 * + 69 THEN NULL WHEN + + 88 THEN NULL WHEN + ( 91 ) * - 54 * + 60 / 44 + ( + 60 + + COUNT( ALL 1 ) ) * 64 THEN ( - 86 ) - 91 * 91 WHEN + 36 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5419
SELECT - + CASE - + ( - 33 ) WHEN - 72 - - 51 * + 69 THEN NULL WHEN + + 88 THEN NULL WHEN + ( 91 ) * - 54 * + 60 / 44 + ( + 60 + + COUNT ( ALL 1 ) ) * 64 THEN ( - 86 ) - 91 * 91 WHEN + 36 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5420
SELECT ALL - 87 + + COALESCE ( + - CAST( NULL AS SIGNED ), + 33 DIV + MAX( DISTINCT COALESCE ( - 14, + 21 * + 63 * + 96 * 67 * - 90 + + 36 + - 89 ) ), 1 DIV 8 )
----
-89

skipif mysql # not compatible
query I rowsort label-5420
SELECT ALL - 87 + + COALESCE ( + - CAST ( NULL AS INTEGER ), + 33 / + MAX ( DISTINCT COALESCE ( - 14, + 21 * + 63 * + 96 * 67 * - 90 + + 36 + - 89 ) ), 1 / 8 )
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-5421
SELECT ALL + - 94 + - + 94, + COUNT( * ) AS col1
----
-188
1

skipif mysql # not compatible
query II rowsort label-5421
SELECT ALL + - 94 + - + 94, + COUNT ( * ) AS col1
----
-188
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5422
SELECT 27 AS col0, + CAST( NULL AS SIGNED ) * - + 81 AS col2
----
27
NULL

skipif mysql # not compatible
query II rowsort label-5422
SELECT 27 AS col0, + CAST ( NULL AS INTEGER ) * - + 81 AS col2
----
27
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5423
SELECT DISTINCT - + 65 + + 24 + + - CAST( 42 AS SIGNED ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-5423
SELECT DISTINCT - + 65 + + 24 + + - CAST ( 42 AS INTEGER ) AS col2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT - 70 * + ( + COUNT( * ) ) - - ( - 76 ) + 43 AS col2
----
-103

skipif mysql # not compatible
query I rowsort label-5424
SELECT - 70 * + ( + COUNT ( * ) ) - - ( - 76 ) + 43 AS col2
----
-103

onlyif mysql # aggregate syntax: 
query II rowsort label-5425
SELECT DISTINCT - 29 - - 14 AS col2, COUNT( * ) AS col2
----
-15
1

skipif mysql # not compatible
query II rowsort label-5425
SELECT DISTINCT - 29 - - 14 AS col2, COUNT ( * ) AS col2
----
-15
1

query I rowsort
SELECT ALL - 11 - 35 AS col2
----
-46

query I rowsort
SELECT 42 * + 19 AS col1
----
798

onlyif mysql # aggregate syntax: 
query I rowsort label-5428
SELECT ALL - NULLIF ( - - COUNT( * ), + 68 * + 62 * + + 90 + + 77 + + 56 + - 48 ) * - 78 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-5428
SELECT ALL - NULLIF ( - - COUNT ( * ), + 68 * + 62 * + + 90 + + 77 + + 56 + - 48 ) * - 78 AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT + 32 * + 89 - + COUNT( * )
----
2847

skipif mysql # not compatible
query I rowsort label-5429
SELECT + 32 * + 89 - + COUNT ( * )
----
2847

onlyif mysql # aggregate syntax: 
query I rowsort label-5430
SELECT DISTINCT - ( - - CASE - COUNT( * ) WHEN + ( - 13 ) * 89 - - 50 * + NULLIF ( - - MAX( DISTINCT + 55 ), + - COUNT( * ) + 3 - 39 * 92 ) - - COUNT( * ) THEN NULL WHEN + 47 THEN 29 - 24 WHEN 88 * + 36 - + 57 THEN 0 * + 88 + COALESCE ( - 28, - COALESCE ( - COUNT( DISTINCT - 2 ), + ( - 79 ) ), + 74, + 28 * - 51 ) ELSE NULL END ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5430
SELECT DISTINCT - ( - - CASE - COUNT ( * ) WHEN + ( - 13 ) * 89 - - 50 * + NULLIF ( - - MAX ( DISTINCT + 55 ), + - COUNT ( * ) + 3 - 39 * 92 ) - - COUNT ( * ) THEN NULL WHEN + 47 THEN 29 - 24 WHEN 88 * + 36 - + 57 THEN 0 * + 88 + COALESCE ( - 28, - COALESCE ( - COUNT ( DISTINCT - 2 ), + ( - 79 ) ), + 74, + 28 * - 51 ) ELSE NULL END ) col2
----
NULL

query I rowsort
SELECT ALL - 11 * + - 42 AS col0
----
462

onlyif mysql # aggregate syntax: 
query II rowsort label-5432
SELECT 67 * ( 46 ) * - MIN( ALL + 31 ) * + 58 * + 12 AS col2, - 28 AS col1
----
-66497232
-28

skipif mysql # not compatible
query II rowsort label-5432
SELECT 67 * ( 46 ) * - MIN ( ALL + 31 ) * + 58 * + 12 AS col2, - 28 AS col1
----
-66497232
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5433
SELECT COUNT( * ) * + 31 + CASE COUNT( + 83 ) WHEN 1 THEN NULL WHEN - - 53 * - + 7 * + COALESCE ( - CAST( - COUNT( * ) AS SIGNED ), - + 90, + 97 ) THEN ( NULLIF ( + 67, 38 ) ) / + 93 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5433
SELECT COUNT ( * ) * + 31 + CASE COUNT ( + 83 ) WHEN 1 THEN NULL WHEN - - 53 * - + 7 * + COALESCE ( - CAST ( - COUNT ( * ) AS INTEGER ), - + 90, + 97 ) THEN ( NULLIF ( + 67, 38 ) ) / + 93 END AS col2
----
NULL

query I rowsort
SELECT 57 * - - 47
----
2679

onlyif mysql # aggregate syntax: 
query I rowsort label-5435
SELECT MIN( DISTINCT ( + 92 ) ) + NULLIF ( + 6, 60 )
----
98

skipif mysql # not compatible
query I rowsort label-5435
SELECT MIN ( DISTINCT ( + 92 ) ) + NULLIF ( + 6, 60 )
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5436
SELECT ALL CAST( + 76 AS SIGNED ) * + + 66 AS col0, + NULLIF ( 29, + 42 + + + CAST( NULL AS SIGNED ) ) + + 51
----
5016
80

skipif mysql # not compatible
query II rowsort label-5436
SELECT ALL CAST ( + 76 AS INTEGER ) * + + 66 AS col0, + NULLIF ( 29, + 42 + + + CAST ( NULL AS INTEGER ) ) + + 51
----
5016
80

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

skipif mysql # not compatible
query I rowsort label-5437
SELECT ALL + 43 / 77 + - COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5438
SELECT + CASE - 28 WHEN ( - + 90 ) * COUNT( * ) * - COUNT( * ) + - 79 THEN 86 + - ( - - 12 ) END * + + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-5438
SELECT + CASE - 28 WHEN ( - + 90 ) * COUNT ( * ) * - COUNT ( * ) + - 79 THEN 86 + - ( - - 12 ) END * + + 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT + 34 * CASE - CASE + COALESCE ( - 80, + - 10 * + 20 + - 40 ) WHEN + COUNT( * ) THEN NULL ELSE 48 * COUNT( * ) * + COUNT( * ) END WHEN 77 THEN NULL WHEN 48 THEN 41 ELSE NULL END - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-5439
SELECT + 34 * CASE - CASE + COALESCE ( - 80, + - 10 * + 20 + - 40 ) WHEN + COUNT ( * ) THEN NULL ELSE 48 * COUNT ( * ) * + COUNT ( * ) END WHEN 77 THEN NULL WHEN 48 THEN 41 ELSE NULL END - 25
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5440
SELECT ALL + COUNT( * ) + - 46 + - 56 DIV - 72 * 16 * - COUNT( * ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-5440
SELECT ALL + COUNT ( * ) + - 46 + - 56 / - 72 * 16 * - COUNT ( * ) AS col2
----
-45

query I rowsort
SELECT 95 + 65 * 49 AS col1
----
3280

onlyif mysql # aggregate syntax: 
query I rowsort label-5442
SELECT MAX( ALL + 98 ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-5442
SELECT MAX ( ALL + 98 ) AS col2
----
98

query I rowsort
SELECT - 48 + + 47
----
-1

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-5447
SELECT + 88 * + 83 AS col1, + 43 AS col1, + - COUNT( * ) AS col2
----
7304
43
-1

skipif mysql # not compatible
query III rowsort label-5447
SELECT + 88 * + 83 AS col1, + 43 AS col1, + - COUNT ( * ) AS col2
----
7304
43
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5448
SELECT + - 86 + - + NULLIF ( - 28, + CAST( 97 AS SIGNED ) ) * - 57 col1
----
-1682

skipif mysql # not compatible
query I rowsort label-5448
SELECT + - 86 + - + NULLIF ( - 28, + CAST ( 97 AS INTEGER ) ) * - 57 col1
----
-1682

query I rowsort
SELECT + - 80 - - 9 AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5450
SELECT ALL - SUM( DISTINCT + 56 ) - + ( + + 7 ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-5450
SELECT ALL - SUM ( DISTINCT + 56 ) - + ( + + 7 ) AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5451
SELECT CASE + - COUNT( * ) WHEN + + 42 - - ( - ( 31 ) ) THEN - + 64 WHEN + ( - COALESCE ( + - 34, - - 29 * - + 89, 86 ) ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5451
SELECT CASE + - COUNT ( * ) WHEN + + 42 - - ( - ( 31 ) ) THEN - + 64 WHEN + ( - COALESCE ( + - 34, - - 29 * - + 89, 86 ) ) THEN NULL ELSE NULL END
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5453
SELECT + 5 + + - NULLIF ( + + CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED ) * - NULLIF ( 82, - ( + ( + - 3 ) ) ) + - 97 - NULLIF ( - 27, - CAST( - 25 AS SIGNED ) * - COUNT( * ) - + 69 * + 12 ) ) + - COALESCE ( 46, 59 / 46 ) * 71 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5453
SELECT + 5 + + - NULLIF ( + + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) * - NULLIF ( 82, - ( + ( + - 3 ) ) ) + - 97 - NULLIF ( - 27, - CAST ( - 25 AS INTEGER ) * - COUNT ( * ) - + 69 * + 12 ) ) + - COALESCE ( 46, 59 / 46 ) * 71 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5454
SELECT ALL CASE 37 WHEN + - COUNT( * ) THEN AVG ( - 81 ) * + + COUNT( * ) END * 58 + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-5454
SELECT ALL CASE 37 WHEN + - COUNT ( * ) THEN AVG ( - 81 ) * + + COUNT ( * ) END * 58 + 4
----
NULL

query I rowsort
SELECT + 81 + + + 73
----
154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5456
SELECT - MIN( 95 ) - + 59 * 48 DIV + 80 col1
----
-130

skipif mysql # not compatible
query I rowsort label-5456
SELECT - MIN ( 95 ) - + 59 * 48 / + 80 col1
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-5457
SELECT + 57 + + MIN( ALL ( + 90 ) )
----
147

skipif mysql # not compatible
query I rowsort label-5457
SELECT + 57 + + MIN ( ALL ( + 90 ) )
----
147

query I rowsort
SELECT ALL - ( ( - 33 ) ) * + 94 AS col1
----
3102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5459
SELECT DISTINCT + COALESCE ( - 96, - - 12 + + - CASE - - NULLIF ( + SUM( - + 18 ), + 76 + - 78 ) WHEN 81 * - + 35 + + 7 / - 49 * 14 THEN NULL WHEN + CASE - 63 WHEN + 19 / 88 THEN - CAST( NULL AS SIGNED ) * - 57 WHEN 21 - - 85 THEN NULL ELSE NULL END THEN 31 ELSE ( 17 ) * 38 END ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-5459
SELECT DISTINCT + COALESCE ( - 96, - - 12 + + - CASE - - NULLIF ( + SUM ( - + 18 ), + 76 + - 78 ) WHEN 81 * - + 35 + + 7 / - 49 * 14 THEN NULL WHEN + CASE - 63 WHEN + 19 / 88 THEN - CAST ( NULL AS INTEGER ) * - 57 WHEN 21 - - 85 THEN NULL ELSE NULL END THEN 31 ELSE ( 17 ) * 38 END ) AS col1
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5460
SELECT DISTINCT + 84 AS col1, - 47 - - 59 + 5 * ( 73 ) * - CAST( NULL AS SIGNED ) - - COUNT( * ) + + 67 + + - 10 * + NULLIF ( + 24, - COALESCE ( 75, + 54 * 18 ) ) AS col0
----
84
NULL

skipif mysql # not compatible
query II rowsort label-5460
SELECT DISTINCT + 84 AS col1, - 47 - - 59 + 5 * ( 73 ) * - CAST ( NULL AS INTEGER ) - - COUNT ( * ) + + 67 + + - 10 * + NULLIF ( + 24, - COALESCE ( 75, + 54 * 18 ) ) AS col0
----
84
NULL

query I rowsort
SELECT + 39 * + 12 AS col0
----
468

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5462
SELECT + CASE - CAST( NULL AS SIGNED ) WHEN - + 69 THEN + 6 WHEN - - 25 THEN NULL WHEN + - 8 / + 45 THEN NULL ELSE - + COUNT( * ) * - + 83 END
----
83

skipif mysql # not compatible
query I rowsort label-5462
SELECT + CASE - CAST ( NULL AS INTEGER ) WHEN - + 69 THEN + 6 WHEN - - 25 THEN NULL WHEN + - 8 / + 45 THEN NULL ELSE - + COUNT ( * ) * - + 83 END
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5463
SELECT - NULLIF ( 24, 6 * + 28 * - - COALESCE ( 38, - + MAX( ALL + - 11 ), - MIN( - 19 ) + + 95 ) ) + ( - 72 ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-5463
SELECT - NULLIF ( 24, 6 * + 28 * - - COALESCE ( 38, - + MAX ( ALL + - 11 ), - MIN ( - 19 ) + + 95 ) ) + ( - 72 ) AS col2
----
-96

query I rowsort
SELECT COALESCE ( ( 31 ), + + 89 ) AS col0
----
31

query I rowsort
SELECT - 97 * 67 * - 11 AS col0
----
71489

onlyif mysql # aggregate syntax: 
query I rowsort label-5466
SELECT ALL + COALESCE ( + COUNT( * ), + - 72 * + 8 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5466
SELECT ALL + COALESCE ( + COUNT ( * ), + - 72 * + 8 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT CASE - 84 WHEN - + 73 THEN NULL WHEN + COUNT( * ) THEN + COUNT( ALL 47 ) + + - COUNT( + 91 ) * - 4 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5467
SELECT CASE - 84 WHEN - + 73 THEN NULL WHEN + COUNT ( * ) THEN + COUNT ( ALL 47 ) + + - COUNT ( + 91 ) * - 4 END
----
NULL

query I rowsort
SELECT ALL - 80 * 62 AS col2
----
-4960

query I rowsort
SELECT ALL 58 * - 41 * + + 48 + - 59 col2
----
-114203

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5470
SELECT ALL + ( - + 2 ) * + COUNT( + 73 ) + 61 DIV + 95
----
-2

skipif mysql # not compatible
query I rowsort label-5470
SELECT ALL + ( - + 2 ) * + COUNT ( + 73 ) + 61 / + 95
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5471
SELECT ALL + NULLIF ( + - 31, CAST( + ( - + 4 ) AS SIGNED ) ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-5471
SELECT ALL + NULLIF ( + - 31, CAST ( + ( - + 4 ) AS INTEGER ) ) AS col1
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5472
SELECT + CAST( + MAX( 31 ) AS SIGNED ) col0
----
31

skipif mysql # not compatible
query I rowsort label-5472
SELECT + CAST ( + MAX ( 31 ) AS INTEGER ) col0
----
31

query II rowsort
SELECT - - 23 AS col2, 30 + CASE 59 WHEN + 51 * - 39 THEN + 21 END
----
23
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5474
SELECT ALL 76 DIV - COALESCE ( + - 75, - 91 + + 61 - + + COUNT( * ) * - COALESCE ( - 45, COALESCE ( COUNT( * ), - 19 + - 24 + + 81 * 7 ) DIV 18 ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-5474
SELECT ALL 76 / - COALESCE ( + - 75, - 91 + + 61 - + + COUNT ( * ) * - COALESCE ( - 45, COALESCE ( COUNT ( * ), - 19 + - 24 + + 81 * 7 ) / 18 ) ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5475
SELECT DISTINCT 94 * 35 + + 18 + + COUNT( * ) * - - 6 + 1
----
3315

skipif mysql # not compatible
query I rowsort label-5475
SELECT DISTINCT 94 * 35 + + 18 + + COUNT ( * ) * - - 6 + 1
----
3315

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT - - 84 + - 21 + - 53 + 89 * - + COALESCE ( - - 98, + ( + - 61 ) - + 35 + - MIN( ( + 74 ) ), + 78 + 30 * 2, - ( + 6 ) ) + 44 AS col0
----
-8668

skipif mysql # not compatible
query I rowsort label-5476
SELECT - - 84 + - 21 + - 53 + 89 * - + COALESCE ( - - 98, + ( + - 61 ) - + 35 + - MIN ( ( + 74 ) ), + 78 + 30 * 2, - ( + 6 ) ) + 44 AS col0
----
-8668

onlyif mysql # aggregate syntax: 
query II rowsort label-5477
SELECT ALL - + COUNT( * ) - + - 82 + + 75, 60 AS col0
----
156
60

skipif mysql # not compatible
query II rowsort label-5477
SELECT ALL - + COUNT ( * ) - + - 82 + + 75, 60 AS col0
----
156
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5478
SELECT + + ( COUNT( * ) ) + + - 18
----
-17

skipif mysql # not compatible
query I rowsort label-5478
SELECT + + ( COUNT ( * ) ) + + - 18
----
-17

query II rowsort
SELECT - 16 AS col0, + 69
----
-16
69

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

skipif mysql # not compatible
query I rowsort label-5480
SELECT - - MAX ( + + 67 )
----
67

query I rowsort
SELECT + 95 + - + 50
----
45

query I rowsort
SELECT - 35 * - ( + 40 ) * - 89 AS col2
----
-124600

query I rowsort
SELECT DISTINCT - 96 * + - 63
----
6048

query I rowsort
SELECT ALL - 56 * - 76 col0
----
4256

onlyif mysql # aggregate syntax: 
query I rowsort label-5485
SELECT ALL CASE ( + 42 ) WHEN - 53 THEN - 58 WHEN - + 59 THEN NULL END - - - NULLIF ( + - 14, - 17 ) - COUNT( DISTINCT - 73 ) / + + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-5485
SELECT ALL CASE ( + 42 ) WHEN - 53 THEN - 58 WHEN - + 59 THEN NULL END - - - NULLIF ( + - 14, - 17 ) - COUNT ( DISTINCT - 73 ) / + + 7
----
NULL

query I rowsort
SELECT + 75 * + - 94 * - 67
----
472350

onlyif mysql # DIV for integer division: 
query I rowsort label-5487
SELECT DISTINCT + COALESCE ( + 44, 46 DIV - - 46, + 3 ) * - ( - 4 )
----
176

skipif mysql # not compatible
query I rowsort label-5487
SELECT DISTINCT + COALESCE ( + 44, 46 / - - 46, + 3 ) * - ( - 4 )
----
176

onlyif mysql # DIV for integer division: 
query I rowsort label-5488
SELECT ALL 22 DIV + + ( - + ( - 10 ) )
----
2

skipif mysql # not compatible
query I rowsort label-5488
SELECT ALL 22 / + + ( - + ( - 10 ) )
----
2

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5490
SELECT - 39 * - CASE - 98 WHEN - 31 * NULLIF ( 32, + 9 * - 47 + - ( + + CAST( + COUNT( * ) AS SIGNED ) ) ) THEN - CASE - - 54 WHEN - - 68 * 47 + 99 THEN + COUNT( * ) * + COUNT( * ) END + + NULLIF ( 66 + 59, + COUNT( * ) ) ELSE NULL END * + COALESCE ( 13 / + 9, + 57 + CAST( NULL AS DECIMAL ), 90 * 46 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5490
SELECT - 39 * - CASE - 98 WHEN - 31 * NULLIF ( 32, + 9 * - 47 + - ( + + CAST ( + COUNT ( * ) AS INTEGER ) ) ) THEN - CASE - - 54 WHEN - - 68 * 47 + 99 THEN + COUNT ( * ) * + COUNT ( * ) END + + NULLIF ( 66 + 59, + COUNT ( * ) ) ELSE NULL END * + COALESCE ( 13 / + 9, + 57 + CAST ( NULL AS REAL ), 90 * 46 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5491
SELECT DISTINCT 68 DIV + - 70 * - 14
----
0

skipif mysql # not compatible
query I rowsort label-5491
SELECT DISTINCT 68 / + - 70 * - 14
----
0

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

skipif mysql # not compatible
query I rowsort label-5492
SELECT + 74 * + + COUNT ( * ) * + 42 AS col1
----
3108

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5493
SELECT DISTINCT CAST( NULL AS SIGNED ) / NULLIF ( - 27, - 74 ), 85 AS col1
----
NULL
85

skipif mysql # not compatible
query II rowsort label-5493
SELECT DISTINCT CAST ( NULL AS INTEGER ) / NULLIF ( - 27, - 74 ), 85 AS col1
----
NULL
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5494
SELECT + CAST( 7 AS SIGNED ) AS col2, 6 + - 46 + - - 24
----
7
-16

skipif mysql # not compatible
query II rowsort label-5494
SELECT + CAST ( 7 AS INTEGER ) AS col2, 6 + - 46 + - - 24
----
7
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-5495
SELECT ALL - 47 DIV + 34 + + + 31 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-5495
SELECT ALL - 47 / + 34 + + + 31 AS col1
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5496
SELECT + 85 * - 12 - - COUNT( * ) + - 54 DIV + 87 - 10 + - 31 + 38 * - + COUNT( * ) + - + 80
----
-1178

skipif mysql # not compatible
query I rowsort label-5496
SELECT + 85 * - 12 - - COUNT ( * ) + - 54 / + 87 - 10 + - 31 + 38 * - + COUNT ( * ) + - + 80
----
-1178

onlyif mysql # aggregate syntax: 
query II rowsort label-5497
SELECT + ( - + 17 ), CASE + + 76 WHEN + 46 THEN - 20 WHEN + 89 * - - 88 * COUNT( * ) THEN NULL WHEN COUNT( * ) - 56 * - - 28 THEN - 64 / 77 + - 20 END * + 97 + - ( 18 + - 49 ) AS col2
----
-17
NULL

skipif mysql # not compatible
query II rowsort label-5497
SELECT + ( - + 17 ), CASE + + 76 WHEN + 46 THEN - 20 WHEN + 89 * - - 88 * COUNT ( * ) THEN NULL WHEN COUNT ( * ) - 56 * - - 28 THEN - 64 / 77 + - 20 END * + 97 + - ( 18 + - 49 ) AS col2
----
-17
NULL

query I rowsort
SELECT + + 62 + 42
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT 57 * - + COUNT( * ) - - 68 * + - 64 AS col0
----
-4409

skipif mysql # not compatible
query I rowsort label-5499
SELECT 57 * - + COUNT ( * ) - - 68 * + - 64 AS col0
----
-4409

onlyif mysql # aggregate syntax: 
query I rowsort label-5500
SELECT + NULLIF ( + COUNT( + + 53 ), + 57 + 62 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5500
SELECT + NULLIF ( + COUNT ( + + 53 ), + 57 + 62 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5501
SELECT NULLIF ( - - COUNT( * ), + 88 / + 41 - + + 83 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5501
SELECT NULLIF ( - - COUNT ( * ), + 88 / + 41 - + + 83 ) AS col0
----
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5503
SELECT DISTINCT - 41 - - 98 + - 91 + - CASE 31 WHEN + COUNT( * ) * + CAST( - 90 AS DECIMAL ) + + + 58 THEN - 33 * - 48 * + - 99 END + - 12 * - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-5503
SELECT DISTINCT - 41 - - 98 + - 91 + - CASE 31 WHEN + COUNT ( * ) * + CAST ( - 90 AS REAL ) + + + 58 THEN - 33 * - 48 * + - 99 END + - 12 * - 14
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT + NULLIF ( + 93, 32 / - COALESCE ( + - 57, 2 * 58, - 88 * 94 + - - COALESCE ( 79, COUNT( * ), - AVG ( DISTINCT - + 32 ) * 89 ) ) ) * + 50 AS col2
----
4650

skipif mysql # not compatible
query I rowsort label-5504
SELECT + NULLIF ( + 93, 32 / - COALESCE ( + - 57, 2 * 58, - 88 * 94 + - - COALESCE ( 79, COUNT ( * ), - AVG ( DISTINCT - + 32 ) * 89 ) ) ) * + 50 AS col2
----
4650

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT DISTINCT - ( - + 37 ) - + COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-5505
SELECT DISTINCT - ( - + 37 ) - + COUNT ( * )
----
36

query I rowsort
SELECT - COALESCE ( - 31, - 57 ) * + 21
----
651

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5508
SELECT ALL + 14 * + 12 * + 93 * 56 + - CAST( NULLIF ( + - COUNT( * ), - 47 ) AS SIGNED ) AS col0
----
874945

skipif mysql # not compatible
query I rowsort label-5508
SELECT ALL + 14 * + 12 * + 93 * 56 + - CAST ( NULLIF ( + - COUNT ( * ), - 47 ) AS INTEGER ) AS col0
----
874945

query II rowsort
SELECT + 46 + - + 11, + 10 + + - 78 AS col0
----
35
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-5510
SELECT 45 DIV + 21
----
2

skipif mysql # not compatible
query I rowsort label-5510
SELECT 45 / + 21
----
2

query I rowsort
SELECT ALL 22 * - 67 AS col1
----
-1474

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5512
SELECT 52 - - CAST( NULL AS SIGNED ) + - - 94 + + COUNT( * ) * + 39 * 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5512
SELECT 52 - - CAST ( NULL AS INTEGER ) + - - 94 + + COUNT ( * ) * + 39 * 37 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5513
SELECT ALL - MAX( ALL 51 ) DIV + 91 + - 87 AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-5513
SELECT ALL - MAX ( ALL 51 ) / + 91 + - 87 AS col1
----
-87

query I rowsort
SELECT ALL - 52 + - 86 + - + 10 AS col1
----
-148

query I rowsort
SELECT 42 + + - 39 + - - 83 AS col0
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-5516
SELECT 51 + + 52 * + + SUM( + 87 ) + + - 41 AS col2, 19
----
4534
19

skipif mysql # not compatible
query II rowsort label-5516
SELECT 51 + + 52 * + + SUM ( + 87 ) + + - 41 AS col2, 19
----
4534
19

query I rowsort
SELECT ALL 80 * + 15 AS col1
----
1200

onlyif mysql # DIV for integer division: 
query I rowsort label-5518
SELECT + 69 DIV ( 79 ) + + 31
----
31

skipif mysql # not compatible
query I rowsort label-5518
SELECT + 69 / ( 79 ) + + 31
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5519
SELECT ALL + 90 + - COALESCE ( - COUNT( * ), - 98 * + 19 + + 85 * - 12 * - 11 + + + 8 ) + SUM( - - 4 ) * + 13
----
143

skipif mysql # not compatible
query I rowsort label-5519
SELECT ALL + 90 + - COALESCE ( - COUNT ( * ), - 98 * + 19 + + 85 * - 12 * - 11 + + + 8 ) + SUM ( - - 4 ) * + 13
----
143

query I rowsort
SELECT DISTINCT - 35 + + 98 - + + 64 * - 15 col0
----
1023

query I rowsort
SELECT ALL 8 + 18
----
26

query I rowsort
SELECT 86 + 94
----
180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5523
SELECT + CAST( NULL AS SIGNED ) * - 12 + - NULLIF ( - 32, + 30 ) * 56 / 22 * + 3 + + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-5523
SELECT + CAST ( NULL AS INTEGER ) * - 12 + - NULLIF ( - 32, + 30 ) * 56 / 22 * + 3 + + 16
----
NULL

query II rowsort
SELECT 79 AS col2, 16 AS col0
----
79
16

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

skipif mysql # not compatible
query I rowsort label-5525
SELECT ALL COUNT ( * ) / - 68 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5526
SELECT + CAST( NULL AS SIGNED ) / 15 + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-5526
SELECT + CAST ( NULL AS INTEGER ) / 15 + 27
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5527
SELECT + 92 DIV + 73
----
1

skipif mysql # not compatible
query I rowsort label-5527
SELECT + 92 / + 73
----
1

query I rowsort
SELECT ALL - 14 * - 63 AS col2
----
882

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5529
SELECT + 1 + COALESCE ( - COALESCE ( + SUM( 89 ), + - 7 ), - CAST( - COUNT( * ) AS SIGNED ), - SUM( ALL 38 ) * + - 38 + + 31 + 11 * 56 - 41 - 93 * 25 ) + - 62 AS col0
----
-150

skipif mysql # not compatible
query I rowsort label-5529
SELECT + 1 + COALESCE ( - COALESCE ( + SUM ( 89 ), + - 7 ), - CAST ( - COUNT ( * ) AS INTEGER ), - SUM ( ALL 38 ) * + - 38 + + 31 + 11 * 56 - 41 - 93 * 25 ) + - 62 AS col0
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT ALL - 45 - - - COUNT( + 5 ) * - + 39 * + + 92 * - 74 * - 53 * - 1 AS col0
----
-14072181

skipif mysql # not compatible
query I rowsort label-5530
SELECT ALL - 45 - - - COUNT ( + 5 ) * - + 39 * + + 92 * - 74 * - 53 * - 1 AS col0
----
-14072181

query I rowsort
SELECT DISTINCT - CASE + 28 WHEN 91 THEN + - NULLIF ( - 96, - 5 * - 56 * - 88 ) WHEN - 2 * 35 * - 14 THEN + 22 END
----
NULL

query I rowsort
SELECT - 28 * + - ( - ( + 37 ) )
----
-1036

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5533
SELECT ( COUNT( * ) ) + - COUNT( * ) + 58 DIV - CAST( - 96 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5533
SELECT ( COUNT ( * ) ) + - COUNT ( * ) + 58 / - CAST ( - 96 AS INTEGER ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT COUNT( * ) + + 69 col1
----
70

skipif mysql # not compatible
query I rowsort label-5534
SELECT COUNT ( * ) + + 69 col1
----
70

query I rowsort
SELECT + 44 * + 97
----
4268

query I rowsort
SELECT 18 + - + NULLIF ( + 53, + 21 * + + 61 / - 94 + - 28 * - 56 * - 63 ) col2
----
-35

query I rowsort
SELECT 52 + - 77
----
-25

query II rowsort
SELECT 13, COALESCE ( - 16, + 67 ) AS col0
----
13
-16

query I rowsort
SELECT ALL 93 * - 82
----
-7626

query I rowsort
SELECT 26 * + + 49
----
1274

query I rowsort
SELECT 61 + - 62 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5542
SELECT ALL + 21 + ( + CAST( + + COUNT( * ) AS SIGNED ) )
----
22

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5543
SELECT 80 DIV + 15
----
5

skipif mysql # not compatible
query I rowsort label-5543
SELECT 80 / + 15
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5544
SELECT 51 * - + CASE + 88 WHEN - COUNT( * ) THEN + - ( - 23 ) - - NULLIF ( CASE - - NULLIF ( - COUNT( * ), - 70 * - - 99 + 98 * + 12 + + - COUNT( ALL - 55 ) ) WHEN COALESCE ( 14, + NULLIF ( 53, - ( 49 ) * - AVG ( DISTINCT 2 * ( + 5 ) + 49 * 58 ) ) * 85, - 50 + - 50 * 65 ) * + 91 THEN + 1 / + 26 WHEN 91 THEN ( SUM( ALL 16 ) ) END, + 88 ) + 5 ELSE NULL END * MAX( ALL 51 * + 15 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5544
SELECT 51 * - + CASE + 88 WHEN - COUNT ( * ) THEN + - ( - 23 ) - - NULLIF ( CASE - - NULLIF ( - COUNT ( * ), - 70 * - - 99 + 98 * + 12 + + - COUNT ( ALL - 55 ) ) WHEN COALESCE ( 14, + NULLIF ( 53, - ( 49 ) * - AVG ( DISTINCT 2 * ( + 5 ) + 49 * 58 ) ) * 85, - 50 + - 50 * 65 ) * + 91 THEN + 1 / + 26 WHEN 91 THEN ( SUM ( ALL 16 ) ) END, + 88 ) + 5 ELSE NULL END * MAX ( ALL 51 * + 15 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 92 + - 61 col2
----
31

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

skipif mysql # not compatible
query I rowsort label-5546
SELECT ALL ( 51 ) + + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT 23 AS col2, 28
----
23
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5548
SELECT DISTINCT + 76 + 39 * + COUNT( * )
----
115

skipif mysql # not compatible
query I rowsort label-5548
SELECT DISTINCT + 76 + 39 * + COUNT ( * )
----
115

query I rowsort
SELECT ALL - 21 + - 87
----
-108

onlyif mysql # DIV for integer division: 
query I rowsort label-5550
SELECT ALL - 49 DIV + 84 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5550
SELECT ALL - 49 / + 84 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5551
SELECT 96 DIV + 65 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5551
SELECT 96 / + 65 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5552
SELECT NULLIF ( - ( - - MAX( DISTINCT + 90 ) ), + CASE + 96 WHEN + 47 / - 9 + 73 THEN NULL ELSE - 6 + + + COUNT( * ) END + - - 2 + - 89 )
----
-90

skipif mysql # not compatible
query I rowsort label-5552
SELECT NULLIF ( - ( - - MAX ( DISTINCT + 90 ) ), + CASE + 96 WHEN + 47 / - 9 + 73 THEN NULL ELSE - 6 + + + COUNT ( * ) END + - - 2 + - 89 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT CASE - 30 WHEN - 74 * - 70 * - 63 * 33 + 18 + - - COUNT( * ) - + - 65 + ( AVG ( + - 80 ) ) THEN 37 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5553
SELECT CASE - 30 WHEN - 74 * - 70 * - 63 * 33 + 18 + - - COUNT ( * ) - + - 65 + ( AVG ( + - 80 ) ) THEN 37 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5554
SELECT + 77 * - 24 - + 96 - + - 22 DIV 99 * 13 AS col0
----
-1944

skipif mysql # not compatible
query I rowsort label-5554
SELECT + 77 * - 24 - + 96 - + - 22 / 99 * 13 AS col0
----
-1944

query I rowsort
SELECT DISTINCT + 85 * ( - 72 ) AS col1
----
-6120

query I rowsort
SELECT - + 80 + + 91 AS col2
----
11

query I rowsort
SELECT ALL + 99 * 80 + + - 83 + + 7 - 19 AS col1
----
7825

query I rowsort
SELECT - 98 * - 41 AS col2
----
4018

onlyif mysql # aggregate syntax: 
query I rowsort label-5559
SELECT ALL - COUNT( * ) * 75 + + 41 - + COUNT( * ) + - ( + + 73 ) + + 69 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-5559
SELECT ALL - COUNT ( * ) * 75 + + 41 - + COUNT ( * ) + - ( + + 73 ) + + 69 AS col2
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5560
SELECT ALL + - CASE + - 91 WHEN + + COUNT( * ) THEN 39 * COUNT( * ) * + CAST( NULL AS SIGNED ) ELSE ( + 35 ) END AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-5560
SELECT ALL + - CASE + - 91 WHEN + + COUNT ( * ) THEN 39 * COUNT ( * ) * + CAST ( NULL AS INTEGER ) ELSE ( + 35 ) END AS col2
----
-35

query II rowsort
SELECT DISTINCT + ( - - 3 ) AS col0, - 49
----
3
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-5562
SELECT ALL - 58 DIV + - 86
----
0

skipif mysql # not compatible
query I rowsort label-5562
SELECT ALL - 58 / + - 86
----
0

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

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

query II rowsort
SELECT + + NULLIF ( + 99, 63 ) * - - 6 + - 42 * + 65 AS col2, - 83 AS col2
----
-2136
-83

query II rowsort
SELECT ALL + 67, - 76 * - 86 AS col0
----
67
6536

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT DISTINCT + CASE - 3 WHEN - + 67 THEN + MIN( + 41 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5567
SELECT DISTINCT + CASE - 3 WHEN - + 67 THEN + MIN ( + 41 ) END
----
NULL

query I rowsort
SELECT DISTINCT - 65 * - 8
----
520

onlyif mysql # aggregate syntax: 
query II rowsort label-5569
SELECT - + COUNT( * ) AS col1, 69 * - 86
----
-1
-5934

skipif mysql # not compatible
query II rowsort label-5569
SELECT - + COUNT ( * ) AS col1, 69 * - 86
----
-1
-5934

query I rowsort
SELECT 25 * - 23 + 36
----
-539

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5571
SELECT + COUNT( * ) DIV + 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5571
SELECT + COUNT ( * ) / + 95 AS col1
----
0

query I rowsort
SELECT - 99 * - 57 - + 99 - - 49 AS col1
----
5593

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5573
SELECT + 92 + - COUNT( * ), 59 + + CASE - 69 WHEN - COUNT( * ) THEN + NULLIF ( - 53, - + CAST( NULL AS SIGNED ) / - COUNT( * ) ) * - - 64 + - 37 END AS col0
----
91
NULL

skipif mysql # not compatible
query II rowsort label-5573
SELECT + 92 + - COUNT ( * ), 59 + + CASE - 69 WHEN - COUNT ( * ) THEN + NULLIF ( - 53, - + CAST ( NULL AS INTEGER ) / - COUNT ( * ) ) * - - 64 + - 37 END AS col0
----
91
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5574
SELECT - CASE + + COUNT( 15 ) WHEN 59 THEN 95 WHEN - 64 THEN CASE 32 WHEN - 71 * 86 + - + AVG ( DISTINCT 22 ) THEN NULL WHEN + - 42 + - 44 THEN NULL ELSE + 0 + 56 + - + 18 + 54 END * COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5574
SELECT - CASE + + COUNT ( 15 ) WHEN 59 THEN 95 WHEN - 64 THEN CASE 32 WHEN - 71 * 86 + - + AVG ( DISTINCT 22 ) THEN NULL WHEN + - 42 + - 44 THEN NULL ELSE + 0 + 56 + - + 18 + 54 END * COUNT ( * ) END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5576
SELECT - ( + 16 ), COALESCE ( + 92, - + 62 - 94, - + MAX( 32 ) * - 52 + - NULLIF ( 68, - NULLIF ( + 26, - + COUNT( * ) ) ), - + MAX( 97 ) ) * + COUNT( DISTINCT COALESCE ( 83, 14 ) ) + - 0 col1
----
-16
92

skipif mysql # not compatible
query II rowsort label-5576
SELECT - ( + 16 ), COALESCE ( + 92, - + 62 - 94, - + MAX ( 32 ) * - 52 + - NULLIF ( 68, - NULLIF ( + 26, - + COUNT ( * ) ) ), - + MAX ( 97 ) ) * + COUNT ( DISTINCT COALESCE ( 83, 14 ) ) + - 0 col1
----
-16
92

query I rowsort
SELECT + COALESCE ( + 8, - + 88 ) - 70
----
-62

query I rowsort
SELECT ALL 3 * - + 69
----
-207

query I rowsort
SELECT - 15 + - 68 * + 34 + - 45
----
-2372

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5580
SELECT - CAST( NULLIF ( + ( + 7 ), - 40 ) AS SIGNED ) + - 27
----
-34

skipif mysql # not compatible
query I rowsort label-5580
SELECT - CAST ( NULLIF ( + ( + 7 ), - 40 ) AS INTEGER ) + - 27
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT - 84 * - + MAX( - ( + - 37 ) ) AS col2
----
3108

skipif mysql # not compatible
query I rowsort label-5581
SELECT - 84 * - + MAX ( - ( + - 37 ) ) AS col2
----
3108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5582
SELECT + CAST( + - SUM( - 39 ) AS SIGNED ) + + - ( + + 38 )
----
1

skipif mysql # not compatible
query I rowsort label-5582
SELECT + CAST ( + - SUM ( - 39 ) AS INTEGER ) + + - ( + + 38 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5583
SELECT ALL COALESCE ( 45, + ( 18 ) + + - CAST( + 50 AS SIGNED ) + 88 + + 38 * - 17 ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-5583
SELECT ALL COALESCE ( 45, + ( 18 ) + + - CAST ( + 50 AS INTEGER ) + 88 + + 38 * - 17 ) AS col0
----
45

query I rowsort
SELECT DISTINCT + + NULLIF ( + 87, ( + CASE - NULLIF ( 59, ( + + 65 ) + - + 28 ) WHEN - COALESCE ( + 53, 32 + 75 ) * + ( - 73 ) THEN 18 END ) * 53 + 63 )
----
87

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

skipif mysql # not compatible
query I rowsort label-5585
SELECT - - CAST ( NULL AS INTEGER ) * 9 * + + 41
----
NULL

query II rowsort
SELECT - + 43 + 71, + 29 AS col0
----
28
29

query I rowsort
SELECT + - 31 / - + NULLIF ( - CASE 88 WHEN + 10 THEN - 82 ELSE NULL END, + AVG ( + + 86 ) + - 25 )
----
NULL

query I rowsort
SELECT - 19 * - 92
----
1748

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5589
SELECT - + COUNT( ALL + - 99 ) * 7 + 1 * + - 40 * 90 DIV + COUNT( * )
----
-3607

skipif mysql # not compatible
query I rowsort label-5589
SELECT - + COUNT ( ALL + - 99 ) * 7 + 1 * + - 40 * 90 / + COUNT ( * )
----
-3607

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

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

query I rowsort
SELECT ALL + - 15 col2
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5592
SELECT - CASE - + 61 WHEN - + 3 * - 72 THEN NULL WHEN + 89 THEN + 82 ELSE + 88 END DIV - COALESCE ( + CAST( NULL AS SIGNED ), + 63, + 81 ) + MAX( 27 ) + + - 28
----
0

skipif mysql # not compatible
query I rowsort label-5592
SELECT - CASE - + 61 WHEN - + 3 * - 72 THEN NULL WHEN + 89 THEN + 82 ELSE + 88 END / - COALESCE ( + CAST ( NULL AS INTEGER ), + 63, + 81 ) + MAX ( 27 ) + + - 28
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5593
SELECT DISTINCT + ( - NULLIF ( - + 10, + 20 * ( - 7 ) * + NULLIF ( + + 65, + 69 * 72 + 15 - + + 88 ) * - 73 * - 73 + 63 ) ) * - + CAST( NULL AS SIGNED ) + - - MAX( + 39 ) * COUNT( * ) + - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-5593
SELECT DISTINCT + ( - NULLIF ( - + 10, + 20 * ( - 7 ) * + NULLIF ( + + 65, + 69 * 72 + 15 - + + 88 ) * - 73 * - 73 + 63 ) ) * - + CAST ( NULL AS INTEGER ) + - - MAX ( + 39 ) * COUNT ( * ) + - 91
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5594
SELECT ALL - - MAX( - 22 ) * 48 - + 19 + + 51
----
-1024

skipif mysql # not compatible
query I rowsort label-5594
SELECT ALL - - MAX ( - 22 ) * 48 - + 19 + + 51
----
-1024

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5595
SELECT DISTINCT + COUNT( * ) * 83 DIV + + ( - 26 ) + COUNT( * ) + + 55 + - MIN( ALL - 44 ) + - 57 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-5595
SELECT DISTINCT + COUNT ( * ) * 83 / + + ( - 26 ) + COUNT ( * ) + + 55 + - MIN ( ALL - 44 ) + - 57 AS col1
----
40

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

skipif mysql # not compatible
query I rowsort label-5596
SELECT + COUNT ( * ) + - 84 + 3 AS col1
----
-80

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5598
SELECT ALL + 9 * + - 97 + + + 42 DIV 31 * + 38 AS col1
----
-835

skipif mysql # not compatible
query I rowsort label-5598
SELECT ALL + 9 * + - 97 + + + 42 / 31 * + 38 AS col1
----
-835

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

skipif mysql # not compatible
query I rowsort label-5599
SELECT ALL CAST ( + + 83 AS INTEGER ) AS col1
----
83

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

skipif mysql # not compatible
query I rowsort label-5600
SELECT MIN ( ALL - 62 )
----
-62

query I rowsort
SELECT ALL 70 * + 18 + + + ( - ( - + 68 ) )
----
1328

query I rowsort
SELECT + 39 + - 71 col2
----
-32

query I rowsort
SELECT ALL 3 * - 95 AS col2
----
-285

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

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

query I rowsort
SELECT + ( - 25 ) + - 19 * 38
----
-747

query I rowsort
SELECT ALL 21 - - + 11 AS col2
----
32

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5608
SELECT ALL 97 - 85 + + ( CASE WHEN NULL >= NULL THEN NULL ELSE - 31 END ) + - 3 DIV - 12
----
-19

skipif mysql # not compatible
query I rowsort label-5608
SELECT ALL 97 - 85 + + ( CASE WHEN NULL >= NULL THEN NULL ELSE - 31 END ) + - 3 / - 12
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5609
SELECT + 3 * - ( + COUNT( DISTINCT 62 ) )
----
-3

skipif mysql # not compatible
query I rowsort label-5609
SELECT + 3 * - ( + COUNT ( DISTINCT 62 ) )
----
-3

query II rowsort
SELECT DISTINCT 82, 43 + + 90 + + + 16 + 53 col0
----
82
202

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

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

query I rowsort
SELECT ALL - 35 * - 85 AS col0
----
2975

query II rowsort
SELECT - 3 + - + 66 - - - 24, 53 AS col0
----
-93
53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5614
SELECT 99 AS col2, 55 * - CAST( NULL AS SIGNED ) + - 51 AS col0
----
99
NULL

skipif mysql # not compatible
query II rowsort label-5614
SELECT 99 AS col2, 55 * - CAST ( NULL AS INTEGER ) + - 51 AS col0
----
99
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5615
SELECT NULLIF ( SUM( - 29 ), - CAST( NULL AS SIGNED ) * + 27 )
----
-29

skipif mysql # not compatible
query I rowsort label-5615
SELECT NULLIF ( SUM ( - 29 ), - CAST ( NULL AS INTEGER ) * + 27 )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5616
SELECT 68 * 44 * + 91 + + - 31 - MAX( - 88 )
----
272329

skipif mysql # not compatible
query I rowsort label-5616
SELECT 68 * 44 * + 91 + + - 31 - MAX ( - 88 )
----
272329

query I rowsort
SELECT + 65 * + 42 - - CASE - 11 WHEN 37 * + ( + CASE + + 99 WHEN 93 THEN 87 ELSE NULL END ) THEN NULL ELSE + 61 END
----
2791

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5618
SELECT COALESCE ( NULLIF ( + 60, + 72 ), - COUNT( * ), - 6 * + 57 * COUNT( * ) * - + 0 ) AS col1, + CAST( ( SUM( ALL + ( 92 ) ) ) AS SIGNED ) + + 45 * - + 26
----
60
-1078

skipif mysql # not compatible
query II rowsort label-5618
SELECT COALESCE ( NULLIF ( + 60, + 72 ), - COUNT ( * ), - 6 * + 57 * COUNT ( * ) * - + 0 ) AS col1, + CAST ( ( SUM ( ALL + ( 92 ) ) ) AS INTEGER ) + + 45 * - + 26
----
60
-1078

onlyif mysql # DIV for integer division: 
query I rowsort label-5619
SELECT - 78 DIV 7 + 88 + 96 AS col2
----
173

skipif mysql # not compatible
query I rowsort label-5619
SELECT - 78 / 7 + 88 + 96 AS col2
----
173

onlyif mysql # aggregate syntax: 
query I rowsort label-5620
SELECT ALL 44 * COUNT( * ) + 3 + - 38 col0
----
9

skipif mysql # not compatible
query I rowsort label-5620
SELECT ALL 44 * COUNT ( * ) + 3 + - 38 col0
----
9

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

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

query I rowsort
SELECT ALL - + COALESCE ( - - 16, + 17 + + 73 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5623
SELECT ALL - COUNT( ALL - 80 ) + CASE - - ( - 44 ) WHEN 38 * 49 + - 29 THEN + 52 / - 67 END + + - 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5623
SELECT ALL - COUNT ( ALL - 80 ) + CASE - - ( - 44 ) WHEN 38 * 49 + - 29 THEN + 52 / - 67 END + + - 83 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5624
SELECT ALL + - MAX( DISTINCT - 4 ) + + + SUM( - + 11 )
----
-7

skipif mysql # not compatible
query I rowsort label-5624
SELECT ALL + - MAX ( DISTINCT - 4 ) + + + SUM ( - + 11 )
----
-7

onlyif mysql # DIV for integer division: 
query II rowsort label-5625
SELECT - ( 32 ) DIV + 67, 38 + - 16 col0
----
0
22

skipif mysql # not compatible
query II rowsort label-5625
SELECT - ( 32 ) / + 67, 38 + - 16 col0
----
0
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5626
SELECT DISTINCT + - NULLIF ( COUNT( * ), 23 ) + - 60
----
-61

skipif mysql # not compatible
query I rowsort label-5626
SELECT DISTINCT + - NULLIF ( COUNT ( * ), 23 ) + - 60
----
-61

query I rowsort
SELECT ALL - - 93 col0
----
93

onlyif mysql # DIV for integer division: 
query II rowsort label-5628
SELECT + + 73 col0, 18 DIV 27
----
73
0

skipif mysql # not compatible
query II rowsort label-5628
SELECT + + 73 col0, 18 / 27
----
73
0

query I rowsort
SELECT 17 * - 23 + 11
----
-380

query I rowsort
SELECT + 37 - 17
----
20

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

skipif mysql # not compatible
query I rowsort label-5631
SELECT + + MIN ( - ( + 80 ) )
----
-80

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

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

query I rowsort
SELECT ALL - 62 * - + 67
----
4154

onlyif mysql # aggregate syntax: 
query I rowsort label-5634
SELECT ALL COUNT( DISTINCT + 22 ) + - SUM( + 98 ) + 28
----
-69

skipif mysql # not compatible
query I rowsort label-5634
SELECT ALL COUNT ( DISTINCT + 22 ) + - SUM ( + 98 ) + 28
----
-69

query I rowsort
SELECT ALL - 89 - 21
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT ALL - NULLIF ( - + 74, + + SUM( ALL - + 42 ) * 69 )
----
74

skipif mysql # not compatible
query I rowsort label-5636
SELECT ALL - NULLIF ( - + 74, + + SUM ( ALL - + 42 ) * 69 )
----
74

query I rowsort
SELECT ALL + 62 * + + 74 * - + 70 AS col1
----
-321160

onlyif mysql # aggregate syntax: 
query I rowsort label-5638
SELECT 62 * COUNT( * ) * + - ( - 12 ) * 76 + - 82 + - 75 + 91
----
56478

skipif mysql # not compatible
query I rowsort label-5638
SELECT 62 * COUNT ( * ) * + - ( - 12 ) * 76 + - 82 + - 75 + 91
----
56478

onlyif mysql # aggregate syntax: 
query I rowsort label-5639
SELECT ALL - 90 - COUNT( * ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-5639
SELECT ALL - 90 - COUNT ( * ) AS col0
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5640
SELECT + 53 * COALESCE ( 92, + COUNT( ALL - 18 ) ) DIV 81 + - 15 + + 78
----
123

skipif mysql # not compatible
query I rowsort label-5640
SELECT + 53 * COALESCE ( 92, + COUNT ( ALL - 18 ) ) / 81 + - 15 + + 78
----
123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5641
SELECT 12 - + 46 DIV - CASE + 80 WHEN + CAST( + 98 AS SIGNED ) THEN NULL WHEN + 88 THEN + MAX( ALL + - 64 ) END * + - 29, - 16 + 42 DIV + - 71 * + 45 * 90 AS col0
----
NULL
-16

skipif mysql # not compatible
query II rowsort label-5641
SELECT 12 - + 46 / - CASE + 80 WHEN + CAST ( + 98 AS INTEGER ) THEN NULL WHEN + 88 THEN + MAX ( ALL + - 64 ) END * + - 29, - 16 + 42 / + - 71 * + 45 * 90 AS col0
----
NULL
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5642
SELECT NULLIF ( - - COUNT( * ), + 36 + 67 ) * - ( - + 51 ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-5642
SELECT NULLIF ( - - COUNT ( * ), + 36 + 67 ) * - ( - + 51 ) AS col0
----
51

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

skipif mysql # not compatible
query I rowsort label-5643
SELECT ALL COUNT ( ALL + 31 ) / + + 61
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5644
SELECT MIN( DISTINCT - ( + + 23 ) ) + 26 + - + 15 * - + COUNT( * ) DIV + 61 + 88 + - 86 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-5644
SELECT MIN ( DISTINCT - ( + + 23 ) ) + 26 + - + 15 * - + COUNT ( * ) / + 61 + 88 + - 86 AS col2
----
5

onlyif mysql # DIV for integer division: 
query II rowsort label-5645
SELECT DISTINCT + 18 DIV + 46 AS col2, - 80
----
0
-80

skipif mysql # not compatible
query II rowsort label-5645
SELECT DISTINCT + 18 / + 46 AS col2, - 80
----
0
-80

query I rowsort
SELECT DISTINCT ( + + 43 ) * + 18 col2
----
774

query II rowsort
SELECT ALL + 0 * - 27 AS col2, 26 - + ( + 19 ) * - NULLIF ( - - 21, - 88 ) * + 56 * + - ( - - COALESCE ( - 38, 37 ) )
----
0
849098

query I rowsort
SELECT DISTINCT + 82 * + 35 * - 98 AS col0
----
-281260

onlyif mysql # aggregate syntax: 
query I rowsort label-5649
SELECT ALL 48 * - - 35 + + - COUNT( * )
----
1679

skipif mysql # not compatible
query I rowsort label-5649
SELECT ALL 48 * - - 35 + + - COUNT ( * )
----
1679

query I rowsort
SELECT 62 * + 51 * - NULLIF ( 44, 15 )
----
-139128

query I rowsort
SELECT 6 + - 80
----
-74

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5653
SELECT ALL - - 30 + - COUNT( * ) AS col2, ( - 79 ) + + 91 + 20 * + COUNT( * ) * 86 AS col0
----
29
1732

skipif mysql # not compatible
query II rowsort label-5653
SELECT ALL - - 30 + - COUNT ( * ) AS col2, ( - 79 ) + + 91 + 20 * + COUNT ( * ) * 86 AS col0
----
29
1732

query I rowsort
SELECT NULLIF ( - 82, 24 )
----
-82

onlyif mysql # DIV for integer division: 
query II rowsort label-5655
SELECT DISTINCT 37 + + 0, 81 DIV 92 col2
----
37
0

skipif mysql # not compatible
query II rowsort label-5655
SELECT DISTINCT 37 + + 0, 81 / 92 col2
----
37
0

query I rowsort
SELECT ALL - 80 + 12
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-5657
SELECT 11 * - COUNT( * ) col1
----
-11

skipif mysql # not compatible
query I rowsort label-5657
SELECT 11 * - COUNT ( * ) col1
----
-11

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5658
SELECT 54 + + COUNT( * ) AS col2, - CAST( NULL AS DECIMAL )
----
55
NULL

skipif mysql # not compatible
query II rowsort label-5658
SELECT 54 + + COUNT ( * ) AS col2, - CAST ( NULL AS REAL )
----
55
NULL

query I rowsort
SELECT ALL ( + - 59 ) * - - 98 AS col0
----
-5782

query I rowsort
SELECT 50 * + - 45 + - 72 AS col2
----
-2322

query I rowsort
SELECT COALESCE ( + - 17, - ( - 41 ) * - ( - 75 ) * 8 ) * + + 62 AS col2
----
-1054

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5662
SELECT + 83 + + COALESCE ( CAST( - 6 AS SIGNED ), - 41 * + 96 - + COUNT( * ) ) + - ( + ( + 9 ) )
----
68

skipif mysql # not compatible
query I rowsort label-5662
SELECT + 83 + + COALESCE ( CAST ( - 6 AS INTEGER ), - 41 * + 96 - + COUNT ( * ) ) + - ( + ( + 9 ) )
----
68

query I rowsort
SELECT DISTINCT 62 * + 15 AS col1
----
930

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

skipif mysql # not compatible
query I rowsort label-5664
SELECT MIN ( ALL - 25 )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5665
SELECT ALL 21 - - 65 * + + ( - + COUNT( * ) )
----
-44

skipif mysql # not compatible
query I rowsort label-5665
SELECT ALL 21 - - 65 * + + ( - + COUNT ( * ) )
----
-44

query I rowsort
SELECT 60 * + 66
----
3960

onlyif mysql # aggregate syntax: 
query II rowsort label-5667
SELECT 96 + - + NULLIF ( - 29, COUNT( * ) ) + 89, + 56 * - 78 AS col0
----
214
-4368

skipif mysql # not compatible
query II rowsort label-5667
SELECT 96 + - + NULLIF ( - 29, COUNT ( * ) ) + 89, + 56 * - 78 AS col0
----
214
-4368

onlyif mysql # DIV for integer division: 
query I rowsort label-5668
SELECT 67 DIV 25 * 16 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-5668
SELECT 67 / 25 * 16 AS col1
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5669
SELECT - 68 + + 23 + - ( - 13 ) * - CAST( - - 93 AS SIGNED ) * ( 71 ) AS col0
----
-85884

skipif mysql # not compatible
query I rowsort label-5669
SELECT - 68 + + 23 + - ( - 13 ) * - CAST ( - - 93 AS INTEGER ) * ( 71 ) AS col0
----
-85884

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT - 85 + - 10 + - 26 - COALESCE ( 32, 23 - - 90 ) * - + COUNT( * ) + + 8 * - 38 + - ( - 72 ) * + + 83 AS col2
----
5583

skipif mysql # not compatible
query I rowsort label-5670
SELECT - 85 + - 10 + - 26 - COALESCE ( 32, 23 - - 90 ) * - + COUNT ( * ) + + 8 * - 38 + - ( - 72 ) * + + 83 AS col2
----
5583

query II rowsort
SELECT DISTINCT 26, 37 AS col0
----
26
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5672
SELECT DISTINCT CASE - 2 WHEN NULLIF ( 39, + COUNT( * ) ) * + 65 THEN 69 + + 68 * - - MIN( - 36 ) WHEN - COUNT( * ) THEN - COUNT( * ) + CAST( + 99 AS SIGNED ) + + - AVG ( DISTINCT + - 2 ) * 17 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5672
SELECT DISTINCT CASE - 2 WHEN NULLIF ( 39, + COUNT ( * ) ) * + 65 THEN 69 + + 68 * - - MIN ( - 36 ) WHEN - COUNT ( * ) THEN - COUNT ( * ) + CAST ( + 99 AS INTEGER ) + + - AVG ( DISTINCT + - 2 ) * 17 END AS col1
----
NULL

query I rowsort
SELECT - 84 * 72 * 86
----
-520128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5674
SELECT - CAST( AVG ( DISTINCT 80 ) AS SIGNED ) * + MAX( + + 93 )
----
-7440

skipif mysql # not compatible
query I rowsort label-5674
SELECT - CAST ( AVG ( DISTINCT 80 ) AS INTEGER ) * + MAX ( + + 93 )
----
-7440

query I rowsort
SELECT - - 44 - + 33 AS col0
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5676
SELECT - + 69 * - 39 - + CAST( 5 AS SIGNED ) * 80, - CASE + 30 WHEN - 70 THEN NULL WHEN 86 THEN + 86 ELSE + 41 * - + 79 * + + MAX( + ( + 24 ) ) + + MAX( DISTINCT - - 12 ) + + 9 END AS col2
----
2291
77715

skipif mysql # not compatible
query II rowsort label-5676
SELECT - + 69 * - 39 - + CAST ( 5 AS INTEGER ) * 80, - CASE + 30 WHEN - 70 THEN NULL WHEN 86 THEN + 86 ELSE + 41 * - + 79 * + + MAX ( + ( + 24 ) ) + + MAX ( DISTINCT - - 12 ) + + 9 END AS col2
----
2291
77715

onlyif mysql # aggregate syntax: 
query I rowsort label-5677
SELECT MAX( ALL - - 58 ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-5677
SELECT MAX ( ALL - - 58 ) AS col0
----
58

query II rowsort
SELECT - + 85 col1, - 70 * + 29
----
-85
-2030

query I rowsort
SELECT DISTINCT - 92 + 2
----
-90

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

skipif mysql # not compatible
query I rowsort label-5680
SELECT - SUM ( - - 34 )
----
-34

query I rowsort
SELECT + 92 * - + 19 AS col0
----
-1748

onlyif mysql # aggregate syntax: 
query I rowsort label-5682
SELECT ALL - COUNT( * ) * 83 * - 49
----
4067

skipif mysql # not compatible
query I rowsort label-5682
SELECT ALL - COUNT ( * ) * 83 * - 49
----
4067

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5683
SELECT - COALESCE ( - 63, + CASE + COUNT( * ) WHEN - - CASE + - 85 WHEN - 72 THEN + - MIN( 48 ) WHEN - - 37 THEN + CAST( + + 61 AS SIGNED ) END / + 80 THEN NULL ELSE NULLIF ( - + 90, + + 45 ) END, - 18 + + + COUNT( * ) ), - 30 AS col0
----
63
-30

skipif mysql # not compatible
query II rowsort label-5683
SELECT - COALESCE ( - 63, + CASE + COUNT ( * ) WHEN - - CASE + - 85 WHEN - 72 THEN + - MIN ( 48 ) WHEN - - 37 THEN + CAST ( + + 61 AS INTEGER ) END / + 80 THEN NULL ELSE NULLIF ( - + 90, + + 45 ) END, - 18 + + + COUNT ( * ) ), - 30 AS col0
----
63
-30

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5686
SELECT 93 DIV 29 * + SUM( ALL + - 65 ) + - COALESCE ( + + COUNT( * ), - + COUNT( * ) + 51, + 39 + + + 28 + + - NULLIF ( - ( 87 ), + 33 ) + - - 83 + 2 DIV + + 32 + 48 - + 86 - - 76 * - 98 * - COUNT( * ) DIV - 12 ) * + 58 - COUNT( * )
----
-254

skipif mysql # not compatible
query I rowsort label-5686
SELECT 93 / 29 * + SUM ( ALL + - 65 ) + - COALESCE ( + + COUNT ( * ), - + COUNT ( * ) + 51, + 39 + + + 28 + + - NULLIF ( - ( 87 ), + 33 ) + - - 83 + 2 / + + 32 + 48 - + 86 - - 76 * - 98 * - COUNT ( * ) / - 12 ) * + 58 - COUNT ( * )
----
-254

onlyif mysql # aggregate syntax: 
query I rowsort label-5687
SELECT + + COUNT( * ) + 16 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-5687
SELECT + + COUNT ( * ) + 16 AS col1
----
17

query I rowsort
SELECT ALL 35 * 32 * 28 - 44
----
31316

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5690
SELECT + MIN( - ( - + 81 ) ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-5690
SELECT + MIN ( - ( - + 81 ) ) AS col1
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5691
SELECT ( + CASE 8 WHEN - COUNT( * ) * 22 THEN + 92 * - 90 WHEN - - NULLIF ( + 39, CAST( NULL AS SIGNED ) / ( + 71 ) + COUNT( * ) + - + 93 + + + CAST( + 10 AS SIGNED ) ) THEN - 84 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5691
SELECT ( + CASE 8 WHEN - COUNT ( * ) * 22 THEN + 92 * - 90 WHEN - - NULLIF ( + 39, CAST ( NULL AS INTEGER ) / ( + 71 ) + COUNT ( * ) + - + 93 + + + CAST ( + 10 AS INTEGER ) ) THEN - 84 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5692
SELECT + 45 * - + 2 * - 73 - - - COUNT( * )
----
6569

skipif mysql # not compatible
query I rowsort label-5692
SELECT + 45 * - + 2 * - 73 - - - COUNT ( * )
----
6569

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

query I rowsort
SELECT + 68 * ( - 35 ) * + 49 AS col0
----
-116620

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5696
SELECT CASE + 67 WHEN - 70 * + 89 * + - 73 THEN - 87 END, 8 * + CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5696
SELECT CASE + 67 WHEN - 70 * + 89 * + - 73 THEN - 87 END, 8 * + CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5697
SELECT DISTINCT 3 * - COUNT( * ) * + 59 * COUNT( * ) * + - SUM( - 21 ) AS col0
----
-3717

skipif mysql # not compatible
query I rowsort label-5697
SELECT DISTINCT 3 * - COUNT ( * ) * + 59 * COUNT ( * ) * + - SUM ( - 21 ) AS col0
----
-3717

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

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

query I rowsort
SELECT ALL 38 * 49 AS col0
----
1862

query II rowsort
SELECT DISTINCT + 34 AS col0, + 55 - - 79 + 1 * + + 40 + + 39
----
34
213

query I rowsort
SELECT + 26 - ( - 28 ) * + COALESCE ( - + 7, + ( + 42 ) )
----
-170

query II rowsort
SELECT - 87, 67 * 43 * + - 57 AS col2
----
-87
-164217

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5703
SELECT - ( CAST( - NULLIF ( + 6, - + 35 ) AS SIGNED ) ) * + 80 * - 97 + + 53 + + 1 DIV + + 46 AS col2
----
-46507

skipif mysql # not compatible
query I rowsort label-5703
SELECT - ( CAST ( - NULLIF ( + 6, - + 35 ) AS INTEGER ) ) * + 80 * - 97 + + 53 + + 1 / + + 46 AS col2
----
-46507

onlyif mysql # DIV for integer division: 
query I rowsort label-5704
SELECT - 55 DIV + + 23 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-5704
SELECT - 55 / + + 23 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5705
SELECT ALL + 19 * 56 + + COUNT( * ) + - - MIN( - 77 ) AS col1
----
988

skipif mysql # not compatible
query I rowsort label-5705
SELECT ALL + 19 * 56 + + COUNT ( * ) + - - MIN ( - 77 ) AS col1
----
988

onlyif mysql # aggregate syntax: 
query II rowsort label-5706
SELECT DISTINCT - + COALESCE ( + - 12, SUM( ALL - + ( + 88 ) ) ) * 50 AS col2, - 13
----
600
-13

skipif mysql # not compatible
query II rowsort label-5706
SELECT DISTINCT - + COALESCE ( + - 12, SUM ( ALL - + ( + 88 ) ) ) * 50 AS col2, - 13
----
600
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5707
SELECT DISTINCT + CASE COUNT( * ) WHEN + 32 + + 51 * - AVG ( 34 ) THEN + 22 * - 75 + + COALESCE ( 79, + 0 + + 19 ) + - + 10 WHEN + 90 THEN NULL WHEN + COUNT( * ) THEN + 39 END + - + 38 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5707
SELECT DISTINCT + CASE COUNT ( * ) WHEN + 32 + + 51 * - AVG ( 34 ) THEN + 22 * - 75 + + COALESCE ( 79, + 0 + + 19 ) + - + 10 WHEN + 90 THEN NULL WHEN + COUNT ( * ) THEN + 39 END + - + 38 AS col0
----
1

query I rowsort
SELECT - 40 + + - ( 43 ) * 97 * CASE 30 WHEN 87 THEN NULL WHEN 87 THEN - 33 / + + 1 WHEN - - 2 * + + ( 21 ) THEN NULL ELSE NULL END * 52 + + 23 - + - 27 + - 69 / + + 75 * - 85
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5709
SELECT ALL 10 + - + COUNT( * ) + + 73 col2
----
82

skipif mysql # not compatible
query I rowsort label-5709
SELECT ALL 10 + - + COUNT ( * ) + + 73 col2
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5710
SELECT DISTINCT 14 + - - COUNT( * ) + - CAST( - 32 AS SIGNED ) AS col1, COUNT( * ) * COUNT( * ) + 85 + - 51 DIV - 22
----
47
88

skipif mysql # not compatible
query II rowsort label-5710
SELECT DISTINCT 14 + - - COUNT ( * ) + - CAST ( - 32 AS INTEGER ) AS col1, COUNT ( * ) * COUNT ( * ) + 85 + - 51 / - 22
----
47
88

query I rowsort
SELECT ALL - 63 + - 7 col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5712
SELECT - - MIN( DISTINCT - - 79 ) + + + 52 AS col2
----
131

skipif mysql # not compatible
query I rowsort label-5712
SELECT - - MIN ( DISTINCT - - 79 ) + + + 52 AS col2
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-5713
SELECT ALL - MIN( + 91 ) * + 81 * 16 * - + COUNT( * )
----
117936

skipif mysql # not compatible
query I rowsort label-5713
SELECT ALL - MIN ( + 91 ) * + 81 * 16 * - + COUNT ( * )
----
117936

query II rowsort
SELECT ALL - 4, 63 AS col0
----
-4
63

onlyif mysql # aggregate syntax: 
query II rowsort label-5715
SELECT - + COUNT( * ), - 47 * 78 AS col0
----
-1
-3666

skipif mysql # not compatible
query II rowsort label-5715
SELECT - + COUNT ( * ), - 47 * 78 AS col0
----
-1
-3666

query I rowsort
SELECT - + ( 65 ) + + 58 + + 58 * - 80
----
-4647

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5718
SELECT - - COUNT( * ) + - COUNT( * ) * - 28
----
29

skipif mysql # not compatible
query I rowsort label-5718
SELECT - - COUNT ( * ) + - COUNT ( * ) * - 28
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5719
SELECT - 29 * + MIN( DISTINCT 74 ) col0
----
-2146

skipif mysql # not compatible
query I rowsort label-5719
SELECT - 29 * + MIN ( DISTINCT 74 ) col0
----
-2146

onlyif mysql # aggregate syntax: 
query II rowsort label-5720
SELECT 11 AS col0, + 89 + - 67 * - 40 + + 56 * + COALESCE ( - 51, - COUNT( * ) + + 92 ) AS col1
----
11
-87

skipif mysql # not compatible
query II rowsort label-5720
SELECT 11 AS col0, + 89 + - 67 * - 40 + + 56 * + COALESCE ( - 51, - COUNT ( * ) + + 92 ) AS col1
----
11
-87

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5721
SELECT - + COUNT( * ) * + + CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5721
SELECT - + COUNT ( * ) * + + CAST ( NULL AS REAL ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5722
SELECT DISTINCT - 9 DIV 59
----
0

skipif mysql # not compatible
query I rowsort label-5722
SELECT DISTINCT - 9 / 59
----
0

query I rowsort
SELECT ALL + 87 * - + 86
----
-7482

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5724
SELECT - + COUNT( + 57 ) DIV - + 84 col0
----
0

skipif mysql # not compatible
query I rowsort label-5724
SELECT - + COUNT ( + 57 ) / - + 84 col0
----
0

query I rowsort
SELECT ALL - + CASE + 29 WHEN 0 + - 64 THEN + 9 WHEN + 9 THEN NULL END * 62 + - 30 AS col2
----
NULL

query I rowsort
SELECT - + 70 * - 16
----
1120

onlyif mysql # aggregate syntax: 
query II rowsort label-5727
SELECT DISTINCT - 85 * + 2, + ( - COUNT( DISTINCT + 87 ) ) + + 44 AS col2
----
-170
43

skipif mysql # not compatible
query II rowsort label-5727
SELECT DISTINCT - 85 * + 2, + ( - COUNT ( DISTINCT + 87 ) ) + + 44 AS col2
----
-170
43

query I rowsort
SELECT + 41 * ( + - 3 ) + - 57 AS col0
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-5729
SELECT DISTINCT - NULLIF ( - 80, + COUNT( * ) * + + 98 + COUNT( * ) * + 54 ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-5729
SELECT DISTINCT - NULLIF ( - 80, + COUNT ( * ) * + + 98 + COUNT ( * ) * + 54 ) AS col0
----
80

query I rowsort
SELECT ALL - 31 * + + 95
----
-2945

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5731
SELECT ALL 20 + 91 + + 79 - 12 + - CAST( - 41 AS SIGNED ) * + 63 * - + 63 * + 28 AS col2
----
-4556234

skipif mysql # not compatible
query I rowsort label-5731
SELECT ALL 20 + 91 + + 79 - 12 + - CAST ( - 41 AS INTEGER ) * + 63 * - + 63 * + 28 AS col2
----
-4556234

query I rowsort
SELECT 32 * - 82 * - + 54 + ( - 24 )
----
141672

query I rowsort
SELECT DISTINCT 50 + - - 82 * 74
----
6118

query I rowsort
SELECT ALL 84 + - COALESCE ( 5, 52 - + 50 * 66 ) col0
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-5735
SELECT 1 * - 88 DIV 82
----
-1

skipif mysql # not compatible
query I rowsort label-5735
SELECT 1 * - 88 / 82
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5736
SELECT DISTINCT COUNT( * ) + COUNT( * ) + + NULLIF ( + - 94, + 83 ) * + SUM( ALL 96 ) + - 8
----
-9030

skipif mysql # not compatible
query I rowsort label-5736
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) + + NULLIF ( + - 94, + 83 ) * + SUM ( ALL 96 ) + - 8
----
-9030

query I rowsort
SELECT ALL 49 + - - ( + 79 ) * + ( + 44 )
----
3525

onlyif mysql # aggregate syntax: 
query I rowsort label-5738
SELECT ALL COUNT( DISTINCT - + ( - 97 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5738
SELECT ALL COUNT ( DISTINCT - + ( - 97 ) )
----
1

query I rowsort
SELECT DISTINCT 99 + 76 AS col1
----
175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5740
SELECT ALL + + CAST( NULL AS SIGNED ) + + NULLIF ( + 0, - + ( - 78 ) * + COUNT( + + 92 ) ) - 19 * - 50 / - 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5740
SELECT ALL + + CAST ( NULL AS INTEGER ) + + NULLIF ( + 0, - + ( - 78 ) * + COUNT ( + + 92 ) ) - 19 * - 50 / - 60 AS col2
----
NULL

query II rowsort
SELECT 60 * - 19 AS col0, + 82 * - 3 col0
----
-1140
-246

onlyif mysql # aggregate syntax: 
query I rowsort label-5742
SELECT - + ( - SUM( 96 ) ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-5742
SELECT - + ( - SUM ( 96 ) ) AS col2
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-5743
SELECT ALL COUNT( * ) - + 36 AS col0, 76 AS col0
----
-35
76

skipif mysql # not compatible
query II rowsort label-5743
SELECT ALL COUNT ( * ) - + 36 AS col0, 76 AS col0
----
-35
76

query I rowsort
SELECT 37 * - + 6 * - - 67
----
-14874

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5745
SELECT DISTINCT CAST( NULL AS DECIMAL ) / - 52 + - 91 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5745
SELECT DISTINCT CAST ( NULL AS REAL ) / - 52 + - 91 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5746
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - + 75 + + 77 + + + CASE + 96 WHEN COUNT( * ) - - 72 THEN - - NULLIF ( + + COUNT( * ), - 93 ) * - 8 + - - COUNT( * ) ELSE NULL END * - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-5746
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - + 75 + + 77 + + + CASE + 96 WHEN COUNT ( * ) - - 72 THEN - - NULLIF ( + + COUNT ( * ), - 93 ) * - 8 + - - COUNT ( * ) ELSE NULL END * - 19
----
NULL

query I rowsort
SELECT DISTINCT - + 80 * + - 33 * + 67 AS col1
----
176880

query II rowsort
SELECT + 20 + 71 + + 70, 71 AS col0
----
161
71

onlyif mysql # aggregate syntax: 
query II rowsort label-5749
SELECT 86 * - + COUNT( * ), ( - 82 ) AS col0
----
-86
-82

skipif mysql # not compatible
query II rowsort label-5749
SELECT 86 * - + COUNT ( * ), ( - 82 ) AS col0
----
-86
-82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5750
SELECT DISTINCT 43, - CAST( + 88 AS SIGNED ) col0
----
43
-88

skipif mysql # not compatible
query II rowsort label-5750
SELECT DISTINCT 43, - CAST ( + 88 AS INTEGER ) col0
----
43
-88

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5752
SELECT DISTINCT 63 + 75 / - 40 + - 44 - + ( + ( - - CASE - ( 42 ) WHEN - 18 * - - 15 * CASE + MIN( 44 ) WHEN + + COUNT( * ) + - - 78 + + 80 THEN - + 61 WHEN + - 57 THEN + 28 END THEN + 27 END ) ) + - + 77 * - ( 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5752
SELECT DISTINCT 63 + 75 / - 40 + - 44 - + ( + ( - - CASE - ( 42 ) WHEN - 18 * - - 15 * CASE + MIN ( 44 ) WHEN + + COUNT ( * ) + - - 78 + + 80 THEN - + 61 WHEN + - 57 THEN + 28 END THEN + 27 END ) ) + - + 77 * - ( 1 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5753
SELECT DISTINCT - COUNT ( * ) + - 10 AS col0
----
-11

query II rowsort
SELECT DISTINCT - 37 AS col0, 2 * + 30 * - - 12 col0
----
-37
720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5755
SELECT DISTINCT - 0 + + + NULLIF ( 65, 69 * + - 94 + - + 72 * + - COALESCE ( CAST( + 8 AS SIGNED ), COUNT( ALL + 52 ) - + 27, - MIN( DISTINCT + 27 ) * 31 ) + - 60 * + + 43 * 24 ) col2
----
65

skipif mysql # not compatible
query I rowsort label-5755
SELECT DISTINCT - 0 + + + NULLIF ( 65, 69 * + - 94 + - + 72 * + - COALESCE ( CAST ( + 8 AS INTEGER ), COUNT ( ALL + 52 ) - + 27, - MIN ( DISTINCT + 27 ) * 31 ) + - 60 * + + 43 * 24 ) col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5756
SELECT ALL + NULLIF ( + 50, + ( - COUNT( - 31 ) ) / + 80 ) + - + 49
----
1

skipif mysql # not compatible
query I rowsort label-5756
SELECT ALL + NULLIF ( + 50, + ( - COUNT ( - 31 ) ) / + 80 ) + - + 49
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5757
SELECT 1 - + 17 + CASE + - 14 WHEN + + NULLIF ( - - COUNT( * ), + - 0 * + COUNT( * ) ) * 68 THEN NULL ELSE - + 70 END AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-5757
SELECT 1 - + 17 + CASE + - 14 WHEN + + NULLIF ( - - COUNT ( * ), + - 0 * + COUNT ( * ) ) * 68 THEN NULL ELSE - + 70 END AS col1
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5758
SELECT DISTINCT - CAST( - 53 AS SIGNED )
----
53

skipif mysql # not compatible
query I rowsort label-5758
SELECT DISTINCT - CAST ( - 53 AS INTEGER )
----
53

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5760
SELECT ALL - 83 * - + CAST( - 29 AS SIGNED ) AS col1
----
-2407

skipif mysql # not compatible
query I rowsort label-5760
SELECT ALL - 83 * - + CAST ( - 29 AS INTEGER ) AS col1
----
-2407

query I rowsort
SELECT ALL 31 - + + 25 + - 81 - - 99 * + 20 * - + 43
----
-85215

query I rowsort
SELECT 1 * + 25 - - - 76
----
-51

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

query I rowsort
SELECT 83 - + - 20
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-5765
SELECT + COALESCE ( + + COUNT( + - 86 ), - 11 + + - 26 * - 93, + - 72 ) * + 97
----
97

skipif mysql # not compatible
query I rowsort label-5765
SELECT + COALESCE ( + + COUNT ( + - 86 ), - 11 + + - 26 * - 93, + - 72 ) * + 97
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5766
SELECT - + 18 * - 23 * - MAX( DISTINCT - - 36 ) * + + COUNT( DISTINCT - - 53 ) + - + ( + 85 ) + - - 72, - 52 DIV ( COUNT( - 81 ) ) DIV - COUNT( * ) + 82 AS col0
----
-14917
134

skipif mysql # not compatible
query II rowsort label-5766
SELECT - + 18 * - 23 * - MAX ( DISTINCT - - 36 ) * + + COUNT ( DISTINCT - - 53 ) + - + ( + 85 ) + - - 72, - 52 / ( COUNT ( - 81 ) ) / - COUNT ( * ) + 82 AS col0
----
-14917
134

query I rowsort
SELECT ALL ( 96 ) - - 66 - 91
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-5768
SELECT COUNT( DISTINCT + 50 ) + - + 45 AS col2, 34 col1
----
-44
34

skipif mysql # not compatible
query II rowsort label-5768
SELECT COUNT ( DISTINCT + 50 ) + - + 45 AS col2, 34 col1
----
-44
34

query I rowsort
SELECT + 11 + 12
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5770
SELECT ALL - CASE - CAST( NULL AS SIGNED ) WHEN - 51 * - 15 THEN - COUNT( * ) END * - 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5770
SELECT ALL - CASE - CAST ( NULL AS INTEGER ) WHEN - 51 * - 15 THEN - COUNT ( * ) END * - 56 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 42 * + 15
----
630

onlyif mysql # aggregate syntax: 
query I rowsort label-5772
SELECT 0 + + CASE + + 87 WHEN - 88 * + 70 / - CASE - 60 WHEN - 44 + 83 + 0 * - + 69 THEN - - CASE - 19 WHEN + NULLIF ( + COUNT( * ), - + 94 ) THEN NULL WHEN - + COUNT( * ) THEN + 65 * - + ( + 38 ) ELSE NULL END * + 21 + - COUNT( * ) END THEN + 63 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5772
SELECT 0 + + CASE + + 87 WHEN - 88 * + 70 / - CASE - 60 WHEN - 44 + 83 + 0 * - + 69 THEN - - CASE - 19 WHEN + NULLIF ( + COUNT ( * ), - + 94 ) THEN NULL WHEN - + COUNT ( * ) THEN + 65 * - + ( + 38 ) ELSE NULL END * + 21 + - COUNT ( * ) END THEN + 63 ELSE NULL END
----
NULL

query II rowsort
SELECT DISTINCT + 59, - 71 AS col2
----
59
-71

query I rowsort
SELECT - ( + 94 ) + + 77 * 44 AS col0
----
3294

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5775
SELECT 80 * + 92 DIV - COUNT( 99 )
----
-7360

skipif mysql # not compatible
query I rowsort label-5775
SELECT 80 * + 92 / - COUNT ( 99 )
----
-7360

onlyif mysql # DIV for integer division: 
query I rowsort label-5776
SELECT + + 53 DIV - 79 col1
----
0

skipif mysql # not compatible
query I rowsort label-5776
SELECT + + 53 / - 79 col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5777
SELECT + + COALESCE ( 61, + + 18 ) DIV - + ( 41 )
----
-1

skipif mysql # not compatible
query I rowsort label-5777
SELECT + + COALESCE ( 61, + + 18 ) / - + ( 41 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5778
SELECT DISTINCT 62 DIV + 23
----
2

skipif mysql # not compatible
query I rowsort label-5778
SELECT DISTINCT 62 / + 23
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5779
SELECT - 1 + + CASE + + ( + 96 ) WHEN - 56 * 52 THEN + 81 DIV ( + 49 ) + + 80 + - + 1 + MAX( - 50 ) * + 7 + - 96 DIV + 74 + 21 ELSE 44 * - 17 END
----
-749

skipif mysql # not compatible
query I rowsort label-5779
SELECT - 1 + + CASE + + ( + 96 ) WHEN - 56 * 52 THEN + 81 / ( + 49 ) + + 80 + - + 1 + MAX ( - 50 ) * + 7 + - 96 / + 74 + 21 ELSE 44 * - 17 END
----
-749

query I rowsort
SELECT DISTINCT 87 + - 48 col2
----
39

query I rowsort
SELECT DISTINCT 63 + - 0
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5782
SELECT DISTINCT + COUNT( * ) + 49 - 2 DIV - 73 * - 83
----
50

skipif mysql # not compatible
query I rowsort label-5782
SELECT DISTINCT + COUNT ( * ) + 49 - 2 / - 73 * - 83
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-5783
SELECT DISTINCT 80 DIV + - 98
----
0

skipif mysql # not compatible
query I rowsort label-5783
SELECT DISTINCT 80 / + - 98
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5784
SELECT - COALESCE ( + - 61, ( + - COALESCE ( + + 47, - 38 DIV - + COALESCE ( ( + 91 ), SUM( - 2 ) * 60 * - 72 + 84 + - 83 * - ( - 79 ), + CAST( + 77 AS SIGNED ) ) ) ) + + - 17, 61 * + - ( + 36 ) * - 5 * 50 + + 11 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-5784
SELECT - COALESCE ( + - 61, ( + - COALESCE ( + + 47, - 38 / - + COALESCE ( ( + 91 ), SUM ( - 2 ) * 60 * - 72 + 84 + - 83 * - ( - 79 ), + CAST ( + 77 AS INTEGER ) ) ) ) + + - 17, 61 * + - ( + 36 ) * - 5 * 50 + + 11 ) AS col1
----
61

query II rowsort
SELECT ALL - 13 + - - 96 col0, 97 + 42
----
83
139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5786
SELECT DISTINCT ( - - 92 ) * - 82 + 32 + - + 19 + 98 + - - SUM( - 7 ) DIV + - MAX( DISTINCT + 10 )
----
-7433

skipif mysql # not compatible
query I rowsort label-5786
SELECT DISTINCT ( - - 92 ) * - 82 + 32 + - + 19 + 98 + - - SUM ( - 7 ) / + - MAX ( DISTINCT + 10 )
----
-7433

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5787
SELECT + CASE - + COUNT( * ) WHEN - + COUNT( * ) THEN CASE - ( - MAX( ALL - - COALESCE ( 32, 11 * - 93 ) ) ) WHEN - 22 + + 39 + - - 99 * + COUNT( - 66 ) THEN - + 40 + 98 ELSE NULL END + + 40 + + CAST( - COUNT( * ) AS SIGNED ) ELSE NULL END * - 90 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5787
SELECT + CASE - + COUNT ( * ) WHEN - + COUNT ( * ) THEN CASE - ( - MAX ( ALL - - COALESCE ( 32, 11 * - 93 ) ) ) WHEN - 22 + + 39 + - - 99 * + COUNT ( - 66 ) THEN - + 40 + 98 ELSE NULL END + + 40 + + CAST ( - COUNT ( * ) AS INTEGER ) ELSE NULL END * - 90 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5788
SELECT COALESCE ( + - 80, + 15 + - 71 - + COALESCE ( - NULLIF ( - 63, - ( COALESCE ( + + ( - 55 ), + AVG ( ALL + 45 ) + - 82 * + 48 - - 1, + + 30 * - MAX( - - 25 ) * - 5 + + 36 ) ) ), - 5, 51 ) * + 25 )
----
-80

skipif mysql # not compatible
query I rowsort label-5788
SELECT COALESCE ( + - 80, + 15 + - 71 - + COALESCE ( - NULLIF ( - 63, - ( COALESCE ( + + ( - 55 ), + AVG ( ALL + 45 ) + - 82 * + 48 - - 1, + + 30 * - MAX ( - - 25 ) * - 5 + + 36 ) ) ), - 5, 51 ) * + 25 )
----
-80

query I rowsort
SELECT - 3 * 98 AS col2
----
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-5790
SELECT DISTINCT - CASE + 98 WHEN + SUM( + 23 ) + + 68 THEN - 99 END * - + COUNT( * ) + - 20 + 16 + + 18 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5790
SELECT DISTINCT - CASE + 98 WHEN + SUM ( + 23 ) + + 68 THEN - 99 END * - + COUNT ( * ) + - 20 + 16 + + 18 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5791
SELECT + COALESCE ( + 89, 83 + - + 83 + - - 14 * MIN( - 49 ) ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-5791
SELECT + COALESCE ( + 89, 83 + - + 83 + - - 14 * MIN ( - 49 ) ) AS col0
----
89

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

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

query I rowsort
SELECT ALL - 53 * 63 + + - 48
----
-3387

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5794
SELECT DISTINCT NULLIF ( + - 80, - CAST( NULL AS SIGNED ) * + 23 + - 7 ) * - + 96 + 98 * + SUM( ALL - + 58 ) * - + CASE + 32 WHEN 46 THEN + 39 + - CAST( - + 52 AS SIGNED ) WHEN - + 5 * + 8 THEN NULL ELSE - COUNT( * ) + - + 41 + + + NULLIF ( - CASE - + 82 WHEN + CAST( - 44 AS SIGNED ) THEN 85 * 54 END, 60 ) / - 11 END + - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-5794
SELECT DISTINCT NULLIF ( + - 80, - CAST ( NULL AS INTEGER ) * + 23 + - 7 ) * - + 96 + 98 * + SUM ( ALL - + 58 ) * - + CASE + 32 WHEN 46 THEN + 39 + - CAST ( - + 52 AS INTEGER ) WHEN - + 5 * + 8 THEN NULL ELSE - COUNT ( * ) + - + 41 + + + NULLIF ( - CASE - + 82 WHEN + CAST ( - 44 AS INTEGER ) THEN 85 * 54 END, 60 ) / - 11 END + - 16
----
NULL

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

query I rowsort
SELECT ALL - 60 * - + 6 + + 78 * ( + - 96 )
----
-7128

query I rowsort
SELECT DISTINCT + 71 * - 52 - 79 AS col1
----
-3771

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5800
SELECT DISTINCT + COALESCE ( - 13, - 5 * + - 72 + + + COUNT( * ), + 90 * + 31 + + 1 * + 47 DIV - 9 ) DIV + 35
----
0

skipif mysql # not compatible
query I rowsort label-5800
SELECT DISTINCT + COALESCE ( - 13, - 5 * + - 72 + + + COUNT ( * ), + 90 * + 31 + + 1 * + 47 / - 9 ) / + 35
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5801
SELECT DISTINCT 93 * + 2 - + 15 DIV + 47 - + + 79 AS col0
----
107

skipif mysql # not compatible
query I rowsort label-5801
SELECT DISTINCT 93 * + 2 - + 15 / + 47 - + + 79 AS col0
----
107

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5802
SELECT - - COUNT( * ) DIV - - 10 + - - MIN( ALL 76 ), 51 + + 52 AS col2
----
76
103

skipif mysql # not compatible
query II rowsort label-5802
SELECT - - COUNT ( * ) / - - 10 + - - MIN ( ALL 76 ), 51 + + 52 AS col2
----
76
103

onlyif mysql # aggregate syntax: 
query I rowsort label-5803
SELECT + - COALESCE ( + 49, - SUM( + - 88 ) ) * - COUNT( * ) * 34
----
1666

skipif mysql # not compatible
query I rowsort label-5803
SELECT + - COALESCE ( + 49, - SUM ( + - 88 ) ) * - COUNT ( * ) * 34
----
1666

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5804
SELECT ALL + CAST( + + 30 AS SIGNED ), COUNT( * ) + 93 * - + COUNT( * ) AS col2
----
30
-92

skipif mysql # not compatible
query II rowsort label-5804
SELECT ALL + CAST ( + + 30 AS INTEGER ), COUNT ( * ) + 93 * - + COUNT ( * ) AS col2
----
30
-92

query I rowsort
SELECT - 36 * + + 19 * + - 18
----
12312

query II rowsort
SELECT DISTINCT ( + - 11 ) AS col1, 70
----
-11
70

query I rowsort
SELECT ALL 51 * + - ( - 82 ) AS col0
----
4182

query II rowsort
SELECT ALL - 39 + + 66 AS col0, 76 + 45
----
27
121

onlyif mysql # aggregate syntax: 
query I rowsort label-5809
SELECT - - 33 - - - COUNT( * ) + + + CASE 43 WHEN + - 31 THEN 6 ELSE NULL END * - 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5809
SELECT - - 33 - - - COUNT ( * ) + + + CASE 43 WHEN + - 31 THEN 6 ELSE NULL END * - 21 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5810
SELECT ALL + 81 + - + 41 + 78 * + MIN( + + 30 ) - + COUNT( - + 0 ) + - - 30 * - CASE - SUM( ALL + 54 ) WHEN + 65 * - 97 + + + 48 THEN + 70 * + - 41 + + 58 ELSE NULL END / - - 39 / 3 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5810
SELECT ALL + 81 + - + 41 + 78 * + MIN ( + + 30 ) - + COUNT ( - + 0 ) + - - 30 * - CASE - SUM ( ALL + 54 ) WHEN + 65 * - 97 + + + 48 THEN + 70 * + - 41 + + 58 ELSE NULL END / - - 39 / 3 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5811
SELECT DISTINCT CAST( NULL AS SIGNED ), + 56 AS col0
----
NULL
56

skipif mysql # not compatible
query II rowsort label-5811
SELECT DISTINCT CAST ( NULL AS INTEGER ), + 56 AS col0
----
NULL
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5812
SELECT ALL + 72 + - + COALESCE ( + + 50, + + COUNT( * ) ) col0
----
22

skipif mysql # not compatible
query I rowsort label-5812
SELECT ALL + 72 + - + COALESCE ( + + 50, + + COUNT ( * ) ) col0
----
22

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

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

query I rowsort
SELECT - 80 + + + NULLIF ( - + 33, - AVG ( DISTINCT - 34 ) ) AS col0
----
-113

query I rowsort
SELECT DISTINCT 9 + + 35 * 87 AS col2
----
3054

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5816
SELECT ALL COUNT( DISTINCT 65 ) + CAST( NULL AS SIGNED ) * 89
----
NULL

skipif mysql # not compatible
query I rowsort label-5816
SELECT ALL COUNT ( DISTINCT 65 ) + CAST ( NULL AS INTEGER ) * 89
----
NULL

query II rowsort
SELECT 55 col1, + 47
----
55
47

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5819
SELECT + 38 DIV + 44 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5819
SELECT + 38 / + 44 AS col1
----
0

query I rowsort
SELECT + 50 * + 79 AS col0
----
3950

query I rowsort
SELECT + 56 * 23
----
1288

onlyif mysql # DIV for integer division: 
query I rowsort label-5822
SELECT ALL 62 DIV 12
----
5

skipif mysql # not compatible
query I rowsort label-5822
SELECT ALL 62 / 12
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5823
SELECT DISTINCT 34 / + + 4 / + CAST( NULL AS SIGNED ) - + 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5823
SELECT DISTINCT 34 / + + 4 / + CAST ( NULL AS INTEGER ) - + 59 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5824
SELECT + 2 + + ( - 95 ) * - 93 + + - COUNT( * )
----
8836

skipif mysql # not compatible
query I rowsort label-5824
SELECT + 2 + + ( - 95 ) * - 93 + + - COUNT ( * )
----
8836

query I rowsort
SELECT ALL - 83 * 22 AS col2
----
-1826

query I rowsort
SELECT + 20 * 15 * + ( 15 ) AS col2
----
4500

onlyif mysql # aggregate syntax: 
query I rowsort label-5827
SELECT ALL 26 * + 74 * + MIN( DISTINCT 20 )
----
38480

skipif mysql # not compatible
query I rowsort label-5827
SELECT ALL 26 * + 74 * + MIN ( DISTINCT 20 )
----
38480

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT + COUNT( 8 ) * - ( + - 5 ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-5828
SELECT + COUNT ( 8 ) * - ( + - 5 ) AS col1
----
5

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5830
SELECT DISTINCT - SUM( DISTINCT + 50 ) / + 21 * 88 + CAST( NULL AS SIGNED ) - - 42 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5830
SELECT DISTINCT - SUM ( DISTINCT + 50 ) / + 21 * 88 + CAST ( NULL AS INTEGER ) - - 42 AS col2
----
NULL

query II rowsort
SELECT DISTINCT + - 92 AS col0, - 5 + 41 col0
----
-92
36

query I rowsort
SELECT + ( - 74 ) - - 35 AS col0
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-5833
SELECT - ( + COUNT( * ) ) * + 12 * 16 - - - MIN( ALL - 19 ) * - SUM( + 47 ) AS col2, - ( 6 ) AS col2
----
-1085
-6

skipif mysql # not compatible
query II rowsort label-5833
SELECT - ( + COUNT ( * ) ) * + 12 * 16 - - - MIN ( ALL - 19 ) * - SUM ( + 47 ) AS col2, - ( 6 ) AS col2
----
-1085
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5834
SELECT + - 37 * ( - 19 ) * + COUNT( * ) + + 10 - 50
----
663

skipif mysql # not compatible
query I rowsort label-5834
SELECT + - 37 * ( - 19 ) * + COUNT ( * ) + + 10 - 50
----
663

onlyif mysql # DIV for integer division: 
query II rowsort label-5835
SELECT - NULLIF ( + 1, 83 ) DIV - 18 + 10 AS col2, 33
----
10
33

skipif mysql # not compatible
query II rowsort label-5835
SELECT - NULLIF ( + 1, 83 ) / - 18 + 10 AS col2, 33
----
10
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5836
SELECT + + NULLIF ( - 2, 27 ) + + COUNT( * ) + + - 97 + - - 72 - + 58 * ( + + 10 )
----
-606

skipif mysql # not compatible
query I rowsort label-5836
SELECT + + NULLIF ( - 2, 27 ) + + COUNT ( * ) + + - 97 + - - 72 - + 58 * ( + + 10 )
----
-606

query I rowsort
SELECT - + 98 - 12
----
-110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5838
SELECT ALL - ( - + SUM( DISTINCT - 71 ) ) * ( + COUNT( * ) ) DIV + 23
----
-3

skipif mysql # not compatible
query I rowsort label-5838
SELECT ALL - ( - + SUM ( DISTINCT - 71 ) ) * ( + COUNT ( * ) ) / + 23
----
-3

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5840
SELECT ALL + - 36 + + 8 - + 13 * - ( ( - 8 ) ) DIV + COUNT( DISTINCT 94 ) + 50 AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-5840
SELECT ALL + - 36 + + 8 - + 13 * - ( ( - 8 ) ) / + COUNT ( DISTINCT 94 ) + 50 AS col2
----
-82

query I rowsort
SELECT DISTINCT - - 74 * 26
----
1924

onlyif mysql # DIV for integer division: 
query I rowsort label-5842
SELECT ( 92 ) DIV - 52 + + + 87 * + 31 * - + ( + - 99 ) AS col2
----
267002

skipif mysql # not compatible
query I rowsort label-5842
SELECT ( 92 ) / - 52 + + + 87 * + 31 * - + ( + - 99 ) AS col2
----
267002

onlyif mysql # DIV for integer division: 
query I rowsort label-5843
SELECT + 56 DIV 34
----
1

skipif mysql # not compatible
query I rowsort label-5843
SELECT + 56 / 34
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5844
SELECT 94 + 37 - + 14 * - 13 / - 70 - + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) - 63 + 84 + CAST( + CASE 1 WHEN + - 64 THEN NULL ELSE 36 + + - SUM( - 35 ) END AS SIGNED ) / ( 76 ) / 53 + + - 8 - + 44 * 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5844
SELECT 94 + 37 - + 14 * - 13 / - 70 - + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) - 63 + 84 + CAST ( + CASE 1 WHEN + - 64 THEN NULL ELSE 36 + + - SUM ( - 35 ) END AS INTEGER ) / ( 76 ) / 53 + + - 8 - + 44 * 14 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5845
SELECT - + 38 AS col1, ( - 88 ) / CASE + - 32 WHEN - COUNT( * ) / - - 78 THEN - ( + 60 ) ELSE NULL END / 38 - - ( - + 68 ) AS col0
----
-38
NULL

skipif mysql # not compatible
query II rowsort label-5845
SELECT - + 38 AS col1, ( - 88 ) / CASE + - 32 WHEN - COUNT ( * ) / - - 78 THEN - ( + 60 ) ELSE NULL END / 38 - - ( - + 68 ) AS col0
----
-38
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5846
SELECT CASE WHEN NOT 85 IS NOT NULL THEN NULL ELSE 67 END * - COUNT( * ) * COUNT( * ) * - - 90
----
-6030

skipif mysql # not compatible
query I rowsort label-5846
SELECT CASE WHEN NOT 85 IS NOT NULL THEN NULL ELSE 67 END * - COUNT ( * ) * COUNT ( * ) * - - 90
----
-6030

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT ALL + + 61 + COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-5847
SELECT ALL + + 61 + COUNT ( * )
----
62

query I rowsort
SELECT 40 + + 23
----
63

query I rowsort
SELECT 32 + + + 95 col1
----
127

query I rowsort
SELECT ALL + + 69 + + 6 AS col1
----
75

query I rowsort
SELECT 15 + - 29 * + 16 AS col2
----
-449

query II rowsort
SELECT 17, + 97 * - NULLIF ( 58, + 44 ) - - - 16 AS col2
----
17
-5642

onlyif mysql # aggregate syntax: 
query I rowsort label-5853
SELECT 24 + + 43 + + + COUNT( * ) + - COUNT( 60 ) * + 48 * + - 59 * + - 8 * + + 74 + + - COUNT( * )
----
-1676477

skipif mysql # not compatible
query I rowsort label-5853
SELECT 24 + + 43 + + + COUNT ( * ) + - COUNT ( 60 ) * + 48 * + - 59 * + - 8 * + + 74 + + - COUNT ( * )
----
-1676477

onlyif mysql # aggregate syntax: 
query I rowsort label-5854
SELECT ALL - COUNT( + + 4 ) + 32 + - 59
----
-28

skipif mysql # not compatible
query I rowsort label-5854
SELECT ALL - COUNT ( + + 4 ) + 32 + - 59
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5855
SELECT COUNT( * ) + + + 68 AS col0, - COUNT( * ) * 46 DIV + ( + COUNT( * ) )
----
69
-46

skipif mysql # not compatible
query II rowsort label-5855
SELECT COUNT ( * ) + + + 68 AS col0, - COUNT ( * ) * 46 / + ( + COUNT ( * ) )
----
69
-46

query II rowsort
SELECT ALL 60 AS col1, 13 AS col2
----
60
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5857
SELECT 14 * CAST( + 49 AS SIGNED )
----
686

skipif mysql # not compatible
query I rowsort label-5857
SELECT 14 * CAST ( + 49 AS INTEGER )
----
686

query II rowsort
SELECT ALL 14 AS col0, - 62 AS col2
----
14
-62

query II rowsort
SELECT DISTINCT 65 col2, + 90 AS col1
----
65
90

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

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

query I rowsort
SELECT ALL - ( 68 ) * - 65 * + + 72 AS col2
----
318240

query I rowsort
SELECT 40 * + - ( + + 16 ) * 19 + - 14 AS col0
----
-12174

query II rowsort
SELECT ALL - 85 AS col0, - 8
----
-85
-8

query II rowsort
SELECT 79, 79 AS col1
----
79
79

query II rowsort
SELECT ALL - 94 col2, - 34 * - - 26
----
-94
-884

onlyif mysql # DIV for integer division: 
query I rowsort label-5866
SELECT 30 DIV + + 14
----
2

skipif mysql # not compatible
query I rowsort label-5866
SELECT 30 / + + 14
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-5867
SELECT SUM( + 47 ) * - 56 - + COUNT( * ) AS col0, - 93 * 62 * - + COUNT( 71 ) * - 43 * + NULLIF ( + + 2, + - 10 + + 65 - - COUNT( * ) + + COUNT( * ) ) * - COUNT( * ) * - COUNT( * )
----
-2633
-495876

skipif mysql # not compatible
query II rowsort label-5867
SELECT SUM ( + 47 ) * - 56 - + COUNT ( * ) AS col0, - 93 * 62 * - + COUNT ( 71 ) * - 43 * + NULLIF ( + + 2, + - 10 + + 65 - - COUNT ( * ) + + COUNT ( * ) ) * - COUNT ( * ) * - COUNT ( * )
----
-2633
-495876

query I rowsort
SELECT 29 - 30 AS col1
----
-1

query I rowsort
SELECT ALL - 82 * - 24 col2
----
1968

onlyif mysql # aggregate syntax: 
query I rowsort label-5870
SELECT ALL COUNT( * ) * 18 * - 10
----
-180

skipif mysql # not compatible
query I rowsort label-5870
SELECT ALL COUNT ( * ) * 18 * - 10
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-5871
SELECT + 91 * + MIN( + 62 )
----
5642

skipif mysql # not compatible
query I rowsort label-5871
SELECT + 91 * + MIN ( + 62 )
----
5642

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5872
SELECT ALL + COUNT( * ) + + - COUNT( * ) DIV - 31 + + - MAX( ALL 3 ) + 70 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-5872
SELECT ALL + COUNT ( * ) + + - COUNT ( * ) / - 31 + + - MAX ( ALL 3 ) + 70 AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5873
SELECT DISTINCT - 90 * + + COALESCE ( - 35, - 3 * + - ( 43 ) + - 92 + 61, - COUNT( * ) * 89 + - 34 )
----
3150

skipif mysql # not compatible
query I rowsort label-5873
SELECT DISTINCT - 90 * + + COALESCE ( - 35, - 3 * + - ( 43 ) + - 92 + 61, - COUNT ( * ) * 89 + - 34 )
----
3150

query I rowsort
SELECT DISTINCT 79 + 2 - - 63 * - 76 AS col1
----
-4707

query II rowsort
SELECT + 69 AS col0, ( - 40 ) AS col1
----
69
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5876
SELECT + CAST( - 69 AS SIGNED ) * - 91 AS col1
----
6279

skipif mysql # not compatible
query I rowsort label-5876
SELECT + CAST ( - 69 AS INTEGER ) * - 91 AS col1
----
6279

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

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

query I rowsort
SELECT ALL 10 + - 97
----
-87

query I rowsort
SELECT ALL - 97 + + ( - + 80 ) AS col2
----
-177

query II rowsort
SELECT ALL - 68 AS col1, + 50 col1
----
-68
50

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

query I rowsort
SELECT ALL + - 9 + 12 AS col0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5883
SELECT DISTINCT 31 col2, + SUM( DISTINCT ( NULLIF ( + - 51, + 71 ) ) ) + + 16
----
31
-35

skipif mysql # not compatible
query II rowsort label-5883
SELECT DISTINCT 31 col2, + SUM ( DISTINCT ( NULLIF ( + - 51, + 71 ) ) ) + + 16
----
31
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-5884
SELECT 24 DIV + - 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5884
SELECT 24 / + - 97 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5885
SELECT CASE WHEN NOT COUNT( * ) IS NULL THEN NULL ELSE + + 70 * + 61 + - 80 + + + ( + - 71 ) * + + COALESCE ( + - 87, 51 * - 57 / + 84 ) END * 68 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5885
SELECT CASE WHEN NOT COUNT ( * ) IS NULL THEN NULL ELSE + + 70 * + 61 + - 80 + + + ( + - 71 ) * + + COALESCE ( + - 87, 51 * - 57 / + 84 ) END * 68 col1
----
NULL

query I rowsort
SELECT 31 * - + 20 * + 75 AS col2
----
-46500

query I rowsort
SELECT DISTINCT - ( - 47 ) * - 45 * + + 91
----
-192465

query I rowsort
SELECT 14 - 40
----
-26

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

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

query I rowsort
SELECT 21 * 38
----
798

onlyif mysql # aggregate syntax: 
query I rowsort label-5891
SELECT DISTINCT + COUNT( * ) * - - 27 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-5891
SELECT DISTINCT + COUNT ( * ) * - - 27 AS col1
----
27

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5892
SELECT DISTINCT + CAST( + 74 AS SIGNED ) DIV - 20 col1
----
-3

skipif mysql # not compatible
query I rowsort label-5892
SELECT DISTINCT + CAST ( + 74 AS INTEGER ) / - 20 col1
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5893
SELECT 33 * - + COALESCE ( - 96, - + 72, - + 65 DIV + 18 ) * - - 53 * + + 72 + - COUNT( * ) - - + MIN( DISTINCT - 71 ) + - MAX( ALL - 75 ) * 61 DIV 59
----
12089093

skipif mysql # not compatible
query I rowsort label-5893
SELECT 33 * - + COALESCE ( - 96, - + 72, - + 65 / + 18 ) * - - 53 * + + 72 + - COUNT ( * ) - - + MIN ( DISTINCT - 71 ) + - MAX ( ALL - 75 ) * 61 / 59
----
12089093

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

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

query I rowsort
SELECT 49 - + - 71 + + 65 * + 52 AS col2
----
3500

query II rowsort
SELECT 20 * + - 89, + 43 AS col0
----
-1780
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5897
SELECT MIN( ALL ( + - 25 ) ) - - 2 AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-5897
SELECT MIN ( ALL ( + - 25 ) ) - - 2 AS col0
----
-23

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

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

query I rowsort
SELECT DISTINCT - + 7 * + - 35 * - 13 col2
----
-3185

onlyif mysql # aggregate syntax: 
query I rowsort label-5900
SELECT 75 / - + CASE - 66 WHEN + SUM( + 20 ) - - 53 THEN - 92 + 63 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5900
SELECT 75 / - + CASE - 66 WHEN + SUM ( + 20 ) - - 53 THEN - 92 + 63 END
----
NULL

query I rowsort
SELECT ALL - 86 * - 29 + + 32 col1
----
2526

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5902
SELECT - 61 * + 97 + 95 - + 78 + - + ( - 65 ) + - 44 + - 30 * + CAST( NULL AS SIGNED ) * + 41 + + ( - 58 ) + - + 5 * + - 12 * + - 16 + - + MAX( + + 21 ), CAST( NULL AS SIGNED ) * - + 70 + - COUNT( * ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5902
SELECT - 61 * + 97 + 95 - + 78 + - + ( - 65 ) + - 44 + - 30 * + CAST ( NULL AS INTEGER ) * + 41 + + ( - 58 ) + - + 5 * + - 12 * + - 16 + - + MAX ( + + 21 ), CAST ( NULL AS INTEGER ) * - + 70 + - COUNT ( * ) AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5903
SELECT - 42 DIV + - COALESCE ( + 75, + 35 + 64 * + + 83, + 49 - + 99 - + MIN( + 9 ) + + 87 * + 71 - - 19 + 69 ) + 78 * - COUNT( * ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-5903
SELECT - 42 / + - COALESCE ( + 75, + 35 + 64 * + + 83, + 49 - + 99 - + MIN ( + 9 ) + + 87 * + 71 - - 19 + 69 ) + 78 * - COUNT ( * ) AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5904
SELECT - - 95 - + - COUNT( * ) - + 84 * - 5 AS col0
----
516

skipif mysql # not compatible
query I rowsort label-5904
SELECT - - 95 - + - COUNT ( * ) - + 84 * - 5 AS col0
----
516

query I rowsort
SELECT + 69 * + 45 + - 8 AS col1
----
3097

query I rowsort
SELECT ALL + - NULLIF ( 25, + 12 - + 21 + + - 26 ) AS col1
----
-25

query I rowsort
SELECT + + ( 77 ) + - + 28 + + - 17 AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5908
SELECT DISTINCT - 9 * + - MIN( DISTINCT + + 98 )
----
882

skipif mysql # not compatible
query I rowsort label-5908
SELECT DISTINCT - 9 * + - MIN ( DISTINCT + + 98 )
----
882

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5909
SELECT ALL + 76 * + MIN( - 51 ) / 5 + + COUNT( * ) - - CAST( NULL AS SIGNED ) * ( + 97 ) * 66 * 57 - + - 38 * - + 61 + + + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-5909
SELECT ALL + 76 * + MIN ( - 51 ) / 5 + + COUNT ( * ) - - CAST ( NULL AS INTEGER ) * ( + 97 ) * 66 * 57 - + - 38 * - + 61 + + + 96
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5910
SELECT ALL + 65 DIV - - 50 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5910
SELECT ALL + 65 / - - 50 AS col0
----
1

query I rowsort
SELECT - 73 * - - 10 - + + 82 AS col2
----
-812

query I rowsort
SELECT DISTINCT 84 * 76 AS col2
----
6384

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5913
SELECT + 6 * - CAST( NULL AS SIGNED ) + - 55 - + COUNT( * ) * - - ( + - 64 ) * - 47 + + - ( - COUNT( * ) ) + + 51, 36 * + - 7 * 94 AS col1
----
NULL
-23688

skipif mysql # not compatible
query II rowsort label-5913
SELECT + 6 * - CAST ( NULL AS INTEGER ) + - 55 - + COUNT ( * ) * - - ( + - 64 ) * - 47 + + - ( - COUNT ( * ) ) + + 51, 36 * + - 7 * 94 AS col1
----
NULL
-23688

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5915
SELECT + 51 + - 53 + + CAST( NULL AS SIGNED ) * + + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-5915
SELECT + 51 + - 53 + + CAST ( NULL AS INTEGER ) * + + 30
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5916
SELECT - 57 * + - CAST( 24 AS SIGNED )
----
1368

skipif mysql # not compatible
query I rowsort label-5916
SELECT - 57 * + - CAST ( 24 AS INTEGER )
----
1368

query I rowsort
SELECT + 27 + - 27
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5918
SELECT ALL COUNT( * ) AS col2, COUNT( DISTINCT + - 95 ) + + 12 * 30 + - ( - 42 )
----
1
403

skipif mysql # not compatible
query II rowsort label-5918
SELECT ALL COUNT ( * ) AS col2, COUNT ( DISTINCT + - 95 ) + + 12 * 30 + - ( - 42 )
----
1
403

query I rowsort
SELECT + 21 * - + 87 AS col1
----
-1827

query I rowsort
SELECT ALL NULLIF ( + 8, - 99 )
----
8

query I rowsort
SELECT + 9 + + 81 + 36
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-5922
SELECT - CASE COUNT( + 16 ) WHEN + 11 THEN - 58 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5922
SELECT - CASE COUNT ( + 16 ) WHEN + 11 THEN - 58 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5923
SELECT - MAX( + - 39 ) + + 79, 15 * + ( + - COUNT( ALL ( - 19 ) ) ) - + 0 * - 85 + + - 81 * 25 AS col2
----
118
-2040

skipif mysql # not compatible
query II rowsort label-5923
SELECT - MAX ( + - 39 ) + + 79, 15 * + ( + - COUNT ( ALL ( - 19 ) ) ) - + 0 * - 85 + + - 81 * 25 AS col2
----
118
-2040

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5925
SELECT - COALESCE ( + 23, - ( 51 ), - CAST( NULL AS SIGNED ), + ( NULLIF ( CAST( NULL AS SIGNED ), COUNT( * ) * 45 * - - 62 ) ) * 44 + - - ( - - COUNT( * ) ) ) + + + 78 * + + 94 * - - 0 + - 21, + 46 * ( - AVG ( 38 ) ) * + + 46 / + 7 + CAST( NULL AS SIGNED ) AS col1
----
-44
NULL

skipif mysql # not compatible
query II rowsort label-5925
SELECT - COALESCE ( + 23, - ( 51 ), - CAST ( NULL AS INTEGER ), + ( NULLIF ( CAST ( NULL AS INTEGER ), COUNT ( * ) * 45 * - - 62 ) ) * 44 + - - ( - - COUNT ( * ) ) ) + + + 78 * + + 94 * - - 0 + - 21, + 46 * ( - AVG ( 38 ) ) * + + 46 / + 7 + CAST ( NULL AS INTEGER ) AS col1
----
-44
NULL

query I rowsort
SELECT ALL + 61 * - + 92
----
-5612

onlyif mysql # aggregate syntax: 
query I rowsort label-5927
SELECT DISTINCT - 6 * - 9 * - COUNT( * ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-5927
SELECT DISTINCT - 6 * - 9 * - COUNT ( * ) AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-5928
SELECT DISTINCT 2 + + 72 - + + COUNT( * ) col2
----
73

skipif mysql # not compatible
query I rowsort label-5928
SELECT DISTINCT 2 + + 72 - + + COUNT ( * ) col2
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5929
SELECT DISTINCT CASE CAST( - CASE - MIN( ALL - 58 ) WHEN + 74 / - 54 * 33 + - 9 + - 20 THEN + COALESCE ( - 42, 93 ) END AS SIGNED ) WHEN 51 + - + COUNT( ALL + - 54 ) THEN + + 22 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5929
SELECT DISTINCT CASE CAST ( - CASE - MIN ( ALL - 58 ) WHEN + 74 / - 54 * 33 + - 9 + - 20 THEN + COALESCE ( - 42, 93 ) END AS INTEGER ) WHEN 51 + - + COUNT ( ALL + - 54 ) THEN + + 22 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5930
SELECT ALL COUNT( * ) + - COALESCE ( 46, - COUNT( * ) + - - 63 + 92, + - 27 ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-5930
SELECT ALL COUNT ( * ) + - COALESCE ( 46, - COUNT ( * ) + - - 63 + 92, + - 27 ) AS col2
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5931
SELECT ALL CAST( - + 71 AS SIGNED ) + + 55 * 6 col2
----
259

skipif mysql # not compatible
query I rowsort label-5931
SELECT ALL CAST ( - + 71 AS INTEGER ) + + 55 * 6 col2
----
259

query II rowsort
SELECT - 89 AS col0, 54
----
-89
54

onlyif mysql # DIV for integer division: 
query I rowsort label-5933
SELECT - ( + 96 ) DIV - - 98 + 11 + - 82 + - + 64 * - 85
----
5369

skipif mysql # not compatible
query I rowsort label-5933
SELECT - ( + 96 ) / - - 98 + 11 + - 82 + - + 64 * - 85
----
5369

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5935
SELECT ALL 17 / - CAST( NULL AS SIGNED ) + - ( - ( - 0 ) ) + - 52 - + 36 + ( + + 31 ) + + CAST( - 76 AS SIGNED ) + + 70 * 15, 69 AS col0
----
NULL
69

skipif mysql # not compatible
query II rowsort label-5935
SELECT ALL 17 / - CAST ( NULL AS INTEGER ) + - ( - ( - 0 ) ) + - 52 - + 36 + ( + + 31 ) + + CAST ( - 76 AS INTEGER ) + + 70 * 15, 69 AS col0
----
NULL
69

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

skipif mysql # not compatible
query I rowsort label-5936
SELECT + 21 * COUNT ( * ) + 62 AS col2
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-5937
SELECT - COUNT( * ), COUNT( * ) col2
----
-1
1

skipif mysql # not compatible
query II rowsort label-5937
SELECT - COUNT ( * ), COUNT ( * ) col2
----
-1
1

query I rowsort
SELECT - 62 + 96
----
34

query I rowsort
SELECT ALL + - 54 * + 82 - 84 + + + 83 + 11
----
-4418

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5940
SELECT ALL + - 29 AS col1, + 61 DIV + 87 + + ( + 41 ) * + COUNT( * ) + - 76
----
-29
-35

skipif mysql # not compatible
query II rowsort label-5940
SELECT ALL + - 29 AS col1, + 61 / + 87 + + ( + 41 ) * + COUNT ( * ) + - 76
----
-29
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5941
SELECT + CAST( NULL AS SIGNED ) * - 2 + - - SUM( ALL + COALESCE ( + + 37, 84 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5941
SELECT + CAST ( NULL AS INTEGER ) * - 2 + - - SUM ( ALL + COALESCE ( + + 37, 84 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5942
SELECT ALL + - 62 * + + 27 DIV + COUNT( * )
----
-1674

skipif mysql # not compatible
query I rowsort label-5942
SELECT ALL + - 62 * + + 27 / + COUNT ( * )
----
-1674

onlyif mysql # aggregate syntax: 
query II rowsort label-5943
SELECT + COUNT( * ) AS col1, COUNT( * ) * 70 + 3
----
1
73

skipif mysql # not compatible
query II rowsort label-5943
SELECT + COUNT ( * ) AS col1, COUNT ( * ) * 70 + 3
----
1
73

query I rowsort
SELECT - 46 * - 88 * + 52 * - 92 + + 94 AS col2
----
-19365538

onlyif mysql # aggregate syntax: 
query I rowsort label-5945
SELECT ALL + - MIN( ALL + - 21 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-5945
SELECT ALL + - MIN ( ALL + - 21 ) AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5946
SELECT + + 34 + 75 + 39 - COUNT( * ) * + 46
----
102

skipif mysql # not compatible
query I rowsort label-5946
SELECT + + 34 + 75 + 39 - COUNT ( * ) * + 46
----
102

query II rowsort
SELECT ALL + + 95, - 84 col2
----
95
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5948
SELECT + + SUM( + + 49 )
----
49

skipif mysql # not compatible
query I rowsort label-5948
SELECT + + SUM ( + + 49 )
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-5949
SELECT DISTINCT ( ( + - 80 ) ) DIV + 33 + - - 79
----
77

skipif mysql # not compatible
query I rowsort label-5949
SELECT DISTINCT ( ( + - 80 ) ) / + 33 + - - 79
----
77

query I rowsort
SELECT + NULLIF ( + 97, + 29 * 87 + + + 58 + - + 94 + + 0 / + NULLIF ( - - 32, + 11 * + 86 ) * 39 ) AS col0
----
97

query I rowsort
SELECT + 4 * + 1 AS col1
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-5952
SELECT ALL + 92 DIV 83 DIV 61 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5952
SELECT ALL + 92 / 83 / 61 AS col0
----
0

query I rowsort
SELECT ALL 91 * - + 32
----
-2912

onlyif mysql # DIV for integer division: 
query II rowsort label-5954
SELECT ALL 62 * - - 87 AS col0, 70 + + - 7 DIV - 94 DIV 93 * - 95 + + ( 89 )
----
5394
159

skipif mysql # not compatible
query II rowsort label-5954
SELECT ALL 62 * - - 87 AS col0, 70 + + - 7 / - 94 / 93 * - 95 + + ( 89 )
----
5394
159

onlyif mysql # aggregate syntax: 
query I rowsort label-5955
SELECT DISTINCT NULLIF ( 85, CASE - 53 WHEN 69 * + - 34 * COUNT( - - 24 ) / + + 38 + - + 34 THEN NULL ELSE + 90 END + + 42 ) * + 27
----
2295

skipif mysql # not compatible
query I rowsort label-5955
SELECT DISTINCT NULLIF ( 85, CASE - 53 WHEN 69 * + - 34 * COUNT ( - - 24 ) / + + 38 + - + 34 THEN NULL ELSE + 90 END + + 42 ) * + 27
----
2295

query I rowsort
SELECT + 44 * - 42 * + 95
----
-175560

onlyif mysql # aggregate syntax: 
query II rowsort label-5957
SELECT SUM( DISTINCT + 21 ), + 4 + - 70 AS col1
----
21
-66

skipif mysql # not compatible
query II rowsort label-5957
SELECT SUM ( DISTINCT + 21 ), + 4 + - 70 AS col1
----
21
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5958
SELECT ALL ( + 35 ) * MIN( 24 )
----
840

skipif mysql # not compatible
query I rowsort label-5958
SELECT ALL ( + 35 ) * MIN ( 24 )
----
840

onlyif mysql # aggregate syntax: 
query I rowsort label-5959
SELECT + CASE ( - ( 31 ) ) WHEN + 70 * SUM( ( - - 31 ) ) * - 63 * - - 51 + - 91 THEN - + 61 END * + + MIN( 93 ) / 41 * + - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-5959
SELECT + CASE ( - ( 31 ) ) WHEN + 70 * SUM ( ( - - 31 ) ) * - 63 * - - 51 + - 91 THEN - + 61 END * + + MIN ( 93 ) / 41 * + - 1
----
NULL

query I rowsort
SELECT DISTINCT - 84 + + ( - 76 ) * + - 37 * - 47 * 18
----
-2379036

query II rowsort
SELECT DISTINCT 32 + + + 83 AS col0, + ( ( 82 ) ) * - - ( 67 ) AS col0
----
115
5494

query I rowsort
SELECT - 1 + - 95
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT 4 - 80 * - MIN( DISTINCT - ( - 20 ) )
----
1604

skipif mysql # not compatible
query I rowsort label-5963
SELECT 4 - 80 * - MIN ( DISTINCT - ( - 20 ) )
----
1604

query I rowsort
SELECT DISTINCT ( + 47 ) + 99 AS col2
----
146

query I rowsort
SELECT + 24 * - - 20
----
480

query I rowsort
SELECT ALL + 1 + - 67 AS col0
----
-66

query I rowsort
SELECT DISTINCT + 31 * 28 * 39
----
33852

onlyif mysql # aggregate syntax: 
query I rowsort label-5968
SELECT DISTINCT 16 - + COUNT( * ) * + + 30 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-5968
SELECT DISTINCT 16 - + COUNT ( * ) * + + 30 AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5969
SELECT DISTINCT - COALESCE ( - + COUNT( * ), - - COALESCE ( 10, - 79 + - 58, - - 35 + - ( 97 ), - + 8 * + 13 ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-5969
SELECT DISTINCT - COALESCE ( - + COUNT ( * ), - - COALESCE ( 10, - 79 + - 58, - - 35 + - ( 97 ), - + 8 * + 13 ) ) col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5970
SELECT + 82 * 36 - 71 DIV + 98 * COUNT( * ) - 16
----
2936

skipif mysql # not compatible
query I rowsort label-5970
SELECT + 82 * 36 - 71 / + 98 * COUNT ( * ) - 16
----
2936

query I rowsort
SELECT 53 * + + 29
----
1537

onlyif mysql # aggregate syntax: 
query I rowsort label-5972
SELECT - - COUNT( * ) * 1 + SUM( DISTINCT 56 )
----
57

skipif mysql # not compatible
query I rowsort label-5972
SELECT - - COUNT ( * ) * 1 + SUM ( DISTINCT 56 )
----
57

query II rowsort
SELECT 63 + + 11 * 54 * - + 16 col2, - 15 AS col2
----
-9441
-15

query I rowsort
SELECT ALL + 8 * 49 AS col2
----
392

onlyif mysql # aggregate syntax: 
query I rowsort label-5975
SELECT - 26 * - 92 + COUNT( * ) + CASE 78 WHEN 22 + + 38 THEN + COUNT( * ) END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5975
SELECT - 26 * - 92 + COUNT ( * ) + CASE 78 WHEN 22 + + 38 THEN + COUNT ( * ) END + - COUNT ( * )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5976
SELECT DISTINCT - MAX ( DISTINCT 13 )
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5977
SELECT COUNT( * ) - + - COALESCE ( - - MIN( - 60 ), - - 27 - + - 15, - CAST( NULL AS SIGNED ) * 2 )
----
-59

skipif mysql # not compatible
query I rowsort label-5977
SELECT COUNT ( * ) - + - COALESCE ( - - MIN ( - 60 ), - - 27 - + - 15, - CAST ( NULL AS INTEGER ) * 2 )
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5978
SELECT 49 - - - COUNT( * ) * - + 53 DIV 69
----
49

skipif mysql # not compatible
query I rowsort label-5978
SELECT 49 - - - COUNT ( * ) * - + 53 / 69
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5979
SELECT 23 * - 93 * + 73 * + NULLIF ( - COUNT( * ), - 85 ) AS col2
----
156147

skipif mysql # not compatible
query I rowsort label-5979
SELECT 23 * - 93 * + 73 * + NULLIF ( - COUNT ( * ), - 85 ) AS col2
----
156147

onlyif mysql # aggregate syntax: 
query I rowsort label-5980
SELECT ALL - CASE + SUM( + + 10 ) WHEN - COUNT( * ) THEN + COUNT( * ) ELSE NULL END + 24 - + 57 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5980
SELECT ALL - CASE + SUM ( + + 10 ) WHEN - COUNT ( * ) THEN + COUNT ( * ) ELSE NULL END + 24 - + 57 col2
----
NULL

query I rowsort
SELECT ALL 8 + + 51
----
59

query I rowsort
SELECT 49 + - 54 AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5983
SELECT COUNT( - + 95 ) + + 70 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-5983
SELECT COUNT ( - + 95 ) + + 70 AS col0
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-5984
SELECT ALL 2 + - - ( + 7 ) + + 95 * 59 AS col0, + ( - - 36 ) * + 85 + + COUNT( 70 ) + - - 2 * - - 28 + - 81 - 39 AS col0
----
5614
2997

skipif mysql # not compatible
query II rowsort label-5984
SELECT ALL 2 + - - ( + 7 ) + + 95 * 59 AS col0, + ( - - 36 ) * + 85 + + COUNT ( 70 ) + - - 2 * - - 28 + - 81 - 39 AS col0
----
5614
2997

query I rowsort
SELECT 39 * + + ( 32 ) * + COALESCE ( + 86, + - 93 )
----
107328

query I rowsort
SELECT 74 * + + 45
----
3330

onlyif mysql # DIV for integer division: 
query I rowsort label-5987
SELECT 45 + + 10 + 44 + + 89 DIV + 93 + + + 22 AS col0
----
121

skipif mysql # not compatible
query I rowsort label-5987
SELECT 45 + + 10 + 44 + + 89 / + 93 + + + 22 AS col0
----
121

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5989
SELECT - COALESCE ( + 19, + 35 * 48 * - + 94 DIV 43 ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-5989
SELECT - COALESCE ( + 19, + 35 * 48 * - + 94 / 43 ) AS col1
----
-19

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5992
SELECT + COUNT( * ) + 79
----
80

skipif mysql # not compatible
query I rowsort label-5992
SELECT + COUNT ( * ) + 79
----
80

query I rowsort
SELECT DISTINCT - - 46 * - - 86 AS col0
----
3956

onlyif mysql # aggregate syntax: 
query I rowsort label-5994
SELECT ALL COUNT( * ) - - 93 + 33 * + 85 AS col2
----
2899

skipif mysql # not compatible
query I rowsort label-5994
SELECT ALL COUNT ( * ) - - 93 + 33 * + 85 AS col2
----
2899

query I rowsort
SELECT ( + NULLIF ( 73, - + ( - 1 ) / 39 ) ) + - 10 AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5996
SELECT CASE - - 79 WHEN - 21 * - 99 THEN NULL WHEN 5 + + 0 * + COUNT( * ) * + MIN( ALL - 86 ) THEN NULL ELSE 40 END - - ( + 87 ) * COUNT( * )
----
127

skipif mysql # not compatible
query I rowsort label-5996
SELECT CASE - - 79 WHEN - 21 * - 99 THEN NULL WHEN 5 + + 0 * + COUNT ( * ) * + MIN ( ALL - 86 ) THEN NULL ELSE 40 END - - ( + 87 ) * COUNT ( * )
----
127

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5997
SELECT 98 + - + 28 DIV 93 AS col2, 15 * - COUNT( * )
----
98
-15

skipif mysql # not compatible
query II rowsort label-5997
SELECT 98 + - + 28 / 93 AS col2, 15 * - COUNT ( * )
----
98
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5998
SELECT ALL COUNT( DISTINCT - 75 ) * - 87 * - SUM( 60 ) * - 2
----
-10440

skipif mysql # not compatible
query I rowsort label-5998
SELECT ALL COUNT ( DISTINCT - 75 ) * - 87 * - SUM ( 60 ) * - 2
----
-10440

onlyif mysql # aggregate syntax: 
query I rowsort label-5999
SELECT DISTINCT - CASE - 59 WHEN - + 31 - - COALESCE ( 44, - 57 / 21, + - 77 + + - 21 + + - 85 / - + 94 * 12 ) - + 6 THEN 84 WHEN - COUNT( * ) * + 20 + MIN( + + 62 ) + - - 56 THEN + 65 WHEN 30 + + 93 - + 70 THEN CASE + + 37 WHEN - 57 / + - 7 - + 88 THEN - 35 + + - 20 ELSE + 71 - - 95 END END * 66 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5999
SELECT DISTINCT - CASE - 59 WHEN - + 31 - - COALESCE ( 44, - 57 / 21, + - 77 + + - 21 + + - 85 / - + 94 * 12 ) - + 6 THEN 84 WHEN - COUNT ( * ) * + 20 + MIN ( + + 62 ) + - - 56 THEN + 65 WHEN 30 + + 93 - + 70 THEN CASE + + 37 WHEN - 57 / + - 7 - + 88 THEN - 35 + + - 20 ELSE + 71 - - 95 END END * 66 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6000
SELECT - 74 DIV 46 + - 72 + + + 36 - + MIN( ALL 81 ) AS col2
----
-118

skipif mysql # not compatible
query I rowsort label-6000
SELECT - 74 / 46 + - 72 + + + 36 - + MIN ( ALL 81 ) AS col2
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-6001
SELECT ALL - - MIN( DISTINCT - 77 ) * - - COUNT( * ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-6001
SELECT ALL - - MIN ( DISTINCT - 77 ) * - - COUNT ( * ) AS col1
----
-77

query I rowsort
SELECT 78 * - - 26 - + - 35
----
2063

query I rowsort
SELECT ALL - 26 * - - 11
----
-286

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6004
SELECT 60 AS col1, 83 DIV + + ( + ( - + 63 ) ) + + - COUNT( - 73 )
----
60
-2

skipif mysql # not compatible
query II rowsort label-6004
SELECT 60 AS col1, 83 / + + ( + ( - + 63 ) ) + + - COUNT ( - 73 )
----
60
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-6005
SELECT ALL - + 13, MAX( ( + 50 ) ) col1
----
-13
50

skipif mysql # not compatible
query II rowsort label-6005
SELECT ALL - + 13, MAX ( ( + 50 ) ) col1
----
-13
50

query I rowsort
SELECT DISTINCT ( - + 54 ) * - 90 + 28 AS col2
----
4888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6007
SELECT COUNT( * ) AS col1, - COALESCE ( + 92, + - 60 * - 77 * + - ( 63 ) * + + CAST( + 37 AS SIGNED ) + - + 97 - 96 + + 71 - - COUNT( * ) + - ( + 5 ) - - + 54 ) * - + 13 AS col2
----
1
1196

skipif mysql # not compatible
query II rowsort label-6007
SELECT COUNT ( * ) AS col1, - COALESCE ( + 92, + - 60 * - 77 * + - ( 63 ) * + + CAST ( + 37 AS INTEGER ) + - + 97 - 96 + + 71 - - COUNT ( * ) + - ( + 5 ) - - + 54 ) * - + 13 AS col2
----
1
1196

onlyif mysql # aggregate syntax: 
query I rowsort label-6008
SELECT + MAX( - 65 ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-6008
SELECT + MAX ( - 65 ) AS col2
----
-65

query I rowsort
SELECT 59 + 48 + - 7 AS col0
----
100

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6011
SELECT DISTINCT MIN( ALL + + 40 ) + - - 64 AS col1
----
104

skipif mysql # not compatible
query I rowsort label-6011
SELECT DISTINCT MIN ( ALL + + 40 ) + - - 64 AS col1
----
104

query I rowsort
SELECT ALL + 2 + 53 AS col0
----
55

query II rowsort
SELECT 11 AS col1, 45 AS col1
----
11
45

query I rowsort
SELECT 58 * - - 18
----
1044

onlyif mysql # aggregate syntax: 
query I rowsort label-6015
SELECT ALL - 30 + NULLIF ( - - COUNT( ALL + + CASE - 92 WHEN 7 THEN 15 ELSE NULL END ), 70 / + 96 + + - 29 ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-6015
SELECT ALL - 30 + NULLIF ( - - COUNT ( ALL + + CASE - 92 WHEN 7 THEN 15 ELSE NULL END ), 70 / + 96 + + - 29 ) AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6016
SELECT DISTINCT CASE + COUNT( * ) WHEN + 7 THEN NULLIF ( + CASE + 58 WHEN + ( 6 ) THEN 5 + + 8 WHEN 33 - - + COUNT( ALL + 41 ) * 66 * + + 82 + 43 THEN - - 20 / - - 81 + - 28 END, - - 56 ) WHEN - - MIN( ALL + 89 ) + - + 87 THEN NULL ELSE - + 76 + + 91 END
----
15

skipif mysql # not compatible
query I rowsort label-6016
SELECT DISTINCT CASE + COUNT ( * ) WHEN + 7 THEN NULLIF ( + CASE + 58 WHEN + ( 6 ) THEN 5 + + 8 WHEN 33 - - + COUNT ( ALL + 41 ) * 66 * + + 82 + 43 THEN - - 20 / - - 81 + - 28 END, - - 56 ) WHEN - - MIN ( ALL + 89 ) + - + 87 THEN NULL ELSE - + 76 + + 91 END
----
15

query II rowsort
SELECT - 71 AS col1, COALESCE ( - 51, 92 ) AS col1
----
-71
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-6018
SELECT ALL + 2 + COUNT( * ) * - COUNT( * ) + + + 73 AS col2, + 14 * + - 60 col1
----
74
-840

skipif mysql # not compatible
query II rowsort label-6018
SELECT ALL + 2 + COUNT ( * ) * - COUNT ( * ) + + + 73 AS col2, + 14 * + - 60 col1
----
74
-840

onlyif mysql # aggregate syntax: 
query II rowsort label-6019
SELECT - 74 AS col0, CASE + - ( + + COUNT( * ) ) WHEN + COALESCE ( - - 27, COUNT( * ) ) THEN NULL WHEN - 59 THEN + + 17 WHEN - 36 * + 7 + - CASE + 52 WHEN + - 41 * + 93 THEN + + 44 + + + 23 + + + 88 WHEN + 26 * 85 + + + 35 THEN - - COUNT( * ) END + 29 * ( + 36 ) THEN NULL ELSE NULL END AS col2
----
-74
NULL

skipif mysql # not compatible
query II rowsort label-6019
SELECT - 74 AS col0, CASE + - ( + + COUNT ( * ) ) WHEN + COALESCE ( - - 27, COUNT ( * ) ) THEN NULL WHEN - 59 THEN + + 17 WHEN - 36 * + 7 + - CASE + 52 WHEN + - 41 * + 93 THEN + + 44 + + + 23 + + + 88 WHEN + 26 * 85 + + + 35 THEN - - COUNT ( * ) END + 29 * ( + 36 ) THEN NULL ELSE NULL END AS col2
----
-74
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6020
SELECT - 76, + 42 * - 23 * 35 + + 83 + 53 DIV - 5 AS col0
----
-76
-33737

skipif mysql # not compatible
query II rowsort label-6020
SELECT - 76, + 42 * - 23 * 35 + + 83 + 53 / - 5 AS col0
----
-76
-33737

query I rowsort
SELECT - 55 + + 23 - - 37 + - 98
----
-93

query I rowsort
SELECT - 60 * - ( + + 26 ) AS col0
----
1560

query I rowsort
SELECT ALL - 30 * 95
----
-2850

onlyif mysql # aggregate syntax: 
query I rowsort label-6024
SELECT - 72 * - MIN( + 84 ) AS col0
----
6048

skipif mysql # not compatible
query I rowsort label-6024
SELECT - 72 * - MIN ( + 84 ) AS col0
----
6048

onlyif mysql # aggregate syntax: 
query I rowsort label-6025
SELECT - MIN( + 5 ) + - 42 - - - 80 * - 35 + - 22 AS col1
----
2731

skipif mysql # not compatible
query I rowsort label-6025
SELECT - MIN ( + 5 ) + - 42 - - - 80 * - 35 + - 22 AS col1
----
2731

query I rowsort
SELECT DISTINCT NULLIF ( 78, 79 )
----
78

query I rowsort
SELECT DISTINCT + - 94 - 81 + 63 AS col1
----
-112

onlyif mysql # DIV for integer division: 
query I rowsort label-6028
SELECT ALL - - 23 DIV 41 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6028
SELECT ALL - - 23 / 41 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6029
SELECT - - 79 - + + ( - COUNT( * ) )
----
80

skipif mysql # not compatible
query I rowsort label-6029
SELECT - - 79 - + + ( - COUNT ( * ) )
----
80

onlyif mysql # DIV for integer division: 
query II rowsort label-6030
SELECT DISTINCT - 26 AS col1, + 35 DIV 16 * - 64 + + 22
----
-26
-106

skipif mysql # not compatible
query II rowsort label-6030
SELECT DISTINCT - 26 AS col1, + 35 / 16 * - 64 + + 22
----
-26
-106

query I rowsort
SELECT - + 4 + + - 31
----
-35

query I rowsort
SELECT ALL + 93 - - - 48 AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6033
SELECT - - 87 * 6 * + + COUNT( NULLIF ( 32, 97 ) ) * 61 AS col0
----
31842

skipif mysql # not compatible
query I rowsort label-6033
SELECT - - 87 * 6 * + + COUNT ( NULLIF ( 32, 97 ) ) * 61 AS col0
----
31842

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-6034
SELECT ALL + 82 DIV 27 AS col1, CAST( NULL AS DECIMAL ) AS col0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-6034
SELECT ALL + 82 / 27 AS col1, CAST ( NULL AS REAL ) AS col0
----
3
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6035
SELECT - - COUNT( * ) + - + 35 AS col1, 83
----
-34
83

skipif mysql # not compatible
query II rowsort label-6035
SELECT - - COUNT ( * ) + - + 35 AS col1, 83
----
-34
83

query I rowsort
SELECT ALL 39 * + 56 + + + 16 AS col0
----
2200

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

skipif mysql # not compatible
query I rowsort label-6037
SELECT - 8 / 77
----
0

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

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

query I rowsort
SELECT ALL 52 * + 39 * - + 79 * 5 AS col1
----
-801060

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6040
SELECT - COALESCE ( + 55, + SUM( DISTINCT - 54 ), + 57 - + ( - - 69 ) - - - COUNT( * ) * - - 59 * - CAST( NULL AS SIGNED ) ) * + - 10 AS col1
----
550

skipif mysql # not compatible
query I rowsort label-6040
SELECT - COALESCE ( + 55, + SUM ( DISTINCT - 54 ), + 57 - + ( - - 69 ) - - - COUNT ( * ) * - - 59 * - CAST ( NULL AS INTEGER ) ) * + - 10 AS col1
----
550

query I rowsort
SELECT + + 46 * + + 9 AS col2
----
414

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6042
SELECT ALL - COUNT( * ) * - CAST( NULL AS SIGNED ) * - ( 95 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6042
SELECT ALL - COUNT ( * ) * - CAST ( NULL AS INTEGER ) * - ( 95 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6043
SELECT DISTINCT - 30 * 66 * - 35 * 19 - + MIN( - ( + 81 ) ) * - 34 AS col0
----
1313946

skipif mysql # not compatible
query I rowsort label-6043
SELECT DISTINCT - 30 * 66 * - 35 * 19 - + MIN ( - ( + 81 ) ) * - 34 AS col0
----
1313946

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6044
SELECT + CAST( - ( + COALESCE ( - COUNT( * ), - 2, + CASE - 21 WHEN 38 * + + COUNT( * ) THEN + 49 / - COUNT( * ) - + 7 WHEN - 79 THEN NULL END * + 94 ) ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6044
SELECT + CAST ( - ( + COALESCE ( - COUNT ( * ), - 2, + CASE - 21 WHEN 38 * + + COUNT ( * ) THEN + 49 / - COUNT ( * ) - + 7 WHEN - 79 THEN NULL END * + 94 ) ) AS INTEGER ) AS col2
----
1

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

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

query I rowsort
SELECT + - CASE 74 WHEN 62 THEN 10 END * - + 94
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6047
SELECT ALL - + 73 * - 31 + - 88 + 26 - + 48 * COUNT( * )
----
2153

skipif mysql # not compatible
query I rowsort label-6047
SELECT ALL - + 73 * - 31 + - 88 + 26 - + 48 * COUNT ( * )
----
2153

onlyif mysql # aggregate syntax: 
query I rowsort label-6048
SELECT ALL + 67 * - 56 + - SUM( ALL 71 ) AS col0
----
-3823

skipif mysql # not compatible
query I rowsort label-6048
SELECT ALL + 67 * - 56 + - SUM ( ALL 71 ) AS col0
----
-3823

query I rowsort
SELECT ( NULLIF ( 87, + 97 ) ) AS col0
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6050
SELECT + NULLIF ( - CAST( - 63 AS SIGNED ), 70 + 96 )
----
63

skipif mysql # not compatible
query I rowsort label-6050
SELECT + NULLIF ( - CAST ( - 63 AS INTEGER ), 70 + 96 )
----
63

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6052
SELECT ALL + MIN( ALL - 69 ) * + 11 + 1
----
-758

skipif mysql # not compatible
query I rowsort label-6052
SELECT ALL + MIN ( ALL - 69 ) * + 11 + 1
----
-758

onlyif mysql # aggregate syntax: 
query I rowsort label-6053
SELECT + 45 + - + MIN( DISTINCT + 56 ) col0
----
-11

skipif mysql # not compatible
query I rowsort label-6053
SELECT + 45 + - + MIN ( DISTINCT + 56 ) col0
----
-11

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6055
SELECT CASE + - 78 WHEN + 83 - + 58 * + 83 + + 18 - - + ( + 46 ) * - - 52 + - 38 + + - 30 - COUNT( * ) * - 35 * + 50 THEN 11 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6055
SELECT CASE + - 78 WHEN + 83 - + 58 * + 83 + + 18 - - + ( + 46 ) * - - 52 + - 38 + + - 30 - COUNT ( * ) * - 35 * + 50 THEN 11 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6056
SELECT COALESCE ( + 12, - - COUNT( ALL - 58 ) )
----
12

skipif mysql # not compatible
query I rowsort label-6056
SELECT COALESCE ( + 12, - - COUNT ( ALL - 58 ) )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6057
SELECT ALL 62 * + 68 * + 17 + + 47 * - ( NULLIF ( + 42, CASE - + 11 WHEN NULLIF ( - AVG ( - + 54 ), 7 + - COUNT( * ) * + 78 ) THEN + - 34 END ) )
----
69698

skipif mysql # not compatible
query I rowsort label-6057
SELECT ALL 62 * + 68 * + 17 + + 47 * - ( NULLIF ( + 42, CASE - + 11 WHEN NULLIF ( - AVG ( - + 54 ), 7 + - COUNT ( * ) * + 78 ) THEN + - 34 END ) )
----
69698

onlyif mysql # DIV for integer division: 
query I rowsort label-6058
SELECT + 38 + + 92 DIV + ( + 64 )
----
39

skipif mysql # not compatible
query I rowsort label-6058
SELECT + 38 + + 92 / + ( + 64 )
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6059
SELECT CASE 57 WHEN 31 * - 47 * 52 THEN 27 - ( - 92 ) * + - ( + 97 ) - - - 49 + - 40 * - NULLIF ( + CAST( ( + - COALESCE ( + ( - - 75 ), 46 + - CASE + 11 WHEN - 15 + + + 66 THEN NULL WHEN 46 + - - CASE - - CAST( 52 AS SIGNED ) WHEN + 90 THEN + 88 ELSE NULL END THEN - - 79 ELSE NULL END + 14 + - + 44 * - ( COUNT( * ) ) * COUNT( * ) ) ) AS SIGNED ), - 4 ) + 60 * + 26 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6059
SELECT CASE 57 WHEN 31 * - 47 * 52 THEN 27 - ( - 92 ) * + - ( + 97 ) - - - 49 + - 40 * - NULLIF ( + CAST ( ( + - COALESCE ( + ( - - 75 ), 46 + - CASE + 11 WHEN - 15 + + + 66 THEN NULL WHEN 46 + - - CASE - - CAST ( 52 AS INTEGER ) WHEN + 90 THEN + 88 ELSE NULL END THEN - - 79 ELSE NULL END + 14 + - + 44 * - ( COUNT ( * ) ) * COUNT ( * ) ) ) AS INTEGER ), - 4 ) + 60 * + 26 END col2
----
NULL

query I rowsort
SELECT ALL 73 * - - 35 AS col2
----
2555

query I rowsort
SELECT + 79 + - 63 AS col1
----
16

query I rowsort
SELECT - ( 15 ) + + 48
----
33

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6064
SELECT MIN( DISTINCT 6 ) * + 3 * MAX( + 65 ) + 83 DIV 60
----
1171

skipif mysql # not compatible
query I rowsort label-6064
SELECT MIN ( DISTINCT 6 ) * + 3 * MAX ( + 65 ) + 83 / 60
----
1171

query I rowsort
SELECT DISTINCT NULLIF ( + 62, 38 ) AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6066
SELECT + ( + 74 ) + + MIN( + 92 )
----
166

skipif mysql # not compatible
query I rowsort label-6066
SELECT + ( + 74 ) + + MIN ( + 92 )
----
166

query I rowsort
SELECT ALL - COALESCE ( - 18, - 87 ) * 47 AS col2
----
846

onlyif mysql # aggregate syntax: 
query I rowsort label-6068
SELECT - + 8 + + 77 - + - COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-6068
SELECT - + 8 + + 77 - + - COUNT ( * )
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6069
SELECT - 13 * + 58 * + CAST( NULL AS SIGNED ) / - 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6069
SELECT - 13 * + 58 * + CAST ( NULL AS INTEGER ) / - 38 AS col0
----
NULL

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

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

query II rowsort
SELECT - 53 + + - 23 AS col0, 97
----
-76
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6072
SELECT - 67 + - 16 + CAST( NULL AS SIGNED ) / - 7 * - 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6072
SELECT - 67 + - 16 + CAST ( NULL AS INTEGER ) / - 7 * - 33 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6073
SELECT - - ( - 83 ) DIV - + 72 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6073
SELECT - - ( - 83 ) / - + 72 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6074
SELECT ALL ( - COALESCE ( - 98, 46 + + 8 + 5 + 59, - + COUNT( * ) + - 54 * - - 83 * 82 * - 4 ) ) col1
----
98

skipif mysql # not compatible
query I rowsort label-6074
SELECT ALL ( - COALESCE ( - 98, 46 + + 8 + 5 + 59, - + COUNT ( * ) + - 54 * - - 83 * 82 * - 4 ) ) col1
----
98

query I rowsort
SELECT DISTINCT + - CASE - + 33 WHEN - - 37 THEN + ( + 18 ) END * - 53 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6076
SELECT ALL MAX ( ALL 46 )
----
46

query I rowsort
SELECT - 29 + - CASE + 26 WHEN NULLIF ( - 22, 80 + ( - + 14 ) ) THEN + 92 + + 31 END AS col0
----
NULL

query I rowsort
SELECT - - 31 * - 83
----
-2573

query II rowsort
SELECT - + 24 + - - 70, - 7 AS col0
----
46
-7

query I rowsort
SELECT DISTINCT - + 99 + + - COALESCE ( + 61, + 1 ) AS col1
----
-160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6081
SELECT - + 54 DIV - 54 + + COUNT( * ) + + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-6081
SELECT - + 54 / - 54 + + COUNT ( * ) + + COUNT ( * )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6082
SELECT + MAX( - 9 ) col0
----
-9

skipif mysql # not compatible
query I rowsort label-6082
SELECT + MAX ( - 9 ) col0
----
-9

query I rowsort
SELECT + 77 * 76 * 19 + - 27 * - - 90 AS col1
----
108758

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6084
SELECT + MAX( - CASE - CAST( - - 98 AS DECIMAL ) WHEN + 90 THEN 43 ELSE NULL END ) AS col2, ( + SUM( ALL - - 0 ) )
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6084
SELECT + MAX ( - CASE - CAST ( - - 98 AS REAL ) WHEN + 90 THEN 43 ELSE NULL END ) AS col2, ( + SUM ( ALL - - 0 ) )
----
NULL
0

query I rowsort
SELECT ALL - 75 * + + 59 AS col1
----
-4425

query I rowsort
SELECT + 15 * 69 AS col2
----
1035

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6087
SELECT ALL 33 DIV + 61 + + - 48 * + 67 + - MIN( - + 47 ) DIV - COALESCE ( 86, - CASE 82 WHEN - 73 + 65 THEN + + 15 ELSE + 44 END ) * + 42 + - + 57 + + + 88 DIV + 64
----
-3272

skipif mysql # not compatible
query I rowsort label-6087
SELECT ALL 33 / + 61 + + - 48 * + 67 + - MIN ( - + 47 ) / - COALESCE ( 86, - CASE 82 WHEN - 73 + 65 THEN + + 15 ELSE + 44 END ) * + 42 + - + 57 + + + 88 / + 64
----
-3272

onlyif mysql # aggregate syntax: 
query I rowsort label-6088
SELECT DISTINCT + MIN( 58 ) * + 20 + - COUNT( * ) - - 73 col1
----
1232

skipif mysql # not compatible
query I rowsort label-6088
SELECT DISTINCT + MIN ( 58 ) * + 20 + - COUNT ( * ) - - 73 col1
----
1232

onlyif mysql # aggregate syntax: 
query II rowsort label-6089
SELECT ALL - 94 AS col1, - 7 + - COUNT( * ) AS col2
----
-94
-8

skipif mysql # not compatible
query II rowsort label-6089
SELECT ALL - 94 AS col1, - 7 + - COUNT ( * ) AS col2
----
-94
-8

query II rowsort
SELECT ALL - 10 AS col0, + 95
----
-10
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6091
SELECT MIN( DISTINCT + ( + - 72 ) ) * 23 AS col2
----
-1656

skipif mysql # not compatible
query I rowsort label-6091
SELECT MIN ( DISTINCT + ( + - 72 ) ) * 23 AS col2
----
-1656

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6092
SELECT ( - - 96 ) * - 49, CAST( + + 88 AS SIGNED ) AS col1
----
-4704
88

skipif mysql # not compatible
query II rowsort label-6092
SELECT ( - - 96 ) * - 49, CAST ( + + 88 AS INTEGER ) AS col1
----
-4704
88

query II rowsort
SELECT + 27 AS col0, 31 AS col1
----
27
31

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

skipif mysql # not compatible
query I rowsort label-6094
SELECT ALL 90 / COUNT ( * ) AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6095
SELECT ( - ( COUNT( * ) ) ) * + + 90 + + - 41
----
-131

skipif mysql # not compatible
query I rowsort label-6095
SELECT ( - ( COUNT ( * ) ) ) * + + 90 + + - 41
----
-131

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

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

query I rowsort
SELECT + 10 * - 76 * 86 AS col0
----
-65360

query I rowsort
SELECT 97 * + 7 - - - ( 56 ) + 87 AS col0
----
710

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6099
SELECT 84 + - CASE 58 WHEN + 73 + - + 57 THEN NULL WHEN - + NULLIF ( + - 61, CAST( - + 9 AS DECIMAL ) ) / 72 - - 92 * - COALESCE ( - 66, + 42 + + 91 ) * + + COUNT( * ) * - 20 THEN ( - 25 ) * COUNT( * ) + + - 14 * 86 - - 4 + - + 79 / 68 + - ( + COUNT( * ) ) END * + 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6099
SELECT 84 + - CASE 58 WHEN + 73 + - + 57 THEN NULL WHEN - + NULLIF ( + - 61, CAST ( - + 9 AS REAL ) ) / 72 - - 92 * - COALESCE ( - 66, + 42 + + 91 ) * + + COUNT ( * ) * - 20 THEN ( - 25 ) * COUNT ( * ) + + - 14 * 86 - - 4 + - + 79 / 68 + - ( + COUNT ( * ) ) END * + 76 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6100
SELECT - - COUNT( * ), + COALESCE ( + ( + 12 ), 15 ) * + + 50 AS col1
----
1
600

skipif mysql # not compatible
query II rowsort label-6100
SELECT - - COUNT ( * ), + COALESCE ( + ( + 12 ), 15 ) * + + 50 AS col1
----
1
600

query I rowsort
SELECT - 68 + - 57
----
-125

query I rowsort
SELECT NULLIF ( + 55, 4 + + - 73 ) * 81 AS col1
----
4455

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6103
SELECT DISTINCT COUNT( * ) + CAST( + ( - - MIN( 81 ) ) AS SIGNED ) * + + 53 col0
----
4294

skipif mysql # not compatible
query I rowsort label-6103
SELECT DISTINCT COUNT ( * ) + CAST ( + ( - - MIN ( 81 ) ) AS INTEGER ) * + + 53 col0
----
4294

query II rowsort
SELECT ALL + 41 + - ( + + 12 ) AS col2, + 28 * - - 48 AS col0
----
29
1344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6105
SELECT AVG ( + ( - - 18 ) ) - + CASE + 58 WHEN - CAST( + COUNT( * ) AS SIGNED ) THEN + COUNT( * ) + 60 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6105
SELECT AVG ( + ( - - 18 ) ) - + CASE + 58 WHEN - CAST ( + COUNT ( * ) AS INTEGER ) THEN + COUNT ( * ) + 60 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6106
SELECT DISTINCT + COALESCE ( + + COUNT( * ), - 82, - + 42 * + + COUNT( * ) + 52 + + 79 + - + 10 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6106
SELECT DISTINCT + COALESCE ( + + COUNT ( * ), - 82, - + 42 * + + COUNT ( * ) + 52 + + 79 + - + 10 ) AS col1
----
1

query I rowsort
SELECT DISTINCT + 91 + - - 39
----
130

query I rowsort
SELECT - 84 + + 95
----
11

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

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

query II rowsort
SELECT ALL + 98 + 79 * + 79 col2, CASE - 8 WHEN - - 36 THEN + 38 * + - 15 + + - 38 WHEN - - ( 83 ) THEN - 48 END AS col2
----
6339
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6111
SELECT DISTINCT + 15 + - + 93 DIV 95 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-6111
SELECT DISTINCT + 15 + - + 93 / 95 AS col2
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-6112
SELECT 43 + 61 DIV + 2 col1
----
73

skipif mysql # not compatible
query I rowsort label-6112
SELECT 43 + 61 / + 2 col1
----
73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6114
SELECT SUM( DISTINCT - 51 ) * COUNT( * ) + - 78 * + 2 + ( - + 98 ) - - + 89 - 28 * 17 + 71 col2
----
-621

skipif mysql # not compatible
query I rowsort label-6114
SELECT SUM ( DISTINCT - 51 ) * COUNT ( * ) + - 78 * + 2 + ( - + 98 ) - - + 89 - 28 * 17 + 71 col2
----
-621

onlyif mysql # DIV for integer division: 
query II rowsort label-6115
SELECT 74 DIV - - 59 AS col1, 9 * 56
----
1
504

skipif mysql # not compatible
query II rowsort label-6115
SELECT 74 / - - 59 AS col1, 9 * 56
----
1
504

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6116
SELECT DISTINCT - 98 DIV + 29 * - COUNT( * ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-6116
SELECT DISTINCT - 98 / + 29 * - COUNT ( * ) AS col1
----
3

query I rowsort
SELECT 58 * 57 AS col2
----
3306

onlyif mysql # DIV for integer division: 
query II rowsort label-6118
SELECT ALL - 71 * 34 col0, - 59 DIV - 26
----
-2414
2

skipif mysql # not compatible
query II rowsort label-6118
SELECT ALL - 71 * 34 col0, - 59 / - 26
----
-2414
2

query I rowsort
SELECT 64 + 76 - + 1 AS col1
----
139

query I rowsort
SELECT 67 * + 75
----
5025

onlyif mysql # aggregate syntax: 
query II rowsort label-6121
SELECT 74 + COUNT( * ) AS col2, 86 * - - 80 AS col1
----
75
6880

skipif mysql # not compatible
query II rowsort label-6121
SELECT 74 + COUNT ( * ) AS col2, 86 * - - 80 AS col1
----
75
6880

query I rowsort
SELECT DISTINCT + 26 * + + 30 AS col2
----
780

onlyif mysql # aggregate syntax: 
query I rowsort label-6123
SELECT + COUNT( * ) * 62 * 0 + + + COUNT( * ) * - 14
----
-14

skipif mysql # not compatible
query I rowsort label-6123
SELECT + COUNT ( * ) * 62 * 0 + + + COUNT ( * ) * - 14
----
-14

query I rowsort
SELECT ALL + 8 * + 92
----
736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6125
SELECT + 8 + - CAST( 36 AS SIGNED )
----
-28

skipif mysql # not compatible
query I rowsort label-6125
SELECT + 8 + - CAST ( 36 AS INTEGER )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6126
SELECT ALL - + MAX( DISTINCT - 72 ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-6126
SELECT ALL - + MAX ( DISTINCT - 72 ) AS col2
----
72

query I rowsort
SELECT 73 * 77 AS col0
----
5621

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6128
SELECT DISTINCT 1 + 20 + + ( + COALESCE ( + 29, 22, 66 DIV 41 ) ) * - COUNT( * ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-6128
SELECT DISTINCT 1 + 20 + + ( + COALESCE ( + 29, 22, 66 / 41 ) ) * - COUNT ( * ) AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT ALL 5 + ( - COUNT( * ) )
----
4

skipif mysql # not compatible
query I rowsort label-6129
SELECT ALL 5 + ( - COUNT ( * ) )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6130
SELECT - MAX( - 45 ) + + 29
----
74

skipif mysql # not compatible
query I rowsort label-6130
SELECT - MAX ( - 45 ) + + 29
----
74

query I rowsort
SELECT 22 + + + 0 * - 72 AS col1
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6132
SELECT 52 DIV - 72 * + COALESCE ( 74, + COUNT( * ) + - ( 69 ) + - 78 * + + 94 )
----
0

skipif mysql # not compatible
query I rowsort label-6132
SELECT 52 / - 72 * + COALESCE ( 74, + COUNT ( * ) + - ( 69 ) + - 78 * + + 94 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6133
SELECT DISTINCT - ( - - COUNT( * ) ) + 90 AS col1
----
89

skipif mysql # not compatible
query I rowsort label-6133
SELECT DISTINCT - ( - - COUNT ( * ) ) + 90 AS col1
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-6134
SELECT ALL MIN( - - 50 ) AS col1, 74 AS col2
----
50
74

skipif mysql # not compatible
query II rowsort label-6134
SELECT ALL MIN ( - - 50 ) AS col1, 74 AS col2
----
50
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6135
SELECT ALL - COALESCE ( - - COALESCE ( + 65, 21 * - 3 ), MIN( ALL - 2 ) ) + - ( - - COUNT( - - 38 ) )
----
-66

skipif mysql # not compatible
query I rowsort label-6135
SELECT ALL - COALESCE ( - - COALESCE ( + 65, 21 * - 3 ), MIN ( ALL - 2 ) ) + - ( - - COUNT ( - - 38 ) )
----
-66

query I rowsort
SELECT 32 + 2 * ( 32 ) * ( 56 ) AS col0
----
3616

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6137
SELECT + 82 DIV + + 66, AVG ( ALL - 0 ) - - CAST( NULL AS SIGNED ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6137
SELECT + 82 / + + 66, AVG ( ALL - 0 ) - - CAST ( NULL AS INTEGER ) AS col1
----
1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6138
SELECT 37 + - + 72 + - + 42 + + 65 + - + 64 DIV - 32
----
-10

skipif mysql # not compatible
query I rowsort label-6138
SELECT 37 + - + 72 + - + 42 + + 65 + - + 64 / - 32
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-6139
SELECT - 91 * COUNT( * ) AS col0, NULLIF ( 9, 78 * - 93 + 95 + + 18 + - 80 * + 66 * + + MIN( DISTINCT 99 ) * + COUNT( * ) ) * 94 + 29 AS col2
----
-91
875

skipif mysql # not compatible
query II rowsort label-6139
SELECT - 91 * COUNT ( * ) AS col0, NULLIF ( 9, 78 * - 93 + 95 + + 18 + - 80 * + 66 * + + MIN ( DISTINCT 99 ) * + COUNT ( * ) ) * 94 + 29 AS col2
----
-91
875

query I rowsort
SELECT COALESCE ( + 42, + 92, 1 + 2 ) AS col0
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-6141
SELECT DISTINCT 86 AS col0, + COUNT( * ) * 85 AS col1
----
86
85

skipif mysql # not compatible
query II rowsort label-6141
SELECT DISTINCT 86 AS col0, + COUNT ( * ) * 85 AS col1
----
86
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6142
SELECT ALL 38 AS col2, + 73 + ( - COUNT( * ) ) + 0 DIV - 50 AS col0
----
38
72

skipif mysql # not compatible
query II rowsort label-6142
SELECT ALL 38 AS col2, + 73 + ( - COUNT ( * ) ) + 0 / - 50 AS col0
----
38
72

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6144
SELECT ALL + 2 * + + 34 * + CAST( + - 23 AS SIGNED ) AS col1
----
-1564

skipif mysql # not compatible
query I rowsort label-6144
SELECT ALL + 2 * + + 34 * + CAST ( + - 23 AS INTEGER ) AS col1
----
-1564

query I rowsort
SELECT - 44 * 62 * 35 col2
----
-95480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6146
SELECT ALL 50 * ( - NULLIF ( + - 82, - 23 - - CASE - 92 WHEN CAST( NULL AS SIGNED ) THEN 2 ELSE NULL END ) ) col1
----
4100

skipif mysql # not compatible
query I rowsort label-6146
SELECT ALL 50 * ( - NULLIF ( + - 82, - 23 - - CASE - 92 WHEN CAST ( NULL AS INTEGER ) THEN 2 ELSE NULL END ) ) col1
----
4100

query I rowsort
SELECT - 62 + - - 6 AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-6148
SELECT COALESCE ( 76, - - COUNT( * ), + 97 + + 6, - + 9 )
----
76

skipif mysql # not compatible
query I rowsort label-6148
SELECT COALESCE ( 76, - - COUNT ( * ), + 97 + + 6, - + 9 )
----
76

query I rowsort
SELECT - COALESCE ( - - 74, + 1 - + 67 ) + 31 AS col2
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-6150
SELECT DISTINCT + 0 AS col1, - ( - - 45 ) * - 10 + - + COUNT( * ) + + COUNT( * ) AS col1
----
0
450

skipif mysql # not compatible
query II rowsort label-6150
SELECT DISTINCT + 0 AS col1, - ( - - 45 ) * - 10 + - + COUNT ( * ) + + COUNT ( * ) AS col1
----
0
450

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

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

query I rowsort
SELECT - CASE + 54 WHEN 92 + 25 THEN 89 + - + 92 END - - 33 col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6153
SELECT ALL - COUNT ( * ) / + + 35 AS col2
----
0

query I rowsort
SELECT ALL - ( 15 ) * + 16 + - 29 AS col2
----
-269

onlyif mysql # aggregate syntax: 
query I rowsort label-6155
SELECT NULLIF ( COUNT( * ), - 41 * - 52 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6155
SELECT NULLIF ( COUNT ( * ), - 41 * - 52 ) AS col1
----
1

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

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

query I rowsort
SELECT - 48 * - 2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6158
SELECT + COALESCE ( - 73, - 33, - COUNT( ALL - + 10 ) * 83 ) * 39 col1
----
-2847

skipif mysql # not compatible
query I rowsort label-6158
SELECT + COALESCE ( - 73, - 33, - COUNT ( ALL - + 10 ) * 83 ) * 39 col1
----
-2847

query I rowsort
SELECT DISTINCT - 16 * 25 AS col2
----
-400

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

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

query II rowsort
SELECT 97, NULLIF ( + 37, + + 99 ) AS col1
----
97
37

query I rowsort
SELECT - - 58 + + + NULLIF ( - - 21, - AVG ( 89 ) ) AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6163
SELECT + 22 * - - 43 * - 11 * - - MIN( DISTINCT - 59 ) AS col0
----
613954

skipif mysql # not compatible
query I rowsort label-6163
SELECT + 22 * - - 43 * - 11 * - - MIN ( DISTINCT - 59 ) AS col0
----
613954

query II rowsort
SELECT - - 46 AS col2, 13 col1
----
46
13

query II rowsort
SELECT - 37 AS col1, - CASE 14 WHEN + 71 * 37 THEN NULL ELSE ( - - 60 ) END AS col2
----
-37
-60

query I rowsort
SELECT ALL COALESCE ( 49, 10 + - 35 + + - 46 ) - + 72 + + 91
----
68

query I rowsort
SELECT - 89 * - - 70 + - 42 AS col1
----
-6272

onlyif mysql # aggregate syntax: 
query I rowsort label-6168
SELECT + - 17 + - - CASE - 44 WHEN 0 THEN - 45 * 36 ELSE COUNT( * ) END
----
-16

skipif mysql # not compatible
query I rowsort label-6168
SELECT + - 17 + - - CASE - 44 WHEN 0 THEN - 45 * 36 ELSE COUNT ( * ) END
----
-16

query I rowsort
SELECT + + 26 * 22 AS col0
----
572

query II rowsort
SELECT ALL 90, 97 AS col0
----
90
97

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

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

query I rowsort
SELECT - 39 + + 38 * - 95 * 32 * + - 55 AS col0
----
6353561

query I rowsort
SELECT + 56 * - 27 * + 1 * 60
----
-90720

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6174
SELECT ALL 48, CAST( - 12 AS SIGNED ) AS col2
----
48
-12

skipif mysql # not compatible
query II rowsort label-6174
SELECT ALL 48, CAST ( - 12 AS INTEGER ) AS col2
----
48
-12

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6175
SELECT - CAST( NULL AS SIGNED ), - 1 + - + ( + - 64 ) + 55 DIV + 3 AS col1
----
NULL
81

skipif mysql # not compatible
query II rowsort label-6175
SELECT - CAST ( NULL AS INTEGER ), - 1 + - + ( + - 64 ) + 55 / + 3 AS col1
----
NULL
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT + 50 - + COALESCE ( + 79, 3 + + 56 + + - 95 * + + MAX( 65 ), - SUM( + + 77 ) ) * 84 * 12 * - 2
----
159314

skipif mysql # not compatible
query I rowsort label-6176
SELECT + 50 - + COALESCE ( + 79, 3 + + 56 + + - 95 * + + MAX ( 65 ), - SUM ( + + 77 ) ) * 84 * 12 * - 2
----
159314

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6177
SELECT + COUNT( * ) DIV 20 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6177
SELECT + COUNT ( * ) / 20 AS col1
----
0

query I rowsort
SELECT + NULLIF ( 43, 21 + + + 91 ) * - 38 AS col2
----
-1634

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6179
SELECT + 85 + + CASE - 2 WHEN 65 + + CAST( NULL AS SIGNED ) THEN - COALESCE ( - ( COUNT( * ) ), + 36 * + 32 ) WHEN - ( + 10 ) THEN NULL END AS col1, COUNT( * ) * + 65 AS col2
----
NULL
65

skipif mysql # not compatible
query II rowsort label-6179
SELECT + 85 + + CASE - 2 WHEN 65 + + CAST ( NULL AS INTEGER ) THEN - COALESCE ( - ( COUNT ( * ) ), + 36 * + 32 ) WHEN - ( + 10 ) THEN NULL END AS col1, COUNT ( * ) * + 65 AS col2
----
NULL
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6180
SELECT ALL + 74 / - 12 + + - 80 - + 50 + + 14 / CAST( NULL AS SIGNED ) / + + 14 * - 10 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6180
SELECT ALL + 74 / - 12 + + - 80 - + 50 + + 14 / CAST ( NULL AS INTEGER ) / + + 14 * - 10 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6181
SELECT CAST( ( - - 41 ) AS SIGNED ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-6181
SELECT CAST ( ( - - 41 ) AS INTEGER ) AS col0
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-6182
SELECT NULLIF ( - 79, - COUNT( * ) ) * - COUNT( * ) + - 23 + - - 89 AS col0, - 75 * - + 30 + + - 95 * - 98
----
145
11560

skipif mysql # not compatible
query II rowsort label-6182
SELECT NULLIF ( - 79, - COUNT ( * ) ) * - COUNT ( * ) + - 23 + - - 89 AS col0, - 75 * - + 30 + + - 95 * - 98
----
145
11560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6183
SELECT CAST( NULL AS SIGNED ) AS col1, + COUNT( * ) * - 82 / - 29 * - 88 * 93 + - - CAST( NULL AS DECIMAL )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6183
SELECT CAST ( NULL AS INTEGER ) AS col1, + COUNT ( * ) * - 82 / - 29 * - 88 * 93 + - - CAST ( NULL AS REAL )
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6184
SELECT ALL + 97 DIV 46 + - NULLIF ( - - 10, + - COUNT( * ) ) * - COALESCE ( + ( - 8 ), + + 70 * 89 )
----
-78

skipif mysql # not compatible
query I rowsort label-6184
SELECT ALL + 97 / 46 + - NULLIF ( - - 10, + - COUNT ( * ) ) * - COALESCE ( + ( - 8 ), + + 70 * 89 )
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6185
SELECT CAST( 59 AS SIGNED ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-6185
SELECT CAST ( 59 AS INTEGER ) AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6186
SELECT + + 98 + COUNT( * ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-6186
SELECT + + 98 + COUNT ( * ) AS col2
----
99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6188
SELECT ALL + CASE + - 36 WHEN SUM( ALL 30 ) THEN 67 + + 71 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6188
SELECT ALL + CASE + - 36 WHEN SUM ( ALL 30 ) THEN 67 + + 71 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6189
SELECT ALL + MAX( DISTINCT + - 4 ) * - MIN( DISTINCT - - 0 ) - - COUNT( * ) + - 41 - 7 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-6189
SELECT ALL + MAX ( DISTINCT + - 4 ) * - MIN ( DISTINCT - - 0 ) - - COUNT ( * ) + - 41 - 7 AS col2
----
-47

query I rowsort
SELECT DISTINCT + + COALESCE ( - - 88, - + 64 )
----
88

query I rowsort
SELECT ALL + - 63 col2
----
-63

onlyif mysql # DIV for integer division: 
query II rowsort label-6192
SELECT ALL + - ( 82 ) DIV + ( 78 ), 27 AS col0
----
-1
27

skipif mysql # not compatible
query II rowsort label-6192
SELECT ALL + - ( 82 ) / + ( 78 ), 27 AS col0
----
-1
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6193
SELECT + ( + - 74 ) DIV MAX( ALL 71 ) * + - 49 * + + COUNT( * ) + - 96 * + - 66 col1
----
6385

skipif mysql # not compatible
query I rowsort label-6193
SELECT + ( + - 74 ) / MAX ( ALL 71 ) * + - 49 * + + COUNT ( * ) + - 96 * + - 66 col1
----
6385

onlyif mysql # aggregate syntax: 
query I rowsort label-6194
SELECT + - 71 * - + CASE 86 WHEN + 83 * 67 THEN NULL ELSE + 81 * - 65 END + + 55 + COUNT( * ) * - 58 AS col0
----
-373818

skipif mysql # not compatible
query I rowsort label-6194
SELECT + - 71 * - + CASE 86 WHEN + 83 * 67 THEN NULL ELSE + 81 * - 65 END + + 55 + COUNT ( * ) * - 58 AS col0
----
-373818

query I rowsort
SELECT DISTINCT + 60 * - 13
----
-780

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6198
SELECT ALL + 10 * - + CASE - 48 WHEN 25 THEN 12 / + SUM( DISTINCT 81 ) * + COUNT( DISTINCT 34 ) + + 70 WHEN 3 * COUNT( * ) + COUNT( * ) + + 15 THEN NULL WHEN - 47 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6198
SELECT ALL + 10 * - + CASE - 48 WHEN 25 THEN 12 / + SUM ( DISTINCT 81 ) * + COUNT ( DISTINCT 34 ) + + 70 WHEN 3 * COUNT ( * ) + COUNT ( * ) + + 15 THEN NULL WHEN - 47 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6199
SELECT 17, ( - 19 ) DIV - ( + 44 ) AS col1
----
17
0

skipif mysql # not compatible
query II rowsort label-6199
SELECT 17, ( - 19 ) / - ( + 44 ) AS col1
----
17
0

query I rowsort
SELECT 76 * + ( 32 )
----
2432

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6201
SELECT ALL - 20 col2, 61 * - - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) * - + 88 - + 72 AS col1
----
-20
NULL

skipif mysql # not compatible
query II rowsort label-6201
SELECT ALL - 20 col2, 61 * - - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) * - + 88 - + 72 AS col1
----
-20
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6202
SELECT 39 + + + 2 + + 70 * CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6202
SELECT 39 + + + 2 + + 70 * CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6203
SELECT CASE 17 WHEN + - 32 THEN - + COUNT( * ) WHEN - 88 / - 18 * 70 + + COUNT( * ) + - 59 * 83 + - - NULLIF ( 77, 54 ) + - - 48 THEN - 56 * + 95 + + 96 + + COALESCE ( - 69, - 69 ) * ( - 58 ) * + 25 END + + MIN( - - 63 ) + + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-6203
SELECT CASE 17 WHEN + - 32 THEN - + COUNT ( * ) WHEN - 88 / - 18 * 70 + + COUNT ( * ) + - 59 * 83 + - - NULLIF ( 77, 54 ) + - - 48 THEN - 56 * + 95 + + 96 + + COALESCE ( - 69, - 69 ) * ( - 58 ) * + 25 END + + MIN ( - - 63 ) + + 47
----
NULL

query I rowsort
SELECT 87 + 0
----
87

query II rowsort
SELECT 58 * - 42, 96 AS col1
----
-2436
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6206
SELECT DISTINCT 62 * - + MIN( - 2 ) * + COUNT( * ) + - SUM( ALL + 54 ) + + - 75 + CASE - 20 WHEN 8 * + + MIN( 85 ) THEN + 46 - - + 98 END * + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-6206
SELECT DISTINCT 62 * - + MIN ( - 2 ) * + COUNT ( * ) + - SUM ( ALL + 54 ) + + - 75 + CASE - 20 WHEN 8 * + + MIN ( 85 ) THEN + 46 - - + 98 END * + 23
----
NULL

query I rowsort
SELECT 74 + 41 AS col1
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6208
SELECT AVG ( + 12 ) + + 22 + + 21 / + CASE 95 WHEN - COALESCE ( - 30, + + 7 * - 69, COUNT( * ) + ( + - 73 ) / - 99 + + CASE - 63 WHEN 67 THEN - 60 - - - 5 ELSE 26 END + + - CAST( + 14 AS SIGNED ) + + 81 + + COUNT( * ) ) THEN NULL WHEN COUNT( * ) THEN - 35 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6208
SELECT AVG ( + 12 ) + + 22 + + 21 / + CASE 95 WHEN - COALESCE ( - 30, + + 7 * - 69, COUNT ( * ) + ( + - 73 ) / - 99 + + CASE - 63 WHEN 67 THEN - 60 - - - 5 ELSE 26 END + + - CAST ( + 14 AS INTEGER ) + + 81 + + COUNT ( * ) ) THEN NULL WHEN COUNT ( * ) THEN - 35 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6209
SELECT DISTINCT COUNT( * ) * + 90 * 46 * 14
----
57960

skipif mysql # not compatible
query I rowsort label-6209
SELECT DISTINCT COUNT ( * ) * + 90 * 46 * 14
----
57960

query I rowsort
SELECT DISTINCT + 67 * - + 91
----
-6097

query I rowsort
SELECT 67 - 85 col0
----
-18

query I rowsort
SELECT ALL 61 + - 95 AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-6213
SELECT 73 * - + ( 22 ) * - SUM( + 12 ) * - 67 AS col2
----
-1291224

skipif mysql # not compatible
query I rowsort label-6213
SELECT 73 * - + ( 22 ) * - SUM ( + 12 ) * - 67 AS col2
----
-1291224

query I rowsort
SELECT 83 * 72 col1
----
5976

onlyif mysql # aggregate syntax: 
query II rowsort label-6215
SELECT DISTINCT - 95 + + 68 - COUNT( * ) AS col1, 81
----
-28
81

skipif mysql # not compatible
query II rowsort label-6215
SELECT DISTINCT - 95 + + 68 - COUNT ( * ) AS col1, 81
----
-28
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6216
SELECT DISTINCT NULLIF ( 14, + ( + 0 ) ) / + 37 * - 70 * + - MIN( - + CASE + 42 WHEN 89 THEN - 93 ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6216
SELECT DISTINCT NULLIF ( 14, + ( + 0 ) ) / + 37 * - 70 * + - MIN ( - + CASE + 42 WHEN 89 THEN - 93 ELSE NULL END ) AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6218
SELECT ALL 18 + + + COUNT( * ) col0, NULLIF ( 84, + 28 ) - - 29 + + 42 * + 69 AS col2
----
19
3011

skipif mysql # not compatible
query II rowsort label-6218
SELECT ALL 18 + + + COUNT ( * ) col0, NULLIF ( 84, + 28 ) - - 29 + + 42 * + 69 AS col2
----
19
3011

query I rowsort
SELECT NULLIF ( - 28, + 89 - 14 + + 17 ) AS col0
----
-28

query II rowsort
SELECT ALL 94 + - + ( 99 ), + ( + ( + 40 ) ) AS col0
----
-5
40

query I rowsort
SELECT DISTINCT 56 - + 78
----
-22

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6223
SELECT ALL - ( + + COUNT( * ) ) - 29
----
-30

skipif mysql # not compatible
query I rowsort label-6223
SELECT ALL - ( + + COUNT ( * ) ) - 29
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-6224
SELECT + 44 * COUNT( * ) AS col0, 15 AS col2
----
44
15

skipif mysql # not compatible
query II rowsort label-6224
SELECT + 44 * COUNT ( * ) AS col0, 15 AS col2
----
44
15

query I rowsort
SELECT DISTINCT 22 * 3 AS col1
----
66

query I rowsort
SELECT - 74 * + 74 + + 52 + - 95 AS col0
----
-5519

onlyif mysql # DIV for integer division: 
query I rowsort label-6227
SELECT ( - 42 ) * + COALESCE ( + NULLIF ( + 67, 2 ), + 9 DIV - 89 ) AS col1
----
-2814

skipif mysql # not compatible
query I rowsort label-6227
SELECT ( - 42 ) * + COALESCE ( + NULLIF ( + 67, 2 ), + 9 / - 89 ) AS col1
----
-2814

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6228
SELECT + CASE + 61 WHEN - COUNT( * ) THEN + SUM( DISTINCT 18 ) WHEN + NULLIF ( - + ( - 81 ), CAST( + 94 AS SIGNED ) ) - CAST( NULL AS DECIMAL ) THEN NULL END + + + 47 + + ( 56 ) + - ( SUM( DISTINCT + 19 ) ) * 45 - 76 * - 91 - + 2 + + CASE 19 WHEN + - 5 THEN NULL WHEN - - 51 + COUNT( * ) * + 96 THEN NULL ELSE + - 18 + + 41 * - 60 * + - 2 * 58 END * + 41 * CAST( + - NULLIF ( 81, - COUNT( * ) ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6228
SELECT + CASE + 61 WHEN - COUNT ( * ) THEN + SUM ( DISTINCT 18 ) WHEN + NULLIF ( - + ( - 81 ), CAST ( + 94 AS INTEGER ) ) - CAST ( NULL AS REAL ) THEN NULL END + + + 47 + + ( 56 ) + - ( SUM ( DISTINCT + 19 ) ) * 45 - 76 * - 91 - + 2 + + CASE 19 WHEN + - 5 THEN NULL WHEN - - 51 + COUNT ( * ) * + 96 THEN NULL ELSE + - 18 + + 41 * - 60 * + - 2 * 58 END * + 41 * CAST ( + - NULLIF ( 81, - COUNT ( * ) ) AS INTEGER )
----
NULL

query I rowsort
SELECT CASE + 44 WHEN - 15 THEN NULL WHEN - - 84 + - + 39 THEN + 75 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6230
SELECT CAST( + + 12 AS SIGNED ) + + 60 AS col2, + 29 * - NULLIF ( 70, 49 * 48 - - 87 )
----
72
-2030

skipif mysql # not compatible
query II rowsort label-6230
SELECT CAST ( + + 12 AS INTEGER ) + + 60 AS col2, + 29 * - NULLIF ( 70, 49 * 48 - - 87 )
----
72
-2030

onlyif mysql # aggregate syntax: 
query I rowsort label-6231
SELECT ALL + 53 * + SUM( 90 ) * COUNT( * ) AS col0
----
4770

skipif mysql # not compatible
query I rowsort label-6231
SELECT ALL + 53 * + SUM ( 90 ) * COUNT ( * ) AS col0
----
4770

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6232
SELECT MAX( ALL + CAST( 84 AS SIGNED ) ) DIV 36 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-6232
SELECT MAX ( ALL + CAST ( 84 AS INTEGER ) ) / 36 AS col1
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-6233
SELECT DISTINCT 56 DIV - 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6233
SELECT DISTINCT 56 / - 83 AS col2
----
0

query I rowsort
SELECT ALL - 80 * - 23
----
1840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6235
SELECT ALL + 53 * + CAST( NULL AS SIGNED ) * 13
----
NULL

skipif mysql # not compatible
query I rowsort label-6235
SELECT ALL + 53 * + CAST ( NULL AS INTEGER ) * 13
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6236
SELECT 84 DIV ( 66 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6236
SELECT 84 / ( 66 ) AS col2
----
1

query I rowsort
SELECT 87 + 25
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-6238
SELECT ALL MIN( DISTINCT - - 12 ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-6238
SELECT ALL MIN ( DISTINCT - - 12 ) AS col0
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6239
SELECT ALL + 81 + + 82 - - COUNT( * ) * - COUNT( * ) DIV - COUNT( * )
----
164

skipif mysql # not compatible
query I rowsort label-6239
SELECT ALL + 81 + + 82 - - COUNT ( * ) * - COUNT ( * ) / - COUNT ( * )
----
164

query I rowsort
SELECT DISTINCT + 63 + - 44
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6241
SELECT 15 AS col0, 32 * - 68 * CAST( + CASE 58 WHEN + 62 THEN - COUNT( * ) ELSE NULL END AS SIGNED ) + - + COUNT( * )
----
15
NULL

skipif mysql # not compatible
query II rowsort label-6241
SELECT 15 AS col0, 32 * - 68 * CAST ( + CASE 58 WHEN + 62 THEN - COUNT ( * ) ELSE NULL END AS INTEGER ) + - + COUNT ( * )
----
15
NULL

query I rowsort
SELECT 22 + - 80
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-6243
SELECT DISTINCT + 63 + + 99 * COUNT( DISTINCT 32 ) AS col0, + 10 + - - 78 + + MIN( - 52 ) * + 91 * + + 1 AS col0
----
162
-4644

skipif mysql # not compatible
query II rowsort label-6243
SELECT DISTINCT + 63 + + 99 * COUNT ( DISTINCT 32 ) AS col0, + 10 + - - 78 + + MIN ( - 52 ) * + 91 * + + 1 AS col0
----
162
-4644

onlyif mysql # aggregate syntax: 
query I rowsort label-6244
SELECT ALL NULLIF ( + COALESCE ( + COUNT( * ), 20 + - 62 * + COUNT( + + 41 ) - + 89 ), - COUNT( * ) / + ( + ( + 39 ) ) ) * - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6244
SELECT ALL NULLIF ( + COALESCE ( + COUNT ( * ), 20 + - 62 * + COUNT ( + + 41 ) - + 89 ), - COUNT ( * ) / + ( + ( + 39 ) ) ) * - - COUNT ( * )
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6245
SELECT COUNT( * ) / CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6245
SELECT COUNT ( * ) / CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL 83 * + 37 AS col2
----
3071

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6247
SELECT ALL + 26 * COUNT( * ) + - ( - - NULLIF ( + 56, - 66 * - CAST( NULL AS SIGNED ) ) ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-6247
SELECT ALL + 26 * COUNT ( * ) + - ( - - NULLIF ( + 56, - 66 * - CAST ( NULL AS INTEGER ) ) ) AS col2
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6248
SELECT + + 3 * - + CAST( + - 61 AS SIGNED ) * + ( 34 ) + + + 25
----
6247

skipif mysql # not compatible
query I rowsort label-6248
SELECT + + 3 * - + CAST ( + - 61 AS INTEGER ) * + ( 34 ) + + + 25
----
6247

onlyif mysql # aggregate syntax: 
query II rowsort label-6249
SELECT + 75 - + 91 + + + 94 + + COUNT( * ), - 33 AS col0
----
79
-33

skipif mysql # not compatible
query II rowsort label-6249
SELECT + 75 - + 91 + + + 94 + + COUNT ( * ), - 33 AS col0
----
79
-33

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6251
SELECT 98 DIV 23 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-6251
SELECT 98 / 23 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6252
SELECT DISTINCT - 32 * + + COUNT( * ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-6252
SELECT DISTINCT - 32 * + + COUNT ( * ) AS col1
----
-32

query I rowsort
SELECT ALL + 74 * 13
----
962

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6254
SELECT + 27 * + ( 5 ) * - 45 * + 58 + + + COUNT( * ) DIV + 58
----
-352350

skipif mysql # not compatible
query I rowsort label-6254
SELECT + 27 * + ( 5 ) * - 45 * + 58 + + + COUNT ( * ) / + 58
----
-352350

onlyif mysql # aggregate syntax: 
query I rowsort label-6255
SELECT + 39 * - COUNT( DISTINCT + + 50 ) + COUNT( DISTINCT + 41 )
----
-38

skipif mysql # not compatible
query I rowsort label-6255
SELECT + 39 * - COUNT ( DISTINCT + + 50 ) + COUNT ( DISTINCT + 41 )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-6256
SELECT + + NULLIF ( + 84, COUNT( * ) ) * + ( - - 80 ) AS col2
----
6720

skipif mysql # not compatible
query I rowsort label-6256
SELECT + + NULLIF ( + 84, COUNT ( * ) ) * + ( - - 80 ) AS col2
----
6720

query I rowsort
SELECT + ( 92 ) + 64 AS col1
----
156

query I rowsort
SELECT + + 64 + 77 AS col0
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-6259
SELECT ALL 74 * - + 26 + + COUNT( * ) * ( + + 8 ) AS col0
----
-1916

skipif mysql # not compatible
query I rowsort label-6259
SELECT ALL 74 * - + 26 + + COUNT ( * ) * ( + + 8 ) AS col0
----
-1916

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6260
SELECT + CAST( NULL AS SIGNED ) AS col0, + 3 * + 84
----
NULL
252

skipif mysql # not compatible
query II rowsort label-6260
SELECT + CAST ( NULL AS INTEGER ) AS col0, + 3 * + 84
----
NULL
252

query I rowsort
SELECT 89 * - + CASE + 22 WHEN + - 48 THEN - 19 END + - + 97
----
NULL

query II rowsort
SELECT + 35 AS col1, + 78 - + - 47 AS col0
----
35
125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6263
SELECT DISTINCT CASE + - 93 WHEN + - 82 + + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) - + COALESCE ( - 74, + + 48, + MAX( + 11 ) ) THEN + CAST( NULL AS SIGNED ) ELSE NULL END + - 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6263
SELECT DISTINCT CASE + - 93 WHEN + - 82 + + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) - + COALESCE ( - 74, + + 48, + MAX ( + 11 ) ) THEN + CAST ( NULL AS INTEGER ) ELSE NULL END + - 10 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6264
SELECT DISTINCT 57 + + CASE + + 34 WHEN 87 + + MAX( + + 41 ) THEN - ( - - CAST( NULL AS SIGNED ) ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6264
SELECT DISTINCT 57 + + CASE + + 34 WHEN 87 + + MAX ( + + 41 ) THEN - ( - - CAST ( NULL AS INTEGER ) ) END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6265
SELECT ALL 15 * - + COUNT( * ) * - ( + - 55 ) * + + 26 AS col0
----
-21450

skipif mysql # not compatible
query I rowsort label-6265
SELECT ALL 15 * - + COUNT ( * ) * - ( + - 55 ) * + + 26 AS col0
----
-21450

query I rowsort
SELECT ALL 80 + 9 AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6267
SELECT DISTINCT + 39 + - 72 * - - COALESCE ( - 78, + 44 * - 53 + MIN( + 39 ) ) - - 62 * + - 31 + + + 45 * - 30 + 55 AS col1
----
2438

skipif mysql # not compatible
query I rowsort label-6267
SELECT DISTINCT + 39 + - 72 * - - COALESCE ( - 78, + 44 * - 53 + MIN ( + 39 ) ) - - 62 * + - 31 + + + 45 * - 30 + 55 AS col1
----
2438

onlyif mysql # aggregate syntax: 
query I rowsort label-6268
SELECT DISTINCT 50 * - COALESCE ( 33, - COUNT( * ) + COUNT( * ) + + 20 ) * - 55
----
90750

skipif mysql # not compatible
query I rowsort label-6268
SELECT DISTINCT 50 * - COALESCE ( 33, - COUNT ( * ) + COUNT ( * ) + + 20 ) * - 55
----
90750

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT ALL MIN( ALL + ( + NULLIF ( + - 79, 99 ) ) ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-6269
SELECT ALL MIN ( ALL + ( + NULLIF ( + - 79, 99 ) ) ) AS col1
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-6270
SELECT ALL MIN( ALL 17 ) + - - COUNT( * ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-6270
SELECT ALL MIN ( ALL 17 ) + - - COUNT ( * ) AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6271
SELECT ALL 44 + + COUNT( * ) * + 33 + - - 94 * + + COUNT( * )
----
171

skipif mysql # not compatible
query I rowsort label-6271
SELECT ALL 44 + + COUNT ( * ) * + 33 + - - 94 * + + COUNT ( * )
----
171

query II rowsort
SELECT - 32 * + + 85 AS col1, + 49
----
-2720
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6273
SELECT ALL 38 DIV + 81, + 9 + COUNT( * ) AS col0
----
0
10

skipif mysql # not compatible
query II rowsort label-6273
SELECT ALL 38 / + 81, + 9 + COUNT ( * ) AS col0
----
0
10

query I rowsort
SELECT - COALESCE ( + 66, - 47, ( 94 ), - 56 - - 2 * + 5 )
----
-66

query I rowsort
SELECT DISTINCT 84 + + 58 AS col2
----
142

query I rowsort
SELECT DISTINCT 43 + + - 58 * + - 90 AS col0
----
5263

onlyif mysql # DIV for integer division: 
query I rowsort label-6277
SELECT ALL 2 DIV - 59 * - 9 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6277
SELECT ALL 2 / - 59 * - 9 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6278
SELECT DISTINCT 37 * 26 * - NULLIF ( + 47, + CAST( - 46 AS SIGNED ) * + + CAST( NULL AS SIGNED ) )
----
-45214

skipif mysql # not compatible
query I rowsort label-6278
SELECT DISTINCT 37 * 26 * - NULLIF ( + 47, + CAST ( - 46 AS INTEGER ) * + + CAST ( NULL AS INTEGER ) )
----
-45214

query II rowsort
SELECT DISTINCT + 32 * - - 17 AS col0, + 68 * + ( + 28 ) AS col0
----
544
1904

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6280
SELECT + 36 + + 14 DIV + - COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-6280
SELECT + 36 + + 14 / + - COUNT ( * )
----
22

query I rowsort
SELECT - - 86 * + 84
----
7224

onlyif mysql # aggregate syntax: 
query I rowsort label-6282
SELECT - 59 + + + 74 * - COALESCE ( 8, - 80, - + COALESCE ( - COUNT( * ), + 45 ) + - COALESCE ( 93, + + 53 ) ) * - + 91 / 52 + 10 + SUM( + 79 ) / + CASE + + 61 WHEN + NULLIF ( + 49, - 93 ) THEN - 24 END / - - 83 + + 70 + - COUNT( * ) + - 26 - + + COUNT( * ) + - 10 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6282
SELECT - 59 + + + 74 * - COALESCE ( 8, - 80, - + COALESCE ( - COUNT ( * ), + 45 ) + - COALESCE ( 93, + + 53 ) ) * - + 91 / 52 + 10 + SUM ( + 79 ) / + CASE + + 61 WHEN + NULLIF ( + 49, - 93 ) THEN - 24 END / - - 83 + + 70 + - COUNT ( * ) + - 26 - + + COUNT ( * ) + - 10 AS col1
----
NULL

query I rowsort
SELECT ALL + + 58 - 37
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6284
SELECT - 73 + - - 30 + - COUNT( * ) DIV - 42 * + + 66 DIV + ( 13 ) + - + 63
----
-106

skipif mysql # not compatible
query I rowsort label-6284
SELECT - 73 + - - 30 + - COUNT ( * ) / - 42 * + + 66 / + ( 13 ) + - + 63
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-6285
SELECT DISTINCT + MIN( ALL 11 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-6285
SELECT DISTINCT + MIN ( ALL 11 ) AS col1
----
11

query I rowsort
SELECT ALL + - CASE + 89 WHEN - 60 + + 50 + - 89 + - 20 THEN NULL ELSE 56 END AS col1
----
-56

query II rowsort
SELECT DISTINCT - 81 * 17, 82 AS col1
----
-1377
82

query I rowsort
SELECT - + 59 * - 51 AS col0
----
3009

onlyif mysql # aggregate syntax: 
query II rowsort label-6289
SELECT ALL + MAX( ALL + 83 ), + 76 AS col0
----
83
76

skipif mysql # not compatible
query II rowsort label-6289
SELECT ALL + MAX ( ALL + 83 ), + 76 AS col0
----
83
76

query I rowsort
SELECT + + 82 col1
----
82

query I rowsort
SELECT - 19 * - + 47 * - - COALESCE ( - 11, + 44 ) * + + 0
----
0

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

skipif mysql # not compatible
query I rowsort label-6292
SELECT ALL - COUNT ( ALL 24 ) * - - 58 AS col0
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-6293
SELECT ALL + + MAX( - + 66 ) AS col0, + 83
----
-66
83

skipif mysql # not compatible
query II rowsort label-6293
SELECT ALL + + MAX ( - + 66 ) AS col0, + 83
----
-66
83

onlyif mysql # DIV for integer division: 
query II rowsort label-6294
SELECT - 46 DIV - 57, + 16 AS col0
----
0
16

skipif mysql # not compatible
query II rowsort label-6294
SELECT - 46 / - 57, + 16 AS col0
----
0
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6295
SELECT ALL + 82 * CAST( + 23 AS DECIMAL ) + + CAST( NULL AS SIGNED ) * - MAX( ALL + + 46 ) * - 10 * - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-6295
SELECT ALL + 82 * CAST ( + 23 AS REAL ) + + CAST ( NULL AS INTEGER ) * - MAX ( ALL + + 46 ) * - 10 * - 70
----
NULL

query I rowsort
SELECT 32 * 11 - 1 AS col0
----
351

onlyif mysql # DIV for integer division: 
query I rowsort label-6297
SELECT ALL - 32 * 41 * 60 * - + 79 + - 42 DIV 65
----
6218880

skipif mysql # not compatible
query I rowsort label-6297
SELECT ALL - 32 * 41 * 60 * - + 79 + - 42 / 65
----
6218880

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT ALL 85 * 30 + + - 0 - 17 - - - COUNT( * )
----
2532

skipif mysql # not compatible
query I rowsort label-6299
SELECT ALL 85 * 30 + + - 0 - 17 - - - COUNT ( * )
----
2532

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

skipif mysql # not compatible
query I rowsort label-6300
SELECT - SUM ( ALL 50 )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6301
SELECT - COUNT( * ) + + - 33 col1
----
-34

skipif mysql # not compatible
query I rowsort label-6301
SELECT - COUNT ( * ) + + - 33 col1
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6302
SELECT - 16 * - + SUM( ALL + COALESCE ( - ( + - 63 ), 24 DIV 52, + 11 DIV ( + CAST( + 46 AS SIGNED ) ) - - + 63 ) ) - + 42 AS col0, - 87 AS col2
----
966
-87

skipif mysql # not compatible
query II rowsort label-6302
SELECT - 16 * - + SUM ( ALL + COALESCE ( - ( + - 63 ), 24 / 52, + 11 / ( + CAST ( + 46 AS INTEGER ) ) - - + 63 ) ) - + 42 AS col0, - 87 AS col2
----
966
-87

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

skipif mysql # not compatible
query I rowsort label-6303
SELECT MIN ( ALL 24 )
----
24

query I rowsort
SELECT + 8 * - 95 AS col1
----
-760

query I rowsort
SELECT ALL 32 * 41 AS col0
----
1312

onlyif mysql # aggregate syntax: 
query I rowsort label-6306
SELECT + 96 + - COUNT( * ) + - 64 * 52 - - + 95 AS col0
----
-3138

skipif mysql # not compatible
query I rowsort label-6306
SELECT + 96 + - COUNT ( * ) + - 64 * 52 - - + 95 AS col0
----
-3138

query I rowsort
SELECT DISTINCT 61 * 31 * - 77
----
-145607

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6308
SELECT + 72 + + 27 + CAST( - 22 AS SIGNED ) * + 23 * 20
----
-10021

skipif mysql # not compatible
query I rowsort label-6308
SELECT + 72 + + 27 + CAST ( - 22 AS INTEGER ) * + 23 * 20
----
-10021

query I rowsort
SELECT ALL COALESCE ( + 52, + + 82 ) AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6310
SELECT ALL SUM( ALL - - 15 ) - - ( - 49 ) * 78
----
-3807

skipif mysql # not compatible
query I rowsort label-6310
SELECT ALL SUM ( ALL - - 15 ) - - ( - 49 ) * 78
----
-3807

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6311
SELECT + CAST( - - CASE - 99 WHEN + 78 / + 27 - COUNT( * ) / + 33 - NULLIF ( + 71, + 92 * + 34 * - 13 ) THEN - NULLIF ( - 75, + + 92 - + CASE + 55 WHEN + 41 * - 45 + - 90 THEN + - 15 + + - 40 * + - COUNT( * ) + - 0 * + - 16 - + 1 ELSE NULL END + + 61 ) WHEN 73 + - - 61 THEN NULL END AS SIGNED ) + - 83 AS col1, ( + 81 ) + - + 88 AS col0
----
NULL
-7

skipif mysql # not compatible
query II rowsort label-6311
SELECT + CAST ( - - CASE - 99 WHEN + 78 / + 27 - COUNT ( * ) / + 33 - NULLIF ( + 71, + 92 * + 34 * - 13 ) THEN - NULLIF ( - 75, + + 92 - + CASE + 55 WHEN + 41 * - 45 + - 90 THEN + - 15 + + - 40 * + - COUNT ( * ) + - 0 * + - 16 - + 1 ELSE NULL END + + 61 ) WHEN 73 + - - 61 THEN NULL END AS INTEGER ) + - 83 AS col1, ( + 81 ) + - + 88 AS col0
----
NULL
-7

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

skipif mysql # not compatible
query I rowsort label-6312
SELECT + 36 / + + COUNT ( * )
----
36

query I rowsort
SELECT + 42 * 34
----
1428

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6315
SELECT DISTINCT + 76 DIV - + 66
----
-1

skipif mysql # not compatible
query I rowsort label-6315
SELECT DISTINCT + 76 / - + 66
----
-1

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

skipif mysql # not compatible
query I rowsort label-6316
SELECT + 1 / + - 70 / COUNT ( * ) AS col2
----
0

query I rowsort
SELECT ALL - 43 * 76 + + 35
----
-3233

query I rowsort
SELECT + - 38 - + + 34
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6319
SELECT DISTINCT + 52 * 14 + - CAST( - 94 AS SIGNED ) AS col2
----
822

skipif mysql # not compatible
query I rowsort label-6319
SELECT DISTINCT + 52 * 14 + - CAST ( - 94 AS INTEGER ) AS col2
----
822

query I rowsort
SELECT ALL 7 * + - 11 * 61
----
-4697

query I rowsort
SELECT 20 * - 23 + - 18 - - - 76 + 27 * + 84
----
1714

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6322
SELECT 2 * + ( - 40 ) / - 72 + + 5 + + 34 / - 71 * + CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6322
SELECT 2 * + ( - 40 ) / - 72 + + 5 + + 34 / - 71 * + CAST ( NULL AS REAL ) col1
----
NULL

query I rowsort
SELECT 51 - - - 19 * - 39 * + - 87 col1
----
-64416

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6324
SELECT DISTINCT - 91 * COUNT( * ) * - NULLIF ( - 4, CAST( NULL AS SIGNED ) + - 78 )
----
-364

skipif mysql # not compatible
query I rowsort label-6324
SELECT DISTINCT - 91 * COUNT ( * ) * - NULLIF ( - 4, CAST ( NULL AS INTEGER ) + - 78 )
----
-364

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6325
SELECT - - 57 DIV - COUNT( DISTINCT - 2 ) + + 88 col1
----
31

skipif mysql # not compatible
query I rowsort label-6325
SELECT - - 57 / - COUNT ( DISTINCT - 2 ) + + 88 col1
----
31

query I rowsort
SELECT 0 + + 42
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6327
SELECT + 87 * 44 / - - CASE + + 63 WHEN + 14 THEN + 67 WHEN - + 33 * + 78 + 99 * - 88 * NULLIF ( - 66, 54 ) THEN - 54 * - 0 + - COUNT( * ) ELSE NULL END * - 87 + COUNT( - 58 ) - + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-6327
SELECT + 87 * 44 / - - CASE + + 63 WHEN + 14 THEN + 67 WHEN - + 33 * + 78 + 99 * - 88 * NULLIF ( - 66, 54 ) THEN - 54 * - 0 + - COUNT ( * ) ELSE NULL END * - 87 + COUNT ( - 58 ) - + 22
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-6329
SELECT + CAST ( NULL AS INTEGER ) + - + 36 + - 73 + - - 15 col2
----
NULL

query I rowsort
SELECT DISTINCT + 39 + - 93
----
-54

query I rowsort
SELECT ALL - - ( 10 ) * ( 83 ) * + - 67 AS col2
----
-55610

query I rowsort
SELECT ALL + 94 + 52 AS col2
----
146

onlyif mysql # DIV for integer division: 
query I rowsort label-6333
SELECT DISTINCT - 40 DIV - + 3 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-6333
SELECT DISTINCT - 40 / - + 3 AS col2
----
13

query I rowsort
SELECT 96 + 64 AS col0
----
160

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6337
SELECT NULLIF ( + 27, - + COUNT( * ) / - 24 * COUNT( * ) + - 28 ) + 63 * ( + 24 ) * + 89 AS col1
----
134595

skipif mysql # not compatible
query I rowsort label-6337
SELECT NULLIF ( + 27, - + COUNT ( * ) / - 24 * COUNT ( * ) + - 28 ) + 63 * ( + 24 ) * + 89 AS col1
----
134595

query II rowsort
SELECT + 96 AS col2, + COALESCE ( + - 22, + 27 ) + + + 20 col2
----
96
-2

onlyif mysql # DIV for integer division: 
query II rowsort label-6339
SELECT 58 AS col2, - 5 DIV 81
----
58
0

skipif mysql # not compatible
query II rowsort label-6339
SELECT 58 AS col2, - 5 / 81
----
58
0

query I rowsort
SELECT 31 * 74 + + 65 AS col0
----
2359

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6341
SELECT 93 * + CASE 63 WHEN + 48 * CAST( + 89 AS SIGNED ) + + 48 THEN - 35 WHEN + - 13 THEN NULL END col0, 22 + - + 4 AS col0
----
NULL
18

skipif mysql # not compatible
query II rowsort label-6341
SELECT 93 * + CASE 63 WHEN + 48 * CAST ( + 89 AS INTEGER ) + + 48 THEN - 35 WHEN + - 13 THEN NULL END col0, 22 + - + 4 AS col0
----
NULL
18

query I rowsort
SELECT ALL + 22 * - - 66 * + - 58
----
-84216

onlyif mysql # aggregate syntax: 
query II rowsort label-6343
SELECT DISTINCT - 70, COUNT( * ) AS col0
----
-70
1

skipif mysql # not compatible
query II rowsort label-6343
SELECT DISTINCT - 70, COUNT ( * ) AS col0
----
-70
1

query I rowsort
SELECT 9 + + 86 AS col2
----
95

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6345
SELECT ALL CASE 76 WHEN - - ( - - 95 ) THEN + + 49 * 17 WHEN - 59 THEN - 84 * 43 + + 62 WHEN ( - 62 ) * + 82 THEN NULL ELSE - - 62 + - - 94 END DIV + + 55 AS col0, CAST( NULL AS SIGNED )
----
2
NULL

skipif mysql # not compatible
query II rowsort label-6345
SELECT ALL CASE 76 WHEN - - ( - - 95 ) THEN + + 49 * 17 WHEN - 59 THEN - 84 * 43 + + 62 WHEN ( - 62 ) * + 82 THEN NULL ELSE - - 62 + - - 94 END / + + 55 AS col0, CAST ( NULL AS INTEGER )
----
2
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6346
SELECT COUNT( * ) * - + 19 * - - 49
----
-931

skipif mysql # not compatible
query I rowsort label-6346
SELECT COUNT ( * ) * - + 19 * - - 49
----
-931

onlyif mysql # aggregate syntax: 
query II rowsort label-6347
SELECT ALL 63 col1, NULLIF ( + + COUNT( * ), MAX( 9 ) ) * + + 5
----
63
5

skipif mysql # not compatible
query II rowsort label-6347
SELECT ALL 63 col1, NULLIF ( + + COUNT ( * ), MAX ( 9 ) ) * + + 5
----
63
5

query I rowsort
SELECT 2 - 59
----
-57

query II rowsort
SELECT 39 AS col0, - 3 AS col2
----
39
-3

query II rowsort
SELECT COALESCE ( 28, - 17 + 6 ) + 88 + 11, 42 AS col2
----
127
42

query I rowsort
SELECT 18 * + 36 col0
----
648

query I rowsort
SELECT ALL 42 * + - 48 AS col2
----
-2016

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6353
SELECT 79, - 11 * + CAST( - 77 AS SIGNED ) AS col2
----
79
847

skipif mysql # not compatible
query II rowsort label-6353
SELECT 79, - 11 * + CAST ( - 77 AS INTEGER ) AS col2
----
79
847

onlyif mysql # aggregate syntax: 
query I rowsort label-6354
SELECT ALL - 3 * COUNT( * ) * - - 5 * - - 24
----
-360

skipif mysql # not compatible
query I rowsort label-6354
SELECT ALL - 3 * COUNT ( * ) * - - 5 * - - 24
----
-360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6355
SELECT ALL 77 * + + COALESCE ( + CAST( NULL AS SIGNED ), 70 DIV + COALESCE ( + 68, MAX( 3 ), + + ( 19 ) + - - 60 ), COUNT( - + 63 ) ) - + + SUM( DISTINCT + - 32 )
----
109

skipif mysql # not compatible
query I rowsort label-6355
SELECT ALL 77 * + + COALESCE ( + CAST ( NULL AS INTEGER ), 70 / + COALESCE ( + 68, MAX ( 3 ), + + ( 19 ) + - - 60 ), COUNT ( - + 63 ) ) - + + SUM ( DISTINCT + - 32 )
----
109

query I rowsort
SELECT ALL 95 * - + 56 AS col1
----
-5320

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

skipif mysql # not compatible
query I rowsort label-6357
SELECT - COUNT ( * ) / 76
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6358
SELECT SUM( - 8 ) * - 10
----
80

skipif mysql # not compatible
query I rowsort label-6358
SELECT SUM ( - 8 ) * - 10
----
80

query I rowsort
SELECT + 44 + + 99 AS col0
----
143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6360
SELECT 66 + ( + 9 ) + - CAST( - 92 AS SIGNED ) - - 97 AS col0
----
264

skipif mysql # not compatible
query I rowsort label-6360
SELECT 66 + ( + 9 ) + - CAST ( - 92 AS INTEGER ) - - 97 AS col0
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-6361
SELECT DISTINCT COUNT( * ) + 97
----
98

skipif mysql # not compatible
query I rowsort label-6361
SELECT DISTINCT COUNT ( * ) + 97
----
98

query I rowsort
SELECT ALL + 71 + + + 28
----
99

query I rowsort
SELECT - 10 * - + 20
----
200

query II rowsort
SELECT DISTINCT - - 80 AS col1, - 35 AS col2
----
80
-35

query I rowsort
SELECT DISTINCT + - 73 + + + ( - 40 ) AS col2
----
-113

onlyif mysql # aggregate syntax: 
query II rowsort label-6366
SELECT DISTINCT - - 63 AS col1, - COUNT( * ) * 96
----
63
-96

skipif mysql # not compatible
query II rowsort label-6366
SELECT DISTINCT - - 63 AS col1, - COUNT ( * ) * 96
----
63
-96

query I rowsort
SELECT ALL 7 + - + 62
----
-55

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6369
SELECT DISTINCT + - CAST( + 20 AS SIGNED ) + MIN( 64 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-6369
SELECT DISTINCT + - CAST ( + 20 AS INTEGER ) + MIN ( 64 ) AS col0
----
44

query I rowsort
SELECT DISTINCT + 19 * - 78
----
-1482

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6371
SELECT + MAX( ALL 1 ) DIV - + 73 * - + 52 - + + 83
----
-83

skipif mysql # not compatible
query I rowsort label-6371
SELECT + MAX ( ALL 1 ) / - + 73 * - + 52 - + + 83
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-6372
SELECT ALL - 35 * - ( + - 35 ) * + MIN( - + 91 ) + + 7
----
111482

skipif mysql # not compatible
query I rowsort label-6372
SELECT ALL - 35 * - ( + - 35 ) * + MIN ( - + 91 ) + + 7
----
111482

onlyif mysql # aggregate syntax: 
query II rowsort label-6373
SELECT MAX( ALL + + 81 ), 63 + + 44 AS col0
----
81
107

skipif mysql # not compatible
query II rowsort label-6373
SELECT MAX ( ALL + + 81 ), 63 + + 44 AS col0
----
81
107

onlyif mysql # aggregate syntax: 
query II rowsort label-6374
SELECT 12 * - 56 * - + 81 AS col0, + 13 - + - MIN( DISTINCT 91 ) + - 5 * - 45 * + 17 AS col2
----
54432
3929

skipif mysql # not compatible
query II rowsort label-6374
SELECT 12 * - 56 * - + 81 AS col0, + 13 - + - MIN ( DISTINCT 91 ) + - 5 * - 45 * + 17 AS col2
----
54432
3929

onlyif mysql # aggregate syntax: 
query I rowsort label-6375
SELECT ALL + 63 - + CASE AVG ( ALL 89 ) WHEN AVG ( DISTINCT + ( - + 52 ) ) / + MIN( - 64 ) * - - 18 THEN - ( - 7 ) * - ( - 48 ) END * - + 74 * 86 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6375
SELECT ALL + 63 - + CASE AVG ( ALL 89 ) WHEN AVG ( DISTINCT + ( - + 52 ) ) / + MIN ( - 64 ) * - - 18 THEN - ( - 7 ) * - ( - 48 ) END * - + 74 * 86 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6376
SELECT 63 * + 87 - CAST( 71 AS SIGNED ) * - 76 + 58 AS col0
----
10935

skipif mysql # not compatible
query I rowsort label-6376
SELECT 63 * + 87 - CAST ( 71 AS INTEGER ) * - 76 + 58 AS col0
----
10935

query I rowsort
SELECT 12 - ( - 7 ) + + 82 + 16 * - 35 AS col1
----
-459

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6378
SELECT ALL - MAX( ALL - 81 ) - CAST( NULL AS SIGNED ) / NULLIF ( + 65, - 14 + - 74 + - + 67 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6378
SELECT ALL - MAX ( ALL - 81 ) - CAST ( NULL AS INTEGER ) / NULLIF ( + 65, - 14 + - 74 + - + 67 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6379
SELECT ALL - MIN( - 19 ) col1
----
19

skipif mysql # not compatible
query I rowsort label-6379
SELECT ALL - MIN ( - 19 ) col1
----
19

query I rowsort
SELECT 28 * - 47 * - 16 * - + 32 AS col2
----
-673792

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-6381
SELECT 0 * + 38 * - - COALESCE ( - 54, - - MAX( NULLIF ( - 13, CAST( NULL AS DECIMAL ) ) ) DIV 9, 30 ) * + + 66 * MAX( + 1 ) + - 19
----
-19

skipif mysql # not compatible
query I rowsort label-6381
SELECT 0 * + 38 * - - COALESCE ( - 54, - - MAX ( NULLIF ( - 13, CAST ( NULL AS REAL ) ) ) / 9, 30 ) * + + 66 * MAX ( + 1 ) + - 19
----
-19

query I rowsort
SELECT DISTINCT + 73 * 74 AS col0
----
5402

onlyif mysql # aggregate syntax: 
query I rowsort label-6383
SELECT 11 + - SUM( + - 80 ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-6383
SELECT 11 + - SUM ( + - 80 ) AS col0
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6384
SELECT - 69 * 73 DIV - + MIN( - 8 ) - - 92
----
-537

skipif mysql # not compatible
query I rowsort label-6384
SELECT - 69 * 73 / - + MIN ( - 8 ) - - 92
----
-537

onlyif mysql # aggregate syntax: 
query I rowsort label-6385
SELECT MAX( ALL - 79 ) * + 24
----
-1896

skipif mysql # not compatible
query I rowsort label-6385
SELECT MAX ( ALL - 79 ) * + 24
----
-1896

onlyif mysql # aggregate syntax: 
query I rowsort label-6386
SELECT ALL COALESCE ( - 56, - + 30 + COUNT( * ) )
----
-56

skipif mysql # not compatible
query I rowsort label-6386
SELECT ALL COALESCE ( - 56, - + 30 + COUNT ( * ) )
----
-56

query I rowsort
SELECT ALL + 16 + 99 AS col2
----
115

query I rowsort
SELECT - + 46 * + ( 23 ) col1
----
-1058

query I rowsort
SELECT ALL + COALESCE ( 37, - 84 * + 85 + + 25 ) + + 93 col1
----
130

query I rowsort
SELECT ALL CASE NULLIF ( - 57, + 81 ) WHEN + - ( + 12 ) + ( - 17 ) * + 71 * + 84 THEN 66 END
----
NULL

query I rowsort
SELECT - + ( - 32 ) * - - 54 - - 83
----
1811

query I rowsort
SELECT + + 80 * + 7 - + 25 AS col2
----
535

query I rowsort
SELECT + - 22 + - 11 + - + 69 AS col1
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-6394
SELECT - COUNT( DISTINCT - - 95 ) - - + CASE + + 11 WHEN + COUNT( ALL - - 71 ) * - 54 * - 41 THEN - + ( + 54 ) ELSE NULL END + - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-6394
SELECT - COUNT ( DISTINCT - - 95 ) - - + CASE + + 11 WHEN + COUNT ( ALL - - 71 ) * - 54 * - 41 THEN - + ( + 54 ) ELSE NULL END + - 46
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6396
SELECT DISTINCT - 9 * - 47 * - - ( - 46 ) * - 0, - 43 DIV + - 61 col2
----
0
0

skipif mysql # not compatible
query II rowsort label-6396
SELECT DISTINCT - 9 * - 47 * - - ( - 46 ) * - 0, - 43 / + - 61 col2
----
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6397
SELECT DISTINCT + + CAST( + 52 AS SIGNED ) * + 40
----
2080

skipif mysql # not compatible
query I rowsort label-6397
SELECT DISTINCT + + CAST ( + 52 AS INTEGER ) * + 40
----
2080

query I rowsort
SELECT ALL 96 * - - 95
----
9120

onlyif mysql # aggregate syntax: 
query I rowsort label-6399
SELECT ALL - ( NULLIF ( - 82, + 60 ) ) - + ( COUNT( * ) ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-6399
SELECT ALL - ( NULLIF ( - 82, + 60 ) ) - + ( COUNT ( * ) ) AS col2
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6400
SELECT + - 19 DIV + + COUNT( * ) + - 92 * COALESCE ( + + ( COALESCE ( + + 67, 69, - 91 ) ), 96 * + 28, - + 46 * + MAX( - 49 ) + + + 26 )
----
-6183

skipif mysql # not compatible
query I rowsort label-6400
SELECT + - 19 / + + COUNT ( * ) + - 92 * COALESCE ( + + ( COALESCE ( + + 67, 69, - 91 ) ), 96 * + 28, - + 46 * + MAX ( - 49 ) + + + 26 )
----
-6183

query I rowsort
SELECT - 12 * + 22 * + + COALESCE ( 10, 31 ) - + 21 AS col1
----
-2661

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6402
SELECT 67 DIV COUNT( * ) + - 48 + 68 AS col2
----
87

skipif mysql # not compatible
query I rowsort label-6402
SELECT 67 / COUNT ( * ) + - 48 + 68 AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6403
SELECT + COUNT( * ) + 92
----
93

skipif mysql # not compatible
query I rowsort label-6403
SELECT + COUNT ( * ) + 92
----
93

query II rowsort
SELECT DISTINCT + 35, - 25 AS col0
----
35
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-6405
SELECT DISTINCT COALESCE ( - 36, 48 ) DIV 38
----
0

skipif mysql # not compatible
query I rowsort label-6405
SELECT DISTINCT COALESCE ( - 36, 48 ) / 38
----
0

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

skipif mysql # not compatible
query I rowsort label-6406
SELECT ALL 73 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6407
SELECT ALL COUNT( * ) * - COUNT( * ) * CASE + 79 WHEN 97 * + 4 THEN + 8 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6407
SELECT ALL COUNT ( * ) * - COUNT ( * ) * CASE + 79 WHEN 97 * + 4 THEN + 8 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6408
SELECT + CASE - 74 WHEN 62 + - 25 THEN - 52 / - 41 + - - 1 WHEN - 54 THEN 17 * + + COUNT( DISTINCT - 99 ) * + 95 * + 91 + + 43 + - MAX( - ( - 80 ) ) / NULLIF ( + 33, + 39 ) + 35 * 63 * + 35 END AS col1, + 9 * + COUNT( * ) AS col0
----
NULL
9

skipif mysql # not compatible
query II rowsort label-6408
SELECT + CASE - 74 WHEN 62 + - 25 THEN - 52 / - 41 + - - 1 WHEN - 54 THEN 17 * + + COUNT ( DISTINCT - 99 ) * + 95 * + 91 + + 43 + - MAX ( - ( - 80 ) ) / NULLIF ( + 33, + 39 ) + 35 * 63 * + 35 END AS col1, + 9 * + COUNT ( * ) AS col0
----
NULL
9

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

query I rowsort
SELECT + 55 + + - 84
----
-29

query I rowsort
SELECT NULLIF ( - + 3, - - 14 ) AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT SUM( - - 94 ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-6412
SELECT SUM ( - - 94 ) AS col2
----
94

query I rowsort
SELECT DISTINCT - ( - ( + ( - + 3 ) ) ) * - ( 55 ) - + NULLIF ( + - 94, + 60 ) + + 70 AS col0
----
329

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6414
SELECT - 1 + + CAST( - 75 AS SIGNED ) * + COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-6414
SELECT - 1 + + CAST ( - 75 AS INTEGER ) * + COUNT ( * )
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6415
SELECT DISTINCT - 10 * - 56 * + 93 + 70 + 20 + - + CAST( NULL AS SIGNED ) + - 81 + - 17 * + 79 + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-6415
SELECT DISTINCT - 10 * - 56 * + 93 + 70 + 20 + - + CAST ( NULL AS INTEGER ) + - 81 + - 17 * + 79 + 82
----
NULL

query I rowsort
SELECT + + 31 - - 92 * + - 17
----
-1533

onlyif mysql # aggregate syntax: 
query II rowsort label-6417
SELECT COUNT( * ), 67 * + - 38 AS col0
----
1
-2546

skipif mysql # not compatible
query II rowsort label-6417
SELECT COUNT ( * ), 67 * + - 38 AS col0
----
1
-2546

query I rowsort
SELECT - 26 + - 52
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6419
SELECT DISTINCT + - 32 + + MIN( DISTINCT + 34 )
----
2

skipif mysql # not compatible
query I rowsort label-6419
SELECT DISTINCT + - 32 + + MIN ( DISTINCT + 34 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6420
SELECT ALL - 71 + + COUNT( * )
----
-70

skipif mysql # not compatible
query I rowsort label-6420
SELECT ALL - 71 + + COUNT ( * )
----
-70

query I rowsort
SELECT - 83 * + + 96
----
-7968

query I rowsort
SELECT DISTINCT + - 2 + 75 * + 22 AS col1
----
1648

onlyif mysql # aggregate syntax: 
query I rowsort label-6423
SELECT - - 74 + + NULLIF ( + 79, 16 ) - - MIN( - 1 )
----
152

skipif mysql # not compatible
query I rowsort label-6423
SELECT - - 74 + + NULLIF ( + 79, 16 ) - - MIN ( - 1 )
----
152

onlyif mysql # DIV for integer division: 
query I rowsort label-6424
SELECT DISTINCT - 60 DIV - 79 * 43 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6424
SELECT DISTINCT - 60 / - 79 * 43 AS col2
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-6426
SELECT - 88 AS col2, COUNT( * ) * + 16 + 47 + ( - CAST( NULL AS SIGNED ) ), 4 + + - 70 AS col0
----
-88
NULL
-66

skipif mysql # not compatible
query III rowsort label-6426
SELECT - 88 AS col2, COUNT ( * ) * + 16 + 47 + ( - CAST ( NULL AS INTEGER ) ), 4 + + - 70 AS col0
----
-88
NULL
-66

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6427
SELECT - 39, - 27 + - - CAST( 33 AS SIGNED ) DIV + 81 AS col2
----
-39
-27

skipif mysql # not compatible
query II rowsort label-6427
SELECT - 39, - 27 + - - CAST ( 33 AS INTEGER ) / + 81 AS col2
----
-39
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6428
SELECT + 69 + MAX( ALL - 54 ) * - + COUNT( * ) * - 7 AS col2
----
-309

skipif mysql # not compatible
query I rowsort label-6428
SELECT + 69 + MAX ( ALL - 54 ) * - + COUNT ( * ) * - 7 AS col2
----
-309

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6429
SELECT - CAST( NULL AS SIGNED ) * - - 39 * 65
----
NULL

skipif mysql # not compatible
query I rowsort label-6429
SELECT - CAST ( NULL AS INTEGER ) * - - 39 * 65
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6430
SELECT DISTINCT COALESCE ( + + ( + - 80 ), + 51 DIV 52 - ( + 64 ) - + 32 ) * 40 AS col2, COUNT( * ) col0
----
-3200
1

skipif mysql # not compatible
query II rowsort label-6430
SELECT DISTINCT COALESCE ( + + ( + - 80 ), + 51 / 52 - ( + 64 ) - + 32 ) * 40 AS col2, COUNT ( * ) col0
----
-3200
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6431
SELECT ALL 75 / CAST( - CASE + - 66 WHEN - 77 * - COALESCE ( + + 0, - - SUM( DISTINCT CAST( NULL AS SIGNED ) ), 39 * - 8 ) / + 62 - 35 + COALESCE ( - 53, - + COUNT( + - 32 ) / ( - + COUNT( * ) ) ) THEN ( 14 ) WHEN + ( - - COALESCE ( + 92, + 17 + + - COUNT( * ) / COUNT( * ) * - ( + 28 ), ( + 13 ) / 96 + - 69 ) ) THEN - + 3 END AS DECIMAL ) * ( + + 39 ) - 52 - + 36 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6431
SELECT ALL 75 / CAST ( - CASE + - 66 WHEN - 77 * - COALESCE ( + + 0, - - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ), 39 * - 8 ) / + 62 - 35 + COALESCE ( - 53, - + COUNT ( + - 32 ) / ( - + COUNT ( * ) ) ) THEN ( 14 ) WHEN + ( - - COALESCE ( + 92, + 17 + + - COUNT ( * ) / COUNT ( * ) * - ( + 28 ), ( + 13 ) / 96 + - 69 ) ) THEN - + 3 END AS REAL ) * ( + + 39 ) - 52 - + 36 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6432
SELECT ALL + COUNT( * ) * + 55 DIV - + 16 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-6432
SELECT ALL + COUNT ( * ) * + 55 / - + 16 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6433
SELECT ( + COUNT( * ) ) * 19 - - 72 - - 88 + MIN( DISTINCT + 55 )
----
234

skipif mysql # not compatible
query I rowsort label-6433
SELECT ( + COUNT ( * ) ) * 19 - - 72 - - 88 + MIN ( DISTINCT + 55 )
----
234

onlyif mysql # aggregate syntax: 
query II rowsort label-6434
SELECT + COUNT( * ) * 58 AS col1, 37 AS col2
----
58
37

skipif mysql # not compatible
query II rowsort label-6434
SELECT + COUNT ( * ) * 58 AS col1, 37 AS col2
----
58
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6435
SELECT - 38 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6435
SELECT - 38 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6436
SELECT - 55 * COALESCE ( + 12, 2 DIV - 50 - + + NULLIF ( + 90, MAX( - NULLIF ( - + 77, - 18 ) ) * - - 33 ), - + COUNT( * ) - + + 31 * + 94 ) AS col2
----
-660

skipif mysql # not compatible
query I rowsort label-6436
SELECT - 55 * COALESCE ( + 12, 2 / - 50 - + + NULLIF ( + 90, MAX ( - NULLIF ( - + 77, - 18 ) ) * - - 33 ), - + COUNT ( * ) - + + 31 * + 94 ) AS col2
----
-660

onlyif mysql # aggregate syntax: 
query I rowsort label-6437
SELECT + 14 + COUNT( 24 )
----
15

skipif mysql # not compatible
query I rowsort label-6437
SELECT + 14 + COUNT ( 24 )
----
15

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6439
SELECT CAST( + 86 AS SIGNED ), + COUNT( * ) AS col1
----
86
1

skipif mysql # not compatible
query II rowsort label-6439
SELECT CAST ( + 86 AS INTEGER ), + COUNT ( * ) AS col1
----
86
1

query I rowsort
SELECT 56 * + - ( + - 29 ) * 76 + + + 37
----
123461

query I rowsort
SELECT DISTINCT 31 + - + 41 col2
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6442
SELECT NULLIF ( + + 27, 63 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6442
SELECT NULLIF ( + + 27, 63 ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 46 - 44 * 46
----
-1978

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

skipif mysql # not compatible
query I rowsort label-6444
SELECT ALL 83 + + COUNT ( * ) + - - 12 AS col2
----
96

query I rowsort
SELECT 82 * + 98 AS col0
----
8036

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
SELECT - COALESCE ( - 84, + 15 * + + ( - 29 ) + - + COUNT( * ) ) + 87 AS col2
----
171

skipif mysql # not compatible
query I rowsort label-6446
SELECT - COALESCE ( - 84, + 15 * + + ( - 29 ) + - + COUNT ( * ) ) + 87 AS col2
----
171

query I rowsort
SELECT 41 * + 68 * 60 AS col2
----
167280

query I rowsort
SELECT 43 + + - 66 * - 99
----
6577

onlyif mysql # aggregate syntax: 
query I rowsort label-6449
SELECT + - COUNT( * ) * - 84 * - 14 - 45
----
-1221

skipif mysql # not compatible
query I rowsort label-6449
SELECT + - COUNT ( * ) * - 84 * - 14 - 45
----
-1221

query I rowsort
SELECT ALL 28 + 29 AS col1
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6451
SELECT ALL NULLIF ( + 94, - - CAST( NULL AS SIGNED ) )
----
94

skipif mysql # not compatible
query I rowsort label-6451
SELECT ALL NULLIF ( + 94, - - CAST ( NULL AS INTEGER ) )
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-6452
SELECT DISTINCT COUNT( * ) - - + 59, 92 AS col1
----
60
92

skipif mysql # not compatible
query II rowsort label-6452
SELECT DISTINCT COUNT ( * ) - - + 59, 92 AS col1
----
60
92

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

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

query I rowsort
SELECT 30 + - 94 AS col0
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6455
SELECT + 47 * + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + - + 61 + 64 * - - 10 * - - COUNT( * ) * - - COUNT( * ) * - 70 / 17 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6455
SELECT + 47 * + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + - + 61 + 64 * - - 10 * - - COUNT ( * ) * - - COUNT ( * ) * - 70 / 17 col1
----
NULL

query I rowsort
SELECT 89 * + 31
----
2759

query I rowsort
SELECT 23 + 23 * + 7
----
184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6458
SELECT - SUM( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6458
SELECT - SUM ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT ALL - - 62 * - + 91
----
-5642

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6460
SELECT ALL - NULLIF ( + SUM( DISTINCT + CAST( - ( 33 ) AS SIGNED ) ), 31 )
----
33

skipif mysql # not compatible
query I rowsort label-6460
SELECT ALL - NULLIF ( + SUM ( DISTINCT + CAST ( - ( 33 ) AS INTEGER ) ), 31 )
----
33

query I rowsort
SELECT ALL - 77 * - 83
----
6391

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6464
SELECT ALL 89 AS col0, + CAST( NULL AS DECIMAL ) AS col2
----
89
NULL

skipif mysql # not compatible
query II rowsort label-6464
SELECT ALL 89 AS col0, + CAST ( NULL AS REAL ) AS col2
----
89
NULL

query I rowsort
SELECT ALL - 41 + - 68
----
-109

query I rowsort
SELECT 5 * + 29 * - COALESCE ( - 93, + 79, + 71 ) + - - 48
----
13533

query I rowsort
SELECT 37 - - 4
----
41

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6469
SELECT ALL 78 + CAST( COUNT( * ) AS SIGNED ) + + 50
----
129

skipif mysql # not compatible
query I rowsort label-6469
SELECT ALL 78 + CAST ( COUNT ( * ) AS INTEGER ) + + 50
----
129

query I rowsort
SELECT 37 + - - 94
----
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6471
SELECT DISTINCT - CASE 84 WHEN - + 22 - + CAST( + ( COUNT( 82 ) ) AS SIGNED ) THEN - COUNT( * ) * NULLIF ( + - 55, 63 ) * - - 54 + - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6471
SELECT DISTINCT - CASE 84 WHEN - + 22 - + CAST ( + ( COUNT ( 82 ) ) AS INTEGER ) THEN - COUNT ( * ) * NULLIF ( + - 55, 63 ) * - - 54 + - COUNT ( * ) ELSE NULL END
----
NULL

query II rowsort
SELECT ALL - 17 AS col0, 57 AS col0
----
-17
57

onlyif mysql # aggregate syntax: 
query II rowsort label-6473
SELECT 56 + + COUNT( ALL 75 ), 30 AS col2
----
57
30

skipif mysql # not compatible
query II rowsort label-6473
SELECT 56 + + COUNT ( ALL 75 ), 30 AS col2
----
57
30

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

skipif mysql # not compatible
query I rowsort label-6474
SELECT ALL - COUNT ( * ) + - 21 + - 29 AS col2
----
-51

query I rowsort
SELECT DISTINCT 77 + + 3
----
80

query I rowsort
SELECT ALL + ( - 12 ) + - + NULLIF ( - 92, 89 ) + - + 82 * + + 14 * - 97
----
111436

onlyif mysql # aggregate syntax: 
query II rowsort label-6477
SELECT + COUNT( * ) * + + 59 + + - 30 AS col1, + 42 AS col2
----
29
42

skipif mysql # not compatible
query II rowsort label-6477
SELECT + COUNT ( * ) * + + 59 + + - 30 AS col1, + 42 AS col2
----
29
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6478
SELECT DISTINCT - - 78 AS col1, + MAX( - + CAST( NULL AS SIGNED ) ) * COALESCE ( + 76, + 90 )
----
78
NULL

skipif mysql # not compatible
query II rowsort label-6478
SELECT DISTINCT - - 78 AS col1, + MAX ( - + CAST ( NULL AS INTEGER ) ) * COALESCE ( + 76, + 90 )
----
78
NULL

query I rowsort
SELECT DISTINCT - 76 - - 87 AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6480
SELECT 66 + + + COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-6480
SELECT 66 + + + COUNT ( * )
----
67

query I rowsort
SELECT DISTINCT 14 - - 11 AS col1
----
25

query I rowsort
SELECT - + 12 col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6483
SELECT ALL - MIN( DISTINCT 84 )
----
-84

skipif mysql # not compatible
query I rowsort label-6483
SELECT ALL - MIN ( DISTINCT 84 )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-6484
SELECT 14 - COUNT( * ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-6484
SELECT 14 - COUNT ( * ) AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6485
SELECT + COALESCE ( - 65, - - COUNT( * ), + - ( + + COUNT( 82 ) ) ) + + - 82
----
-147

skipif mysql # not compatible
query I rowsort label-6485
SELECT + COALESCE ( - 65, - - COUNT ( * ), + - ( + + COUNT ( 82 ) ) ) + + - 82
----
-147

query I rowsort
SELECT 35 + - - ( 68 )
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-6487
SELECT + NULLIF ( COUNT( * ), + 64 * 68 ) + - + 80 - + 11 + + + 85 * + 73 + - COUNT( * ) + + 44 AS col0
----
6158

skipif mysql # not compatible
query I rowsort label-6487
SELECT + NULLIF ( COUNT ( * ), + 64 * 68 ) + - + 80 - + 11 + + + 85 * + 73 + - COUNT ( * ) + + 44 AS col0
----
6158

query I rowsort
SELECT 83 * - + 28
----
-2324

query I rowsort
SELECT + 95 - 88
----
7

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

query II rowsort
SELECT 21 * - - 13, 3 * - 68 AS col1
----
273
-204

query I rowsort
SELECT ALL 56 + - COALESCE ( + 27, - + 66 ) + 54 + 15 AS col1
----
98

query I rowsort
SELECT 28 + + + 86 AS col1
----
114

query I rowsort
SELECT ALL - 46 * - + 90
----
4140

query I rowsort
SELECT 47 + + + 91
----
138

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6497
SELECT ALL + 73 + + COUNT( ALL + - 45 )
----
74

skipif mysql # not compatible
query I rowsort label-6497
SELECT ALL + 73 + + COUNT ( ALL + - 45 )
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6498
SELECT COALESCE ( - - 98, + CAST( + - COUNT( * ) AS SIGNED ) ) AS col0, + 22 AS col0
----
98
22

skipif mysql # not compatible
query II rowsort label-6498
SELECT COALESCE ( - - 98, + CAST ( + - COUNT ( * ) AS INTEGER ) ) AS col0, + 22 AS col0
----
98
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6499
SELECT ALL 3 * + + 51 * - - COUNT( * ) + 72 - - CASE - 22 WHEN - + CAST( + 46 AS SIGNED ) + - - CAST( NULL AS SIGNED ) * 79 THEN + COALESCE ( + 86, + ( + - CASE 1 WHEN - + CAST( + - 66 AS SIGNED ) / + 56 + 99 + + 13 THEN + 70 ELSE NULL END ) * - 1 + - + AVG ( DISTINCT - 97 ), - 37 ) ELSE - CAST( NULL AS DECIMAL ) END / 86, 10 * + 44 + + COUNT( * ) col0
----
NULL
441

skipif mysql # not compatible
query II rowsort label-6499
SELECT ALL 3 * + + 51 * - - COUNT ( * ) + 72 - - CASE - 22 WHEN - + CAST ( + 46 AS INTEGER ) + - - CAST ( NULL AS INTEGER ) * 79 THEN + COALESCE ( + 86, + ( + - CASE 1 WHEN - + CAST ( + - 66 AS INTEGER ) / + 56 + 99 + + 13 THEN + 70 ELSE NULL END ) * - 1 + - + AVG ( DISTINCT - 97 ), - 37 ) ELSE - CAST ( NULL AS REAL ) END / 86, 10 * + 44 + + COUNT ( * ) col0
----
NULL
441

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6500
SELECT ALL + 3 * + + CAST( 92 AS SIGNED ) * 99 - + 31 + - MAX( - 0 )
----
27293

skipif mysql # not compatible
query I rowsort label-6500
SELECT ALL + 3 * + + CAST ( 92 AS INTEGER ) * 99 - + 31 + - MAX ( - 0 )
----
27293

query II rowsort
SELECT ALL + 75, 83 - 74 AS col0
----
75
9

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

skipif mysql # not compatible
query I rowsort label-6502
SELECT DISTINCT - 36 * + COUNT ( * ) + COUNT ( * ) AS col2
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6503
SELECT ALL + 17 AS col1, + CAST( - + 31 AS SIGNED ) AS col0
----
17
-31

skipif mysql # not compatible
query II rowsort label-6503
SELECT ALL + 17 AS col1, + CAST ( - + 31 AS INTEGER ) AS col0
----
17
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6504
SELECT - MAX( ALL + 66 ) * - + 23 * CAST( NULL AS SIGNED ) / - + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-6504
SELECT - MAX ( ALL + 66 ) * - + 23 * CAST ( NULL AS INTEGER ) / - + 27
----
NULL

query I rowsort
SELECT - 24 + - 55
----
-79

query I rowsort
SELECT - 30 * + 79 AS col0
----
-2370

onlyif mysql # aggregate syntax: 
query II rowsort label-6507
SELECT ALL + 7, + COUNT( ALL + - 70 ) * - - 36 AS col2
----
7
36

skipif mysql # not compatible
query II rowsort label-6507
SELECT ALL + 7, + COUNT ( ALL + - 70 ) * - - 36 AS col2
----
7
36

query I rowsort
SELECT - 65 * - 8 + - 91 AS col2
----
429

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6509
SELECT - ( - 84 ) DIV - MAX( DISTINCT + + 26 ) - - 25 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-6509
SELECT - ( - 84 ) / - MAX ( DISTINCT + + 26 ) - - 25 AS col0
----
22

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

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

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

query I rowsort
SELECT + 54 * + 30 * 59 - ( - - 39 ) AS col1
----
95541

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6514
SELECT - - ( NULLIF ( + 3, + SUM( - 24 ) * + MIN( DISTINCT - 34 ) + 59 / - AVG ( ALL + 10 ) ) ) * + 38 + - 97 + - - ( - 96 ) * + COUNT( * ) * 54
----
-5167

skipif mysql # not compatible
query I rowsort label-6514
SELECT - - ( NULLIF ( + 3, + SUM ( - 24 ) * + MIN ( DISTINCT - 34 ) + 59 / - AVG ( ALL + 10 ) ) ) * + 38 + - 97 + - - ( - 96 ) * + COUNT ( * ) * 54
----
-5167

onlyif mysql # aggregate syntax: 
query I rowsort label-6515
SELECT + - 82 * + + 8 + COUNT( * ) AS col2
----
-655

skipif mysql # not compatible
query I rowsort label-6515
SELECT + - 82 * + + 8 + COUNT ( * ) AS col2
----
-655

query I rowsort
SELECT - CASE - 70 WHEN - 77 * + 21 THEN + 40 END
----
NULL

query I rowsort
SELECT - - 42 + + - 67 - + 78 * - 43 * + - 48 AS col0
----
-161017

onlyif mysql # aggregate syntax: 
query I rowsort label-6518
SELECT - + COUNT( * ) * - + 3 - + - ( - 74 )
----
-71

skipif mysql # not compatible
query I rowsort label-6518
SELECT - + COUNT ( * ) * - + 3 - + - ( - 74 )
----
-71

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6519
SELECT - + 26 * - - 95 * + COUNT( * ) + - 62 * - 43 + + - 86 * 67 * - CASE - 47 WHEN - + 51 * COUNT( * ) - - 43 + + 49 * + 60 + AVG ( DISTINCT + 87 ) THEN + 9 + + - 31 ELSE - + CAST( + MAX( DISTINCT - - 53 ) AS DECIMAL ) + - 20 * - COUNT( * ) END + + CASE + 90 WHEN + + 27 * - ( 22 ) + 28 THEN NULL WHEN + NULLIF ( - - 30, - ( 79 ) ) + 67 THEN - 17 + + + NULLIF ( - - ( - 57 ), - 73 - - - 94 ) / - 95 * - 2 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6519
SELECT - + 26 * - - 95 * + COUNT ( * ) + - 62 * - 43 + + - 86 * 67 * - CASE - 47 WHEN - + 51 * COUNT ( * ) - - 43 + + 49 * + 60 + AVG ( DISTINCT + 87 ) THEN + 9 + + - 31 ELSE - + CAST ( + MAX ( DISTINCT - - 53 ) AS REAL ) + - 20 * - COUNT ( * ) END + + CASE + 90 WHEN + + 27 * - ( 22 ) + 28 THEN NULL WHEN + NULLIF ( - - 30, - ( 79 ) ) + 67 THEN - 17 + + + NULLIF ( - - ( - 57 ), - 73 - - - 94 ) / - 95 * - 2 END
----
NULL

query I rowsort
SELECT + + 62 - - 3 AS col1
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-6521
SELECT - 6, - 6 + - 58 * - COUNT( * ) AS col0
----
-6
52

skipif mysql # not compatible
query II rowsort label-6521
SELECT - 6, - 6 + - 58 * - COUNT ( * ) AS col0
----
-6
52

query II rowsort
SELECT ALL 29 AS col1, - 65 AS col0
----
29
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6523
SELECT ALL - 82 DIV - + SUM( DISTINCT - 81 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6523
SELECT ALL - 82 / - + SUM ( DISTINCT - 81 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6524
SELECT + CAST( - 20 AS SIGNED ) * - 69 + 9 - ( CAST( NULL AS SIGNED ) ) col1, 86 * ( + - 28 ) AS col1, + 7 + + CAST( NULL AS SIGNED ) + 65 AS col0
----
NULL
-2408
NULL

skipif mysql # not compatible
query III rowsort label-6524
SELECT + CAST ( - 20 AS INTEGER ) * - 69 + 9 - ( CAST ( NULL AS INTEGER ) ) col1, 86 * ( + - 28 ) AS col1, + 7 + + CAST ( NULL AS INTEGER ) + 65 AS col0
----
NULL
-2408
NULL

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

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

query I rowsort
SELECT ALL - + CASE - 35 WHEN 8 THEN + 51 END + + - 83 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6527
SELECT - - 99 + + 31 * + - 93 + CAST( + - NULLIF ( 37, 72 ) AS SIGNED ) - + 85
----
-2906

skipif mysql # not compatible
query I rowsort label-6527
SELECT - - 99 + + 31 * + - 93 + CAST ( + - NULLIF ( 37, 72 ) AS INTEGER ) - + 85
----
-2906

query I rowsort
SELECT DISTINCT 50 + + + 78
----
128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6529
SELECT + COUNT( * ) DIV 70 * + + 8 col1
----
0

skipif mysql # not compatible
query I rowsort label-6529
SELECT + COUNT ( * ) / 70 * + + 8 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6530
SELECT DISTINCT CASE - 10 WHEN - 89 THEN + 13 + COUNT( * ) ELSE NULL END + + ( - CAST( - CAST( - MAX( - 22 ) AS SIGNED ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6530
SELECT DISTINCT CASE - 10 WHEN - 89 THEN + 13 + COUNT ( * ) ELSE NULL END + + ( - CAST ( - CAST ( - MAX ( - 22 ) AS INTEGER ) AS INTEGER ) )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT + MIN( + 35 ) + - - 7 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-6532
SELECT + MIN ( + 35 ) + - - 7 AS col2
----
42

query I rowsort
SELECT ALL CASE - 3 WHEN - 36 * + 16 + 19 THEN - 29 * - 53 + + - 53 END + 64
----
NULL

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

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

query I rowsort
SELECT - 86 * + 58 + - 50
----
-5038

query I rowsort
SELECT - NULLIF ( + 42, 4 ) + + 70
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-6537
SELECT ALL 36 * COUNT( * ), - ( - - 8 ) AS col2
----
36
-8

skipif mysql # not compatible
query II rowsort label-6537
SELECT ALL 36 * COUNT ( * ), - ( - - 8 ) AS col2
----
36
-8

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6541
SELECT DISTINCT 8 * NULLIF ( - COUNT( * ), - COUNT( * ) ) * + 31 + - - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-6541
SELECT DISTINCT 8 * NULLIF ( - COUNT ( * ), - COUNT ( * ) ) * + 31 + - - 56
----
NULL

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

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

query I rowsort
SELECT ALL + 27 * + 4 * - 98
----
-10584

query I rowsort
SELECT - - ( + 6 ) * - ( 46 ) col0
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-6545
SELECT + NULLIF ( 90, 1 + COUNT( - - 81 ) ) + CASE - 91 WHEN 82 THEN COUNT( * ) * + 42 - + 94 - 66 ELSE 17 END AS col2
----
107

skipif mysql # not compatible
query I rowsort label-6545
SELECT + NULLIF ( 90, 1 + COUNT ( - - 81 ) ) + CASE - 91 WHEN 82 THEN COUNT ( * ) * + 42 - + 94 - 66 ELSE 17 END AS col2
----
107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6546
SELECT - 23 DIV - 46 * + - 50 * + 22 * 34 + COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-6546
SELECT - 23 / - 46 * + - 50 * + 22 * 34 + COUNT ( * ) col0
----
1

query II rowsort
SELECT - 92 * + 43 AS col1, - 7
----
-3956
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6548
SELECT DISTINCT - 44 DIV + COUNT( DISTINCT 67 )
----
-44

skipif mysql # not compatible
query I rowsort label-6548
SELECT DISTINCT - 44 / + COUNT ( DISTINCT 67 )
----
-44

query I rowsort
SELECT - COALESCE ( 17, + 75 * - 26 + - 67 ) * + 93 AS col1
----
-1581

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

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

query I rowsort
SELECT ALL 26 * - - 91 + 27
----
2393

query I rowsort
SELECT ALL + 59 * + - 82
----
-4838

query I rowsort
SELECT - 39 * - 29 AS col0
----
1131

onlyif mysql # aggregate syntax: 
query I rowsort label-6554
SELECT - 34 * - 30 + - 11 + 48 + - + 42 * - - ( + - NULLIF ( - COUNT( * ), - + COUNT( * ) ) ) + + + COUNT( * ) * ( 38 ) + - COUNT( + NULLIF ( - 28, + + ( + + 17 ) * - - ( + 17 ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6554
SELECT - 34 * - 30 + - 11 + 48 + - + 42 * - - ( + - NULLIF ( - COUNT ( * ), - + COUNT ( * ) ) ) + + + COUNT ( * ) * ( 38 ) + - COUNT ( + NULLIF ( - 28, + + ( + + 17 ) * - - ( + 17 ) ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6555
SELECT ALL 29 AS col0, ( - - ( + 56 ) ) + - COUNT( * )
----
29
55

skipif mysql # not compatible
query II rowsort label-6555
SELECT ALL 29 AS col0, ( - - ( + 56 ) ) + - COUNT ( * )
----
29
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6556
SELECT ALL - 73 + - - 15 * - COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-6556
SELECT ALL - 73 + - - 15 * - COUNT ( * )
----
-88

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6558
SELECT DISTINCT MIN( - + 23 ) + + 13
----
-10

skipif mysql # not compatible
query I rowsort label-6558
SELECT DISTINCT MIN ( - + 23 ) + + 13
----
-10

query I rowsort
SELECT ALL 55 * + + 46 AS col2
----
2530

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

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

query II rowsort
SELECT DISTINCT 49 AS col1, 58 AS col1
----
49
58

onlyif mysql # aggregate syntax: 
query II rowsort label-6562
SELECT 29 AS col0, 77 + MIN( - - 54 )
----
29
131

skipif mysql # not compatible
query II rowsort label-6562
SELECT 29 AS col0, 77 + MIN ( - - 54 )
----
29
131

query I rowsort
SELECT 27 * + 78 AS col2
----
2106

onlyif mysql # aggregate syntax: 
query II rowsort label-6564
SELECT 65 * - 47 * + + 45 AS col1, 2 * - + SUM( 76 ) AS col2
----
-137475
-152

skipif mysql # not compatible
query II rowsort label-6564
SELECT 65 * - 47 * + + 45 AS col1, 2 * - + SUM ( 76 ) AS col2
----
-137475
-152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6565
SELECT ALL 19 * - - COALESCE ( - 43, - 88 * + COUNT( * ) - - 5 + - - 85 + - - ( 65 ) * - + 17 * COUNT( * ) ) DIV + - 41 col0
----
19

skipif mysql # not compatible
query I rowsort label-6565
SELECT ALL 19 * - - COALESCE ( - 43, - 88 * + COUNT ( * ) - - 5 + - - 85 + - - ( 65 ) * - + 17 * COUNT ( * ) ) / + - 41 col0
----
19

query I rowsort
SELECT 72 + - 37 AS col1
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6567
SELECT ALL 95 * CASE - - 63 WHEN ( + 17 ) THEN 38 * + 88 WHEN + 46 THEN - CAST( + 68 AS SIGNED ) - - - 63 + 25 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6567
SELECT ALL 95 * CASE - - 63 WHEN ( + 17 ) THEN 38 * + 88 WHEN + 46 THEN - CAST ( + 68 AS INTEGER ) - - - 63 + 25 ELSE NULL END
----
NULL

query II rowsort
SELECT DISTINCT 12, 57 AS col0
----
12
57

query I rowsort
SELECT ALL 13 - + 15 AS col1
----
-2

query II rowsort
SELECT DISTINCT 66 AS col2, 73 AS col0
----
66
73

query I rowsort
SELECT DISTINCT 48 - 32
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-6572
SELECT DISTINCT - 33, 57 * - COUNT( * ) col2
----
-33
-57

skipif mysql # not compatible
query II rowsort label-6572
SELECT DISTINCT - 33, 57 * - COUNT ( * ) col2
----
-33
-57

query II rowsort
SELECT 72 col1, + 69
----
72
69

query II rowsort
SELECT DISTINCT - + 6 AS col2, - 74
----
-6
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-6575
SELECT NULLIF ( + MIN( 39 ), - ( + 96 ) ) * - + 91 col2, + 13 * + 46 * + + 9
----
-3549
5382

skipif mysql # not compatible
query II rowsort label-6575
SELECT NULLIF ( + MIN ( 39 ), - ( + 96 ) ) * - + 91 col2, + 13 * + 46 * + + 9
----
-3549
5382

onlyif mysql # DIV for integer division: 
query I rowsort label-6576
SELECT + ( 50 ) DIV - 46 + - - 26
----
25

skipif mysql # not compatible
query I rowsort label-6576
SELECT + ( 50 ) / - 46 + - - 26
----
25

query I rowsort
SELECT - 98 + - - 8
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6578
SELECT + 46, ( + - 87 ) DIV + - SUM( ALL - + 62 ) AS col2
----
46
-1

skipif mysql # not compatible
query II rowsort label-6578
SELECT + 46, ( + - 87 ) / + - SUM ( ALL - + 62 ) AS col2
----
46
-1

query I rowsort
SELECT + 20 * - + 14 + + + 29 + 90 AS col1
----
-161

query I rowsort
SELECT ALL 51 * 6
----
306

query II rowsort
SELECT ALL + - 16 + + 67 - 11, 80 AS col2
----
40
80

query I rowsort
SELECT ALL + + 91 + + 4 * - 88 AS col2
----
-261

onlyif mysql # aggregate syntax: 
query II rowsort label-6583
SELECT ALL - COUNT( * ) AS col1, + 66 + + CASE 9 WHEN 49 THEN + + 82 ELSE + - 3 * 75 * - 89 - + CASE + 57 WHEN 18 + + - 35 + + + 80 THEN + COUNT( * ) / CASE WHEN NOT - 24 BETWEEN NULL AND NULL THEN - 67 ELSE NULL END * - - 64 END * + - 60 + 7 END * - ( NULLIF ( + 98, - ( - 41 ) * + ( + + 25 ) / 6 ) )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-6583
SELECT ALL - COUNT ( * ) AS col1, + 66 + + CASE 9 WHEN 49 THEN + + 82 ELSE + - 3 * 75 * - 89 - + CASE + 57 WHEN 18 + + - 35 + + + 80 THEN + COUNT ( * ) / CASE WHEN NOT - 24 BETWEEN NULL AND NULL THEN - 67 ELSE NULL END * - - 64 END * + - 60 + 7 END * - ( NULLIF ( + 98, - ( - 41 ) * + ( + + 25 ) / 6 ) )
----
-1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6584
SELECT - MIN( ALL + 94 ) DIV + - 60 + + 21 AS col2, COUNT( * ) AS col0
----
22
1

skipif mysql # not compatible
query II rowsort label-6584
SELECT - MIN ( ALL + 94 ) / + - 60 + + 21 AS col2, COUNT ( * ) AS col0
----
22
1

onlyif mysql # aggregate syntax: 
query III rowsort label-6585
SELECT DISTINCT 26 + - ( - + 54 ), + 46 AS col2, + + ( 98 ) + + COUNT( * ) + - - ( + 83 ) * - 21 AS col2
----
80
46
-1644

skipif mysql # not compatible
query III rowsort label-6585
SELECT DISTINCT 26 + - ( - + 54 ), + 46 AS col2, + + ( 98 ) + + COUNT ( * ) + - - ( + 83 ) * - 21 AS col2
----
80
46
-1644

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

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

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

query I rowsort
SELECT 21 * + 52 AS col0
----
1092

onlyif mysql # DIV for integer division: 
query I rowsort label-6589
SELECT ALL 97 DIV 41 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6589
SELECT ALL 97 / 41 AS col2
----
2

onlyif mysql # DIV for integer division: 
query II rowsort label-6590
SELECT 27 DIV - 19 col0, + 66 + - - 9
----
-1
75

skipif mysql # not compatible
query II rowsort label-6590
SELECT 27 / - 19 col0, + 66 + - - 9
----
-1
75

query I rowsort
SELECT ALL + 14 * - 51
----
-714

query I rowsort
SELECT ALL + ( 69 ) - - + 10 AS col2
----
79

query I rowsort
SELECT DISTINCT + 97 * - + 8 AS col1
----
-776

query I rowsort
SELECT ALL - 42 - 59 AS col1
----
-101

query I rowsort
SELECT 27 + - 61 * 27 AS col1
----
-1620

onlyif mysql # aggregate syntax: 
query I rowsort label-6596
SELECT MIN( 82 ) - - + 19
----
101

skipif mysql # not compatible
query I rowsort label-6596
SELECT MIN ( 82 ) - - + 19
----
101

query II rowsort
SELECT 36 + 47 AS col2, + 84 AS col1
----
83
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6598
SELECT 46 + COUNT( * ) - + 11 col0
----
36

skipif mysql # not compatible
query I rowsort label-6598
SELECT 46 + COUNT ( * ) - + 11 col0
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-6599
SELECT 52 + - + COUNT( * ) AS col1, 55 AS col2
----
51
55

skipif mysql # not compatible
query II rowsort label-6599
SELECT 52 + - + COUNT ( * ) AS col1, 55 AS col2
----
51
55

query I rowsort
SELECT DISTINCT - 7 * - 3
----
21

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6602
SELECT DISTINCT - 62 DIV + MAX( DISTINCT - 30 ) col0
----
2

skipif mysql # not compatible
query I rowsort label-6602
SELECT DISTINCT - 62 / + MAX ( DISTINCT - 30 ) col0
----
2

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

skipif mysql # not compatible
query I rowsort label-6603
SELECT 55 / - CAST ( + COUNT ( * ) AS INTEGER )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6604
SELECT 90 + - NULLIF ( SUM( + 52 ), + + 41 + - 64 ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-6604
SELECT 90 + - NULLIF ( SUM ( + 52 ), + + 41 + - 64 ) AS col0
----
38

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6606
SELECT ALL - 69 * - CASE 19 WHEN SUM( + - 86 ) * - 96 THEN NULL ELSE + CAST( 43 AS SIGNED ) * + 7 END + 67 * + 43 AS col1
----
23650

skipif mysql # not compatible
query I rowsort label-6606
SELECT ALL - 69 * - CASE 19 WHEN SUM ( + - 86 ) * - 96 THEN NULL ELSE + CAST ( 43 AS INTEGER ) * + 7 END + 67 * + 43 AS col1
----
23650

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

query I rowsort
SELECT ALL + ( + + 69 ) * + - 47 + - + 93 + + - 89
----
-3425

onlyif mysql # aggregate syntax: 
query II rowsort label-6609
SELECT 58 + - 72 AS col1, + COUNT( * )
----
-14
1

skipif mysql # not compatible
query II rowsort label-6609
SELECT 58 + - 72 AS col1, + COUNT ( * )
----
-14
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6610
SELECT ALL + + ( - 23 ) * - - CAST( - 34 AS SIGNED ) / - MAX( ALL + 91 ) + + COUNT( * ) + + - 46 + 96 * - 23 * - 5 * - - 14 + - + CAST( NULL AS SIGNED ) + + AVG ( - - 76 ) * + + 73 * COUNT( + + 82 ) * - 61 * 65 - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-6610
SELECT ALL + + ( - 23 ) * - - CAST ( - 34 AS INTEGER ) / - MAX ( ALL + 91 ) + + COUNT ( * ) + + - 46 + 96 * - 23 * - 5 * - - 14 + - + CAST ( NULL AS INTEGER ) + + AVG ( - - 76 ) * + + 73 * COUNT ( + + 82 ) * - 61 * 65 - 97
----
NULL

query I rowsort
SELECT - AVG ( 51 ) * 28 + + + 67 - - CASE AVG ( - + 55 ) WHEN - 60 THEN + 37 WHEN - + 83 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6612
SELECT ALL 72 * - COALESCE ( - SUM( DISTINCT - 47 ), 3 * + + 70 DIV + 82 * 31 + 48 * 77, 93 * - + 37 ) + + 82 + ( + 49 )
----
-3253

skipif mysql # not compatible
query I rowsort label-6612
SELECT ALL 72 * - COALESCE ( - SUM ( DISTINCT - 47 ), 3 * + + 70 / + 82 * 31 + 48 * 77, 93 * - + 37 ) + + 82 + ( + 49 )
----
-3253

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6613
SELECT 14 / - 39 / - CAST( NULL AS SIGNED ) + 81 + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-6613
SELECT 14 / - 39 / - CAST ( NULL AS INTEGER ) + 81 + 32
----
NULL

query I rowsort
SELECT 14 + - + 75 + - 72
----
-133

query I rowsort
SELECT + 12 * - 18 AS col1
----
-216

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

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

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

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

query I rowsort
SELECT DISTINCT 91 - - 9
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6619
SELECT DISTINCT + 10 - + + 26 * - 80 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6619
SELECT DISTINCT + 10 - + + 26 * - 80 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6620
SELECT - 38 * COUNT( * ) * 97
----
-3686

skipif mysql # not compatible
query I rowsort label-6620
SELECT - 38 * COUNT ( * ) * 97
----
-3686

query I rowsort
SELECT + 8 - + - ( - 16 )
----
-8

query I rowsort
SELECT + 81 * 18 + COALESCE ( - 20, + + 30 + - 18 ) * - 56 - - + ( - + 16 ) - - 76 + 71 AS col2
----
2709

query I rowsort
SELECT + 2 * - 29 AS col2
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6624
SELECT - COUNT( * ) + - 15 DIV + + ( 31 )
----
-1

skipif mysql # not compatible
query I rowsort label-6624
SELECT - COUNT ( * ) + - 15 / + + ( 31 )
----
-1

query I rowsort
SELECT + 78 * + 72 * - 46 AS col0
----
-258336

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6626
SELECT - COUNT( ALL 6 ) DIV + 28 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6626
SELECT - COUNT ( ALL 6 ) / + 28 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6627
SELECT + 60 - + ( MIN( - + COALESCE ( + ( + 89 ), 45 + + + 97 ) ) )
----
149

skipif mysql # not compatible
query I rowsort label-6627
SELECT + 60 - + ( MIN ( - + COALESCE ( + ( + 89 ), 45 + + + 97 ) ) )
----
149

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6628
SELECT DISTINCT - 76 * + COUNT( * ) DIV COUNT( * ) * + + 52
----
-3952

skipif mysql # not compatible
query I rowsort label-6628
SELECT DISTINCT - 76 * + COUNT ( * ) / COUNT ( * ) * + + 52
----
-3952

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

query I rowsort
SELECT ALL - 58 + + 90 AS col2
----
32

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

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

query I rowsort
SELECT ALL - 49 * + 48
----
-2352

query I rowsort
SELECT ALL + 85 + 24
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-6634
SELECT DISTINCT + 4 + COUNT( * ) * - 43 col2
----
-39

skipif mysql # not compatible
query I rowsort label-6634
SELECT DISTINCT + 4 + COUNT ( * ) * - 43 col2
----
-39

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6636
SELECT DISTINCT - 36 DIV COUNT( ALL 40 ) + - COUNT( * ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-6636
SELECT DISTINCT - 36 / COUNT ( ALL 40 ) + - COUNT ( * ) AS col2
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-6637
SELECT - 34 DIV - 30
----
1

skipif mysql # not compatible
query I rowsort label-6637
SELECT - 34 / - 30
----
1

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

skipif mysql # not compatible
query I rowsort label-6638
SELECT ALL + COUNT ( * ) / - 21
----
0

query I rowsort
SELECT ALL - 42 * 57 + + 34 * 72
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6640
SELECT 23 DIV + CASE COUNT( * ) WHEN + COUNT( * ) * + 44 THEN NULL ELSE - NULLIF ( 72, 20 ) * 26 END + + MAX( DISTINCT 77 )
----
77

skipif mysql # not compatible
query I rowsort label-6640
SELECT 23 / + CASE COUNT ( * ) WHEN + COUNT ( * ) * + 44 THEN NULL ELSE - NULLIF ( 72, 20 ) * 26 END + + MAX ( DISTINCT 77 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6641
SELECT ALL + ( + COUNT( 89 ) ) * + SUM( ALL 77 + + 15 )
----
92

skipif mysql # not compatible
query I rowsort label-6641
SELECT ALL + ( + COUNT ( 89 ) ) * + SUM ( ALL 77 + + 15 )
----
92

query I rowsort
SELECT - 98 + + 29 * 3 AS col0
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-6643
SELECT + 4 DIV 42 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6643
SELECT + 4 / 42 AS col2
----
0

query I rowsort
SELECT ALL COALESCE ( 80, 81 + 87 ) * 36 AS col1
----
2880

query I rowsort
SELECT - 16 * - 5 AS col2
----
80

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

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

query I rowsort
SELECT DISTINCT - 32 * ( - 27 ) - 99
----
765

query I rowsort
SELECT + 44 + + 73
----
117

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

skipif mysql # not compatible
query I rowsort label-6649
SELECT DISTINCT + CAST ( 41 AS INTEGER ) AS col1
----
41

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

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

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

skipif mysql # not compatible
query I rowsort label-6651
SELECT + MAX ( + 98 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6652
SELECT + MAX( ALL 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6652
SELECT + MAX ( ALL 0 ) AS col0
----
0

query I rowsort
SELECT 61 * - 81 + - ( 47 )
----
-4988

query I rowsort
SELECT + 14 * 90 col1
----
1260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6655
SELECT CASE + COUNT( * ) WHEN - CASE + 23 WHEN + 36 THEN NULL WHEN + 70 THEN ( + CASE 25 WHEN 92 THEN NULL WHEN 54 * + 57 THEN + MAX( DISTINCT - 52 ) WHEN - NULLIF ( - COUNT( DISTINCT 14 ), + COALESCE ( + MIN( ALL - CAST( + 22 AS SIGNED ) ), - 84 ) * - 55 + - COUNT( ALL 46 + + 16 ) / 28 ) THEN - 93 WHEN + 2 THEN NULL ELSE - ( 21 ) END ) * COUNT( * ) WHEN + 2 + 97 / + 75 THEN 15 END THEN + 93 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6655
SELECT CASE + COUNT ( * ) WHEN - CASE + 23 WHEN + 36 THEN NULL WHEN + 70 THEN ( + CASE 25 WHEN 92 THEN NULL WHEN 54 * + 57 THEN + MAX ( DISTINCT - 52 ) WHEN - NULLIF ( - COUNT ( DISTINCT 14 ), + COALESCE ( + MIN ( ALL - CAST ( + 22 AS INTEGER ) ), - 84 ) * - 55 + - COUNT ( ALL 46 + + 16 ) / 28 ) THEN - 93 WHEN + 2 THEN NULL ELSE - ( 21 ) END ) * COUNT ( * ) WHEN + 2 + 97 / + 75 THEN 15 END THEN + 93 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6656
SELECT + CAST( - CASE + COUNT( * ) WHEN + 9 * - 89 - 45 THEN + 96 ELSE 15 + - NULLIF ( ( + 78 ) + CASE - 42 WHEN + ( 55 ) + 30 THEN + COUNT( * ) END, + 43 ) * + COUNT( * ) END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6656
SELECT + CAST ( - CASE + COUNT ( * ) WHEN + 9 * - 89 - 45 THEN + 96 ELSE 15 + - NULLIF ( ( + 78 ) + CASE - 42 WHEN + ( 55 ) + 30 THEN + COUNT ( * ) END, + 43 ) * + COUNT ( * ) END AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 73 * + 79
----
5767

query I rowsort
SELECT + 78 * 70
----
5460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6659
SELECT DISTINCT COALESCE ( 81, - MIN( ALL ( CAST( - 1 AS SIGNED ) ) ) * - 47 ) DIV NULLIF ( ( 5 ), NULLIF ( - COUNT( * ), 9 ) * 26 ) col2
----
16

skipif mysql # not compatible
query I rowsort label-6659
SELECT DISTINCT COALESCE ( 81, - MIN ( ALL ( CAST ( - 1 AS INTEGER ) ) ) * - 47 ) / NULLIF ( ( 5 ), NULLIF ( - COUNT ( * ), 9 ) * 26 ) col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6660
SELECT DISTINCT NULLIF ( 26, + 30 * + 10 + 76 * + ( - COUNT( * ) ) )
----
26

skipif mysql # not compatible
query I rowsort label-6660
SELECT DISTINCT NULLIF ( 26, + 30 * + 10 + 76 * + ( - COUNT ( * ) ) )
----
26

query I rowsort
SELECT + COALESCE ( - 9, 33 - - 10, 51 * ( 53 * - 41 ) ) * 55
----
-495

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6662
SELECT ALL 30 + + ( + NULLIF ( + COUNT( * ), + 82 ) ) DIV 73
----
30

skipif mysql # not compatible
query I rowsort label-6662
SELECT ALL 30 + + ( + NULLIF ( + COUNT ( * ), + 82 ) ) / 73
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-6663
SELECT + 36 + COALESCE ( 4, - 73 DIV + 55 + 51 ) * - 35
----
-104

skipif mysql # not compatible
query I rowsort label-6663
SELECT + 36 + COALESCE ( 4, - 73 / + 55 + 51 ) * - 35
----
-104

query I rowsort
SELECT - 42 - + 68 AS col2
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-6665
SELECT + COALESCE ( - ( 27 ), + COUNT( * ), 74 ) + - 35
----
-62

skipif mysql # not compatible
query I rowsort label-6665
SELECT + COALESCE ( - ( 27 ), + COUNT ( * ), 74 ) + - 35
----
-62

query I rowsort
SELECT - 18 * - 20 AS col2
----
360

query I rowsort
SELECT ALL NULLIF ( - 11, 50 * - 32 + ( - 29 ) ) AS col2
----
-11

query I rowsort
SELECT + 89 + - 1 AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6669
SELECT + COUNT( ALL 52 ) + + 31 * 33
----
1024

skipif mysql # not compatible
query I rowsort label-6669
SELECT + COUNT ( ALL 52 ) + + 31 * 33
----
1024

onlyif mysql # aggregate syntax: 
query I rowsort label-6670
SELECT + MAX( ALL - 94 ) + 0 col2
----
-94

skipif mysql # not compatible
query I rowsort label-6670
SELECT + MAX ( ALL - 94 ) + 0 col2
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-6671
SELECT ALL - 16 DIV + 31 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6671
SELECT ALL - 16 / + 31 AS col0
----
0

query I rowsort
SELECT ALL - + 9 * + 46 col0
----
-414

onlyif mysql # aggregate syntax: 
query I rowsort label-6673
SELECT - + 47 + + COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-6673
SELECT - + 47 + + COUNT ( * )
----
-46

query I rowsort
SELECT ALL - 36 * + 46
----
-1656

query I rowsort
SELECT - - 72 + + 96 AS col0
----
168

query I rowsort
SELECT - - ( COALESCE ( 61, 63, + 47 ) )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6677
SELECT - + 97 + + MIN( DISTINCT + 91 )
----
-6

skipif mysql # not compatible
query I rowsort label-6677
SELECT - + 97 + + MIN ( DISTINCT + 91 )
----
-6

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

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

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

skipif mysql # not compatible
query I rowsort label-6679
SELECT + 37 + COUNT ( * ) AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6680
SELECT + - CASE MAX( - ( 52 ) ) WHEN + COUNT( * ) * COUNT( * ) - COUNT( ALL + 75 ) THEN + 75 + - 70 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6680
SELECT + - CASE MAX ( - ( 52 ) ) WHEN + COUNT ( * ) * COUNT ( * ) - COUNT ( ALL + 75 ) THEN + 75 + - 70 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6681
SELECT - 13 * COUNT( * ) + + 91 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-6681
SELECT - 13 * COUNT ( * ) + + 91 AS col0
----
78

query I rowsort
SELECT ALL - - NULLIF ( 16, 12 ) AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6683
SELECT CASE NULLIF ( 92, 78 ) WHEN 33 THEN CASE 73 WHEN 44 + MAX( 61 ) THEN 16 / 5 WHEN - COUNT( 26 ) THEN 14 ELSE + CASE 86 WHEN + 95 THEN 14 END * 93 - - 27 END / 7 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6683
SELECT CASE NULLIF ( 92, 78 ) WHEN 33 THEN CASE 73 WHEN 44 + MAX ( 61 ) THEN 16 / 5 WHEN - COUNT ( 26 ) THEN 14 ELSE + CASE 86 WHEN + 95 THEN 14 END * 93 - - 27 END / 7 END
----
NULL

query I rowsort
SELECT ALL 64 * 42 AS col0
----
2688

query I rowsort
SELECT - 3 * 20
----
-60

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

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

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

skipif mysql # not compatible
query I rowsort label-6687
SELECT ALL + - COUNT ( * ) * - 66 AS col0
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6688
SELECT ( - 56 ) * - CASE + 36 / CAST( - 37 AS SIGNED ) WHEN COUNT( * ) THEN - COUNT( * ) * COUNT( * ) WHEN - 71 + - CAST( 60 AS DECIMAL ) THEN + 31 + - 29 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6688
SELECT ( - 56 ) * - CASE + 36 / CAST ( - 37 AS INTEGER ) WHEN COUNT ( * ) THEN - COUNT ( * ) * COUNT ( * ) WHEN - 71 + - CAST ( 60 AS REAL ) THEN + 31 + - 29 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6689
SELECT + COUNT( 65 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6689
SELECT + COUNT ( 65 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6690
SELECT + NULLIF ( 30, + COUNT( * ) )
----
30

skipif mysql # not compatible
query I rowsort label-6690
SELECT + NULLIF ( 30, + COUNT ( * ) )
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-6691
SELECT ALL + 65 DIV + 48 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6691
SELECT ALL + 65 / + 48 AS col1
----
1

query I rowsort
SELECT 37 * 80 col2
----
2960

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

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

query I rowsort
SELECT DISTINCT + 38 * + 32 * - 7
----
-8512

onlyif mysql # DIV for integer division: 
query I rowsort label-6695
SELECT ALL + ( + + 73 ) DIV 60 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6695
SELECT ALL + ( + + 73 ) / 60 AS col2
----
1

query I rowsort
SELECT DISTINCT 32 * + 28 * 95
----
85120

query I rowsort
SELECT ALL 90 + + 79 AS col2
----
169

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6698
SELECT + CAST( - 49 AS SIGNED ) * 54 + 38 * - 24
----
-3558

skipif mysql # not compatible
query I rowsort label-6698
SELECT + CAST ( - 49 AS INTEGER ) * 54 + 38 * - 24
----
-3558

query I rowsort
SELECT DISTINCT + 48 * - 59 AS col2
----
-2832

query I rowsort
SELECT 72 + + - 32
----
40

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6702
SELECT ALL - 21 + - + COUNT( * ) * + 46
----
-67

skipif mysql # not compatible
query I rowsort label-6702
SELECT ALL - 21 + - + COUNT ( * ) * + 46
----
-67

query I rowsort
SELECT ALL 31 + + 44 + + 2 AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6704
SELECT 61 * MAX( 66 ) AS col2
----
4026

skipif mysql # not compatible
query I rowsort label-6704
SELECT 61 * MAX ( 66 ) AS col2
----
4026

query I rowsort
SELECT CASE ( - 53 ) WHEN - 47 THEN 60 ELSE + 48 END + - 56
----
-8

query I rowsort
SELECT 21 * 10 + 2 * + 41
----
292

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

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

query I rowsort
SELECT ALL + 58 + 44
----
102

query I rowsort
SELECT DISTINCT - 3 + 95
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6710
SELECT DISTINCT COUNT( * ) * 69 AS col1
----
69

skipif mysql # not compatible
query I rowsort label-6710
SELECT DISTINCT COUNT ( * ) * 69 AS col1
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6711
SELECT ALL 77 + + CASE - 59 WHEN CAST( 78 AS SIGNED ) THEN ( - 42 ) ELSE COUNT( * ) * - 37 END * CASE + 55 - 19 WHEN - 96 THEN ( 25 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6711
SELECT ALL 77 + + CASE - 59 WHEN CAST ( 78 AS INTEGER ) THEN ( - 42 ) ELSE COUNT ( * ) * - 37 END * CASE + 55 - 19 WHEN - 96 THEN ( 25 ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6712
SELECT DISTINCT COUNT( * ) + + 6 DIV - ( + 37 )
----
1

skipif mysql # not compatible
query I rowsort label-6712
SELECT DISTINCT COUNT ( * ) + + 6 / - ( + 37 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6713
SELECT - 76 * + SUM( 79 ) * + 63 AS col2
----
-378252

skipif mysql # not compatible
query I rowsort label-6713
SELECT - 76 * + SUM ( 79 ) * + 63 AS col2
----
-378252

query I rowsort
SELECT ALL - 87 * + - ( - 21 )
----
-1827

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6715
SELECT 33 DIV - SUM( 93 ) * 6
----
0

skipif mysql # not compatible
query I rowsort label-6715
SELECT 33 / - SUM ( 93 ) * 6
----
0

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

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

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

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

query I rowsort
SELECT 81 * + + 93
----
7533

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6719
SELECT DISTINCT - 38 DIV - CAST( 66 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-6719
SELECT DISTINCT - 38 / - CAST ( 66 AS INTEGER )
----
0

query I rowsort
SELECT ALL - COALESCE ( - - 36, 10 + 77 ) AS col2
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6721
SELECT ALL + 11 / CAST( NULL AS SIGNED ) * + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-6721
SELECT ALL + 11 / CAST ( NULL AS INTEGER ) * + 8
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6722
SELECT NULLIF ( COUNT( * ), + 28 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6722
SELECT NULLIF ( COUNT ( * ), + 28 ) AS col0
----
1

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

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

query I rowsort
SELECT - 89 * 93 + 41 col0
----
-8236

query I rowsort
SELECT 81 * 94 AS col0
----
7614

onlyif mysql # aggregate syntax: 
query I rowsort label-6726
SELECT + CASE + + 56 WHEN COUNT( * ) + + 51 THEN NULL WHEN - 20 + 29 THEN 61 / 89 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6726
SELECT + CASE + + 56 WHEN COUNT ( * ) + + 51 THEN NULL WHEN - 20 + 29 THEN 61 / 89 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6727
SELECT ( COUNT( * ) ) + + COUNT( * ) DIV - COALESCE ( - 56, 30 - 28 )
----
1

skipif mysql # not compatible
query I rowsort label-6727
SELECT ( COUNT ( * ) ) + + COUNT ( * ) / - COALESCE ( - 56, 30 - 28 )
----
1

query II rowsort
SELECT + 78 col0, - 15 AS col2
----
78
-15

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6730
SELECT CAST( NULL AS SIGNED ) * - - 64 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6730
SELECT CAST ( NULL AS INTEGER ) * - - 64 * - COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + 52 + - 87
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6732
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - 25 * + - ( NULLIF ( - 92, 70 ) ) * - ( 2 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6732
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - 25 * + - ( NULLIF ( - 92, 70 ) ) * - ( 2 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6733
SELECT ALL - 88 + + + CAST( - 34 AS SIGNED ) - + 5 DIV + 20 AS col1
----
-122

skipif mysql # not compatible
query I rowsort label-6733
SELECT ALL - 88 + + + CAST ( - 34 AS INTEGER ) - + 5 / + 20 AS col1
----
-122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6734
SELECT ALL - COALESCE ( - 35, + + CAST( - 95 AS SIGNED ) ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-6734
SELECT ALL - COALESCE ( - 35, + + CAST ( - 95 AS INTEGER ) ) AS col0
----
35

query I rowsort
SELECT DISTINCT - 7 + 85 col0
----
78

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6736
SELECT 75 + + - CAST( NULL AS DECIMAL ) + + + COUNT( * ) + 89 / 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6736
SELECT 75 + + - CAST ( NULL AS REAL ) + + + COUNT ( * ) + 89 / 33 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6737
SELECT ALL - COUNT( * ), - COALESCE ( - 4, 46 + - 73 ) AS col1
----
-1
4

skipif mysql # not compatible
query II rowsort label-6737
SELECT ALL - COUNT ( * ), - COALESCE ( - 4, 46 + - 73 ) AS col1
----
-1
4

query II rowsort
SELECT 27, 78 col0
----
27
78

query I rowsort
SELECT ALL - 89 + - 32
----
-121

query I rowsort
SELECT ALL + 34 + - 24
----
10

query I rowsort
SELECT 62 * - 35 * ( 91 ) AS col1
----
-197470

onlyif mysql # aggregate syntax: 
query I rowsort label-6742
SELECT DISTINCT - 17 + + 72 - COUNT( * ) * - 69 AS col1
----
124

skipif mysql # not compatible
query I rowsort label-6742
SELECT DISTINCT - 17 + + 72 - COUNT ( * ) * - 69 AS col1
----
124

query I rowsort
SELECT ALL - NULLIF ( - + 60, - + ( 35 ) ) AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6744
SELECT ALL - MIN( ALL + 58 ) * - + 98 * 56 AS col2
----
318304

skipif mysql # not compatible
query I rowsort label-6744
SELECT ALL - MIN ( ALL + 58 ) * - + 98 * 56 AS col2
----
318304

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6745
SELECT ALL - 90 + - MAX( 2 ) DIV - 24 AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-6745
SELECT ALL - 90 + - MAX ( 2 ) / - 24 AS col2
----
-90

query I rowsort
SELECT DISTINCT - 17 * + 26
----
-442

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

query I rowsort
SELECT DISTINCT + 45 * + 1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6749
SELECT - 22 + + COALESCE ( ( 12 ), - COUNT( * ) ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-6749
SELECT - 22 + + COALESCE ( ( 12 ), - COUNT ( * ) ) AS col2
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-6750
SELECT 17 col1, + SUM( DISTINCT 53 ) * 33
----
17
1749

skipif mysql # not compatible
query II rowsort label-6750
SELECT 17 col1, + SUM ( DISTINCT 53 ) * 33
----
17
1749

query I rowsort
SELECT - 35 + + 55 - - 78 AS col0
----
98

query I rowsort
SELECT + - 39 - - + 64 AS col1
----
25

query I rowsort
SELECT + 10 * + 5 AS col0
----
50

query I rowsort
SELECT + + 64 - - - CASE - 40 WHEN - NULLIF ( 68, + ( 89 ) + + ( + 49 ) * 97 ) THEN NULL WHEN + AVG ( 62 ) + 52 THEN - 46 END
----
NULL

query II rowsort
SELECT DISTINCT 27, + 31 col0
----
27
31

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

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

query I rowsort
SELECT ALL + 9 * - - 41
----
369

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

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

query I rowsort
SELECT ALL 24 * - 98
----
-2352

onlyif mysql # aggregate syntax: 
query I rowsort label-6760
SELECT - + SUM( - - 17 ) * - 35 * 26
----
15470

skipif mysql # not compatible
query I rowsort label-6760
SELECT - + SUM ( - - 17 ) * - 35 * 26
----
15470

query I rowsort
SELECT ALL 82 * 56 * + - 63
----
-289296

onlyif mysql # aggregate syntax: 
query I rowsort label-6762
SELECT DISTINCT - COUNT( DISTINCT + 74 )
----
-1

skipif mysql # not compatible
query I rowsort label-6762
SELECT DISTINCT - COUNT ( DISTINCT + 74 )
----
-1

query II rowsort
SELECT + 56 AS col2, 79 + - 40 AS col0
----
56
39

query II rowsort
SELECT 77, + 52 AS col2
----
77
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6765
SELECT + CAST( 82 AS SIGNED ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-6765
SELECT + CAST ( 82 AS INTEGER ) AS col0
----
82

query I rowsort
SELECT ALL CASE + + 24 WHEN 40 * ( + 85 ) + + 10 THEN + 31 / 47 END * 35 + - 67
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6767
SELECT ( - - 84 ), COALESCE ( - - CASE 42 WHEN + 28 THEN NULL WHEN + 30 THEN - 82 * 99 WHEN - ( 94 ) * ( - 62 ) THEN NULL END, + CAST( NULL AS SIGNED ) DIV - 86, COUNT( * ) ) AS col1
----
84
1

skipif mysql # not compatible
query II rowsort label-6767
SELECT ( - - 84 ), COALESCE ( - - CASE 42 WHEN + 28 THEN NULL WHEN + 30 THEN - 82 * 99 WHEN - ( 94 ) * ( - 62 ) THEN NULL END, + CAST ( NULL AS INTEGER ) / - 86, COUNT ( * ) ) AS col1
----
84
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6768
SELECT ALL 83 * + ( + + 60 ) + CAST( COUNT( * ) AS SIGNED ) AS col1
----
4981

skipif mysql # not compatible
query I rowsort label-6768
SELECT ALL 83 * + ( + + 60 ) + CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
4981

query I rowsort
SELECT + 56 * + - 5
----
-280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6770
SELECT ALL - 93 * - CAST( - 50 AS SIGNED ) AS col1
----
-4650

skipif mysql # not compatible
query I rowsort label-6770
SELECT ALL - 93 * - CAST ( - 50 AS INTEGER ) AS col1
----
-4650

onlyif mysql # DIV for integer division: 
query I rowsort label-6771
SELECT + 73 DIV - ( - 5 ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-6771
SELECT + 73 / - ( - 5 ) AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6772
SELECT DISTINCT 46 * 25 + COUNT( * ) col1
----
1151

skipif mysql # not compatible
query I rowsort label-6772
SELECT DISTINCT 46 * 25 + COUNT ( * ) col1
----
1151

onlyif mysql # aggregate syntax: 
query I rowsort label-6773
SELECT + ( + CASE - 88 WHEN + + NULLIF ( + 92, + ( 85 ) + - 14 ) * + COALESCE ( MIN( ALL 74 ) + COUNT( * ) * 18, + 15 / + COUNT( * ) ) THEN - 46 WHEN 23 * 78 THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6773
SELECT + ( + CASE - 88 WHEN + + NULLIF ( + 92, + ( 85 ) + - 14 ) * + COALESCE ( MIN ( ALL 74 ) + COUNT ( * ) * 18, + 15 / + COUNT ( * ) ) THEN - 46 WHEN 23 * 78 THEN NULL ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6774
SELECT + 20 - - 10 + - + MIN( + + 97 ) - - 13 * 79
----
960

skipif mysql # not compatible
query I rowsort label-6774
SELECT + 20 - - 10 + - + MIN ( + + 97 ) - - 13 * 79
----
960

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

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

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

skipif mysql # not compatible
query I rowsort label-6776
SELECT + ( + 70 ) * - COUNT ( * ) + 87 * 59 AS col2
----
5063

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

skipif mysql # not compatible
query I rowsort label-6777
SELECT ALL 7 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6778
SELECT CASE - 44 WHEN 14 THEN 80 * + SUM( ALL - 43 ) WHEN + COUNT( 63 ) THEN + 87 * - 12 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6778
SELECT CASE - 44 WHEN 14 THEN 80 * + SUM ( ALL - 43 ) WHEN + COUNT ( 63 ) THEN + 87 * - 12 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6779
SELECT COALESCE ( + 59, - - COUNT( * ) ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-6779
SELECT COALESCE ( + 59, - - COUNT ( * ) ) AS col0
----
59

query I rowsort
SELECT DISTINCT - 12 * 37 AS col1
----
-444

query I rowsort
SELECT ALL - 43 * 50 + - ( 26 )
----
-2176

query I rowsort
SELECT ALL + 59 * - 94 + 0 col0
----
-5546

onlyif mysql # aggregate syntax: 
query I rowsort label-6783
SELECT ALL 71 * ( + + COALESCE ( + - 47, COUNT( * ) * 15 ) )
----
-3337

skipif mysql # not compatible
query I rowsort label-6783
SELECT ALL 71 * ( + + COALESCE ( + - 47, COUNT ( * ) * 15 ) )
----
-3337

query I rowsort
SELECT - 42 - 67 AS col1
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-6785
SELECT ALL + CASE - + NULLIF ( 88, - + 99 / + 10 + - COUNT( * ) ) WHEN + 1 THEN 70 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6785
SELECT ALL + CASE - + NULLIF ( 88, - + 99 / + 10 + - COUNT ( * ) ) WHEN + 1 THEN 70 END
----
NULL

query I rowsort
SELECT + 30 * - - 26 * + 54 AS col0
----
42120

query I rowsort
SELECT DISTINCT - 32 * - + 67 - + 84 col0
----
2060

query I rowsort
SELECT DISTINCT + CASE 28 WHEN - 43 + - 32 THEN NULL WHEN + 11 THEN 41 * + 65 END AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6790
SELECT - - 99 * 41 * - COUNT( * )
----
-4059

skipif mysql # not compatible
query I rowsort label-6790
SELECT - - 99 * 41 * - COUNT ( * )
----
-4059

query I rowsort
SELECT - - 94 + 77 * + 66 * + 41
----
208456

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

query I rowsort
SELECT DISTINCT - 55 * 19
----
-1045

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6794
SELECT - - COUNT( * ) DIV 37 AS col1, 9
----
0
9

skipif mysql # not compatible
query II rowsort label-6794
SELECT - - COUNT ( * ) / 37 AS col1, 9
----
0
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT ALL - CASE - COUNT( DISTINCT + 78 ) WHEN - 73 + 13 THEN + 43 * + 97 WHEN - 51 THEN NULL END * 87
----
NULL

skipif mysql # not compatible
query I rowsort label-6795
SELECT ALL - CASE - COUNT ( DISTINCT + 78 ) WHEN - 73 + 13 THEN + 43 * + 97 WHEN - 51 THEN NULL END * 87
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6796
SELECT - 27 DIV - 39 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6796
SELECT - 27 / - 39 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6797
SELECT - CASE 8 WHEN 11 THEN + 81 WHEN COUNT( * ) - 60 * 13 THEN NULL END * AVG ( 22 * + 54 - + 33 * 96 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6797
SELECT - CASE 8 WHEN 11 THEN + 81 WHEN COUNT ( * ) - 60 * 13 THEN NULL END * AVG ( 22 * + 54 - + 33 * 96 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6798
SELECT - + 72 - - + CASE + 88 WHEN + MIN( + 84 ) * + 59 THEN NULL WHEN COUNT( * ) THEN NULL ELSE COUNT( * ) + 73 END AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6798
SELECT - + 72 - - + CASE + 88 WHEN + MIN ( + 84 ) * + 59 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE COUNT ( * ) + 73 END AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6799
SELECT - CASE - - NULLIF ( + + ( ( 53 ) ), - 82 * - 9 + - 0 ) WHEN 13 THEN - 37 * - NULLIF ( + NULLIF ( + 51, 60 ), 22 - + 50 ) WHEN + COALESCE ( - 36, - ( 14 ) / + 5 + - COALESCE ( 77, 2 * + 95 + 46 ) * + CASE 36 WHEN CASE + ( - CAST( NULL AS DECIMAL ) ) WHEN - NULLIF ( COUNT( * ), - 41 ) * - 82 THEN - 86 - 34 * 25 WHEN + 45 * + 68 THEN NULL WHEN ( - 23 ) * - 20 THEN NULL ELSE NULL END * 79 - 94 THEN 82 * 41 + + ( 9 ) ELSE - 57 END ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6799
SELECT - CASE - - NULLIF ( + + ( ( 53 ) ), - 82 * - 9 + - 0 ) WHEN 13 THEN - 37 * - NULLIF ( + NULLIF ( + 51, 60 ), 22 - + 50 ) WHEN + COALESCE ( - 36, - ( 14 ) / + 5 + - COALESCE ( 77, 2 * + 95 + 46 ) * + CASE 36 WHEN CASE + ( - CAST ( NULL AS REAL ) ) WHEN - NULLIF ( COUNT ( * ), - 41 ) * - 82 THEN - 86 - 34 * 25 WHEN + 45 * + 68 THEN NULL WHEN ( - 23 ) * - 20 THEN NULL ELSE NULL END * 79 - 94 THEN 82 * 41 + + ( 9 ) ELSE - 57 END ) THEN NULL END AS col2
----
NULL

query I rowsort
SELECT - - 97 - - + 89 + 44 * - - 68 AS col0
----
3178

query I rowsort
SELECT ALL - COALESCE ( 24, 47 ) AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6802
SELECT ALL 16 + + - MAX( + + 44 ) + 93
----
65

skipif mysql # not compatible
query I rowsort label-6802
SELECT ALL 16 + + - MAX ( + + 44 ) + 93
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6803
SELECT - MAX( - 1 ) - - - 8 + + COUNT( * ) * - 71 DIV COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-6803
SELECT - MAX ( - 1 ) - - - 8 + + COUNT ( * ) * - 71 / COUNT ( * )
----
-78

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6805
SELECT ALL 42 DIV + 92 + - - 71 * + 57
----
4047

skipif mysql # not compatible
query I rowsort label-6805
SELECT ALL 42 / + 92 + - - 71 * + 57
----
4047

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6806
SELECT + 60 / - 68 * - 52 + + - COUNT( DISTINCT - - 27 ) * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6806
SELECT + 60 / - 68 * - 52 + + - COUNT ( DISTINCT - - 27 ) * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + COALESCE ( - ( - 91 ), + + 19 * + ( 99 ) + + 94 ) AS col1
----
91

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6808
SELECT + 72 * - CAST( + 46 AS SIGNED ) + + 85 DIV + - 35
----
-3314

skipif mysql # not compatible
query I rowsort label-6808
SELECT + 72 * - CAST ( + 46 AS INTEGER ) + + 85 / + - 35
----
-3314

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6810
SELECT ALL + 15 DIV - 58 - - 69 * - + COALESCE ( + + 65, + CAST( NULL AS SIGNED ), COUNT( * ) - - 61 * + 47, + 2 * + 71 ) AS col1
----
-4485

skipif mysql # not compatible
query I rowsort label-6810
SELECT ALL + 15 / - 58 - - 69 * - + COALESCE ( + + 65, + CAST ( NULL AS INTEGER ), COUNT ( * ) - - 61 * + 47, + 2 * + 71 ) AS col1
----
-4485

onlyif mysql # aggregate syntax: 
query I rowsort label-6811
SELECT + CASE + 21 WHEN + - CASE - COUNT( * ) WHEN + 74 THEN + 20 - COUNT( * ) ELSE NULL END * 26 THEN NULL WHEN 75 THEN - 96 - 18 * MAX( 87 ) WHEN + 45 THEN NULL END * - 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6811
SELECT + CASE + 21 WHEN + - CASE - COUNT ( * ) WHEN + 74 THEN + 20 - COUNT ( * ) ELSE NULL END * 26 THEN NULL WHEN 75 THEN - 96 - 18 * MAX ( 87 ) WHEN + 45 THEN NULL END * - 88 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6812
SELECT ALL + 26 AS col1, COUNT( * ) AS col0
----
26
1

skipif mysql # not compatible
query II rowsort label-6812
SELECT ALL + 26 AS col1, COUNT ( * ) AS col0
----
26
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6813
SELECT CAST( + + 2 AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-6813
SELECT CAST ( + + 2 AS INTEGER )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6814
SELECT 72 * + CAST( 73 AS SIGNED ) + - 39
----
5217

skipif mysql # not compatible
query I rowsort label-6814
SELECT 72 * + CAST ( 73 AS INTEGER ) + - 39
----
5217

onlyif mysql # aggregate syntax: 
query I rowsort label-6815
SELECT DISTINCT NULLIF ( - 65, ( + COUNT( * ) ) ) * + - 77 + 45 col0
----
5050

skipif mysql # not compatible
query I rowsort label-6815
SELECT DISTINCT NULLIF ( - 65, ( + COUNT ( * ) ) ) * + - 77 + 45 col0
----
5050

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

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

query I rowsort
SELECT 90 * - 74
----
-6660

onlyif mysql # aggregate syntax: 
query I rowsort label-6818
SELECT 25 * - CASE - 57 WHEN + 76 THEN + + 19 WHEN 42 * - COUNT( * ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6818
SELECT 25 * - CASE - 57 WHEN + 76 THEN + + 19 WHEN 42 * - COUNT ( * ) THEN NULL ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT 63 * - - 65 + 5 AS col1, + ( 37 ) AS col2
----
4100
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6820
SELECT DISTINCT + 75 * - 4 * + MAX( + 25 ) * - COUNT( * ) - COUNT( ALL 72 ) DIV - 52
----
7500

skipif mysql # not compatible
query I rowsort label-6820
SELECT DISTINCT + 75 * - 4 * + MAX ( + 25 ) * - COUNT ( * ) - COUNT ( ALL 72 ) / - 52
----
7500

onlyif mysql # aggregate syntax: 
query I rowsort label-6821
SELECT 0 + - + ( + + 93 ) + + SUM( ALL + - 24 ) * - 21
----
411

skipif mysql # not compatible
query I rowsort label-6821
SELECT 0 + - + ( + + 93 ) + + SUM ( ALL + - 24 ) * - 21
----
411

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

skipif mysql # not compatible
query I rowsort label-6822
SELECT ALL - - MIN ( ALL - - 87 )
----
87

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT DISTINCT - 15 * 54 + 5 + + COUNT( + - 41 ) + + 30 * 41 AS col2
----
426

skipif mysql # not compatible
query I rowsort label-6825
SELECT DISTINCT - 15 * 54 + 5 + + COUNT ( + - 41 ) + + 30 * 41 AS col2
----
426

onlyif mysql # aggregate syntax: 
query I rowsort label-6826
SELECT DISTINCT + COUNT( ALL - 63 )
----
1

skipif mysql # not compatible
query I rowsort label-6826
SELECT DISTINCT + COUNT ( ALL - 63 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6827
SELECT COUNT( * ) * + 29 + - 78 + - 87 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6827
SELECT COUNT ( * ) * + 29 + - 78 + - 87 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6828
SELECT + 20 + 82 - COUNT( * ) AS col2
----
101

skipif mysql # not compatible
query I rowsort label-6828
SELECT + 20 + 82 - COUNT ( * ) AS col2
----
101

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

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

query II rowsort
SELECT DISTINCT 63, ( 78 ) col0
----
63
78

query I rowsort
SELECT ALL + - 91 + - 63 AS col2
----
-154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6832
SELECT 79 - + CASE 19 WHEN - CAST( - 72 AS SIGNED ) THEN - COUNT( * ) WHEN - 84 * - 34 THEN NULL WHEN COUNT( * ) + 63 THEN NULL END + 98 * COALESCE ( + 44, + 19 * + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6832
SELECT 79 - + CASE 19 WHEN - CAST ( - 72 AS INTEGER ) THEN - COUNT ( * ) WHEN - 84 * - 34 THEN NULL WHEN COUNT ( * ) + 63 THEN NULL END + 98 * COALESCE ( + 44, + 19 * + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT CASE 91 WHEN 34 * + 96 + + - 79 / - 3 THEN 42 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + 66 + - - ( 77 ) + + 37
----
180

query I rowsort
SELECT DISTINCT + 49 * - + 86 * + 76 AS col0
----
-320264

query I rowsort
SELECT DISTINCT + + 49 + - 76 - 21 AS col1
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6837
SELECT ALL COUNT( * ) AS col0, 26 DIV + 87 AS col2
----
1
0

skipif mysql # not compatible
query II rowsort label-6837
SELECT ALL COUNT ( * ) AS col0, 26 / + 87 AS col2
----
1
0

query I rowsort
SELECT 75 + - 71 AS col2
----
4

query I rowsort
SELECT ALL + 2 + + 41
----
43

query I rowsort
SELECT 46 * - 31 * - + 11
----
15686

query I rowsort
SELECT 84 + + 56
----
140

query I rowsort
SELECT 55 * 50 * + 63
----
173250

query II rowsort
SELECT - 85 AS col2, 86 AS col0
----
-85
86

query I rowsort
SELECT NULLIF ( 10, + 61 ) + - 52
----
-42

query II rowsort
SELECT + 39 col0, + 75 AS col0
----
39
75

query I rowsort
SELECT 39 * 25 + + 10 - + - 42 AS col1
----
1027

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6847
SELECT ALL - COUNT( * ) - CASE + + COUNT( * ) WHEN + 13 THEN 79 DIV + + 96 + + SUM( 16 ) DIV COUNT( * ) ELSE ( - 17 ) END
----
16

skipif mysql # not compatible
query I rowsort label-6847
SELECT ALL - COUNT ( * ) - CASE + + COUNT ( * ) WHEN + 13 THEN 79 / + + 96 + + SUM ( 16 ) / COUNT ( * ) ELSE ( - 17 ) END
----
16

query II rowsort
SELECT 37 col0, + 79
----
37
79

query II rowsort
SELECT ALL - 61 AS col0, 49 AS col1
----
-61
49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6850
SELECT DISTINCT - 32 col0, + COUNT( * ) + + CASE + 7 WHEN + + AVG ( + 88 ) + 95 THEN NULL WHEN CAST( NULL AS DECIMAL ) / - 95 THEN + 73 ELSE NULL END - - 82 * - 43 AS col2
----
-32
NULL

skipif mysql # not compatible
query II rowsort label-6850
SELECT DISTINCT - 32 col0, + COUNT ( * ) + + CASE + 7 WHEN + + AVG ( + 88 ) + 95 THEN NULL WHEN CAST ( NULL AS REAL ) / - 95 THEN + 73 ELSE NULL END - - 82 * - 43 AS col2
----
-32
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6851
SELECT ALL SUM( DISTINCT - 16 ) * CAST( + COUNT( * ) AS SIGNED ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-6851
SELECT ALL SUM ( DISTINCT - 16 ) * CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
-16

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT DISTINCT + MAX( 34 ) * - 93
----
-3162

skipif mysql # not compatible
query I rowsort label-6853
SELECT DISTINCT + MAX ( 34 ) * - 93
----
-3162

query I rowsort
SELECT 90 - + + 66
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6855
SELECT COUNT( * ) * 77 * + 96
----
7392

skipif mysql # not compatible
query I rowsort label-6855
SELECT COUNT ( * ) * 77 * + 96
----
7392

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT ALL COUNT( * ) * - NULLIF ( 29, - ( 36 ) ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-6856
SELECT ALL COUNT ( * ) * - NULLIF ( 29, - ( 36 ) ) AS col2
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6857
SELECT 96 + - COALESCE ( + 54, + CAST( NULL AS SIGNED ) ) + + - 49 * + 21 AS col0
----
-987

skipif mysql # not compatible
query I rowsort label-6857
SELECT 96 + - COALESCE ( + 54, + CAST ( NULL AS INTEGER ) ) + + - 49 * + 21 AS col0
----
-987

query I rowsort
SELECT 41 + 84 AS col1
----
125

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6860
SELECT DISTINCT - CASE + 37 WHEN + - MAX( ALL - - NULLIF ( + 96, - + 28 * 82 ) ) THEN + 48 WHEN + COUNT( + 21 ) + + 13 THEN + 34 END / - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-6860
SELECT DISTINCT - CASE + 37 WHEN + - MAX ( ALL - - NULLIF ( + 96, - + 28 * 82 ) ) THEN + 48 WHEN + COUNT ( + 21 ) + + 13 THEN + 34 END / - 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6861
SELECT ALL - + CASE - COUNT( * ) WHEN - + 54 THEN - 0 * - 46 * + - 77 / 47 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6861
SELECT ALL - + CASE - COUNT ( * ) WHEN - + 54 THEN - 0 * - 46 * + - 77 / 47 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6862
SELECT - COUNT( * ) * 40 + - 13 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-6862
SELECT - COUNT ( * ) * 40 + - 13 AS col0
----
-53

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6864
SELECT ALL - COUNT( * ) * - 39 * - 79 AS col0
----
-3081

skipif mysql # not compatible
query I rowsort label-6864
SELECT ALL - COUNT ( * ) * - 39 * - 79 AS col0
----
-3081

query I rowsort
SELECT + 51 + + 14 AS col0
----
65

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6867
SELECT CAST( - + CASE - ( + + 82 ) WHEN + + 26 THEN - - 54 + ( + 0 ) / + 71 WHEN 6 THEN NULL ELSE 75 * 13 END AS SIGNED )
----
-975

skipif mysql # not compatible
query I rowsort label-6867
SELECT CAST ( - + CASE - ( + + 82 ) WHEN + + 26 THEN - - 54 + ( + 0 ) / + 71 WHEN 6 THEN NULL ELSE 75 * 13 END AS INTEGER )
----
-975

query I rowsort
SELECT ALL 48 + 10 col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6869
SELECT DISTINCT + 3 + - - 67 + + 89 + COUNT( * ) - + CASE + - 13 WHEN - 84 * CASE + 74 WHEN - 9 THEN NULL ELSE + 72 END + - COALESCE ( 9, 1 ) THEN NULL ELSE 67 END AS col2
----
93

skipif mysql # not compatible
query I rowsort label-6869
SELECT DISTINCT + 3 + - - 67 + + 89 + COUNT ( * ) - + CASE + - 13 WHEN - 84 * CASE + 74 WHEN - 9 THEN NULL ELSE + 72 END + - COALESCE ( 9, 1 ) THEN NULL ELSE 67 END AS col2
----
93

query II rowsort
SELECT + 75, ( + + 64 ) AS col0
----
75
64

query I rowsort
SELECT - 1 + 86 * + 34 * - 16 col1
----
-46785

query I rowsort
SELECT ALL - ( - 69 ) + + 82 AS col1
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-6873
SELECT DISTINCT - 59 * MIN( ( + 48 ) ) + 50 + - NULLIF ( 97, + 79 - + 91 ) * 12
----
-3946

skipif mysql # not compatible
query I rowsort label-6873
SELECT DISTINCT - 59 * MIN ( ( + 48 ) ) + 50 + - NULLIF ( 97, + 79 - + 91 ) * 12
----
-3946

onlyif mysql # aggregate syntax: 
query I rowsort label-6874
SELECT ALL NULLIF ( + + COUNT( * ), + - 34 ) + + - 23 + 9
----
-13

skipif mysql # not compatible
query I rowsort label-6874
SELECT ALL NULLIF ( + + COUNT ( * ), + - 34 ) + + - 23 + 9
----
-13

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6876
SELECT - COUNT( ALL - 30 )
----
-1

skipif mysql # not compatible
query I rowsort label-6876
SELECT - COUNT ( ALL - 30 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6877
SELECT ALL + CAST( NULL AS SIGNED ) + COUNT( DISTINCT - 62 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6877
SELECT ALL + CAST ( NULL AS INTEGER ) + COUNT ( DISTINCT - 62 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6878
SELECT + 67 * COUNT( * ) * + - 32 + - + SUM( - ( + 96 ) )
----
-2048

skipif mysql # not compatible
query I rowsort label-6878
SELECT + 67 * COUNT ( * ) * + - 32 + - + SUM ( - ( + 96 ) )
----
-2048

query I rowsort
SELECT ALL - 9 + + + 91 AS col0
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-6880
SELECT - 81 AS col2, COUNT( * ) + - 16 AS col1
----
-81
-15

skipif mysql # not compatible
query II rowsort label-6880
SELECT - 81 AS col2, COUNT ( * ) + - 16 AS col1
----
-81
-15

query I rowsort
SELECT 61 - + - 5
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-6882
SELECT DISTINCT + 48 AS col1, + 35 * - 69 + - + ( - COUNT( * ) )
----
48
-2414

skipif mysql # not compatible
query II rowsort label-6882
SELECT DISTINCT + 48 AS col1, + 35 * - 69 + - + ( - COUNT ( * ) )
----
48
-2414

onlyif mysql # aggregate syntax: 
query I rowsort label-6883
SELECT ( - 40 ) - COUNT( ALL + + 98 ) - 55 * - 77 + 38 + 13 * 32
----
4648

skipif mysql # not compatible
query I rowsort label-6883
SELECT ( - 40 ) - COUNT ( ALL + + 98 ) - 55 * - 77 + 38 + 13 * 32
----
4648

query I rowsort
SELECT 65 - + 92
----
-27

onlyif mysql # DIV for integer division: 
query II rowsort label-6885
SELECT ALL 96 DIV + - 97 AS col2, + 26 * + 40 + 67
----
0
1107

skipif mysql # not compatible
query II rowsort label-6885
SELECT ALL 96 / + - 97 AS col2, + 26 * + 40 + 67
----
0
1107

query I rowsort
SELECT 90 - + 46 * + 70 AS col1
----
-3130

query II rowsort
SELECT 0 - + - 63, 16 AS col0
----
63
16

query I rowsort
SELECT ALL + 72 * - 68 AS col1
----
-4896

query I rowsort
SELECT 6 * + NULLIF ( - + 60, + 66 )
----
-360

query I rowsort
SELECT 9 - - - 15 AS col2
----
-6

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6892
SELECT 9 DIV ( - 87 ) * - 15 * - + 10 - - 75 + - 63 + 25 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-6892
SELECT 9 / ( - 87 ) * - 15 * - + 10 - - 75 + - 63 + 25 AS col0
----
37

onlyif mysql # DIV for integer division: 
query II rowsort label-6893
SELECT - 13 DIV - + 99 AS col1, + ( - 53 )
----
0
-53

skipif mysql # not compatible
query II rowsort label-6893
SELECT - 13 / - + 99 AS col1, + ( - 53 )
----
0
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-6894
SELECT - ( - - 10 ) + 52 DIV - + 91 + - + 28 AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-6894
SELECT - ( - - 10 ) + 52 / - + 91 + - + 28 AS col2
----
-38

query I rowsort
SELECT 82 * 96 + - 25 - 26 AS col2
----
7821

query I rowsort
SELECT NULLIF ( + 24, - 22 ) AS col2
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6897
SELECT ALL + - 68 * - COALESCE ( - - 72, - 83 DIV 71 - - CAST( COUNT( * ) AS SIGNED ) + - 24 ) + + COUNT( * )
----
4897

skipif mysql # not compatible
query I rowsort label-6897
SELECT ALL + - 68 * - COALESCE ( - - 72, - 83 / 71 - - CAST ( COUNT ( * ) AS INTEGER ) + - 24 ) + + COUNT ( * )
----
4897

query I rowsort
SELECT - + 87 + - - CASE + 97 WHEN + 78 THEN + 10 + 75 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL - ( - 13 ) * + 99 + - 49 * 36 * - - 75 * + 1
----
-131013

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

skipif mysql # not compatible
query I rowsort label-6900
SELECT + + 5 / 69
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6901
SELECT DISTINCT - 71 + - - SUM( ALL 71 )
----
0

skipif mysql # not compatible
query I rowsort label-6901
SELECT DISTINCT - 71 + - - SUM ( ALL 71 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6902
SELECT + + 60 * - 76 * - CAST( - - CASE 64 WHEN - - 80 + + - 25 THEN NULL ELSE 21 * 95 END AS SIGNED )
----
9097200

skipif mysql # not compatible
query I rowsort label-6902
SELECT + + 60 * - 76 * - CAST ( - - CASE 64 WHEN - - 80 + + - 25 THEN NULL ELSE 21 * 95 END AS INTEGER )
----
9097200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6903
SELECT ALL + NULLIF ( - 67, 28 ) DIV + 11 - - + COUNT( * ) col0
----
-5

skipif mysql # not compatible
query I rowsort label-6903
SELECT ALL + NULLIF ( - 67, 28 ) / + 11 - - + COUNT ( * ) col0
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6904
SELECT + CAST( - - 54 AS SIGNED ) + SUM( - 2 ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-6904
SELECT + CAST ( - - 54 AS INTEGER ) + SUM ( - 2 ) AS col0
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-6905
SELECT ALL - - 7 + 34 - - - 67 + + 78 DIV - 86 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-6905
SELECT ALL - - 7 + 34 - - - 67 + + 78 / - 86 AS col1
----
-26

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6907
SELECT ALL COUNT( * ) DIV - - 49
----
0

skipif mysql # not compatible
query I rowsort label-6907
SELECT ALL COUNT ( * ) / - - 49
----
0

query I rowsort
SELECT + - 78 - + - 8
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-6909
SELECT + 32 + + COUNT( * ) col1, + 6 AS col0
----
33
6

skipif mysql # not compatible
query II rowsort label-6909
SELECT + 32 + + COUNT ( * ) col1, + 6 AS col0
----
33
6

query I rowsort
SELECT + 3 - + + 39
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-6911
SELECT ALL 9 * - ( - - 11 ), COALESCE ( + 69, + 5 - 21 * + 11 ) * + COUNT( * ) AS col0
----
-99
69

skipif mysql # not compatible
query II rowsort label-6911
SELECT ALL 9 * - ( - - 11 ), COALESCE ( + 69, + 5 - 21 * + 11 ) * + COUNT ( * ) AS col0
----
-99
69

query I rowsort
SELECT + 73 + + 59 AS col1
----
132

onlyif mysql # aggregate syntax: 
query II rowsort label-6913
SELECT 71 AS col1, 20 + + COUNT( + 95 ) col0
----
71
21

skipif mysql # not compatible
query II rowsort label-6913
SELECT 71 AS col1, 20 + + COUNT ( + 95 ) col0
----
71
21

query I rowsort
SELECT ALL 55 * + 86 AS col1
----
4730

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6915
SELECT + CAST( 94 AS SIGNED ) + - - 95 + + + COUNT( DISTINCT + 6 )
----
190

skipif mysql # not compatible
query I rowsort label-6915
SELECT + CAST ( 94 AS INTEGER ) + - - 95 + + + COUNT ( DISTINCT + 6 )
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-6916
SELECT DISTINCT SUM( DISTINCT 11 ) col0
----
11

skipif mysql # not compatible
query I rowsort label-6916
SELECT DISTINCT SUM ( DISTINCT 11 ) col0
----
11

query I rowsort
SELECT + 43 + 85 - - 36 + - 31 + + - 7 * ( + - ( - 46 ) ) col2
----
-189

query I rowsort
SELECT + 37 * - 31
----
-1147

onlyif mysql # aggregate syntax: 
query I rowsort label-6919
SELECT - 95 + + MAX( ALL + 98 )
----
3

skipif mysql # not compatible
query I rowsort label-6919
SELECT - 95 + + MAX ( ALL + 98 )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query III rowsort label-6920
SELECT 5 AS col1, ( + + SUM( - CAST( - + CAST( - 59 AS DECIMAL ) AS SIGNED ) ) ) AS col0, 76
----
5
-59
76

skipif mysql # not compatible
query III rowsort label-6920
SELECT 5 AS col1, ( + + SUM ( - CAST ( - + CAST ( - 59 AS REAL ) AS INTEGER ) ) ) AS col0, 76
----
5
-59
76

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6922
SELECT ALL 95 DIV 22
----
4

skipif mysql # not compatible
query I rowsort label-6922
SELECT ALL 95 / 22
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6923
SELECT + 1 / - 26 * ( - CAST( NULL AS SIGNED ) ) * - 24 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6923
SELECT + 1 / - 26 * ( - CAST ( NULL AS INTEGER ) ) * - 24 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6924
SELECT + CAST( + - ( + ( - 5 ) ) AS SIGNED )
----
5

skipif mysql # not compatible
query I rowsort label-6924
SELECT + CAST ( + - ( + ( - 5 ) ) AS INTEGER )
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6925
SELECT DISTINCT + 24 DIV - - 13 DIV 9 * + 34 + SUM( 68 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-6925
SELECT DISTINCT + 24 / - - 13 / 9 * + 34 + SUM ( 68 ) AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6926
SELECT ALL - CASE + 15 WHEN COUNT( * ) THEN - 11 * - 75 + + - MIN( DISTINCT + 61 ) - - 2 + + 42 / 39 END / 19 + 15 * 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6926
SELECT ALL - CASE + 15 WHEN COUNT ( * ) THEN - 11 * - 75 + + - MIN ( DISTINCT + 61 ) - - 2 + + 42 / 39 END / 19 + 15 * 31 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6927
SELECT DISTINCT - COUNT ( * ) * MAX ( + 59 ) AS col0
----
-59

query I rowsort
SELECT - 24 * 96 + NULLIF ( 16, - ( 3 ) ) AS col0
----
-2288

query II rowsort
SELECT 33 AS col0, + 39 AS col0
----
33
39

query II rowsort
SELECT + 86 AS col2, 41 * - 93 * + 49 + 85 + - 43 AS col0
----
86
-186795

query I rowsort
SELECT + 77 - 35 AS col0
----
42

query I rowsort
SELECT DISTINCT - 58 * + 78 + + 91 - - 38 + 79 * + + 40
----
-1235

query I rowsort
SELECT ALL + - 52 * 55 + 5 AS col0
----
-2855

query II rowsort
SELECT - 93, + 6 AS col2
----
-93
6

query I rowsort
SELECT + + 49 * 49 AS col2
----
2401

onlyif mysql # aggregate syntax: 
query II rowsort label-6936
SELECT COUNT( * ) * + 79 + - 55 col0, ( - 81 )
----
24
-81

skipif mysql # not compatible
query II rowsort label-6936
SELECT COUNT ( * ) * + 79 + - 55 col0, ( - 81 )
----
24
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6937
SELECT ALL + 28 * - 28 - - - CAST( NULL AS SIGNED ) AS col2, 45 + - 50 * 60
----
NULL
-2955

skipif mysql # not compatible
query II rowsort label-6937
SELECT ALL + 28 * - 28 - - - CAST ( NULL AS INTEGER ) AS col2, 45 + - 50 * 60
----
NULL
-2955

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

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

query I rowsort
SELECT - + NULLIF ( + 99, - 96 ) AS col0
----
-99

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

skipif mysql # not compatible
query I rowsort label-6940
SELECT ALL - CAST ( + - 91 AS INTEGER ) AS col1
----
91

query I rowsort
SELECT - 50 * 43 * 62
----
-133300

query I rowsort
SELECT 9 * - 86
----
-774

query I rowsort
SELECT 80 - + 64
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-6944
SELECT 16 DIV - ( 39 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6944
SELECT 16 / - ( 39 ) AS col1
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6946
SELECT 99 + - 94 DIV CAST( + + 67 AS SIGNED ) * + ( 15 ) * 86 * + ( + 75 ) + 31 AS col0
----
-96620

skipif mysql # not compatible
query I rowsort label-6946
SELECT 99 + - 94 / CAST ( + + 67 AS INTEGER ) * + ( 15 ) * 86 * + ( + 75 ) + 31 AS col0
----
-96620

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6947
SELECT DISTINCT 54 * + + CAST( NULL AS SIGNED ) / - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-6947
SELECT DISTINCT 54 * + + CAST ( NULL AS INTEGER ) / - 63
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6948
SELECT 9 * - - 53, CAST( NULL AS SIGNED ) AS col1
----
477
NULL

skipif mysql # not compatible
query II rowsort label-6948
SELECT 9 * - - 53, CAST ( NULL AS INTEGER ) AS col1
----
477
NULL

query I rowsort
SELECT DISTINCT 89 + - ( - - 97 )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6950
SELECT COUNT( * ) - 59 AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-6950
SELECT COUNT ( * ) - 59 AS col1
----
-58

query I rowsort
SELECT 34 - 63 AS col2
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6952
SELECT ALL + CAST( - - COALESCE ( - 1, - 33 ) AS SIGNED ) + - 97 + - 72 * - - 16 - + 74
----
-1324

skipif mysql # not compatible
query I rowsort label-6952
SELECT ALL + CAST ( - - COALESCE ( - 1, - 33 ) AS INTEGER ) + - 97 + - 72 * - - 16 - + 74
----
-1324

query I rowsort
SELECT 80 + 83 * - - 42
----
3566

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6954
SELECT ALL - CASE + 62 WHEN - CAST( + 44 AS SIGNED ) * 42 * - 73 THEN - 5 WHEN + - 16 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6954
SELECT ALL - CASE + 62 WHEN - CAST ( + 44 AS INTEGER ) * 42 * - 73 THEN - 5 WHEN + - 16 THEN NULL END
----
NULL

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

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

query I rowsort
SELECT 56 * + + 95 AS col1
----
5320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6957
SELECT ALL + + 69 - - CAST( NULL AS SIGNED ) + + - 40 * + 31 * - 75 / - 65 * + - CAST( NULL AS SIGNED ) * - + 30 + + 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6957
SELECT ALL + + 69 - - CAST ( NULL AS INTEGER ) + + - 40 * + 31 * - 75 / - 65 * + - CAST ( NULL AS INTEGER ) * - + 30 + + 55 AS col1
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6959
SELECT ALL + 22 * - 79 * + CAST( + 93 AS SIGNED ) * - + 97
----
15678498

skipif mysql # not compatible
query I rowsort label-6959
SELECT ALL + 22 * - 79 * + CAST ( + 93 AS INTEGER ) * - + 97
----
15678498

onlyif mysql # aggregate syntax: 
query I rowsort label-6960
SELECT - MAX( 36 )
----
-36

skipif mysql # not compatible
query I rowsort label-6960
SELECT - MAX ( 36 )
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6961
SELECT + 87 + - + 8 + CAST( NULL AS SIGNED ) - - 29 + - + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-6961
SELECT + 87 + - + 8 + CAST ( NULL AS INTEGER ) - - 29 + - + 28
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6962
SELECT 28 DIV + 54 + 77 - + - 99
----
176

skipif mysql # not compatible
query I rowsort label-6962
SELECT 28 / + 54 + 77 - + - 99
----
176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6963
SELECT + SUM( ALL + + 23 ) DIV - 66
----
0

skipif mysql # not compatible
query I rowsort label-6963
SELECT + SUM ( ALL + + 23 ) / - 66
----
0

query I rowsort
SELECT 5 + + + 59 AS col2
----
64

query I rowsort
SELECT ALL 83 * + - 51
----
-4233

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6967
SELECT 90 + - - 10 * - 70 * + CAST( NULL AS SIGNED ) - + CASE + NULLIF ( - 36, - 52 * + 88 + + 14 ) WHEN - ( 0 ) THEN 35 WHEN + COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6967
SELECT 90 + - - 10 * - 70 * + CAST ( NULL AS INTEGER ) - + CASE + NULLIF ( - 36, - 52 * + 88 + + 14 ) WHEN - ( 0 ) THEN 35 WHEN + COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6968
SELECT 94 * MIN( ALL - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

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

query I rowsort
SELECT 0 + + - 71
----
-71

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

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

query II rowsort
SELECT 96 AS col2, 83 + - 79 AS col0
----
96
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6972
SELECT - 64 * + 30 * ( - COUNT( DISTINCT + + CAST( NULL AS SIGNED ) ) ) + - + 29
----
-29

skipif mysql # not compatible
query I rowsort label-6972
SELECT - 64 * + 30 * ( - COUNT ( DISTINCT + + CAST ( NULL AS INTEGER ) ) ) + - + 29
----
-29

query I rowsort
SELECT 80 + - + 25
----
55

query I rowsort
SELECT 84 * - - 21 AS col1
----
1764

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

query I rowsort
SELECT 90 + + + 77 AS col2
----
167

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6977
SELECT 25 - + COALESCE ( COUNT( * ), + + MAX( CAST( NULL AS SIGNED ) ) + + - 82, - COUNT( * ) * + 55 + 46 - 0 + - 9 * 91 + 55 DIV + 63 ) + - 19
----
5

skipif mysql # not compatible
query I rowsort label-6977
SELECT 25 - + COALESCE ( COUNT ( * ), + + MAX ( CAST ( NULL AS INTEGER ) ) + + - 82, - COUNT ( * ) * + 55 + 46 - 0 + - 9 * 91 + 55 / + 63 ) + - 19
----
5

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6981
SELECT DISTINCT + 68 + - 94 * - ( - ( COUNT( * ) ) ) col1
----
-26

skipif mysql # not compatible
query I rowsort label-6981
SELECT DISTINCT + 68 + - 94 * - ( - ( COUNT ( * ) ) ) col1
----
-26

query I rowsort
SELECT DISTINCT + 95 + - 84 AS col2
----
11

query I rowsort
SELECT ALL 48 + - + 28 AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6984
SELECT 25 + + COUNT( - 36 ) + 88
----
114

skipif mysql # not compatible
query I rowsort label-6984
SELECT 25 + + COUNT ( - 36 ) + 88
----
114

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

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

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

skipif mysql # not compatible
query I rowsort label-6986
SELECT ALL 42 / + + COUNT ( * ) AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6987
SELECT ALL - 51 + - COUNT( * ) * - 91
----
40

skipif mysql # not compatible
query I rowsort label-6987
SELECT ALL - 51 + - COUNT ( * ) * - 91
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-6988
SELECT 24 DIV + - 84
----
0

skipif mysql # not compatible
query I rowsort label-6988
SELECT 24 / + - 84
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6989
SELECT - AVG ( + 71 ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6989
SELECT - AVG ( + 71 ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6990
SELECT 6, NULLIF ( CASE + NULLIF ( - - 15, + COUNT( * ) ) WHEN - CASE WHEN NOT 51 <> - COALESCE ( - 67, 42 ) / - 22 + - 10 * ( - 71 ) THEN + 13 WHEN NOT NULL NOT IN ( 53 * 16 ) THEN - 22 / - 10 END + + 72 * + 38 THEN ( 59 ) + - 23 WHEN - AVG ( ALL - 64 ) * 34 + - 96 THEN NULL END, COUNT( * ) * + 80 ) * 97 AS col1
----
6
NULL

skipif mysql # not compatible
query II rowsort label-6990
SELECT 6, NULLIF ( CASE + NULLIF ( - - 15, + COUNT ( * ) ) WHEN - CASE WHEN NOT 51 <> - COALESCE ( - 67, 42 ) / - 22 + - 10 * ( - 71 ) THEN + 13 WHEN NOT NULL NOT IN ( 53 * 16 ) THEN - 22 / - 10 END + + 72 * + 38 THEN ( 59 ) + - 23 WHEN - AVG ( ALL - 64 ) * 34 + - 96 THEN NULL END, COUNT ( * ) * + 80 ) * 97 AS col1
----
6
NULL

query I rowsort
SELECT ALL + 64 * + 59 - - 58
----
3834

query I rowsort
SELECT ALL 29 * - 56 * + - 38 * 6 - - 61 AS col1
----
370333

query I rowsort
SELECT + 95 * 73
----
6935

query I rowsort
SELECT ALL - 42 * - 36 * - - 79
----
119448

query I rowsort
SELECT + 8 * + 76 + + 53 * - 19 AS col0
----
-399

query I rowsort
SELECT + 62 * - - 65 AS col2
----
4030

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6997
SELECT + 41 * - 41 + - 96 - MAX( ALL - - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6997
SELECT + 41 * - 41 + - 96 - MAX ( ALL - - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query II rowsort
SELECT + 28, + 11 AS col0
----
28
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6999
SELECT COALESCE ( - + 37, + COUNT( * ) + + 82 + - ( 33 ) + + COUNT( * ) )
----
-37

skipif mysql # not compatible
query I rowsort label-6999
SELECT COALESCE ( - + 37, + COUNT ( * ) + + 82 + - ( 33 ) + + COUNT ( * ) )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7000
SELECT COUNT( - + CASE - - 37 WHEN - - 62 THEN NULL WHEN + - 11 THEN - 4 * 68 END ) * + COUNT( 22 ) * - 38 - + 1
----
-1

skipif mysql # not compatible
query I rowsort label-7000
SELECT COUNT ( - + CASE - - 37 WHEN - - 62 THEN NULL WHEN + - 11 THEN - 4 * 68 END ) * + COUNT ( 22 ) * - 38 - + 1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7001
SELECT + 16 * CASE + 17 WHEN + 77 THEN - 17 - + 26 + 22 * + - COUNT( * ) + + - 92 * - CAST( NULL AS SIGNED ) * - 70 WHEN - 92 THEN NULL WHEN 69 * + 63 + - 60 THEN - 41 END + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7001
SELECT + 16 * CASE + 17 WHEN + 77 THEN - 17 - + 26 + 22 * + - COUNT ( * ) + + - 92 * - CAST ( NULL AS INTEGER ) * - 70 WHEN - 92 THEN NULL WHEN 69 * + 63 + - 60 THEN - 41 END + COUNT ( * ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7002
SELECT ALL + 66 DIV + 3
----
22

skipif mysql # not compatible
query I rowsort label-7002
SELECT ALL + 66 / + 3
----
22

query I rowsort
SELECT DISTINCT 99 + 97 col2
----
196

query I rowsort
SELECT ALL 26 + + 27
----
53

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7006
SELECT - 96 DIV + - 70 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7006
SELECT - 96 / + - 70 AS col0
----
1

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

skipif mysql # not compatible
query I rowsort label-7007
SELECT + CAST ( NULL AS INTEGER ) * 47 * + + 55
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7008
SELECT MIN( DISTINCT - - 41 ) * 87 + 47 AS col2, 1 AS col1
----
3614
1

skipif mysql # not compatible
query II rowsort label-7008
SELECT MIN ( DISTINCT - - 41 ) * 87 + 47 AS col2, 1 AS col1
----
3614
1

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

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

query II rowsort
SELECT DISTINCT 93 AS col2, 57 * - ( + + 86 ) AS col0
----
93
-4902

query I rowsort
SELECT - 54 * + 16 AS col1
----
-864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7012
SELECT DISTINCT COALESCE ( - COUNT( ALL + + ( - CAST( NULL AS SIGNED ) ) ), 54 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7012
SELECT DISTINCT COALESCE ( - COUNT ( ALL + + ( - CAST ( NULL AS INTEGER ) ) ), 54 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7013
SELECT DISTINCT MAX( - 93 ) + ( + 77 ) AS col1, + 26 AS col2
----
-16
26

skipif mysql # not compatible
query II rowsort label-7013
SELECT DISTINCT MAX ( - 93 ) + ( + 77 ) AS col1, + 26 AS col2
----
-16
26

query I rowsort
SELECT + 18 - + 46
----
-28

query II rowsort
SELECT - 10 col2, - 0 - + 5
----
-10
-5

query I rowsort
SELECT - 88 * 31 AS col1
----
-2728

query I rowsort
SELECT + ( - + NULLIF ( - 9, + ( 5 ) ) )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7018
SELECT - + COUNT( ALL + 28 ) - + 89 AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-7018
SELECT - + COUNT ( ALL + 28 ) - + 89 AS col1
----
-90

query II rowsort
SELECT DISTINCT + 14 AS col1, 61
----
14
61

query II rowsort
SELECT 8 AS col2, + 94
----
8
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7021
SELECT - + 27 + - COUNT( * ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-7021
SELECT - + 27 + - COUNT ( * ) AS col0
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-7022
SELECT ALL + - ( - 73 ), - ( - - COALESCE ( ( + 8 ), + ( MAX( 87 ) ) + - 87, + 39 ) ) * 0 + + 95 AS col0
----
73
95

skipif mysql # not compatible
query II rowsort label-7022
SELECT ALL + - ( - 73 ), - ( - - COALESCE ( ( + 8 ), + ( MAX ( 87 ) ) + - 87, + 39 ) ) * 0 + + 95 AS col0
----
73
95

onlyif mysql # DIV for integer division: 
query I rowsort label-7023
SELECT + 16 DIV + 59 col2
----
0

skipif mysql # not compatible
query I rowsort label-7023
SELECT + 16 / + 59 col2
----
0

query I rowsort
SELECT - - 0 * + - 5 * - ( - + 67 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7025
SELECT + 2 DIV - - COUNT( * ) + + MIN( DISTINCT + + 43 ) * + 99 AS col2
----
4259

skipif mysql # not compatible
query I rowsort label-7025
SELECT + 2 / - - COUNT ( * ) + + MIN ( DISTINCT + + 43 ) * + 99 AS col2
----
4259

onlyif mysql # aggregate syntax: 
query I rowsort label-7026
SELECT + 29 * SUM( 42 ) - - 85
----
1303

skipif mysql # not compatible
query I rowsort label-7026
SELECT + 29 * SUM ( 42 ) - - 85
----
1303

query I rowsort
SELECT - 73 + 17 AS col0
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-7028
SELECT - - 87 DIV 63 + 3 - + 78 DIV 78 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-7028
SELECT - - 87 / 63 + 3 - + 78 / 78 AS col0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7029
SELECT - + CAST( 71 AS SIGNED ) * - + 63
----
4473

skipif mysql # not compatible
query I rowsort label-7029
SELECT - + CAST ( 71 AS INTEGER ) * - + 63
----
4473

onlyif mysql # aggregate syntax: 
query I rowsort label-7030
SELECT ALL + + SUM( ALL + - 98 ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-7030
SELECT ALL + + SUM ( ALL + - 98 ) AS col2
----
-98

query I rowsort
SELECT + NULLIF ( ( 81 ), - + 38 * - CASE 71 WHEN 36 THEN NULL WHEN COALESCE ( 86, + 56 / + - 18 + 93, - 39 + 41 ) * - 93 THEN 20 * + ( + 18 ) + - 39 ELSE - 36 * - 52 END ) AS col0
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-7032
SELECT ALL + - 49 AS col1, 29 * + 4 + + SUM( DISTINCT - + 76 ) col0
----
-49
40

skipif mysql # not compatible
query II rowsort label-7032
SELECT ALL + - 49 AS col1, 29 * + 4 + + SUM ( DISTINCT - + 76 ) col0
----
-49
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7033
SELECT ALL ( - + 70 ) * MIN( - 72 ) + 85 AS col1
----
5125

skipif mysql # not compatible
query I rowsort label-7033
SELECT ALL ( - + 70 ) * MIN ( - 72 ) + 85 AS col1
----
5125

query I rowsort
SELECT + 32 * - 63
----
-2016

query I rowsort
SELECT 49 * + - 83 + + 62 AS col0
----
-4005

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

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

query I rowsort
SELECT + 90 * + 52
----
4680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7038
SELECT + 78 + - CAST( 60 AS SIGNED )
----
18

skipif mysql # not compatible
query I rowsort label-7038
SELECT + 78 + - CAST ( 60 AS INTEGER )
----
18

query II rowsort
SELECT + 54 + - ( - + 8 ) AS col0, 95 AS col0
----
62
95

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7041
SELECT DISTINCT ( + 4 ) / - + 84 * + + CASE - ( - - COALESCE ( + - ( + + COUNT( - - 54 ) ), - + ( + + COUNT( * ) ) ) ) WHEN + 60 * + 96 THEN NULL WHEN 39 THEN - COUNT( * ) - + COUNT( * ) WHEN ( 80 ) / - 65 THEN 88 / AVG ( ALL 86 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7041
SELECT DISTINCT ( + 4 ) / - + 84 * + + CASE - ( - - COALESCE ( + - ( + + COUNT ( - - 54 ) ), - + ( + + COUNT ( * ) ) ) ) WHEN + 60 * + 96 THEN NULL WHEN 39 THEN - COUNT ( * ) - + COUNT ( * ) WHEN ( 80 ) / - 65 THEN 88 / AVG ( ALL 86 ) END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7042
SELECT ALL - 37 * + CAST( + 77 AS SIGNED ) + + + 41 AS col2
----
-2808

skipif mysql # not compatible
query I rowsort label-7042
SELECT ALL - 37 * + CAST ( + 77 AS INTEGER ) + + + 41 AS col2
----
-2808

query I rowsort
SELECT - NULLIF ( + 15, + 69 )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7044
SELECT COUNT( - 2 )
----
1

skipif mysql # not compatible
query I rowsort label-7044
SELECT COUNT ( - 2 )
----
1

query I rowsort
SELECT - 18 * - 47 + 21 AS col2
----
867

query I rowsort
SELECT + 24 * 73
----
1752

query I rowsort
SELECT DISTINCT 30 * + 72 AS col0
----
2160

query I rowsort
SELECT + 95 + 62 * 77
----
4869

onlyif mysql # aggregate syntax: 
query I rowsort label-7049
SELECT - COUNT( * ) - + 60 + - 30
----
-91

skipif mysql # not compatible
query I rowsort label-7049
SELECT - COUNT ( * ) - + 60 + - 30
----
-91

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

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

query I rowsort
SELECT - 77 + + + 69 * 28 AS col1
----
1855

onlyif mysql # aggregate syntax: 
query I rowsort label-7052
SELECT DISTINCT 94 * - COUNT( * ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-7052
SELECT DISTINCT 94 * - COUNT ( * ) AS col2
----
-94

query I rowsort
SELECT - 64 + + 9
----
-55

query II rowsort
SELECT ALL ( + 6 ) AS col2, 3 - + 32 + - 40 + + 15 * - 17 AS col1
----
6
-324

query I rowsort
SELECT + 17 * + ( - - 73 ) * 82 AS col1
----
101762

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7056
SELECT - 91 + + + CASE - - COALESCE ( - COUNT( * ), + - COUNT( * ), 66 ) WHEN - - CAST( NULL AS DECIMAL ) / - 50 - - + 67 * COUNT( * ) THEN + 21 ELSE - COUNT( 38 ) END * COUNT( * ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-7056
SELECT - 91 + + + CASE - - COALESCE ( - COUNT ( * ), + - COUNT ( * ), 66 ) WHEN - - CAST ( NULL AS REAL ) / - 50 - - + 67 * COUNT ( * ) THEN + 21 ELSE - COUNT ( 38 ) END * COUNT ( * ) AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7057
SELECT DISTINCT + ( - - CASE + 50 WHEN + + 56 * - COUNT( * ) + 33 THEN 82 WHEN - CASE 84 WHEN + COUNT( * ) THEN SUM( + - CASE - 74 WHEN - 11 THEN 53 ELSE NULL END ) ELSE NULL END - 11 / 43 THEN ( + 37 ) + 53 ELSE + 94 END ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-7057
SELECT DISTINCT + ( - - CASE + 50 WHEN + + 56 * - COUNT ( * ) + 33 THEN 82 WHEN - CASE 84 WHEN + COUNT ( * ) THEN SUM ( + - CASE - 74 WHEN - 11 THEN 53 ELSE NULL END ) ELSE NULL END - 11 / 43 THEN ( + 37 ) + 53 ELSE + 94 END ) AS col2
----
94

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7059
SELECT - - MAX( - + 53 ) + + + MIN( 52 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-7059
SELECT - - MAX ( - + 53 ) + + + MIN ( 52 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7060
SELECT - + MIN( DISTINCT + + 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-7060
SELECT - + MIN ( DISTINCT + + 23 )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7061
SELECT - + 90 + MIN( 17 ) + 24 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-7061
SELECT - + 90 + MIN ( 17 ) + 24 AS col1
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7062
SELECT DISTINCT COUNT( * ) * CAST( NULL AS SIGNED ) * - 75 / 30 * - 67 AS col2, - ( - 62 ) - - 88 + - + 58 AS col2
----
NULL
92

skipif mysql # not compatible
query II rowsort label-7062
SELECT DISTINCT COUNT ( * ) * CAST ( NULL AS INTEGER ) * - 75 / 30 * - 67 AS col2, - ( - 62 ) - - 88 + - + 58 AS col2
----
NULL
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7063
SELECT ALL - - CASE WHEN NOT + 13 <= CAST( - COUNT( * ) AS SIGNED ) - + COUNT( 10 ) THEN COUNT( * ) - + MIN( - + 89 ) WHEN NOT ( NULL ) IN ( SUM( 63 ) ) THEN NULL ELSE 66 * 27 END * + 87 AS col1
----
7830

skipif mysql # not compatible
query I rowsort label-7063
SELECT ALL - - CASE WHEN NOT + 13 <= CAST ( - COUNT ( * ) AS INTEGER ) - + COUNT ( 10 ) THEN COUNT ( * ) - + MIN ( - + 89 ) WHEN NOT ( NULL ) IN ( SUM ( 63 ) ) THEN NULL ELSE 66 * 27 END * + 87 AS col1
----
7830

onlyif mysql # DIV for integer division: 
query I rowsort label-7064
SELECT DISTINCT 91 DIV - 59 + - 3 + + 39 - 48 * - - 46 * - - 93
----
-205309

skipif mysql # not compatible
query I rowsort label-7064
SELECT DISTINCT 91 / - 59 + - 3 + + 39 - 48 * - - 46 * - - 93
----
-205309

query II rowsort
SELECT 34 + - 44 AS col1, 69 * 53 * + 8 AS col2
----
-10
29256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7066
SELECT DISTINCT + NULLIF ( + SUM( - - 29 ), 65 ) + + CASE + 49 WHEN + CAST( NULL AS SIGNED ) THEN CAST( + 47 AS SIGNED ) - 62 END, 45 AS col1
----
NULL
45

skipif mysql # not compatible
query II rowsort label-7066
SELECT DISTINCT + NULLIF ( + SUM ( - - 29 ), 65 ) + + CASE + 49 WHEN + CAST ( NULL AS INTEGER ) THEN CAST ( + 47 AS INTEGER ) - 62 END, 45 AS col1
----
NULL
45

onlyif mysql # aggregate syntax: 
query II rowsort label-7067
SELECT + 61 * - 67 + + - 60 * + 28 + MIN( + 64 ) * - 47, 94 AS col1
----
-8775
94

skipif mysql # not compatible
query II rowsort label-7067
SELECT + 61 * - 67 + + - 60 * + 28 + MIN ( + 64 ) * - 47, 94 AS col1
----
-8775
94

query I rowsort
SELECT ALL + ( + 65 ) + ( + 54 ) AS col0
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-7069
SELECT - ( 45 ) * + 17 * COUNT( * ) * + 71 - - + 53 + - 61 * + SUM( ALL 20 ) * + 9 + + + 69 * + 69
----
-60481

skipif mysql # not compatible
query I rowsort label-7069
SELECT - ( 45 ) * + 17 * COUNT ( * ) * + 71 - - + 53 + - 61 * + SUM ( ALL 20 ) * + 9 + + + 69 * + 69
----
-60481

onlyif mysql # DIV for integer division: 
query I rowsort label-7070
SELECT 0 DIV + + ( + 51 ) * - - 36
----
0

skipif mysql # not compatible
query I rowsort label-7070
SELECT 0 / + + ( + 51 ) * - - 36
----
0

query I rowsort
SELECT 35 + - 26
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7072
SELECT DISTINCT - ( + 32 ) + + COUNT( * ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-7072
SELECT DISTINCT - ( + 32 ) + + COUNT ( * ) AS col1
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-7073
SELECT DISTINCT - 9 DIV 41 * + 6 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7073
SELECT DISTINCT - 9 / 41 * + 6 AS col1
----
0

query I rowsort
SELECT ALL 31 * + 3
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7075
SELECT DISTINCT + 36 + + 6 + - - COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-7075
SELECT DISTINCT + 36 + + 6 + - - COUNT ( * )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7076
SELECT DISTINCT - MIN( - 16 ) + - 91
----
-75

skipif mysql # not compatible
query I rowsort label-7076
SELECT DISTINCT - MIN ( - 16 ) + - 91
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7077
SELECT ALL - COUNT( ALL 95 )
----
-1

skipif mysql # not compatible
query I rowsort label-7077
SELECT ALL - COUNT ( ALL 95 )
----
-1

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

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

query I rowsort
SELECT 43 * 59
----
2537

query I rowsort
SELECT 50 - + 33
----
17

query II rowsort
SELECT 65 AS col1, 49 AS col2
----
65
49

query II rowsort
SELECT ALL 64 AS col0, + 65 col0
----
64
65

query II rowsort
SELECT - 66 AS col0, 46
----
-66
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7084
SELECT ALL 11 * ( - 27 ) DIV + COUNT( * )
----
-297

skipif mysql # not compatible
query I rowsort label-7084
SELECT ALL 11 * ( - 27 ) / + COUNT ( * )
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-7085
SELECT DISTINCT + COUNT( - + 63 )
----
1

skipif mysql # not compatible
query I rowsort label-7085
SELECT DISTINCT + COUNT ( - + 63 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7086
SELECT + 15 + + 34 + 34 * COUNT( * ) * + 52 + + 23 AS col1
----
1840

skipif mysql # not compatible
query I rowsort label-7086
SELECT + 15 + + 34 + 34 * COUNT ( * ) * + 52 + + 23 AS col1
----
1840

query I rowsort
SELECT 0 * + + 21 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7089
SELECT + 28 + - 21 + + ( + + 32 ) + + + COUNT( * ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-7089
SELECT + 28 + - 21 + + ( + + 32 ) + + + COUNT ( * ) AS col2
----
40

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

query I rowsort
SELECT 49 + + 0
----
49

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

skipif mysql # not compatible
query I rowsort label-7092
SELECT DISTINCT - 61 * - 14 + + CAST ( COUNT ( * ) AS INTEGER ) * + 34 * - - 94
----
4050

query I rowsort
SELECT ALL 20 + - 84
----
-64

query I rowsort
SELECT ALL + 45 + + - 3 AS col0
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-7095
SELECT DISTINCT COUNT( * ) col2, 73
----
1
73

skipif mysql # not compatible
query II rowsort label-7095
SELECT DISTINCT COUNT ( * ) col2, 73
----
1
73

query I rowsort
SELECT ALL - 23 + 52
----
29

query I rowsort
SELECT DISTINCT - 12 + + + 52
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7098
SELECT COUNT( * ) + 93 + + - CASE 65 WHEN - 32 THEN - 9 + 54 * 55 + CAST( NULL AS SIGNED ) + - - 9 WHEN - + 73 THEN NULL ELSE + ( + 55 ) END + 6 * 30 DIV COUNT( * )
----
219

skipif mysql # not compatible
query I rowsort label-7098
SELECT COUNT ( * ) + 93 + + - CASE 65 WHEN - 32 THEN - 9 + 54 * 55 + CAST ( NULL AS INTEGER ) + - - 9 WHEN - + 73 THEN NULL ELSE + ( + 55 ) END + 6 * 30 / COUNT ( * )
----
219

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT ALL 61 + - - 62 + - - 57 + - MIN( - 4 ) * 10
----
220

skipif mysql # not compatible
query I rowsort label-7099
SELECT ALL 61 + - - 62 + - - 57 + - MIN ( - 4 ) * 10
----
220

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7102
SELECT + + CASE + 70 WHEN + ( + + 78 ) THEN NULL WHEN - 90 * 66 - + + 66 THEN + 99 WHEN - 13 + + ( + + 53 ) THEN 11 + + MAX( DISTINCT - 29 ) ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7102
SELECT + + CASE + 70 WHEN + ( + + 78 ) THEN NULL WHEN - 90 * 66 - + + 66 THEN + 99 WHEN - 13 + + ( + + 53 ) THEN 11 + + MAX ( DISTINCT - 29 ) ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7103
SELECT - 53 * - + 93 * + COUNT( * ) + + 96
----
5025

skipif mysql # not compatible
query I rowsort label-7103
SELECT - 53 * - + 93 * + COUNT ( * ) + + 96
----
5025

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

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

query II rowsort
SELECT + - 28 AS col1, 57 AS col0
----
-28
57

query I rowsort
SELECT ALL 67 * 70
----
4690

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7107
SELECT ALL COUNT( * ) + + - 55 DIV - 54
----
2

skipif mysql # not compatible
query I rowsort label-7107
SELECT ALL COUNT ( * ) + + - 55 / - 54
----
2

query II rowsort
SELECT ALL - ( + 83 ) AS col2, + 3 AS col1
----
-83
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7109
SELECT DISTINCT + SUM( DISTINCT - 15 ) - ( COUNT( * ) ) AS col1, 32 + - 63
----
-16
-31

skipif mysql # not compatible
query II rowsort label-7109
SELECT DISTINCT + SUM ( DISTINCT - 15 ) - ( COUNT ( * ) ) AS col1, 32 + - 63
----
-16
-31

query I rowsort
SELECT ALL - 96 * - 97 * 22 * + 19 col0
----
3892416

onlyif mysql # aggregate syntax: 
query I rowsort label-7111
SELECT ALL - CASE + + ( COUNT( * ) ) WHEN COUNT( * ) THEN - + ( - 46 ) END
----
-46

skipif mysql # not compatible
query I rowsort label-7111
SELECT ALL - CASE + + ( COUNT ( * ) ) WHEN COUNT ( * ) THEN - + ( - 46 ) END
----
-46

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7113
SELECT 18 * - + ( 65 ) * CASE - 47 WHEN - 56 THEN + 66 * COUNT( * ) END / + NULLIF ( + - ( 6 ), - 97 ) * + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-7113
SELECT 18 * - + ( 65 ) * CASE - 47 WHEN - 56 THEN + 66 * COUNT ( * ) END / + NULLIF ( + - ( 6 ), - 97 ) * + 78
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7114
SELECT 54 * + COUNT( * ) * 51 AS col0
----
2754

skipif mysql # not compatible
query I rowsort label-7114
SELECT 54 * + COUNT ( * ) * 51 AS col0
----
2754

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7115
SELECT 23 * - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) + NULLIF ( + + 17, 23 ) * + + 85 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7115
SELECT 23 * - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) + NULLIF ( + + 17, 23 ) * + + 85 col1
----
NULL

query II rowsort
SELECT ALL + 33 * + 4, 86 + - - 99 AS col2
----
132
185

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

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

query I rowsort
SELECT 53 * ( 78 ) col2
----
4134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7119
SELECT ALL 36 * - MAX( ALL + 94 ) * + + COUNT( * ) * - + ( - - 31 ) * + ( + 66 ) + + MIN( DISTINCT - 93 ) + + COUNT( * ) + 55 DIV + 13 + + COALESCE ( NULLIF ( 99, - 89 ), 51 * - 13 ) DIV 56 AS col0
----
6923577

skipif mysql # not compatible
query I rowsort label-7119
SELECT ALL 36 * - MAX ( ALL + 94 ) * + + COUNT ( * ) * - + ( - - 31 ) * + ( + 66 ) + + MIN ( DISTINCT - 93 ) + + COUNT ( * ) + 55 / + 13 + + COALESCE ( NULLIF ( 99, - 89 ), 51 * - 13 ) / 56 AS col0
----
6923577

query I rowsort
SELECT 59 + - 9 AS col0
----
50

query I rowsort
SELECT DISTINCT - 70 * 84
----
-5880

onlyif mysql # DIV for integer division: 
query I rowsort label-7122
SELECT 78 + 71 DIV 29 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-7122
SELECT 78 + 71 / 29 AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7123
SELECT ALL + 34 + - COUNT( - + ( + 95 ) ) * + ( - 11 ) * - + 19 AS col1
----
-175

skipif mysql # not compatible
query I rowsort label-7123
SELECT ALL + 34 + - COUNT ( - + ( + 95 ) ) * + ( - 11 ) * - + 19 AS col1
----
-175

query I rowsort
SELECT 15 + - 40 AS col2
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7125
SELECT - 26 * + + CAST( 52 AS SIGNED ) - - - SUM( - 32 ) AS col1
----
-1320

skipif mysql # not compatible
query I rowsort label-7125
SELECT - 26 * + + CAST ( 52 AS INTEGER ) - - - SUM ( - 32 ) AS col1
----
-1320

query I rowsort
SELECT ALL + 74 + - - 29 AS col1
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-7127
SELECT DISTINCT - 16 + - ( MIN( ALL + 23 ) ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-7127
SELECT DISTINCT - 16 + - ( MIN ( ALL + 23 ) ) AS col0
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7128
SELECT + - 88 + + 9 + 90 - 73 DIV - SUM( + + 58 ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-7128
SELECT + - 88 + + 9 + 90 - 73 / - SUM ( + + 58 ) AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7129
SELECT DISTINCT MIN( + + 36 ) * + MIN( ALL + + ( + 54 ) ) AS col2
----
1944

skipif mysql # not compatible
query I rowsort label-7129
SELECT DISTINCT MIN ( + + 36 ) * + MIN ( ALL + + ( + 54 ) ) AS col2
----
1944

query I rowsort
SELECT + - 27 * - 59
----
1593

query I rowsort
SELECT ALL + 58 + + 16
----
74

query I rowsort
SELECT + 65 * - + 7 AS col1
----
-455

onlyif mysql # aggregate syntax: 
query I rowsort label-7133
SELECT ALL + COUNT( + 12 ) * 42 * MIN( NULLIF ( - - 47, 29 + + - 63 ) ) + + COUNT( * ) + - 58
----
1917

skipif mysql # not compatible
query I rowsort label-7133
SELECT ALL + COUNT ( + 12 ) * 42 * MIN ( NULLIF ( - - 47, 29 + + - 63 ) ) + + COUNT ( * ) + - 58
----
1917

onlyif mysql # aggregate syntax: 
query I rowsort label-7134
SELECT ALL 39 - - MAX( - 26 ) - - COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-7134
SELECT ALL 39 - - MAX ( - 26 ) - - COUNT ( * )
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7135
SELECT 54 / - 8 * + - CASE + 91 WHEN + 45 THEN NULL ELSE + - 84 END + - 47 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7135
SELECT 54 / - 8 * + - CASE + 91 WHEN + 45 THEN NULL ELSE + - 84 END + - 47 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7137
SELECT DISTINCT + 67 AS col2, + MAX( DISTINCT 58 )
----
67
58

skipif mysql # not compatible
query II rowsort label-7137
SELECT DISTINCT + 67 AS col2, + MAX ( DISTINCT 58 )
----
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7138
SELECT + 2 * + SUM( DISTINCT - 5 )
----
-10

skipif mysql # not compatible
query I rowsort label-7138
SELECT + 2 * + SUM ( DISTINCT - 5 )
----
-10

query II rowsort
SELECT + 84 col0, - 24
----
84
-24

query I rowsort
SELECT DISTINCT - 39 * 57 * - 55 - + 84
----
122181

query I rowsort
SELECT DISTINCT - 47 * - - 65
----
-3055

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

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

query II rowsort
SELECT ALL COALESCE ( - ( 24 ), + 70 ) * + 36 AS col0, ( + ( 25 ) ) AS col2
----
-864
25

query I rowsort
SELECT + 30 - - 23 col1
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-7145
SELECT + 88 DIV 40 * - COALESCE ( 43, - + 53 ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-7145
SELECT + 88 / 40 * - COALESCE ( 43, - + 53 ) AS col0
----
-86

query I rowsort
SELECT ALL 11 * 0 + + + 65 * + 56 * - 48 * - + 14 * + 84
----
205470720

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7148
SELECT - 10 DIV + + 83
----
0

skipif mysql # not compatible
query I rowsort label-7148
SELECT - 10 / + + 83
----
0

query I rowsort
SELECT - 24 * - 12 col1
----
288

query I rowsort
SELECT ALL - + 59 + + 22 * - 9 + + 70 - ( - 43 )
----
-144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7151
SELECT ALL + COALESCE ( - + 54, COUNT( * ) + - 42, + NULLIF ( - + COUNT( * ), - - CAST( 57 AS SIGNED ) * + COUNT( * ) ) ) + - + 87 AS col0
----
-141

skipif mysql # not compatible
query I rowsort label-7151
SELECT ALL + COALESCE ( - + 54, COUNT ( * ) + - 42, + NULLIF ( - + COUNT ( * ), - - CAST ( 57 AS INTEGER ) * + COUNT ( * ) ) ) + - + 87 AS col0
----
-141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7152
SELECT - + 17 * - 74 + - - 29 * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7152
SELECT - + 17 * - 74 + - - 29 * CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT DISTINCT + 95 + 75
----
170

query II rowsort
SELECT 29, CASE WHEN NOT NULL NOT BETWEEN + 61 AND ( NULL ) THEN 45 + 98 ELSE NULL END AS col1
----
29
NULL

query I rowsort
SELECT DISTINCT - - 34 * 27 AS col0
----
918

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7156
SELECT - CAST( NULL AS SIGNED ) + + NULLIF ( + 73, 84 ) - + + COUNT( * ) - - 76 + - + 24 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7156
SELECT - CAST ( NULL AS INTEGER ) + + NULLIF ( + 73, 84 ) - + + COUNT ( * ) - - 76 + - + 24 * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7157
SELECT - 26 + + 36 * + CAST( NULL AS SIGNED ) * 79
----
NULL

skipif mysql # not compatible
query I rowsort label-7157
SELECT - 26 + + 36 * + CAST ( NULL AS INTEGER ) * 79
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7158
SELECT + SUM( ALL + 43 ) - 82
----
-39

skipif mysql # not compatible
query I rowsort label-7158
SELECT + SUM ( ALL + 43 ) - 82
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7159
SELECT CASE + 61 WHEN - 15 + - 30 - + 3 THEN NULL WHEN + + COUNT( * ) THEN NULL WHEN + COUNT( * ) THEN + 3 * - 95 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7159
SELECT CASE + 61 WHEN - 15 + - 30 - + 3 THEN NULL WHEN + + COUNT ( * ) THEN NULL WHEN + COUNT ( * ) THEN + 3 * - 95 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7160
SELECT DISTINCT + - 42 * - MAX( - + NULLIF ( - 52, + 88 * - - 81 + - 24 + - 43 ) ) + + + 15 + - CASE - 53 WHEN 24 THEN + - 73 * - 54 WHEN + 87 - 32 THEN + 15 WHEN - 90 / - 57 + - 37 THEN COUNT( * ) ELSE NULL END + + CAST( NULL AS SIGNED ) * 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7160
SELECT DISTINCT + - 42 * - MAX ( - + NULLIF ( - 52, + 88 * - - 81 + - 24 + - 43 ) ) + + + 15 + - CASE - 53 WHEN 24 THEN + - 73 * - 54 WHEN + 87 - 32 THEN + 15 WHEN - 90 / - 57 + - 37 THEN COUNT ( * ) ELSE NULL END + + CAST ( NULL AS INTEGER ) * 70 AS col1
----
NULL

query I rowsort
SELECT ALL - - 79 - + - 54 - + - 17 * - 75 AS col1
----
-1142

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

skipif mysql # not compatible
query I rowsort label-7162
SELECT DISTINCT - COUNT ( ALL + 88 ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7163
SELECT DISTINCT - + 29 - 61 DIV 95 AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-7163
SELECT DISTINCT - + 29 - 61 / 95 AS col1
----
-29

query I rowsort
SELECT + - 41 + 56 AS col0
----
15

query I rowsort
SELECT + 91 + + 84 + 41
----
216

query II rowsort
SELECT - 2 * + 49 AS col1, - 11 AS col0
----
-98
-11

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7168
SELECT ALL ( - CASE WHEN NOT NULL NOT BETWEEN NULL AND - 67 THEN - - SUM( ALL + 29 ) END ) * 13 - 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7168
SELECT ALL ( - CASE WHEN NOT NULL NOT BETWEEN NULL AND - 67 THEN - - SUM ( ALL + 29 ) END ) * 13 - 8 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7169
SELECT 69 DIV COUNT( * ) * COUNT( CASE 65 WHEN + - 48 + - + 13 THEN NULL ELSE - 41 END ) DIV + COUNT( * ) * COUNT( * ) + 43 + COUNT( * ) AS col1, - COUNT( * ) + + + 81
----
113
80

skipif mysql # not compatible
query II rowsort label-7169
SELECT 69 / COUNT ( * ) * COUNT ( CASE 65 WHEN + - 48 + - + 13 THEN NULL ELSE - 41 END ) / + COUNT ( * ) * COUNT ( * ) + 43 + COUNT ( * ) AS col1, - COUNT ( * ) + + + 81
----
113
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7170
SELECT + NULLIF ( + 66, + SUM( - 68 ) * + NULLIF ( 11, - COALESCE ( + NULLIF ( + CAST( - 80 AS SIGNED ), - 50 ), + COUNT( * ) + - 74 ) ) )
----
66

skipif mysql # not compatible
query I rowsort label-7170
SELECT + NULLIF ( + 66, + SUM ( - 68 ) * + NULLIF ( 11, - COALESCE ( + NULLIF ( + CAST ( - 80 AS INTEGER ), - 50 ), + COUNT ( * ) + - 74 ) ) )
----
66

query I rowsort
SELECT + 55 + - 63
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7172
SELECT + CASE + COUNT( + 91 ) WHEN + - CAST( + + 95 AS SIGNED ) THEN + 76 * - - 78 - - COUNT( * ) WHEN - 25 THEN - 20 * + 50 * COUNT( DISTINCT + 62 ) - - 33 + - MAX( 58 ) ELSE NULL END / 23
----
NULL

skipif mysql # not compatible
query I rowsort label-7172
SELECT + CASE + COUNT ( + 91 ) WHEN + - CAST ( + + 95 AS INTEGER ) THEN + 76 * - - 78 - - COUNT ( * ) WHEN - 25 THEN - 20 * + 50 * COUNT ( DISTINCT + 62 ) - - 33 + - MAX ( 58 ) ELSE NULL END / 23
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7174
SELECT ALL + CASE - + 32 WHEN 11 * - - 21 / 70 + - CAST( + 87 AS SIGNED ) - + - ( 98 ) THEN NULL ELSE + 1 + - CASE - COUNT( 91 ) WHEN + COUNT( * ) / - - 41 THEN + 81 END END * - COUNT( DISTINCT 43 * 96 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7174
SELECT ALL + CASE - + 32 WHEN 11 * - - 21 / 70 + - CAST ( + 87 AS INTEGER ) - + - ( 98 ) THEN NULL ELSE + 1 + - CASE - COUNT ( 91 ) WHEN + COUNT ( * ) / - - 41 THEN + 81 END END * - COUNT ( DISTINCT 43 * 96 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7175
SELECT ALL + MAX( 20 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-7175
SELECT ALL + MAX ( 20 ) AS col2
----
20

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7177
SELECT DISTINCT COUNT( - - 35 ) * - COUNT( * ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-7177
SELECT DISTINCT COUNT ( - - 35 ) * - COUNT ( * ) col0
----
-1

query II rowsort
SELECT ALL + 89, - 2 AS col2
----
89
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7179
SELECT + ( + 19 ) * + 98 + - - ( - COUNT( * ) )
----
1861

skipif mysql # not compatible
query I rowsort label-7179
SELECT + ( + 19 ) * + 98 + - - ( - COUNT ( * ) )
----
1861

onlyif mysql # DIV for integer division: 
query I rowsort label-7180
SELECT 6 DIV + + ( - - 94 ) + + + 65 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-7180
SELECT 6 / + + ( - - 94 ) + + + 65 AS col1
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-7181
SELECT DISTINCT 64 DIV - 74 + - 81 AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-7181
SELECT DISTINCT 64 / - 74 + - 81 AS col0
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7182
SELECT + NULLIF ( + 14, + COALESCE ( - COALESCE ( ( 45 ), - + 96 * - CAST( NULL AS SIGNED ) * COUNT( * ) * + 42 * CASE + NULLIF ( - 63, + - 56 ) WHEN 87 THEN - 14 + CAST( NULL AS SIGNED ) END - + AVG ( 16 ) ), + 89 * + 96 + - 6 ) * - CAST( - 37 AS SIGNED ) ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-7182
SELECT + NULLIF ( + 14, + COALESCE ( - COALESCE ( ( 45 ), - + 96 * - CAST ( NULL AS INTEGER ) * COUNT ( * ) * + 42 * CASE + NULLIF ( - 63, + - 56 ) WHEN 87 THEN - 14 + CAST ( NULL AS INTEGER ) END - + AVG ( 16 ) ), + 89 * + 96 + - 6 ) * - CAST ( - 37 AS INTEGER ) ) AS col1
----
14

query I rowsort
SELECT ( 76 ) col1
----
76

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7185
SELECT + CAST( - CAST( - - 72 AS SIGNED ) AS SIGNED ) * 12 * + 0 + - - 41 + SUM( + - ( - + 20 ) ) * - + 61
----
-1179

skipif mysql # not compatible
query I rowsort label-7185
SELECT + CAST ( - CAST ( - - 72 AS INTEGER ) AS INTEGER ) * 12 * + 0 + - - 41 + SUM ( + - ( - + 20 ) ) * - + 61
----
-1179

query I rowsort
SELECT - ( + 72 ) - + + 78 AS col1
----
-150

query I rowsort
SELECT DISTINCT 94 * + 50 AS col2
----
4700

onlyif mysql # aggregate syntax: 
query I rowsort label-7188
SELECT DISTINCT 7 * + 45 * - COUNT( * ) + 93
----
-222

skipif mysql # not compatible
query I rowsort label-7188
SELECT DISTINCT 7 * + 45 * - COUNT ( * ) + 93
----
-222

onlyif mysql # aggregate syntax: 
query I rowsort label-7189
SELECT ALL ( - 3 ) * 63 - - + NULLIF ( - + COALESCE ( + - 11, + 33 ), 31 ) + + - COUNT( * ) AS col0
----
-179

skipif mysql # not compatible
query I rowsort label-7189
SELECT ALL ( - 3 ) * 63 - - + NULLIF ( - + COALESCE ( + - 11, + 33 ), 31 ) + + - COUNT ( * ) AS col0
----
-179

query I rowsort
SELECT ALL + + 11 + - 90 AS col2
----
-79

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7192
SELECT ALL - + CAST( + ( + - 41 ) AS SIGNED )
----
41

skipif mysql # not compatible
query I rowsort label-7192
SELECT ALL - + CAST ( + ( + - 41 ) AS INTEGER )
----
41

query I rowsort
SELECT - 31 + + 70
----
39

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7195
SELECT - COUNT( * ) * - + 15 + + 1 * + 87 AS col1
----
102

skipif mysql # not compatible
query I rowsort label-7195
SELECT - COUNT ( * ) * - + 15 + + 1 * + 87 AS col1
----
102

query I rowsort
SELECT ALL COALESCE ( ( - 85 ), 22 + 96 + + ( - 62 ) ) + 89 AS col1
----
4

query I rowsort
SELECT - 83 * - ( - 46 ) + 18 AS col0
----
-3800

onlyif mysql # aggregate syntax: 
query I rowsort label-7198
SELECT - 58 + COUNT( * ) * - 22 AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-7198
SELECT - 58 + COUNT ( * ) * - 22 AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7199
SELECT + COALESCE ( + 76, COUNT( * ) * - 92 * - 49 )
----
76

skipif mysql # not compatible
query I rowsort label-7199
SELECT + COALESCE ( + 76, COUNT ( * ) * - 92 * - 49 )
----
76

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

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

query I rowsort
SELECT 34 * - 9 * 54
----
-16524

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7203
SELECT 26 DIV - COUNT( * ) AS col0, 17 + + 3 + - ( + + 70 ) AS col0
----
-26
-50

skipif mysql # not compatible
query II rowsort label-7203
SELECT 26 / - COUNT ( * ) AS col0, 17 + + 3 + - ( + + 70 ) AS col0
----
-26
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-7204
SELECT ALL - 39 DIV - 99 col2
----
0

skipif mysql # not compatible
query I rowsort label-7204
SELECT ALL - 39 / - 99 col2
----
0

query II rowsort
SELECT ALL 49 AS col1, - 72 col2
----
49
-72

onlyif mysql # aggregate syntax: 
query III rowsort label-7206
SELECT 11 AS col2, + COUNT( * ) col0, + 99
----
11
1
99

skipif mysql # not compatible
query III rowsort label-7206
SELECT 11 AS col2, + COUNT ( * ) col0, + 99
----
11
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7207
SELECT DISTINCT + 48 * ( - MAX( ALL - + 49 ) )
----
2352

skipif mysql # not compatible
query I rowsort label-7207
SELECT DISTINCT + 48 * ( - MAX ( ALL - + 49 ) )
----
2352

onlyif mysql # aggregate syntax: 
query II rowsort label-7208
SELECT ALL - 62, + COUNT( * ) * - + 86 * + + 92 AS col1
----
-62
-7912

skipif mysql # not compatible
query II rowsort label-7208
SELECT ALL - 62, + COUNT ( * ) * - + 86 * + + 92 AS col1
----
-62
-7912

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT 18 - 14 + - COUNT( * ) * - + 11 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-7209
SELECT 18 - 14 + - COUNT ( * ) * - + 11 AS col1
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7210
SELECT ALL + CAST( 4 AS SIGNED ) * + - 50 * + 23
----
-4600

skipif mysql # not compatible
query I rowsort label-7210
SELECT ALL + CAST ( 4 AS INTEGER ) * + - 50 * + 23
----
-4600

query I rowsort
SELECT 25 + - + 16 AS col1
----
9

query I rowsort
SELECT ALL + 74 * - 8 * + + 44 col1
----
-26048

onlyif mysql # aggregate syntax: 
query II rowsort label-7213
SELECT ALL 60 + + + 52 AS col0, - COUNT( * ) * 49
----
112
-49

skipif mysql # not compatible
query II rowsort label-7213
SELECT ALL 60 + + + 52 AS col0, - COUNT ( * ) * 49
----
112
-49

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7215
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 42 * 48 * + - 39 * - - CAST( NULL AS SIGNED ) * - 59 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7215
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 42 * 48 * + - 39 * - - CAST ( NULL AS INTEGER ) * - 59 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7216
SELECT 34 DIV COALESCE ( - 60, - MIN( - 78 ) )
----
0

skipif mysql # not compatible
query I rowsort label-7216
SELECT 34 / COALESCE ( - 60, - MIN ( - 78 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7217
SELECT CASE + - 67 WHEN 8 THEN + + 22 + - + 34 * 5 WHEN - 79 * + 29 * + 7 THEN NULL END + - COUNT( * ) / - 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7217
SELECT CASE + - 67 WHEN 8 THEN + + 22 + - + 34 * 5 WHEN - 79 * + 29 * + 7 THEN NULL END + - COUNT ( * ) / - 93 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7218
SELECT ALL + 29 + - - CASE 95 WHEN + - 35 + + + 8 THEN NULL WHEN - - ( - ( + 18 ) ) THEN - 85 + 47 - - 28 + - 69 - - - 12 * - 60 * - 32 / 6 WHEN + CASE - 73 WHEN - 70 + - NULLIF ( - 54, 61 * + 7 ) THEN NULL WHEN 52 THEN NULL WHEN - COUNT( * ) + + MAX( 8 - 96 ) THEN COALESCE ( 11, SUM( ALL + 91 ) ) + - NULLIF ( 35, + 17 ) ELSE NULL END THEN - 94 END + + 27 * 97 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7218
SELECT ALL + 29 + - - CASE 95 WHEN + - 35 + + + 8 THEN NULL WHEN - - ( - ( + 18 ) ) THEN - 85 + 47 - - 28 + - 69 - - - 12 * - 60 * - 32 / 6 WHEN + CASE - 73 WHEN - 70 + - NULLIF ( - 54, 61 * + 7 ) THEN NULL WHEN 52 THEN NULL WHEN - COUNT ( * ) + + MAX ( 8 - 96 ) THEN COALESCE ( 11, SUM ( ALL + 91 ) ) + - NULLIF ( 35, + 17 ) ELSE NULL END THEN - 94 END + + 27 * 97 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 59 + + 31 AS col2
----
90

query I rowsort
SELECT ALL 77 * ( + + 66 ) AS col2
----
5082

query I rowsort
SELECT DISTINCT 12 + 38 * - 43 AS col1
----
-1622

query I rowsort
SELECT ALL 47 + - 40
----
7

query I rowsort
SELECT DISTINCT - 97 + - ( - - 73 ) col0
----
-170

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT ALL - COUNT( ALL 18 ) - COALESCE ( + COUNT( * ), + 4 ) col2
----
-2

skipif mysql # not compatible
query I rowsort label-7226
SELECT ALL - COUNT ( ALL 18 ) - COALESCE ( + COUNT ( * ), + 4 ) col2
----
-2

query I rowsort
SELECT CASE - + 89 WHEN 37 THEN - 23 ELSE NULL END * 94 + + + 89 * - + 17 - - 26 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7228
SELECT 69 * - + 26 + - 34 - - + COALESCE ( + 90, + + COUNT( * ) )
----
-1738

skipif mysql # not compatible
query I rowsort label-7228
SELECT 69 * - + 26 + - 34 - - + COALESCE ( + 90, + + COUNT ( * ) )
----
-1738

query I rowsort
SELECT 48 * 32 + + ( + 44 ) * + 9 AS col1
----
1932

query I rowsort
SELECT ALL 5 * 91 AS col1
----
455

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7231
SELECT COUNT( * ) * + COUNT( * ) - - 36 DIV 36 * - 26 + 3 + + 97 AS col0
----
75

skipif mysql # not compatible
query I rowsort label-7231
SELECT COUNT ( * ) * + COUNT ( * ) - - 36 / 36 * - 26 + 3 + + 97 AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7232
SELECT + 71 * COUNT( * ) * + NULLIF ( + 38, + - COUNT( * ) ) AS col1
----
2698

skipif mysql # not compatible
query I rowsort label-7232
SELECT + 71 * COUNT ( * ) * + NULLIF ( + 38, + - COUNT ( * ) ) AS col1
----
2698

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7233
SELECT COUNT( * ) + ( + + NULLIF ( - COUNT( * ), - CASE + SUM( DISTINCT + CAST( NULL AS DECIMAL ) ) WHEN - 86 / 29 THEN + CAST( - + 71 AS SIGNED ) * - COUNT( - - 58 ) - + MAX( - - 62 ) + + 6 * - ( - 53 ) END + + COUNT( * ) / 60 ) ) + 66 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-7233
SELECT COUNT ( * ) + ( + + NULLIF ( - COUNT ( * ), - CASE + SUM ( DISTINCT + CAST ( NULL AS REAL ) ) WHEN - 86 / 29 THEN + CAST ( - + 71 AS INTEGER ) * - COUNT ( - - 58 ) - + MAX ( - - 62 ) + + 6 * - ( - 53 ) END + + COUNT ( * ) / 60 ) ) + 66 AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7234
SELECT ( - 36 ) + + + 24 + - - 32 * MAX( ALL 35 ) * + + 18
----
20148

skipif mysql # not compatible
query I rowsort label-7234
SELECT ( - 36 ) + + + 24 + - - 32 * MAX ( ALL 35 ) * + + 18
----
20148

onlyif mysql # aggregate syntax: 
query II rowsort label-7235
SELECT 63 - - SUM( DISTINCT + + 27 ) AS col0, + NULLIF ( - + 80, - ( - - 99 ) )
----
90
-80

skipif mysql # not compatible
query II rowsort label-7235
SELECT 63 - - SUM ( DISTINCT + + 27 ) AS col0, + NULLIF ( - + 80, - ( - - 99 ) )
----
90
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-7236
SELECT DISTINCT - 14 DIV - 50 * 41 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7236
SELECT DISTINCT - 14 / - 50 * 41 AS col1
----
0

query I rowsort
SELECT 37 + + + 22
----
59

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

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

query II rowsort
SELECT ALL 27 AS col1, 26
----
27
26

query I rowsort
SELECT ALL + 42 + 75
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-7241
SELECT DISTINCT - 88 * - - 24 * - COUNT( * ) col2
----
2112

skipif mysql # not compatible
query I rowsort label-7241
SELECT DISTINCT - 88 * - - 24 * - COUNT ( * ) col2
----
2112

onlyif mysql # DIV for integer division: 
query I rowsort label-7242
SELECT 69 DIV - 93
----
0

skipif mysql # not compatible
query I rowsort label-7242
SELECT 69 / - 93
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7243
SELECT ALL + 43 + CAST( - - MAX( DISTINCT - - 7 ) AS SIGNED )
----
50

skipif mysql # not compatible
query I rowsort label-7243
SELECT ALL + 43 + CAST ( - - MAX ( DISTINCT - - 7 ) AS INTEGER )
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7244
SELECT - CASE COUNT( * ) WHEN CAST( 87 AS SIGNED ) * - CASE 70 WHEN + 5 THEN - - 29 ELSE NULL END THEN - NULLIF ( - COUNT( * ), CAST( NULL AS SIGNED ) / - - 58 * - - 56 + + 1 ) + MAX( DISTINCT - + 14 ) + - 51 * + CAST( NULL AS DECIMAL ) WHEN 40 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7244
SELECT - CASE COUNT ( * ) WHEN CAST ( 87 AS INTEGER ) * - CASE 70 WHEN + 5 THEN - - 29 ELSE NULL END THEN - NULLIF ( - COUNT ( * ), CAST ( NULL AS INTEGER ) / - - 58 * - - 56 + + 1 ) + MAX ( DISTINCT - + 14 ) + - 51 * + CAST ( NULL AS REAL ) WHEN 40 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7245
SELECT 33 col2, - 37 DIV + 49 * + 51 AS col0
----
33
0

skipif mysql # not compatible
query II rowsort label-7245
SELECT 33 col2, - 37 / + 49 * + 51 AS col0
----
33
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7246
SELECT 50 + + 22 - + + COUNT( * ) + + 47 / 21 + + - CAST( - + 44 AS SIGNED ) + CASE - 8 WHEN - 87 THEN - ( - ( - - AVG ( DISTINCT + - 44 ) ) ) + - 69 - - AVG ( - 42 ) * - + 7 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7246
SELECT 50 + + 22 - + + COUNT ( * ) + + 47 / 21 + + - CAST ( - + 44 AS INTEGER ) + CASE - 8 WHEN - 87 THEN - ( - ( - - AVG ( DISTINCT + - 44 ) ) ) + - 69 - - AVG ( - 42 ) * - + 7 ELSE NULL END
----
NULL

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

query I rowsort
SELECT DISTINCT - 25 * - 92 AS col2
----
2300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7249
SELECT - 11 * + MAX( 69 ) DIV - 64 + - - 22
----
33

skipif mysql # not compatible
query I rowsort label-7249
SELECT - 11 * + MAX ( 69 ) / - 64 + - - 22
----
33

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7250
SELECT + CASE - 51 WHEN SUM( + 27 ) + + 32 - - MAX( ALL CAST( + 83 AS DECIMAL ) ) + AVG ( ALL - 67 ) THEN - 63 * 45 / - - 52 + + ( - COALESCE ( - + 15, + 70, + 30 ) ) + 84 * + 45 WHEN 99 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7250
SELECT + CASE - 51 WHEN SUM ( + 27 ) + + 32 - - MAX ( ALL CAST ( + 83 AS REAL ) ) + AVG ( ALL - 67 ) THEN - 63 * 45 / - - 52 + + ( - COALESCE ( - + 15, + 70, + 30 ) ) + 84 * + 45 WHEN 99 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT - + 19 + 93 AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7252
SELECT + 35 - - + 90 - ( + COUNT( * ) )
----
124

skipif mysql # not compatible
query I rowsort label-7252
SELECT + 35 - - + 90 - ( + COUNT ( * ) )
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-7253
SELECT + 49 - - COUNT( * ) - + 85 * 34 AS col1
----
-2840

skipif mysql # not compatible
query I rowsort label-7253
SELECT + 49 - - COUNT ( * ) - + 85 * 34 AS col1
----
-2840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7254
SELECT ALL - COALESCE ( SUM( - - 7 ), - - 59, 84 - + 75 ) DIV - 4
----
1

skipif mysql # not compatible
query I rowsort label-7254
SELECT ALL - COALESCE ( SUM ( - - 7 ), - - 59, 84 - + 75 ) / - 4
----
1

query I rowsort
SELECT - CASE WHEN NOT 14 NOT IN ( 5 ) THEN + 26 ELSE + 80 + - 42 END + 85
----
47

query I rowsort
SELECT DISTINCT 98 * - 73 * + 85 - + NULLIF ( ( 66 ), - - 40 )
----
-608156

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7259
SELECT - - ( - 12 ) DIV - + 17 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7259
SELECT - - ( - 12 ) / - + 17 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7260
SELECT 53 * - 6 + + 38 DIV 41 + - 17 AS col0
----
-335

skipif mysql # not compatible
query I rowsort label-7260
SELECT 53 * - 6 + + 38 / 41 + - 17 AS col0
----
-335

query I rowsort
SELECT + + 79 + + + 75 col1
----
154

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7262
SELECT ALL - COUNT( DISTINCT - 99 ) + NULLIF ( 74, - COUNT( * ) + - 44 / + COALESCE ( - COALESCE ( MAX( + 38 ), + + 9 + - 92 / + + 66 + + + CAST( NULL AS DECIMAL ) ), + 96 ) * - 83 / + 74 ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-7262
SELECT ALL - COUNT ( DISTINCT - 99 ) + NULLIF ( 74, - COUNT ( * ) + - 44 / + COALESCE ( - COALESCE ( MAX ( + 38 ), + + 9 + - 92 / + + 66 + + + CAST ( NULL AS REAL ) ), + 96 ) * - 83 / + 74 ) AS col0
----
73

query I rowsort
SELECT DISTINCT 85 + 60 AS col0
----
145

query I rowsort
SELECT ALL 14 + + + 10 AS col0
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7265
SELECT DISTINCT MAX( DISTINCT NULLIF ( + + 81, COALESCE ( - 28, - 21 ) * - NULLIF ( - CAST( - + 74 AS SIGNED ), + 37 ) ) ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-7265
SELECT DISTINCT MAX ( DISTINCT NULLIF ( + + 81, COALESCE ( - 28, - 21 ) * - NULLIF ( - CAST ( - + 74 AS INTEGER ), + 37 ) ) ) AS col0
----
81

query I rowsort
SELECT ALL - 1 * - 31 AS col2
----
31

query I rowsort
SELECT DISTINCT 49 + - ( + 0 )
----
49

query I rowsort
SELECT + 78 * 41 * + 20 AS col1
----
63960

query I rowsort
SELECT + CASE - 18 WHEN + 95 THEN NULL ELSE - ( ( - 79 ) ) + - - 48 END - 52 col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7270
SELECT ALL MAX( ALL + + 88 ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-7270
SELECT ALL MAX ( ALL + + 88 ) AS col0
----
88

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7271
SELECT + CASE - CASE + 9 WHEN - - 34 THEN - 12 WHEN + CAST( + 3 AS DECIMAL ) THEN NULL ELSE NULL END WHEN + 83 THEN - CASE - - 26 WHEN - + 10 THEN - 26 WHEN - + 76 + - 77 + + - COUNT( DISTINCT 15 ) THEN 97 END ELSE + 41 END + + - 61 AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-7271
SELECT + CASE - CASE + 9 WHEN - - 34 THEN - 12 WHEN + CAST ( + 3 AS REAL ) THEN NULL ELSE NULL END WHEN + 83 THEN - CASE - - 26 WHEN - + 10 THEN - 26 WHEN - + 76 + - 77 + + - COUNT ( DISTINCT 15 ) THEN 97 END ELSE + 41 END + + - 61 AS col2
----
-20

query I rowsort
SELECT + 42 * 30 col1
----
1260

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7273
SELECT - NULLIF ( - 90, + 48 ) * + + 15 DIV - COUNT( * )
----
-1350

skipif mysql # not compatible
query I rowsort label-7273
SELECT - NULLIF ( - 90, + 48 ) * + + 15 / - COUNT ( * )
----
-1350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7274
SELECT - ( CASE - + 86 WHEN - CAST( + COUNT( * ) AS SIGNED ) THEN NULL WHEN + COUNT( ALL 48 ) * + - SUM( + - 8 ) THEN 54 - + + 14 * + 83 + + COUNT( * ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7274
SELECT - ( CASE - + 86 WHEN - CAST ( + COUNT ( * ) AS INTEGER ) THEN NULL WHEN + COUNT ( ALL 48 ) * + - SUM ( + - 8 ) THEN 54 - + + 14 * + 83 + + COUNT ( * ) END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7275
SELECT DISTINCT - SUM( ALL - 82 ) + 82 + - NULLIF ( COUNT( DISTINCT + 74 ), + 89 ) - COUNT( * ) AS col1
----
162

skipif mysql # not compatible
query I rowsort label-7275
SELECT DISTINCT - SUM ( ALL - 82 ) + 82 + - NULLIF ( COUNT ( DISTINCT + 74 ), + 89 ) - COUNT ( * ) AS col1
----
162

query I rowsort
SELECT ALL NULLIF ( - 16, + AVG ( - - 13 ) * NULLIF ( + 72, + ( - + 90 ) * 83 / + 83 ) * - - ( - + ( + + 60 ) ) + - - ( + 14 ) / - 85 ) AS col1
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7277
SELECT DISTINCT 0 DIV - 27 col1, COUNT( ALL - 96 ) * - 98 AS col2
----
0
-98

skipif mysql # not compatible
query II rowsort label-7277
SELECT DISTINCT 0 / - 27 col1, COUNT ( ALL - 96 ) * - 98 AS col2
----
0
-98

query I rowsort
SELECT - NULLIF ( + 9, - 45 ) * - - 74 * 5 AS col2
----
-3330

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7279
SELECT - NULLIF ( - + ( - + CAST( + SUM( ALL 84 ) AS SIGNED ) ), + 84 ) + - 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7279
SELECT - NULLIF ( - + ( - + CAST ( + SUM ( ALL 84 ) AS INTEGER ) ), + 84 ) + - 37 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7280
SELECT DISTINCT 7 / - + 91 * - CAST( NULL AS SIGNED ) - + COALESCE ( - SUM( ALL 20 ), - 40 * - 29, + COUNT( * ) ) * ( - - 42 ) / - ( 82 ) * + MIN( 66 ) + SUM( DISTINCT + 46 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7280
SELECT DISTINCT 7 / - + 91 * - CAST ( NULL AS INTEGER ) - + COALESCE ( - SUM ( ALL 20 ), - 40 * - 29, + COUNT ( * ) ) * ( - - 42 ) / - ( 82 ) * + MIN ( 66 ) + SUM ( DISTINCT + 46 ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7281
SELECT + ( + 50 ) AS col1, - SUM( - + 93 ) * - 86 + + - 54 * + 56 + + + 61 - + 50 * - COUNT( * ) AS col0
----
50
-10911

skipif mysql # not compatible
query II rowsort label-7281
SELECT + ( + 50 ) AS col1, - SUM ( - + 93 ) * - 86 + + - 54 * + 56 + + + 61 - + 50 * - COUNT ( * ) AS col0
----
50
-10911

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7282
SELECT ALL + COUNT( * ) DIV - - 34 * - ( COUNT( * ) ) - + 25 + + + 80 * 18 + + 47
----
1462

skipif mysql # not compatible
query I rowsort label-7282
SELECT ALL + COUNT ( * ) / - - 34 * - ( COUNT ( * ) ) - + 25 + + + 80 * 18 + + 47
----
1462

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7283
SELECT + + 90 / - 67 + CAST( CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7283
SELECT + + 90 / - 67 + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT + 54 * 29
----
1566

onlyif mysql # aggregate syntax: 
query I rowsort label-7285
SELECT - 24 * + 24 * COUNT( ( - + NULLIF ( + + 38, + 91 ) ) )
----
-576

skipif mysql # not compatible
query I rowsort label-7285
SELECT - 24 * + 24 * COUNT ( ( - + NULLIF ( + + 38, + 91 ) ) )
----
-576

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

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

skipif mysql # not compatible
query I rowsort label-7287
SELECT ALL - - 33 * COUNT ( * ) + + 97 AS col2
----
130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7288
SELECT CASE 63 WHEN - - 65 + - CAST( + + 39 AS SIGNED ) THEN + 16 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7288
SELECT CASE 63 WHEN - - 65 + - CAST ( + + 39 AS INTEGER ) THEN + 16 END AS col1
----
NULL

query I rowsort
SELECT - + 82 * + 5 AS col0
----
-410

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7291
SELECT + CAST( NULL AS SIGNED ) * - 18 - - 67 + - 52 * 95 * COUNT( ALL + + 60 ) / + - 30 * MAX( - 4 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7291
SELECT + CAST ( NULL AS INTEGER ) * - 18 - - 67 + - 52 * 95 * COUNT ( ALL + + 60 ) / + - 30 * MAX ( - 4 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7292
SELECT ALL + 16 * - COUNT( * ) + 30 * 84 - - + 48
----
2552

skipif mysql # not compatible
query I rowsort label-7292
SELECT ALL + 16 * - COUNT ( * ) + 30 * 84 - - + 48
----
2552

query I rowsort
SELECT + 63 * 53 * 67
----
223713

query I rowsort
SELECT CASE + 29 WHEN - AVG ( ALL 67 ) THEN ( + 37 ) * NULLIF ( + 12, 64 ) - - 12 + + - ( NULLIF ( - 82, 11 ) ) - - 10 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-7295
SELECT ALL 45 * + COUNT( 42 ) + - COUNT( * ) AS col0, 41 AS col2, - ( - 35 )
----
44
41
35

skipif mysql # not compatible
query III rowsort label-7295
SELECT ALL 45 * + COUNT ( 42 ) + - COUNT ( * ) AS col0, 41 AS col2, - ( - 35 )
----
44
41
35

query I rowsort
SELECT DISTINCT 5 * - 30 + + 84
----
-66

query I rowsort
SELECT ALL 79 * - - 9 + 15 AS col1
----
726

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7298
SELECT + 2 - 45 + + + 38 DIV + SUM( DISTINCT 74 ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-7298
SELECT + 2 - 45 + + + 38 / + SUM ( DISTINCT 74 ) AS col1
----
-43

query I rowsort
SELECT ALL - 8 * + 31 + - 42 - 74 * - + 38 * - 7 + + - 38 + - 12 * - 63 AS col0
----
-19256

onlyif mysql # aggregate syntax: 
query I rowsort label-7300
SELECT - MIN( - ( - 59 ) ) * - 17 - + 15 * + COUNT( * )
----
988

skipif mysql # not compatible
query I rowsort label-7300
SELECT - MIN ( - ( - 59 ) ) * - 17 - + 15 * + COUNT ( * )
----
988

query I rowsort
SELECT + ( + 70 ) * - 83 col0
----
-5810

query I rowsort
SELECT ALL 60 + + 40 AS col1
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-7303
SELECT - COALESCE ( COUNT( * ), - 96 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7303
SELECT - COALESCE ( COUNT ( * ), - 96 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7304
SELECT ALL + CASE - 48 WHEN - + 16 - - 95 THEN NULL WHEN 1 * + 96 + - NULLIF ( + - COUNT( * ), 45 ) - - 3 + + 2 * - 74 THEN - 78 / + COALESCE ( + 83, - 36 ) + + 79 + - + 25 WHEN - - 26 - - 97 THEN NULL END - + ( + 84 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7304
SELECT ALL + CASE - 48 WHEN - + 16 - - 95 THEN NULL WHEN 1 * + 96 + - NULLIF ( + - COUNT ( * ), 45 ) - - 3 + + 2 * - 74 THEN - 78 / + COALESCE ( + 83, - 36 ) + + 79 + - + 25 WHEN - - 26 - - 97 THEN NULL END - + ( + 84 ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 72 + - 48
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7306
SELECT ALL 30 - + 74 * COUNT( ALL - 1 ) - 81 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7306
SELECT ALL 30 - + 74 * COUNT ( ALL - 1 ) - 81 + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7307
SELECT MAX( + + 73 ) * + ( + 50 )
----
3650

skipif mysql # not compatible
query I rowsort label-7307
SELECT MAX ( + + 73 ) * + ( + 50 )
----
3650

onlyif mysql # aggregate syntax: 
query I rowsort label-7308
SELECT ALL 48 * - ( - COUNT( * ) ) * 98 AS col0
----
4704

skipif mysql # not compatible
query I rowsort label-7308
SELECT ALL 48 * - ( - COUNT ( * ) ) * 98 AS col0
----
4704

onlyif mysql # aggregate syntax: 
query I rowsort label-7309
SELECT DISTINCT 59 - - - COUNT( * ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-7309
SELECT DISTINCT 59 - - - COUNT ( * ) AS col0
----
58

query I rowsort
SELECT CASE - 81 WHEN 43 THEN NULL ELSE 57 END + + 58
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7311
SELECT 7 + COALESCE ( - COUNT( * ), - MIN( CAST( NULL AS SIGNED ) ) ) * + 39 + + 12 + ( 18 )
----
-2

skipif mysql # not compatible
query I rowsort label-7311
SELECT 7 + COALESCE ( - COUNT ( * ), - MIN ( CAST ( NULL AS INTEGER ) ) ) * + 39 + + 12 + ( 18 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7312
SELECT DISTINCT 29 * + 56 * - MAX( - 40 )
----
64960

skipif mysql # not compatible
query I rowsort label-7312
SELECT DISTINCT 29 * + 56 * - MAX ( - 40 )
----
64960

onlyif mysql # DIV for integer division: 
query I rowsort label-7313
SELECT 84 + + 1 DIV + CASE + 8 WHEN - 68 THEN - - 13 ELSE 76 * + + 61 END * + 71 * + - 10
----
84

skipif mysql # not compatible
query I rowsort label-7313
SELECT 84 + + 1 / + CASE + 8 WHEN - 68 THEN - - 13 ELSE 76 * + + 61 END * + 71 * + - 10
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7314
SELECT CASE + COUNT( * ) WHEN + - 75 + + 50 THEN NULL ELSE + 36 END DIV - - CAST( + NULLIF ( 80, - CASE + 11 WHEN - 64 THEN NULL ELSE 71 END * 29 + 48 + 78 + - - 77 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-7314
SELECT CASE + COUNT ( * ) WHEN + - 75 + + 50 THEN NULL ELSE + 36 END / - - CAST ( + NULLIF ( 80, - CASE + 11 WHEN - 64 THEN NULL ELSE 71 END * 29 + 48 + 78 + - - 77 ) AS INTEGER )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7315
SELECT + - 35 DIV + NULLIF ( 95, - 31 * 31 ) * + 99 * COUNT( DISTINCT 53 ) DIV + 44 + 99 + - + 44, 2 AS col0
----
55
2

skipif mysql # not compatible
query II rowsort label-7315
SELECT + - 35 / + NULLIF ( 95, - 31 * 31 ) * + 99 * COUNT ( DISTINCT 53 ) / + 44 + 99 + - + 44, 2 AS col0
----
55
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7316
SELECT CASE + 76 WHEN - 0 * 85 * CAST( - 3 AS SIGNED ) THEN - 86 + - 64 + 77 + 77 * + 8 * 15 * - - CAST( NULL AS SIGNED ) + - + 66 * 16 WHEN + 92 * - CAST( COUNT( * ) AS SIGNED ) THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7316
SELECT CASE + 76 WHEN - 0 * 85 * CAST ( - 3 AS INTEGER ) THEN - 86 + - 64 + 77 + 77 * + 8 * 15 * - - CAST ( NULL AS INTEGER ) + - + 66 * 16 WHEN + 92 * - CAST ( COUNT ( * ) AS INTEGER ) THEN NULL END col2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7318
SELECT ALL + 83 DIV 34 * - + 9 + 68
----
50

skipif mysql # not compatible
query I rowsort label-7318
SELECT ALL + 83 / 34 * - + 9 + 68
----
50

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

skipif mysql # not compatible
query I rowsort label-7319
SELECT + 75 / - - COUNT ( * ) AS col1
----
75

query II rowsort
SELECT ALL - 13, + 53 * + ( - 96 ) AS col0
----
-13
-5088

onlyif mysql # aggregate syntax: 
query II rowsort label-7321
SELECT ALL + 67 * - - 59 * 68 AS col2, + 52 + - NULLIF ( + 58, + COUNT( * ) ) AS col2
----
268804
-6

skipif mysql # not compatible
query II rowsort label-7321
SELECT ALL + 67 * - - 59 * 68 AS col2, + 52 + - NULLIF ( + 58, + COUNT ( * ) ) AS col2
----
268804
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-7322
SELECT DISTINCT 53 DIV + + 64
----
0

skipif mysql # not compatible
query I rowsort label-7322
SELECT DISTINCT 53 / + + 64
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7323
SELECT - CAST( - - 82 AS SIGNED ) * - ( - NULLIF ( 76, - - COUNT( * ) * NULLIF ( - 68, COALESCE ( - 68, + + COUNT( * ), + + ( + - 65 ) ) + 29 * + CAST( 1 AS SIGNED ) + + 35 + COUNT( * ) ) * CASE 99 WHEN + COUNT( * ) THEN - COUNT( * ) END ) ) * 76 + - 30 * + 62 AS col1
----
-475492

skipif mysql # not compatible
query I rowsort label-7323
SELECT - CAST ( - - 82 AS INTEGER ) * - ( - NULLIF ( 76, - - COUNT ( * ) * NULLIF ( - 68, COALESCE ( - 68, + + COUNT ( * ), + + ( + - 65 ) ) + 29 * + CAST ( 1 AS INTEGER ) + + 35 + COUNT ( * ) ) * CASE 99 WHEN + COUNT ( * ) THEN - COUNT ( * ) END ) ) * 76 + - 30 * + 62 AS col1
----
-475492

query I rowsort
SELECT ALL - - 67 col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7325
SELECT ALL 71 * 38 * + 76 * + COUNT( * )
----
205048

skipif mysql # not compatible
query I rowsort label-7325
SELECT ALL 71 * 38 * + 76 * + COUNT ( * )
----
205048

onlyif mysql # DIV for integer division: 
query I rowsort label-7326
SELECT - 41 DIV ( 94 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7326
SELECT - 41 / ( 94 ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7327
SELECT 93 DIV CASE WHEN NOT - 96 IS NOT NULL THEN NULL ELSE + 36 * COUNT( * ) + + SUM( 90 ) + + 66 END
----
0

skipif mysql # not compatible
query I rowsort label-7327
SELECT 93 / CASE WHEN NOT - 96 IS NOT NULL THEN NULL ELSE + 36 * COUNT ( * ) + + SUM ( 90 ) + + 66 END
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7328
SELECT DISTINCT + + CAST( 40 AS SIGNED ) * - + 74 + + NULLIF ( + MIN( + 3 ), COUNT( 88 ) ) + - 63 AS col1
----
-3020

skipif mysql # not compatible
query I rowsort label-7328
SELECT DISTINCT + + CAST ( 40 AS INTEGER ) * - + 74 + + NULLIF ( + MIN ( + 3 ), COUNT ( 88 ) ) + - 63 AS col1
----
-3020

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7329
SELECT ALL - CAST( NULL AS SIGNED ) + - 63 + + CAST( + + 71 AS SIGNED ) * - - COUNT( ( - 97 ) ) * 55
----
NULL

skipif mysql # not compatible
query I rowsort label-7329
SELECT ALL - CAST ( NULL AS INTEGER ) + - 63 + + CAST ( + + 71 AS INTEGER ) * - - COUNT ( ( - 97 ) ) * 55
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7330
SELECT 26 * - + COUNT( 78 ) + 21
----
-5

skipif mysql # not compatible
query I rowsort label-7330
SELECT 26 * - + COUNT ( 78 ) + 21
----
-5

query I rowsort
SELECT + 33 - - 52 AS col2
----
85

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7332
SELECT + COUNT( * ) * - 31 / - + MIN( - 43 ) * 92 + + COUNT( ALL 35 ) + + 24 + + 65 * - 53 + + + MAX( + 16 ) * + COUNT( * ) - CAST( NULL AS DECIMAL ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7332
SELECT + COUNT ( * ) * - 31 / - + MIN ( - 43 ) * 92 + + COUNT ( ALL 35 ) + + 24 + + 65 * - 53 + + + MAX ( + 16 ) * + COUNT ( * ) - CAST ( NULL AS REAL ) * COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 96 + + 72
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-7334
SELECT ALL - + COUNT( * ) + - 66 - - 34 col1
----
-33

skipif mysql # not compatible
query I rowsort label-7334
SELECT ALL - + COUNT ( * ) + - 66 - - 34 col1
----
-33

query I rowsort
SELECT ALL + 83 + + - 70 AS col1
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7336
SELECT + 19 * - + 34 + - - COUNT( * ) DIV + - MIN( ALL + + 88 )
----
-646

skipif mysql # not compatible
query I rowsort label-7336
SELECT + 19 * - + 34 + - - COUNT ( * ) / + - MIN ( ALL + + 88 )
----
-646

query II rowsort
SELECT 6, ( + 35 ) AS col0
----
6
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7338
SELECT MIN( 41 ) + - 31 + + ( 50 ) DIV - 46 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-7338
SELECT MIN ( 41 ) + - 31 + + ( 50 ) / - 46 AS col1
----
9

query I rowsort
SELECT 53 * - 75
----
-3975

onlyif mysql # aggregate syntax: 
query II rowsort label-7340
SELECT 30 AS col0, NULLIF ( - SUM( DISTINCT + ( 86 ) ), + COUNT( * ) ) * + + 96 + - - 55 AS col1
----
30
-8201

skipif mysql # not compatible
query II rowsort label-7340
SELECT 30 AS col0, NULLIF ( - SUM ( DISTINCT + ( 86 ) ), + COUNT ( * ) ) * + + 96 + - - 55 AS col1
----
30
-8201

onlyif mysql # aggregate syntax: 
query I rowsort label-7341
SELECT DISTINCT + 66 - COUNT( DISTINCT + 50 )
----
65

skipif mysql # not compatible
query I rowsort label-7341
SELECT DISTINCT + 66 - COUNT ( DISTINCT + 50 )
----
65

query I rowsort
SELECT ALL - 12 * 86
----
-1032

query I rowsort
SELECT 94 + 21
----
115

onlyif mysql # DIV for integer division: 
query I rowsort label-7344
SELECT 68 DIV - 25 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-7344
SELECT 68 / - 25 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-7345
SELECT 4 * - 14, COALESCE ( 5, - + COUNT( * ) ) AS col2
----
-56
5

skipif mysql # not compatible
query II rowsort label-7345
SELECT 4 * - 14, COALESCE ( 5, - + COUNT ( * ) ) AS col2
----
-56
5

onlyif mysql # aggregate syntax: 
query II rowsort label-7346
SELECT 78 * - COUNT( * ) AS col2, COALESCE ( 39, + - COUNT( * ) )
----
-78
39

skipif mysql # not compatible
query II rowsort label-7346
SELECT 78 * - COUNT ( * ) AS col2, COALESCE ( 39, + - COUNT ( * ) )
----
-78
39

query II rowsort
SELECT - 63 AS col1, 72 + - 58 * - + 31 col1
----
-63
1870

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

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

query I rowsort
SELECT 92 * 1 + + 89 AS col1
----
181

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

query I rowsort
SELECT DISTINCT + 54 * 72 + - 80 AS col0
----
3808

onlyif mysql # aggregate syntax: 
query I rowsort label-7352
SELECT 69 + + + ( - 42 ) + - + 9 * - 50 * + + COUNT( * ) * - ( 39 ) + + 3 col1
----
-17520

skipif mysql # not compatible
query I rowsort label-7352
SELECT 69 + + + ( - 42 ) + - + 9 * - 50 * + + COUNT ( * ) * - ( 39 ) + + 3 col1
----
-17520

query II rowsort
SELECT DISTINCT 12, 55 AS col1
----
12
55

onlyif mysql # aggregate syntax: 
query II rowsort label-7354
SELECT - 81 + + 80 + COALESCE ( 52, + + 42, 84 + + 0 * 64 * 53 ) AS col0, + NULLIF ( + COUNT( * ), - COUNT( * ) ) + + 6 * 59 * - CASE + 90 WHEN + COALESCE ( - 81, + COUNT( DISTINCT + + 22 ) * + + 8, - 92 - 94 ) + - 43 * 56 THEN 22 * - 3 END - + 58
----
51
NULL

skipif mysql # not compatible
query II rowsort label-7354
SELECT - 81 + + 80 + COALESCE ( 52, + + 42, 84 + + 0 * 64 * 53 ) AS col0, + NULLIF ( + COUNT ( * ), - COUNT ( * ) ) + + 6 * 59 * - CASE + 90 WHEN + COALESCE ( - 81, + COUNT ( DISTINCT + + 22 ) * + + 8, - 92 - 94 ) + - 43 * 56 THEN 22 * - 3 END - + 58
----
51
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7355
SELECT ALL - - ( + CAST( - - 8 AS SIGNED ) )
----
8

skipif mysql # not compatible
query I rowsort label-7355
SELECT ALL - - ( + CAST ( - - 8 AS INTEGER ) )
----
8

query II rowsort
SELECT 54, 50 + 63 - - + 55 col0
----
54
168

query I rowsort
SELECT NULLIF ( - - 46, + - 9 ) AS col2
----
46

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

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

query I rowsort
SELECT + ( 30 ) * - 1 AS col0
----
-30

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

query II rowsort
SELECT 91, + 6 AS col0
----
91
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7362
SELECT ALL + COUNT( * ) * 55 + - + 91 * - 90 AS col2
----
8245

skipif mysql # not compatible
query I rowsort label-7362
SELECT ALL + COUNT ( * ) * 55 + - + 91 * - 90 AS col2
----
8245

query I rowsort
SELECT DISTINCT + 50 * - - 1 - - 25 + - - 85 * - 64 + 25 + - - 77 * + 30
----
-3030

query I rowsort
SELECT ALL + 19 + - 63
----
-44

query I rowsort
SELECT DISTINCT - - 15 + 10 * + 80 AS col2
----
815

query I rowsort
SELECT 79 * 15 AS col0
----
1185

onlyif mysql # DIV for integer division: 
query I rowsort label-7367
SELECT 10 DIV 98 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7367
SELECT 10 / 98 AS col2
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7369
SELECT - CAST( + 41 AS SIGNED ) * 60 * 84 - 72 + CAST( + 4 AS SIGNED ) + + CASE - 34 WHEN - COUNT( * ) THEN - - 17 * CAST( + ( COUNT( * ) ) AS SIGNED ) + - COUNT( DISTINCT + 36 ) * + 14 - - CASE + 64 WHEN - 62 THEN + + ( + 2 ) * 61 END * 8 WHEN - 26 THEN NULL ELSE - 35 END
----
-206743

skipif mysql # not compatible
query I rowsort label-7369
SELECT - CAST ( + 41 AS INTEGER ) * 60 * 84 - 72 + CAST ( + 4 AS INTEGER ) + + CASE - 34 WHEN - COUNT ( * ) THEN - - 17 * CAST ( + ( COUNT ( * ) ) AS INTEGER ) + - COUNT ( DISTINCT + 36 ) * + 14 - - CASE + 64 WHEN - 62 THEN + + ( + 2 ) * 61 END * 8 WHEN - 26 THEN NULL ELSE - 35 END
----
-206743

query I rowsort
SELECT ALL 61 * + + 28
----
1708

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

skipif mysql # not compatible
query I rowsort label-7371
SELECT 53 - - + COUNT ( * ) - 76 AS col0
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7372
SELECT + COALESCE ( - CAST( NULL AS SIGNED ), - - 6 + + + CASE + COUNT( * ) WHEN - 59 THEN + + 44 WHEN + ( ( + 90 ) ) THEN NULL ELSE NULL END ) + - - 20 + + + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-7372
SELECT + COALESCE ( - CAST ( NULL AS INTEGER ), - - 6 + + + CASE + COUNT ( * ) WHEN - 59 THEN + + 44 WHEN + ( ( + 90 ) ) THEN NULL ELSE NULL END ) + - - 20 + + + 22
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7373
SELECT ALL + COALESCE ( + 27, CAST( NULL AS SIGNED ) )
----
27

skipif mysql # not compatible
query I rowsort label-7373
SELECT ALL + COALESCE ( + 27, CAST ( NULL AS INTEGER ) )
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-7374
SELECT DISTINCT MIN( DISTINCT - 80 ), - 99 AS col1
----
-80
-99

skipif mysql # not compatible
query II rowsort label-7374
SELECT DISTINCT MIN ( DISTINCT - 80 ), - 99 AS col1
----
-80
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7375
SELECT DISTINCT 84 - + - COUNT( * ) DIV 77 DIV SUM( 98 )
----
84

skipif mysql # not compatible
query I rowsort label-7375
SELECT DISTINCT 84 - + - COUNT ( * ) / 77 / SUM ( 98 )
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-7376
SELECT ALL MIN( - 92 ) AS col0, COUNT( 13 ) + + 13 AS col1
----
-92
14

skipif mysql # not compatible
query II rowsort label-7376
SELECT ALL MIN ( - 92 ) AS col0, COUNT ( 13 ) + + 13 AS col1
----
-92
14

query II rowsort
SELECT + 83 + + + 75 + + + 51, - 91 * - 59 AS col1
----
209
5369

query I rowsort
SELECT - 83 * + 12 * 16 AS col0
----
-15936

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7379
SELECT - CASE + CAST( NULL AS DECIMAL ) WHEN + 45 THEN - + 76 * - + CAST( NULL AS SIGNED ) * - 92 END + 64 AS col2, CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7379
SELECT - CASE + CAST ( NULL AS REAL ) WHEN + 45 THEN - + 76 * - + CAST ( NULL AS INTEGER ) * - 92 END + 64 AS col2, CAST ( NULL AS INTEGER )
----
NULL
NULL

query I rowsort
SELECT ALL - 17 * 82 AS col0
----
-1394

onlyif mysql # DIV for integer division: 
query I rowsort label-7381
SELECT - 47 DIV - 50 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7381
SELECT - 47 / - 50 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7382
SELECT DISTINCT - COUNT( * ) * - 22 DIV 42
----
0

skipif mysql # not compatible
query I rowsort label-7382
SELECT DISTINCT - COUNT ( * ) * - 22 / 42
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7383
SELECT ALL + CAST( NULL AS SIGNED ) + - 24 + - ( + 94 ) / - + 96 AS col0, 44 AS col0
----
NULL
44

skipif mysql # not compatible
query II rowsort label-7383
SELECT ALL + CAST ( NULL AS INTEGER ) + - 24 + - ( + 94 ) / - + 96 AS col0, 44 AS col0
----
NULL
44

query II rowsort
SELECT ALL 87 + - ( + 68 ) AS col0, - 73
----
19
-73

query II rowsort
SELECT ALL - + 26 * + 32, + 4 col1
----
-832
4

query II rowsort
SELECT DISTINCT + 97 + - 59 col2, + 20 * - - 89 AS col1
----
38
1780

onlyif mysql # aggregate syntax: 
query I rowsort label-7387
SELECT + + 70 * + COUNT( + - 64 ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-7387
SELECT + + 70 * + COUNT ( + - 64 ) AS col1
----
70

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

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

query I rowsort
SELECT - 32 + + 37 col1
----
5

query I rowsort
SELECT ALL + 39 * + - 92 + - + 37
----
-3625

onlyif mysql # aggregate syntax: 
query II rowsort label-7391
SELECT ALL - 32 * + - 68 * + COALESCE ( - - 86, - + 63 * COUNT( * ) ) + + + COUNT( * ), - COUNT( * ) AS col0
----
187137
-1

skipif mysql # not compatible
query II rowsort label-7391
SELECT ALL - 32 * + - 68 * + COALESCE ( - - 86, - + 63 * COUNT ( * ) ) + + + COUNT ( * ), - COUNT ( * ) AS col0
----
187137
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7392
SELECT ALL 26 * - + 91 + - + 15 DIV + - COUNT( DISTINCT + 1 ) AS col2
----
-2351

skipif mysql # not compatible
query I rowsort label-7392
SELECT ALL 26 * - + 91 + - + 15 / + - COUNT ( DISTINCT + 1 ) AS col2
----
-2351

onlyif mysql # DIV for integer division: 
query I rowsort label-7393
SELECT ALL - 49 * 55 + 43 DIV 39 * - 89
----
-2784

skipif mysql # not compatible
query I rowsort label-7393
SELECT ALL - 49 * 55 + 43 / 39 * - 89
----
-2784

onlyif mysql # aggregate syntax: 
query I rowsort label-7394
SELECT + COUNT( * ) * + 40 - 46 * 66
----
-2996

skipif mysql # not compatible
query I rowsort label-7394
SELECT + COUNT ( * ) * + 40 - 46 * 66
----
-2996

onlyif mysql # aggregate syntax: 
query I rowsort label-7395
SELECT DISTINCT - - 28 * + COUNT( DISTINCT - 40 ) + 97 + 80 - 59 AS col0
----
146

skipif mysql # not compatible
query I rowsort label-7395
SELECT DISTINCT - - 28 * + COUNT ( DISTINCT - 40 ) + 97 + 80 - 59 AS col0
----
146

query I rowsort
SELECT DISTINCT - 32 * + 68 * - + 67 * + - 58
----
-8455936

query I rowsort
SELECT DISTINCT - - 96 * + + 18 + - 83 + - 46
----
1599

onlyif mysql # aggregate syntax: 
query I rowsort label-7398
SELECT + 18 * - - SUM( + 24 ) AS col2
----
432

skipif mysql # not compatible
query I rowsort label-7398
SELECT + 18 * - - SUM ( + 24 ) AS col2
----
432

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7399
SELECT + COALESCE ( - 87, + COALESCE ( - 58, + 86 ) DIV + + 24 DIV - COUNT( * ) + - COUNT( * ), - + 21 ) * + 11 * 25 + 94 * + - NULLIF ( 54, - 23 + - - 16 ) + 65
----
-28936

skipif mysql # not compatible
query I rowsort label-7399
SELECT + COALESCE ( - 87, + COALESCE ( - 58, + 86 ) / + + 24 / - COUNT ( * ) + - COUNT ( * ), - + 21 ) * + 11 * 25 + 94 * + - NULLIF ( 54, - 23 + - - 16 ) + 65
----
-28936

query I rowsort
SELECT + 31 * + + 73
----
2263

onlyif mysql # aggregate syntax: 
query I rowsort label-7401
SELECT + 61 * SUM( + - 59 ) AS col1
----
-3599

skipif mysql # not compatible
query I rowsort label-7401
SELECT + 61 * SUM ( + - 59 ) AS col1
----
-3599

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7402
SELECT CASE WHEN NULL NOT BETWEEN + CAST( CAST( NULL AS DECIMAL ) AS DECIMAL ) AND - - 7 THEN NULL ELSE CAST( + 49 AS SIGNED ) * + 76 + - 28 + + 33 END AS col2
----
3729

skipif mysql # not compatible
query I rowsort label-7402
SELECT CASE WHEN NULL NOT BETWEEN + CAST ( CAST ( NULL AS REAL ) AS REAL ) AND - - 7 THEN NULL ELSE CAST ( + 49 AS INTEGER ) * + 76 + - 28 + + 33 END AS col2
----
3729

query I rowsort
SELECT + 96 * - + 4
----
-384

query I rowsort
SELECT ALL 7 * 64 * - 39 AS col0
----
-17472

query I rowsort
SELECT + 13 + 41 + + - ( + 24 ) * 12 * - + 29 * + + 47 * 50 * - - 78 + + + ( 38 ) + - + 0 + - + CASE - 32 WHEN 88 THEN + 14 END AS col2
----
NULL

query I rowsort
SELECT ALL - 12 * + + 9 col0
----
-108

query I rowsort
SELECT + ( + 40 ) * - 63 AS col1
----
-2520

query II rowsort
SELECT + 65 + + 51 * 78, + 5 AS col0
----
4043
5

query I rowsort
SELECT ALL 71 * 82 AS col1
----
5822

onlyif mysql # aggregate syntax: 
query I rowsort label-7410
SELECT MIN( DISTINCT 0 )
----
0

skipif mysql # not compatible
query I rowsort label-7410
SELECT MIN ( DISTINCT 0 )
----
0

query I rowsort
SELECT - ( 10 ) col0
----
-10

query I rowsort
SELECT ALL ( + 9 ) * - - 26 col0
----
234

query I rowsort
SELECT DISTINCT ( - ( - - 52 ) ) * 98 + 87 AS col0
----
-5009

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

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

query I rowsort
SELECT + 6 * - 29 AS col2
----
-174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7416
SELECT ALL 11 + + ( CAST( NULL AS SIGNED ) ) - + 69 * ( - 76 ) * - - 59 + - 39 + - - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-7416
SELECT ALL 11 + + ( CAST ( NULL AS INTEGER ) ) - + 69 * ( - 76 ) * - - 59 + - 39 + - - 85
----
NULL

query I rowsort
SELECT ALL 29 * + 99
----
2871

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7419
SELECT - SUM( DISTINCT + 5 ) + + + 20, COUNT( * ) * + - CASE - SUM( ALL - - CAST( NULL AS DECIMAL ) ) WHEN - 73 / + + ( - - 38 ) * - 2 * - 84 + + ( - 96 ) THEN + 38 WHEN - 74 THEN + + 64 + + 23 ELSE NULL END AS col1
----
15
NULL

skipif mysql # not compatible
query II rowsort label-7419
SELECT - SUM ( DISTINCT + 5 ) + + + 20, COUNT ( * ) * + - CASE - SUM ( ALL - - CAST ( NULL AS REAL ) ) WHEN - 73 / + + ( - - 38 ) * - 2 * - 84 + + ( - 96 ) THEN + 38 WHEN - 74 THEN + + 64 + + 23 ELSE NULL END AS col1
----
15
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7421
SELECT - 63 + + 20 DIV - COALESCE ( + 79, 15, - 72 * - 36 + - - MAX( DISTINCT + 17 ) )
----
-63

skipif mysql # not compatible
query I rowsort label-7421
SELECT - 63 + + 20 / - COALESCE ( + 79, 15, - 72 * - 36 + - - MAX ( DISTINCT + 17 ) )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-7422
SELECT ALL + 35 + - COUNT( DISTINCT - 45 )
----
34

skipif mysql # not compatible
query I rowsort label-7422
SELECT ALL + 35 + - COUNT ( DISTINCT - 45 )
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7423
SELECT 40 AS col0, - CAST( NULL AS SIGNED )
----
40
NULL

skipif mysql # not compatible
query II rowsort label-7423
SELECT 40 AS col0, - CAST ( NULL AS INTEGER )
----
40
NULL

query I rowsort
SELECT - 21 - 2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7425
SELECT ALL 4 + - ( + 35 ) + - COUNT( ALL + + 4 ) + - 97 * + 40 AS col1
----
-3912

skipif mysql # not compatible
query I rowsort label-7425
SELECT ALL 4 + - ( + 35 ) + - COUNT ( ALL + + 4 ) + - 97 * + 40 AS col1
----
-3912

query I rowsort
SELECT ALL + 52 + - - 14
----
66

query I rowsort
SELECT ALL - 94 + 35 AS col2
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-7428
SELECT - + 28 * + COUNT( * ) * 64 * COALESCE ( - - 75, - + 62 ) * + 71 - + - 72, - 28 - - 68 - + 20 - - 39 * - 77 * + - NULLIF ( 27, + 89 ) + + + 13 + 98 + - + 18 * 99 AS col2
----
-9542328
79430

skipif mysql # not compatible
query II rowsort label-7428
SELECT - + 28 * + COUNT ( * ) * 64 * COALESCE ( - - 75, - + 62 ) * + 71 - + - 72, - 28 - - 68 - + 20 - - 39 * - 77 * + - NULLIF ( 27, + 89 ) + + + 13 + 98 + - + 18 * 99 AS col2
----
-9542328
79430

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7429
SELECT - CAST( NULL AS SIGNED ) / + 99 * + - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-7429
SELECT - CAST ( NULL AS INTEGER ) / + 99 * + - 95
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT DISTINCT 66 * COUNT( DISTINCT - 27 ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-7430
SELECT DISTINCT 66 * COUNT ( DISTINCT - 27 ) AS col0
----
66

query I rowsort
SELECT ALL - 62 * + 10 AS col0
----
-620

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7432
SELECT + COUNT( * ) * + + 74 - - COALESCE ( - CAST( 59 AS SIGNED ), + 22 + - CAST( - 74 AS SIGNED ) ) * 92 * - + 99 + + 94
----
537540

skipif mysql # not compatible
query I rowsort label-7432
SELECT + COUNT ( * ) * + + 74 - - COALESCE ( - CAST ( 59 AS INTEGER ), + 22 + - CAST ( - 74 AS INTEGER ) ) * 92 * - + 99 + + 94
----
537540

onlyif mysql # aggregate syntax: 
query I rowsort label-7433
SELECT COUNT( * ) * NULLIF ( 45, 49 * - AVG ( COALESCE ( + 61, - 46 * + 43 - + 85 + - 54 + + + 60 ) ) )
----
45

skipif mysql # not compatible
query I rowsort label-7433
SELECT COUNT ( * ) * NULLIF ( 45, 49 * - AVG ( COALESCE ( + 61, - 46 * + 43 - + 85 + - 54 + + + 60 ) ) )
----
45

query I rowsort
SELECT ALL ( 61 ) + + ( + 2 ) AS col0
----
63

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

skipif mysql # not compatible
query I rowsort label-7435
SELECT ALL + 90 + - 57 * + COUNT ( * ) AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7436
SELECT DISTINCT - COUNT( * ) * + 11 col2
----
-11

skipif mysql # not compatible
query I rowsort label-7436
SELECT DISTINCT - COUNT ( * ) * + 11 col2
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7437
SELECT COUNT( * ) DIV 75 AS col2, + 81 + - 56
----
0
25

skipif mysql # not compatible
query II rowsort label-7437
SELECT COUNT ( * ) / 75 AS col2, + 81 + - 56
----
0
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-7438
SELECT ALL COUNT( * ) + 19 DIV + - 65 + - 48 + + - 27, - 58 + - - COUNT( * ) AS col2, + + 29 * + 95 * + MIN( + 75 ) - - 38 * - CAST( - + 6 AS SIGNED ) AS col0
----
-74
-57
206853

skipif mysql # not compatible
query III rowsort label-7438
SELECT ALL COUNT ( * ) + 19 / + - 65 + - 48 + + - 27, - 58 + - - COUNT ( * ) AS col2, + + 29 * + 95 * + MIN ( + 75 ) - - 38 * - CAST ( - + 6 AS INTEGER ) AS col0
----
-74
-57
206853

query I rowsort
SELECT ALL 88 + - - 22 * 64 AS col0
----
1496

onlyif mysql # aggregate syntax: 
query I rowsort label-7440
SELECT ALL COUNT( + 85 ) + 92 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-7440
SELECT ALL COUNT ( + 85 ) + 92 AS col1
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7441
SELECT - CAST( + 97 AS SIGNED ) + 95 + - 88 AS col1, 23 * + - 76 * COUNT( + 25 ) * + ( + 76 )
----
-90
-132848

skipif mysql # not compatible
query II rowsort label-7441
SELECT - CAST ( + 97 AS INTEGER ) + 95 + - 88 AS col1, 23 * + - 76 * COUNT ( + 25 ) * + ( + 76 )
----
-90
-132848

onlyif mysql # aggregate syntax: 
query I rowsort label-7442
SELECT ALL 22 + - + 88 * + MIN( + 59 ) col1
----
-5170

skipif mysql # not compatible
query I rowsort label-7442
SELECT ALL 22 + - + 88 * + MIN ( + 59 ) col1
----
-5170

onlyif mysql # aggregate syntax: 
query I rowsort label-7443
SELECT - 92 + + COUNT( * ) * + 62 + - 30 - 99 + + - MIN( DISTINCT + - 51 ) * - 61 * + 35 col2
----
-109044

skipif mysql # not compatible
query I rowsort label-7443
SELECT - 92 + + COUNT ( * ) * + 62 + - 30 - 99 + + - MIN ( DISTINCT + - 51 ) * - 61 * + 35 col2
----
-109044

onlyif mysql # aggregate syntax: 
query I rowsort label-7444
SELECT 16 + + MAX( ALL - 2 )
----
14

skipif mysql # not compatible
query I rowsort label-7444
SELECT 16 + + MAX ( ALL - 2 )
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7445
SELECT - - ( + CAST( NULL AS SIGNED ) ) col2, 58 + 70 + 51 AS col0
----
NULL
179

skipif mysql # not compatible
query II rowsort label-7445
SELECT - - ( + CAST ( NULL AS INTEGER ) ) col2, 58 + 70 + 51 AS col0
----
NULL
179

query I rowsort
SELECT - 19 + - - 75 AS col0
----
56

query I rowsort
SELECT ALL + + 84 - + 71 - + 54
----
-41

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

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

query I rowsort
SELECT ALL COALESCE ( + 19, - 31 )
----
19

query I rowsort
SELECT DISTINCT - 54 * 8 AS col2
----
-432

onlyif mysql # aggregate syntax: 
query I rowsort label-7451
SELECT MIN( ( 48 ) ) + - 62
----
-14

skipif mysql # not compatible
query I rowsort label-7451
SELECT MIN ( ( 48 ) ) + - 62
----
-14

query II rowsort
SELECT - CASE - ( + 72 ) WHEN 10 THEN NULL WHEN - 55 THEN - + 77 ELSE NULL END + + + 7 / ( - 40 ) AS col2, 61 AS col0
----
NULL
61

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

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

query I rowsort
SELECT + 17 + + 46 AS col1
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7455
SELECT 64 * + 41 - - MAX( ALL - 25 ) * + CAST( + 79 AS SIGNED ) + + - 7 AS col2, - MAX( DISTINCT - 42 )
----
642
42

skipif mysql # not compatible
query II rowsort label-7455
SELECT 64 * + 41 - - MAX ( ALL - 25 ) * + CAST ( + 79 AS INTEGER ) + + - 7 AS col2, - MAX ( DISTINCT - 42 )
----
642
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7456
SELECT - 91 * + CASE + - 23 WHEN + AVG ( ALL + - 30 ) * - 71 + + 56 * + COALESCE ( 62, - 11 ) THEN - 36 * + CASE + 22 WHEN + 22 + - 79 THEN + 31 / ( CAST( + + COUNT( * ) AS SIGNED ) ) ELSE + 49 END + - COUNT( * ) + + 95 END - - + 83 - + - 3 - + 8 * 58 / + 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7456
SELECT - 91 * + CASE + - 23 WHEN + AVG ( ALL + - 30 ) * - 71 + + 56 * + COALESCE ( 62, - 11 ) THEN - 36 * + CASE + 22 WHEN + 22 + - 79 THEN + 31 / ( CAST ( + + COUNT ( * ) AS INTEGER ) ) ELSE + 49 END + - COUNT ( * ) + + 95 END - - + 83 - + - 3 - + 8 * 58 / + 5 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7457
SELECT 95 + + + 29 AS col0, 46 DIV - - 39 - SUM( - 19 ) * - 52 AS col1
----
124
-987

skipif mysql # not compatible
query II rowsort label-7457
SELECT 95 + + + 29 AS col0, 46 / - - 39 - SUM ( - 19 ) * - 52 AS col1
----
124
-987

onlyif mysql # aggregate syntax: 
query II rowsort label-7458
SELECT ALL - + COUNT( ALL + NULLIF ( 1, - 15 ) ) AS col2, ( + 22 ) * + MIN( DISTINCT ( + 93 ) ) + + 71 AS col1
----
-1
2117

skipif mysql # not compatible
query II rowsort label-7458
SELECT ALL - + COUNT ( ALL + NULLIF ( 1, - 15 ) ) AS col2, ( + 22 ) * + MIN ( DISTINCT ( + 93 ) ) + + 71 AS col1
----
-1
2117

onlyif mysql # aggregate syntax: 
query I rowsort label-7459
SELECT + 57 * 89 + + 73 + - COALESCE ( + + 40, - 5, + MAX( ALL + 68 ) + - 30 ) * - 42
----
6826

skipif mysql # not compatible
query I rowsort label-7459
SELECT + 57 * 89 + + 73 + - COALESCE ( + + 40, - 5, + MAX ( ALL + 68 ) + - 30 ) * - 42
----
6826

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7460
SELECT ALL + CAST( NULL AS SIGNED ) * NULLIF ( + 45, - COUNT( * ) ) + - 48 + + NULLIF ( + COUNT( * ), - + 98 ) * - - 89 - + - ( NULLIF ( 41, 28 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7460
SELECT ALL + CAST ( NULL AS INTEGER ) * NULLIF ( + 45, - COUNT ( * ) ) + - 48 + + NULLIF ( + COUNT ( * ), - + 98 ) * - - 89 - + - ( NULLIF ( 41, 28 ) ) AS col0
----
NULL

query I rowsort
SELECT 78 - + 90 col0
----
-12

query I rowsort
SELECT DISTINCT - NULLIF ( + - 34, + 81 / 81 - NULLIF ( - + 55, + + 66 ) ) AS col2
----
34

query I rowsort
SELECT DISTINCT + 39 * + + 64
----
2496

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7464
SELECT ( - - CASE - - 2 WHEN + 60 THEN NULL ELSE 50 * + + 75 * - 46 * 56 * + NULLIF ( + 82, - 50 ) + MAX( DISTINCT - - CAST( 0 AS SIGNED ) ) * COUNT( * ) END ) * COUNT( * )
----
-792120000

skipif mysql # not compatible
query I rowsort label-7464
SELECT ( - - CASE - - 2 WHEN + 60 THEN NULL ELSE 50 * + + 75 * - 46 * 56 * + NULLIF ( + 82, - 50 ) + MAX ( DISTINCT - - CAST ( 0 AS INTEGER ) ) * COUNT ( * ) END ) * COUNT ( * )
----
-792120000

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

skipif mysql # not compatible
query I rowsort label-7465
SELECT ALL + COUNT ( * ) * - 90 AS col0
----
-90

query I rowsort
SELECT 78 + - 6
----
72

query I rowsort
SELECT ALL + 94 + + 69 - 92 AS col1
----
71

query I rowsort
SELECT ALL - 31 + 11 * - - 62 AS col0
----
651

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT ALL - COUNT( * ) + - 8 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-7469
SELECT ALL - COUNT ( * ) + - 8 AS col0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7470
SELECT ALL CAST( NULL AS SIGNED ) + + COUNT( - + 27 ) * 53 - + 84 + + 71 + - COUNT( * ) * MAX( ALL 14 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7470
SELECT ALL CAST ( NULL AS INTEGER ) + + COUNT ( - + 27 ) * 53 - + 84 + + 71 + - COUNT ( * ) * MAX ( ALL 14 ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7471
SELECT ALL - COALESCE ( - + 55, + 27 ) + + COUNT ( * )
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7472
SELECT DISTINCT + 77 + + + CAST( - 59 AS SIGNED )
----
18

skipif mysql # not compatible
query I rowsort label-7472
SELECT DISTINCT + 77 + + + CAST ( - 59 AS INTEGER )
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7473
SELECT ALL - CASE + + 56 WHEN MAX( - + 67 ) + - 81 + + 67 THEN NULL WHEN CAST( - 97 AS SIGNED ) THEN + 84 END + - 67 + - AVG ( DISTINCT - + 16 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7473
SELECT ALL - CASE + + 56 WHEN MAX ( - + 67 ) + - 81 + + 67 THEN NULL WHEN CAST ( - 97 AS INTEGER ) THEN + 84 END + - 67 + - AVG ( DISTINCT - + 16 )
----
NULL

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

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

query I rowsort
SELECT 12 * + - 35 AS col2
----
-420

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

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

query I rowsort
SELECT - 98 + 72
----
-26

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

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

query I rowsort
SELECT 61 * 21 AS col0
----
1281

query I rowsort
SELECT ALL + 16 * 29 AS col1
----
464

query I rowsort
SELECT DISTINCT + 25 - - - 70 AS col2
----
-45

query I rowsort
SELECT + 48 + + 29 AS col1
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7483
SELECT DISTINCT - 50 DIV 14 - 88 col2, - 75 * - COUNT( * ) AS col2
----
-91
75

skipif mysql # not compatible
query II rowsort label-7483
SELECT DISTINCT - 50 / 14 - 88 col2, - 75 * - COUNT ( * ) AS col2
----
-91
75

query I rowsort
SELECT ALL 22 - - 19 * 19 + + + 4 AS col0
----
387

onlyif mysql # aggregate syntax: 
query II rowsort label-7485
SELECT COALESCE ( - 86, + 99 + + 37 + 99 * 86 ) + + MAX( ALL - + 94 ) AS col0, 71 * - - 32
----
-180
2272

skipif mysql # not compatible
query II rowsort label-7485
SELECT COALESCE ( - 86, + 99 + + 37 + 99 * 86 ) + + MAX ( ALL - + 94 ) AS col0, 71 * - - 32
----
-180
2272

onlyif mysql # DIV for integer division: 
query I rowsort label-7486
SELECT + 5 DIV ( - 84 ) + - 62 AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-7486
SELECT + 5 / ( - 84 ) + - 62 AS col1
----
-62

onlyif mysql # DIV for integer division: 
query II rowsort label-7487
SELECT + - ( + + 76 ) DIV + 87 * - ( - 70 ) AS col2, 22
----
0
22

skipif mysql # not compatible
query II rowsort label-7487
SELECT + - ( + + 76 ) / + 87 * - ( - 70 ) AS col2, 22
----
0
22

query II rowsort
SELECT ALL - 1 * + 42 * + + 13 * + + 26 * 85 - - 26 AS col1, 72 AS col1
----
-1206634
72

query I rowsort
SELECT + + 95 * - 19 AS col1
----
-1805

query I rowsort
SELECT + + 37 - 1 * - 79
----
116

query I rowsort
SELECT DISTINCT 67 * - 51 AS col1
----
-3417

query II rowsort
SELECT - 56 AS col1, 14 + 77 AS col0
----
-56
91

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7493
SELECT ALL + CAST( - 96 AS SIGNED ) + + 14 - 27 * - + CAST( NULL AS DECIMAL ) * + 98 * + + CASE + 55 WHEN - NULLIF ( + - 28, 46 + 12 ) THEN - + 13 WHEN + 65 THEN - - 70 * + 50 END, 44 AS col1
----
NULL
44

skipif mysql # not compatible
query II rowsort label-7493
SELECT ALL + CAST ( - 96 AS INTEGER ) + + 14 - 27 * - + CAST ( NULL AS REAL ) * + 98 * + + CASE + 55 WHEN - NULLIF ( + - 28, 46 + 12 ) THEN - + 13 WHEN + 65 THEN - - 70 * + 50 END, 44 AS col1
----
NULL
44

query I rowsort
SELECT + 64 + 48 AS col0
----
112

onlyif mysql # aggregate syntax: 
query II rowsort label-7495
SELECT + COUNT( * ) col1, COUNT( * ) + COUNT( * ) + + 87 + 59 AS col1
----
1
148

skipif mysql # not compatible
query II rowsort label-7495
SELECT + COUNT ( * ) col1, COUNT ( * ) + COUNT ( * ) + + 87 + 59 AS col1
----
1
148

query I rowsort
SELECT - 66 * + - 36
----
2376

onlyif mysql # aggregate syntax: 
query II rowsort label-7497
SELECT DISTINCT + COUNT( * ) AS col2, 72 * 3
----
1
216

skipif mysql # not compatible
query II rowsort label-7497
SELECT DISTINCT + COUNT ( * ) AS col2, 72 * 3
----
1
216

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7498
SELECT + CAST( NULL AS DECIMAL ) * - - NULLIF ( - 30, - CAST( 99 AS SIGNED ) ) * + 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7498
SELECT + CAST ( NULL AS REAL ) * - - NULLIF ( - 30, - CAST ( 99 AS INTEGER ) ) * + 59 AS col1
----
NULL

query I rowsort
SELECT ALL - 86 * + - 42 + + 33
----
3645

onlyif mysql # aggregate syntax: 
query II rowsort label-7500
SELECT DISTINCT + COUNT( * ) AS col0, + 48 + 65 AS col1
----
1
113

skipif mysql # not compatible
query II rowsort label-7500
SELECT DISTINCT + COUNT ( * ) AS col0, + 48 + 65 AS col1
----
1
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7501
SELECT ALL 16 * ( + CASE + CASE - - ( 23 ) WHEN + + 70 THEN NULL WHEN - 73 / - - 58 + - + AVG ( DISTINCT - 6 ) THEN NULL ELSE COUNT( * ) * - COUNT( * ) / COUNT( * ) + - + 52 + 37 END WHEN + COUNT( * ) THEN + ( + 28 ) * - 58 - - 58 - NULLIF ( 75, 66 * + 5 * + - COUNT( * ) ) ELSE NULL END ) * 63 + 62 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7501
SELECT ALL 16 * ( + CASE + CASE - - ( 23 ) WHEN + + 70 THEN NULL WHEN - 73 / - - 58 + - + AVG ( DISTINCT - 6 ) THEN NULL ELSE COUNT ( * ) * - COUNT ( * ) / COUNT ( * ) + - + 52 + 37 END WHEN + COUNT ( * ) THEN + ( + 28 ) * - 58 - - 58 - NULLIF ( 75, 66 * + 5 * + - COUNT ( * ) ) ELSE NULL END ) * 63 + 62 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7502
SELECT DISTINCT + ( 89 ) * - 53 * - 22 * - MIN( ALL - 48 ), COUNT( * ) * + 79 AS col0
----
4981152
79

skipif mysql # not compatible
query II rowsort label-7502
SELECT DISTINCT + ( 89 ) * - 53 * - 22 * - MIN ( ALL - 48 ), COUNT ( * ) * + 79 AS col0
----
4981152
79

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

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

query I rowsort
SELECT - 0 * + 71
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7505
SELECT ( + 84 ) * 28 + + 10 * - - COUNT( * ) + - 15 AS col2
----
2347

skipif mysql # not compatible
query I rowsort label-7505
SELECT ( + 84 ) * 28 + + 10 * - - COUNT ( * ) + - 15 AS col2
----
2347

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7506
SELECT ALL + 59 * 88 + + CAST( NULL AS SIGNED ) + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-7506
SELECT ALL + 59 * 88 + + CAST ( NULL AS INTEGER ) + 92
----
NULL

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

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

query I rowsort
SELECT 27 * - + 41 - - 94 AS col2
----
-1013

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT - 40 + - 76 + - ( 29 ) * 28 + + + MIN( ALL - 31 ) * + - 20 AS col1
----
-308

skipif mysql # not compatible
query I rowsort label-7510
SELECT - 40 + - 76 + - ( 29 ) * 28 + + + MIN ( ALL - 31 ) * + - 20 AS col1
----
-308

query II rowsort
SELECT DISTINCT + 60, - 50 + 0 + + - 74 AS col2
----
60
-124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7512
SELECT - 96 * + 77 * + 31 + + + 30 - + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7512
SELECT - 96 * + 77 * + 31 + + + 30 - + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT ALL + - CASE + 28 WHEN 12 THEN NULL WHEN + + 65 THEN NULL ELSE + + ( - 22 ) END AS col2
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7514
SELECT ALL + 89 AS col2, 53 * + CAST( NULL AS SIGNED ) * + 44
----
89
NULL

skipif mysql # not compatible
query II rowsort label-7514
SELECT ALL + 89 AS col2, 53 * + CAST ( NULL AS INTEGER ) * + 44
----
89
NULL

query I rowsort
SELECT - 10 * + 26 + - 48
----
-308

onlyif mysql # aggregate syntax: 
query I rowsort label-7516
SELECT ALL - SUM( ALL + + 68 ) * + 6 + 18 AS col0
----
-390

skipif mysql # not compatible
query I rowsort label-7516
SELECT ALL - SUM ( ALL + + 68 ) * + 6 + 18 AS col0
----
-390

query I rowsort
SELECT - 8 * + - 27 - + 65 * - + 58 + 28
----
4014

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7520
SELECT ALL + 21 * - 90 + + - 91 + - - MAX( DISTINCT - + 39 ) * + - MAX( ALL - + 8 ) * - 15 + + ( - 99 ) + - ( - - 19 ) * - 40
----
3360

skipif mysql # not compatible
query I rowsort label-7520
SELECT ALL + 21 * - 90 + + - 91 + - - MAX ( DISTINCT - + 39 ) * + - MAX ( ALL - + 8 ) * - 15 + + ( - 99 ) + - ( - - 19 ) * - 40
----
3360

onlyif mysql # aggregate syntax: 
query I rowsort label-7521
SELECT + - COALESCE ( - - 48, + - ( - - 13 ), + COUNT( * ) ) * 94 AS col1
----
-4512

skipif mysql # not compatible
query I rowsort label-7521
SELECT + - COALESCE ( - - 48, + - ( - - 13 ), + COUNT ( * ) ) * 94 AS col1
----
-4512

query I rowsort
SELECT ALL + - 87 * - 31 AS col0
----
2697

query I rowsort
SELECT - + 41 + 44 AS col1
----
3

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

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

query I rowsort
SELECT - - 66 + + 60
----
126

query I rowsort
SELECT ALL + ( 36 ) * + 64 AS col2
----
2304

onlyif mysql # aggregate syntax: 
query II rowsort label-7527
SELECT DISTINCT - COUNT( * ) AS col0, NULLIF ( + CASE + COUNT( * ) WHEN AVG ( 82 ) * 33 THEN NULL WHEN + 1 THEN + 60 ELSE + + 94 END, + 58 ) AS col1
----
-1
60

skipif mysql # not compatible
query II rowsort label-7527
SELECT DISTINCT - COUNT ( * ) AS col0, NULLIF ( + CASE + COUNT ( * ) WHEN AVG ( 82 ) * 33 THEN NULL WHEN + 1 THEN + 60 ELSE + + 94 END, + 58 ) AS col1
----
-1
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7528
SELECT - + 91 + - 21 - - NULLIF ( + CAST( NULL AS SIGNED ), + - 25 ) - 2 * 60 - COALESCE ( 60, + 91, - 35 - - - 54 ) + + 92 + + CAST( NULL AS SIGNED ) + + 96 * - 85 * + + 9 / - CAST( - 78 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7528
SELECT - + 91 + - 21 - - NULLIF ( + CAST ( NULL AS INTEGER ), + - 25 ) - 2 * 60 - COALESCE ( 60, + 91, - 35 - - - 54 ) + + 92 + + CAST ( NULL AS INTEGER ) + + 96 * - 85 * + + 9 / - CAST ( - 78 AS INTEGER )
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7530
SELECT ALL + CASE SUM( ALL 5 ) WHEN CAST( NULL AS SIGNED ) THEN + 78 ELSE CAST( NULL AS DECIMAL ) - ( + 73 ) END + - + 44, - 44 AS col0
----
NULL
-44

skipif mysql # not compatible
query II rowsort label-7530
SELECT ALL + CASE SUM ( ALL 5 ) WHEN CAST ( NULL AS INTEGER ) THEN + 78 ELSE CAST ( NULL AS REAL ) - ( + 73 ) END + - + 44, - 44 AS col0
----
NULL
-44

query I rowsort
SELECT + + 83 * + 15 + - + 63
----
1182

onlyif mysql # aggregate syntax: 
query I rowsort label-7532
SELECT DISTINCT - 78 + + + ( + CASE + COUNT( * ) WHEN COUNT( * ) + - - 89 THEN ( + - 59 ) ELSE + 19 END ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-7532
SELECT DISTINCT - 78 + + + ( + CASE + COUNT ( * ) WHEN COUNT ( * ) + - - 89 THEN ( + - 59 ) ELSE + 19 END ) AS col2
----
-59

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7534
SELECT ALL 55 DIV COUNT( * ) AS col0, COUNT( * ) * ( + ( + - 24 ) ) AS col2
----
55
-24

skipif mysql # not compatible
query II rowsort label-7534
SELECT ALL 55 / COUNT ( * ) AS col0, COUNT ( * ) * ( + ( + - 24 ) ) AS col2
----
55
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7535
SELECT + 67 / CAST( NULL AS SIGNED ) / - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7535
SELECT + 67 / CAST ( NULL AS INTEGER ) / - - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7536
SELECT ALL 72 + + COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-7536
SELECT ALL 72 + + COUNT ( * )
----
73

query I rowsort
SELECT - 78 + 86
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7538
SELECT - COUNT( - + 52 ) AS col1, CAST( NULL AS SIGNED ) AS col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-7538
SELECT - COUNT ( - + 52 ) AS col1, CAST ( NULL AS INTEGER ) AS col0
----
-1
NULL

query I rowsort
SELECT + ( COALESCE ( 58, - + 87 ) ) + - 2 + - - 29 * - + 75
----
-2119

query II rowsort
SELECT DISTINCT + ( 81 ) AS col1, 62
----
81
62

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

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

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

skipif mysql # not compatible
query I rowsort label-7542
SELECT CAST ( + ( CAST ( NULL AS REAL ) ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7543
SELECT - 81 DIV 3 + 91
----
64

skipif mysql # not compatible
query I rowsort label-7543
SELECT - 81 / 3 + 91
----
64

query I rowsort
SELECT + ( - NULLIF ( - + 74, - 26 - + ( + 32 ) - + 94 ) ) col1
----
74

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7546
SELECT ALL 49 * + + CAST( + ( 87 ) AS SIGNED ) * - + 91 - - + 54 + - 71
----
-387950

skipif mysql # not compatible
query I rowsort label-7546
SELECT ALL 49 * + + CAST ( + ( 87 ) AS INTEGER ) * - + 91 - - + 54 + - 71
----
-387950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7547
SELECT + 85 * 28 - + SUM( - CAST( + 26 AS SIGNED ) ) AS col1
----
2406

skipif mysql # not compatible
query I rowsort label-7547
SELECT + 85 * 28 - + SUM ( - CAST ( + 26 AS INTEGER ) ) AS col1
----
2406

onlyif mysql # aggregate syntax: 
query II rowsort label-7548
SELECT + + COUNT( * ) + - - MIN( 23 ) AS col2, + 8 + + + 64
----
24
72

skipif mysql # not compatible
query II rowsort label-7548
SELECT + + COUNT ( * ) + - - MIN ( 23 ) AS col2, + 8 + + + 64
----
24
72

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7550
SELECT - - 30 + - COALESCE ( - 49, - - 49 ) + - 6 DIV - - ( + 88 )
----
79

skipif mysql # not compatible
query I rowsort label-7550
SELECT - - 30 + - COALESCE ( - 49, - - 49 ) + - 6 / - - ( + 88 )
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-7551
SELECT + + MIN( - + 54 ), 26 * + CASE + 7 WHEN + - 9 THEN 24 END + 96 col0
----
-54
NULL

skipif mysql # not compatible
query II rowsort label-7551
SELECT + + MIN ( - + 54 ), 26 * + CASE + 7 WHEN + - 9 THEN 24 END + 96 col0
----
-54
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7552
SELECT + 60 DIV - 96 + MAX( 60 ) * + 3 - - + 67 + + 16 + - + ( + 21 ) DIV 22 AS col0, + 57 + - COUNT( * ) DIV + + 67 * + 63
----
263
57

skipif mysql # not compatible
query II rowsort label-7552
SELECT + 60 / - 96 + MAX ( 60 ) * + 3 - - + 67 + + 16 + - + ( + 21 ) / 22 AS col0, + 57 + - COUNT ( * ) / + + 67 * + 63
----
263
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7553
SELECT - ( + MIN( ALL + 7 ) ) DIV + 48 + - SUM( + ( - - 35 ) )
----
-35

skipif mysql # not compatible
query I rowsort label-7553
SELECT - ( + MIN ( ALL + 7 ) ) / + 48 + - SUM ( + ( - - 35 ) )
----
-35

query II rowsort
SELECT - 44 * + - 44 AS col0, 54
----
1936
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7555
SELECT ALL - 84 DIV + + 71 + MAX( ALL + 35 )
----
34

skipif mysql # not compatible
query I rowsort label-7555
SELECT ALL - 84 / + + 71 + MAX ( ALL + 35 )
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7556
SELECT + 97 DIV + ( MAX( + 90 ) ) + 73 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-7556
SELECT + 97 / + ( MAX ( + 90 ) ) + 73 AS col0
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7557
SELECT ALL - ( 87 ) + - CAST( - 79 AS SIGNED ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-7557
SELECT ALL - ( 87 ) + - CAST ( - 79 AS INTEGER ) AS col1
----
-8

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7559
SELECT ALL + + CASE - ( - ( - + 88 ) ) WHEN + + 70 - + SUM( ( + ( + 61 ) ) ) + + SUM( ALL + + 7 ) + - 82 + + - COUNT( * ) + - 31 THEN - + SUM( DISTINCT - - CAST( NULL AS DECIMAL ) ) ELSE - 40 END + - CASE - COALESCE ( - 16, - 4 + + 47 + + 22 ) WHEN + 24 + - 92 * 11 THEN NULL WHEN 18 * COUNT( * ) THEN 17 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7559
SELECT ALL + + CASE - ( - ( - + 88 ) ) WHEN + + 70 - + SUM ( ( + ( + 61 ) ) ) + + SUM ( ALL + + 7 ) + - 82 + + - COUNT ( * ) + - 31 THEN - + SUM ( DISTINCT - - CAST ( NULL AS REAL ) ) ELSE - 40 END + - CASE - COALESCE ( - 16, - 4 + + 47 + + 22 ) WHEN + 24 + - 92 * 11 THEN NULL WHEN 18 * COUNT ( * ) THEN 17 END
----
NULL

query II rowsort
SELECT ALL - ( 50 ), 81 AS col2
----
-50
81

query I rowsort
SELECT - 46 + ( + 87 )
----
41

query I rowsort
SELECT ALL + - 80 + + 12 + 15 + + 38 + + 25 * - 20 * + 81 AS col1
----
-40515

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7563
SELECT ALL - - COUNT( * ) + 79 + + + 9 + + 49 DIV 42 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-7563
SELECT ALL - - COUNT ( * ) + 79 + + + 9 + + 49 / 42 AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7564
SELECT 88 * + + ( - - ( CASE + 72 WHEN + + COUNT( * ) * + + 60 THEN - + 60 * 86 ELSE NULL END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7564
SELECT 88 * + + ( - - ( CASE + 72 WHEN + + COUNT ( * ) * + + 60 THEN - + 60 * 86 ELSE NULL END ) )
----
NULL

query I rowsort
SELECT 91 - 16 AS col1
----
75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7566
SELECT ALL 68 AS col1, MIN( - + ( + CASE 31 WHEN - CAST( NULL AS DECIMAL ) THEN - - ( - 70 ) * + 73 * - 43 ELSE CAST( NULL AS DECIMAL ) END ) ) * + 99
----
68
NULL

skipif mysql # not compatible
query II rowsort label-7566
SELECT ALL 68 AS col1, MIN ( - + ( + CASE 31 WHEN - CAST ( NULL AS REAL ) THEN - - ( - 70 ) * + 73 * - 43 ELSE CAST ( NULL AS REAL ) END ) ) * + 99
----
68
NULL

query I rowsort
SELECT 13 * 87 AS col2
----
1131

query II rowsort
SELECT 47 AS col2, 27 * - - 90
----
47
2430

query I rowsort
SELECT 26 * - 3 * - 69 * + + 45
----
242190

onlyif mysql # aggregate syntax: 
query I rowsort label-7570
SELECT 27 * + 53 - COUNT( * )
----
1430

skipif mysql # not compatible
query I rowsort label-7570
SELECT 27 * + 53 - COUNT ( * )
----
1430

query II rowsort
SELECT + 91, - 47 col2
----
91
-47

query I rowsort
SELECT 16 * 15 AS col2
----
240

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7573
SELECT ALL CASE + 46 WHEN - 49 THEN - 47 WHEN - 90 THEN NULL END * + 22 * + - 68 / 1, 16 * - 31 + + 78 - - 21 * + 27 + + 5 + - ( - CAST( NULL AS SIGNED ) ) * - - 26
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7573
SELECT ALL CASE + 46 WHEN - 49 THEN - 47 WHEN - 90 THEN NULL END * + 22 * + - 68 / 1, 16 * - 31 + + 78 - - 21 * + 27 + + 5 + - ( - CAST ( NULL AS INTEGER ) ) * - - 26
----
NULL
NULL

query II rowsort
SELECT 38 * 81 * + 28 AS col2, - 8 + + ( - 95 )
----
86184
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-7575
SELECT ALL - NULLIF ( + SUM( DISTINCT - 43 ), 20 )
----
43

skipif mysql # not compatible
query I rowsort label-7575
SELECT ALL - NULLIF ( + SUM ( DISTINCT - 43 ), 20 )
----
43

query I rowsort
SELECT 47 * 83
----
3901

query I rowsort
SELECT 85 + 52 AS col2
----
137

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7579
SELECT ALL - COUNT( * ) + - + ( CASE - + COALESCE ( + - 48, + + 3, + + COUNT( * ) ) WHEN 83 THEN + - NULLIF ( - 76, - + 0 ) WHEN - 59 + + CAST( - 75 AS SIGNED ) THEN NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7579
SELECT ALL - COUNT ( * ) + - + ( CASE - + COALESCE ( + - 48, + + 3, + + COUNT ( * ) ) WHEN 83 THEN + - NULLIF ( - 76, - + 0 ) WHEN - 59 + + CAST ( - 75 AS INTEGER ) THEN NULL END ) AS col0
----
NULL

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

query II rowsort
SELECT ALL 85 AS col1, - ( + 73 ) AS col0
----
85
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT + 52 + - + 67 + + 3 + + 74 * + 45 * COUNT( * ) AS col1
----
3318

skipif mysql # not compatible
query I rowsort label-7582
SELECT + 52 + - + 67 + + 3 + + 74 * + 45 * COUNT ( * ) AS col1
----
3318

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT 54 + - COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-7583
SELECT 54 + - COUNT ( * )
----
53

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7585
SELECT ALL + 28 + NULLIF ( COUNT( * ), - - COUNT( ALL - ( + 56 ) ) + + 21 ) * - 86 AS col1, + COUNT( * ) - 34 - + - 14 AS col2
----
-58
-19

skipif mysql # not compatible
query II rowsort label-7585
SELECT ALL + 28 + NULLIF ( COUNT ( * ), - - COUNT ( ALL - ( + 56 ) ) + + 21 ) * - 86 AS col1, + COUNT ( * ) - 34 - + - 14 AS col2
----
-58
-19

query I rowsort
SELECT 33 + + - 57 + - + 30 AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7587
SELECT MIN( - ( - + 61 ) ) * 23
----
1403

skipif mysql # not compatible
query I rowsort label-7587
SELECT MIN ( - ( - + 61 ) ) * 23
----
1403

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7588
SELECT ALL 96 - + + CAST( NULL AS SIGNED ) * 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7588
SELECT ALL 96 - + + CAST ( NULL AS INTEGER ) * 84 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT 7 * - 23 * - CASE - - 97 WHEN + CASE - 30 WHEN + + MIN( - 74 ) THEN MAX( 17 ) END + + 94 THEN - 6 WHEN + ( + 95 ) THEN 8 * + ( - 64 ) * 51 + + + 0 + 12 END * 48 * + 3 - + 11 + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7589
SELECT 7 * - 23 * - CASE - - 97 WHEN + CASE - 30 WHEN + + MIN ( - 74 ) THEN MAX ( 17 ) END + + 94 THEN - 6 WHEN + ( + 95 ) THEN 8 * + ( - 64 ) * 51 + + + 0 + 12 END * 48 * + 3 - + 11 + + COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7590
SELECT ALL + 31 DIV + COUNT( + ( + 22 ) ), MAX( + CAST( + + 27 AS SIGNED ) ) col2
----
31
27

skipif mysql # not compatible
query II rowsort label-7590
SELECT ALL + 31 / + COUNT ( + ( + 22 ) ), MAX ( + CAST ( + + 27 AS INTEGER ) ) col2
----
31
27

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7592
SELECT 6 * + NULLIF ( - COUNT( * ), MAX( 63 ) ) * - 53 AS col1
----
318

skipif mysql # not compatible
query I rowsort label-7592
SELECT 6 * + NULLIF ( - COUNT ( * ), MAX ( 63 ) ) * - 53 AS col1
----
318

query I rowsort
SELECT 12 + + + 50
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7594
SELECT DISTINCT - ( - + COUNT( * ) ) * - 58 + - + 71 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7594
SELECT DISTINCT - ( - + COUNT ( * ) ) * - 58 + - + 71 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7595
SELECT 32 + + + 55 AS col0, - COUNT( DISTINCT + - 55 )
----
87
-1

skipif mysql # not compatible
query II rowsort label-7595
SELECT 32 + + + 55 AS col0, - COUNT ( DISTINCT + - 55 )
----
87
-1

query I rowsort
SELECT ALL - 68 * - 54 * + - 65 AS col1
----
-238680

query I rowsort
SELECT DISTINCT - ( - 46 ) AS col0
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7598
SELECT 47 + COALESCE ( 83, + 35, + 10 + - + 22 + + - 34 ) + 31 DIV + - ( COUNT( * ) )
----
99

skipif mysql # not compatible
query I rowsort label-7598
SELECT 47 + COALESCE ( 83, + 35, + 10 + - + 22 + + - 34 ) + 31 / + - ( COUNT ( * ) )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7599
SELECT ALL - SUM( - ( - 17 ) ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-7599
SELECT ALL - SUM ( - ( - 17 ) ) AS col2
----
-17

query I rowsort
SELECT DISTINCT - 68 * + 72 * + ( ( 22 ) ) + - ( - + 9 ) AS col2
----
-107703

onlyif mysql # DIV for integer division: 
query I rowsort label-7601
SELECT - 33 DIV 36
----
0

skipif mysql # not compatible
query I rowsort label-7601
SELECT - 33 / 36
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7603
SELECT - - 28 * + CASE - CASE + COUNT( * ) WHEN + - 70 / - COUNT( * ) + + 14 + COUNT( * ) + NULLIF ( - + COUNT( * ), + - COUNT( ALL - 72 ) ) + + 67 * + 65 + + 82 THEN + CASE + 57 WHEN - AVG ( DISTINCT + - 26 ) * - 40 * + - 91 - - 51 - - 80 THEN NULL WHEN + 36 / - - COUNT( * ) THEN + - ( - COALESCE ( 92, - 67 * 75 ) ) / 49 END WHEN COALESCE ( - 45, 17 - + 58 ) THEN NULL END WHEN - 92 THEN NULL ELSE 65 END * 76 col0
----
138320

skipif mysql # not compatible
query I rowsort label-7603
SELECT - - 28 * + CASE - CASE + COUNT ( * ) WHEN + - 70 / - COUNT ( * ) + + 14 + COUNT ( * ) + NULLIF ( - + COUNT ( * ), + - COUNT ( ALL - 72 ) ) + + 67 * + 65 + + 82 THEN + CASE + 57 WHEN - AVG ( DISTINCT + - 26 ) * - 40 * + - 91 - - 51 - - 80 THEN NULL WHEN + 36 / - - COUNT ( * ) THEN + - ( - COALESCE ( 92, - 67 * 75 ) ) / 49 END WHEN COALESCE ( - 45, 17 - + 58 ) THEN NULL END WHEN - 92 THEN NULL ELSE 65 END * 76 col0
----
138320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7604
SELECT DISTINCT + 38 * + - CAST( + 31 AS SIGNED ) + - 72 + + MAX( DISTINCT + 63 ) * + 46 + + 81 - 28 * 94 - + - 37 * - - SUM( ALL + 5 ) * - ( - + 96 )
----
16857

skipif mysql # not compatible
query I rowsort label-7604
SELECT DISTINCT + 38 * + - CAST ( + 31 AS INTEGER ) + - 72 + + MAX ( DISTINCT + 63 ) * + 46 + + 81 - 28 * 94 - + - 37 * - - SUM ( ALL + 5 ) * - ( - + 96 )
----
16857

query I rowsort
SELECT ALL - 9 * 86 * 45 + + + 15 * + 52 col0
----
-34050

onlyif mysql # DIV for integer division: 
query II rowsort label-7606
SELECT - - 78 DIV - 59, 73 AS col2
----
-1
73

skipif mysql # not compatible
query II rowsort label-7606
SELECT - - 78 / - 59, 73 AS col2
----
-1
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7607
SELECT ALL COUNT( * ) * - 32 * + CAST( 46 AS SIGNED ) - - 11 + - 58 AS col0
----
-1519

skipif mysql # not compatible
query I rowsort label-7607
SELECT ALL COUNT ( * ) * - 32 * + CAST ( 46 AS INTEGER ) - - 11 + - 58 AS col0
----
-1519

query I rowsort
SELECT ALL - 82 * - 4 * 7 AS col2
----
2296

query I rowsort
SELECT + 22 * + 93 * + 54 + - 23
----
110461

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7610
SELECT DISTINCT - CAST( - - 75 AS SIGNED ) + 66 * - - 71 AS col1
----
4611

skipif mysql # not compatible
query I rowsort label-7610
SELECT DISTINCT - CAST ( - - 75 AS INTEGER ) + 66 * - - 71 AS col1
----
4611

query I rowsort
SELECT ALL 89 + - 88 - + 3 * ( + + 29 ) * + + 53 * + ( - 50 ) + - - 80 col2
----
230631

query I rowsort
SELECT + - NULLIF ( - - 64, 5 ) AS col0
----
-64

query I rowsort
SELECT + 81 + - - 51
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT DISTINCT - COUNT( * ) + + 8
----
7

skipif mysql # not compatible
query I rowsort label-7614
SELECT DISTINCT - COUNT ( * ) + + 8
----
7

query I rowsort
SELECT ALL + ( - 71 ) - + 75
----
-146

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

query I rowsort
SELECT + 1 + + 17 * - 33 * - + 63
----
35344

onlyif mysql # aggregate syntax: 
query I rowsort label-7618
SELECT - ( COUNT( + + NULLIF ( 6, + 62 * - - 40 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7618
SELECT - ( COUNT ( + + NULLIF ( 6, + 62 * - - 40 ) ) )
----
-1

query II rowsort
SELECT ALL 23 col2, - 96 * - 55 AS col0
----
23
5280

onlyif mysql # aggregate syntax: 
query I rowsort label-7620
SELECT ALL NULLIF ( + + COUNT( * ), + 48 ) - + + ( - COUNT( * ) ) col2
----
2

skipif mysql # not compatible
query I rowsort label-7620
SELECT ALL NULLIF ( + + COUNT ( * ), + 48 ) - + + ( - COUNT ( * ) ) col2
----
2

query I rowsort
SELECT + 24 - + 3 col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7622
SELECT ALL 48 * + COUNT( * ) * SUM( ALL 47 ) col1
----
2256

skipif mysql # not compatible
query I rowsort label-7622
SELECT ALL 48 * + COUNT ( * ) * SUM ( ALL 47 ) col1
----
2256

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7623
SELECT ALL COUNT( + + CAST( - - 35 AS DECIMAL ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7623
SELECT ALL COUNT ( + + CAST ( - - 35 AS REAL ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT + 18 * - - MIN( ALL 69 ) AS col2
----
1242

skipif mysql # not compatible
query I rowsort label-7624
SELECT + 18 * - - MIN ( ALL 69 ) AS col2
----
1242

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7625
SELECT ALL + 0 DIV + MIN( 92 ) * 93
----
0

skipif mysql # not compatible
query I rowsort label-7625
SELECT ALL + 0 / + MIN ( 92 ) * 93
----
0

query I rowsort
SELECT - 94 * 86
----
-8084

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7627
SELECT ALL NULLIF ( + 14, + + 25 * + COALESCE ( - 70, - 14 * - + COUNT( * ) * - - 15 ) * - 43 - - + 79 + + 39 + + ( - CAST( NULL AS SIGNED ) ) ), CASE - 48 WHEN + 86 * - 12 THEN NULL WHEN 91 * - 50 THEN + 1 * - - 30 * 5 + 43 * - 85 * COUNT( * ) END - CAST( NULL AS SIGNED ) AS col1
----
14
NULL

skipif mysql # not compatible
query II rowsort label-7627
SELECT ALL NULLIF ( + 14, + + 25 * + COALESCE ( - 70, - 14 * - + COUNT ( * ) * - - 15 ) * - 43 - - + 79 + + 39 + + ( - CAST ( NULL AS INTEGER ) ) ), CASE - 48 WHEN + 86 * - 12 THEN NULL WHEN 91 * - 50 THEN + 1 * - - 30 * 5 + 43 * - 85 * COUNT ( * ) END - CAST ( NULL AS INTEGER ) AS col1
----
14
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7629
SELECT ALL CAST( + AVG ( DISTINCT + 43 ) AS SIGNED ) DIV + 70
----
0

skipif mysql # not compatible
query I rowsort label-7629
SELECT ALL CAST ( + AVG ( DISTINCT + 43 ) AS INTEGER ) / + 70
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7630
SELECT - SUM( ALL - 71 ) * 41
----
2911

skipif mysql # not compatible
query I rowsort label-7630
SELECT - SUM ( ALL - 71 ) * 41
----
2911

onlyif mysql # DIV for integer division: 
query I rowsort label-7631
SELECT ALL 74 DIV - 17 + - 81
----
-85

skipif mysql # not compatible
query I rowsort label-7631
SELECT ALL 74 / - 17 + - 81
----
-85

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

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

query II rowsort
SELECT + 8 AS col2, 18 AS col2
----
8
18

onlyif mysql # DIV for integer division: 
query I rowsort label-7634
SELECT ALL + ( - 71 ) DIV 25 + - 7 + 57 + 15
----
63

skipif mysql # not compatible
query I rowsort label-7634
SELECT ALL + ( - 71 ) / 25 + - 7 + 57 + 15
----
63

query I rowsort
SELECT - + 82 * - 69 AS col0
----
5658

onlyif mysql # DIV for integer division: 
query I rowsort label-7636
SELECT ALL + ( 30 ) DIV - + 36 + 35 + + 74
----
109

skipif mysql # not compatible
query I rowsort label-7636
SELECT ALL + ( 30 ) / - + 36 + 35 + + 74
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-7637
SELECT + - 62 * MAX( ALL 73 ) + - + 99 AS col1
----
-4625

skipif mysql # not compatible
query I rowsort label-7637
SELECT + - 62 * MAX ( ALL 73 ) + - + 99 AS col1
----
-4625

onlyif mysql # aggregate syntax: 
query I rowsort label-7638
SELECT ALL + COALESCE ( 51, + 76 * - + COUNT( DISTINCT 3 ) ) * + 5 + ( + SUM( + 53 ) ) * - - SUM( + + 18 ) AS col0
----
1209

skipif mysql # not compatible
query I rowsort label-7638
SELECT ALL + COALESCE ( 51, + 76 * - + COUNT ( DISTINCT 3 ) ) * + 5 + ( + SUM ( + 53 ) ) * - - SUM ( + + 18 ) AS col0
----
1209

onlyif mysql # aggregate syntax: 
query I rowsort label-7639
SELECT - - 56 * + 16 * 64 * + - 92 + SUM( DISTINCT 49 )
----
-5275599

skipif mysql # not compatible
query I rowsort label-7639
SELECT - - 56 * + 16 * 64 * + - 92 + SUM ( DISTINCT 49 )
----
-5275599

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

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

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

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

query I rowsort
SELECT ALL + + 11 * + 88 - 22
----
946

query I rowsort
SELECT - + 68 * + - 7 * 88 + - + 24 AS col0
----
41864

query I rowsort
SELECT ALL - 54 * + 91 - - 22 + - 32 - + 79 * + - ( - 5 )
----
-5319

onlyif mysql # aggregate syntax: 
query II rowsort label-7645
SELECT + 93 AS col2, - MIN( + 89 ) + + - 61 + COUNT( * ) + + 59 + COALESCE ( - 83, - - COUNT( * ), - + 8 ) + - ( - 25 ) * - 98
----
93
-2623

skipif mysql # not compatible
query II rowsort label-7645
SELECT + 93 AS col2, - MIN ( + 89 ) + + - 61 + COUNT ( * ) + + 59 + COALESCE ( - 83, - - COUNT ( * ), - + 8 ) + - ( - 25 ) * - 98
----
93
-2623

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

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

query I rowsort
SELECT - 96 * ( + 22 ) AS col0
----
-2112

onlyif mysql # aggregate syntax: 
query I rowsort label-7648
SELECT - NULLIF ( + 75, COUNT( * ) )
----
-75

skipif mysql # not compatible
query I rowsort label-7648
SELECT - NULLIF ( + 75, COUNT ( * ) )
----
-75

query I rowsort
SELECT + 60 + + + 92 AS col2
----
152

onlyif mysql # DIV for integer division: 
query I rowsort label-7650
SELECT - ( + 10 ) * 5 DIV - - COALESCE ( 55, + + 99, - - 47 ) + - 94
----
-94

skipif mysql # not compatible
query I rowsort label-7650
SELECT - ( + 10 ) * 5 / - - COALESCE ( 55, + + 99, - - 47 ) + - 94
----
-94

query II rowsort
SELECT ALL 18 AS col2, + 3
----
18
3

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

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

query I rowsort
SELECT + 25 + 63 + - 63 col2
----
25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7655
SELECT + 1 + - + MAX( 98 ) * 99 AS col2
----
-9701

skipif mysql # not compatible
query I rowsort label-7655
SELECT + 1 + - + MAX ( 98 ) * 99 AS col2
----
-9701

query I rowsort
SELECT ALL 89 * 19 AS col1
----
1691

onlyif mysql # aggregate syntax: 
query I rowsort label-7657
SELECT + SUM( - 47 ) * 31
----
-1457

skipif mysql # not compatible
query I rowsort label-7657
SELECT + SUM ( - 47 ) * 31
----
-1457

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7659
SELECT + 82 + COALESCE ( 3, - NULLIF ( - MAX( 50 ), 37 ), - 42, - COUNT( * ) * - 93 DIV + COUNT( * ) + + - 34 * - + 17 )
----
85

skipif mysql # not compatible
query I rowsort label-7659
SELECT + 82 + COALESCE ( 3, - NULLIF ( - MAX ( 50 ), 37 ), - 42, - COUNT ( * ) * - 93 / + COUNT ( * ) + + - 34 * - + 17 )
----
85

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-7660
SELECT - CAST( NULL AS DECIMAL ), + COUNT( DISTINCT - + 55 ) DIV - + 88 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-7660
SELECT - CAST ( NULL AS REAL ), + COUNT ( DISTINCT - + 55 ) / - + 88 AS col0
----
NULL
0

query I rowsort
SELECT ( + + 65 ) + - 78 AS col0
----
-13

query II rowsort
SELECT 1 AS col2, - 22 + + 43
----
1
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7663
SELECT COUNT( * ) + SUM( ALL + 95 ) col0
----
96

skipif mysql # not compatible
query I rowsort label-7663
SELECT COUNT ( * ) + SUM ( ALL + 95 ) col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7664
SELECT 56 + MIN( - 37 )
----
19

skipif mysql # not compatible
query I rowsort label-7664
SELECT 56 + MIN ( - 37 )
----
19

query I rowsort
SELECT ALL 94 + - ( - 61 )
----
155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7666
SELECT ALL 99 * + 30 * - 88 * COALESCE ( - 37, + - ( - + COUNT( ALL + 7 ) ) * - 93 + + 96 * ( + + 33 ) * - NULLIF ( + - ( NULLIF ( - CAST( - 93 AS SIGNED ), COUNT( * ) * + 43 + + COUNT( * ) - + + 87 ) ), - + COUNT( * ) / + 68 + MIN( DISTINCT - + 83 ) * - - 79 ) * + ( - + COALESCE ( - 60, + 10 * - 78, + 45 ) ) + + 66 * + 30 ) + 16 AS col1
----
9670336

skipif mysql # not compatible
query I rowsort label-7666
SELECT ALL 99 * + 30 * - 88 * COALESCE ( - 37, + - ( - + COUNT ( ALL + 7 ) ) * - 93 + + 96 * ( + + 33 ) * - NULLIF ( + - ( NULLIF ( - CAST ( - 93 AS INTEGER ), COUNT ( * ) * + 43 + + COUNT ( * ) - + + 87 ) ), - + COUNT ( * ) / + 68 + MIN ( DISTINCT - + 83 ) * - - 79 ) * + ( - + COALESCE ( - 60, + 10 * - 78, + 45 ) ) + + 66 * + 30 ) + 16 AS col1
----
9670336

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT - 38 + COUNT( * ) + - 15
----
-52

skipif mysql # not compatible
query I rowsort label-7667
SELECT - 38 + COUNT ( * ) + - 15
----
-52

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

query I rowsort
SELECT 45 * 64 + 48 AS col2
----
2928

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7671
SELECT + + MAX( ALL 2 ) * - 82 + - COUNT( CASE 75 WHEN + + 81 THEN - 90 / 58 ELSE NULL END ) + CAST( NULL AS DECIMAL ) + - + MAX( ALL - - 22 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7671
SELECT + + MAX ( ALL 2 ) * - 82 + - COUNT ( CASE 75 WHEN + + 81 THEN - 90 / 58 ELSE NULL END ) + CAST ( NULL AS REAL ) + - + MAX ( ALL - - 22 ) AS col0
----
NULL

query I rowsort
SELECT ALL - 65 + + 79 col0
----
14

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7674
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * + - NULLIF ( + 65, - 33 ) * - - 17 - - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7674
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * + - NULLIF ( + 65, - 33 ) * - - 17 - - - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7675
SELECT DISTINCT COUNT( * ) * + + 47 * + ( 68 ) AS col0
----
3196

skipif mysql # not compatible
query I rowsort label-7675
SELECT DISTINCT COUNT ( * ) * + + 47 * + ( 68 ) AS col0
----
3196

query II rowsort
SELECT ALL + 49 - + + 18 + + - 8 + 32, 37 AS col2
----
55
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7677
SELECT SUM( - 30 ) * 26 DIV + - 19 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-7677
SELECT SUM ( - 30 ) * 26 / + - 19 AS col0
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7678
SELECT ALL + - 42 * + - COUNT( * ) DIV 67 * + 73 * - 3
----
0

skipif mysql # not compatible
query I rowsort label-7678
SELECT ALL + - 42 * + - COUNT ( * ) / 67 * + 73 * - 3
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7680
SELECT DISTINCT - - MIN( + 54 )
----
54

skipif mysql # not compatible
query I rowsort label-7680
SELECT DISTINCT - - MIN ( + 54 )
----
54

query I rowsort
SELECT 32 * + + 46 AS col2
----
1472

query I rowsort
SELECT 22 + - + 61 + - ( - 86 ) col0
----
47

query I rowsort
SELECT DISTINCT - COALESCE ( 82, + + 21 ) * + + 80
----
-6560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7684
SELECT DISTINCT - COUNT( * ) DIV + 54 * + - 81 * + + 3
----
0

skipif mysql # not compatible
query I rowsort label-7684
SELECT DISTINCT - COUNT ( * ) / + 54 * + - 81 * + + 3
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7685
SELECT ALL 89 * + + 26, 94 - + COUNT( * ) - 29 DIV MAX( + + 56 ) DIV - 30 + + 27 - 16 - 62 * - 29 AS col2
----
2314
1902

skipif mysql # not compatible
query II rowsort label-7685
SELECT ALL 89 * + + 26, 94 - + COUNT ( * ) - 29 / MAX ( + + 56 ) / - 30 + + 27 - 16 - 62 * - 29 AS col2
----
2314
1902

query I rowsort
SELECT DISTINCT 48 * 76
----
3648

query I rowsort
SELECT 22 * - - 69 * + 59 AS col2
----
89562

query I rowsort
SELECT 50 - 46 AS col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7689
SELECT DISTINCT 82 + - CAST( NULL AS SIGNED ) + 21 * 26 + - 17 + - + 34 * - - COUNT( * ) * - 72 + + 95 + - - 96 AS col0, + CASE - 16 WHEN + + COUNT( * ) THEN NULL WHEN + 17 THEN CAST( + 46 AS SIGNED ) * + NULLIF ( - CASE ( + + MAX( ALL 5 ) ) WHEN - - COUNT( DISTINCT - 36 ) THEN NULL WHEN ( + - COUNT( * ) ) THEN + NULLIF ( - 89, ( + 11 ) ) ELSE - 12 END, - - 46 ) END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7689
SELECT DISTINCT 82 + - CAST ( NULL AS INTEGER ) + 21 * 26 + - 17 + - + 34 * - - COUNT ( * ) * - 72 + + 95 + - - 96 AS col0, + CASE - 16 WHEN + + COUNT ( * ) THEN NULL WHEN + 17 THEN CAST ( + 46 AS INTEGER ) * + NULLIF ( - CASE ( + + MAX ( ALL 5 ) ) WHEN - - COUNT ( DISTINCT - 36 ) THEN NULL WHEN ( + - COUNT ( * ) ) THEN + NULLIF ( - 89, ( + 11 ) ) ELSE - 12 END, - - 46 ) END
----
NULL
NULL

query I rowsort
SELECT DISTINCT 40 + - + 84 AS col0
----
-44

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7692
SELECT 98 * + 94 * + NULLIF ( + - COUNT( * ), + 86 ) * - 35
----
322420

skipif mysql # not compatible
query I rowsort label-7692
SELECT 98 * + 94 * + NULLIF ( + - COUNT ( * ), + 86 ) * - 35
----
322420

onlyif mysql # aggregate syntax: 
query I rowsort label-7693
SELECT - - COUNT( - + 31 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7693
SELECT - - COUNT ( - + 31 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7694
SELECT ALL COALESCE ( - 40, + - MIN( DISTINCT + 54 ) ) - + 59 * - + ( + + 27 )
----
1553

skipif mysql # not compatible
query I rowsort label-7694
SELECT ALL COALESCE ( - 40, + - MIN ( DISTINCT + 54 ) ) - + 59 * - + ( + + 27 )
----
1553

onlyif mysql # DIV for integer division: 
query I rowsort label-7695
SELECT + - 82 DIV 93 - + - 86 * 42 AS col1
----
3612

skipif mysql # not compatible
query I rowsort label-7695
SELECT + - 82 / 93 - + - 86 * 42 AS col1
----
3612

onlyif mysql # aggregate syntax: 
query I rowsort label-7696
SELECT 77 * COUNT( ( - 46 ) )
----
77

skipif mysql # not compatible
query I rowsort label-7696
SELECT 77 * COUNT ( ( - 46 ) )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT ALL MIN( - + 59 ) * 86
----
-5074

skipif mysql # not compatible
query I rowsort label-7697
SELECT ALL MIN ( - + 59 ) * 86
----
-5074

onlyif mysql # aggregate syntax: 
query I rowsort label-7698
SELECT COUNT( * ) - - COALESCE ( + 43, + 7 )
----
44

skipif mysql # not compatible
query I rowsort label-7698
SELECT COUNT ( * ) - - COALESCE ( + 43, + 7 )
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7699
SELECT + CASE AVG ( - 46 ) WHEN CAST( - COUNT( * ) AS SIGNED ) THEN + ( - 54 ) ELSE NULL END / 32 / - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-7699
SELECT + CASE AVG ( - 46 ) WHEN CAST ( - COUNT ( * ) AS INTEGER ) THEN + ( - 54 ) ELSE NULL END / 32 / - 84
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7700
SELECT DISTINCT 13 * 82 * 78 + - COUNT( * ) AS col2
----
83147

skipif mysql # not compatible
query I rowsort label-7700
SELECT DISTINCT 13 * 82 * 78 + - COUNT ( * ) AS col2
----
83147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7701
SELECT DISTINCT 17 * - AVG ( DISTINCT - 22 ) + + 99 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7701
SELECT DISTINCT 17 * - AVG ( DISTINCT - 22 ) + + 99 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7702
SELECT + 61 DIV - MIN( DISTINCT 29 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-7702
SELECT + 61 / - MIN ( DISTINCT 29 ) AS col2
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-7703
SELECT DISTINCT - 62 DIV + 81 + - 37 AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-7703
SELECT DISTINCT - 62 / + 81 + - 37 AS col2
----
-37

query I rowsort
SELECT 64 * + 86 * - ( - 62 )
----
341248

query I rowsort
SELECT 54 * - 60 + 44 + - 4
----
-3200

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

skipif mysql # not compatible
query I rowsort label-7706
SELECT + 31 * + + 0 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7707
SELECT + 11 * NULLIF ( + 28, - + COUNT( * ) + - - 85 - - 91 ) AS col2
----
308

skipif mysql # not compatible
query I rowsort label-7707
SELECT + 11 * NULLIF ( + 28, - + COUNT ( * ) + - - 85 - - 91 ) AS col2
----
308

query II rowsort
SELECT ALL - 77 AS col0, 84 * 46 * 77 AS col2
----
-77
297528

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7709
SELECT + CASE - 20 WHEN NULLIF ( + COUNT( * ), 85 ) * + 48 + + COALESCE ( - 57, - 63 * - 15 ) / - 64 THEN - + 65 * + MAX( ALL - 29 ) WHEN SUM( ALL + CAST( - 4 AS SIGNED ) ) THEN + - 33 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7709
SELECT + CASE - 20 WHEN NULLIF ( + COUNT ( * ), 85 ) * + 48 + + COALESCE ( - 57, - 63 * - 15 ) / - 64 THEN - + 65 * + MAX ( ALL - 29 ) WHEN SUM ( ALL + CAST ( - 4 AS INTEGER ) ) THEN + - 33 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7710
SELECT 25 + + + COUNT( * ) + - ( - 95 )
----
121

skipif mysql # not compatible
query I rowsort label-7710
SELECT 25 + + + COUNT ( * ) + - ( - 95 )
----
121

query I rowsort
SELECT ALL - 14 * - 31 AS col2
----
434

query I rowsort
SELECT 32 * + 53 AS col1
----
1696

query I rowsort
SELECT ALL 25 + 91 AS col0
----
116

query I rowsort
SELECT ALL + 41 + 20
----
61

query I rowsort
SELECT - 89 * 22 AS col2
----
-1958

onlyif mysql # aggregate syntax: 
query I rowsort label-7716
SELECT - COALESCE ( - + 82, + COUNT( * ) * 84 + + + COUNT( * ) ) + + 95 AS col1
----
177

skipif mysql # not compatible
query I rowsort label-7716
SELECT - COALESCE ( - + 82, + COUNT ( * ) * 84 + + + COUNT ( * ) ) + + 95 AS col1
----
177

onlyif mysql # aggregate syntax: 
query II rowsort label-7717
SELECT ALL COUNT( DISTINCT + ( + 50 ) ) AS col2, 27 * + 29
----
1
783

skipif mysql # not compatible
query II rowsort label-7717
SELECT ALL COUNT ( DISTINCT + ( + 50 ) ) AS col2, 27 * + 29
----
1
783

onlyif mysql # aggregate syntax: 
query II rowsort label-7718
SELECT DISTINCT COUNT( * ) AS col2, ( + - 17 ) + + 43
----
1
26

skipif mysql # not compatible
query II rowsort label-7718
SELECT DISTINCT COUNT ( * ) AS col2, ( + - 17 ) + + 43
----
1
26

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7720
SELECT - 53 + + + 24 + + 15 * MAX( DISTINCT - 2 )
----
-59

skipif mysql # not compatible
query I rowsort label-7720
SELECT - 53 + + + 24 + + 15 * MAX ( DISTINCT - 2 )
----
-59

query II rowsort
SELECT 12 AS col2, 52 + + 56 col2
----
12
108

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7723
SELECT ALL + 79 / + + CASE - COUNT( * ) WHEN + 10 THEN - ( + 3 ) WHEN + ( - 39 ) * + - 20 THEN 22 ELSE NULL END * - + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7723
SELECT ALL + 79 / + + CASE - COUNT ( * ) WHEN + 10 THEN - ( + 3 ) WHEN + ( - 39 ) * + - 20 THEN 22 ELSE NULL END * - + COUNT ( * ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7724
SELECT ALL 93 * - - ( - SUM( - 43 ) )
----
3999

skipif mysql # not compatible
query I rowsort label-7724
SELECT ALL 93 * - - ( - SUM ( - 43 ) )
----
3999

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT - 99 - + - COUNT( - 21 )
----
-98

skipif mysql # not compatible
query I rowsort label-7725
SELECT - 99 - + - COUNT ( - 21 )
----
-98

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7727
SELECT - MIN( 64 )
----
-64

skipif mysql # not compatible
query I rowsort label-7727
SELECT - MIN ( 64 )
----
-64

query I rowsort
SELECT - - 68 + + 17 AS col0
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7729
SELECT ALL + 63 - + COALESCE ( - CAST( + CAST( + 11 AS SIGNED ) AS SIGNED ), + 58 + - 59, - 97 * - - 64 * 50 * - - CASE 90 WHEN - MAX( 62 ) / ( - NULLIF ( + 45, + MAX( DISTINCT + 45 ) * + 26 * + + SUM( DISTINCT - CAST( + 17 AS SIGNED ) ) ) ) + - 20 THEN NULL ELSE - + 43 + 74 END + - COUNT( * ) + - COUNT( - 27 ) + - + 30 * - 52 * + 43 ) + + - 28 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7729
SELECT ALL + 63 - + COALESCE ( - CAST ( + CAST ( + 11 AS INTEGER ) AS INTEGER ), + 58 + - 59, - 97 * - - 64 * 50 * - - CASE 90 WHEN - MAX ( 62 ) / ( - NULLIF ( + 45, + MAX ( DISTINCT + 45 ) * + 26 * + + SUM ( DISTINCT - CAST ( + 17 AS INTEGER ) ) ) ) + - 20 THEN NULL ELSE - + 43 + 74 END + - COUNT ( * ) + - COUNT ( - 27 ) + - + 30 * - 52 * + 43 ) + + - 28 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7730
SELECT - + 93 + + - COUNT( * ) + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7730
SELECT - + 93 + + - COUNT ( * ) + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL 62 - 38 * - + COALESCE ( 91, 71 )
----
3520

query I rowsort
SELECT + - 19 + + + 62
----
43

query I rowsort
SELECT + + 44 * 59 + - + 3 AS col0
----
2593

onlyif mysql # DIV for integer division: 
query I rowsort label-7734
SELECT - + NULLIF ( - 24, + + 79 ) DIV 28 * - - 54 + - 88 AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-7734
SELECT - + NULLIF ( - 24, + + 79 ) / 28 * - - 54 + - 88 AS col1
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7735
SELECT DISTINCT COALESCE ( - COUNT( * ), CAST( + COUNT( * ) AS SIGNED ) * 82 ) * - 54
----
54

skipif mysql # not compatible
query I rowsort label-7735
SELECT DISTINCT COALESCE ( - COUNT ( * ), CAST ( + COUNT ( * ) AS INTEGER ) * 82 ) * - 54
----
54

query I rowsort
SELECT + 86 + + ( - 70 )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT MAX( 34 ) col0
----
34

skipif mysql # not compatible
query I rowsort label-7737
SELECT MAX ( 34 ) col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7738
SELECT + - COUNT( DISTINCT + 4 )
----
-1

skipif mysql # not compatible
query I rowsort label-7738
SELECT + - COUNT ( DISTINCT + 4 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7739
SELECT DISTINCT MAX( + 38 ) * - COALESCE ( + MIN( DISTINCT 45 ), 90 * 10 ) AS col0
----
-1710

skipif mysql # not compatible
query I rowsort label-7739
SELECT DISTINCT MAX ( + 38 ) * - COALESCE ( + MIN ( DISTINCT 45 ), 90 * 10 ) AS col0
----
-1710

query I rowsort
SELECT DISTINCT + 28 * - 42
----
-1176

onlyif mysql # aggregate syntax: 
query I rowsort label-7741
SELECT DISTINCT - 80 * - + COUNT( * ) * + + ( - - 36 ) + 24 * + + 95 AS col2
----
5160

skipif mysql # not compatible
query I rowsort label-7741
SELECT DISTINCT - 80 * - + COUNT ( * ) * + + ( - - 36 ) + 24 * + + 95 AS col2
----
5160

query I rowsort
SELECT + NULLIF ( + 65, + 97 - 63 )
----
65

query I rowsort
SELECT ALL 83 * + 14 * - + 1 + + 66 + - + 14
----
-1110

onlyif mysql # aggregate syntax: 
query I rowsort label-7744
SELECT + 12 - - 85 * - + 56 * + 80 + 6 * - COUNT( * )
----
-380794

skipif mysql # not compatible
query I rowsort label-7744
SELECT + 12 - - 85 * - + 56 * + 80 + 6 * - COUNT ( * )
----
-380794

onlyif mysql # aggregate syntax: 
query I rowsort label-7745
SELECT MAX( ALL - NULLIF ( 5, 29 + + 85 ) ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-7745
SELECT MAX ( ALL - NULLIF ( 5, 29 + + 85 ) ) AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7746
SELECT DISTINCT - 65 * - COUNT( - + 1 ) * + + NULLIF ( + - 58, - + 67 ) AS col1
----
-3770

skipif mysql # not compatible
query I rowsort label-7746
SELECT DISTINCT - 65 * - COUNT ( - + 1 ) * + + NULLIF ( + - 58, - + 67 ) AS col1
----
-3770

onlyif mysql # DIV for integer division: 
query I rowsort label-7747
SELECT ALL ( + 38 ) * 33 DIV 1 - + 44
----
1210

skipif mysql # not compatible
query I rowsort label-7747
SELECT ALL ( + 38 ) * 33 / 1 - + 44
----
1210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7748
SELECT - MAX( - - ( + 92 ) ) * - + CAST( NULL AS SIGNED ), 37 AS col0
----
NULL
37

skipif mysql # not compatible
query II rowsort label-7748
SELECT - MAX ( - - ( + 92 ) ) * - + CAST ( NULL AS INTEGER ), 37 AS col0
----
NULL
37

query I rowsort
SELECT + 57 * 89 + + 36
----
5109

query I rowsort
SELECT - 75 + + - ( + 13 )
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-7751
SELECT - ( + 87 ) DIV + 72 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7751
SELECT - ( + 87 ) / + 72 AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7752
SELECT DISTINCT + - 77 DIV - 69 - + 13 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-7752
SELECT DISTINCT + - 77 / - 69 - + 13 AS col0
----
-12

query I rowsort
SELECT - - ( + ( - 85 ) ) + 82 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7754
SELECT ALL NULLIF ( - 85, - COUNT( * ) )
----
-85

skipif mysql # not compatible
query I rowsort label-7754
SELECT ALL NULLIF ( - 85, - COUNT ( * ) )
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7755
SELECT - COUNT( * ) * 63 * 6 DIV + 81 AS col2, - CASE - 7 WHEN ( AVG ( 17 ) ) DIV 18 THEN COUNT( * ) WHEN - CASE + 35 WHEN + 1 - - COUNT( * ) THEN - SUM( - 47 ) * COUNT( * ) END THEN - 51 END * CAST( NULL AS SIGNED ) col2
----
-4
NULL

skipif mysql # not compatible
query II rowsort label-7755
SELECT - COUNT ( * ) * 63 * 6 / + 81 AS col2, - CASE - 7 WHEN ( AVG ( 17 ) ) / 18 THEN COUNT ( * ) WHEN - CASE + 35 WHEN + 1 - - COUNT ( * ) THEN - SUM ( - 47 ) * COUNT ( * ) END THEN - 51 END * CAST ( NULL AS INTEGER ) col2
----
-4
NULL

query I rowsort
SELECT DISTINCT + - COALESCE ( - 35, + 92 ) * - 89 col2
----
-3115

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

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

query I rowsort
SELECT - - 17 col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT CASE - - AVG ( DISTINCT + + 12 ) WHEN - 38 THEN NULL WHEN COUNT( * ) THEN NULL ELSE - + 10 END col0
----
-10

skipif mysql # not compatible
query I rowsort label-7759
SELECT CASE - - AVG ( DISTINCT + + 12 ) WHEN - 38 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE - + 10 END col0
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7760
SELECT - + 12 DIV - - MAX( - 18 ) * - 6, - 64 AS col2
----
0
-64

skipif mysql # not compatible
query II rowsort label-7760
SELECT - + 12 / - - MAX ( - 18 ) * - 6, - 64 AS col2
----
0
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-7761
SELECT - + 7 DIV + 54 + - + 38 + + 14 * - 27 + 11
----
-405

skipif mysql # not compatible
query I rowsort label-7761
SELECT - + 7 / + 54 + - + 38 + + 14 * - 27 + 11
----
-405

onlyif mysql # DIV for integer division: 
query I rowsort label-7762
SELECT - - NULLIF ( 38, - 25 - + 11 ) DIV + 13 + + 32 - 69 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-7762
SELECT - - NULLIF ( 38, - 25 - + 11 ) / + 13 + + 32 - 69 AS col0
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7763
SELECT + - COALESCE ( - + 8, + 51 + + - 18 DIV + + 21 + - 0 * + + 36 + - 68 + CASE + ( + 91 ) WHEN 11 THEN + ( COALESCE ( + + 16, - - SUM( DISTINCT - ( - CAST( - CAST( 4 AS SIGNED ) AS SIGNED ) ) ) + 77 * + - COUNT( * ) ) ) * + 17 + + 48 END, - + COALESCE ( + - NULLIF ( + COUNT( * ), - + NULLIF ( - 67, + SUM( - 5 ) ) ), 87 ) * - + 37 ) * + + 1
----
8

skipif mysql # not compatible
query I rowsort label-7763
SELECT + - COALESCE ( - + 8, + 51 + + - 18 / + + 21 + - 0 * + + 36 + - 68 + CASE + ( + 91 ) WHEN 11 THEN + ( COALESCE ( + + 16, - - SUM ( DISTINCT - ( - CAST ( - CAST ( 4 AS INTEGER ) AS INTEGER ) ) ) + 77 * + - COUNT ( * ) ) ) * + 17 + + 48 END, - + COALESCE ( + - NULLIF ( + COUNT ( * ), - + NULLIF ( - 67, + SUM ( - 5 ) ) ), 87 ) * - + 37 ) * + + 1
----
8

query I rowsort
SELECT - - 21 - - 75 AS col2
----
96

query I rowsort
SELECT DISTINCT + + ( + NULLIF ( 31, + 45 * 28 ) )
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7766
SELECT DISTINCT - COUNT( * ) / + 33 * - 35 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7766
SELECT DISTINCT - COUNT ( * ) / + 33 * - 35 + - CAST ( NULL AS INTEGER )
----
NULL

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

query I rowsort
SELECT - 78 * - 23 * + + 15
----
26910

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7769
SELECT ALL + 52 DIV - + 5 + COUNT( + 39 )
----
-9

skipif mysql # not compatible
query I rowsort label-7769
SELECT ALL + 52 / - + 5 + COUNT ( + 39 )
----
-9

query I rowsort
SELECT - 66 + 82 col0
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7771
SELECT MIN( 70 ) DIV + COUNT( * ) - + 82 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-7771
SELECT MIN ( 70 ) / + COUNT ( * ) - + 82 AS col1
----
-12

query I rowsort
SELECT ALL 30 + + 83
----
113

query I rowsort
SELECT 87 * - ( - - 99 ) + + 61 * - 49
----
-11602

onlyif mysql # aggregate syntax: 
query II rowsort label-7774
SELECT ALL 47, - COUNT( * ) + - ( - - 90 ) AS col2
----
47
-91

skipif mysql # not compatible
query II rowsort label-7774
SELECT ALL 47, - COUNT ( * ) + - ( - - 90 ) AS col2
----
47
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-7775
SELECT 66 DIV - 32
----
-2

skipif mysql # not compatible
query I rowsort label-7775
SELECT 66 / - 32
----
-2

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7777
SELECT ALL 58 DIV ( + 57 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7777
SELECT ALL 58 / ( + 57 ) AS col0
----
1

query I rowsort
SELECT 83 * - 64
----
-5312

query I rowsort
SELECT - 38 * 89
----
-3382

query I rowsort
SELECT 14 + - 74 AS col1
----
-60

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7783
SELECT DISTINCT + ( - - 86 ) * + - CAST( COUNT( * ) AS SIGNED ) + + ( + - 31 ) AS col1, 87
----
-117
87

skipif mysql # not compatible
query II rowsort label-7783
SELECT DISTINCT + ( - - 86 ) * + - CAST ( COUNT ( * ) AS INTEGER ) + + ( + - 31 ) AS col1, 87
----
-117
87

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

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

query I rowsort
SELECT ALL + 22 * 20
----
440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7786
SELECT + CASE - CAST( - + MAX( DISTINCT - 82 ) AS SIGNED ) WHEN + 66 THEN + 41 * + ( + 18 ) + CAST( + - 79 AS DECIMAL ) - + 64 END * + AVG ( DISTINCT - 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7786
SELECT + CASE - CAST ( - + MAX ( DISTINCT - 82 ) AS INTEGER ) WHEN + 66 THEN + 41 * + ( + 18 ) + CAST ( + - 79 AS REAL ) - + 64 END * + AVG ( DISTINCT - 7 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7787
SELECT + 41 + + COALESCE ( - + CAST( NULL AS SIGNED ), - 66 + + 9 + 29 ) + + 82 + 25
----
120

skipif mysql # not compatible
query I rowsort label-7787
SELECT + 41 + + COALESCE ( - + CAST ( NULL AS INTEGER ), - 66 + + 9 + 29 ) + + 82 + 25
----
120

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7790
SELECT 62 + + 3 + - + 15 - + - CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7790
SELECT 62 + + 3 + - + 15 - + - CAST ( CAST ( NULL AS REAL ) AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7791
SELECT COALESCE ( + 60, 60 * CAST( NULL AS SIGNED ) ) col0
----
60

skipif mysql # not compatible
query I rowsort label-7791
SELECT COALESCE ( + 60, 60 * CAST ( NULL AS INTEGER ) ) col0
----
60

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

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

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

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

query II rowsort
SELECT DISTINCT - 13 AS col2, - 12 AS col1
----
-13
-12

query I rowsort
SELECT DISTINCT + COALESCE ( - 72, 17 ) + - CASE - - 73 WHEN - 47 THEN - 95 + - 77 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT ALL - ( - COUNT( * ) ) + + 20 * 21
----
421

skipif mysql # not compatible
query I rowsort label-7796
SELECT ALL - ( - COUNT ( * ) ) + + 20 * 21
----
421

onlyif mysql # aggregate syntax: 
query II rowsort label-7797
SELECT 31 + COUNT( * ) * - 42 col2, + MIN( ALL - 19 ) + 40
----
-11
21

skipif mysql # not compatible
query II rowsort label-7797
SELECT 31 + COUNT ( * ) * - 42 col2, + MIN ( ALL - 19 ) + 40
----
-11
21

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7799
SELECT COALESCE ( + 42, - COUNT( 93 ) * COUNT( * ) - - ( 73 ) + + 39 ) * 37 DIV + 8
----
194

skipif mysql # not compatible
query I rowsort label-7799
SELECT COALESCE ( + 42, - COUNT ( 93 ) * COUNT ( * ) - - ( 73 ) + + 39 ) * 37 / + 8
----
194

onlyif mysql # aggregate syntax: 
query I rowsort label-7800
SELECT + COUNT( DISTINCT 90 ) * - 61 + - - 27 + + NULLIF ( - 8, + 81 + - + 66 )
----
-42

skipif mysql # not compatible
query I rowsort label-7800
SELECT + COUNT ( DISTINCT 90 ) * - 61 + - - 27 + + NULLIF ( - 8, + 81 + - + 66 )
----
-42

query II rowsort
SELECT + 60, NULLIF ( + NULLIF ( + 99, - - 36 + + 61 + 16 + 85 + 69 * - 24 * 83 ), 14 ) + - 19 * - - 3 AS col1
----
60
42

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

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

query II rowsort
SELECT 31 * - 3 AS col2, - 0 AS col0
----
-93
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7804
SELECT MAX( + 92 ) + + ( - 62 ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-7804
SELECT MAX ( + 92 ) + + ( - 62 ) AS col2
----
30

query I rowsort
SELECT ALL + 92 - 85 AS col0
----
7

query I rowsort
SELECT 41 * 60
----
2460

query I rowsort
SELECT 83 * + + 40 + - - ( 13 ) AS col0
----
3333

query II rowsort
SELECT DISTINCT - 92, - 78 AS col1
----
-92
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7809
SELECT 66 * + SUM( DISTINCT 6 ) AS col0
----
396

skipif mysql # not compatible
query I rowsort label-7809
SELECT 66 * + SUM ( DISTINCT 6 ) AS col0
----
396

query II rowsort
SELECT ALL - 11 AS col2, 82
----
-11
82

query I rowsort
SELECT 56 * - 54
----
-3024

query II rowsort
SELECT 66 AS col1, ( + 27 ) - + 73 * - 15 + - - NULLIF ( 84, 3 * - + 22 * - 80 ) * 53 col0
----
66
5574

onlyif mysql # aggregate syntax: 
query I rowsort label-7813
SELECT ALL 17 * + ( COUNT( * ) ) col0
----
17

skipif mysql # not compatible
query I rowsort label-7813
SELECT ALL 17 * + ( COUNT ( * ) ) col0
----
17

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

skipif mysql # not compatible
query I rowsort label-7814
SELECT 11 * + COUNT ( * ) / 12 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7815
SELECT DISTINCT - 48 DIV - 15
----
3

skipif mysql # not compatible
query I rowsort label-7815
SELECT DISTINCT - 48 / - 15
----
3

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7817
SELECT ALL - + 93 * - - 40 - - COUNT( ALL 67 ) DIV - 42 - - COUNT( ALL + 36 ) AS col0
----
-3719

skipif mysql # not compatible
query I rowsort label-7817
SELECT ALL - + 93 * - - 40 - - COUNT ( ALL 67 ) / - 42 - - COUNT ( ALL + 36 ) AS col0
----
-3719

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7819
SELECT CAST( COUNT( * ) AS SIGNED ) - + - 41 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-7819
SELECT CAST ( COUNT ( * ) AS INTEGER ) - + - 41 AS col2
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-7820
SELECT - 55 DIV - 69
----
0

skipif mysql # not compatible
query I rowsort label-7820
SELECT - 55 / - 69
----
0

query I rowsort
SELECT 98 + + + 40 + - 59 AS col0
----
79

query I rowsort
SELECT ALL 95 + 3 AS col0
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7823
SELECT - COUNT( * ) * + + 90 * COALESCE ( - COUNT( * ), + 13 - - - CASE - 96 WHEN + COUNT( * ) THEN + 15 * + COUNT( * ) END + - - 48 ) + - + ( + + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7823
SELECT - COUNT ( * ) * + + 90 * COALESCE ( - COUNT ( * ), + 13 - - - CASE - 96 WHEN + COUNT ( * ) THEN + 15 * + COUNT ( * ) END + - - 48 ) + - + ( + + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query II rowsort
SELECT - 30 AS col0, 14 AS col2
----
-30
14

onlyif mysql # aggregate syntax: 
query II rowsort label-7825
SELECT DISTINCT + 32 + ( 57 ) + - COUNT( ( 87 ) ) AS col2, 33
----
88
33

skipif mysql # not compatible
query II rowsort label-7825
SELECT DISTINCT + 32 + ( 57 ) + - COUNT ( ( 87 ) ) AS col2, 33
----
88
33

query I rowsort
SELECT ALL + 74 + - 29 * ( - - 24 ) + 51 AS col1
----
-571

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7828
SELECT DISTINCT 79 + COUNT( * ) + + ( - 17 ) DIV + 30 * - + 22 AS col2, ( CASE - 66 WHEN COUNT( * ) THEN + 24 + - + NULLIF ( + 14, + ( 10 ) ) WHEN - COUNT( * ) THEN + 40 - + 18 + - 92 + + COALESCE ( - 86, - AVG ( - - COALESCE ( - 88, + 75 ) ) ) ELSE - 12 * - 71 * + + CASE + COUNT( * ) WHEN - 34 THEN NULL WHEN - - COUNT( * ) + MAX( + 44 ) + + COALESCE ( - ( + SUM( DISTINCT + 17 ) ), 74 + 44 ) * 26 * 79 THEN NULL WHEN - 19 - COUNT( * ) THEN 72 * COUNT( * ) + - ( 88 ) ELSE NULL END - 94 END )
----
80
NULL

skipif mysql # not compatible
query II rowsort label-7828
SELECT DISTINCT 79 + COUNT ( * ) + + ( - 17 ) / + 30 * - + 22 AS col2, ( CASE - 66 WHEN COUNT ( * ) THEN + 24 + - + NULLIF ( + 14, + ( 10 ) ) WHEN - COUNT ( * ) THEN + 40 - + 18 + - 92 + + COALESCE ( - 86, - AVG ( - - COALESCE ( - 88, + 75 ) ) ) ELSE - 12 * - 71 * + + CASE + COUNT ( * ) WHEN - 34 THEN NULL WHEN - - COUNT ( * ) + MAX ( + 44 ) + + COALESCE ( - ( + SUM ( DISTINCT + 17 ) ), 74 + 44 ) * 26 * 79 THEN NULL WHEN - 19 - COUNT ( * ) THEN 72 * COUNT ( * ) + - ( 88 ) ELSE NULL END - 94 END )
----
80
NULL

query II rowsort
SELECT DISTINCT 47 col1, - ( - - 75 ) * 67 * 71 + 41
----
47
-356734

onlyif mysql # aggregate syntax: 
query I rowsort label-7830
SELECT ALL - + 93 + + 48 * + - COALESCE ( + 84, - COUNT( * ) ) AS col1
----
-4125

skipif mysql # not compatible
query I rowsort label-7830
SELECT ALL - + 93 + + 48 * + - COALESCE ( + 84, - COUNT ( * ) ) AS col1
----
-4125

query I rowsort
SELECT ALL - 49 * + NULLIF ( 37, + 0 ) + - 80 * + - 15 * + + 74 AS col0
----
86987

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

skipif mysql # not compatible
query II rowsort label-7832
SELECT - 76, + COUNT ( * ) col1
----
-76
1

query I rowsort
SELECT - 42 * + 89 * - 49
----
183162

onlyif mysql # aggregate syntax: 
query II rowsort label-7834
SELECT + COUNT( * ) - - 41 AS col0, 84 AS col0
----
42
84

skipif mysql # not compatible
query II rowsort label-7834
SELECT + COUNT ( * ) - - 41 AS col0, 84 AS col0
----
42
84

query I rowsort
SELECT - 6 * + 45 col2
----
-270

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7837
SELECT ALL 47 DIV - 17 AS col1, + ( + ( - 64 ) ) + + + CAST( NULL AS SIGNED )
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-7837
SELECT ALL 47 / - 17 AS col1, + ( + ( - 64 ) ) + + + CAST ( NULL AS INTEGER )
----
-2
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT - SUM( 50 ) - 61 * NULLIF ( - COUNT( * ), - - 10 )
----
11

skipif mysql # not compatible
query I rowsort label-7838
SELECT - SUM ( 50 ) - 61 * NULLIF ( - COUNT ( * ), - - 10 )
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7839
SELECT + 70 DIV - ( MAX( + - 9 ) )
----
7

skipif mysql # not compatible
query I rowsort label-7839
SELECT + 70 / - ( MAX ( + - 9 ) )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7840
SELECT - MIN( + 16 ) * 65 * COUNT( * ) AS col2
----
-1040

skipif mysql # not compatible
query I rowsort label-7840
SELECT - MIN ( + 16 ) * 65 * COUNT ( * ) AS col2
----
-1040

query I rowsort
SELECT DISTINCT - 16 * - 48 * 53
----
40704

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

skipif mysql # not compatible
query I rowsort label-7842
SELECT ALL + 61 * - COUNT ( * ) * + ( + - 50 ) AS col2
----
3050

onlyif mysql # aggregate syntax: 
query I rowsort label-7843
SELECT - 52 * + + 61 * 35 * CASE - AVG ( ( - 77 ) ) WHEN 60 THEN + 16 - - + 72 WHEN - COUNT( * ) + + - 5 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7843
SELECT - 52 * + + 61 * 35 * CASE - AVG ( ( - 77 ) ) WHEN 60 THEN + 16 - - + 72 WHEN - COUNT ( * ) + + - 5 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7844
SELECT - 11 * COALESCE ( COUNT( * ), + 7 * - 14 DIV - + 50 * - 46 * 40, + 65, 51 ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-7844
SELECT - 11 * COALESCE ( COUNT ( * ), + 7 * - 14 / - + 50 * - 46 * 40, + 65, 51 ) AS col0
----
-11

query I rowsort
SELECT 61 * ( + - 91 ) + - 18 AS col0
----
-5569

onlyif mysql # DIV for integer division: 
query I rowsort label-7846
SELECT - 29 DIV - 62
----
0

skipif mysql # not compatible
query I rowsort label-7846
SELECT - 29 / - 62
----
0

query I rowsort
SELECT DISTINCT 87 * - + 11 AS col0
----
-957

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7848
SELECT - CAST( + 61 AS SIGNED ) + 40 * 12 + 85
----
504

skipif mysql # not compatible
query I rowsort label-7848
SELECT - CAST ( + 61 AS INTEGER ) + 40 * 12 + 85
----
504

query I rowsort
SELECT ALL 5 * + 66
----
330

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

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

query I rowsort
SELECT ALL - 32 * 76 + + 52 + + 14
----
-2366

onlyif mysql # aggregate syntax: 
query I rowsort label-7852
SELECT ALL + COUNT( * ) * - + 47 + ( ( - 69 ) ) + CASE + 97 WHEN 61 + - - 49 THEN - 30 ELSE NULL END / - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-7852
SELECT ALL + COUNT ( * ) * - + 47 + ( ( - 69 ) ) + CASE + 97 WHEN 61 + - - 49 THEN - 30 ELSE NULL END / - 21
----
NULL

query II rowsort
SELECT ALL + - NULLIF ( - + 5, + 57 ) + - 48 * - 49 col0, - 95 AS col1
----
2357
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7854
SELECT ALL - 5 + + NULLIF ( + - COUNT( * ), + 33 )
----
-6

skipif mysql # not compatible
query I rowsort label-7854
SELECT ALL - 5 + + NULLIF ( + - COUNT ( * ), + 33 )
----
-6

query I rowsort
SELECT - + 83 + + + 39 + - 75 * 72 col1
----
-5444

onlyif mysql # aggregate syntax: 
query I rowsort label-7856
SELECT - MIN( - 90 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-7856
SELECT - MIN ( - 90 ) AS col1
----
90

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7859
SELECT - + CAST ( NULL AS INTEGER ) + + 36 * + 46
----
NULL

query I rowsort
SELECT ALL ( + 60 ) + 44 AS col1
----
104

query I rowsort
SELECT DISTINCT - NULLIF ( 2, + 1 ) * - 13 AS col2
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7862
SELECT - ( CAST( NULL AS SIGNED ) ) + + NULLIF ( - 74, - 19 ) + + + 74 * + - 67 AS col2, + 73
----
NULL
73

skipif mysql # not compatible
query II rowsort label-7862
SELECT - ( CAST ( NULL AS INTEGER ) ) + + NULLIF ( - 74, - 19 ) + + + 74 * + - 67 AS col2, + 73
----
NULL
73

query I rowsort
SELECT + 39 + + - 14 + 82 * + 46 + + - 25
----
3772

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT - + MIN( ALL + 23 ) + COUNT( * ) - 65
----
-87

skipif mysql # not compatible
query I rowsort label-7864
SELECT - + MIN ( ALL + 23 ) + COUNT ( * ) - 65
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-7865
SELECT + 37 + - + 11 + - - 4 DIV + 55
----
26

skipif mysql # not compatible
query I rowsort label-7865
SELECT + 37 + - + 11 + - - 4 / + 55
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7866
SELECT + COALESCE ( + COUNT( ALL - - 84 ), - 74, - COUNT( * ) ) / - - CAST( NULL AS SIGNED ) + + 12 * 39 AS col1, - 54
----
NULL
-54

skipif mysql # not compatible
query II rowsort label-7866
SELECT + COALESCE ( + COUNT ( ALL - - 84 ), - 74, - COUNT ( * ) ) / - - CAST ( NULL AS INTEGER ) + + 12 * 39 AS col1, - 54
----
NULL
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-7867
SELECT DISTINCT 48 DIV - 48 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7867
SELECT DISTINCT 48 / - 48 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7868
SELECT DISTINCT + NULLIF ( COALESCE ( + - 7, 69 * 99 ), + + 92 ) / - - 92 - - 17 * CASE - - COALESCE ( + - ( - 13 ), + 50 ) WHEN + 75 * + + COUNT( * ) THEN 48 / + CAST( NULL AS SIGNED ) WHEN - + 2 + - 61 THEN NULL ELSE NULL END * + + ( ( - 19 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7868
SELECT DISTINCT + NULLIF ( COALESCE ( + - 7, 69 * 99 ), + + 92 ) / - - 92 - - 17 * CASE - - COALESCE ( + - ( - 13 ), + 50 ) WHEN + 75 * + + COUNT ( * ) THEN 48 / + CAST ( NULL AS INTEGER ) WHEN - + 2 + - 61 THEN NULL ELSE NULL END * + + ( ( - 19 ) )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7870
SELECT + SUM( ALL - + 7 ) + - CAST( NULL AS SIGNED ) * 45
----
NULL

skipif mysql # not compatible
query I rowsort label-7870
SELECT + SUM ( ALL - + 7 ) + - CAST ( NULL AS INTEGER ) * 45
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7871
SELECT ALL MAX( ( - 57 ) ) AS col2, - 99 AS col0
----
-57
-99

skipif mysql # not compatible
query II rowsort label-7871
SELECT ALL MAX ( ( - 57 ) ) AS col2, - 99 AS col0
----
-57
-99

query II rowsort
SELECT 75, 24 AS col1
----
75
24

query I rowsort
SELECT + 83 + - 51 AS col1
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7874
SELECT + CASE + 90 WHEN + - 62 - + 75 + ( + 68 ) * + + CAST( MIN( COALESCE ( + 71, - + 29 ) ) AS SIGNED ) / 44 THEN - 20 WHEN 71 THEN NULL WHEN - + 77 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7874
SELECT + CASE + 90 WHEN + - 62 - + 75 + ( + 68 ) * + + CAST ( MIN ( COALESCE ( + 71, - + 29 ) ) AS INTEGER ) / 44 THEN - 20 WHEN 71 THEN NULL WHEN - + 77 THEN NULL END
----
NULL

query I rowsort
SELECT + 29 * 33 AS col2
----
957

query I rowsort
SELECT ALL 41 * - 57 * - 70 AS col1
----
163590

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

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

query II rowsort
SELECT - 11 + - 89 + - - 78, + 40 + + 80 * 79 AS col1
----
-22
6360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7879
SELECT CAST( + NULLIF ( + 52, + - 57 * - COUNT( * ) ) AS SIGNED ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-7879
SELECT CAST ( + NULLIF ( + 52, + - 57 * - COUNT ( * ) ) AS INTEGER ) AS col1
----
52

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7881
SELECT ALL 66 DIV - 62 + ( + 55 ) + - 37 * - 92 * + 82 AS col0
----
279182

skipif mysql # not compatible
query I rowsort label-7881
SELECT ALL 66 / - 62 + ( + 55 ) + - 37 * - 92 * + 82 AS col0
----
279182

onlyif mysql # aggregate syntax: 
query I rowsort label-7882
SELECT + SUM( ALL + 24 ) * + 57 * - 24
----
-32832

skipif mysql # not compatible
query I rowsort label-7882
SELECT + SUM ( ALL + 24 ) * + 57 * - 24
----
-32832

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7883
SELECT + COUNT( * ) DIV - - CASE WHEN NOT ( NULL ) IS NULL THEN NULL ELSE + + MAX( DISTINCT + CAST( + 84 AS SIGNED ) ) END
----
0

skipif mysql # not compatible
query I rowsort label-7883
SELECT + COUNT ( * ) / - - CASE WHEN NOT ( NULL ) IS NULL THEN NULL ELSE + + MAX ( DISTINCT + CAST ( + 84 AS INTEGER ) ) END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7884
SELECT + 30 * + COUNT( * ) - - + COUNT( * ) * + - ( 15 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-7884
SELECT + 30 * + COUNT ( * ) - - + COUNT ( * ) * + - ( 15 ) AS col0
----
15

query II rowsort
SELECT ALL + 48 AS col1, - 65 + - 80
----
48
-145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7886
SELECT DISTINCT - - CASE + 77 WHEN + + 93 THEN 19 + - 37 / - CAST( NULL AS SIGNED ) WHEN - NULLIF ( - CAST( + + 44 AS SIGNED ), + 77 ) THEN NULL END * + 69 * 95 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7886
SELECT DISTINCT - - CASE + 77 WHEN + + 93 THEN 19 + - 37 / - CAST ( NULL AS INTEGER ) WHEN - NULLIF ( - CAST ( + + 44 AS INTEGER ), + 77 ) THEN NULL END * + 69 * 95 AS col1
----
NULL

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

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

query I rowsort
SELECT ALL + 74 * - 98
----
-7252

onlyif mysql # aggregate syntax: 
query I rowsort label-7889
SELECT DISTINCT - 98 * 87 + + MIN( 53 ) * - MIN( 50 ) - + 34 + - - 96 * - + 10 col1
----
-12170

skipif mysql # not compatible
query I rowsort label-7889
SELECT DISTINCT - 98 * 87 + + MIN ( 53 ) * - MIN ( 50 ) - + 34 + - - 96 * - + 10 col1
----
-12170

query I rowsort
SELECT DISTINCT + + 59 - + 28
----
31

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

skipif mysql # not compatible
query I rowsort label-7891
SELECT + COUNT ( * ) + - 69 + + - 31 / + COUNT ( * ) AS col1
----
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7892
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) - - - 27 + + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-7892
SELECT DISTINCT + - CAST ( NULL AS REAL ) - - - 27 + + 89
----
NULL

query I rowsort
SELECT DISTINCT - 0 * + 37 * - 10 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7894
SELECT ALL + 67 * 44 + + + CAST( + CAST( + 53 AS SIGNED ) AS SIGNED ) + - 48, + 17 AS col1
----
2953
17

skipif mysql # not compatible
query II rowsort label-7894
SELECT ALL + 67 * 44 + + + CAST ( + CAST ( + 53 AS INTEGER ) AS INTEGER ) + - 48, + 17 AS col1
----
2953
17

query I rowsort
SELECT 50 + + + 6 AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7896
SELECT 56 * - - COALESCE ( COUNT( * ), CASE - + 1 WHEN - - 90 THEN - + 96 + + 56 END ) * - + 21 AS col2
----
-1176

skipif mysql # not compatible
query I rowsort label-7896
SELECT 56 * - - COALESCE ( COUNT ( * ), CASE - + 1 WHEN - - 90 THEN - + 96 + + 56 END ) * - + 21 AS col2
----
-1176

onlyif mysql # aggregate syntax: 
query I rowsort label-7897
SELECT 60 * - 91 * - - COUNT( - 1 )
----
-5460

skipif mysql # not compatible
query I rowsort label-7897
SELECT 60 * - 91 * - - COUNT ( - 1 )
----
-5460

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7898
SELECT 98 DIV + 66 - - COUNT( * ) + + 31
----
33

skipif mysql # not compatible
query I rowsort label-7898
SELECT 98 / + 66 - - COUNT ( * ) + + 31
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7899
SELECT ALL SUM( DISTINCT 65 ) + 97 AS col2
----
162

skipif mysql # not compatible
query I rowsort label-7899
SELECT ALL SUM ( DISTINCT 65 ) + 97 AS col2
----
162

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7900
SELECT CASE + + 50 WHEN + 89 - - 77 THEN 44 END + + AVG ( DISTINCT + - 38 ) col2, - 31 / + CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7900
SELECT CASE + + 50 WHEN + 89 - - 77 THEN 44 END + + AVG ( DISTINCT + - 38 ) col2, - 31 / + CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT ALL + 98 + + COUNT( * ) - 40
----
59

skipif mysql # not compatible
query I rowsort label-7901
SELECT ALL + 98 + + COUNT ( * ) - 40
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7902
SELECT ALL 88 + + - COALESCE ( 43, - 56 ) * 17 * + CASE + 95 WHEN - 15 THEN - 84 WHEN - + 72 / - - COALESCE ( + 99, - + 40 + + COUNT( * ) + - - 39 ) + - MAX( DISTINCT + - 68 ) + - ( + 6 ) * - 20 THEN 59 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7902
SELECT ALL 88 + + - COALESCE ( 43, - 56 ) * 17 * + CASE + 95 WHEN - 15 THEN - 84 WHEN - + 72 / - - COALESCE ( + 99, - + 40 + + COUNT ( * ) + - - 39 ) + - MAX ( DISTINCT + - 68 ) + - ( + 6 ) * - 20 THEN 59 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7903
SELECT ALL SUM( - - 28 ) + + 3 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-7903
SELECT ALL SUM ( - - 28 ) + + 3 AS col1
----
31

query I rowsort
SELECT DISTINCT 17 + + 22 AS col0
----
39

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7906
SELECT + CASE - 43 WHEN - 93 THEN NULL WHEN - 50 THEN NULL ELSE + ( + + 97 ) * + - 68 END AS col0, + COUNT( * ) DIV 25 * + 5 AS col2
----
-6596
0

skipif mysql # not compatible
query II rowsort label-7906
SELECT + CASE - 43 WHEN - 93 THEN NULL WHEN - 50 THEN NULL ELSE + ( + + 97 ) * + - 68 END AS col0, + COUNT ( * ) / 25 * + 5 AS col2
----
-6596
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7907
SELECT - - CAST( NULL AS SIGNED ) / + ( + - 9 ) + + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7907
SELECT - - CAST ( NULL AS INTEGER ) / + ( + - 9 ) + + + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7908
SELECT - COUNT( * ) + 61 col1, + COUNT( - 92 )
----
60
1

skipif mysql # not compatible
query II rowsort label-7908
SELECT - COUNT ( * ) + 61 col1, + COUNT ( - 92 )
----
60
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7909
SELECT ALL 18 - + + COUNT( * ) + + COUNT( * ) * 49 + - 46
----
20

skipif mysql # not compatible
query I rowsort label-7909
SELECT ALL 18 - + + COUNT ( * ) + + COUNT ( * ) * 49 + - 46
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-7910
SELECT ALL - CASE + 36 WHEN 70 THEN - 75 + + ( - 2 ) WHEN - ( - NULLIF ( - + 70, + + 65 ) ) THEN NULL END AS col1, + SUM( - 15 )
----
NULL
-15

skipif mysql # not compatible
query II rowsort label-7910
SELECT ALL - CASE + 36 WHEN 70 THEN - 75 + + ( - 2 ) WHEN - ( - NULLIF ( - + 70, + + 65 ) ) THEN NULL END AS col1, + SUM ( - 15 )
----
NULL
-15

query I rowsort
SELECT ALL + 23 * - 99
----
-2277

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7912
SELECT 75 * - 59 * + 74 + - 14 AS col0, + CASE AVG ( 2 ) WHEN - + COALESCE ( + 92, - 21, - 48, - ( - 61 ) ) + + + 46 * COALESCE ( - - 46, + 23, + MIN( ALL + 11 ) / 68 + - + 92 * + - CAST( CASE - + 22 WHEN - 71 THEN NULL WHEN + MIN( - 98 ) - + - 21 THEN + 66 - + - 46 - 73 / 37 * + MAX( ALL + - 51 ) + + 77 + + 88 * 30 ELSE NULL END AS SIGNED ) * 48 ) THEN NULL WHEN + + 12 * - COUNT( * ) THEN NULL ELSE ( + MIN( 57 ) ) * ( + ( MAX( + 40 ) ) ) END
----
-327464
2280

skipif mysql # not compatible
query II rowsort label-7912
SELECT 75 * - 59 * + 74 + - 14 AS col0, + CASE AVG ( 2 ) WHEN - + COALESCE ( + 92, - 21, - 48, - ( - 61 ) ) + + + 46 * COALESCE ( - - 46, + 23, + MIN ( ALL + 11 ) / 68 + - + 92 * + - CAST ( CASE - + 22 WHEN - 71 THEN NULL WHEN + MIN ( - 98 ) - + - 21 THEN + 66 - + - 46 - 73 / 37 * + MAX ( ALL + - 51 ) + + 77 + + 88 * 30 ELSE NULL END AS INTEGER ) * 48 ) THEN NULL WHEN + + 12 * - COUNT ( * ) THEN NULL ELSE ( + MIN ( 57 ) ) * ( + ( MAX ( + 40 ) ) ) END
----
-327464
2280

query I rowsort
SELECT DISTINCT + 95 - - 87
----
182

query II rowsort
SELECT + 98 + 89 AS col0, + 25 * 96 * NULLIF ( 68, 44 ) + + + 5 * - 28 AS col1
----
187
163060

onlyif mysql # DIV for integer division: 
query I rowsort label-7915
SELECT ALL - 62 * 59 DIV 53
----
-69

skipif mysql # not compatible
query I rowsort label-7915
SELECT ALL - 62 * 59 / 53
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7916
SELECT MAX( DISTINCT - + 28 ) * + + 32
----
-896

skipif mysql # not compatible
query I rowsort label-7916
SELECT MAX ( DISTINCT - + 28 ) * + + 32
----
-896

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7918
SELECT + 65 DIV - 13
----
-5

skipif mysql # not compatible
query I rowsort label-7918
SELECT + 65 / - 13
----
-5

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

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

query II rowsort
SELECT DISTINCT 11, + 72 * - 40 + - + 77 col2
----
11
-2957

query I rowsort
SELECT 85 + + 95 * + - 2 * + 15 * - + 54
----
153985

query I rowsort
SELECT DISTINCT + 20 + 12
----
32

query I rowsort
SELECT 66 + 26 col2
----
92

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

skipif mysql # not compatible
query I rowsort label-7924
SELECT COUNT ( * ) + 95 AS col0
----
96

query I rowsort
SELECT ALL + 2 + - - 28 AS col0
----
30

query I rowsort
SELECT 75 + 30 AS col1
----
105

query II rowsort
SELECT ALL 28, + 64 + 44 AS col0
----
28
108

query I rowsort
SELECT 85 + 34
----
119

onlyif mysql # DIV for integer division: 
query I rowsort label-7929
SELECT DISTINCT + 12 * - 93 * 33 DIV 73
----
-504

skipif mysql # not compatible
query I rowsort label-7929
SELECT DISTINCT + 12 * - 93 * 33 / 73
----
-504

onlyif mysql # DIV for integer division: 
query I rowsort label-7930
SELECT DISTINCT - 57 + + + 40 DIV 13
----
-54

skipif mysql # not compatible
query I rowsort label-7930
SELECT DISTINCT - 57 + + + 40 / 13
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7931
SELECT ALL + 3 + - CAST( + ( + MIN( DISTINCT - CAST( 76 AS SIGNED ) ) ) AS SIGNED ) * + COUNT( * ) * + 32 * + COUNT( DISTINCT NULLIF ( - 79, + 15 ) )
----
2435

skipif mysql # not compatible
query I rowsort label-7931
SELECT ALL + 3 + - CAST ( + ( + MIN ( DISTINCT - CAST ( 76 AS INTEGER ) ) ) AS INTEGER ) * + COUNT ( * ) * + 32 * + COUNT ( DISTINCT NULLIF ( - 79, + 15 ) )
----
2435

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7933
SELECT DISTINCT 26 * - 44 DIV - COUNT( * ) + + + ( 29 ) DIV - 64 - - ( - ( - + 6 ) )
----
1150

skipif mysql # not compatible
query I rowsort label-7933
SELECT DISTINCT 26 * - 44 / - COUNT ( * ) + + + ( 29 ) / - 64 - - ( - ( - + 6 ) )
----
1150

query I rowsort
SELECT - 80 + - - 96 AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7935
SELECT ALL - - 10 * 53 - CASE + 50 WHEN + 98 / 92 - + 39 + 39 + - + 54 / 43 THEN - 37 ELSE - NULLIF ( + ( + 83 ), + 74 ) * - + COALESCE ( - 11, 30 - 35 * + - COUNT( * ) * + 71 ) END
----
1443

skipif mysql # not compatible
query I rowsort label-7935
SELECT ALL - - 10 * 53 - CASE + 50 WHEN + 98 / 92 - + 39 + 39 + - + 54 / 43 THEN - 37 ELSE - NULLIF ( + ( + 83 ), + 74 ) * - + COALESCE ( - 11, 30 - 35 * + - COUNT ( * ) * + 71 ) END
----
1443

onlyif mysql # DIV for integer division: 
query I rowsort label-7936
SELECT 21 DIV 58 DIV - - 46 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7936
SELECT 21 / 58 / - - 46 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7937
SELECT DISTINCT - 74 DIV + 74
----
-1

skipif mysql # not compatible
query I rowsort label-7937
SELECT DISTINCT - 74 / + 74
----
-1

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

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

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

skipif mysql # not compatible
query I rowsort label-7939
SELECT ALL + - MAX ( + CAST ( - 11 AS INTEGER ) )
----
11

query I rowsort
SELECT + - ( + 73 ) * - 71 + 74 AS col1
----
5257

query II rowsort
SELECT ALL - 66 * - - 5 + 20 AS col2, + 65 + - - 76
----
-310
141

query I rowsort
SELECT + 78 + 87 AS col1
----
165

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7944
SELECT DISTINCT - NULLIF ( + - 83, + - 52 + - - CAST( NULL AS SIGNED ) * - SUM( - + 25 ) * + 57 ) * + 65 * - COUNT( * ) * + 20 * - - 99 * + - COALESCE ( + 33, - - 85, 19 DIV CASE - + 30 WHEN - ( - - 64 ) - + - 15 THEN 92 ELSE - 63 END * + + 53 ) + + + 19 AS col1
----
352509319

skipif mysql # not compatible
query I rowsort label-7944
SELECT DISTINCT - NULLIF ( + - 83, + - 52 + - - CAST ( NULL AS INTEGER ) * - SUM ( - + 25 ) * + 57 ) * + 65 * - COUNT ( * ) * + 20 * - - 99 * + - COALESCE ( + 33, - - 85, 19 / CASE - + 30 WHEN - ( - - 64 ) - + - 15 THEN 92 ELSE - 63 END * + + 53 ) + + + 19 AS col1
----
352509319

query II rowsort
SELECT ALL + - 61 AS col0, 25 * + + 10 * - + 93
----
-61
-23250

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7946
SELECT + COUNT( * ) * - 87 DIV + - 48 + + - 81 + + 15 AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-7946
SELECT + COUNT ( * ) * - 87 / + - 48 + + - 81 + + 15 AS col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7947
SELECT ALL + - ( + + CASE + - 10 WHEN - ( + + 12 ) THEN 1 + + + SUM( 99 ) ELSE - + 60 END ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-7947
SELECT ALL + - ( + + CASE + - 10 WHEN - ( + + 12 ) THEN 1 + + + SUM ( 99 ) ELSE - + 60 END ) AS col0
----
60

query I rowsort
SELECT + 49 - + 74 + - + 57 AS col1
----
-82

query I rowsort
SELECT DISTINCT + 72 * 57 + 63 col0
----
4167

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

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

query II rowsort
SELECT + 34, 48 AS col1
----
34
48

query II rowsort
SELECT DISTINCT 55, 61 AS col1
----
55
61

onlyif mysql # DIV for integer division: 
query I rowsort label-7953
SELECT ALL 48 DIV + 31 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7953
SELECT ALL 48 / + 31 AS col2
----
1

query I rowsort
SELECT + 54 * - - 87
----
4698

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7956
SELECT + COALESCE ( + 9, 82 + + - CASE 61 WHEN - - NULLIF ( - 88, - CAST( - 75 AS SIGNED ) + 69 ) THEN - 43 / - 56 * + 30 END ) - - 26 * + 98 / + ( - + COUNT( ALL 66 ) ) * + - CAST( + COUNT( ALL 92 ) AS SIGNED ) / CAST( - ( - + 66 ) AS DECIMAL ) + + + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7956
SELECT + COALESCE ( + 9, 82 + + - CASE 61 WHEN - - NULLIF ( - 88, - CAST ( - 75 AS INTEGER ) + 69 ) THEN - 43 / - 56 * + 30 END ) - - 26 * + 98 / + ( - + COUNT ( ALL 66 ) ) * + - CAST ( + COUNT ( ALL 92 ) AS INTEGER ) / CAST ( - ( - + 66 ) AS REAL ) + + + CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT DISTINCT 83 + + 40 * - 69
----
-2677

query I rowsort
SELECT ALL 42 + - ( - 72 ) - - 7 * - ( + 65 )
----
-341

onlyif mysql # DIV for integer division: 
query I rowsort label-7959
SELECT - 12 DIV ( + 17 )
----
0

skipif mysql # not compatible
query I rowsort label-7959
SELECT - 12 / ( + 17 )
----
0

query I rowsort
SELECT ALL 30 + + 35 * - 8 * + + 56 * + + 24 AS col1
----
-376290

query I rowsort
SELECT DISTINCT 47 + + - 76 + - CASE + 77 WHEN 90 THEN 85 END * 51 - + - 27 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT ALL MIN( + 21 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-7962
SELECT ALL MIN ( + 21 ) AS col2
----
21

query I rowsort
SELECT DISTINCT 24 * 27 AS col1
----
648

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

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

query I rowsort
SELECT - 70 * + 22 AS col1
----
-1540

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT ALL MIN( DISTINCT - + 25 ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-7966
SELECT ALL MIN ( DISTINCT - + 25 ) AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-7967
SELECT + COUNT( * ) + + + 50 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-7967
SELECT + COUNT ( * ) + + + 50 AS col1
----
51

query II rowsort
SELECT 91, 72 * 16 - - 94 AS col2
----
91
1246

query I rowsort
SELECT + 34 - - 32 + - 79 + + + 78 * - 86
----
-6721

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

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

query I rowsort
SELECT ALL CASE - 70 WHEN 26 / + 17 THEN + - 61 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7972
SELECT - 10 + - COUNT( DISTINCT - - 52 ) * + CAST( + 74 AS SIGNED )
----
-84

skipif mysql # not compatible
query I rowsort label-7972
SELECT - 10 + - COUNT ( DISTINCT - - 52 ) * + CAST ( + 74 AS INTEGER )
----
-84

query II rowsort
SELECT DISTINCT + 64 AS col0, - 79 * 59 AS col0
----
64
-4661

onlyif mysql # aggregate syntax: 
query I rowsort label-7974
SELECT ALL - - COUNT( * ) * 64 * + 15
----
960

skipif mysql # not compatible
query I rowsort label-7974
SELECT ALL - - COUNT ( * ) * 64 * + 15
----
960

onlyif mysql # aggregate syntax: 
query I rowsort label-7975
SELECT DISTINCT - 28 * - - NULLIF ( + COALESCE ( - 25, + 97, + CASE - AVG ( ALL - COALESCE ( + 47, + 38 ) ) WHEN + + ( MIN( + 42 ) ) + + - 99 * COUNT( * ) THEN 1 ELSE NULL END ), - + 63 ) col0
----
700

skipif mysql # not compatible
query I rowsort label-7975
SELECT DISTINCT - 28 * - - NULLIF ( + COALESCE ( - 25, + 97, + CASE - AVG ( ALL - COALESCE ( + 47, + 38 ) ) WHEN + + ( MIN ( + 42 ) ) + + - 99 * COUNT ( * ) THEN 1 ELSE NULL END ), - + 63 ) col0
----
700

onlyif mysql # aggregate syntax: 
query I rowsort label-7976
SELECT ALL - - 15 * + NULLIF ( - 92, + MAX( - 70 ) * - 27 * 44 ) + + - 89 AS col1
----
-1469

skipif mysql # not compatible
query I rowsort label-7976
SELECT ALL - - 15 * + NULLIF ( - 92, + MAX ( - 70 ) * - 27 * 44 ) + + - 89 AS col1
----
-1469

query I rowsort
SELECT - 93 * - - 49
----
-4557

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7979
SELECT - 67 - + 10 - - 75 - COALESCE ( + - COUNT( * ), - - COUNT( * ) + 2 ) + 52 * - - COALESCE ( 95, + 33 ) * 86 + - 24
----
424815

skipif mysql # not compatible
query I rowsort label-7979
SELECT - 67 - + 10 - - 75 - COALESCE ( + - COUNT ( * ), - - COUNT ( * ) + 2 ) + 52 * - - COALESCE ( 95, + 33 ) * 86 + - 24
----
424815

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7980
SELECT + COUNT( * ) * + 97 - + 6 + + - 69 + - 66 * + 5 * + ( - CASE + 14 WHEN - - 42 THEN + CAST( NULL AS SIGNED ) WHEN + 44 / 43 * 18 * - 58 THEN - 72 WHEN - + 62 * - 18 + 93 * NULLIF ( + CAST( NULL AS SIGNED ), + 38 * + 81 + - 57 / + - 81 ) THEN - 1 - COUNT( * ) END ) col2, + 69 * 40
----
NULL
2760

skipif mysql # not compatible
query II rowsort label-7980
SELECT + COUNT ( * ) * + 97 - + 6 + + - 69 + - 66 * + 5 * + ( - CASE + 14 WHEN - - 42 THEN + CAST ( NULL AS INTEGER ) WHEN + 44 / 43 * 18 * - 58 THEN - 72 WHEN - + 62 * - 18 + 93 * NULLIF ( + CAST ( NULL AS INTEGER ), + 38 * + 81 + - 57 / + - 81 ) THEN - 1 - COUNT ( * ) END ) col2, + 69 * 40
----
NULL
2760

onlyif mysql # DIV for integer division: 
query II rowsort label-7981
SELECT - 20 DIV - 92, + 46 AS col0
----
0
46

skipif mysql # not compatible
query II rowsort label-7981
SELECT - 20 / - 92, + 46 AS col0
----
0
46

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

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

query II rowsort
SELECT ALL + 40 AS col1, + NULLIF ( - 9, 47 ) + 80 AS col1
----
40
71

query I rowsort
SELECT ALL - 79 * + 88 + + 97
----
-6855

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7985
SELECT - - MAX( 73 ) DIV + CASE 32 WHEN - 34 THEN NULL WHEN - 59 THEN - 25 + - 82 + - - CASE + - CAST( CASE - 58 WHEN - + 60 THEN NULL WHEN + 72 THEN NULL WHEN 16 + + 47 * - 59 THEN - + 91 END AS SIGNED ) WHEN ( + 64 ) THEN 35 ELSE NULL END * - AVG ( + + 68 ) ELSE + 40 END
----
1

skipif mysql # not compatible
query I rowsort label-7985
SELECT - - MAX ( 73 ) / + CASE 32 WHEN - 34 THEN NULL WHEN - 59 THEN - 25 + - 82 + - - CASE + - CAST ( CASE - 58 WHEN - + 60 THEN NULL WHEN + 72 THEN NULL WHEN 16 + + 47 * - 59 THEN - + 91 END AS INTEGER ) WHEN ( + 64 ) THEN 35 ELSE NULL END * - AVG ( + + 68 ) ELSE + 40 END
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7986
SELECT ALL - 99 * + 70 - + + 9 + + + 24 * + CASE + 22 WHEN 63 THEN COUNT( ALL - 86 ) DIV + 63 DIV COUNT( * ) * - 2 * + 92 - - ( + 19 ) - + 48 + 11 ELSE 84 + ( 81 ) END * - 34 + 93 * - + 16 * + 89 + 14 col0
----
-273997

skipif mysql # not compatible
query I rowsort label-7986
SELECT ALL - 99 * + 70 - + + 9 + + + 24 * + CASE + 22 WHEN 63 THEN COUNT ( ALL - 86 ) / + 63 / COUNT ( * ) * - 2 * + 92 - - ( + 19 ) - + 48 + 11 ELSE 84 + ( 81 ) END * - 34 + 93 * - + 16 * + 89 + 14 col0
----
-273997

query I rowsort
SELECT - 22 + - + 34 + - - 24 AS col0
----
-32

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

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

query II rowsort
SELECT + 19 + + 86 + + 90 AS col2, 72 - + + 23
----
195
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT NULLIF ( - + 35, - - COUNT( DISTINCT + - 63 ) / + 24 * - 39 )
----
-35

skipif mysql # not compatible
query I rowsort label-7990
SELECT NULLIF ( - + 35, - - COUNT ( DISTINCT + - 63 ) / + 24 * - 39 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7991
SELECT ALL 63 * - 68 + COUNT( * ) * 52 * - 18
----
-5220

skipif mysql # not compatible
query I rowsort label-7991
SELECT ALL 63 * - 68 + COUNT ( * ) * 52 * - 18
----
-5220

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

skipif mysql # not compatible
query I rowsort label-7992
SELECT - SUM ( + 78 )
----
-78

onlyif mysql # aggregate syntax: 
query III rowsort label-7993
SELECT SUM( + 20 ) AS col1, 59, + - 44 AS col2
----
20
59
-44

skipif mysql # not compatible
query III rowsort label-7993
SELECT SUM ( + 20 ) AS col1, 59, + - 44 AS col2
----
20
59
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT + ( + 88 ) + + 90 + - 84 - 88 * CASE - + ( COUNT( * ) ) WHEN + 20 THEN 38 * + + 28 * 36 + + 14 + 52 WHEN - + MIN( ALL + 97 ) + - + 89 * 93 THEN - 95 + - 81 * - COUNT( * ) END - + 4 / - 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7994
SELECT + ( + 88 ) + + 90 + - 84 - 88 * CASE - + ( COUNT ( * ) ) WHEN + 20 THEN 38 * + + 28 * 36 + + 14 + 52 WHEN - + MIN ( ALL + 97 ) + - + 89 * 93 THEN - 95 + - 81 * - COUNT ( * ) END - + 4 / - 81 AS col1
----
NULL

query I rowsort
SELECT ALL 83 + - 13 + 49
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-7996
SELECT DISTINCT 41 + - + 50 - COALESCE ( + + 48, - NULLIF ( - 52, 48 / + 28 * - 53 + - - MIN( - + 98 ) ) ) * - 3 AS col1
----
135

skipif mysql # not compatible
query I rowsort label-7996
SELECT DISTINCT 41 + - + 50 - COALESCE ( + + 48, - NULLIF ( - 52, 48 / + 28 * - 53 + - - MIN ( - + 98 ) ) ) * - 3 AS col1
----
135

onlyif mysql # DIV for integer division: 
query I rowsort label-7997
SELECT - 65 DIV + 80 * + 87
----
0

skipif mysql # not compatible
query I rowsort label-7997
SELECT - 65 / + 80 * + 87
----
0

query I rowsort
SELECT + 70 + - - ( + 80 )
----
150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7999
SELECT DISTINCT 94 DIV + 83 DIV - COUNT( * ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-7999
SELECT DISTINCT 94 / + 83 / - COUNT ( * ) col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8000
SELECT DISTINCT SUM( DISTINCT 91 ) col0, - 34 AS col0
----
91
-34

skipif mysql # not compatible
query II rowsort label-8000
SELECT DISTINCT SUM ( DISTINCT 91 ) col0, - 34 AS col0
----
91
-34

query I rowsort
SELECT ALL 29 * + 76 AS col1
----
2204

query I rowsort
SELECT - 40 * + - 44 AS col1
----
1760

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT + 11 + + - 19 + + + 55 * ( - NULLIF ( 75, 91 * + 85 + - + COUNT( * ) * - ( 35 ) / + 6 ) ) AS col0
----
-4133

skipif mysql # not compatible
query I rowsort label-8003
SELECT + 11 + + - 19 + + + 55 * ( - NULLIF ( 75, 91 * + 85 + - + COUNT ( * ) * - ( 35 ) / + 6 ) ) AS col0
----
-4133

query I rowsort
SELECT ALL 93 * 15 * + 62 * - 71 AS col2
----
-6140790

query I rowsort
SELECT DISTINCT + 57 - - + 31 - + - 25 + - 33
----
80

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8007
SELECT - 83 * - + COUNT( * ) * - + 59 * - 42 + + - 94 AS col1
----
205580

skipif mysql # not compatible
query I rowsort label-8007
SELECT - 83 * - + COUNT ( * ) * - + 59 * - 42 + + - 94 AS col1
----
205580

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8008
SELECT + SUM( 95 ) DIV - 10 + + MAX( - - 77 ) + - + COUNT( * ) + - + 86 + + COUNT( * ) + 78 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-8008
SELECT + SUM ( 95 ) / - 10 + + MAX ( - - 77 ) + - + COUNT ( * ) + - + 86 + + COUNT ( * ) + 78 AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8009
SELECT 60 * - 89 * + COALESCE ( COUNT( * ), - 99 ) * - 52 * + 41 + 57
----
11384937

skipif mysql # not compatible
query I rowsort label-8009
SELECT 60 * - 89 * + COALESCE ( COUNT ( * ), - 99 ) * - 52 * + 41 + 57
----
11384937

onlyif mysql # DIV for integer division: 
query I rowsort label-8010
SELECT + 60 * 50 * 27 DIV 91 col2
----
890

skipif mysql # not compatible
query I rowsort label-8010
SELECT + 60 * 50 * 27 / 91 col2
----
890

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8011
SELECT + ( - COUNT( * ) ) * COUNT( * ) DIV + 44 + 25 + - 51
----
-26

skipif mysql # not compatible
query I rowsort label-8011
SELECT + ( - COUNT ( * ) ) * COUNT ( * ) / + 44 + 25 + - 51
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8012
SELECT ALL - 83 * - COUNT( * ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-8012
SELECT ALL - 83 * - COUNT ( * ) AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8013
SELECT DISTINCT 96 + + + 87 * + COUNT( ALL + - 8 )
----
183

skipif mysql # not compatible
query I rowsort label-8013
SELECT DISTINCT 96 + + + 87 * + COUNT ( ALL + - 8 )
----
183

query I rowsort
SELECT DISTINCT - 50 + 95 col2
----
45

query II rowsort
SELECT ALL - 39 + + + 13 + - 8 + 70 * - 64 AS col0, ( - 53 ) AS col1
----
-4514
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-8016
SELECT ALL - - 95 + + 51 + COUNT( * ) AS col1, 84
----
147
84

skipif mysql # not compatible
query II rowsort label-8016
SELECT ALL - - 95 + + 51 + COUNT ( * ) AS col1, 84
----
147
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8017
SELECT + CASE + 6 WHEN + - ( + 1 ) * 56 THEN + + ( - 57 ) + + 89 + + - NULLIF ( COUNT( * ), + 82 * COUNT( * ) ) / + 66 + - COUNT( * ) END * + NULLIF ( ( - + 47 ), - 74 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8017
SELECT + CASE + 6 WHEN + - ( + 1 ) * 56 THEN + + ( - 57 ) + + 89 + + - NULLIF ( COUNT ( * ), + 82 * COUNT ( * ) ) / + 66 + - COUNT ( * ) END * + NULLIF ( ( - + 47 ), - 74 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8018
SELECT - + 9 * + + 5 - + NULLIF ( + 41, + 46 * 15 ) - - - COALESCE ( - + 88, COUNT( 98 ) + - ( 46 ) * + + ( - - 45 ) ) DIV 91 + - ( - 56 ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-8018
SELECT - + 9 * + + 5 - + NULLIF ( + 41, + 46 * 15 ) - - - COALESCE ( - + 88, COUNT ( 98 ) + - ( 46 ) * + + ( - - 45 ) ) / 91 + - ( - 56 ) AS col1
----
-30

query II rowsort
SELECT + + 73 * + 26 * - - 43 * 51 + + 13, 97 AS col2
----
4162327
97

query I rowsort
SELECT ALL - 16 + + - 28 AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT 79 - + COUNT( * ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-8021
SELECT 79 - + COUNT ( * ) AS col2
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-8022
SELECT ALL + NULLIF ( + 5, + 8 ) DIV 55 * + 49 col2
----
0

skipif mysql # not compatible
query I rowsort label-8022
SELECT ALL + NULLIF ( + 5, + 8 ) / 55 * + 49 col2
----
0

query I rowsort
SELECT ALL 89 - - - 28 AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8024
SELECT COUNT( * ) * + 84 * + ( + ( - 92 ) )
----
-7728

skipif mysql # not compatible
query I rowsort label-8024
SELECT COUNT ( * ) * + 84 * + ( + ( - 92 ) )
----
-7728

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

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

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

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

query I rowsort
SELECT 14 * + 19 AS col1
----
266

query II rowsort
SELECT DISTINCT 76 AS col0, + 40 AS col1
----
76
40

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8031
SELECT 4 * - - 40 * 66 * + - 66 * - + COUNT( * ) AS col0
----
696960

skipif mysql # not compatible
query I rowsort label-8031
SELECT 4 * - - 40 * 66 * + - 66 * - + COUNT ( * ) AS col0
----
696960

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8032
SELECT - 36, CAST( NULL AS SIGNED ) AS col1
----
-36
NULL

skipif mysql # not compatible
query II rowsort label-8032
SELECT - 36, CAST ( NULL AS INTEGER ) AS col1
----
-36
NULL

query I rowsort
SELECT DISTINCT - 63 * + - 5 / - CASE - - 17 WHEN + + 60 THEN - AVG ( + 39 ) + + 56 END AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-8034
SELECT DISTINCT - COUNT ( ALL - 48 ) * + + 93 AS col2
----
-93

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

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

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

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

query II rowsort
SELECT DISTINCT 51 AS col2, - 88
----
51
-88

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8039
SELECT ALL + 78 DIV + 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8039
SELECT ALL + 78 / + 83 AS col1
----
0

query I rowsort
SELECT - ( COALESCE ( + - 3, 81 ) )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8041
SELECT COALESCE ( - 16, - 87, ( + - 53 ) + + NULLIF ( - 31, - + COUNT( * ) * + 9 + - 84 + CAST( NULL AS SIGNED ) + + 75 + + 34 * - 74 ) ) + 32 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-8041
SELECT COALESCE ( - 16, - 87, ( + - 53 ) + + NULLIF ( - 31, - + COUNT ( * ) * + 9 + - 84 + CAST ( NULL AS INTEGER ) + + 75 + + 34 * - 74 ) ) + 32 AS col0
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-8042
SELECT 75 + + 92 + + 10 DIV - - 67
----
167

skipif mysql # not compatible
query I rowsort label-8042
SELECT 75 + + 92 + + 10 / - - 67
----
167

onlyif mysql # aggregate syntax: 
query II rowsort label-8043
SELECT - 29, COUNT( * ) col2
----
-29
1

skipif mysql # not compatible
query II rowsort label-8043
SELECT - 29, COUNT ( * ) col2
----
-29
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8044
SELECT DISTINCT 40 AS col1, ( - 75 ) / - CAST( NULL AS SIGNED )
----
40
NULL

skipif mysql # not compatible
query II rowsort label-8044
SELECT DISTINCT 40 AS col1, ( - 75 ) / - CAST ( NULL AS INTEGER )
----
40
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8045
SELECT ALL 41 * - 20 + - - 81 * - + ( + COALESCE ( 11, + COUNT( * ) ) ) + + + 57 - - + 72 DIV + + 77
----
-1654

skipif mysql # not compatible
query I rowsort label-8045
SELECT ALL 41 * - 20 + - - 81 * - + ( + COALESCE ( 11, + COUNT ( * ) ) ) + + + 57 - - + 72 / + + 77
----
-1654

onlyif mysql # DIV for integer division: 
query I rowsort label-8046
SELECT 52 DIV - 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8046
SELECT 52 / - 62 AS col0
----
0

query I rowsort
SELECT DISTINCT - 96 + - 21 AS col1
----
-117

query I rowsort
SELECT DISTINCT - 85 * - 99 * - 67 * + 65 + 79
----
-36647246

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8050
SELECT DISTINCT ( - CASE + ( + - 51 ) WHEN CAST( NULL AS DECIMAL ) THEN + 64 + 85 WHEN + + 5 * 60 THEN + + 88 END ) + 92 * 89
----
NULL

skipif mysql # not compatible
query I rowsort label-8050
SELECT DISTINCT ( - CASE + ( + - 51 ) WHEN CAST ( NULL AS REAL ) THEN + 64 + 85 WHEN + + 5 * 60 THEN + + 88 END ) + 92 * 89
----
NULL

query I rowsort
SELECT ALL - - 93 + + - 42
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8052
SELECT + CASE NULLIF ( + 56, CAST( NULL AS SIGNED ) ) WHEN - SUM( ALL + - 1 ) * - - 98 THEN + + 87 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8052
SELECT + CASE NULLIF ( + 56, CAST ( NULL AS INTEGER ) ) WHEN - SUM ( ALL + - 1 ) * - - 98 THEN + + 87 ELSE NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-8053
SELECT 1 * 95 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 97 + - 28 AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT DISTINCT + COUNT( ALL + + 69 ) * 37 + 11
----
48

skipif mysql # not compatible
query I rowsort label-8055
SELECT DISTINCT + COUNT ( ALL + + 69 ) * 37 + 11
----
48

query I rowsort
SELECT ALL 66 - - - 48 AS col1
----
18

query I rowsort
SELECT DISTINCT 1 * + + 9
----
9

query I rowsort
SELECT 14 * - 42 AS col0
----
-588

onlyif mysql # aggregate syntax: 
query I rowsort label-8059
SELECT ( - - 72 ) + - 46 * COUNT( * ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-8059
SELECT ( - - 72 ) + - 46 * COUNT ( * ) AS col0
----
26

query II rowsort
SELECT 0 + + 95 AS col2, 73 * + 23 AS col2
----
95
1679

query II rowsort
SELECT 4 * + 22, + 7 AS col2
----
88
7

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8063
SELECT ALL SUM( - 63 ), ( - - 78 ) * 81 * - 63 AS col2
----
-63
-398034

skipif mysql # not compatible
query II rowsort label-8063
SELECT ALL SUM ( - 63 ), ( - - 78 ) * 81 * - 63 AS col2
----
-63
-398034

query I rowsort
SELECT 13 * - - 5 col1
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8065
SELECT 13 * - ( - + 0 ) * + 48 DIV - + NULLIF ( - 90, - 84 ) + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8065
SELECT 13 * - ( - + 0 ) * + 48 / - + NULLIF ( - 90, - 84 ) + - COUNT ( * )
----
-1

query I rowsort
SELECT ALL COALESCE ( 69, + 59 )
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8067
SELECT - 64 + + + 46 - + 26 + + + COUNT( * ) + + 67 * - 69 * + - 93 - - 7 DIV - - 32, + 65 col2
----
429896
65

skipif mysql # not compatible
query II rowsort label-8067
SELECT - 64 + + + 46 - + 26 + + + COUNT ( * ) + + 67 * - 69 * + - 93 - - 7 / - - 32, + 65 col2
----
429896
65

query I rowsort
SELECT ALL 75 * + 46
----
3450

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8070
SELECT DISTINCT + ( + + 14 ) DIV + + 95
----
0

skipif mysql # not compatible
query I rowsort label-8070
SELECT DISTINCT + ( + + 14 ) / + + 95
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8071
SELECT DISTINCT + 95 DIV + 61 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8071
SELECT DISTINCT + 95 / + 61 AS col2
----
1

query I rowsort
SELECT DISTINCT + ( + 61 ) * - - 40 col1
----
2440

onlyif mysql # aggregate syntax: 
query I rowsort label-8073
SELECT + COUNT( * ) + + 32 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-8073
SELECT + COUNT ( * ) + + 32 AS col2
----
33

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

query I rowsort
SELECT DISTINCT + 16 * - - 72 AS col0
----
1152

query I rowsort
SELECT ALL 16 + + 0
----
16

query I rowsort
SELECT ALL - 47 + + ( + 27 ) col1
----
-20

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8079
SELECT ALL + ( + 91 ) AS col1, + 86 + - COUNT( * ) + - - 4
----
91
89

skipif mysql # not compatible
query II rowsort label-8079
SELECT ALL + ( + 91 ) AS col1, + 86 + - COUNT ( * ) + - - 4
----
91
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8080
SELECT DISTINCT CASE - 63 WHEN - 22 THEN NULL WHEN + 46 * + 14 / + CAST( NULL AS SIGNED ) * - MIN( 1 ) + + 47 - + 46 THEN - 39 / + COUNT( * ) - 94 + MIN( + - 75 ) END / - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-8080
SELECT DISTINCT CASE - 63 WHEN - 22 THEN NULL WHEN + 46 * + 14 / + CAST ( NULL AS INTEGER ) * - MIN ( 1 ) + + 47 - + 46 THEN - 39 / + COUNT ( * ) - 94 + MIN ( + - 75 ) END / - 13
----
NULL

query I rowsort
SELECT ALL + + 53 + 47
----
100

query I rowsort
SELECT ALL 41 * - 61 * ( 62 ) + - 79 * - 11
----
-154193

query I rowsort
SELECT + 2 * - 71
----
-142

query I rowsort
SELECT ALL + 40 * 93 * 67
----
249240

query I rowsort
SELECT + 78 * + 30 AS col1
----
2340

onlyif mysql # aggregate syntax: 
query I rowsort label-8086
SELECT ALL - COUNT( * ) * + - NULLIF ( + 29, - - ( + 84 ) - 87 * 13 + 40 * - - ( - 92 ) ) * + + 52 - - 0 * - - 51
----
1508

skipif mysql # not compatible
query I rowsort label-8086
SELECT ALL - COUNT ( * ) * + - NULLIF ( + 29, - - ( + 84 ) - 87 * 13 + 40 * - - ( - 92 ) ) * + + 52 - - 0 * - - 51
----
1508

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8088
SELECT 89 * + + 39 + NULLIF ( - + 2, + 92 DIV 38 + - 82 DIV - - 82 - - COUNT( * ) + + 99 ) AS col2, - ( + 81 ) DIV + - SUM( + - 55 ) - + - 90
----
3469
89

skipif mysql # not compatible
query II rowsort label-8088
SELECT 89 * + + 39 + NULLIF ( - + 2, + 92 / 38 + - 82 / - - 82 - - COUNT ( * ) + + 99 ) AS col2, - ( + 81 ) / + - SUM ( + - 55 ) - + - 90
----
3469
89

onlyif mysql # DIV for integer division: 
query I rowsort label-8089
SELECT + 30 DIV + - 50
----
0

skipif mysql # not compatible
query I rowsort label-8089
SELECT + 30 / + - 50
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8090
SELECT + COALESCE ( - 30, + 6 * + ( COALESCE ( - 6, - 13, - SUM( DISTINCT 38 ) ) ) + + NULLIF ( - 95, - 2 + 63 * + COALESCE ( - 86, + 83 + + 94 * + 32 ) + - + SUM( ALL + COALESCE ( - 55, - - ( - 2 ) * 78 ) ) + - ( 35 ) + NULLIF ( 29, - 14 ) ) + 79 * + + 95 * - 89 )
----
-30

skipif mysql # not compatible
query I rowsort label-8090
SELECT + COALESCE ( - 30, + 6 * + ( COALESCE ( - 6, - 13, - SUM ( DISTINCT 38 ) ) ) + + NULLIF ( - 95, - 2 + 63 * + COALESCE ( - 86, + 83 + + 94 * + 32 ) + - + SUM ( ALL + COALESCE ( - 55, - - ( - 2 ) * 78 ) ) + - ( 35 ) + NULLIF ( 29, - 14 ) ) + 79 * + + 95 * - 89 )
----
-30

query I rowsort
SELECT + 48 + + 42 AS col0
----
90

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8092
SELECT - 31 * - 94 + + + NULLIF ( - NULLIF ( 34, 88 * AVG ( DISTINCT - ( CAST( NULL AS DECIMAL ) ) ) + + 42 + - COUNT( * ) * - 60 * + 60 + - COUNT( * ) + + - 3 - - 13 + - 61 * - 55 * 66 * + - 11 ), + - COUNT( * ) ) AS col0
----
2880

skipif mysql # not compatible
query I rowsort label-8092
SELECT - 31 * - 94 + + + NULLIF ( - NULLIF ( 34, 88 * AVG ( DISTINCT - ( CAST ( NULL AS REAL ) ) ) + + 42 + - COUNT ( * ) * - 60 * + 60 + - COUNT ( * ) + + - 3 - - 13 + - 61 * - 55 * 66 * + - 11 ), + - COUNT ( * ) ) AS col0
----
2880

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8093
SELECT ALL + 91 * + 99 * - + 70 * + CAST( - 40 AS SIGNED ), + 64 AS col1
----
25225200
64

skipif mysql # not compatible
query II rowsort label-8093
SELECT ALL + 91 * + 99 * - + 70 * + CAST ( - 40 AS INTEGER ), + 64 AS col1
----
25225200
64

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

skipif mysql # not compatible
query I rowsort label-8094
SELECT - COUNT ( * ) / + + 26
----
0

query II rowsort
SELECT ALL ( - - 78 ) * - 29 AS col0, - 41
----
-2262
-41

query I rowsort
SELECT + 52 * - + 86
----
-4472

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8097
SELECT ALL CAST( 0 AS SIGNED ) * - 87 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8097
SELECT ALL CAST ( 0 AS INTEGER ) * - 87 AS col0
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-8099
SELECT + COUNT ( * ) / - - 31 * + + 94 AS col2
----
0

query I rowsort
SELECT - 10 * + 4 AS col2
----
-40

query I rowsort
SELECT - - 56 - - 64 * - - 1
----
120

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

query I rowsort
SELECT ALL + - 93 + - 98
----
-191

onlyif mysql # aggregate syntax: 
query I rowsort label-8104
SELECT ALL + 76 + - 20 + 27 + - + COUNT( * ) * ( + COUNT( * ) ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-8104
SELECT ALL + 76 + - 20 + 27 + - + COUNT ( * ) * ( + COUNT ( * ) ) AS col1
----
82

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

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

query I rowsort
SELECT ALL - + 80 + + + 76
----
-4

query II rowsort
SELECT + 64, 24 AS col2
----
64
24

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT ALL + + 1 + - CASE COUNT( * ) WHEN - + 1 * - - ( 75 ) THEN NULL WHEN - 90 + + + 39 THEN - ( + 51 ) * - MAX( - 4 ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8109
SELECT ALL + + 1 + - CASE COUNT ( * ) WHEN - + 1 * - - ( 75 ) THEN NULL WHEN - 90 + + + 39 THEN - ( + 51 ) * - MAX ( - 4 ) END col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8110
SELECT - CASE 40 WHEN + + 26 + ( ( - 89 ) ) THEN - 99 WHEN 11 + 86 THEN - 4 / - 76 * + + 90 + - - 57 ELSE NULL END + COUNT( * ) + - ( + 33 ) * COUNT( * ) * + - 19 col1, + 88 * + 76
----
NULL
6688

skipif mysql # not compatible
query II rowsort label-8110
SELECT - CASE 40 WHEN + + 26 + ( ( - 89 ) ) THEN - 99 WHEN 11 + 86 THEN - 4 / - 76 * + + 90 + - - 57 ELSE NULL END + COUNT ( * ) + - ( + 33 ) * COUNT ( * ) * + - 19 col1, + 88 * + 76
----
NULL
6688

onlyif mysql # aggregate syntax: 
query I rowsort label-8111
SELECT - 59 * 43 + + NULLIF ( 46, - 71 - - + 59 ) + COUNT( DISTINCT + + 64 ) AS col2
----
-2490

skipif mysql # not compatible
query I rowsort label-8111
SELECT - 59 * 43 + + NULLIF ( 46, - 71 - - + 59 ) + COUNT ( DISTINCT + + 64 ) AS col2
----
-2490

query I rowsort
SELECT - 64 + - 71 + 17 * - 28
----
-611

query I rowsort
SELECT ALL + 60 + 90 AS col0
----
150

query I rowsort
SELECT - + 80 + 58
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8115
SELECT ALL + 11 * + MIN( DISTINCT + 50 )
----
550

skipif mysql # not compatible
query I rowsort label-8115
SELECT ALL + 11 * + MIN ( DISTINCT + 50 )
----
550

query II rowsort
SELECT ALL + 74 AS col0, + 53 AS col1
----
74
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8117
SELECT ALL + + CASE - + 0 WHEN COALESCE ( - + 38, + CASE + 50 WHEN + + 3 * - 21 - - 81 THEN + 55 ELSE + ( - COUNT( * ) ) + - - 93 + - 10 * + - 2 + 0 * + + CASE 93 WHEN + 47 - - - 65 * + CAST( + 29 AS SIGNED ) THEN 31 / + 72 + + + 93 ELSE + + 95 + + 57 END - - 91 + - 94 * ( ( 66 ) ) END, ( + - 80 ) ) THEN - - 98 * + ( + NULLIF ( - 40, + - 17 ) ) * + 56 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8117
SELECT ALL + + CASE - + 0 WHEN COALESCE ( - + 38, + CASE + 50 WHEN + + 3 * - 21 - - 81 THEN + 55 ELSE + ( - COUNT ( * ) ) + - - 93 + - 10 * + - 2 + 0 * + + CASE 93 WHEN + 47 - - - 65 * + CAST ( + 29 AS INTEGER ) THEN 31 / + 72 + + + 93 ELSE + + 95 + + 57 END - - 91 + - 94 * ( ( 66 ) ) END, ( + - 80 ) ) THEN - - 98 * + ( + NULLIF ( - 40, + - 17 ) ) * + 56 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + 54 * - ( + NULLIF ( + 74, 78 ) ) AS col1
----
-3996

query I rowsort
SELECT + 30 + + 43
----
73

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8120
SELECT ALL 12 DIV - CAST( 82 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8120
SELECT ALL 12 / - CAST ( 82 AS INTEGER ) AS col1
----
0

query I rowsort
SELECT - 18 * - 55 AS col1
----
990

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8122
SELECT + 24 * + 97 / - CAST( + - 63 AS SIGNED ) * + CASE + - 50 WHEN - 2 THEN 34 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8122
SELECT + 24 * + 97 / - CAST ( + - 63 AS INTEGER ) * + CASE + - 50 WHEN - 2 THEN 34 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8123
SELECT + CASE - 88 WHEN SUM( - 20 ) / + 61 THEN NULL ELSE + + CAST( NULL AS SIGNED ) / + - MAX( + ( - - 43 ) ) / - 69 + - CASE - + 45 WHEN - 0 - - ( COUNT( * ) ) THEN 61 END END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8123
SELECT + CASE - 88 WHEN SUM ( - 20 ) / + 61 THEN NULL ELSE + + CAST ( NULL AS INTEGER ) / + - MAX ( + ( - - 43 ) ) / - 69 + - CASE - + 45 WHEN - 0 - - ( COUNT ( * ) ) THEN 61 END END col0
----
NULL

query II rowsort
SELECT ALL + 75, 90 * NULLIF ( - - 78, 54 * - 7 + - 3 ) + - 6 AS col2
----
75
7014

query I rowsort
SELECT 13 + + 92 * + 15
----
1393

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8126
SELECT ALL - COUNT( * ) DIV - + 2 col1
----
0

skipif mysql # not compatible
query I rowsort label-8126
SELECT ALL - COUNT ( * ) / - + 2 col1
----
0

query II rowsort
SELECT ALL - 94 AS col2, + ( + 48 )
----
-94
48

onlyif mysql # DIV for integer division: 
query I rowsort label-8128
SELECT DISTINCT 29 + 54 + + 42 DIV + - 43 AS col2
----
83

skipif mysql # not compatible
query I rowsort label-8128
SELECT DISTINCT 29 + 54 + + 42 / + - 43 AS col2
----
83

query I rowsort
SELECT 50 * 7 + NULLIF ( - 38, + 38 ) AS col1
----
312

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT COUNT( * ) - 75
----
-74

skipif mysql # not compatible
query I rowsort label-8130
SELECT COUNT ( * ) - 75
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8131
SELECT CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) * + MIN( + 82 ) + - 72 + - COUNT( * ) / - MAX( DISTINCT - 87 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8131
SELECT CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) * + MIN ( + 82 ) + - 72 + - COUNT ( * ) / - MAX ( DISTINCT - 87 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8132
SELECT DISTINCT - MIN( - 44 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-8132
SELECT DISTINCT - MIN ( - 44 ) AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8133
SELECT COUNT( * ) + + 78 + + 85 AS col2
----
164

skipif mysql # not compatible
query I rowsort label-8133
SELECT COUNT ( * ) + + 78 + + 85 AS col2
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-8134
SELECT 11 * + 47 + COUNT( * )
----
518

skipif mysql # not compatible
query I rowsort label-8134
SELECT 11 * + 47 + COUNT ( * )
----
518

onlyif mysql # aggregate syntax: 
query I rowsort label-8135
SELECT DISTINCT 94 * - 25 * - COUNT( - 3 ) AS col1
----
2350

skipif mysql # not compatible
query I rowsort label-8135
SELECT DISTINCT 94 * - 25 * - COUNT ( - 3 ) AS col1
----
2350

query I rowsort
SELECT ALL + 25 + + 59
----
84

query I rowsort
SELECT 19 + - 91 - 32 * - 90
----
2808

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8138
SELECT ALL MIN( DISTINCT NULLIF ( - 27, + CAST( NULL AS DECIMAL ) * - 46 ) ) + + CAST( NULL AS SIGNED ) + - + 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8138
SELECT ALL MIN ( DISTINCT NULLIF ( - 27, + CAST ( NULL AS REAL ) * - 46 ) ) + + CAST ( NULL AS INTEGER ) + - + 50 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + CASE - + NULLIF ( - 32, 75 ) WHEN - 9 THEN + 81 ELSE - - 53 END + 48 AS col2
----
101

query II rowsort
SELECT - 9 AS col1, NULLIF ( - + 78, 9 )
----
-9
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-8141
SELECT - 4 + NULLIF ( + - ( - - 42 ), - + 50 ) * COUNT( * ) AS col2, + SUM( DISTINCT + - 41 )
----
-46
-41

skipif mysql # not compatible
query II rowsort label-8141
SELECT - 4 + NULLIF ( + - ( - - 42 ), - + 50 ) * COUNT ( * ) AS col2, + SUM ( DISTINCT + - 41 )
----
-46
-41

query II rowsort
SELECT - 59 AS col2, + 72 + - 53
----
-59
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT ( 11 ) * COUNT( * ) col2
----
11

skipif mysql # not compatible
query I rowsort label-8143
SELECT ( 11 ) * COUNT ( * ) col2
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8144
SELECT - + 45 AS col2, CAST( + - 81 AS SIGNED ) AS col2
----
-45
-81

skipif mysql # not compatible
query II rowsort label-8144
SELECT - + 45 AS col2, CAST ( + - 81 AS INTEGER ) AS col2
----
-45
-81

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8146
SELECT - + CAST( NULL AS SIGNED ) AS col2, CASE - CAST( + 1 AS SIGNED ) WHEN + ( 56 ) THEN + 63 / + 12 + 66 + - - 69 * - 83 WHEN - 24 + + - 45 + - 56 THEN - 20 END * 78 / + - ( 43 )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8146
SELECT - + CAST ( NULL AS INTEGER ) AS col2, CASE - CAST ( + 1 AS INTEGER ) WHEN + ( 56 ) THEN + 63 / + 12 + 66 + - - 69 * - 83 WHEN - 24 + + - 45 + - 56 THEN - 20 END * 78 / + - ( 43 )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8147
SELECT DISTINCT 38 AS col1, - ( MIN( DISTINCT - 46 ) ) + + CASE + 2 WHEN + 47 THEN + + MIN( + 58 ) END + - - 90 / + 21 + + 53 + COUNT( * ) AS col2
----
38
NULL

skipif mysql # not compatible
query II rowsort label-8147
SELECT DISTINCT 38 AS col1, - ( MIN ( DISTINCT - 46 ) ) + + CASE + 2 WHEN + 47 THEN + + MIN ( + 58 ) END + - - 90 / + 21 + + 53 + COUNT ( * ) AS col2
----
38
NULL

query II rowsort
SELECT ALL + 55, - 83 AS col0
----
55
-83

query I rowsort
SELECT DISTINCT - CASE + 52 WHEN + + 33 THEN + 67 END col1
----
NULL

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

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

query I rowsort
SELECT 85 * + ( + 79 ) AS col2
----
6715

onlyif mysql # aggregate syntax: 
query I rowsort label-8152
SELECT DISTINCT - NULLIF ( COUNT( * ), + 63 ) * - + ( 3 ) * - 52 AS col2
----
-156

skipif mysql # not compatible
query I rowsort label-8152
SELECT DISTINCT - NULLIF ( COUNT ( * ), + 63 ) * - + ( 3 ) * - 52 AS col2
----
-156

query I rowsort
SELECT ALL - ( 41 ) * + 37 AS col2
----
-1517

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8154
SELECT 90 * - + 52 - + 68 + COUNT( ALL 78 ) * - COALESCE ( 9, - COUNT( * ) + 87, - 43 * 27 * 4 * + + 39 + + CAST( + - 7 AS SIGNED ) * + 32 )
----
-4757

skipif mysql # not compatible
query I rowsort label-8154
SELECT 90 * - + 52 - + 68 + COUNT ( ALL 78 ) * - COALESCE ( 9, - COUNT ( * ) + 87, - 43 * 27 * 4 * + + 39 + + CAST ( + - 7 AS INTEGER ) * + 32 )
----
-4757

query I rowsort
SELECT 10 + - 51 AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8156
SELECT DISTINCT - 36 * + COUNT( * ) * 55
----
-1980

skipif mysql # not compatible
query I rowsort label-8156
SELECT DISTINCT - 36 * + COUNT ( * ) * 55
----
-1980

query II rowsort
SELECT 29 * + + 59 * + 72 AS col1, + COALESCE ( - - 54, - - 25 )
----
123192
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8158
SELECT ALL - NULLIF ( + 20, - - CASE + 64 WHEN 35 * CASE - + 68 WHEN + 45 THEN - 48 + + 21 END THEN - CASE + - 8 WHEN - 78 / + - COUNT( * ) THEN 68 ELSE + 99 END * - 22 + - + 76 * - + 18 END + + 58 + - COUNT( * ) ) + - 21 + + 29 + + COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-8158
SELECT ALL - NULLIF ( + 20, - - CASE + 64 WHEN 35 * CASE - + 68 WHEN + 45 THEN - 48 + + 21 END THEN - CASE + - 8 WHEN - 78 / + - COUNT ( * ) THEN 68 ELSE + 99 END * - 22 + - + 76 * - + 18 END + + 58 + - COUNT ( * ) ) + - 21 + + 29 + + COUNT ( * )
----
-11

query I rowsort
SELECT ALL 76 + + 29 + + - 63 * + + ( + + ( - - 99 ) ) - + 52
----
-6184

query II rowsort
SELECT DISTINCT + COALESCE ( - ( - 1 ), 80 ) + - - 18 AS col0, + 48 * - 25
----
19
-1200

onlyif mysql # aggregate syntax: 
query I rowsort label-8161
SELECT ALL - MAX( DISTINCT 62 ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-8161
SELECT ALL - MAX ( DISTINCT 62 ) AS col0
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8162
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + - 68 - - + 86 - - - 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8162
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + - 68 - - + 86 - - - 73 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8163
SELECT DISTINCT SUM( + 95 ) DIV - 86 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8163
SELECT DISTINCT SUM ( + 95 ) / - 86 AS col1
----
-1

query I rowsort
SELECT ALL 75 + + + 87 * + 4
----
423

query I rowsort
SELECT 38 * - - 97
----
3686

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8167
SELECT 45 DIV - - 71 * 8 * - NULLIF ( ( 29 ), + 46 + 57 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8167
SELECT 45 / - - 71 * 8 * - NULLIF ( ( 29 ), + 46 + 57 ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8168
SELECT ALL 69 * - 23 * + 13 / + + ( + 46 ) / CAST( NULL AS SIGNED ) * + + 47 AS col0, - 26 col0
----
NULL
-26

skipif mysql # not compatible
query II rowsort label-8168
SELECT ALL 69 * - 23 * + 13 / + + ( + 46 ) / CAST ( NULL AS INTEGER ) * + + 47 AS col0, - 26 col0
----
NULL
-26

query I rowsort
SELECT ALL + + 9 + - 54 AS col1
----
-45

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8171
SELECT ALL - 79 - - 11 + - COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-8171
SELECT ALL - 79 - - 11 + - COUNT ( * )
----
-69

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8172
SELECT DISTINCT - 68 * - - 66 + + 78 DIV CAST( + + 46 AS SIGNED ) * + NULLIF ( 90, + - 15 )
----
-4398

skipif mysql # not compatible
query I rowsort label-8172
SELECT DISTINCT - 68 * - - 66 + + 78 / CAST ( + + 46 AS INTEGER ) * + NULLIF ( 90, + - 15 )
----
-4398

onlyif mysql # aggregate syntax: 
query I rowsort label-8173
SELECT - NULLIF ( MAX( - + 4 ), + NULLIF ( - 44, - 3 * - + ( 83 ) * MIN( + 74 ) / 48 ) ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-8173
SELECT - NULLIF ( MAX ( - + 4 ), + NULLIF ( - 44, - 3 * - + ( 83 ) * MIN ( + 74 ) / 48 ) ) AS col1
----
4

query II rowsort
SELECT - + ( - 76 ), - 38 AS col1
----
76
-38

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8176
SELECT + 91 * - COUNT( * ) * - + 27, + 93 AS col0
----
2457
93

skipif mysql # not compatible
query II rowsort label-8176
SELECT + 91 * - COUNT ( * ) * - + 27, + 93 AS col0
----
2457
93

query I rowsort
SELECT DISTINCT - + 8 * - - 88 AS col1
----
-704

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT NULLIF ( 21, - 26 * + 57 + - - 22 ) - - MIN( DISTINCT + + 84 )
----
105

skipif mysql # not compatible
query I rowsort label-8178
SELECT NULLIF ( 21, - 26 * + 57 + - - 22 ) - - MIN ( DISTINCT + + 84 )
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8179
SELECT ALL + CAST( - 29 AS SIGNED ) AS col1, 30 + - 79 + - - MIN( DISTINCT + 46 )
----
-29
-3

skipif mysql # not compatible
query II rowsort label-8179
SELECT ALL + CAST ( - 29 AS INTEGER ) AS col1, 30 + - 79 + - - MIN ( DISTINCT + 46 )
----
-29
-3

query I rowsort
SELECT + 18 - - - 87
----
-69

query II rowsort
SELECT + 58 * + 85 AS col0, + 67
----
4930
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8182
SELECT CASE SUM( + + 66 ) WHEN - 7 * + 64 - 44 / - 9 THEN + 44 ELSE + - 0 + - COUNT( * ) * 2 * + 35 END + - 40
----
-110

skipif mysql # not compatible
query I rowsort label-8182
SELECT CASE SUM ( + + 66 ) WHEN - 7 * + 64 - 44 / - 9 THEN + 44 ELSE + - 0 + - COUNT ( * ) * 2 * + 35 END + - 40
----
-110

query I rowsort
SELECT 33 * - + 80 AS col2
----
-2640

query I rowsort
SELECT COALESCE ( + - 15, - - 90 * - + 59 + + - ( 20 ) ) + - - 40
----
25

query I rowsort
SELECT NULLIF ( - 2, + - 59 - 24 ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT DISTINCT + MIN( DISTINCT - 70 ) * - - 68 + 52 col2
----
-4708

skipif mysql # not compatible
query I rowsort label-8186
SELECT DISTINCT + MIN ( DISTINCT - 70 ) * - - 68 + 52 col2
----
-4708

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8187
SELECT COALESCE ( - 77, - SUM( ALL CAST( ( + 76 ) AS SIGNED ) ) - + + COUNT( * ) + + 34 ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-8187
SELECT COALESCE ( - 77, - SUM ( ALL CAST ( ( + 76 ) AS INTEGER ) ) - + + COUNT ( * ) + + 34 ) AS col0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8188
SELECT + 12 * + CAST( + 82 AS SIGNED ) AS col2
----
984

skipif mysql # not compatible
query I rowsort label-8188
SELECT + 12 * + CAST ( + 82 AS INTEGER ) AS col2
----
984

onlyif mysql # aggregate syntax: 
query I rowsort label-8189
SELECT - COUNT( * ) + - 24 + + - 37 * + 88
----
-3281

skipif mysql # not compatible
query I rowsort label-8189
SELECT - COUNT ( * ) + - 24 + + - 37 * + 88
----
-3281

onlyif mysql # DIV for integer division: 
query I rowsort label-8190
SELECT ALL + 59 DIV - + 67 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8190
SELECT ALL + 59 / - + 67 AS col1
----
0

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

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

query I rowsort
SELECT - 58 * 67 AS col2
----
-3886

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8194
SELECT ALL - CAST( + ( - 17 ) AS SIGNED ) * + + 74 AS col2
----
1258

skipif mysql # not compatible
query I rowsort label-8194
SELECT ALL - CAST ( + ( - 17 ) AS INTEGER ) * + + 74 AS col2
----
1258

query I rowsort
SELECT ALL - 26 * - - 49 - - 8
----
-1266

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8196
SELECT - CASE - 76 WHEN 26 THEN 48 END * MAX( DISTINCT + + 25 ) + + 51 + - CAST( - - CASE + 30 WHEN - 46 THEN NULL WHEN + + 64 * 36 + + 8 + 73 THEN - - 77 + - - ( + + 36 ) END AS SIGNED ) * + 11 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8196
SELECT - CASE - 76 WHEN 26 THEN 48 END * MAX ( DISTINCT + + 25 ) + + 51 + - CAST ( - - CASE + 30 WHEN - 46 THEN NULL WHEN + + 64 * 36 + + 8 + 73 THEN - - 77 + - - ( + + 36 ) END AS INTEGER ) * + 11 col0
----
NULL

query I rowsort
SELECT - + COALESCE ( + 86, + + ( + 18 ) ) - + 35
----
-121

onlyif mysql # DIV for integer division: 
query I rowsort label-8198
SELECT - - 33 + 63 DIV + 27 - - + 54 AS col1
----
89

skipif mysql # not compatible
query I rowsort label-8198
SELECT - - 33 + 63 / + 27 - - + 54 AS col1
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8199
SELECT + 78 * - COALESCE ( 27, + COUNT( * ) DIV + 22 + + COUNT( DISTINCT + 84 ), - + 25 ) - + 24 + + 60 * 13 AS col2
----
-1350

skipif mysql # not compatible
query I rowsort label-8199
SELECT + 78 * - COALESCE ( 27, + COUNT ( * ) / + 22 + + COUNT ( DISTINCT + 84 ), - + 25 ) - + 24 + + 60 * 13 AS col2
----
-1350

query I rowsort
SELECT - CASE 50 WHEN - + 92 THEN NULL WHEN - 14 THEN NULL ELSE - 35 * - 8 + 34 END
----
-314

query I rowsort
SELECT - 26 + - 81
----
-107

query I rowsort
SELECT - - 84 * 40 AS col1
----
3360

query I rowsort
SELECT + 0 * - 58
----
0

query I rowsort
SELECT - 39 + + 62 * 79 + + 85 AS col0
----
4944

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8205
SELECT COUNT( DISTINCT + 90 ) * 0 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8205
SELECT COUNT ( DISTINCT + 90 ) * 0 + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8206
SELECT ALL + 46 col2, MAX( + 34 ) AS col2
----
46
34

skipif mysql # not compatible
query II rowsort label-8206
SELECT ALL + 46 col2, MAX ( + 34 ) AS col2
----
46
34

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

skipif mysql # not compatible
query I rowsort label-8207
SELECT ALL 97 * COUNT ( * ) / COUNT ( * ) AS col0
----
97

query I rowsort
SELECT - 66 + + 29
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-8209
SELECT + + 1 DIV - + 84
----
0

skipif mysql # not compatible
query I rowsort label-8209
SELECT + + 1 / - + 84
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8210
SELECT - COALESCE ( 44, 74 DIV - COUNT( * ), - 53 ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-8210
SELECT - COALESCE ( 44, 74 / - COUNT ( * ), - 53 ) AS col0
----
-44

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

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

query I rowsort
SELECT ALL - - 89 * 35 AS col2
----
3115

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8214
SELECT - + 57 * + 52 * + 99 * + + CAST( NULL AS SIGNED ) + - COALESCE ( - 12, - + 54, MIN( DISTINCT 44 ) ) * NULLIF ( - 78, - 16 ) * - 45 * + + 79 / 93 * - NULLIF ( + 28, - + COUNT( * ) + + 79 ) + - 45 - - - 32 - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-8214
SELECT - + 57 * + 52 * + 99 * + + CAST ( NULL AS INTEGER ) + - COALESCE ( - 12, - + 54, MIN ( DISTINCT 44 ) ) * NULLIF ( - 78, - 16 ) * - 45 * + + 79 / 93 * - NULLIF ( + 28, - + COUNT ( * ) + + 79 ) + - 45 - - - 32 - 62
----
NULL

query I rowsort
SELECT + + 52 + + + 34
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-8216
SELECT - 42 DIV 35 * - - 56 - - 94 + + - 15 col2
----
23

skipif mysql # not compatible
query I rowsort label-8216
SELECT - 42 / 35 * - - 56 - - 94 + + - 15 col2
----
23

query I rowsort
SELECT DISTINCT 81 + - 89
----
-8

query I rowsort
SELECT + 25 * + 87 * - 66 AS col1
----
-143550

query II rowsort
SELECT - - 7 AS col2, - 49 AS col0
----
7
-49

query I rowsort
SELECT ALL - 35 + - + 92
----
-127

query I rowsort
SELECT + 24 * + 5 AS col1
----
120

query I rowsort
SELECT + 36 - 54 * 47
----
-2502

query I rowsort
SELECT - CASE 83 WHEN - 45 THEN NULL ELSE - 68 END
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8224
SELECT - NULLIF ( + 69, COUNT( * ) - + 99 ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-8224
SELECT - NULLIF ( + 69, COUNT ( * ) - + 99 ) AS col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8225
SELECT + NULLIF ( + 42, - NULLIF ( 94, ( COUNT( * ) ) ) )
----
42

skipif mysql # not compatible
query I rowsort label-8225
SELECT + NULLIF ( + 42, - NULLIF ( 94, ( COUNT ( * ) ) ) )
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-8226
SELECT DISTINCT - 92 DIV - + 91 + 78
----
79

skipif mysql # not compatible
query I rowsort label-8226
SELECT DISTINCT - 92 / - + 91 + 78
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8227
SELECT + 5 * NULLIF ( - CASE - 87 WHEN + + 51 * - MIN( DISTINCT + 74 ) + + + 51 THEN + 10 * + 51 + + 68 - + 82 / + COUNT( * ) * - + 78 WHEN - - 19 + CAST( 96 AS SIGNED ) THEN NULL WHEN 22 / - ( COUNT( * ) ) + + + COALESCE ( + MIN( - - 59 ), COUNT( * ) * - 2 - - + 0 + + 18 * 33 + + + 47 + + 23 + + - 96 + 35 ) THEN MAX( + 80 ) END, - + 68 ) * 15
----
NULL

skipif mysql # not compatible
query I rowsort label-8227
SELECT + 5 * NULLIF ( - CASE - 87 WHEN + + 51 * - MIN ( DISTINCT + 74 ) + + + 51 THEN + 10 * + 51 + + 68 - + 82 / + COUNT ( * ) * - + 78 WHEN - - 19 + CAST ( 96 AS INTEGER ) THEN NULL WHEN 22 / - ( COUNT ( * ) ) + + + COALESCE ( + MIN ( - - 59 ), COUNT ( * ) * - 2 - - + 0 + + 18 * 33 + + + 47 + + 23 + + - 96 + 35 ) THEN MAX ( + 80 ) END, - + 68 ) * 15
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8228
SELECT ALL 21 DIV + + COUNT( * ) * COUNT( * ) + 63 + + 95 AS col1
----
179

skipif mysql # not compatible
query I rowsort label-8228
SELECT ALL 21 / + + COUNT ( * ) * COUNT ( * ) + 63 + + 95 AS col1
----
179

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8229
SELECT MAX( ALL - 87 ) * + 72 - - 0 * - - COUNT( DISTINCT - + 48 ) - + CAST( NULL AS SIGNED ) * + 50 + COUNT( 22 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8229
SELECT MAX ( ALL - 87 ) * + 72 - - 0 * - - COUNT ( DISTINCT - + 48 ) - + CAST ( NULL AS INTEGER ) * + 50 + COUNT ( 22 ) col0
----
NULL

query I rowsort
SELECT DISTINCT ( + 73 ) * 30 * + - 5 AS col1
----
-10950

onlyif mysql # DIV for integer division: 
query I rowsort label-8231
SELECT DISTINCT - 15 DIV + 4 - - - 54
----
-57

skipif mysql # not compatible
query I rowsort label-8231
SELECT DISTINCT - 15 / + 4 - - - 54
----
-57

query I rowsort
SELECT ALL + COALESCE ( 71, 34 * 94 * - ( + 45 ) + 71 - 1 * + + 30 * + 64 ) AS col1
----
71

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

skipif mysql # not compatible
query I rowsort label-8233
SELECT DISTINCT 1 / + COUNT ( * ) - 72 AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8234
SELECT DISTINCT + COUNT( ( - 94 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8234
SELECT DISTINCT + COUNT ( ( - 94 ) )
----
1

query I rowsort
SELECT - ( + 15 ) * + + 49 * 50 * 4 AS col2
----
-147000

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8236
SELECT ALL 34 DIV + COUNT( * ) AS col1, + ( 61 ) + - + ( + ( - 13 ) ) + - - 16 * + 65
----
34
1114

skipif mysql # not compatible
query II rowsort label-8236
SELECT ALL 34 / + COUNT ( * ) AS col1, + ( 61 ) + - + ( + ( - 13 ) ) + - - 16 * + 65
----
34
1114

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8238
SELECT 99 * - - ( - 58 ) + - 69 - - 26 * - MAX( - - 81 ) AS col1, 10 AS col1
----
-7917
10

skipif mysql # not compatible
query II rowsort label-8238
SELECT 99 * - - ( - 58 ) + - 69 - - 26 * - MAX ( - - 81 ) AS col1, 10 AS col1
----
-7917
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT ALL - - 79 * + + COUNT( * ) col1
----
79

skipif mysql # not compatible
query I rowsort label-8239
SELECT ALL - - 79 * + + COUNT ( * ) col1
----
79

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

skipif mysql # not compatible
query I rowsort label-8240
SELECT + COUNT ( * ) / - COUNT ( + ( 80 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT DISTINCT + COUNT( * ) * + 37 * + 12
----
444

skipif mysql # not compatible
query I rowsort label-8241
SELECT DISTINCT + COUNT ( * ) * + 37 * + 12
----
444

query I rowsort
SELECT ALL + + 67 * - + 8 AS col1
----
-536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8243
SELECT + ( - 81 ) AS col2, 57 + 56 + COALESCE ( COUNT( * ), 68, COUNT( * ) - + 52 * - CAST( NULL AS SIGNED ) )
----
-81
114

skipif mysql # not compatible
query II rowsort label-8243
SELECT + ( - 81 ) AS col2, 57 + 56 + COALESCE ( COUNT ( * ), 68, COUNT ( * ) - + 52 * - CAST ( NULL AS INTEGER ) )
----
-81
114

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8245
SELECT DISTINCT + 83 * - MAX( DISTINCT 23 ) * - 13, + 94 AS col0
----
24817
94

skipif mysql # not compatible
query II rowsort label-8245
SELECT DISTINCT + 83 * - MAX ( DISTINCT 23 ) * - 13, + 94 AS col0
----
24817
94

query I rowsort
SELECT DISTINCT 25 * - 42 + + 37
----
-1013

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8247
SELECT - CAST( NULL AS SIGNED ) * + 39 + - COUNT( * ) + MAX( DISTINCT 62 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8247
SELECT - CAST ( NULL AS INTEGER ) * + 39 + - COUNT ( * ) + MAX ( DISTINCT 62 )
----
NULL

query I rowsort
SELECT - - 95 - + 76 AS col2
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8249
SELECT + CASE - + 53 WHEN - AVG ( + COALESCE ( - 79, + 3 ) ) * + 68 THEN + CAST( 51 AS SIGNED ) END - + 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8249
SELECT + CASE - + 53 WHEN - AVG ( + COALESCE ( - 79, + 3 ) ) * + 68 THEN + CAST ( 51 AS INTEGER ) END - + 32 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8250
SELECT ALL + CAST( 63 AS SIGNED ) + - 23 + - + COUNT( * ) * 83 col0
----
-43

skipif mysql # not compatible
query I rowsort label-8250
SELECT ALL + CAST ( 63 AS INTEGER ) + - 23 + - + COUNT ( * ) * 83 col0
----
-43

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

skipif mysql # not compatible
query I rowsort label-8251
SELECT ALL + 40 + COUNT ( * ) * + 93 AS col2
----
133

query I rowsort
SELECT DISTINCT 1 + - 16 AS col0
----
-15

query I rowsort
SELECT 3 + + 48
----
51

query I rowsort
SELECT 39 - ( 43 ) * - ( + NULLIF ( + - 1, - - 59 * + 37 ) ) * - 79 + - 87 + - - 16 * 10
----
3509

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

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

query I rowsort
SELECT 13 + 72 + + - 25 AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8257
SELECT COUNT( * ) - 90 AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-8257
SELECT COUNT ( * ) - 90 AS col1
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-8258
SELECT 58 DIV + 32 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8258
SELECT 58 / + 32 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8259
SELECT ALL + NULLIF ( - + CASE 81 WHEN 63 THEN + 8 + - + COUNT( * ) * 44 * - 99 ELSE NULL END, - 98 * - CASE - + 99 WHEN COUNT( * ) THEN + - CASE - - 79 WHEN + 63 + - CAST( NULL AS SIGNED ) + - + ( + + 40 ) THEN + 70 END WHEN + 8 * - 19 - - NULLIF ( + - 15, + COUNT( DISTINCT + 26 ) * - 2 + + + 19 ) + - + 94 THEN - - 25 + + + COUNT( * ) * + - 83 END * + 69 - + - 54 + + 21 + - 34 ) * - + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-8259
SELECT ALL + NULLIF ( - + CASE 81 WHEN 63 THEN + 8 + - + COUNT ( * ) * 44 * - 99 ELSE NULL END, - 98 * - CASE - + 99 WHEN COUNT ( * ) THEN + - CASE - - 79 WHEN + 63 + - CAST ( NULL AS INTEGER ) + - + ( + + 40 ) THEN + 70 END WHEN + 8 * - 19 - - NULLIF ( + - 15, + COUNT ( DISTINCT + 26 ) * - 2 + + + 19 ) + - + 94 THEN - - 25 + + + COUNT ( * ) * + - 83 END * + 69 - + - 54 + + 21 + - 34 ) * - + 68
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8260
SELECT COUNT( * ) + - CAST( NULL AS SIGNED ) + NULLIF ( 36, - NULLIF ( + 13, - 86 ) * 55 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8260
SELECT COUNT ( * ) + - CAST ( NULL AS INTEGER ) + NULLIF ( 36, - NULLIF ( + 13, - 86 ) * 55 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8261
SELECT ALL - COALESCE ( - COUNT( * ), 27 ) - - - 50
----
-49

skipif mysql # not compatible
query I rowsort label-8261
SELECT ALL - COALESCE ( - COUNT ( * ), 27 ) - - - 50
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8262
SELECT DISTINCT 93 * NULLIF ( + 68, COUNT( * ) - 16 * - - 92 + + CASE + + 5 WHEN + 36 * 7 THEN - 63 END ) AS col2
----
6324

skipif mysql # not compatible
query I rowsort label-8262
SELECT DISTINCT 93 * NULLIF ( + 68, COUNT ( * ) - 16 * - - 92 + + CASE + + 5 WHEN + 36 * 7 THEN - 63 END ) AS col2
----
6324

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8263
SELECT CAST( - 33 AS SIGNED ) + + + 56
----
23

skipif mysql # not compatible
query I rowsort label-8263
SELECT CAST ( - 33 AS INTEGER ) + + + 56
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8264
SELECT 92 AS col1, - CAST( NULL AS SIGNED ) AS col1
----
92
NULL

skipif mysql # not compatible
query II rowsort label-8264
SELECT 92 AS col1, - CAST ( NULL AS INTEGER ) AS col1
----
92
NULL

query I rowsort
SELECT ALL 28 * 39
----
1092

query I rowsort
SELECT DISTINCT 45 * 91
----
4095

query I rowsort
SELECT DISTINCT 57 * 78 AS col2
----
4446

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8268
SELECT ( - 95 ) DIV ( COUNT( * ) ) + - CAST( - 47 AS SIGNED )
----
-48

skipif mysql # not compatible
query I rowsort label-8268
SELECT ( - 95 ) / ( COUNT ( * ) ) + - CAST ( - 47 AS INTEGER )
----
-48

query I rowsort
SELECT ALL 92 * 40 AS col0
----
3680

onlyif mysql # aggregate syntax: 
query I rowsort label-8270
SELECT ALL - SUM( 34 ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-8270
SELECT ALL - SUM ( 34 ) AS col2
----
-34

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

skipif mysql # not compatible
query I rowsort label-8271
SELECT ALL - 70 / - COUNT ( * ) AS col1
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-8272
SELECT 98 DIV 18 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-8272
SELECT 98 / 18 AS col1
----
5

query I rowsort
SELECT ALL 44 + 96
----
140

query I rowsort
SELECT 5 - 57 AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8275
SELECT - 52 * NULLIF ( 90 * - 87, + ( - 74 ) ) + + COUNT( * ) col0
----
407161

skipif mysql # not compatible
query I rowsort label-8275
SELECT - 52 * NULLIF ( 90 * - 87, + ( - 74 ) ) + + COUNT ( * ) col0
----
407161

onlyif mysql # aggregate syntax: 
query I rowsort label-8276
SELECT ALL COUNT( * ) + 4
----
5

skipif mysql # not compatible
query I rowsort label-8276
SELECT ALL COUNT ( * ) + 4
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8277
SELECT 88 DIV 40 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-8277
SELECT 88 / 40 AS col1
----
2

query I rowsort
SELECT 24 + + 35
----
59

query I rowsort
SELECT ALL - 62 + 91 * - 12
----
-1154

query I rowsort
SELECT DISTINCT 43 + 2 AS col0
----
45

query I rowsort
SELECT DISTINCT + 90 * 77
----
6930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8282
SELECT ALL - COALESCE ( CAST( + CASE SUM( 84 ) WHEN 6 THEN NULL WHEN 51 / - 32 + 88 THEN - 34 WHEN COUNT( * ) THEN 98 END AS SIGNED ), - 77 ) + + 40 AS col2
----
117

skipif mysql # not compatible
query I rowsort label-8282
SELECT ALL - COALESCE ( CAST ( + CASE SUM ( 84 ) WHEN 6 THEN NULL WHEN 51 / - 32 + 88 THEN - 34 WHEN COUNT ( * ) THEN 98 END AS INTEGER ), - 77 ) + + 40 AS col2
----
117

query I rowsort
SELECT 99 * + CASE - 23 WHEN 47 THEN 38 / + 27 + 93 END + 58
----
NULL

query I rowsort
SELECT ALL 78 + - 43 AS col1
----
35

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

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

query I rowsort
SELECT 23 + 64
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8287
SELECT ALL + CASE + COUNT( * ) WHEN 4 + - 8 THEN - 23 END + + 26 * + 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8287
SELECT ALL + CASE + COUNT ( * ) WHEN 4 + - 8 THEN - 23 END + + 26 * + 17 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8288
SELECT DISTINCT + CASE 71 WHEN 82 + - 35 THEN + COUNT( * ) WHEN CAST( 52 AS SIGNED ) + - CASE - 45 WHEN - 35 THEN - COALESCE ( 82, - 16 + COUNT( * ) * 61 ) + + ( 2 ) WHEN + CASE - 80 WHEN NULLIF ( 63, + 87 * 6 ) / - NULLIF ( - 57 + 71, 36 ) THEN NULL WHEN ( - 70 ) THEN 57 + COUNT( * ) * MIN( DISTINCT 73 ) END THEN NULL ELSE NULL END THEN NULL WHEN + 13 THEN + 7 ELSE NULL END * - COALESCE ( + 57 / + 46, 4 * - 53 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8288
SELECT DISTINCT + CASE 71 WHEN 82 + - 35 THEN + COUNT ( * ) WHEN CAST ( 52 AS INTEGER ) + - CASE - 45 WHEN - 35 THEN - COALESCE ( 82, - 16 + COUNT ( * ) * 61 ) + + ( 2 ) WHEN + CASE - 80 WHEN NULLIF ( 63, + 87 * 6 ) / - NULLIF ( - 57 + 71, 36 ) THEN NULL WHEN ( - 70 ) THEN 57 + COUNT ( * ) * MIN ( DISTINCT 73 ) END THEN NULL ELSE NULL END THEN NULL WHEN + 13 THEN + 7 ELSE NULL END * - COALESCE ( + 57 / + 46, 4 * - 53 )
----
NULL

query I rowsort
SELECT 39 + 87
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-8290
SELECT DISTINCT + COALESCE ( 89, - COUNT( * ) * + COUNT( * ), + 64 * 22 + 40 ) + 92 col1
----
181

skipif mysql # not compatible
query I rowsort label-8290
SELECT DISTINCT + COALESCE ( 89, - COUNT ( * ) * + COUNT ( * ), + 64 * 22 + 40 ) + 92 col1
----
181

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8291
SELECT ALL - 63 + 42 * ( + CASE + CASE - 62 WHEN COUNT( * ) * - AVG ( DISTINCT + 94 ) THEN + 70 WHEN COALESCE ( COUNT( * ), - 60 * + CASE - 45 WHEN + 94 THEN - 40 WHEN 23 THEN - 72 * - 46 ELSE - 62 + CAST( NULL AS SIGNED ) * + 65 END + - 4, 33 ) THEN NULL WHEN 19 THEN 83 * 64 ELSE NULL END WHEN 21 * CASE - ( + 23 ) WHEN 44 THEN NULL WHEN + 82 * + AVG ( DISTINCT + 89 ) THEN NULL WHEN + 40 THEN 90 ELSE 24 * + CAST( NULL AS SIGNED ) + - 9 END THEN + 16 * 8 WHEN 61 THEN NULLIF ( + 91, 77 * + COUNT( * ) ) * + 16 ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8291
SELECT ALL - 63 + 42 * ( + CASE + CASE - 62 WHEN COUNT ( * ) * - AVG ( DISTINCT + 94 ) THEN + 70 WHEN COALESCE ( COUNT ( * ), - 60 * + CASE - 45 WHEN + 94 THEN - 40 WHEN 23 THEN - 72 * - 46 ELSE - 62 + CAST ( NULL AS INTEGER ) * + 65 END + - 4, 33 ) THEN NULL WHEN 19 THEN 83 * 64 ELSE NULL END WHEN 21 * CASE - ( + 23 ) WHEN 44 THEN NULL WHEN + 82 * + AVG ( DISTINCT + 89 ) THEN NULL WHEN + 40 THEN 90 ELSE 24 * + CAST ( NULL AS INTEGER ) + - 9 END THEN + 16 * 8 WHEN 61 THEN NULLIF ( + 91, 77 * + COUNT ( * ) ) * + 16 ELSE NULL END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT 58 + 76 * + COUNT( * ) AS col2
----
134

skipif mysql # not compatible
query I rowsort label-8292
SELECT 58 + 76 * + COUNT ( * ) AS col2
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT ALL + 0 - + MIN( 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-8293
SELECT ALL + 0 - + MIN ( 45 )
----
-45

query I rowsort
SELECT DISTINCT + 18 - - 8 AS col0
----
26

query I rowsort
SELECT ALL - 28 * 6 AS col0
----
-168

query I rowsort
SELECT DISTINCT - 19 - - 44 AS col2
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-8297
SELECT DISTINCT - 46 DIV + 34
----
-1

skipif mysql # not compatible
query I rowsort label-8297
SELECT DISTINCT - 46 / + 34
----
-1

query I rowsort
SELECT ALL 46 - 12 AS col1
----
34

query I rowsort
SELECT 64 * + 62
----
3968

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT 38 - COUNT( * )
----
37

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT MAX( - 31 ) * COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-8301
SELECT MAX ( - 31 ) * COUNT ( * )
----
-31

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT COUNT( - ( - 47 ) ) * - NULLIF ( - 6, + COUNT( * ) )
----
6

skipif mysql # not compatible
query I rowsort label-8304
SELECT COUNT ( - ( - 47 ) ) * - NULLIF ( - 6, + COUNT ( * ) )
----
6

query I rowsort
SELECT DISTINCT + 56 * 62
----
3472

query I rowsort
SELECT ALL - - 36 col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT + 16 / + 52 - - CASE WHEN - COUNT( * ) BETWEEN NULL AND 53 * 93 THEN 35 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8307
SELECT + 16 / + 52 - - CASE WHEN - COUNT ( * ) BETWEEN NULL AND 53 * 93 THEN 35 END AS col2
----
NULL

query I rowsort
SELECT - 19 * 54 AS col2
----
-1026

query I rowsort
SELECT ALL 95 * - 6 + - 10
----
-580

onlyif mysql # aggregate syntax: 
query I rowsort label-8310
SELECT DISTINCT 33 * COUNT( * ) + + 39 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-8310
SELECT DISTINCT 33 * COUNT ( * ) + + 39 AS col2
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8311
SELECT CASE + 96 WHEN ( - 65 ) * ( COUNT( * ) + + 42 ) THEN MIN( DISTINCT - ( 2 ) ) + - 30 * + SUM( 77 ) WHEN 93 THEN NULL ELSE + 5 DIV MIN( ALL 71 ) END * - 15 + 56
----
56

skipif mysql # not compatible
query I rowsort label-8311
SELECT CASE + 96 WHEN ( - 65 ) * ( COUNT ( * ) + + 42 ) THEN MIN ( DISTINCT - ( 2 ) ) + - 30 * + SUM ( 77 ) WHEN 93 THEN NULL ELSE + 5 / MIN ( ALL 71 ) END * - 15 + 56
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8312
SELECT + MIN( DISTINCT + 67 ) * COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-8312
SELECT + MIN ( DISTINCT + 67 ) * COUNT ( * )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8313
SELECT COALESCE ( + 72, 96 ) + + COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-8313
SELECT COALESCE ( + 72, 96 ) + + COUNT ( * )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8314
SELECT ALL - 78 * 61 + + COUNT( * )
----
-4757

skipif mysql # not compatible
query I rowsort label-8314
SELECT ALL - 78 * 61 + + COUNT ( * )
----
-4757

onlyif mysql # aggregate syntax: 
query I rowsort label-8315
SELECT ALL + 34 * CASE + 5 WHEN - SUM( ALL 16 ) THEN 27 / - 50 END + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-8315
SELECT ALL + 34 * CASE + 5 WHEN - SUM ( ALL 16 ) THEN 27 / - 50 END + 29
----
NULL

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8318
SELECT NULLIF ( COUNT( * ), 61 * - CAST( NULL AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8318
SELECT NULLIF ( COUNT ( * ), 61 * - CAST ( NULL AS INTEGER ) ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8319
SELECT ALL 75 + + 63 DIV - COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-8319
SELECT ALL 75 + + 63 / - COUNT ( * )
----
12

query I rowsort
SELECT DISTINCT + NULLIF ( 12, - 93 )
----
12

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8321
SELECT ALL - CAST( NULL AS SIGNED ) + - CAST( NULL AS DECIMAL ) * - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-8321
SELECT ALL - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS REAL ) * - 31
----
NULL

query I rowsort
SELECT + + 43 + + 45 AS col0
----
88

query I rowsort
SELECT + 13 + + 77
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8324
SELECT - 19 DIV + - SUM( DISTINCT - COALESCE ( + 89, 29 ) ) * + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8324
SELECT - 19 / + - SUM ( DISTINCT - COALESCE ( + 89, 29 ) ) * + COUNT ( * ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8325
SELECT ALL COUNT( * ) - ( CAST( 84 AS SIGNED ) ) + 48
----
-35

skipif mysql # not compatible
query I rowsort label-8325
SELECT ALL COUNT ( * ) - ( CAST ( 84 AS INTEGER ) ) + 48
----
-35

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8326
SELECT + 30 * - CASE + CAST( NULL AS DECIMAL ) WHEN + COUNT( - 71 ) / + 4 THEN NULL WHEN COUNT( * ) THEN - SUM( + 15 ) + - 99 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8326
SELECT + 30 * - CASE + CAST ( NULL AS REAL ) WHEN + COUNT ( - 71 ) / + 4 THEN NULL WHEN COUNT ( * ) THEN - SUM ( + 15 ) + - 99 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT - NULLIF ( - COUNT( * ), - MIN( - 41 ) * + 48 )
----
1

skipif mysql # not compatible
query I rowsort label-8327
SELECT - NULLIF ( - COUNT ( * ), - MIN ( - 41 ) * + 48 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT + 6 - + + SUM( ALL 30 ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-8328
SELECT + 6 - + + SUM ( ALL 30 ) AS col1
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8329
SELECT + 65 * + - CAST( - 70 AS SIGNED )
----
4550

skipif mysql # not compatible
query I rowsort label-8329
SELECT + 65 * + - CAST ( - 70 AS INTEGER )
----
4550

query I rowsort
SELECT ALL + 5 * 22
----
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8331
SELECT + 83 - + ( NULLIF ( CAST( NULL AS SIGNED ), 1 * + ( - MAX( + 48 ) ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8331
SELECT + 83 - + ( NULLIF ( CAST ( NULL AS INTEGER ), 1 * + ( - MAX ( + 48 ) ) ) ) AS col0
----
NULL

query I rowsort
SELECT ALL - 41 * - 30
----
1230

query I rowsort
SELECT + 59 + + + 26 AS col2
----
85

query I rowsort
SELECT ALL - 32 * 28
----
-896

query I rowsort
SELECT - 76 * + 96 AS col2
----
-7296

query I rowsort
SELECT DISTINCT 82 * + 63 AS col2
----
5166

onlyif mysql # aggregate syntax: 
query I rowsort label-8337
SELECT ALL 17 * - COUNT( * ) * 79
----
-1343

skipif mysql # not compatible
query I rowsort label-8337
SELECT ALL 17 * - COUNT ( * ) * 79
----
-1343

query I rowsort
SELECT + 23 + 91
----
114

query I rowsort
SELECT - 29 - 58 * + 64 AS col2
----
-3741

query I rowsort
SELECT + 40 * + 38 AS col1
----
1520

onlyif mysql # aggregate syntax: 
query I rowsort label-8341
SELECT + MIN( DISTINCT 12 ) + COUNT( 47 )
----
13

skipif mysql # not compatible
query I rowsort label-8341
SELECT + MIN ( DISTINCT 12 ) + COUNT ( 47 )
----
13

query I rowsort
SELECT - ( 33 ) - ( 98 ) col0
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-8343
SELECT + 75 + - - COUNT( * ) * + 7
----
82

skipif mysql # not compatible
query I rowsort label-8343
SELECT + 75 + - - COUNT ( * ) * + 7
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT - MIN( ALL 79 ) + - 93 col0
----
-172

skipif mysql # not compatible
query I rowsort label-8344
SELECT - MIN ( ALL 79 ) + - 93 col0
----
-172

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8345
SELECT DISTINCT CASE 19 WHEN 31 - + 49 THEN + 95 WHEN 21 + + 15 / - 68 THEN + 20 * AVG ( NULLIF ( + CAST( NULL AS DECIMAL ), 57 - 21 * ( 95 ) ) ) WHEN 14 * - 7 THEN 14 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8345
SELECT DISTINCT CASE 19 WHEN 31 - + 49 THEN + 95 WHEN 21 + + 15 / - 68 THEN + 20 * AVG ( NULLIF ( + CAST ( NULL AS REAL ), 57 - 21 * ( 95 ) ) ) WHEN 14 * - 7 THEN 14 ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8346
SELECT ALL NULLIF ( - 6, + COUNT( * ) ) col1
----
-6

skipif mysql # not compatible
query I rowsort label-8346
SELECT ALL NULLIF ( - 6, + COUNT ( * ) ) col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8347
SELECT - ( - 17 ) + COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-8347
SELECT - ( - 17 ) + COUNT ( * )
----
18

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

skipif mysql # not compatible
query I rowsort label-8348
SELECT DISTINCT - 79 + CAST ( 53 AS INTEGER )
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-8349
SELECT ALL - - 60 * + 33 - 29 DIV 44
----
1980

skipif mysql # not compatible
query I rowsort label-8349
SELECT ALL - - 60 * + 33 - 29 / 44
----
1980

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8350
SELECT - + 34 DIV + - COALESCE ( COALESCE ( + 4, - CASE - 54 WHEN - ( - CASE + MAX( + 45 ) WHEN 42 - + 20 THEN 96 ELSE 95 END ) THEN NULL ELSE 19 * NULLIF ( - 78 * - 50, - 49 + - ( + 98 ) ) END ), 0 ) + 49 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-8350
SELECT - + 34 / + - COALESCE ( COALESCE ( + 4, - CASE - 54 WHEN - ( - CASE + MAX ( + 45 ) WHEN 42 - + 20 THEN 96 ELSE 95 END ) THEN NULL ELSE 19 * NULLIF ( - 78 * - 50, - 49 + - ( + 98 ) ) END ), 0 ) + 49 AS col2
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-8351
SELECT ALL 43 DIV 33 + 80 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-8351
SELECT ALL 43 / 33 + 80 AS col0
----
81

query I rowsort
SELECT + NULLIF ( + + 49, 42 + - 93 ) AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8353
SELECT - + 90 * - 30 - COUNT( * ) AS col0
----
2699

skipif mysql # not compatible
query I rowsort label-8353
SELECT - + 90 * - 30 - COUNT ( * ) AS col0
----
2699

query I rowsort
SELECT - - 10 + - 77 * - 39
----
3013

query I rowsort
SELECT ALL - 4 * + 75
----
-300

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT - 97 * NULLIF ( + ( 90 ), + SUM( + 85 ) )
----
-8730

skipif mysql # not compatible
query I rowsort label-8356
SELECT - 97 * NULLIF ( + ( 90 ), + SUM ( + 85 ) )
----
-8730

query I rowsort
SELECT - - 52 * - 0 * - 91 + 73 AS col2
----
73

query I rowsort
SELECT DISTINCT 51 * - 10 + - 87 AS col0
----
-597

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT - ( - + MIN( ALL 13 ) ) * 81 AS col2
----
1053

skipif mysql # not compatible
query I rowsort label-8360
SELECT - ( - + MIN ( ALL 13 ) ) * 81 AS col2
----
1053

onlyif mysql # aggregate syntax: 
query I rowsort label-8361
SELECT 72 * - MIN( - 20 ) + + 65
----
1505

skipif mysql # not compatible
query I rowsort label-8361
SELECT 72 * - MIN ( - 20 ) + + 65
----
1505

query I rowsort
SELECT ALL + 28 * 23 * + 79
----
50876

query I rowsort
SELECT + 95 + 19 + + 66 * - 56 AS col1
----
-3582

query I rowsort
SELECT + NULLIF ( + 20, + - 22 ) AS col2
----
20

query I rowsort
SELECT + 83 + + + ( + 89 ) AS col1
----
172

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8366
SELECT ALL + 5 * + 9 * CAST( NULLIF ( 89, 0 ) AS SIGNED ) - 52
----
3953

skipif mysql # not compatible
query I rowsort label-8366
SELECT ALL + 5 * + 9 * CAST ( NULLIF ( 89, 0 ) AS INTEGER ) - 52
----
3953

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

skipif mysql # not compatible
query I rowsort label-8367
SELECT ALL + COUNT ( * ) * 37 AS col0
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8368
SELECT DISTINCT CASE - - ( 97 ) WHEN 69 - COUNT( * ) THEN NULL WHEN - COALESCE ( ( + COALESCE ( 64, 42 ) ), CAST( + 88 AS SIGNED ), + COUNT( * ) ) THEN 91 END * + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-8368
SELECT DISTINCT CASE - - ( 97 ) WHEN 69 - COUNT ( * ) THEN NULL WHEN - COALESCE ( ( + COALESCE ( 64, 42 ) ), CAST ( + 88 AS INTEGER ), + COUNT ( * ) ) THEN 91 END * + 60
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8369
SELECT + NULLIF ( COUNT( * ), - 19 ) * - 46
----
-46

skipif mysql # not compatible
query I rowsort label-8369
SELECT + NULLIF ( COUNT ( * ), - 19 ) * - 46
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT MAX( ( 74 ) ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-8370
SELECT MAX ( ( 74 ) ) AS col2
----
74

query I rowsort
SELECT ALL 63 + 97
----
160

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8372
SELECT - CAST( NULL AS DECIMAL ) AS col2, + 67
----
NULL
67

skipif mysql # not compatible
query II rowsort label-8372
SELECT - CAST ( NULL AS REAL ) AS col2, + 67
----
NULL
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8373
SELECT DISTINCT - CASE + + 97 WHEN + - 18 THEN + SUM( 98 ) - 63 END + + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-8373
SELECT DISTINCT - CASE + + 97 WHEN + - 18 THEN + SUM ( 98 ) - 63 END + + 91
----
NULL

query I rowsort
SELECT DISTINCT - 84 + COALESCE ( - 12, 85 )
----
-96

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

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

query I rowsort
SELECT ALL 27 + - 11 AS col0
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8377
SELECT + COUNT( * ) - + 43 * - + 2 * COALESCE ( - 80, + 81 DIV + 47, COUNT( * ) + 73 )
----
-6879

skipif mysql # not compatible
query I rowsort label-8377
SELECT + COUNT ( * ) - + 43 * - + 2 * COALESCE ( - 80, + 81 / + 47, COUNT ( * ) + 73 )
----
-6879

query I rowsort
SELECT + 41 * - 57 - + + 61 AS col1
----
-2398

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8379
SELECT + - NULLIF ( - CASE + 86 WHEN + 31 * - CAST( 49 AS DECIMAL ) THEN NULL WHEN 49 THEN NULL WHEN COUNT( * ) - + 47 THEN - 20 ELSE NULL END, 75 ) - - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-8379
SELECT + - NULLIF ( - CASE + 86 WHEN + 31 * - CAST ( 49 AS REAL ) THEN NULL WHEN 49 THEN NULL WHEN COUNT ( * ) - + 47 THEN - 20 ELSE NULL END, 75 ) - - 75
----
NULL

query II rowsort
SELECT ALL 47 AS col0, + 22 * - 58 AS col1
----
47
-1276

query I rowsort
SELECT - COALESCE ( + + 89, - + ( - 8 ) * + 31, 48 + 39 ) + - 68 AS col2
----
-157

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8383
SELECT - 8 AS col0, CASE + + CASE + 81 WHEN 24 THEN NULL WHEN - COUNT( * ) * + 0 THEN - 41 + + COUNT( * ) * MIN( 57 ) WHEN 69 / + ( 50 / ( + NULLIF ( + 14, CASE 13 WHEN 18 THEN NULL WHEN + ( 55 ) / - AVG ( DISTINCT 30 ) - 61 THEN 19 * 42 ELSE + 88 END ) * COUNT( * ) ) ) THEN NULLIF ( 9, 33 / 69 ) END WHEN - COUNT( + 28 ) * COUNT( * ) THEN - COUNT( * ) WHEN - 26 THEN NULL ELSE + 66 END * 89 AS col2
----
-8
5874

skipif mysql # not compatible
query II rowsort label-8383
SELECT - 8 AS col0, CASE + + CASE + 81 WHEN 24 THEN NULL WHEN - COUNT ( * ) * + 0 THEN - 41 + + COUNT ( * ) * MIN ( 57 ) WHEN 69 / + ( 50 / ( + NULLIF ( + 14, CASE 13 WHEN 18 THEN NULL WHEN + ( 55 ) / - AVG ( DISTINCT 30 ) - 61 THEN 19 * 42 ELSE + 88 END ) * COUNT ( * ) ) ) THEN NULLIF ( 9, 33 / 69 ) END WHEN - COUNT ( + 28 ) * COUNT ( * ) THEN - COUNT ( * ) WHEN - 26 THEN NULL ELSE + 66 END * 89 AS col2
----
-8
5874

onlyif mysql # aggregate syntax: 
query I rowsort label-8384
SELECT DISTINCT + 6 + CASE 22 WHEN + COUNT( + 45 ) + + 43 THEN - AVG ( COALESCE ( ( - 40 ), 73, 40 * + 7, 27 ) ) END * + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-8384
SELECT DISTINCT + 6 + CASE 22 WHEN + COUNT ( + 45 ) + + 43 THEN - AVG ( COALESCE ( ( - 40 ), 73, 40 * + 7, 27 ) ) END * + 33
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8386
SELECT - + CASE WHEN CAST( CAST( NULL AS SIGNED ) AS SIGNED ) NOT BETWEEN COUNT( * ) AND NULL THEN + 69 / 26 ELSE NULL END * 33 - COALESCE ( 81 + ( 85 + + 79 ) * 69, 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8386
SELECT - + CASE WHEN CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) NOT BETWEEN COUNT ( * ) AND NULL THEN + 69 / 26 ELSE NULL END * 33 - COALESCE ( 81 + ( 85 + + 79 ) * 69, 92 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8387
SELECT - 70 DIV + COALESCE ( + 61, 14 DIV 7, 69 ) - 52 - COUNT( * ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-8387
SELECT - 70 / + COALESCE ( + 61, 14 / 7, 69 ) - 52 - COUNT ( * ) AS col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT + MIN( + 63 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-8388
SELECT + MIN ( + 63 ) AS col1
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-8389
SELECT ALL + 23 - - 43 DIV + 59 * 76
----
23

skipif mysql # not compatible
query I rowsort label-8389
SELECT ALL + 23 - - 43 / + 59 * 76
----
23

query I rowsort
SELECT 45 * - 25 AS col2
----
-1125

onlyif mysql # aggregate syntax: 
query I rowsort label-8391
SELECT + COUNT( * ) * - 8 + 47 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-8391
SELECT + COUNT ( * ) * - 8 + 47 AS col2
----
39

query I rowsort
SELECT - 40 + 91 AS col0
----
51

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

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

query I rowsort
SELECT 66 + - 72
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT COUNT( * ) * - - 29 + + COALESCE ( - SUM( DISTINCT 46 ), - COUNT( * ) ) + 31
----
14

skipif mysql # not compatible
query I rowsort label-8395
SELECT COUNT ( * ) * - - 29 + + COALESCE ( - SUM ( DISTINCT 46 ), - COUNT ( * ) ) + 31
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8396
SELECT ALL - CASE 22 WHEN - CAST( - 70 AS SIGNED ) - - 34 * + 10 THEN NULL WHEN 22 THEN NULL ELSE + 47 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8396
SELECT ALL - CASE 22 WHEN - CAST ( - 70 AS INTEGER ) - - 34 * + 10 THEN NULL WHEN 22 THEN NULL ELSE + 47 END AS col1
----
NULL

query I rowsort
SELECT + CASE - - 22 WHEN + 2 THEN 1 * 20 END AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8399
SELECT COUNT( * ) DIV - 51 * + 54 * - 68 * 98
----
0

skipif mysql # not compatible
query I rowsort label-8399
SELECT COUNT ( * ) / - 51 * + 54 * - 68 * 98
----
0

query I rowsort
SELECT DISTINCT + 59 * - ( + 53 ) * + - 1
----
3127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8401
SELECT 38 + - CAST( + SUM( + 52 ) AS SIGNED )
----
-14

skipif mysql # not compatible
query I rowsort label-8401
SELECT 38 + - CAST ( + SUM ( + 52 ) AS INTEGER )
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8402
SELECT 48 + - CAST( + - 55 AS SIGNED )
----
103

skipif mysql # not compatible
query I rowsort label-8402
SELECT 48 + - CAST ( + - 55 AS INTEGER )
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-8403
SELECT DISTINCT 29 + - 61 DIV - + 24 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-8403
SELECT DISTINCT 29 + - 61 / - + 24 AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8404
SELECT ALL 88 + 96 + CASE - 35 WHEN COUNT( * ) + 18 THEN SUM( - 42 ) * + 77 WHEN 31 + 2 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8404
SELECT ALL 88 + 96 + CASE - 35 WHEN COUNT ( * ) + 18 THEN SUM ( - 42 ) * + 77 WHEN 31 + 2 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8405
SELECT DISTINCT + 97 + COUNT( * ) AS col1, + CASE + 36 WHEN + COUNT( * ) THEN NULL WHEN - ( 43 ) * + 81 + + 16 THEN - 63 / + 56 - - COUNT( * ) WHEN + 20 + 74 THEN ( 44 ) + + 63 END
----
98
NULL

skipif mysql # not compatible
query II rowsort label-8405
SELECT DISTINCT + 97 + COUNT ( * ) AS col1, + CASE + 36 WHEN + COUNT ( * ) THEN NULL WHEN - ( 43 ) * + 81 + + 16 THEN - 63 / + 56 - - COUNT ( * ) WHEN + 20 + 74 THEN ( 44 ) + + 63 END
----
98
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8406
SELECT ( - 80 ) + + COUNT( * ) + + 74 * 32 * 65 AS col2
----
153841

skipif mysql # not compatible
query I rowsort label-8406
SELECT ( - 80 ) + + COUNT ( * ) + + 74 * 32 * 65 AS col2
----
153841

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8408
SELECT MAX( - 38 ) + 63 * - + 60 + + 46 AS col1
----
-3772

skipif mysql # not compatible
query I rowsort label-8408
SELECT MAX ( - 38 ) + 63 * - + 60 + + 46 AS col1
----
-3772

onlyif mysql # aggregate syntax: 
query I rowsort label-8409
SELECT COUNT( * ) - - 64 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-8409
SELECT COUNT ( * ) - - 64 AS col0
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-8410
SELECT DISTINCT + 46 DIV - - 88 - + 54 AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-8410
SELECT DISTINCT + 46 / - - 88 - + 54 AS col1
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8411
SELECT + 79 + - COALESCE ( - CAST( NULL AS SIGNED ), 18 )
----
61

skipif mysql # not compatible
query I rowsort label-8411
SELECT + 79 + - COALESCE ( - CAST ( NULL AS INTEGER ), 18 )
----
61

query I rowsort
SELECT ALL + 96 * - 3 - - 5 + 18 + 31 AS col0
----
-234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8413
SELECT DISTINCT 58 * + CASE 12 WHEN + COUNT( * ) THEN NULL ELSE COUNT( * ) * - COUNT( * ) + + 99 END + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8413
SELECT DISTINCT 58 * + CASE 12 WHEN + COUNT ( * ) THEN NULL ELSE COUNT ( * ) * - COUNT ( * ) + + 99 END + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - + COALESCE ( 95, - - 40 + + 94 )
----
-95

query I rowsort
SELECT ALL - ( - - COALESCE ( + 97, + 2 + 4 * 2 ) ) col1
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-8416
SELECT 30 DIV 50 + + + 78 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-8416
SELECT 30 / 50 + + + 78 AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8417
SELECT ALL SUM( + 85 ) * + + 17 + ( + 76 ) col1
----
1521

skipif mysql # not compatible
query I rowsort label-8417
SELECT ALL SUM ( + 85 ) * + + 17 + ( + 76 ) col1
----
1521

onlyif mysql # aggregate syntax: 
query I rowsort label-8418
SELECT SUM( ALL - 69 ) + 42 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-8418
SELECT SUM ( ALL - 69 ) + 42 AS col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT + CASE + 2 WHEN - 59 THEN NULL ELSE COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-8419
SELECT + CASE + 2 WHEN - 59 THEN NULL ELSE COUNT ( * ) END
----
1

query I rowsort
SELECT + ( + 21 ) * - 41 AS col2
----
-861

query I rowsort
SELECT - 13 * + 46 * - 86 + 6
----
51434

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8422
SELECT DISTINCT + 78 DIV + + COUNT( DISTINCT - 58 )
----
78

skipif mysql # not compatible
query I rowsort label-8422
SELECT DISTINCT + 78 / + + COUNT ( DISTINCT - 58 )
----
78

query I rowsort
SELECT 60 + 35 col0
----
95

query I rowsort
SELECT 58 + 32
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-8425
SELECT 73 * 67 + - NULLIF ( 36, - + 30 + 75 ) DIV - 88
----
4891

skipif mysql # not compatible
query I rowsort label-8425
SELECT 73 * 67 + - NULLIF ( 36, - + 30 + 75 ) / - 88
----
4891

query I rowsort
SELECT 64 + 35
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8427
SELECT DISTINCT - ( 26 ) DIV + 24
----
-1

skipif mysql # not compatible
query I rowsort label-8427
SELECT DISTINCT - ( 26 ) / + 24
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8428
SELECT + 53 * + - COALESCE ( + ( - 40 ), - 13 ) + MIN( - CAST( NULL AS SIGNED ) + 84 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8428
SELECT + 53 * + - COALESCE ( + ( - 40 ), - 13 ) + MIN ( - CAST ( NULL AS INTEGER ) + 84 )
----
NULL

query I rowsort
SELECT ALL - 83 * - 17
----
1411

query I rowsort
SELECT DISTINCT + 28 + - 93 AS col1
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-8431
SELECT 63 + - - 30 DIV - 82 + 49 AS col1
----
112

skipif mysql # not compatible
query I rowsort label-8431
SELECT 63 + - - 30 / - 82 + 49 AS col1
----
112

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

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

query I rowsort
SELECT DISTINCT - 65 + - - 88
----
23

query I rowsort
SELECT ALL + 11 + - - 74
----
85

query II rowsort
SELECT - 33 AS col0, 59
----
-33
59

query I rowsort
SELECT 72 * COALESCE ( 81, + 57 )
----
5832

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8437
SELECT NULLIF ( + - 39, - + 27 - - - 82 ) + - CAST( NULL AS SIGNED ) + + 63 * 50
----
NULL

skipif mysql # not compatible
query I rowsort label-8437
SELECT NULLIF ( + - 39, - + 27 - - - 82 ) + - CAST ( NULL AS INTEGER ) + + 63 * 50
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT ALL NULLIF ( - - SUM( DISTINCT - 91 ), + - 80 ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-8438
SELECT ALL NULLIF ( - - SUM ( DISTINCT - 91 ), + - 80 ) AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8439
SELECT + 92 + - 3 - 68 - - - ( + - 3 ) * COUNT( * ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-8439
SELECT + 92 + - 3 - 68 - - - ( + - 3 ) * COUNT ( * ) AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8440
SELECT ALL + 17 - CASE + 13 WHEN 78 / - 64 THEN + 48 / 63 END + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8440
SELECT ALL + 17 - CASE + 13 WHEN 78 / - 64 THEN + 48 / 63 END + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8441
SELECT - + COUNT( * ) * + COALESCE ( + - 46, + + 97, + 16 * 92 ) * NULLIF ( - 6, ( - 94 ) * 3 ) AS col0
----
-276

skipif mysql # not compatible
query I rowsort label-8441
SELECT - + COUNT ( * ) * + COALESCE ( + - 46, + + 97, + 16 * 92 ) * NULLIF ( - 6, ( - 94 ) * 3 ) AS col0
----
-276

query I rowsort
SELECT - 72 + + 13 col0
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8443
SELECT ALL - + 82 - ( 26 ) - + + SUM( DISTINCT - + CAST( - 3 AS SIGNED ) ) AS col0
----
-111

skipif mysql # not compatible
query I rowsort label-8443
SELECT ALL - + 82 - ( 26 ) - + + SUM ( DISTINCT - + CAST ( - 3 AS INTEGER ) ) AS col0
----
-111

query I rowsort
SELECT + 86 * - 83 * 64 + - 34 col1
----
-456866

onlyif mysql # aggregate syntax: 
query I rowsort label-8445
SELECT - COUNT( * ) - - + COUNT( * ) * 66 * - 88
----
-5809

skipif mysql # not compatible
query I rowsort label-8445
SELECT - COUNT ( * ) - - + COUNT ( * ) * 66 * - 88
----
-5809

onlyif mysql # aggregate syntax: 
query II rowsort label-8446
SELECT 44 AS col2, - ( - - 25 ) * + - 20 * + COUNT( * ) col2
----
44
500

skipif mysql # not compatible
query II rowsort label-8446
SELECT 44 AS col2, - ( - - 25 ) * + - 20 * + COUNT ( * ) col2
----
44
500

query I rowsort
SELECT - 43 - - 76 AS col1
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-8448
SELECT + - 96 DIV + - 61
----
1

skipif mysql # not compatible
query I rowsort label-8448
SELECT + - 96 / + - 61
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8449
SELECT + - 79 + - ( + 49 ) * - MAX( + - 69 ) AS col0
----
-3460

skipif mysql # not compatible
query I rowsort label-8449
SELECT + - 79 + - ( + 49 ) * - MAX ( + - 69 ) AS col0
----
-3460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8450
SELECT + - COUNT( * ) / - CAST( NULL AS SIGNED ) * + 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8450
SELECT + - COUNT ( * ) / - CAST ( NULL AS INTEGER ) * + 74 AS col1
----
NULL

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

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

query II rowsort
SELECT DISTINCT + + 53 AS col0, 44
----
53
44

query I rowsort
SELECT - + 23 * - - 69 * - 70 * - 67 - - + 22 * 54 AS col1
----
-7441842

query I rowsort
SELECT ALL 32 * - 47
----
-1504

onlyif mysql # aggregate syntax: 
query I rowsort label-8455
SELECT ALL COUNT( 38 ) * - 39
----
-39

skipif mysql # not compatible
query I rowsort label-8455
SELECT ALL COUNT ( 38 ) * - 39
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8456
SELECT + COALESCE ( 77, + 4, - + 57 + - + CAST( - 11 AS SIGNED ) ) DIV - COUNT( 29 )
----
-77

skipif mysql # not compatible
query I rowsort label-8456
SELECT + COALESCE ( 77, + 4, - + 57 + - + CAST ( - 11 AS INTEGER ) ) / - COUNT ( 29 )
----
-77

query I rowsort
SELECT CASE + - 85 WHEN 69 + 24 * 31 THEN NULL WHEN - - 93 + 16 THEN - 9 ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT DISTINCT + 99 col0, 21 AS col2
----
99
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8459
SELECT ALL 55 * - 54 + + 5 * + ( - NULLIF ( CAST( NULL AS SIGNED ), 24 ) ) * + 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8459
SELECT ALL 55 * - 54 + + 5 * + ( - NULLIF ( CAST ( NULL AS INTEGER ), 24 ) ) * + 99 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT + COUNT( * ) * + 54 * + 56
----
3024

skipif mysql # not compatible
query I rowsort label-8460
SELECT + COUNT ( * ) * + 54 * + 56
----
3024

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT CASE NULLIF ( 64, - ( + 61 ) * + 8 + + 21 ) WHEN 72 / + COUNT( * ) THEN + 33 WHEN - 82 THEN + 73 + 35 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8461
SELECT CASE NULLIF ( 64, - ( + 61 ) * + 8 + + 21 ) WHEN 72 / + COUNT ( * ) THEN + 33 WHEN - 82 THEN + 73 + 35 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8462
SELECT + CASE 55 WHEN 40 THEN + COALESCE ( + + COUNT( * ), + - 59 ) WHEN - 26 THEN 8 * 54 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8462
SELECT + CASE 55 WHEN 40 THEN + COALESCE ( + + COUNT ( * ), + - 59 ) WHEN - 26 THEN 8 * 54 END
----
NULL

query I rowsort
SELECT CASE - 15 WHEN COALESCE ( 97, ( 3 ) * 28 ) THEN NULL WHEN 37 THEN - 80 WHEN 73 + ( 97 ) THEN NULL END AS col1
----
NULL

query I rowsort
SELECT - 82 * 20
----
-1640

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT + 94 * SUM( - - 73 )
----
6862

skipif mysql # not compatible
query I rowsort label-8465
SELECT + 94 * SUM ( - - 73 )
----
6862

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

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

query I rowsort
SELECT DISTINCT 67 * 28 * + + 62 * 19 + + 41
----
2209969

onlyif mysql # aggregate syntax: 
query I rowsort label-8468
SELECT ALL - 52 * 66 * + - ( - 76 ) * + - COUNT( * )
----
260832

skipif mysql # not compatible
query I rowsort label-8468
SELECT ALL - 52 * 66 * + - ( - 76 ) * + - COUNT ( * )
----
260832

onlyif mysql # DIV for integer division: 
query I rowsort label-8469
SELECT + 46 DIV - 67 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8469
SELECT + 46 / - 67 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT ALL COUNT( * ) * + - 94 + 82 + + - 34 * + 46 AS col2
----
-1576

skipif mysql # not compatible
query I rowsort label-8470
SELECT ALL COUNT ( * ) * + - 94 + 82 + + - 34 * + 46 AS col2
----
-1576

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8471
SELECT + COALESCE ( 71, + + 77 * - + 79 - CAST( NULL AS SIGNED ) ) + 51 DIV + 34
----
72

skipif mysql # not compatible
query I rowsort label-8471
SELECT + COALESCE ( 71, + + 77 * - + 79 - CAST ( NULL AS INTEGER ) ) + 51 / + 34
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8472
SELECT ALL 5 * + COALESCE ( CAST( 84 AS SIGNED ), 22 ) AS col0
----
420

skipif mysql # not compatible
query I rowsort label-8472
SELECT ALL 5 * + COALESCE ( CAST ( 84 AS INTEGER ), 22 ) AS col0
----
420

query I rowsort
SELECT + 10 + - - 4 AS col2
----
14

query I rowsort
SELECT - 16 * + 77
----
-1232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8475
SELECT - 92 * ( ( - + COALESCE ( - - 55, - COUNT( * ), - 63 ) ) ) / + AVG ( DISTINCT 76 - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8475
SELECT - 92 * ( ( - + COALESCE ( - - 55, - COUNT ( * ), - 63 ) ) ) / + AVG ( DISTINCT 76 - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8476
SELECT ALL + CAST( - - COUNT( * ) AS SIGNED ) * - 95 * - ( 19 ) - ( COUNT( DISTINCT 84 ) ) AS col1
----
1804

skipif mysql # not compatible
query I rowsort label-8476
SELECT ALL + CAST ( - - COUNT ( * ) AS INTEGER ) * - 95 * - ( 19 ) - ( COUNT ( DISTINCT 84 ) ) AS col1
----
1804

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8477
SELECT - CAST( - 61 AS SIGNED ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-8477
SELECT - CAST ( - 61 AS INTEGER ) AS col0
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8478
SELECT COUNT( * ), + COALESCE ( + COALESCE ( - + 40, - 39 ), 50 * + COUNT( * ) ) * + 90 - 42 * + CAST( NULL AS SIGNED ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8478
SELECT COUNT ( * ), + COALESCE ( + COALESCE ( - + 40, - 39 ), 50 * + COUNT ( * ) ) * + 90 - 42 * + CAST ( NULL AS INTEGER ) AS col2
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8479
SELECT CAST( - NULLIF ( + - SUM( DISTINCT + + 19 ), + + 80 * COUNT( * ) + + 14 / + 17 + 61 * + 20 ) AS SIGNED ) * 77 - - 33 AS col2
----
1496

skipif mysql # not compatible
query I rowsort label-8479
SELECT CAST ( - NULLIF ( + - SUM ( DISTINCT + + 19 ), + + 80 * COUNT ( * ) + + 14 / + 17 + 61 * + 20 ) AS INTEGER ) * 77 - - 33 AS col2
----
1496

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8480
SELECT - CASE - + COUNT( * ) WHEN - - CASE 2 WHEN - - CASE - SUM( DISTINCT CAST( NULL AS SIGNED ) ) WHEN + 50 * 71 - 17 * + 74 THEN NULL ELSE + 25 + 42 * - COALESCE ( CAST( NULL AS SIGNED ) - + 16, 94, 78 + + 36 * - ( - 91 ) ) END / SUM( - 69 ) + - 9 THEN + 68 + 61 ELSE NULL END * 38 THEN NULL ELSE - COUNT( * ) END + MAX( - 95 + - 23 )
----
-117

skipif mysql # not compatible
query I rowsort label-8480
SELECT - CASE - + COUNT ( * ) WHEN - - CASE 2 WHEN - - CASE - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) WHEN + 50 * 71 - 17 * + 74 THEN NULL ELSE + 25 + 42 * - COALESCE ( CAST ( NULL AS INTEGER ) - + 16, 94, 78 + + 36 * - ( - 91 ) ) END / SUM ( - 69 ) + - 9 THEN + 68 + 61 ELSE NULL END * 38 THEN NULL ELSE - COUNT ( * ) END + MAX ( - 95 + - 23 )
----
-117

query I rowsort
SELECT + - 5 + 88 + + 45 * + - 78 col0
----
-3427

onlyif mysql # aggregate syntax: 
query II rowsort label-8482
SELECT ALL COUNT( * ), COALESCE ( - 41, + ( + 80 ) * - 68 + 31 + 44, 16 ) col0
----
1
-41

skipif mysql # not compatible
query II rowsort label-8482
SELECT ALL COUNT ( * ), COALESCE ( - 41, + ( + 80 ) * - 68 + 31 + 44, 16 ) col0
----
1
-41

query I rowsort
SELECT - + 30 + + ( - 16 ) * + + 53 + - + COALESCE ( + - 15, 27, 12 ) AS col1
----
-863

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8485
SELECT 2 AS col0, + 86 + + + COALESCE ( + MIN( DISTINCT 91 ), - + ( 44 ) + 23 * 62, - 15 )
----
2
177

skipif mysql # not compatible
query II rowsort label-8485
SELECT 2 AS col0, + 86 + + + COALESCE ( + MIN ( DISTINCT 91 ), - + ( 44 ) + 23 * 62, - 15 )
----
2
177

query II rowsort
SELECT - 94 AS col0, 8 AS col0
----
-94
8

query I rowsort
SELECT + 20 * - 34 * + 18 AS col2
----
-12240

onlyif mysql # aggregate syntax: 
query I rowsort label-8488
SELECT DISTINCT - + 4 * - MIN( ( + 91 ) )
----
364

skipif mysql # not compatible
query I rowsort label-8488
SELECT DISTINCT - + 4 * - MIN ( ( + 91 ) )
----
364

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8490
SELECT - 91 + - - MIN( + + 46 ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-8490
SELECT - 91 + - - MIN ( + + 46 ) AS col1
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8491
SELECT - COUNT( * ) DIV + - 72 + COUNT( * ) DIV + 37 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8491
SELECT - COUNT ( * ) / + - 72 + COUNT ( * ) / + 37 AS col1
----
0

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

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

query II rowsort
SELECT + 68 AS col2, + 80 + 85 + 52
----
68
217

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8494
SELECT ALL 62 DIV - 68 + - + ( - 84 ) + + CAST( + - 17 AS SIGNED ) col1
----
67

skipif mysql # not compatible
query I rowsort label-8494
SELECT ALL 62 / - 68 + - + ( - 84 ) + + CAST ( + - 17 AS INTEGER ) col1
----
67

query I rowsort
SELECT + 22 * + 90 * - 53
----
-104940

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8497
SELECT - COALESCE ( + - COUNT( ALL + 96 ), + COALESCE ( + 7, + + 23 * 26 ) + - 44 ) + 75 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-8497
SELECT - COALESCE ( + - COUNT ( ALL + 96 ), + COALESCE ( + 7, + + 23 * 26 ) + - 44 ) + 75 AS col2
----
76

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8499
SELECT ALL 26 DIV - ( + - 57 ) + + 95 * + + 1 - - 85
----
180

skipif mysql # not compatible
query I rowsort label-8499
SELECT ALL 26 / - ( + - 57 ) + + 95 * + + 1 - - 85
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-8500
SELECT + MIN( ALL + + 70 ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-8500
SELECT + MIN ( ALL + + 70 ) AS col1
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8501
SELECT DISTINCT - 19 / - 17 + - CASE - - 95 WHEN - + 73 THEN 14 * + - CAST( NULL AS SIGNED ) + NULLIF ( 73, - 62 ) WHEN MAX( 91 ) - + 80 THEN 1 END - + ( + COUNT( * ) ) / COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8501
SELECT DISTINCT - 19 / - 17 + - CASE - - 95 WHEN - + 73 THEN 14 * + - CAST ( NULL AS INTEGER ) + NULLIF ( 73, - 62 ) WHEN MAX ( 91 ) - + 80 THEN 1 END - + ( + COUNT ( * ) ) / COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT + COALESCE ( + - 45, + 99, - 17 + ( - 78 ) ) AS col2
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8503
SELECT DISTINCT 94 DIV + - 92 + - + 83 * + COUNT( * ) * - COUNT( * ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-8503
SELECT DISTINCT 94 / + - 92 + - + 83 * + COUNT ( * ) * - COUNT ( * ) AS col2
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-8504
SELECT ALL 63 DIV + 17 + 58
----
61

skipif mysql # not compatible
query I rowsort label-8504
SELECT ALL 63 / + 17 + 58
----
61

query I rowsort
SELECT + COALESCE ( + + ( 54 ), + 63 ) + - 44 AS col2
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8506
SELECT ALL + 48 DIV + - 14 + + COUNT( * ) + - + 91 + - + 17 + - + ( 35 )
----
-145

skipif mysql # not compatible
query I rowsort label-8506
SELECT ALL + 48 / + - 14 + + COUNT ( * ) + - + 91 + - + 17 + - + ( 35 )
----
-145

query I rowsort
SELECT + 40 + + 23 AS col1
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8508
SELECT - 6 * - 59 * - 94 + + 60 + CASE - - 29 WHEN - + 29 THEN ( MAX( ALL 42 ) ) * - CASE - ( - 88 ) / NULLIF ( COALESCE ( 55, 28 - + COUNT( DISTINCT 70 ), 59 + + 89 ), + 76 - 45 ) WHEN 90 THEN CAST( 33 AS SIGNED ) END + - 62 * + 50 ELSE CASE 85 WHEN + 13 * 45 THEN - 66 ELSE + 61 + 76 * - SUM( 1 + + 6 ) END END * 79
----
-70425

skipif mysql # not compatible
query I rowsort label-8508
SELECT - 6 * - 59 * - 94 + + 60 + CASE - - 29 WHEN - + 29 THEN ( MAX ( ALL 42 ) ) * - CASE - ( - 88 ) / NULLIF ( COALESCE ( 55, 28 - + COUNT ( DISTINCT 70 ), 59 + + 89 ), + 76 - 45 ) WHEN 90 THEN CAST ( 33 AS INTEGER ) END + - 62 * + 50 ELSE CASE 85 WHEN + 13 * 45 THEN - 66 ELSE + 61 + 76 * - SUM ( 1 + + 6 ) END END * 79
----
-70425

onlyif mysql # aggregate syntax: 
query I rowsort label-8509
SELECT 88 * SUM( DISTINCT + + 81 ) AS col2
----
7128

skipif mysql # not compatible
query I rowsort label-8509
SELECT 88 * SUM ( DISTINCT + + 81 ) AS col2
----
7128

query I rowsort
SELECT DISTINCT 28 * + 64
----
1792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8511
SELECT ALL 63 - + NULLIF ( CAST( + COUNT( * ) AS SIGNED ), + 13 ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-8511
SELECT ALL 63 - + NULLIF ( CAST ( + COUNT ( * ) AS INTEGER ), + 13 ) AS col1
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8512
SELECT DISTINCT - + CASE + 23 WHEN + 82 * + + 92 THEN - - COALESCE ( + 99, + + 63 ) WHEN + 37 THEN 24 ELSE 28 END * NULLIF ( COALESCE ( CASE COUNT( * ) WHEN - 36 - + 65 THEN + 43 END, 70 - CAST( NULL AS SIGNED ) * + 17 ), + 10 * 97 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8512
SELECT DISTINCT - + CASE + 23 WHEN + 82 * + + 92 THEN - - COALESCE ( + 99, + + 63 ) WHEN + 37 THEN 24 ELSE 28 END * NULLIF ( COALESCE ( CASE COUNT ( * ) WHEN - 36 - + 65 THEN + 43 END, 70 - CAST ( NULL AS INTEGER ) * + 17 ), + 10 * 97 ) AS col1
----
NULL

query I rowsort
SELECT ALL + ( + - 21 ) - + 19 + 90 AS col2
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-8514
SELECT + 59 * 7 col0, 15 + - + COUNT( * )
----
413
14

skipif mysql # not compatible
query II rowsort label-8514
SELECT + 59 * 7 col0, 15 + - + COUNT ( * )
----
413
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8515
SELECT ( - MAX( DISTINCT + + 96 ) ) DIV + 21 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-8515
SELECT ( - MAX ( DISTINCT + + 96 ) ) / + 21 AS col0
----
-4

query I rowsort
SELECT DISTINCT 47 * 78 col0
----
3666

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8517
SELECT COALESCE ( 84, + - COALESCE ( + COUNT( * ), 80 * + 32 * + 41 DIV + 98 ), - SUM( 75 ) - 48 ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-8517
SELECT COALESCE ( 84, + - COALESCE ( + COUNT ( * ), 80 * + 32 * + 41 / + 98 ), - SUM ( 75 ) - 48 ) AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8518
SELECT ALL 8 + COUNT( * ) col1
----
9

skipif mysql # not compatible
query I rowsort label-8518
SELECT ALL 8 + COUNT ( * ) col1
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-8519
SELECT ALL - COUNT( ALL + 61 ), - 29 - COUNT( DISTINCT - 15 ) + + - COUNT( * ) AS col1
----
-1
-31

skipif mysql # not compatible
query II rowsort label-8519
SELECT ALL - COUNT ( ALL + 61 ), - 29 - COUNT ( DISTINCT - 15 ) + + - COUNT ( * ) AS col1
----
-1
-31

query I rowsort
SELECT COALESCE ( 87, + 80 ) * - + 68 col0
----
-5916

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8521
SELECT ALL - 13 * + CAST( - + MIN( 50 ) AS SIGNED ) col0
----
650

skipif mysql # not compatible
query I rowsort label-8521
SELECT ALL - 13 * + CAST ( - + MIN ( 50 ) AS INTEGER ) col0
----
650

query I rowsort
SELECT 66 + 5 + + 11 AS col2
----
82

query I rowsort
SELECT DISTINCT + 91 + + - 3 + 96 * - - 69
----
6712

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8524
SELECT - CASE - + COALESCE ( - 18, + 44 ) WHEN 55 THEN + + CAST( - 58 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8524
SELECT - CASE - + COALESCE ( - 18, + 44 ) WHEN 55 THEN + + CAST ( - 58 AS INTEGER ) END
----
NULL

query II rowsort
SELECT 14 - + 69 AS col0, 59
----
-55
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8526
SELECT DISTINCT - - ( + COALESCE ( - 89, - 54, COUNT( * ) DIV + 66 + - 20 - + 99, - 40 ) ) + 70 * 77 AS col0
----
5301

skipif mysql # not compatible
query I rowsort label-8526
SELECT DISTINCT - - ( + COALESCE ( - 89, - 54, COUNT ( * ) / + 66 + - 20 - + 99, - 40 ) ) + 70 * 77 AS col0
----
5301

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

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

query II rowsort
SELECT 35 + 29 AS col2, - COALESCE ( 79, + CASE + 27 WHEN - - 12 THEN + 82 END )
----
64
-79

query I rowsort
SELECT DISTINCT - 69 * + 59 * - 75
----
305325

query I rowsort
SELECT ALL + 51 * - + 19
----
-969

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8531
SELECT DISTINCT - 97 + - - 49 + 75 + + 2 DIV - MIN( ALL 62 ) * 36 * - 25 * 44 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-8531
SELECT DISTINCT - 97 + - - 49 + 75 + + 2 / - MIN ( ALL 62 ) * 36 * - 25 * 44 AS col2
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8532
SELECT 61 / - CASE 46 WHEN + - COALESCE ( 79, - - 85 ) THEN NULL WHEN - + CAST( 0 AS SIGNED ) THEN + COUNT( * ) * SUM( - 80 ) - - COUNT( * ) WHEN - 54 * 23 THEN - 26 ELSE NULL END * + ( 5 * + NULLIF ( + ( + COUNT( * ) ), - 50 + - 75 ) ) - + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-8532
SELECT 61 / - CASE 46 WHEN + - COALESCE ( 79, - - 85 ) THEN NULL WHEN - + CAST ( 0 AS INTEGER ) THEN + COUNT ( * ) * SUM ( - 80 ) - - COUNT ( * ) WHEN - 54 * 23 THEN - 26 ELSE NULL END * + ( 5 * + NULLIF ( + ( + COUNT ( * ) ), - 50 + - 75 ) ) - + 99
----
NULL

query II rowsort
SELECT + 7 AS col2, + 13 AS col2
----
7
13

query I rowsort
SELECT ALL 59 - - 73 AS col0
----
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8535
SELECT ALL + 52 * CAST( NULL AS SIGNED ) * + 80 * 37
----
NULL

skipif mysql # not compatible
query I rowsort label-8535
SELECT ALL + 52 * CAST ( NULL AS INTEGER ) * + 80 * 37
----
NULL

query I rowsort
SELECT ALL - 80 - 79 AS col1
----
-159

onlyif mysql # aggregate syntax: 
query II rowsort label-8537
SELECT + 72 col0, CASE + - 63 WHEN + COUNT( * ) * + + 23 THEN + + 59 ELSE + ( 99 ) END + 61 * 68
----
72
4247

skipif mysql # not compatible
query II rowsort label-8537
SELECT + 72 col0, CASE + - 63 WHEN + COUNT ( * ) * + + 23 THEN + + 59 ELSE + ( 99 ) END + 61 * 68
----
72
4247

query II rowsort
SELECT 38, + 66 AS col2
----
38
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8539
SELECT ALL - 27 AS col0, CAST( NULL AS SIGNED ) * - 22 * - 34
----
-27
NULL

skipif mysql # not compatible
query II rowsort label-8539
SELECT ALL - 27 AS col0, CAST ( NULL AS INTEGER ) * - 22 * - 34
----
-27
NULL

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

skipif mysql # not compatible
query I rowsort label-8540
SELECT COUNT ( * ) / + 51 * 29 AS col2
----
0

query I rowsort
SELECT ALL ( 77 ) * 99 - ( - + 12 )
----
7635

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8542
SELECT ALL + 17 DIV - MAX( DISTINCT - + 2 ) AS col1, + 88 + - + 95 AS col1
----
8
-7

skipif mysql # not compatible
query II rowsort label-8542
SELECT ALL + 17 / - MAX ( DISTINCT - + 2 ) AS col1, + 88 + - + 95 AS col1
----
8
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8543
SELECT 23 * + ( - CASE + 26 WHEN + COUNT( * ) THEN 87 END ) * 96
----
NULL

skipif mysql # not compatible
query I rowsort label-8543
SELECT 23 * + ( - CASE + 26 WHEN + COUNT ( * ) THEN 87 END ) * 96
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8544
SELECT CAST( NULL AS SIGNED ) * + 32 * 99 * - 93 - + AVG ( DISTINCT - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8544
SELECT CAST ( NULL AS INTEGER ) * + 32 * 99 * - 93 - + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL 13 * + NULLIF ( 28, + 46 + + 68 ) AS col0
----
364

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT - 96 + + 19 + - + 42 / + ( + 25 ) - + CASE 29 WHEN + + 73 THEN COUNT( * ) END * - SUM( + 16 ) / - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-8546
SELECT - 96 + + 19 + - + 42 / + ( + 25 ) - + CASE 29 WHEN + + 73 THEN COUNT ( * ) END * - SUM ( + 16 ) / - 21
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8547
SELECT 32 col2, - 32 - - - MIN( + 86 ) AS col2
----
32
-118

skipif mysql # not compatible
query II rowsort label-8547
SELECT 32 col2, - 32 - - - MIN ( + 86 ) AS col2
----
32
-118

query I rowsort
SELECT ALL 35 * + - 70 AS col1
----
-2450

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8550
SELECT 14 * - - CAST( + NULLIF ( - COUNT( * ), - 52 * - + 20 * - 41 + - - ( - 97 ) ) AS SIGNED ) + 22 col0
----
8

skipif mysql # not compatible
query I rowsort label-8550
SELECT 14 * - - CAST ( + NULLIF ( - COUNT ( * ), - 52 * - + 20 * - 41 + - - ( - 97 ) ) AS INTEGER ) + 22 col0
----
8

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

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

query I rowsort
SELECT - 23 + ( - ( + 30 ) ) AS col1
----
-53

query I rowsort
SELECT ALL - CASE 77 WHEN + - 2 THEN NULL ELSE 92 * - 85 * - 66 END + - 42 AS col2
----
-516162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8554
SELECT ALL + 42 + - NULLIF ( - ( + CAST( COUNT( * ) AS SIGNED ) ), - 14 / - ( - + 88 ) ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-8554
SELECT ALL + 42 + - NULLIF ( - ( + CAST ( COUNT ( * ) AS INTEGER ) ), - 14 / - ( - + 88 ) ) AS col2
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-8555
SELECT DISTINCT 74 AS col0, + COUNT( * ) AS col1
----
74
1

skipif mysql # not compatible
query II rowsort label-8555
SELECT DISTINCT 74 AS col0, + COUNT ( * ) AS col1
----
74
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8556
SELECT CAST( - COUNT( * ) AS SIGNED ) + - + 45
----
-46

skipif mysql # not compatible
query I rowsort label-8556
SELECT CAST ( - COUNT ( * ) AS INTEGER ) + - + 45
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-8557
SELECT ALL + COUNT( 3 ) * + 5 AS col2, 44 * + MIN( - 52 ) AS col1
----
5
-2288

skipif mysql # not compatible
query II rowsort label-8557
SELECT ALL + COUNT ( 3 ) * + 5 AS col2, 44 * + MIN ( - 52 ) AS col1
----
5
-2288

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8558
SELECT + CASE + COUNT( * ) WHEN AVG ( DISTINCT - 34 ) THEN + 52 + + 12 - + ( - NULLIF ( + ( - 76 ), + 18 * - 79 + + 85 ) ) ELSE 69 END + + 25 DIV + 28
----
69

skipif mysql # not compatible
query I rowsort label-8558
SELECT + CASE + COUNT ( * ) WHEN AVG ( DISTINCT - 34 ) THEN + 52 + + 12 - + ( - NULLIF ( + ( - 76 ), + 18 * - 79 + + 85 ) ) ELSE 69 END + + 25 / + 28
----
69

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

query I rowsort
SELECT 29 + 87
----
116

onlyif mysql # aggregate syntax: 
query II rowsort label-8561
SELECT - 95 + - - ( COUNT( * ) ) AS col1, 33
----
-94
33

skipif mysql # not compatible
query II rowsort label-8561
SELECT - 95 + - - ( COUNT ( * ) ) AS col1, 33
----
-94
33

query I rowsort
SELECT ALL 65 * - 24 col0
----
-1560

query II rowsort
SELECT 56 AS col2, 54
----
56
54

query I rowsort
SELECT - CASE - 88 WHEN - 58 * 36 + 71 + - + 79 + - 73 + + 84 * - AVG ( 18 + 54 ) THEN + 57 END AS col0
----
NULL

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

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

query I rowsort
SELECT DISTINCT 22 + - + 53 AS col2
----
-31

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8567
SELECT DISTINCT NULLIF ( - CAST( NULL AS DECIMAL ), ( 2 ) ) + - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8567
SELECT DISTINCT NULLIF ( - CAST ( NULL AS REAL ), ( 2 ) ) + - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8568
SELECT 76 + - NULLIF ( - + 80, - - CAST( NULL AS SIGNED ) + - - 39 * - - 60 * 69 ) - - 29
----
185

skipif mysql # not compatible
query I rowsort label-8568
SELECT 76 + - NULLIF ( - + 80, - - CAST ( NULL AS INTEGER ) + - - 39 * - - 60 * 69 ) - - 29
----
185

query I rowsort
SELECT ALL 36 * + ( - 35 ) col2
----
-1260

query I rowsort
SELECT DISTINCT 94 * 24 AS col2
----
2256

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8572
SELECT 92 * COUNT( * ) * 88
----
8096

skipif mysql # not compatible
query I rowsort label-8572
SELECT 92 * COUNT ( * ) * 88
----
8096

query I rowsort
SELECT + NULLIF ( + 75, - 48 + ( NULLIF ( + - 67, - - 30 ) ) * 33 ) + - 86 * - 21
----
1881

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8574
SELECT DISTINCT 73 * + AVG ( DISTINCT 56 ) - - - MIN( 28 ) + CAST( NULL AS SIGNED ) * - COALESCE ( - 42, - 66 + ( + 52 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8574
SELECT DISTINCT 73 * + AVG ( DISTINCT 56 ) - - - MIN ( 28 ) + CAST ( NULL AS INTEGER ) * - COALESCE ( - 42, - 66 + ( + 52 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8575
SELECT CASE - - 28 WHEN + 81 * - - MAX( ALL + 24 ) THEN NULLIF ( 86, 74 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8575
SELECT CASE - - 28 WHEN + 81 * - - MAX ( ALL + 24 ) THEN NULLIF ( 86, 74 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8576
SELECT - ( - + COUNT( * ) ) * - MIN( ALL + - 32 ) + + 15 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-8576
SELECT - ( - + COUNT ( * ) ) * - MIN ( ALL + - 32 ) + + 15 AS col1
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8577
SELECT ALL + COALESCE ( - COALESCE ( + - SUM( ALL 17 ), - 5 * 10 + + - 85 ), 44 + + + 89 + 14, - CASE 12 WHEN + 96 * 21 THEN NULL WHEN SUM( + ( - 28 ) ) THEN NULL WHEN - 31 / - COALESCE ( 94, 36 * - COALESCE ( + ( ( 61 ) ), - COUNT( * ) ) ) THEN - 25 / 29 WHEN COUNT( * ) THEN 29 END + - 58, + 86 ) * + SUM( DISTINCT - CAST( NULL AS SIGNED ) + + 5 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8577
SELECT ALL + COALESCE ( - COALESCE ( + - SUM ( ALL 17 ), - 5 * 10 + + - 85 ), 44 + + + 89 + 14, - CASE 12 WHEN + 96 * 21 THEN NULL WHEN SUM ( + ( - 28 ) ) THEN NULL WHEN - 31 / - COALESCE ( 94, 36 * - COALESCE ( + ( ( 61 ) ), - COUNT ( * ) ) ) THEN - 25 / 29 WHEN COUNT ( * ) THEN 29 END + - 58, + 86 ) * + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) + + 5 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8578
SELECT + ( - 23 ) * COUNT( * ) + - 10 + + 27 + 78 * - 76 AS col1
----
-5934

skipif mysql # not compatible
query I rowsort label-8578
SELECT + ( - 23 ) * COUNT ( * ) + - 10 + + 27 + 78 * - 76 AS col1
----
-5934

onlyif mysql # DIV for integer division: 
query I rowsort label-8579
SELECT 21 DIV 59 + + 79
----
79

skipif mysql # not compatible
query I rowsort label-8579
SELECT 21 / 59 + + 79
----
79

query II rowsort
SELECT - 34 + - 93 AS col2, 80 + + - 72
----
-127
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8581
SELECT - MAX( CAST( NULL AS SIGNED ) ) / 83
----
NULL

skipif mysql # not compatible
query I rowsort label-8581
SELECT - MAX ( CAST ( NULL AS INTEGER ) ) / 83
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8582
SELECT - 31 * - 63 + + 12 + 70 + + CAST( - - ( + NULLIF ( + COUNT( * ), - 59 ) ) AS SIGNED ) AS col0
----
2036

skipif mysql # not compatible
query I rowsort label-8582
SELECT - 31 * - 63 + + 12 + 70 + + CAST ( - - ( + NULLIF ( + COUNT ( * ), - 59 ) ) AS INTEGER ) AS col0
----
2036

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT + 43 * 57 - - 8 * - - 23 + - COUNT( * ) + - - 73 AS col0
----
2707

skipif mysql # not compatible
query I rowsort label-8583
SELECT + 43 * 57 - - 8 * - - 23 + - COUNT ( * ) + - - 73 AS col0
----
2707

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8584
SELECT CAST( CASE + 33 WHEN + 17 + ( + 42 ) - - 31 THEN NULL ELSE + - 43 END AS SIGNED ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-8584
SELECT CAST ( CASE + 33 WHEN + 17 + ( + 42 ) - - 31 THEN NULL ELSE + - 43 END AS INTEGER ) AS col2
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-8585
SELECT - - 68 DIV + + ( + 66 )
----
1

skipif mysql # not compatible
query I rowsort label-8585
SELECT - - 68 / + + ( + 66 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8586
SELECT ALL + 72 * - 21 + COUNT( * ) + + - 42 AS col2, 79
----
-1553
79

skipif mysql # not compatible
query II rowsort label-8586
SELECT ALL + 72 * - 21 + COUNT ( * ) + + - 42 AS col2, 79
----
-1553
79

query I rowsort
SELECT - + 52 * 52 AS col1
----
-2704

onlyif mysql # aggregate syntax: 
query I rowsort label-8588
SELECT ALL + - CASE 68 WHEN + 81 + - ( + COALESCE ( - 39, - COUNT( * ), - + MAX( + - 70 ) ) ) - 26 / 54 THEN NULL WHEN 74 THEN 25 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8588
SELECT ALL + - CASE 68 WHEN + 81 + - ( + COALESCE ( - 39, - COUNT ( * ), - + MAX ( + - 70 ) ) ) - 26 / 54 THEN NULL WHEN 74 THEN 25 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT DISTINCT - COUNT( * ) + SUM( DISTINCT - - 44 ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-8589
SELECT DISTINCT - COUNT ( * ) + SUM ( DISTINCT - - 44 ) AS col0
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-8590
SELECT DISTINCT - 13 DIV - + 11 - + - ( - 10 ) + + + 53 + 32 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-8590
SELECT DISTINCT - 13 / - + 11 - + - ( - 10 ) + + + 53 + 32 AS col1
----
76

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

skipif mysql # not compatible
query I rowsort label-8591
SELECT DISTINCT + 55 + - COUNT ( * ) AS col2
----
54

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

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

query I rowsort
SELECT DISTINCT - 63 + + 89 col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8594
SELECT - COUNT( 55 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8594
SELECT - COUNT ( 55 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8595
SELECT DISTINCT 54 * + - MAX( DISTINCT + 60 ) AS col1
----
-3240

skipif mysql # not compatible
query I rowsort label-8595
SELECT DISTINCT 54 * + - MAX ( DISTINCT + 60 ) AS col1
----
-3240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8596
SELECT ALL + ( + 68 ) - COUNT( * ) + - NULLIF ( 52, + + 23 ) DIV - 17 + - - ( - + 6 ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-8596
SELECT ALL + ( + 68 ) - COUNT ( * ) + - NULLIF ( 52, + + 23 ) / - 17 + - - ( - + 6 ) AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8597
SELECT DISTINCT + 11 * ( - - MIN( - 15 ) ) * + 83 + - + 13 AS col0
----
-13708

skipif mysql # not compatible
query I rowsort label-8597
SELECT DISTINCT + 11 * ( - - MIN ( - 15 ) ) * + 83 + - + 13 AS col0
----
-13708

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8599
SELECT - CASE + + COUNT( * ) WHEN + 52 * + ( + MIN( ALL + 51 ) ) + CAST( NULL AS SIGNED ) * + NULLIF ( + NULLIF ( + 15, + CAST( NULL AS SIGNED ) * 17 ), + 66 ) / + 28 THEN - 67 * + CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8599
SELECT - CASE + + COUNT ( * ) WHEN + 52 * + ( + MIN ( ALL + 51 ) ) + CAST ( NULL AS INTEGER ) * + NULLIF ( + NULLIF ( + 15, + CAST ( NULL AS INTEGER ) * 17 ), + 66 ) / + 28 THEN - 67 * + CAST ( NULL AS INTEGER ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8600
SELECT + 94 + + 79 + - + 50 * - COUNT( * ) / + - 34 + COUNT( * ) + + MAX( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8600
SELECT + 94 + + 79 + - + 50 * - COUNT ( * ) / + - 34 + COUNT ( * ) + + MAX ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8601
SELECT + 0 * + + 37 * - 30, + 72 * CAST( NULL AS SIGNED ) * 30 AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8601
SELECT + 0 * + + 37 * - 30, + 72 * CAST ( NULL AS INTEGER ) * 30 AS col1
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8602
SELECT - COALESCE ( ( + COUNT( * ) ), 14 * 95 )
----
-1

skipif mysql # not compatible
query I rowsort label-8602
SELECT - COALESCE ( ( + COUNT ( * ) ), 14 * 95 )
----
-1

query I rowsort
SELECT + 17 + - 32 * + 13
----
-399

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8604
SELECT - 94 + + SUM( DISTINCT - 81 ) / - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8604
SELECT - 94 + + SUM ( DISTINCT - 81 ) / - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8608
SELECT DISTINCT 5 * + 93 * MAX( + 16 ) AS col1
----
7440

skipif mysql # not compatible
query I rowsort label-8608
SELECT DISTINCT 5 * + 93 * MAX ( + 16 ) AS col1
----
7440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8609
SELECT 35 DIV COUNT( * ) - - + 89 AS col1
----
124

skipif mysql # not compatible
query I rowsort label-8609
SELECT 35 / COUNT ( * ) - - + 89 AS col1
----
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8610
SELECT DISTINCT MIN( ALL - - 36 ) * + 89 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8610
SELECT DISTINCT MIN ( ALL - - 36 ) * + 89 * - CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8612
SELECT DISTINCT + 29 / + + CAST( 17 AS SIGNED ) * MIN( DISTINCT - 61 ) + - 20 + + CAST( NULL AS SIGNED ) + - 35 + - 48 + + MAX( ALL 28 ) - - 80 * - 17 / - 57 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8612
SELECT DISTINCT + 29 / + + CAST ( 17 AS INTEGER ) * MIN ( DISTINCT - 61 ) + - 20 + + CAST ( NULL AS INTEGER ) + - 35 + - 48 + + MAX ( ALL 28 ) - - 80 * - 17 / - 57 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8613
SELECT 35 * + 28 * - CASE SUM( 30 ) WHEN 98 * - 84 THEN - CAST( NULL AS SIGNED ) * + + 48 END * - NULLIF ( 17, MAX( ALL 91 ) + - 77 * SUM( ALL - 0 + 8 * 84 ) ) + - 58 + 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8613
SELECT 35 * + 28 * - CASE SUM ( 30 ) WHEN 98 * - 84 THEN - CAST ( NULL AS INTEGER ) * + + 48 END * - NULLIF ( 17, MAX ( ALL 91 ) + - 77 * SUM ( ALL - 0 + 8 * 84 ) ) + - 58 + 50 AS col0
----
NULL

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

query I rowsort
SELECT - 4 * + + 68
----
-272

query I rowsort
SELECT + 74 * + 54 * - - 6 AS col2
----
23976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8617
SELECT DISTINCT - - 48 * - MIN( ALL - 84 ) * + 39 + + + CAST( NULL AS SIGNED ) * - + 11 + + ( 69 ) / 3 * + ( + 69 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8617
SELECT DISTINCT - - 48 * - MIN ( ALL - 84 ) * + 39 + + + CAST ( NULL AS INTEGER ) * - + 11 + + ( 69 ) / 3 * + ( + 69 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8618
SELECT CASE - - 78 WHEN - 22 THEN + 43 + 70 * + 31 WHEN + - 53 + 21 - + ( + + ( ( - CAST( NULL AS SIGNED ) ) ) ) - - 33 THEN NULL WHEN 76 THEN 98 - - ( + MIN( ALL - 25 ) ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8618
SELECT CASE - - 78 WHEN - 22 THEN + 43 + 70 * + 31 WHEN + - 53 + 21 - + ( + + ( ( - CAST ( NULL AS INTEGER ) ) ) ) - - 33 THEN NULL WHEN 76 THEN 98 - - ( + MIN ( ALL - 25 ) ) ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8619
SELECT - 1 - + 79 DIV - 56 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8619
SELECT - 1 - + 79 / - 56 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8620
SELECT DISTINCT - 84 * - COUNT( * ) + + 69 / - 7 + - - 24 * CAST( NULL AS DECIMAL ) AS col2, - 20 col2
----
NULL
-20

skipif mysql # not compatible
query II rowsort label-8620
SELECT DISTINCT - 84 * - COUNT ( * ) + + 69 / - 7 + - - 24 * CAST ( NULL AS REAL ) AS col2, - 20 col2
----
NULL
-20

query I rowsort
SELECT ALL - - 85 * + 62 + + 14 + + ( 98 ) * + 11 * 13 AS col1
----
19298

query I rowsort
SELECT - + 31 * - + 70 + + - 56 * 56 * + + 61 + + - 67 * 38
----
-191672

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT - + 45 + - - MAX( + 16 )
----
-29

skipif mysql # not compatible
query I rowsort label-8623
SELECT - + 45 + - - MAX ( + 16 )
----
-29

query I rowsort
SELECT + 11 * + + 21 * 53 - 93 AS col0
----
12150

query I rowsort
SELECT ALL - 34 * - 59 * - 8 AS col2
----
-16048

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8627
SELECT DISTINCT - - 0 * + 80 * 39 - - 20 + - - 52 + + - CAST( NULL AS SIGNED ) + - AVG ( ALL + + ( - 45 ) ) * - 36 * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8627
SELECT DISTINCT - - 0 * + 80 * 39 - - 20 + - - 52 + + - CAST ( NULL AS INTEGER ) + - AVG ( ALL + + ( - 45 ) ) * - 36 * COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT - ( + + 96 ) + 81
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-8629
SELECT DISTINCT + 64, - SUM( DISTINCT 58 ) AS col2
----
64
-58

skipif mysql # not compatible
query II rowsort label-8629
SELECT DISTINCT + 64, - SUM ( DISTINCT 58 ) AS col2
----
64
-58

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8631
SELECT DISTINCT - - 11 DIV - 16 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8631
SELECT DISTINCT - - 11 / - 16 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT ALL MAX( - 15 ) col2
----
-15

skipif mysql # not compatible
query I rowsort label-8632
SELECT ALL MAX ( - 15 ) col2
----
-15

query I rowsort
SELECT - + ( - 7 ) * + 84 AS col1
----
588

query II rowsort
SELECT 25, + 76 AS col1
----
25
76

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8636
SELECT ALL - 93 * + - 86 AS col0, - COUNT( * ) AS col2
----
7998
-1

skipif mysql # not compatible
query II rowsort label-8636
SELECT ALL - 93 * + - 86 AS col0, - COUNT ( * ) AS col2
----
7998
-1

query I rowsort
SELECT 73 * 2 * + - 75 AS col1
----
-10950

onlyif mysql # DIV for integer division: 
query II rowsort label-8638
SELECT - 0 AS col2, 51 + - 56 + + 99 DIV - + 24
----
0
-9

skipif mysql # not compatible
query II rowsort label-8638
SELECT - 0 AS col2, 51 + - 56 + + 99 / - + 24
----
0
-9

query I rowsort
SELECT 11 + - ( 5 ) - - - 61 * - CASE - 68 WHEN + + 85 / - 41 THEN + 23 END - + 81
----
NULL

query I rowsort
SELECT 82 * + - 6 AS col0
----
-492

query I rowsort
SELECT ALL - 30 * - ( + 89 )
----
2670

query I rowsort
SELECT 8 * + 65
----
520

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

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

query I rowsort
SELECT DISTINCT 87 + 62
----
149

query I rowsort
SELECT 88 + - 58
----
30

query II rowsort
SELECT - 23 AS col1, 18 + - + ( - + 76 ) * 98
----
-23
7466

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

skipif mysql # not compatible
query I rowsort label-8647
SELECT 27 / + 68
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8648
SELECT 58 DIV + 43 + - 96 AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-8648
SELECT 58 / + 43 + - 96 AS col0
----
-95

query I rowsort
SELECT 22 * 26 - 24 * 0 AS col1
----
572

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8650
SELECT - 14 DIV 35 * - + 83 - - + 33 * + + 49 * 79 * + 40 * COUNT( * ) * - 56 AS col1
----
-286144320

skipif mysql # not compatible
query I rowsort label-8650
SELECT - 14 / 35 * - + 83 - - + 33 * + + 49 * 79 * + 40 * COUNT ( * ) * - 56 AS col1
----
-286144320

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT COUNT( * ) + + + 56
----
57

skipif mysql # not compatible
query I rowsort label-8651
SELECT COUNT ( * ) + + + 56
----
57

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

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

query I rowsort
SELECT 23 + 68
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8654
SELECT ALL - 62 AS col1, CAST( + 74 AS SIGNED ) AS col2
----
-62
74

skipif mysql # not compatible
query II rowsort label-8654
SELECT ALL - 62 AS col1, CAST ( + 74 AS INTEGER ) AS col2
----
-62
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8655
SELECT ALL 59 * MIN( ALL 44 )
----
2596

skipif mysql # not compatible
query I rowsort label-8655
SELECT ALL 59 * MIN ( ALL 44 )
----
2596

query II rowsort
SELECT 88 AS col1, 73 AS col2
----
88
73

onlyif mysql # aggregate syntax: 
query II rowsort label-8657
SELECT 58 * + CASE - COUNT( * ) WHEN + 88 THEN NULL WHEN - 76 THEN + 80 * - 29 END, COALESCE ( + + 43, - 11 ) AS col1
----
NULL
43

skipif mysql # not compatible
query II rowsort label-8657
SELECT 58 * + CASE - COUNT ( * ) WHEN + 88 THEN NULL WHEN - 76 THEN + 80 * - 29 END, COALESCE ( + + 43, - 11 ) AS col1
----
NULL
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8658
SELECT + SUM( DISTINCT + - COALESCE ( + - 7, + CAST( NULL AS SIGNED ) ) ) DIV + SUM( 89 ) + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8658
SELECT + SUM ( DISTINCT + - COALESCE ( + - 7, + CAST ( NULL AS INTEGER ) ) ) / + SUM ( 89 ) + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8659
SELECT - 34 + - - MAX( 90 ) * 64 DIV 74 * + 99 AS col0
----
7589

skipif mysql # not compatible
query I rowsort label-8659
SELECT - 34 + - - MAX ( 90 ) * 64 / 74 * + 99 AS col0
----
7589

query II rowsort
SELECT ALL - 76, + 49 + - 87 AS col2
----
-76
-38

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

query II rowsort
SELECT 0 AS col0, - 70
----
0
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8663
SELECT + CASE - - 33 WHEN - - 74 * 27 THEN - 88 END * ( 91 ) * 70 + + - 16 + + 0 + CAST( 48 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8663
SELECT + CASE - - 33 WHEN - - 74 * 27 THEN - 88 END * ( 91 ) * 70 + + - 16 + + 0 + CAST ( 48 AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8664
SELECT 25 + + - COUNT( COALESCE ( + 9, + 4, - 53 ) ) - + + CASE NULLIF ( CAST( NULL AS SIGNED ), - 59 ) WHEN COUNT( * ) THEN 30 * - 11 END / 47
----
NULL

skipif mysql # not compatible
query I rowsort label-8664
SELECT 25 + + - COUNT ( COALESCE ( + 9, + 4, - 53 ) ) - + + CASE NULLIF ( CAST ( NULL AS INTEGER ), - 59 ) WHEN COUNT ( * ) THEN 30 * - 11 END / 47
----
NULL

query I rowsort
SELECT ALL + + 88 - - + 76 col1
----
164

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8666
SELECT ALL - CASE - CASE + ( + 89 ) WHEN - 10 * 32 / - 90 THEN + 64 + + CAST( NULL AS DECIMAL ) END WHEN - COALESCE ( - + 90, - COALESCE ( 39, + COALESCE ( + 37, 62 / - 13, + 70 + + ( 6 ), ( + 28 ) / + 10 ), 13, 86 + + ( 85 ) ) - + 71 ) THEN NULL WHEN 52 THEN + 56 WHEN ( 41 ) - + 67 * + 89 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8666
SELECT ALL - CASE - CASE + ( + 89 ) WHEN - 10 * 32 / - 90 THEN + 64 + + CAST ( NULL AS REAL ) END WHEN - COALESCE ( - + 90, - COALESCE ( 39, + COALESCE ( + 37, 62 / - 13, + 70 + + ( 6 ), ( + 28 ) / + 10 ), 13, 86 + + ( 85 ) ) - + 71 ) THEN NULL WHEN 52 THEN + 56 WHEN ( 41 ) - + 67 * + 89 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT + 14 * - 28 - 70 * - - COUNT( - 77 ) + - 80 col1
----
-542

skipif mysql # not compatible
query I rowsort label-8667
SELECT + 14 * - 28 - 70 * - - COUNT ( - 77 ) + - 80 col1
----
-542

query I rowsort
SELECT ALL - 22 * + + 99 AS col1
----
-2178

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

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

query I rowsort
SELECT ALL - - 84 * - 34
----
-2856

query I rowsort
SELECT 82 * + 19 AS col1
----
1558

query I rowsort
SELECT 18 * - 8 AS col0
----
-144

query I rowsort
SELECT 1 - 47 + + 10 + + + 42
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8674
SELECT ALL + SUM( - 7 ) DIV 72 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8674
SELECT ALL + SUM ( - 7 ) / 72 AS col2
----
0

query I rowsort
SELECT DISTINCT + 89 + + 54
----
143

query I rowsort
SELECT 17 * + 89 AS col2
----
1513

onlyif mysql # aggregate syntax: 
query I rowsort label-8677
SELECT ALL + CASE WHEN NULLIF ( + - 58, 82 ) NOT BETWEEN + + SUM( - - ( + 13 ) ) AND + 21 + 28 THEN - 28 * + 16 ELSE - 24 + 50 END + ( - 59 + 50 )
----
-457

skipif mysql # not compatible
query I rowsort label-8677
SELECT ALL + CASE WHEN NULLIF ( + - 58, 82 ) NOT BETWEEN + + SUM ( - - ( + 13 ) ) AND + 21 + 28 THEN - 28 * + 16 ELSE - 24 + 50 END + ( - 59 + 50 )
----
-457

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8678
SELECT 98 DIV 46 AS col1, COUNT( DISTINCT - 3 ) + + 30 * 76 AS col1
----
2
2281

skipif mysql # not compatible
query II rowsort label-8678
SELECT 98 / 46 AS col1, COUNT ( DISTINCT - 3 ) + + 30 * 76 AS col1
----
2
2281

query I rowsort
SELECT 7 * + 70
----
490

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8680
SELECT 43 + - 99 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8680
SELECT 43 + - 99 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8681
SELECT ALL CAST( + 44 AS SIGNED ) + - 90 + + COUNT( * ) * - COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-8681
SELECT ALL CAST ( + 44 AS INTEGER ) + - 90 + + COUNT ( * ) * - COUNT ( * )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8682
SELECT ALL COUNT( * ) + + - 71 + + 34 + + 56 col0
----
20

skipif mysql # not compatible
query I rowsort label-8682
SELECT ALL COUNT ( * ) + + - 71 + + 34 + + 56 col0
----
20

query I rowsort
SELECT DISTINCT + 45 + - - 61 - - - 36
----
70

query I rowsort
SELECT DISTINCT - ( - 18 ) * 75 * - - 6 AS col2
----
8100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8685
SELECT ALL + + 29 * 82 + + COALESCE ( - MAX( DISTINCT + 34 ), + 61 + - COALESCE ( + CASE - 7 WHEN + 9 * NULLIF ( - COALESCE ( + 36, - 44 ), - 98 ) * 35 THEN + 60 + + 14 WHEN - 39 + 8 * 78 THEN 63 ELSE NULL END, ( 10 ), - ( + COUNT( * ) ), 39 + COUNT( * ) ) ) + + COALESCE ( ( 77 ), 82, - SUM( + CAST( + 8 AS SIGNED ) ) - MIN( DISTINCT - 40 ) * 35 ) * 5
----
2729

skipif mysql # not compatible
query I rowsort label-8685
SELECT ALL + + 29 * 82 + + COALESCE ( - MAX ( DISTINCT + 34 ), + 61 + - COALESCE ( + CASE - 7 WHEN + 9 * NULLIF ( - COALESCE ( + 36, - 44 ), - 98 ) * 35 THEN + 60 + + 14 WHEN - 39 + 8 * 78 THEN 63 ELSE NULL END, ( 10 ), - ( + COUNT ( * ) ), 39 + COUNT ( * ) ) ) + + COALESCE ( ( 77 ), 82, - SUM ( + CAST ( + 8 AS INTEGER ) ) - MIN ( DISTINCT - 40 ) * 35 ) * 5
----
2729

query I rowsort
SELECT 11 - 46
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-8687
SELECT + SUM( + 17 ) col1, - 73 + - 69 * + 27 AS col0
----
17
-1936

skipif mysql # not compatible
query II rowsort label-8687
SELECT + SUM ( + 17 ) col1, - 73 + - 69 * + 27 AS col0
----
17
-1936

onlyif mysql # aggregate syntax: 
query II rowsort label-8688
SELECT - 23 * 37 AS col0, - COUNT( * )
----
-851
-1

skipif mysql # not compatible
query II rowsort label-8688
SELECT - 23 * 37 AS col0, - COUNT ( * )
----
-851
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8689
SELECT + - SUM( DISTINCT - - 83 ), + ( COUNT( * ) ) AS col1
----
-83
1

skipif mysql # not compatible
query II rowsort label-8689
SELECT + - SUM ( DISTINCT - - 83 ), + ( COUNT ( * ) ) AS col1
----
-83
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8690
SELECT ( + + 58 ) * 25 - + + 34 * - + CASE 1 WHEN - 50 / - + CAST( + 26 AS SIGNED ) + + - ( - + COALESCE ( + 59, + 61 ) ) THEN + COUNT( ALL COALESCE ( - 42, + 19, + 47 ) ) END * COUNT( * ) + COUNT( * ) * NULLIF ( - 69 / 45, 75 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8690
SELECT ( + + 58 ) * 25 - + + 34 * - + CASE 1 WHEN - 50 / - + CAST ( + 26 AS INTEGER ) + + - ( - + COALESCE ( + 59, + 61 ) ) THEN + COUNT ( ALL COALESCE ( - 42, + 19, + 47 ) ) END * COUNT ( * ) + COUNT ( * ) * NULLIF ( - 69 / 45, 75 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 77 * + 4 * + ( - 47 ) * - 46
----
665896

onlyif mysql # aggregate syntax: 
query I rowsort label-8692
SELECT DISTINCT + 24 * - MIN( - 96 )
----
2304

skipif mysql # not compatible
query I rowsort label-8692
SELECT DISTINCT + 24 * - MIN ( - 96 )
----
2304

query I rowsort
SELECT ( - - 69 ) * - + 13
----
-897

query I rowsort
SELECT + 65 + + + 79 + 57
----
201

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8695
SELECT + CAST( 41 AS SIGNED ) DIV 82
----
0

skipif mysql # not compatible
query I rowsort label-8695
SELECT + CAST ( 41 AS INTEGER ) / 82
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8696
SELECT - 95 DIV + + 62
----
-1

skipif mysql # not compatible
query I rowsort label-8696
SELECT - 95 / + + 62
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8697
SELECT ALL COUNT( * ) + + 11 * - - 47 AS col0, + 29
----
518
29

skipif mysql # not compatible
query II rowsort label-8697
SELECT ALL COUNT ( * ) + + 11 * - - 47 AS col0, + 29
----
518
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8698
SELECT ALL + 76 + - CAST( + + 96 AS SIGNED ) * + + 25
----
-2324

skipif mysql # not compatible
query I rowsort label-8698
SELECT ALL + 76 + - CAST ( + + 96 AS INTEGER ) * + + 25
----
-2324

query II rowsort
SELECT - 17 + + ( - 41 ), 13 AS col1
----
-58
13

query I rowsort
SELECT ALL 23 + - 3
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-8701
SELECT - 94 + - + 81 DIV 18 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-8701
SELECT - 94 + - + 81 / 18 AS col2
----
-98

query I rowsort
SELECT + 81 * - 17
----
-1377

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

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

query I rowsort
SELECT - 51 * - ( + COALESCE ( + 43, - - 55 ) ) col0
----
2193

query I rowsort
SELECT - 69 + - - 75 + - 63 + + 89
----
32

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8707
SELECT - COUNT( * ) DIV + COALESCE ( + 48, - 67 )
----
0

skipif mysql # not compatible
query I rowsort label-8707
SELECT - COUNT ( * ) / + COALESCE ( + 48, - 67 )
----
0

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8710
SELECT - 33 + - NULLIF ( + 21, ( + ( - + 79 ) ) * - 40 + - 18 + + 25 * COUNT( * ) ) + - 9 * 78 - + + 67 * - CAST( 3 AS SIGNED )
----
-555

skipif mysql # not compatible
query I rowsort label-8710
SELECT - 33 + - NULLIF ( + 21, ( + ( - + 79 ) ) * - 40 + - 18 + + 25 * COUNT ( * ) ) + - 9 * 78 - + + 67 * - CAST ( 3 AS INTEGER )
----
-555

onlyif mysql # aggregate syntax: 
query II rowsort label-8711
SELECT + 92 * 45 - COUNT( * ) AS col2, + 31 * + 74 AS col1
----
4139
2294

skipif mysql # not compatible
query II rowsort label-8711
SELECT + 92 * 45 - COUNT ( * ) AS col2, + 31 * + 74 AS col1
----
4139
2294

onlyif mysql # aggregate syntax: 
query I rowsort label-8712
SELECT - ( 41 ) * + MAX( ALL 50 )
----
-2050

skipif mysql # not compatible
query I rowsort label-8712
SELECT - ( 41 ) * + MAX ( ALL 50 )
----
-2050

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8713
SELECT 52 DIV 60 + CASE - 74 WHEN + - 39 + COALESCE ( + - 19, - + 21 + 86 DIV - 37 ) DIV CAST( NULL AS SIGNED ) * 53 THEN NULL WHEN + + 55 THEN + 71 ELSE - 66 END
----
-66

skipif mysql # not compatible
query I rowsort label-8713
SELECT 52 / 60 + CASE - 74 WHEN + - 39 + COALESCE ( + - 19, - + 21 + 86 / - 37 ) / CAST ( NULL AS INTEGER ) * 53 THEN NULL WHEN + + 55 THEN + 71 ELSE - 66 END
----
-66

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8716
SELECT ALL + - 53 AS col0, - ( - ( 63 ) ) + + 0 * + 28 + + CAST( - + 90 AS SIGNED ) * 29 AS col2
----
-53
-2547

skipif mysql # not compatible
query II rowsort label-8716
SELECT ALL + - 53 AS col0, - ( - ( 63 ) ) + + 0 * + 28 + + CAST ( - + 90 AS INTEGER ) * 29 AS col2
----
-53
-2547

onlyif mysql # aggregate syntax: 
query I rowsort label-8717
SELECT ALL + + 17 * + 17 * + + COUNT( * ) * 64
----
18496

skipif mysql # not compatible
query I rowsort label-8717
SELECT ALL + + 17 * + 17 * + + COUNT ( * ) * 64
----
18496

onlyif mysql # aggregate syntax: 
query II rowsort label-8718
SELECT DISTINCT + 16 col0, COUNT( * )
----
16
1

skipif mysql # not compatible
query II rowsort label-8718
SELECT DISTINCT + 16 col0, COUNT ( * )
----
16
1

query II rowsort
SELECT + 56 AS col0, - 15
----
56
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8720
SELECT - CASE - 7 WHEN - - 88 THEN + CAST( + 41 AS SIGNED ) ELSE 67 END
----
-67

skipif mysql # not compatible
query I rowsort label-8720
SELECT - CASE - 7 WHEN - - 88 THEN + CAST ( + 41 AS INTEGER ) ELSE 67 END
----
-67

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

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

query II rowsort
SELECT + + 21 AS col0, ( - 38 )
----
21
-38

query I rowsort
SELECT - - 74 * - 90 * + 66 - 3 + + + 42 AS col1
----
-439521

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8724
SELECT ALL + 60 * - - CAST( NULL AS SIGNED ) + + 19 * + - 90 * - + 87 + - NULLIF ( - - COALESCE ( - + ( + 97 ), + SUM( ( + 44 ) ) + - 8 - 1 * 4 ), 92 + - 48 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8724
SELECT ALL + 60 * - - CAST ( NULL AS INTEGER ) + + 19 * + - 90 * - + 87 + - NULLIF ( - - COALESCE ( - + ( + 97 ), + SUM ( ( + 44 ) ) + - 8 - 1 * 4 ), 92 + - 48 ) AS col1
----
NULL

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

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

query I rowsort
SELECT ALL + NULLIF ( COALESCE ( 39, + 44, 14 + + 0 ), + - 56 )
----
39

query I rowsort
SELECT + 18 * 67 AS col0
----
1206

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT - COALESCE ( - CASE - 63 WHEN - 8 THEN NULL ELSE - 51 * + ( - COUNT( ALL - - 61 ) ) END, - 43 ) - - 1 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-8728
SELECT - COALESCE ( - CASE - 63 WHEN - 8 THEN NULL ELSE - 51 * + ( - COUNT ( ALL - - 61 ) ) END, - 43 ) - - 1 AS col2
----
52

query I rowsort
SELECT + 88 * + 12 * + 62 AS col1
----
65472

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8730
SELECT + 58 * CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8730
SELECT + 58 * CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8731
SELECT SUM( COALESCE ( + 69, - + CAST( NULL AS SIGNED ) * - 75 DIV + 52 + + 26 * + + 7, 43 ) ) AS col2, NULLIF ( - 88, 28 DIV + COUNT( * ) + 8 ) * - COUNT( * ) AS col0
----
69
88

skipif mysql # not compatible
query II rowsort label-8731
SELECT SUM ( COALESCE ( + 69, - + CAST ( NULL AS INTEGER ) * - 75 / + 52 + + 26 * + + 7, 43 ) ) AS col2, NULLIF ( - 88, 28 / + COUNT ( * ) + 8 ) * - COUNT ( * ) AS col0
----
69
88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8732
SELECT ALL 40 + + 17 AS col1, CAST( NULL AS SIGNED ) AS col0
----
57
NULL

skipif mysql # not compatible
query II rowsort label-8732
SELECT ALL 40 + + 17 AS col1, CAST ( NULL AS INTEGER ) AS col0
----
57
NULL

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

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

query I rowsort
SELECT DISTINCT + 27 - - 94
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8735
SELECT + 92 * + CAST( 98 AS SIGNED )
----
9016

skipif mysql # not compatible
query I rowsort label-8735
SELECT + 92 * + CAST ( 98 AS INTEGER )
----
9016

query I rowsort
SELECT DISTINCT NULLIF ( - 4, - + 17 * + 11 + + 50 )
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8737
SELECT - - NULLIF ( - NULLIF ( - COUNT( * ), + 76 + - COUNT( DISTINCT + 40 ) ), - CAST( NULL AS SIGNED ) * - - 28 )
----
1

skipif mysql # not compatible
query I rowsort label-8737
SELECT - - NULLIF ( - NULLIF ( - COUNT ( * ), + 76 + - COUNT ( DISTINCT + 40 ) ), - CAST ( NULL AS INTEGER ) * - - 28 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8738
SELECT - + 23 - - 17 - ( - - 13 ) + - COUNT( * ) * 73
----
-92

skipif mysql # not compatible
query I rowsort label-8738
SELECT - + 23 - - 17 - ( - - 13 ) + - COUNT ( * ) * 73
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8739
SELECT + - COUNT( * ) * + + 92 * + + 97 + 9 + - 88
----
-9003

skipif mysql # not compatible
query I rowsort label-8739
SELECT + - COUNT ( * ) * + + 92 * + + 97 + 9 + - 88
----
-9003

query I rowsort
SELECT - 81 * 54 AS col2
----
-4374

query I rowsort
SELECT 43 - + ( 78 ) AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8742
SELECT + COALESCE ( + + 43, + COUNT( 78 ), + 7, 75 * - 79 )
----
43

skipif mysql # not compatible
query I rowsort label-8742
SELECT + COALESCE ( + + 43, + COUNT ( 78 ), + 7, 75 * - 79 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT ( ( - - 69 ) ) * COUNT( * ) + - + MAX( DISTINCT - 42 )
----
111

skipif mysql # not compatible
query I rowsort label-8743
SELECT ( ( - - 69 ) ) * COUNT ( * ) + - + MAX ( DISTINCT - 42 )
----
111

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

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

query I rowsort
SELECT ALL - - 27 * - 32 AS col2
----
-864

query I rowsort
SELECT ALL - - 10 + - 7
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT DISTINCT + - COUNT( * ) + - 24 + - - NULLIF ( COUNT( * ), - - 75 ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-8747
SELECT DISTINCT + - COUNT ( * ) + - 24 + - - NULLIF ( COUNT ( * ), - - 75 ) AS col0
----
-24

query I rowsort
SELECT - NULLIF ( 25, + NULLIF ( 87, - 63 ) )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8749
SELECT DISTINCT - MIN( - 61 ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-8749
SELECT DISTINCT - MIN ( - 61 ) AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8750
SELECT ALL + 76 + + NULLIF ( COUNT( * ), + COUNT( * ) + 14 + + - 53 )
----
77

skipif mysql # not compatible
query I rowsort label-8750
SELECT ALL + 76 + + NULLIF ( COUNT ( * ), + COUNT ( * ) + 14 + + - 53 )
----
77

query I rowsort
SELECT 91 + + + 62 AS col2
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-8752
SELECT ALL - CASE MAX( + 56 ) WHEN - + 43 * + 20 / + 83 * + ( + + 85 ) THEN - - 74 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8752
SELECT ALL - CASE MAX ( + 56 ) WHEN - + 43 * + 20 / + 83 * + ( + + 85 ) THEN - - 74 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT ALL 70 + - - COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-8753
SELECT ALL 70 + - - COUNT ( * )
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8754
SELECT 17 * - - ( - 86 ) * - CAST( + 99 AS SIGNED ) AS col1
----
144738

skipif mysql # not compatible
query I rowsort label-8754
SELECT 17 * - - ( - 86 ) * - CAST ( + 99 AS INTEGER ) AS col1
----
144738

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8755
SELECT 20 + - ( - CASE - - 89 WHEN - - CASE + 10 WHEN + 81 - 68 THEN + CAST( - 21 AS SIGNED ) - 65 END THEN NULL WHEN + 31 * - MIN( ALL - + 25 ) / 72 + 43 + - 22 THEN - COUNT( * ) + 58 WHEN 66 * 48 + - 78 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8755
SELECT 20 + - ( - CASE - - 89 WHEN - - CASE + 10 WHEN + 81 - 68 THEN + CAST ( - 21 AS INTEGER ) - 65 END THEN NULL WHEN + 31 * - MIN ( ALL - + 25 ) / 72 + 43 + - 22 THEN - COUNT ( * ) + 58 WHEN 66 * 48 + - 78 THEN NULL END )
----
NULL

query II rowsort
SELECT ALL 66 AS col1, 46
----
66
46

query I rowsort
SELECT ALL 22 * - 20
----
-440

query I rowsort
SELECT 36 + 87
----
123

query II rowsort
SELECT ALL 77 AS col2, - 99 * + + ( 10 ) AS col0
----
77
-990

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

skipif mysql # not compatible
query I rowsort label-8760
SELECT 26 / + 22
----
1

query I rowsort
SELECT 61 * - - 80 * + - 99 AS col0
----
-483120

query II rowsort
SELECT 50 AS col0, 98 AS col2
----
50
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8763
SELECT CAST( - - 67 AS SIGNED ) * 42 + - 94
----
2720

skipif mysql # not compatible
query I rowsort label-8763
SELECT CAST ( - - 67 AS INTEGER ) * 42 + - 94
----
2720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8764
SELECT COUNT( DISTINCT 52 ) + - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8764
SELECT COUNT ( DISTINCT 52 ) + - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8765
SELECT ALL 59 / + 46 + + - NULLIF ( - 44, + ( + 57 ) ) * + + CASE + 98 WHEN 86 THEN + COUNT( * ) ELSE NULL END / + 0 + + + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-8765
SELECT ALL 59 / + 46 + + - NULLIF ( - 44, + ( + 57 ) ) * + + CASE + 98 WHEN 86 THEN + COUNT ( * ) ELSE NULL END / + 0 + + + 89
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8766
SELECT 56 DIV + 60 * - 93
----
0

skipif mysql # not compatible
query I rowsort label-8766
SELECT 56 / + 60 * - 93
----
0

query I rowsort
SELECT + 51 + + - 7 col2
----
44

query I rowsort
SELECT - COALESCE ( + - 11, - CASE 27 WHEN - 85 * - 86 THEN + 99 END )
----
11

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

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

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

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

query I rowsort
SELECT 58 + - 40 + + + 7
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8772
SELECT - 1 - - + ( + COALESCE ( + COUNT( * ), + 9 * - 39 + - + 48 ) ) + + 20 * 72 - - COUNT( ALL + 67 ) AS col1
----
1441

skipif mysql # not compatible
query I rowsort label-8772
SELECT - 1 - - + ( + COALESCE ( + COUNT ( * ), + 9 * - 39 + - + 48 ) ) + + 20 * 72 - - COUNT ( ALL + 67 ) AS col1
----
1441

query I rowsort
SELECT 4 * - 40 AS col1
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-8774
SELECT DISTINCT - 12 + - - ( + - 95 ) + + + 77 - - MIN( - 95 )
----
-125

skipif mysql # not compatible
query I rowsort label-8774
SELECT DISTINCT - 12 + - - ( + - 95 ) + + + 77 - - MIN ( - 95 )
----
-125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8775
SELECT ALL + SUM( ALL - 39 ) + - CAST( 57 AS SIGNED ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-8775
SELECT ALL + SUM ( ALL - 39 ) + - CAST ( 57 AS INTEGER ) AS col0
----
-96

query I rowsort
SELECT + + 37 * - 24 + - 1 - 64 + - 46
----
-999

query I rowsort
SELECT ALL - + 74 + - 29
----
-103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8778
SELECT 74 * - NULLIF ( 24, 60 ) * ( 61 ) + - - 98 + - - 27 * + + 23 + + 49 * CASE - 76 WHEN - SUM( DISTINCT - + 87 ) * + MIN( DISTINCT + 5 ) THEN - 51 * 17 WHEN CAST( NULL AS SIGNED ) - AVG ( CAST( NULL AS SIGNED ) + ( + ( + 67 ) ) ) THEN 76 + - 25 END * + 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8778
SELECT 74 * - NULLIF ( 24, 60 ) * ( 61 ) + - - 98 + - - 27 * + + 23 + + 49 * CASE - 76 WHEN - SUM ( DISTINCT - + 87 ) * + MIN ( DISTINCT + 5 ) THEN - 51 * 17 WHEN CAST ( NULL AS INTEGER ) - AVG ( CAST ( NULL AS INTEGER ) + ( + ( + 67 ) ) ) THEN 76 + - 25 END * + 46 AS col1
----
NULL

query II rowsort
SELECT DISTINCT - - 60 AS col2, + 1
----
60
1

query I rowsort
SELECT ALL - 44 + + + CASE + 81 WHEN 70 THEN - 50 * + COALESCE ( 81, 19 - - 45 ) + 22 END
----
NULL

query I rowsort
SELECT 27 * 44 AS col1
----
1188

onlyif mysql # aggregate syntax: 
query I rowsort label-8782
SELECT - 13 * + - 71 + + COUNT( * ) col1
----
924

skipif mysql # not compatible
query I rowsort label-8782
SELECT - 13 * + - 71 + + COUNT ( * ) col1
----
924

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

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

query I rowsort
SELECT 17 * + 62 AS col2
----
1054

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT 26 * - MAX( + 26 ) / CASE + 40 WHEN + COUNT( * ) - - COUNT( ALL + - 98 ) THEN - 16 WHEN + + 56 * + 40 + 38 THEN NULL END + - + 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8785
SELECT 26 * - MAX ( + 26 ) / CASE + 40 WHEN + COUNT ( * ) - - COUNT ( ALL + - 98 ) THEN - 16 WHEN + + 56 * + 40 + 38 THEN NULL END + - + 69 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 27 - - 47 AS col1
----
20

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

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

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

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

query I rowsort
SELECT 52 * - 11 * 98 AS col0
----
-56056

onlyif mysql # aggregate syntax: 
query I rowsort label-8790
SELECT 26 - 83 * + 11 * - - MIN( DISTINCT - - 12 )
----
-10930

skipif mysql # not compatible
query I rowsort label-8790
SELECT 26 - 83 * + 11 * - - MIN ( DISTINCT - - 12 )
----
-10930

query II rowsort
SELECT - 28 AS col0, - 98
----
-28
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8792
SELECT 77 + ( - SUM( 6 ) ) * - 2 * + + CAST( 10 AS SIGNED ) AS col0
----
197

skipif mysql # not compatible
query I rowsort label-8792
SELECT 77 + ( - SUM ( 6 ) ) * - 2 * + + CAST ( 10 AS INTEGER ) AS col0
----
197

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT - COUNT( DISTINCT + 93 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8793
SELECT - COUNT ( DISTINCT + 93 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8794
SELECT DISTINCT 15 * + - MIN( ALL + 46 )
----
-690

skipif mysql # not compatible
query I rowsort label-8794
SELECT DISTINCT 15 * + - MIN ( ALL + 46 )
----
-690

onlyif mysql # aggregate syntax: 
query II rowsort label-8795
SELECT ALL 87, + COUNT( * ) * - - 13 AS col0
----
87
13

skipif mysql # not compatible
query II rowsort label-8795
SELECT ALL 87, + COUNT ( * ) * - - 13 AS col0
----
87
13

query I rowsort
SELECT ALL 57 * - 81
----
-4617

query I rowsort
SELECT 1 + - - 4
----
5

query II rowsort
SELECT + 40 - - + 77 AS col0, ( - 63 ) - - 51 AS col0
----
117
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8799
SELECT DISTINCT - 57 * + 69 + COUNT( * ) col0
----
-3932

skipif mysql # not compatible
query I rowsort label-8799
SELECT DISTINCT - 57 * + 69 + COUNT ( * ) col0
----
-3932

query II rowsort
SELECT ALL + + 98 + - 96 AS col0, 31 AS col2
----
2
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8801
SELECT + - ( - + MAX( + 47 ) ) DIV - ( - - 45 )
----
-1

skipif mysql # not compatible
query I rowsort label-8801
SELECT + - ( - + MAX ( + 47 ) ) / - ( - - 45 )
----
-1

query I rowsort
SELECT ALL + 24 + + 11 AS col0
----
35

query I rowsort
SELECT - - 60 + + - 53
----
7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8805
SELECT + ( - 86 ) + - - ( COUNT( 40 ) ) * + 85 * + 34 * - 24 col2
----
-69446

skipif mysql # not compatible
query I rowsort label-8805
SELECT + ( - 86 ) + - - ( COUNT ( 40 ) ) * + 85 * + 34 * - 24 col2
----
-69446

onlyif mysql # aggregate syntax: 
query I rowsort label-8806
SELECT DISTINCT + 33 + - + COUNT( * ) + ( - + 2 ) + 67 * - 65 * + - 71 - - 0
----
309235

skipif mysql # not compatible
query I rowsort label-8806
SELECT DISTINCT + 33 + - + COUNT ( * ) + ( - + 2 ) + 67 * - 65 * + - 71 - - 0
----
309235

query I rowsort
SELECT + 99 + - 90
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-8808
SELECT - 74, + 65 * + 2 * 16 * - 41 + - 94 DIV - 69 AS col0
----
-74
-85279

skipif mysql # not compatible
query II rowsort label-8808
SELECT - 74, + 65 * + 2 * 16 * - 41 + - 94 / - 69 AS col0
----
-74
-85279

query II rowsort
SELECT - - 50 AS col2, + 25 * 45 * - 77
----
50
-86625

query I rowsort
SELECT + 56 * 60 * + + 17 AS col1
----
57120

query I rowsort
SELECT ALL + + NULLIF ( 33, 10 )
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-8812
SELECT + ( MIN( DISTINCT + 86 ) ) - NULLIF ( - 15, + 41 ) col1, 23 * + 22 AS col2
----
101
506

skipif mysql # not compatible
query II rowsort label-8812
SELECT + ( MIN ( DISTINCT + 86 ) ) - NULLIF ( - 15, + 41 ) col1, 23 * + 22 AS col2
----
101
506

query II rowsort
SELECT DISTINCT + 62 AS col0, 48
----
62
48

query I rowsort
SELECT - 88 * - 98
----
8624

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT ALL MIN( DISTINCT + - 57 ) * 45
----
-2565

skipif mysql # not compatible
query I rowsort label-8815
SELECT ALL MIN ( DISTINCT + - 57 ) * 45
----
-2565

query I rowsort
SELECT COALESCE ( 73, - 47 ) col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8817
SELECT ALL MIN( DISTINCT - - 48 ) * + 9 AS col1
----
432

skipif mysql # not compatible
query I rowsort label-8817
SELECT ALL MIN ( DISTINCT - - 48 ) * + 9 AS col1
----
432

query I rowsort
SELECT + 29 - 80 - - 62
----
11

query II rowsort
SELECT + 17 / - - CASE - 41 WHEN + - 95 THEN NULL WHEN 64 THEN + 82 - - 36 END, 23 + - 24 AS col1
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8820
SELECT - COUNT( * ) * MIN( + - 21 )
----
21

skipif mysql # not compatible
query I rowsort label-8820
SELECT - COUNT ( * ) * MIN ( + - 21 )
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8821
SELECT + MIN( ALL + 92 ) DIV - 42 + + + 66 - + COUNT( * ) * + COUNT( * ) DIV 46 + - 67 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-8821
SELECT + MIN ( ALL + 92 ) / - 42 + + + 66 - + COUNT ( * ) * + COUNT ( * ) / 46 + - 67 AS col2
----
-3

query I rowsort
SELECT 87 * - ( - 60 ) + - 67 AS col2
----
5153

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8823
SELECT DISTINCT ( + - COUNT( * ) ) DIV + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8823
SELECT DISTINCT ( + - COUNT ( * ) ) / + COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8824
SELECT DISTINCT 95 * + 93 + - - COUNT( * )
----
8836

skipif mysql # not compatible
query I rowsort label-8824
SELECT DISTINCT 95 * + 93 + - - COUNT ( * )
----
8836

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT DISTINCT COUNT( * ) + + 5 + + 26 * - 35
----
-904

skipif mysql # not compatible
query I rowsort label-8825
SELECT DISTINCT COUNT ( * ) + + 5 + + 26 * - 35
----
-904

query I rowsort
SELECT - 33 * + 67 AS col0
----
-2211

query I rowsort
SELECT DISTINCT - 28 + 22 * + 8 * - 46 * + CASE + + 13 WHEN - 57 THEN NULL WHEN - 1 THEN - 11 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8828
SELECT ALL + 70 + + COUNT( DISTINCT - 45 ) + - 43 - - 25 * - + 14 * + CASE + + 55 WHEN - + 77 THEN NULL WHEN + + 89 * CASE - - COUNT( * ) WHEN + 2 * + - CASE - 45 WHEN - CAST( NULL AS DECIMAL ) THEN NULL WHEN CAST( - 8 AS SIGNED ) THEN 87 END * - 88 + 88 THEN NULL ELSE - 46 + - COUNT( * ) END / + COUNT( * ) - 2 * + 17 THEN 67 WHEN + 94 * - COUNT( * ) THEN 54 + - 70 ELSE NULL END * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8828
SELECT ALL + 70 + + COUNT ( DISTINCT - 45 ) + - 43 - - 25 * - + 14 * + CASE + + 55 WHEN - + 77 THEN NULL WHEN + + 89 * CASE - - COUNT ( * ) WHEN + 2 * + - CASE - 45 WHEN - CAST ( NULL AS REAL ) THEN NULL WHEN CAST ( - 8 AS INTEGER ) THEN 87 END * - 88 + 88 THEN NULL ELSE - 46 + - COUNT ( * ) END / + COUNT ( * ) - 2 * + 17 THEN 67 WHEN + 94 * - COUNT ( * ) THEN 54 + - 70 ELSE NULL END * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - + 98 + + 87 + CASE 50 WHEN - - 4 * - 43 - - 35 THEN ( 85 ) * 84 END * + 24 + 19
----
NULL

query I rowsort
SELECT - - ( - - 0 ) AS col2
----
0

query I rowsort
SELECT ALL - 87 + + 70 * + 38
----
2573

onlyif mysql # aggregate syntax: 
query I rowsort label-8832
SELECT DISTINCT + + 66 + NULLIF ( - 1, MIN( ALL 17 ) )
----
65

skipif mysql # not compatible
query I rowsort label-8832
SELECT DISTINCT + + 66 + NULLIF ( - 1, MIN ( ALL 17 ) )
----
65

query I rowsort
SELECT DISTINCT 75 * + 25
----
1875

query I rowsort
SELECT - 63 + - 77 * - - 29 AS col0
----
-2296

query I rowsort
SELECT ALL + + 91 - - 85
----
176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8836
SELECT - CAST( NULL AS SIGNED ) + + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-8836
SELECT - CAST ( NULL AS INTEGER ) + + 93
----
NULL

query I rowsort
SELECT DISTINCT CASE 97 WHEN - + ( - 78 ) + - 46 + - + 60 THEN NULL ELSE - + 32 * + 94 END
----
-3008

onlyif mysql # aggregate syntax: 
query II rowsort label-8838
SELECT ALL + - 15 * + 93 AS col0, - COUNT( * ) * + 46 * - - ( - + 5 ) col2
----
-1395
230

skipif mysql # not compatible
query II rowsort label-8838
SELECT ALL + - 15 * + 93 AS col0, - COUNT ( * ) * + 46 * - - ( - + 5 ) col2
----
-1395
230

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT - + 96 + + COUNT( * ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-8839
SELECT - + 96 + + COUNT ( * ) AS col1
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-8840
SELECT + + COUNT( + 53 ) + - 46 + 6 * 12 col2, 79 * + + ( 38 ) col2
----
27
3002

skipif mysql # not compatible
query II rowsort label-8840
SELECT + + COUNT ( + 53 ) + - 46 + 6 * 12 col2, 79 * + + ( 38 ) col2
----
27
3002

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8841
SELECT SUM( + 95 ) DIV - CASE + + 77 WHEN - 59 THEN - 31 ELSE - + 80 END + + ( + 20 ) * - COUNT( * ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-8841
SELECT SUM ( + 95 ) / - CASE + + 77 WHEN - 59 THEN - 31 ELSE - + 80 END + + ( + 20 ) * - COUNT ( * ) AS col2
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8842
SELECT DISTINCT 43 DIV + - MIN( ALL - + 83 ) * COALESCE ( NULLIF ( + ( - MAX( + 89 ) ), + 80 + - 83 DIV 91 ), 86, 17, - NULLIF ( 63, + + ( - 87 ) ) ) DIV - 65 + ( 28 ) - MIN( 92 + - 10 ) DIV 90 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-8842
SELECT DISTINCT 43 / + - MIN ( ALL - + 83 ) * COALESCE ( NULLIF ( + ( - MAX ( + 89 ) ), + 80 + - 83 / 91 ), 86, 17, - NULLIF ( 63, + + ( - 87 ) ) ) / - 65 + ( 28 ) - MIN ( 92 + - 10 ) / 90 AS col1
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-8843
SELECT ALL + CASE - 9 WHEN + 59 THEN NULL WHEN + CASE - 88 WHEN - MIN( DISTINCT - 20 ) * COUNT( * ) THEN + - 0 * + 62 + + 50 ELSE NULL END - + 91 THEN + 2 END AS col2, - 18 AS col1
----
NULL
-18

skipif mysql # not compatible
query II rowsort label-8843
SELECT ALL + CASE - 9 WHEN + 59 THEN NULL WHEN + CASE - 88 WHEN - MIN ( DISTINCT - 20 ) * COUNT ( * ) THEN + - 0 * + 62 + + 50 ELSE NULL END - + 91 THEN + 2 END AS col2, - 18 AS col1
----
NULL
-18

query I rowsort
SELECT + 5 + - 35
----
-30

query II rowsort
SELECT DISTINCT + 84 AS col1, + 70 AS col2
----
84
70

query I rowsort
SELECT - 76 * - - 57 AS col0
----
-4332

onlyif mysql # aggregate syntax: 
query I rowsort label-8847
SELECT ALL ( + COUNT( * ) ) * - - 13 + + 89 AS col1
----
102

skipif mysql # not compatible
query I rowsort label-8847
SELECT ALL ( + COUNT ( * ) ) * - - 13 + + 89 AS col1
----
102

query II rowsort
SELECT ALL + 0 AS col1, 23
----
0
23

query I rowsort
SELECT ( - + 41 ) AS col2
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8850
SELECT CASE - + 38 WHEN + + CASE WHEN NOT - CAST( NULL AS SIGNED ) IS NULL THEN NULL ELSE - + 74 END THEN - MIN( ALL - - ( + ( - 59 ) ) ) WHEN ( + 43 ) THEN NULL ELSE - MIN( + 27 ) END * + 56 + + + 33 AS col1
----
-1479

skipif mysql # not compatible
query I rowsort label-8850
SELECT CASE - + 38 WHEN + + CASE WHEN NOT - CAST ( NULL AS INTEGER ) IS NULL THEN NULL ELSE - + 74 END THEN - MIN ( ALL - - ( + ( - 59 ) ) ) WHEN ( + 43 ) THEN NULL ELSE - MIN ( + 27 ) END * + 56 + + + 33 AS col1
----
-1479

query I rowsort
SELECT + ( - + 73 )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-8852
SELECT + COUNT( * ) * + + 64 * + 82 * - 51
----
-267648

skipif mysql # not compatible
query I rowsort label-8852
SELECT + COUNT ( * ) * + + 64 * + 82 * - 51
----
-267648

query I rowsort
SELECT ALL 57 * + 8 col2
----
456

query I rowsort
SELECT ALL ( - 17 ) * + 41 AS col1
----
-697

onlyif mysql # aggregate syntax: 
query II rowsort label-8855
SELECT ALL 91 * + - MAX( - - 28 ) + + 93 + + 47 + - 35 AS col2, 67 AS col0
----
-2443
67

skipif mysql # not compatible
query II rowsort label-8855
SELECT ALL 91 * + - MAX ( - - 28 ) + + 93 + + 47 + - 35 AS col2, 67 AS col0
----
-2443
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8856
SELECT + CAST( NULL AS SIGNED ) AS col0, - 29 + - COUNT( * ) col2
----
NULL
-30

skipif mysql # not compatible
query II rowsort label-8856
SELECT + CAST ( NULL AS INTEGER ) AS col0, - 29 + - COUNT ( * ) col2
----
NULL
-30

query II rowsort
SELECT ALL + 32 AS col0, 97 AS col1
----
32
97

query II rowsort
SELECT + 47 * + ( - - 29 ) + + + 25 AS col1, + 70 * - 47 + COALESCE ( - - 62, + ( + 84 ) * - 52 + - 58 + - 2, - ( - 77 ) * - 97 ) * + 72 * 78 AS col1
----
1388
344902

onlyif mysql # aggregate syntax: 
query II rowsort label-8859
SELECT DISTINCT 39 + + - 17 * - 1, COUNT( * ) + - 85 AS col2
----
56
-84

skipif mysql # not compatible
query II rowsort label-8859
SELECT DISTINCT 39 + + - 17 * - 1, COUNT ( * ) + - 85 AS col2
----
56
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8860
SELECT ALL 97 + - + COUNT( * ) - CAST( 43 AS SIGNED )
----
53

skipif mysql # not compatible
query I rowsort label-8860
SELECT ALL 97 + - + COUNT ( * ) - CAST ( 43 AS INTEGER )
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8861
SELECT DISTINCT - + 96, + CASE 29 WHEN 82 * - + COUNT( * ) * 42 + 98 + + 50 THEN + + 11 * + CAST( NULL AS SIGNED ) + 56 + MIN( + 28 ) + - 13 * + NULLIF ( + 80, - NULLIF ( - 8, + 89 - 33 / 29 ) ) + COUNT( * ) WHEN 57 THEN COUNT( ALL + 88 ) + 74 ELSE - 2 END AS col0
----
-96
-2

skipif mysql # not compatible
query II rowsort label-8861
SELECT DISTINCT - + 96, + CASE 29 WHEN 82 * - + COUNT ( * ) * 42 + 98 + + 50 THEN + + 11 * + CAST ( NULL AS INTEGER ) + 56 + MIN ( + 28 ) + - 13 * + NULLIF ( + 80, - NULLIF ( - 8, + 89 - 33 / 29 ) ) + COUNT ( * ) WHEN 57 THEN COUNT ( ALL + 88 ) + 74 ELSE - 2 END AS col0
----
-96
-2

query I rowsort
SELECT + 60 * + 38 - + + 79
----
2201

query II rowsort
SELECT + CASE 14 WHEN + 84 * + - ( + 51 ) + - 4 THEN - 59 + 77 WHEN ( + 12 ) THEN - - 65 END AS col1, 52
----
NULL
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8864
SELECT - - CAST( 43 AS SIGNED )
----
43

skipif mysql # not compatible
query I rowsort label-8864
SELECT - - CAST ( 43 AS INTEGER )
----
43

query I rowsort
SELECT + 89 - 95
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-8866
SELECT DISTINCT - 74 * + 19 * + 1 + COUNT( * ) AS col0, 59
----
-1405
59

skipif mysql # not compatible
query II rowsort label-8866
SELECT DISTINCT - 74 * + 19 * + 1 + COUNT ( * ) AS col0, 59
----
-1405
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8867
SELECT DISTINCT + + 30 + - - 5 * - CASE - + COUNT( * ) WHEN 14 THEN - COALESCE ( + 87, 6 * - 78 / + - ( CAST( - ( - + COALESCE ( - - MIN( ALL + 69 ), 19 ) ) AS SIGNED ) ), - COALESCE ( + 34, COUNT( * ) ), CAST( - 92 AS SIGNED ) * 83 ) WHEN + 59 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8867
SELECT DISTINCT + + 30 + - - 5 * - CASE - + COUNT ( * ) WHEN 14 THEN - COALESCE ( + 87, 6 * - 78 / + - ( CAST ( - ( - + COALESCE ( - - MIN ( ALL + 69 ), 19 ) ) AS INTEGER ) ), - COALESCE ( + 34, COUNT ( * ) ), CAST ( - 92 AS INTEGER ) * 83 ) WHEN + 59 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8868
SELECT ALL - - 68 + - CAST( 25 AS SIGNED ) AS col0, + 7 AS col1
----
43
7

skipif mysql # not compatible
query II rowsort label-8868
SELECT ALL - - 68 + - CAST ( 25 AS INTEGER ) AS col0, + 7 AS col1
----
43
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8869
SELECT ALL 81 / + CAST( NULL AS SIGNED ) + 97 * - + 49 * - + 7 + - CAST( 65 AS SIGNED ) + + + 88 / - + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-8869
SELECT ALL 81 / + CAST ( NULL AS INTEGER ) + 97 * - + 49 * - + 7 + - CAST ( 65 AS INTEGER ) + + + 88 / - + 63
----
NULL

query II rowsort
SELECT DISTINCT - 74 AS col1, - 99
----
-74
-99

query I rowsort
SELECT DISTINCT + 55 - - + 43 + - 9 + - 32
----
57

query II rowsort
SELECT - 20 AS col1, 87 * 47 AS col0
----
-20
4089

onlyif mysql # DIV for integer division: 
query I rowsort label-8873
SELECT 82 * - 62 DIV + - 1 AS col0
----
5084

skipif mysql # not compatible
query I rowsort label-8873
SELECT 82 * - 62 / + - 1 AS col0
----
5084

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8874
SELECT CAST( + ( + - 83 ) AS SIGNED ) AS col0, NULLIF ( + 13, 46 ) AS col1
----
-83
13

skipif mysql # not compatible
query II rowsort label-8874
SELECT CAST ( + ( + - 83 ) AS INTEGER ) AS col0, NULLIF ( + 13, 46 ) AS col1
----
-83
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8875
SELECT - 5 + + CASE - - 66 WHEN + + 15 THEN + 75 WHEN - - ( COUNT( + - 80 ) ) THEN NULL ELSE NULL END * - + 93 + - - ( + CASE 96 WHEN - 8 THEN + 93 / - 91 * + COUNT( DISTINCT 77 ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8875
SELECT - 5 + + CASE - - 66 WHEN + + 15 THEN + 75 WHEN - - ( COUNT ( + - 80 ) ) THEN NULL ELSE NULL END * - + 93 + - - ( + CASE 96 WHEN - 8 THEN + 93 / - 91 * + COUNT ( DISTINCT 77 ) ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8876
SELECT 58, - SUM( - 76 ) + 82 AS col0
----
58
158

skipif mysql # not compatible
query II rowsort label-8876
SELECT 58, - SUM ( - 76 ) + 82 AS col0
----
58
158

onlyif mysql # aggregate syntax: 
query I rowsort label-8877
SELECT COALESCE ( - - 37, + 98 * + 80 + - COALESCE ( 75, - - SUM( DISTINCT - - ( - - 89 ) ), 19 - - COUNT( * ) ) - - 30 + - - 40 * + 58 * + SUM( ALL - - 18 ) * + 92 * - - 44, 7 - ( + 38 ) ) + + 40 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-8877
SELECT COALESCE ( - - 37, + 98 * + 80 + - COALESCE ( 75, - - SUM ( DISTINCT - - ( - - 89 ) ), 19 - - COUNT ( * ) ) - - 30 + - - 40 * + 58 * + SUM ( ALL - - 18 ) * + 92 * - - 44, 7 - ( + 38 ) ) + + 40 AS col2
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8878
SELECT - + CAST( NULL AS SIGNED ) AS col2, - ( + 44 ) / - + CAST( NULL AS SIGNED ) * - 49 * + COUNT( * )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8878
SELECT - + CAST ( NULL AS INTEGER ) AS col2, - ( + 44 ) / - + CAST ( NULL AS INTEGER ) * - 49 * + COUNT ( * )
----
NULL
NULL

query I rowsort
SELECT ALL NULLIF ( ( + - 63 ), - 13 ) AS col0
----
-63

query I rowsort
SELECT DISTINCT + 95 * + + 83 AS col1
----
7885

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8881
SELECT 30 * 99 DIV + CASE WHEN NOT ( + + 62 <= + 40 ) THEN 30 WHEN NOT ( NOT - 1 + + 36 + + 55 * + COUNT( * ) * - 41 + - CAST( NULL AS SIGNED ) + + + 66 + - 61 >= + 26 + 34 * 71 ) THEN NULL END
----
99

skipif mysql # not compatible
query I rowsort label-8881
SELECT 30 * 99 / + CASE WHEN NOT ( + + 62 <= + 40 ) THEN 30 WHEN NOT ( NOT - 1 + + 36 + + 55 * + COUNT ( * ) * - 41 + - CAST ( NULL AS INTEGER ) + + + 66 + - 61 >= + 26 + 34 * 71 ) THEN NULL END
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8882
SELECT ALL + 86 * 85 DIV + 28
----
261

skipif mysql # not compatible
query I rowsort label-8882
SELECT ALL + 86 * 85 / + 28
----
261

onlyif mysql # DIV for integer division: 
query II rowsort label-8883
SELECT 20 DIV + 45, 80 AS col0
----
0
80

skipif mysql # not compatible
query II rowsort label-8883
SELECT 20 / + 45, 80 AS col0
----
0
80

query I rowsort
SELECT 26 + 91 * + 19 * - 13 - + 1 AS col1
----
-22452

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8885
SELECT DISTINCT - 77 * + CAST( + 26 AS SIGNED )
----
-2002

skipif mysql # not compatible
query I rowsort label-8885
SELECT DISTINCT - 77 * + CAST ( + 26 AS INTEGER )
----
-2002

onlyif mysql # DIV for integer division: 
query I rowsort label-8886
SELECT 23 DIV + - 96 + - + 4
----
-4

skipif mysql # not compatible
query I rowsort label-8886
SELECT 23 / + - 96 + - + 4
----
-4

query I rowsort
SELECT ALL + 23 + - 63 AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT MAX( ALL - 55 ) - 70 + + 31 * + + 44
----
1239

skipif mysql # not compatible
query I rowsort label-8888
SELECT MAX ( ALL - 55 ) - 70 + + 31 * + + 44
----
1239

query I rowsort
SELECT ALL - 60 + 2
----
-58

query I rowsort
SELECT ALL 10 + + + 99
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT ALL - 51 + - 92 * COUNT( * )
----
-143

skipif mysql # not compatible
query I rowsort label-8891
SELECT ALL - 51 + - 92 * COUNT ( * )
----
-143

query I rowsort
SELECT ALL 98 + - + CASE + - 68 WHEN - - 66 THEN NULL WHEN 30 THEN 47 * - + 17 + + + 81 * + - 88 ELSE NULL END * + 39 / - 29 * + 83 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8893
SELECT + 68 * + - 56 + 61 DIV - - 82
----
-3808

skipif mysql # not compatible
query I rowsort label-8893
SELECT + 68 * + - 56 + 61 / - - 82
----
-3808

onlyif mysql # DIV for integer division: 
query I rowsort label-8894
SELECT 60 + - 31 DIV 2
----
45

skipif mysql # not compatible
query I rowsort label-8894
SELECT 60 + - 31 / 2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8895
SELECT ALL - COUNT( 3 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-8895
SELECT ALL - COUNT ( 3 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8896
SELECT ALL - 78 * - SUM( ALL + + 84 )
----
6552

skipif mysql # not compatible
query I rowsort label-8896
SELECT ALL - 78 * - SUM ( ALL + + 84 )
----
6552

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8897
SELECT CAST( 47 AS SIGNED ) * + 71 + - + 32 DIV - 92 AS col0
----
3337

skipif mysql # not compatible
query I rowsort label-8897
SELECT CAST ( 47 AS INTEGER ) * + 71 + - + 32 / - 92 AS col0
----
3337

query I rowsort
SELECT ALL 26 + - 8
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8899
SELECT DISTINCT - COUNT( * ) * - ( - 55 ) DIV - 68 + - 84 + - + 52 + + - 48
----
-184

skipif mysql # not compatible
query I rowsort label-8899
SELECT DISTINCT - COUNT ( * ) * - ( - 55 ) / - 68 + - 84 + - + 52 + + - 48
----
-184

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8900
SELECT - ( - CAST( NULL AS DECIMAL ) ) + 6 / - 97 - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-8900
SELECT - ( - CAST ( NULL AS REAL ) ) + 6 / - 97 - 5
----
NULL

query I rowsort
SELECT - NULLIF ( 67, + NULLIF ( + 41, + ( + 0 ) * + 29 * - 81 * + 24 ) ) AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8902
SELECT DISTINCT - COUNT( DISTINCT + 24 ) * - - 44
----
-44

skipif mysql # not compatible
query I rowsort label-8902
SELECT DISTINCT - COUNT ( DISTINCT + 24 ) * - - 44
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8903
SELECT - ( COUNT( * ) ) + - 15 + 29 * + + 93 + COUNT( - 46 ) AS col1
----
2682

skipif mysql # not compatible
query I rowsort label-8903
SELECT - ( COUNT ( * ) ) + - 15 + 29 * + + 93 + COUNT ( - 46 ) AS col1
----
2682

query I rowsort
SELECT ALL - 52 - 0 + 72 + + 92 AS col1
----
112

query I rowsort
SELECT + 75 * + 79 AS col0
----
5925

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8906
SELECT - + ( CASE - 79 WHEN CAST( NULL AS SIGNED ) THEN + 8 * 29 * - 65 - + - 45 * + 23 END ), - 13 * - 99 AS col0
----
NULL
1287

skipif mysql # not compatible
query II rowsort label-8906
SELECT - + ( CASE - 79 WHEN CAST ( NULL AS INTEGER ) THEN + 8 * 29 * - 65 - + - 45 * + 23 END ), - 13 * - 99 AS col0
----
NULL
1287

query I rowsort
SELECT 27 + + 1 * 31
----
58

query I rowsort
SELECT 86 + 61 * + + 21
----
1367

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8909
SELECT DISTINCT + - ( COUNT( * ) ) * + + MIN( + NULLIF ( - 49, + 80 DIV - + CAST( 16 AS SIGNED ) + - 9 + - NULLIF ( 31, - ( + 88 ) + 5 ) ) ) DIV - COUNT( * ) - + ( - 81 ) * + + 62 * + + 95
----
477041

skipif mysql # not compatible
query I rowsort label-8909
SELECT DISTINCT + - ( COUNT ( * ) ) * + + MIN ( + NULLIF ( - 49, + 80 / - + CAST ( 16 AS INTEGER ) + - 9 + - NULLIF ( 31, - ( + 88 ) + 5 ) ) ) / - COUNT ( * ) - + ( - 81 ) * + + 62 * + + 95
----
477041

query I rowsort
SELECT 36 + + + ( 43 ) + - 15 AS col0
----
64

query I rowsort
SELECT ALL 35 * + 47
----
1645

onlyif mysql # aggregate syntax: 
query I rowsort label-8912
SELECT ALL ( 24 ) * + - 74 * + 80 * - COUNT( * ) + - 76
----
142004

skipif mysql # not compatible
query I rowsort label-8912
SELECT ALL ( 24 ) * + - 74 * + 80 * - COUNT ( * ) + - 76
----
142004

query I rowsort
SELECT 46 + - + ( + 14 )
----
32

query I rowsort
SELECT DISTINCT + 9 * 54
----
486

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8915
SELECT 62 + + 39 + + ( - - 17 ) / - 98 / - + CAST( NULL AS SIGNED ) * - MAX( 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8915
SELECT 62 + + 39 + + ( - - 17 ) / - 98 / - + CAST ( NULL AS INTEGER ) * - MAX ( 44 )
----
NULL

query I rowsort
SELECT 36 * + + 26
----
936

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8917
SELECT 71 + COUNT( * ) + + COUNT( * ) + 77 DIV - - 18 + - SUM( DISTINCT 38 ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-8917
SELECT 71 + COUNT ( * ) + + COUNT ( * ) + 77 / - - 18 + - SUM ( DISTINCT 38 ) AS col2
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-8918
SELECT ALL 40 * + 83 * COUNT( * ) * 58 + - + 67 AS col2, 92
----
192493
92

skipif mysql # not compatible
query II rowsort label-8918
SELECT ALL 40 * + 83 * COUNT ( * ) * 58 + - + 67 AS col2, 92
----
192493
92

onlyif mysql # aggregate syntax: 
query II rowsort label-8919
SELECT COALESCE ( + 75, 64, + 82 + + - 14 ), 43 * + 18 - COUNT( * ) AS col2
----
75
773

skipif mysql # not compatible
query II rowsort label-8919
SELECT COALESCE ( + 75, 64, + 82 + + - 14 ), 43 * + 18 - COUNT ( * ) AS col2
----
75
773

query I rowsort
SELECT DISTINCT + 85 * - 19 + + 90
----
-1525

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT ALL 52 * - 3 * - COUNT( * ) + + ( 13 ) + - 26 * - + 26 * + 94 AS col1
----
63713

skipif mysql # not compatible
query I rowsort label-8921
SELECT ALL 52 * - 3 * - COUNT ( * ) + + ( 13 ) + - 26 * - + 26 * + 94 AS col1
----
63713

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8922
SELECT ALL 77 * - - NULLIF ( + - 88, COALESCE ( - + AVG ( DISTINCT - CAST( + 56 AS SIGNED ) ), 21 + NULLIF ( + 1, 64 ) * - - 4 + + 96 + COUNT( * ) + - + 41 + + 92 * - 34 / + ( + - CASE - + CAST( NULL AS SIGNED ) WHEN 37 + - SUM( + 40 ) THEN + 20 END ) * - 19 * 88, - 90 ) * MIN( 71 / 95 ) ) * + 31 + - 39 * 51 AS col2
----
-212045

skipif mysql # not compatible
query I rowsort label-8922
SELECT ALL 77 * - - NULLIF ( + - 88, COALESCE ( - + AVG ( DISTINCT - CAST ( + 56 AS INTEGER ) ), 21 + NULLIF ( + 1, 64 ) * - - 4 + + 96 + COUNT ( * ) + - + 41 + + 92 * - 34 / + ( + - CASE - + CAST ( NULL AS INTEGER ) WHEN 37 + - SUM ( + 40 ) THEN + 20 END ) * - 19 * 88, - 90 ) * MIN ( 71 / 95 ) ) * + 31 + - 39 * 51 AS col2
----
-212045

onlyif mysql # DIV for integer division: 
query I rowsort label-8923
SELECT DISTINCT - 65 DIV 57 * - 84
----
84

skipif mysql # not compatible
query I rowsort label-8923
SELECT DISTINCT - 65 / 57 * - 84
----
84

query I rowsort
SELECT - 4 * + 78
----
-312

onlyif mysql # aggregate syntax: 
query I rowsort label-8925
SELECT ALL ( + ( - COUNT( * ) ) ) * - + 75 + + 72 + - - 47 + 15 * - 4 * - 50 + ( - COALESCE ( - + 36, - 86 * 61 ) ) * + - 62
----
962

skipif mysql # not compatible
query I rowsort label-8925
SELECT ALL ( + ( - COUNT ( * ) ) ) * - + 75 + + 72 + - - 47 + 15 * - 4 * - 50 + ( - COALESCE ( - + 36, - 86 * 61 ) ) * + - 62
----
962

query I rowsort
SELECT ALL - 29 * - + 64
----
1856

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8927
SELECT - 56 DIV - - CAST( - - COALESCE ( - COUNT( * ), - 99 * + 67 * - + 59 * 64 ) AS SIGNED ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-8927
SELECT - 56 / - - CAST ( - - COALESCE ( - COUNT ( * ), - 99 * + 67 * - + 59 * 64 ) AS INTEGER ) AS col2
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8928
SELECT 56 * + COUNT( * ) + - 24, CAST( NULL AS SIGNED ) - + 24 AS col0
----
32
NULL

skipif mysql # not compatible
query II rowsort label-8928
SELECT 56 * + COUNT ( * ) + - 24, CAST ( NULL AS INTEGER ) - + 24 AS col0
----
32
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8929
SELECT DISTINCT - + COUNT( + - 66 ) * - SUM( - 86 ) + CAST( + COUNT( * ) AS SIGNED ) DIV + 17
----
-86

skipif mysql # not compatible
query I rowsort label-8929
SELECT DISTINCT - + COUNT ( + - 66 ) * - SUM ( - 86 ) + CAST ( + COUNT ( * ) AS INTEGER ) / + 17
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8930
SELECT ALL - 95 * - COUNT( - - 67 ) * + 22 - + 19
----
2071

skipif mysql # not compatible
query I rowsort label-8930
SELECT ALL - 95 * - COUNT ( - - 67 ) * + 22 - + 19
----
2071

query I rowsort
SELECT ALL + NULLIF ( - 94, - 24 )
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-8932
SELECT DISTINCT + 45 * - 16 - + 89 DIV 80
----
-721

skipif mysql # not compatible
query I rowsort label-8932
SELECT DISTINCT + 45 * - 16 - + 89 / 80
----
-721

query I rowsort
SELECT + 43 * - 11 AS col0
----
-473

query I rowsort
SELECT DISTINCT ( - NULLIF ( - - ( 33 ), - 4 ) )
----
-33

query I rowsort
SELECT - 87 + - 11 AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8936
SELECT ALL + MAX( - - 8 )
----
8

skipif mysql # not compatible
query I rowsort label-8936
SELECT ALL + MAX ( - - 8 )
----
8

query I rowsort
SELECT ALL 40 * - 94
----
-3760

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT + + 34 * COALESCE ( - - MAX( - ( 97 ) ), - + 3 )
----
-3298

skipif mysql # not compatible
query I rowsort label-8938
SELECT + + 34 * COALESCE ( - - MAX ( - ( 97 ) ), - + 3 )
----
-3298

onlyif mysql # aggregate syntax: 
query I rowsort label-8939
SELECT ALL + COUNT( * ) * + 62 - 56
----
6

skipif mysql # not compatible
query I rowsort label-8939
SELECT ALL + COUNT ( * ) * + 62 - 56
----
6

query I rowsort
SELECT DISTINCT 67 + + 86 * 1
----
153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8941
SELECT + + MAX( ALL - 21 ) - + CAST( NULL AS SIGNED ) + - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8941
SELECT + + MAX ( ALL - 21 ) - + CAST ( NULL AS INTEGER ) + - - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 79 * 96 AS col0
----
7584

query I rowsort
SELECT + + 68 * - 31 * - 5
----
10540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8944
SELECT ALL CAST( - - 31 AS SIGNED ) + 38
----
69

skipif mysql # not compatible
query I rowsort label-8944
SELECT ALL CAST ( - - 31 AS INTEGER ) + 38
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT DISTINCT COUNT( * ) + COUNT( * ) * - 31 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-8945
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) * - 31 AS col1
----
-30

query II rowsort
SELECT + 53 + + - 98 AS col1, 26 AS col1
----
-45
26

query I rowsort
SELECT + 70 * 59
----
4130

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT ALL 82 + COUNT( * ) + - 62 * - + 82
----
5167

skipif mysql # not compatible
query I rowsort label-8948
SELECT ALL 82 + COUNT ( * ) + - 62 * - + 82
----
5167

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8949
SELECT - NULLIF ( 55, + CAST( + 26 AS DECIMAL ) * - - 39 ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-8949
SELECT - NULLIF ( 55, + CAST ( + 26 AS REAL ) * - - 39 ) AS col0
----
-55

query I rowsort
SELECT ALL 52 + + 3
----
55

query I rowsort
SELECT + 64 - 38 * + + 5
----
-126

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8952
SELECT DISTINCT 87 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8952
SELECT DISTINCT 87 + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - 60 * + - 8
----
480

query I rowsort
SELECT + 16 * - 9 * + + 4
----
-576

query I rowsort
SELECT ALL 22 + 80
----
102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8956
SELECT DISTINCT 40 * - + CAST( 66 AS SIGNED ) AS col2
----
-2640

skipif mysql # not compatible
query I rowsort label-8956
SELECT DISTINCT 40 * - + CAST ( 66 AS INTEGER ) AS col2
----
-2640

onlyif mysql # aggregate syntax: 
query I rowsort label-8957
SELECT - ( + COUNT( * ) ) * - + 48 col0
----
48

skipif mysql # not compatible
query I rowsort label-8957
SELECT - ( + COUNT ( * ) ) * - + 48 col0
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8958
SELECT CAST( NULL AS SIGNED ) AS col2, 1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-8958
SELECT CAST ( NULL AS INTEGER ) AS col2, 1
----
NULL
1

query I rowsort
SELECT + 80 + - COALESCE ( + 30, + + 99 * - 17 * - 35, + 78 * + 51 ) AS col2
----
50

query I rowsort
SELECT ( 32 ) col1
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-8961
SELECT 97 DIV + 51 + - 63
----
-62

skipif mysql # not compatible
query I rowsort label-8961
SELECT 97 / + 51 + - 63
----
-62

query I rowsort
SELECT ALL - 96 * - - 44
----
-4224

onlyif mysql # DIV for integer division: 
query I rowsort label-8963
SELECT ALL + COALESCE ( 27, - - 41 * - 99 DIV - 45 ) * 29 DIV + - 30 - + 53
----
-79

skipif mysql # not compatible
query I rowsort label-8963
SELECT ALL + COALESCE ( 27, - - 41 * - 99 / - 45 ) * 29 / + - 30 - + 53
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8964
SELECT ALL - - 48 * + COUNT( ALL 37 ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-8964
SELECT ALL - - 48 * + COUNT ( ALL 37 ) AS col2
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8965
SELECT - CAST( NULL AS SIGNED ) * - ( + + 35 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8965
SELECT - CAST ( NULL AS INTEGER ) * - ( + + 35 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8966
SELECT DISTINCT - - NULLIF ( + + 85, NULLIF ( - + COUNT( * ), - + 24 ) ) DIV + - 75 + - ( 12 ) + ( + ( - 80 ) )
----
-93

skipif mysql # not compatible
query I rowsort label-8966
SELECT DISTINCT - - NULLIF ( + + 85, NULLIF ( - + COUNT ( * ), - + 24 ) ) / + - 75 + - ( 12 ) + ( + ( - 80 ) )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT ALL + - COUNT( - + 36 )
----
-1

skipif mysql # not compatible
query I rowsort label-8967
SELECT ALL + - COUNT ( - + 36 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT ALL + + COUNT( DISTINCT + + 63 ) * 12 - COUNT( * ) + + - 88 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-8968
SELECT ALL + + COUNT ( DISTINCT + + 63 ) * 12 - COUNT ( * ) + + - 88 AS col0
----
-77

query I rowsort
SELECT - 58 + 16 AS col1
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-8970
SELECT - - NULLIF ( - - 90, - COUNT( * ) + + 9 ) * ( - - COUNT( * ) ) AS col1, COALESCE ( + 77, + 59 * - + 47 ) * + - 43
----
90
-3311

skipif mysql # not compatible
query II rowsort label-8970
SELECT - - NULLIF ( - - 90, - COUNT ( * ) + + 9 ) * ( - - COUNT ( * ) ) AS col1, COALESCE ( + 77, + 59 * - + 47 ) * + - 43
----
90
-3311

query I rowsort
SELECT ( - 97 ) * 32 + + 67 + + 59 + - 76 * - 33 AS col2
----
-470

onlyif mysql # aggregate syntax: 
query I rowsort label-8972
SELECT ALL + + SUM( DISTINCT + 18 ) * 55 col0
----
990

skipif mysql # not compatible
query I rowsort label-8972
SELECT ALL + + SUM ( DISTINCT + 18 ) * 55 col0
----
990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8973
SELECT ALL - COUNT( * ) * + 26 * - 93 + - ( 88 ) + + - 26 + + + ( - 81 ) + 19 + + - 72 * - 32 * 96 + 46 + - + CAST( - 91 AS SIGNED ) * 21 DIV + - CASE + 77 WHEN - 65 THEN - + COUNT( * ) ELSE + ( 53 ) + SUM( DISTINCT CAST( + 47 AS SIGNED ) + 60 * 26 ) END + - 35
----
223436

skipif mysql # not compatible
query I rowsort label-8973
SELECT ALL - COUNT ( * ) * + 26 * - 93 + - ( 88 ) + + - 26 + + + ( - 81 ) + 19 + + - 72 * - 32 * 96 + 46 + - + CAST ( - 91 AS INTEGER ) * 21 / + - CASE + 77 WHEN - 65 THEN - + COUNT ( * ) ELSE + ( 53 ) + SUM ( DISTINCT CAST ( + 47 AS INTEGER ) + 60 * 26 ) END + - 35
----
223436

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT - + 89 + + + 51 * 36 + - COUNT( * ) - COALESCE ( 97, - 74 * - COUNT( * ) + + - MIN( - - 88 ) )
----
1649

skipif mysql # not compatible
query I rowsort label-8974
SELECT - + 89 + + + 51 * 36 + - COUNT ( * ) - COALESCE ( 97, - 74 * - COUNT ( * ) + + - MIN ( - - 88 ) )
----
1649

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8975
SELECT - COUNT( * ) DIV + 63
----
0

skipif mysql # not compatible
query I rowsort label-8975
SELECT - COUNT ( * ) / + 63
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8976
SELECT ALL + 3 * - - COUNT( * ) - - + ( COUNT( * ) ) + + 50 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-8976
SELECT ALL + 3 * - - COUNT ( * ) - - + ( COUNT ( * ) ) + + 50 AS col1
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-8977
SELECT - ( - + 6 ), + MAX( 83 ) * - ( + - 12 ) AS col2
----
6
996

skipif mysql # not compatible
query II rowsort label-8977
SELECT - ( - + 6 ), + MAX ( 83 ) * - ( + - 12 ) AS col2
----
6
996

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8978
SELECT DISTINCT 82 + - - MAX( + NULLIF ( + 34, + NULLIF ( + 68, + - CAST( 41 AS SIGNED ) ) ) )
----
116

skipif mysql # not compatible
query I rowsort label-8978
SELECT DISTINCT 82 + - - MAX ( + NULLIF ( + 34, + NULLIF ( + 68, + - CAST ( 41 AS INTEGER ) ) ) )
----
116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8979
SELECT ALL 41 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8979
SELECT ALL 41 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8980
SELECT DISTINCT + 37 + + - COUNT( + - 94 )
----
36

skipif mysql # not compatible
query I rowsort label-8980
SELECT DISTINCT + 37 + + - COUNT ( + - 94 )
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8981
SELECT ALL 35 + - 59 + 20 * - 92 + + 3 + + COUNT( * ) * COUNT( * ) * - + MAX( 99 ) DIV + - 17 - + COUNT( * ) + + 59 * 76 AS col0
----
2627

skipif mysql # not compatible
query I rowsort label-8981
SELECT ALL 35 + - 59 + 20 * - 92 + + 3 + + COUNT ( * ) * COUNT ( * ) * - + MAX ( 99 ) / + - 17 - + COUNT ( * ) + + 59 * 76 AS col0
----
2627

query II rowsort
SELECT 61 + + CASE - 32 WHEN - - 71 / - 32 + - COALESCE ( - 61, 54 * - 86 + - 42 * - 8 ) * - + 12 THEN - - 89 ELSE NULL END AS col2, 28
----
NULL
28

query I rowsort
SELECT DISTINCT - NULLIF ( - 45, 22 ) + - - 30 AS col1
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8984
SELECT ALL + 64 * - + NULLIF ( - CAST( NULL AS SIGNED ), + + ( - - CAST( NULL AS SIGNED ) ) / - - MAX( + 48 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8984
SELECT ALL + 64 * - + NULLIF ( - CAST ( NULL AS INTEGER ), + + ( - - CAST ( NULL AS INTEGER ) ) / - - MAX ( + 48 ) )
----
NULL

query II rowsort
SELECT DISTINCT 40 * + 67 AS col1, - 98 + + - 44
----
2680
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-8986
SELECT 6 + + ( - 37 ) * ( - COUNT( * ) ) * 52 * 90 + - + 1 AS col0
----
173165

skipif mysql # not compatible
query I rowsort label-8986
SELECT 6 + + ( - 37 ) * ( - COUNT ( * ) ) * 52 * 90 + - + 1 AS col0
----
173165

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8987
SELECT ALL COUNT( * ) DIV - 22 * + 44 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8987
SELECT ALL COUNT ( * ) / - 22 * + 44 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8988
SELECT DISTINCT CASE + 69 WHEN + 73 * - + CAST( 70 AS SIGNED ) + + 43 THEN + ( + COUNT( * ) ) ELSE NULL END * 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8988
SELECT DISTINCT CASE + 69 WHEN + 73 * - + CAST ( 70 AS INTEGER ) + + 43 THEN + ( + COUNT ( * ) ) ELSE NULL END * 47 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8989
SELECT ALL + 30 * ( + + NULLIF ( - COUNT( * ), - 73 ) )
----
-30

skipif mysql # not compatible
query I rowsort label-8989
SELECT ALL + 30 * ( + + NULLIF ( - COUNT ( * ), - 73 ) )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT DISTINCT - 66 * - + 38 + - + COALESCE ( + 72, + 25 * COUNT( * ) + + NULLIF ( + + 16, COUNT( * ) / - ( COALESCE ( - ( + - 23 ), + 5 / - 7 + NULLIF ( + ( + 60 ), + + 90 * + 2 ) + + 51 + + NULLIF ( 72, 98 + 22 ) / - 17 ) ) + 53 ) * + 84, + 64 ) * - 25
----
4308

skipif mysql # not compatible
query I rowsort label-8990
SELECT DISTINCT - 66 * - + 38 + - + COALESCE ( + 72, + 25 * COUNT ( * ) + + NULLIF ( + + 16, COUNT ( * ) / - ( COALESCE ( - ( + - 23 ), + 5 / - 7 + NULLIF ( + ( + 60 ), + + 90 * + 2 ) + + 51 + + NULLIF ( 72, 98 + 22 ) / - 17 ) ) + 53 ) * + 84, + 64 ) * - 25
----
4308

onlyif mysql # aggregate syntax: 
query I rowsort label-8991
SELECT ALL 59 * COUNT( * ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-8991
SELECT ALL 59 * COUNT ( * ) AS col2
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8992
SELECT + + MAX( + 73 ) AS col0, 24 + + + COUNT( * ) + - 72 DIV 53 col0
----
73
24

skipif mysql # not compatible
query II rowsort label-8992
SELECT + + MAX ( + 73 ) AS col0, 24 + + + COUNT ( * ) + - 72 / 53 col0
----
73
24

query I rowsort
SELECT ALL - + CASE - + 3 WHEN + 86 - - 5 THEN 90 * + - ( 40 ) * + + 71 ELSE 76 END
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8994
SELECT + - ( - COALESCE ( - COUNT( * ), + COUNT( * ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8994
SELECT + - ( - COALESCE ( - COUNT ( * ), + COUNT ( * ) ) ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8995
SELECT COUNT( CAST( NULL AS SIGNED ) ) AS col0, 31 col1
----
0
31

skipif mysql # not compatible
query II rowsort label-8995
SELECT COUNT ( CAST ( NULL AS INTEGER ) ) AS col0, 31 col1
----
0
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT - - COUNT( * ) * + + 99 + + 68 + + COUNT( * ) - + - 40 AS col2
----
208

skipif mysql # not compatible
query I rowsort label-8996
SELECT - - COUNT ( * ) * + + 99 + + 68 + + COUNT ( * ) - + - 40 AS col2
----
208

query I rowsort
SELECT + 64 * - - 75
----
4800

query II rowsort
SELECT DISTINCT + 56 + - 24, + 39 AS col2
----
32
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8999
SELECT DISTINCT - MIN( + 74 )
----
-74

skipif mysql # not compatible
query I rowsort label-8999
SELECT DISTINCT - MIN ( + 74 )
----
-74

query I rowsort
SELECT ALL - - 17 + 30 AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9001
SELECT ALL + 23 + - COUNT( * ) + - - 30
----
52

skipif mysql # not compatible
query I rowsort label-9001
SELECT ALL + 23 + - COUNT ( * ) + - - 30
----
52

query I rowsort
SELECT DISTINCT - 54 + + 15
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT DISTINCT + + COUNT( * ) + - 0 - + - 57 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-9003
SELECT DISTINCT + + COUNT ( * ) + - 0 - + - 57 AS col2
----
58

query I rowsort
SELECT ALL + 63 + COALESCE ( - 4, + + 59, + 83 ) - - + 93 * 38 * + 40
----
141419

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT + ( MAX( + 70 ) )
----
70

skipif mysql # not compatible
query I rowsort label-9005
SELECT + ( MAX ( + 70 ) )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9006
SELECT ( - COUNT( * ) ) * - 57 col1
----
57

skipif mysql # not compatible
query I rowsort label-9006
SELECT ( - COUNT ( * ) ) * - 57 col1
----
57

query II rowsort
SELECT 12 AS col2, 58 * + 85 + 83 AS col2
----
12
5013

query I rowsort
SELECT ALL + 23 + - 5 AS col0
----
18

query I rowsort
SELECT DISTINCT + ( - 51 ) * - 87 * 33 * + 25 * + - 89 + - 96
----
-325786821

query I rowsort
SELECT 61 * 99 AS col1
----
6039

query II rowsort
SELECT DISTINCT 49, - 64 AS col2
----
49
-64

query I rowsort
SELECT 74 - + 25 AS col0
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-9013
SELECT ALL 55, COUNT( * ) AS col2
----
55
1

skipif mysql # not compatible
query II rowsort label-9013
SELECT ALL 55, COUNT ( * ) AS col2
----
55
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9014
SELECT 55, CAST( NULL AS SIGNED ) * - 76 AS col1
----
55
NULL

skipif mysql # not compatible
query II rowsort label-9014
SELECT 55, CAST ( NULL AS INTEGER ) * - 76 AS col1
----
55
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9015
SELECT ALL MAX( ALL - - 11 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-9015
SELECT ALL MAX ( ALL - - 11 ) AS col1
----
11

query II rowsort
SELECT DISTINCT 23, + 87 * + 35 * + ( 99 ) AS col1
----
23
301455

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9017
SELECT ALL COALESCE ( - CAST( - + AVG ( + - 95 ) AS SIGNED ), - + 78 * - 49 + 75 - + 63 + + COUNT( DISTINCT + 93 ), - 1 + + + 97 ) * - - 37 + 44 * COUNT( * ) AS col0
----
-3471

skipif mysql # not compatible
query I rowsort label-9017
SELECT ALL COALESCE ( - CAST ( - + AVG ( + - 95 ) AS INTEGER ), - + 78 * - 49 + 75 - + 63 + + COUNT ( DISTINCT + 93 ), - 1 + + + 97 ) * - - 37 + 44 * COUNT ( * ) AS col0
----
-3471

query I rowsort
SELECT DISTINCT + 16 * + 27 AS col2
----
432

query II rowsort
SELECT - 33 AS col2, - 20
----
-33
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-9020
SELECT - 3 * - 97 * + + 50 AS col2, + SUM( 0 ) * - - 80 - - ( + 77 ) AS col2
----
14550
77

skipif mysql # not compatible
query II rowsort label-9020
SELECT - 3 * - 97 * + + 50 AS col2, + SUM ( 0 ) * - - 80 - - ( + 77 ) AS col2
----
14550
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9021
SELECT 38 * + + MIN( 30 ) / 76 + - + 31 - - + 48 + 53 + 36 + CAST( NULL AS SIGNED ) + NULLIF ( NULLIF ( + 75, + NULLIF ( MAX( - - 66 ), + - COUNT( * ) ) + - + 8 * - - 5 * + - 35 ), + 88 + + 70 ) + + 87 * 13 + - COUNT( * ) / + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-9021
SELECT 38 * + + MIN ( 30 ) / 76 + - + 31 - - + 48 + 53 + 36 + CAST ( NULL AS INTEGER ) + NULLIF ( NULLIF ( + 75, + NULLIF ( MAX ( - - 66 ), + - COUNT ( * ) ) + - + 8 * - - 5 * + - 35 ), + 88 + + 70 ) + + 87 * 13 + - COUNT ( * ) / + 14
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT + 13 + - - 63 + + 93 * - COUNT( * )
----
-17

skipif mysql # not compatible
query I rowsort label-9022
SELECT + 13 + - - 63 + + 93 * - COUNT ( * )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT SUM( DISTINCT - + 90 ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-9023
SELECT SUM ( DISTINCT - + 90 ) AS col0
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-9024
SELECT + 96 - 24 DIV 45 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-9024
SELECT + 96 - 24 / 45 AS col1
----
96

query I rowsort
SELECT - 6 * 79 + + + 70
----
-404

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT - COUNT( * ) * - 96 * + 42 / CASE - ( - 84 ) WHEN + 40 + + + 17 - 92 + + - AVG ( DISTINCT + - 9 ) * - 77 THEN + + 6 END - - + COUNT( * ) + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9026
SELECT - COUNT ( * ) * - 96 * + 42 / CASE - ( - 84 ) WHEN + 40 + + + 17 - 92 + + - AVG ( DISTINCT + - 9 ) * - 77 THEN + + 6 END - - + COUNT ( * ) + + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT ALL - - 88 * - ( + - 29 ) + COUNT( 40 )
----
2553

skipif mysql # not compatible
query I rowsort label-9027
SELECT ALL - - 88 * - ( + - 29 ) + COUNT ( 40 )
----
2553

query II rowsort
SELECT + 24 AS col2, 0
----
24
0

query I rowsort
SELECT ALL + 36 * - + 7 AS col1
----
-252

query I rowsort
SELECT DISTINCT - 25 + ( 71 ) + - + 7
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9031
SELECT + COALESCE ( ( + 14 ), + 25 * - + 94, - + 85 + + COUNT( * ) )
----
14

skipif mysql # not compatible
query I rowsort label-9031
SELECT + COALESCE ( ( + 14 ), + 25 * - + 94, - + 85 + + COUNT ( * ) )
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9032
SELECT 81 AS col1, CAST( NULL AS SIGNED )
----
81
NULL

skipif mysql # not compatible
query II rowsort label-9032
SELECT 81 AS col1, CAST ( NULL AS INTEGER )
----
81
NULL

query I rowsort
SELECT - 31 * + 61 - + + 26 * - 44 + - + 37 + + - 73 - + 89
----
-946

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9034
SELECT CAST( NULL AS SIGNED ) * + SUM( DISTINCT + 69 ) * + - ( - 75 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9034
SELECT CAST ( NULL AS INTEGER ) * + SUM ( DISTINCT + 69 ) * + - ( - 75 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9035
SELECT MIN( + + 11 ) + 41 * 10
----
421

skipif mysql # not compatible
query I rowsort label-9035
SELECT MIN ( + + 11 ) + 41 * 10
----
421

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT - 39 * + + 97 + + COALESCE ( - - SUM( ALL 99 ), - 17 * COUNT( * ) ) AS col1
----
-3684

skipif mysql # not compatible
query I rowsort label-9036
SELECT - 39 * + + 97 + + COALESCE ( - - SUM ( ALL 99 ), - 17 * COUNT ( * ) ) AS col1
----
-3684

query I rowsort
SELECT 55 + 72
----
127

query I rowsort
SELECT ALL + 37 + 63 AS col1
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9039
SELECT + CASE 25 WHEN 15 + 1 * + CAST( NULL AS SIGNED ) - + + 7 THEN NULL ELSE 9 + - 0 DIV 59 END, - COALESCE ( 81, - COUNT( DISTINCT + 50 ) ) * + - 21 + - 12 - - 87 + + 14 AS col1
----
9
1790

skipif mysql # not compatible
query II rowsort label-9039
SELECT + CASE 25 WHEN 15 + 1 * + CAST ( NULL AS INTEGER ) - + + 7 THEN NULL ELSE 9 + - 0 / 59 END, - COALESCE ( 81, - COUNT ( DISTINCT + 50 ) ) * + - 21 + - 12 - - 87 + + 14 AS col1
----
9
1790

query I rowsort
SELECT ALL - 73 - - 55 + 8
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT - ( - COALESCE ( + 7, - 11 * SUM( - 18 ) ) ) + 60 - ( 20 ) + + 86 + - 97 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-9041
SELECT - ( - COALESCE ( + 7, - 11 * SUM ( - 18 ) ) ) + 60 - ( 20 ) + + 86 + - 97 AS col0
----
36

query I rowsort
SELECT DISTINCT - 19 * - 26 AS col2
----
494

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9043
SELECT DISTINCT + MAX( - - 81 ) - + CAST( NULL AS DECIMAL ) + + + 24 * + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-9043
SELECT DISTINCT + MAX ( - - 81 ) - + CAST ( NULL AS REAL ) + + + 24 * + 86
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9044
SELECT ALL - 1 * NULLIF ( - 20, - SUM( DISTINCT - 89 ) ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-9044
SELECT ALL - 1 * NULLIF ( - 20, - SUM ( DISTINCT - 89 ) ) AS col2
----
20

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9045
SELECT ALL 22 - + - CAST( - COALESCE ( - ( - + ( 62 ) ), - - 25 * - 84 ) AS SIGNED ) DIV 72
----
22

skipif mysql # not compatible
query I rowsort label-9045
SELECT ALL 22 - + - CAST ( - COALESCE ( - ( - + ( 62 ) ), - - 25 * - 84 ) AS INTEGER ) / 72
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9046
SELECT ALL CASE - 32 WHEN 57 THEN NULL WHEN 52 * + 42 - + - 69 THEN NULL ELSE 14 + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9046
SELECT ALL CASE - 32 WHEN 57 THEN NULL WHEN 52 * + 42 - + - 69 THEN NULL ELSE 14 + CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9047
SELECT - ( 81 ) + + COUNT( * ) + 60 + 17
----
-3

skipif mysql # not compatible
query I rowsort label-9047
SELECT - ( 81 ) + + COUNT ( * ) + 60 + 17
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9048
SELECT - 10 DIV + ( - + 27 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-9048
SELECT - 10 / + ( - + 27 ) col2
----
0

query I rowsort
SELECT ALL 16 * + 75
----
1200

onlyif mysql # DIV for integer division: 
query I rowsort label-9050
SELECT DISTINCT - 57 DIV + 57 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9050
SELECT DISTINCT - 57 / + 57 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9051
SELECT ALL MIN( - ( - 72 ) )
----
72

skipif mysql # not compatible
query I rowsort label-9051
SELECT ALL MIN ( - ( - 72 ) )
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-9052
SELECT - 74 DIV + 87 * 7
----
0

skipif mysql # not compatible
query I rowsort label-9052
SELECT - 74 / + 87 * 7
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9053
SELECT - ( + 82 ) AS col0, COUNT( * ) AS col0
----
-82
1

skipif mysql # not compatible
query II rowsort label-9053
SELECT - ( + 82 ) AS col0, COUNT ( * ) AS col0
----
-82
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9054
SELECT - 37 * + COUNT( * ) * + CAST( + 55 AS SIGNED )
----
-2035

skipif mysql # not compatible
query I rowsort label-9054
SELECT - 37 * + COUNT ( * ) * + CAST ( + 55 AS INTEGER )
----
-2035

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9055
SELECT ALL - CAST( - COUNT( * ) AS DECIMAL ) * + ( + 96 ) * - - 30 * + 34 - + 7 + - 26 * + - CASE + NULLIF ( - 21, 29 * - - 42 ) WHEN 35 * - COALESCE ( - 55, - AVG ( ALL + ( + - ( - 31 ) ) ) ) * - CAST( NULL AS SIGNED ) THEN - CAST( NULL AS SIGNED ) END + + ( - + 33 ) + 69 * 59
----
NULL

skipif mysql # not compatible
query I rowsort label-9055
SELECT ALL - CAST ( - COUNT ( * ) AS REAL ) * + ( + 96 ) * - - 30 * + 34 - + 7 + - 26 * + - CASE + NULLIF ( - 21, 29 * - - 42 ) WHEN 35 * - COALESCE ( - 55, - AVG ( ALL + ( + - ( - 31 ) ) ) ) * - CAST ( NULL AS INTEGER ) THEN - CAST ( NULL AS INTEGER ) END + + ( - + 33 ) + 69 * 59
----
NULL

query I rowsort
SELECT + NULLIF ( + ( + - 4 ), - - 23 + + 46 * - ( 40 ) / + 28 ) AS col2
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9057
SELECT ALL 87 * CAST( - 91 AS SIGNED ) + - ( - 84 ) * + 22
----
-6069

skipif mysql # not compatible
query I rowsort label-9057
SELECT ALL 87 * CAST ( - 91 AS INTEGER ) + - ( - 84 ) * + 22
----
-6069

onlyif mysql # aggregate syntax: 
query I rowsort label-9058
SELECT + + COUNT( * ) * + - 55 AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-9058
SELECT + + COUNT ( * ) * + - 55 AS col1
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9059
SELECT ALL + ( - CASE - 1 WHEN - ( 49 ) + + NULLIF ( 14, - - 15 ) + - 11 * + + 15 + - 86 - CAST( - + 83 AS SIGNED ) THEN NULL WHEN - 32 * + ( 75 ) * - CAST( - 69 AS SIGNED ) + - 96 THEN - 40 + - + SUM( + 25 ) + 63 * - ( - 45 ) ELSE 34 + + 7 DIV - MIN( DISTINCT + ( 86 ) ) END ) * 86 + 62 * - 28 AS col0
----
-4660

skipif mysql # not compatible
query I rowsort label-9059
SELECT ALL + ( - CASE - 1 WHEN - ( 49 ) + + NULLIF ( 14, - - 15 ) + - 11 * + + 15 + - 86 - CAST ( - + 83 AS INTEGER ) THEN NULL WHEN - 32 * + ( 75 ) * - CAST ( - 69 AS INTEGER ) + - 96 THEN - 40 + - + SUM ( + 25 ) + 63 * - ( - 45 ) ELSE 34 + + 7 / - MIN ( DISTINCT + ( 86 ) ) END ) * 86 + 62 * - 28 AS col0
----
-4660

query I rowsort
SELECT - 40 * 24 * + + 2 + - 27
----
-1947

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9061
SELECT ALL 95 * 51 + + 61 / CAST( + 14 AS SIGNED ) + NULLIF ( - CAST( NULL AS DECIMAL ), - 75 + - + COUNT( * ) * - + 76 ) - - + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-9061
SELECT ALL 95 * 51 + + 61 / CAST ( + 14 AS INTEGER ) + NULLIF ( - CAST ( NULL AS REAL ), - 75 + - + COUNT ( * ) * - + 76 ) - - + 82
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT ALL COUNT( * ) * + 65 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-9062
SELECT ALL COUNT ( * ) * + 65 AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT CASE 34 WHEN + 25 THEN + COUNT( - 96 ) * + - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9063
SELECT CASE 34 WHEN + 25 THEN + COUNT ( - 96 ) * + - COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT - 88 * + - 66 AS col0
----
5808

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT COUNT( DISTINCT 85 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9065
SELECT COUNT ( DISTINCT 85 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9066
SELECT + NULLIF ( + 76, - ( + 93 ) ) DIV - 7 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-9066
SELECT + NULLIF ( + 76, - ( + 93 ) ) / - 7 AS col2
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9067
SELECT - CASE ( - + CAST( NULL AS SIGNED ) ) WHEN + ( - 43 ) THEN - 76 WHEN - ( + 41 ) + - - 58 THEN CAST( NULL AS SIGNED ) - - 87 WHEN + 40 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9067
SELECT - CASE ( - + CAST ( NULL AS INTEGER ) ) WHEN + ( - 43 ) THEN - 76 WHEN - ( + 41 ) + - - 58 THEN CAST ( NULL AS INTEGER ) - - 87 WHEN + 40 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9068
SELECT - 64 + - CASE AVG ( ALL 33 ) WHEN + NULLIF ( + COUNT( * ), + 49 + - 23 ) THEN NULL WHEN + ( - - 40 ) THEN NULL ELSE + - 78 END + - 17 * - + 53 * - 65 * 67 AS col0, - COUNT( - 4 ) AS col2
----
-3923841
-1

skipif mysql # not compatible
query II rowsort label-9068
SELECT - 64 + - CASE AVG ( ALL 33 ) WHEN + NULLIF ( + COUNT ( * ), + 49 + - 23 ) THEN NULL WHEN + ( - - 40 ) THEN NULL ELSE + - 78 END + - 17 * - + 53 * - 65 * 67 AS col0, - COUNT ( - 4 ) AS col2
----
-3923841
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9069
SELECT DISTINCT 56, COUNT( * ) AS col0
----
56
1

skipif mysql # not compatible
query II rowsort label-9069
SELECT DISTINCT 56, COUNT ( * ) AS col0
----
56
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9070
SELECT SUM( ALL + - 82 ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-9070
SELECT SUM ( ALL + - 82 ) AS col0
----
-82

query I rowsort
SELECT + 86 - 83
----
3

query I rowsort
SELECT + 4 * 73 AS col2
----
292

onlyif mysql # aggregate syntax: 
query I rowsort label-9073
SELECT ALL MIN( ALL - 85 ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-9073
SELECT ALL MIN ( ALL - 85 ) AS col1
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9074
SELECT + ( - CAST( NULL AS SIGNED ) ) - - + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-9074
SELECT + ( - CAST ( NULL AS INTEGER ) ) - - + 73
----
NULL

query I rowsort
SELECT - ( + - 82 ) col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT ALL 62 + + + COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-9076
SELECT ALL 62 + + + COUNT ( * )
----
63

query I rowsort
SELECT + 68 * 53
----
3604

onlyif mysql # aggregate syntax: 
query I rowsort label-9078
SELECT - 74 * - COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-9078
SELECT - 74 * - COUNT ( * )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT - MIN( + - 43 ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-9079
SELECT - MIN ( + - 43 ) AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9080
SELECT ALL + - COUNT( * ) + - + 64 + - NULLIF ( + 76, + MAX( DISTINCT 39 ) )
----
-141

skipif mysql # not compatible
query I rowsort label-9080
SELECT ALL + - COUNT ( * ) + - + 64 + - NULLIF ( + 76, + MAX ( DISTINCT 39 ) )
----
-141

query II rowsort
SELECT ALL - CASE 40 WHEN 46 THEN + 13 END + + - 3 AS col2, - 65 col1
----
NULL
-65

query I rowsort
SELECT - - 80 - + 19 AS col0
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9083
SELECT CASE - COUNT( * ) WHEN - - CAST( NULL AS SIGNED ) THEN NULL ELSE 57 END col2
----
57

skipif mysql # not compatible
query I rowsort label-9083
SELECT CASE - COUNT ( * ) WHEN - - CAST ( NULL AS INTEGER ) THEN NULL ELSE 57 END col2
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-9084
SELECT - - 30 DIV - 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9084
SELECT - - 30 / - 91 AS col0
----
0

query I rowsort
SELECT ALL + 25 + 75 AS col1
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-9086
SELECT DISTINCT + CASE 87 WHEN - COUNT( * ) * - 56 * - - 70 + - - 15 THEN MAX( ALL 46 ) - - 71 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9086
SELECT DISTINCT + CASE 87 WHEN - COUNT ( * ) * - 56 * - - 70 + - - 15 THEN MAX ( ALL 46 ) - - 71 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9087
SELECT + 11 + NULLIF ( + 78, + CASE + 44 WHEN - ( - MIN( + 90 ) ) * COUNT( * ) * + 69 + - 99 * 81 THEN - - COALESCE ( + 9, - + CAST( NULL AS DECIMAL ), - COALESCE ( + - 46, - 78 / - COUNT( * ) / - - 76 ) ) WHEN - + 34 * CASE MAX( DISTINCT - ( - 98 ) ) WHEN 42 THEN NULL WHEN + 42 / 42 THEN 28 + - 29 * 9 ELSE 45 / + COUNT( * ) END + - CAST( 45 AS DECIMAL ) THEN 68 WHEN 86 THEN + 58 - 54 END * 29 )
----
89

skipif mysql # not compatible
query I rowsort label-9087
SELECT + 11 + NULLIF ( + 78, + CASE + 44 WHEN - ( - MIN ( + 90 ) ) * COUNT ( * ) * + 69 + - 99 * 81 THEN - - COALESCE ( + 9, - + CAST ( NULL AS REAL ), - COALESCE ( + - 46, - 78 / - COUNT ( * ) / - - 76 ) ) WHEN - + 34 * CASE MAX ( DISTINCT - ( - 98 ) ) WHEN 42 THEN NULL WHEN + 42 / 42 THEN 28 + - 29 * 9 ELSE 45 / + COUNT ( * ) END + - CAST ( 45 AS REAL ) THEN 68 WHEN 86 THEN + 58 - 54 END * 29 )
----
89

query II rowsort
SELECT + - 0 AS col1, 1 * + - 44 AS col0
----
0
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-9089
SELECT - SUM( + 77 ) - - 95, + 99 AS col0
----
18
99

skipif mysql # not compatible
query II rowsort label-9089
SELECT - SUM ( + 77 ) - - 95, + 99 AS col0
----
18
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9090
SELECT ALL ( + 70 ) DIV 51 - + 97
----
-96

skipif mysql # not compatible
query I rowsort label-9090
SELECT ALL ( + 70 ) / 51 - + 97
----
-96

query I rowsort
SELECT ALL + + 55 - + - 12 * + 64 AS col2
----
823

onlyif mysql # aggregate syntax: 
query I rowsort label-9092
SELECT + MAX( ALL - 39 ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-9092
SELECT + MAX ( ALL - 39 ) AS col0
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9093
SELECT + MAX( ALL CAST( + 97 AS SIGNED ) ) + - 41 * + 20 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9093
SELECT + MAX ( ALL CAST ( + 97 AS INTEGER ) ) + - 41 * + 20 + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 90 * - + 18 AS col2
----
-1620

onlyif mysql # aggregate syntax: 
query II rowsort label-9095
SELECT ALL - COUNT( * ) AS col2, 74
----
-1
74

skipif mysql # not compatible
query II rowsort label-9095
SELECT ALL - COUNT ( * ) AS col2, 74
----
-1
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9096
SELECT 61 * + 32 * NULLIF ( - 98, 1 * - 68 + 50 * + 10 ) * COUNT( * ) AS col2
----
-191296

skipif mysql # not compatible
query I rowsort label-9096
SELECT 61 * + 32 * NULLIF ( - 98, 1 * - 68 + 50 * + 10 ) * COUNT ( * ) AS col2
----
-191296

onlyif mysql # aggregate syntax: 
query II rowsort label-9097
SELECT 36 AS col0, + 25 + - COUNT( ALL - 89 )
----
36
24

skipif mysql # not compatible
query II rowsort label-9097
SELECT 36 AS col0, + 25 + - COUNT ( ALL - 89 )
----
36
24

query II rowsort
SELECT + 47 AS col1, 18 + - 81 AS col0
----
47
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9099
SELECT 80 DIV - ( + + ( - SUM( - + 83 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-9099
SELECT 80 / - ( + + ( - SUM ( - + 83 ) ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9100
SELECT DISTINCT MIN( + - 44 ) * 49 col2
----
-2156

skipif mysql # not compatible
query I rowsort label-9100
SELECT DISTINCT MIN ( + - 44 ) * 49 col2
----
-2156

onlyif mysql # aggregate syntax: 
query I rowsort label-9101
SELECT COUNT( * ) * + ( - - COUNT( - 56 ) ) * - + 59 + + 91 * + 61 AS col2
----
5492

skipif mysql # not compatible
query I rowsort label-9101
SELECT COUNT ( * ) * + ( - - COUNT ( - 56 ) ) * - + 59 + + 91 * + 61 AS col2
----
5492

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT 8 + + - MIN( + 67 )
----
-59

skipif mysql # not compatible
query I rowsort label-9102
SELECT 8 + + - MIN ( + 67 )
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9103
SELECT 86 + - 54 * + NULLIF ( - ( 89 ), + COUNT( * ) ) + + + COALESCE ( 23, - + ( 0 ), 63 ) DIV + COUNT( * ) - + 12 AS col1
----
4903

skipif mysql # not compatible
query I rowsort label-9103
SELECT 86 + - 54 * + NULLIF ( - ( 89 ), + COUNT ( * ) ) + + + COALESCE ( 23, - + ( 0 ), 63 ) / + COUNT ( * ) - + 12 AS col1
----
4903

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9104
SELECT - 71, 41 DIV 93 + - COUNT( * ) DIV + ( 80 ) AS col0
----
-71
0

skipif mysql # not compatible
query II rowsort label-9104
SELECT - 71, 41 / 93 + - COUNT ( * ) / + ( 80 ) AS col0
----
-71
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9105
SELECT SUM( + 73 ) + - + CASE - 26 WHEN + 47 THEN NULL ELSE - - 18 DIV - 70 * + - COUNT( * ) + 17 * + 11 * - 51 END AS col2, + ( + 20 ) AS col0
----
9610
20

skipif mysql # not compatible
query II rowsort label-9105
SELECT SUM ( + 73 ) + - + CASE - 26 WHEN + 47 THEN NULL ELSE - - 18 / - 70 * + - COUNT ( * ) + 17 * + 11 * - 51 END AS col2, + ( + 20 ) AS col0
----
9610
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT ( + 90 ) - COUNT( * ) * + 9
----
81

skipif mysql # not compatible
query I rowsort label-9106
SELECT ( + 90 ) - COUNT ( * ) * + 9
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9107
SELECT 5 + - + 0, + CAST( + 8 AS SIGNED ) * + - 78 * - NULLIF ( + - 73, - - 26 ) + - 5 + ( + + NULLIF ( - 51, - 67 + - 47 ) ) + - 56 + 36 + COUNT( * ) * 43 AS col1
----
5
-45585

skipif mysql # not compatible
query II rowsort label-9107
SELECT 5 + - + 0, + CAST ( + 8 AS INTEGER ) * + - 78 * - NULLIF ( + - 73, - - 26 ) + - 5 + ( + + NULLIF ( - 51, - 67 + - 47 ) ) + - 56 + 36 + COUNT ( * ) * 43 AS col1
----
5
-45585

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9108
SELECT ALL + 20 + + - 98 DIV MAX( + 51 ) + COALESCE ( + CASE + 52 WHEN - 4 * + - ( + - 66 ) + + 81 THEN NULL ELSE - 80 + + 98 + - 3 * - - 47 END, + - 5 + 68 + - 5 * - - 90, 84 * 21 ) * 40 AS col2
----
-4901

skipif mysql # not compatible
query I rowsort label-9108
SELECT ALL + 20 + + - 98 / MAX ( + 51 ) + COALESCE ( + CASE + 52 WHEN - 4 * + - ( + - 66 ) + + 81 THEN NULL ELSE - 80 + + 98 + - 3 * - - 47 END, + - 5 + 68 + - 5 * - - 90, 84 * 21 ) * 40 AS col2
----
-4901

query I rowsort
SELECT - 15 + - 60 AS col0
----
-75

query I rowsort
SELECT ALL 59 + - + 88 * - - 90 AS col1
----
-7861

query I rowsort
SELECT 46 + + ( + 6 )
----
52

query II rowsort
SELECT ALL + 48 AS col0, 52
----
48
52

query II rowsort
SELECT - - 94 AS col0, 15 col1
----
94
15

query I rowsort
SELECT - 56 + - - 73
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9115
SELECT COUNT( * ) * + COUNT( * ) + 23 DIV - COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-9115
SELECT COUNT ( * ) * + COUNT ( * ) + 23 / - COUNT ( * )
----
-22

query I rowsort
SELECT DISTINCT 43 - + + 72 AS col0
----
-29

query I rowsort
SELECT ALL + - 3 - - 47
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9118
SELECT - 49 AS col0, - 86 DIV - COUNT( * )
----
-49
86

skipif mysql # not compatible
query II rowsort label-9118
SELECT - 49 AS col0, - 86 / - COUNT ( * )
----
-49
86

query I rowsort
SELECT DISTINCT - + ( - - 25 ) AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9120
SELECT ALL 28 - + + COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-9120
SELECT ALL 28 - + + COUNT ( * )
----
27

query I rowsort
SELECT 33 * - - 31 AS col0
----
1023

query I rowsort
SELECT 70 * + 8 * - - 7 AS col0
----
3920

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9123
SELECT ALL - 15 + + - 19 DIV ( - - 83 ) DIV - + COUNT( * ) - + 15 * - - 92 AS col0
----
-1395

skipif mysql # not compatible
query I rowsort label-9123
SELECT ALL - 15 + + - 19 / ( - - 83 ) / - + COUNT ( * ) - + 15 * - - 92 AS col0
----
-1395

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9124
SELECT ALL + 70 + - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9124
SELECT ALL + 70 + - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - NULLIF ( + 0, - 19 + - 36 + - 25 * + 29 ) + 79 * + - 92 AS col0
----
-7268

query I rowsort
SELECT 8 * - 52 AS col0
----
-416

query I rowsort
SELECT ALL + CASE - 41 WHEN - + 61 / + 35 * 89 + + - 2 THEN NULL WHEN + + 89 + - 46 + + - 38 THEN NULL ELSE + 38 END + - - 86 AS col2
----
124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9128
SELECT DISTINCT + 53 + 44 + 87 + 5 * + - 2 DIV + - COUNT( * ) AS col0
----
194

skipif mysql # not compatible
query I rowsort label-9128
SELECT DISTINCT + 53 + 44 + 87 + 5 * + - 2 / + - COUNT ( * ) AS col0
----
194

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9129
SELECT + 60 * + 68 * 95 + - - NULLIF ( 85, + 89 * COUNT( * ) * 57 + 51 ) DIV - 47
----
387599

skipif mysql # not compatible
query I rowsort label-9129
SELECT + 60 * + 68 * 95 + - - NULLIF ( 85, + 89 * COUNT ( * ) * 57 + 51 ) / - 47
----
387599

onlyif mysql # aggregate syntax: 
query I rowsort label-9130
SELECT DISTINCT + CASE 53 WHEN 48 THEN - COUNT( * ) ELSE NULL END + + COUNT( * ) + + 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9130
SELECT DISTINCT + CASE 53 WHEN 48 THEN - COUNT ( * ) ELSE NULL END + + COUNT ( * ) + + 29 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9131
SELECT COUNT( * ) * + + 3
----
3

skipif mysql # not compatible
query I rowsort label-9131
SELECT COUNT ( * ) * + + 3
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9132
SELECT ALL CAST( NULL AS SIGNED ) * + 10 * + + COALESCE ( + - 96, 97 + + 15 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9132
SELECT ALL CAST ( NULL AS INTEGER ) * + 10 * + + COALESCE ( + - 96, 97 + + 15 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9133
SELECT - 13 DIV - COUNT( * ) col2
----
13

skipif mysql # not compatible
query I rowsort label-9133
SELECT - 13 / - COUNT ( * ) col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9134
SELECT - CASE - + COUNT( * ) WHEN + NULLIF ( - AVG ( ALL - 22 ), 66 * - + 74 ) + - + 6 + - 41 / - ( 56 ) * + 95 - + ( - 1 ) + 28 + AVG ( DISTINCT + 80 ) * - 79 * 96 - 85 + + 89 + + AVG ( DISTINCT 1 ) THEN + AVG ( ALL + - 99 ) ELSE NULL END * - - 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9134
SELECT - CASE - + COUNT ( * ) WHEN + NULLIF ( - AVG ( ALL - 22 ), 66 * - + 74 ) + - + 6 + - 41 / - ( 56 ) * + 95 - + ( - 1 ) + 28 + AVG ( DISTINCT + 80 ) * - 79 * 96 - 85 + + 89 + + AVG ( DISTINCT 1 ) THEN + AVG ( ALL + - 99 ) ELSE NULL END * - - 70 AS col1
----
NULL

query I rowsort
SELECT + 79 - + 13
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9136
SELECT COUNT( * ) DIV 31 + - 7 * - 66 + - 31 - + 85
----
346

skipif mysql # not compatible
query I rowsort label-9136
SELECT COUNT ( * ) / 31 + - 7 * - 66 + - 31 - + 85
----
346

query I rowsort
SELECT - COALESCE ( - 53, - + 60 + 37 - - 21 ) AS col0
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-9138
SELECT - - ( + + 70 ) AS col1, SUM( ALL - + 91 )
----
70
-91

skipif mysql # not compatible
query II rowsort label-9138
SELECT - - ( + + 70 ) AS col1, SUM ( ALL - + 91 )
----
70
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9139
SELECT - ( 84 ) * + 21 + + + 52 / + - CAST( NULL AS SIGNED ) AS col0, + CAST( NULL AS SIGNED ) * + COUNT( * )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9139
SELECT - ( 84 ) * + 21 + + + 52 / + - CAST ( NULL AS INTEGER ) AS col0, + CAST ( NULL AS INTEGER ) * + COUNT ( * )
----
NULL
NULL

query I rowsort
SELECT + - 53 * + 73 AS col1
----
-3869

onlyif mysql # DIV for integer division: 
query I rowsort label-9141
SELECT + 15 DIV 96
----
0

skipif mysql # not compatible
query I rowsort label-9141
SELECT + 15 / 96
----
0

query I rowsort
SELECT DISTINCT + COALESCE ( - 14, - - 8 - + 10 ) AS col1
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9143
SELECT DISTINCT + CAST( NULLIF ( + - ( COUNT( * ) ), + + 95 / - 77 + 60 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-9143
SELECT DISTINCT + CAST ( NULLIF ( + - ( COUNT ( * ) ), + + 95 / - 77 + 60 ) AS INTEGER )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9144
SELECT + 42 - + 55 DIV + 69 * - + 13
----
42

skipif mysql # not compatible
query I rowsort label-9144
SELECT + 42 - + 55 / + 69 * - + 13
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9145
SELECT + - COUNT( * ) + 49 + + 96 / - 36 * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9145
SELECT + - COUNT ( * ) + 49 + + 96 / - 36 * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9146
SELECT ALL + NULLIF ( - COUNT( DISTINCT - + 3 ), 76 * + + 62 )
----
-1

skipif mysql # not compatible
query I rowsort label-9146
SELECT ALL + NULLIF ( - COUNT ( DISTINCT - + 3 ), 76 * + + 62 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9147
SELECT + + 26 + 46 * - + COUNT( * ) / CAST( NULL AS SIGNED ) * + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-9147
SELECT + + 26 + 46 * - + COUNT ( * ) / CAST ( NULL AS INTEGER ) * + 57
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9148
SELECT - MIN( DISTINCT + 69 ) - - 63 * - 57 + + 64
----
-3596

skipif mysql # not compatible
query I rowsort label-9148
SELECT - MIN ( DISTINCT + 69 ) - - 63 * - 57 + + 64
----
-3596

onlyif mysql # aggregate syntax: 
query I rowsort label-9149
SELECT DISTINCT - 34 * + - COUNT( * ) + 26 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-9149
SELECT DISTINCT - 34 * + - COUNT ( * ) + 26 AS col2
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-9150
SELECT DISTINCT 82 * + 42 + + + 6 DIV - + 59 + + + 58
----
3502

skipif mysql # not compatible
query I rowsort label-9150
SELECT DISTINCT 82 * + 42 + + + 6 / - + 59 + + + 58
----
3502

query I rowsort
SELECT ALL + 1 * - - 73 + ( + 45 ) AS col0
----
118

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9152
SELECT NULLIF ( 47, - CAST( - 61 AS SIGNED ) ), 88 AS col1
----
47
88

skipif mysql # not compatible
query II rowsort label-9152
SELECT NULLIF ( 47, - CAST ( - 61 AS INTEGER ) ), 88 AS col1
----
47
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9153
SELECT 84 * + + 98 + 68 * + - CAST( + - 88 AS SIGNED )
----
14216

skipif mysql # not compatible
query I rowsort label-9153
SELECT 84 * + + 98 + 68 * + - CAST ( + - 88 AS INTEGER )
----
14216

query I rowsort
SELECT ALL + 8 * ( 48 ) + + 93 * - - 39 AS col1
----
4011

query I rowsort
SELECT ALL - ( + 70 ) * 11 * + 96 + 32 * - + 24 col0
----
-74688

onlyif mysql # aggregate syntax: 
query I rowsort label-9156
SELECT + ( + COUNT( * ) ) + + 31 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-9156
SELECT + ( + COUNT ( * ) ) + + 31 AS col1
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-9157
SELECT + 28 DIV + + 48 * + 36 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9157
SELECT + 28 / + + 48 * + 36 AS col2
----
0

query I rowsort
SELECT - 33 + + 5
----
-28

query I rowsort
SELECT ALL + 39 * + 5 AS col1
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-9160
SELECT 40 * + + 12 + + 37 * + 4 + + - COUNT( * ) AS col1
----
627

skipif mysql # not compatible
query I rowsort label-9160
SELECT 40 * + + 12 + + 37 * + 4 + + - COUNT ( * ) AS col1
----
627

query I rowsort
SELECT DISTINCT ( + - 85 )
----
-85

query I rowsort
SELECT - ( + 64 ) AS col1
----
-64

query I rowsort
SELECT - 77 + 84
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9164
SELECT DISTINCT + 46 - + 11 - 12 + COUNT( * ) + + + CAST( NULL AS SIGNED ) / - 82 * + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-9164
SELECT DISTINCT + 46 - + 11 - 12 + COUNT ( * ) + + + CAST ( NULL AS INTEGER ) / - 82 * + 45
----
NULL

query I rowsort
SELECT DISTINCT + + 94 * - ( 74 ) * + + 52
----
-361712

query II rowsort
SELECT ALL 88 AS col0, + 83
----
88
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9167
SELECT - 4 * COALESCE ( - 61, + - COUNT( * ), - 95 + 6 * 39 ) AS col1
----
244

skipif mysql # not compatible
query I rowsort label-9167
SELECT - 4 * COALESCE ( - 61, + - COUNT ( * ), - 95 + 6 * 39 ) AS col1
----
244

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9168
SELECT ALL + MAX( - CAST( 83 AS SIGNED ) ) DIV 24
----
-3

skipif mysql # not compatible
query I rowsort label-9168
SELECT ALL + MAX ( - CAST ( 83 AS INTEGER ) ) / 24
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9169
SELECT - + 91 + 95 + - + 65 + COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-9169
SELECT - + 91 + 95 + - + 65 + COUNT ( * )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9170
SELECT + MIN( - + 15 ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-9170
SELECT + MIN ( - + 15 ) AS col2
----
-15

query II rowsort
SELECT ALL - 34 AS col2, ( - 47 )
----
-34
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-9172
SELECT ALL - 52 DIV - + 47
----
1

skipif mysql # not compatible
query I rowsort label-9172
SELECT ALL - 52 / - + 47
----
1

query I rowsort
SELECT - + ( - 65 ) * - + 83 + - 64 AS col0
----
-5459

query I rowsort
SELECT + + 41 + 17 AS col0
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9175
SELECT + NULLIF ( + COUNT( * ), 40 ) DIV - 24
----
0

skipif mysql # not compatible
query I rowsort label-9175
SELECT + NULLIF ( + COUNT ( * ), 40 ) / - 24
----
0

query I rowsort
SELECT ALL + 61 + - - 78 * - - 62 * 75 * + 75 AS col1
----
27202561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9177
SELECT + CASE MAX( - 3 ) WHEN - 87 * - - 79 THEN + CAST( - 19 AS SIGNED ) DIV 90 DIV + 91 * - 30 - ( + SUM( - + 20 ) ) DIV - 51 ELSE 62 * 88 * + 52 * 67 + CAST( 94 AS SIGNED ) END + - + MAX( - 67 )
----
19008865

skipif mysql # not compatible
query I rowsort label-9177
SELECT + CASE MAX ( - 3 ) WHEN - 87 * - - 79 THEN + CAST ( - 19 AS INTEGER ) / 90 / + 91 * - 30 - ( + SUM ( - + 20 ) ) / - 51 ELSE 62 * 88 * + 52 * 67 + CAST ( 94 AS INTEGER ) END + - + MAX ( - 67 )
----
19008865

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT - 20 * + COUNT( * ) * - 77 - - 6
----
1546

skipif mysql # not compatible
query I rowsort label-9178
SELECT - 20 * + COUNT ( * ) * - 77 - - 6
----
1546

onlyif mysql # DIV for integer division: 
query I rowsort label-9179
SELECT + 94 DIV - + 69 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9179
SELECT + 94 / - + 69 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT + COALESCE ( ( + COUNT( * ) ), - 33 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9180
SELECT + COALESCE ( ( + COUNT ( * ) ), - 33 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9181
SELECT ALL + MAX( ALL - 42 ) DIV + 13 + - + COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-9181
SELECT ALL + MAX ( ALL - 42 ) / + 13 + - + COUNT ( * )
----
-4

query I rowsort
SELECT ALL - CASE 27 WHEN - 0 * + NULLIF ( - 45, - 77 ) THEN + 95 * + + 81 * - 84 END / + 22 + ( + - 53 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9183
SELECT NULLIF ( + 90, + 47 ) * - 66 - + 50 + + - CASE COUNT( * ) WHEN 20 + + 47 + NULLIF ( CAST( + COUNT( * ) AS DECIMAL ), - 34 ) THEN NULL WHEN - ( - 83 ) THEN + + SUM( ALL + 77 ) + - 70 * + - 37 ELSE NULL END / - - COUNT( * ) / - 99 / - COUNT( * ) + + - 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9183
SELECT NULLIF ( + 90, + 47 ) * - 66 - + 50 + + - CASE COUNT ( * ) WHEN 20 + + 47 + NULLIF ( CAST ( + COUNT ( * ) AS REAL ), - 34 ) THEN NULL WHEN - ( - 83 ) THEN + + SUM ( ALL + 77 ) + - 70 * + - 37 ELSE NULL END / - - COUNT ( * ) / - 99 / - COUNT ( * ) + + - 83 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 98 * 90 AS col0
----
8820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-9185
SELECT ( CASE 18 WHEN 68 - + CAST( 29 AS DECIMAL ) THEN + ( - - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) ) ELSE NULL END ), - 56 + + 67 - 29 DIV + 43 + + + 18 + - 23 AS col0
----
NULL
6

skipif mysql # not compatible
query II rowsort label-9185
SELECT ( CASE 18 WHEN 68 - + CAST ( 29 AS REAL ) THEN + ( - - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) ) ELSE NULL END ), - 56 + + 67 - 29 / + 43 + + + 18 + - 23 AS col0
----
NULL
6

onlyif mysql # DIV for integer division: 
query I rowsort label-9186
SELECT ALL 33 DIV 76 - + - 9
----
9

skipif mysql # not compatible
query I rowsort label-9186
SELECT ALL 33 / 76 - + - 9
----
9

query I rowsort
SELECT + 22 * + + 36 AS col1
----
792

query I rowsort
SELECT ALL + 65 * - + 52 - 79 AS col0
----
-3459

query I rowsort
SELECT + 15 + - 50 + 65 * + 99 + + 95 AS col1
----
6495

query I rowsort
SELECT 53 * - - 66 - - 58 + - NULLIF ( 75, + 90 ) * 32
----
1156

query I rowsort
SELECT + 86 * + + 66 AS col1
----
5676

query I rowsort
SELECT ( + + ( - + 79 ) )
----
-79

query I rowsort
SELECT CASE 14 WHEN 85 THEN + 56 ELSE + 31 END
----
31

query I rowsort
SELECT COALESCE ( ( 13 ), - + 70, - + 2 * - 61 )
----
13

query I rowsort
SELECT 3 * + 88 + + + 3
----
267

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT + ( + ( + + COUNT( * ) ) ) * - 35
----
-35

skipif mysql # not compatible
query I rowsort label-9196
SELECT + ( + ( + + COUNT ( * ) ) ) * - 35
----
-35

query I rowsort
SELECT - + 81 + + + 44 + + 10 AS col2
----
-27

query I rowsort
SELECT - 35 * - 3 col2
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-9199
SELECT + 2 * - - 15 + - COUNT( * ) * + 26
----
4

skipif mysql # not compatible
query I rowsort label-9199
SELECT + 2 * - - 15 + - COUNT ( * ) * + 26
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9200
SELECT ALL - SUM( ALL + - 34 ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-9200
SELECT ALL - SUM ( ALL + - 34 ) AS col1
----
34

query I rowsort
SELECT DISTINCT - 23 * + 14 * 47 AS col0
----
-15134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9202
SELECT 80 - COUNT( * ) * + CASE WHEN NOT + 71 NOT BETWEEN 15 AND COUNT( * ) AND NULL NOT BETWEEN ( NULL ) AND + 81 * + - ( - - CAST( NULL AS DECIMAL ) ) * 16 / + 78 - - 89 - + - AVG ( + - 60 ) THEN - + CAST( - + 80 AS SIGNED ) END, COUNT( * ) - + - 72 * + 16 AS col1
----
NULL
1153

skipif mysql # not compatible
query II rowsort label-9202
SELECT 80 - COUNT ( * ) * + CASE WHEN NOT + 71 NOT BETWEEN 15 AND COUNT ( * ) AND NULL NOT BETWEEN ( NULL ) AND + 81 * + - ( - - CAST ( NULL AS REAL ) ) * 16 / + 78 - - 89 - + - AVG ( + - 60 ) THEN - + CAST ( - + 80 AS INTEGER ) END, COUNT ( * ) - + - 72 * + 16 AS col1
----
NULL
1153

query I rowsort
SELECT 38 * 24 * - - NULLIF ( 68, - - 46 + - + 17 ) col2
----
62016

onlyif mysql # aggregate syntax: 
query I rowsort label-9204
SELECT COUNT( * ) - 5 * COUNT( * ) + ( COALESCE ( + 51, + SUM( 11 ) * - 6 ) ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-9204
SELECT COUNT ( * ) - 5 * COUNT ( * ) + ( COALESCE ( + 51, + SUM ( 11 ) * - 6 ) ) AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT ALL - NULLIF ( - + 77, 92 - 90 ) + 99 + COUNT( * )
----
177

skipif mysql # not compatible
query I rowsort label-9205
SELECT ALL - NULLIF ( - + 77, 92 - 90 ) + 99 + COUNT ( * )
----
177

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9206
SELECT DISTINCT + ( + - 21 ) + AVG ( - ( - CASE + 64 WHEN - + CAST( + NULLIF ( + 9, - 93 ) AS SIGNED ) THEN - 82 WHEN - 71 + - 3 + + - 44 THEN NULL END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9206
SELECT DISTINCT + ( + - 21 ) + AVG ( - ( - CASE + 64 WHEN - + CAST ( + NULLIF ( + 9, - 93 ) AS INTEGER ) THEN - 82 WHEN - 71 + - 3 + + - 44 THEN NULL END ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9207
SELECT ALL + + COUNT( * ) + 46 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-9207
SELECT ALL + + COUNT ( * ) + 46 AS col1
----
47

query I rowsort
SELECT ( + 3 ) - - + 40 AS col1
----
43

query II rowsort
SELECT 11 AS col1, 43
----
11
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9210
SELECT 79 + + 26 * COUNT( * ) + - 40
----
65

skipif mysql # not compatible
query I rowsort label-9210
SELECT 79 + + 26 * COUNT ( * ) + - 40
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-9211
SELECT 89 + - COUNT( * ) * - + 65 AS col1, 46 * + 19 AS col0
----
154
874

skipif mysql # not compatible
query II rowsort label-9211
SELECT 89 + - COUNT ( * ) * - + 65 AS col1, 46 * + 19 AS col0
----
154
874

query I rowsort
SELECT + 42 * + 10 + 18
----
438

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9213
SELECT 34 - - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9213
SELECT 34 - - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT ALL + 21 - + 76 + ( - 3 ) * + - MIN( DISTINCT - ( + - 81 ) ) AS col0
----
188

skipif mysql # not compatible
query I rowsort label-9214
SELECT ALL + 21 - + 76 + ( - 3 ) * + - MIN ( DISTINCT - ( + - 81 ) ) AS col0
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-9215
SELECT DISTINCT - MAX( DISTINCT - 6 ) * - 14 AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-9215
SELECT DISTINCT - MAX ( DISTINCT - 6 ) * - 14 AS col1
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9216
SELECT ALL 92 - + 10 + 0 AS col2, CAST( COUNT( * ) AS SIGNED ) col1
----
82
1

skipif mysql # not compatible
query II rowsort label-9216
SELECT ALL 92 - + 10 + 0 AS col2, CAST ( COUNT ( * ) AS INTEGER ) col1
----
82
1

query I rowsort
SELECT ALL - 49 * NULLIF ( + 63, - - 20 )
----
-3087

onlyif mysql # aggregate syntax: 
query I rowsort label-9218
SELECT 58 * - MAX( DISTINCT + + 94 ) + 59
----
-5393

skipif mysql # not compatible
query I rowsort label-9218
SELECT 58 * - MAX ( DISTINCT + + 94 ) + 59
----
-5393

query I rowsort
SELECT 14 * + 50 AS col2
----
700

query I rowsort
SELECT 49 * - 40
----
-1960

query II rowsort
SELECT DISTINCT - 91 AS col0, 42
----
-91
42

query I rowsort
SELECT COALESCE ( 36, 70 ) + - + 56
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9223
SELECT + CAST( COUNT( * ) AS SIGNED ) * 9 + + - 6 + + - 34 + MIN( - 57 ) * - + 7
----
368

skipif mysql # not compatible
query I rowsort label-9223
SELECT + CAST ( COUNT ( * ) AS INTEGER ) * 9 + + - 6 + + - 34 + MIN ( - 57 ) * - + 7
----
368

query I rowsort
SELECT ALL 98 * - 7
----
-686

onlyif mysql # aggregate syntax: 
query I rowsort label-9225
SELECT + + 37 * + 2 + 23 * + 38 - - + COUNT( * ) + 84 + - + MIN( - + 45 ) + + + 3 * - CASE 24 WHEN + ( 9 ) + 16 * + 83 - + NULLIF ( + 21, - + 4 ) THEN NULL WHEN ( - AVG ( + 84 ) ) / + 43 + + COALESCE ( + ( - NULLIF ( + 99, + SUM( DISTINCT + - 59 ) * + 25 + 80 * - 67 ) ), COUNT( * ) * 42 + COUNT( * ) ) THEN NULL WHEN + 64 * + NULLIF ( 84, - MIN( + 18 ) + - COALESCE ( 94, 23 ) * COALESCE ( 97, 11 * ( + 46 * + ( SUM( DISTINCT - 60 ) * + 13 ) ) + - 86 / 4 ) ) + + 94 THEN NULL ELSE 31 END
----
985

skipif mysql # not compatible
query I rowsort label-9225
SELECT + + 37 * + 2 + 23 * + 38 - - + COUNT ( * ) + 84 + - + MIN ( - + 45 ) + + + 3 * - CASE 24 WHEN + ( 9 ) + 16 * + 83 - + NULLIF ( + 21, - + 4 ) THEN NULL WHEN ( - AVG ( + 84 ) ) / + 43 + + COALESCE ( + ( - NULLIF ( + 99, + SUM ( DISTINCT + - 59 ) * + 25 + 80 * - 67 ) ), COUNT ( * ) * 42 + COUNT ( * ) ) THEN NULL WHEN + 64 * + NULLIF ( 84, - MIN ( + 18 ) + - COALESCE ( 94, 23 ) * COALESCE ( 97, 11 * ( + 46 * + ( SUM ( DISTINCT - 60 ) * + 13 ) ) + - 86 / 4 ) ) + + 94 THEN NULL ELSE 31 END
----
985

query I rowsort
SELECT DISTINCT - 27 + 80 - - 29 AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT + ( - - COUNT( ALL + - 67 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9227
SELECT + ( - - COUNT ( ALL + - 67 ) )
----
1

query I rowsort
SELECT - COALESCE ( - 81, - 86 + 64 ) + + 42 - COALESCE ( - 96, 15 ) AS col0
----
219

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9229
SELECT + COALESCE ( - 6, + - 44 + + + 17, - 16 + + + 11, + - 97 + CASE - 28 WHEN - 3 THEN + 17 - - 75 END ) + CAST( - 9 AS SIGNED ) + 95 - + COUNT( * ) + - 62 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-9229
SELECT + COALESCE ( - 6, + - 44 + + + 17, - 16 + + + 11, + - 97 + CASE - 28 WHEN - 3 THEN + 17 - - 75 END ) + CAST ( - 9 AS INTEGER ) + 95 - + COUNT ( * ) + - 62 AS col2
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9230
SELECT - 22 DIV COUNT( * ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-9230
SELECT - 22 / COUNT ( * ) AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT + + 1 * - 77 + + COUNT( * ) + - 69
----
-145

skipif mysql # not compatible
query I rowsort label-9231
SELECT + + 1 * - 77 + + COUNT ( * ) + - 69
----
-145

query I rowsort
SELECT + 31 - + 25
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9233
SELECT + SUM( DISTINCT + CAST( + 22 AS SIGNED ) ) DIV - 65 * 38 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9233
SELECT + SUM ( DISTINCT + CAST ( + 22 AS INTEGER ) ) / - 65 * 38 AS col0
----
0

query I rowsort
SELECT ALL + + 77 + + 0 * - 67 * + 25
----
77

query I rowsort
SELECT - 98 + 62 AS col2
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9236
SELECT DISTINCT CASE - 30 WHEN - - 28 * 44 THEN NULL WHEN - - 51 THEN 36 + CASE + COUNT( * ) WHEN + 35 THEN + + 7 ELSE NULL END ELSE COUNT( * ) END DIV - MAX( 49 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9236
SELECT DISTINCT CASE - 30 WHEN - - 28 * 44 THEN NULL WHEN - - 51 THEN 36 + CASE + COUNT ( * ) WHEN + 35 THEN + + 7 ELSE NULL END ELSE COUNT ( * ) END / - MAX ( 49 ) AS col2
----
0

query I rowsort
SELECT 63 + - 43
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-9238
SELECT DISTINCT + MIN( DISTINCT + 38 ) + + + 0 AS col2, - COUNT( * ) * - ( + 34 ) - + 32 AS col0
----
38
2

skipif mysql # not compatible
query II rowsort label-9238
SELECT DISTINCT + MIN ( DISTINCT + 38 ) + + + 0 AS col2, - COUNT ( * ) * - ( + 34 ) - + 32 AS col0
----
38
2

onlyif mysql # aggregate syntax: 
query II rowsort label-9239
SELECT SUM( + + ( + 27 ) ) * - - 55 AS col0, - 42
----
1485
-42

skipif mysql # not compatible
query II rowsort label-9239
SELECT SUM ( + + ( + 27 ) ) * - - 55 AS col0, - 42
----
1485
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9240
SELECT - COUNT( - + 55 )
----
-1

skipif mysql # not compatible
query I rowsort label-9240
SELECT - COUNT ( - + 55 )
----
-1

query I rowsort
SELECT 24 + - 86 AS col2
----
-62

query II rowsort
SELECT ALL 41 AS col1, 75
----
41
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9243
SELECT ALL 34 - + - 78 * - + CASE - 1 WHEN + 78 THEN 97 + COUNT( * ) + + - 32 * + + 59 * + COUNT( * ) * + 33 WHEN - + NULLIF ( - + COUNT( * ), + 43 * + + 33 ) - 34 THEN NULL ELSE + 78 * - + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9243
SELECT ALL 34 - + - 78 * - + CASE - 1 WHEN + 78 THEN 97 + COUNT ( * ) + + - 32 * + + 59 * + COUNT ( * ) * + 33 WHEN - + NULLIF ( - + COUNT ( * ), + 43 * + + 33 ) - 34 THEN NULL ELSE + 78 * - + CAST ( NULL AS INTEGER ) END
----
NULL

query II rowsort
SELECT ALL 1 AS col0, + 66 * + 18
----
1
1188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9245
SELECT 24 / + - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9245
SELECT 24 / + - CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT NULLIF ( + - COALESCE ( - 54, + 94 ), 87 ) AS col1
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9247
SELECT SUM( ALL 38 ) DIV - - 21 + 48
----
49

skipif mysql # not compatible
query I rowsort label-9247
SELECT SUM ( ALL 38 ) / - - 21 + 48
----
49

query I rowsort
SELECT COALESCE ( + 20, - + 63 ) AS col0
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9249
SELECT 14 DIV + 73 AS col1, + ( - + 84 ) + + COUNT( * ) AS col0
----
0
-83

skipif mysql # not compatible
query II rowsort label-9249
SELECT 14 / + 73 AS col1, + ( - + 84 ) + + COUNT ( * ) AS col0
----
0
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9250
SELECT COUNT( * ) * - + 26 * ( - - 70 ) AS col2
----
-1820

skipif mysql # not compatible
query I rowsort label-9250
SELECT COUNT ( * ) * - + 26 * ( - - 70 ) AS col2
----
-1820

query I rowsort
SELECT 59 * + 63
----
3717

query II rowsort
SELECT + 23, - 80 AS col1
----
23
-80

query I rowsort
SELECT - 15 - NULLIF ( + 63, 38 ) AS col0
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-9254
SELECT ALL + 90 DIV - + 31 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9254
SELECT ALL + 90 / - + 31 AS col2
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9255
SELECT - COUNT( * ) DIV - 69 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9255
SELECT - COUNT ( * ) / - 69 AS col1
----
0

query I rowsort
SELECT ALL - 89 * - 48 AS col1
----
4272

query I rowsort
SELECT + - 29 * + 67
----
-1943

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT ALL + MAX( DISTINCT ( - 44 ) ) * + COUNT( * ) + - - COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-9258
SELECT ALL + MAX ( DISTINCT ( - 44 ) ) * + COUNT ( * ) + - - COUNT ( * )
----
-43

query I rowsort
SELECT ALL 12 + 8 + + - 21 col0
----
-1

query II rowsort
SELECT DISTINCT 47, + 58 + 53 AS col1
----
47
111

query I rowsort
SELECT ALL + - 58 * + ( 7 ) AS col1
----
-406

query I rowsort
SELECT + 95 * 69
----
6555

onlyif mysql # aggregate syntax: 
query II rowsort label-9263
SELECT - - 47, 99 * + COUNT( * ) AS col2
----
47
99

skipif mysql # not compatible
query II rowsort label-9263
SELECT - - 47, 99 * + COUNT ( * ) AS col2
----
47
99

query I rowsort
SELECT DISTINCT - 80 * 98 AS col2
----
-7840

onlyif mysql # aggregate syntax: 
query I rowsort label-9265
SELECT ALL - 22 + 32 * + SUM( 44 ) AS col0
----
1386

skipif mysql # not compatible
query I rowsort label-9265
SELECT ALL - 22 + 32 * + SUM ( 44 ) AS col0
----
1386

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9266
SELECT + CASE - - 55 WHEN - 48 THEN - ( CAST( NULL AS SIGNED ) ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9266
SELECT + CASE - - 55 WHEN - 48 THEN - ( CAST ( NULL AS INTEGER ) ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - + NULLIF ( - 7, 31 + - CASE + 11 WHEN + 62 THEN - 13 ELSE NULL END * + 4 + + 35 * 48 )
----
7

query I rowsort
SELECT + - 41 - - 91 + - 0 AS col0
----
50

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9269
SELECT - ( - COUNT( CAST( + 42 AS DECIMAL ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-9269
SELECT - ( - COUNT ( CAST ( + 42 AS REAL ) ) )
----
1

query I rowsort
SELECT - 17 * 68 AS col2
----
-1156

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9271
SELECT + CAST( NULL AS DECIMAL ) + + 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9271
SELECT + CAST ( NULL AS REAL ) + + 57 AS col0
----
NULL

query I rowsort
SELECT + 46 * 22 * 94
----
95128

query I rowsort
SELECT + 22 * - - 7 col0
----
154

query I rowsort
SELECT + 99 - 92
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9275
SELECT ALL - 49 * + MAX( DISTINCT 9 ) AS col0
----
-441

skipif mysql # not compatible
query I rowsort label-9275
SELECT ALL - 49 * + MAX ( DISTINCT 9 ) AS col0
----
-441

query I rowsort
SELECT ALL + ( + - ( - 63 ) ) * - + 21
----
-1323

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9277
SELECT - 75 + + CAST( - 58 AS SIGNED ) AS col2
----
-133

skipif mysql # not compatible
query I rowsort label-9277
SELECT - 75 + + CAST ( - 58 AS INTEGER ) AS col2
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT + 86 * + - COUNT( * ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-9278
SELECT + 86 * + - COUNT ( * ) AS col0
----
-86

query I rowsort
SELECT - 51 + + - ( - 62 ) * - 0 * - 66 AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT + 63 + - 19 + MAX( DISTINCT - + 93 )
----
-49

skipif mysql # not compatible
query I rowsort label-9280
SELECT + 63 + - 19 + MAX ( DISTINCT - + 93 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT - COUNT( * ) * 48 * + 26
----
-1248

skipif mysql # not compatible
query I rowsort label-9281
SELECT - COUNT ( * ) * 48 * + 26
----
-1248

query I rowsort
SELECT + 56 * + 44 col1
----
2464

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9283
SELECT - COUNT( * ) DIV + MAX( DISTINCT - 23 ) + 59
----
59

skipif mysql # not compatible
query I rowsort label-9283
SELECT - COUNT ( * ) / + MAX ( DISTINCT - 23 ) + 59
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9284
SELECT ALL + NULLIF ( COALESCE ( + + 66, CAST( - 21 AS SIGNED ) ), COUNT( * ) * - 89 ) AS col0, + 52 - - + 72 + - - COUNT( * ) AS col2
----
66
125

skipif mysql # not compatible
query II rowsort label-9284
SELECT ALL + NULLIF ( COALESCE ( + + 66, CAST ( - 21 AS INTEGER ) ), COUNT ( * ) * - 89 ) AS col0, + 52 - - + 72 + - - COUNT ( * ) AS col2
----
66
125

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9285
SELECT ALL + 79 DIV - COUNT( ALL + ( + 64 ) ) + - COALESCE ( 43, - - 71 + 65 * + - 92 * 11 - 90 ) * + 55 col1, NULLIF ( COUNT( * ), 84 + - 97 )
----
-2444
1

skipif mysql # not compatible
query II rowsort label-9285
SELECT ALL + 79 / - COUNT ( ALL + ( + 64 ) ) + - COALESCE ( 43, - - 71 + 65 * + - 92 * 11 - 90 ) * + 55 col1, NULLIF ( COUNT ( * ), 84 + - 97 )
----
-2444
1

query I rowsort
SELECT + 98 * - + 68 + - 54
----
-6718

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9287
SELECT 99 * + NULLIF ( 97, - + 78 * - + NULLIF ( - - COUNT( * ), + 67 * - CAST( - + 68 AS SIGNED ) * - 7 + + 21 ) * CAST( NULL AS SIGNED ) * - SUM( DISTINCT + 53 ) * - 47 * SUM( 11 ) + + 34 + 88 + - 48 + + 23 / - 52 ) + + - 37 + + + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9287
SELECT 99 * + NULLIF ( 97, - + 78 * - + NULLIF ( - - COUNT ( * ), + 67 * - CAST ( - + 68 AS INTEGER ) * - 7 + + 21 ) * CAST ( NULL AS INTEGER ) * - SUM ( DISTINCT + 53 ) * - 47 * SUM ( 11 ) + + 34 + 88 + - 48 + + 23 / - 52 ) + + - 37 + + + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9288
SELECT MAX( + 53 ) col1
----
53

skipif mysql # not compatible
query I rowsort label-9288
SELECT MAX ( + 53 ) col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9289
SELECT ALL + - SUM( DISTINCT + 93 ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-9289
SELECT ALL + - SUM ( DISTINCT + 93 ) AS col0
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9290
SELECT - 89 * - + 16 + - 31 * CAST( NULL AS SIGNED ) + 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9290
SELECT - 89 * - + 16 + - 31 * CAST ( NULL AS INTEGER ) + 70 AS col0
----
NULL

query I rowsort
SELECT - 44 + - 93
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT ALL 35 * 9 + + - 38 * COUNT( * )
----
277

skipif mysql # not compatible
query I rowsort label-9292
SELECT ALL 35 * 9 + + - 38 * COUNT ( * )
----
277

query I rowsort
SELECT - 71 * 53
----
-3763

onlyif mysql # aggregate syntax: 
query I rowsort label-9294
SELECT DISTINCT SUM( 68 ) * + 47 + 39 col2
----
3235

skipif mysql # not compatible
query I rowsort label-9294
SELECT DISTINCT SUM ( 68 ) * + 47 + 39 col2
----
3235

onlyif mysql # aggregate syntax: 
query I rowsort label-9295
SELECT + CASE 25 WHEN - + COUNT( * ) THEN + 21 + + - 15 * + SUM( - 88 ) + - 94 WHEN + 13 THEN 82 ELSE 7 + 79 + SUM( ALL + 45 ) END AS col1
----
131

skipif mysql # not compatible
query I rowsort label-9295
SELECT + CASE 25 WHEN - + COUNT ( * ) THEN + 21 + + - 15 * + SUM ( - 88 ) + - 94 WHEN + 13 THEN 82 ELSE 7 + 79 + SUM ( ALL + 45 ) END AS col1
----
131

query I rowsort
SELECT ALL + 35 * + - CASE - 53 WHEN + 70 THEN NULL WHEN - 12 THEN - 77 END - + 73 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT + - 81 + - ( + MIN( DISTINCT 37 ) ) AS col1
----
-118

skipif mysql # not compatible
query I rowsort label-9297
SELECT + - 81 + - ( + MIN ( DISTINCT 37 ) ) AS col1
----
-118

query I rowsort
SELECT - COALESCE ( 27, - + 33 * - 60 ) + - + 50
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-9299
SELECT + 29 - + COUNT( * ) AS col1, 72 + + COUNT( 49 ) + + 88 AS col1
----
28
161

skipif mysql # not compatible
query II rowsort label-9299
SELECT + 29 - + COUNT ( * ) AS col1, 72 + + COUNT ( 49 ) + + 88 AS col1
----
28
161

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9300
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, 21 AS col0
----
NULL
21

skipif mysql # not compatible
query II rowsort label-9300
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, 21 AS col0
----
NULL
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9301
SELECT ALL CAST( + 2 AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-9301
SELECT ALL CAST ( + 2 AS INTEGER )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT DISTINCT + 8 * - COUNT( * ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-9302
SELECT DISTINCT + 8 * - COUNT ( * ) AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT ALL COUNT( DISTINCT - 5 )
----
1

skipif mysql # not compatible
query I rowsort label-9303
SELECT ALL COUNT ( DISTINCT - 5 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9304
SELECT + MAX( DISTINCT - 36 ) + + 83 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-9304
SELECT + MAX ( DISTINCT - 36 ) + + 83 AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9305
SELECT - CASE - COALESCE ( + + COUNT( * ), COALESCE ( - 18, - ( - COALESCE ( + - COUNT( * ), - COUNT( * ) - + 40 * + COUNT( * ) + + + 47 ) ) ) * + 48 * - - 10 + COUNT( * ) ) WHEN + COALESCE ( - 16, - COUNT( * ) ) + ( - - 40 ) - 76 * + 9 + - - 92 + 61 THEN NULL ELSE 11 * + 90 * + 40 + + 26 END AS col0
----
-39626

skipif mysql # not compatible
query I rowsort label-9305
SELECT - CASE - COALESCE ( + + COUNT ( * ), COALESCE ( - 18, - ( - COALESCE ( + - COUNT ( * ), - COUNT ( * ) - + 40 * + COUNT ( * ) + + + 47 ) ) ) * + 48 * - - 10 + COUNT ( * ) ) WHEN + COALESCE ( - 16, - COUNT ( * ) ) + ( - - 40 ) - 76 * + 9 + - - 92 + 61 THEN NULL ELSE 11 * + 90 * + 40 + + 26 END AS col0
----
-39626

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT + 28 * + - COUNT( * ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-9306
SELECT + 28 * + - COUNT ( * ) AS col2
----
-28

query II rowsort
SELECT 69 AS col1, 63 * 61
----
69
3843

query I rowsort
SELECT DISTINCT NULLIF ( ( - 57 ), + + NULLIF ( + - 32, + 27 ) * + 32 * 56 ) + - 36 AS col0
----
-93

query I rowsort
SELECT ALL 97 + + + NULLIF ( 43, + + 20 * - 47 * 98 + 59 ) + - 57
----
83

query I rowsort
SELECT DISTINCT 32 + - 93
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9311
SELECT 0 * + - 95 + - - MAX( NULLIF ( - 13, + CAST( 69 AS SIGNED ) / + 42 * 66 * - 27 ) ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-9311
SELECT 0 * + - 95 + - - MAX ( NULLIF ( - 13, + CAST ( 69 AS INTEGER ) / + 42 * 66 * - 27 ) ) AS col2
----
-13

query I rowsort
SELECT 68 * + 92
----
6256

onlyif mysql # aggregate syntax: 
query I rowsort label-9313
SELECT ( - NULLIF ( - NULLIF ( 3, 47 * - + COUNT( * ) + 46 + - + 68 ), 34 ) ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-9313
SELECT ( - NULLIF ( - NULLIF ( 3, 47 * - + COUNT ( * ) + 46 + - + 68 ), 34 ) ) AS col0
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9314
SELECT ALL 45 * 59 + 72 * 49 / + - CAST( NULL AS DECIMAL ) - - - MAX( + 96 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9314
SELECT ALL 45 * 59 + 72 * 49 / + - CAST ( NULL AS REAL ) - - - MAX ( + 96 ) AS col0
----
NULL

query I rowsort
SELECT ALL 49 + + 58 * - - 63 + + + 26
----
3729

onlyif mysql # aggregate syntax: 
query I rowsort label-9316
SELECT 43 / - ( 31 ) + + ( CASE + + 62 WHEN + + 63 * - + 80 * + 28 - 43 THEN 35 WHEN + 47 * + 81 + - + 99 * - + 98 THEN NULL ELSE NULL END ) - - - COUNT( * ) * - 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9316
SELECT 43 / - ( 31 ) + + ( CASE + + 62 WHEN + + 63 * - + 80 * + 28 - 43 THEN 35 WHEN + 47 * + 81 + - + 99 * - + 98 THEN NULL ELSE NULL END ) - - - COUNT ( * ) * - 22 AS col2
----
NULL

query I rowsort
SELECT ALL 16 + + 48 + + 4 * + 3 col1
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-9318
SELECT DISTINCT - CASE + - 54 WHEN + 94 THEN NULL ELSE + 67 END, COUNT( * ) AS col2
----
-67
1

skipif mysql # not compatible
query II rowsort label-9318
SELECT DISTINCT - CASE + - 54 WHEN + 94 THEN NULL ELSE + 67 END, COUNT ( * ) AS col2
----
-67
1

query I rowsort
SELECT DISTINCT 34 - + 33 AS col1
----
1

query I rowsort
SELECT COALESCE ( - + 2, + - 22 ) - 79 col1
----
-81

query I rowsort
SELECT ALL - + ( - 47 ) AS col0
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9322
SELECT - 35 * NULLIF ( - - 23, 48 * + - ( + + 36 ) + - 24 + + - 66 ) AS col2, 37 DIV COUNT( * ) + 53
----
-805
90

skipif mysql # not compatible
query II rowsort label-9322
SELECT - 35 * NULLIF ( - - 23, 48 * + - ( + + 36 ) + - 24 + + - 66 ) AS col2, 37 / COUNT ( * ) + 53
----
-805
90

query I rowsort
SELECT 8 * - 58 + - - 41 * 34 * - 13
----
-18586

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT NULLIF ( + - 33, - 54 + + COUNT( * ) ) + + MIN( DISTINCT 64 )
----
31

skipif mysql # not compatible
query I rowsort label-9324
SELECT NULLIF ( + - 33, - 54 + + COUNT ( * ) ) + + MIN ( DISTINCT 64 )
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-9325
SELECT DISTINCT - 3 DIV 6 + + 28 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-9325
SELECT DISTINCT - 3 / 6 + + 28 AS col2
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-9326
SELECT ALL - COUNT( * ) AS col2, + 38 * - 8 * - + 65 AS col1
----
-1
19760

skipif mysql # not compatible
query II rowsort label-9326
SELECT ALL - COUNT ( * ) AS col2, + 38 * - 8 * - + 65 AS col1
----
-1
19760

query I rowsort
SELECT ALL - - 15 * - 33 + + + 21
----
-474

onlyif mysql # aggregate syntax: 
query I rowsort label-9328
SELECT SUM( ALL - 42 ) * 37 AS col2
----
-1554

skipif mysql # not compatible
query I rowsort label-9328
SELECT SUM ( ALL - 42 ) * 37 AS col2
----
-1554

query I rowsort
SELECT 18 * + 94 AS col2
----
1692

query I rowsort
SELECT ALL + 21 * - 23 * + - 56 AS col2
----
27048

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9331
SELECT ( ( + 81 ) ) * + - CAST( NULL AS SIGNED ) + - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-9331
SELECT ( ( + 81 ) ) * + - CAST ( NULL AS INTEGER ) + - 55
----
NULL

query I rowsort
SELECT 34 * + 62 AS col1
----
2108

query I rowsort
SELECT 8 * - 74 AS col1
----
-592

onlyif mysql # aggregate syntax: 
query I rowsort label-9334
SELECT COALESCE ( 85, 64 ) * - CASE - ( 21 ) WHEN + + COUNT( * ) THEN - ( + 61 ) + 66 ELSE - + 0 END * - 48 * + + ( - 84 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9334
SELECT COALESCE ( 85, 64 ) * - CASE - ( 21 ) WHEN + + COUNT ( * ) THEN - ( + 61 ) + 66 ELSE - + 0 END * - 48 * + + ( - 84 ) AS col2
----
0

query I rowsort
SELECT 14 + 34 * - 87
----
-2944

query I rowsort
SELECT 24 + + + 94 * - + 42 - - - 66 * + - 56 AS col0
----
-228

onlyif mysql # aggregate syntax: 
query I rowsort label-9337
SELECT 43 + - + 5 + - ( + 45 ) + + 99 * - COUNT( * )
----
-106

skipif mysql # not compatible
query I rowsort label-9337
SELECT 43 + - + 5 + - ( + 45 ) + + 99 * - COUNT ( * )
----
-106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9338
SELECT ALL + CAST( NULL AS SIGNED ) + - - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-9338
SELECT ALL + CAST ( NULL AS INTEGER ) + - - 34
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9339
SELECT DISTINCT - CASE + - 74 WHEN + 86 * - ( 78 ) + - - 98 THEN + COUNT( * ) ELSE 82 + + CASE + COUNT( * ) WHEN - COUNT( * ) THEN + - CASE - CASE + + 13 WHEN + 81 THEN NULL WHEN + 80 + 13 THEN NULL WHEN + 44 + + + 97 + + 48 THEN - 66 + 28 * - COALESCE ( + 57, + CAST( + 83 AS SIGNED ), + - 79 - - 89 ) ELSE 94 + 65 * - 46 END WHEN - 7 - - COUNT( * ) THEN NULL ELSE - + 10 * - 69 END ELSE NULL END - 99 * + 92 / CAST( 49 + CAST( NULL AS SIGNED ) AS SIGNED ) END + - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-9339
SELECT DISTINCT - CASE + - 74 WHEN + 86 * - ( 78 ) + - - 98 THEN + COUNT ( * ) ELSE 82 + + CASE + COUNT ( * ) WHEN - COUNT ( * ) THEN + - CASE - CASE + + 13 WHEN + 81 THEN NULL WHEN + 80 + 13 THEN NULL WHEN + 44 + + + 97 + + 48 THEN - 66 + 28 * - COALESCE ( + 57, + CAST ( + 83 AS INTEGER ), + - 79 - - 89 ) ELSE 94 + 65 * - 46 END WHEN - 7 - - COUNT ( * ) THEN NULL ELSE - + 10 * - 69 END ELSE NULL END - 99 * + 92 / CAST ( 49 + CAST ( NULL AS INTEGER ) AS INTEGER ) END + - 5
----
NULL

query I rowsort
SELECT ALL 80 + 5
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-9341
SELECT ALL COUNT( ALL + + 3 ) AS col1, + 24 AS col0
----
1
24

skipif mysql # not compatible
query II rowsort label-9341
SELECT ALL COUNT ( ALL + + 3 ) AS col1, + 24 AS col0
----
1
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9342
SELECT DISTINCT 26 * + MIN( ALL + + ( + 91 ) )
----
2366

skipif mysql # not compatible
query I rowsort label-9342
SELECT DISTINCT 26 * + MIN ( ALL + + ( + 91 ) )
----
2366

query I rowsort
SELECT 78 + + 5 AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9344
SELECT + - COUNT( * ) * + 9 * 29 + + 94 AS col0
----
-167

skipif mysql # not compatible
query I rowsort label-9344
SELECT + - COUNT ( * ) * + 9 * 29 + + 94 AS col0
----
-167

query I rowsort
SELECT + 73 - + 93 AS col1
----
-20

onlyif mysql # DIV for integer division: 
query II rowsort label-9346
SELECT + COALESCE ( - - 61, - ( + 86 ) DIV - - 79 ) * + 0 DIV + + 10 col1, 77
----
0
77

skipif mysql # not compatible
query II rowsort label-9346
SELECT + COALESCE ( - - 61, - ( + 86 ) / - - 79 ) * + 0 / + + 10 col1, 77
----
0
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9347
SELECT DISTINCT 4 - - MAX( - 99 ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-9347
SELECT DISTINCT 4 - - MAX ( - 99 ) AS col0
----
-95

query I rowsort
SELECT ( + 10 ) + - 67 * - 26
----
1752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9349
SELECT ALL CAST( NULL AS SIGNED ) / + + COUNT( ALL + - 40 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9349
SELECT ALL CAST ( NULL AS INTEGER ) / + + COUNT ( ALL + - 40 )
----
NULL

query I rowsort
SELECT DISTINCT - 92 * 36 * ( 77 ) + - - ( 97 ) AS col1
----
-254927

onlyif mysql # aggregate syntax: 
query I rowsort label-9351
SELECT ALL - MIN( NULLIF ( - 75, - + ( - 91 ) ) )
----
75

skipif mysql # not compatible
query I rowsort label-9351
SELECT ALL - MIN ( NULLIF ( - 75, - + ( - 91 ) ) )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9352
SELECT + COALESCE ( + SUM( ALL - 8 ), 2, - + 12 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-9352
SELECT + COALESCE ( + SUM ( ALL - 8 ), 2, - + 12 ) AS col1
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9353
SELECT DISTINCT + 40 * - CAST( NULL AS SIGNED ) + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-9353
SELECT DISTINCT + 40 * - CAST ( NULL AS INTEGER ) + 72
----
NULL

query I rowsort
SELECT DISTINCT - - 34 AS col2
----
34

query I rowsort
SELECT 26 * + 63 + - 59
----
1579

query II rowsort
SELECT DISTINCT - 66, - 77 + - 12 col0
----
-66
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9357
SELECT COUNT( * ) DIV ( - 27 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9357
SELECT COUNT ( * ) / ( - 27 ) AS col0
----
0

query I rowsort
SELECT 43 + - 75 * 3 - 30 + + + 69 AS col0
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-9359
SELECT DISTINCT COUNT( DISTINCT - - 92 )
----
1

skipif mysql # not compatible
query I rowsort label-9359
SELECT DISTINCT COUNT ( DISTINCT - - 92 )
----
1

query I rowsort
SELECT ALL - 72 * + + 94 AS col2
----
-6768

onlyif mysql # aggregate syntax: 
query I rowsort label-9361
SELECT DISTINCT + 18 + - 61 * - CASE - + 72 WHEN 19 THEN + COUNT( * ) * AVG ( + 64 ) WHEN 30 THEN NULL WHEN + 46 * ( 14 ) * - + 82 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9361
SELECT DISTINCT + 18 + - 61 * - CASE - + 72 WHEN 19 THEN + COUNT ( * ) * AVG ( + 64 ) WHEN 30 THEN NULL WHEN + 46 * ( 14 ) * - + 82 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9362
SELECT - SUM( - ( 46 ) ) + 49 + + 12 AS col0, - CASE CASE + 20 WHEN CAST( NULL AS SIGNED ) THEN - - 53 * + 69 * 21 + CASE CASE - 59 WHEN + 57 THEN - ( + CAST( - 53 AS SIGNED ) ) ELSE - 70 END WHEN - + 72 THEN COUNT( * ) WHEN + 13 THEN + ( + 27 ) END ELSE NULL END WHEN - 33 / + 17 + - 1 + + - 44 + + + 70 * + MIN( + - 0 ) THEN - NULLIF ( - - 92, + 92 ) WHEN + 99 * - 44 - 8 * 63 THEN NULL END
----
107
NULL

skipif mysql # not compatible
query II rowsort label-9362
SELECT - SUM ( - ( 46 ) ) + 49 + + 12 AS col0, - CASE CASE + 20 WHEN CAST ( NULL AS INTEGER ) THEN - - 53 * + 69 * 21 + CASE CASE - 59 WHEN + 57 THEN - ( + CAST ( - 53 AS INTEGER ) ) ELSE - 70 END WHEN - + 72 THEN COUNT ( * ) WHEN + 13 THEN + ( + 27 ) END ELSE NULL END WHEN - 33 / + 17 + - 1 + + - 44 + + + 70 * + MIN ( + - 0 ) THEN - NULLIF ( - - 92, + 92 ) WHEN + 99 * - 44 - 8 * 63 THEN NULL END
----
107
NULL

query I rowsort
SELECT DISTINCT + 18 + + 22
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9364
SELECT ALL + 0 + - + SUM( ALL - 75 ) * - COALESCE ( ( + 6 ), + + 25 + - - 14 * - 42 )
----
-450

skipif mysql # not compatible
query I rowsort label-9364
SELECT ALL + 0 + - + SUM ( ALL - 75 ) * - COALESCE ( ( + 6 ), + + 25 + - - 14 * - 42 )
----
-450

query I rowsort
SELECT - 26 * - 7 * - 26 AS col0
----
-4732

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT ALL + COUNT( * ) - NULLIF ( 41, + COUNT( * ) )
----
-40

skipif mysql # not compatible
query I rowsort label-9366
SELECT ALL + COUNT ( * ) - NULLIF ( 41, + COUNT ( * ) )
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-9367
SELECT DISTINCT - 57 * 23 * 28 AS col1, SUM( DISTINCT + 72 )
----
-36708
72

skipif mysql # not compatible
query II rowsort label-9367
SELECT DISTINCT - 57 * 23 * 28 AS col1, SUM ( DISTINCT + 72 )
----
-36708
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9368
SELECT DISTINCT + - CAST( + AVG ( ALL 55 ) AS SIGNED ) - + + 38 + + NULLIF ( + 73, CAST( - + 96 AS SIGNED ) * - NULLIF ( - + 42, 81 * 12 + - + 2 * + 96 + + 2 + + 45 * ( + 41 ) / - 3 * - SUM( ALL 65 ) + + + COUNT( ALL + 26 ) + - 93 + + - 79 * + 61 ) + - - COUNT( * ) + - COUNT( * ) * + + 65 ) + - + COUNT( ALL 39 )
----
-21

skipif mysql # not compatible
query I rowsort label-9368
SELECT DISTINCT + - CAST ( + AVG ( ALL 55 ) AS INTEGER ) - + + 38 + + NULLIF ( + 73, CAST ( - + 96 AS INTEGER ) * - NULLIF ( - + 42, 81 * 12 + - + 2 * + 96 + + 2 + + 45 * ( + 41 ) / - 3 * - SUM ( ALL 65 ) + + + COUNT ( ALL + 26 ) + - 93 + + - 79 * + 61 ) + - - COUNT ( * ) + - COUNT ( * ) * + + 65 ) + - + COUNT ( ALL 39 )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9369
SELECT DISTINCT - - 33 * + 23 * + 36 * + - 69 - + CASE - - 45 WHEN + 26 + COUNT( * ) THEN NULL WHEN - - 33 THEN 5 WHEN - ( CASE + 11 WHEN + 73 * + 13 THEN + + COUNT( ALL - + 72 ) + - ( - 40 ) * + 7 * + 63 END ) THEN NULL ELSE + 50 END
----
-1885406

skipif mysql # not compatible
query I rowsort label-9369
SELECT DISTINCT - - 33 * + 23 * + 36 * + - 69 - + CASE - - 45 WHEN + 26 + COUNT ( * ) THEN NULL WHEN - - 33 THEN 5 WHEN - ( CASE + 11 WHEN + 73 * + 13 THEN + + COUNT ( ALL - + 72 ) + - ( - 40 ) * + 7 * + 63 END ) THEN NULL ELSE + 50 END
----
-1885406

query I rowsort
SELECT DISTINCT - + 49 * + 59
----
-2891

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9371
SELECT - CAST( NULL AS SIGNED ) * - COUNT( DISTINCT 13 ) + CAST( 89 AS SIGNED ) + - ( ( - COUNT( * ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9371
SELECT - CAST ( NULL AS INTEGER ) * - COUNT ( DISTINCT 13 ) + CAST ( 89 AS INTEGER ) + - ( ( - COUNT ( * ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9372
SELECT + - ( - - 11 ) * - COUNT( * ) * 23
----
253

skipif mysql # not compatible
query I rowsort label-9372
SELECT + - ( - - 11 ) * - COUNT ( * ) * 23
----
253

query I rowsort
SELECT ALL + 63 * + 89 AS col1
----
5607

onlyif mysql # aggregate syntax: 
query II rowsort label-9374
SELECT DISTINCT + 6 AS col2, + COUNT( * )
----
6
1

skipif mysql # not compatible
query II rowsort label-9374
SELECT DISTINCT + 6 AS col2, + COUNT ( * )
----
6
1

query I rowsort
SELECT ALL + 3 * 33
----
99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9376
SELECT DISTINCT + CAST( 22 AS SIGNED ) DIV NULLIF ( + + 73, + - 21 + + 29 ), - CAST( 99 AS SIGNED ) - + - 50 + + 43 AS col1
----
0
-6

skipif mysql # not compatible
query II rowsort label-9376
SELECT DISTINCT + CAST ( 22 AS INTEGER ) / NULLIF ( + + 73, + - 21 + + 29 ), - CAST ( 99 AS INTEGER ) - + - 50 + + 43 AS col1
----
0
-6

query I rowsort
SELECT ALL + + 14 col1
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9378
SELECT ALL + - 23 AS col0, + COUNT( * ) * - ( + - CAST( NULL AS SIGNED ) ) AS col1
----
-23
NULL

skipif mysql # not compatible
query II rowsort label-9378
SELECT ALL + - 23 AS col0, + COUNT ( * ) * - ( + - CAST ( NULL AS INTEGER ) ) AS col1
----
-23
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9379
SELECT + + 42 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9379
SELECT + + 42 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 6 * - - 79
----
-474

onlyif mysql # aggregate syntax: 
query I rowsort label-9381
SELECT ALL + ( 37 ) * 97 + - + COUNT( * ) AS col2
----
3588

skipif mysql # not compatible
query I rowsort label-9381
SELECT ALL + ( 37 ) * 97 + - + COUNT ( * ) AS col2
----
3588

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9382
SELECT CASE SUM( DISTINCT + 94 ) WHEN - - COUNT( * ) THEN - CAST( NULL AS SIGNED ) + 67 WHEN + 42 THEN NULL WHEN ( + 43 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9382
SELECT CASE SUM ( DISTINCT + 94 ) WHEN - - COUNT ( * ) THEN - CAST ( NULL AS INTEGER ) + 67 WHEN + 42 THEN NULL WHEN ( + 43 ) THEN NULL END
----
NULL

query I rowsort
SELECT ALL + 79 * + 0 + ( - - 46 ) AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9384
SELECT CASE + 50 WHEN - 10 + COUNT( * ) THEN + 91 WHEN - + 5 * + 20 * - - 18 + 68 THEN - + ( + + 68 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9384
SELECT CASE + 50 WHEN - 10 + COUNT ( * ) THEN + 91 WHEN - + 5 * + 20 * - - 18 + 68 THEN - + ( + + 68 ) ELSE NULL END
----
NULL

query I rowsort
SELECT CASE 13 WHEN + + 48 * - - 82 * - 82 + - 82 + - 51 THEN - 31 ELSE NULL END
----
NULL

query I rowsort
SELECT + 40 * 88 col1
----
3520

query I rowsort
SELECT CASE 96 WHEN - 70 THEN NULL ELSE - 80 END AS col2
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9388
SELECT ALL - 2 * - COUNT( - 33 ) + - 14 - - CASE + 98 WHEN + 96 THEN - 33 ELSE - 68 END + NULLIF ( + 97, - + COUNT( + ( - CAST( NULL AS SIGNED ) ) ) * + 36 * + 58 ) * - COUNT( * )
----
-177

skipif mysql # not compatible
query I rowsort label-9388
SELECT ALL - 2 * - COUNT ( - 33 ) + - 14 - - CASE + 98 WHEN + 96 THEN - 33 ELSE - 68 END + NULLIF ( + 97, - + COUNT ( + ( - CAST ( NULL AS INTEGER ) ) ) * + 36 * + 58 ) * - COUNT ( * )
----
-177

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9389
SELECT DISTINCT + ( - - 64 ) * + CAST( + 6 AS SIGNED ) - - - 50 + 1 col2, + COUNT( * )
----
335
1

skipif mysql # not compatible
query II rowsort label-9389
SELECT DISTINCT + ( - - 64 ) * + CAST ( + 6 AS INTEGER ) - - - 50 + 1 col2, + COUNT ( * )
----
335
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9390
SELECT MIN( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9390
SELECT MIN ( + CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT ALL 36 * - + 6 + ( ( + 38 ) ) - + - 39 * - + 43 + + ( - 12 ) AS col0
----
-1867

onlyif mysql # aggregate syntax: 
query I rowsort label-9392
SELECT DISTINCT COALESCE ( 56, + - 18, SUM( - + ( - 67 ) ) * + + 78, - 85 * + 18 * - + 36 - + - 84 ) * - COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-9392
SELECT DISTINCT COALESCE ( 56, + - 18, SUM ( - + ( - 67 ) ) * + + 78, - 85 * + 18 * - + 36 - + - 84 ) * - COUNT ( * )
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9393
SELECT - SUM( DISTINCT + 62 ) DIV + 27 + - SUM( DISTINCT + 99 ) AS col0
----
-101

skipif mysql # not compatible
query I rowsort label-9393
SELECT - SUM ( DISTINCT + 62 ) / + 27 + - SUM ( DISTINCT + 99 ) AS col0
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-9394
SELECT ALL 68 + + 47 + - COUNT( * )
----
114

skipif mysql # not compatible
query I rowsort label-9394
SELECT ALL 68 + + 47 + - COUNT ( * )
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9395
SELECT + 74 + 39 + + NULLIF ( CAST( NULL AS SIGNED ), 89 + + 15 * 76 * - ( 17 ) * + 53 * - COUNT( * ) ) + 28 * + COALESCE ( + COUNT( ALL - 93 ), + 17 + + 65, - 56 ) / - 50 + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-9395
SELECT + 74 + 39 + + NULLIF ( CAST ( NULL AS INTEGER ), 89 + + 15 * 76 * - ( 17 ) * + 53 * - COUNT ( * ) ) + 28 * + COALESCE ( + COUNT ( ALL - 93 ), + 17 + + 65, - 56 ) / - 50 + 63
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9396
SELECT ALL COUNT( * ), 16 AS col0
----
1
16

skipif mysql # not compatible
query II rowsort label-9396
SELECT ALL COUNT ( * ), 16 AS col0
----
1
16

query II rowsort
SELECT 18 AS col1, ( + 64 ) * 96 + 23 + + 64 AS col0
----
18
6231

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9398
SELECT + COUNT( * ) + - 91 DIV ( + 35 ) DIV 86 + - NULLIF ( COUNT( * ), 49 ) * + 39 AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-9398
SELECT + COUNT ( * ) + - 91 / ( + 35 ) / 86 + - NULLIF ( COUNT ( * ), 49 ) * + 39 AS col1
----
-38

query I rowsort
SELECT ALL + 96 * - 91
----
-8736

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT ALL NULLIF ( + 27, - CASE - 26 WHEN + 64 * - MIN( DISTINCT - 32 ) * + ( + + 45 ) * - - 69 / - + 1 THEN + 53 END )
----
27

skipif mysql # not compatible
query I rowsort label-9400
SELECT ALL NULLIF ( + 27, - CASE - 26 WHEN + 64 * - MIN ( DISTINCT - 32 ) * + ( + + 45 ) * - - 69 / - + 1 THEN + 53 END )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9401
SELECT + 3 + 61 + - + 24 * - 98 * - + MAX( 54 ) - 2 AS col0
----
-126946

skipif mysql # not compatible
query I rowsort label-9401
SELECT + 3 + 61 + - + 24 * - 98 * - + MAX ( 54 ) - 2 AS col0
----
-126946

onlyif mysql # DIV for integer division: 
query I rowsort label-9402
SELECT DISTINCT 67 DIV - 88
----
0

skipif mysql # not compatible
query I rowsort label-9402
SELECT DISTINCT 67 / - 88
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9403
SELECT ALL - ( 52 ) * + CASE + + 69 WHEN + COUNT( * ) + - CAST( NULL AS DECIMAL ) THEN 29 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9403
SELECT ALL - ( 52 ) * + CASE + + 69 WHEN + COUNT ( * ) + - CAST ( NULL AS REAL ) THEN 29 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9404
SELECT ALL - 3 AS col1, NULLIF ( SUM( ALL - 55 ), - + ( 49 ) ) - + 6
----
-3
-61

skipif mysql # not compatible
query II rowsort label-9404
SELECT ALL - 3 AS col1, NULLIF ( SUM ( ALL - 55 ), - + ( 49 ) ) - + 6
----
-3
-61

query II rowsort
SELECT - + 78 col0, + 27 AS col2
----
-78
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9406
SELECT DISTINCT - 67 * 21 DIV CASE - + 11 WHEN 85 THEN NULL WHEN 68 * - COUNT( * ) DIV 14 + 31 + - 66 * NULLIF ( + 18, + 69 * + + 83 * 75 ) + - + 50 THEN NULL ELSE - 69 * 30 * + - 58 END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9406
SELECT DISTINCT - 67 * 21 / CASE - + 11 WHEN 85 THEN NULL WHEN 68 * - COUNT ( * ) / 14 + 31 + - 66 * NULLIF ( + 18, + 69 * + + 83 * 75 ) + - + 50 THEN NULL ELSE - 69 * 30 * + - 58 END AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9407
SELECT - + SUM( DISTINCT + 53 ) DIV - 57 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9407
SELECT - + SUM ( DISTINCT + 53 ) / - 57 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT - + COUNT( * ) + + 92
----
91

skipif mysql # not compatible
query I rowsort label-9408
SELECT - + COUNT ( * ) + + 92
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9409
SELECT - - ( 21 ) + CAST( NULL AS SIGNED ) + + - ( 60 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9409
SELECT - - ( 21 ) + CAST ( NULL AS INTEGER ) + + - ( 60 ) AS col0
----
NULL

query I rowsort
SELECT - 57 * 32 + 62
----
-1762

query I rowsort
SELECT - 0 * + 8 - - 72 + + 97 + - + 34
----
135

onlyif mysql # DIV for integer division: 
query I rowsort label-9412
SELECT ALL - + 39 DIV - 36 + + 42
----
43

skipif mysql # not compatible
query I rowsort label-9412
SELECT ALL - + 39 / - 36 + + 42
----
43

query I rowsort
SELECT DISTINCT + + ( + + 30 )
----
30

query II rowsort
SELECT ALL + 83, - 18 + - 49 * - - 43 + 97 + 24 col1
----
83
-2004

onlyif mysql # DIV for integer division: 
query II rowsort label-9415
SELECT DISTINCT - 31 DIV + ( 83 ) - 78 + ( + + 76 ), 12 col1
----
-2
12

skipif mysql # not compatible
query II rowsort label-9415
SELECT DISTINCT - 31 / + ( 83 ) - 78 + ( + + 76 ), 12 col1
----
-2
12

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9416
SELECT - - NULLIF ( CAST( NULL AS DECIMAL ), ( - 52 ) ) + - - 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9416
SELECT - - NULLIF ( CAST ( NULL AS REAL ), ( - 52 ) ) + - - 65 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT + - CASE + 29 WHEN + + ( + COUNT( * ) ) THEN NULL WHEN - + 24 * 99 THEN - COUNT( ALL 41 ) / 32 - + + 21 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9417
SELECT + - CASE + 29 WHEN + + ( + COUNT ( * ) ) THEN NULL WHEN - + 24 * 99 THEN - COUNT ( ALL 41 ) / 32 - + + 21 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9418
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) DIV - 83 + 71
----
71

skipif mysql # not compatible
query I rowsort label-9418
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) / - 83 + 71
----
71

query II rowsort
SELECT 95, 30 AS col0
----
95
30

query I rowsort
SELECT 62 * - 75 + 60
----
-4590

query I rowsort
SELECT ALL - 99 + - 50 + - - 48 AS col0
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT DISTINCT - MIN( DISTINCT + 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-9422
SELECT DISTINCT - MIN ( DISTINCT + 15 )
----
-15

query I rowsort
SELECT ALL 4 + + 36 - + 64
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-9424
SELECT - 76 * 31 DIV + - 35 + - 13
----
54

skipif mysql # not compatible
query I rowsort label-9424
SELECT - 76 * 31 / + - 35 + - 13
----
54

query I rowsort
SELECT ( + 97 ) * - 77 col1
----
-7469

query I rowsort
SELECT ALL 69 - + 8
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-9427
SELECT 39 DIV + 61 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9427
SELECT 39 / + 61 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9428
SELECT CASE + 8 WHEN + - ( - 42 ) - 86 THEN 63 / + + 46 * - COUNT( * ) - + COUNT( * ) WHEN 96 THEN - + 40 END + + - 83 / + COUNT( * ) + - + 91 / - 61 - + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-9428
SELECT CASE + 8 WHEN + - ( - 42 ) - 86 THEN 63 / + + 46 * - COUNT ( * ) - + COUNT ( * ) WHEN 96 THEN - + 40 END + + - 83 / + COUNT ( * ) + - + 91 / - 61 - + 44
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9429
SELECT COUNT( * ) * - 62 AS col2, COUNT( * ) AS col0
----
-62
1

skipif mysql # not compatible
query II rowsort label-9429
SELECT COUNT ( * ) * - 62 AS col2, COUNT ( * ) AS col0
----
-62
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9430
SELECT CASE - 95 WHEN 33 THEN - 40 * + - 65 / 32 END + 76 * CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9430
SELECT CASE - 95 WHEN 33 THEN - 40 * + - 65 / 32 END + 76 * CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9431
SELECT DISTINCT 62 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9431
SELECT DISTINCT 62 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9432
SELECT 94 + 62 AS col2, 37 DIV + CASE + + 77 WHEN ( - ( - + 78 ) ) THEN - 98 WHEN + - AVG ( ALL - 56 ) + - - COUNT( DISTINCT - - 31 ) THEN 86 * + ( - CAST( + - 39 AS SIGNED ) ) ELSE + + MIN( DISTINCT 67 ) + + 30 * - 16 END
----
156
0

skipif mysql # not compatible
query II rowsort label-9432
SELECT 94 + 62 AS col2, 37 / + CASE + + 77 WHEN ( - ( - + 78 ) ) THEN - 98 WHEN + - AVG ( ALL - 56 ) + - - COUNT ( DISTINCT - - 31 ) THEN 86 * + ( - CAST ( + - 39 AS INTEGER ) ) ELSE + + MIN ( DISTINCT 67 ) + + 30 * - 16 END
----
156
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9433
SELECT ALL 9 * - 65, 15 * + 17 + - - 32 + - 52 + - COUNT( * ) + + 34 col0
----
-585
268

skipif mysql # not compatible
query II rowsort label-9433
SELECT ALL 9 * - 65, 15 * + 17 + - - 32 + - 52 + - COUNT ( * ) + + 34 col0
----
-585
268

query I rowsort
SELECT DISTINCT 67 - - 20 + + 57
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-9435
SELECT - COUNT( * ) * ( + 67 ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-9435
SELECT - COUNT ( * ) * ( + 67 ) AS col2
----
-67

query I rowsort
SELECT DISTINCT ( + + 12 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9437
SELECT 8 * + COUNT( + NULLIF ( + 3, 6 ) )
----
8

skipif mysql # not compatible
query I rowsort label-9437
SELECT 8 * + COUNT ( + NULLIF ( + 3, 6 ) )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9438
SELECT MAX( DISTINCT 1 ) * CASE + 76 WHEN - - ( + 31 ) THEN NULL WHEN + ( - 22 ) + - - 58 THEN + - 32 ELSE NULL END / 12 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9438
SELECT MAX ( DISTINCT 1 ) * CASE + 76 WHEN - - ( + 31 ) THEN NULL WHEN + ( - 22 ) + - - 58 THEN + - 32 ELSE NULL END / 12 + - COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( - - 32, - ( + 1 ) * - + 11 + 81 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9440
SELECT DISTINCT + + 81 * NULLIF ( + 63, + 43 * - + 50 + 80 / - - 10 + - COUNT( * ) )
----
5103

skipif mysql # not compatible
query I rowsort label-9440
SELECT DISTINCT + + 81 * NULLIF ( + 63, + 43 * - + 50 + 80 / - - 10 + - COUNT ( * ) )
----
5103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9441
SELECT 31 * - 53 * 34 * + 52 * - 17 * - - CASE + COUNT( * ) WHEN - COUNT( * ) THEN COUNT( * ) END + - CASE - + 14 WHEN - + CAST( 23 AS SIGNED ) THEN - + 95 * 72 * + - COUNT( * ) WHEN COUNT( * ) THEN NULL ELSE NULL END + 74 + - 60 * + 84 * + 31 + + 3 * - + COUNT( * ) + + CASE 20 WHEN 33 * 38 * MIN( DISTINCT - - 13 ) * - 48 THEN - 2 + - - CAST( NULL AS SIGNED ) - - + 94 * + + 31 WHEN - 81 / - MAX( ALL - - 4 ) * - 16 THEN - 77 ELSE 49 END * 34 * + 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9441
SELECT 31 * - 53 * 34 * + 52 * - 17 * - - CASE + COUNT ( * ) WHEN - COUNT ( * ) THEN COUNT ( * ) END + - CASE - + 14 WHEN - + CAST ( 23 AS INTEGER ) THEN - + 95 * 72 * + - COUNT ( * ) WHEN COUNT ( * ) THEN NULL ELSE NULL END + 74 + - 60 * + 84 * + 31 + + 3 * - + COUNT ( * ) + + CASE 20 WHEN 33 * 38 * MIN ( DISTINCT - - 13 ) * - 48 THEN - 2 + - - CAST ( NULL AS INTEGER ) - - + 94 * + + 31 WHEN - 81 / - MAX ( ALL - - 4 ) * - 16 THEN - 77 ELSE 49 END * 34 * + 59 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9442
SELECT ALL CASE 52 WHEN 98 THEN - 28 * CAST( NULL AS SIGNED ) * + 98 * ( 84 ) WHEN - + COUNT( * ) THEN NULL WHEN + - 20 THEN 20 * + - 38 * + 54 ELSE NULL END + 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9442
SELECT ALL CASE 52 WHEN 98 THEN - 28 * CAST ( NULL AS INTEGER ) * + 98 * ( 84 ) WHEN - + COUNT ( * ) THEN NULL WHEN + - 20 THEN 20 * + - 38 * + 54 ELSE NULL END + 95 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9443
SELECT ALL - 86 DIV - ( + - COUNT( * ) )
----
-86

skipif mysql # not compatible
query I rowsort label-9443
SELECT ALL - 86 / - ( + - COUNT ( * ) )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT ALL + COUNT( * ) + + ( - + CASE 48 WHEN + - 85 / 35 THEN + 8 WHEN 23 THEN NULL ELSE + - 31 * 69 + - - COUNT( * ) END ) AS col1
----
2139

skipif mysql # not compatible
query I rowsort label-9444
SELECT ALL + COUNT ( * ) + + ( - + CASE 48 WHEN + - 85 / 35 THEN + 8 WHEN 23 THEN NULL ELSE + - 31 * 69 + - - COUNT ( * ) END ) AS col1
----
2139

query I rowsort
SELECT DISTINCT - 20 + + 64 AS col2
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9446
SELECT ALL + - 77 + 81 DIV - COUNT( * ) AS col0
----
-158

skipif mysql # not compatible
query I rowsort label-9446
SELECT ALL + - 77 + 81 / - COUNT ( * ) AS col0
----
-158

onlyif mysql # aggregate syntax: 
query II rowsort label-9447
SELECT + SUM( + 12 ) AS col2, COUNT( * )
----
12
1

skipif mysql # not compatible
query II rowsort label-9447
SELECT + SUM ( + 12 ) AS col2, COUNT ( * )
----
12
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9448
SELECT 27 + - 54 + + COUNT( * ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9448
SELECT 27 + - 54 + + COUNT ( * ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9449
SELECT ALL COALESCE ( + 32, - - 0 - COUNT( * ), ( - + 70 ) + + COUNT( * ) ) * 49 * + SUM( + 84 ) AS col0
----
131712

skipif mysql # not compatible
query I rowsort label-9449
SELECT ALL COALESCE ( + 32, - - 0 - COUNT ( * ), ( - + 70 ) + + COUNT ( * ) ) * 49 * + SUM ( + 84 ) AS col0
----
131712

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9450
SELECT DISTINCT + 31 + + + COUNT( * ) + COALESCE ( - - 57, - 26 * AVG ( DISTINCT - - ( - 84 ) ) DIV + + 28 ) - + 64 * - 84 * + 78 col1
----
419417

skipif mysql # not compatible
query I rowsort label-9450
SELECT DISTINCT + 31 + + + COUNT ( * ) + COALESCE ( - - 57, - 26 * AVG ( DISTINCT - - ( - 84 ) ) / + + 28 ) - + 64 * - 84 * + 78 col1
----
419417

query III rowsort
SELECT + 46 AS col0, 19 + CASE 42 WHEN 21 * - ( - - 74 ) + - 47 / 56 + - 67 THEN + - 38 END AS col1, - 98 * - + 67 AS col0
----
46
NULL
6566

query I rowsort
SELECT DISTINCT - 96 * + 87 col0
----
-8352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9453
SELECT ALL - NULLIF ( + NULLIF ( + CAST( + - 8 AS SIGNED ), - COALESCE ( - + 5, + 0 + 94 * - + MIN( - 70 ) * + + COUNT( * ) - - NULLIF ( 65, - COALESCE ( 0, - 14 ) ) + + COUNT( * ) / + COUNT( * ) + + + ( + - 48 ) + - - ( - 11 ), + 97 * - - 84 + - CASE + 10 WHEN 19 * + 57 * 10 THEN 56 / - MAX( + - 31 ) + + COUNT( * ) WHEN - 27 + - ( + + 85 ) + + - 65 * 46 * + CAST( NULL AS SIGNED ) THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN - 20 * + 36 ELSE NULL END * 13, - 8 ) * 17 ), - 4 * + 98 + - ( ( - 42 ) ) ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-9453
SELECT ALL - NULLIF ( + NULLIF ( + CAST ( + - 8 AS INTEGER ), - COALESCE ( - + 5, + 0 + 94 * - + MIN ( - 70 ) * + + COUNT ( * ) - - NULLIF ( 65, - COALESCE ( 0, - 14 ) ) + + COUNT ( * ) / + COUNT ( * ) + + + ( + - 48 ) + - - ( - 11 ), + 97 * - - 84 + - CASE + 10 WHEN 19 * + 57 * 10 THEN 56 / - MAX ( + - 31 ) + + COUNT ( * ) WHEN - 27 + - ( + + 85 ) + + - 65 * 46 * + CAST ( NULL AS INTEGER ) THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN - 20 * + 36 ELSE NULL END * 13, - 8 ) * 17 ), - 4 * + 98 + - ( ( - 42 ) ) ) AS col0
----
8

query I rowsort
SELECT 68 * - 87 col2
----
-5916

onlyif mysql # aggregate syntax: 
query I rowsort label-9455
SELECT COUNT( ALL 86 ) - + - 85
----
86

skipif mysql # not compatible
query I rowsort label-9455
SELECT COUNT ( ALL 86 ) - + - 85
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9456
SELECT 87 / - CAST( + + ( + 79 ) AS SIGNED ) / + + CASE + - 42 WHEN - 53 * + 45 * + + 50 * - - 84 * + + MAX( DISTINCT + 45 ) THEN + - 26 WHEN - 17 THEN + 32 END + - 75 AS col0, - 50 AS col2
----
NULL
-50

skipif mysql # not compatible
query II rowsort label-9456
SELECT 87 / - CAST ( + + ( + 79 ) AS INTEGER ) / + + CASE + - 42 WHEN - 53 * + 45 * + + 50 * - - 84 * + + MAX ( DISTINCT + 45 ) THEN + - 26 WHEN - 17 THEN + 32 END + - 75 AS col0, - 50 AS col2
----
NULL
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-9457
SELECT 64 DIV - 35
----
-1

skipif mysql # not compatible
query I rowsort label-9457
SELECT 64 / - 35
----
-1

query I rowsort
SELECT - 34 + + - 97 AS col2
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT + - ( + COUNT( * ) ) * - + CASE - 67 WHEN - 56 THEN + + 22 ELSE NULL END + 95 * 72 * + - 5 + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-9459
SELECT + - ( + COUNT ( * ) ) * - + CASE - 67 WHEN - 56 THEN + + 22 ELSE NULL END + 95 * 72 * + - 5 + 11
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9460
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) + + + AVG ( + + 81 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9460
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) + + + AVG ( + + 81 )
----
NULL

query I rowsort
SELECT DISTINCT + ( 74 ) AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9462
SELECT ALL 0 + - - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9462
SELECT ALL 0 + - - COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9463
SELECT SUM( + ( + 36 ) ) + + 60 + - 38
----
58

skipif mysql # not compatible
query I rowsort label-9463
SELECT SUM ( + ( + 36 ) ) + + 60 + - 38
----
58

query I rowsort
SELECT + 83 + - 52 AS col0
----
31

query I rowsort
SELECT ALL - 26 + + 1 AS col0
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-9466
SELECT ALL 62 AS col0, ( + COUNT( * ) ) * - 8 - + 87
----
62
-95

skipif mysql # not compatible
query II rowsort label-9466
SELECT ALL 62 AS col0, ( + COUNT ( * ) ) * - 8 - + 87
----
62
-95

query I rowsort
SELECT ALL + ( - 14 ) + + 38 AS col0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9468
SELECT 76 + CAST( 66 AS SIGNED ) AS col1
----
142

skipif mysql # not compatible
query I rowsort label-9468
SELECT 76 + CAST ( 66 AS INTEGER ) AS col1
----
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9469
SELECT ALL - MIN( - + 6 ) + + ( + + CAST( NULL AS SIGNED ) ) + AVG ( DISTINCT + 55 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9469
SELECT ALL - MIN ( - + 6 ) + + ( + + CAST ( NULL AS INTEGER ) ) + AVG ( DISTINCT + 55 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9470
SELECT DISTINCT - COALESCE ( + COALESCE ( + COUNT( * ), - 83 ), + - 35 ) + - + 72 - + 31 * + + CAST( NULL AS SIGNED ) + + 89 * 25 * 4 * - + CAST( - MAX( ALL - 16 ) AS DECIMAL ) + ( 0 ) + - + ( + 79 ) * - - 76 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9470
SELECT DISTINCT - COALESCE ( + COALESCE ( + COUNT ( * ), - 83 ), + - 35 ) + - + 72 - + 31 * + + CAST ( NULL AS INTEGER ) + + 89 * 25 * 4 * - + CAST ( - MAX ( ALL - 16 ) AS REAL ) + ( 0 ) + - + ( + 79 ) * - - 76 + COUNT ( * )
----
NULL

query II rowsort
SELECT - + 9 AS col2, 26 * - - 59 - 35
----
-9
1499

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9472
SELECT + 63 * - ( + CAST( 31 AS SIGNED ) )
----
-1953

skipif mysql # not compatible
query I rowsort label-9472
SELECT + 63 * - ( + CAST ( 31 AS INTEGER ) )
----
-1953

query I rowsort
SELECT + 33 + - + 25 * - 67 * + 17 AS col1
----
28508

query I rowsort
SELECT ALL 3 + - 42 * + 16
----
-669

query I rowsort
SELECT + 46 + - - 89 + 8
----
143

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9476
SELECT ALL 30 DIV COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-9476
SELECT ALL 30 / COUNT ( * )
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-9477
SELECT DISTINCT 40 DIV - MIN( + 71 ) * - 46 AS col1, 83 * - 29 - + 17 AS col1, 26 + + ( + + 88 ) + 3 DIV - 32 * - 16
----
0
-2424
114

skipif mysql # not compatible
query III rowsort label-9477
SELECT DISTINCT 40 / - MIN ( + 71 ) * - 46 AS col1, 83 * - 29 - + 17 AS col1, 26 + + ( + + 88 ) + 3 / - 32 * - 16
----
0
-2424
114

query I rowsort
SELECT + 70 * + COALESCE ( 43, + 77 ) AS col0
----
3010

onlyif mysql # aggregate syntax: 
query I rowsort label-9479
SELECT DISTINCT + MAX( DISTINCT + - 80 ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-9479
SELECT DISTINCT + MAX ( DISTINCT + - 80 ) AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9480
SELECT + MAX( - ( 80 ) )
----
-80

skipif mysql # not compatible
query I rowsort label-9480
SELECT + MAX ( - ( 80 ) )
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9481
SELECT - COALESCE ( + 23, - - 76 ) + - - 36 AS col2, + COUNT( * ) * - COALESCE ( - 95, 49 * + 10 + + MAX( ALL + - 14 ) DIV + 30 DIV AVG ( + 97 ) * ( - 57 ) + + - 20 )
----
13
95

skipif mysql # not compatible
query II rowsort label-9481
SELECT - COALESCE ( + 23, - - 76 ) + - - 36 AS col2, + COUNT ( * ) * - COALESCE ( - 95, 49 * + 10 + + MAX ( ALL + - 14 ) / + 30 / AVG ( + 97 ) * ( - 57 ) + + - 20 )
----
13
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9482
SELECT COALESCE ( 13, - ( + SUM( ( 48 ) ) ) ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-9482
SELECT COALESCE ( 13, - ( + SUM ( ( 48 ) ) ) ) AS col0
----
13

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9483
SELECT 18 * + 67 + CAST( NULL AS DECIMAL ) * + CASE - 68 WHEN - 95 * - - 12 THEN NULL ELSE - 52 + 4 END / + - 84 + - 10 - 22 * 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9483
SELECT 18 * + 67 + CAST ( NULL AS REAL ) * + CASE - 68 WHEN - 95 * - - 12 THEN NULL ELSE - 52 + 4 END / + - 84 + - 10 - 22 * 47 AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9484
SELECT ALL 24 * - + ( - + 74 ) - - COALESCE ( ( - 60 ), - - 85 ) * + CAST( NULL AS DECIMAL ) * - 81 + 38 col0, - 64 AS col0
----
NULL
-64

skipif mysql # not compatible
query II rowsort label-9484
SELECT ALL 24 * - + ( - + 74 ) - - COALESCE ( ( - 60 ), - - 85 ) * + CAST ( NULL AS REAL ) * - 81 + 38 col0, - 64 AS col0
----
NULL
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9485
SELECT DISTINCT + COALESCE ( - CASE + + 6 WHEN - 56 + + CAST( NULL AS SIGNED ) THEN + ( 50 ) WHEN + - 92 THEN NULL ELSE NULL END, + 62, + + COUNT( * ) ) col2
----
62

skipif mysql # not compatible
query I rowsort label-9485
SELECT DISTINCT + COALESCE ( - CASE + + 6 WHEN - 56 + + CAST ( NULL AS INTEGER ) THEN + ( 50 ) WHEN + - 92 THEN NULL ELSE NULL END, + 62, + + COUNT ( * ) ) col2
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9486
SELECT + COALESCE ( + + 29, - COUNT( * ) * - 57, + CAST( 13 AS SIGNED ) + - - 90 + - - ( + 88 ) * - 57 ) * - COUNT( * ) * + 60 + 35 + CAST( 71 AS SIGNED ) + 95 * - + 68 col2
----
-8094

skipif mysql # not compatible
query I rowsort label-9486
SELECT + COALESCE ( + + 29, - COUNT ( * ) * - 57, + CAST ( 13 AS INTEGER ) + - - 90 + - - ( + 88 ) * - 57 ) * - COUNT ( * ) * + 60 + 35 + CAST ( 71 AS INTEGER ) + 95 * - + 68 col2
----
-8094

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT + 27 + - 64 * - + 74 * + COUNT( * ) - + - 48
----
4811

skipif mysql # not compatible
query I rowsort label-9487
SELECT + 27 + - 64 * - + 74 * + COUNT ( * ) - + - 48
----
4811

onlyif mysql # DIV for integer division: 
query I rowsort label-9488
SELECT ALL 33 * 33 DIV - 65 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-9488
SELECT ALL 33 * 33 / - 65 AS col1
----
-16

query II rowsort
SELECT - 80 * + 59 AS col2, 97 AS col1
----
-4720
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9490
SELECT CAST( NULL AS SIGNED ) * + 17 / - + 7 + - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9490
SELECT CAST ( NULL AS INTEGER ) * + 17 / - + 7 + - - COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT - 65 * - + 27
----
1755

query I rowsort
SELECT ALL + ( - - 93 ) AS col0
----
93

query I rowsort
SELECT ALL - 83 * + 74
----
-6142

query I rowsort
SELECT - 50 + - 77 + + 37 AS col2
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-9495
SELECT DISTINCT - 80 * 55 AS col0, COUNT( * ) AS col0
----
-4400
1

skipif mysql # not compatible
query II rowsort label-9495
SELECT DISTINCT - 80 * 55 AS col0, COUNT ( * ) AS col0
----
-4400
1

query I rowsort
SELECT - CASE + 67 WHEN + ( + 44 ) THEN - 67 WHEN - 65 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT - + 10 + 9 * - + COUNT( - 94 ) + - COUNT( * ) + 17 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-9497
SELECT - + 10 + 9 * - + COUNT ( - 94 ) + - COUNT ( * ) + 17 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT - NULLIF ( - - 47, - 25 * - 10 * - 84 * + - MIN( DISTINCT + - 46 ) / + 22 - + 62 * + - MIN( - 83 ) + - 82 )
----
-47

skipif mysql # not compatible
query I rowsort label-9498
SELECT - NULLIF ( - - 47, - 25 * - 10 * - 84 * + - MIN ( DISTINCT + - 46 ) / + 22 - + 62 * + - MIN ( - 83 ) + - 82 )
----
-47

query I rowsort
SELECT ALL - ( 79 ) + - - 75 + - 53 AS col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9500
SELECT DISTINCT - MAX( ALL + - ( 97 ) )
----
97

skipif mysql # not compatible
query I rowsort label-9500
SELECT DISTINCT - MAX ( ALL + - ( 97 ) )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9501
SELECT ALL + + 77 + - + MAX( 54 )
----
23

skipif mysql # not compatible
query I rowsort label-9501
SELECT ALL + + 77 + - + MAX ( 54 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9502
SELECT ALL - COUNT( DISTINCT - + 37 ) + + 72
----
71

skipif mysql # not compatible
query I rowsort label-9502
SELECT ALL - COUNT ( DISTINCT - + 37 ) + + 72
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9503
SELECT DISTINCT + + 35 + - 66 - - CAST( NULL AS SIGNED ) * + 88 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9503
SELECT DISTINCT + + 35 + - 66 - - CAST ( NULL AS INTEGER ) * + 88 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9504
SELECT DISTINCT + 64 DIV - ( 92 ) * + + COUNT( * ) * 74
----
0

skipif mysql # not compatible
query I rowsort label-9504
SELECT DISTINCT + 64 / - ( 92 ) * + + COUNT ( * ) * 74
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9505
SELECT DISTINCT - 53 + + - 19, COUNT( * ) * - 21 AS col0
----
-72
-21

skipif mysql # not compatible
query II rowsort label-9505
SELECT DISTINCT - 53 + + - 19, COUNT ( * ) * - 21 AS col0
----
-72
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-9506
SELECT ALL + 95 + + ( - 36 ) - + 22 DIV + 56 * 79 AS col1
----
59

skipif mysql # not compatible
query I rowsort label-9506
SELECT ALL + 95 + + ( - 36 ) - + 22 / + 56 * 79 AS col1
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-9507
SELECT + 17 DIV - 68 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9507
SELECT + 17 / - 68 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT + + 9 * + 82 * - + COUNT( * ) AS col1
----
-738

skipif mysql # not compatible
query I rowsort label-9508
SELECT + + 9 * + 82 * - + COUNT ( * ) AS col1
----
-738

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9509
SELECT DISTINCT + 3 DIV - 39 - + ( - 92 ) + + - COUNT( * ) - + SUM( ALL 16 ) * - 34 AS col1
----
635

skipif mysql # not compatible
query I rowsort label-9509
SELECT DISTINCT + 3 / - 39 - + ( - 92 ) + + - COUNT ( * ) - + SUM ( ALL 16 ) * - 34 AS col1
----
635

query II rowsort
SELECT - ( - - 89 ) AS col1, + 88
----
-89
88

query II rowsort
SELECT ALL + 70 * - 57, + 89 AS col2
----
-3990
89

onlyif mysql # DIV for integer division: 
query I rowsort label-9512
SELECT - + 65 DIV + 86
----
0

skipif mysql # not compatible
query I rowsort label-9512
SELECT - + 65 / + 86
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9513
SELECT ALL + + COUNT( * ) - - 59 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-9513
SELECT ALL + + COUNT ( * ) - - 59 AS col2
----
60

query I rowsort
SELECT ALL 36 - + 78 AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9515
SELECT ALL MAX( ALL - 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-9515
SELECT ALL MAX ( ALL - 92 )
----
-92

query I rowsort
SELECT + 46 * - 85 AS col2
----
-3910

query I rowsort
SELECT + ( - + 71 ) AS col2
----
-71

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9518
SELECT CAST( CAST( - 52 AS DECIMAL ) AS SIGNED ) AS col0, + CAST( NULL AS DECIMAL ) + 73 AS col2
----
-52
NULL

skipif mysql # not compatible
query II rowsort label-9518
SELECT CAST ( CAST ( - 52 AS REAL ) AS INTEGER ) AS col0, + CAST ( NULL AS REAL ) + 73 AS col2
----
-52
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9519
SELECT CAST( COALESCE ( 62, - 92 / - 84 / - 34 / + NULLIF ( 58, - - COALESCE ( + 35, + 29 + 84 + - 71, + ( + 10 ) - - + 7, 66 ) * - MAX( DISTINCT - + 53 ) * + - 63 + + - 29 + + - 81 ) * - 11 - 5 + + 88 ) AS SIGNED ), 40 + - + COUNT( * ) + SUM( - 56 ) + 80 AS col1
----
62
63

skipif mysql # not compatible
query II rowsort label-9519
SELECT CAST ( COALESCE ( 62, - 92 / - 84 / - 34 / + NULLIF ( 58, - - COALESCE ( + 35, + 29 + 84 + - 71, + ( + 10 ) - - + 7, 66 ) * - MAX ( DISTINCT - + 53 ) * + - 63 + + - 29 + + - 81 ) * - 11 - 5 + + 88 ) AS INTEGER ), 40 + - + COUNT ( * ) + SUM ( - 56 ) + 80 AS col1
----
62
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9520
SELECT 50 / + + 20 + - CAST( NULL AS SIGNED ) + - 3 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9520
SELECT 50 / + + 20 + - CAST ( NULL AS INTEGER ) + - 3 AS col0
----
NULL

query I rowsort
SELECT + 28 * 31
----
868

onlyif mysql # aggregate syntax: 
query I rowsort label-9522
SELECT + ( ( - NULLIF ( - ( ( - + 39 ) ), 63 ) ) ) + + 38 + ( - 33 ) * + 52 + + COUNT( * ) + COUNT( * ) * + + 0
----
-1716

skipif mysql # not compatible
query I rowsort label-9522
SELECT + ( ( - NULLIF ( - ( ( - + 39 ) ), 63 ) ) ) + + 38 + ( - 33 ) * + 52 + + COUNT ( * ) + COUNT ( * ) * + + 0
----
-1716

onlyif mysql # aggregate syntax: 
query I rowsort label-9523
SELECT ALL 74 * - MAX( - - 7 ) AS col0
----
-518

skipif mysql # not compatible
query I rowsort label-9523
SELECT ALL 74 * - MAX ( - - 7 ) AS col0
----
-518

onlyif mysql # DIV for integer division: 
query I rowsort label-9524
SELECT ALL 86 DIV - 5 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-9524
SELECT ALL 86 / - 5 AS col2
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9525
SELECT DISTINCT 3 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9525
SELECT DISTINCT 3 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 38 * - - 64
----
2432

query I rowsort
SELECT - 50 * + 47
----
-2350

onlyif mysql # aggregate syntax: 
query II rowsort label-9528
SELECT ( + - ( 47 ) ) AS col1, 38 * - CASE - 41 WHEN 26 THEN - COUNT( * ) + - + 87 * - AVG ( 48 ) * + ( + 41 ) + + 64 END - 73
----
-47
NULL

skipif mysql # not compatible
query II rowsort label-9528
SELECT ( + - ( 47 ) ) AS col1, 38 * - CASE - 41 WHEN 26 THEN - COUNT ( * ) + - + 87 * - AVG ( 48 ) * + ( + 41 ) + + 64 END - 73
----
-47
NULL

query I rowsort
SELECT - 26 * 9 * + 58
----
-13572

query I rowsort
SELECT ALL 87 * + 87 + ( + 0 ) AS col1
----
7569

query I rowsort
SELECT + 38 - ( + + 76 ) AS col1
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9532
SELECT + CAST( - + 30 AS SIGNED ) col2
----
-30

skipif mysql # not compatible
query I rowsort label-9532
SELECT + CAST ( - + 30 AS INTEGER ) col2
----
-30

query I rowsort
SELECT COALESCE ( COALESCE ( + 78, 18 * - 44 + - 65 ), - - 1 ) AS col2
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9534
SELECT + CAST( NULL AS SIGNED ) / + 14 + + 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9534
SELECT + CAST ( NULL AS INTEGER ) / + 14 + + 31 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9535
SELECT ALL - + 61 * - 30 + + 24 + - 54 + 71 * - COUNT( ALL - + 36 ) + + + NULLIF ( - CAST( + + 51 AS SIGNED ), 97 )
----
1678

skipif mysql # not compatible
query I rowsort label-9535
SELECT ALL - + 61 * - 30 + + 24 + - 54 + 71 * - COUNT ( ALL - + 36 ) + + + NULLIF ( - CAST ( + + 51 AS INTEGER ), 97 )
----
1678

query I rowsort
SELECT + 52 * + 1 * - COALESCE ( - 20, - + 24, - + 90 * + 42 * - 6 ) - + ( - 97 ) AS col0
----
1137

onlyif mysql # aggregate syntax: 
query I rowsort label-9537
SELECT ALL - COUNT( * ) * + 23 + COALESCE ( - 29, + COUNT( DISTINCT 23 ) ) + - 31
----
-83

skipif mysql # not compatible
query I rowsort label-9537
SELECT ALL - COUNT ( * ) * + 23 + COALESCE ( - 29, + COUNT ( DISTINCT 23 ) ) + - 31
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-9538
SELECT COUNT( * ) col0, - 88 AS col1
----
1
-88

skipif mysql # not compatible
query II rowsort label-9538
SELECT COUNT ( * ) col0, - 88 AS col1
----
1
-88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9539
SELECT - - 4 - - ( 46 ) col0, NULLIF ( - ( - ( - 14 ) ), - CAST( NULL AS SIGNED ) * 34 * - + 37 / - 55 ) AS col2
----
50
-14

skipif mysql # not compatible
query II rowsort label-9539
SELECT - - 4 - - ( 46 ) col0, NULLIF ( - ( - ( - 14 ) ), - CAST ( NULL AS INTEGER ) * 34 * - + 37 / - 55 ) AS col2
----
50
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9540
SELECT - + COALESCE ( COUNT( * ), COUNT( * ) DIV + - SUM( - 14 ) ) * - ( - 80 ) * - COUNT( * ) + + COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-9540
SELECT - + COALESCE ( COUNT ( * ), COUNT ( * ) / + - SUM ( - 14 ) ) * - ( - 80 ) * - COUNT ( * ) + + COUNT ( * )
----
81

query I rowsort
SELECT ALL - - 45 + - 8
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-9542
SELECT 73 AS col2, SUM( DISTINCT - - 85 ) * + ( - + 46 ) * - + CASE - - 63 WHEN + 75 - 43 THEN NULL WHEN MAX( + 90 ) THEN - - ( COUNT( * ) ) WHEN 58 THEN NULL END / + + 24 / - + 29 * - COUNT( * ) + - - ( + - 68 ) + 8
----
73
NULL

skipif mysql # not compatible
query II rowsort label-9542
SELECT 73 AS col2, SUM ( DISTINCT - - 85 ) * + ( - + 46 ) * - + CASE - - 63 WHEN + 75 - 43 THEN NULL WHEN MAX ( + 90 ) THEN - - ( COUNT ( * ) ) WHEN 58 THEN NULL END / + + 24 / - + 29 * - COUNT ( * ) + - - ( + - 68 ) + 8
----
73
NULL

query I rowsort
SELECT ALL + + ( - CASE - 55 WHEN + 83 + + 76 THEN - 20 * + - 31 ELSE - 14 + + + 85 END ) * 9 * - ( + 66 )
----
42174

query I rowsort
SELECT 83 * 36 + + 2 + 72 AS col1
----
3062

query I rowsort
SELECT ALL + + 78 * + 28
----
2184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9546
SELECT DISTINCT NULLIF ( + NULLIF ( - COALESCE ( - - 54, ( + 37 ) ), 50 + - CAST( - - ( AVG ( ALL - - 68 ) ) AS SIGNED ) * + - 81 * - - 31 ), + - 31 )
----
-54

skipif mysql # not compatible
query I rowsort label-9546
SELECT DISTINCT NULLIF ( + NULLIF ( - COALESCE ( - - 54, ( + 37 ) ), 50 + - CAST ( - - ( AVG ( ALL - - 68 ) ) AS INTEGER ) * + - 81 * - - 31 ), + - 31 )
----
-54

query I rowsort
SELECT ALL - CASE - 4 WHEN 67 - - + 90 - 10 THEN - 58 END AS col1
----
NULL

query I rowsort
SELECT 54 + + - 64 AS col1
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9549
SELECT ALL + CASE - 20 WHEN - - MIN( - 11 ) + - 76 - + CAST( NULL AS SIGNED ) / + 51 THEN NULL WHEN + + 20 THEN + - 25 END - - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-9549
SELECT ALL + CASE - 20 WHEN - - MIN ( - 11 ) + - 76 - + CAST ( NULL AS INTEGER ) / + 51 THEN NULL WHEN + + 20 THEN + - 25 END - - 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9550
SELECT 33 * - COUNT( + 60 )
----
-33

skipif mysql # not compatible
query I rowsort label-9550
SELECT 33 * - COUNT ( + 60 )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9551
SELECT SUM( + 93 ) * - COUNT( * ) * 91 AS col2
----
-8463

skipif mysql # not compatible
query I rowsort label-9551
SELECT SUM ( + 93 ) * - COUNT ( * ) * 91 AS col2
----
-8463

onlyif mysql # DIV for integer division: 
query I rowsort label-9552
SELECT DISTINCT + 73 DIV - 83
----
0

skipif mysql # not compatible
query I rowsort label-9552
SELECT DISTINCT + 73 / - 83
----
0

query I rowsort
SELECT ALL + 55 * - + 22 col2
----
-1210

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9554
SELECT 29 AS col0, 4 - + - COUNT( * ) - + 51 + + 63 + 27 DIV - 30 AS col1
----
29
17

skipif mysql # not compatible
query II rowsort label-9554
SELECT 29 AS col0, 4 - + - COUNT ( * ) - + 51 + + 63 + 27 / - 30 AS col1
----
29
17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9555
SELECT DISTINCT 37 AS col2, COALESCE ( 55, + CAST( - - 99 AS SIGNED ) + + - 66 + 45 )
----
37
55

skipif mysql # not compatible
query II rowsort label-9555
SELECT DISTINCT 37 AS col2, COALESCE ( 55, + CAST ( - - 99 AS INTEGER ) + + - 66 + 45 )
----
37
55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9556
SELECT - 39 AS col0, + ( - + CAST( NULL AS SIGNED ) )
----
-39
NULL

skipif mysql # not compatible
query II rowsort label-9556
SELECT - 39 AS col0, + ( - + CAST ( NULL AS INTEGER ) )
----
-39
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9557
SELECT ALL 98 * - - COUNT( * ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-9557
SELECT ALL 98 * - - COUNT ( * ) AS col0
----
98

query I rowsort
SELECT 68 * 63 AS col2
----
4284

onlyif mysql # aggregate syntax: 
query II rowsort label-9559
SELECT + 96 col1, - 19 + 61 + - 93 + - 43 * + + COUNT( * ) * - 26 - + 22 * - COUNT( * ) * 54 - + + 51 * 76
----
96
-1621

skipif mysql # not compatible
query II rowsort label-9559
SELECT + 96 col1, - 19 + 61 + - 93 + - 43 * + + COUNT ( * ) * - 26 - + 22 * - COUNT ( * ) * 54 - + + 51 * 76
----
96
-1621

onlyif mysql # aggregate syntax: 
query II rowsort label-9560
SELECT ALL - 51 AS col0, + COUNT( * )
----
-51
1

skipif mysql # not compatible
query II rowsort label-9560
SELECT ALL - 51 AS col0, + COUNT ( * )
----
-51
1

query I rowsort
SELECT 58 * - 99 * + + 66 AS col0
----
-378972

onlyif mysql # aggregate syntax: 
query I rowsort label-9562
SELECT SUM( + 40 ) * + + 75
----
3000

skipif mysql # not compatible
query I rowsort label-9562
SELECT SUM ( + 40 ) * + + 75
----
3000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9563
SELECT DISTINCT 97 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9563
SELECT DISTINCT 97 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 56 + 45
----
101

query II rowsort
SELECT 45 AS col0, + 28
----
45
28

query II rowsort
SELECT 53, 66 AS col2
----
53
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9567
SELECT DISTINCT + 66 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9567
SELECT DISTINCT + 66 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT DISTINCT 26 + + COUNT( * ) * + - 6 + + 89 + - 41 * 51 + + ( + - 34 )
----
-2016

skipif mysql # not compatible
query I rowsort label-9568
SELECT DISTINCT 26 + + COUNT ( * ) * + - 6 + + 89 + - 41 * 51 + + ( + - 34 )
----
-2016

query I rowsort
SELECT DISTINCT 84 * + - 66 col0
----
-5544

query I rowsort
SELECT ALL + 70 * - 60 + 61
----
-4139

onlyif mysql # aggregate syntax: 
query I rowsort label-9571
SELECT - 11 * - CASE 52 WHEN + COUNT( * ) * 35 + ( + 55 ) * + COUNT( * ) THEN + 16 * 56 * - + 97 + + 64 * + - 8 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9571
SELECT - 11 * - CASE 52 WHEN + COUNT ( * ) * 35 + ( + 55 ) * + COUNT ( * ) THEN + 16 * 56 * - + 97 + + 64 * + - 8 END
----
NULL

query I rowsort
SELECT DISTINCT 51 * 12
----
612

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT ALL 55 - + - COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-9573
SELECT ALL 55 - + - COUNT ( * )
----
56

query I rowsort
SELECT + 30 * - 58 + 70
----
-1670

query II rowsort
SELECT ALL 31 AS col0, - 89 AS col2
----
31
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-9576
SELECT 8 DIV 35 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9576
SELECT 8 / 35 AS col0
----
0

query II rowsort
SELECT 51 + 67, + 71 AS col2
----
118
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT ALL COUNT( DISTINCT - 96 )
----
1

skipif mysql # not compatible
query I rowsort label-9578
SELECT ALL COUNT ( DISTINCT - 96 )
----
1

query I rowsort
SELECT DISTINCT + 76 * + + 53
----
4028

query II rowsort
SELECT 69, + 55 AS col0
----
69
55

query I rowsort
SELECT DISTINCT - 1 * + 84
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT DISTINCT COUNT( * ) - + 61 * - 79
----
4820

skipif mysql # not compatible
query I rowsort label-9582
SELECT DISTINCT COUNT ( * ) - + 61 * - 79
----
4820

onlyif mysql # aggregate syntax: 
query II rowsort label-9583
SELECT 75 AS col2, COUNT( * ) * 70 * + ( 88 ) * + - NULLIF ( 80, - 73 )
----
75
-492800

skipif mysql # not compatible
query II rowsort label-9583
SELECT 75 AS col2, COUNT ( * ) * 70 * + ( 88 ) * + - NULLIF ( 80, - 73 )
----
75
-492800

query I rowsort
SELECT DISTINCT ( - 11 ) col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT + 46 * COUNT( * ) + + + 39 - - 27 * + 14 AS col2
----
463

skipif mysql # not compatible
query I rowsort label-9585
SELECT + 46 * COUNT ( * ) + + + 39 - - 27 * + 14 AS col2
----
463

query I rowsort
SELECT ALL + 2 * + 60 * + + 4 col2
----
480

query I rowsort
SELECT ( + + 4 ) - - + 19 + - ( + + 73 ) AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9588
SELECT 78 * COUNT( * ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-9588
SELECT 78 * COUNT ( * ) AS col2
----
78

query II rowsort
SELECT 52 - + 84, - 30 AS col1
----
-32
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9590
SELECT DISTINCT CAST( + - ( 24 ) AS SIGNED ) * - 69 AS col0
----
1656

skipif mysql # not compatible
query I rowsort label-9590
SELECT DISTINCT CAST ( + - ( 24 ) AS INTEGER ) * - 69 AS col0
----
1656

query I rowsort
SELECT DISTINCT + 42 + - 66
----
-24

query I rowsort
SELECT DISTINCT + 69 * 60 col2
----
4140

query I rowsort
SELECT 3 * - + 4
----
-12

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9594
SELECT ALL COALESCE ( + 48, 89, + CAST( NULL AS SIGNED ) * - + 20 ) * 14 DIV 81 + 73, 2 - + + 81 AS col2
----
81
-79

skipif mysql # not compatible
query II rowsort label-9594
SELECT ALL COALESCE ( + 48, 89, + CAST ( NULL AS INTEGER ) * - + 20 ) * 14 / 81 + 73, 2 - + + 81 AS col2
----
81
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9595
SELECT ALL 4 * - + 3 + ( + MIN( DISTINCT - + 62 ) ) - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9595
SELECT ALL 4 * - + 3 + ( + MIN ( DISTINCT - + 62 ) ) - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9596
SELECT + 23 DIV + 46 * + CAST( 96 AS SIGNED ) + 3 + + 3 - - 93 - + ( - ( - + 41 ) ) AS col1, 8
----
58
8

skipif mysql # not compatible
query II rowsort label-9596
SELECT + 23 / + 46 * + CAST ( 96 AS INTEGER ) + 3 + + 3 - - 93 - + ( - ( - + 41 ) ) AS col1, 8
----
58
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT SUM( - - ( + - 48 ) ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-9597
SELECT SUM ( - - ( + - 48 ) ) AS col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT ALL 73 * 66 + + - ( - 23 ) + + 10 * + 82 * - + 42 + + COUNT( * )
----
-29598

skipif mysql # not compatible
query I rowsort label-9598
SELECT ALL 73 * 66 + + - ( - 23 ) + + 10 * + 82 * - + 42 + + COUNT ( * )
----
-29598

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT ALL 85 * + - COUNT( 22 ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-9599
SELECT ALL 85 * + - COUNT ( 22 ) AS col2
----
-85

query I rowsort
SELECT DISTINCT NULLIF ( 67, + + 0 ) * - 44 AS col2
----
-2948

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9601
SELECT - 43 * + CAST( NULL AS SIGNED ) * - 42 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9601
SELECT - 43 * + CAST ( NULL AS INTEGER ) * - 42 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT DISTINCT + - 28 * + + COUNT( * ) * 2 col0
----
-56

skipif mysql # not compatible
query I rowsort label-9602
SELECT DISTINCT + - 28 * + + COUNT ( * ) * 2 col0
----
-56

query I rowsort
SELECT - 9 - + + ( 22 ) AS col2
----
-31

query I rowsort
SELECT - + 27 - - 17 * - + 2 AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9605
SELECT ALL + CASE - - 91 WHEN + 28 - - 6 THEN - COUNT( * ) / - 66 / + 66 + - 7 * + 15 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9605
SELECT ALL + CASE - - 91 WHEN + 28 - - 6 THEN - COUNT ( * ) / - 66 / + 66 + - 7 * + 15 END AS col1
----
NULL

query I rowsort
SELECT + - 3 * 96 + 3 AS col0
----
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-9607
SELECT ALL + 92 * - CASE ( - 63 ) WHEN + COUNT( * ) THEN NULL WHEN 84 THEN NULL ELSE - COUNT( * ) END
----
92

skipif mysql # not compatible
query I rowsort label-9607
SELECT ALL + 92 * - CASE ( - 63 ) WHEN + COUNT ( * ) THEN NULL WHEN 84 THEN NULL ELSE - COUNT ( * ) END
----
92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9608
SELECT ALL CAST( NULL AS DECIMAL ) / 82 + + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-9608
SELECT ALL CAST ( NULL AS REAL ) / 82 + + 81
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9609
SELECT - 15 * AVG ( ALL + - NULLIF ( - 16, + + 63 + ( - 57 ) ) ) + - 65 - - - 9 - 66 + - MIN( DISTINCT - 47 ) * - + COUNT( * ) + - 18 * - - CAST( NULL AS SIGNED ) + - 6 + + ( 47 ) + 73 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9609
SELECT - 15 * AVG ( ALL + - NULLIF ( - 16, + + 63 + ( - 57 ) ) ) + - 65 - - - 9 - 66 + - MIN ( DISTINCT - 47 ) * - + COUNT ( * ) + - 18 * - - CAST ( NULL AS INTEGER ) + - 6 + + ( 47 ) + 73 AS col0
----
NULL

query I rowsort
SELECT + ( + 94 ) * 52 * - 71 * + 49 + + - 20 AS col0
----
-17005372

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9611
SELECT ALL CAST( + 3 AS SIGNED ) * - + 81 + - COUNT( * ) + + 62
----
-182

skipif mysql # not compatible
query I rowsort label-9611
SELECT ALL CAST ( + 3 AS INTEGER ) * - + 81 + - COUNT ( * ) + + 62
----
-182

query I rowsort
SELECT + 39 + + 87 AS col0
----
126

onlyif mysql # DIV for integer division: 
query I rowsort label-9613
SELECT + - 20 DIV + 56 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9613
SELECT + - 20 / + 56 AS col2
----
0

query I rowsort
SELECT - ( 11 ) - + 0 * - 37 - + + 42
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9615
SELECT + 87 + + + 48 * + + 35 * - 9 / 79 + + - AVG ( + 51 ) * - CAST( NULL AS SIGNED ), 73 + 67 AS col2
----
NULL
140

skipif mysql # not compatible
query II rowsort label-9615
SELECT + 87 + + + 48 * + + 35 * - 9 / 79 + + - AVG ( + 51 ) * - CAST ( NULL AS INTEGER ), 73 + 67 AS col2
----
NULL
140

onlyif mysql # DIV for integer division: 
query II rowsort label-9616
SELECT ALL 69 + 60 DIV - + 63, 98 * - - 35 AS col0
----
69
3430

skipif mysql # not compatible
query II rowsort label-9616
SELECT ALL 69 + 60 / - + 63, 98 * - - 35 AS col0
----
69
3430

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9617
SELECT ALL - 92 + - CAST( - - ( + 24 ) AS SIGNED ) AS col2
----
-116

skipif mysql # not compatible
query I rowsort label-9617
SELECT ALL - 92 + - CAST ( - - ( + 24 ) AS INTEGER ) AS col2
----
-116

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9618
SELECT + NULLIF ( 32, - 25 - - 90 - + 77 ) * - CAST( ( - 15 ) AS SIGNED ), 41 DIV 35 * + - 51 AS col1
----
480
-51

skipif mysql # not compatible
query II rowsort label-9618
SELECT + NULLIF ( 32, - 25 - - 90 - + 77 ) * - CAST ( ( - 15 ) AS INTEGER ), 41 / 35 * + - 51 AS col1
----
480
-51

query I rowsort
SELECT + NULLIF ( - 42, + 20 ) + - 31 AS col0
----
-73

query I rowsort
SELECT ALL - 20 * - + NULLIF ( + - 16, ( - ( 56 ) ) ) col0
----
-320

onlyif mysql # DIV for integer division: 
query I rowsort label-9621
SELECT ALL - 20 DIV COALESCE ( - 61, + - 33 ) + + 11 + ( + - 62 ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-9621
SELECT ALL - 20 / COALESCE ( - 61, + - 33 ) + + 11 + ( + - 62 ) AS col0
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9622
SELECT ALL + CAST( NULL AS SIGNED ) / + COUNT( * ) * ( - 12 ) / + + 28 * - MAX( + - 61 ) - + COALESCE ( + 45, + - 81 * + 57 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9622
SELECT ALL + CAST ( NULL AS INTEGER ) / + COUNT ( * ) * ( - 12 ) / + + 28 * - MAX ( + - 61 ) - + COALESCE ( + 45, + - 81 * + 57 ) AS col2
----
NULL

query I rowsort
SELECT - 67 * - 33 AS col2
----
2211

query I rowsort
SELECT ALL 73 * 43
----
3139

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9625
SELECT 48 DIV 35 + 14 + 63 * - 36 * 57 * CAST( - 93 AS SIGNED ) + + NULLIF ( - 31, - 25 ) AS col0
----
12022652

skipif mysql # not compatible
query I rowsort label-9625
SELECT 48 / 35 + 14 + 63 * - 36 * 57 * CAST ( - 93 AS INTEGER ) + + NULLIF ( - 31, - 25 ) AS col0
----
12022652

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9626
SELECT ALL + MIN( ALL - + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9626
SELECT ALL + MIN ( ALL - + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT - 41 + - 48
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9628
SELECT ALL + + NULLIF ( - CAST( - 27 AS SIGNED ), - + COALESCE ( COUNT( * ), - 53 * + 34 + - CAST( - - 98 AS SIGNED ) + + 28 + 30 ) )
----
27

skipif mysql # not compatible
query I rowsort label-9628
SELECT ALL + + NULLIF ( - CAST ( - 27 AS INTEGER ), - + COALESCE ( COUNT ( * ), - 53 * + 34 + - CAST ( - - 98 AS INTEGER ) + + 28 + 30 ) )
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9629
SELECT DISTINCT - COUNT( * ) DIV - COALESCE ( - 12, + + NULLIF ( + - 46, CAST( - MIN( DISTINCT - + 73 ) AS SIGNED ) * - 70 ) + + + 29 )
----
0

skipif mysql # not compatible
query I rowsort label-9629
SELECT DISTINCT - COUNT ( * ) / - COALESCE ( - 12, + + NULLIF ( + - 46, CAST ( - MIN ( DISTINCT - + 73 ) AS INTEGER ) * - 70 ) + + + 29 )
----
0

query I rowsort
SELECT + + 52 * - ( 10 ) - + 7 AS col1
----
-527

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9631
SELECT - - 81 + + COALESCE ( ( + ( + CAST( NULL AS SIGNED ) ) ), 81 + 1 - - + ( - 20 ) ) - 73 - + ( + 53 ) + + 29 * - 55 DIV + COUNT( * )
----
-1578

skipif mysql # not compatible
query I rowsort label-9631
SELECT - - 81 + + COALESCE ( ( + ( + CAST ( NULL AS INTEGER ) ) ), 81 + 1 - - + ( - 20 ) ) - 73 - + ( + 53 ) + + 29 * - 55 / + COUNT ( * )
----
-1578

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9632
SELECT ALL - MIN( - 32 ) DIV - 60 * + 35 + 14 + - 2 * - 93 * - + 77 + - 76 * - COUNT( * )
----
-14232

skipif mysql # not compatible
query I rowsort label-9632
SELECT ALL - MIN ( - 32 ) / - 60 * + 35 + 14 + - 2 * - 93 * - + 77 + - 76 * - COUNT ( * )
----
-14232

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT + + NULLIF ( - MIN( ALL 95 ), - 25 * + 35 ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-9633
SELECT + + NULLIF ( - MIN ( ALL 95 ), - 25 * + 35 ) AS col1
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9634
SELECT ALL + - ( ( - + CAST( NULL AS SIGNED ) ) ) * - + 46 * 30
----
NULL

skipif mysql # not compatible
query I rowsort label-9634
SELECT ALL + - ( ( - + CAST ( NULL AS INTEGER ) ) ) * - + 46 * 30
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9635
SELECT + 84 + + COUNT( * ) * 21 * - 46
----
-882

skipif mysql # not compatible
query I rowsort label-9635
SELECT + 84 + + COUNT ( * ) * 21 * - 46
----
-882

onlyif mysql # aggregate syntax: 
query I rowsort label-9636
SELECT ALL + COALESCE ( + - 1, + 83 * + SUM( - - 41 ) ) * - + 9 + + 23 + + - 40 + - 38
----
-46

skipif mysql # not compatible
query I rowsort label-9636
SELECT ALL + COALESCE ( + - 1, + 83 * + SUM ( - - 41 ) ) * - + 9 + + 23 + + - 40 + - 38
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9637
SELECT DISTINCT + CAST( - + 15 AS SIGNED )
----
-15

skipif mysql # not compatible
query I rowsort label-9637
SELECT DISTINCT + CAST ( - + 15 AS INTEGER )
----
-15

query II rowsort
SELECT ALL 34, 57 AS col2
----
34
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT + CASE + + 0 WHEN + 73 THEN NULL ELSE + MIN( + COALESCE ( + 29, - 75 + - - 91 ) ) END
----
29

skipif mysql # not compatible
query I rowsort label-9639
SELECT + CASE + + 0 WHEN + 73 THEN NULL ELSE + MIN ( + COALESCE ( + 29, - 75 + - - 91 ) ) END
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9640
SELECT ALL + CAST( NULL AS SIGNED ) * + + 12 + MAX( 44 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9640
SELECT ALL + CAST ( NULL AS INTEGER ) * + + 12 + MAX ( 44 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9641
SELECT SUM( ALL + + 66 )
----
66

skipif mysql # not compatible
query I rowsort label-9641
SELECT SUM ( ALL + + 66 )
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9642
SELECT ALL 16 * - CAST( NULL AS SIGNED ) + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-9642
SELECT ALL 16 * - CAST ( NULL AS INTEGER ) + 17
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9643
SELECT MAX( DISTINCT 73 )
----
73

skipif mysql # not compatible
query I rowsort label-9643
SELECT MAX ( DISTINCT 73 )
----
73

query I rowsort
SELECT ALL + 96 + 90 col2
----
186

onlyif mysql # DIV for integer division: 
query II rowsort label-9645
SELECT - 28 DIV - 91 AS col2, + 75 * 94
----
0
7050

skipif mysql # not compatible
query II rowsort label-9645
SELECT - 28 / - 91 AS col2, + 75 * 94
----
0
7050

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9646
SELECT ALL COUNT( * ) + + COUNT( - 38 ) * + CASE + COALESCE ( - 94, + - 23, - + 70 ) WHEN 7 + - + 97 + - 99 * + + ( + 6 ) * - 93 * - 67 THEN NULL WHEN - + 11 + + + 25 THEN - + COUNT( * ) + - MIN( - CAST( NULL AS DECIMAL ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9646
SELECT ALL COUNT ( * ) + + COUNT ( - 38 ) * + CASE + COALESCE ( - 94, + - 23, - + 70 ) WHEN 7 + - + 97 + - 99 * + + ( + 6 ) * - 93 * - 67 THEN NULL WHEN - + 11 + + + 25 THEN - + COUNT ( * ) + - MIN ( - CAST ( NULL AS REAL ) ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9647
SELECT + CAST( NULL AS SIGNED ) - + - 43 + + - 57 + + 59, - 39 DIV + 99 * - 99 * - CASE - + 21 WHEN + - 43 * - 31 + - NULLIF ( 12, - 89 ) - MIN( DISTINCT 76 ) THEN + 16 * - - 61 + - 98 + + 90 DIV 44 * COUNT( - 39 ) ELSE + + 73 + + 88 * + 5 END AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-9647
SELECT + CAST ( NULL AS INTEGER ) - + - 43 + + - 57 + + 59, - 39 / + 99 * - 99 * - CASE - + 21 WHEN + - 43 * - 31 + - NULLIF ( 12, - 89 ) - MIN ( DISTINCT 76 ) THEN + 16 * - - 61 + - 98 + + 90 / 44 * COUNT ( - 39 ) ELSE + + 73 + + 88 * + 5 END AS col2
----
NULL
0

query I rowsort
SELECT ALL COALESCE ( - 4, + 44 * 33 ) * 28 AS col1
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT + SUM( DISTINCT + 16 ) - + + 72 * - 96 AS col1
----
6928

skipif mysql # not compatible
query I rowsort label-9649
SELECT + SUM ( DISTINCT + 16 ) - + + 72 * - 96 AS col1
----
6928

query I rowsort
SELECT + 74 * + 5
----
370

query I rowsort
SELECT ALL 80 - - 46 * - ( 58 ) - + 76
----
-2664

query I rowsort
SELECT DISTINCT COALESCE ( 45, + - 6, + - 2 + + - 99 * + + 24 )
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-9653
SELECT + 68 * 76, + 50 * - COUNT( * ) AS col2
----
5168
-50

skipif mysql # not compatible
query II rowsort label-9653
SELECT + 68 * 76, + 50 * - COUNT ( * ) AS col2
----
5168
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9654
SELECT + ( - + 14 ) * + 86 + - 10 * + COUNT( * )
----
-1214

skipif mysql # not compatible
query I rowsort label-9654
SELECT + ( - + 14 ) * + 86 + - 10 * + COUNT ( * )
----
-1214

query I rowsort
SELECT ALL + 91 * 34 * - 33 AS col1
----
-102102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9656
SELECT - 40 DIV + 58 + 44 * + COUNT( * ) + 37 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-9656
SELECT - 40 / + 58 + 44 * + COUNT ( * ) + 37 AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT DISTINCT - - 61 * + COUNT( * ) + 44 * + + 38 * - - 32 * + 4 AS col1
----
214077

skipif mysql # not compatible
query I rowsort label-9657
SELECT DISTINCT - - 61 * + COUNT ( * ) + 44 * + + 38 * - - 32 * + 4 AS col1
----
214077

query I rowsort
SELECT ALL + 47 * 69 AS col1
----
3243

query I rowsort
SELECT 6 * + 76
----
456

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT ALL - - MAX( - - 26 ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-9660
SELECT ALL - - MAX ( - - 26 ) AS col1
----
26

query I rowsort
SELECT DISTINCT - COALESCE ( - 76, + 74 ) AS col1
----
76

query I rowsort
SELECT DISTINCT 6 * + 34
----
204

query I rowsort
SELECT 85 * + - 7
----
-595

query I rowsort
SELECT + 54 * - - 0 + + 76 AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9665
SELECT ALL - MAX( + - 76 ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-9665
SELECT ALL - MAX ( + - 76 ) AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT - 7 - COUNT( * ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-9666
SELECT - 7 - COUNT ( * ) AS col2
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-9667
SELECT ALL + + 44 + + 17 DIV 61 * - COALESCE ( 97, - 92, - 60 * + 48 + + 24 * + 64 ) + + 94
----
138

skipif mysql # not compatible
query I rowsort label-9667
SELECT ALL + + 44 + + 17 / 61 * - COALESCE ( 97, - 92, - 60 * + 48 + + 24 * + 64 ) + + 94
----
138

query I rowsort
SELECT - 21 + - 40
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9669
SELECT 54 * COUNT( + 70 )
----
54

skipif mysql # not compatible
query I rowsort label-9669
SELECT 54 * COUNT ( + 70 )
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-9670
SELECT - 48 DIV + 92 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9670
SELECT - 48 / + 92 AS col0
----
0

query I rowsort
SELECT + 35 * 38 - - + 68 - - + 26 * - - 17 AS col0
----
1840

query I rowsort
SELECT DISTINCT + 10 + 44 AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9673
SELECT MAX( - + 25 ) + + SUM( 67 )
----
42

skipif mysql # not compatible
query I rowsort label-9673
SELECT MAX ( - + 25 ) + + SUM ( 67 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT DISTINCT - COUNT( * ) * - 11 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-9674
SELECT DISTINCT - COUNT ( * ) * - 11 AS col1
----
11

query I rowsort
SELECT 77 + + 31
----
108

query I rowsort
SELECT 87 + + 17 AS col0
----
104

query I rowsort
SELECT ALL + 93 - 53 AS col1
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9678
SELECT 2 * + CAST( - 38 AS SIGNED ) * + + 95 AS col2
----
-7220

skipif mysql # not compatible
query I rowsort label-9678
SELECT 2 * + CAST ( - 38 AS INTEGER ) * + + 95 AS col2
----
-7220

query I rowsort
SELECT 6 + + 87 AS col2
----
93

query I rowsort
SELECT ALL 62 - - 59
----
121

onlyif mysql # aggregate syntax: 
query II rowsort label-9681
SELECT - 3, + COUNT( * ) * + 49 AS col0
----
-3
49

skipif mysql # not compatible
query II rowsort label-9681
SELECT - 3, + COUNT ( * ) * + 49 AS col0
----
-3
49

query II rowsort
SELECT ALL 55 AS col1, 23 col0
----
55
23

query I rowsort
SELECT 92 * + + ( - - 39 ) AS col1
----
3588

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9684
SELECT DISTINCT COUNT( + + 68 ) * + COALESCE ( ( + + ( - ( 40 ) ) ), - 13 ) * - 86 * - - CAST( NULL AS SIGNED ) AS col0, 88 DIV - COUNT( * ) - + + 89
----
NULL
-177

skipif mysql # not compatible
query II rowsort label-9684
SELECT DISTINCT COUNT ( + + 68 ) * + COALESCE ( ( + + ( - ( 40 ) ) ), - 13 ) * - 86 * - - CAST ( NULL AS INTEGER ) AS col0, 88 / - COUNT ( * ) - + + 89
----
NULL
-177

query I rowsort
SELECT DISTINCT CASE - 59 WHEN + 13 * 31 + + + 96 THEN + 60 + + 75 ELSE + - 74 END * - 0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9686
SELECT NULLIF ( 65, + 93 * - 5 + - 17 * - + 24 - - CAST( + NULLIF ( 34, 68 * - + 78 ) AS SIGNED ) ) DIV 67
----
0

skipif mysql # not compatible
query I rowsort label-9686
SELECT NULLIF ( 65, + 93 * - 5 + - 17 * - + 24 - - CAST ( + NULLIF ( 34, 68 * - + 78 ) AS INTEGER ) ) / 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9687
SELECT COUNT( * ) + COUNT( * ) + + 69 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-9687
SELECT COUNT ( * ) + COUNT ( * ) + + 69 AS col0
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9688
SELECT DISTINCT + - 55 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9688
SELECT DISTINCT + - 55 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 89 + - + 44
----
-133

query II rowsort
SELECT ALL - 31, 34 col0
----
-31
34

onlyif mysql # DIV for integer division: 
query I rowsort label-9691
SELECT + 75 DIV + ( - - 5 ) + + 86 AS col0
----
101

skipif mysql # not compatible
query I rowsort label-9691
SELECT + 75 / + ( - - 5 ) + + 86 AS col0
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-9692
SELECT DISTINCT - - ( - COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9692
SELECT DISTINCT - - ( - COUNT ( * ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9693
SELECT + 39 + - - SUM( ALL 2 ) DIV - - 22 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-9693
SELECT + 39 + - - SUM ( ALL 2 ) / - - 22 AS col0
----
39

onlyif mysql # DIV for integer division: 
query II rowsort label-9694
SELECT ALL 8 + + 3 DIV + 22 * 22 + - + 8 AS col1, + 62
----
0
62

skipif mysql # not compatible
query II rowsort label-9694
SELECT ALL 8 + + 3 / + 22 * 22 + - + 8 AS col1, + 62
----
0
62

query I rowsort
SELECT DISTINCT + 2 * + + 62 AS col2
----
124

query I rowsort
SELECT ALL 35 + + 90
----
125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9697
SELECT - 5 + - + CASE - CAST( - 30 AS SIGNED ) WHEN 46 * - + 49 THEN - COUNT( * ) WHEN - 84 THEN + - SUM( - - 2 ) - + + 87 ELSE + 18 END * + 43, - 24 * + - 52 * - 62 AS col0
----
-779
-77376

skipif mysql # not compatible
query II rowsort label-9697
SELECT - 5 + - + CASE - CAST ( - 30 AS INTEGER ) WHEN 46 * - + 49 THEN - COUNT ( * ) WHEN - 84 THEN + - SUM ( - - 2 ) - + + 87 ELSE + 18 END * + 43, - 24 * + - 52 * - 62 AS col0
----
-779
-77376

query I rowsort
SELECT ALL 75 + - 93 + + 61
----
43

query I rowsort
SELECT - 19 * - - 62 AS col0
----
-1178

query I rowsort
SELECT ALL - 83 + + 31 AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9701
SELECT + COALESCE ( - 16, + - 79 + + 26 + + + ( COUNT( * ) ) - 74 - 49 + + - 5 * - - 84 ) * + - 76 + - ( - 70 )
----
1286

skipif mysql # not compatible
query I rowsort label-9701
SELECT + COALESCE ( - 16, + - 79 + + 26 + + + ( COUNT ( * ) ) - 74 - 49 + + - 5 * - - 84 ) * + - 76 + - ( - 70 )
----
1286

onlyif mysql # aggregate syntax: 
query I rowsort label-9702
SELECT 97 + + COUNT( * ) * 93 * - 69 + - 67
----
-6387

skipif mysql # not compatible
query I rowsort label-9702
SELECT 97 + + COUNT ( * ) * 93 * - 69 + - 67
----
-6387

query I rowsort
SELECT ALL 40 + - + 83
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9704
SELECT + SUM( - 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-9704
SELECT + SUM ( - 7 )
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9705
SELECT 6 + COALESCE ( 87, COALESCE ( - 4, + 50 - - - CAST( NULL AS SIGNED ), + 85 ) ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-9705
SELECT 6 + COALESCE ( 87, COALESCE ( - 4, + 50 - - - CAST ( NULL AS INTEGER ), + 85 ) ) AS col0
----
93

query I rowsort
SELECT 12 * - 40
----
-480

onlyif mysql # DIV for integer division: 
query I rowsort label-9707
SELECT DISTINCT + 88 DIV + 82
----
1

skipif mysql # not compatible
query I rowsort label-9707
SELECT DISTINCT + 88 / + 82
----
1

query I rowsort
SELECT ALL 4 - - 56 AS col1
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9709
SELECT ALL + ( - CAST( + + COUNT( * ) AS SIGNED ) ) - + + ( + COALESCE ( - COUNT( * ), - 96 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9709
SELECT ALL + ( - CAST ( + + COUNT ( * ) AS INTEGER ) ) - + + ( + COALESCE ( - COUNT ( * ), - 96 ) ) AS col2
----
0

query II rowsort
SELECT 2 * - - 64 AS col0, - 93
----
128
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9711
SELECT DISTINCT COUNT( DISTINCT 19 ) DIV + 12
----
0

skipif mysql # not compatible
query I rowsort label-9711
SELECT DISTINCT COUNT ( DISTINCT 19 ) / + 12
----
0

query I rowsort
SELECT + 39 + + 14
----
53

query II rowsort
SELECT - 1, + 30 + + 35 AS col0
----
-1
65

onlyif mysql # aggregate syntax: 
query II rowsort label-9714
SELECT ALL COUNT( * ) AS col0, - SUM( ALL + 30 )
----
1
-30

skipif mysql # not compatible
query II rowsort label-9714
SELECT ALL COUNT ( * ) AS col0, - SUM ( ALL + 30 )
----
1
-30

query I rowsort
SELECT ALL + 98 * 43 AS col0
----
4214

query II rowsort
SELECT - 32 * - 11 col1, + 86
----
352
86

query II rowsort
SELECT - 38 * 91 AS col1, - 10
----
-3458
-10

query I rowsort
SELECT - 8 - - 21 AS col1
----
13

query I rowsort
SELECT ALL COALESCE ( - 47, - 44 * - 0, - + 87 )
----
-47

query I rowsort
SELECT ALL CASE WHEN - 3 IS NOT NULL THEN NULL ELSE - - 57 * 85 + - + 78 - ( + 12 ) + 29 + + 58 / - - 67 / - + 91 * 53 * + - 69 END AS col0
----
NULL

query I rowsort
SELECT - 85 - COALESCE ( - 74, + 99, - CASE 76 WHEN - AVG ( ALL 72 ) THEN 55 END ) + 12 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9722
SELECT - 2 * 59 DIV - - 72
----
-1

skipif mysql # not compatible
query I rowsort label-9722
SELECT - 2 * 59 / - - 72
----
-1

query I rowsort
SELECT - 61 + - 26
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9724
SELECT ALL - MIN( ALL - 31 ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-9724
SELECT ALL - MIN ( ALL - 31 ) AS col0
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9725
SELECT ALL CAST( NULL AS SIGNED ) + + 94 - - 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9725
SELECT ALL CAST ( NULL AS INTEGER ) + + 94 - - 26 AS col2
----
NULL

query I rowsort
SELECT + 9 + - 92 AS col0
----
-83

query I rowsort
SELECT + + 70 - - 4 col2
----
74

query I rowsort
SELECT ALL + - ( + + ( + ( 31 ) ) ) + 45
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-9729
SELECT 18 AS col1, - ( + 2 ) + + 8 + MAX( DISTINCT - 81 ) * + 96 + - - 92 * - 44 AS col0
----
18
-11818

skipif mysql # not compatible
query II rowsort label-9729
SELECT 18 AS col1, - ( + 2 ) + + 8 + MAX ( DISTINCT - 81 ) * + 96 + - - 92 * - 44 AS col0
----
18
-11818

onlyif mysql # DIV for integer division: 
query I rowsort label-9730
SELECT + 37 DIV + 57 * - + 31
----
0

skipif mysql # not compatible
query I rowsort label-9730
SELECT + 37 / + 57 * - + 31
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9731
SELECT ALL - 81 * - 47 * 49 + - COUNT( * ) AS col1
----
186542

skipif mysql # not compatible
query I rowsort label-9731
SELECT ALL - 81 * - 47 * 49 + - COUNT ( * ) AS col1
----
186542

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9732
SELECT - - CAST( NULL AS SIGNED ) * - 39 + - 28 + + 78 * 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9732
SELECT - - CAST ( NULL AS INTEGER ) * - 39 + - 28 + + 78 * 16 AS col0
----
NULL

query II rowsort
SELECT + - 15 col2, - 63
----
-15
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-9734
SELECT + 80, CASE - COUNT( * ) WHEN ( - COUNT( * ) ) THEN COUNT( * ) - + 88 END AS col2
----
80
-87

skipif mysql # not compatible
query II rowsort label-9734
SELECT + 80, CASE - COUNT ( * ) WHEN ( - COUNT ( * ) ) THEN COUNT ( * ) - + 88 END AS col2
----
80
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9735
SELECT ALL + 3 * - 88 * + - ( - + ( - - 44 ) ) * SUM( DISTINCT 23 ) * + 63 + - - 1 DIV 91 * 58
----
-16831584

skipif mysql # not compatible
query I rowsort label-9735
SELECT ALL + 3 * - 88 * + - ( - + ( - - 44 ) ) * SUM ( DISTINCT 23 ) * + 63 + - - 1 / 91 * 58
----
-16831584

onlyif mysql # DIV for integer division: 
query II rowsort label-9736
SELECT + + 91, + 66 DIV - ( 67 ) AS col1
----
91
0

skipif mysql # not compatible
query II rowsort label-9736
SELECT + + 91, + 66 / - ( 67 ) AS col1
----
91
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9737
SELECT DISTINCT 51 DIV - + 98
----
0

skipif mysql # not compatible
query I rowsort label-9737
SELECT DISTINCT 51 / - + 98
----
0

query I rowsort
SELECT + - 43 * + 14 / + + 75 * - ( CASE + 89 WHEN + 27 THEN - 66 END )
----
NULL

query I rowsort
SELECT + 76 * - - 78 * + - 64 * - 59 + - 85
----
22384043

onlyif mysql # DIV for integer division: 
query I rowsort label-9740
SELECT + 39 DIV 1 DIV 55 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9740
SELECT + 39 / 1 / 55 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9741
SELECT ALL - 66 * + COUNT( * ) + + NULLIF ( 73, 66 + - 33 ) AS col1, + 36 * - 12 AS col1
----
7
-432

skipif mysql # not compatible
query II rowsort label-9741
SELECT ALL - 66 * + COUNT ( * ) + + NULLIF ( 73, 66 + - 33 ) AS col1, + 36 * - 12 AS col1
----
7
-432

query I rowsort
SELECT CASE + 1 WHEN + 71 THEN 73 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9743
SELECT + ( - + 61 ), 62 - + + MIN( DISTINCT - + 22 ) AS col1
----
-61
84

skipif mysql # not compatible
query II rowsort label-9743
SELECT + ( - + 61 ), 62 - + + MIN ( DISTINCT - + 22 ) AS col1
----
-61
84

query I rowsort
SELECT + 22 - + - 83 AS col1
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9745
SELECT + ( + - 31 ) * - CAST( NULL AS SIGNED ) + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-9745
SELECT + ( + - 31 ) * - CAST ( NULL AS INTEGER ) + 24
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT ALL + MIN( + 74 ) * 90 AS col1
----
6660

skipif mysql # not compatible
query I rowsort label-9746
SELECT ALL + MIN ( + 74 ) * 90 AS col1
----
6660

query I rowsort
SELECT + 69 - + 65 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9748
SELECT COUNT( * ) * + 2 * + COUNT( * ) + 69 * 79
----
5453

skipif mysql # not compatible
query I rowsort label-9748
SELECT COUNT ( * ) * + 2 * + COUNT ( * ) + 69 * 79
----
5453

query I rowsort
SELECT + 45 - - 17 col0
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-9750
SELECT - COALESCE ( - 36, - + 82, 69 DIV + - 44 + + 13 ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-9750
SELECT - COALESCE ( - 36, - + 82, 69 / + - 44 + + 13 ) AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9751
SELECT - COUNT( * ) + + 47 + + MAX( DISTINCT + 94 ) AS col1
----
140

skipif mysql # not compatible
query I rowsort label-9751
SELECT - COUNT ( * ) + + 47 + + MAX ( DISTINCT + 94 ) AS col1
----
140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9752
SELECT - ( - CAST( SUM( + 34 ) AS SIGNED ) )
----
34

skipif mysql # not compatible
query I rowsort label-9752
SELECT - ( - CAST ( SUM ( + 34 ) AS INTEGER ) )
----
34

query I rowsort
SELECT + 9 + + 56 * - 17
----
-943

query I rowsort
SELECT + 85 + - ( - + 44 ) AS col2
----
129

query II rowsort
SELECT DISTINCT 8 + CASE + - 3 WHEN - 25 THEN NULL ELSE - + 69 END AS col0, - 6 * + 91
----
-61
-546

query I rowsort
SELECT DISTINCT - 13 * + 97 * 80
----
-100880

query I rowsort
SELECT DISTINCT COALESCE ( + 81, - + 20 * - ( + + 53 ) * + 92 )
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-9758
SELECT + 24 + + 52 + + 51 * + - ( - + 0 ), COUNT( * ) AS col1
----
76
1

skipif mysql # not compatible
query II rowsort label-9758
SELECT + 24 + + 52 + + 51 * + - ( - + 0 ), COUNT ( * ) AS col1
----
76
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9759
SELECT - 98 + + + COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-9759
SELECT - 98 + + + COUNT ( * )
----
-97

query I rowsort
SELECT ALL + - NULLIF ( + 73, - 32 ) * + 67 col0
----
-4891

query I rowsort
SELECT - - 57 * 47 * 68 + - 5 AS col1
----
182167

query I rowsort
SELECT - 12 + 16 - + 44 * COALESCE ( 7, 36 ) * 65 * + - 45 AS col1
----
900904

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9763
SELECT - MAX( DISTINCT - - 33 ), 51 DIV - - 92 AS col2
----
-33
0

skipif mysql # not compatible
query II rowsort label-9763
SELECT - MAX ( DISTINCT - - 33 ), 51 / - - 92 AS col2
----
-33
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9764
SELECT ALL + - 50 + 71 DIV 91
----
-50

skipif mysql # not compatible
query I rowsort label-9764
SELECT ALL + - 50 + 71 / 91
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9765
SELECT - NULLIF ( - 21, - COUNT( * ) * + + 61 + + 78 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-9765
SELECT - NULLIF ( - 21, - COUNT ( * ) * + + 61 + + 78 ) AS col2
----
21

query I rowsort
SELECT - - 96 + 45
----
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9767
SELECT DISTINCT + - 0 + + 11 + + 76 + + - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9767
SELECT DISTINCT + - 0 + + 11 + + 76 + + - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9768
SELECT ALL - 34 DIV + 50 + 20 + + - 70
----
-50

skipif mysql # not compatible
query I rowsort label-9768
SELECT ALL - 34 / + 50 + 20 + + - 70
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT - COUNT( * ) * + + ( - 27 ) * - 20 col0
----
-540

skipif mysql # not compatible
query I rowsort label-9769
SELECT - COUNT ( * ) * + + ( - 27 ) * - 20 col0
----
-540

query I rowsort
SELECT + + 81 + - 69 + + 98 AS col1
----
110

query I rowsort
SELECT - + 55 * + 33 + ( + 43 ) + + 36 + - 95
----
-1831

onlyif mysql # aggregate syntax: 
query I rowsort label-9772
SELECT + + COUNT( * ) * - 46 + - 88
----
-134

skipif mysql # not compatible
query I rowsort label-9772
SELECT + + COUNT ( * ) * - 46 + - 88
----
-134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9773
SELECT - + CAST( NULL AS SIGNED ) * 11 AS col1, + 53 + - MIN( DISTINCT + 97 ) + + - 75 * + - CAST( NULL AS SIGNED ) * CAST( - CASE - - 88 WHEN + 62 THEN NULL WHEN + - CASE COUNT( * ) WHEN + 33 - + 14 THEN + 25 END * + + SUM( ALL + ( + 32 ) ) * - + 58 / - + 92 * + 73 * - + 29 + - COUNT( * ) / COUNT( * ) THEN - + AVG ( + CAST( NULL AS SIGNED ) ) - + COUNT( * ) END AS SIGNED ) / - 86 AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9773
SELECT - + CAST ( NULL AS INTEGER ) * 11 AS col1, + 53 + - MIN ( DISTINCT + 97 ) + + - 75 * + - CAST ( NULL AS INTEGER ) * CAST ( - CASE - - 88 WHEN + 62 THEN NULL WHEN + - CASE COUNT ( * ) WHEN + 33 - + 14 THEN + 25 END * + + SUM ( ALL + ( + 32 ) ) * - + 58 / - + 92 * + 73 * - + 29 + - COUNT ( * ) / COUNT ( * ) THEN - + AVG ( + CAST ( NULL AS INTEGER ) ) - + COUNT ( * ) END AS INTEGER ) / - 86 AS col1
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9774
SELECT - 99 + - - COALESCE ( + - 51, + 28 + + 67 * + CAST( NULL AS SIGNED ) * + 83 DIV + 13 * + 49 )
----
-150

skipif mysql # not compatible
query I rowsort label-9774
SELECT - 99 + - - COALESCE ( + - 51, + 28 + + 67 * + CAST ( NULL AS INTEGER ) * + 83 / + 13 * + 49 )
----
-150

query I rowsort
SELECT ALL + ( + - 76 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9776
SELECT + 93 * - COUNT( * ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-9776
SELECT + 93 * - COUNT ( * ) AS col0
----
-93

query I rowsort
SELECT 6 * - + 23 AS col0
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-9778
SELECT NULLIF ( + MAX( + 99 ), 31 * - 59 ) * + 68 * + - 91 AS col0
----
-612612

skipif mysql # not compatible
query I rowsort label-9778
SELECT NULLIF ( + MAX ( + 99 ), 31 * - 59 ) * + 68 * + - 91 AS col0
----
-612612

onlyif mysql # aggregate syntax: 
query II rowsort label-9779
SELECT - 43 * + - 27 + - 14 AS col0, - SUM( + 15 ) AS col0
----
1147
-15

skipif mysql # not compatible
query II rowsort label-9779
SELECT - 43 * + - 27 + - 14 AS col0, - SUM ( + 15 ) AS col0
----
1147
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9780
SELECT COUNT( * ) + - 19 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-9780
SELECT COUNT ( * ) + - 19 AS col2
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9781
SELECT CAST( NULL AS SIGNED ) * + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-9781
SELECT CAST ( NULL AS INTEGER ) * + 4
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9782
SELECT ALL CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) + + + COUNT( * ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9782
SELECT ALL CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) + + + COUNT ( * ) * - COUNT ( * )
----
NULL

query II rowsort
SELECT 62 AS col2, + 76 * - 66 + + 59
----
62
-4957

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-9784
SELECT ALL 56 + + 9 * + 31 * - + 81 AS col1, COUNT( * ) + + 6, NULLIF ( SUM( - 30 ), 8 * - 83 * - 66 * - - ( CAST( NULL AS SIGNED ) ) ) AS col0
----
-22543
7
-30

skipif mysql # not compatible
query III rowsort label-9784
SELECT ALL 56 + + 9 * + 31 * - + 81 AS col1, COUNT ( * ) + + 6, NULLIF ( SUM ( - 30 ), 8 * - 83 * - 66 * - - ( CAST ( NULL AS INTEGER ) ) ) AS col0
----
-22543
7
-30

query I rowsort
SELECT ALL 67 + 65
----
132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9786
SELECT DISTINCT 91 + + - MIN( DISTINCT + 7 ) + + COUNT( * ) DIV - - 55
----
84

skipif mysql # not compatible
query I rowsort label-9786
SELECT DISTINCT 91 + + - MIN ( DISTINCT + 7 ) + + COUNT ( * ) / - - 55
----
84

query I rowsort
SELECT ALL 49 + + + 94 - ( + 40 ) AS col1
----
103

query I rowsort
SELECT 21 + 21 AS col0
----
42

query I rowsort
SELECT - 83 * - 94
----
7802

query I rowsort
SELECT CASE 80 WHEN - ( + 83 ) * - 0 THEN ( 18 ) / - - 98 - + 4 - 6 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9791
SELECT 65 DIV + 46 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9791
SELECT 65 / + 46 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9792
SELECT + COUNT( * ) - - + 93
----
94

skipif mysql # not compatible
query I rowsort label-9792
SELECT + COUNT ( * ) - - + 93
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9793
SELECT ( + 50 ) * ( + - 62 ) * - 98 + - + COALESCE ( COALESCE ( + COUNT( + 23 ), - 88 DIV + 11, 35 + + 42 * + - 81 * + 5 ), + 7, - 62 * + + 38 - 56 - + COUNT( * ), 44 )
----
303799

skipif mysql # not compatible
query I rowsort label-9793
SELECT ( + 50 ) * ( + - 62 ) * - 98 + - + COALESCE ( COALESCE ( + COUNT ( + 23 ), - 88 / + 11, 35 + + 42 * + - 81 * + 5 ), + 7, - 62 * + + 38 - 56 - + COUNT ( * ), 44 )
----
303799

query I rowsort
SELECT DISTINCT + NULLIF ( + 79, - + 54 ) AS col2
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9795
SELECT ALL - 85, 43 + COUNT( * ) + + + 3 * - - CASE + 2 WHEN 3 * 90 THEN NULL WHEN + - 20 THEN 11 ELSE + 87 * COALESCE ( 52, + 95 DIV - - 49 ) + 67 * - 62 + 93 + 29 * - COUNT( * ) * - + 64 END AS col0
----
-85
7001

skipif mysql # not compatible
query II rowsort label-9795
SELECT ALL - 85, 43 + COUNT ( * ) + + + 3 * - - CASE + 2 WHEN 3 * 90 THEN NULL WHEN + - 20 THEN 11 ELSE + 87 * COALESCE ( 52, + 95 / - - 49 ) + 67 * - 62 + 93 + 29 * - COUNT ( * ) * - + 64 END AS col0
----
-85
7001

query II rowsort
SELECT DISTINCT - 98 * - 49 * 4 col0, - 88 + - + 72 * - 71 col2
----
19208
5024

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9797
SELECT COALESCE ( - - 47, - CAST( + 12 AS SIGNED ) ) + + 85 + - 21 + - 50
----
61

skipif mysql # not compatible
query I rowsort label-9797
SELECT COALESCE ( - - 47, - CAST ( + 12 AS INTEGER ) ) + + 85 + - 21 + - 50
----
61

query I rowsort
SELECT ALL ( + NULLIF ( 35, + 65 ) ) - + + 20 AS col0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9799
SELECT 75 * + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9799
SELECT 75 * + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9800
SELECT ALL - 65 * + + 54 + + 9, COUNT( * ) col0
----
-3501
1

skipif mysql # not compatible
query II rowsort label-9800
SELECT ALL - 65 * + + 54 + + 9, COUNT ( * ) col0
----
-3501
1

query I rowsort
SELECT ALL + 7 - + + 17 AS col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9802
SELECT ALL ( - CASE + 2 WHEN - 46 * + 58 THEN 28 / + COUNT( * ) + + 1 + - 12 - 46 / - COUNT( * ) END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9802
SELECT ALL ( - CASE + 2 WHEN - 46 * + 58 THEN 28 / + COUNT ( * ) + + 1 + - 12 - 46 / - COUNT ( * ) END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9803
SELECT + - 46 AS col1, 72 / - 66 * - ( + 26 ) * - 23 + COUNT( * ) - - - NULLIF ( - + CASE + 66 WHEN - - 4 THEN NULL WHEN + + 18 THEN - 72 ELSE NULL END, - 54 ) * - NULLIF ( - 34, - 84 * + 41 + - 2 ) / 57
----
-46
NULL

skipif mysql # not compatible
query II rowsort label-9803
SELECT + - 46 AS col1, 72 / - 66 * - ( + 26 ) * - 23 + COUNT ( * ) - - - NULLIF ( - + CASE + 66 WHEN - - 4 THEN NULL WHEN + + 18 THEN - 72 ELSE NULL END, - 54 ) * - NULLIF ( - 34, - 84 * + 41 + - 2 ) / 57
----
-46
NULL

query I rowsort
SELECT 96 * - - 97 AS col0
----
9312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9805
SELECT ALL - 2 * ( + 97 ) * MIN( CAST( 88 AS SIGNED ) )
----
-17072

skipif mysql # not compatible
query I rowsort label-9805
SELECT ALL - 2 * ( + 97 ) * MIN ( CAST ( 88 AS INTEGER ) )
----
-17072

query I rowsort
SELECT DISTINCT - 48 * - 4
----
192

query I rowsort
SELECT 15 * 57
----
855

onlyif mysql # aggregate syntax: 
query I rowsort label-9808
SELECT COUNT( * ) * - 94 + - + 69
----
-163

skipif mysql # not compatible
query I rowsort label-9808
SELECT COUNT ( * ) * - 94 + - + 69
----
-163

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9809
SELECT 96 + + ( 96 ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9809
SELECT 96 + + ( 96 ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9810
SELECT 41 * + - ( CASE 79 WHEN - SUM( + ( 91 ) ) + + 88 THEN NULL WHEN - COUNT( * ) THEN NULL ELSE - CAST( + 11 AS SIGNED ) + - 41 END ) AS col1
----
2132

skipif mysql # not compatible
query I rowsort label-9810
SELECT 41 * + - ( CASE 79 WHEN - SUM ( + ( 91 ) ) + + 88 THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE - CAST ( + 11 AS INTEGER ) + - 41 END ) AS col1
----
2132

onlyif mysql # aggregate syntax: 
query I rowsort label-9811
SELECT 12 + MIN( 71 )
----
83

skipif mysql # not compatible
query I rowsort label-9811
SELECT 12 + MIN ( 71 )
----
83

query I rowsort
SELECT DISTINCT - 30 * 85
----
-2550

query I rowsort
SELECT DISTINCT - 58 + 32
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9814
SELECT - COALESCE ( + 17, + 63 + + - ( ( - + 36 ) ) - - 85, + 51 + + - ( 0 ), - 60 ) * - 23 + + 17 - 99 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9814
SELECT - COALESCE ( + 17, + 63 + + - ( ( - + 36 ) ) - - 85, + 51 + + - ( 0 ), - 60 ) * - 23 + + 17 - 99 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + NULLIF ( + 90, - 75 ) + - 7 AS col1
----
83

query I rowsort
SELECT DISTINCT - 85 + - CASE + + ( + 70 ) WHEN - 76 THEN NULL WHEN - 86 * - 41 + 83 + - 60 + 30 THEN + 94 * - 93 * + 76 * - ( - 26 ) ELSE 83 END
----
-168

onlyif mysql # DIV for integer division: 
query I rowsort label-9817
SELECT DISTINCT 91 + + - 97 DIV + 9
----
81

skipif mysql # not compatible
query I rowsort label-9817
SELECT DISTINCT 91 + + - 97 / + 9
----
81

query I rowsort
SELECT ALL 50 + + 0 + - 81 + - 92 * + - 67
----
6133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9819
SELECT MAX( + 40 ) + - CAST( + - 72 AS SIGNED ) + 59 + + 93 + - 66 * 54 AS col2
----
-3300

skipif mysql # not compatible
query I rowsort label-9819
SELECT MAX ( + 40 ) + - CAST ( + - 72 AS INTEGER ) + 59 + + 93 + - 66 * 54 AS col2
----
-3300

query I rowsort
SELECT 20 + - 59 AS col1
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9821
SELECT ALL CASE ( + 10 ) WHEN + 89 THEN + NULLIF ( 44, + 95 * 33 + + ( 16 ) + 15 * CAST( NULL AS SIGNED ) + - + 4 + + 1 * - + 88 + 77 ) WHEN + 2 THEN NULL ELSE NULL END * + MIN( + + 42 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9821
SELECT ALL CASE ( + 10 ) WHEN + 89 THEN + NULLIF ( 44, + 95 * 33 + + ( 16 ) + 15 * CAST ( NULL AS INTEGER ) + - + 4 + + 1 * - + 88 + 77 ) WHEN + 2 THEN NULL ELSE NULL END * + MIN ( + + 42 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9822
SELECT + COUNT( DISTINCT - ( + + 86 ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-9822
SELECT + COUNT ( DISTINCT - ( + + 86 ) ) col0
----
1

query I rowsort
SELECT 13 + - + 26
----
-13

query I rowsort
SELECT ALL + 16 - 48 * - 94
----
4528

query I rowsort
SELECT DISTINCT - 58 * 37
----
-2146

onlyif mysql # aggregate syntax: 
query I rowsort label-9826
SELECT ALL COUNT( * ) - - - CASE - 94 WHEN - 44 / + MAX( 43 ) + ( + + 64 ) - - - 81 THEN + ( - - 91 ) WHEN + 89 THEN NULL WHEN - - 44 * - 7 + - 78 * 85 THEN - 4 - - - 0 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9826
SELECT ALL COUNT ( * ) - - - CASE - 94 WHEN - 44 / + MAX ( 43 ) + ( + + 64 ) - - - 81 THEN + ( - - 91 ) WHEN + 89 THEN NULL WHEN - - 44 * - 7 + - 78 * 85 THEN - 4 - - - 0 END
----
NULL

query I rowsort
SELECT ( - COALESCE ( - ( + 40 ), - 60 ) ) * + 38
----
1520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9828
SELECT ALL - 25 * + 74 - + NULLIF ( + 44, - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + + - MAX( DISTINCT 82 ) - COUNT( * ) + - + NULLIF ( - 43, - 65 * + + ( - COALESCE ( - 68, + - ( + 24 ) * - 56, + 10 * - 57 + - 39 ) ) * + - 39 - - CAST( CASE - CAST( NULL AS SIGNED ) WHEN 23 * ( + 19 ) * + 46 + + 99 + 53 * - + 17 - 83 * + 23 + + AVG ( ALL + - 99 ) THEN + CAST( NULL AS SIGNED ) + - 85 * - 21 WHEN 51 THEN - 82 + + 48 ELSE 10 END AS SIGNED ) ) * + - COUNT( * ) - + CAST( 26 AS SIGNED ) + + 99 * + 60 ) * - - COUNT( * ) AS col2
----
-1894

skipif mysql # not compatible
query I rowsort label-9828
SELECT ALL - 25 * + 74 - + NULLIF ( + 44, - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + + - MAX ( DISTINCT 82 ) - COUNT ( * ) + - + NULLIF ( - 43, - 65 * + + ( - COALESCE ( - 68, + - ( + 24 ) * - 56, + 10 * - 57 + - 39 ) ) * + - 39 - - CAST ( CASE - CAST ( NULL AS INTEGER ) WHEN 23 * ( + 19 ) * + 46 + + 99 + 53 * - + 17 - 83 * + 23 + + AVG ( ALL + - 99 ) THEN + CAST ( NULL AS INTEGER ) + - 85 * - 21 WHEN 51 THEN - 82 + + 48 ELSE 10 END AS INTEGER ) ) * + - COUNT ( * ) - + CAST ( 26 AS INTEGER ) + + 99 * + 60 ) * - - COUNT ( * ) AS col2
----
-1894

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9829
SELECT CAST( - 25 AS SIGNED ) + + 21 col2
----
-4

skipif mysql # not compatible
query I rowsort label-9829
SELECT CAST ( - 25 AS INTEGER ) + + 21 col2
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-9830
SELECT ALL - 75 - - COUNT( * ) * - - 47 + - + 32 col1, 44
----
-60
44

skipif mysql # not compatible
query II rowsort label-9830
SELECT ALL - 75 - - COUNT ( * ) * - - 47 + - + 32 col1, 44
----
-60
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9831
SELECT 13 * NULLIF ( - 58, + - COUNT( * ) ) + + COALESCE ( - MAX( DISTINCT + 14 ), + - 12 * - 69, COUNT( * ) + COALESCE ( 23, 53 ) * + 86 ) AS col2
----
-768

skipif mysql # not compatible
query I rowsort label-9831
SELECT 13 * NULLIF ( - 58, + - COUNT ( * ) ) + + COALESCE ( - MAX ( DISTINCT + 14 ), + - 12 * - 69, COUNT ( * ) + COALESCE ( 23, 53 ) * + 86 ) AS col2
----
-768

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9832
SELECT 0 + - - CAST( + - CAST( + COALESCE ( - 52, + + 87, - 31 * - + 14, + MAX( 14 ) * - COUNT( DISTINCT - + 97 ) / + 75 / - - ( + CAST( NULL AS DECIMAL ) ) - + 88 * + 98 / + 44 ) AS SIGNED ) AS SIGNED )
----
52

skipif mysql # not compatible
query I rowsort label-9832
SELECT 0 + - - CAST ( + - CAST ( + COALESCE ( - 52, + + 87, - 31 * - + 14, + MAX ( 14 ) * - COUNT ( DISTINCT - + 97 ) / + 75 / - - ( + CAST ( NULL AS REAL ) ) - + 88 * + 98 / + 44 ) AS INTEGER ) AS INTEGER )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT DISTINCT COUNT( ALL 73 )
----
1

skipif mysql # not compatible
query I rowsort label-9833
SELECT DISTINCT COUNT ( ALL 73 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9834
SELECT DISTINCT CAST( - - MIN( DISTINCT - ( - 98 ) ) AS SIGNED ) col2
----
98

skipif mysql # not compatible
query I rowsort label-9834
SELECT DISTINCT CAST ( - - MIN ( DISTINCT - ( - 98 ) ) AS INTEGER ) col2
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-9835
SELECT ALL + 9 DIV + - 34 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9835
SELECT ALL + 9 / + - 34 AS col0
----
0

query I rowsort
SELECT ALL + + 65 * 13 AS col0
----
845

query I rowsort
SELECT 34 * - 29 + 83 * - - 39 AS col0
----
2251

query I rowsort
SELECT COALESCE ( - - 87, - 16 ) AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9839
SELECT + ( - - SUM( DISTINCT + + 33 ) ) * 82
----
2706

skipif mysql # not compatible
query I rowsort label-9839
SELECT + ( - - SUM ( DISTINCT + + 33 ) ) * 82
----
2706

query I rowsort
SELECT NULLIF ( 77, + 40 + + + COALESCE ( - 9, + - COALESCE ( + 87, + 43 + + 19 + + NULLIF ( - - 52, - 93 * - 38 ) ) ) * - 57 )
----
77

query I rowsort
SELECT + 16 * - 22 col2
----
-352

query I rowsort
SELECT - 22 + 0 AS col1
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9843
SELECT ALL - 51 * CAST( NULL AS SIGNED ) * - 69 + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-9843
SELECT ALL - 51 * CAST ( NULL AS INTEGER ) * - 69 + 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9844
SELECT + NULLIF ( + + MIN( ALL - + 66 ), + + 17 )
----
-66

skipif mysql # not compatible
query I rowsort label-9844
SELECT + NULLIF ( + + MIN ( ALL - + 66 ), + + 17 )
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-9845
SELECT - COALESCE ( - 24, COUNT( * ) ) * - 28 + - 82 + 12, + 92 col1
----
-742
92

skipif mysql # not compatible
query II rowsort label-9845
SELECT - COALESCE ( - 24, COUNT ( * ) ) * - 28 + - 82 + 12, + 92 col1
----
-742
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9846
SELECT + CASE + 72 WHEN - 6 THEN - - 84 + COUNT( * ) + + 26 ELSE + 51 * - 37 + - + 89 * 71 END
----
-8206

skipif mysql # not compatible
query I rowsort label-9846
SELECT + CASE + 72 WHEN - 6 THEN - - 84 + COUNT ( * ) + + 26 ELSE + 51 * - 37 + - + 89 * 71 END
----
-8206

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9847
SELECT DISTINCT + CASE + 80 WHEN - 42 THEN - - CAST( - - 48 AS SIGNED ) + + 11 + CASE + 77 WHEN - 43 * + 65 + + 13 THEN - NULLIF ( + 43, - + COALESCE ( - COUNT( * ), - + 78, + 45 * + + COUNT( * ) + 64 / 80 - - 44 / COUNT( * ), + 7 - - 43 ) ) ELSE NULL END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9847
SELECT DISTINCT + CASE + 80 WHEN - 42 THEN - - CAST ( - - 48 AS INTEGER ) + + 11 + CASE + 77 WHEN - 43 * + 65 + + 13 THEN - NULLIF ( + 43, - + COALESCE ( - COUNT ( * ), - + 78, + 45 * + + COUNT ( * ) + 64 / 80 - - 44 / COUNT ( * ), + 7 - - 43 ) ) ELSE NULL END END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9848
SELECT ALL + 51 * - - MAX( DISTINCT - 6 ) + 66 col1
----
-240

skipif mysql # not compatible
query I rowsort label-9848
SELECT ALL + 51 * - - MAX ( DISTINCT - 6 ) + 66 col1
----
-240

query I rowsort
SELECT - 86 * 95
----
-8170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9850
SELECT ALL + COUNT( DISTINCT + 73 ) * - CASE + - ( 88 ) WHEN + COUNT( * ) * - 20 THEN - NULLIF ( 46, SUM( - 87 ) + - + COALESCE ( + CAST( NULL AS SIGNED ), + 33 + 30 + - 21 ) ) WHEN + ( 92 ) * - 42 + - - 60 * 45 * + COALESCE ( - + 74, 94, + - 46, - ( - 91 ) ) THEN + 34 + - + ( 83 ) + - 11 + + 77 * + CAST( NULL AS SIGNED ) END + 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9850
SELECT ALL + COUNT ( DISTINCT + 73 ) * - CASE + - ( 88 ) WHEN + COUNT ( * ) * - 20 THEN - NULLIF ( 46, SUM ( - 87 ) + - + COALESCE ( + CAST ( NULL AS INTEGER ), + 33 + 30 + - 21 ) ) WHEN + ( 92 ) * - 42 + - - 60 * 45 * + COALESCE ( - + 74, 94, + - 46, - ( - 91 ) ) THEN + 34 + - + ( 83 ) + - 11 + + 77 * + CAST ( NULL AS INTEGER ) END + 11 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9851
SELECT COALESCE ( - 75, + NULLIF ( - COUNT( ALL ( + - 16 ) ), + - 43 ) )
----
-75

skipif mysql # not compatible
query I rowsort label-9851
SELECT COALESCE ( - 75, + NULLIF ( - COUNT ( ALL ( + - 16 ) ), + - 43 ) )
----
-75

query II rowsort
SELECT ALL + 85, - 84 AS col2
----
85
-84

query I rowsort
SELECT ALL 15 * 92 + 97 * + 36
----
4872

query I rowsort
SELECT ALL + 82 * 61
----
5002

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9855
SELECT ALL + CAST( NULL AS SIGNED ) - 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9855
SELECT ALL + CAST ( NULL AS INTEGER ) - 37 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT DISTINCT + 91 * COUNT( * ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-9856
SELECT DISTINCT + 91 * COUNT ( * ) AS col2
----
91

query I rowsort
SELECT ALL - 37 * - 29
----
1073

onlyif mysql # DIV for integer division: 
query I rowsort label-9858
SELECT - ( + 17 ) DIV 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9858
SELECT - ( + 17 ) / 84 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9859
SELECT - 12 + NULLIF ( COUNT( * ), 6 ) DIV 96 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-9859
SELECT - 12 + NULLIF ( COUNT ( * ), 6 ) / 96 AS col0
----
-12

query I rowsort
SELECT - 30 * - 20 AS col2
----
600

onlyif mysql # aggregate syntax: 
query I rowsort label-9861
SELECT + COUNT( * ) + MAX( + 29 ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-9861
SELECT + COUNT ( * ) + MAX ( + 29 ) AS col2
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-9862
SELECT ALL + 46 DIV ( + 8 )
----
5

skipif mysql # not compatible
query I rowsort label-9862
SELECT ALL + 46 / ( + 8 )
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9863
SELECT - ( COUNT( * ) ) DIV - 55
----
0

skipif mysql # not compatible
query I rowsort label-9863
SELECT - ( COUNT ( * ) ) / - 55
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT - COUNT( 66 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9864
SELECT - COUNT ( 66 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT - 59 + - MAX( ( - 19 ) ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-9865
SELECT - 59 + - MAX ( ( - 19 ) ) AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9866
SELECT DISTINCT COUNT( * ) * - 4 col0
----
-4

skipif mysql # not compatible
query I rowsort label-9866
SELECT DISTINCT COUNT ( * ) * - 4 col0
----
-4

query I rowsort
SELECT ALL + 75 * + 52
----
3900

query I rowsort
SELECT - 23 + ( 18 - 17 ) * + 76 AS col0
----
53

query I rowsort
SELECT DISTINCT 52 + - NULLIF ( 60, 3 * - 76 + + 53 )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9870
SELECT + 22 * - COUNT( * ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-9870
SELECT + 22 * - COUNT ( * ) AS col1
----
-22

query I rowsort
SELECT ALL - + 79 AS col1
----
-79

query I rowsort
SELECT ALL - + 54 AS col2
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9873
SELECT - - SUM( - - 27 ) DIV + - 80 - 97 * - 87 * + + 12 AS col0, MAX( + CAST( NULL AS SIGNED ) ) + 24
----
101268
NULL

skipif mysql # not compatible
query II rowsort label-9873
SELECT - - SUM ( - - 27 ) / + - 80 - 97 * - 87 * + + 12 AS col0, MAX ( + CAST ( NULL AS INTEGER ) ) + 24
----
101268
NULL

query I rowsort
SELECT ALL + 77 * + 15
----
1155

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9875
SELECT DISTINCT - + 97, 92 + COUNT( * ) * + NULLIF ( + 84, CAST( - 47 AS DECIMAL ) * - + 56 ) AS col0
----
-97
176

skipif mysql # not compatible
query II rowsort label-9875
SELECT DISTINCT - + 97, 92 + COUNT ( * ) * + NULLIF ( + 84, CAST ( - 47 AS REAL ) * - + 56 ) AS col0
----
-97
176

query I rowsort
SELECT DISTINCT - - 2 AS col0
----
2

query II rowsort
SELECT + - 90 AS col1, + 96
----
-90
96

query II rowsort
SELECT COALESCE ( 53, 35 ) AS col2, + ( - - 14 ) AS col2
----
53
14

onlyif mysql # DIV for integer division: 
query I rowsort label-9879
SELECT 80 DIV - + 36 + + ( + 50 ) + + + 78 + - 58
----
68

skipif mysql # not compatible
query I rowsort label-9879
SELECT 80 / - + 36 + + ( + 50 ) + + + 78 + - 58
----
68

query I rowsort
SELECT 67 * - + 60 AS col1
----
-4020

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9881
SELECT + CASE - + 46 WHEN - COUNT( * ) THEN + COALESCE ( 82, - ( - COUNT( * ) ) ) WHEN + 5 * + ( + 55 ) THEN 94 * - COALESCE ( + + 82, - 33 * + - 31 / 31, + 75 - - + 96 ) * 90 + + 40 WHEN + 22 * + MAX( DISTINCT CAST( - ( + 5 ) AS SIGNED ) ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9881
SELECT + CASE - + 46 WHEN - COUNT ( * ) THEN + COALESCE ( 82, - ( - COUNT ( * ) ) ) WHEN + 5 * + ( + 55 ) THEN 94 * - COALESCE ( + + 82, - 33 * + - 31 / 31, + 75 - - + 96 ) * 90 + + 40 WHEN + 22 * + MAX ( DISTINCT CAST ( - ( + 5 ) AS INTEGER ) ) THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + 5 * 73 + + 65 - + 24 AS col1
----
406

query II rowsort
SELECT ALL - - 86 AS col1, 36 - + 7
----
86
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9884
SELECT MAX( ALL - 86 ) DIV + 23 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-9884
SELECT MAX ( ALL - 86 ) / + 23 AS col2
----
-3

query I rowsort
SELECT - ( + 50 ) * - 82 * + + 17
----
69700

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9886
SELECT 6 * - + 36 + - COUNT( * ) + 81 DIV + + NULLIF ( NULLIF ( - + 29, + 54 ), - - 9 + 45 ) - + + SUM( + 33 ) * - 55 * + ( + MAX( DISTINCT + 35 ) ) AS col1, - 24 * + 60 AS col0
----
63306
-1440

skipif mysql # not compatible
query II rowsort label-9886
SELECT 6 * - + 36 + - COUNT ( * ) + 81 / + + NULLIF ( NULLIF ( - + 29, + 54 ), - - 9 + 45 ) - + + SUM ( + 33 ) * - 55 * + ( + MAX ( DISTINCT + 35 ) ) AS col1, - 24 * + 60 AS col0
----
63306
-1440

onlyif mysql # aggregate syntax: 
query II rowsort label-9887
SELECT DISTINCT + 89 + + 35 * 92 + + + ( - - COUNT( * ) ) AS col2, + 9 * - 76 col0
----
3310
-684

skipif mysql # not compatible
query II rowsort label-9887
SELECT DISTINCT + 89 + + 35 * 92 + + + ( - - COUNT ( * ) ) AS col2, + 9 * - 76 col0
----
3310
-684

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9888
SELECT ALL - CAST( NULL AS SIGNED ) + - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-9888
SELECT ALL - CAST ( NULL AS INTEGER ) + - 63
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9889
SELECT SUM( CASE + + 5 WHEN 15 * + + 82 THEN NULL ELSE + 30 END ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-9889
SELECT SUM ( CASE + + 5 WHEN 15 * + + 82 THEN NULL ELSE + 30 END ) AS col1
----
30

query I rowsort
SELECT ALL + ( ( 30 ) ) + 99
----
129

query I rowsort
SELECT - 71 + 66 AS col1
----
-5

query I rowsort
SELECT - 30 * - - 61
----
-1830

onlyif mysql # aggregate syntax: 
query I rowsort label-9893
SELECT ALL + ( + - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9893
SELECT ALL + ( + - COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9894
SELECT ALL + 72 + + 94 + + - 53 + MIN( 77 ) - + COUNT( * ) + - 63 * 22
----
-1197

skipif mysql # not compatible
query I rowsort label-9894
SELECT ALL + 72 + + 94 + + - 53 + MIN ( 77 ) - + COUNT ( * ) + - 63 * 22
----
-1197

query I rowsort
SELECT ALL - 72 + - 47 + 17
----
-102

query I rowsort
SELECT - 17 + 64 + - 62 * + 95 AS col2
----
-5843

query I rowsort
SELECT - 83 col2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9898
SELECT - ( + + 48 ) + - - COUNT( * ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-9898
SELECT - ( + + 48 ) + - - COUNT ( * ) AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9899
SELECT ALL COUNT( * ) * + 87 AS col0
----
87

skipif mysql # not compatible
query I rowsort label-9899
SELECT ALL COUNT ( * ) * + 87 AS col0
----
87

onlyif mysql # DIV for integer division: 
query II rowsort label-9900
SELECT DISTINCT + 27 DIV - 17 AS col0, - 88 + + 52 col0
----
-1
-36

skipif mysql # not compatible
query II rowsort label-9900
SELECT DISTINCT + 27 / - 17 AS col0, - 88 + + 52 col0
----
-1
-36

query I rowsort
SELECT ALL - 73 - 25 AS col1
----
-98

query I rowsort
SELECT ALL + 9 * + 97 AS col0
----
873

query I rowsort
SELECT - ( - 22 ) + - - 58 * 77
----
4488

onlyif mysql # aggregate syntax: 
query II rowsort label-9904
SELECT - COUNT( * ) + + 30 AS col1, + 31 * - - 91 - + 31 AS col1
----
29
2790

skipif mysql # not compatible
query II rowsort label-9904
SELECT - COUNT ( * ) + + 30 AS col1, + 31 * - - 91 - + 31 AS col1
----
29
2790

query I rowsort
SELECT DISTINCT + 62
----
62

query I rowsort
SELECT + ( - 13 )
----
-13

query I rowsort
SELECT DISTINCT + COALESCE ( 22, + + 4 * + - 52 ) AS col2
----
22

query I rowsort
SELECT ALL + 38 AS col0
----
38

query II rowsort
SELECT + 7 + - 50 AS col0, 46 + - 83 AS col1
----
-43
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9910
SELECT ALL COUNT( * ) DIV - - 58 + 85 + - 18 * + - 45
----
895

skipif mysql # not compatible
query I rowsort label-9910
SELECT ALL COUNT ( * ) / - - 58 + 85 + - 18 * + - 45
----
895

query I rowsort
SELECT DISTINCT + - COALESCE ( 55, 96 * - 10 ) col2
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-9912
SELECT + + COUNT( * ) + - ( - - ( + 87 ) ) + + + 54 AS col1, + 29 AS col2
----
-32
29

skipif mysql # not compatible
query II rowsort label-9912
SELECT + + COUNT ( * ) + - ( - - ( + 87 ) ) + + + 54 AS col1, + 29 AS col2
----
-32
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9913
SELECT + - CASE - 51 WHEN - 48 + 14 * + 61 THEN 83 END + + 34 + COUNT( * ) * CAST( NULL AS SIGNED ) + + 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9913
SELECT + - CASE - 51 WHEN - 48 + 14 * + 61 THEN 83 END + + 34 + COUNT ( * ) * CAST ( NULL AS INTEGER ) + + 9 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9914
SELECT ALL + - 59 * 48 + COUNT( * ) AS col1
----
-2831

skipif mysql # not compatible
query I rowsort label-9914
SELECT ALL + - 59 * 48 + COUNT ( * ) AS col1
----
-2831

query I rowsort
SELECT ALL 93 * + 56 AS col1
----
5208

query I rowsort
SELECT DISTINCT + - 71 * - 9 + - 43
----
596

query I rowsort
SELECT DISTINCT + 92 col0
----
92

query I rowsort
SELECT ALL + - 76
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-9919
SELECT + 71 * + 63 DIV 21
----
213

skipif mysql # not compatible
query I rowsort label-9919
SELECT + 71 * + 63 / 21
----
213

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9920
SELECT CASE 13 WHEN 19 THEN + + COUNT( * ) WHEN + 39 * - COUNT( * ) THEN NULL END, COUNT( * ) / + CAST( NULL AS SIGNED ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9920
SELECT CASE 13 WHEN 19 THEN + + COUNT ( * ) WHEN + 39 * - COUNT ( * ) THEN NULL END, COUNT ( * ) / + CAST ( NULL AS INTEGER ) AS col0
----
NULL
NULL

query I rowsort
SELECT CASE 96 WHEN + 97 THEN NULL ELSE - + 51 END AS col0
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9922
SELECT + 0 * + + 57 + - - 0 + - - 24 + - - 5 * + + 32 * - - MIN( + 47 ) DIV - - 1 AS col0
----
7544

skipif mysql # not compatible
query I rowsort label-9922
SELECT + 0 * + + 57 + - - 0 + - - 24 + - - 5 * + + 32 * - - MIN ( + 47 ) / - - 1 AS col0
----
7544

onlyif mysql # DIV for integer division: 
query I rowsort label-9923
SELECT ALL - 13 DIV + + 93 * 73
----
0

skipif mysql # not compatible
query I rowsort label-9923
SELECT ALL - 13 / + + 93 * 73
----
0

query I rowsort
SELECT + ( + 68 ) AS col2
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9925
SELECT DISTINCT + ( - 57 ) * + AVG ( ALL + 50 ) * - - NULLIF ( - 36, + - 97 / - 32 * + CAST( NULL AS SIGNED ) ) * - MIN( 67 ) * - CAST( NULL AS SIGNED ) + - COUNT( * ) - - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-9925
SELECT DISTINCT + ( - 57 ) * + AVG ( ALL + 50 ) * - - NULLIF ( - 36, + - 97 / - 32 * + CAST ( NULL AS INTEGER ) ) * - MIN ( 67 ) * - CAST ( NULL AS INTEGER ) + - COUNT ( * ) - - 49
----
NULL

query I rowsort
SELECT DISTINCT + 89
----
89

query I rowsort
SELECT ALL + NULLIF ( - 78, + 71 + - 98 )
----
-78

query I rowsort
SELECT - 76 * - + 97 AS col0
----
7372

onlyif mysql # DIV for integer division: 
query I rowsort label-9929
SELECT ALL 82 DIV 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9929
SELECT ALL 82 / 89 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9930
SELECT DISTINCT + COUNT( * ), 48 * + 1 * - 65 AS col2
----
1
-3120

skipif mysql # not compatible
query II rowsort label-9930
SELECT DISTINCT + COUNT ( * ), 48 * + 1 * - 65 AS col2
----
1
-3120

query I rowsort
SELECT + ( - + 16 )
----
-16

query I rowsort
SELECT ALL + 41 * - 2
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9933
SELECT + CASE - CAST( NULL AS SIGNED ) WHEN + CASE 44 WHEN 94 THEN - COUNT( * ) DIV - + 97 ELSE NULL END THEN NULL ELSE COUNT( * ) + COUNT( * ) END * - SUM( DISTINCT + 67 ) DIV + - 30
----
4

skipif mysql # not compatible
query I rowsort label-9933
SELECT + CASE - CAST ( NULL AS INTEGER ) WHEN + CASE 44 WHEN 94 THEN - COUNT ( * ) / - + 97 ELSE NULL END THEN NULL ELSE COUNT ( * ) + COUNT ( * ) END * - SUM ( DISTINCT + 67 ) / + - 30
----
4

query I rowsort
SELECT + 40 * - - ( - 3 ) AS col2
----
-120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9935
SELECT DISTINCT 36 * + - 90 / + SUM( DISTINCT 80 ) * - + CAST( + MAX( ALL + - 89 ) AS DECIMAL ) + - 72 - + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9935
SELECT DISTINCT 36 * + - 90 / + SUM ( DISTINCT 80 ) * - + CAST ( + MAX ( ALL + - 89 ) AS REAL ) + - 72 - + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT DISTINCT ( + 82 ) AS col0
----
82

query I rowsort
SELECT ALL ( 73 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9938
SELECT - 40 + 9 * + + CASE - 9 WHEN + 94 THEN NULL ELSE + NULLIF ( COUNT( * ), + ( 24 ) / + 89 ) * 5 END + - 25 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-9938
SELECT - 40 + 9 * + + CASE - 9 WHEN + 94 THEN NULL ELSE + NULLIF ( COUNT ( * ), + ( 24 ) / + 89 ) * 5 END + - 25 AS col1
----
-20

query I rowsort
SELECT - 50 AS col2
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9940
SELECT ALL AVG ( CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9940
SELECT ALL AVG ( CAST ( NULL AS INTEGER ) ) col2
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( 74, - 72 * 2 + 97 ) AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9942
SELECT DISTINCT - NULLIF ( - NULLIF ( - 59, 62 + - AVG ( + 13 ) * - - COUNT( * ) ), - 20 )
----
-59

skipif mysql # not compatible
query I rowsort label-9942
SELECT DISTINCT - NULLIF ( - NULLIF ( - 59, 62 + - AVG ( + 13 ) * - - COUNT ( * ) ), - 20 )
----
-59

query I rowsort
SELECT ALL + 7 AS col2
----
7

query I rowsort
SELECT - + 25
----
-25

query I rowsort
SELECT DISTINCT + NULLIF ( + 81, 73 ) + - 3 AS col1
----
78

query I rowsort
SELECT - - 17
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9947
SELECT ALL - 61 AS col0, + CAST( NULL AS SIGNED )
----
-61
NULL

skipif mysql # not compatible
query II rowsort label-9947
SELECT ALL - 61 AS col0, + CAST ( NULL AS INTEGER )
----
-61
NULL

query I rowsort
SELECT - + 4 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT - + 5 + COUNT( * ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-9949
SELECT - + 5 + COUNT ( * ) AS col2
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9950
SELECT - CAST( - + 75 AS SIGNED )
----
75

skipif mysql # not compatible
query I rowsort label-9950
SELECT - CAST ( - + 75 AS INTEGER )
----
75

query I rowsort
SELECT DISTINCT - 36 + - 5
----
-41

query II rowsort
SELECT ALL + 25 + - - 49 * 44 AS col1, 8
----
2181
8

query I rowsort
SELECT - 8 * 16 * 43
----
-5504

query I rowsort
SELECT DISTINCT + 75 + - 32
----
43

query I rowsort
SELECT DISTINCT - 17 + 64 AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT SUM( DISTINCT - + 12 ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-9956
SELECT SUM ( DISTINCT - + 12 ) AS col0
----
-12

query I rowsort
SELECT + - ( 62 )
----
-62

query I rowsort
SELECT ALL + + 61 + 73 AS col1
----
134

onlyif mysql # DIV for integer division: 
query I rowsort label-9959
SELECT ALL - 84 + 47 DIV + + 59 + - + 21 AS col0
----
-105

skipif mysql # not compatible
query I rowsort label-9959
SELECT ALL - 84 + 47 / + + 59 + - + 21 AS col0
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT + 74 * + + 66 * + - MIN( ALL - 37 ) AS col0
----
180708

skipif mysql # not compatible
query I rowsort label-9960
SELECT + 74 * + + 66 * + - MIN ( ALL - 37 ) AS col0
----
180708

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9961
SELECT - SUM( ALL - 91 ) DIV ( - - MAX( 17 ) ) + - 13
----
-8

skipif mysql # not compatible
query I rowsort label-9961
SELECT - SUM ( ALL - 91 ) / ( - - MAX ( 17 ) ) + - 13
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9962
SELECT + 3 DIV - COUNT( * ) + + 65 + - 92 * 58 AS col1, COUNT( * ) * + CAST( NULL AS SIGNED ) AS col1
----
-5274
NULL

skipif mysql # not compatible
query II rowsort label-9962
SELECT + 3 / - COUNT ( * ) + + 65 + - 92 * 58 AS col1, COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1
----
-5274
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9963
SELECT + CAST( + 29 AS SIGNED )
----
29

skipif mysql # not compatible
query I rowsort label-9963
SELECT + CAST ( + 29 AS INTEGER )
----
29

query I rowsort
SELECT ALL - 2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9965
SELECT DISTINCT 1 * + COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-9965
SELECT DISTINCT 1 * + COUNT ( * ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9966
SELECT COUNT( * ) + - + 69 AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-9966
SELECT COUNT ( * ) + - + 69 AS col2
----
-68

query I rowsort
SELECT 57 AS col1
----
57

query I rowsort
SELECT ALL 36 - - + 27 * - 33 * + 25
----
-22239

query II rowsort
SELECT DISTINCT - ( + 78 ) col0, + 68 * 74 + 9
----
-78
5041

query I rowsort
SELECT ALL - 92
----
-92

query I rowsort
SELECT 63 * 45 AS col0
----
2835

query I rowsort
SELECT + 70 AS col0
----
70

query I rowsort
SELECT DISTINCT 41 * - 75
----
-3075

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9974
SELECT ALL 0 - - 60 + + 14 DIV 76 * + - COUNT( ALL + 54 ) + + 98
----
158

skipif mysql # not compatible
query I rowsort label-9974
SELECT ALL 0 - - 60 + + 14 / 76 * + - COUNT ( ALL + 54 ) + + 98
----
158

query I rowsort
SELECT + 28 AS col2
----
28

query I rowsort
SELECT ALL 76 * + ( 31 ) AS col0
----
2356

onlyif mysql # aggregate syntax: 
query III rowsort label-9977
SELECT 53 + 77 + + - COUNT( * ) * + - ( + ( - 88 ) ) AS col0, 31 * - 48 + - 82, - + 64 AS col1
----
42
-1570
-64

skipif mysql # not compatible
query III rowsort label-9977
SELECT 53 + 77 + + - COUNT ( * ) * + - ( + ( - 88 ) ) AS col0, 31 * - 48 + - 82, - + 64 AS col1
----
42
-1570
-64

onlyif mysql # DIV for integer division: 
query II rowsort label-9978
SELECT DISTINCT - 24 AS col2, 23 DIV + 83
----
-24
0

skipif mysql # not compatible
query II rowsort label-9978
SELECT DISTINCT - 24 AS col2, 23 / + 83
----
-24
0

query I rowsort
SELECT 1 * - 93
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9980
SELECT CAST( + CAST( + 31 AS SIGNED ) AS SIGNED ) + + NULLIF ( + 38, - + AVG ( 6 ) * 72 * - AVG ( DISTINCT + 74 ) ) col0
----
69

skipif mysql # not compatible
query I rowsort label-9980
SELECT CAST ( + CAST ( + 31 AS INTEGER ) AS INTEGER ) + + NULLIF ( + 38, - + AVG ( 6 ) * 72 * - AVG ( DISTINCT + 74 ) ) col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9981
SELECT CASE 59 WHEN - 89 THEN NULL WHEN - AVG ( ALL - 56 ) THEN - 6 * + MAX( 82 ) + 13 + - 40 * SUM( DISTINCT 10 ) END * 24 * + NULLIF ( + + 45, 3 ) * 66
----
NULL

skipif mysql # not compatible
query I rowsort label-9981
SELECT CASE 59 WHEN - 89 THEN NULL WHEN - AVG ( ALL - 56 ) THEN - 6 * + MAX ( 82 ) + 13 + - 40 * SUM ( DISTINCT 10 ) END * 24 * + NULLIF ( + + 45, 3 ) * 66
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9982
SELECT ALL 92 DIV - 30 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-9982
SELECT ALL 92 / - 30 AS col1
----
-3

query I rowsort
SELECT DISTINCT + 37 * - 14
----
-518

query I rowsort
SELECT - + ( - 71 )
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-9985
SELECT ( - - 94 ) DIV - + 62
----
-1

skipif mysql # not compatible
query I rowsort label-9985
SELECT ( - - 94 ) / - + 62
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-9986
SELECT + 90 + - - 14 + - 53 DIV 43 * 7 * - + 12 AS col2, + 99 AS col0
----
188
99

skipif mysql # not compatible
query II rowsort label-9986
SELECT + 90 + - - 14 + - 53 / 43 * 7 * - + 12 AS col2, + 99 AS col0
----
188
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9987
SELECT DISTINCT - COALESCE ( + COUNT( * ), - 67, + 85 * + 30 + + 56 + + 8 * + + 5, + 75 ) * - 64 * + 41
----
2624

skipif mysql # not compatible
query I rowsort label-9987
SELECT DISTINCT - COALESCE ( + COUNT ( * ), - 67, + 85 * + 30 + + 56 + + 8 * + + 5, + 75 ) * - 64 * + 41
----
2624

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT DISTINCT + ( - SUM( 10 ) ) * - 52 AS col2
----
520

skipif mysql # not compatible
query I rowsort label-9988
SELECT DISTINCT + ( - SUM ( 10 ) ) * - 52 AS col2
----
520

query I rowsort
SELECT 42 + 97 AS col0
----
139

query I rowsort
SELECT 18 AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9991
SELECT ALL + COUNT( * ) + + 33 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-9991
SELECT ALL + COUNT ( * ) + + 33 AS col1
----
34

query I rowsort
SELECT - 56 + - + 90 col0
----
-146

query I rowsort
SELECT 32 + - 88
----
-56

query I rowsort
SELECT 34 * + 40 + + 23
----
1383

onlyif mysql # aggregate syntax: 
query II rowsort label-9995
SELECT - 9 AS col0, NULLIF ( - COUNT( * ), - + 87 * - MAX( DISTINCT 24 ) )
----
-9
-1

skipif mysql # not compatible
query II rowsort label-9995
SELECT - 9 AS col0, NULLIF ( - COUNT ( * ), - + 87 * - MAX ( DISTINCT 24 ) )
----
-9
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9996
SELECT ALL NULLIF ( + + 26, + 36 * - 59 / + 31 - + + COUNT( * ) * + - COUNT( * ) - + - MAX( DISTINCT - 1 ) )
----
26

skipif mysql # not compatible
query I rowsort label-9996
SELECT ALL NULLIF ( + + 26, + 36 * - 59 / + 31 - + + COUNT ( * ) * + - COUNT ( * ) - + - MAX ( DISTINCT - 1 ) )
----
26

query I rowsort
SELECT ALL ( + 29 ) AS col1
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-9998
SELECT ALL - 1 AS col0, COUNT( DISTINCT 55 )
----
-1
1

skipif mysql # not compatible
query II rowsort label-9998
SELECT ALL - 1 AS col0, COUNT ( DISTINCT 55 )
----
-1
1

query I rowsort
SELECT ( 37 ) AS col0
----
37

