hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-0
SELECT + COUNT( * ) + CASE - AVG ( ALL + + 47 ) WHEN - 62 + - + 84 + - - 49 THEN 69 WHEN ( - 68 ) / + + NULLIF ( 74, + 25 * 33 ) + + 81 * + 10 + CAST( 76 - 87 AS DECIMAL ) THEN NULL END * - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-0
SELECT + COUNT ( * ) + CASE - AVG ( ALL + + 47 ) WHEN - 62 + - + 84 + - - 49 THEN 69 WHEN ( - 68 ) / + + NULLIF ( 74, + 25 * 33 ) + + 81 * + 10 + CAST ( 76 - 87 AS REAL ) THEN NULL END * - 87
----
NULL

query II rowsort
SELECT ALL - + ( 56 ) * - 18 AS col0, + NULLIF ( 5, + - 81 + + + 57 ) + + - 46 * - 20
----
1008
925

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2
SELECT ALL + + 86 * - 86 + 39 + + CAST( + 30 AS SIGNED ) * - + 28 + - - COUNT( * ) * + + COUNT( * )
----
-8196

skipif mysql # not compatible
query I rowsort label-2
SELECT ALL + + 86 * - 86 + 39 + + CAST ( + 30 AS INTEGER ) * - + 28 + - - COUNT ( * ) * + + COUNT ( * )
----
-8196

query I rowsort
SELECT - 63 + - 49 AS col2
----
-112

query II rowsort
SELECT ALL - 97 + + 28 * + 78 AS col0, + 60 col1
----
2087
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5
SELECT + + 16 * - 90 + - - COUNT( * ) DIV + 39
----
-1440

skipif mysql # not compatible
query I rowsort label-5
SELECT + + 16 * - 90 + - - COUNT ( * ) / + 39
----
-1440

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

query I rowsort
SELECT ALL + 39 - + - 94 - + + 32 + + 23 AS col1
----
124

query I rowsort
SELECT 14 * - 24 * + 40
----
-13440

onlyif mysql # aggregate syntax: 
query I rowsort label-9
SELECT 40 * - + 26 - COUNT( DISTINCT + + ( + 99 ) ) AS col2
----
-1041

skipif mysql # not compatible
query I rowsort label-9
SELECT 40 * - + 26 - COUNT ( DISTINCT + + ( + 99 ) ) AS col2
----
-1041

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-10
SELECT ALL - CASE + CAST( NULL AS SIGNED ) WHEN COALESCE ( - 58, - + COUNT( * ) ) THEN + - 42 ELSE - + 91 * - COUNT( * ) * 60 + - ( 89 ) END * - - 23 AS col0
----
-123533

skipif mysql # not compatible
query I rowsort label-10
SELECT ALL - CASE + CAST ( NULL AS INTEGER ) WHEN COALESCE ( - 58, - + COUNT ( * ) ) THEN + - 42 ELSE - + 91 * - COUNT ( * ) * 60 + - ( 89 ) END * - - 23 AS col0
----
-123533

query I rowsort
SELECT DISTINCT + 50 * - + 12 * + - 18 AS col2
----
10800

onlyif mysql # DIV for integer division: 
query I rowsort label-12
SELECT 30 DIV 53 * - ( - ( - 16 ) )
----
0

skipif mysql # not compatible
query I rowsort label-12
SELECT 30 / 53 * - ( - ( - 16 ) )
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-14
SELECT ALL 89 DIV 45 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-14
SELECT ALL 89 / 45 AS col0
----
1

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

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

query I rowsort
SELECT 10 + 64 col1
----
74

query I rowsort
SELECT 13 * + + 28
----
364

onlyif mysql # aggregate syntax: 
query I rowsort label-18
SELECT ALL 37 + + + COUNT( * ) col0
----
38

skipif mysql # not compatible
query I rowsort label-18
SELECT ALL 37 + + + COUNT ( * ) col0
----
38

query I rowsort
SELECT ALL - 86 + - 34
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-20
SELECT DISTINCT CASE 63 WHEN + 21 + + COUNT( * ) - + 87 + - 44 + ( - 7 ) * 41 THEN NULL WHEN COUNT( * ) + 69 / - - COUNT( * ) * - + 37 THEN 53 + + 72 WHEN 27 * 91 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-20
SELECT DISTINCT CASE 63 WHEN + 21 + + COUNT ( * ) - + 87 + - 44 + ( - 7 ) * 41 THEN NULL WHEN COUNT ( * ) + 69 / - - COUNT ( * ) * - + 37 THEN 53 + + 72 WHEN 27 * 91 THEN NULL ELSE NULL END AS col1
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-22
SELECT ALL + 26 + + + 93 + + 3 DIV 2
----
120

skipif mysql # not compatible
query I rowsort label-22
SELECT ALL + 26 + + + 93 + + 3 / 2
----
120

query I rowsort
SELECT 69 - 55 + - + 98 AS col2
----
-84

query I rowsort
SELECT 59 * - 17 AS col2
----
-1003

query I rowsort
SELECT 61 + - 31 + + 23
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-26
SELECT 5 - - - 46 + MAX( DISTINCT - - 20 )
----
-21

skipif mysql # not compatible
query I rowsort label-26
SELECT 5 - - - 46 + MAX ( DISTINCT - - 20 )
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-27
SELECT ALL COUNT( + + 7 ) DIV + 15 * - + CAST( AVG ( DISTINCT - 87 ) AS SIGNED ) * - - 61 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-27
SELECT ALL COUNT ( + + 7 ) / + 15 * - + CAST ( AVG ( DISTINCT - 87 ) AS INTEGER ) * - - 61 AS col0
----
0

query I rowsort
SELECT ALL + 35 * + - 24
----
-840

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

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

query I rowsort
SELECT 95 * + 17
----
1615

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-31
SELECT 34 * + COALESCE ( + + CAST( NULL AS SIGNED ), + 0 + 40, CAST( 65 AS SIGNED ) ) col1
----
1360

skipif mysql # not compatible
query I rowsort label-31
SELECT 34 * + COALESCE ( + + CAST ( NULL AS INTEGER ), + 0 + 40, CAST ( 65 AS INTEGER ) ) col1
----
1360

onlyif mysql # aggregate syntax: 
query I rowsort label-32
SELECT ( 29 ) + - - 25 + - - 89 * + + 55 * 64 * + 61 - 47 + + - 29 * - - CASE - + COUNT( * ) WHEN + MIN( 20 ) THEN 24 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-32
SELECT ( 29 ) + - - 25 + - - 89 * + + 55 * 64 * + 61 - 47 + + - 29 * - - CASE - + COUNT ( * ) WHEN + MIN ( 20 ) THEN 24 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-33
SELECT 40 DIV + - ( 75 ) * 36
----
0

skipif mysql # not compatible
query I rowsort label-33
SELECT 40 / + - ( 75 ) * 36
----
0

query I rowsort
SELECT ALL ( + 23 ) * + + 70
----
1610

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

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

query I rowsort
SELECT 45 * 82 * - - 48 + + 96 AS col0
----
177216

query I rowsort
SELECT 49 - + 60 AS col1
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-38
SELECT COUNT( * ) * + 21 * - COUNT( * ) DIV - 53
----
0

skipif mysql # not compatible
query I rowsort label-38
SELECT COUNT ( * ) * + 21 * - COUNT ( * ) / - 53
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-39
SELECT - 17 DIV - 34 + + ( + - 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-39
SELECT - 17 / - 34 + + ( + - 9 )
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-40
SELECT DISTINCT COUNT( ALL COALESCE ( 45, + 53 ) ) * + 17, 10 AS col1
----
17
10

skipif mysql # not compatible
query II rowsort label-40
SELECT DISTINCT COUNT ( ALL COALESCE ( 45, + 53 ) ) * + 17, 10 AS col1
----
17
10

query I rowsort
SELECT ALL - NULLIF ( + 75, + 54 )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-42
SELECT + CASE 51 WHEN + 93 THEN NULL WHEN - - 34 THEN COALESCE ( COUNT( * ), - 56 * + 28 + + 1 / - 39 * - + 28 ) + + CASE - - 35 WHEN + 36 THEN + 24 WHEN + ( - 98 ) THEN - 69 * + 74 END ELSE NULL END * - 62 + - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-42
SELECT + CASE 51 WHEN + 93 THEN NULL WHEN - - 34 THEN COALESCE ( COUNT ( * ), - 56 * + 28 + + 1 / - 39 * - + 28 ) + + CASE - - 35 WHEN + 36 THEN + 24 WHEN + ( - 98 ) THEN - 69 * + 74 END ELSE NULL END * - 62 + - 82
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-44
SELECT 65 / + + COUNT ( * ) AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-45
SELECT - CASE - 27 WHEN 37 + - - 54 THEN - NULLIF ( + 17, - 29 + + MIN( ALL + 90 ) ) END / + MIN( ALL ( 41 ) ) + - 29 * - 35 + - 95 + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-45
SELECT - CASE - 27 WHEN 37 + - - 54 THEN - NULLIF ( + 17, - 29 + + MIN ( ALL + 90 ) ) END / + MIN ( ALL ( 41 ) ) + - 29 * - 35 + - 95 + 37
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-46
SELECT + - CASE CAST( - COUNT( * ) AS SIGNED ) WHEN 0 THEN + CAST( COUNT( * ) AS SIGNED ) ELSE - 93 END
----
93

skipif mysql # not compatible
query I rowsort label-46
SELECT + - CASE CAST ( - COUNT ( * ) AS INTEGER ) WHEN 0 THEN + CAST ( COUNT ( * ) AS INTEGER ) ELSE - 93 END
----
93

query I rowsort
SELECT 94 + 23 AS col1
----
117

onlyif mysql # aggregate syntax: 
query II rowsort label-48
SELECT - 82 + - 61 + 13, 11 - - - COUNT( * ) AS col1
----
-130
10

skipif mysql # not compatible
query II rowsort label-48
SELECT - 82 + - 61 + 13, 11 - - - COUNT ( * ) AS col1
----
-130
10

query I rowsort
SELECT ALL + 90 + ( + + 61 )
----
151

query I rowsort
SELECT DISTINCT + + CASE 38 WHEN + + 46 THEN - - 54 / 39 + - 34 + 99 WHEN - 92 THEN + 29 ELSE NULL END * + - AVG ( - 14 )
----
NULL

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

query I rowsort
SELECT 58 + + 77 AS col2
----
135

query I rowsort
SELECT 74 * + 9
----
666

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-54
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + COUNT( * ) + - + 94 - 92 * - COUNT( * ) * + 19, 18 + MIN( DISTINCT + 43 ) AS col2
----
NULL
61

skipif mysql # not compatible
query II rowsort label-54
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + COUNT ( * ) + - + 94 - 92 * - COUNT ( * ) * + 19, 18 + MIN ( DISTINCT + 43 ) AS col2
----
NULL
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-55
SELECT ALL + - 77 + ( + COUNT( * ) ) DIV - 47
----
-77

skipif mysql # not compatible
query I rowsort label-55
SELECT ALL + - 77 + ( + COUNT ( * ) ) / - 47
----
-77

query I rowsort
SELECT 38 + - + ( - 47 ) + - 65 * + 22 AS col2
----
-1345

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-57
SELECT COUNT( * ) - - - 59 * + 53 DIV - COUNT( * ) AS col2
----
3128

skipif mysql # not compatible
query I rowsort label-57
SELECT COUNT ( * ) - - - 59 * + 53 / - COUNT ( * ) AS col2
----
3128

onlyif mysql # aggregate syntax: 
query II rowsort label-58
SELECT + 6 * + COUNT( * ) + 19 - - COUNT( * ) + 14 + + 76 * - 64 * + + 36, + 3 AS col1
----
-175064
3

skipif mysql # not compatible
query II rowsort label-58
SELECT + 6 * + COUNT ( * ) + 19 - - COUNT ( * ) + 14 + + 76 * - 64 * + + 36, + 3 AS col1
----
-175064
3

onlyif mysql # aggregate syntax: 
query I rowsort label-59
SELECT ALL - COUNT( * ) - + + 41 col2
----
-42

skipif mysql # not compatible
query I rowsort label-59
SELECT ALL - COUNT ( * ) - + + 41 col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-60
SELECT - + 34 + + - COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-60
SELECT - + 34 + + - COUNT ( * )
----
-35

query I rowsort
SELECT DISTINCT + 94 * + 40 AS col1
----
3760

query I rowsort
SELECT + 68 + - + 48 + - 46 + 30 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-63
SELECT + 85 * 80 * - 65 * - MAX( ALL 32 )
----
14144000

skipif mysql # not compatible
query I rowsort label-63
SELECT + 85 * 80 * - 65 * - MAX ( ALL 32 )
----
14144000

onlyif mysql # aggregate syntax: 
query I rowsort label-64
SELECT DISTINCT CASE - 81 WHEN 66 * - MIN( ALL + 83 ) THEN NULL WHEN + - AVG ( DISTINCT + - 18 ) - + 65 - - 78 * + 83 THEN 60 WHEN - 25 THEN ( - 58 ) END * + 42 * - - ( 23 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-64
SELECT DISTINCT CASE - 81 WHEN 66 * - MIN ( ALL + 83 ) THEN NULL WHEN + - AVG ( DISTINCT + - 18 ) - + 65 - - 78 * + 83 THEN 60 WHEN - 25 THEN ( - 58 ) END * + 42 * - - ( 23 ) AS col1
----
NULL

query I rowsort
SELECT + 62 + 66
----
128

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-67
SELECT + COALESCE ( + 14, 6 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-67
SELECT + COALESCE ( + 14, 6 ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-68
SELECT DISTINCT COALESCE ( - 3, + - 80 + 7 + + COUNT( * ), - - 57 * 21 * - 89 + 86 )
----
-3

skipif mysql # not compatible
query I rowsort label-68
SELECT DISTINCT COALESCE ( - 3, + - 80 + 7 + + COUNT ( * ), - - 57 * 21 * - 89 + 86 )
----
-3

query II rowsort
SELECT ALL 44 AS col2, - 68
----
44
-68

query I rowsort
SELECT ALL 14 * 89
----
1246

onlyif mysql # aggregate syntax: 
query I rowsort label-71
SELECT + CASE + 51 WHEN + 92 THEN - + 92 WHEN + 94 THEN NULL ELSE - MAX( - 83 ) * - 4 + 12 END AS col2
----
-320

skipif mysql # not compatible
query I rowsort label-71
SELECT + CASE + 51 WHEN + 92 THEN - + 92 WHEN + 94 THEN NULL ELSE - MAX ( - 83 ) * - 4 + 12 END AS col2
----
-320

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

query I rowsort
SELECT + 31 * 57 + 24
----
1791

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

onlyif mysql # aggregate syntax: 
query I rowsort label-75
SELECT + ( + - SUM( DISTINCT NULLIF ( - 57, + 60 ) ) ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-75
SELECT + ( + - SUM ( DISTINCT NULLIF ( - 57, + 60 ) ) ) AS col1
----
57

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-77
SELECT - 31 * + + 53 * + COUNT( * ) - 31 + + 76 + - 88
----
-1686

skipif mysql # not compatible
query I rowsort label-77
SELECT - 31 * + + 53 * + COUNT ( * ) - 31 + + 76 + - 88
----
-1686

onlyif mysql # aggregate syntax: 
query II rowsort label-78
SELECT ( - 27 ) AS col2, 89 * + - COUNT( * ) AS col2
----
-27
-89

skipif mysql # not compatible
query II rowsort label-78
SELECT ( - 27 ) AS col2, 89 * + - COUNT ( * ) AS col2
----
-27
-89

query II rowsort
SELECT + 56 AS col1, + 52 * 64 * - + ( - + 33 ) * + 4 * - 23 col1
----
56
-10103808

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

onlyif mysql # aggregate syntax: 
query I rowsort label-81
SELECT ALL - COUNT( * ) * - 50 * - + MIN( ALL + + 92 ) + + 91
----
-4509

skipif mysql # not compatible
query I rowsort label-81
SELECT ALL - COUNT ( * ) * - 50 * - + MIN ( ALL + + 92 ) + + 91
----
-4509

query I rowsort
SELECT ALL - 50 * - - 83 * - 70 AS col0
----
290500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-83
SELECT DISTINCT + CAST( 3 AS SIGNED ) * + NULLIF ( 67, - COUNT( * ) ) + 40 * 21 * - 19
----
-15759

skipif mysql # not compatible
query I rowsort label-83
SELECT DISTINCT + CAST ( 3 AS INTEGER ) * + NULLIF ( 67, - COUNT ( * ) ) + 40 * 21 * - 19
----
-15759

onlyif mysql # aggregate syntax: 
query II rowsort label-84
SELECT + 79, + 62 + - + MIN( DISTINCT - 71 ) + + - COUNT( * ) AS col1
----
79
132

skipif mysql # not compatible
query II rowsort label-84
SELECT + 79, + 62 + - + MIN ( DISTINCT - 71 ) + + - COUNT ( * ) AS col1
----
79
132

onlyif mysql # aggregate syntax: 
query I rowsort label-85
SELECT DISTINCT COUNT( * ) * 78 + + 97
----
175

skipif mysql # not compatible
query I rowsort label-85
SELECT DISTINCT COUNT ( * ) * 78 + + 97
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-86
SELECT + + COUNT( * ) * - 29 + + + 51 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-86
SELECT + + COUNT ( * ) * - 29 + + + 51 AS col1
----
22

query I rowsort
SELECT - + 23 + + - 64 - ( - 3 ) + + 60 * - + 34
----
-2124

query I rowsort
SELECT DISTINCT + 42 * + 13 - - 36 - + 23 AS col0
----
559

query I rowsort
SELECT DISTINCT + - 61
----
-61

query II rowsort
SELECT + 70 AS col1, 75 AS col1
----
70
75

query I rowsort
SELECT - + 79 * - + 55
----
4345

onlyif mysql # aggregate syntax: 
query I rowsort label-92
SELECT ALL + 74 * + - 46 * - - COUNT( ALL - ( - 65 ) )
----
-3404

skipif mysql # not compatible
query I rowsort label-92
SELECT ALL + 74 * + - 46 * - - COUNT ( ALL - ( - 65 ) )
----
-3404

query II rowsort
SELECT DISTINCT - 50 AS col1, - 34 AS col0
----
-50
-34

query II rowsort
SELECT ALL + 24 col0, 9 - + 65 + + 46 * + 90 * - 39 AS col2
----
24
-161516

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

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

query I rowsort
SELECT ALL + - 70 * - 78
----
5460

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-98
SELECT + 62 * ( CAST( + NULLIF ( + 90, - - CAST( NULL AS DECIMAL ) * + - 10 + + 57 + - - 61 / + 59 + 33 / - 40 - + - COUNT( + 97 ) * - 32 * - - COUNT( * ) + - - 62 + 50 * ( 20 ) * 56 ) AS SIGNED ) ) * - COUNT( DISTINCT 96 + + 55 ) AS col1
----
-5580

skipif mysql # not compatible
query I rowsort label-98
SELECT + 62 * ( CAST ( + NULLIF ( + 90, - - CAST ( NULL AS REAL ) * + - 10 + + 57 + - - 61 / + 59 + 33 / - 40 - + - COUNT ( + 97 ) * - 32 * - - COUNT ( * ) + - - 62 + 50 * ( 20 ) * 56 ) AS INTEGER ) ) * - COUNT ( DISTINCT 96 + + 55 ) AS col1
----
-5580

query I rowsort
SELECT - 56 + - + 7 col0
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-100
SELECT + 21 / - - CASE - COUNT( * ) WHEN - + 73 * + COUNT( * ) + COUNT( * ) * + SUM( + ( + 39 ) ) * - - CASE - CASE + + 73 WHEN - 23 THEN NULL WHEN - 55 THEN + - 33 * - CAST( NULL AS SIGNED ) + + - COALESCE ( 83, - AVG ( ALL - 30 ) ) END WHEN + 14 * + 64 + + 86 THEN NULL WHEN 28 * + 50 THEN 54 * + 93 ELSE NULL END + ( - CAST( - 73 AS SIGNED ) ) / 37 THEN - 51 * + 41 WHEN ( + ( + MAX( ALL + 23 ) ) ) THEN NULL END * 98
----
NULL

skipif mysql # not compatible
query I rowsort label-100
SELECT + 21 / - - CASE - COUNT ( * ) WHEN - + 73 * + COUNT ( * ) + COUNT ( * ) * + SUM ( + ( + 39 ) ) * - - CASE - CASE + + 73 WHEN - 23 THEN NULL WHEN - 55 THEN + - 33 * - CAST ( NULL AS INTEGER ) + + - COALESCE ( 83, - AVG ( ALL - 30 ) ) END WHEN + 14 * + 64 + + 86 THEN NULL WHEN 28 * + 50 THEN 54 * + 93 ELSE NULL END + ( - CAST ( - 73 AS INTEGER ) ) / 37 THEN - 51 * + 41 WHEN ( + ( + MAX ( ALL + 23 ) ) ) THEN NULL END * 98
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( - 47, 60, - + 80 ) col0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-102
SELECT DISTINCT 38 + + 32 + + NULLIF ( COALESCE ( 31, + 55 * 0 * 38 + + + 38 ), + CAST( + 83 AS SIGNED ) )
----
101

skipif mysql # not compatible
query I rowsort label-102
SELECT DISTINCT 38 + + 32 + + NULLIF ( COALESCE ( 31, + 55 * 0 * 38 + + + 38 ), + CAST ( + 83 AS INTEGER ) )
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-103
SELECT DISTINCT + MIN( ALL - + 4 ) + + 9 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-103
SELECT DISTINCT + MIN ( ALL - + 4 ) + + 9 AS col0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-104
SELECT ALL + CAST( NULL AS SIGNED ) + - 0, 59 AS col1
----
NULL
59

skipif mysql # not compatible
query II rowsort label-104
SELECT ALL + CAST ( NULL AS INTEGER ) + - 0, 59 AS col1
----
NULL
59

query I rowsort
SELECT - 66 + 2
----
-64

query I rowsort
SELECT + 31 * - 52 * - 65 * + 67 AS col0
----
7020260

onlyif mysql # aggregate syntax: 
query I rowsort label-107
SELECT ALL 37 + + COALESCE ( - 74, 84, ( - + 69 ) * - 62 + + 69 + - - 86 * COUNT( * ) ) + - + COUNT( * ) + 17 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-107
SELECT ALL 37 + + COALESCE ( - 74, 84, ( - + 69 ) * - 62 + + 69 + - - 86 * COUNT ( * ) ) + - + COUNT ( * ) + 17 AS col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-108
SELECT - COUNT( * ) + 34 + + 39
----
72

skipif mysql # not compatible
query I rowsort label-108
SELECT - COUNT ( * ) + 34 + + 39
----
72

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-110
SELECT - 44 DIV - - 52 + - 2
----
-2

skipif mysql # not compatible
query I rowsort label-110
SELECT - 44 / - - 52 + - 2
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-111
SELECT ALL 3 DIV - - 30
----
0

skipif mysql # not compatible
query I rowsort label-111
SELECT ALL 3 / - - 30
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-112
SELECT DISTINCT 86 DIV - + 51 + 84
----
83

skipif mysql # not compatible
query I rowsort label-112
SELECT DISTINCT 86 / - + 51 + 84
----
83

query I rowsort
SELECT + CASE 0 WHEN - - 22 THEN - 19 ELSE NULL END + + + 81 * 10 + 46 * + ( + NULLIF ( - 7, - + 72 ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-114
SELECT ALL 60 DIV 8 AS col2, + COUNT( DISTINCT + 67 ) AS col1
----
7
1

skipif mysql # not compatible
query II rowsort label-114
SELECT ALL 60 / 8 AS col2, + COUNT ( DISTINCT + 67 ) AS col1
----
7
1

query I rowsort
SELECT - 30 * - 5 * + 3 AS col2
----
450

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

query I rowsort
SELECT + 14 * 27 + 52 + - 69
----
361

onlyif mysql # aggregate syntax: 
query I rowsort label-118
SELECT SUM( ALL - + 77 ) + - - 48 + + + 50 * 62 + - - 81 col1
----
3152

skipif mysql # not compatible
query I rowsort label-118
SELECT SUM ( ALL - + 77 ) + - - 48 + + + 50 * 62 + - - 81 col1
----
3152

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

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

query I rowsort
SELECT DISTINCT - + 28 AS col2
----
-28

query I rowsort
SELECT DISTINCT - COALESCE ( 97, + + 43 ) AS col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-122
SELECT 17 * 27 + COUNT( * ) + - 56 * 77
----
-3852

skipif mysql # not compatible
query I rowsort label-122
SELECT 17 * 27 + COUNT ( * ) + - 56 * 77
----
-3852

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

query II rowsort
SELECT DISTINCT 71 AS col1, + 38 AS col0
----
71
38

query II rowsort
SELECT 89 AS col1, - 68 + - 67 + ( + 54 ) * - 60
----
89
-3375

query I rowsort
SELECT 50 + - 32 AS col0
----
18

query I rowsort
SELECT ALL 15 + + - 81 AS col0
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-128
SELECT DISTINCT - 4 + 89 + + 44 - + 3 * - 40 * 92 DIV + 85
----
258

skipif mysql # not compatible
query I rowsort label-128
SELECT DISTINCT - 4 + 89 + + 44 - + 3 * - 40 * 92 / + 85
----
258

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-130
SELECT ALL - 86 + + SUM( DISTINCT 41 ) + + COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-130
SELECT ALL - 86 + + SUM ( DISTINCT 41 ) + + COUNT ( * )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-131
SELECT 49 + + 52 * - - MIN( ALL 25 ) + - 12 col0
----
1337

skipif mysql # not compatible
query I rowsort label-131
SELECT 49 + + 52 * - - MIN ( ALL 25 ) + - 12 col0
----
1337

onlyif mysql # aggregate syntax: 
query I rowsort label-132
SELECT DISTINCT + MAX( - - 9 ) * - + 21
----
-189

skipif mysql # not compatible
query I rowsort label-132
SELECT DISTINCT + MAX ( - - 9 ) * - + 21
----
-189

onlyif mysql # aggregate syntax: 
query II rowsort label-133
SELECT DISTINCT - 5 + COUNT( DISTINCT 8 ) AS col1, 23 AS col0
----
-4
23

skipif mysql # not compatible
query II rowsort label-133
SELECT DISTINCT - 5 + COUNT ( DISTINCT 8 ) AS col1, 23 AS col0
----
-4
23

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

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

query II rowsort
SELECT 32 AS col2, - 93 col0
----
32
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-136
SELECT 35 AS col0, - ( - MAX( 49 ) ) - - - 14 + + 87 AS col0
----
35
122

skipif mysql # not compatible
query II rowsort label-136
SELECT 35 AS col0, - ( - MAX ( 49 ) ) - - - 14 + + 87 AS col0
----
35
122

onlyif mysql # DIV for integer division: 
query I rowsort label-137
SELECT ALL + 87 + + + 87 DIV - 30
----
85

skipif mysql # not compatible
query I rowsort label-137
SELECT ALL + 87 + + + 87 / - 30
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-138
SELECT ALL + 87 + CAST( 67 AS SIGNED ) AS col2, NULLIF ( - 59, + 71 )
----
154
-59

skipif mysql # not compatible
query II rowsort label-138
SELECT ALL + 87 + CAST ( 67 AS INTEGER ) AS col2, NULLIF ( - 59, + 71 )
----
154
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-139
SELECT - CAST( COALESCE ( + 13, - CASE + 46 WHEN MAX( + 9 ) * + 0 / + - 84 THEN + ( + - 49 ) * COUNT( * ) * - + 44 WHEN ( + 93 ) THEN NULL ELSE 62 END / + COUNT( * ) ) AS SIGNED ) * - 29 * - 69 - + 29
----
-26042

skipif mysql # not compatible
query I rowsort label-139
SELECT - CAST ( COALESCE ( + 13, - CASE + 46 WHEN MAX ( + 9 ) * + 0 / + - 84 THEN + ( + - 49 ) * COUNT ( * ) * - + 44 WHEN ( + 93 ) THEN NULL ELSE 62 END / + COUNT ( * ) ) AS INTEGER ) * - 29 * - 69 - + 29
----
-26042

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

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

query I rowsort
SELECT + 28 * - - 91 * - ( - 60 )
----
152880

onlyif mysql # aggregate syntax: 
query I rowsort label-142
SELECT 2 * + + COUNT( * ) + + + ( 0 ) col2
----
2

skipif mysql # not compatible
query I rowsort label-142
SELECT 2 * + + COUNT ( * ) + + + ( 0 ) col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-143
SELECT ALL - SUM( - COALESCE ( + 85, + 8 * - - 59 + + 48 + CAST( + - 92 AS SIGNED ), 47 ) ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-143
SELECT ALL - SUM ( - COALESCE ( + 85, + 8 * - - 59 + + 48 + CAST ( + - 92 AS INTEGER ), 47 ) ) AS col1
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-144
SELECT + 98, + 61 * - - CAST( NULL AS SIGNED ) + + - 6 AS col2
----
98
NULL

skipif mysql # not compatible
query II rowsort label-144
SELECT + 98, + 61 * - - CAST ( NULL AS INTEGER ) + + - 6 AS col2
----
98
NULL

query I rowsort
SELECT 79 + + 60
----
139

query I rowsort
SELECT 82 * - 12 + + 99 AS col2
----
-885

query I rowsort
SELECT ALL - - 91 * - + 31
----
-2821

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-148
SELECT + + 74 AS col0, - 95 + 13 + + MAX( DISTINCT COALESCE ( - + NULLIF ( - + CAST( - 33 AS SIGNED ), + 85 ), - - 13 * + 35 + - ( - 42 ) DIV - CAST( 30 AS SIGNED ) ) ) - - 47 AS col0
----
74
-68

skipif mysql # not compatible
query II rowsort label-148
SELECT + + 74 AS col0, - 95 + 13 + + MAX ( DISTINCT COALESCE ( - + NULLIF ( - + CAST ( - 33 AS INTEGER ), + 85 ), - - 13 * + 35 + - ( - 42 ) / - CAST ( 30 AS INTEGER ) ) ) - - 47 AS col0
----
74
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-149
SELECT + 0 * - MIN( + 55 ) + - 46 * + 76 AS col0
----
-3496

skipif mysql # not compatible
query I rowsort label-149
SELECT + 0 * - MIN ( + 55 ) + - 46 * + 76 AS col0
----
-3496

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-150
SELECT DISTINCT 79 DIV 76 * COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-150
SELECT DISTINCT 79 / 76 * COUNT ( * ) AS col2
----
1

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

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

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

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

query I rowsort
SELECT - 66 * - 59 col2
----
3894

query I rowsort
SELECT DISTINCT 6 * + + 99 * 76 AS col0
----
45144

query II rowsort
SELECT ALL - 81 + + 70 col2, - 87 AS col0
----
-11
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-156
SELECT NULLIF ( - 24, 37 + - NULLIF ( 58, COUNT( * ) ) ) DIV - 41 * + + 49 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-156
SELECT NULLIF ( - 24, 37 + - NULLIF ( 58, COUNT ( * ) ) ) / - 41 * + + 49 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-157
SELECT ALL NULLIF ( 42, 51 ) + + - SUM( DISTINCT + + 88 ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-157
SELECT ALL NULLIF ( 42, 51 ) + + - SUM ( DISTINCT + + 88 ) AS col0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-158
SELECT MIN( DISTINCT + 67 ) * + 20 AS col0
----
1340

skipif mysql # not compatible
query I rowsort label-158
SELECT MIN ( DISTINCT + 67 ) * + 20 AS col0
----
1340

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-159
SELECT 82 * + 12 / + CASE + 75 WHEN 22 THEN 12 / CAST( NULL AS SIGNED ) END + - 57 * - + ( - 54 )
----
NULL

skipif mysql # not compatible
query I rowsort label-159
SELECT 82 * + 12 / + CASE + 75 WHEN 22 THEN 12 / CAST ( NULL AS INTEGER ) END + - 57 * - + ( - 54 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-160
SELECT COUNT( * ) + + ( - 82 ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-160
SELECT COUNT ( * ) + + ( - 82 ) AS col2
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-161
SELECT ALL NULLIF ( 46, - COUNT( * ) + + 38 + - + 93 ) - + 77 + 11 + - 27 DIV - 95
----
-20

skipif mysql # not compatible
query I rowsort label-161
SELECT ALL NULLIF ( 46, - COUNT ( * ) + + 38 + - + 93 ) - + 77 + 11 + - 27 / - 95
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-162
SELECT 58 + - - 68 + + 61 DIV 21 * + 17 AS col1
----
160

skipif mysql # not compatible
query I rowsort label-162
SELECT 58 + - - 68 + + 61 / 21 * + 17 AS col1
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-163
SELECT ALL + MIN( 38 ) * 2
----
76

skipif mysql # not compatible
query I rowsort label-163
SELECT ALL + MIN ( 38 ) * 2
----
76

query I rowsort
SELECT ALL 95 * + 77
----
7315

onlyif mysql # aggregate syntax: 
query I rowsort label-165
SELECT ALL CASE NULLIF ( COUNT( * ), - 35 ) WHEN + 50 THEN - - 99 WHEN 14 THEN 60 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-165
SELECT ALL CASE NULLIF ( COUNT ( * ), - 35 ) WHEN + 50 THEN - - 99 WHEN 14 THEN 60 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT 27 + + - 58
----
-31

query I rowsort
SELECT + 26 + - - 31
----
57

query II rowsort
SELECT DISTINCT + 11 * + 51 AS col1, 89 AS col0
----
561
89

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

skipif mysql # not compatible
query I rowsort label-169
SELECT DISTINCT + COUNT ( * ) / - COUNT ( * ) + - 80 AS col2
----
-81

query I rowsort
SELECT - + ( + - 60 ) * 46 * - - 17
----
46920

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-171
SELECT - + CAST( NULL AS DECIMAL ) + 73 * + + 79 * 82 * - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-171
SELECT - + CAST ( NULL AS REAL ) + 73 * + + 79 * 82 * - 25
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-173
SELECT - 98 * - CAST( NULL AS SIGNED ) * 71 - COUNT( 1 ) + + + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-173
SELECT - 98 * - CAST ( NULL AS INTEGER ) * 71 - COUNT ( 1 ) + + + 8
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-174
SELECT ALL + COALESCE ( + 77, + 29 DIV - 78 ) * + ( + + 31 )
----
2387

skipif mysql # not compatible
query I rowsort label-174
SELECT ALL + COALESCE ( + 77, + 29 / - 78 ) * + ( + + 31 )
----
2387

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-176
SELECT ALL - 7 * - 97 * - 5 + ( + 51 ) + COUNT( * )
----
-3343

skipif mysql # not compatible
query I rowsort label-176
SELECT ALL - 7 * - 97 * - 5 + ( + 51 ) + COUNT ( * )
----
-3343

query I rowsort
SELECT ALL + 71 * + 18 + + NULLIF ( + 54, - 95 * + 92 * + + 26 + + 53 * - 87 + + 12 + - + 39 * + 20 ) * + 31
----
2952

onlyif mysql # aggregate syntax: 
query I rowsort label-178
SELECT DISTINCT + 67 * + MIN( DISTINCT + 36 ) + - COUNT( * ) AS col0
----
2411

skipif mysql # not compatible
query I rowsort label-178
SELECT DISTINCT + 67 * + MIN ( DISTINCT + 36 ) + - COUNT ( * ) AS col0
----
2411

query II rowsort
SELECT + 71, 22 - - 20 AS col0
----
71
42

onlyif mysql # aggregate syntax: 
query I rowsort label-180
SELECT MAX( 97 )
----
97

skipif mysql # not compatible
query I rowsort label-180
SELECT MAX ( 97 )
----
97

onlyif mysql # DIV for integer division: 
query II rowsort label-181
SELECT ALL + 78 AS col2, 49 DIV + 85 col0
----
78
0

skipif mysql # not compatible
query II rowsort label-181
SELECT ALL + 78 AS col2, 49 / + 85 col0
----
78
0

onlyif mysql # aggregate syntax: 
query I rowsort label-182
SELECT DISTINCT - 90 * + + 14 + - CASE - 15 WHEN 44 * - - ( + MAX( DISTINCT + 3 ) ) THEN + - MAX( ALL - 69 ) * + - 31 + 0 * 60 + + 12 * + - ( + - 33 ) + + 68 + - - 65 WHEN 33 THEN + SUM( - 57 ) + + 39 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-182
SELECT DISTINCT - 90 * + + 14 + - CASE - 15 WHEN 44 * - - ( + MAX ( DISTINCT + 3 ) ) THEN + - MAX ( ALL - 69 ) * + - 31 + 0 * 60 + + 12 * + - ( + - 33 ) + + 68 + - - 65 WHEN 33 THEN + SUM ( - 57 ) + + 39 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-183
SELECT + CASE - COUNT( * ) WHEN + COUNT( * ) THEN 16 ELSE NULL END + CAST( NULL AS SIGNED ) col0, + 18 * - 96 + + 61 + - CAST( NULL AS DECIMAL ) / - 79 / ( - + 41 )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-183
SELECT + CASE - COUNT ( * ) WHEN + COUNT ( * ) THEN 16 ELSE NULL END + CAST ( NULL AS INTEGER ) col0, + 18 * - 96 + + 61 + - CAST ( NULL AS REAL ) / - 79 / ( - + 41 )
----
NULL
NULL

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

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

query I rowsort
SELECT + CASE + 57 WHEN + 14 THEN - 43 * + 57 ELSE 24 * - 37 END * - ( - - 74 ) col2
----
65712

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-186
SELECT + COALESCE ( ( + 93 ), - CASE - 55 WHEN + CASE + 91 WHEN 87 THEN - 46 END * + CAST( 5 AS SIGNED ) * + CAST( + + 97 AS SIGNED ) + + - 81 THEN - 17 * - - ( - + 7 ) * - COUNT( * ) + 21 WHEN 42 * 75 - - 26 THEN 7 ELSE NULL END )
----
93

skipif mysql # not compatible
query I rowsort label-186
SELECT + COALESCE ( ( + 93 ), - CASE - 55 WHEN + CASE + 91 WHEN 87 THEN - 46 END * + CAST ( 5 AS INTEGER ) * + CAST ( + + 97 AS INTEGER ) + + - 81 THEN - 17 * - - ( - + 7 ) * - COUNT ( * ) + 21 WHEN 42 * 75 - - 26 THEN 7 ELSE NULL END )
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-187
SELECT - 43 * - MIN( DISTINCT + 56 ) AS col1, CAST( NULL AS SIGNED ) AS col0
----
2408
NULL

skipif mysql # not compatible
query II rowsort label-187
SELECT - 43 * - MIN ( DISTINCT + 56 ) AS col1, CAST ( NULL AS INTEGER ) AS col0
----
2408
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-188
SELECT + COUNT( * ) + COALESCE ( - + 32, 71 * CAST( NULL AS SIGNED ) ) + 70 * - 23 + + 4
----
-1637

skipif mysql # not compatible
query I rowsort label-188
SELECT + COUNT ( * ) + COALESCE ( - + 32, 71 * CAST ( NULL AS INTEGER ) ) + 70 * - 23 + + 4
----
-1637

onlyif mysql # DIV for integer division: 
query I rowsort label-189
SELECT ALL 7 - ( + 39 ) DIV - - 88 * + 61 col2
----
7

skipif mysql # not compatible
query I rowsort label-189
SELECT ALL 7 - ( + 39 ) / - - 88 * + 61 col2
----
7

query I rowsort
SELECT - COALESCE ( - 97, 26, ( - + 58 ) + 81, + 8 ) AS col2
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-191
SELECT - ( + + ( 37 ) ), ( - 17 ) DIV - COUNT( * ) AS col2
----
-37
17

skipif mysql # not compatible
query II rowsort label-191
SELECT - ( + + ( 37 ) ), ( - 17 ) / - COUNT ( * ) AS col2
----
-37
17

onlyif mysql # aggregate syntax: 
query I rowsort label-192
SELECT COUNT( DISTINCT + - 8 )
----
1

skipif mysql # not compatible
query I rowsort label-192
SELECT COUNT ( DISTINCT + - 8 )
----
1

query I rowsort
SELECT + - 46 * + 14
----
-644

query I rowsort
SELECT DISTINCT 38 + + - 84 AS col1
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-195
SELECT ALL - + MAX( ALL - 38 ) DIV + 97 + MIN( DISTINCT + 66 ) + - - 30 * 95 * + 27 * - - 9 + + 10
----
692626

skipif mysql # not compatible
query I rowsort label-195
SELECT ALL - + MAX ( ALL - 38 ) / + 97 + MIN ( DISTINCT + 66 ) + - - 30 * 95 * + 27 * - - 9 + + 10
----
692626

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-196
SELECT + + MIN( - 94 ) DIV + - 84 - - + 32 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-196
SELECT + + MIN ( - 94 ) / + - 84 - - + 32 AS col2
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-197
SELECT ALL + 17 DIV + + 66 + - 79 * + + 98 + 7 * - + 80
----
-8302

skipif mysql # not compatible
query I rowsort label-197
SELECT ALL + 17 / + + 66 + - 79 * + + 98 + 7 * - + 80
----
-8302

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-198
SELECT ALL - MAX( - + 63 ) DIV 86 * + 84 * + 29 + - 93 AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-198
SELECT ALL - MAX ( - + 63 ) / 86 * + 84 * + 29 + - 93 AS col1
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-199
SELECT ALL + 52 DIV - + 98 + + MAX( + 5 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-199
SELECT ALL + 52 / - + 98 + + MAX ( + 5 ) AS col2
----
5

query II rowsort
SELECT 87 AS col0, - 6 AS col1
----
87
-6

query I rowsort
SELECT - 67 - 40 + 53 AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-202
SELECT - 26 * - MAX( - 75 ) * 82 + - 77
----
-159977

skipif mysql # not compatible
query I rowsort label-202
SELECT - 26 * - MAX ( - 75 ) * 82 + - 77
----
-159977

onlyif mysql # DIV for integer division: 
query II rowsort label-203
SELECT ALL + 84, - COALESCE ( 13, + - 18 ) + + - 31 DIV + + 16 AS col2
----
84
-14

skipif mysql # not compatible
query II rowsort label-203
SELECT ALL + 84, - COALESCE ( 13, + - 18 ) + + - 31 / + + 16 AS col2
----
84
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-204
SELECT DISTINCT + 53 * 68 - COALESCE ( + SUM( DISTINCT + 87 ), - + 66, - - 56, + SUM( DISTINCT - + 59 ) ) - 40 col0
----
3477

skipif mysql # not compatible
query I rowsort label-204
SELECT DISTINCT + 53 * 68 - COALESCE ( + SUM ( DISTINCT + 87 ), - + 66, - - 56, + SUM ( DISTINCT - + 59 ) ) - 40 col0
----
3477

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-206
SELECT COUNT( * ) * - COUNT( * ) * + - 3 + + 74 AS col1, 40 * + COUNT( * ) AS col1
----
77
40

skipif mysql # not compatible
query II rowsort label-206
SELECT COUNT ( * ) * - COUNT ( * ) * + - 3 + + 74 AS col1, 40 * + COUNT ( * ) AS col1
----
77
40

onlyif mysql # aggregate syntax: 
query II rowsort label-207
SELECT - 58 AS col1, + ( + + ( - 77 ) ) - + ( COUNT( * ) ) col0
----
-58
-78

skipif mysql # not compatible
query II rowsort label-207
SELECT - 58 AS col1, + ( + + ( - 77 ) ) - + ( COUNT ( * ) ) col0
----
-58
-78

query I rowsort
SELECT 64 + + 92 + 16
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-209
SELECT SUM( - - 13 ) * + - COALESCE ( 1, + 68 )
----
-13

skipif mysql # not compatible
query I rowsort label-209
SELECT SUM ( - - 13 ) * + - COALESCE ( 1, + 68 )
----
-13

query II rowsort
SELECT DISTINCT 62, 14 * - - 27 col2
----
62
378

query I rowsort
SELECT 74 + - + 82 col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-212
SELECT + 64 - - CASE COUNT( * ) WHEN + 71 / + 51 + COUNT( * ) THEN + 71 WHEN + - COUNT( * ) THEN NULL ELSE NULL END / - - COUNT( 41 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-212
SELECT + 64 - - CASE COUNT ( * ) WHEN + 71 / + 51 + COUNT ( * ) THEN + 71 WHEN + - COUNT ( * ) THEN NULL ELSE NULL END / - - COUNT ( 41 ) AS col1
----
NULL

query I rowsort
SELECT ( - + 58 ) + + 80
----
22

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-215
SELECT DISTINCT - COALESCE ( COALESCE ( 44, - + 8 * - 16 + 36 ), + MIN( DISTINCT 39 ), + 16 + 42 ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-215
SELECT DISTINCT - COALESCE ( COALESCE ( 44, - + 8 * - 16 + 36 ), + MIN ( DISTINCT 39 ), + 16 + 42 ) AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-216
SELECT - 44 + - COALESCE ( - 13, - COUNT( * ) * - 19 + - 15, - + 99 + 12 )
----
-31

skipif mysql # not compatible
query I rowsort label-216
SELECT - 44 + - COALESCE ( - 13, - COUNT ( * ) * - 19 + - 15, - + 99 + 12 )
----
-31

query I rowsort
SELECT + 53 * - 69 - - 48 * + ( + 2 ) AS col1
----
-3561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-218
SELECT DISTINCT + 28 + + - CAST( NULL AS SIGNED ) + 25 / - 30 * 19 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-218
SELECT DISTINCT + 28 + + - CAST ( NULL AS INTEGER ) + 25 / - 30 * 19 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-219
SELECT ALL COALESCE ( - + CASE WHEN - 37 IS NULL THEN - 84 ELSE - 41 + - 68 DIV 93 * COALESCE ( - + 3, - 58 + - MAX( ALL + 6 ) * + + MAX( DISTINCT - + 82 ) ) * - + 73 - 32 END, - COALESCE ( - 75, + + 97 ) + - + NULLIF ( 80, - COALESCE ( 93, + 43 ) * - 65 ) DIV 40 ) + 9 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-219
SELECT ALL COALESCE ( - + CASE WHEN - 37 IS NULL THEN - 84 ELSE - 41 + - 68 / 93 * COALESCE ( - + 3, - 58 + - MAX ( ALL + 6 ) * + + MAX ( DISTINCT - + 82 ) ) * - + 73 - 32 END, - COALESCE ( - 75, + + 97 ) + - + NULLIF ( 80, - COALESCE ( 93, + 43 ) * - 65 ) / 40 ) + 9 AS col2
----
82

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

query II rowsort
SELECT 65, - 68 - 59 + + 99 * + 68 AS col0
----
65
6605

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

skipif mysql # not compatible
query I rowsort label-222
SELECT - 71 + COUNT ( * ) AS col1
----
-70

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-223
SELECT - COALESCE ( + - 38, 44 * + 61 * - 48 DIV CASE WHEN NOT - CAST( NULL AS DECIMAL ) IS NULL THEN + ( - 44 ) END + + 97 + - + 60 ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-223
SELECT - COALESCE ( + - 38, 44 * + 61 * - 48 / CASE WHEN NOT - CAST ( NULL AS REAL ) IS NULL THEN + ( - 44 ) END + + 97 + - + 60 ) AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-224
SELECT ALL - COALESCE ( 63, + 77 - - COUNT( * ) + ( - - 48 ), - 64 + 58 - - COUNT( * ), - 35 ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-224
SELECT ALL - COALESCE ( 63, + 77 - - COUNT ( * ) + ( - - 48 ), - 64 + 58 - - COUNT ( * ), - 35 ) AS col0
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-225
SELECT + ( + - ( - 24 ) ) * 10 DIV - ( + 58 ) col1
----
-4

skipif mysql # not compatible
query I rowsort label-225
SELECT + ( + - ( - 24 ) ) * 10 / - ( + 58 ) col1
----
-4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-226
SELECT ( + 23 ) + + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-226
SELECT ( + 23 ) + + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-227
SELECT + 93 + - + 80, + COUNT( ALL + ( 50 ) ) AS col0
----
13
1

skipif mysql # not compatible
query II rowsort label-227
SELECT + 93 + - + 80, + COUNT ( ALL + ( 50 ) ) AS col0
----
13
1

query I rowsort
SELECT + 37 * + 62
----
2294

query I rowsort
SELECT ALL + 34 + + 57 + 70
----
161

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-230
SELECT + + 29 AS col1, 94 DIV + + CAST( 22 AS SIGNED ) col0
----
29
4

skipif mysql # not compatible
query II rowsort label-230
SELECT + + 29 AS col1, 94 / + + CAST ( 22 AS INTEGER ) col0
----
29
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-231
SELECT DISTINCT + MIN( - + 26 ) DIV - 28 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-231
SELECT DISTINCT + MIN ( - + 26 ) / - 28 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-232
SELECT 75 + + + 20 * + - COUNT( * ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-232
SELECT 75 + + + 20 * + - COUNT ( * ) AS col0
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-233
SELECT COALESCE ( - 27, + - COUNT( * ), - 42 ) AS col2, - 50 AS col0
----
-27
-50

skipif mysql # not compatible
query II rowsort label-233
SELECT COALESCE ( - 27, + - COUNT ( * ), - 42 ) AS col2, - 50 AS col0
----
-27
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-234
SELECT ALL 86 - + COUNT( * ) * + 57
----
29

skipif mysql # not compatible
query I rowsort label-234
SELECT ALL 86 - + COUNT ( * ) * + 57
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-235
SELECT ALL ( + 2 ) - 46 DIV - + COUNT( * ) + - 2
----
46

skipif mysql # not compatible
query I rowsort label-235
SELECT ALL ( + 2 ) - 46 / - + COUNT ( * ) + - 2
----
46

query I rowsort
SELECT 68 * 48 col1
----
3264

onlyif mysql # DIV for integer division: 
query I rowsort label-237
SELECT 23 DIV - 40 + - 70 * 74 * + - 87
----
450660

skipif mysql # not compatible
query I rowsort label-237
SELECT 23 / - 40 + - 70 * 74 * + - 87
----
450660

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-239
SELECT COUNT( ALL 42 ) * - 98 DIV - ( + 82 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-239
SELECT COUNT ( ALL 42 ) * - 98 / - ( + 82 ) AS col0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-240
SELECT 65 + NULLIF ( 9, - CAST( NULL AS DECIMAL ) / + - 83 )
----
74

skipif mysql # not compatible
query I rowsort label-240
SELECT 65 + NULLIF ( 9, - CAST ( NULL AS REAL ) / + - 83 )
----
74

query I rowsort
SELECT 68 * - + 42 AS col1
----
-2856

query I rowsort
SELECT + 51 * 86 + 17 AS col0
----
4403

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-243
SELECT 93 + COUNT( * ) * ( - 27 ) DIV + + COUNT( * ) - + - 97 DIV - + 58 + + 42 DIV + NULLIF ( - 39, - 51 - + 43 * 88 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-243
SELECT 93 + COUNT ( * ) * ( - 27 ) / + + COUNT ( * ) - + - 97 / - + 58 + + 42 / + NULLIF ( - 39, - 51 - + 43 * 88 ) AS col1
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-244
SELECT DISTINCT - 52 * COALESCE ( 20, CAST( NULL AS SIGNED ) * + - 3 - - 41 )
----
-1040

skipif mysql # not compatible
query I rowsort label-244
SELECT DISTINCT - 52 * COALESCE ( 20, CAST ( NULL AS INTEGER ) * + - 3 - - 41 )
----
-1040

onlyif mysql # aggregate syntax: 
query I rowsort label-245
SELECT 9 + MAX( DISTINCT 31 )
----
40

skipif mysql # not compatible
query I rowsort label-245
SELECT 9 + MAX ( DISTINCT 31 )
----
40

query II rowsort
SELECT 83 * - ( + 24 ), 82 AS col2
----
-1992
82

query I rowsort
SELECT DISTINCT - - 32 * - + 69
----
-2208

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

skipif mysql # not compatible
query I rowsort label-248
SELECT DISTINCT + + COUNT ( * ) + + - 67 AS col1
----
-66

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

query III rowsort
SELECT ALL + 99 + 78 + 18 AS col2, - 82 * - 55, + 6 * 65 AS col2
----
195
4510
390

onlyif mysql # DIV for integer division: 
query I rowsort label-251
SELECT DISTINCT - - ( - - 92 ) DIV + 93 * + 96 * - - 40 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-251
SELECT DISTINCT - - ( - - 92 ) / + 93 * + 96 * - - 40 AS col0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-252
SELECT ALL 61 + - + COALESCE ( - - 59, - 7 + 48 * + 11 / + 20 / 17 + - 57, - 22 + + + 30 ) + - + CAST( NULL AS DECIMAL ) * - ( - 4 ) * 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-252
SELECT ALL 61 + - + COALESCE ( - - 59, - 7 + 48 * + 11 / + 20 / 17 + - 57, - 22 + + + 30 ) + - + CAST ( NULL AS REAL ) * - ( - 4 ) * 10 AS col0
----
NULL

query I rowsort
SELECT 51 * - 5 + + NULLIF ( - + 20, + - 96 ) AS col0
----
-275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-254
SELECT ALL - 47 * - - CAST( 66 AS SIGNED ) * + - 89 AS col1
----
276078

skipif mysql # not compatible
query I rowsort label-254
SELECT ALL - 47 * - - CAST ( 66 AS INTEGER ) * + - 89 AS col1
----
276078

query II rowsort
SELECT ALL - - 2 + - 43 AS col2, + 79 AS col1
----
-41
79

query I rowsort
SELECT COALESCE ( 87, + + 60 ) AS col2
----
87

query I rowsort
SELECT DISTINCT + 14 * + 8
----
112

query I rowsort
SELECT DISTINCT - 56 - - 69 AS col0
----
13

query I rowsort
SELECT + 11 * + 23 + - 73 * + 28
----
-1791

query I rowsort
SELECT - 85 * - - 59 + - + 56
----
-5071

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-262
SELECT SUM( 42 )
----
42

skipif mysql # not compatible
query I rowsort label-262
SELECT SUM ( 42 )
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-263
SELECT 37 DIV - 25 + + CAST( AVG ( 27 ) AS SIGNED ) + 48 * - 50 + + 58 + + - 97 - - 45 * - MAX( - COALESCE ( + 2, 41 + NULLIF ( + 77, - 94 + + 40 ) + - + 14, 82 ) ) * COUNT( * ) * - 29 + + 33 * 39 AS col2
----
-3736

skipif mysql # not compatible
query I rowsort label-263
SELECT 37 / - 25 + + CAST ( AVG ( 27 ) AS INTEGER ) + 48 * - 50 + + 58 + + - 97 - - 45 * - MAX ( - COALESCE ( + 2, 41 + NULLIF ( + 77, - 94 + + 40 ) + - + 14, 82 ) ) * COUNT ( * ) * - 29 + + 33 * 39 AS col2
----
-3736

query I rowsort
SELECT 78 * 86 AS col0
----
6708

onlyif mysql # aggregate syntax: 
query I rowsort label-265
SELECT DISTINCT - ( COUNT( - + 94 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-265
SELECT DISTINCT - ( COUNT ( - + 94 ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-266
SELECT DISTINCT 32 * + COUNT( * ) * + 73, COUNT( - - 67 ) AS col0
----
2336
1

skipif mysql # not compatible
query II rowsort label-266
SELECT DISTINCT 32 * + COUNT ( * ) * + 73, COUNT ( - - 67 ) AS col0
----
2336
1

onlyif mysql # aggregate syntax: 
query I rowsort label-267
SELECT SUM( DISTINCT - + 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-267
SELECT SUM ( DISTINCT - + 33 )
----
-33

query I rowsort
SELECT ALL 85 * - 56
----
-4760

onlyif mysql # aggregate syntax: 
query I rowsort label-269
SELECT DISTINCT 96 * + 30 * + MAX( ALL + 29 ) AS col2
----
83520

skipif mysql # not compatible
query I rowsort label-269
SELECT DISTINCT 96 * + 30 * + MAX ( ALL + 29 ) AS col2
----
83520

query II rowsort
SELECT ALL - 13 AS col2, - 28 + - 30 + + 11 - + ( + 63 ) + 36 AS col1
----
-13
-74

query II rowsort
SELECT + 90, 31 AS col1
----
90
31

onlyif mysql # aggregate syntax: 
query I rowsort label-272
SELECT + NULLIF ( + 56, 19 * - - NULLIF ( 93, 43 * 68 - + 14 * 23 * - 27 + - 93 ) * 28 / - - 13 - - 77 + - 62 + 72 - - - 42 + 26 / - 31 ) * - 64 + - 92 + - 6 * - + NULLIF ( - 11, SUM( DISTINCT 29 ) * + 94 + + COUNT( * ) * 8 ) - + 75 * 82 - 62 AS col2
----
-9954

skipif mysql # not compatible
query I rowsort label-272
SELECT + NULLIF ( + 56, 19 * - - NULLIF ( 93, 43 * 68 - + 14 * 23 * - 27 + - 93 ) * 28 / - - 13 - - 77 + - 62 + 72 - - - 42 + 26 / - 31 ) * - 64 + - 92 + - 6 * - + NULLIF ( - 11, SUM ( DISTINCT 29 ) * + 94 + + COUNT ( * ) * 8 ) - + 75 * 82 - 62 AS col2
----
-9954

onlyif mysql # DIV for integer division: 
query I rowsort label-273
SELECT + 37 DIV 35 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-273
SELECT + 37 / 35 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-274
SELECT + COUNT( - 99 ) - + 21
----
-20

skipif mysql # not compatible
query I rowsort label-274
SELECT + COUNT ( - 99 ) - + 21
----
-20

query II rowsort
SELECT + 49, + 36 col1
----
49
36

query I rowsort
SELECT ALL 95 * - 38
----
-3610

query I rowsort
SELECT ALL + 93 + - 90
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-278
SELECT + 83 * 62 * - + COUNT( DISTINCT 33 )
----
-5146

skipif mysql # not compatible
query I rowsort label-278
SELECT + 83 * 62 * - + COUNT ( DISTINCT 33 )
----
-5146

onlyif mysql # aggregate syntax: 
query II rowsort label-279
SELECT ALL 89 + + + 38 + 7 col0, COUNT( * ) * 29
----
134
29

skipif mysql # not compatible
query II rowsort label-279
SELECT ALL 89 + + + 38 + 7 col0, COUNT ( * ) * 29
----
134
29

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-281
SELECT ALL + COUNT( * ) + - 2
----
-1

skipif mysql # not compatible
query I rowsort label-281
SELECT ALL + COUNT ( * ) + - 2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-282
SELECT - - 8 - + - COALESCE ( - 88, - 20 DIV + 38 * CASE + + 38 WHEN - 76 THEN NULL ELSE - 60 END - 71, + - 54 + - + 36 + + + 83 DIV - 99 ) col1
----
-80

skipif mysql # not compatible
query I rowsort label-282
SELECT - - 8 - + - COALESCE ( - 88, - 20 / + 38 * CASE + + 38 WHEN - 76 THEN NULL ELSE - 60 END - 71, + - 54 + - + 36 + + + 83 / - 99 ) col1
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-283
SELECT - 46 * ( + 17 ) / - 43 + + + 12 / + ( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-283
SELECT - 46 * ( + 17 ) / - 43 + + + 12 / + ( - + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - + 34 * 67 + - 55 * - + 79 + - ( 65 ) - + ( - 98 ) AS col2
----
2100

onlyif mysql # aggregate syntax: 
query I rowsort label-285
SELECT + CASE - 98 WHEN - 42 THEN NULL WHEN + 16 + - + 12 * + COUNT( * ) + + 64 * - COUNT( * ) THEN NULL WHEN - NULLIF ( - 37, + COUNT( * ) ) THEN + 0 END + - + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-285
SELECT + CASE - 98 WHEN - 42 THEN NULL WHEN + 16 + - + 12 * + COUNT ( * ) + + 64 * - COUNT ( * ) THEN NULL WHEN - NULLIF ( - 37, + COUNT ( * ) ) THEN + 0 END + - + 92
----
NULL

query I rowsort
SELECT ALL - + 55 * + - 35 AS col2
----
1925

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-287
SELECT - 92 + 92 * + COUNT( * ) * + 38 * 64 + - + COALESCE ( 31, + + 38, - 48 * + 83 + - + 16 DIV + 71, 69 ) + - COUNT( ALL - + 50 ) AS col1
----
223620

skipif mysql # not compatible
query I rowsort label-287
SELECT - 92 + 92 * + COUNT ( * ) * + 38 * 64 + - + COALESCE ( 31, + + 38, - 48 * + 83 + - + 16 / + 71, 69 ) + - COUNT ( ALL - + 50 ) AS col1
----
223620

onlyif mysql # aggregate syntax: 
query I rowsort label-288
SELECT - 62 - - + CASE 60 WHEN + 0 * - - 81 * 41 THEN - SUM( ALL 65 ) END - - 61 * - 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-288
SELECT - 62 - - + CASE 60 WHEN + 0 * - - 81 * 41 THEN - SUM ( ALL 65 ) END - - 61 * - 70 AS col0
----
NULL

query II rowsort
SELECT DISTINCT + 2 AS col0, + ( 44 ) - - 65 * 5
----
2
369

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-290
SELECT DISTINCT - 51 * ( CAST( 94 AS SIGNED ) ) col1
----
-4794

skipif mysql # not compatible
query I rowsort label-290
SELECT DISTINCT - 51 * ( CAST ( 94 AS INTEGER ) ) col1
----
-4794

onlyif mysql # aggregate syntax: 
query I rowsort label-291
SELECT ALL + + COUNT( * ) + - 15 + + + 43 * - 65 * NULLIF ( + ( + ( + + COALESCE ( - 94, + + 55 * + + 14 ) ) ), + SUM( 27 ) + 4 / + 35 ) + COUNT( - 67 ) + + 41 - - 33 * + MIN( DISTINCT + 28 )
----
263682

skipif mysql # not compatible
query I rowsort label-291
SELECT ALL + + COUNT ( * ) + - 15 + + + 43 * - 65 * NULLIF ( + ( + ( + + COALESCE ( - 94, + + 55 * + + 14 ) ) ), + SUM ( 27 ) + 4 / + 35 ) + COUNT ( - 67 ) + + 41 - - 33 * + MIN ( DISTINCT + 28 )
----
263682

query II rowsort
SELECT DISTINCT + 91 AS col1, - 57 * - + 69 col0
----
91
3933

query I rowsort
SELECT - 19 + - 67
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-294
SELECT ALL - CASE + COUNT( * ) WHEN 11 - - - 18 - COALESCE ( + + CAST( NULL AS SIGNED ), 3 * + 19 ) / + ( CASE 74 WHEN + + 67 THEN NULL WHEN + - CASE 89 WHEN + + SUM( ALL - 93 ) * + 17 + COALESCE ( - 54, + COALESCE ( - - 29, + 41 ) ) THEN ( MAX( DISTINCT 19 ) ) * - 19 ELSE 84 - + 7 END + - NULLIF ( 12, + 94 ) THEN NULL ELSE + 68 END ) + 18 THEN NULL WHEN - 63 THEN NULL ELSE + 59 + + CAST( NULL AS SIGNED ) / ( 48 * - 70 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-294
SELECT ALL - CASE + COUNT ( * ) WHEN 11 - - - 18 - COALESCE ( + + CAST ( NULL AS INTEGER ), 3 * + 19 ) / + ( CASE 74 WHEN + + 67 THEN NULL WHEN + - CASE 89 WHEN + + SUM ( ALL - 93 ) * + 17 + COALESCE ( - 54, + COALESCE ( - - 29, + 41 ) ) THEN ( MAX ( DISTINCT 19 ) ) * - 19 ELSE 84 - + 7 END + - NULLIF ( 12, + 94 ) THEN NULL ELSE + 68 END ) + 18 THEN NULL WHEN - 63 THEN NULL ELSE + 59 + + CAST ( NULL AS INTEGER ) / ( 48 * - 70 ) END AS col2
----
NULL

query I rowsort
SELECT - + 32 + 5 AS col1
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-296
SELECT DISTINCT COALESCE ( + 43, + 13 * MAX( - 91 ) DIV + 18 + - 16 + + - CASE + 61 WHEN - + 0 THEN - 14 * - + CAST( - + 92 AS SIGNED ) + + + NULLIF ( - ( - - 36 ), 92 * - + SUM( DISTINCT - + 95 ) + - 94 - 28 ) WHEN + 98 * - + 86 * + 30 THEN - 54 * 53 END + - COUNT( * ) )
----
43

skipif mysql # not compatible
query I rowsort label-296
SELECT DISTINCT COALESCE ( + 43, + 13 * MAX ( - 91 ) / + 18 + - 16 + + - CASE + 61 WHEN - + 0 THEN - 14 * - + CAST ( - + 92 AS INTEGER ) + + + NULLIF ( - ( - - 36 ), 92 * - + SUM ( DISTINCT - + 95 ) + - 94 - 28 ) WHEN + 98 * - + 86 * + 30 THEN - 54 * 53 END + - COUNT ( * ) )
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-297
SELECT - - SUM( - 21 ) + - + COUNT( * ) * - - 12 + ( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-297
SELECT - - SUM ( - 21 ) + - + COUNT ( * ) * - - 12 + ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT - 95 * 42 col0
----
-3990

query I rowsort
SELECT - ( + 84 ) * + + ( - 30 ) AS col1
----
2520

onlyif mysql # aggregate syntax: 
query I rowsort label-300
SELECT - + 82 + ( + 36 ) + - COUNT( * ) + + - 26 - + - 19 + - + COUNT( * ) * - + 45
----
-9

skipif mysql # not compatible
query I rowsort label-300
SELECT - + 82 + ( + 36 ) + - COUNT ( * ) + + - 26 - + - 19 + - + COUNT ( * ) * - + 45
----
-9

query I rowsort
SELECT ALL + 41 * - 86
----
-3526

query I rowsort
SELECT DISTINCT ( - - ( - 21 ) )
----
-21

query II rowsort
SELECT ALL 91 * - + 61 col1, + 81
----
-5551
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-304
SELECT - 97 * 77 col1, CASE + 81 WHEN - 32 * - 67 THEN NULL WHEN + + 82 - + + 94 - COUNT( * ) THEN NULL WHEN + - COALESCE ( + 35, + NULLIF ( + 90, ( + 79 ) ), 88 * - + 75 / 21 + - CAST( - - 15 AS SIGNED ) + + - COUNT( - 34 ) / + CAST( NULL AS DECIMAL ) ) THEN 54 + - 7 * 58 ELSE NULL END + 58 AS col0
----
-7469
NULL

skipif mysql # not compatible
query II rowsort label-304
SELECT - 97 * 77 col1, CASE + 81 WHEN - 32 * - 67 THEN NULL WHEN + + 82 - + + 94 - COUNT ( * ) THEN NULL WHEN + - COALESCE ( + 35, + NULLIF ( + 90, ( + 79 ) ), 88 * - + 75 / 21 + - CAST ( - - 15 AS INTEGER ) + + - COUNT ( - 34 ) / + CAST ( NULL AS REAL ) ) THEN 54 + - 7 * 58 ELSE NULL END + 58 AS col0
----
-7469
NULL

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

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

query I rowsort
SELECT DISTINCT + 24 * 69 AS col1
----
1656

onlyif mysql # aggregate syntax: 
query II rowsort label-307
SELECT ALL - 69 * + + NULLIF ( - 54, - + 59 / 10 * + ( 94 ) + - 13 * - + 82 / COALESCE ( COUNT( * ), + 42 / + - 48 ) * - 99 ) * + 26, - 2 AS col2
----
96876
-2

skipif mysql # not compatible
query II rowsort label-307
SELECT ALL - 69 * + + NULLIF ( - 54, - + 59 / 10 * + ( 94 ) + - 13 * - + 82 / COALESCE ( COUNT ( * ), + 42 / + - 48 ) * - 99 ) * + 26, - 2 AS col2
----
96876
-2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-309
SELECT ALL NULLIF ( + COUNT( * ), + NULLIF ( - COALESCE ( - 25, + 16 ), 33 ) ) * - 25 + + 46 + 35 + 64 AS col1
----
120

skipif mysql # not compatible
query I rowsort label-309
SELECT ALL NULLIF ( + COUNT ( * ), + NULLIF ( - COALESCE ( - 25, + 16 ), 33 ) ) * - 25 + + 46 + 35 + 64 AS col1
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-310
SELECT + NULLIF ( + COUNT( * ), - 60 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-310
SELECT + NULLIF ( + COUNT ( * ), - 60 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-311
SELECT ALL + MIN( + 43 ) * ( - 24 ) + - 69 - - - 12
----
-1113

skipif mysql # not compatible
query I rowsort label-311
SELECT ALL + MIN ( + 43 ) * ( - 24 ) + - 69 - - - 12
----
-1113

onlyif mysql # aggregate syntax: 
query I rowsort label-312
SELECT ALL COALESCE ( - 50, 12 + + + 4 - - + 17, + 85 ) * + SUM( DISTINCT + - 93 ) * 1 + + 28 AS col1
----
4678

skipif mysql # not compatible
query I rowsort label-312
SELECT ALL COALESCE ( - 50, 12 + + + 4 - - + 17, + 85 ) * + SUM ( DISTINCT + - 93 ) * 1 + + 28 AS col1
----
4678

query I rowsort
SELECT + 49 * + 72 + - 53 col0
----
3475

query I rowsort
SELECT ALL - + 88 * + 70 * - 43 + - 94 * - ( 74 )
----
271836

onlyif mysql # DIV for integer division: 
query I rowsort label-315
SELECT + - 71 + + 38 + 1 DIV + 74 DIV + 58 DIV 29 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-315
SELECT + - 71 + + 38 + 1 / + 74 / + 58 / 29 AS col0
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-316
SELECT + 77 DIV 38 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-316
SELECT + 77 / 38 AS col0
----
2

query I rowsort
SELECT ALL + - 69 * + 8 - + 39
----
-591

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-318
SELECT DISTINCT + 58 DIV 18 * + - 4 * + COUNT( * ) * + 91 * - 94 * + - 73 AS col0
----
-7493304

skipif mysql # not compatible
query I rowsort label-318
SELECT DISTINCT + 58 / 18 * + - 4 * + COUNT ( * ) * + 91 * - 94 * + - 73 AS col0
----
-7493304

query I rowsort
SELECT + + 53 * - 39 + - - 2
----
-2065

query I rowsort
SELECT COALESCE ( 10, + 57 * 59 )
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-321
SELECT ALL + - 35 * - CAST( + 35 AS SIGNED ) + - ( - + 80 ) + + COALESCE ( 10, + 23 ) AS col0
----
1315

skipif mysql # not compatible
query I rowsort label-321
SELECT ALL + - 35 * - CAST ( + 35 AS INTEGER ) + - ( - + 80 ) + + COALESCE ( 10, + 23 ) AS col0
----
1315

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-322
SELECT - + 95 * - CAST( 12 AS SIGNED )
----
1140

skipif mysql # not compatible
query I rowsort label-322
SELECT - + 95 * - CAST ( 12 AS INTEGER )
----
1140

onlyif mysql # aggregate syntax: 
query II rowsort label-323
SELECT DISTINCT + COUNT( DISTINCT - ( + 2 ) ) * - 9 AS col1, 70 AS col1
----
-9
70

skipif mysql # not compatible
query II rowsort label-323
SELECT DISTINCT + COUNT ( DISTINCT - ( + 2 ) ) * - 9 AS col1, 70 AS col1
----
-9
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-324
SELECT DISTINCT 80 * + - 71 AS col0, - CASE 35 WHEN + + 38 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN 81 * + 60 * - - 70 * - 14 + - COUNT( * ) + - + 93 ELSE + + 39 * + 21 END AS col0
----
-5680
-819

skipif mysql # not compatible
query II rowsort label-324
SELECT DISTINCT 80 * + - 71 AS col0, - CASE 35 WHEN + + 38 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN 81 * + 60 * - - 70 * - 14 + - COUNT ( * ) + - + 93 ELSE + + 39 * + 21 END AS col0
----
-5680
-819

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-325
SELECT ALL ( - CAST( NULL AS SIGNED ) ) * - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-325
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) * - 22
----
NULL

query I rowsort
SELECT DISTINCT 21 * - - 2 AS col2
----
42

query I rowsort
SELECT - 91 + + + 76 AS col1
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-328
SELECT ALL ( + MAX( DISTINCT + CAST( + ( + ( + - 89 ) ) AS SIGNED ) ) ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-328
SELECT ALL ( + MAX ( DISTINCT + CAST ( + ( + ( + - 89 ) ) AS INTEGER ) ) ) AS col2
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-329
SELECT CAST( NULL AS SIGNED ) / - 89 / - ( + 13 )
----
NULL

skipif mysql # not compatible
query I rowsort label-329
SELECT CAST ( NULL AS INTEGER ) / - 89 / - ( + 13 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-330
SELECT 84 * + - CASE 69 WHEN + ( - + 59 ) * CAST( NULL AS SIGNED ) + 80 THEN + 98 WHEN + 24 THEN NULL ELSE + NULLIF ( + + CASE - 5 WHEN - 59 / + COUNT( * ) * ( + + SUM( + 30 ) ) - + COUNT( * ) THEN NULL WHEN + - COUNT( * ) THEN - ( + COUNT( * ) ) ELSE + 21 END, + + 65 * + ( 83 ) - CAST( NULL AS SIGNED ) ) * - ( 29 * + 41 ) END
----
2097396

skipif mysql # not compatible
query I rowsort label-330
SELECT 84 * + - CASE 69 WHEN + ( - + 59 ) * CAST ( NULL AS INTEGER ) + 80 THEN + 98 WHEN + 24 THEN NULL ELSE + NULLIF ( + + CASE - 5 WHEN - 59 / + COUNT ( * ) * ( + + SUM ( + 30 ) ) - + COUNT ( * ) THEN NULL WHEN + - COUNT ( * ) THEN - ( + COUNT ( * ) ) ELSE + 21 END, + + 65 * + ( 83 ) - CAST ( NULL AS INTEGER ) ) * - ( 29 * + 41 ) END
----
2097396

query I rowsort
SELECT ALL + 29 + + ( + 87 )
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-332
SELECT ALL + 11 + + CASE + 97 WHEN + + CAST( NULL AS SIGNED ) THEN - - AVG ( + 79 ) * + - MIN( - ( 92 ) ) + COUNT( 2 ) + - 54 - + 38 * 36 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-332
SELECT ALL + 11 + + CASE + 97 WHEN + + CAST ( NULL AS INTEGER ) THEN - - AVG ( + 79 ) * + - MIN ( - ( 92 ) ) + COUNT ( 2 ) + - 54 - + 38 * 36 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-333
SELECT 74 DIV 27 * + - 24 AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-333
SELECT 74 / 27 * + - 24 AS col2
----
-48

onlyif mysql # DIV for integer division: 
query II rowsort label-334
SELECT ( - 44 ) DIV + + 97 * 93 + 51 AS col0, + 46 DIV - - 69 * ( - 23 )
----
51
0

skipif mysql # not compatible
query II rowsort label-334
SELECT ( - 44 ) / + + 97 * 93 + 51 AS col0, + 46 / - - 69 * ( - 23 )
----
51
0

onlyif mysql # DIV for integer division: 
query I rowsort label-335
SELECT DISTINCT + 20 DIV 97 col0
----
0

skipif mysql # not compatible
query I rowsort label-335
SELECT DISTINCT + 20 / 97 col0
----
0

query I rowsort
SELECT ALL - 66 + - + 99
----
-165

onlyif mysql # aggregate syntax: 
query II rowsort label-337
SELECT ALL + 11 + - - MIN( - ( - 61 ) ) + - + 5 - - - 4 * + COUNT( DISTINCT - 99 ) AS col2, 56 AS col2
----
63
56

skipif mysql # not compatible
query II rowsort label-337
SELECT ALL + 11 + - - MIN ( - ( - 61 ) ) + - + 5 - - - 4 * + COUNT ( DISTINCT - 99 ) AS col2, 56 AS col2
----
63
56

onlyif mysql # aggregate syntax: 
query II rowsort label-338
SELECT 31 col1, + COUNT( * ) + - 67
----
31
-66

skipif mysql # not compatible
query II rowsort label-338
SELECT 31 col1, + COUNT ( * ) + - 67
----
31
-66

query I rowsort
SELECT ALL 95 + + 83 + + 43 AS col1
----
221

query I rowsort
SELECT 99 * - 19
----
-1881

query I rowsort
SELECT DISTINCT - 93 * 4 AS col0
----
-372

onlyif mysql # aggregate syntax: 
query I rowsort label-342
SELECT 9 * + 19 * - COALESCE ( COUNT( * ), - ( - - ( + 73 ) ) ) AS col1
----
-171

skipif mysql # not compatible
query I rowsort label-342
SELECT 9 * + 19 * - COALESCE ( COUNT ( * ), - ( - - ( + 73 ) ) ) AS col1
----
-171

query I rowsort
SELECT 12 * - 14 + - + 83 AS col1
----
-251

query I rowsort
SELECT ALL - 75 * + 44
----
-3300

query I rowsort
SELECT DISTINCT + 21 * + 39 AS col2
----
819

onlyif mysql # aggregate syntax: 
query I rowsort label-346
SELECT ALL - MIN( - 91 ) + + 70 AS col0
----
161

skipif mysql # not compatible
query I rowsort label-346
SELECT ALL - MIN ( - 91 ) + + 70 AS col0
----
161

query I rowsort
SELECT + 47 - - 90 AS col2
----
137

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-348
SELECT ALL - + COALESCE ( + 69, - 45 * 0 - + 51, + NULLIF ( - 22, + + CAST( + ( - 17 ) AS SIGNED ) ) ), + 17 AS col1
----
-69
17

skipif mysql # not compatible
query II rowsort label-348
SELECT ALL - + COALESCE ( + 69, - 45 * 0 - + 51, + NULLIF ( - 22, + + CAST ( + ( - 17 ) AS INTEGER ) ) ), + 17 AS col1
----
-69
17

query I rowsort
SELECT + - COALESCE ( + 10, - - 2 * + 64 )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-350
SELECT DISTINCT - + NULLIF ( - - 40, COUNT( * ) ) - - 95 AS col2
----
55

skipif mysql # not compatible
query I rowsort label-350
SELECT DISTINCT - + NULLIF ( - - 40, COUNT ( * ) ) - - 95 AS col2
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-351
SELECT CASE - - 73 WHEN + 7 THEN NULL WHEN + CASE WHEN NOT + 23 IS NOT NULL THEN - 63 END / + + NULLIF ( CAST( NULL AS SIGNED ), - - CAST( + 55 AS SIGNED ) ) * + MAX( 48 ) THEN - 90 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-351
SELECT CASE - - 73 WHEN + 7 THEN NULL WHEN + CASE WHEN NOT + 23 IS NOT NULL THEN - 63 END / + + NULLIF ( CAST ( NULL AS INTEGER ), - - CAST ( + 55 AS INTEGER ) ) * + MAX ( 48 ) THEN - 90 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-352
SELECT 65 * - NULLIF ( + CAST( - COUNT( * ) AS SIGNED ), 28 DIV 46 * 78 ) - - - 40 - + ( COUNT( * ) ) * 53 DIV - 41 * - ( + NULLIF ( - + COUNT( * ), 92 * - ( - - COUNT( * ) ) + + - 2 + 65 + + - 54 * + 99 ) ) - - 47 + - - CASE + - 52 WHEN ( 59 ) THEN NULL WHEN 74 THEN NULL WHEN + 82 THEN NULL WHEN + 72 + CASE 19 WHEN 9 THEN - 72 WHEN 80 THEN NULL WHEN + 16 THEN 66 * - MAX( + 62 ) + + SUM( + 29 ) ELSE NULL END THEN 96 * 85 + 71 ELSE 51 END AS col2
----
124

skipif mysql # not compatible
query I rowsort label-352
SELECT 65 * - NULLIF ( + CAST ( - COUNT ( * ) AS INTEGER ), 28 / 46 * 78 ) - - - 40 - + ( COUNT ( * ) ) * 53 / - 41 * - ( + NULLIF ( - + COUNT ( * ), 92 * - ( - - COUNT ( * ) ) + + - 2 + 65 + + - 54 * + 99 ) ) - - 47 + - - CASE + - 52 WHEN ( 59 ) THEN NULL WHEN 74 THEN NULL WHEN + 82 THEN NULL WHEN + 72 + CASE 19 WHEN 9 THEN - 72 WHEN 80 THEN NULL WHEN + 16 THEN 66 * - MAX ( + 62 ) + + SUM ( + 29 ) ELSE NULL END THEN 96 * 85 + 71 ELSE 51 END AS col2
----
124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-353
SELECT ALL - - CASE - 67 WHEN + + 76 THEN + 61 * - - 86 WHEN + - ( 1 ) * + 53 * - + 61 + - 43 - - CAST( + 17 AS SIGNED ) THEN NULL ELSE - 1 + - - 76 * - 87 END AS col2
----
-6613

skipif mysql # not compatible
query I rowsort label-353
SELECT ALL - - CASE - 67 WHEN + + 76 THEN + 61 * - - 86 WHEN + - ( 1 ) * + 53 * - + 61 + - 43 - - CAST ( + 17 AS INTEGER ) THEN NULL ELSE - 1 + - - 76 * - 87 END AS col2
----
-6613

onlyif mysql # aggregate syntax: 
query I rowsort label-354
SELECT COUNT( * ) - - - 75 AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-354
SELECT COUNT ( * ) - - - 75 AS col0
----
-74

query I rowsort
SELECT 36 * + 98
----
3528

onlyif mysql # aggregate syntax: 
query II rowsort label-356
SELECT - 37 AS col0, 76 * - MIN( DISTINCT 79 )
----
-37
-6004

skipif mysql # not compatible
query II rowsort label-356
SELECT - 37 AS col0, 76 * - MIN ( DISTINCT 79 )
----
-37
-6004

onlyif mysql # aggregate syntax: 
query I rowsort label-357
SELECT + 75 * + - 71 + - 25 + COUNT( + + 22 ) - + 45 + - COUNT( * ) * - + 48 + - + 46 AS col1
----
-5392

skipif mysql # not compatible
query I rowsort label-357
SELECT + 75 * + - 71 + - 25 + COUNT ( + + 22 ) - + 45 + - COUNT ( * ) * - + 48 + - + 46 AS col1
----
-5392

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

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

query I rowsort
SELECT 28 + + - 11 AS col2
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-360
SELECT + 46 DIV 42
----
1

skipif mysql # not compatible
query I rowsort label-360
SELECT + 46 / 42
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-361
SELECT DISTINCT MIN( DISTINCT + 76 ) + 95 + COUNT( * ) + + 55 - - COUNT( * ) + - + COUNT( * ) * + + COUNT( * ) * + 6 AS col2
----
222

skipif mysql # not compatible
query I rowsort label-361
SELECT DISTINCT MIN ( DISTINCT + 76 ) + 95 + COUNT ( * ) + + 55 - - COUNT ( * ) + - + COUNT ( * ) * + + COUNT ( * ) * + 6 AS col2
----
222

query II rowsort
SELECT ALL 64, - 36 AS col1
----
64
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-363
SELECT ALL 66, COUNT( * ) + - 83 AS col1
----
66
-82

skipif mysql # not compatible
query II rowsort label-363
SELECT ALL 66, COUNT ( * ) + - 83 AS col1
----
66
-82

query I rowsort
SELECT DISTINCT 38 + 82 AS col1
----
120

query I rowsort
SELECT 42 * - 35 AS col2
----
-1470

query I rowsort
SELECT 77 + 60
----
137

query II rowsort
SELECT - 21, - 90 AS col0
----
-21
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-368
SELECT DISTINCT 73 + + 84 - 75 DIV + 9 - - 8 + - MIN( ALL + 0 ) - 42 DIV + + 31 AS col0
----
156

skipif mysql # not compatible
query I rowsort label-368
SELECT DISTINCT 73 + + 84 - 75 / + 9 - - 8 + - MIN ( ALL + 0 ) - 42 / + + 31 AS col0
----
156

query I rowsort
SELECT ALL 32 + 58
----
90

onlyif mysql # aggregate syntax: 
query III rowsort label-370
SELECT 6 AS col2, - MAX( ( - + 64 ) ) AS col0, - 76 + - - ( 92 ) AS col0
----
6
64
16

skipif mysql # not compatible
query III rowsort label-370
SELECT 6 AS col2, - MAX ( ( - + 64 ) ) AS col0, - 76 + - - ( 92 ) AS col0
----
6
64
16

onlyif mysql # aggregate syntax: 
query I rowsort label-371
SELECT ALL 8 + COUNT( * ) * + + 77
----
85

skipif mysql # not compatible
query I rowsort label-371
SELECT ALL 8 + COUNT ( * ) * + + 77
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-372
SELECT 74 + + 63 col1, + COUNT( * ) * + 30
----
137
30

skipif mysql # not compatible
query II rowsort label-372
SELECT 74 + + 63 col1, + COUNT ( * ) * + 30
----
137
30

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

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

query I rowsort
SELECT ALL - ( - 49 ) + + 72 AS col1
----
121

query I rowsort
SELECT 2 * - + 54 * + 3
----
-324

onlyif mysql # DIV for integer division: 
query I rowsort label-376
SELECT - 59 DIV - 56 + - 78 + + 69
----
-8

skipif mysql # not compatible
query I rowsort label-376
SELECT - 59 / - 56 + - 78 + + 69
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-377
SELECT + COUNT( - 14 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-377
SELECT + COUNT ( - 14 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-378
SELECT ALL + COUNT( * ) + 10 * - - MAX( DISTINCT 79 ) * - + 41 - + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-378
SELECT ALL + COUNT ( * ) + 10 * - - MAX ( DISTINCT 79 ) * - + 41 - + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-379
SELECT ALL - 80 - - + 61 + 49 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-379
SELECT ALL - 80 - - + 61 + 49 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 92 * 59 * 54
----
293112

query I rowsort
SELECT 34 - 63 * 67 AS col1
----
-4187

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-382
SELECT DISTINCT - MAX( ( 59 ) ) DIV + - 45 + 76
----
77

skipif mysql # not compatible
query I rowsort label-382
SELECT DISTINCT - MAX ( ( 59 ) ) / + - 45 + 76
----
77

query I rowsort
SELECT ALL - COALESCE ( - 90, - 20 * - 98 + - 91, 47 ) AS col2
----
90

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-385
SELECT ALL - 80 DIV + 12 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-385
SELECT ALL - 80 / + 12 AS col1
----
-6

query I rowsort
SELECT DISTINCT + 22 - 24 * - 32
----
790

query I rowsort
SELECT ALL + - 35 * 22
----
-770

query I rowsort
SELECT - + 71 * + + 65 + 99 * + CASE ( - 59 ) WHEN + 91 THEN 51 END * + - 70 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-389
SELECT - 86 DIV + 81
----
-1

skipif mysql # not compatible
query I rowsort label-389
SELECT - 86 / + 81
----
-1

query I rowsort
SELECT DISTINCT - - 60 AS col1
----
60

query II rowsort
SELECT DISTINCT - 92 AS col1, - 68 AS col0
----
-92
-68

query I rowsort
SELECT 95 * 73 * - - 60
----
416100

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

skipif mysql # not compatible
query I rowsort label-393
SELECT + ( MIN ( + 62 ) )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-394
SELECT 41 + COALESCE ( 42, + SUM( + - 37 ) ) + - + 60 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-394
SELECT 41 + COALESCE ( 42, + SUM ( + - 37 ) ) + - + 60 AS col0
----
23

query II rowsort
SELECT ALL - 0, 44 AS col0
----
0
44

onlyif mysql # aggregate syntax: 
query II rowsort label-396
SELECT DISTINCT + 57 + - COUNT( * ) col1, - 34
----
56
-34

skipif mysql # not compatible
query II rowsort label-396
SELECT DISTINCT + 57 + - COUNT ( * ) col1, - 34
----
56
-34

query I rowsort
SELECT DISTINCT NULLIF ( + 86, 13 ) AS col2
----
86

onlyif mysql # DIV for integer division: 
query II rowsort label-398
SELECT ALL 22 col1, - 29 DIV + + 2
----
22
-14

skipif mysql # not compatible
query II rowsort label-398
SELECT ALL 22 col1, - 29 / + + 2
----
22
-14

query I rowsort
SELECT ALL 41 + + 64
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-400
SELECT ALL - COALESCE ( - 18, - 42, MAX( - 84 ) * - 59 ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-400
SELECT ALL - COALESCE ( - 18, - 42, MAX ( - 84 ) * - 59 ) AS col0
----
18

query II rowsort
SELECT 43, - 51 + + 1 AS col1
----
43
-50

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

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

query I rowsort
SELECT ALL 32 + - 45
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-404
SELECT - SUM( + - 66 )
----
66

skipif mysql # not compatible
query I rowsort label-404
SELECT - SUM ( + - 66 )
----
66

query I rowsort
SELECT DISTINCT + 65 + - + 63 + 30 * 52
----
1562

query II rowsort
SELECT ALL - 11 + + + 41, + 0 * - 47 AS col0
----
30
0

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

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

query I rowsort
SELECT ALL 55 + - 56
----
-1

query I rowsort
SELECT + 60 * 98 AS col2
----
5880

query I rowsort
SELECT + 78 + + + ( - 64 ) AS col1
----
14

query I rowsort
SELECT DISTINCT 84 - - 7 * - 68
----
-392

query I rowsort
SELECT 49 * + + 16 + NULLIF ( - 64, + - 72 )
----
720

query I rowsort
SELECT - 7 * 69
----
-483

query I rowsort
SELECT ALL 12 * - + 39 * - + 43 * + 22 AS col1
----
442728

onlyif mysql # aggregate syntax: 
query I rowsort label-415
SELECT + NULLIF ( 0, - + COUNT( * ) + + 63 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-415
SELECT + NULLIF ( 0, - + COUNT ( * ) + + 63 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-416
SELECT ALL COUNT( * ) * + - 53 - COUNT( * )
----
-54

skipif mysql # not compatible
query I rowsort label-416
SELECT ALL COUNT ( * ) * + - 53 - COUNT ( * )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-417
SELECT DISTINCT - - NULLIF ( CASE + 51 WHEN 24 THEN NULL ELSE - COUNT( * ) END, - 72 ) * - + 36 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-417
SELECT DISTINCT - - NULLIF ( CASE + 51 WHEN 24 THEN NULL ELSE - COUNT ( * ) END, - 72 ) * - + 36 AS col1
----
36

query II rowsort
SELECT ALL + ( 96 ) col2, 37
----
96
37

query I rowsort
SELECT + 56 * - 30 AS col2
----
-1680

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-421
SELECT DISTINCT 44 * - COUNT( * ) + + - CAST( NULL AS SIGNED ) + + + 80 + + 87 AS col0, + 60 * + 11 AS col1
----
NULL
660

skipif mysql # not compatible
query II rowsort label-421
SELECT DISTINCT 44 * - COUNT ( * ) + + - CAST ( NULL AS INTEGER ) + + + 80 + + 87 AS col0, + 60 * + 11 AS col1
----
NULL
660

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-423
SELECT + 45 - + MIN( DISTINCT + + 15 )
----
30

skipif mysql # not compatible
query I rowsort label-423
SELECT + 45 - + MIN ( DISTINCT + + 15 )
----
30

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

skipif mysql # not compatible
query I rowsort label-424
SELECT DISTINCT + - SUM ( DISTINCT - + 93 )
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-425
SELECT ALL - + 28 DIV + COUNT( + + 13 ) AS col1, 79 + 89 AS col1
----
-28
168

skipif mysql # not compatible
query II rowsort label-425
SELECT ALL - + 28 / + COUNT ( + + 13 ) AS col1, 79 + 89 AS col1
----
-28
168

query I rowsort
SELECT ALL - 16 * + + 64 + - 80 - - - 14
----
-1118

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-427
SELECT ALL 16 * + - COALESCE ( + - AVG ( ALL - 53 ), + 4, - + 1 + - 23 * 11 ) * - 45 * - COUNT( * ) + - ( + - CASE - 5 WHEN - 30 + + 80 + - + 59 + - 52 * - 84 THEN - 27 + - 6 END ) AS col0, - COUNT( ALL + 90 ) * COUNT( * ) + - 83 DIV - - SUM( - + 26 ) + + - NULLIF ( 90, COUNT( * ) ) AS col0
----
NULL
-88

skipif mysql # not compatible
query II rowsort label-427
SELECT ALL 16 * + - COALESCE ( + - AVG ( ALL - 53 ), + 4, - + 1 + - 23 * 11 ) * - 45 * - COUNT ( * ) + - ( + - CASE - 5 WHEN - 30 + + 80 + - + 59 + - 52 * - 84 THEN - 27 + - 6 END ) AS col0, - COUNT ( ALL + 90 ) * COUNT ( * ) + - 83 / - - SUM ( - + 26 ) + + - NULLIF ( 90, COUNT ( * ) ) AS col0
----
NULL
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-428
SELECT - 86 DIV - 16 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-428
SELECT - 86 / - 16 AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-429
SELECT ALL + + 90 * + 37 + COUNT( * ) + - 49 AS col0
----
3282

skipif mysql # not compatible
query I rowsort label-429
SELECT ALL + + 90 * + 37 + COUNT ( * ) + - 49 AS col0
----
3282

onlyif mysql # aggregate syntax: 
query I rowsort label-430
SELECT - - COUNT( * ) - - + SUM( - - 75 ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-430
SELECT - - COUNT ( * ) - - + SUM ( - - 75 ) AS col2
----
76

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-433
SELECT ALL NULLIF ( + 82, - COALESCE ( + 77, - 52, ( + AVG ( DISTINCT + 35 ) ) * - ( + CASE + 53 WHEN 2 THEN NULL WHEN - 43 + - CAST( NULL AS SIGNED ) THEN + NULLIF ( - - 56, + MAX( - - 92 ) ) - 97 * 9 DIV + - 44 END ) + + 17 ) ) * + CAST( + - 64 AS SIGNED ) DIV + COUNT( * ) + + + 68 DIV - COUNT( ALL 77 ) AS col1
----
-5316

skipif mysql # not compatible
query I rowsort label-433
SELECT ALL NULLIF ( + 82, - COALESCE ( + 77, - 52, ( + AVG ( DISTINCT + 35 ) ) * - ( + CASE + 53 WHEN 2 THEN NULL WHEN - 43 + - CAST ( NULL AS INTEGER ) THEN + NULLIF ( - - 56, + MAX ( - - 92 ) ) - 97 * 9 / + - 44 END ) + + 17 ) ) * + CAST ( + - 64 AS INTEGER ) / + COUNT ( * ) + + + 68 / - COUNT ( ALL 77 ) AS col1
----
-5316

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-434
SELECT - - 97 DIV 49 + + + NULLIF ( + 81, NULLIF ( - + 16, - 54 ) ) + 83 + COUNT( * ) + - ( - CAST( - 86 AS SIGNED ) ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-434
SELECT - - 97 / 49 + + + NULLIF ( + 81, NULLIF ( - + 16, - 54 ) ) + 83 + COUNT ( * ) + - ( - CAST ( - 86 AS INTEGER ) ) AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-435
SELECT + 14 * - COUNT( * ) + + - MAX( DISTINCT 11 )
----
-25

skipif mysql # not compatible
query I rowsort label-435
SELECT + 14 * - COUNT ( * ) + + - MAX ( DISTINCT 11 )
----
-25

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-439
SELECT ALL CAST( - - 50 AS SIGNED )
----
50

skipif mysql # not compatible
query I rowsort label-439
SELECT ALL CAST ( - - 50 AS INTEGER )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-440
SELECT ALL + 79 + + COUNT( DISTINCT - 72 )
----
80

skipif mysql # not compatible
query I rowsort label-440
SELECT ALL + 79 + + COUNT ( DISTINCT - 72 )
----
80

query I rowsort
SELECT - 67 + + + 78
----
11

query I rowsort
SELECT - 85 * 20 AS col1
----
-1700

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-446
SELECT + 13 + - + CAST ( NULL AS INTEGER ) * + - 30 AS col2
----
NULL

query I rowsort
SELECT ALL + 16 - - 46
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-448
SELECT - COUNT( 36 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-448
SELECT - COUNT ( 36 ) AS col2
----
-1

query I rowsort
SELECT - ( + CASE 58 WHEN - ( + 79 ) THEN + NULLIF ( - - 49, - - 78 + ( + 39 ) ) END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-450
SELECT - 1 DIV 2
----
0

skipif mysql # not compatible
query I rowsort label-450
SELECT - 1 / 2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-452
SELECT ALL COUNT( * ) * 80 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-452
SELECT ALL COUNT ( * ) * 80 AS col0
----
80

query I rowsort
SELECT - 18 + + - 64 col2
----
-82

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-455
SELECT ALL - COUNT( * ) - 80 + + 71 AS col0, NULLIF ( - 40, + 40 * - ( - 44 ) ) * - 34 * - CASE + 17 WHEN + - 54 - + 23 THEN - CASE - - 59 WHEN NULLIF ( + 95, COUNT( * ) + + AVG ( ALL 83 ) + - + 56 * COALESCE ( 45, - 65 + NULLIF ( + 1, + 76 / - 1 * - 55 + + 85 - - 31 * - AVG ( ALL - 89 + + 46 ) ) + 47 ) ) / 13 + 78 THEN NULL ELSE + 86 + 54 END ELSE COUNT( * ) END * 31 AS col2
----
-10
-42160

skipif mysql # not compatible
query II rowsort label-455
SELECT ALL - COUNT ( * ) - 80 + + 71 AS col0, NULLIF ( - 40, + 40 * - ( - 44 ) ) * - 34 * - CASE + 17 WHEN + - 54 - + 23 THEN - CASE - - 59 WHEN NULLIF ( + 95, COUNT ( * ) + + AVG ( ALL 83 ) + - + 56 * COALESCE ( 45, - 65 + NULLIF ( + 1, + 76 / - 1 * - 55 + + 85 - - 31 * - AVG ( ALL - 89 + + 46 ) ) + 47 ) ) / 13 + 78 THEN NULL ELSE + 86 + 54 END ELSE COUNT ( * ) END * 31 AS col2
----
-10
-42160

onlyif mysql # DIV for integer division: 
query I rowsort label-456
SELECT DISTINCT + 63 * 23 DIV + 64 col0
----
22

skipif mysql # not compatible
query I rowsort label-456
SELECT DISTINCT + 63 * 23 / + 64 col0
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-457
SELECT + 71 DIV + - 76
----
0

skipif mysql # not compatible
query I rowsort label-457
SELECT + 71 / + - 76
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-458
SELECT DISTINCT MIN( - 99 ) DIV ( 45 )
----
-2

skipif mysql # not compatible
query I rowsort label-458
SELECT DISTINCT MIN ( - 99 ) / ( 45 )
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-459
SELECT ALL + 14 DIV + 36 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-459
SELECT ALL + 14 / + 36 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-460
SELECT + 77 + ( - COUNT( * ) ) AS col1, 64 * 90
----
76
5760

skipif mysql # not compatible
query II rowsort label-460
SELECT + 77 + ( - COUNT ( * ) ) AS col1, 64 * 90
----
76
5760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-461
SELECT - 68 * - 95 DIV COUNT( * ) + + - SUM( + - 70 ) AS col1
----
6530

skipif mysql # not compatible
query I rowsort label-461
SELECT - 68 * - 95 / COUNT ( * ) + + - SUM ( + - 70 ) AS col1
----
6530

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

skipif mysql # not compatible
query I rowsort label-462
SELECT CAST ( NULL AS INTEGER ) * 1 - NULLIF ( + ( COUNT ( * ) ), 22 ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-463
SELECT ALL - 62 DIV COUNT( DISTINCT + 63 ) + - SUM( - 49 ) DIV - 17 - 28 + - - 99 + + NULLIF ( + - 96, MIN( DISTINCT + 30 ) * 44 * 32 - 73 ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-463
SELECT ALL - 62 / COUNT ( DISTINCT + 63 ) + - SUM ( - 49 ) / - 17 - 28 + - - 99 + + NULLIF ( + - 96, MIN ( DISTINCT + 30 ) * 44 * 32 - 73 ) AS col0
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-464
SELECT ALL + 4 DIV 69 + - COUNT( * ) + - 25 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-464
SELECT ALL + 4 / 69 + - COUNT ( * ) + - 25 AS col1
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-465
SELECT + - SUM( - 43 ) + - + NULLIF ( + - ( 8 ), 70 + + CASE - MAX( DISTINCT - + 57 ) WHEN + 87 THEN CAST( + + 36 AS SIGNED ) ELSE - COUNT( * ) END ) * + 34
----
315

skipif mysql # not compatible
query I rowsort label-465
SELECT + - SUM ( - 43 ) + - + NULLIF ( + - ( 8 ), 70 + + CASE - MAX ( DISTINCT - + 57 ) WHEN + 87 THEN CAST ( + + 36 AS INTEGER ) ELSE - COUNT ( * ) END ) * + 34
----
315

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-466
SELECT DISTINCT 35 * 21 DIV ( + ( - COUNT( * ) ) ) + - 84 AS col2
----
-819

skipif mysql # not compatible
query I rowsort label-466
SELECT DISTINCT 35 * 21 / ( + ( - COUNT ( * ) ) ) + - 84 AS col2
----
-819

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-467
SELECT ALL + CAST( NULL AS SIGNED ) / - COUNT( * ) + + 42 + - 58 + - + 50 * + 90, - 61 AS col2
----
NULL
-61

skipif mysql # not compatible
query II rowsort label-467
SELECT ALL + CAST ( NULL AS INTEGER ) / - COUNT ( * ) + + 42 + - 58 + - + 50 * + 90, - 61 AS col2
----
NULL
-61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-468
SELECT DISTINCT 34 / + CAST( NULL AS SIGNED ) * + + 7 + - 17 col1, 92
----
NULL
92

skipif mysql # not compatible
query II rowsort label-468
SELECT DISTINCT 34 / + CAST ( NULL AS INTEGER ) * + + 7 + - 17 col1, 92
----
NULL
92

onlyif mysql # aggregate syntax: 
query I rowsort label-469
SELECT + + 25 * + - 67 + 93 * - + SUM( 89 ) + + - 28 * + + COUNT( * )
----
-9980

skipif mysql # not compatible
query I rowsort label-469
SELECT + + 25 * + - 67 + 93 * - + SUM ( 89 ) + + - 28 * + + COUNT ( * )
----
-9980

onlyif mysql # aggregate syntax: 
query I rowsort label-470
SELECT ALL COUNT( DISTINCT + 23 ) + + ( + 90 ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-470
SELECT ALL COUNT ( DISTINCT + 23 ) + + ( + 90 ) AS col0
----
91

query II rowsort
SELECT NULLIF ( - 91, - 13 ), - 79 AS col1
----
-91
-79

query I rowsort
SELECT - ( + ( - 29 ) ) + + 88 AS col1
----
117

query II rowsort
SELECT DISTINCT - 70 AS col2, 94 AS col0
----
-70
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-474
SELECT ALL + CAST( NULL AS SIGNED ) + COUNT( * ) * 15 * + - 59 - + 94 * + SUM( - - 81 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-474
SELECT ALL + CAST ( NULL AS INTEGER ) + COUNT ( * ) * 15 * + - 59 - + 94 * + SUM ( - - 81 ) AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-475
SELECT DISTINCT + 65 + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-475
SELECT DISTINCT + 65 + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ALL + COALESCE ( + ( - 60 ), - 87, + + 36 * - 51 + + - 81 ) - + 63 + ( + 17 )
----
-106

query I rowsort
SELECT DISTINCT 8 - + 13 col0
----
-5

query I rowsort
SELECT 18 * + 12 AS col1
----
216

query I rowsort
SELECT 28 * 16
----
448

query I rowsort
SELECT ALL - 76 * + - 70 AS col2
----
5320

query I rowsort
SELECT 2 - 98
----
-96

query I rowsort
SELECT 11 - + - 74
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-483
SELECT ALL - SUM( ALL - - 70 ) * - - 34 AS col1
----
-2380

skipif mysql # not compatible
query I rowsort label-483
SELECT ALL - SUM ( ALL - - 70 ) * - - 34 AS col1
----
-2380

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-484
SELECT 18 * - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-484
SELECT 18 * - - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 80 * - + 31 * 81
----
-200880

onlyif mysql # aggregate syntax: 
query I rowsort label-486
SELECT 39 - + MIN( - 37 ) col1
----
76

skipif mysql # not compatible
query I rowsort label-486
SELECT 39 - + MIN ( - 37 ) col1
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-487
SELECT DISTINCT + + 87 * - 64 + CAST( + MIN( - 98 ) AS SIGNED ) AS col2
----
-5666

skipif mysql # not compatible
query I rowsort label-487
SELECT DISTINCT + + 87 * - 64 + CAST ( + MIN ( - 98 ) AS INTEGER ) AS col2
----
-5666

query I rowsort
SELECT ALL + 52 + + + 1 + + 9
----
62

query I rowsort
SELECT + 14 * + 30
----
420

onlyif mysql # aggregate syntax: 
query I rowsort label-490
SELECT ALL - + CASE + - 19 WHEN - + 44 * - 60 THEN + CASE + - COUNT( * ) WHEN - 76 * + - 42 + + + 90 * + 4 * + - 23 THEN NULL WHEN - + 34 * + 28 THEN + 71 - - CASE - - 9 WHEN + COUNT( * ) - + 0 - COUNT( * ) * + - 74 THEN - 64 WHEN - - 96 - - + 64 THEN NULL ELSE NULL END * - 88 END / 90 + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-490
SELECT ALL - + CASE + - 19 WHEN - + 44 * - 60 THEN + CASE + - COUNT ( * ) WHEN - 76 * + - 42 + + + 90 * + 4 * + - 23 THEN NULL WHEN - + 34 * + 28 THEN + 71 - - CASE - - 9 WHEN + COUNT ( * ) - + 0 - COUNT ( * ) * + - 74 THEN - 64 WHEN - - 96 - - + 64 THEN NULL ELSE NULL END * - 88 END / 90 + COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 62 + + - COALESCE ( ( ( 3 ) ), - 20, + + 54 )
----
59

query I rowsort
SELECT ALL 67 + - - 35
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-493
SELECT + + MIN( DISTINCT + + 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-493
SELECT + + MIN ( DISTINCT + + 0 ) AS col0
----
0

query I rowsort
SELECT ALL + - 45 + 87 - - 67 AS col2
----
109

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-496
SELECT + CAST( CASE - 23 WHEN + 78 * - 96 * 93 + 75 THEN NULL WHEN COUNT( * ) THEN NULL ELSE + 94 + - + 44 END AS SIGNED )
----
50

skipif mysql # not compatible
query I rowsort label-496
SELECT + CAST ( CASE - 23 WHEN + 78 * - 96 * 93 + 75 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE + 94 + - + 44 END AS INTEGER )
----
50

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

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

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

skipif mysql # not compatible
query I rowsort label-498
SELECT COUNT ( * ) / - + 37 + + + 56 col1
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-499
SELECT ALL + COUNT( * ) + - 68, + 94 / CAST( NULL AS SIGNED ) AS col2
----
-67
NULL

skipif mysql # not compatible
query II rowsort label-499
SELECT ALL + COUNT ( * ) + - 68, + 94 / CAST ( NULL AS INTEGER ) AS col2
----
-67
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-501
SELECT DISTINCT - NULLIF ( 27, + 71 + ( - 74 ) * + + MAX( + 2 ) ) DIV + COALESCE ( + + 31, - + 17 )
----
0

skipif mysql # not compatible
query I rowsort label-501
SELECT DISTINCT - NULLIF ( 27, + 71 + ( - 74 ) * + + MAX ( + 2 ) ) / + COALESCE ( + + 31, - + 17 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-502
SELECT + COUNT( + + 71 ) AS col0, - ( 7 )
----
1
-7

skipif mysql # not compatible
query II rowsort label-502
SELECT + COUNT ( + + 71 ) AS col0, - ( 7 )
----
1
-7

query I rowsort
SELECT 98 + - - 72
----
170

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-507
SELECT ALL 67 * - + COALESCE ( + 90, + + 80 DIV - MAX( DISTINCT 20 ) * + 56 )
----
-6030

skipif mysql # not compatible
query I rowsort label-507
SELECT ALL 67 * - + COALESCE ( + 90, + + 80 / - MAX ( DISTINCT 20 ) * + 56 )
----
-6030

query I rowsort
SELECT 12 + - 66
----
-54

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-509
SELECT DISTINCT COUNT( * ) * - - ( AVG ( + 95 ) ) / - + CAST( NULL AS DECIMAL ) / 40
----
NULL

skipif mysql # not compatible
query I rowsort label-509
SELECT DISTINCT COUNT ( * ) * - - ( AVG ( + 95 ) ) / - + CAST ( NULL AS REAL ) / 40
----
NULL

query II rowsort
SELECT - 43 * + + 83 * 64 + + ( - 56 ) * - 65 AS col1, + 37 AS col1
----
-224776
37

onlyif mysql # aggregate syntax: 
query I rowsort label-511
SELECT 28 * CASE + 52 WHEN MAX( 89 ) * - 12 THEN + 32 END
----
NULL

skipif mysql # not compatible
query I rowsort label-511
SELECT 28 * CASE + 52 WHEN MAX ( 89 ) * - 12 THEN + 32 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-512
SELECT COUNT( * ) + + + 12 - + 36 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-512
SELECT COUNT ( * ) + + + 12 - + 36 AS col2
----
-23

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-513
SELECT CAST( NULL AS DECIMAL ) + ( + + 50 )
----
NULL

skipif mysql # not compatible
query I rowsort label-513
SELECT CAST ( NULL AS REAL ) + ( + + 50 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-514
SELECT ALL + CAST( NULL AS SIGNED ) / 20 / 1 * 75
----
NULL

skipif mysql # not compatible
query I rowsort label-514
SELECT ALL + CAST ( NULL AS INTEGER ) / 20 / 1 * 75
----
NULL

query I rowsort
SELECT DISTINCT + 99 * + 22 AS col0
----
2178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-516
SELECT ALL COUNT( ALL - + CASE + + 30 WHEN + + 11 * - 30 THEN NULL ELSE CAST( NULL AS SIGNED ) END ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-516
SELECT ALL COUNT ( ALL - + CASE + + 30 WHEN + + 11 * - 30 THEN NULL ELSE CAST ( NULL AS INTEGER ) END ) AS col1
----
0

query I rowsort
SELECT ALL - 90 * 23
----
-2070

query I rowsort
SELECT 37 + 90
----
127

query I rowsort
SELECT ALL 54 * ( - 27 ) AS col2
----
-1458

onlyif mysql # aggregate syntax: 
query II rowsort label-520
SELECT 43 * - COUNT( - + 33 ) AS col2, - 38 AS col2
----
-43
-38

skipif mysql # not compatible
query II rowsort label-520
SELECT 43 * - COUNT ( - + 33 ) AS col2, - 38 AS col2
----
-43
-38

query I rowsort
SELECT 46 + 94
----
140

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-523
SELECT - MIN( DISTINCT + - 58 )
----
58

skipif mysql # not compatible
query I rowsort label-523
SELECT - MIN ( DISTINCT + - 58 )
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-524
SELECT ALL - - 97 + - 62 + 81 * - 45 * 74 col0, ( - - 45 ) * SUM( - + 0 ) col2
----
-269695
0

skipif mysql # not compatible
query II rowsort label-524
SELECT ALL - - 97 + - 62 + 81 * - 45 * 74 col0, ( - - 45 ) * SUM ( - + 0 ) col2
----
-269695
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-525
SELECT CAST( - + 85 AS SIGNED )
----
-85

skipif mysql # not compatible
query I rowsort label-525
SELECT CAST ( - + 85 AS INTEGER )
----
-85

query I rowsort
SELECT ALL - 12 * 7
----
-84

query II rowsort
SELECT ALL + 20 AS col1, - 99 AS col1
----
20
-99

query I rowsort
SELECT ALL - 20 + - 24 + + 70
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-529
SELECT DISTINCT COUNT( DISTINCT - ( 10 ) ) AS col2, - COALESCE ( + 7, - ( - - 56 ) * + + 56 )
----
1
-7

skipif mysql # not compatible
query II rowsort label-529
SELECT DISTINCT COUNT ( DISTINCT - ( 10 ) ) AS col2, - COALESCE ( + 7, - ( - - 56 ) * + + 56 )
----
1
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-530
SELECT ALL + 81 * 25 + - COUNT( * ) DIV SUM( + 42 ) + + 8
----
2033

skipif mysql # not compatible
query I rowsort label-530
SELECT ALL + 81 * 25 + - COUNT ( * ) / SUM ( + 42 ) + + 8
----
2033

onlyif mysql # aggregate syntax: 
query I rowsort label-531
SELECT DISTINCT - 67 * + CASE + + CASE WHEN 69 BETWEEN 12 AND 4 / + 13 - + AVG ( 27 ) + 45 THEN - 16 END WHEN 27 * 73 * + 80 + + NULLIF ( + 7, + 65 ) + - 54 + NULLIF ( + COALESCE ( + + 55, - 89 * 53 / ( - + 53 ) ), 88 ) * 34 - - 27 + 51 * - 50 THEN + 47 * - 50 ELSE MIN( - 86 ) END + - COUNT( * ) * 78 AS col2
----
5684

skipif mysql # not compatible
query I rowsort label-531
SELECT DISTINCT - 67 * + CASE + + CASE WHEN 69 BETWEEN 12 AND 4 / + 13 - + AVG ( 27 ) + 45 THEN - 16 END WHEN 27 * 73 * + 80 + + NULLIF ( + 7, + 65 ) + - 54 + NULLIF ( + COALESCE ( + + 55, - 89 * 53 / ( - + 53 ) ), 88 ) * 34 - - 27 + 51 * - 50 THEN + 47 * - 50 ELSE MIN ( - 86 ) END + - COUNT ( * ) * 78 AS col2
----
5684

onlyif mysql # aggregate syntax: 
query I rowsort label-532
SELECT ALL + + COUNT( * ) * - 15 * - 14
----
210

skipif mysql # not compatible
query I rowsort label-532
SELECT ALL + + COUNT ( * ) * - 15 * - 14
----
210

query I rowsort
SELECT + 9 * - - 82 + - 71 + + 94 AS col2
----
761

onlyif mysql # DIV for integer division: 
query I rowsort label-534
SELECT + 21 DIV - - 72 + 43 - - + 86 AS col2
----
129

skipif mysql # not compatible
query I rowsort label-534
SELECT + 21 / - - 72 + 43 - - + 86 AS col2
----
129

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

onlyif mysql # aggregate syntax: 
query I rowsort label-536
SELECT DISTINCT + COALESCE ( + 69, - 23 + ( - 97 ) * + - 2 * - CASE 24 WHEN - - COUNT( * ) THEN - 80 + - 67 WHEN - 3 THEN NULL ELSE NULL END + 21 )
----
69

skipif mysql # not compatible
query I rowsort label-536
SELECT DISTINCT + COALESCE ( + 69, - 23 + ( - 97 ) * + - 2 * - CASE 24 WHEN - - COUNT ( * ) THEN - 80 + - 67 WHEN - 3 THEN NULL ELSE NULL END + 21 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-537
SELECT DISTINCT 75 * - 85 - - ( 89 ) * + COUNT( * ) AS col1
----
-6286

skipif mysql # not compatible
query I rowsort label-537
SELECT DISTINCT 75 * - 85 - - ( 89 ) * + COUNT ( * ) AS col1
----
-6286

query I rowsort
SELECT - 44 * - 67 * 62 * + 2
----
365552

query II rowsort
SELECT ALL + ( + + 52 ) AS col1, 59 AS col0
----
52
59

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

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

query I rowsort
SELECT - 64 * + - 32 * + 44 * 1 + - 18 * + 12 * 3 AS col2
----
89464

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

skipif mysql # not compatible
query I rowsort label-542
SELECT - ( 23 ) * - 1 * + + 0 * + + COUNT ( * ) * 68 AS col0
----
0

query I rowsort
SELECT - 8 * + - 11 AS col2
----
88

query I rowsort
SELECT + 14 * + + 41 AS col0
----
574

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-545
SELECT ALL 20 DIV ( + - 34 ) * 70 + - MAX( ( - 10 ) ) + 21 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-545
SELECT ALL 20 / ( + - 34 ) * 70 + - MAX ( ( - 10 ) ) + 21 AS col1
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-546
SELECT + 32 DIV - 19
----
-1

skipif mysql # not compatible
query I rowsort label-546
SELECT + 32 / - 19
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-547
SELECT MAX( - + 16 ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-547
SELECT MAX ( - + 16 ) AS col1
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-548
SELECT ALL 36 col0, + 81 * CASE 42 WHEN - 35 THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN - + 25 * + 46 / + 38 END / - - CASE + COUNT( - 57 ) WHEN + + 27 + + ( + CAST( NULL AS SIGNED ) ) THEN NULL WHEN - 20 THEN + 20 - + 57 ELSE NULL END AS col1
----
36
NULL

skipif mysql # not compatible
query II rowsort label-548
SELECT ALL 36 col0, + 81 * CASE 42 WHEN - 35 THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN - + 25 * + 46 / + 38 END / - - CASE + COUNT ( - 57 ) WHEN + + 27 + + ( + CAST ( NULL AS INTEGER ) ) THEN NULL WHEN - 20 THEN + 20 - + 57 ELSE NULL END AS col1
----
36
NULL

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

skipif mysql # not compatible
query I rowsort label-549
SELECT MAX ( - + 71 )
----
-71

query I rowsort
SELECT + 54 * - + 21 * + 30
----
-34020

onlyif mysql # aggregate syntax: 
query III rowsort label-551
SELECT COUNT( + 62 ) AS col2, 44 * + 10 AS col0, - 78 AS col0
----
1
440
-78

skipif mysql # not compatible
query III rowsort label-551
SELECT COUNT ( + 62 ) AS col2, 44 * + 10 AS col0, - 78 AS col0
----
1
440
-78

query I rowsort
SELECT ALL 42 + + - 18 AS col1
----
24

query I rowsort
SELECT - NULLIF ( - ( + - 25 ), - ( 69 ) )
----
-25

query I rowsort
SELECT + 65 + - 88 col2
----
-23

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

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

query II rowsort
SELECT DISTINCT 53 col1, 93 AS col2
----
53
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-557
SELECT ALL COALESCE ( + + 82, ( - + 55 ) ) + - ( - 88 ) + - - 60 * COALESCE ( + 48, + + 27 + + ( + 14 ) * - 0 + 52 * - 99 ) * + ( - - 46 ) * - 75 + + + 2 - NULLIF ( - + CASE 82 WHEN + COUNT( * ) THEN NULL WHEN + 30 - - + 20 + + + 85 * + COUNT( * ) * - + 65 * + - 1 THEN SUM( - 51 ) + + 95 WHEN + MIN( DISTINCT + 67 ) * - 69 THEN NULL ELSE + NULLIF ( + COUNT( * ), + COUNT( * ) * 98 + + 30 ) END, 31 ) * 8 + 23 DIV - 45
----
-9935820

skipif mysql # not compatible
query I rowsort label-557
SELECT ALL COALESCE ( + + 82, ( - + 55 ) ) + - ( - 88 ) + - - 60 * COALESCE ( + 48, + + 27 + + ( + 14 ) * - 0 + 52 * - 99 ) * + ( - - 46 ) * - 75 + + + 2 - NULLIF ( - + CASE 82 WHEN + COUNT ( * ) THEN NULL WHEN + 30 - - + 20 + + + 85 * + COUNT ( * ) * - + 65 * + - 1 THEN SUM ( - 51 ) + + 95 WHEN + MIN ( DISTINCT + 67 ) * - 69 THEN NULL ELSE + NULLIF ( + COUNT ( * ), + COUNT ( * ) * 98 + + 30 ) END, 31 ) * 8 + 23 / - 45
----
-9935820

query I rowsort
SELECT + 12 - 63 AS col1
----
-51

onlyif mysql # DIV for integer division: 
query II rowsort label-559
SELECT 31 AS col0, ( 85 ) + 74 DIV + 52 - 51 + 21
----
31
56

skipif mysql # not compatible
query II rowsort label-559
SELECT 31 AS col0, ( 85 ) + 74 / + 52 - 51 + 21
----
31
56

query II rowsort
SELECT DISTINCT + 14 AS col1, 33 + + 50
----
14
83

query I rowsort
SELECT ALL + - 57 + + 64 AS col1
----
7

query II rowsort
SELECT ALL 69 AS col2, - 87
----
69
-87

query I rowsort
SELECT - ( + NULLIF ( 45, + + 63 ) ) AS col2
----
-45

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-565
SELECT + - COALESCE ( 92, - - 74 - COUNT( * ) DIV - ( + 6 ) * + ( COUNT( * ) ) * - - 55 + - + 11 - + 10 + + - 5 * + 33 ) * - - 75
----
-6900

skipif mysql # not compatible
query I rowsort label-565
SELECT + - COALESCE ( 92, - - 74 - COUNT ( * ) / - ( + 6 ) * + ( COUNT ( * ) ) * - - 55 + - + 11 - + 10 + + - 5 * + 33 ) * - - 75
----
-6900

query I rowsort
SELECT ALL - - 77 * + + 43
----
3311

query I rowsort
SELECT DISTINCT + 6 * 51 AS col2
----
306

query I rowsort
SELECT ALL - 73 * + + 93 AS col0
----
-6789

query I rowsort
SELECT DISTINCT + + 18 col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-570
SELECT COUNT( + - 48 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-570
SELECT COUNT ( + - 48 ) AS col2
----
1

query I rowsort
SELECT - 21 * + 89 AS col2
----
-1869

onlyif mysql # DIV for integer division: 
query I rowsort label-572
SELECT 25 DIV - - 23 + 84 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-572
SELECT 25 / - - 23 + 84 AS col0
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-573
SELECT COUNT( * ) * - 7 - CAST( + + ( - 26 ) AS SIGNED ), - 33 AS col2
----
19
-33

skipif mysql # not compatible
query II rowsort label-573
SELECT COUNT ( * ) * - 7 - CAST ( + + ( - 26 ) AS INTEGER ), - 33 AS col2
----
19
-33

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-575
SELECT - ( CAST( - 98 AS SIGNED ) ) + + 32 AS col1
----
130

skipif mysql # not compatible
query I rowsort label-575
SELECT - ( CAST ( - 98 AS INTEGER ) ) + + 32 AS col1
----
130

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

skipif mysql # not compatible
query I rowsort label-576
SELECT + MAX ( 92 )
----
92

query I rowsort
SELECT - 91 * - 99
----
9009

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-578
SELECT ALL - 17 * + - 76 * 76, CAST( NULL AS DECIMAL ) AS col1
----
98192
NULL

skipif mysql # not compatible
query II rowsort label-578
SELECT ALL - 17 * + - 76 * 76, CAST ( NULL AS REAL ) AS col1
----
98192
NULL

query II rowsort
SELECT ALL + ( 82 ) AS col0, - 99 AS col0
----
82
-99

query I rowsort
SELECT - 34 * + 83 + - 83 AS col2
----
-2905

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-581
SELECT ALL CAST( NULL AS SIGNED ) * + 73 * 44 * - 70 * + - 21 + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-581
SELECT ALL CAST ( NULL AS INTEGER ) * + 73 * 44 * - 70 * + - 21 + 31
----
NULL

query I rowsort
SELECT - 55 + - - 85
----
30

query I rowsort
SELECT ALL + 83 * - 46 + 0 + - - 85 * - 13
----
-4923

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-584
SELECT ALL + ( + + CAST( - 49 AS SIGNED ) ) * + 12 * + 42 * - - COUNT( * ) * 16 + + 90 + - + 31 col1
----
-395077

skipif mysql # not compatible
query I rowsort label-584
SELECT ALL + ( + + CAST ( - 49 AS INTEGER ) ) * + 12 * + 42 * - - COUNT ( * ) * 16 + + 90 + - + 31 col1
----
-395077

query I rowsort
SELECT 54 * - 38 - - 55 AS col2
----
-1997

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-586
SELECT ALL 71 * + CAST( + + 18 AS SIGNED ) + - + 47 + COALESCE ( + CASE + 14 WHEN - - COALESCE ( - CASE - + 90 WHEN - + COUNT( * ) THEN + 44 WHEN + 52 THEN - 33 ELSE - ( - COUNT( * ) ) * CAST( - - CAST( - - 40 AS SIGNED ) AS SIGNED ) - - CAST( NULL AS SIGNED ) DIV 48 DIV + - 57 END, + 9 ) + + 55 DIV + + 40 THEN 47 END, - 40, NULLIF ( - 13, + 4 * + 42 ), + - 88 + - 68 * + COUNT( * ), - COUNT( * ) DIV 49 ) * 73
----
-1689

skipif mysql # not compatible
query I rowsort label-586
SELECT ALL 71 * + CAST ( + + 18 AS INTEGER ) + - + 47 + COALESCE ( + CASE + 14 WHEN - - COALESCE ( - CASE - + 90 WHEN - + COUNT ( * ) THEN + 44 WHEN + 52 THEN - 33 ELSE - ( - COUNT ( * ) ) * CAST ( - - CAST ( - - 40 AS INTEGER ) AS INTEGER ) - - CAST ( NULL AS INTEGER ) / 48 / + - 57 END, + 9 ) + + 55 / + + 40 THEN 47 END, - 40, NULLIF ( - 13, + 4 * + 42 ), + - 88 + - 68 * + COUNT ( * ), - COUNT ( * ) / 49 ) * 73
----
-1689

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-587
SELECT - COUNT( * ) + - SUM( DISTINCT - - 43 ) DIV + - 20 + + 51
----
52

skipif mysql # not compatible
query I rowsort label-587
SELECT - COUNT ( * ) + - SUM ( DISTINCT - - 43 ) / + - 20 + + 51
----
52

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

skipif mysql # not compatible
query I rowsort label-588
SELECT ALL + CAST ( - + 85 AS INTEGER ) col0
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-589
SELECT COALESCE ( - + ( + CAST( NULL AS SIGNED ) ), + + 43 + + 67 + + CASE - COUNT( * ) WHEN + - 58 THEN ( MAX( DISTINCT - + COALESCE ( COALESCE ( - - 37, - 95 ), - 86 ) ) ) END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-589
SELECT COALESCE ( - + ( + CAST ( NULL AS INTEGER ) ), + + 43 + + 67 + + CASE - COUNT ( * ) WHEN + - 58 THEN ( MAX ( DISTINCT - + COALESCE ( COALESCE ( - - 37, - 95 ), - 86 ) ) ) END ) AS col2
----
NULL

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

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

query I rowsort
SELECT ALL - 67 * - 52 + - - 53 + + 28
----
3565

onlyif mysql # aggregate syntax: 
query I rowsort label-592
SELECT - 12 + + CASE 29 WHEN - 85 THEN - + COUNT( DISTINCT + 38 ) + - 15 * 65 * 72 + + - 42 + + 52 * + ( + 90 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-592
SELECT - 12 + + CASE 29 WHEN - 85 THEN - + COUNT ( DISTINCT + 38 ) + - 15 * 65 * 72 + + - 42 + + 52 * + ( + 90 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-593
SELECT - 89 + - COUNT( * ) AS col2, SUM( 3 )
----
-90
3

skipif mysql # not compatible
query II rowsort label-593
SELECT - 89 + - COUNT ( * ) AS col2, SUM ( 3 )
----
-90
3

onlyif mysql # aggregate syntax: 
query II rowsort label-594
SELECT ALL 0 * + 29 AS col1, ( + COALESCE ( - 86, 88 ) ) + - + 58 + - - COUNT( DISTINCT 39 ) + - - NULLIF ( - - COUNT( ALL + - NULLIF ( + 39, 27 * + + 83 + 61 + - ( - ( 73 ) ) / + 78 ) ), - 11 + - 94 ) AS col2
----
0
-142

skipif mysql # not compatible
query II rowsort label-594
SELECT ALL 0 * + 29 AS col1, ( + COALESCE ( - 86, 88 ) ) + - + 58 + - - COUNT ( DISTINCT 39 ) + - - NULLIF ( - - COUNT ( ALL + - NULLIF ( + 39, 27 * + + 83 + 61 + - ( - ( 73 ) ) / + 78 ) ), - 11 + - 94 ) AS col2
----
0
-142

query I rowsort
SELECT ALL + 15 + + 80 AS col1
----
95

query I rowsort
SELECT - + NULLIF ( 61, - + 81 ) AS col1
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-597
SELECT + 51 * - 34 AS col1, ( - MAX( - 91 ) ) AS col0
----
-1734
91

skipif mysql # not compatible
query II rowsort label-597
SELECT + 51 * - 34 AS col1, ( - MAX ( - 91 ) ) AS col0
----
-1734
91

query I rowsort
SELECT 93 + + + 87
----
180

onlyif mysql # aggregate syntax: 
query II rowsort label-599
SELECT ALL 18 - + 30 * - - 6 * - 13 * COUNT( * ) AS col0, 79 col1
----
2358
79

skipif mysql # not compatible
query II rowsort label-599
SELECT ALL 18 - + 30 * - - 6 * - 13 * COUNT ( * ) AS col0, 79 col1
----
2358
79

onlyif mysql # aggregate syntax: 
query I rowsort label-600
SELECT 73 * + - 23 + - COUNT( * )
----
-1680

skipif mysql # not compatible
query I rowsort label-600
SELECT 73 * + - 23 + - COUNT ( * )
----
-1680

onlyif mysql # aggregate syntax: 
query I rowsort label-601
SELECT - 57 * + + 27 - MAX( ALL - - 35 ) AS col0
----
-1574

skipif mysql # not compatible
query I rowsort label-601
SELECT - 57 * + + 27 - MAX ( ALL - - 35 ) AS col0
----
-1574

onlyif mysql # aggregate syntax: 
query I rowsort label-602
SELECT DISTINCT + COUNT( * ) - - COALESCE ( - 75, 41, - + 75 ) + + 37 * 92 * + - 80
----
-272394

skipif mysql # not compatible
query I rowsort label-602
SELECT DISTINCT + COUNT ( * ) - - COALESCE ( - 75, 41, - + 75 ) + + 37 * 92 * + - 80
----
-272394

query II rowsort
SELECT + ( + - 45 ) * - + 84, 46 AS col2
----
3780
46

onlyif mysql # aggregate syntax: 
query I rowsort label-604
SELECT ALL - + ( COUNT( * ) ) * COUNT( * ) + + CASE - ( + 39 ) WHEN 99 THEN + COUNT( * ) ELSE - COALESCE ( + 14, 38, CASE 80 WHEN + - 35 THEN NULL ELSE - 74 * 2 * + 9 END + 59 ) END AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-604
SELECT ALL - + ( COUNT ( * ) ) * COUNT ( * ) + + CASE - ( + 39 ) WHEN 99 THEN + COUNT ( * ) ELSE - COALESCE ( + 14, 38, CASE 80 WHEN + - 35 THEN NULL ELSE - 74 * 2 * + 9 END + 59 ) END AS col0
----
-15

query I rowsort
SELECT - 32 + + + 21 * + 74
----
1522

onlyif mysql # DIV for integer division: 
query II rowsort label-606
SELECT + 54 DIV - + 84 + 30 - - 5 + 81, 96 AS col0
----
116
96

skipif mysql # not compatible
query II rowsort label-606
SELECT + 54 / - + 84 + 30 - - 5 + 81, 96 AS col0
----
116
96

onlyif mysql # aggregate syntax: 
query I rowsort label-607
SELECT - 59 + - MAX( + - 1 ) col2
----
-58

skipif mysql # not compatible
query I rowsort label-607
SELECT - 59 + - MAX ( + - 1 ) col2
----
-58

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-609
SELECT 86 * ( - 8 ) AS col1, - COUNT( * ) col1
----
-688
-1

skipif mysql # not compatible
query II rowsort label-609
SELECT 86 * ( - 8 ) AS col1, - COUNT ( * ) col1
----
-688
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-610
SELECT 22 + 79 + - + ( + 79 ) col0, - 98 + 57 DIV 2 AS col1
----
22
-70

skipif mysql # not compatible
query II rowsort label-610
SELECT 22 + 79 + - + ( + 79 ) col0, - 98 + 57 / 2 AS col1
----
22
-70

query I rowsort
SELECT ALL 21 * - - 52 AS col2
----
1092

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-612
SELECT 28 + + - ( 62 ) - - + 27 * - CASE - 18 WHEN - - 17 * - - 67 + + 76 + + ( 21 ) + 89 * CASE + 36 WHEN - 69 * COUNT( * ) * + 97 + - 69 * + 68 THEN + - 12 ELSE - + 75 END THEN NULL WHEN + + 37 * + CAST( NULL AS SIGNED ) THEN NULL ELSE 15 END * 89 - - 12 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-612
SELECT 28 + + - ( 62 ) - - + 27 * - CASE - 18 WHEN - - 17 * - - 67 + + 76 + + ( 21 ) + 89 * CASE + 36 WHEN - 69 * COUNT ( * ) * + 97 + - 69 * + 68 THEN + - 12 ELSE - + 75 END THEN NULL WHEN + + 37 * + CAST ( NULL AS INTEGER ) THEN NULL ELSE 15 END * 89 - - 12 + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-613
SELECT DISTINCT - 48 * + COUNT( * ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-613
SELECT DISTINCT - 48 * + COUNT ( * ) AS col1
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-614
SELECT DISTINCT 50 + - ( + 81 ) DIV - 26 - + COUNT( * ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-614
SELECT DISTINCT 50 + - ( + 81 ) / - 26 - + COUNT ( * ) AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-615
SELECT DISTINCT + 76 + 7 + COUNT( * ) + - + 61 * + - 10 * - 73 - - 23
----
-44423

skipif mysql # not compatible
query I rowsort label-615
SELECT DISTINCT + 76 + 7 + COUNT ( * ) + - + 61 * + - 10 * - 73 - - 23
----
-44423

onlyif mysql # aggregate syntax: 
query I rowsort label-616
SELECT DISTINCT - 12 + + + CASE + 84 WHEN + + COUNT( * ) + 72 * 90 THEN 8 + - + 58 WHEN CASE WHEN - MIN( DISTINCT + 1 ) <= + 36 - + 92 THEN NULL ELSE - 24 END THEN NULL WHEN + + 10 THEN - - MIN( 24 ) * - COUNT( * ) END + + 13 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-616
SELECT DISTINCT - 12 + + + CASE + 84 WHEN + + COUNT ( * ) + 72 * 90 THEN 8 + - + 58 WHEN CASE WHEN - MIN ( DISTINCT + 1 ) <= + 36 - + 92 THEN NULL ELSE - 24 END THEN NULL WHEN + + 10 THEN - - MIN ( 24 ) * - COUNT ( * ) END + + 13 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-617
SELECT ALL + ( - SUM( - ( + 90 ) ) ) + + + 60
----
150

skipif mysql # not compatible
query I rowsort label-617
SELECT ALL + ( - SUM ( - ( + 90 ) ) ) + + + 60
----
150

query I rowsort
SELECT 28 + + 28
----
56

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

skipif mysql # not compatible
query I rowsort label-619
SELECT ALL - SUM ( ALL - 4 )
----
4

query I rowsort
SELECT 58 * + 13 + - 16 - + 21
----
717

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-621
SELECT ALL + 59 + + 98 + - + CAST( NULL AS SIGNED ) + ( - CASE - 94 WHEN + 24 THEN + COUNT( - 26 ) ELSE - - 60 END ) * - 78 AS col0, + 37 + - CASE 93 WHEN + ( 16 ) * + 58 * - 36 + + COUNT( * ) + + - 56 * 48 * + 2 * + + SUM( ALL + + 68 ) * - + 17 * + NULLIF ( - - 4, + - 61 + 16 + + 22 + - COUNT( * ) / - COALESCE ( - + 73, + SUM( DISTINCT - 85 ) * 17 + - 22 * - 68, + CAST( 82 AS SIGNED ) / 39 ) + - 27 * 43 ) THEN + CAST( NULL AS SIGNED ) * 24 WHEN + NULLIF ( - 26, NULLIF ( 83, - MIN( DISTINCT 54 ) + - 76 ) + - 22 ) THEN NULL ELSE NULL END + + 8 * - 22 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-621
SELECT ALL + 59 + + 98 + - + CAST ( NULL AS INTEGER ) + ( - CASE - 94 WHEN + 24 THEN + COUNT ( - 26 ) ELSE - - 60 END ) * - 78 AS col0, + 37 + - CASE 93 WHEN + ( 16 ) * + 58 * - 36 + + COUNT ( * ) + + - 56 * 48 * + 2 * + + SUM ( ALL + + 68 ) * - + 17 * + NULLIF ( - - 4, + - 61 + 16 + + 22 + - COUNT ( * ) / - COALESCE ( - + 73, + SUM ( DISTINCT - 85 ) * 17 + - 22 * - 68, + CAST ( 82 AS INTEGER ) / 39 ) + - 27 * 43 ) THEN + CAST ( NULL AS INTEGER ) * 24 WHEN + NULLIF ( - 26, NULLIF ( 83, - MIN ( DISTINCT 54 ) + - 76 ) + - 22 ) THEN NULL ELSE NULL END + + 8 * - 22 AS col0
----
NULL
NULL

query II rowsort
SELECT 95 AS col0, 54 * - 63 + - + 42 - 42 - 53
----
95
-3539

query II rowsort
SELECT + 91 AS col1, 32 * + 43 + + ( + 96 )
----
91
1472

query I rowsort
SELECT 56 * 41 AS col2
----
2296

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-625
SELECT ALL - 95 + 82 + - + 13 * + + 26, COUNT( * ) + + + 15 DIV + + 10 AS col1
----
-351
2

skipif mysql # not compatible
query II rowsort label-625
SELECT ALL - 95 + 82 + - + 13 * + + 26, COUNT ( * ) + + + 15 / + + 10 AS col1
----
-351
2

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

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

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

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

query I rowsort
SELECT ALL + 68 * - 65 * + 53 AS col0
----
-234260

query I rowsort
SELECT DISTINCT - 14 + 54 col0
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-630
SELECT DISTINCT 6 AS col1, - 15 * - + COUNT( * ) * + COUNT( * ) AS col1
----
6
15

skipif mysql # not compatible
query II rowsort label-630
SELECT DISTINCT 6 AS col1, - 15 * - + COUNT ( * ) * + COUNT ( * ) AS col1
----
6
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-631
SELECT - 8 AS col2, COUNT( * ) * - + 81 * + 24 * + MIN( DISTINCT ( + CAST( + 14 AS SIGNED ) ) )
----
-8
-27216

skipif mysql # not compatible
query II rowsort label-631
SELECT - 8 AS col2, COUNT ( * ) * - + 81 * + 24 * + MIN ( DISTINCT ( + CAST ( + 14 AS INTEGER ) ) )
----
-8
-27216

query I rowsort
SELECT ALL - 44 - 55
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-633
SELECT ( - + 66 ) + + SUM( ALL - 89 ) * + - 70 + 20 - - - 30 + + + 84 * + 43 * - 25 - - - 90 * + 73
----
-90716

skipif mysql # not compatible
query I rowsort label-633
SELECT ( - + 66 ) + + SUM ( ALL - 89 ) * + - 70 + 20 - - - 30 + + + 84 * + 43 * - 25 - - - 90 * + 73
----
-90716

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-634
SELECT - COALESCE ( ( - - 8 ), + COUNT( ALL 29 ), 41 ) DIV - SUM( ALL + 56 ) AS col1, + 53
----
0
53

skipif mysql # not compatible
query II rowsort label-634
SELECT - COALESCE ( ( - - 8 ), + COUNT ( ALL 29 ), 41 ) / - SUM ( ALL + 56 ) AS col1, + 53
----
0
53

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

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

query I rowsort
SELECT - 14 + + + NULLIF ( 36, + - 16 ) * + 43
----
1534

query II rowsort
SELECT DISTINCT + 36 AS col2, - 32
----
36
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-638
SELECT ALL - CASE - 70 WHEN 38 * + COUNT( * ) * + 91 THEN 26 END - + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-638
SELECT ALL - CASE - 70 WHEN 38 * + COUNT ( * ) * + 91 THEN 26 END - + 95
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-639
SELECT + 41 DIV - 43 * + + 52 * - + 94
----
0

skipif mysql # not compatible
query I rowsort label-639
SELECT + 41 / - 43 * + + 52 * - + 94
----
0

query I rowsort
SELECT + 80 * - 40
----
-3200

onlyif mysql # aggregate syntax: 
query I rowsort label-641
SELECT ALL + CASE - 1 WHEN - - 73 + MIN( ALL 7 ) THEN - + 99 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-641
SELECT ALL + CASE - 1 WHEN - - 73 + MIN ( ALL 7 ) THEN - + 99 ELSE NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT - 21 * - - SUM( DISTINCT 76 )
----
-1596

skipif mysql # not compatible
query I rowsort label-643
SELECT - 21 * - - SUM ( DISTINCT 76 )
----
-1596

query I rowsort
SELECT 98 * + + 31 * 96
----
291648

query I rowsort
SELECT NULLIF ( - 65, + - NULLIF ( - - 48, + 90 ) )
----
-65

query I rowsort
SELECT 57 - + - 38 + - 43 - + ( - + 62 )
----
114

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

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

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

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

query I rowsort
SELECT + 57 * - + 7 AS col1
----
-399

query I rowsort
SELECT ALL 97 + 3 * 42 AS col2
----
223

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-651
SELECT ALL 95 * - NULLIF ( + 74, - 91 ) + 89 + 41 * CASE - - 61 WHEN + - 82 THEN ( - COUNT( * ) ) DIV - + COUNT( * ) * - 20 WHEN 53 * 50 THEN NULL ELSE - + ( - 28 ) END AS col2, ( + 81 ) AS col2
----
-5793
81

skipif mysql # not compatible
query II rowsort label-651
SELECT ALL 95 * - NULLIF ( + 74, - 91 ) + 89 + 41 * CASE - - 61 WHEN + - 82 THEN ( - COUNT ( * ) ) / - + COUNT ( * ) * - 20 WHEN 53 * 50 THEN NULL ELSE - + ( - 28 ) END AS col2, ( + 81 ) AS col2
----
-5793
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-652
SELECT COALESCE ( COUNT( * ), 11 ) * + 80 DIV - - 34 AS col1, 49
----
2
49

skipif mysql # not compatible
query II rowsort label-652
SELECT COALESCE ( COUNT ( * ), 11 ) * + 80 / - - 34 AS col1, 49
----
2
49

query I rowsort
SELECT ALL + 56 * 90 + + 73 - - 76 * - 88 AS col2
----
-1575

onlyif mysql # aggregate syntax: 
query I rowsort label-654
SELECT MAX( - 62 ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-654
SELECT MAX ( - 62 ) AS col0
----
-62

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-655
SELECT SUM( + CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-655
SELECT SUM ( + CAST ( NULL AS REAL ) ) AS col2
----
NULL

query I rowsort
SELECT - 26 * + 95 + + 2
----
-2468

onlyif mysql # aggregate syntax: 
query II rowsort label-657
SELECT ( 95 ) * + - COUNT( * ) * - 43 AS col1, + 64 AS col1
----
4085
64

skipif mysql # not compatible
query II rowsort label-657
SELECT ( 95 ) * + - COUNT ( * ) * - 43 AS col1, + 64 AS col1
----
4085
64

onlyif mysql # aggregate syntax: 
query I rowsort label-658
SELECT + NULLIF ( + - 11, - COALESCE ( + 9, - 10, + ( - AVG ( - 70 ) ) * ( - 90 ) + - - COUNT( * ) ) )
----
-11

skipif mysql # not compatible
query I rowsort label-658
SELECT + NULLIF ( + - 11, - COALESCE ( + 9, - 10, + ( - AVG ( - 70 ) ) * ( - 90 ) + - - COUNT ( * ) ) )
----
-11

query I rowsort
SELECT ALL - 29 * + 6 + - - 75
----
-99

query I rowsort
SELECT 90 * - 67 * 46 + - 90 + + 74 * - - 55 * - + ( - - 97 )
----
-672260

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

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

query I rowsort
SELECT ALL 83 * 2 AS col1
----
166

onlyif mysql # aggregate syntax: 
query II rowsort label-663
SELECT COUNT( * ) + - - 24 * + 9 + - 30, - 75 col1
----
187
-75

skipif mysql # not compatible
query II rowsort label-663
SELECT COUNT ( * ) + - - 24 * + 9 + - 30, - 75 col1
----
187
-75

query I rowsort
SELECT ALL + 52 * - 76 - + 54
----
-4006

query II rowsort
SELECT ALL - COALESCE ( + 76, - 97, + 72 ) AS col1, - 73
----
-76
-73

query I rowsort
SELECT - 88 * - 84 * + 59 + - 45 AS col2
----
436083

query I rowsort
SELECT ALL + 27 - + + 33
----
-6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-669
SELECT + COUNT( * ) + + - 20 + + 50 * - - 31
----
1531

skipif mysql # not compatible
query I rowsort label-669
SELECT + COUNT ( * ) + + - 20 + + 50 * - - 31
----
1531

onlyif mysql # aggregate syntax: 
query I rowsort label-670
SELECT ALL + 64 - + COUNT( - CASE - 86 WHEN + + 73 THEN - + 19 END )
----
64

skipif mysql # not compatible
query I rowsort label-670
SELECT ALL + 64 - + COUNT ( - CASE - 86 WHEN + + 73 THEN - + 19 END )
----
64

query I rowsort
SELECT + 31 * + + 32 * 73 + + - 78 + + 53 + + 67 * - + 89 * - 73 + - ( + + 91 ) AS col1
----
507599

onlyif mysql # DIV for integer division: 
query I rowsort label-672
SELECT - 89 + + 1 DIV 35 + - ( + 27 )
----
-116

skipif mysql # not compatible
query I rowsort label-672
SELECT - 89 + + 1 / 35 + - ( + 27 )
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-673
SELECT + SUM( DISTINCT 79 )
----
79

skipif mysql # not compatible
query I rowsort label-673
SELECT + SUM ( DISTINCT 79 )
----
79

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-676
SELECT - - 1 * + - COUNT( ( - + 68 ) ) AS col0, + NULLIF ( + COUNT( * ), - + 26 ) AS col2
----
-1
1

skipif mysql # not compatible
query II rowsort label-676
SELECT - - 1 * + - COUNT ( ( - + 68 ) ) AS col0, + NULLIF ( + COUNT ( * ), - + 26 ) AS col2
----
-1
1

query I rowsort
SELECT + - 32 + - - 65 + - - 98 * + NULLIF ( - 62, + + 25 + + 78 + - 3 ) AS col1
----
-6043

query I rowsort
SELECT ALL + - 8 * + + ( - - 60 )
----
-480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-679
SELECT - 78 * + 3 * - CAST( NULL AS SIGNED ) + - 19 * + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-679
SELECT - 78 * + 3 * - CAST ( NULL AS INTEGER ) + - 19 * + 26
----
NULL

query I rowsort
SELECT - - 82 + + CASE - + 2 WHEN - 34 THEN + 69 WHEN 29 THEN + - 16 + + + 33 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-681
SELECT DISTINCT - MIN( 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-681
SELECT DISTINCT - MIN ( 77 )
----
-77

query I rowsort
SELECT - + 75 * + + 51
----
-3825

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

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

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

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

query I rowsort
SELECT ALL + 45 + - 76 AS col1
----
-31

query I rowsort
SELECT - 94 + - 79 * 78
----
-6256

query I rowsort
SELECT ALL + + 86 + + 57 * 68 AS col0
----
3962

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

skipif mysql # not compatible
query I rowsort label-688
SELECT - 79 + + + COUNT ( * ) AS col1
----
-78

query I rowsort
SELECT ALL 91 + 94 AS col2
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-690
SELECT - MAX( DISTINCT 22 ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-690
SELECT - MAX ( DISTINCT 22 ) AS col1
----
-22

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-692
SELECT + COUNT( * ) + + ( - 38 )
----
-37

skipif mysql # not compatible
query I rowsort label-692
SELECT + COUNT ( * ) + + ( - 38 )
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-693
SELECT ALL - CAST( COALESCE ( - 11, + - 24 ) AS SIGNED ) DIV COALESCE ( + SUM( DISTINCT - + 51 ), + MAX( ALL + + 67 ), + 64 ) DIV 28 * + CAST( - 34 AS SIGNED ) + + + 44
----
44

skipif mysql # not compatible
query I rowsort label-693
SELECT ALL - CAST ( COALESCE ( - 11, + - 24 ) AS INTEGER ) / COALESCE ( + SUM ( DISTINCT - + 51 ), + MAX ( ALL + + 67 ), + 64 ) / 28 * + CAST ( - 34 AS INTEGER ) + + + 44
----
44

query I rowsort
SELECT - 37 * + 22
----
-814

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-695
SELECT + 19 + - COALESCE ( - - 81, + 98, - 17 * + COUNT( * ), + 27 * COUNT( * ) DIV + 49 + COUNT( * ) ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-695
SELECT + 19 + - COALESCE ( - - 81, + 98, - 17 * + COUNT ( * ), + 27 * COUNT ( * ) / + 49 + COUNT ( * ) ) AS col0
----
-62

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-698
SELECT ALL CAST( NULL AS SIGNED ) * + + 43 * - - 2 - + - 92 - 90 * + 60 + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-698
SELECT ALL CAST ( NULL AS INTEGER ) * + + 43 * - - 2 - + - 92 - 90 * + 60 + 57
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-699
SELECT + ( + + 63 ) DIV + ( + + 51 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-699
SELECT + ( + + 63 ) / + ( + + 51 ) AS col1
----
1

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

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

query I rowsort
SELECT CASE - 83 WHEN - 77 THEN + 94 * + 67 END
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-703
SELECT + 6 * + ( ( - COUNT( - 83 ) ) ), - 68 AS col1, 8 * - - 35 AS col1
----
-6
-68
280

skipif mysql # not compatible
query III rowsort label-703
SELECT + 6 * + ( ( - COUNT ( - 83 ) ) ), - 68 AS col1, 8 * - - 35 AS col1
----
-6
-68
280

query I rowsort
SELECT DISTINCT 66 * + 1 AS col1
----
66

query II rowsort
SELECT + 4 AS col1, 18 col0
----
4
18

query I rowsort
SELECT - 10 * - 65
----
650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-707
SELECT ALL 79 * - SUM( DISTINCT + ( CAST( - + 56 AS SIGNED ) ) )
----
4424

skipif mysql # not compatible
query I rowsort label-707
SELECT ALL 79 * - SUM ( DISTINCT + ( CAST ( - + 56 AS INTEGER ) ) )
----
4424

onlyif mysql # aggregate syntax: 
query I rowsort label-708
SELECT ALL + COUNT( DISTINCT - - 4 )
----
1

skipif mysql # not compatible
query I rowsort label-708
SELECT ALL + COUNT ( DISTINCT - - 4 )
----
1

query II rowsort
SELECT + + 25 col2, 14
----
25
14

query I rowsort
SELECT ALL COALESCE ( + 60, + - 61 ) * + - 14 - 75
----
-915

query I rowsort
SELECT DISTINCT + + ( + 75 ) col0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-712
SELECT + 5 AS col2, + CAST( + 65 AS SIGNED )
----
5
65

skipif mysql # not compatible
query II rowsort label-712
SELECT + 5 AS col2, + CAST ( + 65 AS INTEGER )
----
5
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-713
SELECT ALL - 90 * CAST( NULL AS SIGNED ) * + 71 * ( 50 ), 40 AS col2
----
NULL
40

skipif mysql # not compatible
query II rowsort label-713
SELECT ALL - 90 * CAST ( NULL AS INTEGER ) * + 71 * ( 50 ), 40 AS col2
----
NULL
40

query I rowsort
SELECT + - 51 + - + 65 - - 68 * + + 42 AS col2
----
2740

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

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

query II rowsort
SELECT 69 AS col2, 76 AS col0
----
69
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-717
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ) + - + 98 AS col1, - 76
----
-99
-76

skipif mysql # not compatible
query II rowsort label-717
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) + - + 98 AS col1, - 76
----
-99
-76

query I rowsort
SELECT ALL - 49 + + - 10
----
-59

query I rowsort
SELECT + 83 + - 32
----
51

query I rowsort
SELECT ALL 53 + - - 60 AS col0
----
113

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

skipif mysql # not compatible
query I rowsort label-721
SELECT DISTINCT + - 51 + + - 50 * - COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT ALL - + 88 * - 31 * - + 32 - 44 * - 18
----
-86504

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-724
SELECT 20 AS col2, 52 * + COUNT( * ) + - - 23 AS col1
----
20
75

skipif mysql # not compatible
query II rowsort label-724
SELECT 20 AS col2, 52 * + COUNT ( * ) + - - 23 AS col1
----
20
75

query II rowsort
SELECT 25 AS col1, 90 * - - ( - - 24 ) AS col1
----
25
2160

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-727
SELECT - COUNT( * ), + SUM( + + 75 ) * - 93 * - - 77 col2
----
-1
-537075

skipif mysql # not compatible
query II rowsort label-727
SELECT - COUNT ( * ), + SUM ( + + 75 ) * - 93 * - - 77 col2
----
-1
-537075

onlyif mysql # aggregate syntax: 
query I rowsort label-728
SELECT - 37 - - NULLIF ( 18, + COUNT( DISTINCT 90 ) - - SUM( ALL + 11 ) ) + - MIN( 52 ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-728
SELECT - 37 - - NULLIF ( 18, + COUNT ( DISTINCT 90 ) - - SUM ( ALL + 11 ) ) + - MIN ( 52 ) AS col2
----
-71

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

onlyif mysql # aggregate syntax: 
query I rowsort label-730
SELECT - 14 * - 7 * + - COUNT( * ) * - 16
----
1568

skipif mysql # not compatible
query I rowsort label-730
SELECT - 14 * - 7 * + - COUNT ( * ) * - 16
----
1568

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-731
SELECT - CASE + 10 WHEN 56 + + COUNT( * ) THEN - - 59 * - - 13 * 50 + + - COUNT( ALL - 47 ) WHEN - 95 THEN - COUNT( + + 68 ) ELSE - 45 * - CAST( NULL AS SIGNED ) - - 61 END
----
NULL

skipif mysql # not compatible
query I rowsort label-731
SELECT - CASE + 10 WHEN 56 + + COUNT ( * ) THEN - - 59 * - - 13 * 50 + + - COUNT ( ALL - 47 ) WHEN - 95 THEN - COUNT ( + + 68 ) ELSE - 45 * - CAST ( NULL AS INTEGER ) - - 61 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-732
SELECT ALL 61 DIV + 61 - - - 83 - - - 27 * - - 37 * NULLIF ( - 0, 1 + + COUNT( * ) ) * ( + 93 ) + + + 81 + - COUNT( - ( + 99 ) )
----
-2

skipif mysql # not compatible
query I rowsort label-732
SELECT ALL 61 / + 61 - - - 83 - - - 27 * - - 37 * NULLIF ( - 0, 1 + + COUNT ( * ) ) * ( + 93 ) + + + 81 + - COUNT ( - ( + 99 ) )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-733
SELECT COUNT( + 24 ) * + 45 * - - 18 + ( - 95 ) AS col2
----
715

skipif mysql # not compatible
query I rowsort label-733
SELECT COUNT ( + 24 ) * + 45 * - - 18 + ( - 95 ) AS col2
----
715

query I rowsort
SELECT 56 * 15 * + - 45
----
-37800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-735
SELECT ALL - COALESCE ( - + MIN( + + 56 ), - CAST( 34 AS SIGNED ) * NULLIF ( + ( + - 36 ), 47 ) * + - COUNT( ALL + 99 ) * + 62 * + 49 * - 76 ) DIV 34 + + 86 + + 86 AS col2
----
173

skipif mysql # not compatible
query I rowsort label-735
SELECT ALL - COALESCE ( - + MIN ( + + 56 ), - CAST ( 34 AS INTEGER ) * NULLIF ( + ( + - 36 ), 47 ) * + - COUNT ( ALL + 99 ) * + 62 * + 49 * - 76 ) / 34 + + 86 + + 86 AS col2
----
173

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

query I rowsort
SELECT - 79 * 16 + + - 79
----
-1343

query II rowsort
SELECT 49 AS col0, 49 col0
----
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-739
SELECT 42 * - MIN( + - 47 ) col2
----
1974

skipif mysql # not compatible
query I rowsort label-739
SELECT 42 * - MIN ( + - 47 ) col2
----
1974

query I rowsort
SELECT 46 + + 2 AS col1
----
48

query I rowsort
SELECT 55 * - 20 AS col1
----
-1100

query I rowsort
SELECT 91 * + 17 * + 52
----
80444

query I rowsort
SELECT 47 + 78
----
125

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-744
SELECT + 71 col2, + ( 25 ) DIV + 14 + - ( MIN( - 91 ) )
----
71
92

skipif mysql # not compatible
query II rowsort label-744
SELECT + 71 col2, + ( 25 ) / + 14 + - ( MIN ( - 91 ) )
----
71
92

query I rowsort
SELECT DISTINCT - 52 * 6
----
-312

onlyif mysql # aggregate syntax: 
query II rowsort label-746
SELECT DISTINCT - + COUNT( * ) col1, 84 AS col0
----
-1
84

skipif mysql # not compatible
query II rowsort label-746
SELECT DISTINCT - + COUNT ( * ) col1, 84 AS col0
----
-1
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-747
SELECT + + CAST( - + MAX( DISTINCT - 79 ) AS SIGNED )
----
79

skipif mysql # not compatible
query I rowsort label-747
SELECT + + CAST ( - + MAX ( DISTINCT - 79 ) AS INTEGER )
----
79

query I rowsort
SELECT DISTINCT - 2 + + 19 AS col0
----
17

query I rowsort
SELECT ALL 57 + - + 61
----
-4

query II rowsort
SELECT DISTINCT - 21 AS col1, - 44 * 21 + - + 63
----
-21
-987

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT + 1 + COUNT( * ) + - 24 AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-751
SELECT + 1 + COUNT ( * ) + - 24 AS col2
----
-22

query I rowsort
SELECT ALL 84 + + 99 AS col1
----
183

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-754
SELECT DISTINCT 98 + + + ( + - COUNT( ALL - CAST( NULL AS SIGNED ) ) ) + + - 88
----
10

skipif mysql # not compatible
query I rowsort label-754
SELECT DISTINCT 98 + + + ( + - COUNT ( ALL - CAST ( NULL AS INTEGER ) ) ) + + - 88
----
10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-755
SELECT DISTINCT + 86 + + 87 + + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-755
SELECT DISTINCT + 86 + + 87 + + - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-756
SELECT ALL - CASE + - CASE - - ( + 61 ) WHEN - COUNT( * ) + + 45 THEN - 8 ELSE NULL END WHEN - 21 * 3 - - 61 * CASE - + 44 WHEN 58 + 15 THEN NULL ELSE + 33 + 70 END THEN - 5 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-756
SELECT ALL - CASE + - CASE - - ( + 61 ) WHEN - COUNT ( * ) + + 45 THEN - 8 ELSE NULL END WHEN - 21 * 3 - - 61 * CASE - + 44 WHEN 58 + 15 THEN NULL ELSE + 33 + 70 END THEN - 5 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-757
SELECT ALL - 53 + - NULLIF ( 19, + - 34 * COUNT( * ) ) * 49 * + 19 AS col1
----
-17742

skipif mysql # not compatible
query I rowsort label-757
SELECT ALL - 53 + - NULLIF ( 19, + - 34 * COUNT ( * ) ) * 49 * + 19 AS col1
----
-17742

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

skipif mysql # not compatible
query I rowsort label-758
SELECT COUNT ( - 29 ) * + 15 AS col0
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-759
SELECT ALL + + 23 DIV COUNT( * ) + - + 50
----
-27

skipif mysql # not compatible
query I rowsort label-759
SELECT ALL + + 23 / COUNT ( * ) + - + 50
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-760
SELECT ( - MIN( - 52 ) ) + + + 7 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-760
SELECT ( - MIN ( - 52 ) ) + + + 7 AS col0
----
59

query I rowsort
SELECT 21 * - + 8 * 24
----
-4032

query I rowsort
SELECT 27 + + NULLIF ( + 0, + 32 ) AS col1
----
27

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

skipif mysql # not compatible
query I rowsort label-763
SELECT ( + + 97 ) + - 67 + COUNT ( * ) AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-764
SELECT DISTINCT + 95 - - COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-764
SELECT DISTINCT + 95 - - COUNT ( * )
----
96

query I rowsort
SELECT ALL - 41 * - 20 * + 6 * + - 53 * 5 * - 42 AS col1
----
54759600

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

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

query I rowsort
SELECT DISTINCT - 23 * 27
----
-621

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-770
SELECT 69 DIV 22 * 81 * 50 + - ( - 38 ) AS col1
----
12188

skipif mysql # not compatible
query I rowsort label-770
SELECT 69 / 22 * 81 * 50 + - ( - 38 ) AS col1
----
12188

onlyif mysql # aggregate syntax: 
query I rowsort label-771
SELECT ALL - NULLIF ( + COUNT( ALL - ( - 56 ) ), 42 * 98 )
----
-1

skipif mysql # not compatible
query I rowsort label-771
SELECT ALL - NULLIF ( + COUNT ( ALL - ( - 56 ) ), 42 * 98 )
----
-1

query I rowsort
SELECT 81 + 74 + + - 17 col1
----
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-773
SELECT CAST( NULL AS SIGNED ) * 70 / - 36 + - 46 + - ( + - COALESCE ( AVG ( DISTINCT + 97 ), 28 / CAST( NULL AS SIGNED ) * + 58 ) ) * - - 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-773
SELECT CAST ( NULL AS INTEGER ) * 70 / - 36 + - 46 + - ( + - COALESCE ( AVG ( DISTINCT + 97 ), 28 / CAST ( NULL AS INTEGER ) * + 58 ) ) * - - 37 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 88 + 41 + - 67
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-775
SELECT 8 DIV 73 + + + 45 * + 28
----
1260

skipif mysql # not compatible
query I rowsort label-775
SELECT 8 / 73 + + + 45 * + 28
----
1260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-776
SELECT ALL + 64 + + COUNT( * ) AS col0, + NULLIF ( - ( - 66 ), 24 - - - CAST( NULL AS SIGNED ) / + 83 ) col2
----
65
66

skipif mysql # not compatible
query II rowsort label-776
SELECT ALL + 64 + + COUNT ( * ) AS col0, + NULLIF ( - ( - 66 ), 24 - - - CAST ( NULL AS INTEGER ) / + 83 ) col2
----
65
66

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

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

query I rowsort
SELECT DISTINCT - + 22 * - 97
----
2134

query I rowsort
SELECT - 25 - + 46 + + 9 col1
----
-62

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-781
SELECT DISTINCT - 79 * 4 DIV 77 + 39 * + COALESCE ( 62, COUNT( * ), - 9 ) + + - CAST( - - NULLIF ( 80, MAX( DISTINCT + 67 ) - 43 ) AS SIGNED )
----
2334

skipif mysql # not compatible
query I rowsort label-781
SELECT DISTINCT - 79 * 4 / 77 + 39 * + COALESCE ( 62, COUNT ( * ), - 9 ) + + - CAST ( - - NULLIF ( 80, MAX ( DISTINCT + 67 ) - 43 ) AS INTEGER )
----
2334

query I rowsort
SELECT 57 * + 60 AS col2
----
3420

onlyif mysql # aggregate syntax: 
query I rowsort label-783
SELECT + - CASE - 58 WHEN 11 THEN NULL WHEN 19 + - MAX( ALL CASE - 23 WHEN 54 + - 77 THEN + 54 WHEN - 60 THEN NULL END ) * ( - COUNT( * ) ) THEN NULL ELSE - 6 END AS col2
----
6

skipif mysql # not compatible
query I rowsort label-783
SELECT + - CASE - 58 WHEN 11 THEN NULL WHEN 19 + - MAX ( ALL CASE - 23 WHEN 54 + - 77 THEN + 54 WHEN - 60 THEN NULL END ) * ( - COUNT ( * ) ) THEN NULL ELSE - 6 END AS col2
----
6

query I rowsort
SELECT ALL - - 80 * + 42 col2
----
3360

query I rowsort
SELECT ALL - 8 - 38 AS col1
----
-46

query I rowsort
SELECT 80 - 97 AS col0
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-787
SELECT - 97 + - 44 DIV ( + 40 )
----
-98

skipif mysql # not compatible
query I rowsort label-787
SELECT - 97 + - 44 / ( + 40 )
----
-98

query I rowsort
SELECT 21 * - 13 AS col0
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-789
SELECT CASE COUNT( * ) WHEN + COUNT( * ) THEN NULL WHEN + - ( - + 11 ) THEN 0 ELSE + + 33 + - 45 + COUNT( * ) * 84 END * + 18 / - 54 + 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-789
SELECT CASE COUNT ( * ) WHEN + COUNT ( * ) THEN NULL WHEN + - ( - + 11 ) THEN 0 ELSE + + 33 + - 45 + COUNT ( * ) * 84 END * + 18 / - 54 + 64 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-790
SELECT ALL COALESCE ( 49, + ( + + COALESCE ( + COUNT( + ( - 59 ) ), CASE + - COUNT( * ) WHEN - + 84 + + - COUNT( * ) * - - 12 * - 43 * - - 18 * - + COUNT( * ) - - - COUNT( * ) + NULLIF ( - 62, 39 + + 76 * - 95 * 60 ) - + ( - 38 ) * 63 + - COUNT( * ) + + - 82 THEN NULL WHEN 35 THEN + 19 ELSE NULL END ) ) )
----
49

skipif mysql # not compatible
query I rowsort label-790
SELECT ALL COALESCE ( 49, + ( + + COALESCE ( + COUNT ( + ( - 59 ) ), CASE + - COUNT ( * ) WHEN - + 84 + + - COUNT ( * ) * - - 12 * - 43 * - - 18 * - + COUNT ( * ) - - - COUNT ( * ) + NULLIF ( - 62, 39 + + 76 * - 95 * 60 ) - + ( - 38 ) * 63 + - COUNT ( * ) + + - 82 THEN NULL WHEN 35 THEN + 19 ELSE NULL END ) ) )
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-791
SELECT DISTINCT + 54 DIV - 16
----
-3

skipif mysql # not compatible
query I rowsort label-791
SELECT DISTINCT + 54 / - 16
----
-3

query I rowsort
SELECT + 49 + + - 63 * 30 * - 17
----
32179

onlyif mysql # aggregate syntax: 
query II rowsort label-793
SELECT ALL ( + - 36 ) * - 18, ( + 95 ) * COUNT( * ) AS col2
----
648
95

skipif mysql # not compatible
query II rowsort label-793
SELECT ALL ( + - 36 ) * - 18, ( + 95 ) * COUNT ( * ) AS col2
----
648
95

query I rowsort
SELECT ALL 31 * + - 92 AS col1
----
-2852

query I rowsort
SELECT + 43 * 84 AS col0
----
3612

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-797
SELECT DISTINCT SUM( ALL + 0 ) * COUNT( * ) * + - CAST( - ( AVG ( - 93 ) ) AS DECIMAL ) * - 11 + CAST( NULL AS SIGNED ) + - - MIN( ALL - 42 ) * + 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-797
SELECT DISTINCT SUM ( ALL + 0 ) * COUNT ( * ) * + - CAST ( - ( AVG ( - 93 ) ) AS REAL ) * - 11 + CAST ( NULL AS INTEGER ) + - - MIN ( ALL - 42 ) * + 84 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-798
SELECT - MAX( - 20 )
----
20

skipif mysql # not compatible
query I rowsort label-798
SELECT - MAX ( - 20 )
----
20

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

query I rowsort
SELECT + 7 * 64
----
448

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

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

query I rowsort
SELECT + 24 - 73 AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-803
SELECT + ( - - COUNT( * ) ) - + - 35 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-803
SELECT + ( - - COUNT ( * ) ) - + - 35 AS col2
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-804
SELECT - COALESCE ( + + 67, + 27 * - - COUNT( 8 ), - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-804
SELECT - COALESCE ( + + 67, + 27 * - - COUNT ( 8 ), - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col2
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-805
SELECT DISTINCT + 95 AS col0, 27 DIV + ( 73 ) * - - 80 * + COUNT( * ) * - 96 AS col0
----
95
0

skipif mysql # not compatible
query II rowsort label-805
SELECT DISTINCT + 95 AS col0, 27 / + ( 73 ) * - - 80 * + COUNT ( * ) * - 96 AS col0
----
95
0

onlyif mysql # aggregate syntax: 
query I rowsort label-806
SELECT - COUNT( * ) - - 37 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-806
SELECT - COUNT ( * ) - - 37 AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-807
SELECT ALL - COUNT( + 72 ) * + + 91 * + 88 * - 60 * + 57 + + 59 AS col0
----
27387419

skipif mysql # not compatible
query I rowsort label-807
SELECT ALL - COUNT ( + 72 ) * + + 91 * + 88 * - 60 * + 57 + + 59 AS col0
----
27387419

query I rowsort
SELECT - + ( + + 6 ) * 12 * 92 AS col1
----
-6624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-809
SELECT + - 72 + CASE + - CAST( NULL AS SIGNED ) WHEN - + 47 THEN - ( - - 95 ) * - 22 * + 39 * - AVG ( 77 ) + - CAST( + COUNT( * ) AS SIGNED ) ELSE NULL END * + - CASE + 84 WHEN + 58 THEN 84 END * - 10 / CAST( + + 76 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-809
SELECT + - 72 + CASE + - CAST ( NULL AS INTEGER ) WHEN - + 47 THEN - ( - - 95 ) * - 22 * + 39 * - AVG ( 77 ) + - CAST ( + COUNT ( * ) AS INTEGER ) ELSE NULL END * + - CASE + 84 WHEN + 58 THEN 84 END * - 10 / CAST ( + + 76 AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-810
SELECT ALL + 86 DIV + + 7
----
12

skipif mysql # not compatible
query I rowsort label-810
SELECT ALL + 86 / + + 7
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-811
SELECT COUNT( * ) * + 27 * + + 90 * + - 10 DIV + COUNT( * ) - ( 74 ) + CAST( + - 13 AS SIGNED ) + MAX( ALL + + 38 )
----
-24349

skipif mysql # not compatible
query I rowsort label-811
SELECT COUNT ( * ) * + 27 * + + 90 * + - 10 / + COUNT ( * ) - ( 74 ) + CAST ( + - 13 AS INTEGER ) + MAX ( ALL + + 38 )
----
-24349

onlyif mysql # aggregate syntax: 
query I rowsort label-812
SELECT ALL - 25 * + 69 - + - CASE + 80 WHEN - 49 THEN NULL WHEN COUNT( * ) THEN - 38 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-812
SELECT ALL - 25 * + 69 - + - CASE + 80 WHEN - 49 THEN NULL WHEN COUNT ( * ) THEN - 38 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-813
SELECT DISTINCT - 89 * - COUNT( * ) - + 10 AS col0, - 81 * + 51 AS col1
----
79
-4131

skipif mysql # not compatible
query II rowsort label-813
SELECT DISTINCT - 89 * - COUNT ( * ) - + 10 AS col0, - 81 * + 51 AS col1
----
79
-4131

query I rowsort
SELECT - 72 + 89 + - 24 AS col0
----
-7

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

skipif mysql # not compatible
query I rowsort label-815
SELECT ALL + COUNT ( * ) / - - COUNT ( * )
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-817
SELECT - ( + COUNT( * ) ) + - + NULLIF ( + + 43, MIN( + 57 ) )
----
-44

skipif mysql # not compatible
query I rowsort label-817
SELECT - ( + COUNT ( * ) ) + - + NULLIF ( + + 43, MIN ( + 57 ) )
----
-44

query I rowsort
SELECT - + 45 * + 83
----
-3735

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-819
SELECT DISTINCT + COALESCE ( ( 72 ), + 67 + + 91 * - 11 ) * - CAST( NULL AS SIGNED ) * COUNT( * ) * + 72 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-819
SELECT DISTINCT + COALESCE ( ( 72 ), + 67 + + 91 * - 11 ) * - CAST ( NULL AS INTEGER ) * COUNT ( * ) * + 72 AS col1
----
NULL

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

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

query I rowsort
SELECT ALL + 50 * 16 AS col2
----
800

onlyif mysql # aggregate syntax: 
query II rowsort label-822
SELECT - COUNT( * ) * - + 42 AS col0, 31
----
42
31

skipif mysql # not compatible
query II rowsort label-822
SELECT - COUNT ( * ) * - + 42 AS col0, 31
----
42
31

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-824
SELECT DISTINCT CAST( 77 AS SIGNED ) col0, ( - + ( - - 44 ) ) DIV + - COUNT( * ) + 78 + + 4 + 83 * - COUNT( * ) + + + 93
----
77
136

skipif mysql # not compatible
query II rowsort label-824
SELECT DISTINCT CAST ( 77 AS INTEGER ) col0, ( - + ( - - 44 ) ) / + - COUNT ( * ) + 78 + + 4 + 83 * - COUNT ( * ) + + + 93
----
77
136

query I rowsort
SELECT + ( - 26 ) * - - 61
----
-1586

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

onlyif mysql # aggregate syntax: 
query I rowsort label-827
SELECT - 1 + - 34 + - ( + 93 ) * + COUNT( ALL - - 12 )
----
-128

skipif mysql # not compatible
query I rowsort label-827
SELECT - 1 + - 34 + - ( + 93 ) * + COUNT ( ALL - - 12 )
----
-128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-828
SELECT - ( - 21 ) - + 9 + - 92 + - 81 DIV - 82 + + COUNT( * ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-828
SELECT - ( - 21 ) - + 9 + - 92 + - 81 / - 82 + + COUNT ( * ) AS col1
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-829
SELECT + ( - CAST( + COUNT( * ) AS SIGNED ) ) + - - 81 + ( 56 ) AS col0
----
136

skipif mysql # not compatible
query I rowsort label-829
SELECT + ( - CAST ( + COUNT ( * ) AS INTEGER ) ) + - - 81 + ( 56 ) AS col0
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-830
SELECT ALL + 6 + + 71 + - - COALESCE ( - 41, - ( - - 19 ), + COUNT( DISTINCT - 27 ) * 59 )
----
36

skipif mysql # not compatible
query I rowsort label-830
SELECT ALL + 6 + + 71 + - - COALESCE ( - 41, - ( - - 19 ), + COUNT ( DISTINCT - 27 ) * 59 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-831
SELECT DISTINCT COALESCE ( + - 77, + - 60 ) + COUNT( ALL + - ( + 50 ) ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-831
SELECT DISTINCT COALESCE ( + - 77, + - 60 ) + COUNT ( ALL + - ( + 50 ) ) AS col0
----
-76

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

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

query I rowsort
SELECT DISTINCT 77 * 14 AS col0
----
1078

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-834
SELECT - 41 DIV 64 * + - 14 DIV CASE - + 84 WHEN COALESCE ( + + 70, - 57 ) + - 68 THEN - AVG ( 22 ) WHEN + CAST( - - 55 AS DECIMAL ) THEN NULL ELSE - 7 * + 57 * + ( - 17 ) - - - 16 END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-834
SELECT - 41 / 64 * + - 14 / CASE - + 84 WHEN COALESCE ( + + 70, - 57 ) + - 68 THEN - AVG ( 22 ) WHEN + CAST ( - - 55 AS REAL ) THEN NULL ELSE - 7 * + 57 * + ( - 17 ) - - - 16 END AS col2
----
0

query II rowsort
SELECT + 47 + - 93, 44 col0
----
-46
44

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-836
SELECT ALL COUNT( * ) * - - 93 + - 72 * - CAST( NULL AS DECIMAL ) + - 20 + 25 * + MAX( DISTINCT + 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-836
SELECT ALL COUNT ( * ) * - - 93 + - 72 * - CAST ( NULL AS REAL ) + - 20 + 25 * + MAX ( DISTINCT + 78 )
----
NULL

query I rowsort
SELECT NULLIF ( - ( + 73 ), - 89 ) AS col0
----
-73

query I rowsort
SELECT ( 94 ) AS col2
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-839
SELECT ALL + - 88 / - 77 - + SUM( + 91 ) * CAST( - 82 AS SIGNED ) * 25 * + CASE - CAST( - 1 AS SIGNED ) WHEN + ( - - SUM( DISTINCT CAST( NULL AS SIGNED ) ) ) THEN 18 ELSE NULL END + - 65 + + 33 * + 9 + + - COALESCE ( CAST( - 88 AS SIGNED ), + 85 + + 99 + MAX( ALL - 56 ) * + 61 + - ( 82 ) * + + 11 ) * 55 * - 13 + - 45 - + + CASE + 8 WHEN - 6 - + - COALESCE ( ( - 23 ), + 91 ) THEN - + 84 * 61 + - COUNT( * ) * - 41 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-839
SELECT ALL + - 88 / - 77 - + SUM ( + 91 ) * CAST ( - 82 AS INTEGER ) * 25 * + CASE - CAST ( - 1 AS INTEGER ) WHEN + ( - - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) ) THEN 18 ELSE NULL END + - 65 + + 33 * + 9 + + - COALESCE ( CAST ( - 88 AS INTEGER ), + 85 + + 99 + MAX ( ALL - 56 ) * + 61 + - ( 82 ) * + + 11 ) * 55 * - 13 + - 45 - + + CASE + 8 WHEN - 6 - + - COALESCE ( ( - 23 ), + 91 ) THEN - + 84 * 61 + - COUNT ( * ) * - 41 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-840
SELECT + - COUNT( * ) * - 39 * - CASE - + 16 WHEN - CAST( + - 61 AS SIGNED ) + 9 THEN + 51 + + 55 + 22 * + COALESCE ( ( 5 ), + + COUNT( * ) * 11 + - 79 ) END + + ( - 61 )
----
NULL

skipif mysql # not compatible
query I rowsort label-840
SELECT + - COUNT ( * ) * - 39 * - CASE - + 16 WHEN - CAST ( + - 61 AS INTEGER ) + 9 THEN + 51 + + 55 + 22 * + COALESCE ( ( 5 ), + + COUNT ( * ) * 11 + - 79 ) END + + ( - 61 )
----
NULL

query I rowsort
SELECT ALL - 30 * + ( - 37 ) * + 36 * - 93 + - 39
----
-3716319

query II rowsort
SELECT + ( 16 ) AS col2, 39 + 38 AS col0
----
16
77

onlyif mysql # DIV for integer division: 
query I rowsort label-843
SELECT + - 75 * + ( - COALESCE ( - 59, 19 DIV - 57 - + 66 * 64 ) ) AS col1
----
-4425

skipif mysql # not compatible
query I rowsort label-843
SELECT + - 75 * + ( - COALESCE ( - 59, 19 / - 57 - + 66 * 64 ) ) AS col1
----
-4425

query I rowsort
SELECT ALL - 82 * + 3 col1
----
-246

onlyif mysql # DIV for integer division: 
query I rowsort label-845
SELECT ALL 49 DIV - 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-845
SELECT ALL 49 / - 97 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-846
SELECT - 51 * + 26 / - CAST( NULL AS SIGNED ) + - 44 * - 54 * - 69 - + - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-846
SELECT - 51 * + 26 / - CAST ( NULL AS INTEGER ) + - 44 * - 54 * - 69 - + - 57
----
NULL

query I rowsort
SELECT 65 - - 18
----
83

query I rowsort
SELECT ( - + 99 ) * - - 42 + 75 AS col2
----
-4083

onlyif mysql # aggregate syntax: 
query II rowsort label-849
SELECT 72 + NULLIF ( - 13, + 98 * 15 ) AS col2, COUNT( * ) AS col0
----
59
1

skipif mysql # not compatible
query II rowsort label-849
SELECT 72 + NULLIF ( - 13, + 98 * 15 ) AS col2, COUNT ( * ) AS col0
----
59
1

query I rowsort
SELECT DISTINCT + 37 + + 65
----
102

query I rowsort
SELECT 65 + + 34 col0
----
99

query I rowsort
SELECT DISTINCT + 92 + 39 AS col0
----
131

query I rowsort
SELECT ALL + 19 + 63 + - 73
----
9

query I rowsort
SELECT 61 + + + 95
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-855
SELECT NULLIF ( - 31, + 18 / CAST( - - NULLIF ( - 50, - COUNT( * ) / + 67 ) AS SIGNED ) ) * + 8 * - - CAST( - ( + 30 ) AS SIGNED ) AS col2
----
7440

skipif mysql # not compatible
query I rowsort label-855
SELECT NULLIF ( - 31, + 18 / CAST ( - - NULLIF ( - 50, - COUNT ( * ) / + 67 ) AS INTEGER ) ) * + 8 * - - CAST ( - ( + 30 ) AS INTEGER ) AS col2
----
7440

onlyif mysql # aggregate syntax: 
query I rowsort label-856
SELECT 6 / ( - CASE + COUNT( * ) WHEN 23 THEN 42 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-856
SELECT 6 / ( - CASE + COUNT ( * ) WHEN 23 THEN 42 ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-857
SELECT ALL - 75 + + 4 + - NULLIF ( - 41, - + CASE 1 WHEN - 82 THEN 90 * 22 - COUNT( + 43 ) + - 73 ELSE NULL END ) + ( ( + + CASE - 66 WHEN - 85 THEN NULL WHEN 10 + + 99 - + - MIN( DISTINCT - ( + 28 ) ) * + CAST( NULL AS SIGNED ) + 6 * - 70 + + NULLIF ( NULLIF ( + - 6, 46 ), 55 ) + 61 + - NULLIF ( 39, + + 94 ) / - 24 * + 46 THEN + - 61 - - + 91 + + 75 * - - 21 END ) ) + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-857
SELECT ALL - 75 + + 4 + - NULLIF ( - 41, - + CASE 1 WHEN - 82 THEN 90 * 22 - COUNT ( + 43 ) + - 73 ELSE NULL END ) + ( ( + + CASE - 66 WHEN - 85 THEN NULL WHEN 10 + + 99 - + - MIN ( DISTINCT - ( + 28 ) ) * + CAST ( NULL AS INTEGER ) + 6 * - 70 + + NULLIF ( NULLIF ( + - 6, 46 ), 55 ) + 61 + - NULLIF ( 39, + + 94 ) / - 24 * + 46 THEN + - 61 - - + 91 + + 75 * - - 21 END ) ) + 99
----
NULL

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

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

query I rowsort
SELECT - ( 62 ) - - - NULLIF ( + 23, + + 97 ) + - - ( + - 2 ) AS col2
----
-87

query I rowsort
SELECT 85 * - 0
----
0

query II rowsort
SELECT 16 - + ( + 62 ) AS col1, 88 * 75 AS col0
----
-46
6600

query I rowsort
SELECT DISTINCT - 92 * 20 + - + ( + 40 ) * - COALESCE ( - ( - 67 ), - 57 + ( + 55 ) )
----
840

query I rowsort
SELECT DISTINCT - + ( - 85 ) * + ( + 65 )
----
5525

query I rowsort
SELECT ALL + 1 * 53 AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-865
SELECT + ( 47 ) * + 56 + + 39 + - MAX( + + 7 ) AS col0
----
2664

skipif mysql # not compatible
query I rowsort label-865
SELECT + ( 47 ) * + 56 + + 39 + - MAX ( + + 7 ) AS col0
----
2664

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-866
SELECT + 14 DIV MAX( - 28 ) + - 8 + 44
----
36

skipif mysql # not compatible
query I rowsort label-866
SELECT + 14 / MAX ( - 28 ) + - 8 + 44
----
36

query I rowsort
SELECT - 6 * - + 64 - + - 54 - - 87 col2
----
525

onlyif mysql # aggregate syntax: 
query I rowsort label-868
SELECT ALL - MIN( 34 ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-868
SELECT ALL - MIN ( 34 ) AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-869
SELECT MAX( 62 )
----
62

skipif mysql # not compatible
query I rowsort label-869
SELECT MAX ( 62 )
----
62

query I rowsort
SELECT - - 51 * - - 63 + - 10 * - 60 + + + 39 AS col0
----
3852

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-872
SELECT + CAST( NULL AS SIGNED ) * + - CAST( 77 AS SIGNED ) AS col2, ( + 37 ) AS col0
----
NULL
37

skipif mysql # not compatible
query II rowsort label-872
SELECT + CAST ( NULL AS INTEGER ) * + - CAST ( 77 AS INTEGER ) AS col2, ( + 37 ) AS col0
----
NULL
37

onlyif mysql # aggregate syntax: 
query I rowsort label-873
SELECT DISTINCT - 95 * + MAX( + 5 ) AS col1
----
-475

skipif mysql # not compatible
query I rowsort label-873
SELECT DISTINCT - 95 * + MAX ( + 5 ) AS col1
----
-475

query I rowsort
SELECT ALL 8 + + + 63 AS col2
----
71

query I rowsort
SELECT 30 * 22 AS col0
----
660

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

skipif mysql # not compatible
query I rowsort label-876
SELECT 36 / 51
----
0

query I rowsort
SELECT 72 * + 21
----
1512

query I rowsort
SELECT DISTINCT 43 + 28
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-879
SELECT ALL 2 + - 92 + - COUNT( * ) * - + ( - 51 )
----
-141

skipif mysql # not compatible
query I rowsort label-879
SELECT ALL 2 + - 92 + - COUNT ( * ) * - + ( - 51 )
----
-141

onlyif mysql # DIV for integer division: 
query I rowsort label-880
SELECT ( + 41 ) * 98 + + 1 DIV - 68 - - 90
----
4108

skipif mysql # not compatible
query I rowsort label-880
SELECT ( + 41 ) * 98 + + 1 / - 68 - - 90
----
4108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-881
SELECT ALL 24, + COUNT( * ) + - - COUNT( * ) + - 70 * CAST( CAST( NULL AS SIGNED ) AS SIGNED ) col2
----
24
NULL

skipif mysql # not compatible
query II rowsort label-881
SELECT ALL 24, + COUNT ( * ) + - - COUNT ( * ) + - 70 * CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) col2
----
24
NULL

query I rowsort
SELECT 42 * - - 39 + - 73 AS col2
----
1565

query I rowsort
SELECT DISTINCT 7 + - - 0 AS col0
----
7

query II rowsort
SELECT 90 col2, - 10
----
90
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-885
SELECT ALL 42 + 60 + - - COUNT( * ) * - - 64
----
166

skipif mysql # not compatible
query I rowsort label-885
SELECT ALL 42 + 60 + - - COUNT ( * ) * - - 64
----
166

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-887
SELECT ( - CASE 44 WHEN - ( 59 ) THEN + COUNT( * ) * 48 END ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-887
SELECT ( - CASE 44 WHEN - ( 59 ) THEN + COUNT ( * ) * 48 END ) + COUNT ( * )
----
NULL

query I rowsort
SELECT 87 + - 6
----
81

query I rowsort
SELECT DISTINCT - - 13 * 67
----
871

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-890
SELECT + CAST( + - 7 AS SIGNED ) + 82 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-890
SELECT + CAST ( + - 7 AS INTEGER ) + 82 AS col1
----
75

query I rowsort
SELECT ALL - 54 - - 59
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-892
SELECT COUNT( * ) + - COUNT( * ) DIV 29 DIV + + 24 + + 61 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-892
SELECT COUNT ( * ) + - COUNT ( * ) / 29 / + + 24 + + 61 AS col1
----
62

query I rowsort
SELECT 8 + - 37 AS col0
----
-29

query I rowsort
SELECT + 16 * 11 AS col0
----
176

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

query II rowsort
SELECT ALL - - 8, 31 + + 13 + 45 + 32 * - 54 + - 84 * ( + 4 ) AS col1
----
8
-1975

query II rowsort
SELECT DISTINCT - 59, - 91 AS col1
----
-59
-91

query I rowsort
SELECT - 82 * + + 48 * - + 60 AS col0
----
236160

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

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

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

query II rowsort
SELECT ALL + + 74 AS col2, - 59 AS col1
----
74
-59

query I rowsort
SELECT - - 8 * + ( + + 1 )
----
8

query I rowsort
SELECT ALL - 97 * + 56
----
-5432

query II rowsort
SELECT DISTINCT + + ( 88 ) AS col0, 71 * + 96 AS col1
----
88
6816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-905
SELECT ALL - 25 * + + 71 + - + CAST( 25 AS SIGNED ) - CAST( NULL AS SIGNED ) * - 33 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-905
SELECT ALL - 25 * + + 71 + - + CAST ( 25 AS INTEGER ) - CAST ( NULL AS INTEGER ) * - 33 * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-906
SELECT - 14 - + 34 AS col0, - 98 * 98 * + COUNT( ( COALESCE ( - ( - 23 ), + 43 + - CAST( - 44 AS SIGNED ) / + 94 ) ) )
----
-48
-9604

skipif mysql # not compatible
query II rowsort label-906
SELECT - 14 - + 34 AS col0, - 98 * 98 * + COUNT ( ( COALESCE ( - ( - 23 ), + 43 + - CAST ( - 44 AS INTEGER ) / + 94 ) ) )
----
-48
-9604

query I rowsort
SELECT - 91 * - - CASE - 27 WHEN - + 56 + - - 83 THEN + 98 END / + 10
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-908
SELECT ALL NULLIF ( + - 57, + + ( 13 ) + - + 82 ) * - COUNT( - + 64 ) * - 93 + + + 57 + 89
----
-5155

skipif mysql # not compatible
query I rowsort label-908
SELECT ALL NULLIF ( + - 57, + + ( 13 ) + - + 82 ) * - COUNT ( - + 64 ) * - 93 + + + 57 + 89
----
-5155

onlyif mysql # aggregate syntax: 
query I rowsort label-909
SELECT SUM( DISTINCT - 28 )
----
-28

skipif mysql # not compatible
query I rowsort label-909
SELECT SUM ( DISTINCT - 28 )
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-910
SELECT + COUNT( * ) * - COUNT( * ) DIV ( - - 32 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-910
SELECT + COUNT ( * ) * - COUNT ( * ) / ( - - 32 ) col1
----
0

query I rowsort
SELECT + 7 - - + 93 + + 86
----
186

query II rowsort
SELECT ALL 89 - - - 93 + - 86 - 0 * - - 25 + + - ( + + 12 ) AS col0, + 31 AS col0
----
-102
31

onlyif mysql # aggregate syntax: 
query I rowsort label-913
SELECT + MAX( - - 59 ) * - 26 - + 16
----
-1550

skipif mysql # not compatible
query I rowsort label-913
SELECT + MAX ( - - 59 ) * - 26 - + 16
----
-1550

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

onlyif mysql # aggregate syntax: 
query I rowsort label-915
SELECT DISTINCT SUM( 51 ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-915
SELECT DISTINCT SUM ( 51 ) AS col0
----
51

query I rowsort
SELECT + - 14 * 78 + 60 + + 4 AS col0
----
-1028

onlyif mysql # aggregate syntax: 
query I rowsort label-917
SELECT ALL NULLIF ( - ( + ( + + ( + - NULLIF ( + + NULLIF ( 99, + MIN( ALL + 90 ) ), AVG ( ALL - - 95 ) ) ) ) ), + 33 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-917
SELECT ALL NULLIF ( - ( + ( + + ( + - NULLIF ( + + NULLIF ( 99, + MIN ( ALL + 90 ) ), AVG ( ALL - - 95 ) ) ) ) ), + 33 ) AS col1
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-918
SELECT - 0 DIV - + 56 + - + CAST( COUNT( * ) AS SIGNED ) + - 84 AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-918
SELECT - 0 / - + 56 + - + CAST ( COUNT ( * ) AS INTEGER ) + - 84 AS col0
----
-85

onlyif mysql # DIV for integer division: 
query II rowsort label-919
SELECT ALL - NULLIF ( + 56, + 26 DIV 4 * 4 ) DIV + + 88 + + 41, 1 * + + 6 AS col1
----
41
6

skipif mysql # not compatible
query II rowsort label-919
SELECT ALL - NULLIF ( + 56, + 26 / 4 * 4 ) / + + 88 + + 41, 1 * + + 6 AS col1
----
41
6

onlyif mysql # DIV for integer division: 
query II rowsort label-920
SELECT + 66 DIV - 98, 17 DIV - 68 AS col2
----
0
0

skipif mysql # not compatible
query II rowsort label-920
SELECT + 66 / - 98, 17 / - 68 AS col2
----
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-921
SELECT + + 87 - 34 AS col1, - COUNT( * ) * + - 6 * + ( 72 ) AS col2
----
53
432

skipif mysql # not compatible
query II rowsort label-921
SELECT + + 87 - 34 AS col1, - COUNT ( * ) * + - 6 * + ( 72 ) AS col2
----
53
432

onlyif mysql # aggregate syntax: 
query II rowsort label-922
SELECT ALL - - 43 + - 82 + - + 1 * + 82 + + + 47 + COUNT( * ) * - - 98, - 31 AS col1
----
24
-31

skipif mysql # not compatible
query II rowsort label-922
SELECT ALL - - 43 + - 82 + - + 1 * + 82 + + + 47 + COUNT ( * ) * - - 98, - 31 AS col1
----
24
-31

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

query I rowsort
SELECT - + 38 + 99 AS col1
----
61

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

query I rowsort
SELECT - 16 * + + 70 AS col0
----
-1120

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-927
SELECT ALL - + COUNT( * ) DIV - 20 + - 53 + + 6 - + ( COUNT( * ) ) + + + COUNT( * ) col0, ( + 58 ) AS col2
----
-47
58

skipif mysql # not compatible
query II rowsort label-927
SELECT ALL - + COUNT ( * ) / - 20 + - 53 + + 6 - + ( COUNT ( * ) ) + + + COUNT ( * ) col0, ( + 58 ) AS col2
----
-47
58

onlyif mysql # DIV for integer division: 
query I rowsort label-928
SELECT 46 DIV + 44 + 72 - 12
----
61

skipif mysql # not compatible
query I rowsort label-928
SELECT 46 / + 44 + 72 - 12
----
61

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-929
SELECT - 39 - + 14 * - CASE + COUNT( * ) WHEN + - CAST( - - COUNT( * ) AS DECIMAL ) THEN + + 9 * 89 + + 4 END
----
NULL

skipif mysql # not compatible
query I rowsort label-929
SELECT - 39 - + 14 * - CASE + COUNT ( * ) WHEN + - CAST ( - - COUNT ( * ) AS REAL ) THEN + + 9 * 89 + + 4 END
----
NULL

query I rowsort
SELECT ALL + + 8 AS col2
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-931
SELECT - 67 DIV 99 * - + 92 + - - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-931
SELECT - 67 / 99 * - + 92 + - - COUNT ( * ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-932
SELECT + 52 * + CAST( + 7 AS SIGNED ) * - - 83 * - 8 + + COUNT( * ) AS col1
----
-241695

skipif mysql # not compatible
query I rowsort label-932
SELECT + 52 * + CAST ( + 7 AS INTEGER ) * - - 83 * - 8 + + COUNT ( * ) AS col1
----
-241695

query I rowsort
SELECT ( + + CASE + - 56 WHEN - 1 THEN + 98 * 81 WHEN + 11 * + 40 THEN 9 END ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-934
SELECT DISTINCT + NULLIF ( - - CAST ( NULL AS INTEGER ), - - COUNT ( * ) * + 46 ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-935
SELECT - 85 + 84 DIV - - COUNT( * ), - ( 20 ) AS col1
----
-1
-20

skipif mysql # not compatible
query II rowsort label-935
SELECT - 85 + 84 / - - COUNT ( * ), - ( 20 ) AS col1
----
-1
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-936
SELECT 60 * - NULLIF ( + - CAST( NULL AS SIGNED ), + - COUNT( - 45 ) / - COUNT( * ) - - 6 ) * + 97 + - ( + 75 )
----
NULL

skipif mysql # not compatible
query I rowsort label-936
SELECT 60 * - NULLIF ( + - CAST ( NULL AS INTEGER ), + - COUNT ( - 45 ) / - COUNT ( * ) - - 6 ) * + 97 + - ( + 75 )
----
NULL

query I rowsort
SELECT - ( 7 ) + + + 29 * - 26 * + + 0 * + 26
----
-7

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

skipif mysql # not compatible
query I rowsort label-938
SELECT ALL + 60 * - ( COUNT ( * ) ) AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-939
SELECT - ( + - COUNT( * ) ) * + 88 + ( + + 10 ) - + 97 + - 76
----
-75

skipif mysql # not compatible
query I rowsort label-939
SELECT - ( + - COUNT ( * ) ) * + 88 + ( + + 10 ) - + 97 + - 76
----
-75

query I rowsort
SELECT ALL - 88 * + + 29 * - 33
----
84216

query I rowsort
SELECT + 83 + 39 + + 1 AS col2
----
123

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

query I rowsort
SELECT ALL - 89 * + 12 col1
----
-1068

query I rowsort
SELECT COALESCE ( NULLIF ( + 76, - 97 + + - ( + + 56 ) ), - 93 )
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-945
SELECT ALL CAST( - 71 AS SIGNED ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-945
SELECT ALL CAST ( - 71 AS INTEGER ) AS col1
----
-71

query II rowsort
SELECT ALL 21 AS col2, 4 * 43
----
21
172

onlyif mysql # aggregate syntax: 
query I rowsort label-947
SELECT - MIN( - 55 ) col0
----
55

skipif mysql # not compatible
query I rowsort label-947
SELECT - MIN ( - 55 ) col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-948
SELECT - - COUNT( * ) * + 10 * - ( 89 ) * - 46 + + CASE - 38 WHEN - 1 THEN - 89 END
----
NULL

skipif mysql # not compatible
query I rowsort label-948
SELECT - - COUNT ( * ) * + 10 * - ( 89 ) * - 46 + + CASE - 38 WHEN - 1 THEN - 89 END
----
NULL

query I rowsort
SELECT + - 2 + + + 64
----
62

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

query I rowsort
SELECT 71 + - + 69 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-952
SELECT MAX( DISTINCT 30 )
----
30

skipif mysql # not compatible
query I rowsort label-952
SELECT MAX ( DISTINCT 30 )
----
30

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-954
SELECT DISTINCT - COALESCE ( CAST( NULL AS SIGNED ), + + 25, + - 88 ) + + 53
----
28

skipif mysql # not compatible
query I rowsort label-954
SELECT DISTINCT - COALESCE ( CAST ( NULL AS INTEGER ), + + 25, + - 88 ) + + 53
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-955
SELECT ALL + + COUNT( * ) DIV 50 + - - 43
----
43

skipif mysql # not compatible
query I rowsort label-955
SELECT ALL + + COUNT ( * ) / 50 + - - 43
----
43

query I rowsort
SELECT DISTINCT - + 66 + + CASE 99 WHEN 55 - - 98 - + 50 - 23 THEN - + 54 END
----
NULL

query I rowsort
SELECT + 53 * 57 AS col0
----
3021

query I rowsort
SELECT ALL + 95 + - 80 * + 5
----
-305

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-959
SELECT ALL + NULLIF ( - 44, - + 62 + - NULLIF ( 9, - 40 + SUM( 46 ) ) ) DIV + 8
----
-5

skipif mysql # not compatible
query I rowsort label-959
SELECT ALL + NULLIF ( - 44, - + 62 + - NULLIF ( 9, - 40 + SUM ( 46 ) ) ) / + 8
----
-5

query I rowsort
SELECT + 36 + - 37 AS col1
----
-1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-962
SELECT DISTINCT 15 * 19 DIV - - 36 + + 79 * + - 31 AS col0
----
-2442

skipif mysql # not compatible
query I rowsort label-962
SELECT DISTINCT 15 * 19 / - - 36 + + 79 * + - 31 AS col0
----
-2442

query I rowsort
SELECT ALL + 45 + 5 AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-964
SELECT CASE 70 WHEN - COUNT( * ) THEN + 84 + - + 67 * - 86 END * + 1 + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-964
SELECT CASE 70 WHEN - COUNT ( * ) THEN + 84 + - + 67 * - 86 END * + 1 + 76
----
NULL

query I rowsort
SELECT 81 * - - ( + + 91 )
----
7371

query I rowsort
SELECT DISTINCT 78 - + ( - 59 ) col2
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-967
SELECT ( - 67 ) + - COUNT( * ) + - - ( 25 )
----
-43

skipif mysql # not compatible
query I rowsort label-967
SELECT ( - 67 ) + - COUNT ( * ) + - - ( 25 )
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-968
SELECT ALL - NULLIF ( + CAST( + COUNT( DISTINCT 31 ) AS SIGNED ), + 18 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-968
SELECT ALL - NULLIF ( + CAST ( + COUNT ( DISTINCT 31 ) AS INTEGER ), + 18 ) AS col1
----
-1

query I rowsort
SELECT ( + 50 ) * 75
----
3750

query I rowsort
SELECT - 9 * 31 + 58 AS col2
----
-221

query I rowsort
SELECT 96 * + 21 AS col2
----
2016

onlyif mysql # aggregate syntax: 
query I rowsort label-972
SELECT NULLIF ( + 93, - COUNT( * ) ) * - 69 + 38 - - 77 AS col2
----
-6302

skipif mysql # not compatible
query I rowsort label-972
SELECT NULLIF ( + 93, - COUNT ( * ) ) * - 69 + 38 - - 77 AS col2
----
-6302

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-974
SELECT COUNT( * ) DIV 59 * 92
----
0

skipif mysql # not compatible
query I rowsort label-974
SELECT COUNT ( * ) / 59 * 92
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-975
SELECT + 52 * MAX( - 91 ) + COUNT( ALL + CAST( NULL AS SIGNED ) ) + - 79 AS col1
----
-4811

skipif mysql # not compatible
query I rowsort label-975
SELECT + 52 * MAX ( - 91 ) + COUNT ( ALL + CAST ( NULL AS INTEGER ) ) + - 79 AS col1
----
-4811

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-976
SELECT + MIN( + ( 15 ) ) * + COALESCE ( 87, - - COUNT( * ), 30, - + 78 ) - CAST( 20 AS SIGNED ) AS col2
----
1285

skipif mysql # not compatible
query I rowsort label-976
SELECT + MIN ( + ( 15 ) ) * + COALESCE ( 87, - - COUNT ( * ), 30, - + 78 ) - CAST ( 20 AS INTEGER ) AS col2
----
1285

query I rowsort
SELECT ALL - - 64 * - + 88 AS col1
----
-5632

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-978
SELECT 6 / - + 91 / + 64 + - CASE - CAST( ( 30 ) AS SIGNED ) WHEN - 13 + - 67 - 64 THEN NULL WHEN COUNT( * ) * + 63 THEN NULL WHEN 46 THEN + 71 + 22 END - 3 + - + 59 / 18
----
NULL

skipif mysql # not compatible
query I rowsort label-978
SELECT 6 / - + 91 / + 64 + - CASE - CAST ( ( 30 ) AS INTEGER ) WHEN - 13 + - 67 - 64 THEN NULL WHEN COUNT ( * ) * + 63 THEN NULL WHEN 46 THEN + 71 + 22 END - 3 + - + 59 / 18
----
NULL

query I rowsort
SELECT + 96 - + + 35 * - 19 + + 99 AS col2
----
860

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-980
SELECT - 5 * + + 8 + - + ( + - 10 ) + CAST( + COUNT( * ) AS SIGNED )
----
-29

skipif mysql # not compatible
query I rowsort label-980
SELECT - 5 * + + 8 + - + ( + - 10 ) + CAST ( + COUNT ( * ) AS INTEGER )
----
-29

query I rowsort
SELECT - 62 + 85
----
23

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

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

query I rowsort
SELECT + 71 * + 79 AS col2
----
5609

query I rowsort
SELECT - COALESCE ( + 55, - + ( 81 ) * - 10 )
----
-55

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-987
SELECT 54 * COUNT ( * )
----
54

query I rowsort
SELECT 34 + 25 * 72 col1
----
1834

onlyif mysql # aggregate syntax: 
query I rowsort label-989
SELECT ALL + SUM( ALL 61 ) * + - 70 * - 68 + - + 42 AS col2
----
290318

skipif mysql # not compatible
query I rowsort label-989
SELECT ALL + SUM ( ALL 61 ) * + - 70 * - 68 + - + 42 AS col2
----
290318

query II rowsort
SELECT ALL 53, 8 * + 40 * - 13 AS col0
----
53
-4160

query I rowsort
SELECT ALL 43 * + - 1 AS col2
----
-43

query I rowsort
SELECT 81 * + 94 AS col1
----
7614

onlyif mysql # DIV for integer division: 
query I rowsort label-993
SELECT DISTINCT 67 DIV + 13
----
5

skipif mysql # not compatible
query I rowsort label-993
SELECT DISTINCT 67 / + 13
----
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-994
SELECT 0 - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-994
SELECT 0 - + CAST ( NULL AS REAL )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-995
SELECT 71 / - 75
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-996
SELECT DISTINCT 31 DIV ( - 32 )
----
0

skipif mysql # not compatible
query I rowsort label-996
SELECT DISTINCT 31 / ( - 32 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-997
SELECT 16 * + COUNT( 29 )
----
16

skipif mysql # not compatible
query I rowsort label-997
SELECT 16 * + COUNT ( 29 )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-998
SELECT ALL 66 * - + 2 * + - COUNT( * )
----
132

skipif mysql # not compatible
query I rowsort label-998
SELECT ALL 66 * - + 2 * + - COUNT ( * )
----
132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-999
SELECT ALL 77 DIV ( - COUNT( * ) ) * + - 30 + 85 AS col2
----
2395

skipif mysql # not compatible
query I rowsort label-999
SELECT ALL 77 / ( - COUNT ( * ) ) * + - 30 + 85 AS col2
----
2395

query I rowsort
SELECT - NULLIF ( - - 7, - + 22 * - + 37 + - - ( 33 ) ) * - 78 + - 89 * + 50 AS col0
----
-3904

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1002
SELECT CAST( NULL AS DECIMAL ) * + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-1002
SELECT CAST ( NULL AS REAL ) * + 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1003
SELECT DISTINCT MIN( DISTINCT 69 ) * + COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-1003
SELECT DISTINCT MIN ( DISTINCT 69 ) * + COUNT ( * )
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1004
SELECT DISTINCT CASE - COALESCE ( - 0, - 24 + MIN( DISTINCT + - 59 ) + + + 7 * - CAST( 39 AS SIGNED ) ) WHEN 62 THEN NULL ELSE + - 88 END * - 36
----
3168

skipif mysql # not compatible
query I rowsort label-1004
SELECT DISTINCT CASE - COALESCE ( - 0, - 24 + MIN ( DISTINCT + - 59 ) + + + 7 * - CAST ( 39 AS INTEGER ) ) WHEN 62 THEN NULL ELSE + - 88 END * - 36
----
3168

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

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

query I rowsort
SELECT ALL ( 30 ) * - 17 AS col2
----
-510

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

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

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

query II rowsort
SELECT + 6, 44 AS col1
----
6
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1010
SELECT ALL + NULLIF ( - - 94, - 88 + - - ( + - COUNT( * ) ) ) + + 73
----
167

skipif mysql # not compatible
query I rowsort label-1010
SELECT ALL + NULLIF ( - - 94, - 88 + - - ( + - COUNT ( * ) ) ) + + 73
----
167

query I rowsort
SELECT ALL + 94 + + 86 + 97
----
277

query I rowsort
SELECT ALL - NULLIF ( ( + - 7 ), + 20 * - - 1 ) * 72 * + 58 AS col1
----
29232

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

skipif mysql # not compatible
query I rowsort label-1013
SELECT ALL - 19 + + CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1015
SELECT DISTINCT - + 94 DIV + ( - + 51 )
----
1

skipif mysql # not compatible
query I rowsort label-1015
SELECT DISTINCT - + 94 / + ( - + 51 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1016
SELECT ALL + 39 + - + 90 + + CAST( 79 AS SIGNED )
----
28

skipif mysql # not compatible
query I rowsort label-1016
SELECT ALL + 39 + - + 90 + + CAST ( 79 AS INTEGER )
----
28

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1017
SELECT + - 81 - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1017
SELECT + - 81 - + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1018
SELECT - - CAST( + ( + 6 ) AS SIGNED ) * - 92 * + 26 col0
----
-14352

skipif mysql # not compatible
query I rowsort label-1018
SELECT - - CAST ( + ( + 6 ) AS INTEGER ) * - 92 * + 26 col0
----
-14352

query I rowsort
SELECT - 91 + + - 53 AS col0
----
-144

query I rowsort
SELECT - 5 + NULLIF ( - 19, - + ( + 86 ) + 2 ) + + 95 * + 86
----
8146

query I rowsort
SELECT - - 73 + 77 AS col1
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-1022
SELECT - COUNT( * ) * + COUNT( * ) * 13 * + 98 * + NULLIF ( + 32, - - 46 * - 73 * 45 ) AS col2
----
-40768

skipif mysql # not compatible
query I rowsort label-1022
SELECT - COUNT ( * ) * + COUNT ( * ) * 13 * + 98 * + NULLIF ( + 32, - - 46 * - 73 * 45 ) AS col2
----
-40768

query I rowsort
SELECT + 18 + + ( - - 23 ) AS col2
----
41

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

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

query I rowsort
SELECT + 32 + + 11 AS col1
----
43

query I rowsort
SELECT + 8 + - 64 AS col1
----
-56

query I rowsort
SELECT - 78 * 31
----
-2418

query I rowsort
SELECT + 84 + + 16
----
100

query I rowsort
SELECT ALL 90 * 9
----
810

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1032
SELECT ALL - 39 * ( + 4 ) * + - 27, MAX( DISTINCT 76 ) AS col1
----
4212
76

skipif mysql # not compatible
query II rowsort label-1032
SELECT ALL - 39 * ( + 4 ) * + - 27, MAX ( DISTINCT 76 ) AS col1
----
4212
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1033
SELECT ALL - 30 * - + COALESCE ( 50, + 27 + + 91, - 42 * - - 62 + - COALESCE ( - COUNT( * ), + - COALESCE ( + CASE + 27 WHEN - + 52 THEN - + 80 WHEN - 35 THEN - ( + - COUNT( * ) ) ELSE + 60 * - + 77 + + 86 + 48 * - 20 + - + 13 * COUNT( * ) DIV - 18 + + + 87 * - 88 * + 52 + 13 END, + - ( + COUNT( * ) ) ) ) )
----
1500

skipif mysql # not compatible
query I rowsort label-1033
SELECT ALL - 30 * - + COALESCE ( 50, + 27 + + 91, - 42 * - - 62 + - COALESCE ( - COUNT ( * ), + - COALESCE ( + CASE + 27 WHEN - + 52 THEN - + 80 WHEN - 35 THEN - ( + - COUNT ( * ) ) ELSE + 60 * - + 77 + + 86 + 48 * - 20 + - + 13 * COUNT ( * ) / - 18 + + + 87 * - 88 * + 52 + 13 END, + - ( + COUNT ( * ) ) ) ) )
----
1500

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT DISTINCT + 49 * - 6 + + 25 - - MAX( 45 )
----
-224

skipif mysql # not compatible
query I rowsort label-1034
SELECT DISTINCT + 49 * - 6 + + 25 - - MAX ( 45 )
----
-224

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1035
SELECT DISTINCT + 48 AS col2, - 8 * - - 49 * MAX( ALL - 52 ) DIV + - MAX( ALL + 62 ) col0
----
48
-328

skipif mysql # not compatible
query II rowsort label-1035
SELECT DISTINCT + 48 AS col2, - 8 * - - 49 * MAX ( ALL - 52 ) / + - MAX ( ALL + 62 ) col0
----
48
-328

onlyif mysql # DIV for integer division: 
query I rowsort label-1036
SELECT + 0 DIV - 18
----
0

skipif mysql # not compatible
query I rowsort label-1036
SELECT + 0 / - 18
----
0

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

skipif mysql # not compatible
query I rowsort label-1037
SELECT 66 / + 72 * - + 58 - - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1038
SELECT + NULLIF ( COUNT( * ), + 56 / SUM( DISTINCT - 82 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1038
SELECT + NULLIF ( COUNT ( * ), + 56 / SUM ( DISTINCT - 82 ) )
----
1

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

query I rowsort
SELECT CASE + 8 WHEN - 55 THEN 39 * - 26 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1041
SELECT - 63 * ( - 0 ) * - + 36 + 23 + + - COUNT( * ) DIV - 52 * - 74
----
23

skipif mysql # not compatible
query I rowsort label-1041
SELECT - 63 * ( - 0 ) * - + 36 + 23 + + - COUNT ( * ) / - 52 * - 74
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1042
SELECT ALL + COUNT( * ) * - 3 DIV - 99 + - 28 * + 38 col0
----
-1064

skipif mysql # not compatible
query I rowsort label-1042
SELECT ALL + COUNT ( * ) * - 3 / - 99 + - 28 * + 38 col0
----
-1064

query I rowsort
SELECT 45 * + 87 - + 3
----
3912

onlyif mysql # aggregate syntax: 
query I rowsort label-1044
SELECT + 26 * COALESCE ( - 58, 93 + - MIN( - + NULLIF ( 4, 58 ) ) )
----
-1508

skipif mysql # not compatible
query I rowsort label-1044
SELECT + 26 * COALESCE ( - 58, 93 + - MIN ( - + NULLIF ( 4, 58 ) ) )
----
-1508

query I rowsort
SELECT DISTINCT + - NULLIF ( - ( + CASE + 49 WHEN - - 90 THEN + - 76 END ), - - 86 ) * + + 33 + 5 + + ( 52 ) + - 28 col1
----
NULL

query I rowsort
SELECT ALL - 41 * 70 + 20 AS col0
----
-2850

onlyif mysql # aggregate syntax: 
query I rowsort label-1047
SELECT DISTINCT + COUNT( * ) * - - 37 + - 85
----
-48

skipif mysql # not compatible
query I rowsort label-1047
SELECT DISTINCT + COUNT ( * ) * - - 37 + - 85
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-1048
SELECT DISTINCT + + 18, - COUNT( * ) * + 21 AS col2
----
18
-21

skipif mysql # not compatible
query II rowsort label-1048
SELECT DISTINCT + + 18, - COUNT ( * ) * + 21 AS col2
----
18
-21

query I rowsort
SELECT ALL 23 * + + 64
----
1472

query I rowsort
SELECT - 21 * - + 59 + + 44 col0
----
1283

query I rowsort
SELECT DISTINCT - 41 * + 9 * - - 8
----
-2952

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1052
SELECT - + COALESCE ( - 60, - CAST( NULL AS SIGNED ) + - 84 + - 64 + + 41 * + COUNT( * ) DIV - - 30 * - 63 ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-1052
SELECT - + COALESCE ( - 60, - CAST ( NULL AS INTEGER ) + - 84 + - 64 + + 41 * + COUNT ( * ) / - - 30 * - 63 ) AS col2
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1053
SELECT ALL + 40 * CASE - - 94 WHEN 70 THEN - ( + ( SUM( + CAST( + 73 AS SIGNED ) ) ) ) END + 12 - + 80, 96 AS col0
----
NULL
96

skipif mysql # not compatible
query II rowsort label-1053
SELECT ALL + 40 * CASE - - 94 WHEN 70 THEN - ( + ( SUM ( + CAST ( + 73 AS INTEGER ) ) ) ) END + 12 - + 80, 96 AS col0
----
NULL
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1054
SELECT + COALESCE ( - 10, MAX( DISTINCT + 4 ) ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-1054
SELECT + COALESCE ( - 10, MAX ( DISTINCT + 4 ) ) AS col1
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1055
SELECT DISTINCT + 14 DIV - COUNT( * ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-1055
SELECT DISTINCT + 14 / - COUNT ( * ) AS col0
----
-14

query I rowsort
SELECT DISTINCT + NULLIF ( + 3, + 94 ) AS col0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1057
SELECT ALL - 97 * 28 AS col2, CAST( NULL AS DECIMAL ) AS col2
----
-2716
NULL

skipif mysql # not compatible
query II rowsort label-1057
SELECT ALL - 97 * 28 AS col2, CAST ( NULL AS REAL ) AS col2
----
-2716
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1058
SELECT + 22 + + 87 - COUNT( * ) * + 27
----
82

skipif mysql # not compatible
query I rowsort label-1058
SELECT + 22 + + 87 - COUNT ( * ) * + 27
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1059
SELECT ALL NULLIF ( - + CAST( NULL AS SIGNED ), + + 55 * + - 53 / - 99 + + 18 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1059
SELECT ALL NULLIF ( - + CAST ( NULL AS INTEGER ), + + 55 * + - 53 / - 99 + + 18 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1060
SELECT + 2 + - + CASE - 43 WHEN COUNT( * ) THEN + + 17 WHEN - 39 + 60 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1060
SELECT + 2 + - + CASE - 43 WHEN COUNT ( * ) THEN + + 17 WHEN - 39 + 60 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT - 84 * 43
----
-3612

onlyif mysql # aggregate syntax: 
query I rowsort label-1062
SELECT - 55 * + MIN( ALL 77 )
----
-4235

skipif mysql # not compatible
query I rowsort label-1062
SELECT - 55 * + MIN ( ALL 77 )
----
-4235

query I rowsort
SELECT ALL + 70 + - 13 + + 0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1064
SELECT - 48 + + 64 * COUNT( * ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-1064
SELECT - 48 + + 64 * COUNT ( * ) AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1065
SELECT - 25 + - COUNT( * ) + + 34 + + + 67
----
75

skipif mysql # not compatible
query I rowsort label-1065
SELECT - 25 + - COUNT ( * ) + + 34 + + + 67
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-1066
SELECT ALL - 61 DIV 31 + 15
----
14

skipif mysql # not compatible
query I rowsort label-1066
SELECT ALL - 61 / 31 + 15
----
14

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

skipif mysql # not compatible
query I rowsort label-1067
SELECT + 34 * + 32 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1068
SELECT - 18 - + MIN( ALL - 14 ) * + + 24
----
318

skipif mysql # not compatible
query I rowsort label-1068
SELECT - 18 - + MIN ( ALL - 14 ) * + + 24
----
318

onlyif mysql # aggregate syntax: 
query I rowsort label-1069
SELECT COUNT( * ) * - + 85 + - CASE - + 15 WHEN + + 76 THEN 14 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1069
SELECT COUNT ( * ) * - + 85 + - CASE - + 15 WHEN + + 76 THEN 14 END AS col1
----
NULL

query I rowsort
SELECT ALL + ( + 34 ) + 64 * - - 19 AS col1
----
1250

query I rowsort
SELECT DISTINCT + 54 + + 12
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1072
SELECT ALL CASE - 7 WHEN - + 2 * 93 THEN 47 END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1072
SELECT ALL CASE - 7 WHEN - + 2 * 93 THEN 47 END * + COUNT ( * )
----
NULL

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

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

query I rowsort
SELECT 0 * - 67 + - 30 + + + 76 * 35
----
2630

query I rowsort
SELECT - - 37 * + 18 - + ( - + 58 ) + 77
----
801

query II rowsort
SELECT DISTINCT + 12 - 80 AS col1, + 9
----
-68
9

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

query I rowsort
SELECT 84 * - + 5 + 90 * + + 29 + + CASE + 41 WHEN 79 THEN NULL WHEN - AVG ( DISTINCT 70 ) + - 16 THEN 83 WHEN 15 * 19 THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1079
SELECT + - CAST( - + 60 AS SIGNED )
----
60

skipif mysql # not compatible
query I rowsort label-1079
SELECT + - CAST ( - + 60 AS INTEGER )
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-1080
SELECT DISTINCT + + 10 DIV - ( 15 ) + - 93 AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-1080
SELECT DISTINCT + + 10 / - ( 15 ) + - 93 AS col1
----
-93

onlyif mysql # DIV for integer division: 
query II rowsort label-1081
SELECT + 31 DIV + ( 13 ) AS col0, + 31 AS col0
----
2
31

skipif mysql # not compatible
query II rowsort label-1081
SELECT + 31 / + ( 13 ) AS col0, + 31 AS col0
----
2
31

query I rowsort
SELECT ALL 70 * + 57 AS col0
----
3990

onlyif mysql # aggregate syntax: 
query I rowsort label-1083
SELECT - COUNT( * ) + + 23 * 41
----
942

skipif mysql # not compatible
query I rowsort label-1083
SELECT - COUNT ( * ) + + 23 * 41
----
942

onlyif mysql # DIV for integer division: 
query I rowsort label-1084
SELECT ALL 10 DIV + + 12 - 32 AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-1084
SELECT ALL 10 / + + 12 - 32 AS col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1085
SELECT ALL - 96 * - + 6 * 35 + - SUM( 86 ) * + 54
----
15516

skipif mysql # not compatible
query I rowsort label-1085
SELECT ALL - 96 * - + 6 * 35 + - SUM ( 86 ) * + 54
----
15516

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-1086
SELECT - SUM( - 19 ) AS col0, MIN( - CAST( NULL AS SIGNED ) ) - - 83 AS col0, 26 * - + 31 AS col0
----
19
NULL
-806

skipif mysql # not compatible
query III rowsort label-1086
SELECT - SUM ( - 19 ) AS col0, MIN ( - CAST ( NULL AS INTEGER ) ) - - 83 AS col0, 26 * - + 31 AS col0
----
19
NULL
-806

query I rowsort
SELECT - 81 * - - 35 col2
----
-2835

query I rowsort
SELECT + 90 + - 9 * - 15 AS col1
----
225

onlyif mysql # aggregate syntax: 
query II rowsort label-1089
SELECT - 2 AS col2, - COUNT( * ) * + 79 AS col2
----
-2
-79

skipif mysql # not compatible
query II rowsort label-1089
SELECT - 2 AS col2, - COUNT ( * ) * + 79 AS col2
----
-2
-79

query I rowsort
SELECT 10 + + 88
----
98

query I rowsort
SELECT ALL 61 * - 28 AS col0
----
-1708

onlyif mysql # aggregate syntax: 
query I rowsort label-1092
SELECT DISTINCT 20 + 24 * ( + 49 ) * + 81 + COUNT( * ) + - - 99 + - 18 col2
----
95358

skipif mysql # not compatible
query I rowsort label-1092
SELECT DISTINCT 20 + 24 * ( + 49 ) * + 81 + COUNT ( * ) + - - 99 + - 18 col2
----
95358

query I rowsort
SELECT ALL - 39 + - 68 AS col1
----
-107

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1094
SELECT DISTINCT + 84 + - ( - + 10 ) AS col1, + 66 DIV - NULLIF ( ( 57 ), + 69 * + COALESCE ( - 14, + SUM( 49 ) * 64 - 77 * 62 * - 18 * - COUNT( DISTINCT 40 ) + 25 ) + - 53 ) AS col2
----
94
-1

skipif mysql # not compatible
query II rowsort label-1094
SELECT DISTINCT + 84 + - ( - + 10 ) AS col1, + 66 / - NULLIF ( ( 57 ), + 69 * + COALESCE ( - 14, + SUM ( 49 ) * 64 - 77 * 62 * - 18 * - COUNT ( DISTINCT 40 ) + 25 ) + - 53 ) AS col2
----
94
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1095
SELECT DISTINCT 72 + 35 + + 82 * + + 15 + - 73 DIV + - 74 * - 51 * 52
----
1337

skipif mysql # not compatible
query I rowsort label-1095
SELECT DISTINCT 72 + 35 + + 82 * + + 15 + - 73 / + - 74 * - 51 * 52
----
1337

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1096
SELECT 7 AS col0, + CAST( - 61 AS SIGNED ) AS col0
----
7
-61

skipif mysql # not compatible
query II rowsort label-1096
SELECT 7 AS col0, + CAST ( - 61 AS INTEGER ) AS col0
----
7
-61

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

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

query I rowsort
SELECT ALL 7 + 19
----
26

query I rowsort
SELECT 35 + + 65 AS col1
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1100
SELECT ALL + 67 + + CAST( - + 11 AS SIGNED ), 44 AS col2
----
56
44

skipif mysql # not compatible
query II rowsort label-1100
SELECT ALL + 67 + + CAST ( - + 11 AS INTEGER ), 44 AS col2
----
56
44

query I rowsort
SELECT 44 * - - 85 AS col1
----
3740

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1105
SELECT DISTINCT - MIN( DISTINCT + 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-1105
SELECT DISTINCT - MIN ( DISTINCT + 95 )
----
-95

query I rowsort
SELECT ALL - 43 - + + 52
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1107
SELECT - COALESCE ( - CAST( - ( + 87 ) AS SIGNED ), + 21 DIV - 87 + CASE 69 WHEN - - 39 * 81 + ( - 49 ) + - - 79 THEN 24 WHEN - + CASE - 12 WHEN 76 + COUNT( * ) THEN NULL WHEN - 35 THEN MAX( ALL + - 96 ) ELSE NULL END DIV - COALESCE ( 77, - 7 ) THEN - SUM( - 27 ) * 76 * - 71 * - + 22 ELSE 9 END + + - 41 + 10 ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-1107
SELECT - COALESCE ( - CAST ( - ( + 87 ) AS INTEGER ), + 21 / - 87 + CASE 69 WHEN - - 39 * 81 + ( - 49 ) + - - 79 THEN 24 WHEN - + CASE - 12 WHEN 76 + COUNT ( * ) THEN NULL WHEN - 35 THEN MAX ( ALL + - 96 ) ELSE NULL END / - COALESCE ( 77, - 7 ) THEN - SUM ( - 27 ) * 76 * - 71 * - + 22 ELSE 9 END + + - 41 + 10 ) AS col0
----
-87

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1109
SELECT + - COUNT( * ), + CASE - 3 WHEN - 5 THEN 38 + - 38 WHEN COUNT( * ) THEN NULL END AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1109
SELECT + - COUNT ( * ), + CASE - 3 WHEN - 5 THEN 38 + - 38 WHEN COUNT ( * ) THEN NULL END AS col2
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1110
SELECT ALL - CASE 49 WHEN 95 THEN NULL WHEN - + CASE + 66 WHEN - 72 THEN COUNT( DISTINCT + ( + - 5 ) ) * + 64 + + ( 58 ) - - 87 * - - SUM( DISTINCT + 87 ) * - 14 WHEN COUNT( * ) THEN NULL END THEN NULL ELSE 97 + + 37 END
----
-134

skipif mysql # not compatible
query I rowsort label-1110
SELECT ALL - CASE 49 WHEN 95 THEN NULL WHEN - + CASE + 66 WHEN - 72 THEN COUNT ( DISTINCT + ( + - 5 ) ) * + 64 + + ( 58 ) - - 87 * - - SUM ( DISTINCT + 87 ) * - 14 WHEN COUNT ( * ) THEN NULL END THEN NULL ELSE 97 + + 37 END
----
-134

query I rowsort
SELECT DISTINCT + - 75 * ( - - 15 )
----
-1125

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1113
SELECT 78 * + NULLIF ( - 76, - MIN( DISTINCT + + 20 ) ) * + - 6
----
35568

skipif mysql # not compatible
query I rowsort label-1113
SELECT 78 * + NULLIF ( - 76, - MIN ( DISTINCT + + 20 ) ) * + - 6
----
35568

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1114
SELECT - 71 * - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1114
SELECT - 71 * - - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL + 91 * - 75 AS col2
----
-6825

onlyif mysql # aggregate syntax: 
query II rowsort label-1116
SELECT DISTINCT + + ( - CASE - + 26 WHEN + 81 * 40 * - - ( - 56 ) + - 32 + - - SUM( + 76 ) + - - 47 * + 27 THEN + + 89 WHEN + 68 - + 94 + + 20 * 85 THEN NULL WHEN + ( - - 42 ) THEN 61 WHEN 71 + + + COUNT( * ) * + + 27 * + ( - COUNT( * ) ) THEN - ( - 50 ) END ) * 21 + - - 87, - 9 col0
----
NULL
-9

skipif mysql # not compatible
query II rowsort label-1116
SELECT DISTINCT + + ( - CASE - + 26 WHEN + 81 * 40 * - - ( - 56 ) + - 32 + - - SUM ( + 76 ) + - - 47 * + 27 THEN + + 89 WHEN + 68 - + 94 + + 20 * 85 THEN NULL WHEN + ( - - 42 ) THEN 61 WHEN 71 + + + COUNT ( * ) * + + 27 * + ( - COUNT ( * ) ) THEN - ( - 50 ) END ) * 21 + - - 87, - 9 col0
----
NULL
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1117
SELECT ALL + 47 * - - NULLIF ( - ( + - 98 ), + 18 ) * - MAX( - 70 ) AS col1
----
322420

skipif mysql # not compatible
query I rowsort label-1117
SELECT ALL + 47 * - - NULLIF ( - ( + - 98 ), + 18 ) * - MAX ( - 70 ) AS col1
----
322420

query II rowsort
SELECT DISTINCT - - 3 col2, 35 - - ( - + 97 ) AS col1
----
3
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1119
SELECT ALL - COALESCE ( - 79, COUNT( * ) + 69 ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-1119
SELECT ALL - COALESCE ( - 79, COUNT ( * ) + 69 ) AS col2
----
79

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1121
SELECT 24 * + 14 DIV + - 1 col0, + 36 * + 38 AS col0
----
-336
1368

skipif mysql # not compatible
query II rowsort label-1121
SELECT 24 * + 14 / + - 1 col0, + 36 * + 38 AS col0
----
-336
1368

query II rowsort
SELECT ALL 99 AS col0, 43
----
99
43

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1124
SELECT ALL - 97 + - CASE + NULLIF ( - NULLIF ( 20, - + ( 47 ) / - + 95 + - - 45 + - 78 ), + - 10 + - 95 ) WHEN + - 67 * COUNT( * ) THEN NULL WHEN + + 28 + 74 THEN NULL ELSE - - 86 * - - 78 END
----
-6805

skipif mysql # not compatible
query I rowsort label-1124
SELECT ALL - 97 + - CASE + NULLIF ( - NULLIF ( 20, - + ( 47 ) / - + 95 + - - 45 + - 78 ), + - 10 + - 95 ) WHEN + - 67 * COUNT ( * ) THEN NULL WHEN + + 28 + 74 THEN NULL ELSE - - 86 * - - 78 END
----
-6805

onlyif mysql # aggregate syntax: 
query I rowsort label-1125
SELECT ALL MAX( 31 ) col2
----
31

skipif mysql # not compatible
query I rowsort label-1125
SELECT ALL MAX ( 31 ) col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1126
SELECT ALL COUNT( DISTINCT 39 ) + - 97 AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-1126
SELECT ALL COUNT ( DISTINCT 39 ) + - 97 AS col2
----
-96

query I rowsort
SELECT 9 / + CASE - 75 WHEN - - 81 / + 31 THEN + ( + 53 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1128
SELECT ALL 31 + - ( - + 91 ) + - 92 * + 83 * - + COUNT( * ) col0
----
7758

skipif mysql # not compatible
query I rowsort label-1128
SELECT ALL 31 + - ( - + 91 ) + - 92 * + 83 * - + COUNT ( * ) col0
----
7758

onlyif mysql # aggregate syntax: 
query I rowsort label-1129
SELECT 16 - + 30 + - - COUNT( * ) * MAX( 46 ) * 87 AS col1
----
3988

skipif mysql # not compatible
query I rowsort label-1129
SELECT 16 - + 30 + - - COUNT ( * ) * MAX ( 46 ) * 87 AS col1
----
3988

onlyif mysql # aggregate syntax: 
query I rowsort label-1130
SELECT ALL COUNT( * ) * + 37 * + 93 AS col1
----
3441

skipif mysql # not compatible
query I rowsort label-1130
SELECT ALL COUNT ( * ) * + 37 * + 93 AS col1
----
3441

onlyif mysql # aggregate syntax: 
query I rowsort label-1131
SELECT ( + + 73 ) * 21 * - - SUM( ALL 13 ) + + + CASE 33 WHEN + + COUNT( DISTINCT + 92 ) THEN + + 28 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1131
SELECT ( + + 73 ) * 21 * - - SUM ( ALL 13 ) + + + CASE 33 WHEN + + COUNT ( DISTINCT + 92 ) THEN + + 28 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1132
SELECT ALL 1 + + + COUNT( * ) + - 80 * - 19
----
1522

skipif mysql # not compatible
query I rowsort label-1132
SELECT ALL 1 + + + COUNT ( * ) + - 80 * - 19
----
1522

query II rowsort
SELECT + 65 + - + 12 col2, + 78 * 22 * + - ( - 77 ) col0
----
53
132132

query I rowsort
SELECT + 83 + - 44 AS col2
----
39

query I rowsort
SELECT ALL 65 - - 97
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-1136
SELECT + COUNT( * ) + COUNT( * ) + 17 * - 20 * 67 + - ( 75 ) * + + 55 AS col2
----
-26903

skipif mysql # not compatible
query I rowsort label-1136
SELECT + COUNT ( * ) + COUNT ( * ) + 17 * - 20 * 67 + - ( 75 ) * + + 55 AS col2
----
-26903

query I rowsort
SELECT + 11 + + - 61 - + 65 + - 4 AS col0
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-1138
SELECT ALL - ( + 46 ) / - 19 * - 40 * + 36 * 93 + CASE - + COUNT( * ) WHEN - 56 THEN 69 * 14 + - + 94 + - - MAX( + + 3 ) * COUNT( * ) WHEN - 96 THEN + - 81 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1138
SELECT ALL - ( + 46 ) / - 19 * - 40 * + 36 * 93 + CASE - + COUNT ( * ) WHEN - 56 THEN 69 * 14 + - + 94 + - - MAX ( + + 3 ) * COUNT ( * ) WHEN - 96 THEN + - 81 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1139
SELECT DISTINCT + - CASE 57 WHEN - - COUNT( * ) THEN NULL WHEN - - 96 + + 20 THEN NULL WHEN - - NULLIF ( - - 60, - 79 - + AVG ( ALL - 66 ) ) + + + 23 + 97 * - + 61 THEN + - 15 ELSE NULL END, COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1139
SELECT DISTINCT + - CASE 57 WHEN - - COUNT ( * ) THEN NULL WHEN - - 96 + + 20 THEN NULL WHEN - - NULLIF ( - - 60, - 79 - + AVG ( ALL - 66 ) ) + + + 23 + 97 * - + 61 THEN + - 15 ELSE NULL END, COUNT ( * ) AS col1
----
NULL
1

query II rowsort
SELECT ALL 89 * + - 76 - - 7 + - 78 AS col1, 90
----
-6835
90

query I rowsort
SELECT DISTINCT - 53 * 6 * 81 AS col0
----
-25758

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1142
SELECT + 19 * CASE - 3 WHEN + 76 + + + 16 + + COALESCE ( + 64, - COUNT( * ), 10 * + 48 + + - CAST( + + 58 AS SIGNED ) ) THEN + 52 * + 65 WHEN + - 26 + - 81 + + 64 + ( - 31 ) + + + 56 * - 76 + - 73 * + 5 * + COUNT( * ) / - CAST( + + COUNT( * ) AS SIGNED ) + + CAST( NULL AS SIGNED ) THEN - + 73 END + - 61 + - 51 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1142
SELECT + 19 * CASE - 3 WHEN + 76 + + + 16 + + COALESCE ( + 64, - COUNT ( * ), 10 * + 48 + + - CAST ( + + 58 AS INTEGER ) ) THEN + 52 * + 65 WHEN + - 26 + - 81 + + 64 + ( - 31 ) + + + 56 * - 76 + - 73 * + 5 * + COUNT ( * ) / - CAST ( + + COUNT ( * ) AS INTEGER ) + + CAST ( NULL AS INTEGER ) THEN - + 73 END + - 61 + - 51 AS col0
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1144
SELECT DISTINCT - 9 * + - ( - 60 ) * + 58 - - COUNT( ALL CAST( - 3 AS DECIMAL ) ) + - 49 * + + ( - 95 )
----
-26664

skipif mysql # not compatible
query I rowsort label-1144
SELECT DISTINCT - 9 * + - ( - 60 ) * + 58 - - COUNT ( ALL CAST ( - 3 AS REAL ) ) + - 49 * + + ( - 95 )
----
-26664

query I rowsort
SELECT ALL - 51 * 13 + + - 96 AS col2
----
-759

query I rowsort
SELECT DISTINCT 74 * - + 12
----
-888

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

skipif mysql # not compatible
query I rowsort label-1147
SELECT ALL - - COUNT ( * ) / + - 73 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1148
SELECT - - 65 DIV + 57 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1148
SELECT - - 65 / + 57 AS col1
----
1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1150
SELECT + 75 + 50 DIV + 35
----
76

skipif mysql # not compatible
query I rowsort label-1150
SELECT + 75 + 50 / + 35
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-1151
SELECT - - COUNT( * ) + 37 - + + 2 * 41 * - 27 AS col0, 63 * + ( - - 91 ) col2
----
2252
5733

skipif mysql # not compatible
query II rowsort label-1151
SELECT - - COUNT ( * ) + 37 - + + 2 * 41 * - 27 AS col0, 63 * + ( - - 91 ) col2
----
2252
5733

query I rowsort
SELECT - 63 + + 24 + + - 37 AS col1
----
-76

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

query I rowsort
SELECT ALL - 83 * + 14 * - CASE 99 WHEN + ( 36 ) THEN + AVG ( - 38 ) * + 66 END * + + 64 + 16 + - 40
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1155
SELECT ALL + - 1 * + - MAX( ALL + 14 ) + + 95 AS col1, - 95 * - 51
----
109
4845

skipif mysql # not compatible
query II rowsort label-1155
SELECT ALL + - 1 * + - MAX ( ALL + 14 ) + + 95 AS col1, - 95 * - 51
----
109
4845

onlyif mysql # aggregate syntax: 
query I rowsort label-1156
SELECT DISTINCT COUNT( * ) * + - ( 98 ) + 46 + + 26 * 62 * COUNT( * ) * 49 + 69 * - + 60
----
74796

skipif mysql # not compatible
query I rowsort label-1156
SELECT DISTINCT COUNT ( * ) * + - ( 98 ) + 46 + + 26 * 62 * COUNT ( * ) * 49 + 69 * - + 60
----
74796

query I rowsort
SELECT ALL + 11 * + 39
----
429

onlyif mysql # aggregate syntax: 
query II rowsort label-1158
SELECT DISTINCT NULLIF ( - 68, + 76 ) * - - 50 + + 71 + ( ( - - 98 ) ), + 95 + MAX( 27 ) * 17 * 52 AS col0
----
-3231
23963

skipif mysql # not compatible
query II rowsort label-1158
SELECT DISTINCT NULLIF ( - 68, + 76 ) * - - 50 + + 71 + ( ( - - 98 ) ), + 95 + MAX ( 27 ) * 17 * 52 AS col0
----
-3231
23963

onlyif mysql # aggregate syntax: 
query I rowsort label-1159
SELECT DISTINCT + 40 * + 78 + + + 82 * + + COALESCE ( + SUM( ALL 45 ), - + 20, + 6 * + 15 )
----
6810

skipif mysql # not compatible
query I rowsort label-1159
SELECT DISTINCT + 40 * + 78 + + + 82 * + + COALESCE ( + SUM ( ALL 45 ), - + 20, + 6 * + 15 )
----
6810

onlyif mysql # DIV for integer division: 
query I rowsort label-1160
SELECT - 13 DIV 72 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1160
SELECT - 13 / 72 AS col0
----
0

query I rowsort
SELECT + 19 + - - 44 - - 9
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1162
SELECT DISTINCT - 66 + - COUNT( * ) col0
----
-67

skipif mysql # not compatible
query I rowsort label-1162
SELECT DISTINCT - 66 + - COUNT ( * ) col0
----
-67

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1164
SELECT - COUNT( * ) * 45 + 88 * 55 DIV - COUNT( * ) - - 72 col2
----
-4813

skipif mysql # not compatible
query I rowsort label-1164
SELECT - COUNT ( * ) * 45 + 88 * 55 / - COUNT ( * ) - - 72 col2
----
-4813

query I rowsort
SELECT + 72 + - - 37 AS col2
----
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1166
SELECT - 83 DIV COUNT( * ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-1166
SELECT - 83 / COUNT ( * ) AS col1
----
-83

query I rowsort
SELECT - 59 * - ( 57 ) * - 76
----
-255588

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

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

query I rowsort
SELECT ALL 47 - - 53
----
100

query I rowsort
SELECT ALL 6 * 56
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-1171
SELECT DISTINCT MAX( DISTINCT + 69 ) - - 3 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-1171
SELECT DISTINCT MAX ( DISTINCT + 69 ) - - 3 AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1172
SELECT - ( - MIN( - 52 ) )
----
-52

skipif mysql # not compatible
query I rowsort label-1172
SELECT - ( - MIN ( - 52 ) )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1173
SELECT + 93 * CASE 49 WHEN + COUNT( * ) THEN + AVG ( ALL 56 ) - 66 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1173
SELECT + 93 * CASE 49 WHEN + COUNT ( * ) THEN + AVG ( ALL 56 ) - 66 END AS col1
----
NULL

query I rowsort
SELECT + 99 * + 26
----
2574

query I rowsort
SELECT + 70 - 60 col1
----
10

query I rowsort
SELECT + 63 * - 93 AS col1
----
-5859

query I rowsort
SELECT + 98 * + NULLIF ( 78, + 78 * 8 ) col1
----
7644

query I rowsort
SELECT + 27 * - 59
----
-1593

query I rowsort
SELECT + CASE ( + 15 ) WHEN 24 THEN NULL ELSE 46 + + 2 END + 11 * + 37
----
455

query I rowsort
SELECT + 62 + 75
----
137

query I rowsort
SELECT - 68 * 76
----
-5168

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1183
SELECT ALL - COUNT( * ) * 15 + CAST( + 95 + - 18 AS SIGNED ) * + COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-1183
SELECT ALL - COUNT ( * ) * 15 + CAST ( + 95 + - 18 AS INTEGER ) * + COUNT ( * )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1184
SELECT COUNT( * ) * - 9 + 35
----
26

skipif mysql # not compatible
query I rowsort label-1184
SELECT COUNT ( * ) * - 9 + 35
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1185
SELECT DISTINCT MAX( DISTINCT + 89 ) * 97
----
8633

skipif mysql # not compatible
query I rowsort label-1185
SELECT DISTINCT MAX ( DISTINCT + 89 ) * 97
----
8633

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1186
SELECT ALL COUNT( * ) * - CAST( - 25 AS SIGNED ) + 89 * - 98 AS col2
----
-8697

skipif mysql # not compatible
query I rowsort label-1186
SELECT ALL COUNT ( * ) * - CAST ( - 25 AS INTEGER ) + 89 * - 98 AS col2
----
-8697

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1188
SELECT DISTINCT - ( - NULLIF ( + 46, - 95 * + 52 ) ) DIV 54 col1
----
0

skipif mysql # not compatible
query I rowsort label-1188
SELECT DISTINCT - ( - NULLIF ( + 46, - 95 * + 52 ) ) / 54 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1189
SELECT + 6 * - COUNT( * ) + 8 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1189
SELECT + 6 * - COUNT ( * ) + 8 AS col0
----
2

query I rowsort
SELECT - 2 * - ( 69 )
----
138

query I rowsort
SELECT DISTINCT + 35 + - 14 col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT DISTINCT - MIN( 83 ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-1192
SELECT DISTINCT - MIN ( 83 ) AS col2
----
-83

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

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

query I rowsort
SELECT 18 * 47
----
846

query I rowsort
SELECT DISTINCT - ( + 94 ) * 66 AS col0
----
-6204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1196
SELECT DISTINCT - CASE 5 WHEN CASE 8 WHEN + CAST( NULL AS SIGNED ) THEN COUNT( DISTINCT + 84 ) + + 26 WHEN + AVG ( - 3 ) THEN + 46 / - 70 + - SUM( DISTINCT 20 ) ELSE COALESCE ( - 84, 19 ) + + 69 END THEN COUNT( * ) * 75 ELSE 58 END * + 22
----
-1276

skipif mysql # not compatible
query I rowsort label-1196
SELECT DISTINCT - CASE 5 WHEN CASE 8 WHEN + CAST ( NULL AS INTEGER ) THEN COUNT ( DISTINCT + 84 ) + + 26 WHEN + AVG ( - 3 ) THEN + 46 / - 70 + - SUM ( DISTINCT 20 ) ELSE COALESCE ( - 84, 19 ) + + 69 END THEN COUNT ( * ) * 75 ELSE 58 END * + 22
----
-1276

query I rowsort
SELECT 44 * 81
----
3564

query I rowsort
SELECT ALL - 45 * ( 41 * 23 ) AS col1
----
-42435

query I rowsort
SELECT 50 - 74
----
-24

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

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

query I rowsort
SELECT 34 + 35 * - 14
----
-456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1202
SELECT CAST( MAX( DISTINCT 40 ) AS SIGNED ) + + 45
----
85

skipif mysql # not compatible
query I rowsort label-1202
SELECT CAST ( MAX ( DISTINCT 40 ) AS INTEGER ) + + 45
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1203
SELECT COUNT( * ) + 19
----
20

skipif mysql # not compatible
query I rowsort label-1203
SELECT COUNT ( * ) + 19
----
20

query I rowsort
SELECT ALL 7 * 96 AS col2
----
672

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1205
SELECT DISTINCT + - COALESCE ( - COUNT( * ), 8 DIV + 0 ) + + ( 8 ) * - 40 AS col2
----
-319

skipif mysql # not compatible
query I rowsort label-1205
SELECT DISTINCT + - COALESCE ( - COUNT ( * ), 8 / + 0 ) + + ( 8 ) * - 40 AS col2
----
-319

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1206
SELECT ALL - - 39 + - ( + 89 + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1206
SELECT ALL - - 39 + - ( + 89 + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT - 71 * - 69
----
4899

query I rowsort
SELECT 22 + 25 * - 64
----
-1578

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

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

query I rowsort
SELECT 99 + 32 AS col1
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-1211
SELECT ALL - MAX( DISTINCT - ( 27 ) ) * + 43 AS col1
----
1161

skipif mysql # not compatible
query I rowsort label-1211
SELECT ALL - MAX ( DISTINCT - ( 27 ) ) * + 43 AS col1
----
1161

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

query I rowsort
SELECT ( 39 ) AS col2
----
39

query I rowsort
SELECT DISTINCT 10 + - 34 AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1215
SELECT ALL - 19 + - ( + COUNT( * ) )
----
-20

skipif mysql # not compatible
query I rowsort label-1215
SELECT ALL - 19 + - ( + COUNT ( * ) )
----
-20

query I rowsort
SELECT + COALESCE ( - 20, + 18 * 15 )
----
-20

query I rowsort
SELECT ALL - - 47 * 35 AS col2
----
1645

query I rowsort
SELECT DISTINCT - + ( 89 ) AS col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-1219
SELECT DISTINCT - NULLIF ( + 27, ( MAX( 61 ) ) + 3 ) + + 5 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-1219
SELECT DISTINCT - NULLIF ( + 27, ( MAX ( 61 ) ) + 3 ) + + 5 AS col1
----
-22

query I rowsort
SELECT ( 46 ) + - 82
----
-36

query I rowsort
SELECT 39 * + 41 - 95 col0
----
1504

query I rowsort
SELECT COALESCE ( + - 29, 14 ) * 92
----
-2668

onlyif mysql # aggregate syntax: 
query I rowsort label-1223
SELECT ALL MIN( DISTINCT + 91 ) * + 46 AS col0
----
4186

skipif mysql # not compatible
query I rowsort label-1223
SELECT ALL MIN ( DISTINCT + 91 ) * + 46 AS col0
----
4186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1224
SELECT DISTINCT 90 - - 39 - CAST( - 95 AS SIGNED )
----
224

skipif mysql # not compatible
query I rowsort label-1224
SELECT DISTINCT 90 - - 39 - CAST ( - 95 AS INTEGER )
----
224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1225
SELECT - NULLIF ( - - 68, MAX( DISTINCT 80 ) ) * + CASE - 93 * 1 WHEN 85 / COUNT( * ) THEN NULL WHEN - 45 + 13 THEN 81 * - 6 ELSE NULL END + CAST( + CAST( NULL AS SIGNED ) - 35 AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1225
SELECT - NULLIF ( - - 68, MAX ( DISTINCT 80 ) ) * + CASE - 93 * 1 WHEN 85 / COUNT ( * ) THEN NULL WHEN - 45 + 13 THEN 81 * - 6 ELSE NULL END + CAST ( + CAST ( NULL AS INTEGER ) - 35 AS INTEGER ) col2
----
NULL

query I rowsort
SELECT 28 * 45
----
1260

query I rowsort
SELECT ALL 42 * - - 72 col2
----
3024

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

skipif mysql # not compatible
query I rowsort label-1228
SELECT 44 * + COUNT ( * ) * 54 AS col1
----
2376

query I rowsort
SELECT 50 + + + 12 AS col2
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1230
SELECT 53 * + - NULLIF ( + 83, - CAST( + ( 78 ) AS SIGNED ) + MAX( 42 ) / 95 )
----
-4399

skipif mysql # not compatible
query I rowsort label-1230
SELECT 53 * + - NULLIF ( + 83, - CAST ( + ( 78 ) AS INTEGER ) + MAX ( 42 ) / 95 )
----
-4399

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1231
SELECT 69 + + + NULLIF ( 81, 43 * MAX( 82 ) + - CASE 71 WHEN 86 THEN - 66 * 8 - ( 11 + + 15 ) WHEN 87 / - 9 THEN CAST( 74 AS SIGNED ) ELSE NULL END * - 49 )
----
150

skipif mysql # not compatible
query I rowsort label-1231
SELECT 69 + + + NULLIF ( 81, 43 * MAX ( 82 ) + - CASE 71 WHEN 86 THEN - 66 * 8 - ( 11 + + 15 ) WHEN 87 / - 9 THEN CAST ( 74 AS INTEGER ) ELSE NULL END * - 49 )
----
150

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

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

query I rowsort
SELECT 79 + - + 47 + - 34 AS col2
----
-2

query I rowsort
SELECT ALL - 14 + - 77 AS col2
----
-91

query I rowsort
SELECT DISTINCT - 5 * - 93 AS col0
----
465

query I rowsort
SELECT ALL + 75 + - 84 + 74 * 46
----
3395

query I rowsort
SELECT - 66 * - + 44
----
2904

query I rowsort
SELECT ALL + + 99 + - 84 + 50 * 91
----
4565

onlyif mysql # aggregate syntax: 
query I rowsort label-1239
SELECT - + SUM( ALL + 51 ) col2
----
-51

skipif mysql # not compatible
query I rowsort label-1239
SELECT - + SUM ( ALL + 51 ) col2
----
-51

query I rowsort
SELECT 78 - 77 col0
----
1

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

skipif mysql # not compatible
query I rowsort label-1241
SELECT ALL + + 24 + - 97 - + COUNT ( * ) AS col2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1242
SELECT ALL - NULLIF ( + COUNT( * ), - 4 ) + + 91 AS col2
----
90

skipif mysql # not compatible
query I rowsort label-1242
SELECT ALL - NULLIF ( + COUNT ( * ), - 4 ) + + 91 AS col2
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1243
SELECT ALL + - COALESCE ( + - 30, - 43 ) + - CASE 26 WHEN 9 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN + 53 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1243
SELECT ALL + - COALESCE ( + - 30, - 43 ) + - CASE 26 WHEN 9 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN + 53 END AS col0
----
NULL

query I rowsort
SELECT 47 - + ( + ( - 72 ) ) AS col2
----
119

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1245
SELECT ALL + 31 DIV - MAX( DISTINCT 79 ) + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1245
SELECT ALL + 31 / - MAX ( DISTINCT 79 ) + COUNT ( * ) AS col1
----
1

query I rowsort
SELECT DISTINCT 82 * - + 0 + 6 AS col0
----
6

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1249
SELECT DISTINCT + COUNT( * ) * + MAX( + 50 ) - - 92 * - ( - 10 ) AS col1
----
970

skipif mysql # not compatible
query I rowsort label-1249
SELECT DISTINCT + COUNT ( * ) * + MAX ( + 50 ) - - 92 * - ( - 10 ) AS col1
----
970

onlyif mysql # aggregate syntax: 
query I rowsort label-1250
SELECT DISTINCT - - MAX( ALL + 94 )
----
94

skipif mysql # not compatible
query I rowsort label-1250
SELECT DISTINCT - - MAX ( ALL + 94 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1251
SELECT DISTINCT + 65 * - 70 + MAX( ( ( 85 ) ) + + ( - 91 ) )
----
-4556

skipif mysql # not compatible
query I rowsort label-1251
SELECT DISTINCT + 65 * - 70 + MAX ( ( ( 85 ) ) + + ( - 91 ) )
----
-4556

onlyif mysql # DIV for integer division: 
query I rowsort label-1252
SELECT + 36 DIV + 90 + + 39
----
39

skipif mysql # not compatible
query I rowsort label-1252
SELECT + 36 / + 90 + + 39
----
39

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1254
SELECT + NULLIF ( CASE 9 WHEN MIN( - 88 ) THEN COUNT( * ) ELSE - 50 - + CASE 70 WHEN 95 THEN + 41 * + 0 WHEN 33 THEN 55 END END, 93 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1254
SELECT + NULLIF ( CASE 9 WHEN MIN ( - 88 ) THEN COUNT ( * ) ELSE - 50 - + CASE 70 WHEN 95 THEN + 41 * + 0 WHEN 33 THEN 55 END END, 93 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1255
SELECT - - 27 * + + 24 * 93 - + COUNT( * )
----
60263

skipif mysql # not compatible
query I rowsort label-1255
SELECT - - 27 * + + 24 * 93 - + COUNT ( * )
----
60263

onlyif mysql # DIV for integer division: 
query I rowsort label-1256
SELECT - 67 * 72 DIV + + 92
----
-52

skipif mysql # not compatible
query I rowsort label-1256
SELECT - 67 * 72 / + + 92
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1257
SELECT + MIN( DISTINCT - 88 ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-1257
SELECT + MIN ( DISTINCT - 88 ) AS col1
----
-88

query I rowsort
SELECT + 36 * + 20
----
720

query II rowsort
SELECT DISTINCT + 76 AS col2, + 1 + - 47 AS col1
----
76
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1260
SELECT - 24 + + - 22 * - COUNT( ALL ( + 16 ) ) - - 70 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-1260
SELECT - 24 + + - 22 * - COUNT ( ALL ( + 16 ) ) - - 70 AS col1
----
68

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

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

query I rowsort
SELECT DISTINCT 30 * - 99
----
-2970

query II rowsort
SELECT ALL 31, + 20 AS col1
----
31
20

query I rowsort
SELECT ALL 47 * + - 4 AS col1
----
-188

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1265
SELECT + MIN( + + 12 ) DIV + 18
----
0

skipif mysql # not compatible
query I rowsort label-1265
SELECT + MIN ( + + 12 ) / + 18
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1267
SELECT + CASE 74 WHEN + + CAST( - 47 AS SIGNED ) + 31 * - ( 72 ) THEN - 20 * NULLIF ( 50, + 42 + - 98 ) END - - 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1267
SELECT + CASE 74 WHEN + + CAST ( - 47 AS INTEGER ) + 31 * - ( 72 ) THEN - 20 * NULLIF ( 50, + 42 + - 98 ) END - - 38 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1268
SELECT DISTINCT CAST( COUNT( ALL - 21 ) AS SIGNED ) + 11 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-1268
SELECT DISTINCT CAST ( COUNT ( ALL - 21 ) AS INTEGER ) + 11 AS col1
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1269
SELECT + ( + + MAX( DISTINCT 7 ) ) DIV - COALESCE ( 8 * + COUNT( * ) + - 25 DIV - COUNT( * ), - ( - 85 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1269
SELECT + ( + + MAX ( DISTINCT 7 ) ) / - COALESCE ( 8 * + COUNT ( * ) + - 25 / - COUNT ( * ), - ( - 85 ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1270
SELECT ALL 29 + - 64 + - - 14 + + COUNT( * ) * SUM( DISTINCT + 55 * 29 )
----
1574

skipif mysql # not compatible
query I rowsort label-1270
SELECT ALL 29 + - 64 + - - 14 + + COUNT ( * ) * SUM ( DISTINCT + 55 * 29 )
----
1574

query I rowsort
SELECT ALL + 87 + + 96 * - + 32
----
-2985

onlyif mysql # aggregate syntax: 
query I rowsort label-1272
SELECT + MIN( ALL 76 )
----
76

skipif mysql # not compatible
query I rowsort label-1272
SELECT + MIN ( ALL 76 )
----
76

query I rowsort
SELECT + + 12 + - 60 * + 94
----
-5628

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

query II rowsort
SELECT ALL + 49, 26 + + ( + 94 ) + + 74 * 62 col1
----
49
4708

onlyif mysql # aggregate syntax: 
query I rowsort label-1276
SELECT + - 37 + + 23 * + + MAX( ALL 15 )
----
308

skipif mysql # not compatible
query I rowsort label-1276
SELECT + - 37 + + 23 * + + MAX ( ALL 15 )
----
308

query I rowsort
SELECT - 86 - + 72 AS col0
----
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-1278
SELECT + COUNT( * ) + - 21 * + 73 * - SUM( 17 )
----
26062

skipif mysql # not compatible
query I rowsort label-1278
SELECT + COUNT ( * ) + - 21 * + 73 * - SUM ( 17 )
----
26062

query I rowsort
SELECT - ( - + 79 ) * - 50 * + ( + 19 ) AS col1
----
-75050

onlyif mysql # aggregate syntax: 
query I rowsort label-1280
SELECT ALL + - MAX( + 89 ) + ( 4 ) * + 71 AS col1
----
195

skipif mysql # not compatible
query I rowsort label-1280
SELECT ALL + - MAX ( + 89 ) + ( 4 ) * + 71 AS col1
----
195

query I rowsort
SELECT ALL - COALESCE ( + 10, 96 ) AS col0
----
-10

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1283
SELECT - - COUNT( ALL + 40 ) + - + 15 + - CASE 11 - 95 WHEN COUNT( * ) THEN - 99 / 13 WHEN 6 + + 43 * + COUNT( * ) THEN NULL END * CAST( CAST( NULL AS DECIMAL ) * 26 + + 51 AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1283
SELECT - - COUNT ( ALL + 40 ) + - + 15 + - CASE 11 - 95 WHEN COUNT ( * ) THEN - 99 / 13 WHEN 6 + + 43 * + COUNT ( * ) THEN NULL END * CAST ( CAST ( NULL AS REAL ) * 26 + + 51 AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ALL - 91 - 75 AS col0
----
-166

query I rowsort
SELECT - + 22 + + NULLIF ( + - 72, 69 / 92 )
----
-94

query I rowsort
SELECT ALL - + 84 - - 84 * 22
----
1764

query I rowsort
SELECT - - NULLIF ( - - 91, + ( + 45 ) + - 73 ) + - 83 * + 15
----
-1154

query I rowsort
SELECT + - 36 * - 1 * + 85 - 51
----
3009

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT - COUNT( * ) * + 10 - + COUNT( * ) + 97 * 98
----
9495

skipif mysql # not compatible
query I rowsort label-1289
SELECT - COUNT ( * ) * + 10 - + COUNT ( * ) + 97 * 98
----
9495

query I rowsort
SELECT ALL + - 79 * 60 AS col2
----
-4740

onlyif mysql # DIV for integer division: 
query II rowsort label-1291
SELECT - 64 AS col2, + 11 DIV - 18 * + 68 + 65
----
-64
65

skipif mysql # not compatible
query II rowsort label-1291
SELECT - 64 AS col2, + 11 / - 18 * + 68 + 65
----
-64
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1292
SELECT + + CAST( + - CASE WHEN 79 IS NULL THEN + 69 ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1292
SELECT + + CAST ( + - CASE WHEN 79 IS NULL THEN + 69 ELSE NULL END AS INTEGER )
----
NULL

query II rowsort
SELECT + 31, + 54 * - 45 - + 74 AS col2
----
31
-2504

query I rowsort
SELECT - - 66 * + + 92 + - 63 AS col2
----
6009

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1295
SELECT - SUM( DISTINCT - CAST( + 26 AS SIGNED ) ) * - CAST( NULL AS SIGNED ) AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT - CASE + - 80 WHEN - 42 * COALESCE ( - 10, - 9 ) THEN NULL WHEN - 99 * 42 THEN + COALESCE ( - 2, - 49 * - 33, 57 + SUM( 11 + 89 * + 33 ) ) END * - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-1296
SELECT - CASE + - 80 WHEN - 42 * COALESCE ( - 10, - 9 ) THEN NULL WHEN - 99 * 42 THEN + COALESCE ( - 2, - 49 * - 33, 57 + SUM ( 11 + 89 * + 33 ) ) END * - 66
----
NULL

query I rowsort
SELECT ALL + CASE - 88 WHEN - + 52 + - 88 THEN 4 / - 4 - - 6 ELSE + 20 END AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1298
SELECT - 61 + - 90 + - - MAX( DISTINCT 40 ) AS col2
----
-111

skipif mysql # not compatible
query I rowsort label-1298
SELECT - 61 + - 90 + - - MAX ( DISTINCT 40 ) AS col2
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-1299
SELECT - 37 * ( - COUNT( * ) ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-1299
SELECT - 37 * ( - COUNT ( * ) ) AS col1
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-1300
SELECT + MAX( DISTINCT 61 ) AS col2, + 66 AS col2
----
61
66

skipif mysql # not compatible
query II rowsort label-1300
SELECT + MAX ( DISTINCT 61 ) AS col2, + 66 AS col2
----
61
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1301
SELECT ALL + CASE 79 WHEN 91 - COUNT( * ) * - 39 THEN 17 WHEN 26 THEN + 34 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1301
SELECT ALL + CASE 79 WHEN 91 - COUNT ( * ) * - 39 THEN 17 WHEN 26 THEN + 34 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1302
SELECT DISTINCT - NULLIF ( 14, - + 82 DIV 51 ) DIV + 31
----
0

skipif mysql # not compatible
query I rowsort label-1302
SELECT DISTINCT - NULLIF ( 14, - + 82 / 51 ) / + 31
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1303
SELECT - 18 * - - MAX( - 52 ) * - COUNT( * ) + - 66 * 69 AS col0
----
-5490

skipif mysql # not compatible
query I rowsort label-1303
SELECT - 18 * - - MAX ( - 52 ) * - COUNT ( * ) + - 66 * 69 AS col0
----
-5490

query I rowsort
SELECT - 83 - + + 80 * 9 col2
----
-803

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1305
SELECT ALL - CAST( + 88 AS SIGNED ) * - + 43 AS col1
----
3784

skipif mysql # not compatible
query I rowsort label-1305
SELECT ALL - CAST ( + 88 AS INTEGER ) * - + 43 AS col1
----
3784

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT + CASE - 69 WHEN - - 63 * - + 17 * COUNT( * ) THEN + 51 - 89 END * 23 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1307
SELECT + CASE - 69 WHEN - - 63 * - + 17 * COUNT ( * ) THEN + 51 - 89 END * 23 AS col1
----
NULL

query I rowsort
SELECT ALL 55 * - + 30 + + 33 AS col0
----
-1617

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

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

query I rowsort
SELECT DISTINCT - 50 * 26 + 46
----
-1254

onlyif mysql # aggregate syntax: 
query I rowsort label-1311
SELECT COALESCE ( 27, + 11, - COUNT( * ) ) col0
----
27

skipif mysql # not compatible
query I rowsort label-1311
SELECT COALESCE ( 27, + 11, - COUNT ( * ) ) col0
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1312
SELECT + COALESCE ( COUNT( * ), + 97 DIV 63 + - CAST( NULL AS SIGNED ) - - CASE 84 + - 26 WHEN - NULLIF ( 66, - 77 + 37 ) THEN NULL ELSE 31 END ) + MAX( ALL 92 ) DIV 23 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-1312
SELECT + COALESCE ( COUNT ( * ), + 97 / 63 + - CAST ( NULL AS INTEGER ) - - CASE 84 + - 26 WHEN - NULLIF ( 66, - 77 + 37 ) THEN NULL ELSE 31 END ) + MAX ( ALL 92 ) / 23 AS col0
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1313
SELECT ALL + 17 * + 55 * + CAST( + 62 AS SIGNED ) / 42 + CASE WHEN NOT NULL > + MIN( DISTINCT - 22 ) THEN 0 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1313
SELECT ALL + 17 * + 55 * + CAST ( + 62 AS INTEGER ) / 42 + CASE WHEN NOT NULL > + MIN ( DISTINCT - 22 ) THEN 0 ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1314
SELECT + 23 + + 31 DIV 12
----
25

skipif mysql # not compatible
query I rowsort label-1314
SELECT + 23 + + 31 / 12
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1315
SELECT - ( CASE - 50 WHEN 29 + + 39 THEN - 77 * ( + 45 ) WHEN + 56 THEN NULL WHEN COUNT( * ) THEN NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1315
SELECT - ( CASE - 50 WHEN 29 + + 39 THEN - 77 * ( + 45 ) WHEN + 56 THEN NULL WHEN COUNT ( * ) THEN NULL END ) AS col2
----
NULL

query I rowsort
SELECT ALL 4 * + 34 + 65
----
201

query I rowsort
SELECT + 57 + + - 88 + - 39 AS col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1318
SELECT DISTINCT 82 * 10 + CASE - 55 WHEN + 32 THEN ( + 68 ) ELSE NULL END + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1318
SELECT DISTINCT 82 * 10 + CASE - 55 WHEN + 32 THEN ( + 68 ) ELSE NULL END + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1319
SELECT ALL 19 * - 92 + + 54 + 55 * COUNT( * ) col1
----
-1639

skipif mysql # not compatible
query I rowsort label-1319
SELECT ALL 19 * - 92 + + 54 + 55 * COUNT ( * ) col1
----
-1639

query I rowsort
SELECT ALL + 84 * + COALESCE ( - 61, - 72 * - 51 ) * + 21 + 86 col2
----
-107518

query I rowsort
SELECT + + 75 * 58
----
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-1322
SELECT DISTINCT + 64 * CASE + 82 WHEN + 9 THEN + 23 - 41 WHEN - NULLIF ( 56, COUNT( * ) ) + + 23 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1322
SELECT DISTINCT + 64 * CASE + 82 WHEN + 9 THEN + 23 - 41 WHEN - NULLIF ( 56, COUNT ( * ) ) + + 23 THEN NULL ELSE NULL END
----
NULL

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

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

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

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

query I rowsort
SELECT - CASE 39 WHEN - 38 THEN 58 WHEN + 42 THEN NULL END / - 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1326
SELECT MAX( ALL - 98 ) * + + 18 AS col0
----
-1764

skipif mysql # not compatible
query I rowsort label-1326
SELECT MAX ( ALL - 98 ) * + + 18 AS col0
----
-1764

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1327
SELECT - 44 * + 11 * - - 28 + + CASE + 28 WHEN CASE CASE 70 WHEN - 57 + CAST( NULL AS SIGNED ) THEN 35 END WHEN + 87 * 79 + - ( 8 ) THEN NULL ELSE 31 * + 65 END * COUNT( * ) THEN + CAST( + COALESCE ( - AVG ( 38 ), 86 * 37, 29 + + 14 * - ( 65 ) ) AS SIGNED ) WHEN + ( + 23 ) * AVG ( ALL + CAST( NULL AS SIGNED ) ) THEN NULL WHEN COUNT( * ) * COUNT( * ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1327
SELECT - 44 * + 11 * - - 28 + + CASE + 28 WHEN CASE CASE 70 WHEN - 57 + CAST ( NULL AS INTEGER ) THEN 35 END WHEN + 87 * 79 + - ( 8 ) THEN NULL ELSE 31 * + 65 END * COUNT ( * ) THEN + CAST ( + COALESCE ( - AVG ( 38 ), 86 * 37, 29 + + 14 * - ( 65 ) ) AS INTEGER ) WHEN + ( + 23 ) * AVG ( ALL + CAST ( NULL AS INTEGER ) ) THEN NULL WHEN COUNT ( * ) * COUNT ( * ) THEN NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + + 52 * + COALESCE ( + 6, 63 - 50 )
----
312

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

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

query I rowsort
SELECT ALL - 90 * + 68
----
-6120

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

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

query I rowsort
SELECT ALL 19 * + 48
----
912

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1333
SELECT DISTINCT - CASE + + MIN( ALL - 98 ) WHEN + ( - + 84 ) + + COUNT( * ) THEN CAST( NULL AS SIGNED ) WHEN COUNT( * ) - 81 THEN COUNT( * ) * - 7 - 36 * - 27 END + - CASE CAST( + 35 AS SIGNED ) WHEN COUNT( * ) * COUNT( * ) THEN NULL ELSE 66 * - 5 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1333
SELECT DISTINCT - CASE + + MIN ( ALL - 98 ) WHEN + ( - + 84 ) + + COUNT ( * ) THEN CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) - 81 THEN COUNT ( * ) * - 7 - 36 * - 27 END + - CASE CAST ( + 35 AS INTEGER ) WHEN COUNT ( * ) * COUNT ( * ) THEN NULL ELSE 66 * - 5 END col0
----
NULL

query I rowsort
SELECT 27 + + 89 * + 8 AS col1
----
739

query I rowsort
SELECT 69 * - + 90 AS col1
----
-6210

onlyif mysql # aggregate syntax: 
query I rowsort label-1336
SELECT ALL + 27 + + ( + + 24 ) * + 93 - + COUNT( ALL 28 )
----
2258

skipif mysql # not compatible
query I rowsort label-1336
SELECT ALL + 27 + + ( + + 24 ) * + 93 - + COUNT ( ALL 28 )
----
2258

query II rowsort
SELECT 6 AS col2, 47 AS col0
----
6
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1338
SELECT ALL + 18 + CASE - - 33 WHEN - SUM( ALL - + 54 ) + 99 THEN NULL ELSE + 70 END
----
88

skipif mysql # not compatible
query I rowsort label-1338
SELECT ALL + 18 + CASE - - 33 WHEN - SUM ( ALL - + 54 ) + 99 THEN NULL ELSE + 70 END
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1339
SELECT DISTINCT ( - CAST( CAST( + + CASE + - 23 WHEN - CASE COUNT( * ) WHEN 60 / ( - 38 ) THEN NULL ELSE + 78 END THEN + 7 * 45 + 7 WHEN - 42 / 10 THEN CASE - ( + ( 97 ) ) WHEN - 85 + 39 THEN NULL WHEN - 23 * - ( - 72 * 9 ) THEN NULL WHEN - ( - 28 ) THEN 65 * 72 END END AS SIGNED ) AS SIGNED ) ) + 84 * + NULLIF ( 31, 47 + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1339
SELECT DISTINCT ( - CAST ( CAST ( + + CASE + - 23 WHEN - CASE COUNT ( * ) WHEN 60 / ( - 38 ) THEN NULL ELSE + 78 END THEN + 7 * 45 + 7 WHEN - 42 / 10 THEN CASE - ( + ( 97 ) ) WHEN - 85 + 39 THEN NULL WHEN - 23 * - ( - 72 * 9 ) THEN NULL WHEN - ( - 28 ) THEN 65 * 72 END END AS INTEGER ) AS INTEGER ) ) + 84 * + NULLIF ( 31, 47 + COUNT ( * ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1340
SELECT ALL - 55 DIV + 60
----
0

skipif mysql # not compatible
query I rowsort label-1340
SELECT ALL - 55 / + 60
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1341
SELECT 59 DIV 88
----
0

skipif mysql # not compatible
query I rowsort label-1341
SELECT 59 / 88
----
0

query I rowsort
SELECT DISTINCT - 46 + - + 78
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-1343
SELECT ALL + 82 + + COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-1343
SELECT ALL + 82 + + COUNT ( * )
----
83

query II rowsort
SELECT ALL 94 * 30 * 56 AS col0, - 84
----
157920
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-1345
SELECT ALL - 55 DIV - 90
----
0

skipif mysql # not compatible
query I rowsort label-1345
SELECT ALL - 55 / - 90
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1346
SELECT 49 + + 75 - - - CASE + + 90 WHEN SUM( 45 ) THEN NULL WHEN 35 THEN 78 WHEN - 68 THEN NULL ELSE NULL END / - ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1346
SELECT 49 + + 75 - - - CASE + + 90 WHEN SUM ( 45 ) THEN NULL WHEN 35 THEN 78 WHEN - 68 THEN NULL ELSE NULL END / - ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT - 37 * 13 AS col0
----
-481

query I rowsort
SELECT ALL + - 80 + 79 + - 56 AS col2
----
-57

query I rowsort
SELECT ALL - - 17 * + 55
----
935

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

query II rowsort
SELECT DISTINCT - 94, 65 AS col2
----
-94
65

query I rowsort
SELECT ALL + COALESCE ( + 7, - - 42 * + 34 * - 33 + 68 ) AS col1
----
7

query I rowsort
SELECT - 35 + + + ( + 46 ) + - 8 + + - 53
----
-50

query I rowsort
SELECT ALL - 91 * 73 + 67 AS col0
----
-6576

onlyif mysql # aggregate syntax: 
query I rowsort label-1355
SELECT ALL SUM( - - NULLIF ( + + 95, - ( - 91 ) ) ) - ( + COUNT( * ) ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-1355
SELECT ALL SUM ( - - NULLIF ( + + 95, - ( - 91 ) ) ) - ( + COUNT ( * ) ) AS col0
----
94

query I rowsort
SELECT - 57 * + 91
----
-5187

onlyif mysql # aggregate syntax: 
query I rowsort label-1357
SELECT - COUNT( * ) + CASE + 97 WHEN - + AVG ( ALL 3 ) THEN NULL WHEN 28 * 79 THEN NULL WHEN 23 THEN 47 / 79 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1357
SELECT - COUNT ( * ) + CASE + 97 WHEN - + AVG ( ALL 3 ) THEN NULL WHEN 28 * 79 THEN NULL WHEN 23 THEN 47 / 79 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1358
SELECT COUNT( * ) - 81 * + 80 AS col2
----
-6479

skipif mysql # not compatible
query I rowsort label-1358
SELECT COUNT ( * ) - 81 * + 80 AS col2
----
-6479

query I rowsort
SELECT - 75 * 90
----
-6750

query I rowsort
SELECT - 15 + 65 AS col1
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-1361
SELECT ALL - 8 DIV 75
----
0

skipif mysql # not compatible
query I rowsort label-1361
SELECT ALL - 8 / 75
----
0

query I rowsort
SELECT + 24 * - 93 AS col2
----
-2232

query I rowsort
SELECT 70 + + 45 AS col0
----
115

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1365
SELECT ALL - 59 * COUNT( * ) DIV - 54 AS col1
----
1

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

query I rowsort
SELECT + 51 + 13 AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1367
SELECT ALL MIN( DISTINCT - 63 )
----
-63

skipif mysql # not compatible
query I rowsort label-1367
SELECT ALL MIN ( DISTINCT - 63 )
----
-63

query I rowsort
SELECT DISTINCT - 15 * - - 94 AS col0
----
-1410

query I rowsort
SELECT DISTINCT ( 52 ) + 36 AS col0
----
88

query I rowsort
SELECT ALL 78 + - 73
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1371
SELECT DISTINCT COALESCE ( - 77, - - CAST( NULL AS SIGNED ), MAX( CAST( - 24 AS SIGNED ) ) + - COALESCE ( + 51, 54 * + 19 ) * 37 ) + + 18 * 69
----
1165

skipif mysql # not compatible
query I rowsort label-1371
SELECT DISTINCT COALESCE ( - 77, - - CAST ( NULL AS INTEGER ), MAX ( CAST ( - 24 AS INTEGER ) ) + - COALESCE ( + 51, 54 * + 19 ) * 37 ) + + 18 * 69
----
1165

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1373
SELECT COUNT( * ) * - ( NULLIF ( + 13, 80 * 88 - 45 ) )
----
-13

skipif mysql # not compatible
query I rowsort label-1373
SELECT COUNT ( * ) * - ( NULLIF ( + 13, 80 * 88 - 45 ) )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1374
SELECT + ( - 22 ) * + + CASE + 81 WHEN - COALESCE ( 24, + COUNT( * ), - 26 + 23 ) + 67 THEN NULL WHEN + COUNT( * ) + 9 THEN MAX( ALL 1 ) * - 25 + 66 END / - ( + 17 ) + CASE - 3 WHEN - 65 THEN NULL WHEN 90 * - 7 + 50 THEN 56 * 99 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1374
SELECT + ( - 22 ) * + + CASE + 81 WHEN - COALESCE ( 24, + COUNT ( * ), - 26 + 23 ) + 67 THEN NULL WHEN + COUNT ( * ) + 9 THEN MAX ( ALL 1 ) * - 25 + 66 END / - ( + 17 ) + CASE - 3 WHEN - 65 THEN NULL WHEN 90 * - 7 + 50 THEN 56 * 99 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1375
SELECT 69 DIV + 51 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1375
SELECT 69 / + 51 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1376
SELECT COUNT( * ) * - - ( + 3 ) * MIN( ALL + + 35 ) + + - 47
----
58

skipif mysql # not compatible
query I rowsort label-1376
SELECT COUNT ( * ) * - - ( + 3 ) * MIN ( ALL + + 35 ) + + - 47
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1377
SELECT ALL ( - 19 ) * 53 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1377
SELECT ALL ( - 19 ) * 53 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1378
SELECT ALL 85 * + - 26 * 76 + - - 47, MAX( CAST( - 57 AS SIGNED ) ) col2
----
-167913
-57

skipif mysql # not compatible
query II rowsort label-1378
SELECT ALL 85 * + - 26 * 76 + - - 47, MAX ( CAST ( - 57 AS INTEGER ) ) col2
----
-167913
-57

query I rowsort
SELECT ALL 30 + + + 0 * 0 AS col1
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-1380
SELECT ALL - COALESCE ( 82, 17 * + 1 + + 13 DIV 22 )
----
-82

skipif mysql # not compatible
query I rowsort label-1380
SELECT ALL - COALESCE ( 82, 17 * + 1 + + 13 / 22 )
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-1381
SELECT - 72 DIV 11 + - + ( - - 44 ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-1381
SELECT - 72 / 11 + - + ( - - 44 ) AS col0
----
-50

query I rowsort
SELECT 52 - 92 + - 85 AS col2
----
-125

query I rowsort
SELECT 88 * + 34
----
2992

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1385
SELECT ALL - COALESCE ( + 47, - SUM( ALL + 68 ) * + ( - 11 ) * MAX( - 85 ) ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-1385
SELECT ALL - COALESCE ( + 47, - SUM ( ALL + 68 ) * + ( - 11 ) * MAX ( - 85 ) ) AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1386
SELECT + SUM( DISTINCT + + 75 )
----
75

skipif mysql # not compatible
query I rowsort label-1386
SELECT + SUM ( DISTINCT + + 75 )
----
75

query I rowsort
SELECT 4 + + 49 + + 33 + + 79 AS col1
----
165

query I rowsort
SELECT 59 * - 10 + + 44 + - 1 - - 27 AS col1
----
-520

query I rowsort
SELECT DISTINCT 75 - + 98 AS col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT 67 + - + 99 + + COALESCE ( + 52, + 32 ) * - COUNT( ALL + 9 )
----
-84

skipif mysql # not compatible
query I rowsort label-1390
SELECT 67 + - + 99 + + COALESCE ( + 52, + 32 ) * - COUNT ( ALL + 9 )
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1391
SELECT ALL + COALESCE ( + 28, - + CASE + + 39 WHEN ( - - CAST( NULL AS SIGNED ) ) THEN NULL ELSE - NULLIF ( - COUNT( * ), - 38 * 64 + + 49 ) * 65 END, + COUNT( * ) + + 84 ) * 45
----
1260

skipif mysql # not compatible
query I rowsort label-1391
SELECT ALL + COALESCE ( + 28, - + CASE + + 39 WHEN ( - - CAST ( NULL AS INTEGER ) ) THEN NULL ELSE - NULLIF ( - COUNT ( * ), - 38 * 64 + + 49 ) * 65 END, + COUNT ( * ) + + 84 ) * 45
----
1260

onlyif mysql # aggregate syntax: 
query I rowsort label-1392
SELECT - + MIN( + 73 ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-1392
SELECT - + MIN ( + 73 ) AS col0
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1393
SELECT ALL + + 73 * - 83 col2, - CAST( NULL AS SIGNED ) / + 66 * COALESCE ( + 54, - 11 )
----
-6059
NULL

skipif mysql # not compatible
query II rowsort label-1393
SELECT ALL + + 73 * - 83 col2, - CAST ( NULL AS INTEGER ) / + 66 * COALESCE ( + 54, - 11 )
----
-6059
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1394
SELECT ALL - + COUNT( * ) * 99 + - ( - 50 )
----
-49

skipif mysql # not compatible
query I rowsort label-1394
SELECT ALL - + COUNT ( * ) * 99 + - ( - 50 )
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1395
SELECT + - ( + - 23 ) + CAST( - 14 AS SIGNED ) * + 15 DIV COUNT( * ) + COUNT( * ) AS col2
----
-186

skipif mysql # not compatible
query I rowsort label-1395
SELECT + - ( + - 23 ) + CAST ( - 14 AS INTEGER ) * + 15 / COUNT ( * ) + COUNT ( * ) AS col2
----
-186

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1396
SELECT - COUNT( * ) AS col0, CASE - 60 WHEN + MAX( ALL + 88 ) THEN NULL WHEN - COALESCE ( COUNT( * ), 98 + - 57 * ( CAST( COUNT( * ) AS DECIMAL ) + - 74 ) ) THEN - 51 END
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1396
SELECT - COUNT ( * ) AS col0, CASE - 60 WHEN + MAX ( ALL + 88 ) THEN NULL WHEN - COALESCE ( COUNT ( * ), 98 + - 57 * ( CAST ( COUNT ( * ) AS REAL ) + - 74 ) ) THEN - 51 END
----
-1
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1397
SELECT ALL - 19 * 46 * - 25 + + + COALESCE ( - 24, - 46 + - ( CAST( 66 AS SIGNED ) + 32 ) ) DIV 45 AS col0
----
21850

skipif mysql # not compatible
query I rowsort label-1397
SELECT ALL - 19 * 46 * - 25 + + + COALESCE ( - 24, - 46 + - ( CAST ( 66 AS INTEGER ) + 32 ) ) / 45 AS col0
----
21850

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1398
SELECT ALL CASE + + 86 WHEN - - CAST( + + 86 AS DECIMAL ) + + + 80 THEN 48 - 45 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1398
SELECT ALL CASE + + 86 WHEN - - CAST ( + + 86 AS REAL ) + + + 80 THEN 48 - 45 END AS col0
----
NULL

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

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

query I rowsort
SELECT ALL + + 5 + + 57 AS col0
----
62

query II rowsort
SELECT 75, 8 AS col2
----
75
8

query I rowsort
SELECT + 75 * - - 46 AS col2
----
3450

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1404
SELECT DISTINCT 31 DIV + 14 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1404
SELECT DISTINCT 31 / + 14 AS col0
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-1405
SELECT + COUNT( * ) * - 49, - 80 AS col2
----
-49
-80

skipif mysql # not compatible
query II rowsort label-1405
SELECT + COUNT ( * ) * - 49, - 80 AS col2
----
-49
-80

query I rowsort
SELECT ALL 66 * - - CASE + 68 WHEN 2 THEN NULL ELSE + + 17 * - ( + + 37 ) - 39 * 75 END * + 27
----
-6333228

onlyif mysql # aggregate syntax: 
query I rowsort label-1407
SELECT ALL 25 + 88 + + NULLIF ( COUNT( * ), - NULLIF ( 71, - 8 ) + ( 90 ) * 69 ) - + 35
----
79

skipif mysql # not compatible
query I rowsort label-1407
SELECT ALL 25 + 88 + + NULLIF ( COUNT ( * ), - NULLIF ( 71, - 8 ) + ( 90 ) * 69 ) - + 35
----
79

query I rowsort
SELECT + 30 - + ( + 81 ) AS col0
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1409
SELECT ALL COALESCE ( - 96, + - 48, + COUNT( * ) + + 47 - + - 49 * + 93 DIV - COUNT( * ) + + 28 * + ( + 47 ) )
----
-96

skipif mysql # not compatible
query I rowsort label-1409
SELECT ALL COALESCE ( - 96, + - 48, + COUNT ( * ) + + 47 - + - 49 * + 93 / - COUNT ( * ) + + 28 * + ( + 47 ) )
----
-96

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

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

query I rowsort
SELECT ALL 30 * + 61 col0
----
1830

onlyif mysql # aggregate syntax: 
query III rowsort label-1412
SELECT ( + + COUNT( * ) ) col2, + ( - 75 ) * - 11, - COALESCE ( - ( 34 ), - 69 * - COUNT( * ) + - COUNT( * ) ) AS col0
----
1
825
34

skipif mysql # not compatible
query III rowsort label-1412
SELECT ( + + COUNT ( * ) ) col2, + ( - 75 ) * - 11, - COALESCE ( - ( 34 ), - 69 * - COUNT ( * ) + - COUNT ( * ) ) AS col0
----
1
825
34

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1413
SELECT + ( 55 ) * CAST( NULL AS DECIMAL ) + 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1413
SELECT + ( 55 ) * CAST ( NULL AS REAL ) + 81 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1414
SELECT + MIN( DISTINCT + 19 )
----
19

skipif mysql # not compatible
query I rowsort label-1414
SELECT + MIN ( DISTINCT + 19 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1415
SELECT + COALESCE ( - 17, - 25, NULLIF ( + 65, + 4 * + 54 + COALESCE ( - 30 + + 67, - COUNT( - 18 ) ) * 33 ) * + 31 ) * 85 + - 80 * 21
----
-3125

skipif mysql # not compatible
query I rowsort label-1415
SELECT + COALESCE ( - 17, - 25, NULLIF ( + 65, + 4 * + 54 + COALESCE ( - 30 + + 67, - COUNT ( - 18 ) ) * 33 ) * + 31 ) * 85 + - 80 * 21
----
-3125

onlyif mysql # DIV for integer division: 
query I rowsort label-1416
SELECT COALESCE ( + + 53, - + 95 * 44, + 86 + 65 ) DIV - - 63 * 98 + 52 - 37
----
15

skipif mysql # not compatible
query I rowsort label-1416
SELECT COALESCE ( + + 53, - + 95 * 44, + 86 + 65 ) / - - 63 * 98 + 52 - 37
----
15

query I rowsort
SELECT + 29 - 4 * - 38
----
181

query I rowsort
SELECT 2 * - 42 + + - 88 + - - 57
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-1419
SELECT DISTINCT + + CASE - 42 WHEN + COUNT( * ) THEN + CASE + MIN( DISTINCT 84 ) WHEN - COUNT( * ) * 54 THEN 43 ELSE - 48 END END * + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-1419
SELECT DISTINCT + + CASE - 42 WHEN + COUNT ( * ) THEN + CASE + MIN ( DISTINCT 84 ) WHEN - COUNT ( * ) * 54 THEN 43 ELSE - 48 END END * + 93
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1420
SELECT + - 63 * - COUNT( * ) col1, + 93
----
63
93

skipif mysql # not compatible
query II rowsort label-1420
SELECT + - 63 * - COUNT ( * ) col1, + 93
----
63
93

query I rowsort
SELECT + + 52 + + + 84 + - - 97
----
233

query I rowsort
SELECT CASE - 37 WHEN 66 THEN - 84 * + 53 ELSE NULL END * + 2 + 36
----
NULL

query I rowsort
SELECT ALL - 8 * + ( - + 86 ) col2
----
688

onlyif mysql # aggregate syntax: 
query II rowsort label-1424
SELECT + 97 * 15 AS col2, 36 + NULLIF ( + - 83, + 1 * + COUNT( * ) ) - CASE WHEN NOT ( - 44 ) < NULL THEN 32 END
----
1455
NULL

skipif mysql # not compatible
query II rowsort label-1424
SELECT + 97 * 15 AS col2, 36 + NULLIF ( + - 83, + 1 * + COUNT ( * ) ) - CASE WHEN NOT ( - 44 ) < NULL THEN 32 END
----
1455
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1425
SELECT - COUNT( ALL + 90 ) * 83 * - 39 + - + 95
----
3142

skipif mysql # not compatible
query I rowsort label-1425
SELECT - COUNT ( ALL + 90 ) * 83 * - 39 + - + 95
----
3142

query I rowsort
SELECT - 37 * + 86 - + CASE WHEN NOT 14 IS NOT NULL THEN 92 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1427
SELECT ALL - 85 * - COALESCE ( - 32, + CAST( NULL AS SIGNED ) + - COALESCE ( 57, - - 61, ( 33 ) DIV 94 ) - - 4 ) + - ( CASE - 38 WHEN SUM( DISTINCT 67 ) + 47 THEN COUNT( * ) ELSE + 13 END + 67 * 35 ) * + 47
----
-113546

skipif mysql # not compatible
query I rowsort label-1427
SELECT ALL - 85 * - COALESCE ( - 32, + CAST ( NULL AS INTEGER ) + - COALESCE ( 57, - - 61, ( 33 ) / 94 ) - - 4 ) + - ( CASE - 38 WHEN SUM ( DISTINCT 67 ) + 47 THEN COUNT ( * ) ELSE + 13 END + 67 * 35 ) * + 47
----
-113546

query I rowsort
SELECT + - 11 - - ( + 64 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1429
SELECT DISTINCT + + 14 * - - COUNT( - - 75 ) * + 37 + + COUNT( * ) AS col0
----
519

skipif mysql # not compatible
query I rowsort label-1429
SELECT DISTINCT + + 14 * - - COUNT ( - - 75 ) * + 37 + + COUNT ( * ) AS col0
----
519

onlyif mysql # DIV for integer division: 
query I rowsort label-1430
SELECT ALL + 26 DIV + 34
----
0

skipif mysql # not compatible
query I rowsort label-1430
SELECT ALL + 26 / + 34
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1432
SELECT DISTINCT + - 3 + - - 83 + - + CAST( NULL AS SIGNED ) + + 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1432
SELECT DISTINCT + - 3 + - - 83 + - + CAST ( NULL AS INTEGER ) + + 8 AS col1
----
NULL

query I rowsort
SELECT + - 76 + + 87 * - 46
----
-4078

onlyif mysql # aggregate syntax: 
query I rowsort label-1434
SELECT ALL - NULLIF ( - + COUNT( * ), - 9 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1434
SELECT ALL - NULLIF ( - + COUNT ( * ), - 9 ) AS col2
----
1

query I rowsort
SELECT - 61 + + 32 AS col2
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-1436
SELECT - MAX( 5 ) - + 11 * 91 + + - MAX( ALL + 36 ) AS col0, 13 AS col0
----
-1042
13

skipif mysql # not compatible
query II rowsort label-1436
SELECT - MAX ( 5 ) - + 11 * 91 + + - MAX ( ALL + 36 ) AS col0, 13 AS col0
----
-1042
13

onlyif mysql # DIV for integer division: 
query II rowsort label-1437
SELECT - 47, - 9 * 29 DIV + 43 AS col1
----
-47
-6

skipif mysql # not compatible
query II rowsort label-1437
SELECT - 47, - 9 * 29 / + 43 AS col1
----
-47
-6

onlyif mysql # aggregate syntax: 
query III rowsort label-1438
SELECT DISTINCT - 86 + + + SUM( 23 ) col0, - 21 AS col1, - 50
----
-63
-21
-50

skipif mysql # not compatible
query III rowsort label-1438
SELECT DISTINCT - 86 + + + SUM ( 23 ) col0, - 21 AS col1, - 50
----
-63
-21
-50

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

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

query I rowsort
SELECT - 54 * - - 86 AS col0
----
-4644

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1442
SELECT ALL + 68 + - CAST( NULL AS SIGNED ) + + COUNT( * ) * COALESCE ( + 37, + 86, + 58 ) * + 22 * 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1442
SELECT ALL + 68 + - CAST ( NULL AS INTEGER ) + + COUNT ( * ) * COALESCE ( + 37, + 86, + 58 ) * + 22 * 43 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1443
SELECT - COUNT( * ) + + NULLIF ( + - MIN( - 30 ), AVG ( + 72 ) * + 37 ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-1443
SELECT - COUNT ( * ) + + NULLIF ( + - MIN ( - 30 ), AVG ( + 72 ) * + 37 ) AS col0
----
29

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1445
SELECT - CASE - ( 68 ) WHEN + 58 THEN 86 ELSE + - 8 + - 16 * 6 + - 21 DIV + 96 END + - COUNT( * )
----
103

skipif mysql # not compatible
query I rowsort label-1445
SELECT - CASE - ( 68 ) WHEN + 58 THEN 86 ELSE + - 8 + - 16 * 6 + - 21 / + 96 END + - COUNT ( * )
----
103

onlyif mysql # aggregate syntax: 
query II rowsort label-1446
SELECT ALL + 69 - - 89 + - - COUNT( * ), 29 col1
----
159
29

skipif mysql # not compatible
query II rowsort label-1446
SELECT ALL + 69 - - 89 + - - COUNT ( * ), 29 col1
----
159
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1447
SELECT - MAX( ALL - 17 ) * + + COUNT( * ) * - 7 AS col2
----
-119

skipif mysql # not compatible
query I rowsort label-1447
SELECT - MAX ( ALL - 17 ) * + + COUNT ( * ) * - 7 AS col2
----
-119

query I rowsort
SELECT - COALESCE ( - 72, + 80 ) * + 71 * - - 46
----
235152

query II rowsort
SELECT 16, COALESCE ( - 50, + 22 ) AS col1
----
16
-50

query I rowsort
SELECT + 77 + - 82 - + 53 AS col1
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1451
SELECT ALL CAST( NULL AS SIGNED ) AS col2, ( - 95 ) * + + 94 + - 9 + - - 86 col1
----
NULL
-8853

skipif mysql # not compatible
query II rowsort label-1451
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, ( - 95 ) * + + 94 + - 9 + - - 86 col1
----
NULL
-8853

query I rowsort
SELECT - 88 + + 99
----
11

query II rowsort
SELECT ALL + 13, ( + 93 ) AS col2
----
13
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1454
SELECT COALESCE ( - SUM( ALL - 63 ), - 45 DIV + 98 + + - 66, 32 * + + 77 + CAST( 65 AS SIGNED ) ) DIV 2 + CAST( 1 AS SIGNED )
----
32

skipif mysql # not compatible
query I rowsort label-1454
SELECT COALESCE ( - SUM ( ALL - 63 ), - 45 / + 98 + + - 66, 32 * + + 77 + CAST ( 65 AS INTEGER ) ) / 2 + CAST ( 1 AS INTEGER )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1455
SELECT ALL COALESCE ( + + 81, 56, COUNT( * ) ) * - 91 AS col0
----
-7371

skipif mysql # not compatible
query I rowsort label-1455
SELECT ALL COALESCE ( + + 81, 56, COUNT ( * ) ) * - 91 AS col0
----
-7371

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1457
SELECT 67 * 29 + - 2 AS col0, + COUNT( * ) * 96 + 1
----
1941
97

skipif mysql # not compatible
query II rowsort label-1457
SELECT 67 * 29 + - 2 AS col0, + COUNT ( * ) * 96 + 1
----
1941
97

query II rowsort
SELECT ALL - 38, 13 * - 53 + + - 35 AS col0
----
-38
-724

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1459
SELECT + ( CAST( + 79 AS SIGNED ) )
----
79

skipif mysql # not compatible
query I rowsort label-1459
SELECT + ( CAST ( + 79 AS INTEGER ) )
----
79

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1460
SELECT 97 DIV ( - + CAST( 8 AS SIGNED ) )
----
-12

skipif mysql # not compatible
query I rowsort label-1460
SELECT 97 / ( - + CAST ( 8 AS INTEGER ) )
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-1461
SELECT - 54 + + - 81 DIV - + 70 + - 89
----
-142

skipif mysql # not compatible
query I rowsort label-1461
SELECT - 54 + + - 81 / - + 70 + - 89
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-1462
SELECT 76 * - + MAX( ALL + - 29 ) * COUNT( * ) + + 62 * + 34 + + 70 * 97 + - 98 * 31 AS col2
----
8064

skipif mysql # not compatible
query I rowsort label-1462
SELECT 76 * - + MAX ( ALL + - 29 ) * COUNT ( * ) + + 62 * + 34 + + 70 * 97 + - 98 * 31 AS col2
----
8064

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

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

query I rowsort
SELECT - 50 + - - 81
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1465
SELECT 15 * + - 41 + - 85 + + 41 * - + 46 + MIN( 21 ) * 86 + 20 * COUNT( * )
----
-760

skipif mysql # not compatible
query I rowsort label-1465
SELECT 15 * + - 41 + - 85 + + 41 * - + 46 + MIN ( 21 ) * 86 + 20 * COUNT ( * )
----
-760

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1467
SELECT - - 74 * + + 28 + + - SUM( DISTINCT + 75 ) * - 8 * - COUNT( ALL 96 )
----
1472

skipif mysql # not compatible
query I rowsort label-1467
SELECT - - 74 * + + 28 + + - SUM ( DISTINCT + 75 ) * - 8 * - COUNT ( ALL 96 )
----
1472

query I rowsort
SELECT ALL + 97 * 97
----
9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1469
SELECT - 70 * - CAST( 41 AS SIGNED ) AS col1
----
2870

skipif mysql # not compatible
query I rowsort label-1469
SELECT - 70 * - CAST ( 41 AS INTEGER ) AS col1
----
2870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1470
SELECT - + CASE - COUNT( * ) WHEN 40 THEN + - CAST( 88 AS SIGNED ) * + - 98 DIV - 44 + + - 28 + 61 ELSE 16 * + 85 END col0
----
-1360

skipif mysql # not compatible
query I rowsort label-1470
SELECT - + CASE - COUNT ( * ) WHEN 40 THEN + - CAST ( 88 AS INTEGER ) * + - 98 / - 44 + + - 28 + 61 ELSE 16 * + 85 END col0
----
-1360

onlyif mysql # aggregate syntax: 
query I rowsort label-1471
SELECT ALL - CASE + 96 WHEN + - 73 THEN - 66 * + 82 - - - COUNT( * ) * + - COUNT( * ) * + 13 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1471
SELECT ALL - CASE + 96 WHEN + - 73 THEN - 66 * + 82 - - - COUNT ( * ) * + - COUNT ( * ) * + 13 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1472
SELECT ALL 27 * + COUNT( * ) + - 68 DIV + 55 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-1472
SELECT ALL 27 * + COUNT ( * ) + - 68 / + 55 AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1473
SELECT DISTINCT - COUNT( ALL - 17 ) + 4 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-1473
SELECT DISTINCT - COUNT ( ALL - 17 ) + 4 AS col2
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1475
SELECT ALL 49 + + MIN( 17 )
----
66

skipif mysql # not compatible
query I rowsort label-1475
SELECT ALL 49 + + MIN ( 17 )
----
66

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1477
SELECT ALL NULLIF ( - 25, + 84 - - COUNT( * ) * - + 55 * + 29 + - CASE - COUNT( * ) WHEN 5 / + 17 THEN - 24 END ) - COALESCE ( 81, + ( 13 ), + 86 * CASE 54 WHEN 54 + 27 * 32 THEN - 70 + 65 * 28 WHEN 23 / 21 + COUNT( * ) THEN + MIN( - 1 ) END ) AS col2
----
-106

skipif mysql # not compatible
query I rowsort label-1477
SELECT ALL NULLIF ( - 25, + 84 - - COUNT ( * ) * - + 55 * + 29 + - CASE - COUNT ( * ) WHEN 5 / + 17 THEN - 24 END ) - COALESCE ( 81, + ( 13 ), + 86 * CASE 54 WHEN 54 + 27 * 32 THEN - 70 + 65 * 28 WHEN 23 / 21 + COUNT ( * ) THEN + MIN ( - 1 ) END ) AS col2
----
-106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1478
SELECT ALL - COUNT( * ) DIV - - 46 col1
----
0

skipif mysql # not compatible
query I rowsort label-1478
SELECT ALL - COUNT ( * ) / - - 46 col1
----
0

query I rowsort
SELECT 43 - - 92
----
135

query I rowsort
SELECT 88 * - 3 AS col2
----
-264

query I rowsort
SELECT DISTINCT - 10 * 52 * 16 AS col0
----
-8320

onlyif mysql # DIV for integer division: 
query I rowsort label-1482
SELECT 68 DIV + 82 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1482
SELECT 68 / + 82 AS col2
----
0

query I rowsort
SELECT 4 + - + CASE + + 28 WHEN + 91 THEN 76 WHEN + + ( 18 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1484
SELECT DISTINCT - COUNT( - - 96 ) * + - 31
----
31

skipif mysql # not compatible
query I rowsort label-1484
SELECT DISTINCT - COUNT ( - - 96 ) * + - 31
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1485
SELECT ALL + 38 * - 92 * - - 53 * COUNT( * ) * 31, 0 DIV 87 AS col2
----
-5743928
0

skipif mysql # not compatible
query II rowsort label-1485
SELECT ALL + 38 * - 92 * - - 53 * COUNT ( * ) * 31, 0 / 87 AS col2
----
-5743928
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1486
SELECT 78 * - 38 * - COALESCE ( + SUM( DISTINCT + 73 ), 9 * + 50 )
----
216372

skipif mysql # not compatible
query I rowsort label-1486
SELECT 78 * - 38 * - COALESCE ( + SUM ( DISTINCT + 73 ), 9 * + 50 )
----
216372

query II rowsort
SELECT DISTINCT 6 * + 69 AS col0, - 7 * 60 AS col2
----
414
-420

query I rowsort
SELECT 87 - - 23 AS col0
----
110

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1490
SELECT 97 - + 2 DIV COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-1490
SELECT 97 - + 2 / COUNT ( * )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1491
SELECT ALL + COUNT( * ) * + NULLIF ( - 52, COALESCE ( - 23, + 50, - + ( 35 ) * - 42 + + 76 ) )
----
-52

skipif mysql # not compatible
query I rowsort label-1491
SELECT ALL + COUNT ( * ) * + NULLIF ( - 52, COALESCE ( - 23, + 50, - + ( 35 ) * - 42 + + 76 ) )
----
-52

query I rowsort
SELECT 3 * + 52
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-1493
SELECT ( + COUNT( * ) ) * + CASE + ( - ( + + 41 ) ) WHEN - ( MAX( ALL + 19 ) ) THEN 49 END + 53 + - ( - 21 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1493
SELECT ( + COUNT ( * ) ) * + CASE + ( - ( + + 41 ) ) WHEN - ( MAX ( ALL + 19 ) ) THEN 49 END + 53 + - ( - 21 ) AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1495
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - + COALESCE ( 90, 20 ), + 72 AS col1
----
NULL
72

skipif mysql # not compatible
query II rowsort label-1495
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - + COALESCE ( 90, 20 ), + 72 AS col1
----
NULL
72

query I rowsort
SELECT ALL + - 66 + + + 46 + 83
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1497
SELECT ALL - 92 + + 17 + + COUNT( * ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-1497
SELECT ALL - 92 + + 17 + + COUNT ( * ) AS col0
----
-74

query II rowsort
SELECT - 7 * - + 72 + + 57 + + - 61 AS col0, 80 + - 91 AS col2
----
500
-11

query II rowsort
SELECT DISTINCT - 42 + + 21 AS col0, 95
----
-21
95

query I rowsort
SELECT ALL - 31 * 10 AS col0
----
-310

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1501
SELECT DISTINCT + CASE - CAST( NULL AS SIGNED ) WHEN - - 45 THEN NULL WHEN COUNT( * ) * CAST( + - COUNT( * ) AS SIGNED ) + - COUNT( 77 ) THEN - 69 END + + 99 * 28
----
NULL

skipif mysql # not compatible
query I rowsort label-1501
SELECT DISTINCT + CASE - CAST ( NULL AS INTEGER ) WHEN - - 45 THEN NULL WHEN COUNT ( * ) * CAST ( + - COUNT ( * ) AS INTEGER ) + - COUNT ( 77 ) THEN - 69 END + + 99 * 28
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1504
SELECT ALL - 74 - + 70 * - - CAST( NULL AS DECIMAL ) + - ( 12 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1504
SELECT ALL - 74 - + 70 * - - CAST ( NULL AS REAL ) + - ( 12 ) col0
----
NULL

query I rowsort
SELECT 70 - + + 78 AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1506
SELECT + ( 88 ) * + + NULLIF ( + 39, - - 29 ) * - 89 + + - COALESCE ( - NULLIF ( - 65, 85 ), 14 * 72 ) + COUNT( * ) AS col0
----
-305512

skipif mysql # not compatible
query I rowsort label-1506
SELECT + ( 88 ) * + + NULLIF ( + 39, - - 29 ) * - 89 + + - COALESCE ( - NULLIF ( - 65, 85 ), 14 * 72 ) + COUNT ( * ) AS col0
----
-305512

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1508
SELECT 43 + + + 13 * - + 39 - - COALESCE ( - 74, - ( - + CAST( NULLIF ( + 27, + SUM( ALL + ( + 32 ) ) ) AS SIGNED ) ) * COUNT( * ) ) * 89
----
-7050

skipif mysql # not compatible
query I rowsort label-1508
SELECT 43 + + + 13 * - + 39 - - COALESCE ( - 74, - ( - + CAST ( NULLIF ( + 27, + SUM ( ALL + ( + 32 ) ) ) AS INTEGER ) ) * COUNT ( * ) ) * 89
----
-7050

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

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

query I rowsort
SELECT ALL 66 * - 1
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1511
SELECT 53 + + + 73 + + - COUNT( * ) AS col2, COUNT( * ) * - - CAST( - CASE - 34 WHEN + COUNT( * ) THEN NULL WHEN + AVG ( DISTINCT + 18 ) + + 81 THEN + MAX( DISTINCT - 31 ) ELSE 85 * - NULLIF ( - 10, 44 / 73 ) END AS SIGNED ) AS col2
----
125
-850

skipif mysql # not compatible
query II rowsort label-1511
SELECT 53 + + + 73 + + - COUNT ( * ) AS col2, COUNT ( * ) * - - CAST ( - CASE - 34 WHEN + COUNT ( * ) THEN NULL WHEN + AVG ( DISTINCT + 18 ) + + 81 THEN + MAX ( DISTINCT - 31 ) ELSE 85 * - NULLIF ( - 10, 44 / 73 ) END AS INTEGER ) AS col2
----
125
-850

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1513
SELECT MIN( + 87 ) + 26 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1513
SELECT MIN ( + 87 ) + 26 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1514
SELECT ( MAX( DISTINCT - 37 ) ) + - 8
----
-45

skipif mysql # not compatible
query I rowsort label-1514
SELECT ( MAX ( DISTINCT - 37 ) ) + - 8
----
-45

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

skipif mysql # not compatible
query I rowsort label-1515
SELECT - SUM ( ALL - 74 )
----
74

query I rowsort
SELECT 72 * 38
----
2736

query I rowsort
SELECT DISTINCT 65 * + 49
----
3185

query II rowsort
SELECT ALL 77 AS col0, + 90 AS col2
----
77
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1519
SELECT + MIN( - - 89 ) + - 31
----
58

skipif mysql # not compatible
query I rowsort label-1519
SELECT + MIN ( - - 89 ) + - 31
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1520
SELECT + 11 / + CAST( NULL AS SIGNED ) * - + 27 AS col2, - 97 AS col1
----
NULL
-97

skipif mysql # not compatible
query II rowsort label-1520
SELECT + 11 / + CAST ( NULL AS INTEGER ) * - + 27 AS col2, - 97 AS col1
----
NULL
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1521
SELECT - 70 + - + 18 + + 41 * - + CAST( NULL AS SIGNED ) + - - 25 * - COALESCE ( - 91, COALESCE ( - - 2, + 37 + COUNT( ALL 38 ), 46, 71 ) - - 78 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1521
SELECT - 70 + - + 18 + + 41 * - + CAST ( NULL AS INTEGER ) + - - 25 * - COALESCE ( - 91, COALESCE ( - - 2, + 37 + COUNT ( ALL 38 ), 46, 71 ) - - 78 ) AS col2
----
NULL

query II rowsort
SELECT - 87, + ( + 28 ) AS col0
----
-87
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1523
SELECT + CAST( AVG ( 8 ) AS SIGNED ) + CAST( + CASE + COUNT( * ) WHEN 29 * COUNT( * ) THEN + - 8 ELSE CAST( NULL AS SIGNED ) * - COUNT( * ) END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1523
SELECT + CAST ( AVG ( 8 ) AS INTEGER ) + CAST ( + CASE + COUNT ( * ) WHEN 29 * COUNT ( * ) THEN + - 8 ELSE CAST ( NULL AS INTEGER ) * - COUNT ( * ) END AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1524
SELECT + MIN( 34 ) * - + CAST( NULL AS SIGNED ) AS col0, 96
----
NULL
96

skipif mysql # not compatible
query II rowsort label-1524
SELECT + MIN ( 34 ) * - + CAST ( NULL AS INTEGER ) AS col0, 96
----
NULL
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1525
SELECT - 64 + + - CAST( - 65 AS SIGNED ) - 50 + - 42 * + 82
----
-3493

skipif mysql # not compatible
query I rowsort label-1525
SELECT - 64 + + - CAST ( - 65 AS INTEGER ) - 50 + - 42 * + 82
----
-3493

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1526
SELECT - + 60 DIV - 43 + COUNT( * ) - MAX( DISTINCT 9 )
----
-7

skipif mysql # not compatible
query I rowsort label-1526
SELECT - + 60 / - 43 + COUNT ( * ) - MAX ( DISTINCT 9 )
----
-7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1527
SELECT DISTINCT + + 34 * + - 1 + NULLIF ( + ( NULLIF ( 73, - CAST( COUNT( * ) AS DECIMAL ) ) ), 60 )
----
39

skipif mysql # not compatible
query I rowsort label-1527
SELECT DISTINCT + + 34 * + - 1 + NULLIF ( + ( NULLIF ( 73, - CAST ( COUNT ( * ) AS REAL ) ) ), 60 )
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1528
SELECT - 19 * - 77 * + + COALESCE ( - ( COUNT( DISTINCT + CAST( + 1 AS SIGNED ) ) ), - + NULLIF ( - 99, + 83 - - 96 * + COALESCE ( 81 * - 17, NULLIF ( 33, + 80 * - 60 ) ) ) ) + CAST( 2 AS SIGNED ) * - MIN( DISTINCT + 60 + + 27 )
----
-1637

skipif mysql # not compatible
query I rowsort label-1528
SELECT - 19 * - 77 * + + COALESCE ( - ( COUNT ( DISTINCT + CAST ( + 1 AS INTEGER ) ) ), - + NULLIF ( - 99, + 83 - - 96 * + COALESCE ( 81 * - 17, NULLIF ( 33, + 80 * - 60 ) ) ) ) + CAST ( 2 AS INTEGER ) * - MIN ( DISTINCT + 60 + + 27 )
----
-1637

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1529
SELECT DISTINCT + 8 * MAX( ALL 62 ) + - 70 + NULLIF ( + - CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ), - 21 + + COALESCE ( + + 58, + COUNT( * ) / - COALESCE ( - 98, + 27 * 70 + - 34 * + COALESCE ( NULLIF ( COUNT( * ), + 20 ) + 81, 78 + 24 * 32, SUM( ALL 80 ) + - 23 ), 54 * 51 ) + - 79, 20 ) ) * - 90 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1529
SELECT DISTINCT + 8 * MAX ( ALL 62 ) + - 70 + NULLIF ( + - CAST ( - CAST ( NULL AS REAL ) AS INTEGER ), - 21 + + COALESCE ( + + 58, + COUNT ( * ) / - COALESCE ( - 98, + 27 * 70 + - 34 * + COALESCE ( NULLIF ( COUNT ( * ), + 20 ) + 81, 78 + 24 * 32, SUM ( ALL 80 ) + - 23 ), 54 * 51 ) + - 79, 20 ) ) * - 90 col0
----
NULL

query I rowsort
SELECT + + 52 col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1531
SELECT ALL + + NULLIF ( + + ( - 91 ), + + ( + 72 ) + NULLIF ( - + 62, - 1 ) / 40 * - 82 ) * + 76 + COUNT( * )
----
-6915

skipif mysql # not compatible
query I rowsort label-1531
SELECT ALL + + NULLIF ( + + ( - 91 ), + + ( + 72 ) + NULLIF ( - + 62, - 1 ) / 40 * - 82 ) * + 76 + COUNT ( * )
----
-6915

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1532
SELECT DISTINCT - 2 * + CASE + + CASE - ( + - 65 ) WHEN + - NULLIF ( + 25, + - 75 * - 2 + 80 ) / 39 THEN + 33 ELSE 40 END WHEN 83 THEN - CAST( NULL AS SIGNED ) / - 73 + 97 WHEN + CASE - NULLIF ( 33, + COUNT( + CAST( 17 AS SIGNED ) ) ) WHEN - 64 THEN 31 ELSE + CASE COALESCE ( + 89, 54 ) WHEN CASE - 2 WHEN 52 THEN CASE 55 WHEN COUNT( DISTINCT ( - 9 ) ) THEN NULL WHEN 22 + ( - 54 ) THEN 58 WHEN - 71 + 87 THEN NULL END END THEN COALESCE ( - CASE + ( 83 ) WHEN + 76 / + 5 THEN + 17 WHEN - 41 THEN - COUNT( DISTINCT 65 ) ELSE 70 END, - 22 ) WHEN 1 * SUM( ALL COALESCE ( 61, 81 * - 50 ) * 17 ) THEN + 25 ELSE 28 END END THEN 9 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1532
SELECT DISTINCT - 2 * + CASE + + CASE - ( + - 65 ) WHEN + - NULLIF ( + 25, + - 75 * - 2 + 80 ) / 39 THEN + 33 ELSE 40 END WHEN 83 THEN - CAST ( NULL AS INTEGER ) / - 73 + 97 WHEN + CASE - NULLIF ( 33, + COUNT ( + CAST ( 17 AS INTEGER ) ) ) WHEN - 64 THEN 31 ELSE + CASE COALESCE ( + 89, 54 ) WHEN CASE - 2 WHEN 52 THEN CASE 55 WHEN COUNT ( DISTINCT ( - 9 ) ) THEN NULL WHEN 22 + ( - 54 ) THEN 58 WHEN - 71 + 87 THEN NULL END END THEN COALESCE ( - CASE + ( 83 ) WHEN + 76 / + 5 THEN + 17 WHEN - 41 THEN - COUNT ( DISTINCT 65 ) ELSE 70 END, - 22 ) WHEN 1 * SUM ( ALL COALESCE ( 61, 81 * - 50 ) * 17 ) THEN + 25 ELSE 28 END END THEN 9 END
----
NULL

query I rowsort
SELECT ALL + + CASE 30 WHEN - + 96 * - ( + 13 ) THEN NULL WHEN 29 / + 98 + + 97 THEN 11 * - 42 WHEN + 16 THEN - 43 WHEN + AVG ( ALL + ( - 95 ) ) * - 29 + 64 * + 80 THEN NULL ELSE + 31 END
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1534
SELECT SUM( + + 95 )
----
95

skipif mysql # not compatible
query I rowsort label-1534
SELECT SUM ( + + 95 )
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1535
SELECT + 42 * + + MIN( DISTINCT - 22 ) * + - 72 * - - 76 + 92 DIV 75
----
5056129

skipif mysql # not compatible
query I rowsort label-1535
SELECT + 42 * + + MIN ( DISTINCT - 22 ) * + - 72 * - - 76 + 92 / 75
----
5056129

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1536
SELECT CASE + + 59 WHEN - - COUNT( * ) THEN + 25 + NULLIF ( + 94, - + 83 + + - 32 + 57 * + ( 60 ) DIV 56 ) + - COUNT( * ) ELSE - 54 DIV + 20 END AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-1536
SELECT CASE + + 59 WHEN - - COUNT ( * ) THEN + 25 + NULLIF ( + 94, - + 83 + + - 32 + 57 * + ( 60 ) / 56 ) + - COUNT ( * ) ELSE - 54 / + 20 END AS col0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1537
SELECT ALL + COUNT( * ) * - 42 * 45 - 2 + + - CAST( NULL AS SIGNED ), - 95 + + COUNT( * ) + + 70 * - + 51 * - SUM( CASE ( 26 ) WHEN 13 THEN NULL WHEN 89 THEN NULL WHEN 58 * - 86 THEN 6 END ) + + COALESCE ( COUNT( - 40 ), + CAST( NULL AS DECIMAL ) + + 40 ) * 90
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1537
SELECT ALL + COUNT ( * ) * - 42 * 45 - 2 + + - CAST ( NULL AS INTEGER ), - 95 + + COUNT ( * ) + + 70 * - + 51 * - SUM ( CASE ( 26 ) WHEN 13 THEN NULL WHEN 89 THEN NULL WHEN 58 * - 86 THEN 6 END ) + + COALESCE ( COUNT ( - 40 ), + CAST ( NULL AS REAL ) + + 40 ) * 90
----
NULL
NULL

query II rowsort
SELECT ALL + - 32, 70 * 80 AS col0
----
-32
5600

onlyif mysql # aggregate syntax: 
query I rowsort label-1539
SELECT ALL 45 * + MIN( - 14 ) - + - ( - COUNT( * ) )
----
-631

skipif mysql # not compatible
query I rowsort label-1539
SELECT ALL 45 * + MIN ( - 14 ) - + - ( - COUNT ( * ) )
----
-631

query I rowsort
SELECT ALL 65 * 87 - 11 AS col0
----
5644

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1543
SELECT + MIN( ALL - 13 ) * 47 * - - 76
----
-46436

skipif mysql # not compatible
query I rowsort label-1543
SELECT + MIN ( ALL - 13 ) * 47 * - - 76
----
-46436

onlyif mysql # aggregate syntax: 
query II rowsort label-1544
SELECT COUNT( * ) AS col2, 82 - 49
----
1
33

skipif mysql # not compatible
query II rowsort label-1544
SELECT COUNT ( * ) AS col2, 82 - 49
----
1
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1545
SELECT COUNT( * ), 91 DIV + 66 + - 93 + + 47 AS col0
----
1
-45

skipif mysql # not compatible
query II rowsort label-1545
SELECT COUNT ( * ), 91 / + 66 + - 93 + + 47 AS col0
----
1
-45

query I rowsort
SELECT - 66 * + 54
----
-3564

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1547
SELECT - NULLIF ( COALESCE ( + 18, - 21 ), + + COUNT( * ) ) * 36 * 77 DIV NULLIF ( + COUNT( * ), COUNT( * ) + 54 ) * + COUNT( * ) + NULLIF ( - 50, - 0 + - 13 DIV + 39 ) AS col0
----
-49946

skipif mysql # not compatible
query I rowsort label-1547
SELECT - NULLIF ( COALESCE ( + 18, - 21 ), + + COUNT ( * ) ) * 36 * 77 / NULLIF ( + COUNT ( * ), COUNT ( * ) + 54 ) * + COUNT ( * ) + NULLIF ( - 50, - 0 + - 13 / + 39 ) AS col0
----
-49946

onlyif mysql # aggregate syntax: 
query I rowsort label-1548
SELECT - SUM( 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-1548
SELECT - SUM ( 24 )
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1549
SELECT DISTINCT SUM( DISTINCT - 24 ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1549
SELECT DISTINCT SUM ( DISTINCT - 24 ) / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1550
SELECT ALL 12 + - ( + ( - COUNT( * ) ) )
----
13

skipif mysql # not compatible
query I rowsort label-1550
SELECT ALL 12 + - ( + ( - COUNT ( * ) ) )
----
13

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

query II rowsort
SELECT 62 col0, + 44 AS col0
----
62
44

onlyif mysql # aggregate syntax: 
query II rowsort label-1553
SELECT DISTINCT COUNT( * ) + COUNT( * ) + - - 70 * + + 93 AS col2, + 19 AS col0
----
6512
19

skipif mysql # not compatible
query II rowsort label-1553
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) + - - 70 * + + 93 AS col2, + 19 AS col0
----
6512
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1554
SELECT - 82 - + 53 * - + COUNT( * ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-1554
SELECT - 82 - + 53 * - + COUNT ( * ) AS col1
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1555
SELECT - CAST( 12 AS SIGNED ) + + 1 AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-1555
SELECT - CAST ( 12 AS INTEGER ) + + 1 AS col0
----
-11

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1557
SELECT + COUNT( * ) + 75 * + 86 * 95
----
612751

skipif mysql # not compatible
query I rowsort label-1557
SELECT + COUNT ( * ) + 75 * + 86 * 95
----
612751

onlyif mysql # DIV for integer division: 
query I rowsort label-1558
SELECT + 40 * 35 DIV - 14 col2
----
-100

skipif mysql # not compatible
query I rowsort label-1558
SELECT + 40 * 35 / - 14 col2
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-1559
SELECT ALL 46 + - - CASE COUNT( * ) WHEN + COUNT( - 12 ) * - 55 * + 31 + - + 1 + 41 * + 86 THEN NULL WHEN - NULLIF ( - 72, 70 ) * - COUNT( * ) THEN NULL WHEN - 63 * + 9 THEN 42 + + 65 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1559
SELECT ALL 46 + - - CASE COUNT ( * ) WHEN + COUNT ( - 12 ) * - 55 * + 31 + - + 1 + 41 * + 86 THEN NULL WHEN - NULLIF ( - 72, 70 ) * - COUNT ( * ) THEN NULL WHEN - 63 * + 9 THEN 42 + + 65 END AS col0
----
NULL

query I rowsort
SELECT ALL - - 95 * 84 + - - 81
----
8061

query I rowsort
SELECT ALL + 56 + + 20 col2
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1562
SELECT + ( + 69 ) - + 16 - COALESCE ( + - 48, + CAST( NULL AS SIGNED ) ) AS col2
----
101

skipif mysql # not compatible
query I rowsort label-1562
SELECT + ( + 69 ) - + 16 - COALESCE ( + - 48, + CAST ( NULL AS INTEGER ) ) AS col2
----
101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1563
SELECT ALL 30 * - + 97 DIV - COUNT( * ) AS col0
----
2910

skipif mysql # not compatible
query I rowsort label-1563
SELECT ALL 30 * - + 97 / - COUNT ( * ) AS col0
----
2910

query I rowsort
SELECT + 74 + - 56 * 97 AS col0
----
-5358

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1565
SELECT DISTINCT + - NULLIF ( - 40, + CAST( NULL AS SIGNED ) * - 66 + 10 + - - 68 - - + 61 - + SUM( DISTINCT - 93 ) ), COUNT( * ) AS col1
----
40
1

skipif mysql # not compatible
query II rowsort label-1565
SELECT DISTINCT + - NULLIF ( - 40, + CAST ( NULL AS INTEGER ) * - 66 + 10 + - - 68 - - + 61 - + SUM ( DISTINCT - 93 ) ), COUNT ( * ) AS col1
----
40
1

query I rowsort
SELECT ALL + ( 60 ) col1
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-1567
SELECT 0 AS col2, SUM( - + 79 ) * MIN( + 24 ) col0
----
0
-1896

skipif mysql # not compatible
query II rowsort label-1567
SELECT 0 AS col2, SUM ( - + 79 ) * MIN ( + 24 ) col0
----
0
-1896

query II rowsort
SELECT DISTINCT + + 71, - 34 * 67 AS col1
----
71
-2278

query I rowsort
SELECT + + 34 + + + 47 + 50 AS col2
----
131

query I rowsort
SELECT + - NULLIF ( - 11, - 70 + - + 61 )
----
11

query I rowsort
SELECT - - 54 - + 66 - 65 * 90
----
-5862

query I rowsort
SELECT + 63 * + 92
----
5796

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

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

query II rowsort
SELECT + 86, + 75 AS col2
----
86
75

query I rowsort
SELECT ALL - 57 * - 60
----
3420

query I rowsort
SELECT ALL 60 * + 75
----
4500

onlyif mysql # DIV for integer division: 
query II rowsort label-1577
SELECT - + 77 * 12 AS col1, + 70 DIV + 59 AS col1
----
-924
1

skipif mysql # not compatible
query II rowsort label-1577
SELECT - + 77 * 12 AS col1, + 70 / + 59 AS col1
----
-924
1

query I rowsort
SELECT + ( - + NULLIF ( 0, + 78 ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1579
SELECT ALL - CAST( + + 94 AS SIGNED ) * - 1 + - SUM( - 15 ) AS col2
----
109

skipif mysql # not compatible
query I rowsort label-1579
SELECT ALL - CAST ( + + 94 AS INTEGER ) * - 1 + - SUM ( - 15 ) AS col2
----
109

query I rowsort
SELECT + - 91 + - + 73 + - 52 col2
----
-216

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1583
SELECT + COUNT( * ) * + - 13 + - + 16
----
-29

skipif mysql # not compatible
query I rowsort label-1583
SELECT + COUNT ( * ) * + - 13 + - + 16
----
-29

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

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

query II rowsort
SELECT ALL + ( - - 38 ) AS col2, 12 AS col1
----
38
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1586
SELECT + COUNT( * ) * 34 + - ( - - 22 ) * + 65
----
-1396

skipif mysql # not compatible
query I rowsort label-1586
SELECT + COUNT ( * ) * 34 + - ( - - 22 ) * + 65
----
-1396

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

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

query I rowsort
SELECT NULLIF ( + 62, 82 + - 92 )
----
62

query II rowsort
SELECT - 42 + + 16, - 61 * 33 AS col0
----
-26
-2013

query I rowsort
SELECT - NULLIF ( + 17, 3 ) + 95 + + + 78
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1591
SELECT 97 + - 94 DIV - COUNT( ALL + 87 ) - - COUNT( * ) AS col2, CAST( + COUNT( * ) AS SIGNED ) * - CAST( NULL AS SIGNED ) + - - 1
----
192
NULL

skipif mysql # not compatible
query II rowsort label-1591
SELECT 97 + - 94 / - COUNT ( ALL + 87 ) - - COUNT ( * ) AS col2, CAST ( + COUNT ( * ) AS INTEGER ) * - CAST ( NULL AS INTEGER ) + - - 1
----
192
NULL

query III rowsort
SELECT DISTINCT - 34 + - 38 AS col2, + 77 AS col0, - ( + 88 ) + - 28
----
-72
77
-116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1593
SELECT ALL + COUNT( DISTINCT - 15 ) + + 64 * 72 * - NULLIF ( - 19, + 98 / + - CAST( NULL AS SIGNED ) / - - 76 * + COALESCE ( - - 34, ( 49 ) * 39 + COUNT( * ) * 9 ) + + 86 ) + + ( + ( 44 ) )
----
87597

skipif mysql # not compatible
query I rowsort label-1593
SELECT ALL + COUNT ( DISTINCT - 15 ) + + 64 * 72 * - NULLIF ( - 19, + 98 / + - CAST ( NULL AS INTEGER ) / - - 76 * + COALESCE ( - - 34, ( 49 ) * 39 + COUNT ( * ) * 9 ) + + 86 ) + + ( + ( 44 ) )
----
87597

query I rowsort
SELECT 87 + + - 70 * - + 5 + - - 25 col0
----
462

onlyif mysql # DIV for integer division: 
query I rowsort label-1595
SELECT 97 DIV ( + ( - 50 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1595
SELECT 97 / ( + ( - 50 ) ) AS col1
----
-1

query I rowsort
SELECT NULLIF ( + - 27, - + 38 ) + - + 63
----
-90

query I rowsort
SELECT 3 * - 2 col0
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1598
SELECT ALL COALESCE ( - NULLIF ( + 93, MIN( + 33 ) + + 99 ), - + COUNT( * ) + + - COUNT( * ), + 29 + + - ( - 52 ) * - 67 + - 61 DIV + MIN( ALL - 75 + + ( 52 ) * + 66 ) ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-1598
SELECT ALL COALESCE ( - NULLIF ( + 93, MIN ( + 33 ) + + 99 ), - + COUNT ( * ) + + - COUNT ( * ), + 29 + + - ( - 52 ) * - 67 + - 61 / + MIN ( ALL - 75 + + ( 52 ) * + 66 ) ) AS col2
----
-93

query II rowsort
SELECT ALL 75 + - + 17 AS col0, 32 + - - 67 AS col1
----
58
99

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

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

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

skipif mysql # not compatible
query I rowsort label-1601
SELECT ALL - COUNT ( * ) - + COUNT ( * ) + - - 60 + - 47 AS col2
----
11

query II rowsort
SELECT DISTINCT - 11 - 33 AS col1, 59 AS col1
----
-44
59

query I rowsort
SELECT ALL 64 * + 60 + 93 + - 71 + - 15 + + - 78 * + 91
----
-3251

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1605
SELECT DISTINCT 82 * 77 DIV + + 62
----
101

skipif mysql # not compatible
query I rowsort label-1605
SELECT DISTINCT 82 * 77 / + + 62
----
101

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1607
SELECT ALL - CASE + COUNT( * ) WHEN 76 - + 48 + + 43 * - 93 THEN NULL WHEN - 88 * - 99 + - 35 * + 18 - - 26 THEN NULL ELSE + - 40 END AS col0
----
40

skipif mysql # not compatible
query I rowsort label-1607
SELECT ALL - CASE + COUNT ( * ) WHEN 76 - + 48 + + 43 * - 93 THEN NULL WHEN - 88 * - 99 + - 35 * + 18 - - 26 THEN NULL ELSE + - 40 END AS col0
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1608
SELECT + NULLIF ( - NULLIF ( + + 91, COUNT( * ) ), - 17 ) DIV COUNT( * ) + - 54 - - + 7 AS col0
----
-138

skipif mysql # not compatible
query I rowsort label-1608
SELECT + NULLIF ( - NULLIF ( + + 91, COUNT ( * ) ), - 17 ) / COUNT ( * ) + - 54 - - + 7 AS col0
----
-138

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

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

query I rowsort
SELECT DISTINCT - + 71 AS col1
----
-71

query II rowsort
SELECT 17 - ( 1 ) AS col0, - 34 AS col0
----
16
-34

query I rowsort
SELECT ( + 51 ) * + 31 AS col2
----
1581

onlyif mysql # aggregate syntax: 
query I rowsort label-1613
SELECT MAX( ALL - - 8 ) * 51 * + NULLIF ( + - 20, + + ( + - 28 ) ) * + ( + - 57 )
----
465120

skipif mysql # not compatible
query I rowsort label-1613
SELECT MAX ( ALL - - 8 ) * 51 * + NULLIF ( + - 20, + + ( + - 28 ) ) * + ( + - 57 )
----
465120

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

query II rowsort
SELECT + 51 AS col2, - 64
----
51
-64

query I rowsort
SELECT ALL - 47 + - + 75
----
-122

query I rowsort
SELECT 88 * 97 AS col2
----
8536

query II rowsort
SELECT ALL - 26 AS col1, 92
----
-26
92

query I rowsort
SELECT DISTINCT 42 + + 97 + + 1 col0
----
140

query I rowsort
SELECT ALL + 74 + + - 8 AS col0
----
66

query II rowsort
SELECT + 17 AS col0, + 22 * - 8
----
17
-176

query II rowsort
SELECT ( + 28 ) * 17 AS col2, + 88
----
476
88

query I rowsort
SELECT 23 * - 31 * + 29
----
-20677

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

query I rowsort
SELECT 13 * 75
----
975

query I rowsort
SELECT DISTINCT + NULLIF ( + 50, - + 28 ) - 27
----
23

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1628
SELECT ALL + - COUNT( * ) * + 25 * - - 80, - 50 AS col2
----
-2000
-50

skipif mysql # not compatible
query II rowsort label-1628
SELECT ALL + - COUNT ( * ) * + 25 * - - 80, - 50 AS col2
----
-2000
-50

query I rowsort
SELECT - 9 + 42 * + + 81 * - - 63
----
214317

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1630
SELECT SUM( DISTINCT - 73 ) DIV + 13
----
-5

skipif mysql # not compatible
query I rowsort label-1630
SELECT SUM ( DISTINCT - 73 ) / + 13
----
-5

query I rowsort
SELECT + ( - 24 ) * + 22
----
-528

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

query I rowsort
SELECT DISTINCT + + 23 * - 3
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1634
SELECT + 59 - 32 * + COUNT( * ) * - 81
----
2651

skipif mysql # not compatible
query I rowsort label-1634
SELECT + 59 - 32 * + COUNT ( * ) * - 81
----
2651

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

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

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

skipif mysql # not compatible
query I rowsort label-1636
SELECT MIN ( ALL - 81 )
----
-81

query I rowsort
SELECT + 34 * + 75 AS col0
----
2550

query I rowsort
SELECT 32 + - 65
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1639
SELECT DISTINCT COUNT( * ) * + 44 + + COUNT( * ) + 29 + CASE + 57 WHEN 28 THEN - 66 - + 56 * + 84 WHEN + SUM( DISTINCT + 48 ) * - COUNT( * ) THEN NULL ELSE NULL END + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-1639
SELECT DISTINCT COUNT ( * ) * + 44 + + COUNT ( * ) + 29 + CASE + 57 WHEN 28 THEN - 66 - + 56 * + 84 WHEN + SUM ( DISTINCT + 48 ) * - COUNT ( * ) THEN NULL ELSE NULL END + 94
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1640
SELECT COUNT( * ) - COALESCE ( MIN( - CAST( - 87 AS SIGNED ) ), - 9 + - + 34 * 86 + - 89 ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-1640
SELECT COUNT ( * ) - COALESCE ( MIN ( - CAST ( - 87 AS INTEGER ) ), - 9 + - + 34 * 86 + - 89 ) AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1641
SELECT CASE + + 39 WHEN + MIN( ALL - + 70 ) / + 51 + 43 THEN + + 67 * 71 * + AVG ( ALL + ( + + 71 ) ) WHEN + 51 THEN + 80 ELSE NULL END * - 47 + 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1641
SELECT CASE + + 39 WHEN + MIN ( ALL - + 70 ) / + 51 + 43 THEN + + 67 * 71 * + AVG ( ALL + ( + + 71 ) ) WHEN + 51 THEN + 80 ELSE NULL END * - 47 + 15 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 21 * + 22 * 10 + + + 80 + 95 * - 37 * + + 37
----
-125355

query I rowsort
SELECT ALL + NULLIF ( 8, - 52 )
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-1644
SELECT + 95 * + COUNT( * ) AS col0, 3 + + COUNT( * ) AS col0
----
95
4

skipif mysql # not compatible
query II rowsort label-1644
SELECT + 95 * + COUNT ( * ) AS col0, 3 + + COUNT ( * ) AS col0
----
95
4

query I rowsort
SELECT + 89 - + 81 AS col1
----
8

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1646
SELECT COALESCE ( + 40, + - 31 ) * CAST( - - 55 AS SIGNED ) + - 12 + 99 DIV 18 AS col0
----
2193

skipif mysql # not compatible
query I rowsort label-1646
SELECT COALESCE ( + 40, + - 31 ) * CAST ( - - 55 AS INTEGER ) + - 12 + 99 / 18 AS col0
----
2193

query I rowsort
SELECT + 65 * + + 21
----
1365

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT + ( - + COUNT( * ) ) + + 66 col2
----
65

skipif mysql # not compatible
query I rowsort label-1648
SELECT + ( - + COUNT ( * ) ) + + 66 col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1649
SELECT MAX( - - 26 ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-1649
SELECT MAX ( - - 26 ) AS col1
----
26

query II rowsort
SELECT ALL 23 - + + 63 AS col2, + 63 col1
----
-40
63

query II rowsort
SELECT + 29 + - 39, - 50 * - 46 AS col0
----
-10
2300

onlyif mysql # DIV for integer division: 
query I rowsort label-1652
SELECT ALL 35 DIV - 40 * - + 8 * - - 29 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1652
SELECT ALL 35 / - 40 * - + 8 * - - 29 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1653
SELECT + 5 + COUNT( * ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-1653
SELECT + 5 + COUNT ( * ) AS col1
----
6

query I rowsort
SELECT ALL + 44 * + 97 AS col0
----
4268

query I rowsort
SELECT 53 * 60 + + 62
----
3242

onlyif mysql # DIV for integer division: 
query I rowsort label-1656
SELECT ALL 87 * 52 DIV 8 AS col0
----
565

skipif mysql # not compatible
query I rowsort label-1656
SELECT ALL 87 * 52 / 8 AS col0
----
565

query I rowsort
SELECT + 99 * + 63
----
6237

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1658
SELECT - COUNT( + - 56 ) + + CAST( - 63 AS SIGNED )
----
-64

skipif mysql # not compatible
query I rowsort label-1658
SELECT - COUNT ( + - 56 ) + + CAST ( - 63 AS INTEGER )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1659
SELECT DISTINCT 15 - NULLIF ( + 31, COUNT( * ) - - + 52 * + AVG ( DISTINCT - 17 ) ) col0
----
-16

skipif mysql # not compatible
query I rowsort label-1659
SELECT DISTINCT 15 - NULLIF ( + 31, COUNT ( * ) - - + 52 * + AVG ( DISTINCT - 17 ) ) col0
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-1660
SELECT ALL + 85 * + 5, + 16 + + - COALESCE ( COUNT( * ), + COUNT( * ) * + + 83 * + 41 ) AS col2
----
425
15

skipif mysql # not compatible
query II rowsort label-1660
SELECT ALL + 85 * + 5, + 16 + + - COALESCE ( COUNT ( * ), + COUNT ( * ) * + + 83 * + 41 ) AS col2
----
425
15

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

skipif mysql # not compatible
query I rowsort label-1661
SELECT - - COUNT ( * ) + - 19 + - - 72 AS col1
----
54

query I rowsort
SELECT - - NULLIF ( 50, + 51 ) col1
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1663
SELECT - + CAST( NULL AS SIGNED ) + - ( + AVG ( - 52 ) ) + + + 29 * COUNT( * ) / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1663
SELECT - + CAST ( NULL AS INTEGER ) + - ( + AVG ( - 52 ) ) + + + 29 * COUNT ( * ) / + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1664
SELECT DISTINCT + COALESCE ( + + ( - - 49 ), + SUM( ALL + ( - 15 ) ) )
----
49

skipif mysql # not compatible
query I rowsort label-1664
SELECT DISTINCT + COALESCE ( + + ( - - 49 ), + SUM ( ALL + ( - 15 ) ) )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1665
SELECT ALL COALESCE ( NULLIF ( - + 34, - 87 - 77 + + CASE - 31 WHEN + 51 - COUNT( * ) THEN NULL ELSE - 20 + - 76 END ), + 87 * + + 57 * - - 67 + + 38 )
----
-34

skipif mysql # not compatible
query I rowsort label-1665
SELECT ALL COALESCE ( NULLIF ( - + 34, - 87 - 77 + + CASE - 31 WHEN + 51 - COUNT ( * ) THEN NULL ELSE - 20 + - 76 END ), + 87 * + + 57 * - - 67 + + 38 )
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1666
SELECT DISTINCT - CAST( - + COALESCE ( + - 20, - ( 44 ) * - 85, 48 + + - 40 ) AS SIGNED )
----
-20

skipif mysql # not compatible
query I rowsort label-1666
SELECT DISTINCT - CAST ( - + COALESCE ( + - 20, - ( 44 ) * - 85, 48 + + - 40 ) AS INTEGER )
----
-20

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

skipif mysql # not compatible
query I rowsort label-1667
SELECT - 52 * - COUNT ( * )
----
52

query I rowsort
SELECT - 57 + - - 73 AS col1
----
16

query I rowsort
SELECT + - 78 + 71 AS col0
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1670
SELECT - + 4 + + MAX( DISTINCT + - ( CAST( NULL AS SIGNED ) ) ), - 87 + 88 AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1670
SELECT - + 4 + + MAX ( DISTINCT + - ( CAST ( NULL AS INTEGER ) ) ), - 87 + 88 AS col0
----
NULL
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1671
SELECT - + COUNT( * ) + + 36 + 40 * - 68 + - 89 DIV 80 * + + 60 * - - 79
----
-7425

skipif mysql # not compatible
query I rowsort label-1671
SELECT - + COUNT ( * ) + + 36 + 40 * - 68 + - 89 / 80 * + + 60 * - - 79
----
-7425

onlyif mysql # DIV for integer division: 
query I rowsort label-1672
SELECT DISTINCT - 76 + - - 49 DIV + 5 AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-1672
SELECT DISTINCT - 76 + - - 49 / + 5 AS col0
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-1673
SELECT ALL 20 DIV - - 84 + + + 32 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-1673
SELECT ALL 20 / - - 84 + + + 32 AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1674
SELECT ALL + NULLIF ( + + COALESCE ( - COUNT( * ), - - 41 ), ( + 67 ) / 2 + + 46 * - ( + 22 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1674
SELECT ALL + NULLIF ( + + COALESCE ( - COUNT ( * ), - - 41 ), ( + 67 ) / 2 + + 46 * - ( + 22 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1675
SELECT - CASE - + COUNT( + 63 ) WHEN - 92 * 99 * - 91 + - - COUNT( * ) * - - 32 THEN NULL WHEN + 56 THEN + 48 * + COUNT( * ) + - 54 ELSE NULL END + - CASE + MAX( 93 ) WHEN + ( - ( - 32 ) ) - + COUNT( * ) THEN NULL WHEN 7 THEN NULL ELSE - MIN( DISTINCT 0 ) * + NULLIF ( 93, 52 * COALESCE ( + 46, 34 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1675
SELECT - CASE - + COUNT ( + 63 ) WHEN - 92 * 99 * - 91 + - - COUNT ( * ) * - - 32 THEN NULL WHEN + 56 THEN + 48 * + COUNT ( * ) + - 54 ELSE NULL END + - CASE + MAX ( 93 ) WHEN + ( - ( - 32 ) ) - + COUNT ( * ) THEN NULL WHEN 7 THEN NULL ELSE - MIN ( DISTINCT 0 ) * + NULLIF ( 93, 52 * COALESCE ( + 46, 34 ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1676
SELECT ALL 60 * 46 * - COUNT( * ) + + + MAX( - + ( 38 ) ) + COUNT( * ) AS col1
----
-2797

skipif mysql # not compatible
query I rowsort label-1676
SELECT ALL 60 * 46 * - COUNT ( * ) + + + MAX ( - + ( 38 ) ) + COUNT ( * ) AS col1
----
-2797

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

query I rowsort
SELECT - 83 * 1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-1679
SELECT 11 * + - COUNT( * ) * - 15 + ( - 77 ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-1679
SELECT 11 * + - COUNT ( * ) * - 15 + ( - 77 ) AS col0
----
88

query I rowsort
SELECT ( - - 35 ) AS col2
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1681
SELECT - MAX( - 97 ) * - CAST( NULL AS SIGNED ) + 7 * - - ( + 69 ) / + + 12 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1681
SELECT - MAX ( - 97 ) * - CAST ( NULL AS INTEGER ) + 7 * - - ( + 69 ) / + + 12 AS col1
----
NULL

query I rowsort
SELECT + 24 * + + 6 AS col1
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-1683
SELECT ALL - 91 * + 52 - - COUNT( ALL + 79 ) AS col0
----
-4731

skipif mysql # not compatible
query I rowsort label-1683
SELECT ALL - 91 * + 52 - - COUNT ( ALL + 79 ) AS col0
----
-4731

onlyif mysql # DIV for integer division: 
query I rowsort label-1684
SELECT - 53 * + 90 * - COALESCE ( - + 69, - 57 DIV + - 54 + 33 + + + 61, + 16 * + 71 - 8, + 59 )
----
-329130

skipif mysql # not compatible
query I rowsort label-1684
SELECT - 53 * + 90 * - COALESCE ( - + 69, - 57 / + - 54 + 33 + + + 61, + 16 * + 71 - 8, + 59 )
----
-329130

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

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

query I rowsort
SELECT - 88 * - - 37 AS col1
----
-3256

query I rowsort
SELECT ALL - CASE - + 58 WHEN + 98 THEN - AVG ( DISTINCT - 35 ) WHEN NULLIF ( + 77, 10 + COALESCE ( + 96, + + ( 11 ) ) ) THEN NULL END * - 7 * - 87 - - + 96 + 75
----
NULL

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

query I rowsort
SELECT CASE 37 WHEN + - 82 + + 81 THEN 38 WHEN - ( + 99 ) THEN NULL ELSE NULL END col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1690
SELECT ALL + CAST( - CASE + 81 WHEN + 31 THEN - 25 ELSE NULL END AS SIGNED ), + 61 AS col2
----
NULL
61

skipif mysql # not compatible
query II rowsort label-1690
SELECT ALL + CAST ( - CASE + 81 WHEN + 31 THEN - 25 ELSE NULL END AS INTEGER ), + 61 AS col2
----
NULL
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1691
SELECT CASE 20 WHEN - COUNT( * ) THEN NULL ELSE - - COUNT( * ) + - 19 + ( + 48 ) + + 42 * - 74 + - COALESCE ( + 88, COALESCE ( 8, 67 * - 61 + - 6 + - 86 ) + + 17 ) END AS col2
----
-3166

skipif mysql # not compatible
query I rowsort label-1691
SELECT CASE 20 WHEN - COUNT ( * ) THEN NULL ELSE - - COUNT ( * ) + - 19 + ( + 48 ) + + 42 * - 74 + - COALESCE ( + 88, COALESCE ( 8, 67 * - 61 + - 6 + - 86 ) + + 17 ) END AS col2
----
-3166

onlyif mysql # aggregate syntax: 
query I rowsort label-1692
SELECT + - 76 * ( CASE - + 17 WHEN + 55 * 11 + - + 23 - - CASE CASE 84 WHEN + 26 * + MIN( DISTINCT - - ( + 72 ) ) * 16 + + 68 * - 84 THEN 14 * - 89 - - 8 END WHEN 47 THEN + 73 WHEN - COALESCE ( COUNT( * ), - 82 ) + - 27 THEN NULL END - + 83 THEN + 6 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1692
SELECT + - 76 * ( CASE - + 17 WHEN + 55 * 11 + - + 23 - - CASE CASE 84 WHEN + 26 * + MIN ( DISTINCT - - ( + 72 ) ) * 16 + + 68 * - 84 THEN 14 * - 89 - - 8 END WHEN 47 THEN + 73 WHEN - COALESCE ( COUNT ( * ), - 82 ) + - 27 THEN NULL END - + 83 THEN + 6 END ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1693
SELECT ALL 31 DIV + 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1693
SELECT ALL 31 / + 97 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1694
SELECT - + CAST( - + 91 AS SIGNED )
----
91

skipif mysql # not compatible
query I rowsort label-1694
SELECT - + CAST ( - + 91 AS INTEGER )
----
91

query I rowsort
SELECT + 14 - - - CASE + ( 88 ) WHEN + - 13 + - - CASE - + CASE - ( - 86 ) WHEN - 85 * - 0 THEN - + 90 WHEN - + 23 THEN + 0 ELSE NULL END WHEN + 38 * 39 THEN NULL WHEN - ( 95 ) THEN NULL ELSE 64 + 86 END * + 97 THEN - 62 END / 32 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1696
SELECT + + 93 / + + 34 * 46 - - 9 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1696
SELECT + + 93 / + + 34 * 46 - - 9 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + + 49 + NULLIF ( + + 44, - + 41 )
----
93

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

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

query I rowsort
SELECT DISTINCT - 80 + 7 + - 82 + - 93 + 78 AS col1
----
-170

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1701
SELECT DISTINCT CAST( + 64 AS SIGNED ) + - 12 + 24 * + ( - 19 ) + + 82
----
-322

skipif mysql # not compatible
query I rowsort label-1701
SELECT DISTINCT CAST ( + 64 AS INTEGER ) + - 12 + 24 * + ( - 19 ) + + 82
----
-322

onlyif mysql # aggregate syntax: 
query I rowsort label-1702
SELECT ALL + 89 + + + COUNT( * ) col1
----
90

skipif mysql # not compatible
query I rowsort label-1702
SELECT ALL + 89 + + + COUNT ( * ) col1
----
90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1703
SELECT ALL - + CAST( NULL AS DECIMAL ) * - - 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1703
SELECT ALL - + CAST ( NULL AS REAL ) * - - 92 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1704
SELECT 23 * + CAST( + - 30 AS SIGNED ) * - 38 + 95
----
26315

skipif mysql # not compatible
query I rowsort label-1704
SELECT 23 * + CAST ( + - 30 AS INTEGER ) * - 38 + 95
----
26315

onlyif mysql # DIV for integer division: 
query I rowsort label-1705
SELECT DISTINCT - 86 + + ( + 94 ) + + 93 DIV + NULLIF ( - 1, - ( - + 85 ) * + 40 + 0 )
----
-85

skipif mysql # not compatible
query I rowsort label-1705
SELECT DISTINCT - 86 + + ( + 94 ) + + 93 / + NULLIF ( - 1, - ( - + 85 ) * + 40 + 0 )
----
-85

query II rowsort
SELECT - 91 AS col2, 33
----
-91
33

onlyif mysql # DIV for integer division: 
query I rowsort label-1707
SELECT ALL 60 + NULLIF ( - COALESCE ( + 93, - 60, - 89 DIV 92 + + 43 ), + - 77 ) * + 86 + + 86 + 49
----
-7803

skipif mysql # not compatible
query I rowsort label-1707
SELECT ALL 60 + NULLIF ( - COALESCE ( + 93, - 60, - 89 / 92 + + 43 ), + - 77 ) * + 86 + + 86 + 49
----
-7803

onlyif mysql # aggregate syntax: 
query I rowsort label-1708
SELECT SUM( + ( + 96 ) ) * 58 AS col1
----
5568

skipif mysql # not compatible
query I rowsort label-1708
SELECT SUM ( + ( + 96 ) ) * 58 AS col1
----
5568

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1709
SELECT COUNT( - 2 ) / ( CAST( NULL AS DECIMAL ) ) AS col1, 35 - - 45 * + - 75
----
NULL
-3340

skipif mysql # not compatible
query II rowsort label-1709
SELECT COUNT ( - 2 ) / ( CAST ( NULL AS REAL ) ) AS col1, 35 - - 45 * + - 75
----
NULL
-3340

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

skipif mysql # not compatible
query I rowsort label-1710
SELECT + 75 / + CAST ( NULL AS INTEGER ) + + 69 * + + COUNT ( * ) * + + MIN ( - 63 ) * - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query II rowsort
SELECT + 2 AS col0, - 23 AS col0
----
2
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-1712
SELECT ALL - 42, NULLIF ( + - 54, - COUNT( * ) ) AS col0
----
-42
-54

skipif mysql # not compatible
query II rowsort label-1712
SELECT ALL - 42, NULLIF ( + - 54, - COUNT ( * ) ) AS col0
----
-42
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1713
SELECT 16 DIV + - 96 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-1713
SELECT 16 / + - 96 * COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1714
SELECT + 23, - 91 / - 59 + - - 6 * 52 * ( + - CAST( NULL AS SIGNED ) ) / + + 0 + + + SUM( ALL + 72 ) AS col0
----
23
NULL

skipif mysql # not compatible
query II rowsort label-1714
SELECT + 23, - 91 / - 59 + - - 6 * 52 * ( + - CAST ( NULL AS INTEGER ) ) / + + 0 + + + SUM ( ALL + 72 ) AS col0
----
23
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1715
SELECT 3 + - + MAX( ALL - - 89 ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-1715
SELECT 3 + - + MAX ( ALL - - 89 ) AS col0
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-1716
SELECT 6 DIV + + 54 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1716
SELECT 6 / + + 54 AS col1
----
0

query I rowsort
SELECT 12 + - - 23 * + 31 * + 43 AS col0
----
30671

query I rowsort
SELECT 51 * ( 50 ) AS col1
----
2550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1719
SELECT 90 * + 71 * - - CASE - + 46 WHEN 56 THEN + 94 END * 17 - CASE - 70 WHEN - COUNT( * ) THEN 20 WHEN - + NULLIF ( 31, - 38 * - ( - 98 ) ) + CAST( - COALESCE ( CAST( 49 AS SIGNED ), 26, 87 ) AS DECIMAL ) * + 80 THEN + 20 + 21 ELSE NULL END + - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-1719
SELECT 90 * + 71 * - - CASE - + 46 WHEN 56 THEN + 94 END * 17 - CASE - 70 WHEN - COUNT ( * ) THEN 20 WHEN - + NULLIF ( 31, - 38 * - ( - 98 ) ) + CAST ( - COALESCE ( CAST ( 49 AS INTEGER ), 26, 87 ) AS REAL ) * + 80 THEN + 20 + 21 ELSE NULL END + - 30
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1720
SELECT 54, - COUNT( * ) + - 50 AS col2
----
54
-51

skipif mysql # not compatible
query II rowsort label-1720
SELECT 54, - COUNT ( * ) + - 50 AS col2
----
54
-51

query I rowsort
SELECT 28 * + - 58 * + 13
----
-21112

onlyif mysql # aggregate syntax: 
query I rowsort label-1722
SELECT 31 + + 46 - + 47 * - + COUNT( * ) col2
----
124

skipif mysql # not compatible
query I rowsort label-1722
SELECT 31 + + 46 - + 47 * - + COUNT ( * ) col2
----
124

query II rowsort
SELECT ALL - - 15 AS col1, 99 * 38
----
15
3762

query II rowsort
SELECT + 15, 78 AS col1
----
15
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1725
SELECT - 89 * 72 + - 81 + + - 33 * SUM( DISTINCT + 12 ) + + - CASE - CAST( NULL AS SIGNED ) WHEN - 75 + - 94 THEN - - 92 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1725
SELECT - 89 * 72 + - 81 + + - 33 * SUM ( DISTINCT + 12 ) + + - CASE - CAST ( NULL AS INTEGER ) WHEN - 75 + - 94 THEN - - 92 END col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1726
SELECT ALL - COUNT ( * ) + - - SUM ( DISTINCT - 58 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1727
SELECT + 12 + - 64 + + - 47 * - CASE - 97 WHEN SUM( - 65 ) - + + 39 THEN - 93 + - + 82 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1727
SELECT + 12 + - 64 + + - 47 * - CASE - 97 WHEN SUM ( - 65 ) - + + 39 THEN - 93 + - + 82 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1728
SELECT CASE ( - 81 ) WHEN + 41 + - COUNT( * ) * - + 38 + + + 76 + - 15 THEN COUNT( - 80 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1728
SELECT CASE ( - 81 ) WHEN + 41 + - COUNT ( * ) * - + 38 + + + 76 + - 15 THEN COUNT ( - 80 ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1729
SELECT NULLIF ( 69, - + 51 / COUNT( * ) + 20 + + + 16 + - + SUM( 93 ) + - - MAX( DISTINCT - + CAST( - 80 AS SIGNED ) ) + - 5 / + 13 * COALESCE ( - + ( 55 ), - AVG ( ALL - 91 ) ) )
----
69

skipif mysql # not compatible
query I rowsort label-1729
SELECT NULLIF ( 69, - + 51 / COUNT ( * ) + 20 + + + 16 + - + SUM ( 93 ) + - - MAX ( DISTINCT - + CAST ( - 80 AS INTEGER ) ) + - 5 / + 13 * COALESCE ( - + ( 55 ), - AVG ( ALL - 91 ) ) )
----
69

query I rowsort
SELECT - 48 + - + 69 * 62 col2
----
-4326

onlyif mysql # aggregate syntax: 
query I rowsort label-1731
SELECT + MAX( DISTINCT 53 ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-1731
SELECT + MAX ( DISTINCT 53 ) AS col1
----
53

query I rowsort
SELECT 37 * - + 95
----
-3515

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1733
SELECT - 61 + - 89 + + - COUNT( * ) DIV - 23 AS col1
----
-150

skipif mysql # not compatible
query I rowsort label-1733
SELECT - 61 + - 89 + + - COUNT ( * ) / - 23 AS col1
----
-150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1734
SELECT + NULLIF ( - + CAST( NULL AS SIGNED ), + 53 + + - 83 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1734
SELECT + NULLIF ( - + CAST ( NULL AS INTEGER ), + 53 + + - 83 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1735
SELECT ALL NULLIF ( MIN( DISTINCT - 28 ), 94 ) + - 58 + - COUNT( * )
----
-87

skipif mysql # not compatible
query I rowsort label-1735
SELECT ALL NULLIF ( MIN ( DISTINCT - 28 ), 94 ) + - 58 + - COUNT ( * )
----
-87

query I rowsort
SELECT - AVG ( - - CASE 44 WHEN 53 THEN 96 END )
----
NULL

query I rowsort
SELECT ALL + ( + 60 ) + + 67 col1
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT ALL - COUNT( * ) * - - 57 + 88 col0
----
31

skipif mysql # not compatible
query I rowsort label-1738
SELECT ALL - COUNT ( * ) * - - 57 + 88 col0
----
31

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

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

query I rowsort
SELECT DISTINCT 6 + + 12 AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1741
SELECT + 94 * + 8 * - ( + SUM( ALL - 54 ) ) AS col2
----
40608

skipif mysql # not compatible
query I rowsort label-1741
SELECT + 94 * + 8 * - ( + SUM ( ALL - 54 ) ) AS col2
----
40608

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1742
SELECT CAST( NULL AS SIGNED ) * - 87 * - SUM( DISTINCT + - 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1742
SELECT CAST ( NULL AS INTEGER ) * - 87 * - SUM ( DISTINCT + - 80 )
----
NULL

query I rowsort
SELECT NULLIF ( 79, + 8 ) * 5
----
395

query I rowsort
SELECT ALL 18 * + + 63
----
1134

onlyif mysql # aggregate syntax: 
query II rowsort label-1745
SELECT DISTINCT COUNT( * ) - + COUNT( * ) col1, + ( + 46 )
----
0
46

skipif mysql # not compatible
query II rowsort label-1745
SELECT DISTINCT COUNT ( * ) - + COUNT ( * ) col1, + ( + 46 )
----
0
46

onlyif mysql # aggregate syntax: 
query II rowsort label-1746
SELECT 22 + - - 12 + - 60 AS col2, COUNT( * ) * - 85
----
-26
-85

skipif mysql # not compatible
query II rowsort label-1746
SELECT 22 + - - 12 + - 60 AS col2, COUNT ( * ) * - 85
----
-26
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-1747
SELECT DISTINCT NULLIF ( - 99, 27 * + + COUNT( * ) / - - 86 + + NULLIF ( + 45, - - CASE - 84 WHEN 72 THEN + COUNT( DISTINCT + 24 ) ELSE NULL END * - 96 ) + - + 87 * - 37 ) * + 48 * - 93 + 92 col1
----
442028

skipif mysql # not compatible
query I rowsort label-1747
SELECT DISTINCT NULLIF ( - 99, 27 * + + COUNT ( * ) / - - 86 + + NULLIF ( + 45, - - CASE - 84 WHEN 72 THEN + COUNT ( DISTINCT + 24 ) ELSE NULL END * - 96 ) + - + 87 * - 37 ) * + 48 * - 93 + 92 col1
----
442028

onlyif mysql # aggregate syntax: 
query I rowsort label-1748
SELECT MAX( 61 ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-1748
SELECT MAX ( 61 ) AS col2
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-1749
SELECT 51 DIV 29
----
1

skipif mysql # not compatible
query I rowsort label-1749
SELECT 51 / 29
----
1

query I rowsort
SELECT ( 59 ) * - 53 col1
----
-3127

query I rowsort
SELECT ALL 28 + 71 * 13
----
951

query II rowsort
SELECT DISTINCT - ( - + 36 ) AS col1, 98 AS col2
----
36
98

onlyif mysql # DIV for integer division: 
query I rowsort label-1753
SELECT 41 DIV - - 46 col1
----
0

skipif mysql # not compatible
query I rowsort label-1753
SELECT 41 / - - 46 col1
----
0

query I rowsort
SELECT ALL ( 45 ) + - 39 + 83
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1755
SELECT DISTINCT 47 + + COUNT( * ) * SUM( ALL - 37 ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-1755
SELECT DISTINCT 47 + + COUNT ( * ) * SUM ( ALL - 37 ) AS col1
----
10

query I rowsort
SELECT ALL 52 * 58 col0
----
3016

onlyif mysql # aggregate syntax: 
query I rowsort label-1757
SELECT + CASE WHEN NOT NULL IN ( + COUNT( * ) ) THEN NULL ELSE - 18 END
----
-18

skipif mysql # not compatible
query I rowsort label-1757
SELECT + CASE WHEN NOT NULL IN ( + COUNT ( * ) ) THEN NULL ELSE - 18 END
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-1758
SELECT - 9 DIV - - 11 col1
----
0

skipif mysql # not compatible
query I rowsort label-1758
SELECT - 9 / - - 11 col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1759
SELECT 82 * COUNT( * ) + - + 84 DIV 78 - - + ( + - 76 ) + + 14 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-1759
SELECT 82 * COUNT ( * ) + - + 84 / 78 - - + ( + - 76 ) + + 14 AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1760
SELECT + MIN( - 42 ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-1760
SELECT + MIN ( - 42 ) AS col0
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1761
SELECT DISTINCT - - ( + 75 ) DIV SUM( 42 ) + 41
----
42

skipif mysql # not compatible
query I rowsort label-1761
SELECT DISTINCT - - ( + 75 ) / SUM ( 42 ) + 41
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-1762
SELECT ALL + - 39 + 39 AS col2, NULLIF ( COUNT( * ), 72 + - 70 ) AS col0
----
0
1

skipif mysql # not compatible
query II rowsort label-1762
SELECT ALL + - 39 + 39 AS col2, NULLIF ( COUNT ( * ), 72 + - 70 ) AS col0
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1763
SELECT + + SUM( CAST( NULL AS SIGNED ) )
----
NULL

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

query II rowsort
SELECT + ( + 42 ) AS col0, - 3 * 26
----
42
-78

query I rowsort
SELECT DISTINCT + + 13 * + 95 AS col2
----
1235

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1766
SELECT DISTINCT + + 97 + 86 + - CAST( NULL AS SIGNED ) * + 95 * 70 * + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-1766
SELECT DISTINCT + + 97 + 86 + - CAST ( NULL AS INTEGER ) * + 95 * 70 * + 61
----
NULL

query I rowsort
SELECT - - 92 * + + 90 AS col2
----
8280

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT - MAX( DISTINCT 22 ) + - 88
----
-110

skipif mysql # not compatible
query I rowsort label-1768
SELECT - MAX ( DISTINCT 22 ) + - 88
----
-110

query I rowsort
SELECT + ( 76 ) * - - 12 AS col1
----
912

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1770
SELECT - 89 col2, 65 + 42 DIV - COUNT( * )
----
-89
23

skipif mysql # not compatible
query II rowsort label-1770
SELECT - 89 col2, 65 + 42 / - COUNT ( * )
----
-89
23

query I rowsort
SELECT + 66 + - - 3 * + + 31 + - + 87 AS col0
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-1772
SELECT 41, + COALESCE ( + - 97, - 12, + SUM( ALL + - COALESCE ( - 52, + - 7, - - 46 * + + 29 ) ) ) AS col2
----
41
-97

skipif mysql # not compatible
query II rowsort label-1772
SELECT 41, + COALESCE ( + - 97, - 12, + SUM ( ALL + - COALESCE ( - 52, + - 7, - - 46 * + + 29 ) ) ) AS col2
----
41
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1773
SELECT ALL NULLIF ( - + 85, - + COUNT( * ) * + 52 / 3 )
----
-85

skipif mysql # not compatible
query I rowsort label-1773
SELECT ALL NULLIF ( - + 85, - + COUNT ( * ) * + 52 / 3 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-1774
SELECT ALL CASE + ( - ( - + COUNT( * ) ) ) WHEN - 33 THEN NULL WHEN - AVG ( ALL 20 ) / 48 + + 66 + - - NULLIF ( - 80, - 86 - 51 ) THEN NULL ELSE + + 14 * ( - 36 ) END
----
-504

skipif mysql # not compatible
query I rowsort label-1774
SELECT ALL CASE + ( - ( - + COUNT ( * ) ) ) WHEN - 33 THEN NULL WHEN - AVG ( ALL 20 ) / 48 + + 66 + - - NULLIF ( - 80, - 86 - 51 ) THEN NULL ELSE + + 14 * ( - 36 ) END
----
-504

query I rowsort
SELECT - 13 * + + NULLIF ( - 3, 11 )
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1776
SELECT ALL 24 * - + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1776
SELECT ALL 24 * - + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1777
SELECT DISTINCT - 16 DIV 34
----
0

skipif mysql # not compatible
query I rowsort label-1777
SELECT DISTINCT - 16 / 34
----
0

query I rowsort
SELECT + 65 + + + COALESCE ( + + 53, + 96 ) AS col1
----
118

query I rowsort
SELECT ALL 71 * - - 24 AS col0
----
1704

onlyif mysql # aggregate syntax: 
query III rowsort label-1780
SELECT + 83 * + COUNT( ALL + 51 ) AS col1, 59 * 20 * + - 95 col0, + 30 * 29 * + + 96 * + MIN( DISTINCT 41 ) + COUNT( - + 79 ) + - 58 + + SUM( DISTINCT - 43 ) + - - 1 + + - 87 * 77
----
83
-112100
3417522

skipif mysql # not compatible
query III rowsort label-1780
SELECT + 83 * + COUNT ( ALL + 51 ) AS col1, 59 * 20 * + - 95 col0, + 30 * 29 * + + 96 * + MIN ( DISTINCT 41 ) + COUNT ( - + 79 ) + - 58 + + SUM ( DISTINCT - 43 ) + - - 1 + + - 87 * 77
----
83
-112100
3417522

query I rowsort
SELECT - 94 - - 57 AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1782
SELECT - ( + COUNT( * ) ) * + 64 + + 83
----
19

skipif mysql # not compatible
query I rowsort label-1782
SELECT - ( + COUNT ( * ) ) * + 64 + + 83
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1783
SELECT + COALESCE ( - + COUNT( * ), CAST( + - NULLIF ( - + 5, ( + - MAX( DISTINCT + 47 ) ) + 51 + + ( - 25 ) ) AS SIGNED ), 86 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1783
SELECT + COALESCE ( - + COUNT ( * ), CAST ( + - NULLIF ( - + 5, ( + - MAX ( DISTINCT + 47 ) ) + 51 + + ( - 25 ) ) AS INTEGER ), 86 ) AS col2
----
-1

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1785
SELECT ALL + 93 AS col1, 71 * - MAX( DISTINCT + 48 ) AS col0
----
93
-3408

skipif mysql # not compatible
query II rowsort label-1785
SELECT ALL + 93 AS col1, 71 * - MAX ( DISTINCT + 48 ) AS col0
----
93
-3408

onlyif mysql # DIV for integer division: 
query II rowsort label-1786
SELECT ALL + 96, - 35 + 53 + - 26 DIV + 30 + - 61 + + 41 * + + 6 AS col2
----
96
203

skipif mysql # not compatible
query II rowsort label-1786
SELECT ALL + 96, - 35 + 53 + - 26 / + 30 + - 61 + + 41 * + + 6 AS col2
----
96
203

query I rowsort
SELECT + 23 * + + 0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1788
SELECT ALL - 5 * - - 82 + + + ( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1788
SELECT ALL - 5 * - - 82 + + + ( - - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1789
SELECT + 17 - - + MIN( - 59 ) + - COUNT( * ) * 82 col2
----
-124

skipif mysql # not compatible
query I rowsort label-1789
SELECT + 17 - - + MIN ( - 59 ) + - COUNT ( * ) * 82 col2
----
-124

query I rowsort
SELECT ALL - 89 * + 92 + - 32 col0
----
-8220

query I rowsort
SELECT ALL + - 66 * + 74
----
-4884

onlyif mysql # aggregate syntax: 
query I rowsort label-1792
SELECT + - 11 + + 86 * COUNT( * ) * - 99
----
-8525

skipif mysql # not compatible
query I rowsort label-1792
SELECT + - 11 + + 86 * COUNT ( * ) * - 99
----
-8525

query II rowsort
SELECT + 79 AS col0, + 29
----
79
29

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1795
SELECT - - 56 - - 5 DIV - + 19 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-1795
SELECT - - 56 - - 5 / - + 19 AS col2
----
56

query II rowsort
SELECT + + 5 AS col1, - 86 AS col0
----
5
-86

query I rowsort
SELECT + + 87 + + 43 AS col2
----
130

query I rowsort
SELECT ALL - 66 * - - ( 76 ) * + + ( - 91 ) + 50
----
456506

query I rowsort
SELECT DISTINCT - 30 * - 56 - - 2 + + 71 * - + 40
----
-1158

onlyif mysql # aggregate syntax: 
query II rowsort label-1800
SELECT ALL + - 66 col1, 57 - 81 * - COUNT( ALL - - COALESCE ( 34, 11 ) )
----
-66
138

skipif mysql # not compatible
query II rowsort label-1800
SELECT ALL + - 66 col1, 57 - 81 * - COUNT ( ALL - - COALESCE ( 34, 11 ) )
----
-66
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1801
SELECT ALL - 10 / - - SUM( DISTINCT ( + CAST( NULL AS SIGNED ) ) ) * 82
----
NULL

skipif mysql # not compatible
query I rowsort label-1801
SELECT ALL - 10 / - - SUM ( DISTINCT ( + CAST ( NULL AS INTEGER ) ) ) * 82
----
NULL

query I rowsort
SELECT - - 4 * + 37 AS col1
----
148

query II rowsort
SELECT DISTINCT 30, 66 AS col1
----
30
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1804
SELECT + + NULLIF ( - - 36, + 55 * - 71 DIV + 29 ) * - 22 - - 97 + 44 + - 4 * - COUNT( * ) DIV 89 * 86 + + - 2 + + 62 * - 91 - - ( - + 95 )
----
-6390

skipif mysql # not compatible
query I rowsort label-1804
SELECT + + NULLIF ( - - 36, + 55 * - 71 / + 29 ) * - 22 - - 97 + 44 + - 4 * - COUNT ( * ) / 89 * 86 + + - 2 + + 62 * - 91 - - ( - + 95 )
----
-6390

onlyif mysql # aggregate syntax: 
query I rowsort label-1805
SELECT - + NULLIF ( + - 49, - 62 * - - COALESCE ( - - COUNT( * ), 77 ) + + 95 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-1805
SELECT - + NULLIF ( + - 49, - 62 * - - COALESCE ( - - COUNT ( * ), 77 ) + + 95 ) AS col1
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1806
SELECT ALL - + 32 DIV - - SUM( DISTINCT 69 )
----
0

skipif mysql # not compatible
query I rowsort label-1806
SELECT ALL - + 32 / - - SUM ( DISTINCT 69 )
----
0

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

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

query I rowsort
SELECT - + 80 + + 17 AS col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1809
SELECT - 99 * - MAX( ALL + - 39 ) AS col2
----
-3861

skipif mysql # not compatible
query I rowsort label-1809
SELECT - 99 * - MAX ( ALL + - 39 ) AS col2
----
-3861

onlyif mysql # aggregate syntax: 
query I rowsort label-1810
SELECT ALL MAX( - 16 ) col2
----
-16

skipif mysql # not compatible
query I rowsort label-1810
SELECT ALL MAX ( - 16 ) col2
----
-16

query I rowsort
SELECT ALL + ( - 45 ) * + 57 + - 54 * 85
----
-7155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1812
SELECT ALL + NULLIF ( + + 1, + + 37 * - 96 ) * - CASE COUNT( * ) WHEN COUNT( * ) THEN 58 WHEN - 32 THEN NULL WHEN + 42 THEN 57 + + 20 * - CAST( NULL AS SIGNED ) END
----
-58

skipif mysql # not compatible
query I rowsort label-1812
SELECT ALL + NULLIF ( + + 1, + + 37 * - 96 ) * - CASE COUNT ( * ) WHEN COUNT ( * ) THEN 58 WHEN - 32 THEN NULL WHEN + 42 THEN 57 + + 20 * - CAST ( NULL AS INTEGER ) END
----
-58

query I rowsort
SELECT DISTINCT COALESCE ( 87, 51 ) AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1814
SELECT - MAX( ALL - 78 )
----
78

skipif mysql # not compatible
query I rowsort label-1814
SELECT - MAX ( ALL - 78 )
----
78

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1816
SELECT - 59 * - 57 AS col1, - 44 + + CASE ( - + 91 ) WHEN + 80 + + + 75 THEN NULL ELSE COUNT( * ) * - 97 END
----
3363
-141

skipif mysql # not compatible
query II rowsort label-1816
SELECT - 59 * - 57 AS col1, - 44 + + CASE ( - + 91 ) WHEN + 80 + + + 75 THEN NULL ELSE COUNT ( * ) * - 97 END
----
3363
-141

query I rowsort
SELECT - 29 - - + 80 AS col2
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1818
SELECT + MIN( 13 ) + - NULLIF ( - COALESCE ( - 28, + + 69 DIV - + 12 + + 53 * + 86, 7 ), - COUNT( * ) ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-1818
SELECT + MIN ( 13 ) + - NULLIF ( - COALESCE ( - 28, + + 69 / - + 12 + + 53 * + 86, 7 ), - COUNT ( * ) ) AS col2
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1819
SELECT ALL 30 DIV - 71 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-1819
SELECT ALL 30 / - 71 + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1820
SELECT - 43 DIV 65 + - CASE + - 81 WHEN 72 * MAX( DISTINCT CASE + - 63 WHEN - ( - 34 ) THEN NULL WHEN + 46 THEN 95 - + - 90 - - 89 * - 66 END ) THEN 64 WHEN - 59 * NULLIF ( + - 6, - 70 ) * AVG ( 55 ) + + COALESCE ( - 64, - ( 3 ) * + 82, + 63 ) THEN NULL ELSE + 88 * ( - COUNT( ALL 42 ) * 12 ) END DIV COUNT( * )
----
1056

skipif mysql # not compatible
query I rowsort label-1820
SELECT - 43 / 65 + - CASE + - 81 WHEN 72 * MAX ( DISTINCT CASE + - 63 WHEN - ( - 34 ) THEN NULL WHEN + 46 THEN 95 - + - 90 - - 89 * - 66 END ) THEN 64 WHEN - 59 * NULLIF ( + - 6, - 70 ) * AVG ( 55 ) + + COALESCE ( - 64, - ( 3 ) * + 82, + 63 ) THEN NULL ELSE + 88 * ( - COUNT ( ALL 42 ) * 12 ) END / COUNT ( * )
----
1056

onlyif mysql # DIV for integer division: 
query I rowsort label-1821
SELECT DISTINCT - 45 DIV ( 54 ) + + 17
----
17

skipif mysql # not compatible
query I rowsort label-1821
SELECT DISTINCT - 45 / ( 54 ) + + 17
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1822
SELECT DISTINCT 73 DIV + 25 + + 7 * + 50, - COUNT( * ) AS col2
----
352
-1

skipif mysql # not compatible
query II rowsort label-1822
SELECT DISTINCT 73 / + 25 + + 7 * + 50, - COUNT ( * ) AS col2
----
352
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1823
SELECT DISTINCT - 50 * - + NULLIF ( - 23, - + COALESCE ( 1, + CAST( NULL AS DECIMAL ) + 91 ) ) AS col2, 96 AS col1
----
-1150
96

skipif mysql # not compatible
query II rowsort label-1823
SELECT DISTINCT - 50 * - + NULLIF ( - 23, - + COALESCE ( 1, + CAST ( NULL AS REAL ) + 91 ) ) AS col2, 96 AS col1
----
-1150
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT - COALESCE ( 10, + NULLIF ( + - 96, + + NULLIF ( + - 83, 78 ) ) + + ( 94 ) - + 96 * 41 * - COUNT( * ) - - 34 * - - COUNT( * ) ) * 88 * 39 + + 98 + - + 89 * 57 * - COUNT( * ) * - 42 AS col2
----
-247288

skipif mysql # not compatible
query I rowsort label-1824
SELECT - COALESCE ( 10, + NULLIF ( + - 96, + + NULLIF ( + - 83, 78 ) ) + + ( 94 ) - + 96 * 41 * - COUNT ( * ) - - 34 * - - COUNT ( * ) ) * 88 * 39 + + 98 + - + 89 * 57 * - COUNT ( * ) * - 42 AS col2
----
-247288

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1825
SELECT - - MIN( DISTINCT + 13 ) DIV - 16
----
0

skipif mysql # not compatible
query I rowsort label-1825
SELECT - - MIN ( DISTINCT + 13 ) / - 16
----
0

query I rowsort
SELECT 60 * 24 + + 69 * 57 * + 43 AS col1
----
170559

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

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

query I rowsort
SELECT + ( 28 ) + + 63 + + 35
----
126

query I rowsort
SELECT DISTINCT - 52 - 53 col0
----
-105

query I rowsort
SELECT - ( - + 52 ) * - - 21 * - + 94 AS col2
----
-102648

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1831
SELECT ALL - 19 - - - 97 + 66 + + COUNT( 20 ) DIV 80 AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-1831
SELECT ALL - 19 - - - 97 + 66 + + COUNT ( 20 ) / 80 AS col2
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1832
SELECT DISTINCT - + CAST( - COUNT( - - 85 ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1832
SELECT DISTINCT - + CAST ( - COUNT ( - - 85 ) AS INTEGER ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1833
SELECT + 16 * + 98 DIV COUNT( + 48 )
----
1568

skipif mysql # not compatible
query I rowsort label-1833
SELECT + 16 * + 98 / COUNT ( + 48 )
----
1568

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT - ( - COUNT( DISTINCT - 5 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1835
SELECT - ( - COUNT ( DISTINCT - 5 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1836
SELECT - COUNT( DISTINCT - + 89 ) * - 29 + - 85, + 94 * 80 + NULLIF ( + 55, + 9 / + 83 * 33 * - 78 ) AS col2
----
-56
7575

skipif mysql # not compatible
query II rowsort label-1836
SELECT - COUNT ( DISTINCT - + 89 ) * - 29 + - 85, + 94 * 80 + NULLIF ( + 55, + 9 / + 83 * 33 * - 78 ) AS col2
----
-56
7575

query II rowsort
SELECT - - ( - - 71 ) col1, + 65 + + 41
----
71
106

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT DISTINCT + 76 * - MIN( - 71 ) + + - 72 + 87
----
5411

skipif mysql # not compatible
query I rowsort label-1838
SELECT DISTINCT + 76 * - MIN ( - 71 ) + + - 72 + 87
----
5411

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT COUNT( * ) - + 89
----
-88

skipif mysql # not compatible
query I rowsort label-1839
SELECT COUNT ( * ) - + 89
----
-88

query I rowsort
SELECT ALL 95 * + 8 * - + ( - 79 ) AS col0
----
60040

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

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

query I rowsort
SELECT ALL ( + 69 ) + + 85 * - 45
----
-3756

onlyif mysql # aggregate syntax: 
query II rowsort label-1843
SELECT COUNT( * ) + + ( 91 ) col2, 89
----
92
89

skipif mysql # not compatible
query II rowsort label-1843
SELECT COUNT ( * ) + + ( 91 ) col2, 89
----
92
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1844
SELECT 16 + - - COUNT( * ) - + - 55 + - 8 DIV ( + 10 ) AS col2, 22 + + 68 AS col0
----
72
90

skipif mysql # not compatible
query II rowsort label-1844
SELECT 16 + - - COUNT ( * ) - + - 55 + - 8 / ( + 10 ) AS col2, 22 + + 68 AS col0
----
72
90

query I rowsort
SELECT 57 + - 87 + 59
----
29

query I rowsort
SELECT 60 - - 79 + + 61 + + 5 col1
----
205

query I rowsort
SELECT ALL + 26 + + 23
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT 50 + - + 93 * - + MIN( DISTINCT 33 )
----
3119

skipif mysql # not compatible
query I rowsort label-1848
SELECT 50 + - + 93 * - + MIN ( DISTINCT 33 )
----
3119

onlyif mysql # aggregate syntax: 
query II rowsort label-1849
SELECT DISTINCT - MAX( + 94 ) * + 60, + 91 + + 56 AS col0
----
-5640
147

skipif mysql # not compatible
query II rowsort label-1849
SELECT DISTINCT - MAX ( + 94 ) * + 60, + 91 + + 56 AS col0
----
-5640
147

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT ALL - 63 * - - SUM( ALL + 91 )
----
-5733

skipif mysql # not compatible
query I rowsort label-1850
SELECT ALL - 63 * - - SUM ( ALL + 91 )
----
-5733

query I rowsort
SELECT 37 - - 86 AS col1
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-1852
SELECT - COUNT( * ) * + 33 + 50
----
17

skipif mysql # not compatible
query I rowsort label-1852
SELECT - COUNT ( * ) * + 33 + 50
----
17

query I rowsort
SELECT DISTINCT + + CASE + + 92 WHEN - + 99 + 5 - 3 * 58 THEN NULL ELSE + 63 END + + + 54 + 17
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-1854
SELECT DISTINCT - COALESCE ( 88, SUM( ALL 29 ) * MAX( DISTINCT + 88 ) * + 72 * 56 ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-1854
SELECT DISTINCT - COALESCE ( 88, SUM ( ALL 29 ) * MAX ( DISTINCT + 88 ) * + 72 * 56 ) AS col0
----
-88

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1856
SELECT ( - + 59 ) - 38 - + 31 DIV + + 2 AS col0, - 37
----
-112
-37

skipif mysql # not compatible
query II rowsort label-1856
SELECT ( - + 59 ) - 38 - + 31 / + + 2 AS col0, - 37
----
-112
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1857
SELECT DISTINCT + 43 * 83 * 39 * + - COUNT( * ) DIV - COUNT( * ) AS col1, - 65 AS col1
----
139191
-65

skipif mysql # not compatible
query II rowsort label-1857
SELECT DISTINCT + 43 * 83 * 39 * + - COUNT ( * ) / - COUNT ( * ) AS col1, - 65 AS col1
----
139191
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-1858
SELECT COUNT( * ) * - - 78 * - 56 * + + COUNT( * ) AS col0
----
-4368

skipif mysql # not compatible
query I rowsort label-1858
SELECT COUNT ( * ) * - - 78 * - 56 * + + COUNT ( * ) AS col0
----
-4368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1859
SELECT - 31 + COUNT( * ) + CAST( + ( + + ( - - MIN( + ( - ( 74 ) ) ) ) ) AS SIGNED ) * + 26 + + ( 30 ) AS col1
----
-1924

skipif mysql # not compatible
query I rowsort label-1859
SELECT - 31 + COUNT ( * ) + CAST ( + ( + + ( - - MIN ( + ( - ( 74 ) ) ) ) ) AS INTEGER ) * + 26 + + ( 30 ) AS col1
----
-1924

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1860
SELECT 58 DIV + MIN( + 10 ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-1860
SELECT 58 / + MIN ( + 10 ) AS col1
----
5

query I rowsort
SELECT - 14 - 79 + + - 90
----
-183

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

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

query I rowsort
SELECT + 56 * + - 28 + 53 + - 12 AS col2
----
-1527

query I rowsort
SELECT - - 35 * + ( + 96 ) - 66 AS col1
----
3294

query I rowsort
SELECT DISTINCT - + 85 * + - 6 * + + 98 AS col0
----
49980

query II rowsort
SELECT DISTINCT - - 46, 27 AS col1
----
46
27

query I rowsort
SELECT ALL - - 35 * - 36 AS col0
----
-1260

onlyif mysql # aggregate syntax: 
query I rowsort label-1868
SELECT ALL - - COUNT( ALL - 50 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1868
SELECT ALL - - COUNT ( ALL - 50 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1869
SELECT 30 + - 12 DIV + 18
----
30

skipif mysql # not compatible
query I rowsort label-1869
SELECT 30 + - 12 / + 18
----
30

query II rowsort
SELECT - 40 col2, + 86 + + + 12 AS col0
----
-40
98

query II rowsort
SELECT DISTINCT 45 AS col1, - 12 * 5 AS col0
----
45
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-1872
SELECT DISTINCT 0 + MAX( + + 87 ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-1872
SELECT DISTINCT 0 + MAX ( + + 87 ) AS col2
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-1873
SELECT ALL 35 + - 80 DIV - + 30
----
37

skipif mysql # not compatible
query I rowsort label-1873
SELECT ALL 35 + - 80 / - + 30
----
37

query II rowsort
SELECT ALL 94 + 26 col0, + 68 * - 27 * - 80 * - 9 AS col1
----
120
-1321920

query I rowsort
SELECT DISTINCT 65 + - 27 AS col1
----
38

query I rowsort
SELECT 57 + + 97 + - + 33
----
121

query I rowsort
SELECT ALL 99 + 61
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-1878
SELECT ALL ( NULLIF ( + COUNT( * ), - 90 ) ) + + 59 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-1878
SELECT ALL ( NULLIF ( + COUNT ( * ), - 90 ) ) + + 59 AS col2
----
60

query I rowsort
SELECT COALESCE ( + 30, + - 63 * 77 ) * - 23
----
-690

query I rowsort
SELECT 40 - - 72
----
112

onlyif mysql # DIV for integer division: 
query I rowsort label-1881
SELECT ALL + 5 DIV - 17 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1881
SELECT ALL + 5 / - 17 AS col0
----
0

query II rowsort
SELECT 89 AS col2, - 95 + - 55
----
89
-150

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1884
SELECT ALL COUNT( + 99 ) - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-1884
SELECT ALL COUNT ( + 99 ) - + COUNT ( * )
----
0

query II rowsort
SELECT DISTINCT + - 5 AS col0, - 42 * - 43
----
-5
1806

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

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

query I rowsort
SELECT 25 * 97 - - 62 AS col0
----
2487

query I rowsort
SELECT DISTINCT + 70 * + ( + 53 ) AS col0
----
3710

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

skipif mysql # not compatible
query I rowsort label-1889
SELECT - COUNT ( * ) * - - 56
----
-56

query I rowsort
SELECT - 90 * - + 85 AS col0
----
7650

onlyif mysql # aggregate syntax: 
query I rowsort label-1891
SELECT ALL + + COUNT( * ) * 99 * COALESCE ( ( 68 ), - COUNT( * ) * + 55 )
----
6732

skipif mysql # not compatible
query I rowsort label-1891
SELECT ALL + + COUNT ( * ) * 99 * COALESCE ( ( 68 ), - COUNT ( * ) * + 55 )
----
6732

onlyif mysql # aggregate syntax: 
query I rowsort label-1892
SELECT - + COUNT( + - 81 ) * + 33 * + - 25 + 30
----
855

skipif mysql # not compatible
query I rowsort label-1892
SELECT - + COUNT ( + - 81 ) * + 33 * + - 25 + 30
----
855

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

skipif mysql # not compatible
query II rowsort label-1893
SELECT - 26 AS col0, COUNT ( * ) AS col0
----
-26
1

query I rowsort
SELECT - - 67 + - + 45 AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT DISTINCT + - 46 * COUNT( * ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-1895
SELECT DISTINCT + - 46 * COUNT ( * ) AS col1
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1896
SELECT + COUNT( * ) col0, 1 * - + CAST( 60 AS SIGNED ) col1
----
1
-60

skipif mysql # not compatible
query II rowsort label-1896
SELECT + COUNT ( * ) col0, 1 * - + CAST ( 60 AS INTEGER ) col1
----
1
-60

query I rowsort
SELECT ALL + 2 * - 96 + 73
----
-119

onlyif mysql # aggregate syntax: 
query II rowsort label-1898
SELECT ALL + - 55 * + 27 + 42 + - + 37 AS col2, - COUNT( * ) * + - 15 * + COUNT( + 1 ) AS col0
----
-1480
15

skipif mysql # not compatible
query II rowsort label-1898
SELECT ALL + - 55 * + 27 + 42 + - + 37 AS col2, - COUNT ( * ) * + - 15 * + COUNT ( + 1 ) AS col0
----
-1480
15

onlyif mysql # aggregate syntax: 
query II rowsort label-1899
SELECT DISTINCT + COUNT( * ) AS col1, - 42 + - MIN( - - ( - 57 ) ) + 10 * - COUNT( * ) * - 38 * 55 * 10 * - 77 AS col0
----
1
-16092985

skipif mysql # not compatible
query II rowsort label-1899
SELECT DISTINCT + COUNT ( * ) AS col1, - 42 + - MIN ( - - ( - 57 ) ) + 10 * - COUNT ( * ) * - 38 * 55 * 10 * - 77 AS col0
----
1
-16092985

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

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

query I rowsort
SELECT 71 * 25 - + + 23 + + 51 + - 27 * + 86
----
-519

onlyif mysql # aggregate syntax: 
query I rowsort label-1902
SELECT MAX( - 20 ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-1902
SELECT MAX ( - 20 ) AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1903
SELECT ALL - 23 * + - 42 * + 81 + MIN( ALL + 75 ) AS col0
----
78321

skipif mysql # not compatible
query I rowsort label-1903
SELECT ALL - 23 * + - 42 * + 81 + MIN ( ALL + 75 ) AS col0
----
78321

onlyif mysql # aggregate syntax: 
query II rowsort label-1904
SELECT - 30 - 86 AS col1, - MAX( - 46 ) * NULLIF ( - 24, - 41 ) AS col0
----
-116
-1104

skipif mysql # not compatible
query II rowsort label-1904
SELECT - 30 - 86 AS col1, - MAX ( - 46 ) * NULLIF ( - 24, - 41 ) AS col0
----
-116
-1104

query I rowsort
SELECT - 7 * 71 * + 8
----
-3976

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

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

query I rowsort
SELECT ALL + 99 * - - 27 AS col2
----
2673

query I rowsort
SELECT ALL 94 + - 78
----
16

query I rowsort
SELECT ALL ( + 79 ) col1
----
79

query I rowsort
SELECT DISTINCT - 27 + + 32 + - 36 AS col0
----
-31

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1912
SELECT ALL 59 - + 93 + - + 84 + - + NULLIF ( + COUNT( * ), - 21 ) - + SUM( + 60 )
----
-179

skipif mysql # not compatible
query I rowsort label-1912
SELECT ALL 59 - + 93 + - + 84 + - + NULLIF ( + COUNT ( * ), - 21 ) - + SUM ( + 60 )
----
-179

onlyif mysql # aggregate syntax: 
query I rowsort label-1913
SELECT - COUNT( * ) + + 77 + + 64 - 1
----
139

skipif mysql # not compatible
query I rowsort label-1913
SELECT - COUNT ( * ) + + 77 + + 64 - 1
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-1914
SELECT + COALESCE ( 61, - COUNT( * ), 78, + + 83 ) * 70 * 8 AS col0
----
34160

skipif mysql # not compatible
query I rowsort label-1914
SELECT + COALESCE ( 61, - COUNT ( * ), 78, + + 83 ) * 70 * 8 AS col0
----
34160

onlyif mysql # aggregate syntax: 
query II rowsort label-1915
SELECT - MIN( ALL 98 ), 92 col1
----
-98
92

skipif mysql # not compatible
query II rowsort label-1915
SELECT - MIN ( ALL 98 ), 92 col1
----
-98
92

query I rowsort
SELECT + 17 + - 37 - 38 AS col1
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1917
SELECT + 23 - + CAST( + + COUNT( * ) AS SIGNED ) + + 86 col2
----
108

skipif mysql # not compatible
query I rowsort label-1917
SELECT + 23 - + CAST ( + + COUNT ( * ) AS INTEGER ) + + 86 col2
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-1918
SELECT DISTINCT 87 * COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-1918
SELECT DISTINCT 87 * COUNT ( * )
----
87

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1920
SELECT ALL 16 DIV - 62 AS col2, CAST( 17 AS SIGNED )
----
0
17

skipif mysql # not compatible
query II rowsort label-1920
SELECT ALL 16 / - 62 AS col2, CAST ( 17 AS INTEGER )
----
0
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1921
SELECT DISTINCT + 65 * - + COUNT( * ) + 36 AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-1921
SELECT DISTINCT + 65 * - + COUNT ( * ) + 36 AS col2
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1922
SELECT + + COUNT( DISTINCT 35 ) + + + NULLIF ( + 31, 39 ), 94 DIV + COUNT( * ) + + + 49 + + MIN( + 61 ) AS col1
----
32
204

skipif mysql # not compatible
query II rowsort label-1922
SELECT + + COUNT ( DISTINCT 35 ) + + + NULLIF ( + 31, 39 ), 94 / + COUNT ( * ) + + + 49 + + MIN ( + 61 ) AS col1
----
32
204

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1924
SELECT - 74 / + + MAX( DISTINCT - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1924
SELECT - 74 / + + MAX ( DISTINCT - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1925
SELECT + COUNT( DISTINCT + ( - 19 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1925
SELECT + COUNT ( DISTINCT + ( - 19 ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1926
SELECT + - COUNT( * ) DIV + ( + - 86 ) * + SUM( DISTINCT + - 33 ) DIV + COUNT( * ) + + COUNT( * ) DIV + ( 79 ) * - COUNT( * ), 37 - + 87 AS col2
----
0
-50

skipif mysql # not compatible
query II rowsort label-1926
SELECT + - COUNT ( * ) / + ( + - 86 ) * + SUM ( DISTINCT + - 33 ) / + COUNT ( * ) + + COUNT ( * ) / + ( 79 ) * - COUNT ( * ), 37 - + 87 AS col2
----
0
-50

query I rowsort
SELECT + 49 - 74 + + 74 + - 3 col2
----
46

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1929
SELECT DISTINCT - 76 DIV + 6 * - COUNT( * ) + + MIN( DISTINCT + 91 ) + + CAST( NULLIF ( - 96, MIN( DISTINCT - 68 ) - 8 * + 80 * - 90 + - - 18 ) AS SIGNED ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-1929
SELECT DISTINCT - 76 / + 6 * - COUNT ( * ) + + MIN ( DISTINCT + 91 ) + + CAST ( NULLIF ( - 96, MIN ( DISTINCT - 68 ) - 8 * + 80 * - 90 + - - 18 ) AS INTEGER ) AS col0
----
7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1930
SELECT ALL + 41 / - CAST( NULL AS DECIMAL ) + + CASE + 61 WHEN - 97 THEN NULL ELSE - 24 * - 6 * COUNT( * ) END + + 1 - + 5 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1930
SELECT ALL + 41 / - CAST ( NULL AS REAL ) + + CASE + 61 WHEN - 97 THEN NULL ELSE - 24 * - 6 * COUNT ( * ) END + + 1 - + 5 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1931
SELECT - 90 * - 69 - + 8 * + 10 + 34 * CASE - 67 WHEN + 54 * + 60 THEN - COUNT( DISTINCT + 21 ) + - 25 - - 54 - + 6 * + - CASE - 77 WHEN - - 98 THEN + 32 ELSE NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-1931
SELECT - 90 * - 69 - + 8 * + 10 + 34 * CASE - 67 WHEN + 54 * + 60 THEN - COUNT ( DISTINCT + 21 ) + - 25 - - 54 - + 6 * + - CASE - 77 WHEN - - 98 THEN + 32 ELSE NULL END END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1932
SELECT + - COUNT( DISTINCT + 57 ), 35 AS col0
----
-1
35

skipif mysql # not compatible
query II rowsort label-1932
SELECT + - COUNT ( DISTINCT + 57 ), 35 AS col0
----
-1
35

query I rowsort
SELECT 76 * + + 75 + + 59
----
5759

query I rowsort
SELECT - 71 * + 27 + - - 99
----
-1818

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT ALL - MAX( ALL - 19 ) * - COUNT( * ) + - - 13 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-1935
SELECT ALL - MAX ( ALL - 19 ) * - COUNT ( * ) + - - 13 AS col0
----
-6

query I rowsort
SELECT ALL ( + 71 ) * 58
----
4118

query I rowsort
SELECT - 1 + - 81 AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT NULLIF ( - 24, + - CASE 50 WHEN - 26 + - 33 THEN NULL WHEN - - 8 + - - COUNT( * ) + + AVG ( - 14 ) + + + COUNT( * ) THEN 51 * NULLIF ( + - 63, - 51 ) * + + 18 / + NULLIF ( - + 22, 56 * 54 + + 41 ) + - COUNT( * ) WHEN - 33 THEN NULL END * 13 ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-1938
SELECT NULLIF ( - 24, + - CASE 50 WHEN - 26 + - 33 THEN NULL WHEN - - 8 + - - COUNT ( * ) + + AVG ( - 14 ) + + + COUNT ( * ) THEN 51 * NULLIF ( + - 63, - 51 ) * + + 18 / + NULLIF ( - + 22, 56 * 54 + + 41 ) + - COUNT ( * ) WHEN - 33 THEN NULL END * 13 ) AS col2
----
-24

query I rowsort
SELECT + 27 * - 87 + + 16
----
-2333

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1940
SELECT COALESCE ( - + COUNT( + 35 ), - 80, + MAX( + - 40 ) ), + CAST( NULL AS DECIMAL ) AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1940
SELECT COALESCE ( - + COUNT ( + 35 ), - 80, + MAX ( + - 40 ) ), + CAST ( NULL AS REAL ) AS col2
----
-1
NULL

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

skipif mysql # not compatible
query I rowsort label-1941
SELECT - SUM ( ALL + - 63 ) AS col1
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1942
SELECT ALL CAST( + - NULLIF ( - + CASE - - CAST( NULL AS SIGNED ) WHEN 10 - - 83 + - 39 THEN NULLIF ( + MIN( + 85 ), + AVG ( DISTINCT - - 55 ) ) END, + 24 * + - COUNT( * ) ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1942
SELECT ALL CAST ( + - NULLIF ( - + CASE - - CAST ( NULL AS INTEGER ) WHEN 10 - - 83 + - 39 THEN NULLIF ( + MIN ( + 85 ), + AVG ( DISTINCT - - 55 ) ) END, + 24 * + - COUNT ( * ) ) AS REAL )
----
NULL

query I rowsort
SELECT - 47 * - 31 AS col1
----
1457

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

skipif mysql # not compatible
query I rowsort label-1944
SELECT - 58 + + - COUNT ( * ) + - ( + 0 ) * + 29 AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT MAX( DISTINCT - 28 ) + + 18 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-1945
SELECT MAX ( DISTINCT - 28 ) + + 18 AS col1
----
-10

query I rowsort
SELECT DISTINCT + 32 * - 88 AS col1
----
-2816

onlyif mysql # DIV for integer division: 
query I rowsort label-1947
SELECT 66 DIV - 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1947
SELECT 66 / - 89 AS col1
----
0

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

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

query I rowsort
SELECT ALL + 50 * + - 98 AS col2
----
-4900

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

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

query II rowsort
SELECT DISTINCT 32, 71 + + 86 AS col2
----
32
157

onlyif mysql # aggregate syntax: 
query I rowsort label-1952
SELECT DISTINCT + 33 * - 62 * - - COUNT( * ) AS col0
----
-2046

skipif mysql # not compatible
query I rowsort label-1952
SELECT DISTINCT + 33 * - 62 * - - COUNT ( * ) AS col0
----
-2046

query II rowsort
SELECT ALL + 0 AS col2, + COALESCE ( - - 82, + + 98 * + 45, + + 53 ) + 2
----
0
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1954
SELECT 33 * COUNT( ALL - 55 ) * 91
----
3003

skipif mysql # not compatible
query I rowsort label-1954
SELECT 33 * COUNT ( ALL - 55 ) * 91
----
3003

query I rowsort
SELECT + 84 + - 54
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1956
SELECT COUNT( * ) - - - 81 col2
----
-80

skipif mysql # not compatible
query I rowsort label-1956
SELECT COUNT ( * ) - - - 81 col2
----
-80

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

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

query I rowsort
SELECT 12 * 21 AS col0
----
252

onlyif mysql # aggregate syntax: 
query II rowsort label-1959
SELECT ALL 50 + COUNT( + + ( - - 63 ) ) AS col1, 14 AS col2
----
51
14

skipif mysql # not compatible
query II rowsort label-1959
SELECT ALL 50 + COUNT ( + + ( - - 63 ) ) AS col1, 14 AS col2
----
51
14

query I rowsort
SELECT ALL + 51 + 87 col1
----
138

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

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

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

query I rowsort
SELECT ALL + 59 + - 72 AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1964
SELECT MAX( DISTINCT 75 )
----
75

skipif mysql # not compatible
query I rowsort label-1964
SELECT MAX ( DISTINCT 75 )
----
75

query II rowsort
SELECT 49 AS col0, + 53 AS col1
----
49
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1966
SELECT + CASE 62 WHEN COUNT( * ) * 73 + - 56 DIV - - 4 + - 1 THEN - COALESCE ( 19, + 87 - 18 + + 9 - 40 DIV - + 71 ) ELSE 86 DIV - 91 - + 57 + + 87 * + + 54 END
----
4641

skipif mysql # not compatible
query I rowsort label-1966
SELECT + CASE 62 WHEN COUNT ( * ) * 73 + - 56 / - - 4 + - 1 THEN - COALESCE ( 19, + 87 - 18 + + 9 - 40 / - + 71 ) ELSE 86 / - 91 - + 57 + + 87 * + + 54 END
----
4641

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1967
SELECT CAST( NULL AS SIGNED ) * 75 / + 74 * + 93 * 61
----
NULL

skipif mysql # not compatible
query I rowsort label-1967
SELECT CAST ( NULL AS INTEGER ) * 75 / + 74 * + 93 * 61
----
NULL

query II rowsort
SELECT ALL - + 57, - ( + ( - + 98 ) ) AS col0
----
-57
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT MAX( + 23 ) * + 13 + + COUNT( * ) AS col1
----
300

skipif mysql # not compatible
query I rowsort label-1969
SELECT MAX ( + 23 ) * + 13 + + COUNT ( * ) AS col1
----
300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1970
SELECT + 49 DIV + - 4 + - MAX( - 8 ) + 26 DIV + + 8
----
-1

skipif mysql # not compatible
query I rowsort label-1970
SELECT + 49 / + - 4 + - MAX ( - 8 ) + 26 / + + 8
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1972
SELECT DISTINCT - CASE + + COUNT( * ) WHEN NULLIF ( - - COUNT( * ), + + 24 ) THEN - 52 WHEN + 24 THEN 14 WHEN 37 + ( + + COUNT( * ) ) THEN NULL END
----
52

skipif mysql # not compatible
query I rowsort label-1972
SELECT DISTINCT - CASE + + COUNT ( * ) WHEN NULLIF ( - - COUNT ( * ), + + 24 ) THEN - 52 WHEN + 24 THEN 14 WHEN 37 + ( + + COUNT ( * ) ) THEN NULL END
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1973
SELECT DISTINCT COUNT( * ) - - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-1973
SELECT DISTINCT COUNT ( * ) - - COUNT ( * )
----
2

query I rowsort
SELECT DISTINCT + 35 * - 87 AS col1
----
-3045

onlyif mysql # aggregate syntax: 
query I rowsort label-1975
SELECT DISTINCT - MAX( DISTINCT - + 60 ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-1975
SELECT DISTINCT - MAX ( DISTINCT - + 60 ) AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1976
SELECT DISTINCT - MIN( ALL - 73 )
----
73

skipif mysql # not compatible
query I rowsort label-1976
SELECT DISTINCT - MIN ( ALL - 73 )
----
73

query I rowsort
SELECT 9 * - - 91 - 5
----
814

query I rowsort
SELECT 66 * + + 5 col1
----
330

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1979
SELECT ALL - 18 * + + CAST( NULL AS SIGNED ) * - ( + - COUNT( * ) ) AS col2, + 8 * - + 83 * + - 57 + - 63 AS col1
----
NULL
37785

skipif mysql # not compatible
query II rowsort label-1979
SELECT ALL - 18 * + + CAST ( NULL AS INTEGER ) * - ( + - COUNT ( * ) ) AS col2, + 8 * - + 83 * + - 57 + - 63 AS col1
----
NULL
37785

query II rowsort
SELECT 50 + - - 96 AS col2, - 72 AS col1
----
146
-72

query I rowsort
SELECT 56 * - 11
----
-616

onlyif mysql # aggregate syntax: 
query I rowsort label-1982
SELECT 76 - + COUNT( * ) - - - COUNT( * ) + + 83 * 77
----
6465

skipif mysql # not compatible
query I rowsort label-1982
SELECT 76 - + COUNT ( * ) - - - COUNT ( * ) + + 83 * 77
----
6465

onlyif mysql # aggregate syntax: 
query I rowsort label-1983
SELECT ALL - CASE + ( 36 ) WHEN + + 40 THEN 7 END / + COUNT( * ) + - - AVG ( - + 71 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1983
SELECT ALL - CASE + ( 36 ) WHEN + + 40 THEN 7 END / + COUNT ( * ) + - - AVG ( - + 71 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1984
SELECT 85 - CASE - 70 WHEN 78 * 99 THEN + + COUNT( * ) * + 68 * 16 * + 56 - + 13 + + AVG ( 47 ) * 63 - + COUNT( DISTINCT + + 5 ) + AVG ( DISTINCT + 47 ) END * 16 - + 21 * - 36 + + AVG ( DISTINCT + + 46 ) - - - CASE - COUNT( DISTINCT 8 ) WHEN + 80 THEN 27 ELSE - COUNT( DISTINCT + 82 ) - CAST( NULL AS SIGNED ) END * 48
----
NULL

skipif mysql # not compatible
query I rowsort label-1984
SELECT 85 - CASE - 70 WHEN 78 * 99 THEN + + COUNT ( * ) * + 68 * 16 * + 56 - + 13 + + AVG ( 47 ) * 63 - + COUNT ( DISTINCT + + 5 ) + AVG ( DISTINCT + 47 ) END * 16 - + 21 * - 36 + + AVG ( DISTINCT + + 46 ) - - - CASE - COUNT ( DISTINCT 8 ) WHEN + 80 THEN 27 ELSE - COUNT ( DISTINCT + 82 ) - CAST ( NULL AS INTEGER ) END * 48
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1985
SELECT ( + 39 ) DIV + 88
----
0

skipif mysql # not compatible
query I rowsort label-1985
SELECT ( + 39 ) / + 88
----
0

query I rowsort
SELECT + 73 + + + 88
----
161

query I rowsort
SELECT DISTINCT - 82 + NULLIF ( 23, - - 39 * 18 + + ( 44 ) )
----
-59

query I rowsort
SELECT ALL - - 6 * 68 AS col2
----
408

onlyif mysql # DIV for integer division: 
query I rowsort label-1989
SELECT 81 DIV + - 54 - + 98 AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-1989
SELECT 81 / + - 54 - + 98 AS col2
----
-99

query II rowsort
SELECT ALL - 55 + + 23, - 72 * + + 69 AS col2
----
-32
-4968

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1991
SELECT ALL - + ( - 33 ) + + 30 + CAST( NULL AS DECIMAL ) / - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-1991
SELECT ALL - + ( - 33 ) + + 30 + CAST ( NULL AS REAL ) / - 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT DISTINCT - - CASE + - 61 WHEN - MAX( DISTINCT + + 34 ) + - 8 THEN + + 17 ELSE NULL END + + - 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1992
SELECT DISTINCT - - CASE + - 61 WHEN - MAX ( DISTINCT + + 34 ) + - 8 THEN + + 17 ELSE NULL END + + - 77 AS col1
----
NULL

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

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

query I rowsort
SELECT DISTINCT 66 + - 68 + + - 66
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-1995
SELECT 19 + + 85 + MAX( DISTINCT 66 ) * 57 AS col0
----
3866

skipif mysql # not compatible
query I rowsort label-1995
SELECT 19 + + 85 + MAX ( DISTINCT 66 ) * 57 AS col0
----
3866

query I rowsort
SELECT - - ( - 56 )
----
-56

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1998
SELECT + CAST( + 69 AS SIGNED ) AS col1, - 18 col1
----
69
-18

skipif mysql # not compatible
query II rowsort label-1998
SELECT + CAST ( + 69 AS INTEGER ) AS col1, - 18 col1
----
69
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1999
SELECT 59 / 92 * + + CAST( NULL AS SIGNED ) + - 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1999
SELECT 59 / 92 * + + CAST ( NULL AS INTEGER ) + - 74 AS col2
----
NULL

query I rowsort
SELECT - 81 * - - 74 AS col1
----
-5994

onlyif mysql # aggregate syntax: 
query II rowsort label-2001
SELECT 76 + COUNT( * ), SUM( DISTINCT 15 ) AS col0
----
77
15

skipif mysql # not compatible
query II rowsort label-2001
SELECT 76 + COUNT ( * ), SUM ( DISTINCT 15 ) AS col0
----
77
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2002
SELECT ALL CAST( + - NULLIF ( 5, - + 79 ) AS SIGNED ) * 35 * - 53 + + + COALESCE ( + 22, 41 * - 71 * 39 + - + SUM( ALL - - 0 ) + + ( - - 71 ) )
----
9297

skipif mysql # not compatible
query I rowsort label-2002
SELECT ALL CAST ( + - NULLIF ( 5, - + 79 ) AS INTEGER ) * 35 * - 53 + + + COALESCE ( + 22, 41 * - 71 * 39 + - + SUM ( ALL - - 0 ) + + ( - - 71 ) )
----
9297

query I rowsort
SELECT ALL 95 * - 6 AS col2
----
-570

query I rowsort
SELECT 41 + - + 87 AS col2
----
-46

query II rowsort
SELECT ALL - 15 AS col2, 16
----
-15
16

query I rowsort
SELECT + 75 * + + 69 + + + 66 + + 34 AS col1
----
5275

query I rowsort
SELECT 25 * 9 AS col2
----
225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2008
SELECT COUNT( * ) DIV - + CAST( + AVG ( DISTINCT + 28 ) AS SIGNED ) + - 91
----
-91

skipif mysql # not compatible
query I rowsort label-2008
SELECT COUNT ( * ) / - + CAST ( + AVG ( DISTINCT + 28 ) AS INTEGER ) + - 91
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2009
SELECT SUM( - 41 ) * - COUNT( * ) + ( + 10 ) + + 32 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-2009
SELECT SUM ( - 41 ) * - COUNT ( * ) + ( + 10 ) + + 32 AS col0
----
83

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

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

query I rowsort
SELECT 41 + 20
----
61

query I rowsort
SELECT 76 - - 54 + + 36 * - 13
----
-338

onlyif mysql # aggregate syntax: 
query I rowsort label-2013
SELECT + COUNT( * ) * + MIN( DISTINCT 64 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-2013
SELECT + COUNT ( * ) * + MIN ( DISTINCT 64 ) AS col1
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-2014
SELECT + 18 * - - 14 + - COUNT( * ) AS col1, 10 AS col2
----
251
10

skipif mysql # not compatible
query II rowsort label-2014
SELECT + 18 * - - 14 + - COUNT ( * ) AS col1, 10 AS col2
----
251
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2015
SELECT + 11 * + SUM( + 4 ) * - + 4
----
-176

skipif mysql # not compatible
query I rowsort label-2015
SELECT + 11 * + SUM ( + 4 ) * - + 4
----
-176

onlyif mysql # DIV for integer division: 
query I rowsort label-2016
SELECT ALL 76 DIV - + ( + ( - 87 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2016
SELECT ALL 76 / - + ( + ( - 87 ) )
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2018
SELECT ALL 93 DIV + 1
----
93

skipif mysql # not compatible
query I rowsort label-2018
SELECT ALL 93 / + 1
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-2019
SELECT ALL - SUM( 31 ) + - + 92 AS col1, + MIN( 17 )
----
-123
17

skipif mysql # not compatible
query II rowsort label-2019
SELECT ALL - SUM ( 31 ) + - + 92 AS col1, + MIN ( 17 )
----
-123
17

query I rowsort
SELECT + 81 * 4
----
324

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2021
SELECT ALL MIN( + CAST( NULL AS SIGNED ) ) + + 23 AS col0, + 86 AS col0
----
NULL
86

skipif mysql # not compatible
query II rowsort label-2021
SELECT ALL MIN ( + CAST ( NULL AS INTEGER ) ) + + 23 AS col0, + 86 AS col0
----
NULL
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2022
SELECT + 66 + - 55 - 97 * COUNT( * ) col1
----
-86

skipif mysql # not compatible
query I rowsort label-2022
SELECT + 66 + - 55 - 97 * COUNT ( * ) col1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-2023
SELECT ALL + CASE + + 19 WHEN - 35 + + - SUM( ALL 60 ) THEN - + 26 * - 0 END + - + 86 / 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2023
SELECT ALL + CASE + + 19 WHEN - 35 + + - SUM ( ALL 60 ) THEN - + 26 * - 0 END + - + 86 / 27 AS col1
----
NULL

query I rowsort
SELECT ALL 54 + 11
----
65

query II rowsort
SELECT - - 96 AS col0, - 6
----
96
-6

query I rowsort
SELECT ALL - 4 + - - 45 AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT MIN( - + 34 ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-2027
SELECT MIN ( - + 34 ) AS col1
----
-34

query I rowsort
SELECT ALL - CASE 26 WHEN - 47 THEN NULL WHEN - 29 THEN 59 ELSE - 41 END AS col1
----
41

query I rowsort
SELECT - ( - 41 ) + - 16
----
25

query I rowsort
SELECT - - 65 * - 19 - 20 AS col2
----
-1255

query II rowsort
SELECT ALL + 32 col1, 90
----
32
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2032
SELECT DISTINCT NULLIF ( + + 78, + - COUNT( - - 46 ) )
----
78

skipif mysql # not compatible
query I rowsort label-2032
SELECT DISTINCT NULLIF ( + + 78, + - COUNT ( - - 46 ) )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2033
SELECT ALL + ( COUNT( * ) ) + + 0 * - + 70 - + + 98 + - 58 AS col2
----
-155

skipif mysql # not compatible
query I rowsort label-2033
SELECT ALL + ( COUNT ( * ) ) + + 0 * - + 70 - + + 98 + - 58 AS col2
----
-155

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

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

query II rowsort
SELECT ALL + 8, 60 AS col0
----
8
60

query I rowsort
SELECT - 86 - + 73
----
-159

query I rowsort
SELECT - 56 * + - 78 AS col0
----
4368

query I rowsort
SELECT DISTINCT + + 61 - - 20 + + 15
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-2039
SELECT ALL - - 98 * 66 + + 23 + - 55 * - 8, - 21 * - COUNT( * ) AS col2
----
6931
21

skipif mysql # not compatible
query II rowsort label-2039
SELECT ALL - - 98 * 66 + + 23 + - 55 * - 8, - 21 * - COUNT ( * ) AS col2
----
6931
21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2040
SELECT DISTINCT + 49 - - 28 + 45 + + ( 39 ) AS col1, + CASE - 24 WHEN + + CAST( NULL AS SIGNED ) THEN - 86 ELSE NULL END AS col2
----
161
NULL

skipif mysql # not compatible
query II rowsort label-2040
SELECT DISTINCT + 49 - - 28 + 45 + + ( 39 ) AS col1, + CASE - 24 WHEN + + CAST ( NULL AS INTEGER ) THEN - 86 ELSE NULL END AS col2
----
161
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2041
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) * - 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2041
SELECT DISTINCT - - CAST ( NULL AS REAL ) * - 62 AS col1
----
NULL

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

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

query I rowsort
SELECT ALL - 58 * 29
----
-1682

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2044
SELECT ALL + 22 AS col1, - 21 - + 85 + COUNT( * ) DIV + NULLIF ( - 56, + COUNT( * ) ) * - ( 48 ) AS col2
----
22
-106

skipif mysql # not compatible
query II rowsort label-2044
SELECT ALL + 22 AS col1, - 21 - + 85 + COUNT ( * ) / + NULLIF ( - 56, + COUNT ( * ) ) * - ( 48 ) AS col2
----
22
-106

query I rowsort
SELECT ( 60 ) AS col0
----
60

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2047
SELECT COUNT( * ) * + + COUNT( * ) DIV - - 42 + - - NULLIF ( + 27, + 46 )
----
27

skipif mysql # not compatible
query I rowsort label-2047
SELECT COUNT ( * ) * + + COUNT ( * ) / - - 42 + - - NULLIF ( + 27, + 46 )
----
27

query II rowsort
SELECT ALL + 21, - 86 * ( 54 ) col2
----
21
-4644

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

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

query II rowsort
SELECT DISTINCT 23 * - + 45 AS col0, + 44
----
-1035
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2052
SELECT ALL + 91 * + + CAST( 56 AS SIGNED ) AS col2
----
5096

skipif mysql # not compatible
query I rowsort label-2052
SELECT ALL + 91 * + + CAST ( 56 AS INTEGER ) AS col2
----
5096

onlyif mysql # aggregate syntax: 
query I rowsort label-2053
SELECT ALL 20 * + + 20 + - COUNT( * )
----
399

skipif mysql # not compatible
query I rowsort label-2053
SELECT ALL 20 * + + 20 + - COUNT ( * )
----
399

onlyif mysql # aggregate syntax: 
query I rowsort label-2054
SELECT MAX( DISTINCT - 70 ) * 70 - - 15 * + 44
----
-4240

skipif mysql # not compatible
query I rowsort label-2054
SELECT MAX ( DISTINCT - 70 ) * 70 - - 15 * + 44
----
-4240

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

skipif mysql # not compatible
query I rowsort label-2055
SELECT + 16 / - COUNT ( * )
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2056
SELECT + 38 * 86 - NULLIF ( - 86, + 87 + 51 * + 38 ) + - 60 + - CAST( - 72 AS SIGNED ) * 1 AS col0
----
3366

skipif mysql # not compatible
query I rowsort label-2056
SELECT + 38 * 86 - NULLIF ( - 86, + 87 + 51 * + 38 ) + - 60 + - CAST ( - 72 AS INTEGER ) * 1 AS col0
----
3366

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

skipif mysql # not compatible
query I rowsort label-2057
SELECT + ( + + 8 ) / - 67 * COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT + 4 + + NULLIF ( MIN( ALL + + 56 ), + 83 * - 59 * 38 + - + 24 + + + 85 )
----
60

skipif mysql # not compatible
query I rowsort label-2058
SELECT + 4 + + NULLIF ( MIN ( ALL + + 56 ), + 83 * - 59 * 38 + - + 24 + + + 85 )
----
60

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

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

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

skipif mysql # not compatible
query II rowsort label-2060
SELECT ALL + 55, COUNT ( * ) col1
----
55
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2061
SELECT DISTINCT 99 DIV + + COUNT( * ) + 93 AS col2
----
192

skipif mysql # not compatible
query I rowsort label-2061
SELECT DISTINCT 99 / + + COUNT ( * ) + 93 AS col2
----
192

query I rowsort
SELECT + - 60 + + 31 + + 44
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-2063
SELECT ALL - 75 * 39 * MAX( ALL + - ( - 46 ) ) + - 51, - 5 * 29 * + 31 - + - 41 * - 19 AS col0
----
-134601
-5274

skipif mysql # not compatible
query II rowsort label-2063
SELECT ALL - 75 * 39 * MAX ( ALL + - ( - 46 ) ) + - 51, - 5 * 29 * + 31 - + - 41 * - 19 AS col0
----
-134601
-5274

query II rowsort
SELECT DISTINCT 51 AS col2, + 11 AS col2
----
51
11

onlyif mysql # DIV for integer division: 
query I rowsort label-2065
SELECT DISTINCT - COALESCE ( 80, + 83 * - + 80 + - - 39 * - 7 + 61 * + 11 ) DIV - 33
----
2

skipif mysql # not compatible
query I rowsort label-2065
SELECT DISTINCT - COALESCE ( 80, + 83 * - + 80 + - - 39 * - 7 + 61 * + 11 ) / - 33
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT + COUNT( * ) - - COUNT( * ) * + 89
----
90

skipif mysql # not compatible
query I rowsort label-2066
SELECT + COUNT ( * ) - - COUNT ( * ) * + 89
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2067
SELECT + COUNT( * ) * - + MIN( ALL + - 45 ) col0
----
45

skipif mysql # not compatible
query I rowsort label-2067
SELECT + COUNT ( * ) * - + MIN ( ALL + - 45 ) col0
----
45

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

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

query II rowsort
SELECT - 91 AS col1, 29 * - 34 + - 0
----
-91
-986

onlyif mysql # aggregate syntax: 
query I rowsort label-2070
SELECT ALL NULLIF ( - + COUNT( * ), + 48 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2070
SELECT ALL NULLIF ( - + COUNT ( * ), + 48 ) AS col0
----
-1

query I rowsort
SELECT + 84 + 87 * - 85 AS col0
----
-7311

onlyif mysql # DIV for integer division: 
query I rowsort label-2072
SELECT - - 53 - - - 12 * - 2 DIV 14 DIV - 52 * 34 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-2072
SELECT - - 53 - - - 12 * - 2 / 14 / - 52 * 34 AS col2
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2073
SELECT DISTINCT + 85, ( - 4 ) * 32 + 11 + - ( - 88 ) DIV 45 * + + 27 * - + 50 * NULLIF ( - 24, + - SUM( ALL - + 27 ) ) AS col1
----
85
32283

skipif mysql # not compatible
query II rowsort label-2073
SELECT DISTINCT + 85, ( - 4 ) * 32 + 11 + - ( - 88 ) / 45 * + + 27 * - + 50 * NULLIF ( - 24, + - SUM ( ALL - + 27 ) ) AS col1
----
85
32283

query I rowsort
SELECT DISTINCT 72 * 2 AS col2
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2075
SELECT ALL - 46, CAST( NULL AS SIGNED ) + + + NULLIF ( 89, - CAST( - + 39 AS SIGNED ) ) + - 43 AS col0
----
-46
NULL

skipif mysql # not compatible
query II rowsort label-2075
SELECT ALL - 46, CAST ( NULL AS INTEGER ) + + + NULLIF ( 89, - CAST ( - + 39 AS INTEGER ) ) + - 43 AS col0
----
-46
NULL

query I rowsort
SELECT - + 93 * - 70 * 28 AS col0
----
182280

query I rowsort
SELECT DISTINCT + 65 - 36 AS col0
----
29

query II rowsort
SELECT 24, - 8 AS col1
----
24
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2079
SELECT + COUNT( * ) DIV - + COUNT( * ) col1, 17 * - - 89
----
-1
1513

skipif mysql # not compatible
query II rowsort label-2079
SELECT + COUNT ( * ) / - + COUNT ( * ) col1, 17 * - - 89
----
-1
1513

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

skipif mysql # not compatible
query I rowsort label-2080
SELECT CAST ( NULL AS INTEGER ) + 52 col2
----
NULL

query I rowsort
SELECT DISTINCT + 77 * - 74 AS col1
----
-5698

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2082
SELECT 86 DIV + 99 + + COUNT( * ) + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2082
SELECT 86 / + 99 + + COUNT ( * ) + COUNT ( * ) AS col1
----
2

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

query I rowsort
SELECT ALL + 50 * - 38 * - 13 * - 68
----
-1679600

onlyif mysql # aggregate syntax: 
query I rowsort label-2085
SELECT 66 + - ( - COALESCE ( + MIN( + 8 ), COUNT( * ) + + 80, 93 ) )
----
74

skipif mysql # not compatible
query I rowsort label-2085
SELECT 66 + - ( - COALESCE ( + MIN ( + 8 ), COUNT ( * ) + + 80, 93 ) )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2086
SELECT DISTINCT 18 * - + COUNT( * ) col1
----
-18

skipif mysql # not compatible
query I rowsort label-2086
SELECT DISTINCT 18 * - + COUNT ( * ) col1
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-2087
SELECT 76 + - 0 + - NULLIF ( COUNT( * ), - 52 ) * - MIN( + 45 ) * - + 54 * + 43 + + + 15 col0, COUNT( * ) AS col2
----
-104399
1

skipif mysql # not compatible
query II rowsort label-2087
SELECT 76 + - 0 + - NULLIF ( COUNT ( * ), - 52 ) * - MIN ( + 45 ) * - + 54 * + 43 + + + 15 col0, COUNT ( * ) AS col2
----
-104399
1

query I rowsort
SELECT DISTINCT + 5 + - 73 * 78 + - 35
----
-5724

query I rowsort
SELECT 59 * 71 AS col0
----
4189

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2090
SELECT + 35 / CAST( NULL AS SIGNED ) + + COUNT( DISTINCT + + 98 ) + - + 82 + - - COUNT( + + 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2090
SELECT + 35 / CAST ( NULL AS INTEGER ) + + COUNT ( DISTINCT + + 98 ) + - + 82 + - - COUNT ( + + 44 )
----
NULL

query II rowsort
SELECT ALL + 87 + + 83 col1, + 95
----
170
95

query II rowsort
SELECT 66 + - 91, 1 + - 14 + + - 35 * 99 AS col0
----
-25
-3478

onlyif mysql # aggregate syntax: 
query I rowsort label-2093
SELECT 87 * + NULLIF ( ( + 66 ), + 42 * + - 72 ) * - 52 / CASE - 5 WHEN 17 + - 29 * + - SUM( + NULLIF ( + 66, + + 37 * + 85 ) ) + - ( 25 ) * 27 + - 60 THEN NULL WHEN + 45 THEN - + 76 * - + ( - - 47 ) + + COUNT( * ) END + COUNT( + 46 ) + NULLIF ( - 89, - NULLIF ( - 18, - NULLIF ( 30, 25 ) ) ) + - 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2093
SELECT 87 * + NULLIF ( ( + 66 ), + 42 * + - 72 ) * - 52 / CASE - 5 WHEN 17 + - 29 * + - SUM ( + NULLIF ( + 66, + + 37 * + 85 ) ) + - ( 25 ) * 27 + - 60 THEN NULL WHEN + 45 THEN - + 76 * - + ( - - 47 ) + + COUNT ( * ) END + COUNT ( + 46 ) + NULLIF ( - 89, - NULLIF ( - 18, - NULLIF ( 30, 25 ) ) ) + - 84 AS col0
----
NULL

query II rowsort
SELECT ALL - ( + 32 ) AS col0, - 33 + + 88
----
-32
55

query I rowsort
SELECT + 72 * + 22 + + + 84
----
1668

query I rowsort
SELECT DISTINCT + 42 + + - 30 AS col2
----
12

query I rowsort
SELECT ALL 92 + - ( + - 8 ) - + 87 * - 95 AS col1
----
8365

query I rowsort
SELECT ALL 5 + - 60 - + - 19 col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2099
SELECT - CASE + 60 WHEN - 65 THEN 86 END + + COUNT( * ) * + 56 * + COUNT( * ) * - NULLIF ( 92, + COUNT( * ) ) - + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2099
SELECT - CASE + 60 WHEN - 65 THEN 86 END + + COUNT ( * ) * + 56 * + COUNT ( * ) * - NULLIF ( 92, + COUNT ( * ) ) - + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2100
SELECT ALL + - MIN( - 28 ) * + 66 AS col1
----
1848

skipif mysql # not compatible
query I rowsort label-2100
SELECT ALL + - MIN ( - 28 ) * + 66 AS col1
----
1848

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2101
SELECT DISTINCT + SUM( DISTINCT - + 3 ) - - COUNT( DISTINCT - NULLIF ( - 41, - 15 * + + 27 - - 49 * + 42 * - CASE - - ( - 88 ) WHEN 6 + + - 93 THEN NULL WHEN - ( + 94 ) THEN NULL WHEN ( - 3 ) * + 21 + - 35 THEN - ( COALESCE ( 7, + - 74 ) ) * + + CAST( NULL AS SIGNED ) ELSE + 40 * + 2 END + 33 ) ) DIV - 34
----
-3

skipif mysql # not compatible
query I rowsort label-2101
SELECT DISTINCT + SUM ( DISTINCT - + 3 ) - - COUNT ( DISTINCT - NULLIF ( - 41, - 15 * + + 27 - - 49 * + 42 * - CASE - - ( - 88 ) WHEN 6 + + - 93 THEN NULL WHEN - ( + 94 ) THEN NULL WHEN ( - 3 ) * + 21 + - 35 THEN - ( COALESCE ( 7, + - 74 ) ) * + + CAST ( NULL AS INTEGER ) ELSE + 40 * + 2 END + 33 ) ) / - 34
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2102
SELECT ALL + - COUNT( * ) - - MAX( DISTINCT 37 ) AS col1, + CASE + 29 WHEN + - ( - ( + 25 ) ) + + CAST( 90 AS SIGNED ) + 0 * - + COUNT( ( + 84 ) ) THEN + 61 + + - CASE + - 90 WHEN 27 * + - CAST( - 22 AS SIGNED ) * 18 - ( - - 30 ) + - 23 * - CASE - - 20 WHEN - 44 THEN COUNT( * ) * + 13 END * 23 + CAST( NULL AS SIGNED ) THEN NULL WHEN + 25 THEN 42 / COUNT( * ) - + COUNT( * ) END * NULLIF ( COUNT( * ), - 87 ) ELSE NULL END / - 44 AS col2
----
36
NULL

skipif mysql # not compatible
query II rowsort label-2102
SELECT ALL + - COUNT ( * ) - - MAX ( DISTINCT 37 ) AS col1, + CASE + 29 WHEN + - ( - ( + 25 ) ) + + CAST ( 90 AS INTEGER ) + 0 * - + COUNT ( ( + 84 ) ) THEN + 61 + + - CASE + - 90 WHEN 27 * + - CAST ( - 22 AS INTEGER ) * 18 - ( - - 30 ) + - 23 * - CASE - - 20 WHEN - 44 THEN COUNT ( * ) * + 13 END * 23 + CAST ( NULL AS INTEGER ) THEN NULL WHEN + 25 THEN 42 / COUNT ( * ) - + COUNT ( * ) END * NULLIF ( COUNT ( * ), - 87 ) ELSE NULL END / - 44 AS col2
----
36
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT 35 + + 86 - + NULLIF ( - NULLIF ( - + 94, - 17 ), COUNT( * ) ) * - + 15 AS col1
----
1531

skipif mysql # not compatible
query I rowsort label-2103
SELECT 35 + + 86 - + NULLIF ( - NULLIF ( - + 94, - 17 ), COUNT ( * ) ) * - + 15 AS col1
----
1531

query II rowsort
SELECT - + ( + 21 ), 1 * + 8 AS col0
----
-21
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2105
SELECT CAST( + 41 AS SIGNED ) + - 27
----
14

skipif mysql # not compatible
query I rowsort label-2105
SELECT CAST ( + 41 AS INTEGER ) + - 27
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2106
SELECT - 78 * - - 92 - + 91 + - - NULLIF ( - - 17, - 60 - - 17 + + AVG ( DISTINCT - 29 ) * - 55 + - 99 ) DIV + + 89 * + + CAST( + 47 AS SIGNED ) + - SUM( ALL - - 38 )
----
-7305

skipif mysql # not compatible
query I rowsort label-2106
SELECT - 78 * - - 92 - + 91 + - - NULLIF ( - - 17, - 60 - - 17 + + AVG ( DISTINCT - 29 ) * - 55 + - 99 ) / + + 89 * + + CAST ( + 47 AS INTEGER ) + - SUM ( ALL - - 38 )
----
-7305

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2107
SELECT ALL COUNT( * ) DIV + 51 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-2107
SELECT ALL COUNT ( * ) / + 51 + + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2108
SELECT ALL NULLIF ( - SUM( ALL - - 65 ), COUNT( * ) ) - + 75 col2, + CASE + 86 WHEN - SUM( - NULLIF ( + 28, 34 ) ) THEN NULL WHEN + 44 * + 42 + + + 74 * COUNT( * ) THEN 90 END AS col1
----
-140
NULL

skipif mysql # not compatible
query II rowsort label-2108
SELECT ALL NULLIF ( - SUM ( ALL - - 65 ), COUNT ( * ) ) - + 75 col2, + CASE + 86 WHEN - SUM ( - NULLIF ( + 28, 34 ) ) THEN NULL WHEN + 44 * + 42 + + + 74 * COUNT ( * ) THEN 90 END AS col1
----
-140
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2109
SELECT 74 DIV ( + 21 ) * - 16
----
-48

skipif mysql # not compatible
query I rowsort label-2109
SELECT 74 / ( + 21 ) * - 16
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2110
SELECT ALL 74 DIV 90 * COUNT( 57 )
----
0

skipif mysql # not compatible
query I rowsort label-2110
SELECT ALL 74 / 90 * COUNT ( 57 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2111
SELECT ALL 44 * NULLIF ( + - 50, - 79 / 50 + - COUNT( * ) + - ( + 97 ) ) AS col2
----
-2200

skipif mysql # not compatible
query I rowsort label-2111
SELECT ALL 44 * NULLIF ( + - 50, - 79 / 50 + - COUNT ( * ) + - ( + 97 ) ) AS col2
----
-2200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2112
SELECT ALL + COUNT( * ) DIV 45 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2112
SELECT ALL + COUNT ( * ) / 45 AS col1
----
0

query II rowsort
SELECT + 58 * 91 col0, - 35 - 77
----
5278
-112

query I rowsort
SELECT + 27 + + 84 AS col0
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-2115
SELECT DISTINCT 6 * - COUNT( * ) + + - 31
----
-37

skipif mysql # not compatible
query I rowsort label-2115
SELECT DISTINCT 6 * - COUNT ( * ) + + - 31
----
-37

query I rowsort
SELECT ALL 13 * + 92 AS col1
----
1196

onlyif mysql # aggregate syntax: 
query I rowsort label-2117
SELECT ( NULLIF ( + ( - COUNT( * ) ), + AVG ( DISTINCT + - 2 ) ) ) * + 78 - 20 * - + 17 - + 83 * - 19 - - + 96 + + 91 * - - 14
----
3209

skipif mysql # not compatible
query I rowsort label-2117
SELECT ( NULLIF ( + ( - COUNT ( * ) ), + AVG ( DISTINCT + - 2 ) ) ) * + 78 - 20 * - + 17 - + 83 * - 19 - - + 96 + + 91 * - - 14
----
3209

query I rowsort
SELECT 86 + 27
----
113

onlyif mysql # aggregate syntax: 
query II rowsort label-2119
SELECT ALL 38 col2, + COUNT( * ) + + - 6 - + COALESCE ( + + 69, - COALESCE ( MIN( ALL + + 94 ), - 1 * + 13 * 37 ) * 51 ) AS col1
----
38
-74

skipif mysql # not compatible
query II rowsort label-2119
SELECT ALL 38 col2, + COUNT ( * ) + + - 6 - + COALESCE ( + + 69, - COALESCE ( MIN ( ALL + + 94 ), - 1 * + 13 * 37 ) * 51 ) AS col1
----
38
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-2120
SELECT - 40 col0, + MAX( 25 )
----
-40
25

skipif mysql # not compatible
query II rowsort label-2120
SELECT - 40 col0, + MAX ( 25 )
----
-40
25

query I rowsort
SELECT ALL 6 + + 92 + - 62 col0
----
36

query II rowsort
SELECT ALL 94, - 79 + - 89 * + 1 * - + 59 AS col0
----
94
5172

query I rowsort
SELECT ALL 77 + 15 + 24 + + + 59
----
175

onlyif mysql # aggregate syntax: 
query II rowsort label-2124
SELECT 93, MAX( DISTINCT - 39 ) + - - 7 + + 19 AS col2
----
93
-13

skipif mysql # not compatible
query II rowsort label-2124
SELECT 93, MAX ( DISTINCT - 39 ) + - - 7 + + 19 AS col2
----
93
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2125
SELECT MIN( DISTINCT 37 )
----
37

skipif mysql # not compatible
query I rowsort label-2125
SELECT MIN ( DISTINCT 37 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2126
SELECT ALL 70 + SUM( DISTINCT + + 50 ) AS col2
----
120

skipif mysql # not compatible
query I rowsort label-2126
SELECT ALL 70 + SUM ( DISTINCT + + 50 ) AS col2
----
120

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

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

query I rowsort
SELECT ALL 47 + 47 * 67 * + 15 AS col1
----
47282

query I rowsort
SELECT 66 * - 84
----
-5544

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-2132
SELECT 85 / ( + - COUNT ( * ) )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2133
SELECT 20 * + ( - COUNT( * ) ) * 47 - + 36 + 51 col2
----
-925

skipif mysql # not compatible
query I rowsort label-2133
SELECT 20 * + ( - COUNT ( * ) ) * 47 - + 36 + 51 col2
----
-925

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2134
SELECT DISTINCT - 23 AS col0, - COALESCE ( + - 65, 85, - 13 - ( - COUNT( * ) ) ) DIV - MAX( ALL - 15 ) AS col1
----
-23
4

skipif mysql # not compatible
query II rowsort label-2134
SELECT DISTINCT - 23 AS col0, - COALESCE ( + - 65, 85, - 13 - ( - COUNT ( * ) ) ) / - MAX ( ALL - 15 ) AS col1
----
-23
4

query I rowsort
SELECT DISTINCT - 11 * - 2
----
22

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

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

query II rowsort
SELECT DISTINCT - 68 AS col2, - 88 * + - 49 AS col2
----
-68
4312

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2138
SELECT 10 DIV + MAX( - + 98 )
----
0

skipif mysql # not compatible
query I rowsort label-2138
SELECT 10 / + MAX ( - + 98 )
----
0

query I rowsort
SELECT CASE WHEN 83 NOT BETWEEN 73 + + 30 * - + 66 AND NULL THEN NULL WHEN NULL <= NULL THEN 45 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2140
SELECT 61, COUNT( 92 ) AS col2
----
61
1

skipif mysql # not compatible
query II rowsort label-2140
SELECT 61, COUNT ( 92 ) AS col2
----
61
1

query I rowsort
SELECT ALL - + 56 col1
----
-56

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

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

query I rowsort
SELECT ALL - - 65 AS col0
----
65

query I rowsort
SELECT - 9 * + + 52 AS col0
----
-468

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2146
SELECT ALL - - COUNT( * ), 73 * - - 7 AS col0
----
1
511

skipif mysql # not compatible
query II rowsort label-2146
SELECT ALL - - COUNT ( * ), 73 * - - 7 AS col0
----
1
511

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2147
SELECT DISTINCT - CASE + 2 WHEN + + ( CAST( NULL AS SIGNED ) ) THEN - 8 WHEN + + 72 / 15 / 34 THEN NULL WHEN 76 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2147
SELECT DISTINCT - CASE + 2 WHEN + + ( CAST ( NULL AS INTEGER ) ) THEN - 8 WHEN + + 72 / 15 / 34 THEN NULL WHEN 76 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT ALL - 31 * + 76 * - 0 * SUM( + 26 )
----
0

skipif mysql # not compatible
query I rowsort label-2148
SELECT ALL - 31 * + 76 * - 0 * SUM ( + 26 )
----
0

query I rowsort
SELECT 89 + 85
----
174

onlyif mysql # aggregate syntax: 
query II rowsort label-2150
SELECT ALL - 70 * 49 + 31 - 78 AS col1, COUNT( * ) + 74 * + - 79 - + - 63 col2
----
-3477
-5782

skipif mysql # not compatible
query II rowsort label-2150
SELECT ALL - 70 * 49 + 31 - 78 AS col1, COUNT ( * ) + 74 * + - 79 - + - 63 col2
----
-3477
-5782

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2151
SELECT + COUNT( * ) DIV + 34 - - 20 * + - COUNT( * ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-2151
SELECT + COUNT ( * ) / + 34 - - 20 * + - COUNT ( * ) AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2152
SELECT NULLIF ( - 23, MAX( 25 ) ) * - 52
----
1196

skipif mysql # not compatible
query I rowsort label-2152
SELECT NULLIF ( - 23, MAX ( 25 ) ) * - 52
----
1196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2153
SELECT - - NULLIF ( + 17, + 94 * + AVG ( ALL 68 ) / - COUNT( * ) + + ( + + 10 ) + + NULLIF ( - 3, - CAST( NULL AS SIGNED ) ) * + 48 ) + + ( + COUNT( * ) )
----
18

skipif mysql # not compatible
query I rowsort label-2153
SELECT - - NULLIF ( + 17, + 94 * + AVG ( ALL 68 ) / - COUNT ( * ) + + ( + + 10 ) + + NULLIF ( - 3, - CAST ( NULL AS INTEGER ) ) * + 48 ) + + ( + COUNT ( * ) )
----
18

query II rowsort
SELECT ALL 72 AS col0, ( 9 )
----
72
9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2156
SELECT DISTINCT - SUM( 94 ) * + + 64 AS col2
----
-6016

skipif mysql # not compatible
query I rowsort label-2156
SELECT DISTINCT - SUM ( 94 ) * + + 64 AS col2
----
-6016

onlyif mysql # aggregate syntax: 
query II rowsort label-2157
SELECT ALL 65 + - + 57, - COUNT( * ) AS col2
----
8
-1

skipif mysql # not compatible
query II rowsort label-2157
SELECT ALL 65 + - + 57, - COUNT ( * ) AS col2
----
8
-1

query I rowsort
SELECT ALL NULLIF ( - - ( + - 97 ), - + 38 )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2159
SELECT DISTINCT + 5 + + + COUNT( * ) + 40 + 25
----
71

skipif mysql # not compatible
query I rowsort label-2159
SELECT DISTINCT + 5 + + + COUNT ( * ) + 40 + 25
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2160
SELECT - SUM( - + 80 )
----
80

skipif mysql # not compatible
query I rowsort label-2160
SELECT - SUM ( - + 80 )
----
80

query I rowsort
SELECT DISTINCT 12 + + - 45
----
-33

query I rowsort
SELECT DISTINCT 18 + - + 6 AS col2
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2163
SELECT - COUNT( - 10 ) + - 46 + + CASE - 99 WHEN - 13 THEN NULL WHEN - + 29 * 34 - + - 19 + + ( CASE - CAST( - 71 AS SIGNED ) WHEN 13 * - - 1 THEN - 7 + - COUNT( * ) ELSE 60 * + ( - COUNT( * ) ) / + ( - COALESCE ( - 89, - 10 * 80 + - COUNT( * ), MAX( - + 46 ) ) ) + - 83 - COUNT( * ) * ( - 93 ) END ) * - ( + 89 ) * - 6 THEN 93 ELSE 6 + + 96 * 46 END * COUNT( CASE - 24 WHEN 86 + + 91 * CASE - 39 WHEN - ( + 87 ) THEN + 85 ELSE - 93 END THEN - 6 END ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-2163
SELECT - COUNT ( - 10 ) + - 46 + + CASE - 99 WHEN - 13 THEN NULL WHEN - + 29 * 34 - + - 19 + + ( CASE - CAST ( - 71 AS INTEGER ) WHEN 13 * - - 1 THEN - 7 + - COUNT ( * ) ELSE 60 * + ( - COUNT ( * ) ) / + ( - COALESCE ( - 89, - 10 * 80 + - COUNT ( * ), MAX ( - + 46 ) ) ) + - 83 - COUNT ( * ) * ( - 93 ) END ) * - ( + 89 ) * - 6 THEN 93 ELSE 6 + + 96 * 46 END * COUNT ( CASE - 24 WHEN 86 + + 91 * CASE - 39 WHEN - ( + 87 ) THEN + 85 ELSE - 93 END THEN - 6 END ) AS col1
----
-47

query I rowsort
SELECT + 35 - + 87 + - - 93
----
41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2165
SELECT - CASE - CAST( - 53 AS DECIMAL ) WHEN - - 56 THEN + 59 WHEN + - AVG ( ALL + + 99 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2165
SELECT - CASE - CAST ( - 53 AS REAL ) WHEN - - 56 THEN + 59 WHEN + - AVG ( ALL + + 99 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2166
SELECT + 26 DIV - COUNT( * ) + 27 + - 65 * + 95 + + - 29 AS col0
----
-6203

skipif mysql # not compatible
query I rowsort label-2166
SELECT + 26 / - COUNT ( * ) + 27 + - 65 * + 95 + + - 29 AS col0
----
-6203

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

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

query II rowsort
SELECT + 81 + - 80 AS col1, 22 * + 9 AS col1
----
1
198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2169
SELECT ALL + 13 * - CAST( NULL AS SIGNED ) - - + MIN( + + 6 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2169
SELECT ALL + 13 * - CAST ( NULL AS INTEGER ) - - + MIN ( + + 6 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2170
SELECT + 99 + 78 * + MAX( ALL - 23 )
----
-1695

skipif mysql # not compatible
query I rowsort label-2170
SELECT + 99 + 78 * + MAX ( ALL - 23 )
----
-1695

onlyif mysql # aggregate syntax: 
query I rowsort label-2171
SELECT ALL + 36 * + 88 - - COUNT( * ) AS col0
----
3169

skipif mysql # not compatible
query I rowsort label-2171
SELECT ALL + 36 * + 88 - - COUNT ( * ) AS col0
----
3169

query I rowsort
SELECT + 69 * - 89 * 0 AS col0
----
0

query I rowsort
SELECT - + 7 + - + 19 * - - 97 AS col0
----
-1850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2174
SELECT - CASE + 20 WHEN 87 * - MAX( DISTINCT + - NULLIF ( - 6, - 67 * - + 11 + - 26 ) ) THEN - - 43 WHEN - + 47 THEN + - 63 WHEN 20 + + - 29 THEN 94 * 13 + + 61 + + 71 END + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2174
SELECT - CASE + 20 WHEN 87 * - MAX ( DISTINCT + - NULLIF ( - 6, - 67 * - + 11 + - 26 ) ) THEN - - 43 WHEN - + 47 THEN + - 63 WHEN 20 + + - 29 THEN 94 * 13 + + 61 + + 71 END + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2175
SELECT DISTINCT - CASE - AVG ( ALL - 73 ) WHEN - COUNT( * ) THEN NULL WHEN - 22 THEN - 76 / + 75 * + + ( - 89 ) ELSE NULL END * + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-2175
SELECT DISTINCT - CASE - AVG ( ALL - 73 ) WHEN - COUNT ( * ) THEN NULL WHEN - 22 THEN - 76 / + 75 * + + ( - 89 ) ELSE NULL END * + 56
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2176
SELECT ALL + + COALESCE ( - - 81, - 76 DIV 14 ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-2176
SELECT ALL + + COALESCE ( - - 81, - 76 / 14 ) AS col0
----
81

query I rowsort
SELECT DISTINCT - 41 * + - 42 * + 64
----
110208

query I rowsort
SELECT ALL + 17 * - 15 + 26 + + - 18
----
-247

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2179
SELECT + 49 + + COALESCE ( - 31, CAST( NULL AS SIGNED ), - + 10 - - 77 ) col0
----
18

skipif mysql # not compatible
query I rowsort label-2179
SELECT + 49 + + COALESCE ( - 31, CAST ( NULL AS INTEGER ), - + 10 - - 77 ) col0
----
18

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

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

query I rowsort
SELECT DISTINCT + + 35 + - + 54 AS col2
----
-19

query I rowsort
SELECT ALL - 48 + + - 57 + - + 13 * + - 46 + + 76 * + 86 AS col0
----
7029

query I rowsort
SELECT ALL + 0 + + 21 AS col2
----
21

query I rowsort
SELECT DISTINCT - 46 * 58
----
-2668

onlyif mysql # aggregate syntax: 
query I rowsort label-2185
SELECT ALL + COUNT( ALL - 77 ) + + 87 * - SUM( 46 ) + 80 AS col2
----
-3921

skipif mysql # not compatible
query I rowsort label-2185
SELECT ALL + COUNT ( ALL - 77 ) + + 87 * - SUM ( 46 ) + 80 AS col2
----
-3921

onlyif mysql # aggregate syntax: 
query I rowsort label-2186
SELECT DISTINCT + 18 + - 11 + ( + 78 ) + COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-2186
SELECT DISTINCT + 18 + - 11 + ( + 78 ) + COUNT ( * )
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2187
SELECT ALL - 55 + + - CAST( + 37 AS SIGNED ) + - 64
----
-156

skipif mysql # not compatible
query I rowsort label-2187
SELECT ALL - 55 + + - CAST ( + 37 AS INTEGER ) + - 64
----
-156

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

query I rowsort
SELECT DISTINCT - 46 * + 37 AS col1
----
-1702

query II rowsort
SELECT - 96 AS col1, - 94 AS col2
----
-96
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2191
SELECT - COUNT( * ) * CASE NULLIF ( - NULLIF ( + 40, 2 + - 86 + COUNT( * ) * - + 70 ), - COUNT( * ) * + 22 ) WHEN + 68 THEN + MAX( CASE - ( - 8 ) WHEN 46 * + 46 + 71 THEN + 85 END ) WHEN - 6 + + + 27 + - + 28 THEN NULL END * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2191
SELECT - COUNT ( * ) * CASE NULLIF ( - NULLIF ( + 40, 2 + - 86 + COUNT ( * ) * - + 70 ), - COUNT ( * ) * + 22 ) WHEN + 68 THEN + MAX ( CASE - ( - 8 ) WHEN 46 * + 46 + 71 THEN + 85 END ) WHEN - 6 + + + 27 + - + 28 THEN NULL END * COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT - NULLIF ( ( - + 76 ), 74 ) AS col2
----
76

query I rowsort
SELECT ALL - 28 * + 17 AS col1
----
-476

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2197
SELECT - 99 DIV + - 8 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-2197
SELECT - 99 / + - 8 AS col2
----
12

query I rowsort
SELECT - NULLIF ( + 74, + 11 * + - 33 + - 31 )
----
-74

onlyif mysql # aggregate syntax: 
query III rowsort label-2199
SELECT ALL ( - 9 ) * - 85 AS col1, ( - + 73 ) + + 29 col2, ( COUNT( * ) )
----
765
-44
1

skipif mysql # not compatible
query III rowsort label-2199
SELECT ALL ( - 9 ) * - 85 AS col1, ( - + 73 ) + + 29 col2, ( COUNT ( * ) )
----
765
-44
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2200
SELECT 93 DIV - 24 - 99 * 39 col2
----
-3864

skipif mysql # not compatible
query I rowsort label-2200
SELECT 93 / - 24 - 99 * 39 col2
----
-3864

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

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

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

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

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

query I rowsort
SELECT DISTINCT 43 * + + ( + + 70 ) * - + 28
----
-84280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2205
SELECT + + 59 * - ( + + 53 ) * + 4 + 26 - 54 + + MAX( DISTINCT 65 ) + - + ( 30 ) * + + 63 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2205
SELECT + + 59 * - ( + + 53 ) * + 4 + 26 - 54 + + MAX ( DISTINCT 65 ) + - + ( 30 ) * + + 63 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2206
SELECT ALL 25 DIV + 66 + + + 98 AS col1, 30 AS col1
----
98
30

skipif mysql # not compatible
query II rowsort label-2206
SELECT ALL 25 / + 66 + + + 98 AS col1, 30 AS col1
----
98
30

query I rowsort
SELECT ALL 27 * + 83 AS col0
----
2241

onlyif mysql # aggregate syntax: 
query I rowsort label-2208
SELECT 40 * - COUNT( 72 ) + 56 + + - 65 col0
----
-49

skipif mysql # not compatible
query I rowsort label-2208
SELECT 40 * - COUNT ( 72 ) + 56 + + - 65 col0
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2209
SELECT COALESCE ( + 28, - - CAST( + + 38 AS SIGNED ) ) col2
----
28

skipif mysql # not compatible
query I rowsort label-2209
SELECT COALESCE ( + 28, - - CAST ( + + 38 AS INTEGER ) ) col2
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2210
SELECT DISTINCT + 12 + - - 0 DIV 1 * + + COUNT( + + 17 ) * - + 79 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-2210
SELECT DISTINCT + 12 + - - 0 / 1 * + + COUNT ( + + 17 ) * - + 79 AS col2
----
12

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2212
SELECT MAX( - 69 ) * - - 16 AS col0
----
-1104

skipif mysql # not compatible
query I rowsort label-2212
SELECT MAX ( - 69 ) * - - 16 AS col0
----
-1104

onlyif mysql # aggregate syntax: 
query I rowsort label-2213
SELECT + CASE - 7 WHEN COUNT( DISTINCT - 56 ) THEN + 54 / - + COUNT( * ) + - 78 - - + 78 / - + 30 + 8 WHEN + 45 * + 44 * - 58 * + 35 * 65 + 27 + + 16 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2213
SELECT + CASE - 7 WHEN COUNT ( DISTINCT - 56 ) THEN + 54 / - + COUNT ( * ) + - 78 - - + 78 / - + 30 + 8 WHEN + 45 * + 44 * - 58 * + 35 * 65 + 27 + + 16 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2214
SELECT ALL 30 DIV - 92 * - - 36 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2214
SELECT ALL 30 / - 92 * - - 36 AS col2
----
0

query I rowsort
SELECT ALL + 18 + - 50 * + 73 * + NULLIF ( - - 18, + 87 ) * - - 73 AS col1
----
-4796082

query I rowsort
SELECT 59 * + 50
----
2950

query I rowsort
SELECT DISTINCT 52 + + - 2 + 64 + 68 AS col2
----
182

query I rowsort
SELECT ALL 54 * 95 AS col2
----
5130

onlyif mysql # aggregate syntax: 
query II rowsort label-2219
SELECT 89 + + 2, 50 * + - COUNT( * ) AS col1
----
91
-50

skipif mysql # not compatible
query II rowsort label-2219
SELECT 89 + + 2, 50 * + - COUNT ( * ) AS col1
----
91
-50

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2220
SELECT 14, CAST( NULL AS SIGNED ) col0
----
14
NULL

skipif mysql # not compatible
query II rowsort label-2220
SELECT 14, CAST ( NULL AS INTEGER ) col0
----
14
NULL

query II rowsort
SELECT ALL 39, - 94 - + + 46 col0
----
39
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-2222
SELECT MIN( 25 ) - CASE 40 WHEN - 15 * 66 THEN NULL WHEN COUNT( * ) THEN NULL WHEN - 83 THEN 13 END / - 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2222
SELECT MIN ( 25 ) - CASE 40 WHEN - 15 * 66 THEN NULL WHEN COUNT ( * ) THEN NULL WHEN - 83 THEN 13 END / - 18 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2224
SELECT DISTINCT 45, 16 DIV 84 * - + SUM( ALL 93 ) + ( - 20 ) + 15 * - - 4 + - + 13 AS col1
----
45
27

skipif mysql # not compatible
query II rowsort label-2224
SELECT DISTINCT 45, 16 / 84 * - + SUM ( ALL 93 ) + ( - 20 ) + 15 * - - 4 + - + 13 AS col1
----
45
27

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2226
SELECT ALL 2 col2, + 43 * + COUNT( * )
----
2
43

skipif mysql # not compatible
query II rowsort label-2226
SELECT ALL 2 col2, + 43 * + COUNT ( * )
----
2
43

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

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

query II rowsort
SELECT ALL 4, 38 AS col2
----
4
38

query I rowsort
SELECT 1 - 61 AS col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2230
SELECT 4 * + SUM( ALL - 5 )
----
-20

skipif mysql # not compatible
query I rowsort label-2230
SELECT 4 * + SUM ( ALL - 5 )
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2231
SELECT 10 - - + COUNT( * ) * - 61 * + 61 DIV - - COUNT( * ) + CAST( 42 AS SIGNED ) - + 77 * + CAST( + - CAST( - - CASE WHEN NOT + ( 7 ) IS NULL THEN NULLIF ( + 89, 65 ) ELSE + 93 * - SUM( - 16 ) * + 91 + - 82 + + 34 + - 81 * + 61 END AS SIGNED ) AS SIGNED ) AS col1
----
3184

skipif mysql # not compatible
query I rowsort label-2231
SELECT 10 - - + COUNT ( * ) * - 61 * + 61 / - - COUNT ( * ) + CAST ( 42 AS INTEGER ) - + 77 * + CAST ( + - CAST ( - - CASE WHEN NOT + ( 7 ) IS NULL THEN NULLIF ( + 89, 65 ) ELSE + 93 * - SUM ( - 16 ) * + 91 + - 82 + + 34 + - 81 * + 61 END AS INTEGER ) AS INTEGER ) AS col1
----
3184

query I rowsort
SELECT 94 * + 37
----
3478

query I rowsort
SELECT 29 * + 54 * ( 93 ) * + ( + CASE + ( - 55 ) WHEN + 92 THEN NULL WHEN + - 99 THEN + 84 ELSE NULL END ) * 50 - 97
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2236
SELECT ALL 28 AS col2, 55 * + CASE - ( + + 7 ) WHEN - - NULLIF ( - 21, - + COUNT( DISTINCT + 10 ) / 34 * + 54 + + 6 + + 13 ) / + - CASE - - 35 WHEN 70 + 44 THEN NULL ELSE 77 END + + + 47 THEN NULL WHEN + 96 / - 57 THEN + COUNT( * ) WHEN + 8 - - + 60 + - - COUNT( * ) THEN NULL ELSE NULL END / 32 - - - 52 - + 35 * + 45 + - + 45
----
28
NULL

skipif mysql # not compatible
query II rowsort label-2236
SELECT ALL 28 AS col2, 55 * + CASE - ( + + 7 ) WHEN - - NULLIF ( - 21, - + COUNT ( DISTINCT + 10 ) / 34 * + 54 + + 6 + + 13 ) / + - CASE - - 35 WHEN 70 + 44 THEN NULL ELSE 77 END + + + 47 THEN NULL WHEN + 96 / - 57 THEN + COUNT ( * ) WHEN + 8 - - + 60 + - - COUNT ( * ) THEN NULL ELSE NULL END / 32 - - - 52 - + 35 * + 45 + - + 45
----
28
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2237
SELECT + 43 AS col1, MIN( + 43 ) + - - ( 66 ) AS col1
----
43
109

skipif mysql # not compatible
query II rowsort label-2237
SELECT + 43 AS col1, MIN ( + 43 ) + - - ( 66 ) AS col1
----
43
109

query I rowsort
SELECT + NULLIF ( 53, + 11 + + 77 ) + - - 33 * 72
----
2429

onlyif mysql # DIV for integer division: 
query I rowsort label-2239
SELECT ALL - - 81 + 45 DIV + + 93 * - 89 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-2239
SELECT ALL - - 81 + 45 / + + 93 * - 89 AS col0
----
81

query II rowsort
SELECT DISTINCT - + 93 AS col0, 28 * + 82
----
-93
2296

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT ALL 72 + - - 13 + - + ( + COUNT( * ) ) * - - 79 + + 72 * + 56 * - - 76
----
306438

skipif mysql # not compatible
query I rowsort label-2241
SELECT ALL 72 + - - 13 + - + ( + COUNT ( * ) ) * - - 79 + + 72 * + 56 * - - 76
----
306438

onlyif mysql # aggregate syntax: 
query I rowsort label-2242
SELECT + MIN( ALL ( 3 ) ) * + 98 + - NULLIF ( + 5, + CASE - 18 WHEN - 18 THEN 27 END ) AS col1
----
289

skipif mysql # not compatible
query I rowsort label-2242
SELECT + MIN ( ALL ( 3 ) ) * + 98 + - NULLIF ( + 5, + CASE - 18 WHEN - 18 THEN 27 END ) AS col1
----
289

onlyif mysql # aggregate syntax: 
query I rowsort label-2243
SELECT DISTINCT + 41 + 57 + MAX( - 82 )
----
16

skipif mysql # not compatible
query I rowsort label-2243
SELECT DISTINCT + 41 + 57 + MAX ( - 82 )
----
16

query I rowsort
SELECT + 8 * + + 69 * + ( + 17 ) AS col0
----
9384

query I rowsort
SELECT + CASE WHEN + 77 > + 34 THEN - 64 ELSE ( + 64 ) END
----
-64

query I rowsort
SELECT ALL - 8 + - + 6 AS col2
----
-14

query I rowsort
SELECT 74 * + 41 AS col2
----
3034

query I rowsort
SELECT DISTINCT + - 64 + - 47
----
-111

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2249
SELECT DISTINCT 84 + - 12 AS col2, COUNT( * ) DIV + 18 AS col1
----
72
0

skipif mysql # not compatible
query II rowsort label-2249
SELECT DISTINCT 84 + - 12 AS col2, COUNT ( * ) / + 18 AS col1
----
72
0

query I rowsort
SELECT DISTINCT - 89 + - + COALESCE ( 50, 21 + - 76 + + 72 * - - 78 + - - 13 ) + ( + 7 )
----
-132

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

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

query II rowsort
SELECT DISTINCT - 2, 20 AS col0
----
-2
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2253
SELECT MAX( 1 ) * + + 17 * 33
----
561

skipif mysql # not compatible
query I rowsort label-2253
SELECT MAX ( 1 ) * + + 17 * 33
----
561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2254
SELECT ALL 7 - - CAST( NULL AS SIGNED ) * - CASE + 1 WHEN - - 19 THEN + + 16 * - 1 * 1 ELSE 82 END + - + 27 * + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-2254
SELECT ALL 7 - - CAST ( NULL AS INTEGER ) * - CASE + 1 WHEN - - 19 THEN + + 16 * - 1 * 1 ELSE 82 END + - + 27 * + 40
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2255
SELECT 69 - - - 82 col2, CAST( 18 AS SIGNED )
----
-13
18

skipif mysql # not compatible
query II rowsort label-2255
SELECT 69 - - - 82 col2, CAST ( 18 AS INTEGER )
----
-13
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2256
SELECT ( + 29 ) / + CAST( NULL AS SIGNED ) + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-2256
SELECT ( + 29 ) / + CAST ( NULL AS INTEGER ) + 82
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2257
SELECT 14 * - 99 AS col2, 85 + - CASE - 73 WHEN - 41 THEN NULL WHEN - 44 THEN - 65 ELSE + 85 END * + 21 * + COUNT( * )
----
-1386
-1700

skipif mysql # not compatible
query II rowsort label-2257
SELECT 14 * - 99 AS col2, 85 + - CASE - 73 WHEN - 41 THEN NULL WHEN - 44 THEN - 65 ELSE + 85 END * + 21 * + COUNT ( * )
----
-1386
-1700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2258
SELECT ALL NULLIF ( COUNT( * ), + - MAX( - - 20 ) DIV + 85 ) DIV + 73 col0
----
0

skipif mysql # not compatible
query I rowsort label-2258
SELECT ALL NULLIF ( COUNT ( * ), + - MAX ( - - 20 ) / + 85 ) / + 73 col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2259
SELECT DISTINCT COUNT( * ) DIV - 6
----
0

skipif mysql # not compatible
query I rowsort label-2259
SELECT DISTINCT COUNT ( * ) / - 6
----
0

query I rowsort
SELECT DISTINCT 6 col2
----
6

onlyif mysql # DIV for integer division: 
query II rowsort label-2261
SELECT DISTINCT 99 * - - 94, 17 + 11 + - - 9 DIV - - 57 AS col1
----
9306
28

skipif mysql # not compatible
query II rowsort label-2261
SELECT DISTINCT 99 * - - 94, 17 + 11 + - - 9 / - - 57 AS col1
----
9306
28

onlyif mysql # DIV for integer division: 
query II rowsort label-2262
SELECT 94 DIV - 60 AS col0, - NULLIF ( - 48, + 79 DIV 33 ) AS col0
----
-1
48

skipif mysql # not compatible
query II rowsort label-2262
SELECT 94 / - 60 AS col0, - NULLIF ( - 48, + 79 / 33 ) AS col0
----
-1
48

query I rowsort
SELECT 29 * 14
----
406

query I rowsort
SELECT 39 * 55 * + 43 * + 64
----
5903040

query I rowsort
SELECT ALL 98 + - 55
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-2266
SELECT ALL COUNT( DISTINCT - - 99 ), - NULLIF ( COUNT( * ), + 16 + + NULLIF ( + - 1, + + 12 * + NULLIF ( 49, 98 * 47 ) ) ) AS col0
----
1
-1

skipif mysql # not compatible
query II rowsort label-2266
SELECT ALL COUNT ( DISTINCT - - 99 ), - NULLIF ( COUNT ( * ), + 16 + + NULLIF ( + - 1, + + 12 * + NULLIF ( 49, 98 * 47 ) ) ) AS col0
----
1
-1

query II rowsort
SELECT 29 * - + 97 AS col1, 1 + 46 - - 9
----
-2813
56

onlyif mysql # aggregate syntax: 
query II rowsort label-2268
SELECT ALL + 48 + - 13 col0, - COUNT( * ) AS col0
----
35
-1

skipif mysql # not compatible
query II rowsort label-2268
SELECT ALL + 48 + - 13 col0, - COUNT ( * ) AS col0
----
35
-1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2270
SELECT DISTINCT + COALESCE ( - 29, + + COUNT( * ) * + 40 + + 2 * - + 43 - + + 82 + + ( - - 25 ) ) + + 52 AS col2, 36
----
23
36

skipif mysql # not compatible
query II rowsort label-2270
SELECT DISTINCT + COALESCE ( - 29, + + COUNT ( * ) * + 40 + + 2 * - + 43 - + + 82 + + ( - - 25 ) ) + + 52 AS col2, 36
----
23
36

query I rowsort
SELECT + - 98 * - 69
----
6762

query I rowsort
SELECT - + 92 * 9 AS col1
----
-828

query I rowsort
SELECT ALL - 26 * + 46 + - 64
----
-1260

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT + + SUM( + 34 )
----
34

skipif mysql # not compatible
query I rowsort label-2274
SELECT + + SUM ( + 34 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2275
SELECT - COUNT( * ) * 17 + 49
----
32

skipif mysql # not compatible
query I rowsort label-2275
SELECT - COUNT ( * ) * 17 + 49
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2276
SELECT DISTINCT - 10 * CAST( 9 AS SIGNED )
----
-90

skipif mysql # not compatible
query I rowsort label-2276
SELECT DISTINCT - 10 * CAST ( 9 AS INTEGER )
----
-90

query I rowsort
SELECT - - 5 * - 84 AS col0
----
-420

onlyif mysql # aggregate syntax: 
query II rowsort label-2278
SELECT + - ( - + 60 ) * - - ( COUNT( DISTINCT 49 ) ), - COUNT( * ) * - 1 + + 99 AS col0
----
60
100

skipif mysql # not compatible
query II rowsort label-2278
SELECT + - ( - + 60 ) * - - ( COUNT ( DISTINCT 49 ) ), - COUNT ( * ) * - 1 + + 99 AS col0
----
60
100

query I rowsort
SELECT ALL + COALESCE ( + + 91, + 40 ) col1
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2280
SELECT - 89 + CAST( + + 12 AS SIGNED ) + 38 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2280
SELECT - 89 + CAST ( + + 12 AS INTEGER ) + 38 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT 6 * + 44 - 37 AS col0, 4 AS col2
----
227
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2282
SELECT - CAST( - + COUNT( * ) AS SIGNED ) + - 83 AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-2282
SELECT - CAST ( - + COUNT ( * ) AS INTEGER ) + - 83 AS col2
----
-82

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2284
SELECT DISTINCT + 24 * + COALESCE ( - 72, COUNT( * ) * + ( + MAX( - 21 ) ) * - - 54 * + CAST( + 32 AS SIGNED ) * - - 53 + 90 * - + COUNT( * ) * SUM( DISTINCT - 80 ) + 82, - 76 )
----
-1728

skipif mysql # not compatible
query I rowsort label-2284
SELECT DISTINCT + 24 * + COALESCE ( - 72, COUNT ( * ) * + ( + MAX ( - 21 ) ) * - - 54 * + CAST ( + 32 AS INTEGER ) * - - 53 + 90 * - + COUNT ( * ) * SUM ( DISTINCT - 80 ) + 82, - 76 )
----
-1728

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2286
SELECT - COUNT( * ), 71 * - 53 - + COUNT( * ) + + 83 AS col1
----
-1
-3681

skipif mysql # not compatible
query II rowsort label-2286
SELECT - COUNT ( * ), 71 * - 53 - + COUNT ( * ) + + 83 AS col1
----
-1
-3681

query I rowsort
SELECT + 53 * + 99 * - 82 AS col1
----
-430254

query II rowsort
SELECT ALL 3 col0, 90 * - 39
----
3
-3510

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT - COUNT( NULLIF ( + 86, + 45 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2289
SELECT - COUNT ( NULLIF ( + 86, + 45 ) ) AS col2
----
-1

query II rowsort
SELECT 77 AS col2, + 41 * - 0
----
77
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2292
SELECT + 5 DIV 73
----
0

skipif mysql # not compatible
query I rowsort label-2292
SELECT + 5 / 73
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT + 17 * SUM( ALL + COALESCE ( + + 97, - 88 ) ) AS col2
----
1649

skipif mysql # not compatible
query I rowsort label-2293
SELECT + 17 * SUM ( ALL + COALESCE ( + + 97, - 88 ) ) AS col2
----
1649

onlyif mysql # DIV for integer division: 
query I rowsort label-2294
SELECT DISTINCT 28 DIV + - 40
----
0

skipif mysql # not compatible
query I rowsort label-2294
SELECT DISTINCT 28 / + - 40
----
0

query I rowsort
SELECT DISTINCT 46 + 58 * - - 42 AS col2
----
2482

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2296
SELECT DISTINCT ( 33 ) + + COALESCE ( + 56, - COUNT( - 51 ) * - 69 * - - 14 * - ( - ( - + 79 ) ), - 33 * + 61 - + 61 + 53 DIV - 88 + + - SUM( - 27 ) + - + 13 ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-2296
SELECT DISTINCT ( 33 ) + + COALESCE ( + 56, - COUNT ( - 51 ) * - 69 * - - 14 * - ( - ( - + 79 ) ), - 33 * + 61 - + 61 + 53 / - 88 + + - SUM ( - 27 ) + - + 13 ) AS col2
----
89

query I rowsort
SELECT ALL 81 + + 11
----
92

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2299
SELECT + + 96 - ( - 78 ) + COUNT( * ) + + 72 * + 20 * + 45 col0
----
64975

skipif mysql # not compatible
query I rowsort label-2299
SELECT + + 96 - ( - 78 ) + COUNT ( * ) + + 72 * + 20 * + 45 col0
----
64975

query I rowsort
SELECT ALL 93 + - 25 AS col0
----
68

query I rowsort
SELECT + 90 + 8 AS col1
----
98

query I rowsort
SELECT - 60 - + 76 - - 47 AS col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT + COALESCE ( + + 49, + 27, - + 82 ) + + COUNT( ALL - 37 ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-2303
SELECT + COALESCE ( + + 49, + 27, - + 82 ) + + COUNT ( ALL - 37 ) AS col1
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-2304
SELECT ALL + + 94 DIV + 62 + 13
----
14

skipif mysql # not compatible
query I rowsort label-2304
SELECT ALL + + 94 / + 62 + 13
----
14

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

skipif mysql # not compatible
query I rowsort label-2305
SELECT DISTINCT - - 27 / - COUNT ( * ) + + - COUNT ( * )
----
-28

query I rowsort
SELECT - + 95 + - + 66
----
-161

onlyif mysql # aggregate syntax: 
query I rowsort label-2307
SELECT - COUNT( DISTINCT + 95 )
----
-1

skipif mysql # not compatible
query I rowsort label-2307
SELECT - COUNT ( DISTINCT + 95 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2308
SELECT - - CASE 2 WHEN - ( + SUM( + 25 ) ) * + 21 * COUNT( * ) THEN 53 * - 42 WHEN COALESCE ( + + 91, + - ( + 84 ) ) + + 61 * - - COALESCE ( + - MAX( DISTINCT 44 ), 60, + COUNT( * ) + - 55, + CASE + ( ( + 90 ) ) WHEN + 40 * + - 93 THEN NULL ELSE + + 10 - + - CAST( 87 AS SIGNED ) END + - 24 ) / + - 71 * + 83 * - - 90 THEN + COUNT( * ) * 77 END + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2308
SELECT - - CASE 2 WHEN - ( + SUM ( + 25 ) ) * + 21 * COUNT ( * ) THEN 53 * - 42 WHEN COALESCE ( + + 91, + - ( + 84 ) ) + + 61 * - - COALESCE ( + - MAX ( DISTINCT 44 ), 60, + COUNT ( * ) + - 55, + CASE + ( ( + 90 ) ) WHEN + 40 * + - 93 THEN NULL ELSE + + 10 - + - CAST ( 87 AS INTEGER ) END + - 24 ) / + - 71 * + 83 * - - 90 THEN + COUNT ( * ) * 77 END + + COUNT ( * )
----
NULL

query I rowsort
SELECT - 76 * - - 85 AS col0
----
-6460

query I rowsort
SELECT ALL - - 21 * - 83 AS col0
----
-1743

query II rowsort
SELECT + - 6, 96 AS col1
----
-6
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2312
SELECT - CASE 59 WHEN + 51 + 67 THEN + COUNT( * ) ELSE + + 93 END + + 30
----
-63

skipif mysql # not compatible
query I rowsort label-2312
SELECT - CASE 59 WHEN + 51 + 67 THEN + COUNT ( * ) ELSE + + 93 END + + 30
----
-63

query I rowsort
SELECT ALL 71 * 46 AS col2
----
3266

onlyif mysql # aggregate syntax: 
query I rowsort label-2314
SELECT - MAX( DISTINCT + 44 ) * + 9 * 98 col0
----
-38808

skipif mysql # not compatible
query I rowsort label-2314
SELECT - MAX ( DISTINCT + 44 ) * + 9 * 98 col0
----
-38808

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

skipif mysql # not compatible
query I rowsort label-2315
SELECT ALL + COUNT ( DISTINCT - 3 ) AS col1
----
1

query I rowsort
SELECT ( - - ( 90 ) )
----
90

query I rowsort
SELECT ALL + COALESCE ( - 66, ( + + 54 ) ) AS col2
----
-66

query I rowsort
SELECT - 77 + + - 72
----
-149

query I rowsort
SELECT - 53 * 94
----
-4982

query I rowsort
SELECT ALL + 15 * + 7 + - 30 + 99 AS col2
----
174

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2322
SELECT COALESCE ( MIN( - + 3 ), AVG ( + 92 ) DIV 34 + + 31 )
----
-3

skipif mysql # not compatible
query I rowsort label-2322
SELECT COALESCE ( MIN ( - + 3 ), AVG ( + 92 ) / 34 + + 31 )
----
-3

query I rowsort
SELECT - 29 * 25 * - 47
----
34075

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT - 99 - + COUNT( * )
----
-100

skipif mysql # not compatible
query I rowsort label-2324
SELECT - 99 - + COUNT ( * )
----
-100

onlyif mysql # aggregate syntax: 
query II rowsort label-2325
SELECT CASE 95 WHEN 77 THEN COUNT( * ) + + 28 + - 98 * - 88 * + ( - MIN( DISTINCT ( - NULLIF ( - 15, + 32 ) ) ) ) * - 1 END AS col0, + 76 col1
----
NULL
76

skipif mysql # not compatible
query II rowsort label-2325
SELECT CASE 95 WHEN 77 THEN COUNT ( * ) + + 28 + - 98 * - 88 * + ( - MIN ( DISTINCT ( - NULLIF ( - 15, + 32 ) ) ) ) * - 1 END AS col0, + 76 col1
----
NULL
76

query I rowsort
SELECT ALL + 39 * + 56 * 8
----
17472

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

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

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

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

query I rowsort
SELECT - 93 * + ( + + 74 )
----
-6882

query I rowsort
SELECT ALL - ( + 42 ) * - 42 + - 42 * 12
----
1260

onlyif mysql # aggregate syntax: 
query II rowsort label-2331
SELECT - MAX( DISTINCT + + 54 ) AS col1, 93 + 43 + + 78 * - ( - 56 )
----
-54
4504

skipif mysql # not compatible
query II rowsort label-2331
SELECT - MAX ( DISTINCT + + 54 ) AS col1, 93 + 43 + + 78 * - ( - 56 )
----
-54
4504

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

skipif mysql # not compatible
query I rowsort label-2332
SELECT ALL 93 * + + 88 + - COUNT ( * ) AS col2
----
8183

query I rowsort
SELECT - 87 + - 14
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT ALL - COUNT( DISTINCT - 0 ) * SUM( ALL + + ( - - 3 ) ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-2334
SELECT ALL - COUNT ( DISTINCT - 0 ) * SUM ( ALL + + ( - - 3 ) ) AS col0
----
-3

query I rowsort
SELECT DISTINCT + 21 + + 93
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2336
SELECT NULLIF ( + 16, 69 / 7 + - COALESCE ( - 87, CAST( ( + 61 ) AS SIGNED ) ) + - + COUNT( - 46 ) * + 57 * + + COUNT( * ) + 59 + + 8 ) - 2
----
14

skipif mysql # not compatible
query I rowsort label-2336
SELECT NULLIF ( + 16, 69 / 7 + - COALESCE ( - 87, CAST ( ( + 61 ) AS INTEGER ) ) + - + COUNT ( - 46 ) * + 57 * + + COUNT ( * ) + 59 + + 8 ) - 2
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2337
SELECT CASE + - ( 34 ) WHEN - CAST( NULL AS SIGNED ) * + 30 THEN AVG ( DISTINCT - 18 ) ELSE NULL END + + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-2337
SELECT CASE + - ( 34 ) WHEN - CAST ( NULL AS INTEGER ) * + 30 THEN AVG ( DISTINCT - 18 ) ELSE NULL END + + 58
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2338
SELECT ALL + - MAX( - 85 ) + 14
----
99

skipif mysql # not compatible
query I rowsort label-2338
SELECT ALL + - MAX ( - 85 ) + 14
----
99

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

skipif mysql # not compatible
query I rowsort label-2339
SELECT - + MIN ( 48 )
----
-48

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2341
SELECT ALL 18 DIV + COUNT( * ) AS col2, + 15 col2
----
18
15

skipif mysql # not compatible
query II rowsort label-2341
SELECT ALL 18 / + COUNT ( * ) AS col2, + 15 col2
----
18
15

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2343
SELECT DISTINCT - MAX( ALL + 25 ) - + 94 AS col2
----
-119

skipif mysql # not compatible
query I rowsort label-2343
SELECT DISTINCT - MAX ( ALL + 25 ) - + 94 AS col2
----
-119

query I rowsort
SELECT + 15 * - + 41 col1
----
-615

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT ALL - CASE + 30 WHEN - 12 THEN + 75 ELSE NULL END / - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2345
SELECT ALL - CASE + 30 WHEN - 12 THEN + 75 ELSE NULL END / - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2346
SELECT DISTINCT + COUNT( + 31 )
----
1

skipif mysql # not compatible
query I rowsort label-2346
SELECT DISTINCT + COUNT ( + 31 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2347
SELECT - MAX( ALL - 42 ) * - 44 * 47 + - 97
----
-86953

skipif mysql # not compatible
query I rowsort label-2347
SELECT - MAX ( ALL - 42 ) * - 44 * 47 + - 97
----
-86953

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2348
SELECT ( + CAST( 66 AS SIGNED ) ) * 16 * CAST( NULL AS SIGNED ) - + - 49 + 56 * - + 2 / - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-2348
SELECT ( + CAST ( 66 AS INTEGER ) ) * 16 * CAST ( NULL AS INTEGER ) - + - 49 + 56 * - + 2 / - 48
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2349
SELECT - MAX( - - CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2349
SELECT - MAX ( - - CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2350
SELECT + COUNT( * ) - - 57 + 56 AS col0
----
114

skipif mysql # not compatible
query I rowsort label-2350
SELECT + COUNT ( * ) - - 57 + 56 AS col0
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2351
SELECT NULLIF ( + 80, - 0 ) * - 26 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2351
SELECT NULLIF ( + 80, - 0 ) * - 26 * + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL - 30 AS col1, - 24 AS col1
----
-30
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT 42 * 76 - + - COUNT( * ) + - - 30 * 17 * + 92 * - 6
----
-278327

skipif mysql # not compatible
query I rowsort label-2353
SELECT 42 * 76 - + - COUNT ( * ) + - - 30 * 17 * + 92 * - 6
----
-278327

query I rowsort
SELECT 14 - 80
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2355
SELECT 23 * 84 DIV 29, - COUNT( * ) AS col1
----
66
-1

skipif mysql # not compatible
query II rowsort label-2355
SELECT 23 * 84 / 29, - COUNT ( * ) AS col1
----
66
-1

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2357
SELECT - 46 * - 9 + + - 33 AS col0, COUNT( * ) * + 59 * - + 68
----
381
-4012

skipif mysql # not compatible
query II rowsort label-2357
SELECT - 46 * - 9 + + - 33 AS col0, COUNT ( * ) * + 59 * - + 68
----
381
-4012

onlyif mysql # aggregate syntax: 
query II rowsort label-2358
SELECT ALL 82 + + 2 * + COUNT( * ), 11 + - + 52 * - 86 + - 79 AS col0
----
84
4404

skipif mysql # not compatible
query II rowsort label-2358
SELECT ALL 82 + + 2 * + COUNT ( * ), 11 + - + 52 * - 86 + - 79 AS col0
----
84
4404

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2359
SELECT DISTINCT - MIN( 49 ) + 6 DIV - 84 + - 20
----
-69

skipif mysql # not compatible
query I rowsort label-2359
SELECT DISTINCT - MIN ( 49 ) + 6 / - 84 + - 20
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT DISTINCT + 34 + + - NULLIF ( - 60, - COUNT( * ) )
----
94

skipif mysql # not compatible
query I rowsort label-2360
SELECT DISTINCT + 34 + + - NULLIF ( - 60, - COUNT ( * ) )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT ALL + 17 + ( + MIN( 1 ) )
----
18

skipif mysql # not compatible
query I rowsort label-2361
SELECT ALL + 17 + ( + MIN ( 1 ) )
----
18

query I rowsort
SELECT 38 * + 0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2363
SELECT 45 DIV + - 39
----
-1

skipif mysql # not compatible
query I rowsort label-2363
SELECT 45 / + - 39
----
-1

query I rowsort
SELECT ALL + 17 + - 14
----
3

query I rowsort
SELECT 28 * + ( 30 ) * - + 23 AS col0
----
-19320

onlyif mysql # aggregate syntax: 
query I rowsort label-2366
SELECT 35 + + COUNT( * ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-2366
SELECT 35 + + COUNT ( * ) AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2367
SELECT COUNT( * ) + 3 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-2367
SELECT COUNT ( * ) + 3 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2368
SELECT + NULLIF ( 3, + + 56 + - COUNT( * ) ) * SUM( DISTINCT - 84 ) * + + NULLIF ( 8, + 58 ) + - 8
----
-2024

skipif mysql # not compatible
query I rowsort label-2368
SELECT + NULLIF ( 3, + + 56 + - COUNT ( * ) ) * SUM ( DISTINCT - 84 ) * + + NULLIF ( 8, + 58 ) + - 8
----
-2024

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2369
SELECT ALL + - 67 / - CAST( NULL AS SIGNED ) / - + 86 * CAST( NULL AS SIGNED ) + + 11 * ( 5 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2369
SELECT ALL + - 67 / - CAST ( NULL AS INTEGER ) / - + 86 * CAST ( NULL AS INTEGER ) + + 11 * ( 5 ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2371
SELECT ALL + 33 - - COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-2371
SELECT ALL + 33 - - COUNT ( * )
----
34

query I rowsort
SELECT 25 - + 58 AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2373
SELECT DISTINCT - COUNT( * ) * + 24 + 95 * 57 * + 6
----
32466

skipif mysql # not compatible
query I rowsort label-2373
SELECT DISTINCT - COUNT ( * ) * + 24 + 95 * 57 * + 6
----
32466

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2374
SELECT - 52 * + COALESCE ( - SUM( - - NULLIF ( + - 1, - 9 ) ), - 96 * 35, 48 + - 85 ) + - - 93 DIV + 80
----
-51

skipif mysql # not compatible
query I rowsort label-2374
SELECT - 52 * + COALESCE ( - SUM ( - - NULLIF ( + - 1, - 9 ) ), - 96 * 35, 48 + - 85 ) + - - 93 / + 80
----
-51

query I rowsort
SELECT + 44 - - 68 AS col2
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2376
SELECT CAST( NULL AS SIGNED ) + - + 60 + - 43 * + + 98 - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-2376
SELECT CAST ( NULL AS INTEGER ) + - + 60 + - 43 * + + 98 - 20
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2377
SELECT 74 * - 7 * COUNT( + - 36 ) * - 96 + - 98 + - 71 - - ( + CASE - 45 WHEN - + 61 THEN NULL WHEN + 79 + - + COALESCE ( - 26, + 69 / + COUNT( * ) + + 55 ) THEN 89 END ) * + - 53 - + 7 / CASE - 71 WHEN + 99 * + + ( 59 ) * + + MAX( 52 ) - - + COUNT( * ) / - 6 * + CAST( NULL AS SIGNED ) * + 86 + + + 47 + - 14 + - 58 * + 13 + + 19 * - 68 THEN - 15 WHEN 63 THEN NULL END / 76
----
NULL

skipif mysql # not compatible
query I rowsort label-2377
SELECT 74 * - 7 * COUNT ( + - 36 ) * - 96 + - 98 + - 71 - - ( + CASE - 45 WHEN - + 61 THEN NULL WHEN + 79 + - + COALESCE ( - 26, + 69 / + COUNT ( * ) + + 55 ) THEN 89 END ) * + - 53 - + 7 / CASE - 71 WHEN + 99 * + + ( 59 ) * + + MAX ( 52 ) - - + COUNT ( * ) / - 6 * + CAST ( NULL AS INTEGER ) * + 86 + + + 47 + - 14 + - 58 * + 13 + + 19 * - 68 THEN - 15 WHEN 63 THEN NULL END / 76
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2378
SELECT ALL + CAST( + - 57 AS SIGNED ) * 24 - 70 + - + 64 + + 62
----
-1440

skipif mysql # not compatible
query I rowsort label-2378
SELECT ALL + CAST ( + - 57 AS INTEGER ) * 24 - 70 + - + 64 + + 62
----
-1440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2379
SELECT 66 + + ( + 34 ) + - CAST( + 87 AS SIGNED ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-2379
SELECT 66 + + ( + 34 ) + - CAST ( + 87 AS INTEGER ) AS col1
----
13

query I rowsort
SELECT ALL ( + 96 ) * + 66 * + + 22
----
139392

query I rowsort
SELECT ALL - 71 * + - 82 + + + 11 AS col1
----
5833

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2384
SELECT MIN( - - 11 ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-2384
SELECT MIN ( - - 11 ) AS col2
----
11

query I rowsort
SELECT 10 + + 51
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2386
SELECT DISTINCT 41 * + SUM( - 70 )
----
-2870

skipif mysql # not compatible
query I rowsort label-2386
SELECT DISTINCT 41 * + SUM ( - 70 )
----
-2870

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2388
SELECT ALL 34 + + MIN( DISTINCT - 92 )
----
-58

skipif mysql # not compatible
query I rowsort label-2388
SELECT ALL 34 + + MIN ( DISTINCT - 92 )
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2389
SELECT + 64 + CAST( + + 43 AS SIGNED ) + + + 47 AS col0, 48
----
154
48

skipif mysql # not compatible
query II rowsort label-2389
SELECT + 64 + CAST ( + + 43 AS INTEGER ) + + + 47 AS col0, 48
----
154
48

query I rowsort
SELECT DISTINCT 69 + ( 51 ) AS col1
----
120

query II rowsort
SELECT + 16 AS col1, + 60 AS col0
----
16
60

query I rowsort
SELECT + 28 + + 79
----
107

query I rowsort
SELECT + 86 - - 57 * + + 93 AS col2
----
5387

onlyif mysql # aggregate syntax: 
query I rowsort label-2394
SELECT DISTINCT + 37 - + - MAX( 97 ) AS col1
----
134

skipif mysql # not compatible
query I rowsort label-2394
SELECT DISTINCT + 37 - + - MAX ( 97 ) AS col1
----
134

query II rowsort
SELECT DISTINCT - 26 * - 98, + 50 * + 49 AS col0
----
2548
2450

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2396
SELECT ALL 40 * - - 17 + 77 - - NULLIF ( + COUNT( * ), - 14 ) * + MAX( 75 ) + NULLIF ( CAST( NULL AS DECIMAL ), - + 29 ) + - + 11 + + 75 * + ( + 3 ) / + - 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2396
SELECT ALL 40 * - - 17 + 77 - - NULLIF ( + COUNT ( * ), - 14 ) * + MAX ( 75 ) + NULLIF ( CAST ( NULL AS REAL ), - + 29 ) + - + 11 + + 75 * + ( + 3 ) / + - 72 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2397
SELECT DISTINCT 25 AS col1, - 83 * - COUNT( * ) - + 15 AS col1
----
25
68

skipif mysql # not compatible
query II rowsort label-2397
SELECT DISTINCT 25 AS col1, - 83 * - COUNT ( * ) - + 15 AS col1
----
25
68

query I rowsort
SELECT DISTINCT + NULLIF ( + 34, 62 )
----
34

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2400
SELECT ALL - CAST( NULL AS SIGNED ), - 7 + + 44 AS col2
----
NULL
37

skipif mysql # not compatible
query II rowsort label-2400
SELECT ALL - CAST ( NULL AS INTEGER ), - 7 + + 44 AS col2
----
NULL
37

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2402
SELECT - - 33 * 66 * - SUM( + - 71 ) AS col0
----
154638

skipif mysql # not compatible
query I rowsort label-2402
SELECT - - 33 * 66 * - SUM ( + - 71 ) AS col0
----
154638

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2403
SELECT + CASE ( + 84 ) WHEN + ( + 70 ) * ( 7 ) * + - NULLIF ( + + 73, + - COUNT( * ) ) - 33 * + 56 / - 77 THEN NULL ELSE 79 - - + 58 * + CASE - 89 WHEN + 65 THEN NULL WHEN + 77 + + - CAST( NULL AS SIGNED ) * 1 THEN + + 26 + - - 6 * 60 WHEN + + 86 / 47 THEN NULL ELSE NULL END END, COUNT( * ) + + 23 + ( - - 97 ) + + 84 AS col1
----
NULL
205

skipif mysql # not compatible
query II rowsort label-2403
SELECT + CASE ( + 84 ) WHEN + ( + 70 ) * ( 7 ) * + - NULLIF ( + + 73, + - COUNT ( * ) ) - 33 * + 56 / - 77 THEN NULL ELSE 79 - - + 58 * + CASE - 89 WHEN + 65 THEN NULL WHEN + 77 + + - CAST ( NULL AS INTEGER ) * 1 THEN + + 26 + - - 6 * 60 WHEN + + 86 / 47 THEN NULL ELSE NULL END END, COUNT ( * ) + + 23 + ( - - 97 ) + + 84 AS col1
----
NULL
205

onlyif mysql # aggregate syntax: 
query I rowsort label-2404
SELECT - SUM( - 41 )
----
41

skipif mysql # not compatible
query I rowsort label-2404
SELECT - SUM ( - 41 )
----
41

query II rowsort
SELECT ALL 93, 7 * 2 AS col2
----
93
14

query I rowsort
SELECT - 29 + - + 21
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-2407
SELECT - - 83 DIV 83 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2407
SELECT - - 83 / 83 AS col2
----
1

query I rowsort
SELECT - 73 * - 20
----
1460

onlyif mysql # aggregate syntax: 
query II rowsort label-2409
SELECT ALL - + 14 * + COUNT( - COALESCE ( - 28, - 24 * - NULLIF ( + + 82, - 66 ) * 37 ) ) col0, + SUM( ALL + 28 ) AS col2
----
-14
28

skipif mysql # not compatible
query II rowsort label-2409
SELECT ALL - + 14 * + COUNT ( - COALESCE ( - 28, - 24 * - NULLIF ( + + 82, - 66 ) * 37 ) ) col0, + SUM ( ALL + 28 ) AS col2
----
-14
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2410
SELECT DISTINCT - + 98 DIV + COUNT( * ) - - 42 AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-2410
SELECT DISTINCT - + 98 / + COUNT ( * ) - - 42 AS col0
----
-56

query II rowsort
SELECT - - 88 AS col1, 44 * + 80 col2
----
88
3520

query I rowsort
SELECT ALL - - 48 + + 92
----
140

query I rowsort
SELECT ALL - 37 + - + 34 + + + ( + 61 ) + - 23 * 22 AS col0
----
-516

onlyif mysql # aggregate syntax: 
query I rowsort label-2414
SELECT ALL + - 35 + - 23 * + + 52 * + COUNT( * ) AS col0
----
-1231

skipif mysql # not compatible
query I rowsort label-2414
SELECT ALL + - 35 + - 23 * + + 52 * + COUNT ( * ) AS col0
----
-1231

onlyif mysql # aggregate syntax: 
query II rowsort label-2415
SELECT - SUM( ALL + 35 ) AS col0, - 76 AS col2
----
-35
-76

skipif mysql # not compatible
query II rowsort label-2415
SELECT - SUM ( ALL + 35 ) AS col0, - 76 AS col2
----
-35
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2416
SELECT 79 DIV - CASE - + 51 WHEN - MAX( + 26 ) THEN 34 DIV + 90 + 41 WHEN + 3 - + + CASE 64 WHEN + - COUNT( * ) * + - 80 + + 66 + + ( + 51 ) * - 47 THEN NULL WHEN + 82 + + + 86 THEN + + 67 + - 58 ELSE NULL END THEN + - 78 + - 71 * - 2 ELSE + COALESCE ( 12, + 70 ) END - + 55
----
-61

skipif mysql # not compatible
query I rowsort label-2416
SELECT 79 / - CASE - + 51 WHEN - MAX ( + 26 ) THEN 34 / + 90 + 41 WHEN + 3 - + + CASE 64 WHEN + - COUNT ( * ) * + - 80 + + 66 + + ( + 51 ) * - 47 THEN NULL WHEN + 82 + + + 86 THEN + + 67 + - 58 ELSE NULL END THEN + - 78 + - 71 * - 2 ELSE + COALESCE ( 12, + 70 ) END - + 55
----
-61

query I rowsort
SELECT + 89 * + - 3 * + 87 * 54 AS col2
----
-1254366

query I rowsort
SELECT - 0 - + - 24 + + 26 AS col1
----
50

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2420
SELECT - COUNT( DISTINCT 60 ) * + + CASE 50 WHEN - 75 THEN NULL WHEN - + ( + + CASE + 77 WHEN + COUNT( * ) THEN NULL WHEN + MAX( 61 ) * 83 THEN NULL WHEN - 78 THEN - + 7 END ) THEN NULL ELSE + CAST( NULL AS SIGNED ) END - + 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2420
SELECT - COUNT ( DISTINCT 60 ) * + + CASE 50 WHEN - 75 THEN NULL WHEN - + ( + + CASE + 77 WHEN + COUNT ( * ) THEN NULL WHEN + MAX ( 61 ) * 83 THEN NULL WHEN - 78 THEN - + 7 END ) THEN NULL ELSE + CAST ( NULL AS INTEGER ) END - + 53 AS col2
----
NULL

query I rowsort
SELECT ALL 82 * - 22 * + 84 AS col2
----
-151536

query I rowsort
SELECT DISTINCT + 40 * - - 24 + - 82
----
878

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT + CASE + 81 WHEN - 16 * - 37 / + COALESCE ( - 41, + - SUM( CASE + 42 WHEN - 54 THEN - 1 + - ( - + 82 ) END ) + - + 42 ) + 63 THEN + 51 * + 15 + + + COALESCE ( 76, + COUNT( * ) ) ELSE - 88 * COUNT( * ) * - 7 * + ( COUNT( * ) ) + - 4 END
----
612

skipif mysql # not compatible
query I rowsort label-2423
SELECT + CASE + 81 WHEN - 16 * - 37 / + COALESCE ( - 41, + - SUM ( CASE + 42 WHEN - 54 THEN - 1 + - ( - + 82 ) END ) + - + 42 ) + 63 THEN + 51 * + 15 + + + COALESCE ( 76, + COUNT ( * ) ) ELSE - 88 * COUNT ( * ) * - 7 * + ( COUNT ( * ) ) + - 4 END
----
612

query I rowsort
SELECT + 23 - + 67 - + + 84 * - 80 AS col0
----
6676

onlyif mysql # aggregate syntax: 
query I rowsort label-2425
SELECT + COUNT( ALL COALESCE ( 81, 64, + 96 ) ) + - - 67 * + - 86 * - COUNT( * ) * 99 + - COUNT( * )
----
570438

skipif mysql # not compatible
query I rowsort label-2425
SELECT + COUNT ( ALL COALESCE ( 81, 64, + 96 ) ) + - - 67 * + - 86 * - COUNT ( * ) * 99 + - COUNT ( * )
----
570438

onlyif mysql # aggregate syntax: 
query I rowsort label-2426
SELECT + MAX( + - 6 ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-2426
SELECT + MAX ( + - 6 ) AS col1
----
-6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2427
SELECT CASE + + NULLIF ( + - COUNT( ALL + + CAST( + 41 AS DECIMAL ) ), 75 ) WHEN + - 32 THEN - 20 - + 24 + 45 WHEN 21 THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2427
SELECT CASE + + NULLIF ( + - COUNT ( ALL + + CAST ( + 41 AS REAL ) ), 75 ) WHEN + - 32 THEN - 20 - + 24 + 45 WHEN 21 THEN NULL END col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2428
SELECT ALL ( + 4 ) * + CAST( + 54 AS SIGNED ) AS col0
----
216

skipif mysql # not compatible
query I rowsort label-2428
SELECT ALL ( + 4 ) * + CAST ( + 54 AS INTEGER ) AS col0
----
216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2429
SELECT + 92 * 43 DIV COUNT( * ) col1
----
3956

skipif mysql # not compatible
query I rowsort label-2429
SELECT + 92 * 43 / COUNT ( * ) col1
----
3956

query II rowsort
SELECT DISTINCT - 99 * + + 36, + ( + 29 ) AS col2
----
-3564
29

onlyif mysql # DIV for integer division: 
query I rowsort label-2431
SELECT ALL ( 95 ) * + - COALESCE ( + 52, - 56 ) - - 21 DIV + 86
----
-4940

skipif mysql # not compatible
query I rowsort label-2431
SELECT ALL ( 95 ) * + - COALESCE ( + 52, - 56 ) - - 21 / + 86
----
-4940

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2432
SELECT + MAX( DISTINCT 89 ) DIV + 91 + + 47 DIV - 16 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-2432
SELECT + MAX ( DISTINCT 89 ) / + 91 + + 47 / - 16 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2433
SELECT ALL + CASE - ( + - 65 ) WHEN - - AVG ( DISTINCT 53 ) THEN + 63 * - COALESCE ( - + 11, 70 ) / - - ( - 61 ) + COUNT( ALL - 23 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2433
SELECT ALL + CASE - ( + - 65 ) WHEN - - AVG ( DISTINCT 53 ) THEN + 63 * - COALESCE ( - + 11, 70 ) / - - ( - 61 ) + COUNT ( ALL - 23 ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + + NULLIF ( 78, - + 43 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT - - SUM( + + NULLIF ( - 85, + 16 ) )
----
-85

skipif mysql # not compatible
query I rowsort label-2435
SELECT - - SUM ( + + NULLIF ( - 85, + 16 ) )
----
-85

query II rowsort
SELECT + + ( - 38 ) + - + 88, 72 col0
----
-126
72

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

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

query I rowsort
SELECT + 57 + - + 4
----
53

query II rowsort
SELECT + 70 * - 33 AS col0, ( + 92 )
----
-2310
92

onlyif mysql # DIV for integer division: 
query II rowsort label-2440
SELECT ALL + 21 + - 80 DIV + + 59 AS col0, 98 AS col1
----
20
98

skipif mysql # not compatible
query II rowsort label-2440
SELECT ALL + 21 + - 80 / + + 59 AS col0, 98 AS col1
----
20
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2441
SELECT DISTINCT - 99 + CASE + + 75 WHEN + - 91 THEN NULL WHEN + COALESCE ( + - 57, - + AVG ( - 70 ) ) THEN - + SUM( ALL - ( + + 38 ) ) * - 82 ELSE NULL END * - 35 - COALESCE ( - CAST( COUNT( * ) AS SIGNED ), 14 ) + 15 + + AVG ( DISTINCT + ( - 99 ) ) * 20 * - 76 + + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-2441
SELECT DISTINCT - 99 + CASE + + 75 WHEN + - 91 THEN NULL WHEN + COALESCE ( + - 57, - + AVG ( - 70 ) ) THEN - + SUM ( ALL - ( + + 38 ) ) * - 82 ELSE NULL END * - 35 - COALESCE ( - CAST ( COUNT ( * ) AS INTEGER ), 14 ) + 15 + + AVG ( DISTINCT + ( - 99 ) ) * 20 * - 76 + + 45
----
NULL

query I rowsort
SELECT ALL + 40 + 26 + 39 AS col2
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-2443
SELECT ALL - COALESCE ( + 20, 34 * 76 DIV 88 * 47 )
----
-20

skipif mysql # not compatible
query I rowsort label-2443
SELECT ALL - COALESCE ( + 20, 34 * 76 / 88 * 47 )
----
-20

query I rowsort
SELECT - + 60 + 39 AS col2
----
-21

query I rowsort
SELECT - COALESCE ( + - 63, + 82 ) col2
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2446
SELECT - + CAST( + - COALESCE ( - MIN( ALL + - NULLIF ( 50, + 67 ) ), + 49 * - + 53, 93 ) AS SIGNED ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-2446
SELECT - + CAST ( + - COALESCE ( - MIN ( ALL + - NULLIF ( 50, + 67 ) ), + 49 * - + 53, 93 ) AS INTEGER ) AS col2
----
50

query I rowsort
SELECT COALESCE ( 5, 73 ) AS col2
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-2448
SELECT ALL - ( 66 ) + + + 95 AS col1, + 27 + + 39 * COUNT( * ) * + + ( + ( - 96 ) ) + - 49
----
29
-3766

skipif mysql # not compatible
query II rowsort label-2448
SELECT ALL - ( 66 ) + + + 95 AS col1, + 27 + + 39 * COUNT ( * ) * + + ( + ( - 96 ) ) + - 49
----
29
-3766

query I rowsort
SELECT + 1 + ( 34 ) AS col1
----
35

query I rowsort
SELECT - 6 - + 18 AS col2
----
-24

query I rowsort
SELECT - 77 + + + 63 AS col1
----
-14

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

skipif mysql # not compatible
query I rowsort label-2452
SELECT ALL CAST ( - + ( + 58 ) AS INTEGER ) AS col1
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2453
SELECT ALL + 29 / + COUNT( * ) * - CAST( NULL AS SIGNED ) + - 13 - + 72 * + 75 * - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-2453
SELECT ALL + 29 / + COUNT ( * ) * - CAST ( NULL AS INTEGER ) + - 13 - + 72 * + 75 * - 39
----
NULL

query I rowsort
SELECT - 70 * 67 AS col0
----
-4690

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT ALL + COUNT( * ) * - + 77 col0
----
-77

skipif mysql # not compatible
query I rowsort label-2455
SELECT ALL + COUNT ( * ) * - + 77 col0
----
-77

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2456
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - CAST( NULL AS SIGNED ) AS col1
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-2457
SELECT DISTINCT - MIN ( ALL 74 )
----
-74

query I rowsort
SELECT 29 * + 49
----
1421

query I rowsort
SELECT 64 * + 38 AS col0
----
2432

onlyif mysql # DIV for integer division: 
query II rowsort label-2460
SELECT DISTINCT - 4 - + + 42 DIV 34 AS col2, - 55 * + - 5
----
-5
275

skipif mysql # not compatible
query II rowsort label-2460
SELECT DISTINCT - 4 - + + 42 / 34 AS col2, - 55 * + - 5
----
-5
275

query I rowsort
SELECT 44 + - 94
----
-50

query II rowsort
SELECT + 14, 89 AS col0
----
14
89

query I rowsort
SELECT 54 * - 18
----
-972

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2464
SELECT ALL - CASE - - 46 WHEN 13 * - + 14 THEN NULL ELSE + - CAST( + 91 AS SIGNED ) END col1, COUNT( * )
----
91
1

skipif mysql # not compatible
query II rowsort label-2464
SELECT ALL - CASE - - 46 WHEN 13 * - + 14 THEN NULL ELSE + - CAST ( + 91 AS INTEGER ) END col1, COUNT ( * )
----
91
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2465
SELECT ALL - - 48 DIV - CAST( 71 AS SIGNED ) - - 30 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-2465
SELECT ALL - - 48 / - CAST ( 71 AS INTEGER ) - - 30 AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2466
SELECT + NULLIF ( ( + 57 ), - COUNT( * ) )
----
57

skipif mysql # not compatible
query I rowsort label-2466
SELECT + NULLIF ( ( + 57 ), - COUNT ( * ) )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT ALL + - COUNT( * ) + - COUNT( * ) + + 6 - + COUNT( ALL + 27 ) - COALESCE ( 36, 26 ) * + - 94 * ( - - 42 ) + - 42 * 37 AS col2
----
140577

skipif mysql # not compatible
query I rowsort label-2467
SELECT ALL + - COUNT ( * ) + - COUNT ( * ) + + 6 - + COUNT ( ALL + 27 ) - COALESCE ( 36, 26 ) * + - 94 * ( - - 42 ) + - 42 * 37 AS col2
----
140577

query I rowsort
SELECT 3 * + 67 AS col0
----
201

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT - 32 - + - COUNT( DISTINCT + + 25 ) + 78 * 72 * + - ( 1 )
----
-5647

skipif mysql # not compatible
query I rowsort label-2469
SELECT - 32 - + - COUNT ( DISTINCT + + 25 ) + 78 * 72 * + - ( 1 )
----
-5647

query I rowsort
SELECT DISTINCT - + 6 + - 8 AS col2
----
-14

query I rowsort
SELECT ALL + 50 + + - 57
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-2472
SELECT - 67, 52 + + - COUNT( * ) AS col0
----
-67
51

skipif mysql # not compatible
query II rowsort label-2472
SELECT - 67, 52 + + - COUNT ( * ) AS col0
----
-67
51

query I rowsort
SELECT ALL + 70 + + + 91 + + + NULLIF ( 19, + 65 ) * + 81
----
1700

query I rowsort
SELECT ALL 47 + - 77 AS col1
----
-30

query II rowsort
SELECT - 39 AS col2, - 95 * 27
----
-39
-2565

query I rowsort
SELECT - 91 + - 48 * - 45 + + + 1
----
2070

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2478
SELECT 51 * COUNT( - 91 ) col1, + 59 AS col2
----
51
59

skipif mysql # not compatible
query II rowsort label-2478
SELECT 51 * COUNT ( - 91 ) col1, + 59 AS col2
----
51
59

query II rowsort
SELECT 55 col0, - 38
----
55
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2480
SELECT ( - ( + SUM( 7 ) ) ) + - 90 AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-2480
SELECT ( - ( + SUM ( 7 ) ) ) + - 90 AS col0
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-2481
SELECT DISTINCT 18 AS col1, + ( - COUNT( * ) ) col0
----
18
-1

skipif mysql # not compatible
query II rowsort label-2481
SELECT DISTINCT 18 AS col1, + ( - COUNT ( * ) ) col0
----
18
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2483
SELECT DISTINCT COUNT( * ) * SUM( DISTINCT COALESCE ( + 26, + 42, + 93 + 57 ) )
----
26

skipif mysql # not compatible
query I rowsort label-2483
SELECT DISTINCT COUNT ( * ) * SUM ( DISTINCT COALESCE ( + 26, + 42, + 93 + 57 ) )
----
26

query I rowsort
SELECT ( + - 37 ) + - 28 AS col0
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-2485
SELECT COUNT( * ) * + 4 AS col1, COUNT( ALL - 27 ) AS col0
----
4
1

skipif mysql # not compatible
query II rowsort label-2485
SELECT COUNT ( * ) * + 4 AS col1, COUNT ( ALL - 27 ) AS col0
----
4
1

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

skipif mysql # not compatible
query I rowsort label-2486
SELECT 64 * - COUNT ( * ) / + 77 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2487
SELECT 38 - + + 30 DIV + COUNT( * ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-2487
SELECT 38 - + + 30 / + COUNT ( * ) AS col2
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2488
SELECT 54 DIV - + COUNT( * ) col1
----
-54

skipif mysql # not compatible
query I rowsort label-2488
SELECT 54 / - + COUNT ( * ) col1
----
-54

query II rowsort
SELECT DISTINCT + 45 * + 30 AS col1, 87 AS col2
----
1350
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2490
SELECT + COUNT( * ) DIV - 98 - + 13 AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-2490
SELECT + COUNT ( * ) / - 98 - + 13 AS col0
----
-13

query I rowsort
SELECT ALL + 54 * 78 col0
----
4212

query II rowsort
SELECT 83 - 14, 52 * + 51 AS col0
----
69
2652

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2493
SELECT COALESCE ( + CASE - + 21 WHEN + - MAX( DISTINCT + 68 ) + + COUNT( * ) THEN + 39 + - ( - 32 ) - - 29 ELSE - + 31 END, COUNT( * ) + - + CAST( + 87 AS SIGNED ) ) * + NULLIF ( + - 38, - ( - 3 ) * 90 ), 27 * 83 AS col2
----
1178
2241

skipif mysql # not compatible
query II rowsort label-2493
SELECT COALESCE ( + CASE - + 21 WHEN + - MAX ( DISTINCT + 68 ) + + COUNT ( * ) THEN + 39 + - ( - 32 ) - - 29 ELSE - + 31 END, COUNT ( * ) + - + CAST ( + 87 AS INTEGER ) ) * + NULLIF ( + - 38, - ( - 3 ) * 90 ), 27 * 83 AS col2
----
1178
2241

query I rowsort
SELECT ALL - 15 + + 78 + + 89
----
152

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2496
SELECT DISTINCT + COUNT( * ) + 64 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-2496
SELECT DISTINCT + COUNT ( * ) + 64 AS col1
----
65

query II rowsort
SELECT ALL + + 41 + - 59 AS col2, 56 AS col2
----
-18
56

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

skipif mysql # not compatible
query I rowsort label-2498
SELECT ALL + + ( + COUNT ( * ) ) + - 93 + + + 34 AS col2
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2499
SELECT - 61 * - 87 * - CAST( 40 AS SIGNED ) * + + 79 + - CAST( + 39 AS SIGNED ) col1, 51
----
-16770159
51

skipif mysql # not compatible
query II rowsort label-2499
SELECT - 61 * - 87 * - CAST ( 40 AS INTEGER ) * + + 79 + - CAST ( + 39 AS INTEGER ) col1, 51
----
-16770159
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2500
SELECT DISTINCT + 82 * + + ( CAST( + 87 AS SIGNED ) ) * - - 91 * 10
----
6491940

skipif mysql # not compatible
query I rowsort label-2500
SELECT DISTINCT + 82 * + + ( CAST ( + 87 AS INTEGER ) ) * - - 91 * 10
----
6491940

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

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

query I rowsort
SELECT ALL + + 28 + + 36 * 19 * - + 42 * + 8 AS col1
----
-229796

query I rowsort
SELECT + 28 + 51 col0
----
79

query I rowsort
SELECT - - NULLIF ( 40, - + ( + 32 ) ) AS col0
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2505
SELECT CAST( + ( + AVG ( - NULLIF ( - 27, 66 ) ) ) AS SIGNED ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-2505
SELECT CAST ( + ( + AVG ( - NULLIF ( - 27, 66 ) ) ) AS INTEGER ) AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT + 55 + - 51 * + COUNT( * ) + + - COUNT( * ) - 19 * 56 AS col1
----
-1061

skipif mysql # not compatible
query I rowsort label-2506
SELECT + 55 + - 51 * + COUNT ( * ) + + - COUNT ( * ) - 19 * 56 AS col1
----
-1061

onlyif mysql # aggregate syntax: 
query I rowsort label-2507
SELECT DISTINCT COALESCE ( - COUNT( * ), 55, - 40 )
----
-1

skipif mysql # not compatible
query I rowsort label-2507
SELECT DISTINCT COALESCE ( - COUNT ( * ), 55, - 40 )
----
-1

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

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

query II rowsort
SELECT DISTINCT + 3 - 37 * + 81 AS col2, 38 * + - 93 * - - 46
----
-2994
-162564

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

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

query I rowsort
SELECT + 23 + + 35 AS col1
----
58

query I rowsort
SELECT - 35 * + 68
----
-2380

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2513
SELECT + COALESCE ( - + 13, + CAST( - 16 AS SIGNED ) ) + + 84 - ( - 62 ) AS col0
----
133

skipif mysql # not compatible
query I rowsort label-2513
SELECT + COALESCE ( - + 13, + CAST ( - 16 AS INTEGER ) ) + + 84 - ( - 62 ) AS col0
----
133

query I rowsort
SELECT + 11 + ( + + 70 )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2515
SELECT + MAX( DISTINCT 96 ) * - 57
----
-5472

skipif mysql # not compatible
query I rowsort label-2515
SELECT + MAX ( DISTINCT 96 ) * - 57
----
-5472

query I rowsort
SELECT ALL 99 * - ( 43 )
----
-4257

query I rowsort
SELECT ALL 52 * - + 15
----
-780

query I rowsort
SELECT ( - NULLIF ( - - 66, 47 ) ) AS col2
----
-66

query I rowsort
SELECT ALL ( - - 41 ) * - 41 + - 14 col0
----
-1695

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

skipif mysql # not compatible
query I rowsort label-2520
SELECT + MIN ( + + 27 )
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-2521
SELECT - ( - 74 ) DIV 58
----
1

skipif mysql # not compatible
query I rowsort label-2521
SELECT - ( - 74 ) / 58
----
1

query I rowsort
SELECT + - 5 * + ( 37 ) col1
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT ALL - - 28 * + + COUNT( DISTINCT - + 24 ) + + NULLIF ( + 21, - - COUNT( * ) + - 33 / + 52 * + 80 * - NULLIF ( - 58, 33 ) ) + + 69 * + 56 AS col2
----
3913

skipif mysql # not compatible
query I rowsort label-2523
SELECT ALL - - 28 * + + COUNT ( DISTINCT - + 24 ) + + NULLIF ( + 21, - - COUNT ( * ) + - 33 / + 52 * + 80 * - NULLIF ( - 58, 33 ) ) + + 69 * + 56 AS col2
----
3913

query I rowsort
SELECT - ( 20 ) * + + 17 col1
----
-340

onlyif mysql # DIV for integer division: 
query I rowsort label-2525
SELECT ALL 6 DIV 87
----
0

skipif mysql # not compatible
query I rowsort label-2525
SELECT ALL 6 / 87
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2526
SELECT - 72 * - ( + 43 ) + + - CAST( NULL AS SIGNED ) + - + ( + ( - SUM( + 49 ) ) ) + - + 1 * - - CASE - 50 WHEN - 77 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN 70 + MIN( ALL - - 73 ) END + + 89 + + 96, - CASE 65 WHEN + 79 THEN + + COUNT( * ) * - ( - - 67 ) + - 93 + - 71 + - - 78 + - 95 * 66 ELSE NULL END AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2526
SELECT - 72 * - ( + 43 ) + + - CAST ( NULL AS INTEGER ) + - + ( + ( - SUM ( + 49 ) ) ) + - + 1 * - - CASE - 50 WHEN - 77 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN 70 + MIN ( ALL - - 73 ) END + + 89 + + 96, - CASE 65 WHEN + 79 THEN + + COUNT ( * ) * - ( - - 67 ) + - 93 + - 71 + - - 78 + - 95 * 66 ELSE NULL END AS col2
----
NULL
NULL

query I rowsort
SELECT DISTINCT + + 39 * - 46 * 28
----
-50232

onlyif mysql # aggregate syntax: 
query I rowsort label-2528
SELECT ALL - COUNT( * ) * - - 9 + + 37 * + 89 AS col1
----
3284

skipif mysql # not compatible
query I rowsort label-2528
SELECT ALL - COUNT ( * ) * - - 9 + + 37 * + 89 AS col1
----
3284

query II rowsort
SELECT + 35 AS col2, 4
----
35
4

query I rowsort
SELECT + + COALESCE ( - 27, + 53 * + 79 ) col2
----
-27

query I rowsort
SELECT - + ( + 62 ) * - 88 * + 83 + - 22 + 38 AS col1
----
452864

query I rowsort
SELECT ALL - 76 * + - 48 - - 82 * + - 44
----
40

query I rowsort
SELECT DISTINCT CASE 11 WHEN CASE - 57 WHEN - AVG ( + - ( - 93 ) ) * - 98 * + 99 + + 60 THEN + + 21 END THEN + 99 * + - 79 + 69 ELSE NULL END
----
NULL

query II rowsort
SELECT - 25, - 85 AS col1
----
-25
-85

query I rowsort
SELECT - 18 * + 44
----
-792

onlyif mysql # DIV for integer division: 
query I rowsort label-2536
SELECT ALL + 89 DIV - 74
----
-1

skipif mysql # not compatible
query I rowsort label-2536
SELECT ALL + 89 / - 74
----
-1

query I rowsort
SELECT - 35 - 83 * + 47 + 52 + + + 85 col0
----
-3799

query II rowsort
SELECT - 33, 0 AS col2
----
-33
0

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

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

query II rowsort
SELECT DISTINCT + ( - CASE NULLIF ( ( 81 ), + 20 ) WHEN - 20 THEN NULL WHEN - - 58 THEN 35 * + 91 END ) * - 0, - ( + 0 ) + + + 85 + - 94 AS col2
----
NULL
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2541
SELECT - 70 DIV 85 * COUNT( * ) * ( + + 86 )
----
0

skipif mysql # not compatible
query I rowsort label-2541
SELECT - 70 / 85 * COUNT ( * ) * ( + + 86 )
----
0

query I rowsort
SELECT + ( 10 ) * + + ( + 74 )
----
740

onlyif mysql # aggregate syntax: 
query I rowsort label-2543
SELECT + ( 93 ) + + 2 * COUNT( * ) + + 46 AS col1
----
141

skipif mysql # not compatible
query I rowsort label-2543
SELECT + ( 93 ) + + 2 * COUNT ( * ) + + 46 AS col1
----
141

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2545
SELECT - COUNT( * ) col1, - NULLIF ( - 51, - ( COUNT( * ) ) ) * + 15 * + - 71 AS col0
----
-1
-54315

skipif mysql # not compatible
query II rowsort label-2545
SELECT - COUNT ( * ) col1, - NULLIF ( - 51, - ( COUNT ( * ) ) ) * + 15 * + - 71 AS col0
----
-1
-54315

query I rowsort
SELECT ALL + 0 + - 99 + 0 AS col2
----
-99

query II rowsort
SELECT 28 AS col1, 60
----
28
60

query I rowsort
SELECT - 4 + - 55 AS col0
----
-59

query I rowsort
SELECT + 10 * + - ( + 95 ) AS col1
----
-950

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT ALL 16 + + MAX( DISTINCT 87 ) - - 32
----
135

skipif mysql # not compatible
query I rowsort label-2550
SELECT ALL 16 + + MAX ( DISTINCT 87 ) - - 32
----
135

query I rowsort
SELECT + ( + 18 ) * 41
----
738

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2552
SELECT + 1 DIV + - 9 - - MIN( 86 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-2552
SELECT + 1 / + - 9 - - MIN ( 86 ) AS col0
----
86

query I rowsort
SELECT + 74 + 37 AS col0
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2554
SELECT ALL 20 / + CASE - 21 WHEN + 47 THEN - - CAST( NULL AS SIGNED ) + 29 / 55 / + 49 + + 94 + 80 * - 57 WHEN - + AVG ( 77 ) * + CAST( NULL AS SIGNED ) * + + 90 THEN NULL END + + NULLIF ( - - 81, COUNT( * ) ) + - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-2554
SELECT ALL 20 / + CASE - 21 WHEN + 47 THEN - - CAST ( NULL AS INTEGER ) + 29 / 55 / + 49 + + 94 + 80 * - 57 WHEN - + AVG ( 77 ) * + CAST ( NULL AS INTEGER ) * + + 90 THEN NULL END + + NULLIF ( - - 81, COUNT ( * ) ) + - 10
----
NULL

query I rowsort
SELECT DISTINCT 29 * + + 20 + 28 * - 8 * 46 col0
----
-9724

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT + + COUNT( * ) * - 57 * + - 46 + - 62
----
2560

skipif mysql # not compatible
query I rowsort label-2556
SELECT + + COUNT ( * ) * - 57 * + - 46 + - 62
----
2560

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2557
SELECT ALL MIN( DISTINCT + + 77 ) DIV + + 31 + 69 AS col0, + 52 * 21 AS col1
----
71
1092

skipif mysql # not compatible
query II rowsort label-2557
SELECT ALL MIN ( DISTINCT + + 77 ) / + + 31 + 69 AS col0, + 52 * 21 AS col1
----
71
1092

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2559
SELECT DISTINCT + 19 AS col1, + SUM( ALL 97 ) + - - 88 + + 76
----
19
261

skipif mysql # not compatible
query II rowsort label-2559
SELECT DISTINCT + 19 AS col1, + SUM ( ALL 97 ) + - - 88 + + 76
----
19
261

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2560
SELECT DISTINCT 95 * - CASE - 16 WHEN - ( 87 ) THEN + 53 ELSE 79 END * - 69 + + + 56 + NULLIF ( 20, CASE - ( - - 0 ) WHEN MAX( DISTINCT + 47 ) THEN - 74 WHEN - 84 * NULLIF ( + AVG ( DISTINCT - 73 ), + AVG ( - + 11 ) * 97 ) * + + 41 THEN + - CAST( 7 AS SIGNED ) END ) DIV - 92
----
517901

skipif mysql # not compatible
query I rowsort label-2560
SELECT DISTINCT 95 * - CASE - 16 WHEN - ( 87 ) THEN + 53 ELSE 79 END * - 69 + + + 56 + NULLIF ( 20, CASE - ( - - 0 ) WHEN MAX ( DISTINCT + 47 ) THEN - 74 WHEN - 84 * NULLIF ( + AVG ( DISTINCT - 73 ), + AVG ( - + 11 ) * 97 ) * + + 41 THEN + - CAST ( 7 AS INTEGER ) END ) / - 92
----
517901

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2561
SELECT - - ( + 1 ) DIV + COUNT( * ) - - 96 * 14
----
1345

skipif mysql # not compatible
query I rowsort label-2561
SELECT - - ( + 1 ) / + COUNT ( * ) - - 96 * 14
----
1345

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2562
SELECT - CAST( NULL AS DECIMAL ) AS col0, 40 * ( 27 ) AS col1
----
NULL
1080

skipif mysql # not compatible
query II rowsort label-2562
SELECT - CAST ( NULL AS REAL ) AS col0, 40 * ( 27 ) AS col1
----
NULL
1080

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2563
SELECT + 18, + CAST( + 11 AS SIGNED ) AS col1
----
18
11

skipif mysql # not compatible
query II rowsort label-2563
SELECT + 18, + CAST ( + 11 AS INTEGER ) AS col1
----
18
11

onlyif mysql # DIV for integer division: 
query I rowsort label-2564
SELECT DISTINCT - 94 DIV + - ( + 62 ) - + 20 + - 53 - 32 + + 40 * - + 94 * - 70
----
263096

skipif mysql # not compatible
query I rowsort label-2564
SELECT DISTINCT - 94 / + - ( + 62 ) - + 20 + - 53 - 32 + + 40 * - + 94 * - 70
----
263096

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2565
SELECT ALL - 58 DIV 97 - - 59 - 84 AS col0, + COUNT( * )
----
-25
1

skipif mysql # not compatible
query II rowsort label-2565
SELECT ALL - 58 / 97 - - 59 - 84 AS col0, + COUNT ( * )
----
-25
1

query I rowsort
SELECT - 71 * 73
----
-5183

onlyif mysql # aggregate syntax: 
query I rowsort label-2567
SELECT ALL + - CASE - - 45 WHEN + - 61 THEN 60 * + 67 + - 96 WHEN - - 55 - + - 63 THEN COUNT( * ) ELSE - 10 END
----
10

skipif mysql # not compatible
query I rowsort label-2567
SELECT ALL + - CASE - - 45 WHEN + - 61 THEN 60 * + 67 + - 96 WHEN - - 55 - + - 63 THEN COUNT ( * ) ELSE - 10 END
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2568
SELECT 95 * SUM( DISTINCT - + 87 ) * - - 23 + - 44 * - - ( 41 ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2568
SELECT 95 * SUM ( DISTINCT - + 87 ) * - - 23 + - 44 * - - ( 41 ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2569
SELECT ALL + 61 / + - ( + CAST( + 17 AS DECIMAL ) ) * - 93 + - CAST( 47 AS DECIMAL ) * - 17 + ( 18 ) + 16 + 54 / - 23 / - COUNT( * ) + - 27 * MAX( + - NULLIF ( 45, 88 ) ) * + CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) * + COUNT( DISTINCT - COALESCE ( ( + + 99 ), - 53 / - 19 * 90 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2569
SELECT ALL + 61 / + - ( + CAST ( + 17 AS REAL ) ) * - 93 + - CAST ( 47 AS REAL ) * - 17 + ( 18 ) + 16 + 54 / - 23 / - COUNT ( * ) + - 27 * MAX ( + - NULLIF ( 45, 88 ) ) * + CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) * + COUNT ( DISTINCT - COALESCE ( ( + + 99 ), - 53 / - 19 * 90 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2570
SELECT ALL + + CAST( COUNT( * ) AS SIGNED ) - - - 49 AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-2570
SELECT ALL + + CAST ( COUNT ( * ) AS INTEGER ) - - - 49 AS col0
----
-48

query I rowsort
SELECT DISTINCT 25 * - 71 col1
----
-1775

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2572
SELECT CASE CAST( + COUNT( * ) AS SIGNED ) WHEN 1 THEN + - 85 END + - + MIN( - 54 ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-2572
SELECT CASE CAST ( + COUNT ( * ) AS INTEGER ) WHEN 1 THEN + - 85 END + - + MIN ( - 54 ) AS col0
----
-31

query I rowsort
SELECT + 73 * 24 * 79
----
138408

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

skipif mysql # not compatible
query I rowsort label-2574
SELECT ALL 30 * - COUNT ( * ) * + + 90 AS col2
----
-2700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2575
SELECT ( - CAST( NULL AS SIGNED ) ) * + ( - 76 ) * 1 * - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-2575
SELECT ( - CAST ( NULL AS INTEGER ) ) * + ( - 76 ) * 1 * - 53
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2576
SELECT 58 * - 61 AS col2, - 29 DIV + 18 + + + 59
----
-3538
58

skipif mysql # not compatible
query II rowsort label-2576
SELECT 58 * - 61 AS col2, - 29 / + 18 + + + 59
----
-3538
58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT 64 - 95 + + 6 * ( - NULLIF ( + + COUNT( * ), 60 + - - 79 ) ) + + 65
----
28

skipif mysql # not compatible
query I rowsort label-2578
SELECT 64 - 95 + + 6 * ( - NULLIF ( + + COUNT ( * ), 60 + - - 79 ) ) + + 65
----
28

query I rowsort
SELECT DISTINCT + 85 * + - 96
----
-8160

query I rowsort
SELECT 48 + + 51 AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2581
SELECT ALL + 68 + - 30 * - COUNT( * ) + - MIN( 37 ) - - + 47 * - 58
----
-2665

skipif mysql # not compatible
query I rowsort label-2581
SELECT ALL + 68 + - 30 * - COUNT ( * ) + - MIN ( 37 ) - - + 47 * - 58
----
-2665

query I rowsort
SELECT DISTINCT + 13 + + 72 AS col2
----
85

query I rowsort
SELECT ALL - 23 * - + 13 AS col1
----
299

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2584
SELECT 73 + + 48 + + CASE + 50 WHEN MIN( - 40 ) + + COUNT( * ) * 86 * + 65 THEN - 86 + COUNT( * ) + + 15 * + 77 WHEN CAST( NULL AS SIGNED ) THEN NULL END * - 99 * - 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2584
SELECT 73 + + 48 + + CASE + 50 WHEN MIN ( - 40 ) + + COUNT ( * ) * 86 * + 65 THEN - 86 + COUNT ( * ) + + 15 * + 77 WHEN CAST ( NULL AS INTEGER ) THEN NULL END * - 99 * - 68 AS col0
----
NULL

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

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

query I rowsort
SELECT ALL 62 + 44 * + + 45
----
2042

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT 89 * + + 19 * + COUNT( * ) * + 70 AS col1
----
118370

skipif mysql # not compatible
query I rowsort label-2587
SELECT 89 * + + 19 * + COUNT ( * ) * + 70 AS col1
----
118370

onlyif mysql # DIV for integer division: 
query I rowsort label-2588
SELECT ALL + - 34 + + - 49 DIV 34 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-2588
SELECT ALL + - 34 + + - 49 / 34 AS col1
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2589
SELECT DISTINCT + CAST( - 81 AS SIGNED ) - - 94 * + 65 * - 27 AS col0
----
-165051

skipif mysql # not compatible
query I rowsort label-2589
SELECT DISTINCT + CAST ( - 81 AS INTEGER ) - - 94 * + 65 * - 27 AS col0
----
-165051

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2590
SELECT - 42 DIV + - COUNT( * ) + NULLIF ( 88, COUNT( * ) * + 80 ) + - + 76 AS col2
----
54

skipif mysql # not compatible
query I rowsort label-2590
SELECT - 42 / + - COUNT ( * ) + NULLIF ( 88, COUNT ( * ) * + 80 ) + - + 76 AS col2
----
54

query I rowsort
SELECT ALL + 42 - + 52 - + 57 AS col1
----
-67

query I rowsort
SELECT DISTINCT - + 6 AS col2
----
-6

query I rowsort
SELECT DISTINCT + 59 * - 13 + + 92
----
-675

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2596
SELECT DISTINCT CAST( NULL AS SIGNED ) * 40 * 85 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2596
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 40 * 85 AS col0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2599
SELECT 89 DIV - 66 + + + 1
----
0

skipif mysql # not compatible
query I rowsort label-2599
SELECT 89 / - 66 + + + 1
----
0

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

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

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

query II rowsort
SELECT DISTINCT 82 AS col0, + 69 AS col1
----
82
69

query I rowsort
SELECT ALL 76 + 1
----
77

query II rowsort
SELECT DISTINCT 36 AS col0, - 51
----
36
-51

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2605
SELECT ALL CAST( NULL AS DECIMAL ) + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2605
SELECT ALL CAST ( NULL AS REAL ) + + COUNT ( * ) AS col2
----
NULL

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

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

query I rowsort
SELECT ALL - 0 + - + 90 AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT CASE - - ( - 68 ) WHEN - - 60 / - COALESCE ( + 44, + - 76, COALESCE ( 43, + 4, + 38 * 42 + 42 ), - 8 * - 18 + - - 44 + + 90 + NULLIF ( - 91, 45 ) / 86 ) + 74 + + MAX( 48 ) THEN COUNT( DISTINCT - 83 ) WHEN - - 5 THEN - 83 END * + - 60 * - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-2608
SELECT CASE - - ( - 68 ) WHEN - - 60 / - COALESCE ( + 44, + - 76, COALESCE ( 43, + 4, + 38 * 42 + 42 ), - 8 * - 18 + - - 44 + + 90 + NULLIF ( - 91, 45 ) / 86 ) + 74 + + MAX ( 48 ) THEN COUNT ( DISTINCT - 83 ) WHEN - - 5 THEN - 83 END * + - 60 * - 68
----
NULL

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

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

query I rowsort
SELECT 54 - - 47 AS col0
----
101

query I rowsort
SELECT DISTINCT 34 * + 98
----
3332

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

skipif mysql # not compatible
query I rowsort label-2612
SELECT - SUM ( DISTINCT - CAST ( + 64 AS INTEGER ) )
----
64

query II rowsort
SELECT - 8, 57 col1
----
-8
57

query I rowsort
SELECT 73 * - + 70
----
-5110

query I rowsort
SELECT DISTINCT 98 * - ( + 14 ) AS col0
----
-1372

onlyif mysql # aggregate syntax: 
query I rowsort label-2616
SELECT ALL + COUNT( DISTINCT 60 ) - ( - 41 ) + - SUM( + + 38 ) * + COUNT( * ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-2616
SELECT ALL + COUNT ( DISTINCT 60 ) - ( - 41 ) + - SUM ( + + 38 ) * + COUNT ( * ) AS col0
----
4

query I rowsort
SELECT DISTINCT 92 - + 73 * - 27
----
2063

query I rowsort
SELECT DISTINCT - + 61 * + 83
----
-5063

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

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

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

query I rowsort
SELECT - 47 + + 93 AS col0
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-2622
SELECT + ( 43 ) DIV + 33 + - - 66 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-2622
SELECT + ( 43 ) / + 33 + - - 66 AS col1
----
67

query II rowsort
SELECT + + 53, - 13 AS col2
----
53
-13

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2625
SELECT DISTINCT - COUNT( * ) AS col2, 87 col2
----
-1
87

skipif mysql # not compatible
query II rowsort label-2625
SELECT DISTINCT - COUNT ( * ) AS col2, 87 col2
----
-1
87

query I rowsort
SELECT ALL - 94 * + 7 col2
----
-658

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

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

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

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

query I rowsort
SELECT + 46 + - 99 AS col0
----
-53

query II rowsort
SELECT 84 col2, 44
----
84
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2631
SELECT - 31 * - COUNT( * ) + + 32 + + COALESCE ( 53, - 22, + + MAX( ALL + CAST( 62 AS SIGNED ) ) ) + 20 + 58 + + + 14 + + 81 + + 72
----
361

skipif mysql # not compatible
query I rowsort label-2631
SELECT - 31 * - COUNT ( * ) + + 32 + + COALESCE ( 53, - 22, + + MAX ( ALL + CAST ( 62 AS INTEGER ) ) ) + 20 + 58 + + + 14 + + 81 + + 72
----
361

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT - COUNT( * ) + - 5 * - - COUNT( + 67 ) * ( - + 45 ) - + + 30 AS col1
----
194

skipif mysql # not compatible
query I rowsort label-2632
SELECT - COUNT ( * ) + - 5 * - - COUNT ( + 67 ) * ( - + 45 ) - + + 30 AS col1
----
194

query I rowsort
SELECT ALL + 72 * + 59 + 40
----
4288

onlyif mysql # aggregate syntax: 
query I rowsort label-2634
SELECT ALL 35 * MIN( + 78 ) * + 61
----
166530

skipif mysql # not compatible
query I rowsort label-2634
SELECT ALL 35 * MIN ( + 78 ) * + 61
----
166530

query I rowsort
SELECT ALL - 22 * - - 63 + - 34
----
-1420

query I rowsort
SELECT DISTINCT - ( 36 ) * - 54
----
1944

query I rowsort
SELECT - 34 * + - 69 + 91 AS col1
----
2437

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2639
SELECT ALL 99 * - CAST( - ( - 16 ) AS SIGNED ) col1, 73
----
-1584
73

skipif mysql # not compatible
query II rowsort label-2639
SELECT ALL 99 * - CAST ( - ( - 16 ) AS INTEGER ) col1, 73
----
-1584
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2640
SELECT + COUNT( * ) DIV + - NULLIF ( - - MAX( DISTINCT - 75 ), 99 ) * - + 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2640
SELECT + COUNT ( * ) / + - NULLIF ( - - MAX ( DISTINCT - 75 ), 99 ) * - + 88 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2641
SELECT - 23 + 26 / - 50 + + + 32 * + 62 + 89 + - + CAST( + 3 AS SIGNED ) * - 68 * - 87 - 62 + + + 21 / + + CASE WHEN NOT NULLIF ( + CAST( NULL AS SIGNED ), 41 * - - 40 * 9 + ( - COUNT( * ) ) ) = NULL THEN - 23 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2641
SELECT - 23 + 26 / - 50 + + + 32 * + 62 + 89 + - + CAST ( + 3 AS INTEGER ) * - 68 * - 87 - 62 + + + 21 / + + CASE WHEN NOT NULLIF ( + CAST ( NULL AS INTEGER ), 41 * - - 40 * 9 + ( - COUNT ( * ) ) ) = NULL THEN - 23 END AS col0
----
NULL

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2644
SELECT + 5 - + - COUNT( * ) DIV 8
----
5

skipif mysql # not compatible
query I rowsort label-2644
SELECT + 5 - + - COUNT ( * ) / 8
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2645
SELECT - ( + 69 ) AS col2, COUNT( * ) DIV + - 92
----
-69
0

skipif mysql # not compatible
query II rowsort label-2645
SELECT - ( + 69 ) AS col2, COUNT ( * ) / + - 92
----
-69
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2646
SELECT + SUM( DISTINCT 27 ) + - 35 DIV + MAX( ALL - 31 ) + 63 + - 93 + - + MAX( 73 ) * - 49 * 78 AS col1
----
279004

skipif mysql # not compatible
query I rowsort label-2646
SELECT + SUM ( DISTINCT 27 ) + - 35 / + MAX ( ALL - 31 ) + 63 + - 93 + - + MAX ( 73 ) * - 49 * 78 AS col1
----
279004

query I rowsort
SELECT + 51 + + 60 + ( - 49 ) - 3
----
59

query I rowsort
SELECT - COALESCE ( - - 50, - + 95 ) AS col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT + ( + + 77 ) * + 23 - 65 * - CASE + COUNT( * ) WHEN 89 THEN + - 46 END * - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-2649
SELECT + ( + + 77 ) * + 23 - 65 * - CASE + COUNT ( * ) WHEN 89 THEN + - 46 END * - 3
----
NULL

query I rowsort
SELECT DISTINCT 92 - 76 * 57 AS col2
----
-4240

onlyif mysql # DIV for integer division: 
query I rowsort label-2651
SELECT ALL 51 DIV + 26 col0
----
1

skipif mysql # not compatible
query I rowsort label-2651
SELECT ALL 51 / + 26 col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2652
SELECT + 21 + + - COALESCE ( - - 49, CASE 86 WHEN + - CAST( NULL AS SIGNED ) THEN NULL WHEN - 10 THEN NULL ELSE - 69 + - + COUNT( * ) END + + - 60, + COUNT( * ) ) - + 60
----
-88

skipif mysql # not compatible
query I rowsort label-2652
SELECT + 21 + + - COALESCE ( - - 49, CASE 86 WHEN + - CAST ( NULL AS INTEGER ) THEN NULL WHEN - 10 THEN NULL ELSE - 69 + - + COUNT ( * ) END + + - 60, + COUNT ( * ) ) - + 60
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2653
SELECT ALL 27 - - - COUNT( * ) + 31 + + 28 AS col1
----
85

skipif mysql # not compatible
query I rowsort label-2653
SELECT ALL 27 - - - COUNT ( * ) + 31 + + 28 AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT - COALESCE ( - 2, 63 - + 38, + 69 * - COUNT( * ) * - 68 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2654
SELECT - COALESCE ( - 2, 63 - + 38, + 69 * - COUNT ( * ) * - 68 ) AS col1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2655
SELECT + 31 * CAST( 21 AS SIGNED ) AS col0
----
651

skipif mysql # not compatible
query I rowsort label-2655
SELECT + 31 * CAST ( 21 AS INTEGER ) AS col0
----
651

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2656
SELECT - - 89 DIV + COUNT( * ) + - 91 col2
----
-2

skipif mysql # not compatible
query I rowsort label-2656
SELECT - - 89 / + COUNT ( * ) + - 91 col2
----
-2

onlyif mysql # DIV for integer division: 
query II rowsort label-2657
SELECT DISTINCT 79 * - - 79 AS col0, 97 DIV 91 DIV 19 - ( + 11 )
----
6241
-11

skipif mysql # not compatible
query II rowsort label-2657
SELECT DISTINCT 79 * - - 79 AS col0, 97 / 91 / 19 - ( + 11 )
----
6241
-11

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

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

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

query II rowsort
SELECT + 90 * + 36, 85 + 79 AS col0
----
3240
164

onlyif mysql # aggregate syntax: 
query II rowsort label-2661
SELECT DISTINCT + + MAX( 97 ), COUNT( ALL - 1 ) AS col0
----
97
1

skipif mysql # not compatible
query II rowsort label-2661
SELECT DISTINCT + + MAX ( 97 ), COUNT ( ALL - 1 ) AS col0
----
97
1

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

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

query I rowsort
SELECT + - CASE - + 83 WHEN - 37 THEN + - AVG ( DISTINCT - 7 ) * - + 28 END / + 98 * - - 76
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2665
SELECT ALL - 95 DIV + 21 + + 84 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-2665
SELECT ALL - 95 / + 21 + + 84 AS col0
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2666
SELECT DISTINCT - + 64 DIV NULLIF ( - COUNT( * ), + 22 ) + - + 59 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-2666
SELECT DISTINCT - + 64 / NULLIF ( - COUNT ( * ), + 22 ) + - + 59 AS col0
----
5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2668
SELECT ALL - + 33 * - COUNT( * ) + + 77 AS col0
----
110

skipif mysql # not compatible
query I rowsort label-2668
SELECT ALL - + 33 * - COUNT ( * ) + + 77 AS col0
----
110

query II rowsort
SELECT + 74 AS col0, 96
----
74
96

query I rowsort
SELECT ALL - 72 * + 22
----
-1584

onlyif mysql # aggregate syntax: 
query I rowsort label-2671
SELECT - 35 + + - 59 + - - COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-2671
SELECT - 35 + + - 59 + - - COUNT ( * )
----
-93

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2674
SELECT + COALESCE ( - - 24, - 37, COUNT( * ) ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-2674
SELECT + COALESCE ( - - 24, - 37, COUNT ( * ) ) AS col0
----
24

query I rowsort
SELECT - 99 * 60
----
-5940

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2676
SELECT 64 * + NULLIF ( - 74, + 58 + - CAST( - 23 AS DECIMAL ) ) + - 32 + + 22
----
-4746

skipif mysql # not compatible
query I rowsort label-2676
SELECT 64 * + NULLIF ( - 74, + 58 + - CAST ( - 23 AS REAL ) ) + - 32 + + 22
----
-4746

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2677
SELECT COALESCE ( - CAST( NULL AS SIGNED ), - - 73, 18 * 98 + 43 + 59 + + 24 ) AS col0, - 45 DIV + COUNT( * ) - 97 + - 96
----
73
-238

skipif mysql # not compatible
query II rowsort label-2677
SELECT COALESCE ( - CAST ( NULL AS INTEGER ), - - 73, 18 * 98 + 43 + 59 + + 24 ) AS col0, - 45 / + COUNT ( * ) - 97 + - 96
----
73
-238

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT ALL 46 * - MIN( - 6 )
----
276

skipif mysql # not compatible
query I rowsort label-2678
SELECT ALL 46 * - MIN ( - 6 )
----
276

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

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

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

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

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

query I rowsort
SELECT ALL + 10 * 6 AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2683
SELECT SUM( - 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-2683
SELECT SUM ( - 11 )
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2684
SELECT - COALESCE ( + + 36, COUNT( * ), + + AVG ( ALL 49 ) + 33 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2684
SELECT - COALESCE ( + + 36, COUNT ( * ), + + AVG ( ALL 49 ) + 33 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2685
SELECT DISTINCT COUNT( * ) * - - 89 * ( + 31 )
----
2759

skipif mysql # not compatible
query I rowsort label-2685
SELECT DISTINCT COUNT ( * ) * - - 89 * ( + 31 )
----
2759

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2686
SELECT - 9 - - CAST( 51 AS SIGNED )
----
42

skipif mysql # not compatible
query I rowsort label-2686
SELECT - 9 - - CAST ( 51 AS INTEGER )
----
42

query I rowsort
SELECT - ( + 6 ) * - 57
----
342

query I rowsort
SELECT + - ( 82 ) * - 16 col2
----
1312

query II rowsort
SELECT DISTINCT 37, + 52 * - 25 * + 53 AS col1
----
37
-68900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2690
SELECT DISTINCT + 72 + - - 58 + - NULLIF ( CAST( NULL AS SIGNED ), + COUNT( - + 14 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2690
SELECT DISTINCT + 72 + - - 58 + - NULLIF ( CAST ( NULL AS INTEGER ), + COUNT ( - + 14 ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2691
SELECT + 27 * - + 66 * + COUNT( * ) * - + ( ( 76 ) ) DIV + - COUNT( * ) + - 33 + + COUNT( * ) - - NULLIF ( 25, - COUNT( * ) * 59 + 42 )
----
-135439

skipif mysql # not compatible
query I rowsort label-2691
SELECT + 27 * - + 66 * + COUNT ( * ) * - + ( ( 76 ) ) / + - COUNT ( * ) + - 33 + + COUNT ( * ) - - NULLIF ( 25, - COUNT ( * ) * 59 + 42 )
----
-135439

onlyif mysql # aggregate syntax: 
query I rowsort label-2692
SELECT + COUNT( * ) * + 87 + + MAX( DISTINCT + - 70 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-2692
SELECT + COUNT ( * ) * + 87 + + MAX ( DISTINCT + - 70 ) AS col0
----
17

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2694
SELECT 65 + - + ( + + MIN( ALL - 11 ) ) + - - 30 * 60 * + - 80 AS col0
----
-143924

skipif mysql # not compatible
query I rowsort label-2694
SELECT 65 + - + ( + + MIN ( ALL - 11 ) ) + - - 30 * 60 * + - 80 AS col0
----
-143924

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2695
SELECT CASE - COUNT( DISTINCT + 35 ) WHEN - - NULLIF ( COUNT( + - 67 ), - 89 ) + + - 21 THEN - 13 WHEN - - NULLIF ( + - 93, + 90 * + 46 + - 2 ) THEN NULL END / COUNT( - + 84 ) * CAST( NULL AS SIGNED ) * - 20 * + 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2695
SELECT CASE - COUNT ( DISTINCT + 35 ) WHEN - - NULLIF ( COUNT ( + - 67 ), - 89 ) + + - 21 THEN - 13 WHEN - - NULLIF ( + - 93, + 90 * + 46 + - 2 ) THEN NULL END / COUNT ( - + 84 ) * CAST ( NULL AS INTEGER ) * - 20 * + 64 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 51 + - 76 AS col2
----
-127

query I rowsort
SELECT DISTINCT - - ( + - 92 ) AS col0
----
-92

query I rowsort
SELECT ALL 64 + + 72
----
136

query I rowsort
SELECT DISTINCT 69 * - - 53 + ( - 24 ) col0
----
3633

query I rowsort
SELECT ALL - 96 + 76 + 98
----
78

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2702
SELECT CAST( + 14 AS SIGNED ) * 41
----
574

skipif mysql # not compatible
query I rowsort label-2702
SELECT CAST ( + 14 AS INTEGER ) * 41
----
574

query II rowsort
SELECT 69 AS col0, - 63 AS col1
----
69
-63

query I rowsort
SELECT 77 + - 68 AS col0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2705
SELECT CAST( + 83 AS SIGNED ) * + 66 col2
----
5478

skipif mysql # not compatible
query I rowsort label-2705
SELECT CAST ( + 83 AS INTEGER ) * + 66 col2
----
5478

query I rowsort
SELECT + 38 * + 24 - + - 70 AS col1
----
982

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

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

query II rowsort
SELECT + 41 AS col1, + 74
----
41
74

query I rowsort
SELECT 82 * - 85
----
-6970

query I rowsort
SELECT ALL 58 * + 29 * 92
----
154744

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT DISTINCT 16 - + + 2 + MIN( ALL 56 ) * + 37 col1
----
2086

skipif mysql # not compatible
query I rowsort label-2711
SELECT DISTINCT 16 - + + 2 + MIN ( ALL 56 ) * + 37 col1
----
2086

onlyif mysql # aggregate syntax: 
query I rowsort label-2712
SELECT 98 - - COUNT( * ) + - + ( 33 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-2712
SELECT 98 - - COUNT ( * ) + - + ( 33 ) AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2713
SELECT DISTINCT + 33 * - COUNT( ALL + + 95 )
----
-33

skipif mysql # not compatible
query I rowsort label-2713
SELECT DISTINCT + 33 * - COUNT ( ALL + + 95 )
----
-33

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

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

query I rowsort
SELECT 72 + + - 44 - + NULLIF ( - 81, - 50 ) AS col0
----
109

query I rowsort
SELECT 88 + - 80 AS col2
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-2717
SELECT 91 DIV - - ( - 63 )
----
-1

skipif mysql # not compatible
query I rowsort label-2717
SELECT 91 / - - ( - 63 )
----
-1

query I rowsort
SELECT 27 * + + 27
----
729

query I rowsort
SELECT 98 + - 65
----
33

query I rowsort
SELECT 33 - + 96 + 86 * - - 76
----
6473

onlyif mysql # DIV for integer division: 
query I rowsort label-2721
SELECT DISTINCT - ( + 14 ) DIV - 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2721
SELECT DISTINCT - ( + 14 ) / - 98 AS col1
----
0

query I rowsort
SELECT DISTINCT COALESCE ( - ( + 73 ), - - 28 + - - 79, + + 39 ) col0
----
-73

query II rowsort
SELECT ALL 77 AS col0, 90 AS col0
----
77
90

query I rowsort
SELECT ALL - + 96 + + 7 AS col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT DISTINCT - MAX( 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-2725
SELECT DISTINCT - MAX ( 47 )
----
-47

query I rowsort
SELECT ALL + 43 + + CASE - - 74 WHEN - 87 THEN 49 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ( + 49 ) + + - 1
----
48

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

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

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

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

query I rowsort
SELECT NULLIF ( - 54, + ( - 88 ) / 84 ) * - 58 - 12 * - 32 AS col1
----
3516

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2731
SELECT ALL + - COALESCE ( - 37, - 93 ) + - 12 + + COALESCE ( - CAST( NULL AS SIGNED ), 67 )
----
92

skipif mysql # not compatible
query I rowsort label-2731
SELECT ALL + - COALESCE ( - 37, - 93 ) + - 12 + + COALESCE ( - CAST ( NULL AS INTEGER ), 67 )
----
92

query I rowsort
SELECT 23 + - 54 AS col0
----
-31

query I rowsort
SELECT DISTINCT + + 78 + - 19 + + 11 AS col0
----
70

query I rowsort
SELECT ALL - 22 + + - 83
----
-105

query II rowsort
SELECT ALL + - 28 + - 70, 86 AS col2
----
-98
86

query II rowsort
SELECT ALL ( - 62 ), ( ( ( + 87 ) ) ) AS col1
----
-62
87

query I rowsort
SELECT ALL - 66 + + 16 AS col1
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-2738
SELECT 79 * 38 AS col1, + SUM( DISTINCT 51 )
----
3002
51

skipif mysql # not compatible
query II rowsort label-2738
SELECT 79 * 38 AS col1, + SUM ( DISTINCT 51 )
----
3002
51

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

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

query I rowsort
SELECT 10 + - 28
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-2741
SELECT + COUNT( - + 8 ) AS col2, - 35
----
1
-35

skipif mysql # not compatible
query II rowsort label-2741
SELECT + COUNT ( - + 8 ) AS col2, - 35
----
1
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-2742
SELECT ALL ( 49 ) * 29 * + + 30 - + - 76 * - 88 + - ( - MIN( - 70 ) ) AS col0
----
35872

skipif mysql # not compatible
query I rowsort label-2742
SELECT ALL ( 49 ) * 29 * + + 30 - + - 76 * - 88 + - ( - MIN ( - 70 ) ) AS col0
----
35872

query I rowsort
SELECT 57 * - - 25 * - 7 * + 1 * - ( 95 ) AS col0
----
947625

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT 63 + + + 14 - + - COUNT( * ) + + + 48 AS col0
----
126

skipif mysql # not compatible
query I rowsort label-2744
SELECT 63 + + + 14 - + - COUNT ( * ) + + + 48 AS col0
----
126

query I rowsort
SELECT ( ( + 7 ) ) + 88 AS col0
----
95

query I rowsort
SELECT ALL 17 * + 57 col1
----
969

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2747
SELECT + 21 * + + SUM( + 9 ) + - 83 + + 38 + + + 94 / - ( + - CASE 11 WHEN 37 / - CAST( NULL AS SIGNED ) THEN + 34 + + 13 WHEN - COUNT( + 81 ) * + - 9 THEN + + 39 + - 75 END ) * 84 * - 76 * - SUM( + ( - - CAST( NULL AS SIGNED ) ) ) / + CASE + - 92 WHEN + - COUNT( * ) THEN NULL ELSE - 24 / + 88 - 41 END * + COUNT( * ) + - ( - CAST( + + NULLIF ( - COUNT( * ), - - ( NULLIF ( - 77, - 20 ) ) * 76 * - CAST( NULL AS SIGNED ) / + CAST( - + 30 AS SIGNED ) ) AS SIGNED ) ) + - 65 - + 82 * - 8 + + 42 - + ( COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2747
SELECT + 21 * + + SUM ( + 9 ) + - 83 + + 38 + + + 94 / - ( + - CASE 11 WHEN 37 / - CAST ( NULL AS INTEGER ) THEN + 34 + + 13 WHEN - COUNT ( + 81 ) * + - 9 THEN + + 39 + - 75 END ) * 84 * - 76 * - SUM ( + ( - - CAST ( NULL AS INTEGER ) ) ) / + CASE + - 92 WHEN + - COUNT ( * ) THEN NULL ELSE - 24 / + 88 - 41 END * + COUNT ( * ) + - ( - CAST ( + + NULLIF ( - COUNT ( * ), - - ( NULLIF ( - 77, - 20 ) ) * 76 * - CAST ( NULL AS INTEGER ) / + CAST ( - + 30 AS INTEGER ) ) AS INTEGER ) ) + - 65 - + 82 * - 8 + + 42 - + ( COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2748
SELECT + SUM( - 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-2748
SELECT + SUM ( - 89 )
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2749
SELECT NULLIF ( - 7, - CAST( 78 AS SIGNED ) * - + 78 - - + 89 * + 6 ) + + COALESCE ( - + 59, COUNT( * ) )
----
-66

skipif mysql # not compatible
query I rowsort label-2749
SELECT NULLIF ( - 7, - CAST ( 78 AS INTEGER ) * - + 78 - - + 89 * + 6 ) + + COALESCE ( - + 59, COUNT ( * ) )
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2750
SELECT 17 + - 47 + - + 34 DIV COUNT( * ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-2750
SELECT 17 + - 47 + - + 34 / COUNT ( * ) AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2751
SELECT MIN( DISTINCT - 54 ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-2751
SELECT MIN ( DISTINCT - 54 ) AS col0
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2752
SELECT - MIN( 51 ) * + - 13 * COUNT( * ) + 88 + 68 * CAST( + 99 AS SIGNED )
----
7483

skipif mysql # not compatible
query I rowsort label-2752
SELECT - MIN ( 51 ) * + - 13 * COUNT ( * ) + 88 + 68 * CAST ( + 99 AS INTEGER )
----
7483

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT ALL - COUNT( * ) * + COALESCE ( 11, - 68 + - ( CASE 45 WHEN - 67 THEN 62 WHEN + 97 THEN NULL END ) + 38 )
----
-11

skipif mysql # not compatible
query I rowsort label-2753
SELECT ALL - COUNT ( * ) * + COALESCE ( 11, - 68 + - ( CASE 45 WHEN - 67 THEN 62 WHEN + 97 THEN NULL END ) + 38 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2754
SELECT + 62 * MIN( - + 21 ) AS col2
----
-1302

skipif mysql # not compatible
query I rowsort label-2754
SELECT + 62 * MIN ( - + 21 ) AS col2
----
-1302

onlyif mysql # aggregate syntax: 
query II rowsort label-2755
SELECT ALL + + COUNT( * ) + + - 99 AS col1, - 77
----
-98
-77

skipif mysql # not compatible
query II rowsort label-2755
SELECT ALL + + COUNT ( * ) + + - 99 AS col1, - 77
----
-98
-77

query II rowsort
SELECT ALL - 77 + 20 * - CASE - 94 WHEN - NULLIF ( 79, - 93 ) + 72 THEN - ( + + 26 ) * + 9 ELSE - CASE + - 9 WHEN + 36 THEN - 85 WHEN - 70 THEN NULL ELSE NULL END END + 6 AS col0, - 27
----
NULL
-27

query II rowsort
SELECT - 56 * + 11, ( 39 ) * + - 22 AS col2
----
-616
-858

query II rowsort
SELECT ALL + - 81 * + + 76, + 74 AS col0
----
-6156
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2759
SELECT - 83 / + COALESCE ( 46, + + 5 * + + CAST( + COUNT( * ) AS SIGNED ) + + + COUNT( * ) + + 53 + 15 ) + + COUNT( * ) + + - CASE + 25 WHEN - 65 THEN 94 WHEN - 82 THEN - 99 ELSE NULL END - 16 * + 57 - - 87 * + - 71 - - + 12 / - 94 + - - 44 * - - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-2759
SELECT - 83 / + COALESCE ( 46, + + 5 * + + CAST ( + COUNT ( * ) AS INTEGER ) + + + COUNT ( * ) + + 53 + 15 ) + + COUNT ( * ) + + - CASE + 25 WHEN - 65 THEN 94 WHEN - 82 THEN - 99 ELSE NULL END - 16 * + 57 - - 87 * + - 71 - - + 12 / - 94 + - - 44 * - - 29
----
NULL

query I rowsort
SELECT - + 6 - 10
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-2761
SELECT DISTINCT - - ( - 24 ) DIV 79 * - - 13 + - - 98 AS col2
----
98

skipif mysql # not compatible
query I rowsort label-2761
SELECT DISTINCT - - ( - 24 ) / 79 * - - 13 + - - 98 AS col2
----
98

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2763
SELECT ALL - ( - + 99 ) DIV 54
----
1

skipif mysql # not compatible
query I rowsort label-2763
SELECT ALL - ( - + 99 ) / 54
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-2764
SELECT - + 56 DIV - - ( 57 ), - 16 AS col2
----
0
-16

skipif mysql # not compatible
query II rowsort label-2764
SELECT - + 56 / - - ( 57 ), - 16 AS col2
----
0
-16

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2766
SELECT ALL - 70 - - 40 + 44 + 23 * + 76 + 94 * + - 63 + ( COUNT( * ) ) + 23 AS col1, + CASE - 40 WHEN + 57 / ( - 91 ) + - 15 - - - COUNT( * ) THEN 80 ELSE NULL END + + 98 * - NULLIF ( COUNT( + + 4 ), - 70 * - + COALESCE ( + 36, MAX( ALL - COALESCE ( 67, + 59 ) ) ) - - CAST( + 28 AS SIGNED ) + + - 57 ) col2
----
-4136
NULL

skipif mysql # not compatible
query II rowsort label-2766
SELECT ALL - 70 - - 40 + 44 + 23 * + 76 + 94 * + - 63 + ( COUNT ( * ) ) + 23 AS col1, + CASE - 40 WHEN + 57 / ( - 91 ) + - 15 - - - COUNT ( * ) THEN 80 ELSE NULL END + + 98 * - NULLIF ( COUNT ( + + 4 ), - 70 * - + COALESCE ( + 36, MAX ( ALL - COALESCE ( 67, + 59 ) ) ) - - CAST ( + 28 AS INTEGER ) + + - 57 ) col2
----
-4136
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2767
SELECT ALL CAST( + 93 AS SIGNED )
----
93

skipif mysql # not compatible
query I rowsort label-2767
SELECT ALL CAST ( + 93 AS INTEGER )
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-2768
SELECT - COUNT( ALL + 93 ) - + - NULLIF ( + 22, - 75 ) AS col2, 84 AS col0
----
21
84

skipif mysql # not compatible
query II rowsort label-2768
SELECT - COUNT ( ALL + 93 ) - + - NULLIF ( + 22, - 75 ) AS col2, 84 AS col0
----
21
84

onlyif mysql # DIV for integer division: 
query I rowsort label-2769
SELECT DISTINCT - 26 * 8 DIV + 1
----
-208

skipif mysql # not compatible
query I rowsort label-2769
SELECT DISTINCT - 26 * 8 / + 1
----
-208

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2770
SELECT - 30 + + + CAST( + 54 AS SIGNED ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-2770
SELECT - 30 + + + CAST ( + 54 AS INTEGER ) AS col0
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2771
SELECT - AVG ( ALL + - 56 ) * - - 3 * - ( - 27 ) * MAX( + CAST( NULL AS SIGNED ) ) - + - 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2771
SELECT - AVG ( ALL + - 56 ) * - - 3 * - ( - 27 ) * MAX ( + CAST ( NULL AS INTEGER ) ) - + - 99 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2772
SELECT ALL - 10 - + + COALESCE ( 45, 87, 67 ) DIV - 74 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-2772
SELECT ALL - 10 - + + COALESCE ( 45, 87, 67 ) / - 74 AS col0
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2773
SELECT - NULLIF ( + 44, + 87 + - ( + CASE - 59 WHEN + + COUNT( * ) THEN NULL WHEN - ( + - CAST( NULL AS SIGNED ) ) THEN - 63 * + - 70 ELSE + 85 / + 93 * + 24 + + + 70 END ) ) * + ( - 62 ) col0, 26 + + 74 + - - 45 AS col2
----
2728
145

skipif mysql # not compatible
query II rowsort label-2773
SELECT - NULLIF ( + 44, + 87 + - ( + CASE - 59 WHEN + + COUNT ( * ) THEN NULL WHEN - ( + - CAST ( NULL AS INTEGER ) ) THEN - 63 * + - 70 ELSE + 85 / + 93 * + 24 + + + 70 END ) ) * + ( - 62 ) col0, 26 + + 74 + - - 45 AS col2
----
2728
145

onlyif mysql # aggregate syntax: 
query I rowsort label-2774
SELECT ALL ( MAX( ALL - 57 ) )
----
-57

skipif mysql # not compatible
query I rowsort label-2774
SELECT ALL ( MAX ( ALL - 57 ) )
----
-57

query I rowsort
SELECT ALL + 37 col2
----
37

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

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

query I rowsort
SELECT DISTINCT - 5 * + 0 col1
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-2779
SELECT + COUNT ( * ) / - 70
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2780
SELECT + CASE 11 WHEN + COUNT( * ) THEN + + CAST( + 75 AS SIGNED ) WHEN + COALESCE ( + 6, + 77 ) * + COALESCE ( - + ( NULLIF ( + 84, - COUNT( * ) + 39 ) ), - MIN( 91 ) * 39 * + 64 * + 24 + - 54 ) + - + ( SUM( ( + + 83 ) ) ) + 70 + - - 29 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2780
SELECT + CASE 11 WHEN + COUNT ( * ) THEN + + CAST ( + 75 AS INTEGER ) WHEN + COALESCE ( + 6, + 77 ) * + COALESCE ( - + ( NULLIF ( + 84, - COUNT ( * ) + 39 ) ), - MIN ( 91 ) * 39 * + 64 * + 24 + - 54 ) + - + ( SUM ( ( + + 83 ) ) ) + 70 + - - 29 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT + 81 + + 92
----
173

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2782
SELECT ALL 87 DIV - 93 * + 74 DIV - COUNT( * ) * - 6
----
0

skipif mysql # not compatible
query I rowsort label-2782
SELECT ALL 87 / - 93 * + 74 / - COUNT ( * ) * - 6
----
0

query I rowsort
SELECT + 99 * + 80
----
7920

onlyif mysql # aggregate syntax: 
query I rowsort label-2784
SELECT DISTINCT COUNT( * ) * 57 AS col1
----
57

skipif mysql # not compatible
query I rowsort label-2784
SELECT DISTINCT COUNT ( * ) * 57 AS col1
----
57

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2785
SELECT CAST( NULL AS DECIMAL ) * + 7 + - + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-2785
SELECT CAST ( NULL AS REAL ) * + 7 + - + 16
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2786
SELECT + 63 DIV + 23
----
2

skipif mysql # not compatible
query I rowsort label-2786
SELECT + 63 / + 23
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2787
SELECT ALL COUNT( * ) * - + 43 + + 28 - + + COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-2787
SELECT ALL COUNT ( * ) * - + 43 + + 28 - + + COUNT ( * )
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-2788
SELECT ALL + 72 * - 59 * - 47 * 40 + - ( + 1 ) DIV - + 87
----
7986240

skipif mysql # not compatible
query I rowsort label-2788
SELECT ALL + 72 * - 59 * - 47 * 40 + - ( + 1 ) / - + 87
----
7986240

onlyif mysql # aggregate syntax: 
query II rowsort label-2789
SELECT DISTINCT + 49 AS col2, ( - - COUNT( - - 42 ) ) * + 59
----
49
59

skipif mysql # not compatible
query II rowsort label-2789
SELECT DISTINCT + 49 AS col2, ( - - COUNT ( - - 42 ) ) * + 59
----
49
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT ALL + 22 * + MAX( + 52 ) + + 31 + + 72 * 69 + - - 78 + + 36 AS col1
----
6257

skipif mysql # not compatible
query I rowsort label-2790
SELECT ALL + 22 * + MAX ( + 52 ) + + 31 + + 72 * 69 + - - 78 + + 36 AS col1
----
6257

query I rowsort
SELECT + 56 - 7 AS col1
----
49

query I rowsort
SELECT DISTINCT 62 * + AVG ( DISTINCT + CASE + 12 WHEN + 27 THEN - 48 END ) * + 93 + + 15 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2793
SELECT ALL - 61 * + 92 + ( MAX( - - 87 ) ) col0
----
-5525

skipif mysql # not compatible
query I rowsort label-2793
SELECT ALL - 61 * + 92 + ( MAX ( - - 87 ) ) col0
----
-5525

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT DISTINCT + COUNT( * ) * 9 * - - 66 + 73 col2
----
667

skipif mysql # not compatible
query I rowsort label-2794
SELECT DISTINCT + COUNT ( * ) * 9 * - - 66 + 73 col2
----
667

query I rowsort
SELECT + 84 + + 7 AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2796
SELECT COUNT( * ) * + 76 + + 3 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-2796
SELECT COUNT ( * ) * + 76 + + 3 AS col2
----
79

query I rowsort
SELECT ALL - 57 * - 81 + + ( - 39 ) - - 10 + - 16 AS col2
----
4572

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

query II rowsort
SELECT - + 17, ( - 77 ) * + 91 + - ( + 56 ) AS col2
----
-17
-7063

onlyif mysql # DIV for integer division: 
query I rowsort label-2800
SELECT ALL - 66 DIV + 66
----
-1

skipif mysql # not compatible
query I rowsort label-2800
SELECT ALL - 66 / + 66
----
-1

query I rowsort
SELECT + + 60 + 27 AS col1
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2802
SELECT ALL + + 22 * 8 + - 14 col2, + 28 * - 41 DIV + COUNT( * ) AS col0
----
162
-1148

skipif mysql # not compatible
query II rowsort label-2802
SELECT ALL + + 22 * 8 + - 14 col2, + 28 * - 41 / + COUNT ( * ) AS col0
----
162
-1148

query I rowsort
SELECT ALL 3 - - 95
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2804
SELECT ALL + ( - + 22 ) - + + MIN( DISTINCT 70 ) * 45
----
-3172

skipif mysql # not compatible
query I rowsort label-2804
SELECT ALL + ( - + 22 ) - + + MIN ( DISTINCT 70 ) * 45
----
-3172

query I rowsort
SELECT ALL - - 40 - 78
----
-38

query II rowsort
SELECT + ( + 39 ) * + + 45 AS col2, 49
----
1755
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2807
SELECT DISTINCT - 72 - + + 41 DIV - + 36 AS col2, + COUNT( + 57 ) * + 86 * - 9 * CASE 20 WHEN + 12 THEN + 59 + - 93 END + - 3
----
-71
NULL

skipif mysql # not compatible
query II rowsort label-2807
SELECT DISTINCT - 72 - + + 41 / - + 36 AS col2, + COUNT ( + 57 ) * + 86 * - 9 * CASE 20 WHEN + 12 THEN + 59 + - 93 END + - 3
----
-71
NULL

query I rowsort
SELECT - - 70 + + 59 * + - 73 * + ( - 94 ) * + - 1
----
-404788

onlyif mysql # aggregate syntax: 
query II rowsort label-2809
SELECT + + MIN( DISTINCT 42 ) * 71 * - + ( - 24 ) + + CASE ( + 82 ) WHEN - 50 / + MAX( ALL + 52 ) THEN - 19 + - - 13 END, NULLIF ( - 10, - 97 / CASE WHEN ( NOT - - 41 IS NOT NULL ) THEN COUNT( * ) WHEN NOT + 8 * 82 * 82 IS NULL THEN NULL END ) AS col0
----
NULL
-10

skipif mysql # not compatible
query II rowsort label-2809
SELECT + + MIN ( DISTINCT 42 ) * 71 * - + ( - 24 ) + + CASE ( + 82 ) WHEN - 50 / + MAX ( ALL + 52 ) THEN - 19 + - - 13 END, NULLIF ( - 10, - 97 / CASE WHEN ( NOT - - 41 IS NOT NULL ) THEN COUNT ( * ) WHEN NOT + 8 * 82 * 82 IS NULL THEN NULL END ) AS col0
----
NULL
-10

query II rowsort
SELECT ALL - 83 AS col1, 27
----
-83
27

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2811
SELECT ALL + CAST( + 30 AS SIGNED ) DIV + 67
----
0

skipif mysql # not compatible
query I rowsort label-2811
SELECT ALL + CAST ( + 30 AS INTEGER ) / + 67
----
0

query II rowsort
SELECT - - 42 col1, 7
----
42
7

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2813
SELECT - CASE + + 45 WHEN - COALESCE ( - + ( + + 34 ), + - CAST( - 99 AS SIGNED ) + + + ( - ( 67 ) ) + + + CAST( NULL AS DECIMAL ) + - + ( + 17 ) * + 41 / + 11 + - + 40 / + ( + 81 ) ) THEN + 29 ELSE + - 1 END * 24
----
24

skipif mysql # not compatible
query I rowsort label-2813
SELECT - CASE + + 45 WHEN - COALESCE ( - + ( + + 34 ), + - CAST ( - 99 AS INTEGER ) + + + ( - ( 67 ) ) + + + CAST ( NULL AS REAL ) + - + ( + 17 ) * + 41 / + 11 + - + 40 / + ( + 81 ) ) THEN + 29 ELSE + - 1 END * 24
----
24

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

skipif mysql # not compatible
query I rowsort label-2814
SELECT DISTINCT + COUNT ( * ) / + - 86
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2815
SELECT DISTINCT CASE + COUNT( * ) WHEN + 51 THEN - NULLIF ( - - 33, + 86 ) / - 61 WHEN + 53 THEN - 83 * + + 47 + 12 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2815
SELECT DISTINCT CASE + COUNT ( * ) WHEN + 51 THEN - NULLIF ( - - 33, + 86 ) / - 61 WHEN + 53 THEN - 83 * + + 47 + 12 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT ALL NULLIF ( COUNT( * ), 96 )
----
1

skipif mysql # not compatible
query I rowsort label-2816
SELECT ALL NULLIF ( COUNT ( * ), 96 )
----
1

query II rowsort
SELECT ALL ( - - 95 ), ( + + 31 ) * 93 + + 11 col2
----
95
2894

query I rowsort
SELECT - 23 + - 44
----
-67

query II rowsort
SELECT DISTINCT - 74 * - 36, 49 - - 57 AS col1
----
2664
106

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2821
SELECT DISTINCT - 65 * NULLIF ( - 59, + COUNT( * ) ) col2
----
3835

skipif mysql # not compatible
query I rowsort label-2821
SELECT DISTINCT - 65 * NULLIF ( - 59, + COUNT ( * ) ) col2
----
3835

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2822
SELECT + NULLIF ( + 62, + COUNT( * ) * + + AVG ( DISTINCT + NULLIF ( - 24, + 24 ) ) * + 4 - 44 - + CASE + + 43 WHEN - + 43 * 5 * + - MAX( + 4 ) + + ( - 17 ) + - 94 THEN - COUNT( * ) - - 15 + + - 39 * + 89 * - 6 + + 90 WHEN + - CAST( - - 5 AS SIGNED ) THEN NULL END - + 61 * + 37 )
----
62

skipif mysql # not compatible
query I rowsort label-2822
SELECT + NULLIF ( + 62, + COUNT ( * ) * + + AVG ( DISTINCT + NULLIF ( - 24, + 24 ) ) * + 4 - 44 - + CASE + + 43 WHEN - + 43 * 5 * + - MAX ( + 4 ) + + ( - 17 ) + - 94 THEN - COUNT ( * ) - - 15 + + - 39 * + 89 * - 6 + + 90 WHEN + - CAST ( - - 5 AS INTEGER ) THEN NULL END - + 61 * + 37 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2823
SELECT ALL - NULLIF ( COALESCE ( + 37, + + COUNT( * ) ), + - ( - 47 ) * - - 13 ) + - - 69
----
32

skipif mysql # not compatible
query I rowsort label-2823
SELECT ALL - NULLIF ( COALESCE ( + 37, + + COUNT ( * ) ), + - ( - 47 ) * - - 13 ) + - - 69
----
32

query I rowsort
SELECT 98 + + 37 AS col2
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-2825
SELECT DISTINCT + 29 + SUM( 66 ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-2825
SELECT DISTINCT + 29 + SUM ( 66 ) AS col2
----
95

query II rowsort
SELECT ALL 10 + - 7, 49 * ( - - ( - 72 ) ) AS col0
----
3
-3528

onlyif mysql # DIV for integer division: 
query I rowsort label-2827
SELECT DISTINCT ( + + 27 ) DIV - 3
----
-9

skipif mysql # not compatible
query I rowsort label-2827
SELECT DISTINCT ( + + 27 ) / - 3
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2828
SELECT DISTINCT + NULLIF ( 22, + CASE - MAX( ALL - - 90 ) WHEN + - ( + + COALESCE ( + SUM( ALL + + CAST( + 99 AS SIGNED ) ), - + 43 - - ( - ( + MIN( 98 ) ) ) ) ) * - - 0 * - 49 THEN - COALESCE ( + + 41, + - CASE - 1 WHEN 39 + 45 THEN 71 + CAST( NULL AS SIGNED ) END + + 51 + + 34 + + - ( - + COUNT( * ) ), - CASE WHEN NOT 54 IN ( CASE - - ( - COUNT( * ) ) WHEN + - 4 + + - 22 THEN NULL ELSE + 8 - - 56 END, 82 ) THEN + - 18 + - + SUM( + 57 ) ELSE - - MIN( ALL + 33 ) END * + 3 + - 9 ) ELSE 22 + + + 57 END ) + CASE 49 + 14 WHEN 45 * - 57 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN + COUNT( * ) DIV 62 ELSE + 37 * + 24 END
----
910

skipif mysql # not compatible
query I rowsort label-2828
SELECT DISTINCT + NULLIF ( 22, + CASE - MAX ( ALL - - 90 ) WHEN + - ( + + COALESCE ( + SUM ( ALL + + CAST ( + 99 AS INTEGER ) ), - + 43 - - ( - ( + MIN ( 98 ) ) ) ) ) * - - 0 * - 49 THEN - COALESCE ( + + 41, + - CASE - 1 WHEN 39 + 45 THEN 71 + CAST ( NULL AS INTEGER ) END + + 51 + + 34 + + - ( - + COUNT ( * ) ), - CASE WHEN NOT 54 IN ( CASE - - ( - COUNT ( * ) ) WHEN + - 4 + + - 22 THEN NULL ELSE + 8 - - 56 END, 82 ) THEN + - 18 + - + SUM ( + 57 ) ELSE - - MIN ( ALL + 33 ) END * + 3 + - 9 ) ELSE 22 + + + 57 END ) + CASE 49 + 14 WHEN 45 * - 57 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN + COUNT ( * ) / 62 ELSE + 37 * + 24 END
----
910

query I rowsort
SELECT DISTINCT - 75 + 88 * - 13 AS col0
----
-1219

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

skipif mysql # not compatible
query I rowsort label-2830
SELECT COUNT ( * ) + + + 62 AS col2
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-2831
SELECT DISTINCT 17 DIV + 28 col0
----
0

skipif mysql # not compatible
query I rowsort label-2831
SELECT DISTINCT 17 / + 28 col0
----
0

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

query I rowsort
SELECT + ( - - 26 ) * + + 93 AS col2
----
2418

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT ALL 35 * - + 10 * + COUNT( * ) + - - ( 30 ) AS col1
----
-320

skipif mysql # not compatible
query I rowsort label-2834
SELECT ALL 35 * - + 10 * + COUNT ( * ) + - - ( 30 ) AS col1
----
-320

onlyif mysql # aggregate syntax: 
query II rowsort label-2835
SELECT ALL - + MAX( - COALESCE ( + - 77, - 56 ) ) AS col0, 98 - - - 57
----
-77
41

skipif mysql # not compatible
query II rowsort label-2835
SELECT ALL - + MAX ( - COALESCE ( + - 77, - 56 ) ) AS col0, 98 - - - 57
----
-77
41

query I rowsort
SELECT DISTINCT - ( 53 ) col0
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2837
SELECT ALL CASE + 24 WHEN - - 77 THEN + AVG ( 52 ) WHEN + 0 + 86 + 62 THEN NULL ELSE - ( COUNT( * ) ) DIV + - 68 END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2837
SELECT ALL CASE + 24 WHEN - - 77 THEN + AVG ( 52 ) WHEN + 0 + 86 + 62 THEN NULL ELSE - ( COUNT ( * ) ) / + - 68 END AS col2
----
0

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

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

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

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

query I rowsort
SELECT - 21 - 34
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2841
SELECT - NULLIF ( - - 59, + + 17 * COUNT( * ) + 24 ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-2841
SELECT - NULLIF ( - - 59, + + 17 * COUNT ( * ) + 24 ) AS col1
----
-59

query I rowsort
SELECT - 34 - + 83
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT ALL 87 * + COUNT( * ) * - 46
----
-4002

skipif mysql # not compatible
query I rowsort label-2843
SELECT ALL 87 * + COUNT ( * ) * - 46
----
-4002

query I rowsort
SELECT ( + 32 ) * 72 * - 34 * - + 85 + - 93
----
6658467

query I rowsort
SELECT 2 - + 81 - + 35 - 91 col2
----
-205

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT ALL COUNT( * ) * + + 42 * + 98
----
4116

skipif mysql # not compatible
query I rowsort label-2846
SELECT ALL COUNT ( * ) * + + 42 * + 98
----
4116

query I rowsort
SELECT 8 * + 45
----
360

query I rowsort
SELECT 11 - - 91 AS col0
----
102

query II rowsort
SELECT ALL 34, 16 + + 38 AS col0
----
34
54

query I rowsort
SELECT 17 * - - 37 AS col1
----
629

query I rowsort
SELECT ALL 5 + - 0 AS col1
----
5

query I rowsort
SELECT 7 * - 27 AS col0
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT - 21 * + 15 * COUNT( * ) + 41 + 4 * - 40 AS col1
----
-434

skipif mysql # not compatible
query I rowsort label-2853
SELECT - 21 * + 15 * COUNT ( * ) + 41 + 4 * - 40 AS col1
----
-434

onlyif mysql # DIV for integer division: 
query I rowsort label-2854
SELECT ALL - 88 DIV + 67 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2854
SELECT ALL - 88 / + 67 AS col1
----
-1

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

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

query I rowsort
SELECT ALL + 16 * + - 12 col1
----
-192

query I rowsort
SELECT 33 * 90 * - + 18
----
-53460

onlyif mysql # DIV for integer division: 
query II rowsort label-2858
SELECT DISTINCT + 43 + 46 + - - 31 AS col2, + NULLIF ( - - 49, + 46 ) + - ( - 0 ) DIV - 51 + - + 55 AS col1
----
120
-6

skipif mysql # not compatible
query II rowsort label-2858
SELECT DISTINCT + 43 + 46 + - - 31 AS col2, + NULLIF ( - - 49, + 46 ) + - ( - 0 ) / - 51 + - + 55 AS col1
----
120
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2859
SELECT 46 + NULLIF ( - + 79, + - CAST( + 79 AS SIGNED ) + + 28 + - 81 * + 30 ) * + NULLIF ( 80, 77 ) - COUNT( * ) AS col1
----
-6275

skipif mysql # not compatible
query I rowsort label-2859
SELECT 46 + NULLIF ( - + 79, + - CAST ( + 79 AS INTEGER ) + + 28 + - 81 * + 30 ) * + NULLIF ( 80, 77 ) - COUNT ( * ) AS col1
----
-6275

query I rowsort
SELECT ALL + ( - ( + 94 ) ) * + 59 AS col0
----
-5546

onlyif mysql # aggregate syntax: 
query I rowsort label-2861
SELECT ALL + 26 * MIN( DISTINCT - 12 ) AS col0
----
-312

skipif mysql # not compatible
query I rowsort label-2861
SELECT ALL + 26 * MIN ( DISTINCT - 12 ) AS col0
----
-312

onlyif mysql # DIV for integer division: 
query I rowsort label-2862
SELECT - 51 DIV 44 + - 70 * + 1 col2
----
-71

skipif mysql # not compatible
query I rowsort label-2862
SELECT - 51 / 44 + - 70 * + 1 col2
----
-71

query I rowsort
SELECT ALL + 81 - 49 AS col1
----
32

query I rowsort
SELECT DISTINCT + ( 36 ) * 5
----
180

query I rowsort
SELECT DISTINCT - ( 7 ) AS col2
----
-7

query I rowsort
SELECT - 88 * 83 + + 32 col0
----
-7272

onlyif mysql # aggregate syntax: 
query I rowsort label-2867
SELECT MAX( + 35 ) - 1
----
34

skipif mysql # not compatible
query I rowsort label-2867
SELECT MAX ( + 35 ) - 1
----
34

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2869
SELECT CAST( + 20 AS DECIMAL ) * + CAST( NULL AS SIGNED ) + 92 * - 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2869
SELECT CAST ( + 20 AS REAL ) * + CAST ( NULL AS INTEGER ) + 92 * - 54 AS col2
----
NULL

query I rowsort
SELECT 48 * 25 col1
----
1200

query I rowsort
SELECT 51 * - 2 AS col0
----
-102

query I rowsort
SELECT ( 90 ) * + 35
----
3150

query I rowsort
SELECT ALL - 54 * ( 3 )
----
-162

query I rowsort
SELECT 57 + 5
----
62

query I rowsort
SELECT 67 + 18
----
85

query I rowsort
SELECT DISTINCT - 46 * - 45 AS col2
----
2070

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT DISTINCT 65 + COUNT( * ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-2877
SELECT DISTINCT 65 + COUNT ( * ) AS col1
----
66

query I rowsort
SELECT DISTINCT NULLIF ( 39, 58 * 13 + 15 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2879
SELECT DISTINCT NULLIF ( - COUNT( DISTINCT + 53 ), - 42 * - 50 ) + 66 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-2879
SELECT DISTINCT NULLIF ( - COUNT ( DISTINCT + 53 ), - 42 * - 50 ) + 66 AS col0
----
65

query I rowsort
SELECT DISTINCT 53 + 54 AS col2
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT SUM( 46 ) * - 40 AS col0
----
-1840

skipif mysql # not compatible
query I rowsort label-2881
SELECT SUM ( 46 ) * - 40 AS col0
----
-1840

query I rowsort
SELECT ( + 46 ) + - 58
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2883
SELECT DISTINCT NULLIF ( - NULLIF ( + 71, CASE CAST( NULL AS DECIMAL ) WHEN NULLIF ( 29, 44 ) THEN + 0 / - 64 WHEN 96 / 65 THEN NULL ELSE NULL END * - 93 ), COUNT( * ) ) + - ( + COUNT( * ) - + CAST( NULL AS SIGNED ) ) / + 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2883
SELECT DISTINCT NULLIF ( - NULLIF ( + 71, CASE CAST ( NULL AS REAL ) WHEN NULLIF ( 29, 44 ) THEN + 0 / - 64 WHEN 96 / 65 THEN NULL ELSE NULL END * - 93 ), COUNT ( * ) ) + - ( + COUNT ( * ) - + CAST ( NULL AS INTEGER ) ) / + 45 AS col2
----
NULL

query I rowsort
SELECT ALL 64 + NULLIF ( - 24 - + 2, 38 * + NULLIF ( - 72, - 84 - 63 ) )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2885
SELECT - NULLIF ( SUM( - 48 ), COALESCE ( + 72, 48 ) ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-2885
SELECT - NULLIF ( SUM ( - 48 ), COALESCE ( + 72, 48 ) ) AS col1
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-2886
SELECT ALL ( + 93 ) + - 9 DIV 72
----
93

skipif mysql # not compatible
query I rowsort label-2886
SELECT ALL ( + 93 ) + - 9 / 72
----
93

query I rowsort
SELECT + 46 * - ( - 13 ) AS col2
----
598

query I rowsort
SELECT ALL ( + 60 ) * + 62 AS col2
----
3720

onlyif mysql # aggregate syntax: 
query I rowsort label-2889
SELECT + 64 + - CASE NULLIF ( - 59, - 1 * SUM( - 21 ) ) + - 49 WHEN 12 THEN ( MAX( 83 ) ) ELSE NULL END / - 78 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2889
SELECT + 64 + - CASE NULLIF ( - 59, - 1 * SUM ( - 21 ) ) + - 49 WHEN 12 THEN ( MAX ( 83 ) ) ELSE NULL END / - 78 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2890
SELECT DISTINCT MIN( ALL 9 ) + MIN( DISTINCT - 85 + - 55 * + 30 ) AS col1
----
-1726

skipif mysql # not compatible
query I rowsort label-2890
SELECT DISTINCT MIN ( ALL 9 ) + MIN ( DISTINCT - 85 + - 55 * + 30 ) AS col1
----
-1726

onlyif mysql # aggregate syntax: 
query I rowsort label-2891
SELECT DISTINCT SUM( 8 ) + 63 * 66 AS col1
----
4166

skipif mysql # not compatible
query I rowsort label-2891
SELECT DISTINCT SUM ( 8 ) + 63 * 66 AS col1
----
4166

query I rowsort
SELECT + 86 - + 39 AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT - 35 * 8 + COUNT( + 86 + 80 * - 16 )
----
-279

skipif mysql # not compatible
query I rowsort label-2893
SELECT - 35 * 8 + COUNT ( + 86 + 80 * - 16 )
----
-279

onlyif mysql # DIV for integer division: 
query I rowsort label-2894
SELECT - 68 DIV 89
----
0

skipif mysql # not compatible
query I rowsort label-2894
SELECT - 68 / 89
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT + 80 * - MAX( + 95 ) AS col0
----
-7600

skipif mysql # not compatible
query I rowsort label-2895
SELECT + 80 * - MAX ( + 95 ) AS col0
----
-7600

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT ALL + 80 * + MIN( + 6 ) - - 18 AS col1
----
498

skipif mysql # not compatible
query I rowsort label-2896
SELECT ALL + 80 * + MIN ( + 6 ) - - 18 AS col1
----
498

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2897
SELECT + 74 + - 1 * ( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2897
SELECT + 74 + - 1 * ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT CASE - COUNT( ALL 18 ) WHEN + 93 THEN 1 + - 91 WHEN + 85 + + 5 THEN NULL ELSE CASE SUM( 99 ) WHEN COUNT( * ) + 15 * 18 THEN 41 * - ( COUNT( * ) * 62 ) END END * MIN( DISTINCT 0 + - 36 ) - - NULLIF ( + 3, - SUM( DISTINCT + NULLIF ( - 33, + 70 ) ) + 35 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2898
SELECT CASE - COUNT ( ALL 18 ) WHEN + 93 THEN 1 + - 91 WHEN + 85 + + 5 THEN NULL ELSE CASE SUM ( 99 ) WHEN COUNT ( * ) + 15 * 18 THEN 41 * - ( COUNT ( * ) * 62 ) END END * MIN ( DISTINCT 0 + - 36 ) - - NULLIF ( + 3, - SUM ( DISTINCT + NULLIF ( - 33, + 70 ) ) + 35 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2899
SELECT ALL - + 34 DIV - 26 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2899
SELECT ALL - + 34 / - 26 AS col0
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2901
SELECT + NULLIF ( MAX( ALL - 52 ), 37 + 18 * 18 ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-2901
SELECT + NULLIF ( MAX ( ALL - 52 ), 37 + 18 * 18 ) AS col0
----
-52

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2903
SELECT DISTINCT + 34 DIV - 75
----
0

skipif mysql # not compatible
query I rowsort label-2903
SELECT DISTINCT + 34 / - 75
----
0

query I rowsort
SELECT - 23 + 25
----
2

query I rowsort
SELECT - - 48 * + 20 AS col1
----
960

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT ALL + - MIN( ALL + 37 ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-2906
SELECT ALL + - MIN ( ALL + 37 ) AS col2
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2907
SELECT + 67 * SUM( DISTINCT + 89 DIV + 84 - 93 * - 17 ) col2
----
105994

skipif mysql # not compatible
query I rowsort label-2907
SELECT + 67 * SUM ( DISTINCT + 89 / + 84 - 93 * - 17 ) col2
----
105994

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT + MIN( ALL + 36 ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-2909
SELECT + MIN ( ALL + 36 ) AS col2
----
36

query I rowsort
SELECT DISTINCT + 10 * 2
----
20

query I rowsort
SELECT DISTINCT + 93 * - 21 col0
----
-1953

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT - COUNT( ALL 84 ) * + 7
----
-7

skipif mysql # not compatible
query I rowsort label-2912
SELECT - COUNT ( ALL 84 ) * + 7
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2913
SELECT DISTINCT COUNT( * ) * - 94 + - 50 * 73
----
-3744

skipif mysql # not compatible
query I rowsort label-2913
SELECT DISTINCT COUNT ( * ) * - 94 + - 50 * 73
----
-3744

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2914
SELECT ALL CAST( 6 AS SIGNED ) * + 45 + 97 * + COALESCE ( 12, 26 + - 79 )
----
1434

skipif mysql # not compatible
query I rowsort label-2914
SELECT ALL CAST ( 6 AS INTEGER ) * + 45 + 97 * + COALESCE ( 12, 26 + - 79 )
----
1434

query I rowsort
SELECT ALL + 21 * 98 + + 65
----
2123

onlyif mysql # DIV for integer division: 
query I rowsort label-2916
SELECT DISTINCT - 15 DIV + + ( - 13 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-2916
SELECT DISTINCT - 15 / + + ( - 13 ) col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2917
SELECT ALL - 33 DIV + 43
----
0

skipif mysql # not compatible
query I rowsort label-2917
SELECT ALL - 33 / + 43
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT - 46 - MAX( ALL - 38 ) - + 80 * 24 col0
----
-1928

skipif mysql # not compatible
query I rowsort label-2918
SELECT - 46 - MAX ( ALL - 38 ) - + 80 * 24 col0
----
-1928

query I rowsort
SELECT ALL 58 * + + 76 * 45
----
198360

query I rowsort
SELECT ALL ( - + 55 ) * + 28
----
-1540

query I rowsort
SELECT ALL + 61 + - 89 AS col1
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2922
SELECT ALL - 97 + - 25 - - COALESCE ( + 23 - 31 * 42, + 47 * ( - CAST( 36 AS SIGNED ) ) ) * 19
----
-24423

skipif mysql # not compatible
query I rowsort label-2922
SELECT ALL - 97 + - 25 - - COALESCE ( + 23 - 31 * 42, + 47 * ( - CAST ( 36 AS INTEGER ) ) ) * 19
----
-24423

onlyif mysql # aggregate syntax: 
query I rowsort label-2923
SELECT ALL COUNT( * ) - - 39 + 65 * + COALESCE ( 32 + 71, 61 )
----
6735

skipif mysql # not compatible
query I rowsort label-2923
SELECT ALL COUNT ( * ) - - 39 + 65 * + COALESCE ( 32 + 71, 61 )
----
6735

onlyif mysql # aggregate syntax: 
query I rowsort label-2924
SELECT + 16 * + COUNT( * ) * + 95 AS col1
----
1520

skipif mysql # not compatible
query I rowsort label-2924
SELECT + 16 * + COUNT ( * ) * + 95 AS col1
----
1520

onlyif mysql # aggregate syntax: 
query I rowsort label-2925
SELECT - 87 + ( COUNT( * ) )
----
-86

skipif mysql # not compatible
query I rowsort label-2925
SELECT - 87 + ( COUNT ( * ) )
----
-86

query I rowsort
SELECT ALL + ( + 11 ) * + 15
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT - NULLIF ( - MIN( - 52 ), ( MIN( DISTINCT - 11 ) ) ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-2927
SELECT - NULLIF ( - MIN ( - 52 ), ( MIN ( DISTINCT - 11 ) ) ) AS col1
----
-52

query I rowsort
SELECT + 69 - + 83 - + 64
----
-78

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2930
SELECT DISTINCT CAST( - - 3 AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-2930
SELECT DISTINCT CAST ( - - 3 AS INTEGER )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2931
SELECT + 33 + - - 77 DIV + 98
----
33

skipif mysql # not compatible
query I rowsort label-2931
SELECT + 33 + - - 77 / + 98
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2932
SELECT CAST( - COALESCE ( SUM( DISTINCT + 8 ), 27 + 37 ) AS SIGNED )
----
-8

skipif mysql # not compatible
query I rowsort label-2932
SELECT CAST ( - COALESCE ( SUM ( DISTINCT + 8 ), 27 + 37 ) AS INTEGER )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2933
SELECT ALL + ( COALESCE ( COUNT( 48 ), ( 24 ) * + 1, - 79 * 87 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2933
SELECT ALL + ( COALESCE ( COUNT ( 48 ), ( 24 ) * + 1, - 79 * 87 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2934
SELECT + 84 * 1 * COUNT( * ) + 39
----
123

skipif mysql # not compatible
query I rowsort label-2934
SELECT + 84 * 1 * COUNT ( * ) + 39
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2935
SELECT ALL 24 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2935
SELECT ALL 24 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( 47, 77 ) * ( - 55 ) AS col1
----
2585

onlyif mysql # DIV for integer division: 
query I rowsort label-2937
SELECT - 94 DIV + 86 + + ( - 11 - 62 ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-2937
SELECT - 94 / + 86 + + ( - 11 - 62 ) AS col2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2938
SELECT + COUNT( + 76 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-2938
SELECT + COUNT ( + 76 ) col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2939
SELECT - 23 DIV 82 + + 41
----
41

skipif mysql # not compatible
query I rowsort label-2939
SELECT - 23 / 82 + + 41
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT ALL CASE - 80 WHEN 94 / 10 THEN + MIN( 68 ) * ( + 24 ) END * + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2940
SELECT ALL CASE - 80 WHEN 94 / 10 THEN + MIN ( 68 ) * ( + 24 ) END * + COUNT ( * ) col1
----
NULL

query I rowsort
SELECT + 51 * - - 40 AS col1
----
2040

query I rowsort
SELECT + - 61 * + + 54 AS col1
----
-3294

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2943
SELECT ALL - CAST( + 60 AS SIGNED ) * MAX( 89 )
----
-5340

skipif mysql # not compatible
query I rowsort label-2943
SELECT ALL - CAST ( + 60 AS INTEGER ) * MAX ( 89 )
----
-5340

onlyif mysql # DIV for integer division: 
query I rowsort label-2944
SELECT ALL 2 DIV 48 - 92 + + 90
----
-2

skipif mysql # not compatible
query I rowsort label-2944
SELECT ALL 2 / 48 - 92 + + 90
----
-2

query I rowsort
SELECT + + ( + 90 ) * 31 + - 24
----
2766

onlyif mysql # DIV for integer division: 
query I rowsort label-2946
SELECT DISTINCT - + 31 DIV 33 + - 17
----
-17

skipif mysql # not compatible
query I rowsort label-2946
SELECT DISTINCT - + 31 / 33 + - 17
----
-17

query I rowsort
SELECT + NULLIF ( - 42, 21 * - 15 ) + 22 * + 59
----
1256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2948
SELECT ALL 10 * + SUM( + 23 ) + - 10 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2948
SELECT ALL 10 * + SUM ( + 23 ) + - 10 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - - 56 * + 99 + - 33 AS col0
----
5511

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2951
SELECT DISTINCT + CAST( NULL AS DECIMAL ) / + ( - 33 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2951
SELECT DISTINCT + CAST ( NULL AS REAL ) / + ( - 33 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2952
SELECT ALL + 60 * - 88 + + COUNT( * ) col1
----
-5279

skipif mysql # not compatible
query I rowsort label-2952
SELECT ALL + 60 * - 88 + + COUNT ( * ) col1
----
-5279

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT + COUNT( DISTINCT + ( + 29 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2953
SELECT + COUNT ( DISTINCT + ( + 29 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT 21 + + - 19 * - 31 + COUNT( * )
----
611

skipif mysql # not compatible
query I rowsort label-2954
SELECT 21 + + - 19 * - 31 + COUNT ( * )
----
611

query I rowsort
SELECT 92 + - 43 * - 1
----
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2956
SELECT DISTINCT - NULLIF ( - CAST( - - 14 AS SIGNED ), + 52 * + 81 ) * + 51
----
714

skipif mysql # not compatible
query I rowsort label-2956
SELECT DISTINCT - NULLIF ( - CAST ( - - 14 AS INTEGER ), + 52 * + 81 ) * + 51
----
714

query I rowsort
SELECT 11 + - 78 col0
----
-67

query I rowsort
SELECT ALL 29 - - 66 AS col0
----
95

query I rowsort
SELECT ALL + 29 - + - 97
----
126

query I rowsort
SELECT 27 + 23 AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT 36 + + COUNT( * ) + - ( + 2 )
----
35

skipif mysql # not compatible
query I rowsort label-2961
SELECT 36 + + COUNT ( * ) + - ( + 2 )
----
35

query I rowsort
SELECT 7 * 1 col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT COUNT( * ) + - 99 * 91
----
-9008

skipif mysql # not compatible
query I rowsort label-2963
SELECT COUNT ( * ) + - 99 * 91
----
-9008

onlyif mysql # aggregate syntax: 
query I rowsort label-2964
SELECT ALL + ( - COUNT( * ) ) - 25 + 82 * - 11 AS col1
----
-928

skipif mysql # not compatible
query I rowsort label-2964
SELECT ALL + ( - COUNT ( * ) ) - 25 + 82 * - 11 AS col1
----
-928

onlyif mysql # aggregate syntax: 
query II rowsort label-2965
SELECT 11 AS col2, - COALESCE ( 32, - ( 15 ), 20 * - 5 - 30 ) * 51 + + COUNT( * )
----
11
-1631

skipif mysql # not compatible
query II rowsort label-2965
SELECT 11 AS col2, - COALESCE ( 32, - ( 15 ), 20 * - 5 - 30 ) * 51 + + COUNT ( * )
----
11
-1631

query II rowsort
SELECT - 98 col2, 14 AS col0
----
-98
14

query I rowsort
SELECT 55 + + 73 - 63
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT 26 / - CASE ( + 18 ) WHEN + 44 * 9 + 78 THEN COUNT( * ) * COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2968
SELECT 26 / - CASE ( + 18 ) WHEN + 44 * 9 + 78 THEN COUNT ( * ) * COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2969
SELECT ALL + ( 99 ) * - + 50 * + CAST( - 14 AS SIGNED )
----
69300

skipif mysql # not compatible
query I rowsort label-2969
SELECT ALL + ( 99 ) * - + 50 * + CAST ( - 14 AS INTEGER )
----
69300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2970
SELECT DISTINCT + CASE CAST( 24 AS SIGNED ) WHEN COUNT( * ) THEN 57 WHEN + ( + COALESCE ( - 71, 94 * + 29 + - COUNT( * ) ) ) * 77 THEN NULL WHEN + 33 THEN + 91 ELSE - CAST( NULL AS DECIMAL ) * + 71 + - SUM( DISTINCT ( - 75 ) ) * COUNT( * ) END / 21
----
NULL

skipif mysql # not compatible
query I rowsort label-2970
SELECT DISTINCT + CASE CAST ( 24 AS INTEGER ) WHEN COUNT ( * ) THEN 57 WHEN + ( + COALESCE ( - 71, 94 * + 29 + - COUNT ( * ) ) ) * 77 THEN NULL WHEN + 33 THEN + 91 ELSE - CAST ( NULL AS REAL ) * + 71 + - SUM ( DISTINCT ( - 75 ) ) * COUNT ( * ) END / 21
----
NULL

query I rowsort
SELECT ALL - 94 * + 15
----
-1410

query I rowsort
SELECT 42 + 75
----
117

query I rowsort
SELECT DISTINCT 62 * + 10
----
620

onlyif mysql # DIV for integer division: 
query I rowsort label-2974
SELECT 51 DIV + 48 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2974
SELECT 51 / + 48 AS col0
----
1

query II rowsort
SELECT - 87, NULLIF ( - 91, 45 * 86 ) + ( 35 ) AS col2
----
-87
-56

query II rowsort
SELECT DISTINCT - 88 AS col0, - 70
----
-88
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-2977
SELECT - + 75 AS col2, 87 + - COUNT( * )
----
-75
86

skipif mysql # not compatible
query II rowsort label-2977
SELECT - + 75 AS col2, 87 + - COUNT ( * )
----
-75
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2978
SELECT + + CASE + - 54 WHEN - + NULLIF ( CASE - CASE - 62 WHEN 66 THEN - 95 ELSE 41 + - 55 END WHEN + CASE 56 WHEN + CAST( 37 AS DECIMAL ) THEN 4 + - CAST( NULL AS DECIMAL ) / ( COALESCE ( - CASE - 0 WHEN + 68 THEN NULL WHEN 29 THEN NULL WHEN 83 THEN NULL ELSE + 76 + + 17 END, NULLIF ( 93, + 72 ) ) ) ELSE + 65 END THEN + 70 + 72 WHEN - 65 THEN NULL END, 52 + CASE - 9 WHEN 51 - + COUNT( * ) * + 50 THEN - 4 * 74 ELSE NULL END ) * 29 THEN 13 WHEN + 56 + + 1 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE + 54 END
----
54

skipif mysql # not compatible
query I rowsort label-2978
SELECT + + CASE + - 54 WHEN - + NULLIF ( CASE - CASE - 62 WHEN 66 THEN - 95 ELSE 41 + - 55 END WHEN + CASE 56 WHEN + CAST ( 37 AS REAL ) THEN 4 + - CAST ( NULL AS REAL ) / ( COALESCE ( - CASE - 0 WHEN + 68 THEN NULL WHEN 29 THEN NULL WHEN 83 THEN NULL ELSE + 76 + + 17 END, NULLIF ( 93, + 72 ) ) ) ELSE + 65 END THEN + 70 + 72 WHEN - 65 THEN NULL END, 52 + CASE - 9 WHEN 51 - + COUNT ( * ) * + 50 THEN - 4 * 74 ELSE NULL END ) * 29 THEN 13 WHEN + 56 + + 1 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE + 54 END
----
54

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2980
SELECT 4 / + - CAST( NULL AS SIGNED ) + - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-2980
SELECT 4 / + - CAST ( NULL AS INTEGER ) + - 98
----
NULL

query II rowsort
SELECT DISTINCT - - 97 AS col2, + 48
----
97
48

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

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

query II rowsort
SELECT + 94 AS col2, - 87 AS col0
----
94
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT ALL + 24 + + 79 + MAX( 11 ) + ( + 39 + 68 ) * - 39 * - 26 AS col2
----
108612

skipif mysql # not compatible
query I rowsort label-2984
SELECT ALL + 24 + + 79 + MAX ( 11 ) + ( + 39 + 68 ) * - 39 * - 26 AS col2
----
108612

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT ALL COUNT( * ) * + 22 * - 62 * - COUNT( * )
----
1364

skipif mysql # not compatible
query I rowsort label-2985
SELECT ALL COUNT ( * ) * + 22 * - 62 * - COUNT ( * )
----
1364

query I rowsort
SELECT - 85 * + - 52 - 77 AS col2
----
4343

query I rowsort
SELECT ALL + 44 + + + 52 * + + 35 * + 83
----
151104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2988
SELECT + 66 * + COUNT( * ) / - - 53 + - 36 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2988
SELECT + 66 * + COUNT ( * ) / - - 53 + - 36 + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + - 57 AS col1, 27 + 40 AS col0
----
-57
67

query I rowsort
SELECT ALL - 8 + - - 16
----
8

query II rowsort
SELECT + - 87 AS col2, 77 * 89 AS col1
----
-87
6853

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT - 87 * - COUNT( * ) * - NULLIF ( - 59, 72 + + ( - 39 ) ) + + ( 51 - - 60 ) * + 20
----
7353

skipif mysql # not compatible
query I rowsort label-2992
SELECT - 87 * - COUNT ( * ) * - NULLIF ( - 59, 72 + + ( - 39 ) ) + + ( 51 - - 60 ) * + 20
----
7353

query I rowsort
SELECT DISTINCT 94 * 6 AS col1
----
564

query I rowsort
SELECT ALL 53 - - 10 + 69 col1
----
132

onlyif mysql # DIV for integer division: 
query I rowsort label-2995
SELECT ALL COALESCE ( + 59, + 96 ) DIV - - 73
----
0

skipif mysql # not compatible
query I rowsort label-2995
SELECT ALL COALESCE ( + 59, + 96 ) / - - 73
----
0

query I rowsort
SELECT ( - + 19 ) * + 66 * + 9 + - 77
----
-11363

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT ALL CASE - - ( + 26 ) WHEN + 88 / - 49 + - 60 THEN 86 * + 15 WHEN - 41 THEN CASE 64 WHEN - ( - 17 ) THEN NULL WHEN + 30 THEN MIN( 70 ) END WHEN + 80 * 36 - + 43 THEN NULL END / - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2997
SELECT ALL CASE - - ( + 26 ) WHEN + 88 / - 49 + - 60 THEN 86 * + 15 WHEN - 41 THEN CASE 64 WHEN - ( - 17 ) THEN NULL WHEN + 30 THEN MIN ( 70 ) END WHEN + 80 * 36 - + 43 THEN NULL END / - COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2998
SELECT COALESCE ( + 36, - 83 ) + + ( - ( - COUNT( * ) ) ) + CAST( + 85 AS SIGNED ) AS col1
----
122

skipif mysql # not compatible
query I rowsort label-2998
SELECT COALESCE ( + 36, - 83 ) + + ( - ( - COUNT ( * ) ) ) + CAST ( + 85 AS INTEGER ) AS col1
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-2999
SELECT COUNT( * ) + + 1 * - - COALESCE ( - - COUNT( * ), CASE + ( + SUM( + 26 ) ) WHEN 0 THEN COUNT( * ) ELSE NULL END * - 74, ( - 41 ) ) + 61
----
63

skipif mysql # not compatible
query I rowsort label-2999
SELECT COUNT ( * ) + + 1 * - - COALESCE ( - - COUNT ( * ), CASE + ( + SUM ( + 26 ) ) WHEN 0 THEN COUNT ( * ) ELSE NULL END * - 74, ( - 41 ) ) + 61
----
63

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3001
SELECT 52 * - CAST( - - MIN( + + 59 ) AS SIGNED ) AS col2
----
-3068

skipif mysql # not compatible
query I rowsort label-3001
SELECT 52 * - CAST ( - - MIN ( + + 59 ) AS INTEGER ) AS col2
----
-3068

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

skipif mysql # not compatible
query I rowsort label-3002
SELECT CAST ( NULL AS REAL ) - MIN ( 85 )
----
NULL

query I rowsort
SELECT ALL - 71 * 33 * - + 34 AS col2
----
79662

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

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

query I rowsort
SELECT 45 + 55
----
100

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

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

query I rowsort
SELECT NULLIF ( - 95, 59 * + 42 + - 12 ) * + 72
----
-6840

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

skipif mysql # not compatible
query I rowsort label-3008
SELECT 71 - + + COUNT ( * ) + + 82 AS col2
----
152

query I rowsort
SELECT DISTINCT - 14 + 9
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3010
SELECT ALL - COALESCE ( - 92, + + 73, - + 40 * - MIN( - 64 * 41 - - 47 * 35 ) + NULLIF ( 54, + 54 ), + COUNT( * ) ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-3010
SELECT ALL - COALESCE ( - 92, + + 73, - + 40 * - MIN ( - 64 * 41 - - 47 * 35 ) + NULLIF ( 54, + 54 ), + COUNT ( * ) ) AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3011
SELECT DISTINCT CASE + 80 WHEN + 97 THEN - + 21 WHEN 31 + - ( 62 + - 95 * 63 ) THEN MIN( + 88 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3011
SELECT DISTINCT CASE + 80 WHEN + 97 THEN - + 21 WHEN 31 + - ( 62 + - 95 * 63 ) THEN MIN ( + 88 ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 23 + - 9 * 6
----
-31

query I rowsort
SELECT ALL - 64 + 53 + + 15 + + 47
----
51

query I rowsort
SELECT DISTINCT + - 73 + - - 89 * + 26 * - 19 AS col0
----
-44039

query I rowsort
SELECT ALL - 14 * + + 40
----
-560

query I rowsort
SELECT 92 * - + 44
----
-4048

onlyif mysql # DIV for integer division: 
query I rowsort label-3017
SELECT 23 DIV - 99 * + - 75 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3017
SELECT 23 / - 99 * + - 75 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT ALL + 80 * + 82 + ( - COUNT( * ) ) + 42 * MIN( ALL 91 * 26 ) + 14
----
105945

skipif mysql # not compatible
query I rowsort label-3018
SELECT ALL + 80 * + 82 + ( - COUNT ( * ) ) + 42 * MIN ( ALL 91 * 26 ) + 14
----
105945

onlyif mysql # aggregate syntax: 
query I rowsort label-3019
SELECT 25 + + SUM( 14 ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-3019
SELECT 25 + + SUM ( 14 ) AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3020
SELECT ALL COUNT( * ) * + 42 - - MAX( - + 83 ) + 9
----
-32

skipif mysql # not compatible
query I rowsort label-3020
SELECT ALL COUNT ( * ) * + 42 - - MAX ( - + 83 ) + 9
----
-32

query I rowsort
SELECT - 58 + 91 + + ( - 17 ) + - 10
----
6

query I rowsort
SELECT + - 71 col2
----
-71

query I rowsort
SELECT - 76 * + - 33 * 11
----
27588

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT - ( - 58 ) * COUNT( * ) * + + 1 + COUNT( * ) * + 77 col2
----
135

skipif mysql # not compatible
query I rowsort label-3024
SELECT - ( - 58 ) * COUNT ( * ) * + + 1 + COUNT ( * ) * + 77 col2
----
135

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3026
SELECT ALL - 80 * - - 38 * + 8 - + COUNT( * ) + + 31 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3026
SELECT ALL - 80 * - - 38 * + 8 - + COUNT ( * ) + + 31 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3028
SELECT DISTINCT COALESCE ( 76, 98 * - CASE 54 WHEN NULLIF ( 48, 63 + 5 ) THEN NULL ELSE COUNT( * ) END ) * + 95
----
7220

skipif mysql # not compatible
query I rowsort label-3028
SELECT DISTINCT COALESCE ( 76, 98 * - CASE 54 WHEN NULLIF ( 48, 63 + 5 ) THEN NULL ELSE COUNT ( * ) END ) * + 95
----
7220

query I rowsort
SELECT ALL + 3 * - + 21 - + - 99
----
36

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3031
SELECT - 13 * - 56 * - - 65 DIV - + COUNT( * ) + - 18 AS col1
----
-47338

skipif mysql # not compatible
query I rowsort label-3031
SELECT - 13 * - 56 * - - 65 / - + COUNT ( * ) + - 18 AS col1
----
-47338

query I rowsort
SELECT ALL ( - 81 ) * - 83 AS col1
----
6723

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT + CASE 95 WHEN + - 52 / + COUNT( * ) * - - 76 + - COUNT( * ) THEN 18 * + 29 END * - 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3033
SELECT + CASE 95 WHEN + - 52 / + COUNT ( * ) * - - 76 + - COUNT ( * ) THEN 18 * + 29 END * - 36 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3034
SELECT DISTINCT CAST( 54 AS SIGNED ) * 41 * + 59 AS col2
----
130626

skipif mysql # not compatible
query I rowsort label-3034
SELECT DISTINCT CAST ( 54 AS INTEGER ) * 41 * + 59 AS col2
----
130626

query I rowsort
SELECT + 57 + - 84
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT - 50 * - COUNT( * ) * - + 34 + - COUNT( * ) - + 42 AS col0
----
-1743

skipif mysql # not compatible
query I rowsort label-3036
SELECT - 50 * - COUNT ( * ) * - + 34 + - COUNT ( * ) - + 42 AS col0
----
-1743

query I rowsort
SELECT + 10 + - 89 AS col0
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-3038
SELECT + 86 DIV + 37
----
2

skipif mysql # not compatible
query I rowsort label-3038
SELECT + 86 / + 37
----
2

query I rowsort
SELECT ALL 92 + + 42
----
134

onlyif mysql # DIV for integer division: 
query I rowsort label-3040
SELECT + 4 + - 75 - - + 70 DIV - 27
----
-73

skipif mysql # not compatible
query I rowsort label-3040
SELECT + 4 + - 75 - - + 70 / - 27
----
-73

query I rowsort
SELECT DISTINCT 27 + + 45 AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3042
SELECT - 56 + MAX( ALL - 88 ) + + + 84
----
-60

skipif mysql # not compatible
query I rowsort label-3042
SELECT - 56 + MAX ( ALL - 88 ) + + + 84
----
-60

query I rowsort
SELECT ALL 62 + 97
----
159

query I rowsort
SELECT DISTINCT - 26 * 0 AS col0
----
0

query I rowsort
SELECT ALL - 68 + + COALESCE ( + 76, 94 ) * + 47
----
3504

query I rowsort
SELECT DISTINCT + 57 + + 65
----
122

onlyif mysql # DIV for integer division: 
query I rowsort label-3047
SELECT + - 88 + + 59 DIV + 25 AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-3047
SELECT + - 88 + + 59 / + 25 AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3048
SELECT DISTINCT + 77 + - COUNT( * ) + - 95 - + 40 * + - SUM( - 76 ) AS col2
----
-3059

skipif mysql # not compatible
query I rowsort label-3048
SELECT DISTINCT + 77 + - COUNT ( * ) + - 95 - + 40 * + - SUM ( - 76 ) AS col2
----
-3059

query I rowsort
SELECT DISTINCT COALESCE ( 27, - NULLIF ( + 8, + 82 ), + 83, 56 ) * + 38
----
1026

query I rowsort
SELECT DISTINCT - + 83 + 35 AS col2
----
-48

query I rowsort
SELECT ALL 36 * 64
----
2304

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3052
SELECT + - 69 - - + COALESCE ( + - CAST( - + 16 AS SIGNED ), - - 95 ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-3052
SELECT + - 69 - - + COALESCE ( + - CAST ( - + 16 AS INTEGER ), - - 95 ) AS col0
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3053
SELECT - CAST( + 26 AS SIGNED ) + - 40 + + 1 + + - 29 + + 39 * - 57 col2
----
-2317

skipif mysql # not compatible
query I rowsort label-3053
SELECT - CAST ( + 26 AS INTEGER ) + - 40 + + 1 + + - 29 + + 39 * - 57 col2
----
-2317

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3054
SELECT DISTINCT - 41 + CASE + + 2 WHEN - 9 / MAX( ALL 60 ) * 21 + SUM( - 59 ) * COUNT( * ) THEN 27 / - CAST( - 10 AS SIGNED ) END + + 87 * 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3054
SELECT DISTINCT - 41 + CASE + + 2 WHEN - 9 / MAX ( ALL 60 ) * 21 + SUM ( - 59 ) * COUNT ( * ) THEN 27 / - CAST ( - 10 AS INTEGER ) END + + 87 * 73 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3055
SELECT - 11 * - 80 + - 33 + - 79 + CASE 91 WHEN - ( - 9 ) THEN 43 ELSE - NULLIF ( NULLIF ( + NULLIF ( 92, - 17 + 88 ), COUNT( * ) * 81 ), + 13 - + CASE + 49 - + ( - 70 ) WHEN CAST( - COUNT( * ) AS SIGNED ) THEN NULL ELSE - 46 + 15 END ) END - - 94 AS col2
----
770

skipif mysql # not compatible
query I rowsort label-3055
SELECT - 11 * - 80 + - 33 + - 79 + CASE 91 WHEN - ( - 9 ) THEN 43 ELSE - NULLIF ( NULLIF ( + NULLIF ( 92, - 17 + 88 ), COUNT ( * ) * 81 ), + 13 - + CASE + 49 - + ( - 70 ) WHEN CAST ( - COUNT ( * ) AS INTEGER ) THEN NULL ELSE - 46 + 15 END ) END - - 94 AS col2
----
770

query I rowsort
SELECT ALL + 25 * - 29 AS col1
----
-725

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT ALL + MAX( DISTINCT + 79 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-3057
SELECT ALL + MAX ( DISTINCT + 79 ) AS col0
----
79

query I rowsort
SELECT - + 62 * 79 AS col0
----
-4898

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

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

query I rowsort
SELECT - 76 * + 60
----
-4560

onlyif mysql # aggregate syntax: 
query I rowsort label-3061
SELECT ALL + 98 * - SUM( + + 43 ) * + 71 AS col2
----
-299194

skipif mysql # not compatible
query I rowsort label-3061
SELECT ALL + 98 * - SUM ( + + 43 ) * + 71 AS col2
----
-299194

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3064
SELECT + NULLIF ( - + ( 38 ), + + 76 ) * COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-3064
SELECT + NULLIF ( - + ( 38 ), + + 76 ) * COUNT ( * )
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3065
SELECT ALL + CAST( 25 AS SIGNED ), + 3 * SUM( - CAST( NULL AS SIGNED ) ) AS col1
----
25
NULL

skipif mysql # not compatible
query II rowsort label-3065
SELECT ALL + CAST ( 25 AS INTEGER ), + 3 * SUM ( - CAST ( NULL AS INTEGER ) ) AS col1
----
25
NULL

query I rowsort
SELECT NULLIF ( 39, - 61 ) AS col0
----
39

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3068
SELECT DISTINCT + MIN( 74 ), 17 * + SUM( - 21 ) * - 3 AS col1
----
74
1071

skipif mysql # not compatible
query II rowsort label-3068
SELECT DISTINCT + MIN ( 74 ), 17 * + SUM ( - 21 ) * - 3 AS col1
----
74
1071

query I rowsort
SELECT + CASE 16 WHEN 77 THEN NULL WHEN 39 THEN - 10 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3070
SELECT + COALESCE ( NULLIF ( + 94, + 76 ), + 69 DIV 47 DIV 38 )
----
94

skipif mysql # not compatible
query I rowsort label-3070
SELECT + COALESCE ( NULLIF ( + 94, + 76 ), + 69 / 47 / 38 )
----
94

query I rowsort
SELECT ALL + 33 * 45 + - - 5
----
1490

query I rowsort
SELECT - 98 + + 51 + + - 70
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-3073
SELECT - COALESCE ( SUM( + + 16 ), 9 ) col0
----
-16

skipif mysql # not compatible
query I rowsort label-3073
SELECT - COALESCE ( SUM ( + + 16 ), 9 ) col0
----
-16

query I rowsort
SELECT - 74 + - 11 - + + 55 AS col2
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT + 80 * - 99 * - - COUNT( * ) AS col2
----
-7920

skipif mysql # not compatible
query I rowsort label-3075
SELECT + 80 * - 99 * - - COUNT ( * ) AS col2
----
-7920

onlyif mysql # aggregate syntax: 
query I rowsort label-3076
SELECT ALL COUNT( * ) * - 60 * COUNT( * ) + 2
----
-58

skipif mysql # not compatible
query I rowsort label-3076
SELECT ALL COUNT ( * ) * - 60 * COUNT ( * ) + 2
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3077
SELECT COUNT( * ), + 89 DIV - + 60 AS col2
----
1
-1

skipif mysql # not compatible
query II rowsort label-3077
SELECT COUNT ( * ), + 89 / - + 60 AS col2
----
1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3078
SELECT - MIN( ALL - - 92 ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-3078
SELECT - MIN ( ALL - - 92 ) AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3079
SELECT SUM( DISTINCT 69 )
----
69

skipif mysql # not compatible
query I rowsort label-3079
SELECT SUM ( DISTINCT 69 )
----
69

query I rowsort
SELECT ALL 57 * - ( - - 63 ) + - 69 + 11
----
-3649

onlyif mysql # aggregate syntax: 
query I rowsort label-3081
SELECT + 44 - - 4 * - 52 + - 27 * COUNT( + 86 ) * + ( ( 38 ) * 9 )
----
-9398

skipif mysql # not compatible
query I rowsort label-3081
SELECT + 44 - - 4 * - 52 + - 27 * COUNT ( + 86 ) * + ( ( 38 ) * 9 )
----
-9398

query I rowsort
SELECT ALL - COALESCE ( - 60, 38 ) * 76
----
4560

onlyif mysql # aggregate syntax: 
query I rowsort label-3083
SELECT ALL + COUNT( + 10 ) + + 44 * - COUNT( * ) * - - 28 * + - 42 AS col1
----
51745

skipif mysql # not compatible
query I rowsort label-3083
SELECT ALL + COUNT ( + 10 ) + + 44 * - COUNT ( * ) * - - 28 * + - 42 AS col1
----
51745

query II rowsort
SELECT ALL 1 AS col2, 93 AS col2
----
1
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3085
SELECT ALL 23 AS col1, + COALESCE ( 80, + + NULLIF ( - + MAX( ALL + ( 65 ) ), - 1 ) * - 88, 22 + + 92 ) * - 98 + + COALESCE ( 9, ( ( 23 ) ) ) * - ( 79 + + CAST( - 95 AS SIGNED ) ) AS col0
----
23
-7696

skipif mysql # not compatible
query II rowsort label-3085
SELECT ALL 23 AS col1, + COALESCE ( 80, + + NULLIF ( - + MAX ( ALL + ( 65 ) ), - 1 ) * - 88, 22 + + 92 ) * - 98 + + COALESCE ( 9, ( ( 23 ) ) ) * - ( 79 + + CAST ( - 95 AS INTEGER ) ) AS col0
----
23
-7696

query I rowsort
SELECT ALL 81 + 5 * - + 87 AS col0
----
-354

onlyif mysql # DIV for integer division: 
query I rowsort label-3087
SELECT ALL ( + NULLIF ( - 58, ( + NULLIF ( - + ( - 47 ), - 45 ) ) + 30 ) ) DIV ( + 23 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-3087
SELECT ALL ( + NULLIF ( - 58, ( + NULLIF ( - + ( - 47 ), - 45 ) ) + 30 ) ) / ( + 23 ) AS col0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3088
SELECT - + 29 col0, + ( + COALESCE ( - 11, NULLIF ( + - CAST( NULL AS SIGNED ), - 84 ) ) )
----
-29
-11

skipif mysql # not compatible
query II rowsort label-3088
SELECT - + 29 col0, + ( + COALESCE ( - 11, NULLIF ( + - CAST ( NULL AS INTEGER ), - 84 ) ) )
----
-29
-11

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

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

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

skipif mysql # not compatible
query I rowsort label-3090
SELECT ALL 48 / - COUNT ( * )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT CASE ( - 48 ) WHEN + - 21 * - 59 THEN - COUNT( DISTINCT 32 ) * - 66 WHEN 35 * + 14 THEN 55 WHEN 25 THEN NULL END * 95 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3091
SELECT CASE ( - 48 ) WHEN + - 21 * - 59 THEN - COUNT ( DISTINCT 32 ) * - 66 WHEN 35 * + 14 THEN 55 WHEN 25 THEN NULL END * 95 col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3092
SELECT 21 + + + COUNT ( * ) * + 55 AS col0
----
76

query I rowsort
SELECT ALL + ( + 81 ) * - 67
----
-5427

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

query I rowsort
SELECT 1 + - - 48 + - - 8 * - 70 AS col0
----
-511

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

skipif mysql # not compatible
query I rowsort label-3096
SELECT ALL - + ( + 73 ) * + + CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT 12 AS col1, 79 AS col2
----
12
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3098
SELECT ALL ( + - 92 ) * + + 22 + - 90 * + MAX( DISTINCT + 43 )
----
-5894

skipif mysql # not compatible
query I rowsort label-3098
SELECT ALL ( + - 92 ) * + + 22 + - 90 * + MAX ( DISTINCT + 43 )
----
-5894

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3099
SELECT + - ( + COUNT( * ) ) DIV + 17 * - + 31 * - 86 * - - COALESCE ( - COUNT( * ), + COUNT( * ) ) + + COUNT( 67 ) * - 40
----
-40

skipif mysql # not compatible
query I rowsort label-3099
SELECT + - ( + COUNT ( * ) ) / + 17 * - + 31 * - 86 * - - COALESCE ( - COUNT ( * ), + COUNT ( * ) ) + + COUNT ( 67 ) * - 40
----
-40

query I rowsort
SELECT 39 + 42 AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT ( + - COUNT( * ) ) + - COUNT( ALL 94 ) + + MAX( + 93 ) * COALESCE ( 75, + 50 ) col1
----
6973

skipif mysql # not compatible
query I rowsort label-3101
SELECT ( + - COUNT ( * ) ) + - COUNT ( ALL 94 ) + + MAX ( + 93 ) * COALESCE ( 75, + 50 ) col1
----
6973

onlyif mysql # DIV for integer division: 
query I rowsort label-3102
SELECT 20 DIV + 2 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-3102
SELECT 20 / + 2 AS col2
----
10

query I rowsort
SELECT 55 * 84 AS col2
----
4620

onlyif mysql # aggregate syntax: 
query I rowsort label-3104
SELECT ALL - COALESCE ( + 4, + 52, COUNT( * ) * - + CASE - - 31 WHEN COUNT( * ) + 74 THEN 67 WHEN 90 THEN 99 ELSE NULL END + 22 + - 28 ) + 59 AS col0
----
55

skipif mysql # not compatible
query I rowsort label-3104
SELECT ALL - COALESCE ( + 4, + 52, COUNT ( * ) * - + CASE - - 31 WHEN COUNT ( * ) + 74 THEN 67 WHEN 90 THEN 99 ELSE NULL END + 22 + - 28 ) + 59 AS col0
----
55

query I rowsort
SELECT - 5 * + + 24 + - ( 22 ) - - + COALESCE ( - 41, + + 61 + 32 ) * 35
----
-1577

query II rowsort
SELECT ALL - 12 * - 72 AS col2, 30 + - 46 + - - 83 + + - 86 * 31 * - 55
----
864
146697

onlyif mysql # aggregate syntax: 
query I rowsort label-3107
SELECT ALL COUNT( * ) + - ( - 82 ) + + + COUNT( * ) * - CASE + + 35 WHEN + 72 - 62 THEN NULL ELSE 85 + 34 END * 65
----
-7652

skipif mysql # not compatible
query I rowsort label-3107
SELECT ALL COUNT ( * ) + - ( - 82 ) + + + COUNT ( * ) * - CASE + + 35 WHEN + 72 - 62 THEN NULL ELSE 85 + 34 END * 65
----
-7652

onlyif mysql # aggregate syntax: 
query II rowsort label-3108
SELECT DISTINCT + 49 * 27 AS col1, COUNT( * )
----
1323
1

skipif mysql # not compatible
query II rowsort label-3108
SELECT DISTINCT + 49 * 27 AS col1, COUNT ( * )
----
1323
1

onlyif mysql # DIV for integer division: 
query II rowsort label-3109
SELECT ALL - ( 49 ), - 52 DIV ( + 82 ) col2
----
-49
0

skipif mysql # not compatible
query II rowsort label-3109
SELECT ALL - ( 49 ), - 52 / ( + 82 ) col2
----
-49
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3110
SELECT COALESCE ( 69, - 69 ) DIV 15 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-3110
SELECT COALESCE ( 69, - 69 ) / 15 AS col2
----
4

query I rowsort
SELECT DISTINCT - 49 * + CASE - - 13 WHEN - 45 THEN - 4 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 95 + + 75 AS col0
----
170

query II rowsort
SELECT 90 + + - 6 AS col0, 46 * 50
----
84
2300

query I rowsort
SELECT ALL + 77 + - 17 * + 43
----
-654

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

query I rowsort
SELECT DISTINCT - 50 * - 54 * + 24
----
64800

onlyif mysql # aggregate syntax: 
query I rowsort label-3117
SELECT ALL + + 49 + COUNT( ALL - + 9 )
----
50

skipif mysql # not compatible
query I rowsort label-3117
SELECT ALL + + 49 + COUNT ( ALL - + 9 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT MIN( - 83 ) + + COUNT( * ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-3118
SELECT MIN ( - 83 ) + + COUNT ( * ) AS col0
----
-82

query I rowsort
SELECT ALL - NULLIF ( + + 96, 76 )
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3120
SELECT + 62 + ( 59 ) + + 55 - - CAST( - ( + COUNT( * ) ) AS SIGNED )
----
175

skipif mysql # not compatible
query I rowsort label-3120
SELECT + 62 + ( 59 ) + + 55 - - CAST ( - ( + COUNT ( * ) ) AS INTEGER )
----
175

query I rowsort
SELECT DISTINCT - 83 * - + 59 * + 94 AS col0
----
460318

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3122
SELECT CAST( + 92 AS SIGNED ) * - + 86 - + 6
----
-7918

skipif mysql # not compatible
query I rowsort label-3122
SELECT CAST ( + 92 AS INTEGER ) * - + 86 - + 6
----
-7918

query I rowsort
SELECT ALL 55 * - - 63
----
3465

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3124
SELECT DISTINCT - + 94 * - 50 - - - CAST( - 77 AS SIGNED ) + + 9 + - 54
----
4732

skipif mysql # not compatible
query I rowsort label-3124
SELECT DISTINCT - + 94 * - 50 - - - CAST ( - 77 AS INTEGER ) + + 9 + - 54
----
4732

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

onlyif mysql # aggregate syntax: 
query III rowsort label-3126
SELECT 0 * + 77 AS col0, 13 AS col1, + COUNT( * ) col2
----
0
13
1

skipif mysql # not compatible
query III rowsort label-3126
SELECT 0 * + 77 AS col0, 13 AS col1, + COUNT ( * ) col2
----
0
13
1

query II rowsort
SELECT 49 - + + 49 AS col2, 57 * 66 AS col2
----
0
3762

onlyif mysql # aggregate syntax: 
query III rowsort label-3128
SELECT ( - + 34 ), - 50 AS col1, - - 77 * + + COUNT( - + ( COALESCE ( ( + 83 ), 7 ) ) ) AS col2
----
-34
-50
77

skipif mysql # not compatible
query III rowsort label-3128
SELECT ( - + 34 ), - 50 AS col1, - - 77 * + + COUNT ( - + ( COALESCE ( ( + 83 ), 7 ) ) ) AS col2
----
-34
-50
77

query I rowsort
SELECT + 87 + COALESCE ( - 53, 74 + - NULLIF ( + ( - + 14 ), 44 * + 48 ) + - 38, + 28 )
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-3130
SELECT - - COALESCE ( - 27, + 1 DIV - CASE - 89 WHEN 75 THEN - 32 DIV 33 END + + 38 ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-3130
SELECT - - COALESCE ( - 27, + 1 / - CASE - 89 WHEN 75 THEN - 32 / 33 END + + 38 ) AS col2
----
-27

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

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

query I rowsort
SELECT 54 * - 82 + - 10 + 35 AS col1
----
-4403

onlyif mysql # aggregate syntax: 
query I rowsort label-3133
SELECT ALL + - COALESCE ( - 49, COUNT( * ), - 81 ) * - 61 + + 61 + 90 * 39 * + ( + MIN( 26 ) )
----
88332

skipif mysql # not compatible
query I rowsort label-3133
SELECT ALL + - COALESCE ( - 49, COUNT ( * ), - 81 ) * - 61 + + 61 + 90 * 39 * + ( + MIN ( 26 ) )
----
88332

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

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

query I rowsort
SELECT 16 * + - 43 - 42 AS col2
----
-730

query I rowsort
SELECT DISTINCT + 27 * - + 37 * + 91 + 31 + 61
----
-90817

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3137
SELECT DISTINCT 94 * + 48 + - + 73 AS col2, + COALESCE ( + ( + COUNT( DISTINCT - 58 ) ), - + 79 - + 67, + MAX( 27 ) + 13 DIV + 57 ) AS col1
----
4439
1

skipif mysql # not compatible
query II rowsort label-3137
SELECT DISTINCT 94 * + 48 + - + 73 AS col2, + COALESCE ( + ( + COUNT ( DISTINCT - 58 ) ), - + 79 - + 67, + MAX ( 27 ) + 13 / + 57 ) AS col1
----
4439
1

query I rowsort
SELECT DISTINCT 75 + 17
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3139
SELECT MAX( DISTINCT + 27 ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-3139
SELECT MAX ( DISTINCT + 27 ) AS col1
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3140
SELECT 26 * - ( + COALESCE ( + + 1, - + 14 * SUM( ALL + + ( - - 36 ) ) DIV - 25 + + 67, - 3 ) ) col0
----
-26

skipif mysql # not compatible
query I rowsort label-3140
SELECT 26 * - ( + COALESCE ( + + 1, - + 14 * SUM ( ALL + + ( - - 36 ) ) / - 25 + + 67, - 3 ) ) col0
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3141
SELECT AVG ( DISTINCT CAST( NULL AS SIGNED ) ) * - + ( + 86 ) + + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-3141
SELECT AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) * - + ( + 86 ) + + 51
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3142
SELECT ALL COUNT( * ) * MIN( DISTINCT + - CAST( NULL AS DECIMAL ) ), 23 AS col0
----
NULL
23

skipif mysql # not compatible
query II rowsort label-3142
SELECT ALL COUNT ( * ) * MIN ( DISTINCT + - CAST ( NULL AS REAL ) ), 23 AS col0
----
NULL
23

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3144
SELECT COUNT( - 0 )
----
1

skipif mysql # not compatible
query I rowsort label-3144
SELECT COUNT ( - 0 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3145
SELECT 80 DIV - + 83
----
0

skipif mysql # not compatible
query I rowsort label-3145
SELECT 80 / - + 83
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3146
SELECT ALL 63 + - + COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-3146
SELECT ALL 63 + - + COUNT ( * )
----
62

query II rowsort
SELECT DISTINCT - 3 AS col2, 39 col2
----
-3
39

query I rowsort
SELECT ALL + 72 * - - 64 AS col2
----
4608

query II rowsort
SELECT + 11 col1, - 31
----
11
-31

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

skipif mysql # not compatible
query I rowsort label-3150
SELECT COUNT ( * ) * 89
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-3151
SELECT 66 DIV 72 col1
----
0

skipif mysql # not compatible
query I rowsort label-3151
SELECT 66 / 72 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3152
SELECT + 72 * 51 * + 38 - + + ( - SUM( DISTINCT - - ( + - 56 ) ) ) * - 99 + - AVG ( ALL CAST( NULL AS SIGNED ) - 48 ) * - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-3152
SELECT + 72 * 51 * + 38 - + + ( - SUM ( DISTINCT - - ( + - 56 ) ) ) * - 99 + - AVG ( ALL CAST ( NULL AS INTEGER ) - 48 ) * - 18
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3153
SELECT + 38 * 93 * + 94 + + 66 DIV 15 - 43 * + + CAST( - 80 AS SIGNED ) + 2 col1
----
335642

skipif mysql # not compatible
query I rowsort label-3153
SELECT + 38 * 93 * + 94 + + 66 / 15 - 43 * + + CAST ( - 80 AS INTEGER ) + 2 col1
----
335642

onlyif mysql # DIV for integer division: 
query I rowsort label-3154
SELECT - 0 DIV - ( + 65 ) + - 83 AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-3154
SELECT - 0 / - ( + 65 ) + - 83 AS col0
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3155
SELECT COALESCE ( - - 27, - + 61 DIV - 45 + + - 75 * + + COUNT( * ), + 51 * - 83 ) col2
----
27

skipif mysql # not compatible
query I rowsort label-3155
SELECT COALESCE ( - - 27, - + 61 / - 45 + + - 75 * + + COUNT ( * ), + 51 * - 83 ) col2
----
27

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

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

query I rowsort
SELECT - - 49 * + 54 + ( - 20 ) AS col0
----
2626

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3159
SELECT - + 80 + - - 58 + - COUNT( - + ( 73 ) ) + + MAX( 85 ) * - 9
----
-788

skipif mysql # not compatible
query I rowsort label-3159
SELECT - + 80 + - - 58 + - COUNT ( - + ( 73 ) ) + + MAX ( 85 ) * - 9
----
-788

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3160
SELECT - + MAX( DISTINCT - - 14 ) - - CAST( NULL AS SIGNED ) - 86 * 58 * COALESCE ( + + 14, 43, CAST( 85 AS DECIMAL ) + 97 ) * - 82 / - 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3160
SELECT - + MAX ( DISTINCT - - 14 ) - - CAST ( NULL AS INTEGER ) - 86 * 58 * COALESCE ( + + 14, 43, CAST ( 85 AS REAL ) + 97 ) * - 82 / - 70 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3161
SELECT + 85 * - CAST( - 28 AS SIGNED )
----
2380

skipif mysql # not compatible
query I rowsort label-3161
SELECT + 85 * - CAST ( - 28 AS INTEGER )
----
2380

query II rowsort
SELECT ALL + + NULLIF ( 21, - - 33 ) + 21, 42
----
42
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3163
SELECT ALL 94 AS col1, 96 * + CAST( NULL AS SIGNED ) col0
----
94
NULL

skipif mysql # not compatible
query II rowsort label-3163
SELECT ALL 94 AS col1, 96 * + CAST ( NULL AS INTEGER ) col0
----
94
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3164
SELECT - 17 + + 46 AS col0, + 17 DIV - + CAST( - CAST( 96 AS SIGNED ) AS SIGNED )
----
29
0

skipif mysql # not compatible
query II rowsort label-3164
SELECT - 17 + + 46 AS col0, + 17 / - + CAST ( - CAST ( 96 AS INTEGER ) AS INTEGER )
----
29
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT ALL + COUNT( * ) + - 13 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-3165
SELECT ALL + COUNT ( * ) + - 13 AS col0
----
-12

query I rowsort
SELECT ALL 90 * + + 48 + 81 - 66 AS col2
----
4335

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3167
SELECT + 9 * + COUNT( + 46 ) - - 3 DIV - 61
----
9

skipif mysql # not compatible
query I rowsort label-3167
SELECT + 9 * + COUNT ( + 46 ) - - 3 / - 61
----
9

query II rowsort
SELECT - 75 + - + 97 col1, 49 AS col2
----
-172
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3169
SELECT ( + COALESCE ( + 22, + COALESCE ( - 37, 40 * + - 97 + 46 * - ( + CAST( - 33 AS SIGNED ) ) * + 56, 78 ) ) )
----
22

skipif mysql # not compatible
query I rowsort label-3169
SELECT ( + COALESCE ( + 22, + COALESCE ( - 37, 40 * + - 97 + 46 * - ( + CAST ( - 33 AS INTEGER ) ) * + 56, 78 ) ) )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3170
SELECT ALL NULLIF ( - - 74, ( - 48 ) - - 66 * + 40 + - 28 + + - 9 ) * - 62 + - COUNT( * )
----
-4589

skipif mysql # not compatible
query I rowsort label-3170
SELECT ALL NULLIF ( - - 74, ( - 48 ) - - 66 * + 40 + - 28 + + - 9 ) * - 62 + - COUNT ( * )
----
-4589

query I rowsort
SELECT + CASE - 97 WHEN + 37 - + + 18 THEN 40 * - ( + 25 ) + - - 58 + + 10 - + 82 / - 80 END + 32
----
NULL

query I rowsort
SELECT 77 * + 74 + + 36 AS col1
----
5734

query I rowsort
SELECT DISTINCT 57 * 46
----
2622

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3174
SELECT ALL 70 * + + MIN( + + 80 ) * - + 80 - - 10 / + 85 * + CAST( NULL AS SIGNED ) * - + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-3174
SELECT ALL 70 * + + MIN ( + + 80 ) * - + 80 - - 10 / + 85 * + CAST ( NULL AS INTEGER ) * - + 52
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3176
SELECT ALL - ( CASE - 74 WHEN - CAST( NULL AS DECIMAL ) THEN 41 + 49 END ) * 40 - + ( NULLIF ( + 76, COUNT( * ) ) ) + 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3176
SELECT ALL - ( CASE - 74 WHEN - CAST ( NULL AS REAL ) THEN 41 + 49 END ) * 40 - + ( NULLIF ( + 76, COUNT ( * ) ) ) + 83 AS col2
----
NULL

query I rowsort
SELECT + 91 + - 73
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3178
SELECT + COUNT( ALL - 79 ) * - 47 * 5 * - - 49
----
-11515

skipif mysql # not compatible
query I rowsort label-3178
SELECT + COUNT ( ALL - 79 ) * - 47 * 5 * - - 49
----
-11515

query II rowsort
SELECT - 44 + + 48 AS col2, 3
----
4
3

query I rowsort
SELECT DISTINCT + - 19 AS col1
----
-19

query I rowsort
SELECT + + 95 * 48
----
4560

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT ALL 3 * + - 45 + COUNT( * )
----
-134

skipif mysql # not compatible
query I rowsort label-3182
SELECT ALL 3 * + - 45 + COUNT ( * )
----
-134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3183
SELECT + 73 + ( 85 ) * + CAST( 22 AS SIGNED ) + CASE 71 WHEN - 31 THEN NULL ELSE 0 END
----
1943

skipif mysql # not compatible
query I rowsort label-3183
SELECT + 73 + ( 85 ) * + CAST ( 22 AS INTEGER ) + CASE 71 WHEN - 31 THEN NULL ELSE 0 END
----
1943

onlyif mysql # aggregate syntax: 
query I rowsort label-3184
SELECT + 86 * + - COUNT( * ) + + 80 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-3184
SELECT + 86 * + - COUNT ( * ) + + 80 AS col2
----
-6

query I rowsort
SELECT + 91 * 48
----
4368

query I rowsort
SELECT - ( + + 0 ) * 25
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3187
SELECT - - 12 DIV - 72 + - COALESCE ( 58, 6, ( - ( + - NULLIF ( 85, 20 - + 39 ) ) ) )
----
-58

skipif mysql # not compatible
query I rowsort label-3187
SELECT - - 12 / - 72 + - COALESCE ( 58, 6, ( - ( + - NULLIF ( 85, 20 - + 39 ) ) ) )
----
-58

query I rowsort
SELECT ALL + + 14 + + 82 - + + 60 + 71 AS col0
----
107

query I rowsort
SELECT ALL ( + - NULLIF ( - 26, - 21 - - + 52 ) ) AS col0
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3190
SELECT - - COUNT( CAST( NULL AS SIGNED ) ) + 59 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-3190
SELECT - - COUNT ( CAST ( NULL AS INTEGER ) ) + 59 AS col2
----
59

query II rowsort
SELECT ALL + 46 + - 31 + + 1 * + 28, - 5 AS col1
----
43
-5

query I rowsort
SELECT ALL + 53 + - 70 * - 60 - 6
----
4247

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3193
SELECT ALL + 7 + 23 + + 47, - ( + NULLIF ( - COALESCE ( 77, COUNT( * ), CAST( - - 21 AS SIGNED ) ), + 67 ) ) * - 3 AS col1
----
77
-231

skipif mysql # not compatible
query II rowsort label-3193
SELECT ALL + 7 + 23 + + 47, - ( + NULLIF ( - COALESCE ( 77, COUNT ( * ), CAST ( - - 21 AS INTEGER ) ), + 67 ) ) * - 3 AS col1
----
77
-231

query I rowsort
SELECT ALL - 53 + + 4
----
-49

query I rowsort
SELECT - 5 + - 7 + + 16
----
4

query II rowsort
SELECT - 77, - 10 AS col2
----
-77
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT - CASE 12 WHEN - ( - 87 ) * 94 * 1 + - 48 THEN NULL WHEN - + 11 THEN + - COUNT( - + 81 ) * 46 WHEN 90 THEN NULL WHEN + 0 * 11 THEN 83 ELSE NULL END + 69 * + 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3197
SELECT - CASE 12 WHEN - ( - 87 ) * 94 * 1 + - 48 THEN NULL WHEN - + 11 THEN + - COUNT ( - + 81 ) * 46 WHEN 90 THEN NULL WHEN + 0 * 11 THEN 83 ELSE NULL END + 69 * + 73 AS col1
----
NULL

query I rowsort
SELECT ALL + 8 + + 83 AS col1
----
91

query I rowsort
SELECT CASE 63 WHEN 90 THEN + 56 WHEN + 77 THEN 91 END * - 31 * 30 + - 45 + 19 + 77 * 18
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3200
SELECT ALL 29 / 49 * - COUNT( * ) * 17 * - CAST( NULL AS SIGNED ) - 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3200
SELECT ALL 29 / 49 * - COUNT ( * ) * 17 * - CAST ( NULL AS INTEGER ) - 25 AS col1
----
NULL

query I rowsort
SELECT - COALESCE ( 73, + 39 + + 37 + - ( 74 ) ) * + - 14 AS col1
----
1022

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

skipif mysql # not compatible
query I rowsort label-3202
SELECT ALL + COUNT ( * ) / - - 15 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3203
SELECT 90 * CASE + + 58 WHEN + MIN( + + 29 ) THEN NULL WHEN - + 33 * 63 THEN NULL WHEN - 90 + + + 7 THEN - 77 WHEN - ( COUNT( + CAST( NULL AS SIGNED ) ) ) * - COUNT( ALL - 66 ) THEN 42 * - ( 35 ) ELSE NULL END * COUNT( * ) - + 15 * + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-3203
SELECT 90 * CASE + + 58 WHEN + MIN ( + + 29 ) THEN NULL WHEN - + 33 * 63 THEN NULL WHEN - 90 + + + 7 THEN - 77 WHEN - ( COUNT ( + CAST ( NULL AS INTEGER ) ) ) * - COUNT ( ALL - 66 ) THEN 42 * - ( 35 ) ELSE NULL END * COUNT ( * ) - + 15 * + 52
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3205
SELECT - 15 DIV + 23 * + NULLIF ( - - 49, - COUNT( * ) * + 46 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3205
SELECT - 15 / + 23 * + NULLIF ( - - 49, - COUNT ( * ) * + 46 ) AS col0
----
0

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

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

query I rowsort
SELECT 70 * - 73
----
-5110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3208
SELECT ALL 73 DIV COUNT( * ) DIV + ( + + ( + 19 ) )
----
3

skipif mysql # not compatible
query I rowsort label-3208
SELECT ALL 73 / COUNT ( * ) / + ( + + ( + 19 ) )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3209
SELECT 76 DIV - 40
----
-1

skipif mysql # not compatible
query I rowsort label-3209
SELECT 76 / - 40
----
-1

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

query I rowsort
SELECT - ( 60 )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3212
SELECT ALL - 4 * + - COUNT( * ) + + MIN( - 7 ) * 62 * - 37 + + - 43 + 16 * + SUM( + 82 )
----
17331

skipif mysql # not compatible
query I rowsort label-3212
SELECT ALL - 4 * + - COUNT ( * ) + + MIN ( - 7 ) * 62 * - 37 + + - 43 + 16 * + SUM ( + 82 )
----
17331

query I rowsort
SELECT 6 * 2 AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT DISTINCT 43 + + - 29 + + CASE - 85 WHEN + + CASE COUNT( * ) WHEN 59 THEN NULL ELSE 97 * + ( NULLIF ( - 98, + 10 ) ) + 92 * 79 END * AVG ( - 3 / - 95 ) THEN 6 * + 72 - 2 ELSE NULL END + 43 * 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3214
SELECT DISTINCT 43 + + - 29 + + CASE - 85 WHEN + + CASE COUNT ( * ) WHEN 59 THEN NULL ELSE 97 * + ( NULLIF ( - 98, + 10 ) ) + 92 * 79 END * AVG ( - 3 / - 95 ) THEN 6 * + 72 - 2 ELSE NULL END + 43 * 18 AS col1
----
NULL

query I rowsort
SELECT ALL 92 + - 69
----
23

query I rowsort
SELECT 55 + - - ( 89 )
----
144

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3217
SELECT - - 54 * - 72 + - 53 + + + 84 * - NULLIF ( 36, + + 76 + - + CAST( NULL AS SIGNED ) ) / - 73 * - + COALESCE ( + 86, + 87 ) - 83 / + CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3217
SELECT - - 54 * - 72 + - 53 + + + 84 * - NULLIF ( 36, + + 76 + - + CAST ( NULL AS INTEGER ) ) / - 73 * - + COALESCE ( + 86, + 87 ) - 83 / + CAST ( NULL AS REAL ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3218
SELECT 58, 60 DIV + 6 + 33 * - 64 * - + 56 * 71 AS col1
----
58
8397322

skipif mysql # not compatible
query II rowsort label-3218
SELECT 58, 60 / + 6 + 33 * - 64 * - + 56 * 71 AS col1
----
58
8397322

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3219
SELECT - - COALESCE ( NULLIF ( COUNT( * ), MAX( CAST( NULL AS SIGNED ) ) + - AVG ( + CAST( NULL AS DECIMAL ) ) ), + 29 )
----
1

skipif mysql # not compatible
query I rowsort label-3219
SELECT - - COALESCE ( NULLIF ( COUNT ( * ), MAX ( CAST ( NULL AS INTEGER ) ) + - AVG ( + CAST ( NULL AS REAL ) ) ), + 29 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT - + COALESCE ( + 61, MAX( DISTINCT + 69 ), 78 * - - 3 ) * 29 + 97
----
-1672

skipif mysql # not compatible
query I rowsort label-3220
SELECT - + COALESCE ( + 61, MAX ( DISTINCT + 69 ), 78 * - - 3 ) * 29 + 97
----
-1672

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3222
SELECT DISTINCT MIN( - + 52 ) + 92 DIV ( ( - - 1 ) ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-3222
SELECT DISTINCT MIN ( - + 52 ) + 92 / ( ( - - 1 ) ) AS col2
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3223
SELECT DISTINCT - 28 + 0 DIV - COALESCE ( ( - 79 ), - 3, 42, COUNT( * ) * COUNT( * ) ) * + - ( 70 ) * 41 - + 14 + + 64 * - 57 AS col0
----
-3690

skipif mysql # not compatible
query I rowsort label-3223
SELECT DISTINCT - 28 + 0 / - COALESCE ( ( - 79 ), - 3, 42, COUNT ( * ) * COUNT ( * ) ) * + - ( 70 ) * 41 - + 14 + + 64 * - 57 AS col0
----
-3690

onlyif mysql # aggregate syntax: 
query II rowsort label-3224
SELECT + 25 + + ( + + COUNT( * ) ) col1, - SUM( DISTINCT + 4 )
----
26
-4

skipif mysql # not compatible
query II rowsort label-3224
SELECT + 25 + + ( + + COUNT ( * ) ) col1, - SUM ( DISTINCT + 4 )
----
26
-4

query I rowsort
SELECT ALL + 21 + - 67 AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT DISTINCT 52 * - SUM( - 19 ) AS col1
----
988

skipif mysql # not compatible
query I rowsort label-3226
SELECT DISTINCT 52 * - SUM ( - 19 ) AS col1
----
988

query I rowsort
SELECT 65 + - 3 + 18 AS col0
----
80

query I rowsort
SELECT DISTINCT 87 - + 49 * - - 75 AS col0
----
-3588

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3229
SELECT ALL 46 * + MAX( - 90 ) * MAX( ALL + - 30 ) * - ( + - 69 ) - + COUNT( * ) + + COUNT( * ) + - COUNT( * ) * MAX( ALL + 27 ) * 36 DIV 86
----
8569789

skipif mysql # not compatible
query I rowsort label-3229
SELECT ALL 46 * + MAX ( - 90 ) * MAX ( ALL + - 30 ) * - ( + - 69 ) - + COUNT ( * ) + + COUNT ( * ) + - COUNT ( * ) * MAX ( ALL + 27 ) * 36 / 86
----
8569789

onlyif mysql # DIV for integer division: 
query I rowsort label-3230
SELECT 55 DIV + 65 * + 81 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3230
SELECT 55 / + 65 * + 81 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3232
SELECT ALL 89, - COUNT( * ) * + 47 AS col1
----
89
-47

skipif mysql # not compatible
query II rowsort label-3232
SELECT ALL 89, - COUNT ( * ) * + 47 AS col1
----
89
-47

query I rowsort
SELECT 86 - - NULLIF ( + 48, - 10 )
----
134

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3235
SELECT + 53, + 6 * - 55 * CASE - 26 WHEN + - 58 * + 90 THEN + 73 + + ( 83 ) * - 11 / 18 + COUNT( * ) / 44 END AS col0
----
53
NULL

skipif mysql # not compatible
query II rowsort label-3235
SELECT + 53, + 6 * - 55 * CASE - 26 WHEN + - 58 * + 90 THEN + 73 + + ( 83 ) * - 11 / 18 + COUNT ( * ) / 44 END AS col0
----
53
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT COALESCE ( 71, 58 + + CASE 18 WHEN 53 * 35 - + 38 THEN NULLIF ( - COUNT( * ), + + COUNT( * ) ) WHEN - 13 THEN + 96 * - 5 ELSE NULL END ) * 21 + 13 AS col1
----
1504

skipif mysql # not compatible
query I rowsort label-3237
SELECT COALESCE ( 71, 58 + + CASE 18 WHEN 53 * 35 - + 38 THEN NULLIF ( - COUNT ( * ), + + COUNT ( * ) ) WHEN - 13 THEN + 96 * - 5 ELSE NULL END ) * 21 + 13 AS col1
----
1504

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT + + 94 * - COUNT( - + 15 ) + + ( + - 75 ) col1
----
-169

skipif mysql # not compatible
query I rowsort label-3238
SELECT + + 94 * - COUNT ( - + 15 ) + + ( + - 75 ) col1
----
-169

query I rowsort
SELECT - 79 + + 54 AS col2
----
-25

query I rowsort
SELECT DISTINCT - - 85 * - 94
----
-7990

query I rowsort
SELECT ALL ( - - 53 ) + 11 col0
----
64

query I rowsort
SELECT ALL - ( 54 ) + 3 AS col2
----
-51

query I rowsort
SELECT - 46 * - + 51 AS col0
----
2346

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

query I rowsort
SELECT ALL + CASE + COALESCE ( - - 16, + + 35 + - + 60, + 64 / - + 20 ) WHEN - 64 - - NULLIF ( + 47, 90 ) - - 12 THEN NULL ELSE 51 END + + 4
----
55

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3246
SELECT DISTINCT - 23 DIV - CAST( + + 95 AS SIGNED ) col2
----
0

skipif mysql # not compatible
query I rowsort label-3246
SELECT DISTINCT - 23 / - CAST ( + + 95 AS INTEGER ) col2
----
0

query I rowsort
SELECT ALL - 32 + 7
----
-25

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

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

query I rowsort
SELECT ALL + 21 + - 53 AS col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT - MAX( + CASE + 27 WHEN + 9 + - + 78 * ( - 8 ) THEN NULL WHEN + 96 * - 96 * - 75 / 9 THEN 99 / + ( 94 ) END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3250
SELECT - MAX ( + CASE + 27 WHEN + 9 + - + 78 * ( - 8 ) THEN NULL WHEN + 96 * - 96 * - 75 / 9 THEN 99 / + ( 94 ) END ) AS col2
----
NULL

query II rowsort
SELECT 10 AS col1, NULLIF ( + - 93, 54 ) AS col0
----
10
-93

query I rowsort
SELECT ALL NULLIF ( + - 14, - - 52 / + 25 + + - 15 * - 86 * - 73 + + CASE WHEN 90 IS NOT NULL THEN + + 7 END - - 47 * - 68 ) AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT + 32 * - 46 * + 8 - - - ( - - NULLIF ( + 25, ( - 11 ) * ( - COUNT( * ) ) ) ) AS col2
----
-11801

skipif mysql # not compatible
query I rowsort label-3253
SELECT + 32 * - 46 * + 8 - - - ( - - NULLIF ( + 25, ( - 11 ) * ( - COUNT ( * ) ) ) ) AS col2
----
-11801

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT - - COALESCE ( - 58, - 83, - MIN( 72 ) ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-3254
SELECT - - COALESCE ( - 58, - 83, - MIN ( 72 ) ) AS col2
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-3255
SELECT - SUM( DISTINCT + - 95 ) AS col0, 93 AS col0
----
95
93

skipif mysql # not compatible
query II rowsort label-3255
SELECT - SUM ( DISTINCT + - 95 ) AS col0, 93 AS col0
----
95
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT 74 * - COUNT( + + ( + 79 ) ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-3256
SELECT 74 * - COUNT ( + + ( + 79 ) ) AS col0
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3257
SELECT ALL 46 - - 93 DIV 22, SUM( DISTINCT CAST( - + ( - 82 ) AS SIGNED ) ) + + - 47 AS col1
----
50
35

skipif mysql # not compatible
query II rowsort label-3257
SELECT ALL 46 - - 93 / 22, SUM ( DISTINCT CAST ( - + ( - 82 ) AS INTEGER ) ) + + - 47 AS col1
----
50
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3258
SELECT 45 * + 70 DIV + COUNT( * ) AS col2, 48 - - - 7 AS col0
----
3150
41

skipif mysql # not compatible
query II rowsort label-3258
SELECT 45 * + 70 / + COUNT ( * ) AS col2, 48 - - - 7 AS col0
----
3150
41

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

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

query I rowsort
SELECT 70 * 62
----
4340

query I rowsort
SELECT DISTINCT 34 * 15 col0
----
510

query I rowsort
SELECT + 69 + + ( + 99 ) + - 7 AS col0
----
161

query I rowsort
SELECT + 86 * + 82 col2
----
7052

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT DISTINCT 98 * 21 * + - MIN( ALL + - ( + 65 ) ) * - 34
----
-4548180

skipif mysql # not compatible
query I rowsort label-3264
SELECT DISTINCT 98 * 21 * + - MIN ( ALL + - ( + 65 ) ) * - 34
----
-4548180

onlyif mysql # aggregate syntax: 
query II rowsort label-3265
SELECT - SUM( DISTINCT - 94 ) AS col2, + COUNT( * ) * 56 col2
----
94
56

skipif mysql # not compatible
query II rowsort label-3265
SELECT - SUM ( DISTINCT - 94 ) AS col2, + COUNT ( * ) * 56 col2
----
94
56

query I rowsort
SELECT ALL 33 * ( - 16 ) AS col1
----
-528

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3267
SELECT + COUNT( * ) DIV + - 31 AS col1, 73
----
0
73

skipif mysql # not compatible
query II rowsort label-3267
SELECT + COUNT ( * ) / + - 31 AS col1, 73
----
0
73

onlyif mysql # DIV for integer division: 
query I rowsort label-3268
SELECT - 44 DIV - + 62 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3268
SELECT - 44 / - + 62 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT ALL 38 * - + NULLIF ( - COALESCE ( + 63, 93, + - COUNT( - ( 79 ) ) ), + - 94 ) col2
----
2394

skipif mysql # not compatible
query I rowsort label-3269
SELECT ALL 38 * - + NULLIF ( - COALESCE ( + 63, 93, + - COUNT ( - ( 79 ) ) ), + - 94 ) col2
----
2394

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3270
SELECT ALL - COUNT( * ) * - 41 DIV + 26 + - 69 + + 76, 89 AS col0
----
8
89

skipif mysql # not compatible
query II rowsort label-3270
SELECT ALL - COUNT ( * ) * - 41 / + 26 + - 69 + + 76, 89 AS col0
----
8
89

query I rowsort
SELECT - 77 * + 40
----
-3080

onlyif mysql # aggregate syntax: 
query I rowsort label-3272
SELECT ALL + ( + + 33 ) * + 59 + + - COUNT( * )
----
1946

skipif mysql # not compatible
query I rowsort label-3272
SELECT ALL + ( + + 33 ) * + 59 + + - COUNT ( * )
----
1946

query I rowsort
SELECT ALL + + ( 59 ) * 17 + ( 0 ) AS col0
----
1003

query I rowsort
SELECT + - 21 * + - 7
----
147

onlyif mysql # aggregate syntax: 
query II rowsort label-3275
SELECT DISTINCT + + MIN( + 60 ), + 47 col0
----
60
47

skipif mysql # not compatible
query II rowsort label-3275
SELECT DISTINCT + + MIN ( + 60 ), + 47 col0
----
60
47

query I rowsort
SELECT - CASE WHEN NOT 20 NOT BETWEEN - 52 * - 97 AND NULL THEN 27 + 2 - + + 39 ELSE 70 END - - 36 - + 71 * + 31 * + 67 * + 1 col0
----
-147501

onlyif mysql # aggregate syntax: 
query I rowsort label-3277
SELECT ALL - ( + ( + 86 ) ) * 35 - SUM( - 64 ) + + 73 * 59
----
1361

skipif mysql # not compatible
query I rowsort label-3277
SELECT ALL - ( + ( + 86 ) ) * 35 - SUM ( - 64 ) + + 73 * 59
----
1361

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3278
SELECT ALL + + 16 * COALESCE ( + + CAST( NULL AS SIGNED ), + 71 * 64 + + 6, + 43 * 64 * + + ( + COUNT( * ) ) * 18 + - COALESCE ( COUNT( * ), COUNT( * ) ) + 14 * + COALESCE ( COUNT( * ) DIV + 68, - 21 ), + 61 ) * 69 AS col1
----
5023200

skipif mysql # not compatible
query I rowsort label-3278
SELECT ALL + + 16 * COALESCE ( + + CAST ( NULL AS INTEGER ), + 71 * 64 + + 6, + 43 * 64 * + + ( + COUNT ( * ) ) * 18 + - COALESCE ( COUNT ( * ), COUNT ( * ) ) + 14 * + COALESCE ( COUNT ( * ) / + 68, - 21 ), + 61 ) * 69 AS col1
----
5023200

onlyif mysql # aggregate syntax: 
query I rowsort label-3279
SELECT - - 95 + + COUNT( * ) - - - 39 * COUNT( + 17 ) + 39 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-3279
SELECT - - 95 + + COUNT ( * ) - - - 39 * COUNT ( + 17 ) + 39 AS col0
----
96

query I rowsort
SELECT - - 89 * - - 48
----
4272

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT - + NULLIF ( - + 81, - MAX( + - 26 ) ) + - + 90 + + COUNT( * ) col1
----
-8

skipif mysql # not compatible
query I rowsort label-3281
SELECT - + NULLIF ( - + 81, - MAX ( + - 26 ) ) + - + 90 + + COUNT ( * ) col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3282
SELECT - + 14 - + COUNT( * ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-3282
SELECT - + 14 - + COUNT ( * ) AS col1
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3283
SELECT ALL - CAST( - 68 AS SIGNED ), + 50 AS col2
----
68
50

skipif mysql # not compatible
query II rowsort label-3283
SELECT ALL - CAST ( - 68 AS INTEGER ), + 50 AS col2
----
68
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3284
SELECT - COUNT( * ) * - 28 + + SUM( - 63 )
----
-35

skipif mysql # not compatible
query I rowsort label-3284
SELECT - COUNT ( * ) * - 28 + + SUM ( - 63 )
----
-35

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

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

query I rowsort
SELECT ALL 99 * - 48
----
-4752

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

query I rowsort
SELECT - 81 + - - 50 AS col0
----
-31

query I rowsort
SELECT ALL 93 * + + 72 * 85
----
569160

query I rowsort
SELECT + 99 * - 22
----
-2178

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3292
SELECT 25 AS col2, - COUNT( * ) * + + 34 AS col1
----
25
-34

skipif mysql # not compatible
query II rowsort label-3292
SELECT 25 AS col2, - COUNT ( * ) * + + 34 AS col1
----
25
-34

query II rowsort
SELECT - 85 col0, + 4
----
-85
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3294
SELECT + COUNT( ALL - - 22 ) + CAST( NULL AS SIGNED ) AS col1, 41 + - COUNT( * ) AS col2
----
NULL
40

skipif mysql # not compatible
query II rowsort label-3294
SELECT + COUNT ( ALL - - 22 ) + CAST ( NULL AS INTEGER ) AS col1, 41 + - COUNT ( * ) AS col2
----
NULL
40

query I rowsort
SELECT ALL 57 * + 97
----
5529

query I rowsort
SELECT - 63 * 41 AS col0
----
-2583

query I rowsort
SELECT + 69 * - 32 AS col0
----
-2208

onlyif mysql # aggregate syntax: 
query I rowsort label-3298
SELECT + 27 + + + 32 + - 93 - COUNT( + 71 ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-3298
SELECT + 27 + + + 32 + - 93 - COUNT ( + 71 ) AS col2
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3299
SELECT + CAST( NULLIF ( - 85, - COALESCE ( - 33, - + 17 ) / 54 - + - 19 * CASE 60 WHEN 34 THEN NULL WHEN + 22 * - - 44 THEN NULL ELSE + 81 END ) AS SIGNED ) - + 23
----
-108

skipif mysql # not compatible
query I rowsort label-3299
SELECT + CAST ( NULLIF ( - 85, - COALESCE ( - 33, - + 17 ) / 54 - + - 19 * CASE 60 WHEN 34 THEN NULL WHEN + 22 * - - 44 THEN NULL ELSE + 81 END ) AS INTEGER ) - + 23
----
-108

onlyif mysql # DIV for integer division: 
query I rowsort label-3300
SELECT ALL + 60 * 42 DIV 39 * - 70
----
-4480

skipif mysql # not compatible
query I rowsort label-3300
SELECT ALL + 60 * 42 / 39 * - 70
----
-4480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3301
SELECT + COALESCE ( COUNT( * ), NULLIF ( + 69, + - 94 ) DIV + NULLIF ( 46, - COUNT( * ) ) ) + - - 50
----
51

skipif mysql # not compatible
query I rowsort label-3301
SELECT + COALESCE ( COUNT ( * ), NULLIF ( + 69, + - 94 ) / + NULLIF ( 46, - COUNT ( * ) ) ) + - - 50
----
51

query I rowsort
SELECT DISTINCT 56 + + 45 col1
----
101

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT + 35 * + - MAX( - - 66 ) + - COUNT( * )
----
-2311

skipif mysql # not compatible
query I rowsort label-3304
SELECT + 35 * + - MAX ( - - 66 ) + - COUNT ( * )
----
-2311

query I rowsort
SELECT + 70 - + + 17 + - 67 * + ( + 54 ) col2
----
-3565

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3306
SELECT ALL + SUM( ALL + 12 ) * 49 + + + 44 + - NULLIF ( - 80, + CAST( NULL AS SIGNED ) ) * + 52 * - ( - COALESCE ( ( - - 83 ), + 94 ) ) * + 83
----
28658872

skipif mysql # not compatible
query I rowsort label-3306
SELECT ALL + SUM ( ALL + 12 ) * 49 + + + 44 + - NULLIF ( - 80, + CAST ( NULL AS INTEGER ) ) * + 52 * - ( - COALESCE ( ( - - 83 ), + 94 ) ) * + 83
----
28658872

query I rowsort
SELECT + 37 + + - 52
----
-15

query I rowsort
SELECT DISTINCT + 23 * + 59 AS col0
----
1357

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT + COUNT( * ) * + 80 + - MAX( ALL + 83 ) + - 51
----
-54

skipif mysql # not compatible
query I rowsort label-3309
SELECT + COUNT ( * ) * + 80 + - MAX ( ALL + 83 ) + - 51
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT - CASE + + 44 WHEN - + 72 * 13 THEN - + COUNT( * ) ELSE NULL END * + 78 * + - 57 * - - COUNT( * ) * + 44 + + COUNT( * ) + + NULLIF ( + 37, - 76 * - NULLIF ( - 60 * + 93 - 40, NULLIF ( + 2, 6 ) * - COUNT( * ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3310
SELECT - CASE + + 44 WHEN - + 72 * 13 THEN - + COUNT ( * ) ELSE NULL END * + 78 * + - 57 * - - COUNT ( * ) * + 44 + + COUNT ( * ) + + NULLIF ( + 37, - 76 * - NULLIF ( - 60 * + 93 - 40, NULLIF ( + 2, 6 ) * - COUNT ( * ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3311
SELECT ALL + + MAX( DISTINCT + 68 ) col2
----
68

skipif mysql # not compatible
query I rowsort label-3311
SELECT ALL + + MAX ( DISTINCT + 68 ) col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3312
SELECT - COUNT( * ) + - - 49 AS col1
----
48

skipif mysql # not compatible
query I rowsort label-3312
SELECT - COUNT ( * ) + - - 49 AS col1
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3313
SELECT + + 55, + CAST( NULL AS SIGNED ) + - 58 col2
----
55
NULL

skipif mysql # not compatible
query II rowsort label-3313
SELECT + + 55, + CAST ( NULL AS INTEGER ) + - 58 col2
----
55
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3314
SELECT + - MAX( + 60 ) * - SUM( - 38 ) + 69 / - - ( CASE + SUM( DISTINCT - 17 ) WHEN + 39 + - 57 THEN + + SUM( + 91 ) * + 64 WHEN 82 / + 19 THEN ( 72 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3314
SELECT + - MAX ( + 60 ) * - SUM ( - 38 ) + 69 / - - ( CASE + SUM ( DISTINCT - 17 ) WHEN + 39 + - 57 THEN + + SUM ( + 91 ) * + 64 WHEN 82 / + 19 THEN ( 72 ) END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT + MAX( ALL - 6 ) * - ( + 84 ) * + 72 * - - MIN( ALL 78 ) AS col2
----
2830464

skipif mysql # not compatible
query I rowsort label-3315
SELECT + MAX ( ALL - 6 ) * - ( + 84 ) * + 72 * - - MIN ( ALL 78 ) AS col2
----
2830464

query I rowsort
SELECT COALESCE ( 18, ( + - 80 ) - - 47 * + 22 ) col1
----
18

query I rowsort
SELECT ALL + 88 * + CASE - - 73 WHEN 84 / 70 THEN NULL ELSE + 44 + - - 74 END AS col2
----
10384

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3318
SELECT DISTINCT + 45 * 28 AS col0, - CAST( NULL AS SIGNED ) AS col1
----
1260
NULL

skipif mysql # not compatible
query II rowsort label-3318
SELECT DISTINCT + 45 * 28 AS col0, - CAST ( NULL AS INTEGER ) AS col1
----
1260
NULL

query I rowsort
SELECT DISTINCT 70 * - 63
----
-4410

query I rowsort
SELECT 64 * + 96
----
6144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3321
SELECT 70 DIV + 27 DIV + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3321
SELECT 70 / + 27 / + COUNT ( * ) AS col2
----
2

query I rowsort
SELECT 15 * + 42 * - + 37 AS col0
----
-23310

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3323
SELECT ALL - 55 + + - 13 + + CAST( NULL AS SIGNED ) * 31 * + + 18 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3323
SELECT ALL - 55 + + - 13 + + CAST ( NULL AS INTEGER ) * 31 * + + 18 * COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 1 + - 64 * 52
----
-3327

query I rowsort
SELECT ALL + 56 + - 35
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT DISTINCT NULLIF ( - - 85, + - 45 - 37 ) * - MAX( DISTINCT - + 58 )
----
4930

skipif mysql # not compatible
query I rowsort label-3326
SELECT DISTINCT NULLIF ( - - 85, + - 45 - 37 ) * - MAX ( DISTINCT - + 58 )
----
4930

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT 89 + + - 3 - CASE - 58 WHEN - - COUNT( * ) THEN + 81 + + 44 + 76 + - 53 + 48 * - 70 * - COUNT( * ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3327
SELECT 89 + + - 3 - CASE - 58 WHEN - - COUNT ( * ) THEN + 81 + + 44 + 76 + - 53 + 48 * - 70 * - COUNT ( * ) END col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3328
SELECT - 68 + - + COUNT( * ) * + + 29 - + 47 col2, 99
----
-144
99

skipif mysql # not compatible
query II rowsort label-3328
SELECT - 68 + - + COUNT ( * ) * + + 29 - + 47 col2, 99
----
-144
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3329
SELECT 88 - + 1 DIV - 6
----
88

skipif mysql # not compatible
query I rowsort label-3329
SELECT 88 - + 1 / - 6
----
88

query I rowsort
SELECT DISTINCT + - 66 * + 20 col1
----
-1320

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3332
SELECT + 35 * - COALESCE ( - 75, + 26, + + COUNT( * ) )
----
2625

skipif mysql # not compatible
query I rowsort label-3332
SELECT + 35 * - COALESCE ( - 75, + 26, + + COUNT ( * ) )
----
2625

query I rowsort
SELECT ALL + + 99 - 60 + - + 23 * + - 30 * 34 AS col2
----
23499

query I rowsort
SELECT DISTINCT + - 74 * - + 95 - 47 AS col1
----
6983

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3335
SELECT ALL - - NULLIF ( + 48, CAST( NULL AS SIGNED ) )
----
48

skipif mysql # not compatible
query I rowsort label-3335
SELECT ALL - - NULLIF ( + 48, CAST ( NULL AS INTEGER ) )
----
48

query I rowsort
SELECT 75 * - 62 AS col2
----
-4650

query I rowsort
SELECT - 15 - + - 2 + 52
----
39

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

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

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

skipif mysql # not compatible
query I rowsort label-3339
SELECT ( 71 ) * COUNT ( * )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3340
SELECT DISTINCT - COUNT( ALL + 65 ) * - + 75 * + 1 * + + 1 col0
----
75

skipif mysql # not compatible
query I rowsort label-3340
SELECT DISTINCT - COUNT ( ALL + 65 ) * - + 75 * + 1 * + + 1 col0
----
75

query I rowsort
SELECT ALL + 18 * 9 AS col2
----
162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3342
SELECT + CASE 24 WHEN + 10 THEN NULL WHEN + 9 * + + 39 THEN 59 * + 15 + CASE - COUNT( * ) WHEN - CAST( NULL AS SIGNED ) / - 77 THEN + - 5 + - 34 WHEN - - 34 THEN 30 - - MIN( ALL + 39 ) END WHEN + ( 49 ) * + 83 THEN NULL ELSE NULL END - + 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3342
SELECT + CASE 24 WHEN + 10 THEN NULL WHEN + 9 * + + 39 THEN 59 * + 15 + CASE - COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) / - 77 THEN + - 5 + - 34 WHEN - - 34 THEN 30 - - MIN ( ALL + 39 ) END WHEN + ( 49 ) * + 83 THEN NULL ELSE NULL END - + 14 AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3344
SELECT DISTINCT 43 * - 76 + + COALESCE ( + COUNT( * ), + 34 * + 3 DIV 75 + 65 + + + 46 * - 13 DIV + + 17 * 20 * - + CASE + CASE 95 WHEN - MIN( 92 ) * + ( 63 ) THEN NULL WHEN 27 + - 48 THEN - 73 * NULLIF ( ( + 47 ) * - CASE + 31 WHEN - 1 THEN 16 * - CASE 99 WHEN 23 * 20 THEN COUNT( * ) ELSE ( 40 ) END + 5 * + 92 WHEN - 81 * 71 + 57 THEN NULL END, + CAST( + NULLIF ( + 54, 0 ) AS SIGNED ) ) ELSE NULL END WHEN 89 THEN - 5 WHEN + 75 THEN NULL END + + 48 * 84 ) + 14
----
-3253

skipif mysql # not compatible
query I rowsort label-3344
SELECT DISTINCT 43 * - 76 + + COALESCE ( + COUNT ( * ), + 34 * + 3 / 75 + 65 + + + 46 * - 13 / + + 17 * 20 * - + CASE + CASE 95 WHEN - MIN ( 92 ) * + ( 63 ) THEN NULL WHEN 27 + - 48 THEN - 73 * NULLIF ( ( + 47 ) * - CASE + 31 WHEN - 1 THEN 16 * - CASE 99 WHEN 23 * 20 THEN COUNT ( * ) ELSE ( 40 ) END + 5 * + 92 WHEN - 81 * 71 + 57 THEN NULL END, + CAST ( + NULLIF ( + 54, 0 ) AS INTEGER ) ) ELSE NULL END WHEN 89 THEN - 5 WHEN + 75 THEN NULL END + + 48 * 84 ) + 14
----
-3253

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT DISTINCT 29 * - COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-3345
SELECT DISTINCT 29 * - COUNT ( * )
----
-29

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT ( - + COALESCE ( + + MAX( DISTINCT - 28 ), + 73 ) ) * - - 52
----
1456

skipif mysql # not compatible
query I rowsort label-3347
SELECT ( - + COALESCE ( + + MAX ( DISTINCT - 28 ), + 73 ) ) * - - 52
----
1456

query II rowsort
SELECT ALL - 25 AS col2, + 59
----
-25
59

query I rowsort
SELECT 99 - + 57
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3350
SELECT + 34 * + 93 + + CAST( NULL AS SIGNED ) AS col0, + 44 * + 30 + - NULLIF ( + - CAST( 29 AS SIGNED ), 77 ) AS col1
----
NULL
1349

skipif mysql # not compatible
query II rowsort label-3350
SELECT + 34 * + 93 + + CAST ( NULL AS INTEGER ) AS col0, + 44 * + 30 + - NULLIF ( + - CAST ( 29 AS INTEGER ), 77 ) AS col1
----
NULL
1349

query I rowsort
SELECT 9 - + 43 AS col2
----
-34

query I rowsort
SELECT 32 * + 88 + 13 * - - 27 * + - 33 * - 60
----
697796

onlyif mysql # aggregate syntax: 
query II rowsort label-3353
SELECT - COUNT( * ) AS col0, - 90 * + 73 * + COUNT( * ) + - 72 + 62 * - COUNT( * ) * - COUNT( * )
----
-1
-6580

skipif mysql # not compatible
query II rowsort label-3353
SELECT - COUNT ( * ) AS col0, - 90 * + 73 * + COUNT ( * ) + - 72 + 62 * - COUNT ( * ) * - COUNT ( * )
----
-1
-6580

onlyif mysql # aggregate syntax: 
query I rowsort label-3354
SELECT ALL + 96 * - NULLIF ( + - 84, + NULLIF ( - ( + 94 ), COUNT( 64 ) ) )
----
8064

skipif mysql # not compatible
query I rowsort label-3354
SELECT ALL + 96 * - NULLIF ( + - 84, + NULLIF ( - ( + 94 ), COUNT ( 64 ) ) )
----
8064

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3355
SELECT ALL 74 + + + ( 50 ) - + - CAST( 43 AS SIGNED ) AS col1, COALESCE ( + + 48, + CAST( NULL AS SIGNED ) * + 78 * + SUM( 17 ) - 56 - + MAX( ALL 36 ) + 23 + - 16 * - 69, + 59 + - 41 * 66 ) AS col2
----
167
48

skipif mysql # not compatible
query II rowsort label-3355
SELECT ALL 74 + + + ( 50 ) - + - CAST ( 43 AS INTEGER ) AS col1, COALESCE ( + + 48, + CAST ( NULL AS INTEGER ) * + 78 * + SUM ( 17 ) - 56 - + MAX ( ALL 36 ) + 23 + - 16 * - 69, + 59 + - 41 * 66 ) AS col2
----
167
48

onlyif mysql # aggregate syntax: 
query II rowsort label-3356
SELECT 89 * + NULLIF ( - + 67, - 35 + + - 4 - - ( - - 98 ) ) * 35 AS col0, 2 + + COUNT( * ) + + + 86 * MAX( + + ( + + 96 ) ) + + 65 + - 2
----
-208705
8322

skipif mysql # not compatible
query II rowsort label-3356
SELECT 89 * + NULLIF ( - + 67, - 35 + + - 4 - - ( - - 98 ) ) * 35 AS col0, 2 + + COUNT ( * ) + + + 86 * MAX ( + + ( + + 96 ) ) + + 65 + - 2
----
-208705
8322

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3358
SELECT 30 DIV - + 45
----
0

skipif mysql # not compatible
query I rowsort label-3358
SELECT 30 / - + 45
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3359
SELECT ALL CAST( - 13 AS SIGNED ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-3359
SELECT ALL CAST ( - 13 AS INTEGER ) AS col2
----
-13

query I rowsort
SELECT 21 + + 64 AS col1
----
85

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

skipif mysql # not compatible
query I rowsort label-3361
SELECT - COUNT ( * ) + - 53 * + COUNT ( * ) AS col0
----
-54

query I rowsort
SELECT ALL - + COALESCE ( 35, 94 ) * + 21 - + - ( + - 84 ) AS col0
----
-819

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

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

query I rowsort
SELECT DISTINCT + 4 - + 32
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3365
SELECT - CAST( + 62 AS SIGNED ) / CAST( NULL AS SIGNED ) * - - ( + CASE + CAST( NULL AS SIGNED ) WHEN - 10 + + - ( 79 ) + - 61 * + COUNT( * ) THEN + ( ( + AVG ( DISTINCT - + 6 ) ) ) END ) + - SUM( ALL 16 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3365
SELECT - CAST ( + 62 AS INTEGER ) / CAST ( NULL AS INTEGER ) * - - ( + CASE + CAST ( NULL AS INTEGER ) WHEN - 10 + + - ( 79 ) + - 61 * + COUNT ( * ) THEN + ( ( + AVG ( DISTINCT - + 6 ) ) ) END ) + - SUM ( ALL 16 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3366
SELECT DISTINCT + - 71 * - MAX( 62 ) + - 56 DIV + 2 * ( ( + COUNT( * ) ) )
----
4374

skipif mysql # not compatible
query I rowsort label-3366
SELECT DISTINCT + - 71 * - MAX ( 62 ) + - 56 / + 2 * ( ( + COUNT ( * ) ) )
----
4374

query I rowsort
SELECT + 12 + 67 + - - ( + 41 ) AS col0
----
120

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT NULLIF ( 17, - 13 ) * - MAX( ALL - 36 ) - 57 col2
----
555

skipif mysql # not compatible
query I rowsort label-3369
SELECT NULLIF ( 17, - 13 ) * - MAX ( ALL - 36 ) - 57 col2
----
555

onlyif mysql # DIV for integer division: 
query I rowsort label-3370
SELECT + + 46 DIV - 58 + + 95 + + 86 - + 52
----
129

skipif mysql # not compatible
query I rowsort label-3370
SELECT + + 46 / - 58 + + 95 + + 86 - + 52
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT ALL + - 96 * + - COUNT( * ) * 39 * + - 88
----
-329472

skipif mysql # not compatible
query I rowsort label-3371
SELECT ALL + - 96 * + - COUNT ( * ) * 39 * + - 88
----
-329472

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT 69 + - COUNT( * ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-3372
SELECT 69 + - COUNT ( * ) AS col1
----
68

query I rowsort
SELECT + COALESCE ( 79, + 70 * + 57 + - 0 + + 58 ) AS col1
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-3374
SELECT ALL - + 29 * 43 * - COUNT( * ) AS col0, - 74 AS col1
----
1247
-74

skipif mysql # not compatible
query II rowsort label-3374
SELECT ALL - + 29 * 43 * - COUNT ( * ) AS col0, - 74 AS col1
----
1247
-74

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

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

query I rowsort
SELECT + 76 + 63 + 98 - - - 85 AS col1
----
152

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

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

query I rowsort
SELECT - 70 * 41 AS col1
----
-2870

onlyif mysql # DIV for integer division: 
query I rowsort label-3379
SELECT ALL 82 DIV - 28 col2
----
-2

skipif mysql # not compatible
query I rowsort label-3379
SELECT ALL 82 / - 28 col2
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-3380
SELECT COUNT( * ) AS col1, 24 * + ( + ( + 48 ) )
----
1
1152

skipif mysql # not compatible
query II rowsort label-3380
SELECT COUNT ( * ) AS col1, 24 * + ( + ( + 48 ) )
----
1
1152

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT + 67 * - COUNT( * ) + ( 90 )
----
23

skipif mysql # not compatible
query I rowsort label-3381
SELECT + 67 * - COUNT ( * ) + ( 90 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT + CASE 95 WHEN + 66 THEN NULL ELSE + + ( - MAX( 13 ) ) * - + COUNT( * ) * + + 62 END col0
----
806

skipif mysql # not compatible
query I rowsort label-3382
SELECT + CASE 95 WHEN + 66 THEN NULL ELSE + + ( - MAX ( 13 ) ) * - + COUNT ( * ) * + + 62 END col0
----
806

onlyif mysql # aggregate syntax: 
query I rowsort label-3383
SELECT DISTINCT COUNT( * ) * + 46 + 38
----
84

skipif mysql # not compatible
query I rowsort label-3383
SELECT DISTINCT COUNT ( * ) * + 46 + 38
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3384
SELECT ALL 86 * - 97 + - COUNT( * )
----
-8343

skipif mysql # not compatible
query I rowsort label-3384
SELECT ALL 86 * - 97 + - COUNT ( * )
----
-8343

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3386
SELECT ALL + 73 + + 7 DIV - 18 * + - COUNT( * ) + - + 82
----
-9

skipif mysql # not compatible
query I rowsort label-3386
SELECT ALL + 73 + + 7 / - 18 * + - COUNT ( * ) + - + 82
----
-9

query II rowsort
SELECT DISTINCT 81 * 3 * - 4 * + 33 AS col2, 67 col1
----
-32076
67

query I rowsort
SELECT ALL 98 + - - ( + 81 ) + - ( 20 ) AS col2
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT - NULLIF ( 2, + 63 - + COUNT( * ) + - 52 * COUNT( * ) / 20 + - + COUNT( * ) + - + 68 * + + 94 )
----
-2

skipif mysql # not compatible
query I rowsort label-3389
SELECT - NULLIF ( 2, + 63 - + COUNT ( * ) + - 52 * COUNT ( * ) / 20 + - + COUNT ( * ) + - + 68 * + + 94 )
----
-2

query I rowsort
SELECT + 68 * - + 49 AS col0
----
-3332

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3391
SELECT 54 col2, + 27 * + COALESCE ( - COUNT( * ), + NULLIF ( - + ( - 48 ), + 41 ) ) DIV + 76 * + + 39 AS col1
----
54
0

skipif mysql # not compatible
query II rowsort label-3391
SELECT 54 col2, + 27 * + COALESCE ( - COUNT ( * ), + NULLIF ( - + ( - 48 ), + 41 ) ) / + 76 * + + 39 AS col1
----
54
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT + MAX( + 10 ) - 47
----
-37

skipif mysql # not compatible
query I rowsort label-3392
SELECT + MAX ( + 10 ) - 47
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-3393
SELECT + 80 + 34 DIV COALESCE ( + + 22, - 21 - - ( + 82 ) * 55 ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-3393
SELECT + 80 + 34 / COALESCE ( + + 22, - 21 - - ( + 82 ) * 55 ) AS col2
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3394
SELECT - 38 * CASE + ( + - ( + 38 ) ) WHEN + MAX( ALL + CAST( NULL AS SIGNED ) ) * 88 THEN - 59 * + 41 + - 72 WHEN - - COUNT( DISTINCT - 94 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3394
SELECT - 38 * CASE + ( + - ( + 38 ) ) WHEN + MAX ( ALL + CAST ( NULL AS INTEGER ) ) * 88 THEN - 59 * + 41 + - 72 WHEN - - COUNT ( DISTINCT - 94 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3395
SELECT - NULLIF ( - + 65, + + 20 + COUNT( * ) + + ( - 1 ) ) AS col2, 83 + - 51 AS col2
----
65
32

skipif mysql # not compatible
query II rowsort label-3395
SELECT - NULLIF ( - + 65, + + 20 + COUNT ( * ) + + ( - 1 ) ) AS col2, 83 + - 51 AS col2
----
65
32

query I rowsort
SELECT - 56 + + - 8 AS col0
----
-64

query I rowsort
SELECT ALL NULLIF ( - + 45, + - 61 ) - + + 82
----
-127

query I rowsort
SELECT + 8 - - + 84 + + 63 * - 80 AS col2
----
-4948

onlyif mysql # aggregate syntax: 
query II rowsort label-3399
SELECT ALL - + COUNT( * ) * - 83, + 8 - - 76 AS col1
----
83
84

skipif mysql # not compatible
query II rowsort label-3399
SELECT ALL - + COUNT ( * ) * - 83, + 8 - - 76 AS col1
----
83
84

query II rowsort
SELECT - + 82, 51 AS col0
----
-82
51

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

query II rowsort
SELECT DISTINCT 97 AS col0, 99 AS col1
----
97
99

query I rowsort
SELECT ALL - NULLIF ( 49, + 74 ) AS col2
----
-49

query II rowsort
SELECT DISTINCT 81, - 29 AS col1
----
81
-29

query I rowsort
SELECT + - 62 * - - 69
----
-4278

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3406
SELECT - 80 + + + 88 + - CAST( + ( + NULLIF ( - 62, COALESCE ( - 87, COUNT( * ) * + ( + 89 ) * COUNT( * ) * SUM( 98 ) + + COALESCE ( + 92, COUNT( DISTINCT 15 ) + COALESCE ( 52, - 61 * + 91 ), COALESCE ( 80, + 61 + 74 ) ) + 88 * + 43 ) * 5 + + 55 ) ) AS SIGNED ) * 74 AS col0
----
4596

skipif mysql # not compatible
query I rowsort label-3406
SELECT - 80 + + + 88 + - CAST ( + ( + NULLIF ( - 62, COALESCE ( - 87, COUNT ( * ) * + ( + 89 ) * COUNT ( * ) * SUM ( 98 ) + + COALESCE ( + 92, COUNT ( DISTINCT 15 ) + COALESCE ( 52, - 61 * + 91 ), COALESCE ( 80, + 61 + 74 ) ) + 88 * + 43 ) * 5 + + 55 ) ) AS INTEGER ) * 74 AS col0
----
4596

query II rowsort
SELECT DISTINCT + 12 AS col1, - 89 AS col2
----
12
-89

query II rowsort
SELECT DISTINCT + + 72 AS col1, + 98
----
72
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3409
SELECT DISTINCT + - CAST( NULL AS SIGNED ) AS col0, + 49
----
NULL
49

skipif mysql # not compatible
query II rowsort label-3409
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col0, + 49
----
NULL
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3410
SELECT - 60 * COALESCE ( COUNT( 26 ), - 42 ) + - ( - 21 )
----
-39

skipif mysql # not compatible
query I rowsort label-3410
SELECT - 60 * COALESCE ( COUNT ( 26 ), - 42 ) + - ( - 21 )
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query III rowsort label-3411
SELECT ALL + 41 / + - 46 + 99 + CAST( NULL AS DECIMAL ) / - 77 + + - ( 1 ) + - 28 * + COUNT( * ) / ( + COUNT( * ) ) AS col1, 63 * CAST( NULL AS SIGNED ) / + + 75 AS col1, - 13 + 10 + COUNT( ALL - 96 + + 9 * - 20 ) AS col1
----
NULL
NULL
-2

skipif mysql # not compatible
query III rowsort label-3411
SELECT ALL + 41 / + - 46 + 99 + CAST ( NULL AS REAL ) / - 77 + + - ( 1 ) + - 28 * + COUNT ( * ) / ( + COUNT ( * ) ) AS col1, 63 * CAST ( NULL AS INTEGER ) / + + 75 AS col1, - 13 + 10 + COUNT ( ALL - 96 + + 9 * - 20 ) AS col1
----
NULL
NULL
-2

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

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

query I rowsort
SELECT - + 35 + + + 33
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3414
SELECT + - CAST( - 41 AS SIGNED )
----
41

skipif mysql # not compatible
query I rowsort label-3414
SELECT + - CAST ( - 41 AS INTEGER )
----
41

query I rowsort
SELECT ALL - 41 * - + 45
----
1845

query I rowsort
SELECT - 52 * + - 37 * + + ( + + ( - 14 ) )
----
-26936

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3417
SELECT DISTINCT 82 * + COUNT( * ) * - COUNT( * ) + - 48 DIV - 86
----
-82

skipif mysql # not compatible
query I rowsort label-3417
SELECT DISTINCT 82 * + COUNT ( * ) * - COUNT ( * ) + - 48 / - 86
----
-82

query I rowsort
SELECT ALL ( + 21 ) * + - 50 * + - 59 + - + 90 AS col1
----
61860

query I rowsort
SELECT COALESCE ( + - 81, 80 ) AS col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT - CASE - COUNT( * ) WHEN 87 THEN - 51 ELSE - ( - - 52 ) END * - 55 - + 75 - - 79 * - 77
----
-9018

skipif mysql # not compatible
query I rowsort label-3420
SELECT - CASE - COUNT ( * ) WHEN 87 THEN - 51 ELSE - ( - - 52 ) END * - 55 - + 75 - - 79 * - 77
----
-9018

query I rowsort
SELECT COALESCE ( - 37, - 11 ) AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT - NULLIF ( - 92, COUNT( * ) + - + ( - 57 ) ) + + 24 col2
----
116

skipif mysql # not compatible
query I rowsort label-3422
SELECT - NULLIF ( - 92, COUNT ( * ) + - + ( - 57 ) ) + + 24 col2
----
116

query I rowsort
SELECT + 39 - 0 col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3424
SELECT - 50 * SUM( + 96 ) * + - 20 AS col1
----
96000

skipif mysql # not compatible
query I rowsort label-3424
SELECT - 50 * SUM ( + 96 ) * + - 20 AS col1
----
96000

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT + NULLIF ( 42, - - COUNT( DISTINCT - - 3 ) * - + 64 ) - 38 + - + 12
----
-8

skipif mysql # not compatible
query I rowsort label-3425
SELECT + NULLIF ( 42, - - COUNT ( DISTINCT - - 3 ) * - + 64 ) - 38 + - + 12
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT - NULLIF ( + 69, - SUM( 66 ) + - + 71 / - NULLIF ( + 38, 52 ) + + + ( + - 71 ) ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-3426
SELECT - NULLIF ( + 69, - SUM ( 66 ) + - + 71 / - NULLIF ( + 38, 52 ) + + + ( + - 71 ) ) AS col2
----
-69

query I rowsort
SELECT + 3 + 60 - + ( - 81 ) AS col1
----
144

query II rowsort
SELECT + 20 * + 48, 53 AS col1
----
960
53

onlyif mysql # aggregate syntax: 
query II rowsort label-3429
SELECT ALL + - 76 * + 76 - - + COUNT( * ) * + + 77 * + 36 AS col1, + 75 AS col0
----
-3004
75

skipif mysql # not compatible
query II rowsort label-3429
SELECT ALL + - 76 * + 76 - - + COUNT ( * ) * + + 77 * + 36 AS col1, + 75 AS col0
----
-3004
75

query I rowsort
SELECT DISTINCT 80 * + + 43
----
3440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3431
SELECT + + 51 DIV CAST( + COUNT( * ) AS SIGNED ) * + - COALESCE ( - + 46, 79 DIV + - 9 ) AS col2
----
2346

skipif mysql # not compatible
query I rowsort label-3431
SELECT + + 51 / CAST ( + COUNT ( * ) AS INTEGER ) * + - COALESCE ( - + 46, 79 / + - 9 ) AS col2
----
2346

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3433
SELECT - ( + 96 ) + 29 + + 58 + + 10 + - - 13 DIV - ( - + 8 )
----
2

skipif mysql # not compatible
query I rowsort label-3433
SELECT - ( + 96 ) + 29 + + 58 + + 10 + - - 13 / - ( - + 8 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT + 81 + 35 + - 30 + 38 * - COUNT( * ) - + - 42 + + 53 + - 53 * 45 AS col2
----
-2242

skipif mysql # not compatible
query I rowsort label-3434
SELECT + 81 + 35 + - 30 + 38 * - COUNT ( * ) - + - 42 + + 53 + - 53 * 45 AS col2
----
-2242

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT + - 74 + - COALESCE ( - 63, + + COUNT( * ) - + 21 ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-3435
SELECT + - 74 + - COALESCE ( - 63, + + COUNT ( * ) - + 21 ) AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT ALL + COUNT( * ) + + 68 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-3436
SELECT ALL + COUNT ( * ) + + 68 AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3437
SELECT + - COUNT( * ) + - 25 AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-3437
SELECT + - COUNT ( * ) + - 25 AS col2
----
-26

query II rowsort
SELECT ALL - 19 + + 82 AS col2, 40
----
63
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3439
SELECT ALL 5 DIV + COALESCE ( 56, + 3 * 26 + + + COUNT( ALL - - 91 ), - 61 )
----
0

skipif mysql # not compatible
query I rowsort label-3439
SELECT ALL 5 / + COALESCE ( 56, + 3 * 26 + + + COUNT ( ALL - - 91 ), - 61 )
----
0

query I rowsort
SELECT DISTINCT NULLIF ( - - 31, 94 ) + 8 AS col1
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3441
SELECT ALL - - COUNT( * ) + + 29 - + 21 DIV + 62 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-3441
SELECT ALL - - COUNT ( * ) + + 29 - + 21 / + 62 AS col2
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3442
SELECT DISTINCT 23 * 52 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3442
SELECT DISTINCT 23 * 52 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3443
SELECT ALL - 69 + + + MAX( - 26 ) - - 58 DIV + 96 AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-3443
SELECT ALL - 69 + + + MAX ( - 26 ) - - 58 / + 96 AS col0
----
-95

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3445
SELECT - 11 DIV + COALESCE ( + + 38, - 89 ) + 38 * 13 AS col1
----
494

skipif mysql # not compatible
query I rowsort label-3445
SELECT - 11 / + COALESCE ( + + 38, - 89 ) + 38 * 13 AS col1
----
494

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

skipif mysql # not compatible
query I rowsort label-3446
SELECT + + COUNT ( * ) / - 15 + CAST ( NULL AS REAL ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3447
SELECT ALL + 78 + + 72 col1, 49 + - 60 + + CASE + 13 WHEN - 5 + - + 54 * - 19 THEN COUNT( * ) END AS col2
----
150
NULL

skipif mysql # not compatible
query II rowsort label-3447
SELECT ALL + 78 + + 72 col1, 49 + - 60 + + CASE + 13 WHEN - 5 + - + 54 * - 19 THEN COUNT ( * ) END AS col2
----
150
NULL

query I rowsort
SELECT 9 + - 14
----
-5

query II rowsort
SELECT DISTINCT - 51 AS col2, 60 AS col2
----
-51
60

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3451
SELECT ALL - 63 AS col1, MIN( DISTINCT + 8 ) AS col0
----
-63
8

skipif mysql # not compatible
query II rowsort label-3451
SELECT ALL - 63 AS col1, MIN ( DISTINCT + 8 ) AS col0
----
-63
8

query I rowsort
SELECT ALL 99 - - 9
----
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3453
SELECT DISTINCT 57 DIV - + MIN( DISTINCT + - NULLIF ( - ( - ( - - 97 ) ), 58 * - - 79 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3453
SELECT DISTINCT 57 / - + MIN ( DISTINCT + - NULLIF ( - ( - ( - - 97 ) ), 58 * - - 79 ) ) AS col1
----
0

query I rowsort
SELECT 8 + - + 61
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3455
SELECT ALL + ( + - 22 ) - + COUNT( - 10 ) DIV 27 AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-3455
SELECT ALL + ( + - 22 ) - + COUNT ( - 10 ) / 27 AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3456
SELECT 15 * - 20 * - COUNT( DISTINCT + - 23 ) * - 91 * + - 39 + + - 69 AS col1
----
1064631

skipif mysql # not compatible
query I rowsort label-3456
SELECT 15 * - 20 * - COUNT ( DISTINCT + - 23 ) * - 91 * + - 39 + + - 69 AS col1
----
1064631

query I rowsort
SELECT 24 + + 5
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3458
SELECT DISTINCT - ( - 81 ) * + 73 * - CASE - CAST( NULL AS SIGNED ) WHEN + 1 THEN - COALESCE ( - 54, - 80 ) * - 45 WHEN - + 53 + 14 * + COUNT( + 40 ) + - 28 * CAST( MAX( ALL 37 ) AS DECIMAL ) THEN 89 ELSE NULL END * 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3458
SELECT DISTINCT - ( - 81 ) * + 73 * - CASE - CAST ( NULL AS INTEGER ) WHEN + 1 THEN - COALESCE ( - 54, - 80 ) * - 45 WHEN - + 53 + 14 * + COUNT ( + 40 ) + - 28 * CAST ( MAX ( ALL 37 ) AS REAL ) THEN 89 ELSE NULL END * 80 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3459
SELECT ALL + COUNT( * ) - 68
----
-67

skipif mysql # not compatible
query I rowsort label-3459
SELECT ALL + COUNT ( * ) - 68
----
-67

query I rowsort
SELECT 43 + + 76
----
119

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

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

query I rowsort
SELECT DISTINCT - 93 * + 93 * - ( + 85 ) * 37
----
27201105

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

query I rowsort
SELECT 30 + - 7 + 62 AS col2
----
85

query I rowsort
SELECT 40 * - + ( + 10 )
----
-400

query I rowsort
SELECT NULLIF ( + 63, + - 28 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3467
SELECT SUM( DISTINCT + 11 ) * + 90
----
990

skipif mysql # not compatible
query I rowsort label-3467
SELECT SUM ( DISTINCT + 11 ) * + 90
----
990

onlyif mysql # aggregate syntax: 
query I rowsort label-3468
SELECT + COUNT( * ) + 27 * + 22 * NULLIF ( 45, + COUNT( * ) * + - COUNT( * ) + 33 ) * + 48 * - 83
----
-106492319

skipif mysql # not compatible
query I rowsort label-3468
SELECT + COUNT ( * ) + 27 * + 22 * NULLIF ( 45, + COUNT ( * ) * + - COUNT ( * ) + 33 ) * + 48 * - 83
----
-106492319

onlyif mysql # DIV for integer division: 
query I rowsort label-3469
SELECT DISTINCT + 84 DIV - - COALESCE ( 4, - 3, 71 + - 14 )
----
21

skipif mysql # not compatible
query I rowsort label-3469
SELECT DISTINCT + 84 / - - COALESCE ( 4, - 3, 71 + - 14 )
----
21

query I rowsort
SELECT 88 + + + 24
----
112

onlyif mysql # aggregate syntax: 
query II rowsort label-3471
SELECT DISTINCT + 62, - MAX( - 79 ) AS col0
----
62
79

skipif mysql # not compatible
query II rowsort label-3471
SELECT DISTINCT + 62, - MAX ( - 79 ) AS col0
----
62
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT DISTINCT + COALESCE ( 80, + 86 * - + ( - COUNT( * ) ) ) + - - 51
----
131

skipif mysql # not compatible
query I rowsort label-3472
SELECT DISTINCT + COALESCE ( 80, + 86 * - + ( - COUNT ( * ) ) ) + - - 51
----
131

query I rowsort
SELECT DISTINCT + 1 + - 38
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3474
SELECT DISTINCT - COUNT( * ) * - ( 58 ) + + CASE CAST( NULL AS SIGNED ) WHEN + CAST( NULL AS SIGNED ) THEN - 79 - + CAST( NULL AS SIGNED ) ELSE + 17 END AS col2, 49 * + 97
----
75
4753

skipif mysql # not compatible
query II rowsort label-3474
SELECT DISTINCT - COUNT ( * ) * - ( 58 ) + + CASE CAST ( NULL AS INTEGER ) WHEN + CAST ( NULL AS INTEGER ) THEN - 79 - + CAST ( NULL AS INTEGER ) ELSE + 17 END AS col2, 49 * + 97
----
75
4753

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

skipif mysql # not compatible
query I rowsort label-3475
SELECT ALL 12 * - - 29 * + COUNT ( * ) * - - ( - 0 ) AS col2
----
0

query I rowsort
SELECT DISTINCT - 40 + + 84 + + 98 + 58 * - 5
----
-148

onlyif mysql # aggregate syntax: 
query II rowsort label-3477
SELECT DISTINCT - 34, 87 * + COALESCE ( + 15, 92 ) + - + 14 + COUNT( * ) AS col0
----
-34
1292

skipif mysql # not compatible
query II rowsort label-3477
SELECT DISTINCT - 34, 87 * + COALESCE ( + 15, 92 ) + - + 14 + COUNT ( * ) AS col0
----
-34
1292

query I rowsort
SELECT ALL + 7 + + - 89
----
-82

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

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

query I rowsort
SELECT + 17 * - 54
----
-918

onlyif mysql # aggregate syntax: 
query I rowsort label-3481
SELECT SUM( DISTINCT - 19 ) col1
----
-19

skipif mysql # not compatible
query I rowsort label-3481
SELECT SUM ( DISTINCT - 19 ) col1
----
-19

query I rowsort
SELECT DISTINCT 16 * - + 55
----
-880

query I rowsort
SELECT 79 + 85 AS col0
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-3484
SELECT ( + - 43 ) * - ( - COUNT( * ) ) + + + ( 74 )
----
31

skipif mysql # not compatible
query I rowsort label-3484
SELECT ( + - 43 ) * - ( - COUNT ( * ) ) + + + ( 74 )
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-3485
SELECT ALL SUM( + - 53 ) * 23 * MAX( + - 62 ) AS col1, 12 AS col1
----
75578
12

skipif mysql # not compatible
query II rowsort label-3485
SELECT ALL SUM ( + - 53 ) * 23 * MAX ( + - 62 ) AS col1, 12 AS col1
----
75578
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3486
SELECT CASE CAST( NULL AS SIGNED ) WHEN + 60 + - 92 THEN NULL WHEN - + CASE SUM( DISTINCT - 28 ) WHEN 36 * - - 65 + 69 * - CAST( NULL AS SIGNED ) + - 27 THEN + - 78 WHEN + 30 + - 93 - + 18 + - 75 * COUNT( * ) + - - 70 + 61 * 47 THEN 70 * 39 ELSE - AVG ( DISTINCT ( + 96 ) ) END THEN - MIN( DISTINCT + 4 ) / COUNT( DISTINCT 17 ) - + COUNT( * ) END + - 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3486
SELECT CASE CAST ( NULL AS INTEGER ) WHEN + 60 + - 92 THEN NULL WHEN - + CASE SUM ( DISTINCT - 28 ) WHEN 36 * - - 65 + 69 * - CAST ( NULL AS INTEGER ) + - 27 THEN + - 78 WHEN + 30 + - 93 - + 18 + - 75 * COUNT ( * ) + - - 70 + 61 * 47 THEN 70 * 39 ELSE - AVG ( DISTINCT ( + 96 ) ) END THEN - MIN ( DISTINCT + 4 ) / COUNT ( DISTINCT 17 ) - + COUNT ( * ) END + - 54 AS col2
----
NULL

query I rowsort
SELECT ALL 45 - 78 + 52
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT ( + 30 ) * - COUNT( * ) + + - 65 AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-3488
SELECT ( + 30 ) * - COUNT ( * ) + + - 65 AS col2
----
-95

query I rowsort
SELECT - 79 * + 24 - 26 AS col2
----
-1922

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT COUNT( * ) - - 11 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-3490
SELECT COUNT ( * ) - - 11 AS col0
----
12

query I rowsort
SELECT 33 + + 62 * 33 AS col2
----
2079

query I rowsort
SELECT ALL + 7 * 41 AS col1
----
287

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

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

query I rowsort
SELECT 23 + 35 * 65 AS col0
----
2298

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3495
SELECT 35 * - + 22 - + CAST( NULL AS SIGNED ) AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3496
SELECT ALL - 29 * + 47 - - COUNT( * ) AS col0
----
-1362

skipif mysql # not compatible
query I rowsort label-3496
SELECT ALL - 29 * + 47 - - COUNT ( * ) AS col0
----
-1362

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3498
SELECT - 24 - 26 + - COUNT( * ) + 85 * + 44 AS col0
----
3689

skipif mysql # not compatible
query I rowsort label-3498
SELECT - 24 - 26 + - COUNT ( * ) + 85 * + 44 AS col0
----
3689

onlyif mysql # aggregate syntax: 
query I rowsort label-3499
SELECT ALL + + CASE CASE 78 WHEN - 16 THEN + 9 + + - 52 ELSE 20 * 40 END WHEN + 19 / AVG ( DISTINCT 88 ) * + COUNT( * ) + + 73 THEN + 42 + + 44 + + + 3 * 0 + 30 END * - 64 / - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-3499
SELECT ALL + + CASE CASE 78 WHEN - 16 THEN + 9 + + - 52 ELSE 20 * 40 END WHEN + 19 / AVG ( DISTINCT 88 ) * + COUNT ( * ) + + 73 THEN + 42 + + 44 + + + 3 * 0 + 30 END * - 64 / - 33
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3500
SELECT DISTINCT COUNT( * ) + - 14, + 33 AS col0
----
-13
33

skipif mysql # not compatible
query II rowsort label-3500
SELECT DISTINCT COUNT ( * ) + - 14, + 33 AS col0
----
-13
33

query I rowsort
SELECT ALL - - 50 + 58 * - 68 AS col2
----
-3894

query I rowsort
SELECT ALL + + 87 + - + 46 - 41 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT ALL + SUM( - 74 ) * 22 AS col0
----
-1628

skipif mysql # not compatible
query I rowsort label-3503
SELECT ALL + SUM ( - 74 ) * 22 AS col0
----
-1628

onlyif mysql # aggregate syntax: 
query I rowsort label-3504
SELECT - 99 * + + MAX( - 80 ) * - 58 + + + 67 - + 76
----
-459369

skipif mysql # not compatible
query I rowsort label-3504
SELECT - 99 * + + MAX ( - 80 ) * - 58 + + + 67 - + 76
----
-459369

query I rowsort
SELECT - - 25 + - 1 * + 88
----
-63

query I rowsort
SELECT DISTINCT + - COALESCE ( - + 52, + 13 ) * - 19 AS col1
----
-988

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

skipif mysql # not compatible
query I rowsort label-3507
SELECT ALL - - 58 + + 78 + + COUNT ( * ) AS col2
----
137

onlyif mysql # aggregate syntax: 
query II rowsort label-3508
SELECT - - MIN( ALL + - 79 ) + - MAX( DISTINCT + 14 ) AS col1, 70 * 80 + - - 72 + + 36 + - 76
----
-93
5632

skipif mysql # not compatible
query II rowsort label-3508
SELECT - - MIN ( ALL + - 79 ) + - MAX ( DISTINCT + 14 ) AS col1, 70 * 80 + - - 72 + + 36 + - 76
----
-93
5632

onlyif mysql # aggregate syntax: 
query I rowsort label-3509
SELECT - 56 * 70 + + 56 * - 89 + + COUNT( * )
----
-8903

skipif mysql # not compatible
query I rowsort label-3509
SELECT - 56 * 70 + + 56 * - 89 + + COUNT ( * )
----
-8903

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3510
SELECT - + 22 + - 98 + + + 83 * + CAST( NULL AS SIGNED ) * + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-3510
SELECT - + 22 + - 98 + + + 83 * + CAST ( NULL AS INTEGER ) * + 92
----
NULL

query I rowsort
SELECT DISTINCT + - 45 + 35
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT - - COALESCE ( - + 63, - 24 ) + 42 + + + CASE + + 77 WHEN 54 THEN NULL WHEN + COUNT( * ) THEN - - 23 WHEN - 8 + + - 1 THEN 34 ELSE NULL END / + 30 * + 17 * - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-3512
SELECT - - COALESCE ( - + 63, - 24 ) + 42 + + + CASE + + 77 WHEN 54 THEN NULL WHEN + COUNT ( * ) THEN - - 23 WHEN - 8 + + - 1 THEN 34 ELSE NULL END / + 30 * + 17 * - 40
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3513
SELECT ALL + 78 DIV - + 10 AS col1, - 56 AS col2
----
-7
-56

skipif mysql # not compatible
query II rowsort label-3513
SELECT ALL + 78 / - + 10 AS col1, - 56 AS col2
----
-7
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT ALL + + 70 * - CASE + 69 WHEN 91 THEN NULL ELSE + - COUNT( * ) END
----
70

skipif mysql # not compatible
query I rowsort label-3514
SELECT ALL + + 70 * - CASE + 69 WHEN 91 THEN NULL ELSE + - COUNT ( * ) END
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3515
SELECT - COUNT( * ) + - 11 * - 88 / - - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3515
SELECT - COUNT ( * ) + - 11 * - 88 / - - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3516
SELECT ALL + 76 - + 83 + + ( - MAX( - 64 ) ) + + 22 + + COALESCE ( - - COUNT( * ), + 54, + - ( + 20 ) - - 62 + + 1, + 89 * 86 ) * ( - 35 ) * - 87 AS col1
----
3124

skipif mysql # not compatible
query I rowsort label-3516
SELECT ALL + 76 - + 83 + + ( - MAX ( - 64 ) ) + + 22 + + COALESCE ( - - COUNT ( * ), + 54, + - ( + 20 ) - - 62 + + 1, + 89 * 86 ) * ( - 35 ) * - 87 AS col1
----
3124

query II rowsort
SELECT ALL - - 3 * - 68 + + 31 * + 2 col2, - 43 AS col2
----
-142
-43

query I rowsort
SELECT DISTINCT CASE - - 2 WHEN + - 78 THEN NULL ELSE + + 51 END AS col0
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-3519
SELECT DISTINCT - 64 * - - 79 * NULLIF ( 89, + 88 ) AS col1, 14 - 48 * - COUNT( * ) - - 58 AS col1
----
-449984
120

skipif mysql # not compatible
query II rowsort label-3519
SELECT DISTINCT - 64 * - - 79 * NULLIF ( 89, + 88 ) AS col1, 14 - 48 * - COUNT ( * ) - - 58 AS col1
----
-449984
120

query I rowsort
SELECT + 87 + - - 31
----
118

query I rowsort
SELECT + 46 * - 32 AS col0
----
-1472

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3522
SELECT - 57 + CASE + + COUNT( * ) WHEN - - 83 + + - COUNT( * ) * + 68 THEN - + 97 WHEN - 54 * + 7 * CAST( NULL AS SIGNED ) + + + 70 THEN NULL ELSE NULL END AS col1, 6 AS col2
----
NULL
6

skipif mysql # not compatible
query II rowsort label-3522
SELECT - 57 + CASE + + COUNT ( * ) WHEN - - 83 + + - COUNT ( * ) * + 68 THEN - + 97 WHEN - 54 * + 7 * CAST ( NULL AS INTEGER ) + + + 70 THEN NULL ELSE NULL END AS col1, 6 AS col2
----
NULL
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT 74 * - 6 * + + COUNT( DISTINCT - - 55 ) + - CASE - 14 WHEN + 82 THEN + ( + SUM( - 88 ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3523
SELECT 74 * - 6 * + + COUNT ( DISTINCT - - 55 ) + - CASE - 14 WHEN + 82 THEN + ( + SUM ( - 88 ) ) ELSE NULL END
----
NULL

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

query I rowsort
SELECT + 16 + + - COALESCE ( 84, - + 63, - - 31 ) * 37 AS col0
----
-3092

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3526
SELECT 74 * + COUNT( * ) + + CAST( + - 72 AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-3526
SELECT 74 * + COUNT ( * ) + + CAST ( + - 72 AS INTEGER )
----
2

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

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

query I rowsort
SELECT - 13 * + + 51 + - 11 AS col0
----
-674

query I rowsort
SELECT + NULLIF ( - - 91, + 68 * 27 )
----
91

query I rowsort
SELECT ALL + 4 * 85 + + ( + + 87 )
----
427

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3531
SELECT CASE - + CAST( 85 AS SIGNED ) WHEN + COUNT( * ) + CASE COALESCE ( + 55, + + ( + 24 ) ) WHEN - 88 - + - 77 THEN - + COUNT( * ) + + 43 * + 18 END THEN - 74 ELSE NULL END, 31 - 95 + ( - 43 ) * - + ( 94 ) - 4 AS col1
----
NULL
3974

skipif mysql # not compatible
query II rowsort label-3531
SELECT CASE - + CAST ( 85 AS INTEGER ) WHEN + COUNT ( * ) + CASE COALESCE ( + 55, + + ( + 24 ) ) WHEN - 88 - + - 77 THEN - + COUNT ( * ) + + 43 * + 18 END THEN - 74 ELSE NULL END, 31 - 95 + ( - 43 ) * - + ( 94 ) - 4 AS col1
----
NULL
3974

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3532
SELECT ALL + 94 col2, + MIN( DISTINCT - - 69 ) * 72 - + COALESCE ( - ( 62 ), MAX( ALL - 79 ), - + 2 * - 47 DIV - + 29 ) * - - 86 AS col1
----
94
10300

skipif mysql # not compatible
query II rowsort label-3532
SELECT ALL + 94 col2, + MIN ( DISTINCT - - 69 ) * 72 - + COALESCE ( - ( 62 ), MAX ( ALL - 79 ), - + 2 * - 47 / - + 29 ) * - - 86 AS col1
----
94
10300

query I rowsort
SELECT 48 * - 33 + 2 AS col1
----
-1582

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

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

query I rowsort
SELECT + 83 + + 30
----
113

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT + COUNT( * ) - + - 84 - - + 41 - - - 61 + + 92 - - 23 + COUNT( * ) + 53 * + 94 + ( + - 99 ) - + 4 * + ( - 2 ) AS col2
----
5072

skipif mysql # not compatible
query I rowsort label-3537
SELECT + COUNT ( * ) - + - 84 - - + 41 - - - 61 + + 92 - - 23 + COUNT ( * ) + 53 * + 94 + ( + - 99 ) - + 4 * + ( - 2 ) AS col2
----
5072

query I rowsort
SELECT - + 62 * 60 AS col0
----
-3720

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

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

query I rowsort
SELECT - COALESCE ( + 2, 99 ) + 80
----
78

query I rowsort
SELECT DISTINCT + 49 * - 74 AS col2
----
-3626

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT DISTINCT MIN( DISTINCT + 96 ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-3542
SELECT DISTINCT MIN ( DISTINCT + 96 ) AS col0
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3543
SELECT - 4 - ( - - CAST( NULL AS SIGNED ) ) * + + ( MAX( + 94 ) ) / + - 24 + + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-3543
SELECT - 4 - ( - - CAST ( NULL AS INTEGER ) ) * + + ( MAX ( + 94 ) ) / + - 24 + + 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT DISTINCT - 88 * + 73 - + 96 + + 93 + - + 21 * 60 * + CASE - + 51 WHEN + + COUNT( * ) THEN + 52 * - 51 END * + + 90 * + + 24 + - NULLIF ( - 99, + + COALESCE ( + 72, + 54, - 14 ) ) + 69 * + 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3544
SELECT DISTINCT - 88 * + 73 - + 96 + + 93 + - + 21 * 60 * + CASE - + 51 WHEN + + COUNT ( * ) THEN + 52 * - 51 END * + + 90 * + + 24 + - NULLIF ( - 99, + + COALESCE ( + 72, + 54, - 14 ) ) + 69 * + 95 AS col0
----
NULL

query I rowsort
SELECT - + 61 * - ( - 5 )
----
-305

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3546
SELECT ALL NULLIF ( + COALESCE ( - 8, - NULLIF ( ( COUNT( * ) ), - + CAST( NULL AS SIGNED ) + + - 18 ) ), + 28 + + 76 )
----
-8

skipif mysql # not compatible
query I rowsort label-3546
SELECT ALL NULLIF ( + COALESCE ( - 8, - NULLIF ( ( COUNT ( * ) ), - + CAST ( NULL AS INTEGER ) + + - 18 ) ), + 28 + + 76 )
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-3547
SELECT 95, 70 * - MIN( ALL - 92 ) AS col1
----
95
6440

skipif mysql # not compatible
query II rowsort label-3547
SELECT 95, 70 * - MIN ( ALL - 92 ) AS col1
----
95
6440

onlyif mysql # DIV for integer division: 
query II rowsort label-3548
SELECT - 87 DIV 94, 69 AS col2
----
0
69

skipif mysql # not compatible
query II rowsort label-3548
SELECT - 87 / 94, 69 AS col2
----
0
69

onlyif mysql # DIV for integer division: 
query II rowsort label-3549
SELECT 3 col2, 82 + 42 DIV + - 75 + + 54 AS col2
----
3
136

skipif mysql # not compatible
query II rowsort label-3549
SELECT 3 col2, 82 + 42 / + - 75 + + 54 AS col2
----
3
136

query II rowsort
SELECT 38 AS col1, 70
----
38
70

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

query II rowsort
SELECT 19 AS col1, - 27
----
19
-27

query I rowsort
SELECT DISTINCT - ( - + 89 ) * 53
----
4717

onlyif mysql # DIV for integer division: 
query I rowsort label-3554
SELECT - 86 DIV - + 2 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-3554
SELECT - 86 / - + 2 AS col0
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3555
SELECT - 4 * - + CASE + SUM( ALL + 94 ) WHEN - - COUNT( * ) THEN - COUNT( * ) WHEN - + COUNT( * ) THEN NULL ELSE NULL END AS col0, 57 DIV + 3 AS col0
----
NULL
19

skipif mysql # not compatible
query II rowsort label-3555
SELECT - 4 * - + CASE + SUM ( ALL + 94 ) WHEN - - COUNT ( * ) THEN - COUNT ( * ) WHEN - + COUNT ( * ) THEN NULL ELSE NULL END AS col0, 57 / + 3 AS col0
----
NULL
19

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

skipif mysql # not compatible
query I rowsort label-3556
SELECT ALL COUNT ( * ) * COUNT ( DISTINCT - 92 )
----
1

query I rowsort
SELECT ALL + NULLIF ( - 82, 72 ) / + NULLIF ( + CASE - 31 WHEN - 52 THEN + - 51 WHEN + - 5 * + 78 * - 38 THEN NULL ELSE NULL END, + - 28 - 40 ) + + 36 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3558
SELECT - 56 / + + CASE + 95 WHEN + 35 * + 3 + + COALESCE ( - ( + + 46 ), + 55, + + 11, + - COUNT( * ) ) THEN + NULLIF ( 99, 15 * CAST( NULL AS SIGNED ) - + 66 - - 41 * COUNT( DISTINCT 32 ) + 60 * + 58 ) * + COUNT( * ) WHEN 57 + MIN( DISTINCT - 7 - - 40 ) / + 32 THEN NULL ELSE NULL END * - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-3558
SELECT - 56 / + + CASE + 95 WHEN + 35 * + 3 + + COALESCE ( - ( + + 46 ), + 55, + + 11, + - COUNT ( * ) ) THEN + NULLIF ( 99, 15 * CAST ( NULL AS INTEGER ) - + 66 - - 41 * COUNT ( DISTINCT 32 ) + 60 * + 58 ) * + COUNT ( * ) WHEN 57 + MIN ( DISTINCT - 7 - - 40 ) / + 32 THEN NULL ELSE NULL END * - 74
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3559
SELECT ALL + 60 / - CAST( NULL AS SIGNED ) + + - 98 * 77
----
NULL

skipif mysql # not compatible
query I rowsort label-3559
SELECT ALL + 60 / - CAST ( NULL AS INTEGER ) + + - 98 * 77
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3560
SELECT - 68 + + - 24 + - 27 DIV + 70 * - COUNT( * ) * + 55 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-3560
SELECT - 68 + + - 24 + - 27 / + 70 * - COUNT ( * ) * + 55 AS col2
----
-92

query I rowsort
SELECT + NULLIF ( + + 4, + - 93 * 63 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT ALL + COUNT( + 82 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3562
SELECT ALL + COUNT ( + 82 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3563
SELECT - 83 * 60 DIV + 67 + + - ( - - 23 ) * + 32 AS col0
----
-810

skipif mysql # not compatible
query I rowsort label-3563
SELECT - 83 * 60 / + 67 + + - ( - - 23 ) * + 32 AS col0
----
-810

query II rowsort
SELECT ALL + 97, - ( - - 39 ) AS col0
----
97
-39

query I rowsort
SELECT 53 * + + 93 + + - 31
----
4898

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3566
SELECT DISTINCT MAX( 93 ) DIV + 95 + + + 62 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-3566
SELECT DISTINCT MAX ( 93 ) / + 95 + + + 62 AS col1
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3567
SELECT ALL 20 DIV 31 * + + COUNT( DISTINCT - 91 ) + - 25 * - 1, 86 * COUNT( * ) col0
----
25
86

skipif mysql # not compatible
query II rowsort label-3567
SELECT ALL 20 / 31 * + + COUNT ( DISTINCT - 91 ) + - 25 * - 1, 86 * COUNT ( * ) col0
----
25
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT 43 + 10 * + + COUNT( * ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-3568
SELECT 43 + 10 * + + COUNT ( * ) AS col2
----
53

query I rowsort
SELECT DISTINCT + - 66 + + + 77 AS col0
----
11

query I rowsort
SELECT 22 + 72 AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT + + COUNT( DISTINCT - 13 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3571
SELECT + + COUNT ( DISTINCT - 13 ) AS col0
----
1

query II rowsort
SELECT ALL - 9 col0, - 91 + 52
----
-9
-39

query I rowsort
SELECT ALL 78 * 19 col1
----
1482

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3574
SELECT DISTINCT COUNT( ALL - 1 ) * - 64 + + 11 + - COUNT( * ) DIV - 35
----
-53

skipif mysql # not compatible
query I rowsort label-3574
SELECT DISTINCT COUNT ( ALL - 1 ) * - 64 + + 11 + - COUNT ( * ) / - 35
----
-53

query II rowsort
SELECT 38 AS col0, 59
----
38
59

query II rowsort
SELECT DISTINCT - 50, - 1 AS col0
----
-50
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT - 88 + + 13 + - - COUNT( * ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-3577
SELECT - 88 + + 13 + - - COUNT ( * ) AS col1
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-3578
SELECT ALL + NULLIF ( - 35, 43 + - - 3 ), MIN( - 57 ) AS col2
----
-35
-57

skipif mysql # not compatible
query II rowsort label-3578
SELECT ALL + NULLIF ( - 35, 43 + - - 3 ), MIN ( - 57 ) AS col2
----
-35
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3579
SELECT + SUM( DISTINCT + 82 )
----
82

skipif mysql # not compatible
query I rowsort label-3579
SELECT + SUM ( DISTINCT + 82 )
----
82

query II rowsort
SELECT ALL + 27 AS col2, 43 * - - 23 * - ( - - 49 ) * - 93 AS col1
----
27
4506873

query I rowsort
SELECT 89 + 24
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-3582
SELECT ALL COUNT( * ) * COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3582
SELECT ALL COUNT ( * ) * COUNT ( * ) col2
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-3583
SELECT 34 * 69, + 17 DIV - 56 AS col1
----
2346
0

skipif mysql # not compatible
query II rowsort label-3583
SELECT 34 * 69, + 17 / - 56 AS col1
----
2346
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3584
SELECT ALL + COUNT( * ) * 63 col2
----
63

skipif mysql # not compatible
query I rowsort label-3584
SELECT ALL + COUNT ( * ) * 63 col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT ALL - 47 + NULLIF ( COUNT( * ), 54 ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-3585
SELECT ALL - 47 + NULLIF ( COUNT ( * ), 54 ) AS col0
----
-46

query I rowsort
SELECT DISTINCT 51 + - - 48 AS col2
----
99

query II rowsort
SELECT 43 + - 53 AS col2, 13 AS col2
----
-10
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3588
SELECT DISTINCT - 30 + - COUNT( * ) + + 60
----
29

skipif mysql # not compatible
query I rowsort label-3588
SELECT DISTINCT - 30 + - COUNT ( * ) + + 60
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-3589
SELECT COUNT( * ) * - 81 AS col0, 76
----
-81
76

skipif mysql # not compatible
query II rowsort label-3589
SELECT COUNT ( * ) * - 81 AS col0, 76
----
-81
76

query I rowsort
SELECT 59 + + 85 - 32 AS col0
----
112

query I rowsort
SELECT ALL - ( - COALESCE ( + - 41, - - 32 ) )
----
-41

query I rowsort
SELECT DISTINCT - 3 + - 29 AS col2
----
-32

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3593
SELECT ALL - 85 + NULLIF ( - CAST( NULL AS DECIMAL ), - 5 ) + - 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3593
SELECT ALL - 85 + NULLIF ( - CAST ( NULL AS REAL ), - 5 ) + - 73 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3594
SELECT 49 * COUNT( * ) col1
----
49

skipif mysql # not compatible
query I rowsort label-3594
SELECT 49 * COUNT ( * ) col1
----
49

query I rowsort
SELECT ALL + 76 * - 19 col1
----
-1444

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3596
SELECT ALL + 18 * + 76, - 75 + ( + 73 ) * CAST( NULL AS SIGNED ) AS col1
----
1368
NULL

skipif mysql # not compatible
query II rowsort label-3596
SELECT ALL + 18 * + 76, - 75 + ( + 73 ) * CAST ( NULL AS INTEGER ) AS col1
----
1368
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT 88 * + NULLIF ( ( - CASE + COUNT( * ) WHEN + 81 THEN NULL ELSE - + ( - 82 ) END ), - COUNT( * ) ) AS col0
----
-7216

skipif mysql # not compatible
query I rowsort label-3597
SELECT 88 * + NULLIF ( ( - CASE + COUNT ( * ) WHEN + 81 THEN NULL ELSE - + ( - 82 ) END ), - COUNT ( * ) ) AS col0
----
-7216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3598
SELECT - CASE - 73 WHEN + - 97 * 62 + + + 2 + + + 84 THEN - 76 WHEN - CAST( NULL AS SIGNED ) THEN CASE 78 WHEN - - 12 * - 57 THEN + 44 END + - 0 - 62 ELSE - CASE - 86 WHEN - CAST( NULL AS SIGNED ) * COUNT( * ) * 6 + + COUNT( * ) + - 61 * - CAST( + 74 + COUNT( * ) AS SIGNED ) THEN + CAST( NULL AS SIGNED ) - 42 END * CAST( 5 AS DECIMAL ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3598
SELECT - CASE - 73 WHEN + - 97 * 62 + + + 2 + + + 84 THEN - 76 WHEN - CAST ( NULL AS INTEGER ) THEN CASE 78 WHEN - - 12 * - 57 THEN + 44 END + - 0 - 62 ELSE - CASE - 86 WHEN - CAST ( NULL AS INTEGER ) * COUNT ( * ) * 6 + + COUNT ( * ) + - 61 * - CAST ( + 74 + COUNT ( * ) AS INTEGER ) THEN + CAST ( NULL AS INTEGER ) - 42 END * CAST ( 5 AS REAL ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3599
SELECT ALL - COUNT( * ) * + 2 col1, 70 DIV + 27 AS col1
----
-2
2

skipif mysql # not compatible
query II rowsort label-3599
SELECT ALL - COUNT ( * ) * + 2 col1, 70 / + 27 AS col1
----
-2
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3600
SELECT 10 * MAX( + 75 ) + - ( + + 57 ) AS col0, CAST( + 12 AS SIGNED ) AS col1
----
693
12

skipif mysql # not compatible
query II rowsort label-3600
SELECT 10 * MAX ( + 75 ) + - ( + + 57 ) AS col0, CAST ( + 12 AS INTEGER ) AS col1
----
693
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3601
SELECT + + COUNT( * ) * - 16 + COUNT( * ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-3601
SELECT + + COUNT ( * ) * - 16 + COUNT ( * ) AS col0
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3602
SELECT + CASE + CAST( 66 AS DECIMAL ) WHEN - COALESCE ( + CAST( + COUNT( * ) AS DECIMAL ), + COALESCE ( - 91, 21 / - - 67 + + + 93 + 4, - - 91, 84 ), + 51 + - 58 + - 85 * - ( - CAST( NULL AS SIGNED ) ) ) THEN + - 81 + - 34 * + - 42 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3602
SELECT + CASE + CAST ( 66 AS REAL ) WHEN - COALESCE ( + CAST ( + COUNT ( * ) AS REAL ), + COALESCE ( - 91, 21 / - - 67 + + + 93 + 4, - - 91, 84 ), + 51 + - 58 + - 85 * - ( - CAST ( NULL AS INTEGER ) ) ) THEN + - 81 + - 34 * + - 42 END AS col2
----
NULL

query I rowsort
SELECT + 45 * + 23 AS col1
----
1035

query I rowsort
SELECT ALL - 55 * - + 86 AS col0
----
4730

query I rowsort
SELECT - CASE + 23 WHEN + 53 * - 34 + + - 72 + + - 76 THEN NULL WHEN 28 THEN NULL WHEN - + 23 * - + 66 THEN - 11 * 89 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3606
SELECT + 68 + - CAST( NULL AS SIGNED ) + - CAST( - - 54 AS SIGNED ) * - COUNT( ALL + 27 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3606
SELECT + 68 + - CAST ( NULL AS INTEGER ) + - CAST ( - - 54 AS INTEGER ) * - COUNT ( ALL + 27 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3607
SELECT - CAST( + + 47 AS SIGNED ) * - 40 * MAX( + 41 ) + - 26 * - 21 * + SUM( ALL - 50 ) / + 79 + CASE WHEN ( - + ( + - 79 ) ) = NULL THEN - CAST( NULL AS DECIMAL ) + - 74 END + + + 93 + - - 92 + 77 + + 38 * 22 * COUNT( * ) + + 28 * - CASE MAX( ALL ( + 15 ) ) WHEN 2 THEN NULL ELSE - 29 + - 1 * 86 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3607
SELECT - CAST ( + + 47 AS INTEGER ) * - 40 * MAX ( + 41 ) + - 26 * - 21 * + SUM ( ALL - 50 ) / + 79 + CASE WHEN ( - + ( + - 79 ) ) = NULL THEN - CAST ( NULL AS REAL ) + - 74 END + + + 93 + - - 92 + 77 + + 38 * 22 * COUNT ( * ) + + 28 * - CASE MAX ( ALL ( + 15 ) ) WHEN 2 THEN NULL ELSE - 29 + - 1 * 86 END
----
NULL

query II rowsort
SELECT ALL - ( - + 34 ), 19 AS col2
----
34
19

query I rowsort
SELECT 85 - + 76 + + - 67 + - 99
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-3610
SELECT COUNT( * ) * 44 * + 59 AS col0
----
2596

skipif mysql # not compatible
query I rowsort label-3610
SELECT COUNT ( * ) * 44 * + 59 AS col0
----
2596

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3611
SELECT + NULLIF ( 66, - + COUNT( * ) * 85 * - 92 ) + CASE - - COUNT( * ) WHEN - 88 * - + 96 THEN - + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3611
SELECT + NULLIF ( 66, - + COUNT ( * ) * 85 * - 92 ) + CASE - - COUNT ( * ) WHEN - 88 * - + 96 THEN - + CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT DISTINCT 96 * 4 * - 80 * - 11
----
337920

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3613
SELECT COUNT( * ) DIV + 54
----
0

skipif mysql # not compatible
query I rowsort label-3613
SELECT COUNT ( * ) / + 54
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT COUNT( * ) * + ( + 90 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-3614
SELECT COUNT ( * ) * + ( + 90 ) AS col1
----
90

query II rowsort
SELECT ALL 15 col2, 30 * - + 82 * + 77
----
15
-189420

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT ALL 99 + + 59 - + 91 + - - CASE + 44 WHEN + - ( + 90 ) / - CASE - 19 WHEN - 78 THEN 46 * + 97 - 25 * - 67 ELSE + 57 END + - 34 + + ( - + ( - + 58 ) ) * 29 THEN COALESCE ( 76, - 98 ) * - 50 WHEN - 69 + + COALESCE ( 96, - 36 - MAX( ALL + 63 ) ) THEN NULL END * COUNT( * ) * + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-3616
SELECT ALL 99 + + 59 - + 91 + - - CASE + 44 WHEN + - ( + 90 ) / - CASE - 19 WHEN - 78 THEN 46 * + 97 - 25 * - 67 ELSE + 57 END + - 34 + + ( - + ( - + 58 ) ) * 29 THEN COALESCE ( 76, - 98 ) * - 50 WHEN - 69 + + COALESCE ( 96, - 36 - MAX ( ALL + 63 ) ) THEN NULL END * COUNT ( * ) * + 99
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3617
SELECT ( 40 ) DIV 69 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3617
SELECT ( 40 ) / 69 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3618
SELECT ALL CASE + NULLIF ( 63, - CAST( NULL AS SIGNED ) + - - NULLIF ( + 19, - 2 ) * - - 54 * + - COUNT( * ) ) WHEN + - 90 - + CAST( + 20 AS SIGNED ) THEN - 76 * - + 28 WHEN - 77 + - NULLIF ( - 74, - 29 ) + + + ( - 27 ) THEN + 50 + + + NULLIF ( - 98, - 52 + 47 * - ( - 19 DIV 42 ) ) DIV 94 ELSE 21 + 34 END + - 81 AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-3618
SELECT ALL CASE + NULLIF ( 63, - CAST ( NULL AS INTEGER ) + - - NULLIF ( + 19, - 2 ) * - - 54 * + - COUNT ( * ) ) WHEN + - 90 - + CAST ( + 20 AS INTEGER ) THEN - 76 * - + 28 WHEN - 77 + - NULLIF ( - 74, - 29 ) + + + ( - 27 ) THEN + 50 + + + NULLIF ( - 98, - 52 + 47 * - ( - 19 / 42 ) ) / 94 ELSE 21 + 34 END + - 81 AS col2
----
-26

query I rowsort
SELECT ALL + 79 + 41
----
120

onlyif mysql # aggregate syntax: 
query II rowsort label-3620
SELECT - COUNT( * ), - 93 AS col1
----
-1
-93

skipif mysql # not compatible
query II rowsort label-3620
SELECT - COUNT ( * ), - 93 AS col1
----
-1
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3621
SELECT ALL CAST( NULL AS SIGNED ) / 59
----
NULL

skipif mysql # not compatible
query I rowsort label-3621
SELECT ALL CAST ( NULL AS INTEGER ) / 59
----
NULL

query I rowsort
SELECT DISTINCT 74 + - - 93
----
167

query I rowsort
SELECT ALL 33 + 34
----
67

query I rowsort
SELECT DISTINCT 91 * - 3
----
-273

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3625
SELECT ALL CAST( NULL AS DECIMAL ) / + COUNT( 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3625
SELECT ALL CAST ( NULL AS REAL ) / + COUNT ( 91 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3626
SELECT + NULLIF ( - COALESCE ( - - 98, - + 89 - COUNT( * ), 17 ), ( - 49 ) ) - + 14
----
-112

skipif mysql # not compatible
query I rowsort label-3626
SELECT + NULLIF ( - COALESCE ( - - 98, - + 89 - COUNT ( * ), 17 ), ( - 49 ) ) - + 14
----
-112

query I rowsort
SELECT ALL - 90 * - 5
----
450

onlyif mysql # aggregate syntax: 
query I rowsort label-3628
SELECT + MIN( ALL + 60 ) * - COUNT( DISTINCT 19 )
----
-60

skipif mysql # not compatible
query I rowsort label-3628
SELECT + MIN ( ALL + 60 ) * - COUNT ( DISTINCT 19 )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT ALL CASE + + COUNT( * ) WHEN + COUNT( * ) THEN - CASE + - COUNT( * ) WHEN + 48 THEN + 76 END WHEN 83 - - NULLIF ( 63, 46 ) * + 89 * + + MAX( DISTINCT - 7 ) THEN + 11 END - - 91 + COUNT( + ( 32 ) ) - - 56 * - 73 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3629
SELECT ALL CASE + + COUNT ( * ) WHEN + COUNT ( * ) THEN - CASE + - COUNT ( * ) WHEN + 48 THEN + 76 END WHEN 83 - - NULLIF ( 63, 46 ) * + 89 * + + MAX ( DISTINCT - 7 ) THEN + 11 END - - 91 + COUNT ( + ( 32 ) ) - - 56 * - 73 AS col0
----
NULL

query I rowsort
SELECT + 94 + - 15 col1
----
79

query I rowsort
SELECT + - 12 * - + 67 + + NULLIF ( - - 7, 49 ) AS col0
----
811

query II rowsort
SELECT ALL + + 60 AS col1, 25 + + 98
----
60
123

query I rowsort
SELECT - + 89 * 54 AS col2
----
-4806

query II rowsort
SELECT ALL + + 99 AS col0, 16 AS col2
----
99
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT DISTINCT + + COALESCE ( COUNT( * ), - MIN( ALL - ( - - 84 ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3635
SELECT DISTINCT + + COALESCE ( COUNT ( * ), - MIN ( ALL - ( - - 84 ) ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3636
SELECT - + COUNT( * ) + 65 + - ( COUNT( * ) )
----
63

skipif mysql # not compatible
query I rowsort label-3636
SELECT - + COUNT ( * ) + 65 + - ( COUNT ( * ) )
----
63

onlyif mysql # DIV for integer division: 
query II rowsort label-3637
SELECT ALL + - 44 DIV - - ( + ( - 84 ) ) col0, + 13
----
0
13

skipif mysql # not compatible
query II rowsort label-3637
SELECT ALL + - 44 / - - ( + ( - 84 ) ) col0, + 13
----
0
13

query I rowsort
SELECT - 66 * 32 * + - 98
----
206976

query I rowsort
SELECT DISTINCT + + 94 * - 96 AS col0
----
-9024

query I rowsort
SELECT ALL + - ( - 85 ) AS col1
----
85

query II rowsort
SELECT + 10 col1, - COALESCE ( - 6, + + 16 )
----
10
6

query I rowsort
SELECT - - 62 * 75 col2
----
4650

query I rowsort
SELECT - 37 + - - 17
----
-20

query I rowsort
SELECT - + 88 * + 31 col2
----
-2728

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT + ( + + COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3645
SELECT + ( + + COUNT ( * ) ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-3646
SELECT ALL + + 90, - 92 DIV + 47 AS col2
----
90
-1

skipif mysql # not compatible
query II rowsort label-3646
SELECT ALL + + 90, - 92 / + 47 AS col2
----
90
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3647
SELECT ALL 52 * + 42 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3647
SELECT ALL 52 * + 42 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3648
SELECT - 5 * - 95 AS col1, + 81 + + - COUNT( * ) col2
----
475
80

skipif mysql # not compatible
query II rowsort label-3648
SELECT - 5 * - 95 AS col1, + 81 + + - COUNT ( * ) col2
----
475
80

query I rowsort
SELECT ALL + 47 + + + ( + + 96 )
----
143

query I rowsort
SELECT DISTINCT 34 + + - 11 AS col0
----
23

query II rowsort
SELECT ALL 93 + + 44, + 27 + 41 AS col2
----
137
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3652
SELECT ALL + NULLIF ( - + COUNT( * ), - + 85 ) + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-3652
SELECT ALL + NULLIF ( - + COUNT ( * ), - + 85 ) + - COUNT ( * )
----
-2

query I rowsort
SELECT - 69 + + 98 + + 69 * + 22 + - 19 AS col1
----
1528

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT + MIN( DISTINCT 15 ) - + 66 - - CASE SUM( DISTINCT - - 47 ) WHEN + 4 THEN NULL WHEN + + SUM( + 18 ) + - + 7 THEN CASE 9 WHEN - COUNT( * ) THEN - 5 END * + COUNT( + + 51 ) / 64 - - 32 END - - - 43 * + + 35 + + - COALESCE ( - + 5, 5, 70 + 15 ) * + SUM( ALL 68 + 95 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3654
SELECT + MIN ( DISTINCT 15 ) - + 66 - - CASE SUM ( DISTINCT - - 47 ) WHEN + 4 THEN NULL WHEN + + SUM ( + 18 ) + - + 7 THEN CASE 9 WHEN - COUNT ( * ) THEN - 5 END * + COUNT ( + + 51 ) / 64 - - 32 END - - - 43 * + + 35 + + - COALESCE ( - + 5, 5, 70 + 15 ) * + SUM ( ALL 68 + 95 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3655
SELECT ALL 57 + + 37 + - COUNT( + 35 ) * - COUNT( * ) + - 44 * + 45 AS col2
----
-1885

skipif mysql # not compatible
query I rowsort label-3655
SELECT ALL 57 + + 37 + - COUNT ( + 35 ) * - COUNT ( * ) + - 44 * + 45 AS col2
----
-1885

query I rowsort
SELECT - 21 + - 59 - 97 * + - 88 + - ( - + 79 ) AS col2
----
8535

query II rowsort
SELECT - ( + 2 ) AS col2, 82 + - 9 * - 96 + + + 64 col0
----
-2
1010

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3658
SELECT - COUNT( * ) + + - 99 - + COALESCE ( + - 27, - CAST( COUNT( * ) AS DECIMAL ) - - 8 + CASE - 3 WHEN + 59 THEN + 5 ELSE NULL END - + 43 * + 87 + - CASE + 14 WHEN + - CAST( + 78 AS SIGNED ) * 92 * - 14 + 68 THEN ( - + 19 ) ELSE 83 * 1 END ) - 50 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3658
SELECT - COUNT ( * ) + + - 99 - + COALESCE ( + - 27, - CAST ( COUNT ( * ) AS REAL ) - - 8 + CASE - 3 WHEN + 59 THEN + 5 ELSE NULL END - + 43 * + 87 + - CASE + 14 WHEN + - CAST ( + 78 AS INTEGER ) * 92 * - 14 + 68 THEN ( - + 19 ) ELSE 83 * 1 END ) - 50 / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 50 * - 83
----
-4150

onlyif mysql # aggregate syntax: 
query I rowsort label-3660
SELECT + 61 + 83 + - + 76 * COUNT( * ) + 56
----
124

skipif mysql # not compatible
query I rowsort label-3660
SELECT + 61 + 83 + - + 76 * COUNT ( * ) + 56
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-3661
SELECT ALL NULLIF ( COUNT( + 12 ), ( 21 ) / 9 * + 74 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3661
SELECT ALL NULLIF ( COUNT ( + 12 ), ( 21 ) / 9 * + 74 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3662
SELECT DISTINCT 26 DIV - 56 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3662
SELECT DISTINCT 26 / - 56 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3663
SELECT ALL + + COALESCE ( - 20, + + 85 * + CAST( NULL AS SIGNED ) )
----
-20

skipif mysql # not compatible
query I rowsort label-3663
SELECT ALL + + COALESCE ( - 20, + + 85 * + CAST ( NULL AS INTEGER ) )
----
-20

query I rowsort
SELECT + + 35 * 16 + + 62 AS col0
----
622

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3665
SELECT NULLIF ( - COUNT( * ), + 12 ) DIV - - ( + + 59 ) + 95 AS col0
----
95

skipif mysql # not compatible
query I rowsort label-3665
SELECT NULLIF ( - COUNT ( * ), + 12 ) / - - ( + + 59 ) + 95 AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT ALL - 24 * - COUNT( * ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-3666
SELECT ALL - 24 * - COUNT ( * ) AS col1
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-3667
SELECT + 14 DIV + ( - 82 ) - + 92 DIV - - ( 39 ) + - ( - 18 ) DIV + 47 * + - 75 * 82 + - - 6 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-3667
SELECT + 14 / + ( - 82 ) - + 92 / - - ( 39 ) + - ( - 18 ) / + 47 * + - 75 * 82 + - - 6 AS col0
----
4

query I rowsort
SELECT DISTINCT + 96 / + CASE + + 35 WHEN 77 + + NULLIF ( + 44, - - 54 / - - 82 ) THEN + 31 * 51 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT ALL + COALESCE ( + COALESCE ( - - ( 89 ), - ( 42 ), + + COUNT( * ) ), 43, + 73 + - ( - - 32 ) ) * + 73 AS col1
----
6497

skipif mysql # not compatible
query I rowsort label-3669
SELECT ALL + COALESCE ( + COALESCE ( - - ( 89 ), - ( 42 ), + + COUNT ( * ) ), 43, + 73 + - ( - - 32 ) ) * + 73 AS col1
----
6497

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3670
SELECT DISTINCT + 16 * + - CAST( NULL AS SIGNED ) + - CAST( - MAX( 86 ) AS SIGNED ) * - 7 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3670
SELECT DISTINCT + 16 * + - CAST ( NULL AS INTEGER ) + - CAST ( - MAX ( 86 ) AS INTEGER ) * - 7 col1
----
NULL

query II rowsort
SELECT COALESCE ( - 24, ( - - 10 ) ) col0, - 20
----
-24
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3672
SELECT + - CAST( - 83 AS SIGNED ) - 50 + 49 * + 17 * + COALESCE ( - 33, 52 * - SUM( ALL - 7 ), - NULLIF ( + + 14, - - 65 ) * 45 ) AS col0
----
-27456

skipif mysql # not compatible
query I rowsort label-3672
SELECT + - CAST ( - 83 AS INTEGER ) - 50 + 49 * + 17 * + COALESCE ( - 33, 52 * - SUM ( ALL - 7 ), - NULLIF ( + + 14, - - 65 ) * 45 ) AS col0
----
-27456

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3673
SELECT ALL - 72 * - 52 DIV COUNT( * ) * + + ( 36 ) * + 80
----
10782720

skipif mysql # not compatible
query I rowsort label-3673
SELECT ALL - 72 * - 52 / COUNT ( * ) * + + ( 36 ) * + 80
----
10782720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3674
SELECT ALL - 0 DIV CAST( 90 AS SIGNED ) - - + COUNT( * ) + - 98 + - 63 DIV 65 - - - 30 + - 72 + - + 99 * 94 AS col0
----
-9505

skipif mysql # not compatible
query I rowsort label-3674
SELECT ALL - 0 / CAST ( 90 AS INTEGER ) - - + COUNT ( * ) + - 98 + - 63 / 65 - - - 30 + - 72 + - + 99 * 94 AS col0
----
-9505

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3675
SELECT + + CAST( - 7 AS SIGNED )
----
-7

skipif mysql # not compatible
query I rowsort label-3675
SELECT + + CAST ( - 7 AS INTEGER )
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3676
SELECT + - 33 * + 35 AS col1, CAST( 58 AS SIGNED ) + - CAST( NULL AS SIGNED )
----
-1155
NULL

skipif mysql # not compatible
query II rowsort label-3676
SELECT + - 33 * + 35 AS col1, CAST ( 58 AS INTEGER ) + - CAST ( NULL AS INTEGER )
----
-1155
NULL

query I rowsort
SELECT + NULLIF ( + 77, + 96 )
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3678
SELECT + CAST( 22 AS SIGNED ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-3678
SELECT + CAST ( 22 AS INTEGER ) AS col0
----
22

query I rowsort
SELECT ALL - - 10 * + 73 + + - 54 * + 75
----
-3320

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT DISTINCT + ( NULLIF ( + SUM( DISTINCT - - 87 ), + 79 / + - ( + 3 ) ) )
----
87

skipif mysql # not compatible
query I rowsort label-3680
SELECT DISTINCT + ( NULLIF ( + SUM ( DISTINCT - - 87 ), + 79 / + - ( + 3 ) ) )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3681
SELECT ALL - - 78 * COUNT( * ) + - ( - - COUNT( * ) ) * 92 AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-3681
SELECT ALL - - 78 * COUNT ( * ) + - ( - - COUNT ( * ) ) * 92 AS col1
----
-14

query I rowsort
SELECT ALL - + NULLIF ( + 70, + 53 ) * - 12 * - 33
----
-27720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3683
SELECT DISTINCT - 83 * - CAST( NULL AS SIGNED ) + - - 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3683
SELECT DISTINCT - 83 * - CAST ( NULL AS INTEGER ) + - - 88 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - ( - 0 ) * + 44 + - 50 * 10
----
-500

onlyif mysql # DIV for integer division: 
query I rowsort label-3685
SELECT DISTINCT - 6 DIV - 74 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3685
SELECT DISTINCT - 6 / - 74 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3686
SELECT DISTINCT 80 * - 47 + + COUNT( * ) AS col0
----
-3759

skipif mysql # not compatible
query I rowsort label-3686
SELECT DISTINCT 80 * - 47 + + COUNT ( * ) AS col0
----
-3759

query I rowsort
SELECT + 52 * - 14 col2
----
-728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3688
SELECT NULLIF ( + 19, - - CAST( AVG ( DISTINCT - ( - 60 ) ) AS SIGNED ) )
----
19

skipif mysql # not compatible
query I rowsort label-3688
SELECT NULLIF ( + 19, - - CAST ( AVG ( DISTINCT - ( - 60 ) ) AS INTEGER ) )
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-3689
SELECT + 69 DIV + 16 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-3689
SELECT + 69 / + 16 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT + 28 + COUNT( * ) * 32 * - COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-3690
SELECT + 28 + COUNT ( * ) * 32 * - COUNT ( * )
----
-4

query I rowsort
SELECT DISTINCT + 68 * 53 - - ( - - 40 ) AS col2
----
3644

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3692
SELECT - 27 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3692
SELECT - 27 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT ALL 77, - 15 * + 48 * + 40 AS col0
----
77
-28800

onlyif mysql # DIV for integer division: 
query I rowsort label-3694
SELECT DISTINCT - 44 DIV + ( + + 3 ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-3694
SELECT DISTINCT - 44 / + ( + + 3 ) AS col0
----
-14

onlyif mysql # DIV for integer division: 
query II rowsort label-3695
SELECT DISTINCT 31 AS col2, 54 DIV + 10
----
31
5

skipif mysql # not compatible
query II rowsort label-3695
SELECT DISTINCT 31 AS col2, 54 / + 10
----
31
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT DISTINCT + 17 - + 30 * + COUNT( * ) * + 67 * 20 + + 71 * + 66 + - 10
----
-35507

skipif mysql # not compatible
query I rowsort label-3696
SELECT DISTINCT + 17 - + 30 * + COUNT ( * ) * + 67 * 20 + + 71 * + 66 + - 10
----
-35507

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3697
SELECT 34, 12 DIV + ( MAX( DISTINCT 36 ) ) * 50 AS col1
----
34
0

skipif mysql # not compatible
query II rowsort label-3697
SELECT 34, 12 / + ( MAX ( DISTINCT 36 ) ) * 50 AS col1
----
34
0

query I rowsort
SELECT 39 - - + 81 * 74 AS col1
----
6033

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3699
SELECT ALL - 54 * CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3699
SELECT ALL - 54 * CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3700
SELECT - ( MIN( ALL + 88 ) )
----
-88

skipif mysql # not compatible
query I rowsort label-3700
SELECT - ( MIN ( ALL + 88 ) )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3701
SELECT DISTINCT + COUNT( ALL + 1 ) * 80 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-3701
SELECT DISTINCT + COUNT ( ALL + 1 ) * 80 AS col2
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3702
SELECT 35 * - 60 - + 50 + + CAST( NULL AS SIGNED ) / 6 * + 56 + + + ( - 89 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3702
SELECT 35 * - 60 - + 50 + + CAST ( NULL AS INTEGER ) / 6 * + 56 + + + ( - 89 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3703
SELECT ALL - 67 * + NULLIF ( + 59, SUM( ALL 85 ) / 24 ) + + ( + + 68 ) + - SUM( ALL 87 ) * + - 14 AS col1
----
-2667

skipif mysql # not compatible
query I rowsort label-3703
SELECT ALL - 67 * + NULLIF ( + 59, SUM ( ALL 85 ) / 24 ) + + ( + + 68 ) + - SUM ( ALL 87 ) * + - 14 AS col1
----
-2667

query I rowsort
SELECT ALL + ( + + 26 ) AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3705
SELECT DISTINCT + 76 + - MAX( DISTINCT - + 98 ) * + 32 * + - 86 + + 57 + + + 38
----
-269525

skipif mysql # not compatible
query I rowsort label-3705
SELECT DISTINCT + 76 + - MAX ( DISTINCT - + 98 ) * + 32 * + - 86 + + 57 + + + 38
----
-269525

query I rowsort
SELECT + + ( - 30 )
----
-30

query I rowsort
SELECT ALL + 43 + - 83 - - 19 * + 60 * - - 79 + + 37 AS col1
----
90057

onlyif mysql # aggregate syntax: 
query I rowsort label-3708
SELECT 22 * COUNT( * ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-3708
SELECT 22 * COUNT ( * ) AS col1
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3709
SELECT - 94 * + + ( 56 ) * 46 + + 43 DIV - 31 + + COUNT( * ) + 65 AS col2, + 22
----
-242079
22

skipif mysql # not compatible
query II rowsort label-3709
SELECT - 94 * + + ( 56 ) * 46 + + 43 / - 31 + + COUNT ( * ) + 65 AS col2, + 22
----
-242079
22

onlyif mysql # DIV for integer division: 
query I rowsort label-3710
SELECT ALL 45 DIV + 59 * - 48
----
0

skipif mysql # not compatible
query I rowsort label-3710
SELECT ALL 45 / + 59 * - 48
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT DISTINCT + NULLIF ( 82, - COUNT( DISTINCT + 4 ) * + AVG ( DISTINCT 83 ) ) * + + NULLIF ( 5, - ( + 21 ) ) * - COUNT( * ) * - 45
----
18450

skipif mysql # not compatible
query I rowsort label-3711
SELECT DISTINCT + NULLIF ( 82, - COUNT ( DISTINCT + 4 ) * + AVG ( DISTINCT 83 ) ) * + + NULLIF ( 5, - ( + 21 ) ) * - COUNT ( * ) * - 45
----
18450

query I rowsort
SELECT ALL 72 + - + 12 AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT MIN( DISTINCT + + 55 ) + + 59 * + NULLIF ( + + 13, + 4 )
----
822

skipif mysql # not compatible
query I rowsort label-3713
SELECT MIN ( DISTINCT + + 55 ) + + 59 * + NULLIF ( + + 13, + 4 )
----
822

query I rowsort
SELECT ALL 85 + - 7
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3715
SELECT ALL + 99 * + - COUNT( * )
----
-99

skipif mysql # not compatible
query I rowsort label-3715
SELECT ALL + 99 * + - COUNT ( * )
----
-99

onlyif mysql # DIV for integer division: 
query II rowsort label-3716
SELECT + 56, - 69 + 64 + - 26 - + 61 * + 4 + - 15 - 41 + - 62 + 38 DIV 50 AS col2
----
56
-393

skipif mysql # not compatible
query II rowsort label-3716
SELECT + 56, - 69 + 64 + - 26 - + 61 * + 4 + - 15 - 41 + - 62 + 38 / 50 AS col2
----
56
-393

query I rowsort
SELECT 17 * 96 * + - 89 * - 79 AS col2
----
11474592

query I rowsort
SELECT 53 * + 94 AS col1
----
4982

query I rowsort
SELECT DISTINCT 57 - - 20 + + 57 * + 66 * - 80 AS col2
----
-300883

query II rowsort
SELECT DISTINCT - 1 col1, + 7
----
-1
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT 43 * - - NULLIF ( 17, NULLIF ( COUNT( * ), - + 76 ) )
----
731

skipif mysql # not compatible
query I rowsort label-3721
SELECT 43 * - - NULLIF ( 17, NULLIF ( COUNT ( * ), - + 76 ) )
----
731

query I rowsort
SELECT 49 - - 21 AS col1
----
70

query I rowsort
SELECT ALL - 31 * - 61 col2
----
1891

query II rowsort
SELECT 68 * + 44, 61 * + 71 col1
----
2992
4331

onlyif mysql # DIV for integer division: 
query I rowsort label-3725
SELECT ALL 74 DIV + 83
----
0

skipif mysql # not compatible
query I rowsort label-3725
SELECT ALL 74 / + 83
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT COUNT( * ) + + 51 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-3726
SELECT COUNT ( * ) + + 51 AS col1
----
52

query II rowsort
SELECT - 88 AS col2, - 90 AS col1
----
-88
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3728
SELECT CAST( NULL AS SIGNED ) + - - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-3728
SELECT CAST ( NULL AS INTEGER ) + - - 99
----
NULL

query I rowsort
SELECT 84 - 22 AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT DISTINCT 73 * COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-3730
SELECT DISTINCT 73 * COUNT ( * )
----
73

query I rowsort
SELECT ALL + + 29 + 76 + + 3 AS col1
----
108

query I rowsort
SELECT ALL - ( - ( + 32 ) )
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3733
SELECT ALL CASE - 3 WHEN + - 35 - + 78 THEN - CAST( NULL AS DECIMAL ) WHEN + CAST( NULL AS SIGNED ) THEN + COUNT( * ) - + + 41 WHEN 45 THEN + 94 * - 22 - + ( + + 98 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3733
SELECT ALL CASE - 3 WHEN + - 35 - + 78 THEN - CAST ( NULL AS REAL ) WHEN + CAST ( NULL AS INTEGER ) THEN + COUNT ( * ) - + + 41 WHEN 45 THEN + 94 * - 22 - + ( + + 98 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3734
SELECT CAST( NULL AS SIGNED ) + + + COUNT( * ) + COUNT( + 3 ) + - + 43 * - - AVG ( ALL - 46 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3734
SELECT CAST ( NULL AS INTEGER ) + + + COUNT ( * ) + COUNT ( + 3 ) + - + 43 * - - AVG ( ALL - 46 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3735
SELECT ALL + ( + + COUNT( * ) ) + - 98 DIV + 21 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-3735
SELECT ALL + ( + + COUNT ( * ) ) + - 98 / + 21 AS col1
----
-3

query II rowsort
SELECT + 16, 57 AS col2
----
16
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT + COUNT( * ) * + ( + 84 ) + + - 17
----
67

skipif mysql # not compatible
query I rowsort label-3737
SELECT + COUNT ( * ) * + ( + 84 ) + + - 17
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-3738
SELECT ALL - - 50 + + 99 DIV - 2 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3738
SELECT ALL - - 50 + + 99 / - 2 AS col2
----
1

query I rowsort
SELECT - 46 + + 27 AS col0
----
-19

onlyif mysql # DIV for integer division: 
query II rowsort label-3740
SELECT - 17, - 22 DIV 31 AS col0
----
-17
0

skipif mysql # not compatible
query II rowsort label-3740
SELECT - 17, - 22 / 31 AS col0
----
-17
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3741
SELECT - 59 + - - CAST( NULL AS DECIMAL ) + + 12 * 63
----
NULL

skipif mysql # not compatible
query I rowsort label-3741
SELECT - 59 + - - CAST ( NULL AS REAL ) + + 12 * 63
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT - COUNT( * ) * - 78 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-3742
SELECT - COUNT ( * ) * - 78 AS col0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3743
SELECT 95 + + - CAST( NULL AS SIGNED ) + + 27 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3743
SELECT 95 + + - CAST ( NULL AS INTEGER ) + + 27 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3744
SELECT DISTINCT MAX( 57 ) * + 17 + 43 - - CASE - 35 WHEN - CASE - 0 WHEN + 41 THEN - COALESCE ( - 25, NULLIF ( - - ( - 33 ), - - MAX( - 56 ) ) * - - 67 ) * - 99 + + COUNT( * ) + - - 94 * COUNT( * ) * + 65 WHEN 91 THEN + - ( + + 57 ) * + 70 END * ( - 10 ) THEN + 77 END + + CASE + COUNT( * ) WHEN + 69 - 88 THEN + 59 * + 35 ELSE 19 END * 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3744
SELECT DISTINCT MAX ( 57 ) * + 17 + 43 - - CASE - 35 WHEN - CASE - 0 WHEN + 41 THEN - COALESCE ( - 25, NULLIF ( - - ( - 33 ), - - MAX ( - 56 ) ) * - - 67 ) * - 99 + + COUNT ( * ) + - - 94 * COUNT ( * ) * + 65 WHEN 91 THEN + - ( + + 57 ) * + 70 END * ( - 10 ) THEN + 77 END + + CASE + COUNT ( * ) WHEN + 69 - 88 THEN + 59 * + 35 ELSE 19 END * 68 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3745
SELECT DISTINCT - MAX( - 27 ) * + 30 + 49 col1, + 9 AS col2
----
859
9

skipif mysql # not compatible
query II rowsort label-3745
SELECT DISTINCT - MAX ( - 27 ) * + 30 + 49 col1, + 9 AS col2
----
859
9

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3746
SELECT DISTINCT - + ( - 10 ) * 17 - - - NULLIF ( - 42, CAST( NULL AS SIGNED ) ) * + 62 + NULLIF ( + CAST( NULL AS DECIMAL ), + 16 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3746
SELECT DISTINCT - + ( - 10 ) * 17 - - - NULLIF ( - 42, CAST ( NULL AS INTEGER ) ) * + 62 + NULLIF ( + CAST ( NULL AS REAL ), + 16 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3747
SELECT DISTINCT - + 83 * + CASE - + NULLIF ( 19, + 67 ) WHEN 66 + - 38 THEN 40 * COALESCE ( - COUNT( * ), - SUM( - 18 ) ) END - + + 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3747
SELECT DISTINCT - + 83 * + CASE - + NULLIF ( 19, + 67 ) WHEN 66 + - 38 THEN 40 * COALESCE ( - COUNT ( * ), - SUM ( - 18 ) ) END - + + 57 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT MIN( - 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-3748
SELECT MIN ( - 94 )
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-3749
SELECT COUNT( * ) AS col1, 87
----
1
87

skipif mysql # not compatible
query II rowsort label-3749
SELECT COUNT ( * ) AS col1, 87
----
1
87

query I rowsort
SELECT ALL - + 36 col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT - - ( + + 30 ) * + 99 + + 46 - COUNT( * ) AS col1
----
3015

skipif mysql # not compatible
query I rowsort label-3751
SELECT - - ( + + 30 ) * + 99 + + 46 - COUNT ( * ) AS col1
----
3015

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT MAX( ALL 95 ) * 94
----
8930

skipif mysql # not compatible
query I rowsort label-3752
SELECT MAX ( ALL 95 ) * 94
----
8930

query I rowsort
SELECT 62 * - 75 * 39 col1
----
-181350

onlyif mysql # DIV for integer division: 
query I rowsort label-3754
SELECT DISTINCT 75 DIV 41
----
1

skipif mysql # not compatible
query I rowsort label-3754
SELECT DISTINCT 75 / 41
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3755
SELECT + 98 / + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3755
SELECT + 98 / + - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT ALL 69 * + 15 * - 99 * + COUNT( * ) AS col2
----
-102465

skipif mysql # not compatible
query I rowsort label-3756
SELECT ALL 69 * + 15 * - 99 * + COUNT ( * ) AS col2
----
-102465

query I rowsort
SELECT DISTINCT ( - 26 ) * 61 AS col2
----
-1586

onlyif mysql # aggregate syntax: 
query I rowsort label-3758
SELECT + SUM( DISTINCT - ( + 20 ) ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-3758
SELECT + SUM ( DISTINCT - ( + 20 ) ) AS col2
----
-20

query I rowsort
SELECT + CASE + - 62 WHEN + 32 THEN 44 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3760
SELECT CASE + 81 WHEN - + 89 THEN - 81 WHEN - + 2 THEN NULL ELSE + - 24 END * 69 * COUNT( ALL 18 ) * - 7 + 20
----
11612

skipif mysql # not compatible
query I rowsort label-3760
SELECT CASE + 81 WHEN - + 89 THEN - 81 WHEN - + 2 THEN NULL ELSE + - 24 END * 69 * COUNT ( ALL 18 ) * - 7 + 20
----
11612

query I rowsort
SELECT DISTINCT 68 * + ( 34 ) * - 53 col2
----
-122536

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3762
SELECT - CAST( NULL AS SIGNED ) + + 10 - + 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3762
SELECT - CAST ( NULL AS INTEGER ) + + 10 - + 55 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT - SUM( 4 ) - + 17 + + 38 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-3763
SELECT - SUM ( 4 ) - + 17 + + 38 AS col2
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3764
SELECT - 14 + 30 * + 85 * + - CAST( NULL AS SIGNED ) + + 13 * - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-3764
SELECT - 14 + 30 * + 85 * + - CAST ( NULL AS INTEGER ) + + 13 * - 34
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3765
SELECT ALL 20 + - COALESCE ( - - 0, CAST( + ( + - 33 ) AS SIGNED ), + - ( 26 ) DIV + + SUM( + 84 ) ) AS col0, 25 * - 1 AS col0
----
20
-25

skipif mysql # not compatible
query II rowsort label-3765
SELECT ALL 20 + - COALESCE ( - - 0, CAST ( + ( + - 33 ) AS INTEGER ), + - ( 26 ) / + + SUM ( + 84 ) ) AS col0, 25 * - 1 AS col0
----
20
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3766
SELECT - COALESCE ( - - 77, - - 47 + COUNT( * ) )
----
-77

skipif mysql # not compatible
query I rowsort label-3766
SELECT - COALESCE ( - - 77, - - 47 + COUNT ( * ) )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT DISTINCT + COUNT( * ) + - - 72 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-3767
SELECT DISTINCT + COUNT ( * ) + - - 72 AS col2
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3768
SELECT DISTINCT CAST( + - 53 AS SIGNED ) + 80 - + ( 23 ) * + 25 * + - 19
----
10952

skipif mysql # not compatible
query I rowsort label-3768
SELECT DISTINCT CAST ( + - 53 AS INTEGER ) + 80 - + ( 23 ) * + 25 * + - 19
----
10952

query I rowsort
SELECT ALL + 45 * + + 87 - - - 53 * + + 78
----
-219

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3770
SELECT + 60 - + SUM( ALL - - 91 ) - 73 DIV 75 AS col2, + MIN( DISTINCT + 43 )
----
-31
43

skipif mysql # not compatible
query II rowsort label-3770
SELECT + 60 - + SUM ( ALL - - 91 ) - 73 / 75 AS col2, + MIN ( DISTINCT + 43 )
----
-31
43

query I rowsort
SELECT - - 90 * - + 70 + 90
----
-6210

query I rowsort
SELECT ALL + 84 * + + ( 93 )
----
7812

query II rowsort
SELECT ALL + 35 + - 74 AS col2, ( + 68 ) AS col1
----
-39
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3774
SELECT ALL ( + CAST( COUNT( * ) AS SIGNED ) ) * COUNT( * ) * + + NULLIF ( + 46, + 44 ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-3774
SELECT ALL ( + CAST ( COUNT ( * ) AS INTEGER ) ) * COUNT ( * ) * + + NULLIF ( + 46, + 44 ) AS col0
----
46

query I rowsort
SELECT - - 54 - - NULLIF ( - ( - + ( - 58 ) ), + 58 * - + 95 )
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-3776
SELECT - 23 DIV - - 44 + - + 85 AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-3776
SELECT - 23 / - - 44 + - + 85 AS col0
----
-85

query I rowsort
SELECT - 46 * - 66
----
3036

query I rowsort
SELECT - 90 + + 98 AS col2
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3779
SELECT + - 39 - - - 67 * - CAST( NULL AS SIGNED ) + + + 81 * + COUNT( * ) * + 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3779
SELECT + - 39 - - - 67 * - CAST ( NULL AS INTEGER ) + + + 81 * + COUNT ( * ) * + 20 AS col2
----
NULL

query I rowsort
SELECT - 22 * 19 AS col2
----
-418

query I rowsort
SELECT DISTINCT - 8 * + 25 - + ( 9 ) + 12 AS col2
----
-197

onlyif mysql # aggregate syntax: 
query II rowsort label-3782
SELECT ALL + 23 AS col2, SUM( - 50 ) + 20 AS col0
----
23
-30

skipif mysql # not compatible
query II rowsort label-3782
SELECT ALL + 23 AS col2, SUM ( - 50 ) + 20 AS col0
----
23
-30

query I rowsort
SELECT CASE + + 69 WHEN 10 THEN - 93 * 2 WHEN + 46 THEN NULL ELSE + 31 END
----
31

query II rowsort
SELECT NULLIF ( 77, + 12 ), - ( + 53 ) AS col0
----
77
-53

query II rowsort
SELECT ALL + 23, - ( 24 ) AS col2
----
23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT NULLIF ( - 58, COUNT( * ) + - - 78 )
----
-58

skipif mysql # not compatible
query I rowsort label-3786
SELECT NULLIF ( - 58, COUNT ( * ) + - - 78 )
----
-58

query I rowsort
SELECT + ( + + 19 ) AS col1
----
19

query II rowsort
SELECT ALL + 42 AS col1, 78 * - - 0 - - 3
----
42
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-3789
SELECT + COALESCE ( + + 36, + + NULLIF ( CASE + - 89 WHEN + - CAST( NULL AS SIGNED ) THEN ( + 42 ) DIV 22 * + COUNT( * ) * 81 WHEN - ( 77 ) + + + 60 + + 7 THEN NULL END, + + 60 DIV CAST( NULL AS DECIMAL ) ) + 46, 93 + + 72 )
----
36

skipif mysql # not compatible
query I rowsort label-3789
SELECT + COALESCE ( + + 36, + + NULLIF ( CASE + - 89 WHEN + - CAST ( NULL AS INTEGER ) THEN ( + 42 ) / 22 * + COUNT ( * ) * 81 WHEN - ( 77 ) + + + 60 + + 7 THEN NULL END, + + 60 / CAST ( NULL AS REAL ) ) + 46, 93 + + 72 )
----
36

query I rowsort
SELECT ALL + 44 * - - 3 + - - 4 * + + 97 AS col0
----
520

query I rowsort
SELECT + 29 * - 38 + - COALESCE ( 48, 42, - 19 ) + + - 17 + - 70 AS col1
----
-1237

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT ALL COUNT( * ) * 52 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-3792
SELECT ALL COUNT ( * ) * 52 AS col2
----
52

query I rowsort
SELECT + 55 * - - 34 AS col1
----
1870

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT - - 99 + 1 + + COUNT( * ) AS col2
----
101

skipif mysql # not compatible
query I rowsort label-3794
SELECT - - 99 + 1 + + COUNT ( * ) AS col2
----
101

query II rowsort
SELECT - 45 AS col2, 63
----
-45
63

query I rowsort
SELECT + + 19 - 95 + + 41 * + 97 AS col2
----
3901

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3797
SELECT + - 50 + CAST( - - 61 AS SIGNED ) + ( + 19 )
----
30

skipif mysql # not compatible
query I rowsort label-3797
SELECT + - 50 + CAST ( - - 61 AS INTEGER ) + ( + 19 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT DISTINCT SUM( 16 )
----
16

skipif mysql # not compatible
query I rowsort label-3798
SELECT DISTINCT SUM ( 16 )
----
16

query II rowsort
SELECT DISTINCT 23 AS col1, - 10
----
23
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-3800
SELECT ALL - MIN( DISTINCT + ( - 85 ) ) col2, + 73
----
85
73

skipif mysql # not compatible
query II rowsort label-3800
SELECT ALL - MIN ( DISTINCT + ( - 85 ) ) col2, + 73
----
85
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT + COUNT( ALL + 79 ) + - + ( - 17 )
----
18

skipif mysql # not compatible
query I rowsort label-3801
SELECT + COUNT ( ALL + 79 ) + - + ( - 17 )
----
18

query I rowsort
SELECT DISTINCT + + 57 * + 85 col0
----
4845

onlyif mysql # aggregate syntax: 
query II rowsort label-3803
SELECT - + COUNT( * ), - 49 AS col1
----
-1
-49

skipif mysql # not compatible
query II rowsort label-3803
SELECT - + COUNT ( * ), - 49 AS col1
----
-1
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3804
SELECT + COUNT( * ) + + ( 11 ) * - COUNT( * ) col1
----
-10

skipif mysql # not compatible
query I rowsort label-3804
SELECT + COUNT ( * ) + + ( 11 ) * - COUNT ( * ) col1
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-3805
SELECT + + 23 DIV - 68 col2
----
0

skipif mysql # not compatible
query I rowsort label-3805
SELECT + + 23 / - 68 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3806
SELECT - + 17 * - + 72 + + 11 * CAST( + COUNT( * ) AS SIGNED )
----
1235

skipif mysql # not compatible
query I rowsort label-3806
SELECT - + 17 * - + 72 + + 11 * CAST ( + COUNT ( * ) AS INTEGER )
----
1235

query I rowsort
SELECT ALL - 12 * + 26
----
-312

query I rowsort
SELECT - COALESCE ( - 51, + - ( + 62 ), + 61 + + 62 )
----
51

query I rowsort
SELECT ALL + 79 * 31 + 44 AS col2
----
2493

onlyif mysql # DIV for integer division: 
query I rowsort label-3810
SELECT - 97 DIV + 98
----
0

skipif mysql # not compatible
query I rowsort label-3810
SELECT - 97 / + 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3811
SELECT MAX( ALL 25 ) col1
----
25

skipif mysql # not compatible
query I rowsort label-3811
SELECT MAX ( ALL 25 ) col1
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-3812
SELECT ALL - - COUNT( * ) AS col1, - 64 * - - 72 AS col1
----
1
-4608

skipif mysql # not compatible
query II rowsort label-3812
SELECT ALL - - COUNT ( * ) AS col1, - 64 * - - 72 AS col1
----
1
-4608

query I rowsort
SELECT ALL 64 * 27 * + 66
----
114048

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT DISTINCT - NULLIF ( + - ( - 44 ), + SUM( ALL - 29 ) + - 70 * COUNT( * ) )
----
-44

skipif mysql # not compatible
query I rowsort label-3814
SELECT DISTINCT - NULLIF ( + - ( - 44 ), + SUM ( ALL - 29 ) + - 70 * COUNT ( * ) )
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3815
SELECT ALL - 98 DIV COUNT( * ) * 16 AS col1
----
-1568

skipif mysql # not compatible
query I rowsort label-3815
SELECT ALL - 98 / COUNT ( * ) * 16 AS col1
----
-1568

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT ALL - MIN( ALL 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-3816
SELECT ALL - MIN ( ALL 87 )
----
-87

query I rowsort
SELECT 68 * + 12 AS col1
----
816

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT + 63 * + 80 - - 84 + - 59 + - - 52 + COUNT( * ) * 92
----
5209

skipif mysql # not compatible
query I rowsort label-3818
SELECT + 63 * + 80 - - 84 + - 59 + - - 52 + COUNT ( * ) * 92
----
5209

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3819
SELECT ALL - NULLIF ( - + 35, + + CAST( NULL AS SIGNED ) ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-3819
SELECT ALL - NULLIF ( - + 35, + + CAST ( NULL AS INTEGER ) ) AS col1
----
35

query I rowsort
SELECT 58 * 95 col2
----
5510

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT MAX( ALL + 94 ) + - + 98
----
-4

skipif mysql # not compatible
query I rowsort label-3821
SELECT MAX ( ALL + 94 ) + - + 98
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3822
SELECT DISTINCT + 27 + - COALESCE ( - CAST( NULL AS SIGNED ), + - 75 )
----
102

skipif mysql # not compatible
query I rowsort label-3822
SELECT DISTINCT + 27 + - COALESCE ( - CAST ( NULL AS INTEGER ), + - 75 )
----
102

query I rowsort
SELECT ALL - 63 + + 21 - - 80
----
38

query II rowsort
SELECT ALL + 36 * 69 AS col2, 97 * 56
----
2484
5432

query I rowsort
SELECT DISTINCT - 82 + 47 + + - 2 + - 93 + - - ( - - 98 ) * - ( - 8 ) * 90 col1
----
70430

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT NULLIF ( + 57, + COUNT( * ) + + COUNT( * ) * + COALESCE ( 39, - 46 + - COALESCE ( - COUNT( + 32 ), - SUM( 99 ) ) - NULLIF ( COALESCE ( 3, 40 + - CASE 66 WHEN + + 26 THEN - 82 * + + 81 * 61 * + 8 * 81 * + - 72 + - 3 WHEN - - 42 + - MAX( ALL + 73 ) / + 94 THEN - SUM( + 52 ) END ), + 9 * COALESCE ( 54, 81 * + COUNT( * ) ) ), 59 + - 88 ) * 15 ) * + 43 - + COUNT( * ) AS col2
----
2450

skipif mysql # not compatible
query I rowsort label-3826
SELECT NULLIF ( + 57, + COUNT ( * ) + + COUNT ( * ) * + COALESCE ( 39, - 46 + - COALESCE ( - COUNT ( + 32 ), - SUM ( 99 ) ) - NULLIF ( COALESCE ( 3, 40 + - CASE 66 WHEN + + 26 THEN - 82 * + + 81 * 61 * + 8 * 81 * + - 72 + - 3 WHEN - - 42 + - MAX ( ALL + 73 ) / + 94 THEN - SUM ( + 52 ) END ), + 9 * COALESCE ( 54, 81 * + COUNT ( * ) ) ), 59 + - 88 ) * 15 ) * + 43 - + COUNT ( * ) AS col2
----
2450

query I rowsort
SELECT DISTINCT COALESCE ( - - 55, + 82 ) + - - 19 AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3828
SELECT ALL + 9 + + ( + COUNT( * ) ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-3828
SELECT ALL + 9 + + ( + COUNT ( * ) ) AS col1
----
10

query I rowsort
SELECT ALL - NULLIF ( - 87, - 99 + - 16 ) AS col2
----
87

query I rowsort
SELECT - 98 + + 32 AS col2
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3831
SELECT DISTINCT - CASE - 31 WHEN COUNT( 63 ) THEN NULL WHEN - 96 * - CASE - + 91 WHEN - CASE COUNT( * ) WHEN 7 + 80 THEN + 3 + - COUNT( * ) WHEN - 69 THEN + 7 * - + 52 + - - COUNT( * ) + + CASE ( - - 30 ) WHEN 60 * + NULLIF ( - 19, - + COUNT( * ) ) THEN + CAST( 76 AS SIGNED ) END * + + 64 * - ( + 59 ) + 84 END THEN NULL WHEN + 1 + - 95 THEN NULL WHEN + 87 THEN - COUNT( * ) - ( + MAX( ALL 90 ) ) * 33 ELSE NULL END * + 36 THEN - 31 * + ( SUM( - 76 ) ) WHEN COUNT( * ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3831
SELECT DISTINCT - CASE - 31 WHEN COUNT ( 63 ) THEN NULL WHEN - 96 * - CASE - + 91 WHEN - CASE COUNT ( * ) WHEN 7 + 80 THEN + 3 + - COUNT ( * ) WHEN - 69 THEN + 7 * - + 52 + - - COUNT ( * ) + + CASE ( - - 30 ) WHEN 60 * + NULLIF ( - 19, - + COUNT ( * ) ) THEN + CAST ( 76 AS INTEGER ) END * + + 64 * - ( + 59 ) + 84 END THEN NULL WHEN + 1 + - 95 THEN NULL WHEN + 87 THEN - COUNT ( * ) - ( + MAX ( ALL 90 ) ) * 33 ELSE NULL END * + 36 THEN - 31 * + ( SUM ( - 76 ) ) WHEN COUNT ( * ) THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3832
SELECT ALL 82 - - - 37, - 24 + + COUNT( * ) AS col0
----
45
-23

skipif mysql # not compatible
query II rowsort label-3832
SELECT ALL 82 - - - 37, - 24 + + COUNT ( * ) AS col0
----
45
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3833
SELECT ( - CASE + SUM( ALL 41 ) WHEN + 83 + + 76 + + 46 + - 58 * 55 - + 56 * + COALESCE ( + 84, + + 15 ) * 34 * + CAST( + 27 AS SIGNED ) + + + 85 + 98 * + COUNT( * ) THEN NULL WHEN - + 89 THEN + 73 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3833
SELECT ( - CASE + SUM ( ALL 41 ) WHEN + 83 + + 76 + + 46 + - 58 * 55 - + 56 * + COALESCE ( + 84, + + 15 ) * 34 * + CAST ( + 27 AS INTEGER ) + + + 85 + 98 * + COUNT ( * ) THEN NULL WHEN - + 89 THEN + 73 ELSE NULL END )
----
NULL

query I rowsort
SELECT ALL 95 - - 83
----
178

query I rowsort
SELECT DISTINCT + 35 - + 79 AS col2
----
-44

query I rowsort
SELECT 4 * - 33 col1
----
-132

onlyif mysql # DIV for integer division: 
query I rowsort label-3837
SELECT ALL - - 51 DIV - + ( - 86 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3837
SELECT ALL - - 51 / - + ( - 86 ) AS col2
----
0

query I rowsort
SELECT DISTINCT - 2 * - 20 + 19 + - 22
----
37

query I rowsort
SELECT ALL 22 * + 72 AS col2
----
1584

onlyif mysql # aggregate syntax: 
query I rowsort label-3840
SELECT - - COUNT( + ( + 0 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3840
SELECT - - COUNT ( + ( + 0 ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3841
SELECT 83 * 54 + + - ( + + 71 ) + + 17 + 60 + - ( - 54 ) / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3841
SELECT 83 * 54 + + - ( + + 71 ) + + 17 + 60 + - ( - 54 ) / CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT + 5 * + 16 * + MIN( + 61 ) * COUNT( * ) AS col2
----
4880

skipif mysql # not compatible
query I rowsort label-3842
SELECT + 5 * + 16 * + MIN ( + 61 ) * COUNT ( * ) AS col2
----
4880

query I rowsort
SELECT ALL + 83 * - - 83 AS col1
----
6889

query I rowsort
SELECT 52 * - 55 AS col1
----
-2860

query II rowsort
SELECT 83 - + - 89, 47 col2
----
172
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3846
SELECT ALL 46 * + CAST( 67 AS SIGNED ) AS col2
----
3082

skipif mysql # not compatible
query I rowsort label-3846
SELECT ALL 46 * + CAST ( 67 AS INTEGER ) AS col2
----
3082

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3847
SELECT 68 DIV + COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-3847
SELECT 68 / + COUNT ( * )
----
68

query I rowsort
SELECT ALL 10 + + 82
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3849
SELECT 76 * - COUNT( 88 ) + COUNT( * ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-3849
SELECT 76 * - COUNT ( 88 ) + COUNT ( * ) AS col2
----
-75

query I rowsort
SELECT 87 - 83 + + + ( 36 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT ALL - MAX( ALL + 30 ) + + 30
----
0

skipif mysql # not compatible
query I rowsort label-3851
SELECT ALL - MAX ( ALL + 30 ) + + 30
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3852
SELECT + COUNT( * ) AS col1, + 98
----
1
98

skipif mysql # not compatible
query II rowsort label-3852
SELECT + COUNT ( * ) AS col1, + 98
----
1
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3853
SELECT DISTINCT 9 + + CAST( NULL AS SIGNED ) / + - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-3853
SELECT DISTINCT 9 + + CAST ( NULL AS INTEGER ) / + - 90
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3854
SELECT 5 col2, COUNT( * ) * - 3 AS col1
----
5
-3

skipif mysql # not compatible
query II rowsort label-3854
SELECT 5 col2, COUNT ( * ) * - 3 AS col1
----
5
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3855
SELECT COUNT( * ) * + 24 + + MAX( DISTINCT 20 ) DIV - - ( 21 ), COALESCE ( 16, 44 ) * + + 72 AS col1
----
24
1152

skipif mysql # not compatible
query II rowsort label-3855
SELECT COUNT ( * ) * + 24 + + MAX ( DISTINCT 20 ) / - - ( 21 ), COALESCE ( 16, 44 ) * + + 72 AS col1
----
24
1152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3856
SELECT MIN( + CAST( NULL AS SIGNED ) ) * 60 / - + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-3856
SELECT MIN ( + CAST ( NULL AS INTEGER ) ) * 60 / - + 27
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3857
SELECT NULLIF ( + 0, - - 47 * - CASE + 76 WHEN + + 81 + + 25 THEN - 75 - NULLIF ( - + ( - + 62 ), + 20 ) WHEN CAST( - 61 AS SIGNED ) THEN NULL END + - 49 ) * - COUNT( DISTINCT - - 45 ) + 55 + 34 + 4 + - 8
----
85

skipif mysql # not compatible
query I rowsort label-3857
SELECT NULLIF ( + 0, - - 47 * - CASE + 76 WHEN + + 81 + + 25 THEN - 75 - NULLIF ( - + ( - + 62 ), + 20 ) WHEN CAST ( - 61 AS INTEGER ) THEN NULL END + - 49 ) * - COUNT ( DISTINCT - - 45 ) + 55 + 34 + 4 + - 8
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3858
SELECT ALL + + ( COUNT( * ) ) - + - MIN( ALL - 97 )
----
-96

skipif mysql # not compatible
query I rowsort label-3858
SELECT ALL + + ( COUNT ( * ) ) - + - MIN ( ALL - 97 )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT 57 - - - COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-3859
SELECT 57 - - - COUNT ( * )
----
56

query I rowsort
SELECT DISTINCT - - 49 * 67
----
3283

query I rowsort
SELECT ALL - 56 - - 1 + + 75 AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3862
SELECT - ( + + COUNT( DISTINCT + 48 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3862
SELECT - ( + + COUNT ( DISTINCT + 48 ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3863
SELECT - CAST( NULL AS SIGNED ) + - - 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3863
SELECT - CAST ( NULL AS INTEGER ) + - - 65 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT 26 - - 56 + + ( 80 ) / - - CASE + ( - MAX( DISTINCT + + 85 ) ) WHEN - 33 THEN NULL WHEN 93 THEN - 34 + + 34 + + + 90 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3864
SELECT 26 - - 56 + + ( 80 ) / - - CASE + ( - MAX ( DISTINCT + + 85 ) ) WHEN - 33 THEN NULL WHEN 93 THEN - 34 + + 34 + + + 90 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT + 3 * + SUM( + 75 )
----
225

skipif mysql # not compatible
query I rowsort label-3865
SELECT + 3 * + SUM ( + 75 )
----
225

query I rowsort
SELECT 6 * - 31 + + 37
----
-149

query I rowsort
SELECT + 26 + + 71
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-3868
SELECT ALL COUNT( * ) AS col0, + 76
----
1
76

skipif mysql # not compatible
query II rowsort label-3868
SELECT ALL COUNT ( * ) AS col0, + 76
----
1
76

onlyif mysql # DIV for integer division: 
query I rowsort label-3869
SELECT ALL - 62 DIV - ( + 53 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3869
SELECT ALL - 62 / - ( + 53 ) AS col1
----
1

query I rowsort
SELECT - ( + CASE - 22 WHEN + 23 THEN + 88 ELSE 23 END ) * - 64 * + 75
----
110400

query I rowsort
SELECT ALL - 71 + 21
----
-50

query I rowsort
SELECT ALL + 96 + + 13 AS col1
----
109

query I rowsort
SELECT DISTINCT NULLIF ( - - 53, + 47 ) AS col2
----
53

query I rowsort
SELECT - 22 * 2
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-3875
SELECT DISTINCT 69 + - COUNT( * ) AS col0, ( + 79 )
----
68
79

skipif mysql # not compatible
query II rowsort label-3875
SELECT DISTINCT 69 + - COUNT ( * ) AS col0, ( + 79 )
----
68
79

query I rowsort
SELECT - 92 * - + 41 * - 14 AS col1
----
-52808

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT + 98 + - - COUNT( * ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-3877
SELECT + 98 + - - COUNT ( * ) AS col2
----
99

query I rowsort
SELECT ALL 4 + + + 63 AS col2
----
67

query I rowsort
SELECT ( - - 93 ) AS col0
----
93

query I rowsort
SELECT + 62 * + 62
----
3844

query II rowsort
SELECT ALL + 22 AS col0, 29
----
22
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3882
SELECT CAST( NULL AS SIGNED ) * 47 + + 32 + + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-3882
SELECT CAST ( NULL AS INTEGER ) * 47 + + 32 + + 14
----
NULL

query I rowsort
SELECT COALESCE ( 99, - - 86 )
----
99

query I rowsort
SELECT 46 * - 60 - - 57 col2
----
-2703

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT + 32 * COALESCE ( COUNT( * ), + 11 )
----
32

skipif mysql # not compatible
query I rowsort label-3885
SELECT + 32 * COALESCE ( COUNT ( * ), + 11 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT CASE - + 67 WHEN + COUNT( DISTINCT - 83 ) THEN + - 16 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3886
SELECT CASE - + 67 WHEN + COUNT ( DISTINCT - 83 ) THEN + - 16 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3887
SELECT + 16 DIV - 4 - + - CAST( - 91 AS SIGNED ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-3887
SELECT + 16 / - 4 - + - CAST ( - 91 AS INTEGER ) AS col2
----
-95

query I rowsort
SELECT + ( + ( 57 ) )
----
57

query I rowsort
SELECT - 26 + + 54 - - 3 + + 20
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3890
SELECT ALL MIN( 26 ) * - + 4 AS col0
----
-104

skipif mysql # not compatible
query I rowsort label-3890
SELECT ALL MIN ( 26 ) * - + 4 AS col0
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT + 96 * + NULLIF ( + - 23, - MAX( DISTINCT 65 ) ) AS col0
----
-2208

skipif mysql # not compatible
query I rowsort label-3891
SELECT + 96 * + NULLIF ( + - 23, - MAX ( DISTINCT 65 ) ) AS col0
----
-2208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3892
SELECT ALL 2 * + + COUNT( * ) * - 19 * - ( 8 ) * - CAST( 2 AS SIGNED ) * - 48 * - ( - 4 ) AS col1
----
116736

skipif mysql # not compatible
query I rowsort label-3892
SELECT ALL 2 * + + COUNT ( * ) * - 19 * - ( 8 ) * - CAST ( 2 AS INTEGER ) * - 48 * - ( - 4 ) AS col1
----
116736

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT DISTINCT + COUNT( DISTINCT - 73 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3893
SELECT DISTINCT + COUNT ( DISTINCT - 73 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3894
SELECT COUNT( 4 )
----
1

skipif mysql # not compatible
query I rowsort label-3894
SELECT COUNT ( 4 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3895
SELECT ALL + + 77 AS col2, - 69 + + - 44 * - CASE COUNT( * ) WHEN - + 39 THEN + + 85 + 91 ELSE NULL END AS col2
----
77
NULL

skipif mysql # not compatible
query II rowsort label-3895
SELECT ALL + + 77 AS col2, - 69 + + - 44 * - CASE COUNT ( * ) WHEN - + 39 THEN + + 85 + 91 ELSE NULL END AS col2
----
77
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3896
SELECT DISTINCT 17 * - CASE 81 WHEN - + 24 THEN NULL WHEN - 4 DIV 49 THEN NULL WHEN 22 THEN + NULLIF ( - + 81, CASE + ( 51 ) WHEN + 49 * + + 83 - + 98 * 6 THEN + 34 + - COUNT( * ) WHEN - + 20 THEN + COUNT( * ) DIV ( + ( - CAST( NULL AS SIGNED ) ) ) + + ( - - 76 ) ELSE NULL END ) + COUNT( * ) - + 78 + 86 + - 49 + + 57 * + 73 DIV + 35 ELSE 79 END col0
----
-1343

skipif mysql # not compatible
query I rowsort label-3896
SELECT DISTINCT 17 * - CASE 81 WHEN - + 24 THEN NULL WHEN - 4 / 49 THEN NULL WHEN 22 THEN + NULLIF ( - + 81, CASE + ( 51 ) WHEN + 49 * + + 83 - + 98 * 6 THEN + 34 + - COUNT ( * ) WHEN - + 20 THEN + COUNT ( * ) / ( + ( - CAST ( NULL AS INTEGER ) ) ) + + ( - - 76 ) ELSE NULL END ) + COUNT ( * ) - + 78 + 86 + - 49 + + 57 * + 73 / + 35 ELSE 79 END col0
----
-1343

onlyif mysql # aggregate syntax: 
query I rowsort label-3897
SELECT + 60 * + + 81 + COUNT( * )
----
4861

skipif mysql # not compatible
query I rowsort label-3897
SELECT + 60 * + + 81 + COUNT ( * )
----
4861

onlyif mysql # DIV for integer division: 
query I rowsort label-3898
SELECT DISTINCT + 85 DIV - 61 col1
----
-1

skipif mysql # not compatible
query I rowsort label-3898
SELECT DISTINCT + 85 / - 61 col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT + 4 * 55 * - COUNT( * )
----
-220

skipif mysql # not compatible
query I rowsort label-3899
SELECT + 4 * 55 * - COUNT ( * )
----
-220

query II rowsort
SELECT + 31 AS col2, + 17 AS col0
----
31
17

query II rowsort
SELECT 40 AS col0, - 43
----
40
-43

query II rowsort
SELECT 21 AS col1, + 16 + - 74 AS col2
----
21
-58

query I rowsort
SELECT + + 61 * - - 21
----
1281

onlyif mysql # aggregate syntax: 
query II rowsort label-3904
SELECT ALL - 80 + - NULLIF ( + COUNT( * ), - 58 + + + 73 * + - 89 * + - 65 ) - + + ( - 37 ) * - 83 * + COALESCE ( - 59, 0 + - COUNT( * ) - 43 * - COUNT( * ) ) * + 77, - 53 AS col2
----
13951472
-53

skipif mysql # not compatible
query II rowsort label-3904
SELECT ALL - 80 + - NULLIF ( + COUNT ( * ), - 58 + + + 73 * + - 89 * + - 65 ) - + + ( - 37 ) * - 83 * + COALESCE ( - 59, 0 + - COUNT ( * ) - 43 * - COUNT ( * ) ) * + 77, - 53 AS col2
----
13951472
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-3905
SELECT - COUNT( * ), + COALESCE ( + 86, ( + COUNT( * ) ) * + 34 ) * + 47 AS col2
----
-1
4042

skipif mysql # not compatible
query II rowsort label-3905
SELECT - COUNT ( * ), + COALESCE ( + 86, ( + COUNT ( * ) ) * + 34 ) * + 47 AS col2
----
-1
4042

query I rowsort
SELECT ALL - - 96 + 41
----
137

query II rowsort
SELECT - ( + - 31 ) * 9 * - 4 + - + 47 + + 76 AS col1, 89 AS col1
----
-1087
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT ALL 46 * + ( - COUNT( + 48 ) ) * - + 54 * - - 99
----
245916

skipif mysql # not compatible
query I rowsort label-3908
SELECT ALL 46 * + ( - COUNT ( + 48 ) ) * - + 54 * - - 99
----
245916

query I rowsort
SELECT DISTINCT - 67 + - ( 25 )
----
-92

query I rowsort
SELECT + 29 - - ( + 51 )
----
80

query II rowsort
SELECT ALL - 40 + 92 AS col2, - 24 AS col2
----
52
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3912
SELECT - 22 AS col2, - MAX( + 49 ) DIV + 33 + - 52 * COUNT( * ) AS col2
----
-22
-53

skipif mysql # not compatible
query II rowsort label-3912
SELECT - 22 AS col2, - MAX ( + 49 ) / + 33 + - 52 * COUNT ( * ) AS col2
----
-22
-53

query I rowsort
SELECT - 16 + + + 39 + 84 AS col1
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3914
SELECT ALL ( + + COUNT( ALL CAST( NULL AS SIGNED ) ) ), + 10 AS col0
----
0
10

skipif mysql # not compatible
query II rowsort label-3914
SELECT ALL ( + + COUNT ( ALL CAST ( NULL AS INTEGER ) ) ), + 10 AS col0
----
0
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3915
SELECT - MIN( ALL - 38 ) + + - CAST( NULL AS SIGNED ) * + 26 * ( + 99 ) * + 31, + 80 col2
----
NULL
80

skipif mysql # not compatible
query II rowsort label-3915
SELECT - MIN ( ALL - 38 ) + + - CAST ( NULL AS INTEGER ) * + 26 * ( + 99 ) * + 31, + 80 col2
----
NULL
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3916
SELECT + ( + 16 ) * COUNT( * ) DIV + 74
----
0

skipif mysql # not compatible
query I rowsort label-3916
SELECT + ( + 16 ) * COUNT ( * ) / + 74
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT - COUNT( * ) * 49 * - 37 AS col0
----
1813

skipif mysql # not compatible
query I rowsort label-3917
SELECT - COUNT ( * ) * 49 * - 37 AS col0
----
1813

onlyif mysql # DIV for integer division: 
query I rowsort label-3918
SELECT DISTINCT + 68 DIV - 9
----
-7

skipif mysql # not compatible
query I rowsort label-3918
SELECT DISTINCT + 68 / - 9
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT DISTINCT + 95 + COUNT( * ) + + ( + 31 ) * + + 8
----
344

skipif mysql # not compatible
query I rowsort label-3919
SELECT DISTINCT + 95 + COUNT ( * ) + + ( + 31 ) * + + 8
----
344

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3920
SELECT - ( 37 ) - + 50 + - + 95 + + CAST( + 96 AS SIGNED ) * - + ( - 42 )
----
3850

skipif mysql # not compatible
query I rowsort label-3920
SELECT - ( 37 ) - + 50 + - + 95 + + CAST ( + 96 AS INTEGER ) * - + ( - 42 )
----
3850

query I rowsort
SELECT - 39 + - - 11
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3922
SELECT + CASE - + 40 WHEN + CAST( + 38 AS SIGNED ) + - COUNT( * ) * 31 THEN - - 41 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3922
SELECT + CASE - + 40 WHEN + CAST ( + 38 AS INTEGER ) + - COUNT ( * ) * 31 THEN - - 41 END
----
NULL

query I rowsort
SELECT + 32 * + 50 AS col2
----
1600

query I rowsort
SELECT + 9 - 66
----
-57

query I rowsort
SELECT ALL 14 * + 22 AS col1
----
308

query I rowsort
SELECT + ( - + 97 ) AS col1
----
-97

query I rowsort
SELECT DISTINCT + + 10 col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT - SUM( - 61 ) * + + 2 + 81 - - - ( + 5 ) - + COUNT( * ) * 38 * - 47 + - - 25 + + - ( - + 53 ) * 23 + 53
----
3281

skipif mysql # not compatible
query I rowsort label-3928
SELECT - SUM ( - 61 ) * + + 2 + 81 - - - ( + 5 ) - + COUNT ( * ) * 38 * - 47 + - - 25 + + - ( - + 53 ) * 23 + 53
----
3281

onlyif mysql # aggregate syntax: 
query I rowsort label-3929
SELECT + MIN( 45 ) * + 31 * + - 39 AS col2
----
-54405

skipif mysql # not compatible
query I rowsort label-3929
SELECT + MIN ( 45 ) * + 31 * + - 39 AS col2
----
-54405

onlyif mysql # aggregate syntax: 
query I rowsort label-3930
SELECT ALL + CASE COALESCE ( + 96, 98 ) WHEN - 31 THEN + 76 / 43 * + 3 / 61 WHEN + - ( 35 ) THEN + + 85 + + - 32 * + 87 + + COALESCE ( - 77, - + 80 * + 53 * + + ( - 32 ) + + - 0 - + - AVG ( ALL + 12 ) - + 57 * COUNT( * ) * - + 13 * + 12 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3930
SELECT ALL + CASE COALESCE ( + 96, 98 ) WHEN - 31 THEN + 76 / 43 * + 3 / 61 WHEN + - ( 35 ) THEN + + 85 + + - 32 * + 87 + + COALESCE ( - 77, - + 80 * + 53 * + + ( - 32 ) + + - 0 - + - AVG ( ALL + 12 ) - + 57 * COUNT ( * ) * - + 13 * + 12 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT - COUNT( * ) * + 91 + + COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-3931
SELECT - COUNT ( * ) * + 91 + + COUNT ( * )
----
-90

query I rowsort
SELECT CASE - 27 WHEN ( 63 ) * + 80 * 68 THEN + 98 + - 96 ELSE NULL END + + - 32 AS col2
----
NULL

query I rowsort
SELECT + 25 + + 43 * + 59
----
2562

query II rowsort
SELECT 56 * + 93 AS col0, - 28
----
5208
-28

query I rowsort
SELECT + - CASE + - 27 WHEN 81 * + 24 - - - ( 68 ) THEN - 2 + + - 68 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT 89 + + 3 + + NULLIF ( - 29, + 84 + + - COUNT( * ) * + + 0 * - 81 ) * 15 * - - 88 AS col0
----
-38188

skipif mysql # not compatible
query I rowsort label-3936
SELECT 89 + + 3 + + NULLIF ( - 29, + 84 + + - COUNT ( * ) * + + 0 * - 81 ) * 15 * - - 88 AS col0
----
-38188

query I rowsort
SELECT DISTINCT - - 17 AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT ALL MAX( ALL 70 ) + - 26
----
44

skipif mysql # not compatible
query I rowsort label-3938
SELECT ALL MAX ( ALL 70 ) + - 26
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3939
SELECT + 48 * - + COUNT( * ) + COUNT( * ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-3939
SELECT + 48 * - + COUNT ( * ) + COUNT ( * ) AS col1
----
-47

query I rowsort
SELECT 68 + - 81
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT NULLIF ( - 78, + - 42 ) + - - 3 + + COUNT( * ) * - NULLIF ( - 13, + 26 )
----
-62

skipif mysql # not compatible
query I rowsort label-3941
SELECT NULLIF ( - 78, + - 42 ) + - - 3 + + COUNT ( * ) * - NULLIF ( - 13, + 26 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3942
SELECT 88 * + - ( 26 ) * + COUNT( * ) + - + 49 AS col2
----
-2337

skipif mysql # not compatible
query I rowsort label-3942
SELECT 88 * + - ( 26 ) * + COUNT ( * ) + - + 49 AS col2
----
-2337

onlyif mysql # DIV for integer division: 
query I rowsort label-3943
SELECT 97 + - + 74 DIV + - 39
----
98

skipif mysql # not compatible
query I rowsort label-3943
SELECT 97 + - + 74 / + - 39
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3944
SELECT ( + 26 ) + - + 90 + 15 / + CASE - CAST( + + 85 AS SIGNED ) WHEN + 78 THEN + 4 * + 63 WHEN ( + + COUNT( * ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3944
SELECT ( + 26 ) + - + 90 + 15 / + CASE - CAST ( + + 85 AS INTEGER ) WHEN + 78 THEN + 4 * + 63 WHEN ( + + COUNT ( * ) ) THEN NULL END
----
NULL

query II rowsort
SELECT ALL 12 AS col0, 41 * 89 AS col0
----
12
3649

onlyif mysql # aggregate syntax: 
query I rowsort label-3946
SELECT 87 + 43 + + AVG ( DISTINCT + 25 ) * - CASE COUNT( DISTINCT + 39 ) WHEN + 92 THEN + 52 * + 2 / - - 83 + + 14 + 39 END * - 53 * 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3946
SELECT 87 + 43 + + AVG ( DISTINCT + 25 ) * - CASE COUNT ( DISTINCT + 39 ) WHEN + 92 THEN + 52 * + 2 / - - 83 + + 14 + 39 END * - 53 * 65 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3947
SELECT DISTINCT 27 * - COUNT( * ) * + + 2 AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-3947
SELECT DISTINCT 27 * - COUNT ( * ) * + + 2 AS col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT ( - + 52 ) * - 27 + 73 + + COUNT( * ) * - - 25 * 15 col1
----
1852

skipif mysql # not compatible
query I rowsort label-3948
SELECT ( - + 52 ) * - 27 + 73 + + COUNT ( * ) * - - 25 * 15 col1
----
1852

onlyif mysql # aggregate syntax: 
query I rowsort label-3949
SELECT 3 * - + COALESCE ( - COUNT( * ), 6 )
----
3

skipif mysql # not compatible
query I rowsort label-3949
SELECT 3 * - + COALESCE ( - COUNT ( * ), 6 )
----
3

query II rowsort
SELECT ALL 81 AS col2, - 93
----
81
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT 93 * + COUNT( * ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-3951
SELECT 93 * + COUNT ( * ) AS col0
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-3952
SELECT ALL - COALESCE ( 89, + 67 DIV - + 17, + ( + ( + 43 ) ), 68 - - 0 * 3 )
----
-89

skipif mysql # not compatible
query I rowsort label-3952
SELECT ALL - COALESCE ( 89, + 67 / - + 17, + ( + ( + 43 ) ), 68 - - 0 * 3 )
----
-89

query I rowsort
SELECT DISTINCT + 1 * + 37
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-3954
SELECT DISTINCT + 29 DIV 48 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3954
SELECT DISTINCT + 29 / 48 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT DISTINCT - SUM( DISTINCT + 59 )
----
-59

skipif mysql # not compatible
query I rowsort label-3955
SELECT DISTINCT - SUM ( DISTINCT + 59 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT MAX( DISTINCT 71 ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-3956
SELECT MAX ( DISTINCT 71 ) AS col0
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3957
SELECT COUNT( * ) DIV - 57 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3957
SELECT COUNT ( * ) / - 57 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3958
SELECT ALL - + NULLIF ( + MAX( + 4 ), 79 * - CAST( + 62 AS SIGNED ) - 51 )
----
-4

skipif mysql # not compatible
query I rowsort label-3958
SELECT ALL - + NULLIF ( + MAX ( + 4 ), 79 * - CAST ( + 62 AS INTEGER ) - 51 )
----
-4

query I rowsort
SELECT 35 * + + 15
----
525

query I rowsort
SELECT ALL + - NULLIF ( 51, + 12 ) + + 75 AS col0
----
24

query I rowsort
SELECT ( + ( 45 ) )
----
45

query I rowsort
SELECT ALL 62 + + 44
----
106

query I rowsort
SELECT ALL 66 + - 72
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-3964
SELECT ALL - + 89 AS col2, + MIN( ALL + + 9 ) + - 71
----
-89
-62

skipif mysql # not compatible
query II rowsort label-3964
SELECT ALL - + 89 AS col2, + MIN ( ALL + + 9 ) + - 71
----
-89
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3965
SELECT MIN( ALL + + 4 ) * - 40 + - - 38 * - 66 - + 43 * - 85 AS col2
----
987

skipif mysql # not compatible
query I rowsort label-3965
SELECT MIN ( ALL + + 4 ) * - 40 + - - 38 * - 66 - + 43 * - 85 AS col2
----
987

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3966
SELECT + 98 * - 65 * + + 48 * + CAST( + 76 AS SIGNED ) * - NULLIF ( - + COUNT( * ), - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3966
SELECT + 98 * - 65 * + + 48 * + CAST ( + 76 AS INTEGER ) * - NULLIF ( - + COUNT ( * ), - COUNT ( * ) )
----
NULL

query I rowsort
SELECT DISTINCT - 40 + - 72
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-3968
SELECT + COUNT( * ) * COUNT( * ) * - 77 + COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-3968
SELECT + COUNT ( * ) * COUNT ( * ) * - 77 + COUNT ( * )
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-3969
SELECT 29 DIV + 33 * 89
----
0

skipif mysql # not compatible
query I rowsort label-3969
SELECT 29 / + 33 * 89
----
0

query I rowsort
SELECT ALL 81 * - 26 AS col0
----
-2106

onlyif mysql # DIV for integer division: 
query I rowsort label-3971
SELECT 77 DIV - - 94
----
0

skipif mysql # not compatible
query I rowsort label-3971
SELECT 77 / - - 94
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT DISTINCT 86 * + 56 * COUNT( ALL - 49 ) * 93 * 14 AS col2
----
6270432

skipif mysql # not compatible
query I rowsort label-3972
SELECT DISTINCT 86 * + 56 * COUNT ( ALL - 49 ) * 93 * 14 AS col2
----
6270432

query I rowsort
SELECT 67 - - + 7 AS col0
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3974
SELECT 3 * + 76 DIV + COUNT( * )
----
228

skipif mysql # not compatible
query I rowsort label-3974
SELECT 3 * + 76 / + COUNT ( * )
----
228

query I rowsort
SELECT 15 * + + 9 AS col2
----
135

query I rowsort
SELECT 86 + - + 12
----
74

query I rowsort
SELECT ( + 84 ) + 78 - + 18 * + 30 AS col2
----
-378

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3978
SELECT ( + ( 99 ) ) * - + 87 DIV COUNT( * ) AS col2
----
-8613

skipif mysql # not compatible
query I rowsort label-3978
SELECT ( + ( 99 ) ) * - + 87 / COUNT ( * ) AS col2
----
-8613

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3979
SELECT 21 + - + 82 * + - 57 DIV + - COUNT( * )
----
-4653

skipif mysql # not compatible
query I rowsort label-3979
SELECT 21 + - + 82 * + - 57 / + - COUNT ( * )
----
-4653

query I rowsort
SELECT ALL + COALESCE ( - 24, + 74 ) * 31 + - - 13 col1
----
-731

query II rowsort
SELECT 28 * + - 60 col1, + 14
----
-1680
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3982
SELECT - CASE + 81 WHEN + 74 / - 70 * + MAX( + 27 ) * - + 5 * + + 38 + + 24 THEN + 60 ELSE NULL END * 86 * 85 + + 70 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3982
SELECT - CASE + 81 WHEN + 74 / - 70 * + MAX ( + 27 ) * - + 5 * + + 38 + + 24 THEN + 60 ELSE NULL END * 86 * 85 + + 70 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT - ( - 80 ) - - MIN( - 60 )
----
20

skipif mysql # not compatible
query I rowsort label-3983
SELECT - ( - 80 ) - - MIN ( - 60 )
----
20

query I rowsort
SELECT DISTINCT + 86 * - + 61 * + 99 + 67
----
-519287

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT DISTINCT - 50 * - - COUNT( * ) + 69
----
19

skipif mysql # not compatible
query I rowsort label-3985
SELECT DISTINCT - 50 * - - COUNT ( * ) + 69
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-3986
SELECT - + COUNT( * ) + + 37 AS col1, 7
----
36
7

skipif mysql # not compatible
query II rowsort label-3986
SELECT - + COUNT ( * ) + + 37 AS col1, 7
----
36
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3987
SELECT ALL - 78 * CASE - 40 WHEN - SUM( - 79 ) + COUNT( * ) * 23 THEN NULL WHEN - + 64 / + + 73 * - COUNT( * ) + + 65 * + 23 * 62 + - + 67 * COALESCE ( + - 64, + NULLIF ( - 9, - + 64 * + ( + 27 ) * - - 5 * + + AVG ( DISTINCT 5 ) - + - 65 + + - 51 * + CAST( NULL AS SIGNED ) ) + + + 26 - + + 65 * COUNT( * ) * - 80, - 29, + 90 + - 39 * - 46 ) THEN + 50 / 61 + 69 * CAST( 2 * 55 + + COUNT( * ) / + 95 AS SIGNED ) ELSE NULL END * 50 + - 69 + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-3987
SELECT ALL - 78 * CASE - 40 WHEN - SUM ( - 79 ) + COUNT ( * ) * 23 THEN NULL WHEN - + 64 / + + 73 * - COUNT ( * ) + + 65 * + 23 * 62 + - + 67 * COALESCE ( + - 64, + NULLIF ( - 9, - + 64 * + ( + 27 ) * - - 5 * + + AVG ( DISTINCT 5 ) - + - 65 + + - 51 * + CAST ( NULL AS INTEGER ) ) + + + 26 - + + 65 * COUNT ( * ) * - 80, - 29, + 90 + - 39 * - 46 ) THEN + 50 / 61 + 69 * CAST ( 2 * 55 + + COUNT ( * ) / + 95 AS INTEGER ) ELSE NULL END * 50 + - 69 + 64
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3988
SELECT + CASE - 66 WHEN - 70 THEN - 19 + + 43 WHEN 10 * + + 12 - - + ( - 41 ) + - COUNT( + 83 ) THEN - AVG ( DISTINCT + 97 ) + 62 + + 21 * 37 + + 50 END AS col2, + 77 + COUNT( * ) + + 10 AS col1
----
NULL
88

skipif mysql # not compatible
query II rowsort label-3988
SELECT + CASE - 66 WHEN - 70 THEN - 19 + + 43 WHEN 10 * + + 12 - - + ( - 41 ) + - COUNT ( + 83 ) THEN - AVG ( DISTINCT + 97 ) + 62 + + 21 * 37 + + 50 END AS col2, + 77 + COUNT ( * ) + + 10 AS col1
----
NULL
88

query I rowsort
SELECT - + 49 * + - 85 + - 1 AS col2
----
4164

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT - + 63 * COUNT( * ) * - + 83 * - 24 AS col0
----
-125496

skipif mysql # not compatible
query I rowsort label-3990
SELECT - + 63 * COUNT ( * ) * - + 83 * - 24 AS col0
----
-125496

query I rowsort
SELECT ALL - 52 * + + 87 * 89 - + 82 * - 36 AS col0
----
-399684

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT - COUNT( * ) + - 72 * 84 col0
----
-6049

skipif mysql # not compatible
query I rowsort label-3992
SELECT - COUNT ( * ) + - 72 * 84 col0
----
-6049

onlyif mysql # aggregate syntax: 
query I rowsort label-3993
SELECT - COUNT( * ) + 41 + - + 70 + - + 14 * - 70
----
950

skipif mysql # not compatible
query I rowsort label-3993
SELECT - COUNT ( * ) + 41 + - + 70 + - + 14 * - 70
----
950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3994
SELECT ALL MAX( + + 77 ) * + CAST( - 0 AS SIGNED ) * - 7 - COUNT( * ) * - ( + ( + - 91 ) )
----
-91

skipif mysql # not compatible
query I rowsort label-3994
SELECT ALL MAX ( + + 77 ) * + CAST ( - 0 AS INTEGER ) * - 7 - COUNT ( * ) * - ( + ( + - 91 ) )
----
-91

query I rowsort
SELECT DISTINCT + 50 * - COALESCE ( - 18, 32, - - 12 ) AS col1
----
900

query I rowsort
SELECT - + 80 + + 17 * - + 96
----
-1712

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT - MAX( - 57 ) * - 95 * - 46
----
249090

skipif mysql # not compatible
query I rowsort label-3997
SELECT - MAX ( - 57 ) * - 95 * - 46
----
249090

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT + COALESCE ( 17, + COUNT( * ) * - - 94 ) + + NULLIF ( + - ( ( + 52 ) ), COUNT( * ) ) * + + 67 - + ( + 91 ) + 11 + + 48
----
-3499

skipif mysql # not compatible
query I rowsort label-3998
SELECT + COALESCE ( 17, + COUNT ( * ) * - - 94 ) + + NULLIF ( + - ( ( + 52 ) ), COUNT ( * ) ) * + + 67 - + ( + 91 ) + 11 + + 48
----
-3499

onlyif mysql # aggregate syntax: 
query I rowsort label-3999
SELECT - 10 * - COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-3999
SELECT - 10 * - COUNT ( * )
----
10

query I rowsort
SELECT - 27 + 22 AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT + 33 + + MIN( + 91 ) - + + 54
----
70

skipif mysql # not compatible
query I rowsort label-4001
SELECT + 33 + + MIN ( + 91 ) - + + 54
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4002
SELECT + 9 + - COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-4002
SELECT + 9 + - COUNT ( * )
----
8

query I rowsort
SELECT - 80 * - 68 * - 78 AS col1
----
-424320

onlyif mysql # DIV for integer division: 
query I rowsort label-4004
SELECT ALL - 46 DIV + + 70 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4004
SELECT ALL - 46 / + + 70 AS col1
----
0

query I rowsort
SELECT + 73 + 68
----
141

query I rowsort
SELECT ALL 38 * 93 * + 83
----
293322

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4007
SELECT + 67 DIV 43 DIV + NULLIF ( + 86, - 55 DIV 59 + - NULLIF ( + + 32, + + 85 + - COALESCE ( - 90, - - 57 + + 37 ) ) DIV + - 29 * - 54 * - 21 + - + COUNT( * ) DIV + + 63 * - + MAX( - 75 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4007
SELECT + 67 / 43 / + NULLIF ( + 86, - 55 / 59 + - NULLIF ( + + 32, + + 85 + - COALESCE ( - 90, - - 57 + + 37 ) ) / + - 29 * - 54 * - 21 + - + COUNT ( * ) / + + 63 * - + MAX ( - 75 ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4008
SELECT + 2 DIV + 43
----
0

skipif mysql # not compatible
query I rowsort label-4008
SELECT + 2 / + 43
----
0

query I rowsort
SELECT + 14 * - + ( - 53 ) * 24 AS col2
----
17808

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4010
SELECT + 31 + + 82 + COUNT( * ) DIV 92 col0
----
113

skipif mysql # not compatible
query I rowsort label-4010
SELECT + 31 + + 82 + COUNT ( * ) / 92 col0
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT + 38 + + COUNT( * ) * - 44 + + MAX( DISTINCT - 4 ) + + 54
----
44

skipif mysql # not compatible
query I rowsort label-4011
SELECT + 38 + + COUNT ( * ) * - 44 + + MAX ( DISTINCT - 4 ) + + 54
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-4012
SELECT 31 AS col0, + MAX( DISTINCT 52 ) * + 86 + + 23
----
31
4495

skipif mysql # not compatible
query II rowsort label-4012
SELECT 31 AS col0, + MAX ( DISTINCT 52 ) * + 86 + + 23
----
31
4495

query I rowsort
SELECT ALL - 8 + - 1
----
-9

query I rowsort
SELECT + + ( - 65 ) AS col2
----
-65

query I rowsort
SELECT 11 * 79 + - 22 AS col2
----
847

onlyif mysql # DIV for integer division: 
query I rowsort label-4016
SELECT + - 17 DIV + ( + + 75 ) + + - 79
----
-79

skipif mysql # not compatible
query I rowsort label-4016
SELECT + - 17 / + ( + + 75 ) + + - 79
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4017
SELECT - + 78 * + CAST( 32 AS SIGNED ) AS col1
----
-2496

skipif mysql # not compatible
query I rowsort label-4017
SELECT - + 78 * + CAST ( 32 AS INTEGER ) AS col1
----
-2496

onlyif mysql # DIV for integer division: 
query I rowsort label-4018
SELECT ALL 70 DIV - 77 + + 51
----
51

skipif mysql # not compatible
query I rowsort label-4018
SELECT ALL 70 / - 77 + + 51
----
51

query I rowsort
SELECT + 71 * + 26
----
1846

query I rowsort
SELECT - + 70 + - - 7
----
-63

query I rowsort
SELECT - 68 * 38 - - 54
----
-2530

onlyif mysql # aggregate syntax: 
query II rowsort label-4022
SELECT ALL + NULLIF ( + + 67, COUNT( * ) ) AS col1, - 13 * - 69 col0
----
67
897

skipif mysql # not compatible
query II rowsort label-4022
SELECT ALL + NULLIF ( + + 67, COUNT ( * ) ) AS col1, - 13 * - 69 col0
----
67
897

query I rowsort
SELECT DISTINCT + - ( 3 )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4024
SELECT - - 51 * + 88 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4024
SELECT - - 51 * + 88 + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT ALL - + MIN( DISTINCT - 53 ) * - 8 AS col0
----
-424

skipif mysql # not compatible
query I rowsort label-4025
SELECT ALL - + MIN ( DISTINCT - 53 ) * - 8 AS col0
----
-424

query I rowsort
SELECT ALL + - ( + 92 )
----
-92

onlyif mysql # DIV for integer division: 
query II rowsort label-4027
SELECT DISTINCT + 32 DIV - + 63, - NULLIF ( + 55, - 50 ) * + 78 + 57 AS col1
----
0
-4233

skipif mysql # not compatible
query II rowsort label-4027
SELECT DISTINCT + 32 / - + 63, - NULLIF ( + 55, - 50 ) * + 78 + 57 AS col1
----
0
-4233

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4028
SELECT + COUNT( * ) DIV - - ( + + 81 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4028
SELECT + COUNT ( * ) / - - ( + + 81 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4029
SELECT - 16 * - + COUNT( * ) * 73 * 81 AS col0
----
94608

skipif mysql # not compatible
query I rowsort label-4029
SELECT - 16 * - + COUNT ( * ) * 73 * 81 AS col0
----
94608

query II rowsort
SELECT + 10 AS col1, 44 + + 0 - COALESCE ( + + 43, - 7 )
----
10
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT DISTINCT CASE COUNT( * ) WHEN - ( - 75 ) THEN + ( 69 ) ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4031
SELECT DISTINCT CASE COUNT ( * ) WHEN - ( - 75 ) THEN + ( 69 ) ELSE NULL END col1
----
NULL

query I rowsort
SELECT ALL - 60 * + + 89 * 68 AS col0
----
-363120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4033
SELECT DISTINCT 23 AS col0, + 12 + + - SUM( ALL 73 ) / + ( + CAST( NULL AS SIGNED ) )
----
23
NULL

skipif mysql # not compatible
query II rowsort label-4033
SELECT DISTINCT 23 AS col0, + 12 + + - SUM ( ALL 73 ) / + ( + CAST ( NULL AS INTEGER ) )
----
23
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4034
SELECT - COUNT( * ) + - COALESCE ( 99, CAST( NULL AS SIGNED ) ) AS col1
----
-100

skipif mysql # not compatible
query I rowsort label-4034
SELECT - COUNT ( * ) + - COALESCE ( 99, CAST ( NULL AS INTEGER ) ) AS col1
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-4035
SELECT 21 + + + COUNT( * ) * ( 60 ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-4035
SELECT 21 + + + COUNT ( * ) * ( 60 ) AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4036
SELECT COUNT( 54 ) * 49
----
49

skipif mysql # not compatible
query I rowsort label-4036
SELECT COUNT ( 54 ) * 49
----
49

query I rowsort
SELECT ALL 78 + + + 86
----
164

query I rowsort
SELECT 79 + + - ( - 53 ) * + 52 * - - 37
----
102051

query I rowsort
SELECT DISTINCT + + 81 + 27 AS col0
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4040
SELECT 58 * + - CAST( + + 27 AS SIGNED )
----
-1566

skipif mysql # not compatible
query I rowsort label-4040
SELECT 58 * + - CAST ( + + 27 AS INTEGER )
----
-1566

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT ALL MIN( DISTINCT - 2 ) col2
----
-2

skipif mysql # not compatible
query I rowsort label-4041
SELECT ALL MIN ( DISTINCT - 2 ) col2
----
-2

query I rowsort
SELECT - 69 + - 80
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT + + 98 * 63 + + 77 + ( - - SUM( + + 84 ) ) * + ( + - SUM( - 42 ) ) AS col2
----
9779

skipif mysql # not compatible
query I rowsort label-4043
SELECT + + 98 * 63 + + 77 + ( - - SUM ( + + 84 ) ) * + ( + - SUM ( - 42 ) ) AS col2
----
9779

onlyif mysql # aggregate syntax: 
query I rowsort label-4044
SELECT + ( + CASE - 6 WHEN - 51 * + + ( 14 ) * COUNT( * ) THEN NULL WHEN + 77 THEN NULL ELSE + + 34 * 18 * - 21 END ) - + 53 col1
----
-12905

skipif mysql # not compatible
query I rowsort label-4044
SELECT + ( + CASE - 6 WHEN - 51 * + + ( 14 ) * COUNT ( * ) THEN NULL WHEN + 77 THEN NULL ELSE + + 34 * 18 * - 21 END ) - + 53 col1
----
-12905

onlyif mysql # aggregate syntax: 
query II rowsort label-4045
SELECT DISTINCT - 9 col0, - COUNT( * )
----
-9
-1

skipif mysql # not compatible
query II rowsort label-4045
SELECT DISTINCT - 9 col0, - COUNT ( * )
----
-9
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT COUNT( * ) * 98
----
98

skipif mysql # not compatible
query I rowsort label-4046
SELECT COUNT ( * ) * 98
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT ALL - - MIN( + 47 )
----
47

skipif mysql # not compatible
query I rowsort label-4047
SELECT ALL - - MIN ( + 47 )
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4048
SELECT - ( COUNT( * ) ) + + 11 DIV - 61
----
-1

skipif mysql # not compatible
query I rowsort label-4048
SELECT - ( COUNT ( * ) ) + + 11 / - 61
----
-1

query II rowsort
SELECT ALL - - 58 AS col2, + 28 + - 66
----
58
-38

query I rowsort
SELECT 20 + - 29 AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT 7 * + - NULLIF ( + - 26, - COUNT( * ) / - 89 ) + 81 col1
----
263

skipif mysql # not compatible
query I rowsort label-4051
SELECT 7 * + - NULLIF ( + - 26, - COUNT ( * ) / - 89 ) + 81 col1
----
263

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT - COUNT( * ) * - 79
----
79

skipif mysql # not compatible
query I rowsort label-4052
SELECT - COUNT ( * ) * - 79
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-4053
SELECT + 14 AS col1, - SUM( ALL 40 )
----
14
-40

skipif mysql # not compatible
query II rowsort label-4053
SELECT + 14 AS col1, - SUM ( ALL 40 )
----
14
-40

query I rowsort
SELECT DISTINCT 27 * 16
----
432

query I rowsort
SELECT 2 + 85 AS col1
----
87

query I rowsort
SELECT ALL 62 + 88
----
150

query I rowsort
SELECT DISTINCT 21 + + 33 * - 71
----
-2322

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT ALL - COUNT( * ) + + - 35 + + - 81 + ( - 46 ) * - 94 + + 51 + + 69 AS col1
----
4327

skipif mysql # not compatible
query I rowsort label-4058
SELECT ALL - COUNT ( * ) + + - 35 + + - 81 + ( - 46 ) * - 94 + + 51 + + 69 AS col1
----
4327

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT ALL 56 + - SUM( ALL - 17 )
----
73

skipif mysql # not compatible
query I rowsort label-4059
SELECT ALL 56 + - SUM ( ALL - 17 )
----
73

query I rowsort
SELECT ALL - 29 + 99 * + ( 70 )
----
6901

query I rowsort
SELECT 47 + - 94 AS col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT COUNT( DISTINCT 93 ) + + ( - COUNT( * ) ) + 43
----
43

skipif mysql # not compatible
query I rowsort label-4062
SELECT COUNT ( DISTINCT 93 ) + + ( - COUNT ( * ) ) + 43
----
43

query I rowsort
SELECT ALL + 56 + + 75
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT 27 * - COUNT( * ) * 45
----
-1215

skipif mysql # not compatible
query I rowsort label-4064
SELECT 27 * - COUNT ( * ) * 45
----
-1215

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4065
SELECT DISTINCT COALESCE ( CAST( NULL AS SIGNED ), 68, - CASE + CASE 57 WHEN - - 13 - - SUM( + ( - 39 ) ) THEN + 96 END WHEN 9 THEN + 36 END ) * + 65 + + 90 AS col0
----
4510

skipif mysql # not compatible
query I rowsort label-4065
SELECT DISTINCT COALESCE ( CAST ( NULL AS INTEGER ), 68, - CASE + CASE 57 WHEN - - 13 - - SUM ( + ( - 39 ) ) THEN + 96 END WHEN 9 THEN + 36 END ) * + 65 + + 90 AS col0
----
4510

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT DISTINCT - 11 + COALESCE ( 82, - - 9 ) * MIN( DISTINCT - + 34 ) * - COUNT( * )
----
2777

skipif mysql # not compatible
query I rowsort label-4066
SELECT DISTINCT - 11 + COALESCE ( 82, - - 9 ) * MIN ( DISTINCT - + 34 ) * - COUNT ( * )
----
2777

query I rowsort
SELECT ALL + - 78 - - ( - 72 ) AS col0
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT + NULLIF ( + + 1, - MIN( + 3 ) ) * + - 54 * + 38
----
-2052

skipif mysql # not compatible
query I rowsort label-4068
SELECT + NULLIF ( + + 1, - MIN ( + 3 ) ) * + - 54 * + 38
----
-2052

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4069
SELECT - - COALESCE ( - 11, - CASE - COALESCE ( CAST( NULL AS SIGNED ), + + 45, - 6 / MIN( - 71 ) + + 25 * - 79 ) WHEN - 3 - 31 * + CAST( + 95 AS SIGNED ) - + - ( + 85 ) THEN NULL ELSE - 53 END * - - COUNT( * ) )
----
-11

skipif mysql # not compatible
query I rowsort label-4069
SELECT - - COALESCE ( - 11, - CASE - COALESCE ( CAST ( NULL AS INTEGER ), + + 45, - 6 / MIN ( - 71 ) + + 25 * - 79 ) WHEN - 3 - 31 * + CAST ( + 95 AS INTEGER ) - + - ( + 85 ) THEN NULL ELSE - 53 END * - - COUNT ( * ) )
----
-11

query III rowsort
SELECT - ( + 33 ) AS col1, - 56 AS col2, - 57
----
-33
-56
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4071
SELECT - COALESCE ( + - 75, + ( COUNT( * ) ), + 66 ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-4071
SELECT - COALESCE ( + - 75, + ( COUNT ( * ) ), + 66 ) AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4072
SELECT CASE 46 WHEN - + SUM( ( - - 99 ) ) THEN - 68 + + - 21 + + 48 * - - 30 + 67 WHEN 33 + 43 * - - 72 THEN NULL ELSE + 92 END * + 29 col0
----
2668

skipif mysql # not compatible
query I rowsort label-4072
SELECT CASE 46 WHEN - + SUM ( ( - - 99 ) ) THEN - 68 + + - 21 + + 48 * - - 30 + 67 WHEN 33 + 43 * - - 72 THEN NULL ELSE + 92 END * + 29 col0
----
2668

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT + 23 * - COUNT( * ) - + COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-4073
SELECT + 23 * - COUNT ( * ) - + COUNT ( * )
----
-24

query I rowsort
SELECT + NULLIF ( - + 10, NULLIF ( - 49, - ( + 56 ) ) * + 42 ) AS col0
----
-10

query II rowsort
SELECT 63 + + - 22 + 1 AS col1, + 87 AS col1
----
42
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4076
SELECT DISTINCT COALESCE ( - 84, 46 * + COUNT( * ) + + 23 DIV 36 * - - 16 )
----
-84

skipif mysql # not compatible
query I rowsort label-4076
SELECT DISTINCT COALESCE ( - 84, 46 * + COUNT ( * ) + + 23 / 36 * - - 16 )
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4077
SELECT ALL + 29 * MAX( - - 60 ) DIV 40 DIV ( + ( + COUNT( * ) ) ) DIV + 12 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-4077
SELECT ALL + 29 * MAX ( - - 60 ) / 40 / ( + ( + COUNT ( * ) ) ) / + 12 AS col0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4078
SELECT + 55 DIV 67 col2
----
0

skipif mysql # not compatible
query I rowsort label-4078
SELECT + 55 / 67 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT MAX( + 98 ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-4079
SELECT MAX ( + 98 ) AS col0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4080
SELECT CAST( NULL AS SIGNED ) + - 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4080
SELECT CAST ( NULL AS INTEGER ) + - 26 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4081
SELECT DISTINCT ( - 9 ) DIV - COUNT( * ) * - COUNT( * ) + ( 67 ) DIV + 61 + + 5 col0, - 90 * + 63 AS col1
----
-3
-5670

skipif mysql # not compatible
query II rowsort label-4081
SELECT DISTINCT ( - 9 ) / - COUNT ( * ) * - COUNT ( * ) + ( 67 ) / + 61 + + 5 col0, - 90 * + 63 AS col1
----
-3
-5670

query I rowsort
SELECT ALL NULLIF ( - 24, - 44 ) * + 57 + + + 66
----
-1302

query I rowsort
SELECT DISTINCT 95 * 89 + - 66
----
8389

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4084
SELECT DISTINCT ( - + 97 ) * COUNT( * ) + 3 + - 97 DIV - - 96 AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-4084
SELECT DISTINCT ( - + 97 ) * COUNT ( * ) + 3 + - 97 / - - 96 AS col2
----
-95

query I rowsort
SELECT + NULLIF ( - 73, - ( 1 ) * - 60 ) col1
----
-73

query I rowsort
SELECT + 38 - 69
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT SUM( + + 60 ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-4087
SELECT SUM ( + + 60 ) AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT SUM( + + 78 )
----
78

skipif mysql # not compatible
query I rowsort label-4088
SELECT SUM ( + + 78 )
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4089
SELECT ALL COALESCE ( + NULLIF ( + ( ( 24 ) ), - 49 ), - - 70 * AVG ( ALL + 6 ) DIV 48 + - + 25 DIV + 45 + - + 29, + + 61 + - 12 ) + - CAST( + - NULLIF ( 99, COUNT( * ) - + 43 ) AS SIGNED )
----
123

skipif mysql # not compatible
query I rowsort label-4089
SELECT ALL COALESCE ( + NULLIF ( + ( ( 24 ) ), - 49 ), - - 70 * AVG ( ALL + 6 ) / 48 + - + 25 / + 45 + - + 29, + + 61 + - 12 ) + - CAST ( + - NULLIF ( 99, COUNT ( * ) - + 43 ) AS INTEGER )
----
123

query I rowsort
SELECT + 15 * - 14 AS col2
----
-210

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4091
SELECT + COUNT( * ) * - ( + 35 ) DIV 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4091
SELECT + COUNT ( * ) * - ( + 35 ) / 99 AS col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4092
SELECT 7, ( - + 21 ) DIV - 35 AS col1
----
7
0

skipif mysql # not compatible
query II rowsort label-4092
SELECT 7, ( - + 21 ) / - 35 AS col1
----
7
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4093
SELECT ALL COUNT( * ) + - 90 + + 36 - 45
----
-98

skipif mysql # not compatible
query I rowsort label-4093
SELECT ALL COUNT ( * ) + - 90 + + 36 - 45
----
-98

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4094
SELECT ALL 82 AS col0, - 56 DIV - + 85 + CAST( - 76 AS SIGNED ) + - - NULLIF ( + - 65, - AVG ( DISTINCT + 3 ) ) AS col2
----
82
-141

skipif mysql # not compatible
query II rowsort label-4094
SELECT ALL 82 AS col0, - 56 / - + 85 + CAST ( - 76 AS INTEGER ) + - - NULLIF ( + - 65, - AVG ( DISTINCT + 3 ) ) AS col2
----
82
-141

query I rowsort
SELECT DISTINCT 32 + + 12 * 60 AS col1
----
752

onlyif mysql # DIV for integer division: 
query II rowsort label-4096
SELECT ALL 41 AS col2, 32 DIV 85
----
41
0

skipif mysql # not compatible
query II rowsort label-4096
SELECT ALL 41 AS col2, 32 / 85
----
41
0

query II rowsort
SELECT ALL 93 AS col1, 46 AS col1
----
93
46

query II rowsort
SELECT 2 AS col2, 23 col0
----
2
23

query I rowsort
SELECT + - 29 * 36
----
-1044

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4100
SELECT - - CAST( NULL AS SIGNED ) * - + MIN( + 21 ), - 25 AS col1
----
NULL
-25

skipif mysql # not compatible
query II rowsort label-4100
SELECT - - CAST ( NULL AS INTEGER ) * - + MIN ( + 21 ), - 25 AS col1
----
NULL
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-4101
SELECT DISTINCT 49 DIV 92 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4101
SELECT DISTINCT 49 / 92 AS col0
----
0

query I rowsort
SELECT + + 54 + + 94 AS col2
----
148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4103
SELECT - 80, 51 * - COALESCE ( - 52, 2 * - 2 + CAST( NULL AS SIGNED ) DIV + 60 + + 93 - - COALESCE ( - COUNT( * ), + 64 + + 81, - 49 * 29 DIV - + 86 + + 41 ) * + 79 + + + 51 ) AS col0
----
-80
2652

skipif mysql # not compatible
query II rowsort label-4103
SELECT - 80, 51 * - COALESCE ( - 52, 2 * - 2 + CAST ( NULL AS INTEGER ) / + 60 + + 93 - - COALESCE ( - COUNT ( * ), + 64 + + 81, - 49 * 29 / - + 86 + + 41 ) * + 79 + + + 51 ) AS col0
----
-80
2652

query I rowsort
SELECT - 7 - 58 * + 56 * 42
----
-136423

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT + COUNT( * ) * - 56 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-4105
SELECT + COUNT ( * ) * - 56 AS col2
----
-56

query I rowsort
SELECT + ( - - 46 ) + + 31
----
77

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4107
SELECT ALL + + CAST( + - CAST( NULL AS DECIMAL ) AS SIGNED ) * - - ( 18 ) * - 89 / 58 * 64 + 3 * + + 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4107
SELECT ALL + + CAST ( + - CAST ( NULL AS REAL ) AS INTEGER ) * - - ( 18 ) * - 89 / 58 * 64 + 3 * + + 88 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4108
SELECT ALL COALESCE ( + 73, - COUNT( * ) + + - 84 * + - 44, + + ( - 46 ) * 19, - 92 ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-4108
SELECT ALL COALESCE ( + 73, - COUNT ( * ) + + - 84 * + - 44, + + ( - 46 ) * 19, - 92 ) AS col1
----
73

query I rowsort
SELECT ALL 34 * 93 * - CASE + - 29 WHEN - ( + 43 ) THEN NULL ELSE 29 END
----
-91698

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4110
SELECT ALL 92 AS col2, 0 DIV COUNT( * ) AS col0
----
92
0

skipif mysql # not compatible
query II rowsort label-4110
SELECT ALL 92 AS col2, 0 / COUNT ( * ) AS col0
----
92
0

query I rowsort
SELECT - - 39 + + + 12 + + 40 col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT ALL + COUNT( * ) * - 48 * - 3
----
144

skipif mysql # not compatible
query I rowsort label-4112
SELECT ALL + COUNT ( * ) * - 48 * - 3
----
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4113
SELECT - + 64 + COUNT( * ) DIV 13 - - CAST( + 9 AS SIGNED ) * + 47 AS col0, - 90 AS col1
----
359
-90

skipif mysql # not compatible
query II rowsort label-4113
SELECT - + 64 + COUNT ( * ) / 13 - - CAST ( + 9 AS INTEGER ) * + 47 AS col0, - 90 AS col1
----
359
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-4114
SELECT ALL 98, COALESCE ( + 3, COUNT( * ), - - COUNT( * ) + 25 ) AS col1
----
98
3

skipif mysql # not compatible
query II rowsort label-4114
SELECT ALL 98, COALESCE ( + 3, COUNT ( * ), - - COUNT ( * ) + 25 ) AS col1
----
98
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT - 62 * + + COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-4115
SELECT - 62 * + + COUNT ( * )
----
-62

query I rowsort
SELECT - 88 * - 72 + - 72
----
6264

onlyif mysql # aggregate syntax: 
query II rowsort label-4117
SELECT + - 80, - MAX( + 98 ) AS col2
----
-80
-98

skipif mysql # not compatible
query II rowsort label-4117
SELECT + - 80, - MAX ( + 98 ) AS col2
----
-80
-98

query I rowsort
SELECT + NULLIF ( - 49, - 53 )
----
-49

query I rowsort
SELECT ALL + 17 * - 69
----
-1173

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT DISTINCT - 10 * + COUNT( ALL - 5 ) + 57 col2
----
47

skipif mysql # not compatible
query I rowsort label-4120
SELECT DISTINCT - 10 * + COUNT ( ALL - 5 ) + 57 col2
----
47

query I rowsort
SELECT DISTINCT + ( + ( 34 ) )
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4122
SELECT - ( - - COUNT( * ) ) * - CAST( NULL AS SIGNED ) - + 34 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4122
SELECT - ( - - COUNT ( * ) ) * - CAST ( NULL AS INTEGER ) - + 34 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 89 * + 5 + + 54
----
499

query I rowsort
SELECT - 59 * - 37 + - + 44
----
2139

query I rowsort
SELECT ALL - 56 * - 70 + + 24
----
3944

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4126
SELECT - 97 * CAST( 11 AS SIGNED ) / - + AVG ( + CAST( NULL AS DECIMAL ) ) / - 55 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4126
SELECT - 97 * CAST ( 11 AS INTEGER ) / - + AVG ( + CAST ( NULL AS REAL ) ) / - 55 + + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4127
SELECT 29 * + COUNT( * ) / ( 25 ) + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4127
SELECT 29 * + COUNT ( * ) / ( 25 ) + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT 92 * CASE - 95 WHEN - 25 THEN - + 96 WHEN 20 THEN NULL END * 2 - + + 43 - + 0 - - COUNT( * ) * + MIN( DISTINCT + - 62 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4128
SELECT 92 * CASE - 95 WHEN - 25 THEN - + 96 WHEN 20 THEN NULL END * 2 - + + 43 - + 0 - - COUNT ( * ) * + MIN ( DISTINCT + - 62 ) AS col0
----
NULL

query I rowsort
SELECT - 91 + + + 80 AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4130
SELECT + MAX( 75 ) * 68 AS col0
----
5100

skipif mysql # not compatible
query I rowsort label-4130
SELECT + MAX ( 75 ) * 68 AS col0
----
5100

onlyif mysql # DIV for integer division: 
query II rowsort label-4131
SELECT ALL 62 DIV 69, - 55 - - 3 AS col0
----
0
-52

skipif mysql # not compatible
query II rowsort label-4131
SELECT ALL 62 / 69, - 55 - - 3 AS col0
----
0
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4132
SELECT DISTINCT - 46 * + 56 * MAX( ALL - 8 ) * - 41 * - MIN( + 58 ) * - 11 - - 28 - 46 - 58 col2
----
-539064140

skipif mysql # not compatible
query I rowsort label-4132
SELECT DISTINCT - 46 * + 56 * MAX ( ALL - 8 ) * - 41 * - MIN ( + 58 ) * - 11 - - 28 - 46 - 58 col2
----
-539064140

query I rowsort
SELECT DISTINCT + 72 col1
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4134
SELECT + 37 + + - COALESCE ( 40, 70, - + NULLIF ( - - 64, + COUNT( * ) * CAST( NULL AS SIGNED ) + + - 58 * 67 * - ( 86 ) + + MAX( DISTINCT 85 ) ) ) * + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4134
SELECT + 37 + + - COALESCE ( 40, 70, - + NULLIF ( - - 64, + COUNT ( * ) * CAST ( NULL AS INTEGER ) + + - 58 * 67 * - ( 86 ) + + MAX ( DISTINCT 85 ) ) ) * + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4135
SELECT - MAX( 88 ) AS col1, + 42
----
-88
42

skipif mysql # not compatible
query II rowsort label-4135
SELECT - MAX ( 88 ) AS col1, + 42
----
-88
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4136
SELECT + ( + + 13 ) + - NULLIF ( + 58, - CAST( - 98 AS SIGNED ) + - - 44 * - + MIN( + 8 ) + + 47 / + + 58 * + CASE 80 WHEN COALESCE ( - 96, + 67 ) THEN + 0 WHEN + ( + 46 ) * - 15 - + 6 THEN NULL WHEN - 97 THEN NULL ELSE NULL END ) + - 53
----
-98

skipif mysql # not compatible
query I rowsort label-4136
SELECT + ( + + 13 ) + - NULLIF ( + 58, - CAST ( - 98 AS INTEGER ) + - - 44 * - + MIN ( + 8 ) + + 47 / + + 58 * + CASE 80 WHEN COALESCE ( - 96, + 67 ) THEN + 0 WHEN + ( + 46 ) * - 15 - + 6 THEN NULL WHEN - 97 THEN NULL ELSE NULL END ) + - 53
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4137
SELECT ALL 19 * - CAST( + 6 AS SIGNED ) * 73 + - CAST( NULL AS SIGNED ) - - 25 + AVG ( ALL - ( 32 ) ) / - 20 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4137
SELECT ALL 19 * - CAST ( + 6 AS INTEGER ) * 73 + - CAST ( NULL AS INTEGER ) - - 25 + AVG ( ALL - ( 32 ) ) / - 20 col0
----
NULL

query I rowsort
SELECT ALL 5 * ( + 70 ) AS col2
----
350

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT + + COUNT( * ) * + 12 + - 45 - 64 + + 42 * 14 + 26 * + + 57 * 37 AS col2
----
55325

skipif mysql # not compatible
query I rowsort label-4139
SELECT + + COUNT ( * ) * + 12 + - 45 - 64 + + 42 * 14 + 26 * + + 57 * 37 AS col2
----
55325

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4140
SELECT ALL - ( - + ( - + CAST( NULL AS SIGNED ) ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4140
SELECT ALL - ( - + ( - + CAST ( NULL AS INTEGER ) ) ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4141
SELECT DISTINCT CASE - 65 WHEN 38 * + 99 THEN - COUNT( - 1 ) * + MAX( ALL 37 ) / 37 * + 24 + - 98 / + 2 WHEN + - 95 - - 30 + + COUNT( * ) * COUNT( * ) THEN CAST( NULL AS SIGNED ) * 53 - - ( + 2 ) * + 4 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4141
SELECT DISTINCT CASE - 65 WHEN 38 * + 99 THEN - COUNT ( - 1 ) * + MAX ( ALL 37 ) / 37 * + 24 + - 98 / + 2 WHEN + - 95 - - 30 + + COUNT ( * ) * COUNT ( * ) THEN CAST ( NULL AS INTEGER ) * 53 - - ( + 2 ) * + 4 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 63 + - 12 AS col0
----
51

query I rowsort
SELECT ALL 68 + + 39 AS col0
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT + NULLIF ( - + COUNT( * ), + 28 + - COUNT( * ) ) - - NULLIF ( + 60, + + 9 ) + 33 * + COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-4144
SELECT + NULLIF ( - + COUNT ( * ), + 28 + - COUNT ( * ) ) - - NULLIF ( + 60, + + 9 ) + 33 * + COUNT ( * )
----
92

query I rowsort
SELECT + + 16 * ( - 86 ) AS col2
----
-1376

query I rowsort
SELECT DISTINCT - 30 + + 50 AS col0
----
20

query I rowsort
SELECT - 75 + 24 + - ( - 55 ) * - 78 + - 49 AS col2
----
-4390

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4148
SELECT DISTINCT + CAST( + 17 AS SIGNED ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-4148
SELECT DISTINCT + CAST ( + 17 AS INTEGER ) AS col0
----
17

query I rowsort
SELECT DISTINCT 98 * 53 AS col2
----
5194

query I rowsort
SELECT 2 * + 77 AS col2
----
154

query I rowsort
SELECT 47 + + + 96
----
143

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4152
SELECT DISTINCT + 24 - + COUNT( * ) DIV + 30 + - + 17 - 56 * 65 AS col1
----
-3633

skipif mysql # not compatible
query I rowsort label-4152
SELECT DISTINCT + 24 - + COUNT ( * ) / + 30 + - + 17 - 56 * 65 AS col1
----
-3633

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4153
SELECT 56 + + 5 DIV + ( + - COALESCE ( 41, - COUNT( * ) * COUNT( * ) ) ) + - - 94
----
150

skipif mysql # not compatible
query I rowsort label-4153
SELECT 56 + + 5 / + ( + - COALESCE ( 41, - COUNT ( * ) * COUNT ( * ) ) ) + - - 94
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT ALL MIN( + 95 ) - + - 18
----
113

skipif mysql # not compatible
query I rowsort label-4154
SELECT ALL MIN ( + 95 ) - + - 18
----
113

query II rowsort
SELECT 19 AS col2, 41 + - + ( 92 ) + - - 88 AS col2
----
19
37

query I rowsort
SELECT ALL - ( - 41 ) col1
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4157
SELECT ALL - COUNT( + 22 ) DIV + 89 + 65 + - COUNT( * ) * + + 68 * + 25 + - - 53 * + + 72 * + - 85 col0
----
-325995

skipif mysql # not compatible
query I rowsort label-4157
SELECT ALL - COUNT ( + 22 ) / + 89 + 65 + - COUNT ( * ) * + + 68 * + 25 + - - 53 * + + 72 * + - 85 col0
----
-325995

query II rowsort
SELECT + 79 AS col2, - 31 - - - 80 * - 3 AS col2
----
79
209

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4159
SELECT DISTINCT - CAST( - 2 AS SIGNED ) * - ( - - 61 )
----
-122

skipif mysql # not compatible
query I rowsort label-4159
SELECT DISTINCT - CAST ( - 2 AS INTEGER ) * - ( - - 61 )
----
-122

query I rowsort
SELECT ALL - ( NULLIF ( - 72, + 37 * + 51 + - 9 ) )
----
72

query I rowsort
SELECT 65 * - 51 AS col0
----
-3315

query I rowsort
SELECT ALL - 35 * + 82 col1
----
-2870

query I rowsort
SELECT 36 - + 12 AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT ALL - MIN( DISTINCT 21 )
----
-21

skipif mysql # not compatible
query I rowsort label-4164
SELECT ALL - MIN ( DISTINCT 21 )
----
-21

query I rowsort
SELECT + 19 * + + 66
----
1254

onlyif mysql # aggregate syntax: 
query I rowsort label-4166
SELECT ALL - + CASE + ( + - 3 ) WHEN 11 * + CASE + MAX( DISTINCT + 19 ) WHEN - 59 * - - 51 THEN - + 80 + - 29 WHEN + 70 THEN NULL ELSE COUNT( - 87 ) END + ( + - 98 ) * - 0 THEN NULL WHEN - + 64 * 19 - + 8 THEN + 63 + 51 ELSE NULL END * - 75 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4166
SELECT ALL - + CASE + ( + - 3 ) WHEN 11 * + CASE + MAX ( DISTINCT + 19 ) WHEN - 59 * - - 51 THEN - + 80 + - 29 WHEN + 70 THEN NULL ELSE COUNT ( - 87 ) END + ( + - 98 ) * - 0 THEN NULL WHEN - + 64 * 19 - + 8 THEN + 63 + 51 ELSE NULL END * - 75 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4167
SELECT DISTINCT - CAST( CASE - - 32 WHEN - 14 * - COUNT( * ) - + 64 - - CAST( 8 AS DECIMAL ) THEN + NULLIF ( + COUNT( * ), 75 ) / 60 WHEN 67 THEN + 92 ELSE NULL END AS DECIMAL ) * + 35, + 2 AS col1
----
NULL
2

skipif mysql # not compatible
query II rowsort label-4167
SELECT DISTINCT - CAST ( CASE - - 32 WHEN - 14 * - COUNT ( * ) - + 64 - - CAST ( 8 AS REAL ) THEN + NULLIF ( + COUNT ( * ), 75 ) / 60 WHEN 67 THEN + 92 ELSE NULL END AS REAL ) * + 35, + 2 AS col1
----
NULL
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4168
SELECT DISTINCT 68 / 11 + + 65 - - ( + CAST( NULL AS DECIMAL ) ) + 61 + 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4168
SELECT DISTINCT 68 / 11 + + 65 - - ( + CAST ( NULL AS REAL ) ) + 61 + 84 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4169
SELECT ALL + + 5 DIV COUNT( * ) * - + 97 AS col1
----
-485

skipif mysql # not compatible
query I rowsort label-4169
SELECT ALL + + 5 / COUNT ( * ) * - + 97 AS col1
----
-485

query I rowsort
SELECT 48 - 24 * + COALESCE ( 80, 4, + - 92 )
----
-1872

onlyif mysql # DIV for integer division: 
query II rowsort label-4171
SELECT ALL + 35 col2, 55 DIV + ( - 70 ) * - - 61 + - - 49 * + 44 * + - 88 + - 51 DIV + 74
----
35
-189728

skipif mysql # not compatible
query II rowsort label-4171
SELECT ALL + 35 col2, 55 / + ( - 70 ) * - - 61 + - - 49 * + 44 * + - 88 + - 51 / + 74
----
35
-189728

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT ALL COUNT( * ) + - 92
----
-91

skipif mysql # not compatible
query I rowsort label-4172
SELECT ALL COUNT ( * ) + - 92
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4173
SELECT ALL 52 + COUNT( * ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-4173
SELECT ALL 52 + COUNT ( * ) AS col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT 27 + + - CASE + 9 WHEN + 34 THEN 98 WHEN CASE + + 76 WHEN + 79 * - CASE - 44 WHEN - + 74 THEN + COUNT( * ) ELSE COUNT( * ) END THEN NULL WHEN CASE - - 40 WHEN - 73 * + 48 + + AVG ( 86 ) THEN + 24 END - - 61 + 26 * - + 48 THEN - ( - 80 ) END THEN 15 * - - COUNT( * ) END - + 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4174
SELECT 27 + + - CASE + 9 WHEN + 34 THEN 98 WHEN CASE + + 76 WHEN + 79 * - CASE - 44 WHEN - + 74 THEN + COUNT ( * ) ELSE COUNT ( * ) END THEN NULL WHEN CASE - - 40 WHEN - 73 * + 48 + + AVG ( 86 ) THEN + 24 END - - 61 + 26 * - + 48 THEN - ( - 80 ) END THEN 15 * - - COUNT ( * ) END - + 37 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4175
SELECT 17 - MIN( 56 ) col2
----
-39

skipif mysql # not compatible
query I rowsort label-4175
SELECT 17 - MIN ( 56 ) col2
----
-39

query I rowsort
SELECT - ( + 97 ) col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT DISTINCT - + 50 * - COUNT( * ) + - + 3 + + 79
----
126

skipif mysql # not compatible
query I rowsort label-4177
SELECT DISTINCT - + 50 * - COUNT ( * ) + - + 3 + + 79
----
126

query I rowsort
SELECT ALL - 1 + - - 16 + - 33 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4179
SELECT DISTINCT MIN( + 79 ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-4179
SELECT DISTINCT MIN ( + 79 ) AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT - MAX( - + ( 84 ) ) + + 44 + + MIN( - 7 ) AS col2
----
121

skipif mysql # not compatible
query I rowsort label-4180
SELECT - MAX ( - + ( 84 ) ) + + 44 + + MIN ( - 7 ) AS col2
----
121

onlyif mysql # aggregate syntax: 
query II rowsort label-4181
SELECT DISTINCT + 2 AS col2, 85 * COUNT( + + COALESCE ( - + 72, - + 24 ) )
----
2
85

skipif mysql # not compatible
query II rowsort label-4181
SELECT DISTINCT + 2 AS col2, 85 * COUNT ( + + COALESCE ( - + 72, - + 24 ) )
----
2
85

query I rowsort
SELECT DISTINCT - 99 + 85
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4183
SELECT ALL 16 + COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-4183
SELECT ALL 16 + COUNT ( * )
----
17

query I rowsort
SELECT 96 * 43 * - - 53 * + 48
----
10501632

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4185
SELECT COUNT( * ) DIV - 21 * - 80 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4185
SELECT COUNT ( * ) / - 21 * - 80 AS col0
----
0

query I rowsort
SELECT 50 * + - 18 AS col1
----
-900

query II rowsort
SELECT 80 AS col0, - 15 AS col2
----
80
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4188
SELECT ALL SUM( - 3 ) DIV 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4188
SELECT ALL SUM ( - 3 ) / 99 AS col2
----
0

query I rowsort
SELECT ALL 56 - - 2 AS col1
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4190
SELECT DISTINCT COUNT( * ) DIV - - 31 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4190
SELECT DISTINCT COUNT ( * ) / - - 31 AS col1
----
0

query I rowsort
SELECT ALL + 11 - + 36 * + - NULLIF ( + + ( + 65 ), + + 79 * 67 )
----
2351

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4192
SELECT ( - + COUNT( * ) ) DIV + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4192
SELECT ( - + COUNT ( * ) ) / + COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT ALL CASE + + 57 WHEN + ( 19 ) + + 24 * + + 48 * + 88 * 28 THEN NULL WHEN + COUNT( * ) THEN - 73 ELSE - 54 END * - ( 92 )
----
4968

skipif mysql # not compatible
query I rowsort label-4193
SELECT ALL CASE + + 57 WHEN + ( 19 ) + + 24 * + + 48 * + 88 * 28 THEN NULL WHEN + COUNT ( * ) THEN - 73 ELSE - 54 END * - ( 92 )
----
4968

query I rowsort
SELECT DISTINCT 9 * + 7 * - 81
----
-5103

query I rowsort
SELECT 50 * 35
----
1750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4196
SELECT DISTINCT - COUNT( - - CAST( 50 AS SIGNED ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4196
SELECT DISTINCT - COUNT ( - - CAST ( 50 AS INTEGER ) ) AS col2
----
-1

query I rowsort
SELECT ALL 44 * + 34 AS col2
----
1496

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT + MAX( - - 9 )
----
9

skipif mysql # not compatible
query I rowsort label-4198
SELECT + MAX ( - - 9 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT - 75 * 2 + - COUNT( * ) - + 43 AS col0
----
-194

skipif mysql # not compatible
query I rowsort label-4199
SELECT - 75 * 2 + - COUNT ( * ) - + 43 AS col0
----
-194

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT COUNT( * ) * - + 7 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-4200
SELECT COUNT ( * ) * - + 7 AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT 75 * + + MAX( - 48 ) AS col0
----
-3600

skipif mysql # not compatible
query I rowsort label-4201
SELECT 75 * + + MAX ( - 48 ) AS col0
----
-3600

query I rowsort
SELECT 67 * + - 16 - + 97 AS col2
----
-1169

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT ALL - ( - SUM( ALL + 18 ) ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-4203
SELECT ALL - ( - SUM ( ALL + 18 ) ) AS col2
----
18

query I rowsort
SELECT 55 + - 73 col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT ALL - COUNT( - 86 )
----
-1

skipif mysql # not compatible
query I rowsort label-4205
SELECT ALL - COUNT ( - 86 )
----
-1

query I rowsort
SELECT - 26 + 25 AS col2
----
-1

query I rowsort
SELECT DISTINCT + - 2 + + 64 AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT ALL + 57 + - - COUNT( * ) * - - 3 + - 86 + - 94 * COUNT( DISTINCT - 9 ) AS col2
----
-120

skipif mysql # not compatible
query I rowsort label-4208
SELECT ALL + 57 + - - COUNT ( * ) * - - 3 + - 86 + - 94 * COUNT ( DISTINCT - 9 ) AS col2
----
-120

query I rowsort
SELECT 63 + - - ( - 31 ) AS col2
----
32

query I rowsort
SELECT - COALESCE ( + 21, - 43 )
----
-21

query II rowsort
SELECT - 55 AS col1, + 97 AS col1
----
-55
97

query I rowsort
SELECT - 67 + + 92 * + + 28
----
2509

query I rowsort
SELECT DISTINCT + 13 + 37 AS col0
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4214
SELECT ALL COUNT( * ) AS col1, - ( - CASE 3 WHEN 88 THEN NULL WHEN + - 20 THEN + 59 WHEN + 82 + + + 60 THEN NULL ELSE + 61 DIV + 36 END ) * + COUNT( * ) - - + 73 + + 11 AS col2
----
1
85

skipif mysql # not compatible
query II rowsort label-4214
SELECT ALL COUNT ( * ) AS col1, - ( - CASE 3 WHEN 88 THEN NULL WHEN + - 20 THEN + 59 WHEN + 82 + + + 60 THEN NULL ELSE + 61 / + 36 END ) * + COUNT ( * ) - - + 73 + + 11 AS col2
----
1
85

onlyif mysql # aggregate syntax: 
query II rowsort label-4215
SELECT ALL + CASE + 23 WHEN - 87 + COUNT( * ) THEN - - 58 ELSE NULL END + + 91, - 18 AS col1
----
NULL
-18

skipif mysql # not compatible
query II rowsort label-4215
SELECT ALL + CASE + 23 WHEN - 87 + COUNT ( * ) THEN - - 58 ELSE NULL END + + 91, - 18 AS col1
----
NULL
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4216
SELECT COUNT( * ) * 77 * COUNT( * ) * + + COUNT( * ) * - MAX( DISTINCT - 35 ) + ( - 5 ) col2
----
2690

skipif mysql # not compatible
query I rowsort label-4216
SELECT COUNT ( * ) * 77 * COUNT ( * ) * + + COUNT ( * ) * - MAX ( DISTINCT - 35 ) + ( - 5 ) col2
----
2690

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT ALL - ( - SUM( - 77 ) )
----
-77

skipif mysql # not compatible
query I rowsort label-4217
SELECT ALL - ( - SUM ( - 77 ) )
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4218
SELECT + CAST( NULL AS SIGNED ) * - + COALESCE ( - 76, + NULLIF ( + ( + 30 ), + 55 ) ), - 85 DIV ( + 67 ) + - COUNT( * ) AS col0
----
NULL
-2

skipif mysql # not compatible
query II rowsort label-4218
SELECT + CAST ( NULL AS INTEGER ) * - + COALESCE ( - 76, + NULLIF ( + ( + 30 ), + 55 ) ), - 85 / ( + 67 ) + - COUNT ( * ) AS col0
----
NULL
-2

query I rowsort
SELECT DISTINCT ( + 72 )
----
72

query I rowsort
SELECT ALL 86 + + + 54 AS col0
----
140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4221
SELECT 65 * - - CASE + CAST( NULL AS SIGNED ) WHEN + 93 THEN NULL WHEN - + 95 + + 89 THEN NULL ELSE - + 59 END * - COUNT( * ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4221
SELECT 65 * - - CASE + CAST ( NULL AS INTEGER ) WHEN + 93 THEN NULL WHEN - + 95 + + 89 THEN NULL ELSE - + 59 END * - COUNT ( * ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4222
SELECT ALL COUNT( + - CAST( - 47 AS SIGNED ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4222
SELECT ALL COUNT ( + - CAST ( - 47 AS INTEGER ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT ALL + - MIN( DISTINCT 17 ) - - 10
----
-7

skipif mysql # not compatible
query I rowsort label-4223
SELECT ALL + - MIN ( DISTINCT 17 ) - - 10
----
-7

query I rowsort
SELECT - COALESCE ( + 92, + 88, ( 17 ) * 26 ) col0
----
-92

query I rowsort
SELECT + 4 * + 93 AS col1
----
372

onlyif mysql # aggregate syntax: 
query I rowsort label-4226
SELECT ALL COUNT( * ) * + NULLIF ( + + MAX( ALL 52 ), 52 ) * 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4226
SELECT ALL COUNT ( * ) * + NULLIF ( + + MAX ( ALL 52 ), 52 ) * 69 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4227
SELECT - COALESCE ( - 24, + 34 * 36 * - - 95, SUM( - - 55 ) )
----
24

skipif mysql # not compatible
query I rowsort label-4227
SELECT - COALESCE ( - 24, + 34 * 36 * - - 95, SUM ( - - 55 ) )
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4228
SELECT ALL + COUNT( ALL - 53 ) * CAST( NULLIF ( - - 23, + 26 + - + 95 ) AS SIGNED ) DIV + 9
----
2

skipif mysql # not compatible
query I rowsort label-4228
SELECT ALL + COUNT ( ALL - 53 ) * CAST ( NULLIF ( - - 23, + 26 + - + 95 ) AS INTEGER ) / + 9
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4229
SELECT ALL + CASE - 85 WHEN - 22 + 94 THEN - 78 + + 14 + + 9 * 55 * - MAX( - 50 ) END * + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-4229
SELECT ALL + CASE - 85 WHEN - 22 + 94 THEN - 78 + + 14 + + 9 * 55 * - MAX ( - 50 ) END * + 62
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4230
SELECT DISTINCT COALESCE ( 31, + + 79 * 0 * + ( - MIN( + NULLIF ( + + CAST( 94 AS SIGNED ), + - 85 ) ) ), NULLIF ( 29, + - CAST( - NULLIF ( 71, + CAST( 79 AS SIGNED ) + + - COUNT( ALL + 67 ) ) AS SIGNED ) ) ) * 0 DIV ( + 82 ) + - + 5
----
-5

skipif mysql # not compatible
query I rowsort label-4230
SELECT DISTINCT COALESCE ( 31, + + 79 * 0 * + ( - MIN ( + NULLIF ( + + CAST ( 94 AS INTEGER ), + - 85 ) ) ), NULLIF ( 29, + - CAST ( - NULLIF ( 71, + CAST ( 79 AS INTEGER ) + + - COUNT ( ALL + 67 ) ) AS INTEGER ) ) ) * 0 / ( + 82 ) + - + 5
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4231
SELECT + 34 / - 11 - 70 * - 18 / - + NULLIF ( + ( + CAST( NULL AS SIGNED ) ), - + COUNT( * ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4231
SELECT + 34 / - 11 - 70 * - 18 / - + NULLIF ( + ( + CAST ( NULL AS INTEGER ) ), - + COUNT ( * ) ) col0
----
NULL

query I rowsort
SELECT + 71 * 78 * - 90 + + + 93 AS col0
----
-498327

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4233
SELECT CASE 70 WHEN + COUNT( * ) + - ( - 67 ) * + 44 + 5 / CAST( - 38 AS DECIMAL ) + + + 59 + + 83 THEN NULL WHEN + COUNT( * ) / + 52 THEN NULL ELSE + 94 END
----
94

skipif mysql # not compatible
query I rowsort label-4233
SELECT CASE 70 WHEN + COUNT ( * ) + - ( - 67 ) * + 44 + 5 / CAST ( - 38 AS REAL ) + + + 59 + + 83 THEN NULL WHEN + COUNT ( * ) / + 52 THEN NULL ELSE + 94 END
----
94

query I rowsort
SELECT CASE + ( 32 ) WHEN - 53 THEN + 18 + - + 45 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4235
SELECT + MIN( DISTINCT 69 ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-4235
SELECT + MIN ( DISTINCT 69 ) AS col1
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-4236
SELECT + ( - 45 ) DIV - 39
----
1

skipif mysql # not compatible
query I rowsort label-4236
SELECT + ( - 45 ) / - 39
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4237
SELECT ALL 96 DIV 87
----
1

skipif mysql # not compatible
query I rowsort label-4237
SELECT ALL 96 / 87
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4238
SELECT + COUNT( * ) * - + 49 DIV - 98
----
0

skipif mysql # not compatible
query I rowsort label-4238
SELECT + COUNT ( * ) * - + 49 / - 98
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4239
SELECT - ( - 18 ) + - + 63 + + + COALESCE ( - 11, + + COUNT( * ) ) * + - CASE - 66 WHEN - MIN( DISTINCT - - 76 ) + + 41 THEN NULL WHEN COUNT( * ) THEN - 47 / + + 13 END * + 57, + 1 AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4239
SELECT - ( - 18 ) + - + 63 + + + COALESCE ( - 11, + + COUNT ( * ) ) * + - CASE - 66 WHEN - MIN ( DISTINCT - - 76 ) + + 41 THEN NULL WHEN COUNT ( * ) THEN - 47 / + + 13 END * + 57, + 1 AS col1
----
NULL
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4240
SELECT + COALESCE ( - + 7, + 86 + + COALESCE ( - 90, - COALESCE ( COUNT( * ), - 2 DIV + 96 * 88 - 20 + ( + - 0 ), - + 36 * + + 51 ) ), 0 ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-4240
SELECT + COALESCE ( - + 7, + 86 + + COALESCE ( - 90, - COALESCE ( COUNT ( * ), - 2 / + 96 * 88 - 20 + ( + - 0 ), - + 36 * + + 51 ) ), 0 ) AS col1
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-4241
SELECT + ( - 14 ) DIV - + 53
----
0

skipif mysql # not compatible
query I rowsort label-4241
SELECT + ( - 14 ) / - + 53
----
0

query I rowsort
SELECT ALL 33 * + + 59 + - 48
----
1899

query I rowsort
SELECT + ( - 87 ) * 33
----
-2871

onlyif mysql # DIV for integer division: 
query I rowsort label-4244
SELECT + + ( - + 99 ) DIV + - 21 + - 84 - - ( - 68 )
----
-148

skipif mysql # not compatible
query I rowsort label-4244
SELECT + + ( - + 99 ) / + - 21 + - 84 - - ( - 68 )
----
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT 69 * COUNT( * ) - 82
----
-13

skipif mysql # not compatible
query I rowsort label-4245
SELECT 69 * COUNT ( * ) - 82
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT + COUNT( - 5 ) - + 79 * - 53 AS col2
----
4188

skipif mysql # not compatible
query I rowsort label-4246
SELECT + COUNT ( - 5 ) - + 79 * - 53 AS col2
----
4188

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4247
SELECT ALL + CAST( - - 76 AS SIGNED ) AS col0, 60
----
76
60

skipif mysql # not compatible
query II rowsort label-4247
SELECT ALL + CAST ( - - 76 AS INTEGER ) AS col0, 60
----
76
60

query I rowsort
SELECT ALL + - 8 * + - 23 - - 61 * - 7 + + 94 * + + 67
----
6055

query I rowsort
SELECT 54 * - 45 + - 48 - + 71 AS col1
----
-2549

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT DISTINCT - COALESCE ( - 55, - 38 * 13 * 35 + - + COUNT( * ) )
----
55

skipif mysql # not compatible
query I rowsort label-4250
SELECT DISTINCT - COALESCE ( - 55, - 38 * 13 * 35 + - + COUNT ( * ) )
----
55

query I rowsort
SELECT ALL + - 33 - 8
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4252
SELECT ALL - 99 - 2 * - + CAST( + 85 AS SIGNED )
----
71

skipif mysql # not compatible
query I rowsort label-4252
SELECT ALL - 99 - 2 * - + CAST ( + 85 AS INTEGER )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4253
SELECT - + ( ( + SUM( 19 ) ) ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-4253
SELECT - + ( ( + SUM ( 19 ) ) ) AS col1
----
-19

query II rowsort
SELECT - 20 + + 51 AS col2, 65 AS col1
----
31
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4255
SELECT - 90 * 73 * + CAST( - 19 AS SIGNED ) AS col0
----
124830

skipif mysql # not compatible
query I rowsort label-4255
SELECT - 90 * 73 * + CAST ( - 19 AS INTEGER ) AS col0
----
124830

query I rowsort
SELECT ALL + 7 * 51
----
357

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT ALL + CASE + 39 WHEN + - SUM( DISTINCT + + NULLIF ( 1, 81 + - 74 ) ) * - - 20 * 6 + 51 + - 57 THEN NULL WHEN - 86 THEN - - COUNT( * ) + + COUNT( * ) ELSE - 88 * 35 * SUM( - 67 ) + + 75 END col0
----
206435

skipif mysql # not compatible
query I rowsort label-4257
SELECT ALL + CASE + 39 WHEN + - SUM ( DISTINCT + + NULLIF ( 1, 81 + - 74 ) ) * - - 20 * 6 + 51 + - 57 THEN NULL WHEN - 86 THEN - - COUNT ( * ) + + COUNT ( * ) ELSE - 88 * 35 * SUM ( - 67 ) + + 75 END col0
----
206435

onlyif mysql # aggregate syntax: 
query II rowsort label-4258
SELECT - 33 + + 33 AS col1, COUNT( * ) AS col0
----
0
1

skipif mysql # not compatible
query II rowsort label-4258
SELECT - 33 + + 33 AS col1, COUNT ( * ) AS col0
----
0
1

query I rowsort
SELECT - 81 - - + 13 AS col0
----
-68

query I rowsort
SELECT - 51 + 87
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-4261
SELECT - 69 DIV - 14 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-4261
SELECT - 69 / - 14 AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT ALL COALESCE ( - 15, - - COUNT( * ) ) col1
----
-15

skipif mysql # not compatible
query I rowsort label-4262
SELECT ALL COALESCE ( - 15, - - COUNT ( * ) ) col1
----
-15

query I rowsort
SELECT - 45 * + 18 col1
----
-810

query II rowsort
SELECT DISTINCT ( ( + + 18 ) ) col2, 11 AS col2
----
18
11

query I rowsort
SELECT - 21 + 59 + - + 5 + + + 79
----
112

onlyif mysql # DIV for integer division: 
query I rowsort label-4266
SELECT ALL - 11 DIV + + 34 * + 39 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4266
SELECT ALL - 11 / + + 34 * + 39 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4267
SELECT - 33 DIV + - 8
----
4

skipif mysql # not compatible
query I rowsort label-4267
SELECT - 33 / + - 8
----
4

query I rowsort
SELECT - 38 * - 24
----
912

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT + COUNT( DISTINCT - - 57 ) + - MIN( DISTINCT 77 )
----
-76

skipif mysql # not compatible
query I rowsort label-4269
SELECT + COUNT ( DISTINCT - - 57 ) + - MIN ( DISTINCT 77 )
----
-76

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-4270
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col2, 20 DIV 10 * + - 52 - + 50 + 88 * - 54
----
NULL
-4906

skipif mysql # not compatible
query II rowsort label-4270
SELECT DISTINCT CAST ( NULL AS REAL ) AS col2, 20 / 10 * + - 52 - + 50 + 88 * - 54
----
NULL
-4906

query I rowsort
SELECT - 26 + ( - 43 )
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4272
SELECT - COALESCE ( 91, - MAX( - 44 ) + + 14, - - 62 - 38 + - - 39 * - - CAST( NULL AS SIGNED ) ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-4272
SELECT - COALESCE ( 91, - MAX ( - 44 ) + + 14, - - 62 - 38 + - - 39 * - - CAST ( NULL AS INTEGER ) ) AS col2
----
-91

query II rowsort
SELECT ALL 23, - 27 + 25 AS col0
----
23
-2

query I rowsort
SELECT - 2 + + + 13 AS col0
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4275
SELECT ALL 67 DIV - - 9 + + SUM( ALL - - 73 ) * - 22 AS col2
----
-1599

skipif mysql # not compatible
query I rowsort label-4275
SELECT ALL 67 / - - 9 + + SUM ( ALL - - 73 ) * - 22 AS col2
----
-1599

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT ALL CASE COUNT( * ) WHEN 62 THEN - + NULLIF ( - - 6, - + 50 ) + 93 ELSE NULL END / - 38 + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-4276
SELECT ALL CASE COUNT ( * ) WHEN 62 THEN - + NULLIF ( - - 6, - + 50 ) + 93 ELSE NULL END / - 38 + 26
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4277
SELECT DISTINCT 29 DIV 64 + + + SUM( DISTINCT - 42 ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-4277
SELECT DISTINCT 29 / 64 + + + SUM ( DISTINCT - 42 ) AS col1
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4278
SELECT ALL SUM( 6 ) DIV - COUNT( * ) + - 20
----
-26

skipif mysql # not compatible
query I rowsort label-4278
SELECT ALL SUM ( 6 ) / - COUNT ( * ) + - 20
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-4279
SELECT + 91 DIV + + 19 + - - ( + - 68 ) + - + 32 + - 87 * 12 AS col2
----
-1140

skipif mysql # not compatible
query I rowsort label-4279
SELECT + 91 / + + 19 + - - ( + - 68 ) + - + 32 + - 87 * 12 AS col2
----
-1140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4280
SELECT ALL 4 / + ( - CAST( + COUNT( * ) AS SIGNED ) ) * 84 / - 71 + NULLIF ( ( - 14 ), COUNT( * ) * - + 8 * + 22 * NULLIF ( - 12, + + 32 ) ) + ( + - 17 ) + + COUNT( * ) + - AVG ( ALL CAST( NULL AS SIGNED ) ) + + 50 + - - 90 - COUNT( * ) * - 83 * + - 32 * - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-4280
SELECT ALL 4 / + ( - CAST ( + COUNT ( * ) AS INTEGER ) ) * 84 / - 71 + NULLIF ( ( - 14 ), COUNT ( * ) * - + 8 * + 22 * NULLIF ( - 12, + + 32 ) ) + ( + - 17 ) + + COUNT ( * ) + - AVG ( ALL CAST ( NULL AS INTEGER ) ) + + 50 + - - 90 - COUNT ( * ) * - 83 * + - 32 * - 94
----
NULL

query II rowsort
SELECT ALL + 20, 16 * ( - 80 ) AS col1
----
20
-1280

query I rowsort
SELECT + + ( - 18 )
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4283
SELECT ALL - 61 DIV + ( - + 25 ) + - - COUNT( * ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-4283
SELECT ALL - 61 / + ( - + 25 ) + - - COUNT ( * ) AS col2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4284
SELECT 24 * - - ( + - SUM( ALL - - 81 ) ) * - + 2 * 8 + - ( + - CAST( + 67 AS SIGNED ) ) col1, - 40 + 67 * + 63 / + + 23 / - CAST( NULL AS SIGNED )
----
31171
NULL

skipif mysql # not compatible
query II rowsort label-4284
SELECT 24 * - - ( + - SUM ( ALL - - 81 ) ) * - + 2 * 8 + - ( + - CAST ( + 67 AS INTEGER ) ) col1, - 40 + 67 * + 63 / + + 23 / - CAST ( NULL AS INTEGER )
----
31171
NULL

query I rowsort
SELECT + 44 - - 69 + - 45
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4286
SELECT - 81 * - 56 + + - 5 - ( - COUNT( * ) ) * - 41 - + CASE + + 10 WHEN - COUNT( * ) + - - ( 7 ) THEN CAST( NULL AS SIGNED ) * 98 + + ( 30 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4286
SELECT - 81 * - 56 + + - 5 - ( - COUNT ( * ) ) * - 41 - + CASE + + 10 WHEN - COUNT ( * ) + - - ( 7 ) THEN CAST ( NULL AS INTEGER ) * 98 + + ( 30 ) END
----
NULL

query I rowsort
SELECT + 2 + + - 2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4288
SELECT DISTINCT + 52 DIV + + 68 * COALESCE ( + + 78, - + 51 ) * + - 81
----
0

skipif mysql # not compatible
query I rowsort label-4288
SELECT DISTINCT + 52 / + + 68 * COALESCE ( + + 78, - + 51 ) * + - 81
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT DISTINCT COUNT( * ) * + - 11 * - + 13 - - 61 * + - COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-4289
SELECT DISTINCT COUNT ( * ) * + - 11 * - + 13 - - 61 * + - COUNT ( * )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT 8 * + COUNT( * ) + - 63 + - 72 * - 38 * 96
----
262601

skipif mysql # not compatible
query I rowsort label-4290
SELECT 8 * + COUNT ( * ) + - 63 + - 72 * - 38 * 96
----
262601

query I rowsort
SELECT ALL NULLIF ( - 55, 74 * 59 ) - - 36 AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT 82 * - + COUNT( * ) - 47 AS col1
----
-129

skipif mysql # not compatible
query I rowsort label-4292
SELECT 82 * - + COUNT ( * ) - 47 AS col1
----
-129

query I rowsort
SELECT 25 * - 84 * + 59
----
-123900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4294
SELECT DISTINCT 30 * - 53 * 99 + - 26, COUNT( * ) * - NULLIF ( + + COUNT( * ), + - CAST( + 23 AS SIGNED ) ) AS col1
----
-157436
-1

skipif mysql # not compatible
query II rowsort label-4294
SELECT DISTINCT 30 * - 53 * 99 + - 26, COUNT ( * ) * - NULLIF ( + + COUNT ( * ), + - CAST ( + 23 AS INTEGER ) ) AS col1
----
-157436
-1

query II rowsort
SELECT - 87 + 76 + + 25 AS col1, - 8 - + - 69 * + - 87 AS col2
----
14
-6011

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4296
SELECT COUNT( * ) * + 90 / CAST( NULL AS SIGNED ) + + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-4296
SELECT COUNT ( * ) * + 90 / CAST ( NULL AS INTEGER ) + + 97
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4297
SELECT DISTINCT + COALESCE ( 44, - 12 DIV + 27 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-4297
SELECT DISTINCT + COALESCE ( 44, - 12 / + 27 ) AS col1
----
44

query I rowsort
SELECT ALL 44 col1
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-4299
SELECT 66 DIV - 42
----
-1

skipif mysql # not compatible
query I rowsort label-4299
SELECT 66 / - 42
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT ALL - 7 + COUNT( * ) * - MIN( + 18 ) + + 49 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-4300
SELECT ALL - 7 + COUNT ( * ) * - MIN ( + 18 ) + + 49 AS col1
----
24

query I rowsort
SELECT ALL + 53 + + 13 + + 74
----
140

onlyif mysql # aggregate syntax: 
query II rowsort label-4302
SELECT DISTINCT - 89 + + 7 AS col0, + 22 * + - COUNT( * )
----
-82
-22

skipif mysql # not compatible
query II rowsort label-4302
SELECT DISTINCT - 89 + + 7 AS col0, + 22 * + - COUNT ( * )
----
-82
-22

query I rowsort
SELECT ALL 85 + 74 AS col2
----
159

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4304
SELECT ALL + 17 + CAST( NULL AS SIGNED ), 1 AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4304
SELECT ALL + 17 + CAST ( NULL AS INTEGER ), 1 AS col2
----
NULL
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4305
SELECT DISTINCT - 90 + - COUNT( * ) + - 28 * 88 * CAST( COALESCE ( - CASE + + CAST( MAX( ALL + - 39 ) AS DECIMAL ) WHEN - ( - - 91 ) + + - COUNT( * ) + - 15 * - COUNT( * ) + - COUNT( * ) + 74 THEN NULL WHEN 73 THEN - - 14 WHEN ( + 81 ) THEN 2 ELSE - ( 89 ) END, 10 * COALESCE ( - 47, - 89 * - + 34 ) + + 16 ) AS SIGNED ) AS col1
----
-219387

skipif mysql # not compatible
query I rowsort label-4305
SELECT DISTINCT - 90 + - COUNT ( * ) + - 28 * 88 * CAST ( COALESCE ( - CASE + + CAST ( MAX ( ALL + - 39 ) AS REAL ) WHEN - ( - - 91 ) + + - COUNT ( * ) + - 15 * - COUNT ( * ) + - COUNT ( * ) + 74 THEN NULL WHEN 73 THEN - - 14 WHEN ( + 81 ) THEN 2 ELSE - ( 89 ) END, 10 * COALESCE ( - 47, - 89 * - + 34 ) + + 16 ) AS INTEGER ) AS col1
----
-219387

query I rowsort
SELECT DISTINCT + 35 + - 24 + ( - + ( - 57 ) ) AS col2
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4307
SELECT ALL - 44 DIV 91 AS col1, - 88 + + NULLIF ( - 32, - 9 + - 88 * - + 69 - - 96 DIV + 67 ) + - 49 - NULLIF ( 88, + 57 ) * ( + COUNT( * ) ) AS col2
----
0
-257

skipif mysql # not compatible
query II rowsort label-4307
SELECT ALL - 44 / 91 AS col1, - 88 + + NULLIF ( - 32, - 9 + - 88 * - + 69 - - 96 / + 67 ) + - 49 - NULLIF ( 88, + 57 ) * ( + COUNT ( * ) ) AS col2
----
0
-257

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4308
SELECT 81 + CAST( + - COUNT( * ) AS SIGNED )
----
80

skipif mysql # not compatible
query I rowsort label-4308
SELECT 81 + CAST ( + - COUNT ( * ) AS INTEGER )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4309
SELECT DISTINCT - 72 + + COUNT( * ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-4309
SELECT DISTINCT - 72 + + COUNT ( * ) AS col1
----
-71

query II rowsort
SELECT ALL - ( + 35 ) AS col2, 91
----
-35
91

query I rowsort
SELECT DISTINCT + + 83 + + 41 AS col1
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT + ( COUNT( - + 33 ) ) * SUM( ALL + 49 ) + - - 53 AS col0
----
102

skipif mysql # not compatible
query I rowsort label-4312
SELECT + ( COUNT ( - + 33 ) ) * SUM ( ALL + 49 ) + - - 53 AS col0
----
102

query I rowsort
SELECT DISTINCT + 25 + + 36 * 6 * - 76 AS col2
----
-16391

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4314
SELECT + + CASE - 77 WHEN NULLIF ( - CAST( NULL AS SIGNED ), NULLIF ( AVG ( - 29 ), + - 20 ) + 86 - + + 14 ) THEN CAST( + - COUNT( * ) AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4314
SELECT + + CASE - 77 WHEN NULLIF ( - CAST ( NULL AS INTEGER ), NULLIF ( AVG ( - 29 ), + - 20 ) + 86 - + + 14 ) THEN CAST ( + - COUNT ( * ) AS INTEGER ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT ALL - COUNT( * ) * + 86 + - 72
----
-158

skipif mysql # not compatible
query I rowsort label-4315
SELECT ALL - COUNT ( * ) * + 86 + - 72
----
-158

query I rowsort
SELECT ALL - ( - 60 ) * + 88 * + + 99 + 40 + - 96 + - + 9 * + 93 * + 15
----
510109

onlyif mysql # aggregate syntax: 
query I rowsort label-4317
SELECT 71 * COUNT( ALL - + 9 ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-4317
SELECT 71 * COUNT ( ALL - + 9 ) AS col2
----
71

query I rowsort
SELECT DISTINCT - - 41 * - 88 AS col2
----
-3608

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT ALL - - ( - - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-4319
SELECT ALL - - ( - - COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4320
SELECT ALL + COALESCE ( + + 63, - + 77 * + + 11 + 53 * - 70 * + 75 DIV + 38 ) - COUNT( * ) - + 89 * 33 * - 37
----
108731

skipif mysql # not compatible
query I rowsort label-4320
SELECT ALL + COALESCE ( + + 63, - + 77 * + + 11 + 53 * - 70 * + 75 / + 38 ) - COUNT ( * ) - + 89 * 33 * - 37
----
108731

query I rowsort
SELECT ALL - + 96 col2
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4322
SELECT + CAST( NULL AS SIGNED ) * - - ( - ( + 0 ) ) * - CAST( NULL AS SIGNED ) * + ( + CAST( NULL AS SIGNED ) ), - COUNT( * ) col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-4322
SELECT + CAST ( NULL AS INTEGER ) * - - ( - ( + 0 ) ) * - CAST ( NULL AS INTEGER ) * + ( + CAST ( NULL AS INTEGER ) ), - COUNT ( * ) col1
----
NULL
-1

query II rowsort
SELECT DISTINCT - ( 8 ) AS col1, + 32 * - 48 AS col1
----
-8
-1536

query I rowsort
SELECT ALL - - 19 col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4325
SELECT + COUNT( * ) + + 4 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-4325
SELECT + COUNT ( * ) + + 4 AS col0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-4326
SELECT ALL + 91 DIV + 65 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4326
SELECT ALL + 91 / + 65 AS col1
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-4327
SELECT + 11 DIV + + 58 * + 48 + - 91 AS col2, - 96
----
-91
-96

skipif mysql # not compatible
query II rowsort label-4327
SELECT + 11 / + + 58 * + 48 + - 91 AS col2, - 96
----
-91
-96

query I rowsort
SELECT ALL 16 + 25 + 42
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-4329
SELECT 24 DIV + - 15 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4329
SELECT 24 / + - 15 AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4330
SELECT CASE + COUNT( * ) WHEN 11 * - 91 THEN NULL WHEN 12 + + CAST( NULL AS DECIMAL ) * + 79 THEN + 29 END + + + 3 * - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-4330
SELECT CASE + COUNT ( * ) WHEN 11 * - 91 THEN NULL WHEN 12 + + CAST ( NULL AS REAL ) * + 79 THEN + 29 END + + + 3 * - 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT - SUM( + - ( 27 ) )
----
27

skipif mysql # not compatible
query I rowsort label-4331
SELECT - SUM ( + - ( 27 ) )
----
27

query I rowsort
SELECT ALL 80 + - + 96 AS col1
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-4333
SELECT 40 + - 57 DIV + + 3 col2
----
21

skipif mysql # not compatible
query I rowsort label-4333
SELECT 40 + - 57 / + + 3 col2
----
21

query I rowsort
SELECT 46 * ( 5 ) AS col1
----
230

query I rowsort
SELECT COALESCE ( 54, - 41 ) + - 69
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4336
SELECT 85 - - + CAST( + 62 AS SIGNED ) * 20 col1
----
1325

skipif mysql # not compatible
query I rowsort label-4336
SELECT 85 - - + CAST ( + 62 AS INTEGER ) * 20 col1
----
1325

query I rowsort
SELECT DISTINCT 26 * - 93 AS col1
----
-2418

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT ALL ( + ( - COUNT( * ) ) ) + - COUNT( * ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4338
SELECT ALL ( + ( - COUNT ( * ) ) ) + - COUNT ( * ) AS col2
----
-2

query I rowsort
SELECT ALL 44 + - + 67
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4340
SELECT ALL - 76 + NULLIF ( - 63, ( - - COUNT( * ) ) ) AS col0, 1 * COUNT( * ) * - - COUNT( ALL + 72 ) + - + 48 DIV + COUNT( * )
----
-139
-47

skipif mysql # not compatible
query II rowsort label-4340
SELECT ALL - 76 + NULLIF ( - 63, ( - - COUNT ( * ) ) ) AS col0, 1 * COUNT ( * ) * - - COUNT ( ALL + 72 ) + - + 48 / + COUNT ( * )
----
-139
-47

query I rowsort
SELECT ALL + 22 + - - 54 * - + 74 AS col1
----
-3974

query II rowsort
SELECT - 77 AS col1, + 19 AS col0
----
-77
19

query I rowsort
SELECT ALL 31 + + - 67 + + + 38 * + 64
----
2396

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT - SUM( DISTINCT - 2 ) col1
----
2

skipif mysql # not compatible
query I rowsort label-4344
SELECT - SUM ( DISTINCT - 2 ) col1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4345
SELECT CAST( - 89 AS SIGNED ) + - 16
----
-105

skipif mysql # not compatible
query I rowsort label-4345
SELECT CAST ( - 89 AS INTEGER ) + - 16
----
-105

onlyif mysql # aggregate syntax: 
query II rowsort label-4346
SELECT SUM( 48 ) * + - 30 - 74 + - 60 * - + COUNT( * ) AS col0, - 59
----
-1454
-59

skipif mysql # not compatible
query II rowsort label-4346
SELECT SUM ( 48 ) * + - 30 - 74 + - 60 * - + COUNT ( * ) AS col0, - 59
----
-1454
-59

query I rowsort
SELECT 10 * + 18
----
180

query I rowsort
SELECT ( + 64 ) + 55 AS col2
----
119

query I rowsort
SELECT DISTINCT 35 * + 76 col1
----
2660

query II rowsort
SELECT DISTINCT - 34, 42 * - 30 AS col2
----
-34
-1260

query I rowsort
SELECT - 84 * - + 77 - 90 AS col0
----
6378

onlyif mysql # DIV for integer division: 
query I rowsort label-4352
SELECT ALL + + 18 DIV + 53 col1
----
0

skipif mysql # not compatible
query I rowsort label-4352
SELECT ALL + + 18 / + 53 col1
----
0

query I rowsort
SELECT DISTINCT + 45 * + 72 * - - 19 - 26
----
61534

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT ALL + - SUM( + + ( - 14 ) ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-4354
SELECT ALL + - SUM ( + + ( - 14 ) ) AS col2
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4355
SELECT ALL + - 51 DIV - 57 + 13 + 8 + - 61 + + - COUNT( COALESCE ( 53, + 54, - 71 ) ) col0, 12 AS col2
----
-41
12

skipif mysql # not compatible
query II rowsort label-4355
SELECT ALL + - 51 / - 57 + 13 + 8 + - 61 + + - COUNT ( COALESCE ( 53, + 54, - 71 ) ) col0, 12 AS col2
----
-41
12

query I rowsort
SELECT - - 91 + - + 73
----
18

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4357
SELECT ALL + ( + - CAST( - 49 AS SIGNED ) ) DIV - 17 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4357
SELECT ALL + ( + - CAST ( - 49 AS INTEGER ) ) / - 17 AS col1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4358
SELECT - 64 * - CAST( 73 AS SIGNED )
----
4672

skipif mysql # not compatible
query I rowsort label-4358
SELECT - 64 * - CAST ( 73 AS INTEGER )
----
4672

query I rowsort
SELECT - + 0 - - 38 AS col1
----
38

query I rowsort
SELECT ALL + - NULLIF ( + 33, - - 40 ) AS col1
----
-33

query I rowsort
SELECT ALL - - 63 * 90 * - 17 + - 78 AS col1
----
-96468

query I rowsort
SELECT - + 56 * + ( - 20 )
----
1120

onlyif mysql # aggregate syntax: 
query I rowsort label-4363
SELECT NULLIF ( - CASE + + MAX( + + 58 ) WHEN + 44 THEN + CASE COUNT( * ) WHEN + - COUNT( * ) THEN NULL ELSE + - COALESCE ( + COUNT( * ), - 63 * ( - ( + 36 ) ) + - 92 ) * + 35 + 45 END * - - 77 / + CASE + COUNT( * ) WHEN - - 36 THEN + - 38 + + 25 WHEN 33 THEN NULL ELSE NULL END + - + 60 END, MIN( 18 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4363
SELECT NULLIF ( - CASE + + MAX ( + + 58 ) WHEN + 44 THEN + CASE COUNT ( * ) WHEN + - COUNT ( * ) THEN NULL ELSE + - COALESCE ( + COUNT ( * ), - 63 * ( - ( + 36 ) ) + - 92 ) * + 35 + 45 END * - - 77 / + CASE + COUNT ( * ) WHEN - - 36 THEN + - 38 + + 25 WHEN 33 THEN NULL ELSE NULL END + - + 60 END, MIN ( 18 ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4364
SELECT DISTINCT - COUNT( * ) * 46 + 34 DIV NULLIF ( 32, COUNT( * ) + - + MIN( - 70 ) + - 35 )
----
-45

skipif mysql # not compatible
query I rowsort label-4364
SELECT DISTINCT - COUNT ( * ) * 46 + 34 / NULLIF ( 32, COUNT ( * ) + - + MIN ( - 70 ) + - 35 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT ALL + COUNT( * ) * + 14 + + 88 col1
----
102

skipif mysql # not compatible
query I rowsort label-4365
SELECT ALL + COUNT ( * ) * + 14 + + 88 col1
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT MIN( ALL - 4 ) * - + 38 + + + 69 + - 65 AS col2
----
156

skipif mysql # not compatible
query I rowsort label-4366
SELECT MIN ( ALL - 4 ) * - + 38 + + + 69 + - 65 AS col2
----
156

query I rowsort
SELECT ALL + 52 + ( 65 ) * + - 34
----
-2158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4368
SELECT COUNT( * ) AS col0, - 65 * + CAST( NULL AS SIGNED ) * + - CAST( - - 63 AS SIGNED ) * - 78 + + 63
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4368
SELECT COUNT ( * ) AS col0, - 65 * + CAST ( NULL AS INTEGER ) * + - CAST ( - - 63 AS INTEGER ) * - 78 + + 63
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4369
SELECT COUNT( ALL - - 94 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4369
SELECT COUNT ( ALL - - 94 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT ALL 80 + 60 * 55 * - MAX( DISTINCT - 48 )
----
158480

skipif mysql # not compatible
query I rowsort label-4370
SELECT ALL 80 + 60 * 55 * - MAX ( DISTINCT - 48 )
----
158480

query I rowsort
SELECT - 86 * + - 49
----
4214

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT MIN( DISTINCT - ( + + 88 ) ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-4372
SELECT MIN ( DISTINCT - ( + + 88 ) ) AS col1
----
-88

query II rowsort
SELECT 45, - 35 AS col2
----
45
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4374
SELECT + COUNT( * ) DIV + 7
----
0

skipif mysql # not compatible
query I rowsort label-4374
SELECT + COUNT ( * ) / + 7
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4375
SELECT DISTINCT - 35 + 83 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4375
SELECT DISTINCT - 35 + 83 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT DISTINCT 67 * 70 * - COALESCE ( MIN( + 52 ), 62, + + 47 ) AS col1
----
-243880

skipif mysql # not compatible
query I rowsort label-4376
SELECT DISTINCT 67 * 70 * - COALESCE ( MIN ( + 52 ), 62, + + 47 ) AS col1
----
-243880

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT ALL 26 + ( 62 ) - - 91 * + + COUNT( 31 ) * - COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-4377
SELECT ALL 26 + ( 62 ) - - 91 * + + COUNT ( 31 ) * - COUNT ( * )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4378
SELECT - COALESCE ( + + 95, CAST( NULL AS SIGNED ), + 28 * + 91 ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-4378
SELECT - COALESCE ( + + 95, CAST ( NULL AS INTEGER ), + 28 * + 91 ) AS col0
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-4379
SELECT + ( - - 78 ) DIV + + ( 14 )
----
5

skipif mysql # not compatible
query I rowsort label-4379
SELECT + ( - - 78 ) / + + ( 14 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4380
SELECT - COUNT( * ) * 50 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-4380
SELECT - COUNT ( * ) * 50 AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT + ( + - COUNT( * ) ) + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-4381
SELECT + ( + - COUNT ( * ) ) + - COUNT ( * )
----
-2

query I rowsort
SELECT DISTINCT 32 * + 87
----
2784

onlyif mysql # aggregate syntax: 
query I rowsort label-4383
SELECT ALL 90 - + COUNT( * ) * + - 66 col1
----
156

skipif mysql # not compatible
query I rowsort label-4383
SELECT ALL 90 - + COUNT ( * ) * + - 66 col1
----
156

onlyif mysql # aggregate syntax: 
query II rowsort label-4384
SELECT 53, - COUNT( * ) col2
----
53
-1

skipif mysql # not compatible
query II rowsort label-4384
SELECT 53, - COUNT ( * ) col2
----
53
-1

query I rowsort
SELECT - 96 + - 49
----
-145

onlyif mysql # aggregate syntax: 
query II rowsort label-4386
SELECT ALL COUNT( * ) AS col0, - 51 - - 27
----
1
-24

skipif mysql # not compatible
query II rowsort label-4386
SELECT ALL COUNT ( * ) AS col0, - 51 - - 27
----
1
-24

query I rowsort
SELECT + + 70 + + + 43 * - 91
----
-3843

query I rowsort
SELECT DISTINCT + 65 - + - 56 * - 9 AS col2
----
-439

onlyif mysql # DIV for integer division: 
query I rowsort label-4389
SELECT ( + 67 ) DIV 95 - + 21 * - 5
----
105

skipif mysql # not compatible
query I rowsort label-4389
SELECT ( + 67 ) / 95 - + 21 * - 5
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-4390
SELECT DISTINCT 69 DIV - 10
----
-6

skipif mysql # not compatible
query I rowsort label-4390
SELECT DISTINCT 69 / - 10
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-4391
SELECT + + 51 DIV 83
----
0

skipif mysql # not compatible
query I rowsort label-4391
SELECT + + 51 / 83
----
0

query I rowsort
SELECT - - 46 * 1 AS col2
----
46

query I rowsort
SELECT DISTINCT + + 92 AS col0
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4394
SELECT MAX( ALL - + 77 ) / + 75 * + ( + COUNT( * ) ) * - 63 * + CAST( NULL AS SIGNED ) * - + 98 + 94 + ( + 49 ) + COUNT( * ) * + - 73 / 34 * 82 * + 20, 90 * - + 98 AS col1
----
NULL
-8820

skipif mysql # not compatible
query II rowsort label-4394
SELECT MAX ( ALL - + 77 ) / + 75 * + ( + COUNT ( * ) ) * - 63 * + CAST ( NULL AS INTEGER ) * - + 98 + 94 + ( + 49 ) + COUNT ( * ) * + - 73 / 34 * 82 * + 20, 90 * - + 98 AS col1
----
NULL
-8820

query II rowsort
SELECT ALL + - 40 AS col1, + 0 AS col2
----
-40
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4396
SELECT ALL + + 62 / + - CAST( NULL AS SIGNED ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4396
SELECT ALL + + 62 / + - CAST ( NULL AS INTEGER ) + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4397
SELECT ALL + CAST( - COALESCE ( + 19, 40, + COALESCE ( + 62, ( 98 ) * 21 - + 9 - + - CAST( 25 AS SIGNED ) * + 58 ) * 57 * + 23 ) AS SIGNED ) / + COUNT( * ) * - + COUNT( * ) + + + AVG ( CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4397
SELECT ALL + CAST ( - COALESCE ( + 19, 40, + COALESCE ( + 62, ( 98 ) * 21 - + 9 - + - CAST ( 25 AS INTEGER ) * + 58 ) * 57 * + 23 ) AS INTEGER ) / + COUNT ( * ) * - + COUNT ( * ) + + + AVG ( CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4398
SELECT + - COUNT( DISTINCT - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-4398
SELECT + - COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4399
SELECT DISTINCT + 63 * + COUNT( ALL 4 )
----
63

skipif mysql # not compatible
query I rowsort label-4399
SELECT DISTINCT + 63 * + COUNT ( ALL 4 )
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4400
SELECT ALL - 75 * + MAX( NULLIF ( + 28, + 95 * - - 68 + 5 ) ) - CAST( NULLIF ( + ( + COUNT( * ) ), - 44 / + 64 ) AS SIGNED ) * 99 + - + 32 + ( 32 )
----
-2199

skipif mysql # not compatible
query I rowsort label-4400
SELECT ALL - 75 * + MAX ( NULLIF ( + 28, + 95 * - - 68 + 5 ) ) - CAST ( NULLIF ( + ( + COUNT ( * ) ), - 44 / + 64 ) AS INTEGER ) * 99 + - + 32 + ( 32 )
----
-2199

onlyif mysql # aggregate syntax: 
query I rowsort label-4401
SELECT - - COUNT( * ) * 59 * + 20 * - 62 * + 7 AS col0
----
-512120

skipif mysql # not compatible
query I rowsort label-4401
SELECT - - COUNT ( * ) * 59 * + 20 * - 62 * + 7 AS col0
----
-512120

query I rowsort
SELECT COALESCE ( + + 36, - 87 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT - MAX( - 12 ) + 58 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-4403
SELECT - MAX ( - 12 ) + 58 AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT + SUM( DISTINCT 42 ) col2
----
42

skipif mysql # not compatible
query I rowsort label-4404
SELECT + SUM ( DISTINCT 42 ) col2
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4405
SELECT - COUNT( * ) * - 84 + - + SUM( 65 ) + COUNT( * ) / MAX( DISTINCT - CAST( NULL AS SIGNED ) ) * 40 / 27 / + 22 AS col0, 81 + - - 61 * - 4
----
NULL
-163

skipif mysql # not compatible
query II rowsort label-4405
SELECT - COUNT ( * ) * - 84 + - + SUM ( 65 ) + COUNT ( * ) / MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) * 40 / 27 / + 22 AS col0, 81 + - - 61 * - 4
----
NULL
-163

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT DISTINCT ( + + ( CASE + COUNT( * ) WHEN 10 THEN - CASE 57 WHEN ( - 49 ) * - COUNT( * ) THEN + COUNT( * ) END ELSE NULL END ) ) * + 65 + + 65 * - - 5 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4406
SELECT DISTINCT ( + + ( CASE + COUNT ( * ) WHEN 10 THEN - CASE 57 WHEN ( - 49 ) * - COUNT ( * ) THEN + COUNT ( * ) END ELSE NULL END ) ) * + 65 + + 65 * - - 5 col0
----
NULL

query I rowsort
SELECT ALL 51 * + 90 + 53 AS col1
----
4643

onlyif mysql # aggregate syntax: 
query II rowsort label-4408
SELECT ALL + 85 * + COALESCE ( + - COUNT( 58 ), 62 * + ( 15 ) ), 60 * + - 60 AS col2
----
-85
-3600

skipif mysql # not compatible
query II rowsort label-4408
SELECT ALL + 85 * + COALESCE ( + - COUNT ( 58 ), 62 * + ( 15 ) ), 60 * + - 60 AS col2
----
-85
-3600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4409
SELECT - 9 - - - 98 + - + CASE - + CAST( NULL AS SIGNED ) WHEN + 18 THEN + 17 END * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4409
SELECT - 9 - - - 98 + - + CASE - + CAST ( NULL AS INTEGER ) WHEN + 18 THEN + 17 END * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4410
SELECT - CASE + 50 WHEN + 31 THEN 99 WHEN - CAST( + COUNT( * ) AS SIGNED ) THEN NULL END + + + ( COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4410
SELECT - CASE + 50 WHEN + 31 THEN 99 WHEN - CAST ( + COUNT ( * ) AS INTEGER ) THEN NULL END + + + ( COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4411
SELECT + 2 * - - COALESCE ( + 46, 81 - + 53 ) * - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4411
SELECT + 2 * - - COALESCE ( + 46, 81 - + 53 ) * - CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT - 73 + + 49
----
-24

query II rowsort
SELECT DISTINCT ( + 52 ) col2, 92
----
52
92

query I rowsort
SELECT ALL + 59 - - 72 AS col0
----
131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4415
SELECT - CAST( - 47 AS SIGNED ) * 9
----
423

skipif mysql # not compatible
query I rowsort label-4415
SELECT - CAST ( - 47 AS INTEGER ) * 9
----
423

query I rowsort
SELECT ALL 37 - - + 7 AS col2
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-4417
SELECT ALL - COALESCE ( - 80, + NULLIF ( - 21, - 78 ), - + 57 DIV 30 ) * 80 * + - 23 + + - 65 + - 29 * - 7 AS col2
----
-147062

skipif mysql # not compatible
query I rowsort label-4417
SELECT ALL - COALESCE ( - 80, + NULLIF ( - 21, - 78 ), - + 57 / 30 ) * 80 * + - 23 + + - 65 + - 29 * - 7 AS col2
----
-147062

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4418
SELECT + MIN( DISTINCT 63 ) + - - 74 + + MAX( + + ( 91 ) ) DIV - COUNT( * ) + + 43 + - 66
----
23

skipif mysql # not compatible
query I rowsort label-4418
SELECT + MIN ( DISTINCT 63 ) + - - 74 + + MAX ( + + ( 91 ) ) / - COUNT ( * ) + + 43 + - 66
----
23

query I rowsort
SELECT ALL + 36 * - 23
----
-828

query I rowsort
SELECT ALL + 30 * - + 6 AS col2
----
-180

query I rowsort
SELECT + 75 * 81 + + 70 col2
----
6145

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT DISTINCT NULLIF ( + 98, - 67 ) * COALESCE ( + COUNT( * ), - 70 ) * + - 87 + - 93 AS col0
----
-8619

skipif mysql # not compatible
query I rowsort label-4422
SELECT DISTINCT NULLIF ( + 98, - 67 ) * COALESCE ( + COUNT ( * ), - 70 ) * + - 87 + - 93 AS col0
----
-8619

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4423
SELECT ALL - 86 * + + CAST( - - ( - 13 ) AS SIGNED ) AS col1
----
1118

skipif mysql # not compatible
query I rowsort label-4423
SELECT ALL - 86 * + + CAST ( - - ( - 13 ) AS INTEGER ) AS col1
----
1118

onlyif mysql # aggregate syntax: 
query II rowsort label-4424
SELECT + ( 13 ) AS col1, 39 * + COUNT( * ) col2
----
13
39

skipif mysql # not compatible
query II rowsort label-4424
SELECT + ( 13 ) AS col1, 39 * + COUNT ( * ) col2
----
13
39

onlyif mysql # DIV for integer division: 
query I rowsort label-4425
SELECT 15 DIV 32 + 80
----
80

skipif mysql # not compatible
query I rowsort label-4425
SELECT 15 / 32 + 80
----
80

query I rowsort
SELECT - 41 + + 29 - - 88 + - 96 col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT - 55 + 90 + - AVG ( - 44 ) + + ( - - COUNT( * ) ) + - + COUNT( * ) * + CASE ( + 80 ) WHEN + - COUNT( * ) THEN COUNT( * ) END * + MIN( - 50 ) / - - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-4427
SELECT - 55 + 90 + - AVG ( - 44 ) + + ( - - COUNT ( * ) ) + - + COUNT ( * ) * + CASE ( + 80 ) WHEN + - COUNT ( * ) THEN COUNT ( * ) END * + MIN ( - 50 ) / - - 72
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4428
SELECT ALL + 84 + + - 92 * - + 10 + + COUNT( * ) + + + 11 + + 5 AS col2
----
1021

skipif mysql # not compatible
query I rowsort label-4428
SELECT ALL + 84 + + - 92 * - + 10 + + COUNT ( * ) + + + 11 + + 5 AS col2
----
1021

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT ALL - 3 + - - NULLIF ( - NULLIF ( - 37, + 32 * + + 66 * 50 ), - - 91 * + COUNT( * ) ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-4429
SELECT ALL - 3 + - - NULLIF ( - NULLIF ( - 37, + 32 * + + 66 * 50 ), - - 91 * + COUNT ( * ) ) AS col2
----
34

query I rowsort
SELECT ALL - COALESCE ( + - 71, 17 ) + 34 AS col0
----
105

query I rowsort
SELECT - + 64 * - - 15 + + 53
----
-907

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT DISTINCT + + 46 * - + 77 + - 61 - + 79 * COUNT( * ) AS col2
----
-3682

skipif mysql # not compatible
query I rowsort label-4432
SELECT DISTINCT + + 46 * - + 77 + - 61 - + 79 * COUNT ( * ) AS col2
----
-3682

query I rowsort
SELECT ALL - 54 + - 89 AS col0
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT 64 + - + MIN( ALL 65 )
----
-1

skipif mysql # not compatible
query I rowsort label-4434
SELECT 64 + - + MIN ( ALL 65 )
----
-1

query I rowsort
SELECT ALL 88 + - 97 * - 4 AS col0
----
476

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4436
SELECT ( SUM( 11 ) ) DIV ( - 95 ) * - 75 - + COUNT( * ) + + 88, + 85 AS col0
----
87
85

skipif mysql # not compatible
query II rowsort label-4436
SELECT ( SUM ( 11 ) ) / ( - 95 ) * - 75 - + COUNT ( * ) + + 88, + 85 AS col0
----
87
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4437
SELECT - SUM( + CAST( 6 AS SIGNED ) ) * 32 - + 59 DIV - 27
----
-190

skipif mysql # not compatible
query I rowsort label-4437
SELECT - SUM ( + CAST ( 6 AS INTEGER ) ) * 32 - + 59 / - 27
----
-190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4438
SELECT CAST( NULL AS SIGNED ) / - 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4438
SELECT CAST ( NULL AS INTEGER ) / - 16 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - ( - + 49 )
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4440
SELECT 90 * - + COALESCE ( + COUNT( * ), - CAST( - 88 AS SIGNED ) ) * - - COUNT( * ) + + 32
----
-58

skipif mysql # not compatible
query I rowsort label-4440
SELECT 90 * - + COALESCE ( + COUNT ( * ), - CAST ( - 88 AS INTEGER ) ) * - - COUNT ( * ) + + 32
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-4441
SELECT ALL - 17 DIV - 36 col2
----
0

skipif mysql # not compatible
query I rowsort label-4441
SELECT ALL - 17 / - 36 col2
----
0

query II rowsort
SELECT 78 AS col1, 68 AS col1
----
78
68

query I rowsort
SELECT + 97 * - NULLIF ( + 32, - AVG ( ( COALESCE ( - - 26, + + 30 ) ) ) ) + + 89
----
-3015

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT ALL 15 - + COUNT( * ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-4444
SELECT ALL 15 - + COUNT ( * ) AS col2
----
14

query I rowsort
SELECT 58 * + 29
----
1682

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT 94 + - - 40 * 15 * + MIN( DISTINCT + ( - 29 ) )
----
-17306

skipif mysql # not compatible
query I rowsort label-4446
SELECT 94 + - - 40 * 15 * + MIN ( DISTINCT + ( - 29 ) )
----
-17306

onlyif mysql # DIV for integer division: 
query I rowsort label-4447
SELECT ALL - 27 DIV 45 col1
----
0

skipif mysql # not compatible
query I rowsort label-4447
SELECT ALL - 27 / 45 col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4448
SELECT 0 / - ( + NULLIF ( - CAST( NULL AS SIGNED ), + 92 + + 25 ) ) * + 69 * + + 68 * + 39 * + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-4448
SELECT 0 / - ( + NULLIF ( - CAST ( NULL AS INTEGER ), + 92 + + 25 ) ) * + 69 * + + 68 * + 39 * + 18
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4449
SELECT ALL - 18 DIV + 48 * - ( - MIN( DISTINCT 66 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4449
SELECT ALL - 18 / + 48 * - ( - MIN ( DISTINCT 66 ) ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4450
SELECT 10 + + 61 DIV + + COUNT( * ) + 32 AS col0
----
103

skipif mysql # not compatible
query I rowsort label-4450
SELECT 10 + + 61 / + + COUNT ( * ) + 32 AS col0
----
103

query I rowsort
SELECT ALL + 27 * - + 58 AS col2
----
-1566

query I rowsort
SELECT 0 * 11 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4453
SELECT ALL + 90 * - MAX( ALL + - 16 )
----
1440

skipif mysql # not compatible
query I rowsort label-4453
SELECT ALL + 90 * - MAX ( ALL + - 16 )
----
1440

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT - COALESCE ( - 15, - + 96 * + - 9 + + - MIN( NULLIF ( 5, 12 ) ) + + 64 ) * + 90 + - 9 AS col2
----
1341

skipif mysql # not compatible
query I rowsort label-4454
SELECT - COALESCE ( - 15, - + 96 * + - 9 + + - MIN ( NULLIF ( 5, 12 ) ) + + 64 ) * + 90 + - 9 AS col2
----
1341

query II rowsort
SELECT 1 AS col0, 99
----
1
99

query I rowsort
SELECT - NULLIF ( + 28, + 29 ) - - + 17
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4457
SELECT ALL + CASE + 53 WHEN 0 * + 15 + 56 * + - CAST( NULL AS SIGNED ) * 70 THEN 87 WHEN + COUNT( + 42 ) THEN + 18 * + + CAST( + 28 AS DECIMAL ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4457
SELECT ALL + CASE + 53 WHEN 0 * + 15 + 56 * + - CAST ( NULL AS INTEGER ) * 70 THEN 87 WHEN + COUNT ( + 42 ) THEN + 18 * + + CAST ( + 28 AS REAL ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + 39 * 3 AS col2
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT 32 - + NULLIF ( + + ( - + 34 ), - - 12 ) + + 21 * + 89 * + - COUNT( * )
----
-1803

skipif mysql # not compatible
query I rowsort label-4459
SELECT 32 - + NULLIF ( + + ( - + 34 ), - - 12 ) + + 21 * + 89 * + - COUNT ( * )
----
-1803

onlyif mysql # aggregate syntax: 
query II rowsort label-4460
SELECT ALL + 54 + + 6 + + 35 + + 92 AS col2, + COUNT( * ) * - ( - COUNT( * ) )
----
187
1

skipif mysql # not compatible
query II rowsort label-4460
SELECT ALL + 54 + + 6 + + 35 + + 92 AS col2, + COUNT ( * ) * - ( - COUNT ( * ) )
----
187
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4461
SELECT DISTINCT 38 AS col2, - 35 / - CAST( NULL AS SIGNED ) + + 60
----
38
NULL

skipif mysql # not compatible
query II rowsort label-4461
SELECT DISTINCT 38 AS col2, - 35 / - CAST ( NULL AS INTEGER ) + + 60
----
38
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4462
SELECT ALL + ( + 62 ) + - - CAST( NULL AS SIGNED ) * - 83 / + 6 * CAST( NULL AS SIGNED ) * - 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4462
SELECT ALL + ( + 62 ) + - - CAST ( NULL AS INTEGER ) * - 83 / + 6 * CAST ( NULL AS INTEGER ) * - 22 AS col0
----
NULL

query II rowsort
SELECT 82 AS col2, 3
----
82
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4464
SELECT ALL - 63 DIV - COUNT( ALL + 68 )
----
63

skipif mysql # not compatible
query I rowsort label-4464
SELECT ALL - 63 / - COUNT ( ALL + 68 )
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4465
SELECT DISTINCT + 5 + - CAST( NULL AS SIGNED ) / - + 31 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4465
SELECT DISTINCT + 5 + - CAST ( NULL AS INTEGER ) / - + 31 col2
----
NULL

query I rowsort
SELECT - ( - - 10 )
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4467
SELECT - ( + COUNT( * ) ) * + - 9 - MIN( ALL + - 12 ) * + MIN( DISTINCT - ( + 93 ) ) + - + 23 + - 0 DIV + 82 * + - NULLIF ( + 10, + - COUNT( * ) * - ( - 72 ) ) * + 17 + + + 54, MIN( DISTINCT - 26 ) * MIN( + 5 ) + 3 AS col1
----
-1076
-127

skipif mysql # not compatible
query II rowsort label-4467
SELECT - ( + COUNT ( * ) ) * + - 9 - MIN ( ALL + - 12 ) * + MIN ( DISTINCT - ( + 93 ) ) + - + 23 + - 0 / + 82 * + - NULLIF ( + 10, + - COUNT ( * ) * - ( - 72 ) ) * + 17 + + + 54, MIN ( DISTINCT - 26 ) * MIN ( + 5 ) + 3 AS col1
----
-1076
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT ALL - COUNT( * ) * - + 60 col0
----
60

skipif mysql # not compatible
query I rowsort label-4468
SELECT ALL - COUNT ( * ) * - + 60 col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT COUNT( * ) * - 39 * ( - 62 )
----
2418

skipif mysql # not compatible
query I rowsort label-4469
SELECT COUNT ( * ) * - 39 * ( - 62 )
----
2418

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT ALL + 22 * - + NULLIF ( - - 12, - 48 + - 78 ) + - SUM( + 99 )
----
-363

skipif mysql # not compatible
query I rowsort label-4470
SELECT ALL + 22 * - + NULLIF ( - - 12, - 48 + - 78 ) + - SUM ( + 99 )
----
-363

query I rowsort
SELECT + 55 * 25 AS col0
----
1375

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4472
SELECT ALL - 68 AS col0, + CASE - 97 WHEN + - COUNT( * ) THEN - + CASE - + 74 WHEN - + CAST( + NULLIF ( - 64, + 41 ) AS SIGNED ) THEN + ( 23 ) END WHEN 10 * + 38 * - 67 THEN NULL ELSE NULL END * + 66 * - 15 AS col0
----
-68
NULL

skipif mysql # not compatible
query II rowsort label-4472
SELECT ALL - 68 AS col0, + CASE - 97 WHEN + - COUNT ( * ) THEN - + CASE - + 74 WHEN - + CAST ( + NULLIF ( - 64, + 41 ) AS INTEGER ) THEN + ( 23 ) END WHEN 10 * + 38 * - 67 THEN NULL ELSE NULL END * + 66 * - 15 AS col0
----
-68
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT ( + COUNT( * ) ) * 97
----
97

skipif mysql # not compatible
query I rowsort label-4473
SELECT ( + COUNT ( * ) ) * 97
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4474
SELECT MIN( ALL + - 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-4474
SELECT MIN ( ALL + - 61 )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT MIN( ALL + - ( - 35 ) )
----
35

skipif mysql # not compatible
query I rowsort label-4475
SELECT MIN ( ALL + - ( - 35 ) )
----
35

query I rowsort
SELECT ALL 15 - 82 AS col2
----
-67

query II rowsort
SELECT 55 * + 12 * - 44 * - 53, 40 AS col0
----
1539120
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4478
SELECT + CASE 71 WHEN + 47 * + 15 / - + 79 + - 20 THEN NULL WHEN 48 THEN COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4478
SELECT + CASE 71 WHEN + 47 * + 15 / - + 79 + - 20 THEN NULL WHEN 48 THEN COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT ALL 67 * 31
----
2077

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4480
SELECT 74 + + + COUNT( * ) DIV - + 38 * COUNT( - 57 ) * + COUNT( * ) * + - 3 + + - ( - + 83 ) AS col0, + 52
----
157
52

skipif mysql # not compatible
query II rowsort label-4480
SELECT 74 + + + COUNT ( * ) / - + 38 * COUNT ( - 57 ) * + COUNT ( * ) * + - 3 + + - ( - + 83 ) AS col0, + 52
----
157
52

onlyif mysql # aggregate syntax: 
query II rowsort label-4481
SELECT + 67 * + 66 * - - 81 + - 73 - + MIN( + 94 ) + + 91 + + - ( - + 0 ) * + 90 AS col1, - 98 + + 0 AS col0
----
358106
-98

skipif mysql # not compatible
query II rowsort label-4481
SELECT + 67 * + 66 * - - 81 + - 73 - + MIN ( + 94 ) + + 91 + + - ( - + 0 ) * + 90 AS col1, - 98 + + 0 AS col0
----
358106
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4482
SELECT ALL - SUM( DISTINCT - CAST( + 40 AS SIGNED ) ) col0
----
40

skipif mysql # not compatible
query I rowsort label-4482
SELECT ALL - SUM ( DISTINCT - CAST ( + 40 AS INTEGER ) ) col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT + COUNT( ALL + 16 )
----
1

skipif mysql # not compatible
query I rowsort label-4483
SELECT + COUNT ( ALL + 16 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4484
SELECT + 26 + COUNT( * ) * + 47 col0
----
73

skipif mysql # not compatible
query I rowsort label-4484
SELECT + 26 + COUNT ( * ) * + 47 col0
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4485
SELECT CAST( + COUNT( * ) AS SIGNED ) * 87 + + 69 * + 69 + 2 + NULLIF ( - 28, + 93 / + CASE + + 72 WHEN 49 THEN + ( + + 32 ) WHEN + 36 * - MAX( DISTINCT 67 ) + 65 THEN - 41 END * - 41 - + 56 ) * + 78 * + 59
----
-124006

skipif mysql # not compatible
query I rowsort label-4485
SELECT CAST ( + COUNT ( * ) AS INTEGER ) * 87 + + 69 * + 69 + 2 + NULLIF ( - 28, + 93 / + CASE + + 72 WHEN 49 THEN + ( + + 32 ) WHEN + 36 * - MAX ( DISTINCT 67 ) + 65 THEN - 41 END * - 41 - + 56 ) * + 78 * + 59
----
-124006

query I rowsort
SELECT - 95 + + - 45
----
-140

query I rowsort
SELECT - 72 + 99
----
27

query I rowsort
SELECT - + CASE 15 WHEN - - 18 + + + 78 THEN NULL WHEN 15 THEN NULL WHEN 50 THEN NULL ELSE - + 83 END
----
NULL

query I rowsort
SELECT ALL - ( - 61 ) AS col0
----
61

query I rowsort
SELECT ALL - 69 + + 97
----
28

query I rowsort
SELECT + - 64 + + + 44 AS col2
----
-20

query II rowsort
SELECT - + 89 + + 60, ( - - 57 ) AS col1
----
-29
57

onlyif mysql # aggregate syntax: 
query II rowsort label-4493
SELECT ALL + 3 + + + MIN( DISTINCT + - 25 ) + 52, - 9 * 73 AS col2
----
30
-657

skipif mysql # not compatible
query II rowsort label-4493
SELECT ALL + 3 + + + MIN ( DISTINCT + - 25 ) + 52, - 9 * 73 AS col2
----
30
-657

onlyif mysql # aggregate syntax: 
query II rowsort label-4494
SELECT DISTINCT + + 75 + + - COUNT( * ) + CASE + ( - COUNT( * ) ) WHEN 86 THEN + 83 * 76 ELSE NULL END / + 40, CASE + 99 WHEN - ( - COUNT( * ) ) THEN - 83 * 27 + 94 + - MAX( DISTINCT 4 ) / + 11 END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4494
SELECT DISTINCT + + 75 + + - COUNT ( * ) + CASE + ( - COUNT ( * ) ) WHEN 86 THEN + 83 * 76 ELSE NULL END / + 40, CASE + 99 WHEN - ( - COUNT ( * ) ) THEN - 83 * 27 + 94 + - MAX ( DISTINCT 4 ) / + 11 END
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4495
SELECT - - COUNT( * ) * - 92 AS col0, 81 + - COUNT( * )
----
-92
80

skipif mysql # not compatible
query II rowsort label-4495
SELECT - - COUNT ( * ) * - 92 AS col0, 81 + - COUNT ( * )
----
-92
80

query I rowsort
SELECT - - 21 + - 35 AS col0
----
-14

query II rowsort
SELECT - + 46 + - 42, + 42 col2
----
-88
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4498
SELECT ALL - CAST( NULL AS SIGNED ) / + CASE + + NULLIF ( SUM( DISTINCT - 3 ), + 85 ) WHEN - 20 THEN 69 WHEN + CAST( 73 AS SIGNED ) * - 32 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4498
SELECT ALL - CAST ( NULL AS INTEGER ) / + CASE + + NULLIF ( SUM ( DISTINCT - 3 ), + 85 ) WHEN - 20 THEN 69 WHEN + CAST ( 73 AS INTEGER ) * - 32 THEN NULL END AS col0
----
NULL

query II rowsort
SELECT ALL + - COALESCE ( - 22, + ( 97 ) ) AS col1, - 71
----
22
-71

query I rowsort
SELECT DISTINCT 69 * + 58
----
4002

onlyif mysql # DIV for integer division: 
query I rowsort label-4501
SELECT DISTINCT - 44 DIV - + 73 * 6 * - + 14
----
0

skipif mysql # not compatible
query I rowsort label-4501
SELECT DISTINCT - 44 / - + 73 * 6 * - + 14
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4502
SELECT - 4 * - CASE - CAST( + 87 AS DECIMAL ) WHEN + 32 THEN + 37 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4502
SELECT - 4 * - CASE - CAST ( + 87 AS REAL ) WHEN + 32 THEN + 37 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT + COUNT( * ) + - - 57 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-4503
SELECT + COUNT ( * ) + - - 57 AS col0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4504
SELECT ALL - 26 * - + CAST( - 37 AS SIGNED )
----
-962

skipif mysql # not compatible
query I rowsort label-4504
SELECT ALL - 26 * - + CAST ( - 37 AS INTEGER )
----
-962

onlyif mysql # DIV for integer division: 
query I rowsort label-4505
SELECT - 21 DIV + 66
----
0

skipif mysql # not compatible
query I rowsort label-4505
SELECT - 21 / + 66
----
0

query I rowsort
SELECT DISTINCT + 17 * + 62 AS col2
----
1054

query II rowsort
SELECT + 4 AS col2, - 20 AS col0
----
4
-20

query I rowsort
SELECT + 62 * + 38
----
2356

onlyif mysql # aggregate syntax: 
query II rowsort label-4509
SELECT ALL + 39 col0, + COUNT( * ) AS col2
----
39
1

skipif mysql # not compatible
query II rowsort label-4509
SELECT ALL + 39 col0, + COUNT ( * ) AS col2
----
39
1

query I rowsort
SELECT DISTINCT 26 * 87
----
2262

onlyif mysql # aggregate syntax: 
query I rowsort label-4511
SELECT NULLIF ( + + 24, COALESCE ( + 22, - 60 * - ( + - 83 ), - COUNT( * ) * 58 * + + 34 + + + 37 ) / - - 62 ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-4511
SELECT NULLIF ( + + 24, COALESCE ( + 22, - 60 * - ( + - 83 ), - COUNT ( * ) * 58 * + + 34 + + + 37 ) / - - 62 ) AS col1
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4512
SELECT + 67 * - COUNT( * ) DIV + 85
----
0

skipif mysql # not compatible
query I rowsort label-4512
SELECT + 67 * - COUNT ( * ) / + 85
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4513
SELECT ALL + ( + NULLIF ( + 6, - - COUNT( + + CAST( + + 98 AS DECIMAL ) ) * + + AVG ( + - 52 ) ) ) col1
----
6

skipif mysql # not compatible
query I rowsort label-4513
SELECT ALL + ( + NULLIF ( + 6, - - COUNT ( + + CAST ( + + 98 AS REAL ) ) * + + AVG ( + - 52 ) ) ) col1
----
6

query I rowsort
SELECT + 43 + 34 AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT + 2 * - + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-4515
SELECT + 2 * - + COUNT ( * )
----
-2

query I rowsort
SELECT 64 * 87 + + 36 AS col1
----
5604

query I rowsort
SELECT COALESCE ( 69, 45 )
----
69

query I rowsort
SELECT + 96 + - 70
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4519
SELECT ALL - COUNT( - 4 ) * + CAST( NULL AS SIGNED ) + - - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-4519
SELECT ALL - COUNT ( - 4 ) * + CAST ( NULL AS INTEGER ) + - - 49
----
NULL

query I rowsort
SELECT + ( + + ( 14 ) ) AS col0
----
14

query I rowsort
SELECT DISTINCT - 93 * + 53 + - + 25 * 31 AS col0
----
-5704

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT MAX( + - 25 )
----
-25

skipif mysql # not compatible
query I rowsort label-4522
SELECT MAX ( + - 25 )
----
-25

query I rowsort
SELECT ALL + 60 * - - 21 + - 37
----
1223

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT + SUM( 65 ) + - COALESCE ( - 51, 91 + + 42 ) AS col1
----
116

skipif mysql # not compatible
query I rowsort label-4524
SELECT + SUM ( 65 ) + - COALESCE ( - 51, 91 + + 42 ) AS col1
----
116

onlyif mysql # DIV for integer division: 
query I rowsort label-4525
SELECT DISTINCT 24 DIV 82 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4525
SELECT DISTINCT 24 / 82 AS col2
----
0

query I rowsort
SELECT + 36 * 70
----
2520

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT MIN( 80 ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-4527
SELECT MIN ( 80 ) AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4528
SELECT ALL COUNT( 40 ) * 44 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-4528
SELECT ALL COUNT ( 40 ) * 44 AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT ALL - 83 * + COUNT( + 66 * 74 ) + + 13 col1
----
-70

skipif mysql # not compatible
query I rowsort label-4529
SELECT ALL - 83 * + COUNT ( + 66 * 74 ) + + 13 col1
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4530
SELECT ALL NULLIF ( - COUNT( * ), - 23 * CAST( 48 AS SIGNED ) + + 14 )
----
-1

skipif mysql # not compatible
query I rowsort label-4530
SELECT ALL NULLIF ( - COUNT ( * ), - 23 * CAST ( 48 AS INTEGER ) + + 14 )
----
-1

query I rowsort
SELECT + 6 * 93
----
558

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT - CASE COUNT( * ) WHEN ( + CASE SUM( DISTINCT - 95 ) WHEN ( NULLIF ( 36, 12 + MIN( DISTINCT 31 ) * - 87 ) ) THEN 88 * + ( + 8 ) END ) THEN MAX( - 12 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4532
SELECT - CASE COUNT ( * ) WHEN ( + CASE SUM ( DISTINCT - 95 ) WHEN ( NULLIF ( 36, 12 + MIN ( DISTINCT 31 ) * - 87 ) ) THEN 88 * + ( + 8 ) END ) THEN MAX ( - 12 ) END AS col1
----
NULL

query I rowsort
SELECT ALL 88 + 72 AS col0
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT DISTINCT COUNT( 89 )
----
1

skipif mysql # not compatible
query I rowsort label-4534
SELECT DISTINCT COUNT ( 89 )
----
1

query I rowsort
SELECT + 70 * ( 41 ) col0
----
2870

onlyif mysql # aggregate syntax: 
query I rowsort label-4536
SELECT - CASE WHEN NOT 19 NOT IN ( MIN( DISTINCT 11 ) ) THEN + 93 * 93 WHEN NOT ( NULL ) IN ( + COALESCE ( 7, + 68 + NULLIF ( - 89, + ( 10 ) ) ) ) THEN NULL END * 23
----
NULL

skipif mysql # not compatible
query I rowsort label-4536
SELECT - CASE WHEN NOT 19 NOT IN ( MIN ( DISTINCT 11 ) ) THEN + 93 * 93 WHEN NOT ( NULL ) IN ( + COALESCE ( 7, + 68 + NULLIF ( - 89, + ( 10 ) ) ) ) THEN NULL END * 23
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4537
SELECT ALL 82 DIV 59 col0
----
1

skipif mysql # not compatible
query I rowsort label-4537
SELECT ALL 82 / 59 col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4538
SELECT DISTINCT ( 36 ) DIV + 84
----
0

skipif mysql # not compatible
query I rowsort label-4538
SELECT DISTINCT ( 36 ) / + 84
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT DISTINCT - 57 - + COUNT( * ) * COUNT( * ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-4539
SELECT DISTINCT - 57 - + COUNT ( * ) * COUNT ( * ) AS col2
----
-58

query I rowsort
SELECT DISTINCT - 48 * - ( 22 )
----
1056

query I rowsort
SELECT - 16 * 41 AS col1
----
-656

query I rowsort
SELECT ALL - 30 * + 39 AS col1
----
-1170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4543
SELECT DISTINCT CAST( 22 AS SIGNED )
----
22

skipif mysql # not compatible
query I rowsort label-4543
SELECT DISTINCT CAST ( 22 AS INTEGER )
----
22

query I rowsort
SELECT - ( + 18 ) - - ( ( 74 ) ) col2
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4545
SELECT - CAST( - ( - 53 ) AS SIGNED )
----
-53

skipif mysql # not compatible
query I rowsort label-4545
SELECT - CAST ( - ( - 53 ) AS INTEGER )
----
-53

query I rowsort
SELECT + 80 * ( - 34 ) col1
----
-2720

query I rowsort
SELECT ALL - 31 * - 79 AS col2
----
2449

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT ALL - CASE WHEN NOT + COUNT( * ) <= ( + 51 ) THEN 74 * + NULLIF ( - COUNT( * ), 4 / 30 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4548
SELECT ALL - CASE WHEN NOT + COUNT ( * ) <= ( + 51 ) THEN 74 * + NULLIF ( - COUNT ( * ), 4 / 30 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4549
SELECT 95 / - 32 - 15 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4549
SELECT 95 / - 32 - 15 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL COALESCE ( CASE 78 WHEN 61 THEN - NULLIF ( 58, ( - 71 ) ) ELSE - 65 * 66 END, 83 ) + + 70
----
-4220

query I rowsort
SELECT 9 * 54 AS col0
----
486

onlyif mysql # DIV for integer division: 
query I rowsort label-4552
SELECT ALL + 96 DIV + 52
----
1

skipif mysql # not compatible
query I rowsort label-4552
SELECT ALL + 96 / + 52
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4553
SELECT CAST( NULL AS DECIMAL ) / - 91 + + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-4553
SELECT CAST ( NULL AS REAL ) / - 91 + + 0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT DISTINCT + MIN( - 25 ) * COUNT( ALL COALESCE ( - 77, + 80 ) ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-4554
SELECT DISTINCT + MIN ( - 25 ) * COUNT ( ALL COALESCE ( - 77, + 80 ) ) AS col0
----
-25

query I rowsort
SELECT DISTINCT - 23 + + COALESCE ( + 40, 4 + + 47 * 18 ) AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT ALL - COUNT( * ) + 37 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-4556
SELECT ALL - COUNT ( * ) + 37 AS col2
----
36

query I rowsort
SELECT 9 + + 5 * 79
----
404

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT DISTINCT - COALESCE ( + COUNT( 84 ), + 56 + - 10, ( 80 ) ) + + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4558
SELECT DISTINCT - COALESCE ( + COUNT ( 84 ), + 56 + - 10, ( 80 ) ) + + COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT ALL 36 + + COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-4559
SELECT ALL 36 + + COUNT ( * )
----
37

query I rowsort
SELECT 84 + + 96 AS col2
----
180

query I rowsort
SELECT ALL - 67 + 84 AS col1
----
17

query I rowsort
SELECT DISTINCT + - 83 + 30 * 42 AS col2
----
1177

onlyif mysql # aggregate syntax: 
query I rowsort label-4563
SELECT ALL - 87 + COUNT( * ) * 56 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-4563
SELECT ALL - 87 + COUNT ( * ) * 56 AS col0
----
-31

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4564
SELECT - - SUM( + CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4564
SELECT - - SUM ( + CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4565
SELECT NULLIF ( + 4, - ( 11 ) * + ( 4 ) ) + + ( - 54 + + CASE CAST( + 47 AS SIGNED ) WHEN COALESCE ( 75, - 66 ) - + COUNT( * ) THEN - COUNT( * ) * COUNT( * ) WHEN 12 THEN NULL END ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4565
SELECT NULLIF ( + 4, - ( 11 ) * + ( 4 ) ) + + ( - 54 + + CASE CAST ( + 47 AS INTEGER ) WHEN COALESCE ( 75, - 66 ) - + COUNT ( * ) THEN - COUNT ( * ) * COUNT ( * ) WHEN 12 THEN NULL END ) col1
----
NULL

query I rowsort
SELECT - 99 + + 44
----
-55

query I rowsort
SELECT COALESCE ( ( - 68 ), - 50 * + 65 ) AS col2
----
-68

query I rowsort
SELECT ALL 52 * 48
----
2496

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4569
SELECT + NULLIF ( + CAST( - 98 AS SIGNED ), - 33 * + 65 )
----
-98

skipif mysql # not compatible
query I rowsort label-4569
SELECT + NULLIF ( + CAST ( - 98 AS INTEGER ), - 33 * + 65 )
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-4570
SELECT ALL + NULLIF ( ( 53 ), + 90 ) DIV + 68
----
0

skipif mysql # not compatible
query I rowsort label-4570
SELECT ALL + NULLIF ( ( 53 ), + 90 ) / + 68
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT ALL MAX( DISTINCT + 26 ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-4571
SELECT ALL MAX ( DISTINCT + 26 ) AS col1
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4572
SELECT CASE - 16 WHEN 84 + + 62 THEN 15 * CAST( NULL AS SIGNED ) + 18 WHEN - 44 / - NULLIF ( 72, COUNT( * ) * - 53 + - ( + 81 + 25 ) ) THEN NULL ELSE NULL END + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-4572
SELECT CASE - 16 WHEN 84 + + 62 THEN 15 * CAST ( NULL AS INTEGER ) + 18 WHEN - 44 / - NULLIF ( 72, COUNT ( * ) * - 53 + - ( + 81 + 25 ) ) THEN NULL ELSE NULL END + 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT - MIN( + 45 ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-4573
SELECT - MIN ( + 45 ) AS col1
----
-45

query I rowsort
SELECT ( - 81 ) + 74 AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT SUM( ALL + + 34 ) + - 69 AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-4575
SELECT SUM ( ALL + + 34 ) + - 69 AS col2
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-4576
SELECT ALL + 72 DIV 16 * - 6 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-4576
SELECT ALL + 72 / 16 * - 6 AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT 84 + + COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-4577
SELECT 84 + + COUNT ( * )
----
85

query I rowsort
SELECT ALL 56 + + - 91 AS col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT ALL - MAX( - 54 ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-4579
SELECT ALL - MAX ( - 54 ) AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4580
SELECT CASE + SUM( 72 ) WHEN - 19 / + 11 THEN - COUNT( * ) ELSE NULL END * 51 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4580
SELECT CASE + SUM ( 72 ) WHEN - 19 / + 11 THEN - COUNT ( * ) ELSE NULL END * 51 col2
----
NULL

query I rowsort
SELECT ALL + 0 + + 44 + - 19 * 20 AS col0
----
-336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4582
SELECT - 93 * + ( + 55 ) * - 96 + + CAST( - 44 AS SIGNED )
----
490996

skipif mysql # not compatible
query I rowsort label-4582
SELECT - 93 * + ( + 55 ) * - 96 + + CAST ( - 44 AS INTEGER )
----
490996

onlyif mysql # DIV for integer division: 
query I rowsort label-4583
SELECT ALL - 36 + + 48 DIV 38
----
-35

skipif mysql # not compatible
query I rowsort label-4583
SELECT ALL - 36 + + 48 / 38
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4584
SELECT 0 DIV - 62 * COUNT( * ) + 80
----
80

skipif mysql # not compatible
query I rowsort label-4584
SELECT 0 / - 62 * COUNT ( * ) + 80
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT CASE WHEN NOT ( 15 ) IS NOT NULL THEN NULL WHEN NOT NULL <= ( ( + 50 ) ) THEN COUNT( * ) + MIN( DISTINCT 11 ) END * - 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4585
SELECT CASE WHEN NOT ( 15 ) IS NOT NULL THEN NULL WHEN NOT NULL <= ( ( + 50 ) ) THEN COUNT ( * ) + MIN ( DISTINCT 11 ) END * - 26 AS col2
----
NULL

query I rowsort
SELECT 19 + - ( 33 ) * - COALESCE ( 86, 8, - 90 )
----
2857

query I rowsort
SELECT DISTINCT + 91 * - 80 * - 58 AS col0
----
422240

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT DISTINCT + 83 + - + COUNT( * ) - 56 * 11
----
-534

skipif mysql # not compatible
query I rowsort label-4588
SELECT DISTINCT + 83 + - + COUNT ( * ) - 56 * 11
----
-534

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT 9 * - - 82 * MAX( ALL 15 ) AS col0
----
11070

skipif mysql # not compatible
query I rowsort label-4589
SELECT 9 * - - 82 * MAX ( ALL 15 ) AS col0
----
11070

query I rowsort
SELECT ALL 42 + - 35
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4591
SELECT DISTINCT - SUM( ALL + 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-4591
SELECT DISTINCT - SUM ( ALL + 38 )
----
-38

query I rowsort
SELECT ALL + 38 + 88 AS col2
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT 84 * - MIN( 34 ) - NULLIF ( 61, - 40 * 69 ) AS col2
----
-2917

skipif mysql # not compatible
query I rowsort label-4593
SELECT 84 * - MIN ( 34 ) - NULLIF ( 61, - 40 * 69 ) AS col2
----
-2917

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT + MAX( - 62 ) col2
----
-62

skipif mysql # not compatible
query I rowsort label-4594
SELECT + MAX ( - 62 ) col2
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-4595
SELECT DISTINCT + + COALESCE ( - 45, CASE - 25 WHEN CAST( 11 AS SIGNED ) * 15 THEN + MIN( ALL + ( - 10 ) ) + - 33 DIV 67 WHEN CAST( - COALESCE ( 95, 56 ) AS DECIMAL ) THEN NULL ELSE NULL END DIV 10 + - 77 ) DIV 7 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-4595
SELECT DISTINCT + + COALESCE ( - 45, CASE - 25 WHEN CAST ( 11 AS INTEGER ) * 15 THEN + MIN ( ALL + ( - 10 ) ) + - 33 / 67 WHEN CAST ( - COALESCE ( 95, 56 ) AS REAL ) THEN NULL ELSE NULL END / 10 + - 77 ) / 7 AS col1
----
-6

query I rowsort
SELECT 63 * - 17 + - 90 * - 37
----
2259

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4597
SELECT - 39 * - 21 * 84 - 62 DIV - COUNT( * )
----
68858

skipif mysql # not compatible
query I rowsort label-4597
SELECT - 39 * - 21 * 84 - 62 / - COUNT ( * )
----
68858

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4598
SELECT ALL - - COALESCE ( - CAST( NULL AS SIGNED ), 0, + 57 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4598
SELECT ALL - - COALESCE ( - CAST ( NULL AS INTEGER ), 0, + 57 ) AS col0
----
0

query I rowsort
SELECT DISTINCT + 22 * - - 93 AS col2
----
2046

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT + ( + - 12 ) * COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-4600
SELECT + ( + - 12 ) * COUNT ( * )
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4601
SELECT DISTINCT - - COUNT( 20 ) * - CAST( + COUNT( * ) + - 49 AS SIGNED ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-4601
SELECT DISTINCT - - COUNT ( 20 ) * - CAST ( + COUNT ( * ) + - 49 AS INTEGER ) AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT ALL + MAX( DISTINCT - 42 ) * 64 AS col1
----
-2688

skipif mysql # not compatible
query I rowsort label-4602
SELECT ALL + MAX ( DISTINCT - 42 ) * 64 AS col1
----
-2688

query I rowsort
SELECT 32 * + 76 AS col1
----
2432

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT - SUM( CASE 96 WHEN - 34 / 34 THEN + 58 * - ( ( 31 ) * + 33 ) WHEN - 1 THEN + ( 25 ) * 56 + + 29 * 26 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4604
SELECT - SUM ( CASE 96 WHEN - 34 / 34 THEN + 58 * - ( ( 31 ) * + 33 ) WHEN - 1 THEN + ( 25 ) * 56 + + 29 * 26 END ) AS col2
----
NULL

query I rowsort
SELECT 9 + 26 * 60
----
1569

query I rowsort
SELECT 12 * - - COALESCE ( + ( - 98 ), 64, - 13 * 23 ) * + 48
----
-56448

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4607
SELECT - AVG ( CAST( NULL AS SIGNED ) ) + + 67 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4607
SELECT - AVG ( CAST ( NULL AS INTEGER ) ) + + 67 col1
----
NULL

query I rowsort
SELECT - 13 - - - 97 AS col2
----
-110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4609
SELECT CAST( NULL AS SIGNED ) + - + 42 / + 39 * - 13 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4609
SELECT CAST ( NULL AS INTEGER ) + - + 42 / + 39 * - 13 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT DISTINCT COUNT( ALL - 82 ) * 93 + - 75
----
18

skipif mysql # not compatible
query I rowsort label-4610
SELECT DISTINCT COUNT ( ALL - 82 ) * 93 + - 75
----
18

query I rowsort
SELECT ALL + 13 + + 24 * 5 AS col2
----
133

query II rowsort
SELECT 63 AS col1, 68 AS col0
----
63
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT ALL 38 + + COUNT( ( + ( - 73 ) ) ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-4613
SELECT ALL 38 + + COUNT ( ( + ( - 73 ) ) ) AS col1
----
39

query I rowsort
SELECT DISTINCT 50 * - ( - 36 )
----
1800

query I rowsort
SELECT + 79 - - + 25 + - - 50 + - 31 AS col1
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-4616
SELECT + 97 DIV 75 * - + 85
----
-85

skipif mysql # not compatible
query I rowsort label-4616
SELECT + 97 / 75 * - + 85
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT + 8 - COUNT( * ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-4617
SELECT + 8 - COUNT ( * ) AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT + CASE + 62 WHEN + 72 + + ( - 64 ) THEN + COUNT( * ) + + COUNT( * ) WHEN + 28 / + 36 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4618
SELECT + CASE + 62 WHEN + 72 + + ( - 64 ) THEN + COUNT ( * ) + + COUNT ( * ) WHEN + 28 / + 36 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT + CASE - COALESCE ( 29, 11 * 58, - 62, 75 ) WHEN - COUNT( * ) + - 48 THEN + 62 + - 63 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4619
SELECT + CASE - COALESCE ( 29, 11 * 58, - 62, 75 ) WHEN - COUNT ( * ) + - 48 THEN + 62 + - 63 END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4620
SELECT DISTINCT + 70 col0, 52 + + 78 DIV - 80 AS col0
----
70
52

skipif mysql # not compatible
query II rowsort label-4620
SELECT DISTINCT + 70 col0, 52 + + 78 / - 80 AS col0
----
70
52

onlyif mysql # DIV for integer division: 
query I rowsort label-4621
SELECT + 61 DIV + ( - - NULLIF ( 85, 36 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4621
SELECT + 61 / + ( - - NULLIF ( 85, 36 ) ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4622
SELECT ALL 72 DIV - COUNT( * ) col2
----
-72

skipif mysql # not compatible
query I rowsort label-4622
SELECT ALL 72 / - COUNT ( * ) col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT + CASE - MAX( - + 93 ) WHEN 45 * 21 THEN 40 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4623
SELECT + CASE - MAX ( - + 93 ) WHEN 45 * 21 THEN 40 END
----
NULL

query I rowsort
SELECT ALL - 1 * - 6 + - - 9 AS col1
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4625
SELECT CASE - + 46 WHEN + - 69 * + ( - 32 ) THEN NULL ELSE COUNT( * ) * + CASE - COUNT( * ) WHEN COUNT( * ) THEN NULL WHEN - 3 THEN + 32 / 26 + 71 / COUNT( * ) WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-4625
SELECT CASE - + 46 WHEN + - 69 * + ( - 32 ) THEN NULL ELSE COUNT ( * ) * + CASE - COUNT ( * ) WHEN COUNT ( * ) THEN NULL WHEN - 3 THEN + 32 / 26 + 71 / COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4626
SELECT ALL - 62 * COUNT( ALL + 40 ) * CAST( NULL AS SIGNED ) - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4626
SELECT ALL - 62 * COUNT ( ALL + 40 ) * CAST ( NULL AS INTEGER ) - + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4627
SELECT + 31 - + CASE + 24 WHEN - 70 THEN NULL WHEN ( - 86 ) THEN CAST( 1 AS SIGNED ) + NULLIF ( + 21, + 76 + 91 ) * 41 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4627
SELECT + 31 - + CASE + 24 WHEN - 70 THEN NULL WHEN ( - 86 ) THEN CAST ( 1 AS INTEGER ) + NULLIF ( + 21, + 76 + 91 ) * 41 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT + - COUNT( * ) * 20
----
-20

skipif mysql # not compatible
query I rowsort label-4628
SELECT + - COUNT ( * ) * 20
----
-20

query I rowsort
SELECT + 45 + 31 * - 14
----
-389

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4630
SELECT + - 45, + 61 * CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) AS col1
----
-45
NULL

skipif mysql # not compatible
query II rowsort label-4630
SELECT + - 45, + 61 * CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) AS col1
----
-45
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT ALL + COUNT( DISTINCT 32 )
----
1

skipif mysql # not compatible
query I rowsort label-4631
SELECT ALL + COUNT ( DISTINCT 32 )
----
1

query I rowsort
SELECT + + COALESCE ( + 45, 6 ) AS col2
----
45

query I rowsort
SELECT - + 73 * - 18 AS col0
----
1314

onlyif mysql # aggregate syntax: 
query II rowsort label-4634
SELECT + 31 col1, - COUNT( * ) AS col0
----
31
-1

skipif mysql # not compatible
query II rowsort label-4634
SELECT + 31 col1, - COUNT ( * ) AS col0
----
31
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4635
SELECT ( + - 14 ) * + CAST( NULL AS DECIMAL ) + 31 + - 60 * + 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4635
SELECT ( + - 14 ) * + CAST ( NULL AS REAL ) + 31 + - 60 * + 35 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT ALL + 24 * - + COUNT( * ) * 43 AS col1
----
-1032

skipif mysql # not compatible
query I rowsort label-4636
SELECT ALL + 24 * - + COUNT ( * ) * 43 AS col1
----
-1032

query I rowsort
SELECT - 3 * - 24 + 95 AS col2
----
167

query I rowsort
SELECT - 17 + + + 98
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4639
SELECT ALL + - MAX( ALL 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-4639
SELECT ALL + - MAX ( ALL 61 )
----
-61

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4640
SELECT - CAST( NULL AS DECIMAL ) + - COUNT( * ) + - 17 - + COUNT( + COALESCE ( - 6, - CASE - 9 WHEN + ( 40 ) * 26 THEN 29 ELSE NULL END ) + + 25 ) * NULLIF ( 14, 29 * - ( - 38 * - 93 ) ) * - 2 * + 78 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4640
SELECT - CAST ( NULL AS REAL ) + - COUNT ( * ) + - 17 - + COUNT ( + COALESCE ( - 6, - CASE - 9 WHEN + ( 40 ) * 26 THEN 29 ELSE NULL END ) + + 25 ) * NULLIF ( 14, 29 * - ( - 38 * - 93 ) ) * - 2 * + 78 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4641
SELECT + 70 DIV + 59 + + 52 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-4641
SELECT + 70 / + 59 + + 52 AS col2
----
53

query I rowsort
SELECT - - 47 * - 86
----
-4042

query I rowsort
SELECT DISTINCT - 41 + - 33
----
-74

query II rowsort
SELECT ALL - 83, 56 col1
----
-83
56

onlyif mysql # aggregate syntax: 
query II rowsort label-4645
SELECT - - COUNT( * ) col1, COUNT( 91 ) * 76
----
1
76

skipif mysql # not compatible
query II rowsort label-4645
SELECT - - COUNT ( * ) col1, COUNT ( 91 ) * 76
----
1
76

query I rowsort
SELECT ALL - 91 * - 76 AS col1
----
6916

onlyif mysql # DIV for integer division: 
query I rowsort label-4647
SELECT - - 86 DIV + + 79
----
1

skipif mysql # not compatible
query I rowsort label-4647
SELECT - - 86 / + + 79
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT DISTINCT - SUM( 6 ) + 38
----
32

skipif mysql # not compatible
query I rowsort label-4648
SELECT DISTINCT - SUM ( 6 ) + 38
----
32

query I rowsort
SELECT - NULLIF ( - 97, + 1 * 64 ) * + 20 AS col0
----
1940

onlyif mysql # aggregate syntax: 
query I rowsort label-4650
SELECT DISTINCT + COUNT( * ) + 23 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-4650
SELECT DISTINCT + COUNT ( * ) + 23 AS col1
----
24

query I rowsort
SELECT DISTINCT + 27 * - - 53 * - 94 AS col2
----
-134514

query I rowsort
SELECT ALL 39 + + 76 AS col0
----
115

query I rowsort
SELECT ALL ( - 28 ) col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT DISTINCT - COUNT( + 14 ) + + 99 * 22 + 70
----
2247

skipif mysql # not compatible
query I rowsort label-4654
SELECT DISTINCT - COUNT ( + 14 ) + + 99 * 22 + 70
----
2247

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT - 80 + ( 60 ) + + ( + 9 ) + - 6 * COUNT( * )
----
-17

skipif mysql # not compatible
query I rowsort label-4655
SELECT - 80 + ( 60 ) + + ( + 9 ) + - 6 * COUNT ( * )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT ALL + 37 + + - 43 * + ( - + COUNT( * ) ) + 87
----
167

skipif mysql # not compatible
query I rowsort label-4656
SELECT ALL + 37 + + - 43 * + ( - + COUNT ( * ) ) + 87
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT ALL - MIN( 77 ) + + 61 * - 41 AS col1
----
-2578

skipif mysql # not compatible
query I rowsort label-4657
SELECT ALL - MIN ( 77 ) + + 61 * - 41 AS col1
----
-2578

query I rowsort
SELECT - NULLIF ( + - 93, + + 96 )
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4659
SELECT - 61 + CAST( NULL AS SIGNED ) / + 83 * - - 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4659
SELECT - 61 + CAST ( NULL AS INTEGER ) / + 83 * - - 32 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT ALL + COUNT( * ) - - 96
----
97

skipif mysql # not compatible
query I rowsort label-4660
SELECT ALL + COUNT ( * ) - - 96
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-4661
SELECT ALL 49 - - + 31 AS col1, - MAX( DISTINCT 36 )
----
80
-36

skipif mysql # not compatible
query II rowsort label-4661
SELECT ALL 49 - - + 31 AS col1, - MAX ( DISTINCT 36 )
----
80
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4662
SELECT DISTINCT - MIN( ALL - 96 ) * - - 81 AS col1
----
7776

skipif mysql # not compatible
query I rowsort label-4662
SELECT DISTINCT - MIN ( ALL - 96 ) * - - 81 AS col1
----
7776

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4663
SELECT - 46 * + SUM( ALL + CAST( NULL AS SIGNED ) ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4663
SELECT - 46 * + SUM ( ALL + CAST ( NULL AS INTEGER ) ) + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 90 * - + 58 * + - 33 AS col2
----
172260

query I rowsort
SELECT ALL - ( - 78 ) * 88 AS col2
----
6864

query I rowsort
SELECT - 19 * - 96
----
1824

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT + 47 * - 62 * - 69 + - - 19 * - 83 + COUNT( * )
----
199490

skipif mysql # not compatible
query I rowsort label-4667
SELECT + 47 * - 62 * - 69 + - - 19 * - 83 + COUNT ( * )
----
199490

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4668
SELECT + 21 DIV COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-4668
SELECT + 21 / COUNT ( * )
----
21

query II rowsort
SELECT + 74 * 31 AS col0, 6
----
2294
6

query I rowsort
SELECT + 79 * + + 42
----
3318

onlyif mysql # DIV for integer division: 
query I rowsort label-4671
SELECT + 88 DIV 91
----
0

skipif mysql # not compatible
query I rowsort label-4671
SELECT + 88 / 91
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4672
SELECT ALL - 36 DIV COUNT( * ) - - + 30 * + - 22 * COUNT( * )
----
-696

skipif mysql # not compatible
query I rowsort label-4672
SELECT ALL - 36 / COUNT ( * ) - - + 30 * + - 22 * COUNT ( * )
----
-696

onlyif mysql # aggregate syntax: 
query I rowsort label-4673
SELECT ALL - 56 * COUNT( * ) * - 53 AS col1
----
2968

skipif mysql # not compatible
query I rowsort label-4673
SELECT ALL - 56 * COUNT ( * ) * - 53 AS col1
----
2968

query I rowsort
SELECT NULLIF ( + 82, + 43 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT + 63 * + COUNT( * ) * + + 16 * + COUNT( * ) - - 25
----
1033

skipif mysql # not compatible
query I rowsort label-4675
SELECT + 63 * + COUNT ( * ) * + + 16 * + COUNT ( * ) - - 25
----
1033

query I rowsort
SELECT ALL - - 83 + + 94 AS col1
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT 87 * + MIN( ALL + 2 ) + + 10 AS col0
----
184

skipif mysql # not compatible
query I rowsort label-4677
SELECT 87 * + MIN ( ALL + 2 ) + + 10 AS col0
----
184

query I rowsort
SELECT ALL 64 + 29 * - 12 col0
----
-284

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT DISTINCT + + MAX( 82 ) + + + 13
----
95

skipif mysql # not compatible
query I rowsort label-4679
SELECT DISTINCT + + MAX ( 82 ) + + + 13
----
95

query I rowsort
SELECT DISTINCT - - 33 + + 8 * - 56 * + 95 AS col0
----
-42527

query I rowsort
SELECT ALL - ( + 86 ) + + - 19 + 4 AS col1
----
-101

query II rowsort
SELECT ALL - 41 * + 92 * - 76 AS col1, - 16 - - + 39 * 44
----
286672
1700

query I rowsort
SELECT 10 + + 71
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4684
SELECT DISTINCT - 68 + - 78 / - - CASE WHEN NULL NOT BETWEEN - 75 AND ( ( 32 ) ) THEN CASE CAST( COUNT( * ) AS SIGNED ) WHEN 75 - + 88 THEN + COALESCE ( 52, 70, - COUNT( * ) ) + + COUNT( - 84 ) * COALESCE ( 39 * + 5, + 37 ) WHEN + 62 THEN NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-4684
SELECT DISTINCT - 68 + - 78 / - - CASE WHEN NULL NOT BETWEEN - 75 AND ( ( 32 ) ) THEN CASE CAST ( COUNT ( * ) AS INTEGER ) WHEN 75 - + 88 THEN + COALESCE ( 52, 70, - COUNT ( * ) ) + + COUNT ( - 84 ) * COALESCE ( 39 * + 5, + 37 ) WHEN + 62 THEN NULL END END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT 19 + + - 5 + 16 - + - 52 + - - 55 * MAX( DISTINCT + 26 - ( 80 ) ) * 39 AS col0
----
-115748

skipif mysql # not compatible
query I rowsort label-4685
SELECT 19 + + - 5 + 16 - + - 52 + - - 55 * MAX ( DISTINCT + 26 - ( 80 ) ) * 39 AS col0
----
-115748

onlyif mysql # DIV for integer division: 
query I rowsort label-4686
SELECT 22 DIV + 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4686
SELECT 22 / + 62 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4687
SELECT ALL - SUM( ALL + 83 ) + + 50
----
-33

skipif mysql # not compatible
query I rowsort label-4687
SELECT ALL - SUM ( ALL + 83 ) + + 50
----
-33

query I rowsort
SELECT CASE + 57 WHEN - + 70 THEN NULL ELSE 49 * + 46 END * + 18 col0
----
40572

query II rowsort
SELECT 31 AS col2, - 26
----
31
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4690
SELECT 99 DIV - NULLIF ( - 94, 74 * CASE WHEN NOT ( + 55 ) <> NULL THEN 51 * CASE + 28 WHEN + 75 + ( + 57 ) THEN 6 WHEN + COUNT( * ) THEN NULL WHEN 60 * 48 + + CASE + 43 + 77 * + 81 WHEN 30 THEN 6 END THEN NULL ELSE NULL END END )
----
1

skipif mysql # not compatible
query I rowsort label-4690
SELECT 99 / - NULLIF ( - 94, 74 * CASE WHEN NOT ( + 55 ) <> NULL THEN 51 * CASE + 28 WHEN + 75 + ( + 57 ) THEN 6 WHEN + COUNT ( * ) THEN NULL WHEN 60 * 48 + + CASE + 43 + 77 * + 81 WHEN 30 THEN 6 END THEN NULL ELSE NULL END END )
----
1

query I rowsort
SELECT 3 + - - 89
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4692
SELECT DISTINCT + 24 * + MIN( + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4692
SELECT DISTINCT + 24 * + MIN ( + - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4693
SELECT ALL COUNT( * ) * - 42 DIV - + NULLIF ( - + 49, - + 16 )
----
0

skipif mysql # not compatible
query I rowsort label-4693
SELECT ALL COUNT ( * ) * - 42 / - + NULLIF ( - + 49, - + 16 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4694
SELECT 19 * CASE + 49 WHEN + 3 - - COUNT( * ) + 70 THEN + 5 + CAST( - CAST( ( + 70 ) AS SIGNED ) AS SIGNED ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4694
SELECT 19 * CASE + 49 WHEN + 3 - - COUNT ( * ) + 70 THEN + 5 + CAST ( - CAST ( ( + 70 ) AS INTEGER ) AS INTEGER ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT DISTINCT + COUNT( * ) * - + 45
----
-45

skipif mysql # not compatible
query I rowsort label-4695
SELECT DISTINCT + COUNT ( * ) * - + 45
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4696
SELECT DISTINCT + 88 - + - SUM( 10 )
----
98

skipif mysql # not compatible
query I rowsort label-4696
SELECT DISTINCT + 88 - + - SUM ( 10 )
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-4697
SELECT 38 DIV + 12
----
3

skipif mysql # not compatible
query I rowsort label-4697
SELECT 38 / + 12
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4698
SELECT 34 - + CASE + 42 WHEN + MIN( ALL 40 ) + 85 * - 13 THEN 55 * 2 + + SUM( - 15 ) * + CASE - CAST( - CASE WHEN NOT 22 > + 80 THEN ( 25 ) END AS DECIMAL ) - + 95 WHEN - 78 * - 36 THEN + 41 + + 81 / 80 WHEN 50 + 84 THEN NULL END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4698
SELECT 34 - + CASE + 42 WHEN + MIN ( ALL 40 ) + 85 * - 13 THEN 55 * 2 + + SUM ( - 15 ) * + CASE - CAST ( - CASE WHEN NOT 22 > + 80 THEN ( 25 ) END AS REAL ) - + 95 WHEN - 78 * - 36 THEN + 41 + + 81 / 80 WHEN 50 + 84 THEN NULL END ELSE NULL END
----
NULL

query II rowsort
SELECT + 59, 90 + - - ( - 9 ) AS col0
----
59
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4700
SELECT ALL - CASE - ( + 65 ) WHEN - 17 THEN + 67 + CAST( + 31 AS SIGNED ) WHEN - COUNT( * ) THEN NULL ELSE CAST( NULL AS SIGNED ) / 56 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4700
SELECT ALL - CASE - ( + 65 ) WHEN - 17 THEN + 67 + CAST ( + 31 AS INTEGER ) WHEN - COUNT ( * ) THEN NULL ELSE CAST ( NULL AS INTEGER ) / 56 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4701
SELECT + 93, COUNT( * ) AS col2
----
93
1

skipif mysql # not compatible
query II rowsort label-4701
SELECT + 93, COUNT ( * ) AS col2
----
93
1

query I rowsort
SELECT - 76 * - 21 * - + 67 AS col1
----
-106932

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT DISTINCT - + COALESCE ( ( - COUNT( * ) ), + 1 * 57 )
----
1

skipif mysql # not compatible
query I rowsort label-4703
SELECT DISTINCT - + COALESCE ( ( - COUNT ( * ) ), + 1 * 57 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4704
SELECT + 23 * COUNT( * ) * + 9 * - - 30 + + - 27
----
6183

skipif mysql # not compatible
query I rowsort label-4704
SELECT + 23 * COUNT ( * ) * + 9 * - - 30 + + - 27
----
6183

onlyif mysql # DIV for integer division: 
query I rowsort label-4705
SELECT + + 44 DIV + 94 + 86 + + 75
----
161

skipif mysql # not compatible
query I rowsort label-4705
SELECT + + 44 / + 94 + 86 + + 75
----
161

query I rowsort
SELECT DISTINCT CASE - - 30 WHEN + + 83 + - 66 * 87 THEN + 62 END + + 54 * + 66 AS col1
----
NULL

query I rowsort
SELECT - 65 + 0 AS col0
----
-65

query I rowsort
SELECT ALL 9 + + + 94 * 24 * - + 2 + - 27 AS col1
----
-4530

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT + + COUNT( * ) * - ( 47 ) + + CASE 67 WHEN + 21 THEN - ( - 73 ) ELSE - 23 END * - 4 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-4709
SELECT + + COUNT ( * ) * - ( 47 ) + + CASE 67 WHEN + 21 THEN - ( - 73 ) ELSE - 23 END * - 4 AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT ALL + + COUNT( * ) + 63
----
64

skipif mysql # not compatible
query I rowsort label-4710
SELECT ALL + + COUNT ( * ) + 63
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT ALL - COUNT( * ) + + 33 + ( + + MIN( - 31 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4711
SELECT ALL - COUNT ( * ) + + 33 + ( + + MIN ( - 31 ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4712
SELECT DISTINCT 36 * + 57 + - 90 * CAST( - + 9 AS SIGNED ) AS col1
----
2862

skipif mysql # not compatible
query I rowsort label-4712
SELECT DISTINCT 36 * + 57 + - 90 * CAST ( - + 9 AS INTEGER ) AS col1
----
2862

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4713
SELECT ALL CAST( - 5 AS SIGNED ) + - COALESCE ( + 19, - + 66 DIV - 55 ) + + 21 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-4713
SELECT ALL CAST ( - 5 AS INTEGER ) + - COALESCE ( + 19, - + 66 / - 55 ) + + 21 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4714
SELECT + 15 + MAX( DISTINCT + NULLIF ( + 88, + - 19 * - 65 ) ) + 35 * - 5 AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-4714
SELECT + 15 + MAX ( DISTINCT + NULLIF ( + 88, + - 19 * - 65 ) ) + 35 * - 5 AS col2
----
-72

query II rowsort
SELECT ALL 39, + 38 * + + 55 * - 21 - + - 53 AS col0
----
39
-43837

query I rowsort
SELECT DISTINCT 21 * + - 67 AS col1
----
-1407

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4717
SELECT - ( MAX( DISTINCT - - 1 ) ) * + + 89 DIV + ( + 66 ) + 96 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-4717
SELECT - ( MAX ( DISTINCT - - 1 ) ) * + + 89 / + ( + 66 ) + 96 AS col2
----
95

query I rowsort
SELECT 38 * + - 69
----
-2622

query I rowsort
SELECT DISTINCT CASE - 41 WHEN - 97 THEN NULL WHEN 14 * - 22 + + - 67 * + 27 THEN NULL ELSE + 56 * 93 END - + 3 AS col2
----
5205

query II rowsort
SELECT ALL 8 AS col2, 1 AS col0
----
8
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4721
SELECT ALL 59 AS col1, + 51 + MAX( ALL + + 96 ) * ( - 16 ) AS col2
----
59
-1485

skipif mysql # not compatible
query II rowsort label-4721
SELECT ALL 59 AS col1, + 51 + MAX ( ALL + + 96 ) * ( - 16 ) AS col2
----
59
-1485

query I rowsort
SELECT ( 98 ) * 26
----
2548

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4723
SELECT DISTINCT 13 col1, - CAST( NULL AS DECIMAL ) * - 98 * + 19 * + 97 * - 66 * - 55
----
13
NULL

skipif mysql # not compatible
query II rowsort label-4723
SELECT DISTINCT 13 col1, - CAST ( NULL AS REAL ) * - 98 * + 19 * + 97 * - 66 * - 55
----
13
NULL

query II rowsort
SELECT 3, 51 + 25 * 81 AS col0
----
3
2076

onlyif mysql # DIV for integer division: 
query I rowsort label-4725
SELECT ( COALESCE ( + - 51, - ( 46 ) DIV COALESCE ( - 91, 15 ) ) ) * - 71
----
3621

skipif mysql # not compatible
query I rowsort label-4725
SELECT ( COALESCE ( + - 51, - ( 46 ) / COALESCE ( - 91, 15 ) ) ) * - 71
----
3621

query I rowsort
SELECT 53 * - 8 * + 77
----
-32648

query I rowsort
SELECT DISTINCT + 2 * + NULLIF ( + 32, + 46 ) AS col1
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-4728
SELECT 73 DIV - 5
----
-14

skipif mysql # not compatible
query I rowsort label-4728
SELECT 73 / - 5
----
-14

query I rowsort
SELECT 43 + + NULLIF ( + 64, 91 ) AS col0
----
107

query I rowsort
SELECT ALL + 75 * + + 22 * - 76
----
-125400

onlyif mysql # aggregate syntax: 
query I rowsort label-4731
SELECT DISTINCT 12 * - COUNT( * ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-4731
SELECT DISTINCT 12 * - COUNT ( * ) AS col0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4732
SELECT + 56 + - 4 + + CAST( + 21 AS SIGNED ) - 5 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-4732
SELECT + 56 + - 4 + + CAST ( + 21 AS INTEGER ) - 5 AS col2
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4733
SELECT COUNT( * ) DIV - + 57 - + 66 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-4733
SELECT COUNT ( * ) / - + 57 - + 66 AS col2
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-4734
SELECT + COUNT( * ) col0, - 72 AS col0
----
1
-72

skipif mysql # not compatible
query II rowsort label-4734
SELECT + COUNT ( * ) col0, - 72 AS col0
----
1
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4735
SELECT + + COUNT( * ) / + - 33 * - NULLIF ( - + 1, + - COALESCE ( + SUM( DISTINCT 39 ), NULLIF ( + 59, + 79 ) ) * + 35 + CAST( NULL AS SIGNED ) ) + - 87 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4735
SELECT + + COUNT ( * ) / + - 33 * - NULLIF ( - + 1, + - COALESCE ( + SUM ( DISTINCT 39 ), NULLIF ( + 59, + 79 ) ) * + 35 + CAST ( NULL AS INTEGER ) ) + - 87 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT ALL 67 * - CASE + 76 WHEN + SUM( DISTINCT - 79 ) THEN 90 / + COUNT( * ) + COUNT( * ) WHEN + 26 THEN 52 / + COUNT( * ) + 44 * - 81 END * 84 + 76 * + 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4736
SELECT ALL 67 * - CASE + 76 WHEN + SUM ( DISTINCT - 79 ) THEN 90 / + COUNT ( * ) + COUNT ( * ) WHEN + 26 THEN 52 / + COUNT ( * ) + 44 * - 81 END * 84 + 76 * + 74 AS col2
----
NULL

query II rowsort
SELECT 30 AS col1, - 94
----
30
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT - 75 * - 76 * + - 63 + 22 + + CASE COUNT( * ) WHEN + 18 THEN NULL WHEN + 11 + + 5 THEN ( + 16 ) WHEN + 25 - + ( 73 + - 57 ) * 97 THEN NULL ELSE + 55 END + + 29 * SUM( ALL 37 ) AS col0
----
-357950

skipif mysql # not compatible
query I rowsort label-4738
SELECT - 75 * - 76 * + - 63 + 22 + + CASE COUNT ( * ) WHEN + 18 THEN NULL WHEN + 11 + + 5 THEN ( + 16 ) WHEN + 25 - + ( 73 + - 57 ) * 97 THEN NULL ELSE + 55 END + + 29 * SUM ( ALL 37 ) AS col0
----
-357950

query I rowsort
SELECT - - 24 * + - 67 * - 74 AS col0
----
118992

query I rowsort
SELECT DISTINCT 25 * 98 + - 16
----
2434

onlyif mysql # DIV for integer division: 
query I rowsort label-4741
SELECT + 13 DIV - + 1
----
-13

skipif mysql # not compatible
query I rowsort label-4741
SELECT + 13 / - + 1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT ALL ( - - MIN( DISTINCT 12 ) ) * 73 * 54 - 91
----
47213

skipif mysql # not compatible
query I rowsort label-4742
SELECT ALL ( - - MIN ( DISTINCT 12 ) ) * 73 * 54 - 91
----
47213

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4743
SELECT + + 24, + 64 * + - CAST( NULL AS SIGNED ) * + 46 AS col1
----
24
NULL

skipif mysql # not compatible
query II rowsort label-4743
SELECT + + 24, + 64 * + - CAST ( NULL AS INTEGER ) * + 46 AS col1
----
24
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4744
SELECT - COUNT( * ) * + ( + 96 ) - 46 DIV 97 - COUNT( * ) - MAX( + 49 ) DIV COUNT( * )
----
-146

skipif mysql # not compatible
query I rowsort label-4744
SELECT - COUNT ( * ) * + ( + 96 ) - 46 / 97 - COUNT ( * ) - MAX ( + 49 ) / COUNT ( * )
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT MIN( - - 32 )
----
32

skipif mysql # not compatible
query I rowsort label-4745
SELECT MIN ( - - 32 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4746
SELECT DISTINCT CASE + + COUNT( * ) WHEN + 28 THEN + + 81 + - - SUM( 21 ) + COUNT( * ) ELSE 89 END
----
89

skipif mysql # not compatible
query I rowsort label-4746
SELECT DISTINCT CASE + + COUNT ( * ) WHEN + 28 THEN + + 81 + - - SUM ( 21 ) + COUNT ( * ) ELSE 89 END
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4747
SELECT + 14 DIV + MAX( - 17 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4747
SELECT + 14 / + MAX ( - 17 ) AS col1
----
0

query I rowsort
SELECT ALL 26 * - + 98
----
-2548

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4749
SELECT DISTINCT 38 DIV 58 DIV + MAX( - 23 ) * + 17 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4749
SELECT DISTINCT 38 / 58 / + MAX ( - 23 ) * + 17 AS col0
----
0

query I rowsort
SELECT + 8 + - 55
----
-47

query I rowsort
SELECT - COALESCE ( + - 90, 57 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4752
SELECT ALL ( - 47 ) * - + COUNT( * ) + + CASE + 85 WHEN + 7 THEN NULL ELSE 90 * 32 END
----
2927

skipif mysql # not compatible
query I rowsort label-4752
SELECT ALL ( - 47 ) * - + COUNT ( * ) + + CASE + 85 WHEN + 7 THEN NULL ELSE 90 * 32 END
----
2927

query I rowsort
SELECT - NULLIF ( 78, + 42 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4754
SELECT ALL - ( - + 39 ) + + + MAX( + 81 ) AS col1
----
120

skipif mysql # not compatible
query I rowsort label-4754
SELECT ALL - ( - + 39 ) + + + MAX ( + 81 ) AS col1
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT DISTINCT NULLIF ( 12, 9 / - + 49 + - 63 * - 3 * - COUNT( * ) ) + MIN( 70 ) * 24
----
1692

skipif mysql # not compatible
query I rowsort label-4755
SELECT DISTINCT NULLIF ( 12, 9 / - + 49 + - 63 * - 3 * - COUNT ( * ) ) + MIN ( 70 ) * 24
----
1692

query I rowsort
SELECT + 98 * - + 85 * + - 83
----
691390

query I rowsort
SELECT DISTINCT ( CASE + 48 WHEN + 49 THEN + + 10 ELSE - 22 END ) AS col2
----
-22

query I rowsort
SELECT - - ( 67 )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4759
SELECT - - 13 * - 26 + - - ( + CASE - MAX( DISTINCT + - 58 ) WHEN + ( SUM( DISTINCT + 54 ) ) * + 27 THEN 8 - + 73 WHEN SUM( - 65 ) * MAX( ALL - 70 ) + + 23 THEN NULL END ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4759
SELECT - - 13 * - 26 + - - ( + CASE - MAX ( DISTINCT + - 58 ) WHEN + ( SUM ( DISTINCT + 54 ) ) * + 27 THEN 8 - + 73 WHEN SUM ( - 65 ) * MAX ( ALL - 70 ) + + 23 THEN NULL END ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4760
SELECT + + COALESCE ( + 12, + + 37 * + COALESCE ( - 11, - 30 ) * 89 + + 29 DIV - 91 ) * - 37 AS col1
----
-444

skipif mysql # not compatible
query I rowsort label-4760
SELECT + + COALESCE ( + 12, + + 37 * + COALESCE ( - 11, - 30 ) * 89 + + 29 / - 91 ) * - 37 AS col1
----
-444

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4761
SELECT ALL + 6 DIV - 89 + - MIN( 67 ) * 10 AS col1
----
-670

skipif mysql # not compatible
query I rowsort label-4761
SELECT ALL + 6 / - 89 + - MIN ( 67 ) * 10 AS col1
----
-670

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4762
SELECT ALL - MIN( ALL + 89 ) DIV + - 46 + 83 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-4762
SELECT ALL - MIN ( ALL + 89 ) / + - 46 + 83 AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT - CASE - + COUNT( * ) WHEN - - COUNT( * ) THEN - + 32 * - - 3 * NULLIF ( + + COUNT( * ), - ( - 92 ) / + 15 ) END * 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4763
SELECT - CASE - + COUNT ( * ) WHEN - - COUNT ( * ) THEN - + 32 * - - 3 * NULLIF ( + + COUNT ( * ), - ( - 92 ) / + 15 ) END * 83 AS col0
----
NULL

query I rowsort
SELECT ALL + - 14 col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT - 84 - - SUM( ALL + 54 ) * - - 61 + - 85 + - 3 + + 91 * 42
----
6944

skipif mysql # not compatible
query I rowsort label-4765
SELECT - 84 - - SUM ( ALL + 54 ) * - - 61 + - 85 + - 3 + + 91 * 42
----
6944

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4766
SELECT - - COALESCE ( + ( - 58 ), - COALESCE ( - - 84, ( + NULLIF ( 31, 69 ) ) * CASE - 13 WHEN + COALESCE ( + COUNT( * ), 2 * + 19 + COUNT( * ) ) THEN ( 40 ) ELSE NULL END + 21 * - 33, - 19 ) * + 19, COUNT( * ) ) + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4766
SELECT - - COALESCE ( + ( - 58 ), - COALESCE ( - - 84, ( + NULLIF ( 31, 69 ) ) * CASE - 13 WHEN + COALESCE ( + COUNT ( * ), 2 * + 19 + COUNT ( * ) ) THEN ( 40 ) ELSE NULL END + 21 * - 33, - 19 ) * + 19, COUNT ( * ) ) + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4767
SELECT ALL + + CAST( - 44 AS SIGNED ), - 21 col2
----
-44
-21

skipif mysql # not compatible
query II rowsort label-4767
SELECT ALL + + CAST ( - 44 AS INTEGER ), - 21 col2
----
-44
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4768
SELECT - 45 + - 11 - + 68 DIV - 67 + + - 54 * 78 + + COUNT( ALL 32 ) * 8
----
-4259

skipif mysql # not compatible
query I rowsort label-4768
SELECT - 45 + - 11 - + 68 / - 67 + + - 54 * 78 + + COUNT ( ALL 32 ) * 8
----
-4259

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT DISTINCT + NULLIF ( - 27, - 98 - + CASE - + 97 WHEN - - 22 THEN 88 END / MIN( DISTINCT 33 ) )
----
-27

skipif mysql # not compatible
query I rowsort label-4769
SELECT DISTINCT + NULLIF ( - 27, - 98 - + CASE - + 97 WHEN - - 22 THEN 88 END / MIN ( DISTINCT 33 ) )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT - 75 * + SUM( DISTINCT 98 ) * 36 + 32 AS col2
----
-264568

skipif mysql # not compatible
query I rowsort label-4770
SELECT - 75 * + SUM ( DISTINCT 98 ) * 36 + 32 AS col2
----
-264568

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT ALL + 19 * + - 43 * - COUNT( * )
----
817

skipif mysql # not compatible
query I rowsort label-4771
SELECT ALL + 19 * + - 43 * - COUNT ( * )
----
817

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4772
SELECT - 38 * - + 64 * - NULLIF ( - - 85, - 67 ) * + 80 * CAST( - 75 AS SIGNED ) AS col1
----
1240320000

skipif mysql # not compatible
query I rowsort label-4772
SELECT - 38 * - + 64 * - NULLIF ( - - 85, - 67 ) * + 80 * CAST ( - 75 AS INTEGER ) AS col1
----
1240320000

query I rowsort
SELECT ALL 85 * - + 84 AS col1
----
-7140

query I rowsort
SELECT - 91 + - + 13 AS col2
----
-104

query I rowsort
SELECT - 8 * + 75
----
-600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4776
SELECT - 67 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4776
SELECT - 67 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 2 * 45
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-4778
SELECT + 61 DIV 50 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4778
SELECT + 61 / 50 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4779
SELECT DISTINCT + 71 * + - 62 * + 83 * - MAX( ALL - 18 ) + - 84 + MIN( DISTINCT - 58 )
----
-6576730

skipif mysql # not compatible
query I rowsort label-4779
SELECT DISTINCT + 71 * + - 62 * + 83 * - MAX ( ALL - 18 ) + - 84 + MIN ( DISTINCT - 58 )
----
-6576730

onlyif mysql # DIV for integer division: 
query I rowsort label-4780
SELECT - 25 DIV + 25
----
-1

skipif mysql # not compatible
query I rowsort label-4780
SELECT - 25 / + 25
----
-1

query I rowsort
SELECT ALL - 84 + + + 36 + - 39
----
-87

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4782
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + + + 85 * COUNT( DISTINCT 92 ) - 0 * 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4782
SELECT DISTINCT + CAST ( NULL AS REAL ) + + + 85 * COUNT ( DISTINCT 92 ) - 0 * 67 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4783
SELECT - CASE - 87 WHEN - 5 / - CAST( - 59 AS DECIMAL ) * 2 THEN - CAST( NULL AS SIGNED ) WHEN - + 15 THEN + 43 + 87 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4783
SELECT - CASE - 87 WHEN - 5 / - CAST ( - 59 AS REAL ) * 2 THEN - CAST ( NULL AS INTEGER ) WHEN - + 15 THEN + 43 + 87 END
----
NULL

query I rowsort
SELECT ALL 13 + + 45 + - 57 * 90 * - + 70 + + 59 AS col2
----
359217

query I rowsort
SELECT + ( 73 ) + - 67 * 5
----
-262

query I rowsort
SELECT DISTINCT + 12 + + 34
----
46

query I rowsort
SELECT + + 9 + 65 AS col2
----
74

query I rowsort
SELECT ALL - 28 + - 40
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4789
SELECT - - 23 + - SUM( DISTINCT ( + 38 ) ) DIV + + 8
----
19

skipif mysql # not compatible
query I rowsort label-4789
SELECT - - 23 + - SUM ( DISTINCT ( + 38 ) ) / + + 8
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT - MAX( DISTINCT + - 61 ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-4790
SELECT - MAX ( DISTINCT + - 61 ) AS col0
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4791
SELECT + 18 + + - 31 - - 54 + - - COALESCE ( 3, + + 97 ) + - + COALESCE ( - 49, MAX( - 56 ), ( 25 ) - 78 DIV 53 ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-4791
SELECT + 18 + + - 31 - - 54 + - - COALESCE ( 3, + + 97 ) + - + COALESCE ( - 49, MAX ( - 56 ), ( 25 ) - 78 / 53 ) AS col0
----
93

query II rowsort
SELECT 59 - - 60 * 79 AS col1, - 96
----
4799
-96

query II rowsort
SELECT - + 54 AS col1, - 0 + - 43 AS col0
----
-54
-43

onlyif mysql # DIV for integer division: 
query II rowsort label-4794
SELECT 31 + 86 + - 11 DIV - 65 AS col0, + 58 + + ( + - 73 ) AS col2
----
117
-15

skipif mysql # not compatible
query II rowsort label-4794
SELECT 31 + 86 + - 11 / - 65 AS col0, + 58 + + ( + - 73 ) AS col2
----
117
-15

query I rowsort
SELECT + 25 * - 74
----
-1850

onlyif mysql # DIV for integer division: 
query I rowsort label-4796
SELECT ALL + 52 DIV 11 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-4796
SELECT ALL + 52 / 11 AS col2
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-4797
SELECT + ( 20 ) DIV - + 95
----
0

skipif mysql # not compatible
query I rowsort label-4797
SELECT + ( 20 ) / - + 95
----
0

query I rowsort
SELECT - 4 * 57
----
-228

query I rowsort
SELECT ALL - - ( - + 56 ) AS col2
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4800
SELECT COUNT( * ) DIV + 1
----
1

skipif mysql # not compatible
query I rowsort label-4800
SELECT COUNT ( * ) / + 1
----
1

query I rowsort
SELECT DISTINCT - 90 col1
----
-90

query I rowsort
SELECT DISTINCT 62 * + 14 AS col0
----
868

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4803
SELECT COUNT( * ) DIV 36 col1, - 80
----
0
-80

skipif mysql # not compatible
query II rowsort label-4803
SELECT COUNT ( * ) / 36 col1, - 80
----
0
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4804
SELECT 54 * + 71 AS col1, + 65 - + 91 + - COALESCE ( + 98, + - 84 * - 85, + 49 * + CAST( NULL AS SIGNED ) ) * COUNT( * ) AS col0
----
3834
-124

skipif mysql # not compatible
query II rowsort label-4804
SELECT 54 * + 71 AS col1, + 65 - + 91 + - COALESCE ( + 98, + - 84 * - 85, + 49 * + CAST ( NULL AS INTEGER ) ) * COUNT ( * ) AS col0
----
3834
-124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4805
SELECT ALL - CAST( NULL AS SIGNED ) + 3 AS col1, MIN( ALL + - 3 )
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-4805
SELECT ALL - CAST ( NULL AS INTEGER ) + 3 AS col1, MIN ( ALL + - 3 )
----
NULL
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4806
SELECT 61 * + - 74 * - 20 - + + 77 - CASE 19 WHEN - + ( NULLIF ( - 66, + NULLIF ( 62, - 27 ) - CAST( NULL AS SIGNED ) * ( 37 ) ) ) + + 11 THEN 21 WHEN CASE COUNT( * ) WHEN - 65 + - 85 * COUNT( * ) THEN NULL WHEN 8 THEN NULL WHEN 68 THEN 36 ELSE - 23 END * 69 THEN NULL WHEN - 60 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4806
SELECT 61 * + - 74 * - 20 - + + 77 - CASE 19 WHEN - + ( NULLIF ( - 66, + NULLIF ( 62, - 27 ) - CAST ( NULL AS INTEGER ) * ( 37 ) ) ) + + 11 THEN 21 WHEN CASE COUNT ( * ) WHEN - 65 + - 85 * COUNT ( * ) THEN NULL WHEN 8 THEN NULL WHEN 68 THEN 36 ELSE - 23 END * 69 THEN NULL WHEN - 60 THEN NULL END
----
NULL

query I rowsort
SELECT 44 * + 52
----
2288

query I rowsort
SELECT DISTINCT - 71 * + + 23
----
-1633

onlyif mysql # aggregate syntax: 
query I rowsort label-4809
SELECT ALL + 16 + - - MIN( + 31 ) + ( - + 27 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-4809
SELECT ALL + 16 + - - MIN ( + 31 ) + ( - + 27 ) AS col2
----
20

query I rowsort
SELECT 69 + + - 26
----
43

query I rowsort
SELECT 72 - - - 59 + 91 + - 63 + + 36 * - 34 * + 6 + 92 + + 65 AS col1
----
-7146

query I rowsort
SELECT 82 - - 3 * + 99 AS col2
----
379

query I rowsort
SELECT - + ( - 17 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT ALL - + 60 + + + COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-4814
SELECT ALL - + 60 + + + COUNT ( * )
----
-59

query I rowsort
SELECT 38 * + 8 AS col0
----
304

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4816
SELECT - COALESCE ( + + 91, + COUNT( * ) DIV 13 * - - 89, - NULLIF ( - 71, + 77 ) ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-4816
SELECT - COALESCE ( + + 91, + COUNT ( * ) / 13 * - - 89, - NULLIF ( - 71, + 77 ) ) AS col2
----
-91

query I rowsort
SELECT + 7 + - + 55 + + 78 + 36 col0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4818
SELECT DISTINCT - ( - ( - - ( CAST( NULL AS SIGNED ) ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4818
SELECT DISTINCT - ( - ( - - ( CAST ( NULL AS INTEGER ) ) ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4819
SELECT DISTINCT - MAX( - - 24 ) DIV + ( + COUNT( * ) ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-4819
SELECT DISTINCT - MAX ( - - 24 ) / + ( + COUNT ( * ) ) AS col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT ALL SUM( ALL + - COALESCE ( - 36, - 46 - - 19 ) ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-4820
SELECT ALL SUM ( ALL + - COALESCE ( - 36, - 46 - - 19 ) ) AS col0
----
36

query I rowsort
SELECT DISTINCT ( + + 78 ) col0
----
78

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4822
SELECT 69 * + CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4822
SELECT 69 * + CAST ( NULL AS REAL ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT 87 * + 33 + + 78 * COUNT( * ) * + - 73 + + - 4 col1
----
-2827

skipif mysql # not compatible
query I rowsort label-4823
SELECT 87 * + 33 + + 78 * COUNT ( * ) * + - 73 + + - 4 col1
----
-2827

query I rowsort
SELECT + 9 * - 98 * - 19 + 9 + 2 * 99 + 2 + - 65 * - 69
----
21452

query I rowsort
SELECT 46 * + 55 * 28
----
70840

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT - 19 - - COUNT( * ) * 79 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-4826
SELECT - 19 - - COUNT ( * ) * 79 AS col0
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4827
SELECT NULLIF ( - CAST( NULL AS SIGNED ), - 97 / - 87 + + + 7 ) * + 9 * + - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4827
SELECT NULLIF ( - CAST ( NULL AS INTEGER ), - 97 / - 87 + + + 7 ) * + 9 * + - COUNT ( * ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4828
SELECT + ( + MAX( ALL + 47 ) ) * + + 84 - + - 16 / CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4828
SELECT + ( + MAX ( ALL + 47 ) ) * + + 84 - + - 16 / CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4829
SELECT + 97 * + - CASE + - 80 WHEN 56 + - - ( - COUNT( + 19 ) ) + - - 6 THEN NULL WHEN + ( 27 ) / 41 THEN NULL WHEN 89 THEN - 65 END + 24 / + COALESCE ( 12, 34 * + 46 + - 95, + 95 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4829
SELECT + 97 * + - CASE + - 80 WHEN 56 + - - ( - COUNT ( + 19 ) ) + - - 6 THEN NULL WHEN + ( 27 ) / 41 THEN NULL WHEN 89 THEN - 65 END + 24 / + COALESCE ( 12, 34 * + 46 + - 95, + 95 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4830
SELECT - 9 DIV + 39 + + - COALESCE ( - 56, 92 DIV 45 ) * - + 35 AS col0, - 75 AS col2
----
-1960
-75

skipif mysql # not compatible
query II rowsort label-4830
SELECT - 9 / + 39 + + - COALESCE ( - 56, 92 / 45 ) * - + 35 AS col0, - 75 AS col2
----
-1960
-75

query I rowsort
SELECT - ( 73 ) * - 4
----
292

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT ALL 21 * COUNT( * ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-4832
SELECT ALL 21 * COUNT ( * ) AS col0
----
21

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4833
SELECT CAST( NULL AS DECIMAL ) - - - 22 * + 74 - - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4833
SELECT CAST ( NULL AS REAL ) - - - 22 * + 74 - - COUNT ( * ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4834
SELECT + MIN( + 10 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-4834
SELECT + MIN ( + 10 ) AS col2
----
10

query I rowsort
SELECT 28 + 71 + + - 45 - - 53 + - - 83 * - - 36 AS col1
----
3095

query I rowsort
SELECT DISTINCT 79 + 45 AS col0
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-4837
SELECT ALL 43 * - COUNT( * ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-4837
SELECT ALL 43 * - COUNT ( * ) AS col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT MIN( - 5 ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-4838
SELECT MIN ( - 5 ) AS col1
----
-5

query I rowsort
SELECT ALL 14 + + 74
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT ( + + 24 ) * + MIN( - ( + + 18 ) ) * + 58 - - 86 - + - 11 + - + 72
----
-25031

skipif mysql # not compatible
query I rowsort label-4840
SELECT ( + + 24 ) * + MIN ( - ( + + 18 ) ) * + 58 - - 86 - + - 11 + - + 72
----
-25031

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4841
SELECT ALL ( + 49 ) * + COUNT( * ) * CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4841
SELECT ALL ( + 49 ) * + COUNT ( * ) * CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT DISTINCT 1 + - + COUNT( * ) + 9 - 23 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-4842
SELECT DISTINCT 1 + - + COUNT ( * ) + 9 - 23 AS col2
----
-14

query I rowsort
SELECT ( + 89 ) * + + 80 * + + 39 AS col1
----
277680

query I rowsort
SELECT ALL - 67 - - + 28
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT DISTINCT MAX( ALL + - 58 ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-4845
SELECT DISTINCT MAX ( ALL + - 58 ) AS col2
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-4846
SELECT ALL COALESCE ( - 52, COUNT( * ) ) col2, - 1 col0
----
-52
-1

skipif mysql # not compatible
query II rowsort label-4846
SELECT ALL COALESCE ( - 52, COUNT ( * ) ) col2, - 1 col0
----
-52
-1

query I rowsort
SELECT - - 32 + + 78 AS col2
----
110

query I rowsort
SELECT - ( - 36 ) AS col0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4849
SELECT ALL - 46 * - CAST( 62 AS SIGNED ) AS col2
----
2852

skipif mysql # not compatible
query I rowsort label-4849
SELECT ALL - 46 * - CAST ( 62 AS INTEGER ) AS col2
----
2852

query I rowsort
SELECT ALL + 87 - - 34
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT - - MAX( DISTINCT - ( + 63 ) ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-4851
SELECT - - MAX ( DISTINCT - ( + 63 ) ) AS col1
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4852
SELECT ALL + COALESCE ( - 86, - - SUM( ALL + CASE - CAST( NULL AS SIGNED ) WHEN - 5 + + + 90 THEN 60 ELSE + + 37 END ) ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-4852
SELECT ALL + COALESCE ( - 86, - - SUM ( ALL + CASE - CAST ( NULL AS INTEGER ) WHEN - 5 + + + 90 THEN 60 ELSE + + 37 END ) ) AS col0
----
-86

query I rowsort
SELECT - 36 + + + ( - - 87 ) AS col0
----
51

query I rowsort
SELECT - + 7 * - 79
----
553

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT - 50 + - + COUNT( * ) * + + COUNT( + 10 ) + + MIN( DISTINCT - 79 ) AS col2
----
-130

skipif mysql # not compatible
query I rowsort label-4855
SELECT - 50 + - + COUNT ( * ) * + + COUNT ( + 10 ) + + MIN ( DISTINCT - 79 ) AS col2
----
-130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4856
SELECT ALL + 85 * CASE 8 WHEN - - 22 THEN NULL ELSE 50 + CASE + 56 WHEN - 27 THEN NULL ELSE + + COUNT( * ) END + - + CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4856
SELECT ALL + 85 * CASE 8 WHEN - - 22 THEN NULL ELSE 50 + CASE + 56 WHEN - 27 THEN NULL ELSE + + COUNT ( * ) END + - + CAST ( NULL AS INTEGER ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT - 63 + + COUNT( * ) + 53 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-4857
SELECT - 63 + + COUNT ( * ) + 53 AS col0
----
-9

query I rowsort
SELECT ( + 33 ) AS col2
----
33

query I rowsort
SELECT - 77 * + 21 + + - 15 AS col0
----
-1632

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT ALL + + 49 * + COUNT( * ) + - + 23 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-4860
SELECT ALL + + 49 * + COUNT ( * ) + - + 23 AS col1
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-4861
SELECT ALL 92 AS col2, COUNT( * )
----
92
1

skipif mysql # not compatible
query II rowsort label-4861
SELECT ALL 92 AS col2, COUNT ( * )
----
92
1

query I rowsort
SELECT - - 55 + + + 23
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-4863
SELECT - + 80 DIV - 46 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4863
SELECT - + 80 / - 46 AS col2
----
1

query I rowsort
SELECT ALL + 69 + - - 27 AS col0
----
96

query I rowsort
SELECT - ( - 35 ) + - 1 AS col1
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4866
SELECT CAST( + NULLIF ( 52, 32 / - - 92 ) AS SIGNED ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-4866
SELECT CAST ( + NULLIF ( 52, 32 / - - 92 ) AS INTEGER ) AS col1
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4867
SELECT 89 DIV - - CAST( NULL AS SIGNED ) * + 25 * - 95 + COUNT( * ) col1, 25 DIV + COUNT( * ) + COUNT( * ) + - + 73 AS col0
----
NULL
-47

skipif mysql # not compatible
query II rowsort label-4867
SELECT 89 / - - CAST ( NULL AS INTEGER ) * + 25 * - 95 + COUNT ( * ) col1, 25 / + COUNT ( * ) + COUNT ( * ) + - + 73 AS col0
----
NULL
-47

query I rowsort
SELECT ( - 45 ) AS col0
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4869
SELECT ALL + 99 * 45 * - - 5 + + CAST( NULL AS SIGNED ) - - - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-4869
SELECT ALL + 99 * 45 * - - 5 + + CAST ( NULL AS INTEGER ) - - - 46
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4870
SELECT + MIN( DISTINCT + + 32 ) AS col0, 61 + 70 + COUNT( DISTINCT 7 ) * + NULLIF ( - - 71, - 64 * ( + - 20 ) - 34 ) AS col0
----
32
202

skipif mysql # not compatible
query II rowsort label-4870
SELECT + MIN ( DISTINCT + + 32 ) AS col0, 61 + 70 + COUNT ( DISTINCT 7 ) * + NULLIF ( - - 71, - 64 * ( + - 20 ) - 34 ) AS col0
----
32
202

query II rowsort
SELECT + 44, 15 AS col2
----
44
15

onlyif mysql # aggregate syntax: 
query II rowsort label-4872
SELECT ( + - 72 ), + COUNT( * ) AS col1
----
-72
1

skipif mysql # not compatible
query II rowsort label-4872
SELECT ( + - 72 ), + COUNT ( * ) AS col1
----
-72
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4873
SELECT ALL - COUNT( * ) * - 11 + CASE 23 WHEN 56 THEN 50 + + + 56 ELSE - 75 * 10 * - - 43 - 82 - + 68 / + COUNT( * ) END - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4873
SELECT ALL - COUNT ( * ) * - 11 + CASE 23 WHEN 56 THEN 50 + + + 56 ELSE - 75 * 10 * - - 43 - 82 - + 68 / + COUNT ( * ) END - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - ( + 80 ) * + 51 + + - 73
----
-4153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4875
SELECT CASE + + 97 WHEN CAST( - 52 AS SIGNED ) THEN 69 - - - MIN( 70 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4875
SELECT CASE + + 97 WHEN CAST ( - 52 AS INTEGER ) THEN 69 - - - MIN ( 70 ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + 89 * + 6 AS col0
----
534

query I rowsort
SELECT ALL 66 * + 33 AS col2
----
2178

query I rowsort
SELECT - 72 + + 83 AS col0
----
11

query II rowsort
SELECT DISTINCT + 14, + 35 - + COALESCE ( 29, + - 30 + - 34 ) AS col0
----
14
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4880
SELECT ALL ( 63 ) * + 63 + + + SUM( DISTINCT - 77 ) - + 79 + - COUNT( - - 76 ) AS col0
----
3812

skipif mysql # not compatible
query I rowsort label-4880
SELECT ALL ( 63 ) * + 63 + + + SUM ( DISTINCT - 77 ) - + 79 + - COUNT ( - - 76 ) AS col0
----
3812

onlyif mysql # aggregate syntax: 
query II rowsort label-4881
SELECT CASE WHEN + 7 < - 21 * 86 THEN - - 14 * - 52 + + + 90 * COUNT( * ) END AS col2, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4881
SELECT CASE WHEN + 7 < - 21 * 86 THEN - - 14 * - 52 + + + 90 * COUNT ( * ) END AS col2, COUNT ( * )
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4882
SELECT + COUNT( * ) * + 89 - + + COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-4882
SELECT + COUNT ( * ) * + 89 - + + COUNT ( * )
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4883
SELECT + CAST( NULL AS SIGNED ) * COALESCE ( + 86, - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4883
SELECT + CAST ( NULL AS INTEGER ) * COALESCE ( + 86, - COUNT ( * ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4884
SELECT ALL 54 DIV ( - 18 ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-4884
SELECT ALL 54 / ( - 18 ) AS col0
----
-3

query I rowsort
SELECT + CASE + 18 WHEN 4 THEN NULL ELSE - 22 * 57 END
----
-1254

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4886
SELECT DISTINCT + 4 AS col1, SUM( - COALESCE ( - 78, + 6, + 68 ) ) DIV + - 4
----
4
-19

skipif mysql # not compatible
query II rowsort label-4886
SELECT DISTINCT + 4 AS col1, SUM ( - COALESCE ( - 78, + 6, + 68 ) ) / + - 4
----
4
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-4887
SELECT ALL + 7, + COUNT( DISTINCT - 49 ) AS col1
----
7
1

skipif mysql # not compatible
query II rowsort label-4887
SELECT ALL + 7, + COUNT ( DISTINCT - 49 ) AS col1
----
7
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT DISTINCT NULLIF ( + + 26, + COUNT( * ) )
----
26

skipif mysql # not compatible
query I rowsort label-4888
SELECT DISTINCT NULLIF ( + + 26, + COUNT ( * ) )
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4889
SELECT DISTINCT - 47 * + - 89 * CASE 10 WHEN - CAST( + 18 AS SIGNED ) + - 78 THEN + COALESCE ( - COUNT( * ), CAST( NULL AS DECIMAL ) ) + - + 41 ELSE NULL END - - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-4889
SELECT DISTINCT - 47 * + - 89 * CASE 10 WHEN - CAST ( + 18 AS INTEGER ) + - 78 THEN + COALESCE ( - COUNT ( * ), CAST ( NULL AS REAL ) ) + - + 41 ELSE NULL END - - 51
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT + 25 - + COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-4890
SELECT + 25 - + COUNT ( * )
----
24

query I rowsort
SELECT + ( + 64 ) * - - 5 AS col1
----
320

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT + 78 * - 89 * + + COALESCE ( - + 57, 66 - - 67, - 21, - - 75 * - NULLIF ( - - COUNT( * ), 33 * - 45 + + SUM( - 93 ) ) * 17 )
----
395694

skipif mysql # not compatible
query I rowsort label-4892
SELECT + 78 * - 89 * + + COALESCE ( - + 57, 66 - - 67, - 21, - - 75 * - NULLIF ( - - COUNT ( * ), 33 * - 45 + + SUM ( - 93 ) ) * 17 )
----
395694

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4893
SELECT DISTINCT - CAST( + 92 AS SIGNED ) AS col1, + CAST( NULL AS SIGNED )
----
-92
NULL

skipif mysql # not compatible
query II rowsort label-4893
SELECT DISTINCT - CAST ( + 92 AS INTEGER ) AS col1, + CAST ( NULL AS INTEGER )
----
-92
NULL

query II rowsort
SELECT ALL + 60 AS col0, ( 94 ) AS col1
----
60
94

query I rowsort
SELECT + + 84 * - 57
----
-4788

query II rowsort
SELECT ALL 82, 50 * - 73 AS col1
----
82
-3650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4897
SELECT ALL 97 + + CAST( NULL AS SIGNED ) + - 64 + - 92 + - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-4897
SELECT ALL 97 + + CAST ( NULL AS INTEGER ) + - 64 + - 92 + - 98
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4898
SELECT DISTINCT + 40 * - CAST( + 45 AS SIGNED ) * 79 + - + SUM( - 80 ) * - 76, 40 AS col1
----
-148280
40

skipif mysql # not compatible
query II rowsort label-4898
SELECT DISTINCT + 40 * - CAST ( + 45 AS INTEGER ) * 79 + - + SUM ( - 80 ) * - 76, 40 AS col1
----
-148280
40

query II rowsort
SELECT 96 AS col1, - 60 + - 71 AS col2
----
96
-131

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4900
SELECT + MIN( ALL + 0 ) + - ( CASE 1 WHEN ( - 93 ) THEN + 79 WHEN + + MAX( DISTINCT - CAST( NULL AS DECIMAL ) ) + - 93 * 11 THEN - 48 + NULLIF ( 76, - CAST( NULL AS DECIMAL ) * - COUNT( * ) + 70 * 9 ) WHEN + 28 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4900
SELECT + MIN ( ALL + 0 ) + - ( CASE 1 WHEN ( - 93 ) THEN + 79 WHEN + + MAX ( DISTINCT - CAST ( NULL AS REAL ) ) + - 93 * 11 THEN - 48 + NULLIF ( 76, - CAST ( NULL AS REAL ) * - COUNT ( * ) + 70 * 9 ) WHEN + 28 THEN NULL END )
----
NULL

query II rowsort
SELECT - + 31 AS col2, 27 + + 9 AS col2
----
-31
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT - + NULLIF ( COUNT( DISTINCT + 71 ), 9 + - 77 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4902
SELECT - + NULLIF ( COUNT ( DISTINCT + 71 ), 9 + - 77 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4903
SELECT - NULLIF ( + 66, 61 ) DIV + 83
----
0

skipif mysql # not compatible
query I rowsort label-4903
SELECT - NULLIF ( + 66, 61 ) / + 83
----
0

query I rowsort
SELECT - 56 - + 74
----
-130

query I rowsort
SELECT DISTINCT + ( + 45 ) * - ( + - 48 ) + - 24
----
2136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4906
SELECT ALL 64 DIV + + 53 + + - ( MAX( - - 31 ) )
----
-30

skipif mysql # not compatible
query I rowsort label-4906
SELECT ALL 64 / + + 53 + + - ( MAX ( - - 31 ) )
----
-30

query I rowsort
SELECT 66 * + 14 * 45 + - 24 AS col2
----
41556

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4908
SELECT DISTINCT + CAST( + + 60 AS SIGNED ) * + 88 AS col0
----
5280

skipif mysql # not compatible
query I rowsort label-4908
SELECT DISTINCT + CAST ( + + 60 AS INTEGER ) * + 88 AS col0
----
5280

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4909
SELECT - 83 / 76 + - CASE - CASE + 14 WHEN + 14 THEN + 54 / MAX( DISTINCT 29 ) END WHEN - 8 * MIN( - 22 ) + 32 * 15 THEN + 41 WHEN CAST( NULL AS DECIMAL ) + + 3 THEN + 14 WHEN 46 + + 37 THEN 47 * - 45 WHEN 79 THEN - 48 + NULLIF ( COALESCE ( 79, NULLIF ( 83, 69 ) - 55 ), 77 ) END / - AVG ( DISTINCT 50 / + CAST( + 66 AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4909
SELECT - 83 / 76 + - CASE - CASE + 14 WHEN + 14 THEN + 54 / MAX ( DISTINCT 29 ) END WHEN - 8 * MIN ( - 22 ) + 32 * 15 THEN + 41 WHEN CAST ( NULL AS REAL ) + + 3 THEN + 14 WHEN 46 + + 37 THEN 47 * - 45 WHEN 79 THEN - 48 + NULLIF ( COALESCE ( 79, NULLIF ( 83, 69 ) - 55 ), 77 ) END / - AVG ( DISTINCT 50 / + CAST ( + 66 AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4910
SELECT ALL 8 DIV - 55 * + 98 + - - SUM( - 12 ) + + 52
----
40

skipif mysql # not compatible
query I rowsort label-4910
SELECT ALL 8 / - 55 * + 98 + - - SUM ( - 12 ) + + 52
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4911
SELECT - COALESCE ( + 72, - MAX( + 84 ) + + ( + 84 ) DIV - CASE - 48 WHEN - 80 * COUNT( ALL - 94 ) THEN + 37 + 40 WHEN + CAST( NULL AS SIGNED ) THEN NULL END, 44 ) * - 80 col0
----
5760

skipif mysql # not compatible
query I rowsort label-4911
SELECT - COALESCE ( + 72, - MAX ( + 84 ) + + ( + 84 ) / - CASE - 48 WHEN - 80 * COUNT ( ALL - 94 ) THEN + 37 + 40 WHEN + CAST ( NULL AS INTEGER ) THEN NULL END, 44 ) * - 80 col0
----
5760

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT - COUNT( * ) - - 33
----
32

skipif mysql # not compatible
query I rowsort label-4912
SELECT - COUNT ( * ) - - 33
----
32

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4913
SELECT 3 * - 7 + + COUNT( * ) + + 96 + + CAST( + CASE - 18 WHEN 60 * + 68 THEN NULL WHEN + 66 THEN + - 23 * - 59 * NULLIF ( 38, 38 ) + - 40 * + 26 ELSE NULL END AS DECIMAL ) * - AVG ( DISTINCT 2 + + 40 ) / 70 * 63
----
NULL

skipif mysql # not compatible
query I rowsort label-4913
SELECT 3 * - 7 + + COUNT ( * ) + + 96 + + CAST ( + CASE - 18 WHEN 60 * + 68 THEN NULL WHEN + 66 THEN + - 23 * - 59 * NULLIF ( 38, 38 ) + - 40 * + 26 ELSE NULL END AS REAL ) * - AVG ( DISTINCT 2 + + 40 ) / 70 * 63
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT - 78 - + 0 + - - COUNT( * ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-4914
SELECT - 78 - + 0 + - - COUNT ( * ) AS col1
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4915
SELECT - COUNT( * ) + + CAST( NULL AS SIGNED ) AS col2, 42 + + 44 AS col0
----
NULL
86

skipif mysql # not compatible
query II rowsort label-4915
SELECT - COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col2, 42 + + 44 AS col0
----
NULL
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4916
SELECT + 38 * - SUM( - 24 ) * + CAST( NULL AS SIGNED ) + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-4916
SELECT + 38 * - SUM ( - 24 ) * + CAST ( NULL AS INTEGER ) + 19
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT COUNT( * ) / - 7 + - COUNT( * ) + - CASE - + COUNT( * ) WHEN - 11 / - 30 + - 83 THEN NULL WHEN 65 THEN + + 52 + - 91 + - ( - 29 ) + 65 * 30 / + 97 END * - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-4917
SELECT COUNT ( * ) / - 7 + - COUNT ( * ) + - CASE - + COUNT ( * ) WHEN - 11 / - 30 + - 83 THEN NULL WHEN 65 THEN + + 52 + - 91 + - ( - 29 ) + 65 * 30 / + 97 END * - 55
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4918
SELECT 62 + + 68 col2, + ( - - COUNT( - + 35 ) ) + + 84 - - 37 + + 12
----
130
134

skipif mysql # not compatible
query II rowsort label-4918
SELECT 62 + + 68 col2, + ( - - COUNT ( - + 35 ) ) + + 84 - - 37 + + 12
----
130
134

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT 69 * + + CASE + - 66 WHEN - - MAX( + ( 48 ) ) / + 58 THEN 22 + COUNT( * ) ELSE NULL END * - 39 * - 11 / NULLIF ( + ( + 25 ), 78 * + 71 ) * 27
----
NULL

skipif mysql # not compatible
query I rowsort label-4919
SELECT 69 * + + CASE + - 66 WHEN - - MAX ( + ( 48 ) ) / + 58 THEN 22 + COUNT ( * ) ELSE NULL END * - 39 * - 11 / NULLIF ( + ( + 25 ), 78 * + 71 ) * 27
----
NULL

query I rowsort
SELECT + 75 * 53 + + 29
----
4004

onlyif mysql # aggregate syntax: 
query II rowsort label-4921
SELECT ALL + 67 - + COUNT( * ) col1, 96
----
66
96

skipif mysql # not compatible
query II rowsort label-4921
SELECT ALL + 67 - + COUNT ( * ) col1, 96
----
66
96

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4922
SELECT CAST( NULL AS DECIMAL ) * + - MIN( + + 85 ) + - + 12 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4922
SELECT CAST ( NULL AS REAL ) * + - MIN ( + + 85 ) + - + 12 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4923
SELECT - 96 * COALESCE ( + MAX( - CASE 84 WHEN - + 85 * - + 60 THEN 37 WHEN - 94 THEN NULL ELSE NULL END ), - NULLIF ( - ( + 82 ), + COALESCE ( MIN( ALL - 84 ), + CASE 22 WHEN + 10 THEN MAX( 75 ) * 77 END ) ) ) AS col2
----
-7872

skipif mysql # not compatible
query I rowsort label-4923
SELECT - 96 * COALESCE ( + MAX ( - CASE 84 WHEN - + 85 * - + 60 THEN 37 WHEN - 94 THEN NULL ELSE NULL END ), - NULLIF ( - ( + 82 ), + COALESCE ( MIN ( ALL - 84 ), + CASE 22 WHEN + 10 THEN MAX ( 75 ) * 77 END ) ) ) AS col2
----
-7872

query II rowsort
SELECT 21 + - 42 AS col2, + 94
----
-21
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT ALL - COUNT( DISTINCT ( 63 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4925
SELECT ALL - COUNT ( DISTINCT ( 63 ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4926
SELECT ( 9 ) * - ( - COUNT( * ) ) + - + 55 * + - 97
----
5344

skipif mysql # not compatible
query I rowsort label-4926
SELECT ( 9 ) * - ( - COUNT ( * ) ) + - + 55 * + - 97
----
5344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4927
SELECT + CASE + COALESCE ( - 59, + 66, + - 31 ) WHEN - - 25 THEN - - 21 WHEN - 12 THEN - ( - 1 ) + 41 * + - COUNT( ALL + 44 ) / + CAST( 60 / 9 AS SIGNED ) + 21 * - 72 WHEN CAST( NULL AS SIGNED ) - - 98 * MAX( DISTINCT - 57 ) THEN NULL ELSE NULL END * + COALESCE ( 35 - - 34 * 88, CASE + 3 WHEN + CAST( NULL AS SIGNED ) THEN - 95 END / - COUNT( ALL + 42 ) + 21 ) + + 47 * - 66 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4927
SELECT + CASE + COALESCE ( - 59, + 66, + - 31 ) WHEN - - 25 THEN - - 21 WHEN - 12 THEN - ( - 1 ) + 41 * + - COUNT ( ALL + 44 ) / + CAST ( 60 / 9 AS INTEGER ) + 21 * - 72 WHEN CAST ( NULL AS INTEGER ) - - 98 * MAX ( DISTINCT - 57 ) THEN NULL ELSE NULL END * + COALESCE ( 35 - - 34 * 88, CASE + 3 WHEN + CAST ( NULL AS INTEGER ) THEN - 95 END / - COUNT ( ALL + 42 ) + 21 ) + + 47 * - 66 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4928
SELECT - COALESCE ( - CASE - CASE + 7 WHEN + + 90 THEN - 63 + 91 * + COUNT( * ) * - - ( - ( + 41 ) ) END WHEN + - 58 THEN COUNT( * ) * - COUNT( * ) WHEN - 0 THEN 22 WHEN 44 * 26 + + 47 / COUNT( * ) THEN + NULLIF ( 83, 23 ) END, 28 + + 31, 35 + + 62 )
----
-59

skipif mysql # not compatible
query I rowsort label-4928
SELECT - COALESCE ( - CASE - CASE + 7 WHEN + + 90 THEN - 63 + 91 * + COUNT ( * ) * - - ( - ( + 41 ) ) END WHEN + - 58 THEN COUNT ( * ) * - COUNT ( * ) WHEN - 0 THEN 22 WHEN 44 * 26 + + 47 / COUNT ( * ) THEN + NULLIF ( 83, 23 ) END, 28 + + 31, 35 + + 62 )
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-4929
SELECT ALL MIN( - - 63 ) AS col1, + 98
----
63
98

skipif mysql # not compatible
query II rowsort label-4929
SELECT ALL MIN ( - - 63 ) AS col1, + 98
----
63
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4930
SELECT ALL + - CASE + - 55 WHEN 83 THEN + MIN( DISTINCT - 75 ) + - CAST( NULL AS SIGNED ) * 17 END + 12 AS col1, + COUNT( DISTINCT 5 ) * - - 0 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4930
SELECT ALL + - CASE + - 55 WHEN 83 THEN + MIN ( DISTINCT - 75 ) + - CAST ( NULL AS INTEGER ) * 17 END + 12 AS col1, + COUNT ( DISTINCT 5 ) * - - 0 AS col0
----
NULL
0

query II rowsort
SELECT ALL 38 + 6, - 25 AS col0
----
44
-25

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4932
SELECT DISTINCT + 91 DIV + CAST( - 18 AS SIGNED )
----
-5

skipif mysql # not compatible
query I rowsort label-4932
SELECT DISTINCT + 91 / + CAST ( - 18 AS INTEGER )
----
-5

query I rowsort
SELECT ALL 82 + - - 33 AS col2
----
115

query I rowsort
SELECT DISTINCT ( + ( - 17 ) ) AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT + 34 + + + COUNT( - 19 ) * + + 90
----
124

skipif mysql # not compatible
query I rowsort label-4935
SELECT + 34 + + + COUNT ( - 19 ) * + + 90
----
124

query I rowsort
SELECT ALL + 42 + + - ( + 20 ) * 74
----
-1438

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT 0 + + SUM( - - 9 ) * + 10 * 11 AS col2
----
990

skipif mysql # not compatible
query I rowsort label-4937
SELECT 0 + + SUM ( - - 9 ) * + 10 * 11 AS col2
----
990

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT ( - 77 ) + + 23 + COUNT( * ) * + 40 AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-4938
SELECT ( - 77 ) + + 23 + COUNT ( * ) * + 40 AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4939
SELECT ALL - 98 - ( - + COUNT( * ) ) * - CASE - 15 WHEN 95 THEN + 40 + + + COUNT( DISTINCT + - ( 80 ) ) ELSE + COUNT( * ) END + 39 * 53 AS col1
----
1968

skipif mysql # not compatible
query I rowsort label-4939
SELECT ALL - 98 - ( - + COUNT ( * ) ) * - CASE - 15 WHEN 95 THEN + 40 + + + COUNT ( DISTINCT + - ( 80 ) ) ELSE + COUNT ( * ) END + 39 * 53 AS col1
----
1968

onlyif mysql # DIV for integer division: 
query II rowsort label-4940
SELECT ALL 94, NULLIF ( COALESCE ( 25, 64 * + 45 DIV + + NULLIF ( - 61, - 15 * - 20 ), + 78 ), - + 80 ) col1
----
94
25

skipif mysql # not compatible
query II rowsort label-4940
SELECT ALL 94, NULLIF ( COALESCE ( 25, 64 * + 45 / + + NULLIF ( - 61, - 15 * - 20 ), + 78 ), - + 80 ) col1
----
94
25

query II rowsort
SELECT 77 AS col2, - 95 * 20
----
77
-1900

onlyif mysql # DIV for integer division: 
query I rowsort label-4942
SELECT + 59 DIV 27 + 7 + - 14 DIV + 34
----
9

skipif mysql # not compatible
query I rowsort label-4942
SELECT + 59 / 27 + 7 + - 14 / + 34
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4943
SELECT ALL 85 - + MIN( DISTINCT - - 39 ) DIV - - 63 col1
----
85

skipif mysql # not compatible
query I rowsort label-4943
SELECT ALL 85 - + MIN ( DISTINCT - - 39 ) / - - 63 col1
----
85

query I rowsort
SELECT 53 * + - 64 AS col2
----
-3392

query I rowsort
SELECT 88 * + - 31
----
-2728

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT DISTINCT - 26 * COUNT( * ) * MAX( ALL 13 ) AS col1
----
-338

skipif mysql # not compatible
query I rowsort label-4946
SELECT DISTINCT - 26 * COUNT ( * ) * MAX ( ALL 13 ) AS col1
----
-338

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4947
SELECT DISTINCT - COALESCE ( + + 89, - - 42 - + - COUNT( * ) DIV + 47 )
----
-89

skipif mysql # not compatible
query I rowsort label-4947
SELECT DISTINCT - COALESCE ( + + 89, - - 42 - + - COUNT ( * ) / + 47 )
----
-89

query I rowsort
SELECT 78 * - 95 AS col0
----
-7410

query I rowsort
SELECT DISTINCT 42 * 84
----
3528

query I rowsort
SELECT ALL - ( 1 )
----
-1

query I rowsort
SELECT 0 + - - 21
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-4952
SELECT + + COUNT( * ) col2, 66 AS col0
----
1
66

skipif mysql # not compatible
query II rowsort label-4952
SELECT + + COUNT ( * ) col2, 66 AS col0
----
1
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4953
SELECT CAST( NULL AS SIGNED ) * - 14 + COUNT( * ) + - NULLIF ( 36, + + 86 + - ( - + 53 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4953
SELECT CAST ( NULL AS INTEGER ) * - 14 + COUNT ( * ) + - NULLIF ( 36, + + 86 + - ( - + 53 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4954
SELECT + COUNT( * ) AS col1, + 13 AS col2
----
1
13

skipif mysql # not compatible
query II rowsort label-4954
SELECT + COUNT ( * ) AS col1, + 13 AS col2
----
1
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4955
SELECT ALL - + CAST( NULL AS SIGNED ) + + + ( - MAX( ALL + 86 ) ) * - + 90 * - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-4955
SELECT ALL - + CAST ( NULL AS INTEGER ) + + + ( - MAX ( ALL + 86 ) ) * - + 90 * - 81
----
NULL

query I rowsort
SELECT + 63 * 72 - + + 13 AS col1
----
4523

query II rowsort
SELECT 8 AS col0, 84 AS col2
----
8
84

query I rowsort
SELECT - 69 * 81 col2
----
-5589

query I rowsort
SELECT 69 - - + 78 * 28 + ( - 41 ) * + ( + 52 )
----
121

query I rowsort
SELECT DISTINCT - NULLIF ( - 20, + 78 ) AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT ALL + - 42 + + COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-4961
SELECT ALL + - 42 + + COUNT ( * )
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4962
SELECT ALL - ( SUM( DISTINCT - 67 ) ) + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4962
SELECT ALL - ( SUM ( DISTINCT - 67 ) ) + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4963
SELECT DISTINCT + - 92 + + COUNT( * ) * 56 AS col1, 94 + - 69 AS col2
----
-36
25

skipif mysql # not compatible
query II rowsort label-4963
SELECT DISTINCT + - 92 + + COUNT ( * ) * 56 AS col1, 94 + - 69 AS col2
----
-36
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4964
SELECT DISTINCT - - COUNT( * ) * + 2
----
2

skipif mysql # not compatible
query I rowsort label-4964
SELECT DISTINCT - - COUNT ( * ) * + 2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4965
SELECT - - CAST( - - COUNT( * ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4965
SELECT - - CAST ( - - COUNT ( * ) AS INTEGER ) AS col1
----
1

query II rowsort
SELECT ( + - ( CASE - 6 WHEN - 34 THEN - + 71 END ) ) AS col2, - 99 + + 12
----
NULL
-87

query I rowsort
SELECT DISTINCT + ( + - 81 ) + + + 63 AS col2
----
-18

query II rowsort
SELECT DISTINCT 50 col0, 34 AS col2
----
50
34

query I rowsort
SELECT COALESCE ( - + 26, + 27 ) * - + 75 * + 3
----
5850

onlyif mysql # aggregate syntax: 
query II rowsort label-4970
SELECT ALL - 30 - - - SUM( DISTINCT 54 ) AS col1, 0 AS col1
----
-84
0

skipif mysql # not compatible
query II rowsort label-4970
SELECT ALL - 30 - - - SUM ( DISTINCT 54 ) AS col1, 0 AS col1
----
-84
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4971
SELECT ALL CASE + + 97 WHEN 18 * - 54 THEN + + COUNT( - + 57 ) * - COUNT( * ) * + CAST( - 30 AS SIGNED ) WHEN 73 THEN NULL END AS col1, + COUNT( * ) * + 61 AS col2
----
NULL
61

skipif mysql # not compatible
query II rowsort label-4971
SELECT ALL CASE + + 97 WHEN 18 * - 54 THEN + + COUNT ( - + 57 ) * - COUNT ( * ) * + CAST ( - 30 AS INTEGER ) WHEN 73 THEN NULL END AS col1, + COUNT ( * ) * + 61 AS col2
----
NULL
61

onlyif mysql # aggregate syntax: 
query II rowsort label-4972
SELECT ALL COUNT( * ) * + 67 AS col2, + 61 * 22 - - + 9 AS col0
----
67
1351

skipif mysql # not compatible
query II rowsort label-4972
SELECT ALL COUNT ( * ) * + 67 AS col2, + 61 * 22 - - + 9 AS col0
----
67
1351

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4973
SELECT COALESCE ( + CAST( NULL AS SIGNED ), - 95 ) + 57 + - 45 col0
----
-83

skipif mysql # not compatible
query I rowsort label-4973
SELECT COALESCE ( + CAST ( NULL AS INTEGER ), - 95 ) + 57 + - 45 col0
----
-83

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4974
SELECT ALL 85 - - COUNT( * ) - + CASE - SUM( DISTINCT - 65 ) WHEN + CAST( NULL AS DECIMAL ) THEN - 86 / - 52 * + - COUNT( * ) * - 80 END - - + 48 * - 94 / + COUNT( * ) * - - COALESCE ( + 8, 27 ) + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-4974
SELECT ALL 85 - - COUNT ( * ) - + CASE - SUM ( DISTINCT - 65 ) WHEN + CAST ( NULL AS REAL ) THEN - 86 / - 52 * + - COUNT ( * ) * - 80 END - - + 48 * - 94 / + COUNT ( * ) * - - COALESCE ( + 8, 27 ) + 90
----
NULL

query I rowsort
SELECT ALL 44 * 91 AS col0
----
4004

onlyif mysql # aggregate syntax: 
query I rowsort label-4976
SELECT + 49 + - - COUNT( * ) * - + 36 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-4976
SELECT + 49 + - - COUNT ( * ) * - + 36 AS col0
----
13

query I rowsort
SELECT + 67 - 63
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4978
SELECT + CASE - CAST( + - CASE - + 87 WHEN + + COUNT( * ) + 51 THEN + COUNT( * ) WHEN + 93 THEN + 87 END AS SIGNED ) WHEN - - 9 + - CAST( NULL AS DECIMAL ) * + 45 THEN COUNT( DISTINCT - 1 ) END / - 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4978
SELECT + CASE - CAST ( + - CASE - + 87 WHEN + + COUNT ( * ) + 51 THEN + COUNT ( * ) WHEN + 93 THEN + 87 END AS INTEGER ) WHEN - - 9 + - CAST ( NULL AS REAL ) * + 45 THEN COUNT ( DISTINCT - 1 ) END / - 22 AS col0
----
NULL

query I rowsort
SELECT - 49 * - + 78 AS col2
----
3822

query I rowsort
SELECT + 30 * 34 + + 58 * - ( - - 96 )
----
-4548

query I rowsort
SELECT + 13 * + 5 * + + 21
----
1365

query I rowsort
SELECT + ( - 63 ) + + 6 AS col2
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4983
SELECT + CAST( - - 63 AS SIGNED ) - 0 AS col0
----
63

skipif mysql # not compatible
query I rowsort label-4983
SELECT + CAST ( - - 63 AS INTEGER ) - 0 AS col0
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4984
SELECT - 83 * ( 91 ) * + + 11 - - COALESCE ( 10, 42 + - COUNT( * ) * - 75 * + - 24 + - 90 DIV - 31 + + + 25 ) + + COALESCE ( 81, NULLIF ( 56, CASE WHEN NOT + ( CASE ( 98 ) WHEN 55 THEN - ( - CAST( NULL AS SIGNED ) ) ELSE 34 + COUNT( * ) END ) IS NULL THEN NULL ELSE 62 END + - 91 ) ) col0
----
-82992

skipif mysql # not compatible
query I rowsort label-4984
SELECT - 83 * ( 91 ) * + + 11 - - COALESCE ( 10, 42 + - COUNT ( * ) * - 75 * + - 24 + - 90 / - 31 + + + 25 ) + + COALESCE ( 81, NULLIF ( 56, CASE WHEN NOT + ( CASE ( 98 ) WHEN 55 THEN - ( - CAST ( NULL AS INTEGER ) ) ELSE 34 + COUNT ( * ) END ) IS NULL THEN NULL ELSE 62 END + - 91 ) ) col0
----
-82992

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4985
SELECT + COUNT( * ) + - - CASE - COUNT( * ) WHEN - 62 THEN - - 74 / + + 93 + - 8 + CASE - ( 31 ) WHEN - 54 * - - 32 THEN NULL WHEN COUNT( * ) - - COUNT( * ) * + 80 THEN 57 ELSE NULL END WHEN 60 / + CAST( NULL AS DECIMAL ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4985
SELECT + COUNT ( * ) + - - CASE - COUNT ( * ) WHEN - 62 THEN - - 74 / + + 93 + - 8 + CASE - ( 31 ) WHEN - 54 * - - 32 THEN NULL WHEN COUNT ( * ) - - COUNT ( * ) * + 80 THEN 57 ELSE NULL END WHEN 60 / + CAST ( NULL AS REAL ) THEN NULL END AS col0
----
NULL

query I rowsort
SELECT ALL 14 * - 61 AS col0
----
-854

onlyif mysql # aggregate syntax: 
query I rowsort label-4987
SELECT DISTINCT 32 * - CASE - 21 WHEN - - MAX( 64 ) + - 58 THEN - 48 * + 59 - + 69 WHEN + - 80 THEN - 40 + COUNT( * ) ELSE NULL END + 83 + + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-4987
SELECT DISTINCT 32 * - CASE - 21 WHEN - - MAX ( 64 ) + - 58 THEN - 48 * + 59 - + 69 WHEN + - 80 THEN - 40 + COUNT ( * ) ELSE NULL END + 83 + + 4
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4988
SELECT ALL 2 * + - COUNT( * ) * + 57 + - 44 + + + SUM( DISTINCT 23 ) + - - 3 DIV + 72 * - 5 + + 71
----
-64

skipif mysql # not compatible
query I rowsort label-4988
SELECT ALL 2 * + - COUNT ( * ) * + 57 + - 44 + + + SUM ( DISTINCT 23 ) + - - 3 / + 72 * - 5 + + 71
----
-64

query I rowsort
SELECT ALL + 19 * + 31 + - 11 AS col1
----
578

query I rowsort
SELECT + 33 + + + 65
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4991
SELECT NULLIF ( + 29, + - CAST( + 91 AS SIGNED ) ) col0
----
29

skipif mysql # not compatible
query I rowsort label-4991
SELECT NULLIF ( + 29, + - CAST ( + 91 AS INTEGER ) ) col0
----
29

query I rowsort
SELECT ALL + - 29 * + - 11 + - + 18
----
301

onlyif mysql # aggregate syntax: 
query II rowsort label-4993
SELECT + COUNT( * ) * - + 66 + + 58 * - 53 * + COUNT( * ) + ( 14 ) + 10 * + 95 * + + MIN( - - 73 ) * - 48 AS col1, 43 * - MAX( ALL 66 ) AS col1
----
-3331926
-2838

skipif mysql # not compatible
query II rowsort label-4993
SELECT + COUNT ( * ) * - + 66 + + 58 * - 53 * + COUNT ( * ) + ( 14 ) + 10 * + 95 * + + MIN ( - - 73 ) * - 48 AS col1, 43 * - MAX ( ALL 66 ) AS col1
----
-3331926
-2838

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4994
SELECT ALL + 81 / ( - ( - CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4994
SELECT ALL + 81 / ( - ( - CAST ( NULL AS INTEGER ) ) ) AS col0
----
NULL

query I rowsort
SELECT - - 70 + + 30 + + 8 col1
----
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4996
SELECT DISTINCT + - 14 - 14 DIV + MIN( 13 ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-4996
SELECT DISTINCT + - 14 - 14 / + MIN ( 13 ) AS col1
----
-15

query I rowsort
SELECT ALL - - 52 * 30 AS col0
----
1560

onlyif mysql # aggregate syntax: 
query I rowsort label-4998
SELECT - + ( - ( ( 44 ) ) ) + + - MAX( DISTINCT - 68 )
----
112

skipif mysql # not compatible
query I rowsort label-4998
SELECT - + ( - ( ( 44 ) ) ) + + - MAX ( DISTINCT - 68 )
----
112

query I rowsort
SELECT DISTINCT ( + - 98 )
----
-98

query I rowsort
SELECT ALL - 43 * + 48 AS col1
----
-2064

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5001
SELECT ALL CAST( - - 57 AS SIGNED )
----
57

skipif mysql # not compatible
query I rowsort label-5001
SELECT ALL CAST ( - - 57 AS INTEGER )
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5002
SELECT - 26 * - 99 DIV + - COUNT( * )
----
-2574

skipif mysql # not compatible
query I rowsort label-5002
SELECT - 26 * - 99 / + - COUNT ( * )
----
-2574

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT ALL CASE - COUNT( * ) WHEN + COUNT( * ) - - 42 * 40 THEN 65 + - 61 + + - ( - 69 ) ELSE + 70 + 17 * - 84 END col0
----
-1358

skipif mysql # not compatible
query I rowsort label-5003
SELECT ALL CASE - COUNT ( * ) WHEN + COUNT ( * ) - - 42 * 40 THEN 65 + - 61 + + - ( - 69 ) ELSE + 70 + 17 * - 84 END col0
----
-1358

query I rowsort
SELECT ALL ( - + 92 ) AS col1
----
-92

query I rowsort
SELECT ALL 84 + + 70 - 24 AS col1
----
130

onlyif mysql # DIV for integer division: 
query I rowsort label-5006
SELECT ALL 54 + 35 + - 79 DIV + + 47 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-5006
SELECT ALL 54 + 35 + - 79 / + + 47 AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5007
SELECT - CASE 6 WHEN - 70 / + + 28 + - 38 - + 26 * CASE - - 27 WHEN + COUNT( * ) THEN 44 * - + 61 - + 7 * MIN( - 58 ) ELSE NULL END * - 84 + + 9 + - ( - ( MIN( ALL - NULLIF ( 49, 44 ) ) ) ) THEN 57 + + COUNT( * ) * COUNT( * ) WHEN + 10 THEN NULL ELSE - MIN( - NULLIF ( 64, + 7 / - 84 ) ) - 0 END * + 39 AS col0
----
-2496

skipif mysql # not compatible
query I rowsort label-5007
SELECT - CASE 6 WHEN - 70 / + + 28 + - 38 - + 26 * CASE - - 27 WHEN + COUNT ( * ) THEN 44 * - + 61 - + 7 * MIN ( - 58 ) ELSE NULL END * - 84 + + 9 + - ( - ( MIN ( ALL - NULLIF ( 49, 44 ) ) ) ) THEN 57 + + COUNT ( * ) * COUNT ( * ) WHEN + 10 THEN NULL ELSE - MIN ( - NULLIF ( 64, + 7 / - 84 ) ) - 0 END * + 39 AS col0
----
-2496

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT DISTINCT 30 * - COALESCE ( + + 64, - 58, - CASE + + 44 WHEN - 96 + 39 THEN - COUNT( * ) ELSE NULL END ) AS col1
----
-1920

skipif mysql # not compatible
query I rowsort label-5008
SELECT DISTINCT 30 * - COALESCE ( + + 64, - 58, - CASE + + 44 WHEN - 96 + 39 THEN - COUNT ( * ) ELSE NULL END ) AS col1
----
-1920

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT DISTINCT CASE 97 WHEN 97 * + + 10 * - 48 THEN 5 WHEN - 41 THEN - COUNT( * ) + + COUNT( * ) ELSE NULL END / 81 + COUNT( * ) + - 67 + + - 94 * 86 * - + 36 + - COUNT( * ) * - MAX( - 58 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5009
SELECT DISTINCT CASE 97 WHEN 97 * + + 10 * - 48 THEN 5 WHEN - 41 THEN - COUNT ( * ) + + COUNT ( * ) ELSE NULL END / 81 + COUNT ( * ) + - 67 + + - 94 * 86 * - + 36 + - COUNT ( * ) * - MAX ( - 58 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5010
SELECT ALL - 38 / - CASE 19 WHEN - ( 97 ) * + - COALESCE ( - 99, - - 6 * + + CAST( - - CASE - 72 WHEN - COUNT( ALL 27 ) THEN + COUNT( - + 17 ) * CASE - 66 + CAST( NULL AS SIGNED ) WHEN NULLIF ( 79, 48 ) THEN COUNT( * ) WHEN + 9 / - 47 + 87 THEN - NULLIF ( 22, COUNT( * ) ) WHEN - 83 * - MAX( DISTINCT - 45 * 94 ) THEN NULL ELSE - 4 END + + 57 WHEN 0 THEN NULL ELSE 33 + 64 END AS SIGNED ) * MAX( ALL + 97 ) ) THEN - 98 * 87 ELSE - 81 - 9 END + CASE 72 WHEN + 47 * - 32 + - 93 * CAST( + 68 * - 12 + - 72 AS SIGNED ) THEN - COUNT( * ) ELSE NULL END * + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-5010
SELECT ALL - 38 / - CASE 19 WHEN - ( 97 ) * + - COALESCE ( - 99, - - 6 * + + CAST ( - - CASE - 72 WHEN - COUNT ( ALL 27 ) THEN + COUNT ( - + 17 ) * CASE - 66 + CAST ( NULL AS INTEGER ) WHEN NULLIF ( 79, 48 ) THEN COUNT ( * ) WHEN + 9 / - 47 + 87 THEN - NULLIF ( 22, COUNT ( * ) ) WHEN - 83 * - MAX ( DISTINCT - 45 * 94 ) THEN NULL ELSE - 4 END + + 57 WHEN 0 THEN NULL ELSE 33 + 64 END AS INTEGER ) * MAX ( ALL + 97 ) ) THEN - 98 * 87 ELSE - 81 - 9 END + CASE 72 WHEN + 47 * - 32 + - 93 * CAST ( + 68 * - 12 + - 72 AS INTEGER ) THEN - COUNT ( * ) ELSE NULL END * + 48
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5011
SELECT CAST( 15 AS SIGNED ) col0
----
15

skipif mysql # not compatible
query I rowsort label-5011
SELECT CAST ( 15 AS INTEGER ) col0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5012
SELECT CAST( + 67 AS SIGNED )
----
67

skipif mysql # not compatible
query I rowsort label-5012
SELECT CAST ( + 67 AS INTEGER )
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-5013
SELECT + 18 DIV - 49
----
0

skipif mysql # not compatible
query I rowsort label-5013
SELECT + 18 / - 49
----
0

query I rowsort
SELECT + + 92 * - 54
----
-4968

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5015
SELECT ALL + 87 * + - CAST( 0 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-5015
SELECT ALL + 87 * + - CAST ( 0 AS INTEGER )
----
0

query I rowsort
SELECT DISTINCT - 28 * + 77
----
-2156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5017
SELECT DISTINCT 50 DIV COUNT( * ) + - 12 + - COUNT( * ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-5017
SELECT DISTINCT 50 / COUNT ( * ) + - 12 + - COUNT ( * ) AS col1
----
37

query I rowsort
SELECT ALL + + ( + 47 ) AS col0
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5019
SELECT + MAX( ALL + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5019
SELECT + MAX ( ALL + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5020
SELECT ALL + 65 DIV + 65 + 2, - 2 AS col0
----
3
-2

skipif mysql # not compatible
query II rowsort label-5020
SELECT ALL + 65 / + 65 + 2, - 2 AS col0
----
3
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-5021
SELECT DISTINCT + - 30 AS col1, - 72 + + - 80 + - COUNT( * ) + + 32 - 48 * - - ( + 82 ) * - 39
----
-30
153383

skipif mysql # not compatible
query II rowsort label-5021
SELECT DISTINCT + - 30 AS col1, - 72 + + - 80 + - COUNT ( * ) + + 32 - 48 * - - ( + 82 ) * - 39
----
-30
153383

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5022
SELECT ALL + 0 DIV - 24 * + CASE + + COUNT( * ) WHEN - 59 THEN NULL WHEN 71 * AVG ( + 29 ) + - ( - 71 ) THEN + 38 ELSE + 98 END * + - 54 + - - 93 DIV + 59 DIV - COUNT( * ) - COUNT( * ) + - 48
----
-50

skipif mysql # not compatible
query I rowsort label-5022
SELECT ALL + 0 / - 24 * + CASE + + COUNT ( * ) WHEN - 59 THEN NULL WHEN 71 * AVG ( + 29 ) + - ( - 71 ) THEN + 38 ELSE + 98 END * + - 54 + - - 93 / + 59 / - COUNT ( * ) - COUNT ( * ) + - 48
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5023
SELECT + - 29 AS col1, 65 * - CAST( MAX( ALL - NULLIF ( 24, - - 41 + - 44 ) ) AS SIGNED )
----
-29
1560

skipif mysql # not compatible
query II rowsort label-5023
SELECT + - 29 AS col1, 65 * - CAST ( MAX ( ALL - NULLIF ( 24, - - 41 + - 44 ) ) AS INTEGER )
----
-29
1560

query I rowsort
SELECT ALL + - ( + 38 )
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5025
SELECT COALESCE ( - - 33, - - CAST( NULL AS SIGNED ) )
----
33

skipif mysql # not compatible
query I rowsort label-5025
SELECT COALESCE ( - - 33, - - CAST ( NULL AS INTEGER ) )
----
33

query I rowsort
SELECT - 83 * + 53 + + - 82 - 55 AS col0
----
-4536

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5027
SELECT ALL + COALESCE ( - 47, - + 48 DIV + + 15, + - 49 * + MAX( - 45 ), - 25 + + 93 + + 18 ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-5027
SELECT ALL + COALESCE ( - 47, - + 48 / + + 15, + - 49 * + MAX ( - 45 ), - 25 + + 93 + + 18 ) AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5028
SELECT + 45 * - - COUNT( * ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-5028
SELECT + 45 * - - COUNT ( * ) AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT ALL + MAX( 82 )
----
82

skipif mysql # not compatible
query I rowsort label-5029
SELECT ALL + MAX ( 82 )
----
82

query I rowsort
SELECT DISTINCT 32 * - - 5
----
160

query I rowsort
SELECT ALL + + ( ( + - 88 ) ) col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT - - MIN( DISTINCT + 93 ) * 77 + + COUNT( * ) AS col0
----
7162

skipif mysql # not compatible
query I rowsort label-5032
SELECT - - MIN ( DISTINCT + 93 ) * 77 + + COUNT ( * ) AS col0
----
7162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5033
SELECT - 8 DIV - + COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-5033
SELECT - 8 / - + COUNT ( * )
----
8

query I rowsort
SELECT ( ( 84 ) ) * - 46 * 95
----
-367080

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5035
SELECT 20 col1, + CAST( NULL AS SIGNED ) AS col0
----
20
NULL

skipif mysql # not compatible
query II rowsort label-5035
SELECT 20 col1, + CAST ( NULL AS INTEGER ) AS col0
----
20
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5036
SELECT DISTINCT + 94 DIV - 19
----
-4

skipif mysql # not compatible
query I rowsort label-5036
SELECT DISTINCT + 94 / - 19
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT SUM( - - 44 ) - - - 65
----
-21

skipif mysql # not compatible
query I rowsort label-5037
SELECT SUM ( - - 44 ) - - - 65
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5038
SELECT 56 DIV - COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-5038
SELECT 56 / - COUNT ( * )
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-5039
SELECT MAX( 81 ) * + - 64 - + + 1, 60 col2
----
-5185
60

skipif mysql # not compatible
query II rowsort label-5039
SELECT MAX ( 81 ) * + - 64 - + + 1, 60 col2
----
-5185
60

query II rowsort
SELECT 6 AS col1, 46 AS col0
----
6
46

query I rowsort
SELECT DISTINCT + 67 * + 89
----
5963

onlyif mysql # DIV for integer division: 
query I rowsort label-5042
SELECT DISTINCT 67 DIV - + 90 * + 80
----
0

skipif mysql # not compatible
query I rowsort label-5042
SELECT DISTINCT 67 / - + 90 * + 80
----
0

query I rowsort
SELECT ALL - 76 + + - 44
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT ALL SUM( + 44 ) + 21 * + - 16 col0
----
-292

skipif mysql # not compatible
query I rowsort label-5044
SELECT ALL SUM ( + 44 ) + 21 * + - 16 col0
----
-292

query I rowsort
SELECT ALL - 49 + - 66 + + 66 AS col1
----
-49

query I rowsort
SELECT 81 + + 40 + - + 76 AS col1
----
45

query I rowsort
SELECT 97 + + - ( + 51 )
----
46

query I rowsort
SELECT ALL + 41 + - 93 AS col1
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5049
SELECT - SUM( - - 16 ) DIV + 2 + - 11
----
-19

skipif mysql # not compatible
query I rowsort label-5049
SELECT - SUM ( - - 16 ) / + 2 + - 11
----
-19

query I rowsort
SELECT ALL - + 60 + - 52
----
-112

query I rowsort
SELECT DISTINCT - + ( 35 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5052
SELECT ALL + - 48 * 77 * - + COUNT( * )
----
3696

skipif mysql # not compatible
query I rowsort label-5052
SELECT ALL + - 48 * 77 * - + COUNT ( * )
----
3696

onlyif mysql # aggregate syntax: 
query II rowsort label-5053
SELECT 58 AS col2, 35 - + COUNT( * ) + 22 AS col1
----
58
56

skipif mysql # not compatible
query II rowsort label-5053
SELECT 58 AS col2, 35 - + COUNT ( * ) + 22 AS col1
----
58
56

query I rowsort
SELECT ALL + 25 - + 90
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT ( + 4 ) * + COALESCE ( - ( - - ( COUNT( * ) ) ), - + 68, - + 84 * + + 74 + 65 )
----
-4

skipif mysql # not compatible
query I rowsort label-5055
SELECT ( + 4 ) * + COALESCE ( - ( - - ( COUNT ( * ) ) ), - + 68, - + 84 * + + 74 + 65 )
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-5056
SELECT ALL - 10 AS col1, COUNT( * )
----
-10
1

skipif mysql # not compatible
query II rowsort label-5056
SELECT ALL - 10 AS col1, COUNT ( * )
----
-10
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5057
SELECT ALL - - 80 - + + 11 + - 3 / + - ( - CASE - - 11 WHEN 89 * COUNT( * ) + + 72 THEN - COUNT( * ) + - COUNT( * ) WHEN + - 57 THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5057
SELECT ALL - - 80 - + + 11 + - 3 / + - ( - CASE - - 11 WHEN 89 * COUNT ( * ) + + 72 THEN - COUNT ( * ) + - COUNT ( * ) WHEN + - 57 THEN NULL ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5058
SELECT 0 * + 42 + COUNT( DISTINCT + 29 ) + - 89 AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-5058
SELECT 0 * + 42 + COUNT ( DISTINCT + 29 ) + - 89 AS col1
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-5059
SELECT DISTINCT 4 DIV + 64
----
0

skipif mysql # not compatible
query I rowsort label-5059
SELECT DISTINCT 4 / + 64
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5060
SELECT ALL - 90, - MIN( + CAST( NULL AS SIGNED ) ) AS col1
----
-90
NULL

skipif mysql # not compatible
query II rowsort label-5060
SELECT ALL - 90, - MIN ( + CAST ( NULL AS INTEGER ) ) AS col1
----
-90
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5061
SELECT + 97 AS col2, 90 + - COUNT( * ) AS col1
----
97
89

skipif mysql # not compatible
query II rowsort label-5061
SELECT + 97 AS col2, 90 + - COUNT ( * ) AS col1
----
97
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT - 6 + + + 57 + - 94 + - COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-5062
SELECT - 6 + + + 57 + - 94 + - COUNT ( * )
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5063
SELECT CAST( COUNT( * ) AS SIGNED ) * - - 38 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-5063
SELECT CAST ( COUNT ( * ) AS INTEGER ) * - - 38 AS col2
----
38

query I rowsort
SELECT ALL 62 * 27
----
1674

query I rowsort
SELECT 8 * + 20 + - + 88
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5066
SELECT ALL COUNT( * ) * + - 75 AS col0, - CASE - - CAST( NULL AS SIGNED ) WHEN 18 THEN NULL ELSE + - ( - ( - 57 ) ) END
----
-75
57

skipif mysql # not compatible
query II rowsort label-5066
SELECT ALL COUNT ( * ) * + - 75 AS col0, - CASE - - CAST ( NULL AS INTEGER ) WHEN 18 THEN NULL ELSE + - ( - ( - 57 ) ) END
----
-75
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5067
SELECT CAST( + NULLIF ( + 8, + - 74 ) AS SIGNED ) + - 55 col0
----
-47

skipif mysql # not compatible
query I rowsort label-5067
SELECT CAST ( + NULLIF ( + 8, + - 74 ) AS INTEGER ) + - 55 col0
----
-47

query I rowsort
SELECT ALL 26 + - 41 + + 79 AS col0
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5069
SELECT ALL - 8 + + 50 * CAST( NULL AS SIGNED ) + - - COUNT( * ) * - SUM( ALL - 36 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5069
SELECT ALL - 8 + + 50 * CAST ( NULL AS INTEGER ) + - - COUNT ( * ) * - SUM ( ALL - 36 ) AS col0
----
NULL

query I rowsort
SELECT ALL 78 + - ( + 96 ) + - 30 AS col1
----
-48

query I rowsort
SELECT 97 + - + ( - + 7 )
----
104

query II rowsort
SELECT DISTINCT 13 + - + 24 + + 83 AS col1, - 71 col2
----
72
-71

query I rowsort
SELECT 16 + - 65 * + 22 AS col2
----
-1414

query I rowsort
SELECT ALL - 45 + + 34 * - 11
----
-419

query I rowsort
SELECT 87 * - 96 * + - 93 AS col1
----
776736

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5076
SELECT DISTINCT - COUNT( * ) DIV - SUM( ( - + 79 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5076
SELECT DISTINCT - COUNT ( * ) / - SUM ( ( - + 79 ) )
----
0

query II rowsort
SELECT DISTINCT 77 + 16 AS col0, ( + 85 )
----
93
85

onlyif mysql # DIV for integer division: 
query II rowsort label-5078
SELECT 6 DIV 21 AS col2, ( 1 ) + - + 36 DIV 84 * - - 27 - - 70
----
0
71

skipif mysql # not compatible
query II rowsort label-5078
SELECT 6 / 21 AS col2, ( 1 ) + - + 36 / 84 * - - 27 - - 70
----
0
71

query I rowsort
SELECT ALL 12 + + + 36 + + 22 - - 53
----
123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5080
SELECT ALL + CAST( NULL AS SIGNED ) - 91 + - MIN( - 20 ) * - - 16 + + 19 - + 52 * - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-5080
SELECT ALL + CAST ( NULL AS INTEGER ) - 91 + - MIN ( - 20 ) * - - 16 + + 19 - + 52 * - 8
----
NULL

query I rowsort
SELECT ALL CASE - - 30 WHEN + + 75 THEN - 22 ELSE 62 * + + 58 END
----
3596

onlyif mysql # aggregate syntax: 
query I rowsort label-5082
SELECT + MAX( ALL - + ( - - 5 ) )
----
-5

skipif mysql # not compatible
query I rowsort label-5082
SELECT + MAX ( ALL - + ( - - 5 ) )
----
-5

query I rowsort
SELECT ALL + 46 * 83 AS col1
----
3818

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT ALL + 70 * - COUNT( * ) - + 41 + - NULLIF ( - + 45, - 58 / + SUM( ALL - 15 ) * 46 + - - 50 ) * + + NULLIF ( + 62, AVG ( + + 41 ) ) + COUNT( * ) * - 38 * 23
----
1805

skipif mysql # not compatible
query I rowsort label-5084
SELECT ALL + 70 * - COUNT ( * ) - + 41 + - NULLIF ( - + 45, - 58 / + SUM ( ALL - 15 ) * 46 + - - 50 ) * + + NULLIF ( + 62, AVG ( + + 41 ) ) + COUNT ( * ) * - 38 * 23
----
1805

query I rowsort
SELECT ( 38 ) * + - 1 * - 30 col2
----
1140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5086
SELECT + NULLIF ( + - ( + 99 ), - 29 * + 95 - - CAST( NULL AS SIGNED ) ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-5086
SELECT + NULLIF ( + - ( + 99 ), - 29 * + 95 - - CAST ( NULL AS INTEGER ) ) AS col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT + NULLIF ( + 43, COUNT( * ) )
----
43

skipif mysql # not compatible
query I rowsort label-5087
SELECT + NULLIF ( + 43, COUNT ( * ) )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT ALL ( COUNT( * ) ) * + + 35 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-5088
SELECT ALL ( COUNT ( * ) ) * + + 35 AS col1
----
35

query I rowsort
SELECT 15 * - 13
----
-195

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5090
SELECT ALL - 2 DIV 9 + - + SUM( ALL + 38 ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-5090
SELECT ALL - 2 / 9 + - + SUM ( ALL + 38 ) AS col1
----
-38

query I rowsort
SELECT - 7 + - 21
----
-28

query I rowsort
SELECT + - ( + + ( - 9 ) ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-5093
SELECT ALL - MIN( - - 27 ) * - 50 AS col0, + 62
----
1350
62

skipif mysql # not compatible
query II rowsort label-5093
SELECT ALL - MIN ( - - 27 ) * - 50 AS col0, + 62
----
1350
62

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5094
SELECT - - 47 DIV - 98 + 45 * + + CAST( + 6 AS SIGNED ) + - - 75
----
345

skipif mysql # not compatible
query I rowsort label-5094
SELECT - - 47 / - 98 + 45 * + + CAST ( + 6 AS INTEGER ) + - - 75
----
345

query II rowsort
SELECT + 99 * + 61 AS col1, - ( - 17 )
----
6039
17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5096
SELECT + CAST( + 4 AS SIGNED ), - 7 AS col2
----
4
-7

skipif mysql # not compatible
query II rowsort label-5096
SELECT + CAST ( + 4 AS INTEGER ), - 7 AS col2
----
4
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5097
SELECT + CAST( NULL AS SIGNED ) * + 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5097
SELECT + CAST ( NULL AS INTEGER ) * + 27 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5098
SELECT ALL 21 * - + 12 + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) * - + CASE - 9 WHEN AVG ( DISTINCT - - 23 ) / + + 6 THEN NULL ELSE + 3 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5098
SELECT ALL 21 * - + 12 + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) * - + CASE - 9 WHEN AVG ( DISTINCT - - 23 ) / + + 6 THEN NULL ELSE + 3 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5099
SELECT DISTINCT + 21 * 10 + - + COUNT( + 13 ) AS col0
----
209

skipif mysql # not compatible
query I rowsort label-5099
SELECT DISTINCT + 21 * 10 + - + COUNT ( + 13 ) AS col0
----
209

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5100
SELECT + 21 DIV - COUNT( ALL 68 )
----
-21

skipif mysql # not compatible
query I rowsort label-5100
SELECT + 21 / - COUNT ( ALL 68 )
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5101
SELECT ALL - 76 + - - CAST( NULL AS SIGNED ) * + AVG ( - + 4 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5101
SELECT ALL - 76 + - - CAST ( NULL AS INTEGER ) * + AVG ( - + 4 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5102
SELECT DISTINCT + COUNT( * ), - 92 AS col0
----
1
-92

skipif mysql # not compatible
query II rowsort label-5102
SELECT DISTINCT + COUNT ( * ), - 92 AS col0
----
1
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-5103
SELECT - 46 AS col2, 0 + + MIN( DISTINCT - 87 ) + 85 col0
----
-46
-2

skipif mysql # not compatible
query II rowsort label-5103
SELECT - 46 AS col2, 0 + + MIN ( DISTINCT - 87 ) + 85 col0
----
-46
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5104
SELECT - CASE + COUNT( * ) WHEN - 0 / - ( - + 73 ) + - COUNT( * ) THEN + 32 WHEN + NULLIF ( - + CASE - + 75 WHEN ( + 80 ) THEN + - CAST( NULL AS SIGNED ) WHEN ( - 22 ) THEN ( + - SUM( DISTINCT - - 52 ) ) / 19 ELSE NULL END, + 70 ) THEN NULL WHEN - 72 THEN + 63 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5104
SELECT - CASE + COUNT ( * ) WHEN - 0 / - ( - + 73 ) + - COUNT ( * ) THEN + 32 WHEN + NULLIF ( - + CASE - + 75 WHEN ( + 80 ) THEN + - CAST ( NULL AS INTEGER ) WHEN ( - 22 ) THEN ( + - SUM ( DISTINCT - - 52 ) ) / 19 ELSE NULL END, + 70 ) THEN NULL WHEN - 72 THEN + 63 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT DISTINCT 14 + + MAX( DISTINCT + 70 )
----
84

skipif mysql # not compatible
query I rowsort label-5105
SELECT DISTINCT 14 + + MAX ( DISTINCT + 70 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5106
SELECT ALL 72 + - COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-5106
SELECT ALL 72 + - COUNT ( * )
----
71

query II rowsort
SELECT 55 AS col2, + 61 + 46
----
55
107

query I rowsort
SELECT ALL 25 * - - 42
----
1050

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT + 31 * + 27 * - MIN( ALL - 58 ) col0
----
48546

skipif mysql # not compatible
query I rowsort label-5109
SELECT + 31 * + 27 * - MIN ( ALL - 58 ) col0
----
48546

query II rowsort
SELECT ALL 36 + + 21 * + - 0 AS col2, + 98 + + 57
----
36
155

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT - CASE + 48 WHEN - - 29 THEN NULL WHEN 6 / - + COUNT( * ) THEN + 37 + + 65 + 9 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5111
SELECT - CASE + 48 WHEN - - 29 THEN NULL WHEN 6 / - + COUNT ( * ) THEN + 37 + + 65 + 9 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5112
SELECT ALL COUNT( * ) - + CASE - 49 WHEN + - COUNT( * ) THEN NULL WHEN - - 98 THEN - 10 WHEN - + 77 THEN + 92 END + + 92 + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5112
SELECT ALL COUNT ( * ) - + CASE - 49 WHEN + - COUNT ( * ) THEN NULL WHEN - - 98 THEN - 10 WHEN - + 77 THEN + 92 END + + 92 + + COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5113
SELECT ALL - CAST( NULL AS DECIMAL ) - + MAX( - 44 ) + + COALESCE ( - 95, 19 ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5113
SELECT ALL - CAST ( NULL AS REAL ) - + MAX ( - 44 ) + + COALESCE ( - 95, 19 ) * - COUNT ( * )
----
NULL

query I rowsort
SELECT + 1 * + + 32
----
32

query I rowsort
SELECT DISTINCT 6 * 51 AS col0
----
306

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5116
SELECT + CAST( + 50 AS SIGNED ) + ( CAST( - 95 AS SIGNED ) ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-5116
SELECT + CAST ( + 50 AS INTEGER ) + ( CAST ( - 95 AS INTEGER ) ) AS col0
----
-45

query I rowsort
SELECT + 77 - - - 32
----
45

query I rowsort
SELECT + + 69 + + 38 AS col0
----
107

query II rowsort
SELECT - + 81, 3 col0
----
-81
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5120
SELECT + - CAST( - CASE + - CASE + + NULLIF ( SUM( 22 ), + 50 ) WHEN + 99 * + 57 THEN 64 / + ( + - 39 ) / 9 + 75 ELSE + 0 * - + COALESCE ( + 1, - 95 ) END WHEN ( - 55 ) THEN 50 + - CAST( NULL AS SIGNED ) ELSE NULL END AS SIGNED ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5120
SELECT + - CAST ( - CASE + - CASE + + NULLIF ( SUM ( 22 ), + 50 ) WHEN + 99 * + 57 THEN 64 / + ( + - 39 ) / 9 + 75 ELSE + 0 * - + COALESCE ( + 1, - 95 ) END WHEN ( - 55 ) THEN 50 + - CAST ( NULL AS INTEGER ) ELSE NULL END AS INTEGER ) + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5121
SELECT + 97 + - + 35 DIV + 81, COUNT( * ) * - 34 + - ( 8 ) - 13 AS col0
----
97
-55

skipif mysql # not compatible
query II rowsort label-5121
SELECT + 97 + - + 35 / + 81, COUNT ( * ) * - 34 + - ( 8 ) - 13 AS col0
----
97
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT - MIN( DISTINCT + - 40 )
----
40

skipif mysql # not compatible
query I rowsort label-5122
SELECT - MIN ( DISTINCT + - 40 )
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5123
SELECT DISTINCT - NULLIF ( 15, CAST( NULL AS SIGNED ) * - + 20 * + 30 + 30 * + 1 + + 84 ) AS col0, + 19 AS col0
----
-15
19

skipif mysql # not compatible
query II rowsort label-5123
SELECT DISTINCT - NULLIF ( 15, CAST ( NULL AS INTEGER ) * - + 20 * + 30 + 30 * + 1 + + 84 ) AS col0, + 19 AS col0
----
-15
19

onlyif mysql # DIV for integer division: 
query I rowsort label-5124
SELECT ALL - 9 DIV 34
----
0

skipif mysql # not compatible
query I rowsort label-5124
SELECT ALL - 9 / 34
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5125
SELECT + 11 + + 86 + 37 + + 40 * - + COALESCE ( + ( - 94 ), - 24, COUNT( * ) + + + 65 - 16 + COALESCE ( - 84, MAX( + 37 ) + - + COUNT( * ) + - 99 * - COALESCE ( 99, 98 * - COUNT( * ), + ( - 79 ) DIV - 94 ) * 98, + 4 * - 0 + 91, + 51 ) ) AS col0
----
3894

skipif mysql # not compatible
query I rowsort label-5125
SELECT + 11 + + 86 + 37 + + 40 * - + COALESCE ( + ( - 94 ), - 24, COUNT ( * ) + + + 65 - 16 + COALESCE ( - 84, MAX ( + 37 ) + - + COUNT ( * ) + - 99 * - COALESCE ( 99, 98 * - COUNT ( * ), + ( - 79 ) / - 94 ) * 98, + 4 * - 0 + 91, + 51 ) ) AS col0
----
3894

onlyif mysql # DIV for integer division: 
query I rowsort label-5126
SELECT ALL 81 - + 94 DIV + - 46
----
83

skipif mysql # not compatible
query I rowsort label-5126
SELECT ALL 81 - + 94 / + - 46
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT - 24 + 28 + + - 67 * + + COUNT( * ) + - 1
----
-64

skipif mysql # not compatible
query I rowsort label-5127
SELECT - 24 + 28 + + - 67 * + + COUNT ( * ) + - 1
----
-64

query I rowsort
SELECT - - 12 * + 24 col1
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-5129
SELECT ALL + 31 * - + COUNT( * ) col0
----
-31

skipif mysql # not compatible
query I rowsort label-5129
SELECT ALL + 31 * - + COUNT ( * ) col0
----
-31

query II rowsort
SELECT + ( 19 ) * + 99 col1, 91 + - - 7 + + 68 * + + 50
----
1881
3498

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5131
SELECT + + CAST( SUM( ALL - + COALESCE ( + 80, - + 88 ) ) AS SIGNED ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-5131
SELECT + + CAST ( SUM ( ALL - + COALESCE ( + 80, - + 88 ) ) AS INTEGER ) AS col2
----
-80

query II rowsort
SELECT - - 62 + - 65 - - 93 AS col1, 81
----
90
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5133
SELECT + 0 * + + 26 + - - 34 * - CAST( NULL AS SIGNED ) AS col1, 0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-5133
SELECT + 0 * + + 26 + - - 34 * - CAST ( NULL AS INTEGER ) AS col1, 0
----
NULL
0

query II rowsort
SELECT ALL + - 44 AS col0, + 69 AS col1
----
-44
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT DISTINCT - - 51 * - - 9 + - ( 0 ) * + 89 + - COUNT( + - NULLIF ( - 11, + 20 / - 91 + + 36 * - 98 * 98 ) ) AS col0
----
458

skipif mysql # not compatible
query I rowsort label-5135
SELECT DISTINCT - - 51 * - - 9 + - ( 0 ) * + 89 + - COUNT ( + - NULLIF ( - 11, + 20 / - 91 + + 36 * - 98 * 98 ) ) AS col0
----
458

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5136
SELECT 13 DIV 19 + 73 + - 23 + - 10 * - + COUNT( * ) col0
----
60

skipif mysql # not compatible
query I rowsort label-5136
SELECT 13 / 19 + 73 + - 23 + - 10 * - + COUNT ( * ) col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5137
SELECT DISTINCT + SUM( + 5 ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-5137
SELECT DISTINCT + SUM ( + 5 ) AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT ALL + 8 * + MAX( DISTINCT 85 ) * COUNT( * ) + + MAX( ALL 29 ) col0
----
709

skipif mysql # not compatible
query I rowsort label-5138
SELECT ALL + 8 * + MAX ( DISTINCT 85 ) * COUNT ( * ) + + MAX ( ALL 29 ) col0
----
709

query I rowsort
SELECT - + 85 * + 91
----
-7735

query I rowsort
SELECT - COALESCE ( + 73, + 56, + - 24 * - 97 )
----
-73

query I rowsort
SELECT - 80 * - 44 AS col0
----
3520

onlyif mysql # aggregate syntax: 
query I rowsort label-5142
SELECT ALL - SUM( DISTINCT - 52 ) * - - COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-5142
SELECT ALL - SUM ( DISTINCT - 52 ) * - - COUNT ( * )
----
52

query I rowsort
SELECT ALL + ( - ( + 45 ) ) AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5144
SELECT + COUNT( * ) * - 72 - 52
----
-124

skipif mysql # not compatible
query I rowsort label-5144
SELECT + COUNT ( * ) * - 72 - 52
----
-124

query I rowsort
SELECT DISTINCT 29 * + 72 + 80 AS col0
----
2168

onlyif mysql # aggregate syntax: 
query I rowsort label-5146
SELECT NULLIF ( 23, + COUNT( * ) + CASE - 90 WHEN - COALESCE ( + 38, + + 80 * + + COUNT( * ) + + 56 + - 10, + 39 * 7 ) THEN NULL ELSE + 93 END - - 16 * - - 90 ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-5146
SELECT NULLIF ( 23, + COUNT ( * ) + CASE - 90 WHEN - COALESCE ( + 38, + + 80 * + + COUNT ( * ) + + 56 + - 10, + 39 * 7 ) THEN NULL ELSE + 93 END - - 16 * - - 90 ) AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5147
SELECT ALL COUNT( * ) * - 25 + - 14 AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-5147
SELECT ALL COUNT ( * ) * - 25 + - 14 AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5148
SELECT COALESCE ( 39, + - 9 * 42 ) * + 9 + + COUNT( * )
----
352

skipif mysql # not compatible
query I rowsort label-5148
SELECT COALESCE ( 39, + - 9 * 42 ) * + 9 + + COUNT ( * )
----
352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5149
SELECT - COALESCE ( + COUNT( * ), - + 33, + 38 ) * - ( + 87 ) * CAST( + + 66 AS SIGNED ) + 54
----
5796

skipif mysql # not compatible
query I rowsort label-5149
SELECT - COALESCE ( + COUNT ( * ), - + 33, + 38 ) * - ( + 87 ) * CAST ( + + 66 AS INTEGER ) + 54
----
5796

query I rowsort
SELECT DISTINCT ( + ( 29 ) ) AS col2
----
29

query I rowsort
SELECT DISTINCT + 29 * - 19 - + - 2 AS col0
----
-549

query I rowsort
SELECT ALL ( + ( - - 24 ) ) AS col2
----
24

query I rowsort
SELECT - 7 + + 83 AS col0
----
76

query I rowsort
SELECT + 83 * + 35 * 51
----
148155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5155
SELECT ALL CAST( + + COUNT( + CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5155
SELECT ALL CAST ( + + COUNT ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col1
----
0

query I rowsort
SELECT + 1 + + - 21
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-5157
SELECT SUM( 87 ) AS col2, + 52 + + COUNT( * ) AS col2
----
87
53

skipif mysql # not compatible
query II rowsort label-5157
SELECT SUM ( 87 ) AS col2, + 52 + + COUNT ( * ) AS col2
----
87
53

query I rowsort
SELECT + 42 + 9
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5159
SELECT - COALESCE ( - + 71, + COUNT( * ) DIV - 90 - + SUM( DISTINCT + - 7 ) - + 33 * + 67 + + - 73, - 69 ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-5159
SELECT - COALESCE ( - + 71, + COUNT ( * ) / - 90 - + SUM ( DISTINCT + - 7 ) - + 33 * + 67 + + - 73, - 69 ) AS col0
----
71

query I rowsort
SELECT + - 2 * - 96 AS col1
----
192

query I rowsort
SELECT DISTINCT - 88 col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5162
SELECT ALL + COUNT( * ) * + 76 + 29 + - - 96 + + - COUNT( + 85 ) * + 69 + + - 8
----
124

skipif mysql # not compatible
query I rowsort label-5162
SELECT ALL + COUNT ( * ) * + 76 + 29 + - - 96 + + - COUNT ( + 85 ) * + 69 + + - 8
----
124

query I rowsort
SELECT + 18 * - ( - 71 )
----
1278

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5164
SELECT ALL + CAST( - 94 AS SIGNED ) AS col0, 86 - 0 + - 14 * COALESCE ( + COALESCE ( 98, - 1, - 29 ), - 53 * + 48 ) + - 65 + 22 AS col1
----
-94
-1329

skipif mysql # not compatible
query II rowsort label-5164
SELECT ALL + CAST ( - 94 AS INTEGER ) AS col0, 86 - 0 + - 14 * COALESCE ( + COALESCE ( 98, - 1, - 29 ), - 53 * + 48 ) + - 65 + 22 AS col1
----
-94
-1329

query I rowsort
SELECT ALL - 2 + - 32 AS col1
----
-34

query I rowsort
SELECT NULLIF ( - 67, - 26 )
----
-67

query I rowsort
SELECT + - 68 * + 73 - - 89
----
-4875

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5168
SELECT - CASE AVG ( ALL + - 99 ) WHEN 60 THEN + 98 + + + 17 + 0 WHEN 63 - - + CAST( + 97 AS SIGNED ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5168
SELECT - CASE AVG ( ALL + - 99 ) WHEN 60 THEN + 98 + + + 17 + 0 WHEN 63 - - + CAST ( + 97 AS INTEGER ) THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + ( - 72 ) + - 11
----
-83

query I rowsort
SELECT DISTINCT - ( 41 ) * + 9 AS col2
----
-369

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5171
SELECT DISTINCT 38 + - ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5171
SELECT DISTINCT 38 + - ( CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT ( 25 ) + + 45, - 32 AS col0
----
70
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5173
SELECT - COUNT( * ) * + 25 - + 70 DIV - 49 + - 88
----
-112

skipif mysql # not compatible
query I rowsort label-5173
SELECT - COUNT ( * ) * + 25 - + 70 / - 49 + - 88
----
-112

query I rowsort
SELECT 10 * - 91
----
-910

query I rowsort
SELECT ALL - 59 * 3
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-5176
SELECT ALL - MIN( DISTINCT 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-5176
SELECT ALL - MIN ( DISTINCT 1 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5177
SELECT ALL - CAST( - AVG ( ALL - + 85 ) AS SIGNED ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-5177
SELECT ALL - CAST ( - AVG ( ALL - + 85 ) AS INTEGER ) AS col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5178
SELECT DISTINCT - COUNT( + 75 )
----
-1

skipif mysql # not compatible
query I rowsort label-5178
SELECT DISTINCT - COUNT ( + 75 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5179
SELECT ALL 96 * + COALESCE ( + 75, + 72 + + MAX( ALL - + 95 ) + NULLIF ( - + ( - 58 ), + ( + COUNT( * ) ) + 76 ), MIN( + 9 ) * COUNT( * ) DIV + 66 ) AS col2
----
7200

skipif mysql # not compatible
query I rowsort label-5179
SELECT ALL 96 * + COALESCE ( + 75, + 72 + + MAX ( ALL - + 95 ) + NULLIF ( - + ( - 58 ), + ( + COUNT ( * ) ) + 76 ), MIN ( + 9 ) * COUNT ( * ) / + 66 ) AS col2
----
7200

query I rowsort
SELECT DISTINCT + 14 - 87
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5181
SELECT DISTINCT + COUNT( * ) * + + 88
----
88

skipif mysql # not compatible
query I rowsort label-5181
SELECT DISTINCT + COUNT ( * ) * + + 88
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5182
SELECT DISTINCT - MIN( + 95 ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-5182
SELECT DISTINCT - MIN ( + 95 ) AS col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT 26 * + COUNT( * ) * + - 69
----
-1794

skipif mysql # not compatible
query I rowsort label-5183
SELECT 26 * + COUNT ( * ) * + - 69
----
-1794

query I rowsort
SELECT 16 * + 21
----
336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5185
SELECT MAX( - CAST( NULL AS SIGNED ) ) * - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-5185
SELECT MAX ( - CAST ( NULL AS INTEGER ) ) * - 0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5186
SELECT 22 - + COUNT( * ) + - - CASE + + ( - - 20 ) WHEN 22 THEN - 49 * + CAST( 65 AS SIGNED ) WHEN MIN( ALL ( + 45 ) ) + + - 47 THEN 43 - - + COUNT( * ) END + - + 16 + MIN( ALL CAST( - 85 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5186
SELECT 22 - + COUNT ( * ) + - - CASE + + ( - - 20 ) WHEN 22 THEN - 49 * + CAST ( 65 AS INTEGER ) WHEN MIN ( ALL ( + 45 ) ) + + - 47 THEN 43 - - + COUNT ( * ) END + - + 16 + MIN ( ALL CAST ( - 85 AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5187
SELECT + SUM( - 14 ) - - COUNT( * ) + - 60
----
-73

skipif mysql # not compatible
query I rowsort label-5187
SELECT + SUM ( - 14 ) - - COUNT ( * ) + - 60
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5188
SELECT ALL NULLIF ( ( + 13 ), - + COALESCE ( CAST( NULL AS SIGNED ), 3 - - + AVG ( DISTINCT 25 ) ) * - - MAX( + - 74 ) + - MAX( CAST( + 86 AS SIGNED ) ) ) AS col1, - 41 DIV ( - 55 ) + - - 96 AS col0
----
13
96

skipif mysql # not compatible
query II rowsort label-5188
SELECT ALL NULLIF ( ( + 13 ), - + COALESCE ( CAST ( NULL AS INTEGER ), 3 - - + AVG ( DISTINCT 25 ) ) * - - MAX ( + - 74 ) + - MAX ( CAST ( + 86 AS INTEGER ) ) ) AS col1, - 41 / ( - 55 ) + - - 96 AS col0
----
13
96

query I rowsort
SELECT 23 + 98
----
121

query I rowsort
SELECT - 29 - 68
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT - - SUM( + 58 ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-5191
SELECT - - SUM ( + 58 ) AS col2
----
58

query I rowsort
SELECT - + ( - 1 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5193
SELECT ALL - 65 + - + COUNT( * ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-5193
SELECT ALL - 65 + - + COUNT ( * ) AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT + 96 + COUNT( * ) + - 29 + - + COALESCE ( 10, 8 ) + + 31 col1
----
89

skipif mysql # not compatible
query I rowsort label-5194
SELECT + 96 + COUNT ( * ) + - 29 + - + COALESCE ( 10, 8 ) + + 31 col1
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5195
SELECT CAST( + - 12 AS SIGNED ) + + CAST( + 41 AS SIGNED )
----
29

skipif mysql # not compatible
query I rowsort label-5195
SELECT CAST ( + - 12 AS INTEGER ) + + CAST ( + 41 AS INTEGER )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5196
SELECT ALL + MIN( - 43 ) + - 66
----
-109

skipif mysql # not compatible
query I rowsort label-5196
SELECT ALL + MIN ( - 43 ) + - 66
----
-109

query I rowsort
SELECT ALL 48 * - + 25
----
-1200

onlyif mysql # aggregate syntax: 
query I rowsort label-5198
SELECT DISTINCT + ( + - 77 ) + COUNT( * ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-5198
SELECT DISTINCT + ( + - 77 ) + COUNT ( * ) AS col0
----
-76

query I rowsort
SELECT DISTINCT - ( - 69 ) AS col1
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5200
SELECT + CAST( NULL AS SIGNED ) + - 67 + 72 - - - 71 * - 70 * - NULLIF ( COUNT( * ), - 56 ) / + + 71 * - + MIN( - CASE + - 14 WHEN - 78 / - 78 THEN NULL WHEN + 77 THEN + 86 END ) * + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-5200
SELECT + CAST ( NULL AS INTEGER ) + - 67 + 72 - - - 71 * - 70 * - NULLIF ( COUNT ( * ), - 56 ) / + + 71 * - + MIN ( - CASE + - 14 WHEN - 78 / - 78 THEN NULL WHEN + 77 THEN + 86 END ) * + 34
----
NULL

query I rowsort
SELECT - 45 * ( + 37 )
----
-1665

query I rowsort
SELECT DISTINCT 97 - + 65 * - 79
----
5232

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT MAX( - 1 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-5203
SELECT MAX ( - 1 ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5204
SELECT - 46 * 37 * + COUNT( * ) + + 53
----
-1649

skipif mysql # not compatible
query I rowsort label-5204
SELECT - 46 * 37 * + COUNT ( * ) + + 53
----
-1649

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT COUNT( + + 39 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5205
SELECT COUNT ( + + 39 ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5206
SELECT MAX( 58 ) + + ( CAST( - + ( COUNT( * ) ) AS SIGNED ) ) AS col1, 47
----
57
47

skipif mysql # not compatible
query II rowsort label-5206
SELECT MAX ( 58 ) + + ( CAST ( - + ( COUNT ( * ) ) AS INTEGER ) ) AS col1, 47
----
57
47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5207
SELECT CAST( NULL AS DECIMAL ) / + + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-5207
SELECT CAST ( NULL AS REAL ) / + + 87
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5208
SELECT CAST( NULL AS SIGNED ) * + 91 * - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-5208
SELECT CAST ( NULL AS INTEGER ) * + 91 * - 93
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5209
SELECT ALL COUNT( * ) DIV - 27 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5209
SELECT ALL COUNT ( * ) / - 27 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5210
SELECT ALL - SUM( + 34 )
----
-34

skipif mysql # not compatible
query I rowsort label-5210
SELECT ALL - SUM ( + 34 )
----
-34

query I rowsort
SELECT 19 * - 89 + - 29 col1
----
-1720

onlyif mysql # aggregate syntax: 
query II rowsort label-5212
SELECT DISTINCT 83 * + 37, + COUNT( DISTINCT + 49 ) * + 67 AS col2
----
3071
67

skipif mysql # not compatible
query II rowsort label-5212
SELECT DISTINCT 83 * + 37, + COUNT ( DISTINCT + 49 ) * + 67 AS col2
----
3071
67

query I rowsort
SELECT ALL NULLIF ( - - 39, - + 33 ) * + 89 AS col1
----
3471

onlyif mysql # aggregate syntax: 
query II rowsort label-5214
SELECT 14 AS col1, - 98 * + + 81 + + ( 78 ) * + COUNT( * )
----
14
-7860

skipif mysql # not compatible
query II rowsort label-5214
SELECT 14 AS col1, - 98 * + + 81 + + ( 78 ) * + COUNT ( * )
----
14
-7860

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT DISTINCT + ( + COUNT( * ) ) * 55
----
55

skipif mysql # not compatible
query I rowsort label-5215
SELECT DISTINCT + ( + COUNT ( * ) ) * 55
----
55

query II rowsort
SELECT ALL - 86, - 44 + + 53 AS col2
----
-86
9

query I rowsort
SELECT 19 * 1 * + - 36 + 71
----
-613

query II rowsort
SELECT 95 AS col1, 85 AS col2
----
95
85

query II rowsort
SELECT ALL NULLIF ( + 72, 91 ) * - 73 AS col1, - 97
----
-5256
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-5220
SELECT DISTINCT - 68 * 84 + 88 + - 60 * - - COALESCE ( - COUNT( * ), - COUNT( ALL - 96 ) ) * 48 * - 4 * + - 51 + + 0 AS col2, 48
----
581896
48

skipif mysql # not compatible
query II rowsort label-5220
SELECT DISTINCT - 68 * 84 + 88 + - 60 * - - COALESCE ( - COUNT ( * ), - COUNT ( ALL - 96 ) ) * 48 * - 4 * + - 51 + + 0 AS col2, 48
----
581896
48

query I rowsort
SELECT ALL + 35 + - 95
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5222
SELECT ALL + 30 + + COUNT( * ) * 12
----
42

skipif mysql # not compatible
query I rowsort label-5222
SELECT ALL + 30 + + COUNT ( * ) * 12
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-5223
SELECT - - 24 + + - 62 DIV + 7
----
16

skipif mysql # not compatible
query I rowsort label-5223
SELECT - - 24 + + - 62 / + 7
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5224
SELECT DISTINCT + COUNT( * ) AS col1, - ( - - 86 ) + - 10 + ( + 11 ) DIV COUNT( * ) + + 5 * - - 52 * 52 AS col2
----
1
13435

skipif mysql # not compatible
query II rowsort label-5224
SELECT DISTINCT + COUNT ( * ) AS col1, - ( - - 86 ) + - 10 + ( + 11 ) / COUNT ( * ) + + 5 * - - 52 * 52 AS col2
----
1
13435

onlyif mysql # DIV for integer division: 
query I rowsort label-5225
SELECT - + 50 + - 73 DIV + 93 AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-5225
SELECT - + 50 + - 73 / + 93 AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT ALL - + MAX( DISTINCT - + 99 ) + + ( - 84 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-5226
SELECT ALL - + MAX ( DISTINCT - + 99 ) + + ( - 84 ) AS col0
----
15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5227
SELECT - - 80 / COUNT( * ) * 93 + - 52 + CAST( NULL AS DECIMAL ) + + + COUNT( * ) + + + 1 * - - 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5227
SELECT - - 80 / COUNT ( * ) * 93 + - 52 + CAST ( NULL AS REAL ) + + + COUNT ( * ) + + + 1 * - - 58 AS col0
----
NULL

query I rowsort
SELECT - - 75 + - 21
----
54

query II rowsort
SELECT 99 AS col1, - 5 * + 76 + 18 AS col2
----
99
-362

query I rowsort
SELECT - + 0 + - 28
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5231
SELECT ALL - COUNT( * ) * COUNT( * ) DIV + + 75 * - 9 + + 90
----
90

skipif mysql # not compatible
query I rowsort label-5231
SELECT ALL - COUNT ( * ) * COUNT ( * ) / + + 75 * - 9 + + 90
----
90

query I rowsort
SELECT DISTINCT - - ( + + 11 ) * - + 16 AS col1
----
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-5233
SELECT ALL + COUNT( * ) + - 11
----
-10

skipif mysql # not compatible
query I rowsort label-5233
SELECT ALL + COUNT ( * ) + - 11
----
-10

query II rowsort
SELECT - + 48 * + 7 AS col1, 75
----
-336
75

query I rowsort
SELECT + - 73 * 33 AS col0
----
-2409

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5236
SELECT + MIN( DISTINCT + + 79 ) + - COUNT( * ) + 16 * - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5236
SELECT + MIN ( DISTINCT + + 79 ) + - COUNT ( * ) + 16 * - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT ( 95 ) col0, 78
----
95
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5238
SELECT ( - MAX( ALL 42 ) ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-5238
SELECT ( - MAX ( ALL 42 ) ) AS col1
----
-42

query I rowsort
SELECT ALL + ( + + 78 ) AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5240
SELECT + COUNT( - 89 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5240
SELECT + COUNT ( - 89 ) AS col0
----
1

query II rowsort
SELECT - 91 - 28 AS col0, + 35
----
-119
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5242
SELECT DISTINCT ( + - MAX( ALL + 91 ) ) * + - 91 * - + 0 + + - COUNT( DISTINCT ( - + 46 ) ) + + ( + COUNT( 79 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5242
SELECT DISTINCT ( + - MAX ( ALL + 91 ) ) * + - 91 * - + 0 + + - COUNT ( DISTINCT ( - + 46 ) ) + + ( + COUNT ( 79 ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5243
SELECT ALL + COUNT( * ) * 6
----
6

skipif mysql # not compatible
query I rowsort label-5243
SELECT ALL + COUNT ( * ) * 6
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5244
SELECT + 84 * + COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-5244
SELECT + 84 * + COUNT ( * )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5245
SELECT ALL + COUNT( DISTINCT + 94 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5245
SELECT ALL + COUNT ( DISTINCT + 94 ) AS col1
----
1

query I rowsort
SELECT DISTINCT 8 * 42
----
336

onlyif mysql # DIV for integer division: 
query I rowsort label-5247
SELECT + 78 + + + ( - + 20 ) DIV 35 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-5247
SELECT + 78 + + + ( - + 20 ) / 35 AS col1
----
78

query I rowsort
SELECT - 48 * + 84
----
-4032

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5249
SELECT CASE - - 1 WHEN 12 THEN NULL ELSE - - CAST( - 47 AS SIGNED ) * - - 98 + + 31 + - 9 END
----
-4584

skipif mysql # not compatible
query I rowsort label-5249
SELECT CASE - - 1 WHEN 12 THEN NULL ELSE - - CAST ( - 47 AS INTEGER ) * - - 98 + + 31 + - 9 END
----
-4584

query I rowsort
SELECT ALL - 87 * 4 + - 45 AS col1
----
-393

query II rowsort
SELECT + 77 + + + 23 AS col0, CASE NULLIF ( ( - - 61 ), 13 + 49 ) WHEN - 26 THEN - ( 4 ) + 75 WHEN + - 60 THEN - - 1 ELSE NULL END col0
----
100
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5252
SELECT DISTINCT 2 * 37 DIV 14 + COUNT( * ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-5252
SELECT DISTINCT 2 * 37 / 14 + COUNT ( * ) AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT + NULLIF ( SUM( ALL - 75 ), - MAX( + - 91 ) * - - 75 - 36 )
----
-75

skipif mysql # not compatible
query I rowsort label-5253
SELECT + NULLIF ( SUM ( ALL - 75 ), - MAX ( + - 91 ) * - - 75 - 36 )
----
-75

query III rowsort
SELECT - + 20 * + 44, 86 AS col2, 17 + - ( + 32 ) AS col1
----
-880
86
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5255
SELECT ALL + COALESCE ( + MAX( ALL - 26 ), 7 * + - 55 ) * + 37 * - COUNT( * ) AS col2, - CAST( NULL AS SIGNED ) AS col0
----
962
NULL

skipif mysql # not compatible
query II rowsort label-5255
SELECT ALL + COALESCE ( + MAX ( ALL - 26 ), 7 * + - 55 ) * + 37 * - COUNT ( * ) AS col2, - CAST ( NULL AS INTEGER ) AS col0
----
962
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5256
SELECT SUM( 99 ) AS col2, 64
----
99
64

skipif mysql # not compatible
query II rowsort label-5256
SELECT SUM ( 99 ) AS col2, 64
----
99
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5257
SELECT - COUNT( * ) DIV 22 AS col1, 73 AS col0
----
0
73

skipif mysql # not compatible
query II rowsort label-5257
SELECT - COUNT ( * ) / 22 AS col1, 73 AS col0
----
0
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5258
SELECT ALL + COUNT( * ) + 59 * + MAX( DISTINCT - - 33 )
----
1948

skipif mysql # not compatible
query I rowsort label-5258
SELECT ALL + COUNT ( * ) + 59 * + MAX ( DISTINCT - - 33 )
----
1948

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5259
SELECT DISTINCT SUM( CAST( - 73 AS SIGNED ) )
----
-73

skipif mysql # not compatible
query I rowsort label-5259
SELECT DISTINCT SUM ( CAST ( - 73 AS INTEGER ) )
----
-73

query I rowsort
SELECT - + 75 col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT ALL + 63 - - + MIN( ALL 69 )
----
132

skipif mysql # not compatible
query I rowsort label-5261
SELECT ALL + 63 - - + MIN ( ALL 69 )
----
132

query I rowsort
SELECT - + 52 * - - 66 + - + ( - + 6 ) AS col0
----
-3426

query I rowsort
SELECT ALL + 83 - + 95 * 61
----
-5712

query I rowsort
SELECT - - 77 - + + 53 AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5265
SELECT + + COUNT( * ) + - 59 * + + 92 * - 27 AS col2
----
146557

skipif mysql # not compatible
query I rowsort label-5265
SELECT + + COUNT ( * ) + - 59 * + + 92 * - 27 AS col2
----
146557

query I rowsort
SELECT - + 2 - + + 40 AS col1
----
-42

query I rowsort
SELECT + - 33 + - 23 + - + 60 AS col0
----
-116

query I rowsort
SELECT - 41 - + + 14 + + 93 AS col0
----
38

query I rowsort
SELECT ALL + + 87 - + 35
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5270
SELECT - SUM( ALL - + 73 ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-5270
SELECT - SUM ( ALL - + 73 ) AS col1
----
73

query I rowsort
SELECT ALL - 0 * - 4
----
0

query II rowsort
SELECT - 15 + 61 - - + 6 AS col0, 51 AS col2
----
52
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5273
SELECT ALL - 91 * - - COUNT( * ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-5273
SELECT ALL - 91 * - - COUNT ( * ) AS col1
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5274
SELECT DISTINCT - 18 * + CAST( - - 47 AS SIGNED )
----
-846

skipif mysql # not compatible
query I rowsort label-5274
SELECT DISTINCT - 18 * + CAST ( - - 47 AS INTEGER )
----
-846

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5275
SELECT ALL CAST( MIN( + ( + 72 ) ) AS SIGNED ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-5275
SELECT ALL CAST ( MIN ( + ( + 72 ) ) AS INTEGER ) AS col1
----
72

query I rowsort
SELECT - 67 + - 45
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-5277
SELECT ALL - COUNT( * ) * - 34
----
34

skipif mysql # not compatible
query I rowsort label-5277
SELECT ALL - COUNT ( * ) * - 34
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5278
SELECT DISTINCT MIN( + - 97 ) DIV + 36 col1, 45 * + - 89 - 63 + + MIN( DISTINCT + CAST( NULL AS SIGNED ) ) * 34 DIV - CASE + 38 WHEN + + 45 THEN - - ( + 38 ) END DIV + 1 + - 37
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-5278
SELECT DISTINCT MIN ( + - 97 ) / + 36 col1, 45 * + - 89 - 63 + + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) * 34 / - CASE + 38 WHEN + + 45 THEN - - ( + 38 ) END / + 1 + - 37
----
-2
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5279
SELECT ALL + CAST( - 89 AS SIGNED )
----
-89

skipif mysql # not compatible
query I rowsort label-5279
SELECT ALL + CAST ( - 89 AS INTEGER )
----
-89

query I rowsort
SELECT - 31 * 35 * + 94
----
-101990

onlyif mysql # DIV for integer division: 
query I rowsort label-5281
SELECT + 54 DIV - - 55 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5281
SELECT + 54 / - - 55 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-5282
SELECT DISTINCT + 93 DIV - + NULLIF ( + 3, - 50 * - 21 * 99 + - - ( 20 ) + + 24 ) + ( + + COUNT( CAST( 52 AS DECIMAL ) ) ) * - 92 AS col1
----
-123

skipif mysql # not compatible
query I rowsort label-5282
SELECT DISTINCT + 93 / - + NULLIF ( + 3, - 50 * - 21 * 99 + - - ( 20 ) + + 24 ) + ( + + COUNT ( CAST ( 52 AS REAL ) ) ) * - 92 AS col1
----
-123

query I rowsort
SELECT + 31 * + 6 * + 96 * + + 51
----
910656

onlyif mysql # DIV for integer division: 
query I rowsort label-5284
SELECT ALL + 60 DIV 57 + + 10 * - 0
----
1

skipif mysql # not compatible
query I rowsort label-5284
SELECT ALL + 60 / 57 + + 10 * - 0
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-5285
SELECT ALL - 93 DIV + COUNT( * ) + NULLIF ( + 83, - ( - 60 ) * CAST( + + COUNT( DISTINCT - 50 ) AS DECIMAL ) DIV - MIN( ALL 50 ) * + 45 + - + 91 DIV - - COUNT( * ) + COUNT( * ) ) * + 8 AS col2
----
571

skipif mysql # not compatible
query I rowsort label-5285
SELECT ALL - 93 / + COUNT ( * ) + NULLIF ( + 83, - ( - 60 ) * CAST ( + + COUNT ( DISTINCT - 50 ) AS REAL ) / - MIN ( ALL 50 ) * + 45 + - + 91 / - - COUNT ( * ) + COUNT ( * ) ) * + 8 AS col2
----
571

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5286
SELECT - 19 + + 13 + 85 + - - CAST( - 62 AS SIGNED ) * + + CAST( + 66 AS SIGNED ) AS col1
----
-4013

skipif mysql # not compatible
query I rowsort label-5286
SELECT - 19 + + 13 + 85 + - - CAST ( - 62 AS INTEGER ) * + + CAST ( + 66 AS INTEGER ) AS col1
----
-4013

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT - 95 * - SUM( - 18 ) AS col1
----
-1710

skipif mysql # not compatible
query I rowsort label-5287
SELECT - 95 * - SUM ( - 18 ) AS col1
----
-1710

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5288
SELECT DISTINCT 6 + + + 67 + NULLIF ( + - COUNT( 56 ), + 42 * 88 * - ( + 54 ) * - 54 - - + 52 DIV + 52 * - 92 ) * - COALESCE ( 26, + 10 * - ( ( 73 ) ) ) DIV 91 + 41 + - 83 + - 25 DIV 59 * 8
----
31

skipif mysql # not compatible
query I rowsort label-5288
SELECT DISTINCT 6 + + + 67 + NULLIF ( + - COUNT ( 56 ), + 42 * 88 * - ( + 54 ) * - 54 - - + 52 / + 52 * - 92 ) * - COALESCE ( 26, + 10 * - ( ( 73 ) ) ) / 91 + 41 + - 83 + - 25 / 59 * 8
----
31

query I rowsort
SELECT DISTINCT - 83 * - 91
----
7553

query I rowsort
SELECT 25 - - 11
----
36

query II rowsort
SELECT DISTINCT - 47 col1, 99 * - 38
----
-47
-3762

onlyif mysql # aggregate syntax: 
query I rowsort label-5292
SELECT ALL MAX( 59 ) + - ( 39 ) + + 31 * - + 91 AS col0
----
-2801

skipif mysql # not compatible
query I rowsort label-5292
SELECT ALL MAX ( 59 ) + - ( 39 ) + + 31 * - + 91 AS col0
----
-2801

query I rowsort
SELECT + 35 + - 70
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5294
SELECT ALL + - 23 - - + 43 DIV + - SUM( ALL + 98 ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-5294
SELECT ALL + - 23 - - + 43 / + - SUM ( ALL + 98 ) AS col1
----
-23

query I rowsort
SELECT ALL - 3 * + + COALESCE ( + 2, 17 ) AS col1
----
-6

query I rowsort
SELECT ALL - 87 - + ( - CASE - 26 WHEN + 13 THEN + 61 END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5297
SELECT DISTINCT 54 DIV - 48
----
-1

skipif mysql # not compatible
query I rowsort label-5297
SELECT DISTINCT 54 / - 48
----
-1

query I rowsort
SELECT - 98 + + 56
----
-42

query I rowsort
SELECT 36 * 71
----
2556

query I rowsort
SELECT 67 + ( - 39 ) + 58
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5301
SELECT - MAX( + + 56 ) DIV + CAST( + + 64 AS SIGNED ) + + 69 * + - 77 * + - COUNT( * )
----
5313

skipif mysql # not compatible
query I rowsort label-5301
SELECT - MAX ( + + 56 ) / + CAST ( + + 64 AS INTEGER ) + + 69 * + - 77 * + - COUNT ( * )
----
5313

onlyif mysql # aggregate syntax: 
query II rowsort label-5302
SELECT + 64 * - 91 * - 11 * + - 90 AS col2, - COUNT( * ) AS col2
----
-5765760
-1

skipif mysql # not compatible
query II rowsort label-5302
SELECT + 64 * - 91 * - 11 * + - 90 AS col2, - COUNT ( * ) AS col2
----
-5765760
-1

query I rowsort
SELECT + 34 * + 32
----
1088

onlyif mysql # DIV for integer division: 
query I rowsort label-5304
SELECT 59 + - - 40 + + COALESCE ( - 53, - ( - - 59 ) DIV + - 3 ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-5304
SELECT 59 + - - 40 + + COALESCE ( - 53, - ( - - 59 ) / + - 3 ) AS col2
----
46

query I rowsort
SELECT ( - - CASE 99 WHEN + 97 + - 87 * + 17 * - - 36 * + 26 THEN + + 6 * - + 42 WHEN 44 THEN - 84 + + 72 / - 54 ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT ALL 97 * + MAX( DISTINCT + 70 ) AS col2
----
6790

skipif mysql # not compatible
query I rowsort label-5306
SELECT ALL 97 * + MAX ( DISTINCT + 70 ) AS col2
----
6790

onlyif mysql # aggregate syntax: 
query II rowsort label-5307
SELECT 7 * COUNT( * ), 23 AS col0
----
7
23

skipif mysql # not compatible
query II rowsort label-5307
SELECT 7 * COUNT ( * ), 23 AS col0
----
7
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5308
SELECT 19 * SUM( + ( ( + 58 ) ) ) AS col0
----
1102

skipif mysql # not compatible
query I rowsort label-5308
SELECT 19 * SUM ( + ( ( + 58 ) ) ) AS col0
----
1102

query I rowsort
SELECT 90 - + 70 * + - ( - 37 ) - - + 55 AS col2
----
-2445

query I rowsort
SELECT 42 + - 89 + - + 53
----
-100

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5311
SELECT DISTINCT + COALESCE ( + + 58, - + 49 ) + + 26 AS col1, 14 * - 63 * - 75 + - MIN( ALL + 32 ) - 96 - + NULLIF ( - - 76, + + 91 ) DIV - 92
----
84
66022

skipif mysql # not compatible
query II rowsort label-5311
SELECT DISTINCT + COALESCE ( + + 58, - + 49 ) + + 26 AS col1, 14 * - 63 * - 75 + - MIN ( ALL + 32 ) - 96 - + NULLIF ( - - 76, + + 91 ) / - 92
----
84
66022

query I rowsort
SELECT ALL - 69 * + 70
----
-4830

query I rowsort
SELECT DISTINCT - ( - + 53 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT 69 / - CASE + 40 WHEN + COUNT( * ) * - 45 THEN 30 / + - 9 * COUNT( * ) END / + - COUNT( * ) - 78 * 1 / + 66 + + + SUM( 64 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5314
SELECT 69 / - CASE + 40 WHEN + COUNT ( * ) * - 45 THEN 30 / + - 9 * COUNT ( * ) END / + - COUNT ( * ) - 78 * 1 / + 66 + + + SUM ( 64 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5315
SELECT 35 - + - COUNT( * ) AS col2, - 26
----
36
-26

skipif mysql # not compatible
query II rowsort label-5315
SELECT 35 - + - COUNT ( * ) AS col2, - 26
----
36
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-5316
SELECT DISTINCT - 79 + + - COUNT( * ), 16 AS col1
----
-80
16

skipif mysql # not compatible
query II rowsort label-5316
SELECT DISTINCT - 79 + + - COUNT ( * ), 16 AS col1
----
-80
16

query I rowsort
SELECT DISTINCT + 24 + 33 + 40 AS col0
----
97

query II rowsort
SELECT DISTINCT + 52 * + - 17 col0, + 13 - - 96 AS col1
----
-884
109

query I rowsort
SELECT 22 * + + 69 * - 97 AS col0
----
-147246

onlyif mysql # DIV for integer division: 
query I rowsort label-5320
SELECT - 0 DIV + 19 + - 50
----
-50

skipif mysql # not compatible
query I rowsort label-5320
SELECT - 0 / + 19 + - 50
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5321
SELECT ALL - CASE - 75 WHEN + + MIN( ALL - 16 ) + COUNT( * ) THEN 17 * + AVG ( 22 ) WHEN + MAX( - 51 ) THEN - 94 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5321
SELECT ALL - CASE - 75 WHEN + + MIN ( ALL - 16 ) + COUNT ( * ) THEN 17 * + AVG ( 22 ) WHEN + MAX ( - 51 ) THEN - 94 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5322
SELECT DISTINCT - 79 + - - 69 * COUNT( * ) * SUM( - 70 ) * - COUNT( ALL + 27 ) * + 95 AS col1
----
458771

skipif mysql # not compatible
query I rowsort label-5322
SELECT DISTINCT - 79 + - - 69 * COUNT ( * ) * SUM ( - 70 ) * - COUNT ( ALL + 27 ) * + 95 AS col1
----
458771

query I rowsort
SELECT ALL + 98 + - - 87
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT DISTINCT - - MAX( + 33 )
----
33

skipif mysql # not compatible
query I rowsort label-5324
SELECT DISTINCT - - MAX ( + 33 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5325
SELECT NULLIF ( 83, - 30 * + MIN( ALL 0 ) ) * + 48 AS col1
----
3984

skipif mysql # not compatible
query I rowsort label-5325
SELECT NULLIF ( 83, - 30 * + MIN ( ALL 0 ) ) * + 48 AS col1
----
3984

query I rowsort
SELECT ALL - 96 - + 48 + 51 AS col0
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5327
SELECT DISTINCT + CAST( - 33 AS SIGNED ) * 85
----
-2805

skipif mysql # not compatible
query I rowsort label-5327
SELECT DISTINCT + CAST ( - 33 AS INTEGER ) * 85
----
-2805

query I rowsort
SELECT ALL 99 - - - 4 + + + 7 * - 4 * + 52 + - 75
----
-1436

query II rowsort
SELECT ALL - 46 * - 21 * + 68 * + 92 AS col2, + 99
----
6043296
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5330
SELECT + 12 * - 88 + 33 DIV - 22 + - SUM( DISTINCT 80 ) * - 76
----
5023

skipif mysql # not compatible
query I rowsort label-5330
SELECT + 12 * - 88 + 33 / - 22 + - SUM ( DISTINCT 80 ) * - 76
----
5023

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5331
SELECT - 40 * - - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5331
SELECT - 40 * - - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5332
SELECT + COALESCE ( - + MAX( DISTINCT + 88 ), ( + + COUNT( + + 3 ) ) / 60 * + 61 ) - - - CAST( NULL AS SIGNED ) * + - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-5332
SELECT + COALESCE ( - + MAX ( DISTINCT + 88 ), ( + + COUNT ( + + 3 ) ) / 60 * + 61 ) - - - CAST ( NULL AS INTEGER ) * + - 66
----
NULL

query II rowsort
SELECT DISTINCT + 53 * - 89 * ( - 15 ), 39 AS col1
----
70755
39

query I rowsort
SELECT ALL + NULLIF ( + 6, + 86 ) col0
----
6

query I rowsort
SELECT DISTINCT - 98 * + - 16 AS col1
----
1568

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5336
SELECT DISTINCT 28 AS col1, COALESCE ( - - 58, CAST( - - 58 AS SIGNED ) DIV + + 59 )
----
28
58

skipif mysql # not compatible
query II rowsort label-5336
SELECT DISTINCT 28 AS col1, COALESCE ( - - 58, CAST ( - - 58 AS INTEGER ) / + + 59 )
----
28
58

query I rowsort
SELECT 0 + - 8 + - 71
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT COUNT( * ) - MIN( DISTINCT + - 13 )
----
14

skipif mysql # not compatible
query I rowsort label-5338
SELECT COUNT ( * ) - MIN ( DISTINCT + - 13 )
----
14

query II rowsort
SELECT ALL 37 AS col1, + 30
----
37
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5340
SELECT ALL CAST( NULL AS SIGNED ) + + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-5340
SELECT ALL CAST ( NULL AS INTEGER ) + + 24
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5341
SELECT ALL CAST( NULL AS SIGNED ) + + 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5341
SELECT ALL CAST ( NULL AS INTEGER ) + + 98 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5342
SELECT DISTINCT COALESCE ( - 44, - ( + + MIN( + 92 ) ) ) + + ( + 82 ) + + 71 * + 21 * 67 AS col2
----
99935

skipif mysql # not compatible
query I rowsort label-5342
SELECT DISTINCT COALESCE ( - 44, - ( + + MIN ( + 92 ) ) ) + + ( + 82 ) + + 71 * + 21 * 67 AS col2
----
99935

query I rowsort
SELECT ALL 72 + - 16 AS col1
----
56

query I rowsort
SELECT 35 + - 15 * + ( + 98 ) AS col0
----
-1435

query I rowsort
SELECT ALL 84 + + 93 - + - 56 AS col2
----
233

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5346
SELECT DISTINCT COUNT( * ) * + + ( - + ( - - 38 ) ) DIV + 97, 3 - - - CASE - + 63 WHEN 1 * + CASE - 21 WHEN - + 39 + - COUNT( * ) + MIN( ALL - 53 ) THEN NULL WHEN - 98 + - 67 THEN + + 0 END + - 0 THEN + 38 ELSE NULL END AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-5346
SELECT DISTINCT COUNT ( * ) * + + ( - + ( - - 38 ) ) / + 97, 3 - - - CASE - + 63 WHEN 1 * + CASE - 21 WHEN - + 39 + - COUNT ( * ) + MIN ( ALL - 53 ) THEN NULL WHEN - 98 + - 67 THEN + + 0 END + - 0 THEN + 38 ELSE NULL END AS col1
----
0
NULL

query I rowsort
SELECT + 54 + - 69 AS col2
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-5348
SELECT ALL 22 * - 77 * + 8 + 82 - + COUNT( * ) + 71 * + 42 * - 82 AS col1, 9 + + 34 AS col2
----
-257995
43

skipif mysql # not compatible
query II rowsort label-5348
SELECT ALL 22 * - 77 * + 8 + 82 - + COUNT ( * ) + 71 * + 42 * - 82 AS col1, 9 + + 34 AS col2
----
-257995
43

query II rowsort
SELECT + 83 + ( + 39 ) AS col2, - NULLIF ( - - 78, - + 42 )
----
122
-78

query I rowsort
SELECT CASE + - AVG ( + + ( 72 ) ) WHEN + 69 THEN + 2 WHEN - 20 - + 8 THEN + + 69 - 15 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5351
SELECT NULLIF ( - 47, 65 ), + COUNT( * ) AS col1
----
-47
1

skipif mysql # not compatible
query II rowsort label-5351
SELECT NULLIF ( - 47, 65 ), + COUNT ( * ) AS col1
----
-47
1

query I rowsort
SELECT 66 * + ( - + 58 ) + - 96 col0
----
-3924

query I rowsort
SELECT + 46 * 7 + 73
----
395

query I rowsort
SELECT 11 * + 93 + + 81 - - - 46 + - - 40 col0
----
1098

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT ALL 65 * - 6 * - 62 - - 53 + - MAX( DISTINCT + + 24 ) * 70 * - ( 1 )
----
25913

skipif mysql # not compatible
query I rowsort label-5355
SELECT ALL 65 * - 6 * - 62 - - 53 + - MAX ( DISTINCT + + 24 ) * 70 * - ( 1 )
----
25913

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT + COALESCE ( + 30, + SUM( ALL + - 14 ) )
----
30

skipif mysql # not compatible
query I rowsort label-5356
SELECT + COALESCE ( + 30, + SUM ( ALL + - 14 ) )
----
30

query I rowsort
SELECT DISTINCT - - 44 * + - 21 - - ( - 88 )
----
-1012

onlyif mysql # aggregate syntax: 
query I rowsort label-5358
SELECT ALL + + 60 * + COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-5358
SELECT ALL + + 60 * + COUNT ( * )
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5359
SELECT - 30 + - 34 + 2 * 44 DIV - COUNT( * ) col2, - ( + 17 ) AS col2
----
-152
-17

skipif mysql # not compatible
query II rowsort label-5359
SELECT - 30 + - 34 + 2 * 44 / - COUNT ( * ) col2, - ( + 17 ) AS col2
----
-152
-17

query I rowsort
SELECT DISTINCT - 9 * - 40
----
360

query I rowsort
SELECT + + 70 + 41
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5362
SELECT + + MAX( DISTINCT CASE 65 WHEN + 49 / 95 * + 56 THEN NULL WHEN + + 45 THEN 70 ELSE - + 70 END ) * 79 * - + 52 + + - CASE 90 WHEN - - ( CAST( + 82 AS SIGNED ) ) THEN 11 WHEN 40 THEN - 39 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5362
SELECT + + MAX ( DISTINCT CASE 65 WHEN + 49 / 95 * + 56 THEN NULL WHEN + + 45 THEN 70 ELSE - + 70 END ) * 79 * - + 52 + + - CASE 90 WHEN - - ( CAST ( + 82 AS INTEGER ) ) THEN 11 WHEN 40 THEN - 39 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5363
SELECT - CAST( - COUNT( * ) AS SIGNED ) * - COUNT( * ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5363
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) * - COUNT ( * ) + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + ( ( 57 ) )
----
57

query I rowsort
SELECT - + 20 * + + 6
----
-120

query I rowsort
SELECT - 33 + - ( + - 17 )
----
-16

query I rowsort
SELECT - - 46 * + - 89
----
-4094

query I rowsort
SELECT - 60 + 9 * - + 84
----
-816

query I rowsort
SELECT DISTINCT + + 38 + 41 + 1 col2
----
80

query I rowsort
SELECT - 32 * 89 AS col2
----
-2848

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5371
SELECT ALL + COUNT( - - 90 ) + + COALESCE ( + COALESCE ( + 38, + 38 ), + MAX( DISTINCT 34 ), - 42 ) + + SUM( ALL + 38 ) DIV - + 91 * ( - 80 ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-5371
SELECT ALL + COUNT ( - - 90 ) + + COALESCE ( + COALESCE ( + 38, + 38 ), + MAX ( DISTINCT 34 ), - 42 ) + + SUM ( ALL + 38 ) / - + 91 * ( - 80 ) AS col1
----
39

query I rowsort
SELECT DISTINCT ( 61 )
----
61

query I rowsort
SELECT + 14 + - 58 * - 51 AS col1
----
2972

query I rowsort
SELECT - 2 * + 67 * 2
----
-268

onlyif mysql # aggregate syntax: 
query I rowsort label-5375
SELECT ALL + 69 * - SUM( DISTINCT 17 ) AS col1
----
-1173

skipif mysql # not compatible
query I rowsort label-5375
SELECT ALL + 69 * - SUM ( DISTINCT 17 ) AS col1
----
-1173

onlyif mysql # aggregate syntax: 
query II rowsort label-5376
SELECT 55, 21 * - + MAX( DISTINCT 11 ) AS col2
----
55
-231

skipif mysql # not compatible
query II rowsort label-5376
SELECT 55, 21 * - + MAX ( DISTINCT 11 ) AS col2
----
55
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT ALL 66 + + + 46 + + COUNT( * ) AS col2
----
113

skipif mysql # not compatible
query I rowsort label-5377
SELECT ALL 66 + + + 46 + + COUNT ( * ) AS col2
----
113

query I rowsort
SELECT + 72 * + 15
----
1080

query I rowsort
SELECT - 42 - 82
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT - MAX( ALL 83 ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-5380
SELECT - MAX ( ALL 83 ) AS col2
----
-83

query I rowsort
SELECT - 18 + - + 10 * + - 80
----
782

onlyif mysql # DIV for integer division: 
query I rowsort label-5382
SELECT + 24 DIV - 78 * + 64 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5382
SELECT + 24 / - 78 * + 64 AS col2
----
0

query I rowsort
SELECT ALL 30 * 20 AS col1
----
600

query I rowsort
SELECT + 36 * + 58 AS col0
----
2088

query I rowsort
SELECT + 42 + 88 AS col2
----
130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5386
SELECT CAST( + - 42 AS SIGNED ) col1
----
-42

skipif mysql # not compatible
query I rowsort label-5386
SELECT CAST ( + - 42 AS INTEGER ) col1
----
-42

query I rowsort
SELECT ALL 24 * 88 AS col0
----
2112

query I rowsort
SELECT + 19 - 9 AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5389
SELECT DISTINCT + + ( - COUNT( DISTINCT 25 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5389
SELECT DISTINCT + + ( - COUNT ( DISTINCT 25 ) )
----
-1

query II rowsort
SELECT + 30 AS col1, 54 - 20 AS col2
----
30
34

query I rowsort
SELECT + + 35 * 89 + - 25 AS col1
----
3090

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5392
SELECT + - 24 * AVG ( DISTINCT + + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5392
SELECT + - 24 * AVG ( DISTINCT + + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5393
SELECT + - 73 AS col2, NULLIF ( + + 97, + 69 - - 77 / 19 * 16 * COUNT( * ) ) + - 58
----
-73
39

skipif mysql # not compatible
query II rowsort label-5393
SELECT + - 73 AS col2, NULLIF ( + + 97, + 69 - - 77 / 19 * 16 * COUNT ( * ) ) + - 58
----
-73
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5394
SELECT ( + - 67 ) DIV 35 * 46 DIV - COUNT( * ) - + 62 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-5394
SELECT ( + - 67 ) / 35 * 46 / - COUNT ( * ) - + 62 AS col2
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-5395
SELECT ALL + COUNT( * ), + 75 + + + 44 + - 43 AS col1
----
1
76

skipif mysql # not compatible
query II rowsort label-5395
SELECT ALL + COUNT ( * ), + 75 + + + 44 + - 43 AS col1
----
1
76

query II rowsort
SELECT DISTINCT + + 43 col0, + 67 + + 48
----
43
115

onlyif mysql # DIV for integer division: 
query I rowsort label-5397
SELECT + 22 DIV + - 76
----
0

skipif mysql # not compatible
query I rowsort label-5397
SELECT + 22 / + - 76
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5398
SELECT ALL - + 40 * + CAST( NULL AS SIGNED ) + - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-5398
SELECT ALL - + 40 * + CAST ( NULL AS INTEGER ) + - 78
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5399
SELECT DISTINCT + COUNT( * ) AS col2, 2 AS col2
----
1
2

skipif mysql # not compatible
query II rowsort label-5399
SELECT DISTINCT + COUNT ( * ) AS col2, 2 AS col2
----
1
2

onlyif mysql # aggregate syntax: 
query III rowsort label-5400
SELECT ALL + 1 AS col0, MIN( DISTINCT + 76 ) * + - 8 col1, + + 29
----
1
-608
29

skipif mysql # not compatible
query III rowsort label-5400
SELECT ALL + 1 AS col0, MIN ( DISTINCT + 76 ) * + - 8 col1, + + 29
----
1
-608
29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5401
SELECT ALL - 87 * 12 * - 83 - - 40 * 52 + - 93, + CAST( - + 70 AS SIGNED ) AS col1
----
88639
-70

skipif mysql # not compatible
query II rowsort label-5401
SELECT ALL - 87 * 12 * - 83 - - 40 * 52 + - 93, + CAST ( - + 70 AS INTEGER ) AS col1
----
88639
-70

query I rowsort
SELECT + - ( - 20 )
----
20

query II rowsort
SELECT 59 col1, 56 col1
----
59
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5404
SELECT + - 23 + + ( - CAST( + 49 AS SIGNED ) )
----
-72

skipif mysql # not compatible
query I rowsort label-5404
SELECT + - 23 + + ( - CAST ( + 49 AS INTEGER ) )
----
-72

query I rowsort
SELECT + NULLIF ( 62, 7 ) AS col2
----
62

query I rowsort
SELECT - 65 * - ( - + 33 ) * + - 18 * - + 80 * + 25 + + 93
----
-77219907

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT - COUNT( * ) * + 45
----
-45

skipif mysql # not compatible
query I rowsort label-5407
SELECT - COUNT ( * ) * + 45
----
-45

query I rowsort
SELECT - 26 - ( 68 ) AS col2
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5409
SELECT DISTINCT CAST( + 15 AS SIGNED ) col0, 27 + - 73 AS col2
----
15
-46

skipif mysql # not compatible
query II rowsort label-5409
SELECT DISTINCT CAST ( + 15 AS INTEGER ) col0, 27 + - 73 AS col2
----
15
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5410
SELECT ALL + 83 * 0 * + + NULLIF ( - COUNT( DISTINCT 40 ), + - CAST( NULL AS SIGNED ) * + 90 ) * + 99 * - 74 * 93 - + 29 + + 20 + + 15 AS col2, - 33
----
6
-33

skipif mysql # not compatible
query II rowsort label-5410
SELECT ALL + 83 * 0 * + + NULLIF ( - COUNT ( DISTINCT 40 ), + - CAST ( NULL AS INTEGER ) * + 90 ) * + 99 * - 74 * 93 - + 29 + + 20 + + 15 AS col2, - 33
----
6
-33

query I rowsort
SELECT - 2 + - + 75 + + - 93 + - 76 + - + 13 AS col0
----
-259

onlyif mysql # aggregate syntax: 
query I rowsort label-5412
SELECT ALL CASE - 21 WHEN + 51 THEN + - NULLIF ( 45, - COUNT( * ) ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5412
SELECT ALL CASE - 21 WHEN + 51 THEN + - NULLIF ( 45, - COUNT ( * ) ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT 44 + + - 44 + + 4 + ( + - 50 ) AS col1
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5414
SELECT ALL - COALESCE ( + + COUNT( * ), + 67 ) - MIN( + + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5414
SELECT ALL - COALESCE ( + + COUNT ( * ), + 67 ) - MIN ( + + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT 34 + - + 81 AS col2
----
-47

query I rowsort
SELECT 70 - - 88 AS col1
----
158

query I rowsort
SELECT DISTINCT - 20 * + NULLIF ( - 73, 43 * + 34 * - - 50 * 19 * - 84 )
----
1460

query II rowsort
SELECT 79 + 5 AS col2, 15
----
84
15

query I rowsort
SELECT 50 * + 33
----
1650

query I rowsort
SELECT 60 + + 19 AS col1
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5421
SELECT DISTINCT - NULLIF ( - 33, - - CAST( + ( - 43 ) AS SIGNED ) ) * - 32 AS col2
----
-1056

skipif mysql # not compatible
query I rowsort label-5421
SELECT DISTINCT - NULLIF ( - 33, - - CAST ( + ( - 43 ) AS INTEGER ) ) * - 32 AS col2
----
-1056

onlyif mysql # aggregate syntax: 
query II rowsort label-5422
SELECT 69 + COUNT( * ), 68 * - - 37 AS col0
----
70
2516

skipif mysql # not compatible
query II rowsort label-5422
SELECT 69 + COUNT ( * ), 68 * - - 37 AS col0
----
70
2516

onlyif mysql # DIV for integer division: 
query I rowsort label-5423
SELECT ALL 76 DIV + + 64
----
1

skipif mysql # not compatible
query I rowsort label-5423
SELECT ALL 76 / + + 64
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT ALL SUM( DISTINCT - - 8 ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-5424
SELECT ALL SUM ( DISTINCT - - 8 ) AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5425
SELECT 52 + + 81 - 99 * - COUNT( * ) AS col2
----
232

skipif mysql # not compatible
query I rowsort label-5425
SELECT 52 + + 81 - 99 * - COUNT ( * ) AS col2
----
232

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5426
SELECT + COUNT( DISTINCT 98 ) * + + 14 DIV MIN( DISTINCT 41 ) DIV + - 62 + + 25 + + + 46
----
71

skipif mysql # not compatible
query I rowsort label-5426
SELECT + COUNT ( DISTINCT 98 ) * + + 14 / MIN ( DISTINCT 41 ) / + - 62 + + 25 + + + 46
----
71

query I rowsort
SELECT - + 98 * 6 + + 12
----
-576

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5428
SELECT - 92 * - + ( - COUNT( DISTINCT + ( 24 ) ) ) - - 38 + - - CAST( NULL AS SIGNED ) * 79 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5428
SELECT - 92 * - + ( - COUNT ( DISTINCT + ( 24 ) ) ) - - 38 + - - CAST ( NULL AS INTEGER ) * 79 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 32 + 7 * + + 72 col1
----
536

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5430
SELECT DISTINCT + COUNT( * ) + + ( - 91 ) DIV - 90 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-5430
SELECT DISTINCT + COUNT ( * ) + + ( - 91 ) / - 90 AS col1
----
2

query II rowsort
SELECT - 17 * + 79 + + + 46 col1, 56 + - 78 col1
----
-1297
-22

query I rowsort
SELECT DISTINCT - 74 + - + 16 * + 80 - 2 * 74 - + 32
----
-1534

query I rowsort
SELECT 46 * + 29
----
1334

onlyif mysql # aggregate syntax: 
query I rowsort label-5434
SELECT + COUNT( * ) * + 17 + 17 - 2
----
32

skipif mysql # not compatible
query I rowsort label-5434
SELECT + COUNT ( * ) * + 17 + 17 - 2
----
32

query I rowsort
SELECT 36 + 0 * - 20 * + 37 AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5436
SELECT - ( - ( - 47 ) ) + - MIN( 13 ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-5436
SELECT - ( - ( - 47 ) ) + - MIN ( 13 ) AS col2
----
-60

query I rowsort
SELECT ALL 61 + + 67
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5438
SELECT - 67 * - MAX( ALL + CAST( NULL AS SIGNED ) ) + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5438
SELECT - 67 * - MAX ( ALL + CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL - 6 - - 28 AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5440
SELECT DISTINCT COUNT( * ) - + 13 + - 73 - + COUNT( * )
----
-86

skipif mysql # not compatible
query I rowsort label-5440
SELECT DISTINCT COUNT ( * ) - + 13 + - 73 - + COUNT ( * )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT 54 * + COUNT( * ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-5441
SELECT 54 * + COUNT ( * ) AS col1
----
54

query I rowsort
SELECT 60 + ( + 31 ) AS col1
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5443
SELECT COALESCE ( 30, + 59 DIV + 31 ) * - 52 * + 69 AS col1
----
-107640

skipif mysql # not compatible
query I rowsort label-5443
SELECT COALESCE ( 30, + 59 / + 31 ) * - 52 * + 69 AS col1
----
-107640

query I rowsort
SELECT 79 + + ( - 46 ) AS col0
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5445
SELECT ALL + 79 DIV - MAX( + 13 )
----
-6

skipif mysql # not compatible
query I rowsort label-5445
SELECT ALL + 79 / - MAX ( + 13 )
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-5446
SELECT DISTINCT + 62 DIV 56 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5446
SELECT DISTINCT + 62 / 56 AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5447
SELECT DISTINCT ( - 74 ) DIV 30
----
-2

skipif mysql # not compatible
query I rowsort label-5447
SELECT DISTINCT ( - 74 ) / 30
----
-2

query II rowsort
SELECT 12 AS col0, 74 + - + 98 + 76 * + - ( 74 ) + 42 AS col2
----
12
-5606

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT ALL MIN( ALL - + 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-5449
SELECT ALL MIN ( ALL - + 9 )
----
-9

query I rowsort
SELECT 85 * - + 32 AS col1
----
-2720

query I rowsort
SELECT 56 * + - 67
----
-3752

query I rowsort
SELECT 36 + + 50 * - 95 + - - 68 AS col1
----
-4646

onlyif mysql # aggregate syntax: 
query II rowsort label-5453
SELECT ALL 4, COUNT( DISTINCT + 82 ) * + - 7 col0
----
4
-7

skipif mysql # not compatible
query II rowsort label-5453
SELECT ALL 4, COUNT ( DISTINCT + 82 ) * + - 7 col0
----
4
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5454
SELECT DISTINCT - COUNT( * ) * + 62 AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-5454
SELECT DISTINCT - COUNT ( * ) * + 62 AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT - 68 + MIN( DISTINCT + 67 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5455
SELECT - 68 + MIN ( DISTINCT + 67 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5456
SELECT ALL - - 49 + - MAX( DISTINCT + 0 )
----
49

skipif mysql # not compatible
query I rowsort label-5456
SELECT ALL - - 49 + - MAX ( DISTINCT + 0 )
----
49

query II rowsort
SELECT ALL - 2 AS col1, + ( + - 64 )
----
-2
-64

query I rowsort
SELECT - ( + + 5 ) AS col0
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5459
SELECT - 90 DIV COUNT( * ) - + + 46 AS col1
----
-136

skipif mysql # not compatible
query I rowsort label-5459
SELECT - 90 / COUNT ( * ) - + + 46 AS col1
----
-136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5460
SELECT ALL + 86 * + ( CAST( NULL AS SIGNED ) ) * + 72 * + + 88 + + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-5460
SELECT ALL + 86 * + ( CAST ( NULL AS INTEGER ) ) * + 72 * + + 88 + + 78
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5461
SELECT ALL + + 55 * + 79 + - + 29 / 76 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5461
SELECT ALL + + 55 * + 79 + - + 29 / 76 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5462
SELECT 15 / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5462
SELECT 15 / + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 49 * + 53 col2
----
2597

onlyif mysql # DIV for integer division: 
query I rowsort label-5464
SELECT DISTINCT + - 31 DIV - 92
----
0

skipif mysql # not compatible
query I rowsort label-5464
SELECT DISTINCT + - 31 / - 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT - 67 - COUNT( * ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-5465
SELECT - 67 - COUNT ( * ) AS col2
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5466
SELECT ALL - 85 * - 65 + - COUNT( * ) * + 71 DIV 84 AS col1
----
5525

skipif mysql # not compatible
query I rowsort label-5466
SELECT ALL - 85 * - 65 + - COUNT ( * ) * + 71 / 84 AS col1
----
5525

onlyif mysql # DIV for integer division: 
query I rowsort label-5467
SELECT DISTINCT + + 64 DIV - 73 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5467
SELECT DISTINCT + + 64 / - 73 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5468
SELECT ALL - + CAST( + 36 AS SIGNED ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-5468
SELECT ALL - + CAST ( + 36 AS INTEGER ) AS col0
----
-36

query I rowsort
SELECT + - 40 * - - 70
----
-2800

query I rowsort
SELECT DISTINCT - 65 * + 58 AS col0
----
-3770

query I rowsort
SELECT ALL + ( + 38 ) - - COALESCE ( - + 30, 33, 56 ) col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5472
SELECT MIN( + - 50 ) * SUM( 97 ) * - ( - 76 ) - + + 84 col0
----
-368684

skipif mysql # not compatible
query I rowsort label-5472
SELECT MIN ( + - 50 ) * SUM ( 97 ) * - ( - 76 ) - + + 84 col0
----
-368684

onlyif mysql # aggregate syntax: 
query I rowsort label-5473
SELECT COUNT( ALL - 84 )
----
1

skipif mysql # not compatible
query I rowsort label-5473
SELECT COUNT ( ALL - 84 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT - 37 * - NULLIF ( - 56, - - ( + + 81 ) ) + - MIN( COALESCE ( - 84, 45 ) )
----
-1988

skipif mysql # not compatible
query I rowsort label-5474
SELECT - 37 * - NULLIF ( - 56, - - ( + + 81 ) ) + - MIN ( COALESCE ( - 84, 45 ) )
----
-1988

onlyif mysql # aggregate syntax: 
query I rowsort label-5475
SELECT COUNT( ALL + 39 )
----
1

skipif mysql # not compatible
query I rowsort label-5475
SELECT COUNT ( ALL + 39 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT - COALESCE ( - + COUNT( * ), + + 42 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5476
SELECT - COALESCE ( - + COUNT ( * ), + + 42 ) AS col2
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5477
SELECT + 37 * + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5477
SELECT + 37 * + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5478
SELECT + MAX( - + 74 ) + - - 83 - 86 AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-5478
SELECT + MAX ( - + 74 ) + - - 83 - 86 AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5479
SELECT + NULLIF ( NULLIF ( + - 87, - COUNT( * ) ), 28 ) + - - NULLIF ( 48, + + 39 ) + - 30 + 27
----
-42

skipif mysql # not compatible
query I rowsort label-5479
SELECT + NULLIF ( NULLIF ( + - 87, - COUNT ( * ) ), 28 ) + - - NULLIF ( 48, + + 39 ) + - 30 + 27
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5480
SELECT + MIN( DISTINCT - 52 ) + + 19
----
-33

skipif mysql # not compatible
query I rowsort label-5480
SELECT + MIN ( DISTINCT - 52 ) + + 19
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5481
SELECT ALL 1 * - - CASE - COUNT( * ) WHEN 6 THEN NULL WHEN - MIN( CAST( NULL AS SIGNED ) ) * + + 69 THEN NULL ELSE - 9 END * - + 61
----
549

skipif mysql # not compatible
query I rowsort label-5481
SELECT ALL 1 * - - CASE - COUNT ( * ) WHEN 6 THEN NULL WHEN - MIN ( CAST ( NULL AS INTEGER ) ) * + + 69 THEN NULL ELSE - 9 END * - + 61
----
549

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5482
SELECT DISTINCT 12 DIV COALESCE ( 12, - + 94, 23 + + COUNT( * ) * - - 97 * 36 + 50 ), COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-5482
SELECT DISTINCT 12 / COALESCE ( 12, - + 94, 23 + + COUNT ( * ) * - - 97 * 36 + 50 ), COUNT ( * )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5483
SELECT + MIN( + - 78 ) + + 50
----
-28

skipif mysql # not compatible
query I rowsort label-5483
SELECT + MIN ( + - 78 ) + + 50
----
-28

query I rowsort
SELECT - ( - 0 ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5485
SELECT ALL 65 * + CAST( NULL AS SIGNED ) * + 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5485
SELECT ALL 65 * + CAST ( NULL AS INTEGER ) * + 8 AS col2
----
NULL

query I rowsort
SELECT + 29 + + 52 AS col0
----
81

query II rowsort
SELECT - 35 - + 52 AS col0, - 33
----
-87
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5488
SELECT - COALESCE ( - COUNT( * ), - 59 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5488
SELECT - COALESCE ( - COUNT ( * ), - 59 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5489
SELECT + NULLIF ( - - CAST( + ( CAST( NULL AS SIGNED ) ) AS SIGNED ), - 96 + - 70 ) + + + 41 + - ( 16 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5489
SELECT + NULLIF ( - - CAST ( + ( CAST ( NULL AS INTEGER ) ) AS INTEGER ), - 96 + - 70 ) + + + 41 + - ( 16 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5490
SELECT - + 48 + COUNT( 39 ) * COUNT( * ) + + - COUNT( * ) + - 6 + + - 61 * - 68 AS col1
----
4094

skipif mysql # not compatible
query I rowsort label-5490
SELECT - + 48 + COUNT ( 39 ) * COUNT ( * ) + + - COUNT ( * ) + - 6 + + - 61 * - 68 AS col1
----
4094

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5491
SELECT - - 31 DIV 63 AS col0, CAST( 71 AS SIGNED )
----
0
71

skipif mysql # not compatible
query II rowsort label-5491
SELECT - - 31 / 63 AS col0, CAST ( 71 AS INTEGER )
----
0
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5492
SELECT + MAX( DISTINCT - + 52 ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-5492
SELECT + MAX ( DISTINCT - + 52 ) AS col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5493
SELECT DISTINCT + SUM( DISTINCT + 45 ) + + 33 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-5493
SELECT DISTINCT + SUM ( DISTINCT + 45 ) + + 33 AS col0
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-5494
SELECT DISTINCT - 85 + - 26 + + ( - 30 ) AS col2, ( MIN( - 63 ) )
----
-141
-63

skipif mysql # not compatible
query II rowsort label-5494
SELECT DISTINCT - 85 + - 26 + + ( - 30 ) AS col2, ( MIN ( - 63 ) )
----
-141
-63

query I rowsort
SELECT DISTINCT + COALESCE ( + + 7, 58 )
----
7

query I rowsort
SELECT - 38 * 59 + + - 13
----
-2255

query I rowsort
SELECT - 46 * + 85 + - 2 + - 20 * - 84 * - 85 AS col1
----
-146712

onlyif mysql # aggregate syntax: 
query I rowsort label-5498
SELECT DISTINCT - 39 / - + CASE COUNT( DISTINCT - 91 ) WHEN + 63 THEN 39 END + + - NULLIF ( COUNT( * ), + - 52 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5498
SELECT DISTINCT - 39 / - + CASE COUNT ( DISTINCT - 91 ) WHEN + 63 THEN 39 END + + - NULLIF ( COUNT ( * ), + - 52 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT + SUM( DISTINCT + 51 )
----
51

skipif mysql # not compatible
query I rowsort label-5499
SELECT + SUM ( DISTINCT + 51 )
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5500
SELECT ALL + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * - 72 + - + 72 - - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-5500
SELECT ALL + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - 72 + - + 72 - - 88
----
NULL

query I rowsort
SELECT - - 86 * - - 50 AS col0
----
4300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5502
SELECT - 27 + - ( + 84 ) * + - 80 AS col1, CAST( NULL AS SIGNED ) * MIN( DISTINCT - 5 )
----
6693
NULL

skipif mysql # not compatible
query II rowsort label-5502
SELECT - 27 + - ( + 84 ) * + - 80 AS col1, CAST ( NULL AS INTEGER ) * MIN ( DISTINCT - 5 )
----
6693
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5503
SELECT ALL 67 DIV + - 59 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5503
SELECT ALL 67 / + - 59 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT NULLIF ( + - 26, + 23 * AVG ( + COALESCE ( 18, - ( - 2 ) ) ) + SUM( DISTINCT - 23 ) + - + 96 )
----
-26

skipif mysql # not compatible
query I rowsort label-5504
SELECT NULLIF ( + - 26, + 23 * AVG ( + COALESCE ( 18, - ( - 2 ) ) ) + SUM ( DISTINCT - 23 ) + - + 96 )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT SUM( + 53 ) * - 11 + + 69 + + NULLIF ( + 81, - 23 ) - + + 95
----
-528

skipif mysql # not compatible
query I rowsort label-5505
SELECT SUM ( + 53 ) * - 11 + + 69 + + NULLIF ( + 81, - 23 ) - + + 95
----
-528

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT - COUNT( * ) * + - 29 col1
----
29

skipif mysql # not compatible
query I rowsort label-5506
SELECT - COUNT ( * ) * + - 29 col1
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5507
SELECT + ( + + 52 ) + - NULLIF ( - 12, 42 ) DIV COUNT( - + 79 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-5507
SELECT + ( + + 52 ) + - NULLIF ( - 12, 42 ) / COUNT ( - + 79 ) AS col1
----
64

query I rowsort
SELECT ALL + 79 * - 89 AS col2
----
-7031

onlyif mysql # DIV for integer division: 
query II rowsort label-5509
SELECT + 39, - 46 DIV + 85 AS col0
----
39
0

skipif mysql # not compatible
query II rowsort label-5509
SELECT + 39, - 46 / + 85 AS col0
----
39
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5510
SELECT DISTINCT 66 * + COUNT( * ) col2
----
66

skipif mysql # not compatible
query I rowsort label-5510
SELECT DISTINCT 66 * + COUNT ( * ) col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT DISTINCT + MAX( 45 )
----
45

skipif mysql # not compatible
query I rowsort label-5511
SELECT DISTINCT + MAX ( 45 )
----
45

query I rowsort
SELECT ALL + 16 * + NULLIF ( - 1, 77 ) col0
----
-16

query I rowsort
SELECT DISTINCT - 62 * 52
----
-3224

query I rowsort
SELECT - COALESCE ( - - ( 72 ), - - 98 + - 64 ) AS col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5515
SELECT - COUNT( * ) * + - 6 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-5515
SELECT - COUNT ( * ) * + - 6 AS col1
----
6

query I rowsort
SELECT + ( + 32 ) + 73 AS col0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-5517
SELECT DISTINCT 59 + + COUNT( * ) + - 4 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-5517
SELECT DISTINCT 59 + + COUNT ( * ) + - 4 AS col1
----
56

query I rowsort
SELECT ALL 18 + - - 57 + - 14 AS col0
----
61

query I rowsort
SELECT + 88 * + 1
----
88

query II rowsort
SELECT DISTINCT + 68 AS col1, ( 88 )
----
68
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5521
SELECT ALL COUNT( ALL 10 ) * - + 77
----
-77

skipif mysql # not compatible
query I rowsort label-5521
SELECT ALL COUNT ( ALL 10 ) * - + 77
----
-77

query I rowsort
SELECT DISTINCT + + 65 + 43 + + 87 + 71
----
266

onlyif mysql # aggregate syntax: 
query I rowsort label-5523
SELECT ALL 16 * + 45 * + + COUNT( DISTINCT - 33 )
----
720

skipif mysql # not compatible
query I rowsort label-5523
SELECT ALL 16 * + 45 * + + COUNT ( DISTINCT - 33 )
----
720

query I rowsort
SELECT + 86 * 20
----
1720

query I rowsort
SELECT ALL 55 + - 15 col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT - - MIN( 25 )
----
25

skipif mysql # not compatible
query I rowsort label-5526
SELECT - - MIN ( 25 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT + + MAX( ALL 70 ) + + + 83 + + + 76 AS col2
----
229

skipif mysql # not compatible
query I rowsort label-5527
SELECT + + MAX ( ALL 70 ) + + + 83 + + + 76 AS col2
----
229

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5528
SELECT - COUNT( * ) + + - CAST( NULL AS SIGNED ) + - - 10 * - + 28 * - 4 + - MAX( DISTINCT 23 ) / 81 - ( 82 ) - + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5528
SELECT - COUNT ( * ) + + - CAST ( NULL AS INTEGER ) + - - 10 * - + 28 * - 4 + - MAX ( DISTINCT 23 ) / 81 - ( 82 ) - + - COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT 1 - ( - 49 ) * + + 26 AS col0
----
1275

onlyif mysql # aggregate syntax: 
query II rowsort label-5530
SELECT ALL NULLIF ( 63, + + 87 ) AS col1, - 99 + NULLIF ( + 90, - 79 ) - + COUNT( * ) AS col2
----
63
-10

skipif mysql # not compatible
query II rowsort label-5530
SELECT ALL NULLIF ( 63, + + 87 ) AS col1, - 99 + NULLIF ( + 90, - 79 ) - + COUNT ( * ) AS col2
----
63
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-5531
SELECT - 43 DIV - 68 - + 65
----
-65

skipif mysql # not compatible
query I rowsort label-5531
SELECT - 43 / - 68 - + 65
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT MIN( ( - + 29 ) ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-5532
SELECT MIN ( ( - + 29 ) ) AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5533
SELECT - CASE + 31 WHEN 37 THEN NULL WHEN - 25 + - 72 THEN - 43 + + 46 END / COUNT( * ) - - + 15 + - 55 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5533
SELECT - CASE + 31 WHEN 37 THEN NULL WHEN - 25 + - 72 THEN - 43 + + 46 END / COUNT ( * ) - - + 15 + - 55 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT + COUNT( * ) * - CASE - + 89 WHEN ( + - 96 ) THEN - + 89 END - - 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5534
SELECT + COUNT ( * ) * - CASE - + 89 WHEN ( + - 96 ) THEN - + 89 END - - 17 AS col0
----
NULL

query I rowsort
SELECT 50 - 54 AS col2
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5536
SELECT + 37 col0, 49 DIV COUNT( * ) + + 85 + + 27 AS col1
----
37
161

skipif mysql # not compatible
query II rowsort label-5536
SELECT + 37 col0, 49 / COUNT ( * ) + + 85 + + 27 AS col1
----
37
161

query II rowsort
SELECT ALL - 95 AS col2, - 14
----
-95
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5538
SELECT 69 * - COUNT( * ) AS col1, + 10 DIV - 14 * 99
----
-69
0

skipif mysql # not compatible
query II rowsort label-5538
SELECT 69 * - COUNT ( * ) AS col1, + 10 / - 14 * 99
----
-69
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5539
SELECT DISTINCT - ( - CASE 51 WHEN CASE - - MIN( DISTINCT + - 0 ) WHEN 8 THEN NULL WHEN - 56 THEN NULL ELSE 63 / + 40 END THEN - 32 + - 53 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5539
SELECT DISTINCT - ( - CASE 51 WHEN CASE - - MIN ( DISTINCT + - 0 ) WHEN 8 THEN NULL WHEN - 56 THEN NULL ELSE 63 / + 40 END THEN - 32 + - 53 END ) AS col0
----
NULL

query I rowsort
SELECT 85 - - + 6
----
91

query I rowsort
SELECT 95 * + ( 14 ) * + - 13 * 18
----
-311220

query I rowsort
SELECT 69 + + 82
----
151

query I rowsort
SELECT ALL + 85 + + 16 AS col0
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-5544
SELECT DISTINCT - COUNT( * ) * - 8 * - 40
----
-320

skipif mysql # not compatible
query I rowsort label-5544
SELECT DISTINCT - COUNT ( * ) * - 8 * - 40
----
-320

query II rowsort
SELECT 23, - 67 col1
----
23
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT 85 + - MIN( ALL 82 ) + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-5546
SELECT 85 + - MIN ( ALL 82 ) + COUNT ( * )
----
4

query II rowsort
SELECT DISTINCT - 13 * - 17 AS col0, 43
----
221
43

query I rowsort
SELECT 11 + + 13 AS col2
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5549
SELECT + CASE WHEN NULL IS NOT NULL THEN - CAST( NULL AS SIGNED ) WHEN NULL IS NOT NULL THEN CASE WHEN NOT + 37 IS NOT NULL THEN - COUNT( * ) * - - 95 + + 90 ELSE - 3 END + + 57 ELSE NULL END + ( - + 15 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5549
SELECT + CASE WHEN NULL IS NOT NULL THEN - CAST ( NULL AS INTEGER ) WHEN NULL IS NOT NULL THEN CASE WHEN NOT + 37 IS NOT NULL THEN - COUNT ( * ) * - - 95 + + 90 ELSE - 3 END + + 57 ELSE NULL END + ( - + 15 )
----
NULL

query I rowsort
SELECT + 79 * + - 14 * - 9 * - 58 * 72 + + 21
----
-41567883

query I rowsort
SELECT ALL - 49 * - 78 * - - 31
----
118482

onlyif mysql # aggregate syntax: 
query I rowsort label-5552
SELECT SUM( + 29 ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-5552
SELECT SUM ( + 29 ) AS col0
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-5553
SELECT 80 + + COALESCE ( + COUNT( * ), 3 ) AS col0, - ( 88 )
----
81
-88

skipif mysql # not compatible
query II rowsort label-5553
SELECT 80 + + COALESCE ( + COUNT ( * ), 3 ) AS col0, - ( 88 )
----
81
-88

query II rowsort
SELECT 39 AS col2, 17 + + 95 AS col2
----
39
112

query I rowsort
SELECT - 20 + - 68
----
-88

query I rowsort
SELECT - 59 * 80 AS col1
----
-4720

onlyif mysql # aggregate syntax: 
query II rowsort label-5557
SELECT 76 col0, COUNT( * )
----
76
1

skipif mysql # not compatible
query II rowsort label-5557
SELECT 76 col0, COUNT ( * )
----
76
1

query I rowsort
SELECT DISTINCT ( 77 ) AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5559
SELECT + 95 * + - 38 + - - 33 + + + CASE + 69 WHEN 25 + + 4 * + 47 * - COUNT( * ) THEN + + ( 89 ) * 98 END + - 74 * - 69 * + MAX( ALL - + 52 ) * + + 99 * + + 45 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5559
SELECT + 95 * + - 38 + - - 33 + + + CASE + 69 WHEN 25 + + 4 * + 47 * - COUNT ( * ) THEN + + ( 89 ) * 98 END + - 74 * - 69 * + MAX ( ALL - + 52 ) * + + 99 * + + 45 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-5560
SELECT + 0 + + 86 col2, - 89 * + 94, 91 * 39 + - MAX( - - 69 ) + 98 AS col1
----
86
-8366
3578

skipif mysql # not compatible
query III rowsort label-5560
SELECT + 0 + + 86 col2, - 89 * + 94, 91 * 39 + - MAX ( - - 69 ) + 98 AS col1
----
86
-8366
3578

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5561
SELECT ALL - NULLIF ( + CAST( + ( + 93 ) AS SIGNED ), - + COUNT( * ) )
----
-93

skipif mysql # not compatible
query I rowsort label-5561
SELECT ALL - NULLIF ( + CAST ( + ( + 93 ) AS INTEGER ), - + COUNT ( * ) )
----
-93

query I rowsort
SELECT - + ( + - 5 ) AS col2
----
5

query II rowsort
SELECT ALL + 26 col2, 92 + 28 AS col2
----
26
120

query I rowsort
SELECT 69 + - + 11 AS col1
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-5565
SELECT 82, SUM( - + 43 ) AS col2
----
82
-43

skipif mysql # not compatible
query II rowsort label-5565
SELECT 82, SUM ( - + 43 ) AS col2
----
82
-43

query I rowsort
SELECT DISTINCT 1 * + + 78 * 99
----
7722

onlyif mysql # aggregate syntax: 
query III rowsort label-5567
SELECT 80 * - 68 AS col1, - 47 col0, - CASE + 96 WHEN - 82 THEN 92 + + - COUNT( * ) WHEN + ( 29 ) THEN + + AVG ( ALL + ( - 56 ) ) END
----
-5440
-47
NULL

skipif mysql # not compatible
query III rowsort label-5567
SELECT 80 * - 68 AS col1, - 47 col0, - CASE + 96 WHEN - 82 THEN 92 + + - COUNT ( * ) WHEN + ( 29 ) THEN + + AVG ( ALL + ( - 56 ) ) END
----
-5440
-47
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5568
SELECT COUNT( DISTINCT - 61 ) AS col2, ( 90 )
----
1
90

skipif mysql # not compatible
query II rowsort label-5568
SELECT COUNT ( DISTINCT - 61 ) AS col2, ( 90 )
----
1
90

query I rowsort
SELECT ( - 38 ) + + 73 + + 57 AS col0
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5570
SELECT ALL CAST( 19 AS SIGNED ) + + 23 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-5570
SELECT ALL CAST ( 19 AS INTEGER ) + + 23 AS col0
----
42

query I rowsort
SELECT ALL - ( + 26 ) AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT DISTINCT 83 + 9 + - - CASE - MIN( - + ( + 91 ) ) WHEN - 8 * - 20 + + 67 + + - COUNT( ALL 7 ) + 81 * + 92 * - COUNT( * ) THEN + 81 ELSE NULL END * + - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-5572
SELECT DISTINCT 83 + 9 + - - CASE - MIN ( - + ( + 91 ) ) WHEN - 8 * - 20 + + 67 + + - COUNT ( ALL 7 ) + 81 * + 92 * - COUNT ( * ) THEN + 81 ELSE NULL END * + - 20
----
NULL

query I rowsort
SELECT 4 + 54
----
58

query I rowsort
SELECT DISTINCT - 44 * - + 16 AS col0
----
704

query I rowsort
SELECT DISTINCT 47 + + 54 + + + 84 AS col2
----
185

query I rowsort
SELECT ALL 82 + + 0 * 47
----
82

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5577
SELECT ALL + - CAST( NULL AS DECIMAL ) - + + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-5577
SELECT ALL + - CAST ( NULL AS REAL ) - + + 44
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5578
SELECT - 7 DIV - 3
----
2

skipif mysql # not compatible
query I rowsort label-5578
SELECT - 7 / - 3
----
2

query I rowsort
SELECT - 77 * - 22 AS col1
----
1694

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5580
SELECT DISTINCT - CASE + CAST( NULL AS SIGNED ) WHEN + - 80 * + 5 / 3 - + 35 + + 93 THEN - 28 * + - 7 * + - 94 + - 62 * - 20 * - ( - + COUNT( * ) ) * + 6 + 18 + 48 WHEN 6 THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5580
SELECT DISTINCT - CASE + CAST ( NULL AS INTEGER ) WHEN + - 80 * + 5 / 3 - + 35 + + 93 THEN - 28 * + - 7 * + - 94 + - 62 * - 20 * - ( - + COUNT ( * ) ) * + 6 + 18 + 48 WHEN 6 THEN NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT COUNT( * ) * 54 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-5581
SELECT COUNT ( * ) * 54 AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT DISTINCT - + COUNT( * ) * - 33 * - + 13 - + 70 * + 98 * 95 AS col2
----
-652129

skipif mysql # not compatible
query I rowsort label-5582
SELECT DISTINCT - + COUNT ( * ) * - 33 * - + 13 - + 70 * + 98 * 95 AS col2
----
-652129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5583
SELECT DISTINCT - + 6 / - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5583
SELECT DISTINCT - + 6 / - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5584
SELECT DISTINCT + - 10 * + + ( + - COUNT( * ) ) + - + 2 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-5584
SELECT DISTINCT + - 10 * + + ( + - COUNT ( * ) ) + - + 2 AS col0
----
8

query I rowsort
SELECT - 79 * - 94 * - 41
----
-304466

query I rowsort
SELECT - 93 * 78 * - 79 + - 7 AS col2
----
573059

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5587
SELECT ALL - ( 39 ) * - + 99 + NULLIF ( - + 79, + MIN( + 28 ) ) * + CAST( NULL AS SIGNED ) * + - 38 * 60 + - - 34 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5587
SELECT ALL - ( 39 ) * - + 99 + NULLIF ( - + 79, + MIN ( + 28 ) ) * + CAST ( NULL AS INTEGER ) * + - 38 * 60 + - - 34 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5588
SELECT - 50 + - 97 * + COUNT( * ) * - - ( + + 59 )
----
-5773

skipif mysql # not compatible
query I rowsort label-5588
SELECT - 50 + - 97 * + COUNT ( * ) * - - ( + + 59 )
----
-5773

query I rowsort
SELECT - + 46 * + + 12
----
-552

query I rowsort
SELECT + + 41 + + CASE - AVG ( - + 24 ) WHEN + 56 THEN NULL WHEN + 64 THEN + NULLIF ( - 52, - 58 * 57 ) WHEN - 28 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT ALL 8 + COUNT( * ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-5591
SELECT ALL 8 + COUNT ( * ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5592
SELECT DISTINCT CASE - + 16 WHEN 57 THEN - COUNT( * ) WHEN - 55 THEN - 41 * 84 + + 63 + + - 80 + 64 * 94 * + 82 * - 52 WHEN - - 93 THEN NULL WHEN + 93 THEN NULL ELSE + 28 END AS col0
----
28

skipif mysql # not compatible
query I rowsort label-5592
SELECT DISTINCT CASE - + 16 WHEN 57 THEN - COUNT ( * ) WHEN - 55 THEN - 41 * 84 + + 63 + + - 80 + 64 * 94 * + 82 * - 52 WHEN - - 93 THEN NULL WHEN + 93 THEN NULL ELSE + 28 END AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5593
SELECT ALL COALESCE ( + 3, - + COALESCE ( 7, - - 82, - COALESCE ( - 77, SUM( DISTINCT - - 13 ) + - 43 + - - 53 ) * + 50 + - ( - 65 ) ), + - 98 )
----
3

skipif mysql # not compatible
query I rowsort label-5593
SELECT ALL COALESCE ( + 3, - + COALESCE ( 7, - - 82, - COALESCE ( - 77, SUM ( DISTINCT - - 13 ) + - 43 + - - 53 ) * + 50 + - ( - 65 ) ), + - 98 )
----
3

query I rowsort
SELECT + 90 * + 5 * - 20 AS col2
----
-9000

onlyif mysql # aggregate syntax: 
query I rowsort label-5595
SELECT DISTINCT 52 * 81 + - + 99 + - + 72 + + COUNT( * ) + - + 93
----
3949

skipif mysql # not compatible
query I rowsort label-5595
SELECT DISTINCT 52 * 81 + - + 99 + - + 72 + + COUNT ( * ) + - + 93
----
3949

query I rowsort
SELECT ALL 37 * 83 AS col2
----
3071

query I rowsort
SELECT ALL 27 * + + 12 + + - COALESCE ( + + 90, + - 82 + + 40 + 36 )
----
234

onlyif mysql # aggregate syntax: 
query I rowsort label-5598
SELECT - 54 * MIN( ALL - 69 ) AS col2
----
3726

skipif mysql # not compatible
query I rowsort label-5598
SELECT - 54 * MIN ( ALL - 69 ) AS col2
----
3726

onlyif mysql # aggregate syntax: 
query I rowsort label-5599
SELECT + COUNT( ALL 52 ) * - + 38 AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-5599
SELECT + COUNT ( ALL 52 ) * - + 38 AS col1
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5600
SELECT ALL COUNT( ALL 14 ) * - - 13 DIV - - 52 + 50 + + 32 + + 69 + - 83 AS col1, + 76 * NULLIF ( + COALESCE ( + COALESCE ( - + 26, - - 58 + - - 98 - ( - - 82 ), + + 62 + 82 + + 94 ), CAST( NULL AS SIGNED ), + 94 * 52 ), 36 )
----
68
-1976

skipif mysql # not compatible
query II rowsort label-5600
SELECT ALL COUNT ( ALL 14 ) * - - 13 / - - 52 + 50 + + 32 + + 69 + - 83 AS col1, + 76 * NULLIF ( + COALESCE ( + COALESCE ( - + 26, - - 58 + - - 98 - ( - - 82 ), + + 62 + 82 + + 94 ), CAST ( NULL AS INTEGER ), + 94 * 52 ), 36 )
----
68
-1976

onlyif mysql # aggregate syntax: 
query I rowsort label-5601
SELECT ALL 1 * - CASE + - 70 WHEN - MIN( + 11 ) THEN NULL WHEN 30 THEN + 54 ELSE - - 20 END
----
-20

skipif mysql # not compatible
query I rowsort label-5601
SELECT ALL 1 * - CASE + - 70 WHEN - MIN ( + 11 ) THEN NULL WHEN 30 THEN + 54 ELSE - - 20 END
----
-20

query I rowsort
SELECT + 1 - - 70 AS col0
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-5603
SELECT ALL 6 * - 71 * - COALESCE ( - + 91, 35 DIV - 85 + + - 44 ) AS col0
----
-38766

skipif mysql # not compatible
query I rowsort label-5603
SELECT ALL 6 * - 71 * - COALESCE ( - + 91, 35 / - 85 + + - 44 ) AS col0
----
-38766

query II rowsort
SELECT ALL + 24 AS col0, 96
----
24
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5605
SELECT + ( + CAST( + - 27 AS SIGNED ) ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-5605
SELECT + ( + CAST ( + - 27 AS INTEGER ) ) AS col1
----
-27

query I rowsort
SELECT + 29 * - 82 AS col1
----
-2378

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5607
SELECT ALL COUNT( * ) DIV - 50
----
0

skipif mysql # not compatible
query I rowsort label-5607
SELECT ALL COUNT ( * ) / - 50
----
0

query I rowsort
SELECT + ( - - 34 ) + 93 + - 95
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-5609
SELECT 68 * + 95 + - + 75 AS col0, COUNT( * ) * - 60 - + - 84
----
6385
24

skipif mysql # not compatible
query II rowsort label-5609
SELECT 68 * + 95 + - + 75 AS col0, COUNT ( * ) * - 60 - + - 84
----
6385
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT - - 63 - + - 12 + + SUM( - 47 ) - - MAX( - 39 ) * - 31 * + 47 AS col0
----
56851

skipif mysql # not compatible
query I rowsort label-5610
SELECT - - 63 - + - 12 + + SUM ( - 47 ) - - MAX ( - 39 ) * - 31 * + 47 AS col0
----
56851

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT ALL + MIN( DISTINCT + 53 )
----
53

skipif mysql # not compatible
query I rowsort label-5611
SELECT ALL + MIN ( DISTINCT + 53 )
----
53

query I rowsort
SELECT + + 52 * - - ( 82 ) AS col1
----
4264

query II rowsort
SELECT + - 19 * - ( 10 ) col1, 20
----
190
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5614
SELECT ALL - COUNT( * ) * 51 * 70 - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5614
SELECT ALL - COUNT ( * ) * 51 * 70 - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5615
SELECT ALL 11 * - + ( 63 ) / CASE + CASE + 28 WHEN + 25 - 69 THEN + 67 WHEN ( - 81 ) THEN NULL END WHEN + 87 THEN + + 32 ELSE NULL END + + - 29 + - ( - + 13 ) + + 39 + + - NULLIF ( + + 30, CASE ( + 77 ) WHEN COUNT( * ) THEN - 92 + - AVG ( ALL - 42 ) ELSE NULL END + ( - + 27 ) ) * + + COUNT( * ) + - 57 * - + 64 / 49 + + - ( - COUNT( * ) ) - 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5615
SELECT ALL 11 * - + ( 63 ) / CASE + CASE + 28 WHEN + 25 - 69 THEN + 67 WHEN ( - 81 ) THEN NULL END WHEN + 87 THEN + + 32 ELSE NULL END + + - 29 + - ( - + 13 ) + + 39 + + - NULLIF ( + + 30, CASE ( + 77 ) WHEN COUNT ( * ) THEN - 92 + - AVG ( ALL - 42 ) ELSE NULL END + ( - + 27 ) ) * + + COUNT ( * ) + - 57 * - + 64 / 49 + + - ( - COUNT ( * ) ) - 6 AS col0
----
NULL

query I rowsort
SELECT ALL + ( - + 29 )
----
-29

query II rowsort
SELECT ALL - 30 AS col0, + 10 * + + 94
----
-30
940

onlyif mysql # aggregate syntax: 
query I rowsort label-5618
SELECT + COUNT( * ) * 42 * + COUNT( * ) + - COALESCE ( 71, 84 * 24 ) + 65
----
36

skipif mysql # not compatible
query I rowsort label-5618
SELECT + COUNT ( * ) * 42 * + COUNT ( * ) + - COALESCE ( 71, 84 * 24 ) + 65
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5619
SELECT - 77 * + COUNT( + 45 ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-5619
SELECT - 77 * + COUNT ( + 45 ) AS col0
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-5620
SELECT - 82 + + 20 * - COUNT( * ) AS col1, + 83
----
-102
83

skipif mysql # not compatible
query II rowsort label-5620
SELECT - 82 + + 20 * - COUNT ( * ) AS col1, + 83
----
-102
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5621
SELECT MIN( ALL 61 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-5621
SELECT MIN ( ALL 61 ) AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5622
SELECT - + 87 + - COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-5622
SELECT - + 87 + - COUNT ( * )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5623
SELECT ALL MIN( DISTINCT + 26 )
----
26

skipif mysql # not compatible
query I rowsort label-5623
SELECT ALL MIN ( DISTINCT + 26 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5624
SELECT - - 70 * MIN( - ( - + 34 ) )
----
2380

skipif mysql # not compatible
query I rowsort label-5624
SELECT - - 70 * MIN ( - ( - + 34 ) )
----
2380

query I rowsort
SELECT - - 12 + 59
----
71

query I rowsort
SELECT ALL + - 53 + 95
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-5627
SELECT ALL - 89 + + COUNT( * ) col1, 75 + - 18 * + 71
----
-88
-1203

skipif mysql # not compatible
query II rowsort label-5627
SELECT ALL - 89 + + COUNT ( * ) col1, 75 + - 18 * + 71
----
-88
-1203

onlyif mysql # aggregate syntax: 
query I rowsort label-5628
SELECT - SUM( - 42 )
----
42

skipif mysql # not compatible
query I rowsort label-5628
SELECT - SUM ( - 42 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5629
SELECT - COUNT( DISTINCT - + 37 ) + - 74 AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-5629
SELECT - COUNT ( DISTINCT - + 37 ) + - 74 AS col0
----
-75

query I rowsort
SELECT DISTINCT ( + + 59 )
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5631
SELECT COUNT( - + 32 ) DIV - 35 * - - 65 - 67 - + 9 * - - 35 * + - 92
----
28913

skipif mysql # not compatible
query I rowsort label-5631
SELECT COUNT ( - + 32 ) / - 35 * - - 65 - 67 - + 9 * - - 35 * + - 92
----
28913

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5632
SELECT - 77 + - 25, + COUNT( * ) DIV + 77 AS col0
----
-102
0

skipif mysql # not compatible
query II rowsort label-5632
SELECT - 77 + - 25, + COUNT ( * ) / + 77 AS col0
----
-102
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT ALL + COALESCE ( + + CASE + - 86 WHEN 33 THEN NULL ELSE COUNT( * ) * + 16 END, - 36 )
----
16

skipif mysql # not compatible
query I rowsort label-5633
SELECT ALL + COALESCE ( + + CASE + - 86 WHEN 33 THEN NULL ELSE COUNT ( * ) * + 16 END, - 36 )
----
16

query I rowsort
SELECT + 6 * ( - + 32 )
----
-192

query I rowsort
SELECT ( + - 84 ) AS col2
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5636
SELECT - 84 * + + 66 * + ( - 13 ) * - + CAST( NULL AS SIGNED ) + - + 26 + 99 AS col0, - ( - + SUM( + 40 ) )
----
NULL
40

skipif mysql # not compatible
query II rowsort label-5636
SELECT - 84 * + + 66 * + ( - 13 ) * - + CAST ( NULL AS INTEGER ) + - + 26 + 99 AS col0, - ( - + SUM ( + 40 ) )
----
NULL
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5637
SELECT DISTINCT 38 * - 28 * + COUNT( * ) + + - 53 AS col2
----
-1117

skipif mysql # not compatible
query I rowsort label-5637
SELECT DISTINCT 38 * - 28 * + COUNT ( * ) + + - 53 AS col2
----
-1117

query I rowsort
SELECT ALL + 26 * - + 94 + + 59
----
-2385

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5639
SELECT ALL - + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ), - ( 29 ) + - COUNT( * ) AS col0
----
NULL
-30

skipif mysql # not compatible
query II rowsort label-5639
SELECT ALL - + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ), - ( 29 ) + - COUNT ( * ) AS col0
----
NULL
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-5640
SELECT ALL 83 DIV - + 67
----
-1

skipif mysql # not compatible
query I rowsort label-5640
SELECT ALL 83 / - + 67
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5641
SELECT + CAST( NULL AS DECIMAL ) - - CASE - 74 WHEN + 80 THEN NULL ELSE + - 90 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5641
SELECT + CAST ( NULL AS REAL ) - - CASE - 74 WHEN + 80 THEN NULL ELSE + - 90 END AS col1
----
NULL

query I rowsort
SELECT - 14 * + 99 * + 25
----
-34650

onlyif mysql # aggregate syntax: 
query I rowsort label-5643
SELECT DISTINCT + COALESCE ( - 71, CASE + + 0 WHEN - 18 THEN - - COUNT( * ) - + 13 END )
----
-71

skipif mysql # not compatible
query I rowsort label-5643
SELECT DISTINCT + COALESCE ( - 71, CASE + + 0 WHEN - 18 THEN - - COUNT ( * ) - + 13 END )
----
-71

query I rowsort
SELECT ( + 9 ) * - 87
----
-783

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5645
SELECT CAST( NULL AS SIGNED ) * - 66 + - + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-5645
SELECT CAST ( NULL AS INTEGER ) * - 66 + - + 97
----
NULL

query I rowsort
SELECT ALL 85 + + - 30
----
55

query I rowsort
SELECT DISTINCT - 33 + - ( + - 4 ) AS col0
----
-29

query II rowsort
SELECT + ( - 85 ) AS col0, - 58
----
-85
-58

query I rowsort
SELECT ALL 32 + + 14 AS col1
----
46

query I rowsort
SELECT 89 * 44
----
3916

onlyif mysql # aggregate syntax: 
query I rowsort label-5651
SELECT 95 + + ( COUNT( * ) ) + COALESCE ( COUNT( * ), ( - + MAX( DISTINCT + 73 ) ) )
----
97

skipif mysql # not compatible
query I rowsort label-5651
SELECT 95 + + ( COUNT ( * ) ) + COALESCE ( COUNT ( * ), ( - + MAX ( DISTINCT + 73 ) ) )
----
97

query I rowsort
SELECT 98 - - 83
----
181

query II rowsort
SELECT 5 + ( + 89 ) AS col2, + 38
----
94
38

onlyif mysql # DIV for integer division: 
query I rowsort label-5654
SELECT 8 DIV - - 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5654
SELECT 8 / - - 91 AS col2
----
0

query I rowsort
SELECT 79 * + - 26
----
-2054

onlyif mysql # aggregate syntax: 
query I rowsort label-5656
SELECT ALL - COUNT( * ) - NULLIF ( - 12, - + 5 )
----
11

skipif mysql # not compatible
query I rowsort label-5656
SELECT ALL - COUNT ( * ) - NULLIF ( - 12, - + 5 )
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-5657
SELECT DISTINCT 24 DIV 23 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5657
SELECT DISTINCT 24 / 23 AS col1
----
1

query I rowsort
SELECT 98 + - 99 AS col0
----
-1

query I rowsort
SELECT 4 * - - 36 AS col0
----
144

query I rowsort
SELECT ALL - 95 * - + 81
----
7695

query I rowsort
SELECT ALL + 40 - + 8
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5662
SELECT + COUNT( DISTINCT + 30 ) * + 22 + - + 23 + + + 34 + + 5
----
38

skipif mysql # not compatible
query I rowsort label-5662
SELECT + COUNT ( DISTINCT + 30 ) * + 22 + - + 23 + + + 34 + + 5
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5663
SELECT 88 / + ( + CAST( NULL AS SIGNED ) ) / + - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-5663
SELECT 88 / + ( + CAST ( NULL AS INTEGER ) ) / + - 50
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5664
SELECT 23 DIV 14 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5664
SELECT 23 / 14 AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5665
SELECT ALL - 59, - CAST( - 17 AS SIGNED ) AS col1
----
-59
17

skipif mysql # not compatible
query II rowsort label-5665
SELECT ALL - 59, - CAST ( - 17 AS INTEGER ) AS col1
----
-59
17

query I rowsort
SELECT 94 * - 49 AS col0
----
-4606

query I rowsort
SELECT 4 * + + 40 * 28
----
4480

query I rowsort
SELECT 10 - 84 AS col0
----
-74

query I rowsort
SELECT DISTINCT + 30 * 34 AS col1
----
1020

query I rowsort
SELECT - 10 - + 61 AS col0
----
-71

query I rowsort
SELECT DISTINCT - ( - 12 )
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-5672
SELECT ALL - + 93 AS col0, + 13 + - + MIN( - 9 )
----
-93
22

skipif mysql # not compatible
query II rowsort label-5672
SELECT ALL - + 93 AS col0, + 13 + - + MIN ( - 9 )
----
-93
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5673
SELECT + MAX( + 24 )
----
24

skipif mysql # not compatible
query I rowsort label-5673
SELECT + MAX ( + 24 )
----
24

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5674
SELECT ALL - + 49 + + + 6 - + 18 * 73 - - + CAST( NULL AS DECIMAL ) AS col1, - 79 * + 44
----
NULL
-3476

skipif mysql # not compatible
query II rowsort label-5674
SELECT ALL - + 49 + + + 6 - + 18 * 73 - - + CAST ( NULL AS REAL ) AS col1, - 79 * + 44
----
NULL
-3476

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5675
SELECT 72 * - + COUNT( * ) + + 72 - + 72 - + 88 * 11 DIV + 2
----
-556

skipif mysql # not compatible
query I rowsort label-5675
SELECT 72 * - + COUNT ( * ) + + 72 - + 72 - + 88 * 11 / + 2
----
-556

query I rowsort
SELECT - 59 - - 64 col0
----
5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5677
SELECT ALL + - 36 * + - 55 + MIN( ALL - NULLIF ( - 15, + CAST( NULL AS DECIMAL ) ) ) + - + 70 - 52
----
1873

skipif mysql # not compatible
query I rowsort label-5677
SELECT ALL + - 36 * + - 55 + MIN ( ALL - NULLIF ( - 15, + CAST ( NULL AS REAL ) ) ) + - + 70 - 52
----
1873

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5678
SELECT ALL - + 73 + + + COALESCE ( + 21, + 18 + CAST( + - 37 AS SIGNED ) + - 90 - - - 31 + + - 59 * - CAST( - + 21 AS SIGNED ) * - 91 ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-5678
SELECT ALL - + 73 + + + COALESCE ( + 21, + 18 + CAST ( + - 37 AS INTEGER ) + - 90 - - - 31 + + - 59 * - CAST ( - + 21 AS INTEGER ) * - 91 ) AS col1
----
-52

query I rowsort
SELECT - 65 * - + 37 + - 99 AS col2
----
2306

query I rowsort
SELECT 49 - - ( - - 6 ) AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5681
SELECT 52 + + - COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-5681
SELECT 52 + + - COUNT ( * )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5682
SELECT ALL - - NULLIF ( + COUNT( * ), + - 91 ) * 40 + + + ( 96 ) * COUNT( * ) * 20 col1
----
1960

skipif mysql # not compatible
query I rowsort label-5682
SELECT ALL - - NULLIF ( + COUNT ( * ), + - 91 ) * 40 + + + ( 96 ) * COUNT ( * ) * 20 col1
----
1960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5683
SELECT ALL + 95 + - 54 DIV + COUNT( * ) col2
----
41

skipif mysql # not compatible
query I rowsort label-5683
SELECT ALL + 95 + - 54 / + COUNT ( * ) col2
----
41

query I rowsort
SELECT DISTINCT - + 94 * + + 18 * + 90
----
-152280

query I rowsort
SELECT DISTINCT + - 31 + + 7
----
-24

query I rowsort
SELECT ALL - - 69 + + ( 0 ) + - + 48 + 83 - - + 18
----
122

query I rowsort
SELECT + 90 * + - 34 + 64 + - + 14 - + 26 * 82 AS col1
----
-5142

query I rowsort
SELECT 89 * - ( - 66 ) AS col2
----
5874

onlyif mysql # DIV for integer division: 
query I rowsort label-5689
SELECT ALL 26 DIV - - 18 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5689
SELECT ALL 26 / - - 18 AS col0
----
1

query II rowsort
SELECT 96 AS col1, 23 * + - 1 * + 19 * - 94 + - 48
----
96
41030

query I rowsort
SELECT ALL 78 - 89 AS col2
----
-11

query II rowsort
SELECT 69, 77 * + - 74 AS col2
----
69
-5698

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5693
SELECT CAST( + - 25 AS SIGNED ) + + + 96 + - ( 66 )
----
5

skipif mysql # not compatible
query I rowsort label-5693
SELECT CAST ( + - 25 AS INTEGER ) + + + 96 + - ( 66 )
----
5

query I rowsort
SELECT DISTINCT 83 * ( - 19 ) * - + 95
----
149815

query II rowsort
SELECT ALL 43, - 83 AS col2
----
43
-83

query II rowsort
SELECT ( 36 ) * - ( - + 20 ), + ( - 55 ) AS col0
----
720
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5697
SELECT 85 + + COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-5697
SELECT 85 + + COUNT ( * )
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5698
SELECT ALL 54 AS col0, 40 / + + 67 * CAST( NULL AS SIGNED ) * 32 AS col0
----
54
NULL

skipif mysql # not compatible
query II rowsort label-5698
SELECT ALL 54 AS col0, 40 / + + 67 * CAST ( NULL AS INTEGER ) * 32 AS col0
----
54
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5699
SELECT + 26 * + CAST( NULL AS SIGNED ) * - 72 * - - 76 / - CAST( NULL AS SIGNED ) + - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-5699
SELECT + 26 * + CAST ( NULL AS INTEGER ) * - 72 * - - 76 / - CAST ( NULL AS INTEGER ) + - 90
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5700
SELECT 30 + + 40 AS col0, COUNT( * )
----
70
1

skipif mysql # not compatible
query II rowsort label-5700
SELECT 30 + + 40 AS col0, COUNT ( * )
----
70
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5701
SELECT + 94 * - COUNT( - 9 )
----
-94

skipif mysql # not compatible
query I rowsort label-5701
SELECT + 94 * - COUNT ( - 9 )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5702
SELECT - 0 * + NULLIF ( COUNT( * ), - 62 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5702
SELECT - 0 * + NULLIF ( COUNT ( * ), - 62 ) AS col0
----
0

query II rowsort
SELECT DISTINCT + 45, 45
----
45
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5704
SELECT - + 15 + + 97 + + 72 + - 6 * - 81 * + 6 - + - 22 + 14 + COUNT( - 71 ) / ( - 48 ) * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5704
SELECT - + 15 + + 97 + + 72 + - 6 * - 81 * + 6 - + - 22 + 14 + COUNT ( - 71 ) / ( - 48 ) * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5705
SELECT ALL + ( - - SUM( ALL - 17 ) )
----
-17

skipif mysql # not compatible
query I rowsort label-5705
SELECT ALL + ( - - SUM ( ALL - 17 ) )
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5706
SELECT - - 45 * CAST( + ( + + MAX( CAST( NULL AS SIGNED ) ) ) AS SIGNED ) + + 75 AS col1, 16
----
NULL
16

skipif mysql # not compatible
query II rowsort label-5706
SELECT - - 45 * CAST ( + ( + + MAX ( CAST ( NULL AS INTEGER ) ) ) AS INTEGER ) + + 75 AS col1, 16
----
NULL
16

query I rowsort
SELECT + 74 * - + 17
----
-1258

onlyif mysql # aggregate syntax: 
query I rowsort label-5708
SELECT COUNT( * ) * - 46 + 63
----
17

skipif mysql # not compatible
query I rowsort label-5708
SELECT COUNT ( * ) * - 46 + 63
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5709
SELECT ALL + 85 * CAST( - 14 AS SIGNED )
----
-1190

skipif mysql # not compatible
query I rowsort label-5709
SELECT ALL + 85 * CAST ( - 14 AS INTEGER )
----
-1190

query I rowsort
SELECT - 57 + - 82
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-5711
SELECT ALL + COUNT( ALL + 41 )
----
1

skipif mysql # not compatible
query I rowsort label-5711
SELECT ALL + COUNT ( ALL + 41 )
----
1

query I rowsort
SELECT ALL + - 42 * + ( + - 84 ) col2
----
3528

query I rowsort
SELECT + ( 7 ) col0
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5714
SELECT ( - + CAST( NULL AS SIGNED ) ) * + + CASE + - ( 88 ) WHEN CAST( ( - 50 ) AS SIGNED ) - 51 THEN COUNT( * ) * 67 * - 78 ELSE NULL END / - + 8 * + + ( + + 57 ) + - 82 * - COUNT( * ) + + 10 - + AVG ( 91 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5714
SELECT ( - + CAST ( NULL AS INTEGER ) ) * + + CASE + - ( 88 ) WHEN CAST ( ( - 50 ) AS INTEGER ) - 51 THEN COUNT ( * ) * 67 * - 78 ELSE NULL END / - + 8 * + + ( + + 57 ) + - 82 * - COUNT ( * ) + + 10 - + AVG ( 91 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5715
SELECT ALL 40 AS col1, MIN( DISTINCT - 4 ) + - ( 7 ) * - + 95 + + + 52 DIV ( ( + - 2 ) )
----
40
635

skipif mysql # not compatible
query II rowsort label-5715
SELECT ALL 40 AS col1, MIN ( DISTINCT - 4 ) + - ( 7 ) * - + 95 + + + 52 / ( ( + - 2 ) )
----
40
635

query II rowsort
SELECT DISTINCT ( 99 ) AS col2, 44 AS col1
----
99
44

query I rowsort
SELECT - 8 * + 79
----
-632

onlyif mysql # aggregate syntax: 
query I rowsort label-5718
SELECT - NULLIF ( + - MIN( ALL 71 ), + - 39 )
----
71

skipif mysql # not compatible
query I rowsort label-5718
SELECT - NULLIF ( + - MIN ( ALL 71 ), + - 39 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5719
SELECT ALL CASE 56 WHEN + 2 THEN NULL WHEN + + ( - - 66 ) * 2 + - 35 THEN - 33 * 16 * - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5719
SELECT ALL CASE 56 WHEN + 2 THEN NULL WHEN + + ( - - 66 ) * 2 + - 35 THEN - 33 * 16 * - COUNT ( * ) END
----
NULL

query I rowsort
SELECT DISTINCT - 95 * 56
----
-5320

query II rowsort
SELECT DISTINCT ( + 36 ) AS col2, + 90 - - 24 AS col2
----
36
114

onlyif mysql # DIV for integer division: 
query I rowsort label-5722
SELECT + 30 DIV + 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5722
SELECT + 30 / + 96 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-5723
SELECT - CAST( NULL AS SIGNED ) + 71, - 42 DIV ( + 85 ) * + 24 * 77 * + COUNT( * ) + - 51 + - 44 col0, - NULLIF ( - 12, - ( + MIN( 43 ) ) DIV + 7 + - - COUNT( * ) + + 51 ) - + 10 AS col1
----
NULL
-95
2

skipif mysql # not compatible
query III rowsort label-5723
SELECT - CAST ( NULL AS INTEGER ) + 71, - 42 / ( + 85 ) * + 24 * 77 * + COUNT ( * ) + - 51 + - 44 col0, - NULLIF ( - 12, - ( + MIN ( 43 ) ) / + 7 + - - COUNT ( * ) + + 51 ) - + 10 AS col1
----
NULL
-95
2

onlyif mysql # aggregate syntax: 
query II rowsort label-5724
SELECT + 24 + + - COUNT( * ), + 66 + 27 AS col2
----
23
93

skipif mysql # not compatible
query II rowsort label-5724
SELECT + 24 + + - COUNT ( * ), + 66 + 27 AS col2
----
23
93

query I rowsort
SELECT + 83 - - 44
----
127

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5726
SELECT DISTINCT COUNT( * ) + + 49 AS col1, 26 DIV 42
----
50
0

skipif mysql # not compatible
query II rowsort label-5726
SELECT DISTINCT COUNT ( * ) + + 49 AS col1, 26 / 42
----
50
0

query I rowsort
SELECT ALL ( - 22 ) + 89 AS col1
----
67

query I rowsort
SELECT + ( + 52 ) AS col2
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5729
SELECT ALL + 38 DIV + COUNT( * ) + 69 * 87 + + 82 * + 11 * 54 + COUNT( * ) DIV - 58
----
54749

skipif mysql # not compatible
query I rowsort label-5729
SELECT ALL + 38 / + COUNT ( * ) + 69 * 87 + + 82 * + 11 * 54 + COUNT ( * ) / - 58
----
54749

onlyif mysql # aggregate syntax: 
query II rowsort label-5730
SELECT DISTINCT + SUM( - 0 ) AS col1, 60
----
0
60

skipif mysql # not compatible
query II rowsort label-5730
SELECT DISTINCT + SUM ( - 0 ) AS col1, 60
----
0
60

onlyif mysql # aggregate syntax: 
query II rowsort label-5731
SELECT DISTINCT - COUNT( * ) * 98 AS col2, 75 * + 55 * - 28 AS col2
----
-98
-115500

skipif mysql # not compatible
query II rowsort label-5731
SELECT DISTINCT - COUNT ( * ) * 98 AS col2, 75 * + 55 * - 28 AS col2
----
-98
-115500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5732
SELECT - + ( - COUNT( * ) ) * 87 + - 6 * 56 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5732
SELECT - + ( - COUNT ( * ) ) * 87 + - 6 * 56 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5733
SELECT + - COUNT( * ) DIV + COUNT( * ) + - 34 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-5733
SELECT + - COUNT ( * ) / + COUNT ( * ) + - 34 AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5734
SELECT - - COUNT( * ) * - + 17 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-5734
SELECT - - COUNT ( * ) * - + 17 AS col1
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5735
SELECT ALL - ( COUNT( - 6 ) ) DIV + 13 + - 72 + + 6 + - 58
----
-124

skipif mysql # not compatible
query I rowsort label-5735
SELECT ALL - ( COUNT ( - 6 ) ) / + 13 + - 72 + + 6 + - 58
----
-124

query I rowsort
SELECT + - COALESCE ( + 63, + 75 ) AS col1
----
-63

query I rowsort
SELECT + + 17 - - 49 + - 59 * 88 * 73
----
-378950

query I rowsort
SELECT + 98 * - 35 + + - 31 AS col2
----
-3461

query I rowsort
SELECT DISTINCT + 71 * - - 34 + + 15
----
2429

query I rowsort
SELECT - + ( - 41 ) - 23 * - 89
----
2088

query I rowsort
SELECT ALL 2 * 43 - + + 75 - - 43
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-5742
SELECT - + 16 DIV + - 16 + - 93
----
-92

skipif mysql # not compatible
query I rowsort label-5742
SELECT - + 16 / + - 16 + - 93
----
-92

query I rowsort
SELECT - 80 * 54 AS col1
----
-4320

query I rowsort
SELECT ALL 73 * - ( 0 ) AS col0
----
0

query I rowsort
SELECT DISTINCT 8 * 24
----
192

onlyif mysql # aggregate syntax: 
query II rowsort label-5746
SELECT ALL CASE - COUNT( DISTINCT CASE - - 9 WHEN - 55 + COALESCE ( 71, + - 2 + - - 80 * - 40 - + 77 ) THEN 56 + - + 37 ELSE NULL END ) WHEN + 47 THEN - 96 ELSE + 75 END AS col2, + NULLIF ( + - ( + - NULLIF ( - 9, + + COUNT( * ) * + - 64 - + - 87 ) ), - 56 * - 1 + - 62 + - 99 - + COUNT( * ) ) - - + 77 AS col0
----
75
68

skipif mysql # not compatible
query II rowsort label-5746
SELECT ALL CASE - COUNT ( DISTINCT CASE - - 9 WHEN - 55 + COALESCE ( 71, + - 2 + - - 80 * - 40 - + 77 ) THEN 56 + - + 37 ELSE NULL END ) WHEN + 47 THEN - 96 ELSE + 75 END AS col2, + NULLIF ( + - ( + - NULLIF ( - 9, + + COUNT ( * ) * + - 64 - + - 87 ) ), - 56 * - 1 + - 62 + - 99 - + COUNT ( * ) ) - - + 77 AS col0
----
75
68

query I rowsort
SELECT ALL ( + - 25 )
----
-25

query I rowsort
SELECT - 54 * - 71 AS col2
----
3834

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5749
SELECT - CAST( NULL AS SIGNED ) + SUM( ALL 32 ) * - 1 * 23 + CAST( NULL AS SIGNED ) * + - 12 / - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5749
SELECT - CAST ( NULL AS INTEGER ) + SUM ( ALL 32 ) * - 1 * 23 + CAST ( NULL AS INTEGER ) * + - 12 / - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT 94 * 38
----
3572

query I rowsort
SELECT 30 * - 6 AS col2
----
-180

query II rowsort
SELECT 59 AS col1, - 35 AS col2
----
59
-35

query II rowsort
SELECT 32 AS col0, 67 AS col0
----
32
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5754
SELECT ALL CASE - CASE + 51 WHEN - + 17 / + + 98 THEN 62 + - 69 / - ( + + 51 ) ELSE + 91 END WHEN + AVG ( - 17 ) + - NULLIF ( 26, - + 71 ) THEN 61 + 98 WHEN COUNT( * ) THEN ( COUNT( * ) ) END + + - 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5754
SELECT ALL CASE - CASE + 51 WHEN - + 17 / + + 98 THEN 62 + - 69 / - ( + + 51 ) ELSE + 91 END WHEN + AVG ( - 17 ) + - NULLIF ( 26, - + 71 ) THEN 61 + 98 WHEN COUNT ( * ) THEN ( COUNT ( * ) ) END + + - 14 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5755
SELECT DISTINCT + CASE + 58 WHEN - 74 THEN - 0 + + - 30 * - 35 * NULLIF ( + 56, AVG ( + 61 ) + - + 51 / + + ( + COUNT( * ) ) ) END + + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-5755
SELECT DISTINCT + CASE + 58 WHEN - 74 THEN - 0 + + - 30 * - 35 * NULLIF ( + 56, AVG ( + 61 ) + - + 51 / + + ( + COUNT ( * ) ) ) END + + 76
----
NULL

query II rowsort
SELECT ALL 7 AS col0, + 37
----
7
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5757
SELECT 29 + - 24 - + NULLIF ( 39, + 83 + + MAX( DISTINCT + 68 ) - + 42 )
----
-34

skipif mysql # not compatible
query I rowsort label-5757
SELECT 29 + - 24 - + NULLIF ( 39, + 83 + + MAX ( DISTINCT + 68 ) - + 42 )
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5758
SELECT DISTINCT 76 + + 53 * + 88 AS col1, ( CAST( NULL AS SIGNED ) ) * 11 - + 89 AS col2
----
4740
NULL

skipif mysql # not compatible
query II rowsort label-5758
SELECT DISTINCT 76 + + 53 * + 88 AS col1, ( CAST ( NULL AS INTEGER ) ) * 11 - + 89 AS col2
----
4740
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5759
SELECT ALL + COUNT( * ) + + + 88 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-5759
SELECT ALL + COUNT ( * ) + + + 88 AS col2
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5760
SELECT 9 + + 91 + - + 41 * + 94 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5760
SELECT 9 + + 91 + - + 41 * + 94 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5761
SELECT ALL CAST( 72 AS SIGNED ) + - 70 * - CASE - 77 WHEN NULLIF ( - + 84, + COUNT( * ) ) * ( + COUNT( * ) ) * - 16 THEN NULL WHEN - 25 + + CASE + COUNT( - 94 ) WHEN - + 44 THEN - 81 END * + - 49 THEN + ( - 45 ) + 47 WHEN - 89 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5761
SELECT ALL CAST ( 72 AS INTEGER ) + - 70 * - CASE - 77 WHEN NULLIF ( - + 84, + COUNT ( * ) ) * ( + COUNT ( * ) ) * - 16 THEN NULL WHEN - 25 + + CASE + COUNT ( - 94 ) WHEN - + 44 THEN - 81 END * + - 49 THEN + ( - 45 ) + 47 WHEN - 89 THEN NULL END AS col2
----
NULL

query II rowsort
SELECT + - 57 AS col0, 90 + + 17 - + 50 col0
----
-57
57

query I rowsort
SELECT DISTINCT + 99 + - + 13 AS col2
----
86

query II rowsort
SELECT 91 AS col2, 53
----
91
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5765
SELECT - COUNT( * ) + + 37 + + 56 * - 9 * - 72 * SUM( ALL + 49 )
----
1778148

skipif mysql # not compatible
query I rowsort label-5765
SELECT - COUNT ( * ) + + 37 + + 56 * - 9 * - 72 * SUM ( ALL + 49 )
----
1778148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5766
SELECT DISTINCT + CASE - + 61 WHEN + - 16 THEN NULL WHEN + - CAST( NULL AS SIGNED ) / + SUM( ALL - 21 ) / + 71 * 35 + - 92 THEN - 68 END * + 97 * - 20 * + 48 * - 55 + - - COUNT( * ) - + - 84 * 22 * 1 + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5766
SELECT DISTINCT + CASE - + 61 WHEN + - 16 THEN NULL WHEN + - CAST ( NULL AS INTEGER ) / + SUM ( ALL - 21 ) / + 71 * 35 + - 92 THEN - 68 END * + 97 * - 20 * + 48 * - 55 + - - COUNT ( * ) - + - 84 * 22 * 1 + + COUNT ( * ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5767
SELECT ALL + 42 * - 0 DIV + 75
----
0

skipif mysql # not compatible
query I rowsort label-5767
SELECT ALL + 42 * - 0 / + 75
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5768
SELECT - CASE 31 WHEN + + 58 DIV - + COUNT( * ) THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE + COUNT( - 8 ) DIV - 70 END AS col1, - 42
----
0
-42

skipif mysql # not compatible
query II rowsort label-5768
SELECT - CASE 31 WHEN + + 58 / - + COUNT ( * ) THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE + COUNT ( - 8 ) / - 70 END AS col1, - 42
----
0
-42

query II rowsort
SELECT + 13, 8 AS col2
----
13
8

query I rowsort
SELECT + 55 + - 26 * - 96
----
2551

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5771
SELECT ALL - CAST( 27 AS SIGNED )
----
-27

skipif mysql # not compatible
query I rowsort label-5771
SELECT ALL - CAST ( 27 AS INTEGER )
----
-27

query II rowsort
SELECT + - 83, 25 * + 64 + 49 * - NULLIF ( + 4, + 92 + - 91 ) col1
----
-83
1404

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5773
SELECT DISTINCT 47 DIV - - MIN( + 90 ) + + 86
----
86

skipif mysql # not compatible
query I rowsort label-5773
SELECT DISTINCT 47 / - - MIN ( + 90 ) + + 86
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5774
SELECT ( - COALESCE ( - 79, + COUNT( * ), + 52 - - 58 ) ) * - 10 * - 25 AS col0
----
19750

skipif mysql # not compatible
query I rowsort label-5774
SELECT ( - COALESCE ( - 79, + COUNT ( * ), + 52 - - 58 ) ) * - 10 * - 25 AS col0
----
19750

onlyif mysql # aggregate syntax: 
query II rowsort label-5775
SELECT ALL + COUNT( * ) * - + 92 AS col2, + ( 86 )
----
-92
86

skipif mysql # not compatible
query II rowsort label-5775
SELECT ALL + COUNT ( * ) * - + 92 AS col2, + ( 86 )
----
-92
86

query I rowsort
SELECT 77 * + + 44 - + 62
----
3326

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5777
SELECT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) / - CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5777
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) / - CAST ( NULL AS REAL ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5778
SELECT 5 * ( + ( - CASE + 95 WHEN 47 THEN NULL ELSE + 88 + 38 END ) ) * - 2 + - - 57 * COALESCE ( - 82, - 41 + 34 DIV - - 35 )
----
-3414

skipif mysql # not compatible
query I rowsort label-5778
SELECT 5 * ( + ( - CASE + 95 WHEN 47 THEN NULL ELSE + 88 + 38 END ) ) * - 2 + - - 57 * COALESCE ( - 82, - 41 + 34 / - - 35 )
----
-3414

onlyif mysql # aggregate syntax: 
query I rowsort label-5779
SELECT DISTINCT 18 + + 66 * - COUNT( * ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-5779
SELECT DISTINCT 18 + + 66 * - COUNT ( * ) AS col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5780
SELECT ALL + ( + COUNT( * ) ) + - + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5780
SELECT ALL + ( + COUNT ( * ) ) + - + COUNT ( * ) AS col0
----
0

query I rowsort
SELECT 23 - 3
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5782
SELECT 29 * - CAST( NULL AS SIGNED ) col0, - 63 col1
----
NULL
-63

skipif mysql # not compatible
query II rowsort label-5782
SELECT 29 * - CAST ( NULL AS INTEGER ) col0, - 63 col1
----
NULL
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5783
SELECT 32 - 9 + - 77 + - - 41 * - 0 * + CASE - COUNT( * ) WHEN + COUNT( * ) - - + 0 THEN + + 43 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5783
SELECT 32 - 9 + - 77 + - - 41 * - 0 * + CASE - COUNT ( * ) WHEN + COUNT ( * ) - - + 0 THEN + + 43 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5784
SELECT DISTINCT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + - 75 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5784
SELECT DISTINCT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + - 75 AS col1
----
NULL

query II rowsort
SELECT 23 + + - 88, + COALESCE ( - - 16, - - 49 ) + + - 19 - + 14 col1
----
-65
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5786
SELECT + 14 - - COUNT( * ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-5786
SELECT + 14 - - COUNT ( * ) AS col1
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5787
SELECT ALL + + CAST( NULL AS SIGNED ) * + 60 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5787
SELECT ALL + + CAST ( NULL AS INTEGER ) * + 60 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5788
SELECT ( - COUNT( DISTINCT 76 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5788
SELECT ( - COUNT ( DISTINCT 76 ) ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5789
SELECT DISTINCT - + 48 - CAST( + 91 AS SIGNED ) AS col2
----
-139

skipif mysql # not compatible
query I rowsort label-5789
SELECT DISTINCT - + 48 - CAST ( + 91 AS INTEGER ) AS col2
----
-139

query I rowsort
SELECT DISTINCT + 70 * - 9 * 54 AS col2
----
-34020

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5791
SELECT DISTINCT + + 52 - + 72 - - CAST( + - 15 AS SIGNED ) * - - COUNT( * ) * 31 + + + 88 + - - 25 AS col1
----
-372

skipif mysql # not compatible
query I rowsort label-5791
SELECT DISTINCT + + 52 - + 72 - - CAST ( + - 15 AS INTEGER ) * - - COUNT ( * ) * 31 + + + 88 + - - 25 AS col1
----
-372

query I rowsort
SELECT - 81 + 94 + - 58 AS col0
----
-45

query I rowsort
SELECT ALL + + 35 * + + 51 col0
----
1785

query I rowsort
SELECT + - ( + - 67 )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5795
SELECT - COALESCE ( + + COUNT( * ), - 21 + 65 )
----
-1

skipif mysql # not compatible
query I rowsort label-5795
SELECT - COALESCE ( + + COUNT ( * ), - 21 + 65 )
----
-1

query I rowsort
SELECT + 14 * 38 + - 34 * - + 27
----
1450

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5797
SELECT - 12 * - CAST( NULL AS SIGNED ), 37 AS col2
----
NULL
37

skipif mysql # not compatible
query II rowsort label-5797
SELECT - 12 * - CAST ( NULL AS INTEGER ), 37 AS col2
----
NULL
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5798
SELECT CAST( NULL AS SIGNED ) * + CASE 74 WHEN - - 69 THEN - 18 END * COUNT( DISTINCT - 67 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5798
SELECT CAST ( NULL AS INTEGER ) * + CASE 74 WHEN - - 69 THEN - 18 END * COUNT ( DISTINCT - 67 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5799
SELECT + COUNT( * ) * 19 + - 97 * 28 - 64 + + + COALESCE ( - 92, - + 17 * 71 + - - 59, + + CASE - 41 WHEN - - CASE 40 WHEN 69 THEN 13 END THEN + 21 * COUNT( * ) ELSE NULL END ) + 42 AS col0, + 17
----
-2811
17

skipif mysql # not compatible
query II rowsort label-5799
SELECT + COUNT ( * ) * 19 + - 97 * 28 - 64 + + + COALESCE ( - 92, - + 17 * 71 + - - 59, + + CASE - 41 WHEN - - CASE 40 WHEN 69 THEN 13 END THEN + 21 * COUNT ( * ) ELSE NULL END ) + 42 AS col0, + 17
----
-2811
17

onlyif mysql # aggregate syntax: 
query II rowsort label-5800
SELECT - 79 * - COUNT( * ) col2, + 83 + + + 41
----
79
124

skipif mysql # not compatible
query II rowsort label-5800
SELECT - 79 * - COUNT ( * ) col2, + 83 + + + 41
----
79
124

query II rowsort
SELECT 21 * - + 57 AS col0, 14 * + 95
----
-1197
1330

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5802
SELECT ALL - COUNT( * ) DIV - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5802
SELECT ALL - COUNT ( * ) / - COUNT ( * ) AS col2
----
1

query I rowsort
SELECT ALL 23 * + ( + - ( - + 31 ) )
----
713

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5804
SELECT 51 - 61 DIV + COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-5804
SELECT 51 - 61 / + COUNT ( * )
----
-10

query II rowsort
SELECT ALL - + ( - - 52 ), 16 + 81 AS col1
----
-52
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5806
SELECT ALL NULLIF ( - 55, - CAST( 79 AS SIGNED ) ) * + + 11 AS col0
----
-605

skipif mysql # not compatible
query I rowsort label-5806
SELECT ALL NULLIF ( - 55, - CAST ( 79 AS INTEGER ) ) * + + 11 AS col0
----
-605

onlyif mysql # aggregate syntax: 
query I rowsort label-5807
SELECT + - 37 * + 82 - + COUNT( * ) + + 44 + - 77 * 88 - + 45 - 9
----
-9821

skipif mysql # not compatible
query I rowsort label-5807
SELECT + - 37 * + 82 - + COUNT ( * ) + + 44 + - 77 * 88 - + 45 - 9
----
-9821

onlyif mysql # DIV for integer division: 
query II rowsort label-5808
SELECT 72 * + 6 * 59 AS col0, + ( - - 46 ) DIV + 70 * - + 6
----
25488
0

skipif mysql # not compatible
query II rowsort label-5808
SELECT 72 * + 6 * 59 AS col0, + ( - - 46 ) / + 70 * - + 6
----
25488
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5809
SELECT NULLIF ( + CASE + 53 WHEN COUNT( * ) - - MAX( ALL + 35 ) THEN + - 28 ELSE + + 99 END, 34 + + 56 ) * + 85 * + + 97 - + - 31 * - 15 col2
----
815790

skipif mysql # not compatible
query I rowsort label-5809
SELECT NULLIF ( + CASE + 53 WHEN COUNT ( * ) - - MAX ( ALL + 35 ) THEN + - 28 ELSE + + 99 END, 34 + + 56 ) * + 85 * + + 97 - + - 31 * - 15 col2
----
815790

onlyif mysql # aggregate syntax: 
query I rowsort label-5810
SELECT SUM( 49 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-5810
SELECT SUM ( 49 ) AS col1
----
49

query I rowsort
SELECT 81 * + + 93 * - + 48 + - + 70 AS col0
----
-361654

onlyif mysql # DIV for integer division: 
query I rowsort label-5812
SELECT + 7 - + 17 + - 91 - + 22 DIV - + 14
----
-100

skipif mysql # not compatible
query I rowsort label-5812
SELECT + 7 - + 17 + - 91 - + 22 / - + 14
----
-100

onlyif mysql # aggregate syntax: 
query II rowsort label-5813
SELECT ALL COUNT( + + ( + 53 ) ) + + 48 + 30 col2, - CASE - 49 WHEN - 51 THEN NULL WHEN - MAX( DISTINCT - 21 ) * + 85 THEN - - 61 END * + 54 + 27 + - - 38 + CASE + 98 WHEN - 65 THEN NULL WHEN - + 65 THEN 96 * - + 19 WHEN + 85 THEN NULL ELSE NULL END * + - 52 * + 94 - 16
----
79
NULL

skipif mysql # not compatible
query II rowsort label-5813
SELECT ALL COUNT ( + + ( + 53 ) ) + + 48 + 30 col2, - CASE - 49 WHEN - 51 THEN NULL WHEN - MAX ( DISTINCT - 21 ) * + 85 THEN - - 61 END * + 54 + 27 + - - 38 + CASE + 98 WHEN - 65 THEN NULL WHEN - + 65 THEN 96 * - + 19 WHEN + 85 THEN NULL ELSE NULL END * + - 52 * + 94 - 16
----
79
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5814
SELECT 84 AS col2, - COUNT( * )
----
84
-1

skipif mysql # not compatible
query II rowsort label-5814
SELECT 84 AS col2, - COUNT ( * )
----
84
-1

query I rowsort
SELECT ALL 6 + - + 79 AS col0
----
-73

query I rowsort
SELECT + 12 * + + 58 AS col2
----
696

query I rowsort
SELECT - 18 * + 92 AS col1
----
-1656

query I rowsort
SELECT + 29 + 48 AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5819
SELECT + 88 * ( + COUNT( DISTINCT + 20 ) )
----
88

skipif mysql # not compatible
query I rowsort label-5819
SELECT + 88 * ( + COUNT ( DISTINCT + 20 ) )
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5820
SELECT - COUNT( + 68 ) + 81 DIV - 35 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-5820
SELECT - COUNT ( + 68 ) + 81 / - 35 AS col0
----
-3

query I rowsort
SELECT ALL ( - 23 ) * 47 AS col1
----
-1081

query I rowsort
SELECT + 5 + - 19 AS col1
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-5823
SELECT + 82 * - 72 * - + COUNT( * ) AS col1, - 83 AS col2
----
5904
-83

skipif mysql # not compatible
query II rowsort label-5823
SELECT + 82 * - 72 * - + COUNT ( * ) AS col1, - 83 AS col2
----
5904
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-5824
SELECT ALL + 82 AS col2, COALESCE ( + COALESCE ( + + 26, - 39 + + 46, - 16 + COUNT( * ) - NULLIF ( - - COUNT( * ), - - 73 ) * - 12 ), CASE + 59 WHEN - + 97 THEN NULL WHEN 17 THEN + 1 END - + SUM( ALL - 63 ) - + + 44, - - COUNT( * ) ) + - - 30 AS col2
----
82
56

skipif mysql # not compatible
query II rowsort label-5824
SELECT ALL + 82 AS col2, COALESCE ( + COALESCE ( + + 26, - 39 + + 46, - 16 + COUNT ( * ) - NULLIF ( - - COUNT ( * ), - - 73 ) * - 12 ), CASE + 59 WHEN - + 97 THEN NULL WHEN 17 THEN + 1 END - + SUM ( ALL - 63 ) - + + 44, - - COUNT ( * ) ) + - - 30 AS col2
----
82
56

query I rowsort
SELECT ALL + 41 * - 53 col1
----
-2173

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5826
SELECT - - COALESCE ( - 98, 93 ) + - 39 * + + 71 - + 43 * MAX( ALL 71 ) * + 19 * + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5826
SELECT - - COALESCE ( - 98, 93 ) + - 39 * + + 71 - + 43 * MAX ( ALL 71 ) * + 19 * + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5827
SELECT ALL NULLIF ( - ( CAST( + 1 AS SIGNED ) ), - + 49 ) AS col1, - 34
----
-1
-34

skipif mysql # not compatible
query II rowsort label-5827
SELECT ALL NULLIF ( - ( CAST ( + 1 AS INTEGER ) ), - + 49 ) AS col1, - 34
----
-1
-34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5828
SELECT - COALESCE ( 5, 72 ) AS col0, + CAST( NULL AS SIGNED )
----
-5
NULL

skipif mysql # not compatible
query II rowsort label-5828
SELECT - COALESCE ( 5, 72 ) AS col0, + CAST ( NULL AS INTEGER )
----
-5
NULL

query I rowsort
SELECT + 27 + - 97 * - 84 AS col1
----
8175

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5830
SELECT - 75 AS col2, CAST( NULL AS SIGNED ) + 68
----
-75
NULL

skipif mysql # not compatible
query II rowsort label-5830
SELECT - 75 AS col2, CAST ( NULL AS INTEGER ) + 68
----
-75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5831
SELECT - COUNT( * ) + - CASE WHEN 65 NOT IN ( 78 / 31 ) THEN NULL ELSE + 46 END / - 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5831
SELECT - COUNT ( * ) + - CASE WHEN 65 NOT IN ( 78 / 31 ) THEN NULL ELSE + 46 END / - 46 AS col0
----
NULL

query I rowsort
SELECT ALL + 25 * 87 col1
----
2175

onlyif mysql # aggregate syntax: 
query I rowsort label-5833
SELECT - 54 * COALESCE ( - MAX( ALL 72 ), + - 77 * 34 ) * + 69 - + 56
----
268216

skipif mysql # not compatible
query I rowsort label-5833
SELECT - 54 * COALESCE ( - MAX ( ALL 72 ), + - 77 * 34 ) * + 69 - + 56
----
268216

onlyif mysql # aggregate syntax: 
query I rowsort label-5834
SELECT - COUNT( * ) + 20
----
19

skipif mysql # not compatible
query I rowsort label-5834
SELECT - COUNT ( * ) + 20
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5835
SELECT + + SUM( - 59 )
----
-59

skipif mysql # not compatible
query I rowsort label-5835
SELECT + + SUM ( - 59 )
----
-59

query I rowsort
SELECT ALL + ( 11 ) AS col2
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-5837
SELECT + 86 DIV - + 96 - - 21 DIV ( + - 99 ) + 73
----
73

skipif mysql # not compatible
query I rowsort label-5837
SELECT + 86 / - + 96 - - 21 / ( + - 99 ) + 73
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5838
SELECT - + ( - - SUM( - 53 ) ) + - ( - - 81 ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-5838
SELECT - + ( - - SUM ( - 53 ) ) + - ( - - 81 ) AS col2
----
-28

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5839
SELECT DISTINCT 65 * + - 28 + + 70 + ( + + CAST( NULL AS SIGNED ) ) / + - CAST( 86 AS DECIMAL ) * + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-5839
SELECT DISTINCT 65 * + - 28 + + 70 + ( + + CAST ( NULL AS INTEGER ) ) / + - CAST ( 86 AS REAL ) * + 61
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5840
SELECT - + 4 DIV 90
----
0

skipif mysql # not compatible
query I rowsort label-5840
SELECT - + 4 / 90
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-5841
SELECT - COUNT( + + CAST( NULL AS DECIMAL ) ) * - 9 * - COUNT( * ) DIV - + 80 + - + COALESCE ( - CAST( NULL AS SIGNED ), COUNT( * ) * + 11 - + + 51 )
----
40

skipif mysql # not compatible
query I rowsort label-5841
SELECT - COUNT ( + + CAST ( NULL AS REAL ) ) * - 9 * - COUNT ( * ) / - + 80 + - + COALESCE ( - CAST ( NULL AS INTEGER ), COUNT ( * ) * + 11 - + + 51 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT - 38 * - 3 + - + 25 * - COUNT( DISTINCT 11 )
----
139

skipif mysql # not compatible
query I rowsort label-5842
SELECT - 38 * - 3 + - + 25 * - COUNT ( DISTINCT 11 )
----
139

query II rowsort
SELECT ALL + ( - - 0 ), 44 AS col1
----
0
44

query I rowsort
SELECT + 84 + + 56 AS col1
----
140

query I rowsort
SELECT NULLIF ( - - 4, - 80 )
----
4

onlyif mysql # DIV for integer division: 
query II rowsort label-5846
SELECT ALL + 94 AS col1, - 53 DIV 56
----
94
0

skipif mysql # not compatible
query II rowsort label-5846
SELECT ALL + 94 AS col1, - 53 / 56
----
94
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5847
SELECT 41 * CASE + 75 WHEN + ( - ( MAX( ALL - 27 ) ) ) THEN + CAST( NULL AS SIGNED ) + SUM( DISTINCT - + 69 ) WHEN + COUNT( * ) * - 87 THEN NULL END + + SUM( DISTINCT - 60 ) / + - 23 * 53
----
NULL

skipif mysql # not compatible
query I rowsort label-5847
SELECT 41 * CASE + 75 WHEN + ( - ( MAX ( ALL - 27 ) ) ) THEN + CAST ( NULL AS INTEGER ) + SUM ( DISTINCT - + 69 ) WHEN + COUNT ( * ) * - 87 THEN NULL END + + SUM ( DISTINCT - 60 ) / + - 23 * 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5848
SELECT DISTINCT + SUM( - - ( - - 0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5848
SELECT DISTINCT + SUM ( - - ( - - 0 ) )
----
0

query I rowsort
SELECT CASE + 37 WHEN - - 0 THEN - 61 * + + 22 / + + 46 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5850
SELECT + NULLIF ( + COALESCE ( + + 57, + MAX( ALL - - 36 ) ), - CASE + 77 WHEN - 86 * - 68 THEN + + COUNT( * ) END * - - CAST( NULL AS SIGNED ) * 82 * + AVG ( DISTINCT - 89 ) * MAX( + + 64 ) )
----
57

skipif mysql # not compatible
query I rowsort label-5850
SELECT + NULLIF ( + COALESCE ( + + 57, + MAX ( ALL - - 36 ) ), - CASE + 77 WHEN - 86 * - 68 THEN + + COUNT ( * ) END * - - CAST ( NULL AS INTEGER ) * 82 * + AVG ( DISTINCT - 89 ) * MAX ( + + 64 ) )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5851
SELECT ALL - 28 * - - CASE - MAX( - 92 ) WHEN - COUNT( * ) THEN + 89 END * 26 - - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-5851
SELECT ALL - 28 * - - CASE - MAX ( - 92 ) WHEN - COUNT ( * ) THEN + 89 END * 26 - - 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5852
SELECT + ( + + CASE - 36 WHEN 59 THEN + ( - + 61 ) WHEN COUNT( * ) THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5852
SELECT + ( + + CASE - 36 WHEN 59 THEN + ( - + 61 ) WHEN COUNT ( * ) THEN NULL ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5853
SELECT + 94 * - SUM( - 31 )
----
2914

skipif mysql # not compatible
query I rowsort label-5853
SELECT + 94 * - SUM ( - 31 )
----
2914

onlyif mysql # aggregate syntax: 
query II rowsort label-5854
SELECT DISTINCT 56 AS col0, - 89 * + MIN( - 85 ) + 7 - - - 22
----
56
7550

skipif mysql # not compatible
query II rowsort label-5854
SELECT DISTINCT 56 AS col0, - 89 * + MIN ( - 85 ) + 7 - - - 22
----
56
7550

query I rowsort
SELECT + 65 + 19 AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5856
SELECT MIN( DISTINCT + - 76 ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-5856
SELECT MIN ( DISTINCT + - 76 ) AS col0
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5857
SELECT DISTINCT - 33 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5857
SELECT DISTINCT - 33 * - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL 62, 69 AS col2
----
62
69

query I rowsort
SELECT + 58 * + - 94
----
-5452

onlyif mysql # aggregate syntax: 
query I rowsort label-5860
SELECT DISTINCT SUM( 79 ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-5860
SELECT DISTINCT SUM ( 79 ) AS col1
----
79

query II rowsort
SELECT + + 1 - + 62 AS col0, + 97 * - - 70
----
-61
6790

onlyif mysql # aggregate syntax: 
query III rowsort label-5862
SELECT ALL 97, 53 AS col0, - 62 * - ( + COUNT( * ) ) AS col1
----
97
53
62

skipif mysql # not compatible
query III rowsort label-5862
SELECT ALL 97, 53 AS col0, - 62 * - ( + COUNT ( * ) ) AS col1
----
97
53
62

query I rowsort
SELECT + - 26 - ( - + 58 )
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5864
SELECT + COUNT( * ) DIV 94
----
0

skipif mysql # not compatible
query I rowsort label-5864
SELECT + COUNT ( * ) / 94
----
0

query I rowsort
SELECT + 72 * - 34 AS col0
----
-2448

query II rowsort
SELECT ALL - 91, + 62 - + 35 * 63 AS col0
----
-91
-2143

onlyif mysql # aggregate syntax: 
query I rowsort label-5867
SELECT + COUNT( * ) + - + 89 col1
----
-88

skipif mysql # not compatible
query I rowsort label-5867
SELECT + COUNT ( * ) + - + 89 col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT + COUNT( * ) + + - ( - 92 ) * - CASE + 29 WHEN - ( - 26 ) * + 31 * + 68 THEN - 81 WHEN - + 60 THEN - - 37 / 82 WHEN - 87 THEN NULL END / + + 97 + - 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5868
SELECT + COUNT ( * ) + + - ( - 92 ) * - CASE + 29 WHEN - ( - 26 ) * + 31 * + 68 THEN - 81 WHEN - + 60 THEN - - 37 / 82 WHEN - 87 THEN NULL END / + + 97 + - 57 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5869
SELECT ALL CASE + - ( + - ( 42 ) ) WHEN + - NULLIF ( + + 19, 73 - - + 35 ) * + 59 THEN - 65 + + + 20 + - 46 + 37 * - 35 * + NULLIF ( + + 68, + 97 ) ELSE NULL END * 81 * 22 * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5869
SELECT ALL CASE + - ( + - ( 42 ) ) WHEN + - NULLIF ( + + 19, 73 - - + 35 ) * + 59 THEN - 65 + + + 20 + - 46 + 37 * - 35 * + NULLIF ( + + 68, + 97 ) ELSE NULL END * 81 * 22 * COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5870
SELECT + + 49 * - CAST( + ( - 62 ) AS SIGNED ) + 37 AS col2
----
3075

skipif mysql # not compatible
query I rowsort label-5870
SELECT + + 49 * - CAST ( + ( - 62 ) AS INTEGER ) + 37 AS col2
----
3075

query I rowsort
SELECT - + 43 * + - 79
----
3397

query I rowsort
SELECT DISTINCT 17 * 85
----
1445

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5873
SELECT ALL + - ( - - COUNT( * ) ) + - 6 DIV NULLIF ( - 43, COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5873
SELECT ALL + - ( - - COUNT ( * ) ) + - 6 / NULLIF ( - 43, COUNT ( * ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5874
SELECT ALL + 94 * - COUNT( * ) + - 30 - - 73 * + 99
----
7103

skipif mysql # not compatible
query I rowsort label-5874
SELECT ALL + 94 * - COUNT ( * ) + - 30 - - 73 * + 99
----
7103

onlyif mysql # aggregate syntax: 
query II rowsort label-5875
SELECT DISTINCT + 61 + - 78, ( 66 ) + - 79 + + ( + 44 ) * + + SUM( + + 73 ) * + 37 + + 60 AS col1
----
-17
118891

skipif mysql # not compatible
query II rowsort label-5875
SELECT DISTINCT + 61 + - 78, ( 66 ) + - 79 + + ( + 44 ) * + + SUM ( + + 73 ) * + 37 + + 60 AS col1
----
-17
118891

query II rowsort
SELECT + 4 AS col2, + 31
----
4
31

query I rowsort
SELECT DISTINCT - COALESCE ( 3, + NULLIF ( + 14, - - 40 ) ) col2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5878
SELECT ALL - - CASE - COUNT( DISTINCT - ( + 65 ) ) WHEN 90 THEN - - 97 - + 14 WHEN 99 - CAST( - - 51 AS DECIMAL ) THEN NULL ELSE + 43 END + + 62 AS col1
----
105

skipif mysql # not compatible
query I rowsort label-5878
SELECT ALL - - CASE - COUNT ( DISTINCT - ( + 65 ) ) WHEN 90 THEN - - 97 - + 14 WHEN 99 - CAST ( - - 51 AS REAL ) THEN NULL ELSE + 43 END + + 62 AS col1
----
105

query I rowsort
SELECT + 24 * - 58 AS col2
----
-1392

onlyif mysql # aggregate syntax: 
query I rowsort label-5880
SELECT ALL - SUM( ALL 81 )
----
-81

skipif mysql # not compatible
query I rowsort label-5880
SELECT ALL - SUM ( ALL 81 )
----
-81

query II rowsort
SELECT ALL + ( + + 68 ) + - + 99 AS col2, + ( + - 1 ) AS col2
----
-31
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5882
SELECT ALL - COALESCE ( - - COUNT( * ), - SUM( DISTINCT + 39 ) + + - 97 + + 57, + + 84 ) + + 8 + - + 77 AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-5882
SELECT ALL - COALESCE ( - - COUNT ( * ), - SUM ( DISTINCT + 39 ) + + - 97 + + 57, + + 84 ) + + 8 + - + 77 AS col1
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5883
SELECT 13 - + 59 + + 32 * - + 54 * ( 88 ) * - CASE - CAST( - 51 AS SIGNED ) WHEN + 7 THEN + + 17 * + 72 * - 84 WHEN + 93 * 27 + - - 63 + + 43 THEN NULL ELSE COUNT( * ) * - COUNT( * ) DIV + 58 + - - 10 END
----
1520594

skipif mysql # not compatible
query I rowsort label-5883
SELECT 13 - + 59 + + 32 * - + 54 * ( 88 ) * - CASE - CAST ( - 51 AS INTEGER ) WHEN + 7 THEN + + 17 * + 72 * - 84 WHEN + 93 * 27 + - - 63 + + 43 THEN NULL ELSE COUNT ( * ) * - COUNT ( * ) / + 58 + - - 10 END
----
1520594

query I rowsort
SELECT ALL 78 * + 3 AS col0
----
234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5885
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 96 / - 59 * + MAX( + 17 ) AS col2, CAST( NULL AS SIGNED ) col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5885
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 96 / - 59 * + MAX ( + 17 ) AS col2, CAST ( NULL AS INTEGER ) col0
----
NULL
NULL

query I rowsort
SELECT 55 * 43 + - 9 col1
----
2356

query I rowsort
SELECT ALL - 19 - 18
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5888
SELECT COUNT( * ) + + ( + - CAST( + MAX( 79 ) AS SIGNED ) ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-5888
SELECT COUNT ( * ) + + ( + - CAST ( + MAX ( 79 ) AS INTEGER ) ) AS col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5889
SELECT COUNT( * ) + 46 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-5889
SELECT COUNT ( * ) + 46 AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5890
SELECT 13 + ( COUNT( * ) )
----
14

skipif mysql # not compatible
query I rowsort label-5890
SELECT 13 + ( COUNT ( * ) )
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5891
SELECT ALL - ( - CAST( - 60 AS SIGNED ) )
----
-60

skipif mysql # not compatible
query I rowsort label-5891
SELECT ALL - ( - CAST ( - 60 AS INTEGER ) )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5892
SELECT ALL - COUNT( ALL + 68 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5892
SELECT ALL - COUNT ( ALL + 68 ) AS col0
----
-1

query I rowsort
SELECT 56 * - + 23 + - + 0 * - 1
----
-1288

onlyif mysql # aggregate syntax: 
query I rowsort label-5894
SELECT 58 - + + 14 + 19 * COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-5894
SELECT 58 - + + 14 + 19 * COUNT ( * )
----
63

query I rowsort
SELECT ALL + 56 * + 55
----
3080

onlyif mysql # aggregate syntax: 
query I rowsort label-5896
SELECT 48 + + 74 + - + 62 * 97 * + - 46 + - SUM( DISTINCT - 54 )
----
276820

skipif mysql # not compatible
query I rowsort label-5896
SELECT 48 + + 74 + - + 62 * 97 * + - 46 + - SUM ( DISTINCT - 54 )
----
276820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5897
SELECT ALL + CASE + - 43 WHEN COUNT( + NULLIF ( + - 99, - 63 ) ) THEN NULL WHEN + 81 THEN - + 52 END / - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5897
SELECT ALL + CASE + - 43 WHEN COUNT ( + NULLIF ( + - 99, - 63 ) ) THEN NULL WHEN + 81 THEN - + 52 END / - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 70 * - 31 * - + 65 AS col1
----
141050

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5899
SELECT DISTINCT + CAST( - 22 AS SIGNED ) DIV + 66 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5899
SELECT DISTINCT + CAST ( - 22 AS INTEGER ) / + 66 AS col2
----
0

query II rowsort
SELECT ALL 46 * - 34, + ( - - 39 ) AS col2
----
-1564
39

onlyif mysql # aggregate syntax: 
query II rowsort label-5901
SELECT DISTINCT - CASE + 92 WHEN - 47 THEN + 24 * - - 32 WHEN + - 73 + + 64 * - 84 THEN COUNT( * ) * - - 13 * 58 + - + 87 END AS col2, - 15
----
NULL
-15

skipif mysql # not compatible
query II rowsort label-5901
SELECT DISTINCT - CASE + 92 WHEN - 47 THEN + 24 * - - 32 WHEN + - 73 + + 64 * - 84 THEN COUNT ( * ) * - - 13 * 58 + - + 87 END AS col2, - 15
----
NULL
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5902
SELECT COUNT( * ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5902
SELECT COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - + 16 * + 29 * - NULLIF ( 66, - 7 )
----
30624

query I rowsort
SELECT + 83 + - - 87
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-5905
SELECT - + MAX( ALL - 50 ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-5905
SELECT - + MAX ( ALL - 50 ) AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5906
SELECT DISTINCT SUM( + 17 ) + 72 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-5906
SELECT DISTINCT SUM ( + 17 ) + 72 AS col0
----
89

query I rowsort
SELECT ALL + ( - 50 )
----
-50

query I rowsort
SELECT ALL - + 24 + + 43 - + ( + 70 )
----
-51

query I rowsort
SELECT ALL - 34 + 9 col2
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5910
SELECT ALL AVG ( 12 ) + + 94 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5910
SELECT ALL AVG ( 12 ) + + 94 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 3 + 49 + - 38
----
14

query II rowsort
SELECT ALL + - 11 + 24 + + 5 AS col0, + 6 AS col2
----
18
6

onlyif mysql # aggregate syntax: 
query II rowsort label-5913
SELECT ALL - COUNT( * ) + - - 17 AS col1, - 73
----
16
-73

skipif mysql # not compatible
query II rowsort label-5913
SELECT ALL - COUNT ( * ) + - - 17 AS col1, - 73
----
16
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5914
SELECT COUNT( * ) * 6 * - + 19
----
-114

skipif mysql # not compatible
query I rowsort label-5914
SELECT COUNT ( * ) * 6 * - + 19
----
-114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5915
SELECT DISTINCT + 15 DIV - COUNT( * ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-5915
SELECT DISTINCT + 15 / - COUNT ( * ) AS col1
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-5916
SELECT - COUNT( + - 63 ) col1, - 53 AS col2
----
-1
-53

skipif mysql # not compatible
query II rowsort label-5916
SELECT - COUNT ( + - 63 ) col1, - 53 AS col2
----
-1
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5917
SELECT 26 + + + 75 + 34 * + COUNT( + 48 )
----
135

skipif mysql # not compatible
query I rowsort label-5917
SELECT 26 + + + 75 + 34 * + COUNT ( + 48 )
----
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5918
SELECT ALL - ( + NULLIF ( - + ( - MAX( DISTINCT - 80 ) ), 15 ) ) * + 8, CAST( NULL AS SIGNED ) - NULLIF ( 52, ( - ( + 85 ) ) ) AS col1
----
640
NULL

skipif mysql # not compatible
query II rowsort label-5918
SELECT ALL - ( + NULLIF ( - + ( - MAX ( DISTINCT - 80 ) ), 15 ) ) * + 8, CAST ( NULL AS INTEGER ) - NULLIF ( 52, ( - ( + 85 ) ) ) AS col1
----
640
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5919
SELECT CASE + 32 WHEN - 99 THEN NULL WHEN COUNT( * ) THEN NULL ELSE 29 END + + 47 col1
----
76

skipif mysql # not compatible
query I rowsort label-5919
SELECT CASE + 32 WHEN - 99 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE 29 END + + 47 col1
----
76

query II rowsort
SELECT ( - 44 ) AS col2, 77
----
-44
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5921
SELECT ALL 91 + + NULLIF ( + 10, 68 * + - NULLIF ( + 93, 3 ) * - + CAST( NULL AS SIGNED ) )
----
101

skipif mysql # not compatible
query I rowsort label-5921
SELECT ALL 91 + + NULLIF ( + 10, 68 * + - NULLIF ( + 93, 3 ) * - + CAST ( NULL AS INTEGER ) )
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-5922
SELECT ALL MAX( + 18 ) * + + ( + COUNT( * ) ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-5922
SELECT ALL MAX ( + 18 ) * + + ( + COUNT ( * ) ) AS col0
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5923
SELECT - COUNT( * ) DIV + 15 + - + NULLIF ( - - 88, - 84 + + 23 + 81 * + ( - 5 ) ) * + 87 + 45 * - NULLIF ( - 70, + - 87 * 75 + 82 ) * - ( + 6 ) + + - 77 AS col1
----
-26633

skipif mysql # not compatible
query I rowsort label-5923
SELECT - COUNT ( * ) / + 15 + - + NULLIF ( - - 88, - 84 + + 23 + 81 * + ( - 5 ) ) * + 87 + 45 * - NULLIF ( - 70, + - 87 * 75 + 82 ) * - ( + 6 ) + + - 77 AS col1
----
-26633

onlyif mysql # aggregate syntax: 
query I rowsort label-5924
SELECT DISTINCT - COUNT( DISTINCT 27 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5924
SELECT DISTINCT - COUNT ( DISTINCT 27 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5925
SELECT 23 + + ( - 94 ) * - - 7 * + NULLIF ( + + COUNT( * ), 20 + + 26 + - + 50 * + - COUNT( * ) )
----
-635

skipif mysql # not compatible
query I rowsort label-5925
SELECT 23 + + ( - 94 ) * - - 7 * + NULLIF ( + + COUNT ( * ), 20 + + 26 + - + 50 * + - COUNT ( * ) )
----
-635

query I rowsort
SELECT ALL 54 - - 68
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-5927
SELECT DISTINCT - MIN( DISTINCT + 93 )
----
-93

skipif mysql # not compatible
query I rowsort label-5927
SELECT DISTINCT - MIN ( DISTINCT + 93 )
----
-93

query II rowsort
SELECT 11 AS col2, 84 AS col0
----
11
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5929
SELECT ALL - COUNT( DISTINCT - 3 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5929
SELECT ALL - COUNT ( DISTINCT - 3 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5930
SELECT + COUNT( * ), - ( - 71 ) + - 54 AS col0
----
1
17

skipif mysql # not compatible
query II rowsort label-5930
SELECT + COUNT ( * ), - ( - 71 ) + - 54 AS col0
----
1
17

query I rowsort
SELECT 67 + + 30 AS col1
----
97

query I rowsort
SELECT ALL - 88 * + 60 AS col2
----
-5280

onlyif mysql # aggregate syntax: 
query I rowsort label-5933
SELECT ALL COALESCE ( + 20, + 57 ) * + + COUNT( * ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-5933
SELECT ALL COALESCE ( + 20, + 57 ) * + + COUNT ( * ) AS col2
----
20

query I rowsort
SELECT ALL + 61 * + 30 AS col1
----
1830

onlyif mysql # aggregate syntax: 
query I rowsort label-5935
SELECT ALL COALESCE ( + - 76, + + 12 ) * + NULLIF ( + SUM( ALL + 20 ), - + 69 * - COUNT( * ) / + 42 + 19 + + ( + - 14 ) - - 69 ) * 38 * 3 + + 56 + 4 AS col0
----
-173220

skipif mysql # not compatible
query I rowsort label-5935
SELECT ALL COALESCE ( + - 76, + + 12 ) * + NULLIF ( + SUM ( ALL + 20 ), - + 69 * - COUNT ( * ) / + 42 + 19 + + ( + - 14 ) - - 69 ) * 38 * 3 + + 56 + 4 AS col0
----
-173220

query I rowsort
SELECT 64 * - 54 AS col2
----
-3456

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5937
SELECT DISTINCT - COALESCE ( 23, - COUNT( * ) DIV - + 59 * - 98 )
----
-23

skipif mysql # not compatible
query I rowsort label-5937
SELECT DISTINCT - COALESCE ( 23, - COUNT ( * ) / - + 59 * - 98 )
----
-23

query I rowsort
SELECT DISTINCT + 70 * 50 AS col2
----
3500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5939
SELECT - CAST( NULL AS SIGNED ) * 44 - + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-5939
SELECT - CAST ( NULL AS INTEGER ) * 44 - + 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5940
SELECT ALL COALESCE ( + + COUNT( * ), + - 8 )
----
1

skipif mysql # not compatible
query I rowsort label-5940
SELECT ALL COALESCE ( + + COUNT ( * ), + - 8 )
----
1

query I rowsort
SELECT 3 * + + 15 AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5942
SELECT + 98 + + COUNT( * ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-5942
SELECT + 98 + + COUNT ( * ) AS col0
----
99

query I rowsort
SELECT - - ( + - 34 ) AS col1
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-5944
SELECT ALL + 38 DIV + 16 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-5944
SELECT ALL + 38 / + 16 AS col1
----
2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5945
SELECT DISTINCT COALESCE ( - 91, ( - 36 ) * - 70 DIV + - ( + 1 ) * + + 0 + 24 + + CAST( NULL AS SIGNED ) DIV - + 46 )
----
-91

skipif mysql # not compatible
query I rowsort label-5945
SELECT DISTINCT COALESCE ( - 91, ( - 36 ) * - 70 / + - ( + 1 ) * + + 0 + 24 + + CAST ( NULL AS INTEGER ) / - + 46 )
----
-91

query I rowsort
SELECT DISTINCT - + ( + 48 ) + 6 + + ( - - 90 ) * - - ( + 60 ) AS col0
----
5358

onlyif mysql # DIV for integer division: 
query I rowsort label-5947
SELECT DISTINCT + - 51 * + 78 + - 43 DIV + 44 + - + 19 AS col0
----
-3997

skipif mysql # not compatible
query I rowsort label-5947
SELECT DISTINCT + - 51 * + 78 + - 43 / + 44 + - + 19 AS col0
----
-3997

query I rowsort
SELECT 72 * 72 AS col2
----
5184

onlyif mysql # DIV for integer division: 
query I rowsort label-5949
SELECT ALL + - 9 DIV 35 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5949
SELECT ALL + - 9 / 35 AS col1
----
0

query I rowsort
SELECT ALL - 2 + - 18
----
-20

query I rowsort
SELECT ALL - 86 * - - 35 AS col1
----
-3010

query I rowsort
SELECT - - ( + 38 )
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5953
SELECT ALL + CAST( + 18 AS SIGNED ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-5953
SELECT ALL + CAST ( + 18 AS INTEGER ) AS col1
----
18

query II rowsort
SELECT - 0 AS col0, 26
----
0
26

query II rowsort
SELECT 20, 88 * + 89 AS col2
----
20
7832

query I rowsort
SELECT ALL 76 + + 55 AS col2
----
131

query II rowsort
SELECT ALL 90, 45 AS col2
----
90
45

query II rowsort
SELECT 19, CASE - 70 WHEN + - 68 THEN NULL WHEN + - 37 + + 47 THEN + 10 END + - 38 AS col2
----
19
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5959
SELECT DISTINCT + 92 - + MIN( DISTINCT 64 ) * - ( + 15 ) + + 92 + + 47 + - 45 DIV - 81 + - 10 - + 19 * + 39 + - 77 + 86
----
449

skipif mysql # not compatible
query I rowsort label-5959
SELECT DISTINCT + 92 - + MIN ( DISTINCT 64 ) * - ( + 15 ) + + 92 + + 47 + - 45 / - 81 + - 10 - + 19 * + 39 + - 77 + 86
----
449

query I rowsort
SELECT + 31 * - + ( + + 3 ) * - 72
----
6696

query I rowsort
SELECT DISTINCT 2 - - 21 AS col0
----
23

query II rowsort
SELECT ALL COALESCE ( - 88, - 12 * - 89 ) AS col0, + ( + 89 ) AS col2
----
-88
89

query I rowsort
SELECT DISTINCT 78 * - - 39 AS col2
----
3042

query I rowsort
SELECT - 37 + - 24
----
-61

query I rowsort
SELECT - 96 * + 36
----
-3456

onlyif mysql # DIV for integer division: 
query I rowsort label-5966
SELECT ALL ( - + 87 ) DIV 3
----
-29

skipif mysql # not compatible
query I rowsort label-5966
SELECT ALL ( - + 87 ) / 3
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5967
SELECT + COUNT( * ) DIV - 6 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5967
SELECT + COUNT ( * ) / - 6 AS col2
----
0

query I rowsort
SELECT + COALESCE ( 47, - 43 )
----
47

query I rowsort
SELECT ALL - 80 * + + 54 - + 29
----
-4349

query I rowsort
SELECT ALL 77 * - 81 col0
----
-6237

onlyif mysql # aggregate syntax: 
query I rowsort label-5971
SELECT CASE + - 52 WHEN - 82 THEN + 17 WHEN 2 * - 13 * 98 * + 71 * - 90 * + - CASE - 64 WHEN + 84 THEN NULL WHEN - + 50 * - - NULLIF ( + 53, + + 5 + + + 43 * + + 49 + - + 43 * - 39 * - NULLIF ( 51, + 44 * + 2 ) / - - 67 + - CASE - MAX( ALL 63 ) WHEN - 37 * + + COUNT( * ) THEN NULL WHEN - ( + ( 77 ) ) * - COUNT( * ) THEN NULL ELSE COALESCE ( - + 70, - CASE + NULLIF ( + - 33, + 89 + + 26 / - - 12 - - COUNT( * ) + + CASE 24 WHEN - 48 THEN COUNT( * ) END ) WHEN + 6 / - 4 THEN NULL ELSE 66 END, + 44 + 7 ) END + 94 ) * - 90 THEN + AVG ( DISTINCT ( 94 ) ) - + 72 * 67 END + 59 THEN 46 / - AVG ( DISTINCT + 26 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5971
SELECT CASE + - 52 WHEN - 82 THEN + 17 WHEN 2 * - 13 * 98 * + 71 * - 90 * + - CASE - 64 WHEN + 84 THEN NULL WHEN - + 50 * - - NULLIF ( + 53, + + 5 + + + 43 * + + 49 + - + 43 * - 39 * - NULLIF ( 51, + 44 * + 2 ) / - - 67 + - CASE - MAX ( ALL 63 ) WHEN - 37 * + + COUNT ( * ) THEN NULL WHEN - ( + ( 77 ) ) * - COUNT ( * ) THEN NULL ELSE COALESCE ( - + 70, - CASE + NULLIF ( + - 33, + 89 + + 26 / - - 12 - - COUNT ( * ) + + CASE 24 WHEN - 48 THEN COUNT ( * ) END ) WHEN + 6 / - 4 THEN NULL ELSE 66 END, + 44 + 7 ) END + 94 ) * - 90 THEN + AVG ( DISTINCT ( 94 ) ) - + 72 * 67 END + 59 THEN 46 / - AVG ( DISTINCT + 26 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5972
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - ( 93 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5972
SELECT DISTINCT CAST ( NULL AS REAL ) * - ( 93 ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + NULLIF ( + - 40, + 19 ) AS col0
----
-40

query I rowsort
SELECT 93 * - + ( + - CASE + 95 WHEN + 4 THEN ( - + 89 ) + - - 51 END ) * - 15 + + 14 - + 92
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5975
SELECT DISTINCT NULLIF ( + 92, + + 53 ) * + - 17 * CAST( NULL AS SIGNED ) * + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-5975
SELECT DISTINCT NULLIF ( + 92, + + 53 ) * + - 17 * CAST ( NULL AS INTEGER ) * + 85
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5976
SELECT + 67 DIV - 41 + + + 66 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-5976
SELECT + 67 / - 41 + + + 66 AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5977
SELECT + 88 + - 78 * - - 58 - + COUNT( * )
----
-4437

skipif mysql # not compatible
query I rowsort label-5977
SELECT + 88 + - 78 * - - 58 - + COUNT ( * )
----
-4437

onlyif mysql # aggregate syntax: 
query I rowsort label-5978
SELECT ALL 86 * + + 73 * + ( - 7 ) + + COUNT( * ) + 9
----
-43936

skipif mysql # not compatible
query I rowsort label-5978
SELECT ALL 86 * + + 73 * + ( - 7 ) + + COUNT ( * ) + 9
----
-43936

onlyif mysql # aggregate syntax: 
query I rowsort label-5979
SELECT - 52 + + - COUNT( * ) - - - 16 AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-5979
SELECT - 52 + + - COUNT ( * ) - - - 16 AS col0
----
-69

query I rowsort
SELECT DISTINCT + 9 * + 1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5981
SELECT ALL - 31 * - CASE - CASE + COALESCE ( + 97, - 36, - NULLIF ( - 75, + SUM( + 49 ) * - + 53 + + ( - 19 ) + + 11 ) ) WHEN + 18 THEN - ( - 54 ) * 40 + 28 * + 81 WHEN + ( + 76 ) THEN NULL END WHEN + - COUNT( * ) * + - 89 + CASE + - 75 WHEN + 74 THEN - 97 + + MIN( ALL - + 95 ) * + 82 * - 6 + + - 42 END + + 2 THEN 28 + + - 97 + - + 34 * + - ( CAST( - 98 AS SIGNED ) ) + + ( - NULLIF ( - + 81, - 22 ) ) END + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-5981
SELECT ALL - 31 * - CASE - CASE + COALESCE ( + 97, - 36, - NULLIF ( - 75, + SUM ( + 49 ) * - + 53 + + ( - 19 ) + + 11 ) ) WHEN + 18 THEN - ( - 54 ) * 40 + 28 * + 81 WHEN + ( + 76 ) THEN NULL END WHEN + - COUNT ( * ) * + - 89 + CASE + - 75 WHEN + 74 THEN - 97 + + MIN ( ALL - + 95 ) * + 82 * - 6 + + - 42 END + + 2 THEN 28 + + - 97 + - + 34 * + - ( CAST ( - 98 AS INTEGER ) ) + + ( - NULLIF ( - + 81, - 22 ) ) END + 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5982
SELECT DISTINCT COUNT( * ) * 53 + - - 73
----
126

skipif mysql # not compatible
query I rowsort label-5982
SELECT DISTINCT COUNT ( * ) * 53 + - - 73
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-5983
SELECT ALL + + NULLIF ( - NULLIF ( + 89, 97 + + + 57 * + COUNT( * ) ), + 66 ) * ( 54 ) + NULLIF ( - 62, - COUNT( * ) )
----
-4868

skipif mysql # not compatible
query I rowsort label-5983
SELECT ALL + + NULLIF ( - NULLIF ( + 89, 97 + + + 57 * + COUNT ( * ) ), + 66 ) * ( 54 ) + NULLIF ( - 62, - COUNT ( * ) )
----
-4868

onlyif mysql # aggregate syntax: 
query I rowsort label-5984
SELECT DISTINCT + + 6 * + 25 * 69 + + 40 + + SUM( ALL + 42 ) AS col1
----
10432

skipif mysql # not compatible
query I rowsort label-5984
SELECT DISTINCT + + 6 * + 25 * 69 + + 40 + + SUM ( ALL + 42 ) AS col1
----
10432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5985
SELECT + + CAST( NULL AS SIGNED ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5985
SELECT + + CAST ( NULL AS INTEGER ) * COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + + 56 * - - ( 61 )
----
3416

query I rowsort
SELECT + 94 + 23 col0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-5988
SELECT + COUNT( * ) + + 38 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-5988
SELECT + COUNT ( * ) + + 38 AS col2
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-5989
SELECT + ( - + 67 ) DIV ( - + 48 )
----
1

skipif mysql # not compatible
query I rowsort label-5989
SELECT + ( - + 67 ) / ( - + 48 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5990
SELECT ALL + 90 - - 97 + - CASE 11 WHEN - - COUNT( * ) * 40 + - 51 THEN - ( + - 51 ) WHEN - 0 THEN NULL END / - 86 - - NULLIF ( - + COUNT( * ), - 32 + + SUM( - 3 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5990
SELECT ALL + 90 - - 97 + - CASE 11 WHEN - - COUNT ( * ) * 40 + - 51 THEN - ( + - 51 ) WHEN - 0 THEN NULL END / - 86 - - NULLIF ( - + COUNT ( * ), - 32 + + SUM ( - 3 ) )
----
NULL

query I rowsort
SELECT COALESCE ( ( + 20 ), COALESCE ( + 1, - 96 + - + 3 * + 14 + + 74 ) )
----
20

query I rowsort
SELECT ALL - ( - 13 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5993
SELECT - + SUM( + - 11 ) + + - 83
----
-72

skipif mysql # not compatible
query I rowsort label-5993
SELECT - + SUM ( + - 11 ) + + - 83
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5994
SELECT ALL - CAST( - 85 AS SIGNED ) * 83 + 49 - - 87 * - 34
----
4146

skipif mysql # not compatible
query I rowsort label-5994
SELECT ALL - CAST ( - 85 AS INTEGER ) * 83 + 49 - - 87 * - 34
----
4146

onlyif mysql # aggregate syntax: 
query II rowsort label-5995
SELECT - - 94 + + COUNT( * ) + + + 73 + 60 AS col1, + SUM( DISTINCT - + 68 ) AS col0
----
228
-68

skipif mysql # not compatible
query II rowsort label-5995
SELECT - - 94 + + COUNT ( * ) + + + 73 + 60 AS col1, + SUM ( DISTINCT - + 68 ) AS col0
----
228
-68

query I rowsort
SELECT ALL ( + - ( 21 ) ) AS col0
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5997
SELECT DISTINCT + COALESCE ( + 18, + - 74 DIV - - CASE - CASE + 18 WHEN - 80 THEN 34 - 69 * - + 93 + 4 ELSE NULL END WHEN + 99 * - 53 THEN + 70 END, + 92 * COUNT( * ) ) * - 35
----
-630

skipif mysql # not compatible
query I rowsort label-5997
SELECT DISTINCT + COALESCE ( + 18, + - 74 / - - CASE - CASE + 18 WHEN - 80 THEN 34 - 69 * - + 93 + 4 ELSE NULL END WHEN + 99 * - 53 THEN + 70 END, + 92 * COUNT ( * ) ) * - 35
----
-630

onlyif mysql # DIV for integer division: 
query I rowsort label-5998
SELECT - 72 - 50 DIV + - 79 * 98 * + 89 * - 65
----
-72

skipif mysql # not compatible
query I rowsort label-5998
SELECT - 72 - 50 / + - 79 * 98 * + 89 * - 65
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5999
SELECT - MAX( 74 ) * + 36 + + 2 AS col0
----
-2662

skipif mysql # not compatible
query I rowsort label-5999
SELECT - MAX ( 74 ) * + 36 + + 2 AS col0
----
-2662

onlyif mysql # aggregate syntax: 
query I rowsort label-6000
SELECT + CASE + 44 WHEN + 94 THEN + - COUNT( - - ( ( - 16 ) ) ) + COUNT( DISTINCT 59 ) * 39 END + - ( + + 26 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6000
SELECT + CASE + 44 WHEN + 94 THEN + - COUNT ( - - ( ( - 16 ) ) ) + COUNT ( DISTINCT 59 ) * 39 END + - ( + + 26 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6001
SELECT ALL + 87 * - + 12 * + COUNT( * ) AS col1, 38 * - ( CAST( + + MAX( - + 40 ) AS SIGNED ) ) * CAST( NULL AS SIGNED ) + + - 38 AS col1
----
-1044
NULL

skipif mysql # not compatible
query II rowsort label-6001
SELECT ALL + 87 * - + 12 * + COUNT ( * ) AS col1, 38 * - ( CAST ( + + MAX ( - + 40 ) AS INTEGER ) ) * CAST ( NULL AS INTEGER ) + + - 38 AS col1
----
-1044
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6002
SELECT - COUNT( * ) * + 37 * + - 48
----
1776

skipif mysql # not compatible
query I rowsort label-6002
SELECT - COUNT ( * ) * + 37 * + - 48
----
1776

query II rowsort
SELECT ALL + 22, 91 AS col0
----
22
91

query I rowsort
SELECT + ( - 96 ) AS col0
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6005
SELECT DISTINCT 82 DIV + 48 + - MIN( DISTINCT 6 )
----
-5

skipif mysql # not compatible
query I rowsort label-6005
SELECT DISTINCT 82 / + 48 + - MIN ( DISTINCT 6 )
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6006
SELECT - 76 * - CASE + + 57 WHEN - 25 + 33 - + CAST( NULL AS SIGNED ) + COUNT( * ) / + - COUNT( * ) THEN NULL WHEN + 41 THEN NULL ELSE + 28 + - COUNT( * ) END * 45 * - 36 + - NULLIF ( + 45, + COUNT( * ) * - 51 ) AS col1
----
-3324285

skipif mysql # not compatible
query I rowsort label-6006
SELECT - 76 * - CASE + + 57 WHEN - 25 + 33 - + CAST ( NULL AS INTEGER ) + COUNT ( * ) / + - COUNT ( * ) THEN NULL WHEN + 41 THEN NULL ELSE + 28 + - COUNT ( * ) END * 45 * - 36 + - NULLIF ( + 45, + COUNT ( * ) * - 51 ) AS col1
----
-3324285

query I rowsort
SELECT + 82 * - 48 AS col2
----
-3936

onlyif mysql # aggregate syntax: 
query II rowsort label-6008
SELECT ( - + SUM( 46 ) ) AS col2, 39 * - 88 col2
----
-46
-3432

skipif mysql # not compatible
query II rowsort label-6008
SELECT ( - + SUM ( 46 ) ) AS col2, 39 * - 88 col2
----
-46
-3432

query I rowsort
SELECT ALL 30 / 70 + - - 9 + - + CASE 58 WHEN - + 1 THEN - 75 END * 91 * NULLIF ( ( - 71 ), - 51 * + 59 ) - - + 7 col1
----
NULL

query I rowsort
SELECT DISTINCT + - 28 col1
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6011
SELECT ALL 34 * 60 * + + CAST( NULL AS SIGNED ) / + ( + + 4 ) + 19 - - + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-6011
SELECT ALL 34 * 60 * + + CAST ( NULL AS INTEGER ) / + ( + + 4 ) + 19 - - + 63
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6012
SELECT + - 16 * 0 - - COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6012
SELECT + - 16 * 0 - - COUNT ( * ) AS col0
----
1

query I rowsort
SELECT ALL - 10 * + 37 col1
----
-370

onlyif mysql # aggregate syntax: 
query I rowsort label-6014
SELECT ALL - 34 * - + ( SUM( + + 82 ) ) + + - ( 39 ) AS col1
----
2749

skipif mysql # not compatible
query I rowsort label-6014
SELECT ALL - 34 * - + ( SUM ( + + 82 ) ) + + - ( 39 ) AS col1
----
2749

query II rowsort
SELECT ALL + 20 * + 80 + 32 AS col0, 11 + - 84
----
1632
-73

query I rowsort
SELECT - 82 + 50 * - - ( + ( + + 83 ) ) * + + 37
----
153468

query I rowsort
SELECT - NULLIF ( + 79, - 66 )
----
-79

query I rowsort
SELECT 50 + - 89
----
-39

query II rowsort
SELECT DISTINCT 68 AS col2, 39 * 30 * + 90 * - 33
----
68
-3474900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6020
SELECT + 18 * - COALESCE ( + 10, + 61 * 18 * + COUNT( * ) + - COUNT( * ) + - - 34 * 89 * - NULLIF ( + CAST( + 52 AS SIGNED ), - 48 ) * - - 43 + + + ( + CAST( NULL AS SIGNED ) ) DIV + 31 * ( + 30 ) + + - 10 ) col0
----
-180

skipif mysql # not compatible
query I rowsort label-6020
SELECT + 18 * - COALESCE ( + 10, + 61 * 18 * + COUNT ( * ) + - COUNT ( * ) + - - 34 * 89 * - NULLIF ( + CAST ( + 52 AS INTEGER ), - 48 ) * - - 43 + + + ( + CAST ( NULL AS INTEGER ) ) / + 31 * ( + 30 ) + + - 10 ) col0
----
-180

query II rowsort
SELECT ALL - 3 * 8 * + 54 AS col1, - 30 * 37 AS col0
----
-1296
-1110

query I rowsort
SELECT DISTINCT 97 - 72 col0
----
25

query I rowsort
SELECT ALL ( - 6 ) AS col1
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6024
SELECT 19 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6024
SELECT 19 - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 59 * + 46 AS col1
----
-2714

query I rowsort
SELECT 50 * - 4 + - - 43 AS col0
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-6027
SELECT ALL NULLIF ( COALESCE ( - 84, - - COUNT( * ), + + 15 * 10 * 60 * 9 ), - - 73 + + + 88 + - 47 * 72 * - COUNT( * ) ) * - - 9
----
-756

skipif mysql # not compatible
query I rowsort label-6027
SELECT ALL NULLIF ( COALESCE ( - 84, - - COUNT ( * ), + + 15 * 10 * 60 * 9 ), - - 73 + + + 88 + - 47 * 72 * - COUNT ( * ) ) * - - 9
----
-756

onlyif mysql # aggregate syntax: 
query I rowsort label-6028
SELECT - 94 - + NULLIF ( + MAX( ( + 35 ) ), 93 )
----
-129

skipif mysql # not compatible
query I rowsort label-6028
SELECT - 94 - + NULLIF ( + MAX ( ( + 35 ) ), 93 )
----
-129

query I rowsort
SELECT - - 53 col0
----
53

query II rowsort
SELECT 11 AS col1, - 85 + - 73 AS col0
----
11
-158

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6031
SELECT 52 DIV - - 34 * + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6031
SELECT 52 / - - 34 * + COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6032
SELECT 23 * - + COUNT( 56 ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-6032
SELECT 23 * - + COUNT ( 56 ) AS col2
----
-23

query I rowsort
SELECT 61 - 86 - - 57
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6034
SELECT 42 DIV COUNT( * ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-6034
SELECT 42 / COUNT ( * ) AS col1
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-6035
SELECT ALL - 29 + 90 DIV - 26 col0
----
-32

skipif mysql # not compatible
query I rowsort label-6035
SELECT ALL - 29 + 90 / - 26 col0
----
-32

query I rowsort
SELECT 48 * + AVG ( + CASE WHEN NOT NULL IS NULL THEN 25 END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6037
SELECT - 87 AS col0, COUNT( 17 ) + + + NULLIF ( + - 16, 93 ) * - + 12
----
-87
193

skipif mysql # not compatible
query II rowsort label-6037
SELECT - 87 AS col0, COUNT ( 17 ) + + + NULLIF ( + - 16, 93 ) * - + 12
----
-87
193

query I rowsort
SELECT ALL + 56 * 48 AS col0
----
2688

onlyif mysql # aggregate syntax: 
query I rowsort label-6039
SELECT ALL - 2 * - MIN( 30 ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-6039
SELECT ALL - 2 * - MIN ( 30 ) AS col2
----
60

query II rowsort
SELECT ALL - 29 + + 52 + + 39 * 39, 48 AS col1
----
1544
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6041
SELECT COUNT( * ) + - 77
----
-76

skipif mysql # not compatible
query I rowsort label-6041
SELECT COUNT ( * ) + - 77
----
-76

query II rowsort
SELECT + 44 AS col1, - 34 + + 69 AS col0
----
44
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6043
SELECT COUNT( - + 62 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6043
SELECT COUNT ( - + 62 ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 66 + 18 + ( 67 ) AS col0
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-6045
SELECT - 53 * + COUNT( * ) + + 35 col1
----
-18

skipif mysql # not compatible
query I rowsort label-6045
SELECT - 53 * + COUNT ( * ) + + 35 col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6046
SELECT ALL - 57 * + - 91 * - COUNT( * ) AS col0
----
-5187

skipif mysql # not compatible
query I rowsort label-6046
SELECT ALL - 57 * + - 91 * - COUNT ( * ) AS col0
----
-5187

query II rowsort
SELECT + 53 AS col2, + 13 * + + 77 + - 4
----
53
997

onlyif mysql # aggregate syntax: 
query I rowsort label-6048
SELECT ALL + 93 + SUM( + 29 ) * + 85 + 42
----
2600

skipif mysql # not compatible
query I rowsort label-6048
SELECT ALL + 93 + SUM ( + 29 ) * + 85 + 42
----
2600

query II rowsort
SELECT + 55 col2, 76 AS col1
----
55
76

query I rowsort
SELECT 66 + + - 62 + + 40 + + - 40 AS col2
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-6051
SELECT ALL - 66 + + 82 + - 21 DIV ( + 66 )
----
16

skipif mysql # not compatible
query I rowsort label-6051
SELECT ALL - 66 + + 82 + - 21 / ( + 66 )
----
16

query I rowsort
SELECT 47 + + 51 * 69 * 24
----
84503

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6053
SELECT ALL - - ( - 11 ) AS col2, - COUNT( * ) * + 0 * CAST( - 42 AS SIGNED ) - - COUNT( * ) + - - 46 + - + 78 * - ( SUM( DISTINCT + 80 ) ) * + + 40
----
-11
249647

skipif mysql # not compatible
query II rowsort label-6053
SELECT ALL - - ( - 11 ) AS col2, - COUNT ( * ) * + 0 * CAST ( - 42 AS INTEGER ) - - COUNT ( * ) + - - 46 + - + 78 * - ( SUM ( DISTINCT + 80 ) ) * + + 40
----
-11
249647

onlyif mysql # aggregate syntax: 
query I rowsort label-6054
SELECT 70 * - + COUNT( * ) + + COUNT( * ) - + 49 * + 99 AS col2
----
-4920

skipif mysql # not compatible
query I rowsort label-6054
SELECT 70 * - + COUNT ( * ) + + COUNT ( * ) - + 49 * + 99 AS col2
----
-4920

onlyif mysql # DIV for integer division: 
query II rowsort label-6055
SELECT ALL 40 DIV + 74, + 17 AS col2
----
0
17

skipif mysql # not compatible
query II rowsort label-6055
SELECT ALL 40 / + 74, + 17 AS col2
----
0
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6056
SELECT DISTINCT - SUM( + 37 ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-6056
SELECT DISTINCT - SUM ( + 37 ) AS col1
----
-37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6057
SELECT ALL + + CAST( NULL AS DECIMAL ) - + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-6057
SELECT ALL + + CAST ( NULL AS REAL ) - + 56
----
NULL

query II rowsort
SELECT - 84, + 70 AS col2
----
-84
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6059
SELECT + CASE + - 81 WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN - + 83 / + 79 * + 65 THEN + 80 ELSE - - COUNT( * ) END col0
----
1

skipif mysql # not compatible
query I rowsort label-6059
SELECT + CASE + - 81 WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN - + 83 / + 79 * + 65 THEN + 80 ELSE - - COUNT ( * ) END col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6060
SELECT ALL - COUNT( * ) DIV - COALESCE ( + 33, CASE - 73 WHEN NULLIF ( - 9, COUNT( * ) ) * + 92 * NULLIF ( - 59, 40 ) * 40 * - 31 THEN - 16 WHEN + + 3 THEN 18 WHEN 77 + + + COUNT( * ) - 83 THEN NULL END, 73, 34 ) + 32 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-6060
SELECT ALL - COUNT ( * ) / - COALESCE ( + 33, CASE - 73 WHEN NULLIF ( - 9, COUNT ( * ) ) * + 92 * NULLIF ( - 59, 40 ) * 40 * - 31 THEN - 16 WHEN + + 3 THEN 18 WHEN 77 + + + COUNT ( * ) - 83 THEN NULL END, 73, 34 ) + 32 AS col0
----
32

onlyif mysql # DIV for integer division: 
query II rowsort label-6061
SELECT + 67 DIV 24, - 87 AS col2
----
2
-87

skipif mysql # not compatible
query II rowsort label-6061
SELECT + 67 / 24, - 87 AS col2
----
2
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-6062
SELECT COUNT( * ) * + 48 AS col1, + 3
----
48
3

skipif mysql # not compatible
query II rowsort label-6062
SELECT COUNT ( * ) * + 48 AS col1, + 3
----
48
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT - CASE - 51 WHEN 98 + + ( + COALESCE ( 57, + + 27 + 20 + + ( 11 ) ) ) + + 66 THEN - COUNT( * ) WHEN - 53 THEN - COUNT( * ) - + - 4 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6063
SELECT - CASE - 51 WHEN 98 + + ( + COALESCE ( 57, + + 27 + 20 + + ( 11 ) ) ) + + 66 THEN - COUNT ( * ) WHEN - 53 THEN - COUNT ( * ) - + - 4 END AS col0
----
NULL

query I rowsort
SELECT + - COALESCE ( - ( + - ( - + 85 ) ), - 44 * - ( - - 95 ) + + 97 ) AS col0
----
85

query I rowsort
SELECT + ( - 76 ) + - ( - 62 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6066
SELECT DISTINCT - 65 * 33 * COUNT( * )
----
-2145

skipif mysql # not compatible
query I rowsort label-6066
SELECT DISTINCT - 65 * 33 * COUNT ( * )
----
-2145

onlyif mysql # DIV for integer division: 
query I rowsort label-6067
SELECT ALL - 54 DIV 22 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-6067
SELECT ALL - 54 / 22 AS col1
----
-2

query I rowsort
SELECT DISTINCT + - ( - - ( + + 61 ) ) - + 73 - - 49
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6069
SELECT - 16 + COUNT( * ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-6069
SELECT - 16 + COUNT ( * ) AS col1
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6070
SELECT ALL - 85 AS col1, - 90 * - CAST( NULL AS SIGNED )
----
-85
NULL

skipif mysql # not compatible
query II rowsort label-6070
SELECT ALL - 85 AS col1, - 90 * - CAST ( NULL AS INTEGER )
----
-85
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6071
SELECT DISTINCT - 5 * + MAX( - - CAST( NULL AS DECIMAL ) ) / + MIN( - 79 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6071
SELECT DISTINCT - 5 * + MAX ( - - CAST ( NULL AS REAL ) ) / + MIN ( - 79 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6072
SELECT ALL ( - - ( + + 25 ) ) DIV + - 17
----
-1

skipif mysql # not compatible
query I rowsort label-6072
SELECT ALL ( - - ( + + 25 ) ) / + - 17
----
-1

query I rowsort
SELECT + 39 * - 79 AS col2
----
-3081

onlyif mysql # aggregate syntax: 
query I rowsort label-6074
SELECT + COUNT( - - 53 ) + + 25 * - 40 * + 91
----
-90999

skipif mysql # not compatible
query I rowsort label-6074
SELECT + COUNT ( - - 53 ) + + 25 * - 40 * + 91
----
-90999

onlyif mysql # aggregate syntax: 
query I rowsort label-6075
SELECT + NULLIF ( MIN( + 19 ), - COUNT( * ) * 61 - - 67 )
----
19

skipif mysql # not compatible
query I rowsort label-6075
SELECT + NULLIF ( MIN ( + 19 ), - COUNT ( * ) * 61 - - 67 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6076
SELECT 61 + + 13 + + COUNT( * ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-6076
SELECT 61 + + 13 + + COUNT ( * ) AS col1
----
75

query I rowsort
SELECT 32 * - 8 col1
----
-256

query II rowsort
SELECT ALL 78 + - - 57 col2, + 70
----
135
70

onlyif mysql # aggregate syntax: 
query II rowsort label-6079
SELECT ( + 93 ) + - + MIN( + 80 ) + - 35 AS col1, - CASE 68 WHEN - 44 * - ( - + ( - 33 ) ) / + 92 THEN 77 + - 2 - + 38 / - - 4 END + COALESCE ( 65, + 57, 62, + AVG ( DISTINCT + 1 ) + - 53 ) AS col0
----
-22
NULL

skipif mysql # not compatible
query II rowsort label-6079
SELECT ( + 93 ) + - + MIN ( + 80 ) + - 35 AS col1, - CASE 68 WHEN - 44 * - ( - + ( - 33 ) ) / + 92 THEN 77 + - 2 - + 38 / - - 4 END + COALESCE ( 65, + 57, 62, + AVG ( DISTINCT + 1 ) + - 53 ) AS col0
----
-22
NULL

query I rowsort
SELECT DISTINCT 77 + + 1 AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6081
SELECT COUNT( * ) * 70 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-6081
SELECT COUNT ( * ) * 70 AS col0
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-6082
SELECT 92 + 56 DIV + - 70 + + 90
----
182

skipif mysql # not compatible
query I rowsort label-6082
SELECT 92 + 56 / + - 70 + + 90
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-6083
SELECT - SUM( DISTINCT + - 32 )
----
32

skipif mysql # not compatible
query I rowsort label-6083
SELECT - SUM ( DISTINCT + - 32 )
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6084
SELECT ALL + 98 + - 85 + - 68 AS col2, - SUM( + - COALESCE ( - - COALESCE ( + 17, ( - + 13 ) ), ( - CAST( NULL AS SIGNED ) ), 46 ) ) + - + 77 * 55 col2
----
-55
-4218

skipif mysql # not compatible
query II rowsort label-6084
SELECT ALL + 98 + - 85 + - 68 AS col2, - SUM ( + - COALESCE ( - - COALESCE ( + 17, ( - + 13 ) ), ( - CAST ( NULL AS INTEGER ) ), 46 ) ) + - + 77 * 55 col2
----
-55
-4218

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6085
SELECT ALL + - 42 * - 33 + ( + 84 ) + + - 42 DIV - 4 + + 59 + + 93 * + + ( - 35 ) AS col0, - COUNT( * ) * + - MIN( DISTINCT 21 )
----
-1716
21

skipif mysql # not compatible
query II rowsort label-6085
SELECT ALL + - 42 * - 33 + ( + 84 ) + + - 42 / - 4 + + 59 + + 93 * + + ( - 35 ) AS col0, - COUNT ( * ) * + - MIN ( DISTINCT 21 )
----
-1716
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6086
SELECT COUNT( * ) DIV - 10 - + 24, 48 + + COUNT( * ) col0
----
-24
49

skipif mysql # not compatible
query II rowsort label-6086
SELECT COUNT ( * ) / - 10 - + 24, 48 + + COUNT ( * ) col0
----
-24
49

onlyif mysql # aggregate syntax: 
query II rowsort label-6087
SELECT + MIN( ALL - 10 ) AS col1, - 49
----
-10
-49

skipif mysql # not compatible
query II rowsort label-6087
SELECT + MIN ( ALL - 10 ) AS col1, - 49
----
-10
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6088
SELECT ALL - COUNT( ALL + 97 ) * - ( - 40 )
----
-40

skipif mysql # not compatible
query I rowsort label-6088
SELECT ALL - COUNT ( ALL + 97 ) * - ( - 40 )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6089
SELECT + ( - MAX( DISTINCT - 37 ) ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-6089
SELECT + ( - MAX ( DISTINCT - 37 ) ) AS col2
----
37

query I rowsort
SELECT - 73 * + 7 AS col0
----
-511

query II rowsort
SELECT DISTINCT - - 37 * 10 * COALESCE ( + 1, COALESCE ( - 54, + 95 ) + 46 ) AS col2, + 39
----
370
39

query I rowsort
SELECT ALL + - 57 col2
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6093
SELECT ALL + - NULLIF ( - + 46, 70 + + NULLIF ( 83, + ( + + 21 ) ) * - CAST( NULL AS SIGNED ) )
----
46

skipif mysql # not compatible
query I rowsort label-6093
SELECT ALL + - NULLIF ( - + 46, 70 + + NULLIF ( 83, + ( + + 21 ) ) * - CAST ( NULL AS INTEGER ) )
----
46

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6094
SELECT DISTINCT + 68 * + MIN( ALL + - 2 ) - + COALESCE ( + - 96, 3, COUNT( * ) ) + + - COALESCE ( + 51, NULLIF ( + - 44, CASE - 37 WHEN - 49 THEN NULL WHEN 36 / + 40 THEN NULL ELSE CASE - 46 WHEN + 76 THEN COUNT( * ) * - 19 WHEN + - 81 THEN + COUNT( * ) WHEN - 50 THEN + 78 END * + NULLIF ( 89, - 64 / - 63 ) END - - MAX( ALL 11 ) ) ) / - - CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6094
SELECT DISTINCT + 68 * + MIN ( ALL + - 2 ) - + COALESCE ( + - 96, 3, COUNT ( * ) ) + + - COALESCE ( + 51, NULLIF ( + - 44, CASE - 37 WHEN - 49 THEN NULL WHEN 36 / + 40 THEN NULL ELSE CASE - 46 WHEN + 76 THEN COUNT ( * ) * - 19 WHEN + - 81 THEN + COUNT ( * ) WHEN - 50 THEN + 78 END * + NULLIF ( 89, - 64 / - 63 ) END - - MAX ( ALL 11 ) ) ) / - - CAST ( NULL AS REAL ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6095
SELECT 81 * + 79 * - COUNT( * ) / CAST( NULL AS SIGNED ) * + - COALESCE ( - - 89, - 86 * + - COUNT( * ) ) + 33 - - 38, ( + 85 ) AS col1
----
NULL
85

skipif mysql # not compatible
query II rowsort label-6095
SELECT 81 * + 79 * - COUNT ( * ) / CAST ( NULL AS INTEGER ) * + - COALESCE ( - - 89, - 86 * + - COUNT ( * ) ) + 33 - - 38, ( + 85 ) AS col1
----
NULL
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6096
SELECT - 28 * MAX( DISTINCT - - 52 )
----
-1456

skipif mysql # not compatible
query I rowsort label-6096
SELECT - 28 * MAX ( DISTINCT - - 52 )
----
-1456

onlyif mysql # aggregate syntax: 
query I rowsort label-6097
SELECT - + COUNT( * ) * + MIN( + + 80 ) - + 42 * ( + - 40 ) * - 9 + - COUNT( * ) col2
----
-15201

skipif mysql # not compatible
query I rowsort label-6097
SELECT - + COUNT ( * ) * + MIN ( + + 80 ) - + 42 * ( + - 40 ) * - 9 + - COUNT ( * ) col2
----
-15201

onlyif mysql # aggregate syntax: 
query I rowsort label-6098
SELECT - 76 * + COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-6098
SELECT - 76 * + COUNT ( * )
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6099
SELECT - - COUNT( + - 68 ) + - COALESCE ( 9, + 28 + 83, - + CASE - 10 WHEN - + 37 THEN + SUM( ALL - 63 ) END * 70, + + CAST( NULL AS SIGNED ) + - 15 + - 71 ) * - 62
----
559

skipif mysql # not compatible
query I rowsort label-6099
SELECT - - COUNT ( + - 68 ) + - COALESCE ( 9, + 28 + 83, - + CASE - 10 WHEN - + 37 THEN + SUM ( ALL - 63 ) END * 70, + + CAST ( NULL AS INTEGER ) + - 15 + - 71 ) * - 62
----
559

onlyif mysql # aggregate syntax: 
query I rowsort label-6100
SELECT + - CASE + COUNT( * ) WHEN + - 28 + + 92 THEN - ( 65 ) / - - 16 / - 91 * 32 * + + 60 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6100
SELECT + - CASE + COUNT ( * ) WHEN + - 28 + + 92 THEN - ( 65 ) / - - 16 / - 91 * 32 * + + 60 END
----
NULL

query I rowsort
SELECT DISTINCT + - 20 + + - 16 * - 79 + - 67
----
1177

onlyif mysql # DIV for integer division: 
query I rowsort label-6102
SELECT - 67 DIV + 60 col2
----
-1

skipif mysql # not compatible
query I rowsort label-6102
SELECT - 67 / + 60 col2
----
-1

query I rowsort
SELECT ALL 78 + - 94
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6104
SELECT ALL COALESCE ( + - 94, COUNT( * ) + + 55 * - ( + - 18 ), 52 ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-6104
SELECT ALL COALESCE ( + - 94, COUNT ( * ) + + 55 * - ( + - 18 ), 52 ) AS col0
----
-94

query I rowsort
SELECT + 33 * 22 + 77 * + + 21 + - 96 + - 55
----
2192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6106
SELECT DISTINCT - CAST( - 70 AS SIGNED ) + - COUNT( DISTINCT 82 ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-6106
SELECT DISTINCT - CAST ( - 70 AS INTEGER ) + - COUNT ( DISTINCT 82 ) AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6107
SELECT ALL + COUNT( * ) + + 52 - + 14 * + 99 * MAX( ALL - + 87 ) AS col2
----
120635

skipif mysql # not compatible
query I rowsort label-6107
SELECT ALL + COUNT ( * ) + + 52 - + 14 * + 99 * MAX ( ALL - + 87 ) AS col2
----
120635

onlyif mysql # aggregate syntax: 
query I rowsort label-6108
SELECT - 24 - COUNT( * ) + - + 66 col2
----
-91

skipif mysql # not compatible
query I rowsort label-6108
SELECT - 24 - COUNT ( * ) + - + 66 col2
----
-91

query II rowsort
SELECT 73 col1, + 9 AS col0
----
73
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6110
SELECT - COUNT( * ) DIV - - 43
----
0

skipif mysql # not compatible
query I rowsort label-6110
SELECT - COUNT ( * ) / - - 43
----
0

query I rowsort
SELECT - 59 + - 57 AS col1
----
-116

query I rowsort
SELECT - ( 68 ) AS col1
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6113
SELECT + CAST( + 35 AS SIGNED ) - + 90 AS col1, + NULLIF ( - - NULLIF ( - NULLIF ( + 8, - ( - + 49 ) ), - + MIN( - - 64 ) * 22 ), 8 )
----
-55
-8

skipif mysql # not compatible
query II rowsort label-6113
SELECT + CAST ( + 35 AS INTEGER ) - + 90 AS col1, + NULLIF ( - - NULLIF ( - NULLIF ( + 8, - ( - + 49 ) ), - + MIN ( - - 64 ) * 22 ), 8 )
----
-55
-8

query I rowsort
SELECT DISTINCT 70 * + 96
----
6720

query I rowsort
SELECT ALL 29 - - 95 * 8 - - 0 AS col2
----
789

onlyif mysql # aggregate syntax: 
query II rowsort label-6116
SELECT 89 AS col1, MAX( ALL 69 )
----
89
69

skipif mysql # not compatible
query II rowsort label-6116
SELECT 89 AS col1, MAX ( ALL 69 )
----
89
69

query I rowsort
SELECT + 91 * + 37
----
3367

onlyif mysql # aggregate syntax: 
query I rowsort label-6118
SELECT 68 * 1 + - 90 + + + SUM( + 5 ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-6118
SELECT 68 * 1 + - 90 + + + SUM ( + 5 ) AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6119
SELECT - COUNT( * ) - 11
----
-12

skipif mysql # not compatible
query I rowsort label-6119
SELECT - COUNT ( * ) - 11
----
-12

query I rowsort
SELECT ALL + + ( + 98 ) AS col1
----
98

query II rowsort
SELECT DISTINCT + + 86, 48 AS col2
----
86
48

query I rowsort
SELECT ALL + - NULLIF ( 6, + - 19 ) * - CASE + AVG ( + + 78 ) WHEN - - 83 THEN NULL WHEN + 35 / + ( + - 82 ) THEN - - 65 * + + COALESCE ( + 66, + - 95 ) ELSE NULL END
----
NULL

query I rowsort
SELECT - 34 + 81 + + 69 * - CASE + 55 WHEN + CASE + 29 WHEN 74 THEN + ( 6 ) ELSE 53 END THEN NULL ELSE + 60 * ( 36 ) END + - 92 AS col1
----
-149085

query I rowsort
SELECT ALL + 80 * 24 AS col0
----
1920

onlyif mysql # DIV for integer division: 
query I rowsort label-6125
SELECT + 74 * - + 65 * - 36 + 57 DIV + - 8
----
173153

skipif mysql # not compatible
query I rowsort label-6125
SELECT + 74 * - + 65 * - 36 + 57 / + - 8
----
173153

query I rowsort
SELECT DISTINCT + + 52 AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6127
SELECT DISTINCT - 62 * COUNT( * ) / ( + 23 ) * 83 + + CASE + - 38 WHEN - ( 46 ) THEN - ( 19 ) WHEN - 26 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6127
SELECT DISTINCT - 62 * COUNT ( * ) / ( + 23 ) * 83 + + CASE + - 38 WHEN - ( 46 ) THEN - ( 19 ) WHEN - 26 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT ALL - 27 * + - 36 + - 83 + - 86 + 52 - 78 - + - 8 * + 66 * 98 + - + ( 26 ) * 68 * 9
----
36609

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT DISTINCT + - COALESCE ( + CASE 80 WHEN - 76 - + 52 THEN + - MIN( + 29 ) ELSE NULL END, + 99 ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-6129
SELECT DISTINCT + - COALESCE ( + CASE 80 WHEN - 76 - + 52 THEN + - MIN ( + 29 ) ELSE NULL END, + 99 ) AS col0
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6130
SELECT DISTINCT - 66 * + 53 * + - 78 * 29 + + COALESCE ( + 85, - NULLIF ( 53, 58 + COUNT( * ) + 19 ) DIV - - 26 * + - 5 * 2 ) AS col0
----
7912561

skipif mysql # not compatible
query I rowsort label-6130
SELECT DISTINCT - 66 * + 53 * + - 78 * 29 + + COALESCE ( + 85, - NULLIF ( 53, 58 + COUNT ( * ) + 19 ) / - - 26 * + - 5 * 2 ) AS col0
----
7912561

onlyif mysql # aggregate syntax: 
query I rowsort label-6131
SELECT NULLIF ( - 12, 32 * + 33 - - 66 + - - 14 + - COUNT( - 67 ) + - 27 )
----
-12

skipif mysql # not compatible
query I rowsort label-6131
SELECT NULLIF ( - 12, 32 * + 33 - - 66 + - - 14 + - COUNT ( - 67 ) + - 27 )
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6132
SELECT NULLIF ( 3, CASE 85 WHEN - COALESCE ( 33, + - 25 * - 65 * - 75, + 8 / + + 60 + - 13 + - 54 / - 99 * + - 34 * - 17 ) * + ( 50 ) THEN NULL WHEN - 98 * + 14 + + + 2 THEN NULL ELSE ( CAST( NULL AS SIGNED ) ) * 89 * + 24 END )
----
3

skipif mysql # not compatible
query I rowsort label-6132
SELECT NULLIF ( 3, CASE 85 WHEN - COALESCE ( 33, + - 25 * - 65 * - 75, + 8 / + + 60 + - 13 + - 54 / - 99 * + - 34 * - 17 ) * + ( 50 ) THEN NULL WHEN - 98 * + 14 + + + 2 THEN NULL ELSE ( CAST ( NULL AS INTEGER ) ) * 89 * + 24 END )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6133
SELECT DISTINCT - 33 * 3 + + - ( + COUNT( * ) ) * CAST( NULL AS SIGNED ) + 27 / + CASE COUNT( * ) WHEN 33 * + 43 * 61 * - + 97 + + - 47 - 68 + - 91 THEN - 3 + - 9 + 93 ELSE NULL END / + NULLIF ( + + 26, - + 84 * + COUNT( * ) ) * + - COUNT( * ) + - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-6133
SELECT DISTINCT - 33 * 3 + + - ( + COUNT ( * ) ) * CAST ( NULL AS INTEGER ) + 27 / + CASE COUNT ( * ) WHEN 33 * + 43 * 61 * - + 97 + + - 47 - 68 + - 91 THEN - 3 + - 9 + 93 ELSE NULL END / + NULLIF ( + + 26, - + 84 * + COUNT ( * ) ) * + - COUNT ( * ) + - 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6134
SELECT - 1 + - 16 - - SUM( DISTINCT + 35 ) + + 36 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-6134
SELECT - 1 + - 16 - - SUM ( DISTINCT + 35 ) + + 36 AS col0
----
54

query I rowsort
SELECT - 7 - + - 64 * - 36
----
-2311

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6136
SELECT + ( - + 91 ) * + - CASE ( - - CAST( NULL AS SIGNED ) ) WHEN + 38 THEN NULL WHEN + COUNT( * ) THEN + 44 END + - + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-6136
SELECT + ( - + 91 ) * + - CASE ( - - CAST ( NULL AS INTEGER ) ) WHEN + 38 THEN NULL WHEN + COUNT ( * ) THEN + 44 END + - + 77
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6137
SELECT ALL + 7 DIV - 89 AS col0, 2 AS col1
----
0
2

skipif mysql # not compatible
query II rowsort label-6137
SELECT ALL + 7 / - 89 AS col0, 2 AS col1
----
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6138
SELECT - CASE - - 70 WHEN - 7 THEN + COUNT( * ) ELSE - 78 END + + - 99 * 3 * + COALESCE ( 79, - COUNT( * ) )
----
-23385

skipif mysql # not compatible
query I rowsort label-6138
SELECT - CASE - - 70 WHEN - 7 THEN + COUNT ( * ) ELSE - 78 END + + - 99 * 3 * + COALESCE ( 79, - COUNT ( * ) )
----
-23385

onlyif mysql # aggregate syntax: 
query I rowsort label-6139
SELECT DISTINCT ( COUNT( * ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-6139
SELECT DISTINCT ( COUNT ( * ) ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6140
SELECT - COUNT( DISTINCT - + 95 ) + + ( 99 )
----
98

skipif mysql # not compatible
query I rowsort label-6140
SELECT - COUNT ( DISTINCT - + 95 ) + + ( 99 )
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6141
SELECT - ( ( + + CAST( NULL AS SIGNED ) ) ) * + 68 / - + 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6141
SELECT - ( ( + + CAST ( NULL AS INTEGER ) ) ) * + 68 / - + 61 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6142
SELECT ALL + 7 * - - COUNT( * ) * COALESCE ( - - 19, + 87 * - 95 + 2 + 48 ) col2
----
133

skipif mysql # not compatible
query I rowsort label-6142
SELECT ALL + 7 * - - COUNT ( * ) * COALESCE ( - - 19, + 87 * - 95 + 2 + 48 ) col2
----
133

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6143
SELECT 92 + + 46 + - 33 + + + 86 DIV - ( + 7 ) - + COUNT( * ) * ( + 92 ) * 35 + + 6
----
-3121

skipif mysql # not compatible
query I rowsort label-6143
SELECT 92 + + 46 + - 33 + + + 86 / - ( + 7 ) - + COUNT ( * ) * ( + 92 ) * 35 + + 6
----
-3121

onlyif mysql # aggregate syntax: 
query I rowsort label-6144
SELECT 63 * - MIN( + - 71 )
----
4473

skipif mysql # not compatible
query I rowsort label-6144
SELECT 63 * - MIN ( + - 71 )
----
4473

query I rowsort
SELECT 2 + + 50 AS col0
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-6146
SELECT 8 DIV + 40 * - 38
----
0

skipif mysql # not compatible
query I rowsort label-6146
SELECT 8 / + 40 * - 38
----
0

query I rowsort
SELECT ALL - COALESCE ( 63, 9 * 26 )
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6148
SELECT + CAST( SUM( ALL + 35 ) AS SIGNED )
----
35

skipif mysql # not compatible
query I rowsort label-6148
SELECT + CAST ( SUM ( ALL + 35 ) AS INTEGER )
----
35

query II rowsort
SELECT DISTINCT - - ( 99 ) AS col2, 29 AS col1
----
99
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6150
SELECT ALL - 86 * + COUNT( * ) + - 11
----
-97

skipif mysql # not compatible
query I rowsort label-6150
SELECT ALL - 86 * + COUNT ( * ) + - 11
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6151
SELECT COUNT( ALL - 87 ) * 33 + - - ( - 41 )
----
-8

skipif mysql # not compatible
query I rowsort label-6151
SELECT COUNT ( ALL - 87 ) * 33 + - - ( - 41 )
----
-8

query I rowsort
SELECT ALL 52 * - 35
----
-1820

onlyif mysql # DIV for integer division: 
query I rowsort label-6153
SELECT 95 DIV + 21 - 61
----
-57

skipif mysql # not compatible
query I rowsort label-6153
SELECT 95 / + 21 - 61
----
-57

query I rowsort
SELECT ALL 79 + - - ( - 58 ) AS col1
----
21

query I rowsort
SELECT 73 * 69 AS col2
----
5037

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6156
SELECT ALL CAST( + 97 AS SIGNED ) + 63
----
160

skipif mysql # not compatible
query I rowsort label-6156
SELECT ALL CAST ( + 97 AS INTEGER ) + 63
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-6157
SELECT ALL + 60 + + 36 + - 48 + - ( - + MAX( + 27 ) ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-6157
SELECT ALL + 60 + + 36 + - 48 + - ( - + MAX ( + 27 ) ) AS col2
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-6158
SELECT DISTINCT 64 + - - 96 + - 37 * + - 3 - - - 46 DIV 60 AS col0
----
271

skipif mysql # not compatible
query I rowsort label-6158
SELECT DISTINCT 64 + - - 96 + - 37 * + - 3 - - - 46 / 60 AS col0
----
271

query II rowsort
SELECT + 61 AS col0, - 75
----
61
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-6160
SELECT 61 DIV - 79
----
0

skipif mysql # not compatible
query I rowsort label-6160
SELECT 61 / - 79
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6161
SELECT ALL 2 + ( - COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6161
SELECT ALL 2 + ( - COUNT ( * ) ) AS col2
----
1

query I rowsort
SELECT 32 * + 58 AS col2
----
1856

query I rowsort
SELECT - 25 * - + 46 + 96 AS col1
----
1246

query II rowsort
SELECT + 70 col1, - 40 AS col0
----
70
-40

query I rowsort
SELECT DISTINCT - 84 * - 89 AS col2
----
7476

onlyif mysql # aggregate syntax: 
query I rowsort label-6166
SELECT 51 + + COUNT( * ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-6166
SELECT 51 + + COUNT ( * ) AS col0
----
52

query I rowsort
SELECT 86 * - 49
----
-4214

query I rowsort
SELECT DISTINCT + 20 * - 74
----
-1480

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6169
SELECT DISTINCT - 66 - + 96 DIV - + 35, + SUM( + 32 ) col0
----
-64
32

skipif mysql # not compatible
query II rowsort label-6169
SELECT DISTINCT - 66 - + 96 / - + 35, + SUM ( + 32 ) col0
----
-64
32

query I rowsort
SELECT ALL + 11 * + - 16
----
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-6171
SELECT ALL - 48 - ( + COUNT( * ) ) + + 33 * + 64 + + 93 AS col2
----
2156

skipif mysql # not compatible
query I rowsort label-6171
SELECT ALL - 48 - ( + COUNT ( * ) ) + + 33 * + 64 + + 93 AS col2
----
2156

query I rowsort
SELECT DISTINCT 94 * + 21 * 67 AS col2
----
132258

query I rowsort
SELECT 11 * - - 29 * - - 9
----
2871

query I rowsort
SELECT 82 + - 81 * + 1 + 77 AS col1
----
78

query I rowsort
SELECT DISTINCT - 58 * 33 * + 42
----
-80388

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT ALL - 49 * - ( + 74 * + COUNT( DISTINCT 91 * - 40 ) ) col0
----
3626

skipif mysql # not compatible
query I rowsort label-6176
SELECT ALL - 49 * - ( + 74 * + COUNT ( DISTINCT 91 * - 40 ) ) col0
----
3626

query I rowsort
SELECT 1 * 59
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-6178
SELECT ALL - 77 DIV + 71 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6178
SELECT ALL - 77 / + 71 AS col0
----
-1

query I rowsort
SELECT 7 - ( 13 )
----
-6

query I rowsort
SELECT 17 - 53 col1
----
-36

query I rowsort
SELECT ALL 4 + - 80
----
-76

query I rowsort
SELECT 26 * 93 AS col2
----
2418

query I rowsort
SELECT 97 + 6 AS col0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-6184
SELECT DISTINCT - 32 + COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-6184
SELECT DISTINCT - 32 + COUNT ( * )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6185
SELECT MAX( + ( - 31 ) )
----
-31

skipif mysql # not compatible
query I rowsort label-6185
SELECT MAX ( + ( - 31 ) )
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-6186
SELECT 78 DIV - 49 + 36 * 45
----
1619

skipif mysql # not compatible
query I rowsort label-6186
SELECT 78 / - 49 + 36 * 45
----
1619

onlyif mysql # aggregate syntax: 
query I rowsort label-6187
SELECT COUNT( * ) * - 44 - - ( + ( 76 ) ) * + 63
----
4744

skipif mysql # not compatible
query I rowsort label-6187
SELECT COUNT ( * ) * - 44 - - ( + ( 76 ) ) * + 63
----
4744

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6188
SELECT COUNT( * ) + + COUNT( - CAST( 19 AS SIGNED ) )
----
2

skipif mysql # not compatible
query I rowsort label-6188
SELECT COUNT ( * ) + + COUNT ( - CAST ( 19 AS INTEGER ) )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6189
SELECT ALL + SUM( DISTINCT 68 ) * CASE - 32 WHEN - 81 + - COUNT( * ) THEN - 80 WHEN ( - 59 ) * MAX( 92 ) THEN ( 8 ) * 45 END + AVG ( DISTINCT - 43 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6189
SELECT ALL + SUM ( DISTINCT 68 ) * CASE - 32 WHEN - 81 + - COUNT ( * ) THEN - 80 WHEN ( - 59 ) * MAX ( 92 ) THEN ( 8 ) * 45 END + AVG ( DISTINCT - 43 )
----
NULL

query I rowsort
SELECT ALL 3 * + 0 + 78 AS col0
----
78

query I rowsort
SELECT 79 * 83 + - 7
----
6550

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6192
SELECT + 21 DIV + COUNT( * ) + NULLIF ( - 44, 96 )
----
-23

skipif mysql # not compatible
query I rowsort label-6192
SELECT + 21 / + COUNT ( * ) + NULLIF ( - 44, 96 )
----
-23

query I rowsort
SELECT DISTINCT 61 * 16 AS col1
----
976

query I rowsort
SELECT 70 + 17 * 64
----
1158

query I rowsort
SELECT 77 * - 34
----
-2618

query I rowsort
SELECT 48 + + 31 AS col1
----
79

query I rowsort
SELECT DISTINCT 13 - - 58
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6198
SELECT MAX( ALL - 53 ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-6198
SELECT MAX ( ALL - 53 ) AS col2
----
-53

query I rowsort
SELECT 67 * - 13 AS col1
----
-871

query I rowsort
SELECT ALL 60 * 57 col2
----
3420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6201
SELECT + ( CAST( - 22 AS SIGNED ) ) + + 24
----
2

skipif mysql # not compatible
query I rowsort label-6201
SELECT + ( CAST ( - 22 AS INTEGER ) ) + + 24
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6202
SELECT + COUNT( * ) * NULLIF ( 44, + 0 + 63 )
----
44

skipif mysql # not compatible
query I rowsort label-6202
SELECT + COUNT ( * ) * NULLIF ( 44, + 0 + 63 )
----
44

query I rowsort
SELECT + ( - 32 ) * 87 col2
----
-2784

onlyif mysql # DIV for integer division: 
query I rowsort label-6204
SELECT - 76 DIV + 49 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6204
SELECT - 76 / + 49 AS col0
----
-1

query I rowsort
SELECT 72 * 58 - - 37 * 13
----
4657

query I rowsort
SELECT DISTINCT 99 * 3
----
297

query I rowsort
SELECT + 64 * ( 85 )
----
5440

onlyif mysql # aggregate syntax: 
query I rowsort label-6208
SELECT ALL SUM( 14 )
----
14

skipif mysql # not compatible
query I rowsort label-6208
SELECT ALL SUM ( 14 )
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6209
SELECT - CASE 3 WHEN + CAST( + 95 AS SIGNED ) THEN NULL WHEN + 51 THEN 34 * - COUNT( * ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6209
SELECT - CASE 3 WHEN + CAST ( + 95 AS INTEGER ) THEN NULL WHEN + 51 THEN 34 * - COUNT ( * ) END col0
----
NULL

query I rowsort
SELECT ALL 46 + NULLIF ( - 95 - + 42 * 64, 16 ) AS col1
----
-2737

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6211
SELECT DISTINCT 5 + - 26 DIV + COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-6211
SELECT DISTINCT 5 + - 26 / + COUNT ( * )
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-6212
SELECT DISTINCT - COALESCE ( - CASE - CASE 10 WHEN + 64 * 31 THEN + 5 * - 18 + - CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) * + ( + 37 ) ELSE NULL END WHEN 13 + - COUNT( * ) THEN 23 DIV + 37 ELSE - 56 END, 77, 97 ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-6212
SELECT DISTINCT - COALESCE ( - CASE - CASE 10 WHEN + 64 * 31 THEN + 5 * - 18 + - CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) * + ( + 37 ) ELSE NULL END WHEN 13 + - COUNT ( * ) THEN 23 / + 37 ELSE - 56 END, 77, 97 ) AS col0
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6213
SELECT ALL - - 28 + + MIN( DISTINCT 60 ) DIV + 89 col1
----
28

skipif mysql # not compatible
query I rowsort label-6213
SELECT ALL - - 28 + + MIN ( DISTINCT 60 ) / + 89 col1
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6214
SELECT - CAST( NULL AS SIGNED ) + 51 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6214
SELECT - CAST ( NULL AS INTEGER ) + 51 col0
----
NULL

query I rowsort
SELECT - - 39 + - 26
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6216
SELECT - CASE - COUNT( * ) WHEN 14 THEN 15 WHEN 60 THEN NULL ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6216
SELECT - CASE - COUNT ( * ) WHEN 14 THEN 15 WHEN 60 THEN NULL ELSE NULL END col0
----
NULL

query I rowsort
SELECT ALL - 59 + + 61
----
2

query I rowsort
SELECT + - 53 * 64 AS col1
----
-3392

query I rowsort
SELECT - - 48 + 99 AS col0
----
147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6220
SELECT - CASE - 35 WHEN CAST( 87 AS SIGNED ) + + 80 THEN NULL WHEN 3 * 91 THEN + 45 ELSE 55 * 8 END + + 75 AS col0
----
-365

skipif mysql # not compatible
query I rowsort label-6220
SELECT - CASE - 35 WHEN CAST ( 87 AS INTEGER ) + + 80 THEN NULL WHEN 3 * 91 THEN + 45 ELSE 55 * 8 END + + 75 AS col0
----
-365

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6221
SELECT - - 4 DIV + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-6221
SELECT - - 4 / + COUNT ( * )
----
4

query I rowsort
SELECT - COALESCE ( 17, 19, 28 ) * 50 col2
----
-850

onlyif mysql # DIV for integer division: 
query I rowsort label-6223
SELECT DISTINCT - 65 + 25 DIV + 20
----
-64

skipif mysql # not compatible
query I rowsort label-6223
SELECT DISTINCT - 65 + 25 / + 20
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6224
SELECT ALL - COUNT( * ) * + 54
----
-54

skipif mysql # not compatible
query I rowsort label-6224
SELECT ALL - COUNT ( * ) * + 54
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6225
SELECT DISTINCT - - 31 * + CASE + CAST( + 13 AS SIGNED ) WHEN + ( 12 ) + - 90 THEN 5 * COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6225
SELECT DISTINCT - - 31 * + CASE + CAST ( + 13 AS INTEGER ) WHEN + ( 12 ) + - 90 THEN 5 * COUNT ( * ) ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6226
SELECT - 61 - 48 DIV + 2
----
-85

skipif mysql # not compatible
query I rowsort label-6226
SELECT - 61 - 48 / + 2
----
-85

query I rowsort
SELECT + 66 * + 95
----
6270

query I rowsort
SELECT ( ( 73 ) ) AS col0
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6229
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - - ( - 7 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6229
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - - ( - 7 ) col0
----
NULL

query I rowsort
SELECT DISTINCT + COALESCE ( - 76, 18 + + 7 * 75 ) AS col1
----
-76

query I rowsort
SELECT + ( + 28 ) - + 63
----
-35

query I rowsort
SELECT ALL + ( - 16 ) col1
----
-16

query I rowsort
SELECT + CASE 2 WHEN - 67 THEN + 2 WHEN 8 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6234
SELECT CASE 29 WHEN - 25 + 59 THEN 67 * 96 + 97 * NULLIF ( 76 - + ( - 10 ), COUNT( 88 ) ) WHEN ( - 48 ) THEN NULL ELSE 6 END AS col1
----
6

skipif mysql # not compatible
query I rowsort label-6234
SELECT CASE 29 WHEN - 25 + 59 THEN 67 * 96 + 97 * NULLIF ( 76 - + ( - 10 ), COUNT ( 88 ) ) WHEN ( - 48 ) THEN NULL ELSE 6 END AS col1
----
6

query I rowsort
SELECT ALL 6 * + 82 * + 96
----
47232

query I rowsort
SELECT + ( - 34 ) AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-6237
SELECT + COUNT( DISTINCT + 47 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6237
SELECT + COUNT ( DISTINCT + 47 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6238
SELECT - COUNT( * ) + - + COALESCE ( + COUNT( * ), - CAST( NULL AS SIGNED ) )
----
-2

skipif mysql # not compatible
query I rowsort label-6238
SELECT - COUNT ( * ) + - + COALESCE ( + COUNT ( * ), - CAST ( NULL AS INTEGER ) )
----
-2

query I rowsort
SELECT ALL 59 * 36
----
2124

query I rowsort
SELECT ALL NULLIF ( - 53, 9 ) * + 10 + NULLIF ( + 66, ( 64 ) * 4 + - NULLIF ( - 52, + CASE + 48 WHEN + 3 / 50 THEN + 0 + 46 ELSE NULL END - + 50 ) )
----
-464

onlyif mysql # aggregate syntax: 
query I rowsort label-6241
SELECT ALL + SUM( - - 77 ) * 89 + - 24
----
6829

skipif mysql # not compatible
query I rowsort label-6241
SELECT ALL + SUM ( - - 77 ) * 89 + - 24
----
6829

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6242
SELECT ALL - 43 * 94 + - 33 * CAST( 80 + COUNT( * ) / - 62 AS SIGNED ) AS col1
----
-6682

skipif mysql # not compatible
query I rowsort label-6242
SELECT ALL - 43 * 94 + - 33 * CAST ( 80 + COUNT ( * ) / - 62 AS INTEGER ) AS col1
----
-6682

query I rowsort
SELECT + 34 * + + 12 AS col0
----
408

query I rowsort
SELECT + 93 + + 46
----
139

query I rowsort
SELECT ALL + COALESCE ( + ( COALESCE ( - 49, 9, + 33 ) ), - 27 ) col2
----
-49

query I rowsort
SELECT DISTINCT 0 + 8 + - 40
----
-32

query I rowsort
SELECT + 75 - 0 * 27 AS col2
----
75

query I rowsort
SELECT ALL + 88 + + 50
----
138

onlyif mysql # DIV for integer division: 
query I rowsort label-6249
SELECT + 88 + 7 DIV ( 35 )
----
88

skipif mysql # not compatible
query I rowsort label-6249
SELECT + 88 + 7 / ( 35 )
----
88

query I rowsort
SELECT + ( 64 ) * ( 38 )
----
2432

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6251
SELECT ALL COUNT( * ) + + 65 + 77 * 48 DIV - 64 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-6251
SELECT ALL COUNT ( * ) + + 65 + 77 * 48 / - 64 AS col0
----
9

query I rowsort
SELECT ALL NULLIF ( + 84, - 2 * + 4 + + 54 * + 1 ) * - 99 AS col2
----
-8316

onlyif mysql # aggregate syntax: 
query I rowsort label-6253
SELECT ALL - + COUNT( * ) + + - COUNT( * ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-6253
SELECT ALL - + COUNT ( * ) + + - COUNT ( * ) AS col0
----
-2

query I rowsort
SELECT + + 42 - 0 + - 4 * 11
----
-2

query I rowsort
SELECT ALL + 36 * + + 90 AS col0
----
3240

query I rowsort
SELECT + - 67 - 87 + - 16
----
-170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6257
SELECT CAST( + CASE + 47 WHEN ( - CAST( NULL AS SIGNED ) ) THEN NULLIF ( 22, - 35 ) * + 77 WHEN + 8 / + COUNT( * ) THEN NULL END AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6257
SELECT CAST ( + CASE + 47 WHEN ( - CAST ( NULL AS INTEGER ) ) THEN NULLIF ( 22, - 35 ) * + 77 WHEN + 8 / + COUNT ( * ) THEN NULL END AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT - + ( + - NULLIF ( + COUNT( * ), 60 * - SUM( - 1 ) ) ) + 10 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-6258
SELECT - + ( + - NULLIF ( + COUNT ( * ), 60 * - SUM ( - 1 ) ) ) + 10 AS col2
----
11

query I rowsort
SELECT - 74 * - - 72
----
-5328

query I rowsort
SELECT + 18 + 23
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-6261
SELECT + - 9 DIV 6 + - 64
----
-65

skipif mysql # not compatible
query I rowsort label-6261
SELECT + - 9 / 6 + - 64
----
-65

query I rowsort
SELECT - 45 + + ( 98 ) AS col1
----
53

query II rowsort
SELECT + 12 AS col1, - COALESCE ( - + 83, - 81 * + 15 + + 34 )
----
12
83

query I rowsort
SELECT ALL + 52 * - - 77 AS col0
----
4004

onlyif mysql # aggregate syntax: 
query I rowsort label-6265
SELECT 76 + - COUNT( * ) + - + 58
----
17

skipif mysql # not compatible
query I rowsort label-6265
SELECT 76 + - COUNT ( * ) + - + 58
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6266
SELECT ALL 37 DIV + ( - MIN( DISTINCT + 50 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6266
SELECT ALL 37 / + ( - MIN ( DISTINCT + 50 ) )
----
0

query I rowsort
SELECT 53 * + 18 * + 97 + 25 col0
----
92563

onlyif mysql # aggregate syntax: 
query I rowsort label-6268
SELECT 85 * + CASE 58 WHEN 49 * 1 THEN - AVG ( + 98 ) WHEN - 18 THEN NULL WHEN - 90 + COUNT( * ) THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6268
SELECT 85 * + CASE 58 WHEN 49 * 1 THEN - AVG ( + 98 ) WHEN - 18 THEN NULL WHEN - 90 + COUNT ( * ) THEN NULL END col2
----
NULL

query I rowsort
SELECT COALESCE ( + 1, + COALESCE ( + 27, - 19 * 16 - + 39, + 17 * + 83 ) ) + 40 col0
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6270
SELECT ALL - CAST( 86 AS SIGNED ) col1
----
-86

skipif mysql # not compatible
query I rowsort label-6270
SELECT ALL - CAST ( 86 AS INTEGER ) col1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-6271
SELECT ALL + 45 + + 56 * SUM( ALL 80 ) * + ( 93 ) + 86
----
416771

skipif mysql # not compatible
query I rowsort label-6271
SELECT ALL + 45 + + 56 * SUM ( ALL 80 ) * + ( 93 ) + 86
----
416771

onlyif mysql # aggregate syntax: 
query I rowsort label-6272
SELECT ALL MIN( ALL + 51 ) + - 27 + - ( + 34 )
----
-10

skipif mysql # not compatible
query I rowsort label-6272
SELECT ALL MIN ( ALL + 51 ) + - 27 + - ( + 34 )
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6273
SELECT ALL CAST( NULL AS SIGNED ) + - ( - ( CAST( NULL AS SIGNED ) ) ) - + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-6273
SELECT ALL CAST ( NULL AS INTEGER ) + - ( - ( CAST ( NULL AS INTEGER ) ) ) - + 98
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6274
SELECT ALL - CAST( NULL AS SIGNED ) AS col2, 34 * - 72 * 40 AS col1
----
NULL
-97920

skipif mysql # not compatible
query II rowsort label-6274
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, 34 * - 72 * 40 AS col1
----
NULL
-97920

query I rowsort
SELECT 17 + - 3 col1
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6276
SELECT + 53, + CAST( NULL AS SIGNED ) AS col1
----
53
NULL

skipif mysql # not compatible
query II rowsort label-6276
SELECT + 53, + CAST ( NULL AS INTEGER ) AS col1
----
53
NULL

query I rowsort
SELECT ALL NULLIF ( + - 0, - - 42 * 13 ) * - 36
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6278
SELECT COUNT( * ) + CAST( - 90 AS SIGNED ) + + 40 DIV + 72
----
-89

skipif mysql # not compatible
query I rowsort label-6278
SELECT COUNT ( * ) + CAST ( - 90 AS INTEGER ) + + 40 / + 72
----
-89

query I rowsort
SELECT ALL + 45 + 65 - + 12 * + 58
----
-586

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6280
SELECT - MAX( DISTINCT 70 ) + 54 - CAST( - ( 35 ) + COUNT( + 81 ) AS SIGNED )
----
18

skipif mysql # not compatible
query I rowsort label-6280
SELECT - MAX ( DISTINCT 70 ) + 54 - CAST ( - ( 35 ) + COUNT ( + 81 ) AS INTEGER )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6281
SELECT + + 28 * + + 36 + - 46 + - MIN( ALL + 86 )
----
876

skipif mysql # not compatible
query I rowsort label-6281
SELECT + + 28 * + + 36 + - 46 + - MIN ( ALL + 86 )
----
876

query II rowsort
SELECT ALL + 37 AS col0, 29 + - - 56
----
37
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6283
SELECT DISTINCT + + CAST( NULL AS SIGNED ) - + 78 + 13 * + 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6283
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) - + 78 + 13 * + 19 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6284
SELECT - MIN( + + 39 )
----
-39

skipif mysql # not compatible
query I rowsort label-6284
SELECT - MIN ( + + 39 )
----
-39

query I rowsort
SELECT 71 + + - 40
----
31

query I rowsort
SELECT DISTINCT + 65 * - 44
----
-2860

onlyif mysql # DIV for integer division: 
query I rowsort label-6287
SELECT + 36 + 38 DIV 10
----
39

skipif mysql # not compatible
query I rowsort label-6287
SELECT + 36 + 38 / 10
----
39

query I rowsort
SELECT 63 + + 76
----
139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6289
SELECT DISTINCT + 83 DIV + 43 - - COUNT( CASE NULLIF ( 14, 45 + + 55 ) WHEN 17 * 3 THEN 21 * 87 WHEN - 53 THEN NULL END )
----
1

skipif mysql # not compatible
query I rowsort label-6289
SELECT DISTINCT + 83 / + 43 - - COUNT ( CASE NULLIF ( 14, 45 + + 55 ) WHEN 17 * 3 THEN 21 * 87 WHEN - 53 THEN NULL END )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6290
SELECT - 76 * - MAX( + 66 ) * ( + 98 DIV 43 ) + 79 col2
----
10111

skipif mysql # not compatible
query I rowsort label-6290
SELECT - 76 * - MAX ( + 66 ) * ( + 98 / 43 ) + 79 col2
----
10111

onlyif mysql # aggregate syntax: 
query I rowsort label-6291
SELECT ALL MIN( DISTINCT 83 ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-6291
SELECT ALL MIN ( DISTINCT 83 ) AS col1
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6292
SELECT + 43 DIV 56 * - ( ( COALESCE ( ( - COUNT( * ) ), - 11, - 51 * 89 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-6292
SELECT + 43 / 56 * - ( ( COALESCE ( ( - COUNT ( * ) ), - 11, - 51 * 89 ) ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6293
SELECT DISTINCT + MIN( ALL - 44 ) * CAST( - + COUNT( * ) AS SIGNED ) * 44 - 75 col0
----
1861

skipif mysql # not compatible
query I rowsort label-6293
SELECT DISTINCT + MIN ( ALL - 44 ) * CAST ( - + COUNT ( * ) AS INTEGER ) * 44 - 75 col0
----
1861

onlyif mysql # aggregate syntax: 
query I rowsort label-6294
SELECT ALL 96 * + SUM( + ( + + 7 ) )
----
672

skipif mysql # not compatible
query I rowsort label-6294
SELECT ALL 96 * + SUM ( + ( + + 7 ) )
----
672

onlyif mysql # aggregate syntax: 
query I rowsort label-6295
SELECT ( - 65 ) * MAX( - 27 ) AS col2
----
1755

skipif mysql # not compatible
query I rowsort label-6295
SELECT ( - 65 ) * MAX ( - 27 ) AS col2
----
1755

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6296
SELECT 5 * + - 6 AS col1, 40 * COUNT( ALL + CAST( 57 AS SIGNED ) ) AS col2
----
-30
40

skipif mysql # not compatible
query II rowsort label-6296
SELECT 5 * + - 6 AS col1, 40 * COUNT ( ALL + CAST ( 57 AS INTEGER ) ) AS col2
----
-30
40

query I rowsort
SELECT ( - 53 ) - 27 - - - 15
----
-95

query I rowsort
SELECT 85 - 92 + - 34 AS col1
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6299
SELECT DISTINCT + 31 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6299
SELECT DISTINCT + 31 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6300
SELECT ALL 29 + 63 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6300
SELECT ALL 29 + 63 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6301
SELECT ALL - 58 + + CAST( 17 AS SIGNED )
----
-41

skipif mysql # not compatible
query I rowsort label-6301
SELECT ALL - 58 + + CAST ( 17 AS INTEGER )
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6302
SELECT 22 * - COUNT( * ) - + - 46 + + NULLIF ( NULLIF ( - NULLIF ( 41, CASE SUM( 91 ) WHEN + MAX( - CASE CAST( NULL AS SIGNED ) WHEN - 40 THEN 44 * 0 + 23 END ) * AVG ( ALL 7 * - 36 ) + + 66 * + 16 THEN NULL WHEN + 32 THEN + 89 ELSE 91 * 86 END ), - NULLIF ( SUM( DISTINCT 65 ), 23 ) * + 60 ), - COUNT( * ) ) * + 41 col2
----
-1657

skipif mysql # not compatible
query I rowsort label-6302
SELECT 22 * - COUNT ( * ) - + - 46 + + NULLIF ( NULLIF ( - NULLIF ( 41, CASE SUM ( 91 ) WHEN + MAX ( - CASE CAST ( NULL AS INTEGER ) WHEN - 40 THEN 44 * 0 + 23 END ) * AVG ( ALL 7 * - 36 ) + + 66 * + 16 THEN NULL WHEN + 32 THEN + 89 ELSE 91 * 86 END ), - NULLIF ( SUM ( DISTINCT 65 ), 23 ) * + 60 ), - COUNT ( * ) ) * + 41 col2
----
-1657

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT DISTINCT CASE ( + 88 ) WHEN - + COALESCE ( 52, + 53 * + 85, - 82 ) * 3 THEN COUNT( * ) WHEN 74 * MIN( DISTINCT 42 ) THEN NULL END + + COUNT( * ) * ( 40 * 24 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6303
SELECT DISTINCT CASE ( + 88 ) WHEN - + COALESCE ( 52, + 53 * + 85, - 82 ) * 3 THEN COUNT ( * ) WHEN 74 * MIN ( DISTINCT 42 ) THEN NULL END + + COUNT ( * ) * ( 40 * 24 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6304
SELECT 20 - + 16 + ( - 99 ) + CAST( NULL AS DECIMAL ) * COALESCE ( 12, 49 ) * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6304
SELECT 20 - + 16 + ( - 99 ) + CAST ( NULL AS REAL ) * COALESCE ( 12, 49 ) * + COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6305
SELECT ALL + CASE - 48 WHEN + COUNT( * ) + + 74 THEN NULL WHEN - 33 THEN - CAST( NULL AS SIGNED ) END + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6305
SELECT ALL + CASE - 48 WHEN + COUNT ( * ) + + 74 THEN NULL WHEN - 33 THEN - CAST ( NULL AS INTEGER ) END + - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6306
SELECT COALESCE ( 7, - + 21 DIV 31 * SUM( - 50 ) + 25 DIV + 42 ) * - ( 71 ) AS col2
----
-497

skipif mysql # not compatible
query I rowsort label-6306
SELECT COALESCE ( 7, - + 21 / 31 * SUM ( - 50 ) + 25 / + 42 ) * - ( 71 ) AS col2
----
-497

query I rowsort
SELECT 10 + + - 71 + 29 * - 92 AS col1
----
-2729

query I rowsort
SELECT ALL - + 1 AS col0
----
-1

query I rowsort
SELECT ALL + 80 - + 2 col0
----
78

query I rowsort
SELECT ALL + - 67 - 44
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-6311
SELECT COALESCE ( 44, - 39 + - COUNT( * ) ) - - ( + COUNT( * ) )
----
45

skipif mysql # not compatible
query I rowsort label-6311
SELECT COALESCE ( 44, - 39 + - COUNT ( * ) ) - - ( + COUNT ( * ) )
----
45

query I rowsort
SELECT - 77 * + 38 * 76
----
-222376

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6313
SELECT 78 * 39 + - CAST( - 58 AS SIGNED )
----
3100

skipif mysql # not compatible
query I rowsort label-6313
SELECT 78 * 39 + - CAST ( - 58 AS INTEGER )
----
3100

query I rowsort
SELECT DISTINCT + + 24 * + + 67 + + 18 AS col1
----
1626

query I rowsort
SELECT + 0 + + + 47 * + 61 * - + 49 * 93
----
-13064919

query I rowsort
SELECT - + 54 AS col1
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6317
SELECT AVG ( - 70 ) * - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6317
SELECT AVG ( - 70 ) * - CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT + 36 - - 96 AS col1
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-6319
SELECT DISTINCT MAX( ALL + 89 )
----
89

skipif mysql # not compatible
query I rowsort label-6319
SELECT DISTINCT MAX ( ALL + 89 )
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-6320
SELECT DISTINCT + - 20 + - 14 DIV + - 35 + 92
----
72

skipif mysql # not compatible
query I rowsort label-6320
SELECT DISTINCT + - 20 + - 14 / + - 35 + 92
----
72

query I rowsort
SELECT + ( + 62 ) + + + ( COALESCE ( 62, 8 ) ) - - 74 * - 26 AS col1
----
-1800

onlyif mysql # aggregate syntax: 
query I rowsort label-6322
SELECT - CASE - NULLIF ( CASE + - 51 WHEN - 45 + 21 THEN - 11 / COUNT( * ) END, ( - 10 ) * 47 ) WHEN + ( COUNT( * ) ) THEN - 3 - - 46 WHEN ( 62 ) + - COUNT( ALL + 77 - - 2 ) / - 81 THEN NULL WHEN - 73 THEN 71 * - COUNT( * ) END + COALESCE ( 89, + 41 * 24 + 60 ) / + 58 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6322
SELECT - CASE - NULLIF ( CASE + - 51 WHEN - 45 + 21 THEN - 11 / COUNT ( * ) END, ( - 10 ) * 47 ) WHEN + ( COUNT ( * ) ) THEN - 3 - - 46 WHEN ( 62 ) + - COUNT ( ALL + 77 - - 2 ) / - 81 THEN NULL WHEN - 73 THEN 71 * - COUNT ( * ) END + COALESCE ( 89, + 41 * 24 + 60 ) / + 58 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6323
SELECT + 60 / - CAST( NULL AS SIGNED ) / 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6323
SELECT + 60 / - CAST ( NULL AS INTEGER ) / 31 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6324
SELECT - 72 + 62 + + 12 * - MAX( 48 )
----
-586

skipif mysql # not compatible
query I rowsort label-6324
SELECT - 72 + 62 + + 12 * - MAX ( 48 )
----
-586

onlyif mysql # DIV for integer division: 
query I rowsort label-6325
SELECT ALL 83 DIV + 54
----
1

skipif mysql # not compatible
query I rowsort label-6325
SELECT ALL 83 / + 54
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6326
SELECT ALL - COUNT( * ) * + - COUNT( * ) + - NULLIF ( + COUNT( * ), COUNT( * ) ) + 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6326
SELECT ALL - COUNT ( * ) * + - COUNT ( * ) + - NULLIF ( + COUNT ( * ), COUNT ( * ) ) + 37 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6327
SELECT - CASE + ( + 47 ) WHEN + 53 * - - COUNT( * ) + NULLIF ( COUNT( * ), NULLIF ( - 97, + 72 * + 43 ) ) THEN NULL WHEN - 2 THEN NULL ELSE 22 * + CASE + COUNT( * ) WHEN 97 THEN NULL ELSE + 61 + 3 * - ( 77 ) END END * + 68 - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6327
SELECT - CASE + ( + 47 ) WHEN + 53 * - - COUNT ( * ) + NULLIF ( COUNT ( * ), NULLIF ( - 97, + 72 * + 43 ) ) THEN NULL WHEN - 2 THEN NULL ELSE 22 * + CASE + COUNT ( * ) WHEN 97 THEN NULL ELSE + 61 + 3 * - ( 77 ) END END * + 68 - - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6328
SELECT DISTINCT - 35 DIV MIN( + 44 )
----
0

skipif mysql # not compatible
query I rowsort label-6328
SELECT DISTINCT - 35 / MIN ( + 44 )
----
0

query I rowsort
SELECT + 41 * - + 8
----
-328

onlyif mysql # DIV for integer division: 
query I rowsort label-6330
SELECT ALL 47 DIV 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6330
SELECT ALL 47 / 83 AS col0
----
0

query I rowsort
SELECT + 18 + - - 23
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6332
SELECT ALL + MAX( + 21 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-6332
SELECT ALL + MAX ( + 21 ) AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6333
SELECT DISTINCT - COUNT( * ) * - 67 + + 21
----
88

skipif mysql # not compatible
query I rowsort label-6333
SELECT DISTINCT - COUNT ( * ) * - 67 + + 21
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6334
SELECT + NULLIF ( + + NULLIF ( + 68, - ( - CASE 87 WHEN - COUNT( * ) * + MIN( ALL + 22 ) - MAX( 69 ) THEN NULL WHEN - 85 THEN + 37 ELSE + 95 END ) ), + 6 / 41 - 56 * 85 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-6334
SELECT + NULLIF ( + + NULLIF ( + 68, - ( - CASE 87 WHEN - COUNT ( * ) * + MIN ( ALL + 22 ) - MAX ( 69 ) THEN NULL WHEN - 85 THEN + 37 ELSE + 95 END ) ), + 6 / 41 - 56 * 85 ) AS col1
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6335
SELECT ALL + 0 * + 33 + + + 84 + + 15 + COALESCE ( + 93, 56 * 12, 29 + 10 ) * ( ( - CAST( 7 AS SIGNED ) ) ) col2
----
-552

skipif mysql # not compatible
query I rowsort label-6335
SELECT ALL + 0 * + 33 + + + 84 + + 15 + COALESCE ( + 93, 56 * 12, 29 + 10 ) * ( ( - CAST ( 7 AS INTEGER ) ) ) col2
----
-552

query I rowsort
SELECT + 82 * + + ( + 85 )
----
6970

query I rowsort
SELECT + ( + 8 ) AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6338
SELECT COALESCE ( - 30, - 20 * + 82 * COUNT( * ), - 62 * NULLIF ( 28 * 39, - 19 * + ( 37 ) + + 74 ) ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-6338
SELECT COALESCE ( - 30, - 20 * + 82 * COUNT ( * ), - 62 * NULLIF ( 28 * 39, - 19 * + ( 37 ) + + 74 ) ) AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6339
SELECT + 34 * + COUNT( - 2 )
----
34

skipif mysql # not compatible
query I rowsort label-6339
SELECT + 34 * + COUNT ( - 2 )
----
34

query I rowsort
SELECT 28 * - + 13 + 35 AS col0
----
-329

onlyif mysql # DIV for integer division: 
query I rowsort label-6341
SELECT DISTINCT - - 77 DIV - 43
----
-1

skipif mysql # not compatible
query I rowsort label-6341
SELECT DISTINCT - - 77 / - 43
----
-1

query I rowsort
SELECT ALL 14 * 81 - - + 79 + + - 19 * - 34 * 57
----
38035

query I rowsort
SELECT - 81 * - - 45 + + 94 - 93 + - 37 + 75 AS col1
----
-3606

query I rowsort
SELECT ALL - - 2 * + NULLIF ( + 25, + - 22 )
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6345
SELECT ALL + CAST( NULL AS SIGNED ) / CASE COUNT( * ) WHEN + 29 THEN NULL ELSE + - 72 + SUM( - 21 ) * + 69 END + 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6345
SELECT ALL + CAST ( NULL AS INTEGER ) / CASE COUNT ( * ) WHEN + 29 THEN NULL ELSE + - 72 + SUM ( - 21 ) * + 69 END + 22 AS col2
----
NULL

query I rowsort
SELECT - + ( + + ( - 84 ) ) * + 3 + + + 28 + 22 * 68 AS col1
----
1776

query I rowsort
SELECT - + 5 * 70
----
-350

query I rowsort
SELECT + - 94 + - 33 AS col1
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-6349
SELECT - - COUNT( * ) * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6349
SELECT - - COUNT ( * ) * + COUNT ( * )
----
1

query I rowsort
SELECT - 54 + + 96 AS col0
----
42

query I rowsort
SELECT ALL + 55 * 35
----
1925

onlyif mysql # DIV for integer division: 
query I rowsort label-6352
SELECT ALL - 33 DIV 8
----
-4

skipif mysql # not compatible
query I rowsort label-6352
SELECT ALL - 33 / 8
----
-4

query I rowsort
SELECT - 7 + + 49
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6354
SELECT - COUNT( * ) * - + 39 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-6354
SELECT - COUNT ( * ) * - + 39 AS col0
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-6355
SELECT ALL 65, + 26 * COUNT( * ) AS col1
----
65
26

skipif mysql # not compatible
query II rowsort label-6355
SELECT ALL 65, + 26 * COUNT ( * ) AS col1
----
65
26

query I rowsort
SELECT - 20 + + 32
----
12

query I rowsort
SELECT ALL + 83 + + + 21 AS col2
----
104

query I rowsort
SELECT - - 78 + + - 29 AS col0
----
49

query I rowsort
SELECT DISTINCT ( 13 ) AS col1
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-6360
SELECT 17 col1, - COUNT( * ) AS col1
----
17
-1

skipif mysql # not compatible
query II rowsort label-6360
SELECT 17 col1, - COUNT ( * ) AS col1
----
17
-1

query I rowsort
SELECT + 78 + + NULLIF ( - 26, + 92 + + - 38 )
----
52

query I rowsort
SELECT DISTINCT - 49 * 72
----
-3528

query II rowsort
SELECT ALL ( - 53 ) AS col0, - 93
----
-53
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6364
SELECT ALL - 31 * - COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-6364
SELECT ALL - 31 * - COUNT ( * )
----
31

query I rowsort
SELECT - 18 * - 5 * + 98 AS col1
----
8820

query I rowsort
SELECT + 88 * 87
----
7656

onlyif mysql # DIV for integer division: 
query II rowsort label-6367
SELECT ALL + 72 AS col2, - 87 - + 24 + - 50 - 36 - - 89 DIV 23
----
72
-194

skipif mysql # not compatible
query II rowsort label-6367
SELECT ALL + 72 AS col2, - 87 - + 24 + - 50 - 36 - - 89 / 23
----
72
-194

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6368
SELECT - 58 - - 10 DIV + + 78 * - - COUNT( * ) + - 86
----
-144

skipif mysql # not compatible
query I rowsort label-6368
SELECT - 58 - - 10 / + + 78 * - - COUNT ( * ) + - 86
----
-144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6369
SELECT ALL - 79 DIV - 68 - - 11 + - 80 DIV + MIN( ALL ( 56 ) )
----
11

skipif mysql # not compatible
query I rowsort label-6369
SELECT ALL - 79 / - 68 - - 11 + - 80 / + MIN ( ALL ( 56 ) )
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-6370
SELECT ALL 24 DIV 3 * + 30 - + 34 col1
----
206

skipif mysql # not compatible
query I rowsort label-6370
SELECT ALL 24 / 3 * + 30 - + 34 col1
----
206

query I rowsort
SELECT DISTINCT 40 * 24 * 11 col1
----
10560

query II rowsort
SELECT ALL + 79, 44 AS col2
----
79
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6373
SELECT + 93 - + SUM( ALL + 28 )
----
65

skipif mysql # not compatible
query I rowsort label-6373
SELECT + 93 - + SUM ( ALL + 28 )
----
65

query I rowsort
SELECT + + 8 * - + 11
----
-88

query III rowsort
SELECT + + 71, 9 AS col2, + - 51 AS col0
----
71
9
-51

query I rowsort
SELECT ALL - + 9 * + - 75 + + 40 + - 78 * + 86
----
-5993

query I rowsort
SELECT ALL + + 95 + + + 94 AS col1
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-6378
SELECT DISTINCT - + COUNT( * ) + + + 82 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-6378
SELECT DISTINCT - + COUNT ( * ) + + + 82 AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6379
SELECT ALL - ( COUNT( * ) ) * - 89
----
89

skipif mysql # not compatible
query I rowsort label-6379
SELECT ALL - ( COUNT ( * ) ) * - 89
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6380
SELECT + ( + NULLIF ( - 55, - ( 2 ) * + NULLIF ( + 48, COUNT( * ) + 17 / - 14 ) * 5 + - 42 ) ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-6380
SELECT + ( + NULLIF ( - 55, - ( 2 ) * + NULLIF ( + 48, COUNT ( * ) + 17 / - 14 ) * 5 + - 42 ) ) AS col2
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6381
SELECT + 32 DIV 70 DIV + 18 * + COUNT( * ) * 82 - - 20 + + COUNT( * ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-6381
SELECT + 32 / 70 / + 18 * + COUNT ( * ) * 82 - - 20 + + COUNT ( * ) AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6382
SELECT - MAX( DISTINCT - 43 ) + - COUNT( * ) * ( + 12 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-6382
SELECT - MAX ( DISTINCT - 43 ) + - COUNT ( * ) * ( + 12 ) AS col2
----
31

query I rowsort
SELECT - - ( 30 )
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6384
SELECT ALL - 52 + - 5 + - ( + 73 ) + 62 + - 85 + - 31 * MIN( CAST( NULL AS SIGNED ) * + COALESCE ( 1, - 66 * - 27 + 20 * 78 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6384
SELECT ALL - 52 + - 5 + - ( + 73 ) + 62 + - 85 + - 31 * MIN ( CAST ( NULL AS INTEGER ) * + COALESCE ( 1, - 66 * - 27 + 20 * 78 ) ) AS col1
----
NULL

query I rowsort
SELECT 97 + + 91 * 88
----
8105

query II rowsort
SELECT ( + 19 ) + + + 91 col1, - 8 AS col2
----
110
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6387
SELECT ALL + MIN( ALL 11 ) + - 55
----
-44

skipif mysql # not compatible
query I rowsort label-6387
SELECT ALL + MIN ( ALL 11 ) + - 55
----
-44

query II rowsort
SELECT DISTINCT 72 * 27 AS col1, 25
----
1944
25

query I rowsort
SELECT ALL 30 + + 54 AS col0
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6390
SELECT 1 - CAST( - - 41 AS SIGNED ) * + SUM( 62 )
----
-2541

skipif mysql # not compatible
query I rowsort label-6390
SELECT 1 - CAST ( - - 41 AS INTEGER ) * + SUM ( 62 )
----
-2541

query I rowsort
SELECT DISTINCT 65 + + 77 + 87 AS col0
----
229

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6392
SELECT 20 + CASE + 82 WHEN 8 * - 55 THEN 87 * + 29 ELSE 14 * - 75 END * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6392
SELECT 20 + CASE + 82 WHEN 8 * - 55 THEN 87 * + 29 ELSE 14 * - 75 END * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 27 - + 27 * + 56
----
-1539

query I rowsort
SELECT 30 + - - 59 + + - 70 AS col2
----
19

query I rowsort
SELECT 1 + 32
----
33

query II rowsort
SELECT 46 - 4, + 37 - + - 9 col2
----
42
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6397
SELECT - 20 / 71 * - CASE - 79 WHEN 24 * + + NULLIF ( + + CAST( + AVG ( + 26 ) AS SIGNED ), + NULLIF ( - 7, + 0 ) ) THEN NULL WHEN + 9 THEN ( 91 ) * 92 ELSE NULL END + + 37 * SUM( 84 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6397
SELECT - 20 / 71 * - CASE - 79 WHEN 24 * + + NULLIF ( + + CAST ( + AVG ( + 26 ) AS INTEGER ), + NULLIF ( - 7, + 0 ) ) THEN NULL WHEN + 9 THEN ( 91 ) * 92 ELSE NULL END + + 37 * SUM ( 84 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6398
SELECT ALL - CAST( + 76 AS SIGNED ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-6398
SELECT ALL - CAST ( + 76 AS INTEGER ) AS col2
----
-76

query II rowsort
SELECT ALL - ( - 15 ), - 25 * - - 84 * + CASE - CASE + + 24 WHEN 97 / - 92 + - 99 * 9 THEN - 71 * + 71 END WHEN 36 THEN 12 ELSE NULL END AS col2
----
15
NULL

query II rowsort
SELECT ALL - 1 * 11 AS col0, + 97 + NULLIF ( 66, + - 13 - - 39 )
----
-11
163

query I rowsort
SELECT ALL - ( + 53 ) col1
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6402
SELECT 94 / + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6402
SELECT 94 / + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 86 * + 46 * - + 84
----
332304

onlyif mysql # aggregate syntax: 
query I rowsort label-6404
SELECT COALESCE ( + COUNT( * ), - + NULLIF ( - 3, + ( + 25 ) ) * - 6, + COUNT( * ) + 28 * + 35 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6404
SELECT COALESCE ( + COUNT ( * ), - + NULLIF ( - 3, + ( + 25 ) ) * - 6, + COUNT ( * ) + 28 * + 35 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6405
SELECT + COUNT( * ) * + 97 + - - COUNT( ALL - 37 ) * + 1 + + 16 + + 86 col2
----
200

skipif mysql # not compatible
query I rowsort label-6405
SELECT + COUNT ( * ) * + 97 + - - COUNT ( ALL - 37 ) * + 1 + + 16 + + 86 col2
----
200

onlyif mysql # DIV for integer division: 
query I rowsort label-6406
SELECT DISTINCT + 66 DIV + ( + + 52 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6406
SELECT DISTINCT + 66 / + ( + + 52 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6407
SELECT 63 * - 82, 90 * - MAX( DISTINCT - 10 ) AS col1
----
-5166
900

skipif mysql # not compatible
query II rowsort label-6407
SELECT 63 * - 82, 90 * - MAX ( DISTINCT - 10 ) AS col1
----
-5166
900

onlyif mysql # aggregate syntax: 
query I rowsort label-6408
SELECT ALL - 97 + - ( 50 ) + + 18 * - MAX( ALL + 93 ) AS col0
----
-1821

skipif mysql # not compatible
query I rowsort label-6408
SELECT ALL - 97 + - ( 50 ) + + 18 * - MAX ( ALL + 93 ) AS col0
----
-1821

query I rowsort
SELECT ALL + 16 + + 35 AS col0
----
51

query I rowsort
SELECT DISTINCT + NULLIF ( 34, - 36 * - 39 ) + + ( - 39 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT - COUNT( * ) + COUNT( DISTINCT - 58 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6411
SELECT - COUNT ( * ) + COUNT ( DISTINCT - 58 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6412
SELECT + - NULLIF ( + 10, - + NULLIF ( 3, 87 * + COUNT( * ) + + - 30 - 98 ) * CAST( + 91 AS SIGNED ) )
----
-10

skipif mysql # not compatible
query I rowsort label-6412
SELECT + - NULLIF ( + 10, - + NULLIF ( 3, 87 * + COUNT ( * ) + + - 30 - 98 ) * CAST ( + 91 AS INTEGER ) )
----
-10

query II rowsort
SELECT ALL - ( + 91 ) AS col2, + 72 AS col0
----
-91
72

onlyif mysql # aggregate syntax: 
query II rowsort label-6414
SELECT + ( - 82 ), COUNT( * ) AS col1
----
-82
1

skipif mysql # not compatible
query II rowsort label-6414
SELECT + ( - 82 ), COUNT ( * ) AS col1
----
-82
1

query I rowsort
SELECT 32 + - 69 AS col2
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6416
SELECT - 46 * + 81 * + CAST( 4 AS SIGNED ) + COUNT( * ) * 89 AS col0
----
-14815

skipif mysql # not compatible
query I rowsort label-6416
SELECT - 46 * + 81 * + CAST ( 4 AS INTEGER ) + COUNT ( * ) * 89 AS col0
----
-14815

onlyif mysql # aggregate syntax: 
query I rowsort label-6417
SELECT ALL 60 + 74 + + ( 84 ) + - - 49 + + + SUM( - 30 ) + 3 * 0 * 68
----
237

skipif mysql # not compatible
query I rowsort label-6417
SELECT ALL 60 + 74 + + ( 84 ) + - - 49 + + + SUM ( - 30 ) + 3 * 0 * 68
----
237

query I rowsort
SELECT DISTINCT 89 - 14
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6419
SELECT DISTINCT CASE + 10 WHEN 32 + - 77 THEN + 70 WHEN - 41 THEN + 35 DIV + 96 ELSE + 54 END * COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-6419
SELECT DISTINCT CASE + 10 WHEN 32 + - 77 THEN + 70 WHEN - 41 THEN + 35 / + 96 ELSE + 54 END * COUNT ( * )
----
54

query II rowsort
SELECT ALL 15 AS col2, + 38 + ( - - 34 ) AS col1
----
15
72

query I rowsort
SELECT ALL 24 - + - 76
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6422
SELECT CASE - 75 WHEN + - 42 THEN NULL WHEN + 51 + + + 92 + 17 + 36 THEN NULL ELSE - - 35 DIV - 18 END * - COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6422
SELECT CASE - 75 WHEN + - 42 THEN NULL WHEN + 51 + + + 92 + 17 + 36 THEN NULL ELSE - - 35 / - 18 END * - COUNT ( * ) AS col0
----
1

query II rowsort
SELECT - 24 AS col2, 92
----
-24
92

query I rowsort
SELECT 40 * - 67 AS col1
----
-2680

query I rowsort
SELECT DISTINCT 12 * 89
----
1068

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6426
SELECT DISTINCT 58 * - CAST( NULL AS DECIMAL ) / - COUNT( * ) AS col2, + 55 AS col0
----
NULL
55

skipif mysql # not compatible
query II rowsort label-6426
SELECT DISTINCT 58 * - CAST ( NULL AS REAL ) / - COUNT ( * ) AS col2, + 55 AS col0
----
NULL
55

query I rowsort
SELECT ALL ( - + NULLIF ( + 59, - ( - 81 ) * 4 * 40 ) ) * + 74 * + 16 + 44
----
-69812

onlyif mysql # DIV for integer division: 
query I rowsort label-6428
SELECT DISTINCT + 23 DIV + COALESCE ( - 46, 24, - 72 * + - 70 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6428
SELECT DISTINCT + 23 / + COALESCE ( - 46, 24, - 72 * + - 70 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6429
SELECT ALL COUNT( * ), + 54 - + 2 AS col2
----
1
52

skipif mysql # not compatible
query II rowsort label-6429
SELECT ALL COUNT ( * ), + 54 - + 2 AS col2
----
1
52

query II rowsort
SELECT NULLIF ( - 24, - 63 ) AS col1, 99 AS col1
----
-24
99

query I rowsort
SELECT ALL 28 * + 77 + - ( + + 9 ) AS col2
----
2147

onlyif mysql # aggregate syntax: 
query I rowsort label-6432
SELECT DISTINCT + 27 * - SUM( ALL + ( 3 ) ) + + MAX( DISTINCT - + 49 ) + - 0 AS col0
----
-130

skipif mysql # not compatible
query I rowsort label-6432
SELECT DISTINCT + 27 * - SUM ( ALL + ( 3 ) ) + + MAX ( DISTINCT - + 49 ) + - 0 AS col0
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-6433
SELECT ALL - 20 * - + 18 + - COALESCE ( + 86, 42 * 81 + - + 45 - - - 34 + + COUNT( * ) * - 44 )
----
274

skipif mysql # not compatible
query I rowsort label-6433
SELECT ALL - 20 * - + 18 + - COALESCE ( + 86, 42 * 81 + - + 45 - - - 34 + + COUNT ( * ) * - 44 )
----
274

onlyif mysql # aggregate syntax: 
query I rowsort label-6434
SELECT ALL - 84 * + COUNT( * ) + 64 * + - 29 + - + COUNT( * ) + - 89
----
-2030

skipif mysql # not compatible
query I rowsort label-6434
SELECT ALL - 84 * + COUNT ( * ) + 64 * + - 29 + - + COUNT ( * ) + - 89
----
-2030

query I rowsort
SELECT DISTINCT + 9 * - 48
----
-432

query I rowsort
SELECT ALL - 56 * + 3 * - 3 * - 51 + + + 99
----
-25605

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6437
SELECT ALL - COUNT( * ) * - COALESCE ( - COALESCE ( + + 30, COUNT( DISTINCT + CAST( - CASE - ( - 29 ) WHEN + 3 + + 48 THEN 87 END AS SIGNED ) ) ), 6 ) + + 48 * 42 AS col0
----
1986

skipif mysql # not compatible
query I rowsort label-6437
SELECT ALL - COUNT ( * ) * - COALESCE ( - COALESCE ( + + 30, COUNT ( DISTINCT + CAST ( - CASE - ( - 29 ) WHEN + 3 + + 48 THEN 87 END AS INTEGER ) ) ), 6 ) + + 48 * 42 AS col0
----
1986

onlyif mysql # aggregate syntax: 
query I rowsort label-6438
SELECT ALL + + COUNT( * ) * + 50
----
50

skipif mysql # not compatible
query I rowsort label-6438
SELECT ALL + + COUNT ( * ) * + 50
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-6439
SELECT DISTINCT + COUNT( * ) AS col1, 9 * - 46 AS col1
----
1
-414

skipif mysql # not compatible
query II rowsort label-6439
SELECT DISTINCT + COUNT ( * ) AS col1, 9 * - 46 AS col1
----
1
-414

onlyif mysql # aggregate syntax: 
query I rowsort label-6440
SELECT - 44 * NULLIF ( - COUNT( * ), - + 18 + 76 )
----
44

skipif mysql # not compatible
query I rowsort label-6440
SELECT - 44 * NULLIF ( - COUNT ( * ), - + 18 + 76 )
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-6441
SELECT - - 5 DIV + 99 col2
----
0

skipif mysql # not compatible
query I rowsort label-6441
SELECT - - 5 / + 99 col2
----
0

query I rowsort
SELECT + - 99 * - 28
----
2772

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6443
SELECT - CAST( + COUNT( - 28 ) AS SIGNED ) AS col2, 53 AS col1
----
-1
53

skipif mysql # not compatible
query II rowsort label-6443
SELECT - CAST ( + COUNT ( - 28 ) AS INTEGER ) AS col2, 53 AS col1
----
-1
53

query I rowsort
SELECT ALL - - 19 + - 94
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-6445
SELECT - COUNT( * ), + 73 * - - COUNT( * ) col0
----
-1
73

skipif mysql # not compatible
query II rowsort label-6445
SELECT - COUNT ( * ), + 73 * - - COUNT ( * ) col0
----
-1
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
SELECT ALL + 27 - - COUNT( * ) + 68 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-6446
SELECT ALL + 27 - - COUNT ( * ) + 68 AS col0
----
96

query I rowsort
SELECT DISTINCT ( + 15 )
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6448
SELECT ALL CASE + + 19 WHEN - MIN( ALL + CAST( NULL AS SIGNED ) ) * 44 THEN - + 6 WHEN 16 THEN NULL WHEN + + ( + ( - COALESCE ( + ( 11 ), COUNT( * ) * CAST( + COALESCE ( + MIN( DISTINCT 22 ), 3, COUNT( * ) + 29, + 88 ) AS SIGNED ) ) ) ) THEN NULL ELSE 79 END * NULLIF ( 36, + NULLIF ( - CASE + NULLIF ( 26, - 55 ) WHEN + MAX( + 50 ) THEN NULL ELSE - COUNT( * ) * + 57 + + 97 / 97 END, 27 ) )
----
2844

skipif mysql # not compatible
query I rowsort label-6448
SELECT ALL CASE + + 19 WHEN - MIN ( ALL + CAST ( NULL AS INTEGER ) ) * 44 THEN - + 6 WHEN 16 THEN NULL WHEN + + ( + ( - COALESCE ( + ( 11 ), COUNT ( * ) * CAST ( + COALESCE ( + MIN ( DISTINCT 22 ), 3, COUNT ( * ) + 29, + 88 ) AS INTEGER ) ) ) ) THEN NULL ELSE 79 END * NULLIF ( 36, + NULLIF ( - CASE + NULLIF ( 26, - 55 ) WHEN + MAX ( + 50 ) THEN NULL ELSE - COUNT ( * ) * + 57 + + 97 / 97 END, 27 ) )
----
2844

onlyif mysql # aggregate syntax: 
query I rowsort label-6449
SELECT - 83 + - - 89 * - ( - 13 ) * + + 66 * - 60 + 69 * + 58 + COUNT( * ) * + SUM( ALL - 30 ) - 51 * - 0 AS col0
----
-4577831

skipif mysql # not compatible
query I rowsort label-6449
SELECT - 83 + - - 89 * - ( - 13 ) * + + 66 * - 60 + 69 * + 58 + COUNT ( * ) * + SUM ( ALL - 30 ) - 51 * - 0 AS col0
----
-4577831

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6450
SELECT + 89 * - CASE ( - 16 ) WHEN + 28 + - 97 - + + 38 THEN 8 * - 57 * 71 - MIN( - 65 ) WHEN 58 * CAST( 73 AS SIGNED ) - + CASE 50 WHEN AVG ( 10 ) THEN NULL ELSE 31 END THEN NULL WHEN 75 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6450
SELECT + 89 * - CASE ( - 16 ) WHEN + 28 + - 97 - + + 38 THEN 8 * - 57 * 71 - MIN ( - 65 ) WHEN 58 * CAST ( 73 AS INTEGER ) - + CASE 50 WHEN AVG ( 10 ) THEN NULL ELSE 31 END THEN NULL WHEN 75 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6451
SELECT - 59 + - + COALESCE ( COALESCE ( 5, - 97 ), - ( 78 ) * 8 DIV + + 72 + - CAST( + 96 AS SIGNED ) )
----
-64

skipif mysql # not compatible
query I rowsort label-6451
SELECT - 59 + - + COALESCE ( COALESCE ( 5, - 97 ), - ( 78 ) * 8 / + + 72 + - CAST ( + 96 AS INTEGER ) )
----
-64

query I rowsort
SELECT DISTINCT ( 91 ) col1
----
91

query I rowsort
SELECT + 53 * 36 AS col2
----
1908

query I rowsort
SELECT + 12 + + 89 + - 38 * ( - 98 ) * + - 76 AS col2
----
-282923

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6455
SELECT ALL 99 * - COUNT( * ) * - CAST( + 4 AS SIGNED ) AS col2, - 75 AS col1
----
396
-75

skipif mysql # not compatible
query II rowsort label-6455
SELECT ALL 99 * - COUNT ( * ) * - CAST ( + 4 AS INTEGER ) AS col2, - 75 AS col1
----
396
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6456
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-6456
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 33
----
NULL

query I rowsort
SELECT - ( + 85 ) AS col0
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6458
SELECT DISTINCT COALESCE ( - 53, - - 44, CAST( - - COALESCE ( - + 43, - + 2 ) AS SIGNED ) ) + + - 14
----
-67

skipif mysql # not compatible
query I rowsort label-6458
SELECT DISTINCT COALESCE ( - 53, - - 44, CAST ( - - COALESCE ( - + 43, - + 2 ) AS INTEGER ) ) + + - 14
----
-67

query I rowsort
SELECT + 69 + + 37
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-6460
SELECT - COUNT( * ) + 72 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-6460
SELECT - COUNT ( * ) + 72 AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6461
SELECT + - 52 + + NULLIF ( + 8, + COUNT( * ) * + - 47 + + - 28 )
----
-44

skipif mysql # not compatible
query I rowsort label-6461
SELECT + - 52 + + NULLIF ( + 8, + COUNT ( * ) * + - 47 + + - 28 )
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-6462
SELECT - + COALESCE ( - 22, + - COUNT( * ) - COUNT( * ), + 53 - - 7 ) - + - 61 AS col1, CASE COUNT( * ) WHEN - 49 THEN NULL WHEN - 87 - + 98 THEN 22 END + + 31
----
83
NULL

skipif mysql # not compatible
query II rowsort label-6462
SELECT - + COALESCE ( - 22, + - COUNT ( * ) - COUNT ( * ), + 53 - - 7 ) - + - 61 AS col1, CASE COUNT ( * ) WHEN - 49 THEN NULL WHEN - 87 - + 98 THEN 22 END + + 31
----
83
NULL

query I rowsort
SELECT ALL + ( + - 41 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-6464
SELECT + COUNT( * ) * - 52 * + ( - 92 ) col2
----
4784

skipif mysql # not compatible
query I rowsort label-6464
SELECT + COUNT ( * ) * - 52 * + ( - 92 ) col2
----
4784

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6465
SELECT DISTINCT + - MAX( DISTINCT + ( - 70 ) ) DIV - 81 + 21, + 43 + + + 46 col0
----
21
89

skipif mysql # not compatible
query II rowsort label-6465
SELECT DISTINCT + - MAX ( DISTINCT + ( - 70 ) ) / - 81 + 21, + 43 + + + 46 col0
----
21
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6466
SELECT ALL - + COUNT( * ) DIV + NULLIF ( 66, 45 ) + - 62
----
-62

skipif mysql # not compatible
query I rowsort label-6466
SELECT ALL - + COUNT ( * ) / + NULLIF ( 66, 45 ) + - 62
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-6467
SELECT DISTINCT + 9 DIV + 97 + + 49 * - 60 AS col1
----
-2940

skipif mysql # not compatible
query I rowsort label-6467
SELECT DISTINCT + 9 / + 97 + + 49 * - 60 AS col1
----
-2940

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6468
SELECT ALL CAST( NULL AS DECIMAL ) * + 32 / 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6468
SELECT ALL CAST ( NULL AS REAL ) * + 32 / 37 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6469
SELECT ALL 1 DIV - 99 * - COALESCE ( + - 90, + CAST( 71 AS SIGNED ) ) + - 94 - 62 + - + 64
----
-220

skipif mysql # not compatible
query I rowsort label-6469
SELECT ALL 1 / - 99 * - COALESCE ( + - 90, + CAST ( 71 AS INTEGER ) ) + - 94 - 62 + - + 64
----
-220

query I rowsort
SELECT ( - 18 ) * + 0 + 95 AS col2
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-6471
SELECT DISTINCT - CASE + 83 WHEN - 33 THEN - 96 ELSE 38 END DIV 81 * - 93 * 52 + - - 93 + - 3
----
90

skipif mysql # not compatible
query I rowsort label-6471
SELECT DISTINCT - CASE + 83 WHEN - 33 THEN - 96 ELSE 38 END / 81 * - 93 * 52 + - - 93 + - 3
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6472
SELECT ALL + 64 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6472
SELECT ALL + 64 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6473
SELECT ALL 17 * CAST( + 59 AS SIGNED ) + + 14 - + COUNT( * ) / + CASE + 32 WHEN - 6 + - + ( + 61 ) + 9 * 18 THEN 94 * - 78 WHEN 73 * + 15 THEN NULL END / + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-6473
SELECT ALL 17 * CAST ( + 59 AS INTEGER ) + + 14 - + COUNT ( * ) / + CASE + 32 WHEN - 6 + - + ( + 61 ) + 9 * 18 THEN 94 * - 78 WHEN 73 * + 15 THEN NULL END / + 47
----
NULL

query I rowsort
SELECT - 78 * - 64
----
4992

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6475
SELECT ALL - COUNT( * ) * + 70 DIV + - 42
----
1

skipif mysql # not compatible
query I rowsort label-6475
SELECT ALL - COUNT ( * ) * + 70 / + - 42
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6476
SELECT - + ( CAST( NULL AS DECIMAL ) ) + + CASE - 39 WHEN - COALESCE ( + 93, - CAST( NULL AS DECIMAL ) / - - CAST( + + 10 AS DECIMAL ) + COUNT( * ) ) THEN + 50 * 91 WHEN 37 / 32 THEN NULL WHEN - 66 / + 76 + 76 THEN 66 END * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6476
SELECT - + ( CAST ( NULL AS REAL ) ) + + CASE - 39 WHEN - COALESCE ( + 93, - CAST ( NULL AS REAL ) / - - CAST ( + + 10 AS REAL ) + COUNT ( * ) ) THEN + 50 * 91 WHEN 37 / 32 THEN NULL WHEN - 66 / + 76 + 76 THEN 66 END * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6477
SELECT ALL + COUNT( + 42 )
----
1

skipif mysql # not compatible
query I rowsort label-6477
SELECT ALL + COUNT ( + 42 )
----
1

query I rowsort
SELECT - 66 * 22 AS col0
----
-1452

query I rowsort
SELECT 4 * + 16 + 30 - 60 AS col2
----
34

query I rowsort
SELECT COALESCE ( + + 67, 8 * + 43 )
----
67

query I rowsort
SELECT COALESCE ( 74, + 25 ) AS col1
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6482
SELECT DISTINCT CAST( - 9 AS SIGNED ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-6482
SELECT DISTINCT CAST ( - 9 AS INTEGER ) AS col0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-6483
SELECT ALL - 41 DIV + 16
----
-2

skipif mysql # not compatible
query I rowsort label-6483
SELECT ALL - 41 / + 16
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6484
SELECT ALL COALESCE ( + - 3, CAST( + 96 AS SIGNED ) )
----
-3

skipif mysql # not compatible
query I rowsort label-6484
SELECT ALL COALESCE ( + - 3, CAST ( + 96 AS INTEGER ) )
----
-3

query I rowsort
SELECT - 88 / - CASE - 12 WHEN 15 THEN + 16 * - 7 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6486
SELECT - 52 DIV + - 82 * + 71
----
0

skipif mysql # not compatible
query I rowsort label-6486
SELECT - 52 / + - 82 * + 71
----
0

query I rowsort
SELECT ALL - 6 + + 4
----
-2

query I rowsort
SELECT DISTINCT 22 + - + 95
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-6489
SELECT - CAST( NULL AS SIGNED ) AS col1, 97 * + COUNT( * ) AS col2, - 44
----
NULL
97
-44

skipif mysql # not compatible
query III rowsort label-6489
SELECT - CAST ( NULL AS INTEGER ) AS col1, 97 * + COUNT ( * ) AS col2, - 44
----
NULL
97
-44

query I rowsort
SELECT ALL + + 44 + + 46
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6491
SELECT DISTINCT COUNT( DISTINCT + 56 ) + + + 88
----
89

skipif mysql # not compatible
query I rowsort label-6491
SELECT DISTINCT COUNT ( DISTINCT + 56 ) + + + 88
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6492
SELECT ( 16 ) DIV 77 + + 15 * SUM( DISTINCT 67 ) * 1 + 14 + COUNT( * ) AS col0
----
1020

skipif mysql # not compatible
query I rowsort label-6492
SELECT ( 16 ) / 77 + + 15 * SUM ( DISTINCT 67 ) * 1 + 14 + COUNT ( * ) AS col0
----
1020

query I rowsort
SELECT 7 * + - 74 AS col0
----
-518

query I rowsort
SELECT + CASE - 50 WHEN + 72 * + + NULLIF ( - 23, + - 45 ) THEN 35 WHEN 98 THEN + 35 + 20 ELSE NULL END * 36 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6495
SELECT + 61 DIV + COUNT( * ) - - 22 + - ( + 86 ) + + 82 - + + 85 + + COUNT( * ) * + 54 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-6495
SELECT + 61 / + COUNT ( * ) - - 22 + - ( + 86 ) + + 82 - + + 85 + + COUNT ( * ) * + 54 AS col0
----
48

query I rowsort
SELECT 30 * + - 38 + NULLIF ( - - 43, - - 36 * - 48 )
----
-1097

query I rowsort
SELECT ALL ( 77 ) * 5
----
385

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6498
SELECT DISTINCT - CAST( 13 AS SIGNED )
----
-13

skipif mysql # not compatible
query I rowsort label-6498
SELECT DISTINCT - CAST ( 13 AS INTEGER )
----
-13

query I rowsort
SELECT ALL 9 - + + 27
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6500
SELECT DISTINCT - 66 * - SUM( DISTINCT CAST( NULL AS SIGNED ) ) * - + 23 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6500
SELECT DISTINCT - 66 * - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) * - + 23 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6501
SELECT ALL - + COUNT( ALL + 91 ) - - 16 * - 16 + COUNT( * ) DIV + 26 + - ( 43 ) AS col0
----
-300

skipif mysql # not compatible
query I rowsort label-6501
SELECT ALL - + COUNT ( ALL + 91 ) - - 16 * - 16 + COUNT ( * ) / + 26 + - ( 43 ) AS col0
----
-300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6502
SELECT COUNT( * ) DIV - 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6502
SELECT COUNT ( * ) / - 96 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6503
SELECT 56 - - - COUNT( * ) * + + 8 col0, 14 AS col1
----
48
14

skipif mysql # not compatible
query II rowsort label-6503
SELECT 56 - - - COUNT ( * ) * + + 8 col0, 14 AS col1
----
48
14

query II rowsort
SELECT ALL - + 54, + 49 + - 76 AS col1
----
-54
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6505
SELECT ALL - 83 - 95 * + COUNT( DISTINCT + 9 ) + + 81 + + - 91 / + + 73 * + CASE - + ( + ( + 5 ) ) WHEN + 9 + + 77 THEN - 27 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6505
SELECT ALL - 83 - 95 * + COUNT ( DISTINCT + 9 ) + + 81 + + - 91 / + + 73 * + CASE - + ( + ( + 5 ) ) WHEN + 9 + + 77 THEN - 27 END
----
NULL

query I rowsort
SELECT 30 * + + 11
----
330

query II rowsort
SELECT 22, + 82 AS col1
----
22
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6508
SELECT ALL - MAX( + - ( 7 ) )
----
7

skipif mysql # not compatible
query I rowsort label-6508
SELECT ALL - MAX ( + - ( 7 ) )
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6509
SELECT DISTINCT - CAST( + 55 AS SIGNED ) * - CASE + + 51 WHEN - - 59 * + COUNT( * ) THEN 52 END * + - 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6509
SELECT DISTINCT - CAST ( + 55 AS INTEGER ) * - CASE + + 51 WHEN - - 59 * + COUNT ( * ) THEN 52 END * + - 39 AS col0
----
NULL

query I rowsort
SELECT ALL - 37 + + ( - 53 )
----
-90

query I rowsort
SELECT DISTINCT 35 * + + 42 AS col2
----
1470

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6512
SELECT ALL 77 AS col1, 81 + + CAST( NULL AS SIGNED ) + - + 12 AS col0
----
77
NULL

skipif mysql # not compatible
query II rowsort label-6512
SELECT ALL 77 AS col1, 81 + + CAST ( NULL AS INTEGER ) + - + 12 AS col0
----
77
NULL

query I rowsort
SELECT DISTINCT 53 + + 89 + + 53
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-6514
SELECT COUNT( * ) + - + 89 AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-6514
SELECT COUNT ( * ) + - + 89 AS col2
----
-88

query I rowsort
SELECT 55 * + + 68 AS col0
----
3740

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6516
SELECT ALL - CAST( NULL AS SIGNED ) + + 17 + - 43 + - 56, COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-6516
SELECT ALL - CAST ( NULL AS INTEGER ) + + 17 + - 43 + - 56, COUNT ( * ) AS col1
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT COUNT( * ) + - SUM( DISTINCT + 61 ) + + 3 * 61
----
123

skipif mysql # not compatible
query I rowsort label-6517
SELECT COUNT ( * ) + - SUM ( DISTINCT + 61 ) + + 3 * 61
----
123

query II rowsort
SELECT 33 AS col0, + 71
----
33
71

query I rowsort
SELECT 35 + - 28
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-6520
SELECT 45 + + 3 * - 30 * 44, - 29 - - - COUNT( * ) + + + 64 - 13 * MIN( DISTINCT - 6 ) col0
----
-3915
112

skipif mysql # not compatible
query II rowsort label-6520
SELECT 45 + + 3 * - 30 * 44, - 29 - - - COUNT ( * ) + + + 64 - 13 * MIN ( DISTINCT - 6 ) col0
----
-3915
112

onlyif mysql # aggregate syntax: 
query I rowsort label-6521
SELECT 80 - - COUNT( * ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-6521
SELECT 80 - - COUNT ( * ) AS col1
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6522
SELECT 55 + ( - NULLIF ( 28, + - COALESCE ( + 58, COUNT( - 81 ) * + COALESCE ( MIN( - 20 ), + NULLIF ( - CASE 98 WHEN 28 THEN NULL ELSE MAX( - 34 ) * - 59 END, - CASE 79 WHEN 73 + 66 THEN 99 * CAST( + 85 AS SIGNED ) + - 67 ELSE 50 END ) ) * + 91 ) ) )
----
27

skipif mysql # not compatible
query I rowsort label-6522
SELECT 55 + ( - NULLIF ( 28, + - COALESCE ( + 58, COUNT ( - 81 ) * + COALESCE ( MIN ( - 20 ), + NULLIF ( - CASE 98 WHEN 28 THEN NULL ELSE MAX ( - 34 ) * - 59 END, - CASE 79 WHEN 73 + 66 THEN 99 * CAST ( + 85 AS INTEGER ) + - 67 ELSE 50 END ) ) * + 91 ) ) )
----
27

query I rowsort
SELECT ALL - 74 + + - 64
----
-138

onlyif mysql # aggregate syntax: 
query II rowsort label-6524
SELECT DISTINCT 3 AS col2, COUNT( * ) + + + 82
----
3
83

skipif mysql # not compatible
query II rowsort label-6524
SELECT DISTINCT 3 AS col2, COUNT ( * ) + + + 82
----
3
83

query I rowsort
SELECT ALL + - 9 + - - 35
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-6526
SELECT ALL + 38 DIV + + 73
----
0

skipif mysql # not compatible
query I rowsort label-6526
SELECT ALL + 38 / + + 73
----
0

query II rowsort
SELECT ALL - 42 AS col0, 31 - - - 91
----
-42
-60

query II rowsort
SELECT - 62, NULLIF ( 52, - 44 ) AS col2
----
-62
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6529
SELECT CAST( 71 AS SIGNED ) + 97
----
168

skipif mysql # not compatible
query I rowsort label-6529
SELECT CAST ( 71 AS INTEGER ) + 97
----
168

query I rowsort
SELECT ALL + 89 - - 46 - - 70 AS col0
----
205

query I rowsort
SELECT 63 * + 41
----
2583

query I rowsort
SELECT 6 * + 66 AS col1
----
396

onlyif mysql # aggregate syntax: 
query I rowsort label-6533
SELECT COUNT( * ) + + NULLIF ( 77, + ( - 8 ) + - 16 )
----
78

skipif mysql # not compatible
query I rowsort label-6533
SELECT COUNT ( * ) + + NULLIF ( 77, + ( - 8 ) + - 16 )
----
78

query I rowsort
SELECT - 97 * + 23 AS col1
----
-2231

query I rowsort
SELECT 52 * - 26
----
-1352

onlyif mysql # aggregate syntax: 
query I rowsort label-6536
SELECT ALL - + COUNT( * ) * + + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6536
SELECT ALL - + COUNT ( * ) * + + COUNT ( * ) AS col2
----
-1

query II rowsort
SELECT - 80 + 96 AS col1, 99
----
16
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6538
SELECT DISTINCT - - SUM( ALL + 14 )
----
14

skipif mysql # not compatible
query I rowsort label-6538
SELECT DISTINCT - - SUM ( ALL + 14 )
----
14

query I rowsort
SELECT DISTINCT - ( - - 82 )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6540
SELECT ALL - 37 * COUNT( * ) * + 16 AS col1
----
-592

skipif mysql # not compatible
query I rowsort label-6540
SELECT ALL - 37 * COUNT ( * ) * + 16 AS col1
----
-592

onlyif mysql # aggregate syntax: 
query I rowsort label-6541
SELECT ALL - NULLIF ( - - COUNT( * ), + 72 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6541
SELECT ALL - NULLIF ( - - COUNT ( * ), + 72 ) AS col0
----
-1

query II rowsort
SELECT DISTINCT - + 21, 48 + 53 AS col2
----
-21
101

query II rowsort
SELECT DISTINCT - 52, + 9 AS col0
----
-52
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6544
SELECT 55 * + CASE + 75 WHEN 0 * - 48 + + CASE WHEN NOT ( NULL ) BETWEEN NULL AND ( + + 67 ) THEN 56 * CASE WHEN NOT - 37 <= - 42 - + ( 67 ) THEN 39 END WHEN 26 IS NOT NULL THEN - 31 + - NULLIF ( 65, + 19 ) * SUM( 26 / 85 ) END + ( + 32 ) THEN - 26 ELSE 91 END * - 7 AS col2
----
-35035

skipif mysql # not compatible
query I rowsort label-6544
SELECT 55 * + CASE + 75 WHEN 0 * - 48 + + CASE WHEN NOT ( NULL ) BETWEEN NULL AND ( + + 67 ) THEN 56 * CASE WHEN NOT - 37 <= - 42 - + ( 67 ) THEN 39 END WHEN 26 IS NOT NULL THEN - 31 + - NULLIF ( 65, + 19 ) * SUM ( 26 / 85 ) END + ( + 32 ) THEN - 26 ELSE 91 END * - 7 AS col2
----
-35035

onlyif mysql # DIV for integer division: 
query I rowsort label-6545
SELECT - + 63 DIV + + ( + + 45 ) + + 6
----
5

skipif mysql # not compatible
query I rowsort label-6545
SELECT - + 63 / + + ( + + 45 ) + + 6
----
5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6546
SELECT ALL - NULLIF ( COUNT( * ), + - CAST( NULL AS DECIMAL ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6546
SELECT ALL - NULLIF ( COUNT ( * ), + - CAST ( NULL AS REAL ) )
----
-1

query II rowsort
SELECT + 69 AS col1, 30 AS col1
----
69
30

query II rowsort
SELECT + - 1 AS col2, 71 col1
----
-1
71

query I rowsort
SELECT - 22 + - + 79 AS col1
----
-101

query I rowsort
SELECT DISTINCT - + 61 col0
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-6551
SELECT COUNT( * ) + + - 81, 33 + + COUNT( * ) * - + 31 AS col0
----
-80
2

skipif mysql # not compatible
query II rowsort label-6551
SELECT COUNT ( * ) + + - 81, 33 + + COUNT ( * ) * - + 31 AS col0
----
-80
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6552
SELECT NULLIF ( + + 62, + - 94 * + SUM( ALL + 62 ) + - 18 ) DIV 95 * 7 + - 25 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-6552
SELECT NULLIF ( + + 62, + - 94 * + SUM ( ALL + 62 ) + - 18 ) / 95 * 7 + - 25 AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6553
SELECT ALL NULLIF ( - 91, - COUNT( * ) ) + 7
----
-84

skipif mysql # not compatible
query I rowsort label-6553
SELECT ALL NULLIF ( - 91, - COUNT ( * ) ) + 7
----
-84

query II rowsort
SELECT - 0 * + 87 + - 63 AS col2, 24 AS col0
----
-63
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6555
SELECT MAX( + - 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-6555
SELECT MAX ( + - 12 )
----
-12

query I rowsort
SELECT ALL 94 * + 39 * + 50 AS col1
----
183300

onlyif mysql # aggregate syntax: 
query II rowsort label-6557
SELECT ALL 12 + 18, - COUNT( * ) col0
----
30
-1

skipif mysql # not compatible
query II rowsort label-6557
SELECT ALL 12 + 18, - COUNT ( * ) col0
----
30
-1

query I rowsort
SELECT COALESCE ( - - 69, + 65 ) * 62 AS col1
----
4278

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6559
SELECT DISTINCT CAST( NULL AS DECIMAL ) / 93 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6559
SELECT DISTINCT CAST ( NULL AS REAL ) / 93 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6560
SELECT DISTINCT 99 + - 49 AS col2, 7 + - 90 + 51 * + 2 + + NULLIF ( - + 65, + 36 ) + + COUNT( * ) col2
----
50
-45

skipif mysql # not compatible
query II rowsort label-6560
SELECT DISTINCT 99 + - 49 AS col2, 7 + - 90 + 51 * + 2 + + NULLIF ( - + 65, + 36 ) + + COUNT ( * ) col2
----
50
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6561
SELECT - COALESCE ( + + COUNT( * ), - - ( 89 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6561
SELECT - COALESCE ( + + COUNT ( * ), - - ( 89 ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6562
SELECT ALL - 6 + + + MIN( 87 ) DIV 76 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-6562
SELECT ALL - 6 + + + MIN ( 87 ) / 76 AS col0
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6563
SELECT - COALESCE ( - + 88, + 45, + 85 + - CASE CAST( NULL AS SIGNED ) WHEN + + 24 THEN - - 91 END * MIN( + ( + + 86 ) ), - 79 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-6563
SELECT - COALESCE ( - + 88, + 45, + 85 + - CASE CAST ( NULL AS INTEGER ) WHEN + + 24 THEN - - 91 END * MIN ( + ( + + 86 ) ), - 79 ) AS col1
----
88

query II rowsort
SELECT DISTINCT + 88 * + - 55, + NULLIF ( - 36, - 77 * - + 33 ) + + + 36 * + 85 AS col1
----
-4840
3024

onlyif mysql # aggregate syntax: 
query I rowsort label-6565
SELECT DISTINCT MAX( DISTINCT - 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-6565
SELECT DISTINCT MAX ( DISTINCT - 62 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-6566
SELECT ALL - + 77 - + ( ( - - ( + ( - - COUNT( ALL + 42 ) ) ) ) ) * + 57 * + 61 AS col1
----
-3554

skipif mysql # not compatible
query I rowsort label-6566
SELECT ALL - + 77 - + ( ( - - ( + ( - - COUNT ( ALL + 42 ) ) ) ) ) * + 57 * + 61 AS col1
----
-3554

onlyif mysql # aggregate syntax: 
query I rowsort label-6567
SELECT + 81 - MIN( - - ( 5 ) )
----
76

skipif mysql # not compatible
query I rowsort label-6567
SELECT + 81 - MIN ( - - ( 5 ) )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6568
SELECT - - 32 * + ( COUNT( - 63 ) ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-6568
SELECT - - 32 * + ( COUNT ( - 63 ) ) AS col0
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-6569
SELECT - MAX( DISTINCT 1 ) AS col0, 36 * - - COUNT( * ) AS col0
----
-1
36

skipif mysql # not compatible
query II rowsort label-6569
SELECT - MAX ( DISTINCT 1 ) AS col0, 36 * - - COUNT ( * ) AS col0
----
-1
36

onlyif mysql # DIV for integer division: 
query II rowsort label-6570
SELECT - + 71 DIV - + 61, + 17 AS col1
----
1
17

skipif mysql # not compatible
query II rowsort label-6570
SELECT - + 71 / - + 61, + 17 AS col1
----
1
17

query I rowsort
SELECT - - 97 - 44
----
53

onlyif mysql # DIV for integer division: 
query II rowsort label-6572
SELECT DISTINCT + 33 DIV - 29 AS col2, 75 AS col1
----
-1
75

skipif mysql # not compatible
query II rowsort label-6572
SELECT DISTINCT + 33 / - 29 AS col2, 75 AS col1
----
-1
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6573
SELECT DISTINCT NULLIF ( 44, + CASE 4 WHEN + ( - - NULLIF ( + + 61, + CAST( NULL AS SIGNED ) ) ) + - + 83 THEN + + ( - - ( + 76 ) ) WHEN 26 THEN NULL END + 65 )
----
44

skipif mysql # not compatible
query I rowsort label-6573
SELECT DISTINCT NULLIF ( 44, + CASE 4 WHEN + ( - - NULLIF ( + + 61, + CAST ( NULL AS INTEGER ) ) ) + - + 83 THEN + + ( - - ( + 76 ) ) WHEN 26 THEN NULL END + 65 )
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6574
SELECT ALL + - 97 DIV - 61 * + + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6574
SELECT ALL + - 97 / - 61 * + + COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6575
SELECT DISTINCT + MIN( 46 ) * COUNT( * ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-6575
SELECT DISTINCT + MIN ( 46 ) * COUNT ( * ) AS col0
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6576
SELECT - COALESCE ( + COUNT( * ), - 67 ) + - 48 + + CAST( NULL AS SIGNED ) AS col1, + 63 AS col1
----
NULL
63

skipif mysql # not compatible
query II rowsort label-6576
SELECT - COALESCE ( + COUNT ( * ), - 67 ) + - 48 + + CAST ( NULL AS INTEGER ) AS col1, + 63 AS col1
----
NULL
63

query I rowsort
SELECT ALL + ( - + 59 ) AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT DISTINCT - + 3 * + 52 + 18 + 45 + + COUNT( * ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-6578
SELECT DISTINCT - + 3 * + 52 + 18 + 45 + + COUNT ( * ) AS col1
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-6579
SELECT - 24 + + 44 AS col1, + COUNT( ALL + 89 ) + + ( + - MAX( - - 70 ) ) AS col2
----
20
-69

skipif mysql # not compatible
query II rowsort label-6579
SELECT - 24 + + 44 AS col1, + COUNT ( ALL + 89 ) + + ( + - MAX ( - - 70 ) ) AS col2
----
20
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6580
SELECT ALL + ( - 35 ) * - COUNT( * ) + + 12
----
47

skipif mysql # not compatible
query I rowsort label-6580
SELECT ALL + ( - 35 ) * - COUNT ( * ) + + 12
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-6581
SELECT DISTINCT + 52 AS col1, 57 * NULLIF ( + NULLIF ( + - 18, - 9 / + ( + 28 ) + + - 99 + 64 + 10 ), - - 88 + - 56 - 66 * 48 ) * MAX( ALL 55 ) AS col2
----
52
-56430

skipif mysql # not compatible
query II rowsort label-6581
SELECT DISTINCT + 52 AS col1, 57 * NULLIF ( + NULLIF ( + - 18, - 9 / + ( + 28 ) + + - 99 + 64 + 10 ), - - 88 + - 56 - 66 * 48 ) * MAX ( ALL 55 ) AS col2
----
52
-56430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6582
SELECT ALL - 21 * + MIN( DISTINCT + - 61 ) + + + ( - + ( 39 ) ) + NULLIF ( + NULLIF ( CASE - 19 WHEN + 24 THEN + 88 ELSE NULL END, ( - 95 ) - CASE 46 WHEN COUNT( ALL 83 ) THEN 87 / CAST( NULL AS SIGNED ) WHEN + 55 THEN 84 + + CAST( + 4 AS SIGNED ) * 71 END * + COUNT( * ) ), 67 ) - - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-6582
SELECT ALL - 21 * + MIN ( DISTINCT + - 61 ) + + + ( - + ( 39 ) ) + NULLIF ( + NULLIF ( CASE - 19 WHEN + 24 THEN + 88 ELSE NULL END, ( - 95 ) - CASE 46 WHEN COUNT ( ALL 83 ) THEN 87 / CAST ( NULL AS INTEGER ) WHEN + 55 THEN 84 + + CAST ( + 4 AS INTEGER ) * 71 END * + COUNT ( * ) ), 67 ) - - 40
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6583
SELECT DISTINCT + COUNT( * ) * - - COUNT( * ) + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-6583
SELECT DISTINCT + COUNT ( * ) * - - COUNT ( * ) + - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6584
SELECT + MAX( DISTINCT 43 )
----
43

skipif mysql # not compatible
query I rowsort label-6584
SELECT + MAX ( DISTINCT 43 )
----
43

query II rowsort
SELECT ALL 21 * - 42 + + 62 AS col0, 48
----
-820
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6586
SELECT + COUNT( * ) * - 21 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-6586
SELECT + COUNT ( * ) * - 21 AS col2
----
-21

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6587
SELECT DISTINCT - 5 * 91 * + COUNT( * ) * + + ( - 37 ) * + + COALESCE ( - COUNT( * ), + + CASE WHEN 53 >= ( + 44 + 43 ) THEN NULL ELSE - COUNT( * ) * - 26 END * COALESCE ( + ( CAST( NULL AS DECIMAL ) ) * 11 + - 60, 22 * + 55 ) ) + CASE - 23 WHEN - COALESCE ( + 32, 73 * + 90 ) THEN 41 + + 19 ELSE NULL END + + 62 / COUNT( ALL + ( NULLIF ( 64, CASE + 53 WHEN 1 - - 12 THEN 88 * 0 END - 16 ) ) / - 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6587
SELECT DISTINCT - 5 * 91 * + COUNT ( * ) * + + ( - 37 ) * + + COALESCE ( - COUNT ( * ), + + CASE WHEN 53 >= ( + 44 + 43 ) THEN NULL ELSE - COUNT ( * ) * - 26 END * COALESCE ( + ( CAST ( NULL AS REAL ) ) * 11 + - 60, 22 * + 55 ) ) + CASE - 23 WHEN - COALESCE ( + 32, 73 * + 90 ) THEN 41 + + 19 ELSE NULL END + + 62 / COUNT ( ALL + ( NULLIF ( 64, CASE + 53 WHEN 1 - - 12 THEN 88 * 0 END - 16 ) ) / - 17 )
----
NULL

query I rowsort
SELECT ALL - 72 * + + 38 + + 61 AS col2
----
-2675

query II rowsort
SELECT + 74, - 47 AS col1
----
74
-47

query I rowsort
SELECT CASE + 86 WHEN - + 47 THEN NULL WHEN - + 69 THEN + 90 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6591
SELECT ALL 58 * - CAST( NULL AS SIGNED ) + + + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-6591
SELECT ALL 58 * - CAST ( NULL AS INTEGER ) + + + 22
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6592
SELECT DISTINCT 33 * + - MIN( DISTINCT 25 ) + - 39
----
-864

skipif mysql # not compatible
query I rowsort label-6592
SELECT DISTINCT 33 * + - MIN ( DISTINCT 25 ) + - 39
----
-864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6593
SELECT DISTINCT 2 * + - 52 + - + COALESCE ( + + ( 8 ), - 59 ) col2, COUNT( * ) * NULLIF ( + + COALESCE ( - 86, - SUM( ALL + - 27 ) - 59 + 29 * + CAST( NULL AS SIGNED ) ), COUNT( * ) ) DIV - 65 - + 39
----
-112
-38

skipif mysql # not compatible
query II rowsort label-6593
SELECT DISTINCT 2 * + - 52 + - + COALESCE ( + + ( 8 ), - 59 ) col2, COUNT ( * ) * NULLIF ( + + COALESCE ( - 86, - SUM ( ALL + - 27 ) - 59 + 29 * + CAST ( NULL AS INTEGER ) ), COUNT ( * ) ) / - 65 - + 39
----
-112
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6594
SELECT ALL 8 * + 55 - 41 + + + COALESCE ( + + 84, ( - + 57 ) - 34 + NULLIF ( - 96, - + 30 / CAST( NULL AS SIGNED ) ) * - 7 - 74 * MIN( DISTINCT 15 ) * 28 ) col1
----
483

skipif mysql # not compatible
query I rowsort label-6594
SELECT ALL 8 * + 55 - 41 + + + COALESCE ( + + 84, ( - + 57 ) - 34 + NULLIF ( - 96, - + 30 / CAST ( NULL AS INTEGER ) ) * - 7 - 74 * MIN ( DISTINCT 15 ) * 28 ) col1
----
483

query I rowsort
SELECT DISTINCT + NULLIF ( + - 77, 5 ) * + 64 AS col0
----
-4928

onlyif mysql # aggregate syntax: 
query I rowsort label-6596
SELECT DISTINCT ( + 5 ) * 43 + - 87 + + + 45 - - 29 + CASE - 95 WHEN + - 53 THEN NULL WHEN + - ( - 47 ) THEN + - COUNT( * ) * + 48 * MAX( ALL 45 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6596
SELECT DISTINCT ( + 5 ) * 43 + - 87 + + + 45 - - 29 + CASE - 95 WHEN + - 53 THEN NULL WHEN + - ( - 47 ) THEN + - COUNT ( * ) * + 48 * MAX ( ALL 45 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6597
SELECT ALL MIN( ALL + 21 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-6597
SELECT ALL MIN ( ALL + 21 ) AS col2
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6598
SELECT + - 42 + - CAST( - 28 AS SIGNED ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-6598
SELECT + - 42 + - CAST ( - 28 AS INTEGER ) AS col0
----
-14

query I rowsort
SELECT + 56 * + - 82
----
-4592

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6600
SELECT + COUNT( * ) * + 90 * + CAST( + - 30 AS SIGNED ) * COUNT( * ) - - 87 + + - 24
----
-2637

skipif mysql # not compatible
query I rowsort label-6600
SELECT + COUNT ( * ) * + 90 * + CAST ( + - 30 AS INTEGER ) * COUNT ( * ) - - 87 + + - 24
----
-2637

onlyif mysql # aggregate syntax: 
query I rowsort label-6601
SELECT + + MIN( DISTINCT + + ( - 99 ) ) + + + 53
----
-46

skipif mysql # not compatible
query I rowsort label-6601
SELECT + + MIN ( DISTINCT + + ( - 99 ) ) + + + 53
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6602
SELECT - + MAX( 82 ) - 92 + + 67 + 13
----
-94

skipif mysql # not compatible
query I rowsort label-6602
SELECT - + MAX ( 82 ) - 92 + + 67 + 13
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6603
SELECT ALL NULLIF ( - 85, - MIN( - + 92 ) + + NULLIF ( - COUNT( * ), + 47 + COUNT( * ) ) / CAST( - - 24 AS SIGNED ) * - 49 ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-6603
SELECT ALL NULLIF ( - 85, - MIN ( - + 92 ) + + NULLIF ( - COUNT ( * ), + 47 + COUNT ( * ) ) / CAST ( - - 24 AS INTEGER ) * - 49 ) AS col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6604
SELECT DISTINCT + MIN( - + 83 ) col0
----
-83

skipif mysql # not compatible
query I rowsort label-6604
SELECT DISTINCT + MIN ( - + 83 ) col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-6605
SELECT + - 42 * - COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-6605
SELECT + - 42 * - COUNT ( * )
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6606
SELECT + 15 + - + CAST( + + 41 AS SIGNED ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-6606
SELECT + 15 + - + CAST ( + + 41 AS INTEGER ) AS col2
----
-26

query I rowsort
SELECT ALL + - 37 * - - 24 + - 17 + - 74
----
-979

onlyif mysql # aggregate syntax: 
query I rowsort label-6608
SELECT DISTINCT 3 * + 74 + + COUNT( * )
----
223

skipif mysql # not compatible
query I rowsort label-6608
SELECT DISTINCT 3 * + 74 + + COUNT ( * )
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-6609
SELECT + COUNT( ALL - - 36 ) * MIN( DISTINCT + 7 )
----
7

skipif mysql # not compatible
query I rowsort label-6609
SELECT + COUNT ( ALL - - 36 ) * MIN ( DISTINCT + 7 )
----
7

query I rowsort
SELECT - 42 + + 66 * - 38
----
-2550

query II rowsort
SELECT DISTINCT 87 AS col0, + 48
----
87
48

query I rowsort
SELECT ALL + 54 + - ( - - 18 )
----
36

query II rowsort
SELECT 80, - 26 AS col0
----
80
-26

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6614
SELECT ALL + - 95 + NULLIF ( + 59, 8 * + 59 * - 52 ), COUNT( * ) * 66 + + + 62 / NULLIF ( + - 27, + 46 * + - 99 ) + - MAX( - CAST( NULL AS DECIMAL ) + - 8 ) AS col2
----
-36
NULL

skipif mysql # not compatible
query II rowsort label-6614
SELECT ALL + - 95 + NULLIF ( + 59, 8 * + 59 * - 52 ), COUNT ( * ) * 66 + + + 62 / NULLIF ( + - 27, + 46 * + - 99 ) + - MAX ( - CAST ( NULL AS REAL ) + - 8 ) AS col2
----
-36
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6615
SELECT + + 16 * - SUM( DISTINCT + 96 ) AS col0
----
-1536

skipif mysql # not compatible
query I rowsort label-6615
SELECT + + 16 * - SUM ( DISTINCT + 96 ) AS col0
----
-1536

query I rowsort
SELECT ALL - 78 * - 39
----
3042

query I rowsort
SELECT - 7 + + ( - 4 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6618
SELECT ALL + SUM( ALL + 67 )
----
67

skipif mysql # not compatible
query I rowsort label-6618
SELECT ALL + SUM ( ALL + 67 )
----
67

query I rowsort
SELECT DISTINCT - 96 * 69 AS col0
----
-6624

onlyif mysql # DIV for integer division: 
query I rowsort label-6620
SELECT - 42 DIV 87
----
0

skipif mysql # not compatible
query I rowsort label-6620
SELECT - 42 / 87
----
0

query I rowsort
SELECT - 53 * + - 9 AS col2
----
477

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6622
SELECT - 71 + - 32 + - 28 * 3 * COALESCE ( - 28, + CAST( NULL AS SIGNED ) ) + CASE - COUNT( * ) WHEN 97 * + COUNT( * ) * + + 41 THEN - ( + - 14 ) - + 51 END * - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-6622
SELECT - 71 + - 32 + - 28 * 3 * COALESCE ( - 28, + CAST ( NULL AS INTEGER ) ) + CASE - COUNT ( * ) WHEN 97 * + COUNT ( * ) * + + 41 THEN - ( + - 14 ) - + 51 END * - 66
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT 45 + - NULLIF ( - 91, - MAX( + - 31 ) * + 24 + + ( 99 ) ) - - 80 * - 20 * 58
----
-92664

skipif mysql # not compatible
query I rowsort label-6623
SELECT 45 + - NULLIF ( - 91, - MAX ( + - 31 ) * + 24 + + ( 99 ) ) - - 80 * - 20 * 58
----
-92664

query I rowsort
SELECT DISTINCT + 6 - + 49 + + + 98
----
55

query I rowsort
SELECT ALL + 15 * + 85
----
1275

onlyif mysql # aggregate syntax: 
query I rowsort label-6626
SELECT + 53 * + 46 * + 46 * COUNT( * ) + - + 70 + 82
----
112160

skipif mysql # not compatible
query I rowsort label-6626
SELECT + 53 * + 46 * + 46 * COUNT ( * ) + - + 70 + 82
----
112160

query I rowsort
SELECT DISTINCT - ( - 87 ) AS col2
----
87

query I rowsort
SELECT ALL - 43 - + + 70 + + 75
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-6629
SELECT 60 DIV - + 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6629
SELECT 60 / - + 98 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6630
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6630
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 54 AS col2
----
NULL

query I rowsort
SELECT + NULLIF ( 90, 88 - 67 ) * - + 53
----
-4770

onlyif mysql # aggregate syntax: 
query I rowsort label-6632
SELECT ALL - + COUNT( * ) * 93 * - 24 * + MIN( DISTINCT 12 ) + - CASE 48 WHEN 0 * - 13 + 52 THEN - - MAX( 13 ) + - + 46 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6632
SELECT ALL - + COUNT ( * ) * 93 * - 24 * + MIN ( DISTINCT 12 ) + - CASE 48 WHEN 0 * - 13 + 52 THEN - - MAX ( 13 ) + - + 46 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6633
SELECT + 57 DIV - 94 * - 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6633
SELECT + 57 / - 94 * - 98 AS col0
----
0

query I rowsort
SELECT + 26 * - 83 col2
----
-2158

query I rowsort
SELECT + 66 - - - 11
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6636
SELECT DISTINCT COUNT( * ) + - - 72 - + 81
----
-8

skipif mysql # not compatible
query I rowsort label-6636
SELECT DISTINCT COUNT ( * ) + - - 72 - + 81
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6637
SELECT CAST( NULL AS SIGNED ) - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6637
SELECT CAST ( NULL AS INTEGER ) - - COUNT ( * ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6638
SELECT - 93 DIV - ( 72 ) + 52
----
53

skipif mysql # not compatible
query I rowsort label-6638
SELECT - 93 / - ( 72 ) + 52
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT DISTINCT + COALESCE ( - 95, + 53 * + - CASE + 29 WHEN + 92 THEN NULL WHEN - + 38 THEN - 82 * + + 61 - 92 + - 39 + 14 + - COUNT( * ) END, - 84 * 89 )
----
-95

skipif mysql # not compatible
query I rowsort label-6639
SELECT DISTINCT + COALESCE ( - 95, + 53 * + - CASE + 29 WHEN + 92 THEN NULL WHEN - + 38 THEN - 82 * + + 61 - 92 + - 39 + 14 + - COUNT ( * ) END, - 84 * 89 )
----
-95

query II rowsort
SELECT - 6 * + + COALESCE ( 94, + + 44 ) * - 35, - 93 * + 24 AS col0
----
19740
-2232

onlyif mysql # aggregate syntax: 
query I rowsort label-6641
SELECT DISTINCT + 42 + - 38 + COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-6641
SELECT DISTINCT + 42 + - 38 + COUNT ( * )
----
5

query I rowsort
SELECT ALL + COALESCE ( - ( 66 ), - 80 ) AS col1
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6643
SELECT 13 + + 43 * + 18 * + - 55 * 94 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6643
SELECT 13 + + 43 * + 18 * + - 55 * 94 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 72 * + 47 AS col2
----
3384

onlyif mysql # aggregate syntax: 
query I rowsort label-6645
SELECT DISTINCT 89 * - COUNT( * ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-6645
SELECT DISTINCT 89 * - COUNT ( * ) AS col2
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-6646
SELECT ALL 24 - 70 + 97 + + 28 * + ( 60 ) DIV - - 12
----
191

skipif mysql # not compatible
query I rowsort label-6646
SELECT ALL 24 - 70 + 97 + + 28 * + ( 60 ) / - - 12
----
191

query I rowsort
SELECT 39 + - 85
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6648
SELECT - 0 * + + CASE COUNT( * ) WHEN + SUM( + COALESCE ( - 43, 67 ) ) * 56 THEN + 19 * 83 * - 25 + MIN( + - ( - + 84 ) ) ELSE NULL END * 60 + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-6648
SELECT - 0 * + + CASE COUNT ( * ) WHEN + SUM ( + COALESCE ( - 43, 67 ) ) * 56 THEN + 19 * 83 * - 25 + MIN ( + - ( - + 84 ) ) ELSE NULL END * 60 + 55
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6649
SELECT ALL - NULLIF ( + + 55, 98 * - MIN( 20 ) + 34 )
----
-55

skipif mysql # not compatible
query I rowsort label-6649
SELECT ALL - NULLIF ( + + 55, 98 * - MIN ( 20 ) + 34 )
----
-55

query I rowsort
SELECT ALL 88 - - + 85 AS col0
----
173

onlyif mysql # DIV for integer division: 
query I rowsort label-6651
SELECT ALL - 47 DIV - - 79 * + 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6651
SELECT ALL - 47 / - - 79 * + 91 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6652
SELECT 83 + - 56 * + SUM( 32 ) col2
----
-1709

skipif mysql # not compatible
query I rowsort label-6652
SELECT 83 + - 56 * + SUM ( 32 ) col2
----
-1709

onlyif mysql # DIV for integer division: 
query I rowsort label-6653
SELECT ALL - 57 DIV + + 18
----
-3

skipif mysql # not compatible
query I rowsort label-6653
SELECT ALL - 57 / + + 18
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-6654
SELECT SUM( - + 9 ) * - - COUNT( * ) AS col2, 2 AS col2
----
-9
2

skipif mysql # not compatible
query II rowsort label-6654
SELECT SUM ( - + 9 ) * - - COUNT ( * ) AS col2, 2 AS col2
----
-9
2

query I rowsort
SELECT ALL - 48 * - 36
----
1728

query III rowsort
SELECT 34 AS col0, ( + 84 ) AS col1, - + 76
----
34
84
-76

query I rowsort
SELECT ALL - ( 72 ) AS col0
----
-72

query I rowsort
SELECT + 24 * + + 47 * - + 14 - 19
----
-15811

query I rowsort
SELECT ALL - - 91 col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6660
SELECT ALL + - 82 + MAX( 39 )
----
-43

skipif mysql # not compatible
query I rowsort label-6660
SELECT ALL + - 82 + MAX ( 39 )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-6661
SELECT - + COUNT( - - 84 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-6661
SELECT - + COUNT ( - - 84 ) col2
----
-1

query I rowsort
SELECT 55 + - - 47 AS col0
----
102

onlyif mysql # aggregate syntax: 
query II rowsort label-6663
SELECT ALL + + 90 + + 96 * + NULLIF ( 26, MIN( ALL NULLIF ( + + 67, - 96 / + + 29 ) ) * - COUNT( * ) ) AS col1, COUNT( * ) * - - 64 * + COUNT( * ) + + + ( - 93 ) - COUNT( * ) * 4
----
2586
-33

skipif mysql # not compatible
query II rowsort label-6663
SELECT ALL + + 90 + + 96 * + NULLIF ( 26, MIN ( ALL NULLIF ( + + 67, - 96 / + + 29 ) ) * - COUNT ( * ) ) AS col1, COUNT ( * ) * - - 64 * + COUNT ( * ) + + + ( - 93 ) - COUNT ( * ) * 4
----
2586
-33

query I rowsort
SELECT 32 + - 99 AS col0
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6665
SELECT + 24 * - + ( CAST( - ( - 26 ) AS SIGNED ) ) AS col1
----
-624

skipif mysql # not compatible
query I rowsort label-6665
SELECT + 24 * - + ( CAST ( - ( - 26 ) AS INTEGER ) ) AS col1
----
-624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6666
SELECT ALL - AVG ( DISTINCT + 8 ) + + SUM( DISTINCT - + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6666
SELECT ALL - AVG ( DISTINCT + 8 ) + + SUM ( DISTINCT - + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT - 33 - - 78 + 85 * - 38
----
-3185

query I rowsort
SELECT DISTINCT - + 61 + 80 AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6669
SELECT ALL 21 * - 47 * - MIN( + 42 )
----
41454

skipif mysql # not compatible
query I rowsort label-6669
SELECT ALL 21 * - 47 * - MIN ( + 42 )
----
41454

onlyif mysql # aggregate syntax: 
query I rowsort label-6670
SELECT - COUNT( + 5 ) + + 52
----
51

skipif mysql # not compatible
query I rowsort label-6670
SELECT - COUNT ( + 5 ) + + 52
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6671
SELECT DISTINCT + - 48 + SUM( ALL - 33 )
----
-81

skipif mysql # not compatible
query I rowsort label-6671
SELECT DISTINCT + - 48 + SUM ( ALL - 33 )
----
-81

query I rowsort
SELECT ALL - 13 + 85 col1
----
72

query I rowsort
SELECT + 13 + + 70
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6674
SELECT DISTINCT - - COUNT( * ) * ( + 81 ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-6674
SELECT DISTINCT - - COUNT ( * ) * ( + 81 ) AS col0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6675
SELECT SUM( DISTINCT + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6675
SELECT SUM ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ( 53 ) + 86 * 72 AS col0
----
6245

query I rowsort
SELECT - 66 * 75 AS col1
----
-4950

query I rowsort
SELECT 58 + - 30 AS col0
----
28

query I rowsort
SELECT ALL 48 - - 55
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-6680
SELECT ALL 24 DIV - 33
----
0

skipif mysql # not compatible
query I rowsort label-6680
SELECT ALL 24 / - 33
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6681
SELECT ALL 42 / - CAST( NULL AS SIGNED ) AS col1, - 52 - - - 50 * - - 31 + - 33 * + + 44 AS col0
----
NULL
-3054

skipif mysql # not compatible
query II rowsort label-6681
SELECT ALL 42 / - CAST ( NULL AS INTEGER ) AS col1, - 52 - - - 50 * - - 31 + - 33 * + + 44 AS col0
----
NULL
-3054

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6682
SELECT DISTINCT CASE + CAST( 65 AS SIGNED ) WHEN COUNT( * ) * + COUNT( * ) + + 66 THEN + - ( ( - 94 ) ) WHEN COUNT( * ) THEN + + COALESCE ( + 25, - + SUM( - - 34 ) + + COUNT( ALL - 20 ) + 86 * - NULLIF ( + 25 / ( COUNT( * ) ), + ( + 90 ) * + 76 ) ) * + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6682
SELECT DISTINCT CASE + CAST ( 65 AS INTEGER ) WHEN COUNT ( * ) * + COUNT ( * ) + + 66 THEN + - ( ( - 94 ) ) WHEN COUNT ( * ) THEN + + COALESCE ( + 25, - + SUM ( - - 34 ) + + COUNT ( ALL - 20 ) + 86 * - NULLIF ( + 25 / ( COUNT ( * ) ), + ( + 90 ) * + 76 ) ) * + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6683
SELECT - COUNT( * ) AS col1, + 57 AS col2
----
-1
57

skipif mysql # not compatible
query II rowsort label-6683
SELECT - COUNT ( * ) AS col1, + 57 AS col2
----
-1
57

query II rowsort
SELECT ALL 18 AS col2, + 11 * + 94
----
18
1034

query I rowsort
SELECT + 76 * 82
----
6232

onlyif mysql # aggregate syntax: 
query II rowsort label-6686
SELECT + 94 + 28 + COALESCE ( + 85, + 4 * 78 ) col0, NULLIF ( + 36, + 86 * + 54 / 18 * 1 / - 49 + 8 ) - ( + COUNT( * ) )
----
207
35

skipif mysql # not compatible
query II rowsort label-6686
SELECT + 94 + 28 + COALESCE ( + 85, + 4 * 78 ) col0, NULLIF ( + 36, + 86 * + 54 / 18 * 1 / - 49 + 8 ) - ( + COUNT ( * ) )
----
207
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6687
SELECT + MIN( DISTINCT 41 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-6687
SELECT + MIN ( DISTINCT 41 ) AS col2
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6688
SELECT ALL 34 * - - ( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6688
SELECT ALL 34 * - - ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT + 58 + 42 col2
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6690
SELECT COALESCE ( - 52, - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) * - 85 * + 76 + 5 + COALESCE ( - 67, - 84 ) DIV + 19 * ( 10 ) * - 38, + 72 )
----
-52

skipif mysql # not compatible
query I rowsort label-6690
SELECT COALESCE ( - 52, - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) * - 85 * + 76 + 5 + COALESCE ( - 67, - 84 ) / + 19 * ( 10 ) * - 38, + 72 )
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6691
SELECT ALL + NULLIF ( - 42, + 1 * CAST( NULL AS SIGNED ) ) AS col2, CAST( NULL AS SIGNED ) AS col2
----
-42
NULL

skipif mysql # not compatible
query II rowsort label-6691
SELECT ALL + NULLIF ( - 42, + 1 * CAST ( NULL AS INTEGER ) ) AS col2, CAST ( NULL AS INTEGER ) AS col2
----
-42
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6692
SELECT ALL 76 * + 81 + - - NULLIF ( - - MAX( DISTINCT + ( 96 ) ), + 52 * + 44 )
----
6252

skipif mysql # not compatible
query I rowsort label-6692
SELECT ALL 76 * + 81 + - - NULLIF ( - - MAX ( DISTINCT + ( 96 ) ), + 52 * + 44 )
----
6252

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6693
SELECT ALL - 65 * 82 + 18 - + - 48 * + + 90 * - CAST( NULL AS DECIMAL ) + - + 8 + + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-6693
SELECT ALL - 65 * 82 + 18 - + - 48 * + + 90 * - CAST ( NULL AS REAL ) + - + 8 + + 26
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6694
SELECT + 11 DIV 78
----
0

skipif mysql # not compatible
query I rowsort label-6694
SELECT + 11 / 78
----
0

query II rowsort
SELECT + - 70, 37 * + - 2 * + 85 AS col1
----
-70
-6290

onlyif mysql # aggregate syntax: 
query I rowsort label-6696
SELECT 64 * + + 50 + + COUNT( * ) AS col2
----
3201

skipif mysql # not compatible
query I rowsort label-6696
SELECT 64 * + + 50 + + COUNT ( * ) AS col2
----
3201

onlyif mysql # aggregate syntax: 
query I rowsort label-6697
SELECT DISTINCT - - 25 * 10 * - 2 - + - MAX( DISTINCT + + 85 ) + - - MIN( 96 ) AS col0
----
-319

skipif mysql # not compatible
query I rowsort label-6697
SELECT DISTINCT - - 25 * 10 * - 2 - + - MAX ( DISTINCT + + 85 ) + - - MIN ( 96 ) AS col0
----
-319

onlyif mysql # aggregate syntax: 
query I rowsort label-6698
SELECT + + 78 * + + COALESCE ( - 7, + COUNT( * ) + + 32 ) AS col1
----
-546

skipif mysql # not compatible
query I rowsort label-6698
SELECT + + 78 * + + COALESCE ( - 7, + COUNT ( * ) + + 32 ) AS col1
----
-546

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6699
SELECT ALL + MAX( DISTINCT 46 ) * - 5 * 15 + - - 27 DIV + 46, + 85 * + + COUNT( * ) AS col2
----
-3450
85

skipif mysql # not compatible
query II rowsort label-6699
SELECT ALL + MAX ( DISTINCT 46 ) * - 5 * 15 + - - 27 / + 46, + 85 * + + COUNT ( * ) AS col2
----
-3450
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6700
SELECT - + ( - + COUNT( * ) ) * 7
----
7

skipif mysql # not compatible
query I rowsort label-6700
SELECT - + ( - + COUNT ( * ) ) * 7
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6701
SELECT ALL + 97 + + + COUNT( * ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-6701
SELECT ALL + 97 + + + COUNT ( * ) AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6702
SELECT COUNT( 63 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6702
SELECT COUNT ( 63 ) AS col2
----
1

query I rowsort
SELECT ALL + 17 + + 35 + - ( 30 ) * - ( - 65 ) col0
----
-1898

query II rowsort
SELECT - 33 AS col1, - 46 * ( NULLIF ( 62, + + ( + 28 ) - - 18 + - 46 ) ) col1
----
-33
-2852

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6705
SELECT CASE 5 WHEN + 62 * - CAST( - 71 AS SIGNED ) * - 91 - + 45 * 30 + 0 * + 56 * + - 36 THEN - - ( + - 69 ) + - 27 / + + 79 WHEN + 32 + + 72 THEN + 25 * 16 WHEN COALESCE ( - 49, - COALESCE ( 90, 72 ), ( - 67 ) * - 45 ) THEN NULL ELSE + 95 END AS col0
----
95

skipif mysql # not compatible
query I rowsort label-6705
SELECT CASE 5 WHEN + 62 * - CAST ( - 71 AS INTEGER ) * - 91 - + 45 * 30 + 0 * + 56 * + - 36 THEN - - ( + - 69 ) + - 27 / + + 79 WHEN + 32 + + 72 THEN + 25 * 16 WHEN COALESCE ( - 49, - COALESCE ( 90, 72 ), ( - 67 ) * - 45 ) THEN NULL ELSE + 95 END AS col0
----
95

query I rowsort
SELECT ALL - + 75 + - 45 + 66 + 0 * + 57 * 70 * 96 col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6707
SELECT - 97 * - ( ( + COUNT( * ) ) ) + + 18 AS col0
----
115

skipif mysql # not compatible
query I rowsort label-6707
SELECT - 97 * - ( ( + COUNT ( * ) ) ) + + 18 AS col0
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-6708
SELECT ALL - + 59 * - COUNT( * ) * + - 44
----
-2596

skipif mysql # not compatible
query I rowsort label-6708
SELECT ALL - + 59 * - COUNT ( * ) * + - 44
----
-2596

onlyif mysql # aggregate syntax: 
query I rowsort label-6709
SELECT ( + COUNT( ALL 57 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6709
SELECT ( + COUNT ( ALL 57 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6710
SELECT + COUNT( - 30 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6710
SELECT + COUNT ( - 30 ) AS col2
----
1

query I rowsort
SELECT DISTINCT - COALESCE ( - 22, COALESCE ( + 23, 16 * 70 ) * - + 95 + 60 ) col0
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6712
SELECT - 64 - + 24 * 72 + - - COUNT( * ) + 77 + - - CAST( - COUNT( * ) AS DECIMAL ) * CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6712
SELECT - 64 - + 24 * 72 + - - COUNT ( * ) + 77 + - - CAST ( - COUNT ( * ) AS REAL ) * CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6713
SELECT - - 71 * + - COUNT( * ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-6713
SELECT - - 71 * + - COUNT ( * ) AS col0
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-6714
SELECT - 30 - - 99 + - COUNT( * ) + 35 + - 8 * 40 * + 22 AS col1, - 40 * 22 * + 61 - + - 9 AS col2
----
-6937
-53671

skipif mysql # not compatible
query II rowsort label-6714
SELECT - 30 - - 99 + - COUNT ( * ) + 35 + - 8 * 40 * + 22 AS col1, - 40 * 22 * + 61 - + - 9 AS col2
----
-6937
-53671

query I rowsort
SELECT - COALESCE ( 64, - 38 ) col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6716
SELECT ALL + 65 * COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-6716
SELECT ALL + 65 * COUNT ( * )
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6717
SELECT - COUNT( * ) * COALESCE ( + COALESCE ( + ( - + 5 ), + 90, - 7 + - 92 * COALESCE ( + 1, + 77 * 68 DIV ( - 74 ) + + COUNT( * ) ), - 26 DIV - 48 ), MAX( + 63 ) + - 97, 69 + + 59 )
----
5

skipif mysql # not compatible
query I rowsort label-6717
SELECT - COUNT ( * ) * COALESCE ( + COALESCE ( + ( - + 5 ), + 90, - 7 + - 92 * COALESCE ( + 1, + 77 * 68 / ( - 74 ) + + COUNT ( * ) ), - 26 / - 48 ), MAX ( + 63 ) + - 97, 69 + + 59 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6718
SELECT + CASE 28 WHEN 12 * - - COUNT( * ) - + ( + 89 ) THEN NULL WHEN - + COUNT( ALL - 96 ) * 79 * - 39 + + + COALESCE ( + 63, - 5 ) * + 35 * - - COUNT( * ) + + 39 * + - 46 THEN 27 + 29 * COUNT( * ) ELSE NULL END - 18 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6718
SELECT + CASE 28 WHEN 12 * - - COUNT ( * ) - + ( + 89 ) THEN NULL WHEN - + COUNT ( ALL - 96 ) * 79 * - 39 + + + COALESCE ( + 63, - 5 ) * + 35 * - - COUNT ( * ) + + 39 * + - 46 THEN 27 + 29 * COUNT ( * ) ELSE NULL END - 18 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6719
SELECT ALL + 56 * + MAX( DISTINCT + + 61 ) * - 77
----
-263032

skipif mysql # not compatible
query I rowsort label-6719
SELECT ALL + 56 * + MAX ( DISTINCT + + 61 ) * - 77
----
-263032

onlyif mysql # aggregate syntax: 
query II rowsort label-6720
SELECT DISTINCT + 47 * + COUNT( * ) AS col0, + 12
----
47
12

skipif mysql # not compatible
query II rowsort label-6720
SELECT DISTINCT + 47 * + COUNT ( * ) AS col0, + 12
----
47
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6721
SELECT + CAST( NULL AS SIGNED ) * 82 AS col0, 7 + + 56 * - + 69 + - - MAX( ALL - 94 ) * + + ( - - NULLIF ( 7, ( - CAST( 32 AS DECIMAL ) ) ) ) - COALESCE ( + 76, + 83, - - 23 * + 62 ) - + ( 69 ) / ( + CASE COUNT( * ) WHEN + 51 THEN NULL WHEN ( - 95 ) * 32 THEN 9 END + NULLIF ( ( COUNT( * ) ), - CAST( + 77 AS DECIMAL ) - 57 ) ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6721
SELECT + CAST ( NULL AS INTEGER ) * 82 AS col0, 7 + + 56 * - + 69 + - - MAX ( ALL - 94 ) * + + ( - - NULLIF ( 7, ( - CAST ( 32 AS REAL ) ) ) ) - COALESCE ( + 76, + 83, - - 23 * + 62 ) - + ( 69 ) / ( + CASE COUNT ( * ) WHEN + 51 THEN NULL WHEN ( - 95 ) * 32 THEN 9 END + NULLIF ( ( COUNT ( * ) ), - CAST ( + 77 AS REAL ) - 57 ) ) AS col0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6722
SELECT + SUM( ( - 44 ) ), - COUNT( * ) col0
----
-44
-1

skipif mysql # not compatible
query II rowsort label-6722
SELECT + SUM ( ( - 44 ) ), - COUNT ( * ) col0
----
-44
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6723
SELECT + CAST( NULL AS SIGNED ) / - + SUM( - + 42 ) * - - 51 - - + COUNT( * ) * 45 + + ( - - COALESCE ( - - 83, MAX( DISTINCT 9 ) - - COALESCE ( 79, + CASE + 21 WHEN - - 84 THEN - + COUNT( * ) * + 17 END * - 65 ) + 61 ) ) + + 32 / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6723
SELECT + CAST ( NULL AS INTEGER ) / - + SUM ( - + 42 ) * - - 51 - - + COUNT ( * ) * 45 + + ( - - COALESCE ( - - 83, MAX ( DISTINCT 9 ) - - COALESCE ( 79, + CASE + 21 WHEN - - 84 THEN - + COUNT ( * ) * + 17 END * - 65 ) + 61 ) ) + + 32 / COUNT ( * )
----
NULL

query I rowsort
SELECT - ( 63 ) * 63
----
-3969

onlyif mysql # aggregate syntax: 
query I rowsort label-6725
SELECT - 17 + COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-6725
SELECT - 17 + COUNT ( * )
----
-16

query II rowsort
SELECT + ( + 30 ), - 62 - - 83 AS col1
----
30
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6727
SELECT + COUNT( * ) * MIN( - + 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-6727
SELECT + COUNT ( * ) * MIN ( - + 83 )
----
-83

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6728
SELECT + CAST( NULL AS DECIMAL ) / - - 12 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6728
SELECT + CAST ( NULL AS REAL ) / - - 12 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6729
SELECT ALL - 21 / CASE + 47 WHEN - + 73 + - CAST( NULL AS SIGNED ) - + 58 - + 86 + + 17 * + 41 * + - 10 THEN + ( - 59 ) * + AVG ( - 37 ) * + 98 + 64 ELSE NULL END + - 49 * + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-6729
SELECT ALL - 21 / CASE + 47 WHEN - + 73 + - CAST ( NULL AS INTEGER ) - + 58 - + 86 + + 17 * + 41 * + - 10 THEN + ( - 59 ) * + AVG ( - 37 ) * + 98 + 64 ELSE NULL END + - 49 * + 12
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-6730
SELECT ALL + ( + - 66 ) DIV + 19 + + 12 * + COALESCE ( - 60, - CASE ( CAST( NULL AS DECIMAL ) ) WHEN + NULLIF ( + + 80, - 69 - + 76 - - 92 DIV + 16 * SUM( 65 ) * + ( 81 DIV AVG ( DISTINCT - 8 * + 52 ) + 24 * - 64 ) ) THEN - 86 * + 74 + ( COUNT( * ) ) END ) + 31
----
-692

skipif mysql # not compatible
query I rowsort label-6730
SELECT ALL + ( + - 66 ) / + 19 + + 12 * + COALESCE ( - 60, - CASE ( CAST ( NULL AS REAL ) ) WHEN + NULLIF ( + + 80, - 69 - + 76 - - 92 / + 16 * SUM ( 65 ) * + ( 81 / AVG ( DISTINCT - 8 * + 52 ) + 24 * - 64 ) ) THEN - 86 * + 74 + ( COUNT ( * ) ) END ) + 31
----
-692

query I rowsort
SELECT DISTINCT - ( 14 ) * + - 74 AS col2
----
1036

query I rowsort
SELECT ALL + 81 * + COALESCE ( + 85, + 80, 48 ) * + - 30 - - 83 * 61 + + 70
----
-201417

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6733
SELECT + - 82 - - COALESCE ( + NULLIF ( - 18, + + COUNT( DISTINCT - 53 ) ), - 83 + + 46 DIV NULLIF ( + - 88, - COUNT( * ) ) ) AS col2
----
-100

skipif mysql # not compatible
query I rowsort label-6733
SELECT + - 82 - - COALESCE ( + NULLIF ( - 18, + + COUNT ( DISTINCT - 53 ) ), - 83 + + 46 / NULLIF ( + - 88, - COUNT ( * ) ) ) AS col2
----
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6734
SELECT DISTINCT - COUNT( 26 ) * - + 49 - + CAST( + - 70 AS SIGNED ) + - 18 + + 84 * 4 - - 89 * - + 47
----
-3746

skipif mysql # not compatible
query I rowsort label-6734
SELECT DISTINCT - COUNT ( 26 ) * - + 49 - + CAST ( + - 70 AS INTEGER ) + - 18 + + 84 * 4 - - 89 * - + 47
----
-3746

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6735
SELECT - 15 * + 75 DIV - COUNT( * ) * 1 + 16
----
1141

skipif mysql # not compatible
query I rowsort label-6735
SELECT - 15 * + 75 / - COUNT ( * ) * 1 + 16
----
1141

onlyif mysql # aggregate syntax: 
query I rowsort label-6736
SELECT CASE - - ( + CASE - 22 WHEN 3 THEN AVG ( DISTINCT + - ( 28 ) ) END ) WHEN - 92 THEN + - 78 + - 64 ELSE + MIN( + 25 ) + + - 74 END AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-6736
SELECT CASE - - ( + CASE - 22 WHEN 3 THEN AVG ( DISTINCT + - ( 28 ) ) END ) WHEN - 92 THEN + - 78 + - 64 ELSE + MIN ( + 25 ) + + - 74 END AS col2
----
-49

query I rowsort
SELECT + - 32 + + 27 AS col0
----
-5

query I rowsort
SELECT ALL - 52 * + + 70 + + 22
----
-3618

query I rowsort
SELECT DISTINCT + + 20 AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6740
SELECT + SUM( 44 ) - + - 21
----
65

skipif mysql # not compatible
query I rowsort label-6740
SELECT + SUM ( 44 ) - + - 21
----
65

query I rowsort
SELECT + ( - 39 ) + + ( ( + CASE - - 67 WHEN 8 - + - 70 THEN NULL WHEN + 52 THEN + - ( 71 ) ELSE NULL END ) ) / 43 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6742
SELECT + 39 * 66 * SUM( DISTINCT + - 87 ) + CASE + - CAST( NULL AS SIGNED ) WHEN + 95 THEN - + CAST( NULL AS SIGNED ) WHEN + 71 - 10 * - 83 THEN NULL WHEN - COUNT( * ) * - 97 * + 63 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6742
SELECT + 39 * 66 * SUM ( DISTINCT + - 87 ) + CASE + - CAST ( NULL AS INTEGER ) WHEN + 95 THEN - + CAST ( NULL AS INTEGER ) WHEN + 71 - 10 * - 83 THEN NULL WHEN - COUNT ( * ) * - 97 * + 63 THEN NULL END
----
NULL

query I rowsort
SELECT ALL + 11 * ( 87 ) + - 30 * 49 AS col0
----
-513

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6744
SELECT + 61 + + CAST( 96 AS SIGNED ) AS col2
----
157

skipif mysql # not compatible
query I rowsort label-6744
SELECT + 61 + + CAST ( 96 AS INTEGER ) AS col2
----
157

query I rowsort
SELECT 53 - 99
----
-46

query I rowsort
SELECT ALL - 19 * NULLIF ( + + 78, - + 56 )
----
-1482

query I rowsort
SELECT ALL - - 68 * + 82 * - 58 + + 7
----
-323401

query I rowsort
SELECT ALL 13 * + - 71 AS col2
----
-923

onlyif mysql # DIV for integer division: 
query I rowsort label-6749
SELECT 55 DIV 63 DIV + 40
----
0

skipif mysql # not compatible
query I rowsort label-6749
SELECT 55 / 63 / + 40
----
0

query I rowsort
SELECT 58 + - + 19
----
39

query I rowsort
SELECT 64 * + 26 AS col2
----
1664

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6752
SELECT ALL 6 * - 21 * - CAST( - 15 AS SIGNED ) * + NULLIF ( + 97, CASE - 96 WHEN + MIN( 26 ) / + - COUNT( * ) - COUNT( + - NULLIF ( 2, 21 ) ) - 98 - 80 + SUM( DISTINCT NULLIF ( + 29, + 20 * 31 + - 41 ) ) * + 25 * 95 THEN - 89 / - 65 END * + 33 + ( + 71 ) ) col1
----
-183330

skipif mysql # not compatible
query I rowsort label-6752
SELECT ALL 6 * - 21 * - CAST ( - 15 AS INTEGER ) * + NULLIF ( + 97, CASE - 96 WHEN + MIN ( 26 ) / + - COUNT ( * ) - COUNT ( + - NULLIF ( 2, 21 ) ) - 98 - 80 + SUM ( DISTINCT NULLIF ( + 29, + 20 * 31 + - 41 ) ) * + 25 * 95 THEN - 89 / - 65 END * + 33 + ( + 71 ) ) col1
----
-183330

onlyif mysql # aggregate syntax: 
query I rowsort label-6753
SELECT 74 + - + COALESCE ( - COALESCE ( ( 60 ), 24 * + + COUNT( * ) * - + 9 ), + 60, - COUNT( * ) ) + - SUM( DISTINCT + 31 ) * + SUM( + 4 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-6753
SELECT 74 + - + COALESCE ( - COALESCE ( ( 60 ), 24 * + + COUNT ( * ) * - + 9 ), + 60, - COUNT ( * ) ) + - SUM ( DISTINCT + 31 ) * + SUM ( + 4 ) AS col2
----
10

query II rowsort
SELECT ( 27 ) * + 28 AS col1, 50 AS col1
----
756
50

query I rowsort
SELECT 90 * + - 77 AS col2
----
-6930

query II rowsort
SELECT ALL 23, 2 AS col2
----
23
2

onlyif mysql # aggregate syntax: 
query II rowsort label-6757
SELECT ALL 26, + CASE WHEN NOT NULL IS NULL THEN CASE 13 WHEN - 82 + + ( - 88 ) THEN - - 82 * + COUNT( - + 75 ) - + - 62 WHEN - + 97 THEN + 62 * - 67 ELSE NULL END END AS col2
----
26
NULL

skipif mysql # not compatible
query II rowsort label-6757
SELECT ALL 26, + CASE WHEN NOT NULL IS NULL THEN CASE 13 WHEN - 82 + + ( - 88 ) THEN - - 82 * + COUNT ( - + 75 ) - + - 62 WHEN - + 97 THEN + 62 * - 67 ELSE NULL END END AS col2
----
26
NULL

query I rowsort
SELECT 80 + + 8
----
88

query I rowsort
SELECT DISTINCT + 16 + + 23
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6760
SELECT ALL ( + SUM( - ( + COALESCE ( + 60, - ( - - 37 ) + + + 2 + 20 - 32 + + 13 * 27, - - ( + CASE - 33 WHEN 19 THEN - 51 * - 18 * - 96 - - 39 ELSE 89 END ) ) ) ) ) + + 26 * 66
----
1656

skipif mysql # not compatible
query I rowsort label-6760
SELECT ALL ( + SUM ( - ( + COALESCE ( + 60, - ( - - 37 ) + + + 2 + 20 - 32 + + 13 * 27, - - ( + CASE - 33 WHEN 19 THEN - 51 * - 18 * - 96 - - 39 ELSE 89 END ) ) ) ) ) + + 26 * 66
----
1656

query II rowsort
SELECT DISTINCT - 66, 89 AS col0
----
-66
89

query I rowsort
SELECT DISTINCT - 71 + - - 96
----
25

query II rowsort
SELECT + 47 AS col1, 5 + - + 99 * - - 74
----
47
-7321

query II rowsort
SELECT ALL - 33 * + + 81 * - 54, 29 AS col0
----
144342
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6765
SELECT - 63 / - + 32 - 89 * CAST( COALESCE ( + 82, + 68 * AVG ( ALL + - 71 ) ) AS SIGNED ) + 17 + + 25 + + 2 * 56 + 40 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6765
SELECT - 63 / - + 32 - 89 * CAST ( COALESCE ( + 82, + 68 * AVG ( ALL + - 71 ) ) AS INTEGER ) + 17 + + 25 + + 2 * 56 + 40 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6766
SELECT - ( - COALESCE ( + MIN( - - 73 ), + - 75 + ( 57 ), + 13 ) ) AS col0, - 55 + + + 61 AS col1
----
73
6

skipif mysql # not compatible
query II rowsort label-6766
SELECT - ( - COALESCE ( + MIN ( - - 73 ), + - 75 + ( 57 ), + 13 ) ) AS col0, - 55 + + + 61 AS col1
----
73
6

query II rowsort
SELECT ALL - 40, - 98 AS col1
----
-40
-98

onlyif mysql # DIV for integer division: 
query II rowsort label-6768
SELECT - 16 + - + 96 + + 37 AS col0, - 93 * 23 DIV + 35
----
-75
-61

skipif mysql # not compatible
query II rowsort label-6768
SELECT - 16 + - + 96 + + 37 AS col0, - 93 * 23 / + 35
----
-75
-61

onlyif mysql # DIV for integer division: 
query II rowsort label-6769
SELECT - 67 DIV 82 + 10 AS col0, 34
----
10
34

skipif mysql # not compatible
query II rowsort label-6769
SELECT - 67 / 82 + 10 AS col0, 34
----
10
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6770
SELECT - SUM( DISTINCT - 20 ) * - 69 + + COUNT( * ) * - 72 AS col0
----
-1452

skipif mysql # not compatible
query I rowsort label-6770
SELECT - SUM ( DISTINCT - 20 ) * - 69 + + COUNT ( * ) * - 72 AS col0
----
-1452

query I rowsort
SELECT 68 * - 27 AS col2
----
-1836

query II rowsort
SELECT DISTINCT - 27, 16 AS col2
----
-27
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6773
SELECT ALL + 15 * - COUNT( * ) + + - 33 - - - 28 * + 14 * - 4
----
1520

skipif mysql # not compatible
query I rowsort label-6773
SELECT ALL + 15 * - COUNT ( * ) + + - 33 - - - 28 * + 14 * - 4
----
1520

query I rowsort
SELECT + ( 65 ) * - + 77
----
-5005

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6775
SELECT + CASE 61 WHEN - 87 - + COUNT( * ) THEN NULL WHEN CAST( NULL AS SIGNED ) THEN - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6775
SELECT + CASE 61 WHEN - 87 - + COUNT ( * ) THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN - COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT 48 * 47 col1
----
2256

query I rowsort
SELECT ALL + 65 * NULLIF ( - + 37, - ( - - 21 ) ) - 58 + + 20
----
-2443

query I rowsort
SELECT + 0 * + - 35 + - 24 - + - 28 + - 40 col1
----
-36

query II rowsort
SELECT ALL 8 col0, 43
----
8
43

query II rowsort
SELECT - 19, 62 AS col0
----
-19
62

onlyif mysql # aggregate syntax: 
query II rowsort label-6781
SELECT DISTINCT 64 AS col2, ( COUNT( * ) ) + 32 + - 43 - - CASE + 17 WHEN + + 29 THEN NULL WHEN - 36 THEN + - 97 * - 79 + - COUNT( * ) / + 60 ELSE NULL END + 16 * - 73 + + - 61 * 66 - 86 + COUNT( * ) * MIN( ALL + 93 ) * + 24 AS col2
----
64
NULL

skipif mysql # not compatible
query II rowsort label-6781
SELECT DISTINCT 64 AS col2, ( COUNT ( * ) ) + 32 + - 43 - - CASE + 17 WHEN + + 29 THEN NULL WHEN - 36 THEN + - 97 * - 79 + - COUNT ( * ) / + 60 ELSE NULL END + 16 * - 73 + + - 61 * 66 - 86 + COUNT ( * ) * MIN ( ALL + 93 ) * + 24 AS col2
----
64
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6782
SELECT ALL 59 DIV 40
----
1

skipif mysql # not compatible
query I rowsort label-6782
SELECT ALL 59 / 40
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6783
SELECT 90 DIV + 19 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-6783
SELECT 90 / + 19 AS col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6784
SELECT CASE - 29 WHEN - SUM( DISTINCT - 84 ) * CASE - COUNT( * ) WHEN + + 22 + 29 THEN NULL WHEN + 29 THEN - 30 WHEN + COUNT( * ) * + 29 - 98 * + 53 - + 76 THEN + 41 ELSE - + MAX( DISTINCT + + 94 ) + COUNT( * ) + - 2 END THEN 73 WHEN - 33 - CASE AVG ( DISTINCT - NULLIF ( - 98, ( ( 16 ) ) * + 43 ) ) WHEN + COUNT( * ) + 56 THEN + 63 WHEN - NULLIF ( + CAST( 53 AS SIGNED ), 95 * 87 + 80 ) THEN NULL WHEN 0 + - 30 THEN - 19 + MIN( + 62 ) END THEN NULL WHEN 83 THEN NULL END - 36 * + 39 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6784
SELECT CASE - 29 WHEN - SUM ( DISTINCT - 84 ) * CASE - COUNT ( * ) WHEN + + 22 + 29 THEN NULL WHEN + 29 THEN - 30 WHEN + COUNT ( * ) * + 29 - 98 * + 53 - + 76 THEN + 41 ELSE - + MAX ( DISTINCT + + 94 ) + COUNT ( * ) + - 2 END THEN 73 WHEN - 33 - CASE AVG ( DISTINCT - NULLIF ( - 98, ( ( 16 ) ) * + 43 ) ) WHEN + COUNT ( * ) + 56 THEN + 63 WHEN - NULLIF ( + CAST ( 53 AS INTEGER ), 95 * 87 + 80 ) THEN NULL WHEN 0 + - 30 THEN - 19 + MIN ( + 62 ) END THEN NULL WHEN 83 THEN NULL END - 36 * + 39 AS col2
----
NULL

query I rowsort
SELECT ALL 12 + - 34
----
-22

query I rowsort
SELECT 73 - 96
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-6787
SELECT ALL 23 DIV - 63
----
0

skipif mysql # not compatible
query I rowsort label-6787
SELECT ALL 23 / - 63
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6788
SELECT 80 DIV + 99 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6788
SELECT 80 / + 99 AS col1
----
0

query I rowsort
SELECT ALL + 30 * 34 col1
----
1020

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6790
SELECT ALL 17 + + 7 * - CAST( - 76 AS SIGNED ) AS col0, - 31
----
549
-31

skipif mysql # not compatible
query II rowsort label-6790
SELECT ALL 17 + + 7 * - CAST ( - 76 AS INTEGER ) AS col0, - 31
----
549
-31

query I rowsort
SELECT 99 * - 1
----
-99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6792
SELECT DISTINCT 11 + + 41 + - + 33 DIV ( - CAST( - 91 AS SIGNED ) ) * 7
----
52

skipif mysql # not compatible
query I rowsort label-6792
SELECT DISTINCT 11 + + 41 + - + 33 / ( - CAST ( - 91 AS INTEGER ) ) * 7
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6793
SELECT 98 * + CASE - 77 WHEN - COUNT( * ) * + 93 + + - COUNT( * ) * + MIN( - 75 ) + - + 53 + + - COUNT( * ) * + 21 THEN NULL WHEN + ( NULLIF ( + 81, COALESCE ( - + 79, + 0 ) ) ) * + - COUNT( * ) - + + AVG ( DISTINCT + 73 ) THEN + 78 * - COUNT( * ) ELSE + COUNT( * ) + + 11 END AS col0
----
1176

skipif mysql # not compatible
query I rowsort label-6793
SELECT 98 * + CASE - 77 WHEN - COUNT ( * ) * + 93 + + - COUNT ( * ) * + MIN ( - 75 ) + - + 53 + + - COUNT ( * ) * + 21 THEN NULL WHEN + ( NULLIF ( + 81, COALESCE ( - + 79, + 0 ) ) ) * + - COUNT ( * ) - + + AVG ( DISTINCT + 73 ) THEN + 78 * - COUNT ( * ) ELSE + COUNT ( * ) + + 11 END AS col0
----
1176

onlyif mysql # aggregate syntax: 
query I rowsort label-6794
SELECT DISTINCT + 30 * + - MAX( + 90 ) - - 46 + - CASE 1 WHEN + ( - 15 ) THEN NULL WHEN - + 31 THEN - + 81 WHEN - + COALESCE ( + COUNT( * ), + + 78 * ( + 76 ) * - ( + 95 ) + - 26 - + 85 * 24 ) THEN + COUNT( * ) + - 95 END * 70
----
NULL

skipif mysql # not compatible
query I rowsort label-6794
SELECT DISTINCT + 30 * + - MAX ( + 90 ) - - 46 + - CASE 1 WHEN + ( - 15 ) THEN NULL WHEN - + 31 THEN - + 81 WHEN - + COALESCE ( + COUNT ( * ), + + 78 * ( + 76 ) * - ( + 95 ) + - 26 - + 85 * 24 ) THEN + COUNT ( * ) + - 95 END * 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT 68 + + - 90 + + 71 + + 6 * + - COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-6795
SELECT 68 + + - 90 + + 71 + + 6 * + - COUNT ( * )
----
43

query II rowsort
SELECT DISTINCT - + 30 * - 90 * + - 12 - 14 AS col1, + 29 AS col1
----
-32414
29

query I rowsort
SELECT ALL - + ( 59 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6798
SELECT ALL - + MAX( DISTINCT - 47 )
----
47

skipif mysql # not compatible
query I rowsort label-6798
SELECT ALL - + MAX ( DISTINCT - 47 )
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6799
SELECT + + COALESCE ( - 99, + 53 DIV 30 ), 23 DIV SUM( DISTINCT + - COALESCE ( - 35, CAST( - 55 AS SIGNED ), + 59 * 51 * + - ( 84 ) ) ) * MIN( 15 ) AS col2
----
-99
0

skipif mysql # not compatible
query II rowsort label-6799
SELECT + + COALESCE ( - 99, + 53 / 30 ), 23 / SUM ( DISTINCT + - COALESCE ( - 35, CAST ( - 55 AS INTEGER ), + 59 * 51 * + - ( 84 ) ) ) * MIN ( 15 ) AS col2
----
-99
0

query I rowsort
SELECT DISTINCT + 58 * 96 - - - 97
----
5471

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6801
SELECT CAST( NULL AS DECIMAL ) + - 70 * + + 79 * - + SUM( + 20 ) - + + 78 * - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-6801
SELECT CAST ( NULL AS REAL ) + - 70 * + + 79 * - + SUM ( + 20 ) - + + 78 * - 82
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6802
SELECT ALL - 44 * + + CASE + + 98 WHEN + 87 * - + 23 * + COUNT( * ) THEN 53 - + COALESCE ( - ( - + COUNT( * ) ), ( - 43 ) * + CAST( + - 23 AS SIGNED ) + - 59, 27 ) + - - 40 / + 45 WHEN - 92 + + 21 * - 76 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6802
SELECT ALL - 44 * + + CASE + + 98 WHEN + 87 * - + 23 * + COUNT ( * ) THEN 53 - + COALESCE ( - ( - + COUNT ( * ) ), ( - 43 ) * + CAST ( + - 23 AS INTEGER ) + - 59, 27 ) + - - 40 / + 45 WHEN - 92 + + 21 * - 76 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT - 16 + 10 + - - 51 * + COUNT( * ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-6803
SELECT - 16 + 10 + - - 51 * + COUNT ( * ) AS col1
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6804
SELECT ALL - 83 * - - 99 - - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6804
SELECT ALL - 83 * - - 99 - - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6805
SELECT ALL + - 97 * - COUNT( * ) * + + 13 + - + 28
----
1233

skipif mysql # not compatible
query I rowsort label-6805
SELECT ALL + - 97 * - COUNT ( * ) * + + 13 + - + 28
----
1233

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6806
SELECT ALL + + CAST( + - 91 AS SIGNED )
----
-91

skipif mysql # not compatible
query I rowsort label-6806
SELECT ALL + + CAST ( + - 91 AS INTEGER )
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-6807
SELECT ALL 87 DIV - 89
----
0

skipif mysql # not compatible
query I rowsort label-6807
SELECT ALL 87 / - 89
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6808
SELECT - 57 DIV 34 + - - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-6808
SELECT - 57 / 34 + - - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6809
SELECT ALL 59 + - - 46 + + - 50 - - + ( - + 4 ) AS col0, + COUNT( * )
----
51
1

skipif mysql # not compatible
query II rowsort label-6809
SELECT ALL 59 + - - 46 + + - 50 - - + ( - + 4 ) AS col0, + COUNT ( * )
----
51
1

query I rowsort
SELECT DISTINCT 18 * 97
----
1746

query I rowsort
SELECT - 24 * 86 AS col2
----
-2064

query I rowsort
SELECT - 41 + - ( + 82 ) + - 73 - 46 * 68 AS col0
----
-3324

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6813
SELECT ALL 53 * 73 DIV + MIN( - 21 ) AS col0
----
-184

skipif mysql # not compatible
query I rowsort label-6813
SELECT ALL 53 * 73 / + MIN ( - 21 ) AS col0
----
-184

query I rowsort
SELECT ALL 12 + + - 85 AS col1
----
-73

query I rowsort
SELECT + NULLIF ( 29, 62 ) + + 57 * + 42
----
2423

onlyif mysql # aggregate syntax: 
query I rowsort label-6816
SELECT DISTINCT - 43 * NULLIF ( - + COUNT( * ), + + COUNT( * ) * - 17 ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-6816
SELECT DISTINCT - 43 * NULLIF ( - + COUNT ( * ), + + COUNT ( * ) * - 17 ) AS col1
----
43

query I rowsort
SELECT + 94 + + 67 + 56 AS col2
----
217

onlyif mysql # aggregate syntax: 
query I rowsort label-6818
SELECT ALL 6 + COUNT( * ) * + 84 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-6818
SELECT ALL 6 + COUNT ( * ) * + 84 AS col0
----
90

query II rowsort
SELECT DISTINCT 74 AS col0, 3 AS col2
----
74
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6820
SELECT ALL 76 + + - COUNT( * ) * - + 35 AS col0
----
111

skipif mysql # not compatible
query I rowsort label-6820
SELECT ALL 76 + + - COUNT ( * ) * - + 35 AS col0
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-6821
SELECT ALL SUM( ALL - - 40 )
----
40

skipif mysql # not compatible
query I rowsort label-6821
SELECT ALL SUM ( ALL - - 40 )
----
40

query I rowsort
SELECT ALL 58 + 91 * 70 * - 36 AS col1
----
-229262

onlyif mysql # aggregate syntax: 
query II rowsort label-6823
SELECT - COUNT( * ) AS col0, - ( 81 ) + 2 * + 78 * - 52 + 82 AS col1
----
-1
-8111

skipif mysql # not compatible
query II rowsort label-6823
SELECT - COUNT ( * ) AS col0, - ( 81 ) + 2 * + 78 * - 52 + 82 AS col1
----
-1
-8111

query I rowsort
SELECT + 40 + - 20 * 89 col2
----
-1740

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT ALL NULLIF ( + 39, - + 58 ) + + + COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-6825
SELECT ALL NULLIF ( + 39, - + 58 ) + + + COUNT ( * )
----
40

query I rowsort
SELECT + 16 + - 2
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6827
SELECT + COUNT( * ) * 75 DIV + 56 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6827
SELECT + COUNT ( * ) * 75 / + 56 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6828
SELECT ALL COUNT( * ) * - 65
----
-65

skipif mysql # not compatible
query I rowsort label-6828
SELECT ALL COUNT ( * ) * - 65
----
-65

query I rowsort
SELECT + 45 + + 5
----
50

query I rowsort
SELECT + 4 * - 34 col2
----
-136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6831
SELECT DISTINCT - + 92 * CAST( NULL AS SIGNED ) + - 98 * 48 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6831
SELECT DISTINCT - + 92 * CAST ( NULL AS INTEGER ) + - 98 * 48 col0
----
NULL

query I rowsort
SELECT + - 45 * 52 AS col0
----
-2340

query I rowsort
SELECT ALL - NULLIF ( - 43, 74 + + 91 ) * 71 AS col0
----
3053

onlyif mysql # aggregate syntax: 
query I rowsort label-6834
SELECT ALL + ( + MAX( DISTINCT + + 76 ) ) * - + 90 AS col2
----
-6840

skipif mysql # not compatible
query I rowsort label-6834
SELECT ALL + ( + MAX ( DISTINCT + + 76 ) ) * - + 90 AS col2
----
-6840

onlyif mysql # aggregate syntax: 
query I rowsort label-6835
SELECT + + 70 * - COUNT( 16 )
----
-70

skipif mysql # not compatible
query I rowsort label-6835
SELECT + + 70 * - COUNT ( 16 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6836
SELECT - 34 + - + COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-6836
SELECT - 34 + - + COUNT ( * )
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6837
SELECT - COUNT( * ) * - 27 + - + 95 * + NULLIF ( + 99, 64 ) + + 92 + - - 91 * + - MAX( + 82 ) * + CAST( NULL AS SIGNED ) + + NULLIF ( - 81, 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6837
SELECT - COUNT ( * ) * - 27 + - + 95 * + NULLIF ( + 99, 64 ) + + 92 + - - 91 * + - MAX ( + 82 ) * + CAST ( NULL AS INTEGER ) + + NULLIF ( - 81, 76 )
----
NULL

query I rowsort
SELECT NULLIF ( + 38, 95 * - 97 ) * 43 + - 91 AS col0
----
1543

onlyif mysql # aggregate syntax: 
query I rowsort label-6839
SELECT ALL + MIN( + 83 ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-6839
SELECT ALL + MIN ( + 83 ) AS col2
----
83

query II rowsort
SELECT DISTINCT + 90 col2, + 61 * - 49 col1
----
90
-2989

query I rowsort
SELECT ALL - - 24 * - 20 * + ( + 69 ) AS col0
----
-33120

query I rowsort
SELECT + - ( 29 ) AS col0
----
-29

query I rowsort
SELECT + ( + 12 ) AS col1
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6844
SELECT ALL CAST( NULL AS SIGNED ) * + ( 70 ) * + + 43 + 39 / 36 / + 45 + - 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6844
SELECT ALL CAST ( NULL AS INTEGER ) * + ( 70 ) * + + 43 + 39 / 36 / + 45 + - 8 AS col1
----
NULL

query I rowsort
SELECT ALL - - 32 * + + 94
----
3008

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6846
SELECT - 77 + ( - + COALESCE ( + MAX( DISTINCT 4 ), + - ( + NULLIF ( - 50, + 51 ) ), - 27 * 16 DIV + 16 ) )
----
-81

skipif mysql # not compatible
query I rowsort label-6846
SELECT - 77 + ( - + COALESCE ( + MAX ( DISTINCT 4 ), + - ( + NULLIF ( - 50, + 51 ) ), - 27 * 16 / + 16 ) )
----
-81

query II rowsort
SELECT DISTINCT + 11 * - 83 AS col0, - 57 AS col0
----
-913
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-6848
SELECT COALESCE ( 86, 25 * - COUNT( * ) ), 63 * + + 31 AS col0
----
86
1953

skipif mysql # not compatible
query II rowsort label-6848
SELECT COALESCE ( 86, 25 * - COUNT ( * ) ), 63 * + + 31 AS col0
----
86
1953

onlyif mysql # aggregate syntax: 
query II rowsort label-6849
SELECT CASE 87 WHEN - 89 * - 92 THEN + SUM( ALL - + 15 ) END, + 51 * + 33 AS col1
----
NULL
1683

skipif mysql # not compatible
query II rowsort label-6849
SELECT CASE 87 WHEN - 89 * - 92 THEN + SUM ( ALL - + 15 ) END, + 51 * + 33 AS col1
----
NULL
1683

onlyif mysql # aggregate syntax: 
query I rowsort label-6850
SELECT ALL 44 * + NULLIF ( + COUNT( * ), - + 23 ) + - 3 * + 49 + - 3 - - - MAX( 23 )
----
-129

skipif mysql # not compatible
query I rowsort label-6850
SELECT ALL 44 * + NULLIF ( + COUNT ( * ), - + 23 ) + - 3 * + 49 + - 3 - - - MAX ( 23 )
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-6851
SELECT NULLIF ( + COUNT( * ), COUNT( * ) * 67 + - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-6851
SELECT NULLIF ( + COUNT ( * ), COUNT ( * ) * 67 + - COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6852
SELECT DISTINCT NULLIF ( 53, ( ( - - COUNT( * ) ) ) ) col2
----
53

skipif mysql # not compatible
query I rowsort label-6852
SELECT DISTINCT NULLIF ( 53, ( ( - - COUNT ( * ) ) ) ) col2
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6853
SELECT ALL - ( + + 90 ) * + CAST( 77 AS SIGNED ) - - 56 + + + COUNT( * ) + 87 + 22 AS col0
----
-6764

skipif mysql # not compatible
query I rowsort label-6853
SELECT ALL - ( + + 90 ) * + CAST ( 77 AS INTEGER ) - - 56 + + + COUNT ( * ) + 87 + 22 AS col0
----
-6764

query I rowsort
SELECT - ( + + ( + 93 ) ) * + 83
----
-7719

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6855
SELECT DISTINCT COUNT( * ) DIV - 94, - 46 AS col0
----
0
-46

skipif mysql # not compatible
query II rowsort label-6855
SELECT DISTINCT COUNT ( * ) / - 94, - 46 AS col0
----
0
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT SUM( - 18 ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-6856
SELECT SUM ( - 18 ) AS col1
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6857
SELECT DISTINCT CAST( NULL AS SIGNED ), MAX( 16 ) col2
----
NULL
16

skipif mysql # not compatible
query II rowsort label-6857
SELECT DISTINCT CAST ( NULL AS INTEGER ), MAX ( 16 ) col2
----
NULL
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6858
SELECT - 34 + + - COALESCE ( - 31, COUNT( * ), + - 89 ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-6858
SELECT - 34 + + - COALESCE ( - 31, COUNT ( * ), + - 89 ) AS col0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6859
SELECT + 40 * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6859
SELECT + 40 * CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6860
SELECT - SUM( - COALESCE ( + - 87, - - 52 ) ) * - 71 * + 14
----
86478

skipif mysql # not compatible
query I rowsort label-6860
SELECT - SUM ( - COALESCE ( + - 87, - - 52 ) ) * - 71 * + 14
----
86478

query I rowsort
SELECT DISTINCT 64 * + + 40 AS col0
----
2560

onlyif mysql # aggregate syntax: 
query I rowsort label-6862
SELECT ALL SUM( 92 ) * 43 AS col2
----
3956

skipif mysql # not compatible
query I rowsort label-6862
SELECT ALL SUM ( 92 ) * 43 AS col2
----
3956

onlyif mysql # aggregate syntax: 
query I rowsort label-6863
SELECT - 4 - - + COUNT( * ) + - + 86 - - 25
----
-64

skipif mysql # not compatible
query I rowsort label-6863
SELECT - 4 - - + COUNT ( * ) + - + 86 - - 25
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6864
SELECT DISTINCT - 95 * - CAST( + 89 AS SIGNED ) col1
----
8455

skipif mysql # not compatible
query I rowsort label-6864
SELECT DISTINCT - 95 * - CAST ( + 89 AS INTEGER ) col1
----
8455

query II rowsort
SELECT 60 AS col2, 83 + 58 + + ( 31 ) * + + COALESCE ( 41, - 44 + 51, - 77 + - 26 ) AS col0
----
60
1412

query II rowsort
SELECT ALL 2 AS col1, 71
----
2
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6867
SELECT DISTINCT 75 - + CAST( + ( 8 ) AS SIGNED ) + + + 66
----
133

skipif mysql # not compatible
query I rowsort label-6867
SELECT DISTINCT 75 - + CAST ( + ( 8 ) AS INTEGER ) + + + 66
----
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6868
SELECT - + 59, + COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) * 94 col1
----
-59
0

skipif mysql # not compatible
query II rowsort label-6868
SELECT - + 59, + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) * 94 col1
----
-59
0

query I rowsort
SELECT + ( 83 ) - + 83
----
0

query II rowsort
SELECT ALL - 18 AS col0, 86 * - 34
----
-18
-2924

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6871
SELECT NULLIF ( + - CAST( NULL AS SIGNED ), - 53 * CAST( NULL AS SIGNED ) ), + 55 col0
----
NULL
55

skipif mysql # not compatible
query II rowsort label-6871
SELECT NULLIF ( + - CAST ( NULL AS INTEGER ), - 53 * CAST ( NULL AS INTEGER ) ), + 55 col0
----
NULL
55

query I rowsort
SELECT - 37 - - - 90
----
-127

onlyif mysql # DIV for integer division: 
query I rowsort label-6873
SELECT ALL + 27 DIV - + 31
----
0

skipif mysql # not compatible
query I rowsort label-6873
SELECT ALL + 27 / - + 31
----
0

query I rowsort
SELECT - + ( - 75 ) AS col2
----
75

query II rowsort
SELECT + 3 col0, 43 * 14
----
3
602

onlyif mysql # aggregate syntax: 
query II rowsort label-6876
SELECT + 14 AS col0, - COUNT( * ) * + 63
----
14
-63

skipif mysql # not compatible
query II rowsort label-6876
SELECT + 14 AS col0, - COUNT ( * ) * + 63
----
14
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-6877
SELECT + 37 AS col2, + COUNT( * ) col1
----
37
1

skipif mysql # not compatible
query II rowsort label-6877
SELECT + 37 AS col2, + COUNT ( * ) col1
----
37
1

query II rowsort
SELECT + 3 + 16 + + ( 34 ) col0, + 48
----
53
48

onlyif mysql # DIV for integer division: 
query I rowsort label-6879
SELECT + 12 DIV - + 36 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6879
SELECT + 12 / - + 36 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6880
SELECT ALL CAST( + 1 AS SIGNED ) + + + COUNT( * ) + + + 57 + 12 * - SUM( DISTINCT + - 78 ) * + + 33 + + 74
----
31021

skipif mysql # not compatible
query I rowsort label-6880
SELECT ALL CAST ( + 1 AS INTEGER ) + + + COUNT ( * ) + + + 57 + 12 * - SUM ( DISTINCT + - 78 ) * + + 33 + + 74
----
31021

query II rowsort
SELECT ALL - 3 * 51 AS col0, - COALESCE ( + 89, + - 17 )
----
-153
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-6882
SELECT DISTINCT COUNT( * ) * + 43
----
43

skipif mysql # not compatible
query I rowsort label-6882
SELECT DISTINCT COUNT ( * ) * + 43
----
43

query I rowsort
SELECT ALL + 12 + + 14
----
26

query I rowsort
SELECT 53 * + 95
----
5035

query I rowsort
SELECT ALL 22 * - 53
----
-1166

query I rowsort
SELECT - 62 * 54 col2
----
-3348

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6887
SELECT + CAST( NULL AS SIGNED ) + + 70 * - + ( + ( - 70 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6887
SELECT + CAST ( NULL AS INTEGER ) + + 70 * - + ( + ( - 70 ) )
----
NULL

query II rowsort
SELECT + 84 * + 44 + + - 22, + 73 AS col0
----
3674
73

query I rowsort
SELECT 83 + - 65 AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6890
SELECT ALL + COUNT( ALL - 72 ) * + 20
----
20

skipif mysql # not compatible
query I rowsort label-6890
SELECT ALL + COUNT ( ALL - 72 ) * + 20
----
20

query I rowsort
SELECT 93 + + 22 + + 76 AS col1
----
191

onlyif mysql # aggregate syntax: 
query I rowsort label-6892
SELECT ALL + CASE + - 97 WHEN - + 80 * COUNT( * ) + COUNT( * ) THEN + - NULLIF ( 81, 90 ) END - - - AVG ( ALL - 26 ) + - - COUNT( DISTINCT + - 42 ) * + 57 * + 7 * 73 / + + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-6892
SELECT ALL + CASE + - 97 WHEN - + 80 * COUNT ( * ) + COUNT ( * ) THEN + - NULLIF ( 81, 90 ) END - - - AVG ( ALL - 26 ) + - - COUNT ( DISTINCT + - 42 ) * + 57 * + 7 * 73 / + + 79
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6893
SELECT 99 - COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-6893
SELECT 99 - COUNT ( * )
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-6894
SELECT 73 + 77 AS col1, 59 + NULLIF ( + + 46, 10 + 56 * SUM( ALL - 95 ) ) + - COALESCE ( + - 35, + 95, + - 50 )
----
150
140

skipif mysql # not compatible
query II rowsort label-6894
SELECT 73 + 77 AS col1, 59 + NULLIF ( + + 46, 10 + 56 * SUM ( ALL - 95 ) ) + - COALESCE ( + - 35, + 95, + - 50 )
----
150
140

onlyif mysql # aggregate syntax: 
query I rowsort label-6895
SELECT 71 * COUNT( * ) + + + 46
----
117

skipif mysql # not compatible
query I rowsort label-6895
SELECT 71 * COUNT ( * ) + + + 46
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-6896
SELECT ALL + 81 * - 32 * - 26 * - - CASE - SUM( ( ( - 59 ) ) ) WHEN - + 39 THEN + COUNT( * ) + - + 97 - 93 ELSE NULL END * + - 93 * + - 73 * + - AVG ( - 5 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6896
SELECT ALL + 81 * - 32 * - 26 * - - CASE - SUM ( ( ( - 59 ) ) ) WHEN - + 39 THEN + COUNT ( * ) + - + 97 - 93 ELSE NULL END * + - 93 * + - 73 * + - AVG ( - 5 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6897
SELECT - 46 * COUNT( * ) + ( COUNT( * ) ) - 92 AS col2
----
-137

skipif mysql # not compatible
query I rowsort label-6897
SELECT - 46 * COUNT ( * ) + ( COUNT ( * ) ) - 92 AS col2
----
-137

query I rowsort
SELECT 89 * - 50 AS col2
----
-4450

query I rowsort
SELECT 24 * + 39 AS col1
----
936

onlyif mysql # aggregate syntax: 
query I rowsort label-6900
SELECT DISTINCT + COUNT( DISTINCT 29 ) * COUNT( ALL - 10 ) - - + 48 col2
----
49

skipif mysql # not compatible
query I rowsort label-6900
SELECT DISTINCT + COUNT ( DISTINCT 29 ) * COUNT ( ALL - 10 ) - - + 48 col2
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6901
SELECT 8 + + - 5 + CAST( - + 82 AS SIGNED )
----
-79

skipif mysql # not compatible
query I rowsort label-6901
SELECT 8 + + - 5 + CAST ( - + 82 AS INTEGER )
----
-79

query II rowsort
SELECT 14 * + 19 AS col0, - 12 * - - 16 - + + 38 AS col1
----
266
-230

query I rowsort
SELECT 17 + + 99 * + - 40
----
-3943

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6904
SELECT ALL + NULLIF ( - 46, COUNT( * ) ) DIV + CAST( 78 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6904
SELECT ALL + NULLIF ( - 46, COUNT ( * ) ) / + CAST ( 78 AS INTEGER ) AS col2
----
0

query I rowsort
SELECT 43 + - NULLIF ( + 80, + 31 )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-6906
SELECT COUNT( * ) * 53
----
53

skipif mysql # not compatible
query I rowsort label-6906
SELECT COUNT ( * ) * 53
----
53

query I rowsort
SELECT ALL + 98 * - 31 AS col0
----
-3038

onlyif mysql # aggregate syntax: 
query I rowsort label-6908
SELECT DISTINCT - + 3 + - 60 + MAX( ALL - 74 ) AS col2
----
-137

skipif mysql # not compatible
query I rowsort label-6908
SELECT DISTINCT - + 3 + - 60 + MAX ( ALL - 74 ) AS col2
----
-137

query I rowsort
SELECT DISTINCT 22 * - 4 * + 86 AS col2
----
-7568

query I rowsort
SELECT 99 + - 22 + - 3
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6911
SELECT ALL - - ( - + 22 ) + - - CASE + COUNT( * ) WHEN + 99 THEN 63 END * - COUNT( * ) + - 32 - - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-6911
SELECT ALL - - ( - + 22 ) + - - CASE + COUNT ( * ) WHEN + 99 THEN 63 END * - COUNT ( * ) + - 32 - - 16
----
NULL

query II rowsort
SELECT ALL + + 91 + + 27, + 62 * + 4 AS col1
----
118
248

query I rowsort
SELECT DISTINCT + 74 + - 5 + + 55 * 54 * 58 col0
----
172329

onlyif mysql # aggregate syntax: 
query I rowsort label-6914
SELECT ALL - 16 + + 93 * + COUNT( * ) * + 54
----
5006

skipif mysql # not compatible
query I rowsort label-6914
SELECT ALL - 16 + + 93 * + COUNT ( * ) * + 54
----
5006

onlyif mysql # aggregate syntax: 
query II rowsort label-6915
SELECT + - SUM( - 61 ) AS col0, + 88
----
61
88

skipif mysql # not compatible
query II rowsort label-6915
SELECT + - SUM ( - 61 ) AS col0, + 88
----
61
88

query I rowsort
SELECT NULLIF ( + 48, 6 * - 54 + + 22 + 37 ) + - + 30
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6917
SELECT COUNT( * ) * SUM( ALL - + 26 ) - - COUNT( * )
----
-25

skipif mysql # not compatible
query I rowsort label-6917
SELECT COUNT ( * ) * SUM ( ALL - + 26 ) - - COUNT ( * )
----
-25

query I rowsort
SELECT + - NULLIF ( 18, + 82 + - 58 ) * - - 70 + 39 AS col2
----
-1221

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6919
SELECT ALL - 55 + - COUNT( * ) * 38 DIV 89
----
-55

skipif mysql # not compatible
query I rowsort label-6919
SELECT ALL - 55 + - COUNT ( * ) * 38 / 89
----
-55

query I rowsort
SELECT ALL + 80 + + + 99 * + 18 AS col2
----
1862

query I rowsort
SELECT DISTINCT - 22 + - 11
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6922
SELECT DISTINCT - + MIN( + 93 )
----
-93

skipif mysql # not compatible
query I rowsort label-6922
SELECT DISTINCT - + MIN ( + 93 )
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6923
SELECT DISTINCT COALESCE ( + - 25, - - 8 * - 39 * + CAST( NULL AS SIGNED ) + - 75 ) + - 79 AS col0
----
-104

skipif mysql # not compatible
query I rowsort label-6923
SELECT DISTINCT COALESCE ( + - 25, - - 8 * - 39 * + CAST ( NULL AS INTEGER ) + - 75 ) + - 79 AS col0
----
-104

query I rowsort
SELECT DISTINCT 48 * + - 42 * + 65
----
-131040

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6925
SELECT DISTINCT 59 - + MIN( DISTINCT + 10 ) DIV 53 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-6925
SELECT DISTINCT 59 - + MIN ( DISTINCT + 10 ) / 53 AS col2
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6926
SELECT DISTINCT COUNT( * ) * + + 16 DIV + 91 col1, - 33 AS col0
----
0
-33

skipif mysql # not compatible
query II rowsort label-6926
SELECT DISTINCT COUNT ( * ) * + + 16 / + 91 col1, - 33 AS col0
----
0
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6927
SELECT ALL 94 * + - CAST( + + COUNT( * ) AS SIGNED ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-6927
SELECT ALL 94 * + - CAST ( + + COUNT ( * ) AS INTEGER ) AS col2
----
-94

query I rowsort
SELECT ALL 53 * - 88 AS col2
----
-4664

onlyif mysql # aggregate syntax: 
query II rowsort label-6929
SELECT 61 col2, + 43 * 97 * COUNT( * ) + 66
----
61
4237

skipif mysql # not compatible
query II rowsort label-6929
SELECT 61 col2, + 43 * 97 * COUNT ( * ) + 66
----
61
4237

onlyif mysql # aggregate syntax: 
query I rowsort label-6930
SELECT DISTINCT COUNT( + 98 ) * + 27 * 36
----
972

skipif mysql # not compatible
query I rowsort label-6930
SELECT DISTINCT COUNT ( + 98 ) * + 27 * 36
----
972

query I rowsort
SELECT DISTINCT 82 - + 62
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-6932
SELECT DISTINCT 35 AS col2, 6 * + COUNT( * ) * - - 27 AS col1
----
35
162

skipif mysql # not compatible
query II rowsort label-6932
SELECT DISTINCT 35 AS col2, 6 * + COUNT ( * ) * - - 27 AS col1
----
35
162

query I rowsort
SELECT DISTINCT + 32 * - - 20 AS col0
----
640

query I rowsort
SELECT DISTINCT + 23 * + 57
----
1311

query I rowsort
SELECT + 45 + + - 34 AS col2
----
11

query II rowsort
SELECT 15 AS col2, + 15
----
15
15

onlyif mysql # DIV for integer division: 
query I rowsort label-6937
SELECT + 63 DIV - 18
----
-3

skipif mysql # not compatible
query I rowsort label-6937
SELECT + 63 / - 18
----
-3

query I rowsort
SELECT - 1 * - + 23 * + 73 AS col1
----
1679

query II rowsort
SELECT DISTINCT + ( - 98 ) + - 12 AS col2, - NULLIF ( 25, - 36 ) AS col1
----
-110
-25

query I rowsort
SELECT - 58 - + 14 AS col0
----
-72

query I rowsort
SELECT DISTINCT - 58 + + 71
----
13

query I rowsort
SELECT DISTINCT + 0 + + + 4
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6943
SELECT DISTINCT - 78 + + 77 * - MAX( ALL + - 76 )
----
5774

skipif mysql # not compatible
query I rowsort label-6943
SELECT DISTINCT - 78 + + 77 * - MAX ( ALL + - 76 )
----
5774

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6944
SELECT - - 14 AS col1, - 24 - + + 91 - - - 53 * 49 / - NULLIF ( CAST( NULL AS SIGNED ), - + 11 ) * 70 * 74 / - 8 * + ( COUNT( * ) ) AS col2
----
14
NULL

skipif mysql # not compatible
query II rowsort label-6944
SELECT - - 14 AS col1, - 24 - + + 91 - - - 53 * 49 / - NULLIF ( CAST ( NULL AS INTEGER ), - + 11 ) * 70 * 74 / - 8 * + ( COUNT ( * ) ) AS col2
----
14
NULL

query I rowsort
SELECT ALL - - 17 + - - ( + 80 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6946
SELECT ALL + - COUNT( + 68 ) + - - 57 + 94 * - 2 * 75 * + - 58
----
817856

skipif mysql # not compatible
query I rowsort label-6946
SELECT ALL + - COUNT ( + 68 ) + - - 57 + 94 * - 2 * 75 * + - 58
----
817856

query I rowsort
SELECT - + ( - 69 ) AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6948
SELECT - - COUNT( * ) + SUM( 50 ) + 9 * - 9 * + COUNT( * ) - 14 + ( + 1 ) * - + MIN( + 14 ) * - 50
----
656

skipif mysql # not compatible
query I rowsort label-6948
SELECT - - COUNT ( * ) + SUM ( 50 ) + 9 * - 9 * + COUNT ( * ) - 14 + ( + 1 ) * - + MIN ( + 14 ) * - 50
----
656

query I rowsort
SELECT - + 6 - - + 44 AS col2
----
38

query I rowsort
SELECT ALL - + 26 + + 77
----
51

query II rowsort
SELECT - 33 AS col1, 56
----
-33
56

query I rowsort
SELECT ALL 40 * + - 22 + - 8 AS col1
----
-888

query II rowsort
SELECT ALL - 10 * 43 - - 22 * + + 65 col1, 88
----
1000
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6954
SELECT DISTINCT + 98 * - - COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-6954
SELECT DISTINCT + 98 * - - COUNT ( * )
----
98

query I rowsort
SELECT + 47 * 49 AS col0
----
2303

query I rowsort
SELECT - 59 + + 66 + + 18 * - 75 + + 90 AS col1
----
-1253

onlyif mysql # aggregate syntax: 
query II rowsort label-6957
SELECT - COALESCE ( + 47, 57 ) + + COUNT( * ) AS col1, + COALESCE ( + ( + - 10 ), - - COUNT( * ) + - 72, - 0 )
----
-46
-10

skipif mysql # not compatible
query II rowsort label-6957
SELECT - COALESCE ( + 47, 57 ) + + COUNT ( * ) AS col1, + COALESCE ( + ( + - 10 ), - - COUNT ( * ) + - 72, - 0 )
----
-46
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6958
SELECT CASE - + COUNT( * ) WHEN + - 6 THEN - 42 / - 33 ELSE + CAST( - 34 AS SIGNED ) END
----
-34

skipif mysql # not compatible
query I rowsort label-6958
SELECT CASE - + COUNT ( * ) WHEN + - 6 THEN - 42 / - 33 ELSE + CAST ( - 34 AS INTEGER ) END
----
-34

query I rowsort
SELECT + 17 * - - 77
----
1309

query I rowsort
SELECT - 37 * - - 52 + - + 75
----
-1999

query I rowsort
SELECT ALL 76 * + 84 AS col1
----
6384

query I rowsort
SELECT CASE + 53 WHEN - 12 THEN - + 29 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6963
SELECT DISTINCT 5 * + COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-6963
SELECT DISTINCT 5 * + COUNT ( * )
----
5

query I rowsort
SELECT ALL 40 * 8 * ( 23 ) AS col0
----
7360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6965
SELECT - 45 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6965
SELECT - 45 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6966
SELECT 45 * - MAX( DISTINCT + + 36 ) + 51 * + ( - 95 ) AS col1
----
-6465

skipif mysql # not compatible
query I rowsort label-6966
SELECT 45 * - MAX ( DISTINCT + + 36 ) + 51 * + ( - 95 ) AS col1
----
-6465

query I rowsort
SELECT + 22 * 80 AS col2
----
1760

onlyif mysql # aggregate syntax: 
query II rowsort label-6968
SELECT + COALESCE ( - 4, + + 74 ) + 35 AS col1, 56 - + + COALESCE ( - 32, - COUNT( * ) ) AS col1
----
31
88

skipif mysql # not compatible
query II rowsort label-6968
SELECT + COALESCE ( - 4, + + 74 ) + 35 AS col1, 56 - + + COALESCE ( - 32, - COUNT ( * ) ) AS col1
----
31
88

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6969
SELECT ALL - 9 * + ( - CASE - 30 WHEN + 2 THEN 16 * - 66 * + COUNT( DISTINCT CAST( NULL AS DECIMAL ) ) + 41 / 65 WHEN + COUNT( * ) + + COALESCE ( - COALESCE ( 57, - + COUNT( * ) * + - 25, + - 74 + - 85 ), 23 - + 4 ) + + - 13 THEN NULL END ) + + 85 * - ( + 83 ) * - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-6969
SELECT ALL - 9 * + ( - CASE - 30 WHEN + 2 THEN 16 * - 66 * + COUNT ( DISTINCT CAST ( NULL AS REAL ) ) + 41 / 65 WHEN + COUNT ( * ) + + COALESCE ( - COALESCE ( 57, - + COUNT ( * ) * + - 25, + - 74 + - 85 ), 23 - + 4 ) + + - 13 THEN NULL END ) + + 85 * - ( + 83 ) * - 10
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6970
SELECT COUNT( 55 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6970
SELECT COUNT ( 55 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6971
SELECT - COUNT( * ) + + - ( - + 11 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-6971
SELECT - COUNT ( * ) + + - ( - + 11 ) AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6972
SELECT + COUNT( * ) + 13 * + - SUM( ALL 61 )
----
-792

skipif mysql # not compatible
query I rowsort label-6972
SELECT + COUNT ( * ) + 13 * + - SUM ( ALL 61 )
----
-792

onlyif mysql # aggregate syntax: 
query II rowsort label-6973
SELECT ALL MIN( ALL 62 ), - 45 col1
----
62
-45

skipif mysql # not compatible
query II rowsort label-6973
SELECT ALL MIN ( ALL 62 ), - 45 col1
----
62
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6974
SELECT ALL 25 + - + 54 + 40 + - + COUNT( * ) + + - 10 DIV + + CAST( + 89 AS SIGNED ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-6974
SELECT ALL 25 + - + 54 + 40 + - + COUNT ( * ) + + - 10 / + + CAST ( + 89 AS INTEGER ) AS col1
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-6975
SELECT DISTINCT - - 65 + - 20 DIV + 63 * + - 37
----
65

skipif mysql # not compatible
query I rowsort label-6975
SELECT DISTINCT - - 65 + - 20 / + 63 * + - 37
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-6976
SELECT ALL - 15 + - COUNT( * ) col2, 42 * 71
----
-16
2982

skipif mysql # not compatible
query II rowsort label-6976
SELECT ALL - 15 + - COUNT ( * ) col2, 42 * 71
----
-16
2982

onlyif mysql # aggregate syntax: 
query I rowsort label-6977
SELECT DISTINCT COUNT( ALL + 39 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6977
SELECT DISTINCT COUNT ( ALL + 39 ) AS col2
----
1

query II rowsort
SELECT - + 60 + 18, + 26 col0
----
-42
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6979
SELECT ALL - + NULLIF ( + 70, 70 * - + 87 ) + CAST( NULL AS SIGNED ) * 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6979
SELECT ALL - + NULLIF ( + 70, 70 * - + 87 ) + CAST ( NULL AS INTEGER ) * 8 AS col2
----
NULL

query I rowsort
SELECT + 58 * + 46 AS col2
----
2668

query I rowsort
SELECT ALL - ( - - ( + ( - 46 ) ) )
----
46

query I rowsort
SELECT - 17 + - - 91 col0
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6983
SELECT - 65 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6983
SELECT - 65 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6984
SELECT ALL + COUNT( * ) DIV 48
----
0

skipif mysql # not compatible
query I rowsort label-6984
SELECT ALL + COUNT ( * ) / 48
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6985
SELECT 12 * COUNT( ALL - - 22 ) + - 86 col1
----
-74

skipif mysql # not compatible
query I rowsort label-6985
SELECT 12 * COUNT ( ALL - - 22 ) + - 86 col1
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-6986
SELECT + CASE - 50 WHEN + + 55 + ( - + 41 ) THEN - 15 ELSE - - 35 + + 1 + + 23 * ( - - 21 ) + - 22 DIV 16 + + - 76 END AS col2
----
442

skipif mysql # not compatible
query I rowsort label-6986
SELECT + CASE - 50 WHEN + + 55 + ( - + 41 ) THEN - 15 ELSE - - 35 + + 1 + + 23 * ( - - 21 ) + - 22 / 16 + + - 76 END AS col2
----
442

query I rowsort
SELECT DISTINCT + ( - + 40 ) AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6988
SELECT + MAX( ALL 7 ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-6988
SELECT + MAX ( ALL 7 ) AS col1
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-6989
SELECT 48 AS col0, 17 + - + MIN( 26 ) AS col2
----
48
-9

skipif mysql # not compatible
query II rowsort label-6989
SELECT 48 AS col0, 17 + - + MIN ( 26 ) AS col2
----
48
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6990
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + - + CASE - COUNT( * ) WHEN + 94 / 92 + CAST( NULL AS SIGNED ) - 49 * + 25 * + + 1 THEN + 47 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6990
SELECT DISTINCT - CAST ( NULL AS REAL ) + - + CASE - COUNT ( * ) WHEN + 94 / 92 + CAST ( NULL AS INTEGER ) - 49 * + 25 * + + 1 THEN + 47 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT 17 * NULLIF ( + COUNT( * ), - 4 * - 91 - + COALESCE ( ( + - 1 ), - 84 ) + + - 42 )
----
17

skipif mysql # not compatible
query I rowsort label-6991
SELECT 17 * NULLIF ( + COUNT ( * ), - 4 * - 91 - + COALESCE ( ( + - 1 ), - 84 ) + + - 42 )
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-6992
SELECT 53 * - COUNT( * ) * + 5, SUM( DISTINCT + 52 ) AS col2
----
-265
52

skipif mysql # not compatible
query II rowsort label-6992
SELECT 53 * - COUNT ( * ) * + 5, SUM ( DISTINCT + 52 ) AS col2
----
-265
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6993
SELECT 78 * + COALESCE ( 18, + - 54 ) - + - CAST( + + 73 AS SIGNED )
----
1477

skipif mysql # not compatible
query I rowsort label-6993
SELECT 78 * + COALESCE ( 18, + - 54 ) - + - CAST ( + + 73 AS INTEGER )
----
1477

query I rowsort
SELECT ALL + 11 + + 86 * 22 + + 15 AS col0
----
1918

onlyif mysql # aggregate syntax: 
query I rowsort label-6995
SELECT + ( + COUNT( * ) ) * - + 76 + - COUNT( * ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-6995
SELECT + ( + COUNT ( * ) ) * - + 76 + - COUNT ( * ) AS col2
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6996
SELECT ALL - - 59 + - + 30 + + - NULLIF ( + + 63, 46 DIV + MAX( DISTINCT + 84 ) DIV + 64 ) + - 12 * 57 - SUM( - + 23 ) DIV - + 95 AS col0
----
-718

skipif mysql # not compatible
query I rowsort label-6996
SELECT ALL - - 59 + - + 30 + + - NULLIF ( + + 63, 46 / + MAX ( DISTINCT + 84 ) / + 64 ) + - 12 * 57 - SUM ( - + 23 ) / - + 95 AS col0
----
-718

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6997
SELECT + 54 * 95 / + 23 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6997
SELECT + 54 * 95 / + 23 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6998
SELECT ALL + 19 + - 25 * NULLIF ( - 88, 8 - - 33 * ( + 95 ) + - + 6 + - 6 + + CAST( - 3 AS SIGNED ) * + - 31 )
----
2219

skipif mysql # not compatible
query I rowsort label-6998
SELECT ALL + 19 + - 25 * NULLIF ( - 88, 8 - - 33 * ( + 95 ) + - + 6 + - 6 + + CAST ( - 3 AS INTEGER ) * + - 31 )
----
2219

query I rowsort
SELECT DISTINCT + 61 * 77 * ( - ( - + 57 ) ) + 19 * - + 62
----
266551

query I rowsort
SELECT - 90 * + 58
----
-5220

query I rowsort
SELECT 77 * 77 + - 76
----
5853

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7002
SELECT - NULLIF ( - 8, - - CAST( NULL AS SIGNED ) * 75 ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-7002
SELECT - NULLIF ( - 8, - - CAST ( NULL AS INTEGER ) * 75 ) AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7003
SELECT ALL SUM( DISTINCT + 56 )
----
56

skipif mysql # not compatible
query I rowsort label-7003
SELECT ALL SUM ( DISTINCT + 56 )
----
56

query I rowsort
SELECT + 56 + - + 71 AS col1
----
-15

query I rowsort
SELECT + 70 + - 88 AS col1
----
-18

query I rowsort
SELECT 46 * - + 26 * + + 82
----
-98072

onlyif mysql # aggregate syntax: 
query I rowsort label-7007
SELECT + SUM( - + 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-7007
SELECT + SUM ( - + 20 )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7008
SELECT - 19 + + + MIN( - + 54 ) + ( - - ( ( + COUNT( * ) ) ) ) + - 97 + + - 80 * + 47 AS col2
----
-3929

skipif mysql # not compatible
query I rowsort label-7008
SELECT - 19 + + + MIN ( - + 54 ) + ( - - ( ( + COUNT ( * ) ) ) ) + - 97 + + - 80 * + 47 AS col2
----
-3929

onlyif mysql # aggregate syntax: 
query I rowsort label-7009
SELECT 18 * - SUM( + 94 ) * - + 77
----
130284

skipif mysql # not compatible
query I rowsort label-7009
SELECT 18 * - SUM ( + 94 ) * - + 77
----
130284

onlyif mysql # DIV for integer division: 
query II rowsort label-7010
SELECT - 2 AS col1, 10 DIV - 33 col0
----
-2
0

skipif mysql # not compatible
query II rowsort label-7010
SELECT - 2 AS col1, 10 / - 33 col0
----
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7011
SELECT NULLIF ( ( + 29 ), - ( + 28 ) + + 74 * - 17 ) * + 49 + - CASE + + COUNT( * ) WHEN - 68 - + ( - 5 ) + - - 79 * 91 * + 27 + + MIN( + 84 ) THEN 64 + 11 ELSE - 53 + 30 + + COUNT( * ) * 49 * - - 26 * - 75 * + ( - 74 ) - - 25 END AS col0
----
-7069281

skipif mysql # not compatible
query I rowsort label-7011
SELECT NULLIF ( ( + 29 ), - ( + 28 ) + + 74 * - 17 ) * + 49 + - CASE + + COUNT ( * ) WHEN - 68 - + ( - 5 ) + - - 79 * 91 * + 27 + + MIN ( + 84 ) THEN 64 + 11 ELSE - 53 + 30 + + COUNT ( * ) * 49 * - - 26 * - 75 * + ( - 74 ) - - 25 END AS col0
----
-7069281

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7012
SELECT ALL - CAST( NULL AS SIGNED ) + - 34 * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7012
SELECT ALL - CAST ( NULL AS INTEGER ) + - 34 * + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7013
SELECT 27 DIV + - COUNT( * ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-7013
SELECT 27 / + - COUNT ( * ) AS col1
----
-27

query I rowsort
SELECT 8 + 32 + + ( + 20 ) AS col2
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-7015
SELECT ALL + 91 DIV 88 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7015
SELECT ALL + 91 / 88 AS col0
----
1

query II rowsort
SELECT 96 AS col1, - 24 AS col0
----
96
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-7017
SELECT 53 DIV + 15
----
3

skipif mysql # not compatible
query I rowsort label-7017
SELECT 53 / + 15
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7018
SELECT 23 + - + CAST( - + 39 AS SIGNED ) + - + 39 + - 19 * - 16
----
327

skipif mysql # not compatible
query I rowsort label-7018
SELECT 23 + - + CAST ( - + 39 AS INTEGER ) + - + 39 + - 19 * - 16
----
327

onlyif mysql # aggregate syntax: 
query II rowsort label-7019
SELECT + 83 AS col2, COUNT( * )
----
83
1

skipif mysql # not compatible
query II rowsort label-7019
SELECT + 83 AS col2, COUNT ( * )
----
83
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7020
SELECT ALL - 19 + COUNT( * ) * + + ( - - 89 ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-7020
SELECT ALL - 19 + COUNT ( * ) * + + ( - - 89 ) AS col2
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7021
SELECT 82 * + + COALESCE ( + 19, - - CAST( + + COUNT( DISTINCT - - 17 ) AS SIGNED ) ) + + 43
----
1601

skipif mysql # not compatible
query I rowsort label-7021
SELECT 82 * + + COALESCE ( + 19, - - CAST ( + + COUNT ( DISTINCT - - 17 ) AS INTEGER ) ) + + 43
----
1601

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7022
SELECT - 91 DIV + MAX( - 37 ) + + - 25
----
-23

skipif mysql # not compatible
query I rowsort label-7022
SELECT - 91 / + MAX ( - 37 ) + + - 25
----
-23

query I rowsort
SELECT DISTINCT - CASE - - 43 WHEN ( + - 38 ) - 92 THEN - - 36 END col0
----
NULL

query I rowsort
SELECT ALL - ( 41 ) + - + 51
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7025
SELECT ALL - - COUNT( * ) AS col2, NULLIF ( - 69, - 54 + 5 * 81 * - + 39 ) + 17 * 90 * - 56 DIV - 56 AS col0
----
1
1461

skipif mysql # not compatible
query II rowsort label-7025
SELECT ALL - - COUNT ( * ) AS col2, NULLIF ( - 69, - 54 + 5 * 81 * - + 39 ) + 17 * 90 * - 56 / - 56 AS col0
----
1
1461

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7026
SELECT DISTINCT + + 82 - + CAST( 32 AS SIGNED )
----
50

skipif mysql # not compatible
query I rowsort label-7026
SELECT DISTINCT + + 82 - + CAST ( 32 AS INTEGER )
----
50

query I rowsort
SELECT + - ( - 86 ) AS col0
----
86

query I rowsort
SELECT ALL + 88 - - ( + 80 ) AS col1
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-7029
SELECT + - COALESCE ( COUNT( * ), + 73 * - NULLIF ( + COALESCE ( - - 87, 57 ), - + 41 ) * - 82 + - MAX( ALL + + 27 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7029
SELECT + - COALESCE ( COUNT ( * ), + 73 * - NULLIF ( + COALESCE ( - - 87, 57 ), - + 41 ) * - 82 + - MAX ( ALL + + 27 ) ) AS col0
----
-1

query II rowsort
SELECT ALL + 48 AS col2, - 61 AS col1
----
48
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7031
SELECT MIN( - 73 ) DIV 93
----
0

skipif mysql # not compatible
query I rowsort label-7031
SELECT MIN ( - 73 ) / 93
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7032
SELECT ALL CAST( - 62 AS SIGNED ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-7032
SELECT ALL CAST ( - 62 AS INTEGER ) AS col1
----
-62

query I rowsort
SELECT 22 * 92
----
2024

query I rowsort
SELECT ALL COALESCE ( + 11, ( 28 ) - - 80 * - - 24 ) * + - 74 AS col2
----
-814

onlyif mysql # DIV for integer division: 
query I rowsort label-7035
SELECT - 76 DIV - - 1 AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-7035
SELECT - 76 / - - 1 AS col2
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-7036
SELECT 76 col2, + 18 * + SUM( + ( + 45 ) ) AS col2
----
76
810

skipif mysql # not compatible
query II rowsort label-7036
SELECT 76 col2, + 18 * + SUM ( + ( + 45 ) ) AS col2
----
76
810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7037
SELECT 37 * + 50 * + 73 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7037
SELECT 37 * + 50 * + 73 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7038
SELECT COUNT( * ) * + COUNT( * ) * + ( COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-7038
SELECT COUNT ( * ) * + COUNT ( * ) * + ( COUNT ( * ) )
----
1

query I rowsort
SELECT 99 + + 69 + - + ( + ( - + 49 ) ) AS col0
----
217

onlyif mysql # aggregate syntax: 
query I rowsort label-7040
SELECT DISTINCT - 76 * NULLIF ( + 12, - + COUNT( * ) ) AS col1
----
-912

skipif mysql # not compatible
query I rowsort label-7040
SELECT DISTINCT - 76 * NULLIF ( + 12, - + COUNT ( * ) ) AS col1
----
-912

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7041
SELECT ALL NULLIF ( 22, - + CAST( NULL AS SIGNED ) * - - 50 )
----
22

skipif mysql # not compatible
query I rowsort label-7041
SELECT ALL NULLIF ( 22, - + CAST ( NULL AS INTEGER ) * - - 50 )
----
22

query I rowsort
SELECT DISTINCT ( 23 ) * - 50
----
-1150

query I rowsort
SELECT ALL 70 + + 62 + - - 19
----
151

query I rowsort
SELECT DISTINCT 82 + + 46 + 57 * - 84
----
-4660

query I rowsort
SELECT + 46 * + - 9
----
-414

query I rowsort
SELECT 87 * + 24 + - 71 AS col0
----
2017

query I rowsort
SELECT CASE + - 80 WHEN + 54 THEN - 86 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7048
SELECT ALL - 27 * 90 * - COUNT( * ) * - SUM( + CAST( - - 33 AS SIGNED ) ) + + 90 AS col0, 69
----
-80100
69

skipif mysql # not compatible
query II rowsort label-7048
SELECT ALL - 27 * 90 * - COUNT ( * ) * - SUM ( + CAST ( - - 33 AS INTEGER ) ) + + 90 AS col0, 69
----
-80100
69

query I rowsort
SELECT + 16 * - 41 * ( 23 )
----
-15088

onlyif mysql # aggregate syntax: 
query I rowsort label-7050
SELECT + NULLIF ( CASE - 82 WHEN - COUNT( * ) THEN NULL ELSE + 78 END, + 17 + 67 )
----
78

skipif mysql # not compatible
query I rowsort label-7050
SELECT + NULLIF ( CASE - 82 WHEN - COUNT ( * ) THEN NULL ELSE + 78 END, + 17 + 67 )
----
78

query I rowsort
SELECT + CASE - 0 WHEN - 40 THEN 88 WHEN - 62 THEN - + 6 * - 69 ELSE - - 9 END AS col1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7052
SELECT ALL CAST( + 18 AS SIGNED ) * + + 57
----
1026

skipif mysql # not compatible
query I rowsort label-7052
SELECT ALL CAST ( + 18 AS INTEGER ) * + + 57
----
1026

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7053
SELECT NULLIF ( 99, - 41 - - CAST( + 99 AS SIGNED ) ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-7053
SELECT NULLIF ( 99, - 41 - - CAST ( + 99 AS INTEGER ) ) AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7054
SELECT + 96 * + + 64 + COUNT( * ) + - + 89 - 11
----
6045

skipif mysql # not compatible
query I rowsort label-7054
SELECT + 96 * + + 64 + COUNT ( * ) + - + 89 - 11
----
6045

onlyif mysql # aggregate syntax: 
query I rowsort label-7055
SELECT - MAX( ALL + - 11 ) * + MAX( DISTINCT 59 ) + + 75 + COALESCE ( - COUNT( * ), + 76, + 78 ) + - - 36 + - 65 + COUNT( * ) * + MIN( 43 ) * - + 94 AS col0
----
-3348

skipif mysql # not compatible
query I rowsort label-7055
SELECT - MAX ( ALL + - 11 ) * + MAX ( DISTINCT 59 ) + + 75 + COALESCE ( - COUNT ( * ), + 76, + 78 ) + - - 36 + - 65 + COUNT ( * ) * + MIN ( 43 ) * - + 94 AS col0
----
-3348

query I rowsort
SELECT - + ( + 44 ) * - 40 - 58
----
1702

query I rowsort
SELECT DISTINCT 54 * 9 - - 62 + + 43
----
591

query I rowsort
SELECT ALL + + ( 75 ) * + 78
----
5850

query I rowsort
SELECT - + 71 * - 12
----
852

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7060
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7060
SELECT DISTINCT + + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT - + 21 - 79
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-7062
SELECT ALL + + 12 * COUNT( * ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-7062
SELECT ALL + + 12 * COUNT ( * ) AS col2
----
12

query I rowsort
SELECT - - 10 * 60
----
600

query I rowsort
SELECT - - 52 + + - ( + ( 29 ) )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7065
SELECT ALL - - 99 + + - 27 * COUNT( - 57 ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-7065
SELECT ALL - - 99 + + - 27 * COUNT ( - 57 ) AS col0
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-7066
SELECT + 10 DIV - 43
----
0

skipif mysql # not compatible
query I rowsort label-7066
SELECT + 10 / - 43
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7067
SELECT DISTINCT CASE 89 WHEN 27 + - COALESCE ( - + 2, + + 93 ) THEN + 4 * 99 WHEN + - COUNT( * ) * + + 2 * - COUNT( * ) - - - 80 THEN NULL ELSE + ( + 25 ) END
----
25

skipif mysql # not compatible
query I rowsort label-7067
SELECT DISTINCT CASE 89 WHEN 27 + - COALESCE ( - + 2, + + 93 ) THEN + 4 * 99 WHEN + - COUNT ( * ) * + + 2 * - COUNT ( * ) - - - 80 THEN NULL ELSE + ( + 25 ) END
----
25

query I rowsort
SELECT - 65 + - COALESCE ( - + 67, - 9 + + 68, - 28 )
----
2

query I rowsort
SELECT ALL 77 * - 98
----
-7546

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7070
SELECT DISTINCT NULLIF ( - COUNT( * ), + + 42 ) + - SUM( - - 3 ) + CAST( + - 24 AS SIGNED ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-7070
SELECT DISTINCT NULLIF ( - COUNT ( * ), + + 42 ) + - SUM ( - - 3 ) + CAST ( + - 24 AS INTEGER ) AS col2
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7071
SELECT ALL + 63 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7071
SELECT ALL + 63 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7072
SELECT - MAX( DISTINCT + 21 )
----
-21

skipif mysql # not compatible
query I rowsort label-7072
SELECT - MAX ( DISTINCT + 21 )
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7073
SELECT DISTINCT + ( - - 37 ) + - - ( NULLIF ( + - 26, - + 8 ) ) + - ( - + 32 ) * - SUM( ALL - - 41 ) * COALESCE ( 82, - 94, CAST( + 75 AS SIGNED ) + + 9 )
----
-107573

skipif mysql # not compatible
query I rowsort label-7073
SELECT DISTINCT + ( - - 37 ) + - - ( NULLIF ( + - 26, - + 8 ) ) + - ( - + 32 ) * - SUM ( ALL - - 41 ) * COALESCE ( 82, - 94, CAST ( + 75 AS INTEGER ) + + 9 )
----
-107573

onlyif mysql # aggregate syntax: 
query I rowsort label-7074
SELECT ALL - SUM( - 10 ) * - + 96 + + + 26 AS col2
----
-934

skipif mysql # not compatible
query I rowsort label-7074
SELECT ALL - SUM ( - 10 ) * - + 96 + + + 26 AS col2
----
-934

onlyif mysql # DIV for integer division: 
query I rowsort label-7075
SELECT + 53 DIV 59 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7075
SELECT + 53 / 59 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7076
SELECT + COUNT( * ) + - CAST( - + SUM( + CAST( NULL AS SIGNED ) ) AS DECIMAL ) + + 5 / + + COUNT( 43 ) * - 28 * AVG ( DISTINCT 77 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7076
SELECT + COUNT ( * ) + - CAST ( - + SUM ( + CAST ( NULL AS INTEGER ) ) AS REAL ) + + 5 / + + COUNT ( 43 ) * - 28 * AVG ( DISTINCT 77 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 76 * + + 50
----
3800

onlyif mysql # aggregate syntax: 
query II rowsort label-7078
SELECT - 40 - ( + 34 ) + - MIN( DISTINCT + 17 ) - 55 * - - 47 + 36 * + 10 AS col0, 1 * + 52
----
-2316
52

skipif mysql # not compatible
query II rowsort label-7078
SELECT - 40 - ( + 34 ) + - MIN ( DISTINCT + 17 ) - 55 * - - 47 + 36 * + 10 AS col0, 1 * + 52
----
-2316
52

query I rowsort
SELECT - 99 * + 16 AS col2
----
-1584

query I rowsort
SELECT - 17 - - - ( + 58 ) + 92
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7081
SELECT ALL + ( + COUNT( * ) ) * + NULLIF ( + 45, + + ( - - 20 ) + 15 + - - 56 + ( 75 ) + - NULLIF ( + 14, 4 ) ) AS col0, + 0 DIV - CAST( + 23 AS SIGNED )
----
45
0

skipif mysql # not compatible
query II rowsort label-7081
SELECT ALL + ( + COUNT ( * ) ) * + NULLIF ( + 45, + + ( - - 20 ) + 15 + - - 56 + ( 75 ) + - NULLIF ( + 14, 4 ) ) AS col0, + 0 / - CAST ( + 23 AS INTEGER )
----
45
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7082
SELECT DISTINCT + 75, + COUNT( * ) AS col0
----
75
1

skipif mysql # not compatible
query II rowsort label-7082
SELECT DISTINCT + 75, + COUNT ( * ) AS col0
----
75
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7083
SELECT CAST( - 49 AS SIGNED )
----
-49

skipif mysql # not compatible
query I rowsort label-7083
SELECT CAST ( - 49 AS INTEGER )
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7084
SELECT ALL + SUM( DISTINCT - NULLIF ( - - 19, 19 * - COALESCE ( 50, - CAST( - 19 AS SIGNED ) ) + - 98 * + + 68 * - 57 * + 97 + - - 99 * + 75 + - + ( + 7 ) + + 52 ) )
----
-19

skipif mysql # not compatible
query I rowsort label-7084
SELECT ALL + SUM ( DISTINCT - NULLIF ( - - 19, 19 * - COALESCE ( 50, - CAST ( - 19 AS INTEGER ) ) + - 98 * + + 68 * - 57 * + 97 + - - 99 * + 75 + - + ( + 7 ) + + 52 ) )
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-7085
SELECT DISTINCT - 23 DIV + 77 * + 92 - + 76 AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-7085
SELECT DISTINCT - 23 / + 77 * + 92 - + 76 AS col1
----
-76

query II rowsort
SELECT ALL + 3 AS col2, 86 col2
----
3
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7087
SELECT + 33 + + + 32 DIV + 97 + + 53 + - - 28 * - + COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-7087
SELECT + 33 + + + 32 / + 97 + + 53 + - - 28 * - + COUNT ( * )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7088
SELECT + 95 + - - COALESCE ( 85, + ( + - COUNT( * ) ) * - 91 * - 22 * + 98 * 67 ) * 56 col1
----
4855

skipif mysql # not compatible
query I rowsort label-7088
SELECT + 95 + - - COALESCE ( 85, + ( + - COUNT ( * ) ) * - 91 * - 22 * + 98 * 67 ) * 56 col1
----
4855

onlyif mysql # aggregate syntax: 
query I rowsort label-7089
SELECT + 68 * - 66 - 28 + 99 + - 46 + + + 96 * - 80 * COUNT( * ) * - ( - 44 ) * + - 80
----
27029137

skipif mysql # not compatible
query I rowsort label-7089
SELECT + 68 * - 66 - 28 + 99 + - 46 + + + 96 * - 80 * COUNT ( * ) * - ( - 44 ) * + - 80
----
27029137

query I rowsort
SELECT ALL ( + 37 ) * - ( + 83 ) AS col0
----
-3071

onlyif mysql # aggregate syntax: 
query I rowsort label-7091
SELECT DISTINCT ( - ( - 51 ) ) * - MIN( ALL + 52 ) AS col2
----
-2652

skipif mysql # not compatible
query I rowsort label-7091
SELECT DISTINCT ( - ( - 51 ) ) * - MIN ( ALL + 52 ) AS col2
----
-2652

onlyif mysql # aggregate syntax: 
query II rowsort label-7092
SELECT - - ( - COUNT( * ) ) + - 1 AS col0, + 84 AS col0
----
-2
84

skipif mysql # not compatible
query II rowsort label-7092
SELECT - - ( - COUNT ( * ) ) + - 1 AS col0, + 84 AS col0
----
-2
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7093
SELECT - CASE - ( + + 28 ) WHEN + + NULLIF ( AVG ( - 88 ), 57 ) THEN + 41 * 75 WHEN ( 71 ) THEN NULL END * - - 95 + - - COUNT( * ) + - - 92 / - 52 + 34 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7093
SELECT - CASE - ( + + 28 ) WHEN + + NULLIF ( AVG ( - 88 ), 57 ) THEN + 41 * 75 WHEN ( 71 ) THEN NULL END * - - 95 + - - COUNT ( * ) + - - 92 / - 52 + 34 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7094
SELECT - 81 * + MIN( DISTINCT + 2 ) * + COUNT( * ) col0
----
-162

skipif mysql # not compatible
query I rowsort label-7094
SELECT - 81 * + MIN ( DISTINCT + 2 ) * + COUNT ( * ) col0
----
-162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7095
SELECT DISTINCT - + 20 * + + COUNT( * ) + - + 36 / 87 + CAST( NULL AS SIGNED ) * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7095
SELECT DISTINCT - + 20 * + + COUNT ( * ) + - + 36 / 87 + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col0
----
NULL

query II rowsort
SELECT 43 AS col2, - 51
----
43
-51

query I rowsort
SELECT ALL + 4 * + - 46 * + ( + 28 )
----
-5152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7098
SELECT DISTINCT + COUNT( * ) * + 76 DIV - COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-7098
SELECT DISTINCT + COUNT ( * ) * + 76 / - COUNT ( * )
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7099
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 17, - 95 * + ( + + 44 ) AS col1
----
NULL
-4180

skipif mysql # not compatible
query II rowsort label-7099
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 17, - 95 * + ( + + 44 ) AS col1
----
NULL
-4180

query I rowsort
SELECT 98 + + 42 * + + 44 * - 10
----
-18382

query I rowsort
SELECT DISTINCT - 4 * - 55 AS col2
----
220

query I rowsort
SELECT 46 * 2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7103
SELECT DISTINCT - COUNT( * ) * + 85 AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-7103
SELECT DISTINCT - COUNT ( * ) * + 85 AS col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7104
SELECT 36 - ( MAX( ALL - 88 ) )
----
124

skipif mysql # not compatible
query I rowsort label-7104
SELECT 36 - ( MAX ( ALL - 88 ) )
----
124

onlyif mysql # DIV for integer division: 
query I rowsort label-7105
SELECT ALL - 60 DIV + + 99 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7105
SELECT ALL - 60 / + + 99 AS col1
----
0

query I rowsort
SELECT DISTINCT 22 * + 38 AS col0
----
836

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7107
SELECT DISTINCT - SUM( DISTINCT - - ( 38 ) ) - + CAST( - ( 44 ) AS SIGNED )
----
6

skipif mysql # not compatible
query I rowsort label-7107
SELECT DISTINCT - SUM ( DISTINCT - - ( 38 ) ) - + CAST ( - ( 44 ) AS INTEGER )
----
6

query I rowsort
SELECT 62 * 87 AS col0
----
5394

query I rowsort
SELECT 68 + - 55 * + 96 AS col0
----
-5212

query I rowsort
SELECT DISTINCT - 42 * + + 8 col1
----
-336

query II rowsort
SELECT 52 * - 46 AS col1, - 81 AS col2
----
-2392
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-7112
SELECT 61 DIV 18 + + 79
----
82

skipif mysql # not compatible
query I rowsort label-7112
SELECT 61 / 18 + + 79
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7113
SELECT ALL - NULLIF ( - 82, + 10 * 54 + - + CAST( NULL AS SIGNED ) + - - COUNT( * ) + + - COUNT( * ) )
----
82

skipif mysql # not compatible
query I rowsort label-7113
SELECT ALL - NULLIF ( - 82, + 10 * 54 + - + CAST ( NULL AS INTEGER ) + - - COUNT ( * ) + + - COUNT ( * ) )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7114
SELECT DISTINCT - 73 * + + NULLIF ( - + 99, + + COUNT( * ) * - - 86 )
----
7227

skipif mysql # not compatible
query I rowsort label-7114
SELECT DISTINCT - 73 * + + NULLIF ( - + 99, + + COUNT ( * ) * - - 86 )
----
7227

onlyif mysql # aggregate syntax: 
query I rowsort label-7115
SELECT DISTINCT - + ( - 81 ) * - - 47 * + COUNT( * ) + - + 24
----
3783

skipif mysql # not compatible
query I rowsort label-7115
SELECT DISTINCT - + ( - 81 ) * - - 47 * + COUNT ( * ) + - + 24
----
3783

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7116
SELECT + 20 * + NULLIF ( SUM( - + 95 ), + - 53 ) * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7116
SELECT + 20 * + NULLIF ( SUM ( - + 95 ), + - 53 ) * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 87 * 0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7118
SELECT - 56 * - 65 * 82 + + COALESCE ( + + ( + 7 ), + COUNT( * ) DIV + - 80 DIV 65 + + - 71 * COUNT( ALL - - 10 ) ) + + 39 AS col0
----
298526

skipif mysql # not compatible
query I rowsort label-7118
SELECT - 56 * - 65 * 82 + + COALESCE ( + + ( + 7 ), + COUNT ( * ) / + - 80 / 65 + + - 71 * COUNT ( ALL - - 10 ) ) + + 39 AS col0
----
298526

onlyif mysql # aggregate syntax: 
query II rowsort label-7119
SELECT + MIN( ALL 94 ) AS col0, 16 col0
----
94
16

skipif mysql # not compatible
query II rowsort label-7119
SELECT + MIN ( ALL 94 ) AS col0, 16 col0
----
94
16

query I rowsort
SELECT ALL 40 + - 60 + + + NULLIF ( + 13, 18 ) * + - ( - ( - 99 ) ) AS col2
----
-1307

query I rowsort
SELECT + ( + - 82 ) col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7122
SELECT ALL - 55 + + 57 * + 77 * SUM( 99 )
----
434456

skipif mysql # not compatible
query I rowsort label-7122
SELECT ALL - 55 + + 57 * + 77 * SUM ( 99 )
----
434456

query I rowsort
SELECT ALL - ( NULLIF ( 58, - - NULLIF ( + 85, 43 ) ) ) + - + 14 - NULLIF ( ( + 79 ), - 10 ) * - 7
----
481

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7124
SELECT ALL - 64 + - + 78 - - 14 * - - COALESCE ( + NULLIF ( - - 33, - + 92 ), 18, 25 + - CAST( - 61 AS SIGNED ) + + ( - - 52 ) )
----
320

skipif mysql # not compatible
query I rowsort label-7124
SELECT ALL - 64 + - + 78 - - 14 * - - COALESCE ( + NULLIF ( - - 33, - + 92 ), 18, 25 + - CAST ( - 61 AS INTEGER ) + + ( - - 52 ) )
----
320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7125
SELECT ALL - + CAST( - COUNT( * ) AS SIGNED ) + NULLIF ( - - COUNT( * ), + 82 + + - 45 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7125
SELECT ALL - + CAST ( - COUNT ( * ) AS INTEGER ) + NULLIF ( - - COUNT ( * ), + 82 + + - 45 ) AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7126
SELECT 57, ( - COUNT( * ) ) * + 7 - + COUNT( * ) - - 92 * + CAST( NULL AS DECIMAL ) AS col1
----
57
NULL

skipif mysql # not compatible
query II rowsort label-7126
SELECT 57, ( - COUNT ( * ) ) * + 7 - + COUNT ( * ) - - 92 * + CAST ( NULL AS REAL ) AS col1
----
57
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7127
SELECT ( ( + - COALESCE ( NULLIF ( 96, + - CASE + 20 WHEN + 94 / - - CAST( NULL AS SIGNED ) - + + 52 THEN - + 33 * 19 * - - 63 * - COALESCE ( - CAST( + 51 AS SIGNED ), - - 72, 94 * + COUNT( * ), + + COUNT( * ) * + - ( + COUNT( * ) ) * + + 51 - ( - 91 ) + 32 + + COUNT( * ) ) ELSE CASE - 46 WHEN + + 12 + MIN( + CAST( NULL AS SIGNED ) ) THEN - ( 90 ) + - 30 * 67 END END ), + NULLIF ( 37, - 68 * + 78 ), 70 ) ) ) + + 67
----
-29

skipif mysql # not compatible
query I rowsort label-7127
SELECT ( ( + - COALESCE ( NULLIF ( 96, + - CASE + 20 WHEN + 94 / - - CAST ( NULL AS INTEGER ) - + + 52 THEN - + 33 * 19 * - - 63 * - COALESCE ( - CAST ( + 51 AS INTEGER ), - - 72, 94 * + COUNT ( * ), + + COUNT ( * ) * + - ( + COUNT ( * ) ) * + + 51 - ( - 91 ) + 32 + + COUNT ( * ) ) ELSE CASE - 46 WHEN + + 12 + MIN ( + CAST ( NULL AS INTEGER ) ) THEN - ( 90 ) + - 30 * 67 END END ), + NULLIF ( 37, - 68 * + 78 ), 70 ) ) ) + + 67
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7128
SELECT ALL 94 - + MIN( ALL - 6 ) + 26 + + - NULLIF ( - 45, - + 71 ) + - 58 + - 35 + 32
----
110

skipif mysql # not compatible
query I rowsort label-7128
SELECT ALL 94 - + MIN ( ALL - 6 ) + 26 + + - NULLIF ( - 45, - + 71 ) + - 58 + - 35 + 32
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-7129
SELECT DISTINCT 23 - + SUM( - 11 ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-7129
SELECT DISTINCT 23 - + SUM ( - 11 ) AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7130
SELECT ALL + 28 * - 26 * - SUM( ALL - 83 ) * + 40 * + 66
----
-159519360

skipif mysql # not compatible
query I rowsort label-7130
SELECT ALL + 28 * - 26 * - SUM ( ALL - 83 ) * + 40 * + 66
----
-159519360

onlyif mysql # aggregate syntax: 
query I rowsort label-7131
SELECT ( + 87 ) * COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-7131
SELECT ( + 87 ) * COUNT ( * )
----
87

query I rowsort
SELECT 46 + + 21 AS col1
----
67

query I rowsort
SELECT ALL 58 - + 54
----
4

query I rowsort
SELECT ALL - 55 * - 71 AS col0
----
3905

query I rowsort
SELECT ALL + 1 - - 75
----
76

query I rowsort
SELECT 71 * 26 col1
----
1846

query I rowsort
SELECT 42 * 11 AS col1
----
462

query I rowsort
SELECT ALL - 56 * + - 62 AS col0
----
3472

onlyif mysql # aggregate syntax: 
query I rowsort label-7139
SELECT - MIN( 36 ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-7139
SELECT - MIN ( 36 ) AS col1
----
-36

query I rowsort
SELECT 58 - - 17
----
75

onlyif mysql # DIV for integer division: 
query II rowsort label-7141
SELECT 61 DIV - - ( - + NULLIF ( + - 28, 28 ) ), 63 AS col0
----
2
63

skipif mysql # not compatible
query II rowsort label-7141
SELECT 61 / - - ( - + NULLIF ( + - 28, 28 ) ), 63 AS col0
----
2
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7142
SELECT ALL SUM( ALL - + 3 ) * + 46 AS col2
----
-138

skipif mysql # not compatible
query I rowsort label-7142
SELECT ALL SUM ( ALL - + 3 ) * + 46 AS col2
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-7143
SELECT DISTINCT - SUM( + ( 50 ) )
----
-50

skipif mysql # not compatible
query I rowsort label-7143
SELECT DISTINCT - SUM ( + ( 50 ) )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7144
SELECT - COUNT( * ) * + 79 AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-7144
SELECT - COUNT ( * ) * + 79 AS col2
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7145
SELECT DISTINCT + 78 / + + CAST( NULL AS SIGNED ) / - + 8 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7145
SELECT DISTINCT + 78 / + + CAST ( NULL AS INTEGER ) / - + 8 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7146
SELECT ALL 18 * ( - + 40 ) + 87 DIV ( - 45 )
----
-721

skipif mysql # not compatible
query I rowsort label-7146
SELECT ALL 18 * ( - + 40 ) + 87 / ( - 45 )
----
-721

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7147
SELECT NULLIF ( + 7, + 54 + - + ( + 20 ) * - CAST( - + 49 AS SIGNED ) + - COUNT( ALL - + 25 ) + 95 - - 75 * 11 ) DIV ( + COUNT( * ) ) - + CAST( + 10 AS SIGNED ) + 49
----
46

skipif mysql # not compatible
query I rowsort label-7147
SELECT NULLIF ( + 7, + 54 + - + ( + 20 ) * - CAST ( - + 49 AS INTEGER ) + - COUNT ( ALL - + 25 ) + 95 - - 75 * 11 ) / ( + COUNT ( * ) ) - + CAST ( + 10 AS INTEGER ) + 49
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7148
SELECT 8 * 16 - 20 * + + COUNT( * )
----
108

skipif mysql # not compatible
query I rowsort label-7148
SELECT 8 * 16 - 20 * + + COUNT ( * )
----
108

onlyif mysql # DIV for integer division: 
query I rowsort label-7149
SELECT - - 24 DIV 92 * + + ( + 54 ) + 73 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-7149
SELECT - - 24 / 92 * + + ( + 54 ) + 73 AS col0
----
73

query I rowsort
SELECT ALL 5 * + 52 + + 74 + + 50
----
384

query I rowsort
SELECT - COALESCE ( + - 50, + 1 ) AS col0
----
50

query I rowsort
SELECT + 54 * - 81
----
-4374

onlyif mysql # aggregate syntax: 
query I rowsort label-7153
SELECT + 21 + + + COUNT( ( - 47 ) ) + 92 * - COALESCE ( - + 70, - COUNT( * ) )
----
6462

skipif mysql # not compatible
query I rowsort label-7153
SELECT + 21 + + + COUNT ( ( - 47 ) ) + 92 * - COALESCE ( - + 70, - COUNT ( * ) )
----
6462

onlyif mysql # aggregate syntax: 
query II rowsort label-7154
SELECT ALL + 30 * + COUNT( * ) + - 19 AS col1, 34
----
11
34

skipif mysql # not compatible
query II rowsort label-7154
SELECT ALL + 30 * + COUNT ( * ) + - 19 AS col1, 34
----
11
34

query I rowsort
SELECT + 34 + + + 78 AS col1
----
112

query I rowsort
SELECT ALL 73 + + - ( - 9 ) + + + 81
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-7157
SELECT DISTINCT + + MIN( ALL ( 14 ) ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-7157
SELECT DISTINCT + + MIN ( ALL ( 14 ) ) AS col2
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7158
SELECT - CAST( - ( - COUNT( * ) ) AS SIGNED ) * - COUNT( * ) DIV - - 87 * + 14
----
0

skipif mysql # not compatible
query I rowsort label-7158
SELECT - CAST ( - ( - COUNT ( * ) ) AS INTEGER ) * - COUNT ( * ) / - - 87 * + 14
----
0

query I rowsort
SELECT + NULLIF ( 70, + NULLIF ( - + 9, ( - - 66 ) * 20 ) )
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-7160
SELECT - 53 * + + ( - 72 ) * 33 + - + MIN( 27 ), - 2 AS col2
----
125901
-2

skipif mysql # not compatible
query II rowsort label-7160
SELECT - 53 * + + ( - 72 ) * 33 + - + MIN ( 27 ), - 2 AS col2
----
125901
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7161
SELECT ALL CAST( NULL AS SIGNED ) - - ( + - 87 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7161
SELECT ALL CAST ( NULL AS INTEGER ) - - ( + - 87 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7162
SELECT COUNT( * ) AS col2, NULLIF ( - 2, + 49 * CAST( NULL AS DECIMAL ) )
----
1
-2

skipif mysql # not compatible
query II rowsort label-7162
SELECT COUNT ( * ) AS col2, NULLIF ( - 2, + 49 * CAST ( NULL AS REAL ) )
----
1
-2

query I rowsort
SELECT + 88 + + 50 AS col1
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-7164
SELECT + 0 * - MIN( DISTINCT + 86 )
----
0

skipif mysql # not compatible
query I rowsort label-7164
SELECT + 0 * - MIN ( DISTINCT + 86 )
----
0

query I rowsort
SELECT ALL COALESCE ( 29, 53 ) AS col1
----
29

query II rowsort
SELECT 67 AS col0, - 92 AS col2
----
67
-92

query II rowsort
SELECT DISTINCT 13 AS col2, - 18 + - - 64 AS col2
----
13
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7168
SELECT - CASE + + CAST( NULL AS SIGNED ) WHEN 75 THEN + 68 + + 16 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7168
SELECT - CASE + + CAST ( NULL AS INTEGER ) WHEN 75 THEN + 68 + + 16 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7169
SELECT + COUNT( * ) * + + 32 AS col0, 65 + + 55 + - 83 AS col1
----
32
37

skipif mysql # not compatible
query II rowsort label-7169
SELECT + COUNT ( * ) * + + 32 AS col0, 65 + + 55 + - 83 AS col1
----
32
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7170
SELECT + ( - + COUNT( * ) ) + + + 49 DIV - 83 - - 22 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-7170
SELECT + ( - + COUNT ( * ) ) + + + 49 / - 83 - - 22 AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7171
SELECT + 10 * + NULLIF ( + 14, + - 7 + + COUNT( ALL + - 72 ) * + 97 ) AS col0
----
140

skipif mysql # not compatible
query I rowsort label-7171
SELECT + 10 * + NULLIF ( + 14, + - 7 + + COUNT ( ALL + - 72 ) * + 97 ) AS col0
----
140

query I rowsort
SELECT + 28 + + - 53 AS col1
----
-25

onlyif mysql # DIV for integer division: 
query II rowsort label-7173
SELECT 75 col2, - COALESCE ( 17, + 40 + ( - 9 ) DIV - 66 ) - + 60 + + 53 + + ( 20 ) AS col0
----
75
-4

skipif mysql # not compatible
query II rowsort label-7173
SELECT 75 col2, - COALESCE ( 17, + 40 + ( - 9 ) / - 66 ) - + 60 + + 53 + + ( 20 ) AS col0
----
75
-4

query II rowsort
SELECT ALL 98 / - - CASE - + 52 WHEN - COALESCE ( 68, + 79 + - 22 + + + 77 ) + - NULLIF ( + 91, + 6 * - 58 ) THEN 13 WHEN - 67 * 38 / - - 41 + - 67 + - 80 THEN 67 + + 52 ELSE NULL END / + 73, + 23 AS col0
----
NULL
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7175
SELECT ALL 10 DIV - 81, - MIN( ALL 36 ) AS col1
----
0
-36

skipif mysql # not compatible
query II rowsort label-7175
SELECT ALL 10 / - 81, - MIN ( ALL 36 ) AS col1
----
0
-36

query I rowsort
SELECT ALL - + 45 * 48 AS col0
----
-2160

onlyif mysql # aggregate syntax: 
query I rowsort label-7177
SELECT - + NULLIF ( - COUNT( * ), - 38 - 27 ) + - 22 * + ( + 13 ) AS col0
----
-285

skipif mysql # not compatible
query I rowsort label-7177
SELECT - + NULLIF ( - COUNT ( * ), - 38 - 27 ) + - 22 * + ( + 13 ) AS col0
----
-285

query III rowsort
SELECT - 71 AS col2, + 63 AS col2, + - 1 * - 62 * - 8 - + - 94 AS col0
----
-71
63
-402

query I rowsort
SELECT + + 43 * - + 35
----
-1505

query I rowsort
SELECT - - 38 + 31 * + 43 AS col1
----
1371

query I rowsort
SELECT + 74 * - 2 + - 46 + + + 91 AS col1
----
-103

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7182
SELECT + 77, + ( - ( COUNT( * ) ) ) DIV 90 DIV - + 94 + 98 + 18 AS col0
----
77
116

skipif mysql # not compatible
query II rowsort label-7182
SELECT + 77, + ( - ( COUNT ( * ) ) ) / 90 / - + 94 + 98 + 18 AS col0
----
77
116

onlyif mysql # aggregate syntax: 
query II rowsort label-7183
SELECT + CASE - 74 WHEN + ( + ( 19 ) ) THEN NULL WHEN COALESCE ( + ( - COUNT( * ) ), + 97 * + CASE + 72 WHEN - 77 * 68 THEN - 20 ELSE NULL END ) THEN NULL WHEN - 40 THEN NULL ELSE 33 - - 77 + COUNT( * ) * + - 12 END AS col2, + 25 AS col2
----
98
25

skipif mysql # not compatible
query II rowsort label-7183
SELECT + CASE - 74 WHEN + ( + ( 19 ) ) THEN NULL WHEN COALESCE ( + ( - COUNT ( * ) ), + 97 * + CASE + 72 WHEN - 77 * 68 THEN - 20 ELSE NULL END ) THEN NULL WHEN - 40 THEN NULL ELSE 33 - - 77 + COUNT ( * ) * + - 12 END AS col2, + 25 AS col2
----
98
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7184
SELECT - - COUNT( ALL - 35 ) * 71 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7184
SELECT - - COUNT ( ALL - 35 ) * 71 * + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 78 * + 55 * - 9
----
-38610

query II rowsort
SELECT + 38, + ( - 80 ) AS col2
----
38
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7187
SELECT ALL + CAST( 60 AS SIGNED ) * - + 91 + + 37
----
-5423

skipif mysql # not compatible
query I rowsort label-7187
SELECT ALL + CAST ( 60 AS INTEGER ) * - + 91 + + 37
----
-5423

query II rowsort
SELECT + - 75, - 6 AS col1
----
-75
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7189
SELECT ALL + 19 * - + 12 + + COUNT( * ) * 16 + - + 8 col2
----
-220

skipif mysql # not compatible
query I rowsort label-7189
SELECT ALL + 19 * - + 12 + + COUNT ( * ) * 16 + - + 8 col2
----
-220

query I rowsort
SELECT - + 11 * + - ( - 58 ) + + 59 AS col0
----
-579

onlyif mysql # aggregate syntax: 
query I rowsort label-7191
SELECT ALL + COUNT( + + 11 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7191
SELECT ALL + COUNT ( + + 11 ) AS col0
----
1

query I rowsort
SELECT - 32 * - 78 AS col2
----
2496

onlyif mysql # aggregate syntax: 
query I rowsort label-7193
SELECT - + ( - 64 ) * SUM( DISTINCT + 31 ) AS col2
----
1984

skipif mysql # not compatible
query I rowsort label-7193
SELECT - + ( - 64 ) * SUM ( DISTINCT + 31 ) AS col2
----
1984

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7194
SELECT + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7194
SELECT + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query II rowsort
SELECT - 77 - 17, 4 * - - ( - 24 ) AS col2
----
-94
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-7196
SELECT ALL + 46 * + 92 - - 18 + - 27 + - 21 + + 28 DIV + ( - 13 )
----
4200

skipif mysql # not compatible
query I rowsort label-7196
SELECT ALL + 46 * + 92 - - 18 + - 27 + - 21 + + 28 / + ( - 13 )
----
4200

onlyif mysql # aggregate syntax: 
query I rowsort label-7197
SELECT - COUNT( * ) * - 44 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-7197
SELECT - COUNT ( * ) * - 44 AS col2
----
44

query I rowsort
SELECT - 58 * 12 AS col2
----
-696

onlyif mysql # aggregate syntax: 
query I rowsort label-7199
SELECT + 23 - COUNT( * ) + + COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-7199
SELECT + 23 - COUNT ( * ) + + COUNT ( * )
----
23

query I rowsort
SELECT + ( - 3 ) - 23 AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7201
SELECT - MIN( - 38 )
----
38

skipif mysql # not compatible
query I rowsort label-7201
SELECT - MIN ( - 38 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7202
SELECT DISTINCT - 93 + COUNT( * ) * - ( - 31 )
----
-62

skipif mysql # not compatible
query I rowsort label-7202
SELECT DISTINCT - 93 + COUNT ( * ) * - ( - 31 )
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-7203
SELECT ALL + 38 DIV 61
----
0

skipif mysql # not compatible
query I rowsort label-7203
SELECT ALL + 38 / 61
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7204
SELECT + ( - - COUNT( + 28 ) ) * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-7204
SELECT + ( - - COUNT ( + 28 ) ) * - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7205
SELECT DISTINCT COUNT( ALL - - 75 ) + - + 17 * 81 + ( - - MIN( + 85 ) )
----
-1291

skipif mysql # not compatible
query I rowsort label-7205
SELECT DISTINCT COUNT ( ALL - - 75 ) + - + 17 * 81 + ( - - MIN ( + 85 ) )
----
-1291

query I rowsort
SELECT DISTINCT + 20 * + 89
----
1780

onlyif mysql # aggregate syntax: 
query II rowsort label-7207
SELECT ALL 62 + + 29 * + 88, - COUNT( DISTINCT - - ( - 13 ) ) AS col1
----
2614
-1

skipif mysql # not compatible
query II rowsort label-7207
SELECT ALL 62 + + 29 * + 88, - COUNT ( DISTINCT - - ( - 13 ) ) AS col1
----
2614
-1

query I rowsort
SELECT DISTINCT 21 + 79
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-7209
SELECT - - 72 + - - COUNT( * ) col2, - ( 30 ) * + 1 * + + 58
----
73
-1740

skipif mysql # not compatible
query II rowsort label-7209
SELECT - - 72 + - - COUNT ( * ) col2, - ( 30 ) * + 1 * + + 58
----
73
-1740

onlyif mysql # aggregate syntax: 
query I rowsort label-7210
SELECT + CASE - + ( - - 53 ) WHEN 85 * - 5 * - - NULLIF ( - 96, + + 84 * - 51 + + + 52 ) - - 19 THEN NULL WHEN 94 * - 92 THEN NULL WHEN + - 16 * + 83 THEN + 60 + + 32 END * + 73 - - COALESCE ( + + COUNT( * ), - SUM( + + 55 ), + 3 + - + COUNT( * ), + 89 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7210
SELECT + CASE - + ( - - 53 ) WHEN 85 * - 5 * - - NULLIF ( - 96, + + 84 * - 51 + + + 52 ) - - 19 THEN NULL WHEN 94 * - 92 THEN NULL WHEN + - 16 * + 83 THEN + 60 + + 32 END * + 73 - - COALESCE ( + + COUNT ( * ), - SUM ( + + 55 ), + 3 + - + COUNT ( * ), + 89 ) col2
----
NULL

query I rowsort
SELECT DISTINCT 65 + - - AVG ( ALL 30 ) + + NULLIF ( 33, - 19 ) * + - 7 / CASE + 69 WHEN 12 THEN + 17 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7212
SELECT ALL + COUNT( - 83 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7212
SELECT ALL + COUNT ( - 83 ) AS col1
----
1

query I rowsort
SELECT - - 21 AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7214
SELECT + CASE - MAX( ALL - - 73 ) WHEN + 15 THEN - 28 WHEN + 41 * - 87 THEN NULL ELSE NULL END - - + 41 + + ( 50 ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7214
SELECT + CASE - MAX ( ALL - - 73 ) WHEN + 15 THEN - 28 WHEN + 41 * - 87 THEN NULL ELSE NULL END - - + 41 + + ( 50 ) * + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7215
SELECT DISTINCT + COUNT( * ) + CAST( + 1 AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-7215
SELECT DISTINCT + COUNT ( * ) + CAST ( + 1 AS INTEGER )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7216
SELECT + MAX( 89 ) + + 37
----
126

skipif mysql # not compatible
query I rowsort label-7216
SELECT + MAX ( 89 ) + + 37
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-7217
SELECT ALL - 26 + + MIN( - + 90 ) col1
----
-116

skipif mysql # not compatible
query I rowsort label-7217
SELECT ALL - 26 + + MIN ( - + 90 ) col1
----
-116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7218
SELECT ALL SUM( DISTINCT - 17 ) DIV - SUM( DISTINCT - 56 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7218
SELECT ALL SUM ( DISTINCT - 17 ) / - SUM ( DISTINCT - 56 ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7219
SELECT DISTINCT - CAST( 62 AS SIGNED )
----
-62

skipif mysql # not compatible
query I rowsort label-7219
SELECT DISTINCT - CAST ( 62 AS INTEGER )
----
-62

query II rowsort
SELECT + 98 * 0 AS col0, 60 AS col1
----
0
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7221
SELECT 90 * + + 20 * ( COALESCE ( - 56, 18 * + 22 * + + MAX( ALL CAST( 35 AS SIGNED ) ) + 63, - 94 ) ) - + 58 col1
----
-100858

skipif mysql # not compatible
query I rowsort label-7221
SELECT 90 * + + 20 * ( COALESCE ( - 56, 18 * + 22 * + + MAX ( ALL CAST ( 35 AS INTEGER ) ) + 63, - 94 ) ) - + 58 col1
----
-100858

onlyif mysql # aggregate syntax: 
query I rowsort label-7222
SELECT ALL 95 - + NULLIF ( - 31, - 11 ) * - 21 * + - SUM( DISTINCT + ( - + 30 ) ) AS col1
----
-19435

skipif mysql # not compatible
query I rowsort label-7222
SELECT ALL 95 - + NULLIF ( - 31, - 11 ) * - 21 * + - SUM ( DISTINCT + ( - + 30 ) ) AS col1
----
-19435

onlyif mysql # aggregate syntax: 
query I rowsort label-7223
SELECT COUNT( * ) * - 97 + 41 + - ( - COUNT( * ) ) + + 78
----
23

skipif mysql # not compatible
query I rowsort label-7223
SELECT COUNT ( * ) * - 97 + 41 + - ( - COUNT ( * ) ) + + 78
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7224
SELECT - 48 * - - 2 * COUNT( * ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-7224
SELECT - 48 * - - 2 * COUNT ( * ) AS col1
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7225
SELECT COALESCE ( - 64, 5, 86 + + + CASE - + 67 WHEN + - NULLIF ( + 98, + 27 * + CAST( NULL AS SIGNED ) + - COALESCE ( + 17, COUNT( * ) + + 29 - + 74, - 20 + + 99 + COUNT( * ), + + 57 + 67 * 40 ) ) THEN COUNT( * ) WHEN + 41 THEN NULL ELSE NULL END ) * - 73 + + - 52 * + - 71 * + 54 + + 68
----
204108

skipif mysql # not compatible
query I rowsort label-7225
SELECT COALESCE ( - 64, 5, 86 + + + CASE - + 67 WHEN + - NULLIF ( + 98, + 27 * + CAST ( NULL AS INTEGER ) + - COALESCE ( + 17, COUNT ( * ) + + 29 - + 74, - 20 + + 99 + COUNT ( * ), + + 57 + 67 * 40 ) ) THEN COUNT ( * ) WHEN + 41 THEN NULL ELSE NULL END ) * - 73 + + - 52 * + - 71 * + 54 + + 68
----
204108

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT - 45 * + 48 * 51 * + COUNT( * ) + 66 + - 61 AS col2
----
-110155

skipif mysql # not compatible
query I rowsort label-7226
SELECT - 45 * + 48 * 51 * + COUNT ( * ) + 66 + - 61 AS col2
----
-110155

query I rowsort
SELECT ALL ( - 72 ) * + 18
----
-1296

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7228
SELECT 43 * + CASE - 80 WHEN COUNT( * ) + COALESCE ( 65, + 49 ) THEN NULL ELSE CASE + 9 WHEN 41 THEN ( - MAX( DISTINCT - + 65 ) ) WHEN + - MAX( DISTINCT + 46 ) THEN NULL END + - 11 + CAST( + + 10 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7228
SELECT 43 * + CASE - 80 WHEN COUNT ( * ) + COALESCE ( 65, + 49 ) THEN NULL ELSE CASE + 9 WHEN 41 THEN ( - MAX ( DISTINCT - + 65 ) ) WHEN + - MAX ( DISTINCT + 46 ) THEN NULL END + - 11 + CAST ( + + 10 AS INTEGER ) END
----
NULL

query II rowsort
SELECT 11 AS col0, + ( + 50 ) + 5 AS col2
----
11
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7230
SELECT 56 * COUNT( * ) DIV - + 4 col0
----
-14

skipif mysql # not compatible
query I rowsort label-7230
SELECT 56 * COUNT ( * ) / - + 4 col0
----
-14

query II rowsort
SELECT 92 AS col1, - 76
----
92
-76

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7232
SELECT + 0 * + + 50 * + + CAST( NULL AS DECIMAL ) * + + 7 + 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7232
SELECT + 0 * + + 50 * + + CAST ( NULL AS REAL ) * + + 7 + 50 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7233
SELECT CAST( NULL AS SIGNED ) * 61 * - 40 * + 31 + - - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-7233
SELECT CAST ( NULL AS INTEGER ) * 61 * - 40 * + 31 + - - 62
----
NULL

query II rowsort
SELECT ALL - 97 + - 6 * - 25 col1, 47 * + 12 + - + NULLIF ( 52, + 30 ) AS col2
----
53
512

query I rowsort
SELECT DISTINCT 34 + + - 42
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7236
SELECT 68 + - - CASE - 84 WHEN 18 THEN 44 * 74 / - + ( 95 ) * CASE CAST( NULL AS SIGNED ) WHEN 48 * + ( 65 ) / 27 + + CAST( NULL AS SIGNED ) + - ( + 41 ) + + CAST( + 92 AS SIGNED ) THEN - - SUM( 12 ) * - + 78 WHEN - 86 THEN - - 52 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-7236
SELECT 68 + - - CASE - 84 WHEN 18 THEN 44 * 74 / - + ( 95 ) * CASE CAST ( NULL AS INTEGER ) WHEN 48 * + ( 65 ) / 27 + + CAST ( NULL AS INTEGER ) + - ( + 41 ) + + CAST ( + 92 AS INTEGER ) THEN - - SUM ( 12 ) * - + 78 WHEN - 86 THEN - - 52 END END
----
NULL

query I rowsort
SELECT 71 * - - 72 AS col0
----
5112

query I rowsort
SELECT ALL - 6 + + 52 * ( + 11 ) AS col1
----
566

query I rowsort
SELECT DISTINCT + 52 * 41 col1
----
2132

query I rowsort
SELECT 61 - + - 33
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7241
SELECT 3 + 96 - - + 76 * + MIN( ALL 15 )
----
1239

skipif mysql # not compatible
query I rowsort label-7241
SELECT 3 + 96 - - + 76 * + MIN ( ALL 15 )
----
1239

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7242
SELECT DISTINCT - 62 + - 27 - - 63 + + + CASE + 63 WHEN + MIN( + + 71 ) THEN 61 * 31 WHEN + 39 THEN + 66 END + - - COALESCE ( MAX( + + 81 ), - COUNT( * ) * + - CAST( NULL AS SIGNED ) + + - 83 ) * - 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7242
SELECT DISTINCT - 62 + - 27 - - 63 + + + CASE + 63 WHEN + MIN ( + + 71 ) THEN 61 * 31 WHEN + 39 THEN + 66 END + - - COALESCE ( MAX ( + + 81 ), - COUNT ( * ) * + - CAST ( NULL AS INTEGER ) + + - 83 ) * - 22 AS col0
----
NULL

query II rowsort
SELECT ALL 28 AS col2, 6 * - 67 * + 43
----
28
-17286

query I rowsort
SELECT + 46 + 40
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7245
SELECT ALL - MAX( ALL + 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-7245
SELECT ALL - MAX ( ALL + 91 )
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7246
SELECT ( - - 61 ) + - 61 * - 1 * 18 + 51 + - - CAST( NULL AS SIGNED ) / + CAST( NULL AS SIGNED ) + + - 49 * + + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-7246
SELECT ( - - 61 ) + - 61 * - 1 * 18 + 51 + - - CAST ( NULL AS INTEGER ) / + CAST ( NULL AS INTEGER ) + + - 49 * + + 75
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7247
SELECT DISTINCT - COALESCE ( + 25, 69 DIV - + 81 - - 9 ) - - NULLIF ( + 64, - MIN( + 19 ) + - - 46 ) * + - COUNT( * ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-7247
SELECT DISTINCT - COALESCE ( + 25, 69 / - + 81 - - 9 ) - - NULLIF ( + 64, - MIN ( + 19 ) + - - 46 ) * + - COUNT ( * ) AS col0
----
-89

query I rowsort
SELECT ALL - 5 * 76
----
-380

query I rowsort
SELECT - 96 + 69
----
-27

query II rowsort
SELECT - 62 AS col0, 69 * - 99 AS col1
----
-62
-6831

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7251
SELECT 35 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7251
SELECT 35 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7252
SELECT ALL ( CAST( NULL AS SIGNED ) ) - + - 70 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7252
SELECT ALL ( CAST ( NULL AS INTEGER ) ) - + - 70 col2
----
NULL

query I rowsort
SELECT 38 * + 13 AS col0
----
494

onlyif mysql # aggregate syntax: 
query I rowsort label-7254
SELECT 45 * MAX( DISTINCT - + 41 ) + 48 AS col0
----
-1797

skipif mysql # not compatible
query I rowsort label-7254
SELECT 45 * MAX ( DISTINCT - + 41 ) + 48 AS col0
----
-1797

onlyif mysql # DIV for integer division: 
query I rowsort label-7255
SELECT 69 DIV - 86
----
0

skipif mysql # not compatible
query I rowsort label-7255
SELECT 69 / - 86
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7256
SELECT COUNT( * ) col2, CAST( NULL AS SIGNED ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7256
SELECT COUNT ( * ) col2, CAST ( NULL AS INTEGER ) AS col1
----
1
NULL

query I rowsort
SELECT ALL - + ( - 29 ) AS col0
----
29

query I rowsort
SELECT ALL + 73 * - 6 - 30 + - 18 col0
----
-486

query I rowsort
SELECT DISTINCT 24 * + - 38
----
-912

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7260
SELECT 26 - ( + CASE + COUNT( * ) WHEN + COUNT( DISTINCT + + 34 ) THEN - + 73 + MAX( - 65 ) ELSE 70 + + 13 + + 78 * + - COUNT( * ) * + 39 DIV + + 70 - 46 DIV + - COUNT( * ) END ) col0
----
164

skipif mysql # not compatible
query I rowsort label-7260
SELECT 26 - ( + CASE + COUNT ( * ) WHEN + COUNT ( DISTINCT + + 34 ) THEN - + 73 + MAX ( - 65 ) ELSE 70 + + 13 + + 78 * + - COUNT ( * ) * + 39 / + + 70 - 46 / + - COUNT ( * ) END ) col0
----
164

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7261
SELECT 10 * - 4 * 25 + - - COALESCE ( + + 56, - + 10 * - 10 + SUM( DISTINCT 41 ) + - 23 + + 76 - 79 DIV - + 70 + - + ( - 41 ) - ( + COUNT( + 84 ) ) * 37 DIV 54 + - ( + 82 ) ) col0
----
-944

skipif mysql # not compatible
query I rowsort label-7261
SELECT 10 * - 4 * 25 + - - COALESCE ( + + 56, - + 10 * - 10 + SUM ( DISTINCT 41 ) + - 23 + + 76 - 79 / - + 70 + - + ( - 41 ) - ( + COUNT ( + 84 ) ) * 37 / 54 + - ( + 82 ) ) col0
----
-944

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7262
SELECT ALL 29 * 69 col0, COUNT( * ) DIV + + 94 AS col2
----
2001
0

skipif mysql # not compatible
query II rowsort label-7262
SELECT ALL 29 * 69 col0, COUNT ( * ) / + + 94 AS col2
----
2001
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7263
SELECT DISTINCT 23 + - 16 * COUNT( * ) + - ( - 45 ) col0
----
52

skipif mysql # not compatible
query I rowsort label-7263
SELECT DISTINCT 23 + - 16 * COUNT ( * ) + - ( - 45 ) col0
----
52

query I rowsort
SELECT ALL 81 + ( + 39 ) col2
----
120

query I rowsort
SELECT 61 - - ( + 95 ) * - 93 AS col2
----
-8774

onlyif mysql # aggregate syntax: 
query I rowsort label-7266
SELECT ALL 93 * 4 * + - COUNT( * ) AS col2
----
-372

skipif mysql # not compatible
query I rowsort label-7266
SELECT ALL 93 * 4 * + - COUNT ( * ) AS col2
----
-372

query I rowsort
SELECT DISTINCT 52 + - - 80 - + 95 * - - 86 + + + 18
----
-8020

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7268
SELECT ( - + 87 ) - + MAX( DISTINCT + 61 ) * - + ( - AVG ( - - ( + 97 ) ) ) * - + 48 * ( + AVG ( CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7268
SELECT ( - + 87 ) - + MAX ( DISTINCT + 61 ) * - + ( - AVG ( - - ( + 97 ) ) ) * - + 48 * ( + AVG ( CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

query I rowsort
SELECT ALL 46 + - - ( + 84 )
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-7270
SELECT ALL - MAX( - 6 ) + + - 36
----
-30

skipif mysql # not compatible
query I rowsort label-7270
SELECT ALL - MAX ( - 6 ) + + - 36
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7271
SELECT ( CAST( NULL AS SIGNED ) ) + + + AVG ( DISTINCT + - 87 ) * - + COUNT( * ) * - COUNT( DISTINCT 38 ) + - 98 * + 39 / + 75 * + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-7271
SELECT ( CAST ( NULL AS INTEGER ) ) + + + AVG ( DISTINCT + - 87 ) * - + COUNT ( * ) * - COUNT ( DISTINCT 38 ) + - 98 * + 39 / + 75 * + 95
----
NULL

query I rowsort
SELECT 6 - + 5 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7273
SELECT ALL - 75 DIV - 35 col2
----
2

skipif mysql # not compatible
query I rowsort label-7273
SELECT ALL - 75 / - 35 col2
----
2

query I rowsort
SELECT ALL - 66 + - 61
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-7275
SELECT - + MAX( DISTINCT ( + 66 ) ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-7275
SELECT - + MAX ( DISTINCT ( + 66 ) ) AS col2
----
-66

query I rowsort
SELECT DISTINCT 0 - + 9 + - 49
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7277
SELECT ALL - 0 * + + ( 93 ) * COUNT( * ) + + 19 * - COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-7277
SELECT ALL - 0 * + + ( 93 ) * COUNT ( * ) + + 19 * - COUNT ( * )
----
-19

query II rowsort
SELECT - + 31 + + 38 AS col2, ( + 82 )
----
7
82

query I rowsort
SELECT ALL + 51 - + 2
----
49

query I rowsort
SELECT - 71 * 73 + - 98 AS col0
----
-5281

onlyif mysql # DIV for integer division: 
query I rowsort label-7281
SELECT ALL + - 71 DIV + - 30 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-7281
SELECT ALL + - 71 / + - 30 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7282
SELECT SUM( DISTINCT - + 11 ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-7282
SELECT SUM ( DISTINCT - + 11 ) AS col2
----
-11

query I rowsort
SELECT DISTINCT - ( + COALESCE ( - 57, - 30 ) )
----
57

query I rowsort
SELECT - 98 + - 74
----
-172

query I rowsort
SELECT - - 4 * + 73
----
292

onlyif mysql # aggregate syntax: 
query I rowsort label-7286
SELECT + - 99 * + 6 + + COUNT( * ) AS col2
----
-593

skipif mysql # not compatible
query I rowsort label-7286
SELECT + - 99 * + 6 + + COUNT ( * ) AS col2
----
-593

onlyif mysql # aggregate syntax: 
query I rowsort label-7287
SELECT SUM( DISTINCT - 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-7287
SELECT SUM ( DISTINCT - 87 )
----
-87

query I rowsort
SELECT ALL - ( - + 34 ) AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7289
SELECT - - 13 + - - MAX( + 42 ) * 56 * + - 48 * + 16
----
-1806323

skipif mysql # not compatible
query I rowsort label-7289
SELECT - - 13 + - - MAX ( + 42 ) * 56 * + - 48 * + 16
----
-1806323

onlyif mysql # aggregate syntax: 
query I rowsort label-7290
SELECT ALL - 44 * + ( 46 ) + + + 89 + - - ( - MIN( ALL + 94 ) ) AS col0
----
-2029

skipif mysql # not compatible
query I rowsort label-7290
SELECT ALL - 44 * + ( 46 ) + + + 89 + - - ( - MIN ( ALL + 94 ) ) AS col0
----
-2029

onlyif mysql # aggregate syntax: 
query I rowsort label-7291
SELECT ALL - - 99 * - - COUNT( * ) * - ( + 54 ) * - 52 + + 93 + + 47 * + COUNT( * ) col0
----
278132

skipif mysql # not compatible
query I rowsort label-7291
SELECT ALL - - 99 * - - COUNT ( * ) * - ( + 54 ) * - 52 + + 93 + + 47 * + COUNT ( * ) col0
----
278132

onlyif mysql # aggregate syntax: 
query II rowsort label-7292
SELECT DISTINCT + + SUM( - 6 ), 52 AS col1
----
-6
52

skipif mysql # not compatible
query II rowsort label-7292
SELECT DISTINCT + + SUM ( - 6 ), 52 AS col1
----
-6
52

onlyif mysql # DIV for integer division: 
query I rowsort label-7293
SELECT - 36 DIV 19 + 40
----
39

skipif mysql # not compatible
query I rowsort label-7293
SELECT - 36 / 19 + 40
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7294
SELECT + 49 * - 56 * - 37 - + + 10 + - - COUNT( * ) * + + COUNT( * ) + + 64 AS col2
----
101583

skipif mysql # not compatible
query I rowsort label-7294
SELECT + 49 * - 56 * - 37 - + + 10 + - - COUNT ( * ) * + + COUNT ( * ) + + 64 AS col2
----
101583

query II rowsort
SELECT - 18 + + CASE - 61 WHEN - + 9 + - 86 THEN - 28 ELSE + 11 + - + 42 * + 42 END * + + 46, ( + - 26 ) AS col2
----
-80656
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7296
SELECT 42 DIV + - MAX( 98 ) + + + 48 col1
----
48

skipif mysql # not compatible
query I rowsort label-7296
SELECT 42 / + - MAX ( 98 ) + + + 48 col1
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7297
SELECT NULLIF ( + CAST( - 50 AS SIGNED ), + 7 + + 64 ), 82 AS col0
----
-50
82

skipif mysql # not compatible
query II rowsort label-7297
SELECT NULLIF ( + CAST ( - 50 AS INTEGER ), + 7 + + 64 ), 82 AS col0
----
-50
82

query I rowsort
SELECT NULLIF ( 26, + 14 + - + 10 )
----
26

query I rowsort
SELECT + 0 + - 76 * - 33 AS col1
----
2508

onlyif mysql # DIV for integer division: 
query II rowsort label-7300
SELECT ALL 73 * + 27 + - 88 col0, 41 DIV ( - 52 )
----
1883
0

skipif mysql # not compatible
query II rowsort label-7300
SELECT ALL 73 * + 27 + - 88 col0, 41 / ( - 52 )
----
1883
0

query I rowsort
SELECT - 11 + - - 31 + - ( - 5 ) AS col1
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7302
SELECT + COALESCE ( - 49, + - 80 + 48 + COUNT( * ), + - CAST( NULL AS SIGNED ) + 54 ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-7302
SELECT + COALESCE ( - 49, + - 80 + 48 + COUNT ( * ), + - CAST ( NULL AS INTEGER ) + 54 ) AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7303
SELECT + CASE - 32 WHEN - ( + 44 ) + - 70 / COUNT( * ) THEN + + 11 + + 53 END / + COUNT( * ) + + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-7303
SELECT + CASE - 32 WHEN - ( + 44 ) + - 70 / COUNT ( * ) THEN + + 11 + + 53 END / + COUNT ( * ) + + 63
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7304
SELECT ALL ( - ( - + 57 ) ) * + - 12 + - + 33, 92 + + - SUM( DISTINCT - 47 ) AS col0
----
-717
139

skipif mysql # not compatible
query II rowsort label-7304
SELECT ALL ( - ( - + 57 ) ) * + - 12 + - + 33, 92 + + - SUM ( DISTINCT - 47 ) AS col0
----
-717
139

query I rowsort
SELECT + ( 32 ) * - 28 col0
----
-896

query I rowsort
SELECT + 34 + - - 6
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7307
SELECT SUM( + NULLIF ( + 11, - 58 ) ) * + + CAST( NULL AS SIGNED ) + - + 37 - 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7307
SELECT SUM ( + NULLIF ( + 11, - 58 ) ) * + + CAST ( NULL AS INTEGER ) + - + 37 - 36 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7308
SELECT COUNT( ALL - - 55 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7308
SELECT COUNT ( ALL - - 55 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7309
SELECT + ( - SUM( DISTINCT 37 ) )
----
-37

skipif mysql # not compatible
query I rowsort label-7309
SELECT + ( - SUM ( DISTINCT 37 ) )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7310
SELECT + 86 + - - MIN( DISTINCT + 31 ) AS col2
----
117

skipif mysql # not compatible
query I rowsort label-7310
SELECT + 86 + - - MIN ( DISTINCT + 31 ) AS col2
----
117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7311
SELECT ALL + ( - + 3 ) * - CAST( NULL AS SIGNED ) - + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-7311
SELECT ALL + ( - + 3 ) * - CAST ( NULL AS INTEGER ) - + 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7312
SELECT + MIN( ALL 40 ) * - 3
----
-120

skipif mysql # not compatible
query I rowsort label-7312
SELECT + MIN ( ALL 40 ) * - 3
----
-120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7313
SELECT ALL + SUM( + - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7313
SELECT ALL + SUM ( + - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7314
SELECT DISTINCT - 47 AS col2, - CAST( 42 AS SIGNED ) * - - 51 + - - 1 + - 95 + COUNT( * ) AS col1
----
-47
-2235

skipif mysql # not compatible
query II rowsort label-7314
SELECT DISTINCT - 47 AS col2, - CAST ( 42 AS INTEGER ) * - - 51 + - - 1 + - 95 + COUNT ( * ) AS col1
----
-47
-2235

query I rowsort
SELECT + 35 * 84 + + 35
----
2975

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7316
SELECT DISTINCT + CAST( NULL AS SIGNED ), 34 AS col0
----
NULL
34

skipif mysql # not compatible
query II rowsort label-7316
SELECT DISTINCT + CAST ( NULL AS INTEGER ), 34 AS col0
----
NULL
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7317
SELECT + COALESCE ( - 4, - + 73, + 47 + CAST( 41 AS SIGNED ) ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-7317
SELECT + COALESCE ( - 4, - + 73, + 47 + CAST ( 41 AS INTEGER ) ) AS col1
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7318
SELECT + + 83 * ( - CAST( + - ( - - 38 ) AS SIGNED ) ) * + 22 - + SUM( DISTINCT - - 95 ) + 28 * - - 45 * - - 38 - - - COUNT( * ) AS col1
----
117172

skipif mysql # not compatible
query I rowsort label-7318
SELECT + + 83 * ( - CAST ( + - ( - - 38 ) AS INTEGER ) ) * + 22 - + SUM ( DISTINCT - - 95 ) + 28 * - - 45 * - - 38 - - - COUNT ( * ) AS col1
----
117172

onlyif mysql # aggregate syntax: 
query II rowsort label-7319
SELECT - COUNT( * ) AS col1, + ( - + 9 )
----
-1
-9

skipif mysql # not compatible
query II rowsort label-7319
SELECT - COUNT ( * ) AS col1, + ( - + 9 )
----
-1
-9

query I rowsort
SELECT - - 3 + - 34 AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7321
SELECT - + 28 + - COALESCE ( + 97, + - 84 * - 71 * - 7 - + 40 + - 13 + - COUNT( * ) * + 66 ) AS col0
----
-125

skipif mysql # not compatible
query I rowsort label-7321
SELECT - + 28 + - COALESCE ( + 97, + - 84 * - 71 * - 7 - + 40 + - 13 + - COUNT ( * ) * + 66 ) AS col0
----
-125

onlyif mysql # aggregate syntax: 
query II rowsort label-7322
SELECT DISTINCT + COUNT( * ) * 87 * - 3, + ( + MIN( - + 51 ) ) AS col1
----
-261
-51

skipif mysql # not compatible
query II rowsort label-7322
SELECT DISTINCT + COUNT ( * ) * 87 * - 3, + ( + MIN ( - + 51 ) ) AS col1
----
-261
-51

query I rowsort
SELECT DISTINCT + 95 * + 67 AS col0
----
6365

query I rowsort
SELECT - + 76 + NULLIF ( + 63, + - NULLIF ( - 20, + 97 ) * + - 84 ) AS col2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7325
SELECT ALL COALESCE ( 37, + 89 * - - COUNT( * ) ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-7325
SELECT ALL COALESCE ( 37, + 89 * - - COUNT ( * ) ) AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7326
SELECT DISTINCT - ( - + 49 ) + - + SUM( 3 )
----
46

skipif mysql # not compatible
query I rowsort label-7326
SELECT DISTINCT - ( - + 49 ) + - + SUM ( 3 )
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7327
SELECT ALL 1 DIV 40 + - + 43 + + 49 * COUNT( DISTINCT - CASE - 11 WHEN - - 66 THEN NULL ELSE - 3 DIV + 75 + - + 55 END ), - 4 + 70 col2
----
6
66

skipif mysql # not compatible
query II rowsort label-7327
SELECT ALL 1 / 40 + - + 43 + + 49 * COUNT ( DISTINCT - CASE - 11 WHEN - - 66 THEN NULL ELSE - 3 / + 75 + - + 55 END ), - 4 + 70 col2
----
6
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7328
SELECT CAST( NULL AS SIGNED ) AS col1, + 79
----
NULL
79

skipif mysql # not compatible
query II rowsort label-7328
SELECT CAST ( NULL AS INTEGER ) AS col1, + 79
----
NULL
79

onlyif mysql # aggregate syntax: 
query II rowsort label-7329
SELECT + COUNT( * ) AS col0, 62
----
1
62

skipif mysql # not compatible
query II rowsort label-7329
SELECT + COUNT ( * ) AS col0, 62
----
1
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7330
SELECT DISTINCT 13 / + COUNT( * ) + 89 - + + ( 76 ) + + - CAST( NULL AS SIGNED ) * - 96 * - 69 + - 98 * + 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7330
SELECT DISTINCT 13 / + COUNT ( * ) + 89 - + + ( 76 ) + + - CAST ( NULL AS INTEGER ) * - 96 * - 69 + - 98 * + 2 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7331
SELECT - COUNT( * ) + + 71 + - + 64 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-7331
SELECT - COUNT ( * ) + + 71 + - + 64 AS col1
----
6

query I rowsort
SELECT + ( 70 ) * - 95
----
-6650

query II rowsort
SELECT ALL + 35 AS col2, - 30 AS col0
----
35
-30

query I rowsort
SELECT - ( - 64 ) * - 13
----
-832

query I rowsort
SELECT + 4 * - + 61
----
-244

onlyif mysql # aggregate syntax: 
query II rowsort label-7336
SELECT ALL + 25 AS col0, + CASE 13 WHEN - 64 THEN - COUNT( * ) WHEN 2 THEN NULL ELSE NULL END + - - 3 col1
----
25
NULL

skipif mysql # not compatible
query II rowsort label-7336
SELECT ALL + 25 AS col0, + CASE 13 WHEN - 64 THEN - COUNT ( * ) WHEN 2 THEN NULL ELSE NULL END + - - 3 col1
----
25
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7337
SELECT - MIN( 8 ) - - 44
----
36

skipif mysql # not compatible
query I rowsort label-7337
SELECT - MIN ( 8 ) - - 44
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7338
SELECT 15 * ( 76 ) * + 92 + - 61 + + + 76 - CAST( - + 81 AS SIGNED ) + + ( 2 ) * 5 AS col0, 97 + COUNT( * ) + - COUNT( * )
----
104986
97

skipif mysql # not compatible
query II rowsort label-7338
SELECT 15 * ( 76 ) * + 92 + - 61 + + + 76 - CAST ( - + 81 AS INTEGER ) + + ( 2 ) * 5 AS col0, 97 + COUNT ( * ) + - COUNT ( * )
----
104986
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7339
SELECT DISTINCT + + 62 DIV COUNT( * ) + 49
----
111

skipif mysql # not compatible
query I rowsort label-7339
SELECT DISTINCT + + 62 / COUNT ( * ) + 49
----
111

query I rowsort
SELECT ALL - + 9 AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7341
SELECT ALL - 18 * COUNT( * ) * 27
----
-486

skipif mysql # not compatible
query I rowsort label-7341
SELECT ALL - 18 * COUNT ( * ) * 27
----
-486

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7342
SELECT COUNT( * ) + CAST( + 86 AS SIGNED ) * 11 * - 47 + - 19 AS col0
----
-44480

skipif mysql # not compatible
query I rowsort label-7342
SELECT COUNT ( * ) + CAST ( + 86 AS INTEGER ) * 11 * - 47 + - 19 AS col0
----
-44480

onlyif mysql # aggregate syntax: 
query I rowsort label-7343
SELECT + MIN( - - 15 ) - + 25
----
-10

skipif mysql # not compatible
query I rowsort label-7343
SELECT + MIN ( - - 15 ) - + 25
----
-10

query I rowsort
SELECT 44 * 18 AS col0
----
792

onlyif mysql # aggregate syntax: 
query I rowsort label-7345
SELECT ALL 45 * COUNT( * ) * - COUNT( * ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-7345
SELECT ALL 45 * COUNT ( * ) * - COUNT ( * ) AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7346
SELECT DISTINCT - COUNT( * ) * - 20
----
20

skipif mysql # not compatible
query I rowsort label-7346
SELECT DISTINCT - COUNT ( * ) * - 20
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7347
SELECT + 42 * - MAX( 63 )
----
-2646

skipif mysql # not compatible
query I rowsort label-7347
SELECT + 42 * - MAX ( 63 )
----
-2646

query I rowsort
SELECT ALL - 66 + + + 12
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7349
SELECT ALL - - CAST( NULL AS SIGNED ) + - - COUNT( * ) - + - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-7349
SELECT ALL - - CAST ( NULL AS INTEGER ) + - - COUNT ( * ) - + - 51
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7350
SELECT DISTINCT + 87, 23 * - 15 * COUNT( * ) AS col2
----
87
-345

skipif mysql # not compatible
query II rowsort label-7350
SELECT DISTINCT + 87, 23 * - 15 * COUNT ( * ) AS col2
----
87
-345

query I rowsort
SELECT 90 * - 72 AS col2
----
-6480

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7352
SELECT ALL CASE + + 16 WHEN 46 THEN - 54 * + CASE SUM( ALL - - 8 ) WHEN - 68 + - + 82 THEN - + MIN( - 24 ) + - MAX( + + 18 ) WHEN - ( + 21 ) THEN 56 + - 24 + + + 12 WHEN + 52 / + - 14 THEN + + 50 WHEN 11 THEN - CASE - + 85 WHEN - 0 THEN + ( + 66 ) END ELSE - SUM( - 8 ) * + ( - 58 ) END * + ( + 3 ) + 68 + - 36 + - + 44 * - CAST( SUM( 64 ) AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7352
SELECT ALL CASE + + 16 WHEN 46 THEN - 54 * + CASE SUM ( ALL - - 8 ) WHEN - 68 + - + 82 THEN - + MIN ( - 24 ) + - MAX ( + + 18 ) WHEN - ( + 21 ) THEN 56 + - 24 + + + 12 WHEN + 52 / + - 14 THEN + + 50 WHEN 11 THEN - CASE - + 85 WHEN - 0 THEN + ( + 66 ) END ELSE - SUM ( - 8 ) * + ( - 58 ) END * + ( + 3 ) + 68 + - 36 + - + 44 * - CAST ( SUM ( 64 ) AS REAL ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7353
SELECT - 99, - COUNT( * ) AS col1
----
-99
-1

skipif mysql # not compatible
query II rowsort label-7353
SELECT - 99, - COUNT ( * ) AS col1
----
-99
-1

query II rowsort
SELECT ALL 61 + - + 42 col1, - 70
----
19
-70

query II rowsort
SELECT - + 38, 68 + - 97 * - 87 AS col2
----
-38
8507

onlyif mysql # DIV for integer division: 
query II rowsort label-7356
SELECT 82 DIV 31 AS col0, + 44 + + + 78 AS col2
----
2
122

skipif mysql # not compatible
query II rowsort label-7356
SELECT 82 / 31 AS col0, + 44 + + + 78 AS col2
----
2
122

onlyif mysql # aggregate syntax: 
query I rowsort label-7357
SELECT ALL 6 + - COUNT( * ) + + 74 * - + 25
----
-1845

skipif mysql # not compatible
query I rowsort label-7357
SELECT ALL 6 + - COUNT ( * ) + + 74 * - + 25
----
-1845

query I rowsort
SELECT DISTINCT - 6 * - 5 AS col0
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-7359
SELECT + 59 * 16 + + 53 DIV 38
----
945

skipif mysql # not compatible
query I rowsort label-7359
SELECT + 59 * 16 + + 53 / 38
----
945

onlyif mysql # aggregate syntax: 
query I rowsort label-7360
SELECT DISTINCT 64 * + 94 * COUNT( * ) * 59 col1
----
354944

skipif mysql # not compatible
query I rowsort label-7360
SELECT DISTINCT 64 * + 94 * COUNT ( * ) * 59 col1
----
354944

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7361
SELECT 16 DIV + - 45 + + 80 + 67 * - 4 col0, COUNT( * ) AS col2
----
-188
1

skipif mysql # not compatible
query II rowsort label-7361
SELECT 16 / + - 45 + + 80 + 67 * - 4 col0, COUNT ( * ) AS col2
----
-188
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7362
SELECT AVG ( + CAST( NULL AS DECIMAL ) ) * + - 50 + + SUM( + 36 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7362
SELECT AVG ( + CAST ( NULL AS REAL ) ) * + - 50 + + SUM ( + 36 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7363
SELECT - 8 DIV - 98 + + COUNT( - 85 )
----
1

skipif mysql # not compatible
query I rowsort label-7363
SELECT - 8 / - 98 + + COUNT ( - 85 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7364
SELECT ALL + 80 - + - ( - + NULLIF ( - 74, + - SUM( ALL CAST( NULL AS SIGNED ) ) + + AVG ( ALL - + 88 ) * + + 98 * - COUNT( DISTINCT - 75 ) ) ) AS col0
----
154

skipif mysql # not compatible
query I rowsort label-7364
SELECT ALL + 80 - + - ( - + NULLIF ( - 74, + - SUM ( ALL CAST ( NULL AS INTEGER ) ) + + AVG ( ALL - + 88 ) * + + 98 * - COUNT ( DISTINCT - 75 ) ) ) AS col0
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-7365
SELECT ( - COUNT( * ) ) * + 17 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-7365
SELECT ( - COUNT ( * ) ) * + 17 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7366
SELECT 16 + - + MIN( 74 ) + - + MAX( - - 96 ) * - - 5
----
-538

skipif mysql # not compatible
query I rowsort label-7366
SELECT 16 + - + MIN ( 74 ) + - + MAX ( - - 96 ) * - - 5
----
-538

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7367
SELECT 86 + + - 18 + + - ( + - 20 ) DIV COUNT( * ) * + 30 * - 13 - + COUNT( * ) * + - 15 col1
----
-7717

skipif mysql # not compatible
query I rowsort label-7367
SELECT 86 + + - 18 + + - ( + - 20 ) / COUNT ( * ) * + 30 * - 13 - + COUNT ( * ) * + - 15 col1
----
-7717

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7368
SELECT + 45 * - 82 * + + COALESCE ( 24, + - COUNT( ALL 74 ) * + ( - 78 ) * 40, - 26 DIV + + 17 DIV + 95 + - 97, + 50 ) + + - 21 * + 24
----
-89064

skipif mysql # not compatible
query I rowsort label-7368
SELECT + 45 * - 82 * + + COALESCE ( 24, + - COUNT ( ALL 74 ) * + ( - 78 ) * 40, - 26 / + + 17 / + 95 + - 97, + 50 ) + + - 21 * + 24
----
-89064

query I rowsort
SELECT ALL + ( + 98 ) * + 27 AS col0
----
2646

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7370
SELECT DISTINCT - COALESCE ( - 34, + + CAST( - 60 AS SIGNED ), 43 ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-7370
SELECT DISTINCT - COALESCE ( - 34, + + CAST ( - 60 AS INTEGER ), 43 ) AS col2
----
34

query I rowsort
SELECT DISTINCT - NULLIF ( - 89, + + 52 )
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-7372
SELECT DISTINCT - COUNT( ALL - - 26 ) col1, - 27 * + 81 AS col2
----
-1
-2187

skipif mysql # not compatible
query II rowsort label-7372
SELECT DISTINCT - COUNT ( ALL - - 26 ) col1, - 27 * + 81 AS col2
----
-1
-2187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7373
SELECT ALL CAST( NULL AS SIGNED ) * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7373
SELECT ALL CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7374
SELECT COUNT( * ) * 2 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7374
SELECT COUNT ( * ) * 2 AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7375
SELECT ALL + CAST( NULL AS SIGNED ) * + CAST( + COALESCE ( - 58, - + 8 + 84 * + 98 ) AS SIGNED ) AS col0, ( - - COUNT( * ) ) * COUNT( * ) + + 51 - + - 91 + - + SUM( DISTINCT NULLIF ( - CASE 99 WHEN - + 98 * 74 / 13 + + - CASE + + ( + CAST( - + 62 AS SIGNED ) ) WHEN - - 57 THEN 72 END THEN - 91 WHEN 37 THEN NULL ELSE NULL END, 32 ) )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7375
SELECT ALL + CAST ( NULL AS INTEGER ) * + CAST ( + COALESCE ( - 58, - + 8 + 84 * + 98 ) AS INTEGER ) AS col0, ( - - COUNT ( * ) ) * COUNT ( * ) + + 51 - + - 91 + - + SUM ( DISTINCT NULLIF ( - CASE 99 WHEN - + 98 * 74 / 13 + + - CASE + + ( + CAST ( - + 62 AS INTEGER ) ) WHEN - - 57 THEN 72 END THEN - 91 WHEN 37 THEN NULL ELSE NULL END, 32 ) )
----
NULL
NULL

query I rowsort
SELECT 20 + + 5 AS col1
----
25

query I rowsort
SELECT + CASE - 29 WHEN - + 38 * 32 THEN NULL ELSE 57 END AS col2
----
57

query I rowsort
SELECT 79 + + - 96
----
-17

query I rowsort
SELECT DISTINCT + - 10 * 50
----
-500

onlyif mysql # aggregate syntax: 
query I rowsort label-7380
SELECT + 81 * - ( - - COUNT( * ) ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-7380
SELECT + 81 * - ( - - COUNT ( * ) ) AS col1
----
-81

query II rowsort
SELECT 56 * + 68, - 36 + + 64 AS col1
----
3808
28

query I rowsort
SELECT - CASE 0 WHEN NULLIF ( NULLIF ( + + 21, - 78 ), - + 29 ) THEN NULL WHEN - + 14 THEN - 85 END + 67
----
NULL

query I rowsort
SELECT 89 + + 34 AS col0
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-7384
SELECT DISTINCT + 70 + + CASE - 8 WHEN + 44 + 99 + + 70 DIV - NULLIF ( 91, + 48 ) THEN NULL ELSE - 67 DIV 7 * - + 32 END AS col0
----
358

skipif mysql # not compatible
query I rowsort label-7384
SELECT DISTINCT + 70 + + CASE - 8 WHEN + 44 + 99 + + 70 / - NULLIF ( 91, + 48 ) THEN NULL ELSE - 67 / 7 * - + 32 END AS col0
----
358

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7385
SELECT ALL + COALESCE ( - 11, - + 75 ) DIV + - 90 + - + 41 + - 71 * + COALESCE ( ( + COUNT( * ) ), 5 ) + + + 21
----
-91

skipif mysql # not compatible
query I rowsort label-7385
SELECT ALL + COALESCE ( - 11, - + 75 ) / + - 90 + - + 41 + - 71 * + COALESCE ( ( + COUNT ( * ) ), 5 ) + + + 21
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7386
SELECT ( 69 ) + - - COUNT( * ) + + NULLIF ( 18, - 84 ) + - CAST( - + MIN( DISTINCT - + 97 ) AS SIGNED )
----
-9

skipif mysql # not compatible
query I rowsort label-7386
SELECT ( 69 ) + - - COUNT ( * ) + + NULLIF ( 18, - 84 ) + - CAST ( - + MIN ( DISTINCT - + 97 ) AS INTEGER )
----
-9

query I rowsort
SELECT ALL + + 5 + + 51 + 90
----
146

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7388
SELECT ALL - + 93 DIV - 12 - + 60 * + MIN( ALL + 88 ) + + 7 AS col1
----
-5266

skipif mysql # not compatible
query I rowsort label-7388
SELECT ALL - + 93 / - 12 - + 60 * + MIN ( ALL + 88 ) + + 7 AS col1
----
-5266

onlyif mysql # DIV for integer division: 
query I rowsort label-7389
SELECT 15 DIV - - 5 + + 86 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-7389
SELECT 15 / - - 5 + + 86 AS col2
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-7390
SELECT 58 + - 62 AS col2, - 3 + - NULLIF ( + - COUNT( * ), + 38 + - 12 ) * - 16
----
-4
-19

skipif mysql # not compatible
query II rowsort label-7390
SELECT 58 + - 62 AS col2, - 3 + - NULLIF ( + - COUNT ( * ), + 38 + - 12 ) * - 16
----
-4
-19

query I rowsort
SELECT DISTINCT - 12 + - 42 + + 32 + - 33 AS col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7392
SELECT ALL COUNT( * ) + - - 56 - - - 5 * + COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-7392
SELECT ALL COUNT ( * ) + - - 56 - - - 5 * + COUNT ( * )
----
52

query I rowsort
SELECT - 90 + + 55
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7394
SELECT ALL 64 + + - COUNT( * ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-7394
SELECT ALL 64 + + - COUNT ( * ) AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7395
SELECT DISTINCT MAX( DISTINCT + 33 ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-7395
SELECT DISTINCT MAX ( DISTINCT + 33 ) AS col1
----
33

onlyif mysql # aggregate syntax: 
query III rowsort label-7396
SELECT ALL + COUNT( * ) * - COUNT( * ), 69 AS col1, + 24 + MIN( DISTINCT - - 27 ) AS col2
----
-1
69
51

skipif mysql # not compatible
query III rowsort label-7396
SELECT ALL + COUNT ( * ) * - COUNT ( * ), 69 AS col1, + 24 + MIN ( DISTINCT - - 27 ) AS col2
----
-1
69
51

query I rowsort
SELECT ( + 46 ) * 47 col1
----
2162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7398
SELECT ALL 29 * + NULLIF ( - CAST( - COUNT( * ) AS SIGNED ), + + 18 )
----
29

skipif mysql # not compatible
query I rowsort label-7398
SELECT ALL 29 * + NULLIF ( - CAST ( - COUNT ( * ) AS INTEGER ), + + 18 )
----
29

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7399
SELECT 87 * - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7399
SELECT 87 * - CAST ( NULL AS REAL ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT 1, 26 col1
----
1
26

query I rowsort
SELECT ALL 17 - 97
----
-80

query I rowsort
SELECT 77 * 48
----
3696

onlyif mysql # aggregate syntax: 
query I rowsort label-7403
SELECT + COUNT( ALL + 10 )
----
1

skipif mysql # not compatible
query I rowsort label-7403
SELECT + COUNT ( ALL + 10 )
----
1

query I rowsort
SELECT 90 * + 36
----
3240

onlyif mysql # DIV for integer division: 
query I rowsort label-7405
SELECT ALL 63 DIV - 86
----
0

skipif mysql # not compatible
query I rowsort label-7405
SELECT ALL 63 / - 86
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7406
SELECT ALL 81 DIV 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7406
SELECT ALL 81 / 93 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7407
SELECT ALL + MIN( DISTINCT - + 19 )
----
-19

skipif mysql # not compatible
query I rowsort label-7407
SELECT ALL + MIN ( DISTINCT - + 19 )
----
-19

query II rowsort
SELECT DISTINCT + 47 AS col0, + 22 * + 59 + + + 3 AS col2
----
47
1301

query I rowsort
SELECT ALL COALESCE ( + 61, 86 * - 4 + 98 ) * + 58 AS col0
----
3538

query I rowsort
SELECT + 16 * - ( COALESCE ( + 80, + + ( + ( + 67 ) ) ) ) * - 19 + - 75 + - 57
----
24188

onlyif mysql # aggregate syntax: 
query I rowsort label-7411
SELECT COALESCE ( - COUNT( * ), - + COALESCE ( + - COUNT( * ), 1 ), + 25 )
----
-1

skipif mysql # not compatible
query I rowsort label-7411
SELECT COALESCE ( - COUNT ( * ), - + COALESCE ( + - COUNT ( * ), 1 ), + 25 )
----
-1

query I rowsort
SELECT + - 71 * + 77
----
-5467

query I rowsort
SELECT + 62 * + - 29 - + - ( + - 59 ) + - + 66
----
-1923

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7414
SELECT ALL - - 45 DIV + + COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-7414
SELECT ALL - - 45 / + + COUNT ( * )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7415
SELECT + COUNT( DISTINCT + 55 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7415
SELECT + COUNT ( DISTINCT + 55 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7416
SELECT ALL + 97 * COUNT( * ) + - 58
----
39

skipif mysql # not compatible
query I rowsort label-7416
SELECT ALL + 97 * COUNT ( * ) + - 58
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7417
SELECT ALL + SUM( + + 56 ) * + 88 * + 6 * - 27 + 25 * - - 8 + + COUNT( * ) DIV - + 6 + + + 78 AS col0
----
-798058

skipif mysql # not compatible
query I rowsort label-7417
SELECT ALL + SUM ( + + 56 ) * + 88 * + 6 * - 27 + 25 * - - 8 + + COUNT ( * ) / - + 6 + + + 78 AS col0
----
-798058

onlyif mysql # aggregate syntax: 
query I rowsort label-7418
SELECT - + 46 + + - NULLIF ( + - COUNT( - 45 ), + 74 * + + 86 + - 43 ) col0
----
-45

skipif mysql # not compatible
query I rowsort label-7418
SELECT - + 46 + + - NULLIF ( + - COUNT ( - 45 ), + 74 * + + 86 + - 43 ) col0
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7419
SELECT DISTINCT - ( 11 ) * COALESCE ( 1, 26, - 17 * - CAST( - NULLIF ( - 59, - 6 ) AS SIGNED ) * + 28 + - - 88 ) + 26 * - 31 * 81 * + 69
----
-4504745

skipif mysql # not compatible
query I rowsort label-7419
SELECT DISTINCT - ( 11 ) * COALESCE ( 1, 26, - 17 * - CAST ( - NULLIF ( - 59, - 6 ) AS INTEGER ) * + 28 + - - 88 ) + 26 * - 31 * 81 * + 69
----
-4504745

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT ALL - + 46 * + 27 + + + MAX( DISTINCT 41 ) AS col0
----
-1201

skipif mysql # not compatible
query I rowsort label-7420
SELECT ALL - + 46 * + 27 + + + MAX ( DISTINCT 41 ) AS col0
----
-1201

onlyif mysql # aggregate syntax: 
query I rowsort label-7421
SELECT ALL - - COUNT( + ( - 69 ) ) * - 42
----
-42

skipif mysql # not compatible
query I rowsort label-7421
SELECT ALL - - COUNT ( + ( - 69 ) ) * - 42
----
-42

query I rowsort
SELECT ALL + - 14 * + 51 + 65 * 72
----
3966

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7423
SELECT - ( - 9 ) + CASE - + COUNT( ALL + 16 ) WHEN 10 / 88 + ( - 20 ) + + 58 + - CAST( 56 AS DECIMAL ) + - COUNT( * ) + + COALESCE ( + COUNT( * ), NULLIF ( - + 40, - 64 * 13 * - 23 * 36 * + SUM( DISTINCT - + CAST( NULL AS DECIMAL ) ) * - - 11 + 67 + 6 * + 42 + + - CAST( + 71 AS SIGNED ) ) - - COUNT( - CAST( NULL AS SIGNED ) ) * + 6 / + 45 + 88 - 82, + - 87 ) + - 98 * 52 THEN NULL ELSE - 27 * ( 6 ) END + 79 * COALESCE ( ( 92 ), + 99 * COALESCE ( CASE - ( - 20 ) WHEN AVG ( 12 ) THEN NULL WHEN SUM( 30 ) - 0 THEN 7 END, COUNT( * ) ) ) AS col2
----
7115

skipif mysql # not compatible
query I rowsort label-7423
SELECT - ( - 9 ) + CASE - + COUNT ( ALL + 16 ) WHEN 10 / 88 + ( - 20 ) + + 58 + - CAST ( 56 AS REAL ) + - COUNT ( * ) + + COALESCE ( + COUNT ( * ), NULLIF ( - + 40, - 64 * 13 * - 23 * 36 * + SUM ( DISTINCT - + CAST ( NULL AS REAL ) ) * - - 11 + 67 + 6 * + 42 + + - CAST ( + 71 AS INTEGER ) ) - - COUNT ( - CAST ( NULL AS INTEGER ) ) * + 6 / + 45 + 88 - 82, + - 87 ) + - 98 * 52 THEN NULL ELSE - 27 * ( 6 ) END + 79 * COALESCE ( ( 92 ), + 99 * COALESCE ( CASE - ( - 20 ) WHEN AVG ( 12 ) THEN NULL WHEN SUM ( 30 ) - 0 THEN 7 END, COUNT ( * ) ) ) AS col2
----
7115

query II rowsort
SELECT DISTINCT + 75 - CASE + 65 WHEN + 52 - - + 80 THEN NULL ELSE + + ( - 76 ) END - + 22, 63 AS col0
----
129
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7425
SELECT - + 70 + 94 DIV + + 66 AS col1, + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) * + 72
----
-69
NULL

skipif mysql # not compatible
query II rowsort label-7425
SELECT - + 70 + 94 / + + 66 AS col1, + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) * + 72
----
-69
NULL

query II rowsort
SELECT ALL - NULLIF ( - + 82, - 44 ) col0, - 98 AS col1
----
82
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-7427
SELECT DISTINCT + NULLIF ( - - 96, 99 ) DIV - 71 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7427
SELECT DISTINCT + NULLIF ( - - 96, 99 ) / - 71 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7428
SELECT ALL NULLIF ( 65, - 41 * + COUNT( * ) + + + 26 ) col1, - COUNT( * ) * 39 AS col1
----
65
-39

skipif mysql # not compatible
query II rowsort label-7428
SELECT ALL NULLIF ( 65, - 41 * + COUNT ( * ) + + + 26 ) col1, - COUNT ( * ) * 39 AS col1
----
65
-39

query I rowsort
SELECT - ( - 44 ) + - + 28
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT - COUNT( + + 82 )
----
-1

skipif mysql # not compatible
query I rowsort label-7430
SELECT - COUNT ( + + 82 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7431
SELECT - COUNT( * ) + - 4 * 16
----
-65

skipif mysql # not compatible
query I rowsort label-7431
SELECT - COUNT ( * ) + - 4 * 16
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7432
SELECT - COALESCE ( + + 99, + - 38 DIV - + NULLIF ( - - 25, COALESCE ( - 30, - COUNT( * ) + - 90 + - 68 * + 61 ) * - + 31 DIV + - 68 + - + 32 * + CAST( NULL AS SIGNED ) * - 77 + + 46 ) + + 58 * - 81 ) DIV - 14 - + 36 * + SUM( + - 14 ) * + + 85 AS col2, - MAX( DISTINCT 33 )
----
42847
-33

skipif mysql # not compatible
query II rowsort label-7432
SELECT - COALESCE ( + + 99, + - 38 / - + NULLIF ( - - 25, COALESCE ( - 30, - COUNT ( * ) + - 90 + - 68 * + 61 ) * - + 31 / + - 68 + - + 32 * + CAST ( NULL AS INTEGER ) * - 77 + + 46 ) + + 58 * - 81 ) / - 14 - + 36 * + SUM ( + - 14 ) * + + 85 AS col2, - MAX ( DISTINCT 33 )
----
42847
-33

query I rowsort
SELECT - 99 + - 57
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-7434
SELECT - COUNT( DISTINCT 68 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7434
SELECT - COUNT ( DISTINCT 68 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT 28 * - 33 AS col1
----
-924

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7436
SELECT DISTINCT CAST( - + 68 AS SIGNED ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-7436
SELECT DISTINCT CAST ( - + 68 AS INTEGER ) AS col2
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7437
SELECT DISTINCT 75 * ( + + 97 ) * 16 * - 0 DIV - 77 * - NULLIF ( - - 39, + - 14 ) AS col1, - NULLIF ( + 58, COUNT( * ) + - + 33 ) * 59 col0
----
0
-3422

skipif mysql # not compatible
query II rowsort label-7437
SELECT DISTINCT 75 * ( + + 97 ) * 16 * - 0 / - 77 * - NULLIF ( - - 39, + - 14 ) AS col1, - NULLIF ( + 58, COUNT ( * ) + - + 33 ) * 59 col0
----
0
-3422

query I rowsort
SELECT + 4 * - 10
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-7439
SELECT - COUNT( * ) * - 45, COUNT( * ) - - + ( + 2 ) - - 62 * - 62 * ( + 52 ) AS col2
----
45
-199885

skipif mysql # not compatible
query II rowsort label-7439
SELECT - COUNT ( * ) * - 45, COUNT ( * ) - - + ( + 2 ) - - 62 * - 62 * ( + 52 ) AS col2
----
45
-199885

query I rowsort
SELECT 54 * + + 69 + + 90 AS col1
----
3816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7441
SELECT + 33 DIV + + SUM( + - CAST( - - 66 AS SIGNED ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-7441
SELECT + 33 / + + SUM ( + - CAST ( - - 66 AS INTEGER ) ) col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7442
SELECT CAST( 89 AS SIGNED ) col1
----
89

skipif mysql # not compatible
query I rowsort label-7442
SELECT CAST ( 89 AS INTEGER ) col1
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7443
SELECT DISTINCT COUNT( - 62 ) DIV - + MAX( + 67 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7443
SELECT DISTINCT COUNT ( - 62 ) / - + MAX ( + 67 ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7444
SELECT + + MAX( 0 ) DIV 44 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7444
SELECT + + MAX ( 0 ) / 44 AS col0
----
0

query II rowsort
SELECT + + 61 + - + 54, - 48 AS col0
----
7
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7446
SELECT ALL + 7 / + MIN( 94 ) * - CAST( NULL AS SIGNED ) - + NULLIF ( + 23, - 9 / + 32 - - 38 * - 31 ) + + COUNT( DISTINCT + 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7446
SELECT ALL + 7 / + MIN ( 94 ) * - CAST ( NULL AS INTEGER ) - + NULLIF ( + 23, - 9 / + 32 - - 38 * - 31 ) + + COUNT ( DISTINCT + 92 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT ALL + - CASE + COUNT( * ) WHEN + + 63 THEN - 44 * + MAX( - 55 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7447
SELECT ALL + - CASE + COUNT ( * ) WHEN + + 63 THEN - 44 * + MAX ( - 55 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7448
SELECT DISTINCT + 11 / + - 28 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7448
SELECT DISTINCT + 11 / + - 28 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7449
SELECT DISTINCT + MIN( + 54 ) col2, - COUNT( * )
----
54
-1

skipif mysql # not compatible
query II rowsort label-7449
SELECT DISTINCT + MIN ( + 54 ) col2, - COUNT ( * )
----
54
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7450
SELECT + 13 * CAST( + - 96 AS SIGNED ) * - 5 + - + 8 - 49 AS col0
----
6183

skipif mysql # not compatible
query I rowsort label-7450
SELECT + 13 * CAST ( + - 96 AS INTEGER ) * - 5 + - + 8 - 49 AS col0
----
6183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7451
SELECT ALL - - MAX( ALL - + 72 ) * - ( - CAST( + 43 AS SIGNED ) ) + 87
----
-3009

skipif mysql # not compatible
query I rowsort label-7451
SELECT ALL - - MAX ( ALL - + 72 ) * - ( - CAST ( + 43 AS INTEGER ) ) + 87
----
-3009

onlyif mysql # aggregate syntax: 
query II rowsort label-7452
SELECT + MAX( ALL 79 ) AS col1, + 8
----
79
8

skipif mysql # not compatible
query II rowsort label-7452
SELECT + MAX ( ALL 79 ) AS col1, + 8
----
79
8

onlyif mysql # DIV for integer division: 
query I rowsort label-7453
SELECT + 66 DIV + 93
----
0

skipif mysql # not compatible
query I rowsort label-7453
SELECT + 66 / + 93
----
0

query I rowsort
SELECT + 34 * - 43 - + 74 + 7 AS col2
----
-1529

onlyif mysql # aggregate syntax: 
query I rowsort label-7455
SELECT + COUNT( * ) * - COUNT( * ) * - + 44 * 81 + + 96 + 49 + - - 95 + + MIN( - 79 ) - - - 75 * ( + 79 ) * 1 col0
----
-2200

skipif mysql # not compatible
query I rowsort label-7455
SELECT + COUNT ( * ) * - COUNT ( * ) * - + 44 * 81 + + 96 + 49 + - - 95 + + MIN ( - 79 ) - - - 75 * ( + 79 ) * 1 col0
----
-2200

onlyif mysql # aggregate syntax: 
query I rowsort label-7456
SELECT ALL 38 * - 55 + - - COUNT( * ) + + COUNT( * ) * 64 * + - 28
----
-3881

skipif mysql # not compatible
query I rowsort label-7456
SELECT ALL 38 * - 55 + - - COUNT ( * ) + + COUNT ( * ) * 64 * + - 28
----
-3881

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7457
SELECT - - 85 + + - 73 + MAX( 34 ) + - 45 * + + COUNT( * ) DIV + - 46 DIV + 4
----
46

skipif mysql # not compatible
query I rowsort label-7457
SELECT - - 85 + + - 73 + MAX ( 34 ) + - 45 * + + COUNT ( * ) / + - 46 / + 4
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7458
SELECT + 11 + + + COUNT( * ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-7458
SELECT + 11 + + + COUNT ( * ) AS col2
----
12

query I rowsort
SELECT + 12 - - 52 AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT - COUNT( * ) * - - 72 AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-7460
SELECT - COUNT ( * ) * - - 72 AS col0
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7461
SELECT DISTINCT - 48 * + ( - CAST( - COUNT( * ) AS SIGNED ) )
----
-48

skipif mysql # not compatible
query I rowsort label-7461
SELECT DISTINCT - 48 * + ( - CAST ( - COUNT ( * ) AS INTEGER ) )
----
-48

query I rowsort
SELECT - 11 + + 7
----
-4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7463
SELECT ALL - COUNT( * ) * + CASE WHEN NOT 54 IN ( + - 17 + 30 * 16 + - 8, 8, - + 3 + + MIN( DISTINCT + + 37 ) / NULLIF ( - - 57, + 63 + - ( 71 ) ) * + + 75 ) THEN NULL WHEN ( NOT - + 28 BETWEEN - 34 AND - 63 ) THEN CAST( - + 74 AS DECIMAL ) END * - 5 * - 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7463
SELECT ALL - COUNT ( * ) * + CASE WHEN NOT 54 IN ( + - 17 + 30 * 16 + - 8, 8, - + 3 + + MIN ( DISTINCT + + 37 ) / NULLIF ( - - 57, + 63 + - ( 71 ) ) * + + 75 ) THEN NULL WHEN ( NOT - + 28 BETWEEN - 34 AND - 63 ) THEN CAST ( - + 74 AS REAL ) END * - 5 * - 39 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT - COUNT( DISTINCT + 60 ) * - 91
----
91

skipif mysql # not compatible
query I rowsort label-7464
SELECT - COUNT ( DISTINCT + 60 ) * - 91
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7465
SELECT DISTINCT 5 * - COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-7465
SELECT DISTINCT 5 * - COUNT ( * )
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-7466
SELECT DISTINCT 69 AS col0, + MIN( DISTINCT - 26 ) * - 32
----
69
832

skipif mysql # not compatible
query II rowsort label-7466
SELECT DISTINCT 69 AS col0, + MIN ( DISTINCT - 26 ) * - 32
----
69
832

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT 96 * MAX( - 23 ) AS col2
----
-2208

skipif mysql # not compatible
query I rowsort label-7467
SELECT 96 * MAX ( - 23 ) AS col2
----
-2208

query I rowsort
SELECT 5 * + + 28 AS col1
----
140

onlyif mysql # aggregate syntax: 
query II rowsort label-7469
SELECT DISTINCT + CASE + 27 WHEN MAX( - 1 ) / - + 7 THEN - COUNT( * ) ELSE + - COUNT( * ) * - 12 + - - 84 END * - COUNT( * ) * + 3 col2, 94 + 33 + + - CASE + - 29 WHEN COUNT( * ) THEN 78 WHEN + - COUNT( ALL + COALESCE ( - ( - 31 ), + 8, - 27 ) ) THEN NULL ELSE NULL END * + 11 AS col1
----
-288
NULL

skipif mysql # not compatible
query II rowsort label-7469
SELECT DISTINCT + CASE + 27 WHEN MAX ( - 1 ) / - + 7 THEN - COUNT ( * ) ELSE + - COUNT ( * ) * - 12 + - - 84 END * - COUNT ( * ) * + 3 col2, 94 + 33 + + - CASE + - 29 WHEN COUNT ( * ) THEN 78 WHEN + - COUNT ( ALL + COALESCE ( - ( - 31 ), + 8, - 27 ) ) THEN NULL ELSE NULL END * + 11 AS col1
----
-288
NULL

query I rowsort
SELECT DISTINCT 21 + + 27 AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7471
SELECT - 70 * 1 - - COUNT( + 6 )
----
-69

skipif mysql # not compatible
query I rowsort label-7471
SELECT - 70 * 1 - - COUNT ( + 6 )
----
-69

query I rowsort
SELECT ALL - 99 + - - 92 AS col0
----
-7

query I rowsort
SELECT ALL - + 10 col2
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-7474
SELECT DISTINCT - + COUNT( * ) + + 89 * + - 14 AS col0, - 91
----
-1247
-91

skipif mysql # not compatible
query II rowsort label-7474
SELECT DISTINCT - + COUNT ( * ) + + 89 * + - 14 AS col0, - 91
----
-1247
-91

query II rowsort
SELECT + 5, + 85 AS col1
----
5
85

onlyif mysql # aggregate syntax: 
query II rowsort label-7476
SELECT ALL - COUNT( * ) + - ( - 57 ) AS col1, 98 - 22 * - + SUM( DISTINCT + - 82 ) AS col1
----
56
-1706

skipif mysql # not compatible
query II rowsort label-7476
SELECT ALL - COUNT ( * ) + - ( - 57 ) AS col1, 98 - 22 * - + SUM ( DISTINCT + - 82 ) AS col1
----
56
-1706

onlyif mysql # aggregate syntax: 
query I rowsort label-7477
SELECT COUNT( * ) * 54
----
54

skipif mysql # not compatible
query I rowsort label-7477
SELECT COUNT ( * ) * 54
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7478
SELECT - COUNT( * ) * + SUM( - 2 ) + + COUNT( * ) + + 90 + - 40 + + 46
----
99

skipif mysql # not compatible
query I rowsort label-7478
SELECT - COUNT ( * ) * + SUM ( - 2 ) + + COUNT ( * ) + + 90 + - 40 + + 46
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7479
SELECT + 33 DIV - 5 - 87 AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-7479
SELECT + 33 / - 5 - 87 AS col2
----
-93

query I rowsort
SELECT 13 * + ( + 76 ) - - 89
----
1077

onlyif mysql # DIV for integer division: 
query I rowsort label-7481
SELECT ALL 12 DIV + 98
----
0

skipif mysql # not compatible
query I rowsort label-7481
SELECT ALL 12 / + 98
----
0

query I rowsort
SELECT ALL 17 - 20 AS col2
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7483
SELECT NULLIF ( + + 55, + 57 * + 16 ) DIV 27 + - - 79, SUM( DISTINCT + 53 ) col0
----
81
53

skipif mysql # not compatible
query II rowsort label-7483
SELECT NULLIF ( + + 55, + 57 * + 16 ) / 27 + - - 79, SUM ( DISTINCT + 53 ) col0
----
81
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7484
SELECT ALL COUNT( * ) * - 8
----
-8

skipif mysql # not compatible
query I rowsort label-7484
SELECT ALL COUNT ( * ) * - 8
----
-8

query I rowsort
SELECT - 0 + + 41 AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7486
SELECT ALL + COUNT( * ) * + + COALESCE ( - 83, + 77 )
----
-83

skipif mysql # not compatible
query I rowsort label-7486
SELECT ALL + COUNT ( * ) * + + COALESCE ( - 83, + 77 )
----
-83

query I rowsort
SELECT ALL - ( 80 ) * - 24
----
1920

onlyif mysql # aggregate syntax: 
query I rowsort label-7488
SELECT ALL - + CASE - + NULLIF ( - COALESCE ( 25, + COUNT( * ) ), - - CASE + 32 WHEN 28 + - 63 + + 77 THEN + 52 END - + 87 ) WHEN 12 THEN NULL WHEN - COUNT( * ) THEN - 64 ELSE MIN( - NULLIF ( + 2, + - 69 ) ) END AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7488
SELECT ALL - + CASE - + NULLIF ( - COALESCE ( 25, + COUNT ( * ) ), - - CASE + 32 WHEN 28 + - 63 + + 77 THEN + 52 END - + 87 ) WHEN 12 THEN NULL WHEN - COUNT ( * ) THEN - 64 ELSE MIN ( - NULLIF ( + 2, + - 69 ) ) END AS col0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-7489
SELECT + 36 DIV - - 77 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7489
SELECT + 36 / - - 77 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7490
SELECT + 75 * + - NULLIF ( + - 98, - 67 - - 99 + + ( - 67 ) + + ( + COUNT( * ) ) ) AS col1
----
7350

skipif mysql # not compatible
query I rowsort label-7490
SELECT + 75 * + - NULLIF ( + - 98, - 67 - - 99 + + ( - 67 ) + + ( + COUNT ( * ) ) ) AS col1
----
7350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7491
SELECT 31 + 59 / ( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7491
SELECT 31 + 59 / ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7492
SELECT 0 - - 80 DIV - COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-7492
SELECT 0 - - 80 / - COUNT ( * )
----
-80

query I rowsort
SELECT 9 + + - 60 AS col1
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-7494
SELECT 16 DIV - + 62 * - 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7494
SELECT 16 / - + 62 * - 94 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7495
SELECT CAST( + AVG ( DISTINCT + 1 ) AS SIGNED ) - 38 AS col1, 45 AS col2
----
-37
45

skipif mysql # not compatible
query II rowsort label-7495
SELECT CAST ( + AVG ( DISTINCT + 1 ) AS INTEGER ) - 38 AS col1, 45 AS col2
----
-37
45

query II rowsort
SELECT - 48 col0, - 30 AS col0
----
-48
-30

query I rowsort
SELECT 99 + 58 AS col0
----
157

query II rowsort
SELECT ALL 4, + 87 / 63 * - CASE - 20 WHEN - 23 THEN NULL ELSE - 5 + + CASE - - 54 WHEN 86 THEN NULL WHEN 56 THEN + 33 END * 25 + - ( + 49 ) END + COALESCE ( + 69, - 21 ) AS col2
----
4
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT ALL 58 + ( + 20 ) * - 45 * - COALESCE ( + 58, + - 97 + 99 * - - 76 * - NULLIF ( + 65, + 7 * - 22 ) * - 29 * + + ( - 18 ) + MAX( DISTINCT + - 83 ) )
----
52258

skipif mysql # not compatible
query I rowsort label-7499
SELECT ALL 58 + ( + 20 ) * - 45 * - COALESCE ( + 58, + - 97 + 99 * - - 76 * - NULLIF ( + 65, + 7 * - 22 ) * - 29 * + + ( - 18 ) + MAX ( DISTINCT + - 83 ) )
----
52258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7500
SELECT ALL + 99 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7500
SELECT ALL + 99 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 15 * + 74 AS col2
----
1110

onlyif mysql # aggregate syntax: 
query I rowsort label-7502
SELECT ALL COUNT( * ) + 69
----
70

skipif mysql # not compatible
query I rowsort label-7502
SELECT ALL COUNT ( * ) + 69
----
70

query I rowsort
SELECT 96 + + 85 AS col2
----
181

query I rowsort
SELECT 31 - 75 + + 3
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7505
SELECT ALL - 54 + - COUNT( * ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-7505
SELECT ALL - 54 + - COUNT ( * ) AS col0
----
-55

query I rowsort
SELECT ALL + ( 77 ) * 64
----
4928

query II rowsort
SELECT 0 AS col1, 37 AS col2
----
0
37

query II rowsort
SELECT - 25, 55 AS col1
----
-25
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7509
SELECT ALL - ( COUNT( * ) ) + - 63 + 73 * + 11 * COUNT( * ) * + 40 + + 12 * + 46
----
32608

skipif mysql # not compatible
query I rowsort label-7509
SELECT ALL - ( COUNT ( * ) ) + - 63 + 73 * + 11 * COUNT ( * ) * + 40 + + 12 * + 46
----
32608

onlyif mysql # DIV for integer division: 
query I rowsort label-7510
SELECT 21 + 81 DIV - NULLIF ( - 88, - + 96 ) col2
----
21

skipif mysql # not compatible
query I rowsort label-7510
SELECT 21 + 81 / - NULLIF ( - 88, - + 96 ) col2
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-7511
SELECT 31 + + 86 + - + 71 DIV - - 20 + + + 37
----
151

skipif mysql # not compatible
query I rowsort label-7511
SELECT 31 + + 86 + - + 71 / - - 20 + + + 37
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-7512
SELECT ALL - 53 + 6 * + + NULLIF ( + 18, - 35 * COUNT( * ) + 96 ) + + MIN( DISTINCT 26 ) + 42 * + + 85 * + COUNT( * ) * - + 58
----
-206979

skipif mysql # not compatible
query I rowsort label-7512
SELECT ALL - 53 + 6 * + + NULLIF ( + 18, - 35 * COUNT ( * ) + 96 ) + + MIN ( DISTINCT 26 ) + 42 * + + 85 * + COUNT ( * ) * - + 58
----
-206979

onlyif mysql # aggregate syntax: 
query I rowsort label-7513
SELECT MIN( DISTINCT + 79 )
----
79

skipif mysql # not compatible
query I rowsort label-7513
SELECT MIN ( DISTINCT + 79 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7514
SELECT COUNT( DISTINCT ( + 87 ) ) + COUNT( * ) * 53 * + 92
----
4877

skipif mysql # not compatible
query I rowsort label-7514
SELECT COUNT ( DISTINCT ( + 87 ) ) + COUNT ( * ) * 53 * + 92
----
4877

onlyif mysql # aggregate syntax: 
query II rowsort label-7515
SELECT ALL - + 51 AS col0, + COUNT( * )
----
-51
1

skipif mysql # not compatible
query II rowsort label-7515
SELECT ALL - + 51 AS col0, + COUNT ( * )
----
-51
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7516
SELECT CAST( + 1 AS SIGNED ) DIV 60 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7516
SELECT CAST ( + 1 AS INTEGER ) / 60 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7517
SELECT ALL + 62 DIV 60 - + MAX( DISTINCT - 95 ) - + 57 + 42 * - - 1 DIV - COALESCE ( - 66, - 34, CAST( NULL AS SIGNED ) + + + CAST( NULL AS SIGNED ) * - 36 * + - 82 * + 75 * - 0 * + - CASE - + 45 WHEN CAST( + COUNT( * ) AS SIGNED ) THEN 74 + + - 80 + - 26 * + 66 * - + AVG ( DISTINCT - - 69 ) + - + 69 * + - 90 WHEN - - COUNT( * ) THEN NULL WHEN - - COUNT( + - 11 ) + 4 THEN - ( - - 75 ) END ) + - - 73 * NULLIF ( 58, + + ( - + 33 ) )
----
4273

skipif mysql # not compatible
query I rowsort label-7517
SELECT ALL + 62 / 60 - + MAX ( DISTINCT - 95 ) - + 57 + 42 * - - 1 / - COALESCE ( - 66, - 34, CAST ( NULL AS INTEGER ) + + + CAST ( NULL AS INTEGER ) * - 36 * + - 82 * + 75 * - 0 * + - CASE - + 45 WHEN CAST ( + COUNT ( * ) AS INTEGER ) THEN 74 + + - 80 + - 26 * + 66 * - + AVG ( DISTINCT - - 69 ) + - + 69 * + - 90 WHEN - - COUNT ( * ) THEN NULL WHEN - - COUNT ( + - 11 ) + 4 THEN - ( - - 75 ) END ) + - - 73 * NULLIF ( 58, + + ( - + 33 ) )
----
4273

query I rowsort
SELECT ALL - - CASE + CASE 73 WHEN COALESCE ( - - 43, - 94, 15 ) THEN + + 98 ELSE NULL END WHEN 65 + - - 52 THEN NULL ELSE - 82 END
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-7519
SELECT + 67, 99 + + - MAX( + ( 7 ) ) + 3 + 39 * - 63 AS col2
----
67
-2362

skipif mysql # not compatible
query II rowsort label-7519
SELECT + 67, 99 + + - MAX ( + ( 7 ) ) + 3 + 39 * - 63 AS col2
----
67
-2362

onlyif mysql # aggregate syntax: 
query II rowsort label-7520
SELECT 3 AS col0, COUNT( * ) col2
----
3
1

skipif mysql # not compatible
query II rowsort label-7520
SELECT 3 AS col0, COUNT ( * ) col2
----
3
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7521
SELECT + 27 * - COUNT( * ) col0
----
-27

skipif mysql # not compatible
query I rowsort label-7521
SELECT + 27 * - COUNT ( * ) col0
----
-27

query I rowsort
SELECT DISTINCT - ( - - 38 ) * - - 31 * 59 * 13 col2
----
-903526

query I rowsort
SELECT ALL + + 71 * + + 55 AS col0
----
3905

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7524
SELECT COUNT( * ) * - - AVG ( ALL + ( - 5 ) ) * - CAST( NULL AS SIGNED ) / - COUNT( + 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7524
SELECT COUNT ( * ) * - - AVG ( ALL + ( - 5 ) ) * - CAST ( NULL AS INTEGER ) / - COUNT ( + 30 )
----
NULL

query I rowsort
SELECT ALL - + NULLIF ( + 82, - 47 ) col1
----
-82

query I rowsort
SELECT DISTINCT 19 * - 66 AS col0
----
-1254

query II rowsort
SELECT ALL - + 23, + 90 AS col2
----
-23
90

onlyif mysql # aggregate syntax: 
query II rowsort label-7528
SELECT ALL - - 90 AS col1, + 9 * + COUNT( * ) * + ( + 45 ) - ( + 85 ) * - 58 AS col2
----
90
5335

skipif mysql # not compatible
query II rowsort label-7528
SELECT ALL - - 90 AS col1, + 9 * + COUNT ( * ) * + ( + 45 ) - ( + 85 ) * - 58 AS col2
----
90
5335

onlyif mysql # aggregate syntax: 
query I rowsort label-7529
SELECT + CASE - 92 WHEN 29 * + + 29 THEN NULL WHEN + NULLIF ( - COUNT( * ), + 49 * - 76 ) THEN - 20 WHEN - - 70 * - - 84 THEN NULL END * 10 * COUNT( * ) + + COUNT( ALL - + 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7529
SELECT + CASE - 92 WHEN 29 * + + 29 THEN NULL WHEN + NULLIF ( - COUNT ( * ), + 49 * - 76 ) THEN - 20 WHEN - - 70 * - - 84 THEN NULL END * 10 * COUNT ( * ) + + COUNT ( ALL - + 30 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7530
SELECT - 73 * - CASE 61 WHEN - COUNT( * ) THEN NULL WHEN - COUNT( * ) THEN NULL ELSE + 10 END AS col0, - COUNT( * ) + - - 41
----
730
40

skipif mysql # not compatible
query II rowsort label-7530
SELECT - 73 * - CASE 61 WHEN - COUNT ( * ) THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE + 10 END AS col0, - COUNT ( * ) + - - 41
----
730
40

query I rowsort
SELECT - 43 * 2
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7532
SELECT DISTINCT - 17, - COUNT( * ) + + + 44 DIV + 81 + - 5 + + + 5 + NULLIF ( + + 40, + + 63 ) * - 80 * 53 * - + 71 AS col0
----
-17
12041599

skipif mysql # not compatible
query II rowsort label-7532
SELECT DISTINCT - 17, - COUNT ( * ) + + + 44 / + 81 + - 5 + + + 5 + NULLIF ( + + 40, + + 63 ) * - 80 * 53 * - + 71 AS col0
----
-17
12041599

onlyif mysql # aggregate syntax: 
query I rowsort label-7533
SELECT DISTINCT - 75 + + ( + COUNT( ALL + + 8 ) )
----
-74

skipif mysql # not compatible
query I rowsort label-7533
SELECT DISTINCT - 75 + + ( + COUNT ( ALL + + 8 ) )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-7534
SELECT DISTINCT ( - 19 ) * - COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-7534
SELECT DISTINCT ( - 19 ) * - COUNT ( * )
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7535
SELECT 94 * - MAX( ALL + 56 ) * + COUNT( * ) + - + ( - + 96 ) + COALESCE ( 83, COUNT( * ) ) + 81 AS col2, 88 * + 10 - + + CAST( + 11 AS SIGNED ) * + 0
----
-5004
880

skipif mysql # not compatible
query II rowsort label-7535
SELECT 94 * - MAX ( ALL + 56 ) * + COUNT ( * ) + - + ( - + 96 ) + COALESCE ( 83, COUNT ( * ) ) + 81 AS col2, 88 * + 10 - + + CAST ( + 11 AS INTEGER ) * + 0
----
-5004
880

onlyif mysql # aggregate syntax: 
query I rowsort label-7536
SELECT ALL 58 + COALESCE ( + - 21, + 33 ) + + + COUNT( * ) + COUNT( * ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-7536
SELECT ALL 58 + COALESCE ( + - 21, + 33 ) + + + COUNT ( * ) + COUNT ( * ) AS col0
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7537
SELECT ALL 17 + 25 + + ( - CAST( - + MIN( 29 ) AS SIGNED ) ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-7537
SELECT ALL 17 + 25 + + ( - CAST ( - + MIN ( 29 ) AS INTEGER ) ) AS col1
----
71

query I rowsort
SELECT - 40 * - + 69 * - 82
----
-226320

query I rowsort
SELECT + ( - + COALESCE ( + 53, 20 * - 90 ) ) * + ( 54 ) AS col0
----
-2862

onlyif mysql # aggregate syntax: 
query II rowsort label-7540
SELECT + 22 + COUNT( * ) AS col0, 16 AS col2
----
23
16

skipif mysql # not compatible
query II rowsort label-7540
SELECT + 22 + COUNT ( * ) AS col0, 16 AS col2
----
23
16

query I rowsort
SELECT + 81 * 99 AS col2
----
8019

query I rowsort
SELECT + 10 * 45 AS col0
----
450

onlyif mysql # aggregate syntax: 
query I rowsort label-7543
SELECT - MAX( ALL + - 34 ) + + + 20
----
54

skipif mysql # not compatible
query I rowsort label-7543
SELECT - MAX ( ALL + - 34 ) + + + 20
----
54

query I rowsort
SELECT ALL ( - 68 ) + 11 AS col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7545
SELECT + 86 * + + COUNT( * ) col0
----
86

skipif mysql # not compatible
query I rowsort label-7545
SELECT + 86 * + + COUNT ( * ) col0
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7546
SELECT ALL ( - CAST( NULL AS SIGNED ) ) - + COUNT( * ) * + ( - 41 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7546
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) - + COUNT ( * ) * + ( - 41 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT DISTINCT + 50 * + COUNT( + 72 )
----
50

skipif mysql # not compatible
query I rowsort label-7547
SELECT DISTINCT + 50 * + COUNT ( + 72 )
----
50

query I rowsort
SELECT + 5 - - 26 AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7549
SELECT ALL 49 * SUM( ALL + - 72 )
----
-3528

skipif mysql # not compatible
query I rowsort label-7549
SELECT ALL 49 * SUM ( ALL + - 72 )
----
-3528

query I rowsort
SELECT - 88 * + 4
----
-352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7551
SELECT + - 11 * + - 42 * COUNT( * ) * + COUNT( - - 91 ) + - CAST( NULL AS SIGNED ) + + 86 + COALESCE ( 50, + + 9 * - + 37 - - 13 - + + 35 + + - COUNT( + - 97 ) - COUNT( * ) - + 13 * + - 25 / 93 ) * - COUNT( DISTINCT 9 ) * + COUNT( * ) AS col1, MIN( ALL 96 ) AS col1
----
NULL
96

skipif mysql # not compatible
query II rowsort label-7551
SELECT + - 11 * + - 42 * COUNT ( * ) * + COUNT ( - - 91 ) + - CAST ( NULL AS INTEGER ) + + 86 + COALESCE ( 50, + + 9 * - + 37 - - 13 - + + 35 + + - COUNT ( + - 97 ) - COUNT ( * ) - + 13 * + - 25 / 93 ) * - COUNT ( DISTINCT 9 ) * + COUNT ( * ) AS col1, MIN ( ALL 96 ) AS col1
----
NULL
96

query I rowsort
SELECT DISTINCT + ( + 10 ) * - + 29 + - 77
----
-367

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7553
SELECT - 91 DIV - - COUNT( * ) + + 50 - - - 40
----
-81

skipif mysql # not compatible
query I rowsort label-7553
SELECT - 91 / - - COUNT ( * ) + + 50 - - - 40
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7554
SELECT ALL - 56 DIV + - NULLIF ( - COUNT( * ), - 68 DIV - 89 )
----
-56

skipif mysql # not compatible
query I rowsort label-7554
SELECT ALL - 56 / + - NULLIF ( - COUNT ( * ), - 68 / - 89 )
----
-56

query I rowsort
SELECT - 18 - + + 43 AS col1
----
-61

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7556
SELECT - + ( - + 44 ) DIV + 61 * + - CAST( + - 19 AS SIGNED ) + + 9 * + 1 * + 79 AS col0
----
711

skipif mysql # not compatible
query I rowsort label-7556
SELECT - + ( - + 44 ) / + 61 * + - CAST ( + - 19 AS INTEGER ) + + 9 * + 1 * + 79 AS col0
----
711

onlyif mysql # DIV for integer division: 
query I rowsort label-7557
SELECT - + 29 DIV - 14 + - + 69
----
-67

skipif mysql # not compatible
query I rowsort label-7557
SELECT - + 29 / - 14 + - + 69
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7558
SELECT - + CAST( CASE + NULLIF ( - + 41, 72 ) WHEN 75 THEN SUM( - - 69 ) ELSE NULL END AS SIGNED ) + + 20 + - + 76 * COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7558
SELECT - + CAST ( CASE + NULLIF ( - + 41, 72 ) WHEN 75 THEN SUM ( - - 69 ) ELSE NULL END AS INTEGER ) + + 20 + - + 76 * COUNT ( * ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7559
SELECT ALL + ( 18 ) * + ( 88 ) - - 35 + 30 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7559
SELECT ALL + ( 18 ) * + ( 88 ) - - 35 + 30 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7560
SELECT DISTINCT CAST( NULL AS SIGNED ) * + - 65 + - - 76 / - 83 * 24 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7560
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - 65 + - - 76 / - 83 * 24 col2
----
NULL

query I rowsort
SELECT - 53 * - 17
----
901

query I rowsort
SELECT 8 * + 30 + + 83
----
323

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7563
SELECT COUNT( * ) * COUNT( + 0 ) + + CAST( NULL AS SIGNED ) + - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-7563
SELECT COUNT ( * ) * COUNT ( + 0 ) + + CAST ( NULL AS INTEGER ) + - 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7564
SELECT + NULLIF ( 85, + + 32 * - NULLIF ( + + 83, 61 + - - 28 * + 65 + 9 * + - MAX( + 34 ) ) - + 20 ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-7564
SELECT + NULLIF ( 85, + + 32 * - NULLIF ( + + 83, 61 + - - 28 * + 65 + 9 * + - MAX ( + 34 ) ) - + 20 ) AS col2
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-7565
SELECT ALL + 60, COUNT( * ) * + 6 col0
----
60
6

skipif mysql # not compatible
query II rowsort label-7565
SELECT ALL + 60, COUNT ( * ) * + 6 col0
----
60
6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7566
SELECT - 17 * + - ( - COUNT( DISTINCT + 48 ) ) AS col0, CAST( NULL AS DECIMAL )
----
-17
NULL

skipif mysql # not compatible
query II rowsort label-7566
SELECT - 17 * + - ( - COUNT ( DISTINCT + 48 ) ) AS col0, CAST ( NULL AS REAL )
----
-17
NULL

query I rowsort
SELECT + 81 + 90
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-7568
SELECT MIN( + - 31 ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-7568
SELECT MIN ( + - 31 ) AS col2
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7569
SELECT ALL 12 AS col1, + ( + - CAST( NULL AS SIGNED ) ) + ( 10 ) AS col0
----
12
NULL

skipif mysql # not compatible
query II rowsort label-7569
SELECT ALL 12 AS col1, + ( + - CAST ( NULL AS INTEGER ) ) + ( 10 ) AS col0
----
12
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7570
SELECT - 86 - COALESCE ( + 12, + + COUNT( * ) )
----
-98

skipif mysql # not compatible
query I rowsort label-7570
SELECT - 86 - COALESCE ( + 12, + + COUNT ( * ) )
----
-98

query I rowsort
SELECT DISTINCT 98 * - 4 col2
----
-392

query II rowsort
SELECT ALL 69 AS col2, + 40 + ( 84 ) AS col0
----
69
124

query I rowsort
SELECT - CASE + 33 WHEN - ( 34 ) / + 16 THEN 91 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7574
SELECT ALL + NULLIF ( + 10, 55 ) - 35 + - COUNT( * ) * + ( COUNT( * ) )
----
-26

skipif mysql # not compatible
query I rowsort label-7574
SELECT ALL + NULLIF ( + 10, 55 ) - 35 + - COUNT ( * ) * + ( COUNT ( * ) )
----
-26

query I rowsort
SELECT DISTINCT 62 * + 47
----
2914

query I rowsort
SELECT - 27 + + - 84 AS col1
----
-111

query I rowsort
SELECT + NULLIF ( - 23, - ( + - 90 ) ) - - 62
----
39

query I rowsort
SELECT - 3 + + 98 AS col2
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-7579
SELECT + + ( + 79 ) - + + 49 AS col0, 89 * - + COUNT( ALL 42 ) col1
----
30
-89

skipif mysql # not compatible
query II rowsort label-7579
SELECT + + ( + 79 ) - + + 49 AS col0, 89 * - + COUNT ( ALL 42 ) col1
----
30
-89

query II rowsort
SELECT + 7, 61 + - - 13 AS col2
----
7
74

query I rowsort
SELECT ALL + 1 * ( - COALESCE ( 49, + 26 ) ) AS col0
----
-49

query II rowsort
SELECT ALL 69, - NULLIF ( - 47, - 28 / - 88 ) AS col0
----
69
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7583
SELECT + CASE - 38 WHEN + 58 + + 2 THEN NULL WHEN + CAST( + COALESCE ( + - 26, COALESCE ( + + 44, + ( 44 ) - - MAX( ( + 82 ) ) * - - 0 ) ) AS SIGNED ) + + NULLIF ( 16, + + 94 + + + 49 + + 32 * + + 2 ) * - 15 - - CAST( - 28 AS SIGNED ) + + 37 THEN - 22 END + - MAX( DISTINCT 72 ) + - 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7583
SELECT + CASE - 38 WHEN + 58 + + 2 THEN NULL WHEN + CAST ( + COALESCE ( + - 26, COALESCE ( + + 44, + ( 44 ) - - MAX ( ( + 82 ) ) * - - 0 ) ) AS INTEGER ) + + NULLIF ( 16, + + 94 + + + 49 + + 32 * + + 2 ) * - 15 - - CAST ( - 28 AS INTEGER ) + + 37 THEN - 22 END + - MAX ( DISTINCT 72 ) + - 1 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7584
SELECT - CASE - 95 WHEN + + AVG ( 57 ) + - 1 THEN - 16 * 16 WHEN 73 * 9 + + - 90 * + 69 + 97 THEN NULL END * + 12 / + 10 + - + 98 + COUNT( * ) + - - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-7584
SELECT - CASE - 95 WHEN + + AVG ( 57 ) + - 1 THEN - 16 * 16 WHEN 73 * 9 + + - 90 * + 69 + 97 THEN NULL END * + 12 / + 10 + - + 98 + COUNT ( * ) + - - 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7585
SELECT ALL + CASE + 61 WHEN + - 27 THEN - 90 WHEN - COUNT( * ) + + + 23 - - 62 + + COALESCE ( + 5, + 0 ) * - - 1 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7585
SELECT ALL + CASE + 61 WHEN + - 27 THEN - 90 WHEN - COUNT ( * ) + + + 23 - - 62 + + COALESCE ( + 5, + 0 ) * - - 1 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7586
SELECT DISTINCT 62 DIV - - 99 + + 0 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7586
SELECT DISTINCT 62 / - - 99 + + 0 AS col1
----
0

query II rowsort
SELECT + 37 AS col2, - 8 * + 82
----
37
-656

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7588
SELECT + NULLIF ( + CAST( NULL AS SIGNED ), + 32 * + 97 - - 55 ) * - 62 * 47 - - 19 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7588
SELECT + NULLIF ( + CAST ( NULL AS INTEGER ), + 32 * + 97 - - 55 ) * - 62 * 47 - - 19 + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7589
SELECT ALL - + CAST( NULL AS SIGNED ) + - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-7589
SELECT ALL - + CAST ( NULL AS INTEGER ) + - 74
----
NULL

query I rowsort
SELECT + ( + - 98 )
----
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-7591
SELECT + - 57, - ( + COUNT( * ) ) * 2 + - + 83 AS col2
----
-57
-85

skipif mysql # not compatible
query II rowsort label-7591
SELECT + - 57, - ( + COUNT ( * ) ) * 2 + - + 83 AS col2
----
-57
-85

query I rowsort
SELECT ALL - 25 + + + 86
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7593
SELECT + - SUM( - 43 ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-7593
SELECT + - SUM ( - 43 ) AS col0
----
43

onlyif mysql # DIV for integer division: 
query II rowsort label-7594
SELECT DISTINCT + 12 + - 30, + 44 DIV + 67 * 12 * + 88 + 91 AS col2
----
-18
91

skipif mysql # not compatible
query II rowsort label-7594
SELECT DISTINCT + 12 + - 30, + 44 / + 67 * 12 * + 88 + 91 AS col2
----
-18
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7595
SELECT ALL - CAST( 13 AS SIGNED ) AS col2, + 26 AS col1
----
-13
26

skipif mysql # not compatible
query II rowsort label-7595
SELECT ALL - CAST ( 13 AS INTEGER ) AS col2, + 26 AS col1
----
-13
26

query I rowsort
SELECT 25 * 87
----
2175

query II rowsort
SELECT DISTINCT - ( + - 77 ) AS col2, + 41 AS col1
----
77
41

query I rowsort
SELECT ALL - 95 + 37 AS col2
----
-58

query I rowsort
SELECT 15 * - 24
----
-360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7600
SELECT ALL - CASE 76 WHEN - - 98 - + 54 THEN NULL ELSE - CAST( NULL AS SIGNED ) END * + - 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7600
SELECT ALL - CASE 76 WHEN - - 98 - + 54 THEN NULL ELSE - CAST ( NULL AS INTEGER ) END * + - 18 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7601
SELECT 31 + CAST( + + 58 AS SIGNED ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-7601
SELECT 31 + CAST ( + + 58 AS INTEGER ) AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7602
SELECT ALL - MAX( + 89 ) col0
----
-89

skipif mysql # not compatible
query I rowsort label-7602
SELECT ALL - MAX ( + 89 ) col0
----
-89

query I rowsort
SELECT ALL - 68 * - 2
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-7604
SELECT 96 * + + COUNT( * ) + - - ( - COUNT( * ) ) - - 1 - SUM( 23 ) col1
----
73

skipif mysql # not compatible
query I rowsort label-7604
SELECT 96 * + + COUNT ( * ) + - - ( - COUNT ( * ) ) - - 1 - SUM ( 23 ) col1
----
73

query I rowsort
SELECT 40 * - 75
----
-3000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7606
SELECT + 28 / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7606
SELECT + 28 / + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL 67 * + + 65 AS col2, + 98 + - - 49 * - 62
----
4355
-2940

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7608
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7608
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 6 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7609
SELECT - CAST( + 99 AS SIGNED ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-7609
SELECT - CAST ( + 99 AS INTEGER ) AS col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7610
SELECT ALL + - SUM( 25 ) + + 48 - + 86 * + 32
----
-2729

skipif mysql # not compatible
query I rowsort label-7610
SELECT ALL + - SUM ( 25 ) + + 48 - + 86 * + 32
----
-2729

query I rowsort
SELECT + 3 - + 43 * 75
----
-3222

onlyif mysql # aggregate syntax: 
query I rowsort label-7612
SELECT - - NULLIF ( - + 78, - COUNT( * ) - - 7 * 66 + - 59 ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-7612
SELECT - - NULLIF ( - + 78, - COUNT ( * ) - - 7 * 66 + - 59 ) AS col2
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7613
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) * + 29
----
29

skipif mysql # not compatible
query I rowsort label-7613
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) * + 29
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7614
SELECT 51 DIV + COUNT( * ), 69 AS col1
----
51
69

skipif mysql # not compatible
query II rowsort label-7614
SELECT 51 / + COUNT ( * ), 69 AS col1
----
51
69

query I rowsort
SELECT ALL 70 + - + 75
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7616
SELECT DISTINCT CASE + + COUNT( * ) WHEN - 67 THEN NULL WHEN - + COUNT( * ) / + 35 + + 89 THEN NULL WHEN - + 1 THEN + - COUNT( * ) + - COUNT( * ) * + 59 / + 97 END + + 50 - 24 / - SUM( + 35 ) * - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-7616
SELECT DISTINCT CASE + + COUNT ( * ) WHEN - 67 THEN NULL WHEN - + COUNT ( * ) / + 35 + + 89 THEN NULL WHEN - + 1 THEN + - COUNT ( * ) + - COUNT ( * ) * + 59 / + 97 END + + 50 - 24 / - SUM ( + 35 ) * - 9
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7617
SELECT ALL 97 + 39 - - COUNT( * ) DIV 96
----
136

skipif mysql # not compatible
query I rowsort label-7617
SELECT ALL 97 + 39 - - COUNT ( * ) / 96
----
136

query I rowsort
SELECT ALL 36 + - 97 + + + 95 * - 96 * + 94
----
-857341

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7619
SELECT CASE - 40 WHEN + NULLIF ( + + 82, CAST( NULL AS SIGNED ) + - 63 + - 27 ) / - 97 THEN NULL WHEN + 28 THEN + 75 * + + 61 - + COUNT( ALL - 98 ) + - 28 / 62 / - - COUNT( * ) * - - 64 * + + COUNT( * ) ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7619
SELECT CASE - 40 WHEN + NULLIF ( + + 82, CAST ( NULL AS INTEGER ) + - 63 + - 27 ) / - 97 THEN NULL WHEN + 28 THEN + 75 * + + 61 - + COUNT ( ALL - 98 ) + - 28 / 62 / - - COUNT ( * ) * - - 64 * + + COUNT ( * ) ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7620
SELECT COUNT( * ) * + + 85 DIV - + COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-7620
SELECT COUNT ( * ) * + + 85 / - + COUNT ( * )
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7621
SELECT CASE + + 38 WHEN + CASE 77 WHEN + - COUNT( * ) THEN 65 + - 9 END THEN NULL ELSE - 52 DIV - 47 END + - 4 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-7621
SELECT CASE + + 38 WHEN + CASE 77 WHEN + - COUNT ( * ) THEN 65 + - 9 END THEN NULL ELSE - 52 / - 47 END + - 4 AS col2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7622
SELECT CAST( NULL AS SIGNED ) * - 26 + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7622
SELECT CAST ( NULL AS INTEGER ) * - 26 + - COUNT ( * ) AS col0
----
NULL

query II rowsort
SELECT 34 - - ( - 19 ) AS col0, + 8
----
15
8

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7624
SELECT ALL CAST( + 39 AS SIGNED ) - + 65 DIV CAST( - 62 AS SIGNED ) + 81 AS col0
----
121

skipif mysql # not compatible
query I rowsort label-7624
SELECT ALL CAST ( + 39 AS INTEGER ) - + 65 / CAST ( - 62 AS INTEGER ) + 81 AS col0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-7625
SELECT DISTINCT 93 - - MAX( ALL - 39 ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-7625
SELECT DISTINCT 93 - - MAX ( ALL - 39 ) AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7626
SELECT ALL - MIN( + - 11 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-7626
SELECT ALL - MIN ( + - 11 ) AS col1
----
11

query I rowsort
SELECT 34 + COALESCE ( - 79, - + COALESCE ( - COALESCE ( + 51, + + 89 ), - 0 ), + 61, + CASE - + ( + 20 ) WHEN + - 53 THEN + - 99 ELSE + - 17 END + + 24 - 25 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7628
SELECT ALL - NULLIF ( 21, COALESCE ( + + COUNT( * ), - - COUNT( * ) ) - + 68 * - - ( + - 8 ) / + 56 + + 46 + + - 42 )
----
-21

skipif mysql # not compatible
query I rowsort label-7628
SELECT ALL - NULLIF ( 21, COALESCE ( + + COUNT ( * ), - - COUNT ( * ) ) - + 68 * - - ( + - 8 ) / + 56 + + 46 + + - 42 )
----
-21

query II rowsort
SELECT 50 * 38 * + - 80, - COALESCE ( - 44, - 99 + ( - ( + - 3 ) ) ) AS col2
----
-152000
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7630
SELECT ALL - MAX( + NULLIF ( - - ( + 79 ), - 85 - - - 93 ) )
----
-79

skipif mysql # not compatible
query I rowsort label-7630
SELECT ALL - MAX ( + NULLIF ( - - ( + 79 ), - 85 - - - 93 ) )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7631
SELECT DISTINCT - MIN( - 22 ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-7631
SELECT DISTINCT - MIN ( - 22 ) AS col1
----
22

query I rowsort
SELECT 69 + + - 55
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-7633
SELECT ALL + 10 DIV + 63 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7633
SELECT ALL + 10 / + 63 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT 75 * - COUNT( * ) * - 79 * - COUNT( * ) * + ( + 31 ) * - + CASE + 92 WHEN + ( 21 ) * 84 THEN NULL WHEN + COUNT( * ) THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7634
SELECT 75 * - COUNT ( * ) * - 79 * - COUNT ( * ) * + ( + 31 ) * - + CASE + 92 WHEN + ( 21 ) * 84 THEN NULL WHEN + COUNT ( * ) THEN - COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7635
SELECT DISTINCT CAST( NULL AS SIGNED ) / - CASE - 0 WHEN - ( + - 44 ) THEN ( + - 29 ) ELSE NULL END * + COUNT( * ) + + - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-7635
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - CASE - 0 WHEN - ( + - 44 ) THEN ( + - 29 ) ELSE NULL END * + COUNT ( * ) + + - 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7636
SELECT ALL + 79 * + 99 + + + NULLIF ( - + 66, - 15 ) + - 47 * - - MAX( + - 98 ) + - ( 39 )
----
12322

skipif mysql # not compatible
query I rowsort label-7636
SELECT ALL + 79 * + 99 + + + NULLIF ( - + 66, - 15 ) + - 47 * - - MAX ( + - 98 ) + - ( 39 )
----
12322

query I rowsort
SELECT 48 + ( - 89 ) + - + 91
----
-132

query I rowsort
SELECT ALL + + 33 + + + 45 col2
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7639
SELECT ( + 83 ) + + 60 + + 94 + + ( + + COALESCE ( CAST( + - ( + - 90 ) AS SIGNED ), - ( - - 93 ) * + 87 + COUNT( * ) + + 59 / - 14, + 27 ) ) * 33 / + - 39 + - - 86 + COUNT( DISTINCT - 74 ) * 58 * - COUNT( * ) * CASE 22 WHEN + 35 + 16 + - 39 THEN + + CASE 80 WHEN + + 93 THEN - COUNT( * ) - ( 70 ) + + COUNT( * ) END ELSE NULL END, 57 AS col2
----
NULL
57

skipif mysql # not compatible
query II rowsort label-7639
SELECT ( + 83 ) + + 60 + + 94 + + ( + + COALESCE ( CAST ( + - ( + - 90 ) AS INTEGER ), - ( - - 93 ) * + 87 + COUNT ( * ) + + 59 / - 14, + 27 ) ) * 33 / + - 39 + - - 86 + COUNT ( DISTINCT - 74 ) * 58 * - COUNT ( * ) * CASE 22 WHEN + 35 + 16 + - 39 THEN + + CASE 80 WHEN + + 93 THEN - COUNT ( * ) - ( 70 ) + + COUNT ( * ) END ELSE NULL END, 57 AS col2
----
NULL
57

query I rowsort
SELECT 71 - - 34
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7641
SELECT - - CAST( 75 AS SIGNED )
----
75

skipif mysql # not compatible
query I rowsort label-7641
SELECT - - CAST ( 75 AS INTEGER )
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7642
SELECT - 1 + - COALESCE ( + 10, - 98 * - CAST( - + ( - 80 ) AS SIGNED ) - - 93 ), - ( - 33 ) * - - COUNT( * ) AS col0
----
-11
33

skipif mysql # not compatible
query II rowsort label-7642
SELECT - 1 + - COALESCE ( + 10, - 98 * - CAST ( - + ( - 80 ) AS INTEGER ) - - 93 ), - ( - 33 ) * - - COUNT ( * ) AS col0
----
-11
33

query I rowsort
SELECT - 71 - + 20
----
-91

query I rowsort
SELECT ALL + 27 + - 3 col0
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7645
SELECT ALL - CASE + 7 WHEN + 26 * - CAST( - 58 AS SIGNED ) + - 6 - 72 THEN + - 57 * - 64 + + - MIN( DISTINCT COALESCE ( CAST( - + 28 AS SIGNED ), + 86 ) ) * 10 + - - 15 + 82 WHEN 79 + 43 THEN NULL ELSE ( + 9 ) END
----
-9

skipif mysql # not compatible
query I rowsort label-7645
SELECT ALL - CASE + 7 WHEN + 26 * - CAST ( - 58 AS INTEGER ) + - 6 - 72 THEN + - 57 * - 64 + + - MIN ( DISTINCT COALESCE ( CAST ( - + 28 AS INTEGER ), + 86 ) ) * 10 + - - 15 + 82 WHEN 79 + 43 THEN NULL ELSE ( + 9 ) END
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-7646
SELECT COALESCE ( ( + 64 ), 90 * - COUNT( * ) ), - 51 * - 88 AS col1
----
64
4488

skipif mysql # not compatible
query II rowsort label-7646
SELECT COALESCE ( ( + 64 ), 90 * - COUNT ( * ) ), - 51 * - 88 AS col1
----
64
4488

query I rowsort
SELECT - NULLIF ( + + 65, + 22 ) + - 10 + - + 43 * - - 56 AS col0
----
-2483

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-7648
SELECT DISTINCT - 38 AS col1, ( - 11 ) col0, CAST( - COUNT( * ) AS SIGNED )
----
-38
-11
-1

skipif mysql # not compatible
query III rowsort label-7648
SELECT DISTINCT - 38 AS col1, ( - 11 ) col0, CAST ( - COUNT ( * ) AS INTEGER )
----
-38
-11
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7649
SELECT ALL + MIN( 58 ) + + - 40 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-7649
SELECT ALL + MIN ( 58 ) + + - 40 AS col1
----
18

query I rowsort
SELECT - - 97 + + 79
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-7651
SELECT - + SUM( ALL + 68 ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-7651
SELECT - + SUM ( ALL + 68 ) AS col1
----
-68

query I rowsort
SELECT - + ( - 31 ) + - 18 AS col1
----
13

query I rowsort
SELECT ALL + 11 + + + 45
----
56

query I rowsort
SELECT + 73 * 82 * + - 26
----
-155636

query I rowsort
SELECT DISTINCT + + 44 * + 87 - - 67
----
3895

onlyif mysql # aggregate syntax: 
query II rowsort label-7656
SELECT + 35 AS col1, - 28 * + - 20 * + COUNT( * ) AS col0
----
35
560

skipif mysql # not compatible
query II rowsort label-7656
SELECT + 35 AS col1, - 28 * + - 20 * + COUNT ( * ) AS col0
----
35
560

query I rowsort
SELECT ALL ( + - 87 ) * - + 47
----
4089

query I rowsort
SELECT - 94 * + 41 * + 62 AS col1
----
-238948

query II rowsort
SELECT ALL + 86 AS col2, + 39 AS col1
----
86
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7660
SELECT DISTINCT - CASE ( - NULLIF ( 31, - 69 ) ) WHEN - COUNT( * ) THEN + 77 ELSE + 86 DIV + - 3 END * 60 + - 91
----
1589

skipif mysql # not compatible
query I rowsort label-7660
SELECT DISTINCT - CASE ( - NULLIF ( 31, - 69 ) ) WHEN - COUNT ( * ) THEN + 77 ELSE + 86 / + - 3 END * 60 + - 91
----
1589

onlyif mysql # aggregate syntax: 
query II rowsort label-7661
SELECT 68 * - COUNT( * ) * - COUNT( * ) + + + COUNT( * ) * - 78 * + 91, - NULLIF ( + - COALESCE ( - 78, + + SUM( - + ( + 14 ) ) ), + 69 ) * - COALESCE ( + 15, 77 ) + + + 34 + - + SUM( + 53 ) AS col2
----
-7030
1151

skipif mysql # not compatible
query II rowsort label-7661
SELECT 68 * - COUNT ( * ) * - COUNT ( * ) + + + COUNT ( * ) * - 78 * + 91, - NULLIF ( + - COALESCE ( - 78, + + SUM ( - + ( + 14 ) ) ), + 69 ) * - COALESCE ( + 15, 77 ) + + + 34 + - + SUM ( + 53 ) AS col2
----
-7030
1151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7662
SELECT + MAX( + ( - CAST( + 69 AS SIGNED ) ) ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-7662
SELECT + MAX ( + ( - CAST ( + 69 AS INTEGER ) ) ) AS col2
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-7663
SELECT - 28 + - 54 AS col2, - COUNT( * ) - + ( - - 64 )
----
-82
-65

skipif mysql # not compatible
query II rowsort label-7663
SELECT - 28 + - 54 AS col2, - COUNT ( * ) - + ( - - 64 )
----
-82
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7664
SELECT - 96 * - + 67 - + ( COUNT( * ) ) AS col0
----
6431

skipif mysql # not compatible
query I rowsort label-7664
SELECT - 96 * - + 67 - + ( COUNT ( * ) ) AS col0
----
6431

query I rowsort
SELECT + 4 * 19 AS col1
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7666
SELECT + COALESCE ( + 77, COUNT( * ) DIV + NULLIF ( + - COUNT( + 38 ), 45 + 73 ) + - + 97 + - 97 + - MAX( DISTINCT 72 ) DIV - - 70 ) + 86, - 37 AS col2
----
163
-37

skipif mysql # not compatible
query II rowsort label-7666
SELECT + COALESCE ( + 77, COUNT ( * ) / + NULLIF ( + - COUNT ( + 38 ), 45 + 73 ) + - + 97 + - 97 + - MAX ( DISTINCT 72 ) / - - 70 ) + 86, - 37 AS col2
----
163
-37

query I rowsort
SELECT + ( 23 ) AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7668
SELECT CASE + + 92 WHEN + + MAX( DISTINCT - 94 ) THEN + 11 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7668
SELECT CASE + + 92 WHEN + + MAX ( DISTINCT - 94 ) THEN + 11 END
----
NULL

query I rowsort
SELECT ( + + 58 ) * 63 + + - 97 * - 59
----
9377

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7670
SELECT DISTINCT CAST( + 47 AS SIGNED ) * 36
----
1692

skipif mysql # not compatible
query I rowsort label-7670
SELECT DISTINCT CAST ( + 47 AS INTEGER ) * 36
----
1692

onlyif mysql # aggregate syntax: 
query I rowsort label-7671
SELECT + 50 + - + SUM( - + 79 )
----
129

skipif mysql # not compatible
query I rowsort label-7671
SELECT + 50 + - + SUM ( - + 79 )
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT + - 28 * - + MAX( - 86 ) - 80 AS col1
----
-2488

skipif mysql # not compatible
query I rowsort label-7672
SELECT + - 28 * - + MAX ( - 86 ) - 80 AS col1
----
-2488

query I rowsort
SELECT ALL 80 * + 19 + + 11 AS col2
----
1531

query I rowsort
SELECT DISTINCT - 89 + - 95 col2
----
-184

query II rowsort
SELECT DISTINCT 43 AS col2, 18 + - 19 col1
----
43
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7676
SELECT + SUM( ALL + 61 ) / - 72 * - + COALESCE ( + - 18, - - COUNT( * ) ) / + CASE + - COUNT( * ) WHEN - + 62 THEN NULL WHEN + 59 THEN 91 WHEN - 18 * COUNT( ALL - - 92 ) * + MAX( 65 ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7676
SELECT + SUM ( ALL + 61 ) / - 72 * - + COALESCE ( + - 18, - - COUNT ( * ) ) / + CASE + - COUNT ( * ) WHEN - + 62 THEN NULL WHEN + 59 THEN 91 WHEN - 18 * COUNT ( ALL - - 92 ) * + MAX ( 65 ) THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7677
SELECT + COUNT( * ) col0, 6 + - - 40 AS col1
----
1
46

skipif mysql # not compatible
query II rowsort label-7677
SELECT + COUNT ( * ) col0, 6 + - - 40 AS col1
----
1
46

onlyif mysql # aggregate syntax: 
query II rowsort label-7678
SELECT - + COUNT( * ), 95 * - - 72 AS col1
----
-1
6840

skipif mysql # not compatible
query II rowsort label-7678
SELECT - + COUNT ( * ), 95 * - - 72 AS col1
----
-1
6840

onlyif mysql # aggregate syntax: 
query I rowsort label-7679
SELECT ALL - - 5 + - CASE + 74 WHEN ( 17 ) * + NULLIF ( - - 44, + - AVG ( 28 ) * 53 ) + 18 * + - 4 + - 61 THEN + ( - 23 ) * 29 ELSE NULL END + 57 * - CASE + 87 WHEN 56 + - 22 THEN 11 WHEN 25 * - 9 * + 94 THEN NULL ELSE + + COUNT( * ) END + + 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7679
SELECT ALL - - 5 + - CASE + 74 WHEN ( 17 ) * + NULLIF ( - - 44, + - AVG ( 28 ) * 53 ) + 18 * + - 4 + - 61 THEN + ( - 23 ) * 29 ELSE NULL END + 57 * - CASE + 87 WHEN 56 + - 22 THEN 11 WHEN 25 * - 9 * + 94 THEN NULL ELSE + + COUNT ( * ) END + + 57 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7680
SELECT - - 1 DIV - 25 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7680
SELECT - - 1 / - 25 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7681
SELECT ALL - 96 + - + COUNT( * ) * COUNT( * ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-7681
SELECT ALL - 96 + - + COUNT ( * ) * COUNT ( * ) AS col0
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7682
SELECT - + 26 * - COALESCE ( ( + 68 ), - 83 DIV + COALESCE ( COUNT( * ), COUNT( * ) * 80 + + 91 ) ) AS col1
----
1768

skipif mysql # not compatible
query I rowsort label-7682
SELECT - + 26 * - COALESCE ( ( + 68 ), - 83 / + COALESCE ( COUNT ( * ), COUNT ( * ) * 80 + + 91 ) ) AS col1
----
1768

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7683
SELECT - CAST( NULL AS SIGNED ) AS col1, - MAX( DISTINCT - - 22 ) * + 3 + + COUNT( * ) * + ( 6 ) + 70 AS col2
----
NULL
10

skipif mysql # not compatible
query II rowsort label-7683
SELECT - CAST ( NULL AS INTEGER ) AS col1, - MAX ( DISTINCT - - 22 ) * + 3 + + COUNT ( * ) * + ( 6 ) + 70 AS col2
----
NULL
10

query I rowsort
SELECT + 88 - - 72 + - 67
----
93

query II rowsort
SELECT 0 AS col2, 60 * - - 52 - - - 47
----
0
3073

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7686
SELECT ALL + AVG ( ALL - CAST( NULL AS SIGNED ) ) * CASE - CASE + 77 WHEN 0 / COUNT( DISTINCT + + 36 ) + ( + 71 ) + - COUNT( ALL 48 ) + 86 * + AVG ( ALL - 44 ) * + CAST( NULL AS SIGNED ) THEN 13 / - + NULLIF ( 96, + + ( - 94 ) ) END WHEN + 63 THEN NULL WHEN - 89 + - 15 + 94 THEN NULL ELSE - + 4 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7686
SELECT ALL + AVG ( ALL - CAST ( NULL AS INTEGER ) ) * CASE - CASE + 77 WHEN 0 / COUNT ( DISTINCT + + 36 ) + ( + 71 ) + - COUNT ( ALL 48 ) + 86 * + AVG ( ALL - 44 ) * + CAST ( NULL AS INTEGER ) THEN 13 / - + NULLIF ( 96, + + ( - 94 ) ) END WHEN + 63 THEN NULL WHEN - 89 + - 15 + 94 THEN NULL ELSE - + 4 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7687
SELECT DISTINCT ( + - COUNT( DISTINCT + 17 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7687
SELECT DISTINCT ( + - COUNT ( DISTINCT + 17 ) )
----
-1

query II rowsort
SELECT DISTINCT - 26 - 46 AS col0, - 53 + - + 33 + + 68
----
-72
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7689
SELECT DISTINCT CAST( - COALESCE ( COUNT( * ), - + COUNT( * ) - + ( - 70 ) + - + 76 * - 48 * - MAX( - + 32 ) ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7689
SELECT DISTINCT CAST ( - COALESCE ( COUNT ( * ), - + COUNT ( * ) - + ( - 70 ) + - + 76 * - 48 * - MAX ( - + 32 ) ) AS INTEGER ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7690
SELECT - 86 * + ( - ( 44 ) ) - + ( COUNT( ALL - 20 ) ) col2, 75
----
3783
75

skipif mysql # not compatible
query II rowsort label-7690
SELECT - 86 * + ( - ( 44 ) ) - + ( COUNT ( ALL - 20 ) ) col2, 75
----
3783
75

query I rowsort
SELECT ALL 34 * 73
----
2482

onlyif mysql # aggregate syntax: 
query I rowsort label-7692
SELECT - COUNT( * ) * - 91 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-7692
SELECT - COUNT ( * ) * - 91 AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7693
SELECT + MIN( ALL + ( + 51 ) )
----
51

skipif mysql # not compatible
query I rowsort label-7693
SELECT + MIN ( ALL + ( + 51 ) )
----
51

query I rowsort
SELECT - 10 + - - 56
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7695
SELECT + CASE - - 1 WHEN AVG ( ALL + 70 ) * - - ( + COUNT( * ) ) + - 89 THEN NULL ELSE + 58 - - ( + + 17 ) + + + CASE - - 49 WHEN + NULLIF ( 15, + 63 / + CASE - 83 WHEN 15 THEN NULL ELSE ( - 10 ) END * 84 + + 82 / SUM( - 81 ) * + 63 * + - 29 ) + ( - 44 ) - 53 / + 91 THEN NULL ELSE - - MIN( 13 ) * - - 50 + + 38 END END AS col2
----
763

skipif mysql # not compatible
query I rowsort label-7695
SELECT + CASE - - 1 WHEN AVG ( ALL + 70 ) * - - ( + COUNT ( * ) ) + - 89 THEN NULL ELSE + 58 - - ( + + 17 ) + + + CASE - - 49 WHEN + NULLIF ( 15, + 63 / + CASE - 83 WHEN 15 THEN NULL ELSE ( - 10 ) END * 84 + + 82 / SUM ( - 81 ) * + 63 * + - 29 ) + ( - 44 ) - 53 / + 91 THEN NULL ELSE - - MIN ( 13 ) * - - 50 + + 38 END END AS col2
----
763

query I rowsort
SELECT 82 * + 99 + + + 86
----
8204

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT + 93 - + COUNT( * ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-7697
SELECT + 93 - + COUNT ( * ) AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7698
SELECT - 4 * + COUNT( * ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-7698
SELECT - 4 * + COUNT ( * ) AS col2
----
-4

query I rowsort
SELECT + 10 * - 1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7700
SELECT + CASE + + ( + 37 ) WHEN - + 79 THEN + - 89 + - 88 + + 55 ELSE NULL END - COUNT( DISTINCT - + 61 ) * - 10 - 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7700
SELECT + CASE + + ( + 37 ) WHEN - + 79 THEN + - 89 + - 88 + + 55 ELSE NULL END - COUNT ( DISTINCT - + 61 ) * - 10 - 58 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7701
SELECT + MIN( ALL + 20 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-7701
SELECT + MIN ( ALL + 20 ) AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7702
SELECT ALL + COUNT( * ) * - 75 col0
----
-75

skipif mysql # not compatible
query I rowsort label-7702
SELECT ALL + COUNT ( * ) * - 75 col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT DISTINCT + NULLIF ( 46, - 57 * - COUNT( + - 34 ) * 57 ) * - 55 * + 65 + 6
----
-164444

skipif mysql # not compatible
query I rowsort label-7703
SELECT DISTINCT + NULLIF ( 46, - 57 * - COUNT ( + - 34 ) * 57 ) * - 55 * + 65 + 6
----
-164444

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7704
SELECT 19 * + 12 * + COUNT( * ) + - 61 - - 81 - + - 25 DIV + MIN( - + 65 ) AS col2
----
248

skipif mysql # not compatible
query I rowsort label-7704
SELECT 19 * + 12 * + COUNT ( * ) + - 61 - - 81 - + - 25 / + MIN ( - + 65 ) AS col2
----
248

onlyif mysql # DIV for integer division: 
query I rowsort label-7705
SELECT ALL 21 DIV + 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7705
SELECT ALL 21 / + 83 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7706
SELECT + 26 DIV - 51
----
0

skipif mysql # not compatible
query I rowsort label-7706
SELECT + 26 / - 51
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7707
SELECT ALL 35 * 50 + 63 + + COUNT( * ) - COUNT( * ) + ( + - 50 ) + CASE + CASE - 65 WHEN 86 * - - CAST( NULL AS SIGNED ) * - COUNT( * ) THEN COUNT( * ) ELSE + + 22 * - 15 / 88 * - - 60 * - + 3 END WHEN - 33 THEN - - 10 * + 97 ELSE 81 * + COUNT( * ) + - 66 END
----
1778

skipif mysql # not compatible
query I rowsort label-7707
SELECT ALL 35 * 50 + 63 + + COUNT ( * ) - COUNT ( * ) + ( + - 50 ) + CASE + CASE - 65 WHEN 86 * - - CAST ( NULL AS INTEGER ) * - COUNT ( * ) THEN COUNT ( * ) ELSE + + 22 * - 15 / 88 * - - 60 * - + 3 END WHEN - 33 THEN - - 10 * + 97 ELSE 81 * + COUNT ( * ) + - 66 END
----
1778

query I rowsort
SELECT + + 66 * 7 * 5 AS col1
----
2310

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7709
SELECT 11 + + 58 DIV COUNT( * ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-7709
SELECT 11 + + 58 / COUNT ( * ) AS col1
----
69

query I rowsort
SELECT 88 - + 35 + 93 AS col0
----
146

query I rowsort
SELECT - ( ( - 44 ) )
----
44

query I rowsort
SELECT - 6 + + 25
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7713
SELECT ( - - SUM( + CAST( NULL AS SIGNED ) ) ) * + + 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7713
SELECT ( - - SUM ( + CAST ( NULL AS INTEGER ) ) ) * + + 2 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7714
SELECT ALL - COUNT( * ) - + CASE + + 54 WHEN - MAX( DISTINCT 92 ) THEN + 30 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7714
SELECT ALL - COUNT ( * ) - + CASE + + 54 WHEN - MAX ( DISTINCT 92 ) THEN + 30 END
----
NULL

query I rowsort
SELECT 29 * - + 88 * + 11
----
-28072

onlyif mysql # DIV for integer division: 
query I rowsort label-7716
SELECT 59 + - 75 DIV + 44 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-7716
SELECT 59 + - 75 / + 44 AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7717
SELECT + 55 - COUNT( * ) + + 54 * + + 98 * 1
----
5346

skipif mysql # not compatible
query I rowsort label-7717
SELECT + 55 - COUNT ( * ) + + 54 * + + 98 * 1
----
5346

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT ALL MIN( + 34 )
----
34

skipif mysql # not compatible
query I rowsort label-7718
SELECT ALL MIN ( + 34 )
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7719
SELECT COALESCE ( - ( + NULLIF ( - 25, 85 * - 52 ) ), - COUNT( * ), + CASE - 8 WHEN + 73 THEN NULL ELSE - 18 END + + 66 ) + MIN( + 22 ) * + CASE - 46 WHEN - COALESCE ( + NULLIF ( + - 26, - - ( - 32 ) ), + - 26 * + 81 ) * + 29 / - 53 / - + 16 - - + MAX( DISTINCT 19 ) / + 80 * - 45 THEN NULL WHEN - 7 THEN - 23 * 98 - + SUM( + CAST( + 50 AS SIGNED ) ) END * - 44 * + COUNT( - 84 ) * + - CASE + 8 WHEN + + CAST( COUNT( * ) AS DECIMAL ) THEN SUM( + 35 ) * - + CAST( NULL AS SIGNED ) END * + - 8 + + 8 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7719
SELECT COALESCE ( - ( + NULLIF ( - 25, 85 * - 52 ) ), - COUNT ( * ), + CASE - 8 WHEN + 73 THEN NULL ELSE - 18 END + + 66 ) + MIN ( + 22 ) * + CASE - 46 WHEN - COALESCE ( + NULLIF ( + - 26, - - ( - 32 ) ), + - 26 * + 81 ) * + 29 / - 53 / - + 16 - - + MAX ( DISTINCT 19 ) / + 80 * - 45 THEN NULL WHEN - 7 THEN - 23 * 98 - + SUM ( + CAST ( + 50 AS INTEGER ) ) END * - 44 * + COUNT ( - 84 ) * + - CASE + 8 WHEN + + CAST ( COUNT ( * ) AS REAL ) THEN SUM ( + 35 ) * - + CAST ( NULL AS INTEGER ) END * + - 8 + + 8 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ( - 38 ) + + 12
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7721
SELECT + 13 * + CAST( + 72 AS SIGNED ) col1
----
936

skipif mysql # not compatible
query I rowsort label-7721
SELECT + 13 * + CAST ( + 72 AS INTEGER ) col1
----
936

onlyif mysql # DIV for integer division: 
query I rowsort label-7722
SELECT ALL - - 85 DIV - 76 + + NULLIF ( 64, - 36 ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-7722
SELECT ALL - - 85 / - 76 + + NULLIF ( 64, - 36 ) AS col0
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-7723
SELECT DISTINCT 11 DIV - 32 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7723
SELECT DISTINCT 11 / - 32 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7724
SELECT DISTINCT COUNT( + 24 ) * - + 71
----
-71

skipif mysql # not compatible
query I rowsort label-7724
SELECT DISTINCT COUNT ( + 24 ) * - + 71
----
-71

query II rowsort
SELECT - 51, + 11 AS col1
----
-51
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7726
SELECT + 63 * ( - + 19 ) + 67 - + + 1 + + + COUNT( * ) + + CAST( NULL AS SIGNED ) * + MIN( - ( + + 78 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7726
SELECT + 63 * ( - + 19 ) + 67 - + + 1 + + + COUNT ( * ) + + CAST ( NULL AS INTEGER ) * + MIN ( - ( + + 78 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7727
SELECT ALL - COUNT( DISTINCT + 34 )
----
-1

skipif mysql # not compatible
query I rowsort label-7727
SELECT ALL - COUNT ( DISTINCT + 34 )
----
-1

query I rowsort
SELECT DISTINCT - 5 + 66 AS col2
----
61

query I rowsort
SELECT ALL + 51 + 22 + - + CASE 69 WHEN - 99 - - CASE 65 WHEN + - 67 THEN + 42 ELSE + 89 END + + + 66 / 19 * 2 + + + 8 THEN NULL ELSE - + 17 END
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7730
SELECT ALL - SUM( ALL + + 39 ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-7730
SELECT ALL - SUM ( ALL + + 39 ) AS col2
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7731
SELECT DISTINCT + 33 + 69 * 64 * + - NULLIF ( + - COUNT( * ), - COUNT( * ) ) AS col0, CAST( NULL AS SIGNED ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7731
SELECT DISTINCT + 33 + 69 * 64 * + - NULLIF ( + - COUNT ( * ), - COUNT ( * ) ) AS col0, CAST ( NULL AS INTEGER ) AS col1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7732
SELECT COUNT( * ) * 72 * + - 10 + - 31 * - 62 * - - 93 col0
----
178026

skipif mysql # not compatible
query I rowsort label-7732
SELECT COUNT ( * ) * 72 * + - 10 + - 31 * - 62 * - - 93 col0
----
178026

query II rowsort
SELECT DISTINCT - 6 + - - 89 + - 32, - 90 + 9 AS col2
----
51
-81

query I rowsort
SELECT ALL - 88 + + - 51
----
-139

onlyif mysql # DIV for integer division: 
query I rowsort label-7735
SELECT 55 DIV 4
----
13

skipif mysql # not compatible
query I rowsort label-7735
SELECT 55 / 4
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7736
SELECT + + CAST( - - COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-7736
SELECT + + CAST ( - - COUNT ( * ) AS INTEGER )
----
1

query I rowsort
SELECT + 28 * - + 82 AS col2
----
-2296

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7738
SELECT 45 * + CASE 42 WHEN - 67 + - + 15 + 23 + - + 95 + - COUNT( * ) - 79 + NULLIF ( 60, - + 37 ) * 4 * - CAST( NULL AS SIGNED ) THEN - - 12 + 93 END + 3 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7738
SELECT 45 * + CASE 42 WHEN - 67 + - + 15 + 23 + - + 95 + - COUNT ( * ) - 79 + NULLIF ( 60, - + 37 ) * 4 * - CAST ( NULL AS INTEGER ) THEN - - 12 + 93 END + 3 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7739
SELECT ALL - - 13 + - 2 DIV - 51 AS col1, 8
----
13
8

skipif mysql # not compatible
query II rowsort label-7739
SELECT ALL - - 13 + - 2 / - 51 AS col1, 8
----
13
8

query I rowsort
SELECT ALL + 82 + 20
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-7741
SELECT 1 * + 11 DIV - 59 - + 88
----
-88

skipif mysql # not compatible
query I rowsort label-7741
SELECT 1 * + 11 / - 59 - + 88
----
-88

query II rowsort
SELECT - 18 AS col1, - 39 AS col2
----
-18
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-7743
SELECT - COUNT( * ) col0, 9 * + 46
----
-1
414

skipif mysql # not compatible
query II rowsort label-7743
SELECT - COUNT ( * ) col0, 9 * + 46
----
-1
414

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7744
SELECT CASE + 95 WHEN - 63 THEN NULL ELSE COUNT( * ) + CAST( NULL AS SIGNED ) / - 72 END AS col0, 75
----
NULL
75

skipif mysql # not compatible
query II rowsort label-7744
SELECT CASE + 95 WHEN - 63 THEN NULL ELSE COUNT ( * ) + CAST ( NULL AS INTEGER ) / - 72 END AS col0, 75
----
NULL
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7745
SELECT 72 + + COALESCE ( + COUNT( DISTINCT + - 20 ), - 28 )
----
73

skipif mysql # not compatible
query I rowsort label-7745
SELECT 72 + + COALESCE ( + COUNT ( DISTINCT + - 20 ), - 28 )
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-7746
SELECT + 44 * + 91 - + 50, + CASE 71 WHEN - ( - - SUM( ALL 9 ) ) * - + COUNT( * ) THEN SUM( - - 39 ) + - ( + ( + - CASE 3 WHEN 67 * - 47 THEN NULL WHEN + 60 THEN 49 END ) ) END * - + 35 * - 4 AS col0
----
3954
NULL

skipif mysql # not compatible
query II rowsort label-7746
SELECT + 44 * + 91 - + 50, + CASE 71 WHEN - ( - - SUM ( ALL 9 ) ) * - + COUNT ( * ) THEN SUM ( - - 39 ) + - ( + ( + - CASE 3 WHEN 67 * - 47 THEN NULL WHEN + 60 THEN 49 END ) ) END * - + 35 * - 4 AS col0
----
3954
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7747
SELECT + 53 + - COUNT( * ) + + 25
----
77

skipif mysql # not compatible
query I rowsort label-7747
SELECT + 53 + - COUNT ( * ) + + 25
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-7748
SELECT 5 * - + SUM( - 28 ), - 98 AS col1
----
140
-98

skipif mysql # not compatible
query II rowsort label-7748
SELECT 5 * - + SUM ( - 28 ), - 98 AS col1
----
140
-98

query II rowsort
SELECT ALL 52, - 11 col1
----
52
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7750
SELECT COUNT( * ) * + - 60 * - + COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-7750
SELECT COUNT ( * ) * + - 60 * - + COUNT ( * )
----
60

query I rowsort
SELECT 15 - + + CASE - 19 WHEN + - 69 THEN - - 77 END + 98
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7752
SELECT COUNT( * ) + - - 16 + + 96 * - 61 - + 82 AS col1
----
-5921

skipif mysql # not compatible
query I rowsort label-7752
SELECT COUNT ( * ) + - - 16 + + 96 * - 61 - + 82 AS col1
----
-5921

query I rowsort
SELECT 69 * - + 59 col2
----
-4071

onlyif mysql # aggregate syntax: 
query I rowsort label-7754
SELECT ALL COALESCE ( + 6, + COUNT( * ) ) + 55 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-7754
SELECT ALL COALESCE ( + 6, + COUNT ( * ) ) + 55 AS col0
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7755
SELECT ALL + 46 * + ( 94 ) * CAST( + - ( - - 55 ) AS SIGNED ) + - + 99 DIV + - 59 DIV - COUNT( * ) + - - 65 AS col2
----
-237756

skipif mysql # not compatible
query I rowsort label-7755
SELECT ALL + 46 * + ( 94 ) * CAST ( + - ( - - 55 ) AS INTEGER ) + - + 99 / + - 59 / - COUNT ( * ) + - - 65 AS col2
----
-237756

query I rowsort
SELECT NULLIF ( + 22, - + 3 )
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-7757
SELECT 78 DIV + 96 * - 87
----
0

skipif mysql # not compatible
query I rowsort label-7757
SELECT 78 / + 96 * - 87
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7758
SELECT COALESCE ( + 51, - CAST( NULL AS SIGNED ) ) + + CAST( NULL AS SIGNED ) * - 23 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7758
SELECT COALESCE ( + 51, - CAST ( NULL AS INTEGER ) ) + + CAST ( NULL AS INTEGER ) * - 23 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT 84 * - CASE - 27 WHEN - + 7 * + + 72 + 53 THEN NULL WHEN 2 + COUNT( DISTINCT 21 ) THEN 25 + - ( - + 40 ) / + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7759
SELECT 84 * - CASE - 27 WHEN - + 7 * + + 72 + 53 THEN NULL WHEN 2 + COUNT ( DISTINCT 21 ) THEN 25 + - ( - + 40 ) / + COUNT ( * ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7760
SELECT ALL 9 * 50 AS col1, 20 + COUNT( * ) * - SUM( DISTINCT 81 )
----
450
-61

skipif mysql # not compatible
query II rowsort label-7760
SELECT ALL 9 * 50 AS col1, 20 + COUNT ( * ) * - SUM ( DISTINCT 81 )
----
450
-61

query I rowsort
SELECT - 79 - 71 + - 4 col1
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-7762
SELECT CASE - COUNT( DISTINCT - + 8 ) WHEN + 21 THEN + 60 WHEN 74 THEN NULL WHEN - 97 * - 85 - - 63 THEN 14 * + COUNT( * ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7762
SELECT CASE - COUNT ( DISTINCT - + 8 ) WHEN + 21 THEN + 60 WHEN 74 THEN NULL WHEN - 97 * - 85 - - 63 THEN 14 * + COUNT ( * ) END col0
----
NULL

query I rowsort
SELECT ALL + 85 * + + 7 * - ( - 20 ) - + 96 col2
----
11804

query I rowsort
SELECT - 65 * 86 AS col1
----
-5590

query I rowsort
SELECT DISTINCT - 61 * + 95 + - 2
----
-5797

onlyif mysql # aggregate syntax: 
query I rowsort label-7766
SELECT ALL + 56 * 91 - - + COUNT( * ) AS col2
----
5097

skipif mysql # not compatible
query I rowsort label-7766
SELECT ALL + 56 * 91 - - + COUNT ( * ) AS col2
----
5097

onlyif mysql # aggregate syntax: 
query I rowsort label-7767
SELECT - + 39 * + COUNT( * ) * - 13 * - COUNT( * ) * 97
----
-49179

skipif mysql # not compatible
query I rowsort label-7767
SELECT - + 39 * + COUNT ( * ) * - 13 * - COUNT ( * ) * 97
----
-49179

query I rowsort
SELECT + - 27 * - 37 + - + 36
----
963

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7769
SELECT DISTINCT + COUNT( * ) DIV - 51 * - + 44
----
0

skipif mysql # not compatible
query I rowsort label-7769
SELECT DISTINCT + COUNT ( * ) / - 51 * - + 44
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7770
SELECT - + 89 DIV - COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-7770
SELECT - + 89 / - COUNT ( * )
----
89

query I rowsort
SELECT ALL + 67 * + + 66 AS col1
----
4422

query I rowsort
SELECT - + 87 + - 27
----
-114

query I rowsort
SELECT ALL + NULLIF ( + 11, + - ( - 76 ) + 91 ) * - 87 AS col2
----
-957

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7774
SELECT - - 26 * - - 24 + + - COUNT( * ) * - + 67 AS col2, CAST( - 31 AS SIGNED ) + + + 70 AS col0
----
691
39

skipif mysql # not compatible
query II rowsort label-7774
SELECT - - 26 * - - 24 + + - COUNT ( * ) * - + 67 AS col2, CAST ( - 31 AS INTEGER ) + + + 70 AS col0
----
691
39

onlyif mysql # aggregate syntax: 
query II rowsort label-7775
SELECT - + 37 + - - COUNT( * ) AS col1, + 29 + + - COALESCE ( 64, 84 * - 77 * + 33 ) AS col2
----
-36
-35

skipif mysql # not compatible
query II rowsort label-7775
SELECT - + 37 + - - COUNT ( * ) AS col1, + 29 + + - COALESCE ( 64, 84 * - 77 * + 33 ) AS col2
----
-36
-35

query I rowsort
SELECT - 11 + + + 95 * + 16 col2
----
1509

onlyif mysql # DIV for integer division: 
query I rowsort label-7777
SELECT DISTINCT + 77 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-7777
SELECT DISTINCT + 77 / 98
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7778
SELECT ALL - CAST( NULL AS DECIMAL ) + - 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7778
SELECT ALL - CAST ( NULL AS REAL ) + - 60 AS col2
----
NULL

query I rowsort
SELECT - 88 + + 69 - - 48
----
29

query I rowsort
SELECT + 93 - 0
----
93

query I rowsort
SELECT DISTINCT 17 + - - 27 col1
----
44

query I rowsort
SELECT ALL 75 + - 78 + + 27 * - - 50 AS col1
----
1347

query I rowsort
SELECT + 57 + 30
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7784
SELECT DISTINCT 69 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7784
SELECT DISTINCT 69 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 4 * + 28 * 4
----
448

onlyif mysql # aggregate syntax: 
query I rowsort label-7786
SELECT + COUNT( * ) + - 28
----
-27

skipif mysql # not compatible
query I rowsort label-7786
SELECT + COUNT ( * ) + - 28
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7787
SELECT + 86 + + - 3 + MIN( ALL 5 ) * 3 * - + MAX( + - 83 ) + ( 24 ) AS col1
----
1352

skipif mysql # not compatible
query I rowsort label-7787
SELECT + 86 + + - 3 + MIN ( ALL 5 ) * 3 * - + MAX ( + - 83 ) + ( 24 ) AS col1
----
1352

query I rowsort
SELECT + 15 + + 84 AS col1
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7789
SELECT + CAST( + + 48 AS SIGNED ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-7789
SELECT + CAST ( + + 48 AS INTEGER ) AS col2
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7790
SELECT 25 / + CAST( NULL AS SIGNED ) + - ( + 27 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7790
SELECT 25 / + CAST ( NULL AS INTEGER ) + - ( + 27 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7791
SELECT ALL NULLIF ( + + 67, - - CASE - 48 WHEN 74 THEN - 69 DIV + + 25 END ) DIV - COUNT( ALL - 51 ) - 18 * COUNT( * ) * COALESCE ( - 88, - CASE 13 WHEN - 2 + 5 THEN NULL WHEN + + ( - 28 ) + - 88 THEN NULL WHEN 58 THEN + 3 ELSE + 29 END )
----
1517

skipif mysql # not compatible
query I rowsort label-7791
SELECT ALL NULLIF ( + + 67, - - CASE - 48 WHEN 74 THEN - 69 / + + 25 END ) / - COUNT ( ALL - 51 ) - 18 * COUNT ( * ) * COALESCE ( - 88, - CASE 13 WHEN - 2 + 5 THEN NULL WHEN + + ( - 28 ) + - 88 THEN NULL WHEN 58 THEN + 3 ELSE + 29 END )
----
1517

onlyif mysql # aggregate syntax: 
query I rowsort label-7792
SELECT + ( 73 ) * - COUNT( * )
----
-73

skipif mysql # not compatible
query I rowsort label-7792
SELECT + ( 73 ) * - COUNT ( * )
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7793
SELECT + CAST( 32 AS SIGNED ) + - MIN( DISTINCT 20 ) * 78 AS col2
----
-1528

skipif mysql # not compatible
query I rowsort label-7793
SELECT + CAST ( 32 AS INTEGER ) + - MIN ( DISTINCT 20 ) * 78 AS col2
----
-1528

onlyif mysql # aggregate syntax: 
query I rowsort label-7794
SELECT + COUNT( * ) * 55 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-7794
SELECT + COUNT ( * ) * 55 AS col1
----
55

query I rowsort
SELECT 16 * + ( + COALESCE ( + 71, - 73 ) ) + + 53
----
1189

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT DISTINCT - COUNT( * ) * 11
----
-11

skipif mysql # not compatible
query I rowsort label-7796
SELECT DISTINCT - COUNT ( * ) * 11
----
-11

query I rowsort
SELECT + 14 * - 85 col1
----
-1190

onlyif mysql # aggregate syntax: 
query I rowsort label-7798
SELECT ( + 83 ) * 72 - - MIN( - 91 - 21 ) col2
----
5864

skipif mysql # not compatible
query I rowsort label-7798
SELECT ( + 83 ) * 72 - - MIN ( - 91 - 21 ) col2
----
5864

query I rowsort
SELECT - 90 * - ( - 97 ) AS col1
----
-8730

query I rowsort
SELECT ALL 96 * - 69 AS col0
----
-6624

query I rowsort
SELECT + ( 82 ) AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7802
SELECT - 7 + COUNT( * ) * 2 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-7802
SELECT - 7 + COUNT ( * ) * 2 AS col0
----
-5

query I rowsort
SELECT + ( - 71 ) AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7804
SELECT COUNT( * ) * + 2 + 55 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-7804
SELECT COUNT ( * ) * + 2 + 55 AS col2
----
57

query I rowsort
SELECT + 54 * - 65
----
-3510

query I rowsort
SELECT ALL 60 * + 35
----
2100

onlyif mysql # aggregate syntax: 
query I rowsort label-7807
SELECT CASE + COUNT( * ) WHEN + 7 THEN NULL WHEN - 40 THEN 85 + + 16 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7807
SELECT CASE + COUNT ( * ) WHEN + 7 THEN NULL WHEN - 40 THEN 85 + + 16 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 81 * + 51 + - 16 AS col2
----
4115

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7809
SELECT - 58 * CASE + 3 WHEN - 60 * - 85 - - 80 THEN NULL WHEN ( + 65 ) * CAST( NULL AS DECIMAL ) - 31 * 37 THEN NULL ELSE - 57 * CAST( NULL AS SIGNED ) END - CASE + 91 WHEN - 39 THEN 81 * ( 1 ) WHEN 78 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7809
SELECT - 58 * CASE + 3 WHEN - 60 * - 85 - - 80 THEN NULL WHEN ( + 65 ) * CAST ( NULL AS REAL ) - 31 * 37 THEN NULL ELSE - 57 * CAST ( NULL AS INTEGER ) END - CASE + 91 WHEN - 39 THEN 81 * ( 1 ) WHEN 78 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7810
SELECT - 24 * + COUNT( * ) col2
----
-24

skipif mysql # not compatible
query I rowsort label-7810
SELECT - 24 * + COUNT ( * ) col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7811
SELECT ALL + 81 * COUNT( * ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-7811
SELECT ALL + 81 * COUNT ( * ) AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7812
SELECT DISTINCT + MIN( 73 ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-7812
SELECT DISTINCT + MIN ( 73 ) AS col1
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7813
SELECT 82 * 24 + 72 * - CASE 0 * 40 + - 10 WHEN + COUNT( * ) THEN NULL ELSE - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7813
SELECT 82 * 24 + 72 * - CASE 0 * 40 + - 10 WHEN + COUNT ( * ) THEN NULL ELSE - CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7814
SELECT ALL + 49 * 99 + 90 DIV + 8
----
4862

skipif mysql # not compatible
query I rowsort label-7814
SELECT ALL + 49 * 99 + 90 / + 8
----
4862

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT - CASE + 20 WHEN + 67 THEN NULL ELSE - 29 - 81 END + + COUNT( * )
----
111

skipif mysql # not compatible
query I rowsort label-7815
SELECT - CASE + 20 WHEN + 67 THEN NULL ELSE - 29 - 81 END + + COUNT ( * )
----
111

query I rowsort
SELECT - 70 + 26 AS col0
----
-44

query I rowsort
SELECT ALL 64 * 20 + 73 AS col1
----
1353

query I rowsort
SELECT ALL + 64 * 25 AS col2
----
1600

onlyif mysql # aggregate syntax: 
query I rowsort label-7819
SELECT - CASE 21 WHEN + 54 / + 23 THEN - 86 WHEN + COUNT( * ) * 64 THEN - 12 END * 38
----
NULL

skipif mysql # not compatible
query I rowsort label-7819
SELECT - CASE 21 WHEN + 54 / + 23 THEN - 86 WHEN + COUNT ( * ) * 64 THEN - 12 END * 38
----
NULL

query I rowsort
SELECT ALL - 92 + - 99
----
-191

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7821
SELECT - 10 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7821
SELECT - 10 / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 28 * - 40 col0
----
1120

query I rowsort
SELECT 49 + 11 * 37 AS col0
----
456

onlyif mysql # DIV for integer division: 
query I rowsort label-7824
SELECT ALL - 29 DIV 28
----
-1

skipif mysql # not compatible
query I rowsort label-7824
SELECT ALL - 29 / 28
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7825
SELECT 59 + + 6 DIV 37
----
59

skipif mysql # not compatible
query I rowsort label-7825
SELECT 59 + + 6 / 37
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-7826
SELECT 94 DIV + 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7826
SELECT 94 / + 98 AS col1
----
0

query I rowsort
SELECT 68 + 11 AS col0
----
79

query I rowsort
SELECT 74 * - 31
----
-2294

query I rowsort
SELECT 84 - + 63
----
21

query I rowsort
SELECT ALL NULLIF ( ( - 68 ), - 44 ) * - 32
----
2176

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT MAX( DISTINCT 68 ) - + 8 * 84 AS col2
----
-604

skipif mysql # not compatible
query I rowsort label-7831
SELECT MAX ( DISTINCT 68 ) - + 8 * 84 AS col2
----
-604

query I rowsort
SELECT ALL + 57 * - 83
----
-4731

query I rowsort
SELECT - 56 * - 21 AS col1
----
1176

query I rowsort
SELECT ALL - - NULLIF ( - 13, - 99 ) AS col1
----
-13

query I rowsort
SELECT ALL - - COALESCE ( + 71, - 42 ) AS col1
----
71

query I rowsort
SELECT - 14 + + ( 19 ) AS col2
----
5

query I rowsort
SELECT - 83 * 58
----
-4814

query I rowsort
SELECT + 23 * 36 AS col2
----
828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7839
SELECT - CAST( COUNT( * ) AS SIGNED ) - + COALESCE ( - 43, - 9 + ( 73 ) ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-7839
SELECT - CAST ( COUNT ( * ) AS INTEGER ) - + COALESCE ( - 43, - 9 + ( 73 ) ) AS col1
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7840
SELECT CAST( 4 AS SIGNED ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-7840
SELECT CAST ( 4 AS INTEGER ) AS col1
----
4

query I rowsort
SELECT 73 * - 99 - + ( 98 ) col1
----
-7325

onlyif mysql # aggregate syntax: 
query I rowsort label-7842
SELECT ALL - + SUM( DISTINCT - 68 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-7842
SELECT ALL - + SUM ( DISTINCT - 68 ) AS col1
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7843
SELECT + 50 DIV - MIN( 36 )
----
-1

skipif mysql # not compatible
query I rowsort label-7843
SELECT + 50 / - MIN ( 36 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7844
SELECT DISTINCT + + 72 + CASE - COALESCE ( + 73, MAX( ALL 57 ) * - 40, - 49 ) WHEN - 37 THEN 74 / + 15 + CAST( 44 AS SIGNED ) * NULLIF ( COALESCE ( + 6, - 92 ), COUNT( * ) * CAST( NULL AS SIGNED ) ) WHEN - 66 THEN + 93 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7844
SELECT DISTINCT + + 72 + CASE - COALESCE ( + 73, MAX ( ALL 57 ) * - 40, - 49 ) WHEN - 37 THEN 74 / + 15 + CAST ( 44 AS INTEGER ) * NULLIF ( COALESCE ( + 6, - 92 ), COUNT ( * ) * CAST ( NULL AS INTEGER ) ) WHEN - 66 THEN + 93 END AS col2
----
NULL

query I rowsort
SELECT ALL 3 + - 63
----
-60

query I rowsort
SELECT DISTINCT - 18 + - 35
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7847
SELECT COALESCE ( 43, - 35 ) + MAX( ( + CAST( 64 AS SIGNED ) ) + 71 )
----
178

skipif mysql # not compatible
query I rowsort label-7847
SELECT COALESCE ( 43, - 35 ) + MAX ( ( + CAST ( 64 AS INTEGER ) ) + 71 )
----
178

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7848
SELECT ALL + COUNT( * ) DIV - 60
----
0

skipif mysql # not compatible
query I rowsort label-7848
SELECT ALL + COUNT ( * ) / - 60
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7849
SELECT 49 DIV + 8 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-7849
SELECT 49 / + 8 AS col2
----
6

query I rowsort
SELECT DISTINCT - 85 + - 1 AS col1
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7851
SELECT - - 89 * - CASE COUNT( * ) * 44 WHEN + 60 + 41 THEN 42 + - COUNT( * ) / 61 WHEN - CASE COUNT( 92 ) WHEN + 83 - - CAST( + CAST( 15 AS SIGNED ) AS SIGNED ) THEN - COUNT( * ) + + 22 ELSE COUNT( * ) END THEN NULL ELSE NULL END + 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7851
SELECT - - 89 * - CASE COUNT ( * ) * 44 WHEN + 60 + 41 THEN 42 + - COUNT ( * ) / 61 WHEN - CASE COUNT ( 92 ) WHEN + 83 - - CAST ( + CAST ( 15 AS INTEGER ) AS INTEGER ) THEN - COUNT ( * ) + + 22 ELSE COUNT ( * ) END THEN NULL ELSE NULL END + 82 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7852
SELECT - MAX( + 76 ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-7852
SELECT - MAX ( + 76 ) AS col2
----
-76

query I rowsort
SELECT 29 + + 50
----
79

query I rowsort
SELECT + 22 * 78 AS col0
----
1716

query I rowsort
SELECT ALL - 24 + + 72
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7856
SELECT + CASE 90 WHEN - 33 THEN + CASE 54 WHEN 98 + ( - 25 ) THEN + 34 WHEN 86 THEN CAST( NULL AS SIGNED ) ELSE NULL END + - ( + COUNT( * ) ) * 91 WHEN - 77 * + 54 THEN NULL WHEN + COALESCE ( - 11, ( 26 ) ) * 68 THEN NULL END + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-7856
SELECT + CASE 90 WHEN - 33 THEN + CASE 54 WHEN 98 + ( - 25 ) THEN + 34 WHEN 86 THEN CAST ( NULL AS INTEGER ) ELSE NULL END + - ( + COUNT ( * ) ) * 91 WHEN - 77 * + 54 THEN NULL WHEN + COALESCE ( - 11, ( 26 ) ) * 68 THEN NULL END + 31
----
NULL

query I rowsort
SELECT ( - 7 ) + - 75
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-7858
SELECT 78 + - - 99 + 83 DIV 17
----
181

skipif mysql # not compatible
query I rowsort label-7858
SELECT 78 + - - 99 + 83 / 17
----
181

query I rowsort
SELECT 49 + - - 6 + 14 AS col1
----
69

query I rowsort
SELECT 85 + - 57 AS col1
----
28

query I rowsort
SELECT DISTINCT - 42 * ( 37 ) AS col2
----
-1554

query I rowsort
SELECT 74 * + + 90 col2
----
6660

onlyif mysql # aggregate syntax: 
query I rowsort label-7863
SELECT DISTINCT - COUNT( * ) * + 48 AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-7863
SELECT DISTINCT - COUNT ( * ) * + 48 AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT DISTINCT 92 * COUNT( * ) * - COUNT( * )
----
-92

skipif mysql # not compatible
query I rowsort label-7864
SELECT DISTINCT 92 * COUNT ( * ) * - COUNT ( * )
----
-92

query I rowsort
SELECT ALL - 25 * - 88
----
2200

onlyif mysql # DIV for integer division: 
query I rowsort label-7866
SELECT 3 + 52 DIV + 11 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-7866
SELECT 3 + 52 / + 11 AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7867
SELECT - + COUNT( ALL + + 92 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7867
SELECT - + COUNT ( ALL + + 92 ) AS col1
----
-1

query I rowsort
SELECT + 7 + + - 31 + + 8
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT + 81 + + - COUNT( * ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-7869
SELECT + 81 + + - COUNT ( * ) AS col2
----
80

query I rowsort
SELECT ALL - COALESCE ( 96, COALESCE ( - 62, + 14 ) + - 76 )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7871
SELECT + COUNT( * ) * + - 53
----
-53

skipif mysql # not compatible
query I rowsort label-7871
SELECT + COUNT ( * ) * + - 53
----
-53

query I rowsort
SELECT - ( + 12 ) * + 65 AS col1
----
-780

query I rowsort
SELECT + 95 + + 14
----
109

query I rowsort
SELECT ALL + + 39 * - + 42 + + 4 * + 32 AS col1
----
-1510

onlyif mysql # aggregate syntax: 
query I rowsort label-7875
SELECT + 91 * - 3 * - 71 + COUNT( * ) AS col2
----
19384

skipif mysql # not compatible
query I rowsort label-7875
SELECT + 91 * - 3 * - 71 + COUNT ( * ) AS col2
----
19384

query I rowsort
SELECT DISTINCT - 78 * - 17 AS col1
----
1326

query I rowsort
SELECT ALL - - 21 * - 41 * - 80 + + 96 col0
----
68976

query I rowsort
SELECT + + ( 40 ) col0
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7879
SELECT - COUNT( * ) + - 88 + CAST( - 98 AS SIGNED ) AS col2
----
-187

skipif mysql # not compatible
query I rowsort label-7879
SELECT - COUNT ( * ) + - 88 + CAST ( - 98 AS INTEGER ) AS col2
----
-187

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7880
SELECT DISTINCT CAST( - CAST( + 30 AS DECIMAL ) AS SIGNED ) + 34
----
4

skipif mysql # not compatible
query I rowsort label-7880
SELECT DISTINCT CAST ( - CAST ( + 30 AS REAL ) AS INTEGER ) + 34
----
4

query I rowsort
SELECT 84 * 8 * 79 + 17 AS col1
----
53105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7882
SELECT DISTINCT + NULLIF ( + - COUNT( * ), - 6 * - 66 + COUNT( * ) ) + 22 DIV 9
----
1

skipif mysql # not compatible
query I rowsort label-7882
SELECT DISTINCT + NULLIF ( + - COUNT ( * ), - 6 * - 66 + COUNT ( * ) ) + 22 / 9
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7883
SELECT ALL - MAX( ALL - 73 )
----
73

skipif mysql # not compatible
query I rowsort label-7883
SELECT ALL - MAX ( ALL - 73 )
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7884
SELECT DISTINCT 88 - COUNT( ALL + + 67 ) + 45 DIV 72 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-7884
SELECT DISTINCT 88 - COUNT ( ALL + + 67 ) + 45 / 72 AS col1
----
87

query I rowsort
SELECT DISTINCT 46 * 60 AS col1
----
2760

onlyif mysql # DIV for integer division: 
query I rowsort label-7886
SELECT DISTINCT 58 DIV 38 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7886
SELECT DISTINCT 58 / 38 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7887
SELECT - 81 * + CAST( - + 80 AS SIGNED )
----
6480

skipif mysql # not compatible
query I rowsort label-7887
SELECT - 81 * + CAST ( - + 80 AS INTEGER )
----
6480

onlyif mysql # aggregate syntax: 
query I rowsort label-7888
SELECT + SUM( DISTINCT - 72 ) * + 47 * 38 AS col0
----
-128592

skipif mysql # not compatible
query I rowsort label-7888
SELECT + SUM ( DISTINCT - 72 ) * + 47 * 38 AS col0
----
-128592

query II rowsort
SELECT 52, + 91 + + 33 * + 15 AS col1
----
52
586

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7890
SELECT + COUNT( * ) DIV + 26
----
0

skipif mysql # not compatible
query I rowsort label-7890
SELECT + COUNT ( * ) / + 26
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7891
SELECT + SUM( DISTINCT + 99 ) * 17 + CASE + 88 WHEN 80 THEN NULL WHEN + 24 + NULLIF ( 72 + + 36, - 15 ) * - CAST( NULL AS SIGNED ) THEN - 56 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7891
SELECT + SUM ( DISTINCT + 99 ) * 17 + CASE + 88 WHEN 80 THEN NULL WHEN + 24 + NULLIF ( 72 + + 36, - 15 ) * - CAST ( NULL AS INTEGER ) THEN - 56 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7892
SELECT DISTINCT 16 * + + COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-7892
SELECT DISTINCT 16 * + + COUNT ( * )
----
16

query II rowsort
SELECT 82, 72 AS col0
----
82
72

query I rowsort
SELECT ALL 51 * - 39 AS col1
----
-1989

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT ALL SUM( 26 ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-7895
SELECT ALL SUM ( 26 ) AS col2
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7896
SELECT + 9 + + + CAST( NULL AS SIGNED ) + - COUNT( * ) / - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-7896
SELECT + 9 + + + CAST ( NULL AS INTEGER ) + - COUNT ( * ) / - 47
----
NULL

query I rowsort
SELECT - 15 * + 82
----
-1230

onlyif mysql # DIV for integer division: 
query II rowsort label-7898
SELECT ALL 77, - 21 DIV - 49 AS col0
----
77
0

skipif mysql # not compatible
query II rowsort label-7898
SELECT ALL 77, - 21 / - 49 AS col0
----
77
0

query II rowsort
SELECT - 79, - 70 + + + 58 AS col1
----
-79
-12

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7900
SELECT + + CAST( NULL AS DECIMAL ) + + - 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7900
SELECT + + CAST ( NULL AS REAL ) + + - 13 AS col1
----
NULL

query I rowsort
SELECT ALL - 0 * + - 22 + - - 16
----
16

query I rowsort
SELECT - 74 + + 63 + - 71 * - 23 AS col0
----
1622

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7903
SELECT DISTINCT + CAST( - ( + 54 ) AS SIGNED ) DIV - 74 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7903
SELECT DISTINCT + CAST ( - ( + 54 ) AS INTEGER ) / - 74 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7904
SELECT ALL + + 47 + 83 - - - COUNT( * ) * 42 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-7904
SELECT ALL + + 47 + 83 - - - COUNT ( * ) * 42 AS col1
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7905
SELECT ALL - COUNT( - + 58 ) + 2 + 99 DIV 13 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-7905
SELECT ALL - COUNT ( - + 58 ) + 2 + 99 / 13 AS col2
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-7906
SELECT - 32 - - 5 * + 17 - 76 DIV - 15
----
58

skipif mysql # not compatible
query I rowsort label-7906
SELECT - 32 - - 5 * + 17 - 76 / - 15
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-7907
SELECT ALL 1 * 34 DIV + - 76 * 7
----
0

skipif mysql # not compatible
query I rowsort label-7907
SELECT ALL 1 * 34 / + - 76 * 7
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7908
SELECT DISTINCT COUNT( * ) + - 15 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-7908
SELECT DISTINCT COUNT ( * ) + - 15 AS col2
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7909
SELECT - COUNT( * ) + CAST( NULL AS SIGNED ) * - ( + 56 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7909
SELECT - COUNT ( * ) + CAST ( NULL AS INTEGER ) * - ( + 56 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7910
SELECT ALL + + MIN( DISTINCT 34 ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-7910
SELECT ALL + + MIN ( DISTINCT 34 ) AS col2
----
34

query II rowsort
SELECT 78, 0 AS col0
----
78
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT ALL - 45 * - 34 + - COUNT( * ) AS col1
----
1529

skipif mysql # not compatible
query I rowsort label-7912
SELECT ALL - 45 * - 34 + - COUNT ( * ) AS col1
----
1529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7913
SELECT + CAST( - + 3 AS SIGNED ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-7913
SELECT + CAST ( - + 3 AS INTEGER ) AS col0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7914
SELECT + 7 DIV + 93 * - 71 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7914
SELECT + 7 / + 93 * - 71 * + COUNT ( * )
----
0

query I rowsort
SELECT NULLIF ( 75, - 43 * 37 ) AS col1
----
75

query I rowsort
SELECT - 90 * + 20
----
-1800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7917
SELECT ALL + + 92 DIV - COUNT( - - 81 ) DIV COUNT( * ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-7917
SELECT ALL + + 92 / - COUNT ( - - 81 ) / COUNT ( * ) AS col0
----
-92

query I rowsort
SELECT ( + + ( + 28 ) )
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7919
SELECT ALL - 73 * + ( + COALESCE ( + MAX( - NULLIF ( 53, + 68 + + 53 ) ), 12, - ( 43 ) * COUNT( * ) ) ) - + 57 DIV CAST( 25 + + 53 AS SIGNED ) AS col1
----
3869

skipif mysql # not compatible
query I rowsort label-7919
SELECT ALL - 73 * + ( + COALESCE ( + MAX ( - NULLIF ( 53, + 68 + + 53 ) ), 12, - ( 43 ) * COUNT ( * ) ) ) - + 57 / CAST ( 25 + + 53 AS INTEGER ) AS col1
----
3869

query I rowsort
SELECT DISTINCT + + 13 AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7921
SELECT - + COALESCE ( - 38, COUNT( * ) * 74 ) * + 90 AS col0
----
3420

skipif mysql # not compatible
query I rowsort label-7921
SELECT - + COALESCE ( - 38, COUNT ( * ) * 74 ) * + 90 AS col0
----
3420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7922
SELECT DISTINCT + 30 * + NULLIF ( + NULLIF ( MIN( + CAST( NULL AS SIGNED ) ), + 36 ), - 8 ) - CAST( 46 AS SIGNED ) * - 8 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7922
SELECT DISTINCT + 30 * + NULLIF ( + NULLIF ( MIN ( + CAST ( NULL AS INTEGER ) ), + 36 ), - 8 ) - CAST ( 46 AS INTEGER ) * - 8 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT - 94 + + COUNT( * ) + 89 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-7923
SELECT - 94 + + COUNT ( * ) + 89 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT NULLIF ( + + 13, + NULLIF ( + - NULLIF ( + 11, 65 ), COUNT( * ) * - 30 ) )
----
13

skipif mysql # not compatible
query I rowsort label-7924
SELECT NULLIF ( + + 13, + NULLIF ( + - NULLIF ( + 11, 65 ), COUNT ( * ) * - 30 ) )
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7925
SELECT + CAST( NULL AS SIGNED ) - - 69 - - 73 / + + 85 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7925
SELECT + CAST ( NULL AS INTEGER ) - - 69 - - 73 / + + 85 AS col0
----
NULL

query I rowsort
SELECT - 75 + + - COALESCE ( + 69, 19, - 63 ) AS col0
----
-144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7927
SELECT + COALESCE ( 90, + 33 - - - CASE 40 WHEN 27 - ( + 91 ) THEN + 33 WHEN 13 * - 43 THEN - 84 ELSE - 95 END DIV + COUNT( * ) )
----
90

skipif mysql # not compatible
query I rowsort label-7927
SELECT + COALESCE ( 90, + 33 - - - CASE 40 WHEN 27 - ( + 91 ) THEN + 33 WHEN 13 * - 43 THEN - 84 ELSE - 95 END / + COUNT ( * ) )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7928
SELECT - ( - + 70 ) + COUNT( - - 9 ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-7928
SELECT - ( - + 70 ) + COUNT ( - - 9 ) AS col1
----
71

query I rowsort
SELECT DISTINCT + 43 * 13
----
559

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT + COALESCE ( + 68, + - COUNT( * ) ) + - 95
----
-27

skipif mysql # not compatible
query I rowsort label-7930
SELECT + COALESCE ( + 68, + - COUNT ( * ) ) + - 95
----
-27

query I rowsort
SELECT ALL ( 84 ) AS col0
----
84

query I rowsort
SELECT 98 * + + 5 + - ( - 36 ) AS col0
----
526

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT ALL CASE COUNT( * ) WHEN + 11 + + 7 THEN NULL WHEN + 25 * - COUNT( * ) THEN + 48 END * - ( COUNT( * ) / COALESCE ( 92 * - 16, + 88, - 75, + CASE - 99 WHEN + 86 THEN COALESCE ( - SUM( ALL 51 ), + 89, 86 + + ( + 24 ), 98 * ( 69 ) ) WHEN 57 * + ( 11 ) THEN NULL ELSE NULL END * 55 ) - + 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7933
SELECT ALL CASE COUNT ( * ) WHEN + 11 + + 7 THEN NULL WHEN + 25 * - COUNT ( * ) THEN + 48 END * - ( COUNT ( * ) / COALESCE ( 92 * - 16, + 88, - 75, + CASE - 99 WHEN + 86 THEN COALESCE ( - SUM ( ALL 51 ), + 89, 86 + + ( + 24 ), 98 * ( 69 ) ) WHEN 57 * + ( 11 ) THEN NULL ELSE NULL END * 55 ) - + 7 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7934
SELECT + 97 + COUNT( * ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-7934
SELECT + 97 + COUNT ( * ) AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7935
SELECT - SUM( - - 87 ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-7935
SELECT - SUM ( - - 87 ) AS col1
----
-87

query I rowsort
SELECT + 74 + - 54 * - 0 col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7937
SELECT DISTINCT COUNT( * ) * + - 35 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-7937
SELECT DISTINCT COUNT ( * ) * + - 35 AS col0
----
-35

query I rowsort
SELECT + 67 + + ( - 32 )
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7939
SELECT DISTINCT COALESCE ( 63, + - ( - 74 ) / NULLIF ( + 82 + - 79 * 24, 51 + SUM( - 46 + CAST( ( + 94 ) AS SIGNED ) * - 77 ) ), + 42, - 60 ) * CASE + 78 * - 52 WHEN - 45 THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7939
SELECT DISTINCT COALESCE ( 63, + - ( - 74 ) / NULLIF ( + 82 + - 79 * 24, 51 + SUM ( - 46 + CAST ( ( + 94 ) AS INTEGER ) * - 77 ) ), + 42, - 60 ) * CASE + 78 * - 52 WHEN - 45 THEN - COUNT ( * ) END
----
NULL

query I rowsort
SELECT + 93 * - 56
----
-5208

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT + 63 + COUNT( - + 17 )
----
64

skipif mysql # not compatible
query I rowsort label-7941
SELECT + 63 + COUNT ( - + 17 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7942
SELECT DISTINCT - COUNT( * ) + + COALESCE ( 89, - + 20 + 45, 17 * - 61 ) + COUNT( * ) col0
----
89

skipif mysql # not compatible
query I rowsort label-7942
SELECT DISTINCT - COUNT ( * ) + + COALESCE ( 89, - + 20 + 45, 17 * - 61 ) + COUNT ( * ) col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7943
SELECT ALL - NULLIF ( - - 37, MIN( + 77 ) * MIN( ALL 63 * 16 ) ) * - CASE 75 WHEN COUNT( * ) + COUNT( * ) THEN NULL ELSE + COALESCE ( 55, ( 67 ) ) * 15 END
----
30525

skipif mysql # not compatible
query I rowsort label-7943
SELECT ALL - NULLIF ( - - 37, MIN ( + 77 ) * MIN ( ALL 63 * 16 ) ) * - CASE 75 WHEN COUNT ( * ) + COUNT ( * ) THEN NULL ELSE + COALESCE ( 55, ( 67 ) ) * 15 END
----
30525

query I rowsort
SELECT ALL 46 + + 37 + - + 75 * 47 * 91
----
-320692

query I rowsort
SELECT DISTINCT 90 * 67
----
6030

query I rowsort
SELECT DISTINCT 95 + + + 62 AS col0
----
157

query I rowsort
SELECT ALL ( 35 ) AS col1
----
35

query I rowsort
SELECT ALL + 19 + + + 13
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7949
SELECT - MAX( 56 ) * + - MIN( - 75 ) * - AVG ( 12 * - 69 + + CAST( NULL AS SIGNED ) * - 55 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7949
SELECT - MAX ( 56 ) * + - MIN ( - 75 ) * - AVG ( 12 * - 69 + + CAST ( NULL AS INTEGER ) * - 55 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT + COUNT( * ) + 38 + - - COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-7950
SELECT + COUNT ( * ) + 38 + - - COUNT ( * )
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-7951
SELECT ALL + 67 DIV 16 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-7951
SELECT ALL + 67 / 16 AS col0
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-7952
SELECT ALL 77 DIV + ( - + 64 ) - 33 + - 3
----
-37

skipif mysql # not compatible
query I rowsort label-7952
SELECT ALL 77 / + ( - + 64 ) - 33 + - 3
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7953
SELECT DISTINCT + COUNT( * ) * 89 AS col1
----
89

skipif mysql # not compatible
query I rowsort label-7953
SELECT DISTINCT + COUNT ( * ) * 89 AS col1
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7954
SELECT + + 18 DIV + 75 + + CASE - 27 WHEN + NULLIF ( - COUNT( - 97 ), - COALESCE ( COUNT( * ), + 61 + - 55 ) DIV 27 ) THEN NULL WHEN CAST( NULL AS SIGNED ) THEN - ( + 82 ) ELSE 87 + - 92 END * COUNT( * ) + 59
----
54

skipif mysql # not compatible
query I rowsort label-7954
SELECT + + 18 / + 75 + + CASE - 27 WHEN + NULLIF ( - COUNT ( - 97 ), - COALESCE ( COUNT ( * ), + 61 + - 55 ) / 27 ) THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN - ( + 82 ) ELSE 87 + - 92 END * COUNT ( * ) + 59
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7955
SELECT ALL 38 * - CAST( NULL AS SIGNED ) AS col1, 16 AS col1
----
NULL
16

skipif mysql # not compatible
query II rowsort label-7955
SELECT ALL 38 * - CAST ( NULL AS INTEGER ) AS col1, 16 AS col1
----
NULL
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7956
SELECT + NULLIF ( + 90, - 99 ) * - CAST( - + 29 AS DECIMAL ) - CASE NULLIF ( - 41, 44 ) WHEN + 89 + AVG ( 27 ) * 16 THEN + 84 WHEN 91 THEN - 4 WHEN 66 * + MAX( DISTINCT 16 ) + 0 THEN 62 / CAST( + COALESCE ( COUNT( 29 ), + 75 + ( + 58 ) * - MAX( 31 * 82 ) ) * + 16 AS SIGNED ) + - 48 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7956
SELECT + NULLIF ( + 90, - 99 ) * - CAST ( - + 29 AS REAL ) - CASE NULLIF ( - 41, 44 ) WHEN + 89 + AVG ( 27 ) * 16 THEN + 84 WHEN 91 THEN - 4 WHEN 66 * + MAX ( DISTINCT 16 ) + 0 THEN 62 / CAST ( + COALESCE ( COUNT ( 29 ), + 75 + ( + 58 ) * - MAX ( 31 * 82 ) ) * + 16 AS INTEGER ) + - 48 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7957
SELECT ALL - COALESCE ( + 0, 51 - + - 63 + + - 23, 30 * + SUM( DISTINCT - 20 ) )
----
0

skipif mysql # not compatible
query I rowsort label-7957
SELECT ALL - COALESCE ( + 0, 51 - + - 63 + + - 23, 30 * + SUM ( DISTINCT - 20 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7958
SELECT COUNT( - + 16 ) + + COUNT( * ) + COUNT( * ) + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-7958
SELECT COUNT ( - + 16 ) + + COUNT ( * ) + COUNT ( * ) + COUNT ( * )
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-7959
SELECT + 40 AS col0, COUNT( * ) - + 49
----
40
-48

skipif mysql # not compatible
query II rowsort label-7959
SELECT + 40 AS col0, COUNT ( * ) - + 49
----
40
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-7960
SELECT DISTINCT + 83 DIV 56
----
1

skipif mysql # not compatible
query I rowsort label-7960
SELECT DISTINCT + 83 / 56
----
1

query I rowsort
SELECT ALL - NULLIF ( + - 1, - ( - + 74 ) ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7962
SELECT DISTINCT - CASE NULLIF ( 36, + 91 + - + CAST( NULL AS SIGNED ) ) WHEN - COUNT( * ) + + MIN( 39 + - ( - 61 + + 82 ) ) THEN 43 - 90 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7962
SELECT DISTINCT - CASE NULLIF ( 36, + 91 + - + CAST ( NULL AS INTEGER ) ) WHEN - COUNT ( * ) + + MIN ( 39 + - ( - 61 + + 82 ) ) THEN 43 - 90 END
----
NULL

query II rowsort
SELECT + 51 AS col1, 19 AS col2
----
51
19

query I rowsort
SELECT ALL - 66 + + 35 AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT 74 - + SUM( ALL 7 ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-7965
SELECT 74 - + SUM ( ALL 7 ) AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT COUNT( * ) * - - ( - 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-7966
SELECT COUNT ( * ) * - - ( - 7 )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7967
SELECT 84 * + + COALESCE ( + 49, + 58 * + 25 * + COUNT( * ) ) * + COUNT( * ) AS col1
----
4116

skipif mysql # not compatible
query I rowsort label-7967
SELECT 84 * + + COALESCE ( + 49, + 58 * + 25 * + COUNT ( * ) ) * + COUNT ( * ) AS col1
----
4116

onlyif mysql # aggregate syntax: 
query I rowsort label-7968
SELECT ALL - COUNT( * ) + + 84 AS col2
----
83

skipif mysql # not compatible
query I rowsort label-7968
SELECT ALL - COUNT ( * ) + + 84 AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7969
SELECT ALL CASE 78 WHEN - - CASE - 69 WHEN + - 69 THEN NULL WHEN - 1 + 12 THEN + 85 - - 4 / + 76 END + + 96 THEN 35 WHEN COUNT( 73 ) THEN NULL ELSE NULL END + 11 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7969
SELECT ALL CASE 78 WHEN - - CASE - 69 WHEN + - 69 THEN NULL WHEN - 1 + 12 THEN + 85 - - 4 / + 76 END + + 96 THEN 35 WHEN COUNT ( 73 ) THEN NULL ELSE NULL END + 11 col1
----
NULL

query I rowsort
SELECT ALL + 94 * + + 79 * - - 61 * - 22 AS col1
----
-9965692

onlyif mysql # aggregate syntax: 
query I rowsort label-7971
SELECT ALL - COUNT( * ) + + 46 + + SUM( DISTINCT 99 ) AS col1
----
144

skipif mysql # not compatible
query I rowsort label-7971
SELECT ALL - COUNT ( * ) + + 46 + + SUM ( DISTINCT 99 ) AS col1
----
144

query I rowsort
SELECT DISTINCT 35 + + - 47
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7973
SELECT DISTINCT - - ( - + CAST( NULL AS SIGNED ) ) + + 41 * - 11 / + + 26 + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-7973
SELECT DISTINCT - - ( - + CAST ( NULL AS INTEGER ) ) + + 41 * - 11 / + + 26 + 48
----
NULL

query I rowsort
SELECT ALL + - 1 + - - 86
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7975
SELECT ALL - CAST( NULL AS SIGNED ) + 61 - + CASE + 81 WHEN + + NULLIF ( - AVG ( DISTINCT 79 ), - 54 ) THEN + 3 + - 92 WHEN + 86 THEN + 27 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7975
SELECT ALL - CAST ( NULL AS INTEGER ) + 61 - + CASE + 81 WHEN + + NULLIF ( - AVG ( DISTINCT 79 ), - 54 ) THEN + 3 + - 92 WHEN + 86 THEN + 27 ELSE NULL END
----
NULL

query I rowsort
SELECT - 67 + 7
----
-60

query I rowsort
SELECT COALESCE ( + 88, NULLIF ( + - 54, + 30 ) * 41 ) AS col1
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-7978
SELECT 72 + 90 * COUNT( * ), - 55 - - COUNT( * ) * - 50 AS col2
----
162
-105

skipif mysql # not compatible
query II rowsort label-7978
SELECT 72 + 90 * COUNT ( * ), - 55 - - COUNT ( * ) * - 50 AS col2
----
162
-105

query I rowsort
SELECT - 50 - - - 58
----
-108

query I rowsort
SELECT ALL - 57 * - 15 * + - 9 * - 75 AS col2
----
577125

onlyif mysql # DIV for integer division: 
query I rowsort label-7981
SELECT 18 + ( 31 ) DIV - 25 + 96 AS col0
----
113

skipif mysql # not compatible
query I rowsort label-7981
SELECT 18 + ( 31 ) / - 25 + 96 AS col0
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-7982
SELECT SUM( ALL - ( + 66 ) ) * - - NULLIF ( + + 21, - 34 + COUNT( * ) ) * 6 AS col1
----
-8316

skipif mysql # not compatible
query I rowsort label-7982
SELECT SUM ( ALL - ( + 66 ) ) * - - NULLIF ( + + 21, - 34 + COUNT ( * ) ) * 6 AS col1
----
-8316

query I rowsort
SELECT - - ( - 79 )
----
-79

query I rowsort
SELECT ALL - 7 - + 28
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7985
SELECT + COUNT( * ) DIV - 11 * - ( - 55 )
----
0

skipif mysql # not compatible
query I rowsort label-7985
SELECT + COUNT ( * ) / - 11 * - ( - 55 )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7986
SELECT ALL - - CAST( NULL AS DECIMAL ) * ( + - 26 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7986
SELECT ALL - - CAST ( NULL AS REAL ) * ( + - 26 ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7987
SELECT ALL + + COUNT( * ) * - COALESCE ( + - 63, 10 + + 41 + 42 * 20 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-7987
SELECT ALL + + COUNT ( * ) * - COALESCE ( + - 63, 10 + + 41 + 42 * 20 ) AS col1
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7988
SELECT CAST( NULL AS SIGNED ) + - + 37 + + + 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7988
SELECT CAST ( NULL AS INTEGER ) + - + 37 + + + 38 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 9 * + ( 37 )
----
333

query I rowsort
SELECT ALL 13 - + - 55
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7991
SELECT 21 * + + 29 * + 45 * + 14 * - - COUNT( * )
----
383670

skipif mysql # not compatible
query I rowsort label-7991
SELECT 21 * + + 29 * + 45 * + 14 * - - COUNT ( * )
----
383670

query I rowsort
SELECT - 66 * - + 64
----
4224

query I rowsort
SELECT + ( - 84 ) AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT COUNT( * ) * - ( 43 ) + + + MAX( + 83 ) * + + ( 52 ) * - 38
----
-164051

skipif mysql # not compatible
query I rowsort label-7994
SELECT COUNT ( * ) * - ( 43 ) + + + MAX ( + 83 ) * + + ( 52 ) * - 38
----
-164051

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7995
SELECT ALL - 23 AS col2, + 30 * - + 76 * AVG ( - 96 ) + CASE + 78 WHEN 95 THEN NULL WHEN + 34 THEN NULL ELSE SUM( + 45 ) * + ( - CAST( NULL AS SIGNED ) * 29 ) END AS col0
----
-23
NULL

skipif mysql # not compatible
query II rowsort label-7995
SELECT ALL - 23 AS col2, + 30 * - + 76 * AVG ( - 96 ) + CASE + 78 WHEN 95 THEN NULL WHEN + 34 THEN NULL ELSE SUM ( + 45 ) * + ( - CAST ( NULL AS INTEGER ) * 29 ) END AS col0
----
-23
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7996
SELECT 68, CAST( - MAX( - 92 ) AS SIGNED ) - - + 69 + CAST( NULL AS SIGNED ) * MAX( + 87 ) AS col2
----
68
NULL

skipif mysql # not compatible
query II rowsort label-7996
SELECT 68, CAST ( - MAX ( - 92 ) AS INTEGER ) - - + 69 + CAST ( NULL AS INTEGER ) * MAX ( + 87 ) AS col2
----
68
NULL

query II rowsort
SELECT + 40 AS col2, 17
----
40
17

query II rowsort
SELECT 93 AS col1, 80 AS col0
----
93
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7999
SELECT CAST( NULL AS SIGNED ) * + 34 + - + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-7999
SELECT CAST ( NULL AS INTEGER ) * + 34 + - + 97
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8000
SELECT 98 * - + 18 - + + 21 * MIN( ALL - 19 ) - 22
----
-1387

skipif mysql # not compatible
query I rowsort label-8000
SELECT 98 * - + 18 - + + 21 * MIN ( ALL - 19 ) - 22
----
-1387

onlyif mysql # aggregate syntax: 
query I rowsort label-8001
SELECT ALL - MIN( + 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-8001
SELECT ALL - MIN ( + 2 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT ( - - 79 ) + - + ( + - 81 ) + - COUNT( * ) - + - 31 AS col2
----
190

skipif mysql # not compatible
query I rowsort label-8002
SELECT ( - - 79 ) + - + ( + - 81 ) + - COUNT ( * ) - + - 31 AS col2
----
190

query I rowsort
SELECT 3 + - + 22 AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8004
SELECT ALL - COUNT( * ) + + 5 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-8004
SELECT ALL - COUNT ( * ) + + 5 AS col1
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8005
SELECT 9 + + - 12 * + + CAST( 67 AS SIGNED )
----
-795

skipif mysql # not compatible
query I rowsort label-8005
SELECT 9 + + - 12 * + + CAST ( 67 AS INTEGER )
----
-795

query I rowsort
SELECT DISTINCT 79 + - 10 + - 50
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8007
SELECT ALL - - MIN( + - 10 ) + - 1 + + 56
----
45

skipif mysql # not compatible
query I rowsort label-8007
SELECT ALL - - MIN ( + - 10 ) + - 1 + + 56
----
45

onlyif mysql # DIV for integer division: 
query II rowsort label-8008
SELECT DISTINCT + 20 col0, 49 DIV 11 AS col2
----
20
4

skipif mysql # not compatible
query II rowsort label-8008
SELECT DISTINCT + 20 col0, 49 / 11 AS col2
----
20
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8009
SELECT 8 + - COUNT( * ) + - 12 * + - 46 - - 98 * + CASE - 38 WHEN 98 + MIN( DISTINCT 32 ) / COUNT( * ) THEN NULL WHEN 16 THEN 55 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8009
SELECT 8 + - COUNT ( * ) + - 12 * + - 46 - - 98 * + CASE - 38 WHEN 98 + MIN ( DISTINCT 32 ) / COUNT ( * ) THEN NULL WHEN 16 THEN 55 END
----
NULL

query I rowsort
SELECT 95 * + 98 + + 23 + + 64
----
9397

onlyif mysql # aggregate syntax: 
query I rowsort label-8011
SELECT + 21 * + + 86 * + NULLIF ( + CASE - 25 WHEN 54 THEN 79 ELSE NULL END, + COUNT( * ) + 80 ) * - 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8011
SELECT + 21 * + + 86 * + NULLIF ( + CASE - 25 WHEN 54 THEN 79 ELSE NULL END, + COUNT ( * ) + 80 ) * - 40 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8012
SELECT ALL + 28 * - 85 * - COALESCE ( + + COALESCE ( + + CAST( NULL AS SIGNED ), + + CAST( NULL AS SIGNED ) ), 13 * 79 + 58, 24 * 77 )
----
2582300

skipif mysql # not compatible
query I rowsort label-8012
SELECT ALL + 28 * - 85 * - COALESCE ( + + COALESCE ( + + CAST ( NULL AS INTEGER ), + + CAST ( NULL AS INTEGER ) ), 13 * 79 + 58, 24 * 77 )
----
2582300

onlyif mysql # aggregate syntax: 
query I rowsort label-8013
SELECT + 48 + COUNT( DISTINCT + 41 )
----
49

skipif mysql # not compatible
query I rowsort label-8013
SELECT + 48 + COUNT ( DISTINCT + 41 )
----
49

query I rowsort
SELECT 18 * - + 77
----
-1386

onlyif mysql # DIV for integer division: 
query II rowsort label-8015
SELECT - + 61 AS col1, + 88 DIV - - ( 54 )
----
-61
1

skipif mysql # not compatible
query II rowsort label-8015
SELECT - + 61 AS col1, + 88 / - - ( 54 )
----
-61
1

query I rowsort
SELECT ALL ( - - ( + 13 ) ) AS col2
----
13

query II rowsort
SELECT 9 AS col0, - 60
----
9
-60

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8018
SELECT + COUNT( * ) * CAST( NULL AS DECIMAL ) col2, + 71 AS col2
----
NULL
71

skipif mysql # not compatible
query II rowsort label-8018
SELECT + COUNT ( * ) * CAST ( NULL AS REAL ) col2, + 71 AS col2
----
NULL
71

onlyif mysql # aggregate syntax: 
query II rowsort label-8019
SELECT DISTINCT 91 AS col1, + CASE - + 40 WHEN - MAX( + - 28 ) THEN NULL ELSE - 0 END + 89 AS col1
----
91
89

skipif mysql # not compatible
query II rowsort label-8019
SELECT DISTINCT 91 AS col1, + CASE - + 40 WHEN - MAX ( + - 28 ) THEN NULL ELSE - 0 END + 89 AS col1
----
91
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8020
SELECT - + CAST( + 60 AS SIGNED ) - + ( - - 70 ) AS col1
----
-130

skipif mysql # not compatible
query I rowsort label-8020
SELECT - + CAST ( + 60 AS INTEGER ) - + ( - - 70 ) AS col1
----
-130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8021
SELECT + + 90 DIV - MIN( - 7 )
----
12

skipif mysql # not compatible
query I rowsort label-8021
SELECT + + 90 / - MIN ( - 7 )
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-8022
SELECT ALL - + 81 DIV + ( - 91 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8022
SELECT ALL - + 81 / + ( - 91 ) AS col0
----
0

query II rowsort
SELECT - - 36 AS col1, 82
----
36
82

query II rowsort
SELECT - + 79 AS col2, 74
----
-79
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8025
SELECT + 73 + + SUM( DISTINCT - 79 ) + + 61 DIV CASE + + 42 WHEN 39 * + COUNT( * ) THEN 54 WHEN CAST( 83 AS SIGNED ) THEN NULL ELSE 2 END AS col0
----
24

skipif mysql # not compatible
query I rowsort label-8025
SELECT + 73 + + SUM ( DISTINCT - 79 ) + + 61 / CASE + + 42 WHEN 39 * + COUNT ( * ) THEN 54 WHEN CAST ( 83 AS INTEGER ) THEN NULL ELSE 2 END AS col0
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-8026
SELECT ALL - 2 DIV - 80
----
0

skipif mysql # not compatible
query I rowsort label-8026
SELECT ALL - 2 / - 80
----
0

query I rowsort
SELECT CASE WHEN NULL IS NOT NULL THEN - 40 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT ALL - 26 * + 66 + - - 95 * + MAX( - - 98 ) + + 60 AS col1
----
7654

skipif mysql # not compatible
query I rowsort label-8028
SELECT ALL - 26 * + 66 + - - 95 * + MAX ( - - 98 ) + + 60 AS col1
----
7654

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8029
SELECT - CAST( NULL AS DECIMAL ) * COUNT( * ) / COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8029
SELECT - CAST ( NULL AS REAL ) * COUNT ( * ) / COUNT ( * ) col2
----
NULL

query I rowsort
SELECT CASE - - 47 WHEN - 43 THEN NULL ELSE 74 END AS col0
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8031
SELECT CASE 98 WHEN + 13 THEN + CAST( NULL AS SIGNED ) - + - 15 * - 18 - 75 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8031
SELECT CASE 98 WHEN + 13 THEN + CAST ( NULL AS INTEGER ) - + - 15 * - 18 - 75 END AS col1
----
NULL

query I rowsort
SELECT + NULLIF ( - + COALESCE ( + - 1, - 19 ), + 23 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8033
SELECT ALL + 33 * + ( - - 1 ) + - 93 + 81 - - 4 DIV + COUNT( * ) + + 29 DIV - 70 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-8033
SELECT ALL + 33 * + ( - - 1 ) + - 93 + 81 - - 4 / + COUNT ( * ) + + 29 / - 70 AS col2
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8034
SELECT DISTINCT + 39 * 29 + 62 * CAST( + 93 AS SIGNED ) * + 84
----
485475

skipif mysql # not compatible
query I rowsort label-8034
SELECT DISTINCT + 39 * 29 + 62 * CAST ( + 93 AS INTEGER ) * + 84
----
485475

onlyif mysql # aggregate syntax: 
query I rowsort label-8035
SELECT ALL - MAX( - 94 ) * 94 + ( - + 33 ) + COUNT( * ) AS col0
----
8804

skipif mysql # not compatible
query I rowsort label-8035
SELECT ALL - MAX ( - 94 ) * 94 + ( - + 33 ) + COUNT ( * ) AS col0
----
8804

query II rowsort
SELECT + ( - + 78 ) AS col0, 55 AS col1
----
-78
55

query I rowsort
SELECT ALL - 6 * + 39 - - 32
----
-202

query I rowsort
SELECT + 79 * 89 AS col2
----
7031

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8039
SELECT + + 1 - + + NULLIF ( - NULLIF ( + COUNT( * ), + 68 ), - 3 * + + 10 - + CAST( NULL AS DECIMAL ) ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-8039
SELECT + + 1 - + + NULLIF ( - NULLIF ( + COUNT ( * ), + 68 ), - 3 * + + 10 - + CAST ( NULL AS REAL ) ) AS col2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8040
SELECT - + 96 * 63 + 44 + - 51 + 30 + 78 + - - 68 + CAST( NULL AS SIGNED ) * + 14 * - 23 * 46 / + 36 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8040
SELECT - + 96 * 63 + 44 + - 51 + 30 + 78 + - - 68 + CAST ( NULL AS INTEGER ) * + 14 * - 23 * 46 / + 36 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8041
SELECT - CAST( + + MIN( ALL - 59 ) AS SIGNED ), - MAX( ALL - - 15 ) AS col0
----
59
-15

skipif mysql # not compatible
query II rowsort label-8041
SELECT - CAST ( + + MIN ( ALL - 59 ) AS INTEGER ), - MAX ( ALL - - 15 ) AS col0
----
59
-15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8042
SELECT ALL - - 34 - CAST( NULL AS DECIMAL ) + + NULLIF ( + 15, 51 * - 0 * ( 19 ) ) * ( 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8042
SELECT ALL - - 34 - CAST ( NULL AS REAL ) + + NULLIF ( + 15, 51 * - 0 * ( 19 ) ) * ( 7 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8043
SELECT - NULLIF ( + + 54, ( + 80 ) ) * - - 9 * - 29 * SUM( ALL + 88 ) - - 83 * + COUNT( * )
----
1240355

skipif mysql # not compatible
query I rowsort label-8043
SELECT - NULLIF ( + + 54, ( + 80 ) ) * - - 9 * - 29 * SUM ( ALL + 88 ) - - 83 * + COUNT ( * )
----
1240355

query I rowsort
SELECT DISTINCT - NULLIF ( + 64, 30 ) AS col1
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8045
SELECT - 98 - + COUNT( * ) + 74 - - + 89 * - + 0 * ( 62 ) DIV 57
----
-25

skipif mysql # not compatible
query I rowsort label-8045
SELECT - 98 - + COUNT ( * ) + 74 - - + 89 * - + 0 * ( 62 ) / 57
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8046
SELECT ALL - COUNT( * ) * + - 61
----
61

skipif mysql # not compatible
query I rowsort label-8046
SELECT ALL - COUNT ( * ) * + - 61
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8047
SELECT - + 94 * 1 + - + ( - 88 ) + + ( CASE SUM( ALL 80 ) WHEN + ( 87 ) - 35 THEN - 82 + 6 ELSE NULL END ) - + 1 / + 55 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8047
SELECT - + 94 * 1 + - + ( - 88 ) + + ( CASE SUM ( ALL 80 ) WHEN + ( 87 ) - 35 THEN - 82 + 6 ELSE NULL END ) - + 1 / + 55 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8048
SELECT DISTINCT COUNT( DISTINCT + + 38 ) AS col1, 71 * 12 col2
----
1
852

skipif mysql # not compatible
query II rowsort label-8048
SELECT DISTINCT COUNT ( DISTINCT + + 38 ) AS col1, 71 * 12 col2
----
1
852

query I rowsort
SELECT ALL - + 79 * - 97
----
7663

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8050
SELECT - + 50 + + + 3 DIV 17 + 91 + - 94 - + ( - - 85 ) + 55 * MAX( 56 ) * - 46 AS col1
----
-141818

skipif mysql # not compatible
query I rowsort label-8050
SELECT - + 50 + + + 3 / 17 + 91 + - 94 - + ( - - 85 ) + 55 * MAX ( 56 ) * - 46 AS col1
----
-141818

onlyif mysql # aggregate syntax: 
query I rowsort label-8051
SELECT - + 44 - - + 15 + COUNT( 38 ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-8051
SELECT - + 44 - - + 15 + COUNT ( 38 ) AS col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT - 87 * - 37 * + + COALESCE ( - 42, - 90 ) * - COALESCE ( + COUNT( - 25 ), 3 * + 10 )
----
135198

skipif mysql # not compatible
query I rowsort label-8052
SELECT - 87 * - 37 * + + COALESCE ( - 42, - 90 ) * - COALESCE ( + COUNT ( - 25 ), 3 * + 10 )
----
135198

onlyif mysql # aggregate syntax: 
query I rowsort label-8053
SELECT - - CASE WHEN NOT NULL = NULL THEN MIN( DISTINCT - ( - 23 ) ) END + 98 - + NULLIF ( 71, + 12 + 81 * 1 ) - 90 / + ( + SUM( - COALESCE ( 54, - ( 56 ) ) ) * 52 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8053
SELECT - - CASE WHEN NOT NULL = NULL THEN MIN ( DISTINCT - ( - 23 ) ) END + 98 - + NULLIF ( 71, + 12 + 81 * 1 ) - 90 / + ( + SUM ( - COALESCE ( 54, - ( 56 ) ) ) * 52 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8054
SELECT ALL + - COUNT( * ) + 50 * + 68 AS col2
----
3399

skipif mysql # not compatible
query I rowsort label-8054
SELECT ALL + - COUNT ( * ) + 50 * + 68 AS col2
----
3399

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8055
SELECT ALL - - CAST( - 57 AS SIGNED ) + - 43
----
-100

skipif mysql # not compatible
query I rowsort label-8055
SELECT ALL - - CAST ( - 57 AS INTEGER ) + - 43
----
-100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8056
SELECT DISTINCT CAST( - + 95 AS SIGNED )
----
-95

skipif mysql # not compatible
query I rowsort label-8056
SELECT DISTINCT CAST ( - + 95 AS INTEGER )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-8057
SELECT ALL CASE 17 WHEN + - COUNT( * ) THEN 35 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8057
SELECT ALL CASE 17 WHEN + - COUNT ( * ) THEN 35 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8058
SELECT 37 AS col2, ( - + 0 ) + - 5 + - + SUM( + + ( - 96 ) ) + - CASE WHEN ( - 93 ) <> NULL THEN + 31 + - 23 * - 24 END
----
37
NULL

skipif mysql # not compatible
query II rowsort label-8058
SELECT 37 AS col2, ( - + 0 ) + - 5 + - + SUM ( + + ( - 96 ) ) + - CASE WHEN ( - 93 ) <> NULL THEN + 31 + - 23 * - 24 END
----
37
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8059
SELECT ALL - MIN( - - 31 ) + - 18 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-8059
SELECT ALL - MIN ( - - 31 ) + - 18 AS col1
----
-49

query I rowsort
SELECT DISTINCT + ( - 34 ) AS col2
----
-34

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8061
SELECT CAST( NULL AS DECIMAL ) col2, + 10 + 63
----
NULL
73

skipif mysql # not compatible
query II rowsort label-8061
SELECT CAST ( NULL AS REAL ) col2, + 10 + 63
----
NULL
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8062
SELECT + CASE - SUM( - - 69 ) WHEN 83 THEN COUNT( + CAST( NULL AS SIGNED ) ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8062
SELECT + CASE - SUM ( - - 69 ) WHEN 83 THEN COUNT ( + CAST ( NULL AS INTEGER ) ) ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8063
SELECT + ( - - 75 ) DIV + ( - CAST( + 14 AS SIGNED ) ) + - 28 + COUNT( * ) * 67 - 27 * 90 + - 81 * COUNT( * ) AS col2
----
-2477

skipif mysql # not compatible
query I rowsort label-8063
SELECT + ( - - 75 ) / + ( - CAST ( + 14 AS INTEGER ) ) + - 28 + COUNT ( * ) * 67 - 27 * 90 + - 81 * COUNT ( * ) AS col2
----
-2477

onlyif mysql # aggregate syntax: 
query I rowsort label-8064
SELECT ALL 33 * - COUNT( * ) * SUM( ( + - 73 ) ) * - 4 + - 60 * - + 50 - 85
----
-6721

skipif mysql # not compatible
query I rowsort label-8064
SELECT ALL 33 * - COUNT ( * ) * SUM ( ( + - 73 ) ) * - 4 + - 60 * - + 50 - 85
----
-6721

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8065
SELECT DISTINCT 9 DIV + 79 + + 60 - - - 33 - - 87 * 6 * + - 87 * 36 + - COUNT( * ) * - 46 AS col2
----
-1634831

skipif mysql # not compatible
query I rowsort label-8065
SELECT DISTINCT 9 / + 79 + + 60 - - - 33 - - 87 * 6 * + - 87 * 36 + - COUNT ( * ) * - 46 AS col2
----
-1634831

query I rowsort
SELECT - 15 * - 22 col0
----
330

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8067
SELECT DISTINCT - AVG ( DISTINCT - - CAST( NULL AS SIGNED ) ) * - 51 * - 95 - - - ( + + 7 ) * + 44 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8067
SELECT DISTINCT - AVG ( DISTINCT - - CAST ( NULL AS INTEGER ) ) * - 51 * - 95 - - - ( + + 7 ) * + 44 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8068
SELECT ALL - CASE + CAST( + - 29 AS SIGNED ) WHEN - + 1 + 18 + + COUNT( ALL 6 ) THEN + COUNT( 36 ) * - 10 + + 27 END * + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8068
SELECT ALL - CASE + CAST ( + - 29 AS INTEGER ) WHEN - + 1 + 18 + + COUNT ( ALL 6 ) THEN + COUNT ( 36 ) * - 10 + + 27 END * + COUNT ( * ) col2
----
NULL

query I rowsort
SELECT ( - - 87 )
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8070
SELECT - ( + 81 ) * - 72 + - + 80 / + 21 * + CAST( NULL AS SIGNED ) + 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8070
SELECT - ( + 81 ) * - 72 + - + 80 / + 21 * + CAST ( NULL AS INTEGER ) + 14 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8071
SELECT + COUNT( * ) - COUNT( * ) - 75 + + 59 - 3 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-8071
SELECT + COUNT ( * ) - COUNT ( * ) - 75 + + 59 - 3 AS col0
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8072
SELECT + CAST( NULL AS SIGNED ) AS col2, + 26 AS col1
----
NULL
26

skipif mysql # not compatible
query II rowsort label-8072
SELECT + CAST ( NULL AS INTEGER ) AS col2, + 26 AS col1
----
NULL
26

query I rowsort
SELECT + 47 + + 1 + 48 * 82 AS col2
----
3984

query I rowsort
SELECT ALL + - 86 col1
----
-86

query II rowsort
SELECT 57 AS col1, 52 + - - 91 * + 5
----
57
507

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8076
SELECT DISTINCT + CASE - 93 WHEN + 3 THEN + + CAST( - 53 AS SIGNED ) / + - 97 * + 5 * + SUM( DISTINCT + 87 ) ELSE + 44 - 33 END AS col0
----
11

skipif mysql # not compatible
query I rowsort label-8076
SELECT DISTINCT + CASE - 93 WHEN + 3 THEN + + CAST ( - 53 AS INTEGER ) / + - 97 * + 5 * + SUM ( DISTINCT + 87 ) ELSE + 44 - 33 END AS col0
----
11

query II rowsort
SELECT DISTINCT + 52 AS col2, + 82
----
52
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8078
SELECT - - MIN( ALL + 87 )
----
87

skipif mysql # not compatible
query I rowsort label-8078
SELECT - - MIN ( ALL + 87 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8079
SELECT + 10 + + + COUNT( * ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-8079
SELECT + 10 + + + COUNT ( * ) AS col2
----
11

query I rowsort
SELECT ALL - ( ( + 16 ) )
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-8081
SELECT 73 * + + ( + CASE - 43 WHEN 46 THEN 38 * + + 74 WHEN - 10 THEN - 50 DIV ( - 38 * + 62 ) ELSE + 82 END )
----
5986

skipif mysql # not compatible
query I rowsort label-8081
SELECT 73 * + + ( + CASE - 43 WHEN 46 THEN 38 * + + 74 WHEN - 10 THEN - 50 / ( - 38 * + 62 ) ELSE + 82 END )
----
5986

query I rowsort
SELECT 16 + - 19
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8083
SELECT COUNT( * ) DIV + MIN( DISTINCT - 92 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8083
SELECT COUNT ( * ) / + MIN ( DISTINCT - 92 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8084
SELECT MIN( ALL + 73 ) + + + NULLIF ( - 96, + - 83 * 4 ) * - 55 + - 79 AS col0
----
5274

skipif mysql # not compatible
query I rowsort label-8084
SELECT MIN ( ALL + 73 ) + + + NULLIF ( - 96, + - 83 * 4 ) * - 55 + - 79 AS col0
----
5274

onlyif mysql # DIV for integer division: 
query I rowsort label-8085
SELECT DISTINCT + 35 DIV + 84 * - COALESCE ( 61, ( 66 ), + - 19 ) * 72 + 2 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-8085
SELECT DISTINCT + 35 / + 84 * - COALESCE ( 61, ( 66 ), + - 19 ) * 72 + 2 AS col1
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-8086
SELECT 65 DIV - 17 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-8086
SELECT 65 / - 17 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-8087
SELECT ALL - COUNT( * ) + - COUNT( * ) + - - 53 AS col1, - 46 * - ( + + 4 ) + + NULLIF ( - 53, + 10 ) col0
----
51
131

skipif mysql # not compatible
query II rowsort label-8087
SELECT ALL - COUNT ( * ) + - COUNT ( * ) + - - 53 AS col1, - 46 * - ( + + 4 ) + + NULLIF ( - 53, + 10 ) col0
----
51
131

query I rowsort
SELECT DISTINCT - 66 + + + 72 AS col0
----
6

query II rowsort
SELECT 7 * - + 52 AS col2, 79 AS col1
----
-364
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8090
SELECT SUM( - 37 ) - - 37
----
0

skipif mysql # not compatible
query I rowsort label-8090
SELECT SUM ( - 37 ) - - 37
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8091
SELECT COUNT( * ) + - - 79 AS col1, + ( - + 80 ) AS col0
----
80
-80

skipif mysql # not compatible
query II rowsort label-8091
SELECT COUNT ( * ) + - - 79 AS col1, + ( - + 80 ) AS col0
----
80
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8092
SELECT 32 * - SUM( 51 )
----
-1632

skipif mysql # not compatible
query I rowsort label-8092
SELECT 32 * - SUM ( 51 )
----
-1632

query I rowsort
SELECT ALL - 48 * + 62
----
-2976

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8094
SELECT DISTINCT - CAST( + + 20 AS SIGNED )
----
-20

skipif mysql # not compatible
query I rowsort label-8094
SELECT DISTINCT - CAST ( + + 20 AS INTEGER )
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-8095
SELECT DISTINCT 4 - COALESCE ( 85, - 67 ) AS col0, + NULLIF ( + COUNT( ALL - + 16 ), - 39 ) AS col2
----
-81
1

skipif mysql # not compatible
query II rowsort label-8095
SELECT DISTINCT 4 - COALESCE ( 85, - 67 ) AS col0, + NULLIF ( + COUNT ( ALL - + 16 ), - 39 ) AS col2
----
-81
1

query I rowsort
SELECT 19 + + - 85
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8097
SELECT ALL - COUNT( + + CAST( NULL AS SIGNED ) ) AS col0, - COUNT( * ) AS col2
----
0
-1

skipif mysql # not compatible
query II rowsort label-8097
SELECT ALL - COUNT ( + + CAST ( NULL AS INTEGER ) ) AS col0, - COUNT ( * ) AS col2
----
0
-1

query I rowsort
SELECT - 4 * 53 + - 66
----
-278

query I rowsort
SELECT DISTINCT - CASE 4 WHEN + 73 * - 82 / + 98 THEN + - 68 ELSE 13 END
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8100
SELECT 12 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8100
SELECT 12 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8101
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-8101
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - 68
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8102
SELECT + 44 * - 97, CAST( - 63 AS SIGNED ) - + 7 * - + 57 + - 29 * + COUNT( ALL 35 ) DIV - 62 AS col2
----
-4268
336

skipif mysql # not compatible
query II rowsort label-8102
SELECT + 44 * - 97, CAST ( - 63 AS INTEGER ) - + 7 * - + 57 + - 29 * + COUNT ( ALL 35 ) / - 62 AS col2
----
-4268
336

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8103
SELECT ALL + 30 DIV - COUNT( * ) * COUNT( * ) * - + COUNT( - 37 )
----
30

skipif mysql # not compatible
query I rowsort label-8103
SELECT ALL + 30 / - COUNT ( * ) * COUNT ( * ) * - + COUNT ( - 37 )
----
30

query II rowsort
SELECT DISTINCT - - ( 44 ) AS col2, 41 + - 94
----
44
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8105
SELECT DISTINCT + - 50 * + COUNT( * ) * - 53 AS col0
----
2650

skipif mysql # not compatible
query I rowsort label-8105
SELECT DISTINCT + - 50 * + COUNT ( * ) * - 53 AS col0
----
2650

query I rowsort
SELECT ALL - 38 * + 10
----
-380

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT - 66 * - COALESCE ( - 21, + 37 * 87 * + 35 + - MAX( 29 ), - NULLIF ( + 35, COUNT( * ) ) ) * 24 - - 87 AS col2
----
-33177

skipif mysql # not compatible
query I rowsort label-8107
SELECT - 66 * - COALESCE ( - 21, + 37 * 87 * + 35 + - MAX ( 29 ), - NULLIF ( + 35, COUNT ( * ) ) ) * 24 - - 87 AS col2
----
-33177

query I rowsort
SELECT + 24 * - 81
----
-1944

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT - COUNT( * ) - 56 * COUNT( + 88 ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-8109
SELECT - COUNT ( * ) - 56 * COUNT ( + 88 ) AS col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8110
SELECT COUNT( * ) - + 81 AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-8110
SELECT COUNT ( * ) - + 81 AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8111
SELECT + COUNT( + 82 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8111
SELECT + COUNT ( + 82 ) col0
----
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8112
SELECT ALL 91 + CAST( NULL AS SIGNED ) AS col2, - CAST( NULL AS DECIMAL ) + + 12 - + 79 + + - 73 + 0 * + 90 * 6
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8112
SELECT ALL 91 + CAST ( NULL AS INTEGER ) AS col2, - CAST ( NULL AS REAL ) + + 12 - + 79 + + - 73 + 0 * + 90 * 6
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8113
SELECT - MAX( + 80 ) * - + ( + 68 ) * + 64 * + - 38 * - 96 AS col1
----
1270087680

skipif mysql # not compatible
query I rowsort label-8113
SELECT - MAX ( + 80 ) * - + ( + 68 ) * + 64 * + - 38 * - 96 AS col1
----
1270087680

query I rowsort
SELECT - - ( + NULLIF ( 69, + 21 ) ) AS col2
----
69

query I rowsort
SELECT ALL - + 7 + - - 10 AS col0
----
3

query I rowsort
SELECT DISTINCT + CASE - - ( - + 52 ) WHEN ( + 83 ) THEN - - 89 WHEN + 80 THEN NULL END + - 98 + 44 * 9 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8117
SELECT ALL + 73 + + CAST( - ( + 34 ) AS SIGNED ) + - SUM( ALL + - 71 ) AS col1
----
110

skipif mysql # not compatible
query I rowsort label-8117
SELECT ALL + 73 + + CAST ( - ( + 34 ) AS INTEGER ) + - SUM ( ALL + - 71 ) AS col1
----
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8118
SELECT DISTINCT - CAST( - MAX( 83 ) AS SIGNED )
----
83

skipif mysql # not compatible
query I rowsort label-8118
SELECT DISTINCT - CAST ( - MAX ( 83 ) AS INTEGER )
----
83

query I rowsort
SELECT DISTINCT 75 + + 95 AS col0
----
170

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8120
SELECT CAST( NULL AS DECIMAL ) * 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8120
SELECT CAST ( NULL AS REAL ) * 33 AS col0
----
NULL

query I rowsort
SELECT 87 + 69
----
156

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8122
SELECT COUNT( * ) - + COUNT( * ) + + CAST( - - CASE + + NULLIF ( + 42, + 81 ) WHEN + ( + 79 ) THEN + ( 34 ) / - COUNT( * ) ELSE NULL END AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8122
SELECT COUNT ( * ) - + COUNT ( * ) + + CAST ( - - CASE + + NULLIF ( + 42, + 81 ) WHEN + ( + 79 ) THEN + ( 34 ) / - COUNT ( * ) ELSE NULL END AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8123
SELECT ( + + 96 ) + + + 37 / + + CAST( NULL AS SIGNED ) / SUM( 40 ) * - 94 + - + AVG ( - 61 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8123
SELECT ( + + 96 ) + + + 37 / + + CAST ( NULL AS INTEGER ) / SUM ( 40 ) * - 94 + - + AVG ( - 61 ) AS col1
----
NULL

query I rowsort
SELECT 32 - - + 33
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8125
SELECT CAST( NULL AS SIGNED ) * - + ( COUNT( 28 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8125
SELECT CAST ( NULL AS INTEGER ) * - + ( COUNT ( 28 ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8126
SELECT ALL - CAST( 88 AS SIGNED ) DIV 36 * - 50 AS col0
----
100

skipif mysql # not compatible
query I rowsort label-8126
SELECT ALL - CAST ( 88 AS INTEGER ) / 36 * - 50 AS col0
----
100

query I rowsort
SELECT 28 * 95
----
2660

onlyif mysql # DIV for integer division: 
query I rowsort label-8128
SELECT ALL 15 DIV - 53 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8128
SELECT ALL 15 / - 53 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8129
SELECT - 63 DIV - 94 + + + 74 * 97
----
7178

skipif mysql # not compatible
query I rowsort label-8129
SELECT - 63 / - 94 + + + 74 * 97
----
7178

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT CASE - - COUNT( * ) WHEN MAX( + 56 ) THEN ( - 20 ) * - NULLIF ( - COUNT( * ), + - COUNT( * ) + - + NULLIF ( + 32, 22 ) ) WHEN COUNT( 22 ) * 33 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8130
SELECT CASE - - COUNT ( * ) WHEN MAX ( + 56 ) THEN ( - 20 ) * - NULLIF ( - COUNT ( * ), + - COUNT ( * ) + - + NULLIF ( + 32, 22 ) ) WHEN COUNT ( 22 ) * 33 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8131
SELECT 18 + 47 * + NULLIF ( - COUNT( * ), COUNT( * ) )
----
-29

skipif mysql # not compatible
query I rowsort label-8131
SELECT 18 + 47 * + NULLIF ( - COUNT ( * ), COUNT ( * ) )
----
-29

query II rowsort
SELECT + 16 AS col2, 56 AS col0
----
16
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8133
SELECT 57 * + COUNT( * ) col2
----
57

skipif mysql # not compatible
query I rowsort label-8133
SELECT 57 * + COUNT ( * ) col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8134
SELECT ALL + COUNT( * ) * - 29 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-8134
SELECT ALL + COUNT ( * ) * - 29 AS col0
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-8135
SELECT ( - ( + - 17 ) ) * 78 * - COUNT( * ) AS col0, 88 AS col1
----
-1326
88

skipif mysql # not compatible
query II rowsort label-8135
SELECT ( - ( + - 17 ) ) * 78 * - COUNT ( * ) AS col0, 88 AS col1
----
-1326
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8136
SELECT DISTINCT - COALESCE ( 13, COUNT( * ) + - 56, + 15 ) col1
----
-13

skipif mysql # not compatible
query I rowsort label-8136
SELECT DISTINCT - COALESCE ( 13, COUNT ( * ) + - 56, + 15 ) col1
----
-13

query I rowsort
SELECT DISTINCT - 0 * + NULLIF ( 28, 62 )
----
0

query I rowsort
SELECT ALL - 84 * 28
----
-2352

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8139
SELECT + CAST( + ( 44 ) AS SIGNED )
----
44

skipif mysql # not compatible
query I rowsort label-8139
SELECT + CAST ( + ( 44 ) AS INTEGER )
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-8140
SELECT ALL + - NULLIF ( + - COUNT( * ), 45 ), - 44 + - COUNT( * ) AS col1
----
1
-45

skipif mysql # not compatible
query II rowsort label-8140
SELECT ALL + - NULLIF ( + - COUNT ( * ), 45 ), - 44 + - COUNT ( * ) AS col1
----
1
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8141
SELECT DISTINCT - COALESCE ( 88, + - NULLIF ( + 20, - - CAST( NULL AS SIGNED ) ) * + + 25, + MIN( - 47 ) ) * - + 99 + - + 94 * + 65 + 22
----
2624

skipif mysql # not compatible
query I rowsort label-8141
SELECT DISTINCT - COALESCE ( 88, + - NULLIF ( + 20, - - CAST ( NULL AS INTEGER ) ) * + + 25, + MIN ( - 47 ) ) * - + 99 + - + 94 * + 65 + 22
----
2624

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8142
SELECT - - 43 * + + 43 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8142
SELECT - - 43 * + + 43 + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8143
SELECT DISTINCT + COUNT( * ) DIV 3 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8143
SELECT DISTINCT + COUNT ( * ) / 3 AS col1
----
0

query I rowsort
SELECT - - 37 + + ( 94 )
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT + 43 * + COUNT( * ) + - - 84 - - 69 - + 16 + 22 * 57 + - 95
----
1339

skipif mysql # not compatible
query I rowsort label-8145
SELECT + 43 * + COUNT ( * ) + - - 84 - - 69 - + 16 + 22 * 57 + - 95
----
1339

query I rowsort
SELECT ALL + ( - - 46 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8147
SELECT - + 63 + + COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-8147
SELECT - + 63 + + COUNT ( * )
----
-62

query I rowsort
SELECT + NULLIF ( - 3, 24 + - 82 ) AS col0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8149
SELECT ALL + + CAST( + COUNT( * ) AS SIGNED ) + - 65 + + 54 - + - 6 * + + ( + 13 ) + + 46 * 92 AS col1
----
4300

skipif mysql # not compatible
query I rowsort label-8149
SELECT ALL + + CAST ( + COUNT ( * ) AS INTEGER ) + - 65 + + 54 - + - 6 * + + ( + 13 ) + + 46 * 92 AS col1
----
4300

query I rowsort
SELECT - 67 + + 28 * 18 AS col0
----
437

onlyif mysql # aggregate syntax: 
query I rowsort label-8151
SELECT ALL - COUNT( * ) * + 73 + - 38 AS col1
----
-111

skipif mysql # not compatible
query I rowsort label-8151
SELECT ALL - COUNT ( * ) * + 73 + - 38 AS col1
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-8152
SELECT ( - + 67 ) * + ( 19 ) * + + COUNT( * ) + - ( + ( + + 50 ) )
----
-1323

skipif mysql # not compatible
query I rowsort label-8152
SELECT ( - + 67 ) * + ( 19 ) * + + COUNT ( * ) + - ( + ( + + 50 ) )
----
-1323

query I rowsort
SELECT DISTINCT + - 93 * + 86 * + 93
----
-743814

onlyif mysql # aggregate syntax: 
query I rowsort label-8154
SELECT DISTINCT - + NULLIF ( - - 6, + + 4 * - 31 + - + 80 * COUNT( * ) - + 41 ) * + - 82
----
492

skipif mysql # not compatible
query I rowsort label-8154
SELECT DISTINCT - + NULLIF ( - - 6, + + 4 * - 31 + - + 80 * COUNT ( * ) - + 41 ) * + - 82
----
492

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT ALL + + 67 + + COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-8155
SELECT ALL + + 67 + + COUNT ( * )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8156
SELECT ALL - 41 - - COALESCE ( - - 47, - + 52 ) * - - CASE 7 WHEN + ( 7 ) + NULLIF ( MIN( 52 ), + 61 ) THEN - 2 + 72 WHEN 92 THEN 69 * 38 + + 67 * + 97 END * 32
----
NULL

skipif mysql # not compatible
query I rowsort label-8156
SELECT ALL - 41 - - COALESCE ( - - 47, - + 52 ) * - - CASE 7 WHEN + ( 7 ) + NULLIF ( MIN ( 52 ), + 61 ) THEN - 2 + 72 WHEN 92 THEN 69 * 38 + + 67 * + 97 END * 32
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8157
SELECT - + MIN( 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-8157
SELECT - + MIN ( 4 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8158
SELECT SUM( - 14 ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-8158
SELECT SUM ( - 14 ) AS col0
----
-14

query I rowsort
SELECT ALL ( - ( - 26 ) )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8160
SELECT + 52 + - 29 + + - 84 / + CASE + COUNT( * ) WHEN - 5 / MAX( DISTINCT + + 13 ) THEN + 15 END / 77
----
NULL

skipif mysql # not compatible
query I rowsort label-8160
SELECT + 52 + - 29 + + - 84 / + CASE + COUNT ( * ) WHEN - 5 / MAX ( DISTINCT + + 13 ) THEN + 15 END / 77
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8161
SELECT ALL NULLIF ( 80, + 3 * + COUNT( - 71 ) )
----
80

skipif mysql # not compatible
query I rowsort label-8161
SELECT ALL NULLIF ( 80, + 3 * + COUNT ( - 71 ) )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8162
SELECT ALL ( - 63 ) * - COUNT( * ) * + 25 * + 8
----
12600

skipif mysql # not compatible
query I rowsort label-8162
SELECT ALL ( - 63 ) * - COUNT ( * ) * + 25 * + 8
----
12600

query I rowsort
SELECT ALL ( + 90 )
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8164
SELECT - NULLIF ( - 47, CAST( + 34 AS SIGNED ) ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-8164
SELECT - NULLIF ( - 47, CAST ( + 34 AS INTEGER ) ) AS col0
----
47

query I rowsort
SELECT DISTINCT ( + + 83 ) * - - 48
----
3984

onlyif mysql # aggregate syntax: 
query I rowsort label-8166
SELECT ALL 74 * COUNT( ALL - + 0 ) * - - 29
----
2146

skipif mysql # not compatible
query I rowsort label-8166
SELECT ALL 74 * COUNT ( ALL - + 0 ) * - - 29
----
2146

onlyif mysql # DIV for integer division: 
query I rowsort label-8167
SELECT - 80 DIV + + 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8167
SELECT - 80 / + + 89 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT + 86 * SUM( + 64 )
----
5504

skipif mysql # not compatible
query I rowsort label-8168
SELECT + 86 * SUM ( + 64 )
----
5504

onlyif mysql # aggregate syntax: 
query I rowsort label-8169
SELECT + 56 - COUNT( * ) + CASE + COUNT( * ) WHEN - ( + - NULLIF ( 35, + 7 ) ) THEN NULL WHEN + 95 / + + 13 * + COUNT( * ) + 45 THEN NULL WHEN + 94 THEN + COALESCE ( 48, 73, 19 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8169
SELECT + 56 - COUNT ( * ) + CASE + COUNT ( * ) WHEN - ( + - NULLIF ( 35, + 7 ) ) THEN NULL WHEN + 95 / + + 13 * + COUNT ( * ) + 45 THEN NULL WHEN + 94 THEN + COALESCE ( 48, 73, 19 ) END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8170
SELECT - AVG ( ALL - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8170
SELECT - AVG ( ALL - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8171
SELECT + 32 - + - CAST( NULL AS SIGNED ) * - CASE - 96 WHEN - 87 THEN + + 70 WHEN 10 / + 15 + - 39 * - 30 THEN NULL WHEN 26 THEN 89 / 30 WHEN AVG ( - 68 ) THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8171
SELECT + 32 - + - CAST ( NULL AS INTEGER ) * - CASE - 96 WHEN - 87 THEN + + 70 WHEN 10 / + 15 + - 39 * - 30 THEN NULL WHEN 26 THEN 89 / 30 WHEN AVG ( - 68 ) THEN NULL END col0
----
NULL

query I rowsort
SELECT - ( - + 57 )
----
57

onlyif mysql # aggregate syntax: 
query III rowsort label-8173
SELECT ALL 12 AS col2, 24 col1, - + 95 * ( 75 ) * + 48 + - SUM( 61 )
----
12
24
-342061

skipif mysql # not compatible
query III rowsort label-8173
SELECT ALL 12 AS col2, 24 col1, - + 95 * ( 75 ) * + 48 + - SUM ( 61 )
----
12
24
-342061

query I rowsort
SELECT + 56 + + 73 + + 72 * ( - 94 ) AS col1
----
-6639

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8175
SELECT ALL COALESCE ( - 38, + 41 * + CASE + ( CAST( + - MIN( - - 51 ) AS SIGNED ) ) WHEN - - 14 * - ( - - 81 ) THEN 99 WHEN + 56 THEN NULL ELSE NULL END, - 31 * 36 ) * 4
----
-152

skipif mysql # not compatible
query I rowsort label-8175
SELECT ALL COALESCE ( - 38, + 41 * + CASE + ( CAST ( + - MIN ( - - 51 ) AS INTEGER ) ) WHEN - - 14 * - ( - - 81 ) THEN 99 WHEN + 56 THEN NULL ELSE NULL END, - 31 * 36 ) * 4
----
-152

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8176
SELECT DISTINCT 73 * COALESCE ( - CAST( NULL AS SIGNED ), - - 90 + - ( + 82 ) ) AS col2, - 55 AS col0
----
584
-55

skipif mysql # not compatible
query II rowsort label-8176
SELECT DISTINCT 73 * COALESCE ( - CAST ( NULL AS INTEGER ), - - 90 + - ( + 82 ) ) AS col2, - 55 AS col0
----
584
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8177
SELECT ALL 33 / + + CASE - - 21 WHEN - ( 11 ) * ( - 64 ) * + 23 THEN NULL WHEN - 73 THEN + 90 + + - 0 ELSE NULL END / 98 + - NULLIF ( 33, 1 + - COALESCE ( + 66 + + 17, COALESCE ( 88, + 46, COUNT( - 0 ) * + 84 ), ( 8 ) ) ) * - 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8177
SELECT ALL 33 / + + CASE - - 21 WHEN - ( 11 ) * ( - 64 ) * + 23 THEN NULL WHEN - 73 THEN + 90 + + - 0 ELSE NULL END / 98 + - NULLIF ( 33, 1 + - COALESCE ( + 66 + + 17, COALESCE ( 88, + 46, COUNT ( - 0 ) * + 84 ), ( 8 ) ) ) * - 56 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8178
SELECT ALL 97 DIV - COUNT( - 84 )
----
-97

skipif mysql # not compatible
query I rowsort label-8178
SELECT ALL 97 / - COUNT ( - 84 )
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8179
SELECT DISTINCT + COUNT( * ) / - + ( + 19 ) / - + CAST( NULL AS SIGNED ) + + + 33 + - 59 + - 99 * CAST( ( - 74 ) AS DECIMAL ) * + + CASE 7 WHEN 20 / + 35 THEN ( + 11 ) WHEN COUNT( * ) * 44 + + 32 THEN AVG ( - 38 ) * + AVG ( ALL + 46 - 98 ) END + 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8179
SELECT DISTINCT + COUNT ( * ) / - + ( + 19 ) / - + CAST ( NULL AS INTEGER ) + + + 33 + - 59 + - 99 * CAST ( ( - 74 ) AS REAL ) * + + CASE 7 WHEN 20 / + 35 THEN ( + 11 ) WHEN COUNT ( * ) * 44 + + 32 THEN AVG ( - 38 ) * + AVG ( ALL + 46 - 98 ) END + 6 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8180
SELECT + - 83 DIV - 33 - - - 34
----
-32

skipif mysql # not compatible
query I rowsort label-8180
SELECT + - 83 / - 33 - - - 34
----
-32

query II rowsort
SELECT + ( + - 18 ) AS col1, 42 col0
----
-18
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8182
SELECT DISTINCT COUNT( * ) * COUNT( * ) + + + 12 + 72 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-8182
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) + + + 12 + 72 AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT + MIN( + 87 )
----
87

skipif mysql # not compatible
query I rowsort label-8183
SELECT + MIN ( + 87 )
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-8184
SELECT ALL + 72 * 37 DIV - 34
----
-78

skipif mysql # not compatible
query I rowsort label-8184
SELECT ALL + 72 * 37 / - 34
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8185
SELECT + NULLIF ( COUNT( * ), - 87 )
----
1

skipif mysql # not compatible
query I rowsort label-8185
SELECT + NULLIF ( COUNT ( * ), - 87 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8186
SELECT ALL - + 91 * + 14 * - 82 + + 55, NULLIF ( - 61, COUNT( * ) ) - - 34 AS col0
----
104523
-27

skipif mysql # not compatible
query II rowsort label-8186
SELECT ALL - + 91 * + 14 * - 82 + + 55, NULLIF ( - 61, COUNT ( * ) ) - - 34 AS col0
----
104523
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8187
SELECT ALL COALESCE ( + 32, + + COUNT( * ) + - - 64 + + + MIN( DISTINCT + - 24 ) * + CASE + 39 WHEN + 35 + ( + - 78 ) + 12 * COALESCE ( - NULLIF ( - 29, + 96 ) * + 52, AVG ( DISTINCT + 22 ) * 61, - 20 * 90 ) THEN NULL ELSE + ( - COALESCE ( - COUNT( * ), 54 + + COUNT( ALL - 95 ) * 54, COUNT( * ) ) ) END * - 84, 54 * 16 + - COUNT( * ) DIV - 15 ) * + 39 + - 67 AS col1
----
1181

skipif mysql # not compatible
query I rowsort label-8187
SELECT ALL COALESCE ( + 32, + + COUNT ( * ) + - - 64 + + + MIN ( DISTINCT + - 24 ) * + CASE + 39 WHEN + 35 + ( + - 78 ) + 12 * COALESCE ( - NULLIF ( - 29, + 96 ) * + 52, AVG ( DISTINCT + 22 ) * 61, - 20 * 90 ) THEN NULL ELSE + ( - COALESCE ( - COUNT ( * ), 54 + + COUNT ( ALL - 95 ) * 54, COUNT ( * ) ) ) END * - 84, 54 * 16 + - COUNT ( * ) / - 15 ) * + 39 + - 67 AS col1
----
1181

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8188
SELECT DISTINCT + CASE CASE WHEN - CAST( + COUNT( * ) AS SIGNED ) = - 86 + 81 THEN - 66 END WHEN 60 THEN NULL ELSE 66 END
----
66

skipif mysql # not compatible
query I rowsort label-8188
SELECT DISTINCT + CASE CASE WHEN - CAST ( + COUNT ( * ) AS INTEGER ) = - 86 + 81 THEN - 66 END WHEN 60 THEN NULL ELSE 66 END
----
66

query I rowsort
SELECT ALL - 95 * - 41
----
3895

query II rowsort
SELECT ALL + 50, 20 * 5 AS col2
----
50
100

query II rowsort
SELECT + + 94 AS col2, 40 * + 31
----
94
1240

query II rowsort
SELECT ALL + - 71 AS col0, - 50 AS col2
----
-71
-50

query I rowsort
SELECT - 64 * - 87 * - ( 3 )
----
-16704

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8194
SELECT ALL - 29 * 39 - - 22 - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8194
SELECT ALL - 29 * 39 - - 22 - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT ALL CASE - 22 WHEN 82 * - COUNT( * ) THEN + + 14 + + 73 WHEN - COUNT( * ) THEN - 8 + 10 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8195
SELECT ALL CASE - 22 WHEN 82 * - COUNT ( * ) THEN + + 14 + + 73 WHEN - COUNT ( * ) THEN - 8 + 10 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 89 * - 19 AS col2
----
1691

query II rowsort
SELECT - 16 - + 92, + 91 AS col2
----
-108
91

query II rowsort
SELECT ALL - 17 * - 79 AS col0, + 4 col0
----
1343
4

query I rowsort
SELECT DISTINCT - 8 * - 69 AS col1
----
552

query I rowsort
SELECT DISTINCT + 44 * + 54
----
2376

onlyif mysql # aggregate syntax: 
query I rowsort label-8201
SELECT - NULLIF ( + 98, + COUNT( 60 ) + + 78 ) col2
----
-98

skipif mysql # not compatible
query I rowsort label-8201
SELECT - NULLIF ( + 98, + COUNT ( 60 ) + + 78 ) col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8202
SELECT - 74 * - + MIN( 65 ) * - 78 AS col0
----
-375180

skipif mysql # not compatible
query I rowsort label-8202
SELECT - 74 * - + MIN ( 65 ) * - 78 AS col0
----
-375180

onlyif mysql # aggregate syntax: 
query II rowsort label-8203
SELECT - 33 + + 33 + + + COUNT( * ) + - - 33 - - SUM( - 22 ) * + 37, - 19 - + - 1 AS col1
----
-780
-18

skipif mysql # not compatible
query II rowsort label-8203
SELECT - 33 + + 33 + + + COUNT ( * ) + - - 33 - - SUM ( - 22 ) * + 37, - 19 - + - 1 AS col1
----
-780
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8204
SELECT + COUNT( * ) - + NULLIF ( - + 53, + 21 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-8204
SELECT + COUNT ( * ) - + NULLIF ( - + 53, + 21 ) AS col1
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8205
SELECT DISTINCT ( 65 ) + + ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8205
SELECT DISTINCT ( 65 ) + + ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8206
SELECT DISTINCT CAST( + + 4 AS SIGNED ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-8206
SELECT DISTINCT CAST ( + + 4 AS INTEGER ) AS col2
----
4

query I rowsort
SELECT ALL 97 + + 9
----
106

query I rowsort
SELECT DISTINCT 56 * + 60 * 5 col0
----
16800

query II rowsort
SELECT ALL 14 + + - 14 AS col1, 48 col0
----
0
48

query I rowsort
SELECT 63 * - + 2 AS col1
----
-126

onlyif mysql # aggregate syntax: 
query II rowsort label-8211
SELECT ALL - 82 + + - 65 * 78 AS col2, MIN( - - 13 ) AS col0
----
-5152
13

skipif mysql # not compatible
query II rowsort label-8211
SELECT ALL - 82 + + - 65 * 78 AS col2, MIN ( - - 13 ) AS col0
----
-5152
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8212
SELECT ALL + 92 + - 68 * 22 + MIN( - ( - 40 ) ) + - + COALESCE ( 30, + 7 ) + - CAST( 19 AS SIGNED )
----
-1413

skipif mysql # not compatible
query I rowsort label-8212
SELECT ALL + 92 + - 68 * 22 + MIN ( - ( - 40 ) ) + - + COALESCE ( 30, + 7 ) + - CAST ( 19 AS INTEGER )
----
-1413

query I rowsort
SELECT 47 + - 55 col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT - ( COUNT( * ) ) * + 41 col2
----
-41

skipif mysql # not compatible
query I rowsort label-8214
SELECT - ( COUNT ( * ) ) * + 41 col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8215
SELECT ALL - COALESCE ( + 20, - - 59 * - 67 - - COALESCE ( 15, - 4, - 74 ) + - 27 * 7 + + COUNT( * ) + + 23 ) + 13 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-8215
SELECT ALL - COALESCE ( + 20, - - 59 * - 67 - - COALESCE ( 15, - 4, - 74 ) + - 27 * 7 + + COUNT ( * ) + + 23 ) + 13 AS col0
----
-7

query I rowsort
SELECT + 72 * 49 + + + 88 - - 88
----
3704

onlyif mysql # DIV for integer division: 
query I rowsort label-8217
SELECT 55 DIV - CASE + ( 41 ) WHEN - 92 THEN NULL ELSE - + 2 * 73 END + 83 DIV 34 + 40 * - - 3
----
122

skipif mysql # not compatible
query I rowsort label-8217
SELECT 55 / - CASE + ( 41 ) WHEN - 92 THEN NULL ELSE - + 2 * 73 END + 83 / 34 + 40 * - - 3
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT DISTINCT - MIN( DISTINCT + 41 )
----
-41

skipif mysql # not compatible
query I rowsort label-8218
SELECT DISTINCT - MIN ( DISTINCT + 41 )
----
-41

query I rowsort
SELECT - + 41 * + 45 - COALESCE ( 69, + 9, - 28 )
----
-1914

onlyif mysql # aggregate syntax: 
query II rowsort label-8220
SELECT ALL - + 0 * + 31, + MAX( ALL - 67 ) AS col2
----
0
-67

skipif mysql # not compatible
query II rowsort label-8220
SELECT ALL - + 0 * + 31, + MAX ( ALL - 67 ) AS col2
----
0
-67

query I rowsort
SELECT + 52 * - 34 AS col1
----
-1768

query I rowsort
SELECT DISTINCT - 22 * + + 65 * - - 47 AS col2
----
-67210

onlyif mysql # aggregate syntax: 
query I rowsort label-8223
SELECT - 70 * 39 + MAX( 50 ) AS col0
----
-2680

skipif mysql # not compatible
query I rowsort label-8223
SELECT - 70 * 39 + MAX ( 50 ) AS col0
----
-2680

query I rowsort
SELECT DISTINCT - CASE + 89 WHEN 63 THEN NULL ELSE + 15 END
----
-15

query I rowsort
SELECT ALL 99 * - 86 AS col2
----
-8514

query I rowsort
SELECT 32 + + 52 * - 60 - 8 * 77 * - + 45
----
24632

query I rowsort
SELECT 41 + + - 52
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-8228
SELECT - 43, + 31 + COUNT( * ) col2
----
-43
32

skipif mysql # not compatible
query II rowsort label-8228
SELECT - 43, + 31 + COUNT ( * ) col2
----
-43
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8229
SELECT 31 * + COUNT( * ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-8229
SELECT 31 * + COUNT ( * ) AS col2
----
31

query I rowsort
SELECT ALL + 59 + - NULLIF ( + 54, 85 )
----
5

onlyif mysql # DIV for integer division: 
query II rowsort label-8231
SELECT 10 AS col0, + 79 DIV 66 col2
----
10
1

skipif mysql # not compatible
query II rowsort label-8231
SELECT 10 AS col0, + 79 / 66 col2
----
10
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8232
SELECT ALL 91 + + 35 + + + COUNT( * ) col2
----
127

skipif mysql # not compatible
query I rowsort label-8232
SELECT ALL 91 + + 35 + + + COUNT ( * ) col2
----
127

query I rowsort
SELECT DISTINCT + 41 * - 66 AS col0
----
-2706

query I rowsort
SELECT ALL - 86 * - + 14 AS col0
----
1204

query I rowsort
SELECT 53 + + 38 + - 36 * - + 63
----
2359

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT DISTINCT - 14 + 82 + - NULLIF ( - + COUNT( * ), 26 * + 55 ) * + + 88
----
156

skipif mysql # not compatible
query I rowsort label-8236
SELECT DISTINCT - 14 + 82 + - NULLIF ( - + COUNT ( * ), 26 * + 55 ) * + + 88
----
156

query I rowsort
SELECT ALL - 96 + + 65
----
-31

query II rowsort
SELECT 39, ( - 38 ) AS col1
----
39
-38

query I rowsort
SELECT ALL - 87 * 52 AS col0
----
-4524

onlyif mysql # aggregate syntax: 
query I rowsort label-8240
SELECT 43 * + - 21 * - CASE - COUNT( * ) WHEN + + 90 THEN NULL ELSE 95 END
----
85785

skipif mysql # not compatible
query I rowsort label-8240
SELECT 43 * + - 21 * - CASE - COUNT ( * ) WHEN + + 90 THEN NULL ELSE 95 END
----
85785

query I rowsort
SELECT ALL - - 28 - + - 82 AS col1
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-8242
SELECT + COUNT( * ) * ( + + ( - 73 ) ) + - 22
----
-95

skipif mysql # not compatible
query I rowsort label-8242
SELECT + COUNT ( * ) * ( + + ( - 73 ) ) + - 22
----
-95

query I rowsort
SELECT ALL + 89 * - 46
----
-4094

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8244
SELECT ALL 36 * + 81 - - + 99 AS col0, 73 * - CAST( - ( 37 ) AS SIGNED ) AS col1
----
3015
2701

skipif mysql # not compatible
query II rowsort label-8244
SELECT ALL 36 * + 81 - - + 99 AS col0, 73 * - CAST ( - ( 37 ) AS INTEGER ) AS col1
----
3015
2701

onlyif mysql # aggregate syntax: 
query I rowsort label-8245
SELECT - MIN( ALL - 17 ) * 37
----
629

skipif mysql # not compatible
query I rowsort label-8245
SELECT - MIN ( ALL - 17 ) * 37
----
629

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8246
SELECT - CAST( 68 AS SIGNED ) * - - 95
----
-6460

skipif mysql # not compatible
query I rowsort label-8246
SELECT - CAST ( 68 AS INTEGER ) * - - 95
----
-6460

query I rowsort
SELECT ALL + 29 * - 65
----
-1885

onlyif mysql # aggregate syntax: 
query II rowsort label-8248
SELECT + COUNT( * ) AS col1, - 13 AS col0
----
1
-13

skipif mysql # not compatible
query II rowsort label-8248
SELECT + COUNT ( * ) AS col1, - 13 AS col0
----
1
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8249
SELECT - 44 DIV + 16 + - SUM( - + 49 ) DIV - - 92
----
-2

skipif mysql # not compatible
query I rowsort label-8249
SELECT - 44 / + 16 + - SUM ( - + 49 ) / - - 92
----
-2

query I rowsort
SELECT DISTINCT ( 1 ) * 53 * - 56 AS col2
----
-2968

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8251
SELECT ALL + NULLIF ( - + 83, + + 31 - - - CAST( + 45 AS DECIMAL ) ) - - 74 + - 3 + 3 AS col2, + COUNT( * )
----
-9
1

skipif mysql # not compatible
query II rowsort label-8251
SELECT ALL + NULLIF ( - + 83, + + 31 - - - CAST ( + 45 AS REAL ) ) - - 74 + - 3 + 3 AS col2, + COUNT ( * )
----
-9
1

query I rowsort
SELECT + 27 * + 96 + - 13 AS col0
----
2579

query I rowsort
SELECT DISTINCT + - 44 * + 91 * ( 88 )
----
-352352

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8254
SELECT ALL ( - + CAST( NULL AS SIGNED ) ) / - 28 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8254
SELECT ALL ( - + CAST ( NULL AS INTEGER ) ) / - 28 col0
----
NULL

query I rowsort
SELECT COALESCE ( 20, 87 ) * - 57 + - 1 * + CASE - + 52 WHEN - - 36 + - 25 THEN NULL ELSE + 93 END * - 46 AS col2
----
3138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8256
SELECT 3 - 4 DIV COALESCE ( + MIN( ALL 9 ), - 73, COALESCE ( - 72, + + 64 * + NULLIF ( - MIN( ALL - + 25 ), - 30 ) + - CAST( - 62 AS SIGNED ) + - 74, COUNT( * ) + + 56 ) ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-8256
SELECT 3 - 4 / COALESCE ( + MIN ( ALL 9 ), - 73, COALESCE ( - 72, + + 64 * + NULLIF ( - MIN ( ALL - + 25 ), - 30 ) + - CAST ( - 62 AS INTEGER ) + - 74, COUNT ( * ) + + 56 ) ) AS col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8257
SELECT CAST( NULL AS SIGNED ) / - CASE 28 WHEN - 32 THEN - 98 END * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8257
SELECT CAST ( NULL AS INTEGER ) / - CASE 28 WHEN - 32 THEN - 98 END * + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT COALESCE ( 89, - 29 * COUNT( * ) ) - 39
----
50

skipif mysql # not compatible
query I rowsort label-8258
SELECT COALESCE ( 89, - 29 * COUNT ( * ) ) - 39
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8259
SELECT ALL COUNT( * ) + + 24 * + + 21 + + + COUNT( DISTINCT - 18 )
----
506

skipif mysql # not compatible
query I rowsort label-8259
SELECT ALL COUNT ( * ) + + 24 * + + 21 + + + COUNT ( DISTINCT - 18 )
----
506

query I rowsort
SELECT 63 * - 30 + 13
----
-1877

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8261
SELECT ALL 21 + - + NULLIF ( - 24, + CASE MIN( DISTINCT - - NULLIF ( + + 44, + - 63 ) ) WHEN COALESCE ( 15, + + 15 * + + 78 / - 21 - - 95 ) THEN NULL WHEN + 5 * - 91 THEN COALESCE ( + ( 13 ), + NULLIF ( 34, - COUNT( * ) / + 12 ) * 90 + - 31, - 69 * 14 ) END ) - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8261
SELECT ALL 21 + - + NULLIF ( - 24, + CASE MIN ( DISTINCT - - NULLIF ( + + 44, + - 63 ) ) WHEN COALESCE ( 15, + + 15 * + + 78 / - 21 - - 95 ) THEN NULL WHEN + 5 * - 91 THEN COALESCE ( + ( 13 ), + NULLIF ( 34, - COUNT ( * ) / + 12 ) * 90 + - 31, - 69 * 14 ) END ) - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8262
SELECT DISTINCT 39 + CAST( SUM( - + 80 ) AS SIGNED )
----
-41

skipif mysql # not compatible
query I rowsort label-8262
SELECT DISTINCT 39 + CAST ( SUM ( - + 80 ) AS INTEGER )
----
-41

query II rowsort
SELECT DISTINCT 50 + + - 89 AS col0, + 53 * - 77 AS col0
----
-39
-4081

query I rowsort
SELECT ALL 85 + - 69 AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT DISTINCT ( + 13 ) * + + 99 * COUNT( * ) * COUNT( * ) * - 39 AS col0
----
-50193

skipif mysql # not compatible
query I rowsort label-8265
SELECT DISTINCT ( + 13 ) * + + 99 * COUNT ( * ) * COUNT ( * ) * - 39 AS col0
----
-50193

query I rowsort
SELECT + 67 * 0 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8267
SELECT + 44 + - 74 AS col1, + 99 * + CAST( - - COUNT( - - 78 ) AS SIGNED ) AS col2
----
-30
99

skipif mysql # not compatible
query II rowsort label-8267
SELECT + 44 + - 74 AS col1, + 99 * + CAST ( - - COUNT ( - - 78 ) AS INTEGER ) AS col2
----
-30
99

query I rowsort
SELECT - + 90 - + 26
----
-116

onlyif mysql # DIV for integer division: 
query I rowsort label-8269
SELECT ALL + 85 DIV - 83 + + 40 + - 72
----
-33

skipif mysql # not compatible
query I rowsort label-8269
SELECT ALL + 85 / - 83 + + 40 + - 72
----
-33

query I rowsort
SELECT DISTINCT + - 63 * 63
----
-3969

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8271
SELECT DISTINCT 74 - + - NULLIF ( + 15, 6 ) + - - 39 DIV - 11 + + COUNT( * ) * + COUNT( * ) * 3 * + - CAST( + 9 AS SIGNED ) + + 92 AS col1
----
151

skipif mysql # not compatible
query I rowsort label-8271
SELECT DISTINCT 74 - + - NULLIF ( + 15, 6 ) + - - 39 / - 11 + + COUNT ( * ) * + COUNT ( * ) * 3 * + - CAST ( + 9 AS INTEGER ) + + 92 AS col1
----
151

query I rowsort
SELECT ALL + 18 * + 67 + + 11
----
1217

query I rowsort
SELECT + - ( + - 91 ) + + + 4 AS col2
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-8274
SELECT + 75 DIV - - 80 + + - 59 + + - 50 + - 86 * - 52 * - - 43
----
192187

skipif mysql # not compatible
query I rowsort label-8274
SELECT + 75 / - - 80 + + - 59 + + - 50 + - 86 * - 52 * - - 43
----
192187

onlyif mysql # DIV for integer division: 
query I rowsort label-8275
SELECT + COALESCE ( + 42, + 12 ) DIV 26 + 21 + + - 73
----
-51

skipif mysql # not compatible
query I rowsort label-8275
SELECT + COALESCE ( + 42, + 12 ) / 26 + 21 + + - 73
----
-51

query I rowsort
SELECT + - ( + 7 )
----
-7

query I rowsort
SELECT DISTINCT + + 99 col1
----
99

query II rowsort
SELECT - 91 * + 25, 74 col0
----
-2275
74

query I rowsort
SELECT ALL + 20 * - - 22 + + + 12 * + 12 - - + 38 AS col1
----
622

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8280
SELECT COUNT( + - 82 ) * + + 38 - + - 10 * - 0 + - COUNT( * ), - 95 + + CAST( NULL AS SIGNED ) * + 34 AS col1
----
37
NULL

skipif mysql # not compatible
query II rowsort label-8280
SELECT COUNT ( + - 82 ) * + + 38 - + - 10 * - 0 + - COUNT ( * ), - 95 + + CAST ( NULL AS INTEGER ) * + 34 AS col1
----
37
NULL

query I rowsort
SELECT + CASE - 8 WHEN 62 THEN 17 * - 30 + + - 48 END AS col1
----
NULL

query I rowsort
SELECT - 34 + + - 51
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8283
SELECT + COUNT( + 69 ) * COUNT( * ) DIV CAST( SUM( - 93 ) AS SIGNED ) DIV + CASE - + 96 WHEN + CAST( NULL AS SIGNED ) + + 86 * ( - COUNT( * ) ) THEN NULL ELSE - MAX( ALL + 45 ) END + + 44 + + 29 * - 19 AS col0
----
-507

skipif mysql # not compatible
query I rowsort label-8283
SELECT + COUNT ( + 69 ) * COUNT ( * ) / CAST ( SUM ( - 93 ) AS INTEGER ) / + CASE - + 96 WHEN + CAST ( NULL AS INTEGER ) + + 86 * ( - COUNT ( * ) ) THEN NULL ELSE - MAX ( ALL + 45 ) END + + 44 + + 29 * - 19 AS col0
----
-507

onlyif mysql # aggregate syntax: 
query I rowsort label-8284
SELECT ALL - ( + COUNT( * ) ) * + 65 + - COUNT( - 31 ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-8284
SELECT ALL - ( + COUNT ( * ) ) * + 65 + - COUNT ( - 31 ) AS col0
----
-66

query I rowsort
SELECT COALESCE ( 14, - 51 * - - 23 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT DISTINCT + MAX( 10 ) * - 3 AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-8286
SELECT DISTINCT + MAX ( 10 ) * - 3 AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8287
SELECT ALL - COUNT( * ) * - + COUNT( * ) * - 26 + + + 63
----
37

skipif mysql # not compatible
query I rowsort label-8287
SELECT ALL - COUNT ( * ) * - + COUNT ( * ) * - 26 + + + 63
----
37

query I rowsort
SELECT NULLIF ( + ( + 70 ), + 94 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8289
SELECT + MIN( ALL - 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-8289
SELECT + MIN ( ALL - 55 )
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8290
SELECT - 23 * - 19 + - + CAST( ( - 83 ) AS SIGNED ) + + 72 AS col2
----
592

skipif mysql # not compatible
query I rowsort label-8290
SELECT - 23 * - 19 + - + CAST ( ( - 83 ) AS INTEGER ) + + 72 AS col2
----
592

onlyif mysql # aggregate syntax: 
query II rowsort label-8291
SELECT + MAX( - - 70 ) + - 95 AS col0, + 84 AS col1
----
-25
84

skipif mysql # not compatible
query II rowsort label-8291
SELECT + MAX ( - - 70 ) + - 95 AS col0, + 84 AS col1
----
-25
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8292
SELECT ALL + COUNT( + - 25 ) * + - 63 + + 88 * 37 + + + 22 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8292
SELECT ALL + COUNT ( + - 25 ) * + - 63 + + 88 * 37 + + + 22 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8293
SELECT + 56 + 32 - COUNT( * ) + + - MAX( - 59 ) AS col1, + 80 AS col2
----
146
80

skipif mysql # not compatible
query II rowsort label-8293
SELECT + 56 + 32 - COUNT ( * ) + + - MAX ( - 59 ) AS col1, + 80 AS col2
----
146
80

query I rowsort
SELECT - 68 * + - 12
----
816

query I rowsort
SELECT + 73 * + + 42
----
3066

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8296
SELECT ALL 79 DIV 72 * - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8296
SELECT ALL 79 / 72 * - COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8297
SELECT + COUNT( * ) * COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8297
SELECT + COUNT ( * ) * COUNT ( * ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8298
SELECT + MAX( + 63 ) + - 43 * 54 + - ( + 30 ) + COUNT( * ) AS col2
----
-2288

skipif mysql # not compatible
query I rowsort label-8298
SELECT + MAX ( + 63 ) + - 43 * 54 + - ( + 30 ) + COUNT ( * ) AS col2
----
-2288

query I rowsort
SELECT + 26 + - 30 AS col1
----
-4

query I rowsort
SELECT ALL 19 * ( - 38 )
----
-722

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8301
SELECT - - 91 col1, ( - - CAST( NULL AS SIGNED ) ) * - 60
----
91
NULL

skipif mysql # not compatible
query II rowsort label-8301
SELECT - - 91 col1, ( - - CAST ( NULL AS INTEGER ) ) * - 60
----
91
NULL

query I rowsort
SELECT DISTINCT - 31 - 36 AS col0
----
-67

query I rowsort
SELECT + + 67 + - 4 - + 47 * + ( - 69 )
----
3306

query I rowsort
SELECT ALL + 62 * - 21 + + ( - 22 ) AS col1
----
-1324

query I rowsort
SELECT - - ( - + 13 )
----
-13

query I rowsort
SELECT ( + + 31 ) AS col0
----
31

query II rowsort
SELECT + 30, - 1 AS col1
----
30
-1

query I rowsort
SELECT + - 23 - - 73 + 29 * - 42 * - - NULLIF ( - 95, + + 82 )
----
115760

onlyif mysql # DIV for integer division: 
query I rowsort label-8309
SELECT - + 18 DIV - 99
----
0

skipif mysql # not compatible
query I rowsort label-8309
SELECT - + 18 / - 99
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8310
SELECT - CAST( + - 2 AS SIGNED ) + 0
----
2

skipif mysql # not compatible
query I rowsort label-8310
SELECT - CAST ( + - 2 AS INTEGER ) + 0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-8311
SELECT DISTINCT + 96 DIV - - 54
----
1

skipif mysql # not compatible
query I rowsort label-8311
SELECT DISTINCT + 96 / - - 54
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8312
SELECT DISTINCT - 79 DIV 9 + 40 * 17 AS col1
----
672

skipif mysql # not compatible
query I rowsort label-8312
SELECT DISTINCT - 79 / 9 + 40 * 17 AS col1
----
672

query I rowsort
SELECT - - 41 * - + 4 AS col1
----
-164

onlyif mysql # DIV for integer division: 
query I rowsort label-8314
SELECT DISTINCT - 35 DIV + - 89
----
0

skipif mysql # not compatible
query I rowsort label-8314
SELECT DISTINCT - 35 / + - 89
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8315
SELECT + + COUNT( * ), - 1 * + 16 + + 32 AS col1
----
1
16

skipif mysql # not compatible
query II rowsort label-8315
SELECT + + COUNT ( * ), - 1 * + 16 + + 32 AS col1
----
1
16

query I rowsort
SELECT ALL ( 74 ) * + CASE + + 66 WHEN - 29 + 78 THEN + 48 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8317
SELECT - - AVG ( + + CAST( NULL AS SIGNED ) ) / - 20 / + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-8317
SELECT - - AVG ( + + CAST ( NULL AS INTEGER ) ) / - 20 / + 86
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8318
SELECT ALL + CAST( + COUNT( - + 2 ) AS SIGNED ) / CASE + 48 WHEN + 13 + - + 50 + - 13 * 49 * - - NULLIF ( + - COUNT( * ), 45 * - + COUNT( * ) + - 97 + - 27 ) + + COALESCE ( - 34, 80, + ( + ( CAST( NULL AS SIGNED ) ) ) ) - - CASE ( - COALESCE ( 59, 34 * 18, COUNT( * ) * 9 ) ) WHEN COUNT( * ) * - 59 THEN 9 WHEN + 63 THEN + ( 24 ) END * 58 * - COUNT( ALL 3 ) THEN - 29 END + - 44 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8318
SELECT ALL + CAST ( + COUNT ( - + 2 ) AS INTEGER ) / CASE + 48 WHEN + 13 + - + 50 + - 13 * 49 * - - NULLIF ( + - COUNT ( * ), 45 * - + COUNT ( * ) + - 97 + - 27 ) + + COALESCE ( - 34, 80, + ( + ( CAST ( NULL AS INTEGER ) ) ) ) - - CASE ( - COALESCE ( 59, 34 * 18, COUNT ( * ) * 9 ) ) WHEN COUNT ( * ) * - 59 THEN 9 WHEN + 63 THEN + ( 24 ) END * 58 * - COUNT ( ALL 3 ) THEN - 29 END + - 44 * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8319
SELECT DISTINCT - 93 DIV - 71 + + 40 + + COUNT( * ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-8319
SELECT DISTINCT - 93 / - 71 + + 40 + + COUNT ( * ) AS col2
----
42

query I rowsort
SELECT - 40 + - 89 - + - 29 - + ( + 86 ) col1
----
-186

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8321
SELECT ALL - 60 DIV - 37 + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-8321
SELECT ALL - 60 / - 37 + COUNT ( * ) AS col0
----
2

query I rowsort
SELECT DISTINCT - ( - 67 ) + - 10
----
57

query I rowsort
SELECT ALL - 0 + 33 + 13 AS col2
----
46

query II rowsort
SELECT DISTINCT + 45 + 72 AS col2, 14 AS col0
----
117
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8325
SELECT ALL - ( + CAST( + - ( - + 47 ) AS SIGNED ) )
----
-47

skipif mysql # not compatible
query I rowsort label-8325
SELECT ALL - ( + CAST ( + - ( - + 47 ) AS INTEGER ) )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8326
SELECT COUNT( - 14 ) * 28 * SUM( + 49 ) * - 62
----
-85064

skipif mysql # not compatible
query I rowsort label-8326
SELECT COUNT ( - 14 ) * 28 * SUM ( + 49 ) * - 62
----
-85064

onlyif mysql # aggregate syntax: 
query II rowsort label-8327
SELECT 27 * - - NULLIF ( - COUNT( * ), + - 46 ), + 7 AS col0
----
-27
7

skipif mysql # not compatible
query II rowsort label-8327
SELECT 27 * - - NULLIF ( - COUNT ( * ), + - 46 ), + 7 AS col0
----
-27
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8328
SELECT DISTINCT - CAST( + COALESCE ( 72, - 96 ) AS SIGNED )
----
-72

skipif mysql # not compatible
query I rowsort label-8328
SELECT DISTINCT - CAST ( + COALESCE ( 72, - 96 ) AS INTEGER )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8329
SELECT ALL + 0 - - 79 * 97 + COUNT( * ) + - 99 col2
----
7565

skipif mysql # not compatible
query I rowsort label-8329
SELECT ALL + 0 - - 79 * 97 + COUNT ( * ) + - 99 col2
----
7565

query I rowsort
SELECT 37 - 28 * 80
----
-2203

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8331
SELECT 47 + - - CASE WHEN NOT - 43 IS NOT NULL THEN + - CAST( 70 AS SIGNED ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8331
SELECT 47 + - - CASE WHEN NOT - 43 IS NOT NULL THEN + - CAST ( 70 AS INTEGER ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL - 28 * 91
----
-2548

query II rowsort
SELECT 25, 59 col1
----
25
59

onlyif mysql # aggregate syntax: 
query II rowsort label-8334
SELECT ALL - ( COUNT( * ) ) col2, - 25
----
-1
-25

skipif mysql # not compatible
query II rowsort label-8334
SELECT ALL - ( COUNT ( * ) ) col2, - 25
----
-1
-25

query I rowsort
SELECT ALL - 37 * - 88 AS col1
----
3256

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT COUNT( + - NULLIF ( - 98, 38 * + 39 ) ) - + ( - - 86 ) + + COALESCE ( + 61, - COALESCE ( - 29, + ( - - 84 ) + + 8 * 3, - + SUM( - CASE + 98 WHEN 87 THEN - 94 * - 84 WHEN + 21 - 77 * + 55 THEN NULL END ) ) ) * 10 AS col0
----
525

skipif mysql # not compatible
query I rowsort label-8336
SELECT COUNT ( + - NULLIF ( - 98, 38 * + 39 ) ) - + ( - - 86 ) + + COALESCE ( + 61, - COALESCE ( - 29, + ( - - 84 ) + + 8 * 3, - + SUM ( - CASE + 98 WHEN 87 THEN - 94 * - 84 WHEN + 21 - 77 * + 55 THEN NULL END ) ) ) * 10 AS col0
----
525

onlyif mysql # aggregate syntax: 
query II rowsort label-8337
SELECT ALL + 4, - MIN( + - 59 ) AS col0
----
4
59

skipif mysql # not compatible
query II rowsort label-8337
SELECT ALL + 4, - MIN ( + - 59 ) AS col0
----
4
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8338
SELECT - CAST( + 92 AS SIGNED ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-8338
SELECT - CAST ( + 92 AS INTEGER ) AS col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8339
SELECT COALESCE ( 36, + 21 ) + - COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-8339
SELECT COALESCE ( 36, + 21 ) + - COUNT ( * )
----
35

onlyif mysql # DIV for integer division: 
query II rowsort label-8340
SELECT + 30 DIV + NULLIF ( - 90, - + 67 ) col1, + 99 + - 37 + 29
----
0
91

skipif mysql # not compatible
query II rowsort label-8340
SELECT + 30 / + NULLIF ( - 90, - + 67 ) col1, + 99 + - 37 + 29
----
0
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8341
SELECT 86 + + CASE - 54 WHEN - 80 THEN - 20 WHEN + MAX( - 25 ) THEN 32 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8341
SELECT 86 + + CASE - 54 WHEN - 80 THEN - 20 WHEN + MAX ( - 25 ) THEN 32 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8342
SELECT 16 DIV - 48 + + + 3
----
3

skipif mysql # not compatible
query I rowsort label-8342
SELECT 16 / - 48 + + + 3
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8343
SELECT - COUNT( * ) * + COUNT( * ) * + - 46 DIV + 48
----
0

skipif mysql # not compatible
query I rowsort label-8343
SELECT - COUNT ( * ) * + COUNT ( * ) * + - 46 / + 48
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8344
SELECT - CASE 32 WHEN - 74 * COUNT( * ) THEN - + 78 * + 15 * - + ( - 41 ) + + 18 + AVG ( - CAST( NULL AS SIGNED ) ) ELSE - 20 * + + COUNT( * ) + ( - COUNT( * ) ) * - 56 END * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8344
SELECT - CASE 32 WHEN - 74 * COUNT ( * ) THEN - + 78 * + 15 * - + ( - 41 ) + + 18 + AVG ( - CAST ( NULL AS INTEGER ) ) ELSE - 20 * + + COUNT ( * ) + ( - COUNT ( * ) ) * - 56 END * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - 50 + + 32 + 21
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8346
SELECT ALL + MIN( ALL - 85 ) + 52 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-8346
SELECT ALL + MIN ( ALL - 85 ) + 52 AS col1
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8347
SELECT COUNT( * ) AS col0, COUNT( * ) * 36 * - 75 + - CASE + + CAST( NULL AS SIGNED ) WHEN - 89 THEN NULL WHEN - CAST( COUNT( * ) AS SIGNED ) - 7 * COUNT( * ) THEN 11 ELSE NULL END
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8347
SELECT COUNT ( * ) AS col0, COUNT ( * ) * 36 * - 75 + - CASE + + CAST ( NULL AS INTEGER ) WHEN - 89 THEN NULL WHEN - CAST ( COUNT ( * ) AS INTEGER ) - 7 * COUNT ( * ) THEN 11 ELSE NULL END
----
1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8348
SELECT ALL + CAST( NULL AS SIGNED ) * + - 20 AS col1, NULLIF ( - - ( + + 61 ), - + 76 )
----
NULL
61

skipif mysql # not compatible
query II rowsort label-8348
SELECT ALL + CAST ( NULL AS INTEGER ) * + - 20 AS col1, NULLIF ( - - ( + + 61 ), - + 76 )
----
NULL
61

query I rowsort
SELECT DISTINCT 81 + + 80
----
161

onlyif mysql # DIV for integer division: 
query I rowsort label-8350
SELECT + 20 + + 99 * ( - 0 ) * ( + 93 ) DIV - 75 * - 63 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-8350
SELECT + 20 + + 99 * ( - 0 ) * ( + 93 ) / - 75 * - 63 AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8351
SELECT - - CASE 23 WHEN COUNT( * ) + - 85 + - 84 THEN - - 65 ELSE - 12 END AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-8351
SELECT - - CASE 23 WHEN COUNT ( * ) + - 85 + - 84 THEN - - 65 ELSE - 12 END AS col0
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8352
SELECT CASE 22 WHEN + + COUNT( * ) THEN - + 8 - - 32 - 63 ELSE - COUNT( DISTINCT + CAST( + 71 AS SIGNED ) ) * - 1 + + - 44 - - 36 * + 5 END AS col2
----
137

skipif mysql # not compatible
query I rowsort label-8352
SELECT CASE 22 WHEN + + COUNT ( * ) THEN - + 8 - - 32 - 63 ELSE - COUNT ( DISTINCT + CAST ( + 71 AS INTEGER ) ) * - 1 + + - 44 - - 36 * + 5 END AS col2
----
137

query I rowsort
SELECT - 69 + - 75
----
-144

query II rowsort
SELECT 85, - ( + + 43 ) AS col0
----
85
-43

query II rowsort
SELECT - 21 AS col2, + 84 * + 93 + - - 1 * - + 45 + - 88 * - 3 * - 41
----
-21
-3057

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8356
SELECT COALESCE ( 21, + + CAST( NULL AS SIGNED ) ) DIV - NULLIF ( - + 46, + 49 + + 95 ) + - 82 + - MAX( ALL - 16 ) * + COUNT( + + 13 )
----
-66

skipif mysql # not compatible
query I rowsort label-8356
SELECT COALESCE ( 21, + + CAST ( NULL AS INTEGER ) ) / - NULLIF ( - + 46, + 49 + + 95 ) + - 82 + - MAX ( ALL - 16 ) * + COUNT ( + + 13 )
----
-66

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8357
SELECT - 52 * CASE - + 6 WHEN - COALESCE ( - 6, ( - CAST( NULL AS SIGNED ) ) + + - 55 * 91 ) THEN CAST( NULL AS SIGNED ) WHEN + CAST( - CASE + 77 WHEN - - 56 THEN 94 + + AVG ( - 92 ) ELSE NULL END AS SIGNED ) + CAST( NULL AS DECIMAL ) * - 28 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8357
SELECT - 52 * CASE - + 6 WHEN - COALESCE ( - 6, ( - CAST ( NULL AS INTEGER ) ) + + - 55 * 91 ) THEN CAST ( NULL AS INTEGER ) WHEN + CAST ( - CASE + 77 WHEN - - 56 THEN 94 + + AVG ( - 92 ) ELSE NULL END AS INTEGER ) + CAST ( NULL AS REAL ) * - 28 THEN NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8358
SELECT ALL 5 DIV + 15 col1
----
0

skipif mysql # not compatible
query I rowsort label-8358
SELECT ALL 5 / + 15 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8359
SELECT 4 * - 87 + - + ( + COUNT( * ) ) * + NULLIF ( - - 8, + - AVG ( 2 ) * + 59 * - 1 - + CASE - ( - CASE - - CAST( NULL AS SIGNED ) WHEN - - CAST( + CAST( + COUNT( * ) AS DECIMAL ) AS SIGNED ) THEN 65 + 92 WHEN COUNT( * ) THEN NULL END ) WHEN + 30 + 19 THEN - 95 * 73 + 41 ELSE + MAX( DISTINCT NULLIF ( 23, + 36 ) ) END + SUM( 90 + + 99 ) )
----
-356

skipif mysql # not compatible
query I rowsort label-8359
SELECT 4 * - 87 + - + ( + COUNT ( * ) ) * + NULLIF ( - - 8, + - AVG ( 2 ) * + 59 * - 1 - + CASE - ( - CASE - - CAST ( NULL AS INTEGER ) WHEN - - CAST ( + CAST ( + COUNT ( * ) AS REAL ) AS INTEGER ) THEN 65 + 92 WHEN COUNT ( * ) THEN NULL END ) WHEN + 30 + 19 THEN - 95 * 73 + 41 ELSE + MAX ( DISTINCT NULLIF ( 23, + 36 ) ) END + SUM ( 90 + + 99 ) )
----
-356

query I rowsort
SELECT ALL - 31 + + + 15 * + 62
----
899

onlyif mysql # aggregate syntax: 
query I rowsort label-8361
SELECT 95 * + + 55 * + 56 + COUNT( ALL + 15 ) * 19 * 73 * - ( 77 ) * + - 78 * + COUNT( * ) + - NULLIF ( ( - + CASE COUNT( * ) WHEN + 23 THEN NULL ELSE - - 78 END ), + SUM( - 89 ) ) + 14 * 24 AS col1
----
8623336

skipif mysql # not compatible
query I rowsort label-8361
SELECT 95 * + + 55 * + 56 + COUNT ( ALL + 15 ) * 19 * 73 * - ( 77 ) * + - 78 * + COUNT ( * ) + - NULLIF ( ( - + CASE COUNT ( * ) WHEN + 23 THEN NULL ELSE - - 78 END ), + SUM ( - 89 ) ) + 14 * 24 AS col1
----
8623336

query I rowsort
SELECT DISTINCT - NULLIF ( + 63, + - ( + + 33 ) ) AS col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8363
SELECT DISTINCT - MAX( ALL - 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8363
SELECT DISTINCT - MAX ( ALL - 0 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8364
SELECT COUNT( * ) * + 8 * - - 31 col0
----
248

skipif mysql # not compatible
query I rowsort label-8364
SELECT COUNT ( * ) * + 8 * - - 31 col0
----
248

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT DISTINCT COUNT( * ) * + 62 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-8365
SELECT DISTINCT COUNT ( * ) * + 62 AS col2
----
62

query I rowsort
SELECT 41 * + 18 + + 57
----
795

query I rowsort
SELECT + 34 * 17 * - - 13 + 66
----
7580

query I rowsort
SELECT 62 * ( 16 )
----
992

onlyif mysql # aggregate syntax: 
query I rowsort label-8369
SELECT ALL - NULLIF ( - - 43, + + 92 - SUM( ALL - ( 22 ) ) )
----
-43

skipif mysql # not compatible
query I rowsort label-8369
SELECT ALL - NULLIF ( - - 43, + + 92 - SUM ( ALL - ( 22 ) ) )
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8370
SELECT CAST( ( - COUNT( * ) ) AS SIGNED ) * 25 * + 21 + + ( 29 )
----
-496

skipif mysql # not compatible
query I rowsort label-8370
SELECT CAST ( ( - COUNT ( * ) ) AS INTEGER ) * 25 * + 21 + + ( 29 )
----
-496

onlyif mysql # aggregate syntax: 
query I rowsort label-8371
SELECT 91 + - - COUNT( 21 ) + - + COUNT( DISTINCT + - NULLIF ( + - 86, + 81 ) ) * + 10 + - 12 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-8371
SELECT 91 + - - COUNT ( 21 ) + - + COUNT ( DISTINCT + - NULLIF ( + - 86, + 81 ) ) * + 10 + - 12 AS col2
----
70

query I rowsort
SELECT DISTINCT - - 77 * 17
----
1309

onlyif mysql # aggregate syntax: 
query I rowsort label-8373
SELECT - CASE MAX( ALL + + 60 ) WHEN 60 * 97 THEN 62 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8373
SELECT - CASE MAX ( ALL + + 60 ) WHEN 60 * 97 THEN 62 END
----
NULL

query I rowsort
SELECT 0 * - + 82 + 15 * 91 AS col1
----
1365

query II rowsort
SELECT ALL - 1 * ( NULLIF ( - 78, + 42 * - ( - - 44 ) + 53 * + - 12 ) ) * - 7, 51 + + + 53 * 68 AS col2
----
-546
3655

onlyif mysql # aggregate syntax: 
query II rowsort label-8376
SELECT ALL + 21 + + 16, + COUNT( * ) AS col2
----
37
1

skipif mysql # not compatible
query II rowsort label-8376
SELECT ALL + 21 + + 16, + COUNT ( * ) AS col2
----
37
1

query I rowsort
SELECT ALL - 46 + + 22
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8378
SELECT DISTINCT + + CASE + 67 WHEN + 5 THEN + 37 ELSE + 80 DIV 38 * - 20 END + + 97 - + 93 * 37 - - 46 * COUNT( - 54 ) AS col0
----
-3338

skipif mysql # not compatible
query I rowsort label-8378
SELECT DISTINCT + + CASE + 67 WHEN + 5 THEN + 37 ELSE + 80 / 38 * - 20 END + + 97 - + 93 * 37 - - 46 * COUNT ( - 54 ) AS col0
----
-3338

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT ALL - COUNT( * ) + + + 58
----
57

skipif mysql # not compatible
query I rowsort label-8379
SELECT ALL - COUNT ( * ) + + + 58
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8380
SELECT ALL + + CAST( 56 AS SIGNED ) + + 52 * + 39 * MAX( - 86 )
----
-174352

skipif mysql # not compatible
query I rowsort label-8380
SELECT ALL + + CAST ( 56 AS INTEGER ) + + 52 * + 39 * MAX ( - 86 )
----
-174352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-8381
SELECT + SUM( - + 60 ) DIV CAST( - - CAST( - 18 AS DECIMAL ) AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-8381
SELECT + SUM ( - + 60 ) / CAST ( - - CAST ( - 18 AS REAL ) AS INTEGER )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8382
SELECT + 36 + COUNT( * ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-8382
SELECT + 36 + COUNT ( * ) AS col2
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8383
SELECT DISTINCT COUNT( * ) * - 18 DIV + - 61
----
0

skipif mysql # not compatible
query I rowsort label-8383
SELECT DISTINCT COUNT ( * ) * - 18 / + - 61
----
0

query I rowsort
SELECT ALL + - 68 + + ( + 10 ) AS col0
----
-58

query I rowsort
SELECT DISTINCT 29 * + 0 * + ( - 43 ) AS col1
----
0

query II rowsort
SELECT 56 AS col1, + 13 AS col1
----
56
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT ALL COALESCE ( - - 21, - MIN( DISTINCT 27 ), - 84 ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-8387
SELECT ALL COALESCE ( - - 21, - MIN ( DISTINCT 27 ), - 84 ) AS col0
----
21

query I rowsort
SELECT + 4 * 11 AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8389
SELECT + MIN( ALL + + 23 )
----
23

skipif mysql # not compatible
query I rowsort label-8389
SELECT + MIN ( ALL + + 23 )
----
23

query I rowsort
SELECT + COALESCE ( - 93, - 42 ) col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8391
SELECT + SUM( ALL + + 37 ) * + 96 + 92
----
3644

skipif mysql # not compatible
query I rowsort label-8391
SELECT + SUM ( ALL + + 37 ) * + 96 + 92
----
3644

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8392
SELECT + COUNT( * ) * - CAST( NULL AS SIGNED ) * - 2 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8392
SELECT + COUNT ( * ) * - CAST ( NULL AS INTEGER ) * - 2 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8393
SELECT + COUNT( * ) * + ( + 77 ), 51 + - COALESCE ( 29, - 97 + 61 * 57 + 27 ) AS col2
----
77
22

skipif mysql # not compatible
query II rowsort label-8393
SELECT + COUNT ( * ) * + ( + 77 ), 51 + - COALESCE ( 29, - 97 + 61 * 57 + 27 ) AS col2
----
77
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8394
SELECT CASE MAX( CAST( - + 62 AS SIGNED ) ) WHEN + ( + ( + CAST( 94 AS SIGNED ) ) ) THEN NULL WHEN + + COUNT( * ) + + 16 THEN - 65 * + COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8394
SELECT CASE MAX ( CAST ( - + 62 AS INTEGER ) ) WHEN + ( + ( + CAST ( 94 AS INTEGER ) ) ) THEN NULL WHEN + + COUNT ( * ) + + 16 THEN - 65 * + COUNT ( * ) ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8395
SELECT 1 DIV + + 93 - + 39 * + 88
----
-3432

skipif mysql # not compatible
query I rowsort label-8395
SELECT 1 / + + 93 - + 39 * + 88
----
-3432

query I rowsort
SELECT ALL + 65 * + 75
----
4875

query I rowsort
SELECT + ( - - 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT - 85 * - COUNT( DISTINCT + 47 ) * + 55
----
4675

skipif mysql # not compatible
query I rowsort label-8398
SELECT - 85 * - COUNT ( DISTINCT + 47 ) * + 55
----
4675

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT - 43 * + SUM( ALL NULLIF ( - 75, + - 48 ) ) * COUNT( * ) AS col0
----
3225

skipif mysql # not compatible
query I rowsort label-8399
SELECT - 43 * + SUM ( ALL NULLIF ( - 75, + - 48 ) ) * COUNT ( * ) AS col0
----
3225

query I rowsort
SELECT + 26 + + 34
----
60

query II rowsort
SELECT 60, 45 AS col2
----
60
45

query I rowsort
SELECT ALL - 0 * - - 4
----
0

query I rowsort
SELECT + - 94 * + + 89 AS col1
----
-8366

query I rowsort
SELECT + - 38 * 17 + + 13
----
-633

query II rowsort
SELECT ALL 95 * - - 87 + - 35, - 24 col2
----
8230
-24

query I rowsort
SELECT + - 61 + 0
----
-61

query I rowsort
SELECT ALL + 81 + + 99
----
180

query II rowsort
SELECT ALL - 79, + 27 AS col2
----
-79
27

onlyif mysql # aggregate syntax: 
query II rowsort label-8409
SELECT 46 col2, - ( - NULLIF ( - COUNT( * ), - 20 ) ) AS col0
----
46
-1

skipif mysql # not compatible
query II rowsort label-8409
SELECT 46 col2, - ( - NULLIF ( - COUNT ( * ), - 20 ) ) AS col0
----
46
-1

query I rowsort
SELECT + 42 + 91 AS col1
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-8411
SELECT ALL - COUNT( DISTINCT + - 73 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8411
SELECT ALL - COUNT ( DISTINCT + - 73 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8412
SELECT MIN( + 80 )
----
80

skipif mysql # not compatible
query I rowsort label-8412
SELECT MIN ( + 80 )
----
80

query I rowsort
SELECT - 55 + 72 AS col0
----
17

query I rowsort
SELECT - + 29 * - 4 + 91 AS col2
----
207

query I rowsort
SELECT ALL + - 7 * - 58 + + 38 col0
----
444

query I rowsort
SELECT DISTINCT + 7 - - 31 col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8417
SELECT - - MAX( - 78 ) * + COUNT( * ) * - ( 44 ) AS col2
----
3432

skipif mysql # not compatible
query I rowsort label-8417
SELECT - - MAX ( - 78 ) * + COUNT ( * ) * - ( 44 ) AS col2
----
3432

onlyif mysql # aggregate syntax: 
query I rowsort label-8418
SELECT ALL + CASE + 6 WHEN - 52 + + - 17 THEN + 60 END * 96 / + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8418
SELECT ALL + CASE + 6 WHEN - 52 + + - 17 THEN + 60 END * 96 / + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT - 64 + + - COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-8419
SELECT - 64 + + - COUNT ( * )
----
-65

query II rowsort
SELECT ALL ( - 83 ) AS col0, 31
----
-83
31

query I rowsort
SELECT - 51 * - 85 AS col0
----
4335

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8422
SELECT + CASE + AVG ( 70 ) WHEN 24 - - - 96 THEN - 83 WHEN - AVG ( - CAST( + - 69 AS SIGNED ) ) - - COALESCE ( + + COALESCE ( - - 21, - 52 ), - COUNT( * ) * - 21 * + - 90 ) THEN NULL END * 22 + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8422
SELECT + CASE + AVG ( 70 ) WHEN 24 - - - 96 THEN - 83 WHEN - AVG ( - CAST ( + - 69 AS INTEGER ) ) - - COALESCE ( + + COALESCE ( - - 21, - 52 ), - COUNT ( * ) * - 21 * + - 90 ) THEN NULL END * 22 + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8423
SELECT - SUM( DISTINCT + 28 ) + 67 + - COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-8423
SELECT - SUM ( DISTINCT + 28 ) + 67 + - COUNT ( * )
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8424
SELECT DISTINCT + 96 DIV + 31 DIV + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-8424
SELECT DISTINCT + 96 / + 31 / + COUNT ( * )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8425
SELECT - 45 + + CAST( + - CAST( - 48 AS SIGNED ) AS SIGNED ) - - NULLIF ( - 91, 48 - - 36 ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-8425
SELECT - 45 + + CAST ( + - CAST ( - 48 AS INTEGER ) AS INTEGER ) - - NULLIF ( - 91, 48 - - 36 ) AS col1
----
-88

onlyif mysql # DIV for integer division: 
query II rowsort label-8426
SELECT ALL 15 DIV + 28, 93 AS col1
----
0
93

skipif mysql # not compatible
query II rowsort label-8426
SELECT ALL 15 / + 28, 93 AS col1
----
0
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT + 82 * - COALESCE ( 85, ( - - 44 ) ) + + SUM( ALL + 3 ) AS col2
----
-6967

skipif mysql # not compatible
query I rowsort label-8427
SELECT + 82 * - COALESCE ( 85, ( - - 44 ) ) + + SUM ( ALL + 3 ) AS col2
----
-6967

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8428
SELECT ALL 9 * + MIN( - 50 ) * NULLIF ( + - 39, - CASE - - COUNT( * ) WHEN 15 * + - COALESCE ( - + COUNT( * ), - ( + SUM( ALL + + 59 ) ) / + + 71 * + - 43 ) THEN - + CAST( NULL AS SIGNED ) / - + 91 * COUNT( * ) / COUNT( * ) / - 1 WHEN CAST( 19 AS DECIMAL ) THEN 4 * + 99 END )
----
17550

skipif mysql # not compatible
query I rowsort label-8428
SELECT ALL 9 * + MIN ( - 50 ) * NULLIF ( + - 39, - CASE - - COUNT ( * ) WHEN 15 * + - COALESCE ( - + COUNT ( * ), - ( + SUM ( ALL + + 59 ) ) / + + 71 * + - 43 ) THEN - + CAST ( NULL AS INTEGER ) / - + 91 * COUNT ( * ) / COUNT ( * ) / - 1 WHEN CAST ( 19 AS REAL ) THEN 4 * + 99 END )
----
17550

onlyif mysql # aggregate syntax: 
query I rowsort label-8429
SELECT 69 * COUNT( * ) + - 32 + - 73 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-8429
SELECT 69 * COUNT ( * ) + - 32 + - 73 AS col1
----
-36

query I rowsort
SELECT DISTINCT + NULLIF ( ( - 6 ), 77 ) col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8431
SELECT ALL 73 * - CASE - + 62 WHEN - - 22 THEN + 82 * - + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8431
SELECT ALL 73 * - CASE - + 62 WHEN - - 22 THEN + 82 * - + COUNT ( * ) END
----
NULL

query I rowsort
SELECT 79 * - 75 + 76 + - 28 AS col1
----
-5877

onlyif mysql # aggregate syntax: 
query II rowsort label-8433
SELECT ( - 66 ) AS col2, 62 * 86 * - COUNT( * ) * - + 82
----
-66
437224

skipif mysql # not compatible
query II rowsort label-8433
SELECT ( - 66 ) AS col2, 62 * 86 * - COUNT ( * ) * - + 82
----
-66
437224

query I rowsort
SELECT + 20 * + 17 AS col2
----
340

query I rowsort
SELECT + NULLIF ( + 35, 87 ) * + 12 AS col2
----
420

onlyif mysql # aggregate syntax: 
query II rowsort label-8436
SELECT - 87 * - - 96 + 76 * MAX( + 49 ) * + 66 - 74 * - 17 - 29 AS col0, + 45 - CASE CASE - ( + 20 ) WHEN COALESCE ( + - 79, 83 + - 10 ) * CASE - 45 WHEN - NULLIF ( 26, + 42 ) THEN NULL WHEN + 73 THEN 97 ELSE NULL END + - 92 THEN NULL ELSE 80 - + 92 * - NULLIF ( - COUNT( * ) * ( 75 ), + 36 ) END WHEN + 85 * 48 THEN + 34 WHEN - COUNT( * ) * 75 + + 97 / 30 THEN NULL END * 57
----
238661
NULL

skipif mysql # not compatible
query II rowsort label-8436
SELECT - 87 * - - 96 + 76 * MAX ( + 49 ) * + 66 - 74 * - 17 - 29 AS col0, + 45 - CASE CASE - ( + 20 ) WHEN COALESCE ( + - 79, 83 + - 10 ) * CASE - 45 WHEN - NULLIF ( 26, + 42 ) THEN NULL WHEN + 73 THEN 97 ELSE NULL END + - 92 THEN NULL ELSE 80 - + 92 * - NULLIF ( - COUNT ( * ) * ( 75 ), + 36 ) END WHEN + 85 * 48 THEN + 34 WHEN - COUNT ( * ) * 75 + + 97 / 30 THEN NULL END * 57
----
238661
NULL

query I rowsort
SELECT - ( + 52 ) col1
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8438
SELECT + + SUM( DISTINCT 41 ) DIV 29 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8438
SELECT + + SUM ( DISTINCT 41 ) / 29 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8439
SELECT ALL + + COUNT( * ) * + - CAST( NULL AS SIGNED ) + 29 * COUNT( - 86 ) / - 85 * 4 AS col2, 5 AS col2
----
NULL
5

skipif mysql # not compatible
query II rowsort label-8439
SELECT ALL + + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) + 29 * COUNT ( - 86 ) / - 85 * 4 AS col2, 5 AS col2
----
NULL
5

query I rowsort
SELECT + 46 * + ( 21 ) * 72
----
69552

query I rowsort
SELECT ALL 85 * - - 55 * 70 AS col2
----
327250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8442
SELECT DISTINCT - 76 * - + 37 + 29 / 99 * + + COALESCE ( + 47, - 81 ) * + CASE + MIN( - 86 ) WHEN + 30 + - 53 THEN NULL WHEN ( - - CAST( NULL AS SIGNED ) ) * + 0 THEN + + 43 * + 90 * 47 / CASE - MIN( - 8 ) WHEN 5 / - COUNT( * ) THEN 1 + - SUM( ALL 47 ) * 64 WHEN + 55 THEN NULL END + 15 END + 15 * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8442
SELECT DISTINCT - 76 * - + 37 + 29 / 99 * + + COALESCE ( + 47, - 81 ) * + CASE + MIN ( - 86 ) WHEN + 30 + - 53 THEN NULL WHEN ( - - CAST ( NULL AS INTEGER ) ) * + 0 THEN + + 43 * + 90 * 47 / CASE - MIN ( - 8 ) WHEN 5 / - COUNT ( * ) THEN 1 + - SUM ( ALL 47 ) * 64 WHEN + 55 THEN NULL END + 15 END + 15 * + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8443
SELECT ALL + + COUNT( - 82 )
----
1

skipif mysql # not compatible
query I rowsort label-8443
SELECT ALL + + COUNT ( - 82 )
----
1

query I rowsort
SELECT + - ( - 19 )
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-8445
SELECT + 73 DIV 44 - - 47 + - 56 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-8445
SELECT + 73 / 44 - - 47 + - 56 AS col0
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8446
SELECT ALL + 33 * + COUNT( * ) + + 72 * 80 AS col0, 89 + 57 + + 85 + + 10 + + SUM( CAST( NULL AS SIGNED ) ) / 0
----
5793
NULL

skipif mysql # not compatible
query II rowsort label-8446
SELECT ALL + 33 * + COUNT ( * ) + + 72 * 80 AS col0, 89 + 57 + + 85 + + 10 + + SUM ( CAST ( NULL AS INTEGER ) ) / 0
----
5793
NULL

query II rowsort
SELECT + - 13 * + 2, 10 AS col0
----
-26
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-8448
SELECT CASE - 3 WHEN 54 + - 20 THEN NULL WHEN ( - 74 ) THEN + CAST( NULL AS SIGNED ) + - ( 93 ) ELSE NULL END AS col2, CASE COUNT( + 96 ) WHEN - 87 THEN + ( + 72 ) * - + 60 + + 71 ELSE NULL END AS col0, - 49 AS col1
----
NULL
NULL
-49

skipif mysql # not compatible
query III rowsort label-8448
SELECT CASE - 3 WHEN 54 + - 20 THEN NULL WHEN ( - 74 ) THEN + CAST ( NULL AS INTEGER ) + - ( 93 ) ELSE NULL END AS col2, CASE COUNT ( + 96 ) WHEN - 87 THEN + ( + 72 ) * - + 60 + + 71 ELSE NULL END AS col0, - 49 AS col1
----
NULL
NULL
-49

query I rowsort
SELECT + 35 + + 63
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8450
SELECT COUNT( * ) * 63 + - - 80 DIV ( + 15 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-8450
SELECT COUNT ( * ) * 63 + - - 80 / ( + 15 ) AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT DISTINCT - - COUNT( * ) - 26 + + COUNT( * ) * + 38 + CASE - ( + + 89 ) WHEN 58 THEN 22 WHEN - + 86 THEN - 61 / - + 94 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8451
SELECT DISTINCT - - COUNT ( * ) - 26 + + COUNT ( * ) * + 38 + CASE - ( + + 89 ) WHEN 58 THEN 22 WHEN - + 86 THEN - 61 / - + 94 END AS col1
----
NULL

query I rowsort
SELECT ALL - + 92 - - - 70
----
-162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8453
SELECT ( - ( + 2 ) ) + + 60 * + - 80 * - CAST( - 19 AS SIGNED )
----
-91202

skipif mysql # not compatible
query I rowsort label-8453
SELECT ( - ( + 2 ) ) + + 60 * + - 80 * - CAST ( - 19 AS INTEGER )
----
-91202

onlyif mysql # aggregate syntax: 
query I rowsort label-8454
SELECT ALL 46 - - 59 * + COALESCE ( - + 76, + CASE 19 WHEN - - 53 THEN NULL WHEN + + 86 + - COUNT( * ) + + CASE - - ( + - 72 ) WHEN - ( - + 61 ) THEN 26 END / - 39 + 42 * - - 25 THEN ( 42 ) + 58 ELSE NULL END, + ( 80 ) - ( - 4 + + 20 ) ) AS col2
----
-4438

skipif mysql # not compatible
query I rowsort label-8454
SELECT ALL 46 - - 59 * + COALESCE ( - + 76, + CASE 19 WHEN - - 53 THEN NULL WHEN + + 86 + - COUNT ( * ) + + CASE - - ( + - 72 ) WHEN - ( - + 61 ) THEN 26 END / - 39 + 42 * - - 25 THEN ( 42 ) + 58 ELSE NULL END, + ( 80 ) - ( - 4 + + 20 ) ) AS col2
----
-4438

query II rowsort
SELECT DISTINCT 73 AS col0, 46 col2
----
73
46

query I rowsort
SELECT 76 * + 89 * - + 89 AS col0
----
-601996

query II rowsort
SELECT DISTINCT 30, + 42 AS col1
----
30
42

query I rowsort
SELECT 50 - + - 3 + + 87
----
140

query I rowsort
SELECT DISTINCT + 92 * - + 94 AS col1
----
-8648

query I rowsort
SELECT ALL + 83 * 10 AS col0
----
830

query I rowsort
SELECT 66 * - - 97 * - - ( ( 54 ) ) * - + 91 + 59
----
-31459369

query I rowsort
SELECT ALL 4 * + 45 col1
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-8463
SELECT ALL - COUNT( * ) + - MIN( DISTINCT + 15 ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-8463
SELECT ALL - COUNT ( * ) + - MIN ( DISTINCT + 15 ) AS col1
----
-16

query II rowsort
SELECT 27, + 95 AS col0
----
27
95

onlyif mysql # aggregate syntax: 
query II rowsort label-8465
SELECT ALL - COUNT( * ) AS col1, - 56 AS col2
----
-1
-56

skipif mysql # not compatible
query II rowsort label-8465
SELECT ALL - COUNT ( * ) AS col1, - 56 AS col2
----
-1
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-8466
SELECT 56 DIV - 20
----
-2

skipif mysql # not compatible
query I rowsort label-8466
SELECT 56 / - 20
----
-2

query I rowsort
SELECT 91 * - 9 AS col0
----
-819

query I rowsort
SELECT 72 - 38 + + 59 + - ( 83 ) + + + 47 * 99 AS col0
----
4663

query I rowsort
SELECT ALL - 47 + NULLIF ( + 25, 92 )
----
-22

query I rowsort
SELECT 81 * + 90
----
7290

query I rowsort
SELECT 17 * + 79 AS col1
----
1343

query I rowsort
SELECT 91 * 29 AS col1
----
2639

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8473
SELECT ALL COUNT( * ) + + + 8 + CAST( - ( - 82 ) AS SIGNED ) + + - 1 * COUNT( * ) - + - 44 AS col1, + 68 + + 57 * - 90
----
134
-5062

skipif mysql # not compatible
query II rowsort label-8473
SELECT ALL COUNT ( * ) + + + 8 + CAST ( - ( - 82 ) AS INTEGER ) + + - 1 * COUNT ( * ) - + - 44 AS col1, + 68 + + 57 * - 90
----
134
-5062

onlyif mysql # aggregate syntax: 
query I rowsort label-8474
SELECT DISTINCT 78 * COUNT( * ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-8474
SELECT DISTINCT 78 * COUNT ( * ) AS col2
----
78

query I rowsort
SELECT DISTINCT - ( 95 ) AS col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT 29 * COUNT( * ) col0
----
29

skipif mysql # not compatible
query I rowsort label-8476
SELECT 29 * COUNT ( * ) col0
----
29

query I rowsort
SELECT + 88 + + + 31 AS col2
----
119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8478
SELECT + + CAST( - + 67 AS SIGNED ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-8478
SELECT + + CAST ( - + 67 AS INTEGER ) AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8479
SELECT COUNT( * ) + + 74
----
75

skipif mysql # not compatible
query I rowsort label-8479
SELECT COUNT ( * ) + + 74
----
75

query I rowsort
SELECT - 80 * - - 3
----
-240

onlyif mysql # aggregate syntax: 
query II rowsort label-8481
SELECT 55 + MIN( 82 ), - 69 AS col1
----
137
-69

skipif mysql # not compatible
query II rowsort label-8481
SELECT 55 + MIN ( 82 ), - 69 AS col1
----
137
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8482
SELECT 98 - CAST( NULL AS SIGNED ) / + COUNT( * ) + + + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-8482
SELECT 98 - CAST ( NULL AS INTEGER ) / + COUNT ( * ) + + + 96
----
NULL

query I rowsort
SELECT - 57 * - 82 + + + 67 + - - 20 + + + 22 * - 26 * - - 96 col1
----
-50151

query II rowsort
SELECT DISTINCT 95 * + 88 * - - 82 AS col1, 98
----
685520
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8485
SELECT + 13 * COUNT( * ) DIV - + 42 + 83 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-8485
SELECT + 13 * COUNT ( * ) / - + 42 + 83 AS col0
----
83

query I rowsort
SELECT + 87 + + 67 * - 30 AS col1
----
-1923

onlyif mysql # aggregate syntax: 
query I rowsort label-8487
SELECT - - MAX( DISTINCT - - 68 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-8487
SELECT - - MAX ( DISTINCT - - 68 ) AS col1
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8488
SELECT 76 DIV COALESCE ( - 74, + + ( - - ( + - 29 ) ) DIV + COUNT( 61 ) + + 40 + 81 * 19 - + + AVG ( ALL + 86 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8488
SELECT 76 / COALESCE ( - 74, + + ( - - ( + - 29 ) ) / + COUNT ( 61 ) + + 40 + 81 * 19 - + + AVG ( ALL + 86 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT 47 * COUNT( * ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-8489
SELECT 47 * COUNT ( * ) AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8490
SELECT CASE + MIN( - + 55 ) WHEN + 84 * + AVG ( + 94 ) THEN - 84 WHEN - + 92 * - COUNT( * ) + + NULLIF ( + COALESCE ( - 89, - - 23, - 59 / - CASE + - 64 WHEN + - NULLIF ( - SUM( - ( + - 57 ) ), + + AVG ( 48 ) ) THEN + 81 WHEN 3 THEN NULL END / + 98 ), - 29 + 78 * 40 ) * 70 THEN - COUNT( * ) * NULLIF ( 83, + 9 + - 54 * + 34 ) ELSE NULL END + + ( - 61 ) * - SUM( 84 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8490
SELECT CASE + MIN ( - + 55 ) WHEN + 84 * + AVG ( + 94 ) THEN - 84 WHEN - + 92 * - COUNT ( * ) + + NULLIF ( + COALESCE ( - 89, - - 23, - 59 / - CASE + - 64 WHEN + - NULLIF ( - SUM ( - ( + - 57 ) ), + + AVG ( 48 ) ) THEN + 81 WHEN 3 THEN NULL END / + 98 ), - 29 + 78 * 40 ) * 70 THEN - COUNT ( * ) * NULLIF ( 83, + 9 + - 54 * + 34 ) ELSE NULL END + + ( - 61 ) * - SUM ( 84 ) col0
----
NULL

query I rowsort
SELECT DISTINCT 69 * + 19 col2
----
1311

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8492
SELECT ALL 31, + CAST( + 27 AS SIGNED ) AS col1
----
31
27

skipif mysql # not compatible
query II rowsort label-8492
SELECT ALL 31, + CAST ( + 27 AS INTEGER ) AS col1
----
31
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8493
SELECT 66 DIV - ( + + COUNT( 38 ) )
----
-66

skipif mysql # not compatible
query I rowsort label-8493
SELECT 66 / - ( + + COUNT ( 38 ) )
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8494
SELECT ALL 4 + 21 * + 87 * 64 * 79 * - CASE + 35 WHEN 68 + 85 + - 13 + - 8 THEN - + COUNT( * ) WHEN + CASE - CAST( NULL AS SIGNED ) WHEN 23 * CAST( NULL AS DECIMAL ) THEN 6 WHEN + + 64 THEN NULL WHEN 65 THEN ( MAX( - 67 ) ) ELSE - 92 + + 47 END THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8494
SELECT ALL 4 + 21 * + 87 * 64 * 79 * - CASE + 35 WHEN 68 + 85 + - 13 + - 8 THEN - + COUNT ( * ) WHEN + CASE - CAST ( NULL AS INTEGER ) WHEN 23 * CAST ( NULL AS REAL ) THEN 6 WHEN + + 64 THEN NULL WHEN 65 THEN ( MAX ( - 67 ) ) ELSE - 92 + + 47 END THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT 63 + + - 12
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8496
SELECT 91 col1, + 22 * - + 75 + - COALESCE ( - - 90, - CASE 38 WHEN - 61 * + 82 + - + 32 THEN NULL WHEN + - 86 * - CAST( NULL AS SIGNED ) THEN NULL WHEN - 70 DIV - 4 + - CAST( + + 32 AS SIGNED ) * 12 THEN NULL ELSE - 42 DIV + 9 + + MIN( DISTINCT + 6 ) END, - 18 ) AS col2
----
91
-1740

skipif mysql # not compatible
query II rowsort label-8496
SELECT 91 col1, + 22 * - + 75 + - COALESCE ( - - 90, - CASE 38 WHEN - 61 * + 82 + - + 32 THEN NULL WHEN + - 86 * - CAST ( NULL AS INTEGER ) THEN NULL WHEN - 70 / - 4 + - CAST ( + + 32 AS INTEGER ) * 12 THEN NULL ELSE - 42 / + 9 + + MIN ( DISTINCT + 6 ) END, - 18 ) AS col2
----
91
-1740

onlyif mysql # aggregate syntax: 
query I rowsort label-8497
SELECT ALL + SUM( DISTINCT + - 23 ) + 4 col2
----
-19

skipif mysql # not compatible
query I rowsort label-8497
SELECT ALL + SUM ( DISTINCT + - 23 ) + 4 col2
----
-19

query I rowsort
SELECT ALL 98 + - 54 AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT - SUM( + - 50 )
----
50

skipif mysql # not compatible
query I rowsort label-8499
SELECT - SUM ( + - 50 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8500
SELECT ALL 50 + COALESCE ( SUM( ALL + + 2 ), - 9 ) + - 38 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-8500
SELECT ALL 50 + COALESCE ( SUM ( ALL + + 2 ), - 9 ) + - 38 AS col1
----
14

query I rowsort
SELECT 72 + + 16 col1
----
88

query I rowsort
SELECT 7 - - 46 AS col1
----
53

query I rowsort
SELECT CASE + + 40 WHEN + + 82 * 39 THEN NULL ELSE + 34 END + + 29
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-8504
SELECT - 42 DIV + 13 - + 2 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-8504
SELECT - 42 / + 13 - + 2 AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT ALL - MIN( + - NULLIF ( + 29, 85 ) )
----
29

skipif mysql # not compatible
query I rowsort label-8505
SELECT ALL - MIN ( + - NULLIF ( + 29, 85 ) )
----
29

query I rowsort
SELECT 16 * + 87 + 95 col2
----
1487

onlyif mysql # aggregate syntax: 
query II rowsort label-8507
SELECT + 64, 11 * + NULLIF ( - 33, + - ( - COUNT( * ) ) * + 34 + + + 21 * - 5 + + - 91 ) AS col1
----
64
-363

skipif mysql # not compatible
query II rowsort label-8507
SELECT + 64, 11 * + NULLIF ( - 33, + - ( - COUNT ( * ) ) * + 34 + + + 21 * - 5 + + - 91 ) AS col1
----
64
-363

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8508
SELECT DISTINCT COUNT( * ) * - CAST( + 98 AS SIGNED ) + - + CASE - NULLIF ( + + 97, - 72 ) WHEN - 54 THEN - - 52 ELSE + 67 END AS col0
----
-165

skipif mysql # not compatible
query I rowsort label-8508
SELECT DISTINCT COUNT ( * ) * - CAST ( + 98 AS INTEGER ) + - + CASE - NULLIF ( + + 97, - 72 ) WHEN - 54 THEN - - 52 ELSE + 67 END AS col0
----
-165

query I rowsort
SELECT DISTINCT - ( + 16 ) AS col0
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8510
SELECT ALL + + 72 * + - COUNT( * ) + - 67 DIV 97 AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-8510
SELECT ALL + + 72 * + - COUNT ( * ) + - 67 / 97 AS col1
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8511
SELECT ALL - + COALESCE ( - 5, + - CAST( NULL AS SIGNED ) DIV + 97 + 32, + COUNT( * ) + - 39 + - + NULLIF ( - MIN( + 75 ), 28 ) + - 48 * COALESCE ( + + 85, + 97 DIV - AVG ( ALL - - NULLIF ( - 74, + 77 ) ) + - + 73 - - 55 - - 4 ) * - 38 + + 42 * - 86 ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-8511
SELECT ALL - + COALESCE ( - 5, + - CAST ( NULL AS INTEGER ) / + 97 + 32, + COUNT ( * ) + - 39 + - + NULLIF ( - MIN ( + 75 ), 28 ) + - 48 * COALESCE ( + + 85, + 97 / - AVG ( ALL - - NULLIF ( - 74, + 77 ) ) + - + 73 - - 55 - - 4 ) * - 38 + + 42 * - 86 ) AS col0
----
5

query I rowsort
SELECT 44 + - 23 * + 82 * - + 43
----
81142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8513
SELECT + 86 * - COALESCE ( + 69, + 12, + + ( 95 ) * + 5 * 7 * + + 32 * - - 30 * - 86 + + - 30 ) * - + CAST( 85 AS SIGNED ) + + 30
----
504420

skipif mysql # not compatible
query I rowsort label-8513
SELECT + 86 * - COALESCE ( + 69, + 12, + + ( 95 ) * + 5 * 7 * + + 32 * - - 30 * - 86 + + - 30 ) * - + CAST ( 85 AS INTEGER ) + + 30
----
504420

onlyif mysql # DIV for integer division: 
query I rowsort label-8514
SELECT + 9 * + 8 + + 55 + + - 11 DIV 38 + + 1 AS col2
----
128

skipif mysql # not compatible
query I rowsort label-8514
SELECT + 9 * + 8 + + 55 + + - 11 / 38 + + 1 AS col2
----
128

onlyif mysql # DIV for integer division: 
query I rowsort label-8515
SELECT - ( + + 67 ) DIV 66 col1
----
-1

skipif mysql # not compatible
query I rowsort label-8515
SELECT - ( + + 67 ) / 66 col1
----
-1

query II rowsort
SELECT DISTINCT + 82 AS col1, - 36 * + 30
----
82
-1080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8517
SELECT DISTINCT + + CAST( - AVG ( 41 ) AS SIGNED )
----
-41

skipif mysql # not compatible
query I rowsort label-8517
SELECT DISTINCT + + CAST ( - AVG ( 41 ) AS INTEGER )
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8518
SELECT DISTINCT - + 59 / 55 + - CAST( NULL AS SIGNED ) + - - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-8518
SELECT DISTINCT - + 59 / 55 + - CAST ( NULL AS INTEGER ) + - - 85
----
NULL

query II rowsort
SELECT + - 92 AS col1, - 75 AS col0
----
-92
-75

query I rowsort
SELECT + - 23 col2
----
-23

query I rowsort
SELECT - 11 * - 27
----
297

onlyif mysql # aggregate syntax: 
query II rowsort label-8522
SELECT ALL - 84 * - + ( + - NULLIF ( + + 62, + 66 / - - 64 + 52 ) ) + + 42 + - COUNT( * ) * 40 + 36 * COUNT( * ) col1, 3
----
-5170
3

skipif mysql # not compatible
query II rowsort label-8522
SELECT ALL - 84 * - + ( + - NULLIF ( + + 62, + 66 / - - 64 + 52 ) ) + + 42 + - COUNT ( * ) * 40 + 36 * COUNT ( * ) col1, 3
----
-5170
3

query II rowsort
SELECT - + 3 + - + 22 AS col0, + 56 AS col2
----
-25
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8524
SELECT - COALESCE ( + 43, - 79 * - 43 * NULLIF ( + ( - COALESCE ( + - 43, NULLIF ( + + 97, - 77 ), + - 13 - CAST( + - 1 AS SIGNED ) + + + 77 + - 32 * 62 ) ), + COALESCE ( + COALESCE ( + 22, + 95 / 76 * - 93 ), COALESCE ( 3, 79 * + CASE NULLIF ( + 46, CAST( 94 AS SIGNED ) + 80 * + COALESCE ( MIN( DISTINCT + 14 ) / + NULLIF ( NULLIF ( COUNT( - 42 ), - COUNT( - 15 ) + - 59 ), + ( + 58 ) / - 3 ), COUNT( + 32 ), 6 + - 98 ) ) WHEN 94 THEN 85 ELSE - 0 * + 56 END + + 36 ) * + 52 + 29 ) + + 31 / + 26 ) )
----
-43

skipif mysql # not compatible
query I rowsort label-8524
SELECT - COALESCE ( + 43, - 79 * - 43 * NULLIF ( + ( - COALESCE ( + - 43, NULLIF ( + + 97, - 77 ), + - 13 - CAST ( + - 1 AS INTEGER ) + + + 77 + - 32 * 62 ) ), + COALESCE ( + COALESCE ( + 22, + 95 / 76 * - 93 ), COALESCE ( 3, 79 * + CASE NULLIF ( + 46, CAST ( 94 AS INTEGER ) + 80 * + COALESCE ( MIN ( DISTINCT + 14 ) / + NULLIF ( NULLIF ( COUNT ( - 42 ), - COUNT ( - 15 ) + - 59 ), + ( + 58 ) / - 3 ), COUNT ( + 32 ), 6 + - 98 ) ) WHEN 94 THEN 85 ELSE - 0 * + 56 END + + 36 ) * + 52 + 29 ) + + 31 / + 26 ) )
----
-43

query I rowsort
SELECT ALL - 10 + - - 17 AS col0
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-8526
SELECT DISTINCT ( 21 ), - 9 + - CAST( - 66 AS SIGNED ) col2, 91 * - CASE - 76 WHEN - 50 - + 32 THEN - 50 ELSE + 96 * - - 16 * - 36 + + ( - 30 ) END * - NULLIF ( + COUNT( * ), + + 17 ) + 64 AS col0
----
21
57
-5034602

skipif mysql # not compatible
query III rowsort label-8526
SELECT DISTINCT ( 21 ), - 9 + - CAST ( - 66 AS INTEGER ) col2, 91 * - CASE - 76 WHEN - 50 - + 32 THEN - 50 ELSE + 96 * - - 16 * - 36 + + ( - 30 ) END * - NULLIF ( + COUNT ( * ), + + 17 ) + 64 AS col0
----
21
57
-5034602

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8527
SELECT + 92 + + + ( + + CAST( NULL AS SIGNED ) ) + + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-8527
SELECT + 92 + + + ( + + CAST ( NULL AS INTEGER ) ) + + 43
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8528
SELECT - CASE - CASE + 24 WHEN 30 + + CASE 6 WHEN + + CAST( + + 50 AS SIGNED ) THEN + 58 END THEN NULL ELSE - 24 + COUNT( * ) END WHEN + + 3 THEN - CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8528
SELECT - CASE - CASE + 24 WHEN 30 + + CASE 6 WHEN + + CAST ( + + 50 AS INTEGER ) THEN + 58 END THEN NULL ELSE - 24 + COUNT ( * ) END WHEN + + 3 THEN - CAST ( NULL AS INTEGER ) END AS col0
----
NULL

query I rowsort
SELECT ALL 50 + - 62 AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8530
SELECT + AVG ( DISTINCT + 54 ) * + - COUNT( * ) + - - 40 + + - CASE + + 27 WHEN + 65 THEN - ( - COUNT( * ) ) * COALESCE ( 57, MIN( ALL - 55 ) ) + - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8530
SELECT + AVG ( DISTINCT + 54 ) * + - COUNT ( * ) + - - 40 + + - CASE + + 27 WHEN + 65 THEN - ( - COUNT ( * ) ) * COALESCE ( 57, MIN ( ALL - 55 ) ) + - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8531
SELECT - SUM( 41 ) AS col2, 31
----
-41
31

skipif mysql # not compatible
query II rowsort label-8531
SELECT - SUM ( 41 ) AS col2, 31
----
-41
31

query I rowsort
SELECT + 38 + - 16 AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8533
SELECT - CASE - - 89 WHEN + ( 85 ) * + - 55 * - - 53 THEN + + COUNT( * ) WHEN 80 * + 99 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8533
SELECT - CASE - - 89 WHEN + ( 85 ) * + - 55 * - - 53 THEN + + COUNT ( * ) WHEN 80 * + 99 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8534
SELECT ALL 96 + 97 * + 42 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8534
SELECT ALL 96 + 97 * + 42 * + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + 2 * - 97 AS col0, 12 AS col2
----
-194
12

query I rowsort
SELECT DISTINCT 8 * - + 19 * - 76 AS col0
----
11552

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT ALL COUNT( DISTINCT + - 93 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8537
SELECT ALL COUNT ( DISTINCT + - 93 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8538
SELECT DISTINCT - 28 / 29 * - - CAST( NULL AS SIGNED ) - + 52 + + 28 AS col0, + 50 * - ( - CAST( - 35 AS SIGNED ) ) * + - 38 + + - 18
----
NULL
66482

skipif mysql # not compatible
query II rowsort label-8538
SELECT DISTINCT - 28 / 29 * - - CAST ( NULL AS INTEGER ) - + 52 + + 28 AS col0, + 50 * - ( - CAST ( - 35 AS INTEGER ) ) * + - 38 + + - 18
----
NULL
66482

query I rowsort
SELECT + 65 - + 73 + 5
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8540
SELECT + 79 - + 60 + CASE 89 WHEN + CASE 34 WHEN 78 THEN + - COUNT( * ) END * + 39 - CASE - + 65 WHEN - ( + + SUM( + 4 ) ) THEN - 81 WHEN - - 20 THEN NULL ELSE NULL END THEN + 69 + + AVG ( DISTINCT + 47 ) END + - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8540
SELECT + 79 - + 60 + CASE 89 WHEN + CASE 34 WHEN 78 THEN + - COUNT ( * ) END * + 39 - CASE - + 65 WHEN - ( + + SUM ( + 4 ) ) THEN - 81 WHEN - - 20 THEN NULL ELSE NULL END THEN + 69 + + AVG ( DISTINCT + 47 ) END + - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 53 * + 0 AS col0
----
0

query I rowsort
SELECT ALL + + CASE 23 WHEN + 33 THEN + 33 END
----
NULL

query I rowsort
SELECT - + 1 * + ( - + 75 ) + - - 50 + + 69 AS col2
----
194

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT ALL - SUM( DISTINCT + 23 ) * - + 33 col0
----
759

skipif mysql # not compatible
query I rowsort label-8544
SELECT ALL - SUM ( DISTINCT + 23 ) * - + 33 col0
----
759

query I rowsort
SELECT DISTINCT - 46 * 85 AS col0
----
-3910

query I rowsort
SELECT + 86 + + 5 + ( + - 2 ) * - 9 + - 44 * + 63 - 7 col0
----
-2670

onlyif mysql # DIV for integer division: 
query I rowsort label-8547
SELECT - + 18 DIV - - 45 * + - 98 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8547
SELECT - + 18 / - - 45 * + - 98 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8548
SELECT - 8 + COUNT( * ) * CAST( NULL AS SIGNED ) + - 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8548
SELECT - 8 + COUNT ( * ) * CAST ( NULL AS INTEGER ) + - 90 AS col2
----
NULL

query I rowsort
SELECT - + 69 - - 0 + - 41
----
-110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8550
SELECT - + 58 DIV + SUM( ALL + + 58 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8550
SELECT - + 58 / + SUM ( ALL + + 58 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8551
SELECT ALL - COUNT( * ) * + - COUNT( * ) * - 82 * - 98 + COUNT( * ) AS col2
----
8037

skipif mysql # not compatible
query I rowsort label-8551
SELECT ALL - COUNT ( * ) * + - COUNT ( * ) * - 82 * - 98 + COUNT ( * ) AS col2
----
8037

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT ALL + 4 * - ( + + MIN( + 90 ) ) + - 54 * 9 col0
----
-846

skipif mysql # not compatible
query I rowsort label-8552
SELECT ALL + 4 * - ( + + MIN ( + 90 ) ) + - 54 * 9 col0
----
-846

onlyif mysql # aggregate syntax: 
query I rowsort label-8553
SELECT ALL 22 * + - 97 * - 26 + - NULLIF ( + 37, ( - + 40 ) ) * COUNT( * ) AS col1
----
55447

skipif mysql # not compatible
query I rowsort label-8553
SELECT ALL 22 * + - 97 * - 26 + - NULLIF ( + 37, ( - + 40 ) ) * COUNT ( * ) AS col1
----
55447

query I rowsort
SELECT ALL 91 * + 57 + - 23 + 71 * + - 19 AS col1
----
3815

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8555
SELECT ALL + 51 / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8555
SELECT ALL + 51 / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8556
SELECT - ( + + 98 ) DIV 36 + + 90 * - - COALESCE ( + 28, - + 64 + + - 14 + + - 14 * + 32 DIV + ( - COUNT( * ) ) * + COUNT( DISTINCT 0 ) - - 26 ) - + COUNT( * )
----
2517

skipif mysql # not compatible
query I rowsort label-8556
SELECT - ( + + 98 ) / 36 + + 90 * - - COALESCE ( + 28, - + 64 + + - 14 + + - 14 * + 32 / + ( - COUNT ( * ) ) * + COUNT ( DISTINCT 0 ) - - 26 ) - + COUNT ( * )
----
2517

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8557
SELECT - 51 + 36 + - + CAST( - 20 AS SIGNED ) - - 41 + - - 41 DIV - 39 + + 20 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-8557
SELECT - 51 + 36 + - + CAST ( - 20 AS INTEGER ) - - 41 + - - 41 / - 39 + + 20 AS col1
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8558
SELECT DISTINCT ( - CAST( + COUNT( * ) AS SIGNED ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-8558
SELECT DISTINCT ( - CAST ( + COUNT ( * ) AS INTEGER ) ) col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8559
SELECT ALL ( - - 60 ) * - 67 + + - 90 / CASE CAST( NULL AS SIGNED ) WHEN + 3 * 18 + - 41 THEN 47 * 55 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8559
SELECT ALL ( - - 60 ) * - 67 + + - 90 / CASE CAST ( NULL AS INTEGER ) WHEN + 3 * 18 + - 41 THEN 47 * 55 ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT - ( + 12 ) + 42 col0, - ( + 32 ) + - 67 - - - 78 * 76
----
30
-6027

query I rowsort
SELECT - NULLIF ( 68, + 87 )
----
-68

query I rowsort
SELECT + 38 * + - 12
----
-456

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT ALL - 61 - - 10 * COALESCE ( MIN( DISTINCT - 1 ), + + MAX( ALL - 82 ) )
----
-71

skipif mysql # not compatible
query I rowsort label-8563
SELECT ALL - 61 - - 10 * COALESCE ( MIN ( DISTINCT - 1 ), + + MAX ( ALL - 82 ) )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT - CASE - COUNT( * ) WHEN + 32 - + 23 THEN NULL WHEN 35 + 25 * + 38 + - 96 THEN NULL WHEN 56 THEN 45 ELSE - - COUNT( ALL + ( + - ( 71 ) ) ) * - - 95 + + MAX( ALL 33 ) END AS col1
----
-128

skipif mysql # not compatible
query I rowsort label-8564
SELECT - CASE - COUNT ( * ) WHEN + 32 - + 23 THEN NULL WHEN 35 + 25 * + 38 + - 96 THEN NULL WHEN 56 THEN 45 ELSE - - COUNT ( ALL + ( + - ( 71 ) ) ) * - - 95 + + MAX ( ALL 33 ) END AS col1
----
-128

onlyif mysql # aggregate syntax: 
query III rowsort label-8565
SELECT + 2 - - 65 - 58 AS col0, + 77 + 43 + + COUNT( * ) AS col2, + 49
----
9
121
49

skipif mysql # not compatible
query III rowsort label-8565
SELECT + 2 - - 65 - 58 AS col0, + 77 + 43 + + COUNT ( * ) AS col2, + 49
----
9
121
49

query I rowsort
SELECT + 79 + - 77 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8567
SELECT + 37 * - MAX( + 97 )
----
-3589

skipif mysql # not compatible
query I rowsort label-8567
SELECT + 37 * - MAX ( + 97 )
----
-3589

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8568
SELECT - COALESCE ( 48, 50 * MAX( DISTINCT - - CAST( NULL AS SIGNED ) ) + - - 9 ) * CAST( NULL AS SIGNED ) * + + 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8568
SELECT - COALESCE ( 48, 50 * MAX ( DISTINCT - - CAST ( NULL AS INTEGER ) ) + - - 9 ) * CAST ( NULL AS INTEGER ) * + + 99 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8569
SELECT - ( - - COUNT( * ) ) + - CAST( + 36 AS SIGNED ) * - 58 + ( 37 ) * - 76 AS col1, 59 + - SUM( 47 ) - - 68
----
-725
80

skipif mysql # not compatible
query II rowsort label-8569
SELECT - ( - - COUNT ( * ) ) + - CAST ( + 36 AS INTEGER ) * - 58 + ( 37 ) * - 76 AS col1, 59 + - SUM ( 47 ) - - 68
----
-725
80

query I rowsort
SELECT 14 + + 12 * - ( - 69 ) * - 76 * 87 + - CASE - + 15 WHEN 4 * - 81 - 27 THEN NULL WHEN 94 + + 51 THEN 88 ELSE - + 19 END * 61 * 9 - - ( - - 14 )
----
-5464277

onlyif mysql # aggregate syntax: 
query I rowsort label-8571
SELECT + 33 - + - ( + + 82 ) - 20 * + 73 + - SUM( ALL 67 ) col2
----
-1412

skipif mysql # not compatible
query I rowsort label-8571
SELECT + 33 - + - ( + + 82 ) - 20 * + 73 + - SUM ( ALL 67 ) col2
----
-1412

onlyif mysql # DIV for integer division: 
query II rowsort label-8572
SELECT DISTINCT - 2, 3 DIV 91 DIV + 9 * 83 AS col1
----
-2
0

skipif mysql # not compatible
query II rowsort label-8572
SELECT DISTINCT - 2, 3 / 91 / + 9 * 83 AS col1
----
-2
0

query I rowsort
SELECT ALL + 11 * - 68 * + 35
----
-26180

query I rowsort
SELECT 5 * - 9 + + 11 + ( - - 80 )
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8575
SELECT - - 58 * - - 90 * + + SUM( 30 ) / - 39 + + CAST( NULL AS SIGNED ) * 37 / + 45 + COALESCE ( AVG ( + + 30 ), - 52 + 20, - 2 * COALESCE ( - - NULLIF ( + 54, - 3 ), - CASE - ( 36 ) WHEN + COUNT( * ) THEN + - AVG ( 68 ) + - 64 END ) + + 11 ) / 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8575
SELECT - - 58 * - - 90 * + + SUM ( 30 ) / - 39 + + CAST ( NULL AS INTEGER ) * 37 / + 45 + COALESCE ( AVG ( + + 30 ), - 52 + 20, - 2 * COALESCE ( - - NULLIF ( + 54, - 3 ), - CASE - ( 36 ) WHEN + COUNT ( * ) THEN + - AVG ( 68 ) + - 64 END ) + + 11 ) / 8 AS col2
----
NULL

query I rowsort
SELECT ALL 87 * + - 99 AS col2
----
-8613

query II rowsort
SELECT - ( - 46 ) + + 27 AS col1, 49 - - 55
----
73
104

query I rowsort
SELECT + ( - 72 ) AS col1
----
-72

query I rowsort
SELECT 89 * - 21 + - 70 + - - 88 + + 55 col2
----
-1796

onlyif mysql # aggregate syntax: 
query II rowsort label-8580
SELECT DISTINCT + COUNT( * ) + - + 85 * 98 AS col2, - COALESCE ( 74, + 4 ) AS col2
----
-8329
-74

skipif mysql # not compatible
query II rowsort label-8580
SELECT DISTINCT + COUNT ( * ) + - + 85 * 98 AS col2, - COALESCE ( 74, + 4 ) AS col2
----
-8329
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-8581
SELECT NULLIF ( - 8, COUNT( * ) ) * + 2, 7 AS col0
----
-16
7

skipif mysql # not compatible
query II rowsort label-8581
SELECT NULLIF ( - 8, COUNT ( * ) ) * + 2, 7 AS col0
----
-16
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8582
SELECT ALL MAX( DISTINCT 5 ) + - + COUNT( * ) DIV - + 5 AS col1, - 26 AS col1
----
5
-26

skipif mysql # not compatible
query II rowsort label-8582
SELECT ALL MAX ( DISTINCT 5 ) + - + COUNT ( * ) / - + 5 AS col1, - 26 AS col1
----
5
-26

query I rowsort
SELECT DISTINCT - ( + + 94 ) AS col1
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8584
SELECT ALL - 43 + - CASE - - 58 WHEN 69 THEN + 41 END + 94 * - + COALESCE ( - 33, - + 75 + - CAST( - + 93 AS SIGNED ) / 20 ) + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8584
SELECT ALL - 43 + - CASE - - 58 WHEN 69 THEN + 41 END + 94 * - + COALESCE ( - 33, - + 75 + - CAST ( - + 93 AS INTEGER ) / 20 ) + - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 37 * - + 11 col2
----
-407

query II rowsort
SELECT 85 * + + 99 AS col2, 58 AS col1
----
8415
58

query I rowsort
SELECT 10 * + 3
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8588
SELECT DISTINCT + COUNT( * ) DIV - 23
----
0

skipif mysql # not compatible
query I rowsort label-8588
SELECT DISTINCT + COUNT ( * ) / - 23
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT DISTINCT - 48 - + - COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-8589
SELECT DISTINCT - 48 - + - COUNT ( * )
----
-47

query I rowsort
SELECT 7 + + - 22 + - 45 AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8591
SELECT 10 * + + 79 * - - 73 * + COUNT( * ) * - 54 AS col1
----
-3114180

skipif mysql # not compatible
query I rowsort label-8591
SELECT 10 * + + 79 * - - 73 * + COUNT ( * ) * - 54 AS col1
----
-3114180

onlyif mysql # DIV for integer division: 
query I rowsort label-8592
SELECT DISTINCT - 3 DIV 30 * NULLIF ( - 43, + - 9 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8592
SELECT DISTINCT - 3 / 30 * NULLIF ( - 43, + - 9 ) AS col2
----
0

query I rowsort
SELECT ALL + 30 - - 87 AS col1
----
117

onlyif mysql # aggregate syntax: 
query II rowsort label-8594
SELECT 0 * 69 col2, COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-8594
SELECT 0 * 69 col2, COUNT ( * )
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8595
SELECT - CASE + - COUNT( * ) WHEN + 72 THEN + CAST( - 95 AS DECIMAL ) * - 89 WHEN + + 73 - - + 99 + + COUNT( * ) THEN NULL WHEN + + 14 THEN - 46 + + COUNT( 38 ) * - 20 * 34 END * - + 30 * 9 + + - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-8595
SELECT - CASE + - COUNT ( * ) WHEN + 72 THEN + CAST ( - 95 AS REAL ) * - 89 WHEN + + 73 - - + 99 + + COUNT ( * ) THEN NULL WHEN + + 14 THEN - 46 + + COUNT ( 38 ) * - 20 * 34 END * - + 30 * 9 + + - 5
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8596
SELECT ALL SUM( + 86 )
----
86

skipif mysql # not compatible
query I rowsort label-8596
SELECT ALL SUM ( + 86 )
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8597
SELECT CAST( 68 AS SIGNED ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-8597
SELECT CAST ( 68 AS INTEGER ) AS col2
----
68

query I rowsort
SELECT DISTINCT - - 52 + 10 * + 11
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT MAX( - ( - 13 ) ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-8599
SELECT MAX ( - ( - 13 ) ) AS col0
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8600
SELECT ALL - + CAST( NULL AS SIGNED ) + + 4 / 50 + + COUNT( DISTINCT 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8600
SELECT ALL - + CAST ( NULL AS INTEGER ) + + 4 / 50 + + COUNT ( DISTINCT 97 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8601
SELECT + CAST( NULL AS SIGNED ) / - + 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8601
SELECT + CAST ( NULL AS INTEGER ) / - + 55 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8602
SELECT - + 68 * + 69 - + - NULLIF ( + 24, + 60 * + 46 - CAST( NULL AS SIGNED ) ) AS col0
----
-4668

skipif mysql # not compatible
query I rowsort label-8602
SELECT - + 68 * + 69 - + - NULLIF ( + 24, + 60 * + 46 - CAST ( NULL AS INTEGER ) ) AS col0
----
-4668

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8603
SELECT ALL 16 * + - 83 + - CAST( ( + 61 ) AS SIGNED ) col2, 0 * + 5 AS col1
----
-1389
0

skipif mysql # not compatible
query II rowsort label-8603
SELECT ALL 16 * + - 83 + - CAST ( ( + 61 ) AS INTEGER ) col2, 0 * + 5 AS col1
----
-1389
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8604
SELECT ALL + 38 + + 88 + - + COUNT( * ) AS col2
----
125

skipif mysql # not compatible
query I rowsort label-8604
SELECT ALL + 38 + + 88 + - + COUNT ( * ) AS col2
----
125

onlyif mysql # DIV for integer division: 
query I rowsort label-8605
SELECT - 4 DIV - + 82 + - 19 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-8605
SELECT - 4 / - + 82 + - 19 AS col1
----
-19

query II rowsort
SELECT ALL 43 + - 40 AS col0, - 25 - - + 45 AS col1
----
3
20

query I rowsort
SELECT + 13 * 16 * + 94 AS col0
----
19552

onlyif mysql # aggregate syntax: 
query I rowsort label-8608
SELECT ( + 59 ) - + 76 * - ( - COUNT( * ) ) col1
----
-17

skipif mysql # not compatible
query I rowsort label-8608
SELECT ( + 59 ) - + 76 * - ( - COUNT ( * ) ) col1
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8609
SELECT DISTINCT 5 + CAST( + 50 AS SIGNED ) + - 6 * - 89
----
589

skipif mysql # not compatible
query I rowsort label-8609
SELECT DISTINCT 5 + CAST ( + 50 AS INTEGER ) + - 6 * - 89
----
589

query I rowsort
SELECT 56 * + - 17 * + + 23 * + 16 * + 59 AS col0
----
-20669824

query II rowsort
SELECT 81, 18 * 71 AS col0
----
81
1278

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8612
SELECT ( + 38 ) * + COUNT( * ) + 30 - + + CASE - + ( - + COUNT( DISTINCT - COALESCE ( ( 97 ), + 72 ) ) ) WHEN 10 THEN + 60 - - - 43 + 6 ELSE NULL END * + + CAST( NULL AS SIGNED ) * COUNT( * ) + + 83 + 43 * COALESCE ( + 83, - COUNT( * ) + - 54 * ( 55 ), 40 + - 95 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8612
SELECT ( + 38 ) * + COUNT ( * ) + 30 - + + CASE - + ( - + COUNT ( DISTINCT - COALESCE ( ( 97 ), + 72 ) ) ) WHEN 10 THEN + 60 - - - 43 + 6 ELSE NULL END * + + CAST ( NULL AS INTEGER ) * COUNT ( * ) + + 83 + 43 * COALESCE ( + 83, - COUNT ( * ) + - 54 * ( 55 ), 40 + - 95 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT ALL 34 + MAX( DISTINCT + - 48 ) * 74 AS col0
----
-3518

skipif mysql # not compatible
query I rowsort label-8613
SELECT ALL 34 + MAX ( DISTINCT + - 48 ) * 74 AS col0
----
-3518

query I rowsort
SELECT 75 + 22 + + - 78 col1
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8615
SELECT ALL 98 - + CASE - + 77 WHEN + 90 THEN 29 + - ( 48 ) WHEN + - 42 THEN 26 END + + CASE 82 WHEN + - ( + ( - + CAST( - COALESCE ( + - AVG ( 87 ), - - 25 + 45 * COUNT( * ) ) AS SIGNED ) ) ) * - - 78 / + - 69 * + + 74 * 12 THEN + COUNT( * ) / 77 WHEN - COUNT( * ) / 65 THEN + 13 WHEN ( 74 ) * 15 THEN COUNT( * ) ELSE + 61 * 87 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8615
SELECT ALL 98 - + CASE - + 77 WHEN + 90 THEN 29 + - ( 48 ) WHEN + - 42 THEN 26 END + + CASE 82 WHEN + - ( + ( - + CAST ( - COALESCE ( + - AVG ( 87 ), - - 25 + 45 * COUNT ( * ) ) AS INTEGER ) ) ) * - - 78 / + - 69 * + + 74 * 12 THEN + COUNT ( * ) / 77 WHEN - COUNT ( * ) / 65 THEN + 13 WHEN ( 74 ) * 15 THEN COUNT ( * ) ELSE + 61 * 87 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT + COUNT( ( + 39 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8616
SELECT + COUNT ( ( + 39 ) ) AS col2
----
1

query I rowsort
SELECT ALL 80 - + 82 + - - 84
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8618
SELECT ALL COUNT( DISTINCT + 82 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8618
SELECT ALL COUNT ( DISTINCT + 82 ) AS col0
----
1

query II rowsort
SELECT 97 AS col1, - 11 * + + ( + + 65 ) AS col0
----
97
-715

query I rowsort
SELECT ALL 20 * + + 20 AS col2
----
400

onlyif mysql # DIV for integer division: 
query I rowsort label-8621
SELECT + 26 DIV + - ( 23 )
----
-1

skipif mysql # not compatible
query I rowsort label-8621
SELECT + 26 / + - ( 23 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8622
SELECT - 32 * + SUM( ALL 12 ) * - NULLIF ( + 94, - 83 ) * - + 61 AS col0
----
-2201856

skipif mysql # not compatible
query I rowsort label-8622
SELECT - 32 * + SUM ( ALL 12 ) * - NULLIF ( + 94, - 83 ) * - + 61 AS col0
----
-2201856

query I rowsort
SELECT + 43 + COALESCE ( - - 86, - 79 ) AS col0
----
129

query II rowsort
SELECT ALL 14 col0, ( 48 ) * 93
----
14
4464

query I rowsort
SELECT - 96 * + 86
----
-8256

onlyif mysql # aggregate syntax: 
query II rowsort label-8626
SELECT ALL + 46, + COUNT( * ) AS col0
----
46
1

skipif mysql # not compatible
query II rowsort label-8626
SELECT ALL + 46, + COUNT ( * ) AS col0
----
46
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8627
SELECT ALL - NULLIF ( COUNT( * ), 29 + - - CAST( NULL AS SIGNED ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8627
SELECT ALL - NULLIF ( COUNT ( * ), 29 + - - CAST ( NULL AS INTEGER ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT - + 72 - - 78 - 28 * - - COUNT( * ) - + + 23 + + + COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-8628
SELECT - + 72 - - 78 - 28 * - - COUNT ( * ) - + + 23 + + + COUNT ( * )
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8629
SELECT CASE + - 66 WHEN + + 36 / - + NULLIF ( - - 25, - + 73 + - - CAST( NULL AS SIGNED ) * + COUNT( * ) + - 27 * + 67 ) THEN + 44 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8629
SELECT CASE + - 66 WHEN + + 36 / - + NULLIF ( - - 25, - + 73 + - - CAST ( NULL AS INTEGER ) * + COUNT ( * ) + - 27 * + 67 ) THEN + 44 END AS col2
----
NULL

query I rowsort
SELECT ALL - 3 + - 20
----
-23

query I rowsort
SELECT - - ( - 42 ) + - + 95
----
-137

query I rowsort
SELECT ALL - - ( - 30 ) + + 22
----
-8

query I rowsort
SELECT - + 22 * - + 87 AS col2
----
1914

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT - 48 + - COUNT( + 5 ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-8634
SELECT - 48 + - COUNT ( + 5 ) AS col0
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8635
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 73 + 77 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8635
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 73 + 77 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8636
SELECT - CAST( NULL AS SIGNED ) - 45 * - + 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8636
SELECT - CAST ( NULL AS INTEGER ) - 45 * - + 40 AS col1
----
NULL

query I rowsort
SELECT ALL + 67 * + - 81 * 71 * - 65
----
25045605

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8638
SELECT - 75 + 16 + - 93 * - - CAST( - AVG ( ALL - 51 ) AS SIGNED ) * - 31 * + CAST( 33 AS SIGNED ) * 17 * + COUNT( * ) + + CAST( 35 AS SIGNED ) - 12 AS col2
----
82485477

skipif mysql # not compatible
query I rowsort label-8638
SELECT - 75 + 16 + - 93 * - - CAST ( - AVG ( ALL - 51 ) AS INTEGER ) * - 31 * + CAST ( 33 AS INTEGER ) * 17 * + COUNT ( * ) + + CAST ( 35 AS INTEGER ) - 12 AS col2
----
82485477

onlyif mysql # aggregate syntax: 
query I rowsort label-8639
SELECT ALL + 56 + + 11 + + COUNT( ALL 79 ) + 42 - + + 68 + + COUNT( * ) * 45
----
87

skipif mysql # not compatible
query I rowsort label-8639
SELECT ALL + 56 + + 11 + + COUNT ( ALL 79 ) + 42 - + + 68 + + COUNT ( * ) * 45
----
87

query I rowsort
SELECT DISTINCT + + 45 * + + 84 * + 85 AS col2
----
321300

query I rowsort
SELECT ALL 74 * + - ( + 65 ) + 83 AS col2
----
-4727

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8642
SELECT - COALESCE ( - COALESCE ( + CAST( - ( + + 72 ) AS SIGNED ), + 16 ), + + ( + + 5 ) - - 12, 53 + + 50 )
----
-72

skipif mysql # not compatible
query I rowsort label-8642
SELECT - COALESCE ( - COALESCE ( + CAST ( - ( + + 72 ) AS INTEGER ), + 16 ), + + ( + + 5 ) - - 12, 53 + + 50 )
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-8643
SELECT ALL 50 DIV + + ( + 13 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-8643
SELECT ALL 50 / + + ( + 13 ) AS col2
----
3

query I rowsort
SELECT - - 21 + + 0 AS col0
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-8645
SELECT ALL 82 * + COUNT( * ) + - + 94 * + + 49 + + 25 AS col0, 82 AS col1
----
-4499
82

skipif mysql # not compatible
query II rowsort label-8645
SELECT ALL 82 * + COUNT ( * ) + - + 94 * + + 49 + + 25 AS col0, 82 AS col1
----
-4499
82

query II rowsort
SELECT + 45 AS col0, 54 col2
----
45
54

query I rowsort
SELECT + + 46 + + 7 AS col2
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8648
SELECT - CAST( + - 1 AS SIGNED ) * - 50 + - - COUNT( * ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-8648
SELECT - CAST ( + - 1 AS INTEGER ) * - 50 + - - COUNT ( * ) AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8649
SELECT + 46 * - - COUNT( * ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-8649
SELECT + 46 * - - COUNT ( * ) AS col1
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-8650
SELECT ALL - 20 DIV + 38 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8650
SELECT ALL - 20 / + 38 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8651
SELECT + CASE + ( + 19 ) WHEN + + 54 + COUNT( * ) * - + 14 THEN NULL WHEN - - MAX( DISTINCT 27 ) * + 31 + + 0 + + CAST( NULL AS DECIMAL ) THEN 26 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8651
SELECT + CASE + ( + 19 ) WHEN + + 54 + COUNT ( * ) * - + 14 THEN NULL WHEN - - MAX ( DISTINCT 27 ) * + 31 + + 0 + + CAST ( NULL AS REAL ) THEN 26 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8652
SELECT + 66 * + 27 + + 76 - + 98 * + COUNT( * ) + - 34 AS col1
----
1726

skipif mysql # not compatible
query I rowsort label-8652
SELECT + 66 * + 27 + + 76 - + 98 * + COUNT ( * ) + - 34 AS col1
----
1726

onlyif mysql # aggregate syntax: 
query I rowsort label-8653
SELECT NULLIF ( - MAX( - 64 ), - 82 )
----
64

skipif mysql # not compatible
query I rowsort label-8653
SELECT NULLIF ( - MAX ( - 64 ), - 82 )
----
64

query II rowsort
SELECT - 10 * + - 39 AS col1, 6
----
390
6

query I rowsort
SELECT ALL - 20 * - + 29 * + - 56
----
-32480

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT ALL + 51 * COUNT( * ) - COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-8656
SELECT ALL + 51 * COUNT ( * ) - COUNT ( * )
----
50

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8657
SELECT ALL + CAST( NULL AS DECIMAL ) AS col2, + 9 * - - 62 + - 74
----
NULL
484

skipif mysql # not compatible
query II rowsort label-8657
SELECT ALL + CAST ( NULL AS REAL ) AS col2, + 9 * - - 62 + - 74
----
NULL
484

onlyif mysql # DIV for integer division: 
query I rowsort label-8658
SELECT + 62 DIV 30
----
2

skipif mysql # not compatible
query I rowsort label-8658
SELECT + 62 / 30
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8659
SELECT 21 * - 0 + 89 DIV MAX( DISTINCT 40 )
----
2

skipif mysql # not compatible
query I rowsort label-8659
SELECT 21 * - 0 + 89 / MAX ( DISTINCT 40 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8660
SELECT COUNT( - - ( + 19 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8660
SELECT COUNT ( - - ( + 19 ) ) AS col2
----
1

query I rowsort
SELECT ALL - 74 * 37 - 8
----
-2746

onlyif mysql # aggregate syntax: 
query II rowsort label-8662
SELECT + 15 * - 20 AS col1, + COUNT( * ) * 87
----
-300
87

skipif mysql # not compatible
query II rowsort label-8662
SELECT + 15 * - 20 AS col1, + COUNT ( * ) * 87
----
-300
87

query I rowsort
SELECT + 44 + - + 59 AS col1
----
-15

query I rowsort
SELECT 67 * 58 - + 96 AS col1
----
3790

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT + 20 * + ( - - COUNT( * ) )
----
20

skipif mysql # not compatible
query I rowsort label-8665
SELECT + 20 * + ( - - COUNT ( * ) )
----
20

query II rowsort
SELECT + 79 - 10 AS col2, 54
----
69
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8667
SELECT ALL CAST( 96 AS SIGNED )
----
96

skipif mysql # not compatible
query I rowsort label-8667
SELECT ALL CAST ( 96 AS INTEGER )
----
96

query II rowsort
SELECT DISTINCT 9 AS col0, - 77 + + 92 * - + 50
----
9
-4677

query I rowsort
SELECT ALL 66 * + 1 AS col0
----
66

query I rowsort
SELECT + 79 + - 39 + 97
----
137

query I rowsort
SELECT ALL 49 + 60
----
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8672
SELECT ALL SUM( + 33 ) * - MAX( ALL + 9 ), 8 DIV - - 15 AS col0
----
-297
0

skipif mysql # not compatible
query II rowsort label-8672
SELECT ALL SUM ( + 33 ) * - MAX ( ALL + 9 ), 8 / - - 15 AS col0
----
-297
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8673
SELECT + + 40 * - CAST( - + 82 AS SIGNED ) AS col0
----
3280

skipif mysql # not compatible
query I rowsort label-8673
SELECT + + 40 * - CAST ( - + 82 AS INTEGER ) AS col0
----
3280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8674
SELECT DISTINCT + CAST( 46 AS SIGNED )
----
46

skipif mysql # not compatible
query I rowsort label-8674
SELECT DISTINCT + CAST ( 46 AS INTEGER )
----
46

query I rowsort
SELECT ALL 76 + 21 AS col2
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8676
SELECT + + MAX( ALL + 6 ) DIV + + CASE - SUM( DISTINCT - + 89 ) WHEN - 44 THEN - 74 ELSE - + 38 * ( 1 ) END
----
0

skipif mysql # not compatible
query I rowsort label-8676
SELECT + + MAX ( ALL + 6 ) / + + CASE - SUM ( DISTINCT - + 89 ) WHEN - 44 THEN - 74 ELSE - + 38 * ( 1 ) END
----
0

query I rowsort
SELECT ALL - 11 + - 8 * + 57 AS col0
----
-467

onlyif mysql # DIV for integer division: 
query I rowsort label-8678
SELECT DISTINCT - - 72 DIV - - 88 * + - 35 col1
----
0

skipif mysql # not compatible
query I rowsort label-8678
SELECT DISTINCT - - 72 / - - 88 * + - 35 col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8679
SELECT ALL - CAST( + 98 AS SIGNED ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-8679
SELECT ALL - CAST ( + 98 AS INTEGER ) AS col0
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8680
SELECT DISTINCT - 77 + - + MIN( + - 46 ) + 40 * - COUNT( * ) * + 67 * + - 40 col1, SUM( 12 ) * + 78 * - CAST( NULL AS SIGNED ) + - 66 AS col0
----
107169
NULL

skipif mysql # not compatible
query II rowsort label-8680
SELECT DISTINCT - 77 + - + MIN ( + - 46 ) + 40 * - COUNT ( * ) * + 67 * + - 40 col1, SUM ( 12 ) * + 78 * - CAST ( NULL AS INTEGER ) + - 66 AS col0
----
107169
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT ALL - + COUNT( * ) - + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-8681
SELECT ALL - + COUNT ( * ) - + COUNT ( * )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8682
SELECT DISTINCT + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * + COUNT( 63 ) - 45 + - ( - + 37 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8682
SELECT DISTINCT + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * + COUNT ( 63 ) - 45 + - ( - + 37 ) AS col0
----
NULL

query I rowsort
SELECT + 53 * + - 84 * + - 10
----
44520

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT + - MIN( + + 74 ) - + - 89 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-8684
SELECT + - MIN ( + + 74 ) - + - 89 AS col2
----
15

query II rowsort
SELECT 31 AS col0, 47 AS col1
----
31
47

query I rowsort
SELECT ALL - + 67 * + 11
----
-737

query I rowsort
SELECT - ( + 43 ) * - 84 - + 99 + + 73
----
3586

onlyif mysql # aggregate syntax: 
query II rowsort label-8688
SELECT - + 84 * + COUNT( * ) AS col0, - 72 col2
----
-84
-72

skipif mysql # not compatible
query II rowsort label-8688
SELECT - + 84 * + COUNT ( * ) AS col0, - 72 col2
----
-84
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-8689
SELECT ALL + CASE - - 49 WHEN + 47 THEN 19 + COUNT( * ) WHEN + 26 * + 29 THEN NULL END AS col0, + 73 + - 78 AS col1
----
NULL
-5

skipif mysql # not compatible
query II rowsort label-8689
SELECT ALL + CASE - - 49 WHEN + 47 THEN 19 + COUNT ( * ) WHEN + 26 * + 29 THEN NULL END AS col0, + 73 + - 78 AS col1
----
NULL
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT ALL - 34 * + + COUNT( * ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-8690
SELECT ALL - 34 * + + COUNT ( * ) AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8691
SELECT ALL + COALESCE ( + - 49, 98, + 71, - 66 + COUNT( * ) ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-8691
SELECT ALL + COALESCE ( + - 49, 98, + 71, - 66 + COUNT ( * ) ) AS col2
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-8692
SELECT - 62 - + + 69 AS col2, 28 * + 84 - 29 + + - 70 + + COUNT( * ) * + SUM( DISTINCT + 29 ) + + - 99
----
-131
2183

skipif mysql # not compatible
query II rowsort label-8692
SELECT - 62 - + + 69 AS col2, 28 * + 84 - 29 + + - 70 + + COUNT ( * ) * + SUM ( DISTINCT + 29 ) + + - 99
----
-131
2183

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8693
SELECT 71 DIV - 82 * + CAST( + + 63 AS SIGNED ) + - - 56 + - + 20 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-8693
SELECT 71 / - 82 * + CAST ( + + 63 AS INTEGER ) + - - 56 + - + 20 AS col2
----
36

query II rowsort
SELECT 26 * - + 97 AS col0, 74
----
-2522
74

query I rowsort
SELECT 0 + 93 + - - 82
----
175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8696
SELECT ALL - CAST( + ( + - 66 ) AS SIGNED ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-8696
SELECT ALL - CAST ( + ( + - 66 ) AS INTEGER ) AS col0
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8697
SELECT ALL - CAST( COALESCE ( COUNT( * ), 23 ) AS SIGNED ) + - - CASE + - 43 WHEN + + 36 THEN + 10 - - 96 WHEN 3 + - 38 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8697
SELECT ALL - CAST ( COALESCE ( COUNT ( * ), 23 ) AS INTEGER ) + - - CASE + - 43 WHEN + + 36 THEN + 10 - - 96 WHEN 3 + - 38 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT 10 + - 16
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8699
SELECT DISTINCT - ( + MAX( ALL + 1 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8699
SELECT DISTINCT - ( + MAX ( ALL + 1 ) )
----
-1

query I rowsort
SELECT 71 * + - 98 + + - 42 * + 91 * + 16 * + + 40 + - 8 * + + 28
----
-2453262

query I rowsort
SELECT ALL - 26 + - 32 AS col1
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-8702
SELECT ALL + SUM( ALL ( 35 ) ) + + COALESCE ( SUM( DISTINCT + 77 ), - 1 ) AS col1, + 90 * + + 75
----
112
6750

skipif mysql # not compatible
query II rowsort label-8702
SELECT ALL + SUM ( ALL ( 35 ) ) + + COALESCE ( SUM ( DISTINCT + 77 ), - 1 ) AS col1, + 90 * + + 75
----
112
6750

onlyif mysql # aggregate syntax: 
query II rowsort label-8703
SELECT ALL 84 + - + 68 AS col0, COUNT( * ) * + COUNT( * ) * + 9
----
16
9

skipif mysql # not compatible
query II rowsort label-8703
SELECT ALL 84 + - + 68 AS col0, COUNT ( * ) * + COUNT ( * ) * + 9
----
16
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8704
SELECT 15 + + 75 + - 81 / 47 + COALESCE ( - 24, CAST( COUNT( * ) AS SIGNED ) ) * ( + - CASE - 55 WHEN + 85 THEN + - SUM( 67 ) END ) * - 42 + NULLIF ( 68, - ( - 87 ) * - 63 * 86 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8704
SELECT 15 + + 75 + - 81 / 47 + COALESCE ( - 24, CAST ( COUNT ( * ) AS INTEGER ) ) * ( + - CASE - 55 WHEN + 85 THEN + - SUM ( 67 ) END ) * - 42 + NULLIF ( 68, - ( - 87 ) * - 63 * 86 ) col0
----
NULL

query I rowsort
SELECT 51 * - + 53 AS col1
----
-2703

query I rowsort
SELECT - 68 + - 2 AS col0
----
-70

query I rowsort
SELECT + 99 * + 13 AS col1
----
1287

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8708
SELECT + 43 + + CAST( NULL AS DECIMAL ) - - 1 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8708
SELECT + 43 + + CAST ( NULL AS REAL ) - - 1 AS col2
----
NULL

query II rowsort
SELECT ALL 83 + - 63 AS col0, 53 AS col1
----
20
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8710
SELECT - - CAST( - ( + + COUNT( * ) ) AS SIGNED ), + 45 AS col0
----
-1
45

skipif mysql # not compatible
query II rowsort label-8710
SELECT - - CAST ( - ( + + COUNT ( * ) ) AS INTEGER ), + 45 AS col0
----
-1
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8711
SELECT DISTINCT - 81 - + + 72 * - SUM( DISTINCT + - 74 ) * + COUNT( * ) + + + 13 AS col0
----
-5396

skipif mysql # not compatible
query I rowsort label-8711
SELECT DISTINCT - 81 - + + 72 * - SUM ( DISTINCT + - 74 ) * + COUNT ( * ) + + + 13 AS col0
----
-5396

onlyif mysql # aggregate syntax: 
query II rowsort label-8712
SELECT DISTINCT - 18 * - 48, COUNT( ALL + - 30 ) AS col1
----
864
1

skipif mysql # not compatible
query II rowsort label-8712
SELECT DISTINCT - 18 * - 48, COUNT ( ALL + - 30 ) AS col1
----
864
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8713
SELECT DISTINCT COUNT( - + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-8713
SELECT DISTINCT COUNT ( - + CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8714
SELECT ALL + COALESCE ( COUNT( * ), - 94, 34 + - + 1 ) - + + COALESCE ( - 92, NULLIF ( - 97, - 57 ) + - CAST( NULL AS SIGNED ) + - 59 * ( - - 3 ) DIV COUNT( * ) + 16, - + 39 ) AS col1, 26
----
93
26

skipif mysql # not compatible
query II rowsort label-8714
SELECT ALL + COALESCE ( COUNT ( * ), - 94, 34 + - + 1 ) - + + COALESCE ( - 92, NULLIF ( - 97, - 57 ) + - CAST ( NULL AS INTEGER ) + - 59 * ( - - 3 ) / COUNT ( * ) + 16, - + 39 ) AS col1, 26
----
93
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8715
SELECT + COUNT( * ) * + - 83 * 69
----
-5727

skipif mysql # not compatible
query I rowsort label-8715
SELECT + COUNT ( * ) * + - 83 * 69
----
-5727

query I rowsort
SELECT 91 * 4
----
364

onlyif mysql # aggregate syntax: 
query I rowsort label-8717
SELECT NULLIF ( - 58, + 22 ) - + 9 + - + COUNT( * ) - + COUNT( * ) * - 65 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-8717
SELECT NULLIF ( - 58, + 22 ) - + 9 + - + COUNT ( * ) - + COUNT ( * ) * - 65 AS col2
----
-3

query I rowsort
SELECT DISTINCT COALESCE ( - 79, 4, 88 ) * 70
----
-5530

onlyif mysql # aggregate syntax: 
query I rowsort label-8719
SELECT ALL - SUM( DISTINCT 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-8719
SELECT ALL - SUM ( DISTINCT 2 )
----
-2

query II rowsort
SELECT ( + - 7 ) * - 24 AS col2, 40 * - + 5 AS col1
----
168
-200

query II rowsort
SELECT DISTINCT - 42, 78 * - 10 AS col0
----
-42
-780

query II rowsort
SELECT ALL - 46 AS col1, + 27
----
-46
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT ( + 46 ) * - ( - MIN( ALL - - 65 ) )
----
2990

skipif mysql # not compatible
query I rowsort label-8723
SELECT ( + 46 ) * - ( - MIN ( ALL - - 65 ) )
----
2990

onlyif mysql # aggregate syntax: 
query I rowsort label-8724
SELECT 20 + + COUNT( * ) - - - 2 - - 28 * - 36 - + + 90 AS col2
----
-1079

skipif mysql # not compatible
query I rowsort label-8724
SELECT 20 + + COUNT ( * ) - - - 2 - - 28 * - 36 - + + 90 AS col2
----
-1079

query II rowsort
SELECT 78 AS col0, 29
----
78
29

onlyif mysql # DIV for integer division: 
query I rowsort label-8726
SELECT 26 DIV + - 76 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8726
SELECT 26 / + - 76 AS col2
----
0

query II rowsort
SELECT + 87, 31 * 81 + - - 88 * + 2 + + ( - 66 ) AS col2
----
87
2621

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8728
SELECT ALL + CAST( NULL AS DECIMAL ) + - 49 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8728
SELECT ALL + CAST ( NULL AS REAL ) + - 49 AS col2
----
NULL

query I rowsort
SELECT - 19 * - 50 + + 57 AS col1
----
1007

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8730
SELECT DISTINCT - CAST( - AVG ( - 89 ) AS SIGNED ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-8730
SELECT DISTINCT - CAST ( - AVG ( - 89 ) AS INTEGER ) AS col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8731
SELECT DISTINCT COUNT( * ) + - 99 * + - 23 AS col1
----
2278

skipif mysql # not compatible
query I rowsort label-8731
SELECT DISTINCT COUNT ( * ) + - 99 * + - 23 AS col1
----
2278

query I rowsort
SELECT ALL - 95 + + - 10
----
-105

query I rowsort
SELECT ALL + 40 + + - 97 col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8734
SELECT + ( ( + - 32 ) ) * - NULLIF ( 59, + + ( + 63 ) + 88 ) + - 26 + 11 - - - 5 - - 73 + - COUNT( * )
----
1940

skipif mysql # not compatible
query I rowsort label-8734
SELECT + ( ( + - 32 ) ) * - NULLIF ( 59, + + ( + 63 ) + 88 ) + - 26 + 11 - - - 5 - - 73 + - COUNT ( * )
----
1940

query I rowsort
SELECT 21 * + 90 AS col1
----
1890

query I rowsort
SELECT - ( + ( + 55 ) )
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-8737
SELECT - 14 DIV 33 * 26
----
0

skipif mysql # not compatible
query I rowsort label-8737
SELECT - 14 / 33 * 26
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8738
SELECT + 84 * - COUNT( * ) * + 18 * - COUNT( * ) - + 93 AS col0
----
1419

skipif mysql # not compatible
query I rowsort label-8738
SELECT + 84 * - COUNT ( * ) * + 18 * - COUNT ( * ) - + 93 AS col0
----
1419

query II rowsort
SELECT - - ( - + ( 89 ) ) AS col1, - 64
----
-89
-64

query I rowsort
SELECT DISTINCT + COALESCE ( - - 63, + - 51 * - 95 )
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-8741
SELECT ALL COUNT( * ), 70 * - COALESCE ( + ( - - 7 ), 62 ) * 82 + 6 + - 85 * COUNT( * ) AS col1
----
1
-40259

skipif mysql # not compatible
query II rowsort label-8741
SELECT ALL COUNT ( * ), 70 * - COALESCE ( + ( - - 7 ), 62 ) * 82 + 6 + - 85 * COUNT ( * ) AS col1
----
1
-40259

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8742
SELECT ALL + + 63 DIV + CAST( + - 41 AS SIGNED ) + 38 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-8742
SELECT ALL + + 63 / + CAST ( + - 41 AS INTEGER ) + 38 AS col0
----
37

query I rowsort
SELECT DISTINCT - - 1 - + 26 AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT DISTINCT + - 38 * COALESCE ( + 89, + + CASE CASE + 35 WHEN - + 64 THEN COUNT( ALL ( - 53 ) ) + 14 + 42 * + 7 * + + 52 * - + 31 / COUNT( - 21 ) ELSE NULL END WHEN + + CASE + + 28 WHEN - 66 + 26 * + - COUNT( * ) * + COUNT( * ) THEN - 84 ELSE + + 13 END THEN + 30 WHEN 92 THEN 56 * - COUNT( * ) END + 96 ) AS col1
----
-3382

skipif mysql # not compatible
query I rowsort label-8744
SELECT DISTINCT + - 38 * COALESCE ( + 89, + + CASE CASE + 35 WHEN - + 64 THEN COUNT ( ALL ( - 53 ) ) + 14 + 42 * + 7 * + + 52 * - + 31 / COUNT ( - 21 ) ELSE NULL END WHEN + + CASE + + 28 WHEN - 66 + 26 * + - COUNT ( * ) * + COUNT ( * ) THEN - 84 ELSE + + 13 END THEN + 30 WHEN 92 THEN 56 * - COUNT ( * ) END + 96 ) AS col1
----
-3382

onlyif mysql # DIV for integer division: 
query I rowsort label-8745
SELECT + 64 + - + 3 + - 6 DIV 15 - - - ( + 79 ) * 22 DIV + 14 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-8745
SELECT + 64 + - + 3 + - 6 / 15 - - - ( + 79 ) * 22 / + 14 AS col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8746
SELECT DISTINCT - 77 - COUNT( * ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-8746
SELECT DISTINCT - 77 - COUNT ( * ) AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT - - CASE 91 WHEN - - COALESCE ( + 25, + 89 + - ( 65 ) - COUNT( ALL - + 41 ) ) THEN NULL WHEN + 11 THEN - COUNT( + ( - + 66 ) ) - - 81 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8747
SELECT - - CASE 91 WHEN - - COALESCE ( + 25, + 89 + - ( 65 ) - COUNT ( ALL - + 41 ) ) THEN NULL WHEN + 11 THEN - COUNT ( + ( - + 66 ) ) - - 81 END AS col2
----
NULL

query I rowsort
SELECT - NULLIF ( + 41, + 92 )
----
-41

query II rowsort
SELECT ( + 16 ) * 90, 55 AS col0
----
1440
55

query II rowsort
SELECT DISTINCT - 19 AS col1, 98
----
-19
98

onlyif mysql # aggregate syntax: 
query II rowsort label-8751
SELECT DISTINCT NULLIF ( + 78, - 38 ) col2, + COUNT( * )
----
78
1

skipif mysql # not compatible
query II rowsort label-8751
SELECT DISTINCT NULLIF ( + 78, - 38 ) col2, + COUNT ( * )
----
78
1

query II rowsort
SELECT ALL - 36, 34 AS col2
----
-36
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT ALL COUNT( DISTINCT - 77 ) * + 15
----
15

skipif mysql # not compatible
query I rowsort label-8753
SELECT ALL COUNT ( DISTINCT - 77 ) * + 15
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT 84 + - - COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-8754
SELECT 84 + - - COUNT ( * )
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8755
SELECT + CAST( NULL AS SIGNED ) * + 98 col0, NULLIF ( + NULLIF ( - - 23, + - 88 / - + 64 ), + + 52 )
----
NULL
23

skipif mysql # not compatible
query II rowsort label-8755
SELECT + CAST ( NULL AS INTEGER ) * + 98 col0, NULLIF ( + NULLIF ( - - 23, + - 88 / - + 64 ), + + 52 )
----
NULL
23

query II rowsort
SELECT + 15 * - 55 AS col0, 62
----
-825
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8757
SELECT ALL - ( + CAST( NULL AS SIGNED ) ) * - - ( + CAST( NULL AS SIGNED ) ) + - + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-8757
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ) * - - ( + CAST ( NULL AS INTEGER ) ) + - + 22
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8758
SELECT + CASE 91 WHEN + 92 * 25 THEN NULLIF ( 69, 50 ) - - 84 * + CAST( NULL AS DECIMAL ) * + 97 / + 91 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8758
SELECT + CASE 91 WHEN + 92 * 25 THEN NULLIF ( 69, 50 ) - - 84 * + CAST ( NULL AS REAL ) * + 97 / + 91 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8759
SELECT CASE - 77 WHEN - 81 + - 1 THEN - 21 * 15 - - SUM( - 4 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8759
SELECT CASE - 77 WHEN - 81 + - 1 THEN - 21 * 15 - - SUM ( - 4 ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8760
SELECT CASE - 51 WHEN - - 62 THEN - 80 + - - COUNT( * ) * + 88 + - 49 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8760
SELECT CASE - 51 WHEN - - 62 THEN - 80 + - - COUNT ( * ) * + 88 + - 49 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT DISTINCT COUNT( DISTINCT 0 ) * + 79 * MIN( + - 11 ) AS col0
----
-869

skipif mysql # not compatible
query I rowsort label-8761
SELECT DISTINCT COUNT ( DISTINCT 0 ) * + 79 * MIN ( + - 11 ) AS col0
----
-869

query I rowsort
SELECT DISTINCT - 98 * COALESCE ( - 56, 0 + 51 ) * + 18 * + ( 27 ) + 93
----
2667261

query I rowsort
SELECT ALL + 15 * + 77 + + 75
----
1230

onlyif mysql # aggregate syntax: 
query I rowsort label-8764
SELECT + MAX( DISTINCT - + 25 )
----
-25

skipif mysql # not compatible
query I rowsort label-8764
SELECT + MAX ( DISTINCT - + 25 )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8765
SELECT CASE MIN( DISTINCT 70 ) WHEN - 71 * 26 THEN NULL WHEN + + NULLIF ( + 22, + 19 + 72 ) THEN + 43 WHEN - 86 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8765
SELECT CASE MIN ( DISTINCT 70 ) WHEN - 71 * 26 THEN NULL WHEN + + NULLIF ( + 22, + 19 + 72 ) THEN + 43 WHEN - 86 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 82 * + + 57 + + 23 AS col0
----
-4651

query I rowsort
SELECT DISTINCT + 83 * - + 77 + + 53
----
-6338

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8768
SELECT 45 DIV - 97 * + - 70 * 16 * - 20 * + 46 + + 5, 66 + COALESCE ( + 45, 45, + + 82 * - + ( - - 67 ) + 6 + - ( + + 21 ) - - 92 * + + 3 ) - - + COALESCE ( + - 34, + 70 DIV - + 65 + + NULLIF ( - + 88, + 36 ) + - - 11 * + COUNT( - 95 ) + 6, 64 + COUNT( - COALESCE ( 56, 17 ) + - 88 ) * 34, COALESCE ( 61, 54, 82 ) - 61 ) * 61 AS col0
----
5
-1963

skipif mysql # not compatible
query II rowsort label-8768
SELECT 45 / - 97 * + - 70 * 16 * - 20 * + 46 + + 5, 66 + COALESCE ( + 45, 45, + + 82 * - + ( - - 67 ) + 6 + - ( + + 21 ) - - 92 * + + 3 ) - - + COALESCE ( + - 34, + 70 / - + 65 + + NULLIF ( - + 88, + 36 ) + - - 11 * + COUNT ( - 95 ) + 6, 64 + COUNT ( - COALESCE ( 56, 17 ) + - 88 ) * 34, COALESCE ( 61, 54, 82 ) - 61 ) * 61 AS col0
----
5
-1963

query I rowsort
SELECT - 19 * - 18
----
342

query II rowsort
SELECT - 45 * - 70 * - 72 + 42, - ( 83 ) AS col2
----
-226758
-83

query I rowsort
SELECT ALL + 84 * - 76 col2
----
-6384

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8772
SELECT + - NULLIF ( - NULLIF ( - 71, + 1 * - - CAST( + 23 AS SIGNED ) ), 62 * + 18 )
----
-71

skipif mysql # not compatible
query I rowsort label-8772
SELECT + - NULLIF ( - NULLIF ( - 71, + 1 * - - CAST ( + 23 AS INTEGER ) ), 62 * + 18 )
----
-71

query I rowsort
SELECT ALL 0 * - 53 * + 22 + - 95 * - 9
----
855

onlyif mysql # aggregate syntax: 
query II rowsort label-8774
SELECT - - 29 * - 66, + MAX( 68 ) AS col2
----
-1914
68

skipif mysql # not compatible
query II rowsort label-8774
SELECT - - 29 * - 66, + MAX ( 68 ) AS col2
----
-1914
68

query I rowsort
SELECT ALL + 23 * + 95
----
2185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8776
SELECT - + CAST( - + AVG ( ALL + + CAST( + 58 AS SIGNED ) ) AS SIGNED )
----
58

skipif mysql # not compatible
query I rowsort label-8776
SELECT - + CAST ( - + AVG ( ALL + + CAST ( + 58 AS INTEGER ) ) AS INTEGER )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8777
SELECT - + 54 + 56 * - 3 * + + COUNT( * ) * + + 58 AS col0
----
-9798

skipif mysql # not compatible
query I rowsort label-8777
SELECT - + 54 + 56 * - 3 * + + COUNT ( * ) * + + 58 AS col0
----
-9798

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8778
SELECT ALL NULLIF ( CAST( NULL AS SIGNED ), + 60 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8778
SELECT ALL NULLIF ( CAST ( NULL AS INTEGER ), + 60 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8779
SELECT - - SUM( ALL - + 34 ) + 90 - - 68
----
124

skipif mysql # not compatible
query I rowsort label-8779
SELECT - - SUM ( ALL - + 34 ) + 90 - - 68
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-8780
SELECT + + 68 * - CASE WHEN NULL > - 73 THEN NULL WHEN + 40 + + - 25 * + AVG ( DISTINCT + + 46 ) NOT IN ( 38 * + 50, + 63 * - COUNT( ALL + 76 ), - 24, + 17 - - - 26 * CASE + 6 WHEN - COALESCE ( + - ( + + 69 ), + 13, - + AVG ( 21 ) ) - - - 6 / + - 41 * - - 72 - - 65 - 34 * 85 * + 84 THEN COUNT( ALL + 20 ) WHEN 34 THEN NULL END ) THEN - 6 END * 87
----
NULL

skipif mysql # not compatible
query I rowsort label-8780
SELECT + + 68 * - CASE WHEN NULL > - 73 THEN NULL WHEN + 40 + + - 25 * + AVG ( DISTINCT + + 46 ) NOT IN ( 38 * + 50, + 63 * - COUNT ( ALL + 76 ), - 24, + 17 - - - 26 * CASE + 6 WHEN - COALESCE ( + - ( + + 69 ), + 13, - + AVG ( 21 ) ) - - - 6 / + - 41 * - - 72 - - 65 - 34 * 85 * + 84 THEN COUNT ( ALL + 20 ) WHEN 34 THEN NULL END ) THEN - 6 END * 87
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8781
SELECT - ( + 68 ) * - - 7 + + + COUNT( * ) AS col1, - 65
----
-475
-65

skipif mysql # not compatible
query II rowsort label-8781
SELECT - ( + 68 ) * - - 7 + + + COUNT ( * ) AS col1, - 65
----
-475
-65

query II rowsort
SELECT - 28 + + 1 AS col0, - 24 * 34 * + + ( - ( + 30 ) ) AS col0
----
-27
24480

onlyif mysql # aggregate syntax: 
query II rowsort label-8783
SELECT - MIN( DISTINCT - 13 ) col2, COUNT( * ) * - + COUNT( * ) + + 59 AS col0
----
13
58

skipif mysql # not compatible
query II rowsort label-8783
SELECT - MIN ( DISTINCT - 13 ) col2, COUNT ( * ) * - + COUNT ( * ) + + 59 AS col0
----
13
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8784
SELECT ALL + - 61 * 14 DIV - + 82
----
10

skipif mysql # not compatible
query I rowsort label-8784
SELECT ALL + - 61 * 14 / - + 82
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT - + 27 + - + COUNT( * ) * - 14 AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-8785
SELECT - + 27 + - + COUNT ( * ) * - 14 AS col2
----
-13

query I rowsort
SELECT - + 11 + + 48 AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT ALL - COUNT( * ) * + 40 + + + COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-8787
SELECT ALL - COUNT ( * ) * + 40 + + + COUNT ( * )
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8788
SELECT - - ( + COUNT( * ) ) + NULLIF ( + CASE CAST( NULL AS SIGNED ) WHEN ( 31 ) THEN NULL WHEN - 83 * + 72 * 36 THEN NULL WHEN + - 96 THEN - COUNT( * ) END, - 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8788
SELECT - - ( + COUNT ( * ) ) + NULLIF ( + CASE CAST ( NULL AS INTEGER ) WHEN ( 31 ) THEN NULL WHEN - 83 * + 72 * 36 THEN NULL WHEN + - 96 THEN - COUNT ( * ) END, - 91 )
----
NULL

query I rowsort
SELECT + 16 + - 1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8790
SELECT ALL - 39 + - 28 + - 28 * - SUM( 77 ) + + 43 * + - 93
----
-1910

skipif mysql # not compatible
query I rowsort label-8790
SELECT ALL - 39 + - 28 + - 28 * - SUM ( 77 ) + + 43 * + - 93
----
-1910

query I rowsort
SELECT - 4 + 87 AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8792
SELECT + COUNT( * ) - + 55 AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-8792
SELECT + COUNT ( * ) - + 55 AS col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT DISTINCT + 94 + - - 97 * - 99 * - COUNT( * )
----
9697

skipif mysql # not compatible
query I rowsort label-8793
SELECT DISTINCT + 94 + - - 97 * - 99 * - COUNT ( * )
----
9697

onlyif mysql # aggregate syntax: 
query I rowsort label-8794
SELECT - 86 * + MAX( ALL + 96 ) + + 33 - + 13 - + NULLIF ( - 13, + 11 ) * + COUNT( * ) * 99 * + - 89 + + - 58 * + COUNT( * ) * - 60 * - 33 - - 71 - + + 91 + - 21 - - MIN( DISTINCT 97 ) * 25 * 34 * + 44 col1
----
3390140

skipif mysql # not compatible
query I rowsort label-8794
SELECT - 86 * + MAX ( ALL + 96 ) + + 33 - + 13 - + NULLIF ( - 13, + 11 ) * + COUNT ( * ) * 99 * + - 89 + + - 58 * + COUNT ( * ) * - 60 * - 33 - - 71 - + + 91 + - 21 - - MIN ( DISTINCT 97 ) * 25 * 34 * + 44 col1
----
3390140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8795
SELECT ALL + CAST( - + 67 AS SIGNED )
----
-67

skipif mysql # not compatible
query I rowsort label-8795
SELECT ALL + CAST ( - + 67 AS INTEGER )
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8796
SELECT ALL + MAX( CAST( + + 85 AS SIGNED ) )
----
85

skipif mysql # not compatible
query I rowsort label-8796
SELECT ALL + MAX ( CAST ( + + 85 AS INTEGER ) )
----
85

query I rowsort
SELECT + COALESCE ( - + 8, 8 ) + - 84 + - 26
----
-118

query I rowsort
SELECT - 38 * + 25 AS col1
----
-950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8799
SELECT CAST( + 68 AS SIGNED ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-8799
SELECT CAST ( + 68 AS INTEGER ) AS col1
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8800
SELECT + 4 * + + 60 + + COUNT( * ) * - COALESCE ( - 84, + + NULLIF ( + + CAST( - COUNT( * ) AS SIGNED ), + 55 ), - 49 ) - - MAX( DISTINCT - - 38 )
----
362

skipif mysql # not compatible
query I rowsort label-8800
SELECT + 4 * + + 60 + + COUNT ( * ) * - COALESCE ( - 84, + + NULLIF ( + + CAST ( - COUNT ( * ) AS INTEGER ), + 55 ), - 49 ) - - MAX ( DISTINCT - - 38 )
----
362

onlyif mysql # DIV for integer division: 
query I rowsort label-8801
SELECT ALL - 6 DIV + 21 - + + ( - + 68 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-8801
SELECT ALL - 6 / + 21 - + + ( - + 68 ) AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8802
SELECT + MAX( + 33 )
----
33

skipif mysql # not compatible
query I rowsort label-8802
SELECT + MAX ( + 33 )
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-8803
SELECT + 90 DIV - 32
----
-2

skipif mysql # not compatible
query I rowsort label-8803
SELECT + 90 / - 32
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8804
SELECT + COALESCE ( - COUNT( * ), + 74 * - COUNT( * ) * + 58 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8804
SELECT + COALESCE ( - COUNT ( * ), + 74 * - COUNT ( * ) * + 58 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT - 32 * - - 75
----
-2400

onlyif mysql # aggregate syntax: 
query I rowsort label-8806
SELECT ALL + COUNT( * ) * + 92 - + 34 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-8806
SELECT ALL + COUNT ( * ) * + 92 - + 34 AS col2
----
58

query I rowsort
SELECT DISTINCT 75 * - + 12
----
-900

onlyif mysql # DIV for integer division: 
query I rowsort label-8808
SELECT + - 58 DIV + 57 col0
----
-1

skipif mysql # not compatible
query I rowsort label-8808
SELECT + - 58 / + 57 col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8809
SELECT DISTINCT + 19 DIV - 60 col2
----
0

skipif mysql # not compatible
query I rowsort label-8809
SELECT DISTINCT + 19 / - 60 col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8810
SELECT ALL 20 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8810
SELECT ALL 20 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8811
SELECT - 59 * - + 78 * - CAST( 37 AS SIGNED ) AS col1
----
-170274

skipif mysql # not compatible
query I rowsort label-8811
SELECT - 59 * - + 78 * - CAST ( 37 AS INTEGER ) AS col1
----
-170274

query I rowsort
SELECT - - 0 + - 67 * + 92 AS col1
----
-6164

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8813
SELECT DISTINCT + - CASE + COUNT( * ) WHEN + - 17 THEN + - 5 - - 37 ELSE NULL END * - - 22 * + COALESCE ( - 79, + CAST( NULL AS DECIMAL ) * + 60 * + + 92 + - 13, 52 * - - ( - 30 ) * + COUNT( * ) * - - 61 * 62 / + COUNT( * ) + 36 + + MIN( DISTINCT - 74 ), - 33 + + 9 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8813
SELECT DISTINCT + - CASE + COUNT ( * ) WHEN + - 17 THEN + - 5 - - 37 ELSE NULL END * - - 22 * + COALESCE ( - 79, + CAST ( NULL AS REAL ) * + 60 * + + 92 + - 13, 52 * - - ( - 30 ) * + COUNT ( * ) * - - 61 * 62 / + COUNT ( * ) + 36 + + MIN ( DISTINCT - 74 ), - 33 + + 9 ) col1
----
NULL

query I rowsort
SELECT ALL + 67 * 2
----
134

query I rowsort
SELECT ALL + - 53 * + 88 + - - 11
----
-4653

query I rowsort
SELECT DISTINCT 18 * 21 + 44 + - 90
----
332

query I rowsort
SELECT ALL - ( + 75 ) AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8818
SELECT DISTINCT - 98 * + - 87 + - MAX( ALL - + 2 ) + - 97
----
8431

skipif mysql # not compatible
query I rowsort label-8818
SELECT DISTINCT - 98 * + - 87 + - MAX ( ALL - + 2 ) + - 97
----
8431

query I rowsort
SELECT 68 - + 66 AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8820
SELECT 99 * + CASE 49 WHEN CAST( - - 56 AS SIGNED ) / - COALESCE ( 88, - 8 ) THEN - 24 WHEN AVG ( - 96 ) * + + AVG ( + 12 ) * - + 68 THEN 29 + + + 13 ELSE CAST( - CASE - - 37 WHEN + CASE - 71 WHEN COALESCE ( - 63, - 65 * CAST( NULL AS SIGNED ) + SUM( ALL - 15 ) + + 80 * 37 * + COUNT( * ) * 33 ) + 0 THEN COUNT( * ) - ( 54 ) WHEN + 50 * + COUNT( DISTINCT + 82 * + 9 ) + + ( + 29 ) * 2 THEN 22 - - 21 / + CAST( - COUNT( * ) AS SIGNED ) END * + 93 THEN - 33 * COUNT( * ) END AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8820
SELECT 99 * + CASE 49 WHEN CAST ( - - 56 AS INTEGER ) / - COALESCE ( 88, - 8 ) THEN - 24 WHEN AVG ( - 96 ) * + + AVG ( + 12 ) * - + 68 THEN 29 + + + 13 ELSE CAST ( - CASE - - 37 WHEN + CASE - 71 WHEN COALESCE ( - 63, - 65 * CAST ( NULL AS INTEGER ) + SUM ( ALL - 15 ) + + 80 * 37 * + COUNT ( * ) * 33 ) + 0 THEN COUNT ( * ) - ( 54 ) WHEN + 50 * + COUNT ( DISTINCT + 82 * + 9 ) + + ( + 29 ) * 2 THEN 22 - - 21 / + CAST ( - COUNT ( * ) AS INTEGER ) END * + 93 THEN - 33 * COUNT ( * ) END AS INTEGER ) END
----
NULL

query II rowsort
SELECT 24 AS col1, 72
----
24
72

query I rowsort
SELECT 10 * 51 * + - CASE + 2 WHEN - - 39 + + NULLIF ( - 26, - + 29 ) THEN + 86 * - ( - 42 ) ELSE NULL END * - 79 * + 13 + - 28 AS col0
----
NULL

query I rowsort
SELECT ALL 10 + 30 * + 41 * - - 55 col0
----
67660

query I rowsort
SELECT DISTINCT 45 + - 61 AS col2
----
-16

query I rowsort
SELECT ALL - 8 + - - 10 col1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8826
SELECT ALL - NULLIF ( + CASE - 22 WHEN - 55 + + 70 THEN - 14 WHEN CAST( NULL AS SIGNED ) THEN NULL END, - - 12 + + 93 ) * 74 * + 61 * + 87 * 27 + - - 73 + - + 13 * - 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8826
SELECT ALL - NULLIF ( + CASE - 22 WHEN - 55 + + 70 THEN - 14 WHEN CAST ( NULL AS INTEGER ) THEN NULL END, - - 12 + + 93 ) * 74 * + 61 * + 87 * 27 + - - 73 + - + 13 * - 89 AS col0
----
NULL

query I rowsort
SELECT 19 + 69 + - 13
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8828
SELECT ALL - COUNT( * ) - - 11 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-8828
SELECT ALL - COUNT ( * ) - - 11 AS col0
----
10

query I rowsort
SELECT 25 * 68 AS col2
----
1700

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT 60 * COUNT( * ) col2
----
60

skipif mysql # not compatible
query I rowsort label-8830
SELECT 60 * COUNT ( * ) col2
----
60

query I rowsort
SELECT 35 + + + 23
----
58

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8832
SELECT + 98 AS col2, CAST( NULL AS DECIMAL ) * - 40
----
98
NULL

skipif mysql # not compatible
query II rowsort label-8832
SELECT + 98 AS col2, CAST ( NULL AS REAL ) * - 40
----
98
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8833
SELECT ALL + CAST( NULL AS SIGNED ) - - 63 + + 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8833
SELECT ALL + CAST ( NULL AS INTEGER ) - - 63 + + 25 AS col1
----
NULL

query II rowsort
SELECT ALL - 89 AS col2, 46 + 36 + - 27 * 99
----
-89
-2591

query II rowsort
SELECT ALL - 95 AS col0, - 79 * 75 AS col1
----
-95
-5925

query II rowsort
SELECT + 57 AS col1, - 35 * 35 + - ( - 85 ) AS col2
----
57
-1140

onlyif mysql # aggregate syntax: 
query II rowsort label-8837
SELECT ALL - - 77 AS col1, + 91 + + - MIN( + 34 ) col0
----
77
57

skipif mysql # not compatible
query II rowsort label-8837
SELECT ALL - - 77 AS col1, + 91 + + - MIN ( + 34 ) col0
----
77
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8838
SELECT DISTINCT - CAST( - - 40 AS SIGNED ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-8838
SELECT DISTINCT - CAST ( - - 40 AS INTEGER ) AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT 42 - + COUNT( * ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-8839
SELECT 42 - + COUNT ( * ) AS col0
----
41

query I rowsort
SELECT - 60 * 25 AS col1
----
-1500

onlyif mysql # aggregate syntax: 
query I rowsort label-8841
SELECT 73 * 3 + COUNT( DISTINCT - 48 ) AS col2
----
220

skipif mysql # not compatible
query I rowsort label-8841
SELECT 73 * 3 + COUNT ( DISTINCT - 48 ) AS col2
----
220

query I rowsort
SELECT DISTINCT - - 44 * + 21 AS col1
----
924

onlyif mysql # aggregate syntax: 
query II rowsort label-8843
SELECT ALL - 32, COALESCE ( + ( 79 ), - 10, - COUNT( * ) ) * ( + 8 ) AS col1
----
-32
632

skipif mysql # not compatible
query II rowsort label-8843
SELECT ALL - 32, COALESCE ( + ( 79 ), - 10, - COUNT ( * ) ) * ( + 8 ) AS col1
----
-32
632

query I rowsort
SELECT 22 + 17 * + - 95 col0
----
-1593

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8845
SELECT ALL + 40 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8845
SELECT ALL + 40 * - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ( + 33 ) * - 23
----
-759

query I rowsort
SELECT DISTINCT - + 52 * 64 AS col0
----
-3328

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8848
SELECT ALL - ( MAX( DISTINCT - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8848
SELECT ALL - ( MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8849
SELECT + CAST( NULL AS SIGNED ) AS col2, - COUNT( * ) - + 46 AS col2
----
NULL
-47

skipif mysql # not compatible
query II rowsort label-8849
SELECT + CAST ( NULL AS INTEGER ) AS col2, - COUNT ( * ) - + 46 AS col2
----
NULL
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT DISTINCT COUNT( * ) + - 24 AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-8850
SELECT DISTINCT COUNT ( * ) + - 24 AS col1
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8851
SELECT ALL - + CAST( + COUNT( * ) AS SIGNED ) + - ( + ( + COUNT( * ) ) ) * - + 19 + + 39 AS col1
----
57

skipif mysql # not compatible
query I rowsort label-8851
SELECT ALL - + CAST ( + COUNT ( * ) AS INTEGER ) + - ( + ( + COUNT ( * ) ) ) * - + 19 + + 39 AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8852
SELECT ALL - COUNT( * ) + - 95 AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-8852
SELECT ALL - COUNT ( * ) + - 95 AS col0
----
-96

query II rowsort
SELECT 11, + 52 + 71 AS col2
----
11
123

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8854
SELECT DISTINCT - 47 + - 81 + - 46 + + 25, CAST( NULL AS DECIMAL ) AS col1
----
-149
NULL

skipif mysql # not compatible
query II rowsort label-8854
SELECT DISTINCT - 47 + - 81 + - 46 + + 25, CAST ( NULL AS REAL ) AS col1
----
-149
NULL

query I rowsort
SELECT ALL - 14 + + 33 + + 43
----
62

query I rowsort
SELECT ALL 34 + + + 21 + - 29
----
26

onlyif mysql # DIV for integer division: 
query II rowsort label-8857
SELECT DISTINCT 38 DIV + - 60 AS col0, + 24 AS col1
----
0
24

skipif mysql # not compatible
query II rowsort label-8857
SELECT DISTINCT 38 / + - 60 AS col0, + 24 AS col1
----
0
24

query I rowsort
SELECT - 81 * - 10 + - - 35
----
845

query I rowsort
SELECT - - ( + - 70 ) AS col2
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8860
SELECT ALL - 64 * 79 * + + CAST( - 72 AS SIGNED ) * - - 16 + 59 + + ( + + 21 ) * - + NULLIF ( - 20, + 64 )
----
5824991

skipif mysql # not compatible
query I rowsort label-8860
SELECT ALL - 64 * 79 * + + CAST ( - 72 AS INTEGER ) * - - 16 + 59 + + ( + + 21 ) * - + NULLIF ( - 20, + 64 )
----
5824991

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8861
SELECT ALL - CAST( NULL AS SIGNED ) + 2 * - 48 - - 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8861
SELECT ALL - CAST ( NULL AS INTEGER ) + 2 * - 48 - - 48 AS col1
----
NULL

query I rowsort
SELECT ALL 39 * 40
----
1560

query I rowsort
SELECT ALL 56 - - 20
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8864
SELECT 54 + + CAST( NULL AS SIGNED ) + - COALESCE ( COUNT( * ), - 44 * - 15 * - 83 ) * + - ( + COUNT( * ) ) * - 86 / - SUM( - 36 ) + + + 7 + - 6 + - 52 - - COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8864
SELECT 54 + + CAST ( NULL AS INTEGER ) + - COALESCE ( COUNT ( * ), - 44 * - 15 * - 83 ) * + - ( + COUNT ( * ) ) * - 86 / - SUM ( - 36 ) + + + 7 + - 6 + - 52 - - COUNT ( * ) col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8865
SELECT ALL CAST( NULL AS DECIMAL ) - - COALESCE ( 29, 7 - + ( - 91 ), 82 + + + 26 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8865
SELECT ALL CAST ( NULL AS REAL ) - - COALESCE ( 29, 7 - + ( - 91 ), 82 + + + 26 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8866
SELECT COUNT( * ) * + - 83 AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-8866
SELECT COUNT ( * ) * + - 83 AS col1
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-8867
SELECT 64 + - 84, CASE + 1 WHEN 1 * - 67 + - COUNT( * ) * CASE 44 WHEN 20 THEN - 23 ELSE NULL END / 90 - ( 11 ) * - 75 * - COUNT( * ) + - ( - 37 ) + 19 / + 14 * - 65 THEN - + 58 + + 95 WHEN - 19 THEN NULL WHEN + 88 THEN - + 73 ELSE NULL END / 26 + + 6 AS col0
----
-20
NULL

skipif mysql # not compatible
query II rowsort label-8867
SELECT 64 + - 84, CASE + 1 WHEN 1 * - 67 + - COUNT ( * ) * CASE 44 WHEN 20 THEN - 23 ELSE NULL END / 90 - ( 11 ) * - 75 * - COUNT ( * ) + - ( - 37 ) + 19 / + 14 * - 65 THEN - + 58 + + 95 WHEN - 19 THEN NULL WHEN + 88 THEN - + 73 ELSE NULL END / 26 + + 6 AS col0
----
-20
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8868
SELECT COUNT( * ) DIV 6 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8868
SELECT COUNT ( * ) / 6 AS col0
----
0

query II rowsort
SELECT 70 * 49 AS col0, 88
----
3430
88

query I rowsort
SELECT ALL + 77 * ( - + 72 )
----
-5544

query I rowsort
SELECT 60 * - - 96
----
5760

onlyif mysql # aggregate syntax: 
query I rowsort label-8872
SELECT MIN( + - 48 ) * - - ( + 31 ) + 91 * 94 * 83 * + + 65 AS col1
----
46147342

skipif mysql # not compatible
query I rowsort label-8872
SELECT MIN ( + - 48 ) * - - ( + 31 ) + 91 * 94 * 83 * + + 65 AS col1
----
46147342

query I rowsort
SELECT ALL + 87 * + 69 * - + 80
----
-480240

onlyif mysql # aggregate syntax: 
query I rowsort label-8874
SELECT NULLIF ( 9, + ( - - 36 ) ) * - - 34 * - 44 + 33 - + 23 + + - SUM( - 5 )
----
-13449

skipif mysql # not compatible
query I rowsort label-8874
SELECT NULLIF ( 9, + ( - - 36 ) ) * - - 34 * - 44 + 33 - + 23 + + - SUM ( - 5 )
----
-13449

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8875
SELECT + 46 / - - MAX( ALL + ( CAST( NULL AS SIGNED ) ) ) + - - 93 + + 75 + - - COALESCE ( - - 11, - 95 - + + 0 ) * + - COUNT( * ) / - 24 * + 39 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8875
SELECT + 46 / - - MAX ( ALL + ( CAST ( NULL AS INTEGER ) ) ) + - - 93 + + 75 + - - COALESCE ( - - 11, - 95 - + + 0 ) * + - COUNT ( * ) / - 24 * + 39 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8876
SELECT ALL + + 29 * - 43 + + SUM( ALL - - 31 ) * + 64 AS col1
----
737

skipif mysql # not compatible
query I rowsort label-8876
SELECT ALL + + 29 * - 43 + + SUM ( ALL - - 31 ) * + 64 AS col1
----
737

onlyif mysql # DIV for integer division: 
query I rowsort label-8877
SELECT ( - ( - 3 ) ) DIV - + 3 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8877
SELECT ( - ( - 3 ) ) / - + 3 AS col2
----
-1

query I rowsort
SELECT + ( + ( 53 ) ) AS col0
----
53

query I rowsort
SELECT + 32 * + - ( 33 ) + - 80
----
-1136

onlyif mysql # aggregate syntax: 
query I rowsort label-8880
SELECT DISTINCT + 48 * MAX( ALL + 96 ) + 38
----
4646

skipif mysql # not compatible
query I rowsort label-8880
SELECT DISTINCT + 48 * MAX ( ALL + 96 ) + 38
----
4646

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8881
SELECT ALL - COALESCE ( + 70, 80 DIV - + 55, 76 ) * COALESCE ( - CAST( NULL AS SIGNED ), ( ( - + 95 ) ) + - 10 ) * - 54 * 13 * + 46
----
-237346200

skipif mysql # not compatible
query I rowsort label-8881
SELECT ALL - COALESCE ( + 70, 80 / - + 55, 76 ) * COALESCE ( - CAST ( NULL AS INTEGER ), ( ( - + 95 ) ) + - 10 ) * - 54 * 13 * + 46
----
-237346200

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8882
SELECT + CAST( - 98 AS SIGNED ) DIV + 32 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-8882
SELECT + CAST ( - 98 AS INTEGER ) / + 32 AS col0
----
-3

query I rowsort
SELECT ALL + 33 * 57 + + - 60 + + + 90
----
1911

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT ALL + MIN( 95 ) * + 55 - 3 + 10
----
5232

skipif mysql # not compatible
query I rowsort label-8884
SELECT ALL + MIN ( 95 ) * + 55 - 3 + 10
----
5232

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8885
SELECT DISTINCT + - CAST( + 97 AS SIGNED ) + - 7 AS col2
----
-104

skipif mysql # not compatible
query I rowsort label-8885
SELECT DISTINCT + - CAST ( + 97 AS INTEGER ) + - 7 AS col2
----
-104

query I rowsort
SELECT - COALESCE ( + 15, - 64, + 35 )
----
-15

query I rowsort
SELECT ALL - + 74 + + 93 AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT ALL + 68 * NULLIF ( - 96, - 64 / + - ( - + COUNT( * ) ) )
----
-6528

skipif mysql # not compatible
query I rowsort label-8888
SELECT ALL + 68 * NULLIF ( - 96, - 64 / + - ( - + COUNT ( * ) ) )
----
-6528

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8889
SELECT 4 * - + 88 * 6 * + 75 - - - NULLIF ( + - 69, + 21 ) - - 0 * 44 + ( - + 18 ) + + ( CAST( 85 AS SIGNED ) ) AS col1
----
-158264

skipif mysql # not compatible
query I rowsort label-8889
SELECT 4 * - + 88 * 6 * + 75 - - - NULLIF ( + - 69, + 21 ) - - 0 * 44 + ( - + 18 ) + + ( CAST ( 85 AS INTEGER ) ) AS col1
----
-158264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8890
SELECT - + 29 - - + NULLIF ( - COUNT( * ), - + COUNT( * ) ) + + + 79 * - - COALESCE ( 61, + COALESCE ( 85, + + CAST( NULL AS SIGNED ) ) ) * NULLIF ( - COUNT( * ), - - 34 ) + ( 43 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8890
SELECT - + 29 - - + NULLIF ( - COUNT ( * ), - + COUNT ( * ) ) + + + 79 * - - COALESCE ( 61, + COALESCE ( 85, + + CAST ( NULL AS INTEGER ) ) ) * NULLIF ( - COUNT ( * ), - - 34 ) + ( 43 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8891
SELECT ALL + ( - ( + COUNT( * ) ) ) * - + 38 + 10 AS col1, - NULLIF ( + ( + 68 ), + - 14 ) + + + 59 + - 99 DIV - 85
----
48
-8

skipif mysql # not compatible
query II rowsort label-8891
SELECT ALL + ( - ( + COUNT ( * ) ) ) * - + 38 + 10 AS col1, - NULLIF ( + ( + 68 ), + - 14 ) + + + 59 + - 99 / - 85
----
48
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8892
SELECT ALL 15 AS col0, + ( COUNT( * ) ) * COUNT( * ) * COUNT( * ) DIV + 69
----
15
0

skipif mysql # not compatible
query II rowsort label-8892
SELECT ALL 15 AS col0, + ( COUNT ( * ) ) * COUNT ( * ) * COUNT ( * ) / + 69
----
15
0

query I rowsort
SELECT DISTINCT + 26 - - + 88
----
114

query I rowsort
SELECT + 33 * - + 14
----
-462

onlyif mysql # aggregate syntax: 
query I rowsort label-8895
SELECT - MIN( ALL + 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-8895
SELECT - MIN ( ALL + 83 )
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-8896
SELECT ALL 26 AS col1, - 43 - MAX( + 61 ) * + 45
----
26
-2788

skipif mysql # not compatible
query II rowsort label-8896
SELECT ALL 26 AS col1, - 43 - MAX ( + 61 ) * + 45
----
26
-2788

onlyif mysql # aggregate syntax: 
query I rowsort label-8897
SELECT - 38 - - COUNT( + 13 ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-8897
SELECT - 38 - - COUNT ( + 13 ) AS col1
----
-37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8898
SELECT ALL CAST( NULL AS DECIMAL ) / - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-8898
SELECT ALL CAST ( NULL AS REAL ) / - 28
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8899
SELECT + ( + - 44 ) DIV + 24 + 8 * - - COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-8899
SELECT + ( + - 44 ) / + 24 + 8 * - - COUNT ( * )
----
7

query II rowsort
SELECT 95, 33 AS col2
----
95
33

onlyif mysql # aggregate syntax: 
query II rowsort label-8901
SELECT - COUNT( * ), 20 AS col0
----
-1
20

skipif mysql # not compatible
query II rowsort label-8901
SELECT - COUNT ( * ), 20 AS col0
----
-1
20

onlyif mysql # DIV for integer division: 
query I rowsort label-8902
SELECT ALL 3 * 80 DIV + 86 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-8902
SELECT ALL 3 * 80 / + 86 AS col0
----
2

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8903
SELECT DISTINCT 43 AS col2, CAST( NULL AS DECIMAL ) AS col2
----
43
NULL

skipif mysql # not compatible
query II rowsort label-8903
SELECT DISTINCT 43 AS col2, CAST ( NULL AS REAL ) AS col2
----
43
NULL

query II rowsort
SELECT ALL 96, 45 + 46 AS col1
----
96
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8905
SELECT ALL NULLIF ( + CAST( - COUNT( * ) AS SIGNED ), + + ( COUNT( * ) ) - 85 ) * + 54
----
-54

skipif mysql # not compatible
query I rowsort label-8905
SELECT ALL NULLIF ( + CAST ( - COUNT ( * ) AS INTEGER ), + + ( COUNT ( * ) ) - 85 ) * + 54
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-8906
SELECT + MIN( DISTINCT + 97 ) - 28, MIN( ALL + ( - 96 ) ) + - 90 AS col0
----
69
-186

skipif mysql # not compatible
query II rowsort label-8906
SELECT + MIN ( DISTINCT + 97 ) - 28, MIN ( ALL + ( - 96 ) ) + - 90 AS col0
----
69
-186

query I rowsort
SELECT + 31 + 36
----
67

query I rowsort
SELECT - COALESCE ( 77, - - 4 * 90 ) AS col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8909
SELECT + COUNT( * ) + 68 * 89 + + - COALESCE ( + 73, + + 44, + + 99 )
----
5980

skipif mysql # not compatible
query I rowsort label-8909
SELECT + COUNT ( * ) + 68 * 89 + + - COALESCE ( + 73, + + 44, + + 99 )
----
5980

onlyif mysql # aggregate syntax: 
query I rowsort label-8910
SELECT - NULLIF ( - CASE + 20 WHEN 53 / + MAX( + + 71 ) + - ( - COUNT( * ) ) * + 19 * + + 47 + - - 46 * 29 THEN 13 + COUNT( ( 24 ) ) ELSE + 60 END, - 1 ) * + 20
----
1200

skipif mysql # not compatible
query I rowsort label-8910
SELECT - NULLIF ( - CASE + 20 WHEN 53 / + MAX ( + + 71 ) + - ( - COUNT ( * ) ) * + 19 * + + 47 + - - 46 * 29 THEN 13 + COUNT ( ( 24 ) ) ELSE + 60 END, - 1 ) * + 20
----
1200

query I rowsort
SELECT DISTINCT - ( - 3 )
----
3

query II rowsort
SELECT DISTINCT + - 82 AS col1, 74 AS col0
----
-82
74

onlyif mysql # DIV for integer division: 
query I rowsort label-8913
SELECT ALL 14 DIV + - 18 * 14 * 15 + + 9 + 64 * 73 AS col2
----
4681

skipif mysql # not compatible
query I rowsort label-8913
SELECT ALL 14 / + - 18 * 14 * 15 + + 9 + 64 * 73 AS col2
----
4681

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT COUNT( * ) * 12 + 49
----
61

skipif mysql # not compatible
query I rowsort label-8914
SELECT COUNT ( * ) * 12 + 49
----
61

query I rowsort
SELECT ALL 10 * + 55 + + - NULLIF ( + - 80, 59 ) * - 45 AS col0
----
-3050

query I rowsort
SELECT ALL + 24 * 31 AS col1
----
744

query I rowsort
SELECT ALL + 93 * + 57 + - ( + - 58 ) AS col1
----
5359

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8918
SELECT + - CASE + 56 WHEN + CASE - + 8 WHEN 29 THEN + - 42 END THEN CAST( NULL AS SIGNED ) - - - 35 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8918
SELECT + - CASE + 56 WHEN + CASE - + 8 WHEN 29 THEN + - 42 END THEN CAST ( NULL AS INTEGER ) - - - 35 END
----
NULL

query I rowsort
SELECT ALL + ( + 71 ) AS col2
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8920
SELECT - COALESCE ( 72, - + 85, - 83 ) / - - 76 + + + CAST( NULL AS SIGNED ) + - 66 / + CAST( + 66 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8920
SELECT - COALESCE ( 72, - + 85, - 83 ) / - - 76 + + + CAST ( NULL AS INTEGER ) + - 66 / + CAST ( + 66 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT + 30 * ( + 93 ) + + SUM( DISTINCT - ( 41 ) ) + - 80
----
2669

skipif mysql # not compatible
query I rowsort label-8921
SELECT + 30 * ( + 93 ) + + SUM ( DISTINCT - ( 41 ) ) + - 80
----
2669

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8922
SELECT - 43 * - 55 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8922
SELECT - 43 * - 55 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 72 * - 15 AS col0
----
-1080

query II rowsort
SELECT ALL + 50 * 23 + + + 21, - 22 AS col2
----
1171
-22

query I rowsort
SELECT - 85 + - - 48 + + 50 col1
----
13

query II rowsort
SELECT 46, 63 * 67 AS col0
----
46
4221

query I rowsort
SELECT - ( + 64 ) * + 11 + + 35
----
-669

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8928
SELECT ALL - + 34 / - - ( - COALESCE ( - CAST( NULL AS DECIMAL ), 87 / - NULLIF ( + CAST( CASE + 16 WHEN - 12 THEN - MAX( 50 ) WHEN - 0 * - 6 THEN NULL ELSE NULL END AS SIGNED ), MAX( DISTINCT - + 75 ) + - - 32 ) - - 41 ) ), - COALESCE ( + + COUNT( * ), NULLIF ( - + 67, ( + 45 ) - 78 ) ) col0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-8928
SELECT ALL - + 34 / - - ( - COALESCE ( - CAST ( NULL AS REAL ), 87 / - NULLIF ( + CAST ( CASE + 16 WHEN - 12 THEN - MAX ( 50 ) WHEN - 0 * - 6 THEN NULL ELSE NULL END AS INTEGER ), MAX ( DISTINCT - + 75 ) + - - 32 ) - - 41 ) ), - COALESCE ( + + COUNT ( * ), NULLIF ( - + 67, ( + 45 ) - 78 ) ) col0
----
NULL
-1

query I rowsort
SELECT + - NULLIF ( 26, + 72 * - + 48 )
----
-26

query I rowsort
SELECT ALL + ( + + 35 ) AS col2
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-8931
SELECT ALL + COUNT( * ) AS col1, COUNT( DISTINCT + + 14 ) + 73 AS col1
----
1
74

skipif mysql # not compatible
query II rowsort label-8931
SELECT ALL + COUNT ( * ) AS col1, COUNT ( DISTINCT + + 14 ) + 73 AS col1
----
1
74

query I rowsort
SELECT - ( + 94 ) * - + 99 - + - CASE + + 79 WHEN - 72 THEN NULL WHEN - 37 THEN + 92 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8933
SELECT DISTINCT + 79 * - + COUNT( * ) * + - 18 - - COUNT( * ) + COUNT( * )
----
1424

skipif mysql # not compatible
query I rowsort label-8933
SELECT DISTINCT + 79 * - + COUNT ( * ) * + - 18 - - COUNT ( * ) + COUNT ( * )
----
1424

onlyif mysql # aggregate syntax: 
query I rowsort label-8934
SELECT - 45 + + - 37 * + 66 + COUNT( * ) AS col0
----
-2486

skipif mysql # not compatible
query I rowsort label-8934
SELECT - 45 + + - 37 * + 66 + COUNT ( * ) AS col0
----
-2486

onlyif mysql # aggregate syntax: 
query I rowsort label-8935
SELECT ALL ( ( + COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-8935
SELECT ALL ( ( + COUNT ( * ) ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8936
SELECT - 21 * + ( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8936
SELECT - 21 * + ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8937
SELECT DISTINCT + COALESCE ( - 89, + 30, - 3 DIV - 70 ) * - 87 AS col2
----
7743

skipif mysql # not compatible
query I rowsort label-8937
SELECT DISTINCT + COALESCE ( - 89, + 30, - 3 / - 70 ) * - 87 AS col2
----
7743

query I rowsort
SELECT + 21 - - - ( - 15 ) * + 21
----
336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8939
SELECT + ( + + NULLIF ( CAST( NULL AS SIGNED ), 51 * - 83 ) ) * - + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-8939
SELECT + ( + + NULLIF ( CAST ( NULL AS INTEGER ), 51 * - 83 ) ) * - + 26
----
NULL

query I rowsort
SELECT ALL 3 * + 81 AS col1
----
243

query I rowsort
SELECT DISTINCT + 4 * - - 86 AS col2
----
344

query I rowsort
SELECT ALL ( + 37 )
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8943
SELECT ALL CAST( 91 AS SIGNED ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-8943
SELECT ALL CAST ( 91 AS INTEGER ) AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8944
SELECT + COUNT( * ) + - - 41 - - CASE + 98 WHEN 39 THEN - 70 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8944
SELECT + COUNT ( * ) + - - 41 - - CASE + 98 WHEN 39 THEN - 70 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8945
SELECT - 8 DIV COUNT( * ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-8945
SELECT - 8 / COUNT ( * ) AS col0
----
-8

query I rowsort
SELECT ALL 95 + + 49
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8947
SELECT - CAST( - - 42 AS SIGNED )
----
-42

skipif mysql # not compatible
query I rowsort label-8947
SELECT - CAST ( - - 42 AS INTEGER )
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-8948
SELECT ALL - 75 DIV + 44
----
-1

skipif mysql # not compatible
query I rowsort label-8948
SELECT ALL - 75 / + 44
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8949
SELECT ALL + 9 + - - 73 DIV - 7 col0
----
-1

skipif mysql # not compatible
query I rowsort label-8949
SELECT ALL + 9 + - - 73 / - 7 col0
----
-1

query I rowsort
SELECT DISTINCT 55 + - + 14 + 34
----
75

query I rowsort
SELECT 99 * + 6
----
594

query I rowsort
SELECT + 3 * - 8 + + + 10
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-8953
SELECT ALL COUNT( * ) - + - 31, - 96 AS col1
----
32
-96

skipif mysql # not compatible
query II rowsort label-8953
SELECT ALL COUNT ( * ) - + - 31, - 96 AS col1
----
32
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8954
SELECT - 70 * + - MIN( ALL 2 ) AS col0
----
140

skipif mysql # not compatible
query I rowsort label-8954
SELECT - 70 * + - MIN ( ALL 2 ) AS col0
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-8955
SELECT - COALESCE ( - COUNT( * ), - 51 ) * - + 33 * NULLIF ( - 58, 0 ) AS col1
----
1914

skipif mysql # not compatible
query I rowsort label-8955
SELECT - COALESCE ( - COUNT ( * ), - 51 ) * - + 33 * NULLIF ( - 58, 0 ) AS col1
----
1914

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT DISTINCT + 35 - - + COUNT( + 21 ) - + 87 + 92 * 6 + ( + - 45 )
----
456

skipif mysql # not compatible
query I rowsort label-8956
SELECT DISTINCT + 35 - - + COUNT ( + 21 ) - + 87 + 92 * 6 + ( + - 45 )
----
456

onlyif mysql # aggregate syntax: 
query I rowsort label-8957
SELECT ALL - SUM( + - 0 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8957
SELECT ALL - SUM ( + - 0 ) AS col1
----
0

query I rowsort
SELECT DISTINCT 85 - 0 * + + 1 AS col0
----
85

query I rowsort
SELECT - 86 * + - 27 - CASE - - 15 WHEN AVG ( DISTINCT 63 ) + 75 + - 73 THEN + 11 WHEN 77 THEN 43 ELSE - 37 * - - 84 END * - 23 - + 71 + + + 88 col2
----
-69145

query I rowsort
SELECT ALL 16 * - 48
----
-768

query I rowsort
SELECT 19 * - 98
----
-1862

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT ALL - MIN( + + 47 ) * - - 83 + + - 55
----
-3956

skipif mysql # not compatible
query I rowsort label-8962
SELECT ALL - MIN ( + + 47 ) * - - 83 + + - 55
----
-3956

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8963
SELECT 96 AS col2, 87 + - + ( + CASE + + CAST( + 62 AS SIGNED ) WHEN - COUNT( * ) THEN NULL WHEN - - CASE - ( NULLIF ( - ( 99 ), + - COUNT( * ) * - CASE + + COUNT( * ) WHEN - AVG ( ALL + CAST( 39 AS DECIMAL ) ) / + 99 THEN CAST( NULL AS SIGNED ) * - COUNT( DISTINCT 60 ) WHEN COUNT( * ) THEN + 2 + - NULLIF ( + 95, + - 18 ) ELSE 65 * - 13 * - 78 END ) ) WHEN - + 81 THEN NULL ELSE + 41 + + 98 END THEN - + AVG ( DISTINCT + 91 ) * - 29 END )
----
96
NULL

skipif mysql # not compatible
query II rowsort label-8963
SELECT 96 AS col2, 87 + - + ( + CASE + + CAST ( + 62 AS INTEGER ) WHEN - COUNT ( * ) THEN NULL WHEN - - CASE - ( NULLIF ( - ( 99 ), + - COUNT ( * ) * - CASE + + COUNT ( * ) WHEN - AVG ( ALL + CAST ( 39 AS REAL ) ) / + 99 THEN CAST ( NULL AS INTEGER ) * - COUNT ( DISTINCT 60 ) WHEN COUNT ( * ) THEN + 2 + - NULLIF ( + 95, + - 18 ) ELSE 65 * - 13 * - 78 END ) ) WHEN - + 81 THEN NULL ELSE + 41 + + 98 END THEN - + AVG ( DISTINCT + 91 ) * - 29 END )
----
96
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8964
SELECT COUNT( * ) * 85 DIV + 37 - - + COUNT( * ) col2
----
3

skipif mysql # not compatible
query I rowsort label-8964
SELECT COUNT ( * ) * 85 / + 37 - - + COUNT ( * ) col2
----
3

query I rowsort
SELECT DISTINCT ( - 92 ) * - 73 col2
----
6716

onlyif mysql # aggregate syntax: 
query II rowsort label-8966
SELECT ALL 80, + COUNT( * ) AS col0
----
80
1

skipif mysql # not compatible
query II rowsort label-8966
SELECT ALL 80, + COUNT ( * ) AS col0
----
80
1

query I rowsort
SELECT 54 * + - 29 AS col0
----
-1566

onlyif mysql # DIV for integer division: 
query I rowsort label-8968
SELECT 63 DIV 22 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-8968
SELECT 63 / 22 AS col2
----
2

query I rowsort
SELECT ALL - 18 + 93
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-8970
SELECT - 90 AS col2, - COUNT( * )
----
-90
-1

skipif mysql # not compatible
query II rowsort label-8970
SELECT - 90 AS col2, - COUNT ( * )
----
-90
-1

query I rowsort
SELECT DISTINCT + 73 + - 45 * + 67 AS col1
----
-2942

query I rowsort
SELECT ALL - 19 + + 73 * 13 AS col2
----
930

query I rowsort
SELECT 60 - - 92
----
152

query I rowsort
SELECT 98 * + - 46
----
-4508

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8975
SELECT ALL - MIN( + ( + 70 ) ) + + 68 * - + CAST( NULL AS DECIMAL ) * 71, - 3 * + - 52 * - + ( - 83 ) AS col2
----
NULL
12948

skipif mysql # not compatible
query II rowsort label-8975
SELECT ALL - MIN ( + ( + 70 ) ) + + 68 * - + CAST ( NULL AS REAL ) * 71, - 3 * + - 52 * - + ( - 83 ) AS col2
----
NULL
12948

query I rowsort
SELECT DISTINCT - 47 * + 37 AS col0
----
-1739

onlyif mysql # aggregate syntax: 
query I rowsort label-8977
SELECT DISTINCT - 74 + - + COUNT( * ) + 62
----
-13

skipif mysql # not compatible
query I rowsort label-8977
SELECT DISTINCT - 74 + - + COUNT ( * ) + 62
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8978
SELECT + CAST( - 12 AS SIGNED ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-8978
SELECT + CAST ( - 12 AS INTEGER ) AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8979
SELECT ALL - - 43 + + + 19 + - + COUNT( * ) + 56
----
117

skipif mysql # not compatible
query I rowsort label-8979
SELECT ALL - - 43 + + + 19 + - + COUNT ( * ) + 56
----
117

query I rowsort
SELECT DISTINCT + - 80 + + - 86
----
-166

query I rowsort
SELECT ALL 4 + - 75
----
-71

query I rowsort
SELECT 65 - 76
----
-11

query I rowsort
SELECT - COALESCE ( + 28, - + 57 ) + 40
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT + 27 * + 94 * + - NULLIF ( - COUNT( * ), ( 57 ) * COUNT( * ) ) + - + 53 * - - COUNT( * )
----
2485

skipif mysql # not compatible
query I rowsort label-8984
SELECT + 27 * + 94 * + - NULLIF ( - COUNT ( * ), ( 57 ) * COUNT ( * ) ) + - + 53 * - - COUNT ( * )
----
2485

query I rowsort
SELECT 14 + + 74
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8986
SELECT COUNT( * ) + + ( - MIN( DISTINCT 66 ) ) + + - ( + COUNT( * ) ) - - 84 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-8986
SELECT COUNT ( * ) + + ( - MIN ( DISTINCT 66 ) ) + + - ( + COUNT ( * ) ) - - 84 AS col2
----
18

query III rowsort
SELECT 38 AS col0, 37 + + - 19 + + + 7 * + 20 + + NULLIF ( - 43, - - 13 ) col0, - - 45 * + 56 - + 97 + - 11 AS col0
----
38
115
2412

query I rowsort
SELECT 35 * + ( - 62 ) + - 7 AS col1
----
-2177

onlyif mysql # aggregate syntax: 
query I rowsort label-8989
SELECT 22 * + ( + + SUM( ALL + 12 ) ) col0
----
264

skipif mysql # not compatible
query I rowsort label-8989
SELECT 22 * + ( + + SUM ( ALL + 12 ) ) col0
----
264

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8990
SELECT DISTINCT - + 26 DIV - - 88 * ( + - 61 ) * + + 68 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8990
SELECT DISTINCT - + 26 / - - 88 * ( + - 61 ) * + + 68 * - COUNT ( * )
----
0

query I rowsort
SELECT DISTINCT - 48 * - + 79 * 82 - - 17
----
310961

query I rowsort
SELECT 83 + - 35 * 65 + - 94 * + + 14 AS col1
----
-3508

query I rowsort
SELECT ALL - 36 * - 31
----
1116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8994
SELECT 14 DIV - COUNT( 43 ) + + + 80
----
66

skipif mysql # not compatible
query I rowsort label-8994
SELECT 14 / - COUNT ( 43 ) + + + 80
----
66

query I rowsort
SELECT ALL 73 * 34 col2
----
2482

query I rowsort
SELECT DISTINCT - - 78 AS col1
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8997
SELECT DISTINCT CASE 73 WHEN 91 THEN 42 WHEN - 12 THEN NULL ELSE - CAST( NULL AS SIGNED ) * + NULLIF ( - 43, + 61 * + COUNT( * ) ) * - 67 END * COUNT( * ) * 89 + - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-8997
SELECT DISTINCT CASE 73 WHEN 91 THEN 42 WHEN - 12 THEN NULL ELSE - CAST ( NULL AS INTEGER ) * + NULLIF ( - 43, + 61 * + COUNT ( * ) ) * - 67 END * COUNT ( * ) * 89 + - 6
----
NULL

query I rowsort
SELECT ALL - ( - 47 ) AS col1
----
47

query I rowsort
SELECT 28 * + + 97
----
2716

onlyif mysql # aggregate syntax: 
query I rowsort label-9000
SELECT 64 * ( + COUNT( * ) )
----
64

skipif mysql # not compatible
query I rowsort label-9000
SELECT 64 * ( + COUNT ( * ) )
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9001
SELECT 49 DIV + 65 * - + 59 + + + 28 + - 43 + COUNT( * ) * + CAST( 10 AS SIGNED )
----
-5

skipif mysql # not compatible
query I rowsort label-9001
SELECT 49 / + 65 * - + 59 + + + 28 + - 43 + COUNT ( * ) * + CAST ( 10 AS INTEGER )
----
-5

query II rowsort
SELECT 68 AS col2, 57
----
68
57

query II rowsort
SELECT ALL - 80 AS col0, - 86
----
-80
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-9004
SELECT ALL 62 DIV + - 46
----
-1

skipif mysql # not compatible
query I rowsort label-9004
SELECT ALL 62 / + - 46
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT 54 * - ( + COUNT( * ) ) col1
----
-54

skipif mysql # not compatible
query I rowsort label-9005
SELECT 54 * - ( + COUNT ( * ) ) col1
----
-54

query I rowsort
SELECT ALL 74 + - + 75 AS col0
----
-1

query I rowsort
SELECT ALL - 50 + - 36
----
-86

query I rowsort
SELECT ALL + 87 + + 10 AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT + COUNT( * ) * + 96 - COALESCE ( + 90, + + 59 * + - 9, + 64 )
----
6

skipif mysql # not compatible
query I rowsort label-9009
SELECT + COUNT ( * ) * + 96 - COALESCE ( + 90, + + 59 * + - 9, + 64 )
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-9010
SELECT DISTINCT - 5 AS col1, 60 / + - CASE + - 72 WHEN COUNT( * ) THEN + + 46 + COUNT( * ) WHEN - 58 + + 97 THEN NULL END * + COUNT( * ) AS col1
----
-5
NULL

skipif mysql # not compatible
query II rowsort label-9010
SELECT DISTINCT - 5 AS col1, 60 / + - CASE + - 72 WHEN COUNT ( * ) THEN + + 46 + COUNT ( * ) WHEN - 58 + + 97 THEN NULL END * + COUNT ( * ) AS col1
----
-5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT DISTINCT 85 + - ( COUNT( * ) ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-9011
SELECT DISTINCT 85 + - ( COUNT ( * ) ) AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9012
SELECT 82 + NULLIF ( - + 94, + - 28 * - MIN( DISTINCT + 99 ) + 12 ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-9012
SELECT 82 + NULLIF ( - + 94, + - 28 * - MIN ( DISTINCT + 99 ) + 12 ) AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9013
SELECT - MIN( + 67 )
----
-67

skipif mysql # not compatible
query I rowsort label-9013
SELECT - MIN ( + 67 )
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9014
SELECT ALL 20 + COUNT( * ) + - + ( - + SUM( ALL - 11 ) ) + + - 27 - - + 78 + - 34 * - - 53 + + 83 * - COUNT( * ) * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9014
SELECT ALL 20 + COUNT ( * ) + - + ( - + SUM ( ALL - 11 ) ) + + - 27 - - + 78 + - 34 * - - 53 + + 83 * - COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT 83, 57 AS col1
----
83
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT 87 * - + 33 / CASE - ( + - 50 ) WHEN - COUNT( * ) THEN + 37 * 34 + - NULLIF ( - - ( - COUNT( * ) ), - COUNT( * ) ) END + - - NULLIF ( - + COUNT( * ), - + 31 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9016
SELECT 87 * - + 33 / CASE - ( + - 50 ) WHEN - COUNT ( * ) THEN + 37 * 34 + - NULLIF ( - - ( - COUNT ( * ) ), - COUNT ( * ) ) END + - - NULLIF ( - + COUNT ( * ), - + 31 ) AS col2
----
NULL

query I rowsort
SELECT 5 - - 98 AS col0
----
103

query II rowsort
SELECT ALL 0, + 7 AS col0
----
0
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9019
SELECT 79 + + - COUNT( * ) col2
----
78

skipif mysql # not compatible
query I rowsort label-9019
SELECT 79 + + - COUNT ( * ) col2
----
78

query II rowsort
SELECT ALL 84 + + 8 AS col0, 8 AS col1
----
92
8

onlyif mysql # DIV for integer division: 
query I rowsort label-9021
SELECT ALL + 97 DIV + 8 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-9021
SELECT ALL + 97 / + 8 AS col1
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-9022
SELECT 88 + - - SUM( DISTINCT + 45 ) * + 16 + COUNT( * ) + - 37 AS col1, + COUNT( * ) AS col1
----
772
1

skipif mysql # not compatible
query II rowsort label-9022
SELECT 88 + - - SUM ( DISTINCT + 45 ) * + 16 + COUNT ( * ) + - 37 AS col1, + COUNT ( * ) AS col1
----
772
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9023
SELECT ALL 60 + - 61, COUNT( * ) AS col2
----
-1
1

skipif mysql # not compatible
query II rowsort label-9023
SELECT ALL 60 + - 61, COUNT ( * ) AS col2
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9024
SELECT ALL + MAX( 28 ) + + 84
----
112

skipif mysql # not compatible
query I rowsort label-9024
SELECT ALL + MAX ( 28 ) + + 84
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT ALL - + NULLIF ( + + ( + ( 30 ) ), - 87 ) + + SUM( + - 27 ) + + 15 AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-9025
SELECT ALL - + NULLIF ( + + ( + ( 30 ) ), - 87 ) + + SUM ( + - 27 ) + + 15 AS col0
----
-42

query II rowsort
SELECT ALL + 78, 80 AS col2
----
78
80

query I rowsort
SELECT - - ( + - 26 ) + - 64
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9028
SELECT - + 7 + + COUNT( * ) - - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9028
SELECT - + 7 + + COUNT ( * ) - - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - - 96 * - 50 + + ( 52 )
----
-4748

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9030
SELECT - - CAST( NULL AS SIGNED ) + + MAX( ALL + - 82 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9030
SELECT - - CAST ( NULL AS INTEGER ) + + MAX ( ALL + - 82 ) AS col1
----
NULL

query II rowsort
SELECT - - ( - - 94 ) AS col1, + 7
----
94
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9032
SELECT ALL - 40 * + COUNT( * ) + COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-9032
SELECT ALL - 40 * + COUNT ( * ) + COUNT ( * )
----
-39

query I rowsort
SELECT - 61 * 48
----
-2928

query I rowsort
SELECT DISTINCT + NULLIF ( - 80, - 37 )
----
-80

query I rowsort
SELECT DISTINCT - - 73 - - ( 17 )
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9036
SELECT + 52, + ( + CAST( + + 89 AS SIGNED ) ) AS col2
----
52
89

skipif mysql # not compatible
query II rowsort label-9036
SELECT + 52, + ( + CAST ( + + 89 AS INTEGER ) ) AS col2
----
52
89

onlyif mysql # DIV for integer division: 
query II rowsort label-9037
SELECT - + 69 * 29, 18 DIV + 61 - 58 AS col1
----
-2001
-58

skipif mysql # not compatible
query II rowsort label-9037
SELECT - + 69 * 29, 18 / + 61 - 58 AS col1
----
-2001
-58

query III rowsort
SELECT 40 AS col0, - 58 AS col0, + 20 + + 64 + + 97 AS col0
----
40
-58
181

query II rowsort
SELECT 77, + 0 col2
----
77
0

query I rowsort
SELECT + NULLIF ( 24, 33 + 72 + - - 14 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT ALL + + MAX( - - ( + 21 ) ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-9041
SELECT ALL + + MAX ( - - ( + 21 ) ) AS col2
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9042
SELECT + - ( CAST( 91 AS SIGNED ) )
----
-91

skipif mysql # not compatible
query I rowsort label-9042
SELECT + - ( CAST ( 91 AS INTEGER ) )
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-9043
SELECT + + 14 DIV 12
----
1

skipif mysql # not compatible
query I rowsort label-9043
SELECT + + 14 / 12
----
1

query I rowsort
SELECT DISTINCT 83 * + 32 * - 42 + - 26
----
-111578

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9045
SELECT ALL + CASE + 43 WHEN - CAST( + COUNT( + 64 ) AS SIGNED ) THEN - 58 + 45 + - 30 + + COUNT( * ) WHEN - CASE - NULLIF ( + - 16, - 57 ) WHEN + - ( - CAST( + + 51 AS SIGNED ) ) / 75 + - 56 * + - 40 THEN + 71 * - 15 - + 34 ELSE NULL END * - 66 - - 19 * + + 90 THEN NULL END / 16 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9045
SELECT ALL + CASE + 43 WHEN - CAST ( + COUNT ( + 64 ) AS INTEGER ) THEN - 58 + 45 + - 30 + + COUNT ( * ) WHEN - CASE - NULLIF ( + - 16, - 57 ) WHEN + - ( - CAST ( + + 51 AS INTEGER ) ) / 75 + - 56 * + - 40 THEN + 71 * - 15 - + 34 ELSE NULL END * - 66 - - 19 * + + 90 THEN NULL END / 16 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9046
SELECT + COUNT( - 72 ) DIV + + 22
----
0

skipif mysql # not compatible
query I rowsort label-9046
SELECT + COUNT ( - 72 ) / + + 22
----
0

query I rowsort
SELECT ALL 58 * 27 + + 81 + + 87
----
1734

onlyif mysql # aggregate syntax: 
query II rowsort label-9048
SELECT + 62 + - + COUNT( * ) AS col0, - 47 + 72
----
61
25

skipif mysql # not compatible
query II rowsort label-9048
SELECT + 62 + - + COUNT ( * ) AS col0, - 47 + 72
----
61
25

query I rowsort
SELECT COALESCE ( - COALESCE ( 58, - - 7 ), - - 80 * + ( + 33 ) * - + 73 + 25 * - 79 )
----
-58

query I rowsort
SELECT + 82 * - 23 * 95 + + 30 AS col1
----
-179140

onlyif mysql # aggregate syntax: 
query I rowsort label-9051
SELECT + COALESCE ( - 82, COUNT( * ) )
----
-82

skipif mysql # not compatible
query I rowsort label-9051
SELECT + COALESCE ( - 82, COUNT ( * ) )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT ALL 1 * + COUNT( * ) + 2 + + - 39
----
-36

skipif mysql # not compatible
query I rowsort label-9052
SELECT ALL 1 * + COUNT ( * ) + 2 + + - 39
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT + SUM( DISTINCT + - 73 ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-9053
SELECT + SUM ( DISTINCT + - 73 ) AS col0
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-9054
SELECT COUNT( DISTINCT + 98 ), - 58 AS col2
----
1
-58

skipif mysql # not compatible
query II rowsort label-9054
SELECT COUNT ( DISTINCT + 98 ), - 58 AS col2
----
1
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9055
SELECT COALESCE ( + + NULLIF ( + 43, 71 ), NULLIF ( + ( - NULLIF ( 77, + MIN( DISTINCT - 22 ) ) ), - COUNT( * ) ) * - 86 + - ( - - 97 ), + 7 ) * + 25 + COUNT( * ) - 81 * 84 + - + 65
----
-5793

skipif mysql # not compatible
query I rowsort label-9055
SELECT COALESCE ( + + NULLIF ( + 43, 71 ), NULLIF ( + ( - NULLIF ( 77, + MIN ( DISTINCT - 22 ) ) ), - COUNT ( * ) ) * - 86 + - ( - - 97 ), + 7 ) * + 25 + COUNT ( * ) - 81 * 84 + - + 65
----
-5793

query I rowsort
SELECT + COALESCE ( 55, - 66, + - 64 * + 59 ) AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9057
SELECT DISTINCT COUNT( * ) * 93 * CASE + 82 WHEN - 82 - - 14 THEN - 1 WHEN + 96 THEN NULL WHEN - COUNT( * ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9057
SELECT DISTINCT COUNT ( * ) * 93 * CASE + 82 WHEN - 82 - - 14 THEN - 1 WHEN + 96 THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9058
SELECT MIN( ALL 71 ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-9058
SELECT MIN ( ALL 71 ) AS col2
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9059
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 71 col0, 25 AS col1
----
NULL
25

skipif mysql # not compatible
query II rowsort label-9059
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 71 col0, 25 AS col1
----
NULL
25

query I rowsort
SELECT + - 41 * + + 9 + 34 - 43 + - - 37
----
-341

query I rowsort
SELECT ALL 39 * 88
----
3432

query I rowsort
SELECT - 79 * - 57 AS col1
----
4503

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT ALL 6 * + COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-9063
SELECT ALL 6 * + COUNT ( * )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9064
SELECT DISTINCT 10 * NULLIF ( 73, - SUM( ALL + 23 ) )
----
730

skipif mysql # not compatible
query I rowsort label-9064
SELECT DISTINCT 10 * NULLIF ( 73, - SUM ( ALL + 23 ) )
----
730

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9065
SELECT ALL - CASE - 13 WHEN - + CAST( 82 AS SIGNED ) THEN + 40 - - 72 WHEN + - 50 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9065
SELECT ALL - CASE - 13 WHEN - + CAST ( 82 AS INTEGER ) THEN + 40 - - 72 WHEN + - 50 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT - - ( - + 57 ) - + 58
----
-115

query I rowsort
SELECT + - 40 + - - 85
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9068
SELECT - ( - COALESCE ( 51, + - ( + 6 ) + + - 73 + COUNT( DISTINCT + 73 ) * + 85 + + + 17 - - + ( + 6 ) + + ( - 80 ) * - - 31 ) ) * + 98 + - + 19
----
4979

skipif mysql # not compatible
query I rowsort label-9068
SELECT - ( - COALESCE ( 51, + - ( + 6 ) + + - 73 + COUNT ( DISTINCT + 73 ) * + 85 + + + 17 - - + ( + 6 ) + + ( - 80 ) * - - 31 ) ) * + 98 + - + 19
----
4979

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9069
SELECT + 39 + + + 71 + + 96 - + 49 + - + COUNT( * ) * + 16 * + 41 * - COALESCE ( - 62, - - 24 * - ( SUM( + 38 ) ) ) - + - 37 * ( + 14 ) * + COUNT( * ) * - SUM( + 11 ) + CAST( - COUNT( DISTINCT + 31 ) AS SIGNED ) DIV - ( - 56 ) AS col0
----
-46213

skipif mysql # not compatible
query I rowsort label-9069
SELECT + 39 + + + 71 + + 96 - + 49 + - + COUNT ( * ) * + 16 * + 41 * - COALESCE ( - 62, - - 24 * - ( SUM ( + 38 ) ) ) - + - 37 * ( + 14 ) * + COUNT ( * ) * - SUM ( + 11 ) + CAST ( - COUNT ( DISTINCT + 31 ) AS INTEGER ) / - ( - 56 ) AS col0
----
-46213

query I rowsort
SELECT ALL + 62 * - 28 + + ( - 22 ) AS col1
----
-1758

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9071
SELECT DISTINCT ( + - ( + 31 ) ) / COALESCE ( 99, - AVG ( ALL + 61 ) ) * - + CAST( NULL AS DECIMAL ) * CAST( 91 AS SIGNED ) + 56 * + 44 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9071
SELECT DISTINCT ( + - ( + 31 ) ) / COALESCE ( 99, - AVG ( ALL + 61 ) ) * - + CAST ( NULL AS REAL ) * CAST ( 91 AS INTEGER ) + 56 * + 44 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9072
SELECT ALL 54 DIV 12 + - 99 col2
----
-95

skipif mysql # not compatible
query I rowsort label-9072
SELECT ALL 54 / 12 + - 99 col2
----
-95

query I rowsort
SELECT - 21 + + 53 AS col2
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9074
SELECT DISTINCT + COALESCE ( + 55, + 70 DIV COUNT( * ) ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-9074
SELECT DISTINCT + COALESCE ( + 55, + 70 / COUNT ( * ) ) AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9075
SELECT DISTINCT COUNT( * ) / COUNT( * ) + 85 - + ( - SUM( DISTINCT + - CASE 11 WHEN 28 THEN NULLIF ( 79, - - 86 + - ( + 97 ) ) END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9075
SELECT DISTINCT COUNT ( * ) / COUNT ( * ) + 85 - + ( - SUM ( DISTINCT + - CASE 11 WHEN 28 THEN NULLIF ( 79, - - 86 + - ( + 97 ) ) END ) )
----
NULL

query I rowsort
SELECT ALL + ( + 26 ) AS col1
----
26

query I rowsort
SELECT - 3 + + 61
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9078
SELECT ALL COUNT( + 60 ) * + 59 + 12 + 34 * 19 + COUNT( * ) + 69 DIV + - COUNT( * ) AS col0
----
649

skipif mysql # not compatible
query I rowsort label-9078
SELECT ALL COUNT ( + 60 ) * + 59 + 12 + 34 * 19 + COUNT ( * ) + 69 / + - COUNT ( * ) AS col0
----
649

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9079
SELECT DISTINCT + 15 DIV COALESCE ( COUNT( * ), - ( - 58 ) ) * - NULLIF ( 69, - 75 * 15 ) + COUNT( * )
----
-1034

skipif mysql # not compatible
query I rowsort label-9079
SELECT DISTINCT + 15 / COALESCE ( COUNT ( * ), - ( - 58 ) ) * - NULLIF ( 69, - 75 * 15 ) + COUNT ( * )
----
-1034

onlyif mysql # aggregate syntax: 
query I rowsort label-9080
SELECT ALL 67 * SUM( + 85 ) * 67 * 42 * + 94 AS col0
----
1506418620

skipif mysql # not compatible
query I rowsort label-9080
SELECT ALL 67 * SUM ( + 85 ) * 67 * 42 * + 94 AS col0
----
1506418620

query I rowsort
SELECT ALL ( + 4 ) * - - 33 col2
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-9082
SELECT ALL + 97 * + + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-9082
SELECT ALL + 97 * + + COUNT ( * )
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9083
SELECT DISTINCT - COALESCE ( + - 51, + NULLIF ( + + 75, + 88 + - MAX( 52 ) ) DIV + MAX( ALL + 84 ) )
----
51

skipif mysql # not compatible
query I rowsort label-9083
SELECT DISTINCT - COALESCE ( + - 51, + NULLIF ( + + 75, + 88 + - MAX ( 52 ) ) / + MAX ( ALL + 84 ) )
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-9084
SELECT + 54 AS col2, - 63 * COUNT( * )
----
54
-63

skipif mysql # not compatible
query II rowsort label-9084
SELECT + 54 AS col2, - 63 * COUNT ( * )
----
54
-63

query I rowsort
SELECT ALL 31 * 48
----
1488

query II rowsort
SELECT 14, 33 AS col1
----
14
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9087
SELECT CASE + + 51 WHEN 61 * 64 THEN NULL ELSE + COUNT( * ) END * + COUNT( + CAST( NULL AS SIGNED ) ) + + + 45 * + 98 AS col0
----
4410

skipif mysql # not compatible
query I rowsort label-9087
SELECT CASE + + 51 WHEN 61 * 64 THEN NULL ELSE + COUNT ( * ) END * + COUNT ( + CAST ( NULL AS INTEGER ) ) + + + 45 * + 98 AS col0
----
4410

onlyif mysql # aggregate syntax: 
query I rowsort label-9088
SELECT - COUNT( DISTINCT + + NULLIF ( ( 74 ), 93 ) ) * - + 61 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-9088
SELECT - COUNT ( DISTINCT + + NULLIF ( ( 74 ), 93 ) ) * - + 61 AS col0
----
61

query I rowsort
SELECT 10 * + + ( 28 )
----
280

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9090
SELECT ALL + - COALESCE ( + 66, + COALESCE ( + 66, - 71 + - 14 + + 61 DIV + 64 + 21 * COUNT( * ), 71 - + + CASE - COUNT( * ) WHEN + 29 THEN - - 41 ELSE + 73 END ) + + + 22 ) * - 96, COUNT( * ) col2
----
6336
1

skipif mysql # not compatible
query II rowsort label-9090
SELECT ALL + - COALESCE ( + 66, + COALESCE ( + 66, - 71 + - 14 + + 61 / + 64 + 21 * COUNT ( * ), 71 - + + CASE - COUNT ( * ) WHEN + 29 THEN - - 41 ELSE + 73 END ) + + + 22 ) * - 96, COUNT ( * ) col2
----
6336
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9091
SELECT + 20 + + MAX( + 82 ) AS col2, + 24
----
102
24

skipif mysql # not compatible
query II rowsort label-9091
SELECT + 20 + + MAX ( + 82 ) AS col2, + 24
----
102
24

query II rowsort
SELECT DISTINCT 58, 18 AS col2
----
58
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9093
SELECT DISTINCT + 17 AS col2, MIN( - CAST( - 46 AS SIGNED ) )
----
17
46

skipif mysql # not compatible
query II rowsort label-9093
SELECT DISTINCT + 17 AS col2, MIN ( - CAST ( - 46 AS INTEGER ) )
----
17
46

query I rowsort
SELECT 20 + - 63
----
-43

query I rowsort
SELECT - NULLIF ( + - 20, - 44 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9096
SELECT - MAX( ALL + - 8 ) + 91 * + 61 + - 2 col0
----
5557

skipif mysql # not compatible
query I rowsort label-9096
SELECT - MAX ( ALL + - 8 ) + 91 * + 61 + - 2 col0
----
5557

onlyif mysql # aggregate syntax: 
query I rowsort label-9097
SELECT - 70 + - 99 - - + SUM( DISTINCT 83 ) * - COUNT( * ) AS col0
----
-252

skipif mysql # not compatible
query I rowsort label-9097
SELECT - 70 + - 99 - - + SUM ( DISTINCT 83 ) * - COUNT ( * ) AS col0
----
-252

onlyif mysql # DIV for integer division: 
query I rowsort label-9098
SELECT 58 + 52 DIV - 38
----
57

skipif mysql # not compatible
query I rowsort label-9098
SELECT 58 + 52 / - 38
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-9099
SELECT - 97 DIV 63
----
-1

skipif mysql # not compatible
query I rowsort label-9099
SELECT - 97 / 63
----
-1

query I rowsort
SELECT ALL 67 + + 20 AS col0
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9101
SELECT - COUNT( * ) * 49 DIV + ( ( + 63 ) ) - + 1 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9101
SELECT - COUNT ( * ) * 49 / + ( ( + 63 ) ) - + 1 AS col0
----
-1

query I rowsort
SELECT ALL - 97 + - + 18 AS col1
----
-115

query II rowsort
SELECT 50 AS col0, 55 AS col2
----
50
55

onlyif mysql # aggregate syntax: 
query II rowsort label-9104
SELECT ALL + 25 AS col2, 44 * + SUM( ALL 49 ) * + + 92 * - 49 + + 20
----
25
-9719228

skipif mysql # not compatible
query II rowsort label-9104
SELECT ALL + 25 AS col2, 44 * + SUM ( ALL 49 ) * + + 92 * - 49 + + 20
----
25
-9719228

query I rowsort
SELECT ALL - + 81 + 81 * - - 48
----
3807

query I rowsort
SELECT 64 * - 61
----
-3904

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9107
SELECT NULLIF ( + + 43, + + 67 * - 4 - 73 ) * COALESCE ( CASE - + 18 WHEN + 9 THEN NULL ELSE 2 END, - CAST( NULL AS SIGNED ), - 20 + - 25 )
----
86

skipif mysql # not compatible
query I rowsort label-9107
SELECT NULLIF ( + + 43, + + 67 * - 4 - 73 ) * COALESCE ( CASE - + 18 WHEN + 9 THEN NULL ELSE 2 END, - CAST ( NULL AS INTEGER ), - 20 + - 25 )
----
86

query I rowsort
SELECT DISTINCT 45 + - 58 AS col2
----
-13

query I rowsort
SELECT ALL 3 + + 49 + + + ( + 16 ) * + 84 AS col0
----
1396

query I rowsort
SELECT 92 * + 64 col0
----
5888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9111
SELECT ( CASE COUNT( * ) WHEN + CAST( 20 AS DECIMAL ) * + CAST( NULL AS SIGNED ) THEN COUNT( * ) * + + 12 + + 2 * - - 62 + + ( - 79 ) WHEN MIN( + + 95 ) * - NULLIF ( + 5, - - 99 ) + 27 THEN 63 ELSE + 55 END ) * - COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-9111
SELECT ( CASE COUNT ( * ) WHEN + CAST ( 20 AS REAL ) * + CAST ( NULL AS INTEGER ) THEN COUNT ( * ) * + + 12 + + 2 * - - 62 + + ( - 79 ) WHEN MIN ( + + 95 ) * - NULLIF ( + 5, - - 99 ) + 27 THEN 63 ELSE + 55 END ) * - COUNT ( * )
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9112
SELECT ALL + COUNT( * ) * + 47 DIV + 57 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9112
SELECT ALL + COUNT ( * ) * + 47 / + 57 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9113
SELECT + 74 * + 7 / + COUNT( * ) + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9113
SELECT + 74 * + 7 / + COUNT ( * ) + ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT + 10 * 33 AS col0
----
330

query I rowsort
SELECT ALL + 1 * + 79 AS col1
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9116
SELECT ALL 61 * 1 AS col0, + ( - + CAST( NULL AS SIGNED ) )
----
61
NULL

skipif mysql # not compatible
query II rowsort label-9116
SELECT ALL 61 * 1 AS col0, + ( - + CAST ( NULL AS INTEGER ) )
----
61
NULL

query II rowsort
SELECT ALL - 38 - - 70 AS col1, ( + 46 )
----
32
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9118
SELECT ALL - MIN( + - ( 33 ) ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-9118
SELECT ALL - MIN ( + - ( 33 ) ) AS col0
----
33

query I rowsort
SELECT 4 + - 14 * + - 52
----
732

query I rowsort
SELECT DISTINCT - 56 - + - 84
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9121
SELECT - 36 * CASE - 98 WHEN + - NULLIF ( - 80, COUNT( * ) + - ( - COUNT( + 41 ) ) ) THEN - 93 + - 6 ELSE + - 71 END * COUNT( * ) + + COUNT( * ) * - 56
----
2500

skipif mysql # not compatible
query I rowsort label-9121
SELECT - 36 * CASE - 98 WHEN + - NULLIF ( - 80, COUNT ( * ) + - ( - COUNT ( + 41 ) ) ) THEN - 93 + - 6 ELSE + - 71 END * COUNT ( * ) + + COUNT ( * ) * - 56
----
2500

query I rowsort
SELECT 17 - 26 * - 27
----
719

onlyif mysql # aggregate syntax: 
query I rowsort label-9123
SELECT ALL - COUNT( 27 )
----
-1

skipif mysql # not compatible
query I rowsort label-9123
SELECT ALL - COUNT ( 27 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9124
SELECT 97 DIV - 95 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9124
SELECT 97 / - 95 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9125
SELECT ALL - 64 * - COUNT( * ) * 95 AS col0
----
6080

skipif mysql # not compatible
query I rowsort label-9125
SELECT ALL - 64 * - COUNT ( * ) * 95 AS col0
----
6080

query II rowsort
SELECT - 71 + 6, 46 * + + ( 18 ) AS col0
----
-65
828

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9127
SELECT 37 DIV + CAST( - 7 AS SIGNED )
----
-5

skipif mysql # not compatible
query I rowsort label-9127
SELECT 37 / + CAST ( - 7 AS INTEGER )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT - ( - 46 ) * + - SUM( ALL - + 60 ) + + 64 AS col1
----
2824

skipif mysql # not compatible
query I rowsort label-9128
SELECT - ( - 46 ) * + - SUM ( ALL - + 60 ) + + 64 AS col1
----
2824

query I rowsort
SELECT 83 * - - 32 AS col0
----
2656

query I rowsort
SELECT 27 * - 61 col1
----
-1647

query I rowsort
SELECT 14 - 87 AS col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT + NULLIF ( COUNT( * ), + - 13 - - 15 + - + 75 * + 59 / 19 + 76 ) - CASE - COUNT( * ) WHEN 50 THEN 26 ELSE - 86 END AS col1
----
87

skipif mysql # not compatible
query I rowsort label-9132
SELECT + NULLIF ( COUNT ( * ), + - 13 - - 15 + - + 75 * + 59 / 19 + 76 ) - CASE - COUNT ( * ) WHEN 50 THEN 26 ELSE - 86 END AS col1
----
87

query I rowsort
SELECT ALL - 26 + - 98 - - 57 AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9134
SELECT - MIN( - 34 )
----
34

skipif mysql # not compatible
query I rowsort label-9134
SELECT - MIN ( - 34 )
----
34

query I rowsort
SELECT 86 + - - 13 + - + 86
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9136
SELECT - 70 - + COUNT( * ) * - + COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-9136
SELECT - 70 - + COUNT ( * ) * - + COUNT ( * )
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9137
SELECT COUNT( * ) + + 31 * - COALESCE ( + COUNT( * ), + 8 DIV + - 53 )
----
-30

skipif mysql # not compatible
query I rowsort label-9137
SELECT COUNT ( * ) + + 31 * - COALESCE ( + COUNT ( * ), + 8 / + - 53 )
----
-30

query I rowsort
SELECT ALL 4 + + 12 AS col2
----
16

query I rowsort
SELECT DISTINCT 62 * + 1
----
62

query I rowsort
SELECT 63 + + 89 * + + 79 * - 45 + 66 + - + 59
----
-316325

query I rowsort
SELECT 98 * - 54
----
-5292

query I rowsort
SELECT ALL 97 * + 6 AS col1
----
582

query I rowsort
SELECT + 70 * + + 63 + + + 70 AS col0
----
4480

query I rowsort
SELECT DISTINCT 26 * + 44
----
1144

query I rowsort
SELECT + 56 * + 81
----
4536

query I rowsort
SELECT ALL 61 * - 49
----
-2989

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9147
SELECT + CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9147
SELECT + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + ( 17 ) + + 61
----
78

query I rowsort
SELECT - 25 * + - 60 AS col0
----
1500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9150
SELECT + CAST( 13 AS SIGNED ) * - 47 AS col2
----
-611

skipif mysql # not compatible
query I rowsort label-9150
SELECT + CAST ( 13 AS INTEGER ) * - 47 AS col2
----
-611

onlyif mysql # aggregate syntax: 
query II rowsort label-9151
SELECT + 94 * 6 + - 95 AS col1, 42 * + COUNT( * )
----
469
42

skipif mysql # not compatible
query II rowsort label-9151
SELECT + 94 * 6 + - 95 AS col1, 42 * + COUNT ( * )
----
469
42

onlyif mysql # aggregate syntax: 
query II rowsort label-9152
SELECT MIN( DISTINCT + - COALESCE ( 5, - 75, - 17 * + ( - 71 ) * + 1 + COALESCE ( - 76, + + 37 + + 92 * - 87 * - - ( - - 24 ) ) ) ) AS col0, - 99 AS col1
----
-5
-99

skipif mysql # not compatible
query II rowsort label-9152
SELECT MIN ( DISTINCT + - COALESCE ( 5, - 75, - 17 * + ( - 71 ) * + 1 + COALESCE ( - 76, + + 37 + + 92 * - 87 * - - ( - - 24 ) ) ) ) AS col0, - 99 AS col1
----
-5
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9153
SELECT + 89 + - - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9153
SELECT + 89 + - - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT + NULLIF ( + - 41, + 59 * COUNT( * ) )
----
-41

skipif mysql # not compatible
query I rowsort label-9154
SELECT + NULLIF ( + - 41, + 59 * COUNT ( * ) )
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9155
SELECT + 66 * MAX( ALL + - CAST( NULL AS SIGNED ) ) / + SUM( DISTINCT + - 46 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9155
SELECT + 66 * MAX ( ALL + - CAST ( NULL AS INTEGER ) ) / + SUM ( DISTINCT + - 46 )
----
NULL

query I rowsort
SELECT ALL - + 56 * + - 14
----
784

query II rowsort
SELECT ALL + 83, 34 AS col0
----
83
34

query I rowsort
SELECT DISTINCT - + 31 * 23 AS col0
----
-713

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9159
SELECT DISTINCT - - 10 * COALESCE ( 95, - NULLIF ( 48, - + ( + 9 ) * + + ( - 8 ) ) * - + CASE 41 WHEN + - 95 THEN - 48 END DIV 61 DIV 17 + 29 + + 66 * - ( + 41 ) * - CASE 19 WHEN + - 20 - CAST( - - SUM( DISTINCT - - 92 ) AS SIGNED ) THEN NULL ELSE + AVG ( - - ( + 32 ) ) END DIV 73 + - 98 * MAX( ALL + 98 ) DIV COUNT( * ) * + - 81 ) + - 84 + + 98, 19 col2
----
964
19

skipif mysql # not compatible
query II rowsort label-9159
SELECT DISTINCT - - 10 * COALESCE ( 95, - NULLIF ( 48, - + ( + 9 ) * + + ( - 8 ) ) * - + CASE 41 WHEN + - 95 THEN - 48 END / 61 / 17 + 29 + + 66 * - ( + 41 ) * - CASE 19 WHEN + - 20 - CAST ( - - SUM ( DISTINCT - - 92 ) AS INTEGER ) THEN NULL ELSE + AVG ( - - ( + 32 ) ) END / 73 + - 98 * MAX ( ALL + 98 ) / COUNT ( * ) * + - 81 ) + - 84 + + 98, 19 col2
----
964
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9160
SELECT - - COUNT( ALL 14 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9160
SELECT - - COUNT ( ALL 14 ) AS col1
----
1

query I rowsort
SELECT ALL - - 89 + - 67 AS col1
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-9162
SELECT - - 61 + - - 9 DIV - + 3 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-9162
SELECT - - 61 + - - 9 / - + 3 AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9163
SELECT ALL COUNT( DISTINCT - 40 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9163
SELECT ALL COUNT ( DISTINCT - 40 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9164
SELECT ALL - COUNT( ALL + 33 ) + + 33, 48 AS col1
----
32
48

skipif mysql # not compatible
query II rowsort label-9164
SELECT ALL - COUNT ( ALL + 33 ) + + 33, 48 AS col1
----
32
48

query I rowsort
SELECT - 27 * + - 94
----
2538

onlyif mysql # aggregate syntax: 
query I rowsort label-9166
SELECT DISTINCT - + COUNT( ALL + + ( 88 ) ) * - + 18 * - 10 * + 17 AS col0
----
-3060

skipif mysql # not compatible
query I rowsort label-9166
SELECT DISTINCT - + COUNT ( ALL + + ( 88 ) ) * - + 18 * - 10 * + 17 AS col0
----
-3060

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9167
SELECT DISTINCT - + 47 + + 53 * - 36 AS col2, + CAST( NULL AS SIGNED ) - + + 16
----
-1955
NULL

skipif mysql # not compatible
query II rowsort label-9167
SELECT DISTINCT - + 47 + + 53 * - 36 AS col2, + CAST ( NULL AS INTEGER ) - + + 16
----
-1955
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9168
SELECT - 85 DIV + 84
----
-1

skipif mysql # not compatible
query I rowsort label-9168
SELECT - 85 / + 84
----
-1

query I rowsort
SELECT - - NULLIF ( + 61, + 85 ) + 83 + + 13
----
157

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9170
SELECT DISTINCT - 28 * + NULLIF ( NULLIF ( + CAST( + CASE + 28 WHEN - CAST( + 20 AS DECIMAL ) THEN NULL ELSE - - 10 END AS SIGNED ), 97 ), - - 83 * - 11 )
----
-280

skipif mysql # not compatible
query I rowsort label-9170
SELECT DISTINCT - 28 * + NULLIF ( NULLIF ( + CAST ( + CASE + 28 WHEN - CAST ( + 20 AS REAL ) THEN NULL ELSE - - 10 END AS INTEGER ), 97 ), - - 83 * - 11 )
----
-280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9171
SELECT ALL ( CAST( + MAX( ALL + 70 ) AS SIGNED ) )
----
70

skipif mysql # not compatible
query I rowsort label-9171
SELECT ALL ( CAST ( + MAX ( ALL + 70 ) AS INTEGER ) )
----
70

query I rowsort
SELECT DISTINCT ( - 72 ) AS col2
----
-72

query I rowsort
SELECT DISTINCT - 28 * - 35
----
980

query II rowsort
SELECT ALL 73 AS col0, 93 * + 8 col2
----
73
744

query II rowsort
SELECT 51 col0, + 22 * - 11 col2
----
51
-242

onlyif mysql # aggregate syntax: 
query I rowsort label-9176
SELECT DISTINCT + 56 - - - COUNT( * ) + - + 8 * + ( 45 ) - - COUNT( * ) + - 42 + - + 43 AS col2
----
-389

skipif mysql # not compatible
query I rowsort label-9176
SELECT DISTINCT + 56 - - - COUNT ( * ) + - + 8 * + ( 45 ) - - COUNT ( * ) + - 42 + - + 43 AS col2
----
-389

query I rowsort
SELECT - 44 * + 98
----
-4312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9178
SELECT - ( 72 ) - - - ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9178
SELECT - ( 72 ) - - - ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT + CASE + 88 WHEN - 76 THEN NULL WHEN + COUNT( * ) THEN - - MIN( DISTINCT + + 11 ) + + CASE + SUM( DISTINCT - COALESCE ( 90, 98 ) ) WHEN - + 57 THEN + 85 + - + COUNT( * ) END WHEN 98 THEN + 62 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9179
SELECT + CASE + 88 WHEN - 76 THEN NULL WHEN + COUNT ( * ) THEN - - MIN ( DISTINCT + + 11 ) + + CASE + SUM ( DISTINCT - COALESCE ( 90, 98 ) ) WHEN - + 57 THEN + 85 + - + COUNT ( * ) END WHEN 98 THEN + 62 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9180
SELECT DISTINCT 73 DIV - - 86 * - 40 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9180
SELECT DISTINCT 73 / - - 86 * - 40 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9181
SELECT - MAX( DISTINCT - 51 ) DIV COUNT( + + 19 ) - + - 21
----
72

skipif mysql # not compatible
query I rowsort label-9181
SELECT - MAX ( DISTINCT - 51 ) / COUNT ( + + 19 ) - + - 21
----
72

query I rowsort
SELECT + 2 * - 73
----
-146

query I rowsort
SELECT ALL 8 * - 34 * - 43
----
11696

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9184
SELECT CAST( - 86 AS SIGNED )
----
-86

skipif mysql # not compatible
query I rowsort label-9184
SELECT CAST ( - 86 AS INTEGER )
----
-86

query I rowsort
SELECT + 49 - - 38 col2
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-9186
SELECT + 42 * 52 DIV - 6 AS col1
----
-364

skipif mysql # not compatible
query I rowsort label-9186
SELECT + 42 * 52 / - 6 AS col1
----
-364

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9187
SELECT ALL + 30 * + 48 * 10 + - 4 * - 50 + - + CAST( NULL AS DECIMAL ) * + CASE - 91 WHEN + COUNT( * ) / + 57 THEN NULL WHEN + 1 * ( - COUNT( * ) ) THEN 6 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9187
SELECT ALL + 30 * + 48 * 10 + - 4 * - 50 + - + CAST ( NULL AS REAL ) * + CASE - 91 WHEN + COUNT ( * ) / + 57 THEN NULL WHEN + 1 * ( - COUNT ( * ) ) THEN 6 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + + ( + + 32 ) AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9189
SELECT 67 * - - 20 - + 70 * + ( + MAX( - 80 ) ) * - ( - COALESCE ( + - COUNT( * ), 97 * + + ( + 23 ) + - 71 ) ) + - NULLIF ( + - 89, + 95 + - 37 + + SUM( ALL + 95 ) ) AS col1
----
-4171

skipif mysql # not compatible
query I rowsort label-9189
SELECT 67 * - - 20 - + 70 * + ( + MAX ( - 80 ) ) * - ( - COALESCE ( + - COUNT ( * ), 97 * + + ( + 23 ) + - 71 ) ) + - NULLIF ( + - 89, + 95 + - 37 + + SUM ( ALL + 95 ) ) AS col1
----
-4171

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9190
SELECT ALL + + 83 AS col0, - CAST( - ( + - 34 ) AS SIGNED ) + + 24 col0
----
83
-10

skipif mysql # not compatible
query II rowsort label-9190
SELECT ALL + + 83 AS col0, - CAST ( - ( + - 34 ) AS INTEGER ) + + 24 col0
----
83
-10

query I rowsort
SELECT DISTINCT + - 35 * - 44 + 48 * - ( + 20 ) * 63 AS col0
----
-58940

onlyif mysql # aggregate syntax: 
query II rowsort label-9192
SELECT + COUNT( * ) AS col1, + 31
----
1
31

skipif mysql # not compatible
query II rowsort label-9192
SELECT + COUNT ( * ) AS col1, + 31
----
1
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT DISTINCT + 58 * + 24 + - COUNT( * )
----
1391

skipif mysql # not compatible
query I rowsort label-9193
SELECT DISTINCT + 58 * + 24 + - COUNT ( * )
----
1391

query II rowsort
SELECT ALL + - 50, + 73 AS col0
----
-50
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9195
SELECT + 89 * + COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-9195
SELECT + 89 * + COUNT ( * )
----
89

query I rowsort
SELECT DISTINCT - 79 * 68 col0
----
-5372

onlyif mysql # aggregate syntax: 
query II rowsort label-9197
SELECT ALL + - MIN( DISTINCT 64 ) * + 67 + + MIN( ALL - 55 ) + - 89 + + 25 AS col1, - 52 AS col0
----
-4407
-52

skipif mysql # not compatible
query II rowsort label-9197
SELECT ALL + - MIN ( DISTINCT 64 ) * + 67 + + MIN ( ALL - 55 ) + - 89 + + 25 AS col1, - 52 AS col0
----
-4407
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-9198
SELECT ALL + 0 * - 78 - + + 1 DIV 57 + - 53 AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-9198
SELECT ALL + 0 * - 78 - + + 1 / 57 + - 53 AS col1
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-9199
SELECT - - 24 * - + COUNT( * ), MAX( DISTINCT + 4 ) + - 60 AS col2
----
-24
-56

skipif mysql # not compatible
query II rowsort label-9199
SELECT - - 24 * - + COUNT ( * ), MAX ( DISTINCT + 4 ) + - 60 AS col2
----
-24
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9200
SELECT - COUNT( + ( + 42 ) ) * NULLIF ( - 75, ( - + 59 ) ) + - + COALESCE ( - 60, - 99 )
----
135

skipif mysql # not compatible
query I rowsort label-9200
SELECT - COUNT ( + ( + 42 ) ) * NULLIF ( - 75, ( - + 59 ) ) + - + COALESCE ( - 60, - 99 )
----
135

query I rowsort
SELECT ALL - 85 * - - NULLIF ( 92, 46 * - 63 )
----
-7820

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9202
SELECT CAST( - + 91 AS SIGNED )
----
-91

skipif mysql # not compatible
query I rowsort label-9202
SELECT CAST ( - + 91 AS INTEGER )
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-9203
SELECT - - COUNT( * ) col0, - 58
----
1
-58

skipif mysql # not compatible
query II rowsort label-9203
SELECT - - COUNT ( * ) col0, - 58
----
1
-58

query II rowsort
SELECT + 92 * + 52 AS col2, 15 * + + 3 AS col1
----
4784
45

onlyif mysql # aggregate syntax: 
query II rowsort label-9205
SELECT - MIN( DISTINCT + + 4 ) * - COUNT( * ) + + 68, + 92 * MIN( - 82 ) AS col2
----
72
-7544

skipif mysql # not compatible
query II rowsort label-9205
SELECT - MIN ( DISTINCT + + 4 ) * - COUNT ( * ) + + 68, + 92 * MIN ( - 82 ) AS col2
----
72
-7544

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9206
SELECT ALL - 2, 57 + + + CAST( NULL AS SIGNED ) AS col1
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-9206
SELECT ALL - 2, 57 + + + CAST ( NULL AS INTEGER ) AS col1
----
-2
NULL

query I rowsort
SELECT - + 89 col1
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9208
SELECT ALL + MIN( DISTINCT + 68 ) DIV - 36 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9208
SELECT ALL + MIN ( DISTINCT + 68 ) / - 36 AS col0
----
-1

query I rowsort
SELECT 79 * - + 34 AS col1
----
-2686

query I rowsort
SELECT 82 + + 90 AS col2
----
172

query I rowsort
SELECT 92 * 39 * - + 9 AS col0
----
-32292

query I rowsort
SELECT ALL + 42 * + - 35 * 58 AS col1
----
-85260

onlyif mysql # aggregate syntax: 
query II rowsort label-9213
SELECT 98 - + MAX( - 91 ) AS col0, 58 * - 41 + + 53
----
189
-2325

skipif mysql # not compatible
query II rowsort label-9213
SELECT 98 - + MAX ( - 91 ) AS col0, 58 * - 41 + + 53
----
189
-2325

onlyif mysql # DIV for integer division: 
query I rowsort label-9214
SELECT ALL + 70 DIV - + 31 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-9214
SELECT ALL + 70 / - + 31 AS col0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9215
SELECT CAST( - 8 AS SIGNED ) * 95 + - - 33
----
-727

skipif mysql # not compatible
query I rowsort label-9215
SELECT CAST ( - 8 AS INTEGER ) * 95 + - - 33
----
-727

query I rowsort
SELECT 72 + - + 82
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9217
SELECT 78 * + COALESCE ( + + 85, + 16 - - ( 27 ) / - 41, - MIN( - 30 ) + CAST( NULL AS SIGNED ) ) * - + CASE CASE + 14 WHEN - + CASE CAST( NULL AS SIGNED ) WHEN - 14 THEN + + CAST( NULL AS SIGNED ) + 77 ELSE NULL END * - 4 THEN 34 END WHEN + 24 * + CASE - + 12 WHEN 2 + 45 - + + COUNT( * ) THEN NULL WHEN COUNT( * ) THEN + NULLIF ( - - 12, + 2 * + - 89 * 85 - MIN( - + 98 ) + - MIN( ALL - 28 ) - + + 40 * + CAST( COUNT( * ) AS DECIMAL ) - + 95 ) END + - + 51 THEN - NULLIF ( + 20, - CAST( NULL AS SIGNED ) * 69 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9217
SELECT 78 * + COALESCE ( + + 85, + 16 - - ( 27 ) / - 41, - MIN ( - 30 ) + CAST ( NULL AS INTEGER ) ) * - + CASE CASE + 14 WHEN - + CASE CAST ( NULL AS INTEGER ) WHEN - 14 THEN + + CAST ( NULL AS INTEGER ) + 77 ELSE NULL END * - 4 THEN 34 END WHEN + 24 * + CASE - + 12 WHEN 2 + 45 - + + COUNT ( * ) THEN NULL WHEN COUNT ( * ) THEN + NULLIF ( - - 12, + 2 * + - 89 * 85 - MIN ( - + 98 ) + - MIN ( ALL - 28 ) - + + 40 * + CAST ( COUNT ( * ) AS REAL ) - + 95 ) END + - + 51 THEN - NULLIF ( + 20, - CAST ( NULL AS INTEGER ) * 69 ) END
----
NULL

query II rowsort
SELECT 82 + + + 34, 74 AS col0
----
116
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9219
SELECT COUNT( * ) - 79 - 69 DIV - 69
----
-77

skipif mysql # not compatible
query I rowsort label-9219
SELECT COUNT ( * ) - 79 - 69 / - 69
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9220
SELECT NULLIF ( + MIN( ALL + 79 ), + 32 - - + SUM( - 52 ) ) DIV - 97
----
0

skipif mysql # not compatible
query I rowsort label-9220
SELECT NULLIF ( + MIN ( ALL + 79 ), + 32 - - + SUM ( - 52 ) ) / - 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT 98 + CASE WHEN NOT 80 IN ( + COUNT( * ), CASE 59 WHEN - - 78 * - - 35 THEN - 99 * - 17 * 7 ELSE MIN( - 6 ) END - + 26 - - + 16, 69 + - 37 * 34, 96 + - 69 * - 13, + + 82 ) THEN 11 + 69 + + 37 * 93 + - + 10 END
----
3609

skipif mysql # not compatible
query I rowsort label-9221
SELECT 98 + CASE WHEN NOT 80 IN ( + COUNT ( * ), CASE 59 WHEN - - 78 * - - 35 THEN - 99 * - 17 * 7 ELSE MIN ( - 6 ) END - + 26 - - + 16, 69 + - 37 * 34, 96 + - 69 * - 13, + + 82 ) THEN 11 + 69 + + 37 * 93 + - + 10 END
----
3609

onlyif mysql # aggregate syntax: 
query I rowsort label-9222
SELECT ALL - 7 * - COUNT( * ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-9222
SELECT ALL - 7 * - COUNT ( * ) AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9223
SELECT DISTINCT + 52 + 99 / - 59 * - - 84 - - CASE + ( - + 7 ) WHEN - COUNT( * ) THEN 45 ELSE NULL END * + 91 * + MIN( ALL - 31 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9223
SELECT DISTINCT + 52 + 99 / - 59 * - - 84 - - CASE + ( - + 7 ) WHEN - COUNT ( * ) THEN 45 ELSE NULL END * + 91 * + MIN ( ALL - 31 )
----
NULL

query I rowsort
SELECT ALL - 80 + - + 83 * + 78
----
-6554

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9225
SELECT - COUNT( * ) DIV - 60 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9225
SELECT - COUNT ( * ) / - 60 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9226
SELECT ALL 77 + - 33 DIV + 44
----
77

skipif mysql # not compatible
query I rowsort label-9226
SELECT ALL 77 + - 33 / + 44
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9227
SELECT 94 DIV + 80 - + 52 + + ( + COUNT( * ) ) + NULLIF ( - COUNT( * ), 58 )
----
-51

skipif mysql # not compatible
query I rowsort label-9227
SELECT 94 / + 80 - + 52 + + ( + COUNT ( * ) ) + NULLIF ( - COUNT ( * ), 58 )
----
-51

query I rowsort
SELECT - 64 * 70
----
-4480

query I rowsort
SELECT DISTINCT - + COALESCE ( + 74, + ( + 54 ) )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9230
SELECT DISTINCT + 8 + - 99 * - COUNT( * ) * - ( + 45 ) * - COUNT( * ) * MAX( ALL 86 ) AS col0
----
383138

skipif mysql # not compatible
query I rowsort label-9230
SELECT DISTINCT + 8 + - 99 * - COUNT ( * ) * - ( + 45 ) * - COUNT ( * ) * MAX ( ALL 86 ) AS col0
----
383138

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT DISTINCT + CASE + SUM( - 43 ) WHEN - 48 THEN NULL ELSE 67 END - + 32 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-9231
SELECT DISTINCT + CASE + SUM ( - 43 ) WHEN - 48 THEN NULL ELSE 67 END - + 32 AS col0
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9232
SELECT - 23 + + COUNT( * ) + + - 16 DIV 35 - + 98 AS col2
----
-120

skipif mysql # not compatible
query I rowsort label-9232
SELECT - 23 + + COUNT ( * ) + + - 16 / 35 - + 98 AS col2
----
-120

query II rowsort
SELECT 38 * - 31, + 47 AS col1
----
-1178
47

onlyif mysql # DIV for integer division: 
query I rowsort label-9234
SELECT ALL 6 DIV - + 39 * - 99
----
0

skipif mysql # not compatible
query I rowsort label-9234
SELECT ALL 6 / - + 39 * - 99
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9235
SELECT 68 + ( - - 24 ) DIV 74
----
68

skipif mysql # not compatible
query I rowsort label-9235
SELECT 68 + ( - - 24 ) / 74
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9236
SELECT + 34 * - + 92 * 57 + - + ( ( MIN( DISTINCT COALESCE ( 4, - 72 * + 56 - - 65 ) ) ) ) col0
----
-178300

skipif mysql # not compatible
query I rowsort label-9236
SELECT + 34 * - + 92 * 57 + - + ( ( MIN ( DISTINCT COALESCE ( 4, - 72 * + 56 - - 65 ) ) ) ) col0
----
-178300

query I rowsort
SELECT DISTINCT - ( 54 )
----
-54

query I rowsort
SELECT 61 + 48
----
109

query I rowsort
SELECT ALL + 83 * 78 * + 44 * - 33 col2
----
-9400248

onlyif mysql # aggregate syntax: 
query I rowsort label-9240
SELECT CASE - 18 WHEN - ( - 88 ) THEN + 77 + + COUNT( ALL 27 ) WHEN + 15 - + - 13 THEN NULL ELSE NULL END + + ( + 7 ) - 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9240
SELECT CASE - 18 WHEN - ( - 88 ) THEN + 77 + + COUNT ( ALL 27 ) WHEN + 15 - + - 13 THEN NULL ELSE NULL END + + ( + 7 ) - 53 AS col1
----
NULL

query I rowsort
SELECT 98 + 33 + + 9 - + 95 AS col1
----
45

query I rowsort
SELECT ALL 97 * + + 81 AS col0
----
7857

query I rowsort
SELECT 8 + + 41 AS col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT DISTINCT COUNT( * ) + + 75 * - COUNT( ALL + 74 )
----
-74

skipif mysql # not compatible
query I rowsort label-9244
SELECT DISTINCT COUNT ( * ) + + 75 * - COUNT ( ALL + 74 )
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9245
SELECT - 27 col1, + 22 * - 20 * CAST( - 66 AS SIGNED )
----
-27
29040

skipif mysql # not compatible
query II rowsort label-9245
SELECT - 27 col1, + 22 * - 20 * CAST ( - 66 AS INTEGER )
----
-27
29040

onlyif mysql # aggregate syntax: 
query I rowsort label-9246
SELECT ALL + COUNT( * ) + - + 56 + 19 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-9246
SELECT ALL + COUNT ( * ) + - + 56 + 19 AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT - COUNT( ALL - 85 )
----
-1

skipif mysql # not compatible
query I rowsort label-9247
SELECT - COUNT ( ALL - 85 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT DISTINCT SUM( DISTINCT 45 ) + + + 40 * + - 24 + + 13
----
-902

skipif mysql # not compatible
query I rowsort label-9248
SELECT DISTINCT SUM ( DISTINCT 45 ) + + + 40 * + - 24 + + 13
----
-902

query II rowsort
SELECT ALL 38 AS col2, 55 AS col1
----
38
55

query I rowsort
SELECT DISTINCT + 21 + + 20
----
41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9251
SELECT 17 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9251
SELECT 17 * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9252
SELECT ALL NULLIF ( + MIN( ALL NULLIF ( - 88, 73 + + - 44 ) ), - 65 * + CASE + - COALESCE ( - COUNT( * ), + 35 * 83 + 47 ) WHEN - ( - - 71 ) THEN NULL WHEN - + 3 THEN - - 89 * - 18 ELSE NULL END * + 83 ) + - - 17
----
-71

skipif mysql # not compatible
query I rowsort label-9252
SELECT ALL NULLIF ( + MIN ( ALL NULLIF ( - 88, 73 + + - 44 ) ), - 65 * + CASE + - COALESCE ( - COUNT ( * ), + 35 * 83 + 47 ) WHEN - ( - - 71 ) THEN NULL WHEN - + 3 THEN - - 89 * - 18 ELSE NULL END * + 83 ) + - - 17
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-9253
SELECT 14 AS col2, + 33 + - + COUNT( * )
----
14
32

skipif mysql # not compatible
query II rowsort label-9253
SELECT 14 AS col2, + 33 + - + COUNT ( * )
----
14
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9254
SELECT DISTINCT + NULLIF ( + 95, - 12 ) + COUNT( * ) - 92 + CAST( - + 46 AS SIGNED ) + + NULLIF ( - + 63, + 92 ) DIV - + 8 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-9254
SELECT DISTINCT + NULLIF ( + 95, - 12 ) + COUNT ( * ) - 92 + CAST ( - + 46 AS INTEGER ) + + NULLIF ( - + 63, + 92 ) / - + 8 AS col1
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9255
SELECT ALL - 48 + + COUNT( * ) - - 20 DIV + + 45
----
-47

skipif mysql # not compatible
query I rowsort label-9255
SELECT ALL - 48 + + COUNT ( * ) - - 20 / + + 45
----
-47

query I rowsort
SELECT 85 * - + 3 + + 69 AS col2
----
-186

query I rowsort
SELECT 42 * - 57 AS col0
----
-2394

onlyif mysql # DIV for integer division: 
query I rowsort label-9258
SELECT 40 DIV + 93 + 89 - + 37 * 29 col2
----
-984

skipif mysql # not compatible
query I rowsort label-9258
SELECT 40 / + 93 + 89 - + 37 * 29 col2
----
-984

query I rowsort
SELECT ALL - 5 * + - 56 + 31 AS col0
----
311

onlyif mysql # aggregate syntax: 
query I rowsort label-9260
SELECT ALL + - COALESCE ( - 23, + 98, - 92 ) * + 87 + + - 25 + 56 * - + 5 + 85 * + ( - 71 ) + - 42 * + COUNT( * )
----
-4381

skipif mysql # not compatible
query I rowsort label-9260
SELECT ALL + - COALESCE ( - 23, + 98, - 92 ) * + 87 + + - 25 + 56 * - + 5 + 85 * + ( - 71 ) + - 42 * + COUNT ( * )
----
-4381

query II rowsort
SELECT ALL - + 88 col0, + 40 + - NULLIF ( 77, + ( - 55 ) - 37 + - - 47 * + - AVG ( + 64 ) + + 73 ) + - + 7 AS col1
----
-88
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT SUM( DISTINCT + 14 )
----
14

skipif mysql # not compatible
query I rowsort label-9262
SELECT SUM ( DISTINCT + 14 )
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9263
SELECT 58 + - 4 DIV - 24 * SUM( + + 54 ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-9263
SELECT 58 + - 4 / - 24 * SUM ( + + 54 ) AS col0
----
58

query I rowsort
SELECT + CASE + 84 WHEN - 53 THEN + 57 + - COALESCE ( - - 60, + 95 + - 0 - - ( + 61 ) * - - 6 + + 56 + 98 * + - 3 + - + 6 + + - 89 * + 32, + + CASE 73 WHEN - + 72 + - + 92 * + + ( - + 16 ) THEN - - 17 END ) END * + + 12 AS col2
----
NULL

query II rowsort
SELECT + 90 AS col2, NULLIF ( + 37, + + 95 ) AS col0
----
90
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9266
SELECT + 86 * - 27 * - 61 + COUNT( * ) + 62 - 89 / + + CASE + 92 WHEN 12 THEN NULL WHEN 22 THEN + 49 END + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9266
SELECT + 86 * - 27 * - 61 + COUNT ( * ) + 62 - 89 / + + CASE + 92 WHEN 12 THEN NULL WHEN 22 THEN + 49 END + + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9267
SELECT 49 DIV 22 - CAST( 22 AS SIGNED ) AS col0, - 63 * - - ( + + CAST( 32 AS SIGNED ) )
----
-20
-2016

skipif mysql # not compatible
query II rowsort label-9267
SELECT 49 / 22 - CAST ( 22 AS INTEGER ) AS col0, - 63 * - - ( + + CAST ( 32 AS INTEGER ) )
----
-20
-2016

onlyif mysql # aggregate syntax: 
query I rowsort label-9268
SELECT ALL - COUNT( + 42 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9268
SELECT ALL - COUNT ( + 42 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9269
SELECT ALL + - ( - CASE - 90 WHEN 10 THEN + - 17 + + - 13 ELSE NULL END ) * + + COALESCE ( NULLIF ( + 99, CASE + 8 WHEN + 56 THEN - - 76 - - - 50 - + - 1 END * 41 ), + 71 * - - COUNT( * ) + COUNT( * ) * - 48, - CAST( + 45 AS SIGNED ) ) * - 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9269
SELECT ALL + - ( - CASE - 90 WHEN 10 THEN + - 17 + + - 13 ELSE NULL END ) * + + COALESCE ( NULLIF ( + 99, CASE + 8 WHEN + 56 THEN - - 76 - - - 50 - + - 1 END * 41 ), + 71 * - - COUNT ( * ) + COUNT ( * ) * - 48, - CAST ( + 45 AS INTEGER ) ) * - 36 AS col1
----
NULL

query I rowsort
SELECT - CASE - + 23 WHEN - + 69 + - - NULLIF ( + + 84, - 49 ) THEN NULL ELSE + + 3 * - 31 END * + + 81
----
7533

query I rowsort
SELECT 96 * - 73 AS col0
----
-7008

onlyif mysql # aggregate syntax: 
query II rowsort label-9272
SELECT + COUNT( * ) AS col2, 11 + 85
----
1
96

skipif mysql # not compatible
query II rowsort label-9272
SELECT + COUNT ( * ) AS col2, 11 + 85
----
1
96

query I rowsort
SELECT + + ( + - 5 ) AS col0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9274
SELECT ALL + CAST( - + 84 AS SIGNED ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-9274
SELECT ALL + CAST ( - + 84 AS INTEGER ) AS col1
----
-84

query I rowsort
SELECT ALL - 3 * - 80 col1
----
240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9276
SELECT + - 97 * MIN( + + 44 ) DIV CASE + 35 WHEN 86 THEN - 64 + 83 ELSE - 98 * + + SUM( + 45 ) * - 58 + + + 78 END + 26
----
26

skipif mysql # not compatible
query I rowsort label-9276
SELECT + - 97 * MIN ( + + 44 ) / CASE + 35 WHEN 86 THEN - 64 + 83 ELSE - 98 * + + SUM ( + 45 ) * - 58 + + + 78 END + 26
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-9277
SELECT DISTINCT + COUNT( * ) AS col2, - 55
----
1
-55

skipif mysql # not compatible
query II rowsort label-9277
SELECT DISTINCT + COUNT ( * ) AS col2, - 55
----
1
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT DISTINCT - 69 * ( 75 ) * - 41 + - - COALESCE ( 54, ( - COUNT( * ) ) ) AS col0
----
212229

skipif mysql # not compatible
query I rowsort label-9278
SELECT DISTINCT - 69 * ( 75 ) * - 41 + - - COALESCE ( 54, ( - COUNT ( * ) ) ) AS col0
----
212229

query I rowsort
SELECT 15 * 35 + - + 66
----
459

query I rowsort
SELECT + 9 * - 3
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9281
SELECT - CASE COUNT( * ) WHEN 24 / 7 * - CASE - CASE + + 66 WHEN + COUNT( * ) THEN - 84 * + 33 ELSE NULL END WHEN - + 24 * - - ( + 29 ) * + 8 + + - 92 THEN - 62 WHEN - 92 THEN NULL ELSE NULL END / - 13 - 49 / - ( - - COALESCE ( + 78, - 79 ) ) + + + 58 + - ( - CAST( - + MIN( ALL 13 ) AS SIGNED ) ) * - 71 THEN + 91 * 33 WHEN + CAST( NULL AS DECIMAL ) + + - 28 - - + 30 + - 95 * - 96 * - 58 THEN - - COUNT( * ) - - + NULLIF ( 24, - 39 * + 70 ) + - + 48 / + - 63 ELSE NULL END * 23
----
NULL

skipif mysql # not compatible
query I rowsort label-9281
SELECT - CASE COUNT ( * ) WHEN 24 / 7 * - CASE - CASE + + 66 WHEN + COUNT ( * ) THEN - 84 * + 33 ELSE NULL END WHEN - + 24 * - - ( + 29 ) * + 8 + + - 92 THEN - 62 WHEN - 92 THEN NULL ELSE NULL END / - 13 - 49 / - ( - - COALESCE ( + 78, - 79 ) ) + + + 58 + - ( - CAST ( - + MIN ( ALL 13 ) AS INTEGER ) ) * - 71 THEN + 91 * 33 WHEN + CAST ( NULL AS REAL ) + + - 28 - - + 30 + - 95 * - 96 * - 58 THEN - - COUNT ( * ) - - + NULLIF ( 24, - 39 * + 70 ) + - + 48 / + - 63 ELSE NULL END * 23
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9282
SELECT + 62 DIV - 93 * + + COALESCE ( 85, + COUNT( * ), - - 40 * + 23 * 52 * - 34 + + ( + COUNT( * ) ) + + - ( 80 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9282
SELECT + 62 / - 93 * + + COALESCE ( 85, + COUNT ( * ), - - 40 * + 23 * 52 * - 34 + + ( + COUNT ( * ) ) + + - ( 80 ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9283
SELECT ALL COALESCE ( 47, + 15 ) + ( + SUM( + 14 ) )
----
61

skipif mysql # not compatible
query I rowsort label-9283
SELECT ALL COALESCE ( 47, + 15 ) + ( + SUM ( + 14 ) )
----
61

query I rowsort
SELECT + 49 + - 47 AS col1
----
2

query I rowsort
SELECT + 26 + - NULLIF ( 42, + 43 ) * + ( - + 54 )
----
2294

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9286
SELECT ALL COUNT( * ) + + 72 + + 63 / - - 49 * NULLIF ( - - 80, + 28 + 11 ) * - + NULLIF ( - + 54, - 24 ) * - CAST( NULL AS SIGNED ) + - + 40 - + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-9286
SELECT ALL COUNT ( * ) + + 72 + + 63 / - - 49 * NULLIF ( - - 80, + 28 + 11 ) * - + NULLIF ( - + 54, - 24 ) * - CAST ( NULL AS INTEGER ) + - + 40 - + 6
----
NULL

query I rowsort
SELECT - NULLIF ( - 97, - AVG ( ALL + 5 ) * + 41 )
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9288
SELECT - 95 - + 16 + - 68 + + 92 * + CAST( + 10 AS SIGNED ) + - - 81 + - 2 AS col2
----
820

skipif mysql # not compatible
query I rowsort label-9288
SELECT - 95 - + 16 + - 68 + + 92 * + CAST ( + 10 AS INTEGER ) + - - 81 + - 2 AS col2
----
820

query I rowsort
SELECT ALL 78 + + 1 + 27 * 34
----
997

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9290
SELECT + - 94 + - - NULLIF ( - 49, - - 15 * + + 64 * - - 23 - NULLIF ( CASE + COUNT( * ) WHEN - CASE 27 WHEN - - 47 * + CASE + 55 WHEN MAX( - 71 ) THEN NULL ELSE + + 48 * + - 6 - + 15 + - 97 + - 63 * + - 30 END + + COALESCE ( + + COUNT( * ), - COUNT( * ), 57, - 91 + - + ( - 27 ) ) THEN NULL WHEN - 61 THEN - 84 * + + COUNT( * ) END * 19 - + + 0 + + 67 THEN + - 14 WHEN - + 79 * - AVG ( + 86 ) / COUNT( + + 44 ) * - 67 + + COALESCE ( + + COUNT( * ), COUNT( * ), + 73, - CAST( NULL AS SIGNED ) - 1 ) + + CASE - ( COUNT( * ) ) + - 4 * ( + 99 + + 71 / 16 ) WHEN - COUNT( * ) + + 69 THEN AVG ( ALL 54 ) END THEN - 0 END, 15 * 62 ) + - COALESCE ( CASE 7 WHEN 78 + - ( 96 ) / + 93 THEN 90 ELSE - COUNT( * ) * + ( SUM( ALL ( 58 ) ) ) + - CASE 16 + 55 * + 8 WHEN - SUM( DISTINCT + ( 81 ) ) / + 50 THEN 33 WHEN CAST( NULL AS DECIMAL ) + + 72 THEN NULL END * + 95 END + 80, 85 * + 85 - 15 ) * 54 ) AS col2
----
-143

skipif mysql # not compatible
query I rowsort label-9290
SELECT + - 94 + - - NULLIF ( - 49, - - 15 * + + 64 * - - 23 - NULLIF ( CASE + COUNT ( * ) WHEN - CASE 27 WHEN - - 47 * + CASE + 55 WHEN MAX ( - 71 ) THEN NULL ELSE + + 48 * + - 6 - + 15 + - 97 + - 63 * + - 30 END + + COALESCE ( + + COUNT ( * ), - COUNT ( * ), 57, - 91 + - + ( - 27 ) ) THEN NULL WHEN - 61 THEN - 84 * + + COUNT ( * ) END * 19 - + + 0 + + 67 THEN + - 14 WHEN - + 79 * - AVG ( + 86 ) / COUNT ( + + 44 ) * - 67 + + COALESCE ( + + COUNT ( * ), COUNT ( * ), + 73, - CAST ( NULL AS INTEGER ) - 1 ) + + CASE - ( COUNT ( * ) ) + - 4 * ( + 99 + + 71 / 16 ) WHEN - COUNT ( * ) + + 69 THEN AVG ( ALL 54 ) END THEN - 0 END, 15 * 62 ) + - COALESCE ( CASE 7 WHEN 78 + - ( 96 ) / + 93 THEN 90 ELSE - COUNT ( * ) * + ( SUM ( ALL ( 58 ) ) ) + - CASE 16 + 55 * + 8 WHEN - SUM ( DISTINCT + ( 81 ) ) / + 50 THEN 33 WHEN CAST ( NULL AS REAL ) + + 72 THEN NULL END * + 95 END + 80, 85 * + 85 - 15 ) * 54 ) AS col2
----
-143

onlyif mysql # aggregate syntax: 
query II rowsort label-9291
SELECT ALL - ( 31 ) col1, + 53 + 36 + + COUNT( * )
----
-31
90

skipif mysql # not compatible
query II rowsort label-9291
SELECT ALL - ( 31 ) col1, + 53 + 36 + + COUNT ( * )
----
-31
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT ALL - 74 / + 67 * + 59 * 66 - + MAX( ALL + - 86 ) + - CASE - + 96 WHEN NULLIF ( 78, - 48 ) THEN + + 70 + 73 WHEN + 88 * + - 4 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9292
SELECT ALL - 74 / + 67 * + 59 * 66 - + MAX ( ALL + - 86 ) + - CASE - + 96 WHEN NULLIF ( 78, - 48 ) THEN + + 70 + 73 WHEN + 88 * + - 4 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9293
SELECT DISTINCT + NULLIF ( - CAST( NULL AS SIGNED ), - - 49 + + 97 ) AS col0, + 53
----
NULL
53

skipif mysql # not compatible
query II rowsort label-9293
SELECT DISTINCT + NULLIF ( - CAST ( NULL AS INTEGER ), - - 49 + + 97 ) AS col0, + 53
----
NULL
53

onlyif mysql # DIV for integer division: 
query I rowsort label-9294
SELECT + 13 DIV + + 4 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-9294
SELECT + 13 / + + 4 AS col2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9295
SELECT - 83 DIV + + 33 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9295
SELECT - 83 / + + 33 AS col2
----
-2

onlyif mysql # DIV for integer division: 
query II rowsort label-9296
SELECT - - 92 DIV - 52 AS col2, - 78 AS col0
----
-1
-78

skipif mysql # not compatible
query II rowsort label-9296
SELECT - - 92 / - 52 AS col2, - 78 AS col0
----
-1
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9297
SELECT - SUM( ALL - 15 ) AS col1, 32 * 8 * CAST( NULL AS SIGNED ) AS col1
----
15
NULL

skipif mysql # not compatible
query II rowsort label-9297
SELECT - SUM ( ALL - 15 ) AS col1, 32 * 8 * CAST ( NULL AS INTEGER ) AS col1
----
15
NULL

query I rowsort
SELECT ALL + 96 * + 49
----
4704

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT - 79 * - 18 + + - 3 + + MAX( ALL - 63 ) col0
----
1356

skipif mysql # not compatible
query I rowsort label-9299
SELECT - 79 * - 18 + + - 3 + + MAX ( ALL - 63 ) col0
----
1356

query I rowsort
SELECT ALL + - 29 AS col2
----
-29

query I rowsort
SELECT - 99 * + + 91 * + 1
----
-9009

query I rowsort
SELECT - 67 * + 57 + - 93
----
-3912

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT - 9 + COUNT( * ) col0
----
-8

skipif mysql # not compatible
query I rowsort label-9303
SELECT - 9 + COUNT ( * ) col0
----
-8

query I rowsort
SELECT - 80 * + 43 * ( + - 84 )
----
288960

query I rowsort
SELECT DISTINCT - 38 * - 28
----
1064

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9306
SELECT DISTINCT 43 * + CAST( NULL AS SIGNED ) + - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-9306
SELECT DISTINCT 43 * + CAST ( NULL AS INTEGER ) + - 92
----
NULL

query I rowsort
SELECT - 50 + + 50
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9308
SELECT ALL ( - - 15 ) + MAX( + 77 ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-9308
SELECT ALL ( - - 15 ) + MAX ( + 77 ) AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9309
SELECT COUNT( 91 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9309
SELECT COUNT ( 91 ) AS col2
----
1

query I rowsort
SELECT - NULLIF ( 83, + 32 )
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9311
SELECT - COUNT( * ) / - CASE + 59 WHEN - - 9 THEN + COUNT( * ) WHEN COUNT( * ) + MAX( ALL 71 ) - - 60 * - COUNT( * ) * 89 THEN - - 19 * - MIN( + CAST( NULL AS SIGNED ) ) ELSE NULL END * + - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-9311
SELECT - COUNT ( * ) / - CASE + 59 WHEN - - 9 THEN + COUNT ( * ) WHEN COUNT ( * ) + MAX ( ALL 71 ) - - 60 * - COUNT ( * ) * 89 THEN - - 19 * - MIN ( + CAST ( NULL AS INTEGER ) ) ELSE NULL END * + - 78
----
NULL

query I rowsort
SELECT + 20 + 99 AS col0
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-9313
SELECT DISTINCT COUNT( * ) + + - 10
----
-9

skipif mysql # not compatible
query I rowsort label-9313
SELECT DISTINCT COUNT ( * ) + + - 10
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9314
SELECT ALL ( 1 ) + + CASE - 88 WHEN - CAST( - + ( + 64 ) AS SIGNED ) THEN COUNT( * ) + + SUM( ALL - - 71 ) ELSE - + CASE 1 WHEN - 72 + + + 59 THEN NULL ELSE - + 96 + + 85 * 36 END END AS col2
----
-2963

skipif mysql # not compatible
query I rowsort label-9314
SELECT ALL ( 1 ) + + CASE - 88 WHEN - CAST ( - + ( + 64 ) AS INTEGER ) THEN COUNT ( * ) + + SUM ( ALL - - 71 ) ELSE - + CASE 1 WHEN - 72 + + + 59 THEN NULL ELSE - + 96 + + 85 * 36 END END AS col2
----
-2963

query II rowsort
SELECT 39 AS col0, 31 * - 49 - + - 96
----
39
-1423

query I rowsort
SELECT + 72 + 69 AS col2
----
141

query I rowsort
SELECT + 89 * + 47 col0
----
4183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9318
SELECT DISTINCT + 3 - + + CAST( NULL AS SIGNED ) * 99 + - NULLIF ( - COUNT( * ), + + 2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9318
SELECT DISTINCT + 3 - + + CAST ( NULL AS INTEGER ) * 99 + - NULLIF ( - COUNT ( * ), + + 2 )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9319
SELECT + 77 + NULLIF ( + 76, CAST( NULL AS DECIMAL ) )
----
153

skipif mysql # not compatible
query I rowsort label-9319
SELECT + 77 + NULLIF ( + 76, CAST ( NULL AS REAL ) )
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-9320
SELECT DISTINCT + SUM( ALL - - 14 ) - + 65 AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-9320
SELECT DISTINCT + SUM ( ALL - - 14 ) - + 65 AS col2
----
-51

query I rowsort
SELECT ALL 84 - + 31
----
53

query I rowsort
SELECT + 53 * - 16 + + 40 + + 53
----
-755

onlyif mysql # aggregate syntax: 
query I rowsort label-9323
SELECT + CASE + 83 WHEN + 61 THEN + 70 / + + ( + + COUNT( * ) ) - + 88 WHEN + 32 + - + COUNT( * ) THEN 54 END - - + 22 * 15 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9323
SELECT + CASE + 83 WHEN + 61 THEN + 70 / + + ( + + COUNT ( * ) ) - + 88 WHEN + 32 + - + COUNT ( * ) THEN 54 END - - + 22 * 15 col2
----
NULL

query I rowsort
SELECT ALL - 2 * - 72 * + 8 AS col0
----
1152

query I rowsort
SELECT + + 96 * 21 AS col1
----
2016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9326
SELECT + CAST( NULL AS SIGNED ) / SUM( ALL + + 29 ) + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-9326
SELECT + CAST ( NULL AS INTEGER ) / SUM ( ALL + + 29 ) + 61
----
NULL

query I rowsort
SELECT DISTINCT + - 68 col2
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9328
SELECT - 52 DIV - 33 + - - 77 - 31 * - COUNT( * ) AS col2
----
109

skipif mysql # not compatible
query I rowsort label-9328
SELECT - 52 / - 33 + - - 77 - 31 * - COUNT ( * ) AS col2
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT - 60 - - 58 + + + 11 * + SUM( ( + 67 ) ) + + - 75
----
660

skipif mysql # not compatible
query I rowsort label-9329
SELECT - 60 - - 58 + + + 11 * + SUM ( ( + 67 ) ) + + - 75
----
660

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9330
SELECT DISTINCT - + 34, COUNT( * ) DIV - 77 * + 85 * - 98 AS col0
----
-34
0

skipif mysql # not compatible
query II rowsort label-9330
SELECT DISTINCT - + 34, COUNT ( * ) / - 77 * + 85 * - 98 AS col0
----
-34
0

query I rowsort
SELECT ALL + - 23 + - 20 * + - ( + 25 )
----
477

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9332
SELECT ALL - - 60 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9332
SELECT ALL - - 60 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9333
SELECT - MIN( DISTINCT 92 ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-9333
SELECT - MIN ( DISTINCT 92 ) AS col2
----
-92

query I rowsort
SELECT ALL + 75 + - 82
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9335
SELECT + COUNT( + - 33 )
----
1

skipif mysql # not compatible
query I rowsort label-9335
SELECT + COUNT ( + - 33 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT ALL ( + MAX( DISTINCT - 74 ) ) + + - MIN( 79 ) * + - 79
----
6167

skipif mysql # not compatible
query I rowsort label-9336
SELECT ALL ( + MAX ( DISTINCT - 74 ) ) + + - MIN ( 79 ) * + - 79
----
6167

query I rowsort
SELECT ALL + + 68 * + + CASE - 90 WHEN - 82 THEN + 46 END
----
NULL

query II rowsort
SELECT + 9 AS col2, + 89 AS col0
----
9
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT ALL - CASE - 72 WHEN ( CASE 69 WHEN 12 / + 4 THEN + - 2 WHEN - 6 * + 23 THEN NULL END ) THEN - ( - COUNT( * ) ) * - 67 + 32 + + 53 + + COUNT( * ) + - + MIN( DISTINCT 33 ) - 65 END + ( - - 8 ) + + 58 - 96 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9339
SELECT ALL - CASE - 72 WHEN ( CASE 69 WHEN 12 / + 4 THEN + - 2 WHEN - 6 * + 23 THEN NULL END ) THEN - ( - COUNT ( * ) ) * - 67 + 32 + + 53 + + COUNT ( * ) + - + MIN ( DISTINCT 33 ) - 65 END + ( - - 8 ) + + 58 - 96 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9340
SELECT 1, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-9340
SELECT 1, COUNT ( * )
----
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9341
SELECT 7 DIV + + 53 * + 35 * 87
----
0

skipif mysql # not compatible
query I rowsort label-9341
SELECT 7 / + + 53 * + 35 * 87
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9342
SELECT ALL - COUNT( * ) + - CAST( NULL AS SIGNED ) + - 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9342
SELECT ALL - COUNT ( * ) + - CAST ( NULL AS INTEGER ) + - 10 AS col0
----
NULL

query II rowsort
SELECT + 24, - 7 AS col0
----
24
-7

query II rowsort
SELECT ALL 77 AS col1, 29 + - 87
----
77
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9345
SELECT CAST( + + COUNT( * ) AS SIGNED ) + 63
----
64

skipif mysql # not compatible
query I rowsort label-9345
SELECT CAST ( + + COUNT ( * ) AS INTEGER ) + 63
----
64

query I rowsort
SELECT 89 * - 44 + + 42 AS col2
----
-3874

onlyif mysql # aggregate syntax: 
query I rowsort label-9347
SELECT 42 * + NULLIF ( + + 81, - + 64 + - - 81 + + 95 * - COALESCE ( - ( 51 ), + 24 * + ( + 56 ) * + COUNT( * ) + - 22 + 26, - 97 * + + 34 ) / - 94 )
----
3402

skipif mysql # not compatible
query I rowsort label-9347
SELECT 42 * + NULLIF ( + + 81, - + 64 + - - 81 + + 95 * - COALESCE ( - ( 51 ), + 24 * + ( + 56 ) * + COUNT ( * ) + - 22 + 26, - 97 * + + 34 ) / - 94 )
----
3402

onlyif mysql # aggregate syntax: 
query II rowsort label-9348
SELECT ALL - 17 - - - 56, - NULLIF ( - COALESCE ( 56, + - 85 ), + 5 / + COUNT( - 77 ) + - COUNT( * ) * - 45 + + 66 ) + + - COUNT( * ) AS col1
----
-73
55

skipif mysql # not compatible
query II rowsort label-9348
SELECT ALL - 17 - - - 56, - NULLIF ( - COALESCE ( 56, + - 85 ), + 5 / + COUNT ( - 77 ) + - COUNT ( * ) * - 45 + + 66 ) + + - COUNT ( * ) AS col1
----
-73
55

onlyif mysql # aggregate syntax: 
query II rowsort label-9349
SELECT 13 * - 4 AS col0, - COUNT( * ) * - COUNT( * )
----
-52
1

skipif mysql # not compatible
query II rowsort label-9349
SELECT 13 * - 4 AS col0, - COUNT ( * ) * - COUNT ( * )
----
-52
1

query I rowsort
SELECT 16 + + 30 AS col2
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-9351
SELECT - 87 col2, COUNT( * ) * - - CASE + ( 18 ) WHEN + AVG ( ALL 25 ) + + 62 + ( - COUNT( * ) ) / + COUNT( * ) * - 38 - + 47 + 27 * 34 - - + NULLIF ( - - 91, - + 44 + + + 33 ) * MAX( + 48 ) THEN - 77 WHEN + + 59 + COUNT( * ) THEN - 88 - - 15 WHEN + 23 THEN NULL END / + 81 + - - 29 + + 91 + + 52 * 76 * - + 6 AS col0
----
-87
NULL

skipif mysql # not compatible
query II rowsort label-9351
SELECT - 87 col2, COUNT ( * ) * - - CASE + ( 18 ) WHEN + AVG ( ALL 25 ) + + 62 + ( - COUNT ( * ) ) / + COUNT ( * ) * - 38 - + 47 + 27 * 34 - - + NULLIF ( - - 91, - + 44 + + + 33 ) * MAX ( + 48 ) THEN - 77 WHEN + + 59 + COUNT ( * ) THEN - 88 - - 15 WHEN + 23 THEN NULL END / + 81 + - - 29 + + 91 + + 52 * 76 * - + 6 AS col0
----
-87
NULL

query I rowsort
SELECT 23 - - 20 AS col1
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9353
SELECT ALL - CASE - 95 WHEN 55 + - ( - SUM( DISTINCT + - 71 ) ) * 86 THEN + - 32 ELSE NULL END * - 9 / - + 57 + ( 27 ) + + ( - - CAST( + + 13 AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9353
SELECT ALL - CASE - 95 WHEN 55 + - ( - SUM ( DISTINCT + - 71 ) ) * 86 THEN + - 32 ELSE NULL END * - 9 / - + 57 + ( 27 ) + + ( - - CAST ( + + 13 AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT 32 + - 5
----
27

query II rowsort
SELECT ALL 45 AS col1, 16 + 40 - 68
----
45
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9356
SELECT COUNT( * ) + - - 67 - - CAST( 94 AS SIGNED ) * COUNT( * )
----
162

skipif mysql # not compatible
query I rowsort label-9356
SELECT COUNT ( * ) + - - 67 - - CAST ( 94 AS INTEGER ) * COUNT ( * )
----
162

query I rowsort
SELECT DISTINCT + 99 * 35
----
3465

query I rowsort
SELECT 51 + 70 AS col0
----
121

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9359
SELECT ALL COUNT( DISTINCT + CAST( NULL AS DECIMAL ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9359
SELECT ALL COUNT ( DISTINCT + CAST ( NULL AS REAL ) ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9360
SELECT ( + - 95 ) DIV - - 68
----
-1

skipif mysql # not compatible
query I rowsort label-9360
SELECT ( + - 95 ) / - - 68
----
-1

query I rowsort
SELECT + 81 + + 49 AS col2
----
130

query I rowsort
SELECT + 51 - 42 + 39 + + + 16 * 58 AS col2
----
976

query I rowsort
SELECT + 65 + 49 + - 94 AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9364
SELECT - 74 * ( + - 44 ) + 15 + MIN( DISTINCT - + 15 )
----
3256

skipif mysql # not compatible
query I rowsort label-9364
SELECT - 74 * ( + - 44 ) + 15 + MIN ( DISTINCT - + 15 )
----
3256

onlyif mysql # DIV for integer division: 
query I rowsort label-9365
SELECT ALL ( - + 33 ) DIV + + 70
----
0

skipif mysql # not compatible
query I rowsort label-9365
SELECT ALL ( - + 33 ) / + + 70
----
0

query I rowsort
SELECT - 31 + 15 AS col0
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-9367
SELECT + 40 DIV + 72
----
0

skipif mysql # not compatible
query I rowsort label-9367
SELECT + 40 / + 72
----
0

query I rowsort
SELECT DISTINCT COALESCE ( + 44, - 89 * 50, - + 2 ) * + 84
----
3696

query II rowsort
SELECT + 76 col2, 75 * + 56
----
76
4200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9370
SELECT DISTINCT 46 + 87 / + SUM( ALL - 96 ) - + 54 * + CAST( NULL AS SIGNED ) AS col0, - 35
----
NULL
-35

skipif mysql # not compatible
query II rowsort label-9370
SELECT DISTINCT 46 + 87 / + SUM ( ALL - 96 ) - + 54 * + CAST ( NULL AS INTEGER ) AS col0, - 35
----
NULL
-35

query I rowsort
SELECT 24 * + 80 * + 53 + 21
----
101781

query I rowsort
SELECT - 90 * 31 * - 40 AS col0
----
111600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9373
SELECT - ( 55 ) * - CASE + 41 WHEN 38 - + COUNT( * ) THEN NULL WHEN + COUNT( * ) THEN 39 WHEN 69 + - COUNT( * ) THEN NULL ELSE NULL END + 18 + + AVG ( - + 29 ) - 63 * + CASE - + CASE 40 WHEN COUNT( * ) / - + 7 * + 24 THEN NULL WHEN 8 THEN NULL ELSE + 37 END WHEN COALESCE ( + + CASE - + CAST( NULL AS SIGNED ) WHEN - - COUNT( * ) * - 11 * - + 89 + NULLIF ( + SUM( DISTINCT 57 ), 33 * + + ( 73 ) ) + 95 THEN - 74 END, - COUNT( * ), + - COUNT( * ) * 28 + + 88 / + + 1 - + - 79 + - 27 * + - 85 ) * + - 60 THEN - 87 / - 35 WHEN + 41 * + CASE WHEN 11 BETWEEN ( - SUM( DISTINCT - ( ( 85 ) ) ) ) AND 34 THEN 4 / + 92 WHEN - 32 + + 29 IS NOT NULL THEN NULL END THEN NULL END + 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9373
SELECT - ( 55 ) * - CASE + 41 WHEN 38 - + COUNT ( * ) THEN NULL WHEN + COUNT ( * ) THEN 39 WHEN 69 + - COUNT ( * ) THEN NULL ELSE NULL END + 18 + + AVG ( - + 29 ) - 63 * + CASE - + CASE 40 WHEN COUNT ( * ) / - + 7 * + 24 THEN NULL WHEN 8 THEN NULL ELSE + 37 END WHEN COALESCE ( + + CASE - + CAST ( NULL AS INTEGER ) WHEN - - COUNT ( * ) * - 11 * - + 89 + NULLIF ( + SUM ( DISTINCT 57 ), 33 * + + ( 73 ) ) + 95 THEN - 74 END, - COUNT ( * ), + - COUNT ( * ) * 28 + + 88 / + + 1 - + - 79 + - 27 * + - 85 ) * + - 60 THEN - 87 / - 35 WHEN + 41 * + CASE WHEN 11 BETWEEN ( - SUM ( DISTINCT - ( ( 85 ) ) ) ) AND 34 THEN 4 / + 92 WHEN - 32 + + 29 IS NOT NULL THEN NULL END THEN NULL END + 25 AS col2
----
NULL

query I rowsort
SELECT 7 + - + 56 AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT ALL - MAX( DISTINCT + 25 )
----
-25

skipif mysql # not compatible
query I rowsort label-9375
SELECT ALL - MAX ( DISTINCT + 25 )
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-9376
SELECT - 66 * + + 36 + - + 48 * + ( + 52 ) - + 19 + - - 82 - + - 61 DIV + 4
----
-4794

skipif mysql # not compatible
query I rowsort label-9376
SELECT - 66 * + + 36 + - + 48 * + ( + 52 ) - + 19 + - - 82 - + - 61 / + 4
----
-4794

onlyif mysql # aggregate syntax: 
query I rowsort label-9377
SELECT DISTINCT CASE - + 75 WHEN + 66 * ( + 98 ) THEN + 69 WHEN + 97 THEN NULL WHEN - 50 + 0 + + COUNT( * ) THEN + 14 WHEN - - ( 40 ) THEN COUNT( * ) ELSE NULL END - - - CASE + + MAX( DISTINCT + 61 ) WHEN 87 * COUNT( * ) * - + 21 THEN + ( - - 50 ) * - 60 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9377
SELECT DISTINCT CASE - + 75 WHEN + 66 * ( + 98 ) THEN + 69 WHEN + 97 THEN NULL WHEN - 50 + 0 + + COUNT ( * ) THEN + 14 WHEN - - ( 40 ) THEN COUNT ( * ) ELSE NULL END - - - CASE + + MAX ( DISTINCT + 61 ) WHEN 87 * COUNT ( * ) * - + 21 THEN + ( - - 50 ) * - 60 END
----
NULL

query I rowsort
SELECT 36 * - + ( 27 ) AS col0
----
-972

query I rowsort
SELECT ( + 90 ) * COALESCE ( - - 92, + 32 - + 27, 78 ) AS col1
----
8280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9380
SELECT CAST( NULL AS SIGNED ) * - 56 / - 35 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9380
SELECT CAST ( NULL AS INTEGER ) * - 56 / - 35 col1
----
NULL

query I rowsort
SELECT 61 * - + 52 AS col1
----
-3172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9382
SELECT - COUNT( * ) + - + CAST( + - 4 AS SIGNED ) * - - 92
----
367

skipif mysql # not compatible
query I rowsort label-9382
SELECT - COUNT ( * ) + - + CAST ( + - 4 AS INTEGER ) * - - 92
----
367

onlyif mysql # DIV for integer division: 
query II rowsort label-9383
SELECT DISTINCT ( - + 76 ) AS col1, 77 DIV + - 87
----
-76
0

skipif mysql # not compatible
query II rowsort label-9383
SELECT DISTINCT ( - + 76 ) AS col1, 77 / + - 87
----
-76
0

query I rowsort
SELECT DISTINCT - + 31 + 11
----
-20

query I rowsort
SELECT + COALESCE ( - + 89, + 2, + 84 )
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-9386
SELECT ALL - - 81 + 53 AS col1, + NULLIF ( + 26, 65 ) + ( COUNT( * ) ) * 45
----
134
71

skipif mysql # not compatible
query II rowsort label-9386
SELECT ALL - - 81 + 53 AS col1, + NULLIF ( + 26, 65 ) + ( COUNT ( * ) ) * 45
----
134
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9387
SELECT - + 88 + - 37 * - 55 - + 59 * + + AVG ( ALL - 56 ) + - COUNT( * ) + - 46 + CAST( NULL AS SIGNED ) * + AVG ( + + 81 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9387
SELECT - + 88 + - 37 * - 55 - + 59 * + + AVG ( ALL - 56 ) + - COUNT ( * ) + - 46 + CAST ( NULL AS INTEGER ) * + AVG ( + + 81 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9388
SELECT ALL + 19 * - - COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-9388
SELECT ALL + 19 * - - COUNT ( * )
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9389
SELECT - 65 * + + COALESCE ( - - 2, 86 * 15 - + 18 * + 41 * - ( - 70 ) - - CAST( NULL AS SIGNED ) ), + 22 AS col0
----
-130
22

skipif mysql # not compatible
query II rowsort label-9389
SELECT - 65 * + + COALESCE ( - - 2, 86 * 15 - + 18 * + 41 * - ( - 70 ) - - CAST ( NULL AS INTEGER ) ), + 22 AS col0
----
-130
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT - MAX( + - 5 ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-9390
SELECT - MAX ( + - 5 ) AS col0
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9391
SELECT + ( 71 ) + 26 + + + COUNT( * ) + 82 DIV - 90 + 37, - 78 * + - COUNT( * ) AS col2
----
135
78

skipif mysql # not compatible
query II rowsort label-9391
SELECT + ( 71 ) + 26 + + + COUNT ( * ) + 82 / - 90 + 37, - 78 * + - COUNT ( * ) AS col2
----
135
78

query II rowsort
SELECT ( - + 73 ), - 53 AS col1
----
-73
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-9393
SELECT + - 73 + + ( + 34 ) * - - COUNT( * ) * - 14 AS col1, - 48 AS col1
----
-549
-48

skipif mysql # not compatible
query II rowsort label-9393
SELECT + - 73 + + ( + 34 ) * - - COUNT ( * ) * - 14 AS col1, - 48 AS col1
----
-549
-48

query I rowsort
SELECT - 31 * 61 AS col0
----
-1891

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9395
SELECT ALL + CASE ( - - 70 ) WHEN - COUNT( * ) THEN - - 30 END, + CASE + 30 WHEN - + 8 THEN + 97 WHEN + COALESCE ( - CASE 36 WHEN - COUNT( * ) * + 25 THEN - + CASE - + 32 WHEN - - ( 97 ) - + + CAST( NULL AS SIGNED ) THEN - - 43 + - 8 WHEN 29 * - - ( + - 62 ) - 90 THEN 54 + + COUNT( * ) WHEN + + COUNT( * ) * + - COUNT( * ) THEN + - 84 * + 4 END / 5 + + 62 END, - 85, - 5 * + 18 + - - 71 ) + - CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END * - CASE + - 6 WHEN 51 + 54 / + 81 + 59 / + 3 THEN - 87 * + ( + 59 ) / 95 - MAX( DISTINCT - 36 + + 24 * 91 ) * 3 ELSE 57 END + - 14 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9395
SELECT ALL + CASE ( - - 70 ) WHEN - COUNT ( * ) THEN - - 30 END, + CASE + 30 WHEN - + 8 THEN + 97 WHEN + COALESCE ( - CASE 36 WHEN - COUNT ( * ) * + 25 THEN - + CASE - + 32 WHEN - - ( 97 ) - + + CAST ( NULL AS INTEGER ) THEN - - 43 + - 8 WHEN 29 * - - ( + - 62 ) - 90 THEN 54 + + COUNT ( * ) WHEN + + COUNT ( * ) * + - COUNT ( * ) THEN + - 84 * + 4 END / 5 + + 62 END, - 85, - 5 * + 18 + - - 71 ) + - CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END * - CASE + - 6 WHEN 51 + 54 / + 81 + 59 / + 3 THEN - 87 * + ( + 59 ) / 95 - MAX ( DISTINCT - 36 + + 24 * 91 ) * 3 ELSE 57 END + - 14 AS col2
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9396
SELECT - - 87 DIV + COUNT( 29 ) + - + 95 + - 23 + + 81 * + COALESCE ( NULLIF ( 28, + + CAST( NULL AS SIGNED ) ), + 53 ) - + 4 * - + MAX( DISTINCT + 91 ) * - 77, 94 * + 36 col1
----
-25791
3384

skipif mysql # not compatible
query II rowsort label-9396
SELECT - - 87 / + COUNT ( 29 ) + - + 95 + - 23 + + 81 * + COALESCE ( NULLIF ( 28, + + CAST ( NULL AS INTEGER ) ), + 53 ) - + 4 * - + MAX ( DISTINCT + 91 ) * - 77, 94 * + 36 col1
----
-25791
3384

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT - - COUNT( * ) - 8
----
-7

skipif mysql # not compatible
query I rowsort label-9397
SELECT - - COUNT ( * ) - 8
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9398
SELECT + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9398
SELECT + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9399
SELECT + 27 * COUNT( * ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-9399
SELECT + 27 * COUNT ( * ) AS col0
----
27

query I rowsort
SELECT DISTINCT + 34 * 62 - - - 95 * 35 col0
----
-1217

onlyif mysql # aggregate syntax: 
query I rowsort label-9401
SELECT + MAX( - + 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-9401
SELECT + MAX ( - + 83 )
----
-83

query II rowsort
SELECT + 65 AS col0, ( + - 66 ) AS col0
----
65
-66

query I rowsort
SELECT + 67 * - 13
----
-871

query I rowsort
SELECT CASE - 7 WHEN + 78 THEN 68 ELSE - ( + - ( + - 33 ) ) END
----
-33

query I rowsort
SELECT ALL ( + + 91 ) * - 32 AS col0
----
-2912

query II rowsort
SELECT ALL + 61, + 80 AS col0
----
61
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT ALL ( - COUNT( * ) ) * ( + + 90 ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-9407
SELECT ALL ( - COUNT ( * ) ) * ( + + 90 ) AS col0
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-9408
SELECT DISTINCT 66 DIV 98 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9408
SELECT DISTINCT 66 / 98 AS col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9409
SELECT DISTINCT + 90 col2, 79 DIV + 1
----
90
79

skipif mysql # not compatible
query II rowsort label-9409
SELECT DISTINCT + 90 col2, 79 / + 1
----
90
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9410
SELECT + ( COUNT( * ) ) * - 37
----
-37

skipif mysql # not compatible
query I rowsort label-9410
SELECT + ( COUNT ( * ) ) * - 37
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-9411
SELECT ALL 13 DIV - 84 * + - 15 * - - 26 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9411
SELECT ALL 13 / - 84 * + - 15 * - - 26 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9412
SELECT + 18 DIV + 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9412
SELECT + 18 / + 68 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9413
SELECT - 52 AS col1, COUNT( * ) col0
----
-52
1

skipif mysql # not compatible
query II rowsort label-9413
SELECT - 52 AS col1, COUNT ( * ) col0
----
-52
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9414
SELECT DISTINCT - 73 + - 54 DIV - + 42 col0
----
-72

skipif mysql # not compatible
query I rowsort label-9414
SELECT DISTINCT - 73 + - 54 / - + 42 col0
----
-72

query I rowsort
SELECT ALL + 14 + ( - - ( + 32 ) ) AS col1
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9416
SELECT + + CAST( NULL AS SIGNED ) + + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-9416
SELECT + + CAST ( NULL AS INTEGER ) + + 33
----
NULL

query I rowsort
SELECT - + ( - 95 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT ALL + COUNT( * ) + 96 + + - 73 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-9418
SELECT ALL + COUNT ( * ) + 96 + + - 73 AS col2
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9419
SELECT + - 34 + - 97 + - MIN( + - 77 ), - ( - - COALESCE ( - 60, - 44 - - + CAST( NULL AS SIGNED ) + COUNT( * ) * + 30, + 54, 27 ) ) * - - 3 AS col2
----
-54
180

skipif mysql # not compatible
query II rowsort label-9419
SELECT + - 34 + - 97 + - MIN ( + - 77 ), - ( - - COALESCE ( - 60, - 44 - - + CAST ( NULL AS INTEGER ) + COUNT ( * ) * + 30, + 54, 27 ) ) * - - 3 AS col2
----
-54
180

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9420
SELECT ALL + 23 * 92 + + - CASE - + 86 WHEN + 64 + - 22 + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) THEN ( COALESCE ( + + 7, + - 59, - 53 DIV + - 86 * - CAST( NULL AS SIGNED ), + 51 * + 80 + + 13 ) ) ELSE - + 75 END
----
2191

skipif mysql # not compatible
query I rowsort label-9420
SELECT ALL + 23 * 92 + + - CASE - + 86 WHEN + 64 + - 22 + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) THEN ( COALESCE ( + + 7, + - 59, - 53 / + - 86 * - CAST ( NULL AS INTEGER ), + 51 * + 80 + + 13 ) ) ELSE - + 75 END
----
2191

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9421
SELECT DISTINCT 78 + + COALESCE ( + NULLIF ( + 46, - 52 ), + 71 ) + + NULLIF ( - + 84, + + COALESCE ( - CASE + 44 WHEN + COUNT( * ) * - COUNT( * ) * + - 25 + + 14 + + 14 * + 49 - - 82 THEN + 13 * + 43 / CAST( - 75 AS SIGNED ) + + + 42 ELSE NULL END, + - 22 ) * - COUNT( * ) + - COALESCE ( + 59, + ( ( 28 ) ) ) ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-9421
SELECT DISTINCT 78 + + COALESCE ( + NULLIF ( + 46, - 52 ), + 71 ) + + NULLIF ( - + 84, + + COALESCE ( - CASE + 44 WHEN + COUNT ( * ) * - COUNT ( * ) * + - 25 + + 14 + + 14 * + 49 - - 82 THEN + 13 * + 43 / CAST ( - 75 AS INTEGER ) + + + 42 ELSE NULL END, + - 22 ) * - COUNT ( * ) + - COALESCE ( + 59, + ( ( 28 ) ) ) ) AS col1
----
40

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9422
SELECT - - 84 + + COALESCE ( + + NULLIF ( - + 97, - CAST( NULL AS DECIMAL ) ), 1 ) * + - COUNT( * ) * - - 29 * + + 86 + + COUNT( * ) AS col0
----
242003

skipif mysql # not compatible
query I rowsort label-9422
SELECT - - 84 + + COALESCE ( + + NULLIF ( - + 97, - CAST ( NULL AS REAL ) ), 1 ) * + - COUNT ( * ) * - - 29 * + + 86 + + COUNT ( * ) AS col0
----
242003

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9423
SELECT ALL 96 + - + 16 * + + 6 DIV COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9423
SELECT ALL 96 + - + 16 * + + 6 / COUNT ( * ) AS col2
----
0

query II rowsort
SELECT - 77 AS col0, 27 AS col1
----
-77
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9425
SELECT + ( + SUM( ALL - + 78 ) ) + COUNT( * )
----
-77

skipif mysql # not compatible
query I rowsort label-9425
SELECT + ( + SUM ( ALL - + 78 ) ) + COUNT ( * )
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-9426
SELECT - 49 + + 98 * + - 57 AS col0, - COUNT( * ) col2
----
-5635
-1

skipif mysql # not compatible
query II rowsort label-9426
SELECT - 49 + + 98 * + - 57 AS col0, - COUNT ( * ) col2
----
-5635
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9427
SELECT - COUNT( * ) col0, + 47 col1
----
-1
47

skipif mysql # not compatible
query II rowsort label-9427
SELECT - COUNT ( * ) col0, + 47 col1
----
-1
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9428
SELECT + 93 * MIN( ALL 24 )
----
2232

skipif mysql # not compatible
query I rowsort label-9428
SELECT + 93 * MIN ( ALL 24 )
----
2232

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9429
SELECT - AVG ( DISTINCT - 41 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9429
SELECT - AVG ( DISTINCT - 41 ) + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - + ( - ( 96 ) ) AS col0
----
96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9431
SELECT - 76 + + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9431
SELECT - 76 + + - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ALL - 38 + + - 80 AS col2
----
-118

query II rowsort
SELECT DISTINCT 55, - 73 AS col1
----
55
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9434
SELECT - + 58 + MAX( ALL + 75 ) * + 62 * 67 * - 52
----
-16200658

skipif mysql # not compatible
query I rowsort label-9434
SELECT - + 58 + MAX ( ALL + 75 ) * + 62 * 67 * - 52
----
-16200658

query I rowsort
SELECT ALL + 47 * 13 * + + 89 AS col0
----
54379

onlyif mysql # aggregate syntax: 
query I rowsort label-9436
SELECT DISTINCT + MIN( 75 )
----
75

skipif mysql # not compatible
query I rowsort label-9436
SELECT DISTINCT + MIN ( 75 )
----
75

query I rowsort
SELECT - 15 + - 68 AS col0
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9438
SELECT ALL + CASE - + CAST( NULL AS SIGNED ) WHEN - 73 / + - 98 + + 74 THEN NULL WHEN + ( - 72 ) THEN NULL ELSE - 88 + - 75 - + - COUNT( * ) END col1
----
-162

skipif mysql # not compatible
query I rowsort label-9438
SELECT ALL + CASE - + CAST ( NULL AS INTEGER ) WHEN - 73 / + - 98 + + 74 THEN NULL WHEN + ( - 72 ) THEN NULL ELSE - 88 + - 75 - + - COUNT ( * ) END col1
----
-162

onlyif mysql # aggregate syntax: 
query II rowsort label-9439
SELECT - 67 * COUNT( * ) AS col0, + 84 + - 99 AS col2
----
-67
-15

skipif mysql # not compatible
query II rowsort label-9439
SELECT - 67 * COUNT ( * ) AS col0, + 84 + - 99 AS col2
----
-67
-15

query I rowsort
SELECT - 44 * + - 86
----
3784

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT ALL + COUNT( * ) * + - 25 * - MAX( ( + - 49 ) ) AS col0
----
-1225

skipif mysql # not compatible
query I rowsort label-9441
SELECT ALL + COUNT ( * ) * + - 25 * - MAX ( ( + - 49 ) ) AS col0
----
-1225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9442
SELECT - 61 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9442
SELECT - 61 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 25 * - - 7
----
175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9444
SELECT + 57 * - MIN( - - 47 ) * 87 * - ( - 92 ) + + 61, - 99 + + ( - ( 7 ) ) * + CAST( NULL AS SIGNED ) * + 66 * 63 AS col1
----
-21442655
NULL

skipif mysql # not compatible
query II rowsort label-9444
SELECT + 57 * - MIN ( - - 47 ) * 87 * - ( - 92 ) + + 61, - 99 + + ( - ( 7 ) ) * + CAST ( NULL AS INTEGER ) * + 66 * 63 AS col1
----
-21442655
NULL

query II rowsort
SELECT ( + 92 ) AS col0, 64
----
92
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9446
SELECT ALL 72 * - CASE 81 WHEN - + AVG ( + CAST( NULL AS SIGNED ) ) THEN + - 64 WHEN + 79 THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9446
SELECT ALL 72 * - CASE 81 WHEN - + AVG ( + CAST ( NULL AS INTEGER ) ) THEN + - 64 WHEN + 79 THEN NULL END col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9447
SELECT + CAST( 87 AS SIGNED ) + 68
----
155

skipif mysql # not compatible
query I rowsort label-9447
SELECT + CAST ( 87 AS INTEGER ) + 68
----
155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9448
SELECT DISTINCT 24 * - CASE - 1 WHEN + - CAST( NULL AS SIGNED ) / ( + 44 ) + + 9 + - MIN( ALL - 0 ) * ( - - 63 ) THEN + 83 ELSE - 25 + + + 43 - - 79 * - 99 END AS col1
----
187272

skipif mysql # not compatible
query I rowsort label-9448
SELECT DISTINCT 24 * - CASE - 1 WHEN + - CAST ( NULL AS INTEGER ) / ( + 44 ) + + 9 + - MIN ( ALL - 0 ) * ( - - 63 ) THEN + 83 ELSE - 25 + + + 43 - - 79 * - 99 END AS col1
----
187272

onlyif mysql # aggregate syntax: 
query I rowsort label-9449
SELECT ALL - - COUNT( * ) + + 19 + + 17 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-9449
SELECT ALL - - COUNT ( * ) + + 19 + + 17 AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9450
SELECT ALL - MAX( DISTINCT + 92 ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-9450
SELECT ALL - MAX ( DISTINCT + 92 ) AS col0
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-9451
SELECT DISTINCT - COALESCE ( + - COALESCE ( - 78, - MAX( + 50 ) + + - 3 ), - - 66, - 47 ) + 87 * - CASE CASE - COUNT( * ) WHEN 81 * + - AVG ( + 48 ) THEN - 81 END WHEN - MAX( + + 50 ) THEN 31 WHEN - 20 THEN - 77 ELSE NULL END + COALESCE ( - MAX( + - 70 ), - 29 + - 40 + + + 30 / 63 + + 80 * + - 67, + + 27, + 37 * - + 2 + COUNT( * ) ), - ( 14 ) AS col1
----
NULL
-14

skipif mysql # not compatible
query II rowsort label-9451
SELECT DISTINCT - COALESCE ( + - COALESCE ( - 78, - MAX ( + 50 ) + + - 3 ), - - 66, - 47 ) + 87 * - CASE CASE - COUNT ( * ) WHEN 81 * + - AVG ( + 48 ) THEN - 81 END WHEN - MAX ( + + 50 ) THEN 31 WHEN - 20 THEN - 77 ELSE NULL END + COALESCE ( - MAX ( + - 70 ), - 29 + - 40 + + + 30 / 63 + + 80 * + - 67, + + 27, + 37 * - + 2 + COUNT ( * ) ), - ( 14 ) AS col1
----
NULL
-14

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9452
SELECT ALL 67 + 89 + 55 DIV 31 AS col0, - CAST( NULL AS SIGNED ) * + 99 col0
----
157
NULL

skipif mysql # not compatible
query II rowsort label-9452
SELECT ALL 67 + 89 + 55 / 31 AS col0, - CAST ( NULL AS INTEGER ) * + 99 col0
----
157
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9453
SELECT DISTINCT + SUM( + 61 ) + 72 AS col2
----
133

skipif mysql # not compatible
query I rowsort label-9453
SELECT DISTINCT + SUM ( + 61 ) + 72 AS col2
----
133

query I rowsort
SELECT + 20 * + 78 + 96 AS col2
----
1656

onlyif mysql # aggregate syntax: 
query I rowsort label-9455
SELECT - + MAX( + 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-9455
SELECT - + MAX ( + 51 )
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9456
SELECT DISTINCT COUNT( * ) DIV - + 40 col2
----
0

skipif mysql # not compatible
query I rowsort label-9456
SELECT DISTINCT COUNT ( * ) / - + 40 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9457
SELECT DISTINCT 12 + - COUNT( * ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-9457
SELECT DISTINCT 12 + - COUNT ( * ) AS col0
----
11

query I rowsort
SELECT + 86 * 17
----
1462

query I rowsort
SELECT ALL + 67 - - - 6
----
61

query II rowsort
SELECT DISTINCT - 98 / - CASE - + 96 WHEN ( - 17 ) - + + 22 THEN - 10 + - + 78 WHEN + - 11 * - 93 THEN NULL ELSE NULL END AS col2, 64 AS col0
----
NULL
64

onlyif mysql # DIV for integer division: 
query I rowsort label-9461
SELECT 5 DIV 70
----
0

skipif mysql # not compatible
query I rowsort label-9461
SELECT 5 / 70
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9462
SELECT COUNT( * ) * ( - + 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-9462
SELECT COUNT ( * ) * ( - + 44 )
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9463
SELECT ALL + CAST( - 96 AS SIGNED ) * 69 * + 67 * 63 + CASE - + COUNT( * ) WHEN + + 25 THEN 93 WHEN 55 THEN - 64 WHEN + 52 THEN + + 17 ELSE - - 43 END AS col0
----
-27959861

skipif mysql # not compatible
query I rowsort label-9463
SELECT ALL + CAST ( - 96 AS INTEGER ) * 69 * + 67 * 63 + CASE - + COUNT ( * ) WHEN + + 25 THEN 93 WHEN 55 THEN - 64 WHEN + 52 THEN + + 17 ELSE - - 43 END AS col0
----
-27959861

query II rowsort
SELECT ALL ( 43 ) AS col2, - ( 44 ) AS col2
----
43
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9465
SELECT ALL - + 34 - - CAST( + + 0 AS SIGNED ) * 90 * - 86
----
-34

skipif mysql # not compatible
query I rowsort label-9465
SELECT ALL - + 34 - - CAST ( + + 0 AS INTEGER ) * 90 * - 86
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9466
SELECT ALL SUM( + - 9 ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-9466
SELECT ALL SUM ( + - 9 ) AS col1
----
-9

query I rowsort
SELECT 7 * + 27 AS col2
----
189

query I rowsort
SELECT 42 + + 36
----
78

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9469
SELECT 88 AS col2, + CASE 33 WHEN + COALESCE ( SUM( ALL + 10 ), + ( 48 ) ) * + - CAST( 66 AS DECIMAL ) THEN NULL ELSE 74 END AS col0
----
88
74

skipif mysql # not compatible
query II rowsort label-9469
SELECT 88 AS col2, + CASE 33 WHEN + COALESCE ( SUM ( ALL + 10 ), + ( 48 ) ) * + - CAST ( 66 AS REAL ) THEN NULL ELSE 74 END AS col0
----
88
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9470
SELECT ALL - 90, 34 + + ( - 81 ) + 85 - + - CASE - 85 WHEN 71 + - + NULLIF ( 61, COUNT( * ) ) + - - CAST( NULL AS SIGNED ) - - 67 + + - 63 * + 9 THEN NULL WHEN 97 + - + 38 - + ( + - 74 ) + 42 THEN - + 94 * - AVG ( DISTINCT 99 ) WHEN 43 + + ( - COUNT( * ) ) * ( - 19 ) + - ( + COUNT( * ) ) * 33 * - 82 THEN NULL ELSE NULL END AS col2
----
-90
NULL

skipif mysql # not compatible
query II rowsort label-9470
SELECT ALL - 90, 34 + + ( - 81 ) + 85 - + - CASE - 85 WHEN 71 + - + NULLIF ( 61, COUNT ( * ) ) + - - CAST ( NULL AS INTEGER ) - - 67 + + - 63 * + 9 THEN NULL WHEN 97 + - + 38 - + ( + - 74 ) + 42 THEN - + 94 * - AVG ( DISTINCT 99 ) WHEN 43 + + ( - COUNT ( * ) ) * ( - 19 ) + - ( + COUNT ( * ) ) * 33 * - 82 THEN NULL ELSE NULL END AS col2
----
-90
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT DISTINCT - COUNT( - - 59 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9471
SELECT DISTINCT - COUNT ( - - 59 ) AS col2
----
-1

query II rowsort
SELECT ALL - NULLIF ( - - 4, 64 ), - 78 col0
----
-4
-78

query I rowsort
SELECT DISTINCT - 44 + 54 + 77 - + + 22 * 95 AS col0
----
-2003

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9474
SELECT ALL - 27 + - 55 / - - CAST( NULL AS SIGNED ) AS col2, - 50 - 56 AS col0
----
NULL
-106

skipif mysql # not compatible
query II rowsort label-9474
SELECT ALL - 27 + - 55 / - - CAST ( NULL AS INTEGER ) AS col2, - 50 - 56 AS col0
----
NULL
-106

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9475
SELECT + 81, CAST( - + CAST( NULL AS DECIMAL ) AS SIGNED ) * - ( 65 ) + - 31 * 83 + CAST( 78 AS SIGNED ) AS col0
----
81
NULL

skipif mysql # not compatible
query II rowsort label-9475
SELECT + 81, CAST ( - + CAST ( NULL AS REAL ) AS INTEGER ) * - ( 65 ) + - 31 * 83 + CAST ( 78 AS INTEGER ) AS col0
----
81
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9476
SELECT 31 AS col0, - MIN( DISTINCT - 7 )
----
31
7

skipif mysql # not compatible
query II rowsort label-9476
SELECT 31 AS col0, - MIN ( DISTINCT - 7 )
----
31
7

query I rowsort
SELECT 77 * + - 94 AS col1
----
-7238

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9478
SELECT ALL + 28 + - 58 + + + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9478
SELECT ALL + 28 + - 58 + + + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT 76 * 82
----
6232

query I rowsort
SELECT ALL - 64 + 39 * 17 AS col1
----
599

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT ALL COUNT( * ) + 55 * CASE + 45 WHEN + 57 + - 24 * + COUNT( * ) THEN + 61 WHEN - 69 + COUNT( * ) THEN COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9481
SELECT ALL COUNT ( * ) + 55 * CASE + 45 WHEN + 57 + - 24 * + COUNT ( * ) THEN + 61 WHEN - 69 + COUNT ( * ) THEN COUNT ( * ) END AS col0
----
NULL

query I rowsort
SELECT ( + 82 ) * 41 + 44
----
3406

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT 2 - 66 * - COUNT( * ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-9483
SELECT 2 - 66 * - COUNT ( * ) AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9484
SELECT 76 + + COUNT( 93 ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-9484
SELECT 76 + + COUNT ( 93 ) AS col2
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9485
SELECT 92 + CAST( - 31 AS SIGNED ) * 5 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-9485
SELECT 92 + CAST ( - 31 AS INTEGER ) * 5 AS col2
----
-63

query I rowsort
SELECT ALL 70 * + 23 AS col2
----
1610

query I rowsort
SELECT DISTINCT - 20 * + 69
----
-1380

query I rowsort
SELECT ALL + 66 - 78 col0
----
-12

query I rowsort
SELECT 11 + 11
----
22

query I rowsort
SELECT ALL - 2 * + COALESCE ( + 81, + 95 )
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT DISTINCT MIN( ALL 68 )
----
68

skipif mysql # not compatible
query I rowsort label-9491
SELECT DISTINCT MIN ( ALL 68 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9492
SELECT COUNT( * ) + + 75 AS col0
----
76

skipif mysql # not compatible
query I rowsort label-9492
SELECT COUNT ( * ) + + 75 AS col0
----
76

query I rowsort
SELECT 7 * - 30 col1
----
-210

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9494
SELECT DISTINCT COUNT( * ) DIV - 26 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9494
SELECT DISTINCT COUNT ( * ) / - 26 AS col0
----
0

query I rowsort
SELECT ALL ( - 30 ) * - 65 AS col2
----
1950

onlyif mysql # DIV for integer division: 
query I rowsort label-9496
SELECT DISTINCT CASE 87 WHEN 38 DIV + ( 8 ) THEN NULL WHEN 45 DIV 92 THEN NULL ELSE 25 END DIV - 37 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9496
SELECT DISTINCT CASE 87 WHEN 38 / + ( 8 ) THEN NULL WHEN 45 / 92 THEN NULL ELSE 25 END / - 37 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT DISTINCT 91 + + COALESCE ( ( - 67 ), - 96, + SUM( DISTINCT 21 ) )
----
24

skipif mysql # not compatible
query I rowsort label-9497
SELECT DISTINCT 91 + + COALESCE ( ( - 67 ), - 96, + SUM ( DISTINCT 21 ) )
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9498
SELECT DISTINCT 50 + - COUNT( 78 - 6 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9498
SELECT DISTINCT 50 + - COUNT ( 78 - 6 ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 61 * - 15
----
-915

query I rowsort
SELECT CASE + 34 WHEN + CASE 82 WHEN 87 * + 46 THEN - 94 ELSE NULL END THEN - 31 * 27 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT 31 * 3 + 73 AS col2
----
166

onlyif mysql # DIV for integer division: 
query I rowsort label-9502
SELECT 95 DIV 72 - - 42 * + 14
----
589

skipif mysql # not compatible
query I rowsort label-9502
SELECT 95 / 72 - - 42 * + 14
----
589

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9503
SELECT COALESCE ( CAST( NULL AS SIGNED ), COUNT( * ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-9503
SELECT COALESCE ( CAST ( NULL AS INTEGER ), COUNT ( * ) ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9504
SELECT + MIN( DISTINCT 5 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-9504
SELECT + MIN ( DISTINCT 5 ) AS col2
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9505
SELECT COALESCE ( + 59, + ( + 30 ) * + MIN( - 72 ) + 96, - ( COUNT( * ) ) DIV + 66 ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-9505
SELECT COALESCE ( + 59, + ( + 30 ) * + MIN ( - 72 ) + 96, - ( COUNT ( * ) ) / + 66 ) AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9506
SELECT COUNT( ALL 4 )
----
1

skipif mysql # not compatible
query I rowsort label-9506
SELECT COUNT ( ALL 4 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT 69 * - ( 31 ) + SUM( ALL + 86 )
----
-2053

skipif mysql # not compatible
query I rowsort label-9507
SELECT 69 * - ( 31 ) + SUM ( ALL + 86 )
----
-2053

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT - COALESCE ( 21, 9, ( - 62 ) ) * + COUNT( - 31 )
----
-21

skipif mysql # not compatible
query I rowsort label-9508
SELECT - COALESCE ( 21, 9, ( - 62 ) ) * + COUNT ( - 31 )
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9509
SELECT DISTINCT NULLIF ( 27, 36 + CAST( - 57 AS SIGNED ) ) / CASE 89 + 74 WHEN 99 / 50 THEN 0 * + SUM( 46 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9509
SELECT DISTINCT NULLIF ( 27, 36 + CAST ( - 57 AS INTEGER ) ) / CASE 89 + 74 WHEN 99 / 50 THEN 0 * + SUM ( 46 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9510
SELECT - - CAST( COUNT( * ) AS SIGNED ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9510
SELECT - - CAST ( COUNT ( * ) AS INTEGER ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + - ( 37 ) * 60 AS col2
----
-2220

query I rowsort
SELECT + 41 * - 63
----
-2583

query I rowsort
SELECT - 16 + 50 AS col1
----
34

query I rowsort
SELECT - 29 + 35
----
6

query I rowsort
SELECT ALL - + 38 - 58 AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9516
SELECT SUM( DISTINCT + 12 ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-9516
SELECT SUM ( DISTINCT + 12 ) AS col2
----
12

query I rowsort
SELECT ALL + 59 - 61 * - 57 AS col1
----
3536

onlyif mysql # DIV for integer division: 
query I rowsort label-9518
SELECT - 4 DIV - 81 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9518
SELECT - 4 / - 81 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9519
SELECT ALL + NULLIF ( 96, - 43 ) DIV 77 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9519
SELECT ALL + NULLIF ( 96, - 43 ) / 77 AS col2
----
1

query I rowsort
SELECT - + 84 - COALESCE ( - 66 - 44, + 49 ) * + 2
----
136

onlyif mysql # DIV for integer division: 
query I rowsort label-9521
SELECT ALL + 15 DIV - 66
----
0

skipif mysql # not compatible
query I rowsort label-9521
SELECT ALL + 15 / - 66
----
0

query I rowsort
SELECT DISTINCT NULLIF ( + ( - 19 ), - 43 * 90 )
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9523
SELECT ALL - - 63 * COALESCE ( + 21 + - COUNT( * ), 7 + 32 DIV 98 )
----
1260

skipif mysql # not compatible
query I rowsort label-9523
SELECT ALL - - 63 * COALESCE ( + 21 + - COUNT ( * ), 7 + 32 / 98 )
----
1260

query I rowsort
SELECT - 62 + 58 * 42 AS col0
----
2374

onlyif mysql # aggregate syntax: 
query I rowsort label-9525
SELECT DISTINCT - NULLIF ( 64, 85 ) + + COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-9525
SELECT DISTINCT - NULLIF ( 64, 85 ) + + COUNT ( * )
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9526
SELECT ALL + 72 * - ( - 35 ) * - ( - 6 DIV ( COALESCE ( + 16, + SUM( ALL 61 ) + 97 ) ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9526
SELECT ALL + 72 * - ( - 35 ) * - ( - 6 / ( COALESCE ( + 16, + SUM ( ALL 61 ) + 97 ) ) ) AS col2
----
0

query I rowsort
SELECT - 38 * + + 33 AS col2
----
-1254

query I rowsort
SELECT DISTINCT 50 + + ( + 81 ) AS col1
----
131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9529
SELECT ALL + CAST( NULL AS SIGNED ) + + 20 - - 5 * + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-9529
SELECT ALL + CAST ( NULL AS INTEGER ) + + 20 - - 5 * + 59
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9530
SELECT + COALESCE ( - - 45, 36 DIV 82, - 93 * - 54 + 64 ) + + 93 AS col1
----
138

skipif mysql # not compatible
query I rowsort label-9530
SELECT + COALESCE ( - - 45, 36 / 82, - 93 * - 54 + 64 ) + + 93 AS col1
----
138

query I rowsort
SELECT DISTINCT 14 + - 95
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9532
SELECT ALL 49 DIV 4 * + MIN( ( 64 ) DIV + 71 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-9532
SELECT ALL 49 / 4 * + MIN ( ( 64 ) / + 71 ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT + MIN( DISTINCT + + ( - 49 ) ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-9533
SELECT + MIN ( DISTINCT + + ( - 49 ) ) AS col1
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-9534
SELECT DISTINCT + 5 DIV + 96 + 57 * 46 AS col0
----
2622

skipif mysql # not compatible
query I rowsort label-9534
SELECT DISTINCT + 5 / + 96 + 57 * 46 AS col0
----
2622

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9535
SELECT + 48 * + CAST( + 41 AS SIGNED )
----
1968

skipif mysql # not compatible
query I rowsort label-9535
SELECT + 48 * + CAST ( + 41 AS INTEGER )
----
1968

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9536
SELECT ALL COUNT( * ) DIV + + 70 + - 33
----
-33

skipif mysql # not compatible
query I rowsort label-9536
SELECT ALL COUNT ( * ) / + + 70 + - 33
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-9537
SELECT ALL 13 DIV - 62
----
0

skipif mysql # not compatible
query I rowsort label-9537
SELECT ALL 13 / - 62
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9538
SELECT ALL 19 DIV 6 * 16 - + 11 col0
----
37

skipif mysql # not compatible
query I rowsort label-9538
SELECT ALL 19 / 6 * 16 - + 11 col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9539
SELECT DISTINCT 48 * - - COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-9539
SELECT DISTINCT 48 * - - COUNT ( * )
----
48

query I rowsort
SELECT ALL 7 * + 68
----
476

query I rowsort
SELECT 1 * - 40 - + 52 * 59 AS col1
----
-3108

query I rowsort
SELECT + 77 * + 11 * 5
----
4235

query I rowsort
SELECT DISTINCT - 62 * 23 * - 34 AS col2
----
48484

query I rowsort
SELECT ALL 78 * 29 + 17 - + 39
----
2240

query I rowsort
SELECT + - 24 - 7 * + 20
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT MAX( ALL - ( + 53 ) ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-9546
SELECT MAX ( ALL - ( + 53 ) ) AS col1
----
-53

query I rowsort
SELECT DISTINCT NULLIF ( + 40, + 8 ) * 81
----
3240

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT ALL + + ( - + COUNT( DISTINCT - ( 65 ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9548
SELECT ALL + + ( - + COUNT ( DISTINCT - ( 65 ) ) ) AS col0
----
-1

query I rowsort
SELECT - NULLIF ( + 13, 30 ) * - 2 - 86
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9550
SELECT DISTINCT + + 40 * + COUNT( * ) * 36 AS col2
----
1440

skipif mysql # not compatible
query I rowsort label-9550
SELECT DISTINCT + + 40 * + COUNT ( * ) * 36 AS col2
----
1440

query I rowsort
SELECT - - 25 * - 52
----
-1300

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT ALL 63 * + COUNT( + 35 )
----
63

skipif mysql # not compatible
query I rowsort label-9552
SELECT ALL 63 * + COUNT ( + 35 )
----
63

query I rowsort
SELECT + 33 + ( 22 )
----
55

query I rowsort
SELECT - 2 - - 4 col1
----
2

query I rowsort
SELECT - 27 * 91 + + ( 37 + 94 )
----
-2326

onlyif mysql # aggregate syntax: 
query I rowsort label-9556
SELECT ALL - COALESCE ( MIN( + 11 ), + COUNT( * ) + 50 * + 58 )
----
-11

skipif mysql # not compatible
query I rowsort label-9556
SELECT ALL - COALESCE ( MIN ( + 11 ), + COUNT ( * ) + 50 * + 58 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9557
SELECT + 60 + + MIN( + 1 ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-9557
SELECT + 60 + + MIN ( + 1 ) AS col0
----
61

query I rowsort
SELECT - 29 * - - 0 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9559
SELECT - + 42 DIV - 72 + - 0 DIV + 2
----
0

skipif mysql # not compatible
query I rowsort label-9559
SELECT - + 42 / - 72 + - 0 / + 2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9560
SELECT DISTINCT + COUNT( * ) * - 29 + COUNT( * ) DIV MIN( ALL + 59 + 6 ) col1
----
-29

skipif mysql # not compatible
query I rowsort label-9560
SELECT DISTINCT + COUNT ( * ) * - 29 + COUNT ( * ) / MIN ( ALL + 59 + 6 ) col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT DISTINCT + 2 * + 25 * - 56 - + ( 80 + + COUNT( * ) ) + 28 AS col1
----
-2853

skipif mysql # not compatible
query I rowsort label-9561
SELECT DISTINCT + 2 * + 25 * - 56 - + ( 80 + + COUNT ( * ) ) + 28 AS col1
----
-2853

query I rowsort
SELECT ALL - 73 * - 32 * + 10 + 52
----
23412

query I rowsort
SELECT - + 98 + - - 43
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9564
SELECT ALL 27 + + + 92 * 41 - - COUNT( * ) * 29 AS col1
----
3828

skipif mysql # not compatible
query I rowsort label-9564
SELECT ALL 27 + + + 92 * 41 - - COUNT ( * ) * 29 AS col1
----
3828

onlyif mysql # aggregate syntax: 
query I rowsort label-9565
SELECT DISTINCT - COUNT( * ) + + + CASE - - 88 WHEN - 91 * + 93 + 53 THEN 94 WHEN + 11 THEN - 20 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9565
SELECT DISTINCT - COUNT ( * ) + + + CASE - - 88 WHEN - 91 * + 93 + 53 THEN 94 WHEN + 11 THEN - 20 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9566
SELECT - 58 AS col0, COUNT( * )
----
-58
1

skipif mysql # not compatible
query II rowsort label-9566
SELECT - 58 AS col0, COUNT ( * )
----
-58
1

query I rowsort
SELECT + 26 + + - ( - 74 ) + 65 * 30 AS col2
----
2050

query I rowsort
SELECT + 85 * - ( - 85 )
----
7225

query I rowsort
SELECT - 91 * 68
----
-6188

onlyif mysql # DIV for integer division: 
query I rowsort label-9570
SELECT - 8 DIV 36
----
0

skipif mysql # not compatible
query I rowsort label-9570
SELECT - 8 / 36
----
0

query I rowsort
SELECT DISTINCT - 95 + 98 col2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9572
SELECT 47 col2, COUNT( * )
----
47
1

skipif mysql # not compatible
query II rowsort label-9572
SELECT 47 col2, COUNT ( * )
----
47
1

query I rowsort
SELECT 80 + - 64
----
16

query II rowsort
SELECT ALL 26, 38 + 56 AS col2
----
26
94

query I rowsort
SELECT 57 + 68
----
125

onlyif mysql # aggregate syntax: 
query II rowsort label-9576
SELECT ALL 79 AS col2, COUNT( * ) AS col0
----
79
1

skipif mysql # not compatible
query II rowsort label-9576
SELECT ALL 79 AS col2, COUNT ( * ) AS col0
----
79
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9577
SELECT 67 + - - MAX( DISTINCT + - 68 ) * ( 23 DIV - 88 + - 94 )
----
6459

skipif mysql # not compatible
query I rowsort label-9577
SELECT 67 + - - MAX ( DISTINCT + - 68 ) * ( 23 / - 88 + - 94 )
----
6459

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT DISTINCT COUNT( - 68 ) - - + 53 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-9578
SELECT DISTINCT COUNT ( - 68 ) - - + 53 AS col0
----
54

query I rowsort
SELECT DISTINCT + 23 * - + 58
----
-1334

onlyif mysql # aggregate syntax: 
query II rowsort label-9580
SELECT DISTINCT - 54 AS col0, COUNT( * ) AS col2
----
-54
1

skipif mysql # not compatible
query II rowsort label-9580
SELECT DISTINCT - 54 AS col0, COUNT ( * ) AS col2
----
-54
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9581
SELECT + 65 DIV CAST( + 30 AS SIGNED ) - + CASE - ( 78 ) WHEN 81 THEN NULL WHEN - 62 + ( - 80 ) THEN + 85 ELSE - 91 END * + 96
----
8738

skipif mysql # not compatible
query I rowsort label-9581
SELECT + 65 / CAST ( + 30 AS INTEGER ) - + CASE - ( 78 ) WHEN 81 THEN NULL WHEN - 62 + ( - 80 ) THEN + 85 ELSE - 91 END * + 96
----
8738

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9582
SELECT ( 15 ) * + CAST( NULL AS DECIMAL ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9582
SELECT ( 15 ) * + CAST ( NULL AS REAL ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9583
SELECT COUNT( * ) + + - 39 * ( + 47 ) AS col0
----
-1832

skipif mysql # not compatible
query I rowsort label-9583
SELECT COUNT ( * ) + + - 39 * ( + 47 ) AS col0
----
-1832

onlyif mysql # DIV for integer division: 
query I rowsort label-9584
SELECT ALL - 33 - - 53 DIV 99 + 4 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-9584
SELECT ALL - 33 - - 53 / 99 + 4 AS col0
----
-29

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9585
SELECT 56 * + CAST( NULL AS DECIMAL ) + - 4 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9585
SELECT 56 * + CAST ( NULL AS REAL ) + - 4 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9586
SELECT + 42 * - 33 * + + 13 + - COUNT( * ) AS col1
----
-18019

skipif mysql # not compatible
query I rowsort label-9586
SELECT + 42 * - 33 * + + 13 + - COUNT ( * ) AS col1
----
-18019

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9587
SELECT - CASE - + CAST( + - 26 AS DECIMAL ) WHEN 19 * 9 THEN NULL WHEN 10 THEN ( CAST( + 73 AS SIGNED ) ) WHEN 88 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9587
SELECT - CASE - + CAST ( + - 26 AS REAL ) WHEN 19 * 9 THEN NULL WHEN 10 THEN ( CAST ( + 73 AS INTEGER ) ) WHEN 88 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9588
SELECT + MIN( DISTINCT - 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-9588
SELECT + MIN ( DISTINCT - 7 )
----
-7

query II rowsort
SELECT ALL - 77, 21 AS col1
----
-77
21

onlyif mysql # DIV for integer division: 
query I rowsort label-9590
SELECT ALL - 14 DIV - - 90 - + - 19 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-9590
SELECT ALL - 14 / - - 90 - + - 19 AS col2
----
19

query I rowsort
SELECT 79 + + 82
----
161

query I rowsort
SELECT DISTINCT - 81 * + ( 30 ) AS col0
----
-2430

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9593
SELECT - MIN( DISTINCT + 5 ) DIV COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-9593
SELECT - MIN ( DISTINCT + 5 ) / COUNT ( * )
----
-5

query I rowsort
SELECT ALL 47 * + 2 AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9595
SELECT ALL - 32 * - + 14 * COUNT( * ) AS col2
----
448

skipif mysql # not compatible
query I rowsort label-9595
SELECT ALL - 32 * - + 14 * COUNT ( * ) AS col2
----
448

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT MAX( + - ( 61 ) ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-9596
SELECT MAX ( + - ( 61 ) ) AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT COUNT( * ) + + 11
----
12

skipif mysql # not compatible
query I rowsort label-9597
SELECT COUNT ( * ) + + 11
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT ALL - + CASE - 23 WHEN COUNT( * ) * + 56 THEN 50 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9598
SELECT ALL - + CASE - 23 WHEN COUNT ( * ) * + 56 THEN 50 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT SUM( + + 69 )
----
69

skipif mysql # not compatible
query I rowsort label-9599
SELECT SUM ( + + 69 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9600
SELECT + + CASE - + 31 WHEN - + 98 * - 40 THEN NULL WHEN - 88 THEN - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9600
SELECT + + CASE - + 31 WHEN - + 98 * - 40 THEN NULL WHEN - 88 THEN - COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9601
SELECT ( - 36 ) + + 37 + - COUNT( * ) * COALESCE ( 82 * + COALESCE ( 52 * - 81, ( + COUNT( * ) ) ), 59 DIV - 11, + ( + COUNT( * ) ) * 7 + 2 )
----
345385

skipif mysql # not compatible
query I rowsort label-9601
SELECT ( - 36 ) + + 37 + - COUNT ( * ) * COALESCE ( 82 * + COALESCE ( 52 * - 81, ( + COUNT ( * ) ) ), 59 / - 11, + ( + COUNT ( * ) ) * 7 + 2 )
----
345385

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT DISTINCT 92 + - COUNT( * ) * + 46
----
46

skipif mysql # not compatible
query I rowsort label-9602
SELECT DISTINCT 92 + - COUNT ( * ) * + 46
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9603
SELECT ALL - - COALESCE ( 88, - - 31 * COALESCE ( COUNT( * ) * + 59, 83 ) + 46 )
----
88

skipif mysql # not compatible
query I rowsort label-9603
SELECT ALL - - COALESCE ( 88, - - 31 * COALESCE ( COUNT ( * ) * + 59, 83 ) + 46 )
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9604
SELECT DISTINCT - CAST( + + 76 AS SIGNED ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-9604
SELECT DISTINCT - CAST ( + + 76 AS INTEGER ) AS col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9605
SELECT DISTINCT + COUNT( * ) + + + 40 + NULLIF ( - 50, - 8 * - 79 ) * + 76 AS col0
----
-3759

skipif mysql # not compatible
query I rowsort label-9605
SELECT DISTINCT + COUNT ( * ) + + + 40 + NULLIF ( - 50, - 8 * - 79 ) * + 76 AS col0
----
-3759

query I rowsort
SELECT ALL CASE 59 WHEN 38 / + 35 - + 1 THEN 51 / + 79 END + 22 col1
----
NULL

query I rowsort
SELECT ALL CASE - + 32 WHEN 30 THEN - + 76 + 42 END + 89 * - 35
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT COUNT( * ) - - NULLIF ( - COALESCE ( - - 62, + NULLIF ( 35, - 5 - COUNT( * ) ) * 81 ), 14 ) * - 69
----
4279

skipif mysql # not compatible
query I rowsort label-9608
SELECT COUNT ( * ) - - NULLIF ( - COALESCE ( - - 62, + NULLIF ( 35, - 5 - COUNT ( * ) ) * 81 ), 14 ) * - 69
----
4279

onlyif mysql # aggregate syntax: 
query I rowsort label-9609
SELECT 35 * + 39 * - - COUNT( * ) AS col0
----
1365

skipif mysql # not compatible
query I rowsort label-9609
SELECT 35 * + 39 * - - COUNT ( * ) AS col0
----
1365

query I rowsort
SELECT 71 * - - ( 9 ) AS col1
----
639

query I rowsort
SELECT 77 + + 59 col1
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-9612
SELECT ALL - 82 - - + COALESCE ( MIN( 4 ), - ( - 66 ), 37 )
----
-78

skipif mysql # not compatible
query I rowsort label-9612
SELECT ALL - 82 - - + COALESCE ( MIN ( 4 ), - ( - 66 ), 37 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9613
SELECT 61 - COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-9613
SELECT 61 - COUNT ( * )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT ALL 37 * + 58 * 45 * + + SUM( 84 ) AS col1
----
8111880

skipif mysql # not compatible
query I rowsort label-9614
SELECT ALL 37 * + 58 * 45 * + + SUM ( 84 ) AS col1
----
8111880

onlyif mysql # aggregate syntax: 
query I rowsort label-9615
SELECT ALL 90 - 64 + + COALESCE ( 32, + 30, COUNT( * ) )
----
58

skipif mysql # not compatible
query I rowsort label-9615
SELECT ALL 90 - 64 + + COALESCE ( 32, + 30, COUNT ( * ) )
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-9616
SELECT 86 * 53, - COUNT( * ) AS col2
----
4558
-1

skipif mysql # not compatible
query II rowsort label-9616
SELECT 86 * 53, - COUNT ( * ) AS col2
----
4558
-1

query I rowsort
SELECT 95 * - 46 * + 42
----
-183540

onlyif mysql # aggregate syntax: 
query I rowsort label-9618
SELECT - SUM( DISTINCT ( + - 59 ) ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-9618
SELECT - SUM ( DISTINCT ( + - 59 ) ) AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9619
SELECT COUNT( * ) + 97 + + 62 + - - 69 * + 12 * 34 AS col0
----
28312

skipif mysql # not compatible
query I rowsort label-9619
SELECT COUNT ( * ) + 97 + + 62 + - - 69 * + 12 * 34 AS col0
----
28312

query I rowsort
SELECT 5 - 69 * + 58 - - - ( 88 )
----
-4085

query I rowsort
SELECT ALL - 46 * + - 70 AS col2
----
3220

query I rowsort
SELECT 76 * - - 0 AS col0
----
0

query I rowsort
SELECT 11 + + - 57 * 87
----
-4948

query I rowsort
SELECT DISTINCT - ( NULLIF ( - 25, + ( 33 ) / - ( - 28 ) + 61 / 52 ) )
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9625
SELECT DISTINCT - 85 * - CAST( - ( - 93 ) AS SIGNED ) * 82 + 69 * + 11
----
648969

skipif mysql # not compatible
query I rowsort label-9625
SELECT DISTINCT - 85 * - CAST ( - ( - 93 ) AS INTEGER ) * 82 + 69 * + 11
----
648969

query I rowsort
SELECT ALL - - 31 * + - 10 + 76 AS col2
----
-234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9627
SELECT + 35 * - 12 * - 74 + - - 60 + - CAST( - ( + 55 ) AS SIGNED ) AS col0
----
31195

skipif mysql # not compatible
query I rowsort label-9627
SELECT + 35 * - 12 * - 74 + - - 60 + - CAST ( - ( + 55 ) AS INTEGER ) AS col0
----
31195

onlyif mysql # aggregate syntax: 
query I rowsort label-9628
SELECT ALL - NULLIF ( NULLIF ( + + CASE + SUM( 55 ) WHEN 68 THEN NULL WHEN - 68 + - 27 THEN 20 END, - 19 ), - 31 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9628
SELECT ALL - NULLIF ( NULLIF ( + + CASE + SUM ( 55 ) WHEN 68 THEN NULL WHEN - 68 + - 27 THEN 20 END, - 19 ), - 31 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9629
SELECT CAST( + + 30 AS SIGNED ) * - 23 col2
----
-690

skipif mysql # not compatible
query I rowsort label-9629
SELECT CAST ( + + 30 AS INTEGER ) * - 23 col2
----
-690

query I rowsort
SELECT 50 - + ( + + 88 ) AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT ALL 81 + + - 41 - + COUNT( * ) - - + 73 * 66
----
4857

skipif mysql # not compatible
query I rowsort label-9631
SELECT ALL 81 + + - 41 - + COUNT ( * ) - - + 73 * 66
----
4857

query I rowsort
SELECT - 51 - - 92 AS col0
----
41

query I rowsort
SELECT DISTINCT - + 14 + 18
----
4

query I rowsort
SELECT ALL 8 * + 0 AS col2
----
0

query II rowsort
SELECT ALL - 76 + - 60 AS col2, COALESCE ( + 87, + 26 + + 80 ) col2
----
-136
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9636
SELECT 61 - - 56 + - COUNT( * ) * + 20 * - COALESCE ( + 53, 39 * - 1 ) + 48 * ( - 60 * - 70 ) DIV + 23
----
9942

skipif mysql # not compatible
query I rowsort label-9636
SELECT 61 - - 56 + - COUNT ( * ) * + 20 * - COALESCE ( + 53, 39 * - 1 ) + 48 * ( - 60 * - 70 ) / + 23
----
9942

query I rowsort
SELECT ALL 97 * + 47
----
4559

onlyif mysql # aggregate syntax: 
query I rowsort label-9638
SELECT - MIN( ALL 73 ) * + - 40 + 39
----
2959

skipif mysql # not compatible
query I rowsort label-9638
SELECT - MIN ( ALL 73 ) * + - 40 + 39
----
2959

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9639
SELECT + AVG ( DISTINCT - 87 ) - - 43 + CASE - - 54 WHEN 30 THEN 83 * 43 WHEN + CAST( 54 AS SIGNED ) - + NULLIF ( - 27 - 77, 29 ) THEN NULL END + + 94 / - NULLIF ( - COUNT( * ), 11 + - 27 ) * 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9639
SELECT + AVG ( DISTINCT - 87 ) - - 43 + CASE - - 54 WHEN 30 THEN 83 * 43 WHEN + CAST ( 54 AS INTEGER ) - + NULLIF ( - 27 - 77, 29 ) THEN NULL END + + 94 / - NULLIF ( - COUNT ( * ), 11 + - 27 ) * 77 AS col1
----
NULL

query I rowsort
SELECT + 79 * 20 * + 6 * - 21 * + 25 * 80
----
-398160000

onlyif mysql # DIV for integer division: 
query I rowsort label-9641
SELECT + 38 + - + 76 + 62 DIV ( + 40 )
----
-37

skipif mysql # not compatible
query I rowsort label-9641
SELECT + 38 + - + 76 + 62 / ( + 40 )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9642
SELECT ALL 50 - - COUNT( * ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-9642
SELECT ALL 50 - - COUNT ( * ) AS col1
----
51

query I rowsort
SELECT + 56 * - + 5
----
-280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9644
SELECT + COUNT( * ) + + + 40 + 32 + 75 * - - COALESCE ( CASE ( 33 ) WHEN - 43 THEN 72 + - ( 22 ) DIV - 24 WHEN - NULLIF ( + 73, + 60 ) THEN 48 END, 68 + - COUNT( * ) ) * + 41 - + COUNT( * ) * + 13 AS col2
----
206085

skipif mysql # not compatible
query I rowsort label-9644
SELECT + COUNT ( * ) + + + 40 + 32 + 75 * - - COALESCE ( CASE ( 33 ) WHEN - 43 THEN 72 + - ( 22 ) / - 24 WHEN - NULLIF ( + 73, + 60 ) THEN 48 END, 68 + - COUNT ( * ) ) * + 41 - + COUNT ( * ) * + 13 AS col2
----
206085

query I rowsort
SELECT - CASE + + 98 WHEN - 11 * - 5 + - - 35 + + 66 THEN + 3 WHEN - 12 * - 76 THEN NULL ELSE + 15 * - 19 END AS col1
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-9646
SELECT + NULLIF ( + + NULLIF ( - COUNT( * ), - - 32 * + 59 ), - ( 36 ) ) + 81 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-9646
SELECT + NULLIF ( + + NULLIF ( - COUNT ( * ), - - 32 * + 59 ), - ( 36 ) ) + 81 AS col0
----
80

query I rowsort
SELECT ALL 84 * - - 66
----
5544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9648
SELECT + 89 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9648
SELECT + 89 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT - SUM( + 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-9649
SELECT - SUM ( + 6 )
----
-6

query I rowsort
SELECT - 54 + 98 * 74
----
7198

onlyif mysql # aggregate syntax: 
query II rowsort label-9651
SELECT - 30 + + 1 + - - COUNT( * ) AS col2, 26
----
-28
26

skipif mysql # not compatible
query II rowsort label-9651
SELECT - 30 + + 1 + - - COUNT ( * ) AS col2, 26
----
-28
26

query I rowsort
SELECT ALL 36 * - 15
----
-540

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT + COUNT( * ) / - COALESCE ( MAX( + 85 ), - ( 34 ) + + 84 ) * CASE - 18 WHEN + 40 THEN 77 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9653
SELECT + COUNT ( * ) / - COALESCE ( MAX ( + 85 ), - ( 34 ) + + 84 ) * CASE - 18 WHEN + 40 THEN 77 END
----
NULL

query I rowsort
SELECT ALL 48 * - - 97
----
4656

query II rowsort
SELECT ALL 8, - 87 AS col0
----
8
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-9656
SELECT - - 87 DIV 63
----
1

skipif mysql # not compatible
query I rowsort label-9656
SELECT - - 87 / 63
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT ALL - 81 + + COUNT( * ) + - 54
----
-134

skipif mysql # not compatible
query I rowsort label-9657
SELECT ALL - 81 + + COUNT ( * ) + - 54
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-9658
SELECT MAX( DISTINCT - 82 )
----
-82

skipif mysql # not compatible
query I rowsort label-9658
SELECT MAX ( DISTINCT - 82 )
----
-82

query I rowsort
SELECT DISTINCT - ( 17 ) * - - 4 * - + 73 + + 64 + + ( - 69 ) * 56
----
1164

query I rowsort
SELECT 35 * + - 45 + 38 AS col1
----
-1537

query I rowsort
SELECT - + 60 + - - 36 AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9662
SELECT DISTINCT + + CASE + + 60 WHEN - 32 THEN COUNT( * ) ELSE + 20 * 31 END
----
620

skipif mysql # not compatible
query I rowsort label-9662
SELECT DISTINCT + + CASE + + 60 WHEN - 32 THEN COUNT ( * ) ELSE + 20 * 31 END
----
620

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT DISTINCT + COUNT( * ) * MAX( DISTINCT - ( NULLIF ( - 31, 25 ) ) ) * - 24 + + 12
----
-732

skipif mysql # not compatible
query I rowsort label-9663
SELECT DISTINCT + COUNT ( * ) * MAX ( DISTINCT - ( NULLIF ( - 31, 25 ) ) ) * - 24 + + 12
----
-732

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT - + 46 * + 91 * - 27 + - 20 + + + COUNT( * ) + + COUNT( * ) col1
----
113004

skipif mysql # not compatible
query I rowsort label-9664
SELECT - + 46 * + 91 * - 27 + - 20 + + + COUNT ( * ) + + COUNT ( * ) col1
----
113004

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9665
SELECT ALL - 89 * - - CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) * 68 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9665
SELECT ALL - 89 * - - CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) * 68 + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9666
SELECT DISTINCT + COUNT( - 34 ) * - 41 * - 20 + CAST( NULL AS SIGNED ) + + 73 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9666
SELECT DISTINCT + COUNT ( - 34 ) * - 41 * - 20 + CAST ( NULL AS INTEGER ) + + 73 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + - 41 AS col0
----
-41

query I rowsort
SELECT - NULLIF ( 43, - + 59 ) * - 3 + 48 * 60 AS col0
----
3009

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9669
SELECT - 20 * - 12 * 98 + 36 + + - 56 - COUNT( * ) DIV + 38
----
23500

skipif mysql # not compatible
query I rowsort label-9669
SELECT - 20 * - 12 * 98 + 36 + + - 56 - COUNT ( * ) / + 38
----
23500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9670
SELECT ALL + + CAST( + 15 AS SIGNED )
----
15

skipif mysql # not compatible
query I rowsort label-9670
SELECT ALL + + CAST ( + 15 AS INTEGER )
----
15

query I rowsort
SELECT + 98 + - 13
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9672
SELECT NULLIF ( - - 66, NULLIF ( MAX( - 41 ), 2 * - 43 ) / 10 - 33 / - 11 )
----
66

skipif mysql # not compatible
query I rowsort label-9672
SELECT NULLIF ( - - 66, NULLIF ( MAX ( - 41 ), 2 * - 43 ) / 10 - 33 / - 11 )
----
66

query II rowsort
SELECT DISTINCT + 12 AS col1, + 38 AS col2
----
12
38

onlyif mysql # aggregate syntax: 
query II rowsort label-9674
SELECT ALL COUNT( * ) * + - 70 * 11 - 38, + ( + MAX( DISTINCT - 90 ) ) * + 13 AS col1
----
-808
-1170

skipif mysql # not compatible
query II rowsort label-9674
SELECT ALL COUNT ( * ) * + - 70 * 11 - 38, + ( + MAX ( DISTINCT - 90 ) ) * + 13 AS col1
----
-808
-1170

query II rowsort
SELECT - 56 * - 1 AS col0, + 50 AS col1
----
56
50

onlyif mysql # aggregate syntax: 
query II rowsort label-9676
SELECT COUNT( * ) AS col0, 56
----
1
56

skipif mysql # not compatible
query II rowsort label-9676
SELECT COUNT ( * ) AS col0, 56
----
1
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9677
SELECT ALL 79 * - CAST( NULL AS SIGNED ) - + 57 + - + CASE 31 WHEN - 73 * + 32 + + 3 * 46 THEN - 92 ELSE NULL END * + COALESCE ( 93 + ( 32 ), + 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9677
SELECT ALL 79 * - CAST ( NULL AS INTEGER ) - + 57 + - + CASE 31 WHEN - 73 * + 32 + + 3 * 46 THEN - 92 ELSE NULL END * + COALESCE ( 93 + ( 32 ), + 23 )
----
NULL

query II rowsort
SELECT + NULLIF ( 8, + 63 ) * + 9, 26 AS col1
----
72
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9679
SELECT - COALESCE ( - + 35, - - CASE - - 76 WHEN - + 37 * + CAST( NULL AS SIGNED ) * - CAST( 56 / - ( - 15 ) AS SIGNED ) THEN SUM( - 82 ) * - 42 WHEN 29 THEN COUNT( * ) ELSE + 45 END ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-9679
SELECT - COALESCE ( - + 35, - - CASE - - 76 WHEN - + 37 * + CAST ( NULL AS INTEGER ) * - CAST ( 56 / - ( - 15 ) AS INTEGER ) THEN SUM ( - 82 ) * - 42 WHEN 29 THEN COUNT ( * ) ELSE + 45 END ) AS col1
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9680
SELECT - CASE - 66 WHEN + 12 THEN NULL ELSE + CAST( 27 AS SIGNED ) END - + 84
----
-111

skipif mysql # not compatible
query I rowsort label-9680
SELECT - CASE - 66 WHEN + 12 THEN NULL ELSE + CAST ( 27 AS INTEGER ) END - + 84
----
-111

query I rowsort
SELECT + 96 + 71 * 40
----
2936

onlyif mysql # aggregate syntax: 
query I rowsort label-9682
SELECT MAX( 62 ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-9682
SELECT MAX ( 62 ) AS col1
----
62

query I rowsort
SELECT + 72 + + 77
----
149

query II rowsort
SELECT ALL 34, COALESCE ( - - 10, NULLIF ( + - 53, - NULLIF ( 39, - ( 90 ) + 25 ) ), 81 ) AS col0
----
34
10

query I rowsort
SELECT - CASE + 74 WHEN - 65 + + + 62 * - + 37 - - - 9 THEN 98 * + CASE 34 WHEN 39 THEN 47 END ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 92 + + ( - + 90 )
----
-182

query II rowsort
SELECT DISTINCT 91 AS col0, 30 AS col1
----
91
30

query I rowsort
SELECT DISTINCT + 29 + - 86 AS col2
----
-57

query I rowsort
SELECT ALL 42 + - 83 AS col2
----
-41

query I rowsort
SELECT ALL 56 + 95 col2
----
151

onlyif mysql # aggregate syntax: 
query II rowsort label-9691
SELECT ALL 0 + - + COUNT( * ) AS col2, 75 col0
----
-1
75

skipif mysql # not compatible
query II rowsort label-9691
SELECT ALL 0 + - + COUNT ( * ) AS col2, 75 col0
----
-1
75

query I rowsort
SELECT + 39 + 4
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-9693
SELECT COUNT( * ) AS col1, NULLIF ( - 40, - 13 + - + ( - 35 ) + - COUNT( * ) / - AVG ( DISTINCT 94 ) ) * - 3 col1
----
1
120

skipif mysql # not compatible
query II rowsort label-9693
SELECT COUNT ( * ) AS col1, NULLIF ( - 40, - 13 + - + ( - 35 ) + - COUNT ( * ) / - AVG ( DISTINCT 94 ) ) * - 3 col1
----
1
120

onlyif mysql # aggregate syntax: 
query I rowsort label-9694
SELECT ALL + 69 + + - 92 + - 74 * + - COUNT( + 89 )
----
51

skipif mysql # not compatible
query I rowsort label-9694
SELECT ALL + 69 + + - 92 + - 74 * + - COUNT ( + 89 )
----
51

query I rowsort
SELECT + + 64 * - 24 AS col1
----
-1536

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9696
SELECT DISTINCT + 58 * + 33 DIV + COUNT( - - 44 ) + + 49 AS col1
----
1963

skipif mysql # not compatible
query I rowsort label-9696
SELECT DISTINCT + 58 * + 33 / + COUNT ( - - 44 ) + + 49 AS col1
----
1963

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9697
SELECT DISTINCT 45 * - + COUNT( + - 38 ) * + CAST( NULL AS SIGNED ) / + AVG ( ALL + 93 ) * 50
----
NULL

skipif mysql # not compatible
query I rowsort label-9697
SELECT DISTINCT 45 * - + COUNT ( + - 38 ) * + CAST ( NULL AS INTEGER ) / + AVG ( ALL + 93 ) * 50
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9698
SELECT DISTINCT + - 44 / - - 89 + - CAST( NULL AS SIGNED ) + - 57 AS col0, + 25 + - ( + 40 ) AS col1
----
NULL
-15

skipif mysql # not compatible
query II rowsort label-9698
SELECT DISTINCT + - 44 / - - 89 + - CAST ( NULL AS INTEGER ) + - 57 AS col0, + 25 + - ( + 40 ) AS col1
----
NULL
-15

query I rowsort
SELECT + - 31 * + 98 AS col2
----
-3038

query II rowsort
SELECT ALL + + 63, + 41 AS col1
----
63
41

query I rowsort
SELECT + + 70 * 44
----
3080

query I rowsort
SELECT - ( - 23 ) * + ( - 26 ) col1
----
-598

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9703
SELECT - + CASE - 36 WHEN 79 THEN - CAST( + NULLIF ( 72, 57 + 37 * + COUNT( * ) ) AS SIGNED ) * + 93 WHEN 64 + 24 THEN NULL END * - COALESCE ( COUNT( * ), 85 * NULLIF ( COUNT( * ), + 96 ) + + 38 ) + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-9703
SELECT - + CASE - 36 WHEN 79 THEN - CAST ( + NULLIF ( 72, 57 + 37 * + COUNT ( * ) ) AS INTEGER ) * + 93 WHEN 64 + 24 THEN NULL END * - COALESCE ( COUNT ( * ), 85 * NULLIF ( COUNT ( * ), + 96 ) + + 38 ) + 9
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9704
SELECT 3 DIV - - 18
----
0

skipif mysql # not compatible
query I rowsort label-9704
SELECT 3 / - - 18
----
0

query II rowsort
SELECT + + 18 AS col2, + 16
----
18
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9706
SELECT - 13 + + + CASE COALESCE ( + NULLIF ( - + 60, + - 20 ), - CASE 28 WHEN CAST( + ( + 71 ) AS SIGNED ) THEN COUNT( * ) / - 36 ELSE NULL END / - COUNT( * ) + 50 ) WHEN + 69 THEN - NULLIF ( + 86, + 20 + - COALESCE ( - ( + ( + COALESCE ( - 71, - 88 * - NULLIF ( AVG ( DISTINCT + 29 ), - 39 ) ) ) ) + - NULLIF ( 56 + 30, COUNT( * ) * 67 - 98 ), + 78 * - 72 ) ) * 75 ELSE - COUNT( * ) END
----
-14

skipif mysql # not compatible
query I rowsort label-9706
SELECT - 13 + + + CASE COALESCE ( + NULLIF ( - + 60, + - 20 ), - CASE 28 WHEN CAST ( + ( + 71 ) AS INTEGER ) THEN COUNT ( * ) / - 36 ELSE NULL END / - COUNT ( * ) + 50 ) WHEN + 69 THEN - NULLIF ( + 86, + 20 + - COALESCE ( - ( + ( + COALESCE ( - 71, - 88 * - NULLIF ( AVG ( DISTINCT + 29 ), - 39 ) ) ) ) + - NULLIF ( 56 + 30, COUNT ( * ) * 67 - 98 ), + 78 * - 72 ) ) * 75 ELSE - COUNT ( * ) END
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-9707
SELECT + - COUNT( * ) col0, 85 + - 79 col1
----
-1
6

skipif mysql # not compatible
query II rowsort label-9707
SELECT + - COUNT ( * ) col0, 85 + - 79 col1
----
-1
6

query I rowsort
SELECT + + ( 18 ) AS col2
----
18

query I rowsort
SELECT 51 * 64 * - - 71 AS col1
----
231744

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9710
SELECT + COALESCE ( + 21, - - 60 + + - 10 - + COUNT( * ), - + CAST( 25 AS SIGNED ) + COUNT( * ) * 68, 39 * 91 ) col1
----
21

skipif mysql # not compatible
query I rowsort label-9710
SELECT + COALESCE ( + 21, - - 60 + + - 10 - + COUNT ( * ), - + CAST ( 25 AS INTEGER ) + COUNT ( * ) * 68, 39 * 91 ) col1
----
21

query I rowsort
SELECT ALL + 93 * - 23
----
-2139

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT ALL - SUM( DISTINCT 81 ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-9712
SELECT ALL - SUM ( DISTINCT 81 ) AS col2
----
-81

query I rowsort
SELECT + 87 * - ( + 46 ) - + 39 AS col1
----
-4041

onlyif mysql # aggregate syntax: 
query I rowsort label-9714
SELECT 86 * - - NULLIF ( - 32, + 64 ) + - COUNT( * ) AS col0
----
-2753

skipif mysql # not compatible
query I rowsort label-9714
SELECT 86 * - - NULLIF ( - 32, + 64 ) + - COUNT ( * ) AS col0
----
-2753

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9715
SELECT DISTINCT + 96 * + + CASE + + 29 WHEN - + ( - + 73 ) THEN - 43 * + 31 * + ( 48 * 93 ) ELSE + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9715
SELECT DISTINCT + 96 * + + CASE + + 29 WHEN - + ( - + 73 ) THEN - 43 * + 31 * + ( 48 * 93 ) ELSE + CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT ( 72 ) + - 27 AS col0
----
45

query I rowsort
SELECT 86 * - 10 AS col2
----
-860

query I rowsort
SELECT ALL + 78 * - ( + 86 ) col0
----
-6708

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9719
SELECT 96 - + - 97 * - 51 + + CAST( - 60 AS SIGNED )
----
-4911

skipif mysql # not compatible
query I rowsort label-9719
SELECT 96 - + - 97 * - 51 + + CAST ( - 60 AS INTEGER )
----
-4911

query I rowsort
SELECT 70 + 33 col0
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9721
SELECT 76 DIV - - COALESCE ( CAST( NULL AS SIGNED ), - 77 * 81 * + + COUNT( * ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-9721
SELECT 76 / - - COALESCE ( CAST ( NULL AS INTEGER ), - 77 * 81 * + + COUNT ( * ) ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9722
SELECT COUNT( * ) * + - 3 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-9722
SELECT COUNT ( * ) * + - 3 AS col0
----
-3

query I rowsort
SELECT 24 * + - 30 + - - 6 + + 10
----
-704

onlyif mysql # aggregate syntax: 
query I rowsort label-9724
SELECT ALL ( + 74 ) * - COUNT( DISTINCT + - ( + - 19 ) ) col1
----
-74

skipif mysql # not compatible
query I rowsort label-9724
SELECT ALL ( + 74 ) * - COUNT ( DISTINCT + - ( + - 19 ) ) col1
----
-74

query I rowsort
SELECT DISTINCT + 42 + + 61 * - 70 AS col1
----
-4228

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9726
SELECT DISTINCT + 34 DIV - COUNT( * ) DIV - COALESCE ( COUNT( * ), ( + + ( - 82 ) ) DIV + NULLIF ( + 64, - COALESCE ( ( - 48 ), 20 - 91, - 69 * 69 + + 16 ) ) + 64 DIV 16, - 7 )
----
34

skipif mysql # not compatible
query I rowsort label-9726
SELECT DISTINCT + 34 / - COUNT ( * ) / - COALESCE ( COUNT ( * ), ( + + ( - 82 ) ) / + NULLIF ( + 64, - COALESCE ( ( - 48 ), 20 - 91, - 69 * 69 + + 16 ) ) + 64 / 16, - 7 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9727
SELECT DISTINCT COUNT( * ) + + ( - 35 )
----
-34

skipif mysql # not compatible
query I rowsort label-9727
SELECT DISTINCT COUNT ( * ) + + ( - 35 )
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9728
SELECT 91 + - COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-9728
SELECT 91 + - COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0
----
91

query I rowsort
SELECT ( 90 ) AS col2
----
90

query I rowsort
SELECT DISTINCT + 73 + + 23
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9731
SELECT ALL - 40 + - + COUNT( * ) * + 67 AS col2
----
-107

skipif mysql # not compatible
query I rowsort label-9731
SELECT ALL - 40 + - + COUNT ( * ) * + 67 AS col2
----
-107

query I rowsort
SELECT ALL + - 45 * - - 79 AS col1
----
-3555

query I rowsort
SELECT DISTINCT + COALESCE ( 34, - 1 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9734
SELECT DISTINCT + COUNT( * ) + 83 AS col2
----
84

skipif mysql # not compatible
query I rowsort label-9734
SELECT DISTINCT + COUNT ( * ) + 83 AS col2
----
84

query I rowsort
SELECT 48 + 29 AS col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9736
SELECT DISTINCT CASE - 72 WHEN 82 * 67 + - - MAX( - 38 ) THEN 24 WHEN 63 + 64 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9736
SELECT DISTINCT CASE - 72 WHEN 82 * 67 + - - MAX ( - 38 ) THEN 24 WHEN 63 + 64 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9737
SELECT ALL - - COALESCE ( COUNT( * ), - 42 + - 6 + 15, - 43 DIV - 13 + 77 )
----
1

skipif mysql # not compatible
query I rowsort label-9737
SELECT ALL - - COALESCE ( COUNT ( * ), - 42 + - 6 + 15, - 43 / - 13 + 77 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9738
SELECT COUNT( * ) + - 26 DIV - - 92
----
1

skipif mysql # not compatible
query I rowsort label-9738
SELECT COUNT ( * ) + - 26 / - - 92
----
1

query II rowsort
SELECT 17 + + 5 col2, 19
----
22
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9740
SELECT ALL - 97 - + + COUNT( * ) + - + 59 * 56 * - 88
----
290654

skipif mysql # not compatible
query I rowsort label-9740
SELECT ALL - 97 - + + COUNT ( * ) + - + 59 * 56 * - 88
----
290654

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT + 49 * - 64 + + 44 + 8 + - COALESCE ( - + 69, ( - 32 ) + + 88 * COUNT( * ), - 15 * - 67 + + CASE 81 + - 43 WHEN + 36 - - 98 / COUNT( * ) THEN + 16 WHEN 62 THEN 96 END ) + + 72
----
-2943

skipif mysql # not compatible
query I rowsort label-9741
SELECT + 49 * - 64 + + 44 + 8 + - COALESCE ( - + 69, ( - 32 ) + + 88 * COUNT ( * ), - 15 * - 67 + + CASE 81 + - 43 WHEN + 36 - - 98 / COUNT ( * ) THEN + 16 WHEN 62 THEN 96 END ) + + 72
----
-2943

query I rowsort
SELECT ALL - 53 * - + ( - 74 )
----
-3922

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT 97 + - 17 + - - 12 * 0 * + COUNT( * ) col1
----
80

skipif mysql # not compatible
query I rowsort label-9743
SELECT 97 + - 17 + - - 12 * 0 * + COUNT ( * ) col1
----
80

query I rowsort
SELECT DISTINCT 73 * - 34 AS col2
----
-2482

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9745
SELECT 80 * + COALESCE ( 43, + 6 * - - CASE - + 92 WHEN - + 0 + CAST( COUNT( * ) AS SIGNED ) - 27 THEN NULL WHEN + MIN( 45 ) THEN 65 + ( 23 ) ELSE NULL END + 5 ) * + 46
----
158240

skipif mysql # not compatible
query I rowsort label-9745
SELECT 80 * + COALESCE ( 43, + 6 * - - CASE - + 92 WHEN - + 0 + CAST ( COUNT ( * ) AS INTEGER ) - 27 THEN NULL WHEN + MIN ( 45 ) THEN 65 + ( 23 ) ELSE NULL END + 5 ) * + 46
----
158240

onlyif mysql # DIV for integer division: 
query II rowsort label-9746
SELECT + 7 AS col1, 43 DIV 19 + - 85
----
7
-83

skipif mysql # not compatible
query II rowsort label-9746
SELECT + 7 AS col1, 43 / 19 + - 85
----
7
-83

query II rowsort
SELECT ALL - 25 AS col0, 98 AS col0
----
-25
98

query I rowsort
SELECT + 70 * 7 + - ( + 41 ) AS col2
----
449

query I rowsort
SELECT 70 * + 62 * - - 64
----
277760

query I rowsort
SELECT 5 + + 92 AS col0
----
97

query II rowsort
SELECT 83, - 53 AS col1
----
83
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9752
SELECT 12 DIV - COUNT( * ) col2
----
-12

skipif mysql # not compatible
query I rowsort label-9752
SELECT 12 / - COUNT ( * ) col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT 15 + - MAX( DISTINCT + 23 )
----
-8

skipif mysql # not compatible
query I rowsort label-9753
SELECT 15 + - MAX ( DISTINCT + 23 )
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9754
SELECT DISTINCT - COALESCE ( COUNT( * ), - 45, SUM( ALL 93 ) ) * 66 * - CAST( NULL AS SIGNED ) + - 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9754
SELECT DISTINCT - COALESCE ( COUNT ( * ), - 45, SUM ( ALL 93 ) ) * 66 * - CAST ( NULL AS INTEGER ) + - 99 AS col2
----
NULL

query I rowsort
SELECT ALL - 92 + + 0 - - 97
----
5

query I rowsort
SELECT 47 * - 44 * + - 56 + - 76
----
115732

query I rowsort
SELECT 5 * + - 25
----
-125

query II rowsort
SELECT 12 AS col2, 56 + - ( 41 ) AS col1
----
12
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9759
SELECT ALL + COUNT( * ) + + 45 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-9759
SELECT ALL + COUNT ( * ) + + 45 AS col2
----
46

query I rowsort
SELECT 30 * + 86
----
2580

onlyif mysql # aggregate syntax: 
query I rowsort label-9761
SELECT DISTINCT + COUNT( * ) + - + 37 * - - 50
----
-1849

skipif mysql # not compatible
query I rowsort label-9761
SELECT DISTINCT + COUNT ( * ) + - + 37 * - - 50
----
-1849

query I rowsort
SELECT ALL COALESCE ( 93, - 15 ) AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT - 35 + COUNT( * ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-9763
SELECT - 35 + COUNT ( * ) AS col0
----
-34

query I rowsort
SELECT ALL + 75 + - - 74
----
149

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9765
SELECT ALL - 53 DIV + + COUNT( * ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-9765
SELECT ALL - 53 / + + COUNT ( * ) AS col1
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9766
SELECT - 44 AS col2, 62 * + 99 * - 99 * + CAST( - 86 AS SIGNED )
----
-44
52258932

skipif mysql # not compatible
query II rowsort label-9766
SELECT - 44 AS col2, 62 * + 99 * - 99 * + CAST ( - 86 AS INTEGER )
----
-44
52258932

query I rowsort
SELECT DISTINCT - - 80 - - 23 col1
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-9768
SELECT DISTINCT + 62 - COUNT( * ) * 11
----
51

skipif mysql # not compatible
query I rowsort label-9768
SELECT DISTINCT + 62 - COUNT ( * ) * 11
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-9769
SELECT DISTINCT COUNT( * ) AS col2, + 8 AS col1
----
1
8

skipif mysql # not compatible
query II rowsort label-9769
SELECT DISTINCT COUNT ( * ) AS col2, + 8 AS col1
----
1
8

query II rowsort
SELECT 81 AS col2, + 0 * 85
----
81
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9771
SELECT - + MIN( + COALESCE ( - 19, + + 80 ) ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-9771
SELECT - + MIN ( + COALESCE ( - 19, + + 80 ) ) AS col1
----
19

query I rowsort
SELECT - + ( - 47 ) AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9773
SELECT - + COUNT( * ) * - MAX( DISTINCT - + 32 ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-9773
SELECT - + COUNT ( * ) * - MAX ( DISTINCT - + 32 ) AS col2
----
-32

query I rowsort
SELECT ALL - - 5 * - 95 + - 75 * + + 66 AS col0
----
-5425

query I rowsort
SELECT ALL + 68 * 8
----
544

onlyif mysql # DIV for integer division: 
query I rowsort label-9776
SELECT - 8 DIV - + 28 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9776
SELECT - 8 / - + 28 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9777
SELECT ALL 48 DIV - - 86 col0
----
0

skipif mysql # not compatible
query I rowsort label-9777
SELECT ALL 48 / - - 86 col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9778
SELECT + COUNT( * ) AS col0, + 85 + + 37 + - - 80 AS col1
----
1
202

skipif mysql # not compatible
query II rowsort label-9778
SELECT + COUNT ( * ) AS col0, + 85 + + 37 + - - 80 AS col1
----
1
202

query I rowsort
SELECT ALL + 7 * + 38 AS col2
----
266

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9780
SELECT ALL + + CAST( - ( + 26 ) AS SIGNED ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-9780
SELECT ALL + + CAST ( - ( + 26 ) AS INTEGER ) AS col2
----
-26

query I rowsort
SELECT ALL 67 * + 77 + 2 AS col2
----
5161

onlyif mysql # DIV for integer division: 
query II rowsort label-9782
SELECT CASE - 52 WHEN + - 38 THEN + 11 END AS col1, + 60 DIV 89 - + 58 * COALESCE ( + 67, + 46 )
----
NULL
-3886

skipif mysql # not compatible
query II rowsort label-9782
SELECT CASE - 52 WHEN + - 38 THEN + 11 END AS col1, + 60 / 89 - + 58 * COALESCE ( + 67, + 46 )
----
NULL
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-9783
SELECT - COUNT( * ) + + 95 + + 95 + + COUNT( * ) + - 65 * - - 76 + 66 * - ( + 46 ) * + 16
----
-53326

skipif mysql # not compatible
query I rowsort label-9783
SELECT - COUNT ( * ) + + 95 + + 95 + + COUNT ( * ) + - 65 * - - 76 + 66 * - ( + 46 ) * + 16
----
-53326

query I rowsort
SELECT ALL NULLIF ( + 4, - 13 ) * + COALESCE ( + 13, 65 - 91 ) + + 44 AS col0
----
96

query I rowsort
SELECT + 26 * + - ( - 71 )
----
1846

query II rowsort
SELECT DISTINCT 79 * ( + 59 ) + + + 20 AS col1, 31 + - + 80
----
4681
-49

query I rowsort
SELECT DISTINCT 55 * - 31 AS col0
----
-1705

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9788
SELECT ALL - 48 * + 31 * + COUNT( * ) + 90 / COUNT( * ) + + + COUNT( * ) + - 99 * + 94 + 50 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9788
SELECT ALL - 48 * + 31 * + COUNT ( * ) + 90 / COUNT ( * ) + + + COUNT ( * ) + - 99 * + 94 + 50 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 41 * + 90 + + 97
----
3787

onlyif mysql # aggregate syntax: 
query I rowsort label-9790
SELECT DISTINCT 84 * SUM( + - 52 ) AS col0
----
-4368

skipif mysql # not compatible
query I rowsort label-9790
SELECT DISTINCT 84 * SUM ( + - 52 ) AS col0
----
-4368

onlyif mysql # aggregate syntax: 
query I rowsort label-9791
SELECT 61 * - 99 + 51 + + COUNT( * ) * - - 40 + 88
----
-5860

skipif mysql # not compatible
query I rowsort label-9791
SELECT 61 * - 99 + 51 + + COUNT ( * ) * - - 40 + 88
----
-5860

query I rowsort
SELECT + NULLIF ( - - ( + - 6 ), - - NULLIF ( - + 85, + 7 * + + 67 * + + 25 + - 84 ) * 22 ) AS col0
----
-6

query I rowsort
SELECT DISTINCT 19 * - 74
----
-1406

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9794
SELECT ALL + COUNT( 23 ) * + ( + + CAST( + 37 AS SIGNED ) ) - + 80 + + + ( + 50 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-9794
SELECT ALL + COUNT ( 23 ) * + ( + + CAST ( + 37 AS INTEGER ) ) - + 80 + + + ( + 50 ) AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9795
SELECT + ( CASE 5 WHEN - 51 + + 36 * + 81 THEN NULL WHEN - MAX( + + COALESCE ( + 67, ( - 84 ) / - 75 ) ) + COUNT( * ) THEN + COUNT( * ) + + 99 * + 37 ELSE NULL END ) + 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9795
SELECT + ( CASE 5 WHEN - 51 + + 36 * + 81 THEN NULL WHEN - MAX ( + + COALESCE ( + 67, ( - 84 ) / - 75 ) ) + COUNT ( * ) THEN + COUNT ( * ) + + 99 * + 37 ELSE NULL END ) + 34 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9796
SELECT COUNT( - + 69 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-9796
SELECT COUNT ( - + 69 ) col1
----
1

query I rowsort
SELECT + 65 - 59
----
6

query I rowsort
SELECT + NULLIF ( 53, - + 3 * 7 * + 9 ) AS col1
----
53

onlyif mysql # DIV for integer division: 
query II rowsort label-9799
SELECT + 36 + 16 - + 83 DIV - - 57 AS col0, - 5
----
51
-5

skipif mysql # not compatible
query II rowsort label-9799
SELECT + 36 + 16 - + 83 / - - 57 AS col0, - 5
----
51
-5

query I rowsort
SELECT - 2 * + 1 - - 54
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9801
SELECT - CASE + 71 WHEN CAST( 43 AS SIGNED ) * - COUNT( * ) THEN NULL ELSE + + MIN( DISTINCT 77 ) END
----
-77

skipif mysql # not compatible
query I rowsort label-9801
SELECT - CASE + 71 WHEN CAST ( 43 AS INTEGER ) * - COUNT ( * ) THEN NULL ELSE + + MIN ( DISTINCT 77 ) END
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-9802
SELECT ALL COUNT( ALL 7 ) AS col1, 29 * + - 6 col0
----
1
-174

skipif mysql # not compatible
query II rowsort label-9802
SELECT ALL COUNT ( ALL 7 ) AS col1, 29 * + - 6 col0
----
1
-174

query I rowsort
SELECT DISTINCT + 46 - 71
----
-25

query I rowsort
SELECT ALL + + 57 * - 33 + - 0 AS col2
----
-1881

query I rowsort
SELECT - 90 + + + 65 * + 88
----
5630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9806
SELECT ALL - ( + - 7 ), + NULLIF ( - + ( + NULLIF ( + 90, CASE - COALESCE ( - CAST( NULL AS SIGNED ), 89 ) WHEN + CAST( NULL AS SIGNED ) * + 24 THEN NULL WHEN 39 + + SUM( 67 ) * + 46 THEN + AVG ( - 17 ) WHEN 79 * 62 THEN NULL ELSE NULL END ) ), COUNT( * ) * + 22 ) AS col0
----
7
-90

skipif mysql # not compatible
query II rowsort label-9806
SELECT ALL - ( + - 7 ), + NULLIF ( - + ( + NULLIF ( + 90, CASE - COALESCE ( - CAST ( NULL AS INTEGER ), 89 ) WHEN + CAST ( NULL AS INTEGER ) * + 24 THEN NULL WHEN 39 + + SUM ( 67 ) * + 46 THEN + AVG ( - 17 ) WHEN 79 * 62 THEN NULL ELSE NULL END ) ), COUNT ( * ) * + 22 ) AS col0
----
7
-90

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9807
SELECT ALL COALESCE ( + 23, + - CASE + ( 34 ) WHEN - 55 THEN + AVG ( DISTINCT + NULLIF ( - 34, + 31 ) ) DIV 78 WHEN + 39 THEN NULL WHEN 10 * CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END )
----
23

skipif mysql # not compatible
query I rowsort label-9807
SELECT ALL COALESCE ( + 23, + - CASE + ( 34 ) WHEN - 55 THEN + AVG ( DISTINCT + NULLIF ( - 34, + 31 ) ) / 78 WHEN + 39 THEN NULL WHEN 10 * CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END )
----
23

query I rowsort
SELECT + 38 + - 4 AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9809
SELECT + - 58 * + MAX( - - 62 )
----
-3596

skipif mysql # not compatible
query I rowsort label-9809
SELECT + - 58 * + MAX ( - - 62 )
----
-3596

query I rowsort
SELECT - + 52 * - - 2 + 60 AS col0
----
-44

query I rowsort
SELECT + CASE - AVG ( + - 24 ) WHEN 35 * + 29 THEN NULL WHEN - 13 THEN 27 * - 57 + - ( 80 ) END + + 20 AS col1
----
NULL

query I rowsort
SELECT + ( + 99 ) col2
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9813
SELECT + 66 + - 99 + + COALESCE ( - 23, + COUNT( * ), 25, - CAST( NULL AS SIGNED ) ) * - 25
----
542

skipif mysql # not compatible
query I rowsort label-9813
SELECT + 66 + - 99 + + COALESCE ( - 23, + COUNT ( * ), 25, - CAST ( NULL AS INTEGER ) ) * - 25
----
542

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9814
SELECT - 49 * + COALESCE ( + + SUM( DISTINCT - 80 ), + ( - - 65 ) + + CASE 30 WHEN - 95 THEN 1 WHEN - COALESCE ( 57, 18 ) THEN NULL ELSE 59 END, COUNT( * ) ) DIV - 79
----
-49

skipif mysql # not compatible
query I rowsort label-9814
SELECT - 49 * + COALESCE ( + + SUM ( DISTINCT - 80 ), + ( - - 65 ) + + CASE 30 WHEN - 95 THEN 1 WHEN - COALESCE ( 57, 18 ) THEN NULL ELSE 59 END, COUNT ( * ) ) / - 79
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9815
SELECT ALL + NULLIF ( - 99, + ( + SUM( + ( + 45 ) ) ) ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-9815
SELECT ALL + NULLIF ( - 99, + ( + SUM ( + ( + 45 ) ) ) ) AS col0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9816
SELECT - - CAST( 91 AS SIGNED ) + + 70 * ( - 94 )
----
-6489

skipif mysql # not compatible
query I rowsort label-9816
SELECT - - CAST ( 91 AS INTEGER ) + + 70 * ( - 94 )
----
-6489

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9817
SELECT DISTINCT CAST( + MAX( - - 0 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9817
SELECT DISTINCT CAST ( + MAX ( - - 0 ) AS INTEGER )
----
0

query I rowsort
SELECT - - 25 + + ( + 12 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT ALL - COUNT( * ) * + 6 + 76
----
70

skipif mysql # not compatible
query I rowsort label-9819
SELECT ALL - COUNT ( * ) * + 6 + 76
----
70

onlyif mysql # DIV for integer division: 
query II rowsort label-9820
SELECT DISTINCT - + 35 DIV 90 AS col1, - 12
----
0
-12

skipif mysql # not compatible
query II rowsort label-9820
SELECT DISTINCT - + 35 / 90 AS col1, - 12
----
0
-12

query II rowsort
SELECT 38, 30 AS col2
----
38
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9822
SELECT - COUNT( + 7 ) * + 80
----
-80

skipif mysql # not compatible
query I rowsort label-9822
SELECT - COUNT ( + 7 ) * + 80
----
-80

query I rowsort
SELECT ALL + 19 * + 18
----
342

query I rowsort
SELECT - 50 * - ( + 42 )
----
2100

query I rowsort
SELECT + 56 + - + 79 + + - 23
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9826
SELECT ALL + NULLIF ( - COUNT( * ), 10 + + MAX( 51 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9826
SELECT ALL + NULLIF ( - COUNT ( * ), 10 + + MAX ( 51 ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9827
SELECT DISTINCT MAX( - 9 ) DIV + 37 + - 17 + 10 - - 30
----
23

skipif mysql # not compatible
query I rowsort label-9827
SELECT DISTINCT MAX ( - 9 ) / + 37 + - 17 + 10 - - 30
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9828
SELECT ALL + 19 * + 75 / - + 91 * + 0 / - CAST( NULL AS SIGNED ) AS col2, - 30 * SUM( - 45 )
----
NULL
1350

skipif mysql # not compatible
query II rowsort label-9828
SELECT ALL + 19 * + 75 / - + 91 * + 0 / - CAST ( NULL AS INTEGER ) AS col2, - 30 * SUM ( - 45 )
----
NULL
1350

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9829
SELECT - 20 + - CAST( + + 53 AS DECIMAL ) * + + ( + CAST( NULL AS SIGNED ) ) + + + 84 + + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-9829
SELECT - 20 + - CAST ( + + 53 AS REAL ) * + + ( + CAST ( NULL AS INTEGER ) ) + + + 84 + + 32
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9830
SELECT ALL 81 DIV 34 + + + 34 + - 89 * - + 83 * + 14 AS col1
----
103454

skipif mysql # not compatible
query I rowsort label-9830
SELECT ALL 81 / 34 + + + 34 + - 89 * - + 83 * + 14 AS col1
----
103454

onlyif mysql # aggregate syntax: 
query II rowsort label-9831
SELECT ALL + COALESCE ( - 26, 15 * 36, - 63 ) AS col0, MIN( 27 )
----
-26
27

skipif mysql # not compatible
query II rowsort label-9831
SELECT ALL + COALESCE ( - 26, 15 * 36, - 63 ) AS col0, MIN ( 27 )
----
-26
27

query I rowsort
SELECT ( 85 ) AS col0
----
85

query I rowsort
SELECT DISTINCT + ( 47 )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9834
SELECT - 84 * - 99 * + - ( + + COUNT( * ) )
----
-8316

skipif mysql # not compatible
query I rowsort label-9834
SELECT - 84 * - 99 * + - ( + + COUNT ( * ) )
----
-8316

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT DISTINCT - 94 * - ( + ( - 55 ) ) * + COUNT( * ) - + - 75 AS col1
----
-5095

skipif mysql # not compatible
query I rowsort label-9835
SELECT DISTINCT - 94 * - ( + ( - 55 ) ) * + COUNT ( * ) - + - 75 AS col1
----
-5095

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT + 42 + - COUNT( * ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-9836
SELECT + 42 + - COUNT ( * ) AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9837
SELECT - 54 * + COUNT( * ) * + - 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9837
SELECT - 54 * + COUNT ( * ) * + - 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT DISTINCT COUNT( DISTINCT + 33 ) * + + 9 * - COUNT( * ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-9838
SELECT DISTINCT COUNT ( DISTINCT + 33 ) * + + 9 * - COUNT ( * ) AS col0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9839
SELECT ALL + CAST( 26 AS SIGNED )
----
26

skipif mysql # not compatible
query I rowsort label-9839
SELECT ALL + CAST ( 26 AS INTEGER )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9840
SELECT ALL COALESCE ( - + 46, + 27, + + 67 * 29 * + 58 + + 41 + - - COUNT( DISTINCT 61 ) * - + 24 + - 4 ) * + 4
----
-184

skipif mysql # not compatible
query I rowsort label-9840
SELECT ALL COALESCE ( - + 46, + 27, + + 67 * 29 * + 58 + + 41 + - - COUNT ( DISTINCT 61 ) * - + 24 + - 4 ) * + 4
----
-184

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT DISTINCT + + ( - COUNT( ALL 22 ) ) * - 84 - + COUNT( * ) - - COALESCE ( - 68, + + 28, - 0 ) - + 9
----
6

skipif mysql # not compatible
query I rowsort label-9841
SELECT DISTINCT + + ( - COUNT ( ALL 22 ) ) * - 84 - + COUNT ( * ) - - COALESCE ( - 68, + + 28, - 0 ) - + 9
----
6

query II rowsort
SELECT DISTINCT + 82, - 17 * - ( - 71 ) AS col2
----
82
-1207

onlyif mysql # aggregate syntax: 
query I rowsort label-9843
SELECT DISTINCT 40 * - ( + ( - NULLIF ( + + 50, COUNT( * ) ) ) )
----
2000

skipif mysql # not compatible
query I rowsort label-9843
SELECT DISTINCT 40 * - ( + ( - NULLIF ( + + 50, COUNT ( * ) ) ) )
----
2000

onlyif mysql # DIV for integer division: 
query I rowsort label-9844
SELECT - 97 DIV - + 15 + 70 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-9844
SELECT - 97 / - + 15 + 70 AS col1
----
76

query I rowsort
SELECT 34 * 23 * - - 7 AS col2
----
5474

onlyif mysql # aggregate syntax: 
query I rowsort label-9846
SELECT - 41 + + COUNT( * ) - + 11
----
-51

skipif mysql # not compatible
query I rowsort label-9846
SELECT - 41 + + COUNT ( * ) - + 11
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9847
SELECT NULLIF ( + COUNT( - - 63 ), - 95 ) + - 46 - + ( + 44 ) * + ( 50 )
----
-2245

skipif mysql # not compatible
query I rowsort label-9847
SELECT NULLIF ( + COUNT ( - - 63 ), - 95 ) + - 46 - + ( + 44 ) * + ( 50 )
----
-2245

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9848
SELECT + 63 DIV COUNT( * ) * - - COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-9848
SELECT + 63 / COUNT ( * ) * - - COUNT ( * )
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-9849
SELECT ALL + 10 DIV ( - ( - 60 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9849
SELECT ALL + 10 / ( - ( - 60 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9850
SELECT DISTINCT + 77 + - + CAST( NULL AS SIGNED ) / - - 1 + + 72 + - 92 + 64 * + - 12 - - 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9850
SELECT DISTINCT + 77 + - + CAST ( NULL AS INTEGER ) / - - 1 + + 72 + - 92 + 64 * + - 12 - - 7 AS col1
----
NULL

query I rowsort
SELECT ALL + - 63 * 49
----
-3087

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9852
SELECT ALL ( - CAST( NULL AS SIGNED ) ) + - + 47 + - 34 + SUM( DISTINCT 24 ) / 68
----
NULL

skipif mysql # not compatible
query I rowsort label-9852
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) + - + 47 + - 34 + SUM ( DISTINCT 24 ) / 68
----
NULL

query I rowsort
SELECT ALL - 85 * - - 96 * - 17
----
138720

query I rowsort
SELECT DISTINCT - 83 + + 67
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT ALL - 25 * + - COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-9855
SELECT ALL - 25 * + - COUNT ( * )
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-9856
SELECT 5 * + COUNT( * ), 21 AS col2
----
5
21

skipif mysql # not compatible
query II rowsort label-9856
SELECT 5 * + COUNT ( * ), 21 AS col2
----
5
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9857
SELECT ALL - 60 + + COUNT( * ) AS col2, COUNT( * ) * CAST( NULL AS SIGNED ) * - 16 + - COUNT( * ) * 34 - + 71
----
-59
NULL

skipif mysql # not compatible
query II rowsort label-9857
SELECT ALL - 60 + + COUNT ( * ) AS col2, COUNT ( * ) * CAST ( NULL AS INTEGER ) * - 16 + - COUNT ( * ) * 34 - + 71
----
-59
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9858
SELECT ALL 5, 47 * - COALESCE ( - + 96, + + 43 * - 74 ) * 60 - 39 DIV - 34 AS col0
----
5
270721

skipif mysql # not compatible
query II rowsort label-9858
SELECT ALL 5, 47 * - COALESCE ( - + 96, + + 43 * - 74 ) * 60 - 39 / - 34 AS col0
----
5
270721

onlyif mysql # DIV for integer division: 
query I rowsort label-9859
SELECT ALL + 88 DIV - ( - 67 )
----
1

skipif mysql # not compatible
query I rowsort label-9859
SELECT ALL + 88 / - ( - 67 )
----
1

query II rowsort
SELECT + 27, 0 AS col1
----
27
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9861
SELECT 4 + - 72 + + + NULLIF ( - COUNT( * ), - - 69 * ( - + COUNT( * ) ) + - 0 + + MAX( DISTINCT + CAST( NULL AS SIGNED ) ) * + + CAST( - 70 AS SIGNED ) + + 82 / - NULLIF ( + 98 * + 66, ( + ( + 19 ) ) / 90 ) ) + 9 * 86 * - 32
----
-24837

skipif mysql # not compatible
query I rowsort label-9861
SELECT 4 + - 72 + + + NULLIF ( - COUNT ( * ), - - 69 * ( - + COUNT ( * ) ) + - 0 + + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) * + + CAST ( - 70 AS INTEGER ) + + 82 / - NULLIF ( + 98 * + 66, ( + ( + 19 ) ) / 90 ) ) + 9 * 86 * - 32
----
-24837

query I rowsort
SELECT 11 * - 34
----
-374

onlyif mysql # aggregate syntax: 
query I rowsort label-9863
SELECT COUNT( * ) * + - 9 * COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-9863
SELECT COUNT ( * ) * + - 9 * COUNT ( * )
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9864
SELECT DISTINCT - CAST( - 67 AS SIGNED ) col0
----
67

skipif mysql # not compatible
query I rowsort label-9864
SELECT DISTINCT - CAST ( - 67 AS INTEGER ) col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT ALL - MAX( DISTINCT - + COALESCE ( - 25, - - 67, - - 70 + - - 20 ) ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-9865
SELECT ALL - MAX ( DISTINCT - + COALESCE ( - 25, - - 67, - - 70 + - - 20 ) ) AS col2
----
-25

query II rowsort
SELECT 20 + + 71 AS col0, 0
----
91
0

query I rowsort
SELECT ALL - 25 * + 1 AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT ALL + CASE + + COALESCE ( - 95, + 63 ) WHEN - + 9 THEN - - 19 * COUNT( DISTINCT + 34 ) ELSE NULL END * - 9 + - - 11 + - + 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9868
SELECT ALL + CASE + + COALESCE ( - 95, + 63 ) WHEN - + 9 THEN - - 19 * COUNT ( DISTINCT + 34 ) ELSE NULL END * - 9 + - - 11 + - + 57 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9869
SELECT ALL - 4 col2, - COALESCE ( + - 4, + 28 + + - 8 + - COALESCE ( + 87, - - COUNT( * ), - + 7 ) )
----
-4
4

skipif mysql # not compatible
query II rowsort label-9869
SELECT ALL - 4 col2, - COALESCE ( + - 4, + 28 + + - 8 + - COALESCE ( + 87, - - COUNT ( * ), - + 7 ) )
----
-4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9870
SELECT 69 * + MAX( 32 ) AS col0
----
2208

skipif mysql # not compatible
query I rowsort label-9870
SELECT 69 * + MAX ( 32 ) AS col0
----
2208

query I rowsort
SELECT - 72 + - + 79
----
-151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9872
SELECT CAST( + SUM( DISTINCT + 45 ) AS SIGNED )
----
45

skipif mysql # not compatible
query I rowsort label-9872
SELECT CAST ( + SUM ( DISTINCT + 45 ) AS INTEGER )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9873
SELECT - 27 * - - 6 * 1 + 21 + COUNT( * ) AS col0
----
-140

skipif mysql # not compatible
query I rowsort label-9873
SELECT - 27 * - - 6 * 1 + 21 + COUNT ( * ) AS col0
----
-140

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9874
SELECT DISTINCT 73 * + CAST( NULL AS DECIMAL ) - - 90 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9874
SELECT DISTINCT 73 * + CAST ( NULL AS REAL ) - - 90 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9875
SELECT ALL + 69 DIV - 31 AS col1, - 66 * COUNT( 59 ) + - + 33
----
-2
-99

skipif mysql # not compatible
query II rowsort label-9875
SELECT ALL + 69 / - 31 AS col1, - 66 * COUNT ( 59 ) + - + 33
----
-2
-99

query I rowsort
SELECT DISTINCT - - 56 + 75
----
131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9877
SELECT CAST( - + 15 AS SIGNED ) + - - 13 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-9877
SELECT CAST ( - + 15 AS INTEGER ) + - - 13 AS col0
----
-2

query II rowsort
SELECT ALL 9 AS col0, 36 AS col1
----
9
36

query I rowsort
SELECT ALL + NULLIF ( - 43, - 86 ) + - - 3 * - 64 AS col0
----
-235

query II rowsort
SELECT - + 64 AS col2, 54
----
-64
54

query II rowsort
SELECT DISTINCT 15, + ( NULLIF ( - COALESCE ( - + 95, - + 95 ), - ( - 54 ) / + 84 + - 4 ) ) AS col0
----
15
95

query II rowsort
SELECT ALL + 53 AS col0, - 3 AS col2
----
53
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9883
SELECT + CAST( + 44 AS SIGNED )
----
44

skipif mysql # not compatible
query I rowsort label-9883
SELECT + CAST ( + 44 AS INTEGER )
----
44

query II rowsort
SELECT DISTINCT 99, 72 + 97 + + 42 + 76 * - - 86 AS col2
----
99
6747

query I rowsort
SELECT ALL - 37 + 38 + - 55 + 30 * - 35
----
-1104

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9886
SELECT ALL 38 + + COALESCE ( 64, - 25 + 28 * + 64, - + ( - 48 ) DIV + + NULLIF ( - 62, - 84 + 16 ) - CAST( NULL AS SIGNED ) * + 14 ) AS col2
----
102

skipif mysql # not compatible
query I rowsort label-9886
SELECT ALL 38 + + COALESCE ( 64, - 25 + 28 * + 64, - + ( - 48 ) / + + NULLIF ( - 62, - 84 + 16 ) - CAST ( NULL AS INTEGER ) * + 14 ) AS col2
----
102

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9887
SELECT ALL 9 DIV - 97 * + CAST( - 47 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9887
SELECT ALL 9 / - 97 * + CAST ( - 47 AS INTEGER ) AS col1
----
0

query I rowsort
SELECT 95 + 36 AS col0
----
131

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9889
SELECT DISTINCT 32 * - CASE - CAST( NULL AS DECIMAL ) WHEN + 17 THEN - CASE CASE 92 WHEN 70 THEN - + 3 * 51 + - 66 END WHEN - - 97 THEN 53 * ( + 73 ) END WHEN - 79 * - 8 + + AVG ( DISTINCT 77 ) * CASE 26 / MAX( 99 ) + 41 WHEN - 37 THEN + ( - 14 ) ELSE 99 * + ( - 18 ) + 79 END THEN NULL WHEN MIN( DISTINCT 71 ) * + 12 THEN 25 ELSE 69 END AS col2
----
-2208

skipif mysql # not compatible
query I rowsort label-9889
SELECT DISTINCT 32 * - CASE - CAST ( NULL AS REAL ) WHEN + 17 THEN - CASE CASE 92 WHEN 70 THEN - + 3 * 51 + - 66 END WHEN - - 97 THEN 53 * ( + 73 ) END WHEN - 79 * - 8 + + AVG ( DISTINCT 77 ) * CASE 26 / MAX ( 99 ) + 41 WHEN - 37 THEN + ( - 14 ) ELSE 99 * + ( - 18 ) + 79 END THEN NULL WHEN MIN ( DISTINCT 71 ) * + 12 THEN 25 ELSE 69 END AS col2
----
-2208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9890
SELECT COALESCE ( + ( + MIN( - - 80 ) ), NULLIF ( NULLIF ( + CAST( - 38 AS SIGNED ), + - COUNT( * ) ), + - 75 ) - - ( + 85 ) * + 2 ) + - 38
----
42

skipif mysql # not compatible
query I rowsort label-9890
SELECT COALESCE ( + ( + MIN ( - - 80 ) ), NULLIF ( NULLIF ( + CAST ( - 38 AS INTEGER ), + - COUNT ( * ) ), + - 75 ) - - ( + 85 ) * + 2 ) + - 38
----
42

query I rowsort
SELECT ALL 2 - + - 51 AS col1
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-9892
SELECT DISTINCT 61 - 43 + + 1 * NULLIF ( + 95, - - 48 ) * + COUNT( * ) AS col0, NULLIF ( + COUNT( * ), 48 + - + 14 ) AS col0
----
113
1

skipif mysql # not compatible
query II rowsort label-9892
SELECT DISTINCT 61 - 43 + + 1 * NULLIF ( + 95, - - 48 ) * + COUNT ( * ) AS col0, NULLIF ( + COUNT ( * ), 48 + - + 14 ) AS col0
----
113
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9893
SELECT DISTINCT COUNT( * ) - - 55
----
56

skipif mysql # not compatible
query I rowsort label-9893
SELECT DISTINCT COUNT ( * ) - - 55
----
56

query II rowsort
SELECT 30 + - + 58, 15 col1
----
-28
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9895
SELECT DISTINCT - COUNT( ALL - - 95 )
----
-1

skipif mysql # not compatible
query I rowsort label-9895
SELECT DISTINCT - COUNT ( ALL - - 95 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9896
SELECT ( - + 62 ) * + NULLIF ( - NULLIF ( + ( + COUNT( - CAST( - + 31 AS SIGNED ) ) ), + NULLIF ( - - 3, - - 59 ) * - 86 * 64 + 4 ), 8 * 10 ) * 16 AS col0
----
992

skipif mysql # not compatible
query I rowsort label-9896
SELECT ( - + 62 ) * + NULLIF ( - NULLIF ( + ( + COUNT ( - CAST ( - + 31 AS INTEGER ) ) ), + NULLIF ( - - 3, - - 59 ) * - 86 * 64 + 4 ), 8 * 10 ) * 16 AS col0
----
992

onlyif mysql # aggregate syntax: 
query I rowsort label-9897
SELECT + CASE + + 65 WHEN 63 THEN NULL WHEN - - 58 * + COUNT( * ) THEN 92 + 7 + - 49 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9897
SELECT + CASE + + 65 WHEN 63 THEN NULL WHEN - - 58 * + COUNT ( * ) THEN 92 + 7 + - 49 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - CASE - ( + 21 ) WHEN + + 69 + + 3 THEN 59 - - 11 / + 15 ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT ALL + 39 * + 2 AS col2, - 38 + - 12
----
78
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9900
SELECT - COUNT( * ) DIV + + 22 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9900
SELECT - COUNT ( * ) / + + 22 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9901
SELECT MIN( - - 30 ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-9901
SELECT MIN ( - - 30 ) AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9902
SELECT ALL + 76 * + - 52 + CASE + - 92 WHEN 64 * + 91 * 25 THEN - 99 - - - NULLIF ( + 86, 39 ) WHEN + + MAX( ALL 54 ) THEN 72 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9902
SELECT ALL + 76 * + - 52 + CASE + - 92 WHEN 64 * + 91 * 25 THEN - 99 - - - NULLIF ( + 86, 39 ) WHEN + + MAX ( ALL 54 ) THEN 72 END
----
NULL

query I rowsort
SELECT + + 70 * - 33 * + + 10 AS col1
----
-23100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9904
SELECT DISTINCT 46 * COUNT( * ) - - - CAST( - 95 AS SIGNED ) + + NULLIF ( - 66, - 63 - 28 * - 62 / 83 ) col1
----
75

skipif mysql # not compatible
query I rowsort label-9904
SELECT DISTINCT 46 * COUNT ( * ) - - - CAST ( - 95 AS INTEGER ) + + NULLIF ( - 66, - 63 - 28 * - 62 / 83 ) col1
----
75

query I rowsort
SELECT ALL + 84 * + 84 AS col0
----
7056

query I rowsort
SELECT ALL + - 85 AS col2
----
-85

query I rowsort
SELECT - + ( - + 63 ) * 77
----
4851

onlyif mysql # DIV for integer division: 
query I rowsort label-9908
SELECT - 72 DIV - NULLIF ( + 92, + 91 ) * 27 * - - 7 + - - 52 + + 76 * 87 * - - 60
----
396772

skipif mysql # not compatible
query I rowsort label-9908
SELECT - 72 / - NULLIF ( + 92, + 91 ) * 27 * - - 7 + - - 52 + + 76 * 87 * - - 60
----
396772

onlyif mysql # aggregate syntax: 
query I rowsort label-9909
SELECT - + 69 + + CASE + 51 WHEN + + NULLIF ( 58, + CASE - ( - 78 ) WHEN - 63 * - + 17 THEN 92 WHEN + 65 THEN NULL WHEN + 5 + 80 THEN NULL END ) THEN + COUNT( * ) * - 46 WHEN - ( 96 ) + COUNT( DISTINCT 84 ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9909
SELECT - + 69 + + CASE + 51 WHEN + + NULLIF ( 58, + CASE - ( - 78 ) WHEN - 63 * - + 17 THEN 92 WHEN + 65 THEN NULL WHEN + 5 + 80 THEN NULL END ) THEN + COUNT ( * ) * - 46 WHEN - ( 96 ) + COUNT ( DISTINCT 84 ) THEN NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 99 + + 0
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9911
SELECT + COUNT( * ) + - + CASE + + COALESCE ( CAST( NULL AS SIGNED ), - 68 - 11 - - + COUNT( * ) * COUNT( ALL 70 ) * + 15 + 50, + 26 / + 46 ) WHEN 19 THEN + 71 END * 58
----
NULL

skipif mysql # not compatible
query I rowsort label-9911
SELECT + COUNT ( * ) + - + CASE + + COALESCE ( CAST ( NULL AS INTEGER ), - 68 - 11 - - + COUNT ( * ) * COUNT ( ALL 70 ) * + 15 + 50, + 26 / + 46 ) WHEN 19 THEN + 71 END * 58
----
NULL

query I rowsort
SELECT ALL + - 16 + + 1 * 8 * 22
----
160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9913
SELECT - COUNT( ALL - 55 ) * - 92 + 88 DIV + MAX( ALL - 24 ) - + CAST( - + 51 AS SIGNED )
----
140

skipif mysql # not compatible
query I rowsort label-9913
SELECT - COUNT ( ALL - 55 ) * - 92 + 88 / + MAX ( ALL - 24 ) - + CAST ( - + 51 AS INTEGER )
----
140

query I rowsort
SELECT DISTINCT + 75 * - 86
----
-6450

query II rowsort
SELECT ALL 45 AS col1, 47 AS col1
----
45
47

query II rowsort
SELECT - 54 AS col1, 67
----
-54
67

query II rowsort
SELECT 62 AS col2, 28 AS col2
----
62
28

query I rowsort
SELECT - 43 + - 58
----
-101

query I rowsort
SELECT + 49 * - 25
----
-1225

query II rowsort
SELECT - 11 AS col2, + 57
----
-11
57

query I rowsort
SELECT - NULLIF ( 86, 68 )
----
-86

query II rowsort
SELECT 78 AS col1, 77
----
78
77

query I rowsort
SELECT DISTINCT ( + - 43 ) AS col1
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-9924
SELECT ALL ( + MAX( - - 27 ) ) AS col0, COUNT( * )
----
27
1

skipif mysql # not compatible
query II rowsort label-9924
SELECT ALL ( + MAX ( - - 27 ) ) AS col0, COUNT ( * )
----
27
1

query II rowsort
SELECT DISTINCT 74 col2, 56 AS col0
----
74
56

query I rowsort
SELECT + 89 * + 71
----
6319

query II rowsort
SELECT ALL + 65, - 92 col0
----
65
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9928
SELECT ALL 77 * - COUNT( * ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-9928
SELECT ALL 77 * - COUNT ( * ) AS col2
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9929
SELECT + 83 * + ( NULLIF ( + 11, + + CAST( NULL AS SIGNED ) ) )
----
913

skipif mysql # not compatible
query I rowsort label-9929
SELECT + 83 * + ( NULLIF ( + 11, + + CAST ( NULL AS INTEGER ) ) )
----
913

query II rowsort
SELECT ALL + 10 col0, + ( - 96 ) + - - 61
----
10
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9931
SELECT + 53 * 77 * ( COUNT( * ) )
----
4081

skipif mysql # not compatible
query I rowsort label-9931
SELECT + 53 * 77 * ( COUNT ( * ) )
----
4081

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9932
SELECT - 86 * - - 2 + + - ( - CAST( NULL AS SIGNED ) ) + - 1 + 3 * + 45 * 43 / + COUNT( * ) - - 50 * + 52 + + + 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9932
SELECT - 86 * - - 2 + + - ( - CAST ( NULL AS INTEGER ) ) + - 1 + 3 * + 45 * 43 / + COUNT ( * ) - - 50 * + 52 + + + 50 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9933
SELECT ALL - 3 DIV + 16 + - ( + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9933
SELECT ALL - 3 / + 16 + - ( + COUNT ( * ) )
----
-1

query I rowsort
SELECT + + 25 + - 74 col1
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-9935
SELECT + COUNT( * ) + - + ( 95 ) AS col2, - 77 AS col1
----
-94
-77

skipif mysql # not compatible
query II rowsort label-9935
SELECT + COUNT ( * ) + - + ( 95 ) AS col2, - 77 AS col1
----
-94
-77

query II rowsort
SELECT ALL + + CASE - 57 WHEN 30 * + - 77 / + ( 44 ) THEN + 27 * + 71 ELSE NULL END, + 40 * - - 93 AS col2
----
NULL
3720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9937
SELECT - 60 * - + AVG ( DISTINCT + - 80 ) + CAST( - 24 AS SIGNED ) + - AVG ( + 59 ) * COUNT( * ) + - 80 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9937
SELECT - 60 * - + AVG ( DISTINCT + - 80 ) + CAST ( - 24 AS INTEGER ) + - AVG ( + 59 ) * COUNT ( * ) + - 80 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9938
SELECT ALL - 5 * + COUNT( * ) + - - CASE - 4 WHEN ( + CAST( 71 AS SIGNED ) ) THEN NULL ELSE + SUM( ALL - 40 ) * + COUNT( * ) + COUNT( * ) END + COUNT( * ) + 32 * - 81 * - MAX( 44 + 19 ) AS col0
----
163253

skipif mysql # not compatible
query I rowsort label-9938
SELECT ALL - 5 * + COUNT ( * ) + - - CASE - 4 WHEN ( + CAST ( 71 AS INTEGER ) ) THEN NULL ELSE + SUM ( ALL - 40 ) * + COUNT ( * ) + COUNT ( * ) END + COUNT ( * ) + 32 * - 81 * - MAX ( 44 + 19 ) AS col0
----
163253

query II rowsort
SELECT + COALESCE ( 29, - 11 ) AS col1, - 92
----
29
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9940
SELECT SUM( DISTINCT 75 )
----
75

skipif mysql # not compatible
query I rowsort label-9940
SELECT SUM ( DISTINCT 75 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9941
SELECT - - SUM( ALL - + 35 ) * - 62 * 51 + - NULLIF ( + - 64, - + 79 ) + 23 AS col1
----
110757

skipif mysql # not compatible
query I rowsort label-9941
SELECT - - SUM ( ALL - + 35 ) * - 62 * 51 + - NULLIF ( + - 64, - + 79 ) + 23 AS col1
----
110757

onlyif mysql # aggregate syntax: 
query I rowsort label-9942
SELECT ALL + COUNT( * ) * - 11 - - COUNT( * ) + - 73
----
-83

skipif mysql # not compatible
query I rowsort label-9942
SELECT ALL + COUNT ( * ) * - 11 - - COUNT ( * ) + - 73
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9943
SELECT - 46 * + 13 DIV + COUNT( * )
----
-598

skipif mysql # not compatible
query I rowsort label-9943
SELECT - 46 * + 13 / + COUNT ( * )
----
-598

onlyif mysql # aggregate syntax: 
query I rowsort label-9944
SELECT ALL NULLIF ( - ( 33 ), 6 ) * - COALESCE ( - - 69, COUNT( * ) + - 95 - - 96, ( + - ( + + 2 ) ) * 24 ) * - 96
----
-218592

skipif mysql # not compatible
query I rowsort label-9944
SELECT ALL NULLIF ( - ( 33 ), 6 ) * - COALESCE ( - - 69, COUNT ( * ) + - 95 - - 96, ( + - ( + + 2 ) ) * 24 ) * - 96
----
-218592

query II rowsort
SELECT DISTINCT - 85, 26 AS col0
----
-85
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9946
SELECT - 59 + + CAST( NULL AS SIGNED ) * - 19 + - + 21 + + - 92 / - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9946
SELECT - 59 + + CAST ( NULL AS INTEGER ) * - 19 + - + 21 + + - 92 / - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT - NULLIF ( + 73, 98 )
----
-73

query I rowsort
SELECT DISTINCT + - 47 * 29
----
-1363

onlyif mysql # DIV for integer division: 
query I rowsort label-9949
SELECT DISTINCT - 29 DIV - 11 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9949
SELECT DISTINCT - 29 / - 11 AS col0
----
2

query I rowsort
SELECT ALL ( - COALESCE ( + + 35, - + 55, - + 55 ) ) AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT - 85 + + COUNT( * )
----
-84

skipif mysql # not compatible
query I rowsort label-9951
SELECT - 85 + + COUNT ( * )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9952
SELECT ALL ( - MAX( - 53 ) )
----
53

skipif mysql # not compatible
query I rowsort label-9952
SELECT ALL ( - MAX ( - 53 ) )
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9953
SELECT DISTINCT CAST( AVG ( - 98 ) AS SIGNED ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-9953
SELECT DISTINCT CAST ( AVG ( - 98 ) AS INTEGER ) AS col0
----
-98

query II rowsort
SELECT DISTINCT ( 77 ), - 55 + - 53 AS col2
----
77
-108

query II rowsort
SELECT ALL 1 * + 85 AS col2, - 30
----
85
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9956
SELECT - 7 + + 11 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9956
SELECT - 7 + + 11 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - 66 * - 56 * 68
----
251328

onlyif mysql # aggregate syntax: 
query I rowsort label-9958
SELECT COUNT( * ) + - 13 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-9958
SELECT COUNT ( * ) + - 13 AS col2
----
-12

query I rowsort
SELECT 49 * + 6 AS col1
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT DISTINCT COUNT( * ) + + 31 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-9960
SELECT DISTINCT COUNT ( * ) + + 31 AS col2
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-9961
SELECT 39 DIV + 87
----
0

skipif mysql # not compatible
query I rowsort label-9961
SELECT 39 / + 87
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9962
SELECT ALL 35 + + COUNT( * ), 68 col2
----
36
68

skipif mysql # not compatible
query II rowsort label-9962
SELECT ALL 35 + + COUNT ( * ), 68 col2
----
36
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9963
SELECT DISTINCT + COUNT( * ) DIV - 53 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9963
SELECT DISTINCT + COUNT ( * ) / - 53 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT ALL - MAX( DISTINCT - + 23 ) + - 47
----
-24

skipif mysql # not compatible
query I rowsort label-9964
SELECT ALL - MAX ( DISTINCT - + 23 ) + - 47
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9965
SELECT MAX( ALL + 57 ) DIV 65 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9965
SELECT MAX ( ALL + 57 ) / 65 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9966
SELECT ALL + - CAST( NULL AS SIGNED ) + - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-9966
SELECT ALL + - CAST ( NULL AS INTEGER ) + - 9
----
NULL

query I rowsort
SELECT DISTINCT - + NULLIF ( + + 66, + 83 )
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-9968
SELECT + 41 * + 58, + SUM( + 5 ) AS col2
----
2378
5

skipif mysql # not compatible
query II rowsort label-9968
SELECT + 41 * + 58, + SUM ( + 5 ) AS col2
----
2378
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9969
SELECT 2 * - 95 - 94 + + 71 * + COUNT( * )
----
-213

skipif mysql # not compatible
query I rowsort label-9969
SELECT 2 * - 95 - 94 + + 71 * + COUNT ( * )
----
-213

query I rowsort
SELECT ALL + 32 + 81 - + + 29
----
84

query I rowsort
SELECT - 7 * - + 56
----
392

query I rowsort
SELECT ALL 47 * - 97
----
-4559

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT + MIN( - + 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-9973
SELECT + MIN ( - + 29 )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9974
SELECT ALL - SUM( ALL - 45 )
----
45

skipif mysql # not compatible
query I rowsort label-9974
SELECT ALL - SUM ( ALL - 45 )
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9975
SELECT + COUNT( * ) * CAST( - 22 AS SIGNED ) + - 74 + - CAST( NULL AS SIGNED ) + COALESCE ( + - 80, 63 ) * - - 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9975
SELECT + COUNT ( * ) * CAST ( - 22 AS INTEGER ) + - 74 + - CAST ( NULL AS INTEGER ) + COALESCE ( + - 80, 63 ) * - - 50 AS col2
----
NULL

query I rowsort
SELECT + ( - + 16 ) col0
----
-16

query I rowsort
SELECT ( + 72 ) col1
----
72

query I rowsort
SELECT + - COALESCE ( + 28, + 13 )
----
-28

query I rowsort
SELECT 64 * - - 51 * + 2
----
6528

onlyif mysql # aggregate syntax: 
query I rowsort label-9980
SELECT ALL + 43 * + 66 * + + COALESCE ( + 94, + + 11 + 61 + + COUNT( * ), 91, + 47 ) * - 69 + + 44 + + COUNT( * )
----
-18407223

skipif mysql # not compatible
query I rowsort label-9980
SELECT ALL + 43 * + 66 * + + COALESCE ( + 94, + + 11 + 61 + + COUNT ( * ), 91, + 47 ) * - 69 + + 44 + + COUNT ( * )
----
-18407223

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9981
SELECT DISTINCT + NULLIF ( - + 4, - ( - ( - + 77 ) ) - 88 + + 36 + - - 25 * - 40 * 64 + + CAST( - + 69 AS DECIMAL ) - + - 56 ) * - 33
----
132

skipif mysql # not compatible
query I rowsort label-9981
SELECT DISTINCT + NULLIF ( - + 4, - ( - ( - + 77 ) ) - 88 + + 36 + - - 25 * - 40 * 64 + + CAST ( - + 69 AS REAL ) - + - 56 ) * - 33
----
132

query II rowsort
SELECT ALL 10 AS col2, 84
----
10
84

query II rowsort
SELECT - 62, + 23 col0
----
-62
23

query II rowsort
SELECT 30 * 31 * 62, 30 AS col1
----
57660
30

query I rowsort
SELECT ALL 72 * + + 43 AS col2
----
3096

query I rowsort
SELECT 39 * - NULLIF ( COALESCE ( + 41, 95 * - ( - 7 ) ), 26 ) AS col2
----
-1599

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9987
SELECT CAST( NULL AS DECIMAL ) * + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-9987
SELECT CAST ( NULL AS REAL ) * + 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT 29 * + COUNT( * ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-9988
SELECT 29 * + COUNT ( * ) AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9989
SELECT ALL - 35 + + 41 * + COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-9989
SELECT ALL - 35 + + 41 * + COUNT ( * )
----
6

query II rowsort
SELECT - 86 AS col1, 29 + + 80 col0
----
-86
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9991
SELECT 45 - - - 30 + - - CAST( - COUNT( * ) AS SIGNED ) - - + 24 - + 72 * 84 DIV - SUM( 97 )
----
100

skipif mysql # not compatible
query I rowsort label-9991
SELECT 45 - - - 30 + - - CAST ( - COUNT ( * ) AS INTEGER ) - - + 24 - + 72 * 84 / - SUM ( 97 )
----
100

query I rowsort
SELECT ALL - 8 + + + 38 * + + 39 AS col1
----
1474

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9993
SELECT 55 - + + CAST( 34 AS SIGNED ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-9993
SELECT 55 - + + CAST ( 34 AS INTEGER ) AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9994
SELECT DISTINCT COUNT( * ) * - 79 * + + CASE SUM( ALL ( - + 14 ) ) WHEN 81 * SUM( DISTINCT - ( 43 ) ) THEN - 64 WHEN - - 70 THEN - - 35 + - + COUNT( * ) WHEN + ( - 12 ) - 12 / - 74 THEN - ( + 61 ) END * - COUNT( * ) + 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9994
SELECT DISTINCT COUNT ( * ) * - 79 * + + CASE SUM ( ALL ( - + 14 ) ) WHEN 81 * SUM ( DISTINCT - ( 43 ) ) THEN - 64 WHEN - - 70 THEN - - 35 + - + COUNT ( * ) WHEN + ( - 12 ) - 12 / - 74 THEN - ( + 61 ) END * - COUNT ( * ) + 16 AS col2
----
NULL

query I rowsort
SELECT - + 33 * - ( ( 96 ) ) + + 25 + + 59 AS col1
----
3252

onlyif mysql # aggregate syntax: 
query I rowsort label-9996
SELECT NULLIF ( + - SUM( DISTINCT + 62 ), ( + 6 ) * 18 ) * - 28 AS col2
----
1736

skipif mysql # not compatible
query I rowsort label-9996
SELECT NULLIF ( + - SUM ( DISTINCT + 62 ), ( + 6 ) * 18 ) * - 28 AS col2
----
1736

onlyif mysql # aggregate syntax: 
query I rowsort label-9997
SELECT COUNT( 67 ) * + + CASE - 48 WHEN + - 14 THEN NULL WHEN COUNT( DISTINCT 41 ) THEN + 27 END + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9997
SELECT COUNT ( 67 ) * + + CASE - 48 WHEN + - 14 THEN NULL WHEN COUNT ( DISTINCT 41 ) THEN + 27 END + + COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9998
SELECT + COUNT( * ) - NULLIF ( - - 66, - 80 ) * 25 AS col1, ( - CAST( NULL AS SIGNED ) ) AS col0
----
-1649
NULL

skipif mysql # not compatible
query II rowsort label-9998
SELECT + COUNT ( * ) - NULLIF ( - - 66, - 80 ) * 25 AS col1, ( - CAST ( NULL AS INTEGER ) ) AS col0
----
-1649
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9999
SELECT COALESCE ( - 26, - CAST( NULL AS SIGNED ) + - - 12 - + 95 ) DIV - 54, + 34 AS col2
----
0
34

skipif mysql # not compatible
query II rowsort label-9999
SELECT COALESCE ( - 26, - CAST ( NULL AS INTEGER ) + - - 12 - + 95 ) / - 54, + 34 AS col2
----
0
34

