sqllogictest
Artifact Content
Not logged in

Artifact c984026103aa0ca47964390dba9c0e5455be2365:


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
SELE